@sheetxl/sdk 0.8.0-beta.15 → 0.8.0-beta.17

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 (195) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/{DDQtExVGSoCzAf6-.mjs → B-Q1-7RgSnA75J32.mjs} +506 -502
  3. package/browser/esm/{Cl3jq6y4Idilod82.mjs → BI6NwRrdLCbPdz6f.mjs} +3 -3
  4. package/browser/esm/{Blo0Hwg2ojXt99Dl.mjs → BWNQcQyx8wt6huOq.mjs} +2 -2
  5. package/browser/esm/{Do8TQqQvnFXRlFu-.mjs → BY_-BTa5h6HnnZ1W.mjs} +3 -3
  6. package/browser/esm/{D4ZCoKyNCJvDQAkx.mjs → BlkstmZEklk6Y1QD.mjs} +23 -22
  7. package/browser/esm/{DpaqR081c-Q7WemN.mjs → BuKA3E-Ev8Dp5W2I.mjs} +2 -2
  8. package/browser/esm/{Bbrhl946_QbCz5WS.mjs → Byp_bvP9G-tN6hcz.mjs} +588 -587
  9. package/browser/esm/{CMSeF5rGzeuMUydM.mjs → C0o6WpBojS7XhV5m.mjs} +3 -3
  10. package/browser/esm/CAjITJT3eLst9Rhi.mjs +686 -0
  11. package/browser/esm/{CZ_ZPliIkoh8BViV.mjs → CFywn1iiD35nNNUP.mjs} +10 -10
  12. package/browser/esm/{DJNLo8Rd_5UQP0U5.mjs → CHByUyHFA3ESf7DX.mjs} +2 -2
  13. package/browser/esm/CLT3qGy_brDIwbYd.mjs +2017 -0
  14. package/browser/esm/{Blo0jHze0bQxnKh4.mjs → CVV4xqwD8gIjYj1E.mjs} +78 -78
  15. package/browser/esm/{FHp0QfwZMIfP0Sry.mjs → CWkaF7gYWCkW7vDA.mjs} +2 -2
  16. package/browser/esm/{CNM5d4p0Y7In0rTf.mjs → DCs7bk-yx0UhCvQ4.mjs} +3 -3
  17. package/browser/esm/{BsGN0Tk0jVc2n0hy.mjs → DDNerAeet8uDYKhf.mjs} +3 -3
  18. package/browser/esm/{D6OqcO9IWPaY211T.mjs → DGUOlgm1_WFmf_xO.mjs} +2 -2
  19. package/browser/esm/{Dp4OIVjjAVhpD815.mjs → DJTEQZiR9IFTuN_4.mjs} +3 -3
  20. package/browser/esm/{KgTozk3nvOZzEG27.mjs → DJrnSjYjFxJvpQiH.mjs} +2 -2
  21. package/browser/esm/{D0KMmRjGOQUs7Ls-.mjs → DTXsi--x2wgqgwtf.mjs} +3 -3
  22. package/browser/esm/{CPUobTehcKZllBDS.mjs → DUB6Oj_aiV3f8s5_.mjs} +51 -49
  23. package/browser/esm/{Bw66vzKThXKvXvPI.mjs → DW3kFc5t4Wnh5E9S.mjs} +2 -2
  24. package/browser/esm/{BzG0p8RdGDWHttVr.mjs → DkmqFp_-iUIy_l3D.mjs} +4 -4
  25. package/browser/esm/{zjEXdQiQruTkUyf5.mjs → Dlk1kRgkiBIpUxd9.mjs} +22 -22
  26. package/browser/esm/{tm7XJ-Zd_04xWKG6.mjs → DnMFW_oKYQxRjP1l.mjs} +2 -2
  27. package/browser/esm/{DA4S5eqog20pG7b2.mjs → DrmOaEx6CQ91zBsP.mjs} +29 -29
  28. package/browser/esm/{D8PxKK6OrmancpLT.mjs → DsWDvmky7CgzX_7W.mjs} +3 -3
  29. package/browser/esm/{DMbcmIZ-G2fbWn8v.mjs → Dx_dZ7jrw5Hxeoot.mjs} +2 -2
  30. package/browser/esm/{BN1MW1nuBndrzryn.mjs → Dy0TAi9WafVT8eke.mjs} +3 -3
  31. package/browser/esm/{L7SKr6r1tmMwFx6Q.mjs → JmmPE8Vsj85wdV8H.mjs} +2 -2
  32. package/browser/esm/{CIab4UYcHQQKTHeD.mjs → O970I8lbI7okqG7N.mjs} +404 -404
  33. package/browser/esm/{DwH4H_p6gTAcpQ17.mjs → WR3-xqcK1gF3ewAR.mjs} +4 -4
  34. package/browser/esm/XHhDDWrJiZJgWxPM.mjs +165 -0
  35. package/browser/esm/{KsfZhE6ocmYobGjY.mjs → YwDdO4YwcIE4OB0D.mjs} +2 -2
  36. package/browser/esm/aYpwVCDSwMUuz147.mjs +527 -0
  37. package/browser/esm/{BGPT-k25jo0UhtT5.mjs → gQzj95vSMXdKhpWf.mjs} +29032 -24101
  38. package/browser/esm/index.mjs +886 -578
  39. package/browser/esm/{CxhXbk-5XhaK8UNs.mjs → jotvQFBWO2jXAhWx.mjs} +2 -2
  40. package/browser/esm/{CWyzk_3eDCR9bKq6.mjs → mufbL88lyIKJEWyP.mjs} +1528 -1433
  41. package/browser/esm/{BVsG6Vpvb1ZzpURJ.mjs → qNv1x-Ny9TPbvZzj.mjs} +2 -2
  42. package/browser/esm/{XrasOsWQ-64jwMn1.mjs → taTjDyUIIxq2eClH.mjs} +4 -4
  43. package/browser/esm/{CqzKBrmmV-fWRoK7.mjs → yudASWe8CWXYcGt3.mjs} +22 -22
  44. package/licenses/dependencies.txt +69 -69
  45. package/node/esm/{CjwmkzMtjj6OMJbO.mjs → -q1xF3_2jmk3QHIY.mjs} +487 -483
  46. package/node/esm/{DDIiQZTdeY4vdK8_.mjs → 7ZwdVIsOdcziHpMD.mjs} +189 -189
  47. package/node/esm/{C7h7SvhWNwQ9TfGh.mjs → B6BQYUDRxbRnzca4.mjs} +4 -4
  48. package/node/esm/{DjsOfZn5vYpB7L6U.mjs → B8MYgBe4XICBSROW.mjs} +52 -50
  49. package/node/esm/{B8KEX44VZTFTTKb3.mjs → BBUVvO9Ma1RzbKux.mjs} +3 -3
  50. package/node/esm/{D9RwzPR5s2mWrbCQ.mjs → BQko-9y6mf2oQK7u.mjs} +2 -2
  51. package/node/esm/{BNiG1ISiMjs-G2mE.mjs → BSlFO0_8UZ38gfeE.mjs} +22 -22
  52. package/node/esm/{DUft-qpAS4MMANwG.mjs → Bgy7uWJVGwkN7AlD.mjs} +3 -3
  53. package/node/esm/{DyIASfKKPuNl5Xx-.mjs → BhosJbKOPgbJSZMY.mjs} +2 -2
  54. package/node/esm/BoLecFnIxhYKGor-.mjs +2040 -0
  55. package/node/esm/{WBHD7ECKG6HZ5UpY.mjs → BwyoLlHutolJw7OW.mjs} +2 -2
  56. package/node/esm/{Dh8o-woVpmUL50BD.mjs → CDgUHRW6vSASfqNr.mjs} +2 -2
  57. package/node/esm/{BZ0IRjh2hYuI86xW.mjs → CHS84ZGEoH6aeHsZ.mjs} +31 -30
  58. package/node/esm/{BRnNpoS8VpkAhdVk.mjs → CIlH2fSEpdYBZwUA.mjs} +2 -2
  59. package/node/esm/{BlzPuXtKvF3Qfr0p.mjs → CIxb44vA81H9lRip.mjs} +2 -2
  60. package/node/esm/{Cx9nQSsuyqhayyBS.mjs → Cb1-r2RCxcJZB6fM.mjs} +32675 -27215
  61. package/node/esm/{DKdFasYVvjAitASZ.mjs → CjCqcGyCYGkaMQI9.mjs} +2 -2
  62. package/node/esm/{D7ia4o3y5Wvl__9Y.mjs → ClJJC8tBpgsqHwdn.mjs} +2 -2
  63. package/node/esm/{C-JEySqMuKdpcKe0.mjs → Cle-_21jebWv_-D4.mjs} +3 -3
  64. package/node/esm/{j8DqCwPgfIPICFtf.mjs → D51xu0rubo34Ppeg.mjs} +1005 -1004
  65. package/node/esm/{Ddd1y3TP0kqnnSs7.mjs → DCSJKgcCQzOV-dMJ.mjs} +3 -3
  66. package/node/esm/{ZtF9EuipL7Z9Iwfs.mjs → DCaLNIs-_4Y6hJ8S.mjs} +2 -2
  67. package/node/esm/DTkV7IK2_ODMJAP5.mjs +115 -0
  68. package/node/esm/DfbVTAhNutxM74E8.mjs +169 -0
  69. package/node/esm/{DVejVdSBXzAFQbqo.mjs → DfrxGbxxowFmm3SF.mjs} +2 -2
  70. package/node/esm/{DW3u4bBJIUaHZ6m-.mjs → DgsBYF3xbjgx9Mzp.mjs} +2 -2
  71. package/node/esm/{CHBlLTJaoPUVxA2J.mjs → DxnBYzOueAKEqaQT.mjs} +22 -22
  72. package/node/esm/M3jahkTgfUxGyeZv.mjs +530 -0
  73. package/node/esm/{-afI0SRg_vgXtea7.mjs → NnrDjio_xwTBs05n.mjs} +3 -3
  74. package/node/esm/{BqvqbFsPQB0gEvwF.mjs → OCrS6pBT6lGRu82d.mjs} +1762 -1674
  75. package/node/esm/XhDjStxKy-dd3WKa.mjs +199 -0
  76. package/node/esm/{D9zb5xVRehABdbXL.mjs → Yo7_havHbr9VL8R4.mjs} +2 -2
  77. package/node/esm/{MtRwC1PMkOEb1Nty.mjs → btVWSwUwMjM0J5fS.mjs} +3 -3
  78. package/node/esm/{DQqXPS05dvF0F-gh.mjs → cRz94rkuvDrA8mr9.mjs} +2 -2
  79. package/node/esm/{BfXLtDqsXXYeZ6LX.mjs → fwfAgq8qIADcHmY4.mjs} +78 -78
  80. package/node/esm/index.mjs +913 -598
  81. package/node/esm/{OnkJkCGFDjamqIUQ.mjs → jqBKdf9DG54xqpaw.mjs} +3 -3
  82. package/node/esm/{C6b4rM62pIWIywlM.mjs → nxxwAZZF8NsdErJW.mjs} +2 -2
  83. package/node/esm/{B07QPde9GloqsW8e.mjs → oGGVbqahqfK45-Uz.mjs} +4 -4
  84. package/node/esm/{BlHlBRvKGt-4CS0A.mjs → zh6vcRzFqdV1aYh5.mjs} +2 -2
  85. package/package.json +7 -7
  86. package/resources/locales/de/model.msg.json +82 -1
  87. package/resources/locales/en/model.msg.json +80 -1
  88. package/types/scripting-api.json +9967 -9497
  89. package/types/scripting-enums.json +27 -0
  90. package/types/scripting.d.ts +2282 -166
  91. package/types/src/.generated/wasm/sdk.d.ts +332 -0
  92. package/types/src/calculation/Calculation.d.ts +8 -0
  93. package/types/src/calculation/ICalculation.d.ts +51 -0
  94. package/types/src/calculation/compiler/Types.d.ts +5 -0
  95. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +1 -1
  96. package/types/src/calculation/formula/FormulaBlock.d.ts +2 -0
  97. package/types/src/calculation/formula/IFormulaBlock.d.ts +18 -0
  98. package/types/src/calculation/grid/CalcGrid.d.ts +5 -1
  99. package/types/src/calculation/grid/CalcGridBackend.d.ts +36 -1
  100. package/types/src/calculation/grid/CalcGridProxy.d.ts +2 -0
  101. package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
  102. package/types/src/calculation/grid/FormulaHost.d.ts +3 -1
  103. package/types/src/calculation/grid/ICalcGrid.d.ts +88 -0
  104. package/types/src/calculation/grid/_CalcRequest.d.ts +9 -0
  105. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
  106. package/types/src/calculation/spatial/SpillEntry.d.ts +55 -4
  107. package/types/src/calculation/state/CalcNode.d.ts +6 -3
  108. package/types/src/calculation/state/CalculationContext.d.ts +4 -2
  109. package/types/src/calculation/state/_PivotView.d.ts +22 -0
  110. package/types/src/cell/ICell.d.ts +1 -21
  111. package/types/src/cellRange/ICellRange.d.ts +18 -2
  112. package/types/src/collections/MixedTypedArrayList.d.ts +16 -2
  113. package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +10 -0
  114. package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +3 -0
  115. package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +3 -0
  116. package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +3 -0
  117. package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +3 -0
  118. package/types/src/condition/BuiltInOperators/MatchesOperator.d.ts +10 -0
  119. package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
  120. package/types/src/condition/BuiltInOperators/index.d.ts +2 -0
  121. package/types/src/condition/Condition.d.ts +1 -0
  122. package/types/src/condition/ICondition.d.ts +15 -0
  123. package/types/src/condition/_ConditionUtils.d.ts +14 -0
  124. package/types/src/conditionalFormat/ConditionalFormat.d.ts +2 -1
  125. package/types/src/conditionalFormat/IConditionalFormat.d.ts +4 -3
  126. package/types/src/license/LicenseDetails.d.ts +27 -0
  127. package/types/src/license/LicenseManager.d.ts +24 -7
  128. package/types/src/license/_Utils.d.ts +34 -3
  129. package/types/src/license/index.d.ts +1 -0
  130. package/types/src/license/runtime.browser.d.ts +32 -4
  131. package/types/src/license/runtime.node.d.ts +8 -5
  132. package/types/src/license/summary.d.ts +18 -0
  133. package/types/src/pivot/IPivotTable.d.ts +1549 -13
  134. package/types/src/pivot/IPivotTableCollection.d.ts +70 -4
  135. package/types/src/pivot/PivotCache.d.ts +95 -11
  136. package/types/src/pivot/PivotDataField.d.ts +73 -0
  137. package/types/src/pivot/PivotField.d.ts +142 -0
  138. package/types/src/pivot/PivotTable.d.ts +548 -14
  139. package/types/src/pivot/PivotTableCollection.d.ts +18 -3
  140. package/types/src/pivot/_PivotAreas.d.ts +48 -0
  141. package/types/src/pivot/_PivotControls.d.ts +140 -0
  142. package/types/src/pivot/_PivotEngine.d.ts +9 -0
  143. package/types/src/pivot/_PivotGroups.d.ts +25 -0
  144. package/types/src/pivot/_PivotItems.d.ts +167 -0
  145. package/types/src/pivot/_PivotStructure.d.ts +237 -0
  146. package/types/src/pivot/_PivotStylePreview.d.ts +21 -0
  147. package/types/src/pivot/_PivotUtils.d.ts +37 -0
  148. package/types/src/pivot/engine/PivotAdd.d.ts +37 -0
  149. package/types/src/pivot/engine/PivotData.d.ts +65 -0
  150. package/types/src/pivot/engine/PivotEdit.d.ts +45 -0
  151. package/types/src/pivot/engine/PivotFilters.d.ts +50 -0
  152. package/types/src/pivot/engine/PivotFormulas.d.ts +72 -0
  153. package/types/src/pivot/engine/PivotLayout.d.ts +133 -0
  154. package/types/src/pivot/engine/PivotMove.d.ts +24 -0
  155. package/types/src/pivot/engine/PivotRefresh.d.ts +87 -0
  156. package/types/src/pivot/engine/PivotSort.d.ts +26 -0
  157. package/types/src/pivot/engine/PivotViewBuilder.d.ts +22 -0
  158. package/types/src/pivot/engine/index.d.ts +15 -0
  159. package/types/src/pivot/index.d.ts +4 -0
  160. package/types/src/pivot/kernel/KernelPivot.d.ts +63 -0
  161. package/types/src/pivot/kernel/_KernelLeaves.d.ts +100 -0
  162. package/types/src/pivot/kernel/_PivotAxisTree.d.ts +71 -0
  163. package/types/src/primitives/Range.d.ts +12 -1
  164. package/types/src/sheet/IWorksheet.d.ts +35 -0
  165. package/types/src/sheet/SheetCell.d.ts +21 -14
  166. package/types/src/sheet/SheetRange.d.ts +3 -0
  167. package/types/src/sheet/Worksheet.d.ts +175 -7
  168. package/types/src/sheet/_PivotFootprint.d.ts +42 -0
  169. package/types/src/sheet/_SheetAutoFitUtils.d.ts +12 -1
  170. package/types/src/sheet/_SheetMutations.d.ts +47 -0
  171. package/types/src/sheet/_SheetStateTypes.d.ts +11 -0
  172. package/types/src/sheet/style/SheetCellStyle.d.ts +6 -0
  173. package/types/src/sheet/style/SheetPivotStyle.d.ts +83 -0
  174. package/types/src/sheet/style/_IndentUnit.d.ts +14 -0
  175. package/types/src/sheetHeader/SheetCellHeader.d.ts +1 -1
  176. package/types/src/slicer/ISlicer.d.ts +114 -34
  177. package/types/src/slicer/ITimeline.d.ts +61 -0
  178. package/types/src/slicer/Slicer.d.ts +76 -3
  179. package/types/src/slicer/_PivotSlicer.d.ts +51 -0
  180. package/types/src/slicer/index.d.ts +1 -0
  181. package/types/src/table/AnchoredTable.d.ts +11 -1
  182. package/types/src/table/ITable.d.ts +5 -6
  183. package/types/src/table/ITableStyle.d.ts +50 -34
  184. package/types/src/table/_BuiltInPivotStyles.d.ts +8 -0
  185. package/types/src/table/_BuiltInTableStyles.d.ts +0 -1
  186. package/types/src/type/ITypes.d.ts +5 -1
  187. package/types/src/workbook/IWorkbook.d.ts +8 -2
  188. package/types/src/workbook/Workbook.d.ts +72 -6
  189. package/browser/esm/BrHplg4RuI5jOmmr.mjs +0 -357
  190. package/browser/esm/eImPONkfn5DstmS8.mjs +0 -184
  191. package/node/esm/03AYPvCda2x9EOlY.mjs +0 -360
  192. package/node/esm/BmVQRGAijOHzgHmz.mjs +0 -199
  193. package/node/esm/Dk4KLs5GoRRuD8J4.mjs +0 -115
  194. package/types/src/pivot/_PivotXml.d.ts +0 -24
  195. package/types/src/primitives/Grouping.d.ts +0 -65
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.15
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./DKdFasYVvjAitASZ.mjs";
7
+ import { t as e } from "./CjCqcGyCYGkaMQI9.mjs";
8
8
  import { FormulaError as t } from "@sheetxl/primitives";
9
9
  import { messageKey as n } from "@sheetxl/utils";
10
10
  var s = ["linkedCell", "listFillRange"], r = /^(?:'((?:[^']|'')+)'|([^'!]+))!([^!]+)$/, i = Object.freeze([]), o = n("op.setControlCaption"), l = n("op.setControlMacro"), a = n("op.setControlLink"), c = n("op.setControlValue"), u = n("op.setControlRange"), d = n("op.setControlItems"), h = class extends e {
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.15
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
7
  var d = [
8
8
  [
@@ -0,0 +1,115 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { Hi as r, Mr as e, Ui as t, Vr as n, Wr as o, Xr as s, gt as a, mt as i, pi as c, rr as l } from "./Cb1-r2RCxcJZB6fM.mjs";
8
+ import { C as u, E as m, T as f, h as p, i as d, r as g, w as h, x as y, y as v } from "./-q1xF3_2jmk3QHIY.mjs";
9
+ import { n as w, r as x, t as k } from "./XhDjStxKy-dd3WKa.mjs";
10
+ import { i as j, r as T } from "./7ZwdVIsOdcziHpMD.mjs";
11
+ import { a as b, n as E } from "./Bgy7uWJVGwkN7AlD.mjs";
12
+ import { ScalarType as I } from "@sheetxl/primitives";
13
+ import S from "@sheetxl/formulas/declarations";
14
+ import C from "@sheetxl/formulas-extended/declarations";
15
+ var M = null;
16
+ function O(r) {
17
+ return M || (M = (() => {
18
+ const r = /* @__PURE__ */ new Map(), e = [
19
+ ...S,
20
+ ...C,
21
+ E
22
+ ];
23
+ for (const { declarations: t, enums: n } of e) {
24
+ const e = /* @__PURE__ */ new Map(), o = (r) => {
25
+ let t = e.get(r);
26
+ if (!t) {
27
+ const o = n?.[r];
28
+ if (!o) return;
29
+ t = {
30
+ id: r,
31
+ type: "string" === o.s ? I.String : I.Number,
32
+ members: o.m
33
+ }, e.set(r, t);
34
+ }
35
+ return t;
36
+ };
37
+ for (const e of Object.keys(t)) {
38
+ const { decl: n } = b(e, t[e], o), s = new l(n);
39
+ r.set(e.toUpperCase(), {
40
+ getName: () => e,
41
+ getDeclaration: () => s,
42
+ isBuiltIn: () => !0
43
+ });
44
+ }
45
+ }
46
+ return r;
47
+ })()), M.get(r.toUpperCase()) ?? null;
48
+ }
49
+ var U = null, z = Object.freeze({
50
+ rowStart: 0,
51
+ colStart: 0,
52
+ rowEnd: t,
53
+ colEnd: r
54
+ }), D = (r) => O(r);
55
+ function N(r, e) {
56
+ if ("string" != typeof r || 0 === r.length) return null;
57
+ U || (U = new T());
58
+ const t = e?.anchor;
59
+ let n;
60
+ try {
61
+ const o = U.parse(t?.rowIndex ?? 0, t?.colIndex ?? 0, r);
62
+ if (o.errors.length > 0 || !o.root || o.root.type === c.Unparsed) return null;
63
+ if (n = o.root, e?.normalize) {
64
+ const r = h(n, D);
65
+ "string" != typeof r && (n = r), n = m(n, D), n = g(n, D), n = v(n), n = f(n), n = u(n), n = d(n), n = y(n);
66
+ }
67
+ } catch {
68
+ return null;
69
+ }
70
+ return w(n, null);
71
+ }
72
+ function B(r, e) {
73
+ return x(r, e);
74
+ }
75
+ function H(r, e) {
76
+ const t = p(g(v(k(r)), D)), n = e?.entireCoords ?? z, o = !0 === e?.r1c1;
77
+ return (r) => o ? a(t, n) : i(t, n, r?.rowIndex ?? 0, r?.colIndex ?? 0);
78
+ }
79
+ function L(r) {
80
+ const t = r.trim();
81
+ if (!t) return;
82
+ let a;
83
+ try {
84
+ const r = j.shared().tokenize(t, !1);
85
+ if (r.errors.length > 0) return;
86
+ a = r.tokens;
87
+ } catch {
88
+ return;
89
+ }
90
+ let i = 0, c = 0;
91
+ if (2 === a.length) {
92
+ const r = a[0].tokenType?.name;
93
+ "MinOp" === r ? (i = -1, c = 1) : "PlusOp" === r && (i = 1, c = 1);
94
+ }
95
+ if (a.length - c !== 1) return;
96
+ const l = a[c], u = l.image;
97
+ try {
98
+ switch (l.tokenType?.name) {
99
+ case "NumberToken":
100
+ case "ScientificDigit":
101
+ case "DigitToken": {
102
+ const r = o(u).value;
103
+ return 0 === i ? r : i * r;
104
+ }
105
+ case "StringToken": return 0 === i ? s(u).value : void 0;
106
+ case "BooleanToken": return 0 === i ? e(u).value : void 0;
107
+ case "LiteralError":
108
+ case "RefError": return 0 === i ? n(u).value : void 0;
109
+ default: return;
110
+ }
111
+ } catch {
112
+ return;
113
+ }
114
+ }
115
+ export { O as getFunctionDeclaration, H as imager, N as parse, L as readFormulaLiteral, B as transform };
@@ -0,0 +1,169 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { Pa as t, gi as e, n as s } from "./Cb1-r2RCxcJZB6fM.mjs";
8
+ import { FormulaError as n } from "@sheetxl/primitives";
9
+ var i = t.Type, o = 4294967295, r = {
10
+ SUM: 0,
11
+ COUNT: 1,
12
+ COUNTA: 2,
13
+ AVERAGE: 3,
14
+ MIN: 4,
15
+ MAX: 5,
16
+ PRODUCT: 6,
17
+ "VAR.S": 7,
18
+ VAR: 7,
19
+ "VAR.P": 8,
20
+ VARP: 8,
21
+ "STDEV.S": 9,
22
+ STDEV: 9,
23
+ "STDEV.P": 10,
24
+ STDEVP: 10
25
+ }, l = class {
26
+ constructor() {
27
+ this._next = 1, this._numbers = /* @__PURE__ */ new Map(), this._keys = /* @__PURE__ */ new Map(), this._strings = /* @__PURE__ */ new Map(), this.values = [null];
28
+ }
29
+ of(t) {
30
+ if (null == t) return 0;
31
+ if ("number" == typeof t) return this._number(t);
32
+ const s = e(t);
33
+ let n = this._keys.get(s);
34
+ return void 0 === n && (n = this._next++, this._keys.set(s, n), this.values[n] = t), n;
35
+ }
36
+ fill(t, e) {
37
+ if (t instanceof s && t._visitColumnRuns((t, s, n, i) => this._run(e, t, s, n, i))) return;
38
+ const n = e.length;
39
+ for (const s of t.entries()) {
40
+ const t = s.coords.rowIndex;
41
+ t < n && (e[t] = this.of(s.value));
42
+ }
43
+ }
44
+ _number(t) {
45
+ let e = this._numbers.get(t);
46
+ return void 0 === e && (e = this._next++, this._numbers.set(t, e), this.values[e] = t), e;
47
+ }
48
+ _run(e, s, n, o, r) {
49
+ if (!(n instanceof t && n.codec)) {
50
+ for (let t = o, i = s; t <= r; t++, i++) e[i] = this.of(n.at(t));
51
+ return;
52
+ }
53
+ const l = n.codec;
54
+ let a = this._strings.get(l);
55
+ a || this._strings.set(l, a = /* @__PURE__ */ new Map());
56
+ const { types: u, defaultType: c, ints: d, doubles: f, intShift: h, intOffset: p } = n.getViews();
57
+ for (let t = o, _ = s; t <= r; t++, _++) {
58
+ const s = u ? u[t] : c;
59
+ if (s === i.Int32) e[_] = this._number(d[(t << h) + p]);
60
+ else if (s === i.Float64) e[_] = this._number(f[t]);
61
+ else if (s === i.String) {
62
+ const s = d[(t << h) + p];
63
+ let n = a.get(s);
64
+ void 0 === n && a.set(s, n = this.of(l.decodeString(s))), e[_] = n;
65
+ } else s === i.Blank ? e[_] = 0 : e[_] = this.of(n.at(t));
66
+ }
67
+ }
68
+ }, a = class {
69
+ constructor() {
70
+ this.table = [n.BuiltIn.Div0], this._codes = /* @__PURE__ */ new Map();
71
+ }
72
+ codeOf(t) {
73
+ let e = this._codes.get(t);
74
+ return void 0 === e && (e = this.table.length, this.table.push(t), this._codes.set(t, e)), e;
75
+ }
76
+ }, u = (e, n, o) => {
77
+ const r = n.types.length, l = {
78
+ ok: !0,
79
+ numeric: !0
80
+ }, a = (t, e) => c(n, t, e, o, l);
81
+ if (!(e instanceof s && e._visitColumnRuns((e, s, o, r) => {
82
+ if (!(s instanceof t && s.codec)) {
83
+ for (let t = o, n = e; t <= r; t++, n++) a(n, s.at(t));
84
+ return;
85
+ }
86
+ const { types: l, defaultType: u, ints: c, doubles: d, intShift: f, intOffset: h } = s.getViews();
87
+ if (!l && u === i.Float64) return n.doubles.set(d.subarray(o, r + 1), e), void n.types.fill(i.Float64, e, e + r - o + 1);
88
+ for (let t = o, p = e; t <= r; t++, p++) {
89
+ const e = l ? l[t] : u;
90
+ e === i.Int32 ? (n.ints[p << 1] = c[(t << f) + h], n.types[p] = i.Int32) : e === i.Float64 ? (n.doubles[p] = d[t], n.types[p] = i.Float64) : e !== i.Blank && a(p, s.at(t));
91
+ }
92
+ }))) for (const t of e.entries()) {
93
+ const e = t.coords.rowIndex;
94
+ e < r && a(e, t.value);
95
+ }
96
+ return l;
97
+ }, c = (t, e, s, o, r) => {
98
+ if (null != s) {
99
+ switch (typeof s) {
100
+ case "number":
101
+ t.doubles[e] = s, t.types[e] = i.Float64;
102
+ return;
103
+ case "string":
104
+ t.types[e] = i.String, r.numeric = !1;
105
+ return;
106
+ case "boolean":
107
+ t.types[e] = s ? i.True : i.False, r.numeric = !1;
108
+ return;
109
+ }
110
+ if (n.isError(s)) return t.ints[e << 1] = o.codeOf(s), void (t.types[e] = i.Error);
111
+ r.ok = !1;
112
+ }
113
+ }, d = (e, s, o) => {
114
+ const r = o.table, l = new t(((t, e, s, n) => {
115
+ const o = !!(n & n - 1), r = 1 << i.Blank | 1 << i.False | 1 << i.True;
116
+ return {
117
+ buffer: t,
118
+ byteOffset: e,
119
+ length: s,
120
+ width: n & 1 << i.Float64 ? 8 : 4,
121
+ defaultType: o ? i.Blank : 31 - Math.clz32(n),
122
+ typeMask: n,
123
+ hasTypes: o,
124
+ hasSlots: 0 !== (n & ~r)
125
+ };
126
+ })(e, s.ptr(), s.length(), s.type_mask()), {
127
+ isError: () => !1,
128
+ encodeString: () => 0,
129
+ decodeString: () => null,
130
+ encodeError: () => 0,
131
+ decodeError: (t) => r[t] ?? null
132
+ });
133
+ return (t) => {
134
+ const e = l.at(t) ?? null;
135
+ return "number" != typeof e || Number.isFinite(e) ? e : n.BuiltIn.Num;
136
+ };
137
+ }, f = (t, e) => `${t}|${e.join(",")}`, h = class {
138
+ constructor(t, e) {
139
+ this._json = t, this._values = new Map(t.values), this._mode = e;
140
+ }
141
+ getDataFields() {
142
+ return this._json.dataFields;
143
+ }
144
+ getFields() {
145
+ return this._json.fields;
146
+ }
147
+ getValue(t, e) {
148
+ const s = this._json.fields, i = [];
149
+ for (let t = 0; t < s.length; t++) {
150
+ const n = s[t].page, o = e.get(t);
151
+ if (void 0 === n) i.push(o ?? -1);
152
+ else if (void 0 !== o && o !== n) return;
153
+ }
154
+ const o = f(t, i);
155
+ return "blocked" === this._mode ? o === this._json.block?.first ? n.BuiltIn.Spill : void 0 : "wanted" !== this._mode ? this._values.get(o) : void 0;
156
+ }
157
+ isComputed() {
158
+ return !1 !== this._json.computed;
159
+ }
160
+ }, p = {
161
+ placed: /* @__PURE__ */ new WeakMap(),
162
+ blocked: /* @__PURE__ */ new WeakMap(),
163
+ wanted: /* @__PURE__ */ new WeakMap()
164
+ }, _ = (t, e = "placed") => {
165
+ const s = p[e];
166
+ let n = s.get(t);
167
+ return n || (n = new h(t, e), s.set(t, n)), n;
168
+ };
169
+ export { r as a, c, l as i, u as l, _ as n, o, a as r, d as s, f as t };
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.15
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
7
  import { readFile as t } from "node:fs/promises";
8
8
  import { fileURLToPath as r } from "node:url";
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.15
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
7
  var d = [[
8
8
  "0 r vc",
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.15
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { Ii as e, gn as t } from "./Cx9nQSsuyqhayyBS.mjs";
8
- import { a as n, i as s, n as o, r, t as i } from "./DUft-qpAS4MMANwG.mjs";
7
+ import { ir as e, ka as t } from "./Cb1-r2RCxcJZB6fM.mjs";
8
+ import { a as n, i as s, n as o, r, t as i } from "./Bgy7uWJVGwkN7AlD.mjs";
9
9
  import { ScalarType as a } from "@sheetxl/primitives";
10
10
  import { CommonUtils as c, DefaultLanguagePackService as f, fetchLocaleResource as l } from "@sheetxl/utils";
11
11
  import m from "@sheetxl/formulas";
@@ -27,7 +27,7 @@ var d = [
27
27
  files: ["grammar.json"]
28
28
  }
29
29
  ], p = /* @__PURE__ */ new Set();
30
- function g(e, t) {
30
+ function h(e, t) {
31
31
  const n = `${e.id}\0${t}`;
32
32
  p.has(n) || (p.add(n), f.registerPack(e.id, t, async () => {
33
33
  const n = { tag: t };
@@ -37,30 +37,30 @@ function g(e, t) {
37
37
  })), n;
38
38
  }));
39
39
  }
40
- function h(e) {
41
- if (e && "en" !== e && !e.startsWith("en-")) for (const t of d) g(t, e);
40
+ function g(e) {
41
+ if (e && "en" !== e && !e.startsWith("en-")) for (const t of d) h(t, e);
42
42
  }
43
43
  var x = !1;
44
44
  var y = /* @__PURE__ */ new WeakMap();
45
45
  function j() {
46
- const t = e(), n = t?.functionHelp;
47
- if (!t || !n) return Promise.resolve(null);
48
- let s = y.get(t);
46
+ const e = t(), n = e?.functionHelp;
47
+ if (!e || !n) return Promise.resolve(null);
48
+ let s = y.get(e);
49
49
  return s || (s = n().then((e) => e && "object" == typeof e ? "default" in e ? {
50
50
  functions: e.default,
51
51
  enums: e.enums
52
52
  } : {
53
53
  functions: e,
54
54
  enums: void 0
55
- } : null).catch(() => null), y.set(t, s)), s;
55
+ } : null).catch(() => null), y.set(e, s)), s;
56
56
  }
57
- function v(e, t) {
58
- x || (x = !0, h(f.getActive()), f.addChangeListener((e) => h(e)));
59
- const n = m(e, k);
60
- if (u(e, k, n), k(n, e, s(e), o.declarations, r, i), t) for (const s of t) s(e, k, n);
57
+ function k(e, t) {
58
+ x || (x = !0, g(f.getActive()), f.addChangeListener((e) => g(e)));
59
+ const n = m(e, v);
60
+ if (u(e, v, n), v(n, e, s(e), o.declarations, r, i), t) for (const s of t) s(e, v, n);
61
61
  return n;
62
62
  }
63
- var k = (s, o, r, i, f, l, m) => {
63
+ var v = (s, o, r, i, f, l, m) => {
64
64
  const u = /* @__PURE__ */ new Map(), d = (e) => {
65
65
  let t = u.get(e);
66
66
  if (!t) {
@@ -75,9 +75,9 @@ var k = (s, o, r, i, f, l, m) => {
75
75
  return t;
76
76
  }, p = Object.keys(i);
77
77
  for (const a of p) {
78
- const m = i[a], u = a, { decl: p, enumIds: g } = n(u, m, d), h = r[m.fn ?? u];
78
+ const m = i[a], u = a, { decl: p, enumIds: h } = n(u, m, d), g = r[m.fn ?? u];
79
79
  let x, y;
80
- const v = new t(p, h, o, async (t) => {
80
+ const k = new e(p, g, o, async (e) => {
81
81
  if (!f) return null;
82
82
  let n;
83
83
  if (x) n = x;
@@ -100,14 +100,14 @@ var k = (s, o, r, i, f, l, m) => {
100
100
  }
101
101
  const d = {
102
102
  name: u,
103
- nameLocal: e()?.functions?.[u] ?? u,
103
+ nameLocal: t()?.functions?.[u] ?? u,
104
104
  summary: r?.s ?? s.s ?? "",
105
105
  category: r?.c ?? s.c ?? l ?? null,
106
106
  parameters: a,
107
107
  deprecated: s.h ?? !1,
108
108
  links: s.l ?? c.EmptyArray
109
109
  };
110
- for (const e of g) {
110
+ for (const e of h) {
111
111
  const t = [
112
112
  o?.enums?.[`${u}:${e}`],
113
113
  o?.enums?.[e],
@@ -127,7 +127,7 @@ var k = (s, o, r, i, f, l, m) => {
127
127
  }
128
128
  return d;
129
129
  }, !0);
130
- s.set(u, v);
130
+ s.set(u, k);
131
131
  }
132
132
  };
133
- export { v as initializeFunctions };
133
+ export { k as initializeFunctions };