@sheetxl/mcp 0.8.0-beta.16 → 0.8.0-beta.18

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 (210) hide show
  1. package/agent/instructions.md +15 -4
  2. package/assets/{CAMrW5ypKhgn105y.js → 10d0ZbYF23zeF8_1.js} +1 -1
  3. package/assets/{BsFWmVYPrLyh5Dre.js → 8hZAYFV_v2KmJ_NL.js} +4 -4
  4. package/assets/{BiGm1tKvxUh8oWbD.js → 9rJMq-cyOmajlBEQ.js} +1 -1
  5. package/assets/{CoIjAX2gECGb3Wxl.js → ARPN5UhoadZC1yqE.js} +1 -1
  6. package/assets/{BZbxPclVVopktv3l.js → B-6CmVJvxPNZB9bE.js} +1 -1
  7. package/assets/{Di4ehJD7muvtcrN3.js → B2C5njsdPylyQOCM.js} +32 -32
  8. package/assets/{C95HXhZkkhnUx_aE.js → B74Ls4nlmyBxWanf.js} +2 -2
  9. package/assets/{AjWB-QdIkr07kToW.js → B7GE-6NROw0onnLD.js} +257 -257
  10. package/assets/{CsjjeeOHE2624pGt.js → BCeSyFXflYgNP_ES.js} +1 -1
  11. package/assets/{Z01wJImjl6lBMpf4.js → BDNqot_JWBuVW_pC.js} +1 -1
  12. package/assets/{DMhtIFfkX-DZT_e3.js → BEtUOCupmeICfGE1.js} +3 -3
  13. package/assets/{C-gN7uBg-MWHRo4g.js → BFGVZsstQm2MWi7Y.js} +1 -1
  14. package/assets/{CW-ivE6pl3V7vKuT.js → BFcxaubQp1WMeknL.js} +33 -33
  15. package/assets/{Ci7-PIIhZwb2mVv5.js → BM-ax5N1GzF9KkI4.js} +1 -1
  16. package/assets/{BR66nPIzyzlOcP10.js → BMc-Hsrp_iifxzG_.js} +1 -1
  17. package/assets/{C75i_5ip7OhGkuiF.js → BOdkvYo03yZ96iZt.js} +1 -1
  18. package/assets/{DFn_thWGK0_EZI5k.js → BQ76ntZm9YFicjXj.js} +1 -1
  19. package/assets/{4vS8pASPZSU7QcRZ.js → BQeb2zXfAs5lRoGt.js} +3 -3
  20. package/assets/{DFvs1LVzXKm1N5M2.js → BQsLqKWy17wy3znE.js} +2 -2
  21. package/assets/{DmLbqbAez7Dzwyl7.js → BQzUK7KiJeJpu-rK.js} +1 -1
  22. package/assets/{3t-I20nDzFHBd5UJ.js → BRQd_GNkeaBTl3Zr.js} +1 -1
  23. package/assets/{8NrxfSWBHDaEJvhz.js → BSvHkSY0R0EU0gC4.js} +1 -1
  24. package/assets/{DFAqI-o57Kd_Azlt.js → BV11qLZKVWxFwVGV.js} +1 -1
  25. package/assets/{pQUJKbHGetb7dcOr.js → BatIfPAYElNTXVzb.js} +1 -1
  26. package/assets/{C-AIgWmHugqMcl9J.js → BedBCvJP064ZYuO8.js} +2 -2
  27. package/assets/{BdMebk9YSA0oxQ_d.js → BgGFX6QJ30T3seyX.js} +104 -104
  28. package/assets/{W2FU69Pfo4chpqtk.js → BhHneZZ7gq4dRaEJ.js} +1 -1
  29. package/assets/{Ct5VTtdW77k-WcP_.js → BhJ1mH7pUONJScU7.js} +38 -38
  30. package/assets/{BbDKWV_FQAICqZjP.js → Bi4pI6e3AwTjn-lQ.js} +1 -1
  31. package/assets/{BbXlmp8W_cbr75FN.js → Bi8ct8GYvMDKHCE3.js} +5 -5
  32. package/assets/{B3MqN3t5naY3moOk.js → Bqq5Sl5E9ytcPJ3J.js} +1 -1
  33. package/assets/{BiE9M6RctwQ339_7.js → BrwNVveK5LvYkoGk.js} +1 -1
  34. package/assets/{BrtLeTsrulaU6osB.js → BsYVa-oRhTLH6wnH.js} +1 -1
  35. package/assets/{DJdRl2yX9DP_D8kh.js → BwQM6Q6HHQTXznpy.js} +2 -2
  36. package/assets/{D7iU4kaxzl_PojNt.js → BxizypreLEtLqpIc.js} +1 -1
  37. package/assets/{POdlv6cpSx6ftJxx.js → Byd5zSRU6LWfL2No.js} +1 -1
  38. package/assets/{DEIkGoOZ_WeuY0Lj.js → Bz5ioWvl-Xl3xspC.js} +1 -1
  39. package/assets/{CX-6eYkcr5y0VmQm.js → C3PZVWI_SEXYrzVk.js} +3 -3
  40. package/assets/{CrwtgrD7BbXyCkx0.js → CDqOifqA400y7KQY.js} +1 -1
  41. package/assets/{BNrpvJZtIL0Ex_wE.js → CGGpkGg85FZsnYHc.js} +15 -15
  42. package/assets/{DfzLOnWTNL_2J90y.js → CJoWPN_DsFbaGAiE.js} +1 -1
  43. package/assets/{h6EQSu5n2vTsu2yd.js → CL4BYdfIXgFQA8nY.js} +1 -1
  44. package/assets/{BuhHuKVWppW4L8AV.js → CLBxNjtPjuGX1KnU.js} +1 -1
  45. package/assets/{-PtBguqpLi7Nr4Df.js → CLsD7YwSKAsliRZy.js} +1 -1
  46. package/assets/{BCSRsSAEPlwR59H5.js → CMXukie7sxP12H2E.js} +4 -4
  47. package/assets/{CIqJdIUKSLZkNwHy.js → CNE-erNKNIT7bUb1.js} +104 -104
  48. package/assets/{Co_y6GfwJTYtOmlt.js → CPa4og3WQ7BgHrsO.js} +3 -3
  49. package/assets/{CJa8JVvKGVBz8Q7q.js → CPkGFumcwSKh5zea.js} +2 -2
  50. package/assets/{D7ibkNIu_Pn4TeBD.js → CQBFUsemb94zMBo6.js} +3 -3
  51. package/assets/{TNQaiw20sEAEUiK5.js → CT6kRDlkfvKq8XGZ.js} +1 -1
  52. package/assets/{D2YdqNWXwSHJMPbA.js → CWuPUrDsnBxboJ02.js} +4 -4
  53. package/assets/{LwFDS0HxPZKiiEnN.js → CYUerpa6WB0Hc3fs.js} +1 -1
  54. package/assets/{CK9h6iDOreaI8GEt.js → CYcb-DojX92VNGzd.js} +3 -3
  55. package/assets/{iqQWGoJaPha0_8lU.js → C_UAskmm-u2Iw9Nl.js} +1 -1
  56. package/assets/{C0JSC9gVwR1QxopD.js → CcB4xmoUFWBbSISF.js} +1 -1
  57. package/assets/{BlIrJwQGEASCgJdZ.js → CiKd3BnRjhac2Hik.js} +1 -1
  58. package/assets/{DaILIYfy-jPVTXjz.js → CkO0JR629W2kcDMd.js} +2 -2
  59. package/assets/{DR9xHYH6v5G0lOqf.js → CmlxzZYM5hOAAcx5.js} +3 -3
  60. package/assets/{DNhfziNrJGdL8BYs.js → CnCtLKkz0bdXIxn2.js} +92 -92
  61. package/assets/{CVRc6jQcH155Z89u.js → CnLLwj7OCz4U71wa.js} +1 -1
  62. package/assets/{3_NofB4A4Qhl-4YY.js → CoQFpWEh4CUgcdwe.js} +1 -1
  63. package/assets/{soSlr334Fv1j5t2m.js → Ct8BhGWuqN5yOpUF.js} +1 -1
  64. package/assets/{BRLA4pJWiYdpW-69.js → Cv8UXBL7O7h1uMR8.js} +20 -20
  65. package/assets/{B16N6VSLY5HPgVkD.js → CvkibaXI8SOD22pw.js} +1 -1
  66. package/assets/{Dd8CHUZz7xuYTfp-.js → CzoexWLhnn08u05j.js} +579 -579
  67. package/assets/{SB2aKOIVln0EkgXR.js → D0-I0aLr6w8IvxFD.js} +1 -1
  68. package/assets/{CVbRpT7QPHOMgwTx.js → D1pD8u8nRprUvn-u.js} +1 -1
  69. package/assets/{BUAq-ENCmL0XGLIu.js → D2IMjoGcj5oz1Kr7.js} +1 -1
  70. package/assets/{BlWfQ5HPEehB_lPz.js → D2sRTakzE5POMnhF.js} +2214 -2108
  71. package/assets/{2GLqCzpAJP6jbaRx.js → D49iRcrfnODORRNC.js} +5 -5
  72. package/assets/{CAEhAL7-0FG7jdzN.js → D5nleqRNvTcmN5_9.js} +1 -1
  73. package/assets/{BtNRIFE92ka4hATo.js → D5wI7O_L6QVNXj5I.js} +1 -1
  74. package/assets/{BpgPKKZwxXklRyo7.js → DCHjwIx59QhiV2Zx.js} +2 -2
  75. package/assets/{DdrsYdX3bLixdb_9.js → DH7Rur7rNOYzv35r.js} +1 -1
  76. package/assets/{C3Wibs7QGFZ1FI7W.js → DI_SAQ7hesioI9TW.js} +1 -1
  77. package/assets/{Cl98sBOj9GM2XnFe.js → DKnwIboAj_Sg9aVP.js} +2 -2
  78. package/assets/{CL1-ziDI0aAaVbhJ.js → DL3ms6Hf2uEGaMgH.js} +2 -2
  79. package/assets/{DLhlBqwsDnmscAuL.js → DMGq2icilGiyfBTM.js} +1 -1
  80. package/assets/{CZepo1lDTQp1myg6.js → DMnhlFBJ2AlVx2_t.js} +1 -1
  81. package/assets/{5B_tapYOcjOv1wGO.js → DN4zv4AjDxTsLFsA.js} +10945 -8959
  82. package/assets/{DBANZf_eAzaCFdIj.js → DP-FzazhSKAvylUa.js} +1135 -1070
  83. package/assets/{C2dG4GHThf9O-IJy.js → DSDlxGN059KmkCxT.js} +1 -1
  84. package/assets/{D1g6IOzdvInVLV-x.js → DWK-OKV0MErx-IrU.js} +6 -6
  85. package/assets/{DKRa_Oc4XqB3DABB.js → DY1x1ZN7ZyE4OR1-.js} +8 -8
  86. package/assets/{iULnLPcNKVpz00r7.js → DafqFM-FGeZJ_fzg.js} +1 -1
  87. package/assets/{QVWayvB03YMyTKt3.js → DbwDQlhCuGoasVUz.js} +2 -2
  88. package/assets/{CDqG64rXHp9-2tXr.js → DcjJ_zTfdh6RqmVZ.js} +1 -1
  89. package/assets/{BBPjYcS8XKQREith.js → Del35nO_1HyjItI0.js} +46 -46
  90. package/assets/{C_0RM0w6Pw70Bx_Y.js → Dh2iae-q0IngEeyH.js} +1 -1
  91. package/assets/{CG8zvnxueimOY7wm.js → Dhg0yeTmVfmRV5rK.js} +1 -1
  92. package/assets/{rfwqMukKbJBeJBuC.js → DjoFujVwGRAxviCF.js} +2 -2
  93. package/assets/{Dg4JXbd1yPGNZOtL.js → DlWRvc1pLGPCRMwi.js} +1 -1
  94. package/assets/{B2YEEPHIkNcezk9T.js → DmCRCUmmkoRNCS9J.js} +2 -2
  95. package/assets/{DBMZF6PRHCko9K9R.js → DmUCKxOYIBM6DX64.js} +1 -1
  96. package/assets/{B_nQLUWaxp-Q1IfV.js → Du9_Ajy9KvnwHApK.js} +2 -2
  97. package/assets/{DOZ40EyxD3m0gCos.js → DwOPJ5TXttTx69oF.js} +343 -342
  98. package/assets/{CvJkwRgwm80S2bcd.js → DzEJwSC-_aavYiFd.js} +1 -1
  99. package/assets/{Gqh12ggLm5KlvN3v.js → EDEUvF-L72a6fMCK.js} +1 -1
  100. package/assets/{BIUUGUhypimIDg2a.js → F0HGXXl9AizCAcFy.js} +1 -1
  101. package/assets/{9MXt8KXdWlbEJNc2.js → Iv_Zbm3pMLOK2uxf.js} +1 -1
  102. package/assets/LLdkCOYvtc1-vOsy.js +14 -0
  103. package/assets/{DTLbKr_XIJMwQJmk.js → MfkAFluI0ZyU0UDV.js} +15 -15
  104. package/assets/{D-irgQZ2WmkP9dnK.js → NZeFs1MV5h-uMZqJ.js} +1 -1
  105. package/assets/{CFdJvXLSbUrvNera.js → Rpi4k7hMH8wPAIcB.js} +14 -14
  106. package/assets/{DQcus4X_kTKIIyX6.js → SCOKwiDu6SYiQrQ0.js} +1 -1
  107. package/assets/{Bdt9nQs8gDIzu_IG.js → VL-vwx7Pyw1zqIx9.js} +1 -1
  108. package/assets/{DfWWAHOjmhqvN3m_.js → VcmpHRbBIrw6av3U.js} +1303 -1276
  109. package/assets/{Dp-dLoOaBndV2N5i.js → XDQBri0_cS5paHej.js} +2 -2
  110. package/assets/{BYqyNLuwXl7GKuzh.js → gAg9rL3U8fWUDeEb.js} +21 -21
  111. package/assets/{DvFwVzuc5YfagNnH.js → hLMlKg3lU36xZ6G6.js} +1 -1
  112. package/assets/{BjDsx_FHl0mShqHX.js → hvCnPO_Fu7Nqz0rs.js} +1 -1
  113. package/assets/{JC8UUcu6m23qqrr3.js → nPoObUd0MvWI-j0F.js} +1 -1
  114. package/assets/{SaCo3me4_hw2b1L4.js → nnqtgWxMIc_Nc-IP.js} +556 -556
  115. package/assets/{DzkccbbE6iXMqQDO.js → o9G5KuG1VkSazTvI.js} +367 -367
  116. package/assets/{YXC__Myl-BuIFW6s.js → pg7E7B7ouG2qdZve.js} +1 -1
  117. package/assets/{D3bxrF1Ys2GSVfQH.js → r9WSFw3a-_a5hlPm.js} +1 -1
  118. package/assets/{CBPkPTmeaEokFPSI.js → rIReGgfQ90pzLAbU.js} +1 -1
  119. package/assets/{nDmE2I07HvkpRdR0.js → vXZw1AmMzswOZMiP.js} +1 -1
  120. package/assets/{nmB0nnkFQf5NWo0i.js → wZ-GQhOhikv-_3iQ.js} +2 -2
  121. package/assets/{Dy67BUF2yd8VRPwL.js → yBFl0kPv-nwFtG4Z.js} +1 -1
  122. package/index.js +1112 -1041
  123. package/lib.js +1 -1
  124. package/licenses/dependencies.txt +35 -35
  125. package/package.json +2 -2
  126. package/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
  127. package/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
  128. package/screenshot-page/assets/2XWoSsrRz2kognCK.js +1 -0
  129. package/screenshot-page/assets/{rOzyaU7hqchMbhRL.js → 5TxlmdZxlCDkawVW.js} +1 -1
  130. package/screenshot-page/assets/{Bir0SSOHX0w2yo8h.js → B7u12-Sf0HF7g4wI.js} +1 -1
  131. package/screenshot-page/assets/BCOjWc-VhkuVoCVf.js +1 -0
  132. package/screenshot-page/assets/BqQ2A9WL6mcRxbSt.js +2 -0
  133. package/screenshot-page/assets/Bw4kRw8JKyNRlLE2.js +1 -0
  134. package/screenshot-page/assets/{UKFgEuwI1UMhPqKF.js → BwF-LAYFu91KqvJ8.js} +2 -2
  135. package/screenshot-page/assets/{D_rtIYQ7FDC2CoEn.js → Bwk0ScujWaYYqx5G.js} +1 -1
  136. package/screenshot-page/assets/ByehV0cOs5aIySS-.js +13 -0
  137. package/screenshot-page/assets/{BIrVK5hdDCUYmxGO.js → C0F9BL11dkgzjp7Y.js} +1 -1
  138. package/screenshot-page/assets/{Dq7wGcTrNIshovlT.js → C1lrvl0Ad1-NjWKG.js} +2 -2
  139. package/screenshot-page/assets/{CQFj5AGXfIA9z9zI.js → C3KvRJ_eXd6xnmlO.js} +1 -1
  140. package/screenshot-page/assets/C3QIYFX-vF_1DVmi.js +586 -0
  141. package/screenshot-page/assets/C6vseMcEu3To1U6k.js +4 -0
  142. package/screenshot-page/assets/CM9cBiCjJIY64PWg.js +1 -0
  143. package/screenshot-page/assets/{BJ2r2WfEL3SgkBAX.js → CNFMt4XhKy4tlsUn.js} +1 -1
  144. package/screenshot-page/assets/COpZTXe_J1mSpeYD.js +5 -0
  145. package/screenshot-page/assets/{BMwQInar0xVS5FRu.js → CafJ2T5GCjkumgLh.js} +1 -1
  146. package/screenshot-page/assets/CaiPDssAQqXac5AG.js +3 -0
  147. package/screenshot-page/assets/Cfs_rQCXBMVhJgat.js +1 -0
  148. package/screenshot-page/assets/CijzqW2bsxOQdDxl.js +2 -0
  149. package/screenshot-page/assets/{BU5S8KEzPmIA_Flm.js → CpZHZoz3xpJMDWI0.js} +1 -1
  150. package/screenshot-page/assets/{CguXw0IcKNPbmAbj.js → Csjis_Fk8q4mSqdp.js} +2 -2
  151. package/screenshot-page/assets/{DDkL9PZPXAggW2Yr.js → D1TqM0Bt65K6svMS.js} +19 -19
  152. package/screenshot-page/assets/D5kEl0N4l6MzdmTG.js +1 -0
  153. package/screenshot-page/assets/{B8qybUclSjEYP5FJ.js → D6WTzLygjgK85siu.js} +2 -2
  154. package/screenshot-page/assets/D7e00cCBTtcIRmjV.js +1 -0
  155. package/screenshot-page/assets/{-N4OYIMgf6f5vgNy.js → DGB9wBuDWt0bzTNE.js} +1 -1
  156. package/screenshot-page/assets/{CfkssmHURDicfYvR.js → DNoZea7QMO9zB6D5.js} +1 -1
  157. package/screenshot-page/assets/DZ2zDgzt-mnhg3Kd.js +1 -0
  158. package/screenshot-page/assets/DaVBDkeZxbXnuyGz.js +42 -0
  159. package/screenshot-page/assets/DgNbqKuVd-Q170VZ.js +2 -0
  160. package/screenshot-page/assets/{C71ZZMVLfHdPl441.js → Di8Yn8O-rD9idC2h.js} +1 -1
  161. package/screenshot-page/assets/DjtXY9uxB3QP6hU3.js +1 -0
  162. package/screenshot-page/assets/DknSteOdQ6CdF0RT.js +1 -0
  163. package/screenshot-page/assets/Dv-4mfeFKIoD5jaY.js +3 -0
  164. package/screenshot-page/assets/DzlbsQ0qqdQEl80f.js +1 -0
  165. package/screenshot-page/assets/F6yLCIlSWZ1lAUEp.js +2 -0
  166. package/screenshot-page/assets/HZAIE0lHXXFqlb2v.js +1 -0
  167. package/screenshot-page/assets/Lr2MYBmoCKMLBl_6.js +5 -0
  168. package/screenshot-page/assets/{CZa1rha3RnQUWyOk.js → NDzpWLUA0pbyI-Rd.js} +4 -4
  169. package/screenshot-page/assets/O-S3tcMip6iXUjQF.js +1 -0
  170. package/screenshot-page/assets/eV_6j-vFozPgfcjz.js +1 -0
  171. package/screenshot-page/assets/{CqyMYduWKFvmMs_Z.js → iAWaCU0XkY0ktnNk.js} +1 -1
  172. package/screenshot-page/assets/it1wnIFQtbJ4Dm8N.js +1 -0
  173. package/screenshot-page/assets/mCyh2440vZi8s1uY.js +39 -0
  174. package/screenshot-page/assets/{CRsTnamLrPN5-Dsi.js → t4FRkJl27a0itCt6.js} +1 -1
  175. package/screenshot-page/assets/{lgeNUp9cU20IAotv.js → tPEJNcr51GaPfk3O.js} +1 -1
  176. package/screenshot-page/assets/zEVoxCTt-ZW8Aowg.js +16 -0
  177. package/screenshot-page/index.html +10 -9
  178. package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
  179. package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
  180. package/types/scripting-api.json +11445 -11299
  181. package/types/scripting-enums.json +22 -1
  182. package/types/scripting.d.ts +623 -0
  183. package/assets/DsTi7zHk_Xl37bAD.js +0 -14
  184. package/screenshot-page/assets/B7eQ3rE-7Vayb_4O.js +0 -2
  185. package/screenshot-page/assets/B8i4Sr2kMQAXp0rb.js +0 -4
  186. package/screenshot-page/assets/BIHbD4jMsk3NetOd.js +0 -1
  187. package/screenshot-page/assets/BJviQwDXR5L6l1DA.js +0 -1
  188. package/screenshot-page/assets/BM78thqEW6HwXFAK.js +0 -13
  189. package/screenshot-page/assets/C2H2lX8eyKpxpP6M.js +0 -2
  190. package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +0 -1
  191. package/screenshot-page/assets/CN8u05DjKwNHbUHN.js +0 -5
  192. package/screenshot-page/assets/CYfkL98Zu43S8-50.js +0 -42
  193. package/screenshot-page/assets/ClzJdxlUDDtBYjH8.js +0 -1
  194. package/screenshot-page/assets/CzsoLbEIUVK5ia1C.js +0 -1
  195. package/screenshot-page/assets/D2IHCJ1QWDKwmhge.js +0 -1
  196. package/screenshot-page/assets/D7biuwkvm3zAwsBa.js +0 -39
  197. package/screenshot-page/assets/D8s3sJnhFxbI3Dqn.js +0 -1
  198. package/screenshot-page/assets/DLFFFQjTi5Ji1940.js +0 -1
  199. package/screenshot-page/assets/DMxrNtfw275en7pm.js +0 -1
  200. package/screenshot-page/assets/DRncpwDkZZX8rL9S.js +0 -20
  201. package/screenshot-page/assets/D_kJ3WunvjIINcHC.js +0 -1
  202. package/screenshot-page/assets/Db6bZVJ-184DJIoe.js +0 -2
  203. package/screenshot-page/assets/DhB6GjSJIeTmIODk.js +0 -1
  204. package/screenshot-page/assets/Dn5PwRw7rrTKNnql.js +0 -586
  205. package/screenshot-page/assets/DyiVrm8mEnEaoZHa.js +0 -3
  206. package/screenshot-page/assets/LYyM_ig973jLdOU0.js +0 -2
  207. package/screenshot-page/assets/TilS2JSBGVkd1za3.js +0 -3
  208. package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +0 -1
  209. package/screenshot-page/assets/cTMKPkmZF8FWQaMn.js +0 -1
  210. package/screenshot-page/assets/hlxJ87-H830aSZBQ.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.16
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.18
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 { d as e } from "./D3bxrF1Ys2GSVfQH.js";
8
- import { C as t, Ct as n, Ea as i, Ei as r, Ir as s, Ln as o, P as a, Pa as c, Qn as h, R as l, Tr as u, Vr as d, Wi as p, Wn as f, Xa as m, Z as E, di as T, hi as g, it as O, j as A, jt as R, la as I, lo as _, ri as N, sr as L, t as S, ta as C, ya as y, yn as k, zi as v } from "./5B_tapYOcjOv1wGO.js";
7
+ import { d as e } from "./r9WSFw3a-_a5hlPm.js";
8
+ import { $r as t, Ba as n, Ci as i, Ct as r, Da as s, Fa as o, Gt as a, Hi as c, Kr as h, Ln as l, Ni as u, S as d, Sn as p, W as f, Wn as m, Za as E, Zi as T, Zt as g, bn as O, do as A, gi as R, hr as I, in as _, kn as N, kr as L, or as S, pi as C, si as y, t as k, ya as v } from "./DN4zv4AjDxTsLFsA.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,15 +210,15 @@ 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
- var Q = class {
216
+ var Z = class {
217
217
  walk(e, t = []) {
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);
@@ -246,7 +246,7 @@ var Q = class {
246
246
  this.walk(e, i);
247
247
  }
248
248
  walkAtLeastOneSep(e, t, n) {
249
- const i = Z(e, t, n);
249
+ const i = Q(e, t, n);
250
250
  this.walk(e, i);
251
251
  }
252
252
  walkMany(e, t, n) {
@@ -254,7 +254,7 @@ var Q = class {
254
254
  this.walk(e, i);
255
255
  }
256
256
  walkManySep(e, t, n) {
257
- const i = Z(e, t, n);
257
+ const i = Q(e, t, n);
258
258
  this.walk(e, i);
259
259
  }
260
260
  walkOr(e, t, n) {
@@ -265,14 +265,14 @@ var Q = class {
265
265
  });
266
266
  }
267
267
  };
268
- function Z(e, t, n) {
269
- return [new B({ definition: [new V({ terminalType: e.separator })].concat(e.definition) })].concat(t, n);
268
+ function Q(e, 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;
@@ -288,7 +288,7 @@ function J(e) {
288
288
  }(e);
289
289
  throw Error("non exhaustive match");
290
290
  }
291
- var ee = "_~IN~_", te = class extends Q {
291
+ var ee = "_~IN~_", te = class extends Z {
292
292
  constructor(e) {
293
293
  super(), this.topProd = e, this.follows = {};
294
294
  }
@@ -1277,7 +1277,7 @@ function ve(e, t) {
1277
1277
  return {
1278
1278
  errors: t.map((e) => ({
1279
1279
  message: "Token Type: ->" + e.name + "<- missing static 'PATTERN' property",
1280
- type: Ze.MISSING_PATTERN,
1280
+ type: Qe.MISSING_PATTERN,
1281
1281
  tokenTypes: [e]
1282
1282
  })),
1283
1283
  valid: e.filter((e) => !t.includes(e))
@@ -1292,7 +1292,7 @@ function ve(e, t) {
1292
1292
  return {
1293
1293
  errors: t.map((e) => ({
1294
1294
  message: "Token Type: ->" + e.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",
1295
- type: Ze.INVALID_PATTERN,
1295
+ type: Qe.INVALID_PATTERN,
1296
1296
  tokenTypes: [e]
1297
1297
  })),
1298
1298
  valid: e.filter((e) => !t.includes(e))
@@ -1320,7 +1320,7 @@ function ve(e, t) {
1320
1320
  }
1321
1321
  }).map((e) => ({
1322
1322
  message: "Unexpected RegExp Anchor Error:\n Token Type: ->" + e.name + "<- static 'PATTERN' cannot contain end of input anchor '$'\n See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",
1323
- type: Ze.EOI_ANCHOR_FOUND,
1323
+ type: Qe.EOI_ANCHOR_FOUND,
1324
1324
  tokenTypes: [e]
1325
1325
  }));
1326
1326
  }(n)), t = t.concat(function(e) {
@@ -1342,7 +1342,7 @@ function ve(e, t) {
1342
1342
  }
1343
1343
  }).map((e) => ({
1344
1344
  message: "Unexpected RegExp Anchor Error:\n Token Type: ->" + e.name + "<- static 'PATTERN' cannot contain start of input anchor '^'\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",
1345
- type: Ze.SOI_ANCHOR_FOUND,
1345
+ type: Qe.SOI_ANCHOR_FOUND,
1346
1346
  tokenTypes: [e]
1347
1347
  }));
1348
1348
  }(n)), t = t.concat(function(e) {
@@ -1351,7 +1351,7 @@ function ve(e, t) {
1351
1351
  return t instanceof RegExp && (t.multiline || t.global);
1352
1352
  }).map((e) => ({
1353
1353
  message: "Token Type: ->" + e.name + "<- static 'PATTERN' may NOT contain global('g') or multiline('m')",
1354
- type: Ze.UNSUPPORTED_FLAGS_FOUND,
1354
+ type: Qe.UNSUPPORTED_FLAGS_FOUND,
1355
1355
  tokenTypes: [e]
1356
1356
  }));
1357
1357
  }(n)), t = t.concat(function(e) {
@@ -1361,14 +1361,14 @@ function ve(e, t) {
1361
1361
  const t = e.map((e) => e.name);
1362
1362
  return {
1363
1363
  message: `The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,
1364
- type: Ze.DUPLICATE_PATTERNS_FOUND,
1364
+ type: Qe.DUPLICATE_PATTERNS_FOUND,
1365
1365
  tokenTypes: e
1366
1366
  };
1367
1367
  });
1368
1368
  }(n)), t = t.concat(function(e) {
1369
1369
  return e.filter((e) => e.PATTERN.test("")).map((e) => ({
1370
1370
  message: "Token Type: ->" + e.name + "<- static 'PATTERN' must not match an empty string",
1371
- type: Ze.EMPTY_MATCH_PATTERN,
1371
+ type: Qe.EMPTY_MATCH_PATTERN,
1372
1372
  tokenTypes: [e]
1373
1373
  }));
1374
1374
  }(n)), t;
@@ -1379,13 +1379,13 @@ function ve(e, t) {
1379
1379
  return t !== tt.SKIPPED && t !== tt.NA && !("string" == typeof t);
1380
1380
  }).map((e) => ({
1381
1381
  message: "Token Type: ->" + e.name + "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",
1382
- type: Ze.INVALID_GROUP_TYPE_FOUND,
1382
+ type: Qe.INVALID_GROUP_TYPE_FOUND,
1383
1383
  tokenTypes: [e]
1384
1384
  }));
1385
1385
  }(s)), n = n.concat(function(e, t) {
1386
1386
  return e.filter((e) => void 0 !== e.PUSH_MODE && !t.includes(e.PUSH_MODE)).map((e) => ({
1387
1387
  message: `Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,
1388
- type: Ze.PUSH_MODE_DOES_NOT_EXIST,
1388
+ type: Qe.PUSH_MODE_DOES_NOT_EXIST,
1389
1389
  tokenTypes: [e]
1390
1390
  }));
1391
1391
  }(s, t)), n = n.concat(function(e) {
@@ -1432,7 +1432,7 @@ function ve(e, t) {
1432
1432
  const n = `Token: ->${s.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
1433
1433
  t.push({
1434
1434
  message: n,
1435
- type: Ze.UNREACHABLE_PATTERN,
1435
+ type: Qe.UNREACHABLE_PATTERN,
1436
1436
  tokenTypes: [e, s]
1437
1437
  });
1438
1438
  }
@@ -1476,19 +1476,19 @@ function Fe(e, t) {
1476
1476
  Se(t, e.PATTERN);
1477
1477
  } catch (e) {
1478
1478
  return {
1479
- issue: Ze.IDENTIFY_TERMINATOR,
1479
+ issue: Qe.IDENTIFY_TERMINATOR,
1480
1480
  errMsg: e.message
1481
1481
  };
1482
1482
  }
1483
1483
  return !1;
1484
1484
  }
1485
1485
  if ("string" == typeof e.PATTERN) return !1;
1486
- if (be(e)) return { issue: Ze.CUSTOM_LINE_BREAK };
1486
+ if (be(e)) return { issue: Qe.CUSTOM_LINE_BREAK };
1487
1487
  throw Error("non exhaustive match");
1488
1488
  }
1489
1489
  function De(e, t) {
1490
- if (t.issue === Ze.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;
1491
- if (t.issue === Ze.CUSTOM_LINE_BREAK) return `Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;
1490
+ if (t.issue === Qe.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;
1491
+ if (t.issue === Qe.CUSTOM_LINE_BREAK) return `Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;
1492
1492
  throw Error("non exhaustive match");
1493
1493
  }
1494
1494
  function Be(e) {
@@ -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) => {
@@ -1554,16 +1554,16 @@ function Xe(e) {
1554
1554
  function qe(e) {
1555
1555
  return Object.hasOwn(null != e ? e : {}, "CATEGORIES");
1556
1556
  }
1557
- function Qe(e) {
1557
+ function Ze(e) {
1558
1558
  return Object.hasOwn(null != e ? e : {}, "tokenTypeIdx");
1559
1559
  }
1560
- var Ze, Je = {
1560
+ var Qe, Je = {
1561
1561
  buildUnableToPopLexerModeMessage: (e) => `Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,
1562
1562
  buildUnexpectedCharactersMessage: (e, t, n, i, r, s) => `unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`
1563
1563
  };
1564
1564
  (function(e) {
1565
1565
  e[e.MISSING_PATTERN = 0] = "MISSING_PATTERN", e[e.INVALID_PATTERN = 1] = "INVALID_PATTERN", e[e.EOI_ANCHOR_FOUND = 2] = "EOI_ANCHOR_FOUND", e[e.UNSUPPORTED_FLAGS_FOUND = 3] = "UNSUPPORTED_FLAGS_FOUND", e[e.DUPLICATE_PATTERNS_FOUND = 4] = "DUPLICATE_PATTERNS_FOUND", e[e.INVALID_GROUP_TYPE_FOUND = 5] = "INVALID_GROUP_TYPE_FOUND", e[e.PUSH_MODE_DOES_NOT_EXIST = 6] = "PUSH_MODE_DOES_NOT_EXIST", e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE = 7] = "MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE", e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY = 8] = "MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY", e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST = 9] = "MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST", e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED = 10] = "LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED", e[e.SOI_ANCHOR_FOUND = 11] = "SOI_ANCHOR_FOUND", e[e.EMPTY_MATCH_PATTERN = 12] = "EMPTY_MATCH_PATTERN", e[e.NO_LINE_BREAKS_FLAGS = 13] = "NO_LINE_BREAKS_FLAGS", e[e.UNREACHABLE_PATTERN = 14] = "UNREACHABLE_PATTERN", e[e.IDENTIFY_TERMINATOR = 15] = "IDENTIFY_TERMINATOR", e[e.CUSTOM_LINE_BREAK = 16] = "CUSTOM_LINE_BREAK", e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE = 17] = "MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";
1566
- })(Ze || (Ze = {}));
1566
+ })(Qe || (Qe = {}));
1567
1567
  var et = {
1568
1568
  deferDefinitionErrorsHandling: !1,
1569
1569
  positionTracking: "full",
@@ -1606,23 +1606,23 @@ var tt = class {
1606
1606
  const t = [];
1607
1607
  return Object.hasOwn(e, "defaultMode") || t.push({
1608
1608
  message: "A MultiMode Lexer cannot be initialized without a <defaultMode> property in its definition\n",
1609
- type: Ze.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE
1609
+ type: Qe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE
1610
1610
  }), Object.hasOwn(e, "modes") || t.push({
1611
1611
  message: "A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",
1612
- type: Ze.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY
1612
+ type: Qe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY
1613
1613
  }), Object.hasOwn(e, "modes") && Object.hasOwn(e, "defaultMode") && !Object.hasOwn(e.modes, e.defaultMode) && t.push({
1614
1614
  message: `A MultiMode Lexer cannot be initialized with a ${ye}: <${e.defaultMode}>which does not exist\n`,
1615
- type: Ze.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST
1615
+ type: Qe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST
1616
1616
  }), Object.hasOwn(e, "modes") && Object.keys(e.modes).forEach((n) => {
1617
1617
  const i = e.modes[n];
1618
1618
  i.forEach((e, r) => {
1619
1619
  void 0 === e ? t.push({
1620
1620
  message: `A Lexer cannot be initialized using an undefined Token Type. Mode:<${n}> at index: <${r}>\n`,
1621
- type: Ze.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
1621
+ type: Qe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
1622
1622
  }) : Object.hasOwn(e, "LONGER_ALT") && (Array.isArray(e.LONGER_ALT) ? e.LONGER_ALT : [e.LONGER_ALT]).forEach((r) => {
1623
1623
  void 0 === r || i.includes(r) || t.push({
1624
1624
  message: `A MultiMode Lexer cannot be initialized with a longer_alt <${r.name}> on token <${e.name}> outside of mode <${n}>\n`,
1625
- type: Ze.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE
1625
+ type: Qe.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE
1626
1626
  });
1627
1627
  });
1628
1628
  });
@@ -1645,7 +1645,7 @@ var tt = class {
1645
1645
  } else Object.hasOwn(e, "LINE_BREAKS") ? !0 === e.LINE_BREAKS && (r = !0) : Se(o, e.PATTERN) && (r = !0);
1646
1646
  }), t && !r && i.push({
1647
1647
  message: "Warning: No LINE_BREAKS Found.\n This Lexer has been defined to track line and column information,\n But none of the Token Types can be identified as matching a line terminator.\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n for details.",
1648
- type: Ze.NO_LINE_BREAKS_FLAGS
1648
+ type: Qe.NO_LINE_BREAKS_FLAGS
1649
1649
  }), i;
1650
1650
  }(n, this.trackStartLines, this.config.lineTerminatorCharacters));
1651
1651
  })), n.modes = n.modes ? n.modes : {}, Object.entries(n.modes).forEach(([e, t]) => {
@@ -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;
@@ -2002,7 +2002,7 @@ var Ot, At = class extends z {
2002
2002
  });
2003
2003
  }
2004
2004
  }
2005
- }, Rt = class extends Q {
2005
+ }, Rt = class extends Z {
2006
2006
  constructor(e, t) {
2007
2007
  super(), this.topProd = e, this.path = t, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1;
2008
2008
  }
@@ -2032,7 +2032,7 @@ var Ot, At = class extends z {
2032
2032
  this.possibleTokTypes = J(i), this.found = !0;
2033
2033
  }
2034
2034
  }
2035
- }, _t = class extends Q {
2035
+ }, _t = class extends Z {
2036
2036
  constructor(e, t) {
2037
2037
  super(), this.topRule = e, this.occurrence = t, this.result = {
2038
2038
  token: void 0,
@@ -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
  }
@@ -2191,7 +2191,7 @@ function Pt(e, t, n) {
2191
2191
  (function(e) {
2192
2192
  e[e.OPTION = 0] = "OPTION", e[e.REPETITION = 1] = "REPETITION", e[e.REPETITION_MANDATORY = 2] = "REPETITION_MANDATORY", e[e.REPETITION_MANDATORY_WITH_SEPARATOR = 3] = "REPETITION_MANDATORY_WITH_SEPARATOR", e[e.REPETITION_WITH_SEPARATOR = 4] = "REPETITION_WITH_SEPARATOR", e[e.ALTERNATION = 5] = "ALTERNATION";
2193
2193
  })(Ot || (Ot = {}));
2194
- var Mt = class extends Q {
2194
+ var Mt = class extends Z {
2195
2195
  constructor(e, t, n) {
2196
2196
  super(), this.topProd = e, this.targetOccurrence = t, this.targetProdType = n;
2197
2197
  }
@@ -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,
@@ -2636,7 +2636,7 @@ function qt(e, t) {
2636
2636
  alternative: r + 1
2637
2637
  }] : []));
2638
2638
  }
2639
- function Qt(e, t, n) {
2639
+ function Zt(e, t, n) {
2640
2640
  const i = new Xt();
2641
2641
  e.accept(i);
2642
2642
  let r = i.alternations;
@@ -2703,7 +2703,7 @@ function Qt(e, t, n) {
2703
2703
  return a.concat(c);
2704
2704
  });
2705
2705
  }
2706
- var Zt = class extends z {
2706
+ var Qt = class extends z {
2707
2707
  constructor() {
2708
2708
  super(...arguments), this.allProductions = [];
2709
2709
  }
@@ -2801,13 +2801,13 @@ var mn = 1024, En = 1280, Tn = 1536, gn = class {
2801
2801
  return e.flatMap((e) => qt(e, gt));
2802
2802
  }
2803
2803
  validateAmbiguousAlternationAlternatives(e, t) {
2804
- return e.flatMap((e) => Qt(e, t, gt));
2804
+ return e.flatMap((e) => Zt(e, t, gt));
2805
2805
  }
2806
2806
  validateSomeNonEmptyLookaheadPath(e, t) {
2807
2807
  return function(e, t, n) {
2808
2808
  const i = [];
2809
2809
  return e.forEach((e) => {
2810
- const r = new Zt();
2810
+ const r = new Qt();
2811
2811
  e.accept(r), r.allProductions.forEach((r) => {
2812
2812
  const s = vt(r), o = r.maxLookahead || t;
2813
2813
  if (0 === $t(r.idx, e, s, o)[0].flat().length) {
@@ -3398,7 +3398,7 @@ $n.DEFER_DEFINITION_ERRORS_HANDLING = !1, Bn = $n, [
3398
3398
  if ("number" == typeof e[0].startOffset) throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.");
3399
3399
  }
3400
3400
  if (Array.isArray(e)) this.tokensMap = e.reduce((e, t) => (e[t.name] = t, e), {});
3401
- else if (Object.hasOwn(e, "modes") && Object.values(e.modes).flat().every(Qe)) {
3401
+ else if (Object.hasOwn(e, "modes") && Object.values(e.modes).flat().every(Ze)) {
3402
3402
  const t = Object.values(e.modes).flat(), n = [...new Set(t)];
3403
3403
  this.tokensMap = n.reduce((e, t) => (e[t.name] = t, e), {});
3404
3404
  } else {
@@ -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 ?? u, 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 ?? O, 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,7 +4199,7 @@ 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 ?? u;
4202
+ const t = e?.maxColumn ?? Vn, n = e?.maxRow ?? Yn, i = e?.locale ?? O;
4203
4203
  this._locale = i, this._maxColumn = t, this._maxRow = n;
4204
4204
  const { separatorFunction: r, separatorColumn: s, separatorRow: o, separatorDecimal: a } = i.separators;
4205
4205
  if (s === o) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${s}')`);
@@ -4213,20 +4213,20 @@ var jn = class extends $n {
4213
4213
  }), l = pt({
4214
4214
  name: "FunctionToken",
4215
4215
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
4216
- }), d = pt({
4216
+ }), u = pt({
4217
4217
  name: "TableReference",
4218
- pattern: { exec: C },
4218
+ pattern: { exec: m },
4219
4219
  line_breaks: !1,
4220
4220
  start_chars_hint: Wn
4221
- }), p = pt({
4221
+ }), d = pt({
4222
4222
  name: "BracketedString",
4223
- pattern: { exec: f },
4223
+ pattern: { exec: A },
4224
4224
  line_breaks: !1,
4225
4225
  start_chars_hint: [91],
4226
- longer_alt: [d, h]
4227
- }), m = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), E = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), T = pt({
4226
+ longer_alt: [u, h]
4227
+ }), p = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), f = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), E = pt({
4228
4228
  name: "LiteralError",
4229
- pattern: new RegExp(m(i.errorLiterals) + [
4229
+ pattern: new RegExp(p(i.errorLiterals) + [
4230
4230
  "#PARSE!",
4231
4231
  "#NULL!",
4232
4232
  "#DIV\\/0!",
@@ -4243,24 +4243,24 @@ var jn = class extends $n {
4243
4243
  "#BUSY!",
4244
4244
  "#PYTHON!",
4245
4245
  "#TIMEOUT!"
4246
- ].map(E).join("|"))
4247
- }), g = pt({
4246
+ ].map(f).join("|"))
4247
+ }), T = pt({
4248
4248
  name: "RefError",
4249
- pattern: new RegExp(m(i.errorRefs) + ["#REF!", "#NAME\\?"].map(E).join("|"))
4250
- }), O = pt({
4249
+ pattern: new RegExp(p(i.errorRefs) + ["#REF!", "#NAME\\?"].map(f).join("|"))
4250
+ }), g = pt({
4251
4251
  name: "SingleQuotedString",
4252
4252
  pattern: /'(''|[^'])*'/
4253
- }), A = pt({
4253
+ }), R = pt({
4254
4254
  name: "SheetQuoted",
4255
4255
  pattern: /'(?:''|[^'])*?'!/
4256
- }), R = pt({
4256
+ }), I = pt({
4257
4257
  name: "Sheet",
4258
4258
  pattern: /[A-Za-z_.\d\u007F-\uFFFF]*!/
4259
- }), I = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, _ = pt({
4259
+ }), _ = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, N = pt({
4260
4260
  name: "NamedToken",
4261
4261
  pattern: { exec: (e, t) => {
4262
- I.lastIndex = t;
4263
- const n = I.exec(e);
4262
+ _.lastIndex = t;
4263
+ const n = _.exec(e);
4264
4264
  if (!n) return null;
4265
4265
  let i = n[0];
4266
4266
  const r = i.indexOf(".:");
@@ -4268,19 +4268,19 @@ var jn = class extends $n {
4268
4268
  } },
4269
4269
  line_breaks: !1,
4270
4270
  start_chars_hint: Wn
4271
- }), N = pt({
4271
+ }), L = pt({
4272
4272
  name: "Cell",
4273
4273
  pattern: { exec: qn(t, n) },
4274
4274
  line_breaks: !1,
4275
4275
  start_chars_hint: [36, ...Kn],
4276
- longer_alt: _
4277
- }), L = pt({
4276
+ longer_alt: N
4277
+ }), S = pt({
4278
4278
  name: "Column",
4279
4279
  pattern: { exec: Xn(t) },
4280
4280
  line_breaks: !1,
4281
4281
  start_chars_hint: [36, ...Kn],
4282
- longer_alt: _
4283
- }), S = pt({
4282
+ longer_alt: N
4283
+ }), C = pt({
4284
4284
  name: "AbsRow",
4285
4285
  pattern: /[$][0-9]+/
4286
4286
  }), y = "." === a ? "\\." : a, k = 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(r)
4305
+ pattern: Zn(r)
4306
4306
  }), U = pt({
4307
4307
  name: "ColSeparator",
4308
- pattern: Qn(s)
4308
+ pattern: Zn(s)
4309
4309
  }), w = pt({
4310
4310
  name: "RowSeparator",
4311
- pattern: Qn(o)
4311
+ pattern: Zn(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({
@@ -4351,10 +4351,10 @@ var jn = class extends $n {
4351
4351
  }), q = pt({
4352
4352
  name: "ImplicitIntersectOp",
4353
4353
  pattern: /@/
4354
- }), Q = pt({
4354
+ }), Z = pt({
4355
4355
  name: "ConcatOp",
4356
4356
  pattern: /&/
4357
- }), Z = pt({
4357
+ }), Q = pt({
4358
4358
  name: "ExOp",
4359
4359
  pattern: /\^/
4360
4360
  }), J = pt({
@@ -4363,7 +4363,7 @@ var jn = class extends $n {
4363
4363
  }), ee = pt({
4364
4364
  name: "ArrayAnchorOp",
4365
4365
  pattern: /#/,
4366
- longer_alt: [T, g]
4366
+ longer_alt: [E, T]
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
  c,
4378
4378
  h,
4379
- A,
4380
- O,
4381
4379
  R,
4380
+ g,
4381
+ I,
4382
4382
  l,
4383
+ u,
4383
4384
  d,
4384
- p,
4385
+ E,
4385
4386
  T,
4386
- g,
4387
4387
  b,
4388
4388
  ...s !== r ? [U] : [],
4389
4389
  w,
@@ -4391,27 +4391,27 @@ var jn = class extends $n {
4391
4391
  B,
4392
4392
  $,
4393
4393
  F,
4394
- N,
4395
- M,
4396
4394
  L,
4395
+ M,
4397
4396
  S,
4397
+ C,
4398
4398
  k,
4399
4399
  v,
4400
4400
  x,
4401
4401
  ee,
4402
4402
  q,
4403
- _,
4403
+ N,
4404
4404
  j,
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,
4413
- Q,
4414
4413
  Z,
4414
+ Q,
4415
4415
  J,
4416
4416
  pt({
4417
4417
  name: "NeqOp",
@@ -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++) {
@@ -4529,13 +4529,13 @@ function qn(e, t) {
4529
4529
  return a < 1 || a > t ? null : [n.substring(i, r)];
4530
4530
  };
4531
4531
  }
4532
- function Qn(e) {
4532
+ function Zn(e) {
4533
4533
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4534
4534
  }
4535
- var Zn = class {
4536
- constructor(e = u) {
4535
+ var Qn = class {
4536
+ constructor(e = O) {
4537
4537
  const t = function(e) {
4538
- const t = [...O];
4538
+ const t = [..._];
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);
@@ -4582,53 +4582,53 @@ var Zn = class {
4582
4582
  return this._lexer.tokenize(e);
4583
4583
  }
4584
4584
  }, Jn = class extends jn {
4585
- constructor(e = u) {
4586
- const t = new Zn(e), n = t.getVocabulary();
4585
+ constructor(e = O) {
4586
+ const t = new Qn(e), n = t.getVocabulary();
4587
4587
  super(n, {
4588
4588
  nodeLocationTracking: "none",
4589
4589
  maxLookahead: 2,
4590
4590
  skipValidations: !0,
4591
4591
  recoveryEnabled: !1
4592
4592
  }), this._lexer = t;
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(() => {
4593
+ const { TableSpecifier: i, BracketedColumn: s, 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(() => {
4597
4597
  t && e.push(t);
4598
- }), c.MANY(() => {
4599
- c.CONSUME(a), c.OPTION(() => {
4600
- const t = c.SUBRULE2(c.ruleItem);
4601
- c.ACTION(() => {
4598
+ }), h.MANY(() => {
4599
+ h.CONSUME(c), h.OPTION(() => {
4600
+ const t = h.SUBRULE2(h.ruleItem);
4601
+ h.ACTION(() => {
4602
4602
  t && e.push(t);
4603
4603
  });
4604
4604
  });
4605
4605
  }), 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 = k(t.image, 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 = r(t.image, e);
4610
4610
  return n.image = t.image, n;
4611
4611
  });
4612
4612
  } }, { ALT: () => {
4613
- const t = c.CONSUME(s);
4614
- return c.ACTION(() => {
4615
- const n = k(t.image, e);
4613
+ const t = h.CONSUME(o);
4614
+ return h.ACTION(() => {
4615
+ const n = r(t.image, e);
4616
4616
  return n.image = t.image, n;
4617
4617
  });
4618
- } }])), c.RULE("ruleColumnOrRange", () => {
4619
- const e = c.CONSUME(r);
4618
+ } }])), h.RULE("ruleColumnOrRange", () => {
4619
+ const e = h.CONSUME(s);
4620
4620
  let t, n;
4621
- return c.OPTION(() => {
4622
- t = c.CONSUME(o), n = c.CONSUME2(r);
4623
- }), c.ACTION(() => {
4624
- const i = _(e.image);
4621
+ return h.OPTION(() => {
4622
+ t = h.CONSUME(a), n = h.CONSUME2(s);
4623
+ }), h.ACTION(() => {
4624
+ const i = R(e.image);
4625
4625
  if (i.image = e.image, !n) return i;
4626
- const r = _(n.image);
4626
+ const r = R(n.image);
4627
4627
  r.image = n.image;
4628
- const s = g(":", i, r, !0);
4628
+ const s = S(":", i, r, !0);
4629
4629
  return s.image = t?.image ?? ":", s;
4630
4630
  });
4631
- }), c.performSelfAnalysis();
4631
+ }), h.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 = S("@", null, !0);
4645
+ const e = I("@", 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 = S("@", t[0], !0);
4651
+ const e = I("@", t[0], !0);
4652
4652
  return e.image = "@", [e];
4653
4653
  }
4654
4654
  }
4655
- const n = _(e);
4655
+ const n = R(e);
4656
4656
  n.image = e;
4657
- const i = S("@", n, !0);
4657
+ const i = I("@", n, !0);
4658
4658
  return i.image = "@", [i];
4659
4659
  }
4660
4660
  if ("[" !== n && "#" !== n) {
4661
- const t = _(e);
4661
+ const t = R(e);
4662
4662
  return t.image = e, [t];
4663
4663
  }
4664
4664
  return this._parseInner(t);
@@ -4694,7 +4694,7 @@ var Zn = class {
4694
4694
  ":."
4695
4695
  ]), ni = (e) => {
4696
4696
  if (!e) return null;
4697
- if (e.type === L.Cell) {
4697
+ if (e.type === p.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,7 +4725,7 @@ var ai = {
4725
4725
  }
4726
4726
  }, ci = class extends jn {
4727
4727
  constructor(e) {
4728
- const c = e?.lexer ?? Gn.shared(e?.lexerOptions), l = c.getVocabulary();
4728
+ const r = e?.lexer ?? Gn.shared(e?.lexerOptions), l = r.getVocabulary();
4729
4729
  super(l, {
4730
4730
  skipValidations: !0,
4731
4731
  recoveryEnabled: !0,
@@ -4734,11 +4734,10 @@ 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: n, MulOp: i, DivOp: r, ExOp: s, ConcatOp: o, GtOp: a, EqOp: c, LtOp: h, NeqOp: l, GteOp: u, LteOp: d } = this._vocab, p = [];
4738
+ return p.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
4739
+ const t = this.OR(this._c1 || (this._c1 = [
4740
4740
  { ALT: () => this.CONSUME(e).image },
4741
- { ALT: () => this.CONSUME(t).image },
4742
4741
  { ALT: () => this.CONSUME(n).image },
4743
4742
  { ALT: () => this.CONSUME(i).image },
4744
4743
  { ALT: () => this.CONSUME(r).image },
@@ -4748,32 +4747,33 @@ var ai = {
4748
4747
  { ALT: () => this.CONSUME(c).image },
4749
4748
  { ALT: () => this.CONSUME(h).image },
4750
4749
  { ALT: () => this.CONSUME(l).image },
4751
- { ALT: () => this.CONSUME(u).image }
4750
+ { ALT: () => this.CONSUME(u).image },
4751
+ { ALT: () => this.CONSUME(d).image }
4752
4752
  ])), f = {
4753
- value: p,
4753
+ value: t,
4754
4754
  index: this.getLexerPosition(),
4755
- isRange: A.includes(p)
4755
+ isRange: E.includes(t)
4756
4756
  }, m = this.SUBRULE2(this._rulePostfixOp);
4757
- d.push({
4757
+ p.push({
4758
4758
  op: f,
4759
4759
  node: m
4760
4760
  });
4761
4761
  }), this.ACTION(() => {
4762
- let e = d.length - 1;
4763
- const t = E.length;
4764
- for (let n = 0; e > 0 && n < t; n++) {
4765
- const t = E[n];
4766
- let i = 1;
4767
- for (; i < d.length;) {
4768
- const n = d[i].op;
4769
- if (t.includes(n.value)) {
4770
- const t = d[i - 1].node, r = d[i].node;
4771
- let s = g(n.value, t, r, n.isRange);
4772
- s = this._tag(s, n.index), d[i - 1].node = s, d.splice(i, 1), e--;
4773
- } else i++;
4762
+ let e = p.length - 1;
4763
+ const n = t.length;
4764
+ for (let i = 0; e > 0 && i < n; i++) {
4765
+ const n = t[i];
4766
+ let r = 1;
4767
+ for (; r < p.length;) {
4768
+ const t = p[r].op;
4769
+ if (n.includes(t.value)) {
4770
+ const n = p[r - 1].node, i = p[r].node;
4771
+ let s = S(t.value, n, i, t.isRange);
4772
+ s = this._tag(s, t.index), p[r - 1].node = s, p.splice(r, 1), e--;
4773
+ } else r++;
4774
4774
  }
4775
4775
  }
4776
- }), d[0].node;
4776
+ }), p[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], a = A.includes(r);
4793
- t = o(r, t, a), t = this._tag(t, s);
4792
+ const e = n[i], r = e[0], s = e[1], o = E.includes(r);
4793
+ t = k(r, t, o), 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 = A.includes(n);
4813
- r = S(n, r, o), r = this._tag(r, s);
4812
+ const e = i[t], n = e[0], s = e[1], o = E.includes(n);
4813
+ r = I(n, r, o), r = this._tag(r, s);
4814
4814
  }
4815
4815
  }), r;
4816
4816
  }), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
@@ -4838,22 +4838,22 @@ 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(g(":", 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(S(":", 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(o("#", s[0].node, !0), t.anchor);
4846
+ s[0].node = this._tag(k("#", s[0].node, !0), t.anchor);
4847
4847
  continue;
4848
4848
  }
4849
4849
  const n = t.op;
4850
- let i = g(n.value, s[0].node, t.node, !0);
4850
+ let i = S(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;
4854
4854
  }), this._ruleCallOp = this.RULE("ruleCallOp", () => {
4855
4855
  const { OpenParen: e, CloseParen: t } = this._vocab;
4856
- let i = this.SUBRULE(this._ruleFormula);
4856
+ let n = this.SUBRULE(this._ruleFormula);
4857
4857
  return this.MANY({
4858
4858
  GATE: () => {
4859
4859
  const t = this.LA(0), n = this.LA(1);
@@ -4861,12 +4861,12 @@ var ai = {
4861
4861
  },
4862
4862
  DEF: () => {
4863
4863
  this.CONSUME(e);
4864
- const r = this.getLexerPosition(), s = this.SUBRULE(this._ruleFunctionArguments), o = i, a = this.ACTION(() => this._tag(n(o, s), r)), c = this.OPTION(() => this.CONSUME(t));
4864
+ const i = this.getLexerPosition(), r = this.SUBRULE(this._ruleFunctionArguments), s = n, o = this.ACTION(() => this._tag(N(s, r), i)), a = this.OPTION(() => this.CONSUME(t));
4865
4865
  this.ACTION(() => {
4866
- c || this._reportError(a, "Missing closing parenthesis ')'", r), this._tagClose(a, this.getLexerPosition()), i = a;
4866
+ a || this._reportError(o, "Missing closing parenthesis ')'", i), this._tagClose(o, this.getLexerPosition()), n = o;
4867
4867
  });
4868
4868
  }
4869
- }), i;
4869
+ }), n;
4870
4870
  }), this._ruleIntersectOp = this.RULE("ruleIntersectOp", () => {
4871
4871
  const e = [this.SUBRULE(this._ruleInfixOp)];
4872
4872
  return this.MANY(() => {
@@ -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 = g(" ", i, r, !0), o = this._tokenMap.get(i);
4886
+ const i = e[n], r = e[n + 1], s = S(" ", 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(L.Paren, e, t);
4916
+ return this._processParen(p.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 = I();
4919
+ let r = s();
4920
4920
  this.CONSUME(e);
4921
- const s = this.getLexerPosition();
4922
- let o = this.ACTION(() => this._tag(p(r), s));
4923
- const a = this.SUBRULE(this._ruleLiteralForArray);
4921
+ const o = this.getLexerPosition();
4922
+ let a = this.ACTION(() => this._tag(v(r), o));
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,33 +4930,33 @@ var ai = {
4930
4930
  } }, { ALT: () => this.CONSUME(i) }]);
4931
4931
  const t = this.SUBRULE2(this._ruleLiteralForArray);
4932
4932
  this.ACTION(() => {
4933
- e || (r = I(), o.value.push(r)), r.value.push(t);
4933
+ e || (r = s(), a.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 a = this.ACTION(() => (h || this._reportError(a, "Missing closing parenthesis '}'", o), this._tagClose(a, this.getLexerPosition()))), a;
4938
4938
  }), this._ruleLiteralForArray = this.RULE("ruleLiteralForArray", () => {
4939
4939
  const { StringToken: e, BooleanToken: t, LiteralError: n, RefError: i } = 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(d(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(c(t.image, this._locale), this.getLexerPosition()));
4943
+ return this.ACTION(() => e ? o(e.image, n) : n);
4944
4944
  } },
4945
4945
  { ALT: () => {
4946
4946
  const t = this.CONSUME(e);
4947
- return this.ACTION(() => this._tag(v(t.image), this.getLexerPosition()));
4947
+ return this.ACTION(() => this._tag(T(t.image), this.getLexerPosition()));
4948
4948
  } },
4949
4949
  { ALT: () => {
4950
4950
  const e = this.CONSUME(t);
4951
- return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4951
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
4952
4952
  } },
4953
4953
  { ALT: () => {
4954
4954
  const e = this.CONSUME(n);
4955
- return this.ACTION(() => this._tag(T(e.image, this._locale), this.getLexerPosition()));
4955
+ return this.ACTION(() => this._tag(u(e.image, this._locale), this.getLexerPosition()));
4956
4956
  } },
4957
4957
  { ALT: () => {
4958
4958
  const e = this.CONSUME(i);
4959
- return this.ACTION(() => this._tag(r(e.image, this._locale), this.getLexerPosition()));
4959
+ return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
4960
4960
  } }
4961
4961
  ]);
4962
4962
  }), this._ruleLiteral = this.RULE("ruleLiteral", () => {
@@ -4964,48 +4964,48 @@ var ai = {
4964
4964
  return this.OR([
4965
4965
  { ALT: () => {
4966
4966
  const e = this.SUBRULE(this._ruleNumber);
4967
- return this.ACTION(() => this._tag(d(e.image, this._locale), this.getLexerPosition()));
4967
+ return this.ACTION(() => this._tag(c(e.image, this._locale), this.getLexerPosition()));
4968
4968
  } },
4969
4969
  { ALT: () => {
4970
4970
  const t = this.CONSUME(e);
4971
- return this.ACTION(() => this._tag(v(t.image), this.getLexerPosition()));
4971
+ return this.ACTION(() => this._tag(T(t.image), this.getLexerPosition()));
4972
4972
  } },
4973
4973
  { ALT: () => {
4974
4974
  const e = this.CONSUME(t);
4975
- return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4975
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
4976
4976
  } },
4977
4977
  { ALT: () => {
4978
4978
  const e = this.CONSUME(n);
4979
- return this.ACTION(() => this._tag(T(e.image, this._locale), this.getLexerPosition()));
4979
+ return this.ACTION(() => this._tag(u(e.image, this._locale), this.getLexerPosition()));
4980
4980
  } },
4981
4981
  { ALT: () => {
4982
4982
  const e = this.CONSUME(i);
4983
- return this.ACTION(() => this._tag(r(e.image, this._locale), this.getLexerPosition()));
4983
+ return this.ACTION(() => this._tag(L(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(R(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;
4990
+ let o = this.ACTION(() => this._tag(a(i, s), r));
4991
+ const c = this.OPTION(() => this.CONSUME(n));
4992
+ return o = this.ACTION(() => (c || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()))), o;
4993
4993
  }), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
4994
- const { ArgSeparator: e, CloseParen: t } = this._vocab, n = [];
4994
+ const { ArgSeparator: e, CloseParen: t } = this._vocab, i = [];
4995
4995
  return this.OPTION({
4996
4996
  GATE: () => this.LA(1).tokenType !== t,
4997
4997
  DEF: () => {
4998
4998
  let t;
4999
4999
  this.OPTION2(() => {
5000
5000
  t = this.SUBRULE(this._ruleIntersectOp);
5001
- }), t = this.ACTION(() => t ?? this._tagClose(s(), this.getLexerPosition())), n.push(t), this.MANY(() => {
5001
+ }), t = this.ACTION(() => t ?? this._tagClose(n(), this.getLexerPosition())), i.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(s(), this.getLexerPosition())), n.push(t);
5005
+ }), t = this.ACTION(() => t ?? this._tagClose(n(), this.getLexerPosition())), i.push(t);
5006
5006
  });
5007
5007
  }
5008
- }), n;
5008
+ }), i;
5009
5009
  }), this._ruleBracketedString = this.RULE("ruleBracketedString", () => {
5010
5010
  const { BracketedString: e } = this._vocab, t = this.CONSUME(e), n = this.getLexerPosition();
5011
5011
  return this.ACTION(() => {
@@ -5021,14 +5021,14 @@ 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: s, MulOp: o, PlusOp: c, MinOp: h, ArgSeparator: l, Cell: u, NamedToken: d, SingleQuotedString: p, Column: f, AbsRow: E, DigitToken: T, RefError: g } = this._vocab;
5024
+ const { Sheet: e, SheetQuoted: t, DivOp: n, MulOp: r, PlusOp: s, MinOp: o, ArgSeparator: a, Cell: c, NamedToken: l, SingleQuotedString: u, Column: d, AbsRow: m, DigitToken: E, RefError: T } = this._vocab;
5025
5025
  let O, A;
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 === s || i.tokenType === o || i.tokenType === c || i.tokenType === h || i.tokenType === l) break;
5028
+ for (let i = 1; i < 6; i++) {
5029
+ const c = this.LA(i);
5030
+ if (c.tokenType === e || c.tokenType === t) return !0;
5031
+ if ("" === c.image || ")" === c.image || c.tokenType === n || c.tokenType === r || c.tokenType === s || c.tokenType === o || c.tokenType === a) break;
5032
5032
  }
5033
5033
  return !1;
5034
5034
  },
@@ -5038,37 +5038,37 @@ var ai = {
5038
5038
  });
5039
5039
  let R = this.OR([
5040
5040
  { ALT: () => {
5041
- const e = this.CONSUME(u), n = this.getLexerPosition();
5042
- return this.ACTION(() => this._tag(t(e.image, this.rowIndex, this.colIndex), n));
5041
+ const e = this.CONSUME(c), t = this.getLexerPosition();
5042
+ return this.ACTION(() => this._tag(i(e.image, this.rowIndex, this.colIndex), t));
5043
5043
  } },
5044
5044
  { ALT: () => {
5045
- const e = this.OR2([{ ALT: () => this.CONSUME(d) }, { ALT: () => this.CONSUME(p) }]);
5046
- return this.ACTION(() => this._tag(i(e.image), this.getLexerPosition()));
5045
+ const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(u) }]);
5046
+ return this.ACTION(() => this._tag(h(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(m(e.image, this.colIndex), this.getLexerPosition()));
5051
+ const e = this.CONSUME(d);
5052
+ return this.ACTION(() => this._tag(f(e.image, this.colIndex), this.getLexerPosition()));
5053
5053
  } },
5054
5054
  { ALT: () => {
5055
- const e = this.CONSUME(E);
5056
- return this.ACTION(() => this._tag(a(e.image, this.rowIndex), this.getLexerPosition()));
5055
+ const e = this.CONSUME(m);
5056
+ return this.ACTION(() => this._tag(g(e.image, this.rowIndex), this.getLexerPosition()));
5057
5057
  } },
5058
5058
  { ALT: () => {
5059
- const e = this.CONSUME(T);
5060
- return this.ACTION(() => this._tag(a(e.image, this.rowIndex), this.getLexerPosition()));
5059
+ const e = this.CONSUME(E);
5060
+ return this.ACTION(() => this._tag(g(e.image, this.rowIndex), this.getLexerPosition()));
5061
5061
  } },
5062
5062
  { ALT: () => {
5063
- const e = this.CONSUME(g);
5064
- return this.ACTION(() => this._tag(r(e.image, this._locale), this.getLexerPosition()));
5063
+ const e = this.CONSUME(T);
5064
+ return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
5065
5065
  } }
5066
5066
  ]);
5067
5067
  return this.ACTION(() => {
5068
5068
  if (O && R) {
5069
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
5070
  let e = R;
5071
- if (R.type === L.Postfix && R.inputs?.[0] && (e = R.inputs[0]), e.type === L.Cell || e.type === L.Named || e.type === L.Row || e.type === L.TableColumn || e.type === L.Error) {
5071
+ if (R.type === p.Postfix && R.inputs?.[0] && (e = R.inputs[0]), e.type === p.Cell || e.type === p.Named || e.type === p.Row || e.type === p.TableColumn || e.type === p.Error) {
5072
5072
  e.value.scope = O.name, e.value.scopeImage = O.image;
5073
5073
  const t = this._tokenMap.get(e);
5074
5074
  t && void 0 !== A && (t.tokenIndex = A);
@@ -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: L.List,
5117
+ type: p.List,
5118
5118
  value: ",",
5119
5119
  inputs: [t, ...n],
5120
5120
  isReference: !0
5121
5121
  });
5122
- }), this._lexer = c, this._locale = c.getLocale(), this._vocab = l, this._srParser = e?.srParser ?? new Jn(this._locale), this.performSelfAnalysis();
5122
+ }), this._lexer = r, this._locale = r.getLocale(), this._vocab = l, 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, r) {
5128
- const s = this._lexer.tokenize(r);
5129
- let o;
5130
- if (!s) return {
5127
+ parse(t, n, i) {
5128
+ const r = this._lexer.tokenize(i);
5129
+ let s;
5130
+ if (!r) return {
5131
5131
  root: {
5132
- type: L.Unparsed,
5133
- value: r
5132
+ type: p.Unparsed,
5133
+ value: i
5134
5134
  },
5135
5135
  errors: []
5136
5136
  };
5137
- const h = s.tokens;
5138
- if (0 === h.length) throw new e.Parse(ri);
5139
- return this.input = h, 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 = c(o, (e, n) => {
5140
- const r = e.type, s = n?.isReference ? n.value : void 0, o = "string" == typeof s && ei.has(s), c = "string" == typeof s && ti.has(s), h = o ? n.inputs : void 0, l = h ? h[0] === e ? h[1] : h[0] : void 0, u = this._lexer.getMaxRow();
5141
- if (o && r !== L.Cell && Number.isInteger(e.value)) {
5142
- const n = a(e.image, t);
5143
- return N(n, e), "row" !== ni(l) ? 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, u) || this._reportError(n, `'${e.image}' is not a valid row — rows run from 1 to ${u}`), n;
5137
+ const o = r.tokens;
5138
+ if (0 === o.length) throw new e.Parse(ri);
5139
+ return this.input = o, 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 = y(s, (e, n) => {
5140
+ const i = e.type, r = n?.isReference ? n.value : void 0, s = "string" == typeof r && ei.has(r), o = "string" == typeof r && ti.has(r), a = s ? n.inputs : void 0, c = a ? a[0] === e ? a[1] : a[0] : void 0, l = this._lexer.getMaxRow();
5141
+ if (s && i !== p.Cell && Number.isInteger(e.value)) {
5142
+ const n = g(e.image, t);
5143
+ return d(n, e), "row" !== ni(c) ? 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 (c && r === L.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 === L.Cell) {
5147
- const t = e.value, n = t.colIndex === Number.MIN_SAFE_INTEGER, r = t.rowIndex === Number.MIN_SAFE_INTEGER;
5148
- if ((n || r) && ni(l) === (n ? "row" : "col")) return n && !ii(e.image, u) && this._reportError(e, `'${e.image}' is not a valid row — rows run from 1 to ${u}`), e;
5149
- if (n || r || t.colIndex >= 16384) {
5150
- const o = i(e.image);
5151
- N(o, e);
5145
+ if (o && i === p.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 === p.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(c) === (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 s = h(e.image);
5151
+ d(s, e);
5152
5152
  const a = t.scope;
5153
- return a && (o.value.scope = a, o.value.scopeImage = t.scopeImage), n ? 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})`) : c && this._reportError(o, `'${e.image}' is a name — '${s}' needs a cell or range on both sides`), o;
5153
+ return a && (s.value.scope = a, 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})`) : o && this._reportError(s, `'${e.image}' is a name — '${r}' needs a cell or range on both sides`), s;
5154
5154
  }
5155
5155
  }
5156
5156
  return e;
5157
5157
  }), {
5158
- root: o,
5158
+ root: s,
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 === L.Array && Array.isArray(e.value)) {
5214
+ if (e.type === p.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
  }