@sheetxl/mcp 0.0.0-stage → 0.8.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -0
- package/README.md +72 -2
- package/agent/instructions.md +66 -0
- package/assets/2zIY9Xuml4y8NI05.js +596 -0
- package/assets/33QTHR3r6ZujxFx8.js +18 -0
- package/assets/8vRAQlvTcvMLeio0.js +1131 -0
- package/assets/9MRZ5Yc2RBgcqZSp.js +594 -0
- package/assets/9dbZwzIWefGss7is.js +52 -0
- package/assets/B-1_xSqUFCJ6jNjn.js +9109 -0
- package/assets/B-jE7tAMA559MtNt.js +37 -0
- package/assets/B5xHa5bjZu5ONrm5.js +638 -0
- package/assets/B66aeGYrHLbGpuN9.js +9137 -0
- package/assets/B6BP5l2qmeZhqVV7.js +7 -0
- package/assets/B6b9ytNrHR-ijcOa.js +30 -0
- package/assets/B9QlqO6n3MCBsvoj.js +504 -0
- package/assets/B9qiPx_BXxo1jgcx.js +2368 -0
- package/assets/B9w1dNK8pNq-Z1P3.js +142 -0
- package/assets/BDZ1FGc1zFqO1nK7.js +4036 -0
- package/assets/BFwNQZVRnbNt-gRJ.js +2260 -0
- package/assets/BMnNvUCJu35tT_aO.js +19 -0
- package/assets/BNfBq8Eic3Cl-f6A.js +184 -0
- package/assets/BOF64A2D2KKcv_fo.js +15 -0
- package/assets/BOcWUnxWSG1d5Ljc.js +447 -0
- package/assets/BW8XjynUqlfvuQUV.js +37 -0
- package/assets/BWsXOU_jh_cA8m8I.js +12 -0
- package/assets/BXC6616BWEWNZ2-D.js +63 -0
- package/assets/BYtBi8vLoB41QkV8.js +656 -0
- package/assets/B_-VPqfsse8AlCTm.js +81 -0
- package/assets/BiAEoWSl8c6jcUnS.js +28 -0
- package/assets/BkBCkgPNrFR5N9fo.js +19 -0
- package/assets/BmxgDCZk_aMDms4i.js +639 -0
- package/assets/BoTScfjgygCozDVi.js +23 -0
- package/assets/BwisWvPpXRhyIP4O.js +15 -0
- package/assets/ByziR0Anm39Bw0Bc.js +1556 -0
- package/assets/C-5LlJ5qhC7Ef0gV.js +12996 -0
- package/assets/C-CNmTrzNS-ZlQ8j.js +1760 -0
- package/assets/C1rIlmARlinuie5E.js +45 -0
- package/assets/C1w8NQeox7_92swz.js +35 -0
- package/assets/C2Rgsb69SnMOohGt.js +23 -0
- package/assets/C55MTJ_5qW94RElE.js +7514 -0
- package/assets/CBNNl8igIyeHY4St.js +780 -0
- package/assets/CDGeuGB9CBXeCIm6.js +12 -0
- package/assets/CH9M37mRwnS0t9wM.js +104 -0
- package/assets/CHHJZPAuM3OjbzF6.js +402 -0
- package/assets/CMTDUipnLiOj5pbe.js +610 -0
- package/assets/COFze3jkZDQRSij9.js +4437 -0
- package/assets/CPDkdp0yI4DwUHGZ.js +119 -0
- package/assets/CULV-2mwmqYYpAjM.js +119 -0
- package/assets/CVFTQ0OwsUt03r4o.js +146 -0
- package/assets/CXM1IYmE-TDInPwr.js +118 -0
- package/assets/CcLPa6zB5PH3OG2O.js +10289 -0
- package/assets/CdF5MxGnISAZ41oQ.js +359 -0
- package/assets/CeDqeFLuUfN8UIGx.js +17 -0
- package/assets/CfiVUfpeONJ3rf31.js +28 -0
- package/assets/Cfvhcua4c6onouhP.js +14 -0
- package/assets/CgjR_TiVOcuxg5tO.js +16 -0
- package/assets/CjwzOAnab_dpAqiG.js +144 -0
- package/assets/Cm3Q_-DDdnVHRBxr.js +351 -0
- package/assets/CpOhY88x6AgVxvTz.js +49 -0
- package/assets/CtpcYuBFU6fxsUhs.js +71 -0
- package/assets/CutEBbZl8oFbTlXZ.js +171 -0
- package/assets/CwJyw5Yxpj4PGh14.js +28 -0
- package/assets/CwdOInoJwCxXnhog.js +7 -0
- package/assets/D2_T0KSaye0ncjQa.js +6294 -0
- package/assets/D2w3KjYuONW1G1kX.js +86 -0
- package/assets/D3BAmD-1AfFtHdC6.js +242 -0
- package/assets/D81iH5MJJfq2t9FP.js +32 -0
- package/assets/D94hlZEaHtGHdN_K.js +202 -0
- package/assets/DBFXsbIHDxbMBrzV.js +319 -0
- package/assets/DCHsM8bfVisYJFTT.js +1783 -0
- package/assets/DIy1659Yv5-fD69E.js +123 -0
- package/assets/DK0VM9-qrEXBm8Ud.js +223 -0
- package/assets/DPazQ_nZv-sXUwO3.js +45 -0
- package/assets/DSSrCrejjpWoszj7.js +33 -0
- package/assets/DTlvhtB9hvPdbdxu.js +60493 -0
- package/assets/DUUt1z6Y_cpxEpYY.js +24 -0
- package/assets/DUYoUViqY5U6uQX3.js +18 -0
- package/assets/DUzaW_op2vBTwOOI.js +18 -0
- package/assets/DWTpPijG5yeNFR0W.js +14 -0
- package/assets/DZRp3_yqPS6Lshho.js +32 -0
- package/assets/DZZ5R3msiytVNCqK.js +199 -0
- package/assets/Df2IAW-O7Gwl7V1l.js +7 -0
- package/assets/Dfd7kvLIFNqu-m-r.js +51 -0
- package/assets/Dg7xy50qHwqkYd4g.js +1135 -0
- package/assets/DihigEGfNCLR8UPN.js +8 -0
- package/assets/DkFK1iu4vqjLZMja.js +3011 -0
- package/assets/DkPXpv81Y5teMd-R.js +20 -0
- package/assets/Dl87mJoXDkCkzBi7.js +3917 -0
- package/assets/DnmjS548g7nY6EUS.js +1860 -0
- package/assets/DoIU_ohoCBwTZV9G.js +310 -0
- package/assets/Doqy_uDSQTCv6a6X.js +35 -0
- package/assets/DpGuA6U12gwyGHEM.js +369 -0
- package/assets/DuZ6DXQGttY3Lrhd.js +5220 -0
- package/assets/Du_JrYiYGJo5_B9H.js +12 -0
- package/assets/DvD_K4M5HgJ4uJ8L.js +7 -0
- package/assets/EeSGsbh_r4N-qs4w.js +96 -0
- package/assets/GnXTzeDYWWeEf5yV.js +55 -0
- package/assets/HKLw8b2xTdu5c1w5.js +63 -0
- package/assets/KpCEdfpsHnfkyqjx.js +37 -0
- package/assets/OU7gC5JF-lyDOOid.js +27 -0
- package/assets/PRSerWiAGYu8MVnd.js +304 -0
- package/assets/PmooYGqWqoTxPExF.js +449 -0
- package/assets/QXKcNTuZqOauSidr.js +58 -0
- package/assets/ThqyayHHaBxzfaAt.js +255 -0
- package/assets/TzsPqmpG77I4ewVt.js +173 -0
- package/assets/UX2ywz3gr7q-MlHr.js +105 -0
- package/assets/W-MzzQHZuRxr8adc.js +2346 -0
- package/assets/ZBYHyJs7CQgnnHfR.js +362 -0
- package/assets/ZTEO4JX22YIOkrJg.js +8338 -0
- package/assets/a7BoASyT8yQZY9hJ.js +22 -0
- package/assets/aqguaobnu61szXWM.js +22 -0
- package/assets/cdIvC9t9tYtVn4nc.js +405 -0
- package/assets/cv7k-VAIJtYeL9k4.js +23 -0
- package/assets/ddJqSu7gXUkXjGxZ.js +13 -0
- package/assets/eHAVGCUcMAfNjEGt.js +7 -0
- package/assets/hRLLK6I6m0uGKWo8.js +32 -0
- package/assets/mcFLzsOH35mvmd3C.js +145 -0
- package/assets/st-UQngeBG4hwKoy.js +47 -0
- package/assets/w8YWSMNTTn45ImnB.js +857 -0
- package/assets/yNiBIhsMP9BCWd67.js +28 -0
- package/assets/zu-72oKE_gCkrozc.js +540 -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/04d8koPx6lzeMYRQ.js +39 -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/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/BCl5buf87xUgIfEB.js +2 -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/BRqSWCr2mTVNFquQ.js +1 -0
- package/screenshot-page/assets/BTOQaSn9DDyJPUlX.js +1 -0
- package/screenshot-page/assets/BUGXf2DEBog16Slb.js +2 -0
- package/screenshot-page/assets/BUjI304IvdJnFXH3.js +1 -0
- package/screenshot-page/assets/BYRwTzX1q407lHUS.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/BkLH7JH3A93TXFJi.js +1 -0
- package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +3 -0
- package/screenshot-page/assets/Bor_tayB4yBfNOH5.js +2 -0
- package/screenshot-page/assets/BowRIybLgENunTOT.js +1 -0
- package/screenshot-page/assets/Bp7se0JaDGrzfSA_.js +1 -0
- package/screenshot-page/assets/Bwql3QifB2cv7Mqp.js +3 -0
- package/screenshot-page/assets/Bx61vmiWY0Xvx9qs.js +1 -0
- package/screenshot-page/assets/ByY3fmwyDPAyOLdo.js +1 -0
- package/screenshot-page/assets/Bz2U7weS0spa8Xbh.js +1 -0
- package/screenshot-page/assets/Bz5V1tmiy5gbT9ys.js +1 -0
- package/screenshot-page/assets/Bz9v1lgjvbu4QnOs.js +2 -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/CE0MnsfMjqV2ICzk.js +57 -0
- package/screenshot-page/assets/CE8MCCIiwjOVwBBW.js +1 -0
- package/screenshot-page/assets/CFOaI8g7pJuPzsyk.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/CnZJ44ncMxZ4ivcB.js +586 -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/Cv8FG9PPBkkPw86e.js +1 -0
- package/screenshot-page/assets/CvL9XK3Ht1mP-rGz.js +4 -0
- package/screenshot-page/assets/CykecBozGGFl26KA.js +3940 -0
- package/screenshot-page/assets/CzTizxHhb-CI_ajE.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/D6Jpaz2YkhOfzxDB.js +1 -0
- package/screenshot-page/assets/D9zCVZpnJBfNSNO2.js +1 -0
- package/screenshot-page/assets/DDQWM8rNYCYzKa9R.js +1 -0
- package/screenshot-page/assets/DDpAoGAPzo1c4vl5.js +27 -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/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/DU3FmyUH0RjPIBd-.js +1 -0
- package/screenshot-page/assets/DUJzubL4qqOyizfu.js +1 -0
- package/screenshot-page/assets/DVueE--eOrZPrqrm.js +1 -0
- package/screenshot-page/assets/DWiI5I3RtoKvVT66.js +1 -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/D_H2dlsQ8PJ0r1WD.js +10 -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/DqM1wwsmN1J4MXMm.js +1 -0
- package/screenshot-page/assets/DqYhS4mcQfOe96hU.js +1 -0
- package/screenshot-page/assets/DsL71n5SxCVjL6Ho.js +2 -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/DzZRUd0p22CBa27b.js +1 -0
- package/screenshot-page/assets/HclGiUj8dZXDFmoM.js +1 -0
- package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +2 -0
- package/screenshot-page/assets/IfF7Tv-nhz6Ikpn0.js +1 -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/Miyn0clMq0rovRIo.js +1 -0
- package/screenshot-page/assets/Rm5Sf5E6t8bk_Y3r.js +1 -0
- package/screenshot-page/assets/b3AbgxQkoaCiBi15.js +1 -0
- package/screenshot-page/assets/fGlPAximvsxzPzGA.js +1 -0
- package/screenshot-page/assets/gG0AFZ45VxS_moMw.js +2 -0
- package/screenshot-page/assets/nHThFXCAZFOM_npq.js +1 -0
- package/screenshot-page/assets/pRykm05ElquZBk_a.js +1 -0
- package/screenshot-page/assets/qm3VY0bH7F7EgSdi.js +2 -0
- package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +1 -0
- package/screenshot-page/assets/w3bV7wggRayUYTd-.js +1 -0
- package/screenshot-page/assets/zFbb8ESzwR_bE7IQ.js +1 -0
- package/screenshot-page/assets/zHHZFbk5RXnrxbOc.js +42 -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,594 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.14
|
|
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 { n as e, t } from "./33QTHR3r6ZujxFx8.js";
|
|
8
|
+
var i = t((t, i) => {
|
|
9
|
+
var n = t, r = function t() {
|
|
10
|
+
var i = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== i ? i : {}, n = !i.document && !!i.postMessage, r = i.IS_PAPA_WORKER || !1, s = {}, a = 0, o = {};
|
|
11
|
+
function h(e) {
|
|
12
|
+
return 65279 === e.charCodeAt(0) ? e.slice(1) : e;
|
|
13
|
+
}
|
|
14
|
+
function u(e) {
|
|
15
|
+
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = {
|
|
16
|
+
data: [],
|
|
17
|
+
errors: [],
|
|
18
|
+
meta: {}
|
|
19
|
+
}, function(e) {
|
|
20
|
+
var t = w(e);
|
|
21
|
+
t.chunkSize = parseInt(t.chunkSize), e.step || e.chunk || (t.chunkSize = null), this._handle = new _(t), this._handle.streamer = this, this._config = t;
|
|
22
|
+
}.call(this, e), this.parseChunk = function(e, t) {
|
|
23
|
+
const n = parseInt(this._config.skipFirstNLines) || 0;
|
|
24
|
+
if (this.isFirstChunk && n > 0) {
|
|
25
|
+
let t = this._config.newline;
|
|
26
|
+
if (!t) {
|
|
27
|
+
const i = this._config.quoteChar || "\"";
|
|
28
|
+
t = this._handle.guessLineEndings(e, i);
|
|
29
|
+
}
|
|
30
|
+
e = [...e.split(t).slice(n)].join(t);
|
|
31
|
+
}
|
|
32
|
+
if (this.isFirstChunk && b(this._config.beforeFirstChunk)) {
|
|
33
|
+
var s = this._config.beforeFirstChunk(e);
|
|
34
|
+
void 0 !== s && (e = s);
|
|
35
|
+
}
|
|
36
|
+
this.isFirstChunk = !1, this._halted = !1;
|
|
37
|
+
var a = this._partialLine + e;
|
|
38
|
+
this._partialLine = "";
|
|
39
|
+
var h = this._handle.parse(a, this._baseIndex, !this._finished);
|
|
40
|
+
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
41
|
+
var u = h.meta.cursor;
|
|
42
|
+
this._finished || (this._partialLine = a.substring(u - this._baseIndex), this._baseIndex = u), h && h.data && (this._rowCount += h.data.length);
|
|
43
|
+
var d = this._finished || this._config.preview && this._rowCount >= this._config.preview;
|
|
44
|
+
if (r) i.postMessage({
|
|
45
|
+
results: h,
|
|
46
|
+
workerId: o.WORKER_ID,
|
|
47
|
+
finished: d
|
|
48
|
+
});
|
|
49
|
+
else if (b(this._config.chunk) && !t) {
|
|
50
|
+
if (this._config.chunk(h, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
51
|
+
h = void 0, this._completeResults = void 0;
|
|
52
|
+
}
|
|
53
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(h.data), this._completeResults.errors = this._completeResults.errors.concat(h.errors), this._completeResults.meta = h.meta), this._completed || !d || !b(this._config.complete) || h && h.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), d || h && h.meta.paused || this._nextChunk(), h;
|
|
54
|
+
}
|
|
55
|
+
this._halted = !0;
|
|
56
|
+
}, this._sendError = function(e) {
|
|
57
|
+
b(this._config.error) ? this._config.error(e) : r && this._config.error && i.postMessage({
|
|
58
|
+
workerId: o.WORKER_ID,
|
|
59
|
+
error: e,
|
|
60
|
+
finished: !1
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function d(e) {
|
|
65
|
+
var t;
|
|
66
|
+
(e = e || {}).chunkSize || (e.chunkSize = o.RemoteChunkSize), u.call(this, e), this._nextChunk = n ? function() {
|
|
67
|
+
this._readChunk(), this._chunkLoaded();
|
|
68
|
+
} : function() {
|
|
69
|
+
this._readChunk();
|
|
70
|
+
}, this.stream = function(e) {
|
|
71
|
+
this._input = e, this._nextChunk();
|
|
72
|
+
}, this._readChunk = function() {
|
|
73
|
+
if (this._finished) this._chunkLoaded();
|
|
74
|
+
else {
|
|
75
|
+
if (t = new XMLHttpRequest(), this._config.withCredentials && (t.withCredentials = this._config.withCredentials), n || (t.onload = E(this._chunkLoaded, this), t.onerror = E(this._chunkError, this)), t.ontimeout = E(this._chunkTimeout, this), t.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !n), this._config.downloadTimeout && !n && (t.timeout = this._config.downloadTimeout), this._config.downloadRequestHeaders) {
|
|
76
|
+
var e = this._config.downloadRequestHeaders;
|
|
77
|
+
for (var i in e) t.setRequestHeader(i, e[i]);
|
|
78
|
+
}
|
|
79
|
+
if (this._config.chunkSize) {
|
|
80
|
+
var r = this._start + this._config.chunkSize - 1;
|
|
81
|
+
t.setRequestHeader("Range", "bytes=" + this._start + "-" + r);
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
t.send(this._config.downloadRequestBody);
|
|
85
|
+
} catch (e) {
|
|
86
|
+
this._chunkError(e.message);
|
|
87
|
+
}
|
|
88
|
+
n && 0 === t.status && this._chunkError();
|
|
89
|
+
}
|
|
90
|
+
}, this._chunkLoaded = function() {
|
|
91
|
+
4 === t.readyState && (t.status < 200 || t.status >= 400 ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : t.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(e) {
|
|
92
|
+
var t = e.getResponseHeader("Content-Range");
|
|
93
|
+
return null === t ? -1 : parseInt(t.substring(t.lastIndexOf("/") + 1));
|
|
94
|
+
}(t), this.parseChunk(t.responseText)));
|
|
95
|
+
}, this._chunkError = function(e) {
|
|
96
|
+
var i = t.statusText || e;
|
|
97
|
+
this._sendError(new Error(i));
|
|
98
|
+
}, this._chunkTimeout = function() {
|
|
99
|
+
this._chunkError("Request timed out after " + this._config.downloadTimeout + "ms");
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function f(e) {
|
|
103
|
+
var t, i;
|
|
104
|
+
(e = e || {}).chunkSize || (e.chunkSize = o.LocalChunkSize), u.call(this, e);
|
|
105
|
+
var n = "undefined" != typeof FileReader;
|
|
106
|
+
this.stream = function(e) {
|
|
107
|
+
this._input = e, i = e.slice || e.webkitSlice || e.mozSlice, n ? ((t = new FileReader()).onload = E(this._chunkLoaded, this), t.onerror = E(this._chunkError, this)) : t = new FileReaderSync(), this._nextChunk();
|
|
108
|
+
}, this._nextChunk = function() {
|
|
109
|
+
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
110
|
+
}, this._readChunk = function() {
|
|
111
|
+
var e = this._input;
|
|
112
|
+
if (this._config.chunkSize) {
|
|
113
|
+
var r = Math.min(this._start + this._config.chunkSize, this._input.size);
|
|
114
|
+
e = i.call(e, this._start, r);
|
|
115
|
+
}
|
|
116
|
+
var s = t.readAsText(e, this._config.encoding);
|
|
117
|
+
n || this._chunkLoaded({ target: { result: s } });
|
|
118
|
+
}, this._chunkLoaded = function(e) {
|
|
119
|
+
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(e.target.result);
|
|
120
|
+
}, this._chunkError = function() {
|
|
121
|
+
this._sendError(t.error);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function l(e) {
|
|
125
|
+
var t;
|
|
126
|
+
e = e || {}, u.call(this, e), this.stream = function(e) {
|
|
127
|
+
return t = e, this._nextChunk();
|
|
128
|
+
}, this._nextChunk = function() {
|
|
129
|
+
if (!this._finished) {
|
|
130
|
+
var e, i = this._config.chunkSize;
|
|
131
|
+
return i ? (e = t.substring(0, i), t = t.substring(i)) : (e = t, t = ""), this._finished = !t, this.parseChunk(e);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function c(e) {
|
|
136
|
+
e = e || {}, u.call(this, e);
|
|
137
|
+
var t = [], i = !0, n = !1;
|
|
138
|
+
this.pause = function() {
|
|
139
|
+
u.prototype.pause.apply(this, arguments), this._input.pause();
|
|
140
|
+
}, this.resume = function() {
|
|
141
|
+
u.prototype.resume.apply(this, arguments), this._input.resume();
|
|
142
|
+
}, this.stream = function(e) {
|
|
143
|
+
this._input = e, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
144
|
+
}, this._checkIsFinished = function() {
|
|
145
|
+
n && 1 === t.length && (this._finished = !0);
|
|
146
|
+
}, this._nextChunk = function() {
|
|
147
|
+
this._checkIsFinished(), t.length ? this.parseChunk(t.shift()) : i = !0;
|
|
148
|
+
}, this._streamData = E(function(e) {
|
|
149
|
+
try {
|
|
150
|
+
t.push("string" == typeof e ? e : e.toString(this._config.encoding)), i && (i = !1, this._checkIsFinished(), this.parseChunk(t.shift()));
|
|
151
|
+
} catch (e) {
|
|
152
|
+
this._streamError(e);
|
|
153
|
+
}
|
|
154
|
+
}, this), this._streamError = E(function(e) {
|
|
155
|
+
this._streamCleanUp(), this._sendError(e);
|
|
156
|
+
}, this), this._streamEnd = E(function() {
|
|
157
|
+
this._streamCleanUp(), n = !0, this._streamData("");
|
|
158
|
+
}, this), this._streamCleanUp = E(function() {
|
|
159
|
+
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
160
|
+
}, this);
|
|
161
|
+
}
|
|
162
|
+
function p(t) {
|
|
163
|
+
var i = e("stream").Duplex, n = w(t), r = !0, s = !1, a = [], o = null;
|
|
164
|
+
this._onCsvData = function(e) {
|
|
165
|
+
var t = e.data;
|
|
166
|
+
o.push(t) || this._handle.paused() || this._handle.pause();
|
|
167
|
+
}, this._onCsvComplete = function() {
|
|
168
|
+
o.push(null);
|
|
169
|
+
}, n.step = E(this._onCsvData, this), n.complete = E(this._onCsvComplete, this), u.call(this, n), this._nextChunk = function() {
|
|
170
|
+
s && 1 === a.length && (this._finished = !0), a.length ? a.shift()() : r = !0;
|
|
171
|
+
}, this._addToParseQueue = function(e, t) {
|
|
172
|
+
a.push(E(function() {
|
|
173
|
+
if (this.parseChunk("string" == typeof e ? e : e.toString(n.encoding)), b(t)) return t();
|
|
174
|
+
}, this)), r && (r = !1, this._nextChunk());
|
|
175
|
+
}, this._onRead = function() {
|
|
176
|
+
this._handle.paused() && this._handle.resume();
|
|
177
|
+
}, this._onWrite = function(e, t, i) {
|
|
178
|
+
this._addToParseQueue(e, i);
|
|
179
|
+
}, this._onWriteComplete = function() {
|
|
180
|
+
s = !0, this._addToParseQueue("");
|
|
181
|
+
}, this.getStream = function() {
|
|
182
|
+
return o;
|
|
183
|
+
}, (o = new i({
|
|
184
|
+
readableObjectMode: !0,
|
|
185
|
+
decodeStrings: !1,
|
|
186
|
+
read: E(this._onRead, this),
|
|
187
|
+
write: E(this._onWrite, this)
|
|
188
|
+
})).once("finish", E(this._onWriteComplete, this));
|
|
189
|
+
}
|
|
190
|
+
function _(e) {
|
|
191
|
+
var t, i, n, r = Math.pow(2, 53), s = -r, a = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, h = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, u = this, d = 0, f = 0, l = !1, c = !1, p = [], _ = {
|
|
192
|
+
data: [],
|
|
193
|
+
errors: [],
|
|
194
|
+
meta: {}
|
|
195
|
+
};
|
|
196
|
+
if (b(e.step)) {
|
|
197
|
+
var y = e.step;
|
|
198
|
+
e.step = function(t) {
|
|
199
|
+
if (_ = t, E()) k();
|
|
200
|
+
else {
|
|
201
|
+
if (k(), 0 === _.data.length) return;
|
|
202
|
+
d += t.data.length, e.preview && d > e.preview ? i.abort() : (_.data = _.data[0], y(_, u));
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function v(t) {
|
|
207
|
+
return "greedy" === e.skipEmptyLines ? "" === t.join("").trim() : 1 === t.length && 0 === t[0].length;
|
|
208
|
+
}
|
|
209
|
+
function k() {
|
|
210
|
+
return _ && n && (C("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + o.DefaultDelimiter + "'"), n = !1), e.skipEmptyLines && (_.data = _.data.filter(function(e) {
|
|
211
|
+
return !v(e);
|
|
212
|
+
})), E() && function() {
|
|
213
|
+
if (_) if (Array.isArray(_.data[0])) {
|
|
214
|
+
for (var e = 0; E() && e < _.data.length; e++) _.data[e].forEach(t);
|
|
215
|
+
_.data.splice(0, 1);
|
|
216
|
+
} else _.data.forEach(t);
|
|
217
|
+
function t(e) {
|
|
218
|
+
p.push(e);
|
|
219
|
+
}
|
|
220
|
+
}(), function() {
|
|
221
|
+
if (!_ || !e.header && !e.dynamicTyping && !e.transform) return _;
|
|
222
|
+
function t(t, i) {
|
|
223
|
+
for (var n = e.header ? {} : [], r = 0; r < t.length; r++) {
|
|
224
|
+
var s = r, a = t[r];
|
|
225
|
+
e.header && (s = r >= p.length ? "__parsed_extra" : p[r]), e.transform && (a = e.transform(a, s)), a = R(s, a), "__parsed_extra" === s ? (n[s] = n[s] || [], n[s].push(a)) : n[s] = a;
|
|
226
|
+
}
|
|
227
|
+
return e.header && (r > p.length ? C("FieldMismatch", "TooManyFields", "Too many fields: expected " + p.length + " fields but parsed " + r, f + i) : r < p.length && C("FieldMismatch", "TooFewFields", "Too few fields: expected " + p.length + " fields but parsed " + r, f + i)), n;
|
|
228
|
+
}
|
|
229
|
+
var i = 1;
|
|
230
|
+
return !_.data.length || Array.isArray(_.data[0]) ? (_.data = _.data.map(t), i = _.data.length) : _.data = t(_.data, 0), e.header && _.meta && (_.meta.fields = p), f += i, _;
|
|
231
|
+
}();
|
|
232
|
+
}
|
|
233
|
+
function E() {
|
|
234
|
+
return e.header && 0 === p.length;
|
|
235
|
+
}
|
|
236
|
+
function R(t, i) {
|
|
237
|
+
return function(t) {
|
|
238
|
+
return e.dynamicTypingFunction && void 0 === e.dynamicTyping[t] && (e.dynamicTyping[t] = e.dynamicTypingFunction(t)), !0 === (e.dynamicTyping[t] || e.dynamicTyping);
|
|
239
|
+
}(t) ? "true" === i || "TRUE" === i || "false" !== i && "FALSE" !== i && (function(e) {
|
|
240
|
+
if (a.test(e)) {
|
|
241
|
+
var t = parseFloat(e);
|
|
242
|
+
if (t > s && t < r) return !0;
|
|
243
|
+
}
|
|
244
|
+
return !1;
|
|
245
|
+
}(i) ? parseFloat(i) : h.test(i) ? new Date(i) : "" === i ? null : i) : i;
|
|
246
|
+
}
|
|
247
|
+
function C(e, t, i, n) {
|
|
248
|
+
var r = {
|
|
249
|
+
type: e,
|
|
250
|
+
code: t,
|
|
251
|
+
message: i
|
|
252
|
+
};
|
|
253
|
+
void 0 !== n && (r.row = n), _.errors.push(r);
|
|
254
|
+
}
|
|
255
|
+
this.parse = function(r, s, a) {
|
|
256
|
+
var h = e.quoteChar || "\"";
|
|
257
|
+
if (e.newline || (e.newline = this.guessLineEndings(r, h)), n = !1, e.delimiter) b(e.delimiter) && (e.delimiter = e.delimiter(r), _.meta.delimiter = e.delimiter);
|
|
258
|
+
else {
|
|
259
|
+
var u = function(t, i, n, r, s) {
|
|
260
|
+
var a, h, u, d;
|
|
261
|
+
s = s || [
|
|
262
|
+
",",
|
|
263
|
+
" ",
|
|
264
|
+
"|",
|
|
265
|
+
";",
|
|
266
|
+
o.RECORD_SEP,
|
|
267
|
+
o.UNIT_SEP
|
|
268
|
+
];
|
|
269
|
+
for (var f = 0; f < s.length; f++) {
|
|
270
|
+
var l = s[f], c = 0, p = 0, _ = 0;
|
|
271
|
+
u = void 0;
|
|
272
|
+
for (var g = new m({
|
|
273
|
+
comments: r,
|
|
274
|
+
delimiter: l,
|
|
275
|
+
newline: i,
|
|
276
|
+
preview: 10
|
|
277
|
+
}).parse(t), y = 0; y < g.data.length; y++) if (n && v(g.data[y])) _++;
|
|
278
|
+
else {
|
|
279
|
+
var k = g.data[y].length;
|
|
280
|
+
p += k, void 0 !== u ? k > 0 && (c += Math.abs(k - u), u = k) : u = k;
|
|
281
|
+
}
|
|
282
|
+
g.data.length > 0 && (p /= g.data.length - _), p > 1.99 && (void 0 === h || c < h || c === h && p > d) && (h = c, a = l, d = p);
|
|
283
|
+
}
|
|
284
|
+
return e.delimiter = a, {
|
|
285
|
+
successful: !!a,
|
|
286
|
+
bestDelimiter: a
|
|
287
|
+
};
|
|
288
|
+
}(r, e.newline, e.skipEmptyLines, e.comments, e.delimitersToGuess);
|
|
289
|
+
u.successful ? e.delimiter = u.bestDelimiter : (n = !0, e.delimiter = o.DefaultDelimiter), _.meta.delimiter = e.delimiter;
|
|
290
|
+
}
|
|
291
|
+
var d = w(e);
|
|
292
|
+
return d.header = E(), e.preview && e.header && d.preview++, t = r, i = new m(d), _ = i.parse(t, s, a), k(), l ? { meta: { paused: !0 } } : _ || { meta: { paused: !1 } };
|
|
293
|
+
}, this.paused = function() {
|
|
294
|
+
return l;
|
|
295
|
+
}, this.pause = function() {
|
|
296
|
+
l = !0, i.abort(), t = b(e.chunk) ? "" : t.substring(i.getCharIndex());
|
|
297
|
+
}, this.resume = function() {
|
|
298
|
+
u.streamer._halted ? (l = !1, u.streamer.parseChunk(t, !0)) : setTimeout(u.resume, 3);
|
|
299
|
+
}, this.aborted = function() {
|
|
300
|
+
return c;
|
|
301
|
+
}, this.abort = function() {
|
|
302
|
+
c = !0, i.abort(), _.meta.aborted = !0, b(e.complete) && e.complete(_), t = "";
|
|
303
|
+
}, this.guessLineEndings = function(e, t) {
|
|
304
|
+
e = e.substring(0, 1048576);
|
|
305
|
+
var i = new RegExp(g(t) + "([^]*?)" + g(t), "gm"), n = (e = e.replace(i, "")).split("\r"), r = e.split("\n"), s = r.length > 1 && r[0].length < n[0].length;
|
|
306
|
+
if (1 === n.length || s) return "\n";
|
|
307
|
+
for (var a = 0, o = 0; o < n.length; o++) "\n" === n[o][0] && a++;
|
|
308
|
+
return a >= n.length / 2 ? "\r\n" : "\r";
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
function g(e) {
|
|
312
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
313
|
+
}
|
|
314
|
+
function m(e) {
|
|
315
|
+
var t, i = (e = e || {}).delimiter, n = e.newline, r = e.comments, s = e.step, a = e.preview, u = e.fastMode, d = null, f = !1, l = t = void 0 === e.quoteChar || null === e.quoteChar ? "\"" : e.quoteChar;
|
|
316
|
+
if (void 0 !== e.escapeChar && (l = e.escapeChar), ("string" != typeof i || o.BAD_DELIMITERS.indexOf(i) > -1) && (i = ","), r === i) throw new Error("Comment character same as delimiter");
|
|
317
|
+
!0 === r ? r = "#" : ("string" != typeof r || o.BAD_DELIMITERS.indexOf(r) > -1) && (r = !1), "\n" !== n && "\r" !== n && "\r\n" !== n && (n = "\n");
|
|
318
|
+
var c = 0, p = !1;
|
|
319
|
+
this.parse = function(o, _, m) {
|
|
320
|
+
if ("string" != typeof o) throw new Error("Input must be a string");
|
|
321
|
+
var y = o.length, v = i.length, k = n.length, w = r.length, E = b(s);
|
|
322
|
+
c = 0;
|
|
323
|
+
var R = [], C = [], S = [], O = 0;
|
|
324
|
+
if (!o) return N();
|
|
325
|
+
if (u || !1 !== u && -1 === o.indexOf(t)) {
|
|
326
|
+
for (var T = o.split(n), x = 0; x < T.length; x++) {
|
|
327
|
+
if (S = T[x], c += S.length, x !== T.length - 1) c += n.length;
|
|
328
|
+
else if (m) return N();
|
|
329
|
+
if (!r || S.substring(0, w) !== r) {
|
|
330
|
+
if (E) {
|
|
331
|
+
if (R = [], j(S.split(i)), W(), p) return N();
|
|
332
|
+
} else j(S.split(i));
|
|
333
|
+
if (a && x >= a) return R = R.slice(0, a), N(!0);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return N();
|
|
337
|
+
}
|
|
338
|
+
for (var A = o.indexOf(i, c), I = o.indexOf(n, c), D = new RegExp(g(l) + g(t), "g"), L = o.indexOf(t, c);;) if (o[c] !== t) if (r && 0 === S.length && o.substring(c, c + w) === r) {
|
|
339
|
+
if (-1 === I) return N();
|
|
340
|
+
c = I + k, I = o.indexOf(n, c), A = o.indexOf(i, c);
|
|
341
|
+
} else if (-1 !== A && (A < I || -1 === I)) S.push(o.substring(c, A)), c = A + v, A = o.indexOf(i, c);
|
|
342
|
+
else {
|
|
343
|
+
if (-1 === I) break;
|
|
344
|
+
if (S.push(o.substring(c, I)), q(I + k), E && (W(), p)) return N();
|
|
345
|
+
if (a && R.length >= a) return N(!0);
|
|
346
|
+
}
|
|
347
|
+
else for (L = c, c++;;) {
|
|
348
|
+
if (-1 === (L = o.indexOf(t, L + 1))) return m || C.push({
|
|
349
|
+
type: "Quotes",
|
|
350
|
+
code: "MissingQuotes",
|
|
351
|
+
message: "Quoted field unterminated",
|
|
352
|
+
row: R.length,
|
|
353
|
+
index: c
|
|
354
|
+
}), M();
|
|
355
|
+
if (L === y - 1) return M(o.substring(c, L).replace(D, t));
|
|
356
|
+
if (t !== l || o[L + 1] !== l) {
|
|
357
|
+
if (t === l || 0 === L || o[L - 1] !== l) {
|
|
358
|
+
-1 !== A && A < L + 1 && (A = o.indexOf(i, L + 1)), -1 !== I && I < L + 1 && (I = o.indexOf(n, L + 1));
|
|
359
|
+
var F = z(-1 === I ? A : Math.min(A, I));
|
|
360
|
+
if (o.substr(L + 1 + F, v) === i) {
|
|
361
|
+
S.push(o.substring(c, L).replace(D, t)), c = L + 1 + F + v, o[L + 1 + F + v] !== t && (L = o.indexOf(t, c)), A = o.indexOf(i, c), I = o.indexOf(n, c);
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
var P = z(I);
|
|
365
|
+
if (o.substring(L + 1 + P, L + 1 + P + k) === n) {
|
|
366
|
+
if (S.push(o.substring(c, L).replace(D, t)), q(L + 1 + P + k), A = o.indexOf(i, c), L = o.indexOf(t, c), E && (W(), p)) return N();
|
|
367
|
+
if (a && R.length >= a) return N(!0);
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
C.push({
|
|
371
|
+
type: "Quotes",
|
|
372
|
+
code: "InvalidQuotes",
|
|
373
|
+
message: "Trailing quote on quoted field is malformed",
|
|
374
|
+
row: R.length,
|
|
375
|
+
index: c
|
|
376
|
+
}), L++;
|
|
377
|
+
}
|
|
378
|
+
} else L++;
|
|
379
|
+
}
|
|
380
|
+
return M();
|
|
381
|
+
function j(e) {
|
|
382
|
+
R.push(e), O = c;
|
|
383
|
+
}
|
|
384
|
+
function z(e) {
|
|
385
|
+
var t = 0;
|
|
386
|
+
if (-1 !== e) {
|
|
387
|
+
var i = o.substring(L + 1, e);
|
|
388
|
+
i && "" === i.trim() && (t = i.length);
|
|
389
|
+
}
|
|
390
|
+
return t;
|
|
391
|
+
}
|
|
392
|
+
function M(e) {
|
|
393
|
+
return m || (void 0 === e && (e = o.substring(c)), S.push(e), c = y, j(S), E && W()), N();
|
|
394
|
+
}
|
|
395
|
+
function q(e) {
|
|
396
|
+
c = e, j(S), S = [], I = o.indexOf(n, c);
|
|
397
|
+
}
|
|
398
|
+
function N(t) {
|
|
399
|
+
if (e.header && !_ && R.length && !f) {
|
|
400
|
+
const t = R[0], i = Object.create(null), n = new Set(t);
|
|
401
|
+
let r = !1;
|
|
402
|
+
for (let s = 0; s < t.length; s++) {
|
|
403
|
+
let a = h(t[s]);
|
|
404
|
+
if (b(e.transformHeader) && (a = e.transformHeader(a, s)), i[a]) {
|
|
405
|
+
let e, o = i[a];
|
|
406
|
+
do
|
|
407
|
+
e = `${a}_${o}`, o++;
|
|
408
|
+
while (n.has(e));
|
|
409
|
+
n.add(e), t[s] = e, i[a]++, r = !0, null === d && (d = {}), d[e] = a;
|
|
410
|
+
} else i[a] = 1, t[s] = a;
|
|
411
|
+
n.add(a);
|
|
412
|
+
}
|
|
413
|
+
r && console.warn("Duplicate headers found and renamed."), f = !0;
|
|
414
|
+
}
|
|
415
|
+
return {
|
|
416
|
+
data: R,
|
|
417
|
+
errors: C,
|
|
418
|
+
meta: {
|
|
419
|
+
delimiter: i,
|
|
420
|
+
linebreak: n,
|
|
421
|
+
aborted: p,
|
|
422
|
+
truncated: !!t,
|
|
423
|
+
cursor: O + (_ || 0),
|
|
424
|
+
renamedHeaders: d
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
function W() {
|
|
429
|
+
s(N()), R = [], C = [];
|
|
430
|
+
}
|
|
431
|
+
}, this.abort = function() {
|
|
432
|
+
p = !0;
|
|
433
|
+
}, this.getCharIndex = function() {
|
|
434
|
+
return c;
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
function y(e) {
|
|
438
|
+
var t = e.data, i = s[t.workerId], n = !1;
|
|
439
|
+
if (t.error) i.userError(t.error, t.file);
|
|
440
|
+
else if (t.results && t.results.data) {
|
|
441
|
+
var r = {
|
|
442
|
+
abort: function() {
|
|
443
|
+
n = !0, v(t.workerId, {
|
|
444
|
+
data: [],
|
|
445
|
+
errors: [],
|
|
446
|
+
meta: { aborted: !0 }
|
|
447
|
+
});
|
|
448
|
+
},
|
|
449
|
+
pause: k,
|
|
450
|
+
resume: k
|
|
451
|
+
};
|
|
452
|
+
if (b(i.userStep)) {
|
|
453
|
+
for (var a = 0; a < t.results.data.length && (i.userStep({
|
|
454
|
+
data: t.results.data[a],
|
|
455
|
+
errors: t.results.errors,
|
|
456
|
+
meta: t.results.meta
|
|
457
|
+
}, r), !n); a++);
|
|
458
|
+
delete t.results;
|
|
459
|
+
} else b(i.userChunk) && (i.userChunk(t.results, r, t.file), delete t.results);
|
|
460
|
+
}
|
|
461
|
+
t.finished && !n && v(t.workerId, t.results);
|
|
462
|
+
}
|
|
463
|
+
function v(e, t) {
|
|
464
|
+
var i = s[e];
|
|
465
|
+
b(i.userComplete) && i.userComplete(t), i.terminate(), delete s[e];
|
|
466
|
+
}
|
|
467
|
+
function k() {
|
|
468
|
+
throw new Error("Not implemented.");
|
|
469
|
+
}
|
|
470
|
+
function w(e) {
|
|
471
|
+
if ("object" != typeof e || null === e) return e;
|
|
472
|
+
var t = Array.isArray(e) ? [] : {};
|
|
473
|
+
for (var i in e) t[i] = w(e[i]);
|
|
474
|
+
return t;
|
|
475
|
+
}
|
|
476
|
+
function E(e, t) {
|
|
477
|
+
return function() {
|
|
478
|
+
e.apply(t, arguments);
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
function b(e) {
|
|
482
|
+
return "function" == typeof e;
|
|
483
|
+
}
|
|
484
|
+
return o.parse = function(e, n) {
|
|
485
|
+
var r = (n = n || {}).dynamicTyping || !1;
|
|
486
|
+
if (b(r) && (n.dynamicTypingFunction = r, r = {}), n.dynamicTyping = r, n.transform = !!b(n.transform) && n.transform, void 0 !== n.downloadTimeout) {
|
|
487
|
+
var u = parseInt(n.downloadTimeout);
|
|
488
|
+
if (isNaN(u)) throw new Error("Config downloadTimeout value (" + n.downloadTimeout + ") not parsable by parseInt(val).");
|
|
489
|
+
n.downloadTimeout = u;
|
|
490
|
+
}
|
|
491
|
+
if (n.worker && o.WORKERS_SUPPORTED) {
|
|
492
|
+
var _ = function() {
|
|
493
|
+
if (!o.WORKERS_SUPPORTED) return !1;
|
|
494
|
+
var e, n, r = (e = i.URL || i.webkitURL || null, n = t.toString(), o.BLOB_URL || (o.BLOB_URL = e.createObjectURL(new Blob([
|
|
495
|
+
"var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ",
|
|
496
|
+
"(",
|
|
497
|
+
n,
|
|
498
|
+
")();"
|
|
499
|
+
], { type: "text/javascript" })))), h = new i.Worker(r);
|
|
500
|
+
return h.onmessage = y, h.id = a++, s[h.id] = h, h;
|
|
501
|
+
}();
|
|
502
|
+
_.userStep = n.step, _.userChunk = n.chunk, _.userComplete = n.complete, _.userError = n.error, n.step = b(n.step), n.chunk = b(n.chunk), n.complete = b(n.complete), n.error = b(n.error), delete n.worker, _.postMessage({
|
|
503
|
+
input: e,
|
|
504
|
+
config: n,
|
|
505
|
+
workerId: _.id
|
|
506
|
+
});
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
var g = null;
|
|
510
|
+
return e === o.NODE_STREAM_INPUT && "undefined" == typeof PAPA_BROWSER_CONTEXT ? (g = new p(n)).getStream() : ("string" == typeof e ? (e = h(e), g = n.download ? new d(n) : new l(n)) : !0 === e.readable && b(e.read) && b(e.on) ? g = new c(n) : (i.File && e instanceof File || e instanceof Object) && (g = new f(n)), g.stream(e));
|
|
511
|
+
}, o.unparse = function(e, t) {
|
|
512
|
+
var i = !1, n = !0, r = ",", s = "\r\n", a = "\"", h = a + a, u = !1, d = null, f = !1;
|
|
513
|
+
(function() {
|
|
514
|
+
if ("object" == typeof t) {
|
|
515
|
+
if ("string" != typeof t.delimiter || o.BAD_DELIMITERS.filter(function(e) {
|
|
516
|
+
return -1 !== t.delimiter.indexOf(e);
|
|
517
|
+
}).length || (r = t.delimiter), ("boolean" == typeof t.quotes || "function" == typeof t.quotes || Array.isArray(t.quotes)) && (i = t.quotes), "boolean" != typeof t.skipEmptyLines && "string" != typeof t.skipEmptyLines || (u = t.skipEmptyLines), "string" == typeof t.newline && (s = t.newline), "string" == typeof t.quoteChar && (a = t.quoteChar, h = a + a), "boolean" == typeof t.header && (n = t.header), Array.isArray(t.columns)) {
|
|
518
|
+
if (0 === t.columns.length) throw new Error("Option columns is empty");
|
|
519
|
+
d = t.columns;
|
|
520
|
+
}
|
|
521
|
+
void 0 !== t.escapeChar && (h = t.escapeChar + a), t.escapeFormulae instanceof RegExp ? f = t.escapeFormulae : "boolean" == typeof t.escapeFormulae && t.escapeFormulae && (f = /^[=+\-@\t\r].*$/);
|
|
522
|
+
}
|
|
523
|
+
})();
|
|
524
|
+
var l = new RegExp(g(a), "g");
|
|
525
|
+
if ("string" == typeof e && (e = JSON.parse(e)), Array.isArray(e)) {
|
|
526
|
+
if (!e.length || Array.isArray(e[0])) return c(null, e, u);
|
|
527
|
+
if ("object" == typeof e[0]) return c(d || Object.keys(e[0]), e, u);
|
|
528
|
+
} else if ("object" == typeof e) return "string" == typeof e.data && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields || d), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : "object" == typeof e.data[0] ? Object.keys(e.data[0]) : []), Array.isArray(e.data[0]) || "object" == typeof e.data[0] || (e.data = [e.data])), c(e.fields || [], e.data || [], u);
|
|
529
|
+
throw new Error("Unable to serialize unrecognized input");
|
|
530
|
+
function c(e, t, i) {
|
|
531
|
+
var a = "";
|
|
532
|
+
"string" == typeof e && (e = JSON.parse(e)), "string" == typeof t && (t = JSON.parse(t));
|
|
533
|
+
var o = Array.isArray(e) && e.length > 0, h = !Array.isArray(t[0]);
|
|
534
|
+
if (o && n) {
|
|
535
|
+
for (var u = 0; u < e.length; u++) u > 0 && (a += r), a += p(e[u], u);
|
|
536
|
+
t.length > 0 && (a += s);
|
|
537
|
+
}
|
|
538
|
+
for (var d = 0; d < t.length; d++) {
|
|
539
|
+
var f = o ? e.length : t[d].length, l = !1, c = o ? 0 === Object.keys(t[d]).length : 0 === t[d].length;
|
|
540
|
+
if (i && !o && (l = "greedy" === i ? "" === t[d].join("").trim() : 1 === t[d].length && 0 === t[d][0].length), "greedy" === i && o) {
|
|
541
|
+
for (var _ = [], g = 0; g < f; g++) {
|
|
542
|
+
var m = h ? e[g] : g;
|
|
543
|
+
_.push(t[d][m]);
|
|
544
|
+
}
|
|
545
|
+
l = "" === _.join("").trim();
|
|
546
|
+
}
|
|
547
|
+
if (!l) {
|
|
548
|
+
for (var y = 0; y < f; y++) {
|
|
549
|
+
y > 0 && !c && (a += r);
|
|
550
|
+
var v = o && h ? e[y] : y;
|
|
551
|
+
a += p(t[d][v], y);
|
|
552
|
+
}
|
|
553
|
+
d < t.length - 1 && (!i || f > 0 && !c) && (a += s);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return a;
|
|
557
|
+
}
|
|
558
|
+
function p(e, t) {
|
|
559
|
+
if (null == e) return "";
|
|
560
|
+
if (e.constructor === Date) return isNaN(e.getTime()) ? "" : e.toISOString();
|
|
561
|
+
var n = !1;
|
|
562
|
+
f && "string" == typeof e && f.test(e) && (e = "'" + e, n = !0);
|
|
563
|
+
var s = e.toString(), u = s.replace(l, h);
|
|
564
|
+
return n = n || !0 === i || "function" == typeof i && i(e, t) || Array.isArray(i) && i[t] || function(e, t) {
|
|
565
|
+
for (var i = 0; i < t.length; i++) if (e.indexOf(t[i]) > -1) return !0;
|
|
566
|
+
return !1;
|
|
567
|
+
}(u, o.BAD_DELIMITERS) || u.indexOf(r) > -1 || s.indexOf(a) > -1 || " " === u.charAt(0) || " " === u.charAt(u.length - 1), n ? a + u + a : u;
|
|
568
|
+
}
|
|
569
|
+
}, o.RECORD_SEP = String.fromCharCode(30), o.UNIT_SEP = String.fromCharCode(31), o.BYTE_ORDER_MARK = "", o.BAD_DELIMITERS = [
|
|
570
|
+
"\r",
|
|
571
|
+
"\n",
|
|
572
|
+
"\"",
|
|
573
|
+
o.BYTE_ORDER_MARK
|
|
574
|
+
], o.WORKERS_SUPPORTED = !n && !!i.Worker, o.NODE_STREAM_INPUT = 1, o.LocalChunkSize = 10485760, o.RemoteChunkSize = 5242880, o.DefaultDelimiter = ",", o.Parser = m, o.ParserHandle = _, o.NetworkStreamer = d, o.FileStreamer = f, o.StringStreamer = l, o.ReadableStreamStreamer = c, "undefined" == typeof PAPA_BROWSER_CONTEXT && (o.DuplexStreamStreamer = p), r && (i.onmessage = function(e) {
|
|
575
|
+
var t = e.data;
|
|
576
|
+
if (void 0 === o.WORKER_ID && t && (o.WORKER_ID = t.workerId), "string" == typeof t.input) i.postMessage({
|
|
577
|
+
workerId: o.WORKER_ID,
|
|
578
|
+
results: o.parse(t.input, t.config),
|
|
579
|
+
finished: !0
|
|
580
|
+
});
|
|
581
|
+
else if (i.File && t.input instanceof File || t.input instanceof Object) {
|
|
582
|
+
var n = o.parse(t.input, t.config);
|
|
583
|
+
n && i.postMessage({
|
|
584
|
+
workerId: o.WORKER_ID,
|
|
585
|
+
results: n,
|
|
586
|
+
finished: !0
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
}), d.prototype = Object.create(u.prototype), d.prototype.constructor = d, f.prototype = Object.create(u.prototype), f.prototype.constructor = f, l.prototype = Object.create(l.prototype), l.prototype.constructor = l, c.prototype = Object.create(u.prototype), c.prototype.constructor = c, "undefined" == typeof PAPA_BROWSER_CONTEXT && (p.prototype = Object.create(u.prototype), p.prototype.constructor = p), o;
|
|
590
|
+
};
|
|
591
|
+
"function" == typeof define && define.amd ? define([], r) : "object" == typeof i && void 0 !== t ? i.exports = r() : n.Papa = r();
|
|
592
|
+
});
|
|
593
|
+
export default i();
|
|
594
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.14
|
|
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 = {
|
|
8
|
+
"FORECAST.ETS": {
|
|
9
|
+
s: "Returns the forecasted value for a specific future target date using exponential smoothing method.",
|
|
10
|
+
p: {
|
|
11
|
+
targetDate: { d: "is the data point for which you want to predict a value. It should carry on the pattern of values in the timeline." },
|
|
12
|
+
values: { d: "is the array or range of numeric data you're predicting." },
|
|
13
|
+
timeline: { d: "is the independent array or range of numeric data. The dates in the timeline must have a consistent step between them and can't be zero." },
|
|
14
|
+
seasonality: { d: "[1] 0 = no seasonality; 1 = auto-detect; any integer > 1 = explicit seasonal period." },
|
|
15
|
+
dataCompletion: { d: "[1] 1 = interpolate missing values; 0 = fill with zeros." },
|
|
16
|
+
aggregation: { d: "[1] Aggregation method for duplicate timestamps: 1=Average, 2=Count, 3=CountA, 4=Max, 5=Median, 6=Min, 7=Sum." }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"FORECAST.ETS.CONFINT": {
|
|
20
|
+
s: "Returns a confidence interval for the forecasted value at the specified target date.",
|
|
21
|
+
p: {
|
|
22
|
+
targetDate: { d: "is the data point for which you want to predict a value. It should carry on the pattern of values in the timeline." },
|
|
23
|
+
values: { d: "is the array or range of numeric data you're predicting." },
|
|
24
|
+
timeline: { d: "is the independent array or range of numeric data. The dates in the timeline must have a consistent step between them and can't be zero." },
|
|
25
|
+
confidenceLevel: { d: "[0.95] Confidence probability, must be strictly between 0 and 1." },
|
|
26
|
+
seasonality: { d: "[1] 0 = no seasonality; 1 = auto-detect; any integer > 1 = explicit seasonal period." },
|
|
27
|
+
dataCompletion: { d: "[1] 1 = interpolate missing values; 0 = fill with zeros." },
|
|
28
|
+
aggregation: { d: "[1] Aggregation method for duplicate timestamps: 1=Average, 2=Count, 3=CountA, 4=Max, 5=Median, 6=Min, 7=Sum." }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"FORECAST.ETS.SEASONALITY": {
|
|
32
|
+
s: "Returns the length of the repetitive pattern in the data for the specific time series.",
|
|
33
|
+
p: {
|
|
34
|
+
values: { d: "is the array or range of numeric data you're predicting." },
|
|
35
|
+
timeline: { d: "is the independent array or range of numeric data. The dates in the timeline must have a consistent step between them and can't be zero." },
|
|
36
|
+
dataCompletion: { d: "[1] 1 = interpolate missing values; 0 = fill with zeros." },
|
|
37
|
+
aggregation: { d: "[1] Aggregation method for duplicate timestamps: 1=Average, 2=Count, 3=CountA, 4=Max, 5=Median, 6=Min, 7=Sum." }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"FORECAST.ETS.STAT": {
|
|
41
|
+
s: "Returns a requested statistic for the ETS forecast model.",
|
|
42
|
+
p: {
|
|
43
|
+
values: { d: "is the array or range of numeric data you're predicting." },
|
|
44
|
+
timeline: { d: "is the independent array or range of numeric data." },
|
|
45
|
+
statisticType: { d: "1=Alpha, 2=Beta (trend smoothing), 3=Gamma (seasonal smoothing), 4=MASE, 5=SMAPE, 6=MAE, 7=RMSE, 8=Step size." },
|
|
46
|
+
seasonality: { d: "[1] 0 = no seasonality; 1 = auto-detect; any integer > 1 = explicit seasonal period." },
|
|
47
|
+
dataCompletion: { d: "[1] 1 = interpolate missing values; 0 = fill with zeros." },
|
|
48
|
+
aggregation: { d: "[1] Aggregation method for duplicate timestamps: 1=Average, 2=Count, 3=CountA, 4=Max, 5=Median, 6=Min, 7=Sum." }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export { e as default };
|