@sheetxl/mcp 0.0.0-stage → 0.8.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -0
- package/README.md +72 -2
- package/agent/instructions.md +66 -0
- package/assets/9U9XCqqdn-q3i2fj.js +123 -0
- package/assets/B-MqXm_7luDLwazY.js +596 -0
- package/assets/B2Ek-DWpZMGJ0V1Z.js +18 -0
- package/assets/B2udpZ-uIaql3AUh.js +104 -0
- package/assets/B4VnJacrzr1x4PHR.js +402 -0
- package/assets/B5lHOOQ_rkP4Mi2r.js +638 -0
- package/assets/B7gUyrfLln3TiyKM.js +14 -0
- package/assets/B9US2ZrF93KOjmAx.js +22 -0
- package/assets/BBb_3gEGzmEzbTIk.js +359 -0
- package/assets/BCy1zP97fsiIcvj6.js +18 -0
- package/assets/BFXeoFUbuc4IKTz9.js +28 -0
- package/assets/BFdeov2e_xUQPEY_.js +202 -0
- package/assets/BG5kgbDRXMc0re6W.js +242 -0
- package/assets/BJxfinOazQqqByc-.js +105 -0
- package/assets/BOPsJmq7v7HOKUkO.js +32 -0
- package/assets/BPwmBu_aouERJjiW.js +45 -0
- package/assets/BQMDOjNBMjAx9WiW.js +3011 -0
- package/assets/BQbF1RkUH8WyXqSD.js +780 -0
- package/assets/BRzp6DEIYUgM3NkN.js +369 -0
- package/assets/BSxTn2BhkEEeF9x_.js +2346 -0
- package/assets/BTQhJQ3e0hsiousD.js +28 -0
- package/assets/BZPTaa0WjpoUAbgZ.js +35 -0
- package/assets/BbAmA46MhQSu3ZF_.js +119 -0
- package/assets/BbcUxIZe3YXywsQR.js +28 -0
- package/assets/BeLr36oL3jmeXFFi.js +58 -0
- package/assets/Bg95xYj5siqhHVEz.js +594 -0
- package/assets/Bh0PNKlrR4VAqnP8.js +60500 -0
- package/assets/BjqQjxBuoXza8oqg.js +362 -0
- package/assets/BlPubAFi7DY7VrAo.js +33 -0
- package/assets/BleMG0hAQgjE8fTa.js +7 -0
- package/assets/Bn8D2bebQ2tFfwQt.js +310 -0
- package/assets/BrcQmHcE7Hcr1erJ.js +24 -0
- package/assets/BsQZI1vXTRE63Zy-.js +2368 -0
- package/assets/BtjqpAKczftx91BQ.js +96 -0
- package/assets/Btys7KwtvV3hz2F6.js +656 -0
- package/assets/BuUEsifnQALe49uk.js +857 -0
- package/assets/By-7OWXShMlFFejV.js +119 -0
- package/assets/C0CiMKC3lWK1z9p5.js +449 -0
- package/assets/C2OrZ8LZ-TI6eYG0.js +22 -0
- package/assets/C4z2IilWTuu2TWXw.js +3917 -0
- package/assets/C7ONfuYIWRmDu_vs.js +319 -0
- package/assets/C7Z1li2XjWi6bkrp.js +1556 -0
- package/assets/C97xDe_wBbLZh_uW.js +35 -0
- package/assets/CGBGyaCGdlZFQYK0.js +447 -0
- package/assets/CJ5WQnaoCsdr5gf4.js +1783 -0
- package/assets/CMK6tIDVqYYvK4GZ.js +55 -0
- package/assets/CMWAsUQ66V8fYrME.js +223 -0
- package/assets/CNz3LdmvsOEJoLO9.js +12 -0
- package/assets/CWVWdbY1B1-WLl9k.js +199 -0
- package/assets/CWl6oHiJxkNKRixk.js +17 -0
- package/assets/CXHslDxkWCuEcCSQ.js +13 -0
- package/assets/CZTSZL3T_f-vSXqM.js +7 -0
- package/assets/CduNzsdbTigxH-ZK.js +5220 -0
- package/assets/CecTe22WURiXbVdY.js +2260 -0
- package/assets/Cf2dcwmmmf13Rywg.js +146 -0
- package/assets/Cf9LpgZz-W5blzy_.js +27 -0
- package/assets/Cfhv_Yw_LT8VzAMt.js +255 -0
- package/assets/Cg51xaLRUkVOMdCZ.js +144 -0
- package/assets/ChWpsFGl-BYOnX_A.js +142 -0
- package/assets/ClNQN3vEg5b5qUDp.js +10289 -0
- package/assets/Crt2kLdGIlBHANgg.js +28 -0
- package/assets/CudNpUD78SrtJIiy.js +610 -0
- package/assets/CvngwB17_ve4W49b.js +639 -0
- package/assets/CwPBmcY6xSP8dNlh.js +51 -0
- package/assets/CxjchwpiqxPM1XKd.js +304 -0
- package/assets/D-ffk16w8c5w0mxI.js +71 -0
- package/assets/D0CHDsemn0S31ltt.js +32 -0
- package/assets/D7oUtYjetuykGhQ5.js +18 -0
- package/assets/D8J14MLlN2HRXdXB.js +20 -0
- package/assets/DA_ar3QKLKtJ9fJD.js +37 -0
- package/assets/DB-tkqI6wFXDKEfB.js +118 -0
- package/assets/DD8HNAUFroTCuD-b.js +7514 -0
- package/assets/DDnwKPJSznyfYDZS.js +49 -0
- package/assets/DEW2GxfGYqVFvrfg.js +23 -0
- package/assets/DH7sGHzxUqIQkDnd.js +16 -0
- package/assets/DJiLWtmPR2OQNjzi.js +19 -0
- package/assets/DKLm4nWzynGw1Kr9.js +15 -0
- package/assets/DPCKMM7sgWbrtB8z.js +81 -0
- package/assets/DTfl-4Iboi6TQU5m.js +37 -0
- package/assets/DVchxwp6w6lu2Ihu.js +7 -0
- package/assets/DaoSWy3EFlqpZaLr.js +4437 -0
- package/assets/DcWTBOi_iBFc6U4J.js +8338 -0
- package/assets/Dht2mcOSyYlPY32b.js +14 -0
- package/assets/Diee6f_qAmcZBd2_.js +52 -0
- package/assets/DkibD_CEVePaoj_y.js +7 -0
- package/assets/DlBdhv6NHgrNp5Yo.js +7 -0
- package/assets/DoILAmhKUOlKWRVw.js +12 -0
- package/assets/DpdHDTFOeuzDVNEe.js +405 -0
- package/assets/DsCI_ZYm_jDjXF3J.js +12996 -0
- package/assets/DvUUArnZwoYOKOuk.js +12 -0
- package/assets/DwLZpYUp85UHBE3H.js +63 -0
- package/assets/DwWngYJTgC0KLbih.js +184 -0
- package/assets/Dz8UUJ7Xc2oN5PBG.js +45 -0
- package/assets/FS9NbEKgQvz5wqvZ.js +1135 -0
- package/assets/F_f0jJqM5MrXGbwC.js +86 -0
- package/assets/FzNG48GE_wso6RII.js +173 -0
- package/assets/JO3zH9hupFSV6vj2.js +15 -0
- package/assets/LEJp05fjmflKgyqF.js +1760 -0
- package/assets/LyLlBk--VJD2V-f8.js +351 -0
- package/assets/OVRdpPUzR0-ueTxE.js +1860 -0
- package/assets/PpFbmF0DFeUdpb9I.js +145 -0
- package/assets/S16s2h9qoYVBlVEa.js +9137 -0
- package/assets/SHZe9VOU1prGs1F9.js +19 -0
- package/assets/U1XXGEPuuqIAzYl1.js +8 -0
- package/assets/ZuYfVKlp41IJnrOS.js +540 -0
- package/assets/_d5XJ7dn1CKKYrep.js +1131 -0
- package/assets/_fUXIv6nKvgZkhxn.js +23 -0
- package/assets/fDMpDhXp36CatF-G.js +23 -0
- package/assets/hulrR0PldUxMJm_F.js +504 -0
- package/assets/iujMYIEPx_v3sdPf.js +9109 -0
- package/assets/jPUOH4FHF4b-rapv.js +171 -0
- package/assets/jadLBUNBVR9mbZ35.js +4036 -0
- package/assets/jiEe5eKV3BFPBWfi.js +6294 -0
- package/assets/oxjm7Yr7u7MeaO5P.js +37 -0
- package/assets/vZZi_iKYHm05gAye.js +30 -0
- package/assets/wfVh0olISLRWdv9Q.js +47 -0
- package/assets/xmTQJJVyCrcq77WR.js +63 -0
- package/assets/xnhBSX6lAcmBM65y.js +32 -0
- package/index.js +8070 -0
- package/lib.js +7 -0
- package/licenses/dependencies.txt +1552 -0
- package/package.json +44 -3
- package/resources/contents.json +333 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/contents.json +646 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
- package/resources/locales/@sheetxl/formulas/contents.json +9 -0
- package/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
- package/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
- package/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
- package/resources/locales/@sheetxl/sdk/contents.json +19 -0
- package/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
- package/screenshot-page/assets/-cpi3yOZYn6GsYN4.js +9 -0
- package/screenshot-page/assets/-i_fTASJeu9NdNH_.js +7 -0
- package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +1 -0
- package/screenshot-page/assets/21oAESJyBGXeHegm.js +2 -0
- package/screenshot-page/assets/3Ls_kOvlQseMV8Q0.js +1 -0
- package/screenshot-page/assets/4qZpl2QCzneWdmJO.js +1 -0
- package/screenshot-page/assets/6IEV7KeOEbBdrthj.js +1 -0
- package/screenshot-page/assets/8QrkTrKHDnMBb7q4.js +1 -0
- package/screenshot-page/assets/9w0ECZmzGUyk3F_O.js +1 -0
- package/screenshot-page/assets/AjS2PipZDIH3BXB2.js +1 -0
- package/screenshot-page/assets/B-KIwD5F_5S-NsPg.js +1 -0
- package/screenshot-page/assets/B-sAzW5ROrhvMGM4.js +1 -0
- package/screenshot-page/assets/B0FQypGas6gbGT_U.js +1 -0
- package/screenshot-page/assets/B2IQMVqTZT1rUnib.js +1 -0
- package/screenshot-page/assets/B2MJPcMcsuv6FekC.js +1 -0
- package/screenshot-page/assets/B2g3jiFIQ4Qjh5gG.js +1 -0
- package/screenshot-page/assets/B4PbXdzBe9BsoZ0e.js +2 -0
- package/screenshot-page/assets/B5GO9v4p9L70Xb9i.js +1 -0
- package/screenshot-page/assets/B8y_eLNCGnXLEIaE.js +1 -0
- package/screenshot-page/assets/BEuMvXYIa9A1JacY.js +1 -0
- package/screenshot-page/assets/BEwl-ucV9Jfr0RoC.js +1 -0
- package/screenshot-page/assets/BFaiQZKle44Rhyou.js +1 -0
- package/screenshot-page/assets/BHqg55S-4_OoAu3P.js +2 -0
- package/screenshot-page/assets/BNgLvS2bLOYKRguv.js +1 -0
- package/screenshot-page/assets/BQAN82ftWBiLJT3r.js +1 -0
- package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +1 -0
- package/screenshot-page/assets/BQnELVV0uR4T4ItQ.js +1 -0
- package/screenshot-page/assets/BRVZJ0OGJg9XJro6.js +1 -0
- package/screenshot-page/assets/BSdFVGZNhU6YHbMI.js +2 -0
- package/screenshot-page/assets/BTMW3ukmc44U2fy7.js +1 -0
- package/screenshot-page/assets/BTOQaSn9DDyJPUlX.js +1 -0
- package/screenshot-page/assets/BTboCICZ-951XWsi.js +1 -0
- package/screenshot-page/assets/BUGXf2DEBog16Slb.js +2 -0
- package/screenshot-page/assets/BUjI304IvdJnFXH3.js +1 -0
- package/screenshot-page/assets/B_W2QroTKADz3ABp.js +2 -0
- package/screenshot-page/assets/Baz0SC2AgGyxMX72.js +1 -0
- package/screenshot-page/assets/BbP9KThfrodyosvn.js +1 -0
- package/screenshot-page/assets/BcOdl17EeFSxnAiq.js +1 -0
- package/screenshot-page/assets/BclKeOKIOBjijhsu.js +1 -0
- package/screenshot-page/assets/Bf7xq8PyF4ohjMzP.js +2 -0
- package/screenshot-page/assets/BimyzECCZl-NESff.js +1 -0
- package/screenshot-page/assets/Bj-vfAT28PK-tWWa.js +2 -0
- package/screenshot-page/assets/BkLH7JH3A93TXFJi.js +1 -0
- package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +3 -0
- package/screenshot-page/assets/BnoVwUBEor8NgQNs.js +4 -0
- package/screenshot-page/assets/BowRIybLgENunTOT.js +1 -0
- package/screenshot-page/assets/Bp7se0JaDGrzfSA_.js +1 -0
- package/screenshot-page/assets/Bx61vmiWY0Xvx9qs.js +1 -0
- package/screenshot-page/assets/ByY3fmwyDPAyOLdo.js +1 -0
- package/screenshot-page/assets/Bz5V1tmiy5gbT9ys.js +1 -0
- package/screenshot-page/assets/Bz9v1lgjvbu4QnOs.js +2 -0
- package/screenshot-page/assets/BzQ5GyiXq8gTz-H-.js +1 -0
- package/screenshot-page/assets/C1k_VrZqlpiUigCP.js +1 -0
- package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +1 -0
- package/screenshot-page/assets/C6oLDVnuCS9LGkkH.js +1 -0
- package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +1 -0
- package/screenshot-page/assets/C9SC-cEIt6gdhZRw.js +1 -0
- package/screenshot-page/assets/CE8MCCIiwjOVwBBW.js +1 -0
- package/screenshot-page/assets/CG3ynup87FmG-kkX.js +1 -0
- package/screenshot-page/assets/CHlWgOAlcRCjVuhg.js +1 -0
- package/screenshot-page/assets/CIged53b3hHKxa-o.js +1 -0
- package/screenshot-page/assets/CNQczIR5xcE5u5fT.js +1 -0
- package/screenshot-page/assets/CSUd8n1H0VBfREnk.js +2 -0
- package/screenshot-page/assets/CSlBTkRDITCC8JRB.js +1 -0
- package/screenshot-page/assets/CV2jr9hpQOG2OG0C.js +1 -0
- package/screenshot-page/assets/CXGgKVbVXjWzE0p6.js +1 -0
- package/screenshot-page/assets/CXKCmZ_TRyGaB9Ob.js +1 -0
- package/screenshot-page/assets/CXUO3vYip3JPSJ7A.js +1 -0
- package/screenshot-page/assets/CXwbGzavyvYgDbWU.js +1 -0
- package/screenshot-page/assets/CZf9s6otzzoaBlSs.js +1 -0
- package/screenshot-page/assets/CZvwQEeVhBilgKLG.js +1 -0
- package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +2 -0
- package/screenshot-page/assets/CbUDukmvDZmVfhJH.js +1 -0
- package/screenshot-page/assets/CbXtAM7H-Jg_J0dk.js +1 -0
- package/screenshot-page/assets/CctIRGMFmARVi2KT.js +1 -0
- package/screenshot-page/assets/Cenh1POxiGMxIQlv.js +1 -0
- package/screenshot-page/assets/ChSvXfVMLxZsP9zG.js +8 -0
- package/screenshot-page/assets/Ci5NtzhJLll1kxGf.js +10 -0
- package/screenshot-page/assets/CjngjJNheGaVRvZp.js +1 -0
- package/screenshot-page/assets/ClzdIJrFdInttVJA.js +1 -0
- package/screenshot-page/assets/CnPgk3HcIziOcskY.js +10 -0
- package/screenshot-page/assets/CnXLpFE_vFrJ5Jbf.js +1 -0
- package/screenshot-page/assets/CpbohdgEaEsVDi9J.js +1 -0
- package/screenshot-page/assets/CqR3hGrC956TkCMj.js +20 -0
- package/screenshot-page/assets/Cr1tQKUBVKOQl3QC.js +1 -0
- package/screenshot-page/assets/CwqNb7JYzC03lCj0.js +1 -0
- package/screenshot-page/assets/CykecBozGGFl26KA.js +3940 -0
- package/screenshot-page/assets/CzTizxHhb-CI_ajE.js +1 -0
- package/screenshot-page/assets/CzhH7lTYQrYGHct6.js +1 -0
- package/screenshot-page/assets/CzzEl3lAkZopkwhC.js +1 -0
- package/screenshot-page/assets/D-LgRj0s-PAVqY-L.js +1 -0
- package/screenshot-page/assets/D-XR1MGhwn7Jqj60.js +1 -0
- package/screenshot-page/assets/D47ePD4x1lVazNdl.js +7 -0
- package/screenshot-page/assets/D66vSE1ConAuENmB.js +586 -0
- package/screenshot-page/assets/D6Jpaz2YkhOfzxDB.js +1 -0
- package/screenshot-page/assets/D9zCVZpnJBfNSNO2.js +1 -0
- package/screenshot-page/assets/DCVUZ_ayOXFwV2d_.js +3 -0
- package/screenshot-page/assets/DDQWM8rNYCYzKa9R.js +1 -0
- package/screenshot-page/assets/DFE-fKq5NV7_O8V6.js +1 -0
- package/screenshot-page/assets/DGXDfjkGZjMRAXPg.js +5 -0
- package/screenshot-page/assets/DHa5_U58lSwCnpmG.js +1 -0
- package/screenshot-page/assets/DKVB6ddRfDJatYid.js +1 -0
- package/screenshot-page/assets/DK_QSosKV62NDcuT.js +42 -0
- package/screenshot-page/assets/DM9U7u7FQK0jcwh4.js +1 -0
- package/screenshot-page/assets/DNDaHmkQrQTaCHhV.js +1 -0
- package/screenshot-page/assets/DQ0kGd99-fXxuNYk.js +1 -0
- package/screenshot-page/assets/DQWHkaQeNXft9j8b.js +2 -0
- package/screenshot-page/assets/DRVfGdmVBvktrZ1t.js +1 -0
- package/screenshot-page/assets/DRrM-dY9nM7nDRpV.js +1 -0
- package/screenshot-page/assets/DT2x1gO3f2G5NfeB.js +1 -0
- package/screenshot-page/assets/DTFRGj188QuLKEXw.js +1 -0
- package/screenshot-page/assets/DU3FmyUH0RjPIBd-.js +1 -0
- package/screenshot-page/assets/DVueE--eOrZPrqrm.js +1 -0
- package/screenshot-page/assets/DXQLzGmxoyN3kfQi.js +27 -0
- package/screenshot-page/assets/DXWWyJlMSWgDFxs1.js +10 -0
- package/screenshot-page/assets/DYJSIlNxrNw8qk-w.js +1 -0
- package/screenshot-page/assets/DYRbCudWTaiE_Sjc.js +1 -0
- package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +1 -0
- package/screenshot-page/assets/DaKZ4-Li_ULIIwnK.js +1 -0
- package/screenshot-page/assets/DadZXeaVK5UXSHIi.js +1 -0
- package/screenshot-page/assets/Db_VGqQo2G2JgXWW.js +1 -0
- package/screenshot-page/assets/DceNHPrRLok2At-X.js +1 -0
- package/screenshot-page/assets/DcrVJCyDwGKeil2U.js +1 -0
- package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +1 -0
- package/screenshot-page/assets/DmMZ4pd492HPw_3_.js +1 -0
- package/screenshot-page/assets/DmbuCapSSCYIa3yk.js +1 -0
- package/screenshot-page/assets/Dpepompn_NhpSncR.js +1 -0
- package/screenshot-page/assets/DqYhS4mcQfOe96hU.js +1 -0
- package/screenshot-page/assets/Dsx0NUmGIxS7SvZ8.js +1 -0
- package/screenshot-page/assets/DyGpT6t96jrvgJes.js +1 -0
- package/screenshot-page/assets/DyLWQxXXTw5uwPVy.js +30 -0
- package/screenshot-page/assets/DyYVf8O1rhg3YmjW.js +1 -0
- package/screenshot-page/assets/DyxJBLjUkeDuu96F.js +1 -0
- package/screenshot-page/assets/HclGiUj8dZXDFmoM.js +1 -0
- package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +2 -0
- package/screenshot-page/assets/J73KTOmdZGNmnq-z.js +1 -0
- package/screenshot-page/assets/J_xJVgE7YlmeU-ZO.js +6 -0
- package/screenshot-page/assets/KoxRo2J_cwB_yOd5.js +2 -0
- package/screenshot-page/assets/LVtV_IPhPQroHRui.js +1 -0
- package/screenshot-page/assets/MNoPOsydrUv1UGU8.js +2 -0
- package/screenshot-page/assets/Q5EKmzoJZCE81Om-.js +2 -0
- package/screenshot-page/assets/TfhknTx8vxQkw4zV.js +2 -0
- package/screenshot-page/assets/VvqAh6BWzaD5OUPF.js +1 -0
- package/screenshot-page/assets/fGlPAximvsxzPzGA.js +1 -0
- package/screenshot-page/assets/gG0AFZ45VxS_moMw.js +2 -0
- package/screenshot-page/assets/hp_-JA1DMK4Yoztn.js +57 -0
- package/screenshot-page/assets/l32n8O_A78Qqduv3.js +1 -0
- package/screenshot-page/assets/nHThFXCAZFOM_npq.js +1 -0
- package/screenshot-page/assets/pRykm05ElquZBk_a.js +1 -0
- package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +1 -0
- package/screenshot-page/assets/sHBomL5R4-_px8rD.js +1 -0
- package/screenshot-page/assets/skRJ2qjA7kcmnOsh.js +39 -0
- package/screenshot-page/assets/w3bV7wggRayUYTd-.js +1 -0
- package/screenshot-page/assets/zFbb8ESzwR_bE7IQ.js +1 -0
- package/screenshot-page/index.html +44 -0
- package/screenshot-page/resources/contents.json +333 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/contents.json +646 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas/contents.json +9 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/contents.json +19 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
- package/types/index.d.ts +1 -0
- package/types/lib.d.ts +2 -0
- package/types/scripting-api.json +10855 -0
- package/types/scripting-enums.json +1339 -0
- package/types/scripting.d.ts +49295 -0
- package/types/src/SessionRegistry.d.ts +630 -0
- package/types/src/index.d.ts +3 -0
- package/types/src/instances.d.ts +104 -0
- package/types/src/lib/Types.d.ts +17 -0
- package/types/src/lib/index.d.ts +2 -0
- package/types/src/lib/runReport.d.ts +158 -0
- package/types/src/lib.d.ts +2 -0
- package/types/src/prepareRun.d.ts +56 -0
- package/types/src/relay.d.ts +102 -0
- package/types/src/screenshot.d.ts +23 -0
- package/types/src/server.d.ts +37 -0
- package/types/src/taskStore.d.ts +28 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.15
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
var e = class {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
this._onExecute = e;
|
|
10
|
+
}
|
|
11
|
+
execute(e) {
|
|
12
|
+
return this._onExecute(e);
|
|
13
|
+
}
|
|
14
|
+
start() {
|
|
15
|
+
return Promise.resolve();
|
|
16
|
+
}
|
|
17
|
+
terminate() {}
|
|
18
|
+
};
|
|
19
|
+
async function t() {
|
|
20
|
+
const { compileModule: t } = await import("./BG5kgbDRXMc0re6W.js"), r = new e((e) => t(e));
|
|
21
|
+
return await r.start(), r;
|
|
22
|
+
}
|
|
23
|
+
export { t as createCompilerWorker };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.15
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
var e = { PIVOTBY: {
|
|
8
|
+
s: "Aggregate values by rows and columns.",
|
|
9
|
+
p: {
|
|
10
|
+
rowFields: { d: "The range or array containing the row fields." },
|
|
11
|
+
colFields: { d: "The range or array containing the column fields." },
|
|
12
|
+
values: { d: "The range or array containing the value fields." },
|
|
13
|
+
fn: { d: "The function used to do the aggregations: a LAMBDA, a function name such as SUM, or an array of them." },
|
|
14
|
+
fieldHeaders: { d: "A number between 0 and 3 that specifies whether the field data has headers and whether field headers should be return in the results." },
|
|
15
|
+
rowTotalDepth: { d: "Show totals for the row fields. 0 for none, 1 for grand totals, 2 for grand totals and first level subtotals, etc. A negative number shows them at the top." },
|
|
16
|
+
rowSortOrder: { d: "The column index to sort the row fields on. A negative index will sort in reverse order." },
|
|
17
|
+
colTotalDepth: { d: "Show totals for the column fields. 0 for none, 1 for grand totals, 2 for grand totals and first level subtotals, etc. A negative number shows them at the left." },
|
|
18
|
+
colSortOrder: { d: "The column index to sort the column fields on. A negative index will sort in reverse order." },
|
|
19
|
+
filterArray: { d: "An array of boolean where TRUE represents a row to retain." },
|
|
20
|
+
relativeTo: { d: "Defines what PERCENTOF is calculated relative to. 0 for column totals, 1 for row totals, 2 for the grand total, 3 for parent column totals, 4 for parent row totals." }
|
|
21
|
+
}
|
|
22
|
+
} };
|
|
23
|
+
export { e as default };
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.15
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { D as e } from "./BQMDOjNBMjAx9WiW.js";
|
|
8
|
+
import { t } from "./DB-tkqI6wFXDKEfB.js";
|
|
9
|
+
var r, n, a = class e {
|
|
10
|
+
static {
|
|
11
|
+
this.SIGNATURE = [
|
|
12
|
+
208,
|
|
13
|
+
207,
|
|
14
|
+
17,
|
|
15
|
+
224,
|
|
16
|
+
161,
|
|
17
|
+
177,
|
|
18
|
+
26,
|
|
19
|
+
225
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.FATSECT = 4294967293;
|
|
24
|
+
}
|
|
25
|
+
static {
|
|
26
|
+
this.DIFSECT = 4294967292;
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.ENDOFCHAIN = 4294967294;
|
|
30
|
+
}
|
|
31
|
+
static {
|
|
32
|
+
this.FREESECT = 4294967295;
|
|
33
|
+
}
|
|
34
|
+
static {
|
|
35
|
+
this.NOSTREAM = 4294967295;
|
|
36
|
+
}
|
|
37
|
+
static {
|
|
38
|
+
this.SECTOR_SIZE = 512;
|
|
39
|
+
}
|
|
40
|
+
static {
|
|
41
|
+
this.MINI_SECTOR_SIZE = 64;
|
|
42
|
+
}
|
|
43
|
+
static {
|
|
44
|
+
this.MINI_CUTOFF = 4096;
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
this.DIR_ENTRY_SIZE = 128;
|
|
48
|
+
}
|
|
49
|
+
static {
|
|
50
|
+
this.DIFAT_HEADER_COUNT = 109;
|
|
51
|
+
}
|
|
52
|
+
constructor() {
|
|
53
|
+
this.sectors = [], this.fat = [];
|
|
54
|
+
}
|
|
55
|
+
static write(t) {
|
|
56
|
+
return new e()._build(t);
|
|
57
|
+
}
|
|
58
|
+
allocate(t) {
|
|
59
|
+
const r = e.SECTOR_SIZE, n = Math.max(1, Math.ceil(t.byteLength / r)), a = this.sectors.length;
|
|
60
|
+
for (let i = 0; i < n; i++) {
|
|
61
|
+
const s = new Uint8Array(r);
|
|
62
|
+
s.set(t.subarray(i * r, Math.min((i + 1) * r, t.byteLength))), this.sectors.push(s), this.fat.push(i === n - 1 ? e.ENDOFCHAIN : a + i + 1);
|
|
63
|
+
}
|
|
64
|
+
return a;
|
|
65
|
+
}
|
|
66
|
+
_build(t) {
|
|
67
|
+
const { SECTOR_SIZE: r, MINI_SECTOR_SIZE: n, MINI_CUTOFF: a, ENDOFCHAIN: i, FREESECT: s, FATSECT: c, DIFSECT: o, NOSTREAM: y, DIR_ENTRY_SIZE: h, DIFAT_HEADER_COUNT: l } = e, p = [];
|
|
68
|
+
let f = 0;
|
|
69
|
+
const u = t.map((e) => {
|
|
70
|
+
if (e.data.byteLength >= a) return {
|
|
71
|
+
entry: e,
|
|
72
|
+
mini: !1,
|
|
73
|
+
start: -1
|
|
74
|
+
};
|
|
75
|
+
const t = f, r = Math.max(1, Math.ceil(e.data.byteLength / n)), i = new Uint8Array(r * n);
|
|
76
|
+
return i.set(e.data), p.push(i), f += r, {
|
|
77
|
+
entry: e,
|
|
78
|
+
mini: !0,
|
|
79
|
+
start: t
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
for (const e of u) e.mini || (e.start = 0 === e.entry.data.byteLength ? i : this.allocate(e.entry.data));
|
|
83
|
+
let w = i;
|
|
84
|
+
const d = f * n;
|
|
85
|
+
if (f > 0) {
|
|
86
|
+
const e = new Uint8Array(d);
|
|
87
|
+
let t = 0;
|
|
88
|
+
for (const r of p) e.set(r, t), t += r.byteLength;
|
|
89
|
+
w = this.allocate(e);
|
|
90
|
+
}
|
|
91
|
+
let g = i, b = 0;
|
|
92
|
+
if (f > 0) {
|
|
93
|
+
const e = r / 4;
|
|
94
|
+
b = Math.ceil(f / e);
|
|
95
|
+
const t = new Uint8Array(b * r), a = new DataView(t.buffer);
|
|
96
|
+
t.fill(255);
|
|
97
|
+
let s = 0;
|
|
98
|
+
for (const e of u) {
|
|
99
|
+
if (!e.mini) continue;
|
|
100
|
+
const t = Math.max(1, Math.ceil(e.entry.data.byteLength / n));
|
|
101
|
+
for (let e = 0; e < t; e++, s++) a.setUint32(4 * s, e === t - 1 ? i : s + 1, !0);
|
|
102
|
+
}
|
|
103
|
+
g = this.allocate(t), b = Math.ceil(t.byteLength / r);
|
|
104
|
+
}
|
|
105
|
+
const m = [];
|
|
106
|
+
m.push(this._directoryEntry({
|
|
107
|
+
name: "Root Entry",
|
|
108
|
+
type: 5,
|
|
109
|
+
child: t.length > 0 ? 1 : y,
|
|
110
|
+
start: w === i ? 0 : w,
|
|
111
|
+
size: d
|
|
112
|
+
}));
|
|
113
|
+
const A = u.map((e, t) => ({
|
|
114
|
+
place: e,
|
|
115
|
+
index: t
|
|
116
|
+
})).sort((e, t) => {
|
|
117
|
+
const r = e.place.entry.name, n = t.place.entry.name;
|
|
118
|
+
return r.length !== n.length ? r.length - n.length : r.toUpperCase() < n.toUpperCase() ? -1 : r.toUpperCase() > n.toUpperCase() ? 1 : 0;
|
|
119
|
+
}), S = /* @__PURE__ */ new Map();
|
|
120
|
+
A.forEach((e, t) => S.set(e.index, t + 1)), u.forEach((e, t) => {
|
|
121
|
+
const r = S.get(t) - 1, n = A[r + 1];
|
|
122
|
+
m.push(this._directoryEntry({
|
|
123
|
+
name: e.entry.name,
|
|
124
|
+
type: 2,
|
|
125
|
+
right: n ? S.get(n.index) : y,
|
|
126
|
+
start: e.mini ? e.start : e.start === i ? 0 : e.start,
|
|
127
|
+
size: e.entry.data.byteLength
|
|
128
|
+
}));
|
|
129
|
+
});
|
|
130
|
+
const U = [m[0]];
|
|
131
|
+
A.forEach((e) => U.push(m[e.index + 1]));
|
|
132
|
+
const E = r / h, V = Math.ceil(U.length / E), k = new Uint8Array(V * r);
|
|
133
|
+
for (let e = 0; e < V * E; e++) {
|
|
134
|
+
const t = U[e] ?? this._directoryEntry({
|
|
135
|
+
name: "",
|
|
136
|
+
type: 0
|
|
137
|
+
});
|
|
138
|
+
k.set(t, e * h);
|
|
139
|
+
}
|
|
140
|
+
const C = this.allocate(k), I = r / 4, H = I - 1, L = this.sectors.length;
|
|
141
|
+
let M = 1, z = 0;
|
|
142
|
+
for (let e = 0; e < 16; e++) {
|
|
143
|
+
const e = L + M + z, t = Math.max(1, Math.ceil(e / I)), r = t <= l ? 0 : Math.ceil((t - l) / H);
|
|
144
|
+
if (t === M && r === z) break;
|
|
145
|
+
M = t, z = r;
|
|
146
|
+
}
|
|
147
|
+
const D = [], T = [];
|
|
148
|
+
for (let e = 0; e < M; e++) D.push(L + e);
|
|
149
|
+
for (let e = 0; e < z; e++) T.push(L + M + e);
|
|
150
|
+
for (const e of D) this.fat[e] = c;
|
|
151
|
+
for (const e of T) this.fat[e] = o;
|
|
152
|
+
const K = new Uint8Array(M * r);
|
|
153
|
+
K.fill(255);
|
|
154
|
+
const O = new DataView(K.buffer);
|
|
155
|
+
for (let e = 0; e < this.fat.length; e++) O.setUint32(4 * e, this.fat[e], !0);
|
|
156
|
+
const R = new Uint8Array(r + (L + M + z) * r), $ = new DataView(R.buffer);
|
|
157
|
+
R.set(e.SIGNATURE, 0), $.setUint16(24, 62, !0), $.setUint16(26, 3, !0), $.setUint16(28, 65534, !0), $.setUint16(30, 9, !0), $.setUint16(32, 6, !0), $.setUint32(44, M, !0), $.setUint32(48, C, !0), $.setUint32(56, a, !0), $.setUint32(60, g, !0), $.setUint32(64, b, !0), $.setUint32(68, z > 0 ? T[0] : i, !0), $.setUint32(72, z, !0);
|
|
158
|
+
for (let e = 0; e < l; e++) $.setUint32(76 + 4 * e, e < M ? D[e] : s, !0);
|
|
159
|
+
for (let e = 0; e < L; e++) R.set(this.sectors[e], r + e * r);
|
|
160
|
+
R.set(K, r + D[0] * r);
|
|
161
|
+
for (let e = 0; e < z; e++) {
|
|
162
|
+
const t = r + T[e] * r;
|
|
163
|
+
for (let r = 0; r < H; r++) {
|
|
164
|
+
const n = l + e * H + r;
|
|
165
|
+
$.setUint32(t + 4 * r, n < M ? D[n] : s, !0);
|
|
166
|
+
}
|
|
167
|
+
$.setUint32(t + 4 * H, e === z - 1 ? i : T[e + 1], !0);
|
|
168
|
+
}
|
|
169
|
+
return R;
|
|
170
|
+
}
|
|
171
|
+
_directoryEntry(t) {
|
|
172
|
+
const { NOSTREAM: r } = e, n = new Uint8Array(e.DIR_ENTRY_SIZE), a = new DataView(n.buffer), i = t.name;
|
|
173
|
+
for (let e = 0; e < i.length && e < 31; e++) a.setUint16(2 * e, i.charCodeAt(e), !0);
|
|
174
|
+
return a.setUint16(64, i.length > 0 ? 2 * (Math.min(i.length, 31) + 1) : 0, !0), n[66] = t.type, n[67] = 1, a.setUint32(68, t.left ?? r, !0), a.setUint32(72, t.right ?? r, !0), a.setUint32(76, t.child ?? r, !0), a.setUint32(116, t.start ?? 0, !0), a.setUint32(120, t.size ?? 0, !0), a.setUint32(124, 0, !0), n;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
(function(e) {
|
|
178
|
+
const t = (e) => {
|
|
179
|
+
const t = atob(e), r = new Uint8Array(t.length);
|
|
180
|
+
for (let e = 0; e < t.length; e++) r[e] = t.charCodeAt(e);
|
|
181
|
+
return r;
|
|
182
|
+
}, r = (e, t, r) => {
|
|
183
|
+
const n = ((e, t) => {
|
|
184
|
+
const r = new RegExp(`\\b${t}\\s*=\\s*"([^"]*)"`).exec(e);
|
|
185
|
+
return r ? r[1] : null;
|
|
186
|
+
})(e, t);
|
|
187
|
+
if (null === n) throw new Error(`Malformed encryption descriptor: <${r}> is missing '${t}'.`);
|
|
188
|
+
return n;
|
|
189
|
+
}, n = (e, n) => ({
|
|
190
|
+
saltValue: t(r(e, "saltValue", n)),
|
|
191
|
+
blockSize: parseInt(r(e, "blockSize", n), 10),
|
|
192
|
+
keyBits: parseInt(r(e, "keyBits", n), 10),
|
|
193
|
+
hashSize: parseInt(r(e, "hashSize", n), 10),
|
|
194
|
+
cipherAlgorithm: r(e, "cipherAlgorithm", n),
|
|
195
|
+
cipherChaining: r(e, "cipherChaining", n),
|
|
196
|
+
hashAlgorithm: r(e, "hashAlgorithm", n)
|
|
197
|
+
}), a = (e, t) => {
|
|
198
|
+
const r = new RegExp(`<(?:\\w+:)?${t}\\b[^>]*>`).exec(e);
|
|
199
|
+
return r ? r[0] : null;
|
|
200
|
+
}, i = (e) => {
|
|
201
|
+
let t = "";
|
|
202
|
+
for (let r = 0; r < e.byteLength; r++) t += String.fromCharCode(e[r]);
|
|
203
|
+
return btoa(t);
|
|
204
|
+
};
|
|
205
|
+
e.build = (e) => {
|
|
206
|
+
const t = `saltSize="${e.saltSize}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="${e.cipherAlgorithm}" cipherChaining="${e.cipherChaining}" hashAlgorithm="${e.hashAlgorithm}"`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password" xmlns:c="http://schemas.microsoft.com/office/2006/keyEncryptor/certificate"><keyData ${t} saltValue="${i(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${i(e.encryptedHmacKey)}" encryptedHmacValue="${i(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" ${t} saltValue="${i(e.encryptorSalt)}" encryptedVerifierHashInput="${i(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${i(e.encryptedVerifierHashValue)}" encryptedKeyValue="${i(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`, n = new TextEncoder().encode(r), a = new Uint8Array(8 + n.byteLength), s = new DataView(a.buffer);
|
|
207
|
+
return s.setUint16(0, 4, !0), s.setUint16(2, 4, !0), s.setUint32(4, 64, !0), a.set(n, 8), a;
|
|
208
|
+
}, e.parse = (e) => {
|
|
209
|
+
if (e.byteLength < 8) throw new Error("Malformed EncryptionInfo stream (too short).");
|
|
210
|
+
const i = new DataView(e.buffer, e.byteOffset, e.byteLength), s = i.getUint16(0, !0), c = i.getUint16(2, !0);
|
|
211
|
+
if (4 === s && 4 === c) {
|
|
212
|
+
const i = new TextDecoder().decode(e.subarray(8)), s = a(i, "keyData");
|
|
213
|
+
if (!s) throw new Error("Malformed encryption descriptor: no <keyData>.");
|
|
214
|
+
const c = a(i, "encryptedKey");
|
|
215
|
+
if (!c) throw new Error("This file is encrypted with a scheme SheetXL cannot open (no password key encryptor).");
|
|
216
|
+
const o = a(i, "dataIntegrity");
|
|
217
|
+
return {
|
|
218
|
+
scheme: "agile",
|
|
219
|
+
keyData: n(s, "keyData"),
|
|
220
|
+
passwordKeyEncryptor: {
|
|
221
|
+
...n(c, "encryptedKey"),
|
|
222
|
+
spinCount: parseInt(r(c, "spinCount", "encryptedKey"), 10),
|
|
223
|
+
encryptedVerifierHashInput: t(r(c, "encryptedVerifierHashInput", "encryptedKey")),
|
|
224
|
+
encryptedVerifierHashValue: t(r(c, "encryptedVerifierHashValue", "encryptedKey")),
|
|
225
|
+
encryptedKeyValue: t(r(c, "encryptedKeyValue", "encryptedKey"))
|
|
226
|
+
},
|
|
227
|
+
dataIntegrity: o ? {
|
|
228
|
+
encryptedHmacKey: t(r(o, "encryptedHmacKey", "dataIntegrity")),
|
|
229
|
+
encryptedHmacValue: t(r(o, "encryptedHmacValue", "dataIntegrity"))
|
|
230
|
+
} : null
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
return {
|
|
234
|
+
scheme: 2 === s ? "rc4-cryptoapi" : 2 === c ? "standard" : "rc4",
|
|
235
|
+
versionMajor: s,
|
|
236
|
+
versionMinor: c
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
})(r || (r = {})), function(e) {
|
|
240
|
+
const t = {
|
|
241
|
+
verifierHashInput: new Uint8Array([
|
|
242
|
+
254,
|
|
243
|
+
167,
|
|
244
|
+
210,
|
|
245
|
+
118,
|
|
246
|
+
59,
|
|
247
|
+
75,
|
|
248
|
+
158,
|
|
249
|
+
121
|
|
250
|
+
]),
|
|
251
|
+
verifierHashValue: new Uint8Array([
|
|
252
|
+
215,
|
|
253
|
+
170,
|
|
254
|
+
15,
|
|
255
|
+
109,
|
|
256
|
+
48,
|
|
257
|
+
97,
|
|
258
|
+
52,
|
|
259
|
+
78
|
|
260
|
+
]),
|
|
261
|
+
keyValue: new Uint8Array([
|
|
262
|
+
20,
|
|
263
|
+
110,
|
|
264
|
+
11,
|
|
265
|
+
231,
|
|
266
|
+
171,
|
|
267
|
+
172,
|
|
268
|
+
208,
|
|
269
|
+
214
|
|
270
|
+
]),
|
|
271
|
+
hmacKey: new Uint8Array([
|
|
272
|
+
95,
|
|
273
|
+
178,
|
|
274
|
+
173,
|
|
275
|
+
1,
|
|
276
|
+
12,
|
|
277
|
+
185,
|
|
278
|
+
225,
|
|
279
|
+
246
|
|
280
|
+
]),
|
|
281
|
+
hmacValue: new Uint8Array([
|
|
282
|
+
160,
|
|
283
|
+
103,
|
|
284
|
+
127,
|
|
285
|
+
2,
|
|
286
|
+
178,
|
|
287
|
+
44,
|
|
288
|
+
132,
|
|
289
|
+
51
|
|
290
|
+
])
|
|
291
|
+
}, r = async () => globalThis.crypto, n = (e) => {
|
|
292
|
+
switch (e.toUpperCase().replace(/[^A-Z0-9]/g, "")) {
|
|
293
|
+
case "SHA1": return "SHA-1";
|
|
294
|
+
case "SHA256": return "SHA-256";
|
|
295
|
+
case "SHA384": return "SHA-384";
|
|
296
|
+
case "SHA512": return "SHA-512";
|
|
297
|
+
default: throw new Error(`Unsupported encryption hash algorithm '${e}'.`);
|
|
298
|
+
}
|
|
299
|
+
}, a = (e) => {
|
|
300
|
+
const t = new Uint8Array(e.byteLength);
|
|
301
|
+
return t.set(e), t;
|
|
302
|
+
}, i = (...e) => {
|
|
303
|
+
let t = 0;
|
|
304
|
+
for (const r of e) t += r.byteLength;
|
|
305
|
+
const r = new Uint8Array(t);
|
|
306
|
+
let n = 0;
|
|
307
|
+
for (const t of e) r.set(t, n), n += t.byteLength;
|
|
308
|
+
return r;
|
|
309
|
+
}, s = (e, t) => {
|
|
310
|
+
if (e.byteLength >= t) return a(e.subarray(0, t));
|
|
311
|
+
const r = new Uint8Array(t).fill(54);
|
|
312
|
+
return r.set(e), r;
|
|
313
|
+
}, c = (e) => {
|
|
314
|
+
const t = /* @__PURE__ */ new Uint8Array(4);
|
|
315
|
+
return new DataView(t.buffer).setUint32(0, e, !0), t;
|
|
316
|
+
}, o = async (e, t, ...r) => new Uint8Array(await e.subtle.digest(t, i(...r))), y = () => "function" == typeof MessageChannel ? new Promise((e) => {
|
|
317
|
+
const t = new MessageChannel();
|
|
318
|
+
t.port1.onmessage = () => {
|
|
319
|
+
t.port1.close(), t.port2.close(), e();
|
|
320
|
+
}, t.port2.postMessage(null);
|
|
321
|
+
}) : new Promise((e) => {
|
|
322
|
+
setTimeout(e, 0);
|
|
323
|
+
}), h = async (e, t, r, n, a) => {
|
|
324
|
+
const i = new Uint8Array(2 * t.length), s = new DataView(i.buffer);
|
|
325
|
+
for (let e = 0; e < t.length; e++) s.setUint16(2 * e, t.charCodeAt(e), !0);
|
|
326
|
+
let h = await o(e, n, r, i);
|
|
327
|
+
for (let t = 0; t < a; t++) h = await o(e, n, c(t), h), t % 2048 == 0 && await y();
|
|
328
|
+
return h;
|
|
329
|
+
}, l = async (e, t, r, n, a) => s(await o(e, n, t, r), a), p = async (e, t, r, n, a) => s(await o(e, n, t, c(r)), a), f = async (e, t, r, n, a) => s(await o(e, n, t, r), a), u = async (e, t, r, n) => {
|
|
330
|
+
const i = await e.subtle.importKey("raw", a(r), {
|
|
331
|
+
name: "HMAC",
|
|
332
|
+
hash: { name: t }
|
|
333
|
+
}, !1, ["sign"]);
|
|
334
|
+
return new Uint8Array(await e.subtle.sign("HMAC", i, a(n)));
|
|
335
|
+
}, w = async (e, t, r, n) => {
|
|
336
|
+
const s = a(n);
|
|
337
|
+
if (0 === s.byteLength) return s;
|
|
338
|
+
if (s.byteLength % 16 != 0) throw new Error("Malformed encrypted payload (not block aligned).");
|
|
339
|
+
const c = await e.subtle.importKey("raw", t, { name: "AES-CBC" }, !1, ["encrypt", "decrypt"]), o = a(s.subarray(s.byteLength - 16)), y = (/* @__PURE__ */ new Uint8Array(16)).fill(16), h = new Uint8Array(await e.subtle.encrypt({
|
|
340
|
+
name: "AES-CBC",
|
|
341
|
+
iv: o
|
|
342
|
+
}, c, y)).subarray(0, 16), l = await e.subtle.decrypt({
|
|
343
|
+
name: "AES-CBC",
|
|
344
|
+
iv: r
|
|
345
|
+
}, c, i(s, h));
|
|
346
|
+
return new Uint8Array(l);
|
|
347
|
+
};
|
|
348
|
+
e.resolveSecretKey = async (e, i) => {
|
|
349
|
+
const c = e.passwordKeyEncryptor;
|
|
350
|
+
if (!/^AES$/i.test(c.cipherAlgorithm) || !/CBC$/i.test(c.cipherChaining)) throw new Error(`Unsupported encryption cipher '${c.cipherAlgorithm}/${c.cipherChaining}'.`);
|
|
351
|
+
const y = await r(), p = n(c.hashAlgorithm), f = c.keyBits / 8, u = await h(y, i, c.saltValue, p, c.spinCount), d = s(c.saltValue, c.blockSize), g = await l(y, u, t.verifierHashInput, p, f), b = await w(y, g, d, c.encryptedVerifierHashInput), m = await l(y, u, t.verifierHashValue, p, f), A = await w(y, m, d, c.encryptedVerifierHashValue), S = await o(y, p, b);
|
|
352
|
+
let U = S.byteLength > A.byteLength ? 1 : 0;
|
|
353
|
+
for (let e = 0; e < A.byteLength; e++) U |= (e < S.byteLength ? S[e] : 0) ^ A[e];
|
|
354
|
+
if (0 !== U) return null;
|
|
355
|
+
const E = await l(y, u, t.keyValue, p, f), V = await w(y, E, d, c.encryptedKeyValue);
|
|
356
|
+
return a(V.subarray(0, e.keyData.keyBits / 8));
|
|
357
|
+
};
|
|
358
|
+
const d = async (e, t, r, n) => {
|
|
359
|
+
const i = a(n);
|
|
360
|
+
if (0 === i.byteLength) return i;
|
|
361
|
+
if (i.byteLength % 16 != 0) throw new Error("Malformed plaintext (not block aligned).");
|
|
362
|
+
const s = await e.subtle.importKey("raw", t, { name: "AES-CBC" }, !1, ["encrypt"]), c = new Uint8Array(await e.subtle.encrypt({
|
|
363
|
+
name: "AES-CBC",
|
|
364
|
+
iv: r
|
|
365
|
+
}, s, i));
|
|
366
|
+
return a(c.subarray(0, i.byteLength));
|
|
367
|
+
}, g = (e, t) => e % t === 0 ? e : e + (t - e % t), b = 4096;
|
|
368
|
+
e.decryptPackage = async (e, t, a) => {
|
|
369
|
+
if (a.byteLength < 8) throw new Error("Malformed EncryptedPackage stream (too short).");
|
|
370
|
+
const i = await r(), { keyData: s } = e, c = n(s.hashAlgorithm), o = new DataView(a.buffer, a.byteOffset, a.byteLength), y = o.getUint32(0, !0) + 4294967296 * o.getUint32(4, !0), h = a.subarray(8), l = new Uint8Array(Math.min(y, h.byteLength));
|
|
371
|
+
let f = 0;
|
|
372
|
+
for (let e = 0; e * b < h.byteLength; e++) {
|
|
373
|
+
const r = e * b;
|
|
374
|
+
let n = h.subarray(r, Math.min(r + b, h.byteLength));
|
|
375
|
+
const a = n.byteLength % s.blockSize;
|
|
376
|
+
if (a) {
|
|
377
|
+
const e = new Uint8Array(n.byteLength + s.blockSize - a);
|
|
378
|
+
e.set(n), n = e;
|
|
379
|
+
}
|
|
380
|
+
const o = await p(i, s.saltValue, e, c, s.blockSize), y = await w(i, t, o, n), u = Math.min(y.byteLength, l.byteLength - f);
|
|
381
|
+
if (u <= 0) break;
|
|
382
|
+
l.set(y.subarray(0, u), f), f += u;
|
|
383
|
+
}
|
|
384
|
+
return l.subarray(0, f);
|
|
385
|
+
}, e.verifyIntegrity = async (e, a, i) => {
|
|
386
|
+
const s = e.dataIntegrity;
|
|
387
|
+
if (!s) return !0;
|
|
388
|
+
const c = await r(), { keyData: o } = e, y = n(o.hashAlgorithm), h = (await w(c, a, await f(c, o.saltValue, t.hmacKey, y, o.blockSize), s.encryptedHmacKey)).subarray(0, o.hashSize), l = (await w(c, a, await f(c, o.saltValue, t.hmacValue, y, o.blockSize), s.encryptedHmacValue)).subarray(0, o.hashSize), p = await u(c, y, h, i);
|
|
389
|
+
if (p.byteLength < o.hashSize) return !1;
|
|
390
|
+
let d = 0;
|
|
391
|
+
for (let e = 0; e < o.hashSize; e++) d |= l[e] ^ p[e];
|
|
392
|
+
return 0 === d;
|
|
393
|
+
};
|
|
394
|
+
const m = e.DEFAULTS = {
|
|
395
|
+
hashAlgorithm: "SHA512",
|
|
396
|
+
cipherAlgorithm: "AES",
|
|
397
|
+
cipherChaining: "ChainingModeCBC",
|
|
398
|
+
saltSize: 16,
|
|
399
|
+
blockSize: 16,
|
|
400
|
+
keyBits: 256,
|
|
401
|
+
hashSize: 64,
|
|
402
|
+
spinCount: 1e5
|
|
403
|
+
};
|
|
404
|
+
e.encrypt = async (e, a) => {
|
|
405
|
+
const i = await r(), c = n(m.hashAlgorithm), y = m.keyBits / 8, w = (e) => {
|
|
406
|
+
const t = new Uint8Array(e);
|
|
407
|
+
return i.getRandomValues(t), t;
|
|
408
|
+
}, A = w(y), S = w(m.saltSize), U = w(m.saltSize), E = w(m.saltSize), V = await h(i, a, U, c, m.spinCount), k = s(U, m.blockSize), C = await l(i, V, t.verifierHashInput, c, y), I = await d(i, C, k, E), H = await o(i, c, E), L = await l(i, V, t.verifierHashValue, c, y), M = new Uint8Array(g(H.byteLength, m.blockSize));
|
|
409
|
+
M.set(H);
|
|
410
|
+
const z = await d(i, L, k, M), D = await l(i, V, t.keyValue, c, y), T = await d(i, D, k, A), K = e.byteLength, O = Math.max(1, Math.ceil(K / b)), R = new Uint8Array(g(K, m.blockSize) || m.blockSize);
|
|
411
|
+
for (let t = 0; t < O; t++) {
|
|
412
|
+
const r = t * b, n = e.subarray(r, Math.min(r + b, K)), a = new Uint8Array(g(n.byteLength, m.blockSize));
|
|
413
|
+
a.set(n);
|
|
414
|
+
const s = await p(i, S, t, c, m.blockSize);
|
|
415
|
+
R.set(await d(i, A, s, a), r);
|
|
416
|
+
}
|
|
417
|
+
const $ = new Uint8Array(8 + R.byteLength), _ = new DataView($.buffer);
|
|
418
|
+
_.setUint32(0, K >>> 0, !0), _.setUint32(4, Math.floor(K / 4294967296), !0), $.set(R, 8);
|
|
419
|
+
const x = w(m.hashSize), N = new Uint8Array(g(x.byteLength, m.blockSize));
|
|
420
|
+
N.set(x);
|
|
421
|
+
const v = await d(i, A, await f(i, S, t.hmacKey, c, m.blockSize), N), F = await u(i, c, x, $), B = new Uint8Array(g(F.byteLength, m.blockSize));
|
|
422
|
+
return B.set(F), {
|
|
423
|
+
keyDataSalt: S,
|
|
424
|
+
encryptorSalt: U,
|
|
425
|
+
encryptedVerifierHashInput: I,
|
|
426
|
+
encryptedVerifierHashValue: z,
|
|
427
|
+
encryptedKeyValue: T,
|
|
428
|
+
encryptedHmacKey: v,
|
|
429
|
+
encryptedHmacValue: await d(i, A, await f(i, S, t.hmacValue, c, m.blockSize), B),
|
|
430
|
+
encryptedPackage: $
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
}(n || (n = {}));
|
|
434
|
+
var i = [
|
|
435
|
+
208,
|
|
436
|
+
207,
|
|
437
|
+
17,
|
|
438
|
+
224,
|
|
439
|
+
161,
|
|
440
|
+
177,
|
|
441
|
+
26,
|
|
442
|
+
225
|
|
443
|
+
], s = "EncryptionInfo", c = "EncryptedPackage", o = (e) => {
|
|
444
|
+
if (!((e) => {
|
|
445
|
+
if (e.byteLength < i.length) return !1;
|
|
446
|
+
const t = new Uint8Array(e, 0, i.length);
|
|
447
|
+
for (let e = 0; e < i.length; e++) if (t[e] !== i[e]) return !1;
|
|
448
|
+
return !0;
|
|
449
|
+
})(e)) return null;
|
|
450
|
+
let r;
|
|
451
|
+
try {
|
|
452
|
+
r = t.read(new Uint8Array(e));
|
|
453
|
+
} catch {
|
|
454
|
+
return null;
|
|
455
|
+
}
|
|
456
|
+
const n = r.readStream(s), a = r.readStream(c);
|
|
457
|
+
return n && a ? {
|
|
458
|
+
info: n,
|
|
459
|
+
encryptedPackage: a
|
|
460
|
+
} : null;
|
|
461
|
+
}, y = {
|
|
462
|
+
key: "offcrypto",
|
|
463
|
+
description: "Office Document Encryption",
|
|
464
|
+
detect: (e) => null !== o(e),
|
|
465
|
+
async decode(t, a) {
|
|
466
|
+
const i = o(t);
|
|
467
|
+
if (!i) throw new Error("Not an encrypted Office container.");
|
|
468
|
+
const s = r.parse(i.info);
|
|
469
|
+
if ("agile" !== s.scheme) throw new Error(`This file uses ${((e) => {
|
|
470
|
+
switch (e) {
|
|
471
|
+
case "standard": return "Standard ECMA-376 encryption (Office 2007)";
|
|
472
|
+
case "rc4-cryptoapi": return "RC4 CryptoAPI encryption (Office 2002-2003)";
|
|
473
|
+
case "rc4": return "RC4/XOR obfuscation (Office 97-2000)";
|
|
474
|
+
default: return e;
|
|
475
|
+
}
|
|
476
|
+
})(s.scheme)}, which SheetXL cannot open yet. Re-save it from Excel to upgrade it to the current encryption.`);
|
|
477
|
+
const c = await n.resolveSecretKey(s, a);
|
|
478
|
+
if (!c) throw new e();
|
|
479
|
+
if (s.dataIntegrity && !await n.verifyIntegrity(s, c, i.encryptedPackage)) throw new Error("This file failed its integrity check — it has been altered or is damaged since it was encrypted.");
|
|
480
|
+
const y = await n.decryptPackage(s, c, i.encryptedPackage);
|
|
481
|
+
return y.buffer.slice(y.byteOffset, y.byteOffset + y.byteLength);
|
|
482
|
+
},
|
|
483
|
+
async encode(e, t) {
|
|
484
|
+
if (!t) throw new Error("A password is required to encrypt.");
|
|
485
|
+
const i = await n.encrypt(new Uint8Array(e), t), o = r.build({
|
|
486
|
+
...n.DEFAULTS,
|
|
487
|
+
keyDataSalt: i.keyDataSalt,
|
|
488
|
+
encryptorSalt: i.encryptorSalt,
|
|
489
|
+
encryptedVerifierHashInput: i.encryptedVerifierHashInput,
|
|
490
|
+
encryptedVerifierHashValue: i.encryptedVerifierHashValue,
|
|
491
|
+
encryptedKeyValue: i.encryptedKeyValue,
|
|
492
|
+
encryptedHmacKey: i.encryptedHmacKey,
|
|
493
|
+
encryptedHmacValue: i.encryptedHmacValue
|
|
494
|
+
}), y = a.write([{
|
|
495
|
+
name: s,
|
|
496
|
+
data: o
|
|
497
|
+
}, {
|
|
498
|
+
name: c,
|
|
499
|
+
data: i.encryptedPackage
|
|
500
|
+
}]);
|
|
501
|
+
return y.buffer.slice(y.byteOffset, y.byteOffset + y.byteLength);
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
export { y as OffCryptoEncryption };
|