@sheetxl/mcp 0.8.0-beta.22 → 0.8.0-beta.24

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.
Files changed (215) hide show
  1. package/assets/{BHsqPfJZrdKTbPLP.js → 2YT_wstXIH6UIigi.js} +1 -1
  2. package/assets/{DtvJg63vbDd6B7sD.js → 3VycPrqi6qgLOgGY.js} +6 -6
  3. package/assets/{DoScYrfTJOHXe-Ko.js → 6CBUVbF01Bedq0e2.js} +66 -66
  4. package/assets/{D-MsUF59BhikcNZt.js → 76dPHG5RYA7MUV_g.js} +3 -3
  5. package/assets/{DgVCjvTw9Df1DV1x.js → 7IzItpr7MkdnaAwh.js} +167 -167
  6. package/assets/{DevKDvFONeJ9euEq.js → 7vPlH3_rhJxmmBvG.js} +1 -1
  7. package/assets/{BV49J63s68Mj6lgF.js → 9GnbVPKozgrJpeLW.js} +1 -1
  8. package/assets/{VSbzBtGH0cA8VBsM.js → B-5mBXpY9i6-eCrZ.js} +39 -39
  9. package/assets/{4zyHb1mmcFfqwpjO.js → B-t1q2NS61c2B8E4.js} +1 -1
  10. package/assets/{BSdRn3B8QeJFflY6.js → B16G2473LTkZP6Mq.js} +157 -137
  11. package/assets/{DrLUi6vduqDLmQjl.js → B4uS01J0mrSJSftQ.js} +89 -89
  12. package/assets/{BzFIkeB_lheiTR7z.js → B6caaQsfOpFEgYQ4.js} +1 -1
  13. package/assets/{b-xk3WtCPBkC4E-Z.js → B7lATTNffVTrDsKE.js} +2 -2
  14. package/assets/{hhpAcu3tINDLk7Ov.js → B8bEJ65vQRqsfBlS.js} +5 -5
  15. package/assets/{ryaMyh_8KvmXVSJd.js → BAVltO4Xf7lC0Xr6.js} +1 -1
  16. package/assets/{3N6hsbh2WLceyO6T.js → BH7ctzMzOYVTGxzA.js} +1 -1
  17. package/assets/{HVwvDMZh0ZGR-hRT.js → BJqo8c5bFKjnq69G.js} +11 -11
  18. package/assets/{DEOkcuqKBFyRnY18.js → BJwiwzwx4Bl5L4Vq.js} +1 -1
  19. package/assets/{CT99WREgkKGpcDTO.js → BPNLZ07Bu_B8Yhf1.js} +1 -1
  20. package/assets/{CSKjFDYwiwn5XNnH.js → BWLavTnANLUerdS0.js} +2 -2
  21. package/assets/{Dvsld01DkmiNLjfP.js → BXWGS09xFG81nnIT.js} +1 -1
  22. package/assets/{C4-0s3Udk3v4ytSn.js → BaYk1vO2hP2S3_1w.js} +2 -2
  23. package/assets/{CHqnRMWNpLKcAWWn.js → BifwlrCmEVtjh_1U.js} +1 -1
  24. package/assets/{CYCqMEoWsry6_hrc.js → BjyXkr-CzV8mVx0t.js} +1 -1
  25. package/assets/{Ds5pLAwSN4lSbao6.js → BkHeIMSE7-LehRCs.js} +1 -1
  26. package/assets/{CwNKcoA7na7Ess3a.js → BkekCZ17YTtd07_C.js} +2 -2
  27. package/assets/{0jPw8-AyT6VbPuGO.js → BnNB_ejvNaLu6B3o.js} +1 -1
  28. package/assets/{BPZWfwUvFCLQInXN.js → BrJd9jVVv9SQzZol.js} +400 -400
  29. package/assets/{BRVEVVhj-8ZPrNyQ.js → BrYc6PLonux_gI6b.js} +223 -223
  30. package/assets/{Cu4VAHfmjXWfTMPu.js → BxwB3iTNSE1TgHkb.js} +1 -1
  31. package/assets/{DgYcOz0M0pmZf9x_.js → By1QPrSxtnRiJu0R.js} +2 -2
  32. package/assets/{B5VTjL9m0R-Icfaz.js → ByYJTTTUuu67hDF-.js} +4 -4
  33. package/assets/{CXk5vwFfosghrTKo.js → C-nA4SXN5hWHaxV6.js} +535 -535
  34. package/assets/{BnGNMsqG5CzUzmX7.js → C0uu0vLKQh0S508B.js} +23 -23
  35. package/assets/{BDq4iVyBh5lwX8pE.js → C6PNMev7cs5JLgwy.js} +1 -1
  36. package/assets/{C1PTfp7kVu3DqqZh.js → C9iFJ52KwQTePQ81.js} +8944 -8935
  37. package/assets/{xDx1vaNa2aCMs4_e.js → CCF6CwJ6cbeLRl23.js} +1 -1
  38. package/assets/{CAgQJrDxGEfoa7jn.js → CEk658HeLJk2cAjM.js} +3 -3
  39. package/assets/{Bf7Irm8Ua4s1T4xH.js → CFNtPYPfDPH-3BXK.js} +1 -1
  40. package/assets/{CHG9Q0uLAZdLXYVz.js → CFT_tDogP98gTbh7.js} +101 -101
  41. package/assets/{ze6Q8BiEw9RClBzZ.js → CFWwwr74qRKOBrg9.js} +1 -1
  42. package/assets/{Bi65BKwwiZYYZprq.js → CIY_RiLu1_FmRLAA.js} +1 -1
  43. package/assets/{D9ja7F9irHf9Iovx.js → CIw6ZC3K9x-ccacl.js} +1 -1
  44. package/assets/{1dUPpOVZSeeylKHv.js → CJ2hV-9ipqOEkLSG.js} +1 -1
  45. package/assets/{vazKaFOkHRriv7tX.js → CKD460cQOgwF6uSV.js} +1 -1
  46. package/assets/{zJoBN2CJdxEV7vdh.js → CM-q_J5aF6YXmjeu.js} +3 -3
  47. package/assets/{9AosCdy_xtdhLjN1.js → CR1aLf7CWEfPTO9a.js} +1 -1
  48. package/assets/{E9mta1q4VtVUusy5.js → CSXmTA6w6Pnbtqvb.js} +1 -1
  49. package/assets/{BI5L_Ysr8s0TQxdg.js → CT4czEKWIj1GeQN8.js} +1 -1
  50. package/assets/{D8dNiNpu9_L0NjGP.js → CUYQlZz5zWsUdmRy.js} +1 -1
  51. package/assets/{CGB4xgirbgEIN3tg.js → CbJWbjmv4bz4ppIZ.js} +356 -354
  52. package/assets/{Bx592y6pyOwTS2x7.js → Cf0zmfQYfJ7zM0Ya.js} +1 -1
  53. package/assets/{8csqJ8aGOdnKlrLl.js → Ch9w7xFxVMrvGuC_.js} +1 -1
  54. package/assets/{GGcMgq3ScY7Tv0PE.js → CmkgQ5-IG0BSCM3R.js} +3 -3
  55. package/assets/{BkqENH8xJ3_NQnD5.js → CmwNIrRssYuLN2fn.js} +422 -422
  56. package/assets/{sYakw2x8dcnpUlsX.js → CnI4Nli8vtWdFKvf.js} +3 -3
  57. package/assets/{DRd8gdwcr3EqtGkb.js → CnKX5SPVE2iuSK42.js} +1 -1
  58. package/assets/{BvKzhnweVF6GhjXh.js → CpvJUGg9ckuCIpIS.js} +1 -1
  59. package/assets/{DFQLoYLUO4TgDZPK.js → Cxzowsi6ASdZtzeI.js} +1 -1
  60. package/assets/{tIoHMgrZeRHWyxos.js → CzRvg04_TIbwBH5C.js} +3 -3
  61. package/assets/{BygXDW3XTdtR38aA.js → D-vo2bQyAmStQmD9.js} +1 -1
  62. package/assets/{DxNK3HVEzFdUou54.js → D6d1DKL15m52ZCuC.js} +1 -1
  63. package/assets/{Z5tQQ6IW5YBjblWX.js → D8k9de_hen-KqBWe.js} +1 -1
  64. package/assets/{91BKH9obG4IfBzhy.js → DE7G34oYbvrfXbJ7.js} +383 -378
  65. package/assets/{BrfsWImwRtf54LUU.js → DFVQIZ2zZyAphhCF.js} +1 -1
  66. package/assets/{D1tShC5iBlUoT2V2.js → DGI_8HyNF0eAv0P5.js} +1 -1
  67. package/assets/{C1yAmXrOu3iHV2cu.js → DGOgx3-IyO8bjF_t.js} +83 -83
  68. package/assets/{BXean6K6oDUxkzyd.js → DIgPlkEabQdKNUQn.js} +1 -1
  69. package/assets/{DmVQgN-N_HhYvakk.js → DJGYlGr2Zj7SkYqc.js} +1 -1
  70. package/assets/{DzGpZ2CQ1St9BF0y.js → DJfpKncnYnrr28G0.js} +1 -1
  71. package/assets/{CHnaSM8aMnQ2_VWW.js → DL8pez0eKo8arYPj.js} +3 -3
  72. package/assets/{tPa3RpqYRqCCCYf1.js → DM-yGHahbfA_uarn.js} +1 -1
  73. package/assets/{DHHYGjNwlLvja3dS.js → DMDTS0LH9Ke9t-3z.js} +1 -1
  74. package/assets/{D89TE5n8VKre9Gmp.js → DNSWaXblwhTtI3w7.js} +1 -1
  75. package/assets/{UgDy0WNXuV1sEnFW.js → DOSWSyKkK4eSi4PD.js} +2 -2
  76. package/assets/{CHpBOpoM9bCvQyn0.js → DPLTGglaPovTg9e5.js} +1 -1
  77. package/assets/{CpYgsvYMxV5SbRp3.js → DPYFRLJbHGlrcrJq.js} +2 -2
  78. package/assets/{DLbzfP7OOWhafkTq.js → DRq6lQLndj73WT35.js} +1 -1
  79. package/assets/{BUGEQS5WdiLcI_0X.js → DRzZ4bEyLRGVOLzV.js} +1 -1
  80. package/assets/{BUIjRIGTum7VuRFk.js → DUbIxDAzW1dzrtdI.js} +1 -1
  81. package/assets/{OfjHqYH31KqC5gVM.js → DXCTHw-ZutNIuo_2.js} +1 -1
  82. package/assets/{OtMeAlbq6tyW5Hnc.js → D_tdoUtUe7cApQJn.js} +4 -4
  83. package/assets/{DawLBAaNAAmo_P3Y.js → DaF9L7No8h8a-cqb.js} +2 -2
  84. package/assets/{DdDKDqtpIkzd-mXi.js → DaHD9SY75O8wDy3p.js} +2 -2
  85. package/assets/{CXqqaFgNeUVRGvEb.js → Daaro0HbHkKXkBP-.js} +2 -2
  86. package/assets/{BiC09_YKQPmlUklQ.js → DczQhB3mRSUw6GCf.js} +1 -1
  87. package/assets/Dfv_T_PQVL0O3lu5.js +14 -0
  88. package/assets/{B6pXiayrnDoDbQt1.js → Dhy6iU_09lrQnOAV.js} +47 -47
  89. package/assets/{Dbh-XVDw294AVLtl.js → Dk9zYXO3VoBhTdex.js} +1 -1
  90. package/assets/{DQIQR1t3IkC9wshP.js → DkQ4kxEKhKYQgfjK.js} +1 -1
  91. package/assets/{CSGN4rAf7CYnBDEa.js → Dlqk7XqKnAZ8Pcj3.js} +83 -83
  92. package/assets/{BaaVzb7xXROiWUhT.js → DqSBb1HmgeU7eg_i.js} +84 -84
  93. package/assets/{BgwCdHyXKQYFAl1M.js → Ds4TB1hn56-RK6_f.js} +1 -1
  94. package/assets/{VWEaItb0XvCoRiCT.js → DtVSjxL6N_7WyM8Z.js} +1 -1
  95. package/assets/{C9wlvcFyjQA59G-_.js → DuEtCJEnG_GnJzTX.js} +1 -1
  96. package/assets/{DdnALoxd3b8TLNla.js → DwNcvKM47ZHfvQM6.js} +1 -1
  97. package/assets/{CdtVv8YQ8PTmS4dz.js → DyiH3LlinD-38bG7.js} +1 -1
  98. package/assets/{hAVtdK6u2tlLI2cB.js → Jy-_0a72nn5Iv1NK.js} +1 -1
  99. package/assets/{Bzp3UtK_6fqEVlV8.js → KMzONx2Ps841nJHj.js} +8 -8
  100. package/assets/{CV729JV1mNyYCmrq.js → LM2rVDHdB0jVUFcT.js} +1 -1
  101. package/assets/{do_DTptu6c_xHJoZ.js → MosMza0-rXD8uHX_.js} +2 -2
  102. package/assets/{COVhUB0EotytQDHg.js → NAWWzA_hk4wYtsPP.js} +2 -2
  103. package/assets/{CufFcGwo5x95LSb7.js → P6V3JAiRpC3BWceC.js} +1 -1
  104. package/assets/{1U3DwsqHnOBwiGWn.js → TZnuVwhVjkOBax9F.js} +2 -2
  105. package/assets/{nSzQt54CIADky_tF.js → TdDTOcC1TYhk6UuR.js} +1 -1
  106. package/assets/{CGxhgXj5qKj_Ubcp.js → Xccc6oxtlSvJUDsC.js} +1 -1
  107. package/assets/{DAqaOCEQLmZRjcdR.js → a2e_g9YI3J-lUD7-.js} +1 -1
  108. package/assets/{D-N87jCOShDKTFDh.js → b8yACuWy67eIj_j2.js} +1 -1
  109. package/assets/{BlxrCp7d-SeM-2DW.js → bv3fZLUPzd14I58C.js} +631 -621
  110. package/assets/{CKhbbbjQ-_auMp3n.js → doqBmhonQlHp-1Ud.js} +1 -1
  111. package/assets/{BZxJKqVEO7B23XwE.js → fEfisM0E2fUYKIyU.js} +5 -5
  112. package/assets/{v5XZSqLd9ZV3kqcA.js → flby0g5gyZ9P2Wu2.js} +1 -1
  113. package/assets/{coTH4ab6CTEzw87b.js → g2Nu44uuSJFMzxEV.js} +2 -2
  114. package/assets/{Cahhn5OLNqRYy-n8.js → mZt9BTEejCJZ4YK4.js} +1 -1
  115. package/assets/{BnK6HEqT4rf1RoOG.js → qc7rA-Z3a4rkVQPx.js} +217 -217
  116. package/assets/{DsBXjYAgTUXAAWZZ.js → sJVPCrgeh0U6LbAK.js} +1 -1
  117. package/assets/{wWgI0JPoe_Wv0ceW.js → suLYEZBtGUhSYeB7.js} +1 -1
  118. package/assets/{WSiEiaP-NUEr9UaB.js → tWO-mE87mAuj1qih.js} +2 -2
  119. package/assets/{DdXp_iPwTOHAOvlL.js → xD41vsQY6h60lCqz.js} +1168 -1170
  120. package/assets/{C7zManFR1LEJXiwb.js → yz2PTfYm_8EGJPM5.js} +1 -1
  121. package/index.js +117 -117
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +12 -12
  124. package/package.json +4 -4
  125. package/screenshot-page/assets/{CFl15-2FAF9f3V7L.js → 0UZBKpOOsp7P-DkP.js} +2 -2
  126. package/screenshot-page/assets/{DfT1DMR1b5kiyYiV.js → B-0-chiwq4MIUQy9.js} +1 -1
  127. package/screenshot-page/assets/B7pXfEVkcbaMBMhc.js +1 -0
  128. package/screenshot-page/assets/BDRMUi2BsnBqytIq.js +2 -0
  129. package/screenshot-page/assets/BEjJHVSbtlsNtoq7.js +3 -0
  130. package/screenshot-page/assets/{BnZX0sxceYpvtg3I.js → BIuMiduMHSsTGacU.js} +2 -2
  131. package/screenshot-page/assets/BKwDvElKinpn1IK0.js +1 -0
  132. package/screenshot-page/assets/BPMQ22uISGOm3ymr.js +1 -0
  133. package/screenshot-page/assets/{adhmz3N2Kgq5eW66.js → BTJ1NNUzHotNDiDe.js} +2 -2
  134. package/screenshot-page/assets/BbT5KRhoeAKLzy54.js +2 -0
  135. package/screenshot-page/assets/{Dwv5Z_c2XS-hm-5y.js → BcZPWw18bdj_ZvA9.js} +1 -1
  136. package/screenshot-page/assets/{BEwl-ucV9Jfr0RoC.js → Bdb0azxGoCh6NBDk.js} +1 -1
  137. package/screenshot-page/assets/{CcOIj8c4N9KaWnD7.js → Bfq6-treWd_rRiWl.js} +1 -1
  138. package/screenshot-page/assets/{BGh5K-hHzy8mSVDr.js → Bg9UyX4yrB2mSdJt.js} +12 -12
  139. package/screenshot-page/assets/Bxq4FCQhyPbVhhaR.js +2 -0
  140. package/screenshot-page/assets/{zFbb8ESzwR_bE7IQ.js → CBP4y6KFPu24xhDT.js} +1 -1
  141. package/screenshot-page/assets/CI3Z1f4amZ9G2rPD.js +5 -0
  142. package/screenshot-page/assets/{COpZTXe_J1mSpeYD.js → CNB6WmYfGVZjlCKV.js} +1 -1
  143. package/screenshot-page/assets/{CXGgKVbVXjWzE0p6.js → CQ-33-es3XJ56pR4.js} +1 -1
  144. package/screenshot-page/assets/CSFFMEKyxEFaykqL.js +1 -0
  145. package/screenshot-page/assets/CXeJV1BW2CVemhPE.js +1 -0
  146. package/screenshot-page/assets/{Cmv8bpHaTWZ7Lmbt.js → C_YKEkTsGB_5gFNg.js} +2 -2
  147. package/screenshot-page/assets/CkxmJxdtjBIxYoMq.js +1 -0
  148. package/screenshot-page/assets/CtiTwHzd_ZSzd3W2.js +1 -0
  149. package/screenshot-page/assets/CwCu_r0BW41uLt3P.js +2 -0
  150. package/screenshot-page/assets/{DdusmeEPaU7CWT6e.js → Cx9eq2x1gIXGki3Q.js} +1 -1
  151. package/screenshot-page/assets/D43IayseD2Cy8OZo.js +4 -0
  152. package/screenshot-page/assets/{BftXEPOuf5Uwxpud.js → D6Ciix7JAZtdKqmj.js} +1 -1
  153. package/screenshot-page/assets/D6EXAYU-ZH8hjx_7.js +2 -0
  154. package/screenshot-page/assets/D7Yt7xmUlA6-Lq0Q.js +48 -0
  155. package/screenshot-page/assets/D8KyhLvfyjLZW92H.js +39 -0
  156. package/screenshot-page/assets/DACSL7FA_J91Z_H7.js +2 -0
  157. package/screenshot-page/assets/DBxAatsD6aWk7Zb6.js +586 -0
  158. package/screenshot-page/assets/DGkaCFHx4PsOJkFu.js +1 -0
  159. package/screenshot-page/assets/DM6hr-bvWV50-Oex.js +2 -0
  160. package/screenshot-page/assets/DOVt9zHz7FQ2KUQM.js +1 -0
  161. package/screenshot-page/assets/DR-og7vslxlOZd8j.js +1 -0
  162. package/screenshot-page/assets/DSTlKGmqncM7XHeW.js +1 -0
  163. package/screenshot-page/assets/Dh14XQinAphjZOKC.js +1 -0
  164. package/screenshot-page/assets/Dkf51CnZh2zPEGMd.js +1 -0
  165. package/screenshot-page/assets/{nM1r2xslndIMKlI2.js → DmDFKv_3APEWI-IY.js} +2 -2
  166. package/screenshot-page/assets/Dt8JxbBBr2TeDflQ.js +1 -0
  167. package/screenshot-page/assets/Dxi-bXNjS-CpC5Qr.js +1 -0
  168. package/screenshot-page/assets/{Bm9-R9keVK5Sx-8o.js → DynKB5GH-vfFMJEy.js} +1 -1
  169. package/screenshot-page/assets/{CZq2dMHs2MHHyyBl.js → FcTM4SB17cEX1M3X.js} +1 -1
  170. package/screenshot-page/assets/{B668_VaGrdcWRbkC.js → FqdZRM336KMEcsbU.js} +1 -1
  171. package/screenshot-page/assets/Oay0yGsGYgJDzy8r.js +1 -0
  172. package/screenshot-page/assets/Pt9ne0xkE2icD3Ih.js +1 -0
  173. package/screenshot-page/assets/QZg76Jflu3Q808W3.js +1 -0
  174. package/screenshot-page/assets/{BRemww1df2HKLd_k.js → WTrYzPnMQhYDILMR.js} +1 -1
  175. package/screenshot-page/assets/{CXUO3vYip3JPSJ7A.js → YH1wNXzhQbkuWxeS.js} +1 -1
  176. package/screenshot-page/assets/{CQ9C0-FcDZxrgC3T.js → a3fvt1Klg1uGE7p6.js} +7 -7
  177. package/screenshot-page/assets/{D8-mayyvvVE1a4JB.js → clrFU8i-0wNkmbs7.js} +1 -1
  178. package/screenshot-page/assets/{-cpi3yOZYn6GsYN4.js → gU2zeJaXoNh7QI_e.js} +2 -2
  179. package/screenshot-page/assets/r2HZG9_SMzF3__ID.js +13 -0
  180. package/screenshot-page/index.html +16 -16
  181. package/types/scripting-api.json +5747 -5744
  182. package/types/scripting.d.ts +27 -3
  183. package/assets/r-pk3RNq_HjMQFqr.js +0 -14
  184. package/screenshot-page/assets/0buGanYjZDNd9qAK.js +0 -39
  185. package/screenshot-page/assets/B2oadmu_j6WfNbZ1.js +0 -1
  186. package/screenshot-page/assets/BGWgIYge30MP6Xhz.js +0 -48
  187. package/screenshot-page/assets/BIQ7KK-buzeddVA9.js +0 -1
  188. package/screenshot-page/assets/BPRDGSNh0kvXRFUY.js +0 -1
  189. package/screenshot-page/assets/Bv2MgCMkg3EIQ6iE.js +0 -13
  190. package/screenshot-page/assets/BvaiwYJ5zZ0d5NRP.js +0 -1
  191. package/screenshot-page/assets/CAlTfQ_Gh-dURmUc.js +0 -1
  192. package/screenshot-page/assets/CCFxspvs5VzbYCfl.js +0 -1
  193. package/screenshot-page/assets/CCqTTfzZokVHIzs2.js +0 -1
  194. package/screenshot-page/assets/CPs_ARK8JCyz-yZg.js +0 -1
  195. package/screenshot-page/assets/CUeMb48Ucrm5dK5u.js +0 -1
  196. package/screenshot-page/assets/CjrHeIdacavAT_Ud.js +0 -3
  197. package/screenshot-page/assets/CqccUqSMYlwlf2ZU.js +0 -2
  198. package/screenshot-page/assets/CvmImq-Kbg9srxNr.js +0 -4
  199. package/screenshot-page/assets/D-3wYBqe4SWdE6bx.js +0 -2
  200. package/screenshot-page/assets/D-FWnGDbZ9BRDzPR.js +0 -1
  201. package/screenshot-page/assets/D717DArr-KKL0U6R.js +0 -1
  202. package/screenshot-page/assets/DM27mE98BNk1T18I.js +0 -1
  203. package/screenshot-page/assets/DN-T1DyRMKvxEJSK.js +0 -1
  204. package/screenshot-page/assets/DRdL1GN4SP7P8lSP.js +0 -2
  205. package/screenshot-page/assets/DcnhaY93LQd7kVdH.js +0 -2
  206. package/screenshot-page/assets/DigI6jhjHePzLgg1.js +0 -1
  207. package/screenshot-page/assets/DrDLCC0R2IV5VJd7.js +0 -1
  208. package/screenshot-page/assets/DuYb_otrRZZDq6-f.js +0 -2
  209. package/screenshot-page/assets/Dx0pUf3G4Oa3dGOk.js +0 -1
  210. package/screenshot-page/assets/JcgNMFaj_uqHSFxr.js +0 -1
  211. package/screenshot-page/assets/U_8_wApwfA7KmIG3.js +0 -586
  212. package/screenshot-page/assets/WZprjN2sb7HlraOb.js +0 -2
  213. package/screenshot-page/assets/qjoaeEBxfKWCHmqK.js +0 -2
  214. package/screenshot-page/assets/zALFdtoGJBN6m2Bn.js +0 -1
  215. package/screenshot-page/assets/zd1Z2E1NjFp2EWC7.js +0 -5
@@ -1,36 +1,36 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.22
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.24
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 { ht as e } from "./DHHYGjNwlLvja3dS.js";
8
- import { i as t } from "./BSdRn3B8QeJFflY6.js";
9
- import { a as n, c as r, f as i, o as s, u as l } from "./BUGEQS5WdiLcI_0X.js";
10
- import { At as o, Bn as a, Bt as u, In as c, J as f, Jr as p, K as d, Kn as g, Si as v, Tr as h, Vr as m, Wn as y, Yn as I, _n as b, a as x, at as R, ba as E, cn as T, g as A, hr as S, ki as w, l as C, mo as N, mr as F, ri as P, s as k, si as L, un as $, vi as B, vr as O, w as V } from "./C1PTfp7kVu3DqqZh.js";
11
- var z = (e, t) => e + t, D = (e, t) => e - t, W = (e, t) => u(e + t, e), M = (e, t) => u(e - t, e), U = (e, t) => y(e * t), _ = (e, t) => 0 === t ? l.BuiltIn.Div0 : y(e / t), j = (e, t) => {
7
+ import { ht as e } from "./DMDTS0LH9Ke9t-3z.js";
8
+ import { i as t } from "./B16G2473LTkZP6Mq.js";
9
+ import { a as n, c as r, f as i, o as s, u as l } from "./DRzZ4bEyLRGVOLzV.js";
10
+ import { $n as o, Ci as a, Ea as u, Hi as c, Ia as f, Ir as p, Ki as d, Kt as g, Pr as v, T as h, Ta as m, Vn as y, W as I, Xt as b, ar as x, co as R, gr as E, i as T, ii as A, ji as S, kn as w, lt as C, m as N, oo as F, po as P, rn as k, sr as L, un as $, wn as O, wt as B, xi as V } from "./C9iFJ52KwQTePQ81.js";
11
+ var z = (e, t) => e + t, D = (e, t) => e - t, W = (e, t) => O(e + t, e), M = (e, t) => O(e - t, e), U = (e, t) => P(e * t), _ = (e, t) => 0 === t ? l.BuiltIn.Div0 : P(e / t), j = (e, t) => {
12
12
  if (0 === e) {
13
13
  if (t < 0) return l.BuiltIn.Div0;
14
14
  if (0 === t) return NaN;
15
15
  }
16
16
  if (e < 0) {
17
- if (Number.isInteger(t) && Math.abs(t) <= 4294967294) return y(e ** t);
17
+ if (Number.isInteger(t) && Math.abs(t) <= 4294967294) return P(e ** t);
18
18
  const n = Number((1 / t).toPrecision(15));
19
- return Number.isInteger(n) && 1 === Math.abs(n % 2) ? y(-((-e) ** t)) : NaN;
19
+ return Number.isInteger(n) && 1 === Math.abs(n % 2) ? P(-((-e) ** t)) : NaN;
20
20
  }
21
- return y(e ** t);
21
+ return P(e ** t);
22
22
  }, G = (e = "", t = "") => {
23
23
  null === e && (e = ""), null === t && (t = "");
24
24
  const n = typeof t;
25
- "boolean" == typeof e && (e = d(e)), "boolean" === n && (t = d(t));
25
+ "boolean" == typeof e && (e = g(e)), "boolean" === n && (t = g(t));
26
26
  const r = "" + e + t;
27
27
  return r.length > s.MAX_TEXT_LENGTH ? r.slice(0, s.MAX_TEXT_LENGTH) : r;
28
- }, H = (e, t = null, n = null) => 0 === e.compare(t, n), X = (e, t = null, n = null) => 0 !== e.compare(t, n), K = (e, t = null, n = null) => e.compare(t, n) > 0, J = (e, t = null, n = null) => e.compare(t, n) >= 0, Z = (e, t = null, n = null) => e.compare(t, n) < 0, q = (e, t = null, n = null) => e.compare(t, n) <= 0, Y = {
28
+ }, H = (e, t = null, n = null) => 0 === e.compare(t, n), X = (e, t = null, n = null) => 0 !== e.compare(t, n), K = (e, t = null, n = null) => e.compare(t, n) > 0, Z = (e, t = null, n = null) => e.compare(t, n) >= 0, q = (e, t = null, n = null) => e.compare(t, n) < 0, J = (e, t = null, n = null) => e.compare(t, n) <= 0, Q = {
29
29
  type: i.Number,
30
30
  coerce: [i.Boolean, i.String],
31
31
  onError: "value",
32
32
  misalignValue: l.BuiltIn.NA
33
- }, Q = {
33
+ }, Y = {
34
34
  type: i.String,
35
35
  coerce: [i.Boolean, i.Number],
36
36
  onError: "value",
@@ -45,12 +45,12 @@ var z = (e, t) => e + t, D = (e, t) => e - t, W = (e, t) => u(e + t, e), M = (e,
45
45
  let s, o;
46
46
  if (t?.isIRange ? s = t : n?.isIRange && (o = n), !s && !o) {
47
47
  const s = e.getRuntime();
48
- return t = c(s, t, $(t, !0), i.Number, !0), n = c(s, n, $(n, !0), i.Number, !0), t && l.isError(t) ? t : n && l.isError(n) ? n : r(t, n);
48
+ return t = b(s, t, R(t, !0), i.Number, !0), n = b(s, n, R(n, !0), i.Number, !0), t && l.isError(t) ? t : n && l.isError(n) ? n : r(t, n);
49
49
  }
50
- const a = !s, u = a ? t : n;
51
- return (s ?? o).broadcast(u, (t, n) => t && l.isError(t) ? t : n && l.isError(n) ? n : S(a ? r(n, t) : r(t, n), e), Y).fillEmpty(0);
50
+ const u = !s, c = u ? t : n;
51
+ return (s ?? o).broadcast(c, (t, n) => t && l.isError(t) ? t : n && l.isError(n) ? n : a(u ? r(n, t) : r(t, n), e), Q).fillEmpty(0);
52
52
  }, re = (e, t, r, i) => {
53
- if (L(t) || L(r)) return l.BuiltIn.Value;
53
+ if (d(t) || d(r)) return l.BuiltIn.Value;
54
54
  if (n(t) || n(r)) return l.BuiltIn.Value;
55
55
  if (null !== t && void 0 !== t.colStart && (t = e.getValueAt(t.rowStart, t.colStart, t.scope)) && l.isError(t)) return t;
56
56
  if (null !== r && void 0 !== r.colStart && (r = e.getValueAt(r.rowStart, r.colStart, r.scope)) && l.isError(r)) return r;
@@ -70,9 +70,9 @@ var z = (e, t) => e + t, D = (e, t) => e - t, W = (e, t) => u(e + t, e), M = (e,
70
70
  if ("-" !== t) throw new l.Value(`Unrecognized prefix: ${t}`);
71
71
  if (s = -s, n?.isIRange && (r = n), !r) {
72
72
  const t = e.getRuntime();
73
- return "number" != typeof (n = c(t, n, $(n, !0), i.Number, !0)) ? l.BuiltIn.Value : n * s;
73
+ return "number" != typeof (n = b(t, n, R(n, !0), i.Number, !0)) ? l.BuiltIn.Value : n * s;
74
74
  }
75
- return r.broadcast(s, (e, t) => e && l.isError(e) ? e : t && l.isError(t) ? t : U(e, t), Y);
75
+ return r.broadcast(s, (e, t) => e && l.isError(e) ? e : t && l.isError(t) ? t : U(e, t), Q);
76
76
  }, le = (e) => e.getCode() <= l.Code.NA ? e : l.BuiltIn.Value, oe = (e, t, n, r, i) => {
77
77
  if (l.isError(t)) return le(t);
78
78
  if (n && l.isError(n)) return le(n);
@@ -93,18 +93,18 @@ var z = (e, t) => e + t, D = (e, t) => e - t, W = (e, t) => u(e + t, e), M = (e,
93
93
  "*": (e, t, n) => ne(e, t, n, U),
94
94
  "/": (e, t, n) => ne(e, t, n, _),
95
95
  "^": (e, t, n) => ne(e, t, n, j),
96
- " ": (e, t, n, r) => oe(e, t, n, E, "either"),
97
- ":": (e, t, n, r) => oe(e, t, n, I, "start"),
96
+ " ": (e, t, n, r) => oe(e, t, n, y, "either"),
97
+ ":": (e, t, n, r) => oe(e, t, n, L, "start"),
98
98
  ".:.": (e, t, n, r) => {
99
- const i = oe(e, t, n, I, "start");
99
+ const i = oe(e, t, n, L, "start");
100
100
  return e.getFunction("TRIMRANGE").execute(i, 3, 3);
101
101
  },
102
102
  ".:": (e, t, n, r) => {
103
- const i = oe(e, t, n, I, "start");
103
+ const i = oe(e, t, n, L, "start");
104
104
  return e.getFunction("TRIMRANGE").execute(i, 1, 1);
105
105
  },
106
106
  ":.": (e, t, n, r) => {
107
- const i = oe(e, t, n, I, "start");
107
+ const i = oe(e, t, n, L, "start");
108
108
  return e.getFunction("TRIMRANGE").execute(i, 2, 2);
109
109
  },
110
110
  "&": (e, t, n) => ((e, t, n, r) => {
@@ -114,17 +114,17 @@ var z = (e, t) => e + t, D = (e, t) => e - t, W = (e, t) => u(e + t, e), M = (e,
114
114
  let s, o;
115
115
  if (t?.isIRange ? s = t : n?.isIRange && (o = n), !s && !o) {
116
116
  const s = e.getRuntime();
117
- return t = c(s, t, $(t, !0), i.String, !1), n = c(s, n, $(n, !0), i.String, !1), l.isError(t) ? t : l.isError(n) ? n : r(t, n);
117
+ return t = b(s, t, R(t, !0), i.String, !1), n = b(s, n, R(n, !0), i.String, !1), l.isError(t) ? t : l.isError(n) ? n : r(t, n);
118
118
  }
119
119
  const a = !s, u = a ? t : n;
120
- return (s ?? o).broadcast(u, (e, t) => e && l.isError(e) ? e : t && l.isError(t) ? t : a ? r(t, e) : r(e, t), Q);
120
+ return (s ?? o).broadcast(u, (e, t) => e && l.isError(e) ? e : t && l.isError(t) ? t : a ? r(t, e) : r(e, t), Y);
121
121
  })(e, t, n, G),
122
122
  "=": (e, t, n) => re(e, t, n, H),
123
123
  "<>": (e, t, n) => re(e, t, n, X),
124
124
  ">": (e, t, n) => re(e, t, n, K),
125
- "<": (e, t, n) => re(e, t, n, Z),
126
- ">=": (e, t, n) => re(e, t, n, J),
127
- "<=": (e, t, n) => re(e, t, n, q)
125
+ "<": (e, t, n) => re(e, t, n, q),
126
+ ">=": (e, t, n) => re(e, t, n, Z),
127
+ "<=": (e, t, n) => re(e, t, n, J)
128
128
  }, ue = {
129
129
  "+": (e, t, n) => ne(e, t, n, W),
130
130
  "-": (e, t, n) => ne(e, t, n, M)
@@ -159,38 +159,38 @@ var de = class {
159
159
  value: null,
160
160
  inputs: null
161
161
  };
162
- if (this.references.set(e, t), n === b.Cell) {
162
+ if (this.references.set(e, t), n === N.Cell) {
163
163
  const n = e.value;
164
164
  n.$colIndex && (t.hasHorizontalAbs = !0), n.$rowIndex && (t.hasVerticalAbs = !0), t.value = this.cells.size, this.cells.set(e, this.cells.size), this.rootReferences.add(t), e.referenceIndex = this.referenceIndices.length, this.referenceIndices.push(t.index);
165
165
  return;
166
166
  }
167
- if (n === b.Infix || n === b.Prefix || n === b.Postfix || n === b.List) {
167
+ if (n === N.Infix || n === N.Prefix || n === N.Postfix || n === N.List) {
168
168
  const n = e.inputs || [], r = n.length, i = e.value;
169
169
  t.op = i;
170
- const s = w(r);
170
+ const s = T(r);
171
171
  t.inputs = s;
172
172
  for (let e = 0; e < r; e++) {
173
173
  const r = n[e], i = this.references.get(r);
174
174
  i ? (i.hasHorizontalAbs && (t.hasHorizontalAbs = !0), i.hasVerticalAbs && (t.hasVerticalAbs = !0), s[e] = i.index) : s[e] = -1, i && this.rootReferences.delete(i);
175
175
  }
176
- if (this.rootReferences.add(t), Ze.includes(i)) {
177
- const r = n[0], i = !!r && r.type === b.Cell, s = n[1], l = !!s && s.type === b.Cell;
176
+ if (this.rootReferences.add(t), qe.includes(i)) {
177
+ const r = n[0], i = !!r && r.type === N.Cell, s = n[1], l = !!s && s.type === N.Cell;
178
178
  i && l && void 0 !== s.referenceIndex && void 0 !== r.referenceIndex && (this.referenceIndices.splice(s.referenceIndex, 1), s.referenceIndex = r.referenceIndex, e.referenceIndex = r.referenceIndex, this.referenceIndices[r.referenceIndex] = t.index);
179
179
  } else "#" === i && n[0] && (e.referenceIndex = n[0].referenceIndex);
180
180
  return;
181
181
  }
182
- if (n === b.Error || n === b.Named) {
183
- const r = n === b.Named ? e.value.nameId : C(e.value);
182
+ if (n === N.Error || n === N.Named) {
183
+ const r = n === N.Named ? e.value.nameId : p(e.value);
184
184
  let i = this.names.get(r);
185
185
  t.op = n, void 0 === i && (i = this.names.size, this.names.set(r, i)), t.value = i, this.rootReferences.add(t), e.referenceIndex = this.referenceIndices.length, this.referenceIndices.push(t.index);
186
186
  return;
187
187
  }
188
- if (n === b.TableReference) return t.op = n, this.rootReferences.add(t), e.referenceIndex = this.referenceIndices.length, void this.referenceIndices.push(t.index);
188
+ if (n === N.TableReference) return t.op = n, this.rootReferences.add(t), e.referenceIndex = this.referenceIndices.length, void this.referenceIndices.push(t.index);
189
189
  } else if (t && t.isReference) {
190
190
  const t = {
191
191
  node: e,
192
192
  index: this.references.size,
193
- op: b.Function,
193
+ op: N.Function,
194
194
  value: e.value,
195
195
  inputs: null
196
196
  };
@@ -198,11 +198,11 @@ var de = class {
198
198
  }
199
199
  }
200
200
  };
201
- function ge(e, t = !1, n = A) {
201
+ function ge(e, t = !1, n = $) {
202
202
  const r = [], i = /* @__PURE__ */ new Set(), s = (e, n, s) => {
203
203
  const l = {
204
204
  type: e.type,
205
- value: e.type === b.Error ? m(e.value) : e.value
205
+ value: e.type === N.Error ? A(e.value) : e.value
206
206
  };
207
207
  void 0 !== e.image && (l.text = ((e) => {
208
208
  const n = t ? e.value?.scopeImage : void 0;
@@ -212,7 +212,7 @@ function ge(e, t = !1, n = A) {
212
212
  return void 0 !== o && (l.evalIndex = o), n && (l.context = n), void 0 !== e.referenceIndex && (l.referenceIndex = e.referenceIndex), e.isReference && i.add(l), r.push(l), l;
213
213
  }, l = (e, t, n, i, s) => {
214
214
  if (null == t) return;
215
- if (r.length > 1 && e === b.Whitespace && r[r.length - 1].type === b.Whitespace) return;
215
+ if (r.length > 1 && e === N.Whitespace && r[r.length - 1].type === N.Whitespace) return;
216
216
  const l = {
217
217
  type: e,
218
218
  value: t,
@@ -220,185 +220,185 @@ function ge(e, t = !1, n = A) {
220
220
  };
221
221
  void 0 !== i && (l.evalIndex = i), n && (l.context = n), r.push(l);
222
222
  };
223
- (function e(a, u, c) {
224
- const p = a.evalIndex ?? c ?? 0, d = a.type, g = (t, r, i) => {
223
+ (function e(o, a, u) {
224
+ const c = o.evalIndex ?? u ?? 0, f = o.type, p = (t, r, i) => {
225
225
  if (!t) return;
226
226
  const s = t.length;
227
- for (let o = 0; o < s; o++) e(t[o], r, i), o < s - 1 && l(b.Separator, ",", r, i, n.separatorFunction);
227
+ for (let o = 0; o < s; o++) e(t[o], r, i), o < s - 1 && l(N.Separator, ",", r, i, n.separatorFunction);
228
228
  };
229
- if (a.isLiteral) {
230
- if (l(b.Whitespace, a.wsBefore, u, p), d === b.Array) {
231
- l(b.Type, "{", u, p);
232
- const t = a.value, r = t.length;
229
+ if (o.isLiteral) {
230
+ if (l(N.Whitespace, o.wsBefore, a, c), f === N.Array) {
231
+ l(N.Type, "{", a, c);
232
+ const t = o.value, r = t.length;
233
233
  for (let i = 0; i < r; i++) {
234
- const s = t[i], o = s.value, a = o.length;
235
- for (let t = 0; t < a; t++) {
234
+ const s = t[i], o = s.value, u = o.length;
235
+ for (let t = 0; t < u; t++) {
236
236
  const r = o[t];
237
- l(b.Whitespace, r.wsBefore, u, p), e(r, u, p), l(b.Whitespace, r.wsAfter, u, p), t < a - 1 && l(b.Separator, ",", u, p, n.separatorColumn);
237
+ l(N.Whitespace, r.wsBefore, a, c), e(r, a, c), l(N.Whitespace, r.wsAfter, a, c), t < u - 1 && l(N.Separator, ",", a, c, n.separatorColumn);
238
238
  }
239
- i < r - 1 && (l(b.Whitespace, s.wsBefore, u, p), l(b.Separator, ";", u, p, n.separatorRow), l(b.Whitespace, s.wsAfter, u, p));
239
+ i < r - 1 && (l(N.Whitespace, s.wsBefore, a, c), l(N.Separator, ";", a, c, n.separatorRow), l(N.Whitespace, s.wsAfter, a, c));
240
240
  }
241
- a.error || l(b.Type, "}", u, p);
242
- } else d === b.String ? (a = {
243
- type: d,
244
- value: "\"" + `${a.value}`.replace(/"/g, "\"\"") + "\"",
245
- image: a.image
246
- }, s(a, u, p)) : s(a, u, p);
247
- l(b.Whitespace, a.wsAfter, u, p);
248
- } else if (d === b.Infix) e(a.inputs[0], u, p), l(b.Whitespace, a.wsBefore, u, p), s(a, u, p), l(b.Whitespace, a.wsAfter, u, p), e(a.inputs[1], u, p);
249
- else if (d === b.Prefix) l(b.Whitespace, a.wsBefore, u, p), s(a, u, p), l(b.Whitespace, a.wsAfter, u, p), a.inputs && e(a.inputs[0], u, p);
250
- else if (d === b.Postfix) {
251
- a.inputs?.[0] && e(a.inputs[0], u, p), l(b.Whitespace, a.wsBefore, u, p);
252
- const t = s(a, u, p), n = r[r.length - 2];
253
- "#" === a.value && void 0 !== t.text && !a.wsBefore && i.has(n) && (n.text = (n.text ?? "") + t.text, t.text = ""), l(b.Whitespace, a.wsAfter, u, p);
241
+ o.error || l(N.Type, "}", a, c);
242
+ } else f === N.String ? (o = {
243
+ type: f,
244
+ value: "\"" + `${o.value}`.replace(/"/g, "\"\"") + "\"",
245
+ image: o.image
246
+ }, s(o, a, c)) : s(o, a, c);
247
+ l(N.Whitespace, o.wsAfter, a, c);
248
+ } else if (f === N.Infix) e(o.inputs[0], a, c), l(N.Whitespace, o.wsBefore, a, c), s(o, a, c), l(N.Whitespace, o.wsAfter, a, c), e(o.inputs[1], a, c);
249
+ else if (f === N.Prefix) l(N.Whitespace, o.wsBefore, a, c), s(o, a, c), l(N.Whitespace, o.wsAfter, a, c), o.inputs && e(o.inputs[0], a, c);
250
+ else if (f === N.Postfix) {
251
+ o.inputs?.[0] && e(o.inputs[0], a, c), l(N.Whitespace, o.wsBefore, a, c);
252
+ const t = s(o, a, c), n = r[r.length - 2];
253
+ "#" === o.value && void 0 !== t.text && !o.wsBefore && i.has(n) && (n.text = (n.text ?? "") + t.text, t.text = ""), l(N.Whitespace, o.wsAfter, a, c);
254
254
  } else {
255
- l(b.Whitespace, a.wsBefore, u, p);
256
- const c = a.inputs;
257
- switch (d) {
258
- case b.Function: {
259
- const t = String(a.value), i = {
260
- type: b.Function,
255
+ l(N.Whitespace, o.wsBefore, a, c);
256
+ const u = o.inputs;
257
+ switch (f) {
258
+ case N.Function: {
259
+ const t = String(o.value), i = {
260
+ type: N.Function,
261
261
  value: t,
262
- text: a.image ?? t,
263
- evalIndex: a.evalIndex
262
+ text: o.image ?? t,
263
+ evalIndex: o.evalIndex
264
264
  };
265
- u && (i.context = u), r.push(i);
265
+ a && (i.context = a), r.push(i);
266
266
  const s = {
267
267
  name: t,
268
268
  argIndex: -1,
269
- type: a.binder?.kind ?? "function"
269
+ type: o.binder?.kind ?? "function"
270
270
  };
271
- if (u?.bound && (s.bound = u.bound), l(b.Paren, "(", s, a.evalIndex), c) {
272
- const t = c.length, r = a.binder?.kind, i = "lambda" === r ? 1 : "let" === r ? 2 : 0;
273
- let o = s.bound;
274
- for (let a = 0; a < t; a++) {
275
- const u = i && a >= i ? c[a - i] : void 0;
276
- if (u?.binding?.declaration) {
277
- const e = u.value.nameId, t = "let" === r ? Rt(c[a - 1]) : void 0;
278
- o = xt(o, t ? {
271
+ if (a?.bound && (s.bound = a.bound), l(N.Paren, "(", s, o.evalIndex), u) {
272
+ const t = u.length, r = o.binder?.kind, i = "lambda" === r ? 1 : "let" === r ? 2 : 0;
273
+ let a = s.bound;
274
+ for (let o = 0; o < t; o++) {
275
+ const f = i && o >= i ? u[o - i] : void 0;
276
+ if (f?.binding?.declaration) {
277
+ const e = f.value.nameId, t = "let" === r ? Rt(u[o - 1]) : void 0;
278
+ a = xt(a, t ? {
279
279
  name: e,
280
280
  params: t
281
281
  } : { name: e });
282
282
  }
283
- const f = {
283
+ const p = {
284
284
  ...s,
285
- argIndex: a
285
+ argIndex: o
286
286
  };
287
- o && (f.bound = o), e(c[a], f, p), a < t - 1 && l(b.Separator, ",", f, p, n.separatorFunction);
287
+ a && (p.bound = a), e(u[o], p, c), o < t - 1 && l(N.Separator, ",", p, c, n.separatorFunction);
288
288
  }
289
289
  }
290
- a.error || l(b.Paren, ")", s, a.evalIndex);
290
+ o.error || l(N.Paren, ")", s, o.evalIndex);
291
291
  break;
292
292
  }
293
- case b.Call: {
294
- const t = o(a), i = r.length;
295
- if (t && e(t, u, p), t?.type === b.Named) for (let e = i; e < r.length; e++) {
293
+ case N.Call: {
294
+ const t = I(o), i = r.length;
295
+ if (t && e(t, a, c), t?.type === N.Named) for (let e = i; e < r.length; e++) {
296
296
  const t = r[e];
297
- t.type !== b.Whitespace && (t.evalIndex = a.evalIndex, t.type === b.Named && (t.type = b.Function, t.value = t.value.name));
297
+ t.type !== N.Whitespace && (t.evalIndex = o.evalIndex, t.type === N.Named && (t.type = N.Function, t.value = t.value.name));
298
298
  }
299
299
  const s = {
300
- name: t?.type === b.Named ? t.value.nameId : "",
300
+ name: t?.type === N.Named ? t.value.nameId : "",
301
301
  argIndex: -1,
302
302
  type: "function"
303
303
  };
304
- u?.bound && (s.bound = u.bound), l(b.Paren, "(", s, a.evalIndex);
305
- const c = f(a), d = c.length;
306
- for (let t = 0; t < d; t++) {
304
+ a?.bound && (s.bound = a.bound), l(N.Paren, "(", s, o.evalIndex);
305
+ const u = w(o), f = u.length;
306
+ for (let t = 0; t < f; t++) {
307
307
  const r = {
308
308
  ...s,
309
309
  argIndex: t
310
310
  };
311
- e(c[t], r, p), t < d - 1 && l(b.Separator, ",", r, p, n.separatorFunction);
311
+ e(u[t], r, c), t < f - 1 && l(N.Separator, ",", r, c, n.separatorFunction);
312
312
  }
313
- a.error || l(b.Paren, ")", s, a.evalIndex);
313
+ o.error || l(N.Paren, ")", s, o.evalIndex);
314
314
  break;
315
315
  }
316
- case b.Cell:
317
- s(a, u, p);
316
+ case N.Cell:
317
+ s(o, a, c);
318
318
  break;
319
- case b.Paren:
320
- l(d, "(", u, p), g(c, u, p), a.error || l(d, ")", u, p);
319
+ case N.Paren:
320
+ l(f, "(", a, c), p(u, a, c), o.error || l(f, ")", a, c);
321
321
  break;
322
- case b.TableReference: {
323
- const n = a.value?.tableId ?? "", s = {
322
+ case N.TableReference: {
323
+ const n = o.value?.tableId ?? "", s = {
324
324
  name: n,
325
325
  argIndex: -1,
326
326
  type: "table"
327
- }, o = r.length, f = a.image;
327
+ }, f = r.length, p = o.image;
328
328
  let d, g = !1;
329
- if (n && f) {
329
+ if (n && p) {
330
330
  let e = 0;
331
- if (91 === f.charCodeAt(0)) {
332
- const t = f.indexOf("]");
333
- -1 !== t && 33 === f.charCodeAt(t + 1) && (e = t + 2);
331
+ if (91 === p.charCodeAt(0)) {
332
+ const t = p.indexOf("]");
333
+ -1 !== t && 33 === p.charCodeAt(t + 1) && (e = t + 2);
334
334
  }
335
- const n = f.indexOf("[", e);
336
- if (g = 0 === n && null != c, n > 0) d = f.slice(0, n);
337
- else if (!c) {
338
- const e = f.lastIndexOf("!");
339
- d = t || -1 === e ? f : f.slice(e + 1);
335
+ const n = p.indexOf("[", e);
336
+ if (g = 0 === n && null != u, n > 0) d = p.slice(0, n);
337
+ else if (!u) {
338
+ const e = p.lastIndexOf("!");
339
+ d = t || -1 === e ? p : p.slice(e + 1);
340
340
  }
341
341
  }
342
- if (!n || g && t || l(b.TableReference, n, u, p, d), c && l(b.Paren, "[", s, p), c) {
343
- const t = c.length;
342
+ if (!n || g && t || l(N.TableReference, n, a, c, d), u && l(N.Paren, "[", s, c), u) {
343
+ const t = u.length;
344
344
  for (let n = 0; n < t; n++) {
345
345
  const r = {
346
346
  ...s,
347
347
  argIndex: n
348
348
  };
349
- e(c[n], r, p), n < t - 1 && l(b.Separator, ",", r, p);
349
+ e(u[n], r, c), n < t - 1 && l(N.Separator, ",", r, c);
350
350
  }
351
351
  }
352
- c && !a.error && l(b.Paren, "]", s, p);
353
- const v = a.referenceIndex;
354
- for (let e = o; e < r.length; e++) void 0 !== v && (r[e].referenceIndex = v), i.add(r[e]);
352
+ u && !o.error && l(N.Paren, "]", s, c);
353
+ const v = o.referenceIndex;
354
+ for (let e = f; e < r.length; e++) void 0 !== v && (r[e].referenceIndex = v), i.add(r[e]);
355
355
  break;
356
356
  }
357
- case b.TableSpecifier:
358
- case b.TableColumn: {
359
- const e = a.image, t = null != e && e.startsWith("[") && e.endsWith("]");
360
- t && l(b.Paren, "[", u, p);
357
+ case N.TableSpecifier:
358
+ case N.TableColumn: {
359
+ const e = o.image, t = null != e && e.startsWith("[") && e.endsWith("]");
360
+ t && l(N.Paren, "[", a, c);
361
361
  const n = {
362
- table: "table" === u?.type ? u.name : "",
363
- name: a.value
362
+ table: "table" === a?.type ? a.name : "",
363
+ name: o.value
364
364
  }, i = {
365
- type: d,
365
+ type: f,
366
366
  value: n,
367
367
  text: t ? e.slice(1, -1) : e ?? n.name
368
368
  };
369
- void 0 !== p && (i.evalIndex = p), u && (i.context = u), r.push(i), t && l(b.Paren, "]", u, p);
369
+ void 0 !== c && (i.evalIndex = c), a && (i.context = a), r.push(i), t && l(N.Paren, "]", a, c);
370
370
  break;
371
371
  }
372
- case b.List:
373
- g(c, u, p);
372
+ case N.List:
373
+ p(u, a, c);
374
374
  break;
375
- case b.Named: {
376
- const e = s(a, u, p), t = a.value;
375
+ case N.Named: {
376
+ const e = s(o, a, c), t = o.value;
377
377
  e.value = t.scope ? {
378
378
  name: t.nameId,
379
379
  scope: t.scope
380
- } : { name: t.nameId }, a.binding?.declaration && a.binding.optional && (e.value.optional = !0), a.binding && (e.type = b.Parameter, a.binding.declaration && (e.value.declaration = !0)), delete e.referenceIndex;
380
+ } : { name: t.nameId }, o.binding?.declaration && o.binding.optional && (e.value.optional = !0), o.binding && (e.type = N.Parameter, o.binding.declaration && (e.value.declaration = !0)), delete e.referenceIndex;
381
381
  break;
382
382
  }
383
- default: void 0 !== a.value && s(a, u, p), c && c.forEach((t) => e(t, u, p));
383
+ default: void 0 !== o.value && s(o, a, c), u && u.forEach((t) => e(t, a, c));
384
384
  }
385
- l(b.Whitespace, a.wsAfter, u, p);
385
+ l(N.Whitespace, o.wsAfter, a, c);
386
386
  }
387
387
  })(e);
388
- const a = /* @__PURE__ */ new Map();
389
- for (const e of r) if (e.type === b.Cell && void 0 !== e.referenceIndex) {
390
- const t = a.get(e.referenceIndex);
391
- t ? t.push(e) : a.set(e.referenceIndex, [e]);
388
+ const o = /* @__PURE__ */ new Map();
389
+ for (const e of r) if (e.type === N.Cell && void 0 !== e.referenceIndex) {
390
+ const t = o.get(e.referenceIndex);
391
+ t ? t.push(e) : o.set(e.referenceIndex, [e]);
392
392
  }
393
- for (const e of a.values()) 1 === e.length ? e[0].refSide = "self" : (e[0].refSide = "left", e[e.length - 1].refSide = "right");
394
- const u = /* @__PURE__ */ new Map();
393
+ for (const e of o.values()) 1 === e.length ? e[0].refSide = "self" : (e[0].refSide = "left", e[e.length - 1].refSide = "right");
394
+ const a = /* @__PURE__ */ new Map();
395
395
  for (const e of r) if (void 0 !== e.referenceIndex && void 0 !== e.evalIndex) {
396
- const t = u.get(e.referenceIndex);
397
- (void 0 === t || e.evalIndex < t) && u.set(e.referenceIndex, e.evalIndex);
396
+ const t = a.get(e.referenceIndex);
397
+ (void 0 === t || e.evalIndex < t) && a.set(e.referenceIndex, e.evalIndex);
398
398
  }
399
- if (u.size > 0) {
399
+ if (a.size > 0) {
400
400
  for (const e of r) if (void 0 !== e.referenceIndex) {
401
- const t = u.get(e.referenceIndex);
401
+ const t = a.get(e.referenceIndex);
402
402
  void 0 !== t && (e.evalIndex = t);
403
403
  }
404
404
  }
@@ -408,19 +408,19 @@ function ve(e, t) {
408
408
  let n = "";
409
409
  for (let r = 0; r < e.length; r++) {
410
410
  const i = e[r], s = i.type;
411
- if (s === b.Cell || s === b.Named || s === b.Error) {
412
- const e = s === b.Cell ? i.value?.scope : (b.Named, i.value?.scope ?? void 0), r = s === b.Error ? void 0 !== i.text && p(i.text) : i.text?.includes("!") ?? !1;
411
+ if (s === N.Cell || s === N.Named || s === N.Error) {
412
+ const e = s === N.Cell ? i.value?.scope : (N.Named, i.value?.scope ?? void 0), r = s === N.Error ? void 0 !== i.text && f(i.text) : i.text?.includes("!") ?? !1;
413
413
  if (e && void 0 !== i.text && !r) {
414
- const r = t?.resolve(a.Sheet, e)?.toString() ?? e;
415
- n += g(r) + "!" + i.text;
414
+ const r = t?.resolve(B.Sheet, e)?.toString() ?? e;
415
+ n += x(r) + "!" + i.text;
416
416
  continue;
417
417
  }
418
- if (s === b.Named) {
418
+ if (s === N.Named) {
419
419
  n += i.text ?? i.value?.name ?? "";
420
420
  continue;
421
421
  }
422
422
  }
423
- if (s === b.Parameter) {
423
+ if (s === N.Parameter) {
424
424
  n += i.text ?? i.value?.name ?? "";
425
425
  continue;
426
426
  }
@@ -431,40 +431,40 @@ function ve(e, t) {
431
431
  }
432
432
  function he(e, t) {
433
433
  let n;
434
- if (B(e, (e) => {
434
+ if (h(e, (e) => {
435
435
  e.evalIndex === t && (n = e);
436
436
  }), !n) return [];
437
437
  const r = ge(n);
438
- return r.length > 1 && r[0].type === b.Whitespace && r.shift(), r.length > 1 && r[r.length - 1].type === b.Whitespace && r.pop(), r;
438
+ return r.length > 1 && r[0].type === N.Whitespace && r.shift(), r.length > 1 && r[r.length - 1].type === N.Whitespace && r.pop(), r;
439
439
  }
440
440
  function me(e) {
441
- return B(e, (e) => {
442
- if (e.type !== b.TableReference) return;
441
+ return h(e, (e) => {
442
+ if (e.type !== N.TableReference) return;
443
443
  const t = function(e) {
444
444
  if (null !== e.value && "object" == typeof e.value) return e.value;
445
445
  const t = e.value, n = e.inputs;
446
446
  let r = !1, i = !1, s = !1, l = !1, o = null, a = null, u = !1;
447
447
  const c = (e) => {
448
- e?.type === b.TableColumn && (o = e.value, a = e.value);
448
+ e?.type === N.TableColumn && (o = e.value, a = e.value);
449
449
  };
450
450
  if (n) for (const e of n) {
451
451
  const t = e.type;
452
- if (t === b.TableSpecifier) {
452
+ if (t === N.TableSpecifier) {
453
453
  const t = e.value.toUpperCase().trim();
454
454
  "#ALL" === t ? i = !0 : "#HEADERS" === t ? s = !0 : "#TOTALS" === t ? l = !0 : "#DATA" === t ? r = !0 : "@" !== t && "#THIS ROW" !== t || (u = !0);
455
- } else if (t === b.TableColumn) c(e);
456
- else if (t === b.Infix && ":" === e.value) {
455
+ } else if (t === N.TableColumn) c(e);
456
+ else if (t === N.Infix && ":" === e.value) {
457
457
  const t = e.inputs?.[0], n = e.inputs?.[1];
458
- t?.type === b.TableColumn && (o = t.value), n?.type === b.TableColumn && (a = n.value);
459
- } else if (t === b.Prefix && "@" === e.value) {
458
+ t?.type === N.TableColumn && (o = t.value), n?.type === N.TableColumn && (a = n.value);
459
+ } else if (t === N.Prefix && "@" === e.value) {
460
460
  u = !0;
461
461
  const t = e.inputs?.[0];
462
- t?.type === b.Infix && ":" === t.value ? (t.inputs?.[0]?.type === b.TableColumn && (o = t.inputs[0].value), t.inputs?.[1]?.type === b.TableColumn && (a = t.inputs[1].value)) : c(t);
462
+ t?.type === N.Infix && ":" === t.value ? (t.inputs?.[0]?.type === N.TableColumn && (o = t.inputs[0].value), t.inputs?.[1]?.type === N.TableColumn && (a = t.inputs[1].value)) : c(t);
463
463
  }
464
464
  }
465
465
  return {
466
466
  tableId: t,
467
- spec: R(i, s, r, l),
467
+ spec: k(i, s, r, l),
468
468
  columnFromId: o,
469
469
  columnToId: a,
470
470
  isThisRow: u
@@ -477,16 +477,16 @@ function me(e) {
477
477
  });
478
478
  }
479
479
  function ye(e) {
480
- return B(e, (e) => {
481
- if (e.type !== b.TableReference) return;
480
+ return h(e, (e) => {
481
+ if (e.type !== N.TableReference) return;
482
482
  const t = e.inputs;
483
483
  if (!t) return;
484
- if (-1 === t.findIndex((e) => e.type === b.TableSpecifier && "#THIS ROW" === e.value.toUpperCase().trim())) return;
484
+ if (-1 === t.findIndex((e) => e.type === N.TableSpecifier && "#THIS ROW" === e.value.toUpperCase().trim())) return;
485
485
  const n = [];
486
486
  let r;
487
- for (const e of t) e.type === b.TableSpecifier && "#THIS ROW" === e.value.toUpperCase().trim() || (e.type !== b.TableColumn && (e.type !== b.Infix || ":" !== e.value) || r ? n.push(e) : r = e);
487
+ for (const e of t) e.type === N.TableSpecifier && "#THIS ROW" === e.value.toUpperCase().trim() || (e.type !== N.TableColumn && (e.type !== N.Infix || ":" !== e.value) || r ? n.push(e) : r = e);
488
488
  if (!r) return n.push({
489
- type: b.Prefix,
489
+ type: N.Prefix,
490
490
  value: "@",
491
491
  inputs: null,
492
492
  isReference: !0
@@ -498,15 +498,15 @@ function ye(e) {
498
498
  ...r,
499
499
  image: i.slice(1, -1)
500
500
  } : r;
501
- return n.push(O("@", s, !0)), {
501
+ return n.push(u("@", s, !0)), {
502
502
  ...e,
503
503
  inputs: n
504
504
  };
505
505
  });
506
506
  }
507
507
  function Ie(e) {
508
- return B(e, (e) => {
509
- if (e.type !== b.TableReference) return;
508
+ return h(e, (e) => {
509
+ if (e.type !== N.TableReference) return;
510
510
  if (0 !== e.inputs?.length || e.error) return;
511
511
  const t = e.value;
512
512
  return ("string" == typeof t ? t : t?.tableId) ? {
@@ -516,8 +516,8 @@ function Ie(e) {
516
516
  });
517
517
  }
518
518
  function be(e) {
519
- return B(e, (e) => {
520
- if (e.type !== b.TableReference || !e.inputs) return;
519
+ return h(e, (e) => {
520
+ if (e.type !== N.TableReference || !e.inputs) return;
521
521
  const t = e.value, n = "string" == typeof t ? t : t?.tableId, r = e.image;
522
522
  if (!n || 91 !== r?.charCodeAt(0)) return;
523
523
  const i = r.indexOf("]");
@@ -527,7 +527,7 @@ function be(e) {
527
527
  });
528
528
  }
529
529
  var xe = (e) => {
530
- if (e?.type !== b.TableSpecifier) return 4;
530
+ if (e?.type !== N.TableSpecifier) return 4;
531
531
  switch (e.value.toUpperCase().trim()) {
532
532
  case "#ALL": return 0;
533
533
  case "#HEADERS": return 1;
@@ -537,8 +537,8 @@ var xe = (e) => {
537
537
  }
538
538
  };
539
539
  function Re(e) {
540
- return B(e, (e) => {
541
- if (e.type !== b.TableReference) return;
540
+ return h(e, (e) => {
541
+ if (e.type !== N.TableReference) return;
542
542
  const t = e.inputs;
543
543
  if (!t || t.length < 2) return;
544
544
  const n = t.map((e, t) => ({
@@ -555,8 +555,8 @@ function Re(e) {
555
555
  function Ee(t) {
556
556
  if (!t) return e.EmptyArray;
557
557
  let n = e.EmptyArray;
558
- return B(t, (t) => {
559
- if (t.type !== b.Named || t.binding) return;
558
+ return h(t, (t) => {
559
+ if (t.type !== N.Named || t.binding) return;
560
560
  const r = t.value.nameId;
561
561
  r && (n === e.EmptyArray && (n = []), n.includes(r) || n.push(r));
562
562
  }), n;
@@ -564,12 +564,12 @@ function Ee(t) {
564
564
  function Te(t, n) {
565
565
  if (!t) return e.EmptyArray;
566
566
  let r = e.EmptyArray;
567
- return B(t, (t, i, s) => {
567
+ return h(t, (t, i, s) => {
568
568
  if (!t.isReference) return;
569
569
  if (i?.isReference) return;
570
570
  const l = t.type;
571
- if (l === b.Named || l === b.Error || l === b.TableReference) return;
572
- if (pe(s, b.TableReference)) return;
571
+ if (l === N.Named || l === N.Error || l === N.TableReference) return;
572
+ if (pe(s, N.TableReference)) return;
573
573
  const o = function(e) {
574
574
  let t = e;
575
575
  for (; t;) {
@@ -582,11 +582,11 @@ function Te(t, n) {
582
582
  let r = e;
583
583
  for (let e = t.length - 1; e >= 0; e--) {
584
584
  const i = t[e];
585
- if (i.type === b.Paren || i.isReference) {
585
+ if (i.type === N.Paren || i.isReference) {
586
586
  r = i;
587
587
  continue;
588
588
  }
589
- if (i.type !== b.Function) return !0;
589
+ if (i.type !== N.Function) return !0;
590
590
  const s = n?.(String(i.value));
591
591
  if (!s) return !0;
592
592
  const l = i.inputs ? i.inputs.indexOf(r) : -1;
@@ -603,8 +603,8 @@ function we(e, t) {
603
603
  function Ce(e, t, n) {
604
604
  if (!e || !t) return !1;
605
605
  let r = !1;
606
- return B(e, (e) => {
607
- if (r || e.type !== b.Function) return;
606
+ return h(e, (e) => {
607
+ if (r || e.type !== N.Function) return;
608
608
  const i = t(e.value)?.getName();
609
609
  i && n.has(i.toUpperCase()) && (r = !0);
610
610
  }), r;
@@ -612,15 +612,15 @@ function Ce(e, t, n) {
612
612
  function Ne(e, t) {
613
613
  if (!e || !t) return !1;
614
614
  let n = !1;
615
- return B(e, (e) => {
616
- n || e.type !== b.Function || "TABLE" === t(e.value)?.getName().toUpperCase() && (n = !0);
615
+ return h(e, (e) => {
616
+ n || e.type !== N.Function || "TABLE" === t(e.value)?.getName().toUpperCase() && (n = !0);
617
617
  }), n;
618
618
  }
619
619
  function Fe(e, t) {
620
620
  if (!e || !t) return !1;
621
621
  let n = !1;
622
- return B(e, (e) => {
623
- n || e.type !== b.Function || !0 === t(e.value)?.getDeclaration().getReturnType()?.isVolatile() && (n = !0);
622
+ return h(e, (e) => {
623
+ n || e.type !== N.Function || !0 === t(e.value)?.getDeclaration().getReturnType()?.isVolatile() && (n = !0);
624
624
  }), n;
625
625
  }
626
626
  var Pe = Object.freeze({
@@ -630,13 +630,13 @@ var Pe = Object.freeze({
630
630
  const n = function(e, t) {
631
631
  if (!e || !t) return Pe;
632
632
  let n = !1, r = !1;
633
- return B(e, (e) => {
633
+ return h(e, (e) => {
634
634
  if (n) return;
635
635
  const i = e.type;
636
- if (i === b.Named) return void (void 0 === e.binding && (n = !0));
637
- if (i === b.Prefix) return void ("@" === e.value && (n = !0));
638
- if (i === b.Call) return void (n = !0);
639
- if (i !== b.Function) return;
636
+ if (i === N.Named) return void (void 0 === e.binding && (n = !0));
637
+ if (i === N.Prefix) return void ("@" === e.value && (n = !0));
638
+ if (i === N.Call) return void (n = !0);
639
+ if (i !== N.Function) return;
640
640
  if (void 0 !== e.binder) return;
641
641
  const s = t(e.value);
642
642
  if (!s || !s.isBuiltIn()) return void (n = !0);
@@ -668,28 +668,28 @@ function $e(t) {
668
668
  const r = (t) => {
669
669
  t && (n === e.EmptyArray && (n = []), n.includes(t) || n.push(t));
670
670
  }, i = (e) => {
671
- "string" == typeof e && r(h(e)?.bookId);
671
+ "string" == typeof e && r(m(e)?.bookId);
672
672
  };
673
- return B(t, (e) => {
674
- if (e.type === b.Named) {
673
+ return h(t, (e) => {
674
+ if (e.type === N.Named) {
675
675
  if (e.binding) return;
676
676
  const t = e.value;
677
677
  r(t.nameId), i(t.scope);
678
- } else if (e.type === b.TableReference) {
678
+ } else if (e.type === N.TableReference) {
679
679
  const t = e.value;
680
680
  r("string" == typeof t ? t : t?.tableId);
681
- } else if (e.type === b.Cell) {
681
+ } else if (e.type === N.Cell) {
682
682
  const t = e.value?.scope;
683
- i(t), k(t) && r(t);
684
- } else e.type === b.Error && i(e.value?.scope);
683
+ i(t), v(t) && r(t);
684
+ } else e.type === N.Error && i(e.value?.scope);
685
685
  }), n;
686
686
  }
687
- var Be = (e, t) => {
687
+ var Oe = (e, t) => {
688
688
  if (!0 === e.lazyArg) return !0;
689
689
  if ("lambda" !== t?.binder?.kind) return !1;
690
690
  const n = t.inputs;
691
691
  return n[n.length - 1] === e;
692
- }, Oe = /* @__PURE__ */ new Set([
692
+ }, Be = /* @__PURE__ */ new Set([
693
693
  "IF",
694
694
  "IFS",
695
695
  "SWITCH",
@@ -708,18 +708,18 @@ var Be = (e, t) => {
708
708
  if (!e) return !1;
709
709
  const n = e.inputs;
710
710
  switch (e.type) {
711
- case b.Cell:
712
- case b.Named:
713
- case b.TableReference: return !0;
714
- case b.Infix:
715
- case b.Prefix:
716
- case b.Postfix: return !0 === e.isReference && "@" !== e.value;
717
- case b.Paren:
718
- case b.List: return !!n && 1 === n.length && We(n[0], t);
719
- case b.Function: {
711
+ case N.Cell:
712
+ case N.Named:
713
+ case N.TableReference: return !0;
714
+ case N.Infix:
715
+ case N.Prefix:
716
+ case N.Postfix: return !0 === e.isReference && "@" !== e.value;
717
+ case N.Paren:
718
+ case N.List: return !!n && 1 === n.length && We(n[0], t);
719
+ case N.Function: {
720
720
  if (void 0 !== e.binder) return !1;
721
721
  const i = String(e.value).toUpperCase();
722
- if (Oe.has(i)) {
722
+ if (Be.has(i)) {
723
723
  if (!n) return !1;
724
724
  for (let e = 0; e < n.length; e++) if (We(n[e], t)) return !0;
725
725
  return !1;
@@ -740,43 +740,43 @@ function Ue(e, t) {
740
740
  let n;
741
741
  const i = e.type, s = e.inputs;
742
742
  switch (i) {
743
- case b.Array:
743
+ case N.Array:
744
744
  n = !0;
745
745
  break;
746
- case b.Cell: {
746
+ case N.Cell: {
747
747
  const t = e.value;
748
748
  n = t.rowIndex === Number.MIN_SAFE_INTEGER || t.colIndex === Number.MIN_SAFE_INTEGER;
749
749
  break;
750
750
  }
751
- case b.Named:
752
- case b.Call:
753
- case b.TableReference:
751
+ case N.Named:
752
+ case N.Call:
753
+ case N.TableReference:
754
754
  n = !0;
755
755
  break;
756
- case b.Infix:
757
- case b.Prefix:
758
- case b.Postfix:
756
+ case N.Infix:
757
+ case N.Prefix:
758
+ case N.Postfix:
759
759
  n = e.isReference ? "@" !== e.value : Me(s, t);
760
760
  break;
761
- case b.Paren:
762
- case b.List:
761
+ case N.Paren:
762
+ case N.List:
763
763
  n = !s || 1 !== s.length || Ue(s[0], t);
764
764
  break;
765
- case b.Function: {
765
+ case N.Function: {
766
766
  const i = e.binder;
767
767
  if (void 0 !== i) {
768
768
  n = "lambda" === i.kind || !!s && Ue(s[s.length - 1], t);
769
769
  break;
770
770
  }
771
771
  const l = String(e.value).toUpperCase();
772
- if (Oe.has(l)) {
772
+ if (Be.has(l)) {
773
773
  n = Me(s, t);
774
774
  break;
775
775
  }
776
776
  if ("INDEX" === l) {
777
777
  if (n = !1, s) for (let e = 1; e < s.length; e++) {
778
778
  const r = s[e];
779
- if (!r || r.type === b.Empty || r.isLiteral && 0 === r.value || Ue(r, t)) {
779
+ if (!r || r.type === N.Empty || r.isLiteral && 0 === r.value || Ue(r, t)) {
780
780
  n = !0;
781
781
  break;
782
782
  }
@@ -804,17 +804,17 @@ function _e(e, t) {
804
804
  const i = e.inputs;
805
805
  if (!i) return;
806
806
  const s = e.type;
807
- if (s === b.Infix || s === b.Prefix || s === b.Postfix) {
807
+ if (s === N.Infix || s === N.Prefix || s === N.Postfix) {
808
808
  const t = r && !e.isReference;
809
809
  for (let e = 0; e < i.length; e++) n(i[e], t);
810
810
  return;
811
811
  }
812
- if (s === b.Paren || s === b.List) {
812
+ if (s === N.Paren || s === N.List) {
813
813
  const e = r && 1 === i.length;
814
814
  for (let t = 0; t < i.length; t++) n(i[t], e);
815
815
  return;
816
816
  }
817
- if (s === b.Function) {
817
+ if (s === N.Function) {
818
818
  const s = e.binder;
819
819
  if (void 0 !== s) {
820
820
  const e = i.length - 1;
@@ -844,23 +844,23 @@ function He(e, t) {
844
844
  if (!e || !t) return null;
845
845
  const n = (e) => t(e.value)?.getName().toUpperCase() ?? null;
846
846
  let r = !1;
847
- if (B(e, (e) => {
848
- (e.hasLazyArgs || e.type === b.Call || void 0 !== e.binder) && (r = !0);
847
+ if (h(e, (e) => {
848
+ (e.hasLazyArgs || e.type === N.Call || void 0 !== e.binder) && (r = !0);
849
849
  }), r) return null;
850
- const i = (e) => e.type === b.Number, s = (e) => e.type === b.Number || e.type === b.String || e.type === b.Boolean, l = (e) => {
850
+ const i = (e) => e.type === N.Number, s = (e) => e.type === N.Number || e.type === N.String || e.type === N.Boolean, l = (e) => {
851
851
  if (!e) return !1;
852
852
  const t = e.inputs;
853
853
  switch (e.type) {
854
- case b.Paren: return 1 === t?.length && l(t[0]);
855
- case b.Prefix: return ("-" === e.value || "+" === e.value) && l(t?.[0]);
856
- case b.Infix: {
854
+ case N.Paren: return 1 === t?.length && l(t[0]);
855
+ case N.Prefix: return ("-" === e.value || "+" === e.value) && l(t?.[0]);
856
+ case N.Infix: {
857
857
  if ("+" !== e.value && "-" !== e.value && "*" !== e.value) return !1;
858
858
  const [n, r] = t ?? [];
859
859
  return !(!n || !r) && (l(n) && (l(r) || i(r)) || i(n) && l(r));
860
860
  }
861
- case b.Function: {
861
+ case N.Function: {
862
862
  const r = n(e);
863
- if (null !== r && Ge.has(r)) return !t || 0 === t.length || 1 === t.length && t[0]?.type === b.Cell;
863
+ if (null !== r && Ge.has(r)) return !t || 0 === t.length || 1 === t.length && t[0]?.type === N.Cell;
864
864
  if ("MOD" === r && 2 === t?.length) {
865
865
  const e = t[1];
866
866
  return l(t[0]) && i(e) && 0 !== e.value;
@@ -873,13 +873,13 @@ function He(e, t) {
873
873
  if (!e) return !1;
874
874
  const t = e.inputs;
875
875
  switch (e.type) {
876
- case b.Paren: return 1 === t?.length && o(t[0]);
877
- case b.Infix: {
876
+ case N.Paren: return 1 === t?.length && o(t[0]);
877
+ case N.Infix: {
878
878
  if (!je.has(e.value)) return !1;
879
879
  const [n, r] = t ?? [];
880
880
  return !(!n || !r) && (l(n) && (l(r) || s(r)) || s(n) && l(r));
881
881
  }
882
- case b.Function: {
882
+ case N.Function: {
883
883
  const r = n(e);
884
884
  if (!t || 0 === t.length) return !1;
885
885
  if ("ISODD" === r || "ISEVEN" === r) return 1 === t.length && l(t[0]);
@@ -889,7 +889,7 @@ function He(e, t) {
889
889
  for (let n = 0; n < t.length; n++) {
890
890
  const r = t[n];
891
891
  if (!r) return !1;
892
- if (r.type !== b.Boolean) {
892
+ if (r.type !== N.Boolean) {
893
893
  if (!o(r)) return !1;
894
894
  e = !0;
895
895
  }
@@ -913,7 +913,7 @@ function He(e, t) {
913
913
  for (let t = 0; t < 1 << c; t++) {
914
914
  const n = (e) => {
915
915
  const r = a.indexOf(e);
916
- if (-1 !== r) return v(t & 1 << r ? "TRUE" : "FALSE");
916
+ if (-1 !== r) return S(t & 1 << r ? "TRUE" : "FALSE");
917
917
  const i = { ...e };
918
918
  return delete i.evalIndex, delete i.firstCell, delete i.inLazy, delete i.lazyArg, delete i.hasLazyArgs, delete i.deferred, e.inputs && (i.inputs = e.inputs.map((e) => e ? n(e) : e)), i;
919
919
  };
@@ -923,8 +923,8 @@ function He(e, t) {
923
923
  }
924
924
  var Xe = (e) => "*" === e.getRangeType() && null === e.getLambda() && e.getArrayDepth() <= (e.isRest() ? 1 : 0);
925
925
  function Ke(e, n, r, i = !1, s = null, l = null) {
926
- let o, a, u = r;
927
- u = me(u), i || (u = ye(u), u = Re(u), u = Ie(u), u = be(u)), [o, a] = function(e) {
926
+ let a, u, c = r;
927
+ c = me(c), i || (c = ye(c), c = Re(c), c = Ie(c), c = be(c)), [a, u] = function(e) {
928
928
  const t = /* @__PURE__ */ new Map();
929
929
  let n = 0;
930
930
  const r = [e];
@@ -938,67 +938,67 @@ function Ke(e, n, r, i = !1, s = null, l = null) {
938
938
  return t.forEach((e, n) => {
939
939
  n && n.inputs && (e.inputs = n.inputs.map((e) => t.get(e) ?? e));
940
940
  }), [t.get(e), n];
941
- }(u);
942
- const c = w(a), f = [], p = [], d = new de();
943
- let g, v = !1;
941
+ }(c);
942
+ const f = T(u), d = [], g = [], v = new de();
943
+ let m, y = !1;
944
944
  (function(e, t) {
945
945
  if (!e || !t) return;
946
946
  const n = (e) => {
947
947
  if (!e) return;
948
- e.inLazy = !0, e.type === b.Named && (e.deferredResolve = !0);
948
+ e.inLazy = !0, e.type === N.Named && (e.deferredResolve = !0);
949
949
  const t = e.inputs;
950
950
  if (t) for (let e = 0; e < t.length; e++) n(t[e]);
951
951
  };
952
- B(e, (e) => {
953
- if (e.type !== b.Function) return;
952
+ h(e, (e) => {
953
+ if (e.type !== N.Function) return;
954
954
  if (void 0 !== e.binder) return;
955
955
  const r = e.inputs;
956
956
  if (!r || 0 === r.length) return;
957
957
  const i = t(e.value)?.getDeclaration().getParameters();
958
958
  if (i) for (let t = 0; t < r.length; t++) {
959
959
  const s = r[t];
960
- s && s.type !== b.Empty && Le(i, t)?.isLazy() && (s.lazyArg = !0, e.hasLazyArgs = !0, n(s));
960
+ s && s.type !== N.Empty && Le(i, t)?.isLazy() && (s.lazyArg = !0, e.hasLazyArgs = !0, n(s));
961
961
  }
962
962
  });
963
- })(o, l);
964
- const h = (e) => {
965
- void 0 === g && (g = /* @__PURE__ */ new Map());
966
- let t = g.get(e);
967
- return void 0 === t && g.set(e, t = []), t;
968
- }, m = (e, t) => {
969
- void 0 === e ? f.push(t) : h(e).push(t);
970
- }, y = (e) => {
971
- e?.type !== b.Infix || "+" !== e.value && "-" !== e.value || (e.snapsCancellation = !0);
963
+ })(a, l);
964
+ const I = (e) => {
965
+ void 0 === m && (m = /* @__PURE__ */ new Map());
966
+ let t = m.get(e);
967
+ return void 0 === t && m.set(e, t = []), t;
968
+ }, b = (e, t) => {
969
+ void 0 === e ? d.push(t) : I(e).push(t);
970
+ }, x = (e) => {
971
+ e?.type !== N.Infix || "+" !== e.value && "-" !== e.value || (e.snapsCancellation = !0);
972
972
  };
973
- o = B(o, (t, n, r) => {
973
+ a = h(a, (t, n, r) => {
974
974
  const i = t.type, s = t.evalIndex;
975
- if (c[s] = null, i === b.TableColumn || i === b.TableSpecifier || t.isReference && pe(r, b.TableReference)) return;
976
- if (v = v || !tt(t), t.binding?.declaration) return p[t.binding.slot] = -1, void (c[s] = void 0);
975
+ if (f[s] = null, i === N.TableColumn || i === N.TableSpecifier || t.isReference && pe(r, N.TableReference)) return;
976
+ if (y = y || !tt(t), t.binding?.declaration) return g[t.binding.slot] = -1, void (f[s] = void 0);
977
977
  const l = ((e, t, n) => {
978
- if (Be(e, t)) return e;
979
- for (let e = n.length - 1; e >= 0; e--) if (Be(n[e], n[e - 1])) return n[e];
978
+ if (Oe(e, t)) return e;
979
+ for (let e = n.length - 1; e >= 0; e--) if (Oe(n[e], n[e - 1])) return n[e];
980
980
  })(t, n, r);
981
- l === t && h(t), void 0 !== l && i === b.Named && (t.deferredResolve = !0);
982
- const o = t.binder;
983
- if (o && "let" === o.kind) {
981
+ l === t && I(t), void 0 !== l && i === N.Named && (t.deferredResolve = !0);
982
+ const a = t.binder;
983
+ if (a && "let" === a.kind) {
984
984
  const e = t.inputs, n = e?.length ?? 0;
985
985
  let r = 0;
986
- for (let t = 0; t + 1 < n && r < o.slots.length; t += 2) e[t]?.binding?.declaration && (p[o.slots[r++]] = e[t + 1]?.evalIndex ?? -1);
986
+ for (let t = 0; t + 1 < n && r < a.slots.length; t += 2) e[t]?.binding?.declaration && (g[a.slots[r++]] = e[t + 1]?.evalIndex ?? -1);
987
987
  }
988
- if ((t.isReference || n && n.isReference) && (d.processNode(t, n), t.isReference)) {
989
- if (i === b.Named) return void (void 0 !== l && m(l, t));
990
- if (i === b.Cell || i === b.TableReference || i === b.Error) return;
991
- if (i === b.Infix || i === b.Prefix || i === b.Postfix || i === b.List) return void m(l, t);
988
+ if ((t.isReference || n && n.isReference) && (v.processNode(t, n), t.isReference)) {
989
+ if (i === N.Named) return void (void 0 !== l && b(l, t));
990
+ if (i === N.Cell || i === N.TableReference || i === N.Error) return;
991
+ if (i === N.Infix || i === N.Prefix || i === N.Postfix || i === N.List) return void b(l, t);
992
992
  }
993
- if (t.isLiteral) if (i !== b.Array) c[s] = t.value;
993
+ if (t.isLiteral) if (i !== N.Array) f[s] = t.value;
994
994
  else {
995
- const n = t.value, r = n.length, i = w(r);
995
+ const n = t.value, r = n.length, i = T(r);
996
996
  for (let e = 0; e < r; e++) {
997
- const t = n[e].value, r = t.length, s = w(r);
997
+ const t = n[e].value, r = t.length, s = T(r);
998
998
  for (let e = 0; e < r; e++) {
999
999
  const n = t[e];
1000
1000
  let r = null;
1001
- if (n && (r = n.type === b.Error ? C(n.value) : n.value, n.type === b.Prefix)) {
1001
+ if (n && (r = n.type === N.Error ? p(n.value) : n.value, n.type === N.Prefix)) {
1002
1002
  const e = n.value;
1003
1003
  r = n.inputs[0].value, "-" === e && (r = -r);
1004
1004
  }
@@ -1006,18 +1006,18 @@ function Ke(e, n, r, i = !1, s = null, l = null) {
1006
1006
  }
1007
1007
  i[e] = s;
1008
1008
  }
1009
- const l = N(i);
1010
- c[s] = new F(e, l.values, l.coords, void 0, l.isLiteral);
1009
+ const l = o(i);
1010
+ f[s] = new V(e, l.values, l.coords, void 0, l.isLiteral);
1011
1011
  }
1012
1012
  else {
1013
- if (i !== b.Empty) return "lambda" === t.binder?.kind && y(t.inputs[t.inputs.length - 1]), m(l, t), t;
1014
- c[s] = void 0;
1013
+ if (i !== N.Empty) return "lambda" === t.binder?.kind && x(t.inputs[t.inputs.length - 1]), b(l, t), t;
1014
+ f[s] = void 0;
1015
1015
  }
1016
- }), y(o), g?.forEach((e, t) => {
1016
+ }), x(a), m?.forEach((e, t) => {
1017
1017
  t.deferred = e;
1018
1018
  });
1019
- const I = w(d.cells.size);
1020
- d.cells.forEach((e, t) => {
1019
+ const R = T(v.cells.size);
1020
+ v.cells.forEach((e, t) => {
1021
1021
  const n = t.value, r = n.colIndex, i = n.rowIndex, s = n.$colIndex, l = n.$rowIndex, o = {
1022
1022
  colStart: r,
1023
1023
  rowStart: i,
@@ -1028,29 +1028,29 @@ function Ke(e, n, r, i = !1, s = null, l = null) {
1028
1028
  $colEnd: s,
1029
1029
  $rowEnd: l
1030
1030
  };
1031
- r === Number.MIN_SAFE_INTEGER && (o.colEnd = Number.MAX_SAFE_INTEGER), i === Number.MIN_SAFE_INTEGER && (o.rowEnd = Number.MAX_SAFE_INTEGER), n.scope && (o.scope = n.scope), I[e] = o;
1031
+ r === Number.MIN_SAFE_INTEGER && (o.colEnd = Number.MAX_SAFE_INTEGER), i === Number.MIN_SAFE_INTEGER && (o.rowEnd = Number.MAX_SAFE_INTEGER), n.scope && (o.scope = n.scope), R[e] = o;
1032
1032
  });
1033
- const x = I.length, R = w(x);
1034
- for (let e = 0; e < x; e++) R[e] = {
1033
+ const E = R.length, A = T(E);
1034
+ for (let e = 0; e < E; e++) A[e] = {
1035
1035
  colStart: 0,
1036
1036
  rowStart: 0,
1037
1037
  colEnd: 0,
1038
1038
  rowEnd: 0,
1039
1039
  scope: null
1040
1040
  };
1041
- const E = w(d.references.size);
1042
- d.references.forEach((e) => {
1043
- E[e.index] = e;
1041
+ const S = T(v.references.size);
1042
+ v.references.forEach((e) => {
1043
+ S[e.index] = e;
1044
1044
  });
1045
- const S = [];
1046
- d.rootReferences.forEach((e) => {
1047
- S.push(e.index);
1045
+ const w = [];
1046
+ v.rootReferences.forEach((e) => {
1047
+ w.push(e.index);
1048
1048
  }), function(e, t, n = !1) {
1049
1049
  if (n) {
1050
1050
  const t = (e) => {
1051
1051
  if (!e) return;
1052
1052
  const n = e.type;
1053
- n !== b.Function && n !== b.Call || (e.implicitIntersect = !0);
1053
+ n !== N.Function && n !== N.Call || (e.implicitIntersect = !0);
1054
1054
  const r = e.inputs;
1055
1055
  if (r) for (let e = 0; e < r.length; e++) t(r[e]);
1056
1056
  };
@@ -1060,15 +1060,15 @@ function Ke(e, n, r, i = !1, s = null, l = null) {
1060
1060
  const r = (e) => Ue(e, t), i = (e, n) => {
1061
1061
  if (!e) return;
1062
1062
  const s = e.type;
1063
- s !== b.Function && s !== b.Call || (e.implicitIntersect = n);
1063
+ s !== N.Function && s !== N.Call || (e.implicitIntersect = n);
1064
1064
  const l = e.inputs;
1065
1065
  if (l) {
1066
- if (s === b.Infix || s === b.Prefix || s === b.Postfix) {
1066
+ if (s === N.Infix || s === N.Prefix || s === N.Postfix) {
1067
1067
  const t = !e.isReference;
1068
1068
  for (let e = 0; e < l.length; e++) i(l[e], (!t || !r(l[e])) && n);
1069
1069
  return;
1070
1070
  }
1071
- if (s === b.Function) {
1071
+ if (s === N.Function) {
1072
1072
  const r = e.binder;
1073
1073
  if (void 0 !== r) {
1074
1074
  const e = "lambda" !== r.kind && n;
@@ -1091,54 +1091,54 @@ function Ke(e, n, r, i = !1, s = null, l = null) {
1091
1091
  }
1092
1092
  };
1093
1093
  i(e, !r(e));
1094
- }(o, l, !0 === r.legacyIntersect);
1095
- const P = (e) => {
1094
+ }(a, l, !0 === r.legacyIntersect);
1095
+ const C = (e) => {
1096
1096
  const t = e.length;
1097
1097
  for (let n = 0; n < t; n++) {
1098
1098
  const t = e[n], r = t.type;
1099
- if (r === b.Infix) {
1099
+ if (r === N.Infix) {
1100
1100
  if (!0 === t.snapsCancellation) {
1101
1101
  t.fn = ue[t.value];
1102
1102
  continue;
1103
1103
  }
1104
1104
  t.fn = ae[t.value];
1105
- } else r === b.Prefix ? t.fn = ce[t.value] : r === b.Postfix && (t.fn = fe[t.value]);
1105
+ } else r === N.Prefix ? t.fn = ce[t.value] : r === N.Postfix && (t.fn = fe[t.value]);
1106
1106
  }
1107
1107
  };
1108
- let k;
1109
- P(f), g?.forEach(P);
1110
- const L = i ? T(t(e.getLocale()).decimal) : A, $ = {
1108
+ let P;
1109
+ C(d), m?.forEach(C);
1110
+ const k = i ? F(t(e.getLocale()).decimal) : $, L = {
1111
1111
  runtime: e,
1112
1112
  symbols: n,
1113
1113
  getFunction: l,
1114
- ast: o,
1115
- evaluations: c,
1116
- executions: f,
1117
- bindings: p,
1118
- referencesAbsolute: R,
1119
- referencesExecute: E,
1120
- referencesRelative: I,
1121
- referencesRoot: S,
1122
- referenceIndices: d.referenceIndices,
1123
- formatReferenceIndices: Te(o, l),
1124
- getTokens: () => k ??= ge(o, i, L),
1125
- namedIds: Ee(o),
1126
- symbolIds: $e(o),
1127
- hasTotals: we(o, l),
1128
- hasPivotData: Ce(o, l, Se),
1129
- hasDataTable: Ne(o, l),
1130
- hasVolatile: Fe(o, l),
1131
- ...ke(o, l),
1132
- isReferenceOnly: !v,
1114
+ ast: a,
1115
+ evaluations: f,
1116
+ executions: d,
1117
+ bindings: g,
1118
+ referencesAbsolute: A,
1119
+ referencesExecute: S,
1120
+ referencesRelative: R,
1121
+ referencesRoot: w,
1122
+ referenceIndices: v.referenceIndices,
1123
+ formatReferenceIndices: Te(a, l),
1124
+ getTokens: () => P ??= ge(a, i, k),
1125
+ namedIds: Ee(a),
1126
+ symbolIds: $e(a),
1127
+ hasTotals: we(a, l),
1128
+ hasPivotData: Ce(a, l, Se),
1129
+ hasDataTable: Ne(a, l),
1130
+ hasVolatile: Fe(a, l),
1131
+ ...ke(a, l),
1132
+ isReferenceOnly: !y,
1133
1133
  error: s,
1134
1134
  transform: (t) => {
1135
- let r = B(o, t);
1136
- return r === o ? $ : Ke(e, n, r, i, s, l);
1135
+ let r = h(a, t);
1136
+ return r === a ? L : Ke(e, n, r, i, s, l);
1137
1137
  }
1138
1138
  };
1139
- return $;
1139
+ return L;
1140
1140
  }
1141
- function Je(e) {
1141
+ function Ze(e) {
1142
1142
  let t = -1, n = -1;
1143
1143
  return Number.isSafeInteger(e.previousToken?.startLine) ? (t = e.previousToken.startLine, n = e.previousToken.endColumn + 1) : Number.isSafeInteger(e.token?.startLine) && (t = e.token.startLine, n = e.token.startColumn), -1 !== t ? (e.errorLocation = {
1144
1144
  line: t,
@@ -1169,29 +1169,29 @@ Object.freeze([
1169
1169
  ">="
1170
1170
  ]
1171
1171
  ]);
1172
- var Ze = Object.freeze([
1172
+ var qe = Object.freeze([
1173
1173
  ":",
1174
1174
  ".:.",
1175
1175
  ".:",
1176
1176
  ":."
1177
- ]), qe = Object.freeze([
1177
+ ]), Je = Object.freeze([
1178
1178
  ":",
1179
1179
  " ",
1180
1180
  ".:.",
1181
1181
  ".:",
1182
1182
  ":."
1183
- ]), Ye = Object.freeze(["@"]), Qe = Object.freeze(["#"]), et = Object.freeze(qe.concat(Qe)), tt = (Object.freeze(qe.concat(Ye).concat(Qe)), (e) => {
1183
+ ]), Qe = Object.freeze(["@"]), Ye = Object.freeze(["#"]), et = Object.freeze(Je.concat(Ye)), tt = (Object.freeze(Je.concat(Qe).concat(Ye)), (e) => {
1184
1184
  if (!e) return !1;
1185
1185
  const t = e.type;
1186
- if (t === b.Cell) return !0;
1187
- if (t === b.TableReference) return !0;
1188
- if (t === b.Infix) {
1189
- if (!qe.includes(e.value)) return !1;
1186
+ if (t === N.Cell) return !0;
1187
+ if (t === N.TableReference) return !0;
1188
+ if (t === N.Infix) {
1189
+ if (!Je.includes(e.value)) return !1;
1190
1190
  const t = e.inputs, n = t[0], r = t[1];
1191
1191
  return tt(n) && tt(r);
1192
1192
  }
1193
- return t === b.List && (e.inputs?.every(tt) ?? !1);
1194
- }), nt = (e) => !!(e && (e.type === b.Infix && et.includes(e.value) || e.type === b.Postfix && Qe.includes(e.value) || e.type === b.Array || e.type === b.TableReference)), rt = Object.freeze([
1193
+ return t === N.List && (e.inputs?.every(tt) ?? !1);
1194
+ }), nt = (e) => !!(e && (e.type === N.Infix && et.includes(e.value) || e.type === N.Postfix && Ye.includes(e.value) || e.type === N.Array || e.type === N.TableReference)), rt = Object.freeze([
1195
1195
  "+",
1196
1196
  "-",
1197
1197
  "*",
@@ -1207,15 +1207,15 @@ var Ze = Object.freeze([
1207
1207
  ]), it = Object.freeze(["-", "+"]), st = (e, t) => {
1208
1208
  if (!e) return !1;
1209
1209
  const n = e.type;
1210
- if (e.isLiteral) return n !== b.Error;
1211
- if (n === b.Paren || n === b.List) {
1210
+ if (e.isLiteral) return n !== N.Error;
1211
+ if (n === N.Paren || n === N.List) {
1212
1212
  const n = e.inputs;
1213
1213
  return !(!n || 0 === n.length) && n.every((e) => st(e, t));
1214
1214
  }
1215
- if (n === b.Infix) return rt.includes(e.value);
1216
- if (n === b.Prefix) return it.includes(e.value);
1217
- if (n === b.Postfix) return "%" === e.value;
1218
- if (n === b.Function) {
1215
+ if (n === N.Infix) return rt.includes(e.value);
1216
+ if (n === N.Prefix) return it.includes(e.value);
1217
+ if (n === N.Postfix) return "%" === e.value;
1218
+ if (n === N.Function) {
1219
1219
  if (!t) return !1;
1220
1220
  const n = t(e.value);
1221
1221
  if (!n) return !1;
@@ -1228,7 +1228,7 @@ var Ze = Object.freeze([
1228
1228
  let n = null;
1229
1229
  const r = (e) => {
1230
1230
  if (n || !e) return;
1231
- if (e.type === b.Infix && " " === e.value) {
1231
+ if (e.type === N.Infix && " " === e.value) {
1232
1232
  const r = e.inputs, i = r?.[0], s = r?.[1];
1233
1233
  if (st(i, t)) return void (n = i);
1234
1234
  if (st(s, t)) return void (n = s);
@@ -1242,7 +1242,7 @@ var Ze = Object.freeze([
1242
1242
  let n = null;
1243
1243
  const r = (e) => {
1244
1244
  if (n || !e) return;
1245
- if (e.type === b.Postfix && "#" === e.value) {
1245
+ if (e.type === N.Postfix && "#" === e.value) {
1246
1246
  const r = e.inputs?.[0];
1247
1247
  if (r && st(r, t)) return void (n = r);
1248
1248
  }
@@ -1283,7 +1283,7 @@ var Ze = Object.freeze([
1283
1283
  let t = null;
1284
1284
  const n = (e) => {
1285
1285
  if (t || !e) return;
1286
- if (e.type === b.Array && Array.isArray(e.value)) {
1286
+ if (e.type === N.Array && Array.isArray(e.value)) {
1287
1287
  const n = e.value, r = (n[0]?.value)?.length ?? 0;
1288
1288
  for (let e = 1; e < n.length && !t; e++) {
1289
1289
  const i = (n[e]?.value)?.length ?? 0;
@@ -1299,7 +1299,7 @@ var Ze = Object.freeze([
1299
1299
  let n = null;
1300
1300
  const r = (e) => {
1301
1301
  if (n || !e) return;
1302
- if (e.type === b.Function) {
1302
+ if (e.type === N.Function) {
1303
1303
  const r = e.value, i = t(r);
1304
1304
  if (i) {
1305
1305
  const t = i.getDeclaration(), s = t.getParameters(), l = e.inputs?.length ?? 0, o = t.getMaxArguments();
@@ -1326,7 +1326,7 @@ var Ze = Object.freeze([
1326
1326
  let n = null;
1327
1327
  const r = (e) => {
1328
1328
  if (n || !e) return;
1329
- if (e.type === b.Function) {
1329
+ if (e.type === N.Function) {
1330
1330
  const r = t(e.value);
1331
1331
  if (r) {
1332
1332
  const i = r.getDeclaration().getParameters(), s = e.inputs;
@@ -1363,7 +1363,7 @@ var Ze = Object.freeze([
1363
1363
  let n = null;
1364
1364
  const r = (e) => {
1365
1365
  if (n || !e) return;
1366
- if (e.type === b.Call) {
1366
+ if (e.type === N.Call) {
1367
1367
  const r = e.inputs?.[0];
1368
1368
  if (r && st(r, t)) return void (n = "This expression always produces a value, so it cannot be called as a function.");
1369
1369
  }
@@ -1372,28 +1372,28 @@ var Ze = Object.freeze([
1372
1372
  };
1373
1373
  return r(e), n;
1374
1374
  }, gt = (e, t) => {
1375
- if (e.type !== b.Function) return;
1375
+ if (e.type !== N.Function) return;
1376
1376
  const n = e.value;
1377
1377
  if ("string" != typeof n) return;
1378
1378
  const r = (t?.(n)?.getName() ?? n).toUpperCase();
1379
1379
  return "LET" === r ? "let" : "LAMBDA" === r ? "lambda" : void 0;
1380
1380
  }, vt = (e) => {
1381
- if (e?.type !== b.Named) return;
1381
+ if (e?.type !== N.Named) return;
1382
1382
  const t = e.value;
1383
1383
  return t?.nameId && !t.scope && !0 !== t.optional ? t.nameId : void 0;
1384
1384
  }, ht = /^[A-Za-z_\\][A-Za-z0-9_\\]*$/, mt = /* @__PURE__ */ new Set(["TRUE", "FALSE"]), yt = (e) => {
1385
- if (e?.type === b.Named) {
1385
+ if (e?.type === N.Named) {
1386
1386
  const t = e.value;
1387
1387
  if (!0 !== t?.optional || !t.nameId || t.scope) return;
1388
1388
  return t.nameId;
1389
1389
  }
1390
- if (e?.type !== b.TableReference) return;
1390
+ if (e?.type !== N.TableReference) return;
1391
1391
  const t = e.value;
1392
1392
  let n;
1393
1393
  if (null === t || "string" == typeof t) {
1394
1394
  if (t) return;
1395
1395
  const r = e.inputs;
1396
- if (!r || 1 !== r.length || r[0]?.type !== b.TableColumn) return;
1396
+ if (!r || 1 !== r.length || r[0]?.type !== N.TableColumn) return;
1397
1397
  const i = r[0].value;
1398
1398
  if ("string" != typeof i) return;
1399
1399
  n = i;
@@ -1405,10 +1405,10 @@ var Ze = Object.freeze([
1405
1405
  }
1406
1406
  return ht.test(n) && !mt.has(n.toUpperCase()) && e.image === `[${n}]` ? n : void 0;
1407
1407
  }, It = (e) => {
1408
- const t = P(e.image ?? e.value);
1408
+ const t = c(e.image ?? e.value);
1409
1409
  t.image = e.image ?? e.value, t.wsBefore = e.wsBefore;
1410
1410
  const n = {
1411
- type: b.Call,
1411
+ type: N.Call,
1412
1412
  value: null,
1413
1413
  inputs: [t, ...e.inputs ?? []],
1414
1414
  wsAfter: e.wsAfter
@@ -1416,8 +1416,8 @@ var Ze = Object.freeze([
1416
1416
  return e.error && (n.error = e.error), n;
1417
1417
  };
1418
1418
  function bt(e, t) {
1419
- return e && t ? B(e, (e) => {
1420
- if (e.type === b.Function && "string" == typeof e.value && !t(e.value)) return It(e);
1419
+ return e && t ? h(e, (e) => {
1420
+ if (e.type === N.Function && "string" == typeof e.value && !t(e.value)) return It(e);
1421
1421
  }) : e;
1422
1422
  }
1423
1423
  function xt(e, t) {
@@ -1425,7 +1425,7 @@ function xt(e, t) {
1425
1425
  return r.push(t), r;
1426
1426
  }
1427
1427
  function Rt(e) {
1428
- if (e?.type !== b.Function || "lambda" !== e.binder?.kind) return;
1428
+ if (e?.type !== N.Function || "lambda" !== e.binder?.kind) return;
1429
1429
  const t = e.inputs ?? [], n = [];
1430
1430
  for (let e = 0; e < t.length - 1; e++) {
1431
1431
  const r = t[e];
@@ -1444,7 +1444,7 @@ var Et = /* @__PURE__ */ new Set([
1444
1444
  "IFNA"
1445
1445
  ]);
1446
1446
  function Tt(e, t) {
1447
- if (!e || e.type !== b.Function || "string" != typeof e.value) return e;
1447
+ if (!e || e.type !== N.Function || "string" != typeof e.value) return e;
1448
1448
  const n = (t?.(e.value)?.getName() ?? e.value).toUpperCase();
1449
1449
  if (!Et.has(n)) return e;
1450
1450
  const r = e.inputs;
@@ -1497,7 +1497,7 @@ function At(e, t = null) {
1497
1497
  name: s
1498
1498
  }), c.push(o), f[e] = l ? {
1499
1499
  ...i,
1500
- type: b.Named,
1500
+ type: N.Named,
1501
1501
  value: {
1502
1502
  nameId: s,
1503
1503
  scope: null
@@ -1535,7 +1535,7 @@ function At(e, t = null) {
1535
1535
  }
1536
1536
  };
1537
1537
  })(e, l);
1538
- if (e.type === b.Function && "string" == typeof e.value) {
1538
+ if (e.type === N.Function && "string" == typeof e.value) {
1539
1539
  const r = e.value.toUpperCase();
1540
1540
  if (n.some((e) => e.key === r) && !t?.(e.value)) return i(It(e));
1541
1541
  }
@@ -1549,7 +1549,7 @@ function At(e, t = null) {
1549
1549
  });
1550
1550
  }
1551
1551
  }
1552
- if (e.type === b.Named) {
1552
+ if (e.type === N.Named) {
1553
1553
  const t = vt(e);
1554
1554
  if (void 0 !== t) {
1555
1555
  const r = t.toUpperCase();
@@ -1569,7 +1569,7 @@ function At(e, t = null) {
1569
1569
  return e;
1570
1570
  }
1571
1571
  const o = i(e);
1572
- if (o.type === b.Function && "string" == typeof o.value && "ISOMITTED" === (t?.(o.value)?.getName() ?? o.value).toUpperCase()) {
1572
+ if (o.type === N.Function && "string" == typeof o.value && "ISOMITTED" === (t?.(o.value)?.getName() ?? o.value).toUpperCase()) {
1573
1573
  const e = o.inputs;
1574
1574
  if (e) {
1575
1575
  let n;
@@ -1596,13 +1596,13 @@ function At(e, t = null) {
1596
1596
  return s(e);
1597
1597
  }
1598
1598
  var St = (e) => {
1599
- if (e?.type !== b.Cell || void 0 === e.image) return !1;
1599
+ if (e?.type !== N.Cell || void 0 === e.image) return !1;
1600
1600
  const t = e.value;
1601
1601
  return t.rowIndex === Number.MIN_SAFE_INTEGER && !0 !== t.$colIndex && !t.scope;
1602
1602
  }, wt = (e) => {
1603
- const t = P(e.image);
1604
- return V(t, e), t;
1605
- }, Ct = (e) => e?.type === b.Cell, Nt = (e, t = null) => {
1603
+ const t = c(e.image);
1604
+ return C(t, e), t;
1605
+ }, Ct = (e) => e?.type === N.Cell, Nt = (e, t = null) => {
1606
1606
  if (!e) return e;
1607
1607
  let n = !1;
1608
1608
  const r = (e) => {
@@ -1616,13 +1616,13 @@ var St = (e) => {
1616
1616
  };
1617
1617
  if (r(e), !n) return e;
1618
1618
  let i = null;
1619
- const s = B(e, (e) => {
1620
- if (e?.type !== b.Cell) return;
1619
+ const s = h(e, (e) => {
1620
+ if (e?.type !== N.Cell) return;
1621
1621
  const t = e.value, n = e.image;
1622
1622
  if (!0 === t?.$colIndex || !0 === t?.$rowIndex) return void (i ??= `'${n ?? "a reference"}' cannot be absolute here. A LET/LAMBDA name that is a cell reference makes every reference in the formula a name, and a name cannot contain '$'.`);
1623
1623
  if (void 0 === n) return;
1624
- const r = P(n);
1625
- V(r, e);
1624
+ const r = c(n);
1625
+ C(r, e);
1626
1626
  const s = t?.scope;
1627
1627
  return s && (r.value.scope = s, r.value.scopeImage = t.scopeImage), r;
1628
1628
  });
@@ -1637,7 +1637,7 @@ var St = (e) => {
1637
1637
  const r = "let" === t ? "LET" : "LAMBDA", i = e.inputs, s = i?.length ?? 0;
1638
1638
  if (!i || s < 2) return;
1639
1639
  if ("let" === t && s % 2 == 0) return void (n = `Wrong number of arguments for LET. Expected name/value pairs followed by a calculation, but got ${s}.`);
1640
- if ("lambda" === t && i[s - 1]?.type === b.Empty) return void (n = "LAMBDA has no calculation: the last argument is empty.");
1640
+ if ("lambda" === t && i[s - 1]?.type === N.Empty) return void (n = "LAMBDA has no calculation: the last argument is empty.");
1641
1641
  const l = /* @__PURE__ */ new Set(), o = "let" === t ? 2 : 1;
1642
1642
  let a = !1;
1643
1643
  for (let e = 0; e < s - 1; e += o) {
@@ -1659,64 +1659,64 @@ var St = (e) => {
1659
1659
  function Pt(e, t, n, r, i) {
1660
1660
  const s = r;
1661
1661
  let l;
1662
- const o = () => (void 0 === l && (l = i && n ? t.bind(a.Table, "", { at: {
1662
+ const o = () => (void 0 === l && (l = i && n ? t.bind(B.Table, "", { at: {
1663
1663
  scope: n,
1664
1664
  rowIndex: i.rowIndex,
1665
1665
  colIndex: i.colIndex
1666
1666
  } }) : null), l);
1667
- return B(e, (e, r, i = []) => {
1667
+ return h(e, (e, r, i = []) => {
1668
1668
  let l;
1669
- const u = e.type;
1670
- if (u === b.Cell) {
1669
+ const a = e.type;
1670
+ if (a === N.Cell) {
1671
1671
  const n = e.value;
1672
1672
  if (n?.scope) {
1673
- const r = t.bind(a.Sheet, n.scope, s);
1673
+ const r = t.bind(B.Sheet, n.scope, s);
1674
1674
  null !== r && (l || (l = { ...e }), l.value = {
1675
1675
  ...n,
1676
1676
  scope: r
1677
1677
  });
1678
1678
  }
1679
- } else if (u === b.Named) {
1679
+ } else if (a === N.Named) {
1680
1680
  const r = e.value;
1681
1681
  if (r && !e.binding) {
1682
1682
  const i = function(e, t, n, r) {
1683
1683
  if (t.scope) {
1684
- const e = n.bind(a.Sheet, t.scope, r);
1685
- if (null === e || x(e)) return;
1684
+ const e = n.bind(B.Sheet, t.scope, r);
1685
+ if (null === e || E(e)) return;
1686
1686
  }
1687
- const i = n.bind(a.Table, t.nameId, { existing: !0 });
1687
+ const i = n.bind(B.Table, t.nameId, { existing: !0 });
1688
1688
  if (null === i) return;
1689
1689
  const s = {
1690
- type: b.TableReference,
1690
+ type: N.TableReference,
1691
1691
  value: i,
1692
1692
  inputs: null,
1693
1693
  isReference: !0
1694
1694
  };
1695
- V(s, e);
1695
+ C(s, e);
1696
1696
  const l = t.scopeImage;
1697
1697
  return "string" == typeof l && void 0 !== e.image && (s.image = l + e.image), s;
1698
1698
  }(e, r, t, s);
1699
1699
  if (i) return i;
1700
- const o = r.scope ? t.bind(a.Sheet, r.scope, s) : null, u = (null !== o ? x(o) ? o : t.resolve(a.Sheet, o)?.toString() ?? r.scope : r.scope) ?? n, c = t.bind(a.NamedFormula, r.nameId, u ? { scope: u } : void 0);
1701
- null === c && null === o || (l || (l = { ...e }), l.value = {
1700
+ const o = r.scope ? t.bind(B.Sheet, r.scope, s) : null, a = (null !== o ? E(o) ? o : t.resolve(B.Sheet, o)?.toString() ?? r.scope : r.scope) ?? n, u = t.bind(B.NamedFormula, r.nameId, a ? { scope: a } : void 0);
1701
+ null === u && null === o || (l || (l = { ...e }), l.value = {
1702
1702
  ...r,
1703
- nameId: c ?? r.nameId,
1703
+ nameId: u ?? r.nameId,
1704
1704
  ...null !== o ? { scope: o } : void 0
1705
1705
  });
1706
1706
  }
1707
- } else if (u === b.Error) {
1707
+ } else if (a === N.Error) {
1708
1708
  const n = e.value;
1709
1709
  if (n?.scope) {
1710
- const r = t.bind(a.Sheet, n.scope, s);
1710
+ const r = t.bind(B.Sheet, n.scope, s);
1711
1711
  null !== r && (l || (l = { ...e }), l.value = {
1712
1712
  ...n,
1713
1713
  scope: r
1714
1714
  });
1715
1715
  }
1716
- } else if (u === b.TableReference) {
1716
+ } else if (a === N.TableReference) {
1717
1717
  const n = e.value;
1718
1718
  if (n) {
1719
- const r = t.bind(a.Table, n);
1719
+ const r = t.bind(B.Table, n);
1720
1720
  l || (l = { ...e }), null !== r && (l.value = r);
1721
1721
  } else if ("string" == typeof n) {
1722
1722
  const n = o();
@@ -1725,16 +1725,16 @@ function Pt(e, t, n, r, i) {
1725
1725
  value: n
1726
1726
  };
1727
1727
  }
1728
- } else if (u === b.TableColumn) {
1728
+ } else if (a === N.TableColumn) {
1729
1729
  const n = e.value;
1730
1730
  if (n) {
1731
- const r = pe(i, b.TableReference), s = r?.value || (r ? o() ?? void 0 : void 0), u = t.bind(a.TableColumn, n, s ? { tableName: s } : void 0);
1732
- l || (l = { ...e }), null !== u && (l.value = u);
1731
+ const r = pe(i, N.TableReference), s = r?.value || (r ? o() ?? void 0 : void 0), a = t.bind(B.TableColumn, n, s ? { tableName: s } : void 0);
1732
+ l || (l = { ...e }), null !== a && (l.value = a);
1733
1733
  }
1734
- } else if (u === b.Function) {
1734
+ } else if (a === N.Function) {
1735
1735
  const n = e.value;
1736
1736
  if (n) {
1737
- const r = t.bind(a.Function, n);
1737
+ const r = t.bind(B.Function, n);
1738
1738
  l || (l = { ...e }), null !== r && (l.value = r);
1739
1739
  }
1740
1740
  }
@@ -1745,20 +1745,20 @@ function kt(e, t) {
1745
1745
  let n = !0;
1746
1746
  const r = e.inputs;
1747
1747
  if (!r) return !0;
1748
- for (let e = 0; e < r.length && n; e++) B(r[e], (e) => {
1749
- e.type === b.TableColumn && null === t.resolve(a.TableColumn, e.value) && (n = !1);
1748
+ for (let e = 0; e < r.length && n; e++) h(r[e], (e) => {
1749
+ e.type === N.TableColumn && null === t.resolve(B.TableColumn, e.value) && (n = !1);
1750
1750
  });
1751
1751
  return n;
1752
1752
  }
1753
1753
  function Lt(e, t) {
1754
1754
  let n = null;
1755
- return B(e, (e) => {
1756
- if (n || e.type !== b.TableReference) return;
1755
+ return h(e, (e) => {
1756
+ if (n || e.type !== N.TableReference) return;
1757
1757
  if ("" === e.value) return void (n = "A structured reference without a table name must be in a table that has its columns.");
1758
1758
  const r = e.value;
1759
1759
  if (!t || "string" != typeof r) return;
1760
- const i = t.resolve(a.Table, r)?.toString() ?? r;
1761
- null === t.bind(a.Table, i, { existing: !0 }) ? n = `There is no table named '${i}'.` : kt(e, t) || (n = "The table has no such column.");
1760
+ const i = t.resolve(B.Table, r)?.toString() ?? r;
1761
+ null === t.bind(B.Table, i, { existing: !0 }) ? n = `There is no table named '${i}'.` : kt(e, t) || (n = "The table has no such column.");
1762
1762
  }), n;
1763
1763
  }
1764
- export { xt as A, nt as C, lt as D, Ze as E, ue as O, me as S, pt as T, fe as _, Ke as a, he as b, Re as c, ae as d, be as f, dt as g, ct as h, Ie as i, ye as j, ve as k, Je as l, ce as m, Ft as n, Nt as o, bt as p, He as r, Pt as s, At as t, _e as u, ft as v, ot as w, Lt as x, ge as y };
1764
+ export { xt as A, nt as C, lt as D, qe as E, ue as O, me as S, pt as T, fe as _, Ke as a, he as b, Re as c, ae as d, be as f, dt as g, ct as h, Ie as i, ye as j, ve as k, Ze as l, ce as m, Ft as n, Nt as o, bt as p, He as r, Pt as s, At as t, _e as u, ft as v, ot as w, Lt as x, ge as y };