@sheetxl/studio-vanilla 0.4.12 → 0.4.14
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/README.md +2 -2
- package/browser/cjs/10IK8MFijJb-yvV6.cjs +7 -0
- package/browser/cjs/1bCMnueqxHW3rn0c.cjs +6 -0
- package/browser/cjs/AnJTeEGq7VP4T1b7.cjs +161 -0
- package/browser/cjs/BH3MYcOF7rxLX3Bk.cjs +15 -0
- package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +6 -0
- package/browser/cjs/BU5k1OZewc-Z-kR9.cjs +6 -0
- package/browser/cjs/BlwK-VslgEVH2cgX.cjs +145 -0
- package/browser/cjs/Bm9fNNMIOLIwq-94.cjs +6 -0
- package/browser/cjs/BtiY-n4sGy6WaqNg.cjs +32 -0
- package/browser/cjs/BxgDhdrrKrJMEaXd.cjs +6 -0
- package/browser/cjs/BzT1y15V6Zs7c_zX.cjs +6 -0
- package/browser/cjs/C0ySf2emOB0Mslc-.cjs +6 -0
- package/browser/cjs/CE5U7gB5L-PE17gV.cjs +6 -0
- package/browser/cjs/CHd9vauNLHnOLflj.cjs +6 -0
- package/browser/cjs/CJZtyunL_qaXFylY.cjs +12 -0
- package/browser/cjs/CJoJ19i1z94kndlS.cjs +19 -0
- package/browser/cjs/CNcsGELwCAV-A5oH.cjs +16 -0
- package/browser/cjs/CTuM_aZX8wZICUe_.cjs +6 -0
- package/browser/cjs/CWW_yQpIswo7DEAT.cjs +6 -0
- package/browser/cjs/CXIHULOe7x4DYKXw.cjs +12 -0
- package/browser/cjs/CYLnJHryQcQO4XoG.cjs +6 -0
- package/browser/cjs/C_mbaid3FQ52usBI.cjs +6 -0
- package/browser/cjs/Cj_1qUo5cZ3FnOpK.cjs +6 -0
- package/browser/cjs/Cl0XSnWVDoaHTIlF.cjs +6 -0
- package/browser/cjs/CnLdhURNkVXo_0Eg.cjs +6 -0
- package/browser/cjs/CpIIsygD5mnJyl47.cjs +1501 -0
- package/browser/cjs/CpRfx14is2_4Wgp3.cjs +6 -0
- package/browser/cjs/Cuq8Nim-ol5Gdehe.cjs +6 -0
- package/browser/cjs/D4NcrJlqcLExwCNT.cjs +124 -0
- package/browser/cjs/D4vbOk4hD8-b-c10.cjs +6 -0
- package/browser/cjs/D5YUIQeOcujtq6XS.cjs +7 -0
- package/browser/cjs/D6uIvR-6Y690_Em2.cjs +11 -0
- package/browser/cjs/DAbScbuk-sjZXMIC.cjs +11 -0
- package/browser/cjs/DBNXGIWfZmgb_sHL.cjs +6 -0
- package/browser/cjs/DCd5OZXj2IRbxEF2.cjs +6 -0
- package/browser/cjs/DFNisISrsMnZrV4B.cjs +6 -0
- package/browser/cjs/DIYOARVcGtRjKpjZ.cjs +6 -0
- package/browser/cjs/DL4HgriZ3TY2K-QP.cjs +6 -0
- package/browser/cjs/DPbzY4ppgKPrdbWc.cjs +6 -0
- package/browser/cjs/DQGdVVTxixgptLdj.cjs +366 -0
- package/browser/cjs/DWzQm8Q32qNP7qKL.cjs +6 -0
- package/browser/cjs/D_7RtbQABH1zdcjr.cjs +7 -0
- package/browser/cjs/D_Q0s9KLnWHwKxTK.cjs +6 -0
- package/browser/cjs/DdTcwutSPJMeCIv3.cjs +6 -0
- package/browser/cjs/DlnKrZRyxBfbqaTi.cjs +13 -0
- package/browser/cjs/DtpB0PMEtamaB-Hv.cjs +6 -0
- package/browser/cjs/Dv8SE05ABKNLPY6A.cjs +6 -0
- package/browser/cjs/DxBLU16_E62Umowp.cjs +6 -0
- package/browser/cjs/VU_KaqGTjvnisS9e.cjs +6 -0
- package/browser/cjs/bS_BOH9cvVCFy36v.cjs +6 -0
- package/browser/cjs/dbUUj8LyIitsdYpk.cjs +6 -0
- package/browser/cjs/eZGLUWbfY3JdZRM5.cjs +6 -0
- package/browser/cjs/index.cjs +3 -4
- package/browser/cjs/mBk4Z4LZ65b3f58_.cjs +6 -0
- package/browser/cjs/rIOsSIPwxoXlIawS.cjs +6 -0
- package/browser/cjs/sMBG5eQ3-iacLXUm.cjs +6 -0
- package/browser/cjs/tShlMZrIxsGZSeHX.cjs +42 -0
- package/browser/cjs/xDqIifM_--oXscCV.cjs +6 -0
- package/browser/cjs/yBSdtSSuNERefFhR.cjs +15 -0
- package/browser/esm/4eRu4yzXkvCBip8J.mjs +10 -0
- package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
- package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
- package/browser/esm/B4ji-HZTY0uvH8r7.mjs +10 -0
- package/browser/esm/B8TNpfJ8ymQcPriE.mjs +24 -0
- package/{cdn/assets/CiY3HumGDc_5bMtR.js → browser/esm/BBDu-GNDE7ZA-1sJ.mjs} +15 -17
- package/browser/esm/BF5nlSYZ38RJ0dPX.mjs +10 -0
- package/browser/esm/BHy77Km4i4t5U7ka.mjs +10 -0
- package/browser/esm/BIUVt79NHXdZx2Dz.mjs +10 -0
- package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
- package/browser/esm/BPen6C7JE2sWVgdi.mjs +10 -0
- package/browser/esm/BUqd1uVUNoWmepd2.mjs +148 -0
- package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
- package/browser/esm/BZxAttR2mi9td3k1.mjs +10 -0
- package/browser/esm/B_pEA9HeXKvEOCdS.mjs +10 -0
- package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
- package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
- package/browser/esm/BfFDvyaRcdKS0wPD.mjs +10 -0
- package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
- package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
- package/browser/esm/BvYUsRgBXLSuaQ-S.mjs +10 -0
- package/browser/esm/BzE-61bmpRQzEVPt.mjs +10 -0
- package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
- package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
- package/{cdn/assets/CfObTzh8pGdd8D23.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
- package/browser/esm/CITPwlsNzJvv551I.mjs +10 -0
- package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
- package/browser/esm/CN73n4VDayKh_l1J.mjs +10 -0
- package/browser/esm/CcARDY0PFSWkqsG9.mjs +21 -0
- package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
- package/browser/esm/Cmtx4dAVZrwq5cVO.mjs +10 -0
- package/browser/esm/Crza3kRJdEVylOfk.mjs +29 -0
- package/browser/esm/D3L89e08b7ewR6mt.mjs +21 -0
- package/browser/esm/D4G17ip9xxOX5jDd.mjs +3934 -0
- package/browser/esm/D9eVsUckA6bWBHni.mjs +10 -0
- package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
- package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
- package/{cdn/assets/DWJE3K3jMKMTCi3o.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
- package/browser/esm/DHPHhaCxihdR9Hl6.mjs +10 -0
- package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +47 -0
- package/browser/esm/DQLk_UmdpJBt-zZi.mjs +5582 -0
- package/browser/esm/DR7oVoNSe0FFWHOr.mjs +48 -0
- package/browser/esm/DVRMAeHUj0-TY-vK.mjs +10 -0
- package/browser/esm/DXIWAG-DUKHzNlRl.mjs +12 -0
- package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
- package/browser/esm/Dft4BSeY0bp0A6z0.mjs +10 -0
- package/browser/esm/DgO85Q5iHe-ZmvtQ.mjs +633 -0
- package/browser/esm/DwRHGEuscm3FvnkM.mjs +1665 -0
- package/browser/esm/HyTvrvH0vItPFnFG.mjs +472 -0
- package/{cdn/assets/DgLPO_EQ9DYoGgec.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +174 -172
- package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
- package/browser/esm/aLv-xujBO4X6ilhV.mjs +10 -0
- package/{cdn/assets/DJQOS9qxVAlpgDMt.js → browser/esm/c9fba0RuWGogsH0X.mjs} +21 -23
- package/browser/esm/index.mjs +6 -2
- package/browser/esm/jkSJc6Omxbf-rPQY.mjs +10 -0
- package/browser/esm/uuCmCmYQQXgwyRSd.mjs +10 -0
- package/browser/esm/w3TGaFTjdsc4XTcz.mjs +1466 -0
- package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
- package/browser/esm/wxvli1IH1NkfqE6-.mjs +10 -0
- package/cdn/assets/0fI22OQK5IczUH6s.js +29 -0
- package/cdn/assets/4eRu4yzXkvCBip8J.js +10 -0
- package/cdn/assets/5HYy7pIZxQRDUQl-.js +50 -0
- package/cdn/assets/6oc_f4xkoSmftsRd.js +22 -0
- package/cdn/assets/73gcCsbqgbW3KIoA.js +1346 -0
- package/cdn/assets/B3TPDOzYf_VRBIr6.js +2177 -0
- package/cdn/assets/B4HW_cy7gbE01jar.js +390 -0
- package/cdn/assets/B4ji-HZTY0uvH8r7.js +10 -0
- package/cdn/assets/B7Ky6m4VWP8vxhPt.js +1702 -0
- package/cdn/assets/B8TNpfJ8ymQcPriE.js +24 -0
- package/cdn/assets/BEfetwH6zTr6B51I.js +3755 -0
- package/cdn/assets/BF5nlSYZ38RJ0dPX.js +10 -0
- package/cdn/assets/BHy77Km4i4t5U7ka.js +10 -0
- package/cdn/assets/BIUVt79NHXdZx2Dz.js +10 -0
- package/cdn/assets/BPen6C7JE2sWVgdi.js +10 -0
- package/cdn/assets/BS1p7DgoyO-WkvB8.js +41 -0
- package/cdn/assets/BZxAttR2mi9td3k1.js +10 -0
- package/cdn/assets/B_pEA9HeXKvEOCdS.js +10 -0
- package/cdn/assets/BdFNxdtES-3_yQ9R.js +421 -0
- package/cdn/assets/BfFDvyaRcdKS0wPD.js +10 -0
- package/cdn/assets/{phYz0vGgqIEQ2hco.js → BiKaXKU3o287mgkN.js} +1 -1
- package/cdn/assets/BvYUsRgBXLSuaQ-S.js +10 -0
- package/cdn/assets/BzE-61bmpRQzEVPt.js +10 -0
- package/cdn/assets/C0yI-QYraFhnJUdD.js +49 -0
- package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
- package/cdn/assets/{qA23x9VVBL9R4qxN.js → C3FTuqvfGalOVHql.js} +9 -9
- package/cdn/assets/{BSAH88RG1oubICau.js → C3W0xsNrt-Was9g-.js} +26 -26
- package/cdn/assets/C8rQWD8C7ccUHNZL.js +3934 -0
- package/cdn/assets/CITPwlsNzJvv551I.js +10 -0
- package/cdn/assets/CN73n4VDayKh_l1J.js +10 -0
- package/cdn/assets/CWkF-50YF43t7qge.js +472 -0
- package/cdn/assets/{Bv0Xb6DdcQbPYJKo.js → CaKPs_ILqLIWfUUN.js} +10 -11
- package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
- package/cdn/assets/Cdx6LrqtHZKbwl63.js +425 -0
- package/cdn/assets/ChB-XZno7w9v221u.js +1575 -0
- package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
- package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
- package/cdn/assets/{dk2teWHDODYNarJY.js → CrBywNOOyPHSBoTT.js} +4 -4
- package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
- package/cdn/assets/DBpku3D2DSTmW4II.js +820 -0
- package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
- package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
- package/cdn/assets/DMWARnjq06oQnfrL.js +58 -0
- package/cdn/assets/{BoOefjrM4kZ-YXxa.js → DRa6yXWuTlAjuaKT.js} +2 -2
- package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
- package/cdn/assets/DXIWAG-DUKHzNlRl.js +12 -0
- package/cdn/assets/{B3kbBB6oxKBErwzn.js → DYowHOSLHcADsXuK.js} +3 -3
- package/cdn/assets/{DkS6quwH1okWaho6.js → DZNoPrlxULASVlOi.js} +14 -14
- package/cdn/assets/{BB66NDz7S3ocEfRB.js → DaUJajqmQYuM0Gew.js} +51 -51
- package/cdn/assets/DcdQwhlGoI1knRUy.js +46 -0
- package/cdn/assets/Dft4BSeY0bp0A6z0.js +10 -0
- package/cdn/assets/DgO85Q5iHe-ZmvtQ.js +633 -0
- package/cdn/assets/{DDW1WJ2IM_9ZUfKm.js → Dm0hrXCbV7DITOhi.js} +2 -2
- package/cdn/assets/DnWjhq4ZlgIuFcii.js +21 -0
- package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
- package/cdn/assets/{BT5EcMEFBsphczwC.js → DzyNujjbHLXo9UmH.js} +565 -568
- package/cdn/assets/EYTSqAG9YOdb1vKx.js +48823 -0
- package/cdn/assets/{D_5RgqgwXsoqLJDR.js → Ux2jUY_EwSsYBCov.js} +1 -1
- package/cdn/assets/{DfmaL8DmDaFAv8M_.js → XoKiuP2ZFq0cNGkH.js} +4 -4
- package/cdn/assets/Zi3E5Kzxw2FPtLVL.js +5582 -0
- package/cdn/assets/aLv-xujBO4X6ilhV.js +10 -0
- package/cdn/assets/jkSJc6Omxbf-rPQY.js +10 -0
- package/cdn/assets/uuCmCmYQQXgwyRSd.js +10 -0
- package/cdn/assets/wV8riZWKJE7AoKQk.js +1365 -0
- package/cdn/assets/wxvli1IH1NkfqE6-.js +10 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -5
- package/types/index.d.ts +1 -0
- package/browser/cjs/B35OZ0mE8aINQPP9.cjs +0 -7
- package/browser/cjs/BPzEQNENF-gEBkg9.cjs +0 -7
- package/browser/cjs/BUokV6yuzE-_8MyK.cjs +0 -7
- package/browser/cjs/BeZHmOKfa37mFNAu.cjs +0 -7
- package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +0 -7
- package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +0 -7
- package/browser/cjs/C3OizZPVuxO2fjSG.cjs +0 -7
- package/browser/cjs/CBL6KkiWI2RPflEN.cjs +0 -7
- package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +0 -7
- package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +0 -7
- package/browser/cjs/CU30GVjjFXl44vEU.cjs +0 -7
- package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +0 -7
- package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +0 -7
- package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +0 -7
- package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +0 -7
- package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +0 -7
- package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +0 -107
- package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +0 -7
- package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +0 -7
- package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +0 -7
- package/browser/cjs/L1iE_VcelYZIy0wI.cjs +0 -7
- package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +0 -7
- package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +0 -7
- package/browser/cjs/hwDUzorB6aCvH1eL.cjs +0 -7
- package/browser/cjs/no5c2H18QD2qmOH6.cjs +0 -7
- package/browser/esm/B4Mm5gczpI_k2zzN.mjs +0 -7
- package/browser/esm/B8ISUdOxsJMYWzNN.mjs +0 -7
- package/browser/esm/BnJiF38TGudjoHzT.mjs +0 -7
- package/browser/esm/Bts4nCgfCAUpTfxz.mjs +0 -7
- package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +0 -107
- package/browser/esm/C4jlaVv8bELgiHyE.mjs +0 -7
- package/browser/esm/CYIhGb86r-kKOrP5.mjs +0 -7
- package/browser/esm/CcpskguvlvemArQn.mjs +0 -7
- package/browser/esm/CeRfALx1iU5fqOUg.mjs +0 -7
- package/browser/esm/CfYWmP_Hots5f0f6.mjs +0 -7
- package/browser/esm/CkarbqNx_lhlBnw7.mjs +0 -7
- package/browser/esm/D2PlWNQjrTgf6GuR.mjs +0 -7
- package/browser/esm/D3KNxvnrwR6_fTJE.mjs +0 -7
- package/browser/esm/DIJyH94oCzUnlcNZ.mjs +0 -7
- package/browser/esm/DVAG1NxFe3cMjLE1.mjs +0 -7
- package/browser/esm/DVqga7g7j0FUiM6p.mjs +0 -7
- package/browser/esm/DcX8yGEBX6qi9RCe.mjs +0 -7
- package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +0 -7
- package/browser/esm/DzgM_rkwyIHsCb6I.mjs +0 -7
- package/browser/esm/M4hZ25330e96seUM.mjs +0 -7
- package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +0 -7
- package/browser/esm/SAyRTPVprOHZ8Up8.mjs +0 -7
- package/browser/esm/_ft7JYO6QdDbIu3d.mjs +0 -7
- package/browser/esm/dpdy0BU4GGI5lZrX.mjs +0 -7
- package/browser/esm/oLCocGFRAwsVsOSE.mjs +0 -7
- package/cdn/assets/7_O6nILzn1fSVvkO.js +0 -13449
- package/cdn/assets/BCK7yhx9JfzU2rF0.js +0 -22
- package/cdn/assets/BcWoqhD_sX85c7Mh.js +0 -1701
- package/cdn/assets/BtweFYnoj_aEfydW.js +0 -1371
- package/cdn/assets/CC-S4NMYhLg3WgqO.js +0 -3875
- package/cdn/assets/CJhyHcQcrhbtC33r.js +0 -50
- package/cdn/assets/CUc6gRjjRGTFWSHD.js +0 -50
- package/cdn/assets/CpPLN0-hDsTIFHZV.js +0 -46
- package/cdn/assets/Cq94woVmlxhjWVRI.js +0 -21
- package/cdn/assets/CsjftXmSYQRHNKdq.js +0 -41
- package/cdn/assets/DBL4jY0AVc53RGNm.js +0 -637
- package/cdn/assets/DxMu6URURFWj9aXM.js +0 -2373
- package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +0 -26490
- package/cdn/assets/MRBi3juXAW0lA_mj.js +0 -1358
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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"});exports.default={CUBEKPIMEMBER:{s:"Returns a key performance indicator (KPI) property and displays the KPI name in the cell.",p:{connection:{d:"is the name of a connection to an OLAP cube"},kpiName:{d:"is the KPI name"},kpiProperty:{d:"is the KPI property"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBER:{s:"Returns a member or tuple from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member or tuple in the OLAP cube"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBERPROPERTY:{s:"Returns the value of a member property from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member in the OLAP cube"},kpiProperty:{d:"is the property name"}},h:"Unimplemented"},CUBERANKEDMEMBER:{s:"Returns the nth, or ranked, member in a set.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the set from which the element is to be retrieved"},rank:{d:"is the rank of the element to be retrieved"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBESET:{s:"Defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Excel.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the expression for the set"},caption:{d:"is the caption to be displayed in the cell"},sortOrder:{d:"is the sort order"},sortBy:{d:"is the sort by"}},h:"Unimplemented"},CUBESETCOUNT:{s:"Returns the number of items in a set.",p:{set:{d:"is the set whose elements are to be counted"}},h:"Unimplemented"},CUBEVALUE:{s:"Returns an aggregated value from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{}},h:"Unimplemented"}};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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 he=require("./DlnKrZRyxBfbqaTi.cjs");var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
|
|
7
|
+
interface FirstTest {
|
|
8
|
+
isTrue?: boolean;
|
|
9
|
+
}
|
|
10
|
+
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./CWW_yQpIswo7DEAT.cjs"))).initialize()}catch(e){throw W=null,e}finally{W=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const k=(e.disableBundle||e.declarationsOnly)??!1,x=[Ce(),ke()],j=await Promise.all(x),X=j[0],s=j[1];let K="",M=null;const U=[],Y={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},z="script",O=`${z}.ts`,G="lib.d.ts",_="global.d.ts",F={[O]:a,[G]:`
|
|
11
|
+
/**
|
|
12
|
+
* Represents the completion of an asynchronous operation
|
|
13
|
+
*/
|
|
14
|
+
interface Promise<T> {
|
|
15
|
+
/**
|
|
16
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
17
|
+
* resolved value cannot be modified from the callback.
|
|
18
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
19
|
+
* @returns A Promise for the completion of the callback.
|
|
20
|
+
*/
|
|
21
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
22
|
+
}
|
|
23
|
+
`,[_]:X},Q={getSourceFile:(t,d,E,l)=>s.createSourceFile(t,F[t],s.ScriptTarget.Latest,!0),fileExists:t=>F[t]!==void 0,readFile:t=>F[t],writeFile:(t,d)=>{F[t]=d},getCurrentDirectory:()=>"./",getCanonicalFileName:t=>t,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:t=>G,getNewLine:()=>`
|
|
24
|
+
`},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./DWzQm8Q32qNP7qKL.cjs"));return A=await o(),g(),A}catch(o){throw console.error("Failed to import or initialize esbuild:",o),H=null,m(o),o}}(),N="@sheetxl/primitives",T=`
|
|
25
|
+
export const FormulaContext = globalThis.${l}?.FormulaContext;
|
|
26
|
+
export const ScalarType = globalThis.${l}?.ScalarType;
|
|
27
|
+
export const Observable = globalThis.${l}?.Observable;
|
|
28
|
+
export const IRange = globalThis.${l}?.IRange;
|
|
29
|
+
export const FormulaError = globalThis.${l}?.FormulaError;
|
|
30
|
+
// Add more exports as needed
|
|
31
|
+
`,L={name:"sheetxl-esbuild-in-memory",setup(g){const m="sheetxl-"+new Date().getTime();g.onResolve({filter:new RegExp(`^(${E.replace("/","\\/")}|${N})$`)},o=>({path:o.path,namespace:m})),g.onResolve({filter:/.*/},o=>{if(o.namespace!==m)return console.warn(`esbuild: Treating import "${o.path}" as external.`),{path:o.path,external:!0}}),g.onLoad({filter:/.*/,namespace:m},o=>{let h;if(o.path===E)h=d;else{if(o.path!==N)return{errors:[{text:`Cannot load unknown path in ${m}: ${o.path}`}]};h=T}return{contents:h,loader:"ts"}})}},b=await c.build({entryPoints:[E],bundle:!0,write:!1,format:"esm",plugins:[L],sourcemap:"inline",tsconfigRaw:we,minify:!0,platform:"neutral"});if(b.outputFiles&&b.outputFiles.length>0)return b.outputFiles[0].text;throw b.errors&&b.errors.length>0?new Error(`esbuild bundling failed: ${b.errors.map(g=>g.text).join(`
|
|
32
|
+
`)}`):new Error("esbuild did not produce an output file.")}catch(c){throw console.error("esbuild bundling process failed:",c),c}}(0,K,z))}catch{console.warn("Error bundling script")}const re={functions:U,commitId:q,source:a,name:"Script",language:"typescript",compiled:K};return M&&(re.autoRun=M),re};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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"});exports.default={ASC:{s:"Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},ARRAYTOTEXT:{s:"Returns a text representation of an array",p:{array:{d:"the array to represent as text"},format:{d:"0 for relaxed format, 1 for strict format",v:0}}},CHAR:{s:"Returns the character specified by the code number from the character set for your computer",p:{number:{d:"is a number between 1 and 255 specifying which character you want"}}},CLEAN:{s:"Removes all nonprintable characters from text",p:{text:{d:"is the text you want to clean"}}},CODE:{s:"Returns the Unicode value of the first character in a text string",p:{text:{d:"is the text string whose Unicode value you want"}}},CONCAT:{s:"Concatenates a list or range of text strings",p:{text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},CONCATENATE:{s:"Joins several text strings into one text string",p:{text:{d:"text1, text2,... are 1 to 252 text strings or ranges to be joined"}},c:"Compatibility"},DETECTLANGUAGE:{s:"Detects the language of a given text.",p:{text:{d:"is the text to detect the language of"}},h:"Unimplemented"},DBCS:{s:"Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},DOLLAR:{s:"Converts a number to text in currency format",p:{number:{d:"is the number to convert"},decimals:{d:"is the number of digits to the right of the decimal point",v:2}}},EXACT:{s:"Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive",p:{text1:{d:"is the first text string"},text2:{d:"is the second text string"}}},FIND:{s:"Returns the starting position of one text string within another text string. FIND is case-sensitive",p:{findText:{d:"Returns the starting position of one text string within another text string. FIND is case-sensitive"},withinText:{d:"is the text you want to search"},startNum:{d:"specifies the character at which to start the search. The first character in Within_text is character number 1",v:1}}},FINDB:{s:"Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.",p:{findText:{d:"is the text you want to find"},withinText:{d:"is the text you want to search"},startNum:{d:"is the position in within_text to start searching",v:1}},h:"DBCS"},FIXED:{s:"Rounds a number to the specified number of decimals and returns the result as text with or without commas",p:{number:{d:"is the number you want to round and convert to text"},decimals:{d:"is the number of digits to the right of the decimal point",v:2},noCommas:{d:"is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE",v:!1}}},LEFT:{s:"Returns the specified number of characters from the start of a text string",p:{text:{d:"is the text string from which you want to extract characters"},numChars:{d:"specifies how many characters you want LEFT to extract",v:1}}},LEFTB:{s:"Returns the leftmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}},h:"DBCS"},LEN:{s:"Returns the number of characters in a text string",p:{text:{d:"is the text whose length you want to find. Spaces count as characters"}}},LENB:{s:"Returns the number of bytes in a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"}}},LOWER:{s:"Converts all letters in a text string to lowercase",p:{text:{d:"is the text you want to convert to lowercase. Characters in Text that are not letters are not changed"}}},MID:{s:"Returns the characters from the middle of a text string, given a starting position and length",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numChars:{d:"specifies how many characters to return from Text"}}},MIDB:{s:"Returns characters from the middle of a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numBytes:{d:"is the number of bytes to extract"}},h:"DBCS"},NUMBERVALUE:{s:"Converts text to number in a locale-independent manner",p:{text:{d:"is the text string you want to convert"},decimalSeparator:{d:"is the character that separates the integer part from the decimal part of the number",v:"."},groupSeparator:{d:"is the character that separates groups of thousands",v:","}}},PERCENTOF:{s:"Returns the percentage of a subset of a given data set",p:{dataSubset:{d:"is the subset"},dataAll:{d:"is the data set"}},h:"Unimplemented"},PHONETIC:{s:"Returns the phonetic spelling of a text string",p:{reference:{d:"Text string or a reference to a single cell or a range of cells that contain a furigana text string"}},h:"Unimplemented"},PROPER:{s:"Converts the first letter of each word in a text string to uppercase",p:{text:{d:"is the text string you want to convert"}}},REGEXEXTRACT:{s:"Extracts substrings of 'text' based on the provided REGEX 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},returnMode:{d:"Specify which matches to return",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXREPLACE:{s:"Returns 'text', with 'replacement' in place of matches with 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},replacement:{d:"The replacement string"},occurrence:{d:"The occurrence of the match to replace",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXTEST:{s:"Checks whether the input matches the pattern, and returns TRUE or FALSE",p:{text:{d:"is the text string to be checked"},pattern:{d:"is the regular expression to be applied"},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REPLACE:{s:"Replaces part of a text string with a different text string",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numChars:{d:"is the number of characters to replace"},newText:{d:"is the text string that will replace old_text"}}},REPLACEB:{s:"Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numBytes:{d:"is the number of bytes to replace"},newText:{d:"is the text string that will replace old_text"}},h:"DBCS"},REPT:{s:"Repeats text a given number of times",p:{text:{d:"is the text you want to repeat"},numberTimes:{d:"is the number of times you want to repeat text"}}},RIGHT:{s:"Returns the specified number of characters from the end of a text string",p:{text:{d:"is the text string that contains the characters you want to extract"},numChars:{d:"specifies how many characters you want to extract",v:1}}},RIGHTB:{s:"Returns the rightmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}}},SEARCH:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startNum:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}}},SEARCHB:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startBytes:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}},h:"DBCS"},SUBSTITUTE:{s:"Replaces existing text with new text in a text string",p:{text:{d:"is the text or the reference to a cell containing text in which you want to substitute characters"},oldText:{d:"is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text"},newText:{d:"is the text you want to replace Old_text with"},instanceNum:{d:"specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced"}}},T:{s:"Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not",p:{value:{d:"is the value to test"}}},TEXT:{s:"Converts a value to text in a specific number format",p:{value:{d:"is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value"},formatText:{d:"is a text string that defines the number format to use"}}},TEXTAFTER:{s:"Returns text that's after delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Searches the text for a delimiter match. By default, a case-sensitive match is done.",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TEXTJOIN:{s:"Concatenates a list or range of text strings using a delimiter",p:{delimiter:{d:"Character or string to insert between each text item"},ignoreEmpty:{d:"if TRUE(default), ignores empty cells"},text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},TEXTSPLIT:{s:"Splits text into rows or columns using delimiters.",p:{text:{d:"The text to split"},colDelimiter:{d:"The column delimiter(s) - can be string or array of strings"},rowDelimiter:{d:"The row delimiter(s), null/undefined means no row splitting",v:null},ignoreEmpty:{d:"Whether to ignore empty values (defaults to `false`)",v:!1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},padWith:{d:"Value to use for padding if matrix is uneven (defaults to `#N/A`)",v:"undefined"}}},TEXTBEFORE:{s:"Returns text that's before delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TRANSLATE:{s:"Translate a text string from one language to another using the Microsoft Translator service.",p:{text:{d:"The text to translate."},sourceLanguage:{d:"Specifiy the source language your text is currently in. Expressed as a two-letter language code."},targetLanguage:{d:"Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code."}},h:"Unimplemented"},TRIM:{s:"Removes all spaces from text except for single spaces between words.",p:{text:{d:"The text from which you want to remove extra spaces."}}},UNICHAR:{s:"Returns the Unicode character referenced by the given numeric value",p:{number:{d:"is the Unicode number representing a character"}}},UNICODE:{s:"Returns the number (code point) corresponding to the first character of the text",p:{text:{d:"is the character that you want the Unicode value of"}}},UPPER:{s:"Converts a text string to all uppercase letters",p:{text:{d:"is the text you want converted to uppercase, a reference or a text string"}}},VALUE:{s:"Converts a text string that represents a number to a number",p:{text:{d:"is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert"}}},VALUETOTEXT:{s:"Returns a text representation of a value",p:{value:{d:"the value to represent as text"},format:{d:"the format of the text",v:0}}}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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"});exports.default={DELAY:{s:"Returns the input value after a delay.",p:{time:{d:"the delay time in milliseconds. Default is 1000ms (1 second)."},input:{d:"returns the input."},label:{d:"optional label for the delay function.",v:"No label"}},h:"Testing"},WAIT:{s:"Starts waiting for event",p:{type:{d:"the type of message."},input:{d:"an optional dependency."}},h:"Testing"}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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"});exports.default={DELTA:{s:"Tests whether two numbers are equal",p:{number1:{d:"is the first number"},number2:{d:"is the second number",v:0}}},GESTEP:{s:"Tests whether a number is greater than a threshold value",p:{number:{d:"is the value to test against step"},step:{d:"is the threshold value",v:0}}}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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 S=require("./DQGdVVTxixgptLdj.cjs");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:f,createWorkbookOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./BH3MYcOF7rxLX3Bk.cjs")).then(n=>n.p),m=new TextDecoder().decode(a);let p=-1;const t=new S.$1(h),u=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:S.F.Orientation.Row}),c=d?.onProgress;let e=0;const r={...i,transform:(n,g)=>{i?.transform&&(n=i.transform(n,g));const s=g;s===0&&p++;let l=n??"";return u.pushAt(p,s,l),e++,e%1e5==0&&c?.(e),n}};return o.parse(m,r).data,u.apply({textParser:!0,...f}),t},exports.toBufferCSV=async(a,d)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:f=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:m={}}=d||{},p=await Promise.resolve().then(()=>require("./BH3MYcOF7rxLX3Bk.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 u=null;const c=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!f){const s=i?r.getRowStart():0,l=f?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const w=l.getCoords(),y=l.getCell();u!==w.rowIndex&&(e&&c.push(e),e=[],u=w.rowIndex);const x=y.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&c.push(e);const n={...m},g=p.unparse(c,n);return new TextEncoder().encode(g).buffer};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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"});exports.default={DATE:{s:"Returns the number that represents the date in Microsoft Excel date-time code",p:{year:{d:"is a number from 1900 or 1904 (depending on the workbook's date system) to 9999"},month:{d:"is a number from 1 to 12 representing the month of the year"},day:{d:"is a number from 1 to 31 representing the day of the month"}}},DATEDIF:{s:"Returns the number of days between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},unit:{d:"is a string that specifies the unit of time to use"}},h:"Legacy"},DATESTRING:{s:"Returns NA.",p:{number:{d:"is a number that is ignored"}},h:"Legacy"},DATEVALUE:{s:"Converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code",p:{dateText:{d:"is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999"}}},DAY:{s:"Returns the day of the month, a number from 1 to 31.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},DAYS:{s:"Returns the number of days between the two dates.",p:{endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"}}},DAYS360:{s:"Returns the number of days between two dates based on a 360-day year (twelve 30-day months)",p:{startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},method:{d:"is a logical value specifying the calculation method: U.S. (NASD) = FALSE; European = TRUE.",v:!1}}},EDATE:{s:"Returns the serial number of the date that is the indicated number of months before or after the start date",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after start_date"}}},EOMONTH:{s:"Returns the serial number of the last day of the month before or after a specified number of months",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after the start_date"}}},HOUR:{s:"Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},ISOWEEKNUM:{s:"Returns the ISO week number in the year for a given date",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MINUTE:{s:"Returns the minute, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MONTH:{s:"Returns the month, a number from 1 (January) to 12 (December).",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},NETWORKDAYS:{s:"Returns the number of whole workdays between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"NETWORKDAYS.INTL":{s:"Returns the number of whole workdays between two dates with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},NOW:{s:"Returns the current date and time formatted as a date and time.",p:{}},SECOND:{s:"Returns the second, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:23 or 4:48:47 PM"}}},TIME:{s:"Converts hours, minutes, and seconds given as numbers to an Excel serial number, formatted with a time format",p:{hour:{d:"is a number from 0 to 23 representing the hour"},minute:{d:"is a number from 0 to 59 representing the minute"},second:{d:"is a number from 0 to 59 representing the second"}}},TIMEVALUE:{s:"Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula",p:{timeText:{d:"is a text string that gives a time in any one of the Excel time formats (date information in the string is ignored)"}}},TODAY:{s:"Returns the current date formatted as a date.",p:{}},WEEKDAY:{s:"Returns a number from 1 to 7 identifying the day of the week of a date.",p:{serialOrString:{d:"is a number that represents a date"},returnType:{d:"is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3",v:1}}},WEEKNUM:{s:"Returns the week number in the year",p:{serialOrString:{d:"is the date-time code used by Excel for date and time calculation"},returnType:{d:"is a number (1 or 2) that determines the type of the return value",v:1}}},WORKDAY:{s:"Returns the serial number of the date before or after a specified number of workdays",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"WORKDAY.INTL":{s:"Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},YEAR:{s:"Returns the year of a date, an integer in the range 1900 - 9999.",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},YEARFRAC:{s:"Returns the year fraction representing the number of whole days between start_date and end_date",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},basis:{d:"is the type of day count basis to use",v:0}}}};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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("./DQGdVVTxixgptLdj.cjs");exports.fromBufferJSON=async(w,l)=>{let u=w;(function(t){if(t.byteLength<4)return!1;const i=new Uint8Array(t),r={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},n=Object.keys(r);for(let f=0;f<n.length;f++){const o=n[f],e=r[o];let a=!0;for(let s=0;s<e.length;s++)if(i[s]!==e[s]){a=!1;break}if(a)return o}return!1})(u)&&(u=await async function(t,i="gzip"){let r;typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),f=new DecompressionStream(i),o=n.pipeThrough(f);return(await new Response(o).blob()).arrayBuffer()}(u));let b=new TextDecoder().decode(u);const g=JSON.parse(b),p={...l?.createWorkbookOptions??{},json:g};return new J.$1(p)},exports.toBufferJSON=async(w,l)=>{const u=await w.toJSON(),b=l?.whiteSpace??0;let g;l?.beforeWrite?.(w,u),g=b===0?JSON.stringify(u):function(i,r=2){const n=[];function f(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return function o(e,a,s,m){if(e==null||typeof e!="object")return JSON.stringify(e);const A=f(a),O=f(a+1);if(Array.isArray(e)){const c=e.length;if(c===0)return"[]";if(s!==0)return JSON.stringify(e);let y=`[
|
|
7
|
+
`;for(let h=0;h<c;h++)y+=O+o(e[h],a+1,s+1,!0),h<c-1&&(y+=`,
|
|
8
|
+
`);return y+=`
|
|
9
|
+
`+A+"]",y}const B=Object.keys(e),d=B.length;if(d===0)return"{}";if(!(s<2))return JSON.stringify(e);let S=`{
|
|
10
|
+
`;m||(s=0);for(let c=0;c<d;c++){const y=B[c];S+=O+JSON.stringify(y)+": "+o(e[y],a+1,s,!1),c<d-1&&(S+=`,
|
|
11
|
+
`)}return S+=`
|
|
12
|
+
`+A+"}",S}(i,0,0,!1)}(u,b);let p=new TextEncoder().encode(g).buffer;const t=l?.compress??!0;return t&&(p=await async function(i,r="gzip"){let n;typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer?(n=new ArrayBuffer(i.byteLength),new Uint8Array(n).set(new Uint8Array(i))):n=i;const f=new ReadableStream({start(a){a.enqueue(n),a.close()}}),o=new CompressionStream(r),e=f.pipeThrough(o);return(await new Response(e).blob()).arrayBuffer()}(p,typeof t=="string"?t:void 0)),p};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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 p=require("./DQGdVVTxixgptLdj.cjs"),F=require("./CXIHULOe7x4DYKXw.cjs"),Ft=p.reactExports.createContext(),Nt=p.reactExports.createContext();function Bt(o){return p.generateUtilityClass("MuiTableCell",o)}const Ut=p.generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Vt=p.styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,e[t.variant],e[`size${p.capitalize(t.size)}`],t.padding!=="normal"&&e[`padding${p.capitalize(t.padding)}`],t.align!=="inherit"&&e[`align${p.capitalize(t.align)}`],t.stickyHeader&&e.stickyHeader]}})(p.memoTheme(({theme:o})=>({...o.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:o.vars?`1px solid ${o.vars.palette.TableCell.border}`:`1px solid
|
|
7
|
+
${o.palette.mode==="light"?p.lighten(p.alpha(o.palette.divider,1),.88):p.darken(p.alpha(o.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(o.vars||o).palette.text.primary,lineHeight:o.typography.pxToRem(24),fontWeight:o.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(o.vars||o).palette.text.primary}},{props:{variant:"footer"},style:{color:(o.vars||o).palette.text.secondary,lineHeight:o.typography.pxToRem(21),fontSize:o.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Ut.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(o.vars||o).palette.background.default}}]}))),Pe=p.reactExports.forwardRef(function(o,e){const t=p.useDefaultProps({props:o,name:"MuiTableCell"}),{align:r="inherit",className:n,component:l,padding:i,scope:a,size:s,sortDirection:c,variant:d,...h}=t,f=p.reactExports.useContext(Ft),u=p.reactExports.useContext(Nt),_=u&&u.variant==="head";let g;g=l||(_?"th":"td");let S=a;g==="td"?S=void 0:!S&&_&&(S="col");const y=d||u&&u.variant,x={...t,align:r,component:g,padding:i||(f&&f.padding?f.padding:"normal"),size:s||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&f&&f.stickyHeader,variant:y},v=(C=>{const{classes:b,variant:R,align:T,padding:I,size:O,stickyHeader:P}=C,z={root:["root",R,P&&"stickyHeader",T!=="inherit"&&`align${p.capitalize(T)}`,I!=="normal"&&`padding${p.capitalize(I)}`,`size${p.capitalize(O)}`]};return p.composeClasses(z,Bt,b)})(x);let w=null;return c&&(w=c==="asc"?"ascending":"descending"),p.jsxRuntimeExports.jsx(Vt,{as:g,ref:e,className:p.clsx(v.root,n),"aria-sort":w,scope:S,ownerState:x,...h})}),$t=p.VC();function he(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}function V(o,e){return e&&o&&typeof o=="object"&&o.styles&&!o.styles.startsWith("@layer")&&(o.styles=`@layer ${e}{${String(o.styles)}}`),o}function qt(o){return o?(e,t)=>t[o]:null}function ce(o,e,t){const r=typeof e=="function"?e(o):e;if(Array.isArray(r))return r.flatMap(n=>ce(o,n,t));if(Array.isArray(r?.variants)){let n;if(r.isProcessed)n=t?V(r.style,t):r.style;else{const{variants:l,...i}=r;n=t?V(p.internal_serializeStyles(i),t):i}return ct(o,r.variants,[n],t)}return r?.isProcessed?t?V(p.internal_serializeStyles(r.style),t):r.style:t?V(p.internal_serializeStyles(r),t):r}function ct(o,e,t=[],r=void 0){let n;e:for(let l=0;l<e.length;l+=1){const i=e[l];if(typeof i.props=="function"){if(n??={...o,...o.ownerState,ownerState:o.ownerState},!i.props(n))continue}else for(const a in i.props)if(o[a]!==i.props[a]&&o.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(n??={...o,...o.ownerState,ownerState:o.ownerState},t.push(r?V(p.internal_serializeStyles(i.style(n)),r):i.style(n))):t.push(r?V(p.internal_serializeStyles(i.style),r):i.style)}return t}function Kt(o){return o&&o.charAt(0).toLowerCase()+o.slice(1)}const Xt=function(o={}){const{themeId:e,defaultTheme:t=$t,rootShouldForwardProp:r=he,slotShouldForwardProp:n=he}=o;function l(i){var a,s,c;s=e,c=t,(a=i).theme=function(d){for(const h in d)return!1;return!0}(a.theme)?c:a.theme[s]||a.theme}return(i,a={})=>{p.internal_mutateStyles(i,b=>b.filter(R=>R!==p.Ms));const{name:s,slot:c,skipVariantsResolver:d,skipSx:h,overridesResolver:f=qt(Kt(c)),...u}=a,_=s&&s.startsWith("Mui")||c?"components":"custom",g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,S=h||!1;let y=he;var x;c==="Root"||c==="root"?y=r:c?y=n:typeof(x=i)=="string"&&x.charCodeAt(0)>96&&(y=void 0);const v=p.styled$1(i,{shouldForwardProp:y,label:void 0,...u}),w=b=>{if(b.__emotion_real===b)return b;if(typeof b=="function")return function(R){return ce(R,b,R.theme.modularCssLayers?_:void 0)};if(p.ai(b)){const R=function(T){const{variants:I,...O}=T,P={variants:I,style:p.internal_serializeStyles(O),isProcessed:!0};return P.style===O||I&&I.forEach(z=>{typeof z.style!="function"&&(z.style=p.internal_serializeStyles(z.style))}),P}(b);return function(T){return R.variants?ce(T,R,T.theme.modularCssLayers?_:void 0):T.theme.modularCssLayers?V(R.style,_):R.style}}return b},C=(...b)=>{const R=[],T=b.map(w),I=[];if(R.push(l),s&&f&&I.push(function(z){const E=z.theme,L=E.components?.[s]?.styleOverrides;if(!L)return null;const N={};for(const Ie in L)N[Ie]=ce(z,L[Ie],z.theme.modularCssLayers?"theme":void 0);return f(z,N)}),s&&!g&&I.push(function(z){const E=z.theme,L=E?.components?.[s]?.variants;return L?ct(z,L,[],z.theme.modularCssLayers?"theme":void 0):null}),S||I.push(p.Ms),Array.isArray(T[0])){const z=T.shift(),E=new Array(R.length).fill(""),L=new Array(I.length).fill("");let N;N=[...E,...z,...L],N.raw=[...E,...z.raw,...L],R.unshift(N)}const O=[...R,...T,...I],P=v(...O);return i.muiName&&(P.muiName=i.muiName),P};return v.withConfig&&(C.withConfig=v.withConfig),C}}({themeId:p.Vi,defaultTheme:p.JC,rootShouldForwardProp:o=>function(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}(o)&&o!=="classes"});function G(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function X(o){return(X=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 dt(o){var e=function(t){if(X(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,"string");if(X(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o);return X(e)=="symbol"?e:e+""}function Oe(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,dt(r.key),r)}}function A(o,e,t){return e&&Oe(o.prototype,e),t&&Oe(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function H(o,e){if(e&&(X(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 k(o){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&p.uu(o,e)}function m(o,e,t){return(e=dt(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function ut(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function ht(o){this.setState(function(e){return this.constructor.getDerivedStateFromProps(o,e)??null}.bind(this))}function ft(o,e){try{var t=this.props,r=this.state;this.props=o,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,r)}finally{this.props=t,this.state=r}}function le(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,r=null,n=null;if(typeof e.componentWillMount=="function"?t="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?n="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),t!==null||r!==null||n!==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.
|
|
8
|
+
|
|
9
|
+
`+l+" uses "+i+" but also contains the following legacy lifecycles:"+(t!==null?`
|
|
10
|
+
`+t:"")+(r!==null?`
|
|
11
|
+
`+r:"")+(n!==null?`
|
|
12
|
+
`+n:"")+`
|
|
13
|
+
|
|
14
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
15
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStateFromProps=="function"&&(e.componentWillMount=ut,e.componentWillReceiveProps=ht),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=ft;var a=e.componentDidUpdate;e.componentDidUpdate=function(s,c,d){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,s,c,h)}}return o}function ke(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function Me(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function pt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pt=function(){return!!o})()}ut.__suppressDeprecationWarning=!0,ht.__suppressDeprecationWarning=!0,ft.__suppressDeprecationWarning=!0;var Ee=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,pt()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),m(e,"_columnStartIndex",0),m(e,"_columnStopIndex",0),m(e,"_rowStartIndex",0),m(e,"_rowStopIndex",0),m(e,"_onKeyDown",function(s){var c=e.props,d=c.columnCount,h=c.disabled,f=c.mode,u=c.rowCount;if(!h){var _=e._getScrollState(),g=_.scrollToColumn,S=_.scrollToRow,y=e._getScrollState(),x=y.scrollToColumn,v=y.scrollToRow;switch(s.key){case"ArrowDown":v=Math.min(f==="cells"?v+1:e._rowStopIndex+1,u-1);break;case"ArrowLeft":x=Math.max(f==="cells"?x-1:e._columnStartIndex-1,0);break;case"ArrowRight":x=Math.min(f==="cells"?x+1:e._columnStopIndex+1,d-1);break;case"ArrowUp":v=Math.max(f==="cells"?v-1:e._rowStartIndex-1,0)}x===g&&v===S||(s.preventDefault(),e._updateScrollState({scrollToColumn:x,scrollToRow:v}))}}),m(e,"_onSectionRendered",function(s){var c=s.columnStartIndex,d=s.columnStopIndex,h=s.rowStartIndex,f=s.rowStopIndex;e._columnStartIndex=c,e._columnStopIndex=d,e._rowStartIndex=h,e._rowStopIndex=f}),e}return j(o,p.reactExports.PureComponent),A(o,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,r=e.scrollToRow;this.setState({scrollToRow:r,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.children,n=this._getScrollState(),l=n.scrollToColumn,i=n.scrollToRow;return p.reactExports.createElement("div",{className:t,onKeyDown:this._onKeyDown},r({onSectionRendered:this._onSectionRendered,scrollToColumn:l,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,r=e.scrollToRow,n=this.props,l=n.isControlled,i=n.onScrollToChange;typeof i=="function"&&i({scrollToColumn:t,scrollToRow:r}),l||this.setState({scrollToColumn:t,scrollToRow:r})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?Me(Me({},t),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])}();function mt(o,e){var t,r,n=(t=e!==void 0?e:typeof window<"u"?window:typeof self<"u"?self:global).document!==void 0&&t.document.attachEvent;if(!n){var l=(r=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(v){return t.setTimeout(v,20)},function(v){return r(v)}),i=function(){var v=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(w){return v(w)}}(),a=function(v){var w=v.__resizeTriggers__,C=w.firstElementChild,b=w.lastElementChild,R=C.firstElementChild;b.scrollLeft=b.scrollWidth,b.scrollTop=b.scrollHeight,R.style.width=C.offsetWidth+1+"px",R.style.height=C.offsetHeight+1+"px",C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight},s=function(v){if(!(v.target.className&&typeof v.target.className.indexOf=="function"&&v.target.className.indexOf("contract-trigger")<0&&v.target.className.indexOf("expand-trigger")<0)){var w=this;a(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=l(function(){var C;((C=w).offsetWidth!=C.__resizeLast__.width||C.offsetHeight!=C.__resizeLast__.height)&&(w.__resizeLast__.width=w.offsetWidth,w.__resizeLast__.height=w.offsetHeight,w.__resizeListeners__.forEach(function(b){b.call(w,v)}))})}},c=!1,d="",h="animationstart",f="Webkit Moz O ms".split(" "),u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),_=t.document.createElement("fakeelement");if(_.style.animationName!==void 0&&(c=!0),c===!1){for(var g=0;g<f.length;g++)if(_.style[f[g]+"AnimationName"]!==void 0){d="-"+f[g].toLowerCase()+"-",h=u[g],c=!0;break}}var S="resizeanim",y="@"+d+"keyframes "+S+" { from { opacity: 0; } to { opacity: 0; } } ",x=d+"animation: 1ms "+S+"; "}return{addResizeListener:function(v,w){if(n)v.attachEvent("onresize",w);else{if(!v.__resizeTriggers__){var C=v.ownerDocument,b=t.getComputedStyle(v);b&&b.position=="static"&&(v.style.position="relative"),function(I){if(!I.getElementById("detectElementResize")){var O=(y||"")+".resize-triggers { "+(x||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',P=I.head||I.getElementsByTagName("head")[0],z=I.createElement("style");z.id="detectElementResize",z.type="text/css",o!=null&&z.setAttribute("nonce",o),z.styleSheet?z.styleSheet.cssText=O:z.appendChild(I.createTextNode(O)),P.appendChild(z)}}(C),v.__resizeLast__={},v.__resizeListeners__=[],(v.__resizeTriggers__=C.createElement("div")).className="resize-triggers";var R=C.createElement("div");R.className="expand-trigger",R.appendChild(C.createElement("div"));var T=C.createElement("div");T.className="contract-trigger",v.__resizeTriggers__.appendChild(R),v.__resizeTriggers__.appendChild(T),v.appendChild(v.__resizeTriggers__),a(v),v.addEventListener("scroll",s,!0),h&&(v.__resizeTriggers__.__animationListener__=function(I){I.animationName==S&&a(v)},v.__resizeTriggers__.addEventListener(h,v.__resizeTriggers__.__animationListener__))}v.__resizeListeners__.push(w)}},removeResizeListener:function(v,w){if(n)v.detachEvent("onresize",w);else if(v.__resizeListeners__.splice(v.__resizeListeners__.indexOf(w),1),!v.__resizeListeners__.length){v.removeEventListener("scroll",s,!0),v.__resizeTriggers__.__animationListener__&&(v.__resizeTriggers__.removeEventListener(h,v.__resizeTriggers__.__animationListener__),v.__resizeTriggers__.__animationListener__=null);try{v.__resizeTriggers__=!v.removeChild(v.__resizeTriggers__)}catch{}}}}}function Le(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function Ge(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Le(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function gt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gt=function(){return!!o})()}m(Ee,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),le(Ee);var vt=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,gt()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{height:e.props.defaultHeight||0,width:e.props.defaultWidth||0}),m(e,"_parentNode",void 0),m(e,"_autoSizer",void 0),m(e,"_window",void 0),m(e,"_detectElementResize",void 0),m(e,"_onResize",function(){var s=e.props,c=s.disableHeight,d=s.disableWidth,h=s.onResize;if(e._parentNode){var f=e._parentNode.offsetHeight||0,u=e._parentNode.offsetWidth||0,_=(e._window||window).getComputedStyle(e._parentNode)||{},g=parseInt(_.paddingLeft,10)||0,S=parseInt(_.paddingRight,10)||0,y=parseInt(_.paddingTop,10)||0,x=parseInt(_.paddingBottom,10)||0,v=f-y-x,w=u-g-S;(!c&&e.state.height!==v||!d&&e.state.width!==w)&&(e.setState({height:f-y-x,width:u-g-S}),h({height:f,width:u}))}}),m(e,"_setRef",function(s){e._autoSizer=s}),e}return j(o,p.reactExports.Component),A(o,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=mt(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.disableHeight,l=e.disableWidth,i=e.style,a=this.state,s=a.height,c=a.width,d={overflow:"visible"},h={};return n||(d.height=0,h.height=s),l||(d.width=0,h.width=c),p.reactExports.createElement("div",{className:r,ref:this._setRef,style:Ge(Ge({},d),i)},t(h))}}])}();function _t(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_t=function(){return!!o})()}m(vt,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Yt=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,_t()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"_child",p.reactExports.createRef()),m(e,"_measure",function(){var s=e.props,c=s.cache,d=s.columnIndex,h=d===void 0?0:d,f=s.parent,u=s.rowIndex,_=u===void 0?e.props.index||0:u,g=e._getCellMeasurements(),S=g.height,y=g.width;S===c.getHeight(_,h)&&y===c.getWidth(_,h)||(c.set(_,h,y,S),f&&typeof f.recomputeGridSize=="function"&&f.recomputeGridSize({columnIndex:h,rowIndex:_}))}),m(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),e._child.current=s,s&&e._maybeMeasureCell()}),e}return j(o,p.reactExports.PureComponent),A(o,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this,t=this.props.children,r=typeof t=="function"?t({measure:this._measure,registerChild:this._registerChild}):t;return r===null?r:p.reactExports.cloneElement(r,{ref:function(n){typeof r.ref=="function"?r.ref(n):r.ref&&(r.ref.current=n),e._child.current=n}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child.current;if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var r=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var l=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return r&&(t.style.width=r),n&&(t.style.height=n),{height:l,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,r=e.columnIndex,n=r===void 0?0:r,l=e.parent,i=e.rowIndex,a=i===void 0?this.props.index||0:i;if(!t.has(a,n)){var s=this._getCellMeasurements(),c=s.height,d=s.width;t.set(a,n,d,c),l&&typeof l.invalidateCellSizeAfterRender=="function"&&l.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:a})}}}])}();function Y(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e={};return function(t){var r=t.callback,n=t.indices,l=Object.keys(n),i=!o||l.every(function(s){var c=n[s];return Array.isArray(c)?c.length>0:c>=0}),a=l.length!==Object.keys(e).length||l.some(function(s){var c=e[s],d=n[s];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});e=n,i&&a&&r(n)}}m(Yt,"__internalCellMeasurerFlag",!1);const Jt=!(typeof window>"u"||!window.document||!window.document.createElement);var se;function ve(o){if((!se&&se!==0||o)&&Jt){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),se=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return se}function Ae(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function He(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ae(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ae(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function St(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(St=function(){return!!o})()}var Z="requested",de=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,St()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),m(e,"_calculateSizeAndPositionDataOnNextUpdate",!1),m(e,"_onSectionRenderedMemoizer",Y()),m(e,"_onScrollMemoizer",Y(!1)),m(e,"_invokeOnSectionRenderedHelper",function(){var s=e.props,c=s.cellLayoutManager,d=s.onSectionRendered;e._onSectionRenderedMemoizer({callback:d,indices:{indices:c.getLastRenderedIndices()}})}),m(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),m(e,"_updateScrollPositionForScrollToCell",function(){var s=e.props,c=s.cellLayoutManager,d=s.height,h=s.scrollToAlignment,f=s.scrollToCell,u=s.width,_=e.state,g=_.scrollLeft,S=_.scrollTop;if(f>=0){var y=c.getScrollPositionForCell({align:h,cellIndex:f,height:d,scrollLeft:g,scrollTop:S,width:u});y.scrollLeft===g&&y.scrollTop===S||e._setScrollPosition(y)}}),m(e,"_onScroll",function(s){if(s.target===e._scrollingContainer){e._enablePointerEventsAfterDelay();var c=e.props,d=c.cellLayoutManager,h=c.height,f=c.isScrollingChange,u=c.width,_=e._scrollbarSize,g=d.getTotalSize(),S=g.height,y=g.width,x=Math.max(0,Math.min(y-u+_,s.target.scrollLeft)),v=Math.max(0,Math.min(S-h+_,s.target.scrollTop));if(e.state.scrollLeft!==x||e.state.scrollTop!==v){var w=s.cancelable?"observed":Z;e.state.isScrolling||f(!0),e.setState({isScrolling:!0,scrollLeft:x,scrollPositionChangeReason:w,scrollTop:v})}e._invokeOnScrollMemoizer({scrollLeft:x,scrollTop:v,totalWidth:y,totalHeight:S})}}),e._scrollbarSize=ve(),e._scrollbarSize===void 0?(e._scrollbarSizeMeasured=!1,e._scrollbarSize=0):e._scrollbarSizeMeasured=!0,e}return j(o,p.reactExports.PureComponent),A(o,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,r=e.scrollLeft,n=e.scrollToCell,l=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=ve(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(r>=0||l>=0)&&this._setScrollPosition({scrollLeft:r,scrollTop:l}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:l||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.height,l=r.scrollToAlignment,i=r.scrollToCell,a=r.width,s=this.state,c=s.scrollLeft,d=s.scrollPositionChangeReason,h=s.scrollTop;d===Z&&(c>=0&&c!==t.scrollLeft&&c!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=c),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),n===e.height&&l===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,r=e.cellCount,n=e.cellLayoutManager,l=e.className,i=e.height,a=e.horizontalOverscanSize,s=e.id,c=e.noContentRenderer,d=e.style,h=e.verticalOverscanSize,f=e.width,u=this.state,_=u.isScrolling,g=u.scrollLeft,S=u.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var y=n.getTotalSize(),x=y.height,v=y.width,w=Math.max(0,g-a),C=Math.max(0,S-h),b=Math.min(v,g+f+a),R=Math.min(x,S+i+h),T=i>0&&f>0?n.cellRenderers({height:R-C,isScrolling:_,width:b-w,x:w,y:C}):[],I={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},O=x>i?this._scrollbarSize:0,P=v>f?this._scrollbarSize:0;return I.overflowX=v+O<=f?"hidden":"auto",I.overflowY=x+P<=i?"hidden":"auto",p.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:F.he("ReactVirtualized__Collection",l),id:s,onScroll:this._onScroll,role:"grid",style:He(He({},I),d),tabIndex:0},r>0&&p.reactExports.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:x,maxHeight:x,maxWidth:v,overflow:"hidden",pointerEvents:_?"none":"",width:v}},T),r===0&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,l=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,h=d.height;(0,d.onScroll)({clientHeight:h,clientWidth:d.width,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:i})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:Z};t>=0&&(n.scrollLeft=t),r>=0&&(n.scrollTop=r),(t>=0&&t!==this.state.scrollLeft||r>=0&&r!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.cellCount!==0||t.scrollLeft===0&&t.scrollTop===0?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null?e.scrollTop:t.scrollTop,scrollPositionChangeReason:Z}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Z}}}])}();m(de,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),de.propTypes={},le(de);var Zt=A(function o(e){var t=e.height,r=e.width,n=e.x,l=e.y;G(this,o),this.height=t,this.width=r,this.x=n,this.y=l,this._indexMap={},this._indices=[]},[{key:"addCellIndex",value:function(o){var e=o.index;this._indexMap[e]||(this._indexMap[e]=!0,this._indices.push(e))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),Qt=A(function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;G(this,o),this._sectionSize=e,this._cellMetadata=[],this._sections={}},[{key:"getCellIndices",value:function(o){var e=o.height,t=o.width,r=o.x,n=o.y,l={};return this.getSections({height:e,width:t,x:r,y:n}).forEach(function(i){return i.getCellIndices().forEach(function(a){l[a]=a})}),Object.keys(l).map(function(i){return l[i]})}},{key:"getCellMetadata",value:function(o){var e=o.index;return this._cellMetadata[e]}},{key:"getSections",value:function(o){for(var e=o.height,t=o.width,r=o.x,n=o.y,l=Math.floor(r/this._sectionSize),i=Math.floor((r+t-1)/this._sectionSize),a=Math.floor(n/this._sectionSize),s=Math.floor((n+e-1)/this._sectionSize),c=[],d=l;d<=i;d++)for(var h=a;h<=s;h++){var f="".concat(d,".").concat(h);this._sections[f]||(this._sections[f]=new Zt({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:h*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var o=this;return Object.keys(this._sections).map(function(e){return o._sections[e].toString()})}},{key:"registerCell",value:function(o){var e=o.cellMetadatum,t=o.index;this._cellMetadata[t]=e,this.getSections(e).forEach(function(r){return r.addCellIndex({index:t})})}}]);function je(o){var e=o.align,t=e===void 0?"auto":e,r=o.cellOffset,n=o.cellSize,l=o.containerSize,i=o.currentOffset,a=r,s=a-l+n;switch(t){case"start":return a;case"end":return s;case"center":return a-(l-n)/2;default:return Math.max(s,Math.min(a,i))}}function yt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yt=function(){return!!o})()}var We=function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,yt()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(r),r._setCollectionViewRef=r._setCollectionViewRef.bind(r),r}return j(o,p.reactExports.PureComponent),A(o,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=p.du({},(function(t){if(t==null)throw new TypeError("Cannot destructure "+t)}(this.props),this.props));return p.reactExports.createElement(de,p.du({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(r){for(var n=r.cellCount,l=r.cellSizeAndPositionGetter,i=[],a=new Qt(r.sectionSize),s=0,c=0,d=0;d<n;d++){var h=l({index:d});if(h.height==null||isNaN(h.height)||h.width==null||isNaN(h.width)||h.x==null||isNaN(h.x)||h.y==null||isNaN(h.y))throw Error("Invalid metadata returned for cell ".concat(d,`:
|
|
16
|
+
x:`).concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));s=Math.max(s,h.y+h.height),c=Math.max(c,h.x+h.width),i[d]=h,a.registerCell({cellMetadatum:h,index:d})}return{cellMetadata:i,height:s,sectionManager:a,width:c}}({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,r=e.cellIndex,n=e.height,l=e.scrollLeft,i=e.scrollTop,a=e.width,s=this.props.cellCount;if(r>=0&&r<s){var c=this._cellMetadata[r];l=je({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:l}),i=je({align:t,cellOffset:c.y,cellSize:c.height,containerSize:n,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,r=e.height,n=e.isScrolling,l=e.width,i=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,d=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:r,width:l,x:i,y:a}),c({cellCache:this._cellCache,cellRenderer:d,cellSizeAndPositionGetter:function(h){var f=h.index;return t._sectionManager.getCellMetadata({index:f})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}();function xt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xt=function(){return!!o})()}function De(o){var e=o.cellCount,t=o.cellSize,r=o.computeMetadataCallback,n=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)||(r(n),s>=0&&s===a&&c())}function ee(o,e){if(o==null)return{};var t,r,n=p.Mm(o,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(r=0;r<l.length;r++)t=l[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}m(We,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(o){var e=o.cellCache,t=o.cellRenderer,r=o.cellSizeAndPositionGetter,n=o.indices,l=o.isScrolling;return n.map(function(i){var a=r({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})}}),We.propTypes={},function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,xt()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)))._registerChild=r._registerChild.bind(r),r}return j(o,p.reactExports.PureComponent),A(o,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.columnMaxWidth,n=t.columnMinWidth,l=t.columnCount,i=t.width;r===e.columnMaxWidth&&n===e.columnMinWidth&&l===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.columnMaxWidth,n=e.columnMinWidth,l=e.columnCount,i=e.width,a=n||1,s=r?Math.min(r,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 D,eo=A(function o(e){var t=e.cellCount,r=e.cellSizeGetter,n=e.estimatedCellSize;G(this,o),m(this,"_cellSizeAndPositionData",{}),m(this,"_lastMeasuredIndex",-1),m(this,"_lastBatchedIndex",-1),m(this,"_cellCount",void 0),m(this,"_cellSizeGetter",void 0),m(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=t,this._estimatedCellSize=n},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(o){var e=o.cellCount,t=o.estimatedCellSize,r=o.cellSizeGetter;this._cellCount=e,this._estimatedCellSize=t,this._cellSizeGetter=r}},{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,r=this._lastMeasuredIndex+1;r<=o;r++){var n=this._cellSizeGetter({index:r});if(n===void 0||isNaN(n))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(n));n===null?(this._cellSizeAndPositionData[r]={offset:t,size:0},this._lastBatchedIndex=o):(this._cellSizeAndPositionData[r]={offset:t,size:n},t+=n,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,r=o.containerSize,n=o.currentOffset,l=o.targetIndex;if(r<=0)return 0;var i,a=this.getSizeAndPositionOfCell(l),s=a.offset,c=s-r+a.size;switch(t){case"start":i=s;break;case"end":i=c;break;case"center":i=s-(r-a.size)/2;break;default:i=Math.max(c,Math.min(s,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-r,i))}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;if(this.getTotalSize()===0)return{};var r=t+e,n=this._findNearestCell(t),l=this.getSizeAndPositionOfCell(n);t=l.offset+l.size;for(var i=n;t<r&&i<this._cellCount-1;)i++,t+=this.getSizeAndPositionOfCell(i).size;return{start:n,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 r=e+Math.floor((o-e)/2),n=this.getSizeAndPositionOfCell(r).offset;if(n===t)return r;n<t?e=r+1:n>t&&(o=r-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)}}]),to=["maxScrollSize"],Fe=A(function o(e){var t=e.maxScrollSize,r=t===void 0?typeof window<"u"&&window.chrome?16777100:15e5:t,n=ee(e,to);G(this,o),m(this,"_cellSizeAndPositionManager",void 0),m(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new eo(n),this._maxScrollSize=r},[{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,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(l*(n-r))}},{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,r=o.containerSize,n=o.currentOffset,l=o.targetIndex;n=this._safeOffsetToOffset({containerSize:r,offset:n});var i=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:r,currentOffset:n,targetIndex:l});return this._offsetToSafeOffset({containerSize:r,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,r=o.totalSize;return r<=e?0:t/(r-e)}},{key:"_offsetToSafeOffset",value:function(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(n-e))}},{key:"_safeOffsetToOffset",value:function(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(l*(r-e))}}]);function Ne(o){var e=o.cellSize,t=o.cellSizeAndPositionManager,r=o.previousCellsCount,n=o.previousCellSize,l=o.previousScrollToAlignment,i=o.previousScrollToIndex,a=o.previousSize,s=o.scrollOffset,c=o.scrollToAlignment,d=o.scrollToIndex,h=o.size,f=o.sizeJustIncreasedFromZero,u=o.updateScrollIndexCallback,_=t.getCellCount(),g=d>=0&&d<_;g&&(h!==a||f||!n||typeof e=="number"&&e!==n||c!==l||d!==i)?u(d):!g&&_>0&&(h<a||_<r)&&s>t.getTotalSize()-h&&u(_-1)}var oo=(D=typeof window<"u"?window:typeof self<"u"?self:{}).requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||function(o){return D.setTimeout(o,1e3/60)},ro=D.cancelAnimationFrame||D.webkitCancelAnimationFrame||D.mozCancelAnimationFrame||D.oCancelAnimationFrame||D.msCancelAnimationFrame||function(o){D.clearTimeout(o)},Be=oo,no=ro,J=function(o){return no(o.id)},be=function(o,e){var t;Promise.resolve().then(function(){t=Date.now()});var r=function(){Date.now()-t>=e?o.call():n.id=Be(r)},n={id:Be(r)};return n};function Ue(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function W(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ue(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ue(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function wt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wt=function(){return!!o})()}var Ve="requested",U=function(){function o(e){var t,r,n,l;G(this,o),r=this,l=[e],n=k(n=o),m(t=H(r,wt()?Reflect.construct(n,l||[],k(r).constructor):n.apply(r,l)),"_onGridRenderedMemoizer",Y()),m(t,"_onScrollMemoizer",Y(!1)),m(t,"_deferredInvalidateColumnIndex",null),m(t,"_deferredInvalidateRowIndex",null),m(t,"_recomputeScrollLeftFlag",!1),m(t,"_recomputeScrollTopFlag",!1),m(t,"_horizontalScrollBarSize",0),m(t,"_verticalScrollBarSize",0),m(t,"_scrollbarPresenceChanged",!1),m(t,"_scrollingContainer",void 0),m(t,"_childrenToDisplay",void 0),m(t,"_columnStartIndex",void 0),m(t,"_columnStopIndex",void 0),m(t,"_rowStartIndex",void 0),m(t,"_rowStopIndex",void 0),m(t,"_renderedColumnStartIndex",0),m(t,"_renderedColumnStopIndex",0),m(t,"_renderedRowStartIndex",0),m(t,"_renderedRowStopIndex",0),m(t,"_initialScrollTop",void 0),m(t,"_initialScrollLeft",void 0),m(t,"_disablePointerEventsTimeoutId",void 0),m(t,"_styleCache",{}),m(t,"_cellCache",{}),m(t,"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),m(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}})}),m(t,"_setScrollingContainerRef",function(s){t._scrollingContainer=s,typeof t.props.elementRef=="function"?t.props.elementRef(s):X(t.props.elementRef)==="object"&&(t.props.elementRef.current=s)}),m(t,"_onScroll",function(s){s.target===t._scrollingContainer&&t.handleScrollEvent(s.target)});var i=new Fe({cellCount:e.columnCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.columnWidth)(s)},estimatedCellSize:o._getEstimatedColumnSize(e)}),a=new Fe({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,p.reactExports.PureComponent),A(o,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.alignment,r=t===void 0?this.props.scrollToAlignment:t,n=e.columnIndex,l=n===void 0?this.props.scrollToColumn:n,i=e.rowIndex,a=i===void 0?this.props.scrollToRow:i,s=W(W({},this.props),{},{scrollToAlignment:r,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,r=t===void 0?0:t,n=e.scrollTop,l=n===void 0?0:n;if(!(l<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,c=i.height,d=i.width,h=this.state.instanceProps,f=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),_=h.columnSizeAndPositionManager.getTotalSize(),g=Math.min(Math.max(0,_-d+f),r),S=Math.min(Math.max(0,u-c+f),l);if(this.state.scrollLeft!==g||this.state.scrollTop!==S){var y={isScrolling:!0,scrollDirectionHorizontal:g!==this.state.scrollLeft?g>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:S!==this.state.scrollTop?S>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(y.scrollTop=S),s||(y.scrollLeft=g),y.needToResetStyleCache=!1,this.setState(y)}this._invokeOnScrollMemoizer({scrollLeft:g,scrollTop:S,totalColumnsWidth:_,totalRowsHeight:u})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,r=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(r-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,c=this.state.instanceProps;c.columnSizeAndPositionManager.resetCell(r),c.rowSizeAndPositionManager.resetCell(l),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===1?r<=a:r>=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,r=e.rowIndex,n=this.props.columnCount,l=this.props;n>1&&t!==void 0&&this._updateScrollLeftForScrollToColumn(W(W({},l),{},{scrollToColumn:t})),r!==void 0&&this._updateScrollTopForScrollToRow(W(W({},l),{},{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,r=e.height,n=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 u=W(W({},f),{},{needToResetStyleCache:!1});return u.instanceProps.scrollbarSize=t(),u.instanceProps.scrollbarSizeMeasured=!0,u}),typeof n=="number"&&n>=0||typeof i=="number"&&i>=0){var d=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:i});d&&(d.needToResetStyleCache=!1,this.setState(d))}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 h=r>0&&s>0;l>=0&&h&&this._updateScrollLeftForScrollToColumn(),a>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:i||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,l=n.autoHeight,i=n.autoWidth,a=n.columnCount,s=n.height,c=n.rowCount,d=n.scrollToAlignment,h=n.scrollToColumn,f=n.scrollToRow,u=n.width,_=this.state,g=_.scrollLeft,S=_.scrollPositionChangeReason,y=_.scrollTop,x=_.instanceProps;this._handleInvalidatedGridSize();var v=a>0&&e.columnCount===0||c>0&&e.rowCount===0;S===Ve&&(!i&&g>=0&&(g!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=g),!l&&y>=0&&(y!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=y));var w=(e.width===0||e.height===0)&&s>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Ne({cellSizeAndPositionManager:x.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:g,scrollToAlignment:d,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Ne({cellSizeAndPositionManager:x.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:y,scrollToAlignment:d,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return r._updateScrollTopForScrollToRow(r.props)}}),this._invokeOnGridRenderedHelper(),g!==t.scrollLeft||y!==t.scrollTop){var C=x.rowSizeAndPositionManager.getTotalSize(),b=x.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:g,scrollTop:y,totalColumnsWidth:b,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&J(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,r=e.autoHeight,n=e.autoWidth,l=e.className,i=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,d=e.id,h=e.noContentRenderer,f=e.role,u=e.style,_=e.tabIndex,g=e.width,S=this.state,y=S.instanceProps,x=S.needToResetStyleCache,v=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:r?"auto":c,position:"relative",width:n?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};x&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=y.columnSizeAndPositionManager.getTotalSize(),b=y.rowSizeAndPositionManager.getTotalSize(),R=b>c?y.scrollbarSize:0,T=C>g?y.scrollbarSize:0;T===this._horizontalScrollBarSize&&R===this._verticalScrollBarSize||(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),w.overflowX=C+R<=g?"hidden":"auto",w.overflowY=b+T<=c?"hidden":"auto";var I=this._childrenToDisplay,O=I.length===0&&c>0&&g>0;return p.reactExports.createElement("div",p.du({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:F.he("ReactVirtualized__Grid",l),id:d,onScroll:this._onScroll,role:f,style:W(W({},w),u),tabIndex:_}),I.length>0&&p.reactExports.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:W({width:t?"auto":C,height:b,maxWidth:C,maxHeight:b,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"},s)},I),O&&h())}},{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,r=e.cellRenderer,n=e.cellRangeRenderer,l=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,c=e.overscanIndicesGetter,d=e.overscanRowCount,h=e.rowCount,f=e.width,u=e.isScrollingOptOut,_=t.scrollDirectionHorizontal,g=t.scrollDirectionVertical,S=t.instanceProps,y=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,x=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var w=S.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:x}),C=S.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:y}),b=S.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:x}),R=S.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:y});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var T=c({direction:"horizontal",cellCount:l,overscanCellsCount:s,scrollDirection:_,startIndex:typeof w.start=="number"?w.start:0,stopIndex:typeof w.stop=="number"?w.stop:-1}),I=c({direction:"vertical",cellCount:h,overscanCellsCount:d,scrollDirection:g,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),O=T.overscanStartIndex,P=T.overscanStopIndex,z=I.overscanStartIndex,E=I.overscanStopIndex;if(i){if(!i.hasFixedHeight()){for(var L=z;L<=E;L++)if(!i.has(L,0)){O=0,P=l-1;break}}if(!i.hasFixedWidth()){for(var N=O;N<=P;N++)if(!i.has(0,N)){z=0,E=h-1;break}}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:S.columnSizeAndPositionManager,columnStartIndex:O,columnStopIndex:P,deferredMeasurementCache:i,horizontalOffsetAdjustment:b,isScrolling:v,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:S.rowSizeAndPositionManager,rowStartIndex:z,rowStopIndex:E,scrollLeft:x,scrollTop:y,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:w,visibleRowIndices:C}),this._columnStartIndex=O,this._columnStopIndex=P,this._rowStartIndex=z,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&J(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=be(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,r=e.scrollLeft,n=e.scrollTop,l=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,h=d.height;(0,d.onScroll)({clientHeight:h,clientWidth:d.width,scrollHeight:i,scrollLeft:s,scrollTop:c,scrollWidth:l})},indices:{scrollLeft:r,scrollTop:n}})}},{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,r=e.scrollTop,n=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:t,scrollTop:r});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{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,r=o._getScrollLeftForScrollToColumnStateUpdate(e,t);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{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,r=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var i="".concat(n,"-").concat(l);this._styleCache[i]=e[i],r&&(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,r=o._getScrollTopForScrollToRowStateUpdate(e,t);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r={};e.columnCount===0&&t.scrollLeft!==0||e.rowCount===0&&t.scrollTop!==0?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==t.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==t.scrollTop&&e.scrollToRow<0)&&Object.assign(r,o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,l,i=t.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===i.prevColumnWidth&&e.rowHeight===i.prevRowHeight||(r.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(r,{isScrolling:!1}),De({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(){n=o._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),De({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,r.instanceProps=i,W(W(W({},r),n),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,r=e.scrollLeft,n=e.scrollTop,l={scrollPositionChangeReason:Ve};return typeof r=="number"&&r>=0&&(l.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,l.scrollLeft=r),typeof n=="number"&&n>=0&&(l.scrollDirectionVertical=n>t.scrollTop?1:-1,l.scrollTop=n),typeof r=="number"&&r>=0&&r!==t.scrollLeft||typeof n=="number"&&n>=0&&n!==t.scrollTop?l:{}}},{key:"_wrapSizeGetter",value:function(e){return typeof e=="function"?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var r=e.columnCount,n=e.height,l=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,c=t.instanceProps;if(r>0){var d=r-1,h=i<0?d:Math.min(d,i),f=c.rowSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&f>n?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:a-u,currentOffset:s,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,t){var r=t.scrollLeft,n=o._getCalculatedScrollLeft(e,t);return typeof n=="number"&&n>=0&&r!==n?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var r=e.height,n=e.rowCount,l=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,c=t.instanceProps;if(n>0){var d=n-1,h=i<0?d:Math.min(d,i),f=c.columnSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&f>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:r-u,currentOffset:s,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,t){var r=t.scrollTop,n=o._getCalculatedScrollTop(e,t);return typeof n=="number"&&n>=0&&r!==n?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:-1,scrollTop:n}):{}}}])}();function Ct(o){var e=o.cellCount,t=o.overscanCellsCount,r=o.scrollDirection,n=o.startIndex,l=o.stopIndex;return t=Math.max(1,t),r===1?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,l+1)}}function _e(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function Rt(o,e){if(o){if(typeof o=="string")return _e(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)?_e(o,e):void 0}}function bt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bt=function(){return!!o})()}m(U,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(o){for(var e=o.cellCache,t=o.cellRenderer,r=o.columnSizeAndPositionManager,n=o.columnStartIndex,l=o.columnStopIndex,i=o.deferredMeasurementCache,a=o.horizontalOffsetAdjustment,s=o.isScrolling,c=o.isScrollingOptOut,d=o.parent,h=o.rowSizeAndPositionManager,f=o.rowStartIndex,u=o.rowStopIndex,_=o.styleCache,g=o.verticalOffsetAdjustment,S=o.visibleColumnIndices,y=o.visibleRowIndices,x=[],v=r.areOffsetsAdjusted()||h.areOffsetsAdjusted(),w=!s&&!v,C=f;C<=u;C++)for(var b=h.getSizeAndPositionOfCell(C),R=n;R<=l;R++){var T=r.getSizeAndPositionOfCell(R),I=R>=S.start&&R<=S.stop&&C>=y.start&&C<=y.stop,O="".concat(C,"-").concat(R),P=void 0;w&&_[O]?P=_[O]:i&&!i.has(C,R)?P={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(P={height:b.size,left:T.offset+a,position:"absolute",top:b.offset+g,width:T.size},_[O]=P);var z={columnIndex:R,isScrolling:s,isVisible:I,key:O,parent:d,rowIndex:C,style:P},E=void 0;!c&&!s||a||g?E=t(z):(e[O]||(e[O]=t(z)),E=e[O]),E!=null&&E!==!1&&(E.props.role||(E=p.yt.cloneElement(E,{role:"gridcell"})),x.push(E))}return x},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:ve,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(o){var e=o.cellCount,t=o.overscanCellsCount,r=o.scrollDirection,n=o.startIndex,l=o.stopIndex;return r===1?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,l)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),le(U);var $e=function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,bt()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)))._loadMoreRowsMemoizer=Y(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return j(o,p.reactExports.PureComponent),A(o,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Y(),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,r=this.props.loadMoreRows;e.forEach(function(n){var l=r(n);l&&l.then(function(){var i;(i={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:n.startIndex,stopIndex:n.stopIndex}).startIndex>i.lastRenderedStopIndex||i.stopIndex<i.lastRenderedStartIndex||t._registeredChild&&function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=typeof a.recomputeGridSize=="function"?a.recomputeGridSize:a.recomputeRowHeights;c?c.call(a,s):a.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,r=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=r,this._doStuff(t,r)}},{key:"_doStuff",value:function(e,t){var r,n=this,l=this.props,i=l.isRowLoaded,a=l.minimumBatchSize,s=l.rowCount,c=l.threshold,d=function(f){for(var u=f.isRowLoaded,_=f.minimumBatchSize,g=f.rowCount,S=f.stopIndex,y=[],x=null,v=null,w=f.startIndex;w<=S;w++)u({index:w})?v!==null&&(y.push({startIndex:x,stopIndex:v}),x=v=null):(v=w,x===null&&(x=w));if(v!==null){for(var C=Math.min(Math.max(v,x+_-1),g-1),b=v+1;b<=C&&!u({index:b});b++)v=b;y.push({startIndex:x,stopIndex:v})}if(y.length)for(var R=y[0];R.stopIndex-R.startIndex+1<_&&R.startIndex>0;){var T=R.startIndex-1;if(u({index:T}))break;R.startIndex=T}return y}({isRowLoaded:i,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-c),stopIndex:Math.min(s-1,t+c)}),h=(r=[]).concat.apply(r,function(f){return function(u){if(Array.isArray(u))return _e(u)}(f)||function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}(f)||Rt(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(d.map(function(f){return[f.startIndex,f.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}();function zt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zt=function(){return!!o})()}m($e,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),$e.propTypes={};var io=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,zt()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"Grid",void 0),m(e,"_cellRenderer",function(s){var c=s.parent,d=s.rowIndex,h=s.style,f=s.isScrolling,u=s.isVisible,_=s.key,g=e.props.rowRenderer,S=Object.getOwnPropertyDescriptor(h,"width");return S&&S.writable&&(h.width="100%"),g({index:d,style:h,isScrolling:f,isVisible:u,key:_,parent:c})}),m(e,"_setRef",function(s){e.Grid=s}),m(e,"_onScroll",function(s){var c=s.clientHeight,d=s.scrollHeight,h=s.scrollTop;(0,e.props.onScroll)({clientHeight:c,scrollHeight:d,scrollTop:h})}),m(e,"_onSectionRendered",function(s){var c=s.rowOverscanStartIndex,d=s.rowOverscanStopIndex,h=s.rowStartIndex,f=s.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:c,overscanStopIndex:d,startIndex:h,stopIndex:f})}),e}return j(o,p.reactExports.PureComponent),A(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,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,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:r})}},{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,r=e.noRowsRenderer,n=e.scrollToIndex,l=e.width,i=F.he("ReactVirtualized__List",t);return p.reactExports.createElement(U,p.du({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:l,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}])}();m(io,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Ct,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ae=function(o,e,t,r,n){return typeof t=="function"?function(l,i,a,s,c){for(var d=a+1;i<=a;){var h=i+a>>>1;c(l[h],s)>=0?(d=h,a=h-1):i=h+1}return d}(o,r===void 0?0:0|r,n===void 0?o.length-1:0|n,e,t):function(l,i,a,s){for(var c=a+1;i<=a;){var d=i+a>>>1;l[d]>=s?(c=d,a=d-1):i=d+1}return c}(o,t===void 0?0:0|t,r===void 0?o.length-1:0|r,e)};function ze(o,e,t,r,n){this.mid=o,this.left=e,this.right=t,this.leftPoints=r,this.rightPoints=n,this.count=(e?e.count:0)+(t?t.count:0)+r.length}var Q=ze.prototype;function fe(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 Tt(o,e){var t=ne(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 qe(o,e){var t=o.intervals([]);t.push(e),Tt(o,t)}function Ke(o,e){var t=o.intervals([]),r=t.indexOf(e);return r<0?0:(t.splice(r,1),Tt(o,t),1)}function Xe(o,e,t){for(var r=0;r<o.length&&o[r][0]<=e;++r){var n=t(o[r]);if(n)return n}}function Ye(o,e,t){for(var r=o.length-1;r>=0&&o[r][1]>=e;--r){var n=t(o[r]);if(n)return n}}function Je(o,e){for(var t=0;t<o.length;++t){var r=e(o[t]);if(r)return r}}function lo(o,e){return o-e}function Se(o,e){return o[0]-e[0]||o[1]-e[1]}function ye(o,e){return o[1]-e[1]||o[0]-e[0]}function ne(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(lo);var r=e[e.length>>1],n=[],l=[],i=[];for(t=0;t<o.length;++t){var a=o[t];a[1]<r?n.push(a):r<a[0]?l.push(a):i.push(a)}var s=i,c=i.slice();return s.sort(Se),c.sort(ye),new ze(r,ne(n),ne(l),s,c)}function It(o){this.root=o}Q.intervals=function(o){return o.push.apply(o,this.leftPoints),this.left&&this.left.intervals(o),this.right&&this.right.intervals(o),o},Q.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)?qe(this,o):this.left.insert(o):this.left=ne([o]);else if(o[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?qe(this,o):this.right.insert(o):this.right=ne([o]);else{var t=ae(this.leftPoints,o,Se),r=ae(this.rightPoints,o,ye);this.leftPoints.splice(t,0,o),this.rightPoints.splice(r,0,o)}},Q.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)?Ke(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)?Ke(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,r=this.left;r.right;)t=r,r=r.right;if(t===this)r.right=this.right;else{var n=this.left,l=this.right;t.count-=r.count,t.right=r.left,r.left=n,r.right=l}fe(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?fe(this,this.left):fe(this,this.right);return 1}for(n=ae(this.leftPoints,o,Se);n<this.leftPoints.length&&this.leftPoints[n][0]===o[0];++n)if(this.leftPoints[n]===o){for(this.count-=1,this.leftPoints.splice(n,1),l=ae(this.rightPoints,o,ye);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},Q.queryPoint=function(o,e){return o<this.mid?this.left&&(t=this.left.queryPoint(o,e))?t:Xe(this.leftPoints,o,e):o>this.mid?this.right&&(t=this.right.queryPoint(o,e))?t:Ye(this.rightPoints,o,e):Je(this.leftPoints,e);var t},Q.queryInterval=function(o,e,t){var r;return o<this.mid&&this.left&&(r=this.left.queryInterval(o,e,t))||e>this.mid&&this.right&&(r=this.right.queryInterval(o,e,t))?r:e<this.mid?Xe(this.leftPoints,e,t):o>this.mid?Ye(this.rightPoints,o,t):Je(this.leftPoints,t)};var K=It.prototype;K.insert=function(o){this.root?this.root.insert(o):this.root=new ze(o[0],null,null,[o],[o])},K.remove=function(o){if(this.root){var e=this.root.remove(o);return e===2&&(this.root=null),e!==0}return!1},K.queryPoint=function(o,e){if(this.root)return this.root.queryPoint(o,e)},K.queryInterval=function(o,e,t){if(o<=e&&this.root)return this.root.queryInterval(o,e,t)},Object.defineProperty(K,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(K,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var pe=A(function o(){G(this,o),m(this,"_columnSizeMap",{}),m(this,"_intervalTree",new It(null)),m(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(o,e,t){var r=o-this.count;return this.tallestColumnSize+Math.ceil(r/e)*t}},{key:"range",value:function(o,e,t){var r=this;this._intervalTree.queryInterval(o,o+e,function(n){var l=function(s,c){return function(d){if(Array.isArray(d))return d}(s)||function(d,h){var f=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(f!=null){var u,_,g,S,y=[],x=!0,v=!1;try{if(g=(f=f.call(d)).next,h!==0)for(;!(x=(u=g.call(f)).done)&&(y.push(u.value),y.length!==h);x=!0);}catch(w){v=!0,_=w}finally{try{if(!x&&f.return!=null&&(S=f.return(),Object(S)!==S))return}finally{if(v)throw _}}return y}}(s,c)||Rt(s,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(n,3),i=l[0];l[1];var a=l[2];return t(a,r._leftMap[a],i)})}},{key:"setPosition",value:function(o,e,t,r){this._intervalTree.insert([t,t+r,o]),this._leftMap[o]=e;var n=this._columnSizeMap,l=n[e];n[e]=l===void 0?t+r:Math.max(l,t+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var r=o[t];e=e===0?r:Math.min(e,r)}return e}},{key:"tallestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var r=o[t];e=Math.max(e,r)}return e}}]);function Ze(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function so(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ze(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ze(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Pt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pt=function(){return!!o})()}var Qe=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,Pt()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{isScrolling:!1,scrollTop:0}),m(e,"_debounceResetIsScrollingId",void 0),m(e,"_invalidateOnUpdateStartIndex",null),m(e,"_invalidateOnUpdateStopIndex",null),m(e,"_positionCache",new pe),m(e,"_startIndex",null),m(e,"_startIndexMemoized",null),m(e,"_stopIndex",null),m(e,"_stopIndexMemoized",null),m(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),m(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),m(e,"_onScroll",function(s){var c=e.props.height,d=s.currentTarget.scrollTop,h=Math.min(Math.max(0,e._getEstimatedTotalHeight()-c),d);d===h&&(e._debounceResetIsScrolling(),e.state.scrollTop!==h&&e.setState({isScrolling:!0,scrollTop:h}))}),e}return j(o,p.reactExports.PureComponent),A(o,[{key:"clearCellPositions",value:function(){this._positionCache=new pe,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 pe,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&&J(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.autoHeight,l=r.cellCount,i=r.cellMeasurerCache,a=r.cellRenderer,s=r.className,c=r.height,d=r.id,h=r.keyMapper,f=r.overscanByPixels,u=r.role,_=r.style,g=r.tabIndex,S=r.width,y=r.rowDirection,x=this.state,v=x.isScrolling,w=x.scrollTop,C=[],b=this._getEstimatedTotalHeight(),R=this._positionCache.shortestColumnSize,T=this._positionCache.count,I=0;if(this._positionCache.range(Math.max(0,w-f),c+2*f,function(z,E,L){e===void 0?(I=z,e=z):(I=Math.min(I,z),e=Math.max(e,z)),C.push(a({index:z,isScrolling:v,key:h(z),parent:t,style:m(m(m(m({height:i.getHeight(z)},y==="ltr"?"left":"right",E),"position","absolute"),"top",L),"width",i.getWidth(z))}))}),R<w+c+f&&T<l)for(var O=Math.min(l-T,Math.ceil((w+c+f-R)/i.defaultHeight*S/i.defaultWidth)),P=T;P<T+O;P++)e=P,C.push(a({index:P,isScrolling:v,key:h(P),parent:this,style:{width:i.getWidth(P)}}));return this._startIndex=I,this._stopIndex=e,p.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:F.he("ReactVirtualized__Masonry",s),id:d,onScroll:this._onScroll,role:u,style:so({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:b<c?"hidden":"auto",position:"relative",width:S,WebkitOverflowScrolling:"touch",willChange:"transform"},_),tabIndex:g},p.reactExports.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:b,maxWidth:"100%",maxHeight:b,overflow:"hidden",pointerEvents:v?"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&&J(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=be(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,r=e.cellMeasurerCache,n=e.width,l=Math.max(1,Math.floor(n/r.defaultWidth));return this._positionCache.estimateTotalHeight(t,l,r.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,r=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(r({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{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 r=this.props,n=r.cellMeasurerCache,l=r.cellPositioner,i=e;i<=t;i++){var a=l(i),s=a.left,c=a.top;this._positionCache.setPosition(i,s,c,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollTop!==void 0&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}();function et(){}m(Qe,"defaultProps",{autoHeight:!1,keyMapper:function(o){return o},onCellsRendered:et,onScroll:et,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),le(Qe);var me=A(function o(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};G(this,o),m(this,"_cellMeasurerCache",void 0),m(this,"_columnIndexOffset",void 0),m(this,"_rowIndexOffset",void 0),m(this,"columnWidth",function(s){var c=s.index;e._cellMeasurerCache.columnWidth({index:c+e._columnIndexOffset})}),m(this,"rowHeight",function(s){var c=s.index;e._cellMeasurerCache.rowHeight({index:c+e._rowIndexOffset})});var r=t.cellMeasurerCache,n=t.columnIndexOffset,l=n===void 0?0:n,i=t.rowIndexOffset,a=i===void 0?0:i;this._cellMeasurerCache=r,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,r){this._cellMeasurerCache.set(o+this._rowIndexOffset,e+this._columnIndexOffset,t,r)}}]),ao=["rowIndex"],co=["columnIndex","rowIndex"],uo=["columnIndex"],ho=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function tt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function M(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):tt(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ot(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ot=function(){return!!o})()}var ge=function(){function o(e,t){var r,n,l,i;G(this,o),n=this,i=[e,t],l=k(l=o),m(r=H(n,Ot()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),m(r,"_deferredInvalidateColumnIndex",null),m(r,"_deferredInvalidateRowIndex",null),m(r,"_bottomLeftGridRef",function(d){r._bottomLeftGrid=d}),m(r,"_bottomRightGridRef",function(d){r._bottomRightGrid=d}),m(r,"_cellRendererBottomLeftGrid",function(d){var h=d.rowIndex,f=ee(d,ao),u=r.props,_=u.cellRenderer,g=u.fixedRowCount;return h===u.rowCount-g?p.reactExports.createElement("div",{key:f.key,style:M(M({},f.style),{},{height:20})}):_(M(M({},f),{},{parent:r,rowIndex:h+g}))}),m(r,"_cellRendererBottomRightGrid",function(d){var h=d.columnIndex,f=d.rowIndex,u=ee(d,co),_=r.props,g=_.cellRenderer,S=_.fixedColumnCount,y=_.fixedRowCount;return g(M(M({},u),{},{columnIndex:h+S,parent:r,rowIndex:f+y}))}),m(r,"_cellRendererTopRightGrid",function(d){var h=d.columnIndex,f=ee(d,uo),u=r.props,_=u.cellRenderer,g=u.columnCount,S=u.fixedColumnCount;return h===g-S?p.reactExports.createElement("div",{key:f.key,style:M(M({},f.style),{},{width:20})}):_(M(M({},f),{},{columnIndex:h+S,parent:r}))}),m(r,"_columnWidthRightGrid",function(d){var h=d.index,f=r.props,u=f.columnCount,_=f.fixedColumnCount,g=f.columnWidth,S=r.state,y=S.scrollbarSize;return S.showHorizontalScrollbar&&h===u-_?y:typeof g=="function"?g({index:h+_}):g}),m(r,"_onScroll",function(d){var h=d.scrollLeft,f=d.scrollTop;r.setState({scrollLeft:h,scrollTop:f});var u=r.props.onScroll;u&&u(d)}),m(r,"_onScrollbarPresenceChange",function(d){var h=d.horizontal,f=d.size,u=d.vertical,_=r.state,g=_.showHorizontalScrollbar,S=_.showVerticalScrollbar;if(h!==g||u!==S){r.setState({scrollbarSize:f,showHorizontalScrollbar:h,showVerticalScrollbar:u});var y=r.props.onScrollbarPresenceChange;typeof y=="function"&&y({horizontal:h,size:f,vertical:u})}}),m(r,"_onScrollLeft",function(d){var h=d.scrollLeft;r._onScroll({scrollLeft:h,scrollTop:r.state.scrollTop})}),m(r,"_onScrollTop",function(d){var h=d.scrollTop;r._onScroll({scrollTop:h,scrollLeft:r.state.scrollLeft})}),m(r,"_rowHeightBottomGrid",function(d){var h=d.index,f=r.props,u=f.fixedRowCount,_=f.rowCount,g=f.rowHeight,S=r.state,y=S.scrollbarSize;return S.showVerticalScrollbar&&h===_-u?y:typeof g=="function"?g({index:h+u}):g}),m(r,"_topLeftGridRef",function(d){r._topLeftGrid=d}),m(r,"_topRightGridRef",function(d){r._topRightGrid=d});var a=e.deferredMeasurementCache,s=e.fixedColumnCount,c=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),a&&(r._deferredMeasurementCacheBottomLeftGrid=c>0?new me({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:c}):a,r._deferredMeasurementCacheBottomRightGrid=s>0||c>0?new me({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:c}):a,r._deferredMeasurementCacheTopRightGrid=s>0?new me({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:0}):a),r}return j(o,p.reactExports.PureComponent),A(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,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,r):r,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,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n,i=this.props,a=i.fixedColumnCount,s=i.fixedRowCount,c=Math.max(0,r-a),d=Math.max(0,l-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:d}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:c,rowIndex:d}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:r,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,r=e.scrollTop;if(t>0||r>0){var n={};t>0&&(n.scrollLeft=t),r>0&&(n.scrollTop=r),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,r=e.onSectionRendered;e.onScrollbarPresenceChange,e.scrollLeft;var n=e.scrollToColumn;e.scrollTop;var l=e.scrollToRow,i=ee(e,ho);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return p.reactExports.createElement("div",{style:this._containerOuterStyle},p.reactExports.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(M(M({},i),{},{onScroll:t,scrollLeft:s}))),p.reactExports.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(M(M({},i),{},{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(M(M({},i),{},{onScroll:t,onSectionRendered:r,scrollLeft:s,scrollToColumn:n,scrollToRow:l,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,r=e.columnWidth;if(this._leftGridWidth==null)if(typeof r=="function"){for(var n=0,l=0;l<t;l++)n+=r({index:l});this._leftGridWidth=n}else this._leftGridWidth=r*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,r=e.rowHeight;if(this._topGridHeight==null)if(typeof r=="function"){for(var n=0,l=0;l<t;l++)n+=r({index:l});this._topGridHeight=n}else this._topGridHeight=r*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,r=t.columnWidth,n=t.enableFixedColumnScroll,l=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,c=t.rowHeight,d=t.style,h=t.styleBottomLeftGrid,f=t.styleBottomRightGrid,u=t.styleTopLeftGrid,_=t.styleTopRightGrid,g=t.width,S=e||i!==this._lastRenderedHeight||g!==this._lastRenderedWidth,y=e||r!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,x=e||s!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||S||d!==this._lastRenderedStyle)&&(this._containerOuterStyle=M({height:i,overflow:"visible",width:g},d)),(e||S||x)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:g},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:g}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=M({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||y||f!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=M({left:this._getLeftGridWidth(this.props),position:"absolute"},f)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=M({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||y||_!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=M({left:this._getLeftGridWidth(this.props),overflowX:l?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},_)),this._lastRenderedColumnWidth=r,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=i,this._lastRenderedRowHeight=c,this._lastRenderedStyle=d,this._lastRenderedStyleBottomLeftGrid=h,this._lastRenderedStyleBottomRightGrid=f,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=_,this._lastRenderedWidth=g}},{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,r=e.fixedColumnCount,n=e.fixedRowCount,l=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!r)return null;var s=a?1:0,c=this._getBottomGridHeight(e),d=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,f=i?d+h:d,u=p.reactExports.createElement(U,p.du({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:r,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,l-n)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:f}));return i?p.reactExports.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:M(M({},this._bottomLeftGridStyle),{},{height:c,width:d,overflowY:"hidden"})},u):u}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,r=e.fixedColumnCount,n=e.fixedRowCount,l=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return p.reactExports.createElement(U,p.du({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-r),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,l-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-r,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,r=e.fixedRowCount;return t&&r?p.reactExports.createElement(U,p.du({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:r,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,r=e.enableFixedRowScroll,n=e.fixedColumnCount,l=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,c=s.showHorizontalScrollbar,d=s.scrollbarSize;if(!l)return null;var h=c?1:0,f=this._getTopGridHeight(e),u=this._getRightGridWidth(e),_=c?d:0,g=f,S=this._topRightGridStyle;a&&(g=f+_,S=M(M({},this._topRightGridStyle),{},{left:0}));var y=p.reactExports.createElement(U,p.du({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+h,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:g,onScroll:r?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:i,style:S,tabIndex:null,width:u}));return a?p.reactExports.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:M(M({},this._topRightGridStyle),{},{height:f,width:u,overflowX:"hidden"})},y):y}}],[{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 kt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kt=function(){return!!o})()}m(ge,"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}),ge.propTypes={},le(ge),function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,kt()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(r),r}return j(o,p.reactExports.PureComponent),A(o,[{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.clientHeight,n=t.clientWidth,l=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:r,clientWidth:n,onScroll:this._onScroll,scrollHeight:l,scrollLeft:i,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.clientWidth,n=e.scrollHeight,l=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:r,scrollHeight:n,scrollLeft:l,scrollTop:i,scrollWidth:a})}}])}().propTypes={};var ie="ASC",xe="DESC";function Mt(o){var e=o.sortDirection,t=F.he("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":e===ie,"ReactVirtualized__Table__sortableHeaderIcon--DESC":e===xe});return p.reactExports.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},e===ie?p.reactExports.createElement("path",{d:"M7 14l5-5 5 5z"}):p.reactExports.createElement("path",{d:"M7 10l5 5 5-5z"}),p.reactExports.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})()}Mt.propTypes={};var ue=function(){function o(){return G(this,o),e=this,r=arguments,t=k(t=o),H(e,Et()?Reflect.construct(t,r||[],k(e).constructor):t.apply(e,r));var e,t,r}return j(o,p.reactExports.Component),A(o)}();function ot(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function B(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Lt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lt=function(){return!!o})()}m(ue,"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:ie,flexGrow:0,flexShrink:1,headerRenderer:function(o){var e=o.dataKey,t=o.label,r=o.sortBy,n=o.sortDirection,l=r===e,i=[p.reactExports.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return l&&i.push(p.reactExports.createElement(Mt,{key:"SortIndicator",sortDirection:n})),i},style:{}}),ue.propTypes={};var we=function(){function o(e){var t,r,n,l;return G(this,o),r=this,l=[e],n=k(n=o),(t=H(r,Lt()?Reflect.construct(n,l||[],k(r).constructor):n.apply(r,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,p.reactExports.PureComponent),A(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,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,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:r})}},{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,r=t.children,n=t.className,l=t.disableHeader,i=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,d=t.height,h=t.id,f=t.noRowsRenderer,u=t.rowClassName,_=t.rowStyle,g=t.scrollToIndex,S=t.style,y=t.width,x=this.state.scrollbarWidth,v=l?d:d-s,w=typeof u=="function"?u({index:-1}):u,C=typeof _=="function"?_({index:-1}):_;return this._cachedColumnStyles=[],p.reactExports.Children.toArray(r).forEach(function(b,R){var T=e._getFlexStyleForColumn(b,b.props.style||ue.defaultProps.style);e._cachedColumnStyles[R]=B({overflow:"hidden"},T)}),p.reactExports.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":p.reactExports.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:F.he("ReactVirtualized__Table",n),id:h,role:"grid",style:S},!l&&c({className:F.he("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:B({height:s,overflow:"hidden",paddingRight:x,width:y},C)}),p.reactExports.createElement(U,p.du({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:F.he("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:v,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:x,scrollToRow:g,style:B(B({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,r=e.columnIndex,n=e.isScrolling,l=e.parent,i=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,d=c.cellDataGetter,h=c.cellRenderer,f=c.className,u=c.columnData,_=c.dataKey,g=c.id,S=h({cellData:d({columnData:u,dataKey:_,rowData:i}),columnData:u,columnIndex:r,dataKey:_,isScrolling:n,parent:l,rowData:i,rowIndex:a}),y=this._cachedColumnStyles[r],x=typeof S=="string"?S:null;return p.reactExports.createElement("div",{"aria-colindex":r+1,"aria-describedby":g,className:F.he("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+r,onClick:function(v){s&&s({columnData:u,dataKey:_,event:v})},role:"gridcell",style:y,title:x},S)}},{key:"_createHeader",value:function(e){var t,r,n,l,i,a=e.column,s=e.index,c=this.props,d=c.headerClassName,h=c.headerStyle,f=c.onHeaderClick,u=c.sort,_=c.sortBy,g=c.sortDirection,S=a.props,y=S.columnData,x=S.dataKey,v=S.defaultSortDirection,w=S.disableSort,C=S.headerRenderer,b=S.id,R=S.label,T=!w&&u,I=F.he("ReactVirtualized__Table__headerColumn",d,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),O=this._getFlexStyleForColumn(a,B(B({},h),a.props.headerStyle)),P=C({columnData:y,dataKey:x,disableSort:w,label:R,sortBy:_,sortDirection:g});if(T||f){var z=_!==x?v:g===xe?ie:xe,E=function(L){T&&u({defaultSortDirection:v,event:L,sortBy:x,sortDirection:z}),f&&f({columnData:y,dataKey:x,event:L})};i=a.props["aria-label"]||R||x,l="none",n=0,t=E,r=function(L){L.key!=="Enter"&&L.key!==" "||E(L)}}return _===x&&(l=g===ie?"ascending":"descending"),p.reactExports.createElement("div",{"aria-label":i,"aria-sort":l,className:I,id:b,key:"Header-Col"+s,onClick:t,onKeyDown:r,role:"columnheader",style:O,tabIndex:n},P)}},{key:"_createRow",value:function(e){var t=this,r=e.rowIndex,n=e.isScrolling,l=e.key,i=e.parent,a=e.style,s=this.props,c=s.children,d=s.onRowClick,h=s.onRowDoubleClick,f=s.onRowRightClick,u=s.onRowMouseOver,_=s.onRowMouseOut,g=s.rowClassName,S=s.rowGetter,y=s.rowRenderer,x=s.rowStyle,v=this.state.scrollbarWidth,w=typeof g=="function"?g({index:r}):g,C=typeof x=="function"?x({index:r}):x,b=S({index:r}),R=p.reactExports.Children.toArray(c).map(function(O,P){return t._createColumn({column:O,columnIndex:P,isScrolling:n,parent:i,rowData:b,rowIndex:r,scrollbarWidth:v})}),T=F.he("ReactVirtualized__Table__row",w),I=B(B({},a),{},{height:this._getRowHeight(r),overflow:"hidden",paddingRight:v},C);return y({className:T,columns:R,index:r,isScrolling:n,key:l,onRowClick:d,onRowDoubleClick:h,onRowRightClick:f,onRowMouseOver:u,onRowMouseOut:_,rowData:b,style:I})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=B(B({},t),{},{flex:r,msFlex:r,WebkitFlex:r});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,r=t.children;return(t.disableHeader?[]:p.reactExports.Children.toArray(r)).map(function(n,l){return e._createHeader({column:n,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,r=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,l=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,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})}}])}();m(we,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Ct,overscanRowCount:10,rowRenderer:function(o){var e=o.className,t=o.columns,r=o.index,n=o.key,l=o.onRowClick,i=o.onRowDoubleClick,a=o.onRowMouseOut,s=o.onRowMouseOver,c=o.onRowRightClick,d=o.rowData,h=o.style,f={"aria-rowindex":r+1};return(l||i||a||s||c)&&(f["aria-label"]="row",f.tabIndex=0,l&&(f.onClick=function(u){return l({event:u,index:r,rowData:d})}),i&&(f.onDoubleClick=function(u){return i({event:u,index:r,rowData:d})}),a&&(f.onMouseOut=function(u){return a({event:u,index:r,rowData:d})}),s&&(f.onMouseOver=function(u){return s({event:u,index:r,rowData:d})}),c&&(f.onContextMenu=function(u){return c({event:u,index:r,rowData:d})})),p.reactExports.createElement("div",p.du({},f,{className:e,key:n,role:"row",style:h}),t)},headerRowRenderer:function(o){var e=o.className,t=o.columns,r=o.style;return p.reactExports.createElement("div",{className:e,role:"row",style:r},t)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),we.propTypes={};var q=[],re=null,$=null;function Gt(){$&&($=null,document.body&&re!=null&&(document.body.style.pointerEvents=re),re=null)}function fo(){Gt(),q.forEach(function(o){return o.__resetIsScrolling()})}function At(o){o.currentTarget===window&&re==null&&document.body&&(re=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){$&&J($);var e=0;q.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),$=be(fo,e)}(),q.forEach(function(e){e.props.scrollElement===o.currentTarget&&e.__handleWindowScrollEvent()})}function rt(o,e){q.some(function(t){return t.props.scrollElement===e})||e.addEventListener("scroll",At),q.push(o)}function nt(o,e){(q=q.filter(function(t){return t!==o})).length||(e.removeEventListener("scroll",At),$&&(J($),Gt()))}var Te=function(o){return o===window},te=function(o){return o.getBoundingClientRect()};function it(o,e){if(o){if(Te(o)){var t=window,r=t.innerHeight,n=t.innerWidth;return{height:typeof r=="number"?r:0,width:typeof n=="number"?n:0}}return te(o)}return{height:e.serverHeight,width:e.serverWidth}}function lt(o){return Te(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 st(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function at(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?st(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):st(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ht(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ht=function(){return!!o})()}var jt=function(){return typeof window<"u"?window:void 0},po=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,Ht()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"_window",jt()),m(e,"_isMounted",!1),m(e,"_positionFromTop",0),m(e,"_positionFromLeft",0),m(e,"_detectElementResize",void 0),m(e,"_child",void 0),m(e,"_windowScrollerRef",p.reactExports.createRef()),m(e,"state",at(at({},it(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),m(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=s,e.updatePosition()}),m(e,"_onChildScroll",function(s){var c=s.scrollTop;if(e.state.scrollTop!==c){var d=e.props.scrollElement;d&&(typeof d.scrollTo=="function"?d.scrollTo(0,c+e._positionFromTop):d.scrollTop=c+e._positionFromTop)}}),m(e,"_registerResizeListener",function(s){s===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(s,e._onResize)}),m(e,"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",e._onResize,!1):s&&e._detectElementResize.removeResizeListener(s,e._onResize)}),m(e,"_onResize",function(){e.updatePosition()}),m(e,"__handleWindowScrollEvent",function(){if(e._isMounted){var s=e.props.onScroll,c=e.props.scrollElement;if(c){var d=lt(c),h=Math.max(0,d.left-e._positionFromLeft),f=Math.max(0,d.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:h,scrollTop:f}),s({scrollLeft:h,scrollTop:f})}}}),m(e,"__resetIsScrolling",function(){e.setState({isScrolling:!1})}),e}return j(o,p.reactExports.PureComponent),A(o,[{key:"updatePosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,t=this.props.onResize,r=this.state,n=r.height,l=r.width,i=this._child||this._windowScrollerRef.current;if(i instanceof Element&&e){var a=function(c,d){if(Te(d)&&document.documentElement){var h=document.documentElement,f=te(c),u=te(h);return{top:f.top-u.top,left:f.left-u.left}}var _=lt(d),g=te(c),S=te(d);return{top:g.top+_.top-S.top,left:g.left+_.left-S.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=it(e,this.props);n===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=mt(),this.updatePosition(e),e&&(rt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var r=this.props.scrollElement,n=e.scrollElement;n!==r&&n!=null&&r!=null&&(this.updatePosition(r),nt(this,n),rt(this,r),this._unregisterResizeListener(n),this._registerResizeListener(r))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(nt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.isScrolling,n=t.scrollTop,l=t.scrollLeft,i=t.height,a=t.width;return p.reactExports.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:r,scrollLeft:l,scrollTop:n,width:a}))}}])}();m(po,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:jt(),serverHeight:0,serverWidth:0});const oe="ReactVirtualizedDemo-flexContainer",Wt="ReactVirtualizedDemo-tableRow",Dt="ReactVirtualizedDemo-tableRowHover",Ce="ReactVirtualizedDemo-tableCell",Re="ReactVirtualizedDemo-noClick";class mo extends p.yt.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return p.yo(Wt,oe,{[Dt]:e!==-1&&t!=null})},this.cellRenderer=({cellData:e,dataKey:t,columnIndex:r,width:n})=>{const{columns:l,rowHeight:i,onRowClick:a}=this.props;let s=e,c={height:i,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${n}px`,maxWidth:`${n}px`};return t==="shortcut"?s=p.X9(e):t==="description"&&(c={...c,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),p.jsxRuntimeExports.jsx(Pe,{component:"div",className:p.yo(Ce,oe,{[Re]:a==null}),variant:"body",style:c,align:r!=null&&l[r].numeric?"right":"left",children:s})},this.headerRenderer=({label:e,columnIndex:t,width:r})=>{const{headerHeight:n,columns:l}=this.props,i=l[t];return p.jsxRuntimeExports.jsx(Pe,{component:"div",className:p.yo(Ce,oe,Re),variant:"head",sx:{width:r,height:n,backgroundColor:a=>a.palette.grey[300]},align:i.numeric?"right":"left",children:p.jsxRuntimeExports.jsx("span",{children:i.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:r,...n}=this.props;return p.jsxRuntimeExports.jsx(vt,{children:({height:l,width:i})=>p.jsxRuntimeExports.jsx(we,{height:l,width:i,rowHeight:t,gridStyle:{direction:"inherit"},headerHeight:r,...n,rowClassName:this.getRowClassName,children:e.map(({dataKey:a,width:s,widthLess:c,...d},h)=>{const f=c?i-c:s;return p.jsxRuntimeExports.jsx(ue,{style:{flex:`1 1 ${f}px`},headerRenderer:u=>this.headerRenderer({...u,width:f,columnIndex:h}),className:oe,cellDataGetter:({rowData:u,columnData:_,dataKey:g})=>u[g],cellRenderer:u=>this.cellRenderer({...u,width:f,columnIndex:h}),dataKey:a,width:f,...d},a)})})})}}const go=Xt(mo)(({theme:o})=>({"& .ReactVirtualized__Table__headerRow":{...o.direction==="rtl"&&{paddingLeft:"0 !important"},...o.direction!=="rtl"&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${oe}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${Wt}`]:{cursor:"pointer"},[`& .${Dt}`]:{"&:hover:not([disabled])":{backgroundColor:o.palette.grey[200]}},[`& .${Ce}`]:{flex:1},[`& .${Re}`]:{cursor:"initial"}}));function vo(o){const{commands:e,...t}=o,[r,n]=p.reactExports.useState(!1),[l,i]=p.reactExports.useState(""),a=p.reactExports.useMemo(()=>{let u=e.getAllCommands();r||(u=u.filter(S=>S.command.shortcut())),u.sort((S,y)=>S.command.label().localeCompare(y.command.label()));const _=[],g=S=>S.replace(/\n\n/g,`
|
|
19
|
+
`);for(let S=0;S<u.length;S++){const y=u[S].command,x=y.shortcut();if(Array.isArray(x)){const v=x;for(let w=0;w<v.length;w++)_.push({label:y.label(),description:g(y.description()),shortcut:v[w]})}else _.push({label:y.label(),description:g(y.description()),shortcut:y.shortcut()})}return _},[r,e]),[s,c]=p.reactExports.useState(null);p.reactExports.useEffect(()=>{Promise.resolve().then(()=>require("./DtpB0PMEtamaB-Hv.cjs")).then(u=>{c(new u.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[d,h]=p.reactExports.useState(a),f=l.length>0&&d.length===0;return p.reactExports.useEffect(()=>{s&&p.Yt.debounce(()=>{if(l.trim().length===0)return void h(a);const u=s.search(l.trim()),_=new Array(u.length);for(let g=0;g<u.length;g++)_[g]=u[g].item;h(_)},90)()},[s,l]),p.jsxRuntimeExports.jsxs(p.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[p.jsxRuntimeExports.jsxs(p.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:u=>u.spacing(2),color:u=>u.palette.text.secondary},children:[p.jsxRuntimeExports.jsx(p.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${p.alpha("#fff",p.$n(5))}, ${p.alpha("#fff",p.$n(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:u=>u.spacing(1),paddingBottom:u=>u.spacing(1)}},endAdornment:p.jsxRuntimeExports.jsx(p.InputAdornment,{sx:{opacity:l.length>0?1:0,display:l.length>0?"flex":"none"},position:"end",children:p.jsxRuntimeExports.jsx(p.IconButton,{"aria-label":"clear search",onClick:()=>i(""),edge:"end",children:p.jsxRuntimeExports.jsx(p._o,{})})})},sx:{flex:"1 1 40%",marginRight:u=>u.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:u=>f?`${u.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:u=>f?`${u.palette.error.main} !important`:void 0}},value:l,onChange:u=>{i(u.target.value)},onKeyDown:u=>{u.which===p.rn.Escape&&l.length>0&&(i(""),u.stopPropagation(),u.preventDefault())},onContextMenu:u=>{u.stopPropagation()}}),p.jsxRuntimeExports.jsx(p.FormControlLabel,{sx:{flex:"1 1 60%"},control:p.jsxRuntimeExports.jsx(p.Checkbox,{checked:r,onChange:()=>n(!r)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),p.jsxRuntimeExports.jsx(p.Box,{sx:{flex:"1 1 100%",borderRadius:u=>`${u.shape.borderRadius}px`,border:u=>`solid ${u.palette.divider} 1px`,paddingRight:"1px",overflow:"hidden","* .MuiTableCell-head":{background:u=>u.palette.background.paper,backgroundImage:`linear-gradient(${p.alpha("#fff",p.$n(5))}, ${p.alpha("#fff",p.$n(5))})`}},children:p.jsxRuntimeExports.jsx(go,{rowCount:d.length,rowGetter:u=>d[u.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),p.jsxRuntimeExports.jsx(p.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:u=>u.spacing(1),paddingTop:u=>u.spacing(1),paddingRight:u=>u.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:p.jsxRuntimeExports.jsx(p.Typography,{noWrap:!0,component:"div",sx:{color:u=>f?u.palette.error.main:u.palette.text.secondary},children:`${d.length===0?"No":d.length} shortcut key${d.length===1?"":"s"}${l.length>0?" found":""}`})})]})}exports.default=o=>{const{title:e="Shortcut Keys",commands:t,sx:r,...n}=o;return p.jsxRuntimeExports.jsx(p.dS,{isModal:!0,onKeyDown:l=>{l.keyCode===p.rn.F1&&l.preventDefault()},sx:{width:"780px",...r},title:e,autoFocusSel:".input",...n,children:p.jsxRuntimeExports.jsx(p.DialogContent,{dividers:!0,children:p.jsxRuntimeExports.jsx(vo,{commands:t,sx:{marginBottom:"8px"}})})})};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
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 i=require("./DQGdVVTxixgptLdj.cjs");function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(Object(r),!0).forEach(function(n){me(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(n){ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];return t.apply(r,[].concat(o,u))}}}function U(e){return{}.toString.call(e).includes("Object")}function V(e){return typeof e=="function"}var P=D(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),ve=function(e,t){return U(t)||P("changeType"),Object.keys(t).some(function(r){return n=e,o=r,!Object.prototype.hasOwnProperty.call(n,o);var n,o})&&P("changeField"),t};function be(e,t){return V(t)?t(e.current):t}function Ee(e,t){return e.current=ie(ie({},e.current),t),t}function Oe(e,t,r){return V(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var K,le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
7
|
+
You are using deprecated way of configuration.
|
|
8
|
+
|
|
9
|
+
Instead of using
|
|
10
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
11
|
+
use
|
|
12
|
+
monaco.config({ paths: { vs: '...' } })
|
|
13
|
+
|
|
14
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
15
|
+
`},ue=(K=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=K.length?K.apply(this,n):function(){for(var c=arguments.length,a=new Array(c),u=0;u<c;u++)a[u]=arguments[u];return e.apply(t,[].concat(n,a))}})(le);function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ne(ne({},e),t)}var we={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(n,o){e.then(function(c){return t?o(we):n(c)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var W,fe=function(e){if(Array.isArray(e))return e}(W=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(function(u){var s;u||P("initialIsRequired"),U(u)||P("initialType"),s=u,Object.keys(s).length||P("initialContent")})(e),function(u){V(u)||U(u)||P("handlerType"),U(u)&&Object.values(u).some(function(s){return!V(s)})&&P("handlersType")}(t);var r={current:e},n=D(Oe)(r,t),o=D(Ee)(r),c=D(ve)(e),a=D(be)(r);return[function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(s){return s};return function(s){V(s)||P("selectorType")}(u),u(r.current)},function(u){(function(){for(var s=arguments.length,g=new Array(s),O=0;O<s;O++)g[O]=arguments[O];return function(b){return g.reduceRight(function(x,M){return M(x)},b)}})(n,o,c,a)(u)}]}({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(t.push(c.value),t.length!==2);r=!0);}catch(u){n=!0,o=u}finally{try{r||a.return==null||a.return()}finally{if(n)throw o}}return t}}(W)||function(e){if(e){if(typeof e=="string")return oe(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,2):void 0}}(W)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),z=fe[0],B=fe[1];function je(e){return document.body.appendChild(e)}function xe(e){var t,r,n=z(function(c){return{config:c.config,reject:c.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function Me(){var e=z(function(r){return{config:r.config,resolve:r.resolve,reject:r.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){de(r),e.resolve(r)},function(r){e.reject(r)})}function de(e){z().monaco||B({monaco:e})}var X=new Promise(function(e,t){return B({resolve:e,reject:t})}),L={config:function(e){var t=function(o){var c;return o||ue("configIsRequired"),c=o,{}.toString.call(c).includes("Object")||ue("configType"),o.urls?(console.warn(le.deprecation),{paths:{vs:o.urls.monacoBase}}):o}(e),r=t.monaco,n=function(o,c){if(o==null)return{};var a,u,s=function(O,b){if(O==null)return{};var x,M,S={},R=Object.keys(O);for(M=0;M<R.length;M++)x=R[M],b.indexOf(x)>=0||(S[x]=O[x]);return S}(o,c);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(u=0;u<g.length;u++)a=g[u],c.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(o,a)&&(s[a]=o[a])}return s}(t,["monaco"]);B(function(o){return{config:se(o.config,n),monaco:r}})},init:function(){var e=z(function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}});if(!e.isInitialized){if(B({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),Q(X);(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(c,a){return a(c)},o)}})(je,xe)(Me)}return Q(X)},__getMonacoInstance:function(){return z(function(e){return e.monaco})}},Pe={display:"flex",position:"relative",textAlign:"initial"},Se={width:"100%"},Re={display:"none"},ke={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Te=function({children:e}){return i.yt.createElement("div",{style:ke.container},e)},pe=i.reactExports.memo(function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:c,wrapperProps:a}){return i.yt.createElement("section",{style:{...Pe,width:e,height:t},...a},!r&&i.yt.createElement(Te,null,n),i.yt.createElement("div",{ref:o,style:{...Se,...!r&&Re},className:c}))}),Z=function(e){i.reactExports.useEffect(e,[])},w=function(e,t,r=!0){let n=i.reactExports.useRef(!0);i.reactExports.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function q(){}function T(e,t,r,n){return g=n,(s=e).editor.getModel(ae(s,g))||(c=t,a=r,u=n,(o=e).editor.createModel(c,a,u?ae(o,u):void 0));var o,c,a,u,s,g}function ae(e,t){return e.Uri.parse(t)}var Ie=i.reactExports.memo(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:c,modifiedModelPath:a,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:s=!1,theme:g="light",loading:O="Loading...",options:b={},height:x="100%",width:M="100%",className:S,wrapperProps:R={},beforeMount:Y=q,onMount:$=q}){let[E,I]=i.reactExports.useState(!1),[C,m]=i.reactExports.useState(!0),y=i.reactExports.useRef(null),d=i.reactExports.useRef(null),A=i.reactExports.useRef(null),v=i.reactExports.useRef($),l=i.reactExports.useRef(Y),k=i.reactExports.useRef(!1);Z(()=>{let f=L.init();return f.then(p=>(d.current=p)&&m(!1)).catch(p=>p?.type!=="cancelation"&&console.error("Monaco initialization: error:",p)),()=>y.current?function(){let p=y.current?.getModel();u||p?.original?.dispose(),s||p?.modified?.dispose(),y.current?.dispose()}():f.cancel()}),w(()=>{if(y.current&&d.current){let f=y.current.getOriginalEditor(),p=T(d.current,e||"",n||r||"text",c||"");p!==f.getModel()&&f.setModel(p)}},[c],E),w(()=>{if(y.current&&d.current){let f=y.current.getModifiedEditor(),p=T(d.current,t||"",o||r||"text",a||"");p!==f.getModel()&&f.setModel(p)}},[a],E),w(()=>{let f=y.current.getModifiedEditor();f.getOption(d.current.editor.EditorOption.readOnly)?f.setValue(t||""):t!==f.getValue()&&(f.executeEdits("",[{range:f.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),f.pushUndoStop())},[t],E),w(()=>{y.current?.getModel()?.original.setValue(e||"")},[e],E),w(()=>{let{original:f,modified:p}=y.current.getModel();d.current.editor.setModelLanguage(f,n||r||"text"),d.current.editor.setModelLanguage(p,o||r||"text")},[r,n,o],E),w(()=>{d.current?.editor.setTheme(g)},[g],E),w(()=>{y.current?.updateOptions(b)},[b],E);let _=i.reactExports.useCallback(()=>{if(!d.current)return;l.current(d.current);let f=T(d.current,e||"",n||r||"text",c||""),p=T(d.current,t||"",o||r||"text",a||"");y.current?.setModel({original:f,modified:p})},[r,t,o,e,n,c,a]),N=i.reactExports.useCallback(()=>{!k.current&&A.current&&(y.current=d.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...b}),_(),d.current?.editor.setTheme(g),I(!0),k.current=!0)},[b,g,_]);return i.reactExports.useEffect(()=>{E&&v.current(y.current,d.current)},[E]),i.reactExports.useEffect(()=>{!C&&!E&&N()},[C,E,N]),i.yt.createElement(pe,{width:M,height:x,isEditorReady:E,loading:O,_ref:A,className:S,wrapperProps:R})}),F=new Map,ge=i.reactExports.memo(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:c,theme:a="light",line:u,loading:s="Loading...",options:g={},overrideServices:O={},saveViewState:b=!0,keepCurrentModel:x=!1,width:M="100%",height:S="100%",className:R,wrapperProps:Y={},beforeMount:$=q,onMount:E=q,onChange:I,onValidate:C=q}){let[m,y]=i.reactExports.useState(!1),[d,A]=i.reactExports.useState(!0),v=i.reactExports.useRef(null),l=i.reactExports.useRef(null),k=i.reactExports.useRef(null),_=i.reactExports.useRef(E),N=i.reactExports.useRef($),f=i.reactExports.useRef(),p=i.reactExports.useRef(n),he=function(h){let j=i.reactExports.useRef();return i.reactExports.useEffect(()=>{j.current=h},[h]),j.current}(c),ee=i.reactExports.useRef(!1),G=i.reactExports.useRef(!1);Z(()=>{let h=L.init();return h.then(j=>(v.current=j)&&A(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>l.current?(f.current?.dispose(),x?b&&F.set(c,l.current.saveViewState()):l.current.getModel()?.dispose(),void l.current.dispose()):h.cancel()}),w(()=>{let h=T(v.current,e||n||"",t||o||"",c||r||"");h!==l.current?.getModel()&&(b&&F.set(he,l.current?.saveViewState()),l.current?.setModel(h),b&&l.current?.restoreViewState(F.get(c)))},[c],m),w(()=>{l.current?.updateOptions(g)},[g],m),w(()=>{!l.current||n===void 0||(l.current.getOption(v.current.editor.EditorOption.readOnly)?l.current.setValue(n):n!==l.current.getValue()&&(G.current=!0,l.current.executeEdits("",[{range:l.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),l.current.pushUndoStop(),G.current=!1))},[n],m),w(()=>{let h=l.current?.getModel();h&&o&&v.current?.editor.setModelLanguage(h,o)},[o],m),w(()=>{u!==void 0&&l.current?.revealLine(u)},[u],m),w(()=>{v.current?.editor.setTheme(a)},[a],m);let te=i.reactExports.useCallback(()=>{if(k.current&&v.current&&!ee.current){N.current(v.current);let h=c||r,j=T(v.current,n||e||"",t||o||"",h||"");l.current=v.current?.editor.create(k.current,{model:j,automaticLayout:!0,...g},O),b&&l.current.restoreViewState(F.get(h)),v.current.editor.setTheme(a),u!==void 0&&l.current.revealLine(u),y(!0),ee.current=!0}},[e,t,r,n,o,c,g,O,b,a,u]);return i.reactExports.useEffect(()=>{m&&_.current(l.current,v.current)},[m]),i.reactExports.useEffect(()=>{!d&&!m&&te()},[d,m,te]),p.current=n,i.reactExports.useEffect(()=>{m&&I&&(f.current?.dispose(),f.current=l.current?.onDidChangeModelContent(h=>{G.current||I(l.current.getValue(),h)}))},[m,I]),i.reactExports.useEffect(()=>{if(m){let h=v.current.editor.onDidChangeMarkers(j=>{let H=l.current.getModel()?.uri;if(H&&j.find(J=>J.path===H.path)){let J=v.current.editor.getModelMarkers({resource:H});C?.(J)}});return()=>{h?.dispose()}}return()=>{}},[m,C]),i.yt.createElement(pe,{width:M,height:S,isEditorReady:m,loading:s,_ref:k,className:R,wrapperProps:Y})}),Ce=ge;exports.DiffEditor=Ie,exports.Editor=ge,exports.default=Ce,exports.loader=L,exports.useMonaco=function(){let[e,t]=i.reactExports.useState(L.__getMonacoInstance());return Z(()=>{let r;return e||(r=L.init(),r.then(n=>{t(n)})),()=>r?.cancel()}),e};
|