@sheetxl/mcp 0.8.0-beta.20 → 0.8.0-beta.21

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 (193) hide show
  1. package/assets/{BieAybaOdneMdvBS.js → -NFft0E2Wj6WH3X9.js} +1 -1
  2. package/assets/{Bp9zuG6P6r9GEb6G.js → 0ewqK5X66DZmbhVR.js} +1 -1
  3. package/assets/{Dc2LiflUYpt0nVVk.js → 1bSTbCnkTWvsV82p.js} +4 -4
  4. package/assets/{DMDx0fX8tHKH0DdL.js → 4-DOIpV6Hjaymwy7.js} +2 -2
  5. package/assets/{BKc7zTK6ZIhcD_Wu.js → 69EXDk0YRdjdM86i.js} +1 -1
  6. package/assets/{DNwyEanz3LqtOorY.js → 8wMcuw3b1CFk-D5A.js} +1 -1
  7. package/assets/{IDq3QQa5uRqjVJx_.js → AGdlSbOsXWO1oZAE.js} +1 -1
  8. package/assets/{C9eaFlFi_4GmymzP.js → B1l0k4ErELObdQKE.js} +40 -40
  9. package/assets/{CrULZhDt8uE-MR2s.js → B4Z_YneQya9mUTN5.js} +1 -1
  10. package/assets/{eV0oowKJe44NBnWj.js → B8NDzDM0Gpwmkylq.js} +1 -1
  11. package/assets/{CoOIn2wx6je_rMDO.js → B8URptQcztz4DRvS.js} +23 -23
  12. package/assets/{D--emvI048MvLsXl.js → BABP2ffkRrOs7_Ym.js} +1 -1
  13. package/assets/{C7oUg84aGjYrJUc6.js → BAqvmoeYqG6dwX3I.js} +2 -2
  14. package/assets/{CgIHqG1qp9n1Gwm7.js → BC2Y5XPkMBKS6jQX.js} +274 -270
  15. package/assets/{rtUwIBgECTX9UO_B.js → BEOwJnsyIuMC4SaI.js} +4 -4
  16. package/assets/{Bg8EN9R3hbeNfFyU.js → BJo3edG_rqch-Kw2.js} +52 -52
  17. package/assets/{DnDTldUjKy0O586y.js → BM9zwvBRXNbO_uD-.js} +2 -2
  18. package/assets/{YG5hEr6CzWNmNJQ2.js → BMkhJwKP7goV0vlJ.js} +1 -1
  19. package/assets/{BYYbglFmasE5PrS2.js → BRiLNigzVwOBIxBy.js} +1 -1
  20. package/assets/{DV_nCOON8Fgq5RBt.js → BU7t2vK3_DH_BbMd.js} +2 -2
  21. package/assets/{C9wXzrhl0dwqZgJ6.js → BVDaUnmVOSaDw9e3.js} +1 -1
  22. package/assets/{DndzARNYtmumqGnG.js → BWqKV3QuZX31WPsa.js} +1 -1
  23. package/assets/{C0MAjW1vgsw6o0fx.js → BZJvWc-5DdAyHXFk.js} +1 -1
  24. package/assets/{PMBjuoD2MpG87dao.js → B_RppF41PrYlelc_.js} +1 -1
  25. package/assets/{mYZ9Z5AKCn7zltHw.js → B_n6s7Kj4_5BWn1q.js} +2 -2
  26. package/assets/{Dv9ZDmKuxn2tQDGb.js → Bagfe_VVU6NyQNS6.js} +1 -1
  27. package/assets/{DcwqgbgqPyzQxSsQ.js → BbsMdXiRzPW9BCEK.js} +1 -1
  28. package/assets/{C46dyA4YSP1-iTSN.js → BeMLPoHRWacCbpl2.js} +1 -1
  29. package/assets/{BHiZ3GtGCWUWwHqY.js → BneTvtEMcBoSiQnw.js} +3 -3
  30. package/assets/{klKXcdZmbQmsK2rt.js → BrgptoFtJepXL46Z.js} +1 -1
  31. package/assets/{CbTKUrroY9PQ6eTu.js → BtiRDaBbNpPpKelt.js} +3 -3
  32. package/assets/{Dsjx528shW3GcGpD.js → BtjG4s0StUieGI5b.js} +3 -3
  33. package/assets/{CW2Ca6tsd0aLTz88.js → C0pbMKm0FzhOek9r.js} +1 -1
  34. package/assets/{DALP-GkmzCJdFIV9.js → C1ZP9W2tiVQUwLqZ.js} +1 -1
  35. package/assets/{YGYD-116vlZfzPn1.js → C1xe-BzKWT17OO8a.js} +15 -15
  36. package/assets/{BJYl-kvBtcnMVP8W.js → C27330XswujHKrLu.js} +1 -1
  37. package/assets/{C3BZQ5NFwAU_ZdeQ.js → C2YOx4ianxuIIeMP.js} +1 -1
  38. package/assets/{B4ii9PGvnlYkSX2q.js → C8huq6_Gvbeyf6Zy.js} +2 -2
  39. package/assets/{C9aV1SF8uCWIB4zU.js → CB9TsE5n0FEyFnAz.js} +15 -15
  40. package/assets/{BBm3Xjnehvx2fYj8.js → CBTQ8dknYY7RVQgL.js} +8 -8
  41. package/assets/{nV0eE4R3npcOHLbx.js → CBqpH_MpBSmQRaGE.js} +1 -1
  42. package/assets/{swG-DVTsez1uNW8c.js → CC2hfzradb2KOvtU.js} +1 -1
  43. package/assets/{93ksqLKL1o40anfw.js → CDKZI2IIZ9boo7zG.js} +1 -1
  44. package/assets/{I7LAF1nLmYqQwt9i.js → CDYMLTHkkpRV9igv.js} +1 -1
  45. package/assets/{DwsoGIyPuoQij_vi.js → CL348305B-kpRYzz.js} +1 -1
  46. package/assets/{CaI562iJKKOoMw8p.js → CLT0k5UJYPmi8ked.js} +1 -1
  47. package/assets/{DsSlUklPSAsh9DhW.js → CME1jbwnNlBD66aW.js} +312 -312
  48. package/assets/{DjH6ckvISyssOSit.js → CPmMYI4DPQcXrZ-g.js} +1 -1
  49. package/assets/{Co_ZOyp4mKmSfh0A.js → CSd5XfU4JBASIwTI.js} +1 -1
  50. package/assets/{DzLrAy24em5k5en0.js → CTLGMulzw-oFbgHy.js} +3 -3
  51. package/assets/{Dx_IFz5FEPKw-HC1.js → CVlsdN5C8QL-Kljv.js} +1 -1
  52. package/assets/{CTGfmocA1WgM0_e0.js → CXb2mlCk1s1VFPHU.js} +536 -536
  53. package/assets/{LugZP3XHNnoiiTJO.js → CZ5v2vTWktJ7qAj1.js} +1 -1
  54. package/assets/{Cheq-qaVWm7EaIlQ.js → CcaH1FoDC8o3dzqp.js} +1 -1
  55. package/assets/{CyYbUk6pGr3NIBsy.js → Cg05U6rbXUnaz0rA.js} +30 -30
  56. package/assets/{BEq2PSZQN7VV19RQ.js → ChpUbgXIWuQFoXyL.js} +1 -1
  57. package/assets/{Ti7kMsQ-Eo3lkfIh.js → ChwSFUzi5mMzUwdW.js} +6 -6
  58. package/assets/{C9w-KoMwxvouC73F.js → CkGQV_x1SpyzePln.js} +221 -217
  59. package/assets/{BMH_wtFTiRj43c69.js → CmUz8bVbJgWVT-OB.js} +2 -2
  60. package/assets/{CpfpXfCqzZumY4pf.js → CpLUgqgBDtlfFRj3.js} +1 -1
  61. package/assets/{NiD8iNE47sjggYTx.js → CrLDmJU84Dbwl6DZ.js} +1 -1
  62. package/assets/{Dlbgs8csKymbxu7r.js → CudjOMo6X7FRW6ME.js} +1 -1
  63. package/assets/{DBfBV-tvRxCLgdvs.js → CzQ2o7qoMm0K7KSb.js} +4 -4
  64. package/assets/{wYvkLI8IeHaWTtAx.js → D-INtJnS1lCrEs8s.js} +68 -68
  65. package/assets/{DYRis8fOyk2uIZ-1.js → D1HLIgumuUqrSyYB.js} +4 -4
  66. package/assets/{Z1zwOeCe-JTLgkxf.js → D2XmpdMAe0SAuQWo.js} +53 -53
  67. package/assets/{BkhWR4P1Evw_VP5z.js → D3RuKyCyAzvT0bGL.js} +1 -1
  68. package/assets/{CrRJqUPbvvhnp4p4.js → D5mfuGSeGXSDHj9-.js} +1 -1
  69. package/assets/{uMoGfJGab8mZX6eN.js → D7WSYqvuwNQjOIuO.js} +1 -1
  70. package/assets/{B-7inN76S1zUWSAt.js → D9F0224gK4j4Iuq9.js} +1 -1
  71. package/assets/{CpLTCQemd_cJ4yFu.js → DBgOeiZg40MS63pB.js} +8 -8
  72. package/assets/{TdK2ciXA5BAlGjbR.js → DG3hKZ75iK2wrCcz.js} +1 -1
  73. package/assets/{BGlx7_eRiv47Hu9C.js → DITcEcZJ58z5yOx7.js} +1 -1
  74. package/assets/{noAnElnMhF05bfJN.js → DO86fHS3WYzHN_Rv.js} +1 -1
  75. package/assets/{Cm2WENwEZ0KMyF--.js → DO9RVxvm9vQh8A_j.js} +2 -2
  76. package/assets/{B5UmlawoCVwHHM_e.js → DOYXEbY_WslpyqXW.js} +5 -5
  77. package/assets/{DPUXpIzEs1t-jBiv.js → DP-m2vK0GTaYqQZM.js} +1 -1
  78. package/assets/{u-pSumbU-rgT6eLF.js → DRiAktGToP73uwgm.js} +224 -224
  79. package/assets/{q57cDvIPcIvWlh5T.js → DRqBWzdn9KKN68o8.js} +11 -11
  80. package/assets/{Drmg3-gF0VJs4Yx3.js → DX0znk3xZmL1AyX8.js} +1 -1
  81. package/assets/{BGQ1GrnQ-X16GU8k.js → Deu2acNFlgo__Mcd.js} +2 -2
  82. package/assets/{DSy6cpdU-KNWsbSj.js → DjCHmGw-ixoQ6ZTA.js} +2 -2
  83. package/assets/{CyOyY32LLW-Pj_L7.js → DjbBTiei0H-BIJaN.js} +1 -1
  84. package/assets/{B5yaBbFj2Np9Eh8b.js → DmJc5VoPPwBBtLIG.js} +1 -1
  85. package/assets/{Bndiqwoh132Upow1.js → DnQM29yv6KQQOVfl.js} +2 -2
  86. package/assets/{D4lMEKXi13vhDJbE.js → Dnn8laImZHy8LouL.js} +1 -1
  87. package/assets/{uoUKT9hTrwZ2INHN.js → DpgBOcByebrqzUrC.js} +3 -3
  88. package/assets/{MpvZt7VpFWEINIT6.js → DqxW6EBLDV_6Eegk.js} +1 -1
  89. package/assets/DrgkN0g7OHuD4iD6.js +14 -0
  90. package/assets/{_LMcVYWJksPfGVxz.js → DsK1Adz0vo-1zPkp.js} +1 -1
  91. package/assets/{CDvP9QyhDwdm3MZn.js → Dt5rA9gefJFLoaeI.js} +2 -2
  92. package/assets/{CUJiePMri5kkpdA7.js → DuCNecyIYfZL27SV.js} +1 -1
  93. package/assets/{hcXZqO-0tG873E-L.js → DwqgvpYiTLOQd5wm.js} +2 -2
  94. package/assets/{yDh_W6M1rvuDhFv1.js → Dzxe5kLF5GOfh0_l.js} +1 -1
  95. package/assets/{tCavNu-Tru6yRbec.js → FOKynZCiA0wU2Spf.js} +1 -1
  96. package/assets/{DsWJ-YRyuwDUuSge.js → H1ICg_-K5ADFNHJj.js} +1 -1
  97. package/assets/{eWHWPRWHX6YU8bJU.js → H89MX09YsAj7NAk3.js} +1 -1
  98. package/assets/{Xkr_4WLwk0ZPaYH2.js → I-GZ5PL9n_Sv5yAJ.js} +1 -1
  99. package/assets/{DvRH46hupHUjkc7a.js → IEmEQHg895CUpAQq.js} +1 -1
  100. package/assets/{B6J8XN1FRN00a_ps.js → I_yb1hhLA5bYPpWx.js} +1 -1
  101. package/assets/{DAVN6N3srI1WMHCN.js → KQGPPHM486XPeClF.js} +2 -2
  102. package/assets/{4Qlx8FuxoYbVTgNW.js → KSE7OWDMxhbfYt82.js} +21 -21
  103. package/assets/{ltqqdJxoPnLCjhBV.js → M62BqR7TbmgOzAEW.js} +3 -3
  104. package/assets/{ndBoGVVjmy3vkff8.js → NEzc406_2k2MuiE3.js} +2 -2
  105. package/assets/{CDmri0gcZxpVZfWn.js → Q2j8yQZX1kL_MbbB.js} +425 -425
  106. package/assets/{BVdH9-49M3APSiPy.js → QMCI00ZCedkNJd8C.js} +1 -1
  107. package/assets/{DIntlX_ha_wRdxYj.js → RFPO1vKnkkgwx5Bs.js} +1 -1
  108. package/assets/{BghxJxTwaebNVcIS.js → VcTnn2qw_4tmyctb.js} +1 -1
  109. package/assets/{DTXRsv2Ww7WbIwCb.js → Vo34QvIefEN595xl.js} +8645 -8636
  110. package/assets/{Cirpx81bWi4G2foA.js → _l84VPWmScznS-9F.js} +5 -5
  111. package/assets/{CLFe9HgUi_83dE3d.js → _oaPA65Bm2idKW7f.js} +1 -1
  112. package/assets/{DZ2Njh8YgfXcv7EM.js → bpjLDXWxL6nDt4Mv.js} +1 -1
  113. package/assets/{8FzS1bgbz4U1QE_m.js → fUmGsmpgGhd8eZn2.js} +1 -1
  114. package/assets/{C9JUgNS6CrdgIcW3.js → pg0OaBJVRnW7uSz5.js} +1 -1
  115. package/assets/{BItblzoSm0lN3bTV.js → rIQ1pzaGFqvCfzOk.js} +1 -1
  116. package/assets/{-qQT-DFFz0CqGx5C.js → raa4clZOm0L5A0zR.js} +503 -503
  117. package/assets/{CaOEaghQqXiA1ZzO.js → rejXA2fTAujW3QRv.js} +251 -251
  118. package/assets/{DMMw2v0iTuBnUjMI.js → rhT64BvdSLOEwglQ.js} +1 -1
  119. package/assets/{BmmIukrNOivfENgD.js → vItpZkDtFsjwsJzb.js} +35 -35
  120. package/assets/{4Za9gEGCvms62R7k.js → vXmCJwJaPhkPVhy8.js} +1 -1
  121. package/index.js +1766 -1703
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +32 -32
  124. package/package.json +2 -2
  125. package/screenshot-page/assets/{BLPyKyNun9-SHQBZ.js → 1s5we6Eqz8n3o0X_.js} +1 -1
  126. package/screenshot-page/assets/9WplgXo__vp3e1Su.js +2 -0
  127. package/screenshot-page/assets/B2oadmu_j6WfNbZ1.js +1 -0
  128. package/screenshot-page/assets/{BOjOE9CEMSzcij2W.js → B5ujsbfF1ZBkPI4d.js} +2 -2
  129. package/screenshot-page/assets/BEzCH6tp_dlxe7BH.js +1 -0
  130. package/screenshot-page/assets/BJvuevnsIw3DXQds.js +2 -0
  131. package/screenshot-page/assets/BLON9pILfrgdZqAM.js +5 -0
  132. package/screenshot-page/assets/BVx7CEdRItIR30Fz.js +1 -0
  133. package/screenshot-page/assets/{Dkr-6Z1RJsAp9Xrv.js → Bdt92xZzFotX0vdt.js} +1 -1
  134. package/screenshot-page/assets/{DKWRl8rs3K9jBYtr.js → Ble2ESZnJzZnd3cc.js} +1 -1
  135. package/screenshot-page/assets/{BUO6zT3gqK0uOOa-.js → Blg5f-jAtZfGnZ71.js} +1 -1
  136. package/screenshot-page/assets/{XiUItCqTNNEApgfa.js → Bozva6Wr4B8Q5QZN.js} +2 -2
  137. package/screenshot-page/assets/{C0AbuMHcIS9oy4XL.js → Brp37MPC60tt9V3N.js} +1 -1
  138. package/screenshot-page/assets/{Bh2PQ0zsoGtMKWp1.js → Bs65RHirk11sxOB9.js} +4 -4
  139. package/screenshot-page/assets/{H_hWDMWfWmjTui7V.js → BtydzT-AjL_LBr8x.js} +1 -1
  140. package/screenshot-page/assets/Bu5h0ACtvNxDBmqw.js +1 -0
  141. package/screenshot-page/assets/BwFvwFIcX0dmcBt7.js +1 -0
  142. package/screenshot-page/assets/C0rOvlmOfLDpClJ_.js +1 -0
  143. package/screenshot-page/assets/{C4v6Ljs6kwQJu06t.js → CBuH_YHDn7A9E_hX.js} +2 -2
  144. package/screenshot-page/assets/CHZ1925OpIa8ssZn.js +1 -0
  145. package/screenshot-page/assets/{BuzI4z8RJGOw8BZD.js → CN3dPtUjDVvcnA4e.js} +1 -1
  146. package/screenshot-page/assets/COO3CwHTbCgxybBd.js +1 -0
  147. package/screenshot-page/assets/CR8Rj_GpSbIqbaEO.js +13 -0
  148. package/screenshot-page/assets/CV9T0juyAiRmwTR-.js +4 -0
  149. package/screenshot-page/assets/ClC7zkHPp6egPrjL.js +2 -0
  150. package/screenshot-page/assets/{BZpFWPd0PR1kPT-A.js → CtS8qZB4_3skg_zL.js} +1 -1
  151. package/screenshot-page/assets/{BaCs7lUeZ7NidSkP.js → CwutTi2EnNm_hyVj.js} +1 -1
  152. package/screenshot-page/assets/{FjOiReLnknWbsRRr.js → CxithxkenssFkfTT.js} +19 -19
  153. package/screenshot-page/assets/{BWtLNVUXjY6EBdEt.js → CzZu7Fd_VeHHL-4i.js} +1 -1
  154. package/screenshot-page/assets/CzijGQrSoteeqwmH.js +2 -0
  155. package/screenshot-page/assets/{RutPv2GFWmeBiWvn.js → D4VgxwLDPUfCxPS9.js} +2 -2
  156. package/screenshot-page/assets/DG6q1MKITeSM4XMx.js +1 -0
  157. package/screenshot-page/assets/DHTXoT_pArB1opyI.js +48 -0
  158. package/screenshot-page/assets/{B9kA0vdaFJi9iRGo.js → DHUomRu_S2zcBWwt.js} +3 -3
  159. package/screenshot-page/assets/DP2wwd1IM_gQtEaG.js +1 -0
  160. package/screenshot-page/assets/{Bf9AN5sYHaxae0vV.js → DQeIWKasFD3DnWL7.js} +6 -6
  161. package/screenshot-page/assets/Ja-xcEStEdmh2Gwb.js +2 -0
  162. package/screenshot-page/assets/ODq-dKb9mTtqEIJl.js +1 -0
  163. package/screenshot-page/assets/VF7dro9jrDEAX6kD.js +3 -0
  164. package/screenshot-page/assets/{CXmrXx6MZ5ApF3co.js → Yz4ksf-M05RGdHO3.js} +1 -1
  165. package/screenshot-page/assets/{BMKiUDjoabO4aG1U.js → Z7Av7oqfaK7wy7Eb.js} +1 -1
  166. package/screenshot-page/assets/{TwKKik-YQENv52LX.js → bdWMVOcMKRI8kCDE.js} +1 -1
  167. package/screenshot-page/assets/{LCjlxIt1dn3smVjX.js → kJwY8fmEeWlAtTAc.js} +1 -1
  168. package/screenshot-page/assets/{BnPHZ_1rjv6kQgsL.js → p9abCAJQdpScjZVK.js} +1 -1
  169. package/screenshot-page/index.html +8 -8
  170. package/types/scripting-api.json +7060 -7060
  171. package/types/scripting.d.ts +8 -0
  172. package/assets/CCl8x9s8Bujsew7W.js +0 -14
  173. package/screenshot-page/assets/1yHlU53ypZZelMPx.js +0 -1
  174. package/screenshot-page/assets/BQ5BNe1adYfpa2OH.js +0 -1
  175. package/screenshot-page/assets/BkhZQsVlVHOiKGTJ.js +0 -1
  176. package/screenshot-page/assets/Bzf_upccQ2ho6mX0.js +0 -13
  177. package/screenshot-page/assets/C7YRL2bVWHPIwzn_.js +0 -1
  178. package/screenshot-page/assets/CImp91jfSuqX0Wz-.js +0 -1
  179. package/screenshot-page/assets/C_vPl50T1L5HWnhv.js +0 -1
  180. package/screenshot-page/assets/Cv-YUArreXqhafcU.js +0 -2
  181. package/screenshot-page/assets/D23_69pojBfIh4nV.js +0 -5
  182. package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +0 -1
  183. package/screenshot-page/assets/D8QsCbSaWCLAYYso.js +0 -1
  184. package/screenshot-page/assets/DC_Hdwa9KL7xKU8u.js +0 -2
  185. package/screenshot-page/assets/DHtL9Iawmr2Uo5VV.js +0 -2
  186. package/screenshot-page/assets/DNYWB6WNZTquqQ9v.js +0 -4
  187. package/screenshot-page/assets/DegZKTNqt1LRnSxY.js +0 -1
  188. package/screenshot-page/assets/Dhh1xqujbhLa8WFd.js +0 -1
  189. package/screenshot-page/assets/DllI8kZZZ5LG0Mjd.js +0 -2
  190. package/screenshot-page/assets/DrcpGT9FLbDzeLeG.js +0 -2
  191. package/screenshot-page/assets/XrFpPrRqQNE9AAwH.js +0 -1
  192. package/screenshot-page/assets/mBuOPJeUPXlKwfPZ.js +0 -48
  193. package/screenshot-page/assets/zSnM7GhGzLu1MM_u.js +0 -3
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.20
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.21
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 "./CrRJqUPbvvhnp4p4.js";
8
- import { $a as t, $r as n, Bt as i, Ci as r, Gt as s, Ki as o, Ma as a, Pi as c, Qi as h, Wa as l, _r as u, a as d, aa as p, cr as f, fi as m, gi as E, jr as T, jt as g, q as O, t as A, tr as R, tt as I, u as _, ut as N, va as L, wa as S, wn as C, wr as y, xt as k, y as v } from "./DTXRsv2Ww7WbIwCb.js";
7
+ import { u as e } from "./D5mfuGSeGXSDHj9-.js";
8
+ import { At as t, Da as n, Dn as i, Fr as r, Hi as s, Pa as o, Pi as a, Sn as c, T as h, Ur as l, Xt as u, Y as d, Yi as p, Yr as f, _i as m, dn as E, er as T, fr as g, in as O, j as A, ot as R, so as I, t as _, ta as N, u as L, wr as S, x as C, xa as y, z as k, zt as v } from "./Vo34QvIefEN595xl.js";
9
9
  function x(e) {
10
10
  console && console.error && console.error(`Error: ${e}`);
11
11
  }
@@ -92,7 +92,7 @@ var U = class {
92
92
  constructor(e) {
93
93
  super(e.definition), this.idx = 1, this.ignoreAmbiguities = !1, this.hasPredicates = !1, Object.assign(this, Y(e));
94
94
  }
95
- }, V = class {
95
+ }, H = class {
96
96
  constructor(e) {
97
97
  this.idx = 1, Object.assign(this, Y(e));
98
98
  }
@@ -100,9 +100,9 @@ var U = class {
100
100
  e.visit(this);
101
101
  }
102
102
  };
103
- function H(e) {
103
+ function V(e) {
104
104
  function t(e) {
105
- return e.map(H);
105
+ return e.map(V);
106
106
  }
107
107
  if (e instanceof w) {
108
108
  const t = {
@@ -129,13 +129,13 @@ function H(e) {
129
129
  if (e instanceof j) return {
130
130
  type: "RepetitionMandatoryWithSeparator",
131
131
  idx: e.idx,
132
- separator: H(new V({ terminalType: e.separator })),
132
+ separator: V(new H({ terminalType: e.separator })),
133
133
  definition: t(e.definition)
134
134
  };
135
135
  if (e instanceof K) return {
136
136
  type: "RepetitionWithSeparator",
137
137
  idx: e.idx,
138
- separator: H(new V({ terminalType: e.separator })),
138
+ separator: V(new H({ terminalType: e.separator })),
139
139
  definition: t(e.definition)
140
140
  };
141
141
  if (e instanceof G) return {
@@ -148,7 +148,7 @@ function H(e) {
148
148
  idx: e.idx,
149
149
  definition: t(e.definition)
150
150
  };
151
- if (e instanceof V) {
151
+ if (e instanceof H) {
152
152
  const t = {
153
153
  type: "Terminal",
154
154
  name: e.terminalType.name,
@@ -183,7 +183,7 @@ var z = class {
183
183
  case K: return this.visitRepetitionWithSeparator(t);
184
184
  case G: return this.visitRepetition(t);
185
185
  case W: return this.visitAlternation(t);
186
- case V: return this.visitTerminal(t);
186
+ case H: return this.visitTerminal(t);
187
187
  case F: return this.visitRule(t);
188
188
  default: throw Error("non exhaustive match");
189
189
  }
@@ -210,7 +210,7 @@ function q(e) {
210
210
  if (e instanceof j) return "AT_LEAST_ONE_SEP";
211
211
  if (e instanceof K) return "MANY_SEP";
212
212
  if (e instanceof G) return "MANY";
213
- if (e instanceof V) return "CONSUME";
213
+ if (e instanceof H) return "CONSUME";
214
214
  throw Error("non exhaustive match");
215
215
  }
216
216
  var Q = class {
@@ -218,7 +218,7 @@ var Q = class {
218
218
  e.definition.forEach((n, i) => {
219
219
  const r = e.definition.slice(i + 1);
220
220
  if (n instanceof w) this.walkProdRef(n, r, t);
221
- else if (n instanceof V) this.walkTerminal(n, r, t);
221
+ else if (n instanceof H) this.walkTerminal(n, r, t);
222
222
  else if (n instanceof D) this.walkFlat(n, r, t);
223
223
  else if (n instanceof B) this.walkOption(n, r, t);
224
224
  else if (n instanceof $) this.walkAtLeastOne(n, r, t);
@@ -266,13 +266,13 @@ var Q = class {
266
266
  }
267
267
  };
268
268
  function Z(e, t, n) {
269
- return [new B({ definition: [new V({ terminalType: e.separator })].concat(e.definition) })].concat(t, n);
269
+ return [new B({ definition: [new H({ terminalType: e.separator })].concat(e.definition) })].concat(t, n);
270
270
  }
271
271
  function J(e) {
272
272
  if (e instanceof w) return J(e.referencedRule);
273
- if (e instanceof V) return [e.terminalType];
273
+ if (e instanceof H) return [e.terminalType];
274
274
  if (function(e) {
275
- return e instanceof D || e instanceof B || e instanceof G || e instanceof $ || e instanceof j || e instanceof K || e instanceof V || e instanceof F;
275
+ return e instanceof D || e instanceof B || e instanceof G || e instanceof $ || e instanceof j || e instanceof K || e instanceof H || e instanceof F;
276
276
  }(e)) return function(e) {
277
277
  let t = [];
278
278
  const n = e.definition;
@@ -1508,7 +1508,7 @@ function Ke(e, t) {
1508
1508
  function We(e, t) {
1509
1509
  return e.tokenTypeIdx === t.tokenTypeIdx;
1510
1510
  }
1511
- var Ve = 1, He = {};
1511
+ var He = 1, Ve = {};
1512
1512
  function Ye(e) {
1513
1513
  const t = function(e) {
1514
1514
  let t = [...e], n = e, i = !0;
@@ -1522,7 +1522,7 @@ function Ye(e) {
1522
1522
  (function(e) {
1523
1523
  e.forEach((e) => {
1524
1524
  var t;
1525
- Xe(e) || (He[Ve] = e, e.tokenTypeIdx = Ve++), qe(e) && !Array.isArray(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), qe(e) || (e.CATEGORIES = []), t = e, Object.hasOwn(null != t ? t : {}, "categoryMatches") || (e.categoryMatches = []), function(e) {
1525
+ Xe(e) || (Ve[He] = e, e.tokenTypeIdx = He++), qe(e) && !Array.isArray(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), qe(e) || (e.CATEGORIES = []), t = e, Object.hasOwn(null != t ? t : {}, "categoryMatches") || (e.categoryMatches = []), function(e) {
1526
1526
  return Object.hasOwn(null != e ? e : {}, "categoryMatchesMap");
1527
1527
  }(e) || (e.categoryMatchesMap = {});
1528
1528
  });
@@ -1533,7 +1533,7 @@ function Ye(e) {
1533
1533
  }(t), function(e) {
1534
1534
  e.forEach((e) => {
1535
1535
  e.categoryMatches = [], Object.keys(e.categoryMatchesMap).forEach((t) => {
1536
- e.categoryMatches.push(He[t].tokenTypeIdx);
1536
+ e.categoryMatches.push(Ve[t].tokenTypeIdx);
1537
1537
  });
1538
1538
  });
1539
1539
  }(t), t.forEach((e) => {
@@ -1946,7 +1946,7 @@ var Et = {
1946
1946
  Object.freeze(Et);
1947
1947
  var Tt = { buildRuleNotFoundError: (e, t) => "Invalid grammar, reference to a rule which is not defined: ->" + t.nonTerminalName + "<-\ninside top level rule: ->" + e.name + "<-" }, gt = {
1948
1948
  buildDuplicateFoundError(e, t) {
1949
- const n = e.name, i = t[0], r = i.idx, s = q(i), o = (a = i) instanceof V ? a.terminalType.name : a instanceof w ? a.nonTerminalName : "";
1949
+ const n = e.name, i = t[0], r = i.idx, s = q(i), o = (a = i) instanceof H ? a.terminalType.name : a instanceof w ? a.nonTerminalName : "";
1950
1950
  var a;
1951
1951
  let c = `->${s}${r > 0 ? r : ""}<- ${o ? `with argument: ->${o}<-` : ""}\n appears more than once (${t.length} times) in the top level rule: ->${n}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;
1952
1952
  return c = c.replace(/[ \t]+/g, " "), c = c.replace(/\s\s+/g, "\n"), c;
@@ -2047,28 +2047,28 @@ var Ot, At = class extends z {
2047
2047
  walkMany(e, t, n) {
2048
2048
  if (e.idx === this.occurrence) {
2049
2049
  const e = t.concat(n)[0];
2050
- this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2050
+ this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2051
2051
  } else super.walkMany(e, t, n);
2052
2052
  }
2053
2053
  }, Lt = class extends _t {
2054
2054
  walkManySep(e, t, n) {
2055
2055
  if (e.idx === this.occurrence) {
2056
2056
  const e = t.concat(n)[0];
2057
- this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2057
+ this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2058
2058
  } else super.walkManySep(e, t, n);
2059
2059
  }
2060
2060
  }, St = class extends _t {
2061
2061
  walkAtLeastOne(e, t, n) {
2062
2062
  if (e.idx === this.occurrence) {
2063
2063
  const e = t.concat(n)[0];
2064
- this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2064
+ this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2065
2065
  } else super.walkAtLeastOne(e, t, n);
2066
2066
  }
2067
2067
  }, Ct = class extends _t {
2068
2068
  walkAtLeastOneSep(e, t, n) {
2069
2069
  if (e.idx === this.occurrence) {
2070
2070
  const e = t.concat(n)[0];
2071
- this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2071
+ this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2072
2072
  } else super.walkAtLeastOneSep(e, t, n);
2073
2073
  }
2074
2074
  };
@@ -2086,14 +2086,14 @@ function yt(e, t, n = []) {
2086
2086
  if (t instanceof B) i = s(t.definition);
2087
2087
  else {
2088
2088
  if (t instanceof $) return s(t.definition.concat([new G({ definition: t.definition })]));
2089
- if (t instanceof j) return s([new D({ definition: t.definition }), new G({ definition: [new V({ terminalType: t.separator })].concat(t.definition) })]);
2090
- if (t instanceof K) i = s(t.definition.concat([new G({ definition: [new V({ terminalType: t.separator })].concat(t.definition) })]));
2089
+ if (t instanceof j) return s([new D({ definition: t.definition }), new G({ definition: [new H({ terminalType: t.separator })].concat(t.definition) })]);
2090
+ if (t instanceof K) i = s(t.definition.concat([new G({ definition: [new H({ terminalType: t.separator })].concat(t.definition) })]));
2091
2091
  else if (t instanceof G) i = s(t.definition.concat([new G({ definition: t.definition })]));
2092
2092
  else {
2093
2093
  if (t instanceof W) return t.definition.forEach((e) => {
2094
2094
  0 !== e.definition.length && (i = s(e.definition));
2095
2095
  }), i;
2096
- if (!(t instanceof V)) throw Error("non exhaustive match");
2096
+ if (!(t instanceof H)) throw Error("non exhaustive match");
2097
2097
  n.push(t.terminalType);
2098
2098
  }
2099
2099
  }
@@ -2338,7 +2338,7 @@ function Gt(e) {
2338
2338
  }
2339
2339
  function Kt(e, t, n, i) {
2340
2340
  const r = e.flatMap((e) => function(e, t) {
2341
- const n = new Ht();
2341
+ const n = new Vt();
2342
2342
  e.accept(n);
2343
2343
  const i = n.allProductions, r = Object.groupBy(i, Wt), s = Object.fromEntries(Object.entries(r).filter(([e, t]) => t.length > 1));
2344
2344
  return Object.values(s).map((n) => {
@@ -2348,7 +2348,7 @@ function Kt(e, t, n, i) {
2348
2348
  ruleName: e.name,
2349
2349
  dslName: s,
2350
2350
  occurrence: i.idx
2351
- }, a = Vt(i);
2351
+ }, a = Ht(i);
2352
2352
  return a && (o.parameter = a), o;
2353
2353
  });
2354
2354
  }(e, n)), s = function(e, t, n) {
@@ -2393,12 +2393,12 @@ function Kt(e, t, n, i) {
2393
2393
  return r.concat(s, o, a);
2394
2394
  }
2395
2395
  function Wt(e) {
2396
- return `${q(e)}_#_${e.idx}_#_${Vt(e)}`;
2396
+ return `${q(e)}_#_${e.idx}_#_${Ht(e)}`;
2397
2397
  }
2398
- function Vt(e) {
2399
- return e instanceof V ? e.terminalType.name : e instanceof w ? e.nonTerminalName : "";
2398
+ function Ht(e) {
2399
+ return e instanceof H ? e.terminalType.name : e instanceof w ? e.nonTerminalName : "";
2400
2400
  }
2401
- var Ht = class extends z {
2401
+ var Vt = class extends z {
2402
2402
  constructor() {
2403
2403
  super(...arguments), this.allProductions = [];
2404
2404
  }
@@ -2454,7 +2454,7 @@ function zt(e) {
2454
2454
  if (n instanceof w) t.push(n.referencedRule);
2455
2455
  else if (n instanceof D || n instanceof B || n instanceof $ || n instanceof j || n instanceof K || n instanceof G) t = t.concat(zt(n.definition));
2456
2456
  else if (n instanceof W) t = n.definition.map((e) => zt(e.definition)).flat();
2457
- else if (!(n instanceof V)) throw Error("non exhaustive match");
2457
+ else if (!(n instanceof H)) throw Error("non exhaustive match");
2458
2458
  const i = X(n), r = e.length > 1;
2459
2459
  if (i && r) {
2460
2460
  const n = e.slice(1);
@@ -2498,7 +2498,7 @@ function qt(e, t) {
2498
2498
  occurrenceStack: f.slice(0, -1)
2499
2499
  };
2500
2500
  u.push(e);
2501
- } else if (m instanceof V) if (d < c - 1) {
2501
+ } else if (m instanceof H) if (d < c - 1) {
2502
2502
  const e = d + 1;
2503
2503
  if (n(t[e], m.terminalType)) {
2504
2504
  const t = {
@@ -2558,7 +2558,7 @@ function qt(e, t) {
2558
2558
  u.push(t);
2559
2559
  } else if (m instanceof j) {
2560
2560
  const t = new G({
2561
- definition: [new V({ terminalType: m.separator })].concat(m.definition),
2561
+ definition: [new H({ terminalType: m.separator })].concat(m.definition),
2562
2562
  idx: m.idx
2563
2563
  }), n = {
2564
2564
  idx: d,
@@ -2576,7 +2576,7 @@ function qt(e, t) {
2576
2576
  };
2577
2577
  u.push(e), u.push(o);
2578
2578
  const n = new G({
2579
- definition: [new V({ terminalType: m.separator })].concat(m.definition),
2579
+ definition: [new H({ terminalType: m.separator })].concat(m.definition),
2580
2580
  idx: m.idx
2581
2581
  }), r = {
2582
2582
  idx: d,
@@ -3990,7 +3990,7 @@ $n.DEFER_DEFINITION_ERRORS_HANDLING = !1, Bn = $n, [
3990
3990
  return this.gastProductionsCache;
3991
3991
  }
3992
3992
  getSerializedGastProductions() {
3993
- return Object.values(this.gastProductionsCache).map(H);
3993
+ return Object.values(this.gastProductionsCache).map(V);
3994
3994
  }
3995
3995
  },
3996
3996
  class {
@@ -4145,7 +4145,7 @@ $n.DEFER_DEFINITION_ERRORS_HANDLING = !1, Bn = $n, [
4145
4145
  const n = /* @__PURE__ */ new Error(`<CONSUME${Mn(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);
4146
4146
  throw n.KNOWN_RECORDER_ERROR = !0, n;
4147
4147
  }
4148
- const i = this.recordingProdStack.at(-1), r = new V({
4148
+ const i = this.recordingProdStack.at(-1), r = new H({
4149
4149
  idx: t,
4150
4150
  terminalType: e,
4151
4151
  label: null == n ? void 0 : n.LABEL
@@ -4187,9 +4187,9 @@ var jn = class extends $n {
4187
4187
  }
4188
4188
  }, Gn = class t {
4189
4189
  static shared(e) {
4190
- const n = e?.locale ?? l, i = e?.maxColumn ?? Hn, r = e?.maxRow ?? Yn;
4191
- let s = Vn.get(n);
4192
- s || (s = /* @__PURE__ */ new Map(), Vn.set(n, s));
4190
+ const n = e?.locale ?? h, i = e?.maxColumn ?? Vn, r = e?.maxRow ?? Yn;
4191
+ let s = Hn.get(n);
4192
+ s || (s = /* @__PURE__ */ new Map(), Hn.set(n, s));
4193
4193
  const o = `${i}:${r}`;
4194
4194
  let a = s.get(o);
4195
4195
  return a || (a = new t({
@@ -4199,34 +4199,34 @@ var jn = class extends $n {
4199
4199
  }), s.set(o, a)), a;
4200
4200
  }
4201
4201
  constructor(e) {
4202
- const t = e?.maxColumn ?? Hn, n = e?.maxRow ?? Yn, i = e?.locale ?? l;
4202
+ const t = e?.maxColumn ?? Vn, n = e?.maxRow ?? Yn, i = e?.locale ?? h;
4203
4203
  this._locale = i, this._maxColumn = t, this._maxRow = n;
4204
- const { separatorFunction: s, separatorColumn: o, separatorRow: a, separatorDecimal: c } = i.separators;
4205
- if (o === a) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${o}')`);
4206
- const h = pt({
4204
+ const { separatorFunction: r, separatorColumn: s, separatorRow: o, separatorDecimal: a } = i.separators;
4205
+ if (s === o) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${s}')`);
4206
+ const c = pt({
4207
4207
  name: "WhiteSpace",
4208
4208
  pattern: /[ \n\v\f\r\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,
4209
4209
  group: tt.SKIPPED
4210
- }), u = pt({
4210
+ }), l = pt({
4211
4211
  name: "StringToken",
4212
4212
  pattern: /"(""|[^"])*"/
4213
- }), d = pt({
4213
+ }), u = pt({
4214
4214
  name: "FunctionToken",
4215
4215
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
4216
- }), p = pt({
4216
+ }), d = pt({
4217
4217
  name: "TableReference",
4218
- pattern: { exec: f },
4218
+ pattern: { exec: I },
4219
4219
  line_breaks: !1,
4220
4220
  start_chars_hint: Wn
4221
- }), m = pt({
4221
+ }), p = pt({
4222
4222
  name: "BracketedString",
4223
- pattern: { exec: r },
4223
+ pattern: { exec: T },
4224
4224
  line_breaks: !1,
4225
4225
  start_chars_hint: [91],
4226
- longer_alt: [p, u]
4227
- }), E = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), T = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), g = pt({
4226
+ longer_alt: [d, l]
4227
+ }), f = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), m = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), E = pt({
4228
4228
  name: "LiteralError",
4229
- pattern: new RegExp(E(i.errorLiterals) + [
4229
+ pattern: new RegExp(f(i.errorLiterals) + [
4230
4230
  "#PARSE!",
4231
4231
  "#NULL!",
4232
4232
  "#DIV\\/0!",
@@ -4243,17 +4243,17 @@ var jn = class extends $n {
4243
4243
  "#BUSY!",
4244
4244
  "#PYTHON!",
4245
4245
  "#TIMEOUT!"
4246
- ].map(T).join("|"))
4247
- }), O = pt({
4246
+ ].map(m).join("|"))
4247
+ }), g = pt({
4248
4248
  name: "RefError",
4249
- pattern: new RegExp(E(i.errorRefs) + ["#REF!", "#NAME\\?"].map(T).join("|"))
4250
- }), A = pt({
4249
+ pattern: new RegExp(f(i.errorRefs) + ["#REF!", "#NAME\\?"].map(m).join("|"))
4250
+ }), O = pt({
4251
4251
  name: "SingleQuotedString",
4252
4252
  pattern: /'(''|[^'])*'/
4253
- }), R = pt({
4253
+ }), A = pt({
4254
4254
  name: "SheetQuoted",
4255
4255
  pattern: /'(?:''|[^'])*?'!/
4256
- }), I = pt({
4256
+ }), R = pt({
4257
4257
  name: "Sheet",
4258
4258
  pattern: /[A-Za-z_.\d\u007F-\uFFFF]*!/
4259
4259
  }), _ = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, N = pt({
@@ -4283,7 +4283,7 @@ var jn = class extends $n {
4283
4283
  }), C = pt({
4284
4284
  name: "AbsRow",
4285
4285
  pattern: /[$][0-9]+/
4286
- }), y = "." === c ? "\\." : c, k = pt({
4286
+ }), y = "." === a ? "\\." : a, k = pt({
4287
4287
  name: "NumberToken",
4288
4288
  pattern: new RegExp(`[0-9]+${y}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${y}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)
4289
4289
  }), v = pt({
@@ -4302,13 +4302,13 @@ var jn = class extends $n {
4302
4302
  pattern: new RegExp(P.join("|"), "i")
4303
4303
  }), b = pt({
4304
4304
  name: "ArgSeparator",
4305
- pattern: Qn(s)
4305
+ pattern: Qn(r)
4306
4306
  }), U = pt({
4307
4307
  name: "ColSeparator",
4308
- pattern: Qn(o)
4308
+ pattern: Qn(s)
4309
4309
  }), w = pt({
4310
4310
  name: "RowSeparator",
4311
- pattern: Qn(a)
4311
+ pattern: Qn(o)
4312
4312
  }), F = pt({
4313
4313
  name: "RangeOp",
4314
4314
  pattern: /:/
@@ -4333,10 +4333,10 @@ var jn = class extends $n {
4333
4333
  }), W = pt({
4334
4334
  name: "CloseCurlyParen",
4335
4335
  pattern: /}/
4336
- }), V = pt({
4336
+ }), H = pt({
4337
4337
  name: "QuoteS",
4338
4338
  pattern: /'/
4339
- }), H = pt({
4339
+ }), V = pt({
4340
4340
  name: "MulOp",
4341
4341
  pattern: /\*(?!\*)/
4342
4342
  }), Y = pt({
@@ -4363,7 +4363,7 @@ var jn = class extends $n {
4363
4363
  }), ee = pt({
4364
4364
  name: "ArrayAnchorOp",
4365
4365
  pattern: /#/,
4366
- longer_alt: [g, O]
4366
+ longer_alt: [E, g]
4367
4367
  }), te = pt({
4368
4368
  name: "GtOp",
4369
4369
  pattern: />/
@@ -4374,18 +4374,18 @@ var jn = class extends $n {
4374
4374
  name: "LtOp",
4375
4375
  pattern: /</
4376
4376
  }), re = [
4377
- h,
4378
- u,
4379
- R,
4377
+ c,
4378
+ l,
4380
4379
  A,
4381
- I,
4380
+ O,
4381
+ R,
4382
+ u,
4382
4383
  d,
4383
4384
  p,
4384
- m,
4385
+ E,
4385
4386
  g,
4386
- O,
4387
4387
  b,
4388
- ...o !== s ? [U] : [],
4388
+ ...s !== r ? [U] : [],
4389
4389
  w,
4390
4390
  D,
4391
4391
  B,
@@ -4405,8 +4405,8 @@ var jn = class extends $n {
4405
4405
  G,
4406
4406
  K,
4407
4407
  W,
4408
- V,
4409
4408
  H,
4409
+ V,
4410
4410
  Y,
4411
4411
  z,
4412
4412
  X,
@@ -4433,7 +4433,7 @@ var jn = class extends $n {
4433
4433
  const se = {};
4434
4434
  re.forEach((e) => {
4435
4435
  se[e.name] = e;
4436
- }), o === s && (se.ColSeparator = b), this._vocabulary = se;
4436
+ }), s === r && (se.ColSeparator = b), this._vocabulary = se;
4437
4437
  }
4438
4438
  tokenize(t, n = !0) {
4439
4439
  const i = this._lexer.tokenize(t);
@@ -4477,7 +4477,7 @@ var jn = class extends $n {
4477
4477
  ];
4478
4478
  for (let t = 127; t <= 65535; t++) e.push(t);
4479
4479
  return e;
4480
- })(), Vn = /* @__PURE__ */ new WeakMap(), Hn = 16384, Yn = 1048576;
4480
+ })(), Hn = /* @__PURE__ */ new WeakMap(), Vn = 16384, Yn = 1048576;
4481
4481
  function zn(e, t, n) {
4482
4482
  let i = 0;
4483
4483
  for (let r = t; r < n; r++) {
@@ -4533,7 +4533,7 @@ function Qn(e) {
4533
4533
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4534
4534
  }
4535
4535
  var Zn = class {
4536
- constructor(e = l) {
4536
+ constructor(e = h) {
4537
4537
  const t = function(e) {
4538
4538
  const t = [...O];
4539
4539
  if (e) for (const n of Object.values(e)) {
@@ -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 = l) {
4585
+ constructor(e = h) {
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: i, BracketedColumn: r, BareSpecifier: s, ColumnSep: o, ListSep: a } = n, c = this;
4594
+ c.RULE("ruleContent", () => {
4595
+ const e = [], t = c.SUBRULE(c.ruleItem);
4596
+ return c.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
+ }), c.MANY(() => {
4599
+ c.CONSUME(a), c.OPTION(() => {
4600
+ const t = c.SUBRULE2(c.ruleItem);
4601
+ c.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
+ }), c.RULE("ruleItem", () => c.OR([{ ALT: () => c.SUBRULE(c.ruleSpecifier) }, { ALT: () => c.SUBRULE(c.ruleColumnOrRange) }])), c.RULE("ruleSpecifier", () => c.OR([{ ALT: () => {
4607
+ const t = c.CONSUME(i);
4608
+ return c.ACTION(() => {
4609
+ const n = d(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 = c.CONSUME(s);
4614
+ return c.ACTION(() => {
4615
+ const n = d(t.image, e);
4616
4616
  return n.image = t.image, n;
4617
4617
  });
4618
- } }])), h.RULE("ruleColumnOrRange", () => {
4619
- const e = h.CONSUME(r);
4618
+ } }])), c.RULE("ruleColumnOrRange", () => {
4619
+ const e = c.CONSUME(r);
4620
4620
  let t, n;
4621
- return h.OPTION(() => {
4622
- t = h.CONSUME(a), n = h.CONSUME2(r);
4623
- }), h.ACTION(() => {
4624
- const i = R(e.image);
4621
+ return c.OPTION(() => {
4622
+ t = c.CONSUME(o), n = c.CONSUME2(r);
4623
+ }), c.ACTION(() => {
4624
+ const i = _(e.image);
4625
4625
  if (i.image = e.image, !n) return i;
4626
- const r = R(n.image);
4626
+ const r = _(n.image);
4627
4627
  r.image = n.image;
4628
- const s = A(":", i, r, !0);
4628
+ const s = g(":", i, r, !0);
4629
4629
  return s.image = t?.image ?? ":", s;
4630
4630
  });
4631
- }), h.performSelfAnalysis();
4631
+ }), c.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 = l("@", 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 = l("@", t[0], !0);
4652
4652
  return e.image = "@", [e];
4653
4653
  }
4654
4654
  }
4655
- const n = R(e);
4655
+ const n = _(e);
4656
4656
  n.image = e;
4657
- const i = a("@", n, !0);
4657
+ const i = l("@", n, !0);
4658
4658
  return i.image = "@", [i];
4659
4659
  }
4660
4660
  if ("[" !== n && "#" !== n) {
4661
- const t = R(e);
4661
+ const t = _(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: N("", []),
4669
+ root: u("", []),
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: N(o, c),
4682
+ root: u(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 === E.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 r = e?.lexer ?? Gn.shared(e?.lexerOptions), s = r.getVocabulary();
4729
- super(s, {
4728
+ const h = e?.lexer ?? Gn.shared(e?.lexerOptions), u = h.getVocabulary();
4729
+ super(u, {
4730
4730
  skipValidations: !0,
4731
4731
  recoveryEnabled: !0,
4732
4732
  ...e,
@@ -4734,46 +4734,46 @@ var ai = {
4734
4734
  errorMessageProvider: ai,
4735
4735
  maxLookahead: 1
4736
4736
  }), this._ruleInfixOp = this.RULE("ruleInfixOp", () => {
4737
- const { PlusOp: e, MinOp: t, MulOp: n, DivOp: i, ExOp: r, ConcatOp: s, GtOp: o, EqOp: a, LtOp: c, NeqOp: h, GteOp: l, LteOp: u } = this._vocab, d = [];
4738
- return d.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
4739
- const p = this.OR(this._c1 || (this._c1 = [
4737
+ const { PlusOp: e, MinOp: t, MulOp: n, DivOp: i, ExOp: r, ConcatOp: o, GtOp: a, EqOp: h, LtOp: l, NeqOp: u, GteOp: d, LteOp: p } = this._vocab, f = [];
4738
+ return f.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
4739
+ const s = this.OR(this._c1 || (this._c1 = [
4740
4740
  { ALT: () => this.CONSUME(e).image },
4741
4741
  { ALT: () => this.CONSUME(t).image },
4742
4742
  { ALT: () => this.CONSUME(n).image },
4743
4743
  { ALT: () => this.CONSUME(i).image },
4744
4744
  { ALT: () => this.CONSUME(r).image },
4745
- { ALT: () => this.CONSUME(s).image },
4746
4745
  { ALT: () => this.CONSUME(o).image },
4747
4746
  { ALT: () => this.CONSUME(a).image },
4748
- { ALT: () => this.CONSUME(c).image },
4749
4747
  { ALT: () => this.CONSUME(h).image },
4750
4748
  { ALT: () => this.CONSUME(l).image },
4751
- { ALT: () => this.CONSUME(u).image }
4752
- ])), f = {
4753
- value: p,
4749
+ { ALT: () => this.CONSUME(u).image },
4750
+ { ALT: () => this.CONSUME(d).image },
4751
+ { ALT: () => this.CONSUME(p).image }
4752
+ ])), m = {
4753
+ value: s,
4754
4754
  index: this.getLexerPosition(),
4755
- isRange: y.includes(p)
4756
- }, m = this.SUBRULE2(this._rulePostfixOp);
4757
- d.push({
4758
- op: f,
4759
- node: m
4755
+ isRange: c.includes(s)
4756
+ }, E = this.SUBRULE2(this._rulePostfixOp);
4757
+ f.push({
4758
+ op: m,
4759
+ node: E
4760
4760
  });
4761
4761
  }), this.ACTION(() => {
4762
- let e = d.length - 1;
4763
- const t = p.length;
4762
+ let e = f.length - 1;
4763
+ const t = s.length;
4764
4764
  for (let n = 0; e > 0 && n < t; n++) {
4765
- const t = p[n];
4765
+ const t = s[n];
4766
4766
  let i = 1;
4767
- for (; i < d.length;) {
4768
- const n = d[i].op;
4767
+ for (; i < f.length;) {
4768
+ const n = f[i].op;
4769
4769
  if (t.includes(n.value)) {
4770
- const t = d[i - 1].node, r = d[i].node;
4771
- let s = A(n.value, t, r, n.isRange);
4772
- s = this._tag(s, n.index), d[i - 1].node = s, d.splice(i, 1), e--;
4770
+ const t = f[i - 1].node, r = f[i].node;
4771
+ let s = g(n.value, t, r, n.isRange);
4772
+ s = this._tag(s, n.index), f[i - 1].node = s, f.splice(i, 1), e--;
4773
4773
  } else i++;
4774
4774
  }
4775
4775
  }
4776
- }), d[0].node;
4776
+ }), f[0].node;
4777
4777
  }), this._rulePlusMinusOp = this.RULE("rulePlusMinusOp", () => {
4778
4778
  const { PlusOp: e, MinOp: t } = this._vocab;
4779
4779
  return this.OR([{ ALT: () => this.CONSUME(e) }, { ALT: () => this.CONSUME(t) }]);
@@ -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 = y.includes(r);
4793
- t = u(r, t, o), t = this._tag(t, s);
4792
+ const e = n[i], r = e[0], s = e[1], a = c.includes(r);
4793
+ t = o(r, t, a), t = this._tag(t, s);
4794
4794
  }
4795
4795
  }), t;
4796
4796
  }), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
@@ -4809,8 +4809,8 @@ 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 = y.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 = c.includes(n);
4813
+ r = l(n, r, o), r = this._tag(r, s);
4814
4814
  }
4815
4815
  }), r;
4816
4816
  }), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
@@ -4838,16 +4838,16 @@ var ai = {
4838
4838
  const t = s[e], n = s[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(A(":", t.node, n.node, !0), n.op.index), s.splice(e + 1, 1));
4841
+ i && ni(n.node) === i && ni(s[e - 1].node) !== i && (t.node = this._tag(g(":", t.node, n.node, !0), n.op.index), s.splice(e + 1, 1));
4842
4842
  }
4843
4843
  for (let e = 1; e < s.length; e++) {
4844
4844
  const t = s[e];
4845
4845
  if (void 0 !== t.anchor) {
4846
- s[0].node = this._tag(u("#", s[0].node, !0), t.anchor);
4846
+ s[0].node = this._tag(o("#", s[0].node, !0), t.anchor);
4847
4847
  continue;
4848
4848
  }
4849
4849
  const n = t.op;
4850
- let i = A(n.value, s[0].node, t.node, !0);
4850
+ let i = g(n.value, s[0].node, t.node, !0);
4851
4851
  i = this._tag(i, n.index), s[0].node = i;
4852
4852
  }
4853
4853
  }), s[0].node;
@@ -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 = A(" ", i, r, !0), o = this._tokenMap.get(i);
4886
+ const i = e[n], r = e[n + 1], s = g(" ", 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,16 +4913,16 @@ 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(E.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 = E();
4919
+ let r = a();
4920
4920
  this.CONSUME(e);
4921
4921
  const s = this.getLexerPosition();
4922
- let o = this.ACTION(() => this._tag(S(r), s));
4923
- const a = this.SUBRULE(this._ruleLiteralForArray);
4922
+ let o = this.ACTION(() => this._tag(m(r), s));
4923
+ const c = this.SUBRULE(this._ruleLiteralForArray);
4924
4924
  this.ACTION(() => {
4925
- r.value.push(a);
4925
+ r.value.push(c);
4926
4926
  }), this.MANY(() => {
4927
4927
  let e = !1;
4928
4928
  this.OR([{ ALT: () => {
@@ -4930,66 +4930,66 @@ var ai = {
4930
4930
  } }, { ALT: () => this.CONSUME(i) }]);
4931
4931
  const t = this.SUBRULE2(this._ruleLiteralForArray);
4932
4932
  this.ACTION(() => {
4933
- e || (r = E(), o.value.push(r)), r.value.push(t);
4933
+ e || (r = a(), o.value.push(r)), r.value.push(t);
4934
4934
  });
4935
4935
  });
4936
- const c = this.OPTION(() => this.CONSUME(t));
4937
- return o = this.ACTION(() => (c || this._reportError(o, "Missing closing parenthesis '}'", s), this._tagClose(o, this.getLexerPosition()))), o;
4936
+ const h = this.OPTION(() => this.CONSUME(t));
4937
+ return o = this.ACTION(() => (h || this._reportError(o, "Missing closing parenthesis '}'", s), this._tagClose(o, this.getLexerPosition()))), o;
4938
4938
  }), this._ruleLiteralForArray = this.RULE("ruleLiteralForArray", () => {
4939
- const { StringToken: e, BooleanToken: t, LiteralError: i, RefError: r } = this._vocab;
4939
+ const { StringToken: e, BooleanToken: t, LiteralError: i, RefError: s } = this._vocab;
4940
4940
  return this.OR([
4941
4941
  { ALT: () => {
4942
- const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), i = this.ACTION(() => this._tag(h(t.image, this._locale), this.getLexerPosition()));
4943
- return this.ACTION(() => e ? n(e.image, i) : i);
4942
+ const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(y(t.image, this._locale), this.getLexerPosition()));
4943
+ return this.ACTION(() => e ? p(e.image, n) : n);
4944
4944
  } },
4945
4945
  { ALT: () => {
4946
4946
  const t = this.CONSUME(e);
4947
- return this.ACTION(() => this._tag(L(t.image), this.getLexerPosition()));
4947
+ return this.ACTION(() => this._tag(n(t.image), this.getLexerPosition()));
4948
4948
  } },
4949
4949
  { ALT: () => {
4950
4950
  const e = this.CONSUME(t);
4951
- return this.ACTION(() => this._tag(c(e.image, this._locale), this.getLexerPosition()));
4951
+ return this.ACTION(() => this._tag(S(e.image, this._locale), this.getLexerPosition()));
4952
4952
  } },
4953
4953
  { ALT: () => {
4954
4954
  const e = this.CONSUME(i);
4955
- return this.ACTION(() => this._tag(T(e.image, this._locale), this.getLexerPosition()));
4955
+ return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
4956
4956
  } },
4957
4957
  { ALT: () => {
4958
- const e = this.CONSUME(r);
4959
- return this.ACTION(() => this._tag(d(e.image, this._locale), this.getLexerPosition()));
4958
+ const e = this.CONSUME(s);
4959
+ return this.ACTION(() => this._tag(r(e.image, this._locale), this.getLexerPosition()));
4960
4960
  } }
4961
4961
  ]);
4962
4962
  }), this._ruleLiteral = this.RULE("ruleLiteral", () => {
4963
- const { StringToken: e, BooleanToken: t, LiteralError: n, RefError: i } = this._vocab;
4963
+ const { StringToken: e, BooleanToken: t, LiteralError: i, RefError: s } = this._vocab;
4964
4964
  return this.OR([
4965
4965
  { ALT: () => {
4966
4966
  const e = this.SUBRULE(this._ruleNumber);
4967
- return this.ACTION(() => this._tag(h(e.image, this._locale), this.getLexerPosition()));
4967
+ return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4968
4968
  } },
4969
4969
  { ALT: () => {
4970
4970
  const t = this.CONSUME(e);
4971
- return this.ACTION(() => this._tag(L(t.image), this.getLexerPosition()));
4971
+ return this.ACTION(() => this._tag(n(t.image), this.getLexerPosition()));
4972
4972
  } },
4973
4973
  { ALT: () => {
4974
4974
  const e = this.CONSUME(t);
4975
- return this.ACTION(() => this._tag(c(e.image, this._locale), this.getLexerPosition()));
4975
+ return this.ACTION(() => this._tag(S(e.image, this._locale), this.getLexerPosition()));
4976
4976
  } },
4977
4977
  { ALT: () => {
4978
- const e = this.CONSUME(n);
4979
- return this.ACTION(() => this._tag(T(e.image, this._locale), this.getLexerPosition()));
4978
+ const e = this.CONSUME(i);
4979
+ return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
4980
4980
  } },
4981
4981
  { ALT: () => {
4982
- const e = this.CONSUME(i);
4983
- return this.ACTION(() => this._tag(d(e.image, this._locale), this.getLexerPosition()));
4982
+ const e = this.CONSUME(s);
4983
+ return this.ACTION(() => this._tag(r(e.image, this._locale), this.getLexerPosition()));
4984
4984
  } }
4985
4985
  ]);
4986
4986
  }), this._ruleFunction = this.RULE("ruleFunction", () => {
4987
- const { FunctionToken: e, OpenParen: t, CloseParen: n } = this._vocab, i = this.CONSUME(e).image, r = this.getLexerPosition();
4988
- this.CONSUME(t);
4989
- const s = this.SUBRULE(this._ruleFunctionArguments);
4990
- let o = this.ACTION(() => this._tag(C(i, s), r));
4991
- const a = this.OPTION(() => this.CONSUME(n));
4992
- return o = this.ACTION(() => (a || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()))), o;
4987
+ const { FunctionToken: e, OpenParen: n, CloseParen: i } = this._vocab, r = this.CONSUME(e).image, s = this.getLexerPosition();
4988
+ this.CONSUME(n);
4989
+ const o = this.SUBRULE(this._ruleFunctionArguments);
4990
+ let a = this.ACTION(() => this._tag(t(r, o), s));
4991
+ const c = this.OPTION(() => this.CONSUME(i));
4992
+ return a = this.ACTION(() => (c || this._reportError(a, "Missing closing parenthesis ')'", s), this._tagClose(a, this.getLexerPosition()))), a;
4993
4993
  }), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
4994
4994
  const { ArgSeparator: e, CloseParen: t } = this._vocab, n = [];
4995
4995
  return this.OPTION({
@@ -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(m(), this.getLexerPosition())), n.push(t), this.MANY(() => {
5001
+ }), t = this.ACTION(() => t ?? this._tagClose(C(), 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(m(), this.getLexerPosition())), n.push(t);
5005
+ }), t = this.ACTION(() => t ?? this._tagClose(C(), 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: r, MulOp: s, PlusOp: a, MinOp: c, ArgSeparator: h, Cell: l, NamedToken: u, SingleQuotedString: p, Column: f, AbsRow: m, DigitToken: E, RefError: T } = this._vocab;
5025
- let O, A;
5024
+ const { Sheet: e, SheetQuoted: t, DivOp: n, MulOp: s, PlusOp: o, MinOp: a, ArgSeparator: c, Cell: h, NamedToken: l, SingleQuotedString: u, Column: d, AbsRow: p, DigitToken: f, RefError: m } = this._vocab;
5025
+ let T, g;
5026
5026
  this.OPTION2({
5027
5027
  GATE: () => {
5028
- for (let t = 1; t < 6; t++) {
5029
- const i = this.LA(t);
5030
- if (i.tokenType === e || i.tokenType === n) return !0;
5031
- if ("" === i.image || ")" === i.image || i.tokenType === r || i.tokenType === s || i.tokenType === a || i.tokenType === c || i.tokenType === h) break;
5028
+ for (let i = 1; i < 6; i++) {
5029
+ const r = this.LA(i);
5030
+ if (r.tokenType === e || r.tokenType === t) return !0;
5031
+ if ("" === r.image || ")" === r.image || r.tokenType === n || r.tokenType === s || r.tokenType === o || r.tokenType === a || r.tokenType === c) break;
5032
5032
  }
5033
5033
  return !1;
5034
5034
  },
5035
5035
  DEF: () => {
5036
- A = this.getLexerPosition() + 1, O = this.SUBRULE(this._rulePrefixSheetName);
5036
+ g = this.getLexerPosition() + 1, T = this.SUBRULE(this._rulePrefixSheetName);
5037
5037
  }
5038
5038
  });
5039
- let R = this.OR([
5039
+ let O = this.OR([
5040
5040
  { ALT: () => {
5041
- const e = this.CONSUME(l), n = this.getLexerPosition();
5042
- return this.ACTION(() => this._tag(t(e.image, this.rowIndex, this.colIndex), n));
5041
+ const e = this.CONSUME(h), t = this.getLexerPosition();
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(u) }, { ALT: () => this.CONSUME(p) }]);
5046
- return this.ACTION(() => this._tag(o(e.image), this.getLexerPosition()));
5045
+ const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(u) }]);
5046
+ return this.ACTION(() => this._tag(N(e.image), this.getLexerPosition()));
5047
5047
  } },
5048
5048
  { ALT: () => this.SUBRULE(this._ruleBracketedString) },
5049
5049
  { ALT: () => this.SUBRULE(this._ruleFunction) },
5050
5050
  { ALT: () => {
5051
- const e = this.CONSUME(f);
5052
- return this.ACTION(() => this._tag(i(e.image, this.colIndex), this.getLexerPosition()));
5051
+ const e = this.CONSUME(d);
5052
+ return this.ACTION(() => this._tag(v(e.image, this.colIndex), this.getLexerPosition()));
5053
5053
  } },
5054
5054
  { ALT: () => {
5055
- const e = this.CONSUME(m);
5056
- return this.ACTION(() => this._tag(g(e.image, this.rowIndex), this.getLexerPosition()));
5055
+ const e = this.CONSUME(p);
5056
+ return this.ACTION(() => this._tag(i(e.image, this.rowIndex), this.getLexerPosition()));
5057
5057
  } },
5058
5058
  { ALT: () => {
5059
- const e = this.CONSUME(E);
5060
- return this.ACTION(() => this._tag(g(e.image, this.rowIndex), this.getLexerPosition()));
5059
+ const e = this.CONSUME(f);
5060
+ return this.ACTION(() => this._tag(i(e.image, this.rowIndex), this.getLexerPosition()));
5061
5061
  } },
5062
5062
  { ALT: () => {
5063
- const e = this.CONSUME(T);
5064
- return this.ACTION(() => this._tag(d(e.image, this._locale), this.getLexerPosition()));
5063
+ const e = this.CONSUME(m);
5064
+ return this.ACTION(() => this._tag(r(e.image, this._locale), this.getLexerPosition()));
5065
5065
  } }
5066
5066
  ]);
5067
5067
  return this.ACTION(() => {
5068
- if (O && R) {
5069
- if ("" === O.name) return void this._reportError(R, `'${O.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
- let e = R;
5071
- if (R.type === _.Postfix && R.inputs?.[0] && (e = R.inputs[0]), e.type === _.Cell || e.type === _.Named || e.type === _.Row || e.type === _.TableColumn || e.type === _.Error) {
5072
- e.value.scope = O.name, e.value.scopeImage = O.image;
5068
+ if (T && O) {
5069
+ if ("" === T.name) return void this._reportError(O, `'${T.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
+ let e = O;
5071
+ if (O.type === E.Postfix && O.inputs?.[0] && (e = O.inputs[0]), e.type === E.Cell || e.type === E.Named || e.type === E.Row || e.type === E.TableColumn || e.type === E.Error) {
5072
+ e.value.scope = T.name, e.value.scopeImage = T.image;
5073
5073
  const t = this._tokenMap.get(e);
5074
- t && void 0 !== A && (t.tokenIndex = A);
5074
+ t && void 0 !== g && (t.tokenIndex = g);
5075
5075
  }
5076
5076
  }
5077
- }), R;
5077
+ }), O;
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,48 +5114,48 @@ 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: E.List,
5118
5118
  value: ",",
5119
5119
  inputs: [t, ...n],
5120
5120
  isReference: !0
5121
5121
  });
5122
- }), this._lexer = r, this._locale = r.getLocale(), this._vocab = s, this._srParser = e?.srParser ?? new Jn(this._locale), this.performSelfAnalysis();
5122
+ }), this._lexer = h, this._locale = h.getLocale(), this._vocab = u, 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 r = this._lexer.tokenize(i);
5129
- let s;
5130
- if (!r) return {
5127
+ parse(t, n, r) {
5128
+ const s = this._lexer.tokenize(r);
5129
+ let o;
5130
+ if (!s) return {
5131
5131
  root: {
5132
- type: _.Unparsed,
5133
- value: i
5132
+ type: E.Unparsed,
5133
+ value: r
5134
5134
  },
5135
5135
  errors: []
5136
5136
  };
5137
- const a = r.tokens;
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(), s = this._ruleRoot(), s && this._bindAllWhitespace(s), s = v(s, (e, n) => {
5140
- const i = e.type, r = n?.isReference ? n.value : void 0, s = "string" == typeof r && ei.has(r), a = "string" == typeof r && ti.has(r), c = s ? n.inputs : void 0, h = c ? c[0] === e ? c[1] : c[0] : void 0, l = this._lexer.getMaxRow();
5141
- if (s && i !== _.Cell && Number.isInteger(e.value)) {
5142
- const n = g(e.image, t);
5143
- return I(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 = t, this.colIndex = n, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), o = this._ruleRoot(), o && this._bindAllWhitespace(o), o = R(o, (e, n) => {
5140
+ const r = 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 && r !== E.Cell && Number.isInteger(e.value)) {
5142
+ const n = i(e.image, t);
5143
+ return f(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;
5144
5144
  }
5145
- if (a && i === _.Named) return this._reportError(e, `'${e.image ?? e.value?.nameId}' is a name — '${r}' needs a cell or range on both sides`), e;
5146
- if (i === _.Cell) {
5145
+ if (a && r === E.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 === E.Cell) {
5147
5147
  const t = e.value, n = t.colIndex === Number.MIN_SAFE_INTEGER, i = t.rowIndex === Number.MIN_SAFE_INTEGER;
5148
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
5149
  if (n || i || t.colIndex >= 16384) {
5150
- const s = o(e.image);
5151
- I(s, e);
5152
- const c = t.scope;
5153
- return c && (s.value.scope = c, s.value.scopeImage = t.scopeImage), n ? this._reportError(s, `'${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(s, `'${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(s, `'${e.image}' is a name — '${r}' needs a cell or range on both sides`), s;
5150
+ const r = N(e.image);
5151
+ f(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;
5154
5154
  }
5155
5155
  }
5156
5156
  return e;
5157
5157
  }), {
5158
- root: s,
5158
+ root: o,
5159
5159
  errors: [...this.errors, ...this._astErrors]
5160
5160
  };
5161
5161
  }
@@ -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 === E.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
  }