@sheetxl/mcp 0.8.0-beta.25 → 1.0.2

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 (186) hide show
  1. package/assets/{CDiutOsLAzu4c0Ej.js → 1d-8AAcf1UmC2qIz.js} +1 -1
  2. package/assets/{V4pGXJr6fe-CPg7i.js → 30KXHiLfwl0cbsxL.js} +1 -1
  3. package/assets/{CCOaNx5_BfWCc9yz.js → 3o7I8loKRGynHrNq.js} +1 -1
  4. package/assets/{Brlza6Jd2oGGX9vB.js → 648qV0v861jvyZWm.js} +1 -1
  5. package/assets/{GfAXkT_vctdRX_9f.js → 7khlPnFFCrE8gnT_.js} +12 -12
  6. package/assets/{CX-KrjVgXM-7o--S.js → 8hUUTZ62hbxY0TOp.js} +2 -2
  7. package/assets/{DaB9iRVJj3TmKH92.js → B1Vm5y0E-TPSYFya.js} +3 -3
  8. package/assets/{B6e_DsVO4i91IYEO.js → B6ToyMcYe9lyaeDk.js} +3 -3
  9. package/assets/{DB2MrmDLZ-OzVRQu.js → B6pS096VwbWaj1Zz.js} +2 -2
  10. package/assets/{DwmlBb640xWfAMV2.js → B9V6AFTTnbPscv11.js} +2 -2
  11. package/assets/{DHCl7HWDbT3xqx8W.js → BESu-5sZSIJqkrWN.js} +2 -2
  12. package/assets/{BSJ_L1gNOejEih6N.js → BHhPtFpb3YfV6_44.js} +32 -32
  13. package/assets/{u8xtjHo43n-S_O6j.js → BMAAmO8LPIe4VJ77.js} +1 -1
  14. package/assets/{C9DvPNfuz_0hun6C.js → BMVu89mdcVSqJDDE.js} +1 -1
  15. package/assets/{DBgHcEP-FcgSHLvx.js → BRB5-fXJFU7Kq2wm.js} +314 -314
  16. package/assets/{CD2yoEhIT8DyXBou.js → BRI3D42tlMkZdYb2.js} +37 -37
  17. package/assets/{DgE30NwKzEjZI1W6.js → BVzogMoyaicBEKBk.js} +3 -3
  18. package/assets/{DXDhH3F4N4OOigqN.js → BWpLQNKC3n8bXJUk.js} +1 -1
  19. package/assets/{Cmf4eJow6AIuPH_w.js → Baa8cmJsilboM0DW.js} +1 -1
  20. package/assets/{irrAIfw6CnCOHmPE.js → BcDNXTGASDvptqc-.js} +1 -1
  21. package/assets/{Djl7cjJyCIS_Qvbd.js → Bme_PT3UqwTbGLWd.js} +1 -1
  22. package/assets/{DZTVTdrwu05fNZk_.js → BnxajOeIasx1G3OB.js} +1 -1
  23. package/assets/{cTLYCAhDs2fR2ITC.js → BousX61zAjBfjlsV.js} +1 -1
  24. package/assets/{DAnTpFc2vx3CmP8e.js → Bp73VL7f5DEt88Cn.js} +26 -26
  25. package/assets/{DLW76uSURiQM07DD.js → BppAvnmuJbbYBQUy.js} +1 -1
  26. package/assets/{DvkgborRc2vRq8E-.js → BtoBfR_4n1u37HmC.js} +1 -1
  27. package/assets/{H40qXR3Gazmnq4Mv.js → BuLAeGM4AvHCge4x.js} +1 -1
  28. package/assets/{45FAgD1JyG2a1Rti.js → Buxo11Ux7uxzoy_7.js} +2 -2
  29. package/assets/{u9le-qZ3tbYKK1kU.js → BwTF2TRqzXsf0H1I.js} +2 -2
  30. package/assets/{m9BgbF-NgPIYW4kc.js → BzCwrG3Zdv-Trzi_.js} +1 -1
  31. package/assets/{H_6CBe3t27jHlBHk.js → C00qhh0-m0B0JP9Y.js} +140 -140
  32. package/assets/{C6Vsz4e_ASJdx3LP.js → C5VvbPUAfrVKmXXs.js} +1 -1
  33. package/assets/{Cu4ok_jTnQif8QtX.js → C85xBYGjAzNmVNwL.js} +1 -1
  34. package/assets/{Duw8QQGcrPmesb-M.js → C880pTyOMof_fzPO.js} +1 -1
  35. package/assets/{70weNsvW2LMx5QcW.js → C88UXFOnR1Uc-nw2.js} +1 -1
  36. package/assets/{CYtkZMCX6dyEqjb9.js → C8G6iJz_vsgbNYq9.js} +4 -4
  37. package/assets/{DX94YgmfoL_ngS60.js → CAQgJMpje7ORQ5lt.js} +1 -1
  38. package/assets/CBSyNN4Fk5WsVStK.js +14 -0
  39. package/assets/{BktUuVP0Jew8_-ff.js → CCeqR45x9p-GG8Pi.js} +1 -1
  40. package/assets/{xSUMX6J9-MJIGgmG.js → CEDsCeYCSlY7wYe1.js} +2 -2
  41. package/assets/{CfWSdzSpbErVA_1h.js → CFWHwEc3dKMmNzUp.js} +338 -338
  42. package/assets/{CGS7apShLtnlmF8D.js → CK9LWUZdZ93t3GkS.js} +1 -1
  43. package/assets/{V_VVW06vjWkmlbdh.js → CL-BRusnISEAzebz.js} +527 -527
  44. package/assets/{C-FJab2sVwBbOTiA.js → CLvFlk5-KU2jnQ5r.js} +1 -1
  45. package/assets/{ClRgSo0axU3lAOwR.js → CUhCIQjymULgXquN.js} +1 -1
  46. package/assets/{Cb7FKT3S78r6IYHi.js → CboWvqCV0yix3-yP.js} +1 -1
  47. package/assets/{COZ-bhj463kGINFA.js → Ci4AUhBajQMJs1Ty.js} +1 -1
  48. package/assets/{eCD6fmcTsgv76IZm.js → CkQT1G_6bvMixZ8e.js} +4 -4
  49. package/assets/{DFd0JAiw5dkbnULM.js → CkqsYktaMF9p014y.js} +1 -1
  50. package/assets/{CSMsn9bKgR9kWG0m.js → CkuL4Ed6oRGAhIS9.js} +1 -1
  51. package/assets/{COXWiXy3DCfmXSm5.js → Cm41HVr6Xyz53jHz.js} +1 -1
  52. package/assets/{DQlLgxA592HvgKzh.js → CoY2sE2RG-Nd8TMR.js} +1 -1
  53. package/assets/{DZOzgVEOXfHTE3YC.js → CuRvGO_2tG0PUhCM.js} +1 -1
  54. package/assets/{ckvxz2tZRlY1UPpg.js → CvqpsTll6ngbdHgx.js} +9731 -9750
  55. package/assets/{BAowTO-7Utmg0UvM.js → Cvs9i2VUl7wXWZup.js} +3 -3
  56. package/assets/{CFrOPd_UcD7qclCq.js → Cy2uazuc6KpkbYg-.js} +1 -1
  57. package/assets/{cU78RT4WJKAp5mU_.js → CybNjXi6cOFKyGuH.js} +1 -1
  58. package/assets/{BHIi-cAKnh_sAifV.js → CzPMiqbNDm6TDPGJ.js} +1 -1
  59. package/assets/{D6qQAWN_5p3FAshK.js → CzYXLEVIoCfQ1AMM.js} +157 -157
  60. package/assets/{D7NjohknztgMLqhT.js → D-BWtxIGXTCMLoio.js} +2 -2
  61. package/assets/{C-Vt758qtn8QeCrw.js → D0Ly34TqieVSOIbh.js} +1 -1
  62. package/assets/{Abkx7KJ6_X5avkR4.js → D0M0EWP28g5rQaei.js} +3 -3
  63. package/assets/{D053O1kZ7JtMwiqh.js → D4NBYfzSZ3cU-3ao.js} +1 -1
  64. package/assets/{DG9KGapq8eHlcTC7.js → D4NcXlPRmR6NaoGS.js} +1 -1
  65. package/assets/{DRvzD5Tkcb2OU0G2.js → D4jXxO1LUEQ6erA9.js} +1 -1
  66. package/assets/{DfaQvLAaU7HHPnSe.js → DAx-VOBmi1xAMhhX.js} +29 -29
  67. package/assets/{BbfSzxx5EzAvn-_F.js → DBcXAdUaNGrlah12.js} +15 -15
  68. package/assets/{DQBqVPRLkZFb2P_x.js → DFdAxnoXGn_8ge3l.js} +2 -2
  69. package/assets/{BtNEVWQWEp_Ie1nT.js → DFjfZCMPfQfwC4cF.js} +581 -581
  70. package/assets/{Cplall3oc-_3AhCB.js → DG0Dzgf1kAxN3AIk.js} +1 -1
  71. package/assets/{CcTDxlAqw6HuYmmm.js → DGv-dTePYQ8_yif4.js} +66 -66
  72. package/assets/{HLtC2gb8SfNmJU5q.js → DIaD0BL0JLTaJTS3.js} +5 -5
  73. package/assets/{C2kYWrsx5mg4XOES.js → DIimDQiJDW-4lkZT.js} +1 -1
  74. package/assets/{BzU8BhgrkSoh-XJF.js → DK8DWNMTOmCg6zAI.js} +8 -8
  75. package/assets/{DlOCT6DI5bhPtQ8j.js → DKox8guOumZMOdq8.js} +29 -29
  76. package/assets/{BNvsIyBwweYnfUz3.js → DMHiZKWwm6puHV6p.js} +1 -1
  77. package/assets/{BzLwCwXsh7eXQpeK.js → DMyq3L2ibjMlHuDa.js} +1 -1
  78. package/assets/{UdhH9UX9jQ4IV11J.js → DOKXQpGyzXCoSLdJ.js} +1 -1
  79. package/assets/{D8wjcRGgRdU34Ata.js → DOXriXo-7WmTAKbN.js} +1 -1
  80. package/assets/{CJubVukzHBNJb_Wf.js → DRfsB4kS28fPXv6K.js} +105 -105
  81. package/assets/{DkS3EQvuEuPDvCws.js → DSmARJ0owmwmr2FA.js} +2 -2
  82. package/assets/{DYx_I-o0yjx056Dq.js → DUM6h3BEreCilg32.js} +1 -1
  83. package/assets/{DpGFb3hbAT5Murcv.js → DXp5V2__VY2opctz.js} +1 -1
  84. package/assets/{TqxFLhPz3zbgi95t.js → D_YBc6vHBL-ajwvB.js} +1 -1
  85. package/assets/{D5aWcMLJ2wyLm9Ws.js → Dc8BQsPlwN6i6OU7.js} +1 -1
  86. package/assets/{B_GZxEqqpKtEPbWC.js → DcnNIdrilJHfl_CQ.js} +1 -1
  87. package/assets/{B0FfnXdiZxExcdjB.js → DdIufax_qSuWVGQK.js} +2 -2
  88. package/assets/{DkT0-_t9Xgp4l-Mh.js → DeNqXaM_dHSswRuE.js} +1 -1
  89. package/assets/{O8YGVK4vtz39jQ84.js → DfVHW5vbnRNXHrCi.js} +1 -1
  90. package/assets/{D8cqT2lbcP5Yp1Or.js → Dfc9_XsqSeh48YeK.js} +11 -11
  91. package/assets/{DbHVXEt9qwlb8Gou.js → DiXodb_hLvUDIGb6.js} +29 -29
  92. package/assets/{CVWoX7wNwrZwm5XB.js → Dn531BWCDZ2noJix.js} +2 -2
  93. package/assets/{B940vbTfpMYACpDE.js → DnAuLAqQLmAf9Gls.js} +2 -2
  94. package/assets/{BV13tLgNXZ8MDaE_.js → Do8K2GlFXIiMX9TB.js} +1 -1
  95. package/assets/{DXVfJfT6ftWk5kYi.js → Dt8hWBnnqlpJOazW.js} +138 -138
  96. package/assets/{DUfrvQDZKh_22F91.js → DuBbSpdXZuAFvxpr.js} +1 -1
  97. package/assets/{ixHQtoul8ubEJfWS.js → DvAq2cPI7-lfSn0x.js} +1 -1
  98. package/assets/{CGdayif_qNMtoATI.js → DzCZGtlg3pJO91l9.js} +1 -1
  99. package/assets/{DcHvH_I64hbnNh9G.js → DzRBnJpz972o277m.js} +1 -1
  100. package/assets/{LQNEL4KjDxwZNwWq.js → EohzUi0uCnSF2q2D.js} +156 -156
  101. package/assets/{Bwk-CZuGiTRT2ox_.js → KSagTSkIvZSpUF1c.js} +4 -4
  102. package/assets/{BD3Bc7ZHxenj4S7Q.js → LOFAyr5OoT3oZGMV.js} +1 -1
  103. package/assets/{BBccc8pDH-6AJdoT.js → LbZNDu6C9XPMEXCN.js} +5 -5
  104. package/assets/{DJlQxf99HCszeCCD.js → NwtEz6ZaVT8p8wOh.js} +1 -1
  105. package/assets/{VkeNTI1TMsA1ZbGz.js → PD_i17-cebq3-_Gn.js} +3 -3
  106. package/assets/{Bb7ZxgjHwiKgARXs.js → Q-BvS_P_qM8EvP92.js} +1 -1
  107. package/assets/{BW8ReYzx-CEJ-lAG.js → YRKAYjRpPkjhxGSS.js} +1 -1
  108. package/assets/{kmiMiNIUc6rS8DG8.js → _-kNP8Q4FxBYPY4u.js} +4 -4
  109. package/assets/{Ci3R5B7bLke8NZRo.js → aEDyynzUuzMysLwT.js} +6 -6
  110. package/assets/{DunKnm-bQd0oHn9n.js → cTnKNFayqlXisspN.js} +2 -2
  111. package/assets/{DZBfVpnngvY9Ra3C.js → eEh1r_BS7Y0FXPqk.js} +1 -1
  112. package/assets/{BHeXL-Lo390ZSNV0.js → g4vz4gc43eat7Hd2.js} +1 -1
  113. package/assets/{CAI8p60cuWlgnlko.js → jUzhn1PeDLWXOuJO.js} +14 -14
  114. package/assets/{DbXqd8hGNQEyS-s0.js → kIzQWtiHNHvh8HLF.js} +1 -1
  115. package/assets/{BXxUz-sB48Z9nSFi.js → mIM-JksHd3Zl5INF.js} +1 -1
  116. package/assets/{s56uiNHMGbBV6xgZ.js → mirSoZ8QDsYUMjYu.js} +1 -1
  117. package/assets/{APcHum0Riw3QhLBQ.js → ooSNLnHLIYTBL5JD.js} +1 -1
  118. package/assets/{BFKj2ik7h-yM6oCR.js → tp75fiKc1r-jdPPN.js} +1 -1
  119. package/assets/{DcHo7BC8Ny3hWq0j.js → xltGcIbWkjqNtCty.js} +2 -2
  120. package/assets/{xMi-tFxI2s6e18L1.js → zbOvcGIPi-MDlJKE.js} +1 -1
  121. package/index.js +118 -118
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +35 -35
  124. package/package.json +17 -2
  125. package/screenshot-page/assets/{Da_VIghRFdNrmfZT.js → 37HIsN_8LEsOWyOO.js} +1 -1
  126. package/screenshot-page/assets/4I9gFq1IdumstDHq.js +2 -0
  127. package/screenshot-page/assets/6j6xGn4csAcfcFMQ.js +1 -0
  128. package/screenshot-page/assets/{hB5riGkPy0wXVIig.js → 7N8xCpYVBHFqfoAg.js} +1 -1
  129. package/screenshot-page/assets/{D8EmNst-H2v0eWcf.js → 97qOXULGlJqaTCIL.js} +1 -1
  130. package/screenshot-page/assets/B6dFVtErFelDd62E.js +2 -0
  131. package/screenshot-page/assets/{BCmGLxQEUabeee6Q.js → B6i6Xi9OafEvNRAm.js} +2 -2
  132. package/screenshot-page/assets/B7uNU6WWjJaco6ho.js +1 -0
  133. package/screenshot-page/assets/{DqOrgSpuJhQRhMoG.js → BGoGxqwlpgXt8CMd.js} +2 -2
  134. package/screenshot-page/assets/{0P0DnZolMnjPhiea.js → BXss42mPBQnnt0Rh.js} +1 -1
  135. package/screenshot-page/assets/{D53hpXNHxIgSWl80.js → BbhwsC3eMdzP2PeH.js} +1 -1
  136. package/screenshot-page/assets/Beaq1eo3pAjlfcba.js +1 -0
  137. package/screenshot-page/assets/Bf3eJLndwyxuVR-_.js +1 -0
  138. package/screenshot-page/assets/{CKdQfdZJGJFgnrr9.js → BqJRJVrx7XkIPgo7.js} +11 -11
  139. package/screenshot-page/assets/C-qNpEaGV5amWPml.js +13 -0
  140. package/screenshot-page/assets/{CCYEWK5QyGSnUAfh.js → CB-bJVu0a2zAElNH.js} +1 -1
  141. package/screenshot-page/assets/CGvyz3VVFiHbYHM0.js +3 -0
  142. package/screenshot-page/assets/{DTAKTGn53yF_B621.js → CKbXhNyUiI18JA_C.js} +1 -1
  143. package/screenshot-page/assets/{DkTX5ZjGNQ5SrwJa.js → CVEUOXnI1pTa-GKp.js} +1 -1
  144. package/screenshot-page/assets/C_RHXqyejSa8gd9x.js +1 -0
  145. package/screenshot-page/assets/{Bt7fKk5ZupUuo_xD.js → CbTBuiF_Jn72hoj1.js} +2 -2
  146. package/screenshot-page/assets/{C-2hBFk27roWkIrQ.js → CraI-__UdtaIvbNn.js} +1 -1
  147. package/screenshot-page/assets/{CMryHLEhCyKGuRSW.js → Cyu6g5rRtEGOHaQS.js} +4 -4
  148. package/screenshot-page/assets/{CL_hAngRQwm_KGdR.js → D1KqgZwk5MjDhk5i.js} +1 -1
  149. package/screenshot-page/assets/DGr8M07ioDfKXLHD.js +57 -0
  150. package/screenshot-page/assets/DMbhlzvflyxF5Clt.js +39 -0
  151. package/screenshot-page/assets/{D-jd_TJCN7AAn125.js → DQxI7bShZ7TKpL0V.js} +9 -9
  152. package/screenshot-page/assets/{BpJaTpbR_CQzXj9M.js → DSB_SKy2lKI_VGik.js} +1 -1
  153. package/screenshot-page/assets/DWkISZdhmV2PBk-k.js +1 -0
  154. package/screenshot-page/assets/{BVnzv_sY_58zEJyM.js → DfmEx82r_NbillHk.js} +1 -1
  155. package/screenshot-page/assets/{MqGbtsji4DVGCAMR.js → DsZcJUWTmqcp2aI-.js} +1 -1
  156. package/screenshot-page/assets/{jteb4n23QwBT9m_4.js → DszZ1A807YzTc0ek.js} +1 -1
  157. package/screenshot-page/assets/{DJebrQ5mu8uxpX3b.js → DwHci99xcnRTEcv5.js} +2 -2
  158. package/screenshot-page/assets/Ojp2B5i2-AJeD4mV.js +1 -0
  159. package/screenshot-page/assets/{CRtk9ixuBWxhPfPU.js → PRYQO22Y2LgMUg77.js} +1 -1
  160. package/screenshot-page/assets/{CZaKvnrRdlLj1_X8.js → RHcyaEfxJB7O3alo.js} +1 -1
  161. package/screenshot-page/assets/TA9YjsgX-_8fRRdZ.js +1 -0
  162. package/screenshot-page/assets/cUY9GpQPVTLSprfW.js +1 -0
  163. package/screenshot-page/assets/{Bne-AygyF1USkPAy.js → m48xmzGgNgwXSEgQ.js} +1 -1
  164. package/screenshot-page/assets/mVfCz3bXIjqEVPEo.js +1 -0
  165. package/screenshot-page/assets/{CFS0h-wE9YlZRk_1.js → putBhJCWgRos_Fmk.js} +1 -1
  166. package/screenshot-page/assets/{DbnmgPTSEii4OGkB.js → uyInkZWFnMwX-BSC.js} +1 -1
  167. package/screenshot-page/assets/{D98PlIA4qQ_6ciCu.js → xiJthTXsasYVOHWE.js} +2 -2
  168. package/screenshot-page/index.html +8 -8
  169. package/types/scripting.d.ts +1 -1
  170. package/assets/CehVpkp73IfWGN_b.js +0 -14
  171. package/screenshot-page/assets/3L7CY5dA_kT2UBjv.js +0 -1
  172. package/screenshot-page/assets/B6UwT0pG4sQeG7fA.js +0 -3
  173. package/screenshot-page/assets/BH2IWQ-8AfNbhYZJ.js +0 -39
  174. package/screenshot-page/assets/BkU12U7IqW7qjopk.js +0 -13
  175. package/screenshot-page/assets/Bs-IXwX9BKsCxwcJ.js +0 -2
  176. package/screenshot-page/assets/C7MXfx6zf_uTwcpu.js +0 -1
  177. package/screenshot-page/assets/CUQsrLir5jYpnRPM.js +0 -1
  178. package/screenshot-page/assets/CUgX7ETRCJsvqa2x.js +0 -1
  179. package/screenshot-page/assets/CfD1bn6b-NM38iZV.js +0 -1
  180. package/screenshot-page/assets/Ck5onwb1w_19WrtG.js +0 -1
  181. package/screenshot-page/assets/CvBPH5c-gnUG8Jen.js +0 -1
  182. package/screenshot-page/assets/DmIjTb4kKfUHxWaF.js +0 -57
  183. package/screenshot-page/assets/Dz_yLNMXKWGx1O6V.js +0 -2
  184. package/screenshot-page/assets/eR9_DaySoB72PvMo.js +0 -1
  185. package/screenshot-page/assets/hHvAGynpTvAb97GX.js +0 -1
  186. package/screenshot-page/assets/x1O923k1mN-CduO_.js +0 -1
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.25
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v1.0.2
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 { u as e } from "./CCOaNx5_BfWCc9yz.js";
8
- import { Bt as t, Dr as n, Ei as i, Ft as r, Gt as s, Li as o, Ma as a, Ot as c, Qr as h, Sn as l, Ta as u, Yi as d, Zn as p, _i as f, ba as m, ca as E, eo as T, et as g, ht as O, ir as A, lt as R, mr as I, p as _, qa as N, s as L, t as S, ta as C, w as y, xi as k, xr as v } from "./ckvxz2tZRlY1UPpg.js";
7
+ import { u as e } from "./3o7I8loKRGynHrNq.js";
8
+ import { $r as t, Cr as n, E as i, Fa as r, Ft as s, J as o, M as a, Qt as c, Sa as h, Si as l, Tn as u, V as d, Wi as p, Wr as f, Wt as m, Xi as E, Zn as T, aa as g, an as O, bn as A, fr as R, jr as I, ka as _, kt as N, so as L, st as S, t as C, u as y, x as k, zi as v } from "./CvqpsTll6ngbdHgx.js";
9
9
  function x(e) {
10
10
  console && console.error && console.error(`Error: ${e}`);
11
11
  }
@@ -4187,19 +4187,19 @@ var jn = class extends $n {
4187
4187
  }
4188
4188
  }, Gn = class t {
4189
4189
  static shared(e) {
4190
- const n = e?.locale ?? N, i = e?.maxColumn ?? Hn, r = e?.maxRow ?? Yn;
4191
- let s = Vn.get(n);
4192
- s || (s = /* @__PURE__ */ new Map(), Vn.set(n, s));
4193
- const o = `${i}:${r}`;
4194
- let a = s.get(o);
4195
- return a || (a = new t({
4190
+ const n = e?.locale ?? i, r = e?.maxColumn ?? Hn, s = e?.maxRow ?? Yn;
4191
+ let o = Vn.get(n);
4192
+ o || (o = /* @__PURE__ */ new Map(), Vn.set(n, o));
4193
+ const a = `${r}:${s}`;
4194
+ let c = o.get(a);
4195
+ return c || (c = new t({
4196
4196
  locale: n,
4197
- maxColumn: i,
4198
- maxRow: r
4199
- }), s.set(o, a)), a;
4197
+ maxColumn: r,
4198
+ maxRow: s
4199
+ }), o.set(a, c)), c;
4200
4200
  }
4201
4201
  constructor(e) {
4202
- const t = e?.maxColumn ?? Hn, n = e?.maxRow ?? Yn, r = e?.locale ?? N;
4202
+ const t = e?.maxColumn ?? Hn, n = e?.maxRow ?? Yn, r = e?.locale ?? i;
4203
4203
  this._locale = r, this._maxColumn = t, this._maxRow = n;
4204
4204
  const { separatorFunction: s, separatorColumn: o, separatorRow: a, separatorDecimal: c } = r.separators;
4205
4205
  if (o === a) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${o}')`);
@@ -4215,12 +4215,12 @@ var jn = class extends $n {
4215
4215
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
4216
4216
  }), d = pt({
4217
4217
  name: "TableReference",
4218
- pattern: { exec: A },
4218
+ pattern: { exec: L },
4219
4219
  line_breaks: !1,
4220
4220
  start_chars_hint: Wn
4221
4221
  }), p = pt({
4222
4222
  name: "BracketedString",
4223
- pattern: { exec: i },
4223
+ pattern: { exec: T },
4224
4224
  line_breaks: !1,
4225
4225
  start_chars_hint: [91],
4226
4226
  longer_alt: [d, l]
@@ -4244,13 +4244,13 @@ var jn = class extends $n {
4244
4244
  "#PYTHON!",
4245
4245
  "#TIMEOUT!"
4246
4246
  ].map(m).join("|"))
4247
- }), T = pt({
4247
+ }), g = pt({
4248
4248
  name: "RefError",
4249
4249
  pattern: new RegExp(f(r.errorRefs) + ["#REF!", "#NAME\\?"].map(m).join("|"))
4250
- }), g = pt({
4250
+ }), O = pt({
4251
4251
  name: "SingleQuotedString",
4252
4252
  pattern: /'(''|[^'])*'/
4253
- }), O = pt({
4253
+ }), A = pt({
4254
4254
  name: "SheetQuoted",
4255
4255
  pattern: /'(?:''|[^'])*?'!/
4256
4256
  }), R = pt({
@@ -4268,7 +4268,7 @@ var jn = class extends $n {
4268
4268
  } },
4269
4269
  line_breaks: !1,
4270
4270
  start_chars_hint: Wn
4271
- }), L = pt({
4271
+ }), N = pt({
4272
4272
  name: "Cell",
4273
4273
  pattern: { exec: qn(t, n) },
4274
4274
  line_breaks: !1,
@@ -4363,7 +4363,7 @@ var jn = class extends $n {
4363
4363
  }), ee = pt({
4364
4364
  name: "ArrayAnchorOp",
4365
4365
  pattern: /#/,
4366
- longer_alt: [E, T]
4366
+ longer_alt: [E, g]
4367
4367
  }), te = pt({
4368
4368
  name: "GtOp",
4369
4369
  pattern: />/
@@ -4376,14 +4376,14 @@ var jn = class extends $n {
4376
4376
  }), re = [
4377
4377
  h,
4378
4378
  l,
4379
+ A,
4379
4380
  O,
4380
- g,
4381
4381
  R,
4382
4382
  u,
4383
4383
  d,
4384
4384
  p,
4385
4385
  E,
4386
- T,
4386
+ g,
4387
4387
  b,
4388
4388
  ...o !== s ? [U] : [],
4389
4389
  w,
@@ -4391,7 +4391,7 @@ var jn = class extends $n {
4391
4391
  B,
4392
4392
  $,
4393
4393
  F,
4394
- L,
4394
+ N,
4395
4395
  M,
4396
4396
  S,
4397
4397
  C,
@@ -4533,9 +4533,9 @@ function Qn(e) {
4533
4533
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4534
4534
  }
4535
4535
  var Zn = class {
4536
- constructor(e = N) {
4536
+ constructor(e = i) {
4537
4537
  const t = function(e) {
4538
- const t = [...g];
4538
+ const t = [...c];
4539
4539
  if (e) for (const n of Object.values(e)) {
4540
4540
  const e = n?.trim();
4541
4541
  e && !t.some((t) => t.toLowerCase() === e.toLowerCase()) && t.push(e);
@@ -4545,16 +4545,16 @@ var Zn = class {
4545
4545
  name: "WhiteSpace",
4546
4546
  pattern: /\s+/,
4547
4547
  group: tt.SKIPPED
4548
- }), i = pt({
4548
+ }), r = pt({
4549
4549
  name: "TableSpecifier",
4550
4550
  pattern: new RegExp(`\\[#(?:${t})\\]`, "i")
4551
- }), r = [
4551
+ }), s = [
4552
4552
  n,
4553
- i,
4553
+ r,
4554
4554
  pt({
4555
4555
  name: "BracketedColumn",
4556
4556
  pattern: /\[(?:'['#[\]]|'(?!['#[\]])|[^'[\]])*\]/,
4557
- longer_alt: [i]
4557
+ longer_alt: [r]
4558
4558
  }),
4559
4559
  pt({
4560
4560
  name: "BareSpecifier",
@@ -4569,11 +4569,11 @@ var Zn = class {
4569
4569
  pattern: new RegExp(e.separators.separatorFunction.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"))
4570
4570
  })
4571
4571
  ];
4572
- this._lexer = new tt(r, { ensureOptimizations: !0 });
4573
- const s = {};
4574
- r.forEach((e) => {
4575
- s[e.name] = e;
4576
- }), this._vocabulary = s;
4572
+ this._lexer = new tt(s, { ensureOptimizations: !0 });
4573
+ const o = {};
4574
+ s.forEach((e) => {
4575
+ o[e.name] = e;
4576
+ }), this._vocabulary = o;
4577
4577
  }
4578
4578
  getVocabulary() {
4579
4579
  return this._vocabulary;
@@ -4582,7 +4582,7 @@ var Zn = class {
4582
4582
  return this._lexer.tokenize(e);
4583
4583
  }
4584
4584
  }, Jn = class extends jn {
4585
- constructor(e = N) {
4585
+ constructor(e = i) {
4586
4586
  const t = new Zn(e), n = t.getVocabulary();
4587
4587
  super(n, {
4588
4588
  nodeLocationTracking: "none",
@@ -4590,45 +4590,45 @@ var Zn = class {
4590
4590
  skipValidations: !0,
4591
4591
  recoveryEnabled: !1
4592
4592
  }), this._lexer = t;
4593
- const { TableSpecifier: i, BracketedColumn: r, BareSpecifier: o, ColumnSep: a, ListSep: c } = n, h = this;
4594
- h.RULE("ruleContent", () => {
4595
- const e = [], t = h.SUBRULE(h.ruleItem);
4596
- return h.ACTION(() => {
4593
+ const { TableSpecifier: r, BracketedColumn: s, BareSpecifier: a, ColumnSep: c, ListSep: h } = n, l = this;
4594
+ l.RULE("ruleContent", () => {
4595
+ const e = [], t = l.SUBRULE(l.ruleItem);
4596
+ return l.ACTION(() => {
4597
4597
  t && e.push(t);
4598
- }), h.MANY(() => {
4599
- h.CONSUME(c), h.OPTION(() => {
4600
- const t = h.SUBRULE2(h.ruleItem);
4601
- h.ACTION(() => {
4598
+ }), l.MANY(() => {
4599
+ l.CONSUME(h), l.OPTION(() => {
4600
+ const t = l.SUBRULE2(l.ruleItem);
4601
+ l.ACTION(() => {
4602
4602
  t && e.push(t);
4603
4603
  });
4604
4604
  });
4605
4605
  }), e;
4606
- }), h.RULE("ruleItem", () => h.OR([{ ALT: () => h.SUBRULE(h.ruleSpecifier) }, { ALT: () => h.SUBRULE(h.ruleColumnOrRange) }])), h.RULE("ruleSpecifier", () => h.OR([{ ALT: () => {
4607
- const t = h.CONSUME(i);
4608
- return h.ACTION(() => {
4609
- const n = s(t.image, e);
4606
+ }), l.RULE("ruleItem", () => l.OR([{ ALT: () => l.SUBRULE(l.ruleSpecifier) }, { ALT: () => l.SUBRULE(l.ruleColumnOrRange) }])), l.RULE("ruleSpecifier", () => l.OR([{ ALT: () => {
4607
+ const t = l.CONSUME(r);
4608
+ return l.ACTION(() => {
4609
+ const n = o(t.image, e);
4610
4610
  return n.image = t.image, n;
4611
4611
  });
4612
4612
  } }, { ALT: () => {
4613
- const t = h.CONSUME(o);
4614
- return h.ACTION(() => {
4615
- const n = s(t.image, e);
4613
+ const t = l.CONSUME(a);
4614
+ return l.ACTION(() => {
4615
+ const n = o(t.image, e);
4616
4616
  return n.image = t.image, n;
4617
4617
  });
4618
- } }])), h.RULE("ruleColumnOrRange", () => {
4619
- const e = h.CONSUME(r);
4618
+ } }])), l.RULE("ruleColumnOrRange", () => {
4619
+ const e = l.CONSUME(s);
4620
4620
  let t, n;
4621
- return h.OPTION(() => {
4622
- t = h.CONSUME(a), n = h.CONSUME2(r);
4623
- }), h.ACTION(() => {
4624
- const i = p(e.image);
4621
+ return l.OPTION(() => {
4622
+ t = l.CONSUME(c), n = l.CONSUME2(s);
4623
+ }), l.ACTION(() => {
4624
+ const i = C(e.image);
4625
4625
  if (i.image = e.image, !n) return i;
4626
- const r = p(n.image);
4626
+ const r = C(n.image);
4627
4627
  r.image = n.image;
4628
- const s = S(":", i, r, !0);
4628
+ const s = R(":", i, r, !0);
4629
4629
  return s.image = t?.image ?? ":", s;
4630
4630
  });
4631
- }), h.performSelfAnalysis();
4631
+ }), l.performSelfAnalysis();
4632
4632
  }
4633
4633
  _parseInner(e) {
4634
4634
  const t = this._lexer.tokenize(e);
@@ -4642,23 +4642,23 @@ var Zn = class {
4642
4642
  if ("@" === n) {
4643
4643
  const e = t.slice(1).trim();
4644
4644
  if (!e) {
4645
- const e = a("@", null, !0);
4645
+ const e = f("@", null, !0);
4646
4646
  return e.image = "@", [e];
4647
4647
  }
4648
4648
  if ("[" === e.charAt(0)) {
4649
4649
  const t = this._parseInner(e);
4650
4650
  if (1 === t.length && "infix" === t[0].type) {
4651
- const e = a("@", t[0], !0);
4651
+ const e = f("@", t[0], !0);
4652
4652
  return e.image = "@", [e];
4653
4653
  }
4654
4654
  }
4655
- const n = p(e);
4655
+ const n = C(e);
4656
4656
  n.image = e;
4657
- const i = a("@", n, !0);
4657
+ const i = f("@", n, !0);
4658
4658
  return i.image = "@", [i];
4659
4659
  }
4660
4660
  if ("[" !== n && "#" !== n) {
4661
- const t = p(e);
4661
+ const t = C(e);
4662
4662
  return t.image = e, [t];
4663
4663
  }
4664
4664
  return this._parseInner(t);
@@ -4666,7 +4666,7 @@ var Zn = class {
4666
4666
  parse(e, t, n) {
4667
4667
  this.reset();
4668
4668
  const i = () => ({
4669
- root: O("", []),
4669
+ root: m("", []),
4670
4670
  errors: []
4671
4671
  });
4672
4672
  if (!n) return i();
@@ -4679,7 +4679,7 @@ var Zn = class {
4679
4679
  if (-1 === s) return i();
4680
4680
  const o = n.slice(0, s), a = n.slice(s + 1, -1), c = this._parseContent(a);
4681
4681
  return {
4682
- root: O(o, c),
4682
+ root: m(o, c),
4683
4683
  errors: this.errors.length > 0 ? [...this.errors] : []
4684
4684
  };
4685
4685
  }
@@ -4694,7 +4694,7 @@ var Zn = class {
4694
4694
  ":."
4695
4695
  ]), ni = (e) => {
4696
4696
  if (!e) return null;
4697
- if (e.type === _.Cell) {
4697
+ if (e.type === O.Cell) {
4698
4698
  const t = e.value;
4699
4699
  return t.rowIndex === Number.MIN_SAFE_INTEGER ? "col" : t.colIndex === Number.MIN_SAFE_INTEGER ? "row" : null;
4700
4700
  }
@@ -4725,8 +4725,8 @@ var ai = {
4725
4725
  }
4726
4726
  }, ci = class extends jn {
4727
4727
  constructor(e) {
4728
- const i = e?.lexer ?? Gn.shared(e?.lexerOptions), s = i.getVocabulary();
4729
- super(s, {
4728
+ const t = e?.lexer ?? Gn.shared(e?.lexerOptions), i = t.getVocabulary();
4729
+ super(i, {
4730
4730
  skipValidations: !0,
4731
4731
  recoveryEnabled: !0,
4732
4732
  ...e,
@@ -4752,7 +4752,7 @@ var ai = {
4752
4752
  ])), f = {
4753
4753
  value: p,
4754
4754
  index: this.getLexerPosition(),
4755
- isRange: v.includes(p)
4755
+ isRange: A.includes(p)
4756
4756
  }, m = this.SUBRULE2(this._rulePostfixOp);
4757
4757
  d.push({
4758
4758
  op: f,
@@ -4760,15 +4760,15 @@ var ai = {
4760
4760
  });
4761
4761
  }), this.ACTION(() => {
4762
4762
  let e = d.length - 1;
4763
- const t = E.length;
4763
+ const t = p.length;
4764
4764
  for (let n = 0; e > 0 && n < t; n++) {
4765
- const t = E[n];
4765
+ const t = p[n];
4766
4766
  let i = 1;
4767
4767
  for (; i < d.length;) {
4768
4768
  const n = d[i].op;
4769
4769
  if (t.includes(n.value)) {
4770
4770
  const t = d[i - 1].node, r = d[i].node;
4771
- let s = S(n.value, t, r, n.isRange);
4771
+ let s = R(n.value, t, r, n.isRange);
4772
4772
  s = this._tag(s, n.index), d[i - 1].node = s, d.splice(i, 1), e--;
4773
4773
  } else i++;
4774
4774
  }
@@ -4789,8 +4789,8 @@ var ai = {
4789
4789
  }), this.ACTION(() => {
4790
4790
  const e = n.length;
4791
4791
  if (0 !== e) for (let i = 0; i < e; i++) {
4792
- const e = n[i], r = e[0], s = e[1], o = v.includes(r);
4793
- t = I(r, t, o), t = this._tag(t, s);
4792
+ const e = n[i], s = e[0], o = e[1], a = A.includes(s);
4793
+ t = r(s, t, a), t = this._tag(t, o);
4794
4794
  }
4795
4795
  }), t;
4796
4796
  }), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
@@ -4809,16 +4809,16 @@ var ai = {
4809
4809
  return this.ACTION(() => {
4810
4810
  const e = i.length;
4811
4811
  if (0 !== e) for (let t = e - 1; t >= 0; t--) {
4812
- const e = i[t], n = e[0], s = e[1], o = v.includes(n);
4813
- r = a(n, r, o), r = this._tag(r, s);
4812
+ const e = i[t], n = e[0], s = e[1], o = A.includes(n);
4813
+ r = f(n, r, o), r = this._tag(r, s);
4814
4814
  }
4815
4815
  }), r;
4816
4816
  }), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
4817
- const { RangeOp: e, RangeTrimFullOp: t, RangeTrimLeadingOp: n, RangeTrimTrailingOp: i, ArrayAnchorOp: r } = this._vocab, s = [];
4818
- return s.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
4819
- this.CONSUME(r), s.push({ anchor: this.getLexerPosition() });
4817
+ const { RangeOp: e, RangeTrimFullOp: t, RangeTrimLeadingOp: n, RangeTrimTrailingOp: i, ArrayAnchorOp: s } = this._vocab, o = [];
4818
+ return o.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
4819
+ this.CONSUME(s), o.push({ anchor: this.getLexerPosition() });
4820
4820
  }), this.MANY(() => {
4821
- const o = {
4821
+ const r = {
4822
4822
  value: this.OR(this._c2 || (this._c2 = [
4823
4823
  { ALT: () => this.CONSUME(e).image },
4824
4824
  { ALT: () => this.CONSUME(t).image },
@@ -4827,30 +4827,30 @@ var ai = {
4827
4827
  ])),
4828
4828
  index: this.getLexerPosition()
4829
4829
  }, a = this.SUBRULE2(this._ruleCallOp);
4830
- s.push({
4831
- op: o,
4830
+ o.push({
4831
+ op: r,
4832
4832
  node: a
4833
4833
  }), this.MANY3(() => {
4834
- this.CONSUME2(r), s.push({ anchor: this.getLexerPosition() });
4834
+ this.CONSUME2(s), o.push({ anchor: this.getLexerPosition() });
4835
4835
  });
4836
4836
  }), this.ACTION(() => {
4837
- for (let e = 1; e + 1 < s.length; e++) {
4838
- const t = s[e], n = s[e + 1];
4837
+ for (let e = 1; e + 1 < o.length; e++) {
4838
+ const t = o[e], n = o[e + 1];
4839
4839
  if (":" !== t.op?.value || ":" !== n.op?.value) continue;
4840
4840
  const i = ni(t.node);
4841
- i && ni(n.node) === i && ni(s[e - 1].node) !== i && (t.node = this._tag(S(":", t.node, n.node, !0), n.op.index), s.splice(e + 1, 1));
4841
+ i && ni(n.node) === i && ni(o[e - 1].node) !== i && (t.node = this._tag(R(":", t.node, n.node, !0), n.op.index), o.splice(e + 1, 1));
4842
4842
  }
4843
- for (let e = 1; e < s.length; e++) {
4844
- const t = s[e];
4843
+ for (let e = 1; e < o.length; e++) {
4844
+ const t = o[e];
4845
4845
  if (void 0 !== t.anchor) {
4846
- s[0].node = this._tag(I("#", s[0].node, !0), t.anchor);
4846
+ o[0].node = this._tag(r("#", o[0].node, !0), t.anchor);
4847
4847
  continue;
4848
4848
  }
4849
4849
  const n = t.op;
4850
- let i = S(n.value, s[0].node, t.node, !0);
4851
- i = this._tag(i, n.index), s[0].node = i;
4850
+ let i = R(n.value, o[0].node, t.node, !0);
4851
+ i = this._tag(i, n.index), o[0].node = i;
4852
4852
  }
4853
- }), s[0].node;
4853
+ }), o[0].node;
4854
4854
  }), this._ruleCallOp = this.RULE("ruleCallOp", () => {
4855
4855
  const { OpenParen: e, CloseParen: t } = this._vocab;
4856
4856
  let n = this.SUBRULE(this._ruleFormula);
@@ -4861,7 +4861,7 @@ var ai = {
4861
4861
  },
4862
4862
  DEF: () => {
4863
4863
  this.CONSUME(e);
4864
- const i = this.getLexerPosition(), r = this.SUBRULE(this._ruleFunctionArguments), s = n, o = this.ACTION(() => this._tag(c(s, r), i)), a = this.OPTION(() => this.CONSUME(t));
4864
+ const i = this.getLexerPosition(), r = this.SUBRULE(this._ruleFunctionArguments), s = n, o = this.ACTION(() => this._tag(d(s, r), i)), a = this.OPTION(() => this.CONSUME(t));
4865
4865
  this.ACTION(() => {
4866
4866
  a || this._reportError(o, "Missing closing parenthesis ')'", i), this._tagClose(o, this.getLexerPosition()), n = o;
4867
4867
  });
@@ -4883,7 +4883,7 @@ var ai = {
4883
4883
  for (; e.length > 1;) {
4884
4884
  let t = e.length - 1;
4885
4885
  for (let n = 0; n < t; n++) {
4886
- const i = e[n], r = e[n + 1], s = S(" ", i, r, !0), o = this._tokenMap.get(i);
4886
+ const i = e[n], r = e[n + 1], s = R(" ", i, r, !0), o = this._tokenMap.get(i);
4887
4887
  o && delete o.tokenIndexClose;
4888
4888
  const a = this._tokenMap.get(r), c = a?.tokenIndex;
4889
4889
  if (void 0 !== c) {
@@ -4913,13 +4913,13 @@ var ai = {
4913
4913
  }), t;
4914
4914
  }), this._ruleParen = this.RULE("ruleParen", () => {
4915
4915
  const { OpenParen: e, CloseParen: t } = this._vocab;
4916
- return this._processParen(_.Paren, e, t);
4916
+ return this._processParen(O.Paren, e, t);
4917
4917
  }), this._ruleLiteralArray = this.RULE("ruleLiteralArray", () => {
4918
4918
  const { OpenCurlyParen: e, CloseCurlyParen: t, ColSeparator: n, RowSeparator: i } = this._vocab;
4919
- let r = k();
4919
+ let r = v();
4920
4920
  this.CONSUME(e);
4921
4921
  const s = this.getLexerPosition();
4922
- let o = this.ACTION(() => this._tag(u(r), s));
4922
+ let o = this.ACTION(() => this._tag(l(r), s));
4923
4923
  const a = this.SUBRULE(this._ruleLiteralForArray);
4924
4924
  this.ACTION(() => {
4925
4925
  r.value.push(a);
@@ -4930,7 +4930,7 @@ var ai = {
4930
4930
  } }, { ALT: () => this.CONSUME(i) }]);
4931
4931
  const t = this.SUBRULE2(this._ruleLiteralForArray);
4932
4932
  this.ACTION(() => {
4933
- e || (r = k(), o.value.push(r)), r.value.push(t);
4933
+ e || (r = v(), o.value.push(r)), r.value.push(t);
4934
4934
  });
4935
4935
  });
4936
4936
  const c = this.OPTION(() => this.CONSUME(t));
@@ -4939,24 +4939,24 @@ var ai = {
4939
4939
  const { StringToken: e, BooleanToken: t, LiteralError: i, RefError: r } = this._vocab;
4940
4940
  return this.OR([
4941
4941
  { ALT: () => {
4942
- const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(C(t.image, this._locale), this.getLexerPosition()));
4943
- return this.ACTION(() => e ? h(e.image, n) : n);
4942
+ const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(h(t.image, this._locale), this.getLexerPosition()));
4943
+ return this.ACTION(() => e ? E(e.image, n) : n);
4944
4944
  } },
4945
4945
  { ALT: () => {
4946
4946
  const t = this.CONSUME(e);
4947
- return this.ACTION(() => this._tag(m(t.image), this.getLexerPosition()));
4947
+ return this.ACTION(() => this._tag(_(t.image), this.getLexerPosition()));
4948
4948
  } },
4949
4949
  { ALT: () => {
4950
4950
  const e = this.CONSUME(t);
4951
- return this.ACTION(() => this._tag(o(e.image, this._locale), this.getLexerPosition()));
4951
+ return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
4952
4952
  } },
4953
4953
  { ALT: () => {
4954
4954
  const e = this.CONSUME(i);
4955
- return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
4955
+ return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4956
4956
  } },
4957
4957
  { ALT: () => {
4958
4958
  const e = this.CONSUME(r);
4959
- return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
4959
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
4960
4960
  } }
4961
4961
  ]);
4962
4962
  }), this._ruleLiteral = this.RULE("ruleLiteral", () => {
@@ -4964,30 +4964,30 @@ var ai = {
4964
4964
  return this.OR([
4965
4965
  { ALT: () => {
4966
4966
  const e = this.SUBRULE(this._ruleNumber);
4967
- return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
4967
+ return this.ACTION(() => this._tag(h(e.image, this._locale), this.getLexerPosition()));
4968
4968
  } },
4969
4969
  { ALT: () => {
4970
4970
  const t = this.CONSUME(e);
4971
- return this.ACTION(() => this._tag(m(t.image), this.getLexerPosition()));
4971
+ return this.ACTION(() => this._tag(_(t.image), this.getLexerPosition()));
4972
4972
  } },
4973
4973
  { ALT: () => {
4974
4974
  const e = this.CONSUME(t);
4975
- return this.ACTION(() => this._tag(o(e.image, this._locale), this.getLexerPosition()));
4975
+ return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
4976
4976
  } },
4977
4977
  { ALT: () => {
4978
4978
  const e = this.CONSUME(i);
4979
- return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
4979
+ return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4980
4980
  } },
4981
4981
  { ALT: () => {
4982
4982
  const e = this.CONSUME(r);
4983
- return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
4983
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
4984
4984
  } }
4985
4985
  ]);
4986
4986
  }), this._ruleFunction = this.RULE("ruleFunction", () => {
4987
4987
  const { FunctionToken: e, OpenParen: t, CloseParen: n } = this._vocab, i = this.CONSUME(e).image, r = this.getLexerPosition();
4988
4988
  this.CONSUME(t);
4989
4989
  const s = this.SUBRULE(this._ruleFunctionArguments);
4990
- let o = this.ACTION(() => this._tag(l(i, s), r));
4990
+ let o = this.ACTION(() => this._tag(N(i, s), r));
4991
4991
  const a = this.OPTION(() => this.CONSUME(n));
4992
4992
  return o = this.ACTION(() => (a || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()))), o;
4993
4993
  }), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
@@ -4998,11 +4998,11 @@ var ai = {
4998
4998
  let t;
4999
4999
  this.OPTION2(() => {
5000
5000
  t = this.SUBRULE(this._ruleIntersectOp);
5001
- }), t = this.ACTION(() => t ?? this._tagClose(f(), this.getLexerPosition())), n.push(t), this.MANY(() => {
5001
+ }), t = this.ACTION(() => t ?? this._tagClose(k(), this.getLexerPosition())), n.push(t), this.MANY(() => {
5002
5002
  let t;
5003
5003
  this.CONSUME(e), this.OPTION3(() => {
5004
5004
  t = this.SUBRULE2(this._ruleIntersectOp);
5005
- }), t = this.ACTION(() => t ?? this._tagClose(f(), this.getLexerPosition())), n.push(t);
5005
+ }), t = this.ACTION(() => t ?? this._tagClose(k(), this.getLexerPosition())), n.push(t);
5006
5006
  });
5007
5007
  }
5008
5008
  }), n;
@@ -5021,60 +5021,60 @@ var ai = {
5021
5021
  return this._tag(e.root, n);
5022
5022
  });
5023
5023
  }), this._ruleReference = this.RULE("ruleReference", () => {
5024
- const { Sheet: e, SheetQuoted: n, DivOp: i, MulOp: s, PlusOp: o, MinOp: a, ArgSeparator: c, Cell: h, NamedToken: l, SingleQuotedString: u, Column: p, AbsRow: f, DigitToken: m, RefError: E } = this._vocab;
5025
- let g, O;
5024
+ const { Sheet: e, SheetQuoted: t, DivOp: n, MulOp: i, PlusOp: r, MinOp: o, ArgSeparator: c, Cell: h, NamedToken: l, SingleQuotedString: d, Column: p, AbsRow: f, DigitToken: m, RefError: E } = this._vocab;
5025
+ let T, A;
5026
5026
  this.OPTION2({
5027
5027
  GATE: () => {
5028
- for (let t = 1; t < 6; t++) {
5029
- const r = this.LA(t);
5030
- if (r.tokenType === e || r.tokenType === n) return !0;
5031
- if ("" === r.image || ")" === r.image || r.tokenType === i || r.tokenType === s || r.tokenType === o || r.tokenType === a || r.tokenType === c) break;
5028
+ for (let s = 1; s < 6; s++) {
5029
+ const a = this.LA(s);
5030
+ if (a.tokenType === e || a.tokenType === t) return !0;
5031
+ if ("" === a.image || ")" === a.image || a.tokenType === n || a.tokenType === i || a.tokenType === r || a.tokenType === o || a.tokenType === c) break;
5032
5032
  }
5033
5033
  return !1;
5034
5034
  },
5035
5035
  DEF: () => {
5036
- O = this.getLexerPosition() + 1, g = this.SUBRULE(this._rulePrefixSheetName);
5036
+ A = this.getLexerPosition() + 1, T = this.SUBRULE(this._rulePrefixSheetName);
5037
5037
  }
5038
5038
  });
5039
- let A = this.OR([
5039
+ let R = this.OR([
5040
5040
  { ALT: () => {
5041
5041
  const e = this.CONSUME(h), t = this.getLexerPosition();
5042
- return this.ACTION(() => this._tag(T(e.image, this.rowIndex, this.colIndex), t));
5042
+ return this.ACTION(() => this._tag(a(e.image, this.rowIndex, this.colIndex), t));
5043
5043
  } },
5044
5044
  { ALT: () => {
5045
- const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(u) }]);
5046
- return this.ACTION(() => this._tag(d(e.image), this.getLexerPosition()));
5045
+ const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(d) }]);
5046
+ return this.ACTION(() => this._tag(g(e.image), this.getLexerPosition()));
5047
5047
  } },
5048
5048
  { ALT: () => this.SUBRULE(this._ruleBracketedString) },
5049
5049
  { ALT: () => this.SUBRULE(this._ruleFunction) },
5050
5050
  { ALT: () => {
5051
5051
  const e = this.CONSUME(p);
5052
- return this.ACTION(() => this._tag(t(e.image, this.colIndex), this.getLexerPosition()));
5052
+ return this.ACTION(() => this._tag(s(e.image, this.colIndex), this.getLexerPosition()));
5053
5053
  } },
5054
5054
  { ALT: () => {
5055
5055
  const e = this.CONSUME(f);
5056
- return this.ACTION(() => this._tag(r(e.image, this.rowIndex), this.getLexerPosition()));
5056
+ return this.ACTION(() => this._tag(u(e.image, this.rowIndex), this.getLexerPosition()));
5057
5057
  } },
5058
5058
  { ALT: () => {
5059
5059
  const e = this.CONSUME(m);
5060
- return this.ACTION(() => this._tag(r(e.image, this.rowIndex), this.getLexerPosition()));
5060
+ return this.ACTION(() => this._tag(u(e.image, this.rowIndex), this.getLexerPosition()));
5061
5061
  } },
5062
5062
  { ALT: () => {
5063
5063
  const e = this.CONSUME(E);
5064
- return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
5064
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
5065
5065
  } }
5066
5066
  ]);
5067
5067
  return this.ACTION(() => {
5068
- if (g && A) {
5069
- if ("" === g.name) return void this._reportError(A, `'${g.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
- let e = A;
5071
- if (A.type === _.Postfix && A.inputs?.[0] && (e = A.inputs[0]), e.type === _.Cell || e.type === _.Named || e.type === _.Row || e.type === _.TableColumn || e.type === _.Error) {
5072
- e.value.scope = g.name, e.value.scopeImage = g.image;
5068
+ if (T && R) {
5069
+ if ("" === T.name) return void this._reportError(R, `'${T.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
+ let e = R;
5071
+ if (R.type === O.Postfix && R.inputs?.[0] && (e = R.inputs[0]), e.type === O.Cell || e.type === O.Named || e.type === O.Row || e.type === O.TableColumn || e.type === O.Error) {
5072
+ e.value.scope = T.name, e.value.scopeImage = T.image;
5073
5073
  const t = this._tokenMap.get(e);
5074
- t && void 0 !== O && (t.tokenIndex = O);
5074
+ t && void 0 !== A && (t.tokenIndex = A);
5075
5075
  }
5076
5076
  }
5077
- }), A;
5077
+ }), R;
5078
5078
  }), this._rulePrefixSheetName = this.RULE("rulePrefixSheetName", () => {
5079
5079
  const { SheetQuoted: e, BracketedString: t, NamedToken: n, Column: i, RangeOp: r, Sheet: s } = this._vocab;
5080
5080
  return this.OR([{ ALT: () => {
@@ -5114,43 +5114,43 @@ var ai = {
5114
5114
  return this.MANY(() => {
5115
5115
  this.CONSUME(e), n.push(this.SUBRULE2(this._ruleIntersectOp));
5116
5116
  }), this.ACTION(() => 0 === n.length ? t : {
5117
- type: _.List,
5117
+ type: O.List,
5118
5118
  value: ",",
5119
5119
  inputs: [t, ...n],
5120
5120
  isReference: !0
5121
5121
  });
5122
- }), this._lexer = i, this._locale = i.getLocale(), this._vocab = s, this._srParser = e?.srParser ?? new Jn(this._locale), this.performSelfAnalysis();
5122
+ }), this._lexer = t, this._locale = t.getLocale(), this._vocab = i, this._srParser = e?.srParser ?? new Jn(this._locale), this.performSelfAnalysis();
5123
5123
  }
5124
5124
  getLexer() {
5125
5125
  return this._lexer;
5126
5126
  }
5127
- parse(t, n, i) {
5128
- const s = this._lexer.tokenize(i);
5127
+ parse(n, i, r) {
5128
+ const s = this._lexer.tokenize(r);
5129
5129
  let o;
5130
5130
  if (!s) return {
5131
5131
  root: {
5132
- type: _.Unparsed,
5133
- value: i
5132
+ type: O.Unparsed,
5133
+ value: r
5134
5134
  },
5135
5135
  errors: []
5136
5136
  };
5137
5137
  const a = s.tokens;
5138
5138
  if (0 === a.length) throw new e.Parse(ri);
5139
- return this.input = a, this._inputText = i, this._inputTextLength = i.length, this.rowIndex = t, this.colIndex = n, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), o = this._ruleRoot(), o && this._bindAllWhitespace(o), o = y(o, (e, n) => {
5140
- const i = e.type, s = n?.isReference ? n.value : void 0, o = "string" == typeof s && ei.has(s), a = "string" == typeof s && ti.has(s), c = o ? n.inputs : void 0, h = c ? c[0] === e ? c[1] : c[0] : void 0, l = this._lexer.getMaxRow();
5141
- if (o && i !== _.Cell && Number.isInteger(e.value)) {
5142
- const n = r(e.image, t);
5143
- return R(n, e), "row" !== ni(h) ? this._reportError(n, `'${e.image}' is not a valid reference — a whole row can only pair with another row (as in ${e.image}:${e.image})`) : ii(e.image, l) || this._reportError(n, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), n;
5139
+ return this.input = a, this._inputText = r, this._inputTextLength = r.length, this.rowIndex = n, this.colIndex = i, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), o = this._ruleRoot(), o && this._bindAllWhitespace(o), o = S(o, (e, i) => {
5140
+ const r = e.type, s = i?.isReference ? i.value : void 0, o = "string" == typeof s && ei.has(s), a = "string" == typeof s && ti.has(s), c = o ? i.inputs : void 0, h = c ? c[0] === e ? c[1] : c[0] : void 0, l = this._lexer.getMaxRow();
5141
+ if (o && r !== O.Cell && Number.isInteger(e.value)) {
5142
+ const i = u(e.image, n);
5143
+ return t(i, e), "row" !== ni(h) ? this._reportError(i, `'${e.image}' is not a valid reference — a whole row can only pair with another row (as in ${e.image}:${e.image})`) : ii(e.image, l) || this._reportError(i, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), i;
5144
5144
  }
5145
- if (a && i === _.Named) return this._reportError(e, `'${e.image ?? e.value?.nameId}' is a name — '${s}' needs a cell or range on both sides`), e;
5146
- if (i === _.Cell) {
5147
- const t = e.value, n = t.colIndex === Number.MIN_SAFE_INTEGER, i = t.rowIndex === Number.MIN_SAFE_INTEGER;
5148
- if ((n || i) && ni(h) === (n ? "row" : "col")) return n && !ii(e.image, l) && this._reportError(e, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), e;
5149
- if (n || i || t.colIndex >= 16384) {
5150
- const r = d(e.image);
5151
- R(r, e);
5152
- const o = t.scope;
5153
- return o && (r.value.scope = o, r.value.scopeImage = t.scopeImage), n ? this._reportError(r, `'${e.image}' is not a valid reference — a row needs a column (use ${e.image}:${e.image} for the whole row)`) : i && e.image.includes("$") ? this._reportError(r, `'${e.image}' is not a valid reference — a whole column can only pair with another column (as in ${e.image}:${e.image})`) : a && this._reportError(r, `'${e.image}' is a name — '${s}' needs a cell or range on both sides`), r;
5145
+ if (a && r === O.Named) return this._reportError(e, `'${e.image ?? e.value?.nameId}' is a name — '${s}' needs a cell or range on both sides`), e;
5146
+ if (r === O.Cell) {
5147
+ const n = e.value, i = n.colIndex === Number.MIN_SAFE_INTEGER, r = n.rowIndex === Number.MIN_SAFE_INTEGER;
5148
+ if ((i || r) && ni(h) === (i ? "row" : "col")) return i && !ii(e.image, l) && this._reportError(e, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), e;
5149
+ if (i || r || n.colIndex >= 16384) {
5150
+ const o = g(e.image);
5151
+ t(o, e);
5152
+ const c = n.scope;
5153
+ return c && (o.value.scope = c, o.value.scopeImage = n.scopeImage), i ? this._reportError(o, `'${e.image}' is not a valid reference — a row needs a column (use ${e.image}:${e.image} for the whole row)`) : r && e.image.includes("$") ? this._reportError(o, `'${e.image}' is not a valid reference — a whole column can only pair with another column (as in ${e.image}:${e.image})`) : a && this._reportError(o, `'${e.image}' is a name — '${s}' needs a cell or range on both sides`), o;
5154
5154
  }
5155
5155
  }
5156
5156
  return e;
@@ -5211,7 +5211,7 @@ var ai = {
5211
5211
  _bindAllWhitespace(e) {
5212
5212
  if (e) {
5213
5213
  if (this._bindNodeWhitespace(e), e.inputs) for (const t of e.inputs) t && this._bindAllWhitespace(t);
5214
- if (e.type === _.Array && Array.isArray(e.value)) {
5214
+ if (e.type === O.Array && Array.isArray(e.value)) {
5215
5215
  for (const t of e.value) if (t && Array.isArray(t.value)) for (const e of t.value) e && this._bindAllWhitespace(e);
5216
5216
  }
5217
5217
  }