@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.13

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 (349) hide show
  1. package/THIRD-PARTY-NOTICES.md +172 -0
  2. package/browser/esm/{BMyDRQ716j79h_bH.mjs → -GEhXGMfNcWmHPby.mjs} +6 -6
  3. package/browser/esm/{B7aUIvgUjncMMD_i.mjs → 9WXf_BTKjW1cQisZ.mjs} +95 -94
  4. package/browser/esm/{PcHFjNzQsE54POri.mjs → B2SgIPPBX0wjzuq8.mjs} +1 -1
  5. package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → BC2RwlNwCdRywkoD.mjs} +1 -1
  6. package/browser/esm/{BpgskG1Er_lGQ_yS.mjs → BEqhm9xAUPiHUCFv.mjs} +1 -1
  7. package/browser/esm/BHgqi7KNrl7Vjr0W.mjs +348 -0
  8. package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → BJKH0tDRx2FeSWvt.mjs} +2 -2
  9. package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → BTgWtqdQoh2cB6DL.mjs} +1 -1
  10. package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → BVshV1iY3bcUH9_E.mjs} +1135 -1129
  11. package/browser/esm/{BFagR2JeWs74iAG3.mjs → BYQ63XU7JzB4_itX.mjs} +1 -1
  12. package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → Bax5aOzQkbHKXW_X.mjs} +239 -230
  13. package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → BiDGKhtzV6yIy66o.mjs} +45 -45
  14. package/browser/esm/BmYrWK5OmHRtgyqM.mjs +367 -0
  15. package/browser/esm/{ClPfI4lODvCece29.mjs → BoAlHgjPQ6mxb_oO.mjs} +74 -74
  16. package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → C0mjTq8lhrX3HiPa.mjs} +4328 -3166
  17. package/browser/esm/{nvU0ClAbf0g94YBK.mjs → C5j0IdwtYkWlOftv.mjs} +604 -596
  18. package/browser/esm/{DWNzqw7DUKwoxjri.mjs → CL84-iL2QeKlLzo5.mjs} +2 -2
  19. package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → CLkBe-6n-pStQhnz.mjs} +2 -2
  20. package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/CPzfhTPX2Y4dHX2p.mjs} +2 -2
  21. package/browser/esm/{Dlmig06rIo7cInRk.mjs → CSJuIjYUOE387FIP.mjs} +1 -1
  22. package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → Cdw0mGuoV3IU2LhR.mjs} +2 -2
  23. package/browser/esm/Ced5uyofOWHuL_Jy.mjs +114 -0
  24. package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → Ci_LJ4S_GvYX0STI.mjs} +1 -1
  25. package/browser/esm/{zlLuW405RSguy4Kn.mjs → CwygVKP_RXmne5Ot.mjs} +47 -47
  26. package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → D-mfK0noQrM2jZLT.mjs} +1 -1
  27. package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → D9SH_8v3FYCnxOFK.mjs} +1 -1
  28. package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → DPD8fop6az9HZNiK.mjs} +2 -2
  29. package/browser/esm/DW-MmlgMH87l-_cw.mjs +302 -0
  30. package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DctIlUsO78-OU2ht.mjs} +2 -2
  31. package/browser/esm/DdcKkVb4jM6Y_epY.mjs +184 -0
  32. package/browser/esm/{CHU6iu_WGlm7fLET.mjs → DfKzE0IY0TjaEIxG.mjs} +1 -1
  33. package/browser/esm/{C2VbEI_XVAoseAwa.mjs → DkloMquaR1pbZCER.mjs} +44 -43
  34. package/browser/esm/{C16ycKja6zG0crV_.mjs → Dz86-De57bv2VYIi.mjs} +19447 -16481
  35. package/browser/esm/{BtvLTTfSBdAKplVG.mjs → HApSgmV2FXRRwQac.mjs} +1 -1
  36. package/browser/esm/{CQYjO777cmAznUzK.mjs → IbVAQU4YqtFqLwYk.mjs} +1 -1
  37. package/browser/esm/index.mjs +823 -644
  38. package/browser/esm/mHQ95RAfxHzcUN2r.mjs +18 -0
  39. package/browser/esm/pm00uZZu_H3gxHFx.mjs +117 -0
  40. package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → quEvwgrEuOb0h3q-.mjs} +1926 -1298
  41. package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → zZngLMg6mg6nnNGX.mjs} +66 -66
  42. package/licenses/dependencies.txt +71 -1
  43. package/node/esm/{BqiexuA89caYnAPz.mjs → -K4Cek-bTUItkB_8.mjs} +1 -1
  44. package/node/esm/-b8yNV4v9qiq8EMY.mjs +117 -0
  45. package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → 1V-m67YHbxmg3xk2.mjs} +74 -74
  46. package/node/esm/{D_t5AUxSm7_icjzq.mjs → 4ROAfJC1mokmqubv.mjs} +1 -1
  47. package/node/esm/B89et7t3uRmtxk4v.mjs +115 -0
  48. package/node/esm/BKBkCBNGhMU0nQdY.mjs +372 -0
  49. package/node/esm/{OVfaSb506tNSIvbv.mjs → BQ2XqExomMceAjfe.mjs} +20822 -18373
  50. package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Bfg7qjCXCwXbzW3K.mjs} +1 -1
  51. package/node/esm/{D1TKBVmoKGAXf37B.mjs → BtMeAB_dqJnOfzJM.mjs} +2 -2
  52. package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Byc_bxU_MdjYtt0x.mjs} +1 -1
  53. package/node/esm/{CNCNJNg890KdgkWh.mjs → Bzrl292TNCK3Cpid.mjs} +1 -1
  54. package/node/esm/{De2IONBxQhz-Qbyh.mjs → C0P9zspoypRAj7yv.mjs} +1 -1
  55. package/node/esm/{CzXT00vrQa1_gvW9.mjs → C9gpMN3galHGZyoK.mjs} +1 -1
  56. package/node/esm/CKCG2peOkTq0gIIW.mjs +310 -0
  57. package/node/esm/{DUTskXCXref-IJnI.mjs → CWBS90g3Hz-kQDkY.mjs} +46 -46
  58. package/node/esm/{BIwObuhTJYf0jpUa.mjs → CoGSVnn-hNMtTEus.mjs} +2 -2
  59. package/node/esm/{CwePQwTILHHjGDkZ.mjs → CzrLqStvrcPE2-hb.mjs} +194 -185
  60. package/node/esm/{CCN5vD410obwdz38.mjs → D16EdlZG1hX5WUUK.mjs} +96 -95
  61. package/node/esm/{CDHdgJXH2vS71WMc.mjs → D1mDga2K5sjs8y07.mjs} +1 -1
  62. package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D2jtztjE6c23RKvZ.mjs} +1 -1
  63. package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → D9nRcWsYk3M82iD8.mjs} +1 -1
  64. package/node/esm/{yavzZOiZW_EjG9lE.mjs → DALYzTxZ9Ur9C69Q.mjs} +1 -1
  65. package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DF0nL7s01dp7n0Bx.mjs} +10 -10
  66. package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → DO5ldLqhTvIfPXLW.mjs} +3348 -2610
  67. package/node/esm/DQz8J8ci7EJdqbuB.mjs +351 -0
  68. package/node/esm/{BIRq1kT7lLRzns9t.mjs → DR2OQTKqqyIkZnse.mjs} +2 -2
  69. package/node/esm/{857CIBgQgGpnqrXk.mjs → DSTLPBgpsGW6qP9e.mjs} +73 -73
  70. package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DiXp7KSOZUSWXaZ5.mjs} +1 -1
  71. package/node/esm/{CZiqiay42tFTrLI4.mjs → DwvXHsycOQR219c7.mjs} +1 -1
  72. package/node/esm/{B21JjOLghRoDOrkx.mjs → Hc6B04OyVzHx2F5I.mjs} +38 -37
  73. package/node/esm/{Ct3h15sCus4Tgt6M.mjs → NkPNHsq2T3DXg76x.mjs} +561 -553
  74. package/node/esm/{B084DssTcdBheTp_.mjs → Nl_IIkO1jbk0s9i-.mjs} +4552 -3373
  75. package/node/esm/{D2KBymQJd1XhpeQD.mjs → OQT5lGqq8a4r5xNa.mjs} +1 -1
  76. package/node/esm/OTaaFGhF-k_iwobp.mjs +18 -0
  77. package/node/esm/{CdJHUJSBRHZoryPe.mjs → Z1elC_roIu7LhceZ.mjs} +53 -53
  78. package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/e3F3OVXCxLJrSukW.mjs} +2 -2
  79. package/node/esm/index.mjs +806 -625
  80. package/node/esm/{mFiBSM7XgBHV9AY7.mjs → suOBVUz-pca6ilJH.mjs} +1607 -1601
  81. package/package.json +8 -6
  82. package/resources/contents.json +108 -0
  83. package/resources/fonts/aptos-bold-italic.hinted.json +125 -0
  84. package/resources/fonts/aptos-bold-italic.metrics.json +221 -0
  85. package/resources/fonts/aptos-bold-italic.rows.json +8 -0
  86. package/resources/fonts/aptos-bold.hinted.json +125 -0
  87. package/resources/fonts/aptos-bold.metrics.json +221 -0
  88. package/resources/fonts/aptos-bold.rows.json +8 -0
  89. package/resources/fonts/aptos-display-bold-italic.hinted.json +125 -0
  90. package/resources/fonts/aptos-display-bold-italic.metrics.json +221 -0
  91. package/resources/fonts/aptos-display-bold-italic.rows.json +8 -0
  92. package/resources/fonts/aptos-display-bold.hinted.json +125 -0
  93. package/resources/fonts/aptos-display-bold.metrics.json +221 -0
  94. package/resources/fonts/aptos-display-bold.rows.json +8 -0
  95. package/resources/fonts/aptos-display-italic.hinted.json +124 -0
  96. package/resources/fonts/aptos-display-italic.metrics.json +221 -0
  97. package/resources/fonts/aptos-display-italic.rows.json +8 -0
  98. package/resources/fonts/aptos-display-regular.hinted.json +125 -0
  99. package/resources/fonts/aptos-display-regular.metrics.json +221 -0
  100. package/resources/fonts/aptos-display-regular.rows.json +8 -0
  101. package/resources/fonts/aptos-italic.hinted.json +125 -0
  102. package/resources/fonts/aptos-italic.metrics.json +221 -0
  103. package/resources/fonts/aptos-italic.rows.json +8 -0
  104. package/resources/fonts/aptos-narrow-bold-italic.hinted.json +125 -0
  105. package/resources/fonts/aptos-narrow-bold-italic.metrics.json +221 -0
  106. package/resources/fonts/aptos-narrow-bold-italic.rows.json +8 -0
  107. package/resources/fonts/aptos-narrow-bold.hinted.json +125 -0
  108. package/resources/fonts/aptos-narrow-bold.metrics.json +221 -0
  109. package/resources/fonts/aptos-narrow-bold.rows.json +8 -0
  110. package/resources/fonts/aptos-narrow-italic.hinted.json +125 -0
  111. package/resources/fonts/aptos-narrow-italic.metrics.json +221 -0
  112. package/resources/fonts/aptos-narrow-italic.rows.json +8 -0
  113. package/resources/fonts/aptos-narrow-regular.hinted.json +125 -0
  114. package/resources/fonts/aptos-narrow-regular.metrics.json +221 -0
  115. package/resources/fonts/aptos-narrow-regular.rows.json +8 -0
  116. package/resources/fonts/aptos-regular.hinted.json +125 -0
  117. package/resources/fonts/aptos-regular.metrics.json +221 -0
  118. package/resources/fonts/aptos-regular.rows.json +8 -0
  119. package/resources/fonts/arial-bold-italic.rows.json +0 -1
  120. package/resources/fonts/arial-bold.rows.json +0 -1
  121. package/resources/fonts/arial-italic.rows.json +0 -1
  122. package/resources/fonts/arial-regular.rows.json +0 -1
  123. package/resources/fonts/calibri-bold-italic.rows.json +0 -1
  124. package/resources/fonts/calibri-bold.rows.json +0 -1
  125. package/resources/fonts/calibri-italic.rows.json +0 -1
  126. package/resources/fonts/calibri-regular.rows.json +0 -1
  127. package/resources/fonts/cambria-bold-italic.rows.json +0 -1
  128. package/resources/fonts/cambria-bold.rows.json +0 -1
  129. package/resources/fonts/cambria-italic.rows.json +0 -1
  130. package/resources/fonts/cambria-regular.rows.json +0 -1
  131. package/resources/fonts/contents.json +240 -0
  132. package/resources/fonts/courier-new-bold-italic.rows.json +0 -1
  133. package/resources/fonts/courier-new-bold.rows.json +0 -1
  134. package/resources/fonts/courier-new-italic.rows.json +0 -1
  135. package/resources/fonts/courier-new-regular.rows.json +0 -1
  136. package/resources/fonts/times-new-roman-bold-italic.rows.json +0 -1
  137. package/resources/fonts/times-new-roman-bold.rows.json +0 -1
  138. package/resources/fonts/times-new-roman-italic.rows.json +0 -1
  139. package/resources/fonts/times-new-roman-regular.rows.json +0 -1
  140. package/resources/locales/de/model.msg.json +12 -2
  141. package/resources/locales/en/model.msg.json +13 -2
  142. package/types/scripting-api.json +10638 -10446
  143. package/types/scripting-enums.json +20 -1
  144. package/types/scripting.d.ts +1536 -477
  145. package/types/src/.generated/wasm/sdk.d.ts +5 -27
  146. package/types/src/address/AddressUtils.d.ts +8 -0
  147. package/types/src/address/_SheetNameQuoteChars.d.ts +3 -0
  148. package/types/src/{sheet → anomalies}/_Anomalies.d.ts +3 -3
  149. package/types/src/anomalies/_FocusTable.d.ts +5 -0
  150. package/types/src/{sheet/_AnomalyFormulaChecks.d.ts → anomalies/_FormulaChecks.d.ts} +10 -2
  151. package/types/src/{sheet/_AnomalyLabelChecks.d.ts → anomalies/_LabelChecks.d.ts} +1 -1
  152. package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
  153. package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
  154. package/types/src/calculation/Calculation.d.ts +61 -98
  155. package/types/src/calculation/ExternalBookBindings.d.ts +2 -29
  156. package/types/src/calculation/ICalculation.d.ts +96 -9
  157. package/types/src/calculation/NamedFormulaCollection.d.ts +110 -10
  158. package/types/src/calculation/TokenType.d.ts +0 -10
  159. package/types/src/calculation/_CloneBoundary.d.ts +0 -24
  160. package/types/src/calculation/_FormulaToolkit.d.ts +0 -5
  161. package/types/src/calculation/compiler/ASTTypes.d.ts +6 -15
  162. package/types/src/calculation/compiler/CompilerUtils.d.ts +0 -227
  163. package/types/src/calculation/compiler/FormulaLexer.d.ts +0 -8
  164. package/types/src/calculation/compiler/FormulaParser.d.ts +0 -61
  165. package/types/src/calculation/compiler/ParserUtils.d.ts +0 -24
  166. package/types/src/calculation/compiler/Types.d.ts +1 -45
  167. package/types/src/calculation/engine/CalcBackend.d.ts +83 -127
  168. package/types/src/calculation/engine/index.d.ts +0 -8
  169. package/types/src/calculation/executor/CalcExecutor.d.ts +50 -116
  170. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +47 -12
  171. package/types/src/calculation/executor/CircularReference.d.ts +0 -17
  172. package/types/src/calculation/executor/_BlockOrder.d.ts +29 -0
  173. package/types/src/calculation/executor/_WhatIf.d.ts +31 -0
  174. package/types/src/calculation/formula/FormulaBlock.d.ts +4 -31
  175. package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
  176. package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -12
  177. package/types/src/calculation/formula/LambdaValue.d.ts +0 -15
  178. package/types/src/calculation/formula/TokenUtils.d.ts +1 -8
  179. package/types/src/calculation/functions/_DataTableFunction.d.ts +14 -0
  180. package/types/src/calculation/grid/CalcGrid.d.ts +8 -64
  181. package/types/src/calculation/grid/CalcGridBackend.d.ts +12 -35
  182. package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -15
  183. package/types/src/calculation/grid/CalcGridUtils.d.ts +21 -23
  184. package/types/src/calculation/grid/ICalcGrid.d.ts +28 -109
  185. package/types/src/calculation/grid/_CalcRequest.d.ts +17 -33
  186. package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
  187. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +54 -82
  188. package/types/src/calculation/spatial/SpillEntry.d.ts +20 -3
  189. package/types/src/calculation/state/CalcNode.d.ts +0 -1
  190. package/types/src/calculation/state/CalcScope.d.ts +29 -9
  191. package/types/src/calculation/state/CalcState.d.ts +19 -9
  192. package/types/src/calculation/state/CalculationContext.d.ts +32 -38
  193. package/types/src/calculation/state/DeferredCalls.d.ts +207 -0
  194. package/types/src/calculation/state/IContextContainer.d.ts +19 -55
  195. package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
  196. package/types/src/calculation/state/_PendingOverlayGrid.d.ts +52 -33
  197. package/types/src/calculation/state/_WhatIfLayer.d.ts +77 -0
  198. package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +0 -42
  199. package/types/src/calculation/symbol/ISymbolRegistry.d.ts +0 -6
  200. package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +0 -12
  201. package/types/src/calculation/symbol/SymbolRegistry.d.ts +0 -9
  202. package/types/src/calculation/toolkit/index.d.ts +0 -8
  203. package/types/src/cell/ICell.d.ts +59 -54
  204. package/types/src/cellControl/CellControl.d.ts +67 -0
  205. package/types/src/cellControl/CellControlCollection.d.ts +29 -0
  206. package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
  207. package/types/src/cellControl/ICellControl.d.ts +99 -0
  208. package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
  209. package/types/src/cellControl/index.d.ts +4 -0
  210. package/types/src/cellRange/ICellRange.d.ts +226 -67
  211. package/types/src/cellRange/ICellRanges.d.ts +4 -3
  212. package/types/src/chart/Chart.d.ts +0 -16
  213. package/types/src/chart/_ChartParts.d.ts +0 -39
  214. package/types/src/chart/_ChartSource.d.ts +0 -14
  215. package/types/src/chart/createChart.d.ts +1 -1
  216. package/types/src/chart/kinds/ChartKind.d.ts +4 -4
  217. package/types/src/chart/kinds/_Placeholder.d.ts +0 -1
  218. package/types/src/chart/layout/ChartLayout.d.ts +5 -1
  219. package/types/src/chart/layout/TextMeasurer.d.ts +0 -20
  220. package/types/src/chart/layout/_LayoutUtils.d.ts +0 -16
  221. package/types/src/chart/math/BoxStats.d.ts +0 -8
  222. package/types/src/chart/math/DateUnitCalcs.d.ts +0 -10
  223. package/types/src/chart/math/Histogram.d.ts +0 -17
  224. package/types/src/chart/math/OrdUnitCalcs.d.ts +0 -53
  225. package/types/src/chart/math/Treemap.d.ts +0 -15
  226. package/types/src/chart/math/Trendlines.d.ts +0 -8
  227. package/types/src/chart/math/UnitCalcs.d.ts +0 -22
  228. package/types/src/chart/model/_Edits.d.ts +0 -33
  229. package/types/src/chart/model/_Grouping.d.ts +0 -25
  230. package/types/src/chart/model/_Inference.d.ts +0 -18
  231. package/types/src/chart/model/_NewChart.d.ts +0 -41
  232. package/types/src/chart/model/_OfPie.d.ts +0 -7
  233. package/types/src/chart/resolve/_LegacyStyles.d.ts +0 -20
  234. package/types/src/chart/resolve/_Resolve.d.ts +3 -12
  235. package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -8
  236. package/types/src/collections/ISparseGrid.d.ts +11 -2
  237. package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
  238. package/types/src/collections/SparseGrid.d.ts +3 -8
  239. package/types/src/collections/_GridUtils.d.ts +0 -10
  240. package/types/src/comment/_NoteBox.d.ts +0 -15
  241. package/types/src/condition/AnchoredConditional.d.ts +3 -25
  242. package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +0 -49
  243. package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +0 -10
  244. package/types/src/condition/ICondition.d.ts +2 -2
  245. package/types/src/condition/_ConditionUtils.d.ts +0 -38
  246. package/types/src/externalBook/ExternalBookCollection.d.ts +0 -15
  247. package/types/src/externalBook/ExternalBookName.d.ts +2 -3
  248. package/types/src/externalBook/IExternalBook.d.ts +16 -18
  249. package/types/src/fetch/Fetcher.d.ts +15 -0
  250. package/types/src/fetch/IFetcher.d.ts +48 -0
  251. package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
  252. package/types/src/fetch/index.d.ts +3 -0
  253. package/types/src/fill/PaintUtils.d.ts +3 -1
  254. package/types/src/font/AdvanceTable.d.ts +16 -42
  255. package/types/src/font/IFont.d.ts +32 -9
  256. package/types/src/font/TableFileAdvanceBuilder.d.ts +6 -3
  257. package/types/src/font/_FontUtils.d.ts +0 -8
  258. package/types/src/font/_StandIns.d.ts +33 -0
  259. package/types/src/hyperlink/IHyperlink.d.ts +10 -0
  260. package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
  261. package/types/src/index.d.ts +2 -1
  262. package/types/src/io/IWorkbookIO.d.ts +3 -3
  263. package/types/src/io/WorkbookOrigin.d.ts +2 -2
  264. package/types/src/license/LicenseManager.d.ts +2 -1
  265. package/types/src/license/_Utils.d.ts +4 -3
  266. package/types/src/license/details.d.ts +3 -1
  267. package/types/src/license/keys.d.ts +6 -0
  268. package/types/src/license/license-key.d.ts +15 -33
  269. package/types/src/license/token.d.ts +55 -0
  270. package/types/src/named/INamedCollection.d.ts +36 -0
  271. package/types/src/named/NamedCollection.d.ts +18 -0
  272. package/types/src/picture/IPicture.d.ts +45 -0
  273. package/types/src/picture/Picture.d.ts +12 -0
  274. package/types/src/pivot/PivotTable.d.ts +0 -7
  275. package/types/src/primitives/AsyncValue.d.ts +46 -0
  276. package/types/src/primitives/PrimitiveUtils.d.ts +1 -110
  277. package/types/src/primitives/Range.d.ts +0 -60
  278. package/types/src/primitives/ScalarCollation.d.ts +0 -106
  279. package/types/src/primitives/stats/AggregateStats.d.ts +0 -19
  280. package/types/src/print/PageLayout.d.ts +0 -6
  281. package/types/src/reference/ReferenceUtils.d.ts +4 -2
  282. package/types/src/resource/IResource.d.ts +9 -0
  283. package/types/src/resource/IResourceCollection.d.ts +4 -0
  284. package/types/src/resource/Resource.d.ts +2 -0
  285. package/types/src/resource/_AddResource.d.ts +13 -0
  286. package/types/src/richData/CellImage.d.ts +95 -0
  287. package/types/src/richData/Hyperlink.d.ts +49 -0
  288. package/types/src/richData/IRichDataCollection.d.ts +76 -0
  289. package/types/src/richData/IRichDataKind.d.ts +55 -11
  290. package/types/src/richData/RichArray.d.ts +42 -0
  291. package/types/src/richData/RichDataCollection.d.ts +23 -0
  292. package/types/src/richData/RichDataRegistry.d.ts +52 -14
  293. package/types/src/richData/RichDataValues.d.ts +20 -0
  294. package/types/src/richData/RichRecord.d.ts +68 -0
  295. package/types/src/richData/RichText.d.ts +5 -5
  296. package/types/src/richData/index.d.ts +6 -0
  297. package/types/src/scripting/FunctionArguments.d.ts +17 -1
  298. package/types/src/scripting/FunctionCollection.d.ts +8 -0
  299. package/types/src/scripting/Scripts.d.ts +10 -0
  300. package/types/src/scripting/TypedFunction.d.ts +2 -109
  301. package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
  302. package/types/src/sheet/IWorksheet.d.ts +26 -22
  303. package/types/src/sheet/NamedCellRange.d.ts +0 -21
  304. package/types/src/sheet/SheetCell.d.ts +25 -3
  305. package/types/src/sheet/SheetRange.d.ts +8 -2
  306. package/types/src/sheet/SheetRanges.d.ts +2 -2
  307. package/types/src/sheet/Worksheet.d.ts +117 -104
  308. package/types/src/sheet/_DelimitedText.d.ts +13 -0
  309. package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
  310. package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
  311. package/types/src/sheet/_ScalarListFactory.d.ts +46 -17
  312. package/types/src/sheet/_SheetCoords.d.ts +0 -7
  313. package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
  314. package/types/src/sheet/_SheetMutations.d.ts +4 -1
  315. package/types/src/sheet/_SheetStateReader.d.ts +0 -10
  316. package/types/src/sheet/_SheetStateTypes.d.ts +23 -14
  317. package/types/src/sheet/_SheetUtils.d.ts +1 -1
  318. package/types/src/sheet/style/_RowLine.d.ts +32 -0
  319. package/types/src/sheet/style/_StyleUtils.d.ts +6 -14
  320. package/types/src/sheetView/_SheetViewUtils.d.ts +0 -1
  321. package/types/src/slicer/_BuiltInSlicerStyles.d.ts +0 -5
  322. package/types/src/style/ICellStyle.d.ts +4 -0
  323. package/types/src/table/AnchoredTable.d.ts +0 -147
  324. package/types/src/text/TextFrame.d.ts +4 -1
  325. package/types/src/text/TextStacked.d.ts +0 -24
  326. package/types/src/text/TextWrapper.d.ts +3 -5
  327. package/types/src/text/_LineBox.d.ts +24 -0
  328. package/types/src/text/_TextUtils.d.ts +5 -2
  329. package/types/src/text/_TextWrapperFallback.d.ts +2 -1
  330. package/types/src/wasm/sdkWasm.d.ts +1 -1
  331. package/types/src/workbook/IWorkbook.d.ts +40 -1
  332. package/types/src/workbook/Workbook.d.ts +25 -13
  333. package/types/src/workbook/WorkbookRanges.d.ts +1 -1
  334. package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
  335. package/browser/esm/BLoUBId2xZpXAK_H.mjs +0 -698
  336. package/browser/esm/C5E6zSGAALWf61n4.mjs +0 -199
  337. package/browser/esm/S2dNNx1a5ydRnARM.mjs +0 -367
  338. package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
  339. package/browser/esm/gssVX_FH1XFN-twD.mjs +0 -210
  340. package/node/esm/BrCKGFRsX_ezFJ4B.mjs +0 -811
  341. package/node/esm/DOU54VsOjG-m-NyQ.mjs +0 -210
  342. package/node/esm/Db0v7zXNnyjBIjjI.mjs +0 -372
  343. package/node/esm/Df1bL6VFvrqIdSLB.mjs +0 -40
  344. package/node/esm/DrTZbfemSLq2mseG.mjs +0 -111
  345. package/types/src/dataTable/DataTable.d.ts +0 -67
  346. package/types/src/dataTable/DataTableCollection.d.ts +0 -19
  347. package/types/src/dataTable/IDataTable.d.ts +0 -99
  348. package/types/src/dataTable/IDataTableCollection.d.ts +0 -18
  349. package/types/src/dataTable/index.d.ts +0 -6
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.13
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { An as e, Bn as t, Dn as s, Fn as r, Gn as i, Hn as n, In as o, Jn as a, Kn as h, Ln as l, Nn as u, Pn as c, Rn as p, Tn as g, Un as m, Vn as O, Wn as _, Xn as E, Yn as L, Zn as f, dr as A, ir as C, jn as T, kn as N, nr as U, or as S, qn as d, rr as x, sr as R, zn as I } from "./OVfaSb506tNSIvbv.mjs";
7
+ import { $n as e, Bn as t, Fn as s, Gn as r, Jn as i, Kn as n, Ln as o, Qn as a, Un as h, Vn as l, Wn as u, Xn as c, Yn as p, Zn as g, _r as m, ar as O, er as _, fr as E, gr as L, ir as A, mr as f, nr as C, or as T, pr as N, qn as U, rr as S, sr as d, tr as x, xr as R, zn as I } from "./BQ2XqExomMceAjfe.mjs";
8
8
  import { FormulaError as M } from "@sheetxl/primitives";
9
9
  import { EOF as P, EmbeddedActionsParser as b, Lexer as v, createToken as k, defaultParserErrorProvider as w } from "chevrotain";
10
10
  var y = class e {
11
11
  static shared(t) {
12
- const s = t?.locale ?? R, r = t?.maxColumn ?? D, i = t?.maxRow ?? G;
12
+ const s = t?.locale ?? m, r = t?.maxColumn ?? D, i = t?.maxRow ?? G;
13
13
  let n = $.get(s);
14
14
  n || (n = /* @__PURE__ */ new Map(), $.set(s, n));
15
15
  const o = `${r}:${i}`;
@@ -21,7 +21,7 @@ var y = class e {
21
21
  }), n.set(o, a)), a;
22
22
  }
23
23
  constructor(e) {
24
- const t = e?.maxColumn ?? D, s = e?.maxRow ?? G, r = e?.locale ?? R;
24
+ const t = e?.maxColumn ?? D, s = e?.maxRow ?? G, r = e?.locale ?? m;
25
25
  this._locale = r, this._maxColumn = t, this._maxRow = s;
26
26
  const { separatorFunction: i, separatorColumn: n, separatorRow: o, separatorDecimal: a } = r.separators;
27
27
  if (n === o) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${n}')`);
@@ -37,16 +37,16 @@ var y = class e {
37
37
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
38
38
  }), c = k({
39
39
  name: "TableReference",
40
- pattern: { exec: x },
40
+ pattern: { exec: N },
41
41
  line_breaks: !1,
42
42
  start_chars_hint: B
43
43
  }), p = k({
44
44
  name: "BracketedString",
45
- pattern: { exec: U },
45
+ pattern: { exec: E },
46
46
  line_breaks: !1,
47
47
  start_chars_hint: [91],
48
48
  longer_alt: [c, l]
49
- }), g = (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()}]`), O = k({
49
+ }), g = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), O = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), _ = k({
50
50
  name: "LiteralError",
51
51
  pattern: new RegExp(g(r.errorLiterals) + [
52
52
  "#PARSE!",
@@ -65,24 +65,24 @@ var y = class e {
65
65
  "#BUSY!",
66
66
  "#PYTHON!",
67
67
  "#TIMEOUT!"
68
- ].map(m).join("|"))
69
- }), _ = k({
68
+ ].map(O).join("|"))
69
+ }), L = k({
70
70
  name: "RefError",
71
- pattern: new RegExp(g(r.errorRefs) + ["#REF!", "#NAME\\?"].map(m).join("|"))
72
- }), E = k({
71
+ pattern: new RegExp(g(r.errorRefs) + ["#REF!", "#NAME\\?"].map(O).join("|"))
72
+ }), A = k({
73
73
  name: "SingleQuotedString",
74
74
  pattern: /'(''|[^'])*'/
75
- }), L = k({
75
+ }), f = k({
76
76
  name: "SheetQuoted",
77
77
  pattern: /'(?:''|[^'])*?'!/
78
- }), f = k({
78
+ }), C = k({
79
79
  name: "Sheet",
80
80
  pattern: /[A-Za-z_.\d\u007F-\uFFFF]*!/
81
- }), A = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, C = k({
81
+ }), T = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, U = k({
82
82
  name: "NamedToken",
83
83
  pattern: { exec: (e, t) => {
84
- A.lastIndex = t;
85
- const s = A.exec(e);
84
+ T.lastIndex = t;
85
+ const s = T.exec(e);
86
86
  if (!s) return null;
87
87
  let r = s[0];
88
88
  const i = r.indexOf(".:");
@@ -90,24 +90,24 @@ var y = class e {
90
90
  } },
91
91
  line_breaks: !1,
92
92
  start_chars_hint: B
93
- }), T = k({
93
+ }), S = k({
94
94
  name: "Cell",
95
95
  pattern: { exec: W(t, s) },
96
96
  line_breaks: !1,
97
97
  start_chars_hint: [36, ...F],
98
- longer_alt: C
99
- }), N = k({
98
+ longer_alt: U
99
+ }), d = k({
100
100
  name: "Column",
101
101
  pattern: { exec: z(t) },
102
102
  line_breaks: !1,
103
103
  start_chars_hint: [36, ...F],
104
- longer_alt: C
105
- }), S = k({
104
+ longer_alt: U
105
+ }), x = k({
106
106
  name: "AbsRow",
107
107
  pattern: /[$][0-9]+/
108
- }), d = "." === a ? "\\." : a, I = k({
108
+ }), R = "." === a ? "\\." : a, I = k({
109
109
  name: "NumberToken",
110
- pattern: new RegExp(`[0-9]+${d}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${d}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)
110
+ pattern: new RegExp(`[0-9]+${R}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${R}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)
111
111
  }), M = k({
112
112
  name: "ScientificDigit",
113
113
  pattern: /[0-9]+\*\*[+-]?[0-9]+/
@@ -134,10 +134,10 @@ var y = class e {
134
134
  }), j = k({
135
135
  name: "RangeOp",
136
136
  pattern: /:/
137
- }), Z = k({
137
+ }), Q = k({
138
138
  name: "RangeTrimFullOp",
139
139
  pattern: /\.:\./
140
- }), Q = k({
140
+ }), Z = k({
141
141
  name: "RangeTrimLeadingOp",
142
142
  pattern: /\.:/
143
143
  }), q = k({
@@ -185,7 +185,7 @@ var y = class e {
185
185
  }), le = k({
186
186
  name: "ArrayAnchorOp",
187
187
  pattern: /#/,
188
- longer_alt: [O, _]
188
+ longer_alt: [_, L]
189
189
  }), ue = k({
190
190
  name: "GtOp",
191
191
  pattern: />/
@@ -198,31 +198,31 @@ var y = class e {
198
198
  }), ge = [
199
199
  h,
200
200
  l,
201
- L,
202
- E,
203
201
  f,
202
+ A,
203
+ C,
204
204
  u,
205
205
  c,
206
206
  p,
207
- O,
208
207
  _,
208
+ L,
209
209
  y,
210
210
  ...n !== i ? [$] : [],
211
211
  Y,
212
- Z,
213
212
  Q,
213
+ Z,
214
214
  q,
215
215
  j,
216
- T,
217
- w,
218
- N,
219
216
  S,
217
+ w,
218
+ d,
219
+ x,
220
220
  I,
221
221
  M,
222
222
  P,
223
223
  le,
224
224
  ne,
225
- C,
225
+ U,
226
226
  K,
227
227
  H,
228
228
  J,
@@ -355,28 +355,28 @@ function V(e) {
355
355
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
356
356
  }
357
357
  var j = class {
358
- constructor(e = R) {
358
+ constructor(e = m) {
359
359
  const t = function(e) {
360
- const t = [...g];
360
+ const t = [...s];
361
361
  if (e) for (const s of Object.values(e)) {
362
362
  const e = s?.trim();
363
363
  e && !t.some((t) => t.toLowerCase() === e.toLowerCase()) && t.push(e);
364
364
  }
365
365
  return t.sort((e, t) => t.length - e.length), t.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
366
- }(e.specifiers), s = k({
366
+ }(e.specifiers), r = k({
367
367
  name: "WhiteSpace",
368
368
  pattern: /\s+/,
369
369
  group: v.SKIPPED
370
- }), r = k({
370
+ }), i = k({
371
371
  name: "TableSpecifier",
372
372
  pattern: new RegExp(`\\[#(?:${t})\\]`, "i")
373
- }), i = [
374
- s,
373
+ }), n = [
375
374
  r,
375
+ i,
376
376
  k({
377
377
  name: "BracketedColumn",
378
378
  pattern: /\[(?:'['#[\]]|'(?!['#[\]])|[^'[\]])*\]/,
379
- longer_alt: [r]
379
+ longer_alt: [i]
380
380
  }),
381
381
  k({
382
382
  name: "BareSpecifier",
@@ -391,11 +391,11 @@ var j = class {
391
391
  pattern: new RegExp(e.separators.separatorFunction.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"))
392
392
  })
393
393
  ];
394
- this._lexer = new v(i, { ensureOptimizations: !0 });
395
- const n = {};
396
- i.forEach((e) => {
397
- n[e.name] = e;
398
- }), this._vocabulary = n;
394
+ this._lexer = new v(n, { ensureOptimizations: !0 });
395
+ const o = {};
396
+ n.forEach((e) => {
397
+ o[e.name] = e;
398
+ }), this._vocabulary = o;
399
399
  }
400
400
  getVocabulary() {
401
401
  return this._vocabulary;
@@ -403,8 +403,8 @@ var j = class {
403
403
  tokenize(e) {
404
404
  return this._lexer.tokenize(e);
405
405
  }
406
- }, Z = class extends b {
407
- constructor(e = R) {
406
+ }, Q = class extends b {
407
+ constructor(e = m) {
408
408
  const t = new j(e), s = t.getVocabulary();
409
409
  super(s, {
410
410
  nodeLocationTracking: "none",
@@ -428,13 +428,13 @@ var j = class {
428
428
  }), h.RULE("ruleItem", () => h.OR([{ ALT: () => h.SUBRULE(h.ruleSpecifier) }, { ALT: () => h.SUBRULE(h.ruleColumnOrRange) }])), h.RULE("ruleSpecifier", () => h.OR([{ ALT: () => {
429
429
  const t = h.CONSUME(r);
430
430
  return h.ACTION(() => {
431
- const s = f(t.image, e);
431
+ const s = d(t.image, e);
432
432
  return s.image = t.image, s;
433
433
  });
434
434
  } }, { ALT: () => {
435
435
  const t = h.CONSUME(n);
436
436
  return h.ACTION(() => {
437
- const s = f(t.image, e);
437
+ const s = d(t.image, e);
438
438
  return s.image = t.image, s;
439
439
  });
440
440
  } }])), h.RULE("ruleColumnOrRange", () => {
@@ -443,11 +443,11 @@ var j = class {
443
443
  return h.OPTION(() => {
444
444
  t = h.CONSUME(o), s = h.CONSUME2(i);
445
445
  }), h.ACTION(() => {
446
- const r = L(e.image);
446
+ const r = O(e.image);
447
447
  if (r.image = e.image, !s) return r;
448
- const i = L(s.image);
448
+ const i = O(s.image);
449
449
  i.image = s.image;
450
- const n = l(":", r, i, !0);
450
+ const n = U(":", r, i, !0);
451
451
  return n.image = t?.image ?? ":", n;
452
452
  });
453
453
  }), h.performSelfAnalysis();
@@ -474,13 +474,13 @@ var j = class {
474
474
  return e.image = "@", [e];
475
475
  }
476
476
  }
477
- const s = L(e);
477
+ const s = O(e);
478
478
  s.image = e;
479
479
  const r = _("@", s, !0);
480
480
  return r.image = "@", [r];
481
481
  }
482
482
  if ("[" !== s && "#" !== s) {
483
- const t = L(e);
483
+ const t = O(e);
484
484
  return t.image = e, [t];
485
485
  }
486
486
  return this._parseInner(t);
@@ -488,7 +488,7 @@ var j = class {
488
488
  parse(e, t, s) {
489
489
  this.reset();
490
490
  const r = () => ({
491
- root: E("", []),
491
+ root: T("", []),
492
492
  errors: []
493
493
  });
494
494
  if (!s) return r();
@@ -501,11 +501,11 @@ var j = class {
501
501
  if (-1 === n) return r();
502
502
  const o = s.slice(0, n), a = s.slice(n + 1, -1), h = this._parseContent(a);
503
503
  return {
504
- root: E(o, h),
504
+ root: T(o, h),
505
505
  errors: this.errors.length > 0 ? [...this.errors] : []
506
506
  };
507
507
  }
508
- }, Q = /* @__PURE__ */ new Set([
508
+ }, Z = /* @__PURE__ */ new Set([
509
509
  ":",
510
510
  ".:.",
511
511
  ".:",
@@ -516,7 +516,7 @@ var j = class {
516
516
  ":."
517
517
  ]), K = (e) => {
518
518
  if (!e) return null;
519
- if (e.type === A.Cell) {
519
+ if (e.type === R.Cell) {
520
520
  const t = e.value;
521
521
  return t.rowIndex === Number.MIN_SAFE_INTEGER ? "col" : t.colIndex === Number.MIN_SAFE_INTEGER ? "row" : null;
522
522
  }
@@ -546,75 +546,75 @@ var te = {
546
546
  return e.expected === P && t ? `Unexpected '${t}'` : w.buildMismatchTokenMessage(e);
547
547
  }
548
548
  }, se = class extends b {
549
- constructor(g) {
550
- const E = g?.lexer ?? y.shared(g?.lexerOptions), L = E.getVocabulary();
551
- super(L, {
549
+ constructor(s) {
550
+ const m = s?.lexer ?? y.shared(s?.lexerOptions), O = m.getVocabulary();
551
+ super(O, {
552
552
  skipValidations: !0,
553
553
  recoveryEnabled: !0,
554
- ...g,
554
+ ...s,
555
555
  nodeLocationTracking: "full",
556
556
  errorMessageProvider: te,
557
557
  maxLookahead: 1
558
558
  }), this._ruleInfixOp = this.RULE("ruleInfixOp", () => {
559
- const { PlusOp: e, MinOp: t, MulOp: r, DivOp: i, ExOp: n, ConcatOp: o, GtOp: a, EqOp: h, LtOp: u, NeqOp: c, GteOp: p, LteOp: g } = this._vocab, m = [];
560
- return m.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
561
- const s = this.OR(this._c1 || (this._c1 = [
559
+ const { PlusOp: e, MinOp: t, MulOp: s, DivOp: r, ExOp: i, ConcatOp: n, GtOp: a, EqOp: h, LtOp: l, NeqOp: u, GteOp: c, LteOp: p } = this._vocab, g = [];
560
+ return g.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
561
+ const o = this.OR(this._c1 || (this._c1 = [
562
562
  { ALT: () => this.CONSUME(e).image },
563
563
  { ALT: () => this.CONSUME(t).image },
564
+ { ALT: () => this.CONSUME(s).image },
564
565
  { ALT: () => this.CONSUME(r).image },
565
566
  { ALT: () => this.CONSUME(i).image },
566
567
  { ALT: () => this.CONSUME(n).image },
567
- { ALT: () => this.CONSUME(o).image },
568
568
  { ALT: () => this.CONSUME(a).image },
569
569
  { ALT: () => this.CONSUME(h).image },
570
+ { ALT: () => this.CONSUME(l).image },
570
571
  { ALT: () => this.CONSUME(u).image },
571
572
  { ALT: () => this.CONSUME(c).image },
572
- { ALT: () => this.CONSUME(p).image },
573
- { ALT: () => this.CONSUME(g).image }
574
- ])), l = {
575
- value: s,
573
+ { ALT: () => this.CONSUME(p).image }
574
+ ])), m = {
575
+ value: o,
576
576
  index: this.getLexerPosition(),
577
- isRange: C.includes(s)
577
+ isRange: f.includes(o)
578
578
  }, O = this.SUBRULE2(this._rulePostfixOp);
579
- m.push({
580
- op: l,
579
+ g.push({
580
+ op: m,
581
581
  node: O
582
582
  });
583
583
  }), this.ACTION(() => {
584
- let e = m.length - 1;
585
- const t = s.length;
586
- for (let r = 0; e > 0 && r < t; r++) {
587
- const t = s[r];
588
- let i = 1;
589
- for (; i < m.length;) {
590
- const s = m[i].op;
584
+ let e = g.length - 1;
585
+ const t = o.length;
586
+ for (let s = 0; e > 0 && s < t; s++) {
587
+ const t = o[s];
588
+ let r = 1;
589
+ for (; r < g.length;) {
590
+ const s = g[r].op;
591
591
  if (t.includes(s.value)) {
592
- const t = m[i - 1].node, r = m[i].node;
593
- let n = l(s.value, t, r, s.isRange);
594
- n = this._tag(n, s.index), m[i - 1].node = n, m.splice(i, 1), e--;
595
- } else i++;
592
+ const t = g[r - 1].node, i = g[r].node;
593
+ let n = U(s.value, t, i, s.isRange);
594
+ n = this._tag(n, s.index), g[r - 1].node = n, g.splice(r, 1), e--;
595
+ } else r++;
596
596
  }
597
597
  }
598
- }), m[0].node;
598
+ }), g[0].node;
599
599
  }), this._rulePlusMinusOp = this.RULE("rulePlusMinusOp", () => {
600
600
  const { PlusOp: e, MinOp: t } = this._vocab;
601
601
  return this.OR([{ ALT: () => this.CONSUME(e) }, { ALT: () => this.CONSUME(t) }]);
602
602
  }), this._rulePostfixOp = this.RULE("rulePostfixOp", () => {
603
- const { PercentOp: e } = this._vocab;
604
- let t = this.SUBRULE(this._rulePrefixOp);
605
- const s = [];
603
+ const { PercentOp: t } = this._vocab;
604
+ let s = this.SUBRULE(this._rulePrefixOp);
605
+ const r = [];
606
606
  return this.MANY(() => {
607
- const t = this.CONSUME(e).image;
607
+ const e = this.CONSUME(t).image;
608
608
  this.ACTION(() => {
609
- s.push([t, this.getLexerPosition()]);
609
+ r.push([e, this.getLexerPosition()]);
610
610
  });
611
611
  }), this.ACTION(() => {
612
- const e = s.length;
613
- if (0 !== e) for (let r = 0; r < e; r++) {
614
- const e = s[r], i = e[0], n = e[1], o = C.includes(i);
615
- t = m(i, t, o), t = this._tag(t, n);
612
+ const t = r.length;
613
+ if (0 !== t) for (let i = 0; i < t; i++) {
614
+ const t = r[i], n = t[0], o = t[1], a = f.includes(n);
615
+ s = e(n, s, a), s = this._tag(s, o);
616
616
  }
617
- }), t;
617
+ }), s;
618
618
  }), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
619
619
  const { PlusOp: e, MinOp: t, ImplicitIntersectOp: s } = this._vocab, r = [];
620
620
  this.MANY(() => {
@@ -631,42 +631,48 @@ var te = {
631
631
  return this.ACTION(() => {
632
632
  const e = r.length;
633
633
  if (0 !== e) for (let t = e - 1; t >= 0; t--) {
634
- const e = r[t], s = e[0], n = e[1], o = C.includes(s);
634
+ const e = r[t], s = e[0], n = e[1], o = f.includes(s);
635
635
  i = _(s, i, o), i = this._tag(i, n);
636
636
  }
637
637
  }), i;
638
638
  }), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
639
- const { RangeOp: e, RangeTrimFullOp: t, RangeTrimLeadingOp: s, RangeTrimTrailingOp: r, ArrayAnchorOp: i } = this._vocab, n = [];
640
- return n.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
641
- this.CONSUME(i), n.push({ anchor: this.getLexerPosition() });
639
+ const { RangeOp: t, RangeTrimFullOp: s, RangeTrimLeadingOp: r, RangeTrimTrailingOp: i, ArrayAnchorOp: n } = this._vocab, o = [];
640
+ return o.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
641
+ this.CONSUME(n), o.push({ anchor: this.getLexerPosition() });
642
642
  }), this.MANY(() => {
643
- const o = {
643
+ const e = {
644
644
  value: this.OR(this._c2 || (this._c2 = [
645
- { ALT: () => this.CONSUME(e).image },
646
645
  { ALT: () => this.CONSUME(t).image },
647
646
  { ALT: () => this.CONSUME(s).image },
648
- { ALT: () => this.CONSUME(r).image }
647
+ { ALT: () => this.CONSUME(r).image },
648
+ { ALT: () => this.CONSUME(i).image }
649
649
  ])),
650
650
  index: this.getLexerPosition()
651
651
  }, a = this.SUBRULE2(this._ruleCallOp);
652
- n.push({
653
- op: o,
652
+ o.push({
653
+ op: e,
654
654
  node: a
655
655
  }), this.MANY3(() => {
656
- this.CONSUME2(i), n.push({ anchor: this.getLexerPosition() });
656
+ this.CONSUME2(n), o.push({ anchor: this.getLexerPosition() });
657
657
  });
658
658
  }), this.ACTION(() => {
659
- for (let e = 1; e < n.length; e++) {
660
- const t = n[e];
661
- if (void 0 !== t.anchor) {
662
- n[0].node = this._tag(m("#", n[0].node, !0), t.anchor);
659
+ for (let e = 1; e + 1 < o.length; e++) {
660
+ const t = o[e], s = o[e + 1];
661
+ if (":" !== t.op?.value || ":" !== s.op?.value) continue;
662
+ const r = K(t.node);
663
+ r && K(s.node) === r && K(o[e - 1].node) !== r && (t.node = this._tag(U(":", t.node, s.node, !0), s.op.index), o.splice(e + 1, 1));
664
+ }
665
+ for (let t = 1; t < o.length; t++) {
666
+ const s = o[t];
667
+ if (void 0 !== s.anchor) {
668
+ o[0].node = this._tag(e("#", o[0].node, !0), s.anchor);
663
669
  continue;
664
670
  }
665
- const s = t.op;
666
- let r = l(s.value, n[0].node, t.node, !0);
667
- r = this._tag(r, s.index), n[0].node = r;
671
+ const r = s.op;
672
+ let i = U(r.value, o[0].node, s.node, !0);
673
+ i = this._tag(i, r.index), o[0].node = i;
668
674
  }
669
- }), n[0].node;
675
+ }), o[0].node;
670
676
  }), this._ruleCallOp = this.RULE("ruleCallOp", () => {
671
677
  const { OpenParen: e, CloseParen: t } = this._vocab;
672
678
  let s = this.SUBRULE(this._ruleFormula);
@@ -677,7 +683,7 @@ var te = {
677
683
  },
678
684
  DEF: () => {
679
685
  this.CONSUME(e);
680
- const r = this.getLexerPosition(), i = this.SUBRULE(this._ruleFunctionArguments), n = s, o = this.ACTION(() => this._tag(T(n, i), r)), a = this.OPTION(() => this.CONSUME(t));
686
+ const r = this.getLexerPosition(), i = this.SUBRULE(this._ruleFunctionArguments), n = s, o = this.ACTION(() => this._tag(l(n, i), r)), a = this.OPTION(() => this.CONSUME(t));
681
687
  this.ACTION(() => {
682
688
  a || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()), s = o;
683
689
  });
@@ -699,7 +705,7 @@ var te = {
699
705
  for (; e.length > 1;) {
700
706
  let t = e.length - 1;
701
707
  for (let s = 0; s < t; s++) {
702
- const r = e[s], i = e[s + 1], n = l(" ", r, i, !0), o = this._tokenMap.get(r);
708
+ const r = e[s], i = e[s + 1], n = U(" ", r, i, !0), o = this._tokenMap.get(r);
703
709
  o && delete o.tokenIndexClose;
704
710
  const a = this._tokenMap.get(i), h = a?.tokenIndex;
705
711
  if (void 0 !== h) {
@@ -729,81 +735,81 @@ var te = {
729
735
  }), t;
730
736
  }), this._ruleParen = this.RULE("ruleParen", () => {
731
737
  const { OpenParen: e, CloseParen: t } = this._vocab;
732
- return this._processParen(A.Paren, e, t);
738
+ return this._processParen(R.Paren, e, t);
733
739
  }), this._ruleLiteralArray = this.RULE("ruleLiteralArray", () => {
734
- const { OpenCurlyParen: e, CloseCurlyParen: s, ColSeparator: r, RowSeparator: i } = this._vocab;
735
- let n = t();
740
+ const { OpenCurlyParen: e, CloseCurlyParen: t, ColSeparator: s, RowSeparator: r } = this._vocab;
741
+ let n = c();
736
742
  this.CONSUME(e);
737
743
  const o = this.getLexerPosition();
738
- let a = this.ACTION(() => this._tag(p(n), o));
744
+ let a = this.ACTION(() => this._tag(i(n), o));
739
745
  const h = this.SUBRULE(this._ruleLiteralForArray);
740
746
  this.ACTION(() => {
741
747
  n.value.push(h);
742
748
  }), this.MANY(() => {
743
749
  let e = !1;
744
750
  this.OR([{ ALT: () => {
745
- this.CONSUME(r), e = !0;
746
- } }, { ALT: () => this.CONSUME(i) }]);
747
- const s = this.SUBRULE2(this._ruleLiteralForArray);
751
+ this.CONSUME(s), e = !0;
752
+ } }, { ALT: () => this.CONSUME(r) }]);
753
+ const t = this.SUBRULE2(this._ruleLiteralForArray);
748
754
  this.ACTION(() => {
749
- e || (n = t(), a.value.push(n)), n.value.push(s);
755
+ e || (n = c(), a.value.push(n)), n.value.push(t);
750
756
  });
751
757
  });
752
- const l = this.OPTION(() => this.CONSUME(s));
758
+ const l = this.OPTION(() => this.CONSUME(t));
753
759
  return a = this.ACTION(() => (l || this._reportError(a, "Missing closing parenthesis '}'", o), this._tagClose(a, this.getLexerPosition()))), a;
754
760
  }), this._ruleLiteralForArray = this.RULE("ruleLiteralForArray", () => {
755
- const { StringToken: t, BooleanToken: s, LiteralError: r, RefError: o } = this._vocab;
761
+ const { StringToken: e, BooleanToken: s, LiteralError: r, RefError: i } = this._vocab;
756
762
  return this.OR([
757
763
  { ALT: () => {
758
- const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), s = this.ACTION(() => this._tag(n(t.image, this._locale), this.getLexerPosition()));
759
- return this.ACTION(() => e ? i(e.image, s) : s);
764
+ const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), s = this.ACTION(() => this._tag(a(t.image, this._locale), this.getLexerPosition()));
765
+ return this.ACTION(() => e ? x(e.image, s) : s);
760
766
  } },
761
767
  { ALT: () => {
762
- const e = this.CONSUME(t);
763
- return this.ACTION(() => this._tag(a(e.image), this.getLexerPosition()));
768
+ const t = this.CONSUME(e);
769
+ return this.ACTION(() => this._tag(A(t.image), this.getLexerPosition()));
764
770
  } },
765
771
  { ALT: () => {
766
- const t = this.CONSUME(s);
767
- return this.ACTION(() => this._tag(e(t.image, this._locale), this.getLexerPosition()));
772
+ const e = this.CONSUME(s);
773
+ return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
768
774
  } },
769
775
  { ALT: () => {
770
776
  const e = this.CONSUME(r);
771
- return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
777
+ return this.ACTION(() => this._tag(p(e.image, this._locale), this.getLexerPosition()));
772
778
  } },
773
779
  { ALT: () => {
774
- const e = this.CONSUME(o);
775
- return this.ACTION(() => this._tag(h(e.image, this._locale), this.getLexerPosition()));
780
+ const e = this.CONSUME(i);
781
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
776
782
  } }
777
783
  ]);
778
784
  }), this._ruleLiteral = this.RULE("ruleLiteral", () => {
779
- const { StringToken: t, BooleanToken: s, LiteralError: r, RefError: i } = this._vocab;
785
+ const { StringToken: e, BooleanToken: s, LiteralError: r, RefError: i } = this._vocab;
780
786
  return this.OR([
781
787
  { ALT: () => {
782
788
  const e = this.SUBRULE(this._ruleNumber);
783
- return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
789
+ return this.ACTION(() => this._tag(a(e.image, this._locale), this.getLexerPosition()));
784
790
  } },
785
791
  { ALT: () => {
786
- const e = this.CONSUME(t);
787
- return this.ACTION(() => this._tag(a(e.image), this.getLexerPosition()));
792
+ const t = this.CONSUME(e);
793
+ return this.ACTION(() => this._tag(A(t.image), this.getLexerPosition()));
788
794
  } },
789
795
  { ALT: () => {
790
- const t = this.CONSUME(s);
791
- return this.ACTION(() => this._tag(e(t.image, this._locale), this.getLexerPosition()));
796
+ const e = this.CONSUME(s);
797
+ return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
792
798
  } },
793
799
  { ALT: () => {
794
800
  const e = this.CONSUME(r);
795
- return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
801
+ return this.ACTION(() => this._tag(p(e.image, this._locale), this.getLexerPosition()));
796
802
  } },
797
803
  { ALT: () => {
798
804
  const e = this.CONSUME(i);
799
- return this.ACTION(() => this._tag(h(e.image, this._locale), this.getLexerPosition()));
805
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
800
806
  } }
801
807
  ]);
802
808
  }), this._ruleFunction = this.RULE("ruleFunction", () => {
803
809
  const { FunctionToken: e, OpenParen: t, CloseParen: s } = this._vocab, r = this.CONSUME(e).image, i = this.getLexerPosition();
804
810
  this.CONSUME(t);
805
- const n = this.SUBRULE(this._ruleFunctionArguments);
806
- let a = this.ACTION(() => this._tag(o(r, n), i));
811
+ const o = this.SUBRULE(this._ruleFunctionArguments);
812
+ let a = this.ACTION(() => this._tag(n(r, o), i));
807
813
  const h = this.OPTION(() => this.CONSUME(s));
808
814
  return a = this.ACTION(() => (h || this._reportError(a, "Missing closing parenthesis ')'", i), this._tagClose(a, this.getLexerPosition()))), a;
809
815
  }), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
@@ -837,8 +843,8 @@ var te = {
837
843
  return this._tag(e.root, s);
838
844
  });
839
845
  }), this._ruleReference = this.RULE("ruleReference", () => {
840
- const { Sheet: e, SheetQuoted: t, DivOp: s, MulOp: r, PlusOp: i, MinOp: n, ArgSeparator: o, Cell: a, NamedToken: l, SingleQuotedString: p, Column: g, AbsRow: m, DigitToken: _, RefError: E } = this._vocab;
841
- let L, f;
846
+ const { Sheet: e, SheetQuoted: t, DivOp: s, MulOp: r, PlusOp: i, MinOp: n, ArgSeparator: o, Cell: a, NamedToken: l, SingleQuotedString: c, Column: p, AbsRow: m, DigitToken: O, RefError: _ } = this._vocab;
847
+ let E, L;
842
848
  this.OPTION2({
843
849
  GATE: () => {
844
850
  for (let a = 1; a < 6; a++) {
@@ -849,50 +855,50 @@ var te = {
849
855
  return !1;
850
856
  },
851
857
  DEF: () => {
852
- f = this.getLexerPosition() + 1, L = this.SUBRULE(this._rulePrefixSheetName);
858
+ L = this.getLexerPosition() + 1, E = this.SUBRULE(this._rulePrefixSheetName);
853
859
  }
854
860
  });
855
- let C = this.OR([
861
+ let A = this.OR([
856
862
  { ALT: () => {
857
863
  const e = this.CONSUME(a), t = this.getLexerPosition();
858
- return this.ACTION(() => this._tag(u(e.image, this.rowIndex, this.colIndex), t));
864
+ return this.ACTION(() => this._tag(h(e.image, this.rowIndex, this.colIndex), t));
859
865
  } },
860
866
  { ALT: () => {
861
- const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(p) }]);
862
- return this.ACTION(() => this._tag(O(e.image), this.getLexerPosition()));
867
+ const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(c) }]);
868
+ return this.ACTION(() => this._tag(g(e.image), this.getLexerPosition()));
863
869
  } },
864
870
  { ALT: () => this.SUBRULE(this._ruleBracketedString) },
865
871
  { ALT: () => this.SUBRULE(this._ruleFunction) },
866
872
  { ALT: () => {
867
- const e = this.CONSUME(g);
868
- return this.ACTION(() => this._tag(c(e.image, this.colIndex), this.getLexerPosition()));
873
+ const e = this.CONSUME(p);
874
+ return this.ACTION(() => this._tag(u(e.image, this.colIndex), this.getLexerPosition()));
869
875
  } },
870
876
  { ALT: () => {
871
877
  const e = this.CONSUME(m);
872
- return this.ACTION(() => this._tag(d(e.image, this.rowIndex), this.getLexerPosition()));
878
+ return this.ACTION(() => this._tag(S(e.image, this.rowIndex), this.getLexerPosition()));
873
879
  } },
874
880
  { ALT: () => {
875
- const e = this.CONSUME(_);
876
- return this.ACTION(() => this._tag(d(e.image, this.rowIndex), this.getLexerPosition()));
881
+ const e = this.CONSUME(O);
882
+ return this.ACTION(() => this._tag(S(e.image, this.rowIndex), this.getLexerPosition()));
877
883
  } },
878
884
  { ALT: () => {
879
- const e = this.CONSUME(E);
880
- return this.ACTION(() => this._tag(h(e.image, this._locale), this.getLexerPosition()));
885
+ const e = this.CONSUME(_);
886
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
881
887
  } }
882
888
  ]);
883
889
  return this.ACTION(() => {
884
- if (L && C) {
885
- if ("" === L.name) return void this._reportError(C, `'${L.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
886
- let e = C;
887
- if (C.type === A.Postfix && C.inputs?.[0] && (e = C.inputs[0]), e.type === A.Cell || e.type === A.Named || e.type === A.Row || e.type === A.TableColumn || e.type === A.Error) {
888
- e.value.scope = L.name, e.value.scopeImage = L.image;
890
+ if (E && A) {
891
+ if ("" === E.name) return void this._reportError(A, `'${E.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
892
+ let e = A;
893
+ if (A.type === R.Postfix && A.inputs?.[0] && (e = A.inputs[0]), e.type === R.Cell || e.type === R.Named || e.type === R.Row || e.type === R.TableColumn || e.type === R.Error) {
894
+ e.value.scope = E.name, e.value.scopeImage = E.image;
889
895
  const t = this._tokenMap.get(e);
890
- t && void 0 !== f && (t.tokenIndex = f);
896
+ t && void 0 !== L && (t.tokenIndex = L);
891
897
  }
892
898
  }
893
- }), C;
899
+ }), A;
894
900
  }), this._rulePrefixSheetName = this.RULE("rulePrefixSheetName", () => {
895
- const { SheetQuoted: e, BracketedString: t, NamedToken: s, RangeOp: r, Sheet: i } = this._vocab;
901
+ const { SheetQuoted: e, BracketedString: t, NamedToken: s, Column: r, RangeOp: i, Sheet: n } = this._vocab;
896
902
  return this.OR([{ ALT: () => {
897
903
  const t = this.CONSUME(e).image;
898
904
  return {
@@ -904,15 +910,18 @@ var te = {
904
910
  this.OPTION(() => {
905
911
  e += this.CONSUME(t).image;
906
912
  }), this.OPTION2({
907
- GATE: () => this.LA(2).tokenType === r,
913
+ GATE: () => this.LA(2).tokenType === i,
908
914
  DEF: () => {
909
- e += this.CONSUME(s).image, this.CONSUME(r), e += ":";
915
+ e += this.OR2([{ ALT: () => this.CONSUME(s).image }, {
916
+ GATE: () => 36 !== this.LA(1).image.charCodeAt(0),
917
+ ALT: () => this.CONSUME(r).image
918
+ }]), this.CONSUME(i), e += ":";
910
919
  }
911
920
  });
912
- const n = this.CONSUME(i).image;
921
+ const o = this.CONSUME(n).image;
913
922
  return {
914
- name: e + n.slice(0, -1),
915
- image: e + n
923
+ name: e + o.slice(0, -1),
924
+ image: e + o
916
925
  };
917
926
  } }]);
918
927
  }), this._ruleNumber = this.RULE("ruleNumber", () => {
@@ -927,12 +936,12 @@ var te = {
927
936
  return this.MANY(() => {
928
937
  this.CONSUME(e), s.push(this.SUBRULE2(this._ruleIntersectOp));
929
938
  }), this.ACTION(() => 0 === s.length ? t : {
930
- type: A.List,
939
+ type: R.List,
931
940
  value: ",",
932
941
  inputs: [t, ...s],
933
942
  isReference: !0
934
943
  });
935
- }), this._lexer = E, this._locale = E.getLocale(), this._vocab = L, this._srParser = g?.srParser ?? new Z(this._locale), this.performSelfAnalysis();
944
+ }), this._lexer = m, this._locale = m.getLocale(), this._vocab = O, this._srParser = s?.srParser ?? new Q(this._locale), this.performSelfAnalysis();
936
945
  }
937
946
  getLexer() {
938
947
  return this._lexer;
@@ -942,26 +951,26 @@ var te = {
942
951
  let i;
943
952
  if (!r) return {
944
953
  root: {
945
- type: A.Unparsed,
954
+ type: R.Unparsed,
946
955
  value: s
947
956
  },
948
957
  errors: []
949
958
  };
950
959
  const n = r.tokens;
951
960
  if (0 === n.length) throw new M.Parse(J);
952
- return this.input = n, this._inputText = s, this._inputTextLength = s.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i = S(i, (t, s) => {
953
- const r = t.type, i = s?.isReference ? s.value : void 0, n = "string" == typeof i && Q.has(i), o = "string" == typeof i && q.has(i), a = n ? s.inputs : void 0, h = a ? a[0] === t ? a[1] : a[0] : void 0, l = this._lexer.getMaxRow();
954
- if (n && r !== A.Cell && Number.isInteger(t.value)) {
955
- const s = d(t.image, e);
956
- return N(s, t), "row" !== K(h) ? this._reportError(s, `'${t.image}' is not a valid reference — a whole row can only pair with another row (as in ${t.image}:${t.image})`) : H(t.image, l) || this._reportError(s, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), s;
961
+ return this.input = n, this._inputText = s, this._inputTextLength = s.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i = L(i, (t, s) => {
962
+ const r = t.type, i = s?.isReference ? s.value : void 0, n = "string" == typeof i && Z.has(i), o = "string" == typeof i && q.has(i), a = n ? s.inputs : void 0, h = a ? a[0] === t ? a[1] : a[0] : void 0, l = this._lexer.getMaxRow();
963
+ if (n && r !== R.Cell && Number.isInteger(t.value)) {
964
+ const s = S(t.image, e);
965
+ return I(s, t), "row" !== K(h) ? this._reportError(s, `'${t.image}' is not a valid reference — a whole row can only pair with another row (as in ${t.image}:${t.image})`) : H(t.image, l) || this._reportError(s, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), s;
957
966
  }
958
- if (o && r === A.Named) return this._reportError(t, `'${t.image ?? t.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`), t;
959
- if (r === A.Cell) {
967
+ if (o && r === R.Named) return this._reportError(t, `'${t.image ?? t.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`), t;
968
+ if (r === R.Cell) {
960
969
  const e = t.value, s = e.colIndex === Number.MIN_SAFE_INTEGER, r = e.rowIndex === Number.MIN_SAFE_INTEGER;
961
970
  if ((s || r) && K(h) === (s ? "row" : "col")) return s && !H(t.image, l) && this._reportError(t, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), t;
962
971
  if (s || r || e.colIndex >= 16384) {
963
- const n = O(t.image);
964
- N(n, t);
972
+ const n = g(t.image);
973
+ I(n, t);
965
974
  const a = e.scope;
966
975
  return a && (n.value.scope = a, n.value.scopeImage = e.scopeImage), s ? this._reportError(n, `'${t.image}' is not a valid reference — a row needs a column (use ${t.image}:${t.image} for the whole row)`) : r && t.image.includes("$") ? this._reportError(n, `'${t.image}' is not a valid reference — a whole column can only pair with another column (as in ${t.image}:${t.image})`) : o && this._reportError(n, `'${t.image}' is a name — '${i}' needs a cell or range on both sides`), n;
967
976
  }
@@ -1024,7 +1033,7 @@ var te = {
1024
1033
  _bindAllWhitespace(e) {
1025
1034
  if (e) {
1026
1035
  if (this._bindNodeWhitespace(e), e.inputs) for (const t of e.inputs) t && this._bindAllWhitespace(t);
1027
- if (e.type === A.Array && Array.isArray(e.value)) {
1036
+ if (e.type === R.Array && Array.isArray(e.value)) {
1028
1037
  for (const t of e.value) if (t && Array.isArray(t.value)) for (const e of t.value) e && this._bindAllWhitespace(e);
1029
1038
  }
1030
1039
  }