@laceio/sdk 0.1.1 → 0.1.2-canary.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.
- package/dist/{TransactionBuilder-DrB3NVTi.cjs → TransactionBuilder-CCjOn7NA.cjs} +42 -0
- package/dist/{TransactionBuilder-V6aLx4SV.js → TransactionBuilder-CIzdw18M.js} +1 -1
- package/dist/{_polyfill-buffer-patch-BnPVerlG.cjs → _polyfill-buffer-patch-CM8X7JiY.cjs} +21 -2
- package/dist/_polyfill-buffer-patch-yNxN4d5E.js +1467 -0
- package/dist/_web-crypto-random-bytes-Bo-GTcRS.js +197 -0
- package/dist/acc-module-4iIUv6My.cjs +27654 -0
- package/dist/acc-module-Cmj8EsIb.js +27624 -0
- package/dist/account-BOQruszJ.js +6 -0
- package/dist/account-BUOj4pYJ.cjs +11 -0
- package/dist/account-call-7wnopBq0.cjs +5 -0
- package/dist/account-call-B9d_2Xwi.js +4 -0
- package/dist/account-call-Bd4Rpbvt.cjs +323 -0
- package/dist/account-call-C3CkDqEC.js +276 -0
- package/dist/account-guards-BtjTGxDZ.cjs +42 -0
- package/dist/account-guards-D9Lu5T3W.js +36 -0
- package/dist/account-tokens-DvkOFVON.js +16 -0
- package/dist/account-tokens-nwcvwLu4.cjs +21 -0
- package/dist/{activity-type.stable-BJEfeLxL.cjs → activity-type-Ch6ljxBy.cjs} +2 -1
- package/dist/{activity-type.stable-C76_hWd7.js → activity-type-GsJGWs-3.js} +2 -1
- package/dist/address-B9ntKL8K.js +13761 -0
- package/dist/address-BXp-mY8H.cjs +11270 -0
- package/dist/{address-book-address-validator-DIUolI-s.js → address-book-address-validator-0J9XAADH.js} +2 -2
- package/dist/address-book-address-validator-DK0dnsRS.cjs +41 -0
- package/dist/address-book-address-validator-Di_ywo8M.js +39 -0
- package/dist/{address-book-address-validator-DNwQGlOB.cjs → address-book-address-validator-Dte_YQ2L.cjs} +2 -2
- package/dist/artefact-loader-BWWYAD7E.cjs +183 -0
- package/dist/artefact-loader-Dik4HIfv.js +160 -0
- package/dist/auto-dismiss-failure-on-success-C-qoJuid.cjs +37 -0
- package/dist/auto-dismiss-failure-on-success-s8MGDEIu.js +31 -0
- package/dist/bip32-D6wd_QMn.cjs +3851 -0
- package/dist/bitcoin-data-provider-BYPSmuZS.js +21 -0
- package/dist/bitcoin-data-provider-w1oEDSU3.cjs +26 -0
- package/dist/bitcoin.cjs +45 -0
- package/dist/bitcoin.d.ts +29906 -1
- package/dist/bitcoin.js +20 -0
- package/dist/{blockfrost-tx-submit-provider-DPTrapz-.js → blockfrost-tx-submit-provider-CBWQ0wK9.js} +5 -157
- package/dist/{blockfrost-tx-submit-provider-BAIzV5o3.cjs → blockfrost-tx-submit-provider-CLNQ5ycR.cjs} +3 -167
- package/dist/bn-d3nSOIf7.cjs +2553 -0
- package/dist/browser-B1eMbDwh.js +7468 -0
- package/dist/bytes.vo-BB7_4JK6.js +23 -0
- package/dist/bytes.vo-BNRquqaO.cjs +34 -0
- package/dist/cardano-DfPwhwm-.js +3 -0
- package/dist/{cardano-network-id.vo-DSxrFk9S.cjs → cardano-network-id.vo-BEDPn6Li.cjs} +1 -1
- package/dist/{cardano-network-id.vo-CK1tNQDg.js → cardano-network-id.vo-Cfpvbod9.js} +1 -1
- package/dist/cardano.cjs +22 -18
- package/dist/cardano.d.ts +16956 -1716
- package/dist/cardano.js +16 -11
- package/dist/client-DXBLHk7K.cjs +808 -0
- package/dist/codecs-Cswkg7Tm.cjs +4051 -0
- package/dist/codecs-Dc1Krpbt.js +3903 -0
- package/dist/{const-C84qHkjp.js → const-BJfIK_G-.js} +4 -4
- package/dist/const-BhYOdznB.cjs +42 -0
- package/dist/const-BsnjG2_Q.cjs +32071 -0
- package/dist/const-CUnCl5U0.js +13 -0
- package/dist/{const-DXk2tFyv.js → const-CjmfjBP3.js} +1 -1
- package/dist/{const-BDEg2Trq.cjs → const-D-eZIS4n.cjs} +4 -4
- package/dist/const-D0CbQlo4.js +154 -0
- package/dist/{const-BY8B3_0_.cjs → const-iwzZEE_w.cjs} +1 -1
- package/dist/contract-1R86jhSw.js +171 -0
- package/dist/contract-MKLzYVkW.cjs +189 -0
- package/dist/create-add-accounts-Brqk84vF.js +102 -0
- package/dist/create-add-accounts-DzXIh7Ot.cjs +114 -0
- package/dist/{delegation-tx-builder-CRpLP6jH.cjs → delegation-tx-builder-CCjiakoy.cjs} +6 -6
- package/dist/{delegation-tx-builder-CGVqlaFE.js → delegation-tx-builder-DZFjHDS8.js} +5 -5
- package/dist/{deregistration-tx-builder-B-CrUyX6.js → deregistration-tx-builder-Bf6xAYp4.js} +5 -5
- package/dist/{deregistration-tx-builder-DZGwB4cz.cjs → deregistration-tx-builder-CQP35yex.cjs} +6 -6
- package/dist/device-commitment-hex.vo-5wFtQvDS.js +26 -0
- package/dist/device-commitment-hex.vo-CT3RmAug.cjs +31 -0
- package/dist/device-readers-CUHYoYOH.js +145 -0
- package/dist/device-readers-CdxS2btd.cjs +168 -0
- package/dist/device-readers-D_JZeNL2.cjs +8 -0
- package/dist/device-readers-DwSNCGPP.js +4 -0
- package/dist/dist-BMi5ZjEq.cjs +43175 -0
- package/dist/dist-BtIq4XFn.cjs +535 -0
- package/dist/dist-C3SHC_Ho.cjs +1394 -0
- package/dist/dist-CykEjYEX.cjs +3814 -0
- package/dist/dist-Dcsxh3be.cjs +3452 -0
- package/dist/dist-DqJfSlTd.cjs +4413 -0
- package/dist/dist-nTZ70qj7.cjs +1306 -0
- package/dist/{earn-rewards-tx-builder-BDbTDZmD.js → earn-rewards-tx-builder-Bsga3yFb.js} +5 -5
- package/dist/{earn-rewards-tx-builder-D5sUT5v8.cjs → earn-rewards-tx-builder-GuxofYns.cjs} +6 -6
- package/dist/enc-key-circuits-B7BjgUL9.js +13 -0
- package/dist/enc-key-circuits-BLrZrBVI.cjs +24 -0
- package/dist/english-Byb9M0E_.cjs +2057 -0
- package/dist/envelopes-BGoO_v8m.js +1621 -0
- package/dist/envelopes-CH25R-DN.cjs +1722 -0
- package/dist/errors-BIftM8ZN.cjs +688 -0
- package/dist/errors-DSq5wUwt.js +466 -0
- package/dist/esm-HBSUQw3w.js +384 -0
- package/dist/esm-LZuaZjMf.cjs +389 -0
- package/dist/experimental.cjs +7349 -0
- package/dist/experimental.d.ts +86273 -0
- package/dist/experimental.js +7184 -0
- package/dist/gated-call-CDCVZIK-.cjs +5 -0
- package/dist/gated-call-D-tT7P_t.js +722 -0
- package/dist/gated-call-D_VT2quk.js +4 -0
- package/dist/gated-call-DgJm1Mi_.cjs +787 -0
- package/dist/grant-circuits-DswmW3nI.cjs +71 -0
- package/dist/grant-circuits-Jxb5y1HW.js +42 -0
- package/dist/grant-rules-By07_eDi.js +6824 -0
- package/dist/grant-rules-BzVTWXS7.cjs +7099 -0
- package/dist/grant-spend-B3Md9L0n.js +215 -0
- package/dist/grant-spend-oWmzRsjH.cjs +217 -0
- package/dist/grant-status-B2y49iIu.js +2688 -0
- package/dist/grant-status-DOr3t_u8.cjs +2820 -0
- package/dist/grants-2BZ-qEVQ.js +5 -0
- package/dist/grants-BPoLSiMt.cjs +18 -0
- package/dist/grants-BoI5uwSF.cjs +272 -0
- package/dist/grants-CtofFu-e.js +213 -0
- package/dist/{group-cardano-addresses-by-account-B533oVXR.cjs → group-cardano-addresses-by-account-Bp0g4wEY.cjs} +3 -39
- package/dist/{group-cardano-addresses-by-account-RHKoEskR.js → group-cardano-addresses-by-account-SR8MMrZf.js} +5 -35
- package/dist/{guarded-transaction-signer-Bxl6_XNd.cjs → guarded-transaction-signer-MFpPg98D.cjs} +17 -18
- package/dist/{guarded-transaction-signer-CpKLj8Kp.js → guarded-transaction-signer-P6Rp1faj.js} +8 -15
- package/dist/hex-D9ITYbwt.cjs +263 -0
- package/dist/hex-mkXcV3pN.js +191 -0
- package/dist/http-client-B3N-TMxu.cjs +167 -0
- package/dist/http-client-TRlhDZGh.js +155 -0
- package/dist/identity-BMLuufva.cjs +263 -0
- package/dist/identity-DII6f-h7.js +233 -0
- package/dist/in-memory-wallet-integration-B2xzxORj.cjs +20741 -0
- package/dist/in-memory-wallet-integration-CBRiPjLO.js +130 -0
- package/dist/in-memory-wallet-integration-CULUB5Tf.cjs +240 -0
- package/dist/{in-memory-wallet-integration-D-qn65Kx.js → in-memory-wallet-integration-ChIOirMW.js} +5 -2
- package/dist/{in-memory-wallet-integration-Croiuopx.js → in-memory-wallet-integration-CljprQQV.js} +7 -104
- package/dist/{in-memory-wallet-integration-DVh9sRXa.cjs → in-memory-wallet-integration-Cm6P8sk6.cjs} +3 -2
- package/dist/in-memory-wallet-integration-TM9bBphA.js +20738 -0
- package/dist/{in-memory-wallet-integration-CnLYeX4-.cjs → in-memory-wallet-integration-t9I00R_V.cjs} +17 -108
- package/dist/index.cjs +84 -47
- package/dist/index.d.ts +37496 -10033
- package/dist/index.js +52 -24
- package/dist/{init-CLHuAMB-.js → init-0zzs9aqU.js} +4 -4
- package/dist/{init-U8c9yHYx.cjs → init-5KcGcBb5.cjs} +1 -1
- package/dist/init-8v_n8boO.js +1177 -0
- package/dist/{init-CigestoM.js → init-B3-1ghyx.js} +2 -2
- package/dist/init-B8U3ABhS.cjs +107 -0
- package/dist/init-BJn-8_hf.js +141 -0
- package/dist/init-BPU3j8sT.cjs +6 -0
- package/dist/init-BRzH6xu-2.cjs +2797 -0
- package/dist/init-BmzfDaKL.js +1142 -0
- package/dist/{init-C-jErzp5.cjs → init-BopV9ed4.cjs} +2 -2
- package/dist/init-BpHTq2R5.js +105 -0
- package/dist/init-BpSITBfF.js +39 -0
- package/dist/{init-DX4WyB0R.cjs → init-BrdVzxei.cjs} +3 -3
- package/dist/{init-LfyMo-sS.cjs → init-BwkU0ruo.cjs} +2 -2
- package/dist/{init-CB__aLD7.cjs → init-C-G32J12.cjs} +2 -2
- package/dist/init-C00gw1zi.js +422 -0
- package/dist/{init-TkPq_Ny_.js → init-C2RgrfZe.js} +1 -1
- package/dist/{init-DcYY6zMD.js → init-C8URA2OX.js} +1 -1
- package/dist/init-CDkRynJa.js +2796 -0
- package/dist/{init-Cg9XdAru.js → init-CNM5m7M2.js} +4 -4
- package/dist/init-CR7BfztQ.cjs +18 -0
- package/dist/{init-CSHwHnfg.cjs → init-CSDpdu0Q.cjs} +2 -2
- package/dist/{init-aJHl-7AO.js → init-CX0AMQUn.js} +2 -2
- package/dist/{init-FMGDET-9.js → init-CfTbSEKy.js} +259 -60
- package/dist/{init-CR6tpw1B.js → init-Cigr_tKx.js} +47 -43
- package/dist/init-CuW7rHNA.js +3584 -0
- package/dist/{init-CFYsq82V.js → init-CyAY4Lzl.js} +1 -1
- package/dist/init-Cz0rz5fU.cjs +3585 -0
- package/dist/{init-BKhH6mVR.cjs → init-D6BxBs7e.cjs} +1 -1
- package/dist/init-D8OeObDF.cjs +1141 -0
- package/dist/init-D9g1HXYf.cjs +40 -0
- package/dist/{init-CNLGJJRx.js → init-DA7zmptx.js} +1 -1
- package/dist/{init-DkIc5nqF.cjs → init-DFMiP2ZH.cjs} +1 -1
- package/dist/{init-zSzCjoor.js → init-DFjT8YvT.js} +4 -4
- package/dist/init-DGjXwWs2.cjs +143 -0
- package/dist/init-DHrCbpkW.cjs +121 -0
- package/dist/{init-B64zCLxG.cjs → init-DUF4ar8P.cjs} +4 -4
- package/dist/init-DlqJuHhl.js +119 -0
- package/dist/{init-y2Ra0vZP.js → init-Dnsv155v.js} +3 -3
- package/dist/init-DrRdf5sZ.cjs +1176 -0
- package/dist/init-DuYENxci.js +17 -0
- package/dist/{init-D6DBUsD3.cjs → init-Dv3zKj0r.cjs} +4 -4
- package/dist/{init-BtzMZ7Pk.cjs → init-Dy-05ktr.cjs} +1 -1
- package/dist/{init-BsCBAGWf.cjs → init-EP0CUWNK.cjs} +2 -2
- package/dist/{init-BJVU54pI.cjs → init-EhzD7a8i.cjs} +1 -1
- package/dist/{init-w9GEs73W.js → init-Fw89ZmrR.js} +2 -2
- package/dist/init-GsT2AEa4.cjs +424 -0
- package/dist/{init-Rxohwpmu.js → init-NCjgwCZy.js} +2 -2
- package/dist/{init-DxUHsN53.cjs → init-NdhG_VrF.cjs} +6 -6
- package/dist/{init-DDdhguVC.js → init-SZ01tARX2.js} +2 -2
- package/dist/{init-BAJJzBza.js → init-Y3mkB4XS.js} +2 -2
- package/dist/init-c4l6r-o-.js +5 -0
- package/dist/{init-Dku4b2lG.js → init-kEfUTuG2.js} +1 -1
- package/dist/{init-C7IeJwQR.cjs → init-lzHt4Cli.cjs} +256 -59
- package/dist/{init-anYu6XB7.cjs → init-rmt7-fQE.cjs} +2 -2
- package/dist/{init-C4Bkib9u.cjs → init-zU-_9Gsp.cjs} +67 -65
- package/dist/{is-retriable-error-BU0e3hVI.js → is-retriable-error-BUiVJDwH.js} +1 -1
- package/dist/{is-retriable-error-CeeuHqDa.cjs → is-retriable-error-Dpt860if.cjs} +1 -1
- package/dist/jubjub-authoriser-D7zDXu3V.js +86 -0
- package/dist/jubjub-authoriser-Dgu6o3Sv.cjs +87 -0
- package/dist/key-source-5oUBFiC7.cjs +583 -0
- package/dist/key-source-B08HukZg.js +2550 -0
- package/dist/keyDerivation-D3k9XyHg.js +4077 -0
- package/dist/keyDerivation-u0nBA93T.cjs +274 -0
- package/dist/{lace-context-CZcNHr4M.js → lace-context-BZciB9c7.js} +4 -4
- package/dist/{lace-context-fJTDghdp.cjs → lace-context-DgR6vLli.cjs} +4 -4
- package/dist/lib--iqvW4O_.js +2354 -0
- package/dist/lib-Yk6Upl5D.cjs +2359 -0
- package/dist/{libsodium-wrappers-UH0LaOUE.js → libsodium-wrappers-BhbOA8dQ.js} +3 -1647
- package/dist/midnight-account-id.vo-0x9X-r3l.cjs +10 -0
- package/dist/midnight-account-id.vo-DjCAGcqc.js +5 -0
- package/dist/midnight-engine-DpemplKO.js +5 -0
- package/dist/midnight-engine-xU1wotne.cjs +6 -0
- package/dist/midnight-wallet-DIsAlSn6.js +18 -0
- package/dist/midnight-wallet-XTZc2li7.cjs +24 -0
- package/dist/midnight.cjs +1408 -0
- package/dist/midnight.d.ts +28934 -0
- package/dist/midnight.js +1352 -0
- package/dist/modules-cardano-B1nDUWqy.js +995 -0
- package/dist/modules-cardano-BYeYHrRm.cjs +1108 -0
- package/dist/node-relay-DWe1U0w2.cjs +49 -0
- package/dist/node-relay-h4i5IlAQ.js +48 -0
- package/dist/outputs-Bd2yZVjx.js +720 -0
- package/dist/outputs-CJoQBIA2.cjs +990 -0
- package/dist/pbkdf2-CIW-oWrm.cjs +1337 -0
- package/dist/pending-operation-B0_P78Jo.cjs +26 -0
- package/dist/pending-operation-BIS6mpjB.js +21 -0
- package/dist/providers-FjhM47BH.cjs +388 -0
- package/dist/providers-WtiSuxFu.js +365 -0
- package/dist/redacted-BmE2aXqr.js +81 -0
- package/dist/redacted-CRZJLS3w.cjs +86 -0
- package/dist/{retry-config-DC5IMaH7.cjs → retry-config-BaCfVC1H.cjs} +1 -1
- package/dist/{retry-config-BcUmMS--.js → retry-config-Dmgt28wM.js} +1 -1
- package/dist/safe-buffer-B_vMqJWU.js +43 -0
- package/dist/safe-buffer-DYOwEfHB.cjs +48 -0
- package/dist/sdk-Cb-gZnS9.js +1241 -0
- package/dist/sdk-DffwmX8b.cjs +1439 -0
- package/dist/sdk-init-Bln9rFtn.js +4138 -0
- package/dist/sdk-init-CYViTJY_.cjs +3841 -0
- package/dist/{seam-cardano-CATqBEyK.js → seam-cardano-B_etH4F4.js} +1 -1
- package/dist/{bytes.vo-TgiwogWF.js → secret-box-DUR0ACYz.js} +3 -25
- package/dist/{bytes.vo-Ck5u40RA.cjs → secret-box-DrjLZuS1.cjs} +1 -35
- package/dist/send-proof-progress-C-ljq1x5.js +30 -0
- package/dist/send-proof-progress-vmsaSfbz.cjs +47 -0
- package/dist/side-effects-BnqYz7Nl.js +768 -0
- package/dist/side-effects-CngaeXi0.cjs +804 -0
- package/dist/sign-bitcoin-transaction-with-seed-D4z62-jV.js +147 -0
- package/dist/sign-bitcoin-transaction-with-seed-DsLYXnCY.cjs +158 -0
- package/dist/signer-3fk8lZtE.cjs +7 -0
- package/dist/signer-CsL28DrK.cjs +121 -0
- package/dist/signer-DGluibtn.js +92 -0
- package/dist/signer-RqB5pu3K.js +2 -0
- package/dist/signer-factory-BA7WFJVZ.js +282 -0
- package/dist/signer-factory-Cwd6o-lG.cjs +281 -0
- package/dist/{signer-factory-9URFliA5.js → signer-factory-DObB55D4.js} +6 -3
- package/dist/signer-factory-DhZiE03y.cjs +149 -0
- package/dist/{signer-factory-BWGUmnvm.cjs → signer-factory-Ds6G2AZk.cjs} +4 -3
- package/dist/signer-factory-hzSRaIw2.js +148 -0
- package/dist/{slice-CuHUaPZx.cjs → slice-7G2xxYKJ.cjs} +3 -3
- package/dist/{slice-DZmQJNV8.cjs → slice-B4CdYoPu.cjs} +2 -2
- package/dist/slice-BPNuHKfw.js +9091 -0
- package/dist/{slice-DGcNrbPR.cjs → slice-Bg6HEr3K.cjs} +4 -4
- package/dist/{slice-DtaO72qY.cjs → slice-Bs2aMERu.cjs} +3 -3
- package/dist/{slice-HeHCv3bl.cjs → slice-C34iOOUH.cjs} +7 -7
- package/dist/{slice-Do2R2CYW.cjs → slice-C9TT5KhY.cjs} +6 -6
- package/dist/{slice-eIwcwKHI.js → slice-CK07EBCo.js} +4 -4
- package/dist/{slice-CnyWevM9.js → slice-CU80pbiu.js} +3 -3
- package/dist/{slice-CobanYgn.js → slice-CwyYrh1H.js} +2 -2
- package/dist/slice-Czfp6t84.cjs +436 -0
- package/dist/{slice-d0p6-xj5.js → slice-D-9aPKG-.js} +6 -6
- package/dist/{slice-maaskdUn.js → slice-DBpJ2QGf.js} +6 -6
- package/dist/{slice-mxLQ_FeY.cjs → slice-DTZTiJle.cjs} +352 -39
- package/dist/{slice-zJ9XVYjZ.js → slice-Da426sf9.js} +1 -1
- package/dist/{slice-D11m2EKl.cjs → slice-DayJvMRD.cjs} +1 -1
- package/dist/slice-DnBWfA-k.cjs +9109 -0
- package/dist/{slice-oqm_r1cS.cjs → slice-DnG-yvpI.cjs} +2 -2
- package/dist/{slice-BNu73oBa.js → slice-DyNs7oWp.js} +2 -2
- package/dist/{slice-CB4SnzMm.js → slice-GwiiJRoq.js} +3 -3
- package/dist/slice-oWnc7YVD.js +412 -0
- package/dist/{slice-B2PhoWAg.js → slice-qt0uBExh.js} +325 -37
- package/dist/slice-t8Gzj55G2.cjs +106 -0
- package/dist/slice-t8Q1cHm-.js +88 -0
- package/dist/src-BDzYIksE.cjs +20637 -0
- package/dist/src-BFoefPv_.js +20755 -0
- package/dist/store-B1Lq3cEf.cjs +66 -0
- package/dist/store-DuBG8qh5.js +37 -0
- package/dist/submit-Bs77dPn_.cjs +413 -0
- package/dist/submit-DOv8Z0Vf.js +336 -0
- package/dist/submit-bitcoin-tx-D6oYgH5S.js +983 -0
- package/dist/submit-bitcoin-tx-goFuRL7K.cjs +1049 -0
- package/dist/{sync-operation-utils-BYXLO80m.js → sync-operation-utils-31iFLExW.js} +2 -38
- package/dist/{sync-operation-utils-SdPbwFoD.cjs → sync-operation-utils-COIZ66-I.cjs} +1 -67
- package/dist/token-id-mapper-Bnds3xKH.cjs +18 -0
- package/dist/{token-id-mapper-DsPAL6Nh.cjs → token-id-mapper-CVyQJUKY.cjs} +2 -2
- package/dist/token-id-mapper-CnKHQ8DV.js +16 -0
- package/dist/{token-id-mapper-B2ivlLv3.js → token-id-mapper-D29Ggv8h.js} +2 -2
- package/dist/tokens-Cevp7rdU.cjs +62 -0
- package/dist/tokens-Diw4MLRM.js +44 -0
- package/dist/types-B8uiJn-X.js +12 -0
- package/dist/types-BHC12eSa.js +33 -0
- package/dist/types-CJT6XF2c.js +10 -0
- package/dist/types-CLRUYpfe.cjs +23 -0
- package/dist/types-Cc3mC8u0.cjs +50 -0
- package/dist/types-DWbVZpnF.cjs +15 -0
- package/dist/unwrap-provider-result-BZSiwabU.js +32 -0
- package/dist/unwrap-provider-result-ZqfBsTkk.cjs +39 -0
- package/dist/{util-CGzqQ8IV.cjs → util-Bu4W5lF4.cjs} +1 -1
- package/dist/{util-BaLzwa32.js → util-Cp5cZkfK.js} +1 -1
- package/dist/{utils-o8aMjfln.js → utils-BfBEUvWA.js} +2 -2
- package/dist/utils-DFwzEvbv.js +65 -0
- package/dist/{utils-5JvjbqH3.cjs → utils-DsElZgCI.cjs} +7 -1
- package/dist/utils-IXxR-Djh.cjs +112 -0
- package/dist/v8Signatures-CO_Uloy7.cjs +71 -0
- package/dist/{vote-delegation-tx-builder-BpEMSti4.cjs → vote-delegation-tx-builder-BUg1S2Ep.cjs} +6 -6
- package/dist/{vote-delegation-tx-builder-CmKv6GoG.js → vote-delegation-tx-builder-C6FiS7zI.js} +5 -5
- package/dist/watch-CUEvcP-V.js +21997 -0
- package/dist/watch-DMF2s-II.cjs +52281 -0
- package/package.json +96 -4
- package/dist/account-guards.stable-B1DSSh9D.cjs +0 -10
- package/dist/account-guards.stable-JRQ5qx2V.js +0 -5
- package/dist/codecs-B7X9pAsK.cjs +0 -1945
- package/dist/codecs-CC1Xjntz.js +0 -1882
- package/dist/init-Bv53hpLM.js +0 -19
- package/dist/init-CRbjI7p1.js +0 -3494
- package/dist/init-DAna1KCg.cjs +0 -3495
- package/dist/init-DGe47B22.cjs +0 -364
- package/dist/init-DMtyvYfC.cjs +0 -21
- package/dist/init-TkPDD750.js +0 -363
- package/dist/modules-cardano-BDvuL4Xx.js +0 -5248
- package/dist/modules-cardano-D2G3De2P.cjs +0 -5432
- package/dist/slice-CGVHXHDt.cjs +0 -125
- package/dist/slice-DhvF7L6X.js +0 -107
- /package/dist/{account-id.vo-LvCBVn5r.cjs → account-id.vo-DwqFjK5u.cjs} +0 -0
- /package/dist/{account-id.vo-MYSI7YFm.js → account-id.vo-OPz2v-JZ.js} +0 -0
- /package/dist/{actions-DdGbj7c7.cjs → actions-B2BJ4RTy.cjs} +0 -0
- /package/dist/{actions-9QSQR-GB.js → actions-iLXdgL5Y.js} +0 -0
- /package/dist/{apply-vkey-witnesses-ClZbpk5w.js → apply-vkey-witnesses-BKx3lcs0.js} +0 -0
- /package/dist/{apply-vkey-witnesses-CLzVSWxl.cjs → apply-vkey-witnesses-ZnFS0jnJ.cjs} +0 -0
- /package/dist/{asyncoption-Cw07zPH7.js → asyncoption-CruEYOBI.js} +0 -0
- /package/dist/{asyncoption-DYoGuQfP.cjs → asyncoption-i0VbqVTq.cjs} +0 -0
- /package/dist/{bignum.vo-B0rK_PQ1.js → bignum.vo-CEXOIew0.js} +0 -0
- /package/dist/{bignum.vo-DsG3kNiZ.cjs → bignum.vo-hx2kuqlA.cjs} +0 -0
- /package/dist/{bip32ed25519-1ApqeAZk.cjs → bip32ed25519-B7Yat217.cjs} +0 -0
- /package/dist/{bip32ed25519-DetAdGwD.js → bip32ed25519-FQ8qvdcq.js} +0 -0
- /package/dist/{blake2b-DOEVc57D.js → blake2b-BiQTw3GC.js} +0 -0
- /package/dist/{blake2b-B9tftbvG.cjs → blake2b-DEeVUdKR.cjs} +0 -0
- /package/dist/{blockchain-network-id.vo-BXpZhvvQ.cjs → blockchain-network-id.vo-BAKEwGjG.cjs} +0 -0
- /package/dist/{blockchain-network-id.vo-DNRkuT5B.js → blockchain-network-id.vo-CiVykuqG.js} +0 -0
- /package/dist/{blockingWithLatestFrom-C5wp_uA-.js → blockingWithLatestFrom-Cd8c8EPG.js} +0 -0
- /package/dist/{blockingWithLatestFrom-DY8OPg0w.cjs → blockingWithLatestFrom-D8kBPBMX.cjs} +0 -0
- /package/dist/{cardano-network-id-to-network-type-CrZfUcyP.js → cardano-network-id-to-network-type-BWwzeEtM.js} +0 -0
- /package/dist/{cardano-network-id-to-network-type-BDTF-HmK.cjs → cardano-network-id-to-network-type-C0ufJOyE.cjs} +0 -0
- /package/dist/{cardano-tx-id.vo-BPhV-AmZ.cjs → cardano-tx-id.vo-TLjJZHCI.cjs} +0 -0
- /package/dist/{cardano-tx-id.vo-DF9NzZXk.js → cardano-tx-id.vo-eVnKuzlm.js} +0 -0
- /package/dist/{composite-signer-factory-_46QsNBz.js → composite-signer-factory-CR8YHA1y.js} +0 -0
- /package/dist/{composite-signer-factory-BpF1mIYA.cjs → composite-signer-factory-m5cVs9h_.cjs} +0 -0
- /package/dist/{error-CNIquqT5.cjs → error-Cb3EnD0u.cjs} +0 -0
- /package/dist/{error-BCp9NkPi.js → error-DIZOY2Lw.js} +0 -0
- /package/dist/{esm-browser-C93Q-EOI.js → esm-browser-MG97cre9.js} +0 -0
- /package/dist/{esm-browser-DTc9IK3D.cjs → esm-browser-bweqfBlL.cjs} +0 -0
- /package/dist/{feature-flag-key.vo-ofrB6ZVQ.js → feature-flag-key.vo-DN_-4-sG.js} +0 -0
- /package/dist/{feature-flag-key.vo-BPz-ZAp6.cjs → feature-flag-key.vo-RlfHL3hq.cjs} +0 -0
- /package/dist/{first-state-of-status-OROkXcRv.cjs → first-state-of-status-CbT7hPa4.cjs} +0 -0
- /package/dist/{first-state-of-status-DQnMT3ya.js → first-state-of-status-unPynOuM.js} +0 -0
- /package/dist/{init-Es3wHW7D.js → init-829HRYcz.js} +0 -0
- /package/dist/{init-CKipPE_c.js → init-A-VyGSNW2.js} +0 -0
- /package/dist/{init-DFQQ9dTW.cjs → init-Atisw4x2.cjs} +0 -0
- /package/dist/{init-C5CEZ1m0.cjs → init-BFcvPHL-.cjs} +0 -0
- /package/dist/{init-IAk_CkGa.cjs → init-BgNobbNq.cjs} +0 -0
- /package/dist/{init-cqN3uX2j.js → init-atCFur0v.js} +0 -0
- /package/dist/{is-redux-persist-state-CTn3WZVh.cjs → is-redux-persist-state-BCFnSm36.cjs} +0 -0
- /package/dist/{is-redux-persist-state-Cxcd0_bM.js → is-redux-persist-state-yBfq0h_E.js} +0 -0
- /package/dist/{key-value-store-8cMzeNyG.js → key-value-store--W3SrMaw.js} +0 -0
- /package/dist/{key-value-store-DUAepXQf.cjs → key-value-store-C2Xt5Emp.cjs} +0 -0
- /package/dist/{repo-slice-WxetRhMY.cjs → repo-slice-7X4AYYVm.cjs} +0 -0
- /package/dist/{repo-slice-DwyMhCR1.js → repo-slice-RxFm0zDZ.js} +0 -0
- /package/dist/{reselect-CRDqmQY9.cjs → reselect-Bd94u0K-.cjs} +0 -0
- /package/dist/{reselect-C06X06oX.js → reselect-CGoLzEPv.js} +0 -0
- /package/dist/{serializable-B8GahgE1.js → serializable-BHdKIgk3.js} +0 -0
- /package/dist/{serializable-CRdnFaLZ.cjs → serializable-BxHkoPdk.cjs} +0 -0
- /package/dist/{slice-D11FHQuQ.cjs → slice-BiRsDKOK.cjs} +0 -0
- /package/dist/{slice-Be7hj4Iy.js → slice-Bk0Sv05J.js} +0 -0
- /package/dist/{slice-FioKeHtA.cjs → slice-Dqw1ecum.cjs} +0 -0
- /package/dist/{slice-B87b52iM.js → slice-obCSLm1x.js} +0 -0
- /package/dist/{src-vq1wS9sZ.js → src-BlxEp6Mm.js} +0 -0
- /package/dist/{src-BTPIvlDI.cjs → src-Cqp0B2M_.cjs} +0 -0
- /package/dist/{time.vo-CQ8pSXz2.cjs → time.vo-D3wWRw9L.cjs} +0 -0
- /package/dist/{time.vo-DkYYGYp6.js → time.vo-tNheinXm.js} +0 -0
- /package/dist/{toEmpty-CgAl3097.js → toEmpty-8Zax1MPd.js} +0 -0
- /package/dist/{toEmpty-DAMmNB5r.cjs → toEmpty-CYAbupM4.cjs} +0 -0
- /package/dist/{token-id.vo-ClsroxHO.js → token-id.vo-Bvwhr3ZE.js} +0 -0
- /package/dist/{token-id.vo-BxG9TG0O.cjs → token-id.vo-DXv5uS9n.cjs} +0 -0
- /package/dist/{util-DxzlYNS5.js → util-C8a4fA9p.js} +0 -0
- /package/dist/{util-CmdAhheh.cjs → util-CzeB3hfa.cjs} +0 -0
- /package/dist/{util-selector-CcK-GAdE.js → util-selector-BSTsxgne.js} +0 -0
- /package/dist/{util-selector-BcAncU4L.cjs → util-selector-BWPH68_l.cjs} +0 -0
- /package/dist/{while-active-BpppWuCs.js → while-active-B0lWy_6l.js} +0 -0
- /package/dist/{while-active-Dhc2LwOm.cjs → while-active-Dsowp0Fi.cjs} +0 -0
|
@@ -0,0 +1,1337 @@
|
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-Br2OG8yv.cjs");
|
|
2
|
+
const require__polyfill_node_process = require("./_polyfill-node.process-rf9LjCyG.cjs");
|
|
3
|
+
const require_safe_buffer$1 = require("./safe-buffer-DYOwEfHB.cjs");
|
|
4
|
+
//#region ../../node_modules/create-hash/index.js
|
|
5
|
+
var require_create_hash = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
6
|
+
module.exports = require("node:crypto").createHash;
|
|
7
|
+
}));
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ../../node_modules/pbkdf2/lib/precondition.js
|
|
10
|
+
var require_precondition = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
11
|
+
var $isFinite = isFinite;
|
|
12
|
+
var MAX_ALLOC = Math.pow(2, 30) - 1;
|
|
13
|
+
module.exports = function(iterations, keylen) {
|
|
14
|
+
if (typeof iterations !== "number") throw new TypeError("Iterations not a number");
|
|
15
|
+
if (iterations < 0 || !$isFinite(iterations)) throw new TypeError("Bad iterations");
|
|
16
|
+
if (typeof keylen !== "number") throw new TypeError("Key length not a number");
|
|
17
|
+
if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) throw new TypeError("Bad key length");
|
|
18
|
+
return keylen + 0;
|
|
19
|
+
};
|
|
20
|
+
}));
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../../node_modules/pbkdf2/lib/default-encoding.js
|
|
23
|
+
var require_default_encoding = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
24
|
+
require__polyfill_node_process.init__polyfill_node_process();
|
|
25
|
+
require__polyfill_node_process.init__polyfill_global_this();
|
|
26
|
+
var defaultEncoding;
|
|
27
|
+
/* istanbul ignore next */
|
|
28
|
+
if (require__polyfill_node_process._polyfill_global_this_default.process && require__polyfill_node_process._polyfill_global_this_default.process.browser) defaultEncoding = "utf-8";
|
|
29
|
+
else if (require__polyfill_node_process._polyfill_global_this_default.process && require__polyfill_node_process._polyfill_global_this_default.process.version) defaultEncoding = parseInt(require__polyfill_node_process.browser$1.version.split(".")[0].slice(1), 10) >= 6 ? "utf-8" : "binary";
|
|
30
|
+
else defaultEncoding = "utf-8";
|
|
31
|
+
module.exports = defaultEncoding;
|
|
32
|
+
}));
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ../../node_modules/isarray/index.js
|
|
35
|
+
var require_isarray = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
36
|
+
var toString = {}.toString;
|
|
37
|
+
module.exports = Array.isArray || function(arr) {
|
|
38
|
+
return toString.call(arr) == "[object Array]";
|
|
39
|
+
};
|
|
40
|
+
}));
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/es-errors/type.js
|
|
43
|
+
var require_type = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
44
|
+
/** @type {import('./type')} */
|
|
45
|
+
module.exports = TypeError;
|
|
46
|
+
}));
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region ../../node_modules/es-object-atoms/index.js
|
|
49
|
+
var require_es_object_atoms = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
50
|
+
/** @type {import('.')} */
|
|
51
|
+
module.exports = Object;
|
|
52
|
+
}));
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region ../../node_modules/es-errors/index.js
|
|
55
|
+
var require_es_errors = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
56
|
+
/** @type {import('.')} */
|
|
57
|
+
module.exports = Error;
|
|
58
|
+
}));
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region ../../node_modules/es-errors/eval.js
|
|
61
|
+
var require_eval = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
62
|
+
/** @type {import('./eval')} */
|
|
63
|
+
module.exports = EvalError;
|
|
64
|
+
}));
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region ../../node_modules/es-errors/range.js
|
|
67
|
+
var require_range = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
68
|
+
/** @type {import('./range')} */
|
|
69
|
+
module.exports = RangeError;
|
|
70
|
+
}));
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region ../../node_modules/es-errors/ref.js
|
|
73
|
+
var require_ref = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
74
|
+
/** @type {import('./ref')} */
|
|
75
|
+
module.exports = ReferenceError;
|
|
76
|
+
}));
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ../../node_modules/es-errors/syntax.js
|
|
79
|
+
var require_syntax = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
80
|
+
/** @type {import('./syntax')} */
|
|
81
|
+
module.exports = SyntaxError;
|
|
82
|
+
}));
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region ../../node_modules/es-errors/uri.js
|
|
85
|
+
var require_uri = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
86
|
+
/** @type {import('./uri')} */
|
|
87
|
+
module.exports = URIError;
|
|
88
|
+
}));
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region ../../node_modules/math-intrinsics/abs.js
|
|
91
|
+
var require_abs = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
92
|
+
/** @type {import('./abs')} */
|
|
93
|
+
module.exports = Math.abs;
|
|
94
|
+
}));
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region ../../node_modules/math-intrinsics/floor.js
|
|
97
|
+
var require_floor = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
98
|
+
/** @type {import('./floor')} */
|
|
99
|
+
module.exports = Math.floor;
|
|
100
|
+
}));
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region ../../node_modules/math-intrinsics/max.js
|
|
103
|
+
var require_max = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
104
|
+
/** @type {import('./max')} */
|
|
105
|
+
module.exports = Math.max;
|
|
106
|
+
}));
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ../../node_modules/math-intrinsics/min.js
|
|
109
|
+
var require_min = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
110
|
+
/** @type {import('./min')} */
|
|
111
|
+
module.exports = Math.min;
|
|
112
|
+
}));
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region ../../node_modules/math-intrinsics/pow.js
|
|
115
|
+
var require_pow = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
116
|
+
/** @type {import('./pow')} */
|
|
117
|
+
module.exports = Math.pow;
|
|
118
|
+
}));
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../../node_modules/math-intrinsics/round.js
|
|
121
|
+
var require_round = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
122
|
+
/** @type {import('./round')} */
|
|
123
|
+
module.exports = Math.round;
|
|
124
|
+
}));
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ../../node_modules/math-intrinsics/isNaN.js
|
|
127
|
+
var require_isNaN = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
128
|
+
/** @type {import('./isNaN')} */
|
|
129
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
130
|
+
return a !== a;
|
|
131
|
+
};
|
|
132
|
+
}));
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ../../node_modules/math-intrinsics/sign.js
|
|
135
|
+
var require_sign = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
136
|
+
var $isNaN = require_isNaN();
|
|
137
|
+
/** @type {import('./sign')} */
|
|
138
|
+
module.exports = function sign(number) {
|
|
139
|
+
if ($isNaN(number) || number === 0) return number;
|
|
140
|
+
return number < 0 ? -1 : 1;
|
|
141
|
+
};
|
|
142
|
+
}));
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region ../../node_modules/gopd/gOPD.js
|
|
145
|
+
var require_gOPD = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
146
|
+
/** @type {import('./gOPD')} */
|
|
147
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
148
|
+
}));
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region ../../node_modules/gopd/index.js
|
|
151
|
+
var require_gopd = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
152
|
+
/** @type {import('.')} */
|
|
153
|
+
var $gOPD = require_gOPD();
|
|
154
|
+
if ($gOPD) try {
|
|
155
|
+
$gOPD([], "length");
|
|
156
|
+
} catch (e) {
|
|
157
|
+
$gOPD = null;
|
|
158
|
+
}
|
|
159
|
+
module.exports = $gOPD;
|
|
160
|
+
}));
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region ../../node_modules/es-define-property/index.js
|
|
163
|
+
var require_es_define_property = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
164
|
+
/** @type {import('.')} */
|
|
165
|
+
var $defineProperty = Object.defineProperty || false;
|
|
166
|
+
if ($defineProperty) try {
|
|
167
|
+
$defineProperty({}, "a", { value: 1 });
|
|
168
|
+
} catch (e) {
|
|
169
|
+
$defineProperty = false;
|
|
170
|
+
}
|
|
171
|
+
module.exports = $defineProperty;
|
|
172
|
+
}));
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region ../../node_modules/has-symbols/shams.js
|
|
175
|
+
var require_shams$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
176
|
+
/** @type {import('./shams')} */
|
|
177
|
+
module.exports = function hasSymbols() {
|
|
178
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") return false;
|
|
179
|
+
if (typeof Symbol.iterator === "symbol") return true;
|
|
180
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
181
|
+
var obj = {};
|
|
182
|
+
var sym = Symbol("test");
|
|
183
|
+
var symObj = Object(sym);
|
|
184
|
+
if (typeof sym === "string") return false;
|
|
185
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") return false;
|
|
186
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") return false;
|
|
187
|
+
var symVal = 42;
|
|
188
|
+
obj[sym] = symVal;
|
|
189
|
+
for (var _ in obj) return false;
|
|
190
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) return false;
|
|
191
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) return false;
|
|
192
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
193
|
+
if (syms.length !== 1 || syms[0] !== sym) return false;
|
|
194
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return false;
|
|
195
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
196
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
197
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) return false;
|
|
198
|
+
}
|
|
199
|
+
return true;
|
|
200
|
+
};
|
|
201
|
+
}));
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region ../../node_modules/has-symbols/index.js
|
|
204
|
+
var require_has_symbols = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
205
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
206
|
+
var hasSymbolSham = require_shams$1();
|
|
207
|
+
/** @type {import('.')} */
|
|
208
|
+
module.exports = function hasNativeSymbols() {
|
|
209
|
+
if (typeof origSymbol !== "function") return false;
|
|
210
|
+
if (typeof Symbol !== "function") return false;
|
|
211
|
+
if (typeof origSymbol("foo") !== "symbol") return false;
|
|
212
|
+
if (typeof Symbol("bar") !== "symbol") return false;
|
|
213
|
+
return hasSymbolSham();
|
|
214
|
+
};
|
|
215
|
+
}));
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region ../../node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
218
|
+
var require_Reflect_getPrototypeOf = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
219
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
220
|
+
module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
221
|
+
}));
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region ../../node_modules/get-proto/Object.getPrototypeOf.js
|
|
224
|
+
var require_Object_getPrototypeOf = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
225
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
226
|
+
module.exports = require_es_object_atoms().getPrototypeOf || null;
|
|
227
|
+
}));
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region ../../node_modules/function-bind/implementation.js
|
|
230
|
+
var require_implementation = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
231
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
232
|
+
var toStr = Object.prototype.toString;
|
|
233
|
+
var max = Math.max;
|
|
234
|
+
var funcType = "[object Function]";
|
|
235
|
+
var concatty = function concatty(a, b) {
|
|
236
|
+
var arr = [];
|
|
237
|
+
for (var i = 0; i < a.length; i += 1) arr[i] = a[i];
|
|
238
|
+
for (var j = 0; j < b.length; j += 1) arr[j + a.length] = b[j];
|
|
239
|
+
return arr;
|
|
240
|
+
};
|
|
241
|
+
var slicy = function slicy(arrLike, offset) {
|
|
242
|
+
var arr = [];
|
|
243
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) arr[j] = arrLike[i];
|
|
244
|
+
return arr;
|
|
245
|
+
};
|
|
246
|
+
var joiny = function(arr, joiner) {
|
|
247
|
+
var str = "";
|
|
248
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
249
|
+
str += arr[i];
|
|
250
|
+
if (i + 1 < arr.length) str += joiner;
|
|
251
|
+
}
|
|
252
|
+
return str;
|
|
253
|
+
};
|
|
254
|
+
module.exports = function bind(that) {
|
|
255
|
+
var target = this;
|
|
256
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) throw new TypeError(ERROR_MESSAGE + target);
|
|
257
|
+
var args = slicy(arguments, 1);
|
|
258
|
+
var bound;
|
|
259
|
+
var binder = function() {
|
|
260
|
+
if (this instanceof bound) {
|
|
261
|
+
var result = target.apply(this, concatty(args, arguments));
|
|
262
|
+
if (Object(result) === result) return result;
|
|
263
|
+
return this;
|
|
264
|
+
}
|
|
265
|
+
return target.apply(that, concatty(args, arguments));
|
|
266
|
+
};
|
|
267
|
+
var boundLength = max(0, target.length - args.length);
|
|
268
|
+
var boundArgs = [];
|
|
269
|
+
for (var i = 0; i < boundLength; i++) boundArgs[i] = "$" + i;
|
|
270
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
271
|
+
if (target.prototype) {
|
|
272
|
+
var Empty = function Empty() {};
|
|
273
|
+
Empty.prototype = target.prototype;
|
|
274
|
+
bound.prototype = new Empty();
|
|
275
|
+
Empty.prototype = null;
|
|
276
|
+
}
|
|
277
|
+
return bound;
|
|
278
|
+
};
|
|
279
|
+
}));
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region ../../node_modules/function-bind/index.js
|
|
282
|
+
var require_function_bind = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
283
|
+
var implementation = require_implementation();
|
|
284
|
+
module.exports = Function.prototype.bind || implementation;
|
|
285
|
+
}));
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region ../../node_modules/call-bind-apply-helpers/functionCall.js
|
|
288
|
+
var require_functionCall = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
289
|
+
/** @type {import('./functionCall')} */
|
|
290
|
+
module.exports = Function.prototype.call;
|
|
291
|
+
}));
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region ../../node_modules/call-bind-apply-helpers/functionApply.js
|
|
294
|
+
var require_functionApply = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
295
|
+
/** @type {import('./functionApply')} */
|
|
296
|
+
module.exports = Function.prototype.apply;
|
|
297
|
+
}));
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region ../../node_modules/call-bind-apply-helpers/reflectApply.js
|
|
300
|
+
var require_reflectApply = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
301
|
+
/** @type {import('./reflectApply')} */
|
|
302
|
+
module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
303
|
+
}));
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region ../../node_modules/call-bind-apply-helpers/actualApply.js
|
|
306
|
+
var require_actualApply = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
307
|
+
var bind = require_function_bind();
|
|
308
|
+
var $apply = require_functionApply();
|
|
309
|
+
var $call = require_functionCall();
|
|
310
|
+
/** @type {import('./actualApply')} */
|
|
311
|
+
module.exports = require_reflectApply() || bind.call($call, $apply);
|
|
312
|
+
}));
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region ../../node_modules/call-bind-apply-helpers/index.js
|
|
315
|
+
var require_call_bind_apply_helpers = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
316
|
+
var bind = require_function_bind();
|
|
317
|
+
var $TypeError = require_type();
|
|
318
|
+
var $call = require_functionCall();
|
|
319
|
+
var $actualApply = require_actualApply();
|
|
320
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
321
|
+
module.exports = function callBindBasic(args) {
|
|
322
|
+
if (args.length < 1 || typeof args[0] !== "function") throw new $TypeError("a function is required");
|
|
323
|
+
return $actualApply(bind, $call, args);
|
|
324
|
+
};
|
|
325
|
+
}));
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region ../../node_modules/dunder-proto/get.js
|
|
328
|
+
var require_get = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
329
|
+
var callBind = require_call_bind_apply_helpers();
|
|
330
|
+
var gOPD = require_gopd();
|
|
331
|
+
var hasProtoAccessor;
|
|
332
|
+
try {
|
|
333
|
+
hasProtoAccessor = [].__proto__ === Array.prototype;
|
|
334
|
+
} catch (e) {
|
|
335
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
|
|
336
|
+
}
|
|
337
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__");
|
|
338
|
+
var $Object = Object;
|
|
339
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
340
|
+
/** @type {import('./get')} */
|
|
341
|
+
module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) {
|
|
342
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
343
|
+
} : false;
|
|
344
|
+
}));
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region ../../node_modules/get-proto/index.js
|
|
347
|
+
var require_get_proto = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
348
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
349
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
350
|
+
var getDunderProto = require_get();
|
|
351
|
+
/** @type {import('.')} */
|
|
352
|
+
module.exports = reflectGetProto ? function getProto(O) {
|
|
353
|
+
return reflectGetProto(O);
|
|
354
|
+
} : originalGetProto ? function getProto(O) {
|
|
355
|
+
if (!O || typeof O !== "object" && typeof O !== "function") throw new TypeError("getProto: not an object");
|
|
356
|
+
return originalGetProto(O);
|
|
357
|
+
} : getDunderProto ? function getProto(O) {
|
|
358
|
+
return getDunderProto(O);
|
|
359
|
+
} : null;
|
|
360
|
+
}));
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region ../../node_modules/hasown/index.js
|
|
363
|
+
var require_hasown = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
364
|
+
var call = Function.prototype.call;
|
|
365
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
366
|
+
/** @type {import('.')} */
|
|
367
|
+
module.exports = require_function_bind().call(call, $hasOwn);
|
|
368
|
+
}));
|
|
369
|
+
//#endregion
|
|
370
|
+
//#region ../../node_modules/get-intrinsic/index.js
|
|
371
|
+
var require_get_intrinsic = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
372
|
+
var undefined;
|
|
373
|
+
var $Object = require_es_object_atoms();
|
|
374
|
+
var $Error = require_es_errors();
|
|
375
|
+
var $EvalError = require_eval();
|
|
376
|
+
var $RangeError = require_range();
|
|
377
|
+
var $ReferenceError = require_ref();
|
|
378
|
+
var $SyntaxError = require_syntax();
|
|
379
|
+
var $TypeError = require_type();
|
|
380
|
+
var $URIError = require_uri();
|
|
381
|
+
var abs = require_abs();
|
|
382
|
+
var floor = require_floor();
|
|
383
|
+
var max = require_max();
|
|
384
|
+
var min = require_min();
|
|
385
|
+
var pow = require_pow();
|
|
386
|
+
var round = require_round();
|
|
387
|
+
var sign = require_sign();
|
|
388
|
+
var $Function = Function;
|
|
389
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
390
|
+
try {
|
|
391
|
+
return $Function("\"use strict\"; return (" + expressionSyntax + ").constructor;")();
|
|
392
|
+
} catch (e) {}
|
|
393
|
+
};
|
|
394
|
+
var $gOPD = require_gopd();
|
|
395
|
+
var $defineProperty = require_es_define_property();
|
|
396
|
+
var throwTypeError = function() {
|
|
397
|
+
throw new $TypeError();
|
|
398
|
+
};
|
|
399
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
400
|
+
try {
|
|
401
|
+
arguments.callee;
|
|
402
|
+
return throwTypeError;
|
|
403
|
+
} catch (calleeThrows) {
|
|
404
|
+
try {
|
|
405
|
+
return $gOPD(arguments, "callee").get;
|
|
406
|
+
} catch (gOPDthrows) {
|
|
407
|
+
return throwTypeError;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}() : throwTypeError;
|
|
411
|
+
var hasSymbols = require_has_symbols()();
|
|
412
|
+
var getProto = require_get_proto();
|
|
413
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
414
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
415
|
+
var $apply = require_functionApply();
|
|
416
|
+
var $call = require_functionCall();
|
|
417
|
+
var needsEval = {};
|
|
418
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined : getProto(Uint8Array);
|
|
419
|
+
var INTRINSICS = {
|
|
420
|
+
__proto__: null,
|
|
421
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined : AggregateError,
|
|
422
|
+
"%Array%": Array,
|
|
423
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined : ArrayBuffer,
|
|
424
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
425
|
+
"%AsyncFromSyncIteratorPrototype%": undefined,
|
|
426
|
+
"%AsyncFunction%": needsEval,
|
|
427
|
+
"%AsyncGenerator%": needsEval,
|
|
428
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
429
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
430
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined : Atomics,
|
|
431
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined : BigInt,
|
|
432
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined : BigInt64Array,
|
|
433
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined : BigUint64Array,
|
|
434
|
+
"%Boolean%": Boolean,
|
|
435
|
+
"%DataView%": typeof DataView === "undefined" ? undefined : DataView,
|
|
436
|
+
"%Date%": Date,
|
|
437
|
+
"%decodeURI%": decodeURI,
|
|
438
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
439
|
+
"%encodeURI%": encodeURI,
|
|
440
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
441
|
+
"%Error%": $Error,
|
|
442
|
+
"%eval%": eval,
|
|
443
|
+
"%EvalError%": $EvalError,
|
|
444
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined : Float16Array,
|
|
445
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined : Float32Array,
|
|
446
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined : Float64Array,
|
|
447
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined : FinalizationRegistry,
|
|
448
|
+
"%Function%": $Function,
|
|
449
|
+
"%GeneratorFunction%": needsEval,
|
|
450
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined : Int8Array,
|
|
451
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined : Int16Array,
|
|
452
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined : Int32Array,
|
|
453
|
+
"%isFinite%": isFinite,
|
|
454
|
+
"%isNaN%": isNaN,
|
|
455
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
456
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined,
|
|
457
|
+
"%Map%": typeof Map === "undefined" ? undefined : Map,
|
|
458
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
459
|
+
"%Math%": Math,
|
|
460
|
+
"%Number%": Number,
|
|
461
|
+
"%Object%": $Object,
|
|
462
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
463
|
+
"%parseFloat%": parseFloat,
|
|
464
|
+
"%parseInt%": parseInt,
|
|
465
|
+
"%Promise%": typeof Promise === "undefined" ? undefined : Promise,
|
|
466
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined : Proxy,
|
|
467
|
+
"%RangeError%": $RangeError,
|
|
468
|
+
"%ReferenceError%": $ReferenceError,
|
|
469
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined : Reflect,
|
|
470
|
+
"%RegExp%": RegExp,
|
|
471
|
+
"%Set%": typeof Set === "undefined" ? undefined : Set,
|
|
472
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
473
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined : SharedArrayBuffer,
|
|
474
|
+
"%String%": String,
|
|
475
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined,
|
|
476
|
+
"%Symbol%": hasSymbols ? Symbol : undefined,
|
|
477
|
+
"%SyntaxError%": $SyntaxError,
|
|
478
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
479
|
+
"%TypedArray%": TypedArray,
|
|
480
|
+
"%TypeError%": $TypeError,
|
|
481
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined : Uint8Array,
|
|
482
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined : Uint8ClampedArray,
|
|
483
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined : Uint16Array,
|
|
484
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined : Uint32Array,
|
|
485
|
+
"%URIError%": $URIError,
|
|
486
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined : WeakMap,
|
|
487
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined : WeakRef,
|
|
488
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined : WeakSet,
|
|
489
|
+
"%Function.prototype.call%": $call,
|
|
490
|
+
"%Function.prototype.apply%": $apply,
|
|
491
|
+
"%Object.defineProperty%": $defineProperty,
|
|
492
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
493
|
+
"%Math.abs%": abs,
|
|
494
|
+
"%Math.floor%": floor,
|
|
495
|
+
"%Math.max%": max,
|
|
496
|
+
"%Math.min%": min,
|
|
497
|
+
"%Math.pow%": pow,
|
|
498
|
+
"%Math.round%": round,
|
|
499
|
+
"%Math.sign%": sign,
|
|
500
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
501
|
+
};
|
|
502
|
+
if (getProto) try {
|
|
503
|
+
null.error;
|
|
504
|
+
} catch (e) {
|
|
505
|
+
INTRINSICS["%Error.prototype%"] = getProto(getProto(e));
|
|
506
|
+
}
|
|
507
|
+
var doEval = function doEval(name) {
|
|
508
|
+
var value;
|
|
509
|
+
if (name === "%AsyncFunction%") value = getEvalledConstructor("async function () {}");
|
|
510
|
+
else if (name === "%GeneratorFunction%") value = getEvalledConstructor("function* () {}");
|
|
511
|
+
else if (name === "%AsyncGeneratorFunction%") value = getEvalledConstructor("async function* () {}");
|
|
512
|
+
else if (name === "%AsyncGenerator%") {
|
|
513
|
+
var fn = doEval("%AsyncGeneratorFunction%");
|
|
514
|
+
if (fn) value = fn.prototype;
|
|
515
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
516
|
+
var gen = doEval("%AsyncGenerator%");
|
|
517
|
+
if (gen && getProto) value = getProto(gen.prototype);
|
|
518
|
+
}
|
|
519
|
+
INTRINSICS[name] = value;
|
|
520
|
+
return value;
|
|
521
|
+
};
|
|
522
|
+
var LEGACY_ALIASES = {
|
|
523
|
+
__proto__: null,
|
|
524
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
525
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
526
|
+
"%ArrayProto_entries%": [
|
|
527
|
+
"Array",
|
|
528
|
+
"prototype",
|
|
529
|
+
"entries"
|
|
530
|
+
],
|
|
531
|
+
"%ArrayProto_forEach%": [
|
|
532
|
+
"Array",
|
|
533
|
+
"prototype",
|
|
534
|
+
"forEach"
|
|
535
|
+
],
|
|
536
|
+
"%ArrayProto_keys%": [
|
|
537
|
+
"Array",
|
|
538
|
+
"prototype",
|
|
539
|
+
"keys"
|
|
540
|
+
],
|
|
541
|
+
"%ArrayProto_values%": [
|
|
542
|
+
"Array",
|
|
543
|
+
"prototype",
|
|
544
|
+
"values"
|
|
545
|
+
],
|
|
546
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
547
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
548
|
+
"%AsyncGeneratorPrototype%": [
|
|
549
|
+
"AsyncGeneratorFunction",
|
|
550
|
+
"prototype",
|
|
551
|
+
"prototype"
|
|
552
|
+
],
|
|
553
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
554
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
555
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
556
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
557
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
558
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
559
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
560
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
561
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
562
|
+
"%GeneratorPrototype%": [
|
|
563
|
+
"GeneratorFunction",
|
|
564
|
+
"prototype",
|
|
565
|
+
"prototype"
|
|
566
|
+
],
|
|
567
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
568
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
569
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
570
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
571
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
572
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
573
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
574
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
575
|
+
"%ObjProto_toString%": [
|
|
576
|
+
"Object",
|
|
577
|
+
"prototype",
|
|
578
|
+
"toString"
|
|
579
|
+
],
|
|
580
|
+
"%ObjProto_valueOf%": [
|
|
581
|
+
"Object",
|
|
582
|
+
"prototype",
|
|
583
|
+
"valueOf"
|
|
584
|
+
],
|
|
585
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
586
|
+
"%PromiseProto_then%": [
|
|
587
|
+
"Promise",
|
|
588
|
+
"prototype",
|
|
589
|
+
"then"
|
|
590
|
+
],
|
|
591
|
+
"%Promise_all%": ["Promise", "all"],
|
|
592
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
593
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
594
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
595
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
596
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
597
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
598
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
599
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
600
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
601
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
602
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
603
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
604
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
605
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
606
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
607
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
608
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
609
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
610
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
611
|
+
};
|
|
612
|
+
var bind = require_function_bind();
|
|
613
|
+
var hasOwn = require_hasown();
|
|
614
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
615
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
616
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
617
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
618
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
619
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
620
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
621
|
+
var stringToPath = function stringToPath(string) {
|
|
622
|
+
var first = $strSlice(string, 0, 1);
|
|
623
|
+
var last = $strSlice(string, -1);
|
|
624
|
+
if (first === "%" && last !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
625
|
+
else if (last === "%" && first !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
626
|
+
var result = [];
|
|
627
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
628
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
629
|
+
});
|
|
630
|
+
return result;
|
|
631
|
+
};
|
|
632
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
633
|
+
var intrinsicName = name;
|
|
634
|
+
var alias;
|
|
635
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
636
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
637
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
638
|
+
}
|
|
639
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
640
|
+
var value = INTRINSICS[intrinsicName];
|
|
641
|
+
if (value === needsEval) value = doEval(intrinsicName);
|
|
642
|
+
if (typeof value === "undefined" && !allowMissing) throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
643
|
+
return {
|
|
644
|
+
alias,
|
|
645
|
+
name: intrinsicName,
|
|
646
|
+
value
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
650
|
+
};
|
|
651
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
652
|
+
if (typeof name !== "string" || name.length === 0) throw new $TypeError("intrinsic name must be a non-empty string");
|
|
653
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") throw new $TypeError("\"allowMissing\" argument must be a boolean");
|
|
654
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
655
|
+
var parts = stringToPath(name);
|
|
656
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
657
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
658
|
+
var intrinsicRealName = intrinsic.name;
|
|
659
|
+
var value = intrinsic.value;
|
|
660
|
+
var skipFurtherCaching = false;
|
|
661
|
+
var alias = intrinsic.alias;
|
|
662
|
+
if (alias) {
|
|
663
|
+
intrinsicBaseName = alias[0];
|
|
664
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
665
|
+
}
|
|
666
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
667
|
+
var part = parts[i];
|
|
668
|
+
var first = $strSlice(part, 0, 1);
|
|
669
|
+
var last = $strSlice(part, -1);
|
|
670
|
+
if ((first === "\"" || first === "'" || first === "`" || last === "\"" || last === "'" || last === "`") && first !== last) throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
671
|
+
if (part === "constructor" || !isOwn) skipFurtherCaching = true;
|
|
672
|
+
intrinsicBaseName += "." + part;
|
|
673
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
674
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) value = INTRINSICS[intrinsicRealName];
|
|
675
|
+
else if (value != null) {
|
|
676
|
+
if (!(part in value)) {
|
|
677
|
+
if (!allowMissing) throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
681
|
+
var desc = $gOPD(value, part);
|
|
682
|
+
isOwn = !!desc;
|
|
683
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) value = desc.get;
|
|
684
|
+
else value = value[part];
|
|
685
|
+
} else {
|
|
686
|
+
isOwn = hasOwn(value, part);
|
|
687
|
+
value = value[part];
|
|
688
|
+
}
|
|
689
|
+
if (isOwn && !skipFurtherCaching) INTRINSICS[intrinsicRealName] = value;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
return value;
|
|
693
|
+
};
|
|
694
|
+
}));
|
|
695
|
+
//#endregion
|
|
696
|
+
//#region ../../node_modules/call-bound/index.js
|
|
697
|
+
var require_call_bound = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
698
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
699
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
700
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
701
|
+
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
702
|
+
/** @type {import('.')} */
|
|
703
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
704
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
705
|
+
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) return callBindBasic([intrinsic]);
|
|
706
|
+
return intrinsic;
|
|
707
|
+
};
|
|
708
|
+
}));
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region ../../node_modules/is-callable/index.js
|
|
711
|
+
var require_is_callable = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
712
|
+
var fnToStr = Function.prototype.toString;
|
|
713
|
+
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
714
|
+
var badArrayLike;
|
|
715
|
+
var isCallableMarker;
|
|
716
|
+
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") try {
|
|
717
|
+
badArrayLike = Object.defineProperty({}, "length", { get: function() {
|
|
718
|
+
throw isCallableMarker;
|
|
719
|
+
} });
|
|
720
|
+
isCallableMarker = {};
|
|
721
|
+
reflectApply(function() {
|
|
722
|
+
throw 42;
|
|
723
|
+
}, null, badArrayLike);
|
|
724
|
+
} catch (_) {
|
|
725
|
+
if (_ !== isCallableMarker) reflectApply = null;
|
|
726
|
+
}
|
|
727
|
+
else reflectApply = null;
|
|
728
|
+
var constructorRegex = /^\s*class\b/;
|
|
729
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
730
|
+
try {
|
|
731
|
+
var fnStr = fnToStr.call(value);
|
|
732
|
+
return constructorRegex.test(fnStr);
|
|
733
|
+
} catch (e) {
|
|
734
|
+
return false;
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
738
|
+
try {
|
|
739
|
+
if (isES6ClassFn(value)) return false;
|
|
740
|
+
fnToStr.call(value);
|
|
741
|
+
return true;
|
|
742
|
+
} catch (e) {
|
|
743
|
+
return false;
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
var toStr = Object.prototype.toString;
|
|
747
|
+
var objectClass = "[object Object]";
|
|
748
|
+
var fnClass = "[object Function]";
|
|
749
|
+
var genClass = "[object GeneratorFunction]";
|
|
750
|
+
var ddaClass = "[object HTMLAllCollection]";
|
|
751
|
+
var ddaClass2 = "[object HTML document.all class]";
|
|
752
|
+
var ddaClass3 = "[object HTMLCollection]";
|
|
753
|
+
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
754
|
+
var isIE68 = !(0 in [,]);
|
|
755
|
+
var isDDA = function isDocumentDotAll() {
|
|
756
|
+
return false;
|
|
757
|
+
};
|
|
758
|
+
if (typeof document === "object") {
|
|
759
|
+
var all = document.all;
|
|
760
|
+
if (toStr.call(all) === toStr.call(document.all)) isDDA = function isDocumentDotAll(value) {
|
|
761
|
+
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) try {
|
|
762
|
+
var str = toStr.call(value);
|
|
763
|
+
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
|
|
764
|
+
} catch (e) {}
|
|
765
|
+
return false;
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
module.exports = reflectApply ? function isCallable(value) {
|
|
769
|
+
if (isDDA(value)) return true;
|
|
770
|
+
if (!value) return false;
|
|
771
|
+
if (typeof value !== "function" && typeof value !== "object") return false;
|
|
772
|
+
try {
|
|
773
|
+
reflectApply(value, null, badArrayLike);
|
|
774
|
+
} catch (e) {
|
|
775
|
+
if (e !== isCallableMarker) return false;
|
|
776
|
+
}
|
|
777
|
+
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
778
|
+
} : function isCallable(value) {
|
|
779
|
+
if (isDDA(value)) return true;
|
|
780
|
+
if (!value) return false;
|
|
781
|
+
if (typeof value !== "function" && typeof value !== "object") return false;
|
|
782
|
+
if (hasToStringTag) return tryFunctionObject(value);
|
|
783
|
+
if (isES6ClassFn(value)) return false;
|
|
784
|
+
var strClass = toStr.call(value);
|
|
785
|
+
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) return false;
|
|
786
|
+
return tryFunctionObject(value);
|
|
787
|
+
};
|
|
788
|
+
}));
|
|
789
|
+
//#endregion
|
|
790
|
+
//#region ../../node_modules/for-each/index.js
|
|
791
|
+
var require_for_each = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
792
|
+
var isCallable = require_is_callable();
|
|
793
|
+
var toStr = Object.prototype.toString;
|
|
794
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
795
|
+
/** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
|
|
796
|
+
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
797
|
+
for (var i = 0, len = array.length; i < len; i++) if (hasOwnProperty.call(array, i)) if (receiver == null) iterator(array[i], i, array);
|
|
798
|
+
else iterator.call(receiver, array[i], i, array);
|
|
799
|
+
};
|
|
800
|
+
/** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
|
|
801
|
+
var forEachString = function forEachString(string, iterator, receiver) {
|
|
802
|
+
for (var i = 0, len = string.length; i < len; i++) if (receiver == null) iterator(string.charAt(i), i, string);
|
|
803
|
+
else iterator.call(receiver, string.charAt(i), i, string);
|
|
804
|
+
};
|
|
805
|
+
/** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
|
|
806
|
+
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
807
|
+
for (var k in object) if (hasOwnProperty.call(object, k)) if (receiver == null) iterator(object[k], k, object);
|
|
808
|
+
else iterator.call(receiver, object[k], k, object);
|
|
809
|
+
};
|
|
810
|
+
/** @type {(x: unknown) => x is readonly unknown[]} */
|
|
811
|
+
function isArray(x) {
|
|
812
|
+
return toStr.call(x) === "[object Array]";
|
|
813
|
+
}
|
|
814
|
+
/** @type {import('.')._internal} */
|
|
815
|
+
module.exports = function forEach(list, iterator, thisArg) {
|
|
816
|
+
if (!isCallable(iterator)) throw new TypeError("iterator must be a function");
|
|
817
|
+
var receiver;
|
|
818
|
+
if (arguments.length >= 3) receiver = thisArg;
|
|
819
|
+
if (isArray(list)) forEachArray(list, iterator, receiver);
|
|
820
|
+
else if (typeof list === "string") forEachString(list, iterator, receiver);
|
|
821
|
+
else forEachObject(list, iterator, receiver);
|
|
822
|
+
};
|
|
823
|
+
}));
|
|
824
|
+
//#endregion
|
|
825
|
+
//#region ../../node_modules/possible-typed-array-names/index.js
|
|
826
|
+
var require_possible_typed_array_names = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
827
|
+
/** @type {import('.')} */
|
|
828
|
+
module.exports = [
|
|
829
|
+
"Float16Array",
|
|
830
|
+
"Float32Array",
|
|
831
|
+
"Float64Array",
|
|
832
|
+
"Int8Array",
|
|
833
|
+
"Int16Array",
|
|
834
|
+
"Int32Array",
|
|
835
|
+
"Uint8Array",
|
|
836
|
+
"Uint8ClampedArray",
|
|
837
|
+
"Uint16Array",
|
|
838
|
+
"Uint32Array",
|
|
839
|
+
"BigInt64Array",
|
|
840
|
+
"BigUint64Array"
|
|
841
|
+
];
|
|
842
|
+
}));
|
|
843
|
+
//#endregion
|
|
844
|
+
//#region ../../node_modules/available-typed-arrays/index.js
|
|
845
|
+
var require_available_typed_arrays = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
846
|
+
require__polyfill_node_process.init__polyfill_global_this();
|
|
847
|
+
var possibleNames = require_possible_typed_array_names();
|
|
848
|
+
var g = typeof globalThis === "undefined" ? require__polyfill_node_process._polyfill_global_this_default : globalThis;
|
|
849
|
+
/** @type {import('.')} */
|
|
850
|
+
module.exports = function availableTypedArrays() {
|
|
851
|
+
var out = [];
|
|
852
|
+
for (var i = 0; i < possibleNames.length; i++) if (typeof g[possibleNames[i]] === "function") out[out.length] = possibleNames[i];
|
|
853
|
+
return out;
|
|
854
|
+
};
|
|
855
|
+
}));
|
|
856
|
+
//#endregion
|
|
857
|
+
//#region ../../node_modules/define-data-property/index.js
|
|
858
|
+
var require_define_data_property = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
859
|
+
var $defineProperty = require_es_define_property();
|
|
860
|
+
var $SyntaxError = require_syntax();
|
|
861
|
+
var $TypeError = require_type();
|
|
862
|
+
var gopd = require_gopd();
|
|
863
|
+
/** @type {import('.')} */
|
|
864
|
+
module.exports = function defineDataProperty(obj, property, value) {
|
|
865
|
+
if (!obj || typeof obj !== "object" && typeof obj !== "function") throw new $TypeError("`obj` must be an object or a function`");
|
|
866
|
+
if (typeof property !== "string" && typeof property !== "symbol") throw new $TypeError("`property` must be a string or a symbol`");
|
|
867
|
+
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
868
|
+
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
869
|
+
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
870
|
+
if (arguments.length > 6 && typeof arguments[6] !== "boolean") throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
871
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
872
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
873
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
874
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
875
|
+
var desc = !!gopd && gopd(obj, property);
|
|
876
|
+
if ($defineProperty) $defineProperty(obj, property, {
|
|
877
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
878
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
879
|
+
value,
|
|
880
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
881
|
+
});
|
|
882
|
+
else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) obj[property] = value;
|
|
883
|
+
else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
884
|
+
};
|
|
885
|
+
}));
|
|
886
|
+
//#endregion
|
|
887
|
+
//#region ../../node_modules/has-property-descriptors/index.js
|
|
888
|
+
var require_has_property_descriptors = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
889
|
+
var $defineProperty = require_es_define_property();
|
|
890
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
891
|
+
return !!$defineProperty;
|
|
892
|
+
};
|
|
893
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
894
|
+
if (!$defineProperty) return null;
|
|
895
|
+
try {
|
|
896
|
+
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
897
|
+
} catch (e) {
|
|
898
|
+
return true;
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
module.exports = hasPropertyDescriptors;
|
|
902
|
+
}));
|
|
903
|
+
//#endregion
|
|
904
|
+
//#region ../../node_modules/set-function-length/index.js
|
|
905
|
+
var require_set_function_length = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
906
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
907
|
+
var define = require_define_data_property();
|
|
908
|
+
var hasDescriptors = require_has_property_descriptors()();
|
|
909
|
+
var gOPD = require_gopd();
|
|
910
|
+
var $TypeError = require_type();
|
|
911
|
+
var $floor = GetIntrinsic("%Math.floor%");
|
|
912
|
+
/** @type {import('.')} */
|
|
913
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
914
|
+
if (typeof fn !== "function") throw new $TypeError("`fn` is not a function");
|
|
915
|
+
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
916
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
917
|
+
var functionLengthIsConfigurable = true;
|
|
918
|
+
var functionLengthIsWritable = true;
|
|
919
|
+
if ("length" in fn && gOPD) {
|
|
920
|
+
var desc = gOPD(fn, "length");
|
|
921
|
+
if (desc && !desc.configurable) functionLengthIsConfigurable = false;
|
|
922
|
+
if (desc && !desc.writable) functionLengthIsWritable = false;
|
|
923
|
+
}
|
|
924
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) if (hasDescriptors) define(fn, "length", length, true, true);
|
|
925
|
+
else define(fn, "length", length);
|
|
926
|
+
return fn;
|
|
927
|
+
};
|
|
928
|
+
}));
|
|
929
|
+
//#endregion
|
|
930
|
+
//#region ../../node_modules/call-bind-apply-helpers/applyBind.js
|
|
931
|
+
var require_applyBind = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
932
|
+
var bind = require_function_bind();
|
|
933
|
+
var $apply = require_functionApply();
|
|
934
|
+
var actualApply = require_actualApply();
|
|
935
|
+
/** @type {import('./applyBind')} */
|
|
936
|
+
module.exports = function applyBind() {
|
|
937
|
+
return actualApply(bind, $apply, arguments);
|
|
938
|
+
};
|
|
939
|
+
}));
|
|
940
|
+
//#endregion
|
|
941
|
+
//#region ../../node_modules/call-bind/index.js
|
|
942
|
+
var require_call_bind = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
943
|
+
var setFunctionLength = require_set_function_length();
|
|
944
|
+
var $defineProperty = require_es_define_property();
|
|
945
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
946
|
+
var applyBind = require_applyBind();
|
|
947
|
+
module.exports = function callBind(originalFunction) {
|
|
948
|
+
var func = callBindBasic(arguments);
|
|
949
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
950
|
+
return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
|
|
951
|
+
};
|
|
952
|
+
if ($defineProperty) $defineProperty(module.exports, "apply", { value: applyBind });
|
|
953
|
+
else module.exports.apply = applyBind;
|
|
954
|
+
}));
|
|
955
|
+
//#endregion
|
|
956
|
+
//#region ../../node_modules/has-tostringtag/shams.js
|
|
957
|
+
var require_shams = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
958
|
+
var hasSymbols = require_shams$1();
|
|
959
|
+
/** @type {import('.')} */
|
|
960
|
+
module.exports = function hasToStringTagShams() {
|
|
961
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
962
|
+
};
|
|
963
|
+
}));
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region ../../node_modules/which-typed-array/index.js
|
|
966
|
+
var require_which_typed_array = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
967
|
+
require__polyfill_node_process.init__polyfill_global_this();
|
|
968
|
+
var forEach = require_for_each();
|
|
969
|
+
var availableTypedArrays = require_available_typed_arrays();
|
|
970
|
+
var callBind = require_call_bind();
|
|
971
|
+
var callBound = require_call_bound();
|
|
972
|
+
var gOPD = require_gopd();
|
|
973
|
+
var getProto = require_get_proto();
|
|
974
|
+
var $toString = callBound("Object.prototype.toString");
|
|
975
|
+
var hasToStringTag = require_shams()();
|
|
976
|
+
var g = typeof globalThis === "undefined" ? require__polyfill_node_process._polyfill_global_this_default : globalThis;
|
|
977
|
+
var typedArrays = availableTypedArrays();
|
|
978
|
+
var $slice = callBound("String.prototype.slice");
|
|
979
|
+
/** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
|
|
980
|
+
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
981
|
+
for (var i = 0; i < array.length; i += 1) if (array[i] === value) return i;
|
|
982
|
+
return -1;
|
|
983
|
+
};
|
|
984
|
+
/** @typedef {import('./types').Getter} Getter */
|
|
985
|
+
/** @type {import('./types').Cache} */
|
|
986
|
+
var cache = { __proto__: null };
|
|
987
|
+
if (hasToStringTag && gOPD && getProto) forEach(typedArrays, function(typedArray) {
|
|
988
|
+
var arr = new g[typedArray]();
|
|
989
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
990
|
+
var proto = getProto(arr);
|
|
991
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
992
|
+
if (!descriptor && proto) descriptor = gOPD(getProto(proto), Symbol.toStringTag);
|
|
993
|
+
if (descriptor && descriptor.get) {
|
|
994
|
+
var bound = callBind(descriptor.get);
|
|
995
|
+
cache["$" + typedArray] = bound;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
});
|
|
999
|
+
else forEach(typedArrays, function(typedArray) {
|
|
1000
|
+
var arr = new g[typedArray]();
|
|
1001
|
+
var fn = arr.slice || arr.set;
|
|
1002
|
+
if (fn) {
|
|
1003
|
+
var bound = callBind(fn);
|
|
1004
|
+
cache["$" + typedArray] = bound;
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
/** @type {(value: object) => false | import('.').TypedArrayName} */
|
|
1008
|
+
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
1009
|
+
/** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
|
|
1010
|
+
forEach(
|
|
1011
|
+
cache,
|
|
1012
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
1013
|
+
function(getter, typedArray) {
|
|
1014
|
+
if (!found) try {
|
|
1015
|
+
if ("$" + getter(value) === typedArray) found = $slice(typedArray, 1);
|
|
1016
|
+
} catch (e) {}
|
|
1017
|
+
}
|
|
1018
|
+
);
|
|
1019
|
+
return found;
|
|
1020
|
+
};
|
|
1021
|
+
/** @type {(value: object) => false | import('.').TypedArrayName} */
|
|
1022
|
+
var trySlices = function tryAllSlices(value) {
|
|
1023
|
+
/** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
|
|
1024
|
+
forEach(
|
|
1025
|
+
cache,
|
|
1026
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
1027
|
+
function(getter, name) {
|
|
1028
|
+
if (!found) try {
|
|
1029
|
+
getter(value);
|
|
1030
|
+
found = $slice(name, 1);
|
|
1031
|
+
} catch (e) {}
|
|
1032
|
+
}
|
|
1033
|
+
);
|
|
1034
|
+
return found;
|
|
1035
|
+
};
|
|
1036
|
+
/** @type {import('.')} */
|
|
1037
|
+
module.exports = function whichTypedArray(value) {
|
|
1038
|
+
if (!value || typeof value !== "object") return false;
|
|
1039
|
+
if (!hasToStringTag) {
|
|
1040
|
+
/** @type {string} */
|
|
1041
|
+
var tag = $slice($toString(value), 8, -1);
|
|
1042
|
+
if ($indexOf(typedArrays, tag) > -1) return tag;
|
|
1043
|
+
if (tag !== "Object") return false;
|
|
1044
|
+
return trySlices(value);
|
|
1045
|
+
}
|
|
1046
|
+
if (!gOPD) return null;
|
|
1047
|
+
return tryTypedArrays(value);
|
|
1048
|
+
};
|
|
1049
|
+
}));
|
|
1050
|
+
//#endregion
|
|
1051
|
+
//#region ../../node_modules/is-typed-array/index.js
|
|
1052
|
+
var require_is_typed_array = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1053
|
+
var whichTypedArray = require_which_typed_array();
|
|
1054
|
+
/** @type {import('.')} */
|
|
1055
|
+
module.exports = function isTypedArray(value) {
|
|
1056
|
+
return !!whichTypedArray(value);
|
|
1057
|
+
};
|
|
1058
|
+
}));
|
|
1059
|
+
//#endregion
|
|
1060
|
+
//#region ../../node_modules/typed-array-buffer/index.js
|
|
1061
|
+
var require_typed_array_buffer = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1062
|
+
var $TypeError = require_type();
|
|
1063
|
+
/** @type {undefined | ((thisArg: import('.').TypedArray) => Buffer<ArrayBufferLike>)} */
|
|
1064
|
+
var $typedArrayBuffer = require_call_bound()("TypedArray.prototype.buffer", true);
|
|
1065
|
+
var isTypedArray = require_is_typed_array();
|
|
1066
|
+
/** @type {import('.')} */
|
|
1067
|
+
module.exports = $typedArrayBuffer || function typedArrayBuffer(x) {
|
|
1068
|
+
if (!isTypedArray(x)) throw new $TypeError("Not a Typed Array");
|
|
1069
|
+
return x.buffer;
|
|
1070
|
+
};
|
|
1071
|
+
}));
|
|
1072
|
+
//#endregion
|
|
1073
|
+
//#region ../../node_modules/to-buffer/index.js
|
|
1074
|
+
var require_to_buffer$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1075
|
+
var Buffer = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
1076
|
+
var isArray = require_isarray();
|
|
1077
|
+
var typedArrayBuffer = require_typed_array_buffer();
|
|
1078
|
+
var isView = ArrayBuffer.isView || function isView(obj) {
|
|
1079
|
+
try {
|
|
1080
|
+
typedArrayBuffer(obj);
|
|
1081
|
+
return true;
|
|
1082
|
+
} catch (e) {
|
|
1083
|
+
return false;
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
var useUint8Array = typeof Uint8Array !== "undefined";
|
|
1087
|
+
var useArrayBuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined";
|
|
1088
|
+
var useFromArrayBuffer = useArrayBuffer && (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT);
|
|
1089
|
+
module.exports = function toBuffer(data, encoding) {
|
|
1090
|
+
if (Buffer.isBuffer(data)) {
|
|
1091
|
+
if (data.constructor && !("isBuffer" in data)) return Buffer.from(data);
|
|
1092
|
+
return data;
|
|
1093
|
+
}
|
|
1094
|
+
if (typeof data === "string") return Buffer.from(data, encoding);
|
|
1095
|
+
if (useArrayBuffer && isView(data)) {
|
|
1096
|
+
if (data.byteLength === 0) return Buffer.alloc(0);
|
|
1097
|
+
if (useFromArrayBuffer) {
|
|
1098
|
+
var res = Buffer.from(data.buffer, data.byteOffset, data.byteLength);
|
|
1099
|
+
if (res.byteLength === data.byteLength) return res;
|
|
1100
|
+
}
|
|
1101
|
+
var uint8 = data instanceof Uint8Array ? data : new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
|
|
1102
|
+
var result = Buffer.from(uint8);
|
|
1103
|
+
if (result.length === data.byteLength) return result;
|
|
1104
|
+
}
|
|
1105
|
+
if (useUint8Array && data instanceof Uint8Array) return Buffer.from(data);
|
|
1106
|
+
var isArr = isArray(data);
|
|
1107
|
+
if (isArr) for (var i = 0; i < data.length; i += 1) {
|
|
1108
|
+
var x = data[i];
|
|
1109
|
+
if (typeof x !== "number" || x < 0 || x > 255 || ~~x !== x) throw new RangeError("Array items must be numbers in the range 0-255.");
|
|
1110
|
+
}
|
|
1111
|
+
if (isArr || Buffer.isBuffer(data) && data.constructor && typeof data.constructor.isBuffer === "function" && data.constructor.isBuffer(data)) return Buffer.from(data);
|
|
1112
|
+
throw new TypeError("The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.");
|
|
1113
|
+
};
|
|
1114
|
+
}));
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region ../../node_modules/pbkdf2/lib/to-buffer.js
|
|
1117
|
+
var require_to_buffer = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1118
|
+
var Buffer = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
1119
|
+
var toBuffer = require_to_buffer$1();
|
|
1120
|
+
var useUint8Array = typeof Uint8Array !== "undefined";
|
|
1121
|
+
var isView = useUint8Array && typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView;
|
|
1122
|
+
module.exports = function(thing, encoding, name) {
|
|
1123
|
+
if (typeof thing === "string" || Buffer.isBuffer(thing) || useUint8Array && thing instanceof Uint8Array || isView && isView(thing)) return toBuffer(thing, encoding);
|
|
1124
|
+
throw new TypeError(name + " must be a string, a Buffer, a Uint8Array, or a DataView");
|
|
1125
|
+
};
|
|
1126
|
+
}));
|
|
1127
|
+
//#endregion
|
|
1128
|
+
//#region ../../node_modules/create-hmac/index.js
|
|
1129
|
+
var require_create_hmac = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1130
|
+
module.exports = require("node:crypto").createHmac;
|
|
1131
|
+
}));
|
|
1132
|
+
//#endregion
|
|
1133
|
+
//#region ../../node_modules/pbkdf2/lib/sync.js
|
|
1134
|
+
var require_sync = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1135
|
+
var sizes = {
|
|
1136
|
+
__proto__: null,
|
|
1137
|
+
md5: 16,
|
|
1138
|
+
sha1: 20,
|
|
1139
|
+
sha224: 28,
|
|
1140
|
+
sha256: 32,
|
|
1141
|
+
sha384: 48,
|
|
1142
|
+
sha512: 64,
|
|
1143
|
+
"sha512-256": 32,
|
|
1144
|
+
rmd160: 20,
|
|
1145
|
+
ripemd160: 20
|
|
1146
|
+
};
|
|
1147
|
+
var mapping = {
|
|
1148
|
+
__proto__: null,
|
|
1149
|
+
"sha-1": "sha1",
|
|
1150
|
+
"sha-224": "sha224",
|
|
1151
|
+
"sha-256": "sha256",
|
|
1152
|
+
"sha-384": "sha384",
|
|
1153
|
+
"sha-512": "sha512",
|
|
1154
|
+
"ripemd-160": "ripemd160"
|
|
1155
|
+
};
|
|
1156
|
+
var createHash = require_create_hash();
|
|
1157
|
+
var createHmac = require_create_hmac();
|
|
1158
|
+
var Buffer = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
1159
|
+
var checkParameters = require_precondition();
|
|
1160
|
+
var defaultEncoding = require_default_encoding();
|
|
1161
|
+
var toBuffer = require_to_buffer();
|
|
1162
|
+
function pbkdf2(password, salt, iterations, keylen, digest) {
|
|
1163
|
+
keylen = checkParameters(iterations, keylen);
|
|
1164
|
+
password = toBuffer(password, defaultEncoding, "Password");
|
|
1165
|
+
salt = toBuffer(salt, defaultEncoding, "Salt");
|
|
1166
|
+
var lowerDigest = (digest || "sha1").toLowerCase();
|
|
1167
|
+
var mappedDigest = mapping[lowerDigest] || lowerDigest;
|
|
1168
|
+
var size = sizes[mappedDigest];
|
|
1169
|
+
if (typeof size !== "number" || !size) throw new TypeError("Digest algorithm not supported: " + digest);
|
|
1170
|
+
var blocksize = mappedDigest === "sha384" || mappedDigest === "sha512" || mappedDigest === "sha512-256" ? 128 : 64;
|
|
1171
|
+
if (password.length > blocksize) password = createHash(mappedDigest).update(password).digest();
|
|
1172
|
+
var DK = Buffer.allocUnsafe(keylen);
|
|
1173
|
+
var block1 = Buffer.allocUnsafe(salt.length + 4);
|
|
1174
|
+
salt.copy(block1, 0, 0, salt.length);
|
|
1175
|
+
var destPos = 0;
|
|
1176
|
+
var hLen = size;
|
|
1177
|
+
var l = Math.ceil(keylen / hLen);
|
|
1178
|
+
for (var i = 1; i <= l; i++) {
|
|
1179
|
+
block1.writeUInt32BE(i, salt.length);
|
|
1180
|
+
var T = createHmac(mappedDigest, password).update(block1).digest();
|
|
1181
|
+
var U = T;
|
|
1182
|
+
for (var j = 1; j < iterations; j++) {
|
|
1183
|
+
U = createHmac(mappedDigest, password).update(U).digest();
|
|
1184
|
+
for (var k = 0; k < hLen; k++) T[k] ^= U[k];
|
|
1185
|
+
}
|
|
1186
|
+
T.copy(DK, destPos);
|
|
1187
|
+
destPos += hLen;
|
|
1188
|
+
}
|
|
1189
|
+
return DK;
|
|
1190
|
+
}
|
|
1191
|
+
module.exports = pbkdf2;
|
|
1192
|
+
}));
|
|
1193
|
+
//#endregion
|
|
1194
|
+
//#region ../../node_modules/pbkdf2/lib/async.js
|
|
1195
|
+
var require_async = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1196
|
+
require__polyfill_node_process.init__polyfill_global_this();
|
|
1197
|
+
var Buffer = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
1198
|
+
var checkParameters = require_precondition();
|
|
1199
|
+
var defaultEncoding = require_default_encoding();
|
|
1200
|
+
var sync = require_sync();
|
|
1201
|
+
var toBuffer = require_to_buffer();
|
|
1202
|
+
var ZERO_BUF;
|
|
1203
|
+
var subtle = require__polyfill_node_process._polyfill_global_this_default.crypto && require__polyfill_node_process._polyfill_global_this_default.crypto.subtle;
|
|
1204
|
+
var toBrowser = {
|
|
1205
|
+
sha: "SHA-1",
|
|
1206
|
+
"sha-1": "SHA-1",
|
|
1207
|
+
sha1: "SHA-1",
|
|
1208
|
+
sha256: "SHA-256",
|
|
1209
|
+
"sha-256": "SHA-256",
|
|
1210
|
+
sha384: "SHA-384",
|
|
1211
|
+
"sha-384": "SHA-384",
|
|
1212
|
+
"sha-512": "SHA-512",
|
|
1213
|
+
sha512: "SHA-512"
|
|
1214
|
+
};
|
|
1215
|
+
var checks = [];
|
|
1216
|
+
var nextTick;
|
|
1217
|
+
function getNextTick() {
|
|
1218
|
+
if (nextTick) return nextTick;
|
|
1219
|
+
if (require__polyfill_node_process._polyfill_global_this_default.process && require__polyfill_node_process._polyfill_global_this_default.process.nextTick) nextTick = require__polyfill_node_process._polyfill_global_this_default.process.nextTick;
|
|
1220
|
+
else if (require__polyfill_node_process._polyfill_global_this_default.queueMicrotask) nextTick = require__polyfill_node_process._polyfill_global_this_default.queueMicrotask;
|
|
1221
|
+
else if (require__polyfill_node_process._polyfill_global_this_default.setImmediate) nextTick = require__polyfill_node_process._polyfill_global_this_default.setImmediate;
|
|
1222
|
+
else nextTick = require__polyfill_node_process._polyfill_global_this_default.setTimeout;
|
|
1223
|
+
return nextTick;
|
|
1224
|
+
}
|
|
1225
|
+
function browserPbkdf2(password, salt, iterations, length, algo) {
|
|
1226
|
+
return subtle.importKey("raw", password, { name: "PBKDF2" }, false, ["deriveBits"]).then(function(key) {
|
|
1227
|
+
return subtle.deriveBits({
|
|
1228
|
+
name: "PBKDF2",
|
|
1229
|
+
salt,
|
|
1230
|
+
iterations,
|
|
1231
|
+
hash: { name: algo }
|
|
1232
|
+
}, key, length << 3);
|
|
1233
|
+
}).then(function(res) {
|
|
1234
|
+
return Buffer.from(res);
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
function checkNative(algo) {
|
|
1238
|
+
if (require__polyfill_node_process._polyfill_global_this_default.process && !require__polyfill_node_process._polyfill_global_this_default.process.browser) return Promise.resolve(false);
|
|
1239
|
+
if (!subtle || !subtle.importKey || !subtle.deriveBits) return Promise.resolve(false);
|
|
1240
|
+
if (checks[algo] !== void 0) return checks[algo];
|
|
1241
|
+
ZERO_BUF = ZERO_BUF || Buffer.alloc(8);
|
|
1242
|
+
var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo).then(function() {
|
|
1243
|
+
return true;
|
|
1244
|
+
}, function() {
|
|
1245
|
+
return false;
|
|
1246
|
+
});
|
|
1247
|
+
checks[algo] = prom;
|
|
1248
|
+
return prom;
|
|
1249
|
+
}
|
|
1250
|
+
function resolvePromise(promise, callback) {
|
|
1251
|
+
promise.then(function(out) {
|
|
1252
|
+
getNextTick()(function() {
|
|
1253
|
+
callback(null, out);
|
|
1254
|
+
});
|
|
1255
|
+
}, function(e) {
|
|
1256
|
+
getNextTick()(function() {
|
|
1257
|
+
callback(e);
|
|
1258
|
+
});
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
module.exports = function(password, salt, iterations, keylen, digest, callback) {
|
|
1262
|
+
if (typeof digest === "function") {
|
|
1263
|
+
callback = digest;
|
|
1264
|
+
digest = void 0;
|
|
1265
|
+
}
|
|
1266
|
+
keylen = checkParameters(iterations, keylen);
|
|
1267
|
+
password = toBuffer(password, defaultEncoding, "Password");
|
|
1268
|
+
salt = toBuffer(salt, defaultEncoding, "Salt");
|
|
1269
|
+
if (typeof callback !== "function") throw new Error("No callback provided to pbkdf2");
|
|
1270
|
+
digest = digest || "sha1";
|
|
1271
|
+
var algo = toBrowser[digest.toLowerCase()];
|
|
1272
|
+
if (!algo || typeof require__polyfill_node_process._polyfill_global_this_default.Promise !== "function") {
|
|
1273
|
+
getNextTick()(function() {
|
|
1274
|
+
var out;
|
|
1275
|
+
try {
|
|
1276
|
+
out = sync(password, salt, iterations, keylen, digest);
|
|
1277
|
+
} catch (e) {
|
|
1278
|
+
callback(e);
|
|
1279
|
+
return;
|
|
1280
|
+
}
|
|
1281
|
+
callback(null, out);
|
|
1282
|
+
});
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
resolvePromise(checkNative(algo).then(function(resp) {
|
|
1286
|
+
if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo);
|
|
1287
|
+
return sync(password, salt, iterations, keylen, digest);
|
|
1288
|
+
}), callback);
|
|
1289
|
+
};
|
|
1290
|
+
}));
|
|
1291
|
+
//#endregion
|
|
1292
|
+
//#region ../../node_modules/pbkdf2/index.js
|
|
1293
|
+
var require_pbkdf2 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
1294
|
+
var nativeImpl = require("node:crypto");
|
|
1295
|
+
var checkParameters = require_precondition();
|
|
1296
|
+
var defaultEncoding = require_default_encoding();
|
|
1297
|
+
var toBuffer = require_to_buffer();
|
|
1298
|
+
function nativePBKDF2(password, salt, iterations, keylen, digest, callback) {
|
|
1299
|
+
keylen = checkParameters(iterations, keylen);
|
|
1300
|
+
password = toBuffer(password, defaultEncoding, "Password");
|
|
1301
|
+
salt = toBuffer(salt, defaultEncoding, "Salt");
|
|
1302
|
+
if (typeof digest === "function") {
|
|
1303
|
+
callback = digest;
|
|
1304
|
+
digest = "sha1";
|
|
1305
|
+
}
|
|
1306
|
+
if (typeof callback !== "function") throw new Error("No callback provided to pbkdf2");
|
|
1307
|
+
return nativeImpl.pbkdf2(password, salt, iterations, keylen, digest, callback);
|
|
1308
|
+
}
|
|
1309
|
+
function nativePBKDF2Sync(password, salt, iterations, keylen, digest) {
|
|
1310
|
+
keylen = checkParameters(iterations, keylen);
|
|
1311
|
+
password = toBuffer(password, defaultEncoding, "Password");
|
|
1312
|
+
salt = toBuffer(salt, defaultEncoding, "Salt");
|
|
1313
|
+
digest = digest || "sha1";
|
|
1314
|
+
return nativeImpl.pbkdf2Sync(password, salt, iterations, keylen, digest);
|
|
1315
|
+
}
|
|
1316
|
+
/* istanbul ignore next */
|
|
1317
|
+
if (!nativeImpl.pbkdf2Sync || nativeImpl.pbkdf2Sync.toString().indexOf("keylen, digest") === -1) {
|
|
1318
|
+
exports.pbkdf2Sync = require_sync();
|
|
1319
|
+
exports.pbkdf2 = require_async();
|
|
1320
|
+
} else {
|
|
1321
|
+
exports.pbkdf2Sync = nativePBKDF2Sync;
|
|
1322
|
+
exports.pbkdf2 = nativePBKDF2;
|
|
1323
|
+
}
|
|
1324
|
+
}));
|
|
1325
|
+
//#endregion
|
|
1326
|
+
Object.defineProperty(exports, "require_create_hash", {
|
|
1327
|
+
enumerable: true,
|
|
1328
|
+
get: function() {
|
|
1329
|
+
return require_create_hash;
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
Object.defineProperty(exports, "require_pbkdf2", {
|
|
1333
|
+
enumerable: true,
|
|
1334
|
+
get: function() {
|
|
1335
|
+
return require_pbkdf2;
|
|
1336
|
+
}
|
|
1337
|
+
});
|