@sheetxl/studio-vanilla 0.4.20 → 0.4.22
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/browser/cjs/{BdltTXLt7iZT8sku.cjs → -AkvO2DXLOxJTxam.cjs} +1 -1
- package/browser/cjs/{dQ_t_glP-41DsAl-.cjs → 3CSmmG7E8ziDB1mP.cjs} +1 -1
- package/browser/cjs/{BKow6xaj0GHFH5-V.cjs → 7nEG2wj_Ohie6CwI.cjs} +1 -1
- package/browser/cjs/{DlL3FUzHZ4HVF-yg.cjs → B0aLqzqegePPgpc2.cjs} +1 -1
- package/browser/cjs/B9GyERAqyIxdqS4D.cjs +145 -0
- package/browser/cjs/BO8oGaHWFtHyxmQ1.cjs +6 -0
- package/browser/cjs/{B3IrGavp2xDl72qi.cjs → BPODmSH7Z1MR1rHr.cjs} +3 -3
- package/browser/cjs/{BDxykI6GcXpGGGMz.cjs → BS0bGW4PmNinQUvL.cjs} +7 -7
- package/browser/cjs/{Bf-D_AYDbEeRcsvz.cjs → BY3tZiH_cfwBkpN8.cjs} +1 -1
- package/browser/cjs/BYRBdz-9UGZ0b_AO.cjs +7 -0
- package/browser/cjs/{Dn5IBCKPuNI0ypyZ.cjs → BZvC7PqILOVRl2ij.cjs} +1 -1
- package/browser/cjs/Bc6lVP0c3mEzf_yK.cjs +6 -0
- package/browser/cjs/Bdm_fGdkK4-pZ0tW.cjs +6 -0
- package/browser/cjs/{IxfGyvVPF27qqDF3.cjs → Bi2-QXq5KvbsAXoB.cjs} +1 -1
- package/browser/cjs/Bk2cFYnTKxP7WbLy.cjs +6 -0
- package/browser/cjs/{DHiQ_sK8f-95Ft4X.cjs → BlojFx4yQfY8ahEJ.cjs} +2 -2
- package/browser/cjs/BvEv8i6SisfC24C1.cjs +7 -0
- package/browser/cjs/{CX82d7xySIGMF7yM.cjs → Bzntg1YSzOszdwLy.cjs} +1 -1
- package/browser/cjs/C9oIS5xxO9B7vS3W.cjs +6 -0
- package/browser/cjs/{D6WxWENDWFXA_esX.cjs → C9xTKWx1tr6NZFC8.cjs} +1 -1
- package/browser/cjs/{BC_a9wiziJZdu6Au.cjs → CCu9cK1DUD4oa3Nj.cjs} +1 -1
- package/browser/cjs/{C4AWzM1Uh9cuE1A9.cjs → CIeiC9TKv80O2_fQ.cjs} +1 -1
- package/browser/cjs/{zreCxaXU5L2iHQ99.cjs → COuRf_8YbqEsDQOC.cjs} +1 -1
- package/browser/cjs/{DMpqQkdCfg2AjXjR.cjs → CQRZm8lGq26oKY31.cjs} +1 -1
- package/browser/cjs/CYmpgLiDS0ZlbG11.cjs +6 -0
- package/browser/cjs/CZltonq1gEczLRHi.cjs +32 -0
- package/browser/cjs/Cf1j7hiCbQ8xo4_U.cjs +7 -0
- package/browser/cjs/{CW5RuE4isKBlwHmQ.cjs → CknjEH7DZBnqyPfk.cjs} +1 -1
- package/browser/cjs/{iIOyWIrlq0JiZyZX.cjs → ClEc15AqSTFOf5zG.cjs} +1 -1
- package/browser/cjs/{CTPgM-UqKCo4_hd1.cjs → CrUZUIz00uPDq4EA.cjs} +1 -1
- package/browser/cjs/{BOAxaoihJZZzZXhd.cjs → Cv1BFY5pqPtJd8qO.cjs} +1 -1
- package/browser/cjs/CvvHAxM5SO6mwsyq.cjs +161 -0
- package/browser/cjs/{BK6DsykAfJG4V-cJ.cjs → Cvwrl86aXHFXJVZZ.cjs} +1 -1
- package/browser/cjs/CwgzE59YUQ1eOTBi.cjs +6 -0
- package/browser/cjs/{BSlU398ba-ACAG1g.cjs → D3qzZXPgfAtKIAP9.cjs} +6 -6
- package/browser/cjs/{Dp6UwWmFehNr8oln.cjs → D7q2GFLhv9QRTZJe.cjs} +1 -1
- package/browser/cjs/{D3hV1-QRPKCq0om8.cjs → DB2WR3LaeOhkCAXY.cjs} +2 -2
- package/browser/cjs/{BndDL5HS4RNIfwOd.cjs → DFJ4dyRxiUF1XPPZ.cjs} +6 -6
- package/browser/cjs/{jX_tynzFoHAGPZOz.cjs → DJMpu6kYQUW3FWjs.cjs} +1 -1
- package/browser/cjs/{CSM5H5PTjrTaUgKK.cjs → DL7DCFUaFkr2LYhZ.cjs} +1 -1
- package/browser/cjs/{CXik9BghKbVW93T0.cjs → DMMZr350oW-Zan7x.cjs} +24 -24
- package/browser/cjs/{d6ywgaNww4eYXcem.cjs → DMfk3didwdGQLc0i.cjs} +4 -4
- package/browser/cjs/DaEdjRWwuNebE2hn.cjs +6 -0
- package/browser/cjs/Dd7vDdIeQaFScMRQ.cjs +6 -0
- package/browser/cjs/{DUjgS2e8jjyhZF41.cjs → Df9S9eEGYxA_EcEr.cjs} +1 -1
- package/browser/cjs/{CKa-Z1SfYc0pkIX2.cjs → DgSAPPq-D_vlo9jE.cjs} +1 -1
- package/browser/cjs/DmtZLv1wnSxRzPiR.cjs +6 -0
- package/browser/cjs/{CvYl4W2vXnvHHHoI.cjs → DqlFSswn_reXyFz8.cjs} +1 -1
- package/browser/cjs/{CeLG8vmgbEkx4oD1.cjs → Dws_eDddoJKDPps_.cjs} +1 -1
- package/browser/cjs/HyVntu9KkvdKrJEt.cjs +16 -0
- package/browser/cjs/{QonkTPcCkOm4Mvas.cjs → Iek_K8QW1doYx_eo.cjs} +1 -1
- package/browser/cjs/QJFc55OPrJyuRvDO.cjs +19 -0
- package/browser/cjs/QxU4KIgsHZuVigdy.cjs +329 -0
- package/browser/cjs/cOAjfOdF1cb-xgQG.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Bhlan81dumwgyb0S.cjs → kQ8wVygFJMcxlUv-.cjs} +1 -1
- package/browser/cjs/{D2J4RLkySRIXFbsa.cjs → tVbeAmLkaH_1Jy7R.cjs} +2 -2
- package/browser/cjs/wNoDw92hvq2txBki.cjs +11 -0
- package/browser/esm/2d2eGHpsnUoCOFMT.mjs +47 -0
- package/browser/esm/{BqgjdQ15LFcefVOZ.mjs → AVmCEk8Fmiw2k_yK.mjs} +2 -2
- package/browser/esm/B0A2aLiKDPGGU4k-.mjs +44515 -0
- package/{cdn/assets/DmXkRZFP-WnV2YT9.js → browser/esm/BBov1fpR61VyhE3Z.mjs} +1 -1
- package/{cdn/assets/BS_-p_4yMCoR9FTp.js → browser/esm/BJD32_Zv5gkabGc0.mjs} +1 -1
- package/browser/esm/{Bmfu8IUFzu9KyCkA.mjs → BJqIPJDvrhWpZc4S.mjs} +1 -1
- package/{cdn/assets/KUyPDaQO4D8lwO7O.js → browser/esm/BKYjPTKdwG8Dn1_Z.mjs} +1 -1
- package/browser/esm/{JdOvTKCcf5acl7vA.mjs → BQfnqD12mz41DOr_.mjs} +1 -1
- package/{cdn/assets/BfiejFYnvgVrrJPI.js → browser/esm/BSdVpOzJ8SL3EBhP.mjs} +1 -1
- package/browser/esm/{KWZAe-e6U7Po4gCx.mjs → BVuoKgnuqrUwY6Fv.mjs} +15 -15
- package/browser/esm/{RvEM-YtFLw3OMG0V.mjs → Ba4SdTfCAvYS7a3O.mjs} +2 -2
- package/browser/esm/{D2L4EVLdv-YwKGoi.mjs → BajFlIH_X_nvDNfp.mjs} +2 -2
- package/browser/esm/{BGJaDv3Ih-M1lFCD.mjs → Bb0W3ByMVowTViNK.mjs} +1 -1
- package/browser/esm/{DWnopZ6R26qNLVyV.mjs → BmyjN5txj3iMw_DE.mjs} +1 -1
- package/{cdn/assets/B6c_mMwG96t6MlCE.js → browser/esm/BpFA0UU_TF4JO3dh.mjs} +1 -1
- package/browser/esm/Btr2FDDtI_fht0WU.mjs +1466 -0
- package/{cdn/assets/S2TZ7C9tQtDNeeGo.js → browser/esm/Bzg-D_R4sXN-wyMx.mjs} +1 -1
- package/browser/esm/C2xOGr0pDSHSMKoW.mjs +1366 -0
- package/{cdn/assets/CpDyqZXpstRo2buW.js → browser/esm/CAal3t8F-VfdmgAH.mjs} +1 -1
- package/browser/esm/{DlASr70UXrIpKZQO.mjs → CBPeZuyUIf9scEwn.mjs} +722 -815
- package/{cdn/assets/Bnpwlyv8i_gnevRF.js → browser/esm/CCjuiVOyesh1IQpA.mjs} +1861 -1859
- package/browser/esm/{Cjp7NabZ26PaBnIT.mjs → CDnNRZ7jINT_Dr0K.mjs} +4 -4
- package/browser/esm/{DJx6S7TOhQyWdjS5.mjs → CQaM4Ka20cP71fl0.mjs} +1 -1
- package/browser/esm/{VYFESZA0Jc8C13ZT.mjs → CVlIOg6F8qrZdlQ1.mjs} +1 -1
- package/{cdn/assets/dWGGn8a_Ez8kVjgZ.js → browser/esm/Cbq2K4YGny5wwFEf.mjs} +1 -1
- package/browser/esm/CfeqmUm-TkCE2XpK.mjs +260 -0
- package/{cdn/assets/_sUvLBCLSPhV2gF6.js → browser/esm/Ckb6l6osoWh90VXn.mjs} +1 -1
- package/{cdn/assets/Bj6XCGohW0EagXDQ.js → browser/esm/CkccSfJEU471_Sui.mjs} +8 -8
- package/browser/esm/{2vIB3gG-Ct-P7aHY.mjs → Cl0mB61JgZYfTh4S.mjs} +1 -1
- package/browser/esm/{CXSiJ-t5xz78GMwK.mjs → Cm7pnWH_xgLwX_lZ.mjs} +1 -1
- package/browser/esm/{CPchasanZLQiASse.mjs → Co_HyodT3prcEvNJ.mjs} +1 -1
- package/{cdn/assets/glJJyP0v0nlhAzqM.js → browser/esm/CsBIABPdnqpcZcvJ.mjs} +1 -1
- package/browser/esm/{CT_g1GDC8_vSGR0o.mjs → CslKfn0zxkGKrM4-.mjs} +19 -19
- package/browser/esm/{B4ABRWtE31zu8-wJ.mjs → Cx0a1WWRvJgDg4qb.mjs} +7 -7
- package/browser/esm/{BRzxK84abQUinUUx.mjs → D-QFKqWRP5dKwynV.mjs} +1 -1
- package/browser/esm/{DsabS3TdXZB45_O2.mjs → DWgbhx4Y4WzyAP3Z.mjs} +4 -4
- package/browser/esm/DgFIjoPrM5dmrLHT.mjs +392 -0
- package/{cdn/assets/giu63J2gO2p8JJIf.js → browser/esm/Dk_OZhcDLapTaNma.mjs} +1 -1
- package/{cdn/assets/CSDiL3gZro2_BYTj.js → browser/esm/Dp--KMDeqecbq_Wc.mjs} +1 -1
- package/browser/esm/Dva_qJrZGvFYbRxZ.mjs +21 -0
- package/browser/esm/DxJfUV0HFQT8g6H_.mjs +39 -0
- package/browser/esm/{Dkf0_o7D9GkUfOZy.mjs → Dxqx7qwqE6wbYSpB.mjs} +36 -36
- package/{cdn/assets/D7bqIxhqlHgc3Fih.js → browser/esm/ObudKUELIfmbm87W.mjs} +1 -1
- package/browser/esm/{B1qmfUH_Mmjtp3JU.mjs → SGprYj0-SzDtrM3y.mjs} +13 -13
- package/browser/esm/{CmLCIveZbsUFrSOH.mjs → SmC3rmOCw-Ynredz.mjs} +672 -665
- package/browser/esm/{CA33PnXmPNl09v6w.mjs → T263hpnj_sMd1bmD.mjs} +23 -23
- package/browser/esm/{DaoqFa2lhVoZvd16.mjs → Ys1OCodY6sXUkZ6-.mjs} +102 -99
- package/{cdn/assets/xbsV0YR05atX96kb.js → browser/esm/aqvSzH4m6bf7ODc6.mjs} +1 -1
- package/browser/esm/{Bz0TojPavQ5NTjyD.mjs → d49_A3euUkzKZure.mjs} +1 -1
- package/browser/esm/d8r4AqRUASAMCbBC.mjs +1352 -0
- package/browser/esm/{CVvfga1mKyvzrvCr.mjs → fgXzhDR19HBK6PEW.mjs} +6 -6
- package/browser/esm/{Be9tvHxvnxnHNRa4.mjs → g2unVUs-HBGBvXMs.mjs} +1 -1
- package/browser/esm/gzl_ozUgkS0mr_32.mjs +13391 -0
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/kbK4ZGVl1tl5F-UA.mjs +41 -0
- package/browser/esm/oAfM3SU0EgMxfDc0.mjs +3802 -0
- package/browser/esm/{BFUWwMA9uskwVkew.mjs → oUl7lbkOPMCi30tO.mjs} +1 -1
- package/browser/esm/{Dvo7tXJcgnIXR-H7.mjs → tAl8qMu6C0Vlq5p-.mjs} +670 -667
- package/cdn/assets/1we1udiYEDagZ5XN.js +241 -0
- package/cdn/assets/8d4z_mUqWF_BnOt4.js +6481 -0
- package/cdn/assets/B-ol51_1jHaCVeGO.js +3802 -0
- package/cdn/assets/B2I5EC8Y3LkhqzOe.js +50 -0
- package/{browser/esm/CpQM3xIeariuqfsN.mjs → cdn/assets/B44RkeFF8g1ncaGw.js} +16 -14
- package/{browser/esm/DmXkRZFP-WnV2YT9.mjs → cdn/assets/BBov1fpR61VyhE3Z.js} +1 -1
- package/cdn/assets/BCEDMsB3yP73FGo4.js +260 -0
- package/cdn/assets/{BCfZ9L4sqA1AhATQ.js → BERonPR_jlfR0j1B.js} +14 -14
- package/{browser/esm/BS_-p_4yMCoR9FTp.mjs → cdn/assets/BJD32_Zv5gkabGc0.js} +1 -1
- package/cdn/assets/{Bmfu8IUFzu9KyCkA.js → BJqIPJDvrhWpZc4S.js} +1 -1
- package/{browser/esm/KUyPDaQO4D8lwO7O.mjs → cdn/assets/BKYjPTKdwG8Dn1_Z.js} +1 -1
- package/cdn/assets/{Cz1EUITrDS2M-lu2.js → BPQvYX3Tn3_XfM55.js} +849 -849
- package/cdn/assets/{JdOvTKCcf5acl7vA.js → BQfnqD12mz41DOr_.js} +1 -1
- package/{browser/esm/BfiejFYnvgVrrJPI.mjs → cdn/assets/BSdVpOzJ8SL3EBhP.js} +1 -1
- package/cdn/assets/{EN4PLLABu5llaV3T.js → BWHiFslK55rPiaTT.js} +5 -5
- package/cdn/assets/BWhbbP9qvpjw1m3d.js +21 -0
- package/cdn/assets/{SsQFeDXfmfXHyy1R.js → B_gWDLoUXJ58kUTF.js} +670 -667
- package/cdn/assets/{BGJaDv3Ih-M1lFCD.js → Bb0W3ByMVowTViNK.js} +1 -1
- package/{browser/esm/BuX3I7e8lbon25vL.mjs → cdn/assets/Bk7mWQ4jJ591qT5U.js} +9 -9
- package/cdn/assets/{DWnopZ6R26qNLVyV.js → BmyjN5txj3iMw_DE.js} +1 -1
- package/cdn/assets/{SPvRfEBpgC5rbgPz.js → BnEb6t4xIVuW37yn.js} +2 -2
- package/{browser/esm/B6c_mMwG96t6MlCE.mjs → cdn/assets/BpFA0UU_TF4JO3dh.js} +1 -1
- package/{browser/esm/S2TZ7C9tQtDNeeGo.mjs → cdn/assets/Bzg-D_R4sXN-wyMx.js} +1 -1
- package/cdn/assets/C2xOGr0pDSHSMKoW.js +1366 -0
- package/{browser/esm/CpDyqZXpstRo2buW.mjs → cdn/assets/CAal3t8F-VfdmgAH.js} +1 -1
- package/{browser/esm/Qjkn8L0WuEQToAqm.mjs → cdn/assets/CGImeT9zAECbU9zM.js} +14 -12
- package/cdn/assets/CIdfxx6BkkxIdU4J.js +36 -0
- package/cdn/assets/{DJx6S7TOhQyWdjS5.js → CQaM4Ka20cP71fl0.js} +1 -1
- package/cdn/assets/CVgQlKevn28IBavQ.js +44342 -0
- package/cdn/assets/{VYFESZA0Jc8C13ZT.js → CVlIOg6F8qrZdlQ1.js} +1 -1
- package/{browser/esm/dWGGn8a_Ez8kVjgZ.mjs → cdn/assets/Cbq2K4YGny5wwFEf.js} +1 -1
- package/cdn/assets/{BGQ19MuEoWb0IGOg.js → CcE9nC_34k_5iKdO.js} +25 -25
- package/cdn/assets/{CO9eLmNMi1heLPMx.js → CcP-5SrDsnDeT6SQ.js} +733 -827
- package/{browser/esm/_sUvLBCLSPhV2gF6.mjs → cdn/assets/Ckb6l6osoWh90VXn.js} +1 -1
- package/cdn/assets/{2vIB3gG-Ct-P7aHY.js → Cl0mB61JgZYfTh4S.js} +1 -1
- package/cdn/assets/{CXSiJ-t5xz78GMwK.js → Cm7pnWH_xgLwX_lZ.js} +1 -1
- package/cdn/assets/{CPchasanZLQiASse.js → Co_HyodT3prcEvNJ.js} +1 -1
- package/{browser/esm/glJJyP0v0nlhAzqM.mjs → cdn/assets/CsBIABPdnqpcZcvJ.js} +1 -1
- package/cdn/assets/Ct1wZ_TFb7_zG9uz.js +22 -0
- package/cdn/assets/{BRzxK84abQUinUUx.js → D-QFKqWRP5dKwynV.js} +1 -1
- package/cdn/assets/D8hsneNA-W9ryUa9.js +27 -0
- package/cdn/assets/{9GNkN_zTAHpnP-uq.js → DBzbchpZyNJVqFwJ.js} +4 -4
- package/cdn/assets/DIBJnPf-ZLpoUAyv.js +90 -0
- package/{browser/esm/B7ohU_quBXWjiBEw.mjs → cdn/assets/DKaNurhCUtSDI3-Y.js} +1861 -1859
- package/cdn/assets/DQmcuM6zJj_UBR4j.js +58 -0
- package/cdn/assets/DXWy4_H6I-dyOLr6.js +46 -0
- package/cdn/assets/DXlz010r4VFvz1TS.js +23 -0
- package/{browser/esm/giu63J2gO2p8JJIf.mjs → cdn/assets/Dk_OZhcDLapTaNma.js} +1 -1
- package/{browser/esm/CSDiL3gZro2_BYTj.mjs → cdn/assets/Dp--KMDeqecbq_Wc.js} +1 -1
- package/{browser/esm/CYrbG4T_bwbc4Un4.mjs → cdn/assets/DqRiTlxxpGv8z6hB.js} +136 -134
- package/cdn/assets/Dt6M8k8ljeGubAJ5.js +1466 -0
- package/cdn/assets/Dzb_e1lRgdeWlKbP.js +27 -0
- package/{browser/esm/D7bqIxhqlHgc3Fih.mjs → cdn/assets/ObudKUELIfmbm87W.js} +1 -1
- package/cdn/assets/{DU8_1yjWbaEkXcbL.js → QtHcsa9O7bxZgew4.js} +5 -5
- package/cdn/assets/{CmLCIveZbsUFrSOH.js → SmC3rmOCw-Ynredz.js} +672 -665
- package/cdn/assets/{UhBzX4vQryCjy6ce.js → UBuQw1PVtmH3a9bE.js} +16 -16
- package/cdn/assets/{DaoqFa2lhVoZvd16.js → Ys1OCodY6sXUkZ6-.js} +102 -99
- package/{browser/esm/xbsV0YR05atX96kb.mjs → cdn/assets/aqvSzH4m6bf7ODc6.js} +1 -1
- package/cdn/assets/{Bz0TojPavQ5NTjyD.js → d49_A3euUkzKZure.js} +1 -1
- package/cdn/assets/d8r4AqRUASAMCbBC.js +1352 -0
- package/cdn/assets/{Be9tvHxvnxnHNRa4.js → g2unVUs-HBGBvXMs.js} +1 -1
- package/cdn/assets/gzl_ozUgkS0mr_32.js +13391 -0
- package/cdn/assets/o1yNcQczZA65rwUv.js +41 -0
- package/cdn/assets/u_xPkr1quUnZRgrA.js +149 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B4ScrvWBCXLzvNBz.cjs +0 -145
- package/browser/cjs/BBNggAKHDP4QyhrD.cjs +0 -6
- package/browser/cjs/BSoRD8INLnGqOd24.cjs +0 -7
- package/browser/cjs/BTxfWiE-FbVvlbXz.cjs +0 -11
- package/browser/cjs/BlJixWFmG-z3n7dN.cjs +0 -6
- package/browser/cjs/Buw8XeqL6XQwxqnQ.cjs +0 -32
- package/browser/cjs/C04_CccTUmfnv-ln.cjs +0 -6
- package/browser/cjs/C5TLXtw93fBnRGm7.cjs +0 -378
- package/browser/cjs/CLiSJrUNaSxa5Mn7.cjs +0 -16
- package/browser/cjs/CODi1uYlZ35lFLh9.cjs +0 -6
- package/browser/cjs/Ccv5NHm99sYZnKE6.cjs +0 -7
- package/browser/cjs/CeH0O9zPmIGKjuT9.cjs +0 -19
- package/browser/cjs/D2bZuhwA7aCEA0It.cjs +0 -6
- package/browser/cjs/DEiPHs81OFnGI_GL.cjs +0 -6
- package/browser/cjs/DWIR1gQMiYyoUVpN.cjs +0 -7
- package/browser/cjs/DawJBg8LyIArkwdU.cjs +0 -6
- package/browser/cjs/Dr95ZpJD5KpADFgL.cjs +0 -6
- package/browser/cjs/P7jR9JAKpf5me2pK.cjs +0 -6
- package/browser/cjs/T4zy652TD1RHF35F.cjs +0 -6
- package/browser/cjs/nlzloz3gqSXQwTl5.cjs +0 -13
- package/browser/cjs/xPUjEhL251Mb-kyD.cjs +0 -161
- package/browser/esm/BJkeQi-0GTlyPsTT.mjs +0 -52369
- package/browser/esm/BR2yOGMlFrbNy1I_.mjs +0 -472
- package/browser/esm/BTbBL2qySirAIMIH.mjs +0 -1346
- package/browser/esm/Bj4d7nd4XMugBsBg.mjs +0 -39
- package/browser/esm/CeSDjV2b8w7KibJw.mjs +0 -1466
- package/browser/esm/DR85glElKOQxCdEw.mjs +0 -820
- package/browser/esm/DgxaqoqInkc26SCt.mjs +0 -13208
- package/browser/esm/dwY5oHtoGa_ktt9_.mjs +0 -1365
- package/browser/esm/q5jyS6wUD9X8N3dI.mjs +0 -3755
- package/cdn/assets/BBGivbkBG9VS_rL9.js +0 -3756
- package/cdn/assets/BF0szY6Cs6OTiu4J.js +0 -22
- package/cdn/assets/BFvB3zk5mbav2VDI.js +0 -52200
- package/cdn/assets/BKAFXvz5L4pnwrYW.js +0 -41
- package/cdn/assets/BTbBL2qySirAIMIH.js +0 -1346
- package/cdn/assets/BnrLDtUMM23rGXOR.js +0 -390
- package/cdn/assets/C-saEYaoPI4gaVAh.js +0 -820
- package/cdn/assets/CBG91FlGgFb_NSW3.js +0 -1466
- package/cdn/assets/Cc_7h2P328hlBcqK.js +0 -472
- package/cdn/assets/Cv2EzXYuphY8Hlz2.js +0 -23
- package/cdn/assets/DDWoPuN8AcPJHNxL.js +0 -58
- package/cdn/assets/DYE-hWYAUd_f6MX8.js +0 -46
- package/cdn/assets/DfpCefkqWIezzC8Z.js +0 -49
- package/cdn/assets/DgxaqoqInkc26SCt.js +0 -13208
- package/cdn/assets/LbFq2oCowUDgCX8L.js +0 -43
- package/cdn/assets/TP7wJaHcKRz3uH_W.js +0 -50
- package/cdn/assets/dwY5oHtoGa_ktt9_.js +0 -1365
- package/cdn/assets/nsmFGDjpeUcAO4is.js +0 -149
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
7
|
function Pe() {
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function R(e) {
|
|
10
10
|
return typeof e == "object" && e !== null || typeof e == "function";
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
function
|
|
12
|
+
const tr = Pe;
|
|
13
|
+
function m(e, t) {
|
|
14
14
|
try {
|
|
15
15
|
Object.defineProperty(e, "name", { value: t, configurable: !0 });
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const St = Promise, eo = Promise.resolve.bind(St), to = Promise.prototype.then, ro = Promise.reject.bind(St), oo = eo;
|
|
20
20
|
function P(e) {
|
|
21
|
-
return new
|
|
21
|
+
return new St(e);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function v(e) {
|
|
24
24
|
return P((t) => t(e));
|
|
25
25
|
}
|
|
26
26
|
function c(e) {
|
|
27
|
-
return
|
|
27
|
+
return ro(e);
|
|
28
28
|
}
|
|
29
29
|
function B(e, t, r) {
|
|
30
|
-
return
|
|
30
|
+
return to.call(e, t, r);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
B(B(e, t, r), void 0,
|
|
32
|
+
function W(e, t, r) {
|
|
33
|
+
B(B(e, t, r), void 0, tr);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
35
|
+
function nt(e, t) {
|
|
36
|
+
W(e, t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function bt(e, t) {
|
|
39
|
+
W(e, void 0, t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ne(e, t, r) {
|
|
42
42
|
return B(e, t, r);
|
|
43
43
|
}
|
|
44
44
|
function Ae(e) {
|
|
45
|
-
B(e, void 0,
|
|
45
|
+
B(e, void 0, tr);
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
if (typeof queueMicrotask == "function")
|
|
47
|
+
let ie = (e) => {
|
|
48
|
+
if (typeof queueMicrotask == "function") ie = queueMicrotask;
|
|
49
49
|
else {
|
|
50
|
-
const t =
|
|
51
|
-
|
|
50
|
+
const t = v(void 0);
|
|
51
|
+
ie = (r) => B(t, r);
|
|
52
52
|
}
|
|
53
|
-
return
|
|
53
|
+
return ie(e);
|
|
54
54
|
};
|
|
55
|
-
function
|
|
55
|
+
function me(e, t, r) {
|
|
56
56
|
if (typeof e != "function") throw new TypeError("Argument is not a function");
|
|
57
57
|
return Function.prototype.apply.call(e, t, r);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ge(e, t, r) {
|
|
60
60
|
try {
|
|
61
|
-
return
|
|
61
|
+
return v(me(e, t, r));
|
|
62
62
|
} catch (o) {
|
|
63
63
|
return c(o);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
class
|
|
66
|
+
class j {
|
|
67
67
|
constructor() {
|
|
68
68
|
this._cursor = 0, this._size = 0, this._front = { _elements: [], _next: void 0 }, this._back = this._front, this._cursor = 0, this._size = 0;
|
|
69
69
|
}
|
|
@@ -92,104 +92,104 @@ class k {
|
|
|
92
92
|
return t._elements[r];
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
95
|
+
const rr = Symbol("[[AbortSteps]]"), or = Symbol("[[ErrorSteps]]"), Rt = Symbol("[[CancelSteps]]"), Tt = Symbol("[[PullSteps]]"), qt = Symbol("[[ReleaseSteps]]");
|
|
96
|
+
function nr(e, t) {
|
|
97
97
|
var r;
|
|
98
|
-
e._ownerReadableStream = t, t._reader = e, t._state === "readable" ?
|
|
98
|
+
e._ownerReadableStream = t, t._reader = e, t._state === "readable" ? ht(e) : t._state === "closed" ? (ht(r = e), ar(r)) : ir(e, t._storedError);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function Et(e, t) {
|
|
101
|
+
return k(e._ownerReadableStream, t);
|
|
102
102
|
}
|
|
103
103
|
function L(e) {
|
|
104
104
|
const t = e._ownerReadableStream;
|
|
105
|
-
t._state === "readable" ?
|
|
105
|
+
t._state === "readable" ? Pt(e, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : ir(e, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), t._readableStreamController[qt](), t._reader = void 0, e._ownerReadableStream = void 0;
|
|
106
106
|
}
|
|
107
107
|
function He(e) {
|
|
108
108
|
return new TypeError("Cannot " + e + " a stream using a released reader");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ht(e) {
|
|
111
111
|
e._closedPromise = P((t, r) => {
|
|
112
112
|
e._closedPromise_resolve = t, e._closedPromise_reject = r;
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
115
|
+
function ir(e, t) {
|
|
116
|
+
ht(e), Pt(e, t);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Pt(e, t) {
|
|
119
119
|
e._closedPromise_reject !== void 0 && (Ae(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function ar(e) {
|
|
122
122
|
e._closedPromise_resolve !== void 0 && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const Mt = Number.isFinite || function(e) {
|
|
125
125
|
return typeof e == "number" && isFinite(e);
|
|
126
|
-
},
|
|
126
|
+
}, no = Math.trunc || function(e) {
|
|
127
127
|
return e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
128
128
|
};
|
|
129
|
-
function
|
|
129
|
+
function V(e, t) {
|
|
130
130
|
if (e !== void 0 && typeof (r = e) != "object" && typeof r != "function") throw new TypeError(`${t} is not an object.`);
|
|
131
131
|
var r;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function X(e, t) {
|
|
134
134
|
if (typeof e != "function") throw new TypeError(`${t} is not a function.`);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function sr(e, t) {
|
|
137
137
|
if (!/* @__PURE__ */ function(r) {
|
|
138
138
|
return typeof r == "object" && r !== null || typeof r == "function";
|
|
139
139
|
}(e)) throw new TypeError(`${t} is not an object.`);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function ae(e, t, r) {
|
|
142
142
|
if (e === void 0) throw new TypeError(`Parameter ${t} is required in '${r}'.`);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Nt(e, t, r) {
|
|
145
145
|
if (e === void 0) throw new TypeError(`${t} is required in '${r}'.`);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function lr(e) {
|
|
148
148
|
return Number(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Yt(e) {
|
|
151
151
|
return e === 0 ? 0 : e;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ct(e, t) {
|
|
154
154
|
const r = Number.MAX_SAFE_INTEGER;
|
|
155
155
|
let o = Number(e);
|
|
156
|
-
if (o =
|
|
157
|
-
if (o =
|
|
158
|
-
return
|
|
156
|
+
if (o = Yt(o), !Mt(o)) throw new TypeError(`${t} is not a finite number`);
|
|
157
|
+
if (o = Yt(no(o)), o < 0 || o > r) throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);
|
|
158
|
+
return Mt(o) && o !== 0 ? o : 0;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
if (!
|
|
160
|
+
function Ot(e, t) {
|
|
161
|
+
if (!D(e)) throw new TypeError(`${t} is not a ReadableStream.`);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return new
|
|
163
|
+
function ce(e) {
|
|
164
|
+
return new ee(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ur(e, t) {
|
|
167
167
|
e._reader._readRequests.push(t);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function At(e, t, r) {
|
|
170
170
|
const o = e._reader._readRequests.shift();
|
|
171
171
|
r ? o._closeSteps() : o._chunkSteps(t);
|
|
172
172
|
}
|
|
173
173
|
function Ze(e) {
|
|
174
174
|
return e._reader._readRequests.length;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function cr(e) {
|
|
177
177
|
const t = e._reader;
|
|
178
|
-
return t !== void 0 && !!
|
|
178
|
+
return t !== void 0 && !!U(t);
|
|
179
179
|
}
|
|
180
|
-
class
|
|
180
|
+
class ee {
|
|
181
181
|
constructor(t) {
|
|
182
|
-
if (
|
|
183
|
-
|
|
182
|
+
if (ae(t, 1, "ReadableStreamDefaultReader"), Ot(t, "First parameter"), H(t)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
183
|
+
nr(this, t), this._readRequests = new j();
|
|
184
184
|
}
|
|
185
185
|
get closed() {
|
|
186
|
-
return
|
|
186
|
+
return U(this) ? this._closedPromise : c(We("closed"));
|
|
187
187
|
}
|
|
188
188
|
cancel(t = void 0) {
|
|
189
|
-
return
|
|
189
|
+
return U(this) ? this._ownerReadableStream === void 0 ? c(He("cancel")) : Et(this, t) : c(We("cancel"));
|
|
190
190
|
}
|
|
191
191
|
read() {
|
|
192
|
-
if (!
|
|
192
|
+
if (!U(this)) return c(We("read"));
|
|
193
193
|
if (this._ownerReadableStream === void 0) return c(He("read from"));
|
|
194
194
|
let t, r;
|
|
195
195
|
const o = P((i, n) => {
|
|
@@ -198,39 +198,40 @@ class Z {
|
|
|
198
198
|
return Ce(this, { _chunkSteps: (i) => t({ value: i, done: !1 }), _closeSteps: () => t({ value: void 0, done: !0 }), _errorSteps: (i) => r(i) }), o;
|
|
199
199
|
}
|
|
200
200
|
releaseLock() {
|
|
201
|
-
if (!
|
|
202
|
-
|
|
201
|
+
if (!U(this)) throw We("releaseLock");
|
|
202
|
+
var t;
|
|
203
|
+
this._ownerReadableStream !== void 0 && (L(t = this), dr(t, new TypeError("Reader was released")));
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
-
return !!
|
|
206
|
+
function U(e) {
|
|
207
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_readRequests") && e instanceof ee;
|
|
207
208
|
}
|
|
208
209
|
function Ce(e, t) {
|
|
209
210
|
const r = e._ownerReadableStream;
|
|
210
|
-
r._disturbed = !0, r._state === "closed" ? t._closeSteps() : r._state === "errored" ? t._errorSteps(r._storedError) : r._readableStreamController[
|
|
211
|
+
r._disturbed = !0, r._state === "closed" ? t._closeSteps() : r._state === "errored" ? t._errorSteps(r._storedError) : r._readableStreamController[Tt](t);
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function dr(e, t) {
|
|
213
214
|
const r = e._readRequests;
|
|
214
|
-
e._readRequests = new
|
|
215
|
+
e._readRequests = new j(), r.forEach((o) => {
|
|
215
216
|
o._errorSteps(t);
|
|
216
217
|
});
|
|
217
218
|
}
|
|
218
219
|
function We(e) {
|
|
219
220
|
return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`);
|
|
220
221
|
}
|
|
221
|
-
var
|
|
222
|
+
var it, at, st;
|
|
222
223
|
function Se(e) {
|
|
223
224
|
return e.slice();
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
+
function fr(e, t, r, o, i) {
|
|
226
227
|
new Uint8Array(e).set(new Uint8Array(r, o, i), t);
|
|
227
228
|
}
|
|
228
|
-
Object.defineProperties(
|
|
229
|
-
let
|
|
230
|
-
function
|
|
229
|
+
Object.defineProperties(ee.prototype, { cancel: { enumerable: !0 }, read: { enumerable: !0 }, releaseLock: { enumerable: !0 }, closed: { enumerable: !0 } }), m(ee.prototype.cancel, "cancel"), m(ee.prototype.read, "read"), m(ee.prototype.releaseLock, "releaseLock"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(ee.prototype, Symbol.toStringTag, { value: "ReadableStreamDefaultReader", configurable: !0 });
|
|
230
|
+
let se = (e) => (se = typeof e.transfer == "function" ? (t) => t.transfer() : typeof structuredClone == "function" ? (t) => structuredClone(t, { transfer: [t] }) : (t) => t, se(e)), le = (e) => (le = typeof e.detached == "boolean" ? (t) => t.detached : (t) => t.byteLength === 0, le(e));
|
|
231
|
+
function br(e, t, r) {
|
|
231
232
|
if (e.slice) return e.slice(t, r);
|
|
232
233
|
const o = r - t, i = new ArrayBuffer(o);
|
|
233
|
-
return
|
|
234
|
+
return fr(i, 0, e, t, o), i;
|
|
234
235
|
}
|
|
235
236
|
function Te(e, t) {
|
|
236
237
|
const r = e[t];
|
|
@@ -239,61 +240,61 @@ function Te(e, t) {
|
|
|
239
240
|
return r;
|
|
240
241
|
}
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
+
function Vt(e) {
|
|
243
244
|
try {
|
|
244
245
|
const t = e.done, r = e.value;
|
|
245
|
-
return B(
|
|
246
|
+
return B(oo(r), (o) => ({ done: t, value: o }));
|
|
246
247
|
} catch (t) {
|
|
247
248
|
return c(t);
|
|
248
249
|
}
|
|
249
250
|
}
|
|
250
|
-
const je = (
|
|
251
|
-
function
|
|
251
|
+
const je = (st = (it = Symbol.asyncIterator) !== null && it !== void 0 ? it : (at = Symbol.for) === null || at === void 0 ? void 0 : at.call(Symbol, "Symbol.asyncIterator")) !== null && st !== void 0 ? st : "@@asyncIterator";
|
|
252
|
+
function hr(e, t = "sync", r) {
|
|
252
253
|
if (r === void 0) if (t === "async") {
|
|
253
254
|
if ((r = Te(e, je)) === void 0) return function(i) {
|
|
254
255
|
const n = { next() {
|
|
255
256
|
let s;
|
|
256
257
|
try {
|
|
257
|
-
s =
|
|
258
|
+
s = _r(i);
|
|
258
259
|
} catch (a) {
|
|
259
260
|
return c(a);
|
|
260
261
|
}
|
|
261
|
-
return
|
|
262
|
+
return Vt(s);
|
|
262
263
|
}, return(s) {
|
|
263
264
|
let a;
|
|
264
265
|
try {
|
|
265
266
|
const l = Te(i.iterator, "return");
|
|
266
|
-
if (l === void 0) return
|
|
267
|
-
a =
|
|
267
|
+
if (l === void 0) return v({ done: !0, value: s });
|
|
268
|
+
a = me(l, i.iterator, [s]);
|
|
268
269
|
} catch (l) {
|
|
269
270
|
return c(l);
|
|
270
271
|
}
|
|
271
|
-
return
|
|
272
|
+
return R(a) ? Vt(a) : c(new TypeError("The iterator.return() method must return an object"));
|
|
272
273
|
} };
|
|
273
274
|
return { iterator: n, nextMethod: n.next, done: !1 };
|
|
274
|
-
}(
|
|
275
|
+
}(hr(e, "sync", Te(e, Symbol.iterator)));
|
|
275
276
|
} else r = Te(e, Symbol.iterator);
|
|
276
277
|
if (r === void 0) throw new TypeError("The object is not iterable");
|
|
277
|
-
const o =
|
|
278
|
-
if (!
|
|
278
|
+
const o = me(r, e, []);
|
|
279
|
+
if (!R(o)) throw new TypeError("The iterator method must return an object");
|
|
279
280
|
return { iterator: o, nextMethod: o.next, done: !1 };
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
-
const t =
|
|
283
|
-
if (!
|
|
282
|
+
function _r(e) {
|
|
283
|
+
const t = me(e.nextMethod, e.iterator, []);
|
|
284
|
+
if (!R(t)) throw new TypeError("The iterator.next() method must return an object");
|
|
284
285
|
return t;
|
|
285
286
|
}
|
|
286
|
-
class
|
|
287
|
+
class pr {
|
|
287
288
|
constructor(t, r) {
|
|
288
289
|
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = t, this._preventCancel = r;
|
|
289
290
|
}
|
|
290
291
|
next() {
|
|
291
292
|
const t = () => this._nextSteps();
|
|
292
|
-
return this._ongoingPromise = this._ongoingPromise ?
|
|
293
|
+
return this._ongoingPromise = this._ongoingPromise ? ne(this._ongoingPromise, t, t) : t(), this._ongoingPromise;
|
|
293
294
|
}
|
|
294
295
|
return(t) {
|
|
295
296
|
const r = () => this._returnSteps(t);
|
|
296
|
-
return this._ongoingPromise = this._ongoingPromise ?
|
|
297
|
+
return this._ongoingPromise = this._ongoingPromise ? ne(this._ongoingPromise, r, r) : r(), this._ongoingPromise;
|
|
297
298
|
}
|
|
298
299
|
_nextSteps() {
|
|
299
300
|
if (this._isFinished) return Promise.resolve({ value: void 0, done: !0 });
|
|
@@ -303,7 +304,7 @@ class _r {
|
|
|
303
304
|
r = n, o = s;
|
|
304
305
|
});
|
|
305
306
|
return Ce(t, { _chunkSteps: (n) => {
|
|
306
|
-
this._ongoingPromise = void 0,
|
|
307
|
+
this._ongoingPromise = void 0, ie(() => r({ value: n, done: !1 }));
|
|
307
308
|
}, _closeSteps: () => {
|
|
308
309
|
this._ongoingPromise = void 0, this._isFinished = !0, L(t), r({ value: void 0, done: !0 });
|
|
309
310
|
}, _errorSteps: (n) => {
|
|
@@ -315,98 +316,98 @@ class _r {
|
|
|
315
316
|
this._isFinished = !0;
|
|
316
317
|
const r = this._reader;
|
|
317
318
|
if (!this._preventCancel) {
|
|
318
|
-
const o =
|
|
319
|
-
return L(r),
|
|
319
|
+
const o = Et(r, t);
|
|
320
|
+
return L(r), ne(o, () => ({ value: t, done: !0 }));
|
|
320
321
|
}
|
|
321
|
-
return L(r),
|
|
322
|
+
return L(r), v({ value: t, done: !0 });
|
|
322
323
|
}
|
|
323
324
|
}
|
|
324
|
-
const
|
|
325
|
-
return
|
|
325
|
+
const mr = { next() {
|
|
326
|
+
return Ut(this) ? this._asyncIteratorImpl.next() : c(Ht("next"));
|
|
326
327
|
}, return(e) {
|
|
327
|
-
return
|
|
328
|
+
return Ut(this) ? this._asyncIteratorImpl.return(e) : c(Ht("return"));
|
|
328
329
|
}, [je]() {
|
|
329
330
|
return this;
|
|
330
331
|
} };
|
|
331
|
-
function
|
|
332
|
-
if (!
|
|
332
|
+
function Ut(e) {
|
|
333
|
+
if (!R(e) || !Object.prototype.hasOwnProperty.call(e, "_asyncIteratorImpl")) return !1;
|
|
333
334
|
try {
|
|
334
|
-
return e._asyncIteratorImpl instanceof
|
|
335
|
+
return e._asyncIteratorImpl instanceof pr;
|
|
335
336
|
} catch {
|
|
336
337
|
return !1;
|
|
337
338
|
}
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
+
function Ht(e) {
|
|
340
341
|
return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`);
|
|
341
342
|
}
|
|
342
|
-
Object.defineProperty(
|
|
343
|
-
const
|
|
343
|
+
Object.defineProperty(mr, je, { enumerable: !1 });
|
|
344
|
+
const yr = Number.isNaN || function(e) {
|
|
344
345
|
return e != e;
|
|
345
346
|
};
|
|
346
|
-
function
|
|
347
|
-
const t =
|
|
347
|
+
function Gt(e) {
|
|
348
|
+
const t = br(e.buffer, e.byteOffset, e.byteOffset + e.byteLength);
|
|
348
349
|
return new Uint8Array(t);
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
+
function _t(e) {
|
|
351
352
|
const t = e._queue.shift();
|
|
352
353
|
return e._queueTotalSize -= t.size, e._queueTotalSize < 0 && (e._queueTotalSize = 0), t.value;
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
-
if (typeof (o = r) != "number" ||
|
|
355
|
+
function jt(e, t, r) {
|
|
356
|
+
if (typeof (o = r) != "number" || yr(o) || o < 0 || r === 1 / 0) throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
|
|
356
357
|
var o;
|
|
357
358
|
e._queue.push({ value: t, size: r }), e._queueTotalSize += r;
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
-
e._queue = new
|
|
360
|
+
function J(e) {
|
|
361
|
+
e._queue = new j(), e._queueTotalSize = 0;
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function vr(e) {
|
|
363
364
|
return e === DataView;
|
|
364
365
|
}
|
|
365
|
-
class
|
|
366
|
+
class be {
|
|
366
367
|
constructor() {
|
|
367
368
|
throw new TypeError("Illegal constructor");
|
|
368
369
|
}
|
|
369
370
|
get view() {
|
|
370
|
-
if (!
|
|
371
|
+
if (!lt(this)) throw ut("view");
|
|
371
372
|
return this._view;
|
|
372
373
|
}
|
|
373
374
|
respond(t) {
|
|
374
|
-
if (!
|
|
375
|
-
if (
|
|
376
|
-
if (
|
|
375
|
+
if (!lt(this)) throw ut("respond");
|
|
376
|
+
if (ae(t, 1, "respond"), t = Ct(t, "First parameter"), this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
|
|
377
|
+
if (le(this._view.buffer)) throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");
|
|
377
378
|
Ye(this._associatedReadableByteStreamController, t);
|
|
378
379
|
}
|
|
379
380
|
respondWithNewView(t) {
|
|
380
|
-
if (!
|
|
381
|
-
if (
|
|
381
|
+
if (!lt(this)) throw ut("respondWithNewView");
|
|
382
|
+
if (ae(t, 1, "respondWithNewView"), !ArrayBuffer.isView(t)) throw new TypeError("You can only respond with array buffer views");
|
|
382
383
|
if (this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
|
|
383
|
-
if (
|
|
384
|
+
if (le(t.buffer)) throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");
|
|
384
385
|
Ve(this._associatedReadableByteStreamController, t);
|
|
385
386
|
}
|
|
386
387
|
}
|
|
387
|
-
Object.defineProperties(
|
|
388
|
-
class
|
|
388
|
+
Object.defineProperties(be.prototype, { respond: { enumerable: !0 }, respondWithNewView: { enumerable: !0 }, view: { enumerable: !0 } }), m(be.prototype.respond, "respond"), m(be.prototype.respondWithNewView, "respondWithNewView"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(be.prototype, Symbol.toStringTag, { value: "ReadableStreamBYOBRequest", configurable: !0 });
|
|
389
|
+
class N {
|
|
389
390
|
constructor() {
|
|
390
391
|
throw new TypeError("Illegal constructor");
|
|
391
392
|
}
|
|
392
393
|
get byobRequest() {
|
|
393
|
-
if (!
|
|
394
|
-
return
|
|
394
|
+
if (!te(this)) throw Re("byobRequest");
|
|
395
|
+
return mt(this);
|
|
395
396
|
}
|
|
396
397
|
get desiredSize() {
|
|
397
|
-
if (!
|
|
398
|
-
return
|
|
398
|
+
if (!te(this)) throw Re("desiredSize");
|
|
399
|
+
return Ar(this);
|
|
399
400
|
}
|
|
400
401
|
close() {
|
|
401
|
-
if (!
|
|
402
|
+
if (!te(this)) throw Re("close");
|
|
402
403
|
if (this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!");
|
|
403
404
|
const t = this._controlledReadableByteStream._state;
|
|
404
405
|
if (t !== "readable") throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be closed`);
|
|
405
406
|
qe(this);
|
|
406
407
|
}
|
|
407
408
|
enqueue(t) {
|
|
408
|
-
if (!
|
|
409
|
-
if (
|
|
409
|
+
if (!te(this)) throw Re("enqueue");
|
|
410
|
+
if (ae(t, 1, "enqueue"), !ArrayBuffer.isView(t)) throw new TypeError("chunk must be an array buffer view");
|
|
410
411
|
if (t.byteLength === 0) throw new TypeError("chunk must have non-zero byteLength");
|
|
411
412
|
if (t.buffer.byteLength === 0) throw new TypeError("chunk's buffer must have non-zero byteLength");
|
|
412
413
|
if (this._closeRequested) throw new TypeError("stream is closed or draining");
|
|
@@ -415,17 +416,17 @@ class M {
|
|
|
415
416
|
Ne(this, t);
|
|
416
417
|
}
|
|
417
418
|
error(t = void 0) {
|
|
418
|
-
if (!
|
|
419
|
-
|
|
419
|
+
if (!te(this)) throw Re("error");
|
|
420
|
+
A(this, t);
|
|
420
421
|
}
|
|
421
|
-
[
|
|
422
|
-
|
|
422
|
+
[Rt](t) {
|
|
423
|
+
wr(this), J(this);
|
|
423
424
|
const r = this._cancelAlgorithm(t);
|
|
424
425
|
return et(this), r;
|
|
425
426
|
}
|
|
426
|
-
[
|
|
427
|
+
[Tt](t) {
|
|
427
428
|
const r = this._controlledReadableByteStream;
|
|
428
|
-
if (this._queueTotalSize > 0) return void
|
|
429
|
+
if (this._queueTotalSize > 0) return void Or(this, t);
|
|
429
430
|
const o = this._autoAllocateChunkSize;
|
|
430
431
|
if (o !== void 0) {
|
|
431
432
|
let i;
|
|
@@ -437,119 +438,119 @@ class M {
|
|
|
437
438
|
const n = { buffer: i, bufferByteLength: o, byteOffset: 0, byteLength: o, bytesFilled: 0, minimumFill: 1, elementSize: 1, viewConstructor: Uint8Array, readerType: "default" };
|
|
438
439
|
this._pendingPullIntos.push(n);
|
|
439
440
|
}
|
|
440
|
-
|
|
441
|
+
ur(r, t), ue(this);
|
|
441
442
|
}
|
|
442
|
-
[
|
|
443
|
+
[qt]() {
|
|
443
444
|
if (this._pendingPullIntos.length > 0) {
|
|
444
445
|
const t = this._pendingPullIntos.peek();
|
|
445
|
-
t.readerType = "none", this._pendingPullIntos = new
|
|
446
|
+
t.readerType = "none", this._pendingPullIntos = new j(), this._pendingPullIntos.push(t);
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
|
-
function
|
|
450
|
-
return !!
|
|
450
|
+
function te(e) {
|
|
451
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_controlledReadableByteStream") && e instanceof N;
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
-
return !!
|
|
453
|
+
function lt(e) {
|
|
454
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_associatedReadableByteStreamController") && e instanceof be;
|
|
454
455
|
}
|
|
455
|
-
function
|
|
456
|
+
function ue(e) {
|
|
456
457
|
(function(t) {
|
|
457
458
|
const r = t._controlledReadableByteStream;
|
|
458
|
-
return !(r._state !== "readable" || t._closeRequested || !t._started) && (!!(
|
|
459
|
-
})(e) && (e._pulling ? e._pullAgain = !0 : (e._pulling = !0,
|
|
459
|
+
return !(r._state !== "readable" || t._closeRequested || !t._started) && (!!(cr(r) && Ze(r) > 0 || Wt(r) && kr(r) > 0) || Ar(t) > 0);
|
|
460
|
+
})(e) && (e._pulling ? e._pullAgain = !0 : (e._pulling = !0, W(e._pullAlgorithm(), () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, ue(e)), null), (t) => (A(e, t), null))));
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
-
|
|
462
|
+
function wr(e) {
|
|
463
|
+
kt(e), e._pendingPullIntos = new j();
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function gr(e, t) {
|
|
465
466
|
let r = !1;
|
|
466
467
|
e._state === "closed" && (r = !0);
|
|
467
|
-
const o =
|
|
468
|
-
t.readerType === "default" ?
|
|
468
|
+
const o = Sr(t);
|
|
469
|
+
t.readerType === "default" ? At(e, o, r) : function(i, n, s) {
|
|
469
470
|
const a = i._reader._readIntoRequests.shift();
|
|
470
471
|
s ? a._closeSteps(n) : a._chunkSteps(n);
|
|
471
472
|
}(e, o, r);
|
|
472
473
|
}
|
|
473
474
|
function De(e, t) {
|
|
474
|
-
for (let r = 0; r < t.length; ++r)
|
|
475
|
+
for (let r = 0; r < t.length; ++r) gr(e, t[r]);
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
+
function Sr(e) {
|
|
477
478
|
const t = e.bytesFilled, r = e.elementSize;
|
|
478
479
|
return new e.viewConstructor(e.buffer, e.byteOffset, t / r);
|
|
479
480
|
}
|
|
480
481
|
function Me(e, t, r, o) {
|
|
481
482
|
e._queue.push({ buffer: t, byteOffset: r, byteLength: o }), e._queueTotalSize += o;
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function Rr(e, t, r, o) {
|
|
484
485
|
let i;
|
|
485
486
|
try {
|
|
486
|
-
i =
|
|
487
|
+
i = br(t, r, r + o);
|
|
487
488
|
} catch (n) {
|
|
488
|
-
throw
|
|
489
|
+
throw A(e, n), n;
|
|
489
490
|
}
|
|
490
491
|
Me(e, i, 0, o);
|
|
491
492
|
}
|
|
492
|
-
function Rr(e, t) {
|
|
493
|
-
t.bytesFilled > 0 && Sr(e, t.buffer, t.byteOffset, t.bytesFilled), he(e);
|
|
494
|
-
}
|
|
495
493
|
function Tr(e, t) {
|
|
494
|
+
t.bytesFilled > 0 && Rr(e, t.buffer, t.byteOffset, t.bytesFilled), _e(e);
|
|
495
|
+
}
|
|
496
|
+
function qr(e, t) {
|
|
496
497
|
const r = Math.min(e._queueTotalSize, t.byteLength - t.bytesFilled), o = t.bytesFilled + r;
|
|
497
498
|
let i = r, n = !1;
|
|
498
499
|
const s = o - o % t.elementSize;
|
|
499
500
|
s >= t.minimumFill && (i = s - t.bytesFilled, n = !0);
|
|
500
501
|
const a = e._queue;
|
|
501
502
|
for (; i > 0; ) {
|
|
502
|
-
const l = a.peek(), u = Math.min(i, l.byteLength),
|
|
503
|
-
|
|
503
|
+
const l = a.peek(), u = Math.min(i, l.byteLength), h = t.byteOffset + t.bytesFilled;
|
|
504
|
+
fr(t.buffer, h, l.buffer, l.byteOffset, u), l.byteLength === u ? a.shift() : (l.byteOffset += u, l.byteLength -= u), e._queueTotalSize -= u, Er(e, u, t), i -= u;
|
|
504
505
|
}
|
|
505
506
|
return n;
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
+
function Er(e, t, r) {
|
|
508
509
|
r.bytesFilled += t;
|
|
509
510
|
}
|
|
510
|
-
function
|
|
511
|
-
e._queueTotalSize === 0 && e._closeRequested ? (et(e), ke(e._controlledReadableByteStream)) :
|
|
511
|
+
function Pr(e) {
|
|
512
|
+
e._queueTotalSize === 0 && e._closeRequested ? (et(e), ke(e._controlledReadableByteStream)) : ue(e);
|
|
512
513
|
}
|
|
513
|
-
function
|
|
514
|
+
function kt(e) {
|
|
514
515
|
e._byobRequest !== null && (e._byobRequest._associatedReadableByteStreamController = void 0, e._byobRequest._view = null, e._byobRequest = null);
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
+
function pt(e) {
|
|
517
518
|
const t = [];
|
|
518
519
|
for (; e._pendingPullIntos.length > 0 && e._queueTotalSize !== 0; ) {
|
|
519
520
|
const r = e._pendingPullIntos.peek();
|
|
520
|
-
|
|
521
|
+
qr(e, r) && (_e(e), t.push(r));
|
|
521
522
|
}
|
|
522
523
|
return t;
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
+
function Cr(e, t) {
|
|
525
526
|
const r = e._pendingPullIntos.peek();
|
|
526
|
-
|
|
527
|
-
i.readerType === "none" &&
|
|
527
|
+
kt(e), e._controlledReadableByteStream._state === "closed" ? function(o, i) {
|
|
528
|
+
i.readerType === "none" && _e(o);
|
|
528
529
|
const n = o._controlledReadableByteStream;
|
|
529
|
-
if (
|
|
530
|
+
if (Wt(n)) {
|
|
530
531
|
const s = [];
|
|
531
|
-
for (let a = 0; a <
|
|
532
|
+
for (let a = 0; a < kr(n); ++a) s.push(_e(o));
|
|
532
533
|
De(n, s);
|
|
533
534
|
}
|
|
534
535
|
}(e, r) : function(o, i, n) {
|
|
535
|
-
if (
|
|
536
|
-
|
|
537
|
-
const l =
|
|
536
|
+
if (Er(0, i, n), n.readerType === "none") {
|
|
537
|
+
Tr(o, n);
|
|
538
|
+
const l = pt(o);
|
|
538
539
|
return void De(o._controlledReadableByteStream, l);
|
|
539
540
|
}
|
|
540
541
|
if (n.bytesFilled < n.minimumFill) return;
|
|
541
|
-
|
|
542
|
+
_e(o);
|
|
542
543
|
const s = n.bytesFilled % n.elementSize;
|
|
543
544
|
if (s > 0) {
|
|
544
545
|
const l = n.byteOffset + n.bytesFilled;
|
|
545
|
-
|
|
546
|
+
Rr(o, n.buffer, l - s, s);
|
|
546
547
|
}
|
|
547
548
|
n.bytesFilled -= s;
|
|
548
|
-
const a =
|
|
549
|
-
|
|
550
|
-
}(e, t, r),
|
|
549
|
+
const a = pt(o);
|
|
550
|
+
gr(o._controlledReadableByteStream, n), De(o._controlledReadableByteStream, a);
|
|
551
|
+
}(e, t, r), ue(e);
|
|
551
552
|
}
|
|
552
|
-
function
|
|
553
|
+
function _e(e) {
|
|
553
554
|
return e._pendingPullIntos.shift();
|
|
554
555
|
}
|
|
555
556
|
function et(e) {
|
|
@@ -563,7 +564,7 @@ function qe(e) {
|
|
|
563
564
|
const r = e._pendingPullIntos.peek();
|
|
564
565
|
if (r.bytesFilled % r.elementSize != 0) {
|
|
565
566
|
const o = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
566
|
-
throw
|
|
567
|
+
throw A(e, o), o;
|
|
567
568
|
}
|
|
568
569
|
}
|
|
569
570
|
et(e), ke(t);
|
|
@@ -573,46 +574,46 @@ function Ne(e, t) {
|
|
|
573
574
|
const r = e._controlledReadableByteStream;
|
|
574
575
|
if (e._closeRequested || r._state !== "readable") return;
|
|
575
576
|
const { buffer: o, byteOffset: i, byteLength: n } = t;
|
|
576
|
-
if (
|
|
577
|
-
const s =
|
|
577
|
+
if (le(o)) throw new TypeError("chunk's buffer is detached and so cannot be enqueued");
|
|
578
|
+
const s = se(o);
|
|
578
579
|
if (e._pendingPullIntos.length > 0) {
|
|
579
580
|
const a = e._pendingPullIntos.peek();
|
|
580
|
-
if (
|
|
581
|
-
|
|
581
|
+
if (le(a.buffer)) throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");
|
|
582
|
+
kt(e), a.buffer = se(a.buffer), a.readerType === "none" && Tr(e, a);
|
|
582
583
|
}
|
|
583
|
-
if (
|
|
584
|
+
if (cr(r)) (function(a) {
|
|
584
585
|
const l = a._controlledReadableByteStream._reader;
|
|
585
586
|
for (; l._readRequests.length > 0; ) {
|
|
586
587
|
if (a._queueTotalSize === 0) return;
|
|
587
|
-
|
|
588
|
+
Or(a, l._readRequests.shift());
|
|
588
589
|
}
|
|
589
|
-
})(e), Ze(r) === 0 ? Me(e, s, i, n) : (e._pendingPullIntos.length > 0 &&
|
|
590
|
-
else if (
|
|
590
|
+
})(e), Ze(r) === 0 ? Me(e, s, i, n) : (e._pendingPullIntos.length > 0 && _e(e), At(r, new Uint8Array(s, i, n), !1));
|
|
591
|
+
else if (Wt(r)) {
|
|
591
592
|
Me(e, s, i, n);
|
|
592
|
-
const a =
|
|
593
|
+
const a = pt(e);
|
|
593
594
|
De(e._controlledReadableByteStream, a);
|
|
594
595
|
} else Me(e, s, i, n);
|
|
595
|
-
|
|
596
|
+
ue(e);
|
|
596
597
|
}
|
|
597
|
-
function
|
|
598
|
+
function A(e, t) {
|
|
598
599
|
const r = e._controlledReadableByteStream;
|
|
599
|
-
r._state === "readable" && (
|
|
600
|
+
r._state === "readable" && (wr(e), J(e), et(e), Qr(r, t));
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function Or(e, t) {
|
|
602
603
|
const r = e._queue.shift();
|
|
603
|
-
e._queueTotalSize -= r.byteLength,
|
|
604
|
+
e._queueTotalSize -= r.byteLength, Pr(e);
|
|
604
605
|
const o = new Uint8Array(r.buffer, r.byteOffset, r.byteLength);
|
|
605
606
|
t._chunkSteps(o);
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
+
function mt(e) {
|
|
608
609
|
if (e._byobRequest === null && e._pendingPullIntos.length > 0) {
|
|
609
|
-
const i = e._pendingPullIntos.peek(), n = new Uint8Array(i.buffer, i.byteOffset + i.bytesFilled, i.byteLength - i.bytesFilled), s = Object.create(
|
|
610
|
+
const i = e._pendingPullIntos.peek(), n = new Uint8Array(i.buffer, i.byteOffset + i.bytesFilled, i.byteLength - i.bytesFilled), s = Object.create(be.prototype);
|
|
610
611
|
r = e, o = n, (t = s)._associatedReadableByteStreamController = r, t._view = o, e._byobRequest = s;
|
|
611
612
|
}
|
|
612
613
|
var t, r, o;
|
|
613
614
|
return e._byobRequest;
|
|
614
615
|
}
|
|
615
|
-
function
|
|
616
|
+
function Ar(e) {
|
|
616
617
|
const t = e._controlledReadableByteStream._state;
|
|
617
618
|
return t === "errored" ? null : t === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
|
|
618
619
|
}
|
|
@@ -624,7 +625,7 @@ function Ye(e, t) {
|
|
|
624
625
|
if (t === 0) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
|
|
625
626
|
if (r.bytesFilled + t > r.byteLength) throw new RangeError("bytesWritten out of range");
|
|
626
627
|
}
|
|
627
|
-
r.buffer =
|
|
628
|
+
r.buffer = se(r.buffer), Cr(e, t);
|
|
628
629
|
}
|
|
629
630
|
function Ve(e, t) {
|
|
630
631
|
const r = e._pendingPullIntos.peek();
|
|
@@ -635,218 +636,220 @@ function Ve(e, t) {
|
|
|
635
636
|
if (r.bufferByteLength !== t.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest");
|
|
636
637
|
if (r.bytesFilled + t.byteLength > r.byteLength) throw new RangeError("The region specified by view is larger than byobRequest");
|
|
637
638
|
const o = t.byteLength;
|
|
638
|
-
r.buffer =
|
|
639
|
+
r.buffer = se(t.buffer), Cr(e, o);
|
|
639
640
|
}
|
|
640
|
-
function
|
|
641
|
-
t._controlledReadableByteStream = e, t._pullAgain = !1, t._pulling = !1, t._byobRequest = null, t._queue = t._queueTotalSize = void 0,
|
|
641
|
+
function jr(e, t, r, o, i, n, s) {
|
|
642
|
+
t._controlledReadableByteStream = e, t._pullAgain = !1, t._pulling = !1, t._byobRequest = null, t._queue = t._queueTotalSize = void 0, J(t), t._closeRequested = !1, t._started = !1, t._strategyHWM = n, t._pullAlgorithm = o, t._cancelAlgorithm = i, t._autoAllocateChunkSize = s, t._pendingPullIntos = new j(), e._readableStreamController = t, W(v(r()), () => (t._started = !0, ue(t), null), (a) => (A(t, a), null));
|
|
642
643
|
}
|
|
643
|
-
function
|
|
644
|
+
function ut(e) {
|
|
644
645
|
return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`);
|
|
645
646
|
}
|
|
646
647
|
function Re(e) {
|
|
647
648
|
return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`);
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
+
function io(e, t) {
|
|
650
651
|
if ((e = `${e}`) != "byob") throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);
|
|
651
652
|
return e;
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
-
return new
|
|
654
|
+
function Xt(e) {
|
|
655
|
+
return new re(e);
|
|
655
656
|
}
|
|
656
|
-
function
|
|
657
|
+
function Jt(e, t) {
|
|
657
658
|
e._reader._readIntoRequests.push(t);
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function kr(e) {
|
|
660
661
|
return e._reader._readIntoRequests.length;
|
|
661
662
|
}
|
|
662
|
-
function
|
|
663
|
+
function Wt(e) {
|
|
663
664
|
const t = e._reader;
|
|
664
|
-
return t !== void 0 && !!
|
|
665
|
+
return t !== void 0 && !!oe(t);
|
|
665
666
|
}
|
|
666
|
-
Object.defineProperties(
|
|
667
|
-
class
|
|
667
|
+
Object.defineProperties(N.prototype, { close: { enumerable: !0 }, enqueue: { enumerable: !0 }, error: { enumerable: !0 }, byobRequest: { enumerable: !0 }, desiredSize: { enumerable: !0 } }), m(N.prototype.close, "close"), m(N.prototype.enqueue, "enqueue"), m(N.prototype.error, "error"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(N.prototype, Symbol.toStringTag, { value: "ReadableByteStreamController", configurable: !0 });
|
|
668
|
+
class re {
|
|
668
669
|
constructor(t) {
|
|
669
|
-
if (
|
|
670
|
-
if (!
|
|
671
|
-
|
|
670
|
+
if (ae(t, 1, "ReadableStreamBYOBReader"), Ot(t, "First parameter"), H(t)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
671
|
+
if (!te(t._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
|
|
672
|
+
nr(this, t), this._readIntoRequests = new j();
|
|
672
673
|
}
|
|
673
674
|
get closed() {
|
|
674
|
-
return
|
|
675
|
+
return oe(this) ? this._closedPromise : c(ze("closed"));
|
|
675
676
|
}
|
|
676
677
|
cancel(t = void 0) {
|
|
677
|
-
return
|
|
678
|
+
return oe(this) ? this._ownerReadableStream === void 0 ? c(He("cancel")) : Et(this, t) : c(ze("cancel"));
|
|
678
679
|
}
|
|
679
680
|
read(t, r = {}) {
|
|
680
|
-
if (!
|
|
681
|
+
if (!oe(this)) return c(ze("read"));
|
|
681
682
|
if (!ArrayBuffer.isView(t)) return c(new TypeError("view must be an array buffer view"));
|
|
682
683
|
if (t.byteLength === 0) return c(new TypeError("view must have non-zero byteLength"));
|
|
683
684
|
if (t.buffer.byteLength === 0) return c(new TypeError("view's buffer must have non-zero byteLength"));
|
|
684
|
-
if (
|
|
685
|
+
if (le(t.buffer)) return c(new TypeError("view's buffer has been detached"));
|
|
685
686
|
let o;
|
|
686
687
|
try {
|
|
687
|
-
|
|
688
|
-
} catch (
|
|
689
|
-
return c(
|
|
688
|
+
V(i = r, n = "options"), o = { min: Ct((s = i?.min) !== null && s !== void 0 ? s : 1, `${n} has member 'min' that`) };
|
|
689
|
+
} catch (f) {
|
|
690
|
+
return c(f);
|
|
690
691
|
}
|
|
691
|
-
var i, n;
|
|
692
|
-
const
|
|
693
|
-
if (
|
|
694
|
-
if (
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
|
|
692
|
+
var i, n, s;
|
|
693
|
+
const a = o.min;
|
|
694
|
+
if (a === 0) return c(new TypeError("options.min must be greater than 0"));
|
|
695
|
+
if (function(f) {
|
|
696
|
+
return vr(f.constructor);
|
|
697
|
+
}(t)) {
|
|
698
|
+
if (a > t.byteLength) return c(new RangeError("options.min must be less than or equal to view's byteLength"));
|
|
699
|
+
} else if (a > t.length) return c(new RangeError("options.min must be less than or equal to view's length"));
|
|
698
700
|
if (this._ownerReadableStream === void 0) return c(He("read from"));
|
|
699
701
|
let l, u;
|
|
700
|
-
const
|
|
701
|
-
l =
|
|
702
|
+
const h = P((f, b) => {
|
|
703
|
+
l = f, u = b;
|
|
702
704
|
});
|
|
703
|
-
return
|
|
705
|
+
return Wr(this, t, a, { _chunkSteps: (f) => l({ value: f, done: !1 }), _closeSteps: (f) => l({ value: f, done: !0 }), _errorSteps: (f) => u(f) }), h;
|
|
704
706
|
}
|
|
705
707
|
releaseLock() {
|
|
706
|
-
if (!
|
|
707
|
-
|
|
708
|
+
if (!oe(this)) throw ze("releaseLock");
|
|
709
|
+
var t;
|
|
710
|
+
this._ownerReadableStream !== void 0 && (L(t = this), zr(t, new TypeError("Reader was released")));
|
|
708
711
|
}
|
|
709
712
|
}
|
|
710
|
-
function
|
|
711
|
-
return !!
|
|
713
|
+
function oe(e) {
|
|
714
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_readIntoRequests") && e instanceof re;
|
|
712
715
|
}
|
|
713
|
-
function
|
|
716
|
+
function Wr(e, t, r, o) {
|
|
714
717
|
const i = e._ownerReadableStream;
|
|
715
718
|
i._disturbed = !0, i._state === "errored" ? o._errorSteps(i._storedError) : function(n, s, a, l) {
|
|
716
|
-
const u = n._controlledReadableByteStream,
|
|
717
|
-
var
|
|
718
|
-
let
|
|
719
|
+
const u = n._controlledReadableByteStream, h = s.constructor, f = vr(q = h) ? 1 : q.BYTES_PER_ELEMENT, { byteOffset: b, byteLength: w } = s, T = a * f;
|
|
720
|
+
var q;
|
|
721
|
+
let y;
|
|
719
722
|
try {
|
|
720
|
-
|
|
721
|
-
} catch (
|
|
722
|
-
return void l._errorSteps(
|
|
723
|
+
y = se(s.buffer);
|
|
724
|
+
} catch (g) {
|
|
725
|
+
return void l._errorSteps(g);
|
|
723
726
|
}
|
|
724
|
-
const _ = { buffer:
|
|
725
|
-
if (n._pendingPullIntos.length > 0) return n._pendingPullIntos.push(_), void
|
|
727
|
+
const _ = { buffer: y, bufferByteLength: y.byteLength, byteOffset: b, byteLength: w, bytesFilled: 0, minimumFill: T, elementSize: f, viewConstructor: h, readerType: "byob" };
|
|
728
|
+
if (n._pendingPullIntos.length > 0) return n._pendingPullIntos.push(_), void Jt(u, l);
|
|
726
729
|
if (u._state !== "closed") {
|
|
727
730
|
if (n._queueTotalSize > 0) {
|
|
728
|
-
if (
|
|
729
|
-
const
|
|
730
|
-
return
|
|
731
|
+
if (qr(n, _)) {
|
|
732
|
+
const g = Sr(_);
|
|
733
|
+
return Pr(n), void l._chunkSteps(g);
|
|
731
734
|
}
|
|
732
735
|
if (n._closeRequested) {
|
|
733
|
-
const
|
|
734
|
-
return
|
|
736
|
+
const g = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
737
|
+
return A(n, g), void l._errorSteps(g);
|
|
735
738
|
}
|
|
736
739
|
}
|
|
737
|
-
n._pendingPullIntos.push(_),
|
|
740
|
+
n._pendingPullIntos.push(_), Jt(u, l), ue(n);
|
|
738
741
|
} else {
|
|
739
|
-
const
|
|
740
|
-
l._closeSteps(
|
|
742
|
+
const g = new h(_.buffer, _.byteOffset, 0);
|
|
743
|
+
l._closeSteps(g);
|
|
741
744
|
}
|
|
742
745
|
}(i._readableStreamController, t, r, o);
|
|
743
746
|
}
|
|
744
|
-
function
|
|
747
|
+
function zr(e, t) {
|
|
745
748
|
const r = e._readIntoRequests;
|
|
746
|
-
e._readIntoRequests = new
|
|
749
|
+
e._readIntoRequests = new j(), r.forEach((o) => {
|
|
747
750
|
o._errorSteps(t);
|
|
748
751
|
});
|
|
749
752
|
}
|
|
750
753
|
function ze(e) {
|
|
751
754
|
return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`);
|
|
752
755
|
}
|
|
753
|
-
function
|
|
756
|
+
function yt(e, t) {
|
|
754
757
|
const { highWaterMark: r } = e;
|
|
755
758
|
if (r === void 0) return t;
|
|
756
|
-
if (
|
|
759
|
+
if (yr(r) || r < 0) throw new RangeError("Invalid highWaterMark");
|
|
757
760
|
return r;
|
|
758
761
|
}
|
|
759
|
-
function
|
|
762
|
+
function Br(e) {
|
|
760
763
|
const { size: t } = e;
|
|
761
764
|
return t || (() => 1);
|
|
762
765
|
}
|
|
763
|
-
function
|
|
764
|
-
|
|
766
|
+
function Fr(e, t) {
|
|
767
|
+
V(e, t);
|
|
765
768
|
const r = e?.highWaterMark, o = e?.size;
|
|
766
|
-
return { highWaterMark: r === void 0 ? void 0 :
|
|
767
|
-
}
|
|
768
|
-
function io(e, t) {
|
|
769
|
-
return G(e, t), (r) => sr(e(r));
|
|
769
|
+
return { highWaterMark: r === void 0 ? void 0 : lr(r), size: o === void 0 ? void 0 : ao(o, `${t} has member 'size' that`) };
|
|
770
770
|
}
|
|
771
|
-
function ao(e, t
|
|
772
|
-
return
|
|
771
|
+
function ao(e, t) {
|
|
772
|
+
return X(e, t), (r) => lr(e(r));
|
|
773
773
|
}
|
|
774
774
|
function so(e, t, r) {
|
|
775
|
-
return
|
|
775
|
+
return X(e, r), (o) => ge(e, t, [o]);
|
|
776
776
|
}
|
|
777
777
|
function lo(e, t, r) {
|
|
778
|
-
return
|
|
778
|
+
return X(e, r), () => ge(e, t, []);
|
|
779
779
|
}
|
|
780
780
|
function uo(e, t, r) {
|
|
781
|
-
return
|
|
781
|
+
return X(e, r), (o) => me(e, t, [o]);
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
|
|
783
|
+
function co(e, t, r) {
|
|
784
|
+
return X(e, r), (o, i) => ge(e, t, [o, i]);
|
|
785
|
+
}
|
|
786
|
+
function Ir(e, t) {
|
|
787
|
+
if (!he(e)) throw new TypeError(`${t} is not a WritableStream.`);
|
|
785
788
|
}
|
|
786
|
-
Object.defineProperties(
|
|
787
|
-
class
|
|
789
|
+
Object.defineProperties(re.prototype, { cancel: { enumerable: !0 }, read: { enumerable: !0 }, releaseLock: { enumerable: !0 }, closed: { enumerable: !0 } }), m(re.prototype.cancel, "cancel"), m(re.prototype.read, "read"), m(re.prototype.releaseLock, "releaseLock"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(re.prototype, Symbol.toStringTag, { value: "ReadableStreamBYOBReader", configurable: !0 });
|
|
790
|
+
class de {
|
|
788
791
|
constructor(t = {}, r = {}) {
|
|
789
|
-
t === void 0 ? t = null :
|
|
790
|
-
const o =
|
|
791
|
-
|
|
792
|
-
const u = a?.abort,
|
|
793
|
-
return { abort: u === void 0 ? void 0 :
|
|
792
|
+
t === void 0 ? t = null : sr(t, "First parameter");
|
|
793
|
+
const o = Fr(r, "Second parameter"), i = function(a, l) {
|
|
794
|
+
V(a, l);
|
|
795
|
+
const u = a?.abort, h = a?.close, f = a?.start, b = a?.type, w = a?.write;
|
|
796
|
+
return { abort: u === void 0 ? void 0 : so(u, a, `${l} has member 'abort' that`), close: h === void 0 ? void 0 : lo(h, a, `${l} has member 'close' that`), start: f === void 0 ? void 0 : uo(f, a, `${l} has member 'start' that`), write: w === void 0 ? void 0 : co(w, a, `${l} has member 'write' that`), type: b };
|
|
794
797
|
}(t, "First parameter");
|
|
795
|
-
if ((n = this)._state = "writable", n._storedError = void 0, n._writer = void 0, n._writableStreamController = void 0, n._writeRequests = new
|
|
798
|
+
if ((n = this)._state = "writable", n._storedError = void 0, n._writer = void 0, n._writableStreamController = void 0, n._writeRequests = new j(), n._inFlightWriteRequest = void 0, n._closeRequest = void 0, n._inFlightCloseRequest = void 0, n._pendingAbortRequest = void 0, n._backpressure = !1, i.type !== void 0) throw new RangeError("Invalid type is specified");
|
|
796
799
|
var n;
|
|
797
|
-
const s =
|
|
798
|
-
(function(a, l, u,
|
|
799
|
-
const
|
|
800
|
-
let
|
|
801
|
-
|
|
802
|
-
},
|
|
803
|
-
_._controlledWritableStream =
|
|
800
|
+
const s = Br(o);
|
|
801
|
+
(function(a, l, u, h) {
|
|
802
|
+
const f = Object.create(Xe.prototype);
|
|
803
|
+
let b, w, T, q;
|
|
804
|
+
b = l.start !== void 0 ? () => l.start(f) : () => {
|
|
805
|
+
}, w = l.write !== void 0 ? (y) => l.write(y, f) : () => v(void 0), T = l.close !== void 0 ? () => l.close() : () => v(void 0), q = l.abort !== void 0 ? (y) => l.abort(y) : () => v(void 0), function(y, _, g, z, I, d, p, S) {
|
|
806
|
+
_._controlledWritableStream = y, y._writableStreamController = _, _._queue = void 0, _._queueTotalSize = void 0, J(_), _._abortReason = void 0, _._abortController = function() {
|
|
804
807
|
if (typeof AbortController == "function") return new AbortController();
|
|
805
|
-
}(), _._started = !1, _._strategySizeAlgorithm = S, _._strategyHWM =
|
|
806
|
-
const
|
|
807
|
-
|
|
808
|
-
}(a,
|
|
809
|
-
})(this, i,
|
|
808
|
+
}(), _._started = !1, _._strategySizeAlgorithm = S, _._strategyHWM = p, _._writeAlgorithm = z, _._closeAlgorithm = I, _._abortAlgorithm = d;
|
|
809
|
+
const E = It(_);
|
|
810
|
+
Ft(y, E), W(v(g()), () => (_._started = !0, tt(_), null), (O) => (_._started = !0, vt(y, O), null));
|
|
811
|
+
}(a, f, b, w, T, q, u, h);
|
|
812
|
+
})(this, i, yt(o, 1), s);
|
|
810
813
|
}
|
|
811
814
|
get locked() {
|
|
812
|
-
if (!
|
|
813
|
-
return
|
|
815
|
+
if (!he(this)) throw Fe("locked");
|
|
816
|
+
return pe(this);
|
|
814
817
|
}
|
|
815
818
|
abort(t = void 0) {
|
|
816
|
-
return
|
|
819
|
+
return he(this) ? pe(this) ? c(new TypeError("Cannot abort a stream that already has a writer")) : Ge(this, t) : c(Fe("abort"));
|
|
817
820
|
}
|
|
818
821
|
close() {
|
|
819
|
-
return
|
|
822
|
+
return he(this) ? pe(this) ? c(new TypeError("Cannot close a stream that already has a writer")) : F(this) ? c(new TypeError("Cannot close an already-closing stream")) : $r(this) : c(Fe("close"));
|
|
820
823
|
}
|
|
821
824
|
getWriter() {
|
|
822
|
-
if (!
|
|
823
|
-
return
|
|
825
|
+
if (!he(this)) throw Fe("getWriter");
|
|
826
|
+
return Lr(this);
|
|
824
827
|
}
|
|
825
828
|
}
|
|
826
|
-
function
|
|
827
|
-
return new
|
|
829
|
+
function Lr(e) {
|
|
830
|
+
return new M(e);
|
|
828
831
|
}
|
|
829
|
-
function
|
|
830
|
-
return !!
|
|
832
|
+
function he(e) {
|
|
833
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_writableStreamController") && e instanceof de;
|
|
831
834
|
}
|
|
832
|
-
function
|
|
835
|
+
function pe(e) {
|
|
833
836
|
return e._writer !== void 0;
|
|
834
837
|
}
|
|
835
838
|
function Ge(e, t) {
|
|
836
839
|
var r;
|
|
837
|
-
if (e._state === "closed" || e._state === "errored") return
|
|
840
|
+
if (e._state === "closed" || e._state === "errored") return v(void 0);
|
|
838
841
|
e._writableStreamController._abortReason = t, (r = e._writableStreamController._abortController) === null || r === void 0 || r.abort(t);
|
|
839
842
|
const o = e._state;
|
|
840
|
-
if (o === "closed" || o === "errored") return
|
|
843
|
+
if (o === "closed" || o === "errored") return v(void 0);
|
|
841
844
|
if (e._pendingAbortRequest !== void 0) return e._pendingAbortRequest._promise;
|
|
842
845
|
let i = !1;
|
|
843
846
|
o === "erroring" && (i = !0, t = void 0);
|
|
844
847
|
const n = P((s, a) => {
|
|
845
848
|
e._pendingAbortRequest = { _promise: void 0, _resolve: s, _reject: a, _reason: t, _wasAlreadyErroring: i };
|
|
846
849
|
});
|
|
847
|
-
return e._pendingAbortRequest._promise = n, i ||
|
|
850
|
+
return e._pendingAbortRequest._promise = n, i || zt(e, t), n;
|
|
848
851
|
}
|
|
849
|
-
function
|
|
852
|
+
function $r(e) {
|
|
850
853
|
const t = e._state;
|
|
851
854
|
if (t === "closed" || t === "errored") return c(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));
|
|
852
855
|
const r = P((n, s) => {
|
|
@@ -854,27 +857,27 @@ function Lr(e) {
|
|
|
854
857
|
e._closeRequest = a;
|
|
855
858
|
}), o = e._writer;
|
|
856
859
|
var i;
|
|
857
|
-
return o !== void 0 && e._backpressure && t === "writable" &&
|
|
860
|
+
return o !== void 0 && e._backpressure && t === "writable" && $t(o), jt(i = e._writableStreamController, Yr, 0), tt(i), r;
|
|
858
861
|
}
|
|
859
|
-
function
|
|
860
|
-
e._state !== "writable" ?
|
|
862
|
+
function vt(e, t) {
|
|
863
|
+
e._state !== "writable" ? Bt(e) : zt(e, t);
|
|
861
864
|
}
|
|
862
|
-
function
|
|
865
|
+
function zt(e, t) {
|
|
863
866
|
const r = e._writableStreamController;
|
|
864
867
|
e._state = "erroring", e._storedError = t;
|
|
865
868
|
const o = e._writer;
|
|
866
869
|
var i;
|
|
867
|
-
o !== void 0 &&
|
|
870
|
+
o !== void 0 && Dr(o, t), (i = e)._inFlightWriteRequest === void 0 && i._inFlightCloseRequest === void 0 && r._started && Bt(e);
|
|
868
871
|
}
|
|
869
|
-
function
|
|
870
|
-
e._state = "errored", e._writableStreamController[
|
|
872
|
+
function Bt(e) {
|
|
873
|
+
e._state = "errored", e._writableStreamController[or]();
|
|
871
874
|
const t = e._storedError;
|
|
872
875
|
if (e._writeRequests.forEach((o) => {
|
|
873
876
|
o._reject(t);
|
|
874
|
-
}), e._writeRequests = new
|
|
877
|
+
}), e._writeRequests = new j(), e._pendingAbortRequest === void 0) return void Be(e);
|
|
875
878
|
const r = e._pendingAbortRequest;
|
|
876
879
|
if (e._pendingAbortRequest = void 0, r._wasAlreadyErroring) return r._reject(t), void Be(e);
|
|
877
|
-
|
|
880
|
+
W(e._writableStreamController[rr](r._reason), () => (r._resolve(), Be(e), null), (o) => (r._reject(o), Be(e), null));
|
|
878
881
|
}
|
|
879
882
|
function F(e) {
|
|
880
883
|
return e._closeRequest !== void 0 || e._inFlightCloseRequest !== void 0;
|
|
@@ -882,78 +885,78 @@ function F(e) {
|
|
|
882
885
|
function Be(e) {
|
|
883
886
|
e._closeRequest !== void 0 && (e._closeRequest._reject(e._storedError), e._closeRequest = void 0);
|
|
884
887
|
const t = e._writer;
|
|
885
|
-
t !== void 0 &&
|
|
888
|
+
t !== void 0 && Lt(t, e._storedError);
|
|
886
889
|
}
|
|
887
|
-
function
|
|
890
|
+
function Ft(e, t) {
|
|
888
891
|
const r = e._writer;
|
|
889
|
-
r !== void 0 && t !== e._backpressure && (t ? rt(r) :
|
|
892
|
+
r !== void 0 && t !== e._backpressure && (t ? rt(r) : $t(r)), e._backpressure = t;
|
|
890
893
|
}
|
|
891
|
-
Object.defineProperties(
|
|
892
|
-
class
|
|
894
|
+
Object.defineProperties(de.prototype, { abort: { enumerable: !0 }, close: { enumerable: !0 }, getWriter: { enumerable: !0 }, locked: { enumerable: !0 } }), m(de.prototype.abort, "abort"), m(de.prototype.close, "close"), m(de.prototype.getWriter, "getWriter"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(de.prototype, Symbol.toStringTag, { value: "WritableStream", configurable: !0 });
|
|
895
|
+
class M {
|
|
893
896
|
constructor(t) {
|
|
894
|
-
if (
|
|
897
|
+
if (ae(t, 1, "WritableStreamDefaultWriter"), Ir(t, "First parameter"), pe(t)) throw new TypeError("This stream has already been locked for exclusive writing by another writer");
|
|
895
898
|
this._ownerWritableStream = t, t._writer = this;
|
|
896
899
|
const r = t._state;
|
|
897
|
-
if (r === "writable") !F(t) && t._backpressure ? rt(this) :
|
|
898
|
-
else if (r === "erroring")
|
|
899
|
-
else if (r === "closed")
|
|
900
|
+
if (r === "writable") !F(t) && t._backpressure ? rt(this) : Kt(this), Ue(this);
|
|
901
|
+
else if (r === "erroring") gt(this, t._storedError), Ue(this);
|
|
902
|
+
else if (r === "closed") Kt(this), Ue(this), Gr(this);
|
|
900
903
|
else {
|
|
901
904
|
const o = t._storedError;
|
|
902
|
-
|
|
905
|
+
gt(this, o), Hr(this, o);
|
|
903
906
|
}
|
|
904
907
|
}
|
|
905
908
|
get closed() {
|
|
906
|
-
return
|
|
909
|
+
return K(this) ? this._closedPromise : c(Q("closed"));
|
|
907
910
|
}
|
|
908
911
|
get desiredSize() {
|
|
909
|
-
if (!
|
|
912
|
+
if (!K(this)) throw Q("desiredSize");
|
|
910
913
|
if (this._ownerWritableStream === void 0) throw Ee("desiredSize");
|
|
911
914
|
return function(t) {
|
|
912
915
|
const r = t._ownerWritableStream, o = r._state;
|
|
913
|
-
return o === "errored" || o === "erroring" ? null : o === "closed" ? 0 :
|
|
916
|
+
return o === "errored" || o === "erroring" ? null : o === "closed" ? 0 : Vr(r._writableStreamController);
|
|
914
917
|
}(this);
|
|
915
918
|
}
|
|
916
919
|
get ready() {
|
|
917
|
-
return
|
|
920
|
+
return K(this) ? this._readyPromise : c(Q("ready"));
|
|
918
921
|
}
|
|
919
922
|
abort(t = void 0) {
|
|
920
|
-
return
|
|
923
|
+
return K(this) ? this._ownerWritableStream === void 0 ? c(Ee("abort")) : (r = t, Ge(this._ownerWritableStream, r)) : c(Q("abort"));
|
|
921
924
|
var r;
|
|
922
925
|
}
|
|
923
926
|
close() {
|
|
924
|
-
if (!
|
|
927
|
+
if (!K(this)) return c(Q("close"));
|
|
925
928
|
const t = this._ownerWritableStream;
|
|
926
|
-
return t === void 0 ? c(Ee("close")) : F(t) ? c(new TypeError("Cannot close an already-closing stream")) :
|
|
929
|
+
return t === void 0 ? c(Ee("close")) : F(t) ? c(new TypeError("Cannot close an already-closing stream")) : xr(this);
|
|
927
930
|
}
|
|
928
931
|
releaseLock() {
|
|
929
|
-
if (!
|
|
930
|
-
this._ownerWritableStream !== void 0 &&
|
|
932
|
+
if (!K(this)) throw Q("releaseLock");
|
|
933
|
+
this._ownerWritableStream !== void 0 && Mr(this);
|
|
931
934
|
}
|
|
932
935
|
write(t = void 0) {
|
|
933
|
-
return
|
|
936
|
+
return K(this) ? this._ownerWritableStream === void 0 ? c(Ee("write to")) : Nr(this, t) : c(Q("write"));
|
|
934
937
|
}
|
|
935
938
|
}
|
|
936
|
-
function
|
|
937
|
-
return !!
|
|
939
|
+
function K(e) {
|
|
940
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_ownerWritableStream") && e instanceof M;
|
|
938
941
|
}
|
|
939
|
-
function
|
|
940
|
-
return
|
|
942
|
+
function xr(e) {
|
|
943
|
+
return $r(e._ownerWritableStream);
|
|
941
944
|
}
|
|
942
|
-
function
|
|
943
|
-
e._readyPromiseState === "pending" ?
|
|
945
|
+
function Dr(e, t) {
|
|
946
|
+
e._readyPromiseState === "pending" ? Xr(e, t) : gt(e, t);
|
|
944
947
|
}
|
|
945
|
-
function
|
|
948
|
+
function Mr(e) {
|
|
946
949
|
const t = e._ownerWritableStream, r = new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
|
|
947
950
|
var o, i;
|
|
948
|
-
|
|
951
|
+
Dr(e, r), i = r, (o = e)._closedPromiseState === "pending" ? Lt(o, i) : Hr(o, i), t._writer = void 0, e._ownerWritableStream = void 0;
|
|
949
952
|
}
|
|
950
|
-
function
|
|
953
|
+
function Nr(e, t) {
|
|
951
954
|
const r = e._ownerWritableStream, o = r._writableStreamController, i = function(l, u) {
|
|
952
955
|
if (l._strategySizeAlgorithm === void 0) return 1;
|
|
953
956
|
try {
|
|
954
957
|
return l._strategySizeAlgorithm(u);
|
|
955
|
-
} catch (
|
|
956
|
-
return
|
|
958
|
+
} catch (h) {
|
|
959
|
+
return wt(l, h), 1;
|
|
957
960
|
}
|
|
958
961
|
}(o, t);
|
|
959
962
|
if (r !== e._ownerWritableStream) return c(Ee("write to"));
|
|
@@ -962,110 +965,110 @@ function Mr(e, t) {
|
|
|
962
965
|
if (F(r) || n === "closed") return c(new TypeError("The stream is closing or closed and cannot be written to"));
|
|
963
966
|
if (n === "erroring") return c(r._storedError);
|
|
964
967
|
const s = (a = r, P((l, u) => {
|
|
965
|
-
const
|
|
966
|
-
a._writeRequests.push(
|
|
968
|
+
const h = { _resolve: l, _reject: u };
|
|
969
|
+
a._writeRequests.push(h);
|
|
967
970
|
}));
|
|
968
971
|
var a;
|
|
969
|
-
return function(l, u,
|
|
972
|
+
return function(l, u, h) {
|
|
970
973
|
try {
|
|
971
|
-
|
|
972
|
-
} catch (
|
|
973
|
-
return void
|
|
974
|
+
jt(l, u, h);
|
|
975
|
+
} catch (b) {
|
|
976
|
+
return void wt(l, b);
|
|
974
977
|
}
|
|
975
|
-
const
|
|
976
|
-
F(
|
|
978
|
+
const f = l._controlledWritableStream;
|
|
979
|
+
F(f) || f._state !== "writable" || Ft(f, It(l)), tt(l);
|
|
977
980
|
}(o, t, i), s;
|
|
978
981
|
}
|
|
979
|
-
Object.defineProperties(
|
|
980
|
-
const
|
|
982
|
+
Object.defineProperties(M.prototype, { abort: { enumerable: !0 }, close: { enumerable: !0 }, releaseLock: { enumerable: !0 }, write: { enumerable: !0 }, closed: { enumerable: !0 }, desiredSize: { enumerable: !0 }, ready: { enumerable: !0 } }), m(M.prototype.abort, "abort"), m(M.prototype.close, "close"), m(M.prototype.releaseLock, "releaseLock"), m(M.prototype.write, "write"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(M.prototype, Symbol.toStringTag, { value: "WritableStreamDefaultWriter", configurable: !0 });
|
|
983
|
+
const Yr = {};
|
|
981
984
|
class Xe {
|
|
982
985
|
constructor() {
|
|
983
986
|
throw new TypeError("Illegal constructor");
|
|
984
987
|
}
|
|
985
988
|
get abortReason() {
|
|
986
|
-
if (!
|
|
989
|
+
if (!ct(this)) throw dt("abortReason");
|
|
987
990
|
return this._abortReason;
|
|
988
991
|
}
|
|
989
992
|
get signal() {
|
|
990
|
-
if (!
|
|
993
|
+
if (!ct(this)) throw dt("signal");
|
|
991
994
|
if (this._abortController === void 0) throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");
|
|
992
995
|
return this._abortController.signal;
|
|
993
996
|
}
|
|
994
997
|
error(t = void 0) {
|
|
995
|
-
if (!
|
|
996
|
-
this._controlledWritableStream._state === "writable" &&
|
|
998
|
+
if (!ct(this)) throw dt("error");
|
|
999
|
+
this._controlledWritableStream._state === "writable" && Ur(this, t);
|
|
997
1000
|
}
|
|
998
|
-
[
|
|
1001
|
+
[rr](t) {
|
|
999
1002
|
const r = this._abortAlgorithm(t);
|
|
1000
1003
|
return Je(this), r;
|
|
1001
1004
|
}
|
|
1002
|
-
[
|
|
1003
|
-
|
|
1005
|
+
[or]() {
|
|
1006
|
+
J(this);
|
|
1004
1007
|
}
|
|
1005
1008
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return !!
|
|
1009
|
+
function ct(e) {
|
|
1010
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_controlledWritableStream") && e instanceof Xe;
|
|
1008
1011
|
}
|
|
1009
1012
|
function Je(e) {
|
|
1010
1013
|
e._writeAlgorithm = void 0, e._closeAlgorithm = void 0, e._abortAlgorithm = void 0, e._strategySizeAlgorithm = void 0;
|
|
1011
1014
|
}
|
|
1012
|
-
function
|
|
1015
|
+
function Vr(e) {
|
|
1013
1016
|
return e._strategyHWM - e._queueTotalSize;
|
|
1014
1017
|
}
|
|
1015
1018
|
function tt(e) {
|
|
1016
1019
|
const t = e._controlledWritableStream;
|
|
1017
1020
|
if (!e._started || t._inFlightWriteRequest !== void 0) return;
|
|
1018
|
-
if (t._state === "erroring") return void
|
|
1021
|
+
if (t._state === "erroring") return void Bt(t);
|
|
1019
1022
|
if (e._queue.length === 0) return;
|
|
1020
1023
|
const r = e._queue.peek().value;
|
|
1021
|
-
r ===
|
|
1024
|
+
r === Yr ? function(o) {
|
|
1022
1025
|
const i = o._controlledWritableStream;
|
|
1023
1026
|
var n;
|
|
1024
|
-
(n = i)._inFlightCloseRequest = n._closeRequest, n._closeRequest = void 0,
|
|
1027
|
+
(n = i)._inFlightCloseRequest = n._closeRequest, n._closeRequest = void 0, _t(o);
|
|
1025
1028
|
const s = o._closeAlgorithm();
|
|
1026
|
-
Je(o),
|
|
1029
|
+
Je(o), W(s, () => (function(a) {
|
|
1027
1030
|
a._inFlightCloseRequest._resolve(void 0), a._inFlightCloseRequest = void 0, a._state === "erroring" && (a._storedError = void 0, a._pendingAbortRequest !== void 0 && (a._pendingAbortRequest._resolve(), a._pendingAbortRequest = void 0)), a._state = "closed";
|
|
1028
1031
|
const l = a._writer;
|
|
1029
|
-
l !== void 0 &&
|
|
1032
|
+
l !== void 0 && Gr(l);
|
|
1030
1033
|
}(i), null), (a) => {
|
|
1031
|
-
return u = a, (l = i)._inFlightCloseRequest._reject(u), l._inFlightCloseRequest = void 0, l._pendingAbortRequest !== void 0 && (l._pendingAbortRequest._reject(u), l._pendingAbortRequest = void 0),
|
|
1034
|
+
return u = a, (l = i)._inFlightCloseRequest._reject(u), l._inFlightCloseRequest = void 0, l._pendingAbortRequest !== void 0 && (l._pendingAbortRequest._reject(u), l._pendingAbortRequest = void 0), vt(l, u), null;
|
|
1032
1035
|
var l, u;
|
|
1033
1036
|
});
|
|
1034
1037
|
}(e) : function(o, i) {
|
|
1035
1038
|
const n = o._controlledWritableStream;
|
|
1036
1039
|
var s;
|
|
1037
|
-
(s = n)._inFlightWriteRequest = s._writeRequests.shift(),
|
|
1040
|
+
(s = n)._inFlightWriteRequest = s._writeRequests.shift(), W(o._writeAlgorithm(i), () => {
|
|
1038
1041
|
var a;
|
|
1039
1042
|
(a = n)._inFlightWriteRequest._resolve(void 0), a._inFlightWriteRequest = void 0;
|
|
1040
1043
|
const l = n._state;
|
|
1041
|
-
if (
|
|
1042
|
-
const u =
|
|
1043
|
-
|
|
1044
|
+
if (_t(o), !F(n) && l === "writable") {
|
|
1045
|
+
const u = It(o);
|
|
1046
|
+
Ft(n, u);
|
|
1044
1047
|
}
|
|
1045
1048
|
return tt(o), null;
|
|
1046
1049
|
}, (a) => {
|
|
1047
|
-
return n._state === "writable" && Je(o), u = a, (l = n)._inFlightWriteRequest._reject(u), l._inFlightWriteRequest = void 0,
|
|
1050
|
+
return n._state === "writable" && Je(o), u = a, (l = n)._inFlightWriteRequest._reject(u), l._inFlightWriteRequest = void 0, vt(l, u), null;
|
|
1048
1051
|
var l, u;
|
|
1049
1052
|
});
|
|
1050
1053
|
}(e, r);
|
|
1051
1054
|
}
|
|
1052
|
-
function
|
|
1053
|
-
e._controlledWritableStream._state === "writable" &&
|
|
1055
|
+
function wt(e, t) {
|
|
1056
|
+
e._controlledWritableStream._state === "writable" && Ur(e, t);
|
|
1054
1057
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return
|
|
1058
|
+
function It(e) {
|
|
1059
|
+
return Vr(e) <= 0;
|
|
1057
1060
|
}
|
|
1058
|
-
function
|
|
1061
|
+
function Ur(e, t) {
|
|
1059
1062
|
const r = e._controlledWritableStream;
|
|
1060
|
-
Je(e),
|
|
1063
|
+
Je(e), zt(r, t);
|
|
1061
1064
|
}
|
|
1062
1065
|
function Fe(e) {
|
|
1063
1066
|
return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`);
|
|
1064
1067
|
}
|
|
1065
|
-
function
|
|
1068
|
+
function dt(e) {
|
|
1066
1069
|
return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`);
|
|
1067
1070
|
}
|
|
1068
|
-
function
|
|
1071
|
+
function Q(e) {
|
|
1069
1072
|
return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`);
|
|
1070
1073
|
}
|
|
1071
1074
|
function Ee(e) {
|
|
@@ -1076,13 +1079,13 @@ function Ue(e) {
|
|
|
1076
1079
|
e._closedPromise_resolve = t, e._closedPromise_reject = r, e._closedPromiseState = "pending";
|
|
1077
1080
|
});
|
|
1078
1081
|
}
|
|
1079
|
-
function
|
|
1080
|
-
Ue(e),
|
|
1082
|
+
function Hr(e, t) {
|
|
1083
|
+
Ue(e), Lt(e, t);
|
|
1081
1084
|
}
|
|
1082
|
-
function
|
|
1085
|
+
function Lt(e, t) {
|
|
1083
1086
|
e._closedPromise_reject !== void 0 && (Ae(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "rejected");
|
|
1084
1087
|
}
|
|
1085
|
-
function
|
|
1088
|
+
function Gr(e) {
|
|
1086
1089
|
e._closedPromise_resolve !== void 0 && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "resolved");
|
|
1087
1090
|
}
|
|
1088
1091
|
function rt(e) {
|
|
@@ -1090,21 +1093,21 @@ function rt(e) {
|
|
|
1090
1093
|
e._readyPromise_resolve = t, e._readyPromise_reject = r;
|
|
1091
1094
|
}), e._readyPromiseState = "pending";
|
|
1092
1095
|
}
|
|
1093
|
-
function
|
|
1094
|
-
rt(e),
|
|
1096
|
+
function gt(e, t) {
|
|
1097
|
+
rt(e), Xr(e, t);
|
|
1095
1098
|
}
|
|
1096
|
-
function
|
|
1097
|
-
rt(e),
|
|
1099
|
+
function Kt(e) {
|
|
1100
|
+
rt(e), $t(e);
|
|
1098
1101
|
}
|
|
1099
|
-
function
|
|
1102
|
+
function Xr(e, t) {
|
|
1100
1103
|
e._readyPromise_reject !== void 0 && (Ae(e._readyPromise), e._readyPromise_reject(t), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "rejected");
|
|
1101
1104
|
}
|
|
1102
|
-
function
|
|
1105
|
+
function $t(e) {
|
|
1103
1106
|
e._readyPromise_resolve !== void 0 && (e._readyPromise_resolve(void 0), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "fulfilled");
|
|
1104
1107
|
}
|
|
1105
1108
|
Object.defineProperties(Xe.prototype, { abortReason: { enumerable: !0 }, signal: { enumerable: !0 }, error: { enumerable: !0 } }), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(Xe.prototype, Symbol.toStringTag, { value: "WritableStreamDefaultController", configurable: !0 });
|
|
1106
|
-
const
|
|
1107
|
-
const e =
|
|
1109
|
+
const fo = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof global < "u" ? global : void 0, bo = function() {
|
|
1110
|
+
const e = fo?.DOMException;
|
|
1108
1111
|
return function(t) {
|
|
1109
1112
|
if (typeof t != "function" && typeof t != "object" || t.name !== "DOMException") return !1;
|
|
1110
1113
|
try {
|
|
@@ -1117,153 +1120,153 @@ const co = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
1117
1120
|
const e = function(t, r) {
|
|
1118
1121
|
this.message = t || "", this.name = r || "Error", Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1119
1122
|
};
|
|
1120
|
-
return
|
|
1123
|
+
return m(e, "DOMException"), e.prototype = Object.create(Error.prototype), Object.defineProperty(e.prototype, "constructor", { value: e, writable: !0, configurable: !0 }), e;
|
|
1121
1124
|
}();
|
|
1122
|
-
function
|
|
1123
|
-
const s =
|
|
1125
|
+
function Qt(e, t, r, o, i, n) {
|
|
1126
|
+
const s = ce(e), a = Lr(t);
|
|
1124
1127
|
e._disturbed = !0;
|
|
1125
|
-
let l = !1, u =
|
|
1126
|
-
return P((
|
|
1127
|
-
let
|
|
1128
|
+
let l = !1, u = v(void 0);
|
|
1129
|
+
return P((h, f) => {
|
|
1130
|
+
let b;
|
|
1128
1131
|
if (n !== void 0) {
|
|
1129
|
-
if (
|
|
1130
|
-
const
|
|
1131
|
-
o ||
|
|
1132
|
-
}, n.aborted) return void
|
|
1133
|
-
n.addEventListener("abort",
|
|
1132
|
+
if (b = () => {
|
|
1133
|
+
const d = n.reason !== void 0 ? n.reason : new bo("Aborted", "AbortError"), p = [];
|
|
1134
|
+
o || p.push(() => t._state === "writable" ? Ge(t, d) : v(void 0)), i || p.push(() => e._state === "readable" ? k(e, d) : v(void 0)), g(() => Promise.all(p.map((S) => S())), !0, d);
|
|
1135
|
+
}, n.aborted) return void b();
|
|
1136
|
+
n.addEventListener("abort", b);
|
|
1134
1137
|
}
|
|
1135
|
-
var
|
|
1136
|
-
if (_(e, s._closedPromise, (
|
|
1137
|
-
const
|
|
1138
|
-
return F(
|
|
1139
|
-
}(a)), null),
|
|
1140
|
-
const
|
|
1141
|
-
i ?
|
|
1138
|
+
var w, T, q;
|
|
1139
|
+
if (_(e, s._closedPromise, (d) => (o ? z(!0, d) : g(() => Ge(t, d), !0, d), null)), _(t, a._closedPromise, (d) => (i ? z(!0, d) : g(() => k(e, d), !0, d), null)), w = e, T = s._closedPromise, q = () => (r ? z() : g(() => function(d) {
|
|
1140
|
+
const p = d._ownerWritableStream, S = p._state;
|
|
1141
|
+
return F(p) || S === "closed" ? v(void 0) : S === "errored" ? c(p._storedError) : xr(d);
|
|
1142
|
+
}(a)), null), w._state === "closed" ? q() : nt(T, q), F(t) || t._state === "closed") {
|
|
1143
|
+
const d = new TypeError("the destination writable stream closed before all data could be piped to it");
|
|
1144
|
+
i ? z(!0, d) : g(() => k(e, d), !0, d);
|
|
1142
1145
|
}
|
|
1143
|
-
function
|
|
1144
|
-
const
|
|
1145
|
-
return B(u, () =>
|
|
1146
|
+
function y() {
|
|
1147
|
+
const d = u;
|
|
1148
|
+
return B(u, () => d !== u ? y() : void 0);
|
|
1146
1149
|
}
|
|
1147
|
-
function _(
|
|
1148
|
-
|
|
1150
|
+
function _(d, p, S) {
|
|
1151
|
+
d._state === "errored" ? S(d._storedError) : bt(p, S);
|
|
1149
1152
|
}
|
|
1150
|
-
function
|
|
1151
|
-
function
|
|
1152
|
-
return
|
|
1153
|
+
function g(d, p, S) {
|
|
1154
|
+
function E() {
|
|
1155
|
+
return W(d(), () => I(p, S), (O) => I(!0, O)), null;
|
|
1153
1156
|
}
|
|
1154
|
-
l || (l = !0, t._state !== "writable" || F(t) ?
|
|
1157
|
+
l || (l = !0, t._state !== "writable" || F(t) ? E() : nt(y(), E));
|
|
1155
1158
|
}
|
|
1156
|
-
function
|
|
1157
|
-
l || (l = !0, t._state !== "writable" || F(t) ?
|
|
1159
|
+
function z(d, p) {
|
|
1160
|
+
l || (l = !0, t._state !== "writable" || F(t) ? I(d, p) : nt(y(), () => I(d, p)));
|
|
1158
1161
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return
|
|
1162
|
+
function I(d, p) {
|
|
1163
|
+
return Mr(a), L(s), n !== void 0 && n.removeEventListener("abort", b), d ? f(p) : h(void 0), null;
|
|
1161
1164
|
}
|
|
1162
|
-
Ae(P((
|
|
1163
|
-
(function S(
|
|
1164
|
-
|
|
1165
|
-
Ce(s, { _chunkSteps: (
|
|
1166
|
-
u = B(
|
|
1167
|
-
}, _closeSteps: () =>
|
|
1168
|
-
})), S,
|
|
1165
|
+
Ae(P((d, p) => {
|
|
1166
|
+
(function S(E) {
|
|
1167
|
+
E ? d() : B(l ? v(!0) : B(a._readyPromise, () => P((O, $) => {
|
|
1168
|
+
Ce(s, { _chunkSteps: (x) => {
|
|
1169
|
+
u = B(Nr(a, x), void 0, Pe), O(!1);
|
|
1170
|
+
}, _closeSteps: () => O(!0), _errorSteps: $ });
|
|
1171
|
+
})), S, p);
|
|
1169
1172
|
})(!1);
|
|
1170
1173
|
}));
|
|
1171
1174
|
});
|
|
1172
1175
|
}
|
|
1173
|
-
class
|
|
1176
|
+
class Y {
|
|
1174
1177
|
constructor() {
|
|
1175
1178
|
throw new TypeError("Illegal constructor");
|
|
1176
1179
|
}
|
|
1177
1180
|
get desiredSize() {
|
|
1178
1181
|
if (!Ie(this)) throw Le("desiredSize");
|
|
1179
|
-
return
|
|
1182
|
+
return xt(this);
|
|
1180
1183
|
}
|
|
1181
1184
|
close() {
|
|
1182
1185
|
if (!Ie(this)) throw Le("close");
|
|
1183
|
-
if (!
|
|
1184
|
-
|
|
1186
|
+
if (!we(this)) throw new TypeError("The stream is not in a state that permits close");
|
|
1187
|
+
ye(this);
|
|
1185
1188
|
}
|
|
1186
1189
|
enqueue(t = void 0) {
|
|
1187
1190
|
if (!Ie(this)) throw Le("enqueue");
|
|
1188
|
-
if (!
|
|
1189
|
-
return
|
|
1191
|
+
if (!we(this)) throw new TypeError("The stream is not in a state that permits enqueue");
|
|
1192
|
+
return ve(this, t);
|
|
1190
1193
|
}
|
|
1191
1194
|
error(t = void 0) {
|
|
1192
1195
|
if (!Ie(this)) throw Le("error");
|
|
1193
|
-
|
|
1196
|
+
G(this, t);
|
|
1194
1197
|
}
|
|
1195
|
-
[
|
|
1196
|
-
|
|
1198
|
+
[Rt](t) {
|
|
1199
|
+
J(this);
|
|
1197
1200
|
const r = this._cancelAlgorithm(t);
|
|
1198
1201
|
return Ke(this), r;
|
|
1199
1202
|
}
|
|
1200
|
-
[
|
|
1203
|
+
[Tt](t) {
|
|
1201
1204
|
const r = this._controlledReadableStream;
|
|
1202
1205
|
if (this._queue.length > 0) {
|
|
1203
|
-
const o =
|
|
1206
|
+
const o = _t(this);
|
|
1204
1207
|
this._closeRequested && this._queue.length === 0 ? (Ke(this), ke(r)) : Oe(this), t._chunkSteps(o);
|
|
1205
|
-
} else
|
|
1208
|
+
} else ur(r, t), Oe(this);
|
|
1206
1209
|
}
|
|
1207
|
-
[
|
|
1210
|
+
[qt]() {
|
|
1208
1211
|
}
|
|
1209
1212
|
}
|
|
1210
1213
|
function Ie(e) {
|
|
1211
|
-
return !!
|
|
1214
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_controlledReadableStream") && e instanceof Y;
|
|
1212
1215
|
}
|
|
1213
1216
|
function Oe(e) {
|
|
1214
|
-
|
|
1217
|
+
Jr(e) && (e._pulling ? e._pullAgain = !0 : (e._pulling = !0, W(e._pullAlgorithm(), () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, Oe(e)), null), (t) => (G(e, t), null))));
|
|
1215
1218
|
}
|
|
1216
|
-
function
|
|
1219
|
+
function Jr(e) {
|
|
1217
1220
|
const t = e._controlledReadableStream;
|
|
1218
|
-
return !!
|
|
1221
|
+
return !!we(e) && !!e._started && (!!(H(t) && Ze(t) > 0) || xt(e) > 0);
|
|
1219
1222
|
}
|
|
1220
1223
|
function Ke(e) {
|
|
1221
1224
|
e._pullAlgorithm = void 0, e._cancelAlgorithm = void 0, e._strategySizeAlgorithm = void 0;
|
|
1222
1225
|
}
|
|
1223
|
-
function
|
|
1224
|
-
if (!
|
|
1226
|
+
function ye(e) {
|
|
1227
|
+
if (!we(e)) return;
|
|
1225
1228
|
const t = e._controlledReadableStream;
|
|
1226
1229
|
e._closeRequested = !0, e._queue.length === 0 && (Ke(e), ke(t));
|
|
1227
1230
|
}
|
|
1228
|
-
function
|
|
1229
|
-
if (!
|
|
1231
|
+
function ve(e, t) {
|
|
1232
|
+
if (!we(e)) return;
|
|
1230
1233
|
const r = e._controlledReadableStream;
|
|
1231
|
-
if (
|
|
1234
|
+
if (H(r) && Ze(r) > 0) At(r, t, !1);
|
|
1232
1235
|
else {
|
|
1233
1236
|
let o;
|
|
1234
1237
|
try {
|
|
1235
1238
|
o = e._strategySizeAlgorithm(t);
|
|
1236
1239
|
} catch (i) {
|
|
1237
|
-
throw
|
|
1240
|
+
throw G(e, i), i;
|
|
1238
1241
|
}
|
|
1239
1242
|
try {
|
|
1240
|
-
|
|
1243
|
+
jt(e, t, o);
|
|
1241
1244
|
} catch (i) {
|
|
1242
|
-
throw
|
|
1245
|
+
throw G(e, i), i;
|
|
1243
1246
|
}
|
|
1244
1247
|
}
|
|
1245
1248
|
Oe(e);
|
|
1246
1249
|
}
|
|
1247
|
-
function
|
|
1250
|
+
function G(e, t) {
|
|
1248
1251
|
const r = e._controlledReadableStream;
|
|
1249
|
-
r._state === "readable" && (
|
|
1252
|
+
r._state === "readable" && (J(e), Ke(e), Qr(r, t));
|
|
1250
1253
|
}
|
|
1251
|
-
function
|
|
1254
|
+
function xt(e) {
|
|
1252
1255
|
const t = e._controlledReadableStream._state;
|
|
1253
1256
|
return t === "errored" ? null : t === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
|
|
1254
1257
|
}
|
|
1255
|
-
function
|
|
1258
|
+
function we(e) {
|
|
1256
1259
|
const t = e._controlledReadableStream._state;
|
|
1257
1260
|
return !e._closeRequested && t === "readable";
|
|
1258
1261
|
}
|
|
1259
|
-
function
|
|
1260
|
-
t._controlledReadableStream = e, t._queue = void 0, t._queueTotalSize = void 0,
|
|
1262
|
+
function Kr(e, t, r, o, i, n, s) {
|
|
1263
|
+
t._controlledReadableStream = e, t._queue = void 0, t._queueTotalSize = void 0, J(t), t._started = !1, t._closeRequested = !1, t._pullAgain = !1, t._pulling = !1, t._strategySizeAlgorithm = s, t._strategyHWM = n, t._pullAlgorithm = o, t._cancelAlgorithm = i, e._readableStreamController = t, W(v(r()), () => (t._started = !0, Oe(t), null), (a) => (G(t, a), null));
|
|
1261
1264
|
}
|
|
1262
1265
|
function Le(e) {
|
|
1263
1266
|
return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`);
|
|
1264
1267
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return
|
|
1268
|
+
function ho(e) {
|
|
1269
|
+
return R(t = e) && t.getReader !== void 0 ? function(r) {
|
|
1267
1270
|
let o;
|
|
1268
1271
|
return o = Qe(Pe, function() {
|
|
1269
1272
|
let i;
|
|
@@ -1272,37 +1275,37 @@ function bo(e) {
|
|
|
1272
1275
|
} catch (n) {
|
|
1273
1276
|
return c(n);
|
|
1274
1277
|
}
|
|
1275
|
-
return
|
|
1276
|
-
if (!
|
|
1277
|
-
if (n.done)
|
|
1278
|
+
return ne(i, (n) => {
|
|
1279
|
+
if (!R(n)) throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");
|
|
1280
|
+
if (n.done) ye(o._readableStreamController);
|
|
1278
1281
|
else {
|
|
1279
1282
|
const s = n.value;
|
|
1280
|
-
|
|
1283
|
+
ve(o._readableStreamController, s);
|
|
1281
1284
|
}
|
|
1282
1285
|
});
|
|
1283
1286
|
}, function(i) {
|
|
1284
1287
|
try {
|
|
1285
|
-
return
|
|
1288
|
+
return v(r.cancel(i));
|
|
1286
1289
|
} catch (n) {
|
|
1287
1290
|
return c(n);
|
|
1288
1291
|
}
|
|
1289
1292
|
}, 0), o;
|
|
1290
1293
|
}(e.getReader()) : function(r) {
|
|
1291
1294
|
let o;
|
|
1292
|
-
const i =
|
|
1295
|
+
const i = hr(r, "async");
|
|
1293
1296
|
return o = Qe(Pe, function() {
|
|
1294
1297
|
let n;
|
|
1295
1298
|
try {
|
|
1296
|
-
n =
|
|
1299
|
+
n = _r(i);
|
|
1297
1300
|
} catch (s) {
|
|
1298
1301
|
return c(s);
|
|
1299
1302
|
}
|
|
1300
|
-
return
|
|
1301
|
-
if (!
|
|
1302
|
-
if (s.done)
|
|
1303
|
+
return ne(v(n), (s) => {
|
|
1304
|
+
if (!R(s)) throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");
|
|
1305
|
+
if (s.done) ye(o._readableStreamController);
|
|
1303
1306
|
else {
|
|
1304
1307
|
const a = s.value;
|
|
1305
|
-
|
|
1308
|
+
ve(o._readableStreamController, a);
|
|
1306
1309
|
}
|
|
1307
1310
|
});
|
|
1308
1311
|
}, function(n) {
|
|
@@ -1313,28 +1316,28 @@ function bo(e) {
|
|
|
1313
1316
|
} catch (l) {
|
|
1314
1317
|
return c(l);
|
|
1315
1318
|
}
|
|
1316
|
-
return a === void 0 ?
|
|
1317
|
-
if (!
|
|
1319
|
+
return a === void 0 ? v(void 0) : ne(ge(a, s, [n]), (l) => {
|
|
1320
|
+
if (!R(l)) throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object");
|
|
1318
1321
|
});
|
|
1319
1322
|
}, 0), o;
|
|
1320
1323
|
}(e);
|
|
1321
1324
|
var t;
|
|
1322
1325
|
}
|
|
1323
|
-
function ho(e, t, r) {
|
|
1324
|
-
return G(e, r), (o) => we(e, t, [o]);
|
|
1325
|
-
}
|
|
1326
1326
|
function _o(e, t, r) {
|
|
1327
|
-
return
|
|
1327
|
+
return X(e, r), (o) => ge(e, t, [o]);
|
|
1328
1328
|
}
|
|
1329
1329
|
function po(e, t, r) {
|
|
1330
|
-
return
|
|
1330
|
+
return X(e, r), (o) => ge(e, t, [o]);
|
|
1331
|
+
}
|
|
1332
|
+
function mo(e, t, r) {
|
|
1333
|
+
return X(e, r), (o) => me(e, t, [o]);
|
|
1331
1334
|
}
|
|
1332
|
-
function
|
|
1335
|
+
function yo(e, t) {
|
|
1333
1336
|
if ((e = `${e}`) != "bytes") throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);
|
|
1334
1337
|
return e;
|
|
1335
1338
|
}
|
|
1336
|
-
function
|
|
1337
|
-
|
|
1339
|
+
function Zt(e, t) {
|
|
1340
|
+
V(e, t);
|
|
1338
1341
|
const r = e?.preventAbort, o = e?.preventCancel, i = e?.preventClose, n = e?.signal;
|
|
1339
1342
|
return n !== void 0 && function(s, a) {
|
|
1340
1343
|
if (!function(l) {
|
|
@@ -1347,319 +1350,323 @@ function Qt(e, t) {
|
|
|
1347
1350
|
}(s)) throw new TypeError(`${a} is not an AbortSignal.`);
|
|
1348
1351
|
}(n, `${t} has member 'signal' that`), { preventAbort: !!r, preventCancel: !!o, preventClose: !!i, signal: n };
|
|
1349
1352
|
}
|
|
1350
|
-
Object.defineProperties(
|
|
1353
|
+
Object.defineProperties(Y.prototype, { close: { enumerable: !0 }, enqueue: { enumerable: !0 }, error: { enumerable: !0 }, desiredSize: { enumerable: !0 } }), m(Y.prototype.close, "close"), m(Y.prototype.enqueue, "enqueue"), m(Y.prototype.error, "error"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(Y.prototype, Symbol.toStringTag, { value: "ReadableStreamDefaultController", configurable: !0 });
|
|
1351
1354
|
class C {
|
|
1352
1355
|
constructor(t = {}, r = {}) {
|
|
1353
|
-
t === void 0 ? t = null :
|
|
1354
|
-
const o =
|
|
1355
|
-
|
|
1356
|
-
const a = n, l = a?.autoAllocateChunkSize, u = a?.cancel,
|
|
1357
|
-
return { autoAllocateChunkSize: l === void 0 ? void 0 :
|
|
1356
|
+
t === void 0 ? t = null : sr(t, "First parameter");
|
|
1357
|
+
const o = Fr(r, "Second parameter"), i = function(n, s) {
|
|
1358
|
+
V(n, s);
|
|
1359
|
+
const a = n, l = a?.autoAllocateChunkSize, u = a?.cancel, h = a?.pull, f = a?.start, b = a?.type;
|
|
1360
|
+
return { autoAllocateChunkSize: l === void 0 ? void 0 : Ct(l, `${s} has member 'autoAllocateChunkSize' that`), cancel: u === void 0 ? void 0 : _o(u, a, `${s} has member 'cancel' that`), pull: h === void 0 ? void 0 : po(h, a, `${s} has member 'pull' that`), start: f === void 0 ? void 0 : mo(f, a, `${s} has member 'start' that`), type: b === void 0 ? void 0 : yo(b, `${s} has member 'type' that`) };
|
|
1358
1361
|
}(t, "First parameter");
|
|
1359
|
-
if (
|
|
1362
|
+
if (Dt(this), i.type === "bytes") {
|
|
1360
1363
|
if (o.size !== void 0) throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
1361
1364
|
(function(n, s, a) {
|
|
1362
|
-
const l = Object.create(
|
|
1363
|
-
let u,
|
|
1365
|
+
const l = Object.create(N.prototype);
|
|
1366
|
+
let u, h, f;
|
|
1364
1367
|
u = s.start !== void 0 ? () => s.start(l) : () => {
|
|
1365
|
-
},
|
|
1366
|
-
const
|
|
1367
|
-
if (
|
|
1368
|
-
|
|
1369
|
-
})(this, i,
|
|
1368
|
+
}, h = s.pull !== void 0 ? () => s.pull(l) : () => v(void 0), f = s.cancel !== void 0 ? (w) => s.cancel(w) : () => v(void 0);
|
|
1369
|
+
const b = s.autoAllocateChunkSize;
|
|
1370
|
+
if (b === 0) throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
1371
|
+
jr(n, l, u, h, f, a, b);
|
|
1372
|
+
})(this, i, yt(o, 0));
|
|
1370
1373
|
} else {
|
|
1371
|
-
const n =
|
|
1374
|
+
const n = Br(o);
|
|
1372
1375
|
(function(s, a, l, u) {
|
|
1373
|
-
const
|
|
1374
|
-
let
|
|
1375
|
-
|
|
1376
|
-
},
|
|
1377
|
-
})(this, i,
|
|
1376
|
+
const h = Object.create(Y.prototype);
|
|
1377
|
+
let f, b, w;
|
|
1378
|
+
f = a.start !== void 0 ? () => a.start(h) : () => {
|
|
1379
|
+
}, b = a.pull !== void 0 ? () => a.pull(h) : () => v(void 0), w = a.cancel !== void 0 ? (T) => a.cancel(T) : () => v(void 0), Kr(s, h, f, b, w, l, u);
|
|
1380
|
+
})(this, i, yt(o, 1), n);
|
|
1378
1381
|
}
|
|
1379
1382
|
}
|
|
1380
1383
|
get locked() {
|
|
1381
|
-
if (!
|
|
1382
|
-
return
|
|
1384
|
+
if (!D(this)) throw Z("locked");
|
|
1385
|
+
return H(this);
|
|
1383
1386
|
}
|
|
1384
1387
|
cancel(t = void 0) {
|
|
1385
|
-
return
|
|
1388
|
+
return D(this) ? H(this) ? c(new TypeError("Cannot cancel a stream that already has a reader")) : k(this, t) : c(Z("cancel"));
|
|
1386
1389
|
}
|
|
1387
1390
|
getReader(t = void 0) {
|
|
1388
|
-
if (!
|
|
1391
|
+
if (!D(this)) throw Z("getReader");
|
|
1389
1392
|
return function(r, o) {
|
|
1390
|
-
|
|
1393
|
+
V(r, o);
|
|
1391
1394
|
const i = r?.mode;
|
|
1392
|
-
return { mode: i === void 0 ? void 0 :
|
|
1393
|
-
}(t, "First parameter").mode === void 0 ?
|
|
1395
|
+
return { mode: i === void 0 ? void 0 : io(i, `${o} has member 'mode' that`) };
|
|
1396
|
+
}(t, "First parameter").mode === void 0 ? ce(this) : Xt(this);
|
|
1394
1397
|
}
|
|
1395
1398
|
pipeThrough(t, r = {}) {
|
|
1396
|
-
if (!
|
|
1397
|
-
|
|
1399
|
+
if (!D(this)) throw Z("pipeThrough");
|
|
1400
|
+
ae(t, 1, "pipeThrough");
|
|
1398
1401
|
const o = function(n, s) {
|
|
1399
|
-
|
|
1402
|
+
V(n, s);
|
|
1400
1403
|
const a = n?.readable;
|
|
1401
|
-
|
|
1404
|
+
Nt(a, "readable", "ReadableWritablePair"), Ot(a, `${s} has member 'readable' that`);
|
|
1402
1405
|
const l = n?.writable;
|
|
1403
|
-
return
|
|
1404
|
-
}(t, "First parameter"), i =
|
|
1405
|
-
if (
|
|
1406
|
-
if (
|
|
1407
|
-
return Ae(
|
|
1406
|
+
return Nt(l, "writable", "ReadableWritablePair"), Ir(l, `${s} has member 'writable' that`), { readable: a, writable: l };
|
|
1407
|
+
}(t, "First parameter"), i = Zt(r, "Second parameter");
|
|
1408
|
+
if (H(this)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
1409
|
+
if (pe(o.writable)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
1410
|
+
return Ae(Qt(this, o.writable, i.preventClose, i.preventAbort, i.preventCancel, i.signal)), o.readable;
|
|
1408
1411
|
}
|
|
1409
1412
|
pipeTo(t, r = {}) {
|
|
1410
|
-
if (!
|
|
1413
|
+
if (!D(this)) return c(Z("pipeTo"));
|
|
1411
1414
|
if (t === void 0) return c("Parameter 1 is required in 'pipeTo'.");
|
|
1412
|
-
if (!
|
|
1415
|
+
if (!he(t)) return c(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
|
|
1413
1416
|
let o;
|
|
1414
1417
|
try {
|
|
1415
|
-
o =
|
|
1418
|
+
o = Zt(r, "Second parameter");
|
|
1416
1419
|
} catch (i) {
|
|
1417
1420
|
return c(i);
|
|
1418
1421
|
}
|
|
1419
|
-
return
|
|
1422
|
+
return H(this) ? c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : pe(t) ? c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : Qt(this, t, o.preventClose, o.preventAbort, o.preventCancel, o.signal);
|
|
1420
1423
|
}
|
|
1421
1424
|
tee() {
|
|
1422
|
-
if (!
|
|
1423
|
-
return Se(
|
|
1424
|
-
let
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1425
|
+
if (!D(this)) throw Z("tee");
|
|
1426
|
+
return Se(te((t = this)._readableStreamController) ? function(r) {
|
|
1427
|
+
let o, i, n, s, a, l = ce(r), u = !1, h = !1, f = !1, b = !1, w = !1;
|
|
1428
|
+
const T = P((d) => {
|
|
1429
|
+
a = d;
|
|
1427
1430
|
});
|
|
1428
|
-
function
|
|
1429
|
-
|
|
1431
|
+
function q(d) {
|
|
1432
|
+
bt(d._closedPromise, (p) => (d !== l || (A(n._readableStreamController, p), A(s._readableStreamController, p), b && w || a(void 0)), null));
|
|
1430
1433
|
}
|
|
1431
|
-
function
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
const
|
|
1436
|
-
let
|
|
1437
|
-
if (!
|
|
1438
|
-
|
|
1439
|
-
} catch (
|
|
1440
|
-
return
|
|
1434
|
+
function y() {
|
|
1435
|
+
oe(l) && (L(l), l = ce(r), q(l)), Ce(l, { _chunkSteps: (d) => {
|
|
1436
|
+
ie(() => {
|
|
1437
|
+
h = !1, f = !1;
|
|
1438
|
+
const p = d;
|
|
1439
|
+
let S = d;
|
|
1440
|
+
if (!b && !w) try {
|
|
1441
|
+
S = Gt(d);
|
|
1442
|
+
} catch (E) {
|
|
1443
|
+
return A(n._readableStreamController, E), A(s._readableStreamController, E), void a(k(r, E));
|
|
1441
1444
|
}
|
|
1442
|
-
|
|
1445
|
+
b || Ne(n._readableStreamController, p), w || Ne(s._readableStreamController, S), u = !1, h ? g() : f && z();
|
|
1443
1446
|
});
|
|
1444
1447
|
}, _closeSteps: () => {
|
|
1445
|
-
|
|
1448
|
+
u = !1, b || qe(n._readableStreamController), w || qe(s._readableStreamController), n._readableStreamController._pendingPullIntos.length > 0 && Ye(n._readableStreamController, 0), s._readableStreamController._pendingPullIntos.length > 0 && Ye(s._readableStreamController, 0), b && w || a(void 0);
|
|
1446
1449
|
}, _errorSteps: () => {
|
|
1447
|
-
|
|
1450
|
+
u = !1;
|
|
1448
1451
|
} });
|
|
1449
1452
|
}
|
|
1450
|
-
function
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
const
|
|
1457
|
-
if (
|
|
1453
|
+
function _(d, p) {
|
|
1454
|
+
U(l) && (L(l), l = Xt(r), q(l));
|
|
1455
|
+
const S = p ? s : n, E = p ? n : s;
|
|
1456
|
+
Wr(l, d, 1, { _chunkSteps: (O) => {
|
|
1457
|
+
ie(() => {
|
|
1458
|
+
h = !1, f = !1;
|
|
1459
|
+
const $ = p ? w : b;
|
|
1460
|
+
if (p ? b : w) $ || Ve(S._readableStreamController, O);
|
|
1458
1461
|
else {
|
|
1459
|
-
let
|
|
1462
|
+
let x;
|
|
1460
1463
|
try {
|
|
1461
|
-
|
|
1462
|
-
} catch (
|
|
1463
|
-
return
|
|
1464
|
+
x = Gt(O);
|
|
1465
|
+
} catch (ot) {
|
|
1466
|
+
return A(S._readableStreamController, ot), A(E._readableStreamController, ot), void a(k(r, ot));
|
|
1464
1467
|
}
|
|
1465
|
-
|
|
1468
|
+
$ || Ve(S._readableStreamController, O), Ne(E._readableStreamController, x);
|
|
1466
1469
|
}
|
|
1467
|
-
|
|
1470
|
+
u = !1, h ? g() : f && z();
|
|
1468
1471
|
});
|
|
1469
1472
|
}, _closeSteps: (O) => {
|
|
1470
|
-
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1473
|
+
u = !1;
|
|
1474
|
+
const $ = p ? w : b, x = p ? b : w;
|
|
1475
|
+
$ || qe(S._readableStreamController), x || qe(E._readableStreamController), O !== void 0 && ($ || Ve(S._readableStreamController, O), !x && E._readableStreamController._pendingPullIntos.length > 0 && Ye(E._readableStreamController, 0)), $ && x || a(void 0);
|
|
1473
1476
|
}, _errorSteps: () => {
|
|
1474
|
-
|
|
1477
|
+
u = !1;
|
|
1475
1478
|
} });
|
|
1476
1479
|
}
|
|
1477
|
-
function
|
|
1478
|
-
if (
|
|
1479
|
-
|
|
1480
|
-
const
|
|
1481
|
-
return
|
|
1480
|
+
function g() {
|
|
1481
|
+
if (u) return h = !0, v(void 0);
|
|
1482
|
+
u = !0;
|
|
1483
|
+
const d = mt(n._readableStreamController);
|
|
1484
|
+
return d === null ? y() : _(d._view, !1), v(void 0);
|
|
1482
1485
|
}
|
|
1483
|
-
function
|
|
1484
|
-
if (
|
|
1485
|
-
|
|
1486
|
-
const
|
|
1487
|
-
return
|
|
1486
|
+
function z() {
|
|
1487
|
+
if (u) return f = !0, v(void 0);
|
|
1488
|
+
u = !0;
|
|
1489
|
+
const d = mt(s._readableStreamController);
|
|
1490
|
+
return d === null ? y() : _(d._view, !0), v(void 0);
|
|
1488
1491
|
}
|
|
1489
1492
|
function I() {
|
|
1490
1493
|
}
|
|
1491
|
-
return
|
|
1492
|
-
if (
|
|
1493
|
-
const
|
|
1494
|
-
|
|
1494
|
+
return n = er(I, g, function(d) {
|
|
1495
|
+
if (b = !0, o = d, w) {
|
|
1496
|
+
const p = Se([o, i]), S = k(r, p);
|
|
1497
|
+
a(S);
|
|
1495
1498
|
}
|
|
1496
|
-
return
|
|
1497
|
-
}),
|
|
1498
|
-
if (
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1499
|
+
return T;
|
|
1500
|
+
}), s = er(I, z, function(d) {
|
|
1501
|
+
if (w = !0, i = d, b) {
|
|
1502
|
+
const p = Se([o, i]), S = k(r, p);
|
|
1503
|
+
a(S);
|
|
1501
1504
|
}
|
|
1502
|
-
return
|
|
1503
|
-
}),
|
|
1504
|
-
}(
|
|
1505
|
-
const
|
|
1506
|
-
let
|
|
1507
|
-
const
|
|
1508
|
-
|
|
1505
|
+
return T;
|
|
1506
|
+
}), q(l), [n, s];
|
|
1507
|
+
}(t) : function(r) {
|
|
1508
|
+
const o = ce(r);
|
|
1509
|
+
let i, n, s, a, l, u = !1, h = !1, f = !1, b = !1;
|
|
1510
|
+
const w = P((y) => {
|
|
1511
|
+
l = y;
|
|
1509
1512
|
});
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1513
|
+
function T() {
|
|
1514
|
+
return u ? (h = !0, v(void 0)) : (u = !0, Ce(o, { _chunkSteps: (y) => {
|
|
1515
|
+
ie(() => {
|
|
1516
|
+
h = !1;
|
|
1517
|
+
const _ = y, g = y;
|
|
1518
|
+
f || ve(s._readableStreamController, _), b || ve(a._readableStreamController, g), u = !1, h && T();
|
|
1516
1519
|
});
|
|
1517
1520
|
}, _closeSteps: () => {
|
|
1518
|
-
|
|
1521
|
+
u = !1, f || ye(s._readableStreamController), b || ye(a._readableStreamController), f && b || l(void 0);
|
|
1519
1522
|
}, _errorSteps: () => {
|
|
1520
|
-
|
|
1521
|
-
} }),
|
|
1523
|
+
u = !1;
|
|
1524
|
+
} }), v(void 0));
|
|
1522
1525
|
}
|
|
1523
|
-
function
|
|
1526
|
+
function q() {
|
|
1524
1527
|
}
|
|
1525
|
-
return
|
|
1526
|
-
if (
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1528
|
+
return s = Qe(q, T, function(y) {
|
|
1529
|
+
if (f = !0, i = y, b) {
|
|
1530
|
+
const _ = Se([i, n]), g = k(r, _);
|
|
1531
|
+
l(g);
|
|
1529
1532
|
}
|
|
1530
|
-
return
|
|
1531
|
-
}),
|
|
1532
|
-
if (
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1533
|
+
return w;
|
|
1534
|
+
}), a = Qe(q, T, function(y) {
|
|
1535
|
+
if (b = !0, n = y, f) {
|
|
1536
|
+
const _ = Se([i, n]), g = k(r, _);
|
|
1537
|
+
l(g);
|
|
1535
1538
|
}
|
|
1536
|
-
return
|
|
1537
|
-
}),
|
|
1538
|
-
}(
|
|
1539
|
+
return w;
|
|
1540
|
+
}), bt(o._closedPromise, (y) => (G(s._readableStreamController, y), G(a._readableStreamController, y), f && b || l(void 0), null)), [s, a];
|
|
1541
|
+
}(t));
|
|
1542
|
+
var t;
|
|
1539
1543
|
}
|
|
1540
1544
|
values(t = void 0) {
|
|
1541
|
-
if (!
|
|
1545
|
+
if (!D(this)) throw Z("values");
|
|
1542
1546
|
return function(o, i) {
|
|
1543
|
-
const n =
|
|
1547
|
+
const n = ce(o), s = new pr(n, i), a = Object.create(mr);
|
|
1544
1548
|
return a._asyncIteratorImpl = s, a;
|
|
1545
|
-
}(this, (r = t,
|
|
1549
|
+
}(this, (r = t, V(r, "First parameter"), { preventCancel: !!r?.preventCancel }).preventCancel);
|
|
1546
1550
|
var r;
|
|
1547
1551
|
}
|
|
1548
1552
|
[je](t) {
|
|
1549
1553
|
return this.values(t);
|
|
1550
1554
|
}
|
|
1551
1555
|
static from(t) {
|
|
1552
|
-
return
|
|
1556
|
+
return ho(t);
|
|
1553
1557
|
}
|
|
1554
1558
|
}
|
|
1555
1559
|
function Qe(e, t, r, o = 1, i = () => 1) {
|
|
1556
1560
|
const n = Object.create(C.prototype);
|
|
1557
|
-
return
|
|
1561
|
+
return Dt(n), Kr(n, Object.create(Y.prototype), e, t, r, o, i), n;
|
|
1558
1562
|
}
|
|
1559
|
-
function
|
|
1563
|
+
function er(e, t, r) {
|
|
1560
1564
|
const o = Object.create(C.prototype);
|
|
1561
|
-
return
|
|
1565
|
+
return Dt(o), jr(o, Object.create(N.prototype), e, t, r, 0, void 0), o;
|
|
1562
1566
|
}
|
|
1563
|
-
function
|
|
1567
|
+
function Dt(e) {
|
|
1564
1568
|
e._state = "readable", e._reader = void 0, e._storedError = void 0, e._disturbed = !1;
|
|
1565
1569
|
}
|
|
1566
|
-
function
|
|
1567
|
-
return !!
|
|
1570
|
+
function D(e) {
|
|
1571
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_readableStreamController") && e instanceof C;
|
|
1568
1572
|
}
|
|
1569
|
-
function
|
|
1573
|
+
function H(e) {
|
|
1570
1574
|
return e._reader !== void 0;
|
|
1571
1575
|
}
|
|
1572
|
-
function
|
|
1573
|
-
if (e._disturbed = !0, e._state === "closed") return
|
|
1576
|
+
function k(e, t) {
|
|
1577
|
+
if (e._disturbed = !0, e._state === "closed") return v(void 0);
|
|
1574
1578
|
if (e._state === "errored") return c(e._storedError);
|
|
1575
1579
|
ke(e);
|
|
1576
1580
|
const r = e._reader;
|
|
1577
|
-
if (r !== void 0 &&
|
|
1581
|
+
if (r !== void 0 && oe(r)) {
|
|
1578
1582
|
const o = r._readIntoRequests;
|
|
1579
|
-
r._readIntoRequests = new
|
|
1583
|
+
r._readIntoRequests = new j(), o.forEach((i) => {
|
|
1580
1584
|
i._closeSteps(void 0);
|
|
1581
1585
|
});
|
|
1582
1586
|
}
|
|
1583
|
-
return
|
|
1587
|
+
return ne(e._readableStreamController[Rt](t), Pe);
|
|
1584
1588
|
}
|
|
1585
1589
|
function ke(e) {
|
|
1586
1590
|
e._state = "closed";
|
|
1587
1591
|
const t = e._reader;
|
|
1588
|
-
if (t !== void 0 && (
|
|
1592
|
+
if (t !== void 0 && (ar(t), U(t))) {
|
|
1589
1593
|
const r = t._readRequests;
|
|
1590
|
-
t._readRequests = new
|
|
1594
|
+
t._readRequests = new j(), r.forEach((o) => {
|
|
1591
1595
|
o._closeSteps();
|
|
1592
1596
|
});
|
|
1593
1597
|
}
|
|
1594
1598
|
}
|
|
1595
|
-
function
|
|
1599
|
+
function Qr(e, t) {
|
|
1596
1600
|
e._state = "errored", e._storedError = t;
|
|
1597
1601
|
const r = e._reader;
|
|
1598
|
-
r !== void 0 && (
|
|
1602
|
+
r !== void 0 && (Pt(r, t), U(r) ? dr(r, t) : zr(r, t));
|
|
1599
1603
|
}
|
|
1600
|
-
function
|
|
1604
|
+
function Z(e) {
|
|
1601
1605
|
return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`);
|
|
1602
1606
|
}
|
|
1603
|
-
function
|
|
1604
|
-
var r
|
|
1605
|
-
(r = e._transformStreamController)._transformAlgorithm = void 0, r._flushAlgorithm = void 0, r._cancelAlgorithm = void 0,
|
|
1607
|
+
function ft(e, t) {
|
|
1608
|
+
var r;
|
|
1609
|
+
(r = e._transformStreamController)._transformAlgorithm = void 0, r._flushAlgorithm = void 0, r._cancelAlgorithm = void 0, wt(e._writable._writableStreamController, t), function(o) {
|
|
1610
|
+
o._backpressure && Zr(o, !1);
|
|
1611
|
+
}(e);
|
|
1606
1612
|
}
|
|
1607
|
-
function
|
|
1613
|
+
function Zr(e, t) {
|
|
1608
1614
|
e._backpressureChangePromise !== void 0 && e._backpressureChangePromise_resolve(), e._backpressureChangePromise = P((r) => {
|
|
1609
1615
|
e._backpressureChangePromise_resolve = r;
|
|
1610
1616
|
}), e._backpressure = t;
|
|
1611
1617
|
}
|
|
1612
|
-
Object.defineProperties(C, { from: { enumerable: !0 } }), Object.defineProperties(C.prototype, { cancel: { enumerable: !0 }, getReader: { enumerable: !0 }, pipeThrough: { enumerable: !0 }, pipeTo: { enumerable: !0 }, tee: { enumerable: !0 }, values: { enumerable: !0 }, locked: { enumerable: !0 } }),
|
|
1613
|
-
class
|
|
1618
|
+
Object.defineProperties(C, { from: { enumerable: !0 } }), Object.defineProperties(C.prototype, { cancel: { enumerable: !0 }, getReader: { enumerable: !0 }, pipeThrough: { enumerable: !0 }, pipeTo: { enumerable: !0 }, tee: { enumerable: !0 }, values: { enumerable: !0 }, locked: { enumerable: !0 } }), m(C.from, "from"), m(C.prototype.cancel, "cancel"), m(C.prototype.getReader, "getReader"), m(C.prototype.pipeThrough, "pipeThrough"), m(C.prototype.pipeTo, "pipeTo"), m(C.prototype.tee, "tee"), m(C.prototype.values, "values"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(C.prototype, Symbol.toStringTag, { value: "ReadableStream", configurable: !0 }), Object.defineProperty(C.prototype, je, { value: C.prototype.values, writable: !0, configurable: !0 }), m((e) => e.byteLength, "size"), m(() => 1, "size");
|
|
1619
|
+
class fe {
|
|
1614
1620
|
constructor() {
|
|
1615
1621
|
throw new TypeError("Illegal constructor");
|
|
1616
1622
|
}
|
|
1617
1623
|
get desiredSize() {
|
|
1618
1624
|
if (!$e(this)) throw xe("desiredSize");
|
|
1619
|
-
return
|
|
1625
|
+
return xt(this._controlledTransformStream._readable._readableStreamController);
|
|
1620
1626
|
}
|
|
1621
1627
|
enqueue(t = void 0) {
|
|
1622
1628
|
if (!$e(this)) throw xe("enqueue");
|
|
1623
1629
|
(function(r, o) {
|
|
1624
1630
|
const i = r._controlledTransformStream, n = i._readable._readableStreamController;
|
|
1625
|
-
if (!
|
|
1631
|
+
if (!we(n)) throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
1626
1632
|
try {
|
|
1627
|
-
|
|
1628
|
-
} catch (
|
|
1629
|
-
throw
|
|
1633
|
+
ve(n, o);
|
|
1634
|
+
} catch (a) {
|
|
1635
|
+
throw ft(i, a), i._readable._storedError;
|
|
1630
1636
|
}
|
|
1631
|
-
|
|
1637
|
+
var s;
|
|
1638
|
+
!Jr(s = n) !== i._backpressure && Zr(i, !0);
|
|
1632
1639
|
})(this, t);
|
|
1633
1640
|
}
|
|
1634
1641
|
error(t = void 0) {
|
|
1635
1642
|
if (!$e(this)) throw xe("error");
|
|
1636
|
-
var r, o;
|
|
1637
|
-
|
|
1643
|
+
var r, o, i;
|
|
1644
|
+
r = t, o = this._controlledTransformStream, i = r, G(o._readable._readableStreamController, i), ft(o, i);
|
|
1638
1645
|
}
|
|
1639
1646
|
terminate() {
|
|
1640
1647
|
if (!$e(this)) throw xe("terminate");
|
|
1641
1648
|
(function(t) {
|
|
1642
1649
|
const r = t._controlledTransformStream;
|
|
1643
|
-
|
|
1650
|
+
ye(r._readable._readableStreamController), ft(r, new TypeError("TransformStream terminated"));
|
|
1644
1651
|
})(this);
|
|
1645
1652
|
}
|
|
1646
1653
|
}
|
|
1647
1654
|
function $e(e) {
|
|
1648
|
-
return !!
|
|
1655
|
+
return !!R(e) && !!Object.prototype.hasOwnProperty.call(e, "_controlledTransformStream") && e instanceof fe;
|
|
1649
1656
|
}
|
|
1650
1657
|
function xe(e) {
|
|
1651
1658
|
return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`);
|
|
1652
1659
|
}
|
|
1653
|
-
Object.defineProperties(
|
|
1660
|
+
Object.defineProperties(fe.prototype, { enqueue: { enumerable: !0 }, error: { enumerable: !0 }, terminate: { enumerable: !0 }, desiredSize: { enumerable: !0 } }), m(fe.prototype.enqueue, "enqueue"), m(fe.prototype.error, "error"), m(fe.prototype.terminate, "terminate"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(fe.prototype, Symbol.toStringTag, { value: "TransformStreamDefaultController", configurable: !0 });
|
|
1654
1661
|
export {
|
|
1655
|
-
|
|
1662
|
+
N as ReadableByteStreamController,
|
|
1656
1663
|
C as ReadableStream,
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1664
|
+
re as ReadableStreamBYOBReader,
|
|
1665
|
+
be as ReadableStreamBYOBRequest,
|
|
1666
|
+
Y as ReadableStreamDefaultController,
|
|
1667
|
+
ee as ReadableStreamDefaultReader,
|
|
1668
|
+
fe as TransformStreamDefaultController,
|
|
1669
|
+
de as WritableStream,
|
|
1663
1670
|
Xe as WritableStreamDefaultController,
|
|
1664
|
-
|
|
1671
|
+
M as WritableStreamDefaultWriter
|
|
1665
1672
|
};
|