@allyhub/sdk 0.4.0 → 0.5.0

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 (549) hide show
  1. package/{node_modules → dist/node_modules}/@allyhub-next/audio/package.json +1 -1
  2. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.d.ts +31 -0
  3. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +3 -0
  4. package/{node_modules/@allyhub-next/slides-core → dist/node_modules/@allyhub-next/chart}/dist/chart.d.ts +26 -15
  5. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +2 -0
  6. package/dist/node_modules/@allyhub-next/chart/dist/index.d.ts +3 -0
  7. package/dist/node_modules/@allyhub-next/chart/dist/index.js +2 -0
  8. package/dist/node_modules/@allyhub-next/chart/package.json +14 -0
  9. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/reference.d.ts +0 -86
  10. package/dist/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
  11. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +4908 -0
  12. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
  13. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/slides.d.ts +3 -0
  14. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
  15. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/index.d.ts +1 -0
  16. package/dist/node_modules/@allyhub-next/formats/dist/index.js +2 -0
  17. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/items.d.ts +1 -1
  18. package/dist/node_modules/@allyhub-next/formats/dist/items.js +2 -0
  19. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +2146 -0
  20. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
  21. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +28 -0
  22. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +2 -0
  23. package/{node_modules → dist/node_modules}/@allyhub-next/formats/package.json +1 -1
  24. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.d.ts +10 -0
  25. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.js +1 -1
  26. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/notes.d.ts +2 -0
  27. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
  28. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/tools.d.ts +6 -0
  29. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
  30. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/package.json +1 -1
  31. package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/lock.d.ts +2 -0
  32. package/dist/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
  33. package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/runtimes.d.ts +6 -0
  34. package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +4 -0
  35. package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/package.json +1 -1
  36. package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.d.ts +7 -0
  37. package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/phone.d.ts +3 -1
  38. package/dist/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
  39. package/{node_modules → dist/node_modules}/@allyhub-next/scenery/package.json +1 -1
  40. package/dist/node_modules/@allyhub-next/sheet/dist/address.d.ts +32 -0
  41. package/dist/node_modules/@allyhub-next/sheet/dist/address.js +2 -0
  42. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.d.ts +23 -0
  43. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +2 -0
  44. package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.d.ts +204 -0
  45. package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.js +2 -0
  46. package/dist/node_modules/@allyhub-next/sheet/dist/api/code.d.ts +19 -0
  47. package/dist/node_modules/@allyhub-next/sheet/dist/api/code.js +2 -0
  48. package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.d.ts +3 -0
  49. package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.js +2 -0
  50. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +7 -0
  51. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +2 -0
  52. package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.d.ts +4 -0
  53. package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.js +2 -0
  54. package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.d.ts +170 -0
  55. package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.js +2 -0
  56. package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.d.ts +117 -0
  57. package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.js +2 -0
  58. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +323 -0
  59. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +2 -0
  60. package/dist/node_modules/@allyhub-next/sheet/dist/arrange.d.ts +68 -0
  61. package/dist/node_modules/@allyhub-next/sheet/dist/arrange.js +2 -0
  62. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +21 -0
  63. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +2 -0
  64. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +19 -0
  65. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +2 -0
  66. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +152 -0
  67. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +2 -0
  68. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.d.ts +2 -0
  69. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +2 -0
  70. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.d.ts +15 -0
  71. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +2 -0
  72. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.d.ts +2 -0
  73. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +2 -0
  74. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.d.ts +2 -0
  75. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +2 -0
  76. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +69 -0
  77. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +2 -0
  78. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.d.ts +2 -0
  79. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.js +2 -0
  80. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +2 -0
  81. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +2 -0
  82. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.d.ts +2 -0
  83. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +2 -0
  84. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +15 -0
  85. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +2 -0
  86. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.d.ts +2 -0
  87. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +2 -0
  88. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.d.ts +2 -0
  89. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +2 -0
  90. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.d.ts +2 -0
  91. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +2 -0
  92. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.d.ts +2 -0
  93. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +2 -0
  94. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.d.ts +2 -0
  95. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +2 -0
  96. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.d.ts +29 -0
  97. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.js +2 -0
  98. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.d.ts +2 -0
  99. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +2 -0
  100. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +50 -0
  101. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +2 -0
  102. package/dist/node_modules/@allyhub-next/sheet/dist/chart.d.ts +58 -0
  103. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +2 -0
  104. package/dist/node_modules/@allyhub-next/sheet/dist/check.d.ts +15 -0
  105. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +2 -0
  106. package/dist/node_modules/@allyhub-next/sheet/dist/csv.d.ts +62 -0
  107. package/dist/node_modules/@allyhub-next/sheet/dist/csv.js +12 -0
  108. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +64 -0
  109. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +2 -0
  110. package/dist/node_modules/@allyhub-next/sheet/dist/edit.d.ts +154 -0
  111. package/dist/node_modules/@allyhub-next/sheet/dist/edit.js +2 -0
  112. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +11 -0
  113. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +6 -0
  114. package/dist/node_modules/@allyhub-next/sheet/dist/file.d.ts +19 -0
  115. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +3 -0
  116. package/dist/node_modules/@allyhub-next/sheet/dist/files.d.ts +24 -0
  117. package/dist/node_modules/@allyhub-next/sheet/dist/files.js +2 -0
  118. package/dist/node_modules/@allyhub-next/sheet/dist/fill.d.ts +30 -0
  119. package/dist/node_modules/@allyhub-next/sheet/dist/fill.js +2 -0
  120. package/dist/node_modules/@allyhub-next/sheet/dist/filter.d.ts +29 -0
  121. package/dist/node_modules/@allyhub-next/sheet/dist/filter.js +2 -0
  122. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +9 -0
  123. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +2 -0
  124. package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.d.ts +113 -0
  125. package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.js +2 -0
  126. package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.d.ts +6 -0
  127. package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.js +2 -0
  128. package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.d.ts +4 -0
  129. package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.js +2 -0
  130. package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.d.ts +6 -0
  131. package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.js +2 -0
  132. package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.d.ts +65 -0
  133. package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.js +2 -0
  134. package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.d.ts +6 -0
  135. package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.js +2 -0
  136. package/dist/node_modules/@allyhub-next/sheet/dist/generated.d.ts +46 -0
  137. package/dist/node_modules/@allyhub-next/sheet/dist/generated.js +2 -0
  138. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +34 -0
  139. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +20 -0
  140. package/dist/node_modules/@allyhub-next/sheet/dist/import.d.ts +11 -0
  141. package/dist/node_modules/@allyhub-next/sheet/dist/import.js +2 -0
  142. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +38 -0
  143. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +2 -0
  144. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.d.ts +25 -0
  145. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +2 -0
  146. package/dist/node_modules/@allyhub-next/sheet/dist/patch.d.ts +4 -0
  147. package/dist/node_modules/@allyhub-next/sheet/dist/patch.js +2 -0
  148. package/dist/node_modules/@allyhub-next/sheet/dist/profile.d.ts +30 -0
  149. package/dist/node_modules/@allyhub-next/sheet/dist/profile.js +2 -0
  150. package/dist/node_modules/@allyhub-next/sheet/dist/rules.d.ts +56 -0
  151. package/dist/node_modules/@allyhub-next/sheet/dist/rules.js +2 -0
  152. package/dist/node_modules/@allyhub-next/sheet/dist/scenario.d.ts +42 -0
  153. package/dist/node_modules/@allyhub-next/sheet/dist/scenario.js +2 -0
  154. package/dist/node_modules/@allyhub-next/sheet/dist/series.d.ts +10 -0
  155. package/dist/node_modules/@allyhub-next/sheet/dist/series.js +2 -0
  156. package/dist/node_modules/@allyhub-next/sheet/dist/sort.d.ts +24 -0
  157. package/dist/node_modules/@allyhub-next/sheet/dist/sort.js +2 -0
  158. package/dist/node_modules/@allyhub-next/sheet/dist/structure.d.ts +38 -0
  159. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +2 -0
  160. package/dist/node_modules/@allyhub-next/sheet/dist/validate.d.ts +26 -0
  161. package/dist/node_modules/@allyhub-next/sheet/dist/validate.js +2 -0
  162. package/dist/node_modules/@allyhub-next/sheet/dist/values.d.ts +67 -0
  163. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +2 -0
  164. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +315 -0
  165. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +2 -0
  166. package/dist/node_modules/@allyhub-next/sheet/dist/write.d.ts +5 -0
  167. package/dist/node_modules/@allyhub-next/sheet/dist/write.js +21 -0
  168. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +42 -0
  169. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +2 -0
  170. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.d.ts +19 -0
  171. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.js +2 -0
  172. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +21 -0
  173. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +4 -0
  174. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +5 -0
  175. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +17 -0
  176. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +44 -0
  177. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +2 -0
  178. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.d.ts +5 -0
  179. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.js +2 -0
  180. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.d.ts +8 -0
  181. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.js +2 -0
  182. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +117 -0
  183. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -0
  184. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +23 -0
  185. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +2 -0
  186. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.d.ts +3 -0
  187. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.js +2 -0
  188. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +17 -0
  189. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +2 -0
  190. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.d.ts +28 -0
  191. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.js +3 -0
  192. package/dist/node_modules/@allyhub-next/sheet/package.json +21 -0
  193. package/dist/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
  194. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/chart-api.d.ts +1 -1
  195. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
  196. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/chart-file.d.ts +1 -1
  197. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
  198. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/index.d.ts +1 -1
  199. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
  200. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/model.d.ts +2 -5
  201. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/resolve.d.ts +1 -1
  202. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +7 -0
  203. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
  204. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/package.json +1 -1
  205. package/dist/node_modules/@allyhub-next/video-core/LICENSE +241 -0
  206. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/fact.d.ts +8 -2
  207. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
  208. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/formats.d.ts +0 -28
  209. package/dist/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
  210. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/measure.d.ts +10 -0
  211. package/dist/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
  212. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/problem.d.ts +5 -1
  213. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
  214. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/package.json +1 -1
  215. package/dist/phone.js +1 -1
  216. package/dist/sheets.d.ts +2 -0
  217. package/dist/sheets.js +2 -0
  218. package/docs/README.md +2 -2
  219. package/docs/defaults.md +1 -0
  220. package/docs/project.md +1 -1
  221. package/docs/scenery.md +1 -1
  222. package/docs/sheets.md +377 -84
  223. package/docs/slides.md +1 -1
  224. package/docs/speech.md +1 -1
  225. package/package.json +11 -19
  226. package/node_modules/@allyhub-next/formats/dist/data/reference.js +0 -2
  227. package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +0 -214
  228. package/node_modules/@allyhub-next/formats/dist/data/sheet.js +0 -2
  229. package/node_modules/@allyhub-next/formats/dist/data/slides.js +0 -2
  230. package/node_modules/@allyhub-next/formats/dist/index.js +0 -2
  231. package/node_modules/@allyhub-next/formats/dist/items.js +0 -2
  232. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +0 -719
  233. package/node_modules/@allyhub-next/formats/dist/schemas.js +0 -2
  234. package/node_modules/@allyhub-next/protocol/dist/notes.js +0 -2
  235. package/node_modules/@allyhub-next/protocol/dist/tools.js +0 -2
  236. package/node_modules/@allyhub-next/runtimes/dist/lock.js +0 -2
  237. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +0 -3
  238. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +0 -2533
  239. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +0 -8
  240. package/node_modules/@allyhub-next/scenery/dist/phone.js +0 -2
  241. package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +0 -2
  242. package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +0 -2
  243. package/node_modules/@allyhub-next/slides-core/dist/chart.js +0 -2
  244. package/node_modules/@allyhub-next/slides-core/dist/index.js +0 -2
  245. package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +0 -23
  246. package/node_modules/@allyhub-next/slides-core/dist/strict.js +0 -2
  247. package/node_modules/@allyhub-next/video-core/dist/fact.js +0 -2
  248. package/node_modules/@allyhub-next/video-core/dist/formats.js +0 -2
  249. package/node_modules/@allyhub-next/video-core/dist/measure.js +0 -5
  250. package/node_modules/@allyhub-next/video-core/dist/problem.js +0 -2
  251. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/LICENSE +0 -0
  252. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.d.ts +0 -0
  253. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.js +0 -0
  254. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.d.ts +0 -0
  255. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.js +0 -0
  256. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.d.ts +0 -0
  257. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.js +0 -0
  258. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.d.ts +0 -0
  259. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.js +0 -0
  260. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.d.ts +0 -0
  261. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.js +0 -0
  262. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.d.ts +0 -0
  263. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.js +0 -0
  264. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.d.ts +0 -0
  265. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.js +0 -0
  266. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.d.ts +0 -0
  267. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.js +0 -0
  268. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -0
  269. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.js +0 -0
  270. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -0
  271. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.js +0 -0
  272. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.d.ts +0 -0
  273. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.js +0 -0
  274. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.d.ts +0 -0
  275. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.js +0 -0
  276. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.d.ts +0 -0
  277. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.js +0 -0
  278. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.d.ts +0 -0
  279. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.js +0 -0
  280. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.d.ts +0 -0
  281. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.js +0 -0
  282. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.d.ts +0 -0
  283. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.js +0 -0
  284. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.d.ts +0 -0
  285. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.js +0 -0
  286. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -0
  287. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.js +0 -0
  288. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.d.ts +0 -0
  289. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.js +0 -0
  290. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -0
  291. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.js +0 -0
  292. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.d.ts +0 -0
  293. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.js +0 -0
  294. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.d.ts +0 -0
  295. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.js +0 -0
  296. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.d.ts +0 -0
  297. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.js +0 -0
  298. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.d.ts +0 -0
  299. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.js +0 -0
  300. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -0
  301. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.js +0 -0
  302. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.d.ts +0 -0
  303. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.js +0 -0
  304. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.d.ts +0 -0
  305. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.js +0 -0
  306. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.d.ts +0 -0
  307. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.js +0 -0
  308. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.d.ts +0 -0
  309. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.js +0 -0
  310. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.d.ts +0 -0
  311. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.js +0 -0
  312. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.d.ts +0 -0
  313. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.js +0 -0
  314. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.d.ts +0 -0
  315. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.js +0 -0
  316. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.d.ts +0 -0
  317. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.js +0 -0
  318. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.d.ts +0 -0
  319. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.js +0 -0
  320. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.d.ts +0 -0
  321. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.js +0 -0
  322. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.d.ts +0 -0
  323. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.js +0 -0
  324. /package/{node_modules/@allyhub-next/formats → dist/node_modules/@allyhub-next/chart}/LICENSE +0 -0
  325. /package/{node_modules/@allyhub-next/protocol → dist/node_modules/@allyhub-next/formats}/LICENSE +0 -0
  326. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.d.ts +0 -0
  327. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.js +0 -0
  328. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.d.ts +0 -0
  329. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.js +0 -0
  330. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.d.ts +0 -0
  331. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.js +0 -0
  332. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.d.ts +0 -0
  333. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.js +0 -0
  334. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.d.ts +0 -0
  335. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.js +0 -0
  336. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.d.ts +0 -0
  337. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.js +0 -0
  338. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.d.ts +0 -0
  339. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.js +0 -0
  340. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.d.ts +0 -0
  341. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.js +0 -0
  342. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/script.d.ts +0 -0
  343. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/script.js +0 -0
  344. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.d.ts +0 -0
  345. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.js +0 -0
  346. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.d.ts +0 -0
  347. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.js +0 -0
  348. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/note-shape.d.ts +0 -0
  349. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/note-shape.js +0 -0
  350. /package/{node_modules/@allyhub-next/runtimes → dist/node_modules/@allyhub-next/protocol}/LICENSE +0 -0
  351. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/app.d.ts +0 -0
  352. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/app.js +0 -0
  353. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.d.ts +0 -0
  354. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.js +0 -0
  355. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.d.ts +0 -0
  356. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.js +0 -0
  357. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.d.ts +0 -0
  358. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.js +0 -0
  359. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.d.ts +0 -0
  360. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.js +0 -0
  361. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/index.d.ts +0 -0
  362. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/index.js +0 -0
  363. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.d.ts +0 -0
  364. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.js +0 -0
  365. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.d.ts +0 -0
  366. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.js +0 -0
  367. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.d.ts +0 -0
  368. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.js +0 -0
  369. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/runtimes.d.ts +0 -0
  370. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/runtimes.js +0 -0
  371. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.d.ts +0 -0
  372. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.js +0 -0
  373. /package/{node_modules/@allyhub-next/scenery → dist/node_modules/@allyhub-next/runtimes}/LICENSE +0 -0
  374. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.d.ts +0 -0
  375. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.js +0 -0
  376. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.d.ts +0 -0
  377. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.js +0 -0
  378. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.d.ts +0 -0
  379. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.js +0 -0
  380. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.d.ts +0 -0
  381. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.js +0 -0
  382. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/index.d.ts +0 -0
  383. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/index.js +0 -0
  384. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.d.ts +0 -0
  385. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.js +0 -0
  386. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/node-program.d.ts +0 -0
  387. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/node-program.js +0 -0
  388. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/packages.d.ts +0 -0
  389. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/packages.js +0 -0
  390. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.d.ts +0 -0
  391. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.js +0 -0
  392. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/manifest.json +0 -0
  393. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/docx/package-lock.json +0 -0
  394. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/docx/package.json +0 -0
  395. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +0 -0
  396. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/gltf-tools/package.json +0 -0
  397. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +0 -0
  398. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/manifold-3d/package.json +0 -0
  399. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +0 -0
  400. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +0 -0
  401. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -0
  402. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +0 -0
  403. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +0 -0
  404. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/tesseract.js/package.json +0 -0
  405. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/schemas/runtimes.schema.json +0 -0
  406. /package/{node_modules/@allyhub-next/slides-core → dist/node_modules/@allyhub-next/scenery}/LICENSE +0 -0
  407. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/NOTICE +0 -0
  408. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.d.ts +0 -0
  409. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.js +0 -0
  410. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.d.ts +0 -0
  411. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.js +0 -0
  412. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.d.ts +0 -0
  413. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.js +0 -0
  414. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.d.ts +0 -0
  415. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.js +0 -0
  416. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.d.ts +0 -0
  417. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.js +0 -0
  418. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.d.ts +0 -0
  419. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.js +0 -0
  420. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.d.ts +0 -0
  421. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.js +0 -0
  422. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.d.ts +0 -0
  423. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.js +0 -0
  424. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.d.ts +0 -0
  425. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.js +0 -0
  426. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.d.ts +0 -0
  427. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.js +0 -0
  428. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.d.ts +0 -0
  429. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.js +0 -0
  430. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.js +0 -0
  431. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.d.ts +0 -0
  432. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.js +0 -0
  433. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.d.ts +0 -0
  434. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.js +0 -0
  435. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.d.ts +0 -0
  436. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.js +0 -0
  437. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.d.ts +0 -0
  438. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.js +0 -0
  439. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.d.ts +0 -0
  440. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.js +0 -0
  441. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.d.ts +0 -0
  442. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.js +0 -0
  443. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.d.ts +0 -0
  444. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.js +0 -0
  445. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.d.ts +0 -0
  446. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.js +0 -0
  447. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.d.ts +0 -0
  448. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.js +0 -0
  449. /package/{node_modules/@allyhub-next/video-core → dist/node_modules/@allyhub-next/sheet}/LICENSE +0 -0
  450. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/animation.d.ts +0 -0
  451. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/animation.js +0 -0
  452. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/api.d.ts +0 -0
  453. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/api.js +0 -0
  454. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/capabilities.d.ts +0 -0
  455. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/capabilities.js +0 -0
  456. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/check.d.ts +0 -0
  457. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/check.js +0 -0
  458. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/enums.d.ts +0 -0
  459. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/enums.js +0 -0
  460. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/file.d.ts +0 -0
  461. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/file.js +0 -0
  462. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/measure.d.ts +0 -0
  463. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/measure.js +0 -0
  464. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/model.js +0 -0
  465. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/office.d.ts +0 -0
  466. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/office.js +0 -0
  467. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/path.d.ts +0 -0
  468. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/path.js +0 -0
  469. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/placeholders.d.ts +0 -0
  470. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/placeholders.js +0 -0
  471. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/resolve.js +0 -0
  472. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/script.d.ts +0 -0
  473. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/script.js +0 -0
  474. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/stage.d.ts +0 -0
  475. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/stage.js +0 -0
  476. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/theme.d.ts +0 -0
  477. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/theme.js +0 -0
  478. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/units.d.ts +0 -0
  479. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/units.js +0 -0
  480. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.d.ts +0 -0
  481. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.js +0 -0
  482. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.d.ts +0 -0
  483. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.js +0 -0
  484. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.d.ts +0 -0
  485. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.js +0 -0
  486. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.d.ts +0 -0
  487. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.js +0 -0
  488. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.d.ts +0 -0
  489. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.js +0 -0
  490. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.d.ts +0 -0
  491. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.js +0 -0
  492. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.d.ts +0 -0
  493. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.js +0 -0
  494. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.d.ts +0 -0
  495. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.js +0 -0
  496. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.d.ts +0 -0
  497. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.js +0 -0
  498. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.d.ts +0 -0
  499. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.js +0 -0
  500. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.d.ts +0 -0
  501. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.js +0 -0
  502. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.d.ts +0 -0
  503. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.js +0 -0
  504. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/index.d.ts +0 -0
  505. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/index.js +0 -0
  506. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.d.ts +0 -0
  507. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.js +0 -0
  508. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.d.ts +0 -0
  509. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.js +0 -0
  510. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.d.ts +0 -0
  511. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.js +0 -0
  512. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.d.ts +0 -0
  513. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.js +0 -0
  514. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.d.ts +0 -0
  515. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.js +0 -0
  516. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.d.ts +0 -0
  517. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.js +0 -0
  518. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.d.ts +0 -0
  519. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.js +0 -0
  520. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/piece.d.ts +0 -0
  521. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/piece.js +0 -0
  522. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.d.ts +0 -0
  523. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.js +0 -0
  524. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/render-types.d.ts +0 -0
  525. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/render-types.js +0 -0
  526. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.d.ts +0 -0
  527. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.js +0 -0
  528. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.d.ts +0 -0
  529. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.js +0 -0
  530. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script.d.ts +0 -0
  531. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script.js +0 -0
  532. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.d.ts +0 -0
  533. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.js +0 -0
  534. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.d.ts +0 -0
  535. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.js +0 -0
  536. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.d.ts +0 -0
  537. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.js +0 -0
  538. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.d.ts +0 -0
  539. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.js +0 -0
  540. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.d.ts +0 -0
  541. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.js +0 -0
  542. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.d.ts +0 -0
  543. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.js +0 -0
  544. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.d.ts +0 -0
  545. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.js +0 -0
  546. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.d.ts +0 -0
  547. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.js +0 -0
  548. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.d.ts +0 -0
  549. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.js +0 -0
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{columnLetter as l}from"../address.js";const $=e=>`${e.abs?"$":""}${l(e.index)}`,s=e=>`${e.abs?"$":""}${String(e.index+1)}`;export function sheetPrefix(e,r){const t=r===void 0?e:`${e}:${r}`;return/^[\p{L}_][\p{L}\p{N}_.]*$/u.test(e)&&!/^[A-Za-z]{1,3}\d+$/u.test(e)&&!/^(?:TRUE|FALSE)$/iu.test(e)&&(r===void 0||/^[\p{L}_][\p{L}\p{N}_.]*$/u.test(r))?`${t}!`:`'${t.replaceAll("'","''")}'!`}function f(e){const r=e.sheet===void 0?"":sheetPrefix(e.sheet,e.lastSheet);if(e.row===void 0&&e.col&&e.col2)return`${r}${$(e.col)}:${$(e.col2)}`;if(e.col===void 0&&e.row&&e.row2)return`${r}${s(e.row)}:${s(e.row2)}`;if(!e.col||!e.row)return`${r}#REF!`;const t=`${$(e.col)}${s(e.row)}`;return e.col2&&e.row2?`${r}${t}:${$(e.col2)}${s(e.row2)}`:`${r}${t}`}const c=e=>e.replace(/([[\]#'@])/gu,"'$1"),p=e=>/^[\p{L}\p{N}_]+$/u.test(e);function d(e){const r=e.table??"",[t,i]=e.columns,u=e.columns.map(n=>`[${c(n)}]`).join(":");if(e.sections.length===0)return e.thisRow?t===void 0?`${r}[@]`:i!==void 0?`${r}[@${u}]`:`${r}[@${p(t)?c(t):u}]`:t===void 0?r===""?"[]":r:i!==void 0?`${r}[${u}]`:`${r}[${c(t)}]`;if(t===void 0&&e.sections.length===1)return`${r}[${e.sections[0]??""}]`;const a=e.sections.map(n=>`[${n}]`);return u!==""&&a.push(u),`${r}[${a.join(",")}]`}function o(e){switch(e.kind){case"number":return e.raw;case"string":return`"${e.value.replaceAll('"','""')}"`;case"boolean":return e.value?"TRUE":"FALSE";case"error":return`${e.sheet===void 0?"":sheetPrefix(e.sheet)}${e.code}`;case"missing":return"";case"ref":return f(e);case"structured":return d(e);case"name":return`${e.sheet===void 0?"":sheetPrefix(e.sheet)}${e.name}`;case"unary":return`${e.op}${o(e.arg)}`;case"postfix":return`${o(e.arg)}${e.op}`;case"binary":return`${o(e.left)}${e.op}${o(e.right)}`;case"call":return`${e.written}(${e.args.map(o).join(",")})`;case"invoke":return`${o(e.callee)}(${e.args.map(o).join(",")})`;case"array":return`{${e.rows.map(r=>r.map(o).join(",")).join(";")}}`;case"paren":return`(${o(e.arg)})`}}export const printFormula=e=>`=${o(e)}`;
@@ -0,0 +1,65 @@
1
+ import { type Area } from "../address.js";
2
+ import type { Node } from "./ast.js";
3
+ export type StructureEdit = {
4
+ op: "insert-rows";
5
+ sheet: string;
6
+ at: number;
7
+ count: number;
8
+ } | {
9
+ op: "delete-rows";
10
+ sheet: string;
11
+ at: number;
12
+ count: number;
13
+ } | {
14
+ op: "insert-columns";
15
+ sheet: string;
16
+ at: number;
17
+ count: number;
18
+ } | {
19
+ op: "delete-columns";
20
+ sheet: string;
21
+ at: number;
22
+ count: number;
23
+ } | {
24
+ op: "rename-sheet";
25
+ from: string;
26
+ to: string;
27
+ } | {
28
+ op: "rename-table";
29
+ from: string;
30
+ to: string;
31
+ } | {
32
+ op: "rename-column";
33
+ table: string;
34
+ from: string;
35
+ to: string;
36
+ } | {
37
+ op: "rename-name";
38
+ from: string;
39
+ to: string;
40
+ } | {
41
+ op: "delete-sheet";
42
+ name: string;
43
+ } | {
44
+ op: "delete-table";
45
+ name: string;
46
+ } | {
47
+ op: "delete-column";
48
+ table: string;
49
+ name: string;
50
+ } | {
51
+ op: "move-cells";
52
+ sheet: string;
53
+ area: Area;
54
+ rows: number;
55
+ columns: number;
56
+ /** The sheet they went to, when not their own. */
57
+ to?: string;
58
+ };
59
+ /**
60
+ * A formula after an edit of its workbook. `own` is the sheet it is on, what
61
+ * a reference without a sheet is on; `table`, the table it is in, what a
62
+ * column named without a table is in. The same tree when nothing changed.
63
+ */
64
+ export declare function rewriteFormula(node: Node, edit: StructureEdit, own: string, table?: string): Node;
65
+ //# sourceMappingURL=rewrite.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{MAX_COLUMNS as b,MAX_ROWS as M}from"../address.js";import{mapNode as S}from"./walk.js";const u=(r,n)=>r?.toLowerCase()===n?.toLowerCase(),k=(r,n,s)=>r.index>=n?{...r,index:r.index+s}:r;function O(r,n,s){if(r.index<n)return r;if(r.index>=n+s)return{...r,index:r.index-s}}function R(r,n,s,i){const o=r.index<=n.index?r:n,e=o===r?n:r,t=k(o,s,i),c=e.index>=s?{...e,index:e.index+i}:e;return o===r?[t,c]:[c,t]}function C(r,n,s,i){const o=r.index<=n.index?r:n,e=o===r?n:r,t=s+i-1;if(o.index>=s&&e.index<=t)return;const c=o.index<s?o:o.index>t?{...o,index:o.index-i}:{...o,index:s},a=e.index<s?e:e.index>t?{...e,index:e.index-i}:{...e,index:s-1};return o===r?[c,a]:[a,c]}function x(r){return{kind:"error",code:"#REF!",...r.sheet===void 0?{}:{sheet:r.sheet}}}const h={kind:"error",code:"#REF!"};function E(r,n,s){if(!u(r.sheet??s,n.sheet)||r.lastSheet!==void 0)return r;const{col:i,row:o}=r;if(i===void 0||o===void 0)return r;const e=r.col2??i,t=r.row2??o,{area:c,rows:a,columns:d,to:m}=n;if(!(Math.min(i.index,e.index)>=c.left&&Math.max(i.index,e.index)<=c.right&&Math.min(o.index,t.index)>=c.top&&Math.max(o.index,t.index)<=c.bottom))return r;const f=(l,p)=>({...l,index:l.index+p}),w={...r,col:f(i,d),row:f(o,a),...r.col2?{col2:f(r.col2,d)}:{},...r.row2?{row2:f(r.row2,a)}:{}};return m===void 0?w:u(m,s)?Object.fromEntries(Object.entries(w).filter(([l])=>l!=="sheet")):{...w,sheet:m}}function g(r,n,s){if(!u(r.sheet??s,n.sheet)||r.lastSheet!==void 0)return r;const i=n.op==="insert-rows"||n.op==="delete-rows",o=i?r.row:r.col,e=i?r.row2:r.col2;if(o===void 0)return r;const t=i?["row","row2"]:["col","col2"],c=n.op==="insert-rows"||n.op==="insert-columns",a=i?M:b;if(e===void 0){const m=c?k(o,n.at,n.count):O(o,n.at,n.count);return!m||m.index>=a?x(r):m===o?r:{...r,[t[0]]:m}}const d=c?R(o,e,n.at,n.count):C(o,e,n.at,n.count);return!d||d[0].index>=a||d[1].index>=a?x(r):d[0]===o&&d[1]===e?r:{...r,[t[0]]:d[0],[t[1]]:d[1]}}export function rewriteFormula(r,n,s,i){const o=(e,t)=>e===void 0?i===void 0||u(i,t):u(e,t);return S(r,e=>{switch(n.op){case"rename-sheet":return(e.kind==="ref"||e.kind==="name"||e.kind==="error")&&u(e.sheet,n.from)?{...e,sheet:n.to}:e.kind==="ref"&&u(e.lastSheet,n.from)?{...e,lastSheet:n.to}:e;case"rename-table":return e.kind==="structured"&&u(e.table,n.from)?{...e,table:n.to}:e;case"delete-sheet":return e.kind==="ref"&&u(e.sheet,n.name)||e.kind==="ref"&&u(e.lastSheet,n.name)?x(e):e.kind==="name"&&u(e.sheet,n.name)?h:e;case"delete-table":return e.kind==="structured"&&u(e.table,n.name)||e.kind==="name"&&u(e.name,n.name)?h:e;case"delete-column":return e.kind==="structured"&&o(e.table,n.table)&&e.columns.some(t=>u(t,n.name))?h:e;case"rename-column":return e.kind==="structured"&&o(e.table,n.table)&&e.columns.some(t=>u(t,n.from))?{...e,columns:e.columns.map(t=>u(t,n.from)?n.to:t)}:e;case"rename-name":return e.kind==="name"&&u(e.name,n.from)?{...e,name:n.to}:e.kind==="call"&&u(e.name,n.from)?{...e,name:n.to.toUpperCase(),written:n.to}:e;case"move-cells":return e.kind==="ref"?E(e,n,s):e;default:return e.kind==="ref"?g(e,n,s):e}})}
@@ -0,0 +1,6 @@
1
+ import type { Node } from "./ast.js";
2
+ /** A tree with `change` made to each node, children first; the same object where nothing changed. */
3
+ export declare function mapNode(node: Node, change: (n: Node) => Node): Node;
4
+ /** Every node of a tree, each before its children. */
5
+ export declare function walk(node: Node, visit: (n: Node) => void): void;
6
+ //# sourceMappingURL=walk.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export function mapNode(r,e){const a=l(r,e);return e(a)}function l(r,e){switch(r.kind){case"unary":case"postfix":case"paren":{const a=mapNode(r.arg,e);return a===r.arg?r:{...r,arg:a}}case"binary":{const a=mapNode(r.left,e),s=mapNode(r.right,e);return a===r.left&&s===r.right?r:{...r,left:a,right:s}}case"call":{const a=r.args.map(s=>mapNode(s,e));return a.every((s,c)=>s===r.args[c])?r:{...r,args:a}}case"invoke":{const a=mapNode(r.callee,e),s=r.args.map(c=>mapNode(c,e));return a===r.callee&&s.every((c,t)=>c===r.args[t])?r:{...r,callee:a,args:s}}case"array":{const a=r.rows.map(s=>s.map(c=>mapNode(c,e)));return a.every((s,c)=>s.every((t,o)=>t===r.rows[c]?.[o]))?r:{...r,rows:a}}default:return r}}export function walk(r,e){switch(e(r),r.kind){case"unary":case"postfix":case"paren":walk(r.arg,e);break;case"binary":walk(r.left,e),walk(r.right,e);break;case"call":for(const a of r.args)walk(a,e);break;case"invoke":walk(r.callee,e);for(const a of r.args)walk(a,e);break;case"array":for(const a of r.rows)for(const s of a)walk(s,e);break;default:break}}
@@ -0,0 +1,46 @@
1
+ import { type SheetFile, type SheetWorksheet } from "@allyhub-next/formats";
2
+ import type { BookEdit } from "./edit.js";
3
+ /** Where a generated CSV file is named, so it never stands for one on disk. */
4
+ export declare const GENERATED = "sheet.ts/";
5
+ export interface GeneratedSheets {
6
+ /** The sheets it makes, in the order it made them, as sheet.yaml would hold them. */
7
+ sheets: SheetWorksheet[];
8
+ /** Names it defines. */
9
+ names?: NonNullable<SheetFile["names"]>;
10
+ /** Its tables' and blocks' rows, as CSV text, by the paths its sheets name. */
11
+ csv: Record<string, string>;
12
+ /** Numbers it typed that neither its data nor its code holds. */
13
+ typed?: {
14
+ sheet: string;
15
+ cell: string;
16
+ value: number;
17
+ }[];
18
+ }
19
+ export interface MergedFile {
20
+ file: SheetFile;
21
+ /** How many of its sheets, the first ones, are sheet.yaml's. */
22
+ own: number;
23
+ /** Names that are sheet.ts's. */
24
+ names: ReadonlySet<string>;
25
+ /** Sheets sheet.ts makes that sheet.yaml holds: sheet.yaml's stand. */
26
+ ordinary: string[];
27
+ }
28
+ /** sheet.yaml with what sheet.ts makes after it. */
29
+ export declare function withGenerated(file: SheetFile, generated: GeneratedSheets | undefined): MergedFile;
30
+ /**
31
+ * A generated sheet as an ordinary one: its spec in sheet.yaml and its rows in
32
+ * CSV files of their own, where `taken` says no file stands. From then on
33
+ * sheet.yaml holds that name, so what sheet.ts makes of it is left out; taking
34
+ * the sheet out of sheet.yaml gives it back to the code.
35
+ */
36
+ export declare function ordinarySheet(book: {
37
+ file: SheetFile;
38
+ }, generated: GeneratedSheets, name: string, taken?: (path: string) => boolean): BookEdit;
39
+ /** Every number typed on sheets, with where it stands, for what asks whether code computed it. */
40
+ export declare function typedNumbers(sheets: readonly SheetWorksheet[], csv: Readonly<Record<string, string>>): {
41
+ sheet: string;
42
+ cell?: string;
43
+ file?: string;
44
+ value: number;
45
+ }[];
46
+ //# sourceMappingURL=generated.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{SHEET_CODE as v,SHEET_DATA as w}from"@allyhub-next/formats";import{readCsv as d}from"./csv.js";export const GENERATED=`${v}/`;const l=e=>e.toLowerCase();export function withGenerated(e,n){const a=e.sheets.length;if(!n)return{file:e,own:a,names:new Set,ordinary:[]};const m=new Set(e.sheets.map(s=>l(s.name))),t=n.sheets.filter(s=>!m.has(l(s.name))),c=n.sheets.filter(s=>m.has(l(s.name))).map(s=>s.name),f=new Set(Object.keys(e.names??{}).map(l)),r=Object.entries(n.names??{}).filter(([s])=>!f.has(l(s)));return{file:{...e,sheets:[...e.sheets,...t],...r.length===0?{}:{names:{...e.names,...Object.fromEntries(r)}}},own:a,names:new Set(r.map(([s])=>s)),ordinary:c}}const b=e=>[...(e.tables??[]).map(n=>n.rows),...(e.blocks??[]).map(n=>n.rows)],E=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/gu,"");export function ordinarySheet(e,n,a,m=()=>!1){const t=n.sheets.find(o=>l(o.name)===l(a));if(!t)return{rows:new Map,cells:[],whole:!1,refused:"no-sheet"};const c=new Map,f=new Map;for(const o of b(t)){const p=n.csv[o];if(p===void 0)continue;const h=E(`${t.name} ${o.split("/").pop()??""}`).replace(/-csv$/u,"");let u=`${w}/${h}.csv`;for(let i=2;m(u)||c.has(u);i++)u=`${w}/${h}-${String(i)}.csv`;f.set(o,u),c.set(u,d(p).records.map(i=>i.end===i.start?[]:i.fields))}const r=o=>f.get(o)??o,s=structuredClone(t);for(const o of s.tables??[])o.rows=r(o.rows);for(const o of s.blocks??[])o.rows=r(o.rows);return{file:{...e.file,sheets:[...e.file.sheets,s]},rows:c,cells:[],whole:!0}}export function typedNumbers(e,n){const a=[],m=t=>typeof t=="number"?t:t!==null&&typeof t=="object"?t.value:void 0;for(const t of e){for(const[c,f]of Object.entries(t.cells??{})){const r=m(f);typeof r=="number"&&a.push({sheet:t.name,cell:c,value:r})}for(const c of b(t))d(n[c]??"").records.forEach(f=>{for(const r of f.fields){const s=Number(r);r.trim()!==""&&Number.isFinite(s)&&a.push({sheet:t.name,file:c,value:s})}})}return a}
@@ -0,0 +1,34 @@
1
+ import { type Area } from "./address.js";
2
+ import type { Calc } from "./calc/engine.js";
3
+ import { type Worksheet } from "./workbook.js";
4
+ /** A cell of a size nothing sets. */
5
+ export declare const DEFAULT_COLUMN_WIDTH = 64;
6
+ export declare const DEFAULT_ROW_HEIGHT = 20;
7
+ export interface SheetHtmlOptions {
8
+ /** The sheets drawn; default every one that is not hidden. */
9
+ sheets?: readonly Worksheet[];
10
+ /** Only this area, of the one sheet drawn. */
11
+ area?: Area;
12
+ /** Letters over the columns, numbers down the rows and gridlines, as a person sees a sheet. */
13
+ headings?: boolean;
14
+ /** Rows drawn at most of each sheet. */
15
+ rows?: number;
16
+ /** Columns drawn at most of each sheet. */
17
+ columns?: number;
18
+ /** @font-face rules, for a page that has no network. */
19
+ css?: string;
20
+ /** The font of a cell that names none. */
21
+ font?: string;
22
+ /** A file a `files` column names, from the sheet's folder: a picture is drawn in its cell. */
23
+ file?: (path: string) => Uint8Array | undefined;
24
+ }
25
+ export interface SheetHtml {
26
+ html: string;
27
+ /** Its widest table, px. */
28
+ width: number;
29
+ /** What `rows` and `columns` left out, a line per sheet. */
30
+ cut: string[];
31
+ }
32
+ /** A workbook's sheets as one page of HTML. */
33
+ export declare function sheetHtml(calc: Calc, o?: SheetHtmlOptions): SheetHtml;
34
+ //# sourceMappingURL=html.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{formatColor as T,isValidFormat as B}from"numfmt";import{cellName as E,columnLetter as C,contains as I,overlaps as N}from"./address.js";import{chartDef as _,chartPlace as P,chartSize as H,chartSvg as G}from"./chart.js";import{fileCells as U,isPicture as V,pictureHeight as W,pictureSize as q}from"./files.js";import{shownValue as k}from"./format.js";import{Rules as K,iconShape as J}from"./rules.js";import{CellError as Q}from"./values.js";import{placeKey as z}from"./workbook.js";export const DEFAULT_COLUMN_WIDTH=64,DEFAULT_ROW_HEIGHT=20;const X={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},Y=i=>{let t="";for(let n=0;n<i.length;n+=32768)t+=String.fromCharCode(...i.subarray(n,n+32768));return btoa(t)},y=i=>i.replace(/[&<>"]/gu,t=>X[t]??t),Z={thin:"1px solid",medium:"2px solid",thick:"3px solid",double:"3px double",hair:"1px dotted",dotted:"1px dotted",dashed:"1px dashed",dashDot:"1px dashed",dashDotDot:"1px dashed",mediumDashed:"2px dashed",mediumDashDot:"2px dashed",mediumDashDotDot:"2px dashed",slantDashDot:"2px dashed"},tt={left:"left",center:"center",right:"right",justify:"justify",distributed:"justify",centerContinuous:"center",fill:"left"},et={top:"top",center:"middle",justify:"middle",distributed:"middle"};function nt(i){if(typeof i=="number")return"right";if(typeof i=="boolean"||i instanceof Q)return"center"}const ot={up:"▲","up-right":"◥",right:"▶","down-right":"◢",down:"▼",circle:"●",flag:"⚑",check:"✔",bang:"!",cross:"✖",triangle:"▲",diamond:"◆",bars:"▮",quarter:"◔"};function it(i){const{shape:t,color:n,level:e}=J(i.set,i.index),o=(ot[t]??"●").repeat(t==="bars"?e??1:1);return`<span style="float:left;color:${n}">${o}</span>`}function st(i,t,n){const e=[];i.bold===!0&&e.push("font-weight:bold"),i.italic===!0&&e.push("font-style:italic");const o=[i.underline?"underline":"",i.strike===!0?"line-through":""].filter(Boolean);o.length>0&&e.push(`text-decoration:${o.join(" ")}`),i.font!==void 0&&e.push(`font-family:"${i.font.replace(/["\\]/gu,"")}",var(--font)`),i.size!==void 0&&e.push(`font-size:${String(i.size)}pt`);const r=i.color??(typeof t=="number"&&n!==void 0&&B(n)?T(n,t)??void 0:void 0);typeof r=="string"&&e.push(`color:${r}`);const{fill:s}=i;if(typeof s=="string")e.push(`background:${s}`);else if(s){const c=s.color??s.background;c!==void 0&&e.push(`background:${c}`)}const a=(i.align===void 0||i.align==="general"?void 0:tt[i.align])??nt(t);a!==void 0&&e.push(`text-align:${a}`);const d=i.valign===void 0?void 0:et[i.valign];d!==void 0&&e.push(`vertical-align:${d}`),i.wrap===!0&&e.push("white-space:pre-wrap","overflow-wrap:anywhere"),i.indent!==void 0&&e.push(`padding-left:${String(3+i.indent*9)}px`);for(const c of["left","right","top","bottom"]){const h=i.border?.[c];h&&e.push(`border-${c}:${Z[h.style]??"1px solid"} ${h.color??"#000"}`)}return e.join(";")}class rt{classes=new Map;calc;cut=[];drawnFiles=new Map;pages=[];widest=0;o;rules;constructor(t,n){this.calc=t,this.o=n}classOf(t){if(t==="")return"";let n=this.classes.get(t);return n||(n=`s${String(this.classes.size)}`,this.classes.set(t,n)),n}shown(t,n,e){const o=[];for(let r=t;r<=n;r++)e(r)||o.push(r);return o}spans(t,n,e){const o=new Map,r=new Set;for(const s of t.merges){const a=n.filter(p=>p>=s.top&&p<=s.bottom),d=e.filter(p=>p>=s.left&&p<=s.right),[c]=a,[h]=d;if(!(c===void 0||h===void 0)){for(const p of a)for(const l of d)r.add(`${String(p)}:${String(l)}`);r.delete(`${String(c)}:${String(h)}`),o.set(`${String(c)}:${String(h)}`,{rows:a.length,cols:d.length})}}return{spans:o,covered:r}}width(t,n){const e=C(n),o=t.spec.columns?.[e]?.width;if(o!==void 0)return o;for(const r of t.tables){const s=r.columns[n-r.at.col]?.spec?.width;if(s!==void 0)return s}return DEFAULT_COLUMN_WIDTH}cell(t,n,e,o,r){const s=this.calc.value(t,n,e),a=this.rules?.at(n,e),d={...t.lookAt(n,e),...a?.look,...a?.scale===void 0?{}:{fill:a.scale}},c=d.format,h=t.tables.some($=>n===$.at.row&&I($.area,n,e));let p=st(d,s,c);if(a?.bar){const $=`${String(Math.round(a.bar.share*100))}%`;p=[p,`background:linear-gradient(90deg,${a.bar.color} ${$},transparent ${$})`].filter(Boolean).join(";")}h&&(p=[p,d.bold===void 0?"font-weight:bold":"","border-bottom:1px solid #000"].filter(Boolean).join(";"));const l=typeof s=="string"&&d.wrap!==!0&&r&&!o,u=[this.classOf(p),l?"over":""].filter(Boolean).join(" "),g=[u===""?"":` class="${u}"`,o&&o.rows>1?` rowspan="${String(o.rows)}"`:"",o&&o.cols>1?` colspan="${String(o.cols)}"`:""].join(""),m=a?.icon?it(a.icon):"",w=this.pictures(t).get(z(n,e))??(a?.bare===!0?"":y(k(s,c)));return`<td${g}>${m}${w}</td>`}pictures(t){const n=this.drawnFiles.get(t);if(n)return n.cells;const e=new Map,o=new Map,r=this.o.file;for(const{row:s,col:a,paths:d,column:c}of r?U(t,this.calc):[]){const h=W(c),p=d.map(l=>{const u=V(l)?r?.(l):void 0,g=u&&q(u);if(!u||!g)return y(l);o.set(s,Math.max(o.get(s)??0,h));const m=Y(u);return`<img src="data:image/${g.type};base64,${m}" alt="${y(l)}" style="height:${String(h)}px">`});e.set(z(s,a),p.join(" "))}return this.drawnFiles.set(t,{cells:e,rows:o}),e}sheet(t,n){const{o:e}=this,o=e.area??this.withCharts(t,t.used??{top:0,left:0,bottom:0,right:0}),r=this.calc.filtered(t);this.rules=t.conditions.length>0?new K(t,this.calc):void 0;const s=this.shown(o.top,o.bottom,f=>r.has(f)||t.spec.rows?.[String(f+1)]?.hidden===!0),a=this.shown(o.left,o.right,f=>t.spec.columns?.[C(f)]?.hidden===!0),d=s.slice(0,e.rows??s.length),c=a.slice(0,e.columns??a.length);if(d.length<s.length||c.length<a.length){const f=d[d.length-1]??o.top,x=c[c.length-1]??o.left;this.cut.push(`${t.name}: drew ${E({row:o.top,col:o.left})}:${E({row:f,col:x})} of ${String(s.length)} rows and ${String(a.length)} columns`)}const{spans:h,covered:p}=this.spans(t,d,c),l=e.headings===!0,u=c.map(f=>this.width(t,f)),g=44,m=u.reduce((f,x)=>f+x,0)+(l?g:0),b=[l?`<col style="width:${String(g)}px">`:"",...u.map(f=>`<col style="width:${String(f)}px">`)].join(""),w=[];l&&w.push(`<thead><tr><th></th>${c.map(f=>`<th>${C(f)}</th>`).join("")}</tr></thead>`),w.push("<tbody>");for(const f of d){this.pictures(t);const x=t.spec.rows?.[String(f+1)]?.height??this.drawnFiles.get(t)?.rows.get(f);w.push(`<tr${x===void 0?"":` style="height:${String(x)}px"`}>`),l&&w.push(`<th>${String(f+1)}</th>`),c.forEach((M,L)=>{const A=`${String(f)}:${String(M)}`;if(p.has(A))return;const v=c[L+1],O=v!==void 0&&t.at(f,v)===void 0&&!p.has(`${String(f)}:${String(v)}`);w.push(this.cell(t,f,M,h.get(A),O))}),w.push("</tr>")}w.push("</tbody>"),this.widest=Math.max(this.widest,m);const $=this.charts(t,d,c,u,l?g:0),j=`p${String(n)}`,S=m>690,D=S?m<=1020:!0,R=D?S?1123:794:m+104,F=D?S?794:1123:794;this.pages.push(`<section class="sheet" style="page:${j}"><style>@page ${j}{size:${String(R)}px ${String(F)}px;margin:48px}</style><h2>${y(t.name)}</h2><div class="book"><table class="${l?t.spec.gridlines===!1?"edged":"edged grid":""}" style="width:${String(m)}px"><colgroup>${b}</colgroup>${w.join("")}</table>${$}</div></section>`)}withCharts(t,n){const e={...n};for(const{spec:o,at:r}of t.charts){const{width:s,height:a}=H(o);let d=r.col;for(let h=(o.x??0)+s;h>0;d++)h-=this.width(t,d);let c=r.row;for(let h=(o.y??0)+a;h>0;c++)h-=this.rowHeight(t,c);e.bottom=Math.max(e.bottom,c-1),e.right=Math.max(e.right,d-1)}return e}rowHeight(t,n){return t.spec.rows?.[String(n+1)]?.height??DEFAULT_ROW_HEIGHT}charts(t,n,e,o,r){const[s]=n,[a]=e;if(t.charts.length===0||s===void 0||a===void 0)return"";const d=r>0?DEFAULT_ROW_HEIGHT:0,c={top:s,left:a,bottom:n[n.length-1]??s,right:e[e.length-1]??a},h=l=>{let u=d;for(const g of n){if(g>=l)break;u+=this.rowHeight(t,g)}return u},p=l=>{let u=r;return e.forEach((g,m)=>{g<l&&(u+=o[m]??0)}),u};return t.charts.filter(l=>{const{width:u,height:g}=H(l.spec),m=Math.ceil(u/DEFAULT_COLUMN_WIDTH),b=Math.ceil(g/DEFAULT_ROW_HEIGHT);return N(c,{top:l.at.row,left:l.at.col,bottom:l.at.row+b,right:l.at.col+m})}).map(l=>{const{left:u,top:g,width:m,height:b}=P(l.spec,h,p);return`<div class="chart" style="left:${String(u)}px;top:${String(g)}px">${G(_(this.calc,t,l),m,b,{font:"var(--font)"})}</div>`}).join("")}page(){const{o:t}=this,n=[...this.classes].map(([o,r])=>`.${r}{${o}}`),e=(t.sheets?.length??2)>1&&t.area===void 0;return`<!doctype html><html><head><meta charset="utf-8"><style>
3
+ ${t.css??""}
4
+ :root{--font:${t.font===void 0?"":`"${t.font}",`}Carlito,Calibri,Arial,sans-serif}
5
+ *{box-sizing:border-box}
6
+ html,body{margin:0;background:#fff;color:#000}
7
+ body{font:11pt/1.2 var(--font)}
8
+ .sheet{break-after:page}
9
+ .sheet:last-child{break-after:auto}
10
+ h2{font:bold 12pt var(--font);margin:0 0 8px;${e?"":"display:none"}}
11
+ table{table-layout:fixed;border-collapse:collapse}
12
+ td,th{height:${String(DEFAULT_ROW_HEIGHT)}px;padding:0 3px;overflow:hidden;white-space:pre;vertical-align:bottom}
13
+ td.over{overflow:visible}
14
+ .book{position:relative;width:max-content;overflow:hidden}
15
+ .chart{position:absolute;line-height:0}
16
+ .grid td{border:1px solid #e3e3e3}
17
+ .edged th{border:1px solid #e3e3e3;background:#f5f5f5;color:#555;font-weight:normal;text-align:center;vertical-align:middle;font-size:9pt}
18
+ ${n.join(`
19
+ `)}
20
+ </style></head><body>${this.pages.join("")}</body></html>`}}export function sheetHtml(i,t={}){const n=t.sheets??i.wb.sheets.filter(o=>o.spec.hidden!==!0),e=new rt(i,{...t,sheets:n});return n.forEach((o,r)=>{e.sheet(o,r)}),{html:e.page(),width:e.widest,cut:e.cut}}
@@ -0,0 +1,11 @@
1
+ export interface ImportedSheet {
2
+ /** sheet.yaml's text. */
3
+ text: string;
4
+ /** The rows' path from the sheet's folder, and its text. */
5
+ path: string;
6
+ csv: string;
7
+ rows: number;
8
+ }
9
+ /** A sheet of a file's rows; `name` is what its table and title are called. */
10
+ export declare function importRows(name: string, text: string, delimiter: "," | "\t"): ImportedSheet;
11
+ //# sourceMappingURL=import.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readCsv as m,writeCsv as c}from"./csv.js";import{validName as p}from"./workbook.js";import{writeYaml as w}from"./write.js";const f=r=>{const e=r.replace(/[^\p{L}\p{N}_]+/gu,"_").replace(/^_+|_+$/gu,"");return p(e)?e:`t_${e||"rows"}`};export function importRows(r,e,n){const t=m(e,n),o=t.problems[0];if(o)throw new Error(`line ${String(o.line)}: ${o.message}`);const s=t.records.map(i=>i.fields);if(s.length===0)throw new Error("the file holds no rows");const a=f(r),l=`data/${a.toLowerCase()}.csv`;return{text:w({title:r,sheets:[{name:"Sheet1",freeze:"A2",tables:[{name:a,at:"A1",rows:l}]}]}),path:l,csv:n===","&&t.dialect.finalNewline?e:c(s),rows:s.length-1}}
@@ -0,0 +1,38 @@
1
+ export * from "./address.js";
2
+ export { DEFAULT_DIALECT, csvField, csvRecord, csvRows, fromTsv, readCsv, toTsv, writeCsv, type CsvDialect, type CsvProblem, type CsvRecord, type ParsedCsv, } from "./csv.js";
3
+ export { patchCsv } from "./patch.js";
4
+ export * from "./values.js";
5
+ export * from "./workbook.js";
6
+ export { dataFilesOf, readSheetFile, type SheetProblem } from "./file.js";
7
+ export { GENERATED, ordinarySheet, typedNumbers, withGenerated, type GeneratedSheets, type MergedFile, } from "./generated.js";
8
+ export { applyScenario, cellOfName, scenarioNames, scenariosByCell, type ScenarioCell, type SheetScenarios, } from "./scenario.js";
9
+ export { fileCells, hasFiles, isPicture, pictureHeight, pictureSize, type FileCell, } from "./files.js";
10
+ export * from "./formula/ast.js";
11
+ export { parseFormula } from "./formula/parse.js";
12
+ export { printFormula, sheetPrefix } from "./formula/print.js";
13
+ export { moveFormula } from "./formula/move.js";
14
+ export { rewriteFormula, type StructureEdit } from "./formula/rewrite.js";
15
+ export { Calc, seededRandom, type CalcOptions, type CellChange, } from "./calc/engine.js";
16
+ export { analyse, type Analysis } from "./calc/analyse.js";
17
+ export { FUNCTIONS } from "./calc/functions/index.js";
18
+ export { Reference } from "./calc/types.js";
19
+ export { checkWorkbook, placeName, type CheckedWorkbook } from "./check.js";
20
+ export { csvOf, jsonOf, markdownOf, tableRows } from "./export.js";
21
+ export { dataValue, isDateCode, shownColor, shownValue } from "./format.js";
22
+ export { DEFAULT_COLUMN_WIDTH, DEFAULT_ROW_HEIGHT, sheetHtml, type SheetHtml, type SheetHtmlOptions, } from "./html.js";
23
+ export { PROFILE_TOP, profileTable, type ColumnProfile } from "./profile.js";
24
+ export { importRows, type ImportedSheet } from "./import.js";
25
+ export { patchYaml, writeYaml } from "./write.js";
26
+ export * from "./edit.js";
27
+ export * from "./arrange.js";
28
+ export { NO_LOOK, autoFill, copyLooks, fillDownTo, moveCells, pasteLooks, type LookCopy, } from "./fill.js";
29
+ export { seriesAfter, type FillMode } from "./series.js";
30
+ export { compareForSort, hasHeader, sortCells, sortedOrder, sortedRows, type SortKey, } from "./sort.js";
31
+ export { filterChoices, filteredRows, regionAround, type FilterChoice, } from "./filter.js";
32
+ export { Rules, colorBetween, compareValues, holds, iconShape, type IconShape, type RuleShow, } from "./rules.js";
33
+ export { choicesIn, invalidCells, joinChoices, listValues, separatorOf, valid, type InvalidCell, } from "./validate.js";
34
+ export { freeColumn, restructure, tableShape, uniqueColumn, withColumnsUpTo, type BookValues, type RefusedEdit, type Restructured, type TableShape, } from "./structure.js";
35
+ export { SHEET_CHART_DEFAULTS, chartAfter, chartDataRange, chartDef, chartOfRange, chartPlace, chartSize, chartSvg, readDataRange, type ChartSvgOptions, type NewChart, } from "./chart.js";
36
+ export { INSPECT_DEFAULTS, SHEET_FACT_KINDS, inspectWorkbook, type InspectOptions, type SheetFactKind, type SheetFinding, } from "./inspect.js";
37
+ export { DIFF_DEFAULTS, diffWorkbooks, type CellChange as DiffCell, type DiffKind, type DiffOptions, type DiffSide, type SheetDiff, type TableDiff, type WorkbookDiff, } from "./diff.js";
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export*from"./address.js";export{DEFAULT_DIALECT,csvField,csvRecord,csvRows,fromTsv,readCsv,toTsv,writeCsv}from"./csv.js";export{patchCsv}from"./patch.js";export*from"./values.js";export*from"./workbook.js";export{dataFilesOf,readSheetFile}from"./file.js";export{GENERATED,ordinarySheet,typedNumbers,withGenerated}from"./generated.js";export{applyScenario,cellOfName,scenarioNames,scenariosByCell}from"./scenario.js";export{fileCells,hasFiles,isPicture,pictureHeight,pictureSize}from"./files.js";export*from"./formula/ast.js";export{parseFormula}from"./formula/parse.js";export{printFormula,sheetPrefix}from"./formula/print.js";export{moveFormula}from"./formula/move.js";export{rewriteFormula}from"./formula/rewrite.js";export{Calc,seededRandom}from"./calc/engine.js";export{analyse}from"./calc/analyse.js";export{FUNCTIONS}from"./calc/functions/index.js";export{Reference}from"./calc/types.js";export{checkWorkbook,placeName}from"./check.js";export{csvOf,jsonOf,markdownOf,tableRows}from"./export.js";export{dataValue,isDateCode,shownColor,shownValue}from"./format.js";export{DEFAULT_COLUMN_WIDTH,DEFAULT_ROW_HEIGHT,sheetHtml}from"./html.js";export{PROFILE_TOP,profileTable}from"./profile.js";export{importRows}from"./import.js";export{patchYaml,writeYaml}from"./write.js";export*from"./edit.js";export*from"./arrange.js";export{NO_LOOK,autoFill,copyLooks,fillDownTo,moveCells,pasteLooks}from"./fill.js";export{seriesAfter}from"./series.js";export{compareForSort,hasHeader,sortCells,sortedOrder,sortedRows}from"./sort.js";export{filterChoices,filteredRows,regionAround}from"./filter.js";export{Rules,colorBetween,compareValues,holds,iconShape}from"./rules.js";export{choicesIn,invalidCells,joinChoices,listValues,separatorOf,valid}from"./validate.js";export{freeColumn,restructure,tableShape,uniqueColumn,withColumnsUpTo}from"./structure.js";export{SHEET_CHART_DEFAULTS,chartAfter,chartDataRange,chartDef,chartOfRange,chartPlace,chartSize,chartSvg,readDataRange}from"./chart.js";export{INSPECT_DEFAULTS,SHEET_FACT_KINDS,inspectWorkbook}from"./inspect.js";export{DIFF_DEFAULTS,diffWorkbooks}from"./diff.js";
@@ -0,0 +1,25 @@
1
+ import type { SheetFactData } from "@allyhub-next/formats";
2
+ import type { Calc } from "./calc/engine.js";
3
+ export type SheetFactKind = keyof SheetFactData;
4
+ export type SheetFinding = {
5
+ [K in SheetFactKind]: {
6
+ kind: K;
7
+ data: SheetFactData[K];
8
+ };
9
+ }[SheetFactKind];
10
+ export declare const SHEET_FACT_KINDS: readonly ["sheet-error", "sheet-number", "sheet-unlike", "sheet-exception", "sheet-unused", "sheet-invalid", "sheet-typed", "sheet-ordinary"];
11
+ export interface InspectOptions {
12
+ /** Numbers a formula may hold and not be said: what any formula has. */
13
+ plain?: readonly number[];
14
+ /** How many neighbours each side must agree for a cell to be unlike them. */
15
+ around?: number;
16
+ /** Every number in every formula, whatever `plain` says, and a table's columns nothing reads. */
17
+ all?: boolean;
18
+ }
19
+ export declare const INSPECT_DEFAULTS: {
20
+ readonly plain: readonly [0, 1, -1];
21
+ readonly around: 1;
22
+ };
23
+ /** The facts of a workbook, computed. */
24
+ export declare function inspectWorkbook(calc: Calc, o?: InspectOptions): SheetFinding[];
25
+ //# sourceMappingURL=inspect.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{cellName as g}from"./address.js";import"./calc/types.js";import{analyse as y}from"./calc/analyse.js";import{dataValue as S,shownValue as x}from"./format.js";import{relativeKey as _}from"./formula/move.js";import{exceptionsOf as C}from"./edit.js";import{invalidCells as F}from"./validate.js";import{CellError as E}from"./values.js";import{FormulaCell as v}from"./workbook.js";export const SHEET_FACT_KINDS=["sheet-error","sheet-number","sheet-unlike","sheet-exception","sheet-unused","sheet-invalid","sheet-typed","sheet-ordinary"],INSPECT_DEFAULTS={plain:[0,1,-1],around:1};function w(o){const s=new Map;for(const t of o.formulas){const n=s.get(t.shared);n?(n.count+=1,(t.row<n.first.row||t.row===n.first.row&&t.col<n.first.col)&&(n.first=t)):s.set(t.shared,{shared:t.shared,first:t,count:1})}return[...s.values()].sort((t,n)=>t.first.row-n.first.row||t.first.col-n.first.col)}function k(o,s,t){switch(o.kind){case"number":t.push({value:o.value,in:s});return;case"unary":o.op==="-"&&o.arg.kind==="number"?t.push({value:-o.arg.value,in:s}):k(o.arg,o.op,t);return;case"postfix":k(o.arg,o.op,t);return;case"paren":k(o.arg,s,t);return;case"binary":k(o.left,o.op,t),k(o.right,o.op,t);return;case"array":for(const n of o.rows)for(const l of n)k(l,"{}",t);return;case"call":for(const n of o.args)k(n,o.name,t);return;case"invoke":k(o.callee,s,t);for(const n of o.args)k(n,"LAMBDA",t);return;default:return}}function N(o,s){const t={error:!1};for(const n of o.precedents(s))if(o.each(n,l=>{l instanceof E&&(t.error=!0)}),t.error)return!1;return!0}const b=new WeakMap;function A(o){const s=b.get(o);if(s!==void 0)return s;const t=o.node?_(o.node,o.row,o.col):o.text;return b.set(o,t),t}const I=(o,s)=>o instanceof v?o.text:x(o,s);function M(o,s,t){const n=[],l=(r,e)=>{if(r<0||e<0)return;const u=o.at(r,e);return u instanceof v?A(u.shared):void 0},c=(r,e,u,i)=>{const a=u==="column"?1:0,f=u==="row"?1:0,h=o.at(r,e);if(h===void 0||h instanceof v&&A(h.shared)===i)return;for(let d=1;d<=s;d++)if(l(r-a*d,e-f*d)!==i||l(r+a*d,e+f*d)!==i)return;if(t.has(r*16384+e))return;let m=s*2;for(let d=s+1;l(r-a*d,e-f*d)===i;d++)m+=1;for(let d=s+1;l(r+a*d,e+f*d)===i;d++)m+=1;const p=o.at(r-a,e-f);n.push({sheet:o.name,cell:g({row:r,col:e}),holds:I(h,o.lookAt(r,e).format),neighbour:p instanceof v?p.text:"",along:u,run:m})};for(const r of o.formulas){const e=A(r.shared);c(r.row+1,r.col,"column",e),c(r.row,r.col+1,"row",e)}return n.sort((r,e)=>T(r.cell,e.cell))}const T=(o,s)=>o.length-s.length||o.localeCompare(s,"en",{numeric:!0});function R(o,s){const t=[],n=(c,r)=>{c&&t.push(...o.readsOfFormula(c,r))};for(const c of s.sheets){for(const r of c.conditions)for(const e of r.formulas)n(e,c);for(const r of c.validations)for(const e of r.formulas)n(e,c);for(const r of c.charts){n(r.title,c),n(r.categories,c);for(const e of r.series)n(e.values,c),n(e.x,c),n(e.name,c)}}const l=s.sheets[0];if(l){for(const c of s.checks)n(c.formula,l);for(const c of s.names.values())n(c.formula,l)}return t}function D(o){const s=new Set,t=n=>{if(n)for(const l of y(o,n).names)s.add(l)};for(const n of o.sheets){for(const{shared:l}of w(n))t(l);for(const l of n.conditions)l.formulas.forEach(t);for(const l of n.validations)l.formulas.forEach(t);for(const l of n.charts){t(l.title),t(l.categories);for(const c of l.series)t(c.values),t(c.x),t(c.name)}}for(const n of o.checks)t(n.formula);return s}function K(o,s,t){const n=[],l=D(s);for(const e of s.names.values())l.has(e.name.toLowerCase())||n.push({what:"name",name:e.name,value:e.formula?.text??x(e.value??null)});const c=R(o,s),r=(e,u,i)=>c.some(a=>a.sheet===e&&u>=a.top&&u<=a.bottom&&i>=a.left&&i<=a.right)||o.readers(e,u,i).length>0;for(const e of s.sheets){for(let u=0;u<e.columnsUsed;u++){const[i,a]=e.span(u,0,Number.MAX_SAFE_INTEGER);for(let f=i;f<=a;f++){const h=e.at(f,u);typeof h=="number"&&(e.tableAt(f,u)||e.blockAt(f,u)||r(e,f,u)||n.push({what:"cell",sheet:e.name,name:g({row:f,col:u}),value:x(h,e.lookAt(f,u).format)}))}}if(t)for(const u of e.tables)for(const i of u.columns){const a=u.at.col+i.index,{top:f,bottom:h}=u.data;let m=!1;for(let p=f;p<=h&&!m;p++)m=r(e,p,a);m||n.push({what:"column",sheet:e.name,name:`${u.name}[${i.name}]`})}}return n}export function inspectWorkbook(o,s={}){const{wb:t}=o,n=new Set(s.plain??INSPECT_DEFAULTS.plain),l=Math.max(1,s.around??INSPECT_DEFAULTS.around),c=s.all===!0,r=[];for(const e of t.sheets){const u=[...e.formulas].sort((a,f)=>a.row-f.row||a.col-f.col);for(const a of u){const{value:f}=a;f instanceof E&&r.push({kind:"sheet-error",data:{sheet:e.name,cell:g(a),code:f.code,formula:a.text,origin:N(o,a)}})}for(let a=0;a<e.columnsUsed;a++){const[f,h]=e.span(a,0,Number.MAX_SAFE_INTEGER);for(let m=f;m<=h;m++){const p=e.at(m,a);p instanceof E&&r.push({kind:"sheet-error",data:{sheet:e.name,cell:g({row:m,col:a}),code:p.code,origin:!0}})}}for(const{shared:a,first:f,count:h}of w(e)){if(!a.node)continue;const m=[];k(a.node,"=",m);const p=c?m:m.filter(d=>!n.has(d.value));p.length>0&&r.push({kind:"sheet-number",data:{sheet:e.name,cell:g(f),cells:h,formula:f.text,numbers:p}})}const i=new Set;for(const a of e.tables)for(const f of C(a))i.add(f.row*16384+f.col),r.push({kind:"sheet-exception",data:{sheet:e.name,table:a.name,column:f.column,cell:g(f),text:f.text}});for(const a of M(e,l,i))r.push({kind:"sheet-unlike",data:a})}for(const e of K(o,t,c))r.push({kind:"sheet-unused",data:e});for(const e of F(t,o))r.push({kind:"sheet-invalid",data:{sheet:e.sheet,cell:g(e),value:S(e.value,void 0),rule:e.type,range:e.range}});for(const e of t.generated?.typed??[])t.sheet(e.sheet)?.generated===!0&&r.push({kind:"sheet-typed",data:e});for(const e of t.ordinary)r.push({kind:"sheet-ordinary",data:{sheet:e}});return r}
@@ -0,0 +1,4 @@
1
+ import { type ParsedCsv } from "./csv.js";
2
+ /** The file `csv` was read from, written again with `rows`, its first the header. */
3
+ export declare function patchCsv(csv: ParsedCsv, rows: readonly (readonly string[])[]): string;
4
+ //# sourceMappingURL=patch.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{csvRecord as y}from"./csv.js";const k=(c,t)=>{if(c.length===0)return"";const n=[];for(let o=0;o<t;o++)n.push(c[o]??"");return n.join("\0")},b=(c,t)=>k(c.end===c.start?[]:c.fields,t);export function patchCsv(c,t){const{dialect:n,records:o,source:u}=c,a=t.reduce((e,l)=>Math.max(e,l.length),0);if(t.length===0)return n.bom?"\uFEFF":"";const g=new Map;for(const e of o)g.set(e.fields,e);const h=new Set,i=new Array(t.length);t.forEach((e,l)=>{const s=g.get(e);s&&!h.has(s)&&(h.add(s),i[l]=u.slice(s.start,s.end))});let r;t.forEach((e,l)=>{if(i[l]!==void 0)return;if(!r){r=new Map;for(const f of o){if(h.has(f)||f.fields.length>a)continue;const m=b(f,a),p=r.get(m);p?p.push(f):r.set(m,[f])}}const s=r.get(k(e,a))?.shift();if(s){i[l]=u.slice(s.start,s.end);return}const d=[...e];for(;d.length<a;)d.push("");i[l]=e.length===0?"":y(d,n.delimiter)});const w=n.finalNewline||i[i.length-1]==="";return`${n.bom?"\uFEFF":""}${i.join(n.newline)}${w?n.newline:""}`}
@@ -0,0 +1,30 @@
1
+ import type { Calc } from "./calc/engine.js";
2
+ import type { Table } from "./workbook.js";
3
+ /** How many of a column's most frequent values are listed. */
4
+ export declare const PROFILE_TOP = 5;
5
+ export interface ColumnProfile {
6
+ name: string;
7
+ /** A calculated column's formula. */
8
+ formula?: string;
9
+ rows: number;
10
+ empty: number;
11
+ distinct: number;
12
+ numbers: number;
13
+ dates: number;
14
+ text: number;
15
+ booleans: number;
16
+ errors: number;
17
+ min?: number;
18
+ max?: number;
19
+ sum?: number;
20
+ mean?: number;
21
+ shortest?: number;
22
+ longest?: number;
23
+ top: {
24
+ value: string;
25
+ count: number;
26
+ }[];
27
+ }
28
+ /** Each column of a table. */
29
+ export declare function profileTable(calc: Calc, table: Table, top?: number): ColumnProfile[];
30
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{CellError as h}from"./values.js";import{isDateCode as g}from"./format.js";export const PROFILE_TOP=5;function y(p,s,m,u,a){const e={name:p,...s===void 0?{}:{formula:s},rows:m.length,empty:0,distinct:0,numbers:0,dates:0,text:0,booleans:0,errors:0,top:[]},n=new Map;let r=0,i=1/0,o=-1/0,l=1/0,c=-1;return m.forEach((t,f)=>{if(t===null){e.empty+=1;return}const d=t instanceof h?t.code:String(t);n.set(d,(n.get(d)??0)+1),typeof t=="number"?(u[f]===!0?e.dates+=1:e.numbers+=1,r+=t,t<i&&(i=t),t>o&&(o=t)):typeof t=="string"?(e.text+=1,t.length<l&&(l=t.length),t.length>c&&(c=t.length)):typeof t=="boolean"?e.booleans+=1:e.errors+=1}),e.distinct=n.size,e.numbers+e.dates>0&&(e.min=i,e.max=o),e.numbers>0&&(e.sum=r,e.mean=r/e.numbers),c>=0&&(e.shortest=l,e.longest=c),e.top=[...n].sort((t,f)=>f[1]-t[1]||(t[0]<f[0]?-1:1)).slice(0,a).map(([t,f])=>({value:t,count:f})),e}export function profileTable(p,s,m=PROFILE_TOP){const{sheet:u,at:a}=s;return s.columns.map(e=>{const n=a.col+e.index,r=[],i=[];for(let o=0;o<s.rows;o++){const l=a.row+1+o;r.push(p.value(u,l,n)),i.push(g(u.lookAt(l,n).format))}return y(e.name,e.formula?.text,r,i,m)})}
@@ -0,0 +1,56 @@
1
+ import type { Calc } from "./calc/engine.js";
2
+ import { type Scalar } from "./values.js";
3
+ import type { CellLook, Worksheet } from "./workbook.js";
4
+ /** What rules give a cell. */
5
+ export interface RuleShow {
6
+ /** Over the cell's own look. */
7
+ look?: CellLook;
8
+ /** A data bar: its length as a share of the cell. */
9
+ bar?: {
10
+ share: number;
11
+ color: string;
12
+ };
13
+ /** A colour scale's fill. */
14
+ scale?: string;
15
+ /** An icon of a set, from the lowest. */
16
+ icon?: {
17
+ set: string;
18
+ index: number;
19
+ };
20
+ /** The bar or the icon alone: the value is not shown. */
21
+ bare?: boolean;
22
+ }
23
+ /** A colour between two, by a share of the way. */
24
+ export declare function colorBetween(a: string, b: string, share: number): string;
25
+ /** One value against a bound, as Excel orders them: numbers, then text, then TRUE and FALSE. */
26
+ export declare function compareValues(a: Scalar, b: Scalar): number;
27
+ /** Whether a value stands as an operator asks of its bounds. */
28
+ export declare function holds(operator: string, value: Scalar, first: Scalar, second: Scalar): boolean;
29
+ export declare class Rules {
30
+ private readonly sheet;
31
+ private readonly calc;
32
+ private readonly measured;
33
+ constructor(sheet: Worksheet, calc: Calc);
34
+ private measure;
35
+ private eachIn;
36
+ /** A bound's value at a cell: a formula's result, or what is written. */
37
+ private boundAt;
38
+ /** A stop's place on a rule's scale of numbers. */
39
+ private stopAt;
40
+ private whether;
41
+ private scale;
42
+ private bar;
43
+ private icon;
44
+ /** What every rule on a place gives it. */
45
+ at(row: number, col: number): RuleShow | undefined;
46
+ }
47
+ /** What an icon of a set looks like: a shape and its colour, wherever it is drawn. */
48
+ export interface IconShape {
49
+ shape: "up" | "up-right" | "right" | "down-right" | "down" | "circle" | "flag" | "check" | "bang" | "cross" | "triangle" | "diamond" | "bars" | "quarter";
50
+ color: string;
51
+ /** For bars and quarters: how many of four, or of all. */
52
+ level?: number;
53
+ }
54
+ /** The icon at a place of a set, the first the lowest. */
55
+ export declare function iconShape(set: string, index: number): IconShape;
56
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{contains as A}from"./address.js";import{toBool as S}from"./calc/coerce.js";import{CellError as l,Matrix as y,readTyped as k}from"./values.js";const d=.1,E=.9,x={3:[0,33,67],4:[0,25,50,75],5:[0,20,40,60,80]},w=s=>{if(!(s===null||s==="")&&!(s instanceof l))return typeof s=="string"?`s${s.toLowerCase()}`:`${typeof s}${String(s)}`},B=s=>Math.round(s).toString(16).padStart(2,"0");export function colorBetween(s,t,r){const i=(e,n)=>Number.parseInt(e.slice(n,n+2),16),o=e=>B(i(s,e)+(i(t,e)-i(s,e))*r);return`#${o(1)}${o(3)}${o(5)}`.toUpperCase()}export function compareValues(s,t){const r=e=>typeof e=="number"||e===null?0:typeof e=="string"?1:typeof e=="boolean"?2:3,i=r(s),o=r(t);if(i!==o)return i-o;if(i===0)return(s??0)-(t??0);if(i===1){const e=s.toLowerCase(),n=t.toLowerCase();return e<n?-1:e>n?1:0}return s===t?0:s===!0?1:-1}export function holds(s,t,r,i){if(t instanceof l)return!1;const o=()=>compareValues(t,r);switch(s){case"equal":return o()===0;case"notEqual":return o()!==0;case"greaterThan":return o()>0;case"lessThan":return o()<0;case"greaterThanOrEqual":return o()>=0;case"lessThanOrEqual":return o()<=0;default:{const e=o()>=0&&compareValues(t,i)<=0;return s==="notBetween"?!e:e}}}const M=s=>s===null||s instanceof l?"":typeof s=="boolean"?s?"TRUE":"FALSE":String(s);function C(s,t,r){if(t instanceof l)return!1;const i=M(t).toLowerCase(),o=r.toLowerCase();switch(s){case"notContains":return!i.includes(o);case"beginsWith":return i.startsWith(o);case"endsWith":return i.endsWith(o);default:return i.includes(o)}}function F(s){if(s.type==="dataBar"||s.type==="colorScale"||s.type==="iconSet")return;const t={};return s.bold!==void 0&&(t.bold=s.bold),s.italic!==void 0&&(t.italic=s.italic),s.underline!==void 0&&(t.underline=s.underline),s.strike!==void 0&&(t.strike=s.strike),s.color!==void 0&&(t.color=s.color),s.fill!==void 0&&(t.fill=s.fill),s.border!==void 0&&(t.border=s.border),t}function L(s,t){const r=(s.length-1)*t,i=Math.floor(r),o=Math.ceil(r),e=s[i]??0,n=s[o]??e;return e+(n-e)*(r-i)}export class Rules{sheet;calc;measured=new Map;constructor(t,r){this.sheet=t,this.calc=r}measure(t){const r=this.measured.get(t);if(r)return r;const i=[],o=new Map;for(const n of t.areas)this.eachIn(n,c=>{typeof c=="number"&&i.push(c);const a=w(c);a!==void 0&&o.set(a,(o.get(a)??0)+1)});const e={numbers:i,sorted:[...i].sort((n,c)=>n-c),counts:o};return this.measured.set(t,e),e}eachIn(t,r){const{sheet:i,calc:o}=this,e=Math.min(t.right,i.columnsUsed-1);for(let n=t.left;n<=e;n++){const[c,a]=i.span(n,t.top,t.bottom);for(let u=c;u<=a;u++){const f=o.value(i,u,n);f!==null&&r(f)}}}boundAt(t,r,i,o){if(r===void 0)return null;if(typeof r=="number")return r;if(!r.startsWith("=")){const c=k(r);return c.formula===void 0?c.value:r}const e=t.formulas.find(c=>c.text===r);if(!e)return null;const n=this.calc.evaluateAt(e,this.sheet,i,o);return n instanceof y?n.at(0,0):n}stopAt(t,r,i,o,e){const{sorted:n}=this.measure(t),c=n[0]??0,a=n[n.length-1]??0,u=this.boundAt(t,r.value,i,o),f=typeof u=="number"?u:void 0;switch(r.at){case"min":return c;case"max":return a;case"percent":return c+(a-c)*(f??e)/100;case"percentile":return L(n,(f??e)/100);default:return f??e}}whether(t,r,i,o){const{spec:e}=t;switch(e.type){case"cellIs":return holds(e.operator,r,this.boundAt(t,e.formula[0],i,o),this.boundAt(t,e.formula[1],i,o));case"containsText":return C(e.operator,r,e.text);case"duplicateValues":case"uniqueValues":{const n=w(r);if(n===void 0)return!1;const c=this.measure(t).counts.get(n)??0;return e.type==="duplicateValues"?c>1:c===1}case"top10":{if(typeof r!="number")return!1;const{sorted:n}=this.measure(t),c=e.percent===!0?Math.max(1,Math.floor(n.length*e.rank/100)):e.rank,a=e.bottom===!0?n[Math.min(c,n.length)-1]:n[Math.max(n.length-c,0)];return a===void 0?!1:e.bottom===!0?r<=a:r>=a}case"aboveAverage":{if(typeof r!="number")return!1;const{numbers:n}=this.measure(t);if(n.length===0)return!1;const c=n.reduce((a,u)=>a+u,0)/n.length;return e.equal===!0&&r===c?!0:e.below===!0?r<c:r>c}case"expression":{const[n]=t.formulas;if(!n)return!1;const c=this.calc.evaluateAt(n,this.sheet,i,o),a=c instanceof y?c.at(0,0):c;return S(a)===!0}default:return!1}}scale(t,r,i,o,e){const n=r.stops.map((u,f)=>({at:this.stopAt(t,u,o,e,f*100/(r.stops.length-1)),color:u.color})),[c]=n,a=n[n.length-1];if(!(!c||!a)){if(i<=c.at)return c.color;if(i>=a.at)return a.color;for(let u=1;u<n.length;u++){const f=n[u-1],h=n[u];if(f&&h&&i<=h.at)return colorBetween(f.color,h.color,h.at===f.at?1:(i-f.at)/(h.at-f.at))}return a.color}}bar(t,r,i,o,e){const n=this.stopAt(t,r.min??{at:"min"},o,e,0),c=this.stopAt(t,r.max??{at:"max"},o,e,100);if(c<=n)return d;const a=Math.min(1,Math.max(0,(i-n)/(c-n)));return d+(E-d)*a}icon(t,r,i,o,e){const n=Number.parseInt(r.icons,10),c=r.stops??(x[n]??[]).map(u=>({at:"percent",value:u}));let a=0;return c.forEach((u,f)=>{i>=this.stopAt(t,u,o,e,0)&&(a=f)}),r.reverse===!0?n-1-a:a}at(t,r){const{sheet:i,calc:o}=this;if(i.conditions.length===0)return;const e=o.value(i,t,r);let n;for(const c of i.conditions){if(!c.areas.some(u=>A(u,t,r)))continue;const{spec:a}=c;if(a.type==="dataBar"||a.type==="colorScale"||a.type==="iconSet"){if(typeof e!="number")continue;if(n??={},a.type==="dataBar")n.bar??={share:this.bar(c,a,e,t,r),color:a.color},a.show===!1&&(n.bare=!0);else if(a.type==="colorScale"){const u=this.scale(c,a,e,t,r);u!==void 0&&(n.scale??=u)}else n.icon??={set:a.icons,index:this.icon(c,a,e,t,r)},a.show===!1&&(n.bare=!0);if(a.stop===!0)break;continue}if(this.whether(c,e,t,r)&&(n??={},n.look={...F(a),...n.look},a.stop===!0))break}return n}}const m="#00A651",g="#FFC000",b="#E03C32",p="#7F7F7F",T="#000000",R="#2F75B5",O=s=>s===3?[b,g,m]:s===4?[T,b,g,m]:[b,"#ED7D31",g,"#92D050",m];export function iconShape(s,t){const r=Number.parseInt(s,10),o=O(r)[t]??p,e=s.slice(1);return e.startsWith("Arrows")?{shape:(r===3?["down","right","up"]:r===4?["down","down-right","up-right","up"]:["down","down-right","right","up-right","up"])[t]??"right",color:e==="ArrowsGray"?p:o}:e==="Flags"?{shape:"flag",color:o}:e==="Signs"?{shape:t===0?"diamond":t===1?"triangle":"circle",color:o}:e.startsWith("Symbols")?{shape:t===0?"cross":t===1?"bang":"check",color:o}:e==="Rating"?{shape:"bars",color:R,level:t+1}:e==="Quarters"?{shape:"quarter",color:p,level:t}:e==="RedToBlack"?{shape:"circle",color:["#000000","#7F7F7F","#F4B6B6","#E03C32"][t]??p}:{shape:"circle",color:o}}
@@ -0,0 +1,42 @@
1
+ import type { Calc } from "./calc/engine.js";
2
+ import { type Scalar } from "./values.js";
3
+ import { type DefinedName, type Workbook, type Worksheet } from "./workbook.js";
4
+ /** The workbook's scenarios, by name, in the file's order. */
5
+ export declare function scenarioNames(wb: Workbook): string[];
6
+ /** The one typed or computed cell a name stands for, if it is a cell. */
7
+ export declare function cellOfName(wb: Workbook, name: DefinedName): {
8
+ sheet: Worksheet;
9
+ row: number;
10
+ col: number;
11
+ } | undefined;
12
+ /**
13
+ * A workbook as a scenario has it, before anything is computed. False when
14
+ * there is no such scenario. Names it holds that are not there are the check's
15
+ * to say.
16
+ */
17
+ export declare function applyScenario(wb: Workbook, scenario: string): boolean;
18
+ export interface ScenarioCell {
19
+ row: number;
20
+ col: number;
21
+ /** What the scenario has it hold. */
22
+ value: Scalar;
23
+ /** What it holds as the file stands. */
24
+ base: Scalar;
25
+ }
26
+ export interface SheetScenarios {
27
+ sheet: Worksheet;
28
+ /** Each scenario's cells on this sheet, by name. */
29
+ scenarios: {
30
+ name: string;
31
+ cells: ScenarioCell[];
32
+ }[];
33
+ }
34
+ /**
35
+ * Scenarios as Excel holds them, each of a sheet and of its cells; what names
36
+ * no cell has no place there, and is said.
37
+ */
38
+ export declare function scenariosByCell(calc: Calc): {
39
+ sheets: SheetScenarios[];
40
+ left: string[];
41
+ };
42
+ //# sourceMappingURL=scenario.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{parseFormula as p}from"./formula/parse.js";import{readTyped as m}from"./values.js";import{SharedFormula as h}from"./workbook.js";export function scenarioNames(e){return Object.keys(e.file.scenarios??{})}export function cellOfName(e,r){const s=r.formula?.text;if(s===void 0)return;const c=p(s);if(!c.ok||c.node.kind!=="ref")return;const n=c.node;if(n.range||!n.col||!n.row||n.lastSheet!==void 0)return;const o=n.sheet===void 0?e.sheets[0]:e.sheet(n.sheet);return o&&{sheet:o,row:n.row.index,col:n.col.index}}const d=e=>typeof e=="string"?m(e):{value:e??null};export function applyScenario(e,r){const s=e.file.scenarios?.[r];if(!s)return!1;for(const[c,n]of Object.entries(s)){const o=e.name(c);if(!o)continue;const t=d(n),l=cellOfName(e,o);t.formula!==void 0?(o.formula=new h(t.formula,0,0,o.source),delete o.value):l?l.sheet.replace(l.row,l.col,t.value??void 0):(o.value=t.value,delete o.formula)}return!0}export function scenariosByCell(e){const{wb:r}=e,s=new Map,c=[];for(const n of scenarioNames(r)){const o=new Map;for(const[t,l]of Object.entries(r.file.scenarios?.[n]??{})){const f=r.name(t),a=f&&cellOfName(r,f),i=d(l);if(!a||i.formula!==void 0){c.push(`scenario ${n}'s ${t}: Excel's scenarios change cells, and it is no cell`);continue}const u=o.get(a.sheet)??[];u.push({row:a.row,col:a.col,value:i.value,base:e.value(a.sheet,a.row,a.col)}),o.set(a.sheet,u)}for(const[t,l]of o){const f=s.get(t)??{sheet:t,scenarios:[]};f.scenarios.push({name:n,cells:l}),s.set(t,f)}}return{sheets:[...s.values()],left:c}}
@@ -0,0 +1,10 @@
1
+ export type FillMode = "auto" | "copy" | "series";
2
+ /**
3
+ * The inputs that follow a run of them, nearest first: `back` says the run is
4
+ * being dragged up or left. Formulas are the caller's.
5
+ */
6
+ export declare function seriesAfter(inputs: readonly string[], count: number, o?: {
7
+ mode?: FillMode;
8
+ back?: boolean;
9
+ }): string[];
10
+ //# sourceMappingURL=series.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{dateOfSerial as y,isoOfSerial as g,readTyped as C,serialOfDate as T}from"./values.js";const M=[["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],["周一","周二","周三","周四","周五","周六","周日"],["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]],A=[["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]],S=[...M,...A];function D(t){const e=t.trim().toLowerCase();for(const f of S){const o=f.findIndex(n=>n.toLowerCase()===e);if(o>=0)return{list:f,at:o}}}function U(t,e){return e===e.toUpperCase()&&e!==e.toLowerCase()?t.toUpperCase():e===e.toLowerCase()&&e!==e.toUpperCase()?t.toLowerCase():t}const b=/^\d{4}-\d{2}-\d{2}/u;function h(t,e,f){const o=t.length,n=(o-1)/2,a=t.reduce((r,u)=>r+u,0)/o;let d=0,s=0;t.forEach((r,u)=>{d+=(u-n)*(r-a),s+=(u-n)**2});const c=s===0?1:d/s,l=[];for(let r=0;r<e;r++){const u=f?-1-r:o+r,i=a+c*(u-n);l.push(Number(i.toPrecision(15)))}return l}function L(t,e,f){const o=t.map(s=>y(s)),n=o.flatMap(s=>s?[s]:[]),[a,d]=n;if(a&&d&&n.length===o.length){const s=r=>r.getUTCFullYear()*12+r.getUTCMonth(),c=s(d)-s(a);if(c!==0&&n.every((r,u)=>r.getUTCDate()===a.getUTCDate()&&s(r)===s(a)+c*u)){const r=[];for(let u=0;u<e;u++){const i=f?-1-u:n.length+u;r.push(T(new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth()+c*i,a.getUTCDate()))))}return r}}if(t.length===1){const[s=0]=t;return Array.from({length:e},(c,l)=>f?s-l-1:s+l+1)}return h(t,e,f)}const v=(t,e)=>e.length>10?g(t):g(Math.round(t)),w=(t,e,f)=>`${t}${String(Math.max(f,0)).padStart(e.length,"0")}`,F=/^(.*?)(\d+)$/su;function J(t,e,f){const o=t.map(r=>F.exec(r)),[n]=o;if(!n||o.some(r=>!r||r[1]!==n[1]))return;const a=n[1]??"",d=n[2]??"",s=o.map(r=>Number(r?.[2])),c=h(s,e,f),l=/^q$/iu.test(a);return c.map(r=>w(a,d,l?(Math.round(r)+399)%4+1:Math.round(r)))}function N(t,e,f){const o=t.map(D),[n]=o;if(!n||o.some(u=>u?.list!==n.list))return;const a=n.list.length,d=o[o.length-1],s=o.length>1&&d&&(d.at-n.at)/(o.length-1)||1,c=t[0]??"",l=[],r=f?n.at:d?.at??n.at;for(let u=0;u<e;u++){const i=r+(f?-s:s)*(u+1),p=n.list[(Math.round(i)%a+a)%a]??"";l.push(U(p,c))}return l}const m=(t,e,f)=>{const o=t.length;return Array.from({length:e},(n,a)=>f?t[((o-1-a)%o+o)%o]??"":t[a%o]??"")};export function seriesAfter(t,e,f={}){const o=f.mode??"auto",n=f.back===!0;if(o==="copy"||t.length===0)return m(t,e,n);const a=t.map(c=>C(c).value),d=t.length===1,s=a.flatMap(c=>typeof c=="number"?[c]:[]);if(s.length===a.length){if(t.every(r=>b.test(r)))return L(s,e,n).map(r=>v(r,t[0]??""));if(d&&o==="auto")return m(t,e,n);const c=s;return(d&&c[0]!==void 0?Array.from({length:e},(r,u)=>n?(c[0]??0)-u-1:(c[0]??0)+u+1):h(c,e,n)).map(String)}return a.every(c=>typeof c=="string")?N(t,e,n)??J(t,e,n)??m(t,e,n):m(t,e,n)}
@@ -0,0 +1,24 @@
1
+ import { type Area } from "./address.js";
2
+ import type { Calc } from "./calc/engine.js";
3
+ import { type BookEdit, type EditBook } from "./edit.js";
4
+ import { type Scalar } from "./values.js";
5
+ import type { Worksheet } from "./workbook.js";
6
+ export interface SortKey {
7
+ col: number;
8
+ descending?: boolean;
9
+ }
10
+ /** Two values in Excel's order, ascending. Blanks are the caller's. */
11
+ export declare function compareForSort(a: Scalar, b: Scalar): number;
12
+ /** Rows in sorted order, a stable sort. */
13
+ export declare function sortedRows(rows: readonly number[], keys: readonly SortKey[], value: (row: number, col: number) => Scalar): number[];
14
+ /** The rows of `from` to `to` in sorted order, each as where it came from. */
15
+ export declare const sortedOrder: (from: number, to: number, keys: readonly SortKey[], value: (row: number, col: number) => Scalar) => number[];
16
+ /**
17
+ * The rows of an area put in order of its keys. An area in a table sorts all
18
+ * of that table's rows, as Excel does; `area` is the rows sorted, no header.
19
+ * What a filter hides, `skip`, stays where it is.
20
+ */
21
+ export declare function sortCells(book: EditBook, calc: Calc, sheetName: string, area: Area, keys: readonly SortKey[], skip?: ReadonlySet<number>): BookEdit;
22
+ /** Whether a region's first row reads as a header: text over what is not, or set apart by its look. */
23
+ export declare function hasHeader(sheet: Worksheet, calc: Calc, region: Area): boolean;
24
+ //# sourceMappingURL=sort.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{contains as T}from"./address.js";import{Draft as L,blankEdit as y,inputOf as x,movedTo as b,refused as M,writeOne as R}from"./edit.js";import{CellError as g,readTyped as C}from"./values.js";const E=t=>typeof t=="number"?0:typeof t=="string"?1:typeof t=="boolean"?2:3;export function compareForSort(t,n){const e=E(t),r=E(n);if(e!==r)return e-r;if(typeof t=="number"&&typeof n=="number")return t-n;if(typeof t=="string"&&typeof n=="string"){const o=t.toLowerCase(),f=n.toLowerCase();return o<f?-1:o>f?1:0}return typeof t=="boolean"&&typeof n=="boolean"?t===n?0:t?1:-1:t instanceof g&&n instanceof g?t.code<n.code?-1:t.code>n.code?1:0:0}const w=t=>t===null||t==="";export function sortedRows(t,n,e){return t.map((r,o)=>({row:r,index:o})).sort((r,o)=>{for(const{col:f,descending:c}of n){const u=e(r.row,f),l=e(o.row,f);if(w(u)||w(l)){if(w(u)&&w(l))continue;return w(u)?1:-1}const s=compareForSort(u,l);if(s!==0)return c===!0?-s:s}return r.index-o.index}).map(r=>r.row)}export const sortedOrder=(t,n,e,r)=>sortedRows(Array.from({length:n-t+1},(o,f)=>t+f),e,r);function S(t,n,e,r,o){const f=t.rows(n.file),c=[...f];r.forEach((u,l)=>{const s=e[l];if(s===void 0)return;const d=n.places[u-o],p=n.places[s-o];if(d===void 0||p===void 0)return;const i=s-u,a=c[d]??[];f[p]=i===0?a:a.map(m=>C(m).formula===void 0?m:b(m,i,0))}),t.edit.whole=!0}const v=(t,n,e)=>{const r=[];for(let o=t;o<=n;o++)e?.has(o)||r.push(o);return r};export function sortCells(t,n,e,r,o,f){const c=t.workbook.sheet(e);if(!c)return M("no-sheet");if(o.length===0)return y();const u=(i,a)=>n.value(c,i,a),l=c.tables.find(i=>i.rows>0&&T(i.area,r.top,r.left)),s=new L(t);if(l){const{top:i,bottom:a}=l.data,m=v(i,a,f),h=sortedRows(m,o,u);return h.every((A,O)=>A===m[O])?y():(S(s,l,m,h,i),s.finish())}const d=v(r.top,Math.min(r.bottom,c.lastRow),f),p=sortedRows(d,o,u);return D(s,t,c,r,d,p),s.finish()}function D(t,n,e,r,o,f){const c=Math.min(r.right,e.columnsUsed-1);f.forEach((u,l)=>{const s=o[l];if(!(s===void 0||u===s))for(let d=r.left;d<=c;d++){const p=x(n,e,u,d),i=C(p).formula===void 0?p:b(p,s-u,0);i!==x(n,e,s,d)&&R(t,n,e,s,d,i)}})}export function hasHeader(t,n,e){if(e.bottom<=e.top)return!1;const r=(o,f)=>n.value(t,o,f);for(let o=e.left;o<=e.right;o++){const f=r(e.top,o),c=r(e.top+1,o);if(typeof f=="string"&&c!==null&&typeof c!="string"||t.lookAt(e.top,o).bold===!0&&t.lookAt(e.top+1,o).bold!==!0)return!0}return!1}
@@ -0,0 +1,38 @@
1
+ import type { SheetFile, SheetTable } from "@allyhub-next/formats";
2
+ import { type Place } from "./address.js";
3
+ import { type StructureEdit } from "./formula/rewrite.js";
4
+ import { type CsvRows } from "./workbook.js";
5
+ /** A workbook's files as values. */
6
+ export interface BookValues {
7
+ file: SheetFile;
8
+ rows: ReadonlyMap<string, CsvRows>;
9
+ }
10
+ export interface Restructured {
11
+ file: SheetFile;
12
+ rows: Map<string, CsvRows>;
13
+ /** Why it could not be done; the files are as they were. */
14
+ refused?: RefusedEdit;
15
+ }
16
+ export type RefusedEdit = "table-header" | "last-sheet" | "no-sheet";
17
+ /** What a table is, from sheet.yaml and its file. */
18
+ export interface TableShape {
19
+ at: Place;
20
+ /** The CSV file's header, as it writes it. */
21
+ header: readonly string[];
22
+ /** Its columns' names, those in the file first. */
23
+ names: string[];
24
+ /** The record of each row. */
25
+ places: number[];
26
+ }
27
+ export declare function tableShape(spec: SheetTable, rows: CsvRows): TableShape | undefined;
28
+ /** A column's name no other in the table has: Column1, Column2… */
29
+ export declare function freeColumn(names: readonly string[], stem?: string): string;
30
+ /** A column's name made unlike the others', as Excel makes one: id, id2. */
31
+ export declare function uniqueColumn(names: readonly string[], name: string): string;
32
+ /** A table's file with columns up to `index` in it: what comes after a calculated column needs it there. */
33
+ export declare function withColumnsUpTo(rows: CsvRows, names: readonly string[], index: number): string[][];
34
+ /** A workbook's files after rows or columns are put in or taken out, or a sheet, a table's column renamed or a sheet deleted. */
35
+ export declare function restructure(book: BookValues, edit: StructureEdit): Restructured;
36
+ /** The workbook with a copy of a sheet right after it. */
37
+ export declare function duplicated(book: BookValues, from: string, to: string): Restructured;
38
+ //# sourceMappingURL=structure.d.ts.map