@sheetxl/studio-mui 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -11
- package/README.md +24 -24
- package/browser/cjs/1YEg8ptbpW_zo0_c.cjs +12 -0
- package/browser/cjs/{CwsoT9PB20BPWI94.cjs → 3mnCV1wkKu4YCs7n.cjs} +1 -1
- package/browser/cjs/{DYpWMegNKhcIz5Xx.cjs → B1CCk3o0Nv4mJ1Ff.cjs} +2 -2
- package/browser/cjs/{CE5a4FdaHLhTxjMI.cjs → B1WSHW4lt2L5wJO3.cjs} +3 -3
- package/browser/cjs/{CADYkszzYeb1okev.cjs → B6QgPFUbEVsL1O-L.cjs} +1 -12
- package/browser/cjs/B79CHYVWaVXMRmoE.cjs +6 -0
- package/browser/cjs/{Co4jRh5Lu0sSmXGC.cjs → BEt_uFICH24FzpOe.cjs} +2 -2
- package/browser/cjs/BEzNZIQy5IlW0iAl.cjs +238 -0
- package/browser/cjs/{BJPmztbd5VBK5mm9.cjs → BHq8j-aNWkuYkURM.cjs} +1 -1
- package/browser/cjs/{BfIfeQXC56VMrPqG.cjs → BKo9DTgY_3d6nE0E.cjs} +1 -1
- package/browser/cjs/{DxscJXvrkziYQcFs.cjs → BNA6r4S5nm_CzUm6.cjs} +1 -1
- package/browser/cjs/BNpz92-BEgkxWvh6.cjs +11 -0
- package/browser/cjs/{BZDyAbB3lej5Jex6.cjs → BQeCI5I748X8pDto.cjs} +1 -1
- package/browser/cjs/BR4KYl8frdYrZXhN.cjs +13 -0
- package/browser/cjs/{DoP_dQD568y-PdQR.cjs → BSnfy-ivJTWdlK3A.cjs} +2 -2
- package/browser/cjs/{iloxo818N9ISo1kb.cjs → BVB95JnDB-sUQttP.cjs} +1 -1
- package/browser/cjs/{DeDq_kDsb_3oXYP3.cjs → BbzI8ABw0DHCij-A.cjs} +1 -1
- package/browser/cjs/{DJPvDosur15jRed6.cjs → BcQkD2UP3Iqsf8Fi.cjs} +2 -46
- package/browser/cjs/{u8HVgr27hT-2GVfY.cjs → BdV3cCQa36ZCkL4H.cjs} +1 -1
- package/browser/cjs/{C8QBQtkkjvMqMVxZ.cjs → Bh2zzNItZd-6FD_Z.cjs} +2 -2
- package/browser/cjs/{4WTvahGneDLqs8nK.cjs → By_cIz-TMire5bw7.cjs} +9 -24
- package/browser/cjs/C-_njVetl9K8CJri.cjs +15 -0
- package/browser/cjs/{s023hbvdZPtE0ZgU.cjs → C5yXi0ZLdk8cegEV.cjs} +4 -4
- package/browser/cjs/{CHkQq93Benc1vCpr.cjs → CD9-AAL5QOuUXpGa.cjs} +2 -2
- package/browser/cjs/{DbOphBQCPCGOjcMB.cjs → CFyRrZrtTj0szEBJ.cjs} +20 -25
- package/browser/cjs/{DyBAl2cYUIbkoWsa.cjs → CFz-gPnOVecGhXAQ.cjs} +1 -1
- package/browser/cjs/{D57lYhefqT866UE1.cjs → CIDji1QOkywtvqEU.cjs} +1 -1
- package/browser/cjs/{fSTkOlUIbVZ0w-Q2.cjs → CMZ7PzY_xBaB01Wa.cjs} +1 -1
- package/browser/cjs/{C_Wcg7JI6v6vkBD-.cjs → CP8909XpM31di_I4.cjs} +1 -1
- package/browser/cjs/CS3l6TIh0gU3sA2R.cjs +6 -0
- package/browser/cjs/{DbtwYi7JAHoFLILb.cjs → Cb7Ywgxnsg32GtZC.cjs} +4 -19
- package/browser/cjs/{BQLQEJgX-sM2Sdn6.cjs → CdlodVmE_U6kq13A.cjs} +2 -2
- package/browser/cjs/{Dj7OrKe2zahSy4rW.cjs → ChDhTJyaQVGQ_AAW.cjs} +2 -7
- package/browser/cjs/{30P2pzSg1uZ4m4Zw.cjs → CoAUFW3rE-ZU04sj.cjs} +1 -1
- package/browser/cjs/{CFRl9gT7qj3ENMiA.cjs → CoGNjOqAsq3v4dNU.cjs} +1 -1
- package/browser/cjs/{DqYbR5LZ21mHAb4i.cjs → CqwNicmb3Ve75UKg.cjs} +1 -1
- package/browser/cjs/CsjmqYMv0yUjJuEa.cjs +7 -0
- package/browser/cjs/{BBBGyVg88HFyp_Ew.cjs → CthhJsNSsNw003nz.cjs} +1 -1
- package/browser/cjs/{DvBmxW9WFXe5nTOj.cjs → CtuayTMsg15Ek7N2.cjs} +1 -1
- package/browser/cjs/{CEyf06HL4OpZLe_9.cjs → D0KbXmifGL9COnTn.cjs} +2 -2
- package/browser/cjs/{_GQMxgpoD4XQiStU.cjs → D1z2rxTd4juxWblf.cjs} +1 -1
- package/browser/cjs/D4zF1Hhc3mBlNNoX.cjs +6 -0
- package/browser/cjs/{vavqGfGZgq5i7n4B.cjs → D8eS_vce5B9menV5.cjs} +2 -2
- package/browser/cjs/{B4ne8Qu3ISmBz2I_.cjs → DVU4idIDTTz9Pu5P.cjs} +1 -1
- package/browser/cjs/DW9WwmeG2vVMGbYU.cjs +15 -0
- package/browser/cjs/{D0u9_xtziw7PDcl8.cjs → DrJyN_0T5kyWuuIh.cjs} +1 -1
- package/browser/cjs/{CIZNaSq0_vaZNZu9.cjs → DxACtr3WZnBFuXpu.cjs} +2 -2
- package/browser/cjs/{yNZPaSNiBbCzS-ZR.cjs → K4bhbGLflu3pYFHS.cjs} +3 -8
- package/browser/cjs/{tXdOaeSBJX_Dwtfs.cjs → PdwwTxM_DHCgQrxv.cjs} +2 -2
- package/browser/cjs/Q-_8LHrKWcpj3r7F.cjs +6 -0
- package/browser/cjs/{DcE7grNkk9CxPlz7.cjs → RrCz-1Q4Q9suB7j_.cjs} +1 -1
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/{UZJaTSqgj_1vwBPD.cjs → kB-8OyiedI6iKdlv.cjs} +1 -1
- package/browser/cjs/{DHmGfW6PcfPhM8oL.cjs → nKP8-E-UOOscXlg2.cjs} +1 -1
- package/browser/cjs/{DrfhSPGoBxXa2zrq.cjs → nMYwRU0M-HXpWQ6C.cjs} +1 -1
- package/browser/cjs/q0y6NDefblRQrS_O.cjs +6 -0
- package/browser/cjs/{WvFOw7IRc6nN3Ktw.cjs → qvN5BhYwdxsmB52p.cjs} +1 -1
- package/browser/cjs/{Dkjsd1qc-X40cksg.cjs → tavAzhljteQQ_ct2.cjs} +1 -1
- package/browser/esm/{B9OOPVMmJt7VFL6P.mjs → 0lX_9VGN9S6inxKd.mjs} +1 -13
- package/browser/esm/{Cluz9cocEiEkoBqC.mjs → 18HMxDJcGi3erlU-.mjs} +28 -28
- package/browser/esm/{9xTBsz6sONUyOHUW.mjs → AZqmGzpPMrJbgV2W.mjs} +1 -7
- package/browser/esm/{LwaL-xJmA9EnZcqb.mjs → B3EG6jjfR2LEnrAU.mjs} +2 -8
- package/browser/esm/{BPvaz6hF_IcJuJOV.mjs → B64E2zQmL6hLVfZj.mjs} +1 -7
- package/browser/esm/{B3tAu8z_m4SfpweK.mjs → B6ELdf71jSY39vY1.mjs} +1 -1
- package/browser/esm/{CnInDMsKLsntQ4ZW.mjs → B7scZi_VczEUXidh.mjs} +1 -7
- package/browser/esm/{wefMW1XHosAljDkr.mjs → BDch4FvLXEr0f6ZQ.mjs} +2 -2
- package/browser/esm/{B4KRBO609RwNjzvi.mjs → BGEuFRd7CprH18Ux.mjs} +1 -7
- package/browser/esm/{B3zRuS9CUBbywRyw.mjs → BHTWupqElPJQagv4.mjs} +1 -7
- package/{node/esm/s1BEJnCqBOb8JJDU.mjs → browser/esm/BOL63BcaR86vXxt8.mjs} +1 -7
- package/browser/esm/{BFDuLEYykYS1BDn_.mjs → BPZsd5vtzGJ4PtJr.mjs} +4 -22
- package/browser/esm/{5ZeTyyMjwTBT3EsV.mjs → B_eHwwd9-PXWYLMA.mjs} +1 -7
- package/browser/esm/{DwSOLCKwPflQ8oiF.mjs → BbloSfJTNz8-g7pa.mjs} +4 -4
- package/browser/esm/{gNrO89j_4tRIGEtM.mjs → BhfMnNKVTfBV03lK.mjs} +3 -9
- package/browser/esm/{C6k-LrteLTacKvUJ.mjs → BkY6jPvgDNSHVjm1.mjs} +6 -6
- package/browser/esm/{0C6QuzGc8rTp95Os.mjs → BmOgysv2Oa-vQXE0.mjs} +2 -2
- package/browser/esm/{4JoQwaWGy7X9v7Fv.mjs → BpTfL8wDDLWCFbUW.mjs} +1 -7
- package/browser/esm/{BFcMJeN-Jx_QyCvg.mjs → Bsirmjdfj8W9sVx5.mjs} +2 -2
- package/browser/esm/{CpSUrjPU9wYc3Jhg.mjs → BslEgsLB-o1nc3NJ.mjs} +1 -7
- package/browser/esm/{DgAkhv_thUOpWlnL.mjs → BvJx_QZ4eKWrufFK.mjs} +9167 -9247
- package/browser/esm/{QzCoqfRysNMoTzb1.mjs → Bwbk5CiNsPh4oG-e.mjs} +1 -7
- package/browser/esm/{Cl0T7a1Q_gErBp0a.mjs → C-I7rCun0hGkuQ6J.mjs} +1 -7
- package/browser/esm/{Bl6YU6FumgUvr0UG.mjs → CF7ede_gzDlyTqfP.mjs} +1 -7
- package/browser/esm/{5NrbFIuL4ezvklhf.mjs → CXVZIbnDZdhdPDsS.mjs} +2 -2
- package/browser/esm/{rrGPhfv9KHmWuZ1O.mjs → CcSG0PBy9Xc99VMv.mjs} +1 -7
- package/{node/esm/BbEfqkC8wcfMDYW7.mjs → browser/esm/CcSdpe6QFrIBEfxa.mjs} +1 -7
- package/browser/esm/{BBN8odKP7v-WcPD2.mjs → CdCJMJxXOSz6lxOy.mjs} +1 -7
- package/browser/esm/CjHkOkuQRYMpUxe5.mjs +21 -0
- package/browser/esm/{C7nYvIDkdvZ1Dj4m.mjs → Cldrd9EWLvrv7OmM.mjs} +3 -21
- package/browser/esm/{CPpDKazrNC3936LC.mjs → CnEgkW6Z3qXNMA3o.mjs} +1 -7
- package/browser/esm/{cAw1gvsUyweC9j3E.mjs → DKyHs94FV1bG9frs.mjs} +1 -7
- package/browser/esm/{Cx2I29WhfKMYwydX.mjs → DSy9HoHQkEeO33eC.mjs} +1 -7
- package/browser/esm/{H8PuG54lnnKpLJ9K.mjs → DTuQMORnquJOYPd_.mjs} +2 -2
- package/browser/esm/DYfYa5shdr1OHSo9.mjs +24 -0
- package/browser/esm/{DQA0GopfVCQr8XAy.mjs → DbaMa7xh1JERqjfu.mjs} +1 -7
- package/browser/esm/{C55fwXLJyCRvXnox.mjs → DdvoohT27nSi_3cd.mjs} +1 -7
- package/browser/esm/{BNXkhPhojFj2qVzy.mjs → DfomV5Es6zAn4RZi.mjs} +96 -102
- package/browser/esm/{CtY7bZRPP4_KRNmt.mjs → Dr9yLItWEDzTQl2s.mjs} +2 -2
- package/{node/esm/BRaRGYJwIxUVeGqc.mjs → browser/esm/DskzH7zTkxNR4kmu.mjs} +1 -7
- package/browser/esm/{BAe4Amd0bcUlcPDo.mjs → DyJFrpwrf2hOoMB8.mjs} +1 -7
- package/browser/esm/{BoyMSFQmu3xbxOlA.mjs → E57nRNXAFyQlfQcA.mjs} +4 -10
- package/{node/esm/CpoyQrYrPV0-9RPc.mjs → browser/esm/LyNZuqChCFhEwsot.mjs} +1 -7
- package/browser/esm/{DB1-J0MOAeH11ZyJ.mjs → OA194vapZVgAyYfI.mjs} +1 -7
- package/browser/esm/{CCk3fUZpSsFCIy8K.mjs → OAJjLDFVSai0yCAH.mjs} +2 -14
- package/browser/esm/{DsWvUVuInbcvxqIu.mjs → YWavBpnhyEFk5GMG.mjs} +8 -25
- package/browser/esm/{DgnVRt8VYgaSZGHj.mjs → aApOir3D3mXBHnvi.mjs} +12 -10
- package/browser/esm/{Dwss46fwkNYFDw8t.mjs → bKlq3J1NJoYG9nEK.mjs} +7 -71
- package/browser/esm/{BCMVtS3Laq-Xh8Di.mjs → i5M3BzX6_TbbFlH5.mjs} +1 -9
- package/browser/esm/index.mjs +10 -10
- package/browser/esm/{DAO7AruN1dqHKCzx.mjs → j8ncnjiLyFIkRpRY.mjs} +37 -57
- package/browser/esm/{CJ0O6bKXr7qeO25m.mjs → oISMsYlGCPZ7-0lX.mjs} +2 -8
- package/browser/esm/{DxDjGuX7dIrp2S15.mjs → oPlD2dUf3YmsFkON.mjs} +2 -14
- package/{node/esm/BfEdsxDq6MOecVqq.mjs → browser/esm/orOLzbRzqosIA5-M.mjs} +1 -7
- package/browser/esm/{wy5pKj7t63p_up1j.mjs → sBOX_jXfdNOE_89x.mjs} +134 -134
- package/browser/esm/{CgUrlFh28m1acaYQ.mjs → siOdsSC0nSzvcV6e.mjs} +1 -7
- package/browser/esm/{DsZx_Zkhn1I5H_1J.mjs → v7U7eI9QzTNkm3Bw.mjs} +2 -2
- package/browser/esm/{BBSvNtWZn99G2Sel.mjs → xLRSe1qHuVdyTRam.mjs} +1 -14
- package/licenses/dependencies.txt +77 -77
- package/node/assets/style.css +1 -1
- package/node/esm/{hpjhhcXZ4ox1ttj9.mjs → 2LRTxgV_lBAeZ-P_.mjs} +3 -9
- package/node/esm/{9xTBsz6sONUyOHUW.mjs → AZqmGzpPMrJbgV2W.mjs} +1 -7
- package/node/esm/{D-5hudKxKNcxHDv4.mjs → B200JUCQCqtoXtze.mjs} +11 -29
- package/node/esm/{CipoP939zaH4fcOy.mjs → B4FapexYISkwv2PP.mjs} +1 -7
- package/node/esm/{BPvaz6hF_IcJuJOV.mjs → B64E2zQmL6hLVfZj.mjs} +1 -7
- package/node/esm/{C6u3GsSp4e2cvW9r.mjs → B6wRJIobYG51nE8k.mjs} +1 -1
- package/node/esm/{qiZgtOByq0ONnESS.mjs → BD9x8fkvhcvJ7xjU.mjs} +1 -8
- package/node/esm/{B4KRBO609RwNjzvi.mjs → BGEuFRd7CprH18Ux.mjs} +1 -7
- package/node/esm/{wqbe04B4sEFndP3V.mjs → BI5BlWbeESiI0CbN.mjs} +4 -10
- package/node/esm/{C8STZ7Zt6L0KzqIE.mjs → BLdoPiUZ3PSw_Jx4.mjs} +2 -2
- package/{browser/esm/s1BEJnCqBOb8JJDU.mjs → node/esm/BOL63BcaR86vXxt8.mjs} +1 -7
- package/node/esm/{B_G7O_zb-jF1PwUW.mjs → BV8QMkxYffe5YuKF.mjs} +8 -8
- package/node/esm/{CGpy_JYlJvSqi2bv.mjs → BXtDB7WZJlFEKr8M.mjs} +1 -3
- package/node/esm/{C0BuhFhvary0MrNX.mjs → BkyuOVy2KETQMFCO.mjs} +1 -7
- package/node/esm/{4JoQwaWGy7X9v7Fv.mjs → BpTfL8wDDLWCFbUW.mjs} +1 -7
- package/node/esm/{DCuXbif8mI95HsNT.mjs → BqgsCpsX8xl4a-gQ.mjs} +1 -7
- package/node/esm/{C5U11rfhUvotCiwk.mjs → Bqi23kQTBoGLm5F8.mjs} +7 -71
- package/node/esm/{QzCoqfRysNMoTzb1.mjs → Bwbk5CiNsPh4oG-e.mjs} +1 -7
- package/node/esm/{BBdLL4LjdF1xMJM1.mjs → Bzn7iPRWVFns38as.mjs} +1 -7
- package/node/esm/{CMqERd7Psx-3Wfm9.mjs → C5AyRET8yEW8AHCx.mjs} +6 -26
- package/node/esm/{Bl6YU6FumgUvr0UG.mjs → CF7ede_gzDlyTqfP.mjs} +1 -7
- package/node/esm/{DdzeWAW2GHn9AEEc.mjs → CHa8zqxxqN37UAbT.mjs} +1 -7
- package/node/esm/{hNQ44J3MKLhqWqDQ.mjs → CJZtnupg7aYCcfKR.mjs} +2 -2
- package/node/esm/CaTPeRd3yej1D44o.mjs +80 -0
- package/node/esm/{rrGPhfv9KHmWuZ1O.mjs → CcSG0PBy9Xc99VMv.mjs} +1 -7
- package/{browser/esm/BbEfqkC8wcfMDYW7.mjs → node/esm/CcSdpe6QFrIBEfxa.mjs} +1 -7
- package/node/esm/{CPpDKazrNC3936LC.mjs → CnEgkW6Z3qXNMA3o.mjs} +1 -7
- package/node/esm/{Bav2rRIN-77VagCp.mjs → CsyP8mzSIyH_j_gx.mjs} +2 -14
- package/node/esm/CtwI3UxESNeLVKz4.mjs +14 -0
- package/node/esm/{z4aHdT3kX8QkA5WB.mjs → Cz3i5M3BNm_sU7VM.mjs} +1 -7
- package/node/esm/D0I-t4XarGx9tL2X.mjs +16 -0
- package/node/esm/{TF4SxbxBSD3Gf9rn.mjs → D9FIPE6c82obo0bd.mjs} +1 -7
- package/node/esm/{v_xWzWUNiVGQNBoT.mjs → DCnTdfW-zrlDozHu.mjs} +1 -1
- package/node/esm/{Bl4s1iMUrCbnLTK6.mjs → DDMv9FFsdYN-wjV1.mjs} +4 -22
- package/node/esm/{CQza81LSbdfj4dh8.mjs → DMYhiPgHOvCK0e6G.mjs} +1 -7
- package/node/esm/{Dzi6IQ6mIY4GUhhn.mjs → DSRKBM2nh9iYul8L.mjs} +1 -7
- package/node/esm/{Cx2I29WhfKMYwydX.mjs → DSy9HoHQkEeO33eC.mjs} +1 -7
- package/node/esm/{B6zpbEevMTArgNIt.mjs → DToXdyBIJDYd1rr4.mjs} +38 -38
- package/node/esm/{C55fwXLJyCRvXnox.mjs → DdvoohT27nSi_3cd.mjs} +1 -7
- package/node/esm/{ByM8BXRmy_WcnL53.mjs → Dht5yjzp4Y9-leiH.mjs} +5 -5
- package/node/esm/{CF8Iw2U0KmkBM7e_.mjs → DqyrRbgk1-rYiye4.mjs} +12 -10
- package/{browser/esm/BRaRGYJwIxUVeGqc.mjs → node/esm/DskzH7zTkxNR4kmu.mjs} +1 -7
- package/node/esm/{oOVkOZ3Xk1oEBGVF.mjs → IoNOHrmO_TsKnDiU.mjs} +13 -13
- package/node/esm/{C-OobshDolEf_YMF.mjs → KDwQLyg7m49Cqgq7.mjs} +1 -1
- package/{browser/esm/CpoyQrYrPV0-9RPc.mjs → node/esm/LyNZuqChCFhEwsot.mjs} +1 -7
- package/node/esm/{9XZv6YbZGzXJWLjj.mjs → MIFyb4jWS5pgkDzZ.mjs} +1 -7
- package/node/esm/{CAMB3sLeYaDmVbRg.mjs → Q7QGn0xIiDXbz-EN.mjs} +1 -1
- package/node/esm/{Bt9tHh7hpw6l03MX.mjs → Roo316g8NJiFWbdh.mjs} +2 -8
- package/node/esm/{CgnJOwb7XTGd8SHn.mjs → W7ETXZ0lNEjio8UF.mjs} +1 -1
- package/node/esm/{BG0B7kW0XUOAZkPr.mjs → a5F0VHG5l1_KNuMk.mjs} +2 -2
- package/node/esm/{Dfiyl6Mp0BhjlSy1.mjs → egkfJ6xKy_CP5Yv6.mjs} +2 -2
- package/node/esm/index.mjs +20168 -20203
- package/node/esm/{BCHHa-dErcBIC_0y.mjs → j5PgCeWLt7VlfOPK.mjs} +7 -7
- package/{browser/esm/BfEdsxDq6MOecVqq.mjs → node/esm/orOLzbRzqosIA5-M.mjs} +1 -7
- package/node/esm/{CgUrlFh28m1acaYQ.mjs → siOdsSC0nSzvcV6e.mjs} +1 -7
- package/package.json +8 -8
- package/browser/cjs/BC2yD5lEOXzHeG1Y.cjs +0 -17
- package/browser/cjs/BmsLHCvcZOJnxYBm.cjs +0 -16
- package/browser/cjs/C_WGJtEWeSBOjCod.cjs +0 -25
- package/browser/cjs/CmHRyEKd83UyYJp5.cjs +0 -11
- package/browser/cjs/CxgPiyb5-hVRdhnd.cjs +0 -6
- package/browser/cjs/D2MFDC-oSzPf1srP.cjs +0 -314
- package/browser/cjs/DDJTjqunlP762qFN.cjs +0 -28
- package/browser/cjs/Ds4qQWfBUFy1VFRh.cjs +0 -12
- package/browser/cjs/DthoHYaMTKWkpydK.cjs +0 -11
- package/browser/cjs/WTQe6nG-0TQIsU2N.cjs +0 -16
- package/browser/cjs/cjzXoPH_hX0J64QW.cjs +0 -28
- package/browser/cjs/iZCwzTljD4cWi5hR.cjs +0 -20
- package/browser/esm/BKe9StZYGtgSF78N.mjs +0 -36
- package/browser/esm/DX5wv2h7KsKxTYo5.mjs +0 -34
- package/node/esm/BOSoESJcI0P9vUHU.mjs +0 -92
- package/node/esm/BSra_FfM7URLW976.mjs +0 -26
- package/node/esm/Dmuc2_ZKAEnSFQ4-.mjs +0 -28
package/LICENSE.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Repository Licensing
|
|
2
|
-
|
|
3
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
4
|
-
|
|
5
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
6
|
-
|
|
7
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
8
|
-
|
|
9
|
-
For more details on commercial licensing, please visit our website:
|
|
10
|
-
|
|
11
|
-
https://www.sheetxl.com/licensing-pricing
|
|
1
|
+
# Repository Licensing
|
|
2
|
+
|
|
3
|
+
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
4
|
+
|
|
5
|
+
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
6
|
+
|
|
7
|
+
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
8
|
+
|
|
9
|
+
For more details on commercial licensing, please visit our website:
|
|
10
|
+
|
|
11
|
+
https://www.sheetxl.com/licensing-pricing
|
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# @sheetxl/studio-mui
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-

|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
## SheetXL Studio
|
|
8
|
-
|
|
9
|
-
SheetXL Studio is a complete, professional-grade spreadsheet application delivered as a React component. This package [@sheetxl/studio-mui](./_sheetxl_studio-mui.html)
|
|
10
|
-
provides the official, feature-rich Material-UI interface for the SheetXL ecosystem,
|
|
11
|
-
bringing the full power of the [@sheetxl/sdk](./_sheetxl_sdk.html) engine to your users out-of-the-box.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
|
|
17
|
-
Bundle `@sheetxl/sdk` and its dependencies.
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
# Using npm
|
|
21
|
-
npm install @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled @react @react/dom
|
|
22
|
-
|
|
23
|
-
# Using yarn
|
|
24
|
-
yarn add @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled @react @react/dom
|
|
1
|
+
# @sheetxl/studio-mui
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## SheetXL Studio
|
|
8
|
+
|
|
9
|
+
SheetXL Studio is a complete, professional-grade spreadsheet application delivered as a React component. This package [@sheetxl/studio-mui](./_sheetxl_studio-mui.html)
|
|
10
|
+
provides the official, feature-rich Material-UI interface for the SheetXL ecosystem,
|
|
11
|
+
bringing the full power of the [@sheetxl/sdk](./_sheetxl_sdk.html) engine to your users out-of-the-box.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
Bundle `@sheetxl/sdk` and its dependencies.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Using npm
|
|
21
|
+
npm install @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled @react @react/dom
|
|
22
|
+
|
|
23
|
+
# Using yarn
|
|
24
|
+
yarn add @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled @react @react/dom
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.1
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./BEzNZIQy5IlW0iAl.cjs");exports.fromBufferJSON=async(g,y)=>{let i=g;(function(s){if(s.byteLength<4)return!1;const u=new Uint8Array(s),c={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},r=Object.keys(c);for(let n=0;n<r.length;n++){const o=r[n],e=c[o];let a=!0;for(let t=0;t<e.length;t++)if(u[t]!==e[t]){a=!1;break}if(a)return o}return!1})(i)&&(i=await async function(s,u="gzip"){const c=new Blob([s]).stream(),r=new DecompressionStream(u),n=c.pipeThrough(r);return(await new Response(n).blob()).arrayBuffer()}(i));let b=new TextDecoder().decode(i);const w=JSON.parse(b),p={...y?.constructorOptions??{},json:w};return new j.Zy(p)},exports.toBufferJSON=async(g,y)=>{const i=await g.toJSON(),b=y?.whiteSpace??0;let w;y?.beforeWrite?.(g,i),w=b===0?JSON.stringify(i):function(u,c=2){const r=[];function n(o){const e=c*o;return r[e]===void 0&&(r[e]=" ".repeat(e)),r[e]}return function o(e,a,t,N){if(e==null||typeof e!="object")return JSON.stringify(e);const h=n(a),m=n(a+1);if(Array.isArray(e)){const f=e.length;if(f===0)return"[]";if(t!==0)return JSON.stringify(e);let l=`[
|
|
7
|
+
`;for(let O=0;O<f;O++)l+=m+o(e[O],a+1,t+1,!0),O<f-1&&(l+=`,
|
|
8
|
+
`);return l+=`
|
|
9
|
+
`+h+"]",l}const J=Object.keys(e),d=J.length;if(d===0)return"{}";if(!(t<2))return JSON.stringify(e);let S=`{
|
|
10
|
+
`;N||(t=0);for(let f=0;f<d;f++){const l=J[f];S+=m+JSON.stringify(l)+": "+o(e[l],a+1,t,!1),f<d-1&&(S+=`,
|
|
11
|
+
`)}return S+=`
|
|
12
|
+
`+h+"}",S}(u,0,0,!1)}(i,b);let p=new TextEncoder().encode(w);const s=y?.compress??!0;return s&&(p=await async function(u,c="gzip"){const r=new ReadableStream({start(e){e.enqueue(u),e.close()}}),n=new CompressionStream(c),o=r.pipeThrough(n);return(await new Response(o).blob()).arrayBuffer()}(p,typeof s=="string"?s:void 0)),p};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.1
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.1
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),n=require("react"),D=require("@mui/material"),o=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),n=require("react"),D=require("@mui/material"),o=require("./BEzNZIQy5IlW0iAl.cjs"),F=["Ok","Cancel"],V=n.memo(C=>{const{value:a=null,context:t,onOption:c,onValidateOption:k,onDone:g,onUpdate:m,options:x=F,defaultOption:T=x?.[0],cancelOption:f="Cancel",sx:R,...h}=C,N=n.useMemo(()=>t?.getNames().findValidName("Range1"),[]),d=n.useMemo(()=>{if(!a)return!0},[]),[l,v]=n.useState({displayText:a?.getName()??N,errorText:null}),[s,S]=n.useState({displayValue:a?.getRanges()??t?.selection()??null,errorText:null}),[y,O]=n.useState(!1),b=n.useCallback(async e=>!l.errorText&&!s.errorText,[t]),j=o.T((e,i,p)=>{if(!i){let r=null;d?r=t?.getNames().addReference(l?.displayText,s?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(l?.displayText),a.setReference(s?.displayValue)},`Edit Named '${l?.displayText}'`),r=a),r&&(r.select(),m(r,d))}c?.(e,i,p),g?.()},[t,l,s,g,c,T,f,m]),I=o.T(e=>{let i=null;try{t?.getNames().validateName(e)}catch(p){i=p.message}v({displayText:e,errorText:i})},[]),q=o.T(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.getNames().validateName(e)},[t,a]),w=n.useCallback(e=>{S({displayValue:e??null,errorText:null})},[]);return u.jsx(o.E8,{title:(d?"Define":"Edit")+" Range",options:x,onOption:j,onValidateOption:b,defaultOption:T,cancelOption:f,autoFocusSel:".autoFocus",sx:{width:"460px",...R},...h,children:u.jsxs(D.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[u.jsx(o.NamedInput,{formName:"name",defaultInput:N,value:l.displayText,onChangeInput:I,onValidate:q,onFocus:e=>{y||e.target?.select(),O(!0)}}),u.jsx(o.RangeInput,{formName:"range",value:s.displayValue,onChangeInput:w,resolvedAddress:t.getNames().getRanges.bind(t.getNames()),onFocus:e=>{y||e.target?.select(),O(!0)}})]})})});exports.NamedReferenceDialog=V,exports.default=V;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.1
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),N=require("@mui/material"),k=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),N=require("@mui/material"),k=require("./BEzNZIQy5IlW0iAl.cjs"),U=require("react"),Ut=require("@mui/icons-material"),V=require("./C5yXi0ZLdk8cegEV.cjs"),ce=require("@mui/styled-engine"),ue=require("@mui/system");function Vt(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const x=Vt(U),qt=k.createTheme();function ve(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}function Kt(o){return o?(e,t)=>t[o]:null}function fe(o,e){const t=typeof e=="function"?e(o):e;if(Array.isArray(t))return t.flatMap(n=>fe(o,n));if(Array.isArray(t?.variants)){let n;if(t.isProcessed)n=t.style;else{const{variants:r,...l}=t;n=l}return ht(o,t.variants,[n])}return t?.isProcessed?t.style:t}function ht(o,e,t=[]){let n;e:for(let r=0;r<e.length;r+=1){const l=e[r];if(typeof l.props=="function"){if(n??={...o,...o.ownerState,ownerState:o.ownerState},!l.props(n))continue}else for(const i in l.props)if(o[i]!==l.props[i]&&o.ownerState?.[i]!==l.props[i])continue e;typeof l.style=="function"?(n??={...o,...o.ownerState,ownerState:o.ownerState},t.push(l.style(n))):t.push(l.style)}return t}function $t(o){return o&&o.charAt(0).toLowerCase()+o.slice(1)}const Xt=function(o={}){const{themeId:e,defaultTheme:t=qt,rootShouldForwardProp:n=ve,slotShouldForwardProp:r=ve}=o;function l(i){(function(a,s,c){a.theme=function(u){for(const d in u)return!1;return!0}(a.theme)?c:a.theme[s]||a.theme})(i,e,t)}return(i,a={})=>{ce.internal_mutateStyles(i,y=>y.filter(C=>C!==k.styleFunctionSx));const{name:s,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Kt($t(c)),...h}=a,g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=d||!1;let _=ve;c==="Root"||c==="root"?_=n:c?_=r:function(y){return typeof y=="string"&&y.charCodeAt(0)>96}(i)&&(_=void 0);const S=ce(i,{shouldForwardProp:_,label:void 0,...h}),m=y=>{if(y.__emotion_real===y)return y;if(typeof y=="function")return function(C){return fe(C,y)};if(k.isPlainObject(y)){const C=function(T){const{variants:R,...b}=T,P={variants:R,style:ce.internal_serializeStyles(b),isProcessed:!0};return P.style===b||R&&R.forEach(z=>{typeof z.style!="function"&&(z.style=ce.internal_serializeStyles(z.style))}),P}(y);return C.variants?function(T){return fe(T,C)}:C.style}return y},w=(...y)=>{const C=[],T=y.map(m),R=[];if(C.push(l),s&&f&&R.push(function(z){const I=z.theme,M=I.components?.[s]?.styleOverrides;if(!M)return null;const G={};for(const W in M)G[W]=fe(z,M[W]);return f(z,G)}),s&&!g&&R.push(function(z){const I=z.theme,M=I?.components?.[s]?.variants;return M?ht(z,M):null}),v||R.push(k.styleFunctionSx),Array.isArray(T[0])){const z=T.shift(),I=new Array(C.length).fill(""),M=new Array(R.length).fill("");let G;G=[...I,...z,...M],G.raw=[...I,...z.raw,...M],C.unshift(G)}const b=[...C,...T,...R],P=S(...b);return i.muiName&&(P.muiName=i.muiName),P};return S.withConfig&&(w.withConfig=S.withConfig),w}}({themeId:k.THEME_ID,defaultTheme:k.defaultTheme,rootShouldForwardProp:o=>function(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}(o)&&o!=="classes"});function E(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function $(o){return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(o)}function ft(o){var e=function(t,n){if($(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var l=r.call(t,n);if($(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o,"string");return $(e)=="symbol"?e:e+""}function Le(o,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,ft(n.key),n)}}function H(o,e,t){return e&&Le(o.prototype,e),t&&Le(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function D(o,e){if(e&&($(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)}function O(o){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(o)}function j(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&k._setPrototypeOf(o,e)}function p(o,e,t){return(e=ft(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function pt(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function mt(o){this.setState(function(e){var t=this.constructor.getDerivedStateFromProps(o,e);return t??null}.bind(this))}function gt(o,e){try{var t=this.props,n=this.state;this.props=o,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,n)}finally{this.props=t,this.state=n}}function ae(o){var e=o.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return o;var t=null,n=null,r=null;if(typeof e.componentWillMount=="function"?t="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?r="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(r="UNSAFE_componentWillUpdate"),t!==null||n!==null||r!==null){var l=o.displayName||o.name,i=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
7
7
|
|
|
8
8
|
`+l+" uses "+i+" but also contains the following legacy lifecycles:"+(t!==null?`
|
|
9
9
|
`+t:"")+(n!==null?`
|
|
@@ -15,4 +15,4 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStat
|
|
|
15
15
|
x:`).concat(f.x,", y:").concat(f.y,", width:").concat(f.width,", height:").concat(f.height));c=Math.max(c,f.y+f.height),u=Math.max(u,f.x+f.width),a[d]=f,s.registerCell({cellMetadatum:f,index:d})}return{cellMetadata:a,height:c,sectionManager:s,width:u}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,l=e.scrollLeft,i=e.scrollTop,a=e.width,s=this.props.cellCount;if(n>=0&&n<s){var c=this._cellMetadata[n];l=Fe({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:l}),i=Fe({align:t,cellOffset:c.y,cellSize:c.height,containerSize:r,currentOffset:i})}return{scrollLeft:l,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,r=e.isScrolling,l=e.width,i=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,u=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:l,x:i,y:a}),c({cellCache:this._cellCache,cellRenderer:u,cellSizeAndPositionGetter:function(d){var f=d.index;return t._sectionManager.getCellMetadata({index:f})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}();function Rt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rt=function(){return!!o})()}function Be(o){var e=o.cellCount,t=o.cellSize,n=o.computeMetadataCallback,r=o.computeMetadataCallbackProps,l=o.nextCellsCount,i=o.nextCellSize,a=o.nextScrollToIndex,s=o.scrollToIndex,c=o.updateScrollOffsetForScrollToIndex;e===l&&(typeof t!="number"&&typeof i!="number"||t===i)||(n(r),s>=0&&s===a&&c())}function oe(o,e){if(o==null)return{};var t,n,r=k._objectWithoutPropertiesLoose(o,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(n=0;n<l.length;n++)t=l[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(o,t)&&(r[t]=o[t])}return r}p(Ne,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(o){var e=o.cellCache,t=o.cellRenderer,n=o.cellSizeAndPositionGetter,r=o.indices,l=o.isScrolling;return r.map(function(i){var a=n({index:i}),s={index:i,isScrolling:l,key:i,style:{height:a.height,left:a.x,position:"absolute",top:a.y,width:a.width}};return l?(i in e||(e[i]=t(s)),e[i]):t(s)}).filter(function(i){return!!i})}}),Ne.propTypes={},function(){function o(e,t){var n,r,l,i;return E(this,o),r=this,i=[e,t],l=O(l=o),(n=D(r,Rt()?Reflect.construct(l,i||[],O(r).constructor):l.apply(r,i)))._registerChild=n._registerChild.bind(n),n}return j(o,x.PureComponent),H(o,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,r=t.columnMinWidth,l=t.columnCount,i=t.width;n===e.columnMaxWidth&&r===e.columnMinWidth&&l===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,r=e.columnMinWidth,l=e.columnCount,i=e.width,a=r||1,s=n?Math.min(n,i):i,c=i/l;return c=Math.max(a,c),c=Math.min(s,c),c=Math.floor(c),t({adjustedWidth:Math.min(i,c*l),columnWidth:c,getColumnWidth:function(){return c},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&typeof e.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])}().propTypes={};var B,to=function(){return H(function o(e){var t=e.cellCount,n=e.cellSizeGetter,r=e.estimatedCellSize;E(this,o),p(this,"_cellSizeAndPositionData",{}),p(this,"_lastMeasuredIndex",-1),p(this,"_lastBatchedIndex",-1),p(this,"_cellCount",void 0),p(this,"_cellSizeGetter",void 0),p(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=t,this._estimatedCellSize=r},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(o){var e=o.cellCount,t=o.estimatedCellSize,n=o.cellSizeGetter;this._cellCount=e,this._estimatedCellSize=t,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(o){if(o<0||o>=this._cellCount)throw Error("Requested index ".concat(o," is outside of range 0..").concat(this._cellCount));if(o>this._lastMeasuredIndex)for(var e=this.getSizeAndPositionOfLastMeasuredCell(),t=e.offset+e.size,n=this._lastMeasuredIndex+1;n<=o;n++){var r=this._cellSizeGetter({index:n});if(r===void 0||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));r===null?(this._cellSizeAndPositionData[n]={offset:t,size:0},this._lastBatchedIndex=o):(this._cellSizeAndPositionData[n]={offset:t,size:r},t+=r,this._lastMeasuredIndex=o)}return this._cellSizeAndPositionData[o]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var o=this.getSizeAndPositionOfLastMeasuredCell();return o.offset+o.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,n=o.containerSize,r=o.currentOffset,l=o.targetIndex;if(n<=0)return 0;var i,a=this.getSizeAndPositionOfCell(l),s=a.offset,c=s-n+a.size;switch(t){case"start":i=s;break;case"end":i=c;break;case"center":i=s-(n-a.size)/2;break;default:i=Math.max(c,Math.min(s,r))}var u=this.getTotalSize();return Math.max(0,Math.min(u-n,i))}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;if(this.getTotalSize()===0)return{};var n=t+e,r=this._findNearestCell(t),l=this.getSizeAndPositionOfCell(r);t=l.offset+l.size;for(var i=r;t<n&&i<this._cellCount-1;)i++,t+=this.getSizeAndPositionOfCell(i).size;return{start:r,stop:i}}},{key:"resetCell",value:function(o){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,o-1)}},{key:"_binarySearch",value:function(o,e,t){for(;e<=o;){var n=e+Math.floor((o-e)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===t)return n;r<t?e=n+1:r>t&&(o=n-1)}return e>0?e-1:0}},{key:"_exponentialSearch",value:function(o,e){for(var t=1;o<this._cellCount&&this.getSizeAndPositionOfCell(o).offset<e;)o+=t,t*=2;return this._binarySearch(Math.min(o,this._cellCount-1),Math.floor(o/2),e)}},{key:"_findNearestCell",value:function(o){if(isNaN(o))throw Error("Invalid offset ".concat(o," specified"));o=Math.max(0,o);var e=this.getSizeAndPositionOfLastMeasuredCell(),t=Math.max(0,this._lastMeasuredIndex);return e.offset>=o?this._binarySearch(t,0,o):this._exponentialSearch(t,o)}}])}(),oo=function(){return typeof window<"u"&&window.chrome?16777100:15e5},no=["maxScrollSize"],Ue=function(){return H(function o(e){var t=e.maxScrollSize,n=t===void 0?oo():t,r=oe(e,no);E(this,o),p(this,"_cellSizeAndPositionManager",void 0),p(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new to(r),this._maxScrollSize=n},[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(o){this._cellSizeAndPositionManager.configure(o)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(o){var e=o.containerSize,t=o.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(r-n))}},{key:"getSizeAndPositionOfCell",value:function(o){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(o)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,n=o.containerSize,r=o.currentOffset,l=o.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var i=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:n,currentOffset:r,targetIndex:l});return this._offsetToSafeOffset({containerSize:n,offset:i})}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;return t=this._safeOffsetToOffset({containerSize:e,offset:t}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:e,offset:t})}},{key:"resetCell",value:function(o){this._cellSizeAndPositionManager.resetCell(o)}},{key:"_getOffsetPercentage",value:function(o){var e=o.containerSize,t=o.offset,n=o.totalSize;return n<=e?0:t/(n-e)}},{key:"_offsetToSafeOffset",value:function(o){var e=o.containerSize,t=o.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(l*(r-e))}},{key:"_safeOffsetToOffset",value:function(o){var e=o.containerSize,t=o.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(n-e))}}])}();function Ve(o){var e=o.cellSize,t=o.cellSizeAndPositionManager,n=o.previousCellsCount,r=o.previousCellSize,l=o.previousScrollToAlignment,i=o.previousScrollToIndex,a=o.previousSize,s=o.scrollOffset,c=o.scrollToAlignment,u=o.scrollToIndex,d=o.size,f=o.sizeJustIncreasedFromZero,h=o.updateScrollIndexCallback,g=t.getCellCount(),v=u>=0&&u<g;v&&(d!==a||f||!r||typeof e=="number"&&e!==r||c!==l||u!==i)?h(u):!v&&g>0&&(d<a||g<n)&&s>t.getTotalSize()-d&&h(g-1)}var ro=(B=typeof window<"u"?window:typeof self<"u"?self:{}).requestAnimationFrame||B.webkitRequestAnimationFrame||B.mozRequestAnimationFrame||B.oRequestAnimationFrame||B.msRequestAnimationFrame||function(o){return B.setTimeout(o,1e3/60)},io=B.cancelAnimationFrame||B.webkitCancelAnimationFrame||B.mozCancelAnimationFrame||B.oCancelAnimationFrame||B.msCancelAnimationFrame||function(o){B.clearTimeout(o)},qe=ro,lo=io,Q=function(o){return lo(o.id)},Oe=function(o,e){var t;Promise.resolve().then(function(){t=Date.now()});var n=function(){Date.now()-t>=e?o.call():r.id=qe(n)},r={id:qe(n)};return r};function Ke(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function F(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ke(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ke(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function bt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bt=function(){return!!o})()}var so="observed",$e="requested",K=function(){function o(e){var t,n,r,l;E(this,o),n=this,l=[e],r=O(r=o),p(t=D(n,bt()?Reflect.construct(r,l||[],O(n).constructor):r.apply(n,l)),"_onGridRenderedMemoizer",Z()),p(t,"_onScrollMemoizer",Z(!1)),p(t,"_deferredInvalidateColumnIndex",null),p(t,"_deferredInvalidateRowIndex",null),p(t,"_recomputeScrollLeftFlag",!1),p(t,"_recomputeScrollTopFlag",!1),p(t,"_horizontalScrollBarSize",0),p(t,"_verticalScrollBarSize",0),p(t,"_scrollbarPresenceChanged",!1),p(t,"_scrollingContainer",void 0),p(t,"_childrenToDisplay",void 0),p(t,"_columnStartIndex",void 0),p(t,"_columnStopIndex",void 0),p(t,"_rowStartIndex",void 0),p(t,"_rowStopIndex",void 0),p(t,"_renderedColumnStartIndex",0),p(t,"_renderedColumnStopIndex",0),p(t,"_renderedRowStartIndex",0),p(t,"_renderedRowStopIndex",0),p(t,"_initialScrollTop",void 0),p(t,"_initialScrollLeft",void 0),p(t,"_disablePointerEventsTimeoutId",void 0),p(t,"_styleCache",{}),p(t,"_cellCache",{}),p(t,"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),p(t,"_invokeOnGridRenderedHelper",function(){var s=t.props.onSectionRendered;t._onGridRenderedMemoizer({callback:s,indices:{columnOverscanStartIndex:t._columnStartIndex,columnOverscanStopIndex:t._columnStopIndex,columnStartIndex:t._renderedColumnStartIndex,columnStopIndex:t._renderedColumnStopIndex,rowOverscanStartIndex:t._rowStartIndex,rowOverscanStopIndex:t._rowStopIndex,rowStartIndex:t._renderedRowStartIndex,rowStopIndex:t._renderedRowStopIndex}})}),p(t,"_setScrollingContainerRef",function(s){t._scrollingContainer=s,typeof t.props.elementRef=="function"?t.props.elementRef(s):$(t.props.elementRef)==="object"&&(t.props.elementRef.current=s)}),p(t,"_onScroll",function(s){s.target===t._scrollingContainer&&t.handleScrollEvent(s.target)});var i=new Ue({cellCount:e.columnCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.columnWidth)(s)},estimatedCellSize:o._getEstimatedColumnSize(e)}),a=new Ue({cellCount:e.rowCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.rowHeight)(s)},estimatedCellSize:o._getEstimatedRowSize(e)});return t.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:a,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:e.isScrolling===!0,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(t._initialScrollTop=t._getCalculatedScrollTop(e,t.state)),e.scrollToColumn>0&&(t._initialScrollLeft=t._getCalculatedScrollLeft(e,t.state)),t}return j(o,x.PureComponent),H(o,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.alignment,n=t===void 0?this.props.scrollToAlignment:t,r=e.columnIndex,l=r===void 0?this.props.scrollToColumn:r,i=e.rowIndex,a=i===void 0?this.props.scrollToRow:i,s=F(F({},this.props),{},{scrollToAlignment:n,scrollToColumn:l,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=t===void 0?0:t,r=e.scrollTop,l=r===void 0?0:r;if(!(l<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,c=i.height,u=i.width,d=this.state.instanceProps,f=d.scrollbarSize,h=d.rowSizeAndPositionManager.getTotalSize(),g=d.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,g-u+f),n),_=Math.min(Math.max(0,h-c+f),l);if(this.state.scrollLeft!==v||this.state.scrollTop!==_){var S={isScrolling:!0,scrollDirectionHorizontal:v!==this.state.scrollLeft?v>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:_!==this.state.scrollTop?_>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:so};a||(S.scrollTop=_),s||(S.scrollLeft=v),S.needToResetStyleCache=!1,this.setState(S)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:_,totalColumnsWidth:g,totalRowsHeight:h})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,n=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,c=this.state.instanceProps;c.columnSizeAndPositionManager.resetCell(n),c.rowSizeAndPositionManager.resetCell(l),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===1?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(this.state.scrollDirectionVertical===1?l<=s:l>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,l=this.props;r>1&&t!==void 0&&this._updateScrollLeftForScrollToColumn(F(F({},l),{},{scrollToColumn:t})),n!==void 0&&this._updateScrollTopForScrollToRow(F(F({},l),{},{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.height,r=e.scrollLeft,l=e.scrollToColumn,i=e.scrollTop,a=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState(function(f){var h=F(F({},f),{},{needToResetStyleCache:!1});return h.instanceProps.scrollbarSize=t(),h.instanceProps.scrollbarSizeMeasured=!0,h}),typeof r=="number"&&r>=0||typeof i=="number"&&i>=0){var u=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:i});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=n>0&&s>0;l>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:i||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,l=r.autoHeight,i=r.autoWidth,a=r.columnCount,s=r.height,c=r.rowCount,u=r.scrollToAlignment,d=r.scrollToColumn,f=r.scrollToRow,h=r.width,g=this.state,v=g.scrollLeft,_=g.scrollPositionChangeReason,S=g.scrollTop,m=g.instanceProps;this._handleInvalidatedGridSize();var w=a>0&&e.columnCount===0||c>0&&e.rowCount===0;_===$e&&(!i&&v>=0&&(v!==this._scrollingContainer.scrollLeft||w)&&(this._scrollingContainer.scrollLeft=v),!l&&S>=0&&(S!==this._scrollingContainer.scrollTop||w)&&(this._scrollingContainer.scrollTop=S));var y=(e.width===0||e.height===0)&&s>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Ve({cellSizeAndPositionManager:m.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:h,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Ve({cellSizeAndPositionManager:m.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:S,scrollToAlignment:u,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),v!==t.scrollLeft||S!==t.scrollTop){var C=m.rowSizeAndPositionManager.getTotalSize(),T=m.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:S,totalColumnsWidth:T,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Q(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,l=e.className,i=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,u=e.id,d=e.noContentRenderer,f=e.role,h=e.style,g=e.tabIndex,v=e.width,_=this.state,S=_.instanceProps,m=_.needToResetStyleCache,w=this._isScrolling(),y={boxSizing:"border-box",direction:"ltr",height:n?"auto":c,position:"relative",width:r?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};m&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=S.columnSizeAndPositionManager.getTotalSize(),T=S.rowSizeAndPositionManager.getTotalSize(),R=T>c?S.scrollbarSize:0,b=C>v?S.scrollbarSize:0;b===this._horizontalScrollBarSize&&R===this._verticalScrollBarSize||(this._horizontalScrollBarSize=b,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),y.overflowX=C+R<=v?"hidden":"auto",y.overflowY=T+b<=c?"hidden":"auto";var P=this._childrenToDisplay,z=P.length===0&&c>0&&v>0;return x.createElement("div",k._extends({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:V.clsx("ReactVirtualized__Grid",l),id:u,onScroll:this._onScroll,role:f,style:F(F({},y),h),tabIndex:g}),P.length>0&&x.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:F({width:t?"auto":C,height:T,maxWidth:C,maxHeight:T,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"},s)},P),z&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,l=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,c=e.overscanIndicesGetter,u=e.overscanRowCount,d=e.rowCount,f=e.width,h=e.isScrollingOptOut,g=t.scrollDirectionHorizontal,v=t.scrollDirectionVertical,_=t.instanceProps,S=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,m=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,w=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var y=_.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:m}),C=_.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:S}),T=_.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:m}),R=_.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:S});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var b=c({direction:"horizontal",cellCount:l,overscanCellsCount:s,scrollDirection:g,startIndex:typeof y.start=="number"?y.start:0,stopIndex:typeof y.stop=="number"?y.stop:-1}),P=c({direction:"vertical",cellCount:d,overscanCellsCount:u,scrollDirection:v,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),z=b.overscanStartIndex,I=b.overscanStopIndex,M=P.overscanStartIndex,G=P.overscanStopIndex;if(i){if(!i.hasFixedHeight()){for(var W=M;W<=G;W++)if(!i.has(W,0)){z=0,I=l-1;break}}if(!i.hasFixedWidth()){for(var ge=z;ge<=I;ge++)if(!i.has(0,ge)){M=0,G=d-1;break}}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:_.columnSizeAndPositionManager,columnStartIndex:z,columnStopIndex:I,deferredMeasurementCache:i,horizontalOffsetAdjustment:T,isScrolling:w,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:_.rowSizeAndPositionManager,rowStartIndex:M,rowStopIndex:G,scrollLeft:m,scrollTop:S,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:y,visibleRowIndices:C}),this._columnStartIndex=z,this._columnStopIndex=I,this._rowStartIndex=M,this._rowStopIndex=G}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Q(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Oe(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,l=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,u=t.props,d=u.height;(0,u.onScroll)({clientHeight:d,clientWidth:u.width,scrollHeight:i,scrollLeft:s,scrollTop:c,scrollWidth:l})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!t.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:t,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return o._getCalculatedScrollLeft(e,t)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,n=o._getScrollLeftForScrollToColumnStateUpdate(e,t);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return o._getCalculatedScrollTop(e,t)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var i="".concat(r,"-").concat(l);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,n=o._getScrollTopForScrollToRowStateUpdate(e,t);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};e.columnCount===0&&t.scrollLeft!==0||e.rowCount===0&&t.scrollTop!==0?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==t.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==t.scrollTop&&e.scrollToRow<0)&&Object.assign(n,o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,l,i=t.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===i.prevColumnWidth&&e.rowHeight===i.prevRowHeight||(n.needToResetStyleCache=!0),i.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:o._getEstimatedColumnSize(e),cellSizeGetter:o._wrapSizeGetter(e.columnWidth)}),i.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:o._getEstimatedRowSize(e),cellSizeGetter:o._wrapSizeGetter(e.rowHeight)}),i.prevColumnCount!==0&&i.prevRowCount!==0||(i.prevColumnCount=0,i.prevRowCount=0),e.autoHeight&&e.isScrolling===!1&&i.prevIsScrolling===!0&&Object.assign(n,{isScrolling:!1}),Be({cellCount:i.prevColumnCount,cellSize:typeof i.prevColumnWidth=="number"?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:typeof e.columnWidth=="number"?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=o._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),Be({cellCount:i.prevRowCount,cellSize:typeof i.prevRowHeight=="number"?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:typeof e.rowHeight=="number"?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=o._getScrollTopForScrollToRowStateUpdate(e,t)}}),i.prevColumnCount=e.columnCount,i.prevColumnWidth=e.columnWidth,i.prevIsScrolling=e.isScrolling===!0,i.prevRowCount=e.rowCount,i.prevRowHeight=e.rowHeight,i.prevScrollToColumn=e.scrollToColumn,i.prevScrollToRow=e.scrollToRow,i.scrollbarSize=e.getScrollbarSize(),i.scrollbarSize===void 0?(i.scrollbarSizeMeasured=!1,i.scrollbarSize=0):i.scrollbarSizeMeasured=!0,n.instanceProps=i,F(F(F({},n),r),l)}},{key:"_getEstimatedColumnSize",value:function(e){return typeof e.columnWidth=="number"?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return typeof e.rowHeight=="number"?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,l={scrollPositionChangeReason:$e};return typeof n=="number"&&n>=0&&(l.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,l.scrollLeft=n),typeof r=="number"&&r>=0&&(l.scrollDirectionVertical=r>t.scrollTop?1:-1,l.scrollTop=r),typeof n=="number"&&n>=0&&n!==t.scrollLeft||typeof r=="number"&&r>=0&&r!==t.scrollTop?l:{}}},{key:"_wrapSizeGetter",value:function(e){return typeof e=="function"?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,l=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,c=t.instanceProps;if(n>0){var u=n-1,d=i<0?u:Math.min(u,i),f=c.rowSizeAndPositionManager.getTotalSize(),h=c.scrollbarSizeMeasured&&f>r?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:a-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,t){var n=t.scrollLeft,r=o._getCalculatedScrollLeft(e,t);return typeof r=="number"&&r>=0&&n!==r?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,l=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,c=t.instanceProps;if(r>0){var u=r-1,d=i<0?u:Math.min(u,i),f=c.columnSizeAndPositionManager.getTotalSize(),h=c.scrollbarSizeMeasured&&f>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:n-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,t){var n=t.scrollTop,r=o._getCalculatedScrollTop(e,t);return typeof r=="number"&&r>=0&&n!==r?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:-1,scrollTop:r}):{}}}])}();p(K,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(o){for(var e=o.cellCache,t=o.cellRenderer,n=o.columnSizeAndPositionManager,r=o.columnStartIndex,l=o.columnStopIndex,i=o.deferredMeasurementCache,a=o.horizontalOffsetAdjustment,s=o.isScrolling,c=o.isScrollingOptOut,u=o.parent,d=o.rowSizeAndPositionManager,f=o.rowStartIndex,h=o.rowStopIndex,g=o.styleCache,v=o.verticalOffsetAdjustment,_=o.visibleColumnIndices,S=o.visibleRowIndices,m=[],w=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),y=!s&&!w,C=f;C<=h;C++)for(var T=d.getSizeAndPositionOfCell(C),R=r;R<=l;R++){var b=n.getSizeAndPositionOfCell(R),P=R>=_.start&&R<=_.stop&&C>=S.start&&C<=S.stop,z="".concat(C,"-").concat(R),I=void 0;y&&g[z]?I=g[z]:i&&!i.has(C,R)?I={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(I={height:T.size,left:b.offset+a,position:"absolute",top:T.offset+v,width:b.size},g[z]=I);var M={columnIndex:R,isScrolling:s,isVisible:P,key:z,parent:u,rowIndex:C,style:I},G=void 0;!c&&!s||a||v?G=t(M):(e[z]||(e[z]=t(M)),G=e[z]),G!=null&&G!==!1&&(G.props.role||(G=U.cloneElement(G,{role:"gridcell"})),m.push(G))}return m},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Ce,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(o){var e=o.cellCount,t=o.overscanCellsCount,n=o.scrollDirection,r=o.startIndex,l=o.stopIndex;return n===1?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,r-t),overscanStopIndex:Math.min(e-1,l)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),ae(K);function Tt(o){var e=o.cellCount,t=o.overscanCellsCount,n=o.scrollDirection,r=o.startIndex,l=o.stopIndex;return t=Math.max(1,t),n===1?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,r-t),overscanStopIndex:Math.min(e-1,l+1)}}function xe(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,n=Array(e);t<e;t++)n[t]=o[t];return n}function zt(o,e){if(o){if(typeof o=="string")return xe(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xe(o,e):void 0}}function ao(o){return function(e){if(Array.isArray(e))return xe(e)}(o)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(o)||zt(o)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
16
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function It(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(It=function(){return!!o})()}var Xe=function(){function o(e,t){var n,r,l,i;return E(this,o),r=this,i=[e,t],l=O(l=o),(n=D(r,It()?Reflect.construct(l,i||[],O(r).constructor):l.apply(r,i)))._loadMoreRowsMemoizer=Z(),n._onRowsRendered=n._onRowsRendered.bind(n),n._registerChild=n._registerChild.bind(n),n}return j(o,x.PureComponent),H(o,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Z(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(r){var l=n(r);l&&l.then(function(){var i,a,s,c,u;i={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:r.startIndex,stopIndex:r.stopIndex},a=i.lastRenderedStartIndex,s=i.lastRenderedStopIndex,c=i.startIndex,u=i.stopIndex,c>s||u<a||t._registeredChild&&function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h=typeof d.recomputeGridSize=="function"?d.recomputeGridSize:d.recomputeRowHeights;h?h.call(d,f):d.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,l=this.props,i=l.isRowLoaded,a=l.minimumBatchSize,s=l.rowCount,c=l.threshold,u=function(f){for(var h=f.isRowLoaded,g=f.minimumBatchSize,v=f.rowCount,_=f.startIndex,S=f.stopIndex,m=[],w=null,y=null,C=_;C<=S;C++)h({index:C})?y!==null&&(m.push({startIndex:w,stopIndex:y}),w=y=null):(y=C,w===null&&(w=C));if(y!==null){for(var T=Math.min(Math.max(y,w+g-1),v-1),R=y+1;R<=T&&!h({index:R});R++)y=R;m.push({startIndex:w,stopIndex:y})}if(m.length)for(var b=m[0];b.stopIndex-b.startIndex+1<g&&b.startIndex>0;){var P=b.startIndex-1;if(h({index:P}))break;b.startIndex=P}return m}({isRowLoaded:i,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-c),stopIndex:Math.min(s-1,t+c)}),d=(n=[]).concat.apply(n,ao(u.map(function(f){return[f.startIndex,f.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(u)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}();function Pt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pt=function(){return!!o})()}p(Xe,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Xe.propTypes={};var co=function(){function o(){var e,t,n,r;E(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=O(n),p(e=D(t,Pt()?Reflect.construct(n,r||[],O(t).constructor):n.apply(t,r)),"Grid",void 0),p(e,"_cellRenderer",function(s){var c=s.parent,u=s.rowIndex,d=s.style,f=s.isScrolling,h=s.isVisible,g=s.key,v=e.props.rowRenderer,_=Object.getOwnPropertyDescriptor(d,"width");return _&&_.writable&&(d.width="100%"),v({index:u,style:d,isScrolling:f,isVisible:h,key:g,parent:c})}),p(e,"_setRef",function(s){e.Grid=s}),p(e,"_onScroll",function(s){var c=s.clientHeight,u=s.scrollHeight,d=s.scrollTop;(0,e.props.onScroll)({clientHeight:c,scrollHeight:u,scrollTop:d})}),p(e,"_onSectionRendered",function(s){var c=s.rowOverscanStartIndex,u=s.rowOverscanStopIndex,d=s.rowStartIndex,f=s.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:c,overscanStopIndex:u,startIndex:d,stopIndex:f})}),e}return j(o,x.PureComponent),H(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,n=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,l=e.width,i=V.clsx("ReactVirtualized__List",t);return x.createElement(K,k._extends({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:l,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}])}();function uo(o,e){return function(t){if(Array.isArray(t))return t}(o)||function(t,n){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var l,i,a,s,c=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,n!==0)for(;!(u=(l=a.call(r)).done)&&(c.push(l.value),c.length!==n);u=!0);}catch(f){d=!0,i=f}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}(o,e)||zt(o,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
17
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}p(co,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Tt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const he={ge:function(o,e,t,n,r){return typeof t=="function"?function(l,i,a,s,c){for(var u=a+1;i<=a;){var d=i+a>>>1;c(l[d],s)>=0?(u=d,a=d-1):i=d+1}return u}(o,n===void 0?0:0|n,r===void 0?o.length-1:0|r,e,t):function(l,i,a,s){for(var c=a+1;i<=a;){var u=i+a>>>1;l[u]>=s?(c=u,a=u-1):i=u+1}return c}(o,t===void 0?0:0|t,n===void 0?o.length-1:0|n,e)},gt:function(o,e,t,n,r){return typeof t=="function"?function(l,i,a,s,c){for(var u=a+1;i<=a;){var d=i+a>>>1;c(l[d],s)>0?(u=d,a=d-1):i=d+1}return u}(o,n===void 0?0:0|n,r===void 0?o.length-1:0|r,e,t):function(l,i,a,s){for(var c=a+1;i<=a;){var u=i+a>>>1;l[u]>s?(c=u,a=u-1):i=u+1}return c}(o,t===void 0?0:0|t,n===void 0?o.length-1:0|n,e)},lt:function(o,e,t,n,r){return typeof t=="function"?function(l,i,a,s,c){for(var u=i-1;i<=a;){var d=i+a>>>1;c(l[d],s)<0?(u=d,i=d+1):a=d-1}return u}(o,n===void 0?0:0|n,r===void 0?o.length-1:0|r,e,t):function(l,i,a,s){for(var c=i-1;i<=a;){var u=i+a>>>1;l[u]<s?(c=u,i=u+1):a=u-1}return c}(o,t===void 0?0:0|t,n===void 0?o.length-1:0|n,e)},le:function(o,e,t,n,r){return typeof t=="function"?function(l,i,a,s,c){for(var u=i-1;i<=a;){var d=i+a>>>1;c(l[d],s)<=0?(u=d,i=d+1):a=d-1}return u}(o,n===void 0?0:0|n,r===void 0?o.length-1:0|r,e,t):function(l,i,a,s){for(var c=i-1;i<=a;){var u=i+a>>>1;l[u]<=s?(c=u,i=u+1):a=u-1}return c}(o,t===void 0?0:0|t,n===void 0?o.length-1:0|n,e)},eq:function(o,e,t,n,r){return typeof t=="function"?function(l,i,a,s,c){for(;i<=a;){var u=i+a>>>1,d=c(l[u],s);if(d===0)return u;d<=0?i=u+1:a=u-1}return-1}(o,n===void 0?0:0|n,r===void 0?o.length-1:0|r,e,t):function(l,i,a,s){for(;i<=a;){var c=i+a>>>1,u=l[c];if(u===s)return c;u<=s?i=c+1:a=c-1}return-1}(o,t===void 0?0:0|t,n===void 0?o.length-1:0|n,e)}};function ke(o,e,t,n,r){this.mid=o,this.left=e,this.right=t,this.leftPoints=n,this.rightPoints=r,this.count=(e?e.count:0)+(t?t.count:0)+n.length}var te=ke.prototype;function _e(o,e){o.mid=e.mid,o.left=e.left,o.right=e.right,o.leftPoints=e.leftPoints,o.rightPoints=e.rightPoints,o.count=e.count}function Ot(o,e){var t=le(e);o.mid=t.mid,o.left=t.left,o.right=t.right,o.leftPoints=t.leftPoints,o.rightPoints=t.rightPoints,o.count=t.count}function Ye(o,e){var t=o.intervals([]);t.push(e),Ot(o,t)}function Je(o,e){var t=o.intervals([]),n=t.indexOf(e);return n<0?0:(t.splice(n,1),Ot(o,t),1)}function Ze(o,e,t){for(var n=0;n<o.length&&o[n][0]<=e;++n){var r=t(o[n]);if(r)return r}}function Qe(o,e,t){for(var n=o.length-1;n>=0&&o[n][1]>=e;--n){var r=t(o[n]);if(r)return r}}function et(o,e){for(var t=0;t<o.length;++t){var n=e(o[t]);if(n)return n}}function ho(o,e){return o-e}function Re(o,e){var t=o[0]-e[0];return t||o[1]-e[1]}function be(o,e){var t=o[1]-e[1];return t||o[0]-e[0]}function le(o){if(o.length===0)return null;for(var e=[],t=0;t<o.length;++t)e.push(o[t][0],o[t][1]);e.sort(ho);var n=e[e.length>>1],r=[],l=[],i=[];for(t=0;t<o.length;++t){var a=o[t];a[1]<n?r.push(a):n<a[0]?l.push(a):i.push(a)}var s=i,c=i.slice();return s.sort(Re),c.sort(be),new ke(n,le(r),le(l),s,c)}function kt(o){this.root=o}te.intervals=function(o){return o.push.apply(o,this.leftPoints),this.left&&this.left.intervals(o),this.right&&this.right.intervals(o),o},te.insert=function(o){var e=this.count-this.leftPoints.length;if(this.count+=1,o[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?Ye(this,o):this.left.insert(o):this.left=le([o]);else if(o[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?Ye(this,o):this.right.insert(o):this.right=le([o]);else{var t=he.ge(this.leftPoints,o,Re),n=he.ge(this.rightPoints,o,be);this.leftPoints.splice(t,0,o),this.rightPoints.splice(n,0,o)}},te.remove=function(o){var e=this.count-this.leftPoints;if(o[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(e-1)?Je(this,o):(l=this.left.remove(o))===2?(this.left=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(o[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?Je(this,o):(l=this.right.remove(o))===2?(this.right=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(this.count===1)return this.leftPoints[0]===o?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===o){if(this.left&&this.right){for(var t=this,n=this.left;n.right;)t=n,n=n.right;if(t===this)n.right=this.right;else{var r=this.left,l=this.right;t.count-=n.count,t.right=n.left,n.left=r,n.right=l}_e(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?_e(this,this.left):_e(this,this.right);return 1}for(r=he.ge(this.leftPoints,o,Re);r<this.leftPoints.length&&this.leftPoints[r][0]===o[0];++r)if(this.leftPoints[r]===o){for(this.count-=1,this.leftPoints.splice(r,1),l=he.ge(this.rightPoints,o,be);l<this.rightPoints.length&&this.rightPoints[l][1]===o[1];++l)if(this.rightPoints[l]===o)return this.rightPoints.splice(l,1),1}return 0},te.queryPoint=function(o,e){if(o<this.mid)return this.left&&(t=this.left.queryPoint(o,e))?t:Ze(this.leftPoints,o,e);if(o>this.mid){var t;return this.right&&(t=this.right.queryPoint(o,e))?t:Qe(this.rightPoints,o,e)}return et(this.leftPoints,e)},te.queryInterval=function(o,e,t){var n;return o<this.mid&&this.left&&(n=this.left.queryInterval(o,e,t))||e>this.mid&&this.right&&(n=this.right.queryInterval(o,e,t))?n:e<this.mid?Ze(this.leftPoints,e,t):o>this.mid?Qe(this.rightPoints,o,t):et(this.leftPoints,t)};var J=kt.prototype;J.insert=function(o){this.root?this.root.insert(o):this.root=new ke(o[0],null,null,[o],[o])},J.remove=function(o){if(this.root){var e=this.root.remove(o);return e===2&&(this.root=null),e!==0}return!1},J.queryPoint=function(o,e){if(this.root)return this.root.queryPoint(o,e)},J.queryInterval=function(o,e,t){if(o<=e&&this.root)return this.root.queryInterval(o,e,t)},Object.defineProperty(J,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(J,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Se=function(){return H(function o(){E(this,o),p(this,"_columnSizeMap",{}),p(this,"_intervalTree",new kt(null)),p(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(o,e,t){var n=o-this.count;return this.tallestColumnSize+Math.ceil(n/e)*t}},{key:"range",value:function(o,e,t){var n=this;this._intervalTree.queryInterval(o,o+e,function(r){var l=uo(r,3),i=l[0];l[1];var a=l[2];return t(a,n._leftMap[a],i)})}},{key:"setPosition",value:function(o,e,t,n){this._intervalTree.insert([t,t+n,o]),this._leftMap[o]=e;var r=this._columnSizeMap,l=r[e];r[e]=l===void 0?t+n:Math.max(l,t+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var n=o[t];e=e===0?n:Math.min(e,n)}return e}},{key:"tallestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var n=o[t];e=Math.max(e,n)}return e}}])}();function tt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function fo(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):tt(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Mt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mt=function(){return!!o})()}var ot=function(){function o(){var e,t,n,r;E(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=O(n),p(e=D(t,Mt()?Reflect.construct(n,r||[],O(t).constructor):n.apply(t,r)),"state",{isScrolling:!1,scrollTop:0}),p(e,"_debounceResetIsScrollingId",void 0),p(e,"_invalidateOnUpdateStartIndex",null),p(e,"_invalidateOnUpdateStopIndex",null),p(e,"_positionCache",new Se),p(e,"_startIndex",null),p(e,"_startIndexMemoized",null),p(e,"_stopIndex",null),p(e,"_stopIndexMemoized",null),p(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),p(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),p(e,"_onScroll",function(s){var c=e.props.height,u=s.currentTarget.scrollTop,d=Math.min(Math.max(0,e._getEstimatedTotalHeight()-c),u);u===d&&(e._debounceResetIsScrolling(),e.state.scrollTop!==d&&e.setState({isScrolling:!0,scrollTop:d}))}),e}return j(o,x.PureComponent),H(o,[{key:"clearCellPositions",value:function(){this._positionCache=new Se,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Se,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&Q(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.autoHeight,l=n.cellCount,i=n.cellMeasurerCache,a=n.cellRenderer,s=n.className,c=n.height,u=n.id,d=n.keyMapper,f=n.overscanByPixels,h=n.role,g=n.style,v=n.tabIndex,_=n.width,S=n.rowDirection,m=this.state,w=m.isScrolling,y=m.scrollTop,C=[],T=this._getEstimatedTotalHeight(),R=this._positionCache.shortestColumnSize,b=this._positionCache.count,P=0;if(this._positionCache.range(Math.max(0,y-f),c+2*f,function(M,G,W){e===void 0?(P=M,e=M):(P=Math.min(P,M),e=Math.max(e,M)),C.push(a({index:M,isScrolling:w,key:d(M),parent:t,style:p(p(p(p({height:i.getHeight(M)},S==="ltr"?"left":"right",G),"position","absolute"),"top",W),"width",i.getWidth(M))}))}),R<y+c+f&&b<l)for(var z=Math.min(l-b,Math.ceil((y+c+f-R)/i.defaultHeight*_/i.defaultWidth)),I=b;I<b+z;I++)e=I,C.push(a({index:I,isScrolling:w,key:d(I),parent:this,style:{width:i.getWidth(I)}}));return this._startIndex=P,this._stopIndex=e,x.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:V.clsx("ReactVirtualized__Masonry",s),id:u,onScroll:this._onScroll,role:h,style:fo({boxSizing:"border-box",direction:"ltr",height:r?"auto":c,overflowX:"hidden",overflowY:T<c?"hidden":"auto",position:"relative",width:_,WebkitOverflowScrolling:"touch",willChange:"transform"},g),tabIndex:v},x.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:T,maxWidth:"100%",maxHeight:T,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&Q(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Oe(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,l=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,l,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,l=n.cellPositioner,i=e;i<=t;i++){var a=l(i),s=a.left,c=a.top;this._positionCache.setPosition(i,s,c,r.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollTop!==void 0&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}();function nt(){}p(ot,"defaultProps",{autoHeight:!1,keyMapper:function(o){return o},onCellsRendered:nt,onScroll:nt,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),ae(ot);var ye=function(){return H(function o(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};E(this,o),p(this,"_cellMeasurerCache",void 0),p(this,"_columnIndexOffset",void 0),p(this,"_rowIndexOffset",void 0),p(this,"columnWidth",function(s){var c=s.index;e._cellMeasurerCache.columnWidth({index:c+e._columnIndexOffset})}),p(this,"rowHeight",function(s){var c=s.index;e._cellMeasurerCache.rowHeight({index:c+e._rowIndexOffset})});var n=t.cellMeasurerCache,r=t.columnIndexOffset,l=r===void 0?0:r,i=t.rowIndexOffset,a=i===void 0?0:i;this._cellMeasurerCache=n,this._columnIndexOffset=l,this._rowIndexOffset=a},[{key:"clear",value:function(o,e){this._cellMeasurerCache.clear(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"getWidth",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"has",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"set",value:function(o,e,t,n){this._cellMeasurerCache.set(o+this._rowIndexOffset,e+this._columnIndexOffset,t,n)}}])}(),po=["rowIndex"],mo=["columnIndex","rowIndex"],go=["columnIndex"],vo=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function rt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function L(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rt(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Lt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lt=function(){return!!o})()}var we=function(){function o(e,t){var n,r,l,i;E(this,o),r=this,i=[e,t],l=O(l=o),p(n=D(r,Lt()?Reflect.construct(l,i||[],O(r).constructor):l.apply(r,i)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),p(n,"_deferredInvalidateColumnIndex",null),p(n,"_deferredInvalidateRowIndex",null),p(n,"_bottomLeftGridRef",function(u){n._bottomLeftGrid=u}),p(n,"_bottomRightGridRef",function(u){n._bottomRightGrid=u}),p(n,"_cellRendererBottomLeftGrid",function(u){var d=u.rowIndex,f=oe(u,po),h=n.props,g=h.cellRenderer,v=h.fixedRowCount;return d===h.rowCount-v?x.createElement("div",{key:f.key,style:L(L({},f.style),{},{height:20})}):g(L(L({},f),{},{parent:n,rowIndex:d+v}))}),p(n,"_cellRendererBottomRightGrid",function(u){var d=u.columnIndex,f=u.rowIndex,h=oe(u,mo),g=n.props,v=g.cellRenderer,_=g.fixedColumnCount,S=g.fixedRowCount;return v(L(L({},h),{},{columnIndex:d+_,parent:n,rowIndex:f+S}))}),p(n,"_cellRendererTopRightGrid",function(u){var d=u.columnIndex,f=oe(u,go),h=n.props,g=h.cellRenderer,v=h.columnCount,_=h.fixedColumnCount;return d===v-_?x.createElement("div",{key:f.key,style:L(L({},f.style),{},{width:20})}):g(L(L({},f),{},{columnIndex:d+_,parent:n}))}),p(n,"_columnWidthRightGrid",function(u){var d=u.index,f=n.props,h=f.columnCount,g=f.fixedColumnCount,v=f.columnWidth,_=n.state,S=_.scrollbarSize;return _.showHorizontalScrollbar&&d===h-g?S:typeof v=="function"?v({index:d+g}):v}),p(n,"_onScroll",function(u){var d=u.scrollLeft,f=u.scrollTop;n.setState({scrollLeft:d,scrollTop:f});var h=n.props.onScroll;h&&h(u)}),p(n,"_onScrollbarPresenceChange",function(u){var d=u.horizontal,f=u.size,h=u.vertical,g=n.state,v=g.showHorizontalScrollbar,_=g.showVerticalScrollbar;if(d!==v||h!==_){n.setState({scrollbarSize:f,showHorizontalScrollbar:d,showVerticalScrollbar:h});var S=n.props.onScrollbarPresenceChange;typeof S=="function"&&S({horizontal:d,size:f,vertical:h})}}),p(n,"_onScrollLeft",function(u){var d=u.scrollLeft;n._onScroll({scrollLeft:d,scrollTop:n.state.scrollTop})}),p(n,"_onScrollTop",function(u){var d=u.scrollTop;n._onScroll({scrollTop:d,scrollLeft:n.state.scrollLeft})}),p(n,"_rowHeightBottomGrid",function(u){var d=u.index,f=n.props,h=f.fixedRowCount,g=f.rowCount,v=f.rowHeight,_=n.state,S=_.scrollbarSize;return _.showVerticalScrollbar&&d===g-h?S:typeof v=="function"?v({index:d+h}):v}),p(n,"_topLeftGridRef",function(u){n._topLeftGrid=u}),p(n,"_topRightGridRef",function(u){n._topRightGrid=u});var a=e.deferredMeasurementCache,s=e.fixedColumnCount,c=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),a&&(n._deferredMeasurementCacheBottomLeftGrid=c>0?new ye({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:c}):a,n._deferredMeasurementCacheBottomRightGrid=s>0||c>0?new ye({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:c}):a,n._deferredMeasurementCacheTopRightGrid=s>0?new ye({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:0}):a),n}return j(o,x.PureComponent),H(o,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,n=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,n=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r,i=this.props,a=i.fixedColumnCount,s=i.fixedRowCount,c=Math.max(0,n-a),u=Math.max(0,l-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:c,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:l}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:c,rowIndex:l}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered;e.onScrollbarPresenceChange,e.scrollLeft;var r=e.scrollToColumn;e.scrollTop;var l=e.scrollToRow,i=oe(e,vo);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return x.createElement("div",{style:this._containerOuterStyle},x.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(L(L({},i),{},{onScroll:t,scrollLeft:s}))),x.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(L(L({},i),{},{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(L(L({},i),{},{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:r,scrollToRow:l,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(this._leftGridWidth==null)if(typeof n=="function"){for(var r=0,l=0;l<t;l++)r+=n({index:l});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(this._topGridHeight==null)if(typeof n=="function"){for(var r=0,l=0;l<t;l++)r+=n({index:l});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,r=t.enableFixedColumnScroll,l=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,c=t.rowHeight,u=t.style,d=t.styleBottomLeftGrid,f=t.styleBottomRightGrid,h=t.styleTopLeftGrid,g=t.styleTopRightGrid,v=t.width,_=e||i!==this._lastRenderedHeight||v!==this._lastRenderedWidth,S=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,m=e||s!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||_||u!==this._lastRenderedStyle)&&(this._containerOuterStyle=L({height:i,overflow:"visible",width:v},u)),(e||_||m)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:v},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:v}),(e||d!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=L({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},d)),(e||S||f!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=L({left:this._getLeftGridWidth(this.props),position:"absolute"},f)),(e||h!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=L({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},h)),(e||S||g!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=L({left:this._getLeftGridWidth(this.props),overflowX:l?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},g)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=i,this._lastRenderedRowHeight=c,this._lastRenderedStyle=u,this._lastRenderedStyleBottomLeftGrid=d,this._lastRenderedStyleBottomRightGrid=f,this._lastRenderedStyleTopLeftGrid=h,this._lastRenderedStyleTopRightGrid=g,this._lastRenderedWidth=v}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,r=e.fixedRowCount,l=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;var s=a?1:0,c=this._getBottomGridHeight(e),u=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,f=i?u+d:u,h=x.createElement(K,k._extends({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,l-r)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:f}));return i?x.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:L(L({},this._bottomLeftGridStyle),{},{height:c,width:u,overflowY:"hidden"})},h):h}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,r=e.fixedRowCount,l=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return x.createElement(K,k._extends({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,l-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-n,scrollToRow:a-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?x.createElement(K,k._extends({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,r=e.fixedColumnCount,l=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,c=s.showHorizontalScrollbar,u=s.scrollbarSize;if(!l)return null;var d=c?1:0,f=this._getTopGridHeight(e),h=this._getRightGridWidth(e),g=c?u:0,v=f,_=this._topRightGridStyle;a&&(v=f+g,_=L(L({},this._topRightGridStyle),{},{left:0}));var S=x.createElement(K,k._extends({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:v,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:i,style:_,tabIndex:null,width:h}));return a?x.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:L(L({},this._topRightGridStyle),{},{height:f,width:h,overflowX:"hidden"})},S):S}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}])}();function Gt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gt=function(){return!!o})()}p(we,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),we.propTypes={},ae(we),function(){function o(e,t){var n,r,l,i;return E(this,o),r=this,i=[e,t],l=O(l=o),(n=D(r,Gt()?Reflect.construct(l,i||[],O(r).constructor):l.apply(r,i))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(n),n}return j(o,x.PureComponent),H(o,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,l=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:l,scrollLeft:i,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,l=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:l,scrollTop:i,scrollWidth:a})}}])}().propTypes={};var se="ASC",Te="DESC";function At(o){var e=o.sortDirection,t=V.clsx("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":e===se,"ReactVirtualized__Table__sortableHeaderIcon--DESC":e===Te});return x.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},e===se?x.createElement("path",{d:"M7 14l5-5 5 5z"}):x.createElement("path",{d:"M7 10l5 5 5-5z"}),x.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Et(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Et=function(){return!!o})()}At.propTypes={};var me=function(){function o(){return E(this,o),e=this,n=arguments,t=O(t=o),D(e,Et()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n));var e,t,n}return j(o,x.Component),H(o)}();function it(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function q(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?it(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):it(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Ht(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ht=function(){return!!o})()}p(me,"defaultProps",{cellDataGetter:function(o){var e=o.dataKey,t=o.rowData;return typeof t.get=="function"?t.get(e):t[e]},cellRenderer:function(o){var e=o.cellData;return e==null?"":String(e)},defaultSortDirection:se,flexGrow:0,flexShrink:1,headerRenderer:function(o){var e=o.dataKey,t=o.label,n=o.sortBy,r=o.sortDirection,l=n===e,i=[x.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return l&&i.push(x.createElement(At,{key:"SortIndicator",sortDirection:r})),i},style:{}}),me.propTypes={};var ze=function(){function o(e){var t,n,r,l;return E(this,o),n=this,l=[e],r=O(r=o),(t=D(n,Ht()?Reflect.construct(r,l||[],O(n).constructor):r.apply(n,l))).state={scrollbarWidth:0},t._createColumn=t._createColumn.bind(t),t._createRow=t._createRow.bind(t),t._onScroll=t._onScroll.bind(t),t._onSectionRendered=t._onSectionRendered.bind(t),t._setRef=t._setRef.bind(t),t._setGridElementRef=t._setGridElementRef.bind(t),t}return j(o,x.PureComponent),H(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,n=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var e=this.GridElement,t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,l=t.disableHeader,i=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,u=t.height,d=t.id,f=t.noRowsRenderer,h=t.rowClassName,g=t.rowStyle,v=t.scrollToIndex,_=t.style,S=t.width,m=this.state.scrollbarWidth,w=l?u:u-s,y=typeof h=="function"?h({index:-1}):h,C=typeof g=="function"?g({index:-1}):g;return this._cachedColumnStyles=[],x.Children.toArray(n).forEach(function(T,R){var b=e._getFlexStyleForColumn(T,T.props.style||me.defaultProps.style);e._cachedColumnStyles[R]=q({overflow:"hidden"},b)}),x.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":x.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:V.clsx("ReactVirtualized__Table",r),id:d,role:"grid",style:_},!l&&c({className:V.clsx("ReactVirtualized__Table__headerRow",y),columns:this._getHeaderColumns(),style:q({height:s,overflow:"hidden",paddingRight:m,width:S},C)}),x.createElement(K,k._extends({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:V.clsx("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:S,columnCount:1,height:w,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:m,scrollToRow:v,style:q(q({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,l=e.parent,i=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,u=c.cellDataGetter,d=c.cellRenderer,f=c.className,h=c.columnData,g=c.dataKey,v=c.id,_=d({cellData:u({columnData:h,dataKey:g,rowData:i}),columnData:h,columnIndex:n,dataKey:g,isScrolling:r,parent:l,rowData:i,rowIndex:a}),S=this._cachedColumnStyles[n],m=typeof _=="string"?_:null;return x.createElement("div",{"aria-colindex":n+1,"aria-describedby":v,className:V.clsx("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+n,onClick:function(w){s&&s({columnData:h,dataKey:g,event:w})},role:"gridcell",style:S,title:m},_)}},{key:"_createHeader",value:function(e){var t,n,r,l,i,a=e.column,s=e.index,c=this.props,u=c.headerClassName,d=c.headerStyle,f=c.onHeaderClick,h=c.sort,g=c.sortBy,v=c.sortDirection,_=a.props,S=_.columnData,m=_.dataKey,w=_.defaultSortDirection,y=_.disableSort,C=_.headerRenderer,T=_.id,R=_.label,b=!y&&h,P=V.clsx("ReactVirtualized__Table__headerColumn",u,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),z=this._getFlexStyleForColumn(a,q(q({},d),a.props.headerStyle)),I=C({columnData:S,dataKey:m,disableSort:y,label:R,sortBy:g,sortDirection:v});if(b||f){var M=g!==m?w:v===Te?se:Te,G=function(W){b&&h({defaultSortDirection:w,event:W,sortBy:m,sortDirection:M}),f&&f({columnData:S,dataKey:m,event:W})};i=a.props["aria-label"]||R||m,l="none",r=0,t=G,n=function(W){W.key!=="Enter"&&W.key!==" "||G(W)}}return g===m&&(l=v===se?"ascending":"descending"),x.createElement("div",{"aria-label":i,"aria-sort":l,className:P,id:T,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:z,tabIndex:r},I)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,l=e.key,i=e.parent,a=e.style,s=this.props,c=s.children,u=s.onRowClick,d=s.onRowDoubleClick,f=s.onRowRightClick,h=s.onRowMouseOver,g=s.onRowMouseOut,v=s.rowClassName,_=s.rowGetter,S=s.rowRenderer,m=s.rowStyle,w=this.state.scrollbarWidth,y=typeof v=="function"?v({index:n}):v,C=typeof m=="function"?m({index:n}):m,T=_({index:n}),R=x.Children.toArray(c).map(function(z,I){return t._createColumn({column:z,columnIndex:I,isScrolling:r,parent:i,rowData:T,rowIndex:n,scrollbarWidth:w})}),b=V.clsx("ReactVirtualized__Table__row",y),P=q(q({},a),{},{height:this._getRowHeight(n),overflow:"hidden",paddingRight:w},C);return S({className:b,columns:R,index:n,isScrolling:r,key:l,onRowClick:u,onRowDoubleClick:d,onRowRightClick:f,onRowMouseOver:h,onRowMouseOut:g,rowData:T,style:P})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=q(q({},t),{},{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:x.Children.toArray(n)).map(function(r,l){return e._createHeader({column:r,index:l})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return typeof t=="function"?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,l=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:l})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setGridElementRef",value:function(e){this.GridElement=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])}();p(ze,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Tt,overscanRowCount:10,rowRenderer:function(o){var e=o.className,t=o.columns,n=o.index,r=o.key,l=o.onRowClick,i=o.onRowDoubleClick,a=o.onRowMouseOut,s=o.onRowMouseOver,c=o.onRowRightClick,u=o.rowData,d=o.style,f={"aria-rowindex":n+1};return(l||i||a||s||c)&&(f["aria-label"]="row",f.tabIndex=0,l&&(f.onClick=function(h){return l({event:h,index:n,rowData:u})}),i&&(f.onDoubleClick=function(h){return i({event:h,index:n,rowData:u})}),a&&(f.onMouseOut=function(h){return a({event:h,index:n,rowData:u})}),s&&(f.onMouseOver=function(h){return s({event:h,index:n,rowData:u})}),c&&(f.onContextMenu=function(h){return c({event:h,index:n,rowData:u})})),x.createElement("div",k._extends({},f,{className:e,key:r,role:"row",style:d}),t)},headerRowRenderer:function(o){var e=o.className,t=o.columns,n=o.style;return x.createElement("div",{className:e,role:"row",style:n},t)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ze.propTypes={};var Y=[],ie=null,X=null;function Wt(){X&&(X=null,document.body&&ie!=null&&(document.body.style.pointerEvents=ie),ie=null)}function _o(){Wt(),Y.forEach(function(o){return o.__resetIsScrolling()})}function Dt(o){o.currentTarget===window&&ie==null&&document.body&&(ie=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){X&&Q(X);var e=0;Y.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),X=Oe(_o,e)}(),Y.forEach(function(e){e.props.scrollElement===o.currentTarget&&e.__handleWindowScrollEvent()})}function lt(o,e){Y.some(function(t){return t.props.scrollElement===e})||e.addEventListener("scroll",Dt),Y.push(o)}function st(o,e){(Y=Y.filter(function(t){return t!==o})).length||(e.removeEventListener("scroll",Dt),X&&(Q(X),Wt()))}var Me=function(o){return o===window},ne=function(o){return o.getBoundingClientRect()};function at(o,e){if(o){if(Me(o)){var t=window,n=t.innerHeight,r=t.innerWidth;return{height:typeof n=="number"?n:0,width:typeof r=="number"?r:0}}return ne(o)}return{height:e.serverHeight,width:e.serverWidth}}function ct(o){return Me(o)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:o.scrollTop,left:o.scrollLeft}}function ut(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function dt(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ut(Object(t),!0).forEach(function(n){p(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ut(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function jt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jt=function(){return!!o})()}var Ft=function(){return typeof window<"u"?window:void 0},So=function(){function o(){var e,t,n,r;E(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,n=o,r=[].concat(i),n=O(n),p(e=D(t,jt()?Reflect.construct(n,r||[],O(t).constructor):n.apply(t,r)),"_window",Ft()),p(e,"_isMounted",!1),p(e,"_positionFromTop",0),p(e,"_positionFromLeft",0),p(e,"_detectElementResize",void 0),p(e,"_child",void 0),p(e,"_windowScrollerRef",x.createRef()),p(e,"state",dt(dt({},at(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),p(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=s,e.updatePosition()}),p(e,"_onChildScroll",function(s){var c=s.scrollTop;if(e.state.scrollTop!==c){var u=e.props.scrollElement;u&&(typeof u.scrollTo=="function"?u.scrollTo(0,c+e._positionFromTop):u.scrollTop=c+e._positionFromTop)}}),p(e,"_registerResizeListener",function(s){s===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(s,e._onResize)}),p(e,"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",e._onResize,!1):s&&e._detectElementResize.removeResizeListener(s,e._onResize)}),p(e,"_onResize",function(){e.updatePosition()}),p(e,"__handleWindowScrollEvent",function(){if(e._isMounted){var s=e.props.onScroll,c=e.props.scrollElement;if(c){var u=ct(c),d=Math.max(0,u.left-e._positionFromLeft),f=Math.max(0,u.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:d,scrollTop:f}),s({scrollLeft:d,scrollTop:f})}}}),p(e,"__resetIsScrolling",function(){e.setState({isScrolling:!1})}),e}return j(o,x.PureComponent),H(o,[{key:"updatePosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,l=n.width,i=this._child||this._windowScrollerRef.current;if(i instanceof Element&&e){var a=function(c,u){if(Me(u)&&document.documentElement){var d=document.documentElement,f=ne(c),h=ne(d);return{top:f.top-h.top,left:f.left-h.left}}var g=ct(u),v=ne(c),_=ne(u);return{top:v.top+g.top-_.top,left:v.left+g.left-_.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=at(e,this.props);r===s.height&&l===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=_t(),this.updatePosition(e),e&&(lt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&r!=null&&n!=null&&(this.updatePosition(n),st(this,r),lt(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(st(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,l=t.scrollLeft,i=t.height,a=t.width;return x.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:l,scrollTop:r,width:a}))}}])}();p(So,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Ft(),serverHeight:0,serverWidth:0});const re="ReactVirtualizedDemo-flexContainer",Nt="ReactVirtualizedDemo-tableRow",Bt="ReactVirtualizedDemo-tableRowHover",Ie="ReactVirtualizedDemo-tableCell",Pe="ReactVirtualizedDemo-noClick";class yo extends U.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return k.clsx(Nt,re,{[Bt]:e!==-1&&t!=null})},this.cellRenderer=({cellData:e,columnIndex:t,dataKey:n})=>{const{columns:r,rowHeight:l,onRowClick:i}=this.props;let a=e,s={height:l,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px"};return n==="shortcut"?a=k.I7(e):n==="description"&&(s={...s,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),A.jsx(N.TableCell,{component:"div",className:k.clsx(Ie,re,{[Pe]:i==null}),variant:"body",style:s,align:t!=null&&r[t].numeric?"right":"left",children:a})},this.headerRenderer=({label:e,columnIndex:t})=>{const{headerHeight:n,columns:r}=this.props;return A.jsx(N.TableCell,{component:"div",className:k.clsx(Ie,re,Pe),variant:"head",sx:{height:n,backgroundColor:l=>l.palette.grey[300]},align:r[t].numeric?"right":"left",children:A.jsx("span",{children:e})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:n,...r}=this.props;return A.jsx(yt,{children:({height:l,width:i})=>A.jsx(ze,{height:l,width:i,rowHeight:t,gridStyle:{direction:"inherit"},headerHeight:n,...r,rowClassName:this.getRowClassName,children:e.map(({dataKey:a,width:s,widthLess:c,...u},d)=>{const f=c?i-c:s;return A.jsx(me,{headerRenderer:h=>this.headerRenderer({...h,columnIndex:d}),className:re,cellRenderer:this.cellRenderer,dataKey:a,width:f,...u},a)})})})}}const wo=Xt(yo)(({theme:o})=>({"& .ReactVirtualized__Table__headerRow":{...o.direction==="rtl"&&{paddingLeft:"0 !important"},...o.direction!=="rtl"&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${re}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${Nt}`]:{cursor:"pointer"},[`& .${Bt}`]:{"&:hover:not([disabled])":{backgroundColor:o.palette.grey[200]}},[`& .${Ie}`]:{flex:1},[`& .${Pe}`]:{cursor:"initial"}}));function Co(o){const{commands:e,...t}=o,[n,r]=U.useState(!1),[l,i]=U.useState(""),a=U.useMemo(()=>{let h=e.getAllCommands();n||(h=h.filter(_=>_.command.shortcut())),h.sort((_,S)=>_.command.label().localeCompare(S.command.label()));const g=[],v=_=>_.replace(/\n\n/g,`
|
|
18
|
-
`);for(let _=0;_<h.length;_++){const S=h[_].command,m=S.shortcut();if(Array.isArray(m)){const w=m;for(let y=0;y<w.length;y++)g.push({label:S.label(),description:v(S.description()),shortcut:w[y]})}else g.push({label:S.label(),description:v(S.description()),shortcut:S.shortcut()})}return g},[n,e]),[s,c]=U.useState(null);U.useEffect(()=>{Promise.resolve().then(()=>require("./
|
|
18
|
+
`);for(let _=0;_<h.length;_++){const S=h[_].command,m=S.shortcut();if(Array.isArray(m)){const w=m;for(let y=0;y<w.length;y++)g.push({label:S.label(),description:v(S.description()),shortcut:w[y]})}else g.push({label:S.label(),description:v(S.description()),shortcut:S.shortcut()})}return g},[n,e]),[s,c]=U.useState(null);U.useEffect(()=>{Promise.resolve().then(()=>require("./CIDji1QOkywtvqEU.cjs")).then(h=>{c(new h.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[u,d]=U.useState(a),f=l.length>0&&u.length===0;return U.useEffect(()=>{s&&k.Yt$1.debounce(()=>{if(l.trim().length===0)return void d(a);const h=s.search(l.trim()),g=new Array(h.length);for(let v=0;v<h.length;v++)g[v]=h[v].item;d(g)},90)()},[s,l]),A.jsxs(N.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[A.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:h=>h.spacing(2),color:h=>h.palette.text.secondary},children:[A.jsx(N.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${ue.alpha("#fff",k.getOverlayAlpha(5))}, ${ue.alpha("#fff",k.getOverlayAlpha(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:h=>h.spacing(1),paddingBottom:h=>h.spacing(1)}},endAdornment:A.jsx(N.InputAdornment,{sx:{opacity:l.length>0?1:0,display:l.length>0?"flex":"none"},position:"end",children:A.jsx(N.IconButton,{"aria-label":"clear search",onClick:()=>i(""),edge:"end",children:A.jsx(Ut.Close,{})})})},sx:{flex:"1 1 40%",marginRight:h=>h.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:h=>f?`${h.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:h=>f?`${h.palette.error.main} !important`:void 0}},value:l,onChange:h=>{i(h.target.value)},onKeyDown:h=>{h.which===k.eo.Escape&&l.length>0&&(i(""),h.stopPropagation(),h.preventDefault())},onContextMenu:h=>{h.stopPropagation()}}),A.jsx(N.FormControlLabel,{sx:{flex:"1 1 60%"},control:A.jsx(N.Checkbox,{checked:n,onChange:()=>r(!n)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),A.jsx(N.Box,{sx:{flex:"1 1 100%",borderRadius:h=>`${h.shape.borderRadius}px`,border:h=>`solid ${h.palette.divider} 1px`,paddingRight:"1px",overflow:"hidden","* .MuiTableCell-head":{background:h=>h.palette.background.paper,backgroundImage:`linear-gradient(${ue.alpha("#fff",k.getOverlayAlpha(5))}, ${ue.alpha("#fff",k.getOverlayAlpha(5))})`}},children:A.jsx(wo,{rowCount:u.length,rowGetter:h=>u[h.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),A.jsx(N.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:h=>h.spacing(1),paddingTop:h=>h.spacing(1),paddingRight:h=>h.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:A.jsx(N.Typography,{noWrap:!0,component:"div",sx:{color:h=>f?h.palette.error.main:h.palette.text.secondary},children:`${u.length===0?"No":u.length} shortcut key${u.length===1?"":"s"}${l.length>0?" found":""}`})})]})}exports.default=o=>{const{title:e="Shortcut Keys",commands:t,sx:n,...r}=o;return A.jsx(k.Fn,{isModal:!0,onKeyDown:l=>{l.keyCode===k.eo.F1&&l.preventDefault()},sx:{width:"780px",...n},title:e,autoFocusSel:".input",...r,children:A.jsx(N.DialogContent,{dividers:!0,children:A.jsx(Co,{commands:t,sx:{marginBottom:"8px"}})})})};
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.1
|
|
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
|
-
*//**
|
|
7
|
-
* @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
|
|
8
|
-
*
|
|
9
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
|
-
*//**
|
|
12
|
-
* @license
|
|
13
|
-
* web-streams-polyfill v4.1.0
|
|
14
|
-
* Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
|
|
15
|
-
* This code is released under the MIT license.
|
|
16
|
-
* SPDX-License-Identifier: MIT
|
|
17
6
|
*/function Pe(){}function R(e){return typeof e=="object"&&e!==null||typeof e=="function"}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tr=Pe;function m(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch{}}const St=Promise,eo=Promise.resolve.bind(St),to=Promise.prototype.then,ro=Promise.reject.bind(St),oo=eo;function C(e){return new St(e)}function v(e){return C(t=>t(e))}function c(e){return ro(e)}function B(e,t,r){return to.call(e,t,r)}function W(e,t,r){B(B(e,t,r),void 0,tr)}function nt(e,t){W(e,t)}function bt(e,t){W(e,void 0,t)}function se(e,t,r){return B(e,t,r)}function Ae(e){B(e,void 0,tr)}let le=e=>{if(typeof queueMicrotask=="function")le=queueMicrotask;else{const t=v(void 0);le=r=>B(t,r)}return le(e)};function me(e,t,r){if(typeof e!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function ge(e,t,r){try{return v(me(e,t,r))}catch(o){return c(o)}}class A{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(t){const r=this._back;let o=r;r._elements.length===16383&&(o={_elements:[],_next:void 0}),r._elements.push(t),o!==r&&(this._back=o,r._next=o),++this._size}shift(){const t=this._front;let r=t;const o=this._cursor;let i=o+1;const n=t._elements,s=n[o];return i===16384&&(r=t._next,i=0),--this._size,this._cursor=i,t!==r&&(this._front=r),n[o]=void 0,s}forEach(t){let r=this._cursor,o=this._front,i=o._elements;for(;!(r===i.length&&o._next===void 0||r===i.length&&(o=o._next,i=o._elements,r=0,i.length===0));)t(i[r]),++r}peek(){const t=this._front,r=this._cursor;return t._elements[r]}}const rr=Symbol("[[AbortSteps]]"),or=Symbol("[[ErrorSteps]]"),Rt=Symbol("[[CancelSteps]]"),Tt=Symbol("[[PullSteps]]"),qt=Symbol("[[ReleaseSteps]]");function nr(e,t){var r;e._ownerReadableStream=t,t._reader=e,t._state==="readable"?ht(e):t._state==="closed"?(ht(r=e),ar(r)):ir(e,t._storedError)}function Et(e,t){return k(e._ownerReadableStream,t)}function M(e){const t=e._ownerReadableStream;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}function Ge(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function ht(e){e._closedPromise=C((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function ir(e,t){ht(e),Pt(e,t)}function Pt(e,t){e._closedPromise_reject!==void 0&&(Ae(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function ar(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const xt=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},no=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function H(e,t){if(e!==void 0&&typeof(r=e)!="object"&&typeof r!="function")throw new TypeError(`${t} is not an object.`);var r}function K(e,t){if(typeof e!="function")throw new TypeError(`${t} is not a function.`)}function sr(e,t){if(!function(r){return typeof r=="object"&&r!==null||typeof r=="function"}(e))throw new TypeError(`${t} is not an object.`)}function ue(e,t,r){if(e===void 0)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function Nt(e,t,r){if(e===void 0)throw new TypeError(`${t} is required in '${r}'.`)}function lr(e){return Number(e)}function Yt(e){return e===0?0:e}function Ct(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=Yt(o),!xt(o))throw new TypeError(`${t} is not a finite number`);if(o=Yt(no(o)),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return xt(o)&&o!==0?o:0}function Ot(e,t){if(!Y(e))throw new TypeError(`${t} is not a ReadableStream.`)}function be(e){return new V(e)}function ur(e,t){e._reader._readRequests.push(t)}function jt(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function Ze(e){return e._reader._readRequests.length}function cr(e){const t=e._reader;return t!==void 0&&!!G(t)}class V{constructor(t){if(ue(t,1,"ReadableStreamDefaultReader"),Ot(t,"First parameter"),X(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");nr(this,t),this._readRequests=new A}get closed(){return G(this)?this._closedPromise:c(ze("closed"))}cancel(t=void 0){return G(this)?this._ownerReadableStream===void 0?c(Ge("cancel")):Et(this,t):c(ze("cancel"))}read(){if(!G(this))return c(ze("read"));if(this._ownerReadableStream===void 0)return c(Ge("read from"));let t,r;const o=C((i,n)=>{t=i,r=n});return Ce(this,{_chunkSteps:i=>t({value:i,done:!1}),_closeSteps:()=>t({value:void 0,done:!0}),_errorSteps:i=>r(i)}),o}releaseLock(){if(!G(this))throw ze("releaseLock");var t;this._ownerReadableStream!==void 0&&(M(t=this),dr(t,new TypeError("Reader was released")))}}function G(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof V}function Ce(e,t){const r=e._ownerReadableStream;r._disturbed=!0,r._state==="closed"?t._closeSteps():r._state==="errored"?t._errorSteps(r._storedError):r._readableStreamController[Tt](t)}function dr(e,t){const r=e._readRequests;e._readRequests=new A,r.forEach(o=>{o._errorSteps(t)})}function ze(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var it,at,st;function Se(e){return e.slice()}function fr(e,t,r,o,i){new Uint8Array(e).set(new Uint8Array(r,o,i),t)}Object.defineProperties(V.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),m(V.prototype.cancel,"cancel"),m(V.prototype.read,"read"),m(V.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(V.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let ce=e=>(ce=typeof e.transfer=="function"?t=>t.transfer():typeof structuredClone=="function"?t=>structuredClone(t,{transfer:[t]}):t=>t,ce(e)),de=e=>(de=typeof e.detached=="boolean"?t=>t.detached:t=>t.byteLength===0,de(e));function br(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,i=new ArrayBuffer(o);return fr(i,0,e,t,o),i}function Te(e,t){const r=e[t];if(r!=null){if(typeof r!="function")throw new TypeError(`${String(t)} is not a function`);return r}}function Vt(e){try{const t=e.done,r=e.value;return B(oo(r),o=>({done:t,value:o}))}catch(t){return c(t)}}const ke=(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";function hr(e,t="sync",r){if(r===void 0)if(t==="async"){if((r=Te(e,ke))===void 0)return function(i){const n={next(){let s;try{s=_r(i)}catch(a){return c(a)}return Vt(s)},return(s){let a;try{const l=Te(i.iterator,"return");if(l===void 0)return v({done:!0,value:s});a=me(l,i.iterator,[s])}catch(l){return c(l)}return R(a)?Vt(a):c(new TypeError("The iterator.return() method must return an object"))}};return{iterator:n,nextMethod:n.next,done:!1}}(hr(e,"sync",Te(e,Symbol.iterator)))}else r=Te(e,Symbol.iterator);if(r===void 0)throw new TypeError("The object is not iterable");const o=me(r,e,[]);if(!R(o))throw new TypeError("The iterator method must return an object");return{iterator:o,nextMethod:o.next,done:!1}}function _r(e){const t=me(e.nextMethod,e.iterator,[]);if(!R(t))throw new TypeError("The iterator.next() method must return an object");return t}class pr{constructor(t,r){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=t,this._preventCancel=r}next(){const t=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?se(this._ongoingPromise,t,t):t(),this._ongoingPromise}return(t){const r=()=>this._returnSteps(t);return this._ongoingPromise=this._ongoingPromise?se(this._ongoingPromise,r,r):r(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const t=this._reader;let r,o;const i=C((n,s)=>{r=n,o=s});return Ce(t,{_chunkSteps:n=>{this._ongoingPromise=void 0,le(()=>r({value:n,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,M(t),r({value:void 0,done:!0})},_errorSteps:n=>{this._ongoingPromise=void 0,this._isFinished=!0,M(t),o(n)}}),i}_returnSteps(t){if(this._isFinished)return Promise.resolve({value:t,done:!0});this._isFinished=!0;const r=this._reader;if(!this._preventCancel){const o=Et(r,t);return M(r),se(o,()=>({value:t,done:!0}))}return M(r),v({value:t,done:!0})}}const mr={next(){return Ut(this)?this._asyncIteratorImpl.next():c(Ht("next"))},return(e){return Ut(this)?this._asyncIteratorImpl.return(e):c(Ht("return"))},[ke](){return this}};function Ut(e){if(!R(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof pr}catch{return!1}}function Ht(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(mr,ke,{enumerable:!1});const yr=Number.isNaN||function(e){return e!=e};function Gt(e){const t=br(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function _t(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function At(e,t,r){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.");var o;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function Q(e){e._queue=new A,e._queueTotalSize=0}function vr(e){return e===DataView}class ie{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!lt(this))throw ut("view");return this._view}respond(t){if(!lt(this))throw ut("respond");if(ue(t,1,"respond"),t=Ct(t,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(de(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Ve(this._associatedReadableByteStreamController,t)}respondWithNewView(t){if(!lt(this))throw ut("respondWithNewView");if(ue(t,1,"respondWithNewView"),!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(de(t.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Ue(this._associatedReadableByteStreamController,t)}}Object.defineProperties(ie.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),m(ie.prototype.respond,"respond"),m(ie.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ie.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class ${constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!oe(this))throw Re("byobRequest");return mt(this)}get desiredSize(){if(!oe(this))throw Re("desiredSize");return jr(this)}close(){if(!oe(this))throw Re("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const t=this._controlledReadableByteStream._state;if(t!=="readable")throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be closed`);qe(this)}enqueue(t){if(!oe(this))throw Re("enqueue");if(ue(t,1,"enqueue"),!ArrayBuffer.isView(t))throw new TypeError("chunk must be an array buffer view");if(t.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(t.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const r=this._controlledReadableByteStream._state;if(r!=="readable")throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be enqueued to`);Ye(this,t)}error(t=void 0){if(!oe(this))throw Re("error");j(this,t)}[Rt](t){wr(this),Q(this);const r=this._cancelAlgorithm(t);return et(this),r}[Tt](t){const r=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Or(this,t);const o=this._autoAllocateChunkSize;if(o!==void 0){let i;try{i=new ArrayBuffer(o)}catch(s){return void t._errorSteps(s)}const n={buffer:i,bufferByteLength:o,byteOffset:0,byteLength:o,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}ur(r,t),fe(this)}[qt](){if(this._pendingPullIntos.length>0){const t=this._pendingPullIntos.peek();t.readerType="none",this._pendingPullIntos=new A,this._pendingPullIntos.push(t)}}}function oe(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof $}function lt(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof ie}function fe(e){(function(t){const r=t._controlledReadableByteStream;return!(r._state!=="readable"||t._closeRequested||!t._started)&&(!!(cr(r)&&Ze(r)>0||Wt(r)&&kr(r)>0)||jr(t)>0)})(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,W(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,fe(e)),null),t=>(j(e,t),null))))}function wr(e){kt(e),e._pendingPullIntos=new A}function gr(e,t){let r=!1;e._state==="closed"&&(r=!0);const o=Sr(t);t.readerType==="default"?jt(e,o,r):function(i,n,s){const a=i._reader._readIntoRequests.shift();s?a._closeSteps(n):a._chunkSteps(n)}(e,o,r)}function xe(e,t){for(let r=0;r<t.length;++r)gr(e,t[r])}function Sr(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Ne(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function Rr(e,t,r,o){let i;try{i=br(t,r,r+o)}catch(n){throw j(e,n),n}Ne(e,i,0,o)}function Tr(e,t){t.bytesFilled>0&&Rr(e,t.buffer,t.byteOffset,t.bytesFilled),_e(e)}function qr(e,t){const r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r;let i=r,n=!1;const s=o-o%t.elementSize;s>=t.minimumFill&&(i=s-t.bytesFilled,n=!0);const a=e._queue;for(;i>0;){const l=a.peek(),u=Math.min(i,l.byteLength),h=t.byteOffset+t.bytesFilled;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}return n}function Er(e,t,r){r.bytesFilled+=t}function Pr(e){e._queueTotalSize===0&&e._closeRequested?(et(e),We(e._controlledReadableByteStream)):fe(e)}function kt(e){e._byobRequest!==null&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function pt(e){const t=[];for(;e._pendingPullIntos.length>0&&e._queueTotalSize!==0;){const r=e._pendingPullIntos.peek();qr(e,r)&&(_e(e),t.push(r))}return t}function Cr(e,t){const r=e._pendingPullIntos.peek();kt(e),e._controlledReadableByteStream._state==="closed"?function(o,i){i.readerType==="none"&&_e(o);const n=o._controlledReadableByteStream;if(Wt(n)){const s=[];for(let a=0;a<kr(n);++a)s.push(_e(o));xe(n,s)}}(e,r):function(o,i,n){if(Er(0,i,n),n.readerType==="none"){Tr(o,n);const l=pt(o);return void xe(o._controlledReadableByteStream,l)}if(n.bytesFilled<n.minimumFill)return;_e(o);const s=n.bytesFilled%n.elementSize;if(s>0){const l=n.byteOffset+n.bytesFilled;Rr(o,n.buffer,l-s,s)}n.bytesFilled-=s;const a=pt(o);gr(o._controlledReadableByteStream,n),xe(o._controlledReadableByteStream,a)}(e,t,r),fe(e)}function _e(e){return e._pendingPullIntos.shift()}function et(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function qe(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&t._state==="readable")if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const r=e._pendingPullIntos.peek();if(r.bytesFilled%r.elementSize!=0){const o=new TypeError("Insufficient bytes to fill elements in the given buffer");throw j(e,o),o}}et(e),We(t)}}function Ye(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||r._state!=="readable")return;const{buffer:o,byteOffset:i,byteLength:n}=t;if(de(o))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const s=ce(o);if(e._pendingPullIntos.length>0){const a=e._pendingPullIntos.peek();if(de(a.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");kt(e),a.buffer=ce(a.buffer),a.readerType==="none"&&Tr(e,a)}if(cr(r))(function(a){const l=a._controlledReadableByteStream._reader;for(;l._readRequests.length>0;){if(a._queueTotalSize===0)return;Or(a,l._readRequests.shift())}})(e),Ze(r)===0?Ne(e,s,i,n):(e._pendingPullIntos.length>0&&_e(e),jt(r,new Uint8Array(s,i,n),!1));else if(Wt(r)){Ne(e,s,i,n);const a=pt(e);xe(e._controlledReadableByteStream,a)}else Ne(e,s,i,n);fe(e)}function j(e,t){const r=e._controlledReadableByteStream;r._state==="readable"&&(wr(e),Q(e),et(e),Qr(r,t))}function Or(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLength,Pr(e);const o=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(o)}function mt(e){if(e._byobRequest===null&&e._pendingPullIntos.length>0){const i=e._pendingPullIntos.peek(),n=new Uint8Array(i.buffer,i.byteOffset+i.bytesFilled,i.byteLength-i.bytesFilled),s=Object.create(ie.prototype);r=e,o=n,(t=s)._associatedReadableByteStreamController=r,t._view=o,e._byobRequest=s}var t,r,o;return e._byobRequest}function jr(e){const t=e._controlledReadableByteStream._state;return t==="errored"?null:t==="closed"?0:e._strategyHWM-e._queueTotalSize}function Ve(e,t){const r=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(t===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=ce(r.buffer),Cr(e,t)}function Ue(e,t){const r=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state==="closed"){if(t.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(t.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const o=t.byteLength;r.buffer=ce(t.buffer),Cr(e,o)}function Ar(e,t,r,o,i,n,s){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Q(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=n,t._pullAlgorithm=o,t._cancelAlgorithm=i,t._autoAllocateChunkSize=s,t._pendingPullIntos=new A,e._readableStreamController=t,W(v(r()),()=>(t._started=!0,fe(t),null),a=>(j(t,a),null))}function ut(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function Re(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function io(e,t){if((e=`${e}`)!="byob")throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function Xt(e){return new U(e)}function Jt(e,t){e._reader._readIntoRequests.push(t)}function kr(e){return e._reader._readIntoRequests.length}function Wt(e){const t=e._reader;return t!==void 0&&!!ae(t)}Object.defineProperties($.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),m($.prototype.close,"close"),m($.prototype.enqueue,"enqueue"),m($.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty($.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class U{constructor(t){if(ue(t,1,"ReadableStreamBYOBReader"),Ot(t,"First parameter"),X(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!oe(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");nr(this,t),this._readIntoRequests=new A}get closed(){return ae(this)?this._closedPromise:c(Be("closed"))}cancel(t=void 0){return ae(this)?this._ownerReadableStream===void 0?c(Ge("cancel")):Et(this,t):c(Be("cancel"))}read(t,r={}){if(!ae(this))return c(Be("read"));if(!ArrayBuffer.isView(t))return c(new TypeError("view must be an array buffer view"));if(t.byteLength===0)return c(new TypeError("view must have non-zero byteLength"));if(t.buffer.byteLength===0)return c(new TypeError("view's buffer must have non-zero byteLength"));if(de(t.buffer))return c(new TypeError("view's buffer has been detached"));let o;try{H(i=r,n="options"),o={min:Ct((s=i?.min)!==null&&s!==void 0?s:1,`${n} has member 'min' that`)}}catch(f){return c(f)}var i,n,s;const a=o.min;if(a===0)return c(new TypeError("options.min must be greater than 0"));if(function(f){return vr(f.constructor)}(t)){if(a>t.byteLength)return c(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(a>t.length)return c(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return c(Ge("read from"));let l,u;const h=C((f,b)=>{l=f,u=b});return Wr(this,t,a,{_chunkSteps:f=>l({value:f,done:!1}),_closeSteps:f=>l({value:f,done:!0}),_errorSteps:f=>u(f)}),h}releaseLock(){if(!ae(this))throw Be("releaseLock");var t;this._ownerReadableStream!==void 0&&(M(t=this),zr(t,new TypeError("Reader was released")))}}function ae(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof U}function Wr(e,t,r,o){const i=e._ownerReadableStream;i._disturbed=!0,i._state==="errored"?o._errorSteps(i._storedError):function(n,s,a,l){const u=n._controlledReadableByteStream,h=s.constructor,f=vr(q=h)?1:q.BYTES_PER_ELEMENT,{byteOffset:b,byteLength:w}=s,T=a*f;var q;let y;try{y=ce(s.buffer)}catch(g){return void l._errorSteps(g)}const _={buffer:y,bufferByteLength:y.byteLength,byteOffset:b,byteLength:w,bytesFilled:0,minimumFill:T,elementSize:f,viewConstructor:h,readerType:"byob"};if(n._pendingPullIntos.length>0)return n._pendingPullIntos.push(_),void Jt(u,l);if(u._state!=="closed"){if(n._queueTotalSize>0){if(qr(n,_)){const g=Sr(_);return Pr(n),void l._chunkSteps(g)}if(n._closeRequested){const g=new TypeError("Insufficient bytes to fill elements in the given buffer");return j(n,g),void l._errorSteps(g)}}n._pendingPullIntos.push(_),Jt(u,l),fe(n)}else{const g=new h(_.buffer,_.byteOffset,0);l._closeSteps(g)}}(i._readableStreamController,t,r,o)}function zr(e,t){const r=e._readIntoRequests;e._readIntoRequests=new A,r.forEach(o=>{o._errorSteps(t)})}function Be(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function yt(e,t){const{highWaterMark:r}=e;if(r===void 0)return t;if(yr(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function Br(e){const{size:t}=e;return t||(()=>1)}function Fr(e,t){H(e,t);const r=e?.highWaterMark,o=e?.size;return{highWaterMark:r===void 0?void 0:lr(r),size:o===void 0?void 0:ao(o,`${t} has member 'size' that`)}}function ao(e,t){return K(e,t),r=>lr(e(r))}function so(e,t,r){return K(e,r),o=>ge(e,t,[o])}function lo(e,t,r){return K(e,r),()=>ge(e,t,[])}function uo(e,t,r){return K(e,r),o=>me(e,t,[o])}function co(e,t,r){return K(e,r),(o,i)=>ge(e,t,[o,i])}function Ir(e,t){if(!he(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(U.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),m(U.prototype.cancel,"cancel"),m(U.prototype.read,"read"),m(U.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(U.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class ne{constructor(t={},r={}){t===void 0?t=null:sr(t,"First parameter");const o=Fr(r,"Second parameter"),i=function(a,l){H(a,l);const u=a?.abort,h=a?.close,f=a?.start,b=a?.type,w=a?.write;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}}(t,"First parameter");if((n=this)._state="writable",n._storedError=void 0,n._writer=void 0,n._writableStreamController=void 0,n._writeRequests=new A,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");var n;const s=Br(o);(function(a,l,u,h){const f=Object.create(Oe.prototype);let b,w,T,q;b=l.start!==void 0?()=>l.start(f):()=>{},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){_._controlledWritableStream=y,y._writableStreamController=_,_._queue=void 0,_._queueTotalSize=void 0,Q(_),_._abortReason=void 0,_._abortController=function(){if(typeof AbortController=="function")return new AbortController}(),_._started=!1,_._strategySizeAlgorithm=S,_._strategyHWM=p,_._writeAlgorithm=z,_._closeAlgorithm=I,_._abortAlgorithm=d;const E=It(_);Ft(y,E),W(v(g()),()=>(_._started=!0,tt(_),null),O=>(_._started=!0,vt(y,O),null))}(a,f,b,w,T,q,u,h)})(this,i,yt(o,1),s)}get locked(){if(!he(this))throw Ie("locked");return pe(this)}abort(t=void 0){return he(this)?pe(this)?c(new TypeError("Cannot abort a stream that already has a writer")):Xe(this,t):c(Ie("abort"))}close(){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(Ie("close"))}getWriter(){if(!he(this))throw Ie("getWriter");return Lr(this)}}function Lr(e){return new L(e)}function he(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof ne}function pe(e){return e._writer!==void 0}function Xe(e,t){var r;if(e._state==="closed"||e._state==="errored")return v(void 0);e._writableStreamController._abortReason=t,(r=e._writableStreamController._abortController)===null||r===void 0||r.abort(t);const o=e._state;if(o==="closed"||o==="errored")return v(void 0);if(e._pendingAbortRequest!==void 0)return e._pendingAbortRequest._promise;let i=!1;o==="erroring"&&(i=!0,t=void 0);const n=C((s,a)=>{e._pendingAbortRequest={_promise:void 0,_resolve:s,_reject:a,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=n,i||zt(e,t),n}function $r(e){const t=e._state;if(t==="closed"||t==="errored")return c(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=C((n,s)=>{const a={_resolve:n,_reject:s};e._closeRequest=a}),o=e._writer;var i;return o!==void 0&&e._backpressure&&t==="writable"&&$t(o),At(i=e._writableStreamController,Yr,0),tt(i),r}function vt(e,t){e._state!=="writable"?Bt(e):zt(e,t)}function zt(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const o=e._writer;var i;o!==void 0&&Mr(o,t),(i=e)._inFlightWriteRequest===void 0&&i._inFlightCloseRequest===void 0&&r._started&&Bt(e)}function Bt(e){e._state="errored",e._writableStreamController[or]();const t=e._storedError;if(e._writeRequests.forEach(o=>{o._reject(t)}),e._writeRequests=new A,e._pendingAbortRequest===void 0)return void Fe(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void Fe(e);W(e._writableStreamController[rr](r._reason),()=>(r._resolve(),Fe(e),null),o=>(r._reject(o),Fe(e),null))}function F(e){return e._closeRequest!==void 0||e._inFlightCloseRequest!==void 0}function Fe(e){e._closeRequest!==void 0&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;t!==void 0&&Lt(t,e._storedError)}function Ft(e,t){const r=e._writer;r!==void 0&&t!==e._backpressure&&(t?rt(r):$t(r)),e._backpressure=t}Object.defineProperties(ne.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),m(ne.prototype.abort,"abort"),m(ne.prototype.close,"close"),m(ne.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ne.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class L{constructor(t){if(ue(t,1,"WritableStreamDefaultWriter"),Ir(t,"First parameter"),pe(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;const r=t._state;if(r==="writable")!F(t)&&t._backpressure?rt(this):Kt(this),He(this);else if(r==="erroring")gt(this,t._storedError),He(this);else if(r==="closed")Kt(this),He(this),Gr(this);else{const o=t._storedError;gt(this,o),Hr(this,o)}}get closed(){return Z(this)?this._closedPromise:c(ee("closed"))}get desiredSize(){if(!Z(this))throw ee("desiredSize");if(this._ownerWritableStream===void 0)throw Ee("desiredSize");return function(t){const r=t._ownerWritableStream,o=r._state;return o==="errored"||o==="erroring"?null:o==="closed"?0:Vr(r._writableStreamController)}(this)}get ready(){return Z(this)?this._readyPromise:c(ee("ready"))}abort(t=void 0){return Z(this)?this._ownerWritableStream===void 0?c(Ee("abort")):(r=t,Xe(this._ownerWritableStream,r)):c(ee("abort"));var r}close(){if(!Z(this))return c(ee("close"));const t=this._ownerWritableStream;return t===void 0?c(Ee("close")):F(t)?c(new TypeError("Cannot close an already-closing stream")):Dr(this)}releaseLock(){if(!Z(this))throw ee("releaseLock");this._ownerWritableStream!==void 0&&xr(this)}write(t=void 0){return Z(this)?this._ownerWritableStream===void 0?c(Ee("write to")):Nr(this,t):c(ee("write"))}}function Z(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof L}function Dr(e){return $r(e._ownerWritableStream)}function Mr(e,t){e._readyPromiseState==="pending"?Xr(e,t):gt(e,t)}function xr(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");var o,i;Mr(e,r),i=r,(o=e)._closedPromiseState==="pending"?Lt(o,i):Hr(o,i),t._writer=void 0,e._ownerWritableStream=void 0}function Nr(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,i=function(l,u){if(l._strategySizeAlgorithm===void 0)return 1;try{return l._strategySizeAlgorithm(u)}catch(h){return wt(l,h),1}}(o,t);if(r!==e._ownerWritableStream)return c(Ee("write to"));const n=r._state;if(n==="errored")return c(r._storedError);if(F(r)||n==="closed")return c(new TypeError("The stream is closing or closed and cannot be written to"));if(n==="erroring")return c(r._storedError);const s=(a=r,C((l,u)=>{const h={_resolve:l,_reject:u};a._writeRequests.push(h)}));var a;return function(l,u,h){try{At(l,u,h)}catch(b){return void wt(l,b)}const f=l._controlledWritableStream;F(f)||f._state!=="writable"||Ft(f,It(l)),tt(l)}(o,t,i),s}Object.defineProperties(L.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),m(L.prototype.abort,"abort"),m(L.prototype.close,"close"),m(L.prototype.releaseLock,"releaseLock"),m(L.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(L.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const Yr={};class Oe{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!ct(this))throw dt("abortReason");return this._abortReason}get signal(){if(!ct(this))throw dt("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(t=void 0){if(!ct(this))throw dt("error");this._controlledWritableStream._state==="writable"&&Ur(this,t)}[rr](t){const r=this._abortAlgorithm(t);return Je(this),r}[or](){Q(this)}}function ct(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof Oe}function Je(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Vr(e){return e._strategyHWM-e._queueTotalSize}function tt(e){const t=e._controlledWritableStream;if(!e._started||t._inFlightWriteRequest!==void 0)return;if(t._state==="erroring")return void Bt(t);if(e._queue.length===0)return;const r=e._queue.peek().value;r===Yr?function(o){const i=o._controlledWritableStream;var n;(n=i)._inFlightCloseRequest=n._closeRequest,n._closeRequest=void 0,_t(o);const s=o._closeAlgorithm();Je(o),W(s,()=>(function(a){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";const l=a._writer;l!==void 0&&Gr(l)}(i),null),a=>{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;var l,u})}(e):function(o,i){const n=o._controlledWritableStream;var s;(s=n)._inFlightWriteRequest=s._writeRequests.shift(),W(o._writeAlgorithm(i),()=>{var a;(a=n)._inFlightWriteRequest._resolve(void 0),a._inFlightWriteRequest=void 0;const l=n._state;if(_t(o),!F(n)&&l==="writable"){const u=It(o);Ft(n,u)}return tt(o),null},a=>{return n._state==="writable"&&Je(o),u=a,(l=n)._inFlightWriteRequest._reject(u),l._inFlightWriteRequest=void 0,vt(l,u),null;var l,u})}(e,r)}function wt(e,t){e._controlledWritableStream._state==="writable"&&Ur(e,t)}function It(e){return Vr(e)<=0}function Ur(e,t){const r=e._controlledWritableStream;Je(e),zt(r,t)}function Ie(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function dt(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function ee(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Ee(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function He(e){e._closedPromise=C((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Hr(e,t){He(e),Lt(e,t)}function Lt(e,t){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")}function Gr(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function rt(e){e._readyPromise=C((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function gt(e,t){rt(e),Xr(e,t)}function Kt(e){rt(e),$t(e)}function Xr(e,t){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")}function $t(e){e._readyPromise_resolve!==void 0&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(Oe.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Oe.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:void 0,bo=function(){const e=fo?.DOMException;return function(t){if(typeof t!="function"&&typeof t!="object"||t.name!=="DOMException")return!1;try{return new t,!0}catch{return!1}}(e)?e:void 0}()||function(){const e=function(t,r){this.message=t||"",this.name=r||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return m(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function Qt(e,t,r,o,i,n){const s=be(e),a=Lr(t);e._disturbed=!0;let l=!1,u=v(void 0);return C((h,f)=>{let b;if(n!==void 0){if(b=()=>{const d=n.reason!==void 0?n.reason:new bo("Aborted","AbortError"),p=[];o||p.push(()=>t._state==="writable"?Xe(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)},n.aborted)return void b();n.addEventListener("abort",b)}var w,T,q;if(_(e,s._closedPromise,d=>(o?z(!0,d):g(()=>Xe(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){const p=d._ownerWritableStream,S=p._state;return F(p)||S==="closed"?v(void 0):S==="errored"?c(p._storedError):Dr(d)}(a)),null),w._state==="closed"?q():nt(T,q),F(t)||t._state==="closed"){const d=new TypeError("the destination writable stream closed before all data could be piped to it");i?z(!0,d):g(()=>k(e,d),!0,d)}function y(){const d=u;return B(u,()=>d!==u?y():void 0)}function _(d,p,S){d._state==="errored"?S(d._storedError):bt(p,S)}function g(d,p,S){function E(){return W(d(),()=>I(p,S),O=>I(!0,O)),null}l||(l=!0,t._state!=="writable"||F(t)?E():nt(y(),E))}function z(d,p){l||(l=!0,t._state!=="writable"||F(t)?I(d,p):nt(y(),()=>I(d,p)))}function I(d,p){return xr(a),M(s),n!==void 0&&n.removeEventListener("abort",b),d?f(p):h(void 0),null}Ae(C((d,p)=>{(function S(E){E?d():B(l?v(!0):B(a._readyPromise,()=>C((O,x)=>{Ce(s,{_chunkSteps:N=>{u=B(Nr(a,N),void 0,Pe),O(!1)},_closeSteps:()=>O(!0),_errorSteps:x})})),S,p)})(!1)}))})}class D{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Le(this))throw $e("desiredSize");return Dt(this)}close(){if(!Le(this))throw $e("close");if(!we(this))throw new TypeError("The stream is not in a state that permits close");ye(this)}enqueue(t=void 0){if(!Le(this))throw $e("enqueue");if(!we(this))throw new TypeError("The stream is not in a state that permits enqueue");return ve(this,t)}error(t=void 0){if(!Le(this))throw $e("error");J(this,t)}[Rt](t){Q(this);const r=this._cancelAlgorithm(t);return Ke(this),r}[Tt](t){const r=this._controlledReadableStream;if(this._queue.length>0){const o=_t(this);this._closeRequested&&this._queue.length===0?(Ke(this),We(r)):je(this),t._chunkSteps(o)}else ur(r,t),je(this)}[qt](){}}function Le(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof D}function je(e){Jr(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,W(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,je(e)),null),t=>(J(e,t),null))))}function Jr(e){const t=e._controlledReadableStream;return!!we(e)&&!!e._started&&(!!(X(t)&&Ze(t)>0)||Dt(e)>0)}function Ke(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function ye(e){if(!we(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(Ke(e),We(t))}function ve(e,t){if(!we(e))return;const r=e._controlledReadableStream;if(X(r)&&Ze(r)>0)jt(r,t,!1);else{let o;try{o=e._strategySizeAlgorithm(t)}catch(i){throw J(e,i),i}try{At(e,t,o)}catch(i){throw J(e,i),i}}je(e)}function J(e,t){const r=e._controlledReadableStream;r._state==="readable"&&(Q(e),Ke(e),Qr(r,t))}function Dt(e){const t=e._controlledReadableStream._state;return t==="errored"?null:t==="closed"?0:e._strategyHWM-e._queueTotalSize}function we(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&t==="readable"}function Kr(e,t,r,o,i,n,s){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Q(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,je(t),null),a=>(J(t,a),null))}function $e(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function ho(e){return R(t=e)&&t.getReader!==void 0?function(r){let o;return o=Qe(Pe,function(){let i;try{i=r.read()}catch(n){return c(n)}return se(i,n=>{if(!R(n))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(n.done)ye(o._readableStreamController);else{const s=n.value;ve(o._readableStreamController,s)}})},function(i){try{return v(r.cancel(i))}catch(n){return c(n)}},0),o}(e.getReader()):function(r){let o;const i=hr(r,"async");return o=Qe(Pe,function(){let n;try{n=_r(i)}catch(s){return c(s)}return se(v(n),s=>{if(!R(s))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(s.done)ye(o._readableStreamController);else{const a=s.value;ve(o._readableStreamController,a)}})},function(n){const s=i.iterator;let a;try{a=Te(s,"return")}catch(l){return c(l)}return a===void 0?v(void 0):se(ge(a,s,[n]),l=>{if(!R(l))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})},0),o}(e);var t}function _o(e,t,r){return K(e,r),o=>ge(e,t,[o])}function po(e,t,r){return K(e,r),o=>ge(e,t,[o])}function mo(e,t,r){return K(e,r),o=>me(e,t,[o])}function yo(e,t){if((e=`${e}`)!="bytes")throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Zt(e,t){H(e,t);const r=e?.preventAbort,o=e?.preventCancel,i=e?.preventClose,n=e?.signal;return n!==void 0&&function(s,a){if(!function(l){if(typeof l!="object"||l===null)return!1;try{return typeof l.aborted=="boolean"}catch{return!1}}(s))throw new TypeError(`${a} is not an AbortSignal.`)}(n,`${t} has member 'signal' that`),{preventAbort:!!r,preventCancel:!!o,preventClose:!!i,signal:n}}Object.defineProperties(D.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),m(D.prototype.close,"close"),m(D.prototype.enqueue,"enqueue"),m(D.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(D.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class P{constructor(t={},r={}){t===void 0?t=null:sr(t,"First parameter");const o=Fr(r,"Second parameter"),i=function(n,s){H(n,s);const a=n,l=a?.autoAllocateChunkSize,u=a?.cancel,h=a?.pull,f=a?.start,b=a?.type;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`)}}(t,"First parameter");if(Mt(this),i.type==="bytes"){if(o.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");(function(n,s,a){const l=Object.create($.prototype);let u,h,f;u=s.start!==void 0?()=>s.start(l):()=>{},h=s.pull!==void 0?()=>s.pull(l):()=>v(void 0),f=s.cancel!==void 0?w=>s.cancel(w):()=>v(void 0);const b=s.autoAllocateChunkSize;if(b===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Ar(n,l,u,h,f,a,b)})(this,i,yt(o,0))}else{const n=Br(o);(function(s,a,l,u){const h=Object.create(D.prototype);let f,b,w;f=a.start!==void 0?()=>a.start(h):()=>{},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)})(this,i,yt(o,1),n)}}get locked(){if(!Y(this))throw te("locked");return X(this)}cancel(t=void 0){return Y(this)?X(this)?c(new TypeError("Cannot cancel a stream that already has a reader")):k(this,t):c(te("cancel"))}getReader(t=void 0){if(!Y(this))throw te("getReader");return function(r,o){H(r,o);const i=r?.mode;return{mode:i===void 0?void 0:io(i,`${o} has member 'mode' that`)}}(t,"First parameter").mode===void 0?be(this):Xt(this)}pipeThrough(t,r={}){if(!Y(this))throw te("pipeThrough");ue(t,1,"pipeThrough");const o=function(n,s){H(n,s);const a=n?.readable;Nt(a,"readable","ReadableWritablePair"),Ot(a,`${s} has member 'readable' that`);const l=n?.writable;return Nt(l,"writable","ReadableWritablePair"),Ir(l,`${s} has member 'writable' that`),{readable:a,writable:l}}(t,"First parameter"),i=Zt(r,"Second parameter");if(X(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(pe(o.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Ae(Qt(this,o.writable,i.preventClose,i.preventAbort,i.preventCancel,i.signal)),o.readable}pipeTo(t,r={}){if(!Y(this))return c(te("pipeTo"));if(t===void 0)return c("Parameter 1 is required in 'pipeTo'.");if(!he(t))return c(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let o;try{o=Zt(r,"Second parameter")}catch(i){return c(i)}return X(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)}tee(){if(!Y(this))throw te("tee");return Se(oe((t=this)._readableStreamController)?function(r){let o,i,n,s,a,l=be(r),u=!1,h=!1,f=!1,b=!1,w=!1;const T=C(d=>{a=d});function q(d){bt(d._closedPromise,p=>(d!==l||(j(n._readableStreamController,p),j(s._readableStreamController,p),b&&w||a(void 0)),null))}function y(){ae(l)&&(M(l),l=be(r),q(l)),Ce(l,{_chunkSteps:d=>{le(()=>{h=!1,f=!1;const p=d;let S=d;if(!b&&!w)try{S=Gt(d)}catch(E){return j(n._readableStreamController,E),j(s._readableStreamController,E),void a(k(r,E))}b||Ye(n._readableStreamController,p),w||Ye(s._readableStreamController,S),u=!1,h?g():f&&z()})},_closeSteps:()=>{u=!1,b||qe(n._readableStreamController),w||qe(s._readableStreamController),n._readableStreamController._pendingPullIntos.length>0&&Ve(n._readableStreamController,0),s._readableStreamController._pendingPullIntos.length>0&&Ve(s._readableStreamController,0),b&&w||a(void 0)},_errorSteps:()=>{u=!1}})}function _(d,p){G(l)&&(M(l),l=Xt(r),q(l));const S=p?s:n,E=p?n:s;Wr(l,d,1,{_chunkSteps:O=>{le(()=>{h=!1,f=!1;const x=p?w:b;if(p?b:w)x||Ue(S._readableStreamController,O);else{let N;try{N=Gt(O)}catch(ot){return j(S._readableStreamController,ot),j(E._readableStreamController,ot),void a(k(r,ot))}x||Ue(S._readableStreamController,O),Ye(E._readableStreamController,N)}u=!1,h?g():f&&z()})},_closeSteps:O=>{u=!1;const x=p?w:b,N=p?b:w;x||qe(S._readableStreamController),N||qe(E._readableStreamController),O!==void 0&&(x||Ue(S._readableStreamController,O),!N&&E._readableStreamController._pendingPullIntos.length>0&&Ve(E._readableStreamController,0)),x&&N||a(void 0)},_errorSteps:()=>{u=!1}})}function g(){if(u)return h=!0,v(void 0);u=!0;const d=mt(n._readableStreamController);return d===null?y():_(d._view,!1),v(void 0)}function z(){if(u)return f=!0,v(void 0);u=!0;const d=mt(s._readableStreamController);return d===null?y():_(d._view,!0),v(void 0)}function I(){}return n=er(I,g,function(d){if(b=!0,o=d,w){const p=Se([o,i]),S=k(r,p);a(S)}return T}),s=er(I,z,function(d){if(w=!0,i=d,b){const p=Se([o,i]),S=k(r,p);a(S)}return T}),q(l),[n,s]}(t):function(r){const o=be(r);let i,n,s,a,l,u=!1,h=!1,f=!1,b=!1;const w=C(y=>{l=y});function T(){return u?(h=!0,v(void 0)):(u=!0,Ce(o,{_chunkSteps:y=>{le(()=>{h=!1;const _=y,g=y;f||ve(s._readableStreamController,_),b||ve(a._readableStreamController,g),u=!1,h&&T()})},_closeSteps:()=>{u=!1,f||ye(s._readableStreamController),b||ye(a._readableStreamController),f&&b||l(void 0)},_errorSteps:()=>{u=!1}}),v(void 0))}function q(){}return s=Qe(q,T,function(y){if(f=!0,i=y,b){const _=Se([i,n]),g=k(r,_);l(g)}return w}),a=Qe(q,T,function(y){if(b=!0,n=y,f){const _=Se([i,n]),g=k(r,_);l(g)}return w}),bt(o._closedPromise,y=>(J(s._readableStreamController,y),J(a._readableStreamController,y),f&&b||l(void 0),null)),[s,a]}(t));var t}values(t=void 0){if(!Y(this))throw te("values");return function(o,i){const n=be(o),s=new pr(n,i),a=Object.create(mr);return a._asyncIteratorImpl=s,a}(this,(r=t,H(r,"First parameter"),{preventCancel:!!r?.preventCancel}).preventCancel);var r}[ke](t){return this.values(t)}static from(t){return ho(t)}}function Qe(e,t,r,o=1,i=()=>1){const n=Object.create(P.prototype);return Mt(n),Kr(n,Object.create(D.prototype),e,t,r,o,i),n}function er(e,t,r){const o=Object.create(P.prototype);return Mt(o),Ar(o,Object.create($.prototype),e,t,r,0,void 0),o}function Mt(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Y(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof P}function X(e){return e._reader!==void 0}function k(e,t){if(e._disturbed=!0,e._state==="closed")return v(void 0);if(e._state==="errored")return c(e._storedError);We(e);const r=e._reader;if(r!==void 0&&ae(r)){const o=r._readIntoRequests;r._readIntoRequests=new A,o.forEach(i=>{i._closeSteps(void 0)})}return se(e._readableStreamController[Rt](t),Pe)}function We(e){e._state="closed";const t=e._reader;if(t!==void 0&&(ar(t),G(t))){const r=t._readRequests;t._readRequests=new A,r.forEach(o=>{o._closeSteps()})}}function Qr(e,t){e._state="errored",e._storedError=t;const r=e._reader;r!==void 0&&(Pt(r,t),G(r)?dr(r,t):zr(r,t))}function te(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function ft(e,t){var r;(r=e._transformStreamController)._transformAlgorithm=void 0,r._flushAlgorithm=void 0,r._cancelAlgorithm=void 0,wt(e._writable._writableStreamController,t),function(o){o._backpressure&&Zr(o,!1)}(e)}function Zr(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=C(r=>{e._backpressureChangePromise_resolve=r}),e._backpressure=t}Object.defineProperties(P,{from:{enumerable:!0}}),Object.defineProperties(P.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),m(P.from,"from"),m(P.prototype.cancel,"cancel"),m(P.prototype.getReader,"getReader"),m(P.prototype.pipeThrough,"pipeThrough"),m(P.prototype.pipeTo,"pipeTo"),m(P.prototype.tee,"tee"),m(P.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(P.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(P.prototype,ke,{value:P.prototype.values,writable:!0,configurable:!0}),m(e=>e.byteLength,"size"),m(()=>1,"size");class re{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!De(this))throw Me("desiredSize");return Dt(this._controlledTransformStream._readable._readableStreamController)}enqueue(t=void 0){if(!De(this))throw Me("enqueue");(function(r,o){const i=r._controlledTransformStream,n=i._readable._readableStreamController;if(!we(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ve(n,o)}catch(a){throw ft(i,a),i._readable._storedError}var s;!Jr(s=n)!==i._backpressure&&Zr(i,!0)})(this,t)}error(t=void 0){if(!De(this))throw Me("error");var r,o,i;r=t,o=this._controlledTransformStream,i=r,J(o._readable._readableStreamController,i),ft(o,i)}terminate(){if(!De(this))throw Me("terminate");(function(t){const r=t._controlledTransformStream;ye(r._readable._readableStreamController),ft(r,new TypeError("TransformStream terminated"))})(this)}}function De(e){return!!R(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof re}function Me(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}Object.defineProperties(re.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),m(re.prototype.enqueue,"enqueue"),m(re.prototype.error,"error"),m(re.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(re.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),exports.ReadableByteStreamController=$,exports.ReadableStream=P,exports.ReadableStreamBYOBReader=U,exports.ReadableStreamBYOBRequest=ie,exports.ReadableStreamDefaultController=D,exports.ReadableStreamDefaultReader=V,exports.TransformStreamDefaultController=re,exports.WritableStream=ne,exports.WritableStreamDefaultController=Oe,exports.WritableStreamDefaultWriter=L;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.1
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./BEzNZIQy5IlW0iAl.cjs");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:p,constructorOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./C-_njVetl9K8CJri.cjs")).then(n=>n.p),m=new TextDecoder().decode(a);let f=-1;const t=new y.Zy(h),c=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.k.Orientation.Row}),u=d?.onProgress;let e=0;const r={...i,transform:(n,g)=>{i?.transform&&(n=i.transform(n,g));const s=g;s===0&&f++;let l=n??"";return c.pushAt(f,s,l),e++,e%1e5==0&&u?.(e),n}};return o.parse(m,r).data,c.apply({textParser:!0,...p}),t},exports.toBufferCSV=async(a,d)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:p=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:m={}}=d||{},f=await Promise.resolve().then(()=>require("./C-_njVetl9K8CJri.cjs")).then(s=>s.p);if(!a)throw new Error("workbook must be specified");let t=null;if(o===null?t=a.getSelectedSheet():typeof o=="number"?t=a.getSheets().search()[o]:typeof o=="string"&&(t=a.getSheets().getByName(o)),!t)throw new Error("invalid sheetKey specified");let c=null;const u=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!p){const s=i?r.getRowStart():0,l=p?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const w=l.getCoords(),S=l.getCell();c!==w.rowIndex&&(e&&u.push(e),e=[],c=w.rowIndex);const x=S.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&u.push(e);const n={...m},g=f.unparse(u,n);return new TextEncoder().encode(g)};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.1
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),c=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),c=require("./BEzNZIQy5IlW0iAl.cjs"),q=["Ok","Cancel"],b=t.memo(h=>{const{tableOptions:a,context:p,onOption:u,onValidateOption:y,onDone:d,options:g=q,defaultOption:l=g?.[0],cancelOption:s="Cancel",sx:m,...O}=h,[f,C]=t.useState(!1),[o,j]=t.useState(()=>a?.hasHeader??!1),[i,S]=t.useState(()=>a?.ranges??null),T=c.T(e=>{const x={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),d?.({option:e,tableOptions:x})},[d,u,l,s,o,i,a]),k=t.useCallback(async(e,x)=>null,[]);return n.jsx(c.E8,{title:"Insert Table",options:g,onDone:T,onValidateOption:k,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...m},...O,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(c.RangeInput,{formName:"range",value:i,onChangeInput:e=>S(e),resolvedAddress:p.getNames().getRanges.bind(p.getNames()),onFocus:e=>{f||e.target?.select(),C(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>j(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
|