@sheetxl/studio-mui 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -11
- package/README.md +24 -24
- package/browser/cjs/1C6nE8JXbR1K_yhw.cjs +6 -0
- package/browser/cjs/6denMJxSAR1JnvVP.cjs +15 -0
- package/browser/cjs/{DvBmxW9WFXe5nTOj.cjs → B-N31rKSrvqkcxZP.cjs} +1 -1
- package/browser/cjs/{Dj7OrKe2zahSy4rW.cjs → BBJ57oaa6vu0zEjI.cjs} +2 -7
- package/browser/cjs/{DbtwYi7JAHoFLILb.cjs → BLHCySywMnqptSI9.cjs} +4 -19
- package/browser/cjs/BTSVJlDxWgqbdgwJ.cjs +15 -0
- package/browser/cjs/{DYpWMegNKhcIz5Xx.cjs → BZfQo-wrdJc4xy1p.cjs} +2 -2
- package/browser/cjs/{BQLQEJgX-sM2Sdn6.cjs → BbEnQfoP4EOJK3YQ.cjs} +2 -2
- package/browser/cjs/{DHmGfW6PcfPhM8oL.cjs → BjaD6jFpWrhKL2dz.cjs} +1 -1
- package/browser/cjs/BnaQy4xZm6MUD5Sg.cjs +13 -0
- package/browser/cjs/{DeDq_kDsb_3oXYP3.cjs → BszSSdQItUM3BnN1.cjs} +1 -1
- package/browser/cjs/{C_Wcg7JI6v6vkBD-.cjs → BtYvPg1MnEyGWx8E.cjs} +1 -1
- package/browser/cjs/{30P2pzSg1uZ4m4Zw.cjs → ByKQeaRgOfTOn4P6.cjs} +1 -1
- package/browser/cjs/{tXdOaeSBJX_Dwtfs.cjs → C-4fmxJxBM8ThtN5.cjs} +2 -2
- package/browser/cjs/{u8HVgr27hT-2GVfY.cjs → C0vPGOmkrEmgMUC8.cjs} +1 -1
- package/browser/cjs/C19mJZkF3zJRRDNw.cjs +11 -0
- package/browser/cjs/{fSTkOlUIbVZ0w-Q2.cjs → C2kX273f3kTe7viA.cjs} +1 -1
- package/browser/cjs/{DcE7grNkk9CxPlz7.cjs → C6MOXXmZPlw53ARk.cjs} +1 -1
- package/browser/cjs/{CIZNaSq0_vaZNZu9.cjs → CEjq7KQ0zHIi69or.cjs} +2 -2
- package/browser/cjs/CGxAeOIqbsFk97UV.cjs +6 -0
- package/browser/cjs/{CADYkszzYeb1okev.cjs → CJFKRBbjz7X-rEau.cjs} +1 -12
- package/browser/cjs/{iloxo818N9ISo1kb.cjs → CLeyzaTKMMR0Hcac.cjs} +1 -1
- package/browser/cjs/CM1UZZ4gfAch7cju.cjs +7 -0
- package/browser/cjs/{D57lYhefqT866UE1.cjs → CMTXA4puzeAnzQwq.cjs} +1 -1
- package/browser/cjs/{D0u9_xtziw7PDcl8.cjs → CSiwPeW0XIEaw5qn.cjs} +1 -1
- package/browser/cjs/{C8QBQtkkjvMqMVxZ.cjs → CX6yLHEdmP8SVEfH.cjs} +2 -2
- package/browser/cjs/{BBBGyVg88HFyp_Ew.cjs → CaH2ZbfCFFqmTqKi.cjs} +1 -1
- package/browser/cjs/{DoP_dQD568y-PdQR.cjs → Cbffh394PX-rgpbL.cjs} +2 -2
- package/browser/cjs/Ce6nJl_bhnr51GJ3.cjs +238 -0
- package/browser/cjs/{CE5a4FdaHLhTxjMI.cjs → CgaWzlL_p5dgqA4f.cjs} +3 -3
- package/browser/cjs/{WvFOw7IRc6nN3Ktw.cjs → ChVT2EzsTJjDsozn.cjs} +1 -1
- package/browser/cjs/{BfIfeQXC56VMrPqG.cjs → Cjs836g7b_ipAS4X.cjs} +1 -1
- package/browser/cjs/CkxuzW8FWE8vKkSL.cjs +6 -0
- package/browser/cjs/{CFRl9gT7qj3ENMiA.cjs → Clh_-4NLLHCW3c-r.cjs} +1 -1
- package/browser/cjs/{Co4jRh5Lu0sSmXGC.cjs → CsvjAXVeoKH34aZc.cjs} +2 -2
- package/browser/cjs/{BJPmztbd5VBK5mm9.cjs → CsxexX1uKSMjAryZ.cjs} +1 -1
- package/browser/cjs/{Dkjsd1qc-X40cksg.cjs → CwgzXfkSX0s-h_0a.cjs} +1 -1
- package/browser/cjs/CxIFTPLgMN5VgKh1.cjs +12 -0
- package/browser/cjs/D0ByNhICkrbUC74Z.cjs +6 -0
- package/browser/cjs/{DqYbR5LZ21mHAb4i.cjs → DAnQwP6m2P_AUhZh.cjs} +1 -1
- package/browser/cjs/{CwsoT9PB20BPWI94.cjs → DFIMAvLgAQfQm3Bx.cjs} +1 -1
- package/browser/cjs/DI-wbtkuZm7yx_ek.cjs +6 -0
- package/browser/cjs/{yNZPaSNiBbCzS-ZR.cjs → DLcyf5qNRNueXSur.cjs} +3 -8
- package/browser/cjs/{CHkQq93Benc1vCpr.cjs → DLeOkdGvdWl5tqCl.cjs} +2 -2
- package/browser/cjs/{DxscJXvrkziYQcFs.cjs → DUUZT0ElQBBkt4qe.cjs} +1 -1
- package/browser/cjs/{_GQMxgpoD4XQiStU.cjs → DfrXQdrMzJWgyX4S.cjs} +1 -1
- package/browser/cjs/{DyBAl2cYUIbkoWsa.cjs → DkOOlgNR-NXixaQX.cjs} +1 -1
- package/browser/cjs/{vavqGfGZgq5i7n4B.cjs → DmZIqrySryidgnRl.cjs} +2 -2
- package/browser/cjs/{BZDyAbB3lej5Jex6.cjs → DscIvkrfig_mffwY.cjs} +1 -1
- package/browser/cjs/{B4ne8Qu3ISmBz2I_.cjs → Dz8coNXp80TEXSyH.cjs} +1 -1
- package/browser/cjs/{4WTvahGneDLqs8nK.cjs → IaiQe7d-LGA2611T.cjs} +9 -24
- package/browser/cjs/{UZJaTSqgj_1vwBPD.cjs → KNduwqq-J9uyLgsC.cjs} +1 -1
- package/browser/cjs/{DrfhSPGoBxXa2zrq.cjs → LTnky81SCDfvEiub.cjs} +1 -1
- package/browser/cjs/{DbOphBQCPCGOjcMB.cjs → _EleKbbhQWfp8mqy.cjs} +20 -25
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/{s023hbvdZPtE0ZgU.cjs → sNpLX232YHzUxZOr.cjs} +4 -4
- package/browser/cjs/{DJPvDosur15jRed6.cjs → sxA11AN6vr9fiHaa.cjs} +2 -46
- package/browser/cjs/{CEyf06HL4OpZLe_9.cjs → vEKDv57iikwYjhOc.cjs} +2 -2
- package/browser/esm/{BAe4Amd0bcUlcPDo.mjs → 26ozZ2-vj7N8rpiB.mjs} +1 -7
- package/browser/esm/{CJ0O6bKXr7qeO25m.mjs → 9vaTrJzQjSFA2egn.mjs} +2 -8
- package/browser/esm/{0C6QuzGc8rTp95Os.mjs → AkfGEQyMAKNp1Ktw.mjs} +2 -2
- package/browser/esm/{BoyMSFQmu3xbxOlA.mjs → B-DwCBC-vYtRKiGS.mjs} +4 -10
- package/browser/esm/{rrGPhfv9KHmWuZ1O.mjs → B1BxGO2lBpSxSvw1.mjs} +1 -7
- package/browser/esm/{DgnVRt8VYgaSZGHj.mjs → B7mPpY5DOxEGMbPk.mjs} +12 -10
- package/browser/esm/{9xTBsz6sONUyOHUW.mjs → B8le6PM3dfy1qSHY.mjs} +1 -7
- package/{node/esm/BfEdsxDq6MOecVqq.mjs → browser/esm/BCIwvhxFiDXGEwES.mjs} +1 -7
- package/browser/esm/{B4KRBO609RwNjzvi.mjs → BFtFjxXyhdNH6yAV.mjs} +1 -7
- package/browser/esm/{CgUrlFh28m1acaYQ.mjs → BMsToxhQy4cSxlz-.mjs} +1 -7
- package/browser/esm/{B3tAu8z_m4SfpweK.mjs → BNbDRm5P-Ha3rBv4.mjs} +1 -1
- package/browser/esm/{LwaL-xJmA9EnZcqb.mjs → BRPqw1D9DgPK_A6V.mjs} +2 -8
- package/browser/esm/{CtY7bZRPP4_KRNmt.mjs → BSv1o1DpwfEAWYSy.mjs} +2 -2
- package/browser/esm/{C6k-LrteLTacKvUJ.mjs → BVDNIiq2e_loYVfc.mjs} +6 -6
- package/{node/esm/s1BEJnCqBOb8JJDU.mjs → browser/esm/Be1UWt41K_Sp7nbQ.mjs} +1 -7
- package/browser/esm/{DsWvUVuInbcvxqIu.mjs → Bqmme9ilyvrHA-e_.mjs} +8 -25
- package/browser/esm/{5NrbFIuL4ezvklhf.mjs → Bt8Hem_KC6UibnGm.mjs} +2 -2
- package/browser/esm/{Cl0T7a1Q_gErBp0a.mjs → BvPUue2e8_ByeP7c.mjs} +1 -7
- package/browser/esm/{wy5pKj7t63p_up1j.mjs → ByYn00uYUmHj9zvS.mjs} +134 -134
- package/browser/esm/{BFcMJeN-Jx_QyCvg.mjs → C3dyK-h3mgD7XzKl.mjs} +2 -2
- package/browser/esm/{BPvaz6hF_IcJuJOV.mjs → C9uQaKOaImv5o9c3.mjs} +1 -7
- package/browser/esm/{Bl6YU6FumgUvr0UG.mjs → CBFDGZ_aqeLV3IIt.mjs} +1 -7
- package/{node/esm/BbEfqkC8wcfMDYW7.mjs → browser/esm/CNdA2-u6_d2tqz5J.mjs} +1 -7
- package/browser/esm/{BBSvNtWZn99G2Sel.mjs → CRByH9Wf2wJ94di-.mjs} +1 -14
- package/browser/esm/{4JoQwaWGy7X9v7Fv.mjs → CV-D1e318ShLCDie.mjs} +1 -7
- package/browser/esm/{Cx2I29WhfKMYwydX.mjs → CXKMDzYsDLhyK3SV.mjs} +1 -7
- package/browser/esm/{BFDuLEYykYS1BDn_.mjs → CaFxIFV4dLSI4zDW.mjs} +4 -22
- package/browser/esm/{wefMW1XHosAljDkr.mjs → CdUwERsyanWuNPx8.mjs} +2 -2
- package/browser/esm/{DAO7AruN1dqHKCzx.mjs → CpD505ep5Z3oX287.mjs} +37 -57
- package/browser/esm/{DxDjGuX7dIrp2S15.mjs → Cz9BPykuRu_5ay57.mjs} +2 -14
- package/browser/esm/{cAw1gvsUyweC9j3E.mjs → D2yV2gASA--bjve5.mjs} +1 -7
- package/browser/esm/{B9OOPVMmJt7VFL6P.mjs → D645MdIazDB-hc3d.mjs} +1 -13
- package/browser/esm/{CnInDMsKLsntQ4ZW.mjs → D6mAWXETxAqf416J.mjs} +1 -7
- package/browser/esm/DPw7ErLvgq_9jYHE.mjs +24 -0
- package/browser/esm/{C55fwXLJyCRvXnox.mjs → DRVlO95U75R3eY27.mjs} +1 -7
- package/browser/esm/{BNXkhPhojFj2qVzy.mjs → DWoRF-U96vWLWF5Q.mjs} +96 -102
- package/browser/esm/{B3zRuS9CUBbywRyw.mjs → DX8AE4p9fLlmEdTJ.mjs} +1 -7
- package/browser/esm/{CPpDKazrNC3936LC.mjs → DYvwKUBbWi2NWsyf.mjs} +1 -7
- package/browser/esm/{DwSOLCKwPflQ8oiF.mjs → D_LHNgrCc-7V6FjT.mjs} +4 -4
- package/browser/esm/{5ZeTyyMjwTBT3EsV.mjs → DoCwq6ipapKirQSJ.mjs} +1 -7
- package/browser/esm/{DQA0GopfVCQr8XAy.mjs → Dq2nqH2znDzDq0no.mjs} +1 -7
- package/browser/esm/{H8PuG54lnnKpLJ9K.mjs → DudPyyE63O5X5Tij.mjs} +2 -2
- package/browser/esm/{Cluz9cocEiEkoBqC.mjs → Dvi6qc2t9c_bRvzo.mjs} +28 -28
- package/browser/esm/{CpSUrjPU9wYc3Jhg.mjs → Dxl5GgDFgUsBkg-b.mjs} +1 -7
- package/browser/esm/{DsZx_Zkhn1I5H_1J.mjs → FhyoG4Gyhb7gVRPB.mjs} +2 -2
- package/browser/esm/{CCk3fUZpSsFCIy8K.mjs → Qq233O5gbpRAP6un.mjs} +2 -14
- package/browser/esm/{BCMVtS3Laq-Xh8Di.mjs → TFr0V-rb-KYQeRVW.mjs} +1 -9
- package/browser/esm/UC5M3Z5HmOzupzqQ.mjs +21 -0
- package/browser/esm/{C7nYvIDkdvZ1Dj4m.mjs → VchKQpT2_B7Ca113.mjs} +3 -21
- package/browser/esm/{gNrO89j_4tRIGEtM.mjs → ZwbkuvbehTjluIzn.mjs} +3 -9
- package/browser/esm/{QzCoqfRysNMoTzb1.mjs → _5B66awyRsaDd_Hv.mjs} +1 -7
- package/browser/esm/{DB1-J0MOAeH11ZyJ.mjs → _zJv_HkelROSMajR.mjs} +1 -7
- package/browser/esm/{DgAkhv_thUOpWlnL.mjs → cOX4zBcY0-H_8kAj.mjs} +9167 -9247
- package/{node/esm/CpoyQrYrPV0-9RPc.mjs → browser/esm/iIqrOkF_gUf_5m0C.mjs} +1 -7
- package/browser/esm/index.mjs +10 -10
- package/browser/esm/{BBN8odKP7v-WcPD2.mjs → kjRF87FSQwIzB1KD.mjs} +1 -7
- package/{node/esm/BRaRGYJwIxUVeGqc.mjs → browser/esm/ob7IFBy7DLC-iS-g.mjs} +1 -7
- package/browser/esm/{Dwss46fwkNYFDw8t.mjs → s-R04_lOf8TuzWvo.mjs} +7 -71
- package/licenses/dependencies.txt +77 -77
- package/node/assets/style.css +1 -1
- package/node/esm/8OtdJtJIKyA4POih.mjs +14 -0
- package/node/esm/{rrGPhfv9KHmWuZ1O.mjs → B1BxGO2lBpSxSvw1.mjs} +1 -7
- package/node/esm/{CMqERd7Psx-3Wfm9.mjs → B2Y6U5_PvKIFVtAh.mjs} +6 -26
- package/node/esm/{CAMB3sLeYaDmVbRg.mjs → B5jFauUSFpo_iDkW.mjs} +1 -1
- package/node/esm/{CQza81LSbdfj4dh8.mjs → B7bDAwgd6OSbVJh_.mjs} +1 -7
- package/node/esm/{9xTBsz6sONUyOHUW.mjs → B8le6PM3dfy1qSHY.mjs} +1 -7
- package/{browser/esm/BfEdsxDq6MOecVqq.mjs → node/esm/BCIwvhxFiDXGEwES.mjs} +1 -7
- package/node/esm/{B4KRBO609RwNjzvi.mjs → BFtFjxXyhdNH6yAV.mjs} +1 -7
- package/node/esm/{CF8Iw2U0KmkBM7e_.mjs → BK9EmmFbROJ0rZqB.mjs} +12 -10
- package/node/esm/{CgUrlFh28m1acaYQ.mjs → BMsToxhQy4cSxlz-.mjs} +1 -7
- package/node/esm/{z4aHdT3kX8QkA5WB.mjs → BX8KUYAnQx1vI-cS.mjs} +1 -7
- package/{browser/esm/s1BEJnCqBOb8JJDU.mjs → node/esm/Be1UWt41K_Sp7nbQ.mjs} +1 -7
- package/node/esm/{Bl4s1iMUrCbnLTK6.mjs → BeyDW_Yk6iu1JB4v.mjs} +4 -22
- package/node/esm/{hpjhhcXZ4ox1ttj9.mjs → BjIAi3GfBAjiRIja.mjs} +3 -9
- package/node/esm/{CGpy_JYlJvSqi2bv.mjs → Bk7aoxfQtGp8id7D.mjs} +1 -3
- package/node/esm/{D-5hudKxKNcxHDv4.mjs → BpdsRwlUAUyUdrlR.mjs} +11 -29
- package/node/esm/{C-OobshDolEf_YMF.mjs → BsSGinAqat7R8x_O.mjs} +1 -1
- package/node/esm/{C6u3GsSp4e2cvW9r.mjs → Bth10k64kFkk36Hy.mjs} +1 -1
- package/node/esm/{DdzeWAW2GHn9AEEc.mjs → BwnMNGZmp-FGW86J.mjs} +1 -7
- package/node/esm/{BPvaz6hF_IcJuJOV.mjs → C9uQaKOaImv5o9c3.mjs} +1 -7
- package/node/esm/{Bl6YU6FumgUvr0UG.mjs → CBFDGZ_aqeLV3IIt.mjs} +1 -7
- package/node/esm/{CgnJOwb7XTGd8SHn.mjs → CI9F84m6LzoOkVfK.mjs} +1 -1
- package/node/esm/{Dzi6IQ6mIY4GUhhn.mjs → CJiY4Wz9eiX2B9nv.mjs} +1 -7
- package/node/esm/{C0BuhFhvary0MrNX.mjs → CM9lgZdHfhhL2cv-.mjs} +1 -7
- package/{browser/esm/BbEfqkC8wcfMDYW7.mjs → node/esm/CNdA2-u6_d2tqz5J.mjs} +1 -7
- package/node/esm/{qiZgtOByq0ONnESS.mjs → CS138m7XyLHvzDPV.mjs} +1 -8
- package/node/esm/{4JoQwaWGy7X9v7Fv.mjs → CV-D1e318ShLCDie.mjs} +1 -7
- package/node/esm/{9XZv6YbZGzXJWLjj.mjs → CV4Y5e_kU8o_sXoX.mjs} +1 -7
- package/node/esm/{B_G7O_zb-jF1PwUW.mjs → CWRpbP9nAT2yR2r6.mjs} +8 -8
- package/node/esm/{Cx2I29WhfKMYwydX.mjs → CXKMDzYsDLhyK3SV.mjs} +1 -7
- package/node/esm/{hNQ44J3MKLhqWqDQ.mjs → CYcFo_OeyApoGTg3.mjs} +2 -2
- package/node/esm/{TF4SxbxBSD3Gf9rn.mjs → CYsd2qqC_WxLTKE1.mjs} +1 -7
- package/node/esm/{BCHHa-dErcBIC_0y.mjs → CradKrxfiGQucTZ3.mjs} +7 -7
- package/node/esm/{BBdLL4LjdF1xMJM1.mjs → CwIlFXgoa_xv0Doi.mjs} +1 -7
- package/node/esm/D5uKz7a9v8FUVx0k.mjs +80 -0
- package/node/esm/{B6zpbEevMTArgNIt.mjs → D61UbOtLixUCDQce.mjs} +38 -38
- package/node/esm/{C8STZ7Zt6L0KzqIE.mjs → D95MPCm8ObgZN5_j.mjs} +2 -2
- package/node/esm/{C55fwXLJyCRvXnox.mjs → DRVlO95U75R3eY27.mjs} +1 -7
- package/node/esm/{C5U11rfhUvotCiwk.mjs → DYOAGczbRXmskyrr.mjs} +7 -71
- package/node/esm/{CPpDKazrNC3936LC.mjs → DYvwKUBbWi2NWsyf.mjs} +1 -7
- package/node/esm/DdDxTsQsLWNqX7ee.mjs +16 -0
- package/node/esm/{BG0B7kW0XUOAZkPr.mjs → DfXVaugDnucoDGYk.mjs} +2 -2
- package/node/esm/{wqbe04B4sEFndP3V.mjs → DjLSO4d4T2JddYG_.mjs} +4 -10
- package/node/esm/{CipoP939zaH4fcOy.mjs → Do5a0pvRN3hayzdD.mjs} +1 -7
- package/node/esm/{ByM8BXRmy_WcnL53.mjs → DuboCcThig3p0wzs.mjs} +5 -5
- package/node/esm/{oOVkOZ3Xk1oEBGVF.mjs → N2xFXdAPXckWbqvN.mjs} +13 -13
- package/node/esm/{v_xWzWUNiVGQNBoT.mjs → ZVae6CkvsUOXzMKw.mjs} +1 -1
- package/node/esm/{QzCoqfRysNMoTzb1.mjs → _5B66awyRsaDd_Hv.mjs} +1 -7
- package/node/esm/{Bav2rRIN-77VagCp.mjs → _Wieg3dqzHo6_Crg.mjs} +2 -14
- package/{browser/esm/CpoyQrYrPV0-9RPc.mjs → node/esm/iIqrOkF_gUf_5m0C.mjs} +1 -7
- package/node/esm/index.mjs +20168 -20203
- package/node/esm/{Dfiyl6Mp0BhjlSy1.mjs → kTEpzGO5dC1M9dbV.mjs} +2 -2
- package/{browser/esm/BRaRGYJwIxUVeGqc.mjs → node/esm/ob7IFBy7DLC-iS-g.mjs} +1 -7
- package/node/esm/{DCuXbif8mI95HsNT.mjs → pTSFPHHLPzmAcEKW.mjs} +1 -7
- package/node/esm/{Bt9tHh7hpw6l03MX.mjs → rF9x01iQv2EpxorW.mjs} +2 -8
- package/package.json +8 -8
- package/browser/cjs/BC2yD5lEOXzHeG1Y.cjs +0 -17
- package/browser/cjs/BmsLHCvcZOJnxYBm.cjs +0 -16
- package/browser/cjs/C_WGJtEWeSBOjCod.cjs +0 -25
- package/browser/cjs/CmHRyEKd83UyYJp5.cjs +0 -11
- package/browser/cjs/CxgPiyb5-hVRdhnd.cjs +0 -6
- package/browser/cjs/D2MFDC-oSzPf1srP.cjs +0 -314
- package/browser/cjs/DDJTjqunlP762qFN.cjs +0 -28
- package/browser/cjs/Ds4qQWfBUFy1VFRh.cjs +0 -12
- package/browser/cjs/DthoHYaMTKWkpydK.cjs +0 -11
- package/browser/cjs/WTQe6nG-0TQIsU2N.cjs +0 -16
- package/browser/cjs/cjzXoPH_hX0J64QW.cjs +0 -28
- package/browser/cjs/iZCwzTljD4cWi5hR.cjs +0 -20
- package/browser/esm/BKe9StZYGtgSF78N.mjs +0 -36
- package/browser/esm/DX5wv2h7KsKxTYo5.mjs +0 -34
- package/node/esm/BOSoESJcI0P9vUHU.mjs +0 -92
- package/node/esm/BSra_FfM7URLW976.mjs +0 -26
- package/node/esm/Dmuc2_ZKAEnSFQ4-.mjs +0 -28
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as Gs, Y as D, F as ft, _ as Ye, S as zs, D as Xt, X as jn, c as Ks, s as Vs, G as Xe, A as Hs, a as se, q as Ue, m as Fe } from "./cOX4zBcY0-H_8kAj.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
4
|
-
*
|
|
5
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
10
4
|
*
|
|
11
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -161,13 +155,13 @@ function Ln(t, e) {
|
|
|
161
155
|
function jr(t, e, n) {
|
|
162
156
|
e == "__proto__" && pn ? pn(t, e, { configurable: !0, enumerable: !0, value: n, writable: !0 }) : t[e] = n;
|
|
163
157
|
}
|
|
164
|
-
function
|
|
158
|
+
function Ke(t, e) {
|
|
165
159
|
return t === e || t != t && e != e;
|
|
166
160
|
}
|
|
167
161
|
var Aa = Object.prototype.hasOwnProperty;
|
|
168
162
|
function xn(t, e, n) {
|
|
169
163
|
var r = t[e];
|
|
170
|
-
Aa.call(t, e) &&
|
|
164
|
+
Aa.call(t, e) && Ke(r, n) && (n !== void 0 || e in t) || jr(t, e, n);
|
|
171
165
|
}
|
|
172
166
|
function Er(t, e, n, r) {
|
|
173
167
|
var i = !n;
|
|
@@ -209,7 +203,7 @@ function Mt(t) {
|
|
|
209
203
|
function Go(t, e, n) {
|
|
210
204
|
if (!Nt(n)) return !1;
|
|
211
205
|
var r = typeof e;
|
|
212
|
-
return !!(r == "number" ? Mt(n) && Ln(e, n.length) : r == "string" && e in n) &&
|
|
206
|
+
return !!(r == "number" ? Mt(n) && Ln(e, n.length) : r == "string" && e in n) && Ke(n[e], t);
|
|
213
207
|
}
|
|
214
208
|
var Ia = Object.prototype;
|
|
215
209
|
function Ve(t) {
|
|
@@ -219,26 +213,26 @@ function Ve(t) {
|
|
|
219
213
|
function ai(t) {
|
|
220
214
|
return Ot(t) && Jt(t) == "[object Arguments]";
|
|
221
215
|
}
|
|
222
|
-
var
|
|
216
|
+
var zo = Object.prototype, Na = zo.hasOwnProperty, ya = zo.propertyIsEnumerable, Cn = ai(/* @__PURE__ */ function() {
|
|
223
217
|
return arguments;
|
|
224
218
|
}()) ? ai : function(t) {
|
|
225
219
|
return Ot(t) && Na.call(t, "callee") && !ya.call(t, "callee");
|
|
226
|
-
},
|
|
220
|
+
}, Ko = typeof exports == "object" && exports && !exports.nodeType && exports, ci = Ko && typeof module == "object" && module && !module.nodeType && module, ui = ci && ci.exports === Ko ? wt.Buffer : void 0, De = (ui ? ui.isBuffer : void 0) || function() {
|
|
227
221
|
return !1;
|
|
228
|
-
},
|
|
222
|
+
}, K = {};
|
|
229
223
|
function kn(t) {
|
|
230
224
|
return function(e) {
|
|
231
225
|
return t(e);
|
|
232
226
|
};
|
|
233
227
|
}
|
|
234
|
-
|
|
228
|
+
K["[object Float32Array]"] = K["[object Float64Array]"] = K["[object Int8Array]"] = K["[object Int16Array]"] = K["[object Int32Array]"] = K["[object Uint8Array]"] = K["[object Uint8ClampedArray]"] = K["[object Uint16Array]"] = K["[object Uint32Array]"] = !0, K["[object Arguments]"] = K["[object Array]"] = K["[object ArrayBuffer]"] = K["[object Boolean]"] = K["[object DataView]"] = K["[object Date]"] = K["[object Error]"] = K["[object Function]"] = K["[object Map]"] = K["[object Number]"] = K["[object Object]"] = K["[object RegExp]"] = K["[object Set]"] = K["[object String]"] = K["[object WeakMap]"] = !1;
|
|
235
229
|
var Vo = typeof exports == "object" && exports && !exports.nodeType && exports, ke = Vo && typeof module == "object" && module && !module.nodeType && module, Gn = ke && ke.exports === Vo && Fo.process, Zt = function() {
|
|
236
230
|
try {
|
|
237
231
|
return ke && ke.require && ke.require("util").types || Gn && Gn.binding && Gn.binding("util");
|
|
238
232
|
} catch {
|
|
239
233
|
}
|
|
240
234
|
}(), li = Zt && Zt.isTypedArray, Wr = li ? kn(li) : function(t) {
|
|
241
|
-
return Ot(t) && $r(t.length) && !!
|
|
235
|
+
return Ot(t) && $r(t.length) && !!K[Jt(t)];
|
|
242
236
|
}, Ra = Object.prototype.hasOwnProperty;
|
|
243
237
|
function Ho(t, e) {
|
|
244
238
|
var n = B(t), r = !n && Cn(t), i = !n && !r && De(t), o = !n && !r && !i && Wr(t), s = n || r || i || o, a = s ? function(l, h) {
|
|
@@ -263,14 +257,14 @@ function Xo(t) {
|
|
|
263
257
|
function yt(t) {
|
|
264
258
|
return Mt(t) ? Ho(t) : Xo(t);
|
|
265
259
|
}
|
|
266
|
-
var
|
|
260
|
+
var zn, Sa = Object.prototype.hasOwnProperty, pt = (zn = function(t, e) {
|
|
267
261
|
if (Ve(e) || Mt(e)) Er(e, yt(e), t);
|
|
268
262
|
else for (var n in e) Sa.call(e, n) && xn(t, n, e[n]);
|
|
269
263
|
}, Br(function(t, e) {
|
|
270
264
|
var n = -1, r = e.length, i = r > 1 ? e[r - 1] : void 0, o = r > 2 ? e[2] : void 0;
|
|
271
|
-
for (i =
|
|
265
|
+
for (i = zn.length > 3 && typeof i == "function" ? (r--, i) : void 0, o && Go(e[0], e[1], o) && (i = r < 3 ? void 0 : i, r = 1), t = Object(t); ++n < r; ) {
|
|
272
266
|
var s = e[n];
|
|
273
|
-
s &&
|
|
267
|
+
s && zn(t, s);
|
|
274
268
|
}
|
|
275
269
|
return t;
|
|
276
270
|
})), _a = Object.prototype.hasOwnProperty;
|
|
@@ -301,7 +295,7 @@ function re(t) {
|
|
|
301
295
|
}
|
|
302
296
|
}
|
|
303
297
|
function qe(t, e) {
|
|
304
|
-
for (var n = t.length; n--; ) if (
|
|
298
|
+
for (var n = t.length; n--; ) if (Ke(t[n][0], e)) return n;
|
|
305
299
|
return -1;
|
|
306
300
|
}
|
|
307
301
|
re.prototype.clear = function() {
|
|
@@ -380,14 +374,14 @@ Gt.prototype.clear = function() {
|
|
|
380
374
|
var n = Ze(this, t), r = n.size;
|
|
381
375
|
return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
|
|
382
376
|
}, Gr.Cache = Gt;
|
|
383
|
-
var
|
|
377
|
+
var Kn, Vn, Pa = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, wa = /\\(\\)?/g, Ma = (Kn = Gr(function(t) {
|
|
384
378
|
var e = [];
|
|
385
379
|
return t.charCodeAt(0) === 46 && e.push(""), t.replace(Pa, function(n, r, i, o) {
|
|
386
380
|
e.push(i ? o.replace(wa, "$1") : r || n);
|
|
387
381
|
}), e;
|
|
388
382
|
}, function(t) {
|
|
389
383
|
return Vn.size === 500 && Vn.clear(), t;
|
|
390
|
-
}), Vn =
|
|
384
|
+
}), Vn = Kn.cache, Kn);
|
|
391
385
|
function bn(t, e) {
|
|
392
386
|
return B(t) ? t : gr(t, e) ? [t] : Ma(function(n) {
|
|
393
387
|
return n == null ? "" : jo(n);
|
|
@@ -402,7 +396,7 @@ function Tr(t, e) {
|
|
|
402
396
|
for (var n = 0, r = (e = bn(e, t)).length; t != null && n < r; ) t = t[Be(e[n++])];
|
|
403
397
|
return n && n == r ? t : void 0;
|
|
404
398
|
}
|
|
405
|
-
function
|
|
399
|
+
function zr(t, e) {
|
|
406
400
|
for (var n = -1, r = e.length, i = t.length; ++n < r; ) t[i + n] = e[n];
|
|
407
401
|
return t;
|
|
408
402
|
}
|
|
@@ -410,16 +404,16 @@ var hi = It ? It.isConcatSpreadable : void 0;
|
|
|
410
404
|
function Ua(t) {
|
|
411
405
|
return B(t) || Cn(t) || !!(hi && t && t[hi]);
|
|
412
406
|
}
|
|
413
|
-
function
|
|
407
|
+
function Kr(t, e, n, r, i) {
|
|
414
408
|
var o = -1, s = t.length;
|
|
415
409
|
for (n || (n = Ua), i || (i = []); ++o < s; ) {
|
|
416
410
|
var a = t[o];
|
|
417
|
-
n(a) ?
|
|
411
|
+
n(a) ? zr(i, a) : r || (i[i.length] = a);
|
|
418
412
|
}
|
|
419
413
|
return i;
|
|
420
414
|
}
|
|
421
415
|
function Rt(t) {
|
|
422
|
-
return t != null && t.length ?
|
|
416
|
+
return t != null && t.length ? Kr(t) : [];
|
|
423
417
|
}
|
|
424
418
|
var Zo = Yo(Object.getPrototypeOf, Object);
|
|
425
419
|
function Qo(t, e, n) {
|
|
@@ -471,17 +465,17 @@ var Da = Object.prototype.propertyIsEnumerable, mi = Object.getOwnPropertySymbol
|
|
|
471
465
|
return Da.call(t, e);
|
|
472
466
|
}));
|
|
473
467
|
} : ts, ja = Object.getOwnPropertySymbols ? function(t) {
|
|
474
|
-
for (var e = []; t; )
|
|
468
|
+
for (var e = []; t; ) zr(e, Hr(t)), t = Zo(t);
|
|
475
469
|
return e;
|
|
476
470
|
} : ts;
|
|
477
471
|
function es(t, e, n) {
|
|
478
472
|
var r = e(t);
|
|
479
|
-
return B(t) ? r :
|
|
473
|
+
return B(t) ? r : zr(r, n(t));
|
|
480
474
|
}
|
|
481
475
|
function Ar(t) {
|
|
482
476
|
return es(t, yt, Hr);
|
|
483
477
|
}
|
|
484
|
-
var Ir = ce(wt, "DataView"), Nr = ce(wt, "Promise"), pe = ce(wt, "Set"), Ei = "[object Map]", gi = "[object Promise]", Ti = "[object Set]", Ai = "[object WeakMap]", Ii = "[object DataView]", Ba = ae(Ir), $a = ae(je), Wa = ae(Nr), Ga = ae(pe),
|
|
478
|
+
var Ir = ce(wt, "DataView"), Nr = ce(wt, "Promise"), pe = ce(wt, "Set"), Ei = "[object Map]", gi = "[object Promise]", Ti = "[object Set]", Ai = "[object WeakMap]", Ii = "[object DataView]", Ba = ae(Ir), $a = ae(je), Wa = ae(Nr), Ga = ae(pe), za = ae(mr), At = Jt;
|
|
485
479
|
(Ir && At(new Ir(new ArrayBuffer(1))) != Ii || je && At(new je()) != Ei || Nr && At(Nr.resolve()) != gi || pe && At(new pe()) != Ti || mr && At(new mr()) != Ai) && (At = function(t) {
|
|
486
480
|
var e = Jt(t), n = e == "[object Object]" ? t.constructor : void 0, r = n ? ae(n) : "";
|
|
487
481
|
if (r) switch (r) {
|
|
@@ -493,12 +487,12 @@ var Ir = ce(wt, "DataView"), Nr = ce(wt, "Promise"), pe = ce(wt, "Set"), Ei = "[
|
|
|
493
487
|
return gi;
|
|
494
488
|
case Ga:
|
|
495
489
|
return Ti;
|
|
496
|
-
case
|
|
490
|
+
case za:
|
|
497
491
|
return Ai;
|
|
498
492
|
}
|
|
499
493
|
return e;
|
|
500
494
|
});
|
|
501
|
-
var
|
|
495
|
+
var Ka = Object.prototype.hasOwnProperty, mn = wt.Uint8Array, Va = /\w*$/, Ni = It ? It.prototype : void 0, yi = Ni ? Ni.valueOf : void 0, Ri = Zt && Zt.isMap, Ha = Ri ? kn(Ri) : function(t) {
|
|
502
496
|
return Ot(t) && At(t) == "[object Map]";
|
|
503
497
|
}, vi = Zt && Zt.isSet, Ya = vi ? kn(vi) : function(t) {
|
|
504
498
|
return Ot(t) && At(t) == "[object Set]";
|
|
@@ -508,7 +502,7 @@ function sn(t, e, n, r, i, o) {
|
|
|
508
502
|
if (s !== void 0) return s;
|
|
509
503
|
if (!Nt(t)) return t;
|
|
510
504
|
var a, c, u, l = B(t);
|
|
511
|
-
if (l) return c = (a = t).length, u = new a.constructor(c), c && typeof a[0] == "string" &&
|
|
505
|
+
if (l) return c = (a = t).length, u = new a.constructor(c), c && typeof a[0] == "string" && Ka.call(a, "index") && (u.index = a.index, u.input = a.input), function(m, y) {
|
|
512
506
|
var p = -1, T = m.length;
|
|
513
507
|
for (y || (y = Array(T)); ++p < T; ) y[p] = m[p];
|
|
514
508
|
return y;
|
|
@@ -657,7 +651,7 @@ function yr(t, e, n, r, i) {
|
|
|
657
651
|
case "[object Boolean]":
|
|
658
652
|
case "[object Date]":
|
|
659
653
|
case "[object Number]":
|
|
660
|
-
return
|
|
654
|
+
return Ke(+f, +d);
|
|
661
655
|
case "[object Error]":
|
|
662
656
|
return f.name == d.name && f.message == d.message;
|
|
663
657
|
case "[object RegExp]":
|
|
@@ -807,7 +801,7 @@ var as = Object.prototype, tc = as.hasOwnProperty, Rr = Br(function(t, e) {
|
|
|
807
801
|
var n = -1, r = e.length, i = r > 2 ? e[2] : void 0;
|
|
808
802
|
for (i && Go(e[0], e[1], i) && (r = 1); ++n < r; ) for (var o = e[n], s = qo(o), a = -1, c = s.length; ++a < c; ) {
|
|
809
803
|
var u = s[a], l = t[u];
|
|
810
|
-
(l === void 0 ||
|
|
804
|
+
(l === void 0 || Ke(l, as[u]) && !tc.call(t, u)) && (t[u] = o[u]);
|
|
811
805
|
}
|
|
812
806
|
return t;
|
|
813
807
|
});
|
|
@@ -827,7 +821,7 @@ var En = Br(function(t, e) {
|
|
|
827
821
|
} else o(r, h, void 0) || c.push(l);
|
|
828
822
|
}
|
|
829
823
|
return c;
|
|
830
|
-
}(t,
|
|
824
|
+
}(t, Kr(e, 0, Pi, !0)) : [];
|
|
831
825
|
});
|
|
832
826
|
function ge(t) {
|
|
833
827
|
var e = t == null ? 0 : t.length;
|
|
@@ -896,7 +890,7 @@ function k(t, e) {
|
|
|
896
890
|
return (B(t) ? Sn : ic)(t, Pt(e));
|
|
897
891
|
}
|
|
898
892
|
function Tt(t, e) {
|
|
899
|
-
return
|
|
893
|
+
return Kr(k(t, e));
|
|
900
894
|
}
|
|
901
895
|
var Mi, oc = Object.prototype.hasOwnProperty, sc = (Mi = function(t, e, n) {
|
|
902
896
|
oc.call(t, n) ? t[n].push(e) : jr(t, n, [e]);
|
|
@@ -929,7 +923,7 @@ function Ui(t, e, n) {
|
|
|
929
923
|
return t != null && t.length ? Dr(t, e, 0) : -1;
|
|
930
924
|
}
|
|
931
925
|
var lc = Object.prototype.hasOwnProperty;
|
|
932
|
-
function
|
|
926
|
+
function z(t) {
|
|
933
927
|
if (t == null) return !0;
|
|
934
928
|
if (Mt(t) && (B(t) || typeof t == "string" || typeof t.splice == "function" || De(t) || Wr(t) || Cn(t))) return !t.length;
|
|
935
929
|
var e = At(t);
|
|
@@ -938,7 +932,7 @@ function K(t) {
|
|
|
938
932
|
for (var n in t) if (lc.call(t, n)) return !1;
|
|
939
933
|
return !0;
|
|
940
934
|
}
|
|
941
|
-
var Fi = Zt && Zt.isRegExp,
|
|
935
|
+
var Fi = Zt && Zt.isRegExp, zt = Fi ? kn(Fi) : function(t) {
|
|
942
936
|
return Ot(t) && Jt(t) == "[object RegExp]";
|
|
943
937
|
};
|
|
944
938
|
function Ht(t) {
|
|
@@ -1156,7 +1150,7 @@ function cn(t) {
|
|
|
1156
1150
|
const n = { type: "Terminal", name: t.terminalType.name, label: mc(t.terminalType), idx: t.idx };
|
|
1157
1151
|
ut(t.label) && (n.terminalLabel = t.label);
|
|
1158
1152
|
const r = t.terminalType.PATTERN;
|
|
1159
|
-
return t.terminalType.PATTERN && (n.pattern =
|
|
1153
|
+
return t.terminalType.PATTERN && (n.pattern = zt(r) ? r.source : r), n;
|
|
1160
1154
|
}
|
|
1161
1155
|
if (t instanceof Ae) return { type: "Rule", name: t.name, orgText: t.orgText, definition: e(t.definition) };
|
|
1162
1156
|
throw Error("non exhaustive match");
|
|
@@ -2058,13 +2052,13 @@ function Gi(t) {
|
|
|
2058
2052
|
const e = t.ignoreCase ? "i" : "";
|
|
2059
2053
|
return new RegExp(`^(?:${t.source})`, e);
|
|
2060
2054
|
}
|
|
2061
|
-
function
|
|
2055
|
+
function zi(t) {
|
|
2062
2056
|
const e = t.ignoreCase ? "iy" : "y";
|
|
2063
2057
|
return new RegExp(`${t.source}`, e);
|
|
2064
2058
|
}
|
|
2065
2059
|
function ms(t) {
|
|
2066
2060
|
const e = t.PATTERN;
|
|
2067
|
-
if (
|
|
2061
|
+
if (zt(e)) return !1;
|
|
2068
2062
|
if (Yt(e) || b(e, "exec")) return !0;
|
|
2069
2063
|
if (ut(e)) return !1;
|
|
2070
2064
|
throw Error("non exhaustive match");
|
|
@@ -2081,9 +2075,9 @@ const Oc = { test: function(t) {
|
|
|
2081
2075
|
}
|
|
2082
2076
|
return !1;
|
|
2083
2077
|
}, lastIndex: 0 };
|
|
2084
|
-
function
|
|
2078
|
+
function Ki(t, e) {
|
|
2085
2079
|
if (b(t, "LINE_BREAKS")) return !1;
|
|
2086
|
-
if (
|
|
2080
|
+
if (zt(t.PATTERN)) {
|
|
2087
2081
|
try {
|
|
2088
2082
|
xr(e, t.PATTERN);
|
|
2089
2083
|
} catch (n) {
|
|
@@ -2121,7 +2115,7 @@ function He(t) {
|
|
|
2121
2115
|
for (; o; ) {
|
|
2122
2116
|
i = $e(Rt(k(i, (a) => a.CATEGORIES)));
|
|
2123
2117
|
const s = En(i, r);
|
|
2124
|
-
r = r.concat(s),
|
|
2118
|
+
r = r.concat(s), z(s) ? o = !1 : i = s;
|
|
2125
2119
|
}
|
|
2126
2120
|
return r;
|
|
2127
2121
|
}(t);
|
|
@@ -2210,7 +2204,7 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2210
2204
|
let h = !1;
|
|
2211
2205
|
const N = an($e(Rt(Q(a.modes))), (_) => _[ne] === ot.NA), S = Vi(u);
|
|
2212
2206
|
return c && w(N, (_) => {
|
|
2213
|
-
const m =
|
|
2207
|
+
const m = Ki(_, S);
|
|
2214
2208
|
if (m !== !1) {
|
|
2215
2209
|
const y = { message: function(p, T) {
|
|
2216
2210
|
if (T.issue === H.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern.
|
|
@@ -2247,13 +2241,13 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2247
2241
|
const S = function(m) {
|
|
2248
2242
|
const y = gt(m, (p) => {
|
|
2249
2243
|
const T = p[ne];
|
|
2250
|
-
return !(
|
|
2244
|
+
return !(zt(T) || Yt(T) || b(T, "exec") || ut(T));
|
|
2251
2245
|
});
|
|
2252
2246
|
return { errors: k(y, (p) => ({ message: "Token Type: ->" + p.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.", type: H.INVALID_PATTERN, tokenTypes: [p] })), valid: En(m, y) };
|
|
2253
2247
|
}(N.valid), _ = S.valid;
|
|
2254
2248
|
return h = h.concat(S.errors), h = h.concat(function(m) {
|
|
2255
2249
|
let y = [];
|
|
2256
|
-
const p = gt(m, (T) =>
|
|
2250
|
+
const p = gt(m, (T) => zt(T[ne]));
|
|
2257
2251
|
return y = y.concat(function(T) {
|
|
2258
2252
|
class g extends Sr {
|
|
2259
2253
|
constructor() {
|
|
@@ -2314,13 +2308,13 @@ a boolean 2nd argument is no longer supported`);
|
|
|
2314
2308
|
}(_, l)), h = h.concat(function(m) {
|
|
2315
2309
|
const y = [], p = dt(m, (T, g, A) => {
|
|
2316
2310
|
const v = g.PATTERN;
|
|
2317
|
-
return v === ot.NA || (ut(v) ? T.push({ str: v, idx: A, tokenType: g }) :
|
|
2311
|
+
return v === ot.NA || (ut(v) ? T.push({ str: v, idx: A, tokenType: g }) : zt(v) && (f = v, Te([".", "\\", "[", "]", "|", "^", "$", "(", ")", "?", "*", "+", "{"], (d) => f.source.indexOf(d) !== -1) === void 0) && T.push({ str: v.source, idx: A, tokenType: g })), T;
|
|
2318
2312
|
var f;
|
|
2319
2313
|
}, []);
|
|
2320
2314
|
return w(m, (T, g) => {
|
|
2321
2315
|
w(p, ({ str: A, idx: v, tokenType: f }) => {
|
|
2322
2316
|
if (g < v && function(d, I) {
|
|
2323
|
-
if (
|
|
2317
|
+
if (zt(I)) {
|
|
2324
2318
|
const E = I.exec(d);
|
|
2325
2319
|
return E !== null && E.index === 0;
|
|
2326
2320
|
}
|
|
@@ -2338,7 +2332,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2338
2332
|
}), y;
|
|
2339
2333
|
}(_)), h;
|
|
2340
2334
|
}(a, s));
|
|
2341
|
-
}),
|
|
2335
|
+
}), z(this.lexerDefinitionErrors)) {
|
|
2342
2336
|
let u;
|
|
2343
2337
|
He(a), this.TRACE_INIT("analyzeTokenTypes", () => {
|
|
2344
2338
|
u = function(l, h) {
|
|
@@ -2347,7 +2341,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2347
2341
|
let S;
|
|
2348
2342
|
N("initCharCodeToOptimizedIndexMap", () => {
|
|
2349
2343
|
(function() {
|
|
2350
|
-
if (
|
|
2344
|
+
if (z(ln)) {
|
|
2351
2345
|
ln = new Array(65536);
|
|
2352
2346
|
for (let L = 0; L < 65536; L++) ln[L] = L > 255 ? 255 + ~~(L / 255) : L;
|
|
2353
2347
|
}
|
|
@@ -2359,9 +2353,9 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2359
2353
|
N("Transform Patterns", () => {
|
|
2360
2354
|
E = !1, _ = k(S, (L) => {
|
|
2361
2355
|
const O = L[ne];
|
|
2362
|
-
if (
|
|
2356
|
+
if (zt(O)) {
|
|
2363
2357
|
const P = O.source;
|
|
2364
|
-
return P.length !== 1 || P === "^" || P === "$" || P === "." || O.ignoreCase ? P.length !== 2 || P[0] !== "\\" || at(["d", "D", "s", "S", "t", "r", "n", "t", "0", "c", "b", "B", "f", "v", "w", "W"], P[1]) ? h.useSticky ?
|
|
2358
|
+
return P.length !== 1 || P === "^" || P === "$" || P === "." || O.ignoreCase ? P.length !== 2 || P[0] !== "\\" || at(["d", "D", "s", "S", "t", "r", "n", "t", "0", "c", "b", "B", "f", "v", "w", "W"], P[1]) ? h.useSticky ? zi(O) : Gi(O) : P[1] : P;
|
|
2365
2359
|
}
|
|
2366
2360
|
if (Yt(O)) return E = !0, { exec: O };
|
|
2367
2361
|
if (typeof O == "object") return E = !0, O;
|
|
@@ -2369,7 +2363,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2369
2363
|
if (O.length === 1) return O;
|
|
2370
2364
|
{
|
|
2371
2365
|
const P = O.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"), x = new RegExp(P);
|
|
2372
|
-
return h.useSticky ?
|
|
2366
|
+
return h.useSticky ? zi(x) : Gi(x);
|
|
2373
2367
|
}
|
|
2374
2368
|
}
|
|
2375
2369
|
throw Error("non exhaustive match");
|
|
@@ -2388,7 +2382,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2388
2382
|
}), T = k(S, (L) => L.PUSH_MODE), g = k(S, (L) => b(L, "POP_MODE"));
|
|
2389
2383
|
}), N("Line Terminator Handling", () => {
|
|
2390
2384
|
const L = Vi(h.lineTerminatorCharacters);
|
|
2391
|
-
A = k(S, (O) => !1), h.positionTracking !== "onlyOffset" && (A = k(S, (O) => b(O, "LINE_BREAKS") ? !!O.LINE_BREAKS :
|
|
2385
|
+
A = k(S, (O) => !1), h.positionTracking !== "onlyOffset" && (A = k(S, (O) => b(O, "LINE_BREAKS") ? !!O.LINE_BREAKS : Ki(O, L) === !1 && xr(L, O.PATTERN)));
|
|
2392
2386
|
}), N("Misc Mapping #2", () => {
|
|
2393
2387
|
v = k(S, ms), f = k(_, vc), d = dt(S, (L, O) => {
|
|
2394
2388
|
const P = O.GROUP;
|
|
@@ -2407,13 +2401,13 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2407
2401
|
const $ = qt(typeof C == "string" ? C.charCodeAt(0) : C);
|
|
2408
2402
|
x !== $ && (x = $, qn(L, $, I[P]));
|
|
2409
2403
|
});
|
|
2410
|
-
} else if (
|
|
2404
|
+
} else if (zt(O.PATTERN)) if (O.PATTERN.unicode) R = !1, h.ensureOptimizations && Or(`${Nn} Unable to analyze < ${O.PATTERN.toString()} > pattern.
|
|
2411
2405
|
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
2412
2406
|
This will disable the lexer's first char optimizations.
|
|
2413
2407
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);
|
|
2414
2408
|
else {
|
|
2415
2409
|
const x = Ic(O.PATTERN, h.ensureOptimizations);
|
|
2416
|
-
|
|
2410
|
+
z(x) && (R = !1), w(x, (C) => {
|
|
2417
2411
|
qn(L, C, I[P]);
|
|
2418
2412
|
});
|
|
2419
2413
|
}
|
|
@@ -2427,7 +2421,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2427
2421
|
}), this.patternIdxToConfig[c] = u.patternIdxToConfig, this.charCodeToPatternIdxToConfig[c] = u.charCodeToPatternIdxToConfig, this.emptyGroups = pt({}, this.emptyGroups, u.emptyGroups), this.hasCustom = u.hasCustom || this.hasCustom, this.canModeBeOptimized[c] = u.canBeOptimized;
|
|
2428
2422
|
}
|
|
2429
2423
|
});
|
|
2430
|
-
}), this.defaultMode = i.defaultMode, !
|
|
2424
|
+
}), this.defaultMode = i.defaultMode, !z(this.lexerDefinitionErrors) && !this.config.deferDefinitionErrorsHandling) {
|
|
2431
2425
|
const a = k(this.lexerDefinitionErrors, (c) => c.message).join(`-----------------------
|
|
2432
2426
|
`);
|
|
2433
2427
|
throw new Error(`Errors detected in definition of Lexer:
|
|
@@ -2445,7 +2439,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2445
2439
|
this.hasCustom ? (this.addToken = this.addTokenUsingPush, this.handlePayload = this.handlePayloadWithCustom) : (this.addToken = this.addTokenUsingMemberAccess, this.handlePayload = this.handlePayloadNoCustom);
|
|
2446
2440
|
}), this.TRACE_INIT("Failed Optimization Warnings", () => {
|
|
2447
2441
|
const a = dt(this.canModeBeOptimized, (c, u, l) => (u === !1 && c.push(l), c), []);
|
|
2448
|
-
if (n.ensureOptimizations && !
|
|
2442
|
+
if (n.ensureOptimizations && !z(a)) throw Error(`Lexer Modes: < ${a.join(", ")} > cannot be optimized.
|
|
2449
2443
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
2450
2444
|
Or inspect the console log for details on how to resolve these issues.`);
|
|
2451
2445
|
}), this.TRACE_INIT("clearRegExpParserCache", () => {
|
|
@@ -2456,7 +2450,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
|
|
|
2456
2450
|
});
|
|
2457
2451
|
}
|
|
2458
2452
|
tokenize(e, n = this.defaultMode) {
|
|
2459
|
-
if (!
|
|
2453
|
+
if (!z(this.lexerDefinitionErrors)) {
|
|
2460
2454
|
const r = k(this.lexerDefinitionErrors, (i) => i.message).join(`-----------------------
|
|
2461
2455
|
`);
|
|
2462
2456
|
throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
@@ -2721,7 +2715,7 @@ class xc extends Pn {
|
|
|
2721
2715
|
}
|
|
2722
2716
|
}
|
|
2723
2717
|
updateExpectedNext() {
|
|
2724
|
-
|
|
2718
|
+
z(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop());
|
|
2725
2719
|
}
|
|
2726
2720
|
}
|
|
2727
2721
|
class Cc extends xc {
|
|
@@ -2797,7 +2791,7 @@ function Cr(t, e, n = []) {
|
|
|
2797
2791
|
r = o(a);
|
|
2798
2792
|
} else {
|
|
2799
2793
|
if (s instanceof xt) return w(s.definition, (a) => {
|
|
2800
|
-
|
|
2794
|
+
z(a.definition) === !1 && (r = o(a.definition));
|
|
2801
2795
|
}), r;
|
|
2802
2796
|
if (!(s instanceof V)) throw Error("non exhaustive match");
|
|
2803
2797
|
n.push(s.terminalType);
|
|
@@ -2811,14 +2805,14 @@ function Is(t, e, n, r) {
|
|
|
2811
2805
|
const i = "EXIT_NONE_TERMINAL", o = [i], s = "EXIT_ALTERNATIVE";
|
|
2812
2806
|
let a = !1;
|
|
2813
2807
|
const c = e.length, u = c - r - 1, l = [], h = [];
|
|
2814
|
-
for (h.push({ idx: -1, def: t, ruleStack: [], occurrenceStack: [] }); !
|
|
2808
|
+
for (h.push({ idx: -1, def: t, ruleStack: [], occurrenceStack: [] }); !z(h); ) {
|
|
2815
2809
|
const N = h.pop();
|
|
2816
2810
|
if (N === s) {
|
|
2817
2811
|
a && ge(h).idx <= u && h.pop();
|
|
2818
2812
|
continue;
|
|
2819
2813
|
}
|
|
2820
2814
|
const S = N.def, _ = N.idx, m = N.ruleStack, y = N.occurrenceStack;
|
|
2821
|
-
if (
|
|
2815
|
+
if (z(S)) continue;
|
|
2822
2816
|
const p = S[0];
|
|
2823
2817
|
if (p === i) {
|
|
2824
2818
|
const T = { idx: _, def: tt(S), ruleStack: We(m), occurrenceStack: We(y) };
|
|
@@ -2934,7 +2928,7 @@ function Mc(t, e, n) {
|
|
|
2934
2928
|
const r = vt(t, (o) => o.length === 1), i = t.length;
|
|
2935
2929
|
if (r && !n) {
|
|
2936
2930
|
const o = Rt(t);
|
|
2937
|
-
if (o.length === 1 &&
|
|
2931
|
+
if (o.length === 1 && z(o[0].categoryMatches)) {
|
|
2938
2932
|
const s = o[0].tokenTypeIdx;
|
|
2939
2933
|
return function() {
|
|
2940
2934
|
return this.LA(1).tokenTypeIdx === s;
|
|
@@ -3063,7 +3057,7 @@ function ys(t, e) {
|
|
|
3063
3057
|
const u = a[c];
|
|
3064
3058
|
for (let l = 0; l < u.length; l++) {
|
|
3065
3059
|
const h = u[l].partialPath, N = u[l].suffixDef, S = Zn(h);
|
|
3066
|
-
if (Fc(i, S, c) ||
|
|
3060
|
+
if (Fc(i, S, c) || z(N) || h.length === e) {
|
|
3067
3061
|
const _ = r[c];
|
|
3068
3062
|
if (Pr(_, h) === !1) {
|
|
3069
3063
|
_.push(h);
|
|
@@ -3109,7 +3103,7 @@ function Pr(t, e) {
|
|
|
3109
3103
|
return !1;
|
|
3110
3104
|
}
|
|
3111
3105
|
function co(t) {
|
|
3112
|
-
return vt(t, (e) => vt(e, (n) => vt(n, (r) =>
|
|
3106
|
+
return vt(t, (e) => vt(e, (n) => vt(n, (r) => z(r.categoryMatches))));
|
|
3113
3107
|
}
|
|
3114
3108
|
function Dc(t) {
|
|
3115
3109
|
return `${kt(t)}_#_${t.idx}_#_${Rs(t)}`;
|
|
@@ -3148,7 +3142,7 @@ class jc extends Ie {
|
|
|
3148
3142
|
}
|
|
3149
3143
|
function vs(t, e, n, r = []) {
|
|
3150
3144
|
const i = [], o = hn(e.definition);
|
|
3151
|
-
if (
|
|
3145
|
+
if (z(o)) return [];
|
|
3152
3146
|
{
|
|
3153
3147
|
const s = t.name;
|
|
3154
3148
|
at(o, t) && i.push({ message: n.buildLeftRecursionError({ topLevelRule: t, leftRecursionPath: r }), type: st.LEFT_RECURSION, ruleName: s });
|
|
@@ -3161,7 +3155,7 @@ function vs(t, e, n, r = []) {
|
|
|
3161
3155
|
}
|
|
3162
3156
|
function hn(t) {
|
|
3163
3157
|
let e = [];
|
|
3164
|
-
if (
|
|
3158
|
+
if (z(t)) return e;
|
|
3165
3159
|
const n = St(t);
|
|
3166
3160
|
if (n instanceof mt) e.push(n.referencedRule);
|
|
3167
3161
|
else if (n instanceof ht || n instanceof lt || n instanceof Ft || n instanceof Dt || n instanceof Lt || n instanceof J) e = e.concat(hn(n.definition));
|
|
@@ -3230,12 +3224,12 @@ class Gc extends Mn {
|
|
|
3230
3224
|
}
|
|
3231
3225
|
}
|
|
3232
3226
|
const Qn = {}, Cs = "InRuleRecoveryException";
|
|
3233
|
-
class
|
|
3227
|
+
class zc extends Error {
|
|
3234
3228
|
constructor(e) {
|
|
3235
3229
|
super(e), this.name = Cs;
|
|
3236
3230
|
}
|
|
3237
3231
|
}
|
|
3238
|
-
function
|
|
3232
|
+
function Kc(t, e, n, r, i, o, s) {
|
|
3239
3233
|
const a = this.getKeyForAutomaticLookahead(r, i);
|
|
3240
3234
|
let c = this.firstAfterRepMap[a];
|
|
3241
3235
|
if (c === void 0) {
|
|
@@ -3253,11 +3247,11 @@ function er(t, e, n) {
|
|
|
3253
3247
|
class Vc {
|
|
3254
3248
|
constructor(e) {
|
|
3255
3249
|
var n;
|
|
3256
|
-
this.maxLookahead = (n = e?.maxLookahead) !== null && n !== void 0 ? n :
|
|
3250
|
+
this.maxLookahead = (n = e?.maxLookahead) !== null && n !== void 0 ? n : Kt.maxLookahead;
|
|
3257
3251
|
}
|
|
3258
3252
|
validate(e) {
|
|
3259
3253
|
const n = this.validateNoLeftRecursion(e.rules);
|
|
3260
|
-
if (
|
|
3254
|
+
if (z(n)) {
|
|
3261
3255
|
const r = this.validateEmptyOrAlternatives(e.rules), i = this.validateAmbiguousAlternationAlternatives(e.rules, this.maxLookahead), o = this.validateSomeNonEmptyLookaheadPath(e.rules, this.maxLookahead);
|
|
3262
3256
|
return [...n, ...r, ...i, ...o];
|
|
3263
3257
|
}
|
|
@@ -3269,7 +3263,7 @@ class Vc {
|
|
|
3269
3263
|
validateEmptyOrAlternatives(e) {
|
|
3270
3264
|
return Tt(e, (n) => function(r, i) {
|
|
3271
3265
|
const o = new wr();
|
|
3272
|
-
return r.accept(o), Tt(o.alternations, (s) => Tt(We(s.definition), (a, c) =>
|
|
3266
|
+
return r.accept(o), Tt(o.alternations, (s) => Tt(We(s.definition), (a, c) => z(Is([a], [], Pe, 1)) ? [{ message: i.buildEmptyAlternationError({ topLevelRule: r, alternation: s, emptyChoiceIdx: c }), type: st.NONE_LAST_EMPTY_ALT, ruleName: r.name, occurrence: s.idx, alternative: c + 1 }] : []));
|
|
3273
3267
|
}(n, oe));
|
|
3274
3268
|
}
|
|
3275
3269
|
validateAmbiguousAlternationAlternatives(e, n) {
|
|
@@ -3320,7 +3314,7 @@ class Vc {
|
|
|
3320
3314
|
const c = new Bc();
|
|
3321
3315
|
a.accept(c), w(c.allProductions, (u) => {
|
|
3322
3316
|
const l = so(u), h = u.maxLookahead || i;
|
|
3323
|
-
if (
|
|
3317
|
+
if (z(Rt(br(u.idx, a, l, h)[0]))) {
|
|
3324
3318
|
const N = o.buildEmptyRepetitionError({ topLevelRule: a, repetition: u });
|
|
3325
3319
|
s.push({ message: N, type: st.NO_NON_EMPTY_LOOKAHEAD, ruleName: a.name });
|
|
3326
3320
|
}
|
|
@@ -3426,7 +3420,7 @@ function Rn(t) {
|
|
|
3426
3420
|
}
|
|
3427
3421
|
const fn = qr(ie, "", NaN, NaN, NaN, NaN, NaN, NaN);
|
|
3428
3422
|
Object.freeze(fn);
|
|
3429
|
-
const
|
|
3423
|
+
const Kt = Object.freeze({ recoveryEnabled: !1, maxLookahead: 3, dynamicTokensEnabled: !1, outputCst: !0, errorMessageProvider: As, nodeLocationTracking: "none", traceInitPerf: !1, skipValidations: !1 }), on = Object.freeze({ recoveryValueFunc: () => {
|
|
3430
3424
|
}, resyncEnabled: !0 });
|
|
3431
3425
|
var st, nr;
|
|
3432
3426
|
(function(t) {
|
|
@@ -3468,7 +3462,7 @@ class Ge {
|
|
|
3468
3462
|
}(s, o.errMsgProvider);
|
|
3469
3463
|
}({ rules: Q(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(r);
|
|
3470
3464
|
}), this.TRACE_INIT("Grammar Validations", () => {
|
|
3471
|
-
if (
|
|
3465
|
+
if (z(r) && this.skipValidations === !1) {
|
|
3472
3466
|
const s = (o = { rules: Q(this.gastProductionsCache), tokenTypes: Q(this.tokensMap), errMsgProvider: oe, grammarName: n }, function(c, u, l, h) {
|
|
3473
3467
|
const N = Tt(c, (y) => function(p, T) {
|
|
3474
3468
|
const g = new jc();
|
|
@@ -3503,7 +3497,7 @@ class Ge {
|
|
|
3503
3497
|
this.definitionErrors = this.definitionErrors.concat(s, a);
|
|
3504
3498
|
}
|
|
3505
3499
|
var i, o;
|
|
3506
|
-
}),
|
|
3500
|
+
}), z(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => {
|
|
3507
3501
|
const i = function(o) {
|
|
3508
3502
|
const s = {};
|
|
3509
3503
|
return w(o, (a) => {
|
|
@@ -3515,7 +3509,7 @@ class Ge {
|
|
|
3515
3509
|
}), this.TRACE_INIT("ComputeLookaheadFunctions", () => {
|
|
3516
3510
|
var i, o;
|
|
3517
3511
|
(o = (i = this.lookaheadStrategy).initialize) === null || o === void 0 || o.call(i, { rules: Q(this.gastProductionsCache) }), this.preComputeLookaheadFunctions(Q(this.gastProductionsCache));
|
|
3518
|
-
})), !Ge.DEFER_DEFINITION_ERRORS_HANDLING && !
|
|
3512
|
+
})), !Ge.DEFER_DEFINITION_ERRORS_HANDLING && !z(this.definitionErrors)) throw e = k(this.definitionErrors, (i) => i.message), new Error(`Parser Definition Errors detected:
|
|
3519
3513
|
${e.join(`
|
|
3520
3514
|
-------------------------------
|
|
3521
3515
|
`)}`);
|
|
@@ -3528,12 +3522,12 @@ class Ge {
|
|
|
3528
3522
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
3529
3523
|
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
3530
3524
|
For further details.`);
|
|
3531
|
-
this.skipValidations = b(n, "skipValidations") ? n.skipValidations :
|
|
3525
|
+
this.skipValidations = b(n, "skipValidations") ? n.skipValidations : Kt.skipValidations;
|
|
3532
3526
|
}
|
|
3533
3527
|
}
|
|
3534
3528
|
Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
3535
3529
|
initRecoverable(t) {
|
|
3536
|
-
this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = b(t, "recoveryEnabled") ? t.recoveryEnabled :
|
|
3530
|
+
this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = b(t, "recoveryEnabled") ? t.recoveryEnabled : Kt.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = Kc);
|
|
3537
3531
|
}
|
|
3538
3532
|
getTokenToInsert(t) {
|
|
3539
3533
|
const e = qr(t, "", NaN, NaN, NaN, NaN, NaN, NaN);
|
|
@@ -3574,13 +3568,13 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3574
3568
|
const n = this.SKIP_TOKEN();
|
|
3575
3569
|
return this.consumeToken(), n;
|
|
3576
3570
|
}
|
|
3577
|
-
throw new
|
|
3571
|
+
throw new zc("sad sad panda");
|
|
3578
3572
|
}
|
|
3579
3573
|
canPerformInRuleRecovery(t, e) {
|
|
3580
3574
|
return this.canRecoverWithSingleTokenInsertion(t, e) || this.canRecoverWithSingleTokenDeletion(t);
|
|
3581
3575
|
}
|
|
3582
3576
|
canRecoverWithSingleTokenInsertion(t, e) {
|
|
3583
|
-
if (!this.canTokenTypeBeInsertedInRecovery(t) ||
|
|
3577
|
+
if (!this.canTokenTypeBeInsertedInRecovery(t) || z(e)) return !1;
|
|
3584
3578
|
const n = this.LA(1);
|
|
3585
3579
|
return Te(e, (r) => this.tokenMatcher(n, r)) !== void 0;
|
|
3586
3580
|
}
|
|
@@ -3636,7 +3630,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3636
3630
|
}
|
|
3637
3631
|
}, class {
|
|
3638
3632
|
initLooksAhead(t) {
|
|
3639
|
-
this.dynamicTokensEnabled = b(t, "dynamicTokensEnabled") ? t.dynamicTokensEnabled :
|
|
3633
|
+
this.dynamicTokensEnabled = b(t, "dynamicTokensEnabled") ? t.dynamicTokensEnabled : Kt.dynamicTokensEnabled, this.maxLookahead = b(t, "maxLookahead") ? t.maxLookahead : Kt.maxLookahead, this.lookaheadStrategy = b(t, "lookaheadStrategy") ? t.lookaheadStrategy : new Vc({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map();
|
|
3640
3634
|
}
|
|
3641
3635
|
preComputeLookaheadFunctions(t) {
|
|
3642
3636
|
w(t, (e) => {
|
|
@@ -3683,7 +3677,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3683
3677
|
}
|
|
3684
3678
|
}, class {
|
|
3685
3679
|
initTreeBuilder(t) {
|
|
3686
|
-
if (this.CST_STACK = [], this.outputCst = t.outputCst, this.nodeLocationTracking = b(t, "nodeLocationTracking") ? t.nodeLocationTracking :
|
|
3680
|
+
if (this.CST_STACK = [], this.outputCst = t.outputCst, this.nodeLocationTracking = b(t, "nodeLocationTracking") ? t.nodeLocationTracking : Kt.nodeLocationTracking, this.outputCst) if (/full/i.test(this.nodeLocationTracking)) this.recoveryEnabled ? (this.setNodeLocationFromToken = ho, this.setNodeLocationFromNode = ho, this.cstPostRule = Z, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = Z, this.setNodeLocationFromNode = Z, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular);
|
|
3687
3681
|
else if (/onlyOffset/i.test(this.nodeLocationTracking)) this.recoveryEnabled ? (this.setNodeLocationFromToken = lo, this.setNodeLocationFromNode = lo, this.cstPostRule = Z, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = Z, this.setNodeLocationFromNode = Z, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular);
|
|
3688
3682
|
else {
|
|
3689
3683
|
if (!/none/i.test(this.nodeLocationTracking)) throw Error(`Invalid <nodeLocationTracking> config option: "${t.nodeLocationTracking}"`);
|
|
@@ -3739,7 +3733,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3739
3733
|
}, validateVisitor: function() {
|
|
3740
3734
|
const i = (o = this, $e(k(gt(n, (s) => Yt(o[s]) === !1), (s) => ({ msg: `Missing visitor method: <${s}> on ${o.constructor.name} CST Visitor.`, type: Mr.MISSING_METHOD, methodName: s }))));
|
|
3741
3735
|
var o;
|
|
3742
|
-
if (!
|
|
3736
|
+
if (!z(i)) {
|
|
3743
3737
|
const s = k(i, (a) => a.msg);
|
|
3744
3738
|
throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
3745
3739
|
${s.join(`
|
|
@@ -3822,7 +3816,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3822
3816
|
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
3823
3817
|
For Further details.`);
|
|
3824
3818
|
if (B(t)) {
|
|
3825
|
-
if (
|
|
3819
|
+
if (z(t)) throw Error(`A Token Vocabulary cannot be empty.
|
|
3826
3820
|
Note that the first argument for the parser constructor
|
|
3827
3821
|
is no longer a Token vector (since v4.0).`);
|
|
3828
3822
|
if (typeof t[0].startOffset == "number") throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
@@ -3838,7 +3832,7 @@ Ge.DEFER_DEFINITION_ERRORS_HANDLING = !1, nr = Ge, [class {
|
|
|
3838
3832
|
this.tokensMap = et(t);
|
|
3839
3833
|
}
|
|
3840
3834
|
this.tokensMap.EOF = ie;
|
|
3841
|
-
const n = vt(b(t, "modes") ? Rt(Q(t.modes)) : Q(t), (r) =>
|
|
3835
|
+
const n = vt(b(t, "modes") ? Rt(Q(t.modes)) : Q(t), (r) => z(r.categoryMatches));
|
|
3842
3836
|
this.tokenMatcher = n ? yn : Pe, He(Q(this.tokensMap));
|
|
3843
3837
|
}
|
|
3844
3838
|
defineRule(t, e, n) {
|
|
@@ -4358,7 +4352,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4358
4352
|
}
|
|
4359
4353
|
}, class {
|
|
4360
4354
|
initErrorHandler(t) {
|
|
4361
|
-
this._errors = [], this.errorMessageProvider = b(t, "errorMessageProvider") ? t.errorMessageProvider :
|
|
4355
|
+
this._errors = [], this.errorMessageProvider = b(t, "errorMessageProvider") ? t.errorMessageProvider : Kt.errorMessageProvider;
|
|
4362
4356
|
}
|
|
4363
4357
|
SAVE_ERROR(t) {
|
|
4364
4358
|
if (en(t)) return t.context = { ruleStack: this.getHumanReadableRuleStack(), ruleOccurrenceStack: et(this.RULE_OCCURRENCE_STACK) }, this._errors.push(t), t;
|
|
@@ -4509,7 +4503,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4509
4503
|
if (b(t, "traceInitPerf")) {
|
|
4510
4504
|
const e = t.traceInitPerf, n = typeof e == "number";
|
|
4511
4505
|
this.traceInitMaxIdent = n ? e : 1 / 0, this.traceInitPerf = n ? e > 0 : e;
|
|
4512
|
-
} else this.traceInitMaxIdent = 0, this.traceInitPerf =
|
|
4506
|
+
} else this.traceInitMaxIdent = 0, this.traceInitPerf = Kt.traceInitPerf;
|
|
4513
4507
|
this.traceInitIndent = -1;
|
|
4514
4508
|
}
|
|
4515
4509
|
TRACE_INIT(t, e) {
|
|
@@ -4531,7 +4525,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
4531
4525
|
});
|
|
4532
4526
|
});
|
|
4533
4527
|
class qc extends Ge {
|
|
4534
|
-
constructor(e, n =
|
|
4528
|
+
constructor(e, n = Kt) {
|
|
4535
4529
|
const r = et(n);
|
|
4536
4530
|
r.outputCst = !1, super(e, r);
|
|
4537
4531
|
}
|
|
@@ -4591,10 +4585,10 @@ const Qt = { boolean: 3, string: 2, number: 1 }, wu = (t, e) => {
|
|
|
4591
4585
|
}, Gu = (t = null, e = null) => {
|
|
4592
4586
|
const n = typeof t, r = typeof e;
|
|
4593
4587
|
return n === r ? t <= e : Qt[n] <= Qt[r];
|
|
4594
|
-
},
|
|
4588
|
+
}, zu = { type: se.Number, coerce: !0, includeBoolean: !0, includeMistyped: !0, mismatchFill: D.BuiltIn.NA }, Ku = { type: se.String, coerce: !0, includeMistyped: !0, mismatchFill: D.BuiltIn.NA }, $s = { type: null, coerce: !0, includeMistyped: !0, mismatchFill: D.BuiltIn.NA }, de = (t, e, n, r) => {
|
|
4595
4589
|
if (e !== null && e.colStart !== void 0 && (e = t.getValueAt(e.rowStart, e.colStart)), n !== null && n.colStart !== void 0 && (n = t.getValueAt(n.rowStart, n.colStart)), typeof e == "number" && typeof n == "number") return r(e, n);
|
|
4596
4590
|
let i, o;
|
|
4597
|
-
return e?.isIRange ? i = e : n?.isIRange && (o = n), i || o ? (i || (i = t.getRange(e)), i.broadcast(n, r,
|
|
4591
|
+
return e?.isIRange ? i = e : n?.isIRange && (o = n), i || o ? (i || (i = t.getRange(e)), i.broadcast(n, r, zu).fillEmpty(0)) : (e = Ue(e, Fe(e, !0), se.Number, !0, !1), n = Ue(n, Fe(n, !0), se.Number, !0, !1), e instanceof D.Value ? e : n instanceof D.Value ? n : r(e, n));
|
|
4598
4592
|
}, he = (t, e, n, r) => {
|
|
4599
4593
|
let i, o;
|
|
4600
4594
|
return e !== null && e.colStart !== void 0 && (e = t.getValueAt(e.rowStart, e.colStart)), n !== null && n.colStart !== void 0 && (n = t.getValueAt(n.rowStart, n.colStart)), e?.isIRange ? (i = e, o = n) : n?.isIRange && (i = n, o = e), i ? i.broadcast(o, r, $s) : r(e, n);
|
|
@@ -4622,7 +4616,7 @@ const Qt = { boolean: 3, string: 2, number: 1 }, wu = (t, e) => {
|
|
|
4622
4616
|
}, "&": (t, e, n) => ((r, i, o, s) => {
|
|
4623
4617
|
if (i !== null && i.colStart !== void 0 && (i = r.getValueAt(i.rowStart, i.colStart)), o !== null && o.colStart !== void 0 && (o = r.getValueAt(o.rowStart, o.colStart)), typeof i == "string" && typeof o == "string") return s(i, o);
|
|
4624
4618
|
let a, c;
|
|
4625
|
-
return i?.isIRange ? a = i : o?.isIRange && (c = o), a || c ? (a || (a = r.getRange(i)), a.broadcast(o, s,
|
|
4619
|
+
return i?.isIRange ? a = i : o?.isIRange && (c = o), a || c ? (a || (a = r.getRange(i)), a.broadcast(o, s, Ku)) : s(i = Ue(i, Fe(i, !0), se.String), o = Ue(o, Fe(o, !0), se.String));
|
|
4626
4620
|
})(t, e, n, Fu), "=": (t, e, n) => he(t, e, n, Du), "<>": (t, e, n) => he(t, e, n, ju), ">": (t, e, n) => he(t, e, n, Bu), "<": (t, e, n) => he(t, e, n, Wu), ">=": (t, e, n) => he(t, e, n, $u), "<=": (t, e, n) => he(t, e, n, Gu) }, Hu = { "-": (t, e) => To("-", e), "+": (t, e) => To("+", e), "@": (t, e) => {
|
|
4627
4621
|
if (!e || !e.isIReferenceRange) return e;
|
|
4628
4622
|
const n = e.getCoords(), r = e, i = t.getPosition(), o = r.getHeight(), s = r.getWidth();
|
|
@@ -4698,7 +4692,7 @@ function vo(t) {
|
|
|
4698
4692
|
function vn(t) {
|
|
4699
4693
|
return { type: "error", value: t ? D.getBuiltInByLabel(t.toUpperCase()) : D.BuiltIn.Ref, inputs: null, isReference: !0 };
|
|
4700
4694
|
}
|
|
4701
|
-
function
|
|
4695
|
+
function ze(t, e) {
|
|
4702
4696
|
return function n(r, i) {
|
|
4703
4697
|
const o = r.inputs;
|
|
4704
4698
|
let s;
|
|
@@ -4714,14 +4708,14 @@ function Ke(t, e) {
|
|
|
4714
4708
|
}(t, void 0) || this;
|
|
4715
4709
|
}
|
|
4716
4710
|
function dn(t, e) {
|
|
4717
|
-
let n = 0, r =
|
|
4711
|
+
let n = 0, r = ze(t, (g) => {
|
|
4718
4712
|
const A = { ...g };
|
|
4719
4713
|
return A.evalIndex = n++, A;
|
|
4720
4714
|
});
|
|
4721
4715
|
const i = new Array(n), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
|
|
4722
4716
|
let a;
|
|
4723
4717
|
const c = /* @__PURE__ */ new Map(), u = [], l = [];
|
|
4724
|
-
r =
|
|
4718
|
+
r = ze(r, (g, A) => {
|
|
4725
4719
|
const v = g.type, f = g.evalIndex;
|
|
4726
4720
|
if (i[f] = null, g.isReference) {
|
|
4727
4721
|
const d = g, I = { node: g, index: c.size, op: null, value: null, inputs: null };
|
|
@@ -5215,7 +5209,7 @@ class Sl extends qc {
|
|
|
5215
5209
|
const o = r.tokens;
|
|
5216
5210
|
this.input = o, this.inputTextLength = n.length;
|
|
5217
5211
|
const s = e.getPosition();
|
|
5218
|
-
return this.position = s, this.astErrors = [], this.reset(), i = this.intersectOp(), i =
|
|
5212
|
+
return this.position = s, this.astErrors = [], this.reset(), i = this.intersectOp(), i = ze(i, (a, c) => {
|
|
5219
5213
|
let u = a.type;
|
|
5220
5214
|
if (u === "function" && a.value && a.value.toUpperCase().startsWith("_XLFN.")) {
|
|
5221
5215
|
const l = a.value.substring(6);
|
|
@@ -5260,7 +5254,7 @@ class Me {
|
|
|
5260
5254
|
this._options = e, this._compiled = n;
|
|
5261
5255
|
}
|
|
5262
5256
|
getTextAt(e, n, r = !1) {
|
|
5263
|
-
return r ? Ye(this._compiled.tokens) :
|
|
5257
|
+
return r ? Ye(this._compiled.tokens) : zs(this._compiled.tokens, e, n);
|
|
5264
5258
|
}
|
|
5265
5259
|
getTokens() {
|
|
5266
5260
|
return this._compiled.tokens;
|
|
@@ -5308,7 +5302,7 @@ class Me {
|
|
|
5308
5302
|
if (c.type !== "cell") throw a.op === "named" ? new Error("Cannot setReference for a named reference") : new Error(`Invalidate reference index: ${e}`);
|
|
5309
5303
|
_ = c.evalIndex;
|
|
5310
5304
|
}
|
|
5311
|
-
const y = this._compiled.ast, p =
|
|
5305
|
+
const y = this._compiled.ast, p = ze(y, (A) => {
|
|
5312
5306
|
if (!A || !A.isReference) return;
|
|
5313
5307
|
const v = A.type;
|
|
5314
5308
|
if (!n && Ws.includes(A.value)) {
|
|
@@ -5400,7 +5394,7 @@ class Me {
|
|
|
5400
5394
|
let a = this._compiled;
|
|
5401
5395
|
if (n !== void 0) {
|
|
5402
5396
|
let f;
|
|
5403
|
-
if (
|
|
5397
|
+
if (ze(a.ast, (d) => {
|
|
5404
5398
|
d.evalIndex === n && (f = d);
|
|
5405
5399
|
}), !f) throw new Error(`Invalid evalIndex: ${n}`);
|
|
5406
5400
|
a = dn(f, a.error);
|
|
@@ -5526,7 +5520,7 @@ class Me {
|
|
|
5526
5520
|
if (i.type === "cell") return this;
|
|
5527
5521
|
if (i.value === "@") return this;
|
|
5528
5522
|
if (!r) return this;
|
|
5529
|
-
const o =
|
|
5523
|
+
const o = Ks(n) + Vs(e);
|
|
5530
5524
|
if (r.has(o)) return this;
|
|
5531
5525
|
const s = dn(Ce("@", i, !0), this._compiled.error);
|
|
5532
5526
|
return new Me(this._options, s);
|