@sheetxl/mcp 0.8.0-beta.18 → 0.8.0-beta.20
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/{o9G5KuG1VkSazTvI.js → -qQT-DFFz0CqGx5C.js} +373 -373
- package/assets/{CNE-erNKNIT7bUb1.js → 4Qlx8FuxoYbVTgNW.js} +27 -27
- package/assets/{yBFl0kPv-nwFtG4Z.js → 4Za9gEGCvms62R7k.js} +1 -1
- package/assets/{D0-I0aLr6w8IvxFD.js → 8FzS1bgbz4U1QE_m.js} +1 -1
- package/assets/{10d0ZbYF23zeF8_1.js → 93ksqLKL1o40anfw.js} +1 -1
- package/assets/{BV11qLZKVWxFwVGV.js → B-7inN76S1zUWSAt.js} +1 -1
- package/assets/{DjoFujVwGRAxviCF.js → B4ii9PGvnlYkSX2q.js} +2 -2
- package/assets/{Bi8ct8GYvMDKHCE3.js → B5UmlawoCVwHHM_e.js} +5 -5
- package/assets/{D5nleqRNvTcmN5_9.js → B5yaBbFj2Np9Eh8b.js} +1 -1
- package/assets/{F0HGXXl9AizCAcFy.js → B6J8XN1FRN00a_ps.js} +1 -1
- package/assets/{DY1x1ZN7ZyE4OR1-.js → BBm3Xjnehvx2fYj8.js} +8 -8
- package/assets/{CiKd3BnRjhac2Hik.js → BEq2PSZQN7VV19RQ.js} +1 -1
- package/assets/{wZ-GQhOhikv-_3iQ.js → BGQ1GrnQ-X16GU8k.js} +2 -2
- package/assets/{BrwNVveK5LvYkoGk.js → BGlx7_eRiv47Hu9C.js} +1 -1
- package/assets/{BEtUOCupmeICfGE1.js → BHiZ3GtGCWUWwHqY.js} +3 -3
- package/assets/{BOdkvYo03yZ96iZt.js → BItblzoSm0lN3bTV.js} +1 -1
- package/assets/{pg7E7B7ouG2qdZve.js → BJYl-kvBtcnMVP8W.js} +1 -1
- package/assets/{hvCnPO_Fu7Nqz0rs.js → BKc7zTK6ZIhcD_Wu.js} +1 -1
- package/assets/{DmCRCUmmkoRNCS9J.js → BMH_wtFTiRj43c69.js} +2 -2
- package/assets/{CL4BYdfIXgFQA8nY.js → BVdH9-49M3APSiPy.js} +1 -1
- package/assets/{BsYVa-oRhTLH6wnH.js → BYYbglFmasE5PrS2.js} +1 -1
- package/assets/{BgGFX6QJ30T3seyX.js → Bg8EN9R3hbeNfFyU.js} +103 -103
- package/assets/{BRQd_GNkeaBTl3Zr.js → BghxJxTwaebNVcIS.js} +1 -1
- package/assets/{CnLLwj7OCz4U71wa.js → BieAybaOdneMdvBS.js} +1 -1
- package/assets/{Ct8BhGWuqN5yOpUF.js → BkhWR4P1Evw_VP5z.js} +1 -1
- package/assets/BmmIukrNOivfENgD.js +199 -0
- package/assets/{DbwDQlhCuGoasVUz.js → Bndiqwoh132Upow1.js} +2 -2
- package/assets/{CLBxNjtPjuGX1KnU.js → Bp9zuG6P6r9GEb6G.js} +1 -1
- package/assets/{Bz5ioWvl-Xl3xspC.js → C0MAjW1vgsw6o0fx.js} +1 -1
- package/assets/{CcB4xmoUFWBbSISF.js → C3BZQ5NFwAU_ZdeQ.js} +1 -1
- package/assets/{hLMlKg3lU36xZ6G6.js → C46dyA4YSP1-iTSN.js} +1 -1
- package/assets/{CkO0JR629W2kcDMd.js → C7oUg84aGjYrJUc6.js} +2 -2
- package/assets/{DmUCKxOYIBM6DX64.js → C9JUgNS6CrdgIcW3.js} +1 -1
- package/assets/{CGGpkGg85FZsnYHc.js → C9aV1SF8uCWIB4zU.js} +15 -15
- package/assets/{B2C5njsdPylyQOCM.js → C9eaFlFi_4GmymzP.js} +40 -40
- package/assets/{VcmpHRbBIrw6av3U.js → C9w-KoMwxvouC73F.js} +148 -148
- package/assets/{Bi4pI6e3AwTjn-lQ.js → C9wXzrhl0dwqZgJ6.js} +1 -1
- package/assets/CCl8x9s8Bujsew7W.js +14 -0
- package/assets/{nnqtgWxMIc_Nc-IP.js → CDmri0gcZxpVZfWn.js} +446 -445
- package/assets/{CPkGFumcwSKh5zea.js → CDvP9QyhDwdm3MZn.js} +2 -2
- package/assets/{Byd5zSRU6LWfL2No.js → CLFe9HgUi_83dE3d.js} +1 -1
- package/assets/{CzoexWLhnn08u05j.js → CTGfmocA1WgM0_e0.js} +718 -721
- package/assets/{CYUerpa6WB0Hc3fs.js → CUJiePMri5kkpdA7.js} +1 -1
- package/assets/{BxizypreLEtLqpIc.js → CW2Ca6tsd0aLTz88.js} +1 -1
- package/assets/{EDEUvF-L72a6fMCK.js → CaI562iJKKOoMw8p.js} +1 -1
- package/assets/{D2sRTakzE5POMnhF.js → CaOEaghQqXiA1ZzO.js} +122 -122
- package/assets/{CPa4og3WQ7BgHrsO.js → CbTKUrroY9PQ6eTu.js} +28 -28
- package/assets/{DP-FzazhSKAvylUa.js → CgIHqG1qp9n1Gwm7.js} +285 -285
- package/assets/{VL-vwx7Pyw1zqIx9.js → Cheq-qaVWm7EaIlQ.js} +1 -1
- package/assets/{D49iRcrfnODORRNC.js → Cirpx81bWi4G2foA.js} +11 -11
- package/assets/{B74Ls4nlmyBxWanf.js → Cm2WENwEZ0KMyF--.js} +2 -2
- package/assets/{Cv8UXBL7O7h1uMR8.js → CoOIn2wx6je_rMDO.js} +34 -34
- package/assets/{CT6kRDlkfvKq8XGZ.js → Co_ZOyp4mKmSfh0A.js} +1 -1
- package/assets/{Rpi4k7hMH8wPAIcB.js → CpLTCQemd_cJ4yFu.js} +1663 -1663
- package/assets/{Iv_Zbm3pMLOK2uxf.js → CpfpXfCqzZumY4pf.js} +1 -1
- package/assets/{r9WSFw3a-_a5hlPm.js → CrRJqUPbvvhnp4p4.js} +3 -7
- package/assets/{DI_SAQ7hesioI9TW.js → CrULZhDt8uE-MR2s.js} +1 -1
- package/assets/{CDqOifqA400y7KQY.js → CyOyY32LLW-Pj_L7.js} +1 -1
- package/assets/{gAg9rL3U8fWUDeEb.js → CyYbUk6pGr3NIBsy.js} +51 -51
- package/assets/{Dh2iae-q0IngEeyH.js → D--emvI048MvLsXl.js} +1 -1
- package/assets/{DMnhlFBJ2AlVx2_t.js → D4lMEKXi13vhDJbE.js} +1 -1
- package/assets/{B-6CmVJvxPNZB9bE.js → DALP-GkmzCJdFIV9.js} +1 -1
- package/assets/{DCHjwIx59QhiV2Zx.js → DAVN6N3srI1WMHCN.js} +2 -2
- package/assets/{8hZAYFV_v2KmJ_NL.js → DBfBV-tvRxCLgdvs.js} +4 -4
- package/assets/{BhHneZZ7gq4dRaEJ.js → DIntlX_ha_wRdxYj.js} +1 -1
- package/assets/{XDQBri0_cS5paHej.js → DMDx0fX8tHKH0DdL.js} +2 -2
- package/assets/{9rJMq-cyOmajlBEQ.js → DMMw2v0iTuBnUjMI.js} +1 -1
- package/assets/{BCeSyFXflYgNP_ES.js → DNwyEanz3LqtOorY.js} +1 -1
- package/assets/{BFGVZsstQm2MWi7Y.js → DPUXpIzEs1t-jBiv.js} +1 -1
- package/assets/{DKnwIboAj_Sg9aVP.js → DSy6cpdU-KNWsbSj.js} +2 -2
- package/assets/{DN4zv4AjDxTsLFsA.js → DTXRsv2Ww7WbIwCb.js} +9352 -9281
- package/assets/{Du9_Ajy9KvnwHApK.js → DV_nCOON8Fgq5RBt.js} +2 -2
- package/assets/{BFcxaubQp1WMeknL.js → DYRis8fOyk2uIZ-1.js} +4 -4
- package/assets/{BQzUK7KiJeJpu-rK.js → DZ2Njh8YgfXcv7EM.js} +1 -1
- package/assets/{CMXukie7sxP12H2E.js → Dc2LiflUYpt0nVVk.js} +4 -4
- package/assets/{BQ76ntZm9YFicjXj.js → DcwqgbgqPyzQxSsQ.js} +1 -1
- package/assets/{DSDlxGN059KmkCxT.js → DjH6ckvISyssOSit.js} +1 -1
- package/assets/{NZeFs1MV5h-uMZqJ.js → Dlbgs8csKymbxu7r.js} +1 -1
- package/assets/{BwQM6Q6HHQTXznpy.js → DnDTldUjKy0O586y.js} +2 -2
- package/assets/{CLsD7YwSKAsliRZy.js → DndzARNYtmumqGnG.js} +1 -1
- package/assets/{nPoObUd0MvWI-j0F.js → Drmg3-gF0VJs4Yx3.js} +1 -1
- package/assets/{DwOPJ5TXttTx69oF.js → DsSlUklPSAsh9DhW.js} +330 -330
- package/assets/{rIReGgfQ90pzLAbU.js → DsWJ-YRyuwDUuSge.js} +1 -1
- package/assets/{BQeb2zXfAs5lRoGt.js → Dsjx528shW3GcGpD.js} +3 -3
- package/assets/{C_UAskmm-u2Iw9Nl.js → Dv9ZDmKuxn2tQDGb.js} +1 -1
- package/assets/{Bqq5Sl5E9ytcPJ3J.js → DvRH46hupHUjkc7a.js} +1 -1
- package/assets/{D5wI7O_L6QVNXj5I.js → DwsoGIyPuoQij_vi.js} +1 -1
- package/assets/{SCOKwiDu6SYiQrQ0.js → Dx_IFz5FEPKw-HC1.js} +1 -1
- package/assets/{CmlxzZYM5hOAAcx5.js → DzLrAy24em5k5en0.js} +3 -3
- package/assets/{D1pD8u8nRprUvn-u.js → I7LAF1nLmYqQwt9i.js} +1 -1
- package/assets/{CJoWPN_DsFbaGAiE.js → IDq3QQa5uRqjVJx_.js} +1 -1
- package/assets/{BSvHkSY0R0EU0gC4.js → LugZP3XHNnoiiTJO.js} +1 -1
- package/assets/{CoQFpWEh4CUgcdwe.js → MpvZt7VpFWEINIT6.js} +1 -1
- package/assets/{DMGq2icilGiyfBTM.js → NiD8iNE47sjggYTx.js} +1 -1
- package/assets/{vXZw1AmMzswOZMiP.js → PMBjuoD2MpG87dao.js} +1 -1
- package/assets/{CvkibaXI8SOD22pw.js → TdK2ciXA5BAlGjbR.js} +1 -1
- package/assets/{DWK-OKV0MErx-IrU.js → Ti7kMsQ-Eo3lkfIh.js} +6 -6
- package/assets/{D2IMjoGcj5oz1Kr7.js → Xkr_4WLwk0ZPaYH2.js} +1 -1
- package/assets/{DcjJ_zTfdh6RqmVZ.js → YG5hEr6CzWNmNJQ2.js} +1 -1
- package/assets/{MfkAFluI0ZyU0UDV.js → YGYD-116vlZfzPn1.js} +13 -13
- package/assets/{BhJ1mH7pUONJScU7.js → Z1zwOeCe-JTLgkxf.js} +47 -47
- package/assets/{Dhg0yeTmVfmRV5rK.js → _LMcVYWJksPfGVxz.js} +1 -1
- package/assets/{DzEJwSC-_aavYiFd.js → eV0oowKJe44NBnWj.js} +1 -1
- package/assets/{DH7Rur7rNOYzv35r.js → eWHWPRWHX6YU8bJU.js} +1 -1
- package/assets/{DL3ms6Hf2uEGaMgH.js → hcXZqO-0tG873E-L.js} +2 -2
- package/assets/{BM-ax5N1GzF9KkI4.js → klKXcdZmbQmsK2rt.js} +1 -1
- package/assets/{CQBFUsemb94zMBo6.js → ltqqdJxoPnLCjhBV.js} +3 -3
- package/assets/{BQsLqKWy17wy3znE.js → mYZ9Z5AKCn7zltHw.js} +2 -2
- package/assets/{BatIfPAYElNTXVzb.js → nV0eE4R3npcOHLbx.js} +1 -1
- package/assets/{BedBCvJP064ZYuO8.js → ndBoGVVjmy3vkff8.js} +2 -2
- package/assets/{ARPN5UhoadZC1yqE.js → noAnElnMhF05bfJN.js} +1 -1
- package/assets/{CYcb-DojX92VNGzd.js → q57cDvIPcIvWlh5T.js} +3 -3
- package/assets/{CWuPUrDsnBxboJ02.js → rtUwIBgECTX9UO_B.js} +108 -108
- package/assets/{DafqFM-FGeZJ_fzg.js → swG-DVTsez1uNW8c.js} +1 -1
- package/assets/{BDNqot_JWBuVW_pC.js → tCavNu-Tru6yRbec.js} +1 -1
- package/assets/{B7GE-6NROw0onnLD.js → u-pSumbU-rgT6eLF.js} +224 -224
- package/assets/{BMc-Hsrp_iifxzG_.js → uMoGfJGab8mZX6eN.js} +1 -1
- package/assets/{C3PZVWI_SEXYrzVk.js → uoUKT9hTrwZ2INHN.js} +3 -3
- package/assets/{CnCtLKkz0bdXIxn2.js → wYvkLI8IeHaWTtAx.js} +92 -92
- package/assets/{DlWRvc1pLGPCRMwi.js → yDh_W6M1rvuDhFv1.js} +1 -1
- package/index.js +224 -224
- package/lib.js +1 -1
- package/licenses/dependencies.txt +35 -35
- package/package.json +2 -2
- package/screenshot-page/assets/{Di8Yn8O-rD9idC2h.js → 1yHlU53ypZZelMPx.js} +1 -1
- package/screenshot-page/assets/{Btgo0VFTT0JxuaP3.js → B-8IMo2f1yGNXOyz.js} +86 -90
- package/screenshot-page/assets/{NDzpWLUA0pbyI-Rd.js → B9kA0vdaFJi9iRGo.js} +4 -4
- package/screenshot-page/assets/{iAWaCU0XkY0ktnNk.js → BLPyKyNun9-SHQBZ.js} +1 -1
- package/screenshot-page/assets/BMKiUDjoabO4aG1U.js +1 -0
- package/screenshot-page/assets/{C1lrvl0Ad1-NjWKG.js → BOjOE9CEMSzcij2W.js} +2 -2
- package/screenshot-page/assets/{DjtXY9uxB3QP6hU3.js → BQ5BNe1adYfpa2OH.js} +1 -1
- package/screenshot-page/assets/{B7u12-Sf0HF7g4wI.js → BUO6zT3gqK0uOOa-.js} +1 -1
- package/screenshot-page/assets/{5TxlmdZxlCDkawVW.js → BWtLNVUXjY6EBdEt.js} +1 -1
- package/screenshot-page/assets/BZpFWPd0PR1kPT-A.js +1 -0
- package/screenshot-page/assets/BaCs7lUeZ7NidSkP.js +1 -0
- package/screenshot-page/assets/Bf9AN5sYHaxae0vV.js +586 -0
- package/screenshot-page/assets/Bh2PQ0zsoGtMKWp1.js +39 -0
- package/screenshot-page/assets/BkhZQsVlVHOiKGTJ.js +1 -0
- package/screenshot-page/assets/BnPHZ_1rjv6kQgsL.js +1 -0
- package/screenshot-page/assets/{DNoZea7QMO9zB6D5.js → BuzI4z8RJGOw8BZD.js} +1 -1
- package/screenshot-page/assets/Bzf_upccQ2ho6mX0.js +13 -0
- package/screenshot-page/assets/{CM9cBiCjJIY64PWg.js → C0AbuMHcIS9oy4XL.js} +1 -1
- package/screenshot-page/assets/{Csjis_Fk8q4mSqdp.js → C4v6Ljs6kwQJu06t.js} +2 -2
- package/screenshot-page/assets/C7YRL2bVWHPIwzn_.js +1 -0
- package/screenshot-page/assets/{DqXO_Zw1Cp7rAQ04.js → C7mXat-6esc1AmRD.js} +2 -2
- package/screenshot-page/assets/{D6WTzLygjgK85siu.js → CFl15-2FAF9f3V7L.js} +2 -2
- package/screenshot-page/assets/CImp91jfSuqX0Wz-.js +1 -0
- package/screenshot-page/assets/{BMf827t1Ul65MHd5.js → CQukCzhuewMuFOlO.js} +1 -1
- package/screenshot-page/assets/{CaiPDssAQqXac5AG.js → CXmrXx6MZ5ApF3co.js} +1 -1
- package/screenshot-page/assets/CZq2dMHs2MHHyyBl.js +1 -0
- package/screenshot-page/assets/Cv-YUArreXqhafcU.js +2 -0
- package/screenshot-page/assets/{DgtqX4DiBgkepVZZ.js → Cx1kZ2u_8JFV2Q8D.js} +1 -1
- package/screenshot-page/assets/D23_69pojBfIh4nV.js +5 -0
- package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +1 -0
- package/screenshot-page/assets/{BYQZ8o8k3-MDoNat.js → D6Yv5cc1JE7DGd6j.js} +1 -1
- package/screenshot-page/assets/D8QsCbSaWCLAYYso.js +1 -0
- package/screenshot-page/assets/{F6yLCIlSWZ1lAUEp.js → DC_Hdwa9KL7xKU8u.js} +2 -2
- package/screenshot-page/assets/DHtL9Iawmr2Uo5VV.js +2 -0
- package/screenshot-page/assets/{Cfs_rQCXBMVhJgat.js → DKWRl8rs3K9jBYtr.js} +1 -1
- package/screenshot-page/assets/DMhOGCTy8V0N14gY.js +1 -0
- package/screenshot-page/assets/{C6vseMcEu3To1U6k.js → DNYWB6WNZTquqQ9v.js} +3 -3
- package/screenshot-page/assets/{Bwk0ScujWaYYqx5G.js → DegZKTNqt1LRnSxY.js} +1 -1
- package/screenshot-page/assets/{tPEJNcr51GaPfk3O.js → Dhh1xqujbhLa8WFd.js} +1 -1
- package/screenshot-page/assets/{CNFMt4XhKy4tlsUn.js → Dkr-6Z1RJsAp9Xrv.js} +1 -1
- package/screenshot-page/assets/DllI8kZZZ5LG0Mjd.js +2 -0
- package/screenshot-page/assets/{t4FRkJl27a0itCt6.js → DrcpGT9FLbDzeLeG.js} +2 -2
- package/screenshot-page/assets/{D1TqM0Bt65K6svMS.js → FjOiReLnknWbsRRr.js} +19 -19
- package/screenshot-page/assets/{C3KvRJ_eXd6xnmlO.js → H_hWDMWfWmjTui7V.js} +1 -1
- package/screenshot-page/assets/LCjlxIt1dn3smVjX.js +1 -0
- package/screenshot-page/assets/{DGB9wBuDWt0bzTNE.js → RutPv2GFWmeBiWvn.js} +1 -1
- package/screenshot-page/assets/{DeyRZ5rprDbRbuf4.js → Tj3B5At0OAN3tDza.js} +1 -1
- package/screenshot-page/assets/{CpZHZoz3xpJMDWI0.js → TwKKik-YQENv52LX.js} +1 -1
- package/screenshot-page/assets/XiUItCqTNNEApgfa.js +2 -0
- package/screenshot-page/assets/XrFpPrRqQNE9AAwH.js +1 -0
- package/screenshot-page/assets/mBuOPJeUPXlKwfPZ.js +48 -0
- package/screenshot-page/assets/qFyplGXRu7IepHio.js +1 -0
- package/screenshot-page/assets/zSnM7GhGzLu1MM_u.js +3 -0
- package/screenshot-page/assets/{DtihumgXQ7ETaN0A.js → zvxBjll3jnL0-vNn.js} +2 -2
- package/screenshot-page/index.html +11 -11
- package/types/scripting-api.json +9329 -9329
- package/types/scripting.d.ts +24 -18
- package/assets/Del35nO_1HyjItI0.js +0 -199
- package/assets/LLdkCOYvtc1-vOsy.js +0 -14
- package/screenshot-page/assets/2XWoSsrRz2kognCK.js +0 -1
- package/screenshot-page/assets/BCOjWc-VhkuVoCVf.js +0 -1
- package/screenshot-page/assets/BqQ2A9WL6mcRxbSt.js +0 -2
- package/screenshot-page/assets/Bw4kRw8JKyNRlLE2.js +0 -1
- package/screenshot-page/assets/BwF-LAYFu91KqvJ8.js +0 -2
- package/screenshot-page/assets/ByehV0cOs5aIySS-.js +0 -13
- package/screenshot-page/assets/C0F9BL11dkgzjp7Y.js +0 -1
- package/screenshot-page/assets/C3QIYFX-vF_1DVmi.js +0 -586
- package/screenshot-page/assets/CafJ2T5GCjkumgLh.js +0 -1
- package/screenshot-page/assets/CijzqW2bsxOQdDxl.js +0 -2
- package/screenshot-page/assets/D5kEl0N4l6MzdmTG.js +0 -1
- package/screenshot-page/assets/D6CzedWHXTesD55R.js +0 -1
- package/screenshot-page/assets/D7e00cCBTtcIRmjV.js +0 -1
- package/screenshot-page/assets/DTrnAtpccj55fGg5.js +0 -1
- package/screenshot-page/assets/DZ2zDgzt-mnhg3Kd.js +0 -1
- package/screenshot-page/assets/DaVBDkeZxbXnuyGz.js +0 -42
- package/screenshot-page/assets/DgNbqKuVd-Q170VZ.js +0 -2
- package/screenshot-page/assets/Dv-4mfeFKIoD5jaY.js +0 -3
- package/screenshot-page/assets/HZAIE0lHXXFqlb2v.js +0 -1
- package/screenshot-page/assets/Lr2MYBmoCKMLBl_6.js +0 -5
- package/screenshot-page/assets/O-S3tcMip6iXUjQF.js +0 -1
- package/screenshot-page/assets/eV_6j-vFozPgfcjz.js +0 -1
- package/screenshot-page/assets/it1wnIFQtbJ4Dm8N.js +0 -1
- package/screenshot-page/assets/mCyh2440vZi8s1uY.js +0 -39
|
@@ -1,14 +1,14 @@
|
|
|
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.20
|
|
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 { p as e, tt as t } from "./
|
|
8
|
-
import { d as n, en as s, f as r, vt as o } from "./
|
|
9
|
-
import {
|
|
10
|
-
import { $
|
|
11
|
-
import { a as K, i as
|
|
7
|
+
import { p as e, tt as t } from "./CyOyY32LLW-Pj_L7.js";
|
|
8
|
+
import { d as n, en as s, f as r, vt as o } from "./C9aV1SF8uCWIB4zU.js";
|
|
9
|
+
import { u as a } from "./CrRJqUPbvvhnp4p4.js";
|
|
10
|
+
import { $ as l, Ba as i, Ca as d, Cn as u, Da as c, Dr as f, Fn as m, G as p, Jr as h, Kn as g, La as w, M as v, Mi as F, Qa as b, Rn as y, Ua as I, Xi as x, Yr as A, ba as C, ct as E, g as S, hi as P, hn as k, ht as M, it as T, ja as R, k as O, kt as N, l as $, na as L, qr as _, s as D, si as V, ta as U, ua as H, vr as B, w as j, xi as z, ya as G, zi as q } from "./DTXRsv2Ww7WbIwCb.js";
|
|
11
|
+
import { a as K, i as Q, n as J, o as W, r as X } from "./C9eaFlFi_4GmymzP.js";
|
|
12
12
|
var Y = [
|
|
13
13
|
"Jan",
|
|
14
14
|
"Feb",
|
|
@@ -61,24 +61,24 @@ var Y = [
|
|
|
61
61
|
default: return null;
|
|
62
62
|
}
|
|
63
63
|
}, te = (e, t) => {
|
|
64
|
-
const n = e.fields ?? [], s =
|
|
65
|
-
if (!n.some(
|
|
66
|
-
const r =
|
|
64
|
+
const n = e.fields ?? [], s = L(e.records, n.length);
|
|
65
|
+
if (!n.some(d)) return s;
|
|
66
|
+
const r = L(e.items, n.length), o = e.recordCount ?? 0, a = s.slice();
|
|
67
67
|
for (let e = 0; e < n.length; e++) {
|
|
68
68
|
const l = n[e];
|
|
69
|
-
if (!
|
|
70
|
-
const i = l.group,
|
|
71
|
-
for (let e = 0; e <
|
|
72
|
-
const n = i.range ? ee(i.range, i.items.length,
|
|
73
|
-
|
|
69
|
+
if (!d(l)) continue;
|
|
70
|
+
const i = l.group, u = s[i.base] ?? [], c = r[i.base] ?? [], f = new Int32Array(c.length);
|
|
71
|
+
for (let e = 0; e < c.length; e++) {
|
|
72
|
+
const n = i.range ? ee(i.range, i.items.length, j(c[e]), t) : i.discrete?.[e] ?? null;
|
|
73
|
+
f[e] = n ?? -1;
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const m = new Array(o);
|
|
76
76
|
for (let e = 0; e < o; e++) {
|
|
77
|
-
const t =
|
|
77
|
+
const t = f[u[e]];
|
|
78
78
|
if (void 0 === t || t < 0) return null;
|
|
79
|
-
|
|
79
|
+
m[e] = t;
|
|
80
80
|
}
|
|
81
|
-
a[e] =
|
|
81
|
+
a[e] = m;
|
|
82
82
|
}
|
|
83
83
|
return a;
|
|
84
84
|
}, ne = (e) => String(Number(e.toPrecision(12))), se = (e, t) => {
|
|
@@ -231,10 +231,10 @@ var Y = [
|
|
|
231
231
|
if (t.includes(e)) return !1;
|
|
232
232
|
const i = [];
|
|
233
233
|
oe(n[e].formula, (e) => {
|
|
234
|
-
const t = n.findIndex((t) =>
|
|
234
|
+
const t = n.findIndex((t) => b(t.name, e));
|
|
235
235
|
return t >= 0 && i.push(t), t >= 0 ? "" : null;
|
|
236
236
|
});
|
|
237
|
-
for (const r of i) if (
|
|
237
|
+
for (const r of i) if (q(n[r])) {
|
|
238
238
|
if (!l(r, [...t, e])) return !1;
|
|
239
239
|
} else s.includes(r) || s.push(r);
|
|
240
240
|
return o.set(e, r.length), a.set(e, n[e].formula), r.push({
|
|
@@ -242,7 +242,7 @@ var Y = [
|
|
|
242
242
|
expression: ""
|
|
243
243
|
}), !0;
|
|
244
244
|
}, i = [];
|
|
245
|
-
for (const [t, s] of (e.dataFields ?? []).entries()) if (
|
|
245
|
+
for (const [t, s] of (e.dataFields ?? []).entries()) if (q(n[s.field])) {
|
|
246
246
|
if (!l(s.field, [])) return null;
|
|
247
247
|
i.push({
|
|
248
248
|
data: t,
|
|
@@ -251,8 +251,8 @@ var Y = [
|
|
|
251
251
|
}
|
|
252
252
|
const d = (e, t) => {
|
|
253
253
|
if (null !== t) return null;
|
|
254
|
-
const r = n.findIndex((t) =>
|
|
255
|
-
return r >= 0 ? ae(
|
|
254
|
+
const r = n.findIndex((t) => b(t.name, e));
|
|
255
|
+
return r >= 0 ? ae(q(n[a = r]) ? s.length + o.get(a) : s.indexOf(a)) : null;
|
|
256
256
|
var a;
|
|
257
257
|
};
|
|
258
258
|
for (const e of r) {
|
|
@@ -343,75 +343,75 @@ var Y = [
|
|
|
343
343
|
percent: 13,
|
|
344
344
|
percentDiff: 14
|
|
345
345
|
}, Ie = (e, t, n, s) => {
|
|
346
|
-
const r =
|
|
346
|
+
const r = m.peek(), o = e.fields, a = t.fields;
|
|
347
347
|
if (!r || !o || !a || o.length !== a.length) return null;
|
|
348
|
-
if (
|
|
348
|
+
if (g(e)) return {
|
|
349
349
|
cells: [],
|
|
350
|
-
...
|
|
350
|
+
...l,
|
|
351
351
|
rowPageCount: 0,
|
|
352
352
|
columnPageCount: 0,
|
|
353
|
-
header:
|
|
353
|
+
header: G(e),
|
|
354
354
|
rowLines: [],
|
|
355
355
|
columnLines: [],
|
|
356
356
|
viewValues: [],
|
|
357
357
|
firstKey: null,
|
|
358
358
|
...s?.roles ? { roles: /* @__PURE__ */ new Map() } : {}
|
|
359
359
|
};
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
362
|
-
const
|
|
363
|
-
if (
|
|
364
|
-
const
|
|
365
|
-
if (!
|
|
360
|
+
const i = $(e, a), u = i ? s?.filters : null;
|
|
361
|
+
if (i && !u) return null;
|
|
362
|
+
const c = o.some((e) => e.items?.some((e) => e.calculated));
|
|
363
|
+
if (c && !u?.calculatedRecords) return null;
|
|
364
|
+
const f = de(e, t);
|
|
365
|
+
if (!f || f.measures.length > 0 && !u?.fieldValues) return null;
|
|
366
366
|
if ((e.dataFields ?? []).some((e) => void 0 === ye[e.showDataAs ?? "normal"] || void 0 === pe[e.subtotal ?? "sum"])) return null;
|
|
367
|
-
const
|
|
368
|
-
if (!
|
|
369
|
-
const { items:
|
|
367
|
+
const p = xe(e, t, n, u?.calculatedRecords, f.operands);
|
|
368
|
+
if (!p) return null;
|
|
369
|
+
const { items: h, records: w, values: v, n: b } = p, y = (e) => !!e && (!e.noRecords || d(e)), I = e.form ?? "compact", x = (e) => {
|
|
370
370
|
const t = [];
|
|
371
371
|
for (const n of e ?? []) {
|
|
372
372
|
if (n === ce) {
|
|
373
373
|
t.push({
|
|
374
374
|
field: n,
|
|
375
|
-
form:
|
|
375
|
+
form: I
|
|
376
376
|
});
|
|
377
377
|
continue;
|
|
378
378
|
}
|
|
379
379
|
const e = o[n], s = e?.subtotals;
|
|
380
|
-
if (!e || !
|
|
381
|
-
if (
|
|
380
|
+
if (!e || !y(a[n])) return null;
|
|
381
|
+
if (c && s && s.some((e) => "default" !== e)) return null;
|
|
382
382
|
t.push({
|
|
383
383
|
field: n,
|
|
384
384
|
form: e.form ?? "compact"
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
return t;
|
|
388
|
-
},
|
|
389
|
-
if (!
|
|
390
|
-
const
|
|
391
|
-
return
|
|
388
|
+
}, A = x(e.rowFields), C = x(e.columnFields), E = e.pageFields ?? [];
|
|
389
|
+
if (!A || !C || E.some((e) => !y(a[e.field]))) return null;
|
|
390
|
+
const S = F(e, s?.slicerFields);
|
|
391
|
+
return S.pageFields?.some((e) => !y(a[e.field])) ? null : Te(e, t, h, A, C, Se(r, S, h, w, v, A, C, b, u?.keep, u?.records, f.operands.length, u?.fieldValues, !0), n, !0 === s?.roles, "columns" === s?.cellOrder);
|
|
392
392
|
}, xe = (e, t, n, s, r = []) => {
|
|
393
|
-
const o = t.fields?.length ?? 0, a =
|
|
393
|
+
const o = t.fields?.length ?? 0, a = A(t);
|
|
394
394
|
if (!t.records) return null;
|
|
395
395
|
const l = te(t, n.isDate1904());
|
|
396
396
|
if (!l) return null;
|
|
397
|
-
const i = !0 === t.fields?.some(
|
|
398
|
-
const s = !t.fields?.[e]?.noRecords, r = s ?
|
|
399
|
-
for (let e = 0; e <
|
|
400
|
-
for (let e = 0; e <
|
|
397
|
+
const i = !0 === t.fields?.some(d), u = i ? L(t.items, o) : a, c = i ? L(t.records, o) : l, f = t.recordCount ?? 0, m = s?.count ?? 0, p = f + m, h = (e, n) => {
|
|
398
|
+
const s = !t.fields?.[e]?.noRecords, r = s ? c[e] : l[e] ?? [], o = s ? u[e] : a[e], i = new Array(p);
|
|
399
|
+
for (let e = 0; e < f; e++) i[e] = j(o[r[e]]);
|
|
400
|
+
for (let e = 0; e < m; e++) i[f + e] = n?.[e] ?? null;
|
|
401
401
|
return i;
|
|
402
|
-
},
|
|
402
|
+
}, g = [...(e.dataFields ?? []).map((e, t) => h(e.field, s?.values[t])), ...r.map((e) => h(e))];
|
|
403
403
|
return {
|
|
404
404
|
items: a,
|
|
405
405
|
records: s ? l.map((e, t) => e.concat(s.ids[t] ?? [])) : l,
|
|
406
|
-
values:
|
|
407
|
-
n:
|
|
406
|
+
values: g,
|
|
407
|
+
n: p
|
|
408
408
|
};
|
|
409
409
|
}, Ae = async (e, t, n, s, r, o, a, l, i) => {
|
|
410
|
-
const d =
|
|
410
|
+
const d = m.peek(), u = e.dataFields?.[r];
|
|
411
411
|
if (!d || !e.fields || !u || void 0 === pe[u.subtotal ?? "sum"]) return null;
|
|
412
|
-
const c = [e.rowFields, e.columnFields].map((e) => (e ?? []).filter((e) => e !== ce)), f = c.findIndex((e) => e.includes(s)),
|
|
413
|
-
if (!
|
|
414
|
-
const
|
|
412
|
+
const c = [e.rowFields, e.columnFields].map((e) => (e ?? []).filter((e) => e !== ce)), f = c.findIndex((e) => e.includes(s)), p = c[f];
|
|
413
|
+
if (!p) return null;
|
|
414
|
+
const h = p.slice(0, p.indexOf(s)), g = e.fields.map((e) => {
|
|
415
415
|
const { blankRowAfter: t, showItemsWithNoData: n, sort: s, ...r } = e;
|
|
416
416
|
return {
|
|
417
417
|
...r,
|
|
@@ -421,46 +421,46 @@ var Y = [
|
|
|
421
421
|
return n;
|
|
422
422
|
})
|
|
423
423
|
};
|
|
424
|
-
}), { columnGrandTotals:
|
|
425
|
-
...
|
|
426
|
-
fields:
|
|
427
|
-
rowFields: [...
|
|
424
|
+
}), { columnGrandTotals: w, ...v } = e, { showDataAs: F, ...b } = u, y = {
|
|
425
|
+
...v,
|
|
426
|
+
fields: g,
|
|
427
|
+
rowFields: [...h, s],
|
|
428
428
|
columnFields: [],
|
|
429
|
-
dataFields: [
|
|
429
|
+
dataFields: [b],
|
|
430
430
|
rowGrandTotals: !1
|
|
431
|
-
},
|
|
431
|
+
}, I = l ? {
|
|
432
432
|
...l,
|
|
433
433
|
values: [l.values[r] ?? []]
|
|
434
|
-
} : l,
|
|
435
|
-
if (!
|
|
436
|
-
const
|
|
437
|
-
if (!
|
|
438
|
-
const { items:
|
|
434
|
+
} : l, x = de(y, t);
|
|
435
|
+
if (!x || x.measures.length > 0 && !i) return null;
|
|
436
|
+
const A = xe(y, t, n, I, x.operands);
|
|
437
|
+
if (!A) return null;
|
|
438
|
+
const { items: C, records: E, values: S, n: P } = A, k = y.rowFields.map((e) => ({
|
|
439
439
|
field: e,
|
|
440
440
|
form: "compact"
|
|
441
441
|
}));
|
|
442
|
-
let
|
|
442
|
+
let M;
|
|
443
443
|
if (a) {
|
|
444
444
|
const e = 0 === f ? 1 : 2;
|
|
445
|
-
|
|
446
|
-
for (let t = 0; t <
|
|
445
|
+
M = new Uint8Array(P);
|
|
446
|
+
for (let t = 0; t < P; t++) {
|
|
447
447
|
const n = a[t];
|
|
448
|
-
|
|
448
|
+
M[t] = (n & e ? 1 : 0) | (3 === n ? 2 : 0);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
const
|
|
452
|
-
return
|
|
453
|
-
if (0 !== e.kind || e.path.length !==
|
|
454
|
-
const n =
|
|
451
|
+
const T = x.measures.length > 0 ? await Ee(d, x, y, C, E, S, k, [], P, o, M, i) : void 0, R = Se(d, y, C, E, S, k, [], P, o, M, x.operands.length, T), O = (t, n) => e.fields[t].items?.[n]?.item ?? n, N = /* @__PURE__ */ new Map(), $ = R.columns.length;
|
|
452
|
+
return R.rows.forEach((e, t) => {
|
|
453
|
+
if (0 !== e.kind || e.path.length !== h.length + 1) return;
|
|
454
|
+
const n = h.map((t, n) => O(t, e.path[n])).join(",");
|
|
455
455
|
let r = N.get(n);
|
|
456
456
|
r || N.set(n, r = {
|
|
457
457
|
ids: [],
|
|
458
458
|
totals: []
|
|
459
|
-
}), r.ids.push(
|
|
459
|
+
}), r.ids.push(O(s, e.path[h.length])), r.totals.push(R.values[t * $]);
|
|
460
460
|
}), {
|
|
461
|
-
outer:
|
|
461
|
+
outer: h,
|
|
462
462
|
groups: N,
|
|
463
|
-
records:
|
|
463
|
+
records: E
|
|
464
464
|
};
|
|
465
465
|
}, Ce = (e, t, n) => {
|
|
466
466
|
const s = new Uint32Array(t).fill(fe), r = new Uint8Array(t), o = e.items;
|
|
@@ -485,7 +485,7 @@ var Y = [
|
|
|
485
485
|
t.operands.forEach((t, n) => {
|
|
486
486
|
const o = s.values(r + n);
|
|
487
487
|
try {
|
|
488
|
-
const t =
|
|
488
|
+
const t = Q(e.wasm_memory().buffer, o, p), n = new Array(h);
|
|
489
489
|
for (let e = 0; e < h; e++) n[e] = t(e);
|
|
490
490
|
g.push(n);
|
|
491
491
|
} finally {
|
|
@@ -522,7 +522,7 @@ var Y = [
|
|
|
522
522
|
try {
|
|
523
523
|
const n = ke(v.row_lines(), v.row_stride()), s = ke(v.column_lines(), v.column_stride()), r = v.states(), a = v.values();
|
|
524
524
|
try {
|
|
525
|
-
const i =
|
|
525
|
+
const i = Q(e.wasm_memory().buffer, a, h), d = new Array(r.length);
|
|
526
526
|
for (let e = 0; e < r.length; e++) d[e] = 0 === r[e] ? i(e) : null;
|
|
527
527
|
return {
|
|
528
528
|
rows: n,
|
|
@@ -649,50 +649,51 @@ var Y = [
|
|
|
649
649
|
} else s.type = 1 === e.kind ? null !== e.function ? t[e.function] : "default" : 2 === e.kind ? "grand" : "blank", s.items = 2 === e.kind ? [0] : e.path.slice();
|
|
650
650
|
return null !== e.data && e.data > 0 && (s.dataField = e.data), s;
|
|
651
651
|
});
|
|
652
|
-
}, Te = (e, t, n, r, o, l, d,
|
|
653
|
-
const
|
|
654
|
-
if (e === ce) return
|
|
655
|
-
const s =
|
|
652
|
+
}, Te = (e, t, n, r, o, l, d, f, m) => {
|
|
653
|
+
const p = e.fields, h = t.fields, g = e.dataFields ?? [], w = (t) => t === ce ? e.valuesCaption ?? "Values" : p[t].name ?? h[t].name, v = (e, t) => {
|
|
654
|
+
if (e === ce) return g[t]?.name ?? "";
|
|
655
|
+
const s = p[e].items?.[t];
|
|
656
656
|
if (void 0 !== s?.name) return s.name;
|
|
657
|
-
const r =
|
|
658
|
-
return null === r ?
|
|
657
|
+
const r = j(n[e][s?.item ?? t]);
|
|
658
|
+
return null === r ? x : r;
|
|
659
659
|
}, F = (e, t) => {
|
|
660
660
|
const n = v(e, t);
|
|
661
661
|
if ("number" == typeof n) {
|
|
662
|
-
const
|
|
663
|
-
return s(d,
|
|
662
|
+
const o = p[e].items?.[t]?.item ?? t, a = void 0 === (p[e].numberFormat ?? h[e].numberFormat) && I(h[e], o);
|
|
663
|
+
return s(d, a ? i(P(h[e], o), d) : i(p[r = e].numberFormat ?? h[r].numberFormat, d), n);
|
|
664
664
|
}
|
|
665
|
+
var r;
|
|
665
666
|
return a.isError(n) ? n.getLabel() : "boolean" == typeof n ? n ? "TRUE" : "FALSE" : String(n);
|
|
666
667
|
}, b = (e) => {
|
|
667
668
|
if (void 0 !== e.item) return v(e.field, e.item);
|
|
668
|
-
const t =
|
|
669
|
+
const t = p[e.field].items ?? [];
|
|
669
670
|
if (!t.some((e) => e.hidden)) return "(All)";
|
|
670
|
-
const n = t.flatMap((e, t) =>
|
|
671
|
+
const n = t.flatMap((e, t) => u(e) && !e.hidden ? [t] : []);
|
|
671
672
|
return 1 === n.length ? v(e.field, n[0]) : "(Multiple Items)";
|
|
672
|
-
},
|
|
673
|
+
}, y = e.grandTotalCaption ?? "Grand Total", A = f ? /* @__PURE__ */ new Map() : null, C = (e, t) => e === ce ? {
|
|
673
674
|
kind: "dataCaption",
|
|
674
675
|
data: t
|
|
675
676
|
} : {
|
|
676
677
|
kind: "item",
|
|
677
678
|
field: e,
|
|
678
679
|
rank: t
|
|
679
|
-
},
|
|
680
|
+
}, E = (e) => e === ce ? null : {
|
|
680
681
|
kind: "fieldCaption",
|
|
681
682
|
field: e
|
|
682
|
-
},
|
|
683
|
+
}, S = (e, t) => 2 === e.kind && t === y ? { kind: "grandTotal" } : null, k = 0 === r.length && 0 === o.length && 0 === g.length, M = k ? {
|
|
683
684
|
firstHeaderRow: 0,
|
|
684
685
|
firstDataRow: 0,
|
|
685
686
|
firstDataCol: 0
|
|
686
|
-
} :
|
|
687
|
+
} : G(e), T = k ? [] : Me(l.rows, l.functions), R = k ? [] : Me(l.columns, l.functions), O = c({
|
|
687
688
|
...e,
|
|
688
|
-
header:
|
|
689
|
-
rowLines:
|
|
690
|
-
columnLines:
|
|
691
|
-
}),
|
|
689
|
+
header: M,
|
|
690
|
+
rowLines: T,
|
|
691
|
+
columnLines: R
|
|
692
|
+
}), N = l.columns.length, $ = (e) => "row" === e ? r : o, L = (t) => {
|
|
692
693
|
switch (t.kind) {
|
|
693
694
|
case "pageCaption": {
|
|
694
695
|
const n = e.pageFields[t.page].field;
|
|
695
|
-
return [
|
|
696
|
+
return [w(n), {
|
|
696
697
|
kind: "fieldCaption",
|
|
697
698
|
field: n
|
|
698
699
|
}];
|
|
@@ -704,35 +705,35 @@ var Y = [
|
|
|
704
705
|
page: t.page
|
|
705
706
|
}];
|
|
706
707
|
}
|
|
707
|
-
case "dataCaption": return [
|
|
708
|
+
case "dataCaption": return [g[t.data]?.name ?? null, {
|
|
708
709
|
kind: "dataCaption",
|
|
709
710
|
data: t.data
|
|
710
711
|
}];
|
|
711
712
|
case "rowHeader": return [r.every((e) => e.field === ce) ? e.valuesCaption ?? "Values" : e.rowHeaderCaption ?? "Row Labels", { kind: "rowHeader" }];
|
|
712
713
|
case "columnHeader": return [e.columnHeaderCaption ?? "Column Labels", { kind: "columnHeader" }];
|
|
713
714
|
case "fieldCaption": {
|
|
714
|
-
const e =
|
|
715
|
-
return [
|
|
715
|
+
const e = $(t.axis)[t.level].field;
|
|
716
|
+
return [w(e), E(e)];
|
|
716
717
|
}
|
|
717
718
|
case "label": {
|
|
718
|
-
const e =
|
|
719
|
-
return [v(e, n),
|
|
719
|
+
const e = $(t.axis)[t.level].field, n = t.line.path[t.level];
|
|
720
|
+
return [v(e, n), C(e, n)];
|
|
720
721
|
}
|
|
721
722
|
case "total": {
|
|
722
723
|
const e = ("row" === t.axis ? l.rows : l.columns)[t.line.index], n = ((e, t) => {
|
|
723
|
-
const n = e.findIndex((e) => e.field === ce) >= t.path.length && null !== t.data, s = n ?
|
|
724
|
-
if (2 === t.kind) return n ? `Total ${s}` :
|
|
724
|
+
const n = e.findIndex((e) => e.field === ce) >= t.path.length && null !== t.data, s = n ? g[t.data]?.name ?? "" : "";
|
|
725
|
+
if (2 === t.kind) return n ? `Total ${s}` : y;
|
|
725
726
|
const r = t.path.length - 1, o = e[r].field, a = F(o, t.path[r]);
|
|
726
727
|
if (null !== t.function) {
|
|
727
728
|
const e = we[l.functions[t.function]];
|
|
728
|
-
return (n || t.across) && null !== t.data ? `${a} ${e} of ${g
|
|
729
|
+
return (n || t.across) && null !== t.data ? `${a} ${e} of ${w(g[t.data].field)}` : `${a} ${e}`;
|
|
729
730
|
}
|
|
730
|
-
return
|
|
731
|
-
})(
|
|
732
|
-
return [n,
|
|
731
|
+
return p[o]?.subtotalCaption ?? (n ? `${a} ${s}` : `${a} Total`);
|
|
732
|
+
})($(t.axis), e);
|
|
733
|
+
return [n, S(e, n)];
|
|
733
734
|
}
|
|
734
735
|
case "value": {
|
|
735
|
-
const n = t.row.index *
|
|
736
|
+
const n = t.row.index * N + t.column.index, s = l.states[n];
|
|
736
737
|
let r = null;
|
|
737
738
|
return 0 === s ? (r = l.values[n], e.showError && a.isError(r) && (r = e.errorCaption ?? "")) : 1 === s && (r = !1 === e.showEmpty ? 0 : ((e) => {
|
|
738
739
|
if (void 0 === e) return null;
|
|
@@ -743,35 +744,35 @@ var Y = [
|
|
|
743
744
|
})(e.emptyCaption)), [r, null];
|
|
744
745
|
}
|
|
745
746
|
}
|
|
746
|
-
},
|
|
747
|
-
const n =
|
|
747
|
+
}, D = new U.Builder(), V = O.top, H = O.pages.reduce((e, t) => Math.max(e, t.column + 2), 0), z = (e, t) => {
|
|
748
|
+
const n = _(O, e, t);
|
|
748
749
|
if (!n) return;
|
|
749
|
-
const [s, r] =
|
|
750
|
+
const [s, r] = L(n);
|
|
750
751
|
((e, t, n) => {
|
|
751
|
-
|
|
752
|
-
})(e -
|
|
752
|
+
A && n && A.set(e + "," + t, n);
|
|
753
|
+
})(e - V, t, r), null !== s && (m ? D.pushAt(t, e - V, s) : D.pushAt(e - V, t, s));
|
|
753
754
|
};
|
|
754
|
-
if (
|
|
755
|
-
const e = Math.max(
|
|
756
|
-
for (let t = 0; t < e; t++) for (let e = 0; e <
|
|
757
|
-
} else for (let e = 0; e <
|
|
758
|
-
const t = e <
|
|
759
|
-
for (let n = 0; n < t; n++)
|
|
755
|
+
if (m) {
|
|
756
|
+
const e = Math.max(H, O.columns.length);
|
|
757
|
+
for (let t = 0; t < e; t++) for (let e = 0; e < O.rows.length; e++) t < (e < V ? H : O.columns.length) && z(e, t);
|
|
758
|
+
} else for (let e = 0; e < O.rows.length; e++) {
|
|
759
|
+
const t = e < V ? H : O.columns.length;
|
|
760
|
+
for (let n = 0; n < t; n++) z(e, n);
|
|
760
761
|
}
|
|
761
|
-
if (
|
|
762
|
-
const t =
|
|
762
|
+
if (k) {
|
|
763
|
+
const t = B(e);
|
|
763
764
|
return {
|
|
764
|
-
cells:
|
|
765
|
+
cells: D.build()?.tuples ?? [],
|
|
765
766
|
rows: 1,
|
|
766
767
|
columns: 1,
|
|
767
768
|
rowPageCount: t.rows,
|
|
768
769
|
columnPageCount: t.columns,
|
|
769
|
-
header:
|
|
770
|
+
header: M,
|
|
770
771
|
rowLines: [],
|
|
771
772
|
columnLines: [],
|
|
772
773
|
viewValues: [],
|
|
773
774
|
firstKey: null,
|
|
774
|
-
...
|
|
775
|
+
...A ? { roles: A } : {}
|
|
775
776
|
};
|
|
776
777
|
}
|
|
777
778
|
const q = (e, t) => {
|
|
@@ -779,168 +780,168 @@ var Y = [
|
|
|
779
780
|
return e.forEach((e, s) => {
|
|
780
781
|
e.field !== ce && n.push(s < t.path.length ? t.path[s] : -1);
|
|
781
782
|
}), n;
|
|
782
|
-
},
|
|
783
|
+
}, Q = (e, t) => K(e.data ?? t.data ?? 0, [...q(r, e), ...q(o, t)]), [J] = l.rows, [W] = l.columns, X = J && W && 3 !== J.kind && 3 !== W.kind ? Q(J, W) : null, Y = [], Z = (e) => 1 === e.kind && null !== e.function;
|
|
783
784
|
l.rows.forEach((t, n) => {
|
|
784
785
|
3 === t.kind || Z(t) || (q(r, t), l.columns.forEach((s, r) => {
|
|
785
|
-
const o = l.states[n *
|
|
786
|
+
const o = l.states[n * N + r];
|
|
786
787
|
if (3 === s.kind || Z(s) || 0 !== o && 1 !== o) return;
|
|
787
|
-
let i = 0 === o ? l.values[n *
|
|
788
|
-
e.showError && a.isError(i) && (i = e.errorCaption || 0), Y.push([
|
|
788
|
+
let i = 0 === o ? l.values[n * N + r] : 0;
|
|
789
|
+
e.showError && a.isError(i) && (i = e.errorCaption || 0), Y.push([Q(t, s), i]);
|
|
789
790
|
}));
|
|
790
791
|
});
|
|
791
|
-
const ee =
|
|
792
|
+
const ee = B(e);
|
|
792
793
|
return {
|
|
793
|
-
cells:
|
|
794
|
-
rows:
|
|
795
|
-
columns:
|
|
794
|
+
cells: D.build()?.tuples ?? [],
|
|
795
|
+
rows: O.rows.length - V,
|
|
796
|
+
columns: O.columns.length,
|
|
796
797
|
rowPageCount: ee.rows,
|
|
797
798
|
columnPageCount: ee.columns,
|
|
798
|
-
header:
|
|
799
|
-
rowLines:
|
|
800
|
-
columnLines:
|
|
799
|
+
header: M,
|
|
800
|
+
rowLines: T,
|
|
801
|
+
columnLines: R,
|
|
801
802
|
viewValues: Y,
|
|
802
803
|
firstKey: X,
|
|
803
|
-
...
|
|
804
|
+
...A ? { roles: A } : {}
|
|
804
805
|
};
|
|
805
|
-
}, Re = (e, t, n, r, o = !1, l,
|
|
806
|
-
const
|
|
806
|
+
}, Re = (e, t, n, r, o = !1, l, u) => {
|
|
807
|
+
const c = Ie(e, t, r, {
|
|
807
808
|
filters: l,
|
|
808
|
-
slicerFields:
|
|
809
|
+
slicerFields: u
|
|
809
810
|
});
|
|
810
|
-
if (!
|
|
811
|
-
const
|
|
812
|
-
if (
|
|
813
|
-
const
|
|
814
|
-
rowStart:
|
|
815
|
-
colStart:
|
|
816
|
-
rowEnd:
|
|
817
|
-
colEnd:
|
|
818
|
-
},
|
|
819
|
-
const n =
|
|
820
|
-
const n =
|
|
821
|
-
var
|
|
822
|
-
const
|
|
811
|
+
if (!c) return null;
|
|
812
|
+
const f = c.rowPageCount > 0 ? c.rowPageCount + 1 : 0, m = c.rowPageCount > 0 ? 3 * c.columnPageCount - 1 : 0, { rowStart: p, colStart: h } = n;
|
|
813
|
+
if (p - f < 0) return null;
|
|
814
|
+
const g = {
|
|
815
|
+
rowStart: p - f,
|
|
816
|
+
colStart: h,
|
|
817
|
+
rowEnd: p + c.rows - 1,
|
|
818
|
+
colEnd: h + Math.max(c.columns, m) - 1
|
|
819
|
+
}, w = e.fields, v = t.fields, F = A(t), b = (e, t) => {
|
|
820
|
+
const n = w[e], o = n.numberFormat ?? v[e].numberFormat, l = i(o, r), u = d(v[e]), c = F[e], f = (n.items ?? []).filter((e) => void 0 !== e.item && void 0 === e.type), m = f.length > 0 ? f : c.map((e, t) => ({ item: t })), p = m.map((t) => {
|
|
821
|
+
const n = j(c[t.item]), d = I(v[e], t.item), f = null === n ? "(blank)" : "number" == typeof n ? s(r, d ? (m = t.item, void 0 === o ? i(P(v[e], m), r) : l) : l, n) : a.isError(n) ? n.getLabel() : "boolean" == typeof n ? n ? "TRUE" : "FALSE" : String(n);
|
|
822
|
+
var m;
|
|
823
|
+
const p = u && d ? f : n;
|
|
823
824
|
return void 0 !== t.name ? {
|
|
824
|
-
value:
|
|
825
|
-
text:
|
|
825
|
+
value: p,
|
|
826
|
+
text: f,
|
|
826
827
|
name: t.name
|
|
827
828
|
} : {
|
|
828
|
-
value:
|
|
829
|
-
text:
|
|
829
|
+
value: p,
|
|
830
|
+
text: f
|
|
830
831
|
};
|
|
831
|
-
}),
|
|
832
|
-
name: n.name ??
|
|
833
|
-
items:
|
|
832
|
+
}), h = {
|
|
833
|
+
name: n.name ?? v[e].name,
|
|
834
|
+
items: p
|
|
834
835
|
};
|
|
835
836
|
if (t) {
|
|
836
837
|
const e = void 0 !== t.item ? (n.items ?? [])[t.item]?.item : void 0;
|
|
837
|
-
|
|
838
|
+
h.page = void 0 !== e ? m.findIndex((t) => t.item === e) : -1;
|
|
838
839
|
}
|
|
839
|
-
return
|
|
840
|
-
},
|
|
840
|
+
return h;
|
|
841
|
+
}, y = (e) => (e ?? []).filter((e) => -2 !== e);
|
|
841
842
|
return {
|
|
842
843
|
view: {
|
|
843
|
-
range:
|
|
844
|
+
range: g,
|
|
844
845
|
dataFields: (e.dataFields ?? []).map((e) => ({
|
|
845
846
|
name: e.name,
|
|
846
|
-
sourceName:
|
|
847
|
+
sourceName: v[e.field].name
|
|
847
848
|
})),
|
|
848
849
|
fields: [
|
|
849
|
-
...
|
|
850
|
-
...
|
|
851
|
-
...(e.pageFields ?? []).map((e) =>
|
|
850
|
+
...y(e.rowFields).map((e) => b(e)),
|
|
851
|
+
...y(e.columnFields).map((e) => b(e)),
|
|
852
|
+
...(e.pageFields ?? []).map((e) => b(e.field, e))
|
|
852
853
|
],
|
|
853
|
-
values:
|
|
854
|
+
values: c.viewValues,
|
|
854
855
|
block: {
|
|
855
856
|
anchor: {
|
|
856
|
-
row:
|
|
857
|
-
column:
|
|
857
|
+
row: p,
|
|
858
|
+
column: h
|
|
858
859
|
},
|
|
859
860
|
...o ? { blocked: !0 } : {},
|
|
860
|
-
...null !==
|
|
861
|
+
...null !== c.firstKey ? { first: c.firstKey } : {}
|
|
861
862
|
}
|
|
862
863
|
},
|
|
863
864
|
size: {
|
|
864
|
-
rows:
|
|
865
|
-
columns:
|
|
865
|
+
rows: c.rows,
|
|
866
|
+
columns: c.columns
|
|
866
867
|
}
|
|
867
868
|
};
|
|
868
|
-
},
|
|
869
|
-
const o = /* @__PURE__ */ new Map(), l = (e.filters ?? []).filter((t) =>
|
|
870
|
-
if (0 === l.length && !
|
|
871
|
-
const
|
|
872
|
-
for (const s of l.filter(
|
|
873
|
-
const a = s.field, l =
|
|
869
|
+
}, Oe = async (e, t, n, r) => {
|
|
870
|
+
const o = /* @__PURE__ */ new Map(), l = (e.filters ?? []).filter((t) => H(t) || e.rowFields?.includes(t.field) || e.columnFields?.includes(t.field)), d = e.fields?.some((e) => e.items?.some((e) => e.calculated)), u = e.dataFields?.some((e) => q(t.fields?.[e.field]));
|
|
871
|
+
if (0 === l.length && !d && !u) return { keep: o };
|
|
872
|
+
const c = A(t);
|
|
873
|
+
for (const s of l.filter(H)) {
|
|
874
|
+
const a = s.field, l = c[a];
|
|
874
875
|
if (!l) continue;
|
|
875
|
-
const i =
|
|
876
|
-
for (let e = 0; e < l.length; e++) d[e] = i ? i[e] :
|
|
877
|
-
const
|
|
878
|
-
if (f) for (let e = 0; e <
|
|
879
|
-
else o.set(a,
|
|
876
|
+
const i = C(s.condition) ? Le(e, t, l, a, n) : null, d = new Array(l.length);
|
|
877
|
+
for (let e = 0; e < l.length; e++) d[e] = i ? i[e] : j(l[e]);
|
|
878
|
+
const u = await $e(s.condition, d, n, r), f = o.get(a);
|
|
879
|
+
if (f) for (let e = 0; e < u.length; e++) f[e] &= u[e];
|
|
880
|
+
else o.set(a, u);
|
|
880
881
|
}
|
|
881
|
-
const
|
|
882
|
-
const l = t.fields ?? [],
|
|
883
|
-
if (1 !==
|
|
884
|
-
const
|
|
885
|
-
if (!
|
|
886
|
-
const
|
|
882
|
+
const f = d && r ? await (async (e, t, n, r, o) => {
|
|
883
|
+
const l = t.fields ?? [], d = e.fields ?? [], u = l.flatMap((e, t) => e.calculatedItems?.length ? [t] : []), c = e.dataFields ?? [];
|
|
884
|
+
if (1 !== u.length || c.some((e) => q(l[e.field]) || !ue.has(e.subtotal ?? "sum"))) return null;
|
|
885
|
+
const f = u[0], m = l[f].calculatedItems, p = te(t, n.isDate1904());
|
|
886
|
+
if (!p) return null;
|
|
887
|
+
const h = A(t), g = A({
|
|
887
888
|
...t,
|
|
888
889
|
fields: l.map(({ group: e, ...t }) => t)
|
|
889
|
-
}), w = (e.rowFields ?? []).filter((e) => e >= 0), v = (e.columnFields ?? []).filter((e) => e >= 0), F = w.includes(
|
|
890
|
+
}), w = (e.rowFields ?? []).filter((e) => e >= 0), v = (e.columnFields ?? []).filter((e) => e >= 0), F = w.includes(f) ? w : v.includes(f) ? v : null;
|
|
890
891
|
if (!F) return null;
|
|
891
|
-
const
|
|
892
|
-
const n =
|
|
892
|
+
const y = F.slice(0, F.indexOf(f)), C = [...F.slice(F.indexOf(f) + 1), ...F === w ? v : w], E = [...y, ...C], S = t.recordCount ?? 0, P = (e, t) => {
|
|
893
|
+
const n = d[e]?.items, s = n?.find((e) => e.item === t && void 0 === e.type);
|
|
893
894
|
return !(n && (!s || s.hidden) || o?.get(e) && 0 === o.get(e)[t]);
|
|
894
|
-
},
|
|
895
|
-
const n =
|
|
895
|
+
}, k = (e, t) => {
|
|
896
|
+
const n = d[e.field]?.items;
|
|
896
897
|
if (void 0 !== e.item) return n?.[e.item]?.item === t;
|
|
897
898
|
const s = n?.find((e) => e.item === t && void 0 === e.type);
|
|
898
899
|
return !n || !!s && !s.hidden;
|
|
899
|
-
},
|
|
900
|
-
const o =
|
|
901
|
-
return "number" == typeof o && (l[
|
|
902
|
-
}),
|
|
903
|
-
let t =
|
|
904
|
-
return void 0 === t &&
|
|
900
|
+
}, M = e.pageFields ?? [], T = i(l[f].numberFormat ?? 14, n), R = (e) => h[f].findIndex((t, r) => {
|
|
901
|
+
const o = j(t);
|
|
902
|
+
return "number" == typeof o && (l[f].dates || I(l[f], r)) ? b(s(n, T, o), e) : b(null === o ? x : V(o), e);
|
|
903
|
+
}), O = /* @__PURE__ */ new Map(), N = new Map(m.map((e) => [e.item, e.formula])), $ = (e) => {
|
|
904
|
+
let t = O.get(e);
|
|
905
|
+
return void 0 === t && O.set(e, t = O.size), t;
|
|
905
906
|
};
|
|
906
|
-
for (const e of
|
|
907
|
-
if (null === t || !
|
|
908
|
-
const n =
|
|
909
|
-
return n < 0 ? null : (
|
|
907
|
+
for (const e of m) if (null === oe(e.formula, (e, t) => {
|
|
908
|
+
if (null === t || !b(l[f].name, e)) return null;
|
|
909
|
+
const n = R(t);
|
|
910
|
+
return n < 0 ? null : (N.has(n) || $(n), "");
|
|
910
911
|
})) return null;
|
|
911
|
-
const
|
|
912
|
-
column:
|
|
912
|
+
const L = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), D = c.map((e) => ({
|
|
913
|
+
column: p[e.field],
|
|
913
914
|
values: g[e.field],
|
|
914
915
|
fold: e.subtotal ?? "sum"
|
|
915
|
-
})), U =
|
|
916
|
-
for (let e = 0; e <
|
|
917
|
-
if (!
|
|
918
|
-
if (!
|
|
916
|
+
})), U = O.size;
|
|
917
|
+
for (let e = 0; e < S; e++) {
|
|
918
|
+
if (!M.every((t) => k(t, p[t.field][e]))) continue;
|
|
919
|
+
if (!E.every((t) => P(t, p[t][e]))) continue;
|
|
919
920
|
let t = "";
|
|
920
|
-
for (const n of
|
|
921
|
-
|
|
922
|
-
const n =
|
|
921
|
+
for (const n of y) t += p[n][e] + ",";
|
|
922
|
+
_.has(t) || _.set(t, e);
|
|
923
|
+
const n = O.get(p[f][e]);
|
|
923
924
|
if (void 0 === n) continue;
|
|
924
925
|
let s = t;
|
|
925
|
-
for (const t of
|
|
926
|
-
let r =
|
|
926
|
+
for (const t of C) s += p[t][e] + ",";
|
|
927
|
+
let r = L.get(s);
|
|
927
928
|
r || (r = {
|
|
928
|
-
sums:
|
|
929
|
-
errors:
|
|
930
|
-
},
|
|
929
|
+
sums: c.map(() => new Array(U).fill(0)),
|
|
930
|
+
errors: c.map(() => new Array(U).fill(void 0))
|
|
931
|
+
}, L.set(s, r));
|
|
931
932
|
const { sums: o, errors: l } = r;
|
|
932
|
-
|
|
933
|
-
const d =
|
|
933
|
+
D.forEach(({ column: t, values: s, fold: r }, i) => {
|
|
934
|
+
const d = j(s[t[e]]);
|
|
934
935
|
"sum" === r ? "number" == typeof d ? o[i][n] += d : a.isError(d) && (l[i][n] ??= d) : ("countNums" === r ? "number" == typeof d : null !== d) && (o[i][n] += 1);
|
|
935
936
|
});
|
|
936
937
|
}
|
|
937
|
-
const H =
|
|
938
|
-
const t =
|
|
939
|
-
return t ? t.flatMap((t) => void 0 !== t.item && void 0 === t.type && !t.missing &&
|
|
938
|
+
const H = C.map((e) => {
|
|
939
|
+
const t = d[e]?.items;
|
|
940
|
+
return t ? t.flatMap((t) => void 0 !== t.item && void 0 === t.type && !t.missing && P(e, t.item) ? [t.item] : []) : h[e].map((e, t) => t);
|
|
940
941
|
});
|
|
941
|
-
if (H.reduce((e, t) => e * t.length,
|
|
942
|
+
if (H.reduce((e, t) => e * t.length, _.size) > 5e5) return null;
|
|
942
943
|
const B = [];
|
|
943
|
-
for (const [e, t] of
|
|
944
|
+
for (const [e, t] of _) {
|
|
944
945
|
const n = (e, s, r) => {
|
|
945
946
|
if (e !== H.length) for (const t of H[e]) n(e + 1, [...s, t], r + t + ",");
|
|
946
947
|
else B.push({
|
|
@@ -955,41 +956,41 @@ var Y = [
|
|
|
955
956
|
if (0 === z) return {
|
|
956
957
|
count: 0,
|
|
957
958
|
ids: l.map(() => []),
|
|
958
|
-
values:
|
|
959
|
+
values: c.map(() => [])
|
|
959
960
|
};
|
|
960
|
-
const
|
|
961
|
-
for (let e = 0; e <
|
|
962
|
-
const s =
|
|
961
|
+
const G = c.length * U, K = (e, t) => e * U + t, Q = (e, t) => G + e * m.length + t, J = [];
|
|
962
|
+
for (let e = 0; e < c.length; e++) for (let t = 0; t < U; t++) J.push(B.map(({ key: n }) => {
|
|
963
|
+
const s = L.get(n);
|
|
963
964
|
return s ? s.errors[e][t] ?? s.sums[e][t] : 0;
|
|
964
965
|
}));
|
|
965
|
-
const
|
|
966
|
-
for (let e = 0; e <
|
|
967
|
-
const n = oe(
|
|
966
|
+
const W = [];
|
|
967
|
+
for (let e = 0; e < c.length; e++) for (let t = 0; t < m.length; t++) {
|
|
968
|
+
const n = oe(m[t].formula, (t, n) => {
|
|
968
969
|
if (null === n) return null;
|
|
969
|
-
const s =
|
|
970
|
-
return ae(r >= 0 ?
|
|
970
|
+
const s = R(n), r = m.findIndex((e) => e.item === s);
|
|
971
|
+
return ae(r >= 0 ? Q(e, r) : K(e, O.get(s)));
|
|
971
972
|
});
|
|
972
973
|
if (null === n) return null;
|
|
973
|
-
|
|
974
|
+
W.push({
|
|
974
975
|
expression: n,
|
|
975
|
-
coords: le(
|
|
976
|
+
coords: le(Q(e, t), z)
|
|
976
977
|
});
|
|
977
978
|
}
|
|
978
979
|
const X = await r.evaluateBatch({
|
|
979
980
|
values: ie(J, z),
|
|
980
|
-
formulas:
|
|
981
|
-
}), Y = l.map(() => []), Z =
|
|
982
|
-
|
|
983
|
-
const r =
|
|
984
|
-
Y[s].push(s ===
|
|
981
|
+
formulas: W
|
|
982
|
+
}), Y = l.map(() => []), Z = c.map(() => []), ee = (e, t, n, s) => {
|
|
983
|
+
p.forEach((n, s) => {
|
|
984
|
+
const r = C.indexOf(s);
|
|
985
|
+
Y[s].push(s === f ? t : r >= 0 ? e.path[r] : n[e.exemplar] ?? 0);
|
|
985
986
|
}), Z.forEach((e, t) => {
|
|
986
987
|
e.push(t === n ? s : null);
|
|
987
988
|
});
|
|
988
989
|
};
|
|
989
990
|
return B.forEach((e, t) => {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
const a = X[o *
|
|
991
|
+
m.forEach(({ item: n }, s) => {
|
|
992
|
+
c.forEach((r, o) => {
|
|
993
|
+
const a = X[o * m.length + s].getValueAt(t, 0) ?? 0;
|
|
993
994
|
if ("sum" !== (r.subtotal ?? "sum") && "number" == typeof a) for (let t = 0; t < Math.round(a); t++) ee(e, n, o, 1);
|
|
994
995
|
else ee(e, n, o, a);
|
|
995
996
|
});
|
|
@@ -999,14 +1000,14 @@ var Y = [
|
|
|
999
1000
|
ids: Y,
|
|
1000
1001
|
values: Z
|
|
1001
1002
|
};
|
|
1002
|
-
})(e, t, n, r, o) : void 0,
|
|
1003
|
+
})(e, t, n, r, o) : void 0, p = l.filter((e) => !H(e)).map((e, t) => ({
|
|
1003
1004
|
filter: e,
|
|
1004
1005
|
index: t
|
|
1005
|
-
})).sort((e, t) => (e.filter.evalOrder ?? -1) - (t.filter.evalOrder ?? -1) || e.index - t.index),
|
|
1006
|
-
let
|
|
1007
|
-
const
|
|
1008
|
-
for (const { filter: s } of
|
|
1009
|
-
const a = await Ae(e, t, n, s.field, s.dataField, o,
|
|
1006
|
+
})).sort((e, t) => (e.filter.evalOrder ?? -1) - (t.filter.evalOrder ?? -1) || e.index - t.index), h = (t.recordCount ?? 0) + (f?.count ?? 0);
|
|
1007
|
+
let g;
|
|
1008
|
+
const w = e.rowFields ?? [];
|
|
1009
|
+
for (const { filter: s } of p) {
|
|
1010
|
+
const a = await Ae(e, t, n, s.field, s.dataField, o, g, f, r);
|
|
1010
1011
|
if (!a) continue;
|
|
1011
1012
|
const l = /* @__PURE__ */ new Set();
|
|
1012
1013
|
for (const [e, t] of a.groups) {
|
|
@@ -1016,17 +1017,17 @@ var Y = [
|
|
|
1016
1017
|
});
|
|
1017
1018
|
}
|
|
1018
1019
|
if (0 === l.size) continue;
|
|
1019
|
-
|
|
1020
|
-
const i = a.outer.map((e) => a.records[e]), d = a.records[s.field], u =
|
|
1021
|
-
for (let e = 0; e <
|
|
1022
|
-
if (!(
|
|
1020
|
+
g ??= new Uint8Array(h).fill(3);
|
|
1021
|
+
const i = a.outer.map((e) => a.records[e]), d = a.records[s.field], u = w.includes(s.field) ? 1 : 2;
|
|
1022
|
+
for (let e = 0; e < h; e++) {
|
|
1023
|
+
if (!(g[e] & u)) continue;
|
|
1023
1024
|
let t = "";
|
|
1024
1025
|
for (let n = 0; n < i.length; n++) t += (n > 0 ? "," : "") + i[n][e];
|
|
1025
|
-
l.has(`${t}|${d[e]}`) && (
|
|
1026
|
+
l.has(`${t}|${d[e]}`) && (g[e] &= ~u);
|
|
1026
1027
|
}
|
|
1027
1028
|
}
|
|
1028
|
-
const
|
|
1029
|
-
const l =
|
|
1029
|
+
const v = u && r ? await (async (e, t, n, s, r, o, a) => {
|
|
1030
|
+
const l = m.peek(), i = de(e, t);
|
|
1030
1031
|
if (!l || !i) return null;
|
|
1031
1032
|
const d = xe(e, t, n, a, i.operands);
|
|
1032
1033
|
if (!d) return null;
|
|
@@ -1035,19 +1036,19 @@ var Y = [
|
|
|
1035
1036
|
form: t === ce ? e.form ?? "compact" : e.fields?.[t]?.form ?? "compact"
|
|
1036
1037
|
}));
|
|
1037
1038
|
return Ee(l, i, e, d.items, d.records, d.values, u(e.rowFields), u(e.columnFields), d.n, r, o, s);
|
|
1038
|
-
})(e, t, n, r, o,
|
|
1039
|
+
})(e, t, n, r, o, g, f) : void 0;
|
|
1039
1040
|
return {
|
|
1040
1041
|
keep: o,
|
|
1041
|
-
...
|
|
1042
|
-
...
|
|
1043
|
-
...
|
|
1042
|
+
...g ? { records: g } : {},
|
|
1043
|
+
...f ? { calculatedRecords: f } : {},
|
|
1044
|
+
...v ? { fieldValues: v } : {}
|
|
1044
1045
|
};
|
|
1045
|
-
},
|
|
1046
|
+
}, Ne = (e, t) => {
|
|
1046
1047
|
const n = e.filters;
|
|
1047
1048
|
if (!n) return e;
|
|
1048
1049
|
let s = !1;
|
|
1049
1050
|
const r = n.map((e) => {
|
|
1050
|
-
const n = e.condition &&
|
|
1051
|
+
const n = e.condition && D(e.condition, t);
|
|
1051
1052
|
return n === e.condition ? e : (s = !0, {
|
|
1052
1053
|
...e,
|
|
1053
1054
|
condition: n
|
|
@@ -1060,10 +1061,10 @@ var Y = [
|
|
|
1060
1061
|
}, $e = async (e, t, n, s) => {
|
|
1061
1062
|
const r = t.length, o = new Uint8Array(r);
|
|
1062
1063
|
if (0 === r) return o;
|
|
1063
|
-
const a = new
|
|
1064
|
+
const a = new T();
|
|
1064
1065
|
for (let e = 0; e < r; e++) null !== t[e] && a.setValueAt(e, 0, t[e]);
|
|
1065
1066
|
let l = !1;
|
|
1066
|
-
return await
|
|
1067
|
+
return await h({
|
|
1067
1068
|
conditions: [e],
|
|
1068
1069
|
runtime: n,
|
|
1069
1070
|
calculation: s ?? null,
|
|
@@ -1086,19 +1087,19 @@ var Y = [
|
|
|
1086
1087
|
}
|
|
1087
1088
|
}), l || o.fill(1), o;
|
|
1088
1089
|
}, Le = (e, t, n, r, o) => {
|
|
1089
|
-
const l = e.fields?.[r],
|
|
1090
|
-
for (const e of l?.items ?? []) void 0 !== e.item && void 0 === e.type && void 0 !== e.name &&
|
|
1091
|
-
const
|
|
1090
|
+
const l = e.fields?.[r], d = /* @__PURE__ */ new Map();
|
|
1091
|
+
for (const e of l?.items ?? []) void 0 !== e.item && void 0 === e.type && void 0 !== e.name && d.set(e.item, e.name);
|
|
1092
|
+
const u = l?.numberFormat ?? t.fields?.[r]?.numberFormat, c = i(u, o), f = (e) => void 0 === u ? i(P(t.fields?.[r], e), o) : c, m = new Array(n.length);
|
|
1092
1093
|
for (let e = 0; e < n.length; e++) {
|
|
1093
|
-
const l =
|
|
1094
|
+
const l = d.get(e);
|
|
1094
1095
|
if (void 0 !== l) {
|
|
1095
|
-
|
|
1096
|
+
m[e] = l;
|
|
1096
1097
|
continue;
|
|
1097
1098
|
}
|
|
1098
|
-
const
|
|
1099
|
-
null ===
|
|
1099
|
+
const i = j(n[e]);
|
|
1100
|
+
null === i ? m[e] = x : "number" == typeof i ? m[e] = s(o, I(t.fields?.[r], e) ? f(e) : c, i) : "boolean" == typeof i ? m[e] = i ? "TRUE" : "FALSE" : a.isError(i) ? m[e] = i.getLabel() : m[e] = String(i);
|
|
1100
1101
|
}
|
|
1101
|
-
return
|
|
1102
|
+
return m;
|
|
1102
1103
|
}, _e = (e) => {
|
|
1103
1104
|
const t = e.getCoords(), n = t.colEnd - t.colStart + 1, s = t.rowEnd - t.rowStart, r = e.getWorksheet(), o = r.getRange({
|
|
1104
1105
|
rowStart: t.rowStart,
|
|
@@ -1107,7 +1108,7 @@ var Y = [
|
|
|
1107
1108
|
colEnd: t.colEnd
|
|
1108
1109
|
}).getValues()[0] ?? [], a = [];
|
|
1109
1110
|
for (let e = 0; e < n; e++) {
|
|
1110
|
-
const n = o[e] ?? null, l = new
|
|
1111
|
+
const n = o[e] ?? null, l = new W(), i = new Uint32Array(s);
|
|
1111
1112
|
let d, u, c = !1, f = l.values;
|
|
1112
1113
|
if (s > 0) {
|
|
1113
1114
|
const n = r.getRange({
|
|
@@ -1184,8 +1185,8 @@ var Y = [
|
|
|
1184
1185
|
} : a.isError(e) ? {
|
|
1185
1186
|
t: "e",
|
|
1186
1187
|
v: e.getCode()
|
|
1187
|
-
} : e, je = (e, t) => (t && "number" == typeof e ? "date:" : "") +
|
|
1188
|
-
const r = e.fields ?? [], o =
|
|
1188
|
+
} : e, je = (e, t) => (t && "number" == typeof e ? "date:" : "") + O(j(e)), ze = (e, t, n, s = !1) => {
|
|
1189
|
+
const r = e.fields ?? [], o = L(e.items, r.length), a = /\smissingItemsLimit="0"/.test(e.rest ?? ""), l = ((e) => {
|
|
1189
1190
|
const t = /* @__PURE__ */ new Set();
|
|
1190
1191
|
return e.map((e, n) => {
|
|
1191
1192
|
const s = "" === e ? `Field${n + 1}` : e;
|
|
@@ -1198,8 +1199,8 @@ var Y = [
|
|
|
1198
1199
|
const n = e.name.toLocaleLowerCase();
|
|
1199
1200
|
e.noRecords || i.has(n) || i.set(n, t);
|
|
1200
1201
|
});
|
|
1201
|
-
const
|
|
1202
|
-
|
|
1202
|
+
const u = t.recordCount, c = r.map(() => -1), f = r.map((e, t) => o[t].map(() => -1)), m = [], p = [], h = [], g = [], w = [], v = [], F = [], b = (e, t, n) => {
|
|
1203
|
+
g[t] = n.items, v[t] = n.items.length, F[t] = !0, f[e] = ((e, t) => {
|
|
1203
1204
|
const n = /* @__PURE__ */ new Map();
|
|
1204
1205
|
return t.forEach((e, t) => {
|
|
1205
1206
|
n.set(e, t);
|
|
@@ -1208,108 +1209,108 @@ var Y = [
|
|
|
1208
1209
|
};
|
|
1209
1210
|
t.columns.forEach((e, t) => {
|
|
1210
1211
|
const n = i.get(l[t].toLocaleLowerCase());
|
|
1211
|
-
void 0 !== n && (i.delete(l[t].toLocaleLowerCase()),
|
|
1212
|
-
const
|
|
1213
|
-
for (let t = 0; t <
|
|
1212
|
+
void 0 !== n && (i.delete(l[t].toLocaleLowerCase()), c[n] = t);
|
|
1213
|
+
const y = new Int32Array(e.values.length).fill(-1), x = [], A = [], C = new Array(u);
|
|
1214
|
+
for (let t = 0; t < u; t++) {
|
|
1214
1215
|
const n = e.ids[t];
|
|
1215
|
-
let s =
|
|
1216
|
-
s < 0 && (s =
|
|
1216
|
+
let s = y[n];
|
|
1217
|
+
s < 0 && (s = y[n] = x.length, x.push(Be(e.values[n])), A.push(e.dates || !!e.dateIds?.has(n))), C[t] = s;
|
|
1217
1218
|
}
|
|
1218
|
-
const
|
|
1219
|
-
if (void 0 !== n &&
|
|
1219
|
+
const E = (e) => void 0 !== n && (!!r[n].dates || I(r[n], e)), S = x.length, P = void 0 !== n ? !0 === r[n].inline : x.every((e) => "number" == typeof e || "object" == typeof e && "z" === e?.t), k = [];
|
|
1220
|
+
if (void 0 !== n && P) {
|
|
1220
1221
|
const e = /* @__PURE__ */ new Map();
|
|
1221
|
-
for (let t = 0; t <
|
|
1222
|
+
for (let t = 0; t < S; t++) e.set(je(x[t], A[t]), t);
|
|
1222
1223
|
o[n].forEach((t, s) => {
|
|
1223
|
-
|
|
1224
|
+
f[n][s] = e.get(je(t, E(s))) ?? -1;
|
|
1224
1225
|
});
|
|
1225
1226
|
} else if (void 0 !== n) {
|
|
1226
1227
|
const e = /* @__PURE__ */ new Map();
|
|
1227
|
-
for (let t = 0; t <
|
|
1228
|
+
for (let t = 0; t < S; t++) e.set(je(x[t], A[t]), t);
|
|
1228
1229
|
const t = new Set(r[n].calculatedItems?.map((e) => e.item));
|
|
1229
1230
|
o[n].forEach((s, r) => {
|
|
1230
1231
|
if (t.has(r)) return;
|
|
1231
|
-
const o = je(s,
|
|
1232
|
+
const o = je(s, E(r));
|
|
1232
1233
|
let l = e.get(o);
|
|
1233
|
-
void 0 !== l || a ||
|
|
1234
|
+
void 0 !== l || a || E(r) || (l = x.length, x.push(s), A.push(E(r)), k.push(l), e.set(o, l)), f[n][r] = l ?? -1;
|
|
1234
1235
|
});
|
|
1235
1236
|
}
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1238
|
-
const
|
|
1237
|
+
const M = { name: l[t] };
|
|
1238
|
+
P && (M.inline = !0), void 0 !== e.numberFormat && (M.numberFormat = e.numberFormat);
|
|
1239
|
+
const T = [];
|
|
1239
1240
|
let R = !1;
|
|
1240
|
-
|
|
1241
|
-
"number" == typeof e && (
|
|
1242
|
-
}),
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1247
|
-
const s =
|
|
1248
|
-
return
|
|
1241
|
+
x.forEach((e, t) => {
|
|
1242
|
+
"number" == typeof e && (A[t] ? T.push(t) : R = !0);
|
|
1243
|
+
}), T.length > 0 && !R ? M.dates = !0 : T.length > 0 && (M.dateItems = T), w[t] = M.dateItems ? new Set(M.dateItems) : void 0, k.length > 0 && (M.unused = k);
|
|
1244
|
+
const O = void 0 !== n ? r[n].rest : void 0;
|
|
1245
|
+
O && (M.rest = O);
|
|
1246
|
+
const N = void 0 !== n ? r[n].calculatedItems : void 0;
|
|
1247
|
+
N?.length && (M.calculatedItems = N.map(({ item: e, formula: t }) => {
|
|
1248
|
+
const s = x.length;
|
|
1249
|
+
return x.push(o[n][e]), f[n][e] = s, {
|
|
1249
1250
|
item: s,
|
|
1250
1251
|
formula: t
|
|
1251
1252
|
};
|
|
1252
|
-
})),
|
|
1253
|
+
})), m.push(M), p.push([t, [[0, x]]]), h.push([t, [[0, C]]]), g.push(x), v.push(S), F.push(!1);
|
|
1253
1254
|
const $ = void 0 !== n ? r[n].group : void 0;
|
|
1254
1255
|
if ($?.range && $.base === n) {
|
|
1255
|
-
const e = re($,
|
|
1256
|
-
e ? (
|
|
1256
|
+
const e = re($, x.slice(0, S).map(j), s);
|
|
1257
|
+
e ? (M.group = {
|
|
1257
1258
|
...e,
|
|
1258
1259
|
base: t
|
|
1259
|
-
},
|
|
1260
|
-
} else $ && !
|
|
1260
|
+
}, b(n, t, e)) : f[n] = o[n].map(() => -1);
|
|
1261
|
+
} else $ && !d(r[n]) && (M.group = $);
|
|
1261
1262
|
}), r.forEach((e, t) => {
|
|
1262
1263
|
if (!e.noRecords) return;
|
|
1263
|
-
if (
|
|
1264
|
+
if (q(e)) return c[t] = m.length, m.push(e), g.push([]), v.push(0), void F.push(!1);
|
|
1264
1265
|
const n = e.group;
|
|
1265
1266
|
if (!n) return;
|
|
1266
|
-
const r =
|
|
1267
|
+
const r = c[n.base];
|
|
1267
1268
|
if (void 0 === r || r < 0) return;
|
|
1268
|
-
const o =
|
|
1269
|
+
const o = g[r];
|
|
1269
1270
|
let a, l = [];
|
|
1270
|
-
if (n.range) a = re(n, o.slice(0,
|
|
1271
|
+
if (n.range) a = re(n, o.slice(0, v[r]).map(j), s);
|
|
1271
1272
|
else {
|
|
1272
|
-
const e = Ge(n,
|
|
1273
|
+
const e = Ge(n, f[n.base], o, m[r]);
|
|
1273
1274
|
a = e.group, l = e.itemMap;
|
|
1274
1275
|
}
|
|
1275
1276
|
if (!a) return;
|
|
1276
|
-
const i =
|
|
1277
|
-
|
|
1277
|
+
const i = m.length;
|
|
1278
|
+
c[t] = i, m.push({
|
|
1278
1279
|
...e,
|
|
1279
1280
|
group: {
|
|
1280
1281
|
...a,
|
|
1281
1282
|
base: r
|
|
1282
1283
|
}
|
|
1283
|
-
}),
|
|
1284
|
-
}),
|
|
1284
|
+
}), g.push(a.items), w[i] = a.dateItems ? new Set(a.dateItems) : void 0, v.push(a.items.length), F.push(!1), n.range ? b(t, i, a) : f[t] = l;
|
|
1285
|
+
}), m.forEach((e, t) => {
|
|
1285
1286
|
const n = e.group;
|
|
1286
1287
|
if (void 0 === n?.parent) return;
|
|
1287
|
-
const s =
|
|
1288
|
+
const s = c[n.parent], { parent: r, ...o } = n;
|
|
1288
1289
|
void 0 !== s && s >= 0 ? e.group = {
|
|
1289
1290
|
...n,
|
|
1290
1291
|
parent: s
|
|
1291
|
-
} :
|
|
1292
|
+
} : d(e) ? e.group = o : delete e.group, e.group && !d(e) && (e.group = {
|
|
1292
1293
|
...e.group,
|
|
1293
1294
|
base: t
|
|
1294
1295
|
});
|
|
1295
1296
|
});
|
|
1296
|
-
const { cacheId:
|
|
1297
|
+
const { cacheId: y, part: x, partFormats: A, fields: C, items: E, records: S, ...P } = e;
|
|
1297
1298
|
return {
|
|
1298
1299
|
model: {
|
|
1299
|
-
...
|
|
1300
|
+
...P,
|
|
1300
1301
|
source: n ?? e.source,
|
|
1301
|
-
fields:
|
|
1302
|
-
items:
|
|
1303
|
-
records:
|
|
1304
|
-
recordCount:
|
|
1302
|
+
fields: m,
|
|
1303
|
+
items: p,
|
|
1304
|
+
records: h,
|
|
1305
|
+
recordCount: u
|
|
1305
1306
|
},
|
|
1306
1307
|
remap: {
|
|
1307
|
-
fields:
|
|
1308
|
-
items:
|
|
1309
|
-
newItems:
|
|
1310
|
-
usedCounts:
|
|
1311
|
-
inItemOrder:
|
|
1312
|
-
dateItems:
|
|
1308
|
+
fields: c,
|
|
1309
|
+
items: f,
|
|
1310
|
+
newItems: g,
|
|
1311
|
+
usedCounts: v,
|
|
1312
|
+
inItemOrder: F,
|
|
1313
|
+
dateItems: w
|
|
1313
1314
|
}
|
|
1314
1315
|
};
|
|
1315
1316
|
}, Ge = (e, t, n, s) => {
|
|
@@ -1318,7 +1319,7 @@ var Y = [
|
|
|
1318
1319
|
const s = t?.[n] ?? -1;
|
|
1319
1320
|
s < 0 || (o[s] = e, r.add(e));
|
|
1320
1321
|
});
|
|
1321
|
-
const a = [], l = [], i = new Set(e.dateItems), d = e.items.map((e, t) => r.has(t) ? (i.has(t) && l.push(a.length), a.push(e), a.length - 1) : -1), u = o.map((e, t) => e >= 0 ? d[e] : ((s.dates ||
|
|
1322
|
+
const a = [], l = [], i = new Set(e.dateItems), d = e.items.map((e, t) => r.has(t) ? (i.has(t) && l.push(a.length), a.push(e), a.length - 1) : -1), u = o.map((e, t) => e >= 0 ? d[e] : ((s.dates || I(s, t)) && l.push(a.length), a.push(n[t]), a.length - 1)), { dateItems: c, ...f } = e;
|
|
1322
1323
|
return {
|
|
1323
1324
|
group: {
|
|
1324
1325
|
...f,
|
|
@@ -1383,7 +1384,7 @@ var Y = [
|
|
|
1383
1384
|
...e,
|
|
1384
1385
|
fields: u
|
|
1385
1386
|
};
|
|
1386
|
-
|
|
1387
|
+
Qe(f, "rowFields", c(e.rowFields)), Qe(f, "columnFields", c(e.columnFields)), Qe(f, "dataFields", i.length > 0 ? i : void 0), a.forEach((e, t) => {
|
|
1387
1388
|
const n = l[t];
|
|
1388
1389
|
if (n < 0 || void 0 === e.baseField || "number" != typeof e.baseItem) return;
|
|
1389
1390
|
const s = d[e.baseField]?.[e.baseItem];
|
|
@@ -1398,7 +1399,7 @@ var Y = [
|
|
|
1398
1399
|
}
|
|
1399
1400
|
return [t];
|
|
1400
1401
|
});
|
|
1401
|
-
|
|
1402
|
+
Qe(f, "pageFields", m.length > 0 ? m : void 0);
|
|
1402
1403
|
const p = (e.filters ?? []).flatMap((e) => {
|
|
1403
1404
|
if (!o(e.field)) return [];
|
|
1404
1405
|
const t = {
|
|
@@ -1412,7 +1413,7 @@ var Y = [
|
|
|
1412
1413
|
}
|
|
1413
1414
|
return [t];
|
|
1414
1415
|
});
|
|
1415
|
-
|
|
1416
|
+
Qe(f, "filters", p.length > 0 ? p : void 0);
|
|
1416
1417
|
const h = (e) => Ye(e, r, o, d, l), g = (e.formats ?? []).flatMap((e) => {
|
|
1417
1418
|
const t = h(e.area);
|
|
1418
1419
|
return t ? [{
|
|
@@ -1420,7 +1421,7 @@ var Y = [
|
|
|
1420
1421
|
area: t
|
|
1421
1422
|
}] : [];
|
|
1422
1423
|
});
|
|
1423
|
-
|
|
1424
|
+
Qe(f, "formats", g.length > 0 ? g : void 0);
|
|
1424
1425
|
const w = (e.conditionalFormats ?? []).flatMap((e) => {
|
|
1425
1426
|
const t = e.areas.flatMap((e) => {
|
|
1426
1427
|
const t = h(e);
|
|
@@ -1431,13 +1432,13 @@ var Y = [
|
|
|
1431
1432
|
areas: t
|
|
1432
1433
|
}] : [];
|
|
1433
1434
|
});
|
|
1434
|
-
return
|
|
1435
|
-
},
|
|
1435
|
+
return Qe(f, "conditionalFormats", w.length > 0 ? w : void 0), f;
|
|
1436
|
+
}, Qe = (e, t, n) => {
|
|
1436
1437
|
void 0 === n ? delete e[t] : e[t] = n;
|
|
1437
1438
|
}, Je = (e, t, n, s, r = !1, o) => {
|
|
1438
1439
|
const a = e.items ?? [], l = [], i = [], d = /* @__PURE__ */ new Set();
|
|
1439
1440
|
for (const e of a) {
|
|
1440
|
-
if (!
|
|
1441
|
+
if (!u(e)) {
|
|
1441
1442
|
i.push(l.length), l.push(e);
|
|
1442
1443
|
continue;
|
|
1443
1444
|
}
|
|
@@ -1453,13 +1454,13 @@ var Y = [
|
|
|
1453
1454
|
};
|
|
1454
1455
|
n >= s && !e.calculated ? r.missing = !0 : delete r.missing, i.push(l.length), l.push(r);
|
|
1455
1456
|
}
|
|
1456
|
-
const
|
|
1457
|
-
for (let e = 0; e < n.length; e++) d.has(e) ||
|
|
1457
|
+
const c = [];
|
|
1458
|
+
for (let e = 0; e < n.length; e++) d.has(e) || c.push(e);
|
|
1458
1459
|
if (r) {
|
|
1459
1460
|
const t = void 0 === e.sort?.dataField && "descending" === e.sort?.order, n = !e.includeNewItemsInFilter && a.some((e) => e.hidden), s = l.map((e, t) => ({
|
|
1460
1461
|
item: e,
|
|
1461
1462
|
at: t
|
|
1462
|
-
})), r = s.filter((e) => !
|
|
1463
|
+
})), r = s.filter((e) => !u(e.item)), o = [...[...s.filter((e) => u(e.item)), ...c.map((e) => ({
|
|
1463
1464
|
item: n ? {
|
|
1464
1465
|
item: e,
|
|
1465
1466
|
hidden: !0
|
|
@@ -1471,38 +1472,38 @@ var Y = [
|
|
|
1471
1472
|
positions: i.map((e) => e < 0 ? e : d.get(e) ?? -1)
|
|
1472
1473
|
};
|
|
1473
1474
|
}
|
|
1474
|
-
if (0 ===
|
|
1475
|
+
if (0 === c.length) return {
|
|
1475
1476
|
items: l,
|
|
1476
1477
|
positions: i
|
|
1477
1478
|
};
|
|
1478
|
-
const f = !e.includeNewItemsInFilter && a.some((e) => e.hidden),
|
|
1479
|
+
const f = !e.includeNewItemsInFilter && a.some((e) => e.hidden), m = (e) => f ? {
|
|
1479
1480
|
item: e,
|
|
1480
1481
|
hidden: !0
|
|
1481
1482
|
} : { item: e };
|
|
1482
1483
|
if (e.sort && void 0 === e.sort.dataField) {
|
|
1483
|
-
const t = "descending" === e.sort.order, s = (e, t) => qe(
|
|
1484
|
-
for (const e of
|
|
1485
|
-
const n =
|
|
1486
|
-
let r = l.findIndex((n) =>
|
|
1487
|
-
r < 0 && (r =
|
|
1484
|
+
const t = "descending" === e.sort.order, s = (e, t) => qe(S(e, n), j(n[t]), void 0 === e.name && o?.has(e.item), o?.has(t));
|
|
1485
|
+
for (const e of c) {
|
|
1486
|
+
const n = m(e);
|
|
1487
|
+
let r = l.findIndex((n) => u(n) && (t ? s(n, e) < 0 : s(n, e) > 0));
|
|
1488
|
+
r < 0 && (r = We(l)), l.splice(r, 0, n);
|
|
1488
1489
|
for (let e = 0; e < i.length; e++) i[e] >= r && i[e]++;
|
|
1489
1490
|
}
|
|
1490
1491
|
} else {
|
|
1491
|
-
const e =
|
|
1492
|
-
l.splice(e, 0, ...
|
|
1493
|
-
for (let t = 0; t < i.length; t++) i[t] >= e && (i[t] +=
|
|
1492
|
+
const e = We(l);
|
|
1493
|
+
l.splice(e, 0, ...c.map(m));
|
|
1494
|
+
for (let t = 0; t < i.length; t++) i[t] >= e && (i[t] += c.length);
|
|
1494
1495
|
}
|
|
1495
1496
|
return {
|
|
1496
1497
|
items: l,
|
|
1497
1498
|
positions: i
|
|
1498
1499
|
};
|
|
1499
|
-
},
|
|
1500
|
-
const t = e.findIndex((e) => !
|
|
1500
|
+
}, We = (e) => {
|
|
1501
|
+
const t = e.findIndex((e) => !u(e));
|
|
1501
1502
|
return t < 0 ? e.length : t;
|
|
1502
1503
|
}, Xe = (e, t) => {
|
|
1503
1504
|
if (!(t < 0)) for (let n = 0; n < e.length; n++) {
|
|
1504
1505
|
const s = (t + n) % e.length, r = e[s];
|
|
1505
|
-
if (
|
|
1506
|
+
if (u(r) && !r.missing) return s;
|
|
1506
1507
|
}
|
|
1507
1508
|
}, Ye = (e, t, n, s, r) => {
|
|
1508
1509
|
const o = { ...e };
|
|
@@ -1577,43 +1578,43 @@ var Y = [
|
|
|
1577
1578
|
areas: e.areas.map(d)
|
|
1578
1579
|
}))), a;
|
|
1579
1580
|
}, et = (e, t, n, s) => {
|
|
1580
|
-
const r = (e.fields ?? [])[n]?.items ?? [], o =
|
|
1581
|
+
const r = (e.fields ?? [])[n]?.items ?? [], o = A(t)[n] ?? [], a = t.fields?.[n], l = void 0 !== a?.group?.range, i = (e) => void 0 === e.name && I(a, e.item), d = r.map((e, t) => ({
|
|
1581
1582
|
item: e,
|
|
1582
1583
|
at: t
|
|
1583
|
-
})),
|
|
1584
|
-
|
|
1584
|
+
})), c = d.filter((e) => u(e.item));
|
|
1585
|
+
c.sort((e, t) => l ? e.item.item - t.item.item : qe(S(e.item, o), S(t.item, o), i(e.item), i(t.item))), "descending" === s && c.reverse();
|
|
1585
1586
|
let f = 0;
|
|
1586
|
-
const
|
|
1587
|
+
const m = Ze(e, n, d.map((e) => u(e.item) ? c[f++] : e).map((e) => e.at));
|
|
1587
1588
|
return {
|
|
1588
|
-
...
|
|
1589
|
-
fields:
|
|
1589
|
+
...m,
|
|
1590
|
+
fields: m.fields.map((e, t) => t === n ? {
|
|
1590
1591
|
...e,
|
|
1591
1592
|
sort: { order: s }
|
|
1592
1593
|
} : e)
|
|
1593
1594
|
};
|
|
1594
1595
|
}, tt = (n, s, r) => {
|
|
1595
1596
|
const o = n.fields?.[s]?.items?.[r];
|
|
1596
|
-
if (!o || !
|
|
1597
|
+
if (!o || !u(o)) throw new t(e("error.pivotTable.changePart"));
|
|
1597
1598
|
return o;
|
|
1598
1599
|
}, nt = (n, s, r, o, a) => {
|
|
1599
|
-
const l = tt(n, r, o), i = n.fields[r].items, d =
|
|
1600
|
-
const t =
|
|
1601
|
-
return null === t ?
|
|
1600
|
+
const l = tt(n, r, o), i = n.fields[r].items, d = A(s)[r] ?? [], c = (e) => {
|
|
1601
|
+
const t = j(d[e.item]);
|
|
1602
|
+
return null === t ? x : V(t);
|
|
1602
1603
|
};
|
|
1603
|
-
if (i.some((e, t) => t !== o &&
|
|
1604
|
-
const { name:
|
|
1604
|
+
if (i.some((e, t) => t !== o && u(e) && b(e.name ?? c(e), a))) throw new t(e("error.pivotTable.itemNameExists", { name: a }));
|
|
1605
|
+
const { name: f, ...m } = l, p = a === c(l) ? m : {
|
|
1605
1606
|
...l,
|
|
1606
1607
|
name: a
|
|
1607
1608
|
};
|
|
1608
1609
|
if (p.name === l.name) return n;
|
|
1609
|
-
const
|
|
1610
|
+
const h = {
|
|
1610
1611
|
...n,
|
|
1611
1612
|
fields: n.fields.map((e, t) => t === r ? {
|
|
1612
1613
|
...e,
|
|
1613
1614
|
items: i.map((e, t) => t === o ? p : e)
|
|
1614
1615
|
} : e)
|
|
1615
|
-
},
|
|
1616
|
-
return
|
|
1616
|
+
}, g = n.fields[r].sort;
|
|
1617
|
+
return g && void 0 === g.dataField ? et(h, s, r, g.order) : h;
|
|
1617
1618
|
}, st = (e, t, n, s) => {
|
|
1618
1619
|
tt(e, t, n);
|
|
1619
1620
|
const r = e.fields[t].items.map((e, t) => t).filter((e) => e !== n);
|
|
@@ -1630,11 +1631,11 @@ var Y = [
|
|
|
1630
1631
|
})
|
|
1631
1632
|
} : a;
|
|
1632
1633
|
}, rt = (n, s, r, o) => {
|
|
1633
|
-
const a =
|
|
1634
|
+
const a = V(o), l = n.fields, i = s.fields, d = n.dataFields ?? [], c = A(s), f = (e, t) => {
|
|
1634
1635
|
if (void 0 !== t.name) return t.name;
|
|
1635
|
-
const n =
|
|
1636
|
-
return null === n ?
|
|
1637
|
-
},
|
|
1636
|
+
const n = j(c[e][t.item]);
|
|
1637
|
+
return null === n ? x : V(n);
|
|
1638
|
+
}, m = (r) => {
|
|
1638
1639
|
if (void 0 !== r.field && a === (l[r.field].name ?? i[r.field].name)) return;
|
|
1639
1640
|
const o = void 0 === r.field ? n : {
|
|
1640
1641
|
...n,
|
|
@@ -1643,18 +1644,18 @@ var Y = [
|
|
|
1643
1644
|
name: "\0"
|
|
1644
1645
|
} : e)
|
|
1645
1646
|
};
|
|
1646
|
-
if (
|
|
1647
|
+
if (y(o, s, a, r.data) !== a) throw new t(e("error.pivotTable.fieldNameExists"));
|
|
1647
1648
|
};
|
|
1648
1649
|
switch (r.kind) {
|
|
1649
1650
|
case "item": {
|
|
1650
1651
|
const { field: e, rank: t } = r;
|
|
1651
1652
|
tt(n, e, t);
|
|
1652
|
-
const o = l[e].items.findIndex((n, s) => s !== t &&
|
|
1653
|
+
const o = l[e].items.findIndex((n, s) => s !== t && u(n) && b(f(e, n), a));
|
|
1653
1654
|
return o >= 0 ? st(n, e, o, t) : nt(n, s, e, t, a);
|
|
1654
1655
|
}
|
|
1655
1656
|
case "fieldCaption": {
|
|
1656
1657
|
const { field: e } = r;
|
|
1657
|
-
return
|
|
1658
|
+
return m({ field: e }), ((e, t) => ({
|
|
1658
1659
|
...n,
|
|
1659
1660
|
fields: l.map((n, s) => s === e ? t(n) : n)
|
|
1660
1661
|
}))(e, (t) => {
|
|
@@ -1667,7 +1668,7 @@ var Y = [
|
|
|
1667
1668
|
}
|
|
1668
1669
|
case "dataCaption": {
|
|
1669
1670
|
const { data: e } = r;
|
|
1670
|
-
return
|
|
1671
|
+
return m({ data: e }), {
|
|
1671
1672
|
...n,
|
|
1672
1673
|
dataFields: d.map((t, n) => n === e ? {
|
|
1673
1674
|
...t,
|
|
@@ -1690,14 +1691,14 @@ var Y = [
|
|
|
1690
1691
|
case "pageItem": {
|
|
1691
1692
|
const s = n.pageFields, o = s[r.page];
|
|
1692
1693
|
let i;
|
|
1693
|
-
if (!
|
|
1694
|
-
const { item: d, ...
|
|
1694
|
+
if (!b(a, "(All)") && (i = (l[o.field].items ?? []).findIndex((e) => u(e) && b(f(o.field, e), a)), i < 0)) throw new t(e("error.pivotTable.notAnItem", { name: a }));
|
|
1695
|
+
const { item: d, ...c } = o, m = void 0 === i ? c : {
|
|
1695
1696
|
...o,
|
|
1696
1697
|
item: i
|
|
1697
1698
|
};
|
|
1698
1699
|
return {
|
|
1699
1700
|
...n,
|
|
1700
|
-
pageFields: s.map((e, t) => t === r.page ?
|
|
1701
|
+
pageFields: s.map((e, t) => t === r.page ? m : e)
|
|
1701
1702
|
};
|
|
1702
1703
|
}
|
|
1703
1704
|
}
|
|
@@ -1716,8 +1717,8 @@ var Y = [
|
|
|
1716
1717
|
...e.columnFields ?? [],
|
|
1717
1718
|
...(e.pageFields ?? []).map((e) => e.field)
|
|
1718
1719
|
].filter((e) => e >= 0), it = (e, t) => {
|
|
1719
|
-
const n = e.fields[t], s =
|
|
1720
|
-
|
|
1720
|
+
const n = e.fields[t], s = A(e)[t], r = s.map((e, t) => t);
|
|
1721
|
+
d(n) || r.sort((e, t) => qe(j(s[e]), j(s[t]), I(n, e), I(n, t)));
|
|
1721
1722
|
const o = new Set(n.calculatedItems?.map((e) => e.item)), a = new Set(n.unused);
|
|
1722
1723
|
return [...r.map((e) => ({
|
|
1723
1724
|
item: e,
|
|
@@ -1727,21 +1728,21 @@ var Y = [
|
|
|
1727
1728
|
}, dt = (s) => {
|
|
1728
1729
|
if (!("number" == typeof s ? void 0 !== o(s) : "" !== s && n.isValidFormat(s))) throw new t(e("error.pivotTable.notANumberFormat", { name: String(s) }));
|
|
1729
1730
|
}, ut = (n, s, r, o) => {
|
|
1730
|
-
const a = o?.function ?? ((e, t) => "number" ===
|
|
1731
|
-
if (!
|
|
1732
|
-
let
|
|
1733
|
-
if (void 0 ===
|
|
1734
|
-
else if (
|
|
1735
|
-
const
|
|
1736
|
-
name:
|
|
1731
|
+
const a = o?.function ?? ((e, t) => "number" === E(e, t) ? "sum" : "count")(s.fields[r], A(s)[r]), l = p[a];
|
|
1732
|
+
if (!l) throw new t(e("error.pivotTable.notAFunction", { name: a }));
|
|
1733
|
+
let i = o?.name;
|
|
1734
|
+
if (void 0 === i) i = y(n, s, `${l} of ${f(n, s, r)}`);
|
|
1735
|
+
else if (y(n, s, i) !== i) throw new t(e("error.pivotTable.fieldNameExists"));
|
|
1736
|
+
const d = {
|
|
1737
|
+
name: i,
|
|
1737
1738
|
field: r,
|
|
1738
1739
|
baseField: 0,
|
|
1739
1740
|
baseItem: 0
|
|
1740
1741
|
};
|
|
1741
|
-
return "sum" !== a && (
|
|
1742
|
+
return "sum" !== a && (d.subtotal = a), void 0 !== o?.numberFormat && (dt(o.numberFormat), d.numberFormat = o.numberFormat), d;
|
|
1742
1743
|
}, ct = (n, s) => {
|
|
1743
1744
|
const r = n.fields ?? [], o = (n) => {
|
|
1744
|
-
const s = r.findIndex((e) =>
|
|
1745
|
+
const s = r.findIndex((e) => b(e.name, n));
|
|
1745
1746
|
if (s < 0) throw new t(e("error.pivotTable.notAField", { name: n }));
|
|
1746
1747
|
return s;
|
|
1747
1748
|
}, a = /* @__PURE__ */ new Map(), l = (e, t) => {
|
|
@@ -1771,14 +1772,14 @@ var Y = [
|
|
|
1771
1772
|
showColumnStripes: !1,
|
|
1772
1773
|
showLastColumn: !0
|
|
1773
1774
|
}
|
|
1774
|
-
},
|
|
1775
|
-
|
|
1776
|
-
const
|
|
1777
|
-
return
|
|
1775
|
+
}, h = i("row");
|
|
1776
|
+
h.length > 0 && (p.rowFields = h), m.length > 0 && (p.columnFields = m);
|
|
1777
|
+
const g = i("page");
|
|
1778
|
+
return g.length > 0 && (p.pageFields = g.map((e) => ({ field: e }))), d.length > 0 && (p.dataFields = d), c && (p.form = c), p;
|
|
1778
1779
|
}, ft = (e, t) => t.map((t) => {
|
|
1779
1780
|
const n = t.sort?.scope;
|
|
1780
1781
|
if (!n) return t;
|
|
1781
|
-
const s = ((t.axis ===
|
|
1782
|
+
const s = ((t.axis === w.Axis.Row ? e.columnFields : t.axis === w.Axis.Column ? e.rowFields : void 0) ?? []).filter((e) => -2 !== e);
|
|
1782
1783
|
if (!n.items.every((e, t) => s[t] === e.field)) {
|
|
1783
1784
|
const { sort: e, ...n } = t;
|
|
1784
1785
|
return n;
|
|
@@ -1795,37 +1796,37 @@ var Y = [
|
|
|
1795
1796
|
}
|
|
1796
1797
|
};
|
|
1797
1798
|
}), mt = (n, s, r, o, a) => {
|
|
1798
|
-
const l =
|
|
1799
|
+
const l = w.Axis, i = s.fields?.[r], d = n.fields?.[r]?.axis ?? null;
|
|
1799
1800
|
if (o === l.Values) throw new t(e("error.pivotTable.valuesNotAnAxis"));
|
|
1800
1801
|
if (null === o) {
|
|
1801
1802
|
if (null === d) return n;
|
|
1802
1803
|
} else if (void 0 !== i?.formula || o === l.Page && (i?.calculatedItems?.length ?? 0) > 0) throw new t(e("error.pivotTable.fieldNotPlaceable"));
|
|
1803
|
-
const
|
|
1804
|
-
if (void 0 !== a && (!Number.isInteger(a) || a < 1 || a >
|
|
1805
|
-
const
|
|
1806
|
-
if (o === d && (void 0 === a ||
|
|
1807
|
-
|
|
1808
|
-
const { rowFields:
|
|
1809
|
-
b.length > 0 && (
|
|
1810
|
-
let
|
|
1811
|
-
...
|
|
1812
|
-
...
|
|
1804
|
+
const u = o ? z(n, o).filter((e) => e !== r) : [];
|
|
1805
|
+
if (void 0 !== a && (!Number.isInteger(a) || a < 1 || a > u.length + 1)) throw new t(e("error.pivotTable.fieldPosition"));
|
|
1806
|
+
const c = (a ?? u.length + 1) - 1;
|
|
1807
|
+
if (o === d && (void 0 === a || z(n, o)[c] === r)) return n;
|
|
1808
|
+
u.splice(c, 0, r);
|
|
1809
|
+
const { rowFields: f, columnFields: m, pageFields: p, ...h } = n, g = {}, F = (e) => (e ?? []).filter((e) => e !== r), b = o === l.Row ? u : F(n.rowFields), y = o === l.Column ? u : F(n.columnFields), I = o === l.Page ? u.map((e) => n.pageFields?.find((t) => t.field === e) ?? { field: e }) : (n.pageFields ?? []).filter((e) => e.field !== r);
|
|
1810
|
+
b.length > 0 && (g.rowFields = b), y.length > 0 && (g.columnFields = y), I.length > 0 && (g.pageFields = I);
|
|
1811
|
+
let x = {
|
|
1812
|
+
...h,
|
|
1813
|
+
...g
|
|
1813
1814
|
};
|
|
1814
|
-
o === l.Page && d !== l.Page && (
|
|
1815
|
-
const
|
|
1816
|
-
o ?
|
|
1817
|
-
const
|
|
1818
|
-
if (
|
|
1819
|
-
...
|
|
1820
|
-
fields: ft(
|
|
1815
|
+
o === l.Page && d !== l.Page && (x = v(x, r, () => !0));
|
|
1816
|
+
const A = { ...n.fields?.[r] };
|
|
1817
|
+
o ? A.axis = o : delete A.axis, o && !A.items && i && (A.items = R(it(s, r), A.subtotals)), o && void 0 === A.numberFormat && i?.dates && void 0 !== i.numberFormat && (A.numberFormat = i.numberFormat), o === l.Page && A.items?.some((e) => e.hidden) && (A.multipleItemSelection = !0);
|
|
1818
|
+
const C = (n.fields ?? []).map((e, t) => t === r ? A : e);
|
|
1819
|
+
if (x = {
|
|
1820
|
+
...x,
|
|
1821
|
+
fields: ft(x, C)
|
|
1821
1822
|
}, null === o && n.formats?.some((e) => e.area.references?.some((e) => e.field === r))) {
|
|
1822
|
-
const e = n.formats.filter((e) => !e.area.references?.some((e) => e.field === r)), { formats: t, ...s } =
|
|
1823
|
-
|
|
1823
|
+
const e = n.formats.filter((e) => !e.area.references?.some((e) => e.field === r)), { formats: t, ...s } = x;
|
|
1824
|
+
x = e.length > 0 ? {
|
|
1824
1825
|
...s,
|
|
1825
1826
|
formats: e
|
|
1826
1827
|
} : s;
|
|
1827
1828
|
}
|
|
1828
|
-
return
|
|
1829
|
+
return x;
|
|
1829
1830
|
}, pt = -2, ht = /* @__PURE__ */ new Set([
|
|
1830
1831
|
"percentOfTotal",
|
|
1831
1832
|
"percentOfRow",
|
|
@@ -1954,7 +1955,7 @@ var Y = [
|
|
|
1954
1955
|
l[e] = t;
|
|
1955
1956
|
}), It(n, a.map((e) => o[e]), l);
|
|
1956
1957
|
}, Et = (e, t, n, s) => {
|
|
1957
|
-
const r =
|
|
1958
|
+
const r = M(e, t, n, s);
|
|
1958
1959
|
return (e.dataFields[n].subtotal ?? "sum") === s ? e : bt(e, n, (e) => {
|
|
1959
1960
|
const { subtotal: t, ...n } = e, o = {
|
|
1960
1961
|
...n,
|
|
@@ -1963,40 +1964,40 @@ var Y = [
|
|
|
1963
1964
|
return "sum" !== s && (o.subtotal = s), o;
|
|
1964
1965
|
});
|
|
1965
1966
|
}, St = (n, s, r, o) => {
|
|
1966
|
-
const a = n.dataFields[r],
|
|
1967
|
+
const a = n.dataFields[r], l = a.showDataAs ?? "normal", i = o?.kind ?? "normal";
|
|
1967
1968
|
if (o && !wt.has(o.kind)) throw new t(e("error.pivotTable.notAShowAs", { name: o.kind }));
|
|
1968
|
-
const { showDataAs:
|
|
1969
|
-
"normal" !==
|
|
1970
|
-
let
|
|
1969
|
+
const { showDataAs: d, baseField: u, baseItem: c, ...m } = a, p = { ...m };
|
|
1970
|
+
"normal" !== i && (p.showDataAs = i);
|
|
1971
|
+
let h = a.baseField, g = a.baseItem;
|
|
1971
1972
|
if (void 0 !== o?.baseField) {
|
|
1972
|
-
const r = o.baseField, a = (s.fields ?? []).findIndex((e, t) =>
|
|
1973
|
+
const r = o.baseField, a = (s.fields ?? []).findIndex((e, t) => b(f(n, s, t), r));
|
|
1973
1974
|
if (a < 0) throw new t(e("error.pivotTable.notAField", { name: r }));
|
|
1974
|
-
a !==
|
|
1975
|
+
a !== h && (h = a, g = 0);
|
|
1975
1976
|
}
|
|
1976
1977
|
if (void 0 !== o?.baseItem) {
|
|
1977
|
-
const r =
|
|
1978
|
-
if (
|
|
1979
|
-
else if (
|
|
1978
|
+
const r = h ?? 0;
|
|
1979
|
+
if (b(o.baseItem, "(previous)")) g = "previous";
|
|
1980
|
+
else if (b(o.baseItem, "(next)")) g = "next";
|
|
1980
1981
|
else {
|
|
1981
1982
|
const a = n.fields?.[r]?.items ? n : { fields: (n.fields ?? []).map((e, t) => t === r ? {
|
|
1982
1983
|
...e,
|
|
1983
1984
|
items: it(s, r)
|
|
1984
|
-
} : e) }, l =
|
|
1985
|
+
} : e) }, l = k(a, s, r).findIndex((e) => null !== e && b(e, o.baseItem));
|
|
1985
1986
|
if (l < 0) throw new t(e("error.pivotTable.notAnItem", { name: o.baseItem }));
|
|
1986
|
-
|
|
1987
|
+
g = l;
|
|
1987
1988
|
}
|
|
1988
1989
|
}
|
|
1989
|
-
if (void 0 !==
|
|
1990
|
-
const
|
|
1990
|
+
if (void 0 !== h && (p.baseField = h), void 0 !== g && (p.baseItem = g), i === l) return p.baseField === a.baseField && p.baseItem === a.baseItem ? n : bt(n, r, () => p);
|
|
1991
|
+
const w = ((e, t, n) => {
|
|
1991
1992
|
if (gt.has(n)) return gt.has(t) ? e : void 0;
|
|
1992
|
-
const s = ((e) =>
|
|
1993
|
+
const s = ((e) => N(e).replace(/"[^"]*"|\\./g, "").includes("%"))(e);
|
|
1993
1994
|
return ht.has(n) ? ht.has(t) || s ? e : 10 : ht.has(t) && s ? void 0 : e;
|
|
1994
|
-
})(a.numberFormat,
|
|
1995
|
-
return
|
|
1995
|
+
})(a.numberFormat, l, i);
|
|
1996
|
+
return w === a.numberFormat ? bt(n, r, () => p) : bt(Ft(n, r), r, () => yt(p, w));
|
|
1996
1997
|
}, Pt = (e, t, n) => {
|
|
1997
1998
|
dt(n);
|
|
1998
|
-
const s =
|
|
1999
|
-
if (
|
|
1999
|
+
const s = N(n), r = e.dataFields[t], o = e.formats?.[e.formats.length - 1];
|
|
2000
|
+
if (N(r.numberFormat) === s && o && vt(o.area, t) && o.style.numberFormat === s) return e;
|
|
2000
2001
|
const a = bt(Ft(e, t), t, (e) => yt(e, "General" === s ? void 0 : n));
|
|
2001
2002
|
return {
|
|
2002
2003
|
...a,
|
|
@@ -2013,16 +2014,16 @@ var Y = [
|
|
|
2013
2014
|
};
|
|
2014
2015
|
}, kt = (n, s, r) => {
|
|
2015
2016
|
if (null === s) return At(n);
|
|
2016
|
-
const o =
|
|
2017
|
+
const o = w.Axis;
|
|
2017
2018
|
if (s !== o.Row && s !== o.Column) throw new t(e("error.pivotTable.fieldNotPlaceable"));
|
|
2018
2019
|
const a = n.rowFields?.includes(pt) ? o.Row : n.columnFields?.includes(pt) ? o.Column : null;
|
|
2019
2020
|
if (!a) throw new t(e("error.pivotTable.fieldPosition"));
|
|
2020
|
-
const l =
|
|
2021
|
+
const l = z(n, s).filter((e) => e !== pt);
|
|
2021
2022
|
if (void 0 !== r && (!Number.isInteger(r) || r < 1 || r > l.length + 1)) throw new t(e("error.pivotTable.fieldPosition"));
|
|
2022
2023
|
const i = (r ?? l.length + 1) - 1;
|
|
2023
|
-
if (s === a && (void 0 === r ||
|
|
2024
|
+
if (s === a && (void 0 === r || z(n, s)[i] === pt)) return n;
|
|
2024
2025
|
l.splice(i, 0, pt);
|
|
2025
|
-
const { rowFields: d, columnFields: u, valuesOnRows: c, ...f } = n, m =
|
|
2026
|
+
const { rowFields: d, columnFields: u, valuesOnRows: c, ...f } = n, m = z(n, s === o.Row ? o.Column : o.Row).filter((e) => e !== pt), p = { ...f }, h = s === o.Row ? l : m, g = s === o.Column ? l : m;
|
|
2026
2027
|
return h.length > 0 && (p.rowFields = [...h]), g.length > 0 && (p.columnFields = [...g]), s === o.Row && (p.valuesOnRows = !0), p;
|
|
2027
2028
|
}, Mt = (n, s, r) => {
|
|
2028
2029
|
if (r === (n.valuesCaption ?? "Values")) return n;
|
|
@@ -2030,10 +2031,10 @@ var Y = [
|
|
|
2030
2031
|
...a,
|
|
2031
2032
|
valuesCaption: "\0"
|
|
2032
2033
|
};
|
|
2033
|
-
if (
|
|
2034
|
+
if (y(l, s, r) !== r) throw new t(e("error.pivotTable.fieldNameExists"));
|
|
2034
2035
|
return "Values" === r ? a : {
|
|
2035
2036
|
...a,
|
|
2036
2037
|
valuesCaption: r
|
|
2037
2038
|
};
|
|
2038
2039
|
};
|
|
2039
|
-
export { xt as addPivotDataField,
|
|
2040
|
+
export { xt as addPivotDataField, Ne as anchorPivotPeriods, dt as assertNumberFormat, lt as axisFieldsOf, Re as buildPivotView, Oe as evaluatePivotFilters, H as isItemFilter, Ie as layOutPivot, it as listedItemsOf, Ct as movePivotDataField, mt as movePivotField, st as movePivotItem, kt as movePivotValues, ot as newPivotCache, ct as newPivotTable, _e as readPivotSource, ze as refreshPivotCache, Ke as remapPivotTable, At as removePivotDataField, nt as renamePivotItem, Mt as renamePivotValues, Ze as reorderPivotItems, Et as setPivotDataFunction, Pt as setPivotDataNumberFormat, St as setPivotDataShowAs, et as sortPivotItemsByLabel, rt as typeOverPivot, at as withListedFields };
|