@sheetxl/mcp 0.8.0-beta.23 → 0.8.0-beta.25
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/assets/{qjyVXZeVSr_qZfX5.js → 45FAgD1JyG2a1Rti.js} +2 -2
- package/assets/{L9RIicOHtZd2Rx8g.js → 70weNsvW2LMx5QcW.js} +1 -1
- package/assets/{CndRpNCcV89ncnqz.js → APcHum0Riw3QhLBQ.js} +1 -1
- package/assets/{NDe-uS1n_Q7u1H3m.js → Abkx7KJ6_X5avkR4.js} +3 -3
- package/assets/{2xkoVdiI70Gpaxoc.js → B0FfnXdiZxExcdjB.js} +2 -2
- package/assets/{DV3PnM9lo0AW-YOA.js → B6e_DsVO4i91IYEO.js} +3 -3
- package/assets/{D-PYDPXobSWiPh1D.js → B940vbTfpMYACpDE.js} +2 -2
- package/assets/{BZaXHnsJ6RkCZsnz.js → BAowTO-7Utmg0UvM.js} +3 -3
- package/assets/{CCBQDcCHI47PZ0YQ.js → BBccc8pDH-6AJdoT.js} +5 -5
- package/assets/{CQCPJBQD0qv9y8qE.js → BD3Bc7ZHxenj4S7Q.js} +1 -1
- package/assets/{dep8oZGwBmUpxjHl.js → BFKj2ik7h-yM6oCR.js} +1 -1
- package/assets/{BcWSfKJ9Atkc0X_p.js → BHIi-cAKnh_sAifV.js} +1 -1
- package/assets/{CSisGJ4hiDhTi19U.js → BHeXL-Lo390ZSNV0.js} +1 -1
- package/assets/{a9lvcAd7rWsWSWAo.js → BNvsIyBwweYnfUz3.js} +1 -1
- package/assets/{t4qTfgdlstczTs2z.js → BSJ_L1gNOejEih6N.js} +40 -40
- package/assets/{CeVCLRwjkH3_OXJu.js → BV13tLgNXZ8MDaE_.js} +1 -1
- package/assets/{CHG4ZuzhyjGRuKBg.js → BW8ReYzx-CEJ-lAG.js} +1 -1
- package/assets/{DcO0gub7cRKVw4xB.js → BXxUz-sB48Z9nSFi.js} +1 -1
- package/assets/{DL7_uGw6KiZhlvR8.js → B_GZxEqqpKtEPbWC.js} +1 -1
- package/assets/{BPorbjbkH-VoV1M0.js → Bb7ZxgjHwiKgARXs.js} +1 -1
- package/assets/{BomatnedZsGMF7MW.js → BbfSzxx5EzAvn-_F.js} +1432 -1352
- package/assets/{CGLapmkNccH1g_ZJ.js → BktUuVP0Jew8_-ff.js} +1 -1
- package/assets/{BBuB6ffvyg2Cd7V5.js → Brlza6Jd2oGGX9vB.js} +1 -1
- package/assets/{DZt1ONN8CTTfmHGn.js → BtNEVWQWEp_Ie1nT.js} +642 -642
- package/assets/{jKIDENA_QP4bEX49.js → Bwk-CZuGiTRT2ox_.js} +4 -4
- package/assets/{CyhngJo16o7G18lq.js → BzLwCwXsh7eXQpeK.js} +1 -1
- package/assets/{CPZgEZ2jKoo7hS6g.js → BzU8BhgrkSoh-XJF.js} +8 -8
- package/assets/{DrKr8dXQEQ3Aukmt.js → C-FJab2sVwBbOTiA.js} +1 -1
- package/assets/{KhdF512BKcJXZMvq.js → C-Vt758qtn8QeCrw.js} +1 -1
- package/assets/{aTxgpOOxLenli4af.js → C2kYWrsx5mg4XOES.js} +1 -1
- package/assets/{2XwVsSfo5wF5K-HA.js → C6Vsz4e_ASJdx3LP.js} +1 -1
- package/assets/{DN1RRp4qQfCq3JAO.js → C9DvPNfuz_0hun6C.js} +1 -1
- package/assets/{PiFW6uPRJABzK3V1.js → CAI8p60cuWlgnlko.js} +14 -14
- package/assets/{BI8kb-rd9dW85XJs.js → CCOaNx5_BfWCc9yz.js} +1 -1
- package/assets/{B2zUUqxAJ1RiM7YI.js → CD2yoEhIT8DyXBou.js} +52 -52
- package/assets/{DPjWOMoJ-elAAOmS.js → CDiutOsLAzu4c0Ej.js} +1 -1
- package/assets/{DfBERTJjS9LP0RSp.js → CFrOPd_UcD7qclCq.js} +1 -1
- package/assets/{CH8DNTUgM79xk8Tt.js → CGS7apShLtnlmF8D.js} +1 -1
- package/assets/{CgYef9dYxY8YyUTE.js → CGdayif_qNMtoATI.js} +1 -1
- package/assets/{bsnhRuD-K-qhW-y5.js → CJubVukzHBNJb_Wf.js} +91 -91
- package/assets/{MzfM7zDcnyOFK1lK.js → COXWiXy3DCfmXSm5.js} +1 -1
- package/assets/{Bbmh8_bdk_HrQ5Y6.js → COZ-bhj463kGINFA.js} +1 -1
- package/assets/{BdUFL3lVdwifHrf0.js → CSMsn9bKgR9kWG0m.js} +1 -1
- package/assets/{WH1Vl-MDWX3vSMn1.js → CVWoX7wNwrZwm5XB.js} +2 -2
- package/assets/{DLuQ_rdu0XjYF7Jq.js → CX-KrjVgXM-7o--S.js} +2 -2
- package/assets/{BNEBXKAh-N4Tygk7.js → CYtkZMCX6dyEqjb9.js} +44 -44
- package/assets/{CE5DhB5As59VJ-Ig.js → Cb7FKT3S78r6IYHi.js} +1 -1
- package/assets/{Cidwv57sKqhIrpHP.js → CcTDxlAqw6HuYmmm.js} +42 -42
- package/assets/CehVpkp73IfWGN_b.js +14 -0
- package/assets/{f_dBJuakO_BJ7Tvm.js → CfWSdzSpbErVA_1h.js} +309 -309
- package/assets/{E-KM5RFByUxjlkId.js → Ci3R5B7bLke8NZRo.js} +6 -6
- package/assets/{DbbNJyL67KdOK7nc.js → ClRgSo0axU3lAOwR.js} +1 -1
- package/assets/{DJ2jlogB1DWlGM-J.js → Cmf4eJow6AIuPH_w.js} +1 -1
- package/assets/{CE-9VKh5-Xwxnxmu.js → Cplall3oc-_3AhCB.js} +1 -1
- package/assets/{BJMeWtr7TiLNpt17.js → Cu4ok_jTnQif8QtX.js} +1 -1
- package/assets/{D7oYfHgO0kEqAnPV.js → D053O1kZ7JtMwiqh.js} +1 -1
- package/assets/{BPtf3_nlovO4r9Bm.js → D5aWcMLJ2wyLm9Ws.js} +1 -1
- package/assets/{B3YRTBFhX61z6rJv.js → D6qQAWN_5p3FAshK.js} +375 -370
- package/assets/{DvkBNkPyR5kuS0Uo.js → D7NjohknztgMLqhT.js} +2 -2
- package/assets/{CBMMHYgUAhgiJhJE.js → D8cqT2lbcP5Yp1Or.js} +3 -3
- package/assets/{DACd4ZjYwzNE7Koc.js → D8wjcRGgRdU34Ata.js} +1 -1
- package/assets/{DtETpSxSR8C1voac.js → DAnTpFc2vx3CmP8e.js} +83 -83
- package/assets/{BWeaY19OpTJK5v0n.js → DB2MrmDLZ-OzVRQu.js} +2 -2
- package/assets/{ChbkkN_JqbAGrUwB.js → DBgHcEP-FcgSHLvx.js} +332 -332
- package/assets/{CnUYevzhUJYNqLad.js → DFd0JAiw5dkbnULM.js} +1 -1
- package/assets/{CC7EfXPwp7_nSBIz.js → DG9KGapq8eHlcTC7.js} +1 -1
- package/assets/{C6_KHS3-ROddeSbS.js → DHCl7HWDbT3xqx8W.js} +2 -2
- package/assets/{BDSNdgf_hbhX1DhN.js → DJlQxf99HCszeCCD.js} +1 -1
- package/assets/{DiJexWBIzdGj1H0H.js → DLW76uSURiQM07DD.js} +1 -1
- package/assets/{Cx1bc-Dsja7W3GlB.js → DQBqVPRLkZFb2P_x.js} +2 -2
- package/assets/{D60N4r1a2YsNEwqj.js → DQlLgxA592HvgKzh.js} +1 -1
- package/assets/{D5O3m16KeyU_oXqH.js → DRvzD5Tkcb2OU0G2.js} +1 -1
- package/assets/{5MnsnJcajdtAujE2.js → DUfrvQDZKh_22F91.js} +1 -1
- package/assets/{DL8wUEe2Kx7bjDYP.js → DX94YgmfoL_ngS60.js} +1 -1
- package/assets/{BazhmjGvrL7pqVQP.js → DXDhH3F4N4OOigqN.js} +1 -1
- package/assets/{CpyybSV2kR6b-SIB.js → DXVfJfT6ftWk5kYi.js} +497 -497
- package/assets/{DSyZaCML62gSnudE.js → DYx_I-o0yjx056Dq.js} +1 -1
- package/assets/{YtxPcFPURJF6CxWu.js → DZBfVpnngvY9Ra3C.js} +1 -1
- package/assets/{Dawi8y7JWn6A9gAx.js → DZOzgVEOXfHTE3YC.js} +1 -1
- package/assets/{PVGDjdR9C4stMNpM.js → DZTVTdrwu05fNZk_.js} +1 -1
- package/assets/{BYbzf-TVwbKQPCyK.js → DaB9iRVJj3TmKH92.js} +3 -3
- package/assets/{BLr8y5StL65VZQxG.js → DbHVXEt9qwlb8Gou.js} +154 -155
- package/assets/{wKkW4LO-iUp92LVC.js → DbXqd8hGNQEyS-s0.js} +1 -1
- package/assets/{BULbMlvQuB2WFBFE.js → DcHo7BC8Ny3hWq0j.js} +2 -2
- package/assets/{DAliB9N1z6qnw4NO.js → DcHvH_I64hbnNh9G.js} +1 -1
- package/assets/{DoP6myQHGI-X1gNy.js → DfaQvLAaU7HHPnSe.js} +89 -89
- package/assets/{BVUfaOAGhdMim8yB.js → DgE30NwKzEjZI1W6.js} +3 -3
- package/assets/{KMTTqSwDthnXnD4F.js → Djl7cjJyCIS_Qvbd.js} +1 -1
- package/assets/{CzoRlNMlpFz4iax3.js → DkS3EQvuEuPDvCws.js} +2 -2
- package/assets/{CrTLWpsRNBSyTLor.js → DkT0-_t9Xgp4l-Mh.js} +1 -1
- package/assets/{DuQU8JjPLBIK804w.js → DlOCT6DI5bhPtQ8j.js} +26 -26
- package/assets/{Bjk1Twm0RFO_3fS8.js → DpGFb3hbAT5Murcv.js} +1 -1
- package/assets/{D5PpcRuJYSv0i2y9.js → DunKnm-bQd0oHn9n.js} +2 -2
- package/assets/{Bz08KxFupjbdsoFx.js → Duw8QQGcrPmesb-M.js} +1 -1
- package/assets/{DUytcsu0MV3GnsrM.js → DvkgborRc2vRq8E-.js} +1 -1
- package/assets/{WuKVkvMPAOmRaCDY.js → DwmlBb640xWfAMV2.js} +2 -2
- package/assets/{CtlrxXVgZDIOcuc1.js → GfAXkT_vctdRX_9f.js} +162 -162
- package/assets/{Dg5QmWm0uBTEjZy4.js → H40qXR3Gazmnq4Mv.js} +1 -1
- package/assets/{DgLQfXTWavoBetna.js → HLtC2gb8SfNmJU5q.js} +5 -5
- package/assets/{1J1R3dclFOh322Yr.js → H_6CBe3t27jHlBHk.js} +182 -182
- package/assets/{Dol52NFQzLCbObuC.js → LQNEL4KjDxwZNwWq.js} +176 -176
- package/assets/{Cl8_HMhRgzPzqFc7.js → O8YGVK4vtz39jQ84.js} +1 -1
- package/assets/{gver5Sz7ZO6ZyrOi.js → TqxFLhPz3zbgi95t.js} +1 -1
- package/assets/{C8G_px4dGuR2KjJh.js → UdhH9UX9jQ4IV11J.js} +1 -1
- package/assets/{BEsnJS5jYwkHNcZd.js → V4pGXJr6fe-CPg7i.js} +1 -1
- package/assets/{DXmebUOAhtW4V6BO.js → V_VVW06vjWkmlbdh.js} +463 -463
- package/assets/{Cg1tSmK_AGJa2VeI.js → VkeNTI1TMsA1ZbGz.js} +3 -3
- package/assets/{BbU6aT_c6-4tkcCw.js → cTLYCAhDs2fR2ITC.js} +1 -1
- package/assets/{BynbAjhJnLjyP7HH.js → cU78RT4WJKAp5mU_.js} +1 -1
- package/assets/{Cl04_aSpBHTwfsQR.js → ckvxz2tZRlY1UPpg.js} +11464 -11420
- package/assets/{CwrOCbcS4IHLsERQ.js → eCD6fmcTsgv76IZm.js} +90 -90
- package/assets/{q1rCdlJA6Z7tA6om.js → irrAIfw6CnCOHmPE.js} +1 -1
- package/assets/{DIAQ_WlBCWhgHt-z.js → ixHQtoul8ubEJfWS.js} +12 -7
- package/assets/{CEsRqYMd5IjnAzzX.js → kmiMiNIUc6rS8DG8.js} +4 -4
- package/assets/{CqP4H_-kRRjcxO91.js → m9BgbF-NgPIYW4kc.js} +1 -1
- package/assets/{BlhJHu9ni2T9IaM1.js → s56uiNHMGbBV6xgZ.js} +1 -1
- package/assets/{BKpicdc9H5WnZPb-.js → u8xtjHo43n-S_O6j.js} +1 -1
- package/assets/{sIWsnPhnHm_MeeM9.js → u9le-qZ3tbYKK1kU.js} +2 -2
- package/assets/{BGxwDpW8DkO8W0Ig.js → xMi-tFxI2s6e18L1.js} +1 -1
- package/assets/{DKKLWACR9GsidnkS.js → xSUMX6J9-MJIGgmG.js} +2 -2
- package/index.js +191 -191
- package/lib.js +1 -1
- package/licenses/dependencies.txt +69 -69
- package/package.json +2 -2
- package/screenshot-page/assets/{DMbFr7oWja7Qpsm6.js → 0P0DnZolMnjPhiea.js} +2 -2
- package/screenshot-page/assets/3L7CY5dA_kT2UBjv.js +1 -0
- package/screenshot-page/assets/{FcTM4SB17cEX1M3X.js → 5Y11BWntgqmzo9dz.js} +1 -1
- package/screenshot-page/assets/{CXwbGzavyvYgDbWU.js → B0CDAMDdxSN4en9k.js} +1 -1
- package/screenshot-page/assets/B6UwT0pG4sQeG7fA.js +3 -0
- package/screenshot-page/assets/BCmGLxQEUabeee6Q.js +2 -0
- package/screenshot-page/assets/{Cengqc8q8BTmNfb_.js → BGIujWi3UayyIWlg.js} +1 -1
- package/screenshot-page/assets/BH2IWQ-8AfNbhYZJ.js +39 -0
- package/screenshot-page/assets/BNjmzbnQlBmX-HPQ.js +1 -0
- package/screenshot-page/assets/{DcrVJCyDwGKeil2U.js → BQTLEc84Eql61S2m.js} +1 -1
- package/screenshot-page/assets/{BjJ_nnNDZEPLpapa.js → BVnzv_sY_58zEJyM.js} +1 -1
- package/screenshot-page/assets/{Cx1kZ2u_8JFV2Q8D.js → BiRVjUOUI8Qv0CE1.js} +1 -1
- package/screenshot-page/assets/BkU12U7IqW7qjopk.js +13 -0
- package/screenshot-page/assets/{D4hvW_TF7vwc-Xlq.js → Bne-AygyF1USkPAy.js} +2 -2
- package/screenshot-page/assets/{Dkf51CnZh2zPEGMd.js → BpJaTpbR_CQzXj9M.js} +1 -1
- package/screenshot-page/assets/Bs-IXwX9BKsCxwcJ.js +2 -0
- package/screenshot-page/assets/{ONNSfQ8RDOqBDsvw.js → Bt7fKk5ZupUuo_xD.js} +2 -2
- package/screenshot-page/assets/{CGx-ZSMV9cPOzbu4.js → C-2hBFk27roWkIrQ.js} +2 -2
- package/screenshot-page/assets/C7MXfx6zf_uTwcpu.js +1 -0
- package/screenshot-page/assets/CALWodHqzUTIv9le.js +5 -0
- package/screenshot-page/assets/{Ce8b0lOBuWKlfLzJ.js → CCYEWK5QyGSnUAfh.js} +1 -1
- package/screenshot-page/assets/{CEL5lzj2NDYwJ-HC.js → CFS0h-wE9YlZRk_1.js} +1 -1
- package/screenshot-page/assets/CKdQfdZJGJFgnrr9.js +586 -0
- package/screenshot-page/assets/{DvRXbyteeo_8sy8T.js → CL_hAngRQwm_KGdR.js} +1 -1
- package/screenshot-page/assets/{BTKdl-XR9TlWaFe7.js → CMryHLEhCyKGuRSW.js} +6 -6
- package/screenshot-page/assets/COL9dj40ytErlGak.js +2 -0
- package/screenshot-page/assets/{BAxPBeFudRJ3OqIC.js → CRtk9ixuBWxhPfPU.js} +1 -1
- package/screenshot-page/assets/CUQsrLir5jYpnRPM.js +1 -0
- package/screenshot-page/assets/CUgX7ETRCJsvqa2x.js +1 -0
- package/screenshot-page/assets/{C7mXat-6esc1AmRD.js → CXeDqC02BZcixiHS.js} +2 -2
- package/screenshot-page/assets/{Cv0zGWEBpmC07Jps.js → CZaKvnrRdlLj1_X8.js} +1 -1
- package/screenshot-page/assets/CfD1bn6b-NM38iZV.js +1 -0
- package/screenshot-page/assets/{BJct69niPZc8L_gZ.js → Ck5onwb1w_19WrtG.js} +1 -1
- package/screenshot-page/assets/{DyxJBLjUkeDuu96F.js → CltB1nb5HHSmYrNG.js} +1 -1
- package/screenshot-page/assets/{D6Yv5cc1JE7DGd6j.js → CqBSIwwGzWl8mrBe.js} +1 -1
- package/screenshot-page/assets/CvBPH5c-gnUG8Jen.js +1 -0
- package/screenshot-page/assets/D-jd_TJCN7AAn125.js +48 -0
- package/screenshot-page/assets/{ChSvXfVMLxZsP9zG.js → D4RZZdlItfrgQHcE.js} +1 -1
- package/screenshot-page/assets/{B2PWru6Ty7ODc2Ie.js → D53hpXNHxIgSWl80.js} +1 -1
- package/screenshot-page/assets/{J73KTOmdZGNmnq-z.js → D72Rp__0TEqJ972a.js} +1 -1
- package/screenshot-page/assets/D8EmNst-H2v0eWcf.js +1 -0
- package/screenshot-page/assets/{Cbbl3H042tb0krfe.js → D98PlIA4qQ_6ciCu.js} +2 -2
- package/screenshot-page/assets/{Tj3B5At0OAN3tDza.js → DACqwpSwlZka3b7s.js} +1 -1
- package/screenshot-page/assets/{CI3Z1f4amZ9G2rPD.js → DJebrQ5mu8uxpX3b.js} +1 -1
- package/screenshot-page/assets/{DtQFcMvZesaQ4xRf.js → DTAKTGn53yF_B621.js} +1 -1
- package/screenshot-page/assets/{CaOsWPeN_FXseSNg.js → DYYzsN95gWMsxOaj.js} +1 -1
- package/screenshot-page/assets/{C5-sm7wuk62Nzm_p.js → Da_VIghRFdNrmfZT.js} +1 -1
- package/screenshot-page/assets/{Be1S5czBx0lxhYLW.js → DbnmgPTSEii4OGkB.js} +1 -1
- package/screenshot-page/assets/{0UZBKpOOsp7P-DkP.js → DdmX3djBOA6UCZtf.js} +2 -2
- package/screenshot-page/assets/{DEpn6VGd30cHEJOS.js → DfQS5zAy3pN31xNb.js} +1 -1
- package/screenshot-page/assets/{BT2nkqpteSR9booH.js → DkTX5ZjGNQ5SrwJa.js} +1 -1
- package/screenshot-page/assets/{Bml69dFBVggmVWda.js → DmIjTb4kKfUHxWaF.js} +9 -9
- package/screenshot-page/assets/DqOrgSpuJhQRhMoG.js +4 -0
- package/screenshot-page/assets/{JM0_BaBZ3yF6lnHC.js → Dz_yLNMXKWGx1O6V.js} +2 -2
- package/screenshot-page/assets/{B-8IMo2f1yGNXOyz.js → GxbRmvyoKhHl0ZYY.js} +13 -8
- package/screenshot-page/assets/{C-n8BDiksNjX6Orz.js → MqGbtsji4DVGCAMR.js} +1 -1
- package/screenshot-page/assets/{zvxBjll3jnL0-vNn.js → Np3jWxG724t5hLHZ.js} +2 -2
- package/screenshot-page/assets/eR9_DaySoB72PvMo.js +1 -0
- package/screenshot-page/assets/hB5riGkPy0wXVIig.js +1 -0
- package/screenshot-page/assets/hHvAGynpTvAb97GX.js +1 -0
- package/screenshot-page/assets/{CiFaOHqsDQTE4RRi.js → jKvAZg0Tp701aw1o.js} +2 -2
- package/screenshot-page/assets/{DACSL7FA_J91Z_H7.js → jteb4n23QwBT9m_4.js} +1 -1
- package/screenshot-page/assets/mzrDp0emvkWnkXBt.js +1 -0
- package/screenshot-page/assets/x1O923k1mN-CduO_.js +1 -0
- package/screenshot-page/index.html +15 -15
- package/types/scripting-api.json +5745 -5743
- package/types/scripting.d.ts +23 -4
- package/assets/DU2Dzzu0oY_eDN6i.js +0 -14
- package/screenshot-page/assets/37LAUhU1_yKtsBlH.js +0 -2
- package/screenshot-page/assets/B3c6NBI22E5SZWG-.js +0 -1
- package/screenshot-page/assets/B3yyoGGGl8ICyeoC.js +0 -39
- package/screenshot-page/assets/B56KxTxcAXDom0g4.js +0 -13
- package/screenshot-page/assets/BPMQ22uISGOm3ymr.js +0 -1
- package/screenshot-page/assets/Bh2DVAOWvWfylt77.js +0 -1
- package/screenshot-page/assets/BoiQQ-37KQn6NcLT.js +0 -1
- package/screenshot-page/assets/C9a-cNha8mBw5q-l.js +0 -1
- package/screenshot-page/assets/CAQ7QWes7j7Fq8o5.js +0 -2
- package/screenshot-page/assets/CaP_vH0sJFjNrSkW.js +0 -1
- package/screenshot-page/assets/CcVllJMjVF6SvVVq.js +0 -2
- package/screenshot-page/assets/CyfTQE0Z76Rp4Fbt.js +0 -586
- package/screenshot-page/assets/D2CxEHjkPQMAxzWl.js +0 -1
- package/screenshot-page/assets/D7Y0npF3FMsGUjgO.js +0 -1
- package/screenshot-page/assets/DEAD_MduPNVoT_T6.js +0 -5
- package/screenshot-page/assets/DMhOGCTy8V0N14gY.js +0 -1
- package/screenshot-page/assets/DVQnEWIisXaOXb_G.js +0 -4
- package/screenshot-page/assets/DXbOBAxx4_2rt5KM.js +0 -1
- package/screenshot-page/assets/DgLZb-StwCd9ftop.js +0 -1
- package/screenshot-page/assets/DrnzLCa7NIirMxno.js +0 -3
- package/screenshot-page/assets/EOw6vVvEfYNga9b4.js +0 -1
- package/screenshot-page/assets/_zzVe2R8R4vwuc5q.js +0 -48
- package/screenshot-page/assets/qFyplGXRu7IepHio.js +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.25
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { Q as t, h as e, ht as n, ot as o, xt as s } from "./
|
|
8
|
-
import {
|
|
9
|
-
import { f as x, o as y, p as v, u as w } from "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { n as $ } from "./
|
|
13
|
-
import { F as B, _t as O, gt as V, pt as W, vt as z, yt as j } from "./
|
|
14
|
-
import { $t as X, A as H, An as U, At as G, Ct as q, D as J, Dn as K, Dr as Y, Dt as Z, En as Q, Et as et, F as nt, Ft as ot, G as st, Gn as rt, Gt as at, It as it, J as lt, Jn as ct, Jt as dt, Kn as mt, Kt as pt, L as ft, Lt as ht, M as ut, Mn as gt, Mt as xt, O as yt, Or as vt, Ot as wt, P as St, Pn as bt, Pt as Ct, Qn as Tt, R as kt, Rt as It, Sn as Rt, Sr as Ft, St as Et, Tn as Mt, Tr as Pt, Tt as At, U as Dt, Un as Lt, Ut as _t, Vt as Nt, W as $t, Wn as Bt, Xt as Vt, Yn as Wt, Yt as zt, Z as jt, Zt as Xt, _ as Ht, _r as Ut, ar as Gt, at as qt, b as Jt, bn as Kt, bt as Yt, c as Zt, cn as Qt, cr as te, ct as ee, d as ne, dn as oe, dr as se, dt as re, er as ae, et as ie, fr as ce, ft as de, gn as me, gr as pe, h as fe, hn as he, ht as ue, i as ge, ir as xe, it as ye, j as ve, jn as we, jr as Se, k as be, kn as Ce, kt as Te, l as ke, lr as Ie, lt as Re, n as Fe, nn as Ee, nt as Me, on as Pe, or as Ae, p as De, pn as Le, pr as _e, pt as Ne, qn as $e, r as Be, rn as Oe, rr as Ve, sn as We, st as ze, t as je, tn as Xe, tr as He, u as Ue, un as Ge, ur as qe, vn as Ke, vt as Ye, w as Ze, wn as Qe, wt as tn, y as en, yn as nn, yr as on, z as sn, zn as rn, zt as an } from "./
|
|
15
|
-
import { i as ln, l as cn, n as dn, o as mn, s as pn, t as fn } from "./
|
|
7
|
+
import { Q as t, h as e, ht as n, ot as o, xt as s } from "./ixHQtoul8ubEJfWS.js";
|
|
8
|
+
import { D as r, J as a, Jt as i, L as l, Lt as c, Ot as d, Xt as m, b as p, ct as f, s as h, w as u, x as g } from "./BbfSzxx5EzAvn-_F.js";
|
|
9
|
+
import { f as x, o as y, p as v, u as w } from "./CCOaNx5_BfWCc9yz.js";
|
|
10
|
+
import { $ as S, $r as b, B as C, Ct as T, Ga as k, O as I, Ti as R, U as F, Y as E, c as M, fo as P, oi as A, or as D, ya as L } from "./ckvxz2tZRlY1UPpg.js";
|
|
11
|
+
import { l as _, y as N } from "./DBgHcEP-FcgSHLvx.js";
|
|
12
|
+
import { n as $ } from "./BBccc8pDH-6AJdoT.js";
|
|
13
|
+
import { F as B, _t as O, gt as V, pt as W, vt as z, yt as j } from "./xMi-tFxI2s6e18L1.js";
|
|
14
|
+
import { $t as X, A as H, An as U, At as G, Ct as q, D as J, Dn as K, Dr as Y, Dt as Z, En as Q, Et as et, F as nt, Ft as ot, G as st, Gn as rt, Gt as at, It as it, J as lt, Jn as ct, Jt as dt, Kn as mt, Kt as pt, L as ft, Lt as ht, M as ut, Mn as gt, Mt as xt, O as yt, Or as vt, Ot as wt, P as St, Pn as bt, Pt as Ct, Qn as Tt, R as kt, Rt as It, Sn as Rt, Sr as Ft, St as Et, Tn as Mt, Tr as Pt, Tt as At, U as Dt, Un as Lt, Ut as _t, Vt as Nt, W as $t, Wn as Bt, Xt as Vt, Yn as Wt, Yt as zt, Z as jt, Zt as Xt, _ as Ht, _r as Ut, ar as Gt, at as qt, b as Jt, bn as Kt, bt as Yt, c as Zt, cn as Qt, cr as te, ct as ee, d as ne, dn as oe, dr as se, dt as re, er as ae, et as ie, fr as ce, ft as de, gn as me, gr as pe, h as fe, hn as he, ht as ue, i as ge, ir as xe, it as ye, j as ve, jn as we, jr as Se, k as be, kn as Ce, kt as Te, l as ke, lr as Ie, lt as Re, n as Fe, nn as Ee, nt as Me, on as Pe, or as Ae, p as De, pn as Le, pr as _e, pt as Ne, qn as $e, r as Be, rn as Oe, rr as Ve, sn as We, st as ze, t as je, tn as Xe, tr as He, u as Ue, un as Ge, ur as qe, vn as Ke, vt as Ye, w as Ze, wn as Qe, wt as tn, y as en, yn as nn, yr as on, z as sn, zn as rn, zt as an } from "./DXVfJfT6ftWk5kYi.js";
|
|
15
|
+
import { i as ln, l as cn, n as dn, o as mn, s as pn, t as fn } from "./eCD6fmcTsgv76IZm.js";
|
|
16
16
|
var hn = [
|
|
17
17
|
["%EntityServiceId", "i"],
|
|
18
18
|
["_DisplayString", "s"],
|
|
@@ -27,7 +27,7 @@ var hn = [
|
|
|
27
27
|
], xn = (t) => {
|
|
28
28
|
const e = t.getName(), n = e.lastIndexOf(":");
|
|
29
29
|
return n > 0 ? e.substring(0, n) : e;
|
|
30
|
-
}, yn = (t) => t instanceof
|
|
30
|
+
}, yn = (t) => t instanceof R && "#spb" === xn(t.getKind()), vn = (t) => "" + t, wn = (t, e) => {
|
|
31
31
|
const n = [];
|
|
32
32
|
return t?.cardView && n.push(["ShowInCardView", "0"]), t?.dotNotation && n.push(["ShowInDotNotation", "0"]), t?.autoComplete && n.push(["ShowInAutoComplete", "0"]), e && t?.calcCompare && n.push(["ExcludeFromCalcComparison", "1"]), n;
|
|
33
33
|
}, Sn = "resourcesById", bn = class {
|
|
@@ -685,7 +685,7 @@ var Zn = "xfVariants", Qn = class {
|
|
|
685
685
|
if (void 0 !== e) return e;
|
|
686
686
|
const n = this._json?.direct?.[t];
|
|
687
687
|
if (e = n?.protection?.showFormulas, void 0 === e) {
|
|
688
|
-
const o = (0 !== t ? n?.named : void 0) ??
|
|
688
|
+
const o = (0 !== t ? n?.named : void 0) ?? l.BuiltInName.Normal;
|
|
689
689
|
e = this._styles.getNamedStyles().getByName(o)?.toJSON().style?.protection?.showFormulas ?? !1;
|
|
690
690
|
}
|
|
691
691
|
return this._shown.set(t, e), e;
|
|
@@ -902,10 +902,10 @@ function so(n, s, r, a, i) {
|
|
|
902
902
|
};
|
|
903
903
|
}({
|
|
904
904
|
cells: m,
|
|
905
|
-
cols: l.cols ?
|
|
906
|
-
rows: l.rows ?
|
|
905
|
+
cols: l.cols ? P.refsToRuns(l.cols, !0) : [],
|
|
906
|
+
rows: l.rows ? P.refsToRuns(l.rows, !1) : []
|
|
907
907
|
}, d, a), g = { ...n };
|
|
908
|
-
u.cols.length > 0 ? g.cols =
|
|
908
|
+
u.cols.length > 0 ? g.cols = P.runsToRefs(u.cols, !0) : delete g.cols;
|
|
909
909
|
const x = function(t, e, n) {
|
|
910
910
|
if (0 === e.length && 0 === n.length) return t;
|
|
911
911
|
const o = [], s = (t) => {
|
|
@@ -936,9 +936,9 @@ function so(n, s, r, a, i) {
|
|
|
936
936
|
}
|
|
937
937
|
return r;
|
|
938
938
|
}(u.rows, h.top, h.bottom);
|
|
939
|
-
x.length > 0 ? g.rows =
|
|
939
|
+
x.length > 0 ? g.rows = P.runsToRefs(x, !1) : delete g.rows;
|
|
940
940
|
const y = u.cells;
|
|
941
|
-
return y.length > 0 ? g.directStyles = y.map(([t, e]) => [
|
|
941
|
+
return y.length > 0 ? g.directStyles = y.map(([t, e]) => [P.rangeToString(t, d), e]) : delete g.directStyles, g;
|
|
942
942
|
}
|
|
943
943
|
function ro(t, e) {
|
|
944
944
|
if (!t || !e) return t === e;
|
|
@@ -951,19 +951,19 @@ function ro(t, e) {
|
|
|
951
951
|
return e.color?.isIColor && (o = e.color.toString()), n === o;
|
|
952
952
|
}
|
|
953
953
|
function ao(t, e, n, o) {
|
|
954
|
-
const s = o ?
|
|
954
|
+
const s = o ? i.Edge.Left : i.Edge.Top, r = o ? i.Edge.Right : i.Edge.Bottom, a = o ? i.Edge.Vertical : i.Edge.Horizontal, l = o ? e.colStart : e.rowStart, c = o ? e.colEnd : e.rowEnd, d = o ? n.colStart : n.rowStart, m = o ? n.colEnd : n.rowEnd, p = l === d, f = c === m, h = { ...t };
|
|
955
955
|
return p && f ? t : (delete h[s], delete h[r], delete h[a], p ? void 0 !== t[s] && (h[s] = t[s]) : void 0 !== t[a] && (h[s] = t[a]), f ? void 0 !== t[r] && (h[r] = t[r]) : void 0 !== t[a] && (h[r] = t[a]), m - d > 0 && void 0 !== t[a] && (h[a] = t[a]), 0 === Object.keys(h).length ? null : h);
|
|
956
956
|
}
|
|
957
957
|
function io(t, e, n) {
|
|
958
958
|
const o = t.colEnd - t.colStart + 1, s = t.rowEnd - t.rowStart + 1;
|
|
959
959
|
let r = e.borders;
|
|
960
960
|
if (1 === o && 1 === s || !r) return [[t, e]];
|
|
961
|
-
const a = void 0 !== n && t.colEnd >= n.colEnd,
|
|
962
|
-
if ((a ||
|
|
961
|
+
const a = void 0 !== n && t.colEnd >= n.colEnd, l = void 0 !== n && t.rowEnd >= n.rowEnd;
|
|
962
|
+
if ((a || l) && (r = { ...r }, a && (void 0 !== r[i.Edge.Vertical] ? r[i.Edge.Right] = r[i.Edge.Vertical] : delete r[i.Edge.Right]), l && (void 0 !== r[i.Edge.Horizontal] ? r[i.Edge.Bottom] = r[i.Edge.Horizontal] : delete r[i.Edge.Bottom]), 0 === Object.keys(r).length)) {
|
|
963
963
|
const n = { ...e };
|
|
964
964
|
return delete n.borders, Object.keys(n).length > 0 ? [[t, n]] : [];
|
|
965
965
|
}
|
|
966
|
-
const c = 1 === o || ro(r[
|
|
966
|
+
const c = 1 === o || ro(r[i.Edge.Left], r[i.Edge.Vertical]) && ro(r[i.Edge.Right], r[i.Edge.Vertical]), d = 1 === s || ro(r[i.Edge.Top], r[i.Edge.Horizontal]) && ro(r[i.Edge.Bottom], r[i.Edge.Horizontal]);
|
|
967
967
|
if (c && d) return [[t, r === e.borders ? e : {
|
|
968
968
|
...e,
|
|
969
969
|
borders: r
|
|
@@ -975,12 +975,12 @@ function io(t, e, n) {
|
|
|
975
975
|
rowStart: e.rowStart,
|
|
976
976
|
colEnd: e.colEnd,
|
|
977
977
|
rowEnd: e.rowStart
|
|
978
|
-
}, a, o, !1), (s > 2 ||
|
|
978
|
+
}, a, o, !1), (s > 2 || l) && p(e, {
|
|
979
979
|
colStart: e.colStart,
|
|
980
980
|
rowStart: e.rowStart + 1,
|
|
981
981
|
colEnd: e.colEnd,
|
|
982
|
-
rowEnd:
|
|
983
|
-
}, a, o, !1),
|
|
982
|
+
rowEnd: l ? e.rowEnd : e.rowEnd - 1
|
|
983
|
+
}, a, o, !1), l || p(e, {
|
|
984
984
|
colStart: e.colStart,
|
|
985
985
|
rowStart: e.rowEnd,
|
|
986
986
|
colEnd: e.colEnd,
|
|
@@ -1009,7 +1009,7 @@ function io(t, e, n) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
var lo = 2, co = 3, mo = (t) => {
|
|
1011
1011
|
const e = t?.style;
|
|
1012
|
-
return e ?
|
|
1012
|
+
return e ? i.BuiltInDefinitions.get(e)?.width ?? 0 : 0;
|
|
1013
1013
|
};
|
|
1014
1014
|
function po(t) {
|
|
1015
1015
|
t.sort((t, e) => t.min - e.min);
|
|
@@ -1307,7 +1307,7 @@ var xo = [
|
|
|
1307
1307
|
o.push([a.name, "spb"]), r.push(yn(i) ? "" + e(i) : "");
|
|
1308
1308
|
break;
|
|
1309
1309
|
case "array":
|
|
1310
|
-
o.push([a.name, "spba"]), r.push(i instanceof
|
|
1310
|
+
o.push([a.name, "spba"]), r.push(i instanceof S ? "" + t.addBagArray(s(i)) : "");
|
|
1311
1311
|
break;
|
|
1312
1312
|
case "integer":
|
|
1313
1313
|
o.push([a.name, "i"]), r.push(null == i ? "0" : "" + i);
|
|
@@ -1323,9 +1323,9 @@ var xo = [
|
|
|
1323
1323
|
const n = e.getElements(), o = Math.max(1, ...n.map((t) => t.length));
|
|
1324
1324
|
return t.addArray(n.length, o, s(e));
|
|
1325
1325
|
}, a = (e, o) => {
|
|
1326
|
-
if (e instanceof
|
|
1327
|
-
if (e instanceof
|
|
1328
|
-
if (e instanceof
|
|
1326
|
+
if (e instanceof R) return l(e);
|
|
1327
|
+
if (e instanceof S) return t.addValue(t.structureFor("_array", [["array", "a"]]), ["" + r(e)]);
|
|
1328
|
+
if (e instanceof C) return t.addValue(t.structureFor("_hyperlink", [["Address", "s"], ["Text", "s"]]), [e.getAddress() ?? "", "" + (e.getFriendlyName() ?? e.getAddress() ?? "")]);
|
|
1329
1329
|
if ("number" == typeof e) {
|
|
1330
1330
|
const s = o ? [["_Self", "" + t.addRichStyle({ numberFormat: o })]] : [];
|
|
1331
1331
|
return t.addValue(t.structureFor("_formattednumber", [["_Format", "spb"]]), ["" + n(s, "i")], vn(e));
|
|
@@ -1386,7 +1386,7 @@ var xo = [
|
|
|
1386
1386
|
yn(u) ? (p.push([h, "spb"]), f.push("" + e(u))) : (p.push([h, "r"]), f.push(null == u ? "" : "" + a(u, d[h]?.numberFormat)));
|
|
1387
1387
|
break;
|
|
1388
1388
|
case "array":
|
|
1389
|
-
p.push([h, "a"]), f.push(u instanceof
|
|
1389
|
+
p.push([h, "a"]), f.push(u instanceof S ? "" + r(u) : "");
|
|
1390
1390
|
break;
|
|
1391
1391
|
case "string":
|
|
1392
1392
|
p.push([h, "s"]), f.push(null == u ? "" : "" + u);
|
|
@@ -1423,7 +1423,7 @@ var xo = [
|
|
|
1423
1423
|
}
|
|
1424
1424
|
return i(e);
|
|
1425
1425
|
};
|
|
1426
|
-
return { writeCell: (t) => t instanceof
|
|
1426
|
+
return { writeCell: (t) => t instanceof R && !yn(t) ? l(t) : t instanceof S ? a(t, void 0) : null };
|
|
1427
1427
|
})(this), this._metaCollector = t, this._workbook = e, this._onWarn = n;
|
|
1428
1428
|
}
|
|
1429
1429
|
add(t, e = null) {
|
|
@@ -1573,64 +1573,64 @@ function Mo(t, e, n, o) {
|
|
|
1573
1573
|
if (!n) return;
|
|
1574
1574
|
const s = "string" == typeof n ? e.parseColor(n) : n;
|
|
1575
1575
|
o && t.start(o);
|
|
1576
|
-
const
|
|
1577
|
-
switch (
|
|
1576
|
+
const a = s.getType(), i = s.getVal(), l = s.getAdjustments(), c = l && l.length > 0;
|
|
1577
|
+
switch (a) {
|
|
1578
1578
|
case "scheme":
|
|
1579
|
-
|
|
1579
|
+
c ? (t.start("schemeClr", { val: i }), Po(t, l), t.end("schemeClr")) : t.empty("schemeClr", { val: i });
|
|
1580
1580
|
break;
|
|
1581
1581
|
case "named":
|
|
1582
|
-
if (
|
|
1582
|
+
if (r.isSystem(i)) {
|
|
1583
1583
|
const e = s.getLastColor() ?? s.getBaseColor().toHex().toString(!1).replace("#", "");
|
|
1584
|
-
|
|
1585
|
-
val:
|
|
1584
|
+
c ? (t.start("sysClr", {
|
|
1585
|
+
val: i,
|
|
1586
1586
|
lastClr: e
|
|
1587
|
-
}), Po(t,
|
|
1588
|
-
val:
|
|
1587
|
+
}), Po(t, l), t.end("sysClr")) : t.empty("sysClr", {
|
|
1588
|
+
val: i,
|
|
1589
1589
|
lastClr: e
|
|
1590
1590
|
});
|
|
1591
|
-
} else
|
|
1591
|
+
} else c ? (t.start("prstClr", { val: i }), Po(t, l), t.end("prstClr")) : t.empty("prstClr", { val: i });
|
|
1592
1592
|
break;
|
|
1593
1593
|
case "auto": {
|
|
1594
1594
|
const e = s.getLastColor() ?? s.getBaseColor().toHex().toString(!1).replace("#", "");
|
|
1595
|
-
|
|
1595
|
+
c ? (t.start("sysClr", {
|
|
1596
1596
|
val: "windowText",
|
|
1597
1597
|
lastClr: e
|
|
1598
|
-
}), Po(t,
|
|
1598
|
+
}), Po(t, l), t.end("sysClr")) : t.empty("sysClr", {
|
|
1599
1599
|
val: "windowText",
|
|
1600
1600
|
lastClr: e
|
|
1601
1601
|
});
|
|
1602
1602
|
break;
|
|
1603
1603
|
}
|
|
1604
1604
|
case "index":
|
|
1605
|
-
|
|
1605
|
+
c ? (t.start("srgbClr", { val: i }), Po(t, l), t.end("srgbClr")) : t.empty("srgbClr", { val: i });
|
|
1606
1606
|
break;
|
|
1607
1607
|
case "hsl":
|
|
1608
1608
|
const e = s.toHex().toString();
|
|
1609
|
-
|
|
1609
|
+
c ? (t.start("srgbClr", { val: e }), Po(t, l), t.end("srgbClr")) : t.empty("srgbClr", { val: e });
|
|
1610
1610
|
break;
|
|
1611
1611
|
case "lrgb": {
|
|
1612
|
-
const e = /^lrgba?\(\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)/i.exec(String(
|
|
1612
|
+
const e = /^lrgba?\(\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)/i.exec(String(i));
|
|
1613
1613
|
if (e) {
|
|
1614
1614
|
const n = {
|
|
1615
1615
|
r: String(Math.round(1e3 * parseFloat(e[1]))),
|
|
1616
1616
|
g: String(Math.round(1e3 * parseFloat(e[2]))),
|
|
1617
1617
|
b: String(Math.round(1e3 * parseFloat(e[3])))
|
|
1618
1618
|
};
|
|
1619
|
-
|
|
1619
|
+
c ? (t.start("scrgbClr", n), Po(t, l), t.end("scrgbClr")) : t.empty("scrgbClr", n);
|
|
1620
1620
|
break;
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
1623
|
case "rgb":
|
|
1624
1624
|
const n = s.toHex().toString();
|
|
1625
|
-
|
|
1625
|
+
c ? (t.start("srgbClr", { val: n }), Po(t, l), t.end("srgbClr")) : t.empty("srgbClr", { val: n });
|
|
1626
1626
|
break;
|
|
1627
1627
|
case "hex":
|
|
1628
|
-
const o =
|
|
1629
|
-
|
|
1628
|
+
const o = i.replace("#", "").toUpperCase();
|
|
1629
|
+
c ? (t.start("srgbClr", { val: o }), Po(t, l), t.end("srgbClr")) : t.empty("srgbClr", { val: o });
|
|
1630
1630
|
break;
|
|
1631
1631
|
default:
|
|
1632
|
-
const
|
|
1633
|
-
t.empty("srgbClr", { val:
|
|
1632
|
+
const a = i.replace("#", "").toUpperCase();
|
|
1633
|
+
t.empty("srgbClr", { val: a });
|
|
1634
1634
|
}
|
|
1635
1635
|
o && t.end(o);
|
|
1636
1636
|
}
|
|
@@ -1661,29 +1661,29 @@ function Ao(t, e, n, o, s = !1, r = !1) {
|
|
|
1661
1661
|
if (!n) return;
|
|
1662
1662
|
const a = "string" == typeof n ? e.parseColor(n) : n, i = () => {
|
|
1663
1663
|
t.empty(o, { rgb: Vo(a.toHex().toString(!0)) });
|
|
1664
|
-
}, l = a.getAdjustments(),
|
|
1665
|
-
if (
|
|
1666
|
-
if (
|
|
1664
|
+
}, l = a.getAdjustments(), d = l && l.length > 0, m = a.getType();
|
|
1665
|
+
if (m !== c.Type.Auto) {
|
|
1666
|
+
if (m === c.Type.Scheme) {
|
|
1667
1667
|
const e = a.getVal(), n = Do[e] ?? e, s = No.get(n);
|
|
1668
1668
|
if (void 0 === s && "phClr" !== n) return console.warn(`Color scheme not in theme. schemeVal=${e} themeKey=${n}`), i();
|
|
1669
1669
|
const r = {};
|
|
1670
|
-
if (r.theme = s,
|
|
1670
|
+
if (r.theme = s, d) {
|
|
1671
1671
|
if (!function(t) {
|
|
1672
1672
|
for (const e of t) switch (Object.keys(e)[0]) {
|
|
1673
|
-
case
|
|
1674
|
-
case
|
|
1675
|
-
case
|
|
1676
|
-
case
|
|
1677
|
-
case
|
|
1678
|
-
case
|
|
1679
|
-
case
|
|
1680
|
-
case
|
|
1681
|
-
case
|
|
1673
|
+
case c.AdjustmentType.Tint:
|
|
1674
|
+
case c.AdjustmentType.ETint:
|
|
1675
|
+
case c.AdjustmentType.Shade:
|
|
1676
|
+
case c.AdjustmentType.Lum:
|
|
1677
|
+
case c.AdjustmentType.LumOff:
|
|
1678
|
+
case c.AdjustmentType.LumMod:
|
|
1679
|
+
case c.AdjustmentType.Alpha:
|
|
1680
|
+
case c.AdjustmentType.AlphaOff:
|
|
1681
|
+
case c.AdjustmentType.AlphaMod: continue;
|
|
1682
1682
|
default: return !1;
|
|
1683
1683
|
}
|
|
1684
1684
|
return !0;
|
|
1685
1685
|
}(l)) return i();
|
|
1686
|
-
const t = 1 === l.length ? l[0][
|
|
1686
|
+
const t = 1 === l.length ? l[0][c.AdjustmentType.ETint] : void 0;
|
|
1687
1687
|
let e;
|
|
1688
1688
|
if (void 0 !== t) e = Bo(t);
|
|
1689
1689
|
else {
|
|
@@ -1698,7 +1698,7 @@ function Ao(t, e, n, o, s = !1, r = !1) {
|
|
|
1698
1698
|
t.empty(o, r);
|
|
1699
1699
|
return;
|
|
1700
1700
|
}
|
|
1701
|
-
if (
|
|
1701
|
+
if (m === c.Type.Index) {
|
|
1702
1702
|
const e = a.getVal(), n = e.substring(5, e.length);
|
|
1703
1703
|
t.empty(o, { indexed: Number(n) });
|
|
1704
1704
|
return;
|
|
@@ -1778,40 +1778,40 @@ var zo = "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
|
1778
1778
|
const s = "string" == typeof o ? { address: o } : o, r = { "xmlns:r": zo };
|
|
1779
1779
|
s.address && (r["r:id"] = t.addExternal("http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", s.address).relId ?? void 0), r.action = s.action, r.tgtFrame = s.target, r.tooltip = s.screenTip, void 0 !== s.history && (r.history = s.history ? "1" : "0"), e.empty(n, r);
|
|
1780
1780
|
};
|
|
1781
|
-
function Xo(t, e, o, s, r = !1,
|
|
1782
|
-
const
|
|
1781
|
+
function Xo(t, e, o, s, r = !1, a = !1) {
|
|
1782
|
+
const i = s.getTheme();
|
|
1783
1783
|
if (r && e.start("fill"), "string" == typeof o && (o = {
|
|
1784
|
-
type:
|
|
1784
|
+
type: u.Type.Solid,
|
|
1785
1785
|
color: o
|
|
1786
|
-
}), o.type !==
|
|
1787
|
-
else if (o.type ===
|
|
1786
|
+
}), o.type !== u.Type.Image || r) if (o.type !== u.Type.Group || r) if (o.type === u.Type.None || o.type === u.Type.Image || o.type === u.Type.Group) r ? e.empty("patternFill", { patternType: "none" }) : e.empty("noFill");
|
|
1787
|
+
else if (o.type === u.Type.Solid) {
|
|
1788
1788
|
const t = o;
|
|
1789
|
-
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? Ao(e,
|
|
1790
|
-
} else if (o.type ===
|
|
1789
|
+
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? Ao(e, i, t.color, a ? "bgColor" : "fgColor") : Mo(e, i, t.color)), r ? e.end("patternFill") : e.end("solidFill");
|
|
1790
|
+
} else if (o.type === u.Type.Pattern) {
|
|
1791
1791
|
const t = o, n = t.patternType || "solid";
|
|
1792
1792
|
e.start("patternFill", { patternType: n });
|
|
1793
|
-
const s =
|
|
1794
|
-
s && (r ? Ao(e,
|
|
1795
|
-
} else if (o.type ===
|
|
1793
|
+
const s = a ? t.background : t.foreground, l = a ? t.foreground : t.background;
|
|
1794
|
+
s && (r ? Ao(e, i, s, "fgColor") : Mo(e, i, s)), l && (r ? Ao(e, i, l, "bgColor") : Mo(e, i, l)), e.end("patternFill");
|
|
1795
|
+
} else if (o.type === u.Type.Gradient && r) {
|
|
1796
1796
|
const t = o, n = {}, s = t.gradientType;
|
|
1797
|
-
if (s !==
|
|
1797
|
+
if (s !== u.GradientType.Path && s !== u.GradientType.Linear || (n.type = s), void 0 !== t.angle) {
|
|
1798
1798
|
const e = (t.angle - 90) % 360;
|
|
1799
1799
|
0 !== e && (n.degree = String(e));
|
|
1800
1800
|
}
|
|
1801
1801
|
const r = t.focus;
|
|
1802
1802
|
r && (r.left && (n.left = String(r.left)), r.right && (n.right = String(r.right)), r.top && (n.top = String(r.top)), r.bottom && (n.bottom = String(r.bottom))), e.start("gradientFill", n);
|
|
1803
|
-
const
|
|
1804
|
-
if (
|
|
1803
|
+
const a = t.stops;
|
|
1804
|
+
if (a && a.length > 0) for (const t of a) {
|
|
1805
1805
|
let n, o = 0;
|
|
1806
1806
|
if ("string" == typeof t || "object" == typeof t && !("offset" in t)) n = t, o = 0;
|
|
1807
1807
|
else {
|
|
1808
1808
|
const e = t;
|
|
1809
1809
|
o = e.offset || 0, n = e.color;
|
|
1810
1810
|
}
|
|
1811
|
-
e.start("stop", { position: String(o) }), n && Ao(e,
|
|
1811
|
+
e.start("stop", { position: String(o) }), n && Ao(e, i, n, "color"), e.end("stop");
|
|
1812
1812
|
}
|
|
1813
1813
|
e.end("gradientFill");
|
|
1814
|
-
} else if (o.type ===
|
|
1814
|
+
} else if (o.type === u.Type.Gradient) {
|
|
1815
1815
|
const t = o, s = {};
|
|
1816
1816
|
void 0 !== t.flip && (s.flip = t.flip), void 0 !== t.isRotatedWithShape && (s.rotWithShape = t.isRotatedWithShape ? "1" : "0"), e.start("gradFill", s), e.start("gsLst");
|
|
1817
1817
|
const r = t.stops;
|
|
@@ -1819,19 +1819,19 @@ function Xo(t, e, o, s, r = !1, i = !1) {
|
|
|
1819
1819
|
const t = r.length - 1;
|
|
1820
1820
|
for (let o = 0; o < r.length; o++) {
|
|
1821
1821
|
const s = r[o];
|
|
1822
|
-
let a,
|
|
1822
|
+
let a, l = t > 0 ? o / t : 0;
|
|
1823
1823
|
if ("string" == typeof s || "object" == typeof s && !("offset" in s)) a = s;
|
|
1824
1824
|
else {
|
|
1825
1825
|
const t = s;
|
|
1826
|
-
|
|
1826
|
+
l = t.offset ?? l, a = t.color;
|
|
1827
1827
|
}
|
|
1828
|
-
e.start("gs", { pos: String(n.roundAccurately(1e5 *
|
|
1828
|
+
e.start("gs", { pos: String(n.roundAccurately(1e5 * l, 0)) }), a && Mo(e, i, a), e.end("gs");
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
e.end("gsLst");
|
|
1832
|
-
const
|
|
1833
|
-
if (
|
|
1834
|
-
const o =
|
|
1832
|
+
const a = t.gradientType;
|
|
1833
|
+
if (a && a !== u.GradientType.Linear) {
|
|
1834
|
+
const o = a === u.GradientType.Path || "radial" === a ? "circle" : a;
|
|
1835
1835
|
e.start("path", { path: o });
|
|
1836
1836
|
const s = t.focus;
|
|
1837
1837
|
if (s) {
|
|
@@ -1871,9 +1871,9 @@ var Ho = (t, e, o, s) => {
|
|
|
1871
1871
|
});
|
|
1872
1872
|
e.end("custDash");
|
|
1873
1873
|
} else "string" == typeof r.dash && e.empty("prstDash", { val: r.dash });
|
|
1874
|
-
if (r.lineJoin ===
|
|
1875
|
-
else if (r.lineJoin ===
|
|
1876
|
-
else if (r.lineJoin ===
|
|
1874
|
+
if (r.lineJoin === d.LineJoin.Round) e.empty("round");
|
|
1875
|
+
else if (r.lineJoin === d.LineJoin.Bevel) e.empty("bevel");
|
|
1876
|
+
else if (r.lineJoin === d.LineJoin.Miter) {
|
|
1877
1877
|
const t = {};
|
|
1878
1878
|
void 0 !== r.miterLimit && (t.lim = String(n.roundAccurately(1e5 * r.miterLimit, 0))), e.empty("miter", t);
|
|
1879
1879
|
}
|
|
@@ -1904,32 +1904,32 @@ var Ho = (t, e, o, s) => {
|
|
|
1904
1904
|
e.end("effectLst");
|
|
1905
1905
|
}, Jo = (t, e, o) => {
|
|
1906
1906
|
switch (o.type) {
|
|
1907
|
-
case
|
|
1907
|
+
case g.Type.OuterShadow: {
|
|
1908
1908
|
const s = {};
|
|
1909
1909
|
void 0 !== o.blur && (s.blurRad = String(ls(o.blur))), void 0 !== o.distance && (s.dist = String(ls(o.distance))), void 0 !== o.angle && (s.dir = String(ds(o.angle))), void 0 !== o.alignment && (s.algn = o.alignment), void 0 !== o.isRotatedWithShape && (s.rotWithShape = o.isRotatedWithShape ? "1" : "0"), void 0 !== o.scaleX && (s.sx = String(n.roundAccurately(1e3 * o.scaleX, 0))), void 0 !== o.scaleY && (s.sy = String(n.roundAccurately(1e3 * o.scaleY, 0))), void 0 !== o.skewX && (s.kx = String(ds(o.skewX))), void 0 !== o.skewY && (s.ky = String(ds(o.skewY))), t.start("outerShdw", s), Mo(t, e, o.color), t.end("outerShdw");
|
|
1910
1910
|
break;
|
|
1911
1911
|
}
|
|
1912
|
-
case
|
|
1912
|
+
case g.Type.InnerShadow: {
|
|
1913
1913
|
const n = {};
|
|
1914
1914
|
void 0 !== o.blur && (n.blurRad = String(ls(o.blur))), void 0 !== o.distance && (n.dist = String(ls(o.distance))), void 0 !== o.angle && (n.dir = String(ds(o.angle))), t.start("innerShdw", n), Mo(t, e, o.color), t.end("innerShdw");
|
|
1915
1915
|
break;
|
|
1916
1916
|
}
|
|
1917
|
-
case
|
|
1917
|
+
case g.Type.PresetShadow: {
|
|
1918
1918
|
const n = { prst: o.preset };
|
|
1919
1919
|
void 0 !== o.distance && (n.dist = String(ls(o.distance))), void 0 !== o.angle && (n.dir = String(ds(o.angle))), t.start("prstShdw", n), Mo(t, e, o.color), t.end("prstShdw");
|
|
1920
1920
|
break;
|
|
1921
1921
|
}
|
|
1922
|
-
case
|
|
1922
|
+
case g.Type.Glow: {
|
|
1923
1923
|
const n = {};
|
|
1924
1924
|
void 0 !== o.radius && (n.rad = String(ls(o.radius))), t.start("glow", n), Mo(t, e, o.color), t.end("glow");
|
|
1925
1925
|
break;
|
|
1926
1926
|
}
|
|
1927
|
-
case
|
|
1927
|
+
case g.Type.SoftEdge: {
|
|
1928
1928
|
const e = {};
|
|
1929
1929
|
void 0 !== o.radius && (e.rad = String(ls(o.radius))), t.empty("softEdge", e);
|
|
1930
1930
|
break;
|
|
1931
1931
|
}
|
|
1932
|
-
case
|
|
1932
|
+
case g.Type.Reflection: {
|
|
1933
1933
|
const e = {};
|
|
1934
1934
|
void 0 !== o.blur && (e.blurRad = String(ls(o.blur))), void 0 !== o.distance && (e.dist = String(ls(o.distance))), void 0 !== o.angle && (e.dir = String(ds(o.angle))), void 0 !== o.fadeAngle && (e.fadeDir = String(ds(o.fadeAngle))), void 0 !== o.startAlpha && (e.stA = String(n.roundAccurately(1e3 * o.startAlpha, 0))), void 0 !== o.startPosition && (e.stPos = String(n.roundAccurately(1e3 * o.startPosition, 0))), void 0 !== o.endAlpha && (e.endA = String(n.roundAccurately(1e3 * o.endAlpha, 0))), void 0 !== o.endPosition && (e.endPos = String(n.roundAccurately(1e3 * o.endPosition, 0))), void 0 !== o.scaleX && (e.sx = String(n.roundAccurately(1e3 * o.scaleX, 0))), void 0 !== o.scaleY && (e.sy = String(n.roundAccurately(1e3 * o.scaleY, 0))), void 0 !== o.skewX && (e.kx = String(ds(o.skewX))), void 0 !== o.skewY && (e.ky = String(ds(o.skewY))), void 0 !== o.alignment && (e.algn = o.alignment), void 0 !== o.isRotatedWithShape && (e.rotWithShape = o.isRotatedWithShape ? "1" : "0"), t.empty("reflection", e);
|
|
1935
1935
|
break;
|
|
@@ -1968,7 +1968,7 @@ var Ho = (t, e, o, s) => {
|
|
|
1968
1968
|
}, es = (t, e) => void 0 === e ? void 0 : t.getSharedStates().get(Sn)?.get(e), ns = async (t, e) => {
|
|
1969
1969
|
if (!e) return;
|
|
1970
1970
|
const n = e.fill;
|
|
1971
|
-
if (n?.type ===
|
|
1971
|
+
if (n?.type === u.Type.Image) {
|
|
1972
1972
|
const e = es(t, n.resId);
|
|
1973
1973
|
e && await ts(t, e);
|
|
1974
1974
|
}
|
|
@@ -2015,7 +2015,7 @@ var Ho = (t, e, o, s) => {
|
|
|
2015
2015
|
for (let e = 0; e < o; e++) {
|
|
2016
2016
|
const o = 0 === e ? {
|
|
2017
2017
|
...n[e],
|
|
2018
|
-
named:
|
|
2018
|
+
named: l.BuiltInName.Normal
|
|
2019
2019
|
} : n[e], r = t.resolve(o), a = {};
|
|
2020
2020
|
void 0 !== o.named && (a.named = o.named), void 0 !== o.quotePrefix && (a.quotePrefix = o.quotePrefix), void 0 !== o.protection && (a.protection = o.protection);
|
|
2021
2021
|
for (let t = 0; t < xs.length; t++) {
|
|
@@ -2054,7 +2054,7 @@ function ys(t, e, o) {
|
|
|
2054
2054
|
namedStyles: []
|
|
2055
2055
|
};
|
|
2056
2056
|
(function(t, e) {
|
|
2057
|
-
const n = (t.getNamedStyles().getByName(
|
|
2057
|
+
const n = (t.getNamedStyles().getByName(l.BuiltInName.Normal).toJSON().style ?? {}).font ?? {};
|
|
2058
2058
|
e.fontMap.set(s.JSONStableStringify(n), "0"), e.fonts.push(n);
|
|
2059
2059
|
})(t, r), function(t) {
|
|
2060
2060
|
const e = { type: "none" };
|
|
@@ -2073,7 +2073,7 @@ function ys(t, e, o) {
|
|
|
2073
2073
|
};
|
|
2074
2074
|
t.borderMap.set(s.JSONStableStringify(e), "0"), t.borders.push(e);
|
|
2075
2075
|
}(r), function(t, e) {
|
|
2076
|
-
Ss(t, t.getNamedStyles().getByName(
|
|
2076
|
+
Ss(t, t.getNamedStyles().getByName(l.BuiltInName.Normal).toJSON(), e);
|
|
2077
2077
|
}(t, r);
|
|
2078
2078
|
const a = e?.named ?? n.EmptyArray;
|
|
2079
2079
|
for (const e of a) Ss(t, e, r);
|
|
@@ -2082,7 +2082,7 @@ function ys(t, e, o) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
function vs(t, e, n) {
|
|
2084
2084
|
if (!e) return;
|
|
2085
|
-
const o =
|
|
2085
|
+
const o = m.toBuiltInID(e), s = n.numFmtMap;
|
|
2086
2086
|
if (!s.has(e)) {
|
|
2087
2087
|
let t = 0;
|
|
2088
2088
|
"number" == typeof o ? t = o : (t = n.numFmtsCustom.length + Ps, n.numFmtsCustom.push(o)), s.set(e, "" + t);
|
|
@@ -2156,42 +2156,42 @@ function Ts(t, e, n, o, s = !1) {
|
|
|
2156
2156
|
var ks = (t) => null == t ? null : "string" == typeof t ? t : JSON.stringify(t);
|
|
2157
2157
|
function Is(t, e, n, o = !1) {
|
|
2158
2158
|
const s = {};
|
|
2159
|
-
n.horizontal && n.horizontal !==
|
|
2159
|
+
n.horizontal && n.horizontal !== f.HorizontalAlignment.General && (s.horizontal = n.horizontal), n.vertical && n.vertical !== f.VerticalAlignment.Bottom && (s.vertical = n.vertical);
|
|
2160
2160
|
let r = n.rotation;
|
|
2161
2161
|
n.stacked && (s.textRotation = "255", r = 0), r && (r >= 270 && r < 360 ? r = 360 - r : r > 0 && r <= 90 && (r += 90), s.textRotation = String(r));
|
|
2162
2162
|
const a = n.overflow;
|
|
2163
|
-
switch (a ===
|
|
2164
|
-
case
|
|
2165
|
-
case
|
|
2163
|
+
switch (a === f.Overflow.Wrap && (s.wrapText = "1"), n.indent && (s.indent = "" + n.indent), n.relativeIndent && (s.relativeIndent = "" + n.relativeIndent), n.justifyLastLine && (s.justifyLastLine = "1"), a === f.Overflow.Shrink && (s.shrinkToFit = "1"), n.readingDirection) {
|
|
2164
|
+
case f.ReadingDirection.Auto: break;
|
|
2165
|
+
case f.ReadingDirection.LeftToRight:
|
|
2166
2166
|
s.readingOrder = "1";
|
|
2167
2167
|
break;
|
|
2168
|
-
case
|
|
2168
|
+
case f.ReadingDirection.RightToLeft: s.readingOrder = "2";
|
|
2169
2169
|
}
|
|
2170
2170
|
return Object.keys(s).length > 0 ? s : null;
|
|
2171
2171
|
}
|
|
2172
|
-
function Rs(t, e, n, o, r, a, i = !1,
|
|
2173
|
-
const
|
|
2174
|
-
let
|
|
2175
|
-
|
|
2176
|
-
const
|
|
2177
|
-
if (
|
|
2178
|
-
const t = o.named ??
|
|
2179
|
-
|
|
2172
|
+
function Rs(t, e, n, o, r, a, i = !1, c = !1, d = null) {
|
|
2173
|
+
const m = {};
|
|
2174
|
+
let p = null, f = o.named;
|
|
2175
|
+
f && (p = n.getNamedStyles().getByName(f).toJSON().style);
|
|
2176
|
+
const h = o.font ?? p?.font, u = h ? r.fontMap.get(s.JSONStableStringify(h)) ?? 0 : 0, g = o.fill ?? p?.fill, x = g ? r.fillMap.get(s.JSONStableStringify(g)) ?? 0 : 0, y = o.borders ?? p?.borders, v = y ? r.borderMap.get(s.JSONStableStringify(y)) ?? 0 : 0, w = o.numberFormat ?? p?.numberFormat;
|
|
2177
|
+
if (m.numFmtId = (void 0 !== w ? r.numFmtMap.get(w) : void 0) ?? "0", m.fontId = String(u), m.fillId = String(x), m.borderId = String(v), a) {
|
|
2178
|
+
const t = o.named ?? l.BuiltInName.Normal;
|
|
2179
|
+
m.xfId = r.namedStyleMap.get(t.toLowerCase());
|
|
2180
2180
|
}
|
|
2181
2181
|
let S = null;
|
|
2182
|
-
const b = o.alignment ??
|
|
2183
|
-
b && (S = Is(0, 0, b)), o.font && (
|
|
2182
|
+
const b = o.alignment ?? p?.alignment;
|
|
2183
|
+
b && (S = Is(0, 0, b)), o.font && (m.applyFont = "1"), o.fill && (m.applyFill = "1"), o.numberFormat && (m.applyNumberFormat = "1"), o.borders && (m.applyBorder = "1"), S && (m.applyAlignment = "1");
|
|
2184
2184
|
let C = null;
|
|
2185
|
-
const T = o.protection?.alwaysUnlocked ??
|
|
2186
|
-
(T || i) && (C = {}, T && (C.locked = "0"), i && (C.hidden = "1"),
|
|
2185
|
+
const T = o.protection?.alwaysUnlocked ?? p?.protection?.alwaysUnlocked ?? !1;
|
|
2186
|
+
(T || i) && (C = {}, T && (C.locked = "0"), i && (C.hidden = "1"), m.applyProtection = "1"), o.quotePrefix && (m.quotePrefix = "1"), c && (m.pivotButton = "1"), S || C || null !== d ? (e.start("xf", m), S && e.empty("alignment", S), C && e.empty("protection", C), null !== d && (e.start("extLst"), e.start("ext", {
|
|
2187
2187
|
uri: Fs,
|
|
2188
2188
|
"xmlns:xfpb": Es
|
|
2189
|
-
}), e.empty("xfpb:xfComplement", { i: String(
|
|
2189
|
+
}), e.empty("xfpb:xfComplement", { i: String(d) }), e.end("ext"), e.end("extLst")), e.end("xf")) : e.empty("xf", m);
|
|
2190
2190
|
}
|
|
2191
2191
|
var Fs = "{C7286773-470A-42A8-94C5-96B5CB345126}", Es = "http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag";
|
|
2192
2192
|
function Ms(t, e, n, o, s, r = "dxf", a = Ps) {
|
|
2193
2193
|
if (e.start(r), n.font && bs(0, e, n.font, o, !0), void 0 !== n.numberFormat && null !== n.numberFormat) {
|
|
2194
|
-
const t =
|
|
2194
|
+
const t = m.toBuiltInID(n.numberFormat), o = "number" == typeof t, s = o ? m.builtInFormat(t) : String(t);
|
|
2195
2195
|
s && e.empty("numFmt", {
|
|
2196
2196
|
numFmtId: String(o ? t : a++),
|
|
2197
2197
|
formatCode: s
|
|
@@ -2463,7 +2463,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2463
2463
|
numFmtId: (t) => ((t, e) => (vs(t.styles, e, t.denormalized), parseInt(t.denormalized.numFmtMap.get(e) ?? "0", 10)))(n, t),
|
|
2464
2464
|
dxfId: (t) => o.add(t)
|
|
2465
2465
|
};
|
|
2466
|
-
}, tr = (t, e) => t.getSharedStates().get("pivotCachePaths")?.get(e) ?? null, er = "date1904", nr = (t) => !0 === t.getSharedStates().get(er), or = 0, sr =
|
|
2466
|
+
}, tr = (t, e) => t.getSharedStates().get("pivotCachePaths")?.get(e) ?? null, er = "date1904", nr = (t) => !0 === t.getSharedStates().get(er), or = 0, sr = L.BuiltInOperatorNames, rr = (t, e, n, o, s, r, a) => {
|
|
2467
2467
|
const i = o.sorts, l = i ? i.length : 0;
|
|
2468
2468
|
if (0 === l) return;
|
|
2469
2469
|
const c = {};
|
|
@@ -2472,7 +2472,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2472
2472
|
t && (c.caseSensitive = "object" != typeof t || Array.isArray(t) || "case" !== t.sensitivity && "variant" !== t.sensitivity ? "0" : "1");
|
|
2473
2473
|
}
|
|
2474
2474
|
const d = o.extent, m = n.getRange().getCoords(), p = (d ? an(m, d.range) : null) ?? r;
|
|
2475
|
-
c.ref =
|
|
2475
|
+
c.ref = P.rangeToString(p), c["xmlns:xlrd2"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", e.start("sortState", c);
|
|
2476
2476
|
for (let n = 0; n < l; n++) {
|
|
2477
2477
|
const o = i[n], s = o.criteria ?? {}, l = o.index + r.colStart, c = {};
|
|
2478
2478
|
s.reverse && (c.descending = "1");
|
|
@@ -2486,7 +2486,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2486
2486
|
colStart: l,
|
|
2487
2487
|
colEnd: l
|
|
2488
2488
|
});
|
|
2489
|
-
c.ref =
|
|
2489
|
+
c.ref = P.rangeToString(h);
|
|
2490
2490
|
const u = ue(s.sortOn);
|
|
2491
2491
|
u && (c.sortBy = u), void 0 !== s.style && (c.dxfId = hs(t.getSharedStates()).add(s.style)), void 0 !== s.iconSet && (c.iconSet = s.iconSet), void 0 !== s.customList && (c.customList = s.customList), e.empty("sortCondition", c);
|
|
2492
2492
|
}
|
|
@@ -2522,16 +2522,16 @@ var Ps = 164, As = Object.freeze([
|
|
|
2522
2522
|
const s = { operator: o.operator };
|
|
2523
2523
|
void 0 !== o.val && (s.val = o.val), e.empty("customFilter", s);
|
|
2524
2524
|
}, lr = /* @__PURE__ */ new Set([
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2525
|
+
L.BuiltInSelectorNames.Display,
|
|
2526
|
+
L.BuiltInSelectorNames.Date,
|
|
2527
|
+
L.BuiltInSelectorNames.Time
|
|
2528
2528
|
]), cr = (t, e, n, o, s, r = null) => {
|
|
2529
2529
|
const a = {};
|
|
2530
2530
|
a.colId = "" + n, s && (a.hiddenButton = "1"), o ? (e.start("filterColumn", a), ((t, e, n, o = null) => {
|
|
2531
2531
|
const s = n.operator, r = "string" == typeof n.selector ? n.selector : n.selector?.getName?.();
|
|
2532
|
-
if (r && !lr.has(r) && t.warn(`A '${r}' selector has no OOXML form in a Table AutoFilter; the rule is written without it`, n), !0 === n.includeBlanks && s !==
|
|
2533
|
-
if (s ===
|
|
2534
|
-
if (s ===
|
|
2532
|
+
if (r && !lr.has(r) && t.warn(`A '${r}' selector has no OOXML form in a Table AutoFilter; the rule is written without it`, n), !0 === n.includeBlanks && s !== L.BuiltInOperatorNames.InSet && s !== sr.Blank && t.warn("Ignore Blank has no OOXML form in a Table AutoFilter outside a values list; Excel will hide the blank rows", n), s === L.BuiltInOperatorNames.Expression) return void t.warn("Expression conditions not supported in Table AutoFilters", n);
|
|
2533
|
+
if (s === L.BuiltInOperatorNames.Unique) return void t.warn("Unique conditions not supported in Table AutoFilters", n);
|
|
2534
|
+
if (s === L.BuiltInOperatorNames.Color) {
|
|
2535
2535
|
const o = n.param, s = {};
|
|
2536
2536
|
void 0 !== o.cellColor && (s.cellColor = o.cellColor ? "1" : "0"), void 0 !== o.style && (s.dxfId = hs(t.getSharedStates()).add(o.style)), e.empty("colorFilter", s);
|
|
2537
2537
|
}
|
|
@@ -2546,10 +2546,10 @@ var Ps = 164, As = Object.freeze([
|
|
|
2546
2546
|
});
|
|
2547
2547
|
e.end("customFilters");
|
|
2548
2548
|
} else if (s !== sr.Blank) {
|
|
2549
|
-
if (s ===
|
|
2549
|
+
if (s === L.BuiltInOperatorNames.InSet) {
|
|
2550
2550
|
const s = n.param ?? {};
|
|
2551
2551
|
let r = Array.isArray(s.items) ? s.items : [];
|
|
2552
|
-
n.selector !==
|
|
2552
|
+
n.selector !== L.BuiltInSelectorNames.Display && r.some((t) => "string" != typeof t) && (r = ((t, e, n, o) => {
|
|
2553
2553
|
const s = [], r = [];
|
|
2554
2554
|
for (let t = 0; t < n.length; t++) {
|
|
2555
2555
|
const e = n[t];
|
|
@@ -2577,7 +2577,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2577
2577
|
e.end("customFilters");
|
|
2578
2578
|
}
|
|
2579
2579
|
} else U(n) ? (e.start("customFilters"), ir(t, e, n), e.end("customFilters")) : s === sr.Not && t.warn("Not rule with non-comparison criteria not supported in OOXML", n.param);
|
|
2580
|
-
if (s ===
|
|
2580
|
+
if (s === L.BuiltInOperatorNames.TimePeriod) {
|
|
2581
2581
|
const o = n.param, s = o?.type;
|
|
2582
2582
|
if (s && Qe.has(s)) {
|
|
2583
2583
|
const n = o.anchorDate, r = "number" == typeof n && Number.isFinite(n) ? tn(s, Math.floor(n), nr(t)) : null;
|
|
@@ -2588,15 +2588,15 @@ var Ps = 164, As = Object.freeze([
|
|
|
2588
2588
|
} : { type: s });
|
|
2589
2589
|
} else t.warn(`TimePeriod '${s}' has no OOXML dynamicFilter type; not written`, n.param);
|
|
2590
2590
|
}
|
|
2591
|
-
if (s ===
|
|
2592
|
-
const o = n.param, s = o?.type ===
|
|
2591
|
+
if (s === L.BuiltInOperatorNames.Average) {
|
|
2592
|
+
const o = n.param, s = o?.type === L.AverageType.Below ? "belowAverage" : "aboveAverage";
|
|
2593
2593
|
o?.stdDevs && t.warn(`Average with stdDevs has no OOXML spelling; written as ${s}`, n.param), e.empty("dynamicFilter", { type: s });
|
|
2594
2594
|
}
|
|
2595
|
-
if (s ===
|
|
2595
|
+
if (s === L.BuiltInOperatorNames.Icon) {
|
|
2596
2596
|
const t = n.param, o = {};
|
|
2597
2597
|
void 0 !== t.iconSet && (o.iconSet = t.iconSet), void 0 !== t.iconId && (o.iconId = "" + t.iconId), e.empty("iconFilter", o);
|
|
2598
2598
|
}
|
|
2599
|
-
if (s ===
|
|
2599
|
+
if (s === L.BuiltInOperatorNames.TopN) {
|
|
2600
2600
|
const o = n.param;
|
|
2601
2601
|
if (o.sum) return void t.warn("Top N by sum has no OOXML form in a Table AutoFilter; it is not written", n);
|
|
2602
2602
|
const s = {};
|
|
@@ -2939,13 +2939,13 @@ function Yr(t, e, n) {
|
|
|
2939
2939
|
const o = (e, n) => {
|
|
2940
2940
|
void 0 !== n && t.empty(e, n ? void 0 : { val: 0 });
|
|
2941
2941
|
};
|
|
2942
|
-
o("b", void 0 === e.weight ? void 0 : e.weight >= 700), o("i", void 0 === e.style ? void 0 : e.style !==
|
|
2942
|
+
o("b", void 0 === e.weight ? void 0 : e.weight >= 700), o("i", void 0 === e.style ? void 0 : e.style !== a.Style.Normal), o("strike", on(e.strike));
|
|
2943
2943
|
const s = Dt(e.letterSpacing);
|
|
2944
2944
|
s && o(s, !0), o("outline", e.outline), o("shadow", e.shadow);
|
|
2945
2945
|
const r = Mt(e.underline);
|
|
2946
|
-
r && t.empty("u", r ===
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2946
|
+
r && t.empty("u", r === a.UnderlineStyle.Single ? void 0 : { val: r });
|
|
2947
|
+
const i = sn(e.baseline, !0);
|
|
2948
|
+
i && t.empty("vertAlign", { val: i }), void 0 !== e.size && t.empty("sz", { val: e.size }), e.color && function(t, e, n) {
|
|
2949
2949
|
const o = /^index(\d+)$/.exec(e);
|
|
2950
2950
|
o ? t.empty("color", { indexed: Number(o[1]) }) : Ao(t, n, e, "color");
|
|
2951
2951
|
}(t, e.color, n);
|
|
@@ -2969,7 +2969,7 @@ function Qr(t) {
|
|
|
2969
2969
|
if (e.isInvalid()) return null;
|
|
2970
2970
|
const n = e.getCoords()[0];
|
|
2971
2971
|
return n ? {
|
|
2972
|
-
ref:
|
|
2972
|
+
ref: P.cellToString({
|
|
2973
2973
|
rowIndex: n.rowStart,
|
|
2974
2974
|
colIndex: n.colStart
|
|
2975
2975
|
}),
|
|
@@ -3001,13 +3001,13 @@ function la(t, e, n, o) {
|
|
|
3001
3001
|
const r = [];
|
|
3002
3002
|
for (let o = e.rowStart; o <= e.rowEnd; o++) for (let a = e.colStart; a <= e.colEnd; a++) {
|
|
3003
3003
|
let i = n;
|
|
3004
|
-
o === e.rowStart && a === e.colStart || (s || (s = [],
|
|
3004
|
+
o === e.rowStart && a === e.colStart || (s || (s = [], P.normalizeA1ToR1C1(n, e.rowStart, e.colStart, s)), i = P.resolveRelativeToA1(s, o, a));
|
|
3005
3005
|
const l = ge(i, {
|
|
3006
3006
|
rowIndex: o,
|
|
3007
3007
|
colIndex: a
|
|
3008
3008
|
});
|
|
3009
3009
|
if (!l) return !1;
|
|
3010
|
-
const c = t.getRange(
|
|
3010
|
+
const c = t.getRange(P.cellToString({
|
|
3011
3011
|
rowIndex: o,
|
|
3012
3012
|
colIndex: a
|
|
3013
3013
|
})).getCell().getValue();
|
|
@@ -3023,7 +3023,7 @@ function la(t, e, n, o) {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
function ca(t, e) {
|
|
3025
3025
|
let n = e.type;
|
|
3026
|
-
n ===
|
|
3026
|
+
n === F.ColorStopType.AutoMin ? n = F.ColorStopType.Min : n === F.ColorStopType.AutoMax && (n = F.ColorStopType.Max), t.empty("cfvo", {
|
|
3027
3027
|
type: n,
|
|
3028
3028
|
val: e.value,
|
|
3029
3029
|
gte: e.exclusive ? "0" : void 0
|
|
@@ -3037,29 +3037,29 @@ function da(t, e) {
|
|
|
3037
3037
|
void 0 !== e.value ? (t.start("x14:cfvo", n), t.start("xm:f"), t.text(e.value), t.end("xm:f"), t.end("x14:cfvo")) : t.empty("x14:cfvo", n);
|
|
3038
3038
|
}
|
|
3039
3039
|
var ma = /* @__PURE__ */ new Set([
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3040
|
+
l.IconSet.Arrows3,
|
|
3041
|
+
l.IconSet.ArrowsGray3,
|
|
3042
|
+
l.IconSet.Flags3,
|
|
3043
|
+
l.IconSet.Signs3,
|
|
3044
|
+
l.IconSet.Symbols3,
|
|
3045
|
+
l.IconSet.Symbols3_2,
|
|
3046
|
+
l.IconSet.TrafficLights3,
|
|
3047
|
+
l.IconSet.TrafficLights3_2,
|
|
3048
|
+
l.IconSet.Arrows4,
|
|
3049
|
+
l.IconSet.ArrowsGray4,
|
|
3050
|
+
l.IconSet.Rating4,
|
|
3051
|
+
l.IconSet.RedToBlack4,
|
|
3052
|
+
l.IconSet.TrafficLights4,
|
|
3053
|
+
l.IconSet.Arrows5,
|
|
3054
|
+
l.IconSet.ArrowsGray5,
|
|
3055
|
+
l.IconSet.Quarters5,
|
|
3056
|
+
l.IconSet.Rating5
|
|
3057
3057
|
]);
|
|
3058
3058
|
function pa(t) {
|
|
3059
3059
|
return (t.icon?.length ?? 0) > 0 || void 0 !== t.iconSet && !ma.has(t.iconSet);
|
|
3060
3060
|
}
|
|
3061
3061
|
function fa(t) {
|
|
3062
|
-
return [t.minPoint ?? { type:
|
|
3062
|
+
return [t.minPoint ?? { type: F.ColorStopType.Min }, t.maxPoint ?? { type: F.ColorStopType.Max }];
|
|
3063
3063
|
}
|
|
3064
3064
|
function ha(t, e, o, s, r, a, i, l, c) {
|
|
3065
3065
|
const d = s.scale;
|
|
@@ -3080,8 +3080,8 @@ function ha(t, e, o, s, r, a, i, l, c) {
|
|
|
3080
3080
|
timePeriod: r.timePeriod
|
|
3081
3081
|
};
|
|
3082
3082
|
let p;
|
|
3083
|
-
d?.type ===
|
|
3084
|
-
return !!(t.solidFill || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) || t.minPoint?.type ===
|
|
3083
|
+
d?.type === F.ScaleType.DataBar && function(t) {
|
|
3084
|
+
return !!(t.solidFill || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) || t.minPoint?.type === F.ColorStopType.AutoMin || t.maxPoint?.type === F.ColorStopType.AutoMax;
|
|
3085
3085
|
}(d) && (p = Pt(n.uuidV4), c.push({
|
|
3086
3086
|
guid: p,
|
|
3087
3087
|
sqref: a,
|
|
@@ -3092,13 +3092,13 @@ function ha(t, e, o, s, r, a, i, l, c) {
|
|
|
3092
3092
|
if (0 !== h || d) {
|
|
3093
3093
|
e.start("cfRule", m);
|
|
3094
3094
|
for (let t = 0; t < h; t++) e.start("formula"), e.text(f[t]), e.end("formula");
|
|
3095
|
-
if (d?.type ===
|
|
3095
|
+
if (d?.type === F.ScaleType.ColorScale) {
|
|
3096
3096
|
const t = d.stops ?? [];
|
|
3097
3097
|
e.start("colorScale");
|
|
3098
3098
|
for (let n = 0; n < t.length; n++) ca(e, t[n]);
|
|
3099
3099
|
for (let n = 0; n < t.length; n++) Ao(e, o, t[n].color, "color");
|
|
3100
3100
|
e.end("colorScale");
|
|
3101
|
-
} else if (d?.type ===
|
|
3101
|
+
} else if (d?.type === F.ScaleType.DataBar) {
|
|
3102
3102
|
e.start("dataBar", {
|
|
3103
3103
|
minLength: d.minLength ?? 0,
|
|
3104
3104
|
maxLength: d.maxLength ?? 100,
|
|
@@ -3106,7 +3106,7 @@ function ha(t, e, o, s, r, a, i, l, c) {
|
|
|
3106
3106
|
});
|
|
3107
3107
|
const [t, n] = fa(d);
|
|
3108
3108
|
ca(e, t), ca(e, n), Ao(e, o, d.color ?? "#638EC6", "color"), e.end("dataBar");
|
|
3109
|
-
} else if (d?.type ===
|
|
3109
|
+
} else if (d?.type === F.ScaleType.IconSet) {
|
|
3110
3110
|
const t = d.stops ?? [];
|
|
3111
3111
|
e.start("iconSet", {
|
|
3112
3112
|
iconSet: d.iconSet,
|
|
@@ -3127,10 +3127,10 @@ function ua(t) {
|
|
|
3127
3127
|
const o = t.split(" ");
|
|
3128
3128
|
for (let t = 0; t < o.length; t++) {
|
|
3129
3129
|
if (!o[t]) continue;
|
|
3130
|
-
const s =
|
|
3130
|
+
const s = P.fastStringToRange(o[t]);
|
|
3131
3131
|
s.rowStart < e && (e = s.rowStart), s.colStart < n && (n = s.colStart);
|
|
3132
3132
|
}
|
|
3133
|
-
return
|
|
3133
|
+
return P.cellToString({
|
|
3134
3134
|
rowIndex: e,
|
|
3135
3135
|
colIndex: n
|
|
3136
3136
|
});
|
|
@@ -3140,12 +3140,12 @@ function ga(t) {
|
|
|
3140
3140
|
if (Array.isArray(t)) {
|
|
3141
3141
|
const e = [];
|
|
3142
3142
|
for (let n = 0; n < t.length; n++) {
|
|
3143
|
-
const o =
|
|
3143
|
+
const o = P.rangeToString(t[n]);
|
|
3144
3144
|
o && e.push(o);
|
|
3145
3145
|
}
|
|
3146
3146
|
return e.length > 0 ? e.join(" ") : null;
|
|
3147
3147
|
}
|
|
3148
|
-
return
|
|
3148
|
+
return P.rangeToString(t);
|
|
3149
3149
|
}
|
|
3150
3150
|
function xa(t) {
|
|
3151
3151
|
if (void 0 !== t) return t ? "1" : "0";
|
|
@@ -3170,7 +3170,7 @@ function wa(t) {
|
|
|
3170
3170
|
const o = t.split(" ");
|
|
3171
3171
|
for (let t = 0; t < o.length; t++) {
|
|
3172
3172
|
if (!o[t]) continue;
|
|
3173
|
-
const s =
|
|
3173
|
+
const s = P.fastStringToRange(o[t]);
|
|
3174
3174
|
s.rowStart < e && (e = s.rowStart), s.colStart < n && (n = s.colStart);
|
|
3175
3175
|
}
|
|
3176
3176
|
return e === Number.MAX_SAFE_INTEGER ? null : {
|
|
@@ -3198,7 +3198,7 @@ function ba(t, e, n) {
|
|
|
3198
3198
|
value: s
|
|
3199
3199
|
};
|
|
3200
3200
|
};
|
|
3201
|
-
if (t.type ===
|
|
3201
|
+
if (t.type === F.ScaleType.DataBar) {
|
|
3202
3202
|
const e = o(t.minPoint), n = o(t.maxPoint);
|
|
3203
3203
|
if (e === t.minPoint && n === t.maxPoint) return t;
|
|
3204
3204
|
const s = { ...t };
|
|
@@ -3370,7 +3370,7 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3370
3370
|
buFont: "lt"
|
|
3371
3371
|
}, Oa = (t, e, n) => {
|
|
3372
3372
|
if (!n) return;
|
|
3373
|
-
const o = void 0 !== n.scheme && n.scheme !==
|
|
3373
|
+
const o = void 0 !== n.scheme && n.scheme !== a.Scheme.None ? `+${n.scheme === a.Scheme.Major ? "mj" : "mn"}-${Ba[e]}` : n.family;
|
|
3374
3374
|
void 0 !== o && t.empty(e, {
|
|
3375
3375
|
typeface: o,
|
|
3376
3376
|
panose: n.panose,
|
|
@@ -3425,12 +3425,12 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3425
3425
|
}
|
|
3426
3426
|
o.defaultRun && Va(t, e, "defRPr", o.defaultRun), s.end(n);
|
|
3427
3427
|
} else s.empty(n, r);
|
|
3428
|
-
}, ja = (t) => t ===
|
|
3428
|
+
}, ja = (t) => t === f.Overflow.Visible ? void 0 : rt.write(t), Xa = (t, e) => {
|
|
3429
3429
|
const n = e.body ?? {}, o = n.insets, s = {
|
|
3430
3430
|
rot: void 0 === e.rotation ? void 0 : String(Math.round(6e4 * e.rotation)),
|
|
3431
3431
|
spcFirstLastPara: Na(n.spaceFirstLastParagraph),
|
|
3432
|
-
vertOverflow: ja(n.verticalOverflow ??
|
|
3433
|
-
horzOverflow: ja(n.horizontalOverflow ??
|
|
3432
|
+
vertOverflow: ja(n.verticalOverflow ?? p.TEXT_DEFAULTS.verticalOverflow),
|
|
3433
|
+
horzOverflow: ja(n.horizontalOverflow ?? p.TEXT_DEFAULTS.horizontalOverflow),
|
|
3434
3434
|
vert: _e.write(n.vertical),
|
|
3435
3435
|
wrap: n.wrap,
|
|
3436
3436
|
lIns: void 0 === o?.left ? void 0 : String(cs(o.left)),
|
|
@@ -3462,13 +3462,13 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3462
3462
|
t.end("prstTxWarp");
|
|
3463
3463
|
}
|
|
3464
3464
|
switch (n.autoFit) {
|
|
3465
|
-
case
|
|
3465
|
+
case f.Autofit.None:
|
|
3466
3466
|
t.empty("noAutofit");
|
|
3467
3467
|
break;
|
|
3468
|
-
case
|
|
3468
|
+
case f.Autofit.Shape:
|
|
3469
3469
|
t.empty("spAutoFit");
|
|
3470
3470
|
break;
|
|
3471
|
-
case
|
|
3471
|
+
case f.Autofit.Normal: t.empty("normAutofit", {
|
|
3472
3472
|
fontScale: void 0 === n.fontScale ? void 0 : _a(n.fontScale),
|
|
3473
3473
|
lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 : _a(n.lineSpacingReduction)
|
|
3474
3474
|
});
|
|
@@ -3483,9 +3483,9 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3483
3483
|
}, Ua = (t, e, n, o) => {
|
|
3484
3484
|
const s = t.getXMLWriter();
|
|
3485
3485
|
s.pushDefaultNamespace("a"), s.start("p");
|
|
3486
|
-
const { runs: r, endRun: a, ...i } = o, l = void 0 !==
|
|
3486
|
+
const { runs: r, endRun: a, ...i } = o, l = void 0 !== p.inheritedTextSize(n, o) ? (t) => t : (t) => void 0 === t.size ? {
|
|
3487
3487
|
...t,
|
|
3488
|
-
size:
|
|
3488
|
+
size: p.TEXT_DEFAULTS.size
|
|
3489
3489
|
} : t;
|
|
3490
3490
|
((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) && za(t, e, "pPr", i);
|
|
3491
3491
|
for (const n of r ?? []) {
|
|
@@ -3658,17 +3658,17 @@ var Ka = [
|
|
|
3658
3658
|
for (const n of hi(e)) await gi(t, n);
|
|
3659
3659
|
}
|
|
3660
3660
|
}, xi = async (t, e, n, o, s, r) => {
|
|
3661
|
-
const
|
|
3662
|
-
...
|
|
3663
|
-
type:
|
|
3664
|
-
extLst:
|
|
3665
|
-
stretch:
|
|
3666
|
-
},
|
|
3667
|
-
void 0 !==
|
|
3668
|
-
const
|
|
3669
|
-
void 0 !==
|
|
3670
|
-
const
|
|
3671
|
-
|
|
3661
|
+
const a = await ts(t, r), i = o.content?.json, l = i?.image ?? {}, c = l.extLst ?? (a.external ? void 0 : yi), d = {
|
|
3662
|
+
...l,
|
|
3663
|
+
type: u.Type.Image,
|
|
3664
|
+
extLst: c,
|
|
3665
|
+
stretch: l.tile ? void 0 : l.stretch ?? {}
|
|
3666
|
+
}, m = {};
|
|
3667
|
+
void 0 !== i?.macro && (m.macro = i.macro), void 0 !== i?.published && (m.fPublished = i.published ? "1" : "0");
|
|
3668
|
+
const p = {};
|
|
3669
|
+
void 0 !== l.dpi && (p.dpi = String(l.dpi)), void 0 !== l.isRotatedWithShape && (p.rotWithShape = l.isRotatedWithShape ? "1" : "0");
|
|
3670
|
+
const f = t.getXMLWriter();
|
|
3671
|
+
f.start("pic", m), f.start("nvPicPr"), Li(t, f, n, o, e), f.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), f.empty("a:picLocks", Bi(o)), f.end("cNvPicPr"), f.end("nvPicPr"), f.start("blipFill", p), f.pushDefaultNamespace("a"), as(f, d, a), f.popDefaultNamespace(), f.end("blipFill"), await Ai(t, e, n, o, s), f.end("pic");
|
|
3672
3672
|
}, yi = "<a:extLst><a:ext uri=\"{28A0092B-C50C-407E-A947-70E740481C1C}\"><a14:useLocalDpi xmlns:a14=\"http://schemas.microsoft.com/office/drawing/2010/main\" val=\"0\"/></a:ext></a:extLst>", vi = async (t, e, n, o, s) => {
|
|
3673
3673
|
const r = o.content?.json, a = r?.model, i = r?.part, l = () => s ?? n?.getBounds() ?? {
|
|
3674
3674
|
x: 0,
|
|
@@ -3748,22 +3748,23 @@ var Ka = [
|
|
|
3748
3748
|
r.start("grpSp"), r.start("nvGrpSpPr"), Li(t, r, n, o, e);
|
|
3749
3749
|
const l = Ni(o);
|
|
3750
3750
|
l ? (r.start("cNvGrpSpPr"), r.empty("a:grpSpLocks", l), r.end("cNvGrpSpPr")) : r.empty("cNvGrpSpPr"), r.end("nvGrpSpPr"), r.start("grpSpPr"), r.pushDefaultNamespace("a"), Oi(r, s, o, a?.childBounds ?? s), Go(t, i, a), a?.scene3d && r.raw(a.scene3d), a?.extLst?.properties && r.raw(a.extLst.properties), r.popDefaultNamespace(), r.end("grpSpPr");
|
|
3751
|
-
|
|
3751
|
+
const c = hi(o), d = n?.getMovables()?.getItems() ?? [];
|
|
3752
|
+
for (let n = 0; n < c.length; n++) await bi(t, e, d.length === c.length ? d[n] : null, c[n], ui(c[n]));
|
|
3752
3753
|
r.end("grpSp");
|
|
3753
|
-
}, bi = async (t, e, n, o) => {
|
|
3754
|
-
switch (
|
|
3754
|
+
}, bi = async (t, e, n, o, s) => {
|
|
3755
|
+
switch (o.content?.type) {
|
|
3755
3756
|
case "picture": {
|
|
3756
|
-
const
|
|
3757
|
-
return
|
|
3757
|
+
const r = es(t, o.content.json?.resId);
|
|
3758
|
+
return r ? xi(t, e, n, o, s, r) : void t.warn(`The picture '${o.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
|
|
3758
3759
|
}
|
|
3759
|
-
case "chart": return vi(t, e,
|
|
3760
|
-
case "shape": return Ci(t, e,
|
|
3761
|
-
case "group": return Si(t, e,
|
|
3762
|
-
default: return We(
|
|
3760
|
+
case "chart": return vi(t, e, n, o, s);
|
|
3761
|
+
case "shape": return Ci(t, e, n, o, s);
|
|
3762
|
+
case "group": return Si(t, e, n, o, s);
|
|
3763
|
+
default: return We(o.content?.type) ? void Wi(t.getXMLWriter(), o, s) : Pi(t, e, o, s);
|
|
3763
3764
|
}
|
|
3764
3765
|
}, Ci = async (t, e, n, o, s) => {
|
|
3765
|
-
const
|
|
3766
|
-
|
|
3766
|
+
const r = t.getXMLWriter(), a = {}, i = o.content?.json, l = i?.type ?? h.Type.Shape, c = e.getStyles();
|
|
3767
|
+
l === h.Type.Connector ? (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), r.start("cxnSp", a), r.start("nvCxnSpPr"), Li(t, r, n, o, e), $i(t, r, n, o, e), r.end("nvCxnSpPr"), await Ai(t, e, n, o, s), Di(t, e, n, o), Ga(t, c, i?.text), r.end("cxnSp")) : (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.textLink && (a.textlink = i.textLink), void 0 !== i?.locksText && (a.fLocksText = i.locksText ? "1" : "0"), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), r.start("sp", a), r.start("nvSpPr"), Li(t, r, n, o, e), $i(t, r, n, o, e), r.end("nvSpPr"), await Ai(t, e, n, o, s), Di(t, e, n, o), Ga(t, c, i?.text), r.end("sp"));
|
|
3767
3768
|
}, Ti = async (t, e, n, o) => Pi(t, e, o, n.getBounds()), ki = "http://schemas.openxmlformats.org/markup-compatibility/2006", Ii = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Fi = async (t, e, n, o) => {
|
|
3768
3769
|
const s = t.getXMLWriter(), r = o.content?.name ?? "", a = Cr(n.getContent()), i = void 0 !== a?.timeline, l = i ? {
|
|
3769
3770
|
"xmlns:tsle": Ri,
|
|
@@ -3808,29 +3809,35 @@ var Ka = [
|
|
|
3808
3809
|
lang: "en-US",
|
|
3809
3810
|
sz: "1100"
|
|
3810
3811
|
}), t.start("a:t"), t.text(n), t.end("a:t"), t.end("a:r"), t.end("a:p"), t.end("txBody"), t.end("sp");
|
|
3811
|
-
}, Mi = async (t, e, n, o) => Pi(t, e, o, n.getBounds()), Pi = async (t, e, n, o) => {
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
text:
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3812
|
+
}, Mi = async (t, e, n, o) => Pi(t, e, o, n.getBounds()), Pi = async (t, e, n, o) => Ci(t, e, null, {
|
|
3813
|
+
...n,
|
|
3814
|
+
content: {
|
|
3815
|
+
type: "shape",
|
|
3816
|
+
name: n.content?.name,
|
|
3817
|
+
description: n.content?.description,
|
|
3818
|
+
json: {
|
|
3819
|
+
fill: "bg1",
|
|
3820
|
+
stroke: {
|
|
3821
|
+
width: 2,
|
|
3822
|
+
fill: "red"
|
|
3823
|
+
},
|
|
3824
|
+
text: { runs: [{
|
|
3825
|
+
text: "Unsupported Type: " + (n.content?.type ?? "unknown"),
|
|
3826
|
+
color: "tx1"
|
|
3827
|
+
}] }
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
}, o), Ai = async (t, e, n, o, s) => {
|
|
3831
|
+
const r = o.content?.json, a = r?.geometry, i = e.getStyles(), l = "string" == typeof a ? a : "rect";
|
|
3832
|
+
let c = [];
|
|
3833
|
+
"object" != typeof a && r?.adjustments && Object.keys(r.adjustments).length > 0 && (c = ((t, e) => {
|
|
3834
|
+
const n = [];
|
|
3835
|
+
if (t) return t.isAdjusted() && t.forEachAdjustment((t, e) => n.push([t, `val ${Math.round(e)}`])), n;
|
|
3836
|
+
for (const t of Object.keys(e ?? {})) Number.isFinite(e[t]) && n.push([t, `val ${Math.round(e[t])}`]);
|
|
3837
|
+
return n;
|
|
3838
|
+
})(await (n?.getContent())?.getGeometry?.(Math.max(1, s.width), Math.max(1, s.height)) ?? null, r.adjustments));
|
|
3839
|
+
const d = t.getXMLWriter();
|
|
3840
|
+
if (d.start("spPr"), d.pushDefaultNamespace("a"), Oi(d, s, o), "object" == typeof a && a) ((t, e) => {
|
|
3834
3841
|
t.start("custGeom"), t.start("avLst");
|
|
3835
3842
|
for (const n of e.av ?? []) ai(t, n);
|
|
3836
3843
|
t.end("avLst"), t.start("gdLst");
|
|
@@ -3854,26 +3861,24 @@ var Ka = [
|
|
|
3854
3861
|
t.start("pathLst");
|
|
3855
3862
|
for (const n of e.paths) di(t, n);
|
|
3856
3863
|
t.end("pathLst"), t.end("custGeom");
|
|
3857
|
-
})(
|
|
3864
|
+
})(d, a);
|
|
3858
3865
|
else {
|
|
3859
|
-
|
|
3860
|
-
const t = ((t) => t ? Object.keys(t).filter((e) => Number.isFinite(t[e])).map((e) => [e, `val ${Math.round(t[e])}`]) : [])(a?.adjustments);
|
|
3861
|
-
if (0 === t.length) r.empty("avLst");
|
|
3866
|
+
if (d.start("prstGeom", { prst: l }), 0 === c.length) d.empty("avLst");
|
|
3862
3867
|
else {
|
|
3863
|
-
|
|
3864
|
-
for (const [
|
|
3865
|
-
name:
|
|
3866
|
-
fmla:
|
|
3868
|
+
d.start("avLst");
|
|
3869
|
+
for (const [t, e] of c) d.empty("gd", {
|
|
3870
|
+
name: t,
|
|
3871
|
+
fmla: e
|
|
3867
3872
|
});
|
|
3868
|
-
|
|
3873
|
+
d.end("avLst");
|
|
3869
3874
|
}
|
|
3870
|
-
|
|
3875
|
+
d.end("prstGeom");
|
|
3871
3876
|
}
|
|
3872
|
-
Go(t,
|
|
3877
|
+
Go(t, i, r), r?.scene3d && d.raw(r.scene3d), r?.shape3d && d.raw(r.shape3d), r?.extLst?.properties && d.raw(r.extLst.properties), d.popDefaultNamespace(), d.end("spPr");
|
|
3873
3878
|
}, Di = (t, e, n, o) => {
|
|
3874
3879
|
const s = t.getXMLWriter(), r = o.content?.json?.style;
|
|
3875
3880
|
if (null === r) return;
|
|
3876
|
-
const a = e.getStyles().getTheme(), i =
|
|
3881
|
+
const a = e.getStyles().getTheme(), i = p.defaultStyleRefs(o.content?.json), l = (t, e) => {
|
|
3877
3882
|
e && (s.start(t, { idx: String(e.index) }), e.color && Mo(s, a, e.color), s.end(t));
|
|
3878
3883
|
};
|
|
3879
3884
|
s.start("style"), s.pushDefaultNamespace("a"), l("lnRef", r?.stroke ?? i.stroke), l("fillRef", r?.fill ?? i.fill), l("effectRef", r?.effect ?? i.effect), l("fontRef", r?.font ?? i.font), s.popDefaultNamespace(), s.end("style");
|
|
@@ -3905,12 +3910,12 @@ var Ka = [
|
|
|
3905
3910
|
for (const t of Object.keys(e)) e[t] && (n[t] = "1");
|
|
3906
3911
|
return Object.keys(n).length > 0 ? n : null;
|
|
3907
3912
|
}, $i = (t, e, n, o, s) => {
|
|
3908
|
-
const
|
|
3909
|
-
if (
|
|
3910
|
-
const n =
|
|
3911
|
-
if (!
|
|
3913
|
+
const r = o.content?.json, a = Ni(o);
|
|
3914
|
+
if (r?.type === h.Type.Connector) {
|
|
3915
|
+
const n = r.connectorEnds;
|
|
3916
|
+
if (!a && !n) return void e.empty("cNvCxnSpPr");
|
|
3912
3917
|
const o = _i(t, s);
|
|
3913
|
-
e.start("cNvCxnSpPr"),
|
|
3918
|
+
e.start("cNvCxnSpPr"), a && e.empty("a:cxnSpLocks", a), n?.start && e.empty("a:stCxn", {
|
|
3914
3919
|
id: String(o.bySource.get(n.start.id) ?? n.start.id),
|
|
3915
3920
|
idx: String(n.start.index)
|
|
3916
3921
|
}), n?.end && e.empty("a:endCxn", {
|
|
@@ -3919,8 +3924,8 @@ var Ka = [
|
|
|
3919
3924
|
}), e.end("cNvCxnSpPr");
|
|
3920
3925
|
return;
|
|
3921
3926
|
}
|
|
3922
|
-
const
|
|
3923
|
-
|
|
3927
|
+
const i = { txBox: r?.textBox ? "1" : void 0 };
|
|
3928
|
+
a ? (e.start("cNvSpPr", i), e.empty("a:spLocks", a), e.end("cNvSpPr")) : e.empty("cNvSpPr", i);
|
|
3924
3929
|
}, Bi = (t) => {
|
|
3925
3930
|
const e = { ...(t.content?.json)?.locks };
|
|
3926
3931
|
void 0 !== t.lockAspect ? e.noChangeAspect = t.lockAspect : e.noChangeAspect ??= !0;
|
|
@@ -4003,7 +4008,7 @@ var Ui = {
|
|
|
4003
4008
|
function Gi(t, e, n, o) {
|
|
4004
4009
|
if (null == o) return;
|
|
4005
4010
|
Ui.rowIndex = e, Ui.colIndex = n;
|
|
4006
|
-
const s =
|
|
4011
|
+
const s = P.cellToString(Ui);
|
|
4007
4012
|
let r, a;
|
|
4008
4013
|
switch (typeof o) {
|
|
4009
4014
|
case "number":
|
|
@@ -4067,7 +4072,7 @@ var qi = [
|
|
|
4067
4072
|
...t.styles,
|
|
4068
4073
|
direct: a.list
|
|
4069
4074
|
}), n.setXfComplements(a.complements), s;
|
|
4070
|
-
}(s, t.getSheets({ visibility:
|
|
4075
|
+
}(s, t.getSheets({ visibility: M.Visibility.VeryHidden }), r, (t, n) => {
|
|
4071
4076
|
e.warn(t, void 0, n);
|
|
4072
4077
|
});
|
|
4073
4078
|
e.getSharedStates().set(pt, mt(s.names, function(t) {
|
|
@@ -4112,7 +4117,7 @@ var qi = [
|
|
|
4112
4117
|
a && (s.xWindow = "" + Math.round(a.left), s.yWindow = "" + Math.round(a.top), s.windowWidth = "" + Math.round(a.width), s.windowHeight = "" + Math.round(a.height));
|
|
4113
4118
|
const i = o.getTabRatio();
|
|
4114
4119
|
600 !== i && (s.tabRatio = i);
|
|
4115
|
-
const l = Math.min(o.getFirstTab(), n.getSheets({ visibility:
|
|
4120
|
+
const l = Math.min(o.getFirstTab(), n.getSheets({ visibility: M.Visibility.VeryHidden }).length - 1);
|
|
4116
4121
|
l > 0 && (s.firstSheet = "" + l);
|
|
4117
4122
|
const c = n.getSelectedSheet().getIndex();
|
|
4118
4123
|
0 !== c && (s.activeTab = "" + c), o.isAutoFilterDateGrouping() || (s.autoFilterDateGrouping = "0"), e.empty("workbookView", s), e.end("bookViews");
|
|
@@ -4168,7 +4173,7 @@ var qi = [
|
|
|
4168
4173
|
}
|
|
4169
4174
|
return s;
|
|
4170
4175
|
})(e, s.pivotCaches, !0 === s.date1904, ((t) => {
|
|
4171
|
-
const e = /* @__PURE__ */ new Set(), n = t.getWorksheets().getItems({ visibility:
|
|
4176
|
+
const e = /* @__PURE__ */ new Set(), n = t.getWorksheets().getItems({ visibility: M.Visibility.VeryHidden });
|
|
4172
4177
|
for (let t = 0; t < n.length; t++) {
|
|
4173
4178
|
const o = kr(n[t]);
|
|
4174
4179
|
for (let t = 0; t < o.length; t++) {
|
|
@@ -4194,7 +4199,7 @@ var qi = [
|
|
|
4194
4199
|
cacheNames: []
|
|
4195
4200
|
};
|
|
4196
4201
|
try {
|
|
4197
|
-
const o = t.getSheets({ visibility:
|
|
4202
|
+
const o = t.getSheets({ visibility: M.Visibility.VeryHidden }), i = s.sheets, d = t.getSelectedSheet(), m = o.length, f = ((t, e) => {
|
|
4198
4203
|
const n = new Array(e), o = /* @__PURE__ */ new Set();
|
|
4199
4204
|
let s = 1;
|
|
4200
4205
|
for (let r = 0; r < e; r++) {
|
|
@@ -4262,7 +4267,7 @@ var qi = [
|
|
|
4262
4267
|
pivot: [],
|
|
4263
4268
|
timeline: [],
|
|
4264
4269
|
cacheNames: []
|
|
4265
|
-
}, o = pr(t), s = e.getWorksheets().getItems({ visibility:
|
|
4270
|
+
}, o = pr(t), s = e.getWorksheets().getItems({ visibility: M.Visibility.VeryHidden });
|
|
4266
4271
|
for (let e = 0; e < s.length; e++) {
|
|
4267
4272
|
const r = kr(s[e]);
|
|
4268
4273
|
for (let e = 0; e < r.length; e++) {
|
|
@@ -4334,7 +4339,7 @@ var qi = [
|
|
|
4334
4339
|
}(e, n, s), function(t, e, n, o, s) {
|
|
4335
4340
|
const r = t.getSharedStates().get(pt), a = o.names, i = a ? a.length : 0, l = new Set((a ?? []).filter((t) => !t.scope).map((t) => t.name.toLowerCase())), c = s.filter((t) => !l.has(t.toLowerCase()));
|
|
4336
4341
|
if (0 === i && 0 === c.length) return;
|
|
4337
|
-
const d = /* @__PURE__ */ new Map(), m = n.getSheets({ visibility:
|
|
4342
|
+
const d = /* @__PURE__ */ new Map(), m = n.getSheets({ visibility: M.Visibility.VeryHidden });
|
|
4338
4343
|
for (let t = 0; t < m.length; t++) d.set(m[t].getName().toLowerCase(), t);
|
|
4339
4344
|
e.start("definedNames");
|
|
4340
4345
|
for (let n = 0; n < i; n++) {
|
|
@@ -4432,7 +4437,7 @@ var qi = [
|
|
|
4432
4437
|
});
|
|
4433
4438
|
}
|
|
4434
4439
|
async emit(t, e) {
|
|
4435
|
-
const s = e.getXMLWriter(), r = t.model,
|
|
4440
|
+
const s = e.getXMLWriter(), r = t.model, i = t.json, l = Ze(r, i);
|
|
4436
4441
|
((t, e) => {
|
|
4437
4442
|
if (0 === e.length) return;
|
|
4438
4443
|
let n = Ve(t.legacyDrawing?.xml ?? "");
|
|
@@ -4446,7 +4451,7 @@ var qi = [
|
|
|
4446
4451
|
const o = e[t].jsonMovable.content, r = o.json ?? (o.json = {});
|
|
4447
4452
|
("number" != typeof r.shapeId || s.has(r.shapeId)) && (r.shapeId = ++n), s.add(r.shapeId);
|
|
4448
4453
|
}
|
|
4449
|
-
})(
|
|
4454
|
+
})(i, l), s.decl(), s.start("worksheet", {
|
|
4450
4455
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
4451
4456
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
4452
4457
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
@@ -4463,7 +4468,7 @@ var qi = [
|
|
|
4463
4468
|
p?.hideAutoPageBreaks && (f.autoPageBreaks = "0"), p?.fitToPage && (f.fitToPage = "1");
|
|
4464
4469
|
const h = Object.keys(f).length > 0, u = !!s || m || h;
|
|
4465
4470
|
(u || 0 !== Object.keys(a).length) && (u ? (e.start("sheetPr", a), s && Ao(e, n.getStyles().getTheme(), s, "tabColor", !1), m && e.empty("outlinePr", d), h && e.empty("pageSetUpPr", f), e.end("sheetPr")) : e.empty("sheetPr", a));
|
|
4466
|
-
}(0, s, r,
|
|
4471
|
+
}(0, s, r, i), function(t, e, n, s) {
|
|
4467
4472
|
let r = n.getUsedRange({ features: [] }), a = r ? r.getCoords() : null;
|
|
4468
4473
|
const i = Wt, l = et, c = s.directStyles, d = c ? c.length : 0;
|
|
4469
4474
|
for (let t = 0; t < d; t++) {
|
|
@@ -4503,8 +4508,8 @@ var qi = [
|
|
|
4503
4508
|
colEnd: a.colEnd,
|
|
4504
4509
|
rowEnd: a.rowEnd
|
|
4505
4510
|
}).getAddress()}`), e.empty("dimension", { ref: f });
|
|
4506
|
-
}(0, s, r,
|
|
4507
|
-
const r = n.getView(), a = r.getTopLeft(), i = n.getRowHeaders().getMetrics().getIndex(a.top), l = n.getColumnHeaders().getMetrics().getIndex(a.left), c =
|
|
4511
|
+
}(0, s, r, i), function(t, e, n, o, s) {
|
|
4512
|
+
const r = n.getView(), a = r.getTopLeft(), i = n.getRowHeaders().getMetrics().getIndex(a.top), l = n.getColumnHeaders().getMetrics().getIndex(a.left), c = P.cellToString({
|
|
4508
4513
|
colIndex: l,
|
|
4509
4514
|
rowIndex: i
|
|
4510
4515
|
});
|
|
@@ -4512,7 +4517,7 @@ var qi = [
|
|
|
4512
4517
|
const d = {};
|
|
4513
4518
|
r.isShowFormulas() && (d.showFormulas = "1"), r.isShowColumnGridlines() || r.isShowRowGridlines() || (d.showGridLines = "0"), r.isShowColumnHeaders() || r.isShowRowHeaders() || (d.showRowColHeaders = "0"), r.isShowZeros() || (d.showZeros = "0"), r.isRightToLeft() && (d.rightToLeft = "1"), r.isShowOutlineSymbols() || (d.showOutlineSymbols = "0"), s && (d.tabSelected = "1"), "A1" !== c && (d.topLeftCell = c), r.isShowRuler() || (d.showRuler = "0"), r.isShowWhitespace() || (d.showWhiteSpace = "0");
|
|
4514
4519
|
const m = r.getViewMode();
|
|
4515
|
-
m !==
|
|
4520
|
+
m !== T.ViewMode.Normal && (d.view = m);
|
|
4516
4521
|
const p = r.getZoomScale();
|
|
4517
4522
|
100 !== p && (d.zoomScale = p);
|
|
4518
4523
|
const f = r.toJSON(), h = f?.zoomScales ?? {};
|
|
@@ -4533,17 +4538,17 @@ var qi = [
|
|
|
4533
4538
|
d.colorId = "" + i;
|
|
4534
4539
|
}
|
|
4535
4540
|
d.workbookViewId = "0";
|
|
4536
|
-
const g = n.getSelection().getCoords(), x =
|
|
4541
|
+
const g = n.getSelection().getCoords(), x = P.cellToString(g.cell);
|
|
4537
4542
|
let y = {};
|
|
4538
|
-
const v = r.getFreezePanes(), w = v.coords ?? {},
|
|
4539
|
-
if (
|
|
4540
|
-
const t = v.topLeft ?? {}, o = t.top ?? 0, s = t.left ?? 0, r = n.getRowHeaders().getMetrics().getIndex(o), i = n.getColumnHeaders().getMetrics().getIndex(s), l =
|
|
4543
|
+
const v = r.getFreezePanes(), w = v.coords ?? {}, S = w.colIndex ?? 0, b = w.rowIndex ?? 0;
|
|
4544
|
+
if (S > 0 || b > 0) {
|
|
4545
|
+
const t = v.topLeft ?? {}, o = t.top ?? 0, s = t.left ?? 0, r = n.getRowHeaders().getMetrics().getIndex(o), i = n.getColumnHeaders().getMetrics().getIndex(s), l = S - i, c = b - r, m = Math.max(S, n.getColumnHeaders().getMetrics().getIndex(a.left + n.getColumnHeaders().getMetrics().getOffset(S) - s)), p = Math.max(b, n.getRowHeaders().getMetrics().getIndex(a.top + n.getRowHeaders().getMetrics().getOffset(b) - o)), f = P.cellToString({
|
|
4541
4546
|
colIndex: i,
|
|
4542
4547
|
rowIndex: r
|
|
4543
4548
|
});
|
|
4544
4549
|
"A1" !== f ? d.topLeftCell = f : delete d.topLeftCell, e.start("sheetView", d);
|
|
4545
4550
|
const h = {};
|
|
4546
|
-
l > 0 && (h.xSplit = l), c > 0 && (h.ySplit = c), h.topLeftCell =
|
|
4551
|
+
l > 0 && (h.xSplit = l), c > 0 && (h.ySplit = c), h.topLeftCell = P.cellToString({
|
|
4547
4552
|
colIndex: m,
|
|
4548
4553
|
rowIndex: p
|
|
4549
4554
|
}), h.state = "frozen";
|
|
@@ -4557,27 +4562,27 @@ var qi = [
|
|
|
4557
4562
|
sqref: s?.sqref ?? r
|
|
4558
4563
|
});
|
|
4559
4564
|
};
|
|
4560
|
-
0 ===
|
|
4565
|
+
0 === S ? (h.activePane = "bottomLeft", e.empty("pane", h), g("topLeft", P.cellToString({
|
|
4561
4566
|
colIndex: m,
|
|
4562
4567
|
rowIndex: r
|
|
4563
|
-
}), !1), y.pane = "bottomLeft") : 0 ===
|
|
4568
|
+
}), !1), y.pane = "bottomLeft") : 0 === b ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft", P.cellToString({
|
|
4564
4569
|
colIndex: i,
|
|
4565
4570
|
rowIndex: p
|
|
4566
|
-
}), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight",
|
|
4571
|
+
}), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight", P.cellToString({
|
|
4567
4572
|
colIndex: m,
|
|
4568
4573
|
rowIndex: r
|
|
4569
|
-
}), !0), g("bottomLeft",
|
|
4574
|
+
}), !0), g("bottomLeft", P.cellToString({
|
|
4570
4575
|
colIndex: i,
|
|
4571
4576
|
rowIndex: p
|
|
4572
4577
|
}), !0), y.pane = "bottomRight");
|
|
4573
4578
|
} else e.start("sheetView", d);
|
|
4574
4579
|
y.activeCell = x;
|
|
4575
|
-
const
|
|
4580
|
+
const C = g.ranges, k = C ? C.length : 0;
|
|
4576
4581
|
if (k > 0) {
|
|
4577
4582
|
let t = "";
|
|
4578
4583
|
for (let e = 0; e < k; e++) {
|
|
4579
|
-
const n =
|
|
4580
|
-
e > 0 && (t += " "), t +=
|
|
4584
|
+
const n = C[e];
|
|
4585
|
+
e > 0 && (t += " "), t += P.rangeToString(n);
|
|
4581
4586
|
}
|
|
4582
4587
|
y.sqref = t, (g.rangeIndex ?? 0) > 0 && (y.activeCellId = "" + g.rangeIndex);
|
|
4583
4588
|
} else "A1" === x ? y = null : y.sqref = x;
|
|
@@ -4593,7 +4598,7 @@ var qi = [
|
|
|
4593
4598
|
thickBottom: s,
|
|
4594
4599
|
run: n
|
|
4595
4600
|
};
|
|
4596
|
-
}, s = t.defaultRowSize ?? e, r = t.rows ?
|
|
4601
|
+
}, s = t.defaultRowSize ?? e, r = t.rows ? P.refsToRuns(t.rows, !1) : null;
|
|
4597
4602
|
let a = null, i = 0;
|
|
4598
4603
|
const l = r ? r.length : 0;
|
|
4599
4604
|
for (let t = 0; t < l; t++) {
|
|
@@ -4601,18 +4606,18 @@ var qi = [
|
|
|
4601
4606
|
i += e.max - e.min + 1, ta(e.value) && (!a || e.max - e.min > a.max - a.min) && (a = e);
|
|
4602
4607
|
}
|
|
4603
4608
|
return a && a.max - a.min + 1 > n - i ? o(a.value.sz ?? s, a) : void 0 !== t.defaultRowSize ? o(t.defaultRowSize, null) : null;
|
|
4604
|
-
})(
|
|
4609
|
+
})(i, .75 * r.getStyles().getNormal().getBestFit().height, r.getEntireRange().getRowEnd() + 1);
|
|
4605
4610
|
(function(t, e, n, o, s) {
|
|
4606
4611
|
const r = o.defaultColSize, a = o.defaultRowSize, i = {};
|
|
4607
|
-
void 0 !== o.baseColSize && (i.baseColWidth = o.baseColSize), void 0 !== r && (i.defaultColWidth = r), s ? (i.defaultRowHeight = s.height, s.custom && (i.customHeight = "1")) : (i.defaultRowHeight = a ?? .75 * n.getRowHeaders().getMetrics().getDefaultSize(), void 0 !== a && (i.customHeight = "1")), o.rows && null !== ra(
|
|
4612
|
+
void 0 !== o.baseColSize && (i.baseColWidth = o.baseColSize), void 0 !== r && (i.defaultColWidth = r), s ? (i.defaultRowHeight = s.height, s.custom && (i.customHeight = "1")) : (i.defaultRowHeight = a ?? .75 * n.getRowHeaders().getMetrics().getDefaultSize(), void 0 !== a && (i.customHeight = "1")), o.rows && null !== ra(P.refsToRuns(o.rows, !1)) && (i.zeroHeight = "1"), s?.thickTop && (i.thickTop = "1"), s?.thickBottom && (i.thickBottom = "1");
|
|
4608
4613
|
const l = n.getOutline(), c = l.getLevelCount(v.Axis.Row);
|
|
4609
4614
|
c > 0 && (i.outlineLevelRow = c);
|
|
4610
4615
|
const d = l.getLevelCount(v.Axis.Column);
|
|
4611
4616
|
d > 0 && (i.outlineLevelCol = d), i["x14ac:dyDescent"] = "0.25", e.empty("sheetFormatPr", i);
|
|
4612
|
-
})(0, s, r,
|
|
4613
|
-
const d = !1 ===
|
|
4617
|
+
})(0, s, r, i, c);
|
|
4618
|
+
const d = !1 === i.protection?.showFormulas ? e.getSharedStates().get("xfVariants") ?? null : null;
|
|
4614
4619
|
(function(t, e, n, o, s) {
|
|
4615
|
-
const r = o.cols ?
|
|
4620
|
+
const r = o.cols ? P.refsToRuns(o.cols, !0) : null, a = r ? r.length : 0;
|
|
4616
4621
|
n.getEntireRange().getColumnEnd();
|
|
4617
4622
|
const i = n.getColumnHeaders().getDefaultSizeNative(), l = s ? s.getXf(0, !0, !1) : 0;
|
|
4618
4623
|
let c = 1;
|
|
@@ -4642,13 +4647,13 @@ var qi = [
|
|
|
4642
4647
|
}
|
|
4643
4648
|
d(et + 1), e.end("cols");
|
|
4644
4649
|
}
|
|
4645
|
-
})(0, s, r,
|
|
4650
|
+
})(0, s, r, i, d), function(t, e, n, s, r, i, l) {
|
|
4646
4651
|
const c = t.getSharedStates(), d = c.get("persistStrings"), m = c.get("metaCollector"), p = c.get("persistRichTypes"), f = c.get(Zn), h = function(t) {
|
|
4647
4652
|
let e = null;
|
|
4648
4653
|
for (const n of t.pivotTables ?? []) {
|
|
4649
4654
|
const t = n.buttons?.length ? te(n) : null;
|
|
4650
4655
|
if (t) for (const o of n.buttons) {
|
|
4651
|
-
const n =
|
|
4656
|
+
const n = P.fastStringToRange(o);
|
|
4652
4657
|
for (let o = n.rowStart; o <= n.rowEnd; o++) for (let s = n.colStart; s <= n.colEnd; s++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) * Ra + t.colStart + s);
|
|
4653
4658
|
}
|
|
4654
4659
|
}
|
|
@@ -4660,15 +4665,15 @@ var qi = [
|
|
|
4660
4665
|
o && (e ??= []).push({
|
|
4661
4666
|
table: n,
|
|
4662
4667
|
coords: o,
|
|
4663
|
-
formats: t?.header ?
|
|
4668
|
+
formats: t?.header ? b(t) : null
|
|
4664
4669
|
});
|
|
4665
4670
|
}
|
|
4666
4671
|
return e;
|
|
4667
4672
|
}(n);
|
|
4668
4673
|
let g = 0, y = 0;
|
|
4669
4674
|
const S = n.getUsedRange();
|
|
4670
|
-
let
|
|
4671
|
-
const
|
|
4675
|
+
let T = 0;
|
|
4676
|
+
const k = l?.run, R = s.rows ? P.refsToRuns(s.rows, !1) : null, F = s.defaultRowSize ?? .75 * n.getStyles().getNormal().getBestFit().height, E = R && k ? ((t, e, n, o) => {
|
|
4672
4677
|
const s = [];
|
|
4673
4678
|
let r = 0;
|
|
4674
4679
|
const a = (t, e) => {
|
|
@@ -4683,26 +4688,26 @@ var qi = [
|
|
|
4683
4688
|
a(r, o.min - 1), r = o.max + 1, o.min === e.min && o.max === e.max || s.push(o);
|
|
4684
4689
|
}
|
|
4685
4690
|
return a(r, o - 1), s;
|
|
4686
|
-
})(
|
|
4691
|
+
})(R, k, F, n.getEntireRange().getRowEnd() + 1) : R, M = E ? E.length : 0, D = ra(E), L = null !== D ? D - 1 : E?.[M - 1]?.max ?? -1, _ = s.cols ? P.refsToRuns(s.cols, !0) : null, N = _ ? _.length : 0, $ = _?.[N - 1]?.max ?? -1;
|
|
4687
4692
|
if (S || M > 0) {
|
|
4688
|
-
const c = .75, S = s.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * c,
|
|
4693
|
+
const c = .75, S = s.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * c, b = n.getStyles().getNormal().getBestFit().height * c, k = sa(n.getOutline(), v.Axis.Row), R = (t, e) => {
|
|
4689
4694
|
const n = Ma;
|
|
4690
4695
|
if (n.r = "" + (t + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, n.thickTop = void 0, n.thickBot = void 0, !e) return n;
|
|
4691
4696
|
const o = e.value;
|
|
4692
|
-
void 0 !== o.s && (n.s = "" + (
|
|
4697
|
+
void 0 !== o.s && (n.s = "" + (i ? i.getXf(o.s, !0, !1) : o.s), n.customFormat = "1"), o.h && (n.hidden = "1");
|
|
4693
4698
|
const s = o.csz ?? !1, r = o.sz ?? S;
|
|
4694
|
-
return (r !== (l?.height ??
|
|
4699
|
+
return (r !== (l?.height ?? b) || s) && (n.ht = "" + r), s && (n.customHeight = "1"), o.l && (n.outlineLevel = "" + o.l), k.has(t) && (n.collapsed = "1"), o.tt && (n.thickTop = "1"), o.tb && (n.thickBot = "1"), n;
|
|
4695
4700
|
};
|
|
4696
|
-
let F = 0, M =
|
|
4701
|
+
let F = 0, M = E?.[F] ?? null, N = M?.min ?? Number.MAX_SAFE_INTEGER, B = M?.max ?? Number.MAX_SAFE_INTEGER, O = M?.value?.s, V = -1, W = 0, z = _?.[W] ?? null, j = z?.min ?? Number.MAX_SAFE_INTEGER, X = z?.max ?? Number.MAX_SAFE_INTEGER, H = z?.value?.s;
|
|
4697
4702
|
const U = (t, n = !1) => {
|
|
4698
4703
|
if (V !== t) {
|
|
4699
4704
|
for (-1 !== V && (e.end("row"), 0 !== W && (W = 0, z = _?.[W] ?? null, j = z?.min ?? Number.MAX_SAFE_INTEGER, X = z?.max ?? Number.MAX_SAFE_INTEGER, H = z?.value?.s)); V + 1 <= t;) {
|
|
4700
|
-
V++, M && V > B && (M =
|
|
4701
|
-
const o = V < t || n && V === t, s =
|
|
4705
|
+
V++, M && V > B && (M = E[++F] ?? null, M ? (N = M.min, B = M.max, O = M.value?.s) : (N = Number.MAX_SAFE_INTEGER, B = Number.MAX_SAFE_INTEGER, O = void 0)), V < N && V < t && null === D && (V = M ? Math.min(N, t) : t), null !== D && V >= D && V < t && (V = t);
|
|
4706
|
+
const o = V < t || n && V === t, s = R(V, M && V >= N && V <= B ? M : null);
|
|
4702
4707
|
o ? e.empty("row", s) : e.start("row", s);
|
|
4703
4708
|
}
|
|
4704
4709
|
if (t < V) {
|
|
4705
|
-
const n =
|
|
4710
|
+
const n = R(t, null);
|
|
4706
4711
|
e.start("row", n);
|
|
4707
4712
|
}
|
|
4708
4713
|
}
|
|
@@ -4757,23 +4762,23 @@ var qi = [
|
|
|
4757
4762
|
rowIndex: u.rowStart,
|
|
4758
4763
|
colIndex: u.colStart
|
|
4759
4764
|
}, v = c.parse(g, y), w = v ? c.annotate(v) : void 0, S = v ? c.spell(v, f.has(`${u.rowStart},${u.colStart}`), p(u.rowStart, u.colStart)) : null;
|
|
4760
|
-
let
|
|
4761
|
-
if (
|
|
4765
|
+
let b = S ? A.imager(S, { entireCoords: d }) : null;
|
|
4766
|
+
if (b) g = b(y);
|
|
4762
4767
|
else if (!o.isSingleCell(u)) {
|
|
4763
4768
|
const t = [];
|
|
4764
|
-
|
|
4769
|
+
P.normalizeA1ToR1C1(g, y.rowIndex, y.colIndex, t), b = (e) => {
|
|
4765
4770
|
const n = e ?? y;
|
|
4766
|
-
return
|
|
4771
|
+
return P.resolveRelativeToA1(t, n.rowIndex, n.colIndex);
|
|
4767
4772
|
};
|
|
4768
4773
|
}
|
|
4769
4774
|
if (g.length > 8192) {
|
|
4770
|
-
t.warn(`The formula at '${n.getName()}'!${
|
|
4775
|
+
t.warn(`The formula at '${n.getName()}'!${P.rangeToString(u)} is ${g.length.toLocaleString()} characters as xlsx stores it; Excel allows at most ${8192 .toLocaleString()}. Its cells are saved as values.`, void 0, "xlsx.formula.lengthLimit");
|
|
4771
4776
|
continue;
|
|
4772
4777
|
}
|
|
4773
|
-
let
|
|
4778
|
+
let C = !0 === w?.cm;
|
|
4774
4779
|
const k = !0 === w?.ca;
|
|
4775
4780
|
if (r.affects(s)) {
|
|
4776
|
-
x = null,
|
|
4781
|
+
x = null, C = !1;
|
|
4777
4782
|
const t = (t, e, n) => {
|
|
4778
4783
|
const o = {
|
|
4779
4784
|
rowStart: t,
|
|
@@ -4785,7 +4790,7 @@ var qi = [
|
|
|
4785
4790
|
coords: o,
|
|
4786
4791
|
formula: n,
|
|
4787
4792
|
sharedId: null,
|
|
4788
|
-
ref:
|
|
4793
|
+
ref: P.rangeToString(o),
|
|
4789
4794
|
isDynamicRange: !1,
|
|
4790
4795
|
isWrapped: !0
|
|
4791
4796
|
}]);
|
|
@@ -4798,7 +4803,7 @@ var qi = [
|
|
|
4798
4803
|
t(r, a, o), s = !0;
|
|
4799
4804
|
continue;
|
|
4800
4805
|
}
|
|
4801
|
-
const i = n.getRange(
|
|
4806
|
+
const i = n.getRange(P.rangeToString({
|
|
4802
4807
|
rowStart: r,
|
|
4803
4808
|
colStart: a,
|
|
4804
4809
|
rowEnd: r,
|
|
@@ -4807,19 +4812,19 @@ var qi = [
|
|
|
4807
4812
|
null !== l && t(r, a, l);
|
|
4808
4813
|
}
|
|
4809
4814
|
} else m.forEach((e, n) => {
|
|
4810
|
-
const o = n.getCoords(), r =
|
|
4815
|
+
const o = n.getCoords(), r = b?.(o) ?? g, a = se(r, n.getCell().getValue());
|
|
4811
4816
|
null !== a && (t(o.rowIndex, o.colIndex, a), s = !0);
|
|
4812
4817
|
}, { includeEmpty: !0 });
|
|
4813
4818
|
if (s) continue;
|
|
4814
4819
|
}
|
|
4815
4820
|
const I = -1 !== g.indexOf("!") || -1 !== g.indexOf("[");
|
|
4816
|
-
|
|
4817
|
-
const R = null !== x || m.isSingleCell() ? null :
|
|
4821
|
+
C || m.isSingleCell() || I || l(u) || (x = "" + T++);
|
|
4822
|
+
const R = null !== x || m.isSingleCell() ? null : b, F = [u, {
|
|
4818
4823
|
coords: u,
|
|
4819
4824
|
formula: g,
|
|
4820
4825
|
sharedId: x,
|
|
4821
4826
|
ref: e,
|
|
4822
|
-
isDynamicRange:
|
|
4827
|
+
isDynamicRange: C,
|
|
4823
4828
|
isExcelVolatile: k,
|
|
4824
4829
|
memberImage: R
|
|
4825
4830
|
}];
|
|
@@ -4882,9 +4887,9 @@ var qi = [
|
|
|
4882
4887
|
Z > 0 && (b = o.getInjectedReference(2) ?? !1);
|
|
4883
4888
|
let T = null;
|
|
4884
4889
|
tt > 0 && (T = o.getInjectedReference(3) ?? null);
|
|
4885
|
-
const k = "error" === T?.kind,
|
|
4886
|
-
|
|
4887
|
-
const
|
|
4890
|
+
const k = "error" === T?.kind, R = "fixed" === T?.kind, F = Ea;
|
|
4891
|
+
F.r = o.getAddress(), F.s = void 0, F.t = void 0, F.cm = void 0, F.vm = void 0;
|
|
4892
|
+
const E = null !== h && h.has(r * Ra + l), M = null !== u ? function(t, e, n) {
|
|
4888
4893
|
for (const { table: o, coords: s, formats: r } of t) {
|
|
4889
4894
|
if (e < s.rowStart || e > s.rowEnd || n < s.colStart || n > s.colEnd) continue;
|
|
4890
4895
|
const t = o.getStyleAt(e, n), a = t.getAlignment(), i = "left" === a.getHorizontal() ? a.getIndent() : null, l = t.getNumberFormat(), c = l && "General" !== l ? l : null, d = r?.formatAt(e - s.rowStart, n - s.colStart).user ?? null;
|
|
@@ -4896,30 +4901,30 @@ var qi = [
|
|
|
4896
4901
|
}
|
|
4897
4902
|
return null;
|
|
4898
4903
|
}(u, r, l) : null;
|
|
4899
|
-
(
|
|
4900
|
-
const
|
|
4901
|
-
let
|
|
4904
|
+
(i || E || null !== M) && (c = f.getXf(c ?? 0, null !== i, E, M?.labelIndent ?? null, M?.numberFormat ?? null, M?.user ?? null)), void 0 !== c && 0 !== c && (F.s = "" + c);
|
|
4905
|
+
const P = K.length > 0 ? o.getInjectedReference(4) ?? null : null;
|
|
4906
|
+
let A = null, D = null;
|
|
4902
4907
|
switch (v) {
|
|
4903
4908
|
case x.Boolean:
|
|
4904
|
-
|
|
4909
|
+
A = n ? "1" : "0", D = "b";
|
|
4905
4910
|
break;
|
|
4906
4911
|
case x.Error:
|
|
4907
4912
|
const t = n.getCode();
|
|
4908
|
-
if (
|
|
4913
|
+
if (D = "e", t > 7) A = w.BuiltIn.Value.getLabel(), F.vm = "" + p.add(n);
|
|
4909
4914
|
else if (t < 1) {
|
|
4910
4915
|
let t;
|
|
4911
|
-
|
|
4912
|
-
} else
|
|
4916
|
+
D = "s", S ? (t = "=" + S.formula, S = null) : t = "" + n.getLabel(), A = "" + d.add(t), g++;
|
|
4917
|
+
} else A = "" + n.getLabel();
|
|
4913
4918
|
break;
|
|
4914
4919
|
case x.Number:
|
|
4915
|
-
|
|
4920
|
+
A = ot(n), D = null;
|
|
4916
4921
|
break;
|
|
4917
4922
|
case x.String:
|
|
4918
|
-
|
|
4923
|
+
A = n, S || P ? (D = "str", A = n) : (D = "s", A = "" + d.add(A), g++);
|
|
4919
4924
|
break;
|
|
4920
4925
|
case x.RichData:
|
|
4921
|
-
if (n instanceof
|
|
4922
|
-
S ||
|
|
4926
|
+
if (n instanceof I) {
|
|
4927
|
+
S || P ? (D = "str", A = n.getText()) : (D = "s", A = "" + d.add(function(t, e, n) {
|
|
4923
4928
|
const o = t.getRuns(), s = e.getCell().getRichText();
|
|
4924
4929
|
if (!s) return t.getText();
|
|
4925
4930
|
const r = new Array(o.length);
|
|
@@ -4929,28 +4934,28 @@ var qi = [
|
|
|
4929
4934
|
continue;
|
|
4930
4935
|
}
|
|
4931
4936
|
const e = { ...s.runs[t].font };
|
|
4932
|
-
void 0 !== e.weight && e.weight < 700 && delete e.weight, e.style ===
|
|
4937
|
+
void 0 !== e.weight && e.weight < 700 && delete e.weight, e.style === a.Style.Normal && delete e.style, e.underline === a.UnderlineStyle.None && delete e.underline, e.strike === a.StrikeStyle.None && delete e.strike, 0 === e.baseline && delete e.baseline, r[t] = {
|
|
4933
4938
|
text: o[t].text,
|
|
4934
4939
|
font: e
|
|
4935
4940
|
};
|
|
4936
4941
|
}
|
|
4937
|
-
const
|
|
4938
|
-
let l = n.get(
|
|
4939
|
-
return void 0 === l && (l = new
|
|
4942
|
+
const i = JSON.stringify(r);
|
|
4943
|
+
let l = n.get(i);
|
|
4944
|
+
return void 0 === l && (l = new I(r), n.set(i, l)), l;
|
|
4940
4945
|
}(n, o, et)), g++);
|
|
4941
4946
|
break;
|
|
4942
4947
|
}
|
|
4943
|
-
if (n instanceof
|
|
4948
|
+
if (n instanceof C) {
|
|
4944
4949
|
const t = n.toPrimitive();
|
|
4945
|
-
"number" == typeof t ?
|
|
4950
|
+
"number" == typeof t ? A = ot(t) : "boolean" == typeof t ? (D = "b", A = t ? "1" : "0") : S || P ? (D = "str", A = t) : (D = "s", A = "" + d.add(t), g++);
|
|
4946
4951
|
break;
|
|
4947
4952
|
}
|
|
4948
|
-
|
|
4953
|
+
D = "e", A = w.BuiltIn.Value.getLabel(), F.vm = "" + p.add(n, S?.formula ?? (P ? "" : null));
|
|
4949
4954
|
}
|
|
4950
|
-
|
|
4955
|
+
D && (F.t = D);
|
|
4951
4956
|
const L = !S?.isWrapped && (null !== T || (S?.isDynamicRange ?? !1));
|
|
4952
|
-
if (null !== S || null !==
|
|
4953
|
-
if (L && null !== S && !
|
|
4957
|
+
if (null !== S || null !== A || null !== P) {
|
|
4958
|
+
if (L && null !== S && !R && (F.cm = "" + m.registerArrayCell(k)), e.start("c", F), S) {
|
|
4954
4959
|
const t = r === S.coords.rowStart && l === S.coords.colStart;
|
|
4955
4960
|
let n = S.formula;
|
|
4956
4961
|
S.memberImage && !t && (n = S.memberImage({
|
|
@@ -4963,14 +4968,14 @@ var qi = [
|
|
|
4963
4968
|
o = Aa;
|
|
4964
4969
|
const t = S.coords;
|
|
4965
4970
|
t.colStart === l && t.rowStart === r ? (o.ref = S.ref, o.si = a, s = S.formula) : (o.ref = void 0, o.si = a);
|
|
4966
|
-
} else L ? (o = Da, o.aca = k ? "1" : void 0, o.ref = k ?
|
|
4971
|
+
} else L ? (o = Da, o.aca = k ? "1" : void 0, o.ref = k ? F.r : T?.ref ?? F.r, s = n) : (o = Pa, s = n);
|
|
4967
4972
|
o.ca = b || k || S.isExcelVolatile ? "1" : void 0, s ? (e.start("f", o), e.text(s), e.end("f")) : e.empty("f", o);
|
|
4968
|
-
} else
|
|
4969
|
-
...
|
|
4973
|
+
} else P && e.empty("f", b ? {
|
|
4974
|
+
...P,
|
|
4970
4975
|
ca: "1"
|
|
4971
|
-
} :
|
|
4972
|
-
null !==
|
|
4973
|
-
} else y++ < aa ? e.empty("c",
|
|
4976
|
+
} : P);
|
|
4977
|
+
null !== A && ("str" === D && A ? (e.start("v", ke.test(A) ? Fe : void 0), e.text(ie(A))) : (e.start("v"), A && e.text(A)), e.end("v")), e.end("c");
|
|
4978
|
+
} else y++ < aa ? e.empty("c", F) : 1048577 === y && t.warn(`Reached ${aa} style-only cells at '${F.r}'; not writing the rest.`);
|
|
4974
4979
|
}, {
|
|
4975
4980
|
injectReferences: G,
|
|
4976
4981
|
features: []
|
|
@@ -4980,7 +4985,7 @@ var qi = [
|
|
|
4980
4985
|
const t = c.get("stringsCount") ?? 0;
|
|
4981
4986
|
c.set("stringsCount", t + g);
|
|
4982
4987
|
}
|
|
4983
|
-
}(e, s, r,
|
|
4988
|
+
}(e, s, r, i, await (async (t, e) => {
|
|
4984
4989
|
const n = e ? e.length : 0;
|
|
4985
4990
|
if (0 === n) return ea;
|
|
4986
4991
|
const o = /* @__PURE__ */ new Set(), s = new Array(n);
|
|
@@ -5012,7 +5017,7 @@ var qi = [
|
|
|
5012
5017
|
return !1;
|
|
5013
5018
|
}
|
|
5014
5019
|
};
|
|
5015
|
-
})(r,
|
|
5020
|
+
})(r, i.formulas), d, c), function(t, e, n, o) {
|
|
5016
5021
|
const s = o.protection;
|
|
5017
5022
|
if (!s) return;
|
|
5018
5023
|
const r = {};
|
|
@@ -5022,7 +5027,7 @@ var qi = [
|
|
|
5022
5027
|
null !== e && (r[t.attribute] = e);
|
|
5023
5028
|
}
|
|
5024
5029
|
e.empty("sheetProtection", r);
|
|
5025
|
-
}(0, s, 0,
|
|
5030
|
+
}(0, s, 0, i), function(t, e, n, o) {
|
|
5026
5031
|
const s = o.protectedRanges, r = s ? s.length : 0;
|
|
5027
5032
|
if (0 === r) return;
|
|
5028
5033
|
const a = [];
|
|
@@ -5047,8 +5052,8 @@ var qi = [
|
|
|
5047
5052
|
for (let t = 0; t < a.length; t++) e.empty("protectedRange", a[t]);
|
|
5048
5053
|
e.end("protectedRanges");
|
|
5049
5054
|
}
|
|
5050
|
-
}(e, s, 0,
|
|
5051
|
-
const m =
|
|
5055
|
+
}(e, s, 0, i);
|
|
5056
|
+
const m = i.autoTable;
|
|
5052
5057
|
if (m) {
|
|
5053
5058
|
let t;
|
|
5054
5059
|
const n = m;
|
|
@@ -5059,12 +5064,12 @@ var qi = [
|
|
|
5059
5064
|
if (s > 0) {
|
|
5060
5065
|
e.start("mergeCells", { count: s });
|
|
5061
5066
|
for (let t = 0; t < s; t++) {
|
|
5062
|
-
const n = o.merges[t], s = "string" == typeof n ? n :
|
|
5067
|
+
const n = o.merges[t], s = "string" == typeof n ? n : P.rangeToString(n);
|
|
5063
5068
|
e.empty("mergeCell", { ref: s });
|
|
5064
5069
|
}
|
|
5065
5070
|
e.end("mergeCells");
|
|
5066
5071
|
}
|
|
5067
|
-
})(0, s, 0,
|
|
5072
|
+
})(0, s, 0, i);
|
|
5068
5073
|
const p = /* @__PURE__ */ new Map(), f = function(t, e, o, s, r) {
|
|
5069
5074
|
const a = [], i = s.conditionals, l = i ? i.length : 0;
|
|
5070
5075
|
if (0 === l) return a;
|
|
@@ -5088,7 +5093,7 @@ var qi = [
|
|
|
5088
5093
|
scale: x
|
|
5089
5094
|
});
|
|
5090
5095
|
const y = x ? { type: x.type } : vt(l.condition, ua(c), (e, n) => t.warn(e, void 0, n));
|
|
5091
|
-
y ? (y.formulas && (y.formulas = y.formulas.map((t) => Sa(t, g, p))), x?.type ===
|
|
5096
|
+
y ? (y.formulas && (y.formulas = y.formulas.map((t) => Sa(t, g, p))), x?.type === F.ScaleType.IconSet && pa(x) ? (h++, u(l), a.push({
|
|
5092
5097
|
guid: Pt(n.uuidV4),
|
|
5093
5098
|
sqref: c,
|
|
5094
5099
|
priority: h,
|
|
@@ -5106,7 +5111,7 @@ var qi = [
|
|
|
5106
5111
|
}))) : l.condition || t.log("Skipping conditional format with neither a condition nor a scale.");
|
|
5107
5112
|
}
|
|
5108
5113
|
return null !== f && e.end("conditionalFormatting"), a;
|
|
5109
|
-
}(e, s, r,
|
|
5114
|
+
}(e, s, r, i, p), h = function(t, e, n, o) {
|
|
5110
5115
|
const s = [], r = t.getSharedStates().get(pt), a = o.validations, i = a ? a.length : 0;
|
|
5111
5116
|
if (0 === i) return s;
|
|
5112
5117
|
const l = [];
|
|
@@ -5155,7 +5160,7 @@ var qi = [
|
|
|
5155
5160
|
void 0 !== o || void 0 !== s ? (e.start("dataValidation", n), void 0 !== o && (e.start("formula1"), e.text(o), e.end("formula1")), void 0 !== s && (e.start("formula2"), e.text(s), e.end("formula2")), e.end("dataValidation")) : e.empty("dataValidation", n);
|
|
5156
5161
|
}
|
|
5157
5162
|
return e.end("dataValidations"), s;
|
|
5158
|
-
}(e, s, r,
|
|
5163
|
+
}(e, s, r, i);
|
|
5159
5164
|
(function(t, e, n, o) {
|
|
5160
5165
|
const s = o.hyperlinks, r = s ? s.length : 0;
|
|
5161
5166
|
if (0 !== r) {
|
|
@@ -5169,7 +5174,7 @@ var qi = [
|
|
|
5169
5174
|
}
|
|
5170
5175
|
e.end("hyperlinks");
|
|
5171
5176
|
}
|
|
5172
|
-
})(e, s, 0,
|
|
5177
|
+
})(e, s, 0, i), await async function(t, e, n) {
|
|
5173
5178
|
const o = {};
|
|
5174
5179
|
n?.centerHorizontally && (o.horizontalCentered = "1"), n?.centerVertically && (o.verticalCentered = "1"), n?.printHeadings && (o.headings = "1"), n?.printGridlines && (o.gridLines = "1"), Object.keys(o).length > 0 && e.empty("printOptions", o);
|
|
5175
5180
|
const s = n?.margins;
|
|
@@ -5214,7 +5219,7 @@ var qi = [
|
|
|
5214
5219
|
}
|
|
5215
5220
|
}
|
|
5216
5221
|
Ta(e, "rowBreaks", n.rowBreaks), Ta(e, "colBreaks", n.columnBreaks);
|
|
5217
|
-
}(e, s,
|
|
5222
|
+
}(e, s, i.pageLayout), function(t, e) {
|
|
5218
5223
|
if (!e?.length) return;
|
|
5219
5224
|
const n = /* @__PURE__ */ new Map();
|
|
5220
5225
|
for (const t of e) {
|
|
@@ -5238,7 +5243,7 @@ var qi = [
|
|
|
5238
5243
|
}
|
|
5239
5244
|
t.end("ignoredErrors");
|
|
5240
5245
|
}
|
|
5241
|
-
}(s,
|
|
5246
|
+
}(s, i.ignoredErrors), function(t, e, n, o) {
|
|
5242
5247
|
const s = o.movables;
|
|
5243
5248
|
if (0 === (s ? s.length : 0)) return;
|
|
5244
5249
|
if (!s.some((t) => {
|
|
@@ -5261,7 +5266,7 @@ var qi = [
|
|
|
5261
5266
|
resources: n.getResources()
|
|
5262
5267
|
});
|
|
5263
5268
|
e.empty("drawing", { "r:id": c.relId });
|
|
5264
|
-
}(e, s, r,
|
|
5269
|
+
}(e, s, r, i);
|
|
5265
5270
|
const u = function(t) {
|
|
5266
5271
|
const e = t.getComments().toArray();
|
|
5267
5272
|
if (0 === e.length) return null;
|
|
@@ -5344,7 +5349,7 @@ var qi = [
|
|
|
5344
5349
|
...e,
|
|
5345
5350
|
xml: i
|
|
5346
5351
|
} : { xml: i } : e;
|
|
5347
|
-
})(r,
|
|
5352
|
+
})(r, i.legacyDrawing ?? null, l), u)), ka(e, s, "legacyDrawingHF", i.legacyDrawingHF ?? null), await async function(t, e, n) {
|
|
5348
5353
|
const o = n.getPicture();
|
|
5349
5354
|
if (!o) return;
|
|
5350
5355
|
const s = o.getResource(), r = await s.getExternalURI();
|
|
@@ -5427,7 +5432,7 @@ var qi = [
|
|
|
5427
5432
|
c["r:id"] = l.relId, e.empty("tablePart", c);
|
|
5428
5433
|
}
|
|
5429
5434
|
e.end("tableParts");
|
|
5430
|
-
}(e, s, r,
|
|
5435
|
+
}(e, s, r, i), function(t, e, n, o, s) {
|
|
5431
5436
|
const r = kr(n), a = n.getSparklineGroups().getItems(), i = a.length > 0;
|
|
5432
5437
|
if (0 === o.length && 0 === s.length && 0 === r.length && !i) return;
|
|
5433
5438
|
const l = n.getStyles(), c = l.getTheme();
|
|
@@ -5438,7 +5443,7 @@ var qi = [
|
|
|
5438
5443
|
}), e.start("x14:conditionalFormattings");
|
|
5439
5444
|
for (let n = 0; n < o.length; n++) {
|
|
5440
5445
|
const { guid: s, sqref: r, priority: a, scale: i, rule: d, style: m, stopIfTrue: p } = o[n];
|
|
5441
|
-
if (e.start("x14:conditionalFormatting", { "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }), i) if (i.type ===
|
|
5446
|
+
if (e.start("x14:conditionalFormatting", { "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }), i) if (i.type === F.ScaleType.DataBar) {
|
|
5442
5447
|
e.start("x14:cfRule", {
|
|
5443
5448
|
type: "dataBar",
|
|
5444
5449
|
id: s
|
|
@@ -5614,7 +5619,7 @@ var qi = [
|
|
|
5614
5619
|
}
|
|
5615
5620
|
});
|
|
5616
5621
|
}
|
|
5617
|
-
}(e,
|
|
5622
|
+
}(e, i, p), function(t, e) {
|
|
5618
5623
|
e && (t.addPart("comments", e), e.comments.some((t) => !t.comment.isNote()) && t.addPart("threadedComments", e));
|
|
5619
5624
|
}(e, u), s.end("worksheet"), s.close();
|
|
5620
5625
|
}
|
|
@@ -5638,7 +5643,7 @@ var qi = [
|
|
|
5638
5643
|
const a = t.theme;
|
|
5639
5644
|
for (let t = 0; t < s; t++) {
|
|
5640
5645
|
const e = o[t];
|
|
5641
|
-
if (n.start("si"), e instanceof
|
|
5646
|
+
if (n.start("si"), e instanceof I) {
|
|
5642
5647
|
const t = e.getRuns();
|
|
5643
5648
|
for (let e = 0; e < t.length; e++) {
|
|
5644
5649
|
const o = t[e];
|
|
@@ -5744,7 +5749,7 @@ var qi = [
|
|
|
5744
5749
|
"xmlns:x16r2": "http://schemas.microsoft.com/office/spreadsheetml/2015/02/main",
|
|
5745
5750
|
"xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision"
|
|
5746
5751
|
});
|
|
5747
|
-
const { directXfs: a, denormalized: i } = e.getSharedStates().get("stylesLayout") ?? gs(r, s),
|
|
5752
|
+
const { directXfs: a, denormalized: i } = e.getSharedStates().get("stylesLayout") ?? gs(r, s), c = e.getSharedStates().get(fs), d = function(t) {
|
|
5748
5753
|
const e = t?.slicers?.styles;
|
|
5749
5754
|
if (!e) return t;
|
|
5750
5755
|
const n = { ...t.tables?.styles };
|
|
@@ -5763,7 +5768,7 @@ var qi = [
|
|
|
5763
5768
|
styles: n
|
|
5764
5769
|
}
|
|
5765
5770
|
};
|
|
5766
|
-
}(s),
|
|
5771
|
+
}(s), m = function(t, e = 0) {
|
|
5767
5772
|
const n = t?.tables;
|
|
5768
5773
|
if (!n) return null;
|
|
5769
5774
|
const o = n.styles;
|
|
@@ -5786,7 +5791,7 @@ var qi = [
|
|
|
5786
5791
|
dxfs: s,
|
|
5787
5792
|
dxfIndexMap: r
|
|
5788
5793
|
};
|
|
5789
|
-
}(
|
|
5794
|
+
}(d, c?.getCount() ?? 0), p = e.getSharedStates().get(Zn), h = (p?.getSources() ?? []).map((t) => function(t, e, o) {
|
|
5790
5795
|
let s = e[t.xf];
|
|
5791
5796
|
if (t.user) {
|
|
5792
5797
|
const { numberFormat: e, ...r } = t.user;
|
|
@@ -5803,7 +5808,7 @@ var qi = [
|
|
|
5803
5808
|
...s,
|
|
5804
5809
|
alignment: {
|
|
5805
5810
|
...n,
|
|
5806
|
-
horizontal:
|
|
5811
|
+
horizontal: f.HorizontalAlignment.Left,
|
|
5807
5812
|
...t.labelIndent > 0 ? { indent: t.labelIndent } : {}
|
|
5808
5813
|
}
|
|
5809
5814
|
};
|
|
@@ -5813,7 +5818,7 @@ var qi = [
|
|
|
5813
5818
|
numberFormat: t.numberFormat
|
|
5814
5819
|
}), s;
|
|
5815
5820
|
}(t, a, s));
|
|
5816
|
-
for (const t of
|
|
5821
|
+
for (const t of h) ws(r, t, i);
|
|
5817
5822
|
(function(t, e, n) {
|
|
5818
5823
|
const o = n.numFmtsCustom, s = o.length;
|
|
5819
5824
|
if (0 !== s) {
|
|
@@ -5828,7 +5833,7 @@ var qi = [
|
|
|
5828
5833
|
e.end("numFmts");
|
|
5829
5834
|
}
|
|
5830
5835
|
})(0, o, i), function(t, e, n, o) {
|
|
5831
|
-
const s = o.fonts, r = s.length, a = n.getTheme(), i =
|
|
5836
|
+
const s = o.fonts, r = s.length, a = n.getTheme(), i = D.getShared(), l = $e(s.map((t) => ({
|
|
5832
5837
|
...t,
|
|
5833
5838
|
family: ne(t.family, t.fallbacks, a, !0).name
|
|
5834
5839
|
}))).every((t) => gt(i, t));
|
|
@@ -5863,18 +5868,18 @@ var qi = [
|
|
|
5863
5868
|
Rs(0, e, n, a[t], s, !0, o.hidden, o.pivotButton, i?.getXfComplement(o.xf) ?? null);
|
|
5864
5869
|
}
|
|
5865
5870
|
e.end("cellXfs");
|
|
5866
|
-
}(e, o, r, a, i,
|
|
5871
|
+
}(e, o, r, a, i, p, h, e.getSharedStates().get(to)), function(t, e, n, o, s) {
|
|
5867
5872
|
const r = s.namedStyles, a = r.length;
|
|
5868
5873
|
e.start("cellStyles", { count: String(a) });
|
|
5869
5874
|
const i = s.namedStyleMap;
|
|
5870
5875
|
for (let t = 0; t < a; t++) {
|
|
5871
|
-
const o = r[t], s = o.name, a = s.toLowerCase(),
|
|
5876
|
+
const o = r[t], s = o.name, a = s.toLowerCase(), c = {
|
|
5872
5877
|
name: s,
|
|
5873
5878
|
xfId: i.get(a)
|
|
5874
5879
|
};
|
|
5875
|
-
o.hidden && (
|
|
5876
|
-
let
|
|
5877
|
-
|
|
5880
|
+
o.hidden && (c.hidden = "1"), o.iLevel && (c.iLevel = String(o.iLevel));
|
|
5881
|
+
let d = null;
|
|
5882
|
+
d = a === l.BuiltInName.Normal.toLowerCase() ? 0 : n.getNamedStyles().getByName(s).getBuiltInID(), null !== d && (c.builtinId = String(d), o.customized && (c.customBuiltin = "1")), e.empty("cellStyle", c);
|
|
5878
5883
|
}
|
|
5879
5884
|
e.end("cellStyles");
|
|
5880
5885
|
}(0, o, r, 0, i), function(t, e, n, o, s) {
|
|
@@ -5885,7 +5890,7 @@ var qi = [
|
|
|
5885
5890
|
let i = Ps;
|
|
5886
5891
|
for (const o of r) i = Ms(t, e, o, n, a, "dxf", i);
|
|
5887
5892
|
e.end("dxfs");
|
|
5888
|
-
}(e, o, r,
|
|
5893
|
+
}(e, o, r, m, c), function(t, e, n, o, s, r) {
|
|
5889
5894
|
const a = o?.tables, i = a?.styles ?? null, l = i ? Object.keys(i) : null, c = l ? l.length : 0, d = {
|
|
5890
5895
|
count: String(c),
|
|
5891
5896
|
defaultTableStyle: a?.defaultTableStyle ?? "TableStyleMedium2",
|
|
@@ -5914,7 +5919,7 @@ var qi = [
|
|
|
5914
5919
|
}
|
|
5915
5920
|
e.end("tableStyles");
|
|
5916
5921
|
} else e.empty("tableStyles", d);
|
|
5917
|
-
}(0, o, 0,
|
|
5922
|
+
}(0, o, 0, d, m, s?.slicers), function(t, e, n, o) {
|
|
5918
5923
|
const s = o?.indexedColors && o.indexedColors.length > 0, r = o?.mruColors && o.mruColors.length > 0;
|
|
5919
5924
|
if (s || r) {
|
|
5920
5925
|
if (e.start("colors"), s) {
|
|
@@ -6056,7 +6061,7 @@ var qi = [
|
|
|
6056
6061
|
});
|
|
6057
6062
|
}
|
|
6058
6063
|
async emit(t, e) {
|
|
6059
|
-
const n = e.getXMLWriter(), o = t.model, s = (await
|
|
6064
|
+
const n = e.getXMLWriter(), o = t.model, s = (await k.getDetails()).getBuildVersion(), r = Et(s), a = o.getProperties();
|
|
6060
6065
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
6061
6066
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
6062
6067
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
@@ -6084,13 +6089,13 @@ var qi = [
|
|
|
6084
6089
|
chart: 2,
|
|
6085
6090
|
dialog: 3
|
|
6086
6091
|
};
|
|
6087
|
-
for (const t of n.getSheets({ visibility:
|
|
6092
|
+
for (const t of n.getSheets({ visibility: M.Visibility.Hidden })) o[s[t.getKind()] ?? 0].names.push(t.getName());
|
|
6088
6093
|
const r = n.getNames().getItems({ type: "formula" }).filter((t) => !!t.getRanges?.());
|
|
6089
6094
|
o.push({
|
|
6090
6095
|
heading: "Named Ranges",
|
|
6091
6096
|
names: r.map((t) => {
|
|
6092
6097
|
const e = t.getScope();
|
|
6093
|
-
return e ? `${
|
|
6098
|
+
return e ? `${P.sheetNameToString(e)}!${t.getName()}` : t.getName();
|
|
6094
6099
|
})
|
|
6095
6100
|
});
|
|
6096
6101
|
const a = o.filter((t, e) => 0 === e || t.names.length > 0);
|
|
@@ -6328,7 +6333,7 @@ var qi = [
|
|
|
6328
6333
|
let n = s && !s.isClosed() ? s : null;
|
|
6329
6334
|
if (!n) {
|
|
6330
6335
|
const e = await t.workbook.fetch(o);
|
|
6331
|
-
e.ok && e.headers.get("content-type")?.startsWith("image/") && (n = new
|
|
6336
|
+
e.ok && e.headers.get("content-type")?.startsWith("image/") && (n = new E({ source: { buffer: await e.arrayBuffer() } }));
|
|
6332
6337
|
}
|
|
6333
6338
|
n && (a = (await ts(e, n)).relId);
|
|
6334
6339
|
} catch {}
|
|
@@ -7169,7 +7174,7 @@ var qi = [
|
|
|
7169
7174
|
});
|
|
7170
7175
|
f.addPart("workbook", t, "/xl/workbook.xml"), await f.waitEmit(), f.addPart("propsCore", { model: t }), f.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && f.addPart("propsCustom", { model: t });
|
|
7171
7176
|
let h = await f.build();
|
|
7172
|
-
await
|
|
7177
|
+
await k.isWatermarked() && (h = await (async (t) => {
|
|
7173
7178
|
const e = new B(new z(t)), n = new j(), o = new je(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
|
|
7174
7179
|
try {
|
|
7175
7180
|
for (const t of await e.getEntries()) {
|