@acedatacloud/nexior 3.64.0 → 3.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/assets/{Auth-DWTt4mMT.js → Auth-D6zpLBP3.js} +1 -1
  2. package/dist/assets/{BotPlaceholder-CA1WXraR.js → BotPlaceholder-Dnyq4lO-.js} +1 -1
  3. package/dist/assets/{Callback-Bz5Hmsv7.js → Callback-DKBnucC3.js} +1 -1
  4. package/dist/assets/{Console-uhrWjtw0.js → Console-DhA_BGGL.js} +1 -1
  5. package/dist/assets/{Consumption-CsgwWKNU.js → Consumption-DCvPdAru.js} +1 -1
  6. package/dist/assets/{Conversation-BAWWkLD6.js → Conversation-9NMLj9S5.js} +1 -1
  7. package/dist/assets/{CopyToClipboard-B5IHbx8s.js → CopyToClipboard-BYJsECrG.js} +1 -1
  8. package/dist/assets/{Detail-BrvHr1tG.js → Detail-DLpMxYL3.js} +2 -2
  9. package/dist/assets/{EditArray-B4nxLwnL.js → EditArray-CrcMm4vZ.js} +1 -1
  10. package/dist/assets/{Extra-C22jbb4X.js → Extra-DDS3toUe.js} +1 -1
  11. package/dist/assets/{FilePreview-D1kSd9VF.js → FilePreview-BWqVmsdi.js} +1 -1
  12. package/dist/assets/{History-DO5OJb7h.js → History-BktOsx7U.js} +1 -1
  13. package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-B1pMPWim.js → IconPark.vue_vue_type_script_setup_true_lang-DqnlPqYw.js} +1 -1
  14. package/dist/assets/{ImagePreview-Bw-JFsYR.js → ImagePreview-C7jdLxC2.js} +1 -1
  15. package/dist/assets/{ImageWrapper-BF81_B0f.js → ImageWrapper-DgaKLGZk.js} +1 -1
  16. package/dist/assets/{Index-DvRQ6LRD.js → Index-A9Bmp40-.js} +1 -1
  17. package/dist/assets/{Index-DLj1sM6N.js → Index-B4BEZJjX.js} +1 -1
  18. package/dist/assets/{Index-Dn2ucmkg.js → Index-BKnZbLrR.js} +1 -1
  19. package/dist/assets/{Index-B_YgOsMm.js → Index-BbAifKUx.js} +1 -1
  20. package/dist/assets/{Index-mFtQ2LWb.js → Index-BeauGOWj.js} +1 -1
  21. package/dist/assets/{Index-Crw6lbRu.js → Index-Bv9KzOkM.js} +1 -1
  22. package/dist/assets/{Index-DjcrMjv5.js → Index-By1k2rkQ.js} +1 -1
  23. package/dist/assets/{Index-Dvy-mC-J.js → Index-C2zK7v29.js} +1 -1
  24. package/dist/assets/{Index-CJ5UNNo6.js → Index-CS67B2G4.js} +1 -1
  25. package/dist/assets/{Index-C5WZd72A.js → Index-CWFXDey3.js} +1 -1
  26. package/dist/assets/{Index-CLw7sZj2.js → Index-CeTpDQS1.js} +1 -1
  27. package/dist/assets/{Index-V8SxUAm6.js → Index-CzKNt1Jm.js} +1 -1
  28. package/dist/assets/{Index-B7iPSS3A.js → Index-D41xNV52.js} +1 -1
  29. package/dist/assets/{Index-BhC7Eyyb.js → Index-D9054RL3.js} +1 -1
  30. package/dist/assets/{Index-Sn6eH952.js → Index-DJenpkTP.js} +1 -1
  31. package/dist/assets/{Index-DAjVx6h1.js → Index-DOGSlKbl.js} +1 -1
  32. package/dist/assets/{Index-lOBHpaa0.js → Index-DR8ItjCl.js} +1 -1
  33. package/dist/assets/{Index-Dmd5A-KW.js → Index-DYV56etO.js} +1 -1
  34. package/dist/assets/{Index-C0ige6Cm.js → Index-De-2VzlB.js} +1 -1
  35. package/dist/assets/{Index-lFxdSzen.js → Index-Dggw-Ehz.js} +1 -1
  36. package/dist/assets/{Index-Bdmj1FTZ.js → Index-DkJzf0Od.js} +1 -1
  37. package/dist/assets/{Index-Bp9hqArO.js → Index-DuTRFoxG.js} +1 -1
  38. package/dist/assets/{Index-CXBrFuq0.js → Index-sFu_XEm6.js} +1 -1
  39. package/dist/assets/{Index-2Wx7cD6J.js → Index-ufKj3wfa.js} +1 -1
  40. package/dist/assets/{Invitees-BLn_zqOZ.js → Invitees-8tbixf76.js} +1 -1
  41. package/dist/assets/{List-DAQ7nZai.js → List-C_aH_9qB.js} +1 -1
  42. package/dist/assets/{List-Ceb8z9V6.js → List-F4bAwGk5.js} +1 -1
  43. package/dist/assets/{List-4uxBXL6V.js → List-Yu7AHxiE.js} +1 -1
  44. package/dist/assets/{Main-Dt-lteWm.js → Main-Eu4CQJ96.js} +1 -1
  45. package/dist/assets/{Navigator-BDTIM7uP.js → Navigator-D1i88q6I.js} +1 -1
  46. package/dist/assets/{NoTasks-DsNspVyt.js → NoTasks-XG6VfBDy.js} +1 -1
  47. package/dist/assets/{NotFound-D8H1glr0.js → NotFound-ckHF2kSe.js} +1 -1
  48. package/dist/assets/{OAuthCallback-CvyYqo8n.js → OAuthCallback-BNBXba3t.js} +1 -1
  49. package/dist/assets/{Pagination-zLl645N6.js → Pagination-DYnkiv-u.js} +1 -1
  50. package/dist/assets/{ScrollList-BUw74Fv0.js → ScrollList-D9vJjhby.js} +1 -1
  51. package/dist/assets/{Status-BCdJsjqs.js → Status-CL7R2vio.js} +1 -1
  52. package/dist/assets/{Subscribe-CmhLrBFi.js → Subscribe-BuDpEKAw.js} +1 -1
  53. package/dist/assets/{TransportWebHID-DRtEmj3v.js → TransportWebHID-ki8LY5kl.js} +1 -1
  54. package/dist/assets/{VideoPlayer-6HF4gMy0.js → VideoPlayer-DqCALlAM.js} +1 -1
  55. package/dist/assets/{_Uint8Array-DFsYU_hq.js → _Uint8Array-DBwfXkjk.js} +1 -1
  56. package/dist/assets/{_baseClone-BMVPi1oh.js → _baseClone-MlwYIMMd.js} +1 -1
  57. package/dist/assets/{_baseIteratee-B-oO7Aez.js → _baseIteratee-BBFOY7-g.js} +1 -1
  58. package/dist/assets/{_initCloneObject-DG65u0NR.js → _initCloneObject-LU_Dl2UE.js} +1 -1
  59. package/dist/assets/{add-D7YVN31I.js → add-CvAKMix8.js} +1 -1
  60. package/dist/assets/{all-wallets-BDNL9Ydh.js → all-wallets-BaQiEWgt.js} +1 -1
  61. package/dist/assets/{app-store-DrvzAwyP.js → app-store-Q5MuA6lW.js} +1 -1
  62. package/dist/assets/{apple-_qLgxYnd.js → apple-I943Ufdv.js} +1 -1
  63. package/dist/assets/{arrow-bottom-CoPt1vJr.js → arrow-bottom-Zbke-w-6.js} +1 -1
  64. package/dist/assets/{arrow-bottom-circle-D2oEMc8q.js → arrow-bottom-circle-Cbdn7ACO.js} +1 -1
  65. package/dist/assets/{arrow-left-Df-SIX1i.js → arrow-left-DrY4udFt.js} +1 -1
  66. package/dist/assets/{arrow-right-BDOIB91e.js → arrow-right-eYoY6Fn-.js} +1 -1
  67. package/dist/assets/{arrow-top-BVvcydO2.js → arrow-top-B9V51cGn.js} +1 -1
  68. package/dist/assets/{avatar-DFz2ulF7.js → avatar-2eB6eLuW.js} +1 -1
  69. package/dist/assets/{bank-Cnyt4QU_.js → bank-uxI0FEPb.js} +1 -1
  70. package/dist/assets/{basic-BfUXhHFB.js → basic-DwE4_pNZ.js} +1 -1
  71. package/dist/assets/{browser-BUkWjp-o.js → browser-D2P4hLPG.js} +1 -1
  72. package/dist/assets/{card-IYxjJomX.js → card-Dw5aJV-F.js} +1 -1
  73. package/dist/assets/{castArray-Bh7LAzW6.js → castArray-TU0YFD7W.js} +1 -1
  74. package/dist/assets/{chat-ZWntI0Mf.js → chat-DzlurSUn.js} +1 -1
  75. package/dist/assets/{checkmark-Dh0yN2iF.js → checkmark-BuACnofS.js} +1 -1
  76. package/dist/assets/{checkmark-bold-Bt4cBPU1.js → checkmark-bold-DKBk6lJ_.js} +1 -1
  77. package/dist/assets/{chevron-bottom-rVSuTfQs.js → chevron-bottom-Bm92SALE.js} +1 -1
  78. package/dist/assets/{chevron-left-23eOrr6t.js → chevron-left-D1CDsBuj.js} +1 -1
  79. package/dist/assets/{chevron-right-CL8y3TpS.js → chevron-right-EkDEeXfk.js} +1 -1
  80. package/dist/assets/{chevron-top-CsBi6HnK.js → chevron-top-Bko-iLga.js} +1 -1
  81. package/dist/assets/{chrome-store-DxZwxSme.js → chrome-store-DXFXoX57.js} +1 -1
  82. package/dist/assets/{clock-CZfhh78G.js → clock-D20VovOG.js} +1 -1
  83. package/dist/assets/{close-Cz0fw0-j.js → close-YrLzb8nW.js} +1 -1
  84. package/dist/assets/{coinPlaceholder-CVyMD7pR.js → coinPlaceholder-DRymyD2U.js} +1 -1
  85. package/dist/assets/{compass-CPfhckGO.js → compass-BTSPjJsS.js} +1 -1
  86. package/dist/assets/{copy-DLbgz2Ep.js → copy-lcRDLXh1.js} +1 -1
  87. package/dist/assets/{cursor-oaf6WU5M.js → cursor-DgNc04V4.js} +1 -1
  88. package/dist/assets/{cursor-transparent-FibDCNvi.js → cursor-transparent-rxIGQk__.js} +1 -1
  89. package/dist/assets/{debounce-BcnOov-c.js → debounce-FX6cXsEr.js} +1 -1
  90. package/dist/assets/{desktop-BV88k_sD.js → desktop-BcuNxwQ2.js} +1 -1
  91. package/dist/assets/{disconnect-BGwHqY6M.js → disconnect-BNnH_3bD.js} +1 -1
  92. package/dist/assets/{discord-BQpPoPIv.js → discord-C6EsAVmW.js} +1 -1
  93. package/dist/assets/{distribution-D6_kx1kn.js → distribution-DoMsTJJS.js} +1 -1
  94. package/dist/assets/{dropdown-5iZkWbbx.js → dropdown-Dlegd0Mj.js} +1 -1
  95. package/dist/assets/{etherscan-DRdz1Dt9.js → etherscan-CXqX0ka2.js} +1 -1
  96. package/dist/assets/{exclamation-triangle-53c3M4XX.js → exclamation-triangle-B5CGsIhA.js} +1 -1
  97. package/dist/assets/{extension-Cpo9v_sW.js → extension-DwIr95HA.js} +1 -1
  98. package/dist/assets/{external-link-B2p-eblr.js → external-link-BS8FwJwQ.js} +1 -1
  99. package/dist/assets/{facebook-C8k0K4Bd.js → facebook-Ocq68qub.js} +1 -1
  100. package/dist/assets/{farcaster-DKYQmWIj.js → farcaster-D_VQ3K_w.js} +1 -1
  101. package/dist/assets/{filters-DXr0D9Z-.js → filters-Fp84tWxf.js} +1 -1
  102. package/dist/assets/{flux-Dyzr6DiJ.js → flux-CEvPP1R_.js} +1 -1
  103. package/dist/assets/{github-C5GZxrAl.js → github-CPNZeYnJ.js} +1 -1
  104. package/dist/assets/{google-C3f2WFey.js → google-BqbUpFWg.js} +1 -1
  105. package/dist/assets/{hailuo-z85U3IHS.js → hailuo-Dv35ktZK.js} +1 -1
  106. package/dist/assets/{headshots-rwi0uZhu.js → headshots-iPnXOowO.js} +1 -1
  107. package/dist/assets/{help-circle-DQQsznKv.js → help-circle-DYLZTzPB.js} +1 -1
  108. package/dist/assets/{id-BZoQsY7e.js → id-DvOqFg5N.js} +1 -1
  109. package/dist/assets/{image-CXxU6enF.js → image-HEpK0IYE.js} +1 -1
  110. package/dist/assets/{index-B2tYWWTY.js → index-2ZN5mA06.js} +1 -1
  111. package/dist/assets/{index-stylcm2l.js → index-4gPbpW09.js} +1 -1
  112. package/dist/assets/{index-YH0ukigb.js → index-6luPlsJq.js} +1 -1
  113. package/dist/assets/{index-DzFIgtv9.js → index-8gTvcTyC.js} +1 -1
  114. package/dist/assets/{index-bbYCEkR8.js → index-B-pbuIe9.js} +1 -1
  115. package/dist/assets/{index-CU-pd4_1.js → index-B0sfCgZB.js} +1 -1
  116. package/dist/assets/{index-D5X5mNOx.js → index-B1Jvk1gg.js} +1 -1
  117. package/dist/assets/{index-DTi_1Hpw.js → index-B4al3ptV.js} +1 -1
  118. package/dist/assets/{index-BifjEAJw.js → index-B5I_5j0W.js} +1 -1
  119. package/dist/assets/{index-DQPsxO0o.js → index-B6aSFWAx.js} +7 -7
  120. package/dist/assets/{index-Biz2qKf4.js → index-B9BT5CWh.js} +1 -1
  121. package/dist/assets/{index-DkzKvivI.js → index-BO2zSuHI.js} +1 -1
  122. package/dist/assets/{index-CkSVvieG.js → index-BS0xWM_q.js} +1 -1
  123. package/dist/assets/{index-iPHG9FOH.js → index-BWg2kORv.js} +1 -1
  124. package/dist/assets/{index-C_126cjW.js → index-BZkQQ9Fl.js} +1 -1
  125. package/dist/assets/{index-DQvf6AWI.js → index-B_D6aVfC.js} +1 -1
  126. package/dist/assets/{index-6cwVyrOp.js → index-B_klSyKr.js} +3 -3
  127. package/dist/assets/{index-CTPLFZ4P.js → index-Bi_2PIb3.js} +1 -1
  128. package/dist/assets/{index-fhSbsFZ3.js → index-Bjs0d5oK.js} +1 -1
  129. package/dist/assets/{index-DWVvgSsK.js → index-BlAdy8pN.js} +1 -1
  130. package/dist/assets/{index-CZ_9McTM.js → index-BnqTb4B7.js} +1 -1
  131. package/dist/assets/{index-C3lA9Rhc.js → index-BucbGom3.js} +1 -1
  132. package/dist/assets/{index-COvqQDxm.js → index-BvuEYdGc.js} +1 -1
  133. package/dist/assets/{index-DrpM59vH.js → index-C3zM5_t5.js} +1 -1
  134. package/dist/assets/{index-sErz3la2.js → index-CClUCyer.js} +1 -1
  135. package/dist/assets/{index-DS7aPJvj.js → index-CDkPmb7g.js} +1 -1
  136. package/dist/assets/{index-CPhQOQf4.js → index-CG3jnX_0.js} +1 -1
  137. package/dist/assets/{index-Gyh7JQKO.js → index-CHVuzj9C.js} +1 -1
  138. package/dist/assets/{index-CYKzOyP4.js → index-CPAd96Vl.js} +1 -1
  139. package/dist/assets/{index-BQeFqKa0.js → index-CQBMa51z.js} +1 -1
  140. package/dist/assets/{index-CchpSwUP.js → index-CY9GLBIX.js} +1 -1
  141. package/dist/assets/{index-DSQnYSLf.js → index-CbpNQpKu.js} +1 -1
  142. package/dist/assets/{index-OXQ3lXFn.js → index-Cdzt0AhS.js} +1 -1
  143. package/dist/assets/{index-Au8qZ7sQ.js → index-CeObZda0.js} +1 -1
  144. package/dist/assets/{index-C3oMIiJY.js → index-CfDgyS48.js} +4 -4
  145. package/dist/assets/{index-D5GXGgaA.js → index-CiCejwyz.js} +1 -1
  146. package/dist/assets/{index-SgbEbTSP.js → index-Cmp_rHeC.js} +1 -1
  147. package/dist/assets/{index-lV4NBDC3.js → index-CsV31I6l.js} +1 -1
  148. package/dist/assets/{index-BSX41UgY.js → index-CvcYYYkb.js} +1 -1
  149. package/dist/assets/{index-FzBa5hp1.js → index-D-rj0G5n.js} +1 -1
  150. package/dist/assets/{index-S0pGqZs5.js → index-D0K_WNZ3.js} +1 -1
  151. package/dist/assets/{index-Cx1a0Uxk.js → index-D2Ulj3bo.js} +1 -1
  152. package/dist/assets/{index-4Lsbg4lK.js → index-D7U0NaEq.js} +1 -1
  153. package/dist/assets/{index-BFHxlMrJ.js → index-DB-KavPm.js} +1 -1
  154. package/dist/assets/{index-BRYKhtD3.js → index-DBPHtMth.js} +1 -1
  155. package/dist/assets/{index-DcsAIT_C.js → index-DD-FcTL4.js} +1 -1
  156. package/dist/assets/{index-4C41xCSp.js → index-DH3PETHp.js} +1 -1
  157. package/dist/assets/{index-C_F6p4Hs.js → index-DKDlGul-.js} +1 -1
  158. package/dist/assets/{index-B9GUFTnU.js → index-DO4ToxT6.js} +1 -1
  159. package/dist/assets/{index-DcmNBh2a.js → index-DSW6BmjA.js} +1 -1
  160. package/dist/assets/{index-CdO6QFcI.js → index-DYwpQKrC.js} +1 -1
  161. package/dist/assets/{index-DxJZzfML.js → index-Dklaf7ok.js} +1 -1
  162. package/dist/assets/{index-BAC8Tjz0.js → index-Dplrp3d6.js} +1 -1
  163. package/dist/assets/{index-0SGqHgfO.js → index-DreRCPUa.js} +1 -1
  164. package/dist/assets/{index-D0KUU9d6.js → index-DvCk87LF.js} +1 -1
  165. package/dist/assets/{index-DY5IrJsR.js → index-I5GJaChz.js} +1 -1
  166. package/dist/assets/{index-g8w-x634.js → index-IdpcYfvT.js} +1 -1
  167. package/dist/assets/{index-7GMAUoBC.js → index-TEbqMQOF.js} +1 -1
  168. package/dist/assets/{index-CaIwTWGz.js → index-UJyFQLgL.js} +1 -1
  169. package/dist/assets/{index-DbexINpF.js → index-Vz-0Sq9y.js} +1 -1
  170. package/dist/assets/{index-P7DvhMN8.js → index-W5djwD7d.js} +1 -1
  171. package/dist/assets/{index-BbFtzLFU.js → index-j3eqol48.js} +1 -1
  172. package/dist/assets/{index.browser.esm-BvseN538.js → index.browser.esm-LGaYp4Fc.js} +1 -1
  173. package/dist/assets/{index.es-ZYsR1gft.js → index.es-Bf0EzuOj.js} +1 -1
  174. package/dist/assets/{info-BZjy_g4t.js → info-DduID6iD.js} +1 -1
  175. package/dist/assets/{info-circle-ugZY5obo.js → info-circle-D-nMSFOA.js} +1 -1
  176. package/dist/assets/{isEqual-Dv4KvXk2.js → isEqual-D9HcqZOr.js} +1 -1
  177. package/dist/assets/{isPlainObject-Bs-lVLIV.js → isPlainObject-BAcE23eQ.js} +1 -1
  178. package/dist/assets/{kling-B0blIe84.js → kling-cmTKEXN8.js} +1 -1
  179. package/dist/assets/{lightbulb-Uw1gIhs0.js → lightbulb-5j05mxix.js} +1 -1
  180. package/dist/assets/{luma-CHyOJKiV.js → luma-25qXUukI.js} +1 -1
  181. package/dist/assets/{mail-CQXszZ3T.js → mail-CB4dhcdF.js} +1 -1
  182. package/dist/assets/{midjourney-Ind2KrVf.js → midjourney-B2V5nPHr.js} +1 -1
  183. package/dist/assets/{mobile-ae5DeTwq.js → mobile-7BO3yaNg.js} +1 -1
  184. package/dist/assets/{more-C4wMKcTg.js → more-DJgyFWdQ.js} +1 -1
  185. package/dist/assets/{nanobanana-BP2qc06c.js → nanobanana-CxJLSgiD.js} +1 -1
  186. package/dist/assets/{network-placeholder-BKyL3t7r.js → network-placeholder-CHlJBgX1.js} +1 -1
  187. package/dist/assets/{nftPlaceholder-1oI0JmD-.js → nftPlaceholder-hR2yti_U.js} +1 -1
  188. package/dist/assets/{off-DFVHDRlC.js → off-CjifzevJ.js} +1 -1
  189. package/dist/assets/{openaiimage-BwzcVbTC.js → openaiimage-CU5ubSnK.js} +1 -1
  190. package/dist/assets/{order-BSvfFTwo.js → order-Bif2HuLo.js} +1 -1
  191. package/dist/assets/{pika-BojY6kkb.js → pika-CQMZzaV_.js} +1 -1
  192. package/dist/assets/{pixverse-CPT4brMF.js → pixverse-CIe52bTV.js} +1 -1
  193. package/dist/assets/{play-store-BhbkpQPg.js → play-store-621DJLL7.js} +1 -1
  194. package/dist/assets/{plus-9yPguwqq.js → plus-DGDngtcd.js} +1 -1
  195. package/dist/assets/{price-BpS7uuNw.js → price-D8gWk1Bw.js} +1 -1
  196. package/dist/assets/{producer-JzVr7xwt.js → producer-O1DmvtSZ.js} +1 -1
  197. package/dist/assets/{qr-code-BBieibyg.js → qr-code-B8baZnoB.js} +1 -1
  198. package/dist/assets/{qrart-Df4HfVoL.js → qrart-DSv21jga.js} +1 -1
  199. package/dist/assets/{recycle-horizontal-UAtAb3gw.js → recycle-horizontal-fuQDo1Z-.js} +1 -1
  200. package/dist/assets/{refresh-5kxHn0Cj.js → refresh-Hj0doSc1.js} +1 -1
  201. package/dist/assets/{reown-logo-DnelVuoe.js → reown-logo-D51Al_JO.js} +1 -1
  202. package/dist/assets/{search-Cijt3v6e.js → search-BPwaPq6D.js} +1 -1
  203. package/dist/assets/{secp256k1-hCzU41qN.js → secp256k1-BdJ-147J.js} +1 -1
  204. package/dist/assets/{secp256k1-DkMm16uS.js → secp256k1-EytsmNNo.js} +1 -1
  205. package/dist/assets/{seedance-C3HY7Vfq.js → seedance-CVWIQOe1.js} +1 -1
  206. package/dist/assets/{seedream-CFYhsyrT.js → seedream-xUzLEe2m.js} +1 -1
  207. package/dist/assets/{send-HzrTjCRp.js → send-DeO6Lslv.js} +1 -1
  208. package/dist/assets/{service-Cvl6zixI.js → service-D4wq10Fr.js} +1 -1
  209. package/dist/assets/{solana-wallets-BT9p3Azh.js → solana-wallets-DsUv7dFW.js} +2 -2
  210. package/dist/assets/{solana-wallets-vue-BmoLOGzp.js → solana-wallets-vue-C09alB6A.js} +1 -1
  211. package/dist/assets/{solanaEmbed.esm-Q19qVK3s.js → solanaEmbed.esm-Bz2H3Xqd.js} +1 -1
  212. package/dist/assets/{sora-nzmuFvVc.js → sora-Cwt8DDeO.js} +1 -1
  213. package/dist/assets/{string_decoder-CBsT31m1.js → string_decoder-s2xD4mmH.js} +1 -1
  214. package/dist/assets/{suno-DB06l-sK.js → suno-CpuPBJn9.js} +1 -1
  215. package/dist/assets/{swapHorizontal-CT8SMAEJ.js → swapHorizontal-CQyjDCK5.js} +1 -1
  216. package/dist/assets/{swapHorizontalBold-CTqpm2Ey.js → swapHorizontalBold-DG6nNXZx.js} +1 -1
  217. package/dist/assets/{swapHorizontalMedium-DW1qyC-m.js → swapHorizontalMedium-CPd57O-Q.js} +1 -1
  218. package/dist/assets/{swapHorizontalRoundedBold-BzTjYe7b.js → swapHorizontalRoundedBold-CY64CRY7.js} +1 -1
  219. package/dist/assets/{swapVertical-B6Q6vurM.js → swapVertical-DduXTqNJ.js} +1 -1
  220. package/dist/assets/{telegram-C36qhRWg.js → telegram-B7sL4EQQ.js} +1 -1
  221. package/dist/assets/{three-dots-DCv1zwQn.js → three-dots-B0Yy4UQn.js} +1 -1
  222. package/dist/assets/{twitch-bra43bRh.js → twitch-BZwYgwpV.js} +1 -1
  223. package/dist/assets/{twitterIcon-CfmplUVv.js → twitterIcon-BTBMFFAj.js} +1 -1
  224. package/dist/assets/{typescript-yiDXF8KD.js → typescript-B3GzArcZ.js} +1 -1
  225. package/dist/assets/{use-form-item-CMsaxgj4.js → use-form-item-CcgWQuK1.js} +1 -1
  226. package/dist/assets/validator-CI-Lj3sk.js +1 -0
  227. package/dist/assets/{veo-BcW4DcU6.js → veo-DRnm-00G.js} +1 -1
  228. package/dist/assets/{verify-HzQdr5eO.js → verify-BSKBkmSN.js} +1 -1
  229. package/dist/assets/{verify-filled-CMMKnc9N.js → verify-filled-BQwcxlDx.js} +1 -1
  230. package/dist/assets/{w3m-modal-CoS1A2Yw.js → w3m-modal-BIuj5A_P.js} +1 -1
  231. package/dist/assets/{wallet-CpCh5Lq2.js → wallet-C9zzoIJd.js} +1 -1
  232. package/dist/assets/{wallet-placeholder-C3mpOYTN.js → wallet-placeholder-DVd14ZIP.js} +1 -1
  233. package/dist/assets/{walletconnect-Qu-I2eQm.js → walletconnect-LkTz_fZK.js} +1 -1
  234. package/dist/assets/{wan-B5yLrToV.js → wan-DBFsRXp3.js} +1 -1
  235. package/dist/assets/{warning-circle-DAka90yn.js → warning-circle-DWHPcHC8.js} +1 -1
  236. package/dist/assets/{web-CcefUZN4.js → web-DEw29CLe.js} +1 -1
  237. package/dist/assets/{web-BX6GQBy5.js → web-qGqER3un.js} +1 -1
  238. package/dist/assets/{x-BTN2vXIl.js → x-C1e9LjCG.js} +1 -1
  239. package/dist/index.html +1 -1
  240. package/package.json +1 -1
  241. package/dist/assets/validator-CZKjDOeG.js +0 -1
@@ -1 +1 @@
1
- import{s as tt,r as V,f as u,e as ge,ab as z,t as nt,w as G,k as ye,d as re,G as ae,L as ke,I,x as g,z as k,E,F as W,M as B,Q as v,u as Ve,a3 as Re,c as se,a6 as al,n as H,J as M,R as he,o as De,g as P,a5 as at,m as ne,an as ot,S as st,D as j,H as it,C as q,y as L,q as A,O as Xe,N as Ye,K as Ze,U as le,ao as rt,V as Ee,ap as ut,p as ol,a8 as dt}from"./vendor-vue-CpN3YBVJ.js";import{b as _e,e as ct,E as pt}from"./index-DSQnYSLf.js";import{s as ft,E as vt}from"./index-CPhQOQf4.js";import{H as sl,S as mt,bG as Y,y as Se,z as ie,u as il,ae as bt,bT as ht,bw as gt,O as yt,a1 as be,q as xe,T as el,bU as St,U as X,aN as Ct,M as rl,b as Ot,K as wt,bV as It,I as te,bW as ll,bK as Vt,N as tl,Y as Et,be as Tt,R as kt,E as Rt,bX as Dt,a_ as ul,A as Mt}from"./index-C3oMIiJY.js";import{e as $t}from"./strings-DfoVy23u.js";import{c as U}from"./castArray-Bh7LAzW6.js";import{i as oe}from"./isEqual-Dv4KvXk2.js";import{a as Q,c as Lt}from"./typescript-yiDXF8KD.js";import{u as Nt,a as Bt}from"./use-form-item-CMsaxgj4.js";import{u as Wt,a as zt}from"./index-bbYCEkR8.js";import{d as Pt}from"./debounce-BcnOov-c.js";import{b as Ft}from"./_baseIteratee-B-oO7Aez.js";import{u as Kt}from"./index-B9GUFTnU.js";import{C as At}from"./index-CZ_9McTM.js";function Ht(e,o,a,m){e.length;for(var c=a+1;c--;)if(o(e[c],c,e))return c;return-1}function Ut(e,o,a){var m=e==null?0:e.length;if(!m)return-1;var c=m-1;return Ht(e,Ft(o),c)}function Gt(){const e=tt(),o=V(0),a=11,m=u(()=>({minWidth:`${Math.max(o.value,a)}px`}));return Q(e,()=>{var S,t;o.value=(t=(S=e.value)==null?void 0:S.getBoundingClientRect().width)!=null?t:0}),{calculatorRef:e,calculatorWidth:o,inputStyle:m}}const dl=Symbol("ElSelectGroup"),Ce=Symbol("ElSelect"),Te="ElOption",jt=sl({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function qt(e,o){const a=ge(Ce);a||mt(Te,"usage: <el-select><el-option /></el-select/>");const m=ge(dl,{disabled:!1}),c=u(()=>f(U(a.props.modelValue),e.value)),S=u(()=>{var s;if(a.props.multiple){const p=U((s=a.props.modelValue)!=null?s:[]);return!c.value&&p.length>=a.props.multipleLimit&&a.props.multipleLimit>0}else return!1}),t=u(()=>{var s;return(s=e.label)!=null?s:z(e.value)?"":e.value}),C=u(()=>e.value||e.label||""),h=u(()=>e.disabled||o.groupDisabled||S.value),b=ye(),f=(s=[],p)=>{if(z(e.value)){const w=a.props.valueKey;return s&&s.some(T=>nt(Y(T,w))===Y(p,w))}else return s&&s.includes(p)},d=()=>{!e.disabled&&!m.disabled&&(a.states.hoveringIndex=a.optionsArray.indexOf(b.proxy))},i=s=>{const p=new RegExp($t(s),"i");o.visible=p.test(String(t.value))||e.created};return G(()=>t.value,()=>{!e.created&&!a.props.remote&&a.setSelected()}),G(()=>e.value,(s,p)=>{const{remote:w,valueKey:T}=a.props;if((w?s!==p:!oe(s,p))&&(a.onOptionDestroy(p,b.proxy),a.onOptionCreate(b.proxy)),!e.created&&!w){if(T&&z(s)&&z(p)&&s[T]===p[T])return;a.setSelected()}}),G(()=>m.disabled,()=>{o.groupDisabled=m.disabled},{immediate:!0}),{select:a,currentLabel:t,currentValue:C,itemSelected:c,isDisabled:h,hoverItem:d,updateOption:i}}const Qt=re({name:Te,componentName:Te,props:jt,setup(e){const o=ie("select"),a=il(),m=u(()=>[o.be("dropdown","item"),o.is("disabled",Ve(C)),o.is("selected",Ve(t)),o.is("hovering",Ve(i))]),c=se({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:S,itemSelected:t,isDisabled:C,select:h,hoverItem:b,updateOption:f}=qt(e,c),{visible:d,hover:i}=Re(c),s=ye().proxy;h.onOptionCreate(s),al(()=>{const w=s.value,{selected:T}=h.states,R=T.some(y=>y.value===s.value);H(()=>{h.states.cachedOptions.get(w)===s&&!R&&h.states.cachedOptions.delete(w)}),h.onOptionDestroy(w,s)});function p(){C.value||h.handleOptionSelect(s)}return{ns:o,id:a,containerKls:m,currentLabel:S,itemSelected:t,isDisabled:C,select:h,visible:d,hover:i,states:c,hoverItem:b,updateOption:f,selectOptionClick:p}}});function Jt(e,o){return ae((g(),I("li",{id:e.id,class:v(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:B(e.selectOptionClick,["stop"])},[k(e.$slots,"default",{},()=>[E("span",null,W(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[ke,e.visible]])}var Me=Se(Qt,[["render",Jt],["__file","option.vue"]]);const Xt=re({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=ge(Ce),o=ie("select"),a=u(()=>e.props.popperClass),m=u(()=>e.props.multiple),c=u(()=>e.props.fitInputWidth),S=V("");function t(){var C;S.value=`${(C=e.selectRef)==null?void 0:C.offsetWidth}px`}return De(()=>{t(),Q(e.selectRef,t)}),{ns:o,minWidth:S,popperClass:a,isMultiple:m,isFitInputWidth:c}}});function Yt(e,o,a,m,c,S){return g(),I("div",{class:v([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:he({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(g(),I("div",{key:0,class:v(e.ns.be("dropdown","header"))},[k(e.$slots,"header")],2)):M("v-if",!0),k(e.$slots,"default"),e.$slots.footer?(g(),I("div",{key:1,class:v(e.ns.be("dropdown","footer"))},[k(e.$slots,"footer")],2)):M("v-if",!0)],6)}var Zt=Se(Xt,[["render",Yt],["__file","select-dropdown.vue"]]);const _t=(e,o)=>{const{t:a}=bt(),m=il(),c=ie("select"),S=ie("input"),t=se({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),C=V(),h=V(),b=V(),f=V(),d=V(),i=V(),s=V(),p=V(),w=V(),T=V(),R=V(),y=V(!1),N=V(),{form:ue,formItem:F}=Nt(),{inputId:pl}=Bt(e,{formItemContext:F}),{valueOnClear:fl,isEmptyValue:vl}=ht(e),{isComposing:$e,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl}=Wt({afterComposition:l=>He(l)}),Z=u(()=>e.disabled||!!ue?.disabled),{wrapperRef:Le,isFocused:Ne,handleBlur:gl}=zt(d,{disabled:Z,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,t.menuVisibleOnFocus=!0)},beforeBlur(l){var n,r;return((n=b.value)==null?void 0:n.isFocusInsideContent(l))||((r=f.value)==null?void 0:r.isFocusInsideContent(l))},afterBlur(){var l;y.value=!1,t.menuVisibleOnFocus=!1,e.validateEvent&&((l=F?.validate)==null||l.call(F,"blur").catch(n=>el()))}}),Oe=u(()=>P(e.modelValue)?e.modelValue.length>0:!vl(e.modelValue)),yl=u(()=>{var l;return(l=ue?.statusIcon)!=null?l:!1}),Sl=u(()=>e.clearable&&!Z.value&&t.inputHovering&&Oe.value),Be=u(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Cl=u(()=>c.is("reverse",!!(Be.value&&y.value))),we=u(()=>F?.validateState||""),Ol=u(()=>we.value&&gt[we.value]),wl=u(()=>e.remote?300:0),Il=u(()=>e.remote&&!t.inputValue&&t.options.size===0),Vl=u(()=>e.loading?e.loadingText||a("el.select.loading"):e.filterable&&t.inputValue&&t.options.size>0&&_.value===0?e.noMatchText||a("el.select.noMatch"):t.options.size===0?e.noDataText||a("el.select.noData"):null),_=u(()=>D.value.filter(l=>l.visible).length),D=u(()=>{const l=Array.from(t.options.values()),n=[];return t.optionValues.forEach(r=>{const O=l.findIndex($=>$.value===r);O>-1&&n.push(l[O])}),n.length>=l.length?n:l}),El=u(()=>Array.from(t.cachedOptions.values())),Tl=u(()=>{const l=D.value.filter(n=>!n.created).some(n=>n.currentLabel===t.inputValue);return e.filterable&&e.allowCreate&&t.inputValue!==""&&!l}),We=()=>{e.filterable&&ne(e.filterMethod)||e.filterable&&e.remote&&ne(e.remoteMethod)||D.value.forEach(l=>{var n;(n=l.updateOption)==null||n.call(l,t.inputValue)})},ze=yt(),kl=u(()=>["small"].includes(ze.value)?"small":"default"),Rl=u({get(){return y.value&&!Il.value},set(l){y.value=l}}),Dl=u(()=>{if(e.multiple&&!be(e.modelValue))return U(e.modelValue).length===0&&!t.inputValue;const l=P(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||be(l)?!t.inputValue:!0}),Ml=u(()=>{var l;const n=(l=e.placeholder)!=null?l:a("el.select.placeholder");return e.multiple||!Oe.value?n:t.selectedLabel}),$l=u(()=>xe?null:"mouseenter");G(()=>e.modelValue,(l,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(t.inputValue="",de("")),ce(),!oe(l,n)&&e.validateEvent&&F?.validate("change").catch(r=>el())},{flush:"post",deep:!0}),G(()=>y.value,l=>{l?de(t.inputValue):(t.inputValue="",t.previousQuery=null,t.isBeforeHide=!0),o("visible-change",l)}),G(()=>t.options.entries(),()=>{Ot&&(ce(),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value&&Pe())},{flush:"post"}),G([()=>t.hoveringIndex,D],([l])=>{wt(l)&&l>-1?N.value=D.value[l]||{}:N.value={},D.value.forEach(n=>{n.hover=N.value===n})}),at(()=>{t.isBeforeHide||We()});const de=l=>{t.previousQuery===l||$e.value||(t.previousQuery=l,e.filterable&&ne(e.filterMethod)?e.filterMethod(l):e.filterable&&e.remote&&ne(e.remoteMethod)&&e.remoteMethod(l),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value?H(Pe):H(Ll))},Pe=()=>{const l=D.value.filter($=>$.visible&&!$.disabled&&!$.states.groupDisabled),n=l.find($=>$.created),r=l[0],O=D.value.map($=>$.value);t.hoveringIndex=qe(O,n||r)},ce=()=>{if(e.multiple)t.selectedLabel="";else{const n=P(e.modelValue)?e.modelValue[0]:e.modelValue,r=Fe(n);t.selectedLabel=r.currentLabel,t.selected=[r];return}const l=[];be(e.modelValue)||U(e.modelValue).forEach(n=>{l.push(Fe(n))}),t.selected=l},Fe=l=>{let n;const r=ot(l);for(let J=t.cachedOptions.size-1;J>=0;J--){const K=El.value[J];if(r?Y(K.value,e.valueKey)===Y(l,e.valueKey):K.value===l){n={value:l,currentLabel:K.currentLabel,get isDisabled(){return K.isDisabled}};break}}if(n)return n;const O=r?l.label:l??"";return{value:l,currentLabel:O}},Ll=()=>{t.hoveringIndex=D.value.findIndex(l=>t.selected.some(n=>ve(n)===ve(l)))},Nl=()=>{t.selectionWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},Bl=()=>{t.collapseItemWidth=T.value.getBoundingClientRect().width},Ie=()=>{var l,n;(n=(l=b.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ke=()=>{var l,n;(n=(l=f.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ae=()=>{t.inputValue.length>0&&!y.value&&(y.value=!0),de(t.inputValue)},He=l=>{if(t.inputValue=l.target.value,e.remote)Ue();else return Ae()},Ue=Pt(()=>{Ae()},wl.value),x=l=>{oe(e.modelValue,l)||o(rl,l)},Wl=l=>Ut(l,n=>{const r=t.cachedOptions.get(n);return r&&!r.disabled&&!r.states.groupDisabled}),zl=l=>{if(e.multiple&&l.code!==Ct.delete&&l.target.value.length<=0){const n=U(e.modelValue).slice(),r=Wl(n);if(r<0)return;const O=n[r];n.splice(r,1),o(X,n),x(n),o("remove-tag",O)}},Pl=(l,n)=>{const r=t.selected.indexOf(n);if(r>-1&&!Z.value){const O=U(e.modelValue).slice();O.splice(r,1),o(X,O),x(O),o("remove-tag",n.value)}l.stopPropagation(),fe()},Ge=l=>{l.stopPropagation();const n=e.multiple?[]:fl.value;if(e.multiple)for(const r of t.selected)r.isDisabled&&n.push(r.value);o(X,n),x(n),t.hoveringIndex=-1,y.value=!1,o("clear"),fe()},je=l=>{var n;if(e.multiple){const r=U((n=e.modelValue)!=null?n:[]).slice(),O=qe(r,l);O>-1?r.splice(O,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(l.value),o(X,r),x(r),l.created&&de(""),e.filterable&&!e.reserveKeyword&&(t.inputValue="")}else o(X,l.value),x(l.value),y.value=!1;fe(),!y.value&&H(()=>{pe(l)})},qe=(l,n)=>be(n)?-1:z(n.value)?l.findIndex(r=>oe(Y(r,e.valueKey),ve(n))):l.indexOf(n.value),pe=l=>{var n,r,O,$,J;const K=P(l)?l[0]:l;let me=null;if(K?.value){const ee=D.value.filter(lt=>lt.value===K.value);ee.length>0&&(me=ee[0].$el)}if(b.value&&me){const ee=($=(O=(r=(n=b.value)==null?void 0:n.popperRef)==null?void 0:r.contentRef)==null?void 0:O.querySelector)==null?void 0:$.call(O,`.${c.be("dropdown","wrap")}`);ee&&St(ee,me)}(J=R.value)==null||J.handleScroll()},Fl=l=>{t.options.set(l.value,l),t.cachedOptions.set(l.value,l)},Kl=(l,n)=>{t.options.get(l)===n&&t.options.delete(l)},Al=u(()=>{var l,n;return(n=(l=b.value)==null?void 0:l.popperRef)==null?void 0:n.contentRef}),Hl=()=>{t.isBeforeHide=!1,H(()=>{var l;(l=R.value)==null||l.update(),pe(t.selected)})},fe=()=>{var l;(l=d.value)==null||l.focus()},Ul=()=>{var l;if(y.value){y.value=!1,H(()=>{var n;return(n=d.value)==null?void 0:n.blur()});return}(l=d.value)==null||l.blur()},Gl=l=>{Ge(l)},jl=l=>{if(y.value=!1,Ne.value){const n=new FocusEvent("focus",l);H(()=>gl(n))}},ql=()=>{t.inputValue.length>0?t.inputValue="":y.value=!1},Qe=()=>{Z.value||(xe&&(t.inputHovering=!0),t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:y.value=!y.value)},Ql=()=>{if(!y.value)Qe();else{const l=D.value[t.hoveringIndex];l&&!l.isDisabled&&je(l)}},ve=l=>z(l.value)?Y(l.value,e.valueKey):l.value,Jl=u(()=>D.value.filter(l=>l.visible).every(l=>l.isDisabled)),Xl=u(()=>e.multiple?e.collapseTags?t.selected.slice(0,e.maxCollapseTags):t.selected:[]),Yl=u(()=>e.multiple?e.collapseTags?t.selected.slice(e.maxCollapseTags):[]:[]),Je=l=>{if(!y.value){y.value=!0;return}if(!(t.options.size===0||_.value===0||$e.value)&&!Jl.value){l==="next"?(t.hoveringIndex++,t.hoveringIndex===t.options.size&&(t.hoveringIndex=0)):l==="prev"&&(t.hoveringIndex--,t.hoveringIndex<0&&(t.hoveringIndex=t.options.size-1));const n=D.value[t.hoveringIndex];(n.isDisabled||!n.visible)&&Je(l),H(()=>pe(N.value))}},Zl=()=>{if(!h.value)return 0;const l=window.getComputedStyle(h.value);return Number.parseFloat(l.gap||"6px")},_l=u(()=>{const l=Zl();return{maxWidth:`${T.value&&e.maxCollapseTags===1?t.selectionWidth-t.collapseItemWidth-l:t.selectionWidth}px`}}),xl=u(()=>({maxWidth:`${t.selectionWidth}px`})),et=l=>{o("popup-scroll",l)};return Q(h,Nl),Q(p,Ie),Q(Le,Ie),Q(w,Ke),Q(T,Bl),De(()=>{ce()}),{inputId:pl,contentId:m,nsSelect:c,nsInput:S,states:t,isFocused:Ne,expanded:y,optionsArray:D,hoverOption:N,selectSize:ze,filteredOptionsCount:_,updateTooltip:Ie,updateTagTooltip:Ke,debouncedOnInputChange:Ue,onInput:He,deletePrevTag:zl,deleteTag:Pl,deleteSelected:Ge,handleOptionSelect:je,scrollToOption:pe,hasModelValue:Oe,shouldShowPlaceholder:Dl,currentPlaceholder:Ml,mouseEnterEventName:$l,needStatusIcon:yl,showClose:Sl,iconComponent:Be,iconReverse:Cl,validateState:we,validateIcon:Ol,showNewOption:Tl,updateOptions:We,collapseTagSize:kl,setSelected:ce,selectDisabled:Z,emptyText:Vl,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl,onOptionCreate:Fl,onOptionDestroy:Kl,handleMenuEnter:Hl,focus:fe,blur:Ul,handleClearClick:Gl,handleClickOutside:jl,handleEsc:ql,toggleMenu:Qe,selectOption:Ql,getValueKey:ve,navigateOptions:Je,dropdownMenuVisible:Rl,showTagList:Xl,collapseTagList:Yl,popupScroll:et,tagStyle:_l,collapseTagStyle:xl,popperRef:Al,inputRef:d,tooltipRef:b,tagTooltipRef:f,prefixRef:i,suffixRef:s,selectRef:C,wrapperRef:Le,selectionRef:h,scrollbarRef:R,menuRef:p,tagMenuRef:w,collapseItemRef:T}};var xt=re({name:"ElOptions",setup(e,{slots:o}){const a=ge(Ce);let m=[];return()=>{var c,S;const t=(c=o.default)==null?void 0:c.call(o),C=[];function h(b){P(b)&&b.forEach(f=>{var d,i,s,p;const w=(d=f?.type||{})==null?void 0:d.name;w==="ElOptionGroup"?h(!st(f.children)&&!P(f.children)&&ne((i=f.children)==null?void 0:i.default)?(s=f.children)==null?void 0:s.default():f.children):w==="ElOption"?C.push((p=f.props)==null?void 0:p.value):P(f.children)&&h(f.children)})}return t.length&&h((S=t[0])==null?void 0:S.children),oe(C,m)||(m=C,a&&(a.states.optionValues=C)),t}}});const en=sl({name:String,id:String,modelValue:{type:te([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Tt,effect:{type:te(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:te(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:_e.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:tl,default:Et},fitInputWidth:Boolean,suffixIcon:{type:tl,default:Vt},tagType:{...ll.type,default:"info"},tagEffect:{...ll.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:te(String),values:ct,default:"bottom-start"},fallbackPlacements:{type:te(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:_e.appendTo,...It,...Kt(["ariaLabel"])});ft.scroll;const nl="ElSelect",ln=re({name:nl,componentName:nl,components:{ElSelectMenu:Zt,ElOption:Me,ElOptions:xt,ElTag:Rt,ElScrollbar:vt,ElTooltip:pt,ElIcon:kt},directives:{ClickOutside:At},props:en,emits:[X,rl,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:o,slots:a}){const m=ye();m.appContext.config.warnHandler=(...i)=>{!i[0]||i[0].includes('Slot "default" invoked outside of the render function')||console.warn(...i)};const c=u(()=>{const{modelValue:i,multiple:s}=e,p=s?[]:void 0;return P(i)?s?i:p:s?p:i}),S=se({...Re(e),modelValue:c}),t=_t(S,o),{calculatorRef:C,inputStyle:h}=Gt(),b=i=>i.reduce((s,p)=>(s.push(p),p.children&&p.children.length>0&&s.push(...b(p.children)),s),[]),f=i=>{Dt(i||[]).forEach(p=>{var w;if(z(p)&&(p.type.name==="ElOption"||p.type.name==="ElTree")){const T=p.type.name;if(T==="ElTree"){const R=((w=p.props)==null?void 0:w.data)||[];b(R).forEach(N=>{N.currentLabel=N.label||(z(N.value)?"":N.value),t.onOptionCreate(N)})}else if(T==="ElOption"){const R={...p.props};R.currentLabel=R.label||(z(R.value)?"":R.value),t.onOptionCreate(R)}}})};G(()=>{var i;return(i=a.default)==null?void 0:i.call(a)},i=>{e.persistent||f(i)},{immediate:!0}),ol(Ce,se({props:S,states:t.states,selectRef:t.selectRef,optionsArray:t.optionsArray,setSelected:t.setSelected,handleOptionSelect:t.handleOptionSelect,onOptionCreate:t.onOptionCreate,onOptionDestroy:t.onOptionDestroy}));const d=u(()=>e.multiple?t.states.selected.map(i=>i.currentLabel):t.states.selectedLabel);return al(()=>{m.appContext.config.warnHandler=void 0}),{...t,modelValue:c,selectedLabel:d,calculatorRef:C,inputStyle:h}}});function tn(e,o){const a=j("el-tag"),m=j("el-tooltip"),c=j("el-icon"),S=j("el-option"),t=j("el-options"),C=j("el-scrollbar"),h=j("el-select-menu"),b=it("click-outside");return ae((g(),I("div",{ref:"selectRef",class:v([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[ut(e.mouseEnterEventName)]:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[q(m,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:L(()=>{var f;return[E("div",{ref:"wrapperRef",class:v([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:B(e.toggleMenu,["prevent"])},[e.$slots.prefix?(g(),I("div",{key:0,ref:"prefixRef",class:v(e.nsSelect.e("prefix"))},[k(e.$slots,"prefix")],2)):M("v-if",!0),E("div",{ref:"selectionRef",class:v([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?k(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(g(!0),I(Xe,null,Ye(e.showTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.tagStyle),onClose:i=>e.deleteTag(i,d)},{default:L(()=>[E("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[Ze(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(g(),A(m,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,teleported:e.teleported},{default:L(()=>[E("div",{ref:"collapseItemRef",class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.collapseTagStyle)},{default:L(()=>[E("span",{class:v(e.nsSelect.e("tags-text"))}," + "+W(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:L(()=>[E("div",{ref:"tagMenuRef",class:v(e.nsSelect.e("selection"))},[(g(!0),I(Xe,null,Ye(e.collapseTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:i=>e.deleteTag(i,d)},{default:L(()=>[E("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[Ze(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","teleported"])):M("v-if",!0)]):M("v-if",!0),E("div",{class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ae(E("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,type:"text",name:e.name,class:v([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:he(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((f=e.hoverOption)==null?void 0:f.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[le(B(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),le(B(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),le(B(e.handleEsc,["stop","prevent"]),["esc"]),le(B(e.selectOption,["stop","prevent"]),["enter"]),le(B(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:B(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[rt,e.states.inputValue]]),e.filterable?(g(),I("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:v(e.nsSelect.e("input-calculator")),textContent:W(e.states.inputValue)},null,10,["textContent"])):M("v-if",!0)],2),e.shouldShowPlaceholder?(g(),I("div",{key:1,class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?k(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,W(e.currentPlaceholder),1)]):(g(),I("span",{key:1},W(e.currentPlaceholder),1))],2)):M("v-if",!0)],2),E("div",{ref:"suffixRef",class:v(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(g(),A(c,{key:0,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(g(),A(Ee(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),e.showClose&&e.clearIcon?(g(),A(c,{key:1,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:L(()=>[(g(),A(Ee(e.clearIcon)))]),_:1},8,["class","onClick"])):M("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(g(),A(c,{key:2,class:v([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:L(()=>[(g(),A(Ee(e.validateIcon)))]),_:1},8,["class"])):M("v-if",!0)],2)],10,["onClick"])]}),content:L(()=>[q(h,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(g(),I("div",{key:0,class:v(e.nsSelect.be("dropdown","header")),onClick:B(()=>{},["stop"])},[k(e.$slots,"header")],10,["onClick"])):M("v-if",!0),ae(q(C,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:v([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:L(()=>[e.showNewOption?(g(),A(S,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):M("v-if",!0),q(t,null,{default:L(()=>[k(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[ke,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(g(),I("div",{key:1,class:v(e.nsSelect.be("dropdown","loading"))},[k(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(g(),I("div",{key:2,class:v(e.nsSelect.be("dropdown","empty"))},[k(e.$slots,"empty",{},()=>[E("span",null,W(e.emptyText),1)])],2)):M("v-if",!0),e.$slots.footer?(g(),I("div",{key:3,class:v(e.nsSelect.be("dropdown","footer")),onClick:B(()=>{},["stop"])},[k(e.$slots,"footer")],10,["onClick"])):M("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[b,e.handleClickOutside,e.popperRef]])}var nn=Se(ln,[["render",tn],["__file","select.vue"]]);const an=re({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const o=ie("select"),a=V(),m=ye(),c=V([]);ol(dl,se({...Re(e)}));const S=u(()=>c.value.some(b=>b.visible===!0)),t=b=>{var f;return b.type.name==="ElOption"&&!!((f=b.component)!=null&&f.proxy)},C=b=>{const f=U(b),d=[];return f.forEach(i=>{var s;dt(i)&&(t(i)?d.push(i.component.proxy):P(i.children)&&i.children.length?d.push(...C(i.children)):(s=i.component)!=null&&s.subTree&&d.push(...C(i.component.subTree)))}),d},h=()=>{c.value=C(m.subTree)};return De(()=>{h()}),Lt(a,h,{attributes:!0,subtree:!0,childList:!0}),{groupRef:a,visible:S,ns:o}}});function on(e,o,a,m,c,S){return ae((g(),I("ul",{ref:"groupRef",class:v(e.ns.be("group","wrap"))},[E("li",{class:v(e.ns.be("group","title"))},W(e.label),3),E("li",null,[E("ul",{class:v(e.ns.b("group"))},[k(e.$slots,"default")],2)])],2)),[[ke,e.visible]])}var cl=Se(an,[["render",on],["__file","option-group.vue"]]);const Cn=Mt(nn,{Option:Me,OptionGroup:cl}),On=ul(Me);ul(cl);export{On as E,Cn as a};
1
+ import{s as tt,r as V,f as u,e as ge,ab as z,t as nt,w as G,k as ye,d as re,G as ae,L as ke,I,x as g,z as k,E,F as W,M as B,Q as v,u as Ve,a3 as Re,c as se,a6 as al,n as H,J as M,R as he,o as De,g as P,a5 as at,m as ne,an as ot,S as st,D as j,H as it,C as q,y as L,q as A,O as Xe,N as Ye,K as Ze,U as le,ao as rt,V as Ee,ap as ut,p as ol,a8 as dt}from"./vendor-vue-CpN3YBVJ.js";import{b as _e,e as ct,E as pt}from"./index-CbpNQpKu.js";import{s as ft,E as vt}from"./index-CG3jnX_0.js";import{H as sl,S as mt,bG as Y,y as Se,z as ie,u as il,ae as bt,bT as ht,bw as gt,O as yt,a1 as be,q as xe,T as el,bU as St,U as X,aN as Ct,M as rl,b as Ot,K as wt,bV as It,I as te,bW as ll,bK as Vt,N as tl,Y as Et,be as Tt,R as kt,E as Rt,bX as Dt,a_ as ul,A as Mt}from"./index-CfDgyS48.js";import{e as $t}from"./strings-DfoVy23u.js";import{c as U}from"./castArray-TU0YFD7W.js";import{i as oe}from"./isEqual-D9HcqZOr.js";import{a as Q,c as Lt}from"./typescript-B3GzArcZ.js";import{u as Nt,a as Bt}from"./use-form-item-CcgWQuK1.js";import{u as Wt,a as zt}from"./index-B-pbuIe9.js";import{d as Pt}from"./debounce-FX6cXsEr.js";import{b as Ft}from"./_baseIteratee-BBFOY7-g.js";import{u as Kt}from"./index-DO4ToxT6.js";import{C as At}from"./index-BnqTb4B7.js";function Ht(e,o,a,m){e.length;for(var c=a+1;c--;)if(o(e[c],c,e))return c;return-1}function Ut(e,o,a){var m=e==null?0:e.length;if(!m)return-1;var c=m-1;return Ht(e,Ft(o),c)}function Gt(){const e=tt(),o=V(0),a=11,m=u(()=>({minWidth:`${Math.max(o.value,a)}px`}));return Q(e,()=>{var S,t;o.value=(t=(S=e.value)==null?void 0:S.getBoundingClientRect().width)!=null?t:0}),{calculatorRef:e,calculatorWidth:o,inputStyle:m}}const dl=Symbol("ElSelectGroup"),Ce=Symbol("ElSelect"),Te="ElOption",jt=sl({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function qt(e,o){const a=ge(Ce);a||mt(Te,"usage: <el-select><el-option /></el-select/>");const m=ge(dl,{disabled:!1}),c=u(()=>f(U(a.props.modelValue),e.value)),S=u(()=>{var s;if(a.props.multiple){const p=U((s=a.props.modelValue)!=null?s:[]);return!c.value&&p.length>=a.props.multipleLimit&&a.props.multipleLimit>0}else return!1}),t=u(()=>{var s;return(s=e.label)!=null?s:z(e.value)?"":e.value}),C=u(()=>e.value||e.label||""),h=u(()=>e.disabled||o.groupDisabled||S.value),b=ye(),f=(s=[],p)=>{if(z(e.value)){const w=a.props.valueKey;return s&&s.some(T=>nt(Y(T,w))===Y(p,w))}else return s&&s.includes(p)},d=()=>{!e.disabled&&!m.disabled&&(a.states.hoveringIndex=a.optionsArray.indexOf(b.proxy))},i=s=>{const p=new RegExp($t(s),"i");o.visible=p.test(String(t.value))||e.created};return G(()=>t.value,()=>{!e.created&&!a.props.remote&&a.setSelected()}),G(()=>e.value,(s,p)=>{const{remote:w,valueKey:T}=a.props;if((w?s!==p:!oe(s,p))&&(a.onOptionDestroy(p,b.proxy),a.onOptionCreate(b.proxy)),!e.created&&!w){if(T&&z(s)&&z(p)&&s[T]===p[T])return;a.setSelected()}}),G(()=>m.disabled,()=>{o.groupDisabled=m.disabled},{immediate:!0}),{select:a,currentLabel:t,currentValue:C,itemSelected:c,isDisabled:h,hoverItem:d,updateOption:i}}const Qt=re({name:Te,componentName:Te,props:jt,setup(e){const o=ie("select"),a=il(),m=u(()=>[o.be("dropdown","item"),o.is("disabled",Ve(C)),o.is("selected",Ve(t)),o.is("hovering",Ve(i))]),c=se({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:S,itemSelected:t,isDisabled:C,select:h,hoverItem:b,updateOption:f}=qt(e,c),{visible:d,hover:i}=Re(c),s=ye().proxy;h.onOptionCreate(s),al(()=>{const w=s.value,{selected:T}=h.states,R=T.some(y=>y.value===s.value);H(()=>{h.states.cachedOptions.get(w)===s&&!R&&h.states.cachedOptions.delete(w)}),h.onOptionDestroy(w,s)});function p(){C.value||h.handleOptionSelect(s)}return{ns:o,id:a,containerKls:m,currentLabel:S,itemSelected:t,isDisabled:C,select:h,visible:d,hover:i,states:c,hoverItem:b,updateOption:f,selectOptionClick:p}}});function Jt(e,o){return ae((g(),I("li",{id:e.id,class:v(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:B(e.selectOptionClick,["stop"])},[k(e.$slots,"default",{},()=>[E("span",null,W(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[ke,e.visible]])}var Me=Se(Qt,[["render",Jt],["__file","option.vue"]]);const Xt=re({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=ge(Ce),o=ie("select"),a=u(()=>e.props.popperClass),m=u(()=>e.props.multiple),c=u(()=>e.props.fitInputWidth),S=V("");function t(){var C;S.value=`${(C=e.selectRef)==null?void 0:C.offsetWidth}px`}return De(()=>{t(),Q(e.selectRef,t)}),{ns:o,minWidth:S,popperClass:a,isMultiple:m,isFitInputWidth:c}}});function Yt(e,o,a,m,c,S){return g(),I("div",{class:v([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:he({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(g(),I("div",{key:0,class:v(e.ns.be("dropdown","header"))},[k(e.$slots,"header")],2)):M("v-if",!0),k(e.$slots,"default"),e.$slots.footer?(g(),I("div",{key:1,class:v(e.ns.be("dropdown","footer"))},[k(e.$slots,"footer")],2)):M("v-if",!0)],6)}var Zt=Se(Xt,[["render",Yt],["__file","select-dropdown.vue"]]);const _t=(e,o)=>{const{t:a}=bt(),m=il(),c=ie("select"),S=ie("input"),t=se({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),C=V(),h=V(),b=V(),f=V(),d=V(),i=V(),s=V(),p=V(),w=V(),T=V(),R=V(),y=V(!1),N=V(),{form:ue,formItem:F}=Nt(),{inputId:pl}=Bt(e,{formItemContext:F}),{valueOnClear:fl,isEmptyValue:vl}=ht(e),{isComposing:$e,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl}=Wt({afterComposition:l=>He(l)}),Z=u(()=>e.disabled||!!ue?.disabled),{wrapperRef:Le,isFocused:Ne,handleBlur:gl}=zt(d,{disabled:Z,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,t.menuVisibleOnFocus=!0)},beforeBlur(l){var n,r;return((n=b.value)==null?void 0:n.isFocusInsideContent(l))||((r=f.value)==null?void 0:r.isFocusInsideContent(l))},afterBlur(){var l;y.value=!1,t.menuVisibleOnFocus=!1,e.validateEvent&&((l=F?.validate)==null||l.call(F,"blur").catch(n=>el()))}}),Oe=u(()=>P(e.modelValue)?e.modelValue.length>0:!vl(e.modelValue)),yl=u(()=>{var l;return(l=ue?.statusIcon)!=null?l:!1}),Sl=u(()=>e.clearable&&!Z.value&&t.inputHovering&&Oe.value),Be=u(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Cl=u(()=>c.is("reverse",!!(Be.value&&y.value))),we=u(()=>F?.validateState||""),Ol=u(()=>we.value&&gt[we.value]),wl=u(()=>e.remote?300:0),Il=u(()=>e.remote&&!t.inputValue&&t.options.size===0),Vl=u(()=>e.loading?e.loadingText||a("el.select.loading"):e.filterable&&t.inputValue&&t.options.size>0&&_.value===0?e.noMatchText||a("el.select.noMatch"):t.options.size===0?e.noDataText||a("el.select.noData"):null),_=u(()=>D.value.filter(l=>l.visible).length),D=u(()=>{const l=Array.from(t.options.values()),n=[];return t.optionValues.forEach(r=>{const O=l.findIndex($=>$.value===r);O>-1&&n.push(l[O])}),n.length>=l.length?n:l}),El=u(()=>Array.from(t.cachedOptions.values())),Tl=u(()=>{const l=D.value.filter(n=>!n.created).some(n=>n.currentLabel===t.inputValue);return e.filterable&&e.allowCreate&&t.inputValue!==""&&!l}),We=()=>{e.filterable&&ne(e.filterMethod)||e.filterable&&e.remote&&ne(e.remoteMethod)||D.value.forEach(l=>{var n;(n=l.updateOption)==null||n.call(l,t.inputValue)})},ze=yt(),kl=u(()=>["small"].includes(ze.value)?"small":"default"),Rl=u({get(){return y.value&&!Il.value},set(l){y.value=l}}),Dl=u(()=>{if(e.multiple&&!be(e.modelValue))return U(e.modelValue).length===0&&!t.inputValue;const l=P(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||be(l)?!t.inputValue:!0}),Ml=u(()=>{var l;const n=(l=e.placeholder)!=null?l:a("el.select.placeholder");return e.multiple||!Oe.value?n:t.selectedLabel}),$l=u(()=>xe?null:"mouseenter");G(()=>e.modelValue,(l,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(t.inputValue="",de("")),ce(),!oe(l,n)&&e.validateEvent&&F?.validate("change").catch(r=>el())},{flush:"post",deep:!0}),G(()=>y.value,l=>{l?de(t.inputValue):(t.inputValue="",t.previousQuery=null,t.isBeforeHide=!0),o("visible-change",l)}),G(()=>t.options.entries(),()=>{Ot&&(ce(),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value&&Pe())},{flush:"post"}),G([()=>t.hoveringIndex,D],([l])=>{wt(l)&&l>-1?N.value=D.value[l]||{}:N.value={},D.value.forEach(n=>{n.hover=N.value===n})}),at(()=>{t.isBeforeHide||We()});const de=l=>{t.previousQuery===l||$e.value||(t.previousQuery=l,e.filterable&&ne(e.filterMethod)?e.filterMethod(l):e.filterable&&e.remote&&ne(e.remoteMethod)&&e.remoteMethod(l),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value?H(Pe):H(Ll))},Pe=()=>{const l=D.value.filter($=>$.visible&&!$.disabled&&!$.states.groupDisabled),n=l.find($=>$.created),r=l[0],O=D.value.map($=>$.value);t.hoveringIndex=qe(O,n||r)},ce=()=>{if(e.multiple)t.selectedLabel="";else{const n=P(e.modelValue)?e.modelValue[0]:e.modelValue,r=Fe(n);t.selectedLabel=r.currentLabel,t.selected=[r];return}const l=[];be(e.modelValue)||U(e.modelValue).forEach(n=>{l.push(Fe(n))}),t.selected=l},Fe=l=>{let n;const r=ot(l);for(let J=t.cachedOptions.size-1;J>=0;J--){const K=El.value[J];if(r?Y(K.value,e.valueKey)===Y(l,e.valueKey):K.value===l){n={value:l,currentLabel:K.currentLabel,get isDisabled(){return K.isDisabled}};break}}if(n)return n;const O=r?l.label:l??"";return{value:l,currentLabel:O}},Ll=()=>{t.hoveringIndex=D.value.findIndex(l=>t.selected.some(n=>ve(n)===ve(l)))},Nl=()=>{t.selectionWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},Bl=()=>{t.collapseItemWidth=T.value.getBoundingClientRect().width},Ie=()=>{var l,n;(n=(l=b.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ke=()=>{var l,n;(n=(l=f.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ae=()=>{t.inputValue.length>0&&!y.value&&(y.value=!0),de(t.inputValue)},He=l=>{if(t.inputValue=l.target.value,e.remote)Ue();else return Ae()},Ue=Pt(()=>{Ae()},wl.value),x=l=>{oe(e.modelValue,l)||o(rl,l)},Wl=l=>Ut(l,n=>{const r=t.cachedOptions.get(n);return r&&!r.disabled&&!r.states.groupDisabled}),zl=l=>{if(e.multiple&&l.code!==Ct.delete&&l.target.value.length<=0){const n=U(e.modelValue).slice(),r=Wl(n);if(r<0)return;const O=n[r];n.splice(r,1),o(X,n),x(n),o("remove-tag",O)}},Pl=(l,n)=>{const r=t.selected.indexOf(n);if(r>-1&&!Z.value){const O=U(e.modelValue).slice();O.splice(r,1),o(X,O),x(O),o("remove-tag",n.value)}l.stopPropagation(),fe()},Ge=l=>{l.stopPropagation();const n=e.multiple?[]:fl.value;if(e.multiple)for(const r of t.selected)r.isDisabled&&n.push(r.value);o(X,n),x(n),t.hoveringIndex=-1,y.value=!1,o("clear"),fe()},je=l=>{var n;if(e.multiple){const r=U((n=e.modelValue)!=null?n:[]).slice(),O=qe(r,l);O>-1?r.splice(O,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(l.value),o(X,r),x(r),l.created&&de(""),e.filterable&&!e.reserveKeyword&&(t.inputValue="")}else o(X,l.value),x(l.value),y.value=!1;fe(),!y.value&&H(()=>{pe(l)})},qe=(l,n)=>be(n)?-1:z(n.value)?l.findIndex(r=>oe(Y(r,e.valueKey),ve(n))):l.indexOf(n.value),pe=l=>{var n,r,O,$,J;const K=P(l)?l[0]:l;let me=null;if(K?.value){const ee=D.value.filter(lt=>lt.value===K.value);ee.length>0&&(me=ee[0].$el)}if(b.value&&me){const ee=($=(O=(r=(n=b.value)==null?void 0:n.popperRef)==null?void 0:r.contentRef)==null?void 0:O.querySelector)==null?void 0:$.call(O,`.${c.be("dropdown","wrap")}`);ee&&St(ee,me)}(J=R.value)==null||J.handleScroll()},Fl=l=>{t.options.set(l.value,l),t.cachedOptions.set(l.value,l)},Kl=(l,n)=>{t.options.get(l)===n&&t.options.delete(l)},Al=u(()=>{var l,n;return(n=(l=b.value)==null?void 0:l.popperRef)==null?void 0:n.contentRef}),Hl=()=>{t.isBeforeHide=!1,H(()=>{var l;(l=R.value)==null||l.update(),pe(t.selected)})},fe=()=>{var l;(l=d.value)==null||l.focus()},Ul=()=>{var l;if(y.value){y.value=!1,H(()=>{var n;return(n=d.value)==null?void 0:n.blur()});return}(l=d.value)==null||l.blur()},Gl=l=>{Ge(l)},jl=l=>{if(y.value=!1,Ne.value){const n=new FocusEvent("focus",l);H(()=>gl(n))}},ql=()=>{t.inputValue.length>0?t.inputValue="":y.value=!1},Qe=()=>{Z.value||(xe&&(t.inputHovering=!0),t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:y.value=!y.value)},Ql=()=>{if(!y.value)Qe();else{const l=D.value[t.hoveringIndex];l&&!l.isDisabled&&je(l)}},ve=l=>z(l.value)?Y(l.value,e.valueKey):l.value,Jl=u(()=>D.value.filter(l=>l.visible).every(l=>l.isDisabled)),Xl=u(()=>e.multiple?e.collapseTags?t.selected.slice(0,e.maxCollapseTags):t.selected:[]),Yl=u(()=>e.multiple?e.collapseTags?t.selected.slice(e.maxCollapseTags):[]:[]),Je=l=>{if(!y.value){y.value=!0;return}if(!(t.options.size===0||_.value===0||$e.value)&&!Jl.value){l==="next"?(t.hoveringIndex++,t.hoveringIndex===t.options.size&&(t.hoveringIndex=0)):l==="prev"&&(t.hoveringIndex--,t.hoveringIndex<0&&(t.hoveringIndex=t.options.size-1));const n=D.value[t.hoveringIndex];(n.isDisabled||!n.visible)&&Je(l),H(()=>pe(N.value))}},Zl=()=>{if(!h.value)return 0;const l=window.getComputedStyle(h.value);return Number.parseFloat(l.gap||"6px")},_l=u(()=>{const l=Zl();return{maxWidth:`${T.value&&e.maxCollapseTags===1?t.selectionWidth-t.collapseItemWidth-l:t.selectionWidth}px`}}),xl=u(()=>({maxWidth:`${t.selectionWidth}px`})),et=l=>{o("popup-scroll",l)};return Q(h,Nl),Q(p,Ie),Q(Le,Ie),Q(w,Ke),Q(T,Bl),De(()=>{ce()}),{inputId:pl,contentId:m,nsSelect:c,nsInput:S,states:t,isFocused:Ne,expanded:y,optionsArray:D,hoverOption:N,selectSize:ze,filteredOptionsCount:_,updateTooltip:Ie,updateTagTooltip:Ke,debouncedOnInputChange:Ue,onInput:He,deletePrevTag:zl,deleteTag:Pl,deleteSelected:Ge,handleOptionSelect:je,scrollToOption:pe,hasModelValue:Oe,shouldShowPlaceholder:Dl,currentPlaceholder:Ml,mouseEnterEventName:$l,needStatusIcon:yl,showClose:Sl,iconComponent:Be,iconReverse:Cl,validateState:we,validateIcon:Ol,showNewOption:Tl,updateOptions:We,collapseTagSize:kl,setSelected:ce,selectDisabled:Z,emptyText:Vl,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl,onOptionCreate:Fl,onOptionDestroy:Kl,handleMenuEnter:Hl,focus:fe,blur:Ul,handleClearClick:Gl,handleClickOutside:jl,handleEsc:ql,toggleMenu:Qe,selectOption:Ql,getValueKey:ve,navigateOptions:Je,dropdownMenuVisible:Rl,showTagList:Xl,collapseTagList:Yl,popupScroll:et,tagStyle:_l,collapseTagStyle:xl,popperRef:Al,inputRef:d,tooltipRef:b,tagTooltipRef:f,prefixRef:i,suffixRef:s,selectRef:C,wrapperRef:Le,selectionRef:h,scrollbarRef:R,menuRef:p,tagMenuRef:w,collapseItemRef:T}};var xt=re({name:"ElOptions",setup(e,{slots:o}){const a=ge(Ce);let m=[];return()=>{var c,S;const t=(c=o.default)==null?void 0:c.call(o),C=[];function h(b){P(b)&&b.forEach(f=>{var d,i,s,p;const w=(d=f?.type||{})==null?void 0:d.name;w==="ElOptionGroup"?h(!st(f.children)&&!P(f.children)&&ne((i=f.children)==null?void 0:i.default)?(s=f.children)==null?void 0:s.default():f.children):w==="ElOption"?C.push((p=f.props)==null?void 0:p.value):P(f.children)&&h(f.children)})}return t.length&&h((S=t[0])==null?void 0:S.children),oe(C,m)||(m=C,a&&(a.states.optionValues=C)),t}}});const en=sl({name:String,id:String,modelValue:{type:te([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Tt,effect:{type:te(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:te(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:_e.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:tl,default:Et},fitInputWidth:Boolean,suffixIcon:{type:tl,default:Vt},tagType:{...ll.type,default:"info"},tagEffect:{...ll.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:te(String),values:ct,default:"bottom-start"},fallbackPlacements:{type:te(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:_e.appendTo,...It,...Kt(["ariaLabel"])});ft.scroll;const nl="ElSelect",ln=re({name:nl,componentName:nl,components:{ElSelectMenu:Zt,ElOption:Me,ElOptions:xt,ElTag:Rt,ElScrollbar:vt,ElTooltip:pt,ElIcon:kt},directives:{ClickOutside:At},props:en,emits:[X,rl,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:o,slots:a}){const m=ye();m.appContext.config.warnHandler=(...i)=>{!i[0]||i[0].includes('Slot "default" invoked outside of the render function')||console.warn(...i)};const c=u(()=>{const{modelValue:i,multiple:s}=e,p=s?[]:void 0;return P(i)?s?i:p:s?p:i}),S=se({...Re(e),modelValue:c}),t=_t(S,o),{calculatorRef:C,inputStyle:h}=Gt(),b=i=>i.reduce((s,p)=>(s.push(p),p.children&&p.children.length>0&&s.push(...b(p.children)),s),[]),f=i=>{Dt(i||[]).forEach(p=>{var w;if(z(p)&&(p.type.name==="ElOption"||p.type.name==="ElTree")){const T=p.type.name;if(T==="ElTree"){const R=((w=p.props)==null?void 0:w.data)||[];b(R).forEach(N=>{N.currentLabel=N.label||(z(N.value)?"":N.value),t.onOptionCreate(N)})}else if(T==="ElOption"){const R={...p.props};R.currentLabel=R.label||(z(R.value)?"":R.value),t.onOptionCreate(R)}}})};G(()=>{var i;return(i=a.default)==null?void 0:i.call(a)},i=>{e.persistent||f(i)},{immediate:!0}),ol(Ce,se({props:S,states:t.states,selectRef:t.selectRef,optionsArray:t.optionsArray,setSelected:t.setSelected,handleOptionSelect:t.handleOptionSelect,onOptionCreate:t.onOptionCreate,onOptionDestroy:t.onOptionDestroy}));const d=u(()=>e.multiple?t.states.selected.map(i=>i.currentLabel):t.states.selectedLabel);return al(()=>{m.appContext.config.warnHandler=void 0}),{...t,modelValue:c,selectedLabel:d,calculatorRef:C,inputStyle:h}}});function tn(e,o){const a=j("el-tag"),m=j("el-tooltip"),c=j("el-icon"),S=j("el-option"),t=j("el-options"),C=j("el-scrollbar"),h=j("el-select-menu"),b=it("click-outside");return ae((g(),I("div",{ref:"selectRef",class:v([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[ut(e.mouseEnterEventName)]:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[q(m,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:L(()=>{var f;return[E("div",{ref:"wrapperRef",class:v([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:B(e.toggleMenu,["prevent"])},[e.$slots.prefix?(g(),I("div",{key:0,ref:"prefixRef",class:v(e.nsSelect.e("prefix"))},[k(e.$slots,"prefix")],2)):M("v-if",!0),E("div",{ref:"selectionRef",class:v([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?k(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(g(!0),I(Xe,null,Ye(e.showTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.tagStyle),onClose:i=>e.deleteTag(i,d)},{default:L(()=>[E("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[Ze(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(g(),A(m,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,teleported:e.teleported},{default:L(()=>[E("div",{ref:"collapseItemRef",class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.collapseTagStyle)},{default:L(()=>[E("span",{class:v(e.nsSelect.e("tags-text"))}," + "+W(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:L(()=>[E("div",{ref:"tagMenuRef",class:v(e.nsSelect.e("selection"))},[(g(!0),I(Xe,null,Ye(e.collapseTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:i=>e.deleteTag(i,d)},{default:L(()=>[E("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[Ze(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","teleported"])):M("v-if",!0)]):M("v-if",!0),E("div",{class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ae(E("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,type:"text",name:e.name,class:v([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:he(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((f=e.hoverOption)==null?void 0:f.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[le(B(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),le(B(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),le(B(e.handleEsc,["stop","prevent"]),["esc"]),le(B(e.selectOption,["stop","prevent"]),["enter"]),le(B(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:B(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[rt,e.states.inputValue]]),e.filterable?(g(),I("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:v(e.nsSelect.e("input-calculator")),textContent:W(e.states.inputValue)},null,10,["textContent"])):M("v-if",!0)],2),e.shouldShowPlaceholder?(g(),I("div",{key:1,class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?k(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,W(e.currentPlaceholder),1)]):(g(),I("span",{key:1},W(e.currentPlaceholder),1))],2)):M("v-if",!0)],2),E("div",{ref:"suffixRef",class:v(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(g(),A(c,{key:0,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(g(),A(Ee(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),e.showClose&&e.clearIcon?(g(),A(c,{key:1,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:L(()=>[(g(),A(Ee(e.clearIcon)))]),_:1},8,["class","onClick"])):M("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(g(),A(c,{key:2,class:v([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:L(()=>[(g(),A(Ee(e.validateIcon)))]),_:1},8,["class"])):M("v-if",!0)],2)],10,["onClick"])]}),content:L(()=>[q(h,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(g(),I("div",{key:0,class:v(e.nsSelect.be("dropdown","header")),onClick:B(()=>{},["stop"])},[k(e.$slots,"header")],10,["onClick"])):M("v-if",!0),ae(q(C,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:v([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:L(()=>[e.showNewOption?(g(),A(S,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):M("v-if",!0),q(t,null,{default:L(()=>[k(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[ke,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(g(),I("div",{key:1,class:v(e.nsSelect.be("dropdown","loading"))},[k(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(g(),I("div",{key:2,class:v(e.nsSelect.be("dropdown","empty"))},[k(e.$slots,"empty",{},()=>[E("span",null,W(e.emptyText),1)])],2)):M("v-if",!0),e.$slots.footer?(g(),I("div",{key:3,class:v(e.nsSelect.be("dropdown","footer")),onClick:B(()=>{},["stop"])},[k(e.$slots,"footer")],10,["onClick"])):M("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[b,e.handleClickOutside,e.popperRef]])}var nn=Se(ln,[["render",tn],["__file","select.vue"]]);const an=re({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const o=ie("select"),a=V(),m=ye(),c=V([]);ol(dl,se({...Re(e)}));const S=u(()=>c.value.some(b=>b.visible===!0)),t=b=>{var f;return b.type.name==="ElOption"&&!!((f=b.component)!=null&&f.proxy)},C=b=>{const f=U(b),d=[];return f.forEach(i=>{var s;dt(i)&&(t(i)?d.push(i.component.proxy):P(i.children)&&i.children.length?d.push(...C(i.children)):(s=i.component)!=null&&s.subTree&&d.push(...C(i.component.subTree)))}),d},h=()=>{c.value=C(m.subTree)};return De(()=>{h()}),Lt(a,h,{attributes:!0,subtree:!0,childList:!0}),{groupRef:a,visible:S,ns:o}}});function on(e,o,a,m,c,S){return ae((g(),I("ul",{ref:"groupRef",class:v(e.ns.be("group","wrap"))},[E("li",{class:v(e.ns.be("group","title"))},W(e.label),3),E("li",null,[E("ul",{class:v(e.ns.b("group"))},[k(e.$slots,"default")],2)])],2)),[[ke,e.visible]])}var cl=Se(an,[["render",on],["__file","option-group.vue"]]);const Cn=Mt(nn,{Option:Me,OptionGroup:cl}),On=ul(Me);ul(cl);export{On as E,Cn as a};
@@ -1 +1 @@
1
- import{d as A,X as q,f as b,r as k,q as H,x as o,y as l,C as d,T as M,u as e,G as O,E,A as V,M as Q,I as i,J as r,Q as t,z as u,F as U,L as G}from"./vendor-vue-CpN3YBVJ.js";import{ab as J,H as X,ac as j,y as K,ad as W,z as Y,ae as Z,af as _,Q as x,ag as ee,ah as ae,R as se,$ as te,ai as oe,A as re}from"./index-C3oMIiJY.js";const le=X({...j,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),de=J,ie=A({name:"ElDrawer",inheritAttrs:!1}),ne=A({...ie,props:le,emits:de,setup(g,{expose:R}){const n=g,F=q();W({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},b(()=>!!F.title));const f=k(),m=k(),s=Y("drawer"),{t:S}=Z(),{afterEnter:y,afterLeave:h,beforeLeave:L,visible:c,rendered:T,titleId:p,bodyId:w,zIndex:z,onModalClick:B,onOpenAutoFocus:D,onCloseAutoFocus:$,onFocusoutPrevented:P,onCloseRequested:I,handleClose:v}=_(n,f),N=b(()=>n.direction==="rtl"||n.direction==="ltr"),C=b(()=>x(n.size));return R({handleClose:v,afterEnter:y,afterLeave:h}),(a,fe)=>(o(),H(e(oe),{to:a.appendTo,disabled:a.appendTo!=="body"?!1:!a.appendToBody},{default:l(()=>[d(M,{name:e(s).b("fade"),onAfterEnter:e(y),onAfterLeave:e(h),onBeforeLeave:e(L),persisted:""},{default:l(()=>[O(d(e(ee),{mask:a.modal,"overlay-class":a.modalClass,"z-index":e(z),onClick:e(B)},{default:l(()=>[d(e(ae),{loop:"",trapped:e(c),"focus-trap-el":f.value,"focus-start-el":m.value,onFocusAfterTrapped:e(D),onFocusAfterReleased:e($),onFocusoutPrevented:e(P),onReleaseRequested:e(I)},{default:l(()=>[E("div",V({ref_key:"drawerRef",ref:f,"aria-modal":"true","aria-label":a.title||void 0,"aria-labelledby":a.title?void 0:e(p),"aria-describedby":e(w)},a.$attrs,{class:[e(s).b(),a.direction,e(c)&&"open"],style:e(N)?"width: "+e(C):"height: "+e(C),role:"dialog",onClick:Q(()=>{},["stop"])}),[E("span",{ref_key:"focusStartRef",ref:m,class:t(e(s).e("sr-focus")),tabindex:"-1"},null,2),a.withHeader?(o(),i("header",{key:0,class:t([e(s).e("header"),a.headerClass])},[a.$slots.title?u(a.$slots,"title",{key:1},()=>[r(" DEPRECATED SLOT ")]):u(a.$slots,"header",{key:0,close:e(v),titleId:e(p),titleClass:e(s).e("title")},()=>[a.$slots.title?r("v-if",!0):(o(),i("span",{key:0,id:e(p),role:"heading","aria-level":a.headerAriaLevel,class:t(e(s).e("title"))},U(a.title),11,["id","aria-level"]))]),a.showClose?(o(),i("button",{key:2,"aria-label":e(S)("el.drawer.close"),class:t(e(s).e("close-btn")),type:"button",onClick:e(v)},[d(e(se),{class:t(e(s).e("close"))},{default:l(()=>[d(e(te))]),_:1},8,["class"])],10,["aria-label","onClick"])):r("v-if",!0)],2)):r("v-if",!0),e(T)?(o(),i("div",{key:1,id:e(w),class:t([e(s).e("body"),a.bodyClass])},[u(a.$slots,"default")],10,["id"])):r("v-if",!0),a.$slots.footer?(o(),i("div",{key:2,class:t([e(s).e("footer"),a.footerClass])},[u(a.$slots,"footer")],2)):r("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[G,e(c)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var ue=K(ne,[["__file","drawer.vue"]]);const ve=re(ue);export{ve as E};
1
+ import{d as A,X as q,f as b,r as k,q as H,x as o,y as l,C as d,T as M,u as e,G as O,E,A as V,M as Q,I as i,J as r,Q as t,z as u,F as U,L as G}from"./vendor-vue-CpN3YBVJ.js";import{ab as J,H as X,ac as j,y as K,ad as W,z as Y,ae as Z,af as _,Q as x,ag as ee,ah as ae,R as se,$ as te,ai as oe,A as re}from"./index-CfDgyS48.js";const le=X({...j,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),de=J,ie=A({name:"ElDrawer",inheritAttrs:!1}),ne=A({...ie,props:le,emits:de,setup(g,{expose:R}){const n=g,F=q();W({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},b(()=>!!F.title));const f=k(),m=k(),s=Y("drawer"),{t:S}=Z(),{afterEnter:y,afterLeave:h,beforeLeave:L,visible:c,rendered:T,titleId:p,bodyId:w,zIndex:z,onModalClick:B,onOpenAutoFocus:D,onCloseAutoFocus:$,onFocusoutPrevented:P,onCloseRequested:I,handleClose:v}=_(n,f),N=b(()=>n.direction==="rtl"||n.direction==="ltr"),C=b(()=>x(n.size));return R({handleClose:v,afterEnter:y,afterLeave:h}),(a,fe)=>(o(),H(e(oe),{to:a.appendTo,disabled:a.appendTo!=="body"?!1:!a.appendToBody},{default:l(()=>[d(M,{name:e(s).b("fade"),onAfterEnter:e(y),onAfterLeave:e(h),onBeforeLeave:e(L),persisted:""},{default:l(()=>[O(d(e(ee),{mask:a.modal,"overlay-class":a.modalClass,"z-index":e(z),onClick:e(B)},{default:l(()=>[d(e(ae),{loop:"",trapped:e(c),"focus-trap-el":f.value,"focus-start-el":m.value,onFocusAfterTrapped:e(D),onFocusAfterReleased:e($),onFocusoutPrevented:e(P),onReleaseRequested:e(I)},{default:l(()=>[E("div",V({ref_key:"drawerRef",ref:f,"aria-modal":"true","aria-label":a.title||void 0,"aria-labelledby":a.title?void 0:e(p),"aria-describedby":e(w)},a.$attrs,{class:[e(s).b(),a.direction,e(c)&&"open"],style:e(N)?"width: "+e(C):"height: "+e(C),role:"dialog",onClick:Q(()=>{},["stop"])}),[E("span",{ref_key:"focusStartRef",ref:m,class:t(e(s).e("sr-focus")),tabindex:"-1"},null,2),a.withHeader?(o(),i("header",{key:0,class:t([e(s).e("header"),a.headerClass])},[a.$slots.title?u(a.$slots,"title",{key:1},()=>[r(" DEPRECATED SLOT ")]):u(a.$slots,"header",{key:0,close:e(v),titleId:e(p),titleClass:e(s).e("title")},()=>[a.$slots.title?r("v-if",!0):(o(),i("span",{key:0,id:e(p),role:"heading","aria-level":a.headerAriaLevel,class:t(e(s).e("title"))},U(a.title),11,["id","aria-level"]))]),a.showClose?(o(),i("button",{key:2,"aria-label":e(S)("el.drawer.close"),class:t(e(s).e("close-btn")),type:"button",onClick:e(v)},[d(e(se),{class:t(e(s).e("close"))},{default:l(()=>[d(e(te))]),_:1},8,["class"])],10,["aria-label","onClick"])):r("v-if",!0)],2)):r("v-if",!0),e(T)?(o(),i("div",{key:1,id:e(w),class:t([e(s).e("body"),a.bodyClass])},[u(a.$slots,"default")],10,["id"])):r("v-if",!0),a.$slots.footer?(o(),i("div",{key:2,class:t([e(s).e("footer"),a.footerClass])},[u(a.$slots,"footer")],2)):r("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[G,e(c)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var ue=K(ne,[["__file","drawer.vue"]]);const ve=re(ue);export{ve as E};
@@ -1,4 +1,4 @@
1
- import{r as o2,a as Lc}from"./bignumber-CgXu4W5r.js";import{r as qe,c as St,d as a2,f as s2,i as c2}from"./index.browser.esm-BvseN538.js";import{ae as pa,aj as Pe}from"./index-DQPsxO0o.js";import{ek as on,el as an,em as ga,en as u2,eo as jc,ep as f2,eq as l2,er as d2,es as h2,et as Nc,eu as Fc,ev as dt,e3 as ya,ew as p2,ex as g2}from"./index-C3oMIiJY.js";import{c as it,a as ht,g as qc}from"./vendor-dayjs-D7e3rSuL.js";import{r as y2}from"./string_decoder-CBsT31m1.js";import{r as Et}from"./index-BLy_0GNg.js";function m2(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vn={exports:{}},At={},xn={exports:{}},bn={},Cn={},_n={},Mt={},wn={},Hr={exports:{}},Ut={},Ma;function ma(){if(Ma)return Ut;Ma=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DataItem=void 0;class e{constructor(t,r){this.setTag=i=>{this.tag=i},this.clearTag=()=>{this.tag=void 0},this.getTag=()=>this.tag,this.getData=()=>this.data,this.data=t,this.tag=r}}return Ut.DataItem=e,Ut}var v2=Hr.exports,Ua;function x2(){return Ua||(Ua=1,function(e){(function(n,t){e.exports?e.exports=t():n.CBOR=t()})(v2,function(){const{DataItem:n}=ma();var t=function(){function r(p){this.$hex=p}r.prototype={length:function(){return this.$hex.length/2},toString:function(p){if(!p||p==="hex"||p===16)return this.$hex;if(p==="utf-8"){for(var C="",S=0;S<this.$hex.length;S+=2)C+="%"+this.$hex.substring(S,S+2);return decodeURIComponent(C)}if(p==="latin"){for(var C=[],S=0;S<this.$hex.length;S+=2)C.push(parseInt(this.$hex.substring(S,S+2),16));return String.fromCharCode.apply(String,C)}throw new Error("Unrecognised format: "+p)}},r.fromLatinString=function(p){for(var C="",S=0;S<p.length;S++){var O=p.charCodeAt(S).toString(16);O.length===1&&(O="0"+O),C+=O}return new r(C)},r.fromUtf8String=function(p){for(var C=encodeURIComponent(p),S="",O=0;O<C.length;O++)if(C.charAt(O)==="%")S+=C.substring(O+1,O+3),O+=2;else{var j=C.charCodeAt(O).toString(16);j.length<2&&(j="0"+j),S+=j}return new r(S)};var i=[],s={},u=function(p){return function(){throw new Error(p+" not implemented")}};function a(){}a.prototype={peekByte:u("peekByte"),readByte:u("readByte"),readChunk:u("readChunk"),readFloat16:function(){var p=this.readUint16(),C=(p&32767)>>10,S=p&1023,O=p&32768;if(C===31)return S===0?O?-1/0:1/0:NaN;var j=C?Math.pow(2,C-25)*(1024+S):Math.pow(2,-24)*S;return O?-j:j},readFloat32:function(){var p=this.readUint32(),C=(p&2147483647)>>23,S=p&8388607,O=p&2147483648;if(C===255)return S===0?O?-1/0:1/0:NaN;var j=C?Math.pow(2,C-23-127)*(8388608+S):Math.pow(2,-149)*S;return O?-j:j},readFloat64:function(){var p=this.readUint32(),C=this.readUint32(),S=p>>20&2047,O=(p&1048575)*4294967296+C,j=p&2147483648;if(S===2047)return O===0?j?-1/0:1/0:NaN;var V=S?Math.pow(2,S-52-1023)*(4503599627370496+O):Math.pow(2,-1074)*O;return j?-V:V},readUint16:function(){return this.readByte()*256+this.readByte()},readUint32:function(){return this.readUint16()*65536+this.readUint16()},readUint64:function(){return this.readUint32()*4294967296+this.readUint32()}};function f(){}f.prototype={writeByte:u("writeByte"),result:u("result"),writeFloat16:u("writeFloat16"),writeFloat32:u("writeFloat32"),writeFloat64:u("writeFloat64"),writeUint16:function(p){this.writeByte(p>>8&255),this.writeByte(p&255)},writeUint32:function(p){this.writeUint16(p>>16&65535),this.writeUint16(p&65535)},writeUint64:function(p){if(p>=9007199254740992||p<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+p+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(p/4294967296)),this.writeUint32(p%4294967296)},writeString:u("writeString"),canWriteBinary:function(p){return!1},writeBinary:u("writeChunk")};function o(p){var C=p.readByte(),S=C>>5,O=C&31;return{type:S,value:O}}function c(p,C){var S=p.value;if(S<24)return S;if(S==24)return C.readByte();if(S==25)return C.readUint16();if(S==26)return C.readUint32();if(S==27)return C.readUint64();if(S==31)return null;u("Additional info: "+S)()}function l(p,C,S){S.writeByte(p<<5|C)}function d(p,C,S){var O=p<<5;C<24?S.writeByte(O|C):C<256?(S.writeByte(O|24),S.writeByte(C)):C<65536?(S.writeByte(O|25),S.writeUint16(C)):C<4294967296?(S.writeByte(O|26),S.writeUint32(C)):(S.writeByte(O|27),S.writeUint64(C))}var h=new Error;function m(p){var C=o(p);switch(C.type){case 0:return c(C,p);case 1:return-1-c(C,p);case 2:return p.readChunk(c(C,p));case 3:var S=p.readChunk(c(C,p));return S.toString("utf-8");case 4:case 5:var O=c(C,p),W=[];if(O!==null){C.type===5&&(O*=2);for(var j=0;j<O;j++)W[j]=m(p)}else for(var V;(V=m(p))!==h;)W.push(V);if(C.type===5){for(var z={},j=0;j<W.length;j+=2)z[W[j]]=W[j+1];return z}else return W;case 6:var L=c(C,p),F=s[L],W=m(p);return F?F(W):W;case 7:if(C.value===25)return p.readFloat16();if(C.value===26)return p.readFloat32();if(C.value===27)return p.readFloat64();switch(c(C,p)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return h;default:throw new Error("Unknown fixed value: "+C.value)}default:throw new Error("Unsupported header: "+JSON.stringify(C))}throw new Error("not implemented yet")}function v(p,C){for(var S=0;S<i.length;S++){var O=i[S].fn(p);if(O!==void 0)return d(6,i[S].tag,C),v(O,C)}if(p&&typeof p.toCBOR=="function"&&(p=p.toCBOR()),p===!1)d(7,20,C);else if(p===!0)d(7,21,C);else if(p===null)d(7,22,C);else if(p===void 0)d(7,23,C);else if(typeof p=="number")Math.floor(p)===p&&p<9007199254740992&&p>-9007199254740992?p<0?d(1,-1-p,C):d(0,p,C):(l(7,27,C),C.writeFloat64(p));else if(typeof p=="string")C.writeString(p,function(V){d(3,V,C)});else if(C.canWriteBinary(p))C.writeBinary(p,function(V){d(2,V,C)});else if(typeof p=="object")if(x.config.useToJSON&&typeof p.toJSON=="function"&&(p=p.toJSON()),Array.isArray(p)){d(4,p.length,C);for(var S=0;S<p.length;S++)v(p[S],C)}else{var j=Object.keys(p);d(5,j.length,C);for(var S=0;S<j.length;S++){const z=parseInt(j[S]);isNaN(z)?(v(j[S],C),v(p[j[S]],C)):(v(z,C),v(p[j[S]],C))}}else throw new Error("CBOR encoding not supported: "+p)}var y=[],g=[],x={config:{useToJSON:!0},addWriter:function(p,C){typeof p=="string"?g.push(function(S){if(p===S)return C(S)}):g.push(p)},addReader:function(p,C){typeof p=="string"?y.push(function(S,O){if(p===O)return C(S,O)}):y.push(p)},encode:function(p,C){for(var S=0;S<g.length;S++){var O=g[S],j=O(C);if(j)return v(p,j),j.result()}throw new Error("Unsupported output format: "+C)},encodeDataItem:function(p,C){for(var S=0;S<g.length;S++){var O=g[S],j=O(C);if(j)return p.getTag()!==void 0?(v(p,j),j.result()):(v(p.getData(),j),j.result())}throw new Error("Unsupported output format: "+C)},decode:function(p,C){for(var S=0;S<y.length;S++){var O=y[S],j=O(p,C);if(j)return m(j)}throw new Error("Unsupported input format: "+C)},decodeToDataItem:function(p,C){for(var S=0;S<y.length;S++){var O=y[S],j=O(p,C);if(j){const V=m(j);return V instanceof n?V:new n(V)}}throw new Error("Unsupported input format: "+C)},addSemanticEncode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return i.push({tag:p,fn:C}),this},addSemanticDecode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return s[p]=C,this}};function b(p){this.buffer=p,this.pos=0}b.prototype=Object.create(a.prototype),b.prototype.peekByte=function(){return this.buffer[this.pos]},b.prototype.readByte=function(){return this.buffer[this.pos++]},b.prototype.readUint16=function(){var p=this.buffer.readUInt16BE(this.pos);return this.pos+=2,p},b.prototype.readUint32=function(){var p=this.buffer.readUInt32BE(this.pos);return this.pos+=4,p},b.prototype.readFloat32=function(){var p=this.buffer.readFloatBE(this.pos);return this.pos+=4,p},b.prototype.readFloat64=function(){var p=this.buffer.readDoubleBE(this.pos);return this.pos+=8,p},b.prototype.readChunk=function(p){var C=Buffer.alloc(p);return this.buffer.copy(C,0,this.pos,this.pos+=p),C};function E(p){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=p}E.prototype=Object.create(f.prototype),E.prototype.writeByte=function(p){this.latestBuffer[this.latestBufferOffset++]=p,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},E.prototype.writeFloat32=function(p){var C=Buffer.alloc(4);C.writeFloatBE(p,0),this.writeBuffer(C)},E.prototype.writeFloat64=function(p){var C=Buffer.alloc(8);C.writeDoubleBE(p,0),this.writeBuffer(C)},E.prototype.writeString=function(p,C){var S=Buffer.from(p,"utf-8");C(S.length),this.writeBuffer(S)},E.prototype.canWriteBinary=function(p){return p instanceof Buffer},E.prototype.writeBinary=function(p,C){C(p.length),this.writeBuffer(p)},E.prototype.writeBuffer=function(p){if(!(p instanceof Buffer))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=p.length?(p.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=p.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(p),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(p),this.byteLength+=p.length},E.prototype.result=function(){for(var p=Buffer.alloc(this.byteLength),C=0,S=0;S<this.completeBuffers.length;S++){var O=this.completeBuffers[S];O.copy(p,C,0,O.length),C+=O.length}return this.latestBufferOffset&&this.latestBuffer.copy(p,C,0,this.latestBufferOffset),this.stringFormat?p.toString(this.stringFormat):p},typeof Buffer=="function"&&(x.addReader(function(p,C){if(Buffer.isBuffer(p))return new b(p);if(C==="hex"||C==="base64"){var S=Buffer.from(p,C);return new b(S)}}),x.addWriter(function(p){if(!p||p==="buffer")return new E;if(p==="hex"||p==="base64")return new E(p)}));function I(p){this.hex=p,this.pos=0}I.prototype=Object.create(a.prototype),I.prototype.peekByte=function(){var p=this.hex.substring(this.pos,2);return parseInt(p,16)},I.prototype.readByte=function(){var p=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(p,16)},I.prototype.readChunk=function(p){var C=this.hex.substring(this.pos,this.pos+p*2);return this.pos+=p*2,typeof Buffer=="function"?Buffer.from(C,"hex"):new r(C)};function w(p){this.$hex="",this.finalFormat=p||"hex"}return w.prototype=Object.create(f.prototype),w.prototype.writeByte=function(p){if(p<0||p>255)throw new Error("Byte value out of range: "+p);var C=p.toString(16);C.length==1&&(C="0"+C),this.$hex+=C},w.prototype.canWriteBinary=function(p){return p instanceof r||typeof Buffer=="function"&&p instanceof Buffer},w.prototype.writeBinary=function(p,C){if(p instanceof r)C(p.length()),this.$hex+=p.$hex;else if(typeof Buffer=="function"&&p instanceof Buffer)C(p.length),this.$hex+=p.toString("hex");else throw new TypeError("HexWriter only accepts BinaryHex or Buffers")},w.prototype.result=function(){return this.finalFormat==="buffer"&&typeof Buffer=="function"?Buffer.from(this.$hex,"hex"):new r(this.$hex).toString(this.finalFormat)},w.prototype.writeString=function(p,C){var S=r.fromUtf8String(p);C(S.length()),this.$hex+=S.$hex},x.addReader(function(p,C){if(p instanceof r||p.$hex)return new I(p.$hex);if(C==="hex")return new I(p)}),x.addWriter(function(p){if(p==="hex")return new w}),x}();return t.addSemanticEncode(0,function(r){if(r instanceof Date)return r.toISOString()}).addSemanticDecode(0,function(r){return new Date(r)}).addSemanticDecode(1,function(r){return new Date(r)}),t})}(Hr)),Hr.exports}var La;function Ce(){return La||(La=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DataItem=e.addWriter=e.addReader=e.addSemanticEncode=e.addSemanticDecode=e.decodeToDataItem=e.encodeDataItem=void 0;var n=x2();Object.defineProperty(e,"encodeDataItem",{enumerable:!0,get:function(){return n.encodeDataItem}}),Object.defineProperty(e,"decodeToDataItem",{enumerable:!0,get:function(){return n.decodeToDataItem}}),Object.defineProperty(e,"addSemanticDecode",{enumerable:!0,get:function(){return n.addSemanticDecode}}),Object.defineProperty(e,"addSemanticEncode",{enumerable:!0,get:function(){return n.addSemanticEncode}}),Object.defineProperty(e,"addReader",{enumerable:!0,get:function(){return n.addReader}}),Object.defineProperty(e,"addWriter",{enumerable:!0,get:function(){return n.addWriter}});var t=ma();Object.defineProperty(e,"DataItem",{enumerable:!0,get:function(){return t.DataItem}})}(wn)),wn}var ja;function jo(){if(ja)return Mt;ja=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.patchTags=void 0;const e=Ce(),n=[],t=r=>{r.forEach(i=>{n.find(s=>s===i)||((0,e.addSemanticEncode)(i,s=>{if(s instanceof e.DataItem&&s.getTag()===i)return s.getData()}),(0,e.addSemanticDecode)(i,s=>new e.DataItem(s,i)),n.push(i))})};return Mt.patchTags=t,Mt}var ct={},Na;function _e(){if(Na)return ct;Na=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.RegistryTypes=ct.RegistryType=void 0;class e{constructor(t,r){this.type=t,this.tag=r,this.getTag=()=>this.tag,this.getType=()=>this.type}}return ct.RegistryType=e,ct.RegistryTypes={UUID:new e("uuid",37),BYTES:new e("bytes",void 0),CRYPTO_HDKEY:new e("crypto-hdkey",303),CRYPTO_KEYPATH:new e("crypto-keypath",304),CRYPTO_COIN_INFO:new e("crypto-coin-info",305),CRYPTO_ECKEY:new e("crypto-eckey",306),CRYPTO_OUTPUT:new e("crypto-output",308),CRYPTO_PSBT:new e("crypto-psbt",310),CRYPTO_PSBT_EXTEND:new e("crypto-psbt-extend",312),CRYPTO_ACCOUNT:new e("crypto-account",311),CRYPTO_MULTI_ACCOUNTS:new e("crypto-multi-accounts",1103),QR_HARDWARE_CALL:new e("qr-hardware-call",1201),KEY_DERIVATION_CALL:new e("key-derivation-call",1301),KEY_DERIVATION_SCHEMA:new e("key-derivation-schema",1302)},ct}var Bn={},Fa;function va(){return Fa||(Fa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptExpressions=e.ScriptExpression=void 0;class n{constructor(r,i){this.tag=r,this.expression=i,this.getTag=()=>this.tag,this.getExpression=()=>this.expression}}e.ScriptExpression=n,n.fromTag=t=>Object.values(e.ScriptExpressions).find(i=>i.getTag()===t),e.ScriptExpressions={SCRIPT_HASH:new n(400,"sh"),WITNESS_SCRIPT_HASH:new n(401,"wsh"),PUBLIC_KEY:new n(402,"pk"),PUBLIC_KEY_HASH:new n(403,"pkh"),WITNESS_PUBLIC_KEY_HASH:new n(404,"wpkh"),COMBO:new n(405,"combo"),MULTISIG:new n(406,"multi"),SORTED_MULTISIG:new n(407,"sortedmulti"),ADDRESS:new n(307,"addr"),RAW_SCRIPT:new n(408,"raw")}}(Bn)),Bn}var qa;function $a(){if(qa)return _n;qa=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=jo(),n=_e(),t=va(),r=Object.values(n.RegistryTypes).filter(s=>!!s.getTag()).map(s=>s.getTag()),i=Object.values(t.ScriptExpressions).map(s=>s.getTag());return(0,e.patchTags)(r.concat(i)),_n}var Lt={},Sn,Ka;function b2(){if(Ka)return Sn;Ka=1;var e={}.toString;return Sn=Array.isArray||function(n){return e.call(n)=="[object Array]"},Sn}var En,Ha;function C2(){if(Ha)return En;Ha=1;var e=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,r;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,t)}catch(x){x!==r&&(n=null)}else n=null;var i=/^\s*class\b/,s=function(b){try{var E=e.call(b);return i.test(E)}catch{return!1}},u=function(b){try{return s(b)?!1:(e.call(b),!0)}catch{return!1}},a=Object.prototype.toString,f="[object Object]",o="[object Function]",c="[object GeneratorFunction]",l="[object HTMLAllCollection]",d="[object HTML document.all class]",h="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var g=document.all;a.call(g)===a.call(document.all)&&(y=function(b){if((v||!b)&&(typeof b>"u"||typeof b=="object"))try{var E=a.call(b);return(E===l||E===d||E===h||E===f)&&b("")==null}catch{}return!1})}return En=n?function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{n(b,null,t)}catch(E){if(E!==r)return!1}return!s(b)&&u(b)}:function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(m)return u(b);if(s(b))return!1;var E=a.call(b);return E!==o&&E!==c&&!/^\[object HTML/.test(E)?!1:u(b)},En}var Pn,za;function _2(){if(za)return Pn;za=1;var e=C2(),n=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=function(f,o,c){for(var l=0,d=f.length;l<d;l++)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))},i=function(f,o,c){for(var l=0,d=f.length;l<d;l++)c==null?o(f.charAt(l),l,f):o.call(c,f.charAt(l),l,f)},s=function(f,o,c){for(var l in f)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))};function u(a){return n.call(a)==="[object Array]"}return Pn=function(f,o,c){if(!e(o))throw new TypeError("iterator must be a function");var l;arguments.length>=3&&(l=c),u(f)?r(f,o,l):typeof f=="string"?i(f,o,l):s(f,o,l)},Pn}var kn,Ga;function w2(){return Ga||(Ga=1,kn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),kn}var Tn,Wa;function B2(){if(Wa)return Tn;Wa=1;var e=w2(),n=typeof globalThis>"u"?it:globalThis;return Tn=function(){for(var r=[],i=0;i<e.length;i++)typeof n[e[i]]=="function"&&(r[r.length]=e[i]);return r},Tn}var Rn={exports:{}},In,Va;function $c(){if(Va)return In;Va=1;var e=ga(),n=u2(),t=on(),r=an();return In=function(s,u,a){if(!s||typeof s!="object"&&typeof s!="function")throw new t("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,d=!!r&&r(s,u);if(e)e(s,u,{configurable:c===null&&d?d.configurable:!c,enumerable:f===null&&d?d.enumerable:!f,value:a,writable:o===null&&d?d.writable:!o});else if(l||!f&&!o&&!c)s[u]=a;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},In}var Dn,Ya;function Kc(){if(Ya)return Dn;Ya=1;var e=ga(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Dn=n,Dn}var On,Xa;function S2(){if(Xa)return On;Xa=1;var e=jc(),n=$c(),t=Kc()(),r=an(),i=on(),s=e("%Math.floor%");return On=function(a,f){if(typeof a!="function")throw new i("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||s(f)!==f)throw new i("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],c=!0,l=!0;if("length"in a&&r){var d=r(a,"length");d&&!d.configurable&&(c=!1),d&&!d.writable&&(l=!1)}return(c||l||!o)&&(t?n(a,"length",f,!0,!0):n(a,"length",f)),a},On}var An,Qa;function E2(){if(Qa)return An;Qa=1;var e=l2(),n=d2(),t=f2();return An=function(){return t(e,n,arguments)},An}var Ja;function sn(){return Ja||(Ja=1,function(e){var n=S2(),t=ga(),r=h2(),i=E2();e.exports=function(u){var a=r(arguments),f=u.length-(arguments.length-1);return n(a,1+(f>0?f:0),!0)},t?t(e.exports,"apply",{value:i}):e.exports.apply=i}(Rn)),Rn.exports}var Mn,Za;function cn(){if(Za)return Mn;Za=1;var e=Nc();return Mn=function(){return e()&&!!Symbol.toStringTag},Mn}var Un,es;function Hc(){if(es)return Un;es=1;var e=_2(),n=B2(),t=sn(),r=dt(),i=an(),s=Fc(),u=r("Object.prototype.toString"),a=cn()(),f=typeof globalThis>"u"?it:globalThis,o=n(),c=r("String.prototype.slice"),l=r("Array.prototype.indexOf",!0)||function(y,g){for(var x=0;x<y.length;x+=1)if(y[x]===g)return x;return-1},d={__proto__:null};a&&i&&s?e(o,function(v){var y=new f[v];if(Symbol.toStringTag in y&&s){var g=s(y),x=i(g,Symbol.toStringTag);if(!x&&g){var b=s(g);x=i(b,Symbol.toStringTag)}d["$"+v]=t(x.get)}}):e(o,function(v){var y=new f[v],g=y.slice||y.set;g&&(d["$"+v]=t(g))});var h=function(y){var g=!1;return e(d,function(x,b){if(!g)try{"$"+x(y)===b&&(g=c(b,1))}catch{}}),g},m=function(y){var g=!1;return e(d,function(x,b){if(!g)try{x(y),g=c(b,1)}catch{}}),g};return Un=function(y){if(!y||typeof y!="object")return!1;if(!a){var g=c(u(y),8,-1);return l(o,g)>-1?g:g!=="Object"?!1:m(y)}return i?h(y):null},Un}var Ln,ts;function zc(){if(ts)return Ln;ts=1;var e=Hc();return Ln=function(t){return!!e(t)},Ln}var jn,rs;function P2(){if(rs)return jn;rs=1;var e=on(),n=dt(),t=n("TypedArray.prototype.buffer",!0),r=zc();return jn=t||function(s){if(!r(s))throw new e("Not a Typed Array");return s.buffer},jn}var Nn,ns;function xa(){if(ns)return Nn;ns=1;var e=qe().Buffer,n=b2(),t=P2(),r=ArrayBuffer.isView||function(f){try{return t(f),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return Nn=function(f,o){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,o);if(s&&r(f)){if(f.byteLength===0)return e.alloc(0);if(u){var c=e.from(f.buffer,f.byteOffset,f.byteLength);if(c.byteLength===f.byteLength)return c}var l=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),d=e.from(l);if(d.length===f.byteLength)return d}if(i&&f instanceof Uint8Array)return e.from(f);var h=n(f);if(h)for(var m=0;m<f.length;m+=1){var v=f[m];if(typeof v!="number"||v<0||v>255||~~v!==v)throw new RangeError("Array items must be numbers in the range 0-255.")}if(h||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Nn}var Fn,is;function k2(){if(is)return Fn;is=1;var e=qe().Buffer,n=xa(),t=typeof Uint8Array<"u",r=t&&typeof ArrayBuffer<"u",i=r&&ArrayBuffer.isView;return Fn=function(s,u){if(typeof s=="string"||e.isBuffer(s)||t&&s instanceof Uint8Array||i&&i(s))return n(s,u);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},Fn}var Dr={exports:{}},Or={exports:{}},os;function un(){if(os)return Or.exports;os=1,typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Or.exports={nextTick:e}:Or.exports=process;function e(n,t,r,i){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,u,a;switch(s){case 0:case 1:return process.nextTick(n);case 2:return process.nextTick(function(){n.call(null,t)});case 3:return process.nextTick(function(){n.call(null,t,r)});case 4:return process.nextTick(function(){n.call(null,t,r,i)});default:for(u=new Array(s-1),a=0;a<u.length;)u[a++]=arguments[a];return process.nextTick(function(){n.apply(null,u)})}}return Or.exports}var qn,as;function T2(){if(as)return qn;as=1;var e={}.toString;return qn=Array.isArray||function(n){return e.call(n)=="[object Array]"},qn}var $n,ss;function Gc(){return ss||(ss=1,$n=pa().EventEmitter),$n}var Ar={exports:{}},cs;function ba(){return cs||(cs=1,function(e,n){var t=St(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Ar,Ar.exports)),Ar.exports}var we={},us;function Sr(){if(us)return we;us=1;function e(v){return Array.isArray?Array.isArray(v):m(v)==="[object Array]"}we.isArray=e;function n(v){return typeof v=="boolean"}we.isBoolean=n;function t(v){return v===null}we.isNull=t;function r(v){return v==null}we.isNullOrUndefined=r;function i(v){return typeof v=="number"}we.isNumber=i;function s(v){return typeof v=="string"}we.isString=s;function u(v){return typeof v=="symbol"}we.isSymbol=u;function a(v){return v===void 0}we.isUndefined=a;function f(v){return m(v)==="[object RegExp]"}we.isRegExp=f;function o(v){return typeof v=="object"&&v!==null}we.isObject=o;function c(v){return m(v)==="[object Date]"}we.isDate=c;function l(v){return m(v)==="[object Error]"||v instanceof Error}we.isError=l;function d(v){return typeof v=="function"}we.isFunction=d;function h(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||typeof v=="symbol"||typeof v>"u"}we.isPrimitive=h,we.isBuffer=St().Buffer.isBuffer;function m(v){return Object.prototype.toString.call(v)}return we}var Kn={exports:{}},fs;function R2(){return fs||(fs=1,function(e){function n(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}var t=ba().Buffer,r=ya;function i(s,u,a){s.copy(u,a)}e.exports=function(){function s(){n(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var f={data:a,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},s.prototype.unshift=function(a){var f={data:a,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var f=this.head,o=""+f.data;f=f.next;)o+=a+f.data;return o},s.prototype.concat=function(a){if(this.length===0)return t.alloc(0);for(var f=t.allocUnsafe(a>>>0),o=this.head,c=0;o;)i(o.data,f,c),c+=o.data.length,o=o.next;return f},s}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var s=r.inspect({length:this.length});return this.constructor.name+" "+s})}(Kn)),Kn.exports}var Hn,ls;function Wc(){if(ls)return Hn;ls=1;var e=un();function n(i,s){var u=this,a=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return a||f?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(r,this,i)):e.nextTick(r,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(o){!s&&o?u._writableState?u._writableState.errorEmitted||(u._writableState.errorEmitted=!0,e.nextTick(r,u,o)):e.nextTick(r,u,o):s&&s(o)}),this)}function t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function r(i,s){i.emit("error",s)}return Hn={destroy:n,undestroy:t},Hn}var zn,ds;function I2(){if(ds)return zn;ds=1,zn=e;function e(t,r){if(n("noDeprecation"))return t;var i=!1;function s(){if(!i){if(n("throwDeprecation"))throw new Error(r);n("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return t.apply(this,arguments)}return s}function n(t){try{if(!it.localStorage)return!1}catch{return!1}var r=it.localStorage[t];return r==null?!1:String(r).toLowerCase()==="true"}return zn}var Gn,hs;function Vc(){if(hs)return Gn;hs=1;var e=un();Gn=v;function n(R){var A=this;this.next=null,this.entry=null,this.finish=function(){W(A,R)}}var t=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:e.nextTick,r;v.WritableState=h;var i=Object.create(Sr());i.inherits=Pe();var s={deprecate:I2()},u=Gc(),a=ba().Buffer,f=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(R){return a.from(R)}function c(R){return a.isBuffer(R)||R instanceof f}var l=Wc();i.inherits(v,u);function d(){}function h(R,A){r=r||wt(),R=R||{};var N=A instanceof r;this.objectMode=!!R.objectMode,N&&(this.objectMode=this.objectMode||!!R.writableObjectMode);var G=R.highWaterMark,J=R.writableHighWaterMark,Z=this.objectMode?16:16*1024;G||G===0?this.highWaterMark=G:N&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Z,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $=R.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(M){p(A,M)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}h.prototype.getBuffer=function(){for(var A=this.bufferedRequest,N=[];A;)N.push(A),A=A.next;return N},function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var m;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(R){return m.call(this,R)?!0:this!==v?!1:R&&R._writableState instanceof h}})):m=function(R){return R instanceof this};function v(R){if(r=r||wt(),!m.call(v,this)&&!(this instanceof r))return new v(R);this._writableState=new h(R,this),this.writable=!0,R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final)),u.call(this)}v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function y(R,A){var N=new Error("write after end");R.emit("error",N),e.nextTick(A,N)}function g(R,A,N,G){var J=!0,Z=!1;return N===null?Z=new TypeError("May not write null values to stream"):typeof N!="string"&&N!==void 0&&!A.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z&&(R.emit("error",Z),e.nextTick(G,Z),J=!1),J}v.prototype.write=function(R,A,N){var G=this._writableState,J=!1,Z=!G.objectMode&&c(R);return Z&&!a.isBuffer(R)&&(R=o(R)),typeof A=="function"&&(N=A,A=null),Z?A="buffer":A||(A=G.defaultEncoding),typeof N!="function"&&(N=d),G.ended?y(this,N):(Z||g(this,G,R,N))&&(G.pendingcb++,J=b(this,G,Z,R,A,N)),J},v.prototype.cork=function(){var R=this._writableState;R.corked++},v.prototype.uncork=function(){var R=this._writableState;R.corked&&(R.corked--,!R.writing&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest&&O(this,R))},v.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this};function x(R,A,N){return!R.objectMode&&R.decodeStrings!==!1&&typeof A=="string"&&(A=a.from(A,N)),A}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(R,A,N,G,J,Z){if(!N){var $=x(A,G,J);G!==$&&(N=!0,J="buffer",G=$)}var M=A.objectMode?1:G.length;A.length+=M;var U=A.length<A.highWaterMark;if(U||(A.needDrain=!0),A.writing||A.corked){var q=A.lastBufferedRequest;A.lastBufferedRequest={chunk:G,encoding:J,isBuf:N,callback:Z,next:null},q?q.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else E(R,A,!1,M,G,J,Z);return U}function E(R,A,N,G,J,Z,$){A.writelen=G,A.writecb=$,A.writing=!0,A.sync=!0,N?R._writev(J,A.onwrite):R._write(J,Z,A.onwrite),A.sync=!1}function I(R,A,N,G,J){--A.pendingcb,N?(e.nextTick(J,G),e.nextTick(L,R,A),R._writableState.errorEmitted=!0,R.emit("error",G)):(J(G),R._writableState.errorEmitted=!0,R.emit("error",G),L(R,A))}function w(R){R.writing=!1,R.writecb=null,R.length-=R.writelen,R.writelen=0}function p(R,A){var N=R._writableState,G=N.sync,J=N.writecb;if(w(N),A)I(R,N,G,A,J);else{var Z=j(N);!Z&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&O(R,N),G?t(C,R,N,Z,J):C(R,N,Z,J)}}function C(R,A,N,G){N||S(R,A),A.pendingcb--,G(),L(R,A)}function S(R,A){A.length===0&&A.needDrain&&(A.needDrain=!1,R.emit("drain"))}function O(R,A){A.bufferProcessing=!0;var N=A.bufferedRequest;if(R._writev&&N&&N.next){var G=A.bufferedRequestCount,J=new Array(G),Z=A.corkedRequestsFree;Z.entry=N;for(var $=0,M=!0;N;)J[$]=N,N.isBuf||(M=!1),N=N.next,$+=1;J.allBuffers=M,E(R,A,!0,A.length,J,"",Z.finish),A.pendingcb++,A.lastBufferedRequest=null,Z.next?(A.corkedRequestsFree=Z.next,Z.next=null):A.corkedRequestsFree=new n(A),A.bufferedRequestCount=0}else{for(;N;){var U=N.chunk,q=N.encoding,P=N.callback,k=A.objectMode?1:U.length;if(E(R,A,!1,k,U,q,P),N=N.next,A.bufferedRequestCount--,A.writing)break}N===null&&(A.lastBufferedRequest=null)}A.bufferedRequest=N,A.bufferProcessing=!1}v.prototype._write=function(R,A,N){N(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(R,A,N){var G=this._writableState;typeof R=="function"?(N=R,R=null,A=null):typeof A=="function"&&(N=A,A=null),R!=null&&this.write(R,A),G.corked&&(G.corked=1,this.uncork()),G.ending||F(this,G,N)};function j(R){return R.ending&&R.length===0&&R.bufferedRequest===null&&!R.finished&&!R.writing}function V(R,A){R._final(function(N){A.pendingcb--,N&&R.emit("error",N),A.prefinished=!0,R.emit("prefinish"),L(R,A)})}function z(R,A){!A.prefinished&&!A.finalCalled&&(typeof R._final=="function"?(A.pendingcb++,A.finalCalled=!0,e.nextTick(V,R,A)):(A.prefinished=!0,R.emit("prefinish")))}function L(R,A){var N=j(A);return N&&(z(R,A),A.pendingcb===0&&(A.finished=!0,R.emit("finish"))),N}function F(R,A,N){A.ending=!0,L(R,A),N&&(A.finished?e.nextTick(N):R.once("finish",N)),A.ended=!0,R.writable=!1}function W(R,A,N){var G=R.entry;for(R.entry=null;G;){var J=G.callback;A.pendingcb--,J(N),G=G.next}A.corkedRequestsFree.next=R}return Object.defineProperty(v.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),v.prototype.destroy=l.destroy,v.prototype._undestroy=l.undestroy,v.prototype._destroy=function(R,A){this.end(),A(R)},Gn}var Wn,ps;function wt(){if(ps)return Wn;ps=1;var e=un(),n=Object.keys||function(l){var d=[];for(var h in l)d.push(h);return d};Wn=f;var t=Object.create(Sr());t.inherits=Pe();var r=Yc(),i=Vc();t.inherits(f,r);for(var s=n(i.prototype),u=0;u<s.length;u++){var a=s[u];f.prototype[a]||(f.prototype[a]=i.prototype[a])}function f(l){if(!(this instanceof f))return new f(l);r.call(this,l),i.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){this.allowHalfOpen||this._writableState.ended||e.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=l,this._writableState.destroyed=l)}}),f.prototype._destroy=function(l,d){this.push(null),this.end(),e.nextTick(d,l)},Wn}var Vn={},Mr={exports:{}},gs;function D2(){return gs||(gs=1,function(e,n){var t=St(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Mr,Mr.exports)),Mr.exports}var ys;function ms(){if(ys)return Vn;ys=1;var e=D2().Buffer,n=e.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(g){if(!g)return"utf8";for(var x;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(x)return;g=(""+g).toLowerCase(),x=!0}}function r(g){var x=t(g);if(typeof x!="string"&&(e.isEncoding===n||!n(g)))throw new Error("Unknown encoding: "+g);return x||g}Vn.StringDecoder=i;function i(g){this.encoding=r(g);var x;switch(this.encoding){case"utf16le":this.text=l,this.end=d,x=4;break;case"utf8":this.fillLast=f,x=4;break;case"base64":this.text=h,this.end=m,x=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(x)}i.prototype.write=function(g){if(g.length===0)return"";var x,b;if(this.lastNeed){if(x=this.fillLast(g),x===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<g.length?x?x+this.text(g,b):this.text(g,b):x||""},i.prototype.end=c,i.prototype.text=o,i.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function s(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function u(g,x,b){var E=x.length-1;if(E<b)return 0;var I=s(x[E]);return I>=0?(I>0&&(g.lastNeed=I-1),I):--E<b||I===-2?0:(I=s(x[E]),I>=0?(I>0&&(g.lastNeed=I-2),I):--E<b||I===-2?0:(I=s(x[E]),I>=0?(I>0&&(I===2?I=0:g.lastNeed=I-3),I):0))}function a(g,x,b){if((x[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return g.lastNeed=2,"�"}}function f(g){var x=this.lastTotal-this.lastNeed,b=a(this,g);if(b!==void 0)return b;if(this.lastNeed<=g.length)return g.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,x,0,g.length),this.lastNeed-=g.length}function o(g,x){var b=u(this,g,x);if(!this.lastNeed)return g.toString("utf8",x);this.lastTotal=b;var E=g.length-(b-this.lastNeed);return g.copy(this.lastChar,0,E),g.toString("utf8",x,E)}function c(g){var x=g&&g.length?this.write(g):"";return this.lastNeed?x+"�":x}function l(g,x){if((g.length-x)%2===0){var b=g.toString("utf16le",x);if(b){var E=b.charCodeAt(b.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",x,g.length-1)}function d(g){var x=g&&g.length?this.write(g):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,b)}return x}function h(g,x){var b=(g.length-x)%3;return b===0?g.toString("base64",x):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",x,g.length-b))}function m(g){var x=g&&g.length?this.write(g):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}return Vn}var Yn,vs;function Yc(){if(vs)return Yn;vs=1;var e=un();Yn=x;var n=T2(),t;x.ReadableState=g,pa().EventEmitter;var r=function(P,k){return P.listeners(k).length},i=Gc(),s=ba().Buffer,u=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(P){return s.from(P)}function f(P){return s.isBuffer(P)||P instanceof u}var o=Object.create(Sr());o.inherits=Pe();var c=ya,l=void 0;c&&c.debuglog?l=c.debuglog("stream"):l=function(){};var d=R2(),h=Wc(),m;o.inherits(x,i);var v=["error","close","destroy","pause","resume"];function y(P,k,K){if(typeof P.prependListener=="function")return P.prependListener(k,K);!P._events||!P._events[k]?P.on(k,K):n(P._events[k])?P._events[k].unshift(K):P._events[k]=[K,P._events[k]]}function g(P,k){t=t||wt(),P=P||{};var K=k instanceof t;this.objectMode=!!P.objectMode,K&&(this.objectMode=this.objectMode||!!P.readableObjectMode);var Y=P.highWaterMark,ne=P.readableHighWaterMark,re=this.objectMode?16:16*1024;Y||Y===0?this.highWaterMark=Y:K&&(ne||ne===0)?this.highWaterMark=ne:this.highWaterMark=re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(m||(m=ms().StringDecoder),this.decoder=new m(P.encoding),this.encoding=P.encoding)}function x(P){if(t=t||wt(),!(this instanceof x))return new x(P);this._readableState=new g(P,this),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),i.call(this)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),x.prototype.destroy=h.destroy,x.prototype._undestroy=h.undestroy,x.prototype._destroy=function(P,k){this.push(null),k(P)},x.prototype.push=function(P,k){var K=this._readableState,Y;return K.objectMode?Y=!0:typeof P=="string"&&(k=k||K.defaultEncoding,k!==K.encoding&&(P=s.from(P,k),k=""),Y=!0),b(this,P,k,!1,Y)},x.prototype.unshift=function(P){return b(this,P,null,!0,!1)};function b(P,k,K,Y,ne){var re=P._readableState;if(k===null)re.reading=!1,O(P,re);else{var oe;ne||(oe=I(re,k)),oe?P.emit("error",oe):re.objectMode||k&&k.length>0?(typeof k!="string"&&!re.objectMode&&Object.getPrototypeOf(k)!==s.prototype&&(k=a(k)),Y?re.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):E(P,re,k,!0):re.ended?P.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!K?(k=re.decoder.write(k),re.objectMode||k.length!==0?E(P,re,k,!1):z(P,re)):E(P,re,k,!1))):Y||(re.reading=!1)}return w(re)}function E(P,k,K,Y){k.flowing&&k.length===0&&!k.sync?(P.emit("data",K),P.read(0)):(k.length+=k.objectMode?1:K.length,Y?k.buffer.unshift(K):k.buffer.push(K),k.needReadable&&j(P)),z(P,k)}function I(P,k){var K;return!f(k)&&typeof k!="string"&&k!==void 0&&!P.objectMode&&(K=new TypeError("Invalid non-string/buffer chunk")),K}function w(P){return!P.ended&&(P.needReadable||P.length<P.highWaterMark||P.length===0)}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(P){return m||(m=ms().StringDecoder),this._readableState.decoder=new m(P),this._readableState.encoding=P,this};var p=8388608;function C(P){return P>=p?P=p:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function S(P,k){return P<=0||k.length===0&&k.ended?0:k.objectMode?1:P!==P?k.flowing&&k.length?k.buffer.head.data.length:k.length:(P>k.highWaterMark&&(k.highWaterMark=C(P)),P<=k.length?P:k.ended?k.length:(k.needReadable=!0,0))}x.prototype.read=function(P){l("read",P),P=parseInt(P,10);var k=this._readableState,K=P;if(P!==0&&(k.emittedReadable=!1),P===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return l("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?M(this):j(this),null;if(P=S(P,k),P===0&&k.ended)return k.length===0&&M(this),null;var Y=k.needReadable;l("need readable",Y),(k.length===0||k.length-P<k.highWaterMark)&&(Y=!0,l("length less than watermark",Y)),k.ended||k.reading?(Y=!1,l("reading or ended",Y)):Y&&(l("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(P=S(K,k)));var ne;return P>0?ne=G(P,k):ne=null,ne===null?(k.needReadable=!0,P=0):k.length-=P,k.length===0&&(k.ended||(k.needReadable=!0),K!==P&&k.ended&&M(this)),ne!==null&&this.emit("data",ne),ne};function O(P,k){if(!k.ended){if(k.decoder){var K=k.decoder.end();K&&K.length&&(k.buffer.push(K),k.length+=k.objectMode?1:K.length)}k.ended=!0,j(P)}}function j(P){var k=P._readableState;k.needReadable=!1,k.emittedReadable||(l("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?e.nextTick(V,P):V(P))}function V(P){l("emit readable"),P.emit("readable"),N(P)}function z(P,k){k.readingMore||(k.readingMore=!0,e.nextTick(L,P,k))}function L(P,k){for(var K=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(l("maybeReadMore read 0"),P.read(0),K!==k.length);)K=k.length;k.readingMore=!1}x.prototype._read=function(P){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(P,k){var K=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=P;break;case 1:Y.pipes=[Y.pipes,P];break;default:Y.pipes.push(P);break}Y.pipesCount+=1,l("pipe count=%d opts=%j",Y.pipesCount,k);var ne=(!k||k.end!==!1)&&P!==process.stdout&&P!==process.stderr,re=ne?fe:ce;Y.endEmitted?e.nextTick(re):K.once("end",re),P.on("unpipe",oe);function oe(H,Q){l("onunpipe"),H===K&&Q&&Q.hasUnpiped===!1&&(Q.hasUnpiped=!0,_())}function fe(){l("onend"),P.end()}var he=F(K);P.on("drain",he);var D=!1;function _(){l("cleanup"),P.removeListener("close",ee),P.removeListener("finish",te),P.removeListener("drain",he),P.removeListener("error",X),P.removeListener("unpipe",oe),K.removeListener("end",fe),K.removeListener("end",ce),K.removeListener("data",T),D=!0,Y.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&he()}var B=!1;K.on("data",T);function T(H){l("ondata"),B=!1;var Q=P.write(H);Q===!1&&!B&&((Y.pipesCount===1&&Y.pipes===P||Y.pipesCount>1&&q(Y.pipes,P)!==-1)&&!D&&(l("false write response, pause",Y.awaitDrain),Y.awaitDrain++,B=!0),K.pause())}function X(H){l("onerror",H),ce(),P.removeListener("error",X),r(P,"error")===0&&P.emit("error",H)}y(P,"error",X);function ee(){P.removeListener("finish",te),ce()}P.once("close",ee);function te(){l("onfinish"),P.removeListener("close",ee),ce()}P.once("finish",te);function ce(){l("unpipe"),K.unpipe(P)}return P.emit("pipe",K),Y.flowing||(l("pipe resume"),K.resume()),P};function F(P){return function(){var k=P._readableState;l("pipeOnDrain",k.awaitDrain),k.awaitDrain&&k.awaitDrain--,k.awaitDrain===0&&r(P,"data")&&(k.flowing=!0,N(P))}}x.prototype.unpipe=function(P){var k=this._readableState,K={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return P&&P!==k.pipes?this:(P||(P=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,P&&P.emit("unpipe",this,K),this);if(!P){var Y=k.pipes,ne=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var re=0;re<ne;re++)Y[re].emit("unpipe",this,{hasUnpiped:!1});return this}var oe=q(k.pipes,P);return oe===-1?this:(k.pipes.splice(oe,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),P.emit("unpipe",this,K),this)},x.prototype.on=function(P,k){var K=i.prototype.on.call(this,P,k);if(P==="data")this._readableState.flowing!==!1&&this.resume();else if(P==="readable"){var Y=this._readableState;!Y.endEmitted&&!Y.readableListening&&(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&j(this):e.nextTick(W,this))}return K},x.prototype.addListener=x.prototype.on;function W(P){l("readable nexttick read 0"),P.read(0)}x.prototype.resume=function(){var P=this._readableState;return P.flowing||(l("resume"),P.flowing=!0,R(this,P)),this};function R(P,k){k.resumeScheduled||(k.resumeScheduled=!0,e.nextTick(A,P,k))}function A(P,k){k.reading||(l("resume read 0"),P.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,P.emit("resume"),N(P),k.flowing&&!k.reading&&P.read(0)}x.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function N(P){var k=P._readableState;for(l("flow",k.flowing);k.flowing&&P.read()!==null;);}x.prototype.wrap=function(P){var k=this,K=this._readableState,Y=!1;P.on("end",function(){if(l("wrapped end"),K.decoder&&!K.ended){var oe=K.decoder.end();oe&&oe.length&&k.push(oe)}k.push(null)}),P.on("data",function(oe){if(l("wrapped data"),K.decoder&&(oe=K.decoder.write(oe)),!(K.objectMode&&oe==null)&&!(!K.objectMode&&(!oe||!oe.length))){var fe=k.push(oe);fe||(Y=!0,P.pause())}});for(var ne in P)this[ne]===void 0&&typeof P[ne]=="function"&&(this[ne]=function(oe){return function(){return P[oe].apply(P,arguments)}}(ne));for(var re=0;re<v.length;re++)P.on(v[re],this.emit.bind(this,v[re]));return this._read=function(oe){l("wrapped _read",oe),Y&&(Y=!1,P.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=G;function G(P,k){if(k.length===0)return null;var K;return k.objectMode?K=k.buffer.shift():!P||P>=k.length?(k.decoder?K=k.buffer.join(""):k.buffer.length===1?K=k.buffer.head.data:K=k.buffer.concat(k.length),k.buffer.clear()):K=J(P,k.buffer,k.decoder),K}function J(P,k,K){var Y;return P<k.head.data.length?(Y=k.head.data.slice(0,P),k.head.data=k.head.data.slice(P)):P===k.head.data.length?Y=k.shift():Y=K?Z(P,k):$(P,k),Y}function Z(P,k){var K=k.head,Y=1,ne=K.data;for(P-=ne.length;K=K.next;){var re=K.data,oe=P>re.length?re.length:P;if(oe===re.length?ne+=re:ne+=re.slice(0,P),P-=oe,P===0){oe===re.length?(++Y,K.next?k.head=K.next:k.head=k.tail=null):(k.head=K,K.data=re.slice(oe));break}++Y}return k.length-=Y,ne}function $(P,k){var K=s.allocUnsafe(P),Y=k.head,ne=1;for(Y.data.copy(K),P-=Y.data.length;Y=Y.next;){var re=Y.data,oe=P>re.length?re.length:P;if(re.copy(K,K.length-P,0,oe),P-=oe,P===0){oe===re.length?(++ne,Y.next?k.head=Y.next:k.head=k.tail=null):(k.head=Y,Y.data=re.slice(oe));break}++ne}return k.length-=ne,K}function M(P){var k=P._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,e.nextTick(U,k,P))}function U(P,k){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,k.readable=!1,k.emit("end"))}function q(P,k){for(var K=0,Y=P.length;K<Y;K++)if(P[K]===k)return K;return-1}return Yn}var Xn,xs;function Xc(){if(xs)return Xn;xs=1,Xn=r;var e=wt(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(r,e);function t(u,a){var f=this._transformState;f.transforming=!1;var o=f.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,a!=null&&this.push(a),o(u);var c=this._readableState;c.reading=!1,(c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}function r(u){if(!(this instanceof r))return new r(u);e.call(this,u),this._transformState={afterTransform:t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",i)}function i(){var u=this;typeof this._flush=="function"?this._flush(function(a,f){s(u,a,f)}):s(this,null,null)}r.prototype.push=function(u,a){return this._transformState.needTransform=!1,e.prototype.push.call(this,u,a)},r.prototype._transform=function(u,a,f){throw new Error("_transform() is not implemented")},r.prototype._write=function(u,a,f){var o=this._transformState;if(o.writecb=f,o.writechunk=u,o.writeencoding=a,!o.transforming){var c=this._readableState;(o.needTransform||c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}},r.prototype._read=function(u){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},r.prototype._destroy=function(u,a){var f=this;e.prototype._destroy.call(this,u,function(o){a(o),f.emit("close")})};function s(u,a,f){if(a)return u.emit("error",a);if(f!=null&&u.push(f),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}return Xn}var Qn,bs;function O2(){if(bs)return Qn;bs=1,Qn=t;var e=Xc(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,s){s(null,r)},Qn}var Cs;function A2(){return Cs||(Cs=1,function(e,n){n=e.exports=Yc(),n.Stream=n,n.Readable=n,n.Writable=Vc(),n.Duplex=wt(),n.Transform=Xc(),n.PassThrough=O2()}(Dr,Dr.exports)),Dr.exports}var Jn,_s;function Qc(){if(_s)return Jn;_s=1;var e=qe().Buffer,n=k2(),t=A2().Transform,r=Pe();function i(s){t.call(this),this._block=e.allocUnsafe(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return r(i,t),i.prototype._transform=function(s,u,a){var f=null;try{this.update(s,u)}catch(o){f=o}a(f)},i.prototype._flush=function(s){var u=null;try{this.push(this.digest())}catch(a){u=a}s(u)},i.prototype.update=function(s,u){if(this._finalized)throw new Error("Digest already called");for(var a=n(s,u),f=this._block,o=0;this._blockOffset+a.length-o>=this._blockSize;){for(var c=this._blockOffset;c<this._blockSize;)f[c]=a[o],c+=1,o+=1;this._update(),this._blockOffset=0}for(;o<a.length;)f[this._blockOffset]=a[o],this._blockOffset+=1,o+=1;for(var l=0,d=a.length*8;d>0;++l)this._length[l]+=d,d=this._length[l]/4294967296|0,d>0&&(this._length[l]-=4294967296*d);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var u=this._digest();s!==void 0&&(u=u.toString(s)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return u},i.prototype._digest=function(){throw new Error("_digest is not implemented")},Jn=i,Jn}var Zn,ws;function M2(){if(ws)return Zn;ws=1;var e=Pe(),n=Qc(),t=qe().Buffer,r=new Array(16);function i(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(i,n),i.prototype._update=function(){for(var c=r,l=0;l<16;++l)c[l]=this._block.readInt32LE(l*4);var d=this._a,h=this._b,m=this._c,v=this._d;d=u(d,h,m,v,c[0],3614090360,7),v=u(v,d,h,m,c[1],3905402710,12),m=u(m,v,d,h,c[2],606105819,17),h=u(h,m,v,d,c[3],3250441966,22),d=u(d,h,m,v,c[4],4118548399,7),v=u(v,d,h,m,c[5],1200080426,12),m=u(m,v,d,h,c[6],2821735955,17),h=u(h,m,v,d,c[7],4249261313,22),d=u(d,h,m,v,c[8],1770035416,7),v=u(v,d,h,m,c[9],2336552879,12),m=u(m,v,d,h,c[10],4294925233,17),h=u(h,m,v,d,c[11],2304563134,22),d=u(d,h,m,v,c[12],1804603682,7),v=u(v,d,h,m,c[13],4254626195,12),m=u(m,v,d,h,c[14],2792965006,17),h=u(h,m,v,d,c[15],1236535329,22),d=a(d,h,m,v,c[1],4129170786,5),v=a(v,d,h,m,c[6],3225465664,9),m=a(m,v,d,h,c[11],643717713,14),h=a(h,m,v,d,c[0],3921069994,20),d=a(d,h,m,v,c[5],3593408605,5),v=a(v,d,h,m,c[10],38016083,9),m=a(m,v,d,h,c[15],3634488961,14),h=a(h,m,v,d,c[4],3889429448,20),d=a(d,h,m,v,c[9],568446438,5),v=a(v,d,h,m,c[14],3275163606,9),m=a(m,v,d,h,c[3],4107603335,14),h=a(h,m,v,d,c[8],1163531501,20),d=a(d,h,m,v,c[13],2850285829,5),v=a(v,d,h,m,c[2],4243563512,9),m=a(m,v,d,h,c[7],1735328473,14),h=a(h,m,v,d,c[12],2368359562,20),d=f(d,h,m,v,c[5],4294588738,4),v=f(v,d,h,m,c[8],2272392833,11),m=f(m,v,d,h,c[11],1839030562,16),h=f(h,m,v,d,c[14],4259657740,23),d=f(d,h,m,v,c[1],2763975236,4),v=f(v,d,h,m,c[4],1272893353,11),m=f(m,v,d,h,c[7],4139469664,16),h=f(h,m,v,d,c[10],3200236656,23),d=f(d,h,m,v,c[13],681279174,4),v=f(v,d,h,m,c[0],3936430074,11),m=f(m,v,d,h,c[3],3572445317,16),h=f(h,m,v,d,c[6],76029189,23),d=f(d,h,m,v,c[9],3654602809,4),v=f(v,d,h,m,c[12],3873151461,11),m=f(m,v,d,h,c[15],530742520,16),h=f(h,m,v,d,c[2],3299628645,23),d=o(d,h,m,v,c[0],4096336452,6),v=o(v,d,h,m,c[7],1126891415,10),m=o(m,v,d,h,c[14],2878612391,15),h=o(h,m,v,d,c[5],4237533241,21),d=o(d,h,m,v,c[12],1700485571,6),v=o(v,d,h,m,c[3],2399980690,10),m=o(m,v,d,h,c[10],4293915773,15),h=o(h,m,v,d,c[1],2240044497,21),d=o(d,h,m,v,c[8],1873313359,6),v=o(v,d,h,m,c[15],4264355552,10),m=o(m,v,d,h,c[6],2734768916,15),h=o(h,m,v,d,c[13],1309151649,21),d=o(d,h,m,v,c[4],4149444226,6),v=o(v,d,h,m,c[11],3174756917,10),m=o(m,v,d,h,c[2],718787259,15),h=o(h,m,v,d,c[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+h|0,this._c=this._c+m|0,this._d=this._d+v|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c=t.allocUnsafe(16);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c};function s(c,l){return c<<l|c>>>32-l}function u(c,l,d,h,m,v,y){return s(c+(l&d|~l&h)+m+v|0,y)+l|0}function a(c,l,d,h,m,v,y){return s(c+(l&h|d&~h)+m+v|0,y)+l|0}function f(c,l,d,h,m,v,y){return s(c+(l^d^h)+m+v|0,y)+l|0}function o(c,l,d,h,m,v,y){return s(c+(d^(l|~h))+m+v|0,y)+l|0}return Zn=i,Zn}var ei,Bs;function U2(){if(Bs)return ei;Bs=1;var e=St().Buffer,n=Pe(),t=Qc(),r=new Array(16),i=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],a=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function c(g,x){return g<<x|g>>>32-x}function l(g,x,b,E,I,w,p,C){return c(g+(x^b^E)+w+p|0,C)+I|0}function d(g,x,b,E,I,w,p,C){return c(g+(x&b|~x&E)+w+p|0,C)+I|0}function h(g,x,b,E,I,w,p,C){return c(g+((x|~b)^E)+w+p|0,C)+I|0}function m(g,x,b,E,I,w,p,C){return c(g+(x&E|b&~E)+w+p|0,C)+I|0}function v(g,x,b,E,I,w,p,C){return c(g+(x^(b|~E))+w+p|0,C)+I|0}function y(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return n(y,t),y.prototype._update=function(){for(var g=r,x=0;x<16;++x)g[x]=this._block.readInt32LE(x*4);for(var b=this._a|0,E=this._b|0,I=this._c|0,w=this._d|0,p=this._e|0,C=this._a|0,S=this._b|0,O=this._c|0,j=this._d|0,V=this._e|0,z=0;z<80;z+=1){var L,F;z<16?(L=l(b,E,I,w,p,g[i[z]],f[0],u[z]),F=v(C,S,O,j,V,g[s[z]],o[0],a[z])):z<32?(L=d(b,E,I,w,p,g[i[z]],f[1],u[z]),F=m(C,S,O,j,V,g[s[z]],o[1],a[z])):z<48?(L=h(b,E,I,w,p,g[i[z]],f[2],u[z]),F=h(C,S,O,j,V,g[s[z]],o[2],a[z])):z<64?(L=m(b,E,I,w,p,g[i[z]],f[3],u[z]),F=d(C,S,O,j,V,g[s[z]],o[3],a[z])):(L=v(b,E,I,w,p,g[i[z]],f[4],u[z]),F=l(C,S,O,j,V,g[s[z]],o[4],a[z])),b=p,p=w,w=c(I,10),I=E,E=L,C=V,V=j,j=c(O,10),O=S,S=F}var W=this._b+I+j|0;this._b=this._c+w+V|0,this._c=this._d+p+C|0,this._d=this._e+b+S|0,this._e=this._a+E+O|0,this._a=W},y.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var g=e.alloc?e.alloc(20):new e(20);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g.writeInt32LE(this._e,16),g},ei=y,ei}var ti={exports:{}},ri,Ss;function Pt(){if(Ss)return ri;Ss=1;var e=qe().Buffer,n=xa();function t(r,i){this._block=e.alloc(r),this._finalSize=i,this._blockSize=r,this._len=0}return t.prototype.update=function(r,i){r=n(r,i||"utf8");for(var s=this._block,u=this._blockSize,a=r.length,f=this._len,o=0;o<a;){for(var c=f%u,l=Math.min(a-o,u-c),d=0;d<l;d++)s[c+d]=r[o+d];f+=l,o+=l,f%u===0&&this._update(s)}return this._len+=a,this},t.prototype.digest=function(r){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=this._len*8;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var u=(s&4294967295)>>>0,a=(s-u)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var f=this._hash();return r?f.toString(r):f},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ri=t,ri}var ni,Es;function L2(){if(Es)return ni;Es=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(o){return o<<5|o>>>27}function a(o){return o<<30|o>>>2}function f(o,c,l,d){return o===0?c&l|~c&d:o===2?c&l|c&d|l&d:c^l^d}return s.prototype._update=function(o){for(var c=this._w,l=this._a|0,d=this._b|0,h=this._c|0,m=this._d|0,v=this._e|0,y=0;y<16;++y)c[y]=o.readInt32BE(y*4);for(;y<80;++y)c[y]=c[y-3]^c[y-8]^c[y-14]^c[y-16];for(var g=0;g<80;++g){var x=~~(g/20),b=u(l)+f(x,d,h,m)+v+c[g]+r[x]|0;v=m,m=h,h=a(d),d=l,l=b}this._a=l+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=m+this._d|0,this._e=v+this._e|0},s.prototype._hash=function(){var o=t.allocUnsafe(20);return o.writeInt32BE(this._a|0,0),o.writeInt32BE(this._b|0,4),o.writeInt32BE(this._c|0,8),o.writeInt32BE(this._d|0,12),o.writeInt32BE(this._e|0,16),o},ni=s,ni}var ii,Ps;function j2(){if(Ps)return ii;Ps=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(c){return c<<1|c>>>31}function a(c){return c<<5|c>>>27}function f(c){return c<<30|c>>>2}function o(c,l,d,h){return c===0?l&d|~l&h:c===2?l&d|l&h|d&h:l^d^h}return s.prototype._update=function(c){for(var l=this._w,d=this._a|0,h=this._b|0,m=this._c|0,v=this._d|0,y=this._e|0,g=0;g<16;++g)l[g]=c.readInt32BE(g*4);for(;g<80;++g)l[g]=u(l[g-3]^l[g-8]^l[g-14]^l[g-16]);for(var x=0;x<80;++x){var b=~~(x/20),E=a(d)+o(b,h,m,v)+y+l[x]+r[b]|0;y=v,v=m,m=f(h),h=d,d=E}this._a=d+this._a|0,this._b=h+this._b|0,this._c=m+this._c|0,this._d=v+this._d|0,this._e=y+this._e|0},s.prototype._hash=function(){var c=t.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c},ii=s,ii}var oi,ks;function Jc(){if(ks)return oi;ks=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=new Array(64);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function u(d,h,m){return m^d&(h^m)}function a(d,h,m){return d&h|m&(d|h)}function f(d){return(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10)}function o(d){return(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7)}function c(d){return(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3}function l(d){return(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10}return s.prototype._update=function(d){for(var h=this._w,m=this._a|0,v=this._b|0,y=this._c|0,g=this._d|0,x=this._e|0,b=this._f|0,E=this._g|0,I=this._h|0,w=0;w<16;++w)h[w]=d.readInt32BE(w*4);for(;w<64;++w)h[w]=l(h[w-2])+h[w-7]+c(h[w-15])+h[w-16]|0;for(var p=0;p<64;++p){var C=I+o(x)+u(x,b,E)+r[p]+h[p]|0,S=f(m)+a(m,v,y)|0;I=E,E=b,b=x,x=g+C|0,g=y,y=v,v=m,m=C+S|0}this._a=m+this._a|0,this._b=v+this._b|0,this._c=y+this._c|0,this._d=g+this._d|0,this._e=x+this._e|0,this._f=b+this._f|0,this._g=E+this._g|0,this._h=I+this._h|0},s.prototype._hash=function(){var d=t.allocUnsafe(32);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d.writeInt32BE(this._h,28),d},oi=s,oi}var ai,Ts;function N2(){if(Ts)return ai;Ts=1;var e=Pe(),n=Jc(),t=Pt(),r=qe().Buffer,i=new Array(64);function s(){this.init(),this._w=i,t.call(this,64,56)}return e(s,n),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var u=r.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},ai=s,ai}var si,Rs;function Zc(){if(Rs)return si;Rs=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],i=new Array(160);function s(){this.init(),this._w=i,n.call(this,128,112)}e(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function u(v,y,g){return g^v&(y^g)}function a(v,y,g){return v&y|g&(v|y)}function f(v,y){return(v>>>28|y<<4)^(y>>>2|v<<30)^(y>>>7|v<<25)}function o(v,y){return(v>>>14|y<<18)^(v>>>18|y<<14)^(y>>>9|v<<23)}function c(v,y){return(v>>>1|y<<31)^(v>>>8|y<<24)^v>>>7}function l(v,y){return(v>>>1|y<<31)^(v>>>8|y<<24)^(v>>>7|y<<25)}function d(v,y){return(v>>>19|y<<13)^(y>>>29|v<<3)^v>>>6}function h(v,y){return(v>>>19|y<<13)^(y>>>29|v<<3)^(v>>>6|y<<26)}function m(v,y){return v>>>0<y>>>0?1:0}return s.prototype._update=function(v){for(var y=this._w,g=this._ah|0,x=this._bh|0,b=this._ch|0,E=this._dh|0,I=this._eh|0,w=this._fh|0,p=this._gh|0,C=this._hh|0,S=this._al|0,O=this._bl|0,j=this._cl|0,V=this._dl|0,z=this._el|0,L=this._fl|0,F=this._gl|0,W=this._hl|0,R=0;R<32;R+=2)y[R]=v.readInt32BE(R*4),y[R+1]=v.readInt32BE(R*4+4);for(;R<160;R+=2){var A=y[R-30],N=y[R-30+1],G=c(A,N),J=l(N,A);A=y[R-4],N=y[R-4+1];var Z=d(A,N),$=h(N,A),M=y[R-14],U=y[R-14+1],q=y[R-32],P=y[R-32+1],k=J+U|0,K=G+M+m(k,J)|0;k=k+$|0,K=K+Z+m(k,$)|0,k=k+P|0,K=K+q+m(k,P)|0,y[R]=K,y[R+1]=k}for(var Y=0;Y<160;Y+=2){K=y[Y],k=y[Y+1];var ne=a(g,x,b),re=a(S,O,j),oe=f(g,S),fe=f(S,g),he=o(I,z),D=o(z,I),_=r[Y],B=r[Y+1],T=u(I,w,p),X=u(z,L,F),ee=W+D|0,te=C+he+m(ee,W)|0;ee=ee+X|0,te=te+T+m(ee,X)|0,ee=ee+B|0,te=te+_+m(ee,B)|0,ee=ee+k|0,te=te+K+m(ee,k)|0;var ce=fe+re|0,H=oe+ne+m(ce,fe)|0;C=p,W=F,p=w,F=L,w=I,L=z,z=V+ee|0,I=E+te+m(z,V)|0,E=b,V=j,b=x,j=O,x=g,O=S,S=ee+ce|0,g=te+H+m(S,ee)|0}this._al=this._al+S|0,this._bl=this._bl+O|0,this._cl=this._cl+j|0,this._dl=this._dl+V|0,this._el=this._el+z|0,this._fl=this._fl+L|0,this._gl=this._gl+F|0,this._hl=this._hl+W|0,this._ah=this._ah+g+m(this._al,S)|0,this._bh=this._bh+x+m(this._bl,O)|0,this._ch=this._ch+b+m(this._cl,j)|0,this._dh=this._dh+E+m(this._dl,V)|0,this._eh=this._eh+I+m(this._el,z)|0,this._fh=this._fh+w+m(this._fl,L)|0,this._gh=this._gh+p+m(this._gl,F)|0,this._hh=this._hh+C+m(this._hl,W)|0},s.prototype._hash=function(){var v=t.allocUnsafe(64);function y(g,x,b){v.writeInt32BE(g,b),v.writeInt32BE(x,b+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),y(this._gh,this._gl,48),y(this._hh,this._hl,56),v},si=s,si}var ci,Is;function F2(){if(Is)return ci;Is=1;var e=Pe(),n=Zc(),t=Pt(),r=qe().Buffer,i=new Array(160);function s(){this.init(),this._w=i,t.call(this,128,112)}return e(s,n),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var u=r.allocUnsafe(48);function a(f,o,c){u.writeInt32BE(f,c),u.writeInt32BE(o,c+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),u},ci=s,ci}var Ds;function eu(){return Ds||(Ds=1,function(e){e.exports=function(t){var r=t.toLowerCase(),i=e.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i},e.exports.sha=L2(),e.exports.sha1=j2(),e.exports.sha224=N2(),e.exports.sha256=Jc(),e.exports.sha384=F2(),e.exports.sha512=Zc()}(ti)),ti.exports}var ui,Os;function q2(){if(Os)return ui;Os=1;var e=qe().Buffer,n=ya.Transform,t=y2().StringDecoder,r=Pe(),i=xa();function s(u){n.call(this),this.hashMode=typeof u=="string",this.hashMode?this[u]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return r(s,n),s.prototype.update=function(u,a,f){var o=i(u,a),c=this._update(o);return this.hashMode?this:(f&&(c=this._toString(c,f)),c)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(u,a,f){var o;try{this.hashMode?this._update(u):this.push(this._update(u))}catch(c){o=c}finally{f(o)}},s.prototype._flush=function(u){var a;try{this.push(this.__final())}catch(f){a=f}u(a)},s.prototype._finalOrDigest=function(u){var a=this.__final()||e.alloc(0);return u&&(a=this._toString(a,u,!0)),a},s.prototype._toString=function(u,a,f){if(this._decoder||(this._decoder=new t(a),this._encoding=a),this._encoding!==a)throw new Error("can’t switch encodings");var o=this._decoder.write(u);return f&&(o+=this._decoder.end()),o},ui=s,ui}var fi,As;function $2(){if(As)return fi;As=1;var e=Pe(),n=M2(),t=U2(),r=eu(),i=q2();function s(u){i.call(this,"digest"),this._hash=u}return e(s,i),s.prototype._update=function(u){this._hash.update(u)},s.prototype._final=function(){return this._hash.digest()},fi=function(a){return a=a.toLowerCase(),a==="md5"?new n:a==="rmd160"||a==="ripemd160"?new t:new s(r(a))},fi}var li,Ms;function K2(){if(Ms)return li;Ms=1;var e=qe().Buffer;function n(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var s=0;s<t.length;s++){var u=t.charAt(s),a=u.charCodeAt(0);if(r[a]!==255)throw new TypeError(u+" is ambiguous");r[a]=s}var f=t.length,o=t.charAt(0),c=Math.log(f)/Math.log(256),l=Math.log(256)/Math.log(f);function d(v){if((Array.isArray(v)||v instanceof Uint8Array)&&(v=e.from(v)),!e.isBuffer(v))throw new TypeError("Expected Buffer");if(v.length===0)return"";for(var y=0,g=0,x=0,b=v.length;x!==b&&v[x]===0;)x++,y++;for(var E=(b-x)*l+1>>>0,I=new Uint8Array(E);x!==b;){for(var w=v[x],p=0,C=E-1;(w!==0||p<g)&&C!==-1;C--,p++)w+=256*I[C]>>>0,I[C]=w%f>>>0,w=w/f>>>0;if(w!==0)throw new Error("Non-zero carry");g=p,x++}for(var S=E-g;S!==E&&I[S]===0;)S++;for(var O=o.repeat(y);S<E;++S)O+=t.charAt(I[S]);return O}function h(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return e.alloc(0);for(var y=0,g=0,x=0;v[y]===o;)g++,y++;for(var b=(v.length-y)*c+1>>>0,E=new Uint8Array(b);y<v.length;){var I=v.charCodeAt(y);if(I>255)return;var w=r[I];if(w===255)return;for(var p=0,C=b-1;(w!==0||p<x)&&C!==-1;C--,p++)w+=f*E[C]>>>0,E[C]=w%256>>>0,w=w/256>>>0;if(w!==0)throw new Error("Non-zero carry");x=p,y++}for(var S=b-x;S!==b&&E[S]===0;)S++;var O=e.allocUnsafe(g+(b-S));O.fill(0,0,g);for(var j=g;S!==b;)O[j++]=E[S++];return O}function m(v){var y=h(v);if(y)return y;throw new Error("Non-base"+f+" character")}return{encode:d,decodeUnsafe:h,decode:m}}return li=n,li}var di,Us;function H2(){if(Us)return di;Us=1;var e=K2(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return di=e(n),di}var hi,Ls;function z2(){if(Ls)return hi;Ls=1;var e=H2(),n=qe().Buffer;return hi=function(t){function r(a){var f=t(a);return e.encode(n.concat([a,f],a.length+4))}function i(a){var f=a.slice(0,-4),o=a.slice(-4),c=t(f);if(!(o[0]^c[0]|o[1]^c[1]|o[2]^c[2]|o[3]^c[3]))return f}function s(a){var f=e.decodeUnsafe(a);if(f)return i(f)}function u(a){var f=e.decode(a),o=i(f);if(!o)throw new Error("Invalid checksum");return o}return{encode:r,decode:u,decodeUnsafe:s}},hi}var pi,js;function tu(){if(js)return pi;js=1;var e=$2(),n=z2();function t(r){var i=e("sha256").update(r).digest();return e("sha256").update(i).digest()}return pi=n(t),pi}var gi={},jt={},We={},Ur={},$e={},Ns;function Ca(){if(Ns)return $e;Ns=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.InvalidChecksumError=$e.InvalidSequenceComponentError=$e.InvalidTypeError=$e.InvalidPathLengthError=$e.InvalidSchemeError=void 0;class e extends Error{constructor(){super("Invalid Scheme"),this.name="InvalidSchemeError"}}$e.InvalidSchemeError=e;class n extends Error{constructor(){super("Invalid Path"),this.name="InvalidPathLengthError"}}$e.InvalidPathLengthError=n;class t extends Error{constructor(){super("Invalid Type"),this.name="InvalidTypeError"}}$e.InvalidTypeError=t;class r extends Error{constructor(){super("Invalid Sequence Component"),this.name="InvalidSequenceComponentError"}}$e.InvalidSequenceComponentError=r;class i extends Error{constructor(){super("Invalid Checksum"),this.name="InvalidChecksumError"}}return $e.InvalidChecksumError=i,$e}var ve={},yi={};/*!
1
+ import{r as o2,a as Lc}from"./bignumber-CgXu4W5r.js";import{r as qe,c as St,d as a2,f as s2,i as c2}from"./index.browser.esm-LGaYp4Fc.js";import{ae as pa,aj as Pe}from"./index-B6aSFWAx.js";import{ek as on,el as an,em as ga,en as u2,eo as jc,ep as f2,eq as l2,er as d2,es as h2,et as Nc,eu as Fc,ev as dt,e3 as ya,ew as p2,ex as g2}from"./index-CfDgyS48.js";import{c as it,a as ht,g as qc}from"./vendor-dayjs-D7e3rSuL.js";import{r as y2}from"./string_decoder-s2xD4mmH.js";import{r as Et}from"./index-BLy_0GNg.js";function m2(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vn={exports:{}},At={},xn={exports:{}},bn={},Cn={},_n={},Mt={},wn={},Hr={exports:{}},Ut={},Ma;function ma(){if(Ma)return Ut;Ma=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DataItem=void 0;class e{constructor(t,r){this.setTag=i=>{this.tag=i},this.clearTag=()=>{this.tag=void 0},this.getTag=()=>this.tag,this.getData=()=>this.data,this.data=t,this.tag=r}}return Ut.DataItem=e,Ut}var v2=Hr.exports,Ua;function x2(){return Ua||(Ua=1,function(e){(function(n,t){e.exports?e.exports=t():n.CBOR=t()})(v2,function(){const{DataItem:n}=ma();var t=function(){function r(p){this.$hex=p}r.prototype={length:function(){return this.$hex.length/2},toString:function(p){if(!p||p==="hex"||p===16)return this.$hex;if(p==="utf-8"){for(var C="",S=0;S<this.$hex.length;S+=2)C+="%"+this.$hex.substring(S,S+2);return decodeURIComponent(C)}if(p==="latin"){for(var C=[],S=0;S<this.$hex.length;S+=2)C.push(parseInt(this.$hex.substring(S,S+2),16));return String.fromCharCode.apply(String,C)}throw new Error("Unrecognised format: "+p)}},r.fromLatinString=function(p){for(var C="",S=0;S<p.length;S++){var O=p.charCodeAt(S).toString(16);O.length===1&&(O="0"+O),C+=O}return new r(C)},r.fromUtf8String=function(p){for(var C=encodeURIComponent(p),S="",O=0;O<C.length;O++)if(C.charAt(O)==="%")S+=C.substring(O+1,O+3),O+=2;else{var j=C.charCodeAt(O).toString(16);j.length<2&&(j="0"+j),S+=j}return new r(S)};var i=[],s={},u=function(p){return function(){throw new Error(p+" not implemented")}};function a(){}a.prototype={peekByte:u("peekByte"),readByte:u("readByte"),readChunk:u("readChunk"),readFloat16:function(){var p=this.readUint16(),C=(p&32767)>>10,S=p&1023,O=p&32768;if(C===31)return S===0?O?-1/0:1/0:NaN;var j=C?Math.pow(2,C-25)*(1024+S):Math.pow(2,-24)*S;return O?-j:j},readFloat32:function(){var p=this.readUint32(),C=(p&2147483647)>>23,S=p&8388607,O=p&2147483648;if(C===255)return S===0?O?-1/0:1/0:NaN;var j=C?Math.pow(2,C-23-127)*(8388608+S):Math.pow(2,-149)*S;return O?-j:j},readFloat64:function(){var p=this.readUint32(),C=this.readUint32(),S=p>>20&2047,O=(p&1048575)*4294967296+C,j=p&2147483648;if(S===2047)return O===0?j?-1/0:1/0:NaN;var V=S?Math.pow(2,S-52-1023)*(4503599627370496+O):Math.pow(2,-1074)*O;return j?-V:V},readUint16:function(){return this.readByte()*256+this.readByte()},readUint32:function(){return this.readUint16()*65536+this.readUint16()},readUint64:function(){return this.readUint32()*4294967296+this.readUint32()}};function f(){}f.prototype={writeByte:u("writeByte"),result:u("result"),writeFloat16:u("writeFloat16"),writeFloat32:u("writeFloat32"),writeFloat64:u("writeFloat64"),writeUint16:function(p){this.writeByte(p>>8&255),this.writeByte(p&255)},writeUint32:function(p){this.writeUint16(p>>16&65535),this.writeUint16(p&65535)},writeUint64:function(p){if(p>=9007199254740992||p<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+p+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(p/4294967296)),this.writeUint32(p%4294967296)},writeString:u("writeString"),canWriteBinary:function(p){return!1},writeBinary:u("writeChunk")};function o(p){var C=p.readByte(),S=C>>5,O=C&31;return{type:S,value:O}}function c(p,C){var S=p.value;if(S<24)return S;if(S==24)return C.readByte();if(S==25)return C.readUint16();if(S==26)return C.readUint32();if(S==27)return C.readUint64();if(S==31)return null;u("Additional info: "+S)()}function l(p,C,S){S.writeByte(p<<5|C)}function d(p,C,S){var O=p<<5;C<24?S.writeByte(O|C):C<256?(S.writeByte(O|24),S.writeByte(C)):C<65536?(S.writeByte(O|25),S.writeUint16(C)):C<4294967296?(S.writeByte(O|26),S.writeUint32(C)):(S.writeByte(O|27),S.writeUint64(C))}var h=new Error;function m(p){var C=o(p);switch(C.type){case 0:return c(C,p);case 1:return-1-c(C,p);case 2:return p.readChunk(c(C,p));case 3:var S=p.readChunk(c(C,p));return S.toString("utf-8");case 4:case 5:var O=c(C,p),W=[];if(O!==null){C.type===5&&(O*=2);for(var j=0;j<O;j++)W[j]=m(p)}else for(var V;(V=m(p))!==h;)W.push(V);if(C.type===5){for(var z={},j=0;j<W.length;j+=2)z[W[j]]=W[j+1];return z}else return W;case 6:var L=c(C,p),F=s[L],W=m(p);return F?F(W):W;case 7:if(C.value===25)return p.readFloat16();if(C.value===26)return p.readFloat32();if(C.value===27)return p.readFloat64();switch(c(C,p)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return h;default:throw new Error("Unknown fixed value: "+C.value)}default:throw new Error("Unsupported header: "+JSON.stringify(C))}throw new Error("not implemented yet")}function v(p,C){for(var S=0;S<i.length;S++){var O=i[S].fn(p);if(O!==void 0)return d(6,i[S].tag,C),v(O,C)}if(p&&typeof p.toCBOR=="function"&&(p=p.toCBOR()),p===!1)d(7,20,C);else if(p===!0)d(7,21,C);else if(p===null)d(7,22,C);else if(p===void 0)d(7,23,C);else if(typeof p=="number")Math.floor(p)===p&&p<9007199254740992&&p>-9007199254740992?p<0?d(1,-1-p,C):d(0,p,C):(l(7,27,C),C.writeFloat64(p));else if(typeof p=="string")C.writeString(p,function(V){d(3,V,C)});else if(C.canWriteBinary(p))C.writeBinary(p,function(V){d(2,V,C)});else if(typeof p=="object")if(x.config.useToJSON&&typeof p.toJSON=="function"&&(p=p.toJSON()),Array.isArray(p)){d(4,p.length,C);for(var S=0;S<p.length;S++)v(p[S],C)}else{var j=Object.keys(p);d(5,j.length,C);for(var S=0;S<j.length;S++){const z=parseInt(j[S]);isNaN(z)?(v(j[S],C),v(p[j[S]],C)):(v(z,C),v(p[j[S]],C))}}else throw new Error("CBOR encoding not supported: "+p)}var y=[],g=[],x={config:{useToJSON:!0},addWriter:function(p,C){typeof p=="string"?g.push(function(S){if(p===S)return C(S)}):g.push(p)},addReader:function(p,C){typeof p=="string"?y.push(function(S,O){if(p===O)return C(S,O)}):y.push(p)},encode:function(p,C){for(var S=0;S<g.length;S++){var O=g[S],j=O(C);if(j)return v(p,j),j.result()}throw new Error("Unsupported output format: "+C)},encodeDataItem:function(p,C){for(var S=0;S<g.length;S++){var O=g[S],j=O(C);if(j)return p.getTag()!==void 0?(v(p,j),j.result()):(v(p.getData(),j),j.result())}throw new Error("Unsupported output format: "+C)},decode:function(p,C){for(var S=0;S<y.length;S++){var O=y[S],j=O(p,C);if(j)return m(j)}throw new Error("Unsupported input format: "+C)},decodeToDataItem:function(p,C){for(var S=0;S<y.length;S++){var O=y[S],j=O(p,C);if(j){const V=m(j);return V instanceof n?V:new n(V)}}throw new Error("Unsupported input format: "+C)},addSemanticEncode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return i.push({tag:p,fn:C}),this},addSemanticDecode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return s[p]=C,this}};function b(p){this.buffer=p,this.pos=0}b.prototype=Object.create(a.prototype),b.prototype.peekByte=function(){return this.buffer[this.pos]},b.prototype.readByte=function(){return this.buffer[this.pos++]},b.prototype.readUint16=function(){var p=this.buffer.readUInt16BE(this.pos);return this.pos+=2,p},b.prototype.readUint32=function(){var p=this.buffer.readUInt32BE(this.pos);return this.pos+=4,p},b.prototype.readFloat32=function(){var p=this.buffer.readFloatBE(this.pos);return this.pos+=4,p},b.prototype.readFloat64=function(){var p=this.buffer.readDoubleBE(this.pos);return this.pos+=8,p},b.prototype.readChunk=function(p){var C=Buffer.alloc(p);return this.buffer.copy(C,0,this.pos,this.pos+=p),C};function E(p){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=p}E.prototype=Object.create(f.prototype),E.prototype.writeByte=function(p){this.latestBuffer[this.latestBufferOffset++]=p,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},E.prototype.writeFloat32=function(p){var C=Buffer.alloc(4);C.writeFloatBE(p,0),this.writeBuffer(C)},E.prototype.writeFloat64=function(p){var C=Buffer.alloc(8);C.writeDoubleBE(p,0),this.writeBuffer(C)},E.prototype.writeString=function(p,C){var S=Buffer.from(p,"utf-8");C(S.length),this.writeBuffer(S)},E.prototype.canWriteBinary=function(p){return p instanceof Buffer},E.prototype.writeBinary=function(p,C){C(p.length),this.writeBuffer(p)},E.prototype.writeBuffer=function(p){if(!(p instanceof Buffer))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=p.length?(p.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=p.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(p),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(p),this.byteLength+=p.length},E.prototype.result=function(){for(var p=Buffer.alloc(this.byteLength),C=0,S=0;S<this.completeBuffers.length;S++){var O=this.completeBuffers[S];O.copy(p,C,0,O.length),C+=O.length}return this.latestBufferOffset&&this.latestBuffer.copy(p,C,0,this.latestBufferOffset),this.stringFormat?p.toString(this.stringFormat):p},typeof Buffer=="function"&&(x.addReader(function(p,C){if(Buffer.isBuffer(p))return new b(p);if(C==="hex"||C==="base64"){var S=Buffer.from(p,C);return new b(S)}}),x.addWriter(function(p){if(!p||p==="buffer")return new E;if(p==="hex"||p==="base64")return new E(p)}));function I(p){this.hex=p,this.pos=0}I.prototype=Object.create(a.prototype),I.prototype.peekByte=function(){var p=this.hex.substring(this.pos,2);return parseInt(p,16)},I.prototype.readByte=function(){var p=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(p,16)},I.prototype.readChunk=function(p){var C=this.hex.substring(this.pos,this.pos+p*2);return this.pos+=p*2,typeof Buffer=="function"?Buffer.from(C,"hex"):new r(C)};function w(p){this.$hex="",this.finalFormat=p||"hex"}return w.prototype=Object.create(f.prototype),w.prototype.writeByte=function(p){if(p<0||p>255)throw new Error("Byte value out of range: "+p);var C=p.toString(16);C.length==1&&(C="0"+C),this.$hex+=C},w.prototype.canWriteBinary=function(p){return p instanceof r||typeof Buffer=="function"&&p instanceof Buffer},w.prototype.writeBinary=function(p,C){if(p instanceof r)C(p.length()),this.$hex+=p.$hex;else if(typeof Buffer=="function"&&p instanceof Buffer)C(p.length),this.$hex+=p.toString("hex");else throw new TypeError("HexWriter only accepts BinaryHex or Buffers")},w.prototype.result=function(){return this.finalFormat==="buffer"&&typeof Buffer=="function"?Buffer.from(this.$hex,"hex"):new r(this.$hex).toString(this.finalFormat)},w.prototype.writeString=function(p,C){var S=r.fromUtf8String(p);C(S.length()),this.$hex+=S.$hex},x.addReader(function(p,C){if(p instanceof r||p.$hex)return new I(p.$hex);if(C==="hex")return new I(p)}),x.addWriter(function(p){if(p==="hex")return new w}),x}();return t.addSemanticEncode(0,function(r){if(r instanceof Date)return r.toISOString()}).addSemanticDecode(0,function(r){return new Date(r)}).addSemanticDecode(1,function(r){return new Date(r)}),t})}(Hr)),Hr.exports}var La;function Ce(){return La||(La=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DataItem=e.addWriter=e.addReader=e.addSemanticEncode=e.addSemanticDecode=e.decodeToDataItem=e.encodeDataItem=void 0;var n=x2();Object.defineProperty(e,"encodeDataItem",{enumerable:!0,get:function(){return n.encodeDataItem}}),Object.defineProperty(e,"decodeToDataItem",{enumerable:!0,get:function(){return n.decodeToDataItem}}),Object.defineProperty(e,"addSemanticDecode",{enumerable:!0,get:function(){return n.addSemanticDecode}}),Object.defineProperty(e,"addSemanticEncode",{enumerable:!0,get:function(){return n.addSemanticEncode}}),Object.defineProperty(e,"addReader",{enumerable:!0,get:function(){return n.addReader}}),Object.defineProperty(e,"addWriter",{enumerable:!0,get:function(){return n.addWriter}});var t=ma();Object.defineProperty(e,"DataItem",{enumerable:!0,get:function(){return t.DataItem}})}(wn)),wn}var ja;function jo(){if(ja)return Mt;ja=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.patchTags=void 0;const e=Ce(),n=[],t=r=>{r.forEach(i=>{n.find(s=>s===i)||((0,e.addSemanticEncode)(i,s=>{if(s instanceof e.DataItem&&s.getTag()===i)return s.getData()}),(0,e.addSemanticDecode)(i,s=>new e.DataItem(s,i)),n.push(i))})};return Mt.patchTags=t,Mt}var ct={},Na;function _e(){if(Na)return ct;Na=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.RegistryTypes=ct.RegistryType=void 0;class e{constructor(t,r){this.type=t,this.tag=r,this.getTag=()=>this.tag,this.getType=()=>this.type}}return ct.RegistryType=e,ct.RegistryTypes={UUID:new e("uuid",37),BYTES:new e("bytes",void 0),CRYPTO_HDKEY:new e("crypto-hdkey",303),CRYPTO_KEYPATH:new e("crypto-keypath",304),CRYPTO_COIN_INFO:new e("crypto-coin-info",305),CRYPTO_ECKEY:new e("crypto-eckey",306),CRYPTO_OUTPUT:new e("crypto-output",308),CRYPTO_PSBT:new e("crypto-psbt",310),CRYPTO_PSBT_EXTEND:new e("crypto-psbt-extend",312),CRYPTO_ACCOUNT:new e("crypto-account",311),CRYPTO_MULTI_ACCOUNTS:new e("crypto-multi-accounts",1103),QR_HARDWARE_CALL:new e("qr-hardware-call",1201),KEY_DERIVATION_CALL:new e("key-derivation-call",1301),KEY_DERIVATION_SCHEMA:new e("key-derivation-schema",1302)},ct}var Bn={},Fa;function va(){return Fa||(Fa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptExpressions=e.ScriptExpression=void 0;class n{constructor(r,i){this.tag=r,this.expression=i,this.getTag=()=>this.tag,this.getExpression=()=>this.expression}}e.ScriptExpression=n,n.fromTag=t=>Object.values(e.ScriptExpressions).find(i=>i.getTag()===t),e.ScriptExpressions={SCRIPT_HASH:new n(400,"sh"),WITNESS_SCRIPT_HASH:new n(401,"wsh"),PUBLIC_KEY:new n(402,"pk"),PUBLIC_KEY_HASH:new n(403,"pkh"),WITNESS_PUBLIC_KEY_HASH:new n(404,"wpkh"),COMBO:new n(405,"combo"),MULTISIG:new n(406,"multi"),SORTED_MULTISIG:new n(407,"sortedmulti"),ADDRESS:new n(307,"addr"),RAW_SCRIPT:new n(408,"raw")}}(Bn)),Bn}var qa;function $a(){if(qa)return _n;qa=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=jo(),n=_e(),t=va(),r=Object.values(n.RegistryTypes).filter(s=>!!s.getTag()).map(s=>s.getTag()),i=Object.values(t.ScriptExpressions).map(s=>s.getTag());return(0,e.patchTags)(r.concat(i)),_n}var Lt={},Sn,Ka;function b2(){if(Ka)return Sn;Ka=1;var e={}.toString;return Sn=Array.isArray||function(n){return e.call(n)=="[object Array]"},Sn}var En,Ha;function C2(){if(Ha)return En;Ha=1;var e=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,r;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,t)}catch(x){x!==r&&(n=null)}else n=null;var i=/^\s*class\b/,s=function(b){try{var E=e.call(b);return i.test(E)}catch{return!1}},u=function(b){try{return s(b)?!1:(e.call(b),!0)}catch{return!1}},a=Object.prototype.toString,f="[object Object]",o="[object Function]",c="[object GeneratorFunction]",l="[object HTMLAllCollection]",d="[object HTML document.all class]",h="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var g=document.all;a.call(g)===a.call(document.all)&&(y=function(b){if((v||!b)&&(typeof b>"u"||typeof b=="object"))try{var E=a.call(b);return(E===l||E===d||E===h||E===f)&&b("")==null}catch{}return!1})}return En=n?function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{n(b,null,t)}catch(E){if(E!==r)return!1}return!s(b)&&u(b)}:function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(m)return u(b);if(s(b))return!1;var E=a.call(b);return E!==o&&E!==c&&!/^\[object HTML/.test(E)?!1:u(b)},En}var Pn,za;function _2(){if(za)return Pn;za=1;var e=C2(),n=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=function(f,o,c){for(var l=0,d=f.length;l<d;l++)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))},i=function(f,o,c){for(var l=0,d=f.length;l<d;l++)c==null?o(f.charAt(l),l,f):o.call(c,f.charAt(l),l,f)},s=function(f,o,c){for(var l in f)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))};function u(a){return n.call(a)==="[object Array]"}return Pn=function(f,o,c){if(!e(o))throw new TypeError("iterator must be a function");var l;arguments.length>=3&&(l=c),u(f)?r(f,o,l):typeof f=="string"?i(f,o,l):s(f,o,l)},Pn}var kn,Ga;function w2(){return Ga||(Ga=1,kn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),kn}var Tn,Wa;function B2(){if(Wa)return Tn;Wa=1;var e=w2(),n=typeof globalThis>"u"?it:globalThis;return Tn=function(){for(var r=[],i=0;i<e.length;i++)typeof n[e[i]]=="function"&&(r[r.length]=e[i]);return r},Tn}var Rn={exports:{}},In,Va;function $c(){if(Va)return In;Va=1;var e=ga(),n=u2(),t=on(),r=an();return In=function(s,u,a){if(!s||typeof s!="object"&&typeof s!="function")throw new t("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,d=!!r&&r(s,u);if(e)e(s,u,{configurable:c===null&&d?d.configurable:!c,enumerable:f===null&&d?d.enumerable:!f,value:a,writable:o===null&&d?d.writable:!o});else if(l||!f&&!o&&!c)s[u]=a;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},In}var Dn,Ya;function Kc(){if(Ya)return Dn;Ya=1;var e=ga(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Dn=n,Dn}var On,Xa;function S2(){if(Xa)return On;Xa=1;var e=jc(),n=$c(),t=Kc()(),r=an(),i=on(),s=e("%Math.floor%");return On=function(a,f){if(typeof a!="function")throw new i("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||s(f)!==f)throw new i("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],c=!0,l=!0;if("length"in a&&r){var d=r(a,"length");d&&!d.configurable&&(c=!1),d&&!d.writable&&(l=!1)}return(c||l||!o)&&(t?n(a,"length",f,!0,!0):n(a,"length",f)),a},On}var An,Qa;function E2(){if(Qa)return An;Qa=1;var e=l2(),n=d2(),t=f2();return An=function(){return t(e,n,arguments)},An}var Ja;function sn(){return Ja||(Ja=1,function(e){var n=S2(),t=ga(),r=h2(),i=E2();e.exports=function(u){var a=r(arguments),f=u.length-(arguments.length-1);return n(a,1+(f>0?f:0),!0)},t?t(e.exports,"apply",{value:i}):e.exports.apply=i}(Rn)),Rn.exports}var Mn,Za;function cn(){if(Za)return Mn;Za=1;var e=Nc();return Mn=function(){return e()&&!!Symbol.toStringTag},Mn}var Un,es;function Hc(){if(es)return Un;es=1;var e=_2(),n=B2(),t=sn(),r=dt(),i=an(),s=Fc(),u=r("Object.prototype.toString"),a=cn()(),f=typeof globalThis>"u"?it:globalThis,o=n(),c=r("String.prototype.slice"),l=r("Array.prototype.indexOf",!0)||function(y,g){for(var x=0;x<y.length;x+=1)if(y[x]===g)return x;return-1},d={__proto__:null};a&&i&&s?e(o,function(v){var y=new f[v];if(Symbol.toStringTag in y&&s){var g=s(y),x=i(g,Symbol.toStringTag);if(!x&&g){var b=s(g);x=i(b,Symbol.toStringTag)}d["$"+v]=t(x.get)}}):e(o,function(v){var y=new f[v],g=y.slice||y.set;g&&(d["$"+v]=t(g))});var h=function(y){var g=!1;return e(d,function(x,b){if(!g)try{"$"+x(y)===b&&(g=c(b,1))}catch{}}),g},m=function(y){var g=!1;return e(d,function(x,b){if(!g)try{x(y),g=c(b,1)}catch{}}),g};return Un=function(y){if(!y||typeof y!="object")return!1;if(!a){var g=c(u(y),8,-1);return l(o,g)>-1?g:g!=="Object"?!1:m(y)}return i?h(y):null},Un}var Ln,ts;function zc(){if(ts)return Ln;ts=1;var e=Hc();return Ln=function(t){return!!e(t)},Ln}var jn,rs;function P2(){if(rs)return jn;rs=1;var e=on(),n=dt(),t=n("TypedArray.prototype.buffer",!0),r=zc();return jn=t||function(s){if(!r(s))throw new e("Not a Typed Array");return s.buffer},jn}var Nn,ns;function xa(){if(ns)return Nn;ns=1;var e=qe().Buffer,n=b2(),t=P2(),r=ArrayBuffer.isView||function(f){try{return t(f),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return Nn=function(f,o){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,o);if(s&&r(f)){if(f.byteLength===0)return e.alloc(0);if(u){var c=e.from(f.buffer,f.byteOffset,f.byteLength);if(c.byteLength===f.byteLength)return c}var l=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),d=e.from(l);if(d.length===f.byteLength)return d}if(i&&f instanceof Uint8Array)return e.from(f);var h=n(f);if(h)for(var m=0;m<f.length;m+=1){var v=f[m];if(typeof v!="number"||v<0||v>255||~~v!==v)throw new RangeError("Array items must be numbers in the range 0-255.")}if(h||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Nn}var Fn,is;function k2(){if(is)return Fn;is=1;var e=qe().Buffer,n=xa(),t=typeof Uint8Array<"u",r=t&&typeof ArrayBuffer<"u",i=r&&ArrayBuffer.isView;return Fn=function(s,u){if(typeof s=="string"||e.isBuffer(s)||t&&s instanceof Uint8Array||i&&i(s))return n(s,u);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},Fn}var Dr={exports:{}},Or={exports:{}},os;function un(){if(os)return Or.exports;os=1,typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Or.exports={nextTick:e}:Or.exports=process;function e(n,t,r,i){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,u,a;switch(s){case 0:case 1:return process.nextTick(n);case 2:return process.nextTick(function(){n.call(null,t)});case 3:return process.nextTick(function(){n.call(null,t,r)});case 4:return process.nextTick(function(){n.call(null,t,r,i)});default:for(u=new Array(s-1),a=0;a<u.length;)u[a++]=arguments[a];return process.nextTick(function(){n.apply(null,u)})}}return Or.exports}var qn,as;function T2(){if(as)return qn;as=1;var e={}.toString;return qn=Array.isArray||function(n){return e.call(n)=="[object Array]"},qn}var $n,ss;function Gc(){return ss||(ss=1,$n=pa().EventEmitter),$n}var Ar={exports:{}},cs;function ba(){return cs||(cs=1,function(e,n){var t=St(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Ar,Ar.exports)),Ar.exports}var we={},us;function Sr(){if(us)return we;us=1;function e(v){return Array.isArray?Array.isArray(v):m(v)==="[object Array]"}we.isArray=e;function n(v){return typeof v=="boolean"}we.isBoolean=n;function t(v){return v===null}we.isNull=t;function r(v){return v==null}we.isNullOrUndefined=r;function i(v){return typeof v=="number"}we.isNumber=i;function s(v){return typeof v=="string"}we.isString=s;function u(v){return typeof v=="symbol"}we.isSymbol=u;function a(v){return v===void 0}we.isUndefined=a;function f(v){return m(v)==="[object RegExp]"}we.isRegExp=f;function o(v){return typeof v=="object"&&v!==null}we.isObject=o;function c(v){return m(v)==="[object Date]"}we.isDate=c;function l(v){return m(v)==="[object Error]"||v instanceof Error}we.isError=l;function d(v){return typeof v=="function"}we.isFunction=d;function h(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||typeof v=="symbol"||typeof v>"u"}we.isPrimitive=h,we.isBuffer=St().Buffer.isBuffer;function m(v){return Object.prototype.toString.call(v)}return we}var Kn={exports:{}},fs;function R2(){return fs||(fs=1,function(e){function n(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}var t=ba().Buffer,r=ya;function i(s,u,a){s.copy(u,a)}e.exports=function(){function s(){n(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var f={data:a,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},s.prototype.unshift=function(a){var f={data:a,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var f=this.head,o=""+f.data;f=f.next;)o+=a+f.data;return o},s.prototype.concat=function(a){if(this.length===0)return t.alloc(0);for(var f=t.allocUnsafe(a>>>0),o=this.head,c=0;o;)i(o.data,f,c),c+=o.data.length,o=o.next;return f},s}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var s=r.inspect({length:this.length});return this.constructor.name+" "+s})}(Kn)),Kn.exports}var Hn,ls;function Wc(){if(ls)return Hn;ls=1;var e=un();function n(i,s){var u=this,a=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return a||f?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(r,this,i)):e.nextTick(r,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(o){!s&&o?u._writableState?u._writableState.errorEmitted||(u._writableState.errorEmitted=!0,e.nextTick(r,u,o)):e.nextTick(r,u,o):s&&s(o)}),this)}function t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function r(i,s){i.emit("error",s)}return Hn={destroy:n,undestroy:t},Hn}var zn,ds;function I2(){if(ds)return zn;ds=1,zn=e;function e(t,r){if(n("noDeprecation"))return t;var i=!1;function s(){if(!i){if(n("throwDeprecation"))throw new Error(r);n("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return t.apply(this,arguments)}return s}function n(t){try{if(!it.localStorage)return!1}catch{return!1}var r=it.localStorage[t];return r==null?!1:String(r).toLowerCase()==="true"}return zn}var Gn,hs;function Vc(){if(hs)return Gn;hs=1;var e=un();Gn=v;function n(R){var A=this;this.next=null,this.entry=null,this.finish=function(){W(A,R)}}var t=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:e.nextTick,r;v.WritableState=h;var i=Object.create(Sr());i.inherits=Pe();var s={deprecate:I2()},u=Gc(),a=ba().Buffer,f=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(R){return a.from(R)}function c(R){return a.isBuffer(R)||R instanceof f}var l=Wc();i.inherits(v,u);function d(){}function h(R,A){r=r||wt(),R=R||{};var N=A instanceof r;this.objectMode=!!R.objectMode,N&&(this.objectMode=this.objectMode||!!R.writableObjectMode);var G=R.highWaterMark,J=R.writableHighWaterMark,Z=this.objectMode?16:16*1024;G||G===0?this.highWaterMark=G:N&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Z,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $=R.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(M){p(A,M)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}h.prototype.getBuffer=function(){for(var A=this.bufferedRequest,N=[];A;)N.push(A),A=A.next;return N},function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var m;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(R){return m.call(this,R)?!0:this!==v?!1:R&&R._writableState instanceof h}})):m=function(R){return R instanceof this};function v(R){if(r=r||wt(),!m.call(v,this)&&!(this instanceof r))return new v(R);this._writableState=new h(R,this),this.writable=!0,R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final)),u.call(this)}v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function y(R,A){var N=new Error("write after end");R.emit("error",N),e.nextTick(A,N)}function g(R,A,N,G){var J=!0,Z=!1;return N===null?Z=new TypeError("May not write null values to stream"):typeof N!="string"&&N!==void 0&&!A.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z&&(R.emit("error",Z),e.nextTick(G,Z),J=!1),J}v.prototype.write=function(R,A,N){var G=this._writableState,J=!1,Z=!G.objectMode&&c(R);return Z&&!a.isBuffer(R)&&(R=o(R)),typeof A=="function"&&(N=A,A=null),Z?A="buffer":A||(A=G.defaultEncoding),typeof N!="function"&&(N=d),G.ended?y(this,N):(Z||g(this,G,R,N))&&(G.pendingcb++,J=b(this,G,Z,R,A,N)),J},v.prototype.cork=function(){var R=this._writableState;R.corked++},v.prototype.uncork=function(){var R=this._writableState;R.corked&&(R.corked--,!R.writing&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest&&O(this,R))},v.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this};function x(R,A,N){return!R.objectMode&&R.decodeStrings!==!1&&typeof A=="string"&&(A=a.from(A,N)),A}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(R,A,N,G,J,Z){if(!N){var $=x(A,G,J);G!==$&&(N=!0,J="buffer",G=$)}var M=A.objectMode?1:G.length;A.length+=M;var U=A.length<A.highWaterMark;if(U||(A.needDrain=!0),A.writing||A.corked){var q=A.lastBufferedRequest;A.lastBufferedRequest={chunk:G,encoding:J,isBuf:N,callback:Z,next:null},q?q.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else E(R,A,!1,M,G,J,Z);return U}function E(R,A,N,G,J,Z,$){A.writelen=G,A.writecb=$,A.writing=!0,A.sync=!0,N?R._writev(J,A.onwrite):R._write(J,Z,A.onwrite),A.sync=!1}function I(R,A,N,G,J){--A.pendingcb,N?(e.nextTick(J,G),e.nextTick(L,R,A),R._writableState.errorEmitted=!0,R.emit("error",G)):(J(G),R._writableState.errorEmitted=!0,R.emit("error",G),L(R,A))}function w(R){R.writing=!1,R.writecb=null,R.length-=R.writelen,R.writelen=0}function p(R,A){var N=R._writableState,G=N.sync,J=N.writecb;if(w(N),A)I(R,N,G,A,J);else{var Z=j(N);!Z&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&O(R,N),G?t(C,R,N,Z,J):C(R,N,Z,J)}}function C(R,A,N,G){N||S(R,A),A.pendingcb--,G(),L(R,A)}function S(R,A){A.length===0&&A.needDrain&&(A.needDrain=!1,R.emit("drain"))}function O(R,A){A.bufferProcessing=!0;var N=A.bufferedRequest;if(R._writev&&N&&N.next){var G=A.bufferedRequestCount,J=new Array(G),Z=A.corkedRequestsFree;Z.entry=N;for(var $=0,M=!0;N;)J[$]=N,N.isBuf||(M=!1),N=N.next,$+=1;J.allBuffers=M,E(R,A,!0,A.length,J,"",Z.finish),A.pendingcb++,A.lastBufferedRequest=null,Z.next?(A.corkedRequestsFree=Z.next,Z.next=null):A.corkedRequestsFree=new n(A),A.bufferedRequestCount=0}else{for(;N;){var U=N.chunk,q=N.encoding,P=N.callback,k=A.objectMode?1:U.length;if(E(R,A,!1,k,U,q,P),N=N.next,A.bufferedRequestCount--,A.writing)break}N===null&&(A.lastBufferedRequest=null)}A.bufferedRequest=N,A.bufferProcessing=!1}v.prototype._write=function(R,A,N){N(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(R,A,N){var G=this._writableState;typeof R=="function"?(N=R,R=null,A=null):typeof A=="function"&&(N=A,A=null),R!=null&&this.write(R,A),G.corked&&(G.corked=1,this.uncork()),G.ending||F(this,G,N)};function j(R){return R.ending&&R.length===0&&R.bufferedRequest===null&&!R.finished&&!R.writing}function V(R,A){R._final(function(N){A.pendingcb--,N&&R.emit("error",N),A.prefinished=!0,R.emit("prefinish"),L(R,A)})}function z(R,A){!A.prefinished&&!A.finalCalled&&(typeof R._final=="function"?(A.pendingcb++,A.finalCalled=!0,e.nextTick(V,R,A)):(A.prefinished=!0,R.emit("prefinish")))}function L(R,A){var N=j(A);return N&&(z(R,A),A.pendingcb===0&&(A.finished=!0,R.emit("finish"))),N}function F(R,A,N){A.ending=!0,L(R,A),N&&(A.finished?e.nextTick(N):R.once("finish",N)),A.ended=!0,R.writable=!1}function W(R,A,N){var G=R.entry;for(R.entry=null;G;){var J=G.callback;A.pendingcb--,J(N),G=G.next}A.corkedRequestsFree.next=R}return Object.defineProperty(v.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),v.prototype.destroy=l.destroy,v.prototype._undestroy=l.undestroy,v.prototype._destroy=function(R,A){this.end(),A(R)},Gn}var Wn,ps;function wt(){if(ps)return Wn;ps=1;var e=un(),n=Object.keys||function(l){var d=[];for(var h in l)d.push(h);return d};Wn=f;var t=Object.create(Sr());t.inherits=Pe();var r=Yc(),i=Vc();t.inherits(f,r);for(var s=n(i.prototype),u=0;u<s.length;u++){var a=s[u];f.prototype[a]||(f.prototype[a]=i.prototype[a])}function f(l){if(!(this instanceof f))return new f(l);r.call(this,l),i.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){this.allowHalfOpen||this._writableState.ended||e.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=l,this._writableState.destroyed=l)}}),f.prototype._destroy=function(l,d){this.push(null),this.end(),e.nextTick(d,l)},Wn}var Vn={},Mr={exports:{}},gs;function D2(){return gs||(gs=1,function(e,n){var t=St(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Mr,Mr.exports)),Mr.exports}var ys;function ms(){if(ys)return Vn;ys=1;var e=D2().Buffer,n=e.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(g){if(!g)return"utf8";for(var x;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(x)return;g=(""+g).toLowerCase(),x=!0}}function r(g){var x=t(g);if(typeof x!="string"&&(e.isEncoding===n||!n(g)))throw new Error("Unknown encoding: "+g);return x||g}Vn.StringDecoder=i;function i(g){this.encoding=r(g);var x;switch(this.encoding){case"utf16le":this.text=l,this.end=d,x=4;break;case"utf8":this.fillLast=f,x=4;break;case"base64":this.text=h,this.end=m,x=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(x)}i.prototype.write=function(g){if(g.length===0)return"";var x,b;if(this.lastNeed){if(x=this.fillLast(g),x===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<g.length?x?x+this.text(g,b):this.text(g,b):x||""},i.prototype.end=c,i.prototype.text=o,i.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function s(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function u(g,x,b){var E=x.length-1;if(E<b)return 0;var I=s(x[E]);return I>=0?(I>0&&(g.lastNeed=I-1),I):--E<b||I===-2?0:(I=s(x[E]),I>=0?(I>0&&(g.lastNeed=I-2),I):--E<b||I===-2?0:(I=s(x[E]),I>=0?(I>0&&(I===2?I=0:g.lastNeed=I-3),I):0))}function a(g,x,b){if((x[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return g.lastNeed=2,"�"}}function f(g){var x=this.lastTotal-this.lastNeed,b=a(this,g);if(b!==void 0)return b;if(this.lastNeed<=g.length)return g.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,x,0,g.length),this.lastNeed-=g.length}function o(g,x){var b=u(this,g,x);if(!this.lastNeed)return g.toString("utf8",x);this.lastTotal=b;var E=g.length-(b-this.lastNeed);return g.copy(this.lastChar,0,E),g.toString("utf8",x,E)}function c(g){var x=g&&g.length?this.write(g):"";return this.lastNeed?x+"�":x}function l(g,x){if((g.length-x)%2===0){var b=g.toString("utf16le",x);if(b){var E=b.charCodeAt(b.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",x,g.length-1)}function d(g){var x=g&&g.length?this.write(g):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,b)}return x}function h(g,x){var b=(g.length-x)%3;return b===0?g.toString("base64",x):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",x,g.length-b))}function m(g){var x=g&&g.length?this.write(g):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}return Vn}var Yn,vs;function Yc(){if(vs)return Yn;vs=1;var e=un();Yn=x;var n=T2(),t;x.ReadableState=g,pa().EventEmitter;var r=function(P,k){return P.listeners(k).length},i=Gc(),s=ba().Buffer,u=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(P){return s.from(P)}function f(P){return s.isBuffer(P)||P instanceof u}var o=Object.create(Sr());o.inherits=Pe();var c=ya,l=void 0;c&&c.debuglog?l=c.debuglog("stream"):l=function(){};var d=R2(),h=Wc(),m;o.inherits(x,i);var v=["error","close","destroy","pause","resume"];function y(P,k,K){if(typeof P.prependListener=="function")return P.prependListener(k,K);!P._events||!P._events[k]?P.on(k,K):n(P._events[k])?P._events[k].unshift(K):P._events[k]=[K,P._events[k]]}function g(P,k){t=t||wt(),P=P||{};var K=k instanceof t;this.objectMode=!!P.objectMode,K&&(this.objectMode=this.objectMode||!!P.readableObjectMode);var Y=P.highWaterMark,ne=P.readableHighWaterMark,re=this.objectMode?16:16*1024;Y||Y===0?this.highWaterMark=Y:K&&(ne||ne===0)?this.highWaterMark=ne:this.highWaterMark=re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(m||(m=ms().StringDecoder),this.decoder=new m(P.encoding),this.encoding=P.encoding)}function x(P){if(t=t||wt(),!(this instanceof x))return new x(P);this._readableState=new g(P,this),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),i.call(this)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),x.prototype.destroy=h.destroy,x.prototype._undestroy=h.undestroy,x.prototype._destroy=function(P,k){this.push(null),k(P)},x.prototype.push=function(P,k){var K=this._readableState,Y;return K.objectMode?Y=!0:typeof P=="string"&&(k=k||K.defaultEncoding,k!==K.encoding&&(P=s.from(P,k),k=""),Y=!0),b(this,P,k,!1,Y)},x.prototype.unshift=function(P){return b(this,P,null,!0,!1)};function b(P,k,K,Y,ne){var re=P._readableState;if(k===null)re.reading=!1,O(P,re);else{var oe;ne||(oe=I(re,k)),oe?P.emit("error",oe):re.objectMode||k&&k.length>0?(typeof k!="string"&&!re.objectMode&&Object.getPrototypeOf(k)!==s.prototype&&(k=a(k)),Y?re.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):E(P,re,k,!0):re.ended?P.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!K?(k=re.decoder.write(k),re.objectMode||k.length!==0?E(P,re,k,!1):z(P,re)):E(P,re,k,!1))):Y||(re.reading=!1)}return w(re)}function E(P,k,K,Y){k.flowing&&k.length===0&&!k.sync?(P.emit("data",K),P.read(0)):(k.length+=k.objectMode?1:K.length,Y?k.buffer.unshift(K):k.buffer.push(K),k.needReadable&&j(P)),z(P,k)}function I(P,k){var K;return!f(k)&&typeof k!="string"&&k!==void 0&&!P.objectMode&&(K=new TypeError("Invalid non-string/buffer chunk")),K}function w(P){return!P.ended&&(P.needReadable||P.length<P.highWaterMark||P.length===0)}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(P){return m||(m=ms().StringDecoder),this._readableState.decoder=new m(P),this._readableState.encoding=P,this};var p=8388608;function C(P){return P>=p?P=p:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function S(P,k){return P<=0||k.length===0&&k.ended?0:k.objectMode?1:P!==P?k.flowing&&k.length?k.buffer.head.data.length:k.length:(P>k.highWaterMark&&(k.highWaterMark=C(P)),P<=k.length?P:k.ended?k.length:(k.needReadable=!0,0))}x.prototype.read=function(P){l("read",P),P=parseInt(P,10);var k=this._readableState,K=P;if(P!==0&&(k.emittedReadable=!1),P===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return l("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?M(this):j(this),null;if(P=S(P,k),P===0&&k.ended)return k.length===0&&M(this),null;var Y=k.needReadable;l("need readable",Y),(k.length===0||k.length-P<k.highWaterMark)&&(Y=!0,l("length less than watermark",Y)),k.ended||k.reading?(Y=!1,l("reading or ended",Y)):Y&&(l("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(P=S(K,k)));var ne;return P>0?ne=G(P,k):ne=null,ne===null?(k.needReadable=!0,P=0):k.length-=P,k.length===0&&(k.ended||(k.needReadable=!0),K!==P&&k.ended&&M(this)),ne!==null&&this.emit("data",ne),ne};function O(P,k){if(!k.ended){if(k.decoder){var K=k.decoder.end();K&&K.length&&(k.buffer.push(K),k.length+=k.objectMode?1:K.length)}k.ended=!0,j(P)}}function j(P){var k=P._readableState;k.needReadable=!1,k.emittedReadable||(l("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?e.nextTick(V,P):V(P))}function V(P){l("emit readable"),P.emit("readable"),N(P)}function z(P,k){k.readingMore||(k.readingMore=!0,e.nextTick(L,P,k))}function L(P,k){for(var K=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(l("maybeReadMore read 0"),P.read(0),K!==k.length);)K=k.length;k.readingMore=!1}x.prototype._read=function(P){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(P,k){var K=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=P;break;case 1:Y.pipes=[Y.pipes,P];break;default:Y.pipes.push(P);break}Y.pipesCount+=1,l("pipe count=%d opts=%j",Y.pipesCount,k);var ne=(!k||k.end!==!1)&&P!==process.stdout&&P!==process.stderr,re=ne?fe:ce;Y.endEmitted?e.nextTick(re):K.once("end",re),P.on("unpipe",oe);function oe(H,Q){l("onunpipe"),H===K&&Q&&Q.hasUnpiped===!1&&(Q.hasUnpiped=!0,_())}function fe(){l("onend"),P.end()}var he=F(K);P.on("drain",he);var D=!1;function _(){l("cleanup"),P.removeListener("close",ee),P.removeListener("finish",te),P.removeListener("drain",he),P.removeListener("error",X),P.removeListener("unpipe",oe),K.removeListener("end",fe),K.removeListener("end",ce),K.removeListener("data",T),D=!0,Y.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&he()}var B=!1;K.on("data",T);function T(H){l("ondata"),B=!1;var Q=P.write(H);Q===!1&&!B&&((Y.pipesCount===1&&Y.pipes===P||Y.pipesCount>1&&q(Y.pipes,P)!==-1)&&!D&&(l("false write response, pause",Y.awaitDrain),Y.awaitDrain++,B=!0),K.pause())}function X(H){l("onerror",H),ce(),P.removeListener("error",X),r(P,"error")===0&&P.emit("error",H)}y(P,"error",X);function ee(){P.removeListener("finish",te),ce()}P.once("close",ee);function te(){l("onfinish"),P.removeListener("close",ee),ce()}P.once("finish",te);function ce(){l("unpipe"),K.unpipe(P)}return P.emit("pipe",K),Y.flowing||(l("pipe resume"),K.resume()),P};function F(P){return function(){var k=P._readableState;l("pipeOnDrain",k.awaitDrain),k.awaitDrain&&k.awaitDrain--,k.awaitDrain===0&&r(P,"data")&&(k.flowing=!0,N(P))}}x.prototype.unpipe=function(P){var k=this._readableState,K={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return P&&P!==k.pipes?this:(P||(P=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,P&&P.emit("unpipe",this,K),this);if(!P){var Y=k.pipes,ne=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var re=0;re<ne;re++)Y[re].emit("unpipe",this,{hasUnpiped:!1});return this}var oe=q(k.pipes,P);return oe===-1?this:(k.pipes.splice(oe,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),P.emit("unpipe",this,K),this)},x.prototype.on=function(P,k){var K=i.prototype.on.call(this,P,k);if(P==="data")this._readableState.flowing!==!1&&this.resume();else if(P==="readable"){var Y=this._readableState;!Y.endEmitted&&!Y.readableListening&&(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&j(this):e.nextTick(W,this))}return K},x.prototype.addListener=x.prototype.on;function W(P){l("readable nexttick read 0"),P.read(0)}x.prototype.resume=function(){var P=this._readableState;return P.flowing||(l("resume"),P.flowing=!0,R(this,P)),this};function R(P,k){k.resumeScheduled||(k.resumeScheduled=!0,e.nextTick(A,P,k))}function A(P,k){k.reading||(l("resume read 0"),P.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,P.emit("resume"),N(P),k.flowing&&!k.reading&&P.read(0)}x.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function N(P){var k=P._readableState;for(l("flow",k.flowing);k.flowing&&P.read()!==null;);}x.prototype.wrap=function(P){var k=this,K=this._readableState,Y=!1;P.on("end",function(){if(l("wrapped end"),K.decoder&&!K.ended){var oe=K.decoder.end();oe&&oe.length&&k.push(oe)}k.push(null)}),P.on("data",function(oe){if(l("wrapped data"),K.decoder&&(oe=K.decoder.write(oe)),!(K.objectMode&&oe==null)&&!(!K.objectMode&&(!oe||!oe.length))){var fe=k.push(oe);fe||(Y=!0,P.pause())}});for(var ne in P)this[ne]===void 0&&typeof P[ne]=="function"&&(this[ne]=function(oe){return function(){return P[oe].apply(P,arguments)}}(ne));for(var re=0;re<v.length;re++)P.on(v[re],this.emit.bind(this,v[re]));return this._read=function(oe){l("wrapped _read",oe),Y&&(Y=!1,P.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=G;function G(P,k){if(k.length===0)return null;var K;return k.objectMode?K=k.buffer.shift():!P||P>=k.length?(k.decoder?K=k.buffer.join(""):k.buffer.length===1?K=k.buffer.head.data:K=k.buffer.concat(k.length),k.buffer.clear()):K=J(P,k.buffer,k.decoder),K}function J(P,k,K){var Y;return P<k.head.data.length?(Y=k.head.data.slice(0,P),k.head.data=k.head.data.slice(P)):P===k.head.data.length?Y=k.shift():Y=K?Z(P,k):$(P,k),Y}function Z(P,k){var K=k.head,Y=1,ne=K.data;for(P-=ne.length;K=K.next;){var re=K.data,oe=P>re.length?re.length:P;if(oe===re.length?ne+=re:ne+=re.slice(0,P),P-=oe,P===0){oe===re.length?(++Y,K.next?k.head=K.next:k.head=k.tail=null):(k.head=K,K.data=re.slice(oe));break}++Y}return k.length-=Y,ne}function $(P,k){var K=s.allocUnsafe(P),Y=k.head,ne=1;for(Y.data.copy(K),P-=Y.data.length;Y=Y.next;){var re=Y.data,oe=P>re.length?re.length:P;if(re.copy(K,K.length-P,0,oe),P-=oe,P===0){oe===re.length?(++ne,Y.next?k.head=Y.next:k.head=k.tail=null):(k.head=Y,Y.data=re.slice(oe));break}++ne}return k.length-=ne,K}function M(P){var k=P._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,e.nextTick(U,k,P))}function U(P,k){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,k.readable=!1,k.emit("end"))}function q(P,k){for(var K=0,Y=P.length;K<Y;K++)if(P[K]===k)return K;return-1}return Yn}var Xn,xs;function Xc(){if(xs)return Xn;xs=1,Xn=r;var e=wt(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(r,e);function t(u,a){var f=this._transformState;f.transforming=!1;var o=f.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,a!=null&&this.push(a),o(u);var c=this._readableState;c.reading=!1,(c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}function r(u){if(!(this instanceof r))return new r(u);e.call(this,u),this._transformState={afterTransform:t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",i)}function i(){var u=this;typeof this._flush=="function"?this._flush(function(a,f){s(u,a,f)}):s(this,null,null)}r.prototype.push=function(u,a){return this._transformState.needTransform=!1,e.prototype.push.call(this,u,a)},r.prototype._transform=function(u,a,f){throw new Error("_transform() is not implemented")},r.prototype._write=function(u,a,f){var o=this._transformState;if(o.writecb=f,o.writechunk=u,o.writeencoding=a,!o.transforming){var c=this._readableState;(o.needTransform||c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}},r.prototype._read=function(u){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},r.prototype._destroy=function(u,a){var f=this;e.prototype._destroy.call(this,u,function(o){a(o),f.emit("close")})};function s(u,a,f){if(a)return u.emit("error",a);if(f!=null&&u.push(f),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}return Xn}var Qn,bs;function O2(){if(bs)return Qn;bs=1,Qn=t;var e=Xc(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,s){s(null,r)},Qn}var Cs;function A2(){return Cs||(Cs=1,function(e,n){n=e.exports=Yc(),n.Stream=n,n.Readable=n,n.Writable=Vc(),n.Duplex=wt(),n.Transform=Xc(),n.PassThrough=O2()}(Dr,Dr.exports)),Dr.exports}var Jn,_s;function Qc(){if(_s)return Jn;_s=1;var e=qe().Buffer,n=k2(),t=A2().Transform,r=Pe();function i(s){t.call(this),this._block=e.allocUnsafe(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return r(i,t),i.prototype._transform=function(s,u,a){var f=null;try{this.update(s,u)}catch(o){f=o}a(f)},i.prototype._flush=function(s){var u=null;try{this.push(this.digest())}catch(a){u=a}s(u)},i.prototype.update=function(s,u){if(this._finalized)throw new Error("Digest already called");for(var a=n(s,u),f=this._block,o=0;this._blockOffset+a.length-o>=this._blockSize;){for(var c=this._blockOffset;c<this._blockSize;)f[c]=a[o],c+=1,o+=1;this._update(),this._blockOffset=0}for(;o<a.length;)f[this._blockOffset]=a[o],this._blockOffset+=1,o+=1;for(var l=0,d=a.length*8;d>0;++l)this._length[l]+=d,d=this._length[l]/4294967296|0,d>0&&(this._length[l]-=4294967296*d);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var u=this._digest();s!==void 0&&(u=u.toString(s)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return u},i.prototype._digest=function(){throw new Error("_digest is not implemented")},Jn=i,Jn}var Zn,ws;function M2(){if(ws)return Zn;ws=1;var e=Pe(),n=Qc(),t=qe().Buffer,r=new Array(16);function i(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(i,n),i.prototype._update=function(){for(var c=r,l=0;l<16;++l)c[l]=this._block.readInt32LE(l*4);var d=this._a,h=this._b,m=this._c,v=this._d;d=u(d,h,m,v,c[0],3614090360,7),v=u(v,d,h,m,c[1],3905402710,12),m=u(m,v,d,h,c[2],606105819,17),h=u(h,m,v,d,c[3],3250441966,22),d=u(d,h,m,v,c[4],4118548399,7),v=u(v,d,h,m,c[5],1200080426,12),m=u(m,v,d,h,c[6],2821735955,17),h=u(h,m,v,d,c[7],4249261313,22),d=u(d,h,m,v,c[8],1770035416,7),v=u(v,d,h,m,c[9],2336552879,12),m=u(m,v,d,h,c[10],4294925233,17),h=u(h,m,v,d,c[11],2304563134,22),d=u(d,h,m,v,c[12],1804603682,7),v=u(v,d,h,m,c[13],4254626195,12),m=u(m,v,d,h,c[14],2792965006,17),h=u(h,m,v,d,c[15],1236535329,22),d=a(d,h,m,v,c[1],4129170786,5),v=a(v,d,h,m,c[6],3225465664,9),m=a(m,v,d,h,c[11],643717713,14),h=a(h,m,v,d,c[0],3921069994,20),d=a(d,h,m,v,c[5],3593408605,5),v=a(v,d,h,m,c[10],38016083,9),m=a(m,v,d,h,c[15],3634488961,14),h=a(h,m,v,d,c[4],3889429448,20),d=a(d,h,m,v,c[9],568446438,5),v=a(v,d,h,m,c[14],3275163606,9),m=a(m,v,d,h,c[3],4107603335,14),h=a(h,m,v,d,c[8],1163531501,20),d=a(d,h,m,v,c[13],2850285829,5),v=a(v,d,h,m,c[2],4243563512,9),m=a(m,v,d,h,c[7],1735328473,14),h=a(h,m,v,d,c[12],2368359562,20),d=f(d,h,m,v,c[5],4294588738,4),v=f(v,d,h,m,c[8],2272392833,11),m=f(m,v,d,h,c[11],1839030562,16),h=f(h,m,v,d,c[14],4259657740,23),d=f(d,h,m,v,c[1],2763975236,4),v=f(v,d,h,m,c[4],1272893353,11),m=f(m,v,d,h,c[7],4139469664,16),h=f(h,m,v,d,c[10],3200236656,23),d=f(d,h,m,v,c[13],681279174,4),v=f(v,d,h,m,c[0],3936430074,11),m=f(m,v,d,h,c[3],3572445317,16),h=f(h,m,v,d,c[6],76029189,23),d=f(d,h,m,v,c[9],3654602809,4),v=f(v,d,h,m,c[12],3873151461,11),m=f(m,v,d,h,c[15],530742520,16),h=f(h,m,v,d,c[2],3299628645,23),d=o(d,h,m,v,c[0],4096336452,6),v=o(v,d,h,m,c[7],1126891415,10),m=o(m,v,d,h,c[14],2878612391,15),h=o(h,m,v,d,c[5],4237533241,21),d=o(d,h,m,v,c[12],1700485571,6),v=o(v,d,h,m,c[3],2399980690,10),m=o(m,v,d,h,c[10],4293915773,15),h=o(h,m,v,d,c[1],2240044497,21),d=o(d,h,m,v,c[8],1873313359,6),v=o(v,d,h,m,c[15],4264355552,10),m=o(m,v,d,h,c[6],2734768916,15),h=o(h,m,v,d,c[13],1309151649,21),d=o(d,h,m,v,c[4],4149444226,6),v=o(v,d,h,m,c[11],3174756917,10),m=o(m,v,d,h,c[2],718787259,15),h=o(h,m,v,d,c[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+h|0,this._c=this._c+m|0,this._d=this._d+v|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c=t.allocUnsafe(16);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c};function s(c,l){return c<<l|c>>>32-l}function u(c,l,d,h,m,v,y){return s(c+(l&d|~l&h)+m+v|0,y)+l|0}function a(c,l,d,h,m,v,y){return s(c+(l&h|d&~h)+m+v|0,y)+l|0}function f(c,l,d,h,m,v,y){return s(c+(l^d^h)+m+v|0,y)+l|0}function o(c,l,d,h,m,v,y){return s(c+(d^(l|~h))+m+v|0,y)+l|0}return Zn=i,Zn}var ei,Bs;function U2(){if(Bs)return ei;Bs=1;var e=St().Buffer,n=Pe(),t=Qc(),r=new Array(16),i=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],a=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function c(g,x){return g<<x|g>>>32-x}function l(g,x,b,E,I,w,p,C){return c(g+(x^b^E)+w+p|0,C)+I|0}function d(g,x,b,E,I,w,p,C){return c(g+(x&b|~x&E)+w+p|0,C)+I|0}function h(g,x,b,E,I,w,p,C){return c(g+((x|~b)^E)+w+p|0,C)+I|0}function m(g,x,b,E,I,w,p,C){return c(g+(x&E|b&~E)+w+p|0,C)+I|0}function v(g,x,b,E,I,w,p,C){return c(g+(x^(b|~E))+w+p|0,C)+I|0}function y(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return n(y,t),y.prototype._update=function(){for(var g=r,x=0;x<16;++x)g[x]=this._block.readInt32LE(x*4);for(var b=this._a|0,E=this._b|0,I=this._c|0,w=this._d|0,p=this._e|0,C=this._a|0,S=this._b|0,O=this._c|0,j=this._d|0,V=this._e|0,z=0;z<80;z+=1){var L,F;z<16?(L=l(b,E,I,w,p,g[i[z]],f[0],u[z]),F=v(C,S,O,j,V,g[s[z]],o[0],a[z])):z<32?(L=d(b,E,I,w,p,g[i[z]],f[1],u[z]),F=m(C,S,O,j,V,g[s[z]],o[1],a[z])):z<48?(L=h(b,E,I,w,p,g[i[z]],f[2],u[z]),F=h(C,S,O,j,V,g[s[z]],o[2],a[z])):z<64?(L=m(b,E,I,w,p,g[i[z]],f[3],u[z]),F=d(C,S,O,j,V,g[s[z]],o[3],a[z])):(L=v(b,E,I,w,p,g[i[z]],f[4],u[z]),F=l(C,S,O,j,V,g[s[z]],o[4],a[z])),b=p,p=w,w=c(I,10),I=E,E=L,C=V,V=j,j=c(O,10),O=S,S=F}var W=this._b+I+j|0;this._b=this._c+w+V|0,this._c=this._d+p+C|0,this._d=this._e+b+S|0,this._e=this._a+E+O|0,this._a=W},y.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var g=e.alloc?e.alloc(20):new e(20);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g.writeInt32LE(this._e,16),g},ei=y,ei}var ti={exports:{}},ri,Ss;function Pt(){if(Ss)return ri;Ss=1;var e=qe().Buffer,n=xa();function t(r,i){this._block=e.alloc(r),this._finalSize=i,this._blockSize=r,this._len=0}return t.prototype.update=function(r,i){r=n(r,i||"utf8");for(var s=this._block,u=this._blockSize,a=r.length,f=this._len,o=0;o<a;){for(var c=f%u,l=Math.min(a-o,u-c),d=0;d<l;d++)s[c+d]=r[o+d];f+=l,o+=l,f%u===0&&this._update(s)}return this._len+=a,this},t.prototype.digest=function(r){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=this._len*8;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var u=(s&4294967295)>>>0,a=(s-u)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var f=this._hash();return r?f.toString(r):f},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ri=t,ri}var ni,Es;function L2(){if(Es)return ni;Es=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(o){return o<<5|o>>>27}function a(o){return o<<30|o>>>2}function f(o,c,l,d){return o===0?c&l|~c&d:o===2?c&l|c&d|l&d:c^l^d}return s.prototype._update=function(o){for(var c=this._w,l=this._a|0,d=this._b|0,h=this._c|0,m=this._d|0,v=this._e|0,y=0;y<16;++y)c[y]=o.readInt32BE(y*4);for(;y<80;++y)c[y]=c[y-3]^c[y-8]^c[y-14]^c[y-16];for(var g=0;g<80;++g){var x=~~(g/20),b=u(l)+f(x,d,h,m)+v+c[g]+r[x]|0;v=m,m=h,h=a(d),d=l,l=b}this._a=l+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=m+this._d|0,this._e=v+this._e|0},s.prototype._hash=function(){var o=t.allocUnsafe(20);return o.writeInt32BE(this._a|0,0),o.writeInt32BE(this._b|0,4),o.writeInt32BE(this._c|0,8),o.writeInt32BE(this._d|0,12),o.writeInt32BE(this._e|0,16),o},ni=s,ni}var ii,Ps;function j2(){if(Ps)return ii;Ps=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(c){return c<<1|c>>>31}function a(c){return c<<5|c>>>27}function f(c){return c<<30|c>>>2}function o(c,l,d,h){return c===0?l&d|~l&h:c===2?l&d|l&h|d&h:l^d^h}return s.prototype._update=function(c){for(var l=this._w,d=this._a|0,h=this._b|0,m=this._c|0,v=this._d|0,y=this._e|0,g=0;g<16;++g)l[g]=c.readInt32BE(g*4);for(;g<80;++g)l[g]=u(l[g-3]^l[g-8]^l[g-14]^l[g-16]);for(var x=0;x<80;++x){var b=~~(x/20),E=a(d)+o(b,h,m,v)+y+l[x]+r[b]|0;y=v,v=m,m=f(h),h=d,d=E}this._a=d+this._a|0,this._b=h+this._b|0,this._c=m+this._c|0,this._d=v+this._d|0,this._e=y+this._e|0},s.prototype._hash=function(){var c=t.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c},ii=s,ii}var oi,ks;function Jc(){if(ks)return oi;ks=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=new Array(64);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function u(d,h,m){return m^d&(h^m)}function a(d,h,m){return d&h|m&(d|h)}function f(d){return(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10)}function o(d){return(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7)}function c(d){return(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3}function l(d){return(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10}return s.prototype._update=function(d){for(var h=this._w,m=this._a|0,v=this._b|0,y=this._c|0,g=this._d|0,x=this._e|0,b=this._f|0,E=this._g|0,I=this._h|0,w=0;w<16;++w)h[w]=d.readInt32BE(w*4);for(;w<64;++w)h[w]=l(h[w-2])+h[w-7]+c(h[w-15])+h[w-16]|0;for(var p=0;p<64;++p){var C=I+o(x)+u(x,b,E)+r[p]+h[p]|0,S=f(m)+a(m,v,y)|0;I=E,E=b,b=x,x=g+C|0,g=y,y=v,v=m,m=C+S|0}this._a=m+this._a|0,this._b=v+this._b|0,this._c=y+this._c|0,this._d=g+this._d|0,this._e=x+this._e|0,this._f=b+this._f|0,this._g=E+this._g|0,this._h=I+this._h|0},s.prototype._hash=function(){var d=t.allocUnsafe(32);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d.writeInt32BE(this._h,28),d},oi=s,oi}var ai,Ts;function N2(){if(Ts)return ai;Ts=1;var e=Pe(),n=Jc(),t=Pt(),r=qe().Buffer,i=new Array(64);function s(){this.init(),this._w=i,t.call(this,64,56)}return e(s,n),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var u=r.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},ai=s,ai}var si,Rs;function Zc(){if(Rs)return si;Rs=1;var e=Pe(),n=Pt(),t=qe().Buffer,r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],i=new Array(160);function s(){this.init(),this._w=i,n.call(this,128,112)}e(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function u(v,y,g){return g^v&(y^g)}function a(v,y,g){return v&y|g&(v|y)}function f(v,y){return(v>>>28|y<<4)^(y>>>2|v<<30)^(y>>>7|v<<25)}function o(v,y){return(v>>>14|y<<18)^(v>>>18|y<<14)^(y>>>9|v<<23)}function c(v,y){return(v>>>1|y<<31)^(v>>>8|y<<24)^v>>>7}function l(v,y){return(v>>>1|y<<31)^(v>>>8|y<<24)^(v>>>7|y<<25)}function d(v,y){return(v>>>19|y<<13)^(y>>>29|v<<3)^v>>>6}function h(v,y){return(v>>>19|y<<13)^(y>>>29|v<<3)^(v>>>6|y<<26)}function m(v,y){return v>>>0<y>>>0?1:0}return s.prototype._update=function(v){for(var y=this._w,g=this._ah|0,x=this._bh|0,b=this._ch|0,E=this._dh|0,I=this._eh|0,w=this._fh|0,p=this._gh|0,C=this._hh|0,S=this._al|0,O=this._bl|0,j=this._cl|0,V=this._dl|0,z=this._el|0,L=this._fl|0,F=this._gl|0,W=this._hl|0,R=0;R<32;R+=2)y[R]=v.readInt32BE(R*4),y[R+1]=v.readInt32BE(R*4+4);for(;R<160;R+=2){var A=y[R-30],N=y[R-30+1],G=c(A,N),J=l(N,A);A=y[R-4],N=y[R-4+1];var Z=d(A,N),$=h(N,A),M=y[R-14],U=y[R-14+1],q=y[R-32],P=y[R-32+1],k=J+U|0,K=G+M+m(k,J)|0;k=k+$|0,K=K+Z+m(k,$)|0,k=k+P|0,K=K+q+m(k,P)|0,y[R]=K,y[R+1]=k}for(var Y=0;Y<160;Y+=2){K=y[Y],k=y[Y+1];var ne=a(g,x,b),re=a(S,O,j),oe=f(g,S),fe=f(S,g),he=o(I,z),D=o(z,I),_=r[Y],B=r[Y+1],T=u(I,w,p),X=u(z,L,F),ee=W+D|0,te=C+he+m(ee,W)|0;ee=ee+X|0,te=te+T+m(ee,X)|0,ee=ee+B|0,te=te+_+m(ee,B)|0,ee=ee+k|0,te=te+K+m(ee,k)|0;var ce=fe+re|0,H=oe+ne+m(ce,fe)|0;C=p,W=F,p=w,F=L,w=I,L=z,z=V+ee|0,I=E+te+m(z,V)|0,E=b,V=j,b=x,j=O,x=g,O=S,S=ee+ce|0,g=te+H+m(S,ee)|0}this._al=this._al+S|0,this._bl=this._bl+O|0,this._cl=this._cl+j|0,this._dl=this._dl+V|0,this._el=this._el+z|0,this._fl=this._fl+L|0,this._gl=this._gl+F|0,this._hl=this._hl+W|0,this._ah=this._ah+g+m(this._al,S)|0,this._bh=this._bh+x+m(this._bl,O)|0,this._ch=this._ch+b+m(this._cl,j)|0,this._dh=this._dh+E+m(this._dl,V)|0,this._eh=this._eh+I+m(this._el,z)|0,this._fh=this._fh+w+m(this._fl,L)|0,this._gh=this._gh+p+m(this._gl,F)|0,this._hh=this._hh+C+m(this._hl,W)|0},s.prototype._hash=function(){var v=t.allocUnsafe(64);function y(g,x,b){v.writeInt32BE(g,b),v.writeInt32BE(x,b+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),y(this._gh,this._gl,48),y(this._hh,this._hl,56),v},si=s,si}var ci,Is;function F2(){if(Is)return ci;Is=1;var e=Pe(),n=Zc(),t=Pt(),r=qe().Buffer,i=new Array(160);function s(){this.init(),this._w=i,t.call(this,128,112)}return e(s,n),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var u=r.allocUnsafe(48);function a(f,o,c){u.writeInt32BE(f,c),u.writeInt32BE(o,c+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),u},ci=s,ci}var Ds;function eu(){return Ds||(Ds=1,function(e){e.exports=function(t){var r=t.toLowerCase(),i=e.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i},e.exports.sha=L2(),e.exports.sha1=j2(),e.exports.sha224=N2(),e.exports.sha256=Jc(),e.exports.sha384=F2(),e.exports.sha512=Zc()}(ti)),ti.exports}var ui,Os;function q2(){if(Os)return ui;Os=1;var e=qe().Buffer,n=ya.Transform,t=y2().StringDecoder,r=Pe(),i=xa();function s(u){n.call(this),this.hashMode=typeof u=="string",this.hashMode?this[u]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return r(s,n),s.prototype.update=function(u,a,f){var o=i(u,a),c=this._update(o);return this.hashMode?this:(f&&(c=this._toString(c,f)),c)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(u,a,f){var o;try{this.hashMode?this._update(u):this.push(this._update(u))}catch(c){o=c}finally{f(o)}},s.prototype._flush=function(u){var a;try{this.push(this.__final())}catch(f){a=f}u(a)},s.prototype._finalOrDigest=function(u){var a=this.__final()||e.alloc(0);return u&&(a=this._toString(a,u,!0)),a},s.prototype._toString=function(u,a,f){if(this._decoder||(this._decoder=new t(a),this._encoding=a),this._encoding!==a)throw new Error("can’t switch encodings");var o=this._decoder.write(u);return f&&(o+=this._decoder.end()),o},ui=s,ui}var fi,As;function $2(){if(As)return fi;As=1;var e=Pe(),n=M2(),t=U2(),r=eu(),i=q2();function s(u){i.call(this,"digest"),this._hash=u}return e(s,i),s.prototype._update=function(u){this._hash.update(u)},s.prototype._final=function(){return this._hash.digest()},fi=function(a){return a=a.toLowerCase(),a==="md5"?new n:a==="rmd160"||a==="ripemd160"?new t:new s(r(a))},fi}var li,Ms;function K2(){if(Ms)return li;Ms=1;var e=qe().Buffer;function n(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var s=0;s<t.length;s++){var u=t.charAt(s),a=u.charCodeAt(0);if(r[a]!==255)throw new TypeError(u+" is ambiguous");r[a]=s}var f=t.length,o=t.charAt(0),c=Math.log(f)/Math.log(256),l=Math.log(256)/Math.log(f);function d(v){if((Array.isArray(v)||v instanceof Uint8Array)&&(v=e.from(v)),!e.isBuffer(v))throw new TypeError("Expected Buffer");if(v.length===0)return"";for(var y=0,g=0,x=0,b=v.length;x!==b&&v[x]===0;)x++,y++;for(var E=(b-x)*l+1>>>0,I=new Uint8Array(E);x!==b;){for(var w=v[x],p=0,C=E-1;(w!==0||p<g)&&C!==-1;C--,p++)w+=256*I[C]>>>0,I[C]=w%f>>>0,w=w/f>>>0;if(w!==0)throw new Error("Non-zero carry");g=p,x++}for(var S=E-g;S!==E&&I[S]===0;)S++;for(var O=o.repeat(y);S<E;++S)O+=t.charAt(I[S]);return O}function h(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return e.alloc(0);for(var y=0,g=0,x=0;v[y]===o;)g++,y++;for(var b=(v.length-y)*c+1>>>0,E=new Uint8Array(b);y<v.length;){var I=v.charCodeAt(y);if(I>255)return;var w=r[I];if(w===255)return;for(var p=0,C=b-1;(w!==0||p<x)&&C!==-1;C--,p++)w+=f*E[C]>>>0,E[C]=w%256>>>0,w=w/256>>>0;if(w!==0)throw new Error("Non-zero carry");x=p,y++}for(var S=b-x;S!==b&&E[S]===0;)S++;var O=e.allocUnsafe(g+(b-S));O.fill(0,0,g);for(var j=g;S!==b;)O[j++]=E[S++];return O}function m(v){var y=h(v);if(y)return y;throw new Error("Non-base"+f+" character")}return{encode:d,decodeUnsafe:h,decode:m}}return li=n,li}var di,Us;function H2(){if(Us)return di;Us=1;var e=K2(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return di=e(n),di}var hi,Ls;function z2(){if(Ls)return hi;Ls=1;var e=H2(),n=qe().Buffer;return hi=function(t){function r(a){var f=t(a);return e.encode(n.concat([a,f],a.length+4))}function i(a){var f=a.slice(0,-4),o=a.slice(-4),c=t(f);if(!(o[0]^c[0]|o[1]^c[1]|o[2]^c[2]|o[3]^c[3]))return f}function s(a){var f=e.decodeUnsafe(a);if(f)return i(f)}function u(a){var f=e.decode(a),o=i(f);if(!o)throw new Error("Invalid checksum");return o}return{encode:r,decode:u,decodeUnsafe:s}},hi}var pi,js;function tu(){if(js)return pi;js=1;var e=$2(),n=z2();function t(r){var i=e("sha256").update(r).digest();return e("sha256").update(i).digest()}return pi=n(t),pi}var gi={},jt={},We={},Ur={},$e={},Ns;function Ca(){if(Ns)return $e;Ns=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.InvalidChecksumError=$e.InvalidSequenceComponentError=$e.InvalidTypeError=$e.InvalidPathLengthError=$e.InvalidSchemeError=void 0;class e extends Error{constructor(){super("Invalid Scheme"),this.name="InvalidSchemeError"}}$e.InvalidSchemeError=e;class n extends Error{constructor(){super("Invalid Path"),this.name="InvalidPathLengthError"}}$e.InvalidPathLengthError=n;class t extends Error{constructor(){super("Invalid Type"),this.name="InvalidTypeError"}}$e.InvalidTypeError=t;class r extends Error{constructor(){super("Invalid Sequence Component"),this.name="InvalidSequenceComponentError"}}$e.InvalidSequenceComponentError=r;class i extends Error{constructor(){super("Invalid Checksum"),this.name="InvalidChecksumError"}}return $e.InvalidChecksumError=i,$e}var ve={},yi={};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>