@sheetxl/studio-vanilla 0.1.115 → 0.1.120
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/build/LICENSE.md +11 -0
- package/build/README.md +100 -0
- package/build/browser/cjs/{B_5ro-VEKfZDMSn_.cjs → 0ro4POJddfCBqwla.cjs} +2 -2
- package/build/browser/cjs/{BC5MKXBhHGdPeiJ3.cjs → 1xcaaHt-LleC2oYh.cjs} +4 -4
- package/build/browser/cjs/{BarieqwSecnaFn0d.cjs → 7wUiFacmdqkiWuWr.cjs} +2 -2
- package/build/browser/cjs/{CHD5c5FdcMm6vLyG.cjs → AqHPrTlampByVX8V.cjs} +3 -3
- package/build/browser/cjs/{CA2wSX6txFrM5nXD.cjs → B2redKMEmdGbomTo.cjs} +1 -1
- package/build/browser/cjs/{B6AOUko0HYRy2MPw.cjs → BIwA3_EeKP1jPK3x.cjs} +1 -1
- package/build/browser/cjs/{Dcyg_YxTfBgi_6cp.cjs → BM2e3xTnEV5QQRL6.cjs} +3 -3
- package/build/browser/cjs/{Dix4vuDuOzj4WGCJ.cjs → BMy2iuCi7fAamrFB.cjs} +3 -3
- package/build/browser/cjs/{DqbTRjj97q78RuGC.cjs → BP_eEnHsSxHcmOYN.cjs} +2 -2
- package/build/browser/cjs/{CDiYZ1cSoLW8U5Mz.cjs → BQHg3UBIFtsjj_aI.cjs} +1 -1
- package/build/browser/cjs/{BMVMyi5NiMBuQrl9.cjs → BQm0Q9SDHOqyapkq.cjs} +8 -8
- package/build/browser/cjs/{C_uXPPlfjY68-QA8.cjs → BUFdiCEWow7N7xsv.cjs} +2 -2
- package/build/browser/cjs/{DLqNXuHYff_kQuj1.cjs → BVZZMNz6N_Yld6h2.cjs} +1 -1
- package/build/browser/cjs/{CyF7bxA0DO13ETpx.cjs → BWnPTOt6Tdfw0EiU.cjs} +3 -3
- package/build/browser/cjs/{CUw8AoM-rVbp1W3s.cjs → BZPFwMExRpOalMQM.cjs} +2 -2
- package/build/browser/cjs/{CtBikymnhpcCzP3X.cjs → B_Wj9o1UTwreQPbK.cjs} +1 -1
- package/build/browser/cjs/{DfNbgyjaLMn81dqP.cjs → BaHquayFJjfNegtH.cjs} +2 -2
- package/build/browser/cjs/{DcYrNx0uy99yQNMl.cjs → Bf2UbMI-zr70AvYv.cjs} +4 -4
- package/build/browser/cjs/{Bl6FyLoMkFiQqhvc.cjs → C1GbcCANO-wC1_z8.cjs} +2 -2
- package/build/browser/cjs/{CVTydWBioXRZeoNf.cjs → C3dbmKd-tge7E3Tr.cjs} +1 -1
- package/build/browser/cjs/{COCpf8tSdkj2O19V.cjs → C8h5hBokVvnuhfAL.cjs} +4 -4
- package/build/browser/cjs/{xgGpGg5b8fu3GAnL.cjs → C9AYZwTK6rkZuQci.cjs} +5 -5
- package/build/browser/cjs/{DeR9YbwO2xDBKVWN.cjs → CBALpF0_Ang08Nsc.cjs} +3 -3
- package/build/browser/cjs/{S1S-AvD0w8s-LV8O.cjs → CCc_Vf5OSxkKdsWS.cjs} +1 -1
- package/build/browser/cjs/{DMKZDMHHXLePvLy3.cjs → CNeotTqitwaags5i.cjs} +22 -22
- package/build/browser/cjs/{Bsyzteo6tD31A45e.cjs → CQdG4247A-pxOed8.cjs} +2 -2
- package/build/browser/cjs/{xM54FRmGddZFVTTI.cjs → CWL7gFpUv6k_mMnL.cjs} +1 -1
- package/build/browser/cjs/{BS_QXQWoKRl_7MiR.cjs → CXhH5JUk86fvi5GP.cjs} +3 -3
- package/build/browser/cjs/{bnPgbgGBTq7DESzd.cjs → CmS4RT0jyQbobgWb.cjs} +1 -1
- package/build/browser/cjs/{D-vkFAlNHXwUvmUT.cjs → Cq0pW525XN-xlgDg.cjs} +4 -4
- package/build/browser/cjs/{mPpQR06-jf99r2jM.cjs → CtL-DU1m3lrYomka.cjs} +1 -1
- package/build/browser/cjs/{87m5i_TKPbDn6tke.cjs → CwTO6v6v9-BXZZv-.cjs} +4 -4
- package/build/browser/cjs/{dke2gbIUS44QXwEl.cjs → D4I5tbgh8F5O_J_h.cjs} +1 -1
- package/build/browser/cjs/{BfNo_1u55uW2HhAa.cjs → D9kZMEdooD8UZqEL.cjs} +1 -1
- package/build/browser/cjs/{B0L2YQ9agsyHWOu2.cjs → D9nB0Q7tKgdhsN2m.cjs} +1 -1
- package/build/browser/cjs/{C0AP85yKTJU5XzPW.cjs → DFZ3BGZEFLv1UyAV.cjs} +2 -2
- package/build/browser/cjs/{Dy28YI90qj65PHFO.cjs → DJJ1jz7Quj4RuVCe.cjs} +6 -6
- package/build/browser/cjs/{CaNR-X0TWW9OF1S0.cjs → DN47xWvvImX6lqdf.cjs} +6 -6
- package/build/browser/cjs/{BxBOlXY9P3Ymi6oT.cjs → DShx7ik2COl1AAUj.cjs} +2 -2
- package/build/browser/cjs/{1q6_3-jGNZllbF3R.cjs → DXIY-LD7F31nCUi-.cjs} +1 -1
- package/build/browser/cjs/{DP8biA0GQqyPKLyq.cjs → DiveT8pDQdBdhBSI.cjs} +2 -2
- package/build/browser/cjs/{B_c3i0fXSlX7dH12.cjs → Dm3-ifoFNSiztsnQ.cjs} +7 -7
- package/build/browser/cjs/{BG0RxkPyZY6Be7Lk.cjs → F7ClXLBS5JwT7fsG.cjs} +1 -1
- package/build/browser/cjs/{CB3jEtNo5ZsjfE5p.cjs → FBSxfR2pHUIT5Rgc.cjs} +1 -1
- package/build/browser/cjs/{D2OU29-ZPOAWFVJB.cjs → JI2vC5igv_cvwt6G.cjs} +3 -3
- package/build/browser/cjs/{DirazCTz5IsFWrUv.cjs → MMa8B74YAQBJpE4u.cjs} +4 -4
- package/build/browser/cjs/{Btzizuqo7zQ_grdS.cjs → Q5bqWWnotJdHnpRC.cjs} +5 -5
- package/build/browser/cjs/{CiySKEsfDr8XnkZh.cjs → QG3X4P4FufAK62SF.cjs} +1 -1
- package/build/browser/cjs/{B3HvYH5kqySWdJ0f.cjs → RteOOIhjMndJEb66.cjs} +1 -1
- package/build/browser/cjs/{BZPhmHWsFBTIA3BQ.cjs → S_UgLZEcdtWH5kMu.cjs} +3 -3
- package/build/browser/cjs/{BJsJYwvFiJBFxTov.cjs → XB8HD5RFScajtPgt.cjs} +1 -1
- package/build/browser/cjs/{DFX31uXp449or-Xs.cjs → Y_3Ed2kxpXKkq67D.cjs} +1 -1
- package/build/browser/cjs/{d9tJGmGw-3KZjpAx.cjs → _pNyp6nBQDb2cLKI.cjs} +5 -5
- package/build/browser/cjs/index.cjs +2 -2
- package/build/browser/cjs/{CTV1KRGhkieiY4Rf.cjs → mtill7krmuPWGSzy.cjs} +2 -2
- package/build/browser/cjs/{Nkl33Tt1_oEy9kjk.cjs → qF9FjOMh4-MF_YIi.cjs} +1 -1
- package/build/browser/cjs/{5KDindu3wyLVvG7F.cjs → ro2NoHFJdhx3xSbY.cjs} +2 -2
- package/build/browser/cjs/{C0Pjx18ua-OCdtpy.cjs → tXH_0s3xLrgKPUbJ.cjs} +1 -1
- package/build/browser/cjs/{wq0Sm3fu9rxt43OK.cjs → uDN7aw0jMJWP9XCb.cjs} +1 -1
- package/build/browser/esm/{3RX6dP_O-47yXKHQ.mjs → 0_UIlJkLgKIa-TbC.mjs} +8 -8
- package/build/{cdn/assets/Dgw3FTbNKuo2CIxP.js → browser/esm/1lz1liwAGwbXOOLv.mjs} +3 -3
- package/build/browser/esm/{DP7HVKT0w_4L2vMQ.mjs → 2QmVgmXHMH57LGOq.mjs} +6 -6
- package/build/browser/esm/{BE4io65W825i_dzC.mjs → 4iHzVHNoL2D4vyVq.mjs} +6 -6
- package/build/{cdn/assets/YOEDF-U1QTzbXeMV.js → browser/esm/6hhB-Xgw4Ww3doNw.mjs} +3 -3
- package/build/browser/esm/{Dxl4WJXcEhDAw_yE.mjs → 6nmUII40wYZfPb85.mjs} +4 -4
- package/build/browser/esm/{a3tuiJ83MwzLMWaL.mjs → 7Jd3esNO0WZKip05.mjs} +3 -3
- package/build/browser/esm/{BaSzK17p3_gCvNVV.mjs → AoiNsuZgE1lTZCgn.mjs} +3 -3
- package/build/{cdn/assets/BSS_RvWzDRX8_EJd.js → browser/esm/B-T9SkjciknOlNdP.mjs} +3 -3
- package/build/browser/esm/{BOiR2dTlvcgYjz8P.mjs → B0mJ-wm6qJNw5THV.mjs} +3 -3
- package/build/browser/esm/{DJjdfX9aUyVGMkri.mjs → B3KXQSev8W9uQWFd.mjs} +5 -5
- package/build/browser/esm/{C-jC-wgAoMOxrVvv.mjs → B7P8jz7nwd6tZf76.mjs} +3 -3
- package/build/browser/esm/{Do7pHqmnwO45_ymt.mjs → B9tpnXZONqRasy9s.mjs} +3 -3
- package/build/{cdn/assets/BlfHOASL_bJ6Hy0y.js → browser/esm/BLrFWWY2XIqAciWn.mjs} +4 -4
- package/build/browser/esm/{CU55zbw8Xbwap6Tl.mjs → BLwCGuBeiGm2R78U.mjs} +3 -3
- package/build/{cdn/assets/B3oMCEEls1lRVrGd.js → browser/esm/BO5l3tKUCGECUSRm.mjs} +4 -4
- package/build/{cdn/assets/BAjCWyggrIkCz6wr.js → browser/esm/BZ3y1WNiIx2nGUi7.mjs} +3 -3
- package/build/{cdn/assets/DUUO52IRQCve_iCM.js → browser/esm/BcLkjkILKHbnB6Cf.mjs} +4 -4
- package/build/browser/esm/{VLa1cYMb7h6UD253.mjs → Bs0s8MLV-28m39aP.mjs} +3 -3
- package/build/{cdn/assets/BdtlmF31h4Y7RgUj.js → browser/esm/BuEJtBmm37l3GDEJ.mjs} +3 -3
- package/build/{cdn/assets/BJIsFTUdHtUKsFJs.js → browser/esm/C0qicxq27xw3DMnw.mjs} +3 -3
- package/build/{cdn/assets/BEZ41ST3hkC4W-_9.js → browser/esm/C3A6NS0ZTJ1kIacA.mjs} +3 -3
- package/build/{cdn/assets/fWcbv7BXhriCYeod.js → browser/esm/CB3vxAczuZ9zcUys.mjs} +4 -4
- package/build/browser/esm/{Be3zRnYQ13HUcsRW.mjs → CYZ0Bd-krSh4Ehtk.mjs} +3 -3
- package/build/browser/esm/{DIA-Gy5mdjefjUaA.mjs → CiPpj9tqldXB-M5m.mjs} +3 -3
- package/build/browser/esm/{CWRCdxOg103AFis3.mjs → CiYL-nii2C1oJYrq.mjs} +5 -5
- package/build/browser/esm/{D-Oj36iQScXAKSMA.mjs → CpEY13aOOxZOJZWy.mjs} +4 -4
- package/build/browser/esm/{Ds8V__cRAClpmjZn.mjs → CsLkejpLdvWO4UuG.mjs} +5 -5
- package/build/browser/esm/{DtpBQqwK7XXBMTB-.mjs → CtJjQcC_e5H5cez-.mjs} +7 -7
- package/build/{cdn/assets/DToiYU1jffn1g7TH.js → browser/esm/CuvImPSUnQLYXpor.mjs} +2 -2
- package/build/browser/esm/{BRkMPyIUXMixnL8d.mjs → Cx_EOUWZ1t8ZAE6U.mjs} +3 -3
- package/build/browser/esm/{NBkvFJzfLU32Pkup.mjs → CxxZFtcuL5sGdPq1.mjs} +8 -8
- package/build/browser/esm/{CpJdzwQYkBw7IPnN.mjs → Cy_GZmHxsiX_o6Y0.mjs} +3 -3
- package/build/{cdn/assets/D2pceTwrS_dagByu.js → browser/esm/D3v-6yZ4HMH6a_4f.mjs} +2 -2
- package/build/{cdn/assets/BXC9rQVV2gq5x8br.js → browser/esm/D7gV2IqE-jQUebJc.mjs} +3 -3
- package/build/browser/esm/{1Jl9rrRJdbPsUP_1.mjs → DAbzD5w6qN4DqEMY.mjs} +3 -3
- package/build/{cdn/assets/DARyg_kqL8Eu81Fa.js → browser/esm/DCFYQGMmPVYMFutD.mjs} +4 -4
- package/build/browser/esm/{D8HF2X8hvAkV29oq.mjs → DI4EjUZQvA0OfDCY.mjs} +3 -3
- package/build/{cdn/assets/C32FpMEFLbDnBtO3.js → browser/esm/DJjjAm6rlIEo4dkf.mjs} +3 -3
- package/build/browser/esm/{k9kWmEk0ZT8y9Gii.mjs → DUAV3BUbyH3eR2rZ.mjs} +25 -25
- package/build/browser/esm/{DMWb8cCaNVRcm-tT.mjs → DWSOvwUoTEWXrRjW.mjs} +3 -3
- package/build/{cdn/assets/DCauh523moR7slpq.js → browser/esm/DfG6mmy0aA8xSoNY.mjs} +3 -3
- package/build/{cdn/assets/CtZxtE4tRmMGFT5o.js → browser/esm/DjrE7ntIuoFjiPyF.mjs} +3 -3
- package/build/{cdn/assets/BKkD05hqNTBap4Oc.js → browser/esm/DmIHXFOcatR5poc1.mjs} +3 -3
- package/build/{cdn/assets/DMwOymY267-LxmJ_.js → browser/esm/DriZ182FFsKM66eU.mjs} +3 -3
- package/build/browser/esm/{BOjAZRs_NVerYv4t.mjs → DxtrO_bSti22nBZr.mjs} +3 -3
- package/build/{cdn/assets/C9uN8RnLjnGSimTA.js → browser/esm/Gjxw6e6fe9WpZpqg.mjs} +3 -3
- package/build/browser/esm/{C0Lw5hMgKbooA6Jl.mjs → Grp8KdYY9pux9kmC.mjs} +3 -3
- package/build/browser/esm/{DqvZDTDIyX-qv4r9.mjs → Ly1QkOkwuSLgNDyc.mjs} +3 -3
- package/build/browser/esm/{SrBQAOpMKiDW0mGB.mjs → OszwIXMXSuUg9kIS.mjs} +3 -3
- package/build/{cdn/assets/DgSuz0WKGy36a2cp.js → browser/esm/Ppkk8bfI6LCfo6z9.mjs} +3 -3
- package/build/browser/esm/{DnV_Y9xoMPSav0-o.mjs → Wn7sZvl1uWpJfWDw.mjs} +3 -3
- package/build/browser/esm/{ai2Jw3PRL29E1T8h.mjs → eRhNgPAAZZHP-Equ.mjs} +3 -3
- package/build/browser/esm/index.mjs +2 -2
- package/build/{cdn/assets/BYmMkbrRTsNuR3aY.js → browser/esm/j5GLK6Binl4WgUyF.mjs} +3 -3
- package/build/browser/esm/{CprFmxuwGvaUtLG2.mjs → pB7u_n2qbyg4LPYI.mjs} +3 -3
- package/build/{cdn/assets/5F5MTh8R-sIiPq0h.js → browser/esm/tJ_jlIBv2tIGco16.mjs} +3 -3
- package/build/browser/esm/{CB0UHheTgg0735hj.mjs → tfEy4MM3Ho2adDyk.mjs} +3 -3
- package/build/browser/esm/{DuzJ1k0LbZ29l8oN.mjs → zZp0K6NrGfCzAT5C.mjs} +6 -6
- package/build/cdn/assets/{BbpmcI-KEp3PqrdL.js → 0JAjOa552ws71DCq.js} +8 -8
- package/build/{browser/esm/Dgw3FTbNKuo2CIxP.mjs → cdn/assets/1lz1liwAGwbXOOLv.js} +3 -3
- package/build/{browser/esm/YOEDF-U1QTzbXeMV.mjs → cdn/assets/6hhB-Xgw4Ww3doNw.js} +3 -3
- package/build/cdn/assets/{Dxl4WJXcEhDAw_yE.js → 6nmUII40wYZfPb85.js} +4 -4
- package/build/cdn/assets/{a3tuiJ83MwzLMWaL.js → 7Jd3esNO0WZKip05.js} +3 -3
- package/build/cdn/assets/{BaSzK17p3_gCvNVV.js → AoiNsuZgE1lTZCgn.js} +3 -3
- package/build/{browser/esm/BSS_RvWzDRX8_EJd.mjs → cdn/assets/B-T9SkjciknOlNdP.js} +3 -3
- package/build/cdn/assets/{B4QYfmNd300iFLAx.js → B-xPA1iq8nYLVg9o.js} +6 -6
- package/build/cdn/assets/{BOiR2dTlvcgYjz8P.js → B0mJ-wm6qJNw5THV.js} +3 -3
- package/build/cdn/assets/{D06aHumWZLILF489.js → B60Tk02RYmI7MfnV.js} +5 -5
- package/build/cdn/assets/{C-jC-wgAoMOxrVvv.js → B7P8jz7nwd6tZf76.js} +3 -3
- package/build/cdn/assets/{Do7pHqmnwO45_ymt.js → B9tpnXZONqRasy9s.js} +3 -3
- package/build/{browser/esm/BlfHOASL_bJ6Hy0y.mjs → cdn/assets/BLrFWWY2XIqAciWn.js} +4 -4
- package/build/cdn/assets/{CU55zbw8Xbwap6Tl.js → BLwCGuBeiGm2R78U.js} +3 -3
- package/build/{browser/esm/B7odLLxNfEmKGWX6.mjs → cdn/assets/BN66xGn_YfZ-2_Cf.js} +3 -3
- package/build/{browser/esm/BAjCWyggrIkCz6wr.mjs → cdn/assets/BZ3y1WNiIx2nGUi7.js} +3 -3
- package/build/cdn/assets/{BjgtkLR9U00HgSRn.js → Be8NIN6bwvOmOSLA.js} +6 -6
- package/build/{browser/esm/BdtlmF31h4Y7RgUj.mjs → cdn/assets/BuEJtBmm37l3GDEJ.js} +3 -3
- package/build/cdn/assets/{4u46flV9M6Bwb7d3.js → BzbzNUMv3s_r-5Op.js} +3 -3
- package/build/{browser/esm/BEZ41ST3hkC4W-_9.mjs → cdn/assets/C3A6NS0ZTJ1kIacA.js} +3 -3
- package/build/cdn/assets/{CkhSGQneqlTRflfQ.js → CE75ki7_7SoSGVN9.js} +5 -5
- package/build/cdn/assets/{BY2sO3ExW1ShzKnX.js → CEfQEBQ5LMd-qcvD.js} +5 -5
- package/build/cdn/assets/{W3SqjN4yIzwYTvvj.js → C_a3P_3P-60GObvQ.js} +3 -3
- package/build/cdn/assets/{DLHK1pMyNN3B2g-j.js → CiEnYhdqkcsUBwoC.js} +3 -3
- package/build/cdn/assets/{DIA-Gy5mdjefjUaA.js → CiPpj9tqldXB-M5m.js} +3 -3
- package/build/{browser/esm/B3_l6_TLa9ImyRmW.mjs → cdn/assets/ClmwaZtL-GDDJje8.js} +4 -4
- package/build/cdn/assets/{CvbyGDitUPabmYBl.js → Co5jWEdqy7WdCNy5.js} +3 -3
- package/build/{browser/esm/DToiYU1jffn1g7TH.mjs → cdn/assets/CuvImPSUnQLYXpor.js} +2 -2
- package/build/cdn/assets/{BRkMPyIUXMixnL8d.js → Cx_EOUWZ1t8ZAE6U.js} +3 -3
- package/build/cdn/assets/{CpJdzwQYkBw7IPnN.js → Cy_GZmHxsiX_o6Y0.js} +3 -3
- package/build/cdn/assets/{DMoEzt3UKZedfext.js → D3fhYPkbfhJSOIN6.js} +7 -7
- package/build/{browser/esm/BXC9rQVV2gq5x8br.mjs → cdn/assets/D7gV2IqE-jQUebJc.js} +3 -3
- package/build/cdn/assets/{1Jl9rrRJdbPsUP_1.js → DAbzD5w6qN4DqEMY.js} +3 -3
- package/build/{browser/esm/DtQdtXJDZgNEIz9d.mjs → cdn/assets/DBU_XLXJGx5MrviK.js} +4 -4
- package/build/{browser/esm/C32FpMEFLbDnBtO3.mjs → cdn/assets/DJjjAm6rlIEo4dkf.js} +3 -3
- package/build/{browser/esm/D2yyUr4KbJEFsxKC.mjs → cdn/assets/DKA-z6IxN-ocH9F6.js} +2 -2
- package/build/{browser/esm/BiSk8LRROMF0Bl4-.mjs → cdn/assets/DKlQKNesK9ZT5W5L.js} +4 -4
- package/build/cdn/assets/{C_L_pvQemfhI00iS.js → DMqyiEuKyEr3Cj77.js} +3 -3
- package/build/cdn/assets/{CLdcRW7BQK3JCguC.js → DSiWF1HJiVUXOUY0.js} +24 -24
- package/build/{browser/esm/ajBoEmoL9hCBQYYm.mjs → cdn/assets/DXZd95jjH8Zq8Lod.js} +4 -4
- package/build/cdn/assets/{D4ZBjoUG2QO1RO3t.js → D_SXctmqnTCDQQHa.js} +8 -8
- package/build/{browser/esm/DCauh523moR7slpq.mjs → cdn/assets/DfG6mmy0aA8xSoNY.js} +3 -3
- package/build/{browser/esm/CtZxtE4tRmMGFT5o.mjs → cdn/assets/DjrE7ntIuoFjiPyF.js} +3 -3
- package/build/{browser/esm/BKkD05hqNTBap4Oc.mjs → cdn/assets/DmIHXFOcatR5poc1.js} +3 -3
- package/build/cdn/assets/{QXzPuadwi3BBJC2-.js → DtmXkuANyuR-k_xU.js} +4 -4
- package/build/cdn/assets/{BOjAZRs_NVerYv4t.js → DxtrO_bSti22nBZr.js} +3 -3
- package/build/{browser/esm/C9uN8RnLjnGSimTA.mjs → cdn/assets/Gjxw6e6fe9WpZpqg.js} +3 -3
- package/build/cdn/assets/{C0Lw5hMgKbooA6Jl.js → Grp8KdYY9pux9kmC.js} +3 -3
- package/build/cdn/assets/{SrBQAOpMKiDW0mGB.js → OszwIXMXSuUg9kIS.js} +3 -3
- package/build/{browser/esm/DgSuz0WKGy36a2cp.mjs → cdn/assets/Ppkk8bfI6LCfo6z9.js} +3 -3
- package/build/{browser/esm/LblYfFi1ns9H1ueN.mjs → cdn/assets/Rxd1yGUf8y8PBHbK.js} +3 -3
- package/build/cdn/assets/{BPFW3UexkNNh1lLK.js → XJOpXwbzYjw1Bvi0.js} +3 -3
- package/build/cdn/assets/{C7CDwp-nhN2WFzUs.js → b2WGqGhLBaP7QwAG.js} +6 -6
- package/build/cdn/assets/{ai2Jw3PRL29E1T8h.js → eRhNgPAAZZHP-Equ.js} +3 -3
- package/build/cdn/assets/{CEq_C1Sim0pQ6fj0.js → finUuZ0_ZCeBDN61.js} +3 -3
- package/build/{browser/esm/BYmMkbrRTsNuR3aY.mjs → cdn/assets/j5GLK6Binl4WgUyF.js} +3 -3
- package/build/cdn/assets/{CprFmxuwGvaUtLG2.js → pB7u_n2qbyg4LPYI.js} +3 -3
- package/build/{browser/esm/5F5MTh8R-sIiPq0h.mjs → cdn/assets/tJ_jlIBv2tIGco16.js} +3 -3
- package/build/cdn/index.js +2 -2
- package/build/cdn/loader.js +1 -1
- package/build/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*//**
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.1.119
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.1.119
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
11
|
*//**
|
|
12
|
-
* @license @sheetxl/react -
|
|
12
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.1.119
|
|
13
13
|
*
|
|
14
14
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
15
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./CNeotTqitwaags5i.cjs"),g=require("./C9AYZwTK6rkZuQci.cjs");/**
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.1.119
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
11
|
*//**
|
|
12
|
-
* @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.
|
|
12
|
+
* @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.1.119
|
|
13
13
|
*
|
|
14
14
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
15
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./CNeotTqitwaags5i.cjs");/**
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.1.119
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
11
|
*//**
|
|
12
|
-
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.
|
|
12
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.1.119
|
|
13
13
|
*
|
|
14
14
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
15
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./Dm3-ifoFNSiztsnQ.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(e){throw console.error("Failed to compile using worker:",e),e}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/const m=require("react/jsx-runtime"),l=require("react"),r=require("./
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
6
|
+
*/const m=require("react/jsx-runtime"),l=require("react"),r=require("./CNeotTqitwaags5i.cjs"),Wt=require("react-dom");function Rt(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return o.default=e,Object.freeze(o)}const de=Rt(l);function Pt(e){return r.generateUtilityClass("MuiCollapse",e)}r.generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ft=r.styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,o[i.orientation],i.state==="entered"&&o.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&o.hidden]}})(r.memoTheme(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Nt=r.styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,o)=>o.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),It=r.styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,o)=>o.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Fe=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCollapse"}),{addEndListener:t,children:n,className:a,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:x,onExit:v,onExited:y,onExiting:b,orientation:w="vertical",style:k,timeout:h=r.duration.standard,TransitionComponent:M=r.Transition,...E}=i,N={...i,orientation:w,collapsedSize:s},L=(j=>{const{orientation:W,classes:K}=j,J={root:["root",`${W}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${W}`],wrapperInner:["wrapperInner",`${W}`]};return r.composeClasses(J,Pt,K)})(N),H=r.useTheme(),_=r.useTimeout(),P=de.useRef(null),z=de.useRef(),$=typeof s=="number"?`${s}px`:s,Q=w==="horizontal",I=Q?"width":"height",te=de.useRef(null),F=r.useForkRef(o,te),S=j=>W=>{if(j){const K=te.current;W===void 0?j(K):j(K,W)}},T=()=>P.current?P.current[Q?"clientWidth":"clientHeight"]:0,A=S((j,W)=>{P.current&&Q&&(P.current.style.position="absolute"),j.style[I]=$,p&&p(j,W)}),D=S((j,W)=>{const K=T();P.current&&Q&&(P.current.style.position="");const{duration:J,easing:ae}=r.getTransitionProps({style:k,timeout:h,easing:c},{mode:"enter"});if(h==="auto"){const ne=H.transitions.getAutoHeightDuration(K);j.style.transitionDuration=`${ne}ms`,z.current=ne}else j.style.transitionDuration=typeof J=="string"?J:`${J}ms`;j.style[I]=`${K}px`,j.style.transitionTimingFunction=ae,x&&x(j,W)}),X=S((j,W)=>{j.style[I]="auto",f&&f(j,W)}),B=S(j=>{j.style[I]=`${T()}px`,v&&v(j)}),Y=S(y),q=S(j=>{const W=T(),{duration:K,easing:J}=r.getTransitionProps({style:k,timeout:h,easing:c},{mode:"exit"});if(h==="auto"){const ae=H.transitions.getAutoHeightDuration(W);j.style.transitionDuration=`${ae}ms`,z.current=ae}else j.style.transitionDuration=typeof K=="string"?K:`${K}ms`;j.style[I]=$,j.style.transitionTimingFunction=J,b&&b(j)});return m.jsx(M,{in:d,onEnter:A,onEntered:X,onEntering:D,onExit:B,onExited:Y,onExiting:q,addEndListener:j=>{h==="auto"&&_.start(z.current||0,j),t&&t(te.current,j)},nodeRef:te,timeout:h==="auto"?null:h,...E,children:(j,{ownerState:W,...K})=>m.jsx(Ft,{as:u,className:r.clsx(L.root,a,{entered:L.entered,exited:!d&&$==="0px"&&L.hidden}[j]),style:{[Q?"minWidth":"minHeight"]:$,...k},ref:F,ownerState:{...N,state:j},...K,children:m.jsx(Nt,{ownerState:{...N,state:j},className:L.wrapper,ref:P,children:m.jsx(It,{ownerState:{...N,state:j},className:L.wrapperInner,children:n})})})})});function At(e){return r.generateUtilityClass("MuiCard",e)}Fe&&(Fe.muiSupportAuto=!0),r.generateUtilityClasses("MuiCard",["root"]);const Ht=r.styled(r.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})({overflow:"hidden"}),qt=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCard"}),{className:t,raised:n=!1,...a}=i,s={...i,raised:n},u=(c=>{const{classes:d}=c;return r.composeClasses({root:["root"]},At,d)})(s);return m.jsx(Ht,{className:r.clsx(u.root,t),elevation:n?8:void 0,ref:o,ownerState:s,...a})});function zt(e){return r.generateUtilityClass("MuiCardActions",e)}r.generateUtilityClasses("MuiCardActions",["root","spacing"]);const Bt=r.styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,!i.disableSpacing&&o.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),_t=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCardActions"}),{disableSpacing:t=!1,className:n,...a}=i,s={...i,disableSpacing:t},u=(c=>{const{classes:d,disableSpacing:p}=c,f={root:["root",!p&&"spacing"]};return r.composeClasses(f,zt,d)})(s);return m.jsx(Bt,{className:r.clsx(u.root,n),ownerState:s,ref:o,...a})}),Ue=typeof r.globalCss({})=="function",Xt=(e,o)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...o&&!e.vars&&{colorScheme:e.palette.mode}}),Kt=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),et=(e,o=!1)=>{const i={};o&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const u=e.getColorSchemeSelector(a);u.startsWith("@")?i[u]={":root":{colorScheme:s.palette?.mode}}:i[u.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let t={html:Xt(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Kt(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const n=e.components?.MuiCssBaseline?.styleOverrides;return n&&(t=[t,n]),t},Re="mui-ecs",Vt=r.globalCss(Ue?({theme:e,enableColorScheme:o})=>et(e,o):({theme:e})=>(o=>{const i=et(o,!1),t=Array.isArray(i)?i[0]:i;return!o.vars&&t&&(t.html[`:root:has(${Re})`]={colorScheme:o.palette.mode}),o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([n,a])=>{const s=o.getColorSchemeSelector(n);s.startsWith("@")?t[s]={[`:root:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}:t[s.replace(/\s*&/,"")]={[`&:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}}),i})(e));function Ut(e){const o=r.useDefaultProps({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:t=!1}=o;return m.jsxs(de.Fragment,{children:[Ue&&m.jsx(Vt,{enableColorScheme:t}),!Ue&&!t&&m.jsx("span",{className:Re,style:{display:"none"}}),i]})}const $t=r.createSvgIcon(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),Gt=l.createContext(null),qe={didCatch:!1,error:null};/**
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.1.119
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
|
-
*/class Zt extends l.Component{constructor(o){super(o),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qe}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}resetErrorBoundary(){const{error:o}=this.state;if(o!==null){for(var i,t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(i=(t=this.props).onReset)===null||i===void 0||i.call(t,{args:a,reason:"imperative-api"}),this.setState(qe)}}componentDidCatch(o,i){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,o,i)}componentDidUpdate(o,i){const{didCatch:t}=this.state,{resetKeys:n}=this.props;var a,s;t&&i.error!==null&&function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return u.length!==c.length||u.some((d,p)=>!Object.is(d,c[p]))}(o.resetKeys,n)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:n,prev:o.resetKeys,reason:"keys"}),this.setState(qe))}render(){const{children:o,fallbackRender:i,FallbackComponent:t,fallback:n}=this.props,{didCatch:a,error:s}=this.state;let u=o;if(a){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")u=i(c);else if(t)u=l.createElement(t,c);else{if(n===void 0)throw s;u=n}}return l.createElement(Gt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function ft(e){var o,i,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(i=ft(e[o]))&&(t&&(t+=" "),t+=i);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function ie(){for(var e,o,i=0,t="";i<arguments.length;)(e=arguments[i++])&&(o=ft(e))&&(t&&(t+=" "),t+=o);return t}let Yt={data:""},Qt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Jt=/\/\*[^]*?\*\/| +/g,tt=/\n+/g,ue=(e,o)=>{let i="",t="",n="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?i=a+" "+s+";":t+=a[1]=="f"?ue(s,a):a+"{"+ue(s,a[1]=="k"?"":o)+"}":typeof s=="object"?t+=ue(s,o?o.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,u):u?u+" "+c:c)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ue.p?ue.p(a,s):a+":"+s+";")}return i+(o&&n?o+"{"+n+"}":n)+t},oe={},ht=e=>{if(typeof e=="object"){let o="";for(let i in e)o+=i+ht(e[i]);return o}return e};function $e(e){let o=this||{},i=e.call?e(o.p):e;return((s,u,c,d,p)=>{let f=ht(s),x=oe[f]||(oe[f]=(h=>{let T=0,E=11;for(;T<h.length;)E=101*E+h.charCodeAt(T++)>>>0;return"go"+E})(f));if(!oe[x]){let h=f!==s?s:(T=>{let E,N,L=[{}];for(;E=Qt.exec(T.replace(Jt,""));)E[4]?L.shift():E[3]?(N=E[3].replace(tt," ").trim(),L.unshift(L[0][N]=L[0][N]||{})):L[0][E[1]]=E[2].replace(tt," ").trim();return L[0]})(s);oe[x]=ue(p?{["@keyframes "+x]:h}:h,c?"":"."+x)}let v=c&&oe.g?oe.g:null;return c&&(oe.g=oe[x]),y=oe[x],b=u,w=d,(k=v)?b.data=b.data.replace(k,y):b.data.indexOf(y)===-1&&(b.data=w?y+b.data:b.data+y),x;var y,b,w,k})(i.unshift?i.raw?(t=i,n=[].slice.call(arguments,1),a=o.p,t.reduce((s,u,c)=>{let d=n[c];if(d&&d.call){let p=d(a),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;d=f?"."+f:p&&typeof p=="object"?p.props?"":ue(p,""):p===!1?"":p}return s+u+(d??"")},"")):i.reduce((s,u)=>Object.assign(s,u&&u.call?u(o.p):u),{}):i,(s=>typeof window=="object"?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||Yt)(o.target),o.g,o.o,o.k);var t,n,a}function gt(e,o,i){return o&&function(t,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(e.prototype,o),e}function O(){return O=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},O.apply(this,arguments)}function kt(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function Ce(e,o){if(e==null)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)i=a[t],o.indexOf(i)>=0||(n[i]=e[i]);return n}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}$e.bind({g:1}),$e.bind({k:1});var ot=function(){return""},bt=l.createContext({enqueueSnackbar:ot,closeSnackbar:ot}),ze="@media (max-width:599.95px)",Pe="@media (min-width:600px)",rt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ze=function(e){return""+rt(e.vertical)+rt(e.horizontal)},je=function(e){return!!e||e===0},Me="unmounted",pe="exited",me="entering",xe="entered",it="exiting",Ye=function(e){function o(t){var n;n=e.call(this,t)||this;var a,s=t.appear;return n.appearStatus=null,t.in?s?(a=pe,n.appearStatus=me):a=xe:a=t.unmountOnExit||t.mountOnEnter?Me:pe,n.state={status:a},n.nextCallback=null,n}kt(o,e),o.getDerivedStateFromProps=function(t,n){return t.in&&n.status===Me?{status:pe}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(t){var n=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==me&&a!==xe&&(n=me):a!==me&&a!==xe||(n=it)}this.updateStatus(!1,n)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var t=this.props.timeout,n=t,a=t;return t!=null&&typeof t!="number"&&typeof t!="string"&&(a=t.exit,n=t.enter),{exit:a,enter:n}},i.updateStatus=function(t,n){t===void 0&&(t=!1),n!==null?(this.cancelNextCallback(),n===me?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===pe&&this.setState({status:Me})},i.performEnter=function(t){var n=this,a=this.props.enter,s=t,u=this.getTimeouts();t||a?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:me},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(u.enter,function(){n.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},i.performExit=function(){var t=this,n=this.props.exit,a=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:it},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})})})):this.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})},i.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},i.setNextCallback=function(t){var n=this,a=!0;return this.nextCallback=function(){a&&(a=!1,n.nextCallback=null,t())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var a=t==null&&!this.props.addEndListener;this.node&&!a?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),t!=null&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Me)return null;var n=this.props;return(0,n.children)(t,Ce(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},gt(o,[{key:"node",get:function(){var t,n=(t=this.props.nodeRef)===null||t===void 0?void 0:t.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),o}(l.Component);function fe(){}function at(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Ge(e,o){return l.useMemo(function(){return e==null&&o==null?null:function(i){at(e,i),at(o,i)}},[e,o])}function Ne(e){var o=e.timeout,i=e.style,t=i===void 0?{}:i,n=e.mode;return{duration:typeof o=="object"?o[n]||0:o,easing:t.transitionTimingFunction,delay:t.transitionDelay}}Ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fe,onEntering:fe,onEntered:fe,onExit:fe,onExiting:fe,onExited:fe};var xt=function(e){e.scrollTop=e.scrollTop},st=function(e){return Math.round(e)+"ms"};function he(e,o){e===void 0&&(e=["all"]);var i=o||{},t=i.duration,n=t===void 0?300:t,a=i.easing,s=a===void 0?"cubic-bezier(0.4, 0, 0.2, 1)":a,u=i.delay,c=u===void 0?0:u;return(Array.isArray(e)?e:[e]).map(function(d){var p=typeof n=="string"?n:st(n),f=typeof c=="string"?c:st(c);return d+" "+p+" "+s+" "+f}).join(",")}function yt(e){var o;return((o=e)&&o.ownerDocument||document).defaultView||window}function Te(e,o){if(o){var i=function(t,n){var a,s=n.getBoundingClientRect(),u=yt(n);if(n.fakeTransform)a=n.fakeTransform;else{var c=u.getComputedStyle(n);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var d=0,p=0;if(a&&a!=="none"&&typeof a=="string"){var f=a.split("(")[1].split(")")[0].split(",");d=parseInt(f[4],10),p=parseInt(f[5],10)}switch(t){case"left":return"translateX("+(u.innerWidth+d-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-d)+"px)";case"up":return"translateY("+(u.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(e,o);i&&(o.style.webkitTransform=i,o.style.transform=i)}}var wt=l.forwardRef(function(e,o){var i=e.children,t=e.direction,n=t===void 0?"down":t,a=e.in,s=e.style,u=e.timeout,c=u===void 0?0:u,d=e.onEnter,p=e.onEntered,f=e.onExit,x=e.onExited,v=Ce(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=l.useRef(null),b=Ge(i.ref,y),w=Ge(b,o),k=l.useCallback(function(){y.current&&Te(n,y.current)},[n]);return l.useEffect(function(){if(!a&&n!=="down"&&n!=="right"){var h=function(E,N){var L;function H(){for(var _=this,P=arguments.length,z=new Array(P),$=0;$<P;$++)z[$]=arguments[$];clearTimeout(L),L=setTimeout(function(){E.apply(_,z)},N)}return N===void 0&&(N=166),H.clear=function(){clearTimeout(L)},H}(function(){y.current&&Te(n,y.current)}),T=yt(y.current);return T.addEventListener("resize",h),function(){h.clear(),T.removeEventListener("resize",h)}}},[n,a]),l.useEffect(function(){a||k()},[a,k]),l.createElement(Ye,Object.assign({appear:!0,nodeRef:y,onEnter:function(h,T){Te(n,h),xt(h),d&&d(h,T)},onEntered:p,onEntering:function(h){var T=Ne({timeout:c,mode:"enter",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.0, 0, 0.2, 1)"})});h.style.webkitTransition=he("-webkit-transform",T),h.style.transition=he("transform",T),h.style.webkitTransform="none",h.style.transform="none"},onExit:function(h){var T=Ne({timeout:c,mode:"exit",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.4, 0, 0.6, 1)"})});h.style.webkitTransition=he("-webkit-transform",T),h.style.transition=he("transform",T),Te(n,h),f&&f(h)},onExited:function(h){h.style.webkitTransition="",h.style.transition="",x&&x(h)},in:a,timeout:c},v),function(h,T){return l.cloneElement(i,O({ref:w,style:O({visibility:h!=="exited"||a?void 0:"hidden"},s,{},i.props.style)},T))})});wt.displayName="Slide";var Le=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},ce={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
11
|
+
*/class Zt extends l.Component{constructor(o){super(o),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qe}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}resetErrorBoundary(){const{error:o}=this.state;if(o!==null){for(var i,t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(i=(t=this.props).onReset)===null||i===void 0||i.call(t,{args:a,reason:"imperative-api"}),this.setState(qe)}}componentDidCatch(o,i){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,o,i)}componentDidUpdate(o,i){const{didCatch:t}=this.state,{resetKeys:n}=this.props;var a,s;t&&i.error!==null&&function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return u.length!==c.length||u.some((d,p)=>!Object.is(d,c[p]))}(o.resetKeys,n)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:n,prev:o.resetKeys,reason:"keys"}),this.setState(qe))}render(){const{children:o,fallbackRender:i,FallbackComponent:t,fallback:n}=this.props,{didCatch:a,error:s}=this.state;let u=o;if(a){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")u=i(c);else if(t)u=l.createElement(t,c);else{if(n===void 0)throw s;u=n}}return l.createElement(Gt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function ft(e){var o,i,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(i=ft(e[o]))&&(t&&(t+=" "),t+=i);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function ie(){for(var e,o,i=0,t="";i<arguments.length;)(e=arguments[i++])&&(o=ft(e))&&(t&&(t+=" "),t+=o);return t}let Qt={data:""},Yt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Jt=/\/\*[^]*?\*\/| +/g,tt=/\n+/g,ue=(e,o)=>{let i="",t="",n="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?i=a+" "+s+";":t+=a[1]=="f"?ue(s,a):a+"{"+ue(s,a[1]=="k"?"":o)+"}":typeof s=="object"?t+=ue(s,o?o.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,u):u?u+" "+c:c)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ue.p?ue.p(a,s):a+":"+s+";")}return i+(o&&n?o+"{"+n+"}":n)+t},oe={},ht=e=>{if(typeof e=="object"){let o="";for(let i in e)o+=i+ht(e[i]);return o}return e};function $e(e){let o=this||{},i=e.call?e(o.p):e;return((s,u,c,d,p)=>{let f=ht(s),x=oe[f]||(oe[f]=(h=>{let M=0,E=11;for(;M<h.length;)E=101*E+h.charCodeAt(M++)>>>0;return"go"+E})(f));if(!oe[x]){let h=f!==s?s:(M=>{let E,N,L=[{}];for(;E=Yt.exec(M.replace(Jt,""));)E[4]?L.shift():E[3]?(N=E[3].replace(tt," ").trim(),L.unshift(L[0][N]=L[0][N]||{})):L[0][E[1]]=E[2].replace(tt," ").trim();return L[0]})(s);oe[x]=ue(p?{["@keyframes "+x]:h}:h,c?"":"."+x)}let v=c&&oe.g?oe.g:null;return c&&(oe.g=oe[x]),y=oe[x],b=u,w=d,(k=v)?b.data=b.data.replace(k,y):b.data.indexOf(y)===-1&&(b.data=w?y+b.data:b.data+y),x;var y,b,w,k})(i.unshift?i.raw?(t=i,n=[].slice.call(arguments,1),a=o.p,t.reduce((s,u,c)=>{let d=n[c];if(d&&d.call){let p=d(a),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;d=f?"."+f:p&&typeof p=="object"?p.props?"":ue(p,""):p===!1?"":p}return s+u+(d??"")},"")):i.reduce((s,u)=>Object.assign(s,u&&u.call?u(o.p):u),{}):i,(s=>typeof window=="object"?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||Qt)(o.target),o.g,o.o,o.k);var t,n,a}function gt(e,o,i){return o&&function(t,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(e.prototype,o),e}function O(){return O=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},O.apply(this,arguments)}function kt(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function Ce(e,o){if(e==null)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)i=a[t],o.indexOf(i)>=0||(n[i]=e[i]);return n}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}$e.bind({g:1}),$e.bind({k:1});var ot=function(){return""},bt=l.createContext({enqueueSnackbar:ot,closeSnackbar:ot}),ze="@media (max-width:599.95px)",Pe="@media (min-width:600px)",rt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ze=function(e){return""+rt(e.vertical)+rt(e.horizontal)},je=function(e){return!!e||e===0},Te="unmounted",pe="exited",me="entering",xe="entered",it="exiting",Qe=function(e){function o(t){var n;n=e.call(this,t)||this;var a,s=t.appear;return n.appearStatus=null,t.in?s?(a=pe,n.appearStatus=me):a=xe:a=t.unmountOnExit||t.mountOnEnter?Te:pe,n.state={status:a},n.nextCallback=null,n}kt(o,e),o.getDerivedStateFromProps=function(t,n){return t.in&&n.status===Te?{status:pe}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(t){var n=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==me&&a!==xe&&(n=me):a!==me&&a!==xe||(n=it)}this.updateStatus(!1,n)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var t=this.props.timeout,n=t,a=t;return t!=null&&typeof t!="number"&&typeof t!="string"&&(a=t.exit,n=t.enter),{exit:a,enter:n}},i.updateStatus=function(t,n){t===void 0&&(t=!1),n!==null?(this.cancelNextCallback(),n===me?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===pe&&this.setState({status:Te})},i.performEnter=function(t){var n=this,a=this.props.enter,s=t,u=this.getTimeouts();t||a?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:me},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(u.enter,function(){n.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},i.performExit=function(){var t=this,n=this.props.exit,a=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:it},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})})})):this.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})},i.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},i.setNextCallback=function(t){var n=this,a=!0;return this.nextCallback=function(){a&&(a=!1,n.nextCallback=null,t())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var a=t==null&&!this.props.addEndListener;this.node&&!a?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),t!=null&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Te)return null;var n=this.props;return(0,n.children)(t,Ce(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},gt(o,[{key:"node",get:function(){var t,n=(t=this.props.nodeRef)===null||t===void 0?void 0:t.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),o}(l.Component);function fe(){}function at(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Ge(e,o){return l.useMemo(function(){return e==null&&o==null?null:function(i){at(e,i),at(o,i)}},[e,o])}function Ne(e){var o=e.timeout,i=e.style,t=i===void 0?{}:i,n=e.mode;return{duration:typeof o=="object"?o[n]||0:o,easing:t.transitionTimingFunction,delay:t.transitionDelay}}Qe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fe,onEntering:fe,onEntered:fe,onExit:fe,onExiting:fe,onExited:fe};var xt=function(e){e.scrollTop=e.scrollTop},st=function(e){return Math.round(e)+"ms"};function he(e,o){e===void 0&&(e=["all"]);var i=o||{},t=i.duration,n=t===void 0?300:t,a=i.easing,s=a===void 0?"cubic-bezier(0.4, 0, 0.2, 1)":a,u=i.delay,c=u===void 0?0:u;return(Array.isArray(e)?e:[e]).map(function(d){var p=typeof n=="string"?n:st(n),f=typeof c=="string"?c:st(c);return d+" "+p+" "+s+" "+f}).join(",")}function yt(e){var o;return((o=e)&&o.ownerDocument||document).defaultView||window}function Me(e,o){if(o){var i=function(t,n){var a,s=n.getBoundingClientRect(),u=yt(n);if(n.fakeTransform)a=n.fakeTransform;else{var c=u.getComputedStyle(n);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var d=0,p=0;if(a&&a!=="none"&&typeof a=="string"){var f=a.split("(")[1].split(")")[0].split(",");d=parseInt(f[4],10),p=parseInt(f[5],10)}switch(t){case"left":return"translateX("+(u.innerWidth+d-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-d)+"px)";case"up":return"translateY("+(u.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(e,o);i&&(o.style.webkitTransform=i,o.style.transform=i)}}var wt=l.forwardRef(function(e,o){var i=e.children,t=e.direction,n=t===void 0?"down":t,a=e.in,s=e.style,u=e.timeout,c=u===void 0?0:u,d=e.onEnter,p=e.onEntered,f=e.onExit,x=e.onExited,v=Ce(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=l.useRef(null),b=Ge(i.ref,y),w=Ge(b,o),k=l.useCallback(function(){y.current&&Me(n,y.current)},[n]);return l.useEffect(function(){if(!a&&n!=="down"&&n!=="right"){var h=function(E,N){var L;function H(){for(var _=this,P=arguments.length,z=new Array(P),$=0;$<P;$++)z[$]=arguments[$];clearTimeout(L),L=setTimeout(function(){E.apply(_,z)},N)}return N===void 0&&(N=166),H.clear=function(){clearTimeout(L)},H}(function(){y.current&&Me(n,y.current)}),M=yt(y.current);return M.addEventListener("resize",h),function(){h.clear(),M.removeEventListener("resize",h)}}},[n,a]),l.useEffect(function(){a||k()},[a,k]),l.createElement(Qe,Object.assign({appear:!0,nodeRef:y,onEnter:function(h,M){Me(n,h),xt(h),d&&d(h,M)},onEntered:p,onEntering:function(h){var M=Ne({timeout:c,mode:"enter",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.0, 0, 0.2, 1)"})});h.style.webkitTransition=he("-webkit-transform",M),h.style.transition=he("transform",M),h.style.webkitTransform="none",h.style.transform="none"},onExit:function(h){var M=Ne({timeout:c,mode:"exit",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.4, 0, 0.6, 1)"})});h.style.webkitTransition=he("-webkit-transform",M),h.style.transition=he("transform",M),Me(n,h),f&&f(h)},onExited:function(h){h.style.webkitTransition="",h.style.transition="",x&&x(h)},in:a,timeout:c},v),function(h,M){return l.cloneElement(i,O({ref:w,style:O({visibility:h!=="exited"||a?void 0:"hidden"},s,{},i.props.style)},M))})});wt.displayName="Slide";var Le=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},ce={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
12
12
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},null),warning:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
13
13
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
14
14
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},null),info:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
15
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:wt,transitionDuration:{enter:225,exit:195}};function Se(e){return Object.entries(e).reduce(function(o,i){var t,n=i[0],a=i[1];return O({},o,((t={})[n]=$e(a),t))},{})}var vt="notistack-CollapseWrapper",en=function(e){return"notistack-MuiContent-"+e},lt=Se({root:{height:0},entered:{height:"auto"}}),Be="0px",Et=l.forwardRef(function(e,o){var i=e.children,t=e.in,n=e.onExited,a=l.useRef(null),s=l.useRef(null),u=Ge(o,s),c=function(){return a.current?a.current.clientHeight:0};return l.createElement(Ye,{in:t,unmountOnExit:!0,onEnter:function(d){d.style.height=Be},onEntered:function(d){d.style.height="auto"},onEntering:function(d){var p=c(),f=Ne({timeout:175,mode:"enter"}),x=f.duration,v=f.easing;d.style.transitionDuration=typeof x=="string"?x:x+"ms",d.style.height=p+"px",d.style.transitionTimingFunction=v||""},onExit:function(d){d.style.height=c()+"px"},onExited:n,onExiting:function(d){xt(d);var p=Ne({timeout:175,mode:"exit"}),f=p.duration,x=p.easing;d.style.transitionDuration=typeof f=="string"?f:f+"ms",d.style.height=Be,d.style.transitionTimingFunction=x||""},nodeRef:s,timeout:175},function(d,p){return l.createElement("div",Object.assign({ref:u,className:ie(lt.root,d==="entered"&<.entered),style:O({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:he("height")},d==="entered"&&{overflow:"visible"},{},d==="exited"&&!t&&{visibility:"hidden"})},p),l.createElement("div",{ref:a,className:vt,style:{display:"flex",width:"100%"}},i))})});Et.displayName="Collapse";var ct={right:"left",left:"right",bottom:"up",top:"down"},tn=function(e){return"anchorOrigin"+Ze(e)},nn=function(){};function Ee(e,o){return e.reduce(function(i,t){return t==null?i:function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var u=[].concat(a);o&&u.indexOf(o)===-1&&u.push(o),i.apply(this,u),t.apply(this,u)}},nn)}var on=typeof window<"u"?l.useLayoutEffect:l.useEffect;function ut(e){var o=l.useRef(e);return on(function(){o.current=e}),l.useCallback(function(){return o.current.apply(void 0,arguments)},[])}var _e,Ct=l.forwardRef(function(e,o){var i=e.children,t=e.className,n=e.autoHideDuration,a=e.disableWindowBlurListener,s=a!==void 0&&a,u=e.onClose,c=e.id,d=e.open,p=e.SnackbarProps,f=p===void 0?{}:p,x=l.useRef(),v=ut(function(){u&&u.apply(void 0,arguments)}),y=ut(function(k){u&&k!=null&&(x.current&&clearTimeout(x.current),x.current=setTimeout(function(){v(null,"timeout",c)},k))});l.useEffect(function(){return d&&y(n),function(){x.current&&clearTimeout(x.current)}},[d,n,y]);var b=function(){x.current&&clearTimeout(x.current)},w=l.useCallback(function(){n!=null&&y(.5*n)},[n,y]);return l.useEffect(function(){if(!s&&d)return window.addEventListener("focus",w),window.addEventListener("blur",b),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",b)}},[s,w,d]),l.createElement("div",Object.assign({ref:o},f,{className:ie("notistack-Snackbar",t),onMouseEnter:function(k){f.onMouseEnter&&f.onMouseEnter(k),b()},onMouseLeave:function(k){f.onMouseLeave&&f.onMouseLeave(k),w()}}),i)});Ct.displayName="Snackbar";var rn=Se({root:(_e={display:"flex",flexWrap:"wrap",flexGrow:1},_e[Pe]={flexGrow:"initial",minWidth:"288px"},_e)}),Qe=l.forwardRef(function(e,o){var i=e.className,t=Ce(e,["className"]);return l.createElement("div",Object.assign({ref:o,className:ie(rn.root,i)},t))});Qe.displayName="SnackbarContent";var ye=Se({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),dt="notistack-snackbar",St=l.forwardRef(function(e,o){var i=e.id,t=e.message,n=e.action,a=e.iconVariant,s=e.variant,u=e.hideIconVariant,c=e.style,d=e.className,p=a[s],f=n;return typeof f=="function"&&(f=f(i)),l.createElement(Qe,{ref:o,role:"alert","aria-describedby":dt,style:c,className:ie("notistack-MuiContent",en(s),ye.root,ye[s],d,!u&&p&&ye.lessPadding)},l.createElement("div",{id:dt,className:ye.message},u?null:p,t),f&&l.createElement("div",{className:ye.action},f))});St.displayName="MaterialDesignContent";var we,Xe,De,Oe,Ve,an=l.memo(St),sn=Se({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),ln=function(e){var o=l.useRef(),i=l.useState(!0),t=i[0],n=i[1],a=Ee([e.snack.onClose,e.onClose]),s=l.useCallback(function(){o.current=setTimeout(function(){n(function(_){return!_})},125)},[]);l.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var u,c=e.snack,d=e.classes,p=e.Component,f=p===void 0?an:p,x=l.useMemo(function(){return function(_){_===void 0&&(_={});var P={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(_).filter(function(z){return!P[z]}).reduce(function(z,$){var Y;return O({},z,((Y={})[$]=_[$],Y))},{})}(d)},[d]),v=c.open,y=c.SnackbarProps,b=c.TransitionComponent,w=c.TransitionProps,k=c.transitionDuration,h=c.disableWindowBlurListener,T=c.content,E=Ce(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),N=O({direction:(u=E.anchorOrigin,u.horizontal!=="center"?ct[u.horizontal]:ct[u.vertical]),timeout:k},w),L=T;typeof L=="function"&&(L=L(E.id,E.message));var H=["onEnter","onEntered","onExit","onExited"].reduce(function(_,P){var z;return O({},_,((z={})[P]=Ee([e.snack[P],e[P]],E.id),z))},{});return l.createElement(Et,{in:t,onExited:H.onExited},l.createElement(Ct,{open:v,id:E.id,disableWindowBlurListener:h,autoHideDuration:E.autoHideDuration,className:ie(sn.wrappedRoot,x.root,x[tn(E.anchorOrigin)]),SnackbarProps:y,onClose:a},l.createElement(b,Object.assign({},N,{appear:!0,in:v,onExit:H.onExit,onExited:s,onEnter:H.onEnter,onEntered:Ee([H.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],E.id)}),L||l.createElement(f,Object.assign({},E)))))},ve=20,Ke=6,cn=2,pt="."+vt,We=Se({root:(we={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:he(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},we[pt]={padding:Ke+"px 0px",transition:"padding 300ms ease 0ms"},we.maxWidth="calc(100% - "+2*ve+"px)",we[ze]={width:"100%",maxWidth:"calc(100% - 32px)"},we),rootDense:(Xe={},Xe[pt]={padding:cn+"px 0px"},Xe),top:{top:ve-Ke+"px",flexDirection:"column"},bottom:{bottom:ve-Ke+"px",flexDirection:"column-reverse"},left:(De={left:ve+"px"},De[Pe]={alignItems:"flex-start"},De[ze]={left:"16px"},De),right:(Oe={right:ve+"px"},Oe[Pe]={alignItems:"flex-end"},Oe[ze]={right:"16px"},Oe),center:(Ve={left:"50%",transform:"translateX(-50%)"},Ve[Pe]={alignItems:"center"},Ve)}),un=l.memo(function(e){var o=e.classes,i=o===void 0?{}:o,t=e.anchorOrigin,n=e.dense,a=e.children,s=ie("notistack-SnackbarContainer",We[t.vertical],We[t.horizontal],We.root,i.containerRoot,i["containerAnchorOrigin"+Ze(t)],n&&We.rootDense);return l.createElement("div",{className:s},a)}),mt=function(e){return!(typeof e=="string"||l.isValidElement(e))},dn=function(e){function o(i){var t;return(t=e.call(this,i)||this).enqueueSnackbar=function(n,a){if(a===void 0&&(a={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=mt(n)?n:a,u=mt(n)?n.message:n,c=s.key,d=s.preventDuplicate,p=Ce(s,["key","preventDuplicate"]),f=je(c),x=f?c:new Date().getTime()+Math.random(),v=function(b,w){return function(k,h){return h===void 0&&(h=!1),h?O({},ce[k],{},w[k],{},b[k]):k==="autoHideDuration"?(L=b.autoHideDuration,H=w.autoHideDuration,(_=function(P){return typeof P=="number"||P===null})(L)?L:_(H)?H:ce.autoHideDuration):k==="transitionDuration"?(T=b.transitionDuration,E=w.transitionDuration,(N=function(P,z){return z.some(function($){return typeof P===$})})(T,["string","number"])?T:N(T,["object"])?O({},ce.transitionDuration,{},N(E,["object"])&&E,{},T):N(E,["string","number"])?E:N(E,["object"])?O({},ce.transitionDuration,{},E):ce.transitionDuration):b[k]||w[k]||ce[k];var T,E,N,L,H,_}}(p,t.props),y=O({id:x},p,{message:u,open:!0,entered:!1,requestClose:!1,persist:v("persist"),action:v("action"),content:v("content"),variant:v("variant"),anchorOrigin:v("anchorOrigin"),disableWindowBlurListener:v("disableWindowBlurListener"),autoHideDuration:v("autoHideDuration"),hideIconVariant:v("hideIconVariant"),TransitionComponent:v("TransitionComponent"),transitionDuration:v("transitionDuration"),TransitionProps:v("TransitionProps",!0),iconVariant:v("iconVariant",!0),style:v("style",!0),SnackbarProps:v("SnackbarProps",!0),className:ie(t.props.className,p.className)});return y.persist&&(y.autoHideDuration=void 0),t.setState(function(b){if(d===void 0&&t.props.preventDuplicate||d){var w=function(T){return f?T.id===x:T.message===u},k=b.queue.findIndex(w)>-1,h=b.snacks.findIndex(w)>-1;if(k||h)return b}return t.handleDisplaySnack(O({},b,{queue:[].concat(b.queue,[y])}))}),x},t.handleDisplaySnack=function(n){return n.snacks.length>=t.maxSnack?t.handleDismissOldest(n):t.processQueue(n)},t.processQueue=function(n){var a=n.queue,s=n.snacks;return a.length>0?O({},n,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):n},t.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var a=!1,s=!1;n.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0)===t.maxSnack&&(s=!0);var u=n.snacks.map(function(c){return a||c.persist&&!s?O({},c):(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),t.props.onClose&&t.props.onClose(null,"maxsnack",c.id),O({},c,{open:!1})):O({},c,{requestClose:!0}))});return O({},n,{snacks:u})},t.handleEnteredSnack=function(n,a,s){if(!je(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(u){return{snacks:u.snacks.map(function(c){return c.id===s?O({},c,{entered:!0}):O({},c)})}})},t.handleCloseSnack=function(n,a,s){t.props.onClose&&t.props.onClose(n,a,s);var u=s===void 0;t.setState(function(c){var d=c.snacks,p=c.queue;return{snacks:d.map(function(f){return u||f.id===s?f.entered?O({},f,{open:!1}):O({},f,{requestClose:!0}):O({},f)}),queue:p.filter(function(f){return f.id!==s})}})},t.closeSnackbar=function(n){var a=t.state.snacks.find(function(s){return s.id===n});je(n)&&a&&a.onClose&&a.onClose(null,"instructed",n),t.handleCloseSnack(null,"instructed",n)},t.handleExitedSnack=function(n,a){if(!je(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(s){var u=t.processQueue(O({},s,{snacks:s.snacks.filter(function(c){return c.id!==a})}));return u.queue.length===0?u:t.handleDismissOldest(u)})},t.enqueueSnackbar,t.closeSnackbar,t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar.bind(nt(t)),closeSnackbar:t.closeSnackbar.bind(nt(t))}},t}return kt(o,e),o.prototype.render=function(){var i=this,t=this.state.contextValue,n=this.props,a=n.domRoot,s=n.children,u=n.dense,c=u!==void 0&&u,d=n.Components,p=d===void 0?{}:d,f=n.classes,x=this.state.snacks.reduce(function(y,b){var w,k=Ze(b.anchorOrigin),h=y[k]||[];return O({},y,((w={})[k]=[].concat(h,[b]),w))},{}),v=Object.keys(x).map(function(y){var b=x[y],w=b[0];return l.createElement(un,{key:y,dense:c,anchorOrigin:w.anchorOrigin,classes:f},b.map(function(k){return l.createElement(ln,{key:k.id,snack:k,classes:f,Component:p[k.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:Ee([i.handleExitedSnack,i.props.onExited],k.id),onEntered:Ee([i.handleEnteredSnack,i.props.onEntered],k.id)})}))});return l.createElement(bt.Provider,{value:t},s,a?Wt.createPortal(v,a):v)},gt(o,[{key:"maxSnack",get:function(){return this.props.maxSnack||ce.maxSnack}}]),o}(l.Component),jt=function(){return l.useContext(bt)};const re={card:"_card_r6a8n_13",actionRoot:"_actionRoot_r6a8n_21",icons:"_icons_r6a8n_31",expand:"_expand_r6a8n_43",expandOpen:"_expandOpen_r6a8n_57",stackTraceContainer:"_stackTraceContainer_r6a8n_65"},Mt=l.forwardRef((e,o)=>{const{id:i,message:t,iconVariant:n,error:a,hideIconVariant:s,...u}=e,{closeSnackbar:c}=jt(),d=r.Js(),[p,f]=l.useState(!1),x=l.useCallback(()=>{f(b=>!b)},[]),v=l.useCallback(()=>{c(i)},[i,c]),y=a?.message||String(t);return m.jsx(Qe,{ref:o,className:r.jo(re.root,"error-snackbar"),children:m.jsxs(qt,{className:re.card,style:{backgroundColor:d.palette.error.dark,border:`1px solid ${d.palette.error.dark}`},children:[m.jsxs(_t,{className:re.actionRoot,children:[s?null:n?.error,m.jsx(r.Typography,{variant:"body2",component:"div",className:re.typography,style:{color:d.palette.text.primary},children:y}),m.jsx("div",{style:{flex:"1 1 auto"}}),m.jsxs("div",{className:re.icons,children:[a?m.jsx(r.IconButton,{"aria-label":"Show more",size:"small",className:r.jo(re.expand,{[re.expandOpen]:p}),style:{color:d.palette.action.active},onClick:x,children:m.jsx(r.Xn,{})}):null,m.jsx(r.IconButton,{size:"small",className:re.expand,style:{color:d.palette.action.active},onClick:v,children:m.jsx(r.vo,{fontSize:"small"})})]})]}),a?m.jsx(Fe,{in:p,timeout:"auto",unmountOnExit:!0,children:m.jsx("div",{className:re.stackTraceContainer,style:{backgroundColor:d.palette.error.light,borderTop:`1px solid ${d.palette.error.main}`},children:m.jsx(r.nk,{error:a,hideLineNumbers:!0})})}):null]})})});Mt.displayName="ToastError";const Tt=l.memo(l.forwardRef((e,o)=>{const{commands:i,commandHook:t,scope:n="workbook",disabled:a=!1,...s}=e,u=r.Te(d=>{const p={variant:r.pn.Menuitem,parentFloat:d.floatReference,commandHook:t,scope:n,disabled:a},f=m.jsxs(m.Fragment,{children:[m.jsx(r.qe,{...p,command:i.getCommand("newWorkbook"),icon:r.Le(m.jsx(r.qK,{}))}),m.jsx(r.Qt,{orientation:"horizontal"}),m.jsx(r.qe,{...p,command:i.getCommand("openWorkbook"),icon:r.Le(m.jsx(r.KK,{}))}),m.jsx(r.uo,{...p,commands:i,quickCommand:"saveWorkbook",icon:r.Le(m.jsx(r.XK,{})),createPopupPanel:x=>{const v={...p,parentFloat:x.floatReference,scope:"saveWorkbook"},y=[];return r.xX.getWriteFormats().forEach(b=>{if(b.isDefault)return;let w=null;b.key==="CSV"?w=r.Le(m.jsx(r.YK,{})):b.key==="Excel"&&(w=r.Le(m.jsx(r.ZK,{})));const k=i.getCommand(`saveWorkbookAs${b.key}`);k?y.push(l.createElement(r.qe,{...v,key:b.key,command:k,icon:w})):console.warn(`Unable to resolve command: 'saveWorkbookAs${b.key}'`)}),r.Zn({...x,children:y,onClick:()=>{x.closeFloatAll()}})}})]});return r.Zn({...d,children:f,onClick:x=>{x.isDefaultPrevented||d.closeFloatAll()}})},[a,i,t,n]),c="File";return m.jsx(r.uo,{commands:i,disabled:a,commandHook:t,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:d=>`calc(1.25rem + ${d.spacing(2)}px)`}},...s,createPopupPanel:u,icon:m.jsx(r.iu,{className:"label",icon:null,label:c})})}));Tt.displayName="StandaloneFileCommandButton";const pn=m.jsx(r.ni,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:m.jsx(r.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:m.jsx(r.gX,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Lt=l.memo(l.forwardRef((e,o)=>{const{commands:i,workbook:t,logo:n=pn,mainElement:a,showFileMenu:s=!0,showAppearanceMenu:u=!0,...c}=e,{reference:d}=r.El(),[p,{width:f}]=r.eg(),x=f<530,v=s?m.jsx(Tt,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,T){}}}):null,y=u?m.jsx(r.yX,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,T){}}}):null,b=l.useMemo(()=>({paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)}),[]),w=l.useRef(null);return m.jsx(r.Box,{ref:r.F6([w,p,o]),...c,children:r.iK({commands:i,renderCompact:x,workbook:t,selectWrapper:k=>m.jsxs(r.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:h=>h.spacing(1),paddingLeft:h=>h.spacing(1),paddingRight:h=>h.spacing(1)},children:[m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:h=>h.spacing(.5)},children:[n,m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:h=>h.spacing(.25)},children:[v,k]})]}),m.jsx(r.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:a}),m.jsx(r.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:x&&!y?"0 0 auto":"1 1 100%"},children:y})]}),selectProps:b,toolbarsProps:{Home:{sx:{}}}})})}));Lt.displayName="StandaloneWorkbookToolbar";const Dt=l.memo(l.forwardRef((e,o)=>{const{workbook:i,setWorkbook:t,refWorkbookTitle:n,titleWorkbook:a,setWorkbookTitle:s,titlePlaceHolder:u,children:c,undoManager:d,commands:p,importExportDisabled:f,themeModeOptions:x}=e,v=jt(),y=v?v.enqueueSnackbar:()=>{},b=v?v.closeSnackbar:()=>{},[w,k]=l.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),h=l.useCallback(()=>{k(F=>({...F,isMounted:!0}))},[]),T=l.useCallback(()=>{k(F=>({...F,isMounted:!1}))},[]),E=r.aX(),N=r.cX(),L=r.dX(),H=l.useRef(new Set),_=l.useMemo(()=>{const F=(S,M)=>{if(M?.onceKey){if(H.current.has(M.onceKey))return;const D=new Set(H.current);D.add(M.onceKey),H.current=D}const I={variant:M?.type??r._l.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:M?.preventDuplicate,persist:M?.persist??M?.type===r._l.Error,action:D=>m.jsx(r.IconButton,{onClick:()=>b(D),children:m.jsx($t,{})})};M?.enqueueProps&&Object.assign(I,M.enqueueProps),S||console.log("message is 'null'",M),y(S??"Alert",I)};return{showMessage:F,showBusy:(S,M)=>{let I=null;const D=new Promise(X=>{I=X});return k(X=>{const B=new Map(X.starting);return B.set(D,I),{...X,label:S,starting:B}}),D},showWindow:(S,M,I)=>{const D={...M,onKeyDown:X=>{p?.dispatchToFocusedCommand(X),X.isDefaultPrevented()||X.isPropagationStopped()||M?.onKeyDown?.(X)}};return E(S,{sort:()=>Promise.resolve().then(()=>require("./B_5ro-VEKfZDMSn_.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./BarieqwSecnaFn0d.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./DfNbgyjaLMn81dqP.cjs")),comments:()=>Promise.resolve().then(()=>require("./Bl6FyLoMkFiQqhvc.cjs")),find:()=>Promise.resolve().then(()=>require("./BxBOlXY9P3Ymi6oT.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./5KDindu3wyLVvG7F.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./CUw8AoM-rVbp1W3s.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./DP8biA0GQqyPKLyq.cjs"))}[S],D,I)},showOptions:N,showInputOptions:L,showError:S=>{let M,I=r._l.Error,D="Unknown Error";typeof S=="string"?D=S:S instanceof Error&&(M=S,S.message&&(D=S.message)),S instanceof r.CA&&(I=r._l.Info),F(D,{type:I,enqueueProps:{error:M}})}}},[]),P=l.useCallback(()=>{},[]),z=(F=>{const{workbook:S,setWorkbook:M,importExportDisabled:I,workbookTitle:D="export",setWorkbookTitle:X,notifier:B,requestWorkbookTitle:Q,themeModeOptions:q,undoManager:j,commands:W,onExecute:V}=F,J=r.Te(q?.onForceModeChange,[q?.onForceModeChange]),ae=r.Te(q?.onForceLightGridChange,[q?.onForceLightGridChange]),ne=r.Te(q?.onForceLightImagesChange,[q?.onForceLightImagesChange]),Ae=r.Te(async(R=null,Z=null)=>{const g=[];let C,K=null,ee=null;if(typeof R=="string"?ee=R:K=R,C=K?R:await r.dn.openFileDialog(ee??r.xX.getAllReadFormatTypeAsString().join(",")),!C)return null;const se={source:C,constructorOptions:Z,onWarning:He=>{g.push(He)}},be=await r.xX.read(se,B);return g.length>0&&(B?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
|
|
15
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:wt,transitionDuration:{enter:225,exit:195}};function Se(e){return Object.entries(e).reduce(function(o,i){var t,n=i[0],a=i[1];return O({},o,((t={})[n]=$e(a),t))},{})}var vt="notistack-CollapseWrapper",en=function(e){return"notistack-MuiContent-"+e},lt=Se({root:{height:0},entered:{height:"auto"}}),Be="0px",Et=l.forwardRef(function(e,o){var i=e.children,t=e.in,n=e.onExited,a=l.useRef(null),s=l.useRef(null),u=Ge(o,s),c=function(){return a.current?a.current.clientHeight:0};return l.createElement(Qe,{in:t,unmountOnExit:!0,onEnter:function(d){d.style.height=Be},onEntered:function(d){d.style.height="auto"},onEntering:function(d){var p=c(),f=Ne({timeout:175,mode:"enter"}),x=f.duration,v=f.easing;d.style.transitionDuration=typeof x=="string"?x:x+"ms",d.style.height=p+"px",d.style.transitionTimingFunction=v||""},onExit:function(d){d.style.height=c()+"px"},onExited:n,onExiting:function(d){xt(d);var p=Ne({timeout:175,mode:"exit"}),f=p.duration,x=p.easing;d.style.transitionDuration=typeof f=="string"?f:f+"ms",d.style.height=Be,d.style.transitionTimingFunction=x||""},nodeRef:s,timeout:175},function(d,p){return l.createElement("div",Object.assign({ref:u,className:ie(lt.root,d==="entered"&<.entered),style:O({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:he("height")},d==="entered"&&{overflow:"visible"},{},d==="exited"&&!t&&{visibility:"hidden"})},p),l.createElement("div",{ref:a,className:vt,style:{display:"flex",width:"100%"}},i))})});Et.displayName="Collapse";var ct={right:"left",left:"right",bottom:"up",top:"down"},tn=function(e){return"anchorOrigin"+Ze(e)},nn=function(){};function Ee(e,o){return e.reduce(function(i,t){return t==null?i:function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var u=[].concat(a);o&&u.indexOf(o)===-1&&u.push(o),i.apply(this,u),t.apply(this,u)}},nn)}var on=typeof window<"u"?l.useLayoutEffect:l.useEffect;function ut(e){var o=l.useRef(e);return on(function(){o.current=e}),l.useCallback(function(){return o.current.apply(void 0,arguments)},[])}var _e,Ct=l.forwardRef(function(e,o){var i=e.children,t=e.className,n=e.autoHideDuration,a=e.disableWindowBlurListener,s=a!==void 0&&a,u=e.onClose,c=e.id,d=e.open,p=e.SnackbarProps,f=p===void 0?{}:p,x=l.useRef(),v=ut(function(){u&&u.apply(void 0,arguments)}),y=ut(function(k){u&&k!=null&&(x.current&&clearTimeout(x.current),x.current=setTimeout(function(){v(null,"timeout",c)},k))});l.useEffect(function(){return d&&y(n),function(){x.current&&clearTimeout(x.current)}},[d,n,y]);var b=function(){x.current&&clearTimeout(x.current)},w=l.useCallback(function(){n!=null&&y(.5*n)},[n,y]);return l.useEffect(function(){if(!s&&d)return window.addEventListener("focus",w),window.addEventListener("blur",b),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",b)}},[s,w,d]),l.createElement("div",Object.assign({ref:o},f,{className:ie("notistack-Snackbar",t),onMouseEnter:function(k){f.onMouseEnter&&f.onMouseEnter(k),b()},onMouseLeave:function(k){f.onMouseLeave&&f.onMouseLeave(k),w()}}),i)});Ct.displayName="Snackbar";var rn=Se({root:(_e={display:"flex",flexWrap:"wrap",flexGrow:1},_e[Pe]={flexGrow:"initial",minWidth:"288px"},_e)}),Ye=l.forwardRef(function(e,o){var i=e.className,t=Ce(e,["className"]);return l.createElement("div",Object.assign({ref:o,className:ie(rn.root,i)},t))});Ye.displayName="SnackbarContent";var ye=Se({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),dt="notistack-snackbar",St=l.forwardRef(function(e,o){var i=e.id,t=e.message,n=e.action,a=e.iconVariant,s=e.variant,u=e.hideIconVariant,c=e.style,d=e.className,p=a[s],f=n;return typeof f=="function"&&(f=f(i)),l.createElement(Ye,{ref:o,role:"alert","aria-describedby":dt,style:c,className:ie("notistack-MuiContent",en(s),ye.root,ye[s],d,!u&&p&&ye.lessPadding)},l.createElement("div",{id:dt,className:ye.message},u?null:p,t),f&&l.createElement("div",{className:ye.action},f))});St.displayName="MaterialDesignContent";var we,Xe,De,Oe,Ke,an=l.memo(St),sn=Se({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),ln=function(e){var o=l.useRef(),i=l.useState(!0),t=i[0],n=i[1],a=Ee([e.snack.onClose,e.onClose]),s=l.useCallback(function(){o.current=setTimeout(function(){n(function(_){return!_})},125)},[]);l.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var u,c=e.snack,d=e.classes,p=e.Component,f=p===void 0?an:p,x=l.useMemo(function(){return function(_){_===void 0&&(_={});var P={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(_).filter(function(z){return!P[z]}).reduce(function(z,$){var Q;return O({},z,((Q={})[$]=_[$],Q))},{})}(d)},[d]),v=c.open,y=c.SnackbarProps,b=c.TransitionComponent,w=c.TransitionProps,k=c.transitionDuration,h=c.disableWindowBlurListener,M=c.content,E=Ce(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),N=O({direction:(u=E.anchorOrigin,u.horizontal!=="center"?ct[u.horizontal]:ct[u.vertical]),timeout:k},w),L=M;typeof L=="function"&&(L=L(E.id,E.message));var H=["onEnter","onEntered","onExit","onExited"].reduce(function(_,P){var z;return O({},_,((z={})[P]=Ee([e.snack[P],e[P]],E.id),z))},{});return l.createElement(Et,{in:t,onExited:H.onExited},l.createElement(Ct,{open:v,id:E.id,disableWindowBlurListener:h,autoHideDuration:E.autoHideDuration,className:ie(sn.wrappedRoot,x.root,x[tn(E.anchorOrigin)]),SnackbarProps:y,onClose:a},l.createElement(b,Object.assign({},N,{appear:!0,in:v,onExit:H.onExit,onExited:s,onEnter:H.onEnter,onEntered:Ee([H.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],E.id)}),L||l.createElement(f,Object.assign({},E)))))},ve=20,Ve=6,cn=2,pt="."+vt,We=Se({root:(we={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:he(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},we[pt]={padding:Ve+"px 0px",transition:"padding 300ms ease 0ms"},we.maxWidth="calc(100% - "+2*ve+"px)",we[ze]={width:"100%",maxWidth:"calc(100% - 32px)"},we),rootDense:(Xe={},Xe[pt]={padding:cn+"px 0px"},Xe),top:{top:ve-Ve+"px",flexDirection:"column"},bottom:{bottom:ve-Ve+"px",flexDirection:"column-reverse"},left:(De={left:ve+"px"},De[Pe]={alignItems:"flex-start"},De[ze]={left:"16px"},De),right:(Oe={right:ve+"px"},Oe[Pe]={alignItems:"flex-end"},Oe[ze]={right:"16px"},Oe),center:(Ke={left:"50%",transform:"translateX(-50%)"},Ke[Pe]={alignItems:"center"},Ke)}),un=l.memo(function(e){var o=e.classes,i=o===void 0?{}:o,t=e.anchorOrigin,n=e.dense,a=e.children,s=ie("notistack-SnackbarContainer",We[t.vertical],We[t.horizontal],We.root,i.containerRoot,i["containerAnchorOrigin"+Ze(t)],n&&We.rootDense);return l.createElement("div",{className:s},a)}),mt=function(e){return!(typeof e=="string"||l.isValidElement(e))},dn=function(e){function o(i){var t;return(t=e.call(this,i)||this).enqueueSnackbar=function(n,a){if(a===void 0&&(a={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=mt(n)?n:a,u=mt(n)?n.message:n,c=s.key,d=s.preventDuplicate,p=Ce(s,["key","preventDuplicate"]),f=je(c),x=f?c:new Date().getTime()+Math.random(),v=function(b,w){return function(k,h){return h===void 0&&(h=!1),h?O({},ce[k],{},w[k],{},b[k]):k==="autoHideDuration"?(L=b.autoHideDuration,H=w.autoHideDuration,(_=function(P){return typeof P=="number"||P===null})(L)?L:_(H)?H:ce.autoHideDuration):k==="transitionDuration"?(M=b.transitionDuration,E=w.transitionDuration,(N=function(P,z){return z.some(function($){return typeof P===$})})(M,["string","number"])?M:N(M,["object"])?O({},ce.transitionDuration,{},N(E,["object"])&&E,{},M):N(E,["string","number"])?E:N(E,["object"])?O({},ce.transitionDuration,{},E):ce.transitionDuration):b[k]||w[k]||ce[k];var M,E,N,L,H,_}}(p,t.props),y=O({id:x},p,{message:u,open:!0,entered:!1,requestClose:!1,persist:v("persist"),action:v("action"),content:v("content"),variant:v("variant"),anchorOrigin:v("anchorOrigin"),disableWindowBlurListener:v("disableWindowBlurListener"),autoHideDuration:v("autoHideDuration"),hideIconVariant:v("hideIconVariant"),TransitionComponent:v("TransitionComponent"),transitionDuration:v("transitionDuration"),TransitionProps:v("TransitionProps",!0),iconVariant:v("iconVariant",!0),style:v("style",!0),SnackbarProps:v("SnackbarProps",!0),className:ie(t.props.className,p.className)});return y.persist&&(y.autoHideDuration=void 0),t.setState(function(b){if(d===void 0&&t.props.preventDuplicate||d){var w=function(M){return f?M.id===x:M.message===u},k=b.queue.findIndex(w)>-1,h=b.snacks.findIndex(w)>-1;if(k||h)return b}return t.handleDisplaySnack(O({},b,{queue:[].concat(b.queue,[y])}))}),x},t.handleDisplaySnack=function(n){return n.snacks.length>=t.maxSnack?t.handleDismissOldest(n):t.processQueue(n)},t.processQueue=function(n){var a=n.queue,s=n.snacks;return a.length>0?O({},n,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):n},t.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var a=!1,s=!1;n.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0)===t.maxSnack&&(s=!0);var u=n.snacks.map(function(c){return a||c.persist&&!s?O({},c):(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),t.props.onClose&&t.props.onClose(null,"maxsnack",c.id),O({},c,{open:!1})):O({},c,{requestClose:!0}))});return O({},n,{snacks:u})},t.handleEnteredSnack=function(n,a,s){if(!je(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(u){return{snacks:u.snacks.map(function(c){return c.id===s?O({},c,{entered:!0}):O({},c)})}})},t.handleCloseSnack=function(n,a,s){t.props.onClose&&t.props.onClose(n,a,s);var u=s===void 0;t.setState(function(c){var d=c.snacks,p=c.queue;return{snacks:d.map(function(f){return u||f.id===s?f.entered?O({},f,{open:!1}):O({},f,{requestClose:!0}):O({},f)}),queue:p.filter(function(f){return f.id!==s})}})},t.closeSnackbar=function(n){var a=t.state.snacks.find(function(s){return s.id===n});je(n)&&a&&a.onClose&&a.onClose(null,"instructed",n),t.handleCloseSnack(null,"instructed",n)},t.handleExitedSnack=function(n,a){if(!je(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(s){var u=t.processQueue(O({},s,{snacks:s.snacks.filter(function(c){return c.id!==a})}));return u.queue.length===0?u:t.handleDismissOldest(u)})},t.enqueueSnackbar,t.closeSnackbar,t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar.bind(nt(t)),closeSnackbar:t.closeSnackbar.bind(nt(t))}},t}return kt(o,e),o.prototype.render=function(){var i=this,t=this.state.contextValue,n=this.props,a=n.domRoot,s=n.children,u=n.dense,c=u!==void 0&&u,d=n.Components,p=d===void 0?{}:d,f=n.classes,x=this.state.snacks.reduce(function(y,b){var w,k=Ze(b.anchorOrigin),h=y[k]||[];return O({},y,((w={})[k]=[].concat(h,[b]),w))},{}),v=Object.keys(x).map(function(y){var b=x[y],w=b[0];return l.createElement(un,{key:y,dense:c,anchorOrigin:w.anchorOrigin,classes:f},b.map(function(k){return l.createElement(ln,{key:k.id,snack:k,classes:f,Component:p[k.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:Ee([i.handleExitedSnack,i.props.onExited],k.id),onEntered:Ee([i.handleEnteredSnack,i.props.onEntered],k.id)})}))});return l.createElement(bt.Provider,{value:t},s,a?Wt.createPortal(v,a):v)},gt(o,[{key:"maxSnack",get:function(){return this.props.maxSnack||ce.maxSnack}}]),o}(l.Component),jt=function(){return l.useContext(bt)};const re={card:"_card_r6a8n_13",actionRoot:"_actionRoot_r6a8n_21",icons:"_icons_r6a8n_31",expand:"_expand_r6a8n_43",expandOpen:"_expandOpen_r6a8n_57",stackTraceContainer:"_stackTraceContainer_r6a8n_65"},Tt=l.forwardRef((e,o)=>{const{id:i,message:t,iconVariant:n,error:a,hideIconVariant:s,...u}=e,{closeSnackbar:c}=jt(),d=r.Js(),[p,f]=l.useState(!1),x=l.useCallback(()=>{f(b=>!b)},[]),v=l.useCallback(()=>{c(i)},[i,c]),y=a?.message||String(t);return m.jsx(Ye,{ref:o,className:r.jo(re.root,"error-snackbar"),children:m.jsxs(qt,{className:re.card,style:{backgroundColor:d.palette.error.dark,border:`1px solid ${d.palette.error.dark}`},children:[m.jsxs(_t,{className:re.actionRoot,children:[s?null:n?.error,m.jsx(r.Typography,{variant:"body2",component:"div",className:re.typography,style:{color:d.palette.text.primary},children:y}),m.jsx("div",{style:{flex:"1 1 auto"}}),m.jsxs("div",{className:re.icons,children:[a?m.jsx(r.IconButton,{"aria-label":"Show more",size:"small",className:r.jo(re.expand,{[re.expandOpen]:p}),style:{color:d.palette.action.active},onClick:x,children:m.jsx(r.Xn,{})}):null,m.jsx(r.IconButton,{size:"small",className:re.expand,style:{color:d.palette.action.active},onClick:v,children:m.jsx(r.vo,{fontSize:"small"})})]})]}),a?m.jsx(Fe,{in:p,timeout:"auto",unmountOnExit:!0,children:m.jsx("div",{className:re.stackTraceContainer,style:{backgroundColor:d.palette.error.light,borderTop:`1px solid ${d.palette.error.main}`},children:m.jsx(r.nk,{error:a,hideLineNumbers:!0})})}):null]})})});Tt.displayName="ToastError";const Mt=l.memo(l.forwardRef((e,o)=>{const{commands:i,commandHook:t,scope:n="workbook",disabled:a=!1,...s}=e,u=r.Te(d=>{const p={variant:r.pn.Menuitem,parentFloat:d.floatReference,commandHook:t,scope:n,disabled:a},f=m.jsxs(m.Fragment,{children:[m.jsx(r.qe,{...p,command:i.getCommand("newWorkbook"),icon:r.Le(m.jsx(r.qK,{}))}),m.jsx(r.Qt,{orientation:"horizontal"}),m.jsx(r.qe,{...p,command:i.getCommand("openWorkbook"),icon:r.Le(m.jsx(r.KK,{}))}),m.jsx(r.uo,{...p,commands:i,quickCommand:"saveWorkbook",icon:r.Le(m.jsx(r.XK,{})),createPopupPanel:x=>{const v={...p,parentFloat:x.floatReference,scope:"saveWorkbook"},y=[];return r.xX.getWriteFormats().forEach(b=>{if(b.isDefault)return;let w=null;b.key==="CSV"?w=r.Le(m.jsx(r.YK,{})):b.key==="Excel"&&(w=r.Le(m.jsx(r.ZK,{})));const k=i.getCommand(`saveWorkbookAs${b.key}`);k?y.push(l.createElement(r.qe,{...v,key:b.key,command:k,icon:w})):console.warn(`Unable to resolve command: 'saveWorkbookAs${b.key}'`)}),r.Zn({...x,children:y,onClick:()=>{x.closeFloatAll()}})}})]});return r.Zn({...d,children:f,onClick:x=>{x.isDefaultPrevented||d.closeFloatAll()}})},[a,i,t,n]),c="File";return m.jsx(r.uo,{commands:i,disabled:a,commandHook:t,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:d=>`calc(1.25rem + ${d.spacing(2)}px)`}},...s,createPopupPanel:u,icon:m.jsx(r.iu,{className:"label",icon:null,label:c})})}));Mt.displayName="StandaloneFileCommandButton";const pn=m.jsx(r.ni,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:m.jsx(r.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:m.jsx(r.gX,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Lt=l.memo(l.forwardRef((e,o)=>{const{commands:i,workbook:t,logo:n=pn,mainElement:a,showFileMenu:s=!0,showAppearanceMenu:u=!0,...c}=e,{reference:d}=r.El(),[p,{width:f}]=r.eg(),x=f<530,v=s?m.jsx(Mt,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,M){}}}):null,y=u?m.jsx(r.yX,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,M){}}}):null,b=l.useMemo(()=>({paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)}),[]),w=l.useRef(null);return m.jsx(r.Box,{ref:r.F6([w,p,o]),...c,children:r.iK({commands:i,renderCompact:x,workbook:t,selectWrapper:k=>m.jsxs(r.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:h=>h.spacing(1),paddingLeft:h=>h.spacing(1),paddingRight:h=>h.spacing(1)},children:[m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:h=>h.spacing(.5)},children:[n,m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:h=>h.spacing(.25)},children:[v,k]})]}),m.jsx(r.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:a}),m.jsx(r.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:x&&!y?"0 0 auto":"1 1 100%"},children:y})]}),selectProps:b,toolbarsProps:{Home:{sx:{}}}})})}));Lt.displayName="StandaloneWorkbookToolbar";const Dt=l.memo(l.forwardRef((e,o)=>{const{workbook:i,setWorkbook:t,refWorkbookTitle:n,titleWorkbook:a,setWorkbookTitle:s,titlePlaceHolder:u,children:c,undoManager:d,commands:p,importExportDisabled:f,themeModeOptions:x}=e,v=jt(),y=v?v.enqueueSnackbar:()=>{},b=v?v.closeSnackbar:()=>{},[w,k]=l.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),h=l.useCallback(()=>{k(F=>({...F,isMounted:!0}))},[]),M=l.useCallback(()=>{k(F=>({...F,isMounted:!1}))},[]),E=r.aX(),N=r.cX(),L=r.dX(),H=l.useRef(new Set),_=l.useMemo(()=>{const F=(S,T)=>{if(T?.onceKey){if(H.current.has(T.onceKey))return;const D=new Set(H.current);D.add(T.onceKey),H.current=D}const A={variant:T?.type??r._l.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:T?.preventDuplicate,persist:T?.persist??T?.type===r._l.Error,action:D=>m.jsx(r.IconButton,{onClick:()=>b(D),children:m.jsx($t,{})})};T?.enqueueProps&&Object.assign(A,T.enqueueProps),S||console.log("message is 'null'",T),y(S??"Alert",A)};return{showMessage:F,showBusy:(S,T)=>{let A=null;const D=new Promise(X=>{A=X});return k(X=>{const B=new Map(X.starting);return B.set(D,A),{...X,label:S,starting:B}}),D},showWindow:(S,T,A)=>{const D={...T,onKeyDown:X=>{p?.dispatchToFocusedCommand(X),X.isDefaultPrevented()||X.isPropagationStopped()||T?.onKeyDown?.(X)}};return E(S,{sort:()=>Promise.resolve().then(()=>require("./0ro4POJddfCBqwla.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./7wUiFacmdqkiWuWr.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./BaHquayFJjfNegtH.cjs")),comments:()=>Promise.resolve().then(()=>require("./C1GbcCANO-wC1_z8.cjs")),find:()=>Promise.resolve().then(()=>require("./DShx7ik2COl1AAUj.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./ro2NoHFJdhx3xSbY.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./BZPFwMExRpOalMQM.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./DiveT8pDQdBdhBSI.cjs"))}[S],D,A)},showOptions:N,showInputOptions:L,showError:S=>{let T,A=r._l.Error,D="Unknown Error";typeof S=="string"?D=S:S instanceof Error&&(T=S,S.message&&(D=S.message)),S instanceof r.CA&&(A=r._l.Info),F(D,{type:A,enqueueProps:{error:T}})}}},[]),P=l.useCallback(()=>{},[]),z=(F=>{const{workbook:S,setWorkbook:T,importExportDisabled:A,workbookTitle:D="export",setWorkbookTitle:X,notifier:B,requestWorkbookTitle:Y,themeModeOptions:q,undoManager:j,commands:W,onExecute:K}=F,J=r.Te(q?.onForceModeChange,[q?.onForceModeChange]),ae=r.Te(q?.onForceLightGridChange,[q?.onForceLightGridChange]),ne=r.Te(q?.onForceLightImagesChange,[q?.onForceLightImagesChange]),Ie=r.Te(async(R=null,Z=null)=>{const g=[];let C,V=null,ee=null;if(typeof R=="string"?ee=R:V=R,C=V?R:await r.dn.openFileDialog(ee??r.xX.getAllReadFormatTypeAsString().join(",")),!C)return null;const se={source:C,constructorOptions:Z,onWarning:He=>{g.push(He)}},be=await r.xX.read(se,B);return g.length>0&&(B?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
|
|
16
16
|
`+g.join(`
|
|
17
|
-
`))),be},[V,B,S]),ge=r.Te(async(R,Z,g)=>{if(!Z&&Q){const C=await Q("Enter Workbook name to "+(g.isDefault?"Save.":`Export as ${g.description}.`));return C!==null&&r.xX.writeFile(C,R,{formatType:g.key})}return r.xX.writeFile(Z,R,{formatType:g.key})},[B,S,Q]),U=l.useCallback(()=>({contains:R=>!0,focus(){}}),[]),le=l.useMemo(()=>{const R=[];I||(r.xX.getWriteFormats().forEach(g=>{const C=g.isDefault,K={label:C?"Save Workbook":`Save Workbook as ${g.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${g.description}`},tags:g.tags,description:`Save the workbook to the desktop${C?"":` as ${g.description}`}.`};C&&(K.shortcut={key:"S",modifiers:[r.He.Ctrl]},R.push(new r.We("saveWorkbookAs",U,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[r.He.Shift,r.He.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{ge(S,null,g).catch(se=>{B?.showError?.(se)})})));const ee=C?"saveWorkbook":`saveWorkbookAs${g.key}`;R.push(new r.We(ee,U,K,se=>{ge(S,se??D,g).catch(be=>{B?.showError?.(be)})}))}),R.push(new r.We("openWorkbook",U,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[r.He.Ctrl]}},async(g=null)=>{const C={date1904:S.isDate1904(),...S.options};try{const K=await Ae(g,C);if(!K)return;const ee=K.title,se=K.workbook,be=se.getSelectedSheet();if(K.formatType.mimeType==="text/csv"){const He=S.findValidSheetName(ee);await S.doBatch(async()=>{const Je=be.getUsedRange();Je?await S.getSheets().add({name:He,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Je):B?.showMessage("The file appears to be blank.")},`Import CSV '${ee}'`)}else S?.close(),X?.(ee),M(se)}catch(K){B?.showError?.(K)}})),R.push(new r.We("openWorkbookFromUrl",U,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(g){if(!g){const C=await B?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(C.option!=="Open")return;g=C.input}g&&console.log("openWorkbookFromUrl",g)})));let Z=[];return q&&(Z=[new r.We("themeMode",U,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new r.We("defaultThemeMode",U,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new r.We("forceLightGrid",U,{label:"Force Light Grid",description:"Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new r.We("forceLightImages",U,{label:"Force Light Images",description:"Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...R,...Z,new r.Bt("help",U,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new r.Bt("showKeyboardShortcuts",U,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[r.He.Ctrl]}},()=>{}),new r.We("gotoUrlGithub",U,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new r.We("gotoUrlDiscord",U,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new r.We("gotoUrlDocumentation",U,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new r.We("gotoUrlIssue",U,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[S,D,B,I,q,W,j]),G=l.useMemo(()=>{let R=null;return R=W?W.createChildGroup(U,"standaloneWorkbook",!1):new r.Ru(U,"standaloneWorkbook"),R.addCommands(le,!0),R},[W,le]);r.GK({manager:j,commands:G,notifier:B});const{themeMode:ke}=r.vX();l.useEffect(()=>{if(!q||!G)return;const R=q.forceMode==="dark"||!q.forceMode&&ke==="dark";G.getCommand("themeMode").update({state:q.forceMode??null,label:R?"Dark Mode":"Light Mode",scopedLabels:{appearance:R?"Dark Mode":"Light Mode"}}).updateCallback(()=>{J(R?r.bX.Light:r.bX.Dark)}),G.getCommand("defaultThemeMode").update({state:!q.forceMode}).updateCallback(()=>{J(null)}),G.getCommand("forceLightGrid").update({state:q.forceLightGrid}).updateCallback(()=>{ae(!q.forceLightGrid)}),G.getCommand("forceLightImages").update({state:q.forceLightImages}).updateCallback(()=>{ne(!q.forceLightImages)})},[ke,q,le]);const{showModal:Ie}=r.c6();return l.useEffect(()=>{const R=()=>new Promise((Z,g)=>{const C=l.lazy(()=>Promise.resolve().then(()=>require("./Dix4vuDuOzj4WGCJ.cjs"))),K=Ie(C,{title:"Shortcut Keys Reference",commands:G,onDone:()=>{K.hide()},TransitionProps:{onExited:()=>{Z(!0)}}})});G.getCommand("showKeyboardShortcuts").updateCallback(()=>R()),G.getCommand("help").updateCallback(()=>R())},[le,G]),G})({workbook:i,setWorkbook:t,importExportDisabled:f,workbookTitle:a,setWorkbookTitle:s,commands:p,requestWorkbookTitle:F=>new Promise(S=>{n.current?n.current.requestWorkbookTitle((M,I)=>{S(M)},{selectAll:!0,requestReason:F}):S(u)}),themeModeOptions:x,undoManager:d,notifier:_,onExecute:P});l.useEffect(()=>{w.starting.size<=0||!w.isMounted||k(F=>{const S=new Map(F.running);return F.starting.forEach((M,I)=>{const D=()=>{k(X=>{const B=new Map(X.running);return B.delete(I),{...X,running:B}})};S.set(I,D),M(D)}),{...F,starting:new Map,running:S}})},[w]);const[$,Y]=l.useState(null);l.useEffect(()=>{w.starting.size!==0||w.running.size!==0?Y(m.jsx(r.Nu,{icon:m.jsx(r.iX,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:w.label,onMount:h,onUnmount:T,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):Y(null)},[w.starting,w.running]);const A=l.useMemo(()=>m.jsx(r.wX,{commands:z,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[z]),te={notifier:_,commands:z};return i&&(te.statusBarProps={childrenEnd:A}),m.jsxs(m.Fragment,{children:[$,c?l.cloneElement(c,te):null]})}));Dt.displayName="SnackbarAndCommandsWrapper";const Ot=l.memo(l.forwardRef((e,o)=>{const{className:i,sx:t,style:n,onElementLoad:a,onError:s,undoManager:u,errorPanel:c=r.YV,onKeyDown:d,workbook:p,createWorkbookOptions:f,onWorkbookChange:x,logo:v,importExportDisabled:y=!1,themeModeOptions:b,autoFocus:w=!1,commands:k,title:h,onTitleChange:T,titleProps:E,...N}=e,L=l.useRef(null),H=r.Te(x,[x]),_=r.Te(T??E?.onTitleChange,[T??E?.onTitleChange]),P=E?.placeHolder??"Untitled",z=b?.forceMode,{themeMode:$,source:Y}=r.vX({mode:z}),A=l.useMemo(()=>({...b,light:r.sX(!1,r.re.deepMerge(b?.theme??{},b?.light??{})),dark:r.sX(!0,r.re.deepMerge(b?.theme??{},b?.dark??{}))}),[b]),te=$===r.bX.Dark,[F,S]=l.useState(null);l.useEffect(()=>{S(u??new r.WK)},[u]);const[M,I]=l.useState(null),[D,X]=l.useState(null),B=r.SR();l.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!r.re.isPromiseLike(p)){const g={theme:B.getDefaultTheme(),...f};X(new r.bL(g))}else X(p)},[p]),l.useLayoutEffect(()=>{if(D){if(D instanceof r.bL)return I({workbook:D}),void(p!==D&&H?.(D));(async()=>{try{let g,C=await Promise.resolve(D);C&&C.source&&(C=await r.xX.read(C)),C.workbook?(V(C.title),g=C.workbook):g=C,H?.(g),I({workbook:g})}catch(g){H?.(null),I({error:g})}})()}},[D]);const[Q,q]=l.useState(null);l.useEffect(()=>{if(!F||!M)return;F.clear();const g=M?.workbook?.getTransactions();return g?g.addListener({onCommitEnd:C=>{C.getDescription()?F.addUndoOperation({description:C.getDescription(),undo:()=>(g.revert(C.getId()),Q.source?.focus(),()=>{g.restore(C.getId()),Q.source?.focus()})}):console.warn("commit has no description",C)}}):void 0},[F,M,Q]);const j=r.Te(g=>{g?F.setRepeatableOperation({description:g.label(),repeat:async()=>g.execute()}):F.setRepeatableOperation(null)},[F]),[W,V]=l.useState(h??E?.title??"");l.useEffect(()=>{V(h??E?.title??"")},[h??E?.title]),l.useEffect(()=>{_?.(W)},[W]);const[J,ae]=l.useState(null),ne=l.useMemo(()=>{const g=()=>({contains:C=>!0,focus(){}});return k?k.createChildGroup(g,"application",!1):new r.Ru(g,"application")},[k]),Ae=r.Te(g=>{ae(g.source.getViewportElement()),q(g),ne.activate("sheet"),a?.(g)},[ne]);l.useEffect(()=>{Q&&w&&Q.source?.focus(typeof w=="object"?w:void 0)},[Q]);const ge=l.useRef(null),U=l.useCallback(g=>{let C=null;return E?.hidden||(C=m.jsx(r.RK,{...E,style:{maxWidth:"100%",...E?.style},workbook:L.current,ref:ge,title:W,placeHolder:P,onTitleChange:K=>{V(K)}})),m.jsx(Lt,{...g,logo:v,mainElement:C,showFileMenu:!y,showAppearanceMenu:!!(A?.onForceLightGridChange||A?.onForceLightImagesChange||A?.onForceModeChange)})},[v,W,E,A,y,ne]);l.useEffect(()=>{const g=C=>C.preventDefault();return L.current?.addEventListener("wheel",g,{passive:!1}),()=>{L.current?.removeEventListener("wheel",g)}},[]);const le=l.useMemo(()=>m.jsx(r.Nu,{transparentBackground:!0,sx:t,style:n}),[t,n]),G=l.useCallback(({error:g})=>(s?.(g),m.jsx(c,{sx:t,style:n,error:g??"Unable to display empty workbook."})),[t,n,s]),ke=l.useMemo(()=>({...t,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:g=>g.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[t]),Ie=r.F6([L,o]),R=l.useMemo(()=>{if(!M)return le;if(M.error||!M.workbook)return G({error:M.error});let g=null,C=null,K=!1;return A&&(g=te?A.dark:A.light,C=te&&!A.forceLightGrid?A.dark:A.light,K=A.forceLightImages),m.jsx(r.kK,{sx:ke,style:n,tabIndex:0,autoFocus:!0,workbook:M.workbook,ref:Ie,renderToolbar:U,onElementLoad:Ae,onRepeatCommandChange:j,onKeyDown:ee=>{d?.(ee)},gridTheme:C,headersTheme:g,forceLightImages:K,className:r.jo(i,"sheetxl-workbook"),onContextMenu:ee=>ee.preventDefault(),...N},"WorkbookElement")},[M,W,F,le,A,N,U,ke]);let Z=m.jsx(Zt,{fallbackRender:G,children:m.jsx(dn,{maxSnack:3,domRoot:J,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(g,C,K)=>{L.current?.focus()},Components:{error:Mt},iconVariant:{success:m.jsx(r.SvgIcon,{style:{marginRight:"8px"},children:m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:m.jsx(r.rX,{style:{marginRight:"8px"}})},children:m.jsx(r.lX,{children:m.jsx(Dt,{workbook:M?.workbook,setWorkbook:X,importExportDisabled:y,titlePlaceHolder:P,titleWorkbook:W,setWorkbookTitle:V,refWorkbookTitle:ge,commands:ne,undoManager:F,themeModeOptions:A,children:R})})})});return A&&(Z=m.jsxs(r.Oj,{theme:te?A.dark:A.light,children:[A.cssBaseline?m.jsx(Ut,{}):null,Z]})),Z}));Ot.displayName="EagerStandaloneWorkbook";const mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,E:mn,c:ie},Symbol.toStringTag,{value:"Module"}));exports.CNYANG0Z7mhGYo00=fn,exports.Collapse=Fe,exports.fe=ie;
|
|
17
|
+
`))),be},[K,B,S]),ge=r.Te(async(R,Z,g)=>{if(!Z&&Y){const C=await Y("Enter Workbook name to "+(g.isDefault?"Save.":`Export as ${g.description}.`));return C!==null&&r.xX.writeFile(C,R,{formatType:g.key})}return r.xX.writeFile(Z,R,{formatType:g.key})},[B,S,Y]),U=l.useCallback(()=>({contains:R=>!0,focus(){}}),[]),le=l.useMemo(()=>{const R=[];A||(r.xX.getWriteFormats().forEach(g=>{const C=g.isDefault,V={label:C?"Save Workbook":`Save Workbook as ${g.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${g.description}`},tags:g.tags,description:`Save the workbook to the desktop${C?"":` as ${g.description}`}.`};C&&(V.shortcut={key:"S",modifiers:[r.He.Ctrl]},R.push(new r.We("saveWorkbookAs",U,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[r.He.Shift,r.He.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{ge(S,null,g).catch(se=>{B?.showError?.(se)})})));const ee=C?"saveWorkbook":`saveWorkbookAs${g.key}`;R.push(new r.We(ee,U,V,se=>{ge(S,se??D,g).catch(be=>{B?.showError?.(be)})}))}),R.push(new r.We("openWorkbook",U,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[r.He.Ctrl]}},async(g=null)=>{const C={date1904:S.isDate1904(),...S.options};try{const V=await Ie(g,C);if(!V)return;const ee=V.title,se=V.workbook,be=se.getSelectedSheet();if(V.formatType.mimeType==="text/csv"){const He=S.findValidSheetName(ee);await S.doBatch(async()=>{const Je=be.getUsedRange();Je?await S.getSheets().add({name:He,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Je):B?.showMessage("The file appears to be blank.")},`Import CSV '${ee}'`)}else S?.close(),X?.(ee),T(se)}catch(V){B?.showError?.(V)}})),R.push(new r.We("openWorkbookFromUrl",U,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(g){if(!g){const C=await B?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(C.option!=="Open")return;g=C.input}g&&console.log("openWorkbookFromUrl",g)})));let Z=[];return q&&(Z=[new r.We("themeMode",U,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new r.We("defaultThemeMode",U,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new r.We("forceLightGrid",U,{label:"Force Light Grid",description:"Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new r.We("forceLightImages",U,{label:"Force Light Images",description:"Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...R,...Z,new r.Bt("help",U,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new r.Bt("showKeyboardShortcuts",U,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[r.He.Ctrl]}},()=>{}),new r.We("gotoUrlGithub",U,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new r.We("gotoUrlDiscord",U,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new r.We("gotoUrlDocumentation",U,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new r.We("gotoUrlIssue",U,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[S,D,B,A,q,W,j]),G=l.useMemo(()=>{let R=null;return R=W?W.createChildGroup(U,"standaloneWorkbook",!1):new r.Ru(U,"standaloneWorkbook"),R.addCommands(le,!0),R},[W,le]);r.GK({manager:j,commands:G,notifier:B});const{themeMode:ke}=r.vX();l.useEffect(()=>{if(!q||!G)return;const R=q.forceMode==="dark"||!q.forceMode&&ke==="dark";G.getCommand("themeMode").update({state:q.forceMode??null,label:R?"Dark Mode":"Light Mode",scopedLabels:{appearance:R?"Dark Mode":"Light Mode"}}).updateCallback(()=>{J(R?r.bX.Light:r.bX.Dark)}),G.getCommand("defaultThemeMode").update({state:!q.forceMode}).updateCallback(()=>{J(null)}),G.getCommand("forceLightGrid").update({state:q.forceLightGrid}).updateCallback(()=>{ae(!q.forceLightGrid)}),G.getCommand("forceLightImages").update({state:q.forceLightImages}).updateCallback(()=>{ne(!q.forceLightImages)})},[ke,q,le]);const{showModal:Ae}=r.c6();return l.useEffect(()=>{const R=()=>new Promise((Z,g)=>{const C=l.lazy(()=>Promise.resolve().then(()=>require("./BMy2iuCi7fAamrFB.cjs"))),V=Ae(C,{title:"Shortcut Keys Reference",commands:G,onDone:()=>{V.hide()},TransitionProps:{onExited:()=>{Z(!0)}}})});G.getCommand("showKeyboardShortcuts").updateCallback(()=>R()),G.getCommand("help").updateCallback(()=>R())},[le,G]),G})({workbook:i,setWorkbook:t,importExportDisabled:f,workbookTitle:a,setWorkbookTitle:s,commands:p,requestWorkbookTitle:F=>new Promise(S=>{n.current?n.current.requestWorkbookTitle((T,A)=>{S(T)},{selectAll:!0,requestReason:F}):S(u)}),themeModeOptions:x,undoManager:d,notifier:_,onExecute:P});l.useEffect(()=>{w.starting.size<=0||!w.isMounted||k(F=>{const S=new Map(F.running);return F.starting.forEach((T,A)=>{const D=()=>{k(X=>{const B=new Map(X.running);return B.delete(A),{...X,running:B}})};S.set(A,D),T(D)}),{...F,starting:new Map,running:S}})},[w]);const[$,Q]=l.useState(null);l.useEffect(()=>{w.starting.size!==0||w.running.size!==0?Q(m.jsx(r.Nu,{icon:m.jsx(r.iX,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:w.label,onMount:h,onUnmount:M,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):Q(null)},[w.starting,w.running]);const I=l.useMemo(()=>m.jsx(r.wX,{commands:z,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[z]),te={notifier:_,commands:z};return i&&(te.statusBarProps={childrenEnd:I}),m.jsxs(m.Fragment,{children:[$,c?l.cloneElement(c,te):null]})}));Dt.displayName="SnackbarAndCommandsWrapper";const Ot=l.memo(l.forwardRef((e,o)=>{const{className:i,sx:t,style:n,onElementLoad:a,onError:s,undoManager:u,errorPanel:c=r.YV,onKeyDown:d,workbook:p,createWorkbookOptions:f,onWorkbookChange:x,logo:v,importExportDisabled:y=!1,themeModeOptions:b,autoFocus:w=!1,commands:k,title:h,onTitleChange:M,titleProps:E,...N}=e,L=l.useRef(null),H=r.Te(x,[x]),_=r.Te(M??E?.onTitleChange,[M??E?.onTitleChange]),P=E?.placeHolder??"Untitled",z=b?.forceMode,{themeMode:$,source:Q}=r.vX({mode:z}),I=l.useMemo(()=>({...b,light:r.sX(!1,r.re.deepMerge(b?.theme??{},b?.light??{})),dark:r.sX(!0,r.re.deepMerge(b?.theme??{},b?.dark??{}))}),[b]),te=$===r.bX.Dark,[F,S]=l.useState(null);l.useEffect(()=>{S(u??new r.WK)},[u]);const[T,A]=l.useState(null),[D,X]=l.useState(null),B=r.SR();l.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!r.re.isPromiseLike(p)){const g={theme:B.getDefaultTheme(),...f};X(new r.bL(g))}else X(p)},[p]),l.useLayoutEffect(()=>{if(D){if(D instanceof r.bL)return A({workbook:D}),void(p!==D&&H?.(D));(async()=>{try{let g,C=await Promise.resolve(D);C&&C.source&&(C=await r.xX.read(C)),C.workbook?(K(C.title),g=C.workbook):g=C,H?.(g),A({workbook:g})}catch(g){H?.(null),A({error:g})}})()}},[D]);const[Y,q]=l.useState(null);l.useEffect(()=>{if(!F||!T)return;F.clear();const g=T?.workbook?.getTransactions();return g?g.addListener({onCommitEnd:C=>{C.getDescription()?F.addUndoOperation({description:C.getDescription(),undo:()=>(g.revert(C.getId()),Y.source?.focus(),()=>{g.restore(C.getId()),Y.source?.focus()})}):console.warn("commit has no description",C)}}):void 0},[F,T,Y]);const j=r.Te(g=>{g?F.setRepeatableOperation({description:g.label(),repeat:async()=>g.execute()}):F.setRepeatableOperation(null)},[F]),[W,K]=l.useState(h??E?.title??"");l.useEffect(()=>{K(h??E?.title??"")},[h??E?.title]),l.useEffect(()=>{_?.(W)},[W]);const[J,ae]=l.useState(null),ne=l.useMemo(()=>{const g=()=>({contains:C=>!0,focus(){}});return k?k.createChildGroup(g,"application",!1):new r.Ru(g,"application")},[k]),Ie=r.Te(g=>{ae(g.source.getViewportElement()),q(g),ne.activate("sheet"),a?.(g)},[ne]);l.useEffect(()=>{Y&&w&&Y.source?.focus(typeof w=="object"?w:void 0)},[Y]);const ge=l.useRef(null),U=l.useCallback(g=>{let C=null;return E?.hidden||(C=m.jsx(r.RK,{...E,style:{maxWidth:"100%",...E?.style},workbook:L.current,ref:ge,title:W,placeHolder:P,onTitleChange:V=>{K(V)}})),m.jsx(Lt,{...g,logo:v,mainElement:C,showFileMenu:!y,showAppearanceMenu:!!(I?.onForceLightGridChange||I?.onForceLightImagesChange||I?.onForceModeChange)})},[v,W,E,I,y,ne]);l.useEffect(()=>{const g=C=>C.preventDefault();return L.current?.addEventListener("wheel",g,{passive:!1}),()=>{L.current?.removeEventListener("wheel",g)}},[]);const le=l.useMemo(()=>m.jsx(r.Nu,{transparentBackground:!0,sx:t,style:n}),[t,n]),G=l.useCallback(({error:g})=>(s?.(g),m.jsx(c,{sx:t,style:n,error:g??"Unable to display empty workbook."})),[t,n,s]),ke=l.useMemo(()=>({...t,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:g=>g.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[t]),Ae=r.F6([L,o]),R=l.useMemo(()=>{if(!T)return le;if(T.error||!T.workbook)return G({error:T.error});let g=null,C=null,V=!1;return I&&(g=te?I.dark:I.light,C=te&&!I.forceLightGrid?I.dark:I.light,V=I.forceLightImages),m.jsx(r.kK,{sx:ke,style:n,tabIndex:0,autoFocus:!0,workbook:T.workbook,ref:Ae,renderToolbar:U,onElementLoad:Ie,onRepeatCommandChange:j,onKeyDown:ee=>{d?.(ee)},gridTheme:C,headersTheme:g,forceLightImages:V,className:r.jo(i,"sheetxl-workbook"),onContextMenu:ee=>ee.preventDefault(),...N},"WorkbookElement")},[T,W,F,le,I,N,U,ke]);let Z=m.jsx(Zt,{fallbackRender:G,children:m.jsx(dn,{maxSnack:3,domRoot:J,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(g,C,V)=>{L.current?.focus()},Components:{error:Tt},iconVariant:{success:m.jsx(r.SvgIcon,{style:{marginRight:"8px"},children:m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:m.jsx(r.rX,{style:{marginRight:"8px"}})},children:m.jsx(r.lX,{children:m.jsx(Dt,{workbook:T?.workbook,setWorkbook:X,importExportDisabled:y,titlePlaceHolder:P,titleWorkbook:W,setWorkbookTitle:K,refWorkbookTitle:ge,commands:ne,undoManager:F,themeModeOptions:I,children:R})})})});return I&&(Z=m.jsxs(r.Oj,{theme:te?I.dark:I.light,children:[I.cssBaseline?m.jsx(Ut,{}):null,Z]})),Z}));Ot.displayName="EagerStandaloneWorkbook";const mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,E:mn,c:ie},Symbol.toStringTag,{value:"Module"}));exports.Collapse=Fe,exports._T90o1OBKi_z_aN6=fn,exports.fe=ie;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.1.119
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
11
|
*//**
|
|
12
|
-
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.
|
|
12
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.1.119
|
|
13
13
|
*
|
|
14
14
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
15
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
16
16
|
*//**
|
|
17
|
-
* @license @sheetxl/scripting -
|
|
17
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.1.119
|
|
18
18
|
*
|
|
19
19
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
20
20
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
21
21
|
*//**
|
|
22
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.1.
|
|
22
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.1.119
|
|
23
23
|
*
|
|
24
24
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
25
25
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -30,4 +30,4 @@ Please use Chrome or Edge if external copy and paste is required.`,k=`You do not
|
|
|
30
30
|
All copy and paste operations will be limited to the browser tab.`,jt={Safari:`The Safari browser does not support advanced copy and paste.
|
|
31
31
|
Copy and paste will be limited to within the browser tab.
|
|
32
32
|
|
|
33
|
-
Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=_t(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${Ot+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./
|
|
33
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=_t(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${Ot+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./DFZ3BGZEFLv1UyAV.cjs"));return M=new n,M}(),r=await t.compileModule(e);return ht=r,q=e,r}}),Gt=Object.freeze(Object.defineProperty({__proto__:null,ScriptingUtils:Vt},Symbol.toStringTag,{value:"Module"}));exports.$=xt,exports.i=Gt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("react"),n=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("react"),n=require("./CNeotTqitwaags5i.cjs"),$=require("./DJJ1jz7Quj4RuVCe.cjs"),Y=n.createSvgIcon(o.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),Z=n.createSvgIcon(o.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),_=n.createSvgIcon(o.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),ee=n.createSvgIcon(o.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),w=l.memo(O=>{const{label:g,value:p,options:r,onSelect:u,tabIndex:m=0,...T}=O,[b,h]=l.useState(()=>W(p,r));l.useEffect(()=>{h(W(p,r))},[p,r]);const v=n.Te(d=>{h(d.target.value),u?.(r[d.target.value])},[u,r]),a=l.useMemo(()=>Object.keys(r).map(d=>o.jsx(n.MenuItem,{value:d,children:d},d)),[r]);return o.jsxs(n.FormControl,{sx:{minWidth:135},size:"small",children:[o.jsx(n.InputLabel,{children:g}),o.jsx(n.Select,{inputProps:{tabIndex:m},value:b,label:g,onChange:v,sx:{backgroundImage:`linear-gradient(${n.alpha("#fff",n.eo(5))}, ${n.alpha("#fff",n.eo(5))})`},...T,children:a})]})}),L={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},X={Formulas:n.An.Content.Formulas,Values:n.An.Content.Values,Notes:n.An.Content.Notes,Comments:n.An.Content.Comments},Q={...X};delete Q.Values;const ne={"By Rows":!0,"By Columns":!1},W=(O,g)=>{const p=Object.keys(g);for(let r=0;r<p.length;r++){const u=p[r];if(g[u]===O)return u}},N=l.memo(O=>{const{replace:g=!1,findText:p,replaceText:r,findOptions:u,replaceOptions:m,title:T,onHide:b,onFindOrReplace:h,...v}=O,a=l.useRef(null),d=l.useRef(null),E=l.useRef(null),H=l.useRef(null),I=l.useRef(null),A=l.useRef(null),F=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[B,y]=l.useState(!1),[R,U]=l.useState(!1),[f,S]=l.useState(g),[D,k]=l.useState(!1),[K,P]=l.useState(!1),[s,c]=l.useState({findText:null,replaceText:null,replace:g,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:n.q.Orientation.Row,fields:[n.An.Content.Formulas]},scope:L.Sheet}),j=n.Te(async(e,t,i,C)=>{if(!h)return;const x={...s};x.replaceOptions={...x.replaceOptions},x.findOptions={...x.findOptions},x.replaceOptions.maxCount=i?void 0:1,x.replace=t,t&&s.findOptions.fields?.[0]===n.An.Content.Values&&(x.findOptions.fields=[n.An.Content.Formulas]),x.findOptions.reverse=!e;const J=await h({autoFocus:C,...x});k(J===0)},[s,h]);l.useEffect(()=>{k(!1)},[s,R,f]);const M=n.Te((e,t)=>{if(e.keyCode===n.wn.Enter){if(!s.findText)return;let i=!0,C=!1;e.shiftKey&&(i=!1),t?(e.ctrlKey&&e.altKey&&(C=!0),F(e,C?A.current:I.current)):F(e,i?H.current:E.current),j(i,t,C,!1)}},[s]),q=l.useRef(null);l.useLayoutEffect(()=>{c(e=>{const t={...e};t.findText=p&&p.length>0?p:e.findText??"",y(!0),r!==void 0&&(t.replaceText=r),u&&(t.findOptions={...t.findOptions,...u}),t.replaceText||(t.replaceText=""),t.replaceOptions&&(t.replaceOptions={...t.replaceOptions}),m&&(t.replaceOptions={...t.replaceOptions,...m}),s.findOptions.fields?.[0]||(s.findOptions.fields=[n.An.Content.Formulas]);const i=!(!m&&r===void 0);return i&&S(i),t}),K||q.current?.focus()},[p,r,u,m]),l.useEffect(()=>{f?(s.findOptions.fields[0],n.An.Content.Values):y(!0)},[f]),l.useEffect(()=>{if(B&&a.current&&s.findText===a.current.value)return a.current===document.activeElement||a.current.contains(document.activeElement)?(a.current?.select(),void y(!1)):void a.current.addEventListener("focus",()=>{a.current?.select(),y(!1)},{once:!0})},[B,s]);const[G,{width:V}]=n.eg();return o.jsx(n.LH,{title:T??(f?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",refWindow:q,onHide:b,onFocus:()=>P(!0),onBlur:()=>{P(!1),k(!1)},PaperProps:{elevation:K?3:1},...v,children:o.jsxs(n.DialogContent,{dividers:!0,ref:G,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if(e.key==="h"&&e.ctrlKey)S(!0),a.current?.contains(document.activeElement)&&d.current?.focus();else if(e.key==="f"&&e.ctrlKey)a.current?.focus();else if(e.key==="c"&&e.altKey)c(t=>{const i={...t};return i.findOptions.matchCase=!t.findOptions.matchCase,i});else if(e.key==="e"&&e.altKey)c(t=>{const i={...t};return i.findOptions.matchEntireCell=!t.findOptions.matchEntireCell,i});else{if(e.key!=="r"||!e.altKey)return;c(t=>{const i={...t};return i.findOptions.useRegex=!t.findOptions.useRegex,i})}e.preventDefault()},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[o.jsx(n.uH,{selected:R,onSelectToggle:e=>{U(e)},preventFocus:!0,label:"Toggle Additional Options",icon:n.Le(o.jsx(n.QK,{}))}),o.jsx(n.uH,{selected:f,onSelectToggle:e=>{S(e)},preventFocus:!0,label:"Toggle Replace",icon:n.Le(o.jsx(n.JK,{})),shortcut:{key:f?"F":"H",modifiers:[n.He.Ctrl]}})]}),o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[o.jsx(n.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${n.alpha("#fff",n.eo(5))}, ${n.alpha("#fff",n.eo(5))})`},inputProps:{draggable:!1,ref:a,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:o.jsx(n.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:o.jsxs(n.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[o.jsx(n.uH,{selected:s.findOptions.matchCase,onSelectToggle:e=>{c(t=>{const i={...t};return i.findOptions.matchCase=e,i})},label:"Match Case",shortcut:{key:"C",modifiers:[n.He.Alt]},icon:n.Le(o.jsx(n.eX,{}))}),o.jsx(n.uH,{selected:s.findOptions.matchEntireCell,onSelectToggle:e=>{c(t=>{const i={...t};return i.findOptions.matchEntireCell=e,i})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[n.He.Alt]},icon:n.Le(o.jsx(n.tX,{}))}),o.jsx(n.uH,{selected:s.findOptions.useRegex,onSelectToggle:e=>{c(t=>{const i={...t};return i.findOptions.useRegex=e,i})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[n.He.Alt]},icon:n.Le(o.jsx(n.oX,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>D?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>D?`${e.palette.error.main} !important`:void 0}},value:s.findText??"",onChange:e=>{c(t=>{const i={...t};return i.findText=e.target.value,i})},onKeyDown:e=>M(e,!1),onContextMenu:e=>{e.stopPropagation()}}),o.jsx(n.uH,{selected:s.findOptions.reverse,onSelectToggle:e=>{j(!1,!1)},touchRippleRef:E,label:"",shortcut:{key:"Enter",modifiers:[n.He.Shift]},icon:n.Le(s.findOptions.orientation!==n.q.Orientation.Column?o.jsx(Y,{}):o.jsx(ee,{})),disabled:!s.findText}),o.jsx(n.uH,{selected:!s.findOptions.reverse,onSelectToggle:e=>{j(!0,!1)},touchRippleRef:H,label:"Next Match",shortcut:{key:"Enter"},icon:n.Le(s.findOptions.orientation!==n.q.Orientation.Column?o.jsx(_,{}):o.jsx(Z,{})),disabled:!s.findText})]}),o.jsx($.Collapse,{in:f,timeout:z,onExit:()=>{a.current?.focus()},children:o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[o.jsx(n.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${n.alpha("#fff",n.eo(5))}, ${n.alpha("#fff",n.eo(5))})`},inputProps:{ref:d,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:s.replaceText??"",onChange:e=>{c(t=>{const i={...t};return i.replaceText=e.target.value,i})},onKeyDown:e=>M(e,!0),onContextMenu:e=>{e.stopPropagation()}}),o.jsx(n.uH,{onSelectToggle:e=>{j(!0,!0)},touchRippleRef:I,label:"Replace",shortcut:{key:"Enter"},icon:n.Le(o.jsx(n.hV,{})),disabled:!s.findText}),o.jsx(n.uH,{onSelectToggle:e=>{j(!0,!0,!0)},touchRippleRef:A,label:"Replace All",shortcut:{key:"Enter",modifiers:[n.He.Ctrl,n.He.Alt]},icon:n.Le(o.jsx(n.nX,{})),disabled:!s.findText})]})})]})]}),o.jsx($.Collapse,{in:R,timeout:z,onExit:()=>{a.current?.focus()},children:o.jsxs(n.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.Qt,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),o.jsxs(n.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[o.jsx(w,{label:"Within",value:s.scope,options:L,onSelect:e=>{c(t=>{const i={...t};return i.scope=e,i})}}),o.jsx(w,{label:"Search",value:s.findOptions.orientation!==n.q.Orientation.Column,options:ne,onSelect:e=>{c(t=>{const i={...t};return i.findOptions.orientation=e?n.q.Orientation.Row:n.q.Orientation.Column,i})}}),o.jsx(w,{label:"Look in",value:f&&s.findOptions.fields?.[0]===n.An.Content.Values?n.An.Content.Formulas:s.findOptions.fields?.[0],options:f?Q:X,onSelect:e=>{c(t=>{const i={...t};return i.findOptions.fields=[e],i})}})]})]})})]})})});exports.FindReplaceWindow=N,exports.ScopeOptions=L,exports.default=N;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.1.119
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|