allyhub 0.9.0 → 0.11.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 (582) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/commands/auth.js +4 -4
  3. package/dist/commands/cloud-tools.js +11 -11
  4. package/dist/commands/dev.js +2 -2
  5. package/dist/commands/frames/compare.js +2 -2
  6. package/dist/commands/frames/piece.js +1 -1
  7. package/dist/commands/frames/report.js +2 -0
  8. package/dist/commands/frames.js +11 -9
  9. package/dist/commands/index.js +1 -1
  10. package/dist/commands/inspect/common.js +4 -2
  11. package/dist/commands/inspect/facts.js +3 -3
  12. package/dist/commands/inspect/layout.js +1 -1
  13. package/dist/commands/orgs.js +2 -2
  14. package/dist/commands/render.js +2 -2
  15. package/dist/help.js +4 -4
  16. package/dist/main.js +8 -7
  17. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +1 -1
  18. package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
  19. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  20. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +29 -0
  21. package/dist/node_modules/@allyhub/browser/dist/emoji.js +57 -0
  22. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +18 -0
  23. package/dist/node_modules/@allyhub/browser/dist/picture.js +2 -0
  24. package/dist/node_modules/@allyhub/browser/package.json +9 -1
  25. package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -0
  26. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  27. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +7 -0
  28. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +9 -0
  29. package/dist/node_modules/@allyhub/build/dist/made-notes.js +2 -0
  30. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +17 -0
  31. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +7 -0
  32. package/dist/node_modules/@allyhub/build/package.json +1 -1
  33. package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
  34. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
  35. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  36. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  37. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  38. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  39. package/dist/node_modules/@allyhub/check/package.json +1 -1
  40. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
  41. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  42. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
  43. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  44. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
  45. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  46. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
  47. package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
  48. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  49. package/dist/node_modules/@allyhub/components/package.json +1 -1
  50. package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
  51. package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
  52. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  53. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  54. package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +2 -0
  55. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  56. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +2 -0
  57. package/dist/node_modules/@allyhub/dev-server/dist/ports.js +2 -0
  58. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  59. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  60. package/dist/node_modules/@allyhub/dev-server/dist/respond.js +2 -0
  61. package/dist/node_modules/@allyhub/dev-server/dist/reveal.js +1 -1
  62. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +1 -1
  63. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  64. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  65. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  66. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  67. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +7 -0
  68. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  69. package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
  70. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  71. package/dist/node_modules/@allyhub/doc/dist/html.js +51 -92
  72. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  73. package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
  74. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  75. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  76. package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
  77. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  78. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  79. package/dist/node_modules/@allyhub/doc-extension/package.json +19 -6
  80. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +5 -5
  81. package/dist/node_modules/@allyhub/doc-print/dist/print.js +10 -10
  82. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  83. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  84. package/dist/node_modules/@allyhub/export/package.json +1 -1
  85. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  86. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  87. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  88. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  89. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
  90. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  91. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
  92. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  93. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +20 -0
  94. package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
  95. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
  96. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  97. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  98. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  99. package/dist/node_modules/@allyhub/image-extension/dist/export.js +4 -1
  100. package/dist/node_modules/@allyhub/image-extension/package.json +16 -6
  101. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
  102. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  103. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  104. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  105. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  106. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  107. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  108. package/dist/node_modules/@allyhub/linkedin-extension/LICENSE +241 -0
  109. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-build.js +2 -0
  110. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-kind.js +2 -0
  111. package/dist/node_modules/@allyhub/linkedin-extension/dist/build-plugins.js +2 -0
  112. package/dist/node_modules/@allyhub/linkedin-extension/dist/build.js +5 -0
  113. package/dist/node_modules/@allyhub/linkedin-extension/dist/media.js +2 -0
  114. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage-module.js +82 -0
  115. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage.js +2 -0
  116. package/dist/node_modules/@allyhub/linkedin-extension/dist/workspace.js +2 -0
  117. package/dist/node_modules/@allyhub/linkedin-extension/package.json +287 -0
  118. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +12 -0
  119. package/dist/node_modules/@allyhub/linkedin-model/LICENSE +241 -0
  120. package/dist/node_modules/@allyhub/linkedin-model/dist/article-check.js +5 -0
  121. package/dist/node_modules/@allyhub/linkedin-model/dist/article.js +3 -0
  122. package/dist/node_modules/@allyhub/linkedin-model/dist/check.js +2 -0
  123. package/dist/node_modules/@allyhub/linkedin-model/dist/count.js +3 -0
  124. package/dist/node_modules/@allyhub/linkedin-model/dist/edit.js +3 -0
  125. package/dist/node_modules/@allyhub/linkedin-model/dist/html.js +19 -0
  126. package/dist/node_modules/@allyhub/linkedin-model/dist/index.js +2 -0
  127. package/dist/node_modules/@allyhub/linkedin-model/dist/limits.js +2 -0
  128. package/dist/node_modules/@allyhub/linkedin-model/dist/little.js +2 -0
  129. package/dist/node_modules/@allyhub/linkedin-model/dist/post.js +2 -0
  130. package/dist/node_modules/@allyhub/linkedin-model/dist/requests.js +2 -0
  131. package/dist/node_modules/@allyhub/linkedin-model/package.json +14 -0
  132. package/dist/node_modules/@allyhub/linkedin-view/LICENSE +241 -0
  133. package/dist/node_modules/@allyhub/linkedin-view/dist/article.js +2 -0
  134. package/dist/node_modules/@allyhub/linkedin-view/dist/fold.js +3 -0
  135. package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -0
  136. package/dist/node_modules/@allyhub/linkedin-view/dist/post.js +2 -0
  137. package/dist/node_modules/@allyhub/linkedin-view/dist/stage.js +2 -0
  138. package/dist/node_modules/@allyhub/linkedin-view/dist/text.js +2 -0
  139. package/dist/node_modules/@allyhub/linkedin-view/package.json +21 -0
  140. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +600 -0
  141. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  142. package/dist/node_modules/@allyhub/media/package.json +1 -1
  143. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  144. package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
  145. package/dist/node_modules/@allyhub/model/package.json +1 -1
  146. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  147. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  148. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +2 -0
  149. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +16 -0
  150. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -1
  151. package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
  152. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +14 -1
  153. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
  154. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +18 -0
  155. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  156. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  157. package/dist/node_modules/@allyhub/project/package.json +1 -1
  158. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +140 -0
  159. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  160. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  161. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  162. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +157 -0
  163. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  164. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +10 -2
  165. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  166. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +101 -186
  167. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  168. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
  169. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  170. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +92 -94
  171. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  172. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +17 -0
  173. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  174. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +7 -0
  175. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  176. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +15 -3
  177. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  178. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  179. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  180. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  181. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  182. package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
  183. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  184. package/dist/node_modules/@allyhub/render/package.json +1 -1
  185. package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
  186. package/dist/node_modules/@allyhub/report-extension/dist/build.js +2 -0
  187. package/dist/node_modules/@allyhub/report-extension/dist/check.js +3 -0
  188. package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +2 -0
  189. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +5 -0
  190. package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +2 -0
  191. package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
  192. package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
  193. package/dist/node_modules/@allyhub/report-extension/dist/page.js +21 -0
  194. package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +21 -0
  195. package/dist/node_modules/@allyhub/report-extension/dist/styles.js +5 -0
  196. package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
  197. package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
  198. package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
  199. package/dist/node_modules/@allyhub/report-extension/package.json +182 -0
  200. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +132 -0
  201. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +105 -0
  202. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +17 -0
  203. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +38 -0
  204. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  205. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  206. package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
  207. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  208. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  209. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  210. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  211. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  212. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  213. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  214. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  215. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  216. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  217. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  218. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
  219. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
  220. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
  221. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  222. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
  223. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  224. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
  225. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
  226. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
  227. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +6 -0
  228. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +1 -1
  229. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  230. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  231. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  232. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  233. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  234. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  235. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  236. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  237. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  238. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  239. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  240. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  241. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  242. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  243. package/dist/node_modules/@allyhub/sheet/dist/export.js +2 -4
  244. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  245. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  246. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  247. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  248. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  249. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  250. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  251. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  252. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  253. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  254. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  255. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  257. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  259. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  261. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  262. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -6
  263. package/dist/node_modules/@allyhub/sheet-extension/package.json +24 -9
  264. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  265. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  266. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  267. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  268. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  269. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
  270. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  271. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
  272. package/dist/node_modules/@allyhub/slides-extension/package.json +22 -16
  273. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
  274. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  275. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  276. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  277. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  278. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  279. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  280. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  281. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
  282. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  283. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  284. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  285. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  286. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  287. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
  288. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
  289. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
  290. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
  291. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
  292. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
  293. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
  294. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
  295. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
  296. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
  297. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
  298. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
  299. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
  300. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
  301. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
  302. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
  303. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
  304. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
  305. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
  306. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
  307. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
  308. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
  309. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
  310. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
  311. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
  312. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
  313. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
  314. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
  315. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
  316. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
  317. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
  318. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
  319. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
  320. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
  321. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
  322. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
  323. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
  324. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
  325. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
  326. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
  327. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
  328. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
  329. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
  330. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
  331. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
  332. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
  333. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
  334. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
  335. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
  336. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
  337. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
  338. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
  339. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
  340. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
  341. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
  342. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
  343. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
  344. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
  345. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
  346. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
  347. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
  348. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
  349. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
  350. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
  351. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
  352. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
  353. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
  354. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
  355. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
  356. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
  357. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
  358. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
  359. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
  360. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
  361. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
  362. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
  363. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
  364. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
  365. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
  366. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
  367. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
  368. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
  369. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
  370. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
  371. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
  372. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
  373. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
  374. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
  375. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
  376. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
  377. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  378. package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
  379. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
  380. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +1 -1
  381. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  382. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +18 -18
  383. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  384. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  385. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  386. package/dist/node_modules/@allyhub/video-extension/dist/export.js +1 -1
  387. package/dist/node_modules/@allyhub/video-extension/package.json +17 -4
  388. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  389. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  390. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
  391. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  392. package/dist/node_modules/@allyhub/website/package.json +1 -1
  393. package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
  394. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +5 -5
  395. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
  396. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
  397. package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
  398. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -3
  399. package/dist/node_modules/@allyhub/x-extension/package.json +43 -15
  400. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
  401. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  402. package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
  403. package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
  404. package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
  405. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  406. package/dist/package.json +12 -10
  407. package/dist/text/facts-text.js +5 -5
  408. package/dist/text/index.js +1 -1
  409. package/dist/text/long-text.js +4 -0
  410. package/dist/works.js +1 -1
  411. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-BKmMA6gn.js} +1 -1
  412. package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-BEFBgb4k.js} +1 -1
  413. package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-_u5YfCjY.js} +1 -1
  414. package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-B5rJbBv0.js} +1 -1
  415. package/editor-web/assets/article-BUmD3xtR.js +8 -0
  416. package/editor-web/assets/article-DNioBb3p.js +7 -0
  417. package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-CzuzsGjI.js} +1 -1
  418. package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-DybfaO3Z.js} +1 -1
  419. package/editor-web/assets/bookmark-Dsd3kHJJ.js +1 -0
  420. package/editor-web/assets/button-eGxLxbv9.js +41 -0
  421. package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BfqLHB5i.js} +1 -1
  422. package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
  423. package/editor-web/assets/channel-TNPgFDrw.js +1 -0
  424. package/editor-web/assets/chart-C37xvZT2.js +1 -0
  425. package/editor-web/assets/chart-no-axes-column-BVkeF_Mr.js +1 -0
  426. package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-BVp1I_d0.js} +1 -1
  427. package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-CTdgWEMr.js} +1 -1
  428. package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-7pnsxeaP.js} +1 -1
  429. package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-Dc0Dvkq7.js} +1 -1
  430. package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-VAILIsfx.js} +1 -1
  431. package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-CUDx1Rv5.js} +1 -1
  432. package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DAoEe-dJ.js} +1 -1
  433. package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g0akya12.js} +1 -1
  434. package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-hTGjzXdJ.js} +1 -1
  435. package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BgLV8BIJ.js} +1 -1
  436. package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-Bw19OOSD.js} +1 -1
  437. package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-CMST9dyE.js} +1 -1
  438. package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-Bbpu36XF.js} +1 -1
  439. package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-C48Ri0Gs.js} +1 -1
  440. package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-DN1g01Oe.js} +1 -1
  441. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-U6jbPr2d.js} +1 -1
  442. package/editor-web/assets/collaborator-B1u2td9m.js +1 -0
  443. package/editor-web/assets/createLucideIcon-GFZ_fxLc.js +1 -0
  444. package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-gzkai_7-.js} +1 -1
  445. package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-DtSekSr6.js} +1 -1
  446. package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-CiUwYVT6.js} +1 -1
  447. package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-r9XHCV-k.js} +1 -1
  448. package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-DxVsDZ34.js} +1 -1
  449. package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-B0eNQoHV.js} +1 -1
  450. package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-C7f2MfJT.js} +1 -1
  451. package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-CSXcnvct.js} +1 -1
  452. package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-DXzOD_ii.js} +1 -1
  453. package/editor-web/assets/dist-BGRwhCQO.js +1 -0
  454. package/editor-web/assets/{dist-9ymlIMhr.js → dist-BW4X7BrF.js} +1 -1
  455. package/editor-web/assets/dist-BgDRE85b.js +2 -0
  456. package/editor-web/assets/dist-Blq5nJnU.js +24 -0
  457. package/editor-web/assets/dist-BuWaZ3Y4.js +274 -0
  458. package/editor-web/assets/dist-C1emZ9wX.js +37 -0
  459. package/editor-web/assets/dist-CC7OeU1e.js +6 -0
  460. package/editor-web/assets/dist-CX-fiPSn.js +38 -0
  461. package/editor-web/assets/dist-C_VvG-_9.js +5 -0
  462. package/editor-web/assets/dist-Ce7HrBxv.js +3 -0
  463. package/editor-web/assets/dist-D2k6w-_a.js +1 -0
  464. package/editor-web/assets/dist-DDv_SbKw.js +84 -0
  465. package/editor-web/assets/dist-DEoEO4zs.js +1 -0
  466. package/editor-web/assets/dist-DlDxxPIP.js +16 -0
  467. package/editor-web/assets/dist-Gz6NDS0J.js +4 -0
  468. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-Cs4YRvDD.js} +1 -1
  469. package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Bh3LZ9WI.js} +1 -1
  470. package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-C4vYTYXp.js} +1 -1
  471. package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-BN1kkHWS.js} +1 -1
  472. package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +1 -0
  473. package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-CA1LkkC5.js} +1 -1
  474. package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-Dy5tA7dG.js} +1 -1
  475. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-hJIB8EkH.js} +1 -1
  476. package/editor-web/assets/hint-B8JpEypy.js +1 -0
  477. package/editor-web/assets/index-CgB5osVc.js +28 -0
  478. package/editor-web/assets/index-Daytem9N.css +2 -0
  479. package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvzSf7rQ.js} +1 -1
  480. package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-BjIMm4Af.js} +1 -1
  481. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bpz71S40.js} +1 -1
  482. package/editor-web/assets/{italic-CDhZKo_q.js → italic-D10w8n6C.js} +1 -1
  483. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-DAB-pZjD.js} +1 -1
  484. package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-cYeyh3P6.js} +1 -1
  485. package/editor-web/assets/katex-5Z2zF-9g.js +257 -0
  486. package/editor-web/assets/link-BC5xK1-1.js +1 -0
  487. package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-req5LE0X.js} +3 -3
  488. package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-zFwZug4C.js} +4 -4
  489. package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-TStWb7DG.js} +1 -1
  490. package/editor-web/assets/minus-DaWs5i8B.js +1 -0
  491. package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-smFhVKcB.js} +1 -1
  492. package/editor-web/assets/palette-BIOudGkm.js +1 -0
  493. package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DvSNRv0-.js} +1 -1
  494. package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-qjaGsBZG.js} +1 -1
  495. package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-Dd9P-Pdc.js} +1 -1
  496. package/editor-web/assets/play-CrMmPghG.js +1 -0
  497. package/editor-web/assets/progress-DE4C5_3x.js +6 -0
  498. package/editor-web/assets/props-form-CsmDBqzy.js +1 -0
  499. package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-h2IIKUUA.js} +1 -1
  500. package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-DlVrSA1d.js} +1 -1
  501. package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-nFbuLAtc.js} +1 -1
  502. package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Daj8h2iV.js} +1 -1
  503. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-eYJyl5PH.js} +1 -1
  504. package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-BTRhKZQq.js} +1 -1
  505. package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-CeLGUjdp.js} +1 -1
  506. package/editor-web/assets/react-WA6wlt8S.js +1 -0
  507. package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-VQP1EVOZ.js} +1 -1
  508. package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-Dmk9XRM5.js} +1 -1
  509. package/editor-web/assets/row-BRlEWRrK.js +1 -0
  510. package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-Yn4zlrAM.js} +1 -1
  511. package/editor-web/assets/schemas-VikZYZIK.js +1 -0
  512. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-BTRnp_PW.js} +1 -1
  513. package/editor-web/assets/session-Do9AqS38.js +1 -0
  514. package/editor-web/assets/slides-diTEQ3C5.js +1 -0
  515. package/editor-web/assets/snapshots-BUGlKQIB.js +56 -0
  516. package/editor-web/assets/sound-Bj3o9_Fa.js +1 -0
  517. package/editor-web/assets/split-CNU1RHcX.js +3 -0
  518. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-kstrRKv2.js} +1 -1
  519. package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CfXx6IYH.js} +1 -1
  520. package/editor-web/assets/{svg-BjM9RazX.js → svg-Cx50MpxK.js} +1 -1
  521. package/editor-web/assets/swatch-WeJD41aW.js +1 -0
  522. package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-DaZsZkeP.js} +1 -1
  523. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +8 -0
  524. package/editor-web/assets/switch-N0G_sbqt.js +1 -0
  525. package/editor-web/assets/syntax-BVsgRJ4I.js +66 -0
  526. package/editor-web/assets/syntax-oWsKBWFw.js +1 -0
  527. package/editor-web/assets/table-B6hVZAMi.js +1 -0
  528. package/editor-web/assets/tabs-DIFDqj-l.js +1 -0
  529. package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-tEWvBY9p.js} +1 -1
  530. package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-CLCvY-Yf.js} +1 -1
  531. package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BP6nqpg2.js} +1 -1
  532. package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-BmN0gwdC.js} +1 -1
  533. package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DN29G_E_.js} +1 -1
  534. package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-CHR0nvWL.js} +1 -1
  535. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-DTRS54cB.js} +1 -1
  536. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-DAAc11Hx.js} +1 -1
  537. package/editor-web/assets/video-BlvmR8BK.js +1 -0
  538. package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-B-UYkmdB.js} +1 -1
  539. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-BmbwCaky.js} +1 -1
  540. package/editor-web/assets/words-D_4T9Adq.js +3 -0
  541. package/editor-web/assets/words-WgdEQdYP.js +2 -0
  542. package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-ChAfAq1U.js} +1 -1
  543. package/editor-web/index.html +6 -5
  544. package/package.json +8 -2
  545. package/editor-web/assets/alt-BOVao_9S.js +0 -4
  546. package/editor-web/assets/article-B6YCzhj8.js +0 -73
  547. package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
  548. package/editor-web/assets/channel-C26aBI4o.js +0 -1
  549. package/editor-web/assets/chart-BOnxneyw.js +0 -1
  550. package/editor-web/assets/choice-O5nwc2N0.js +0 -1
  551. package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
  552. package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
  553. package/editor-web/assets/dist-C6NqUEG4.js +0 -16
  554. package/editor-web/assets/dist-C9UGmCG9.js +0 -6
  555. package/editor-web/assets/dist-CAk5bjBm.js +0 -1
  556. package/editor-web/assets/dist-CKyfo5RM.js +0 -340
  557. package/editor-web/assets/dist-CRaWqNwq.js +0 -37
  558. package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
  559. package/editor-web/assets/dist-DXRmkezB.js +0 -38
  560. package/editor-web/assets/dist-EKK5i0dG.js +0 -219
  561. package/editor-web/assets/dist-hHJlpLWo.js +0 -5
  562. package/editor-web/assets/dist-oYKcwWUj.js +0 -4
  563. package/editor-web/assets/dist-shKo7XVN.js +0 -2
  564. package/editor-web/assets/dist-wrKxBrVu.js +0 -24
  565. package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
  566. package/editor-web/assets/hint-_AQWCDMj.js +0 -1
  567. package/editor-web/assets/index-BsstP-cI.js +0 -28
  568. package/editor-web/assets/index-DQRcmxBO.css +0 -2
  569. package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
  570. package/editor-web/assets/progress-0B_TVsPi.js +0 -6
  571. package/editor-web/assets/react-BP46yLMB.js +0 -1
  572. package/editor-web/assets/react-pgBZqVxJ.js +0 -96
  573. package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
  574. package/editor-web/assets/session-DiI9KYRI.js +0 -1
  575. package/editor-web/assets/slides-CCwgBcGH.js +0 -1
  576. package/editor-web/assets/sound-CqryteNl.js +0 -1
  577. package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
  578. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
  579. package/editor-web/assets/switch-DltnKqN-.js +0 -1
  580. package/editor-web/assets/syntax-CC6QYhCz.js +0 -1
  581. package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
  582. package/editor-web/assets/video-DXFiCNGc.js +0 -1
@@ -175,6 +175,7 @@ declare const CellEntry: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber,
175
175
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
176
176
  formula: z.ZodOptional<z.ZodString>;
177
177
  name: z.ZodOptional<z.ZodString>;
178
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
178
179
  }, z.core.$strict>]>;
179
180
  export type SheetCell = z.output<typeof CellEntry>;
180
181
  declare const FormatEntry: z.ZodObject<{
@@ -1639,7 +1640,6 @@ declare const Validation: z.ZodObject<{
1639
1640
  }, z.core.$strict>>;
1640
1641
  }, z.core.$strict>;
1641
1642
  export type SheetValidation = z.output<typeof Validation>;
1642
- /** A chart's series: where its numbers are read from, and its look. */
1643
1643
  declare const ChartSeries: z.ZodObject<{
1644
1644
  values: z.ZodString;
1645
1645
  x: z.ZodOptional<z.ZodString>;
@@ -1649,6 +1649,17 @@ declare const ChartSeries: z.ZodObject<{
1649
1649
  smooth: z.ZodOptional<z.ZodBoolean>;
1650
1650
  line_width: z.ZodOptional<z.ZodNumber>;
1651
1651
  marker_size: z.ZodOptional<z.ZodNumber>;
1652
+ type: z.ZodOptional<z.ZodEnum<{
1653
+ line: "line";
1654
+ "column-clustered": "column-clustered";
1655
+ "column-stacked": "column-stacked";
1656
+ "column-stacked-100": "column-stacked-100";
1657
+ "line-markers": "line-markers";
1658
+ area: "area";
1659
+ "area-stacked": "area-stacked";
1660
+ "area-stacked-100": "area-stacked-100";
1661
+ }>>;
1662
+ secondary: z.ZodOptional<z.ZodBoolean>;
1652
1663
  }, z.core.$strict>;
1653
1664
  export type SheetChartSeries = z.output<typeof ChartSeries>;
1654
1665
  declare const ChartAxis: z.ZodObject<{
@@ -1698,6 +1709,17 @@ declare const Chart: z.ZodObject<{
1698
1709
  smooth: z.ZodOptional<z.ZodBoolean>;
1699
1710
  line_width: z.ZodOptional<z.ZodNumber>;
1700
1711
  marker_size: z.ZodOptional<z.ZodNumber>;
1712
+ type: z.ZodOptional<z.ZodEnum<{
1713
+ line: "line";
1714
+ "column-clustered": "column-clustered";
1715
+ "column-stacked": "column-stacked";
1716
+ "column-stacked-100": "column-stacked-100";
1717
+ "line-markers": "line-markers";
1718
+ area: "area";
1719
+ "area-stacked": "area-stacked";
1720
+ "area-stacked-100": "area-stacked-100";
1721
+ }>>;
1722
+ secondary: z.ZodOptional<z.ZodBoolean>;
1701
1723
  }, z.core.$strict>>;
1702
1724
  legend: z.ZodOptional<z.ZodEnum<{
1703
1725
  left: "left";
@@ -1762,6 +1784,16 @@ declare const Chart: z.ZodObject<{
1762
1784
  format: z.ZodOptional<z.ZodString>;
1763
1785
  reverse: z.ZodOptional<z.ZodBoolean>;
1764
1786
  }, z.core.$strict>>;
1787
+ secondary_axis: z.ZodOptional<z.ZodObject<{
1788
+ title: z.ZodOptional<z.ZodString>;
1789
+ min: z.ZodOptional<z.ZodNumber>;
1790
+ max: z.ZodOptional<z.ZodNumber>;
1791
+ major: z.ZodOptional<z.ZodNumber>;
1792
+ gridlines: z.ZodOptional<z.ZodBoolean>;
1793
+ visible: z.ZodOptional<z.ZodBoolean>;
1794
+ format: z.ZodOptional<z.ZodString>;
1795
+ reverse: z.ZodOptional<z.ZodBoolean>;
1796
+ }, z.core.$strict>>;
1765
1797
  size: z.ZodOptional<z.ZodNumber>;
1766
1798
  title_size: z.ZodOptional<z.ZodNumber>;
1767
1799
  color: z.ZodOptional<z.ZodString>;
@@ -2451,6 +2483,7 @@ declare const Worksheet: z.ZodObject<{
2451
2483
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
2452
2484
  formula: z.ZodOptional<z.ZodString>;
2453
2485
  name: z.ZodOptional<z.ZodString>;
2486
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
2454
2487
  }, z.core.$strict>]>>>;
2455
2488
  format: z.ZodOptional<z.ZodArray<z.ZodObject<{
2456
2489
  format: z.ZodOptional<z.ZodString>;
@@ -3317,6 +3350,17 @@ declare const Worksheet: z.ZodObject<{
3317
3350
  smooth: z.ZodOptional<z.ZodBoolean>;
3318
3351
  line_width: z.ZodOptional<z.ZodNumber>;
3319
3352
  marker_size: z.ZodOptional<z.ZodNumber>;
3353
+ type: z.ZodOptional<z.ZodEnum<{
3354
+ line: "line";
3355
+ "column-clustered": "column-clustered";
3356
+ "column-stacked": "column-stacked";
3357
+ "column-stacked-100": "column-stacked-100";
3358
+ "line-markers": "line-markers";
3359
+ area: "area";
3360
+ "area-stacked": "area-stacked";
3361
+ "area-stacked-100": "area-stacked-100";
3362
+ }>>;
3363
+ secondary: z.ZodOptional<z.ZodBoolean>;
3320
3364
  }, z.core.$strict>>;
3321
3365
  legend: z.ZodOptional<z.ZodEnum<{
3322
3366
  left: "left";
@@ -3381,6 +3425,16 @@ declare const Worksheet: z.ZodObject<{
3381
3425
  format: z.ZodOptional<z.ZodString>;
3382
3426
  reverse: z.ZodOptional<z.ZodBoolean>;
3383
3427
  }, z.core.$strict>>;
3428
+ secondary_axis: z.ZodOptional<z.ZodObject<{
3429
+ title: z.ZodOptional<z.ZodString>;
3430
+ min: z.ZodOptional<z.ZodNumber>;
3431
+ max: z.ZodOptional<z.ZodNumber>;
3432
+ major: z.ZodOptional<z.ZodNumber>;
3433
+ gridlines: z.ZodOptional<z.ZodBoolean>;
3434
+ visible: z.ZodOptional<z.ZodBoolean>;
3435
+ format: z.ZodOptional<z.ZodString>;
3436
+ reverse: z.ZodOptional<z.ZodBoolean>;
3437
+ }, z.core.$strict>>;
3384
3438
  size: z.ZodOptional<z.ZodNumber>;
3385
3439
  title_size: z.ZodOptional<z.ZodNumber>;
3386
3440
  color: z.ZodOptional<z.ZodString>;
@@ -3456,6 +3510,12 @@ declare const Check: z.ZodObject<{
3456
3510
  formula: z.ZodString;
3457
3511
  }, z.core.$strict>;
3458
3512
  export type SheetCheck = z.output<typeof Check>;
3513
+ /** Excel's iterative calculation: `true`, or its limits. */
3514
+ declare const Iteration: z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
3515
+ max_iterations: z.ZodOptional<z.ZodNumber>;
3516
+ max_change: z.ZodOptional<z.ZodNumber>;
3517
+ }, z.core.$strict>]>;
3518
+ export type SheetIteration = z.output<typeof Iteration>;
3459
3519
  /** A sheet's file. */
3460
3520
  export declare const SheetFileSchema: z.ZodObject<{
3461
3521
  title: z.ZodOptional<z.ZodString>;
@@ -4051,6 +4111,7 @@ export declare const SheetFileSchema: z.ZodObject<{
4051
4111
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
4052
4112
  formula: z.ZodOptional<z.ZodString>;
4053
4113
  name: z.ZodOptional<z.ZodString>;
4114
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
4054
4115
  }, z.core.$strict>]>>>;
4055
4116
  format: z.ZodOptional<z.ZodArray<z.ZodObject<{
4056
4117
  format: z.ZodOptional<z.ZodString>;
@@ -4917,6 +4978,17 @@ export declare const SheetFileSchema: z.ZodObject<{
4917
4978
  smooth: z.ZodOptional<z.ZodBoolean>;
4918
4979
  line_width: z.ZodOptional<z.ZodNumber>;
4919
4980
  marker_size: z.ZodOptional<z.ZodNumber>;
4981
+ type: z.ZodOptional<z.ZodEnum<{
4982
+ line: "line";
4983
+ "column-clustered": "column-clustered";
4984
+ "column-stacked": "column-stacked";
4985
+ "column-stacked-100": "column-stacked-100";
4986
+ "line-markers": "line-markers";
4987
+ area: "area";
4988
+ "area-stacked": "area-stacked";
4989
+ "area-stacked-100": "area-stacked-100";
4990
+ }>>;
4991
+ secondary: z.ZodOptional<z.ZodBoolean>;
4920
4992
  }, z.core.$strict>>;
4921
4993
  legend: z.ZodOptional<z.ZodEnum<{
4922
4994
  left: "left";
@@ -4981,6 +5053,16 @@ export declare const SheetFileSchema: z.ZodObject<{
4981
5053
  format: z.ZodOptional<z.ZodString>;
4982
5054
  reverse: z.ZodOptional<z.ZodBoolean>;
4983
5055
  }, z.core.$strict>>;
5056
+ secondary_axis: z.ZodOptional<z.ZodObject<{
5057
+ title: z.ZodOptional<z.ZodString>;
5058
+ min: z.ZodOptional<z.ZodNumber>;
5059
+ max: z.ZodOptional<z.ZodNumber>;
5060
+ major: z.ZodOptional<z.ZodNumber>;
5061
+ gridlines: z.ZodOptional<z.ZodBoolean>;
5062
+ visible: z.ZodOptional<z.ZodBoolean>;
5063
+ format: z.ZodOptional<z.ZodString>;
5064
+ reverse: z.ZodOptional<z.ZodBoolean>;
5065
+ }, z.core.$strict>>;
4984
5066
  size: z.ZodOptional<z.ZodNumber>;
4985
5067
  title_size: z.ZodOptional<z.ZodNumber>;
4986
5068
  color: z.ZodOptional<z.ZodString>;
@@ -5055,6 +5137,10 @@ export declare const SheetFileSchema: z.ZodObject<{
5055
5137
  formula: z.ZodString;
5056
5138
  }, z.core.$strict>>>;
5057
5139
  scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
5140
+ iteration: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
5141
+ max_iterations: z.ZodOptional<z.ZodNumber>;
5142
+ max_change: z.ZodOptional<z.ZodNumber>;
5143
+ }, z.core.$strict>]>>;
5058
5144
  }, z.core.$strict>;
5059
5145
  export type SheetFile = z.output<typeof SheetFileSchema>;
5060
5146
  /** What a sheet's code makes, beside what its file holds: sheets as sheet.yaml would hold them, with their tables' rows as CSV text, and names. */
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as o}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const t=o.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const l=o.strictObject({style:o.enum(SHEET_BORDERS),color:t.optional()}),m={bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.union([o.boolean(),o.enum(SHEET_UNDERLINES)]).optional(),strike:o.boolean().optional(),font:o.string().min(1).optional(),size:o.number().positive().optional(),color:t.optional(),fill:o.union([t,o.strictObject({pattern:o.enum(SHEET_PATTERNS),color:t.optional(),background:t.optional()})]).optional(),align:o.enum(SHEET_ALIGNS).optional(),valign:o.enum(SHEET_VALIGNS).optional(),wrap:o.boolean().optional(),shrink:o.boolean().optional(),indent:o.number().int().min(0).optional(),rotation:o.number().int().min(-90).max(180).optional(),border:o.strictObject({left:l.optional(),right:l.optional(),top:l.optional(),bottom:l.optional()}).optional()},a={...m,format:o.string().min(1).optional()},r=o.union([o.number(),o.boolean(),o.string(),o.null()]),O=o.strictObject({value:r.optional(),formula:o.string().min(1).optional(),name:o.string().min(1).optional(),...a}).refine(c=>c.value===void 0||c.formula===void 0,{message:"A cell has a value or a formula, not both."}),E=o.union([r,O]),f=o.strictObject({range:o.string().min(1),...a}),b=o.union([o.literal(!0),o.strictObject({separator:o.string().min(1).optional(),height:o.number().positive().optional()})]),j=o.strictObject({formula:o.string().min(1).optional(),...a,width:o.number().positive().optional(),files:b.optional()}),g=o.strictObject({values:o.array(o.string()).optional(),blanks:o.boolean().optional()}),x=o.strictObject({name:o.string().min(1),at:o.string().min(1),rows:o.string().min(1),key:o.string().min(1).optional(),style:o.string().min(1).optional(),columns:o.record(o.string(),j).optional(),filter:o.union([o.literal(!1),o.strictObject({columns:o.record(o.string(),g)})]).optional()}),S=o.strictObject({at:o.string().min(1),rows:o.string().min(1)}),T=o.strictObject({width:o.number().positive().optional(),hidden:o.boolean().optional(),level:o.number().int().min(1).max(7).optional(),...a,files:b.optional()}),_=o.strictObject({height:o.number().positive().optional(),hidden:o.boolean().optional(),level:o.number().int().min(1).max(7).optional(),...a}),v=o.strictObject({range:o.string().min(1),columns:o.record(o.string(),g).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const p=o.union([o.number(),o.string()]),i={bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:t.optional(),fill:t.optional(),border:m.border},n={range:o.string().min(1),stop:o.boolean().optional()},s=o.strictObject({at:o.enum(["min","max","num","percent","percentile","formula"]),value:p.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const w=o.discriminatedUnion("type",[o.strictObject({...n,...i,type:o.literal("cellIs"),operator:o.enum(SHEET_OPERATORS),formula:o.array(p).min(1).max(2)}),o.strictObject({...n,...i,type:o.literal("containsText"),operator:o.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:o.string()}),o.strictObject({...n,...i,type:o.enum(["duplicateValues","uniqueValues"])}),o.strictObject({...n,...i,type:o.literal("top10"),rank:o.number().int().positive(),percent:o.boolean().optional(),bottom:o.boolean().optional()}),o.strictObject({...n,...i,type:o.literal("aboveAverage"),below:o.boolean().optional(),equal:o.boolean().optional()}),o.strictObject({...n,...i,type:o.literal("expression"),formula:o.string().min(1)}),o.strictObject({...n,type:o.literal("dataBar"),color:t,min:s.optional(),max:s.optional(),show:o.boolean().optional()}),o.strictObject({...n,type:o.literal("colorScale"),stops:o.array(o.strictObject({...s.shape,color:t})).min(2).max(3)}),o.strictObject({...n,type:o.literal("iconSet"),icons:o.enum(SHEET_ICONS),stops:o.array(s).min(3).max(5).optional(),reverse:o.boolean().optional(),show:o.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const A=o.strictObject({range:o.string().min(1),type:o.enum(SHEET_VALIDATIONS),operator:o.enum(SHEET_OPERATORS).optional(),formula:o.array(p).max(2).optional(),values:o.array(o.string()).optional(),multiple:o.boolean().optional(),separator:o.string().min(1).optional(),blank:o.boolean().optional(),dropdown:o.boolean().optional(),prompt:o.strictObject({title:o.string().optional(),message:o.string().optional(),show:o.boolean().optional()}).optional(),error:o.strictObject({style:o.enum(["stop","warning","information"]).optional(),title:o.string().optional(),message:o.string().optional(),show:o.boolean().optional()}).optional()}),k=o.strictObject({values:o.string().min(1),x:o.string().min(1).optional(),name:o.string().optional(),color:t.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()}),u=o.strictObject({title:o.string().optional(),min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional()}),H=o.strictObject({type:o.enum(y),at:o.string().min(1),x:o.number().min(0).optional(),y:o.number().min(0).optional(),width:o.number().positive().optional(),height:o.number().positive().optional(),title:o.string().optional(),categories:o.string().min(1).optional(),series:o.array(k).min(1),legend:o.enum(h).optional(),labels:e.shape.labels,gap_width:e.shape.gap_width,overlap:e.shape.overlap,vary_by_categories:e.shape.vary_by_categories,hole_size:e.shape.hole_size,value_axis:u.optional(),category_axis:u.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:t.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=o.strictObject({left:o.string().optional(),center:o.string().optional(),right:o.string().optional()}),R=o.strictObject({area:o.string().min(1).optional(),title_rows:o.string().regex(/^\d+:\d+$/u).optional(),title_cols:o.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:o.enum(["portrait","landscape"]).optional(),paper:o.enum(Object.keys(SHEET_PAPERS)).optional(),fit:o.strictObject({width:o.number().int().min(0).optional(),height:o.number().int().min(0).optional()}).optional(),scale:o.number().int().min(10).max(400).optional(),breaks:o.strictObject({rows:o.array(o.number().int().min(2)).optional(),cols:o.array(o.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:o.strictObject({left:o.number().min(0).optional(),right:o.number().min(0).optional(),top:o.number().min(0).optional(),bottom:o.number().min(0).optional(),header:o.number().min(0).optional(),footer:o.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),C=o.strictObject({file:o.string().min(1),at:o.string().min(1),x:o.number().min(0).optional(),y:o.number().min(0).optional(),width:o.number().positive().optional(),height:o.number().positive().optional()}),D=o.union([o.string().min(1),o.strictObject({text:o.string().min(1),author:o.string().optional()})]),G=o.strictObject({name:o.string().min(1),hidden:o.boolean().optional(),gridlines:o.boolean().optional(),tab:t.optional(),freeze:o.string().min(1).optional(),tables:o.array(x).optional(),columns:o.record(o.string(),T).optional(),rows:o.record(o.string(),_).optional(),cells:o.record(o.string(),E).optional(),format:o.array(f).optional(),merges:o.array(o.string().min(1)).optional(),blocks:o.array(S).optional(),filter:v.optional(),conditional:o.array(w).optional(),validations:o.array(A).optional(),charts:o.array(H).optional(),pictures:o.array(C).optional(),links:o.record(o.string(),o.string().min(1)).optional(),notes:o.record(o.string(),D).optional(),print:R.optional(),protect:o.boolean().optional(),names:o.record(o.string(),r).optional(),hidden_names:o.array(o.string().min(1)).optional()}),z=o.strictObject({name:o.string().min(1),formula:o.string().min(1)});export const SheetFileSchema=o.strictObject({title:o.string().optional(),code:o.string().min(1).optional(),names:o.record(o.string(),r).optional(),hidden_names:o.array(o.string().min(1)).optional(),sheets:o.array(G).min(1),checks:o.array(z).optional(),scenarios:o.record(o.string(),o.record(o.string(),r)).optional()});
2
+ import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as r,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const s=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),b={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:s.optional(),right:s.optional(),top:s.optional(),bottom:s.optional()}).optional()},l={...b,format:t.string().min(1).optional()},i=t.union([t.number(),t.boolean(),t.string(),t.null()]),O=t.strictObject({value:i.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),start:i.optional(),...l}).refine(a=>a.value===void 0||a.formula===void 0,{message:"A cell has a value or a formula, not both."}).refine(a=>a.start===void 0||a.formula!==void 0,{message:"A cell's start is a formula's."}),E=t.union([i,O]),f=t.strictObject({range:t.string().min(1),...l}),u=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),x=t.strictObject({formula:t.string().min(1).optional(),...l,width:t.number().positive().optional(),files:u.optional()}),g=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),j=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),x).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),g)})]).optional()}),S=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l,files:u.optional()}),_=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l}),v=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),g).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const c=t.union([t.number(),t.string()]),e={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:b.border},n={range:t.string().min(1),stop:t.boolean().optional()},p=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:c.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const k=t.discriminatedUnion("type",[t.strictObject({...n,...e,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(c).min(1).max(2)}),t.strictObject({...n,...e,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...e,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...e,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:p.optional(),max:p.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...p.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(p).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const w=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(c).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),A=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"],H=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional(),type:t.enum(A).optional(),secondary:t.boolean().optional()}),m=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),R=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(H).min(1),legend:t.enum(h).optional(),labels:r.shape.labels,gap_width:r.shape.gap_width,overlap:r.shape.overlap,vary_by_categories:r.shape.vary_by_categories,hole_size:r.shape.hole_size,value_axis:m.optional(),category_axis:m.optional(),secondary_axis:m.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),C=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),scale:t.number().int().min(10).max(400).optional(),breaks:t.strictObject({rows:t.array(t.number().int().min(2)).optional(),cols:t.array(t.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),D=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),G=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),I=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(j).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),_).optional(),cells:t.record(t.string(),E).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(S).optional(),filter:v.optional(),conditional:t.array(k).optional(),validations:t.array(w).optional(),charts:t.array(R).optional(),pictures:t.array(D).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),G).optional(),print:C.optional(),protect:t.boolean().optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional()}),z=t.strictObject({name:t.string().min(1),formula:t.string().min(1)}),L=t.union([t.literal(!0),t.strictObject({max_iterations:t.number().int().min(1).max(32767).optional(),max_change:t.number().min(0).optional()})]);export const SheetFileSchema=t.strictObject({title:t.string().optional(),code:t.string().min(1).optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional(),sheets:t.array(I).min(1),checks:t.array(z).optional(),scenarios:t.record(t.string(),t.record(t.string(),i)).optional(),iteration:L.optional()});
@@ -29,6 +29,23 @@ export type LineDash = (typeof LINE_DASHES)[number];
29
29
  /** A line's end, as PresentationML names it (`a:headEnd/@type`, `a:tailEnd/@type`). */
30
30
  export declare const LINE_ENDS: readonly ["none", "triangle", "arrow", "stealth", "diamond", "oval"];
31
31
  export type LineEnd = (typeof LINE_ENDS)[number];
32
+ /** A line end's width or length, small, medium or large, as PresentationML names them (`a:headEnd/@w`, `@len`). */
33
+ export declare const ARROW_SIZES: readonly ["sm", "med", "lg"];
34
+ export type ArrowSize = (typeof ARROW_SIZES)[number];
35
+ /** A line end's size: its width across the line and its length along it; what it leaves out is medium. */
36
+ export declare const LineEndSizeSchema: z.ZodObject<{
37
+ w: z.ZodOptional<z.ZodEnum<{
38
+ sm: "sm";
39
+ med: "med";
40
+ lg: "lg";
41
+ }>>;
42
+ len: z.ZodOptional<z.ZodEnum<{
43
+ sm: "sm";
44
+ med: "med";
45
+ lg: "lg";
46
+ }>>;
47
+ }, z.core.$strict>;
48
+ export type LineEndSize = z.infer<typeof LineEndSizeSchema>;
32
49
  /** A shape's frame: its offset and extents (`a:xfrm`), in points. */
33
50
  export declare const FrameSchema: z.ZodObject<{
34
51
  x: z.ZodNumber;
@@ -543,6 +560,30 @@ export declare const ShapeSchema: z.ZodObject<{
543
560
  stealth: "stealth";
544
561
  oval: "oval";
545
562
  }>>;
563
+ line_begin_size: z.ZodOptional<z.ZodObject<{
564
+ w: z.ZodOptional<z.ZodEnum<{
565
+ sm: "sm";
566
+ med: "med";
567
+ lg: "lg";
568
+ }>>;
569
+ len: z.ZodOptional<z.ZodEnum<{
570
+ sm: "sm";
571
+ med: "med";
572
+ lg: "lg";
573
+ }>>;
574
+ }, z.core.$strict>>;
575
+ line_end_size: z.ZodOptional<z.ZodObject<{
576
+ w: z.ZodOptional<z.ZodEnum<{
577
+ sm: "sm";
578
+ med: "med";
579
+ lg: "lg";
580
+ }>>;
581
+ len: z.ZodOptional<z.ZodEnum<{
582
+ sm: "sm";
583
+ med: "med";
584
+ lg: "lg";
585
+ }>>;
586
+ }, z.core.$strict>>;
546
587
  text: z.ZodOptional<z.ZodObject<{
547
588
  size: z.ZodOptional<z.ZodNumber>;
548
589
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -1250,6 +1291,30 @@ export declare const SlideSchema: z.ZodObject<{
1250
1291
  stealth: "stealth";
1251
1292
  oval: "oval";
1252
1293
  }>>;
1294
+ line_begin_size: z.ZodOptional<z.ZodObject<{
1295
+ w: z.ZodOptional<z.ZodEnum<{
1296
+ sm: "sm";
1297
+ med: "med";
1298
+ lg: "lg";
1299
+ }>>;
1300
+ len: z.ZodOptional<z.ZodEnum<{
1301
+ sm: "sm";
1302
+ med: "med";
1303
+ lg: "lg";
1304
+ }>>;
1305
+ }, z.core.$strict>>;
1306
+ line_end_size: z.ZodOptional<z.ZodObject<{
1307
+ w: z.ZodOptional<z.ZodEnum<{
1308
+ sm: "sm";
1309
+ med: "med";
1310
+ lg: "lg";
1311
+ }>>;
1312
+ len: z.ZodOptional<z.ZodEnum<{
1313
+ sm: "sm";
1314
+ med: "med";
1315
+ lg: "lg";
1316
+ }>>;
1317
+ }, z.core.$strict>>;
1253
1318
  text: z.ZodOptional<z.ZodObject<{
1254
1319
  size: z.ZodOptional<z.ZodNumber>;
1255
1320
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -1989,6 +2054,30 @@ export declare const SlidesFileSchema: z.ZodObject<{
1989
2054
  stealth: "stealth";
1990
2055
  oval: "oval";
1991
2056
  }>>;
2057
+ line_begin_size: z.ZodOptional<z.ZodObject<{
2058
+ w: z.ZodOptional<z.ZodEnum<{
2059
+ sm: "sm";
2060
+ med: "med";
2061
+ lg: "lg";
2062
+ }>>;
2063
+ len: z.ZodOptional<z.ZodEnum<{
2064
+ sm: "sm";
2065
+ med: "med";
2066
+ lg: "lg";
2067
+ }>>;
2068
+ }, z.core.$strict>>;
2069
+ line_end_size: z.ZodOptional<z.ZodObject<{
2070
+ w: z.ZodOptional<z.ZodEnum<{
2071
+ sm: "sm";
2072
+ med: "med";
2073
+ lg: "lg";
2074
+ }>>;
2075
+ len: z.ZodOptional<z.ZodEnum<{
2076
+ sm: "sm";
2077
+ med: "med";
2078
+ lg: "lg";
2079
+ }>>;
2080
+ }, z.core.$strict>>;
1992
2081
  text: z.ZodOptional<z.ZodObject<{
1993
2082
  size: z.ZodOptional<z.ZodNumber>;
1994
2083
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as o}from"zod";import{SCRIPT_NAME as g}from"./script.js";const s=o.string().regex(g,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=["line","lineInv","triangle","rtTriangle","rect","diamond","parallelogram","trapezoid","nonIsoscelesTrapezoid","pentagon","hexagon","heptagon","octagon","decagon","dodecagon","star4","star5","star6","star7","star8","star10","star12","star16","star24","star32","roundRect","round1Rect","round2SameRect","round2DiagRect","snipRoundRect","snip1Rect","snip2SameRect","snip2DiagRect","plaque","ellipse","teardrop","homePlate","chevron","pieWedge","pie","blockArc","donut","noSmoking","rightArrow","leftArrow","upArrow","downArrow","stripedRightArrow","notchedRightArrow","bentUpArrow","leftRightArrow","upDownArrow","leftUpArrow","leftRightUpArrow","quadArrow","leftArrowCallout","rightArrowCallout","upArrowCallout","downArrowCallout","leftRightArrowCallout","upDownArrowCallout","quadArrowCallout","bentArrow","uturnArrow","circularArrow","leftCircularArrow","leftRightCircularArrow","curvedRightArrow","curvedLeftArrow","curvedUpArrow","curvedDownArrow","swooshArrow","cube","can","lightningBolt","heart","sun","moon","smileyFace","irregularSeal1","irregularSeal2","foldedCorner","bevel","frame","halfFrame","corner","diagStripe","chord","arc","leftBracket","rightBracket","leftBrace","rightBrace","bracketPair","bracePair","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5","callout1","callout2","callout3","accentCallout1","accentCallout2","accentCallout3","borderCallout1","borderCallout2","borderCallout3","accentBorderCallout1","accentBorderCallout2","accentBorderCallout3","wedgeRectCallout","wedgeRoundRectCallout","wedgeEllipseCallout","cloudCallout","cloud","ribbon","ribbon2","ellipseRibbon","ellipseRibbon2","leftRightRibbon","verticalScroll","horizontalScroll","wave","doubleWave","plus","flowChartProcess","flowChartDecision","flowChartInputOutput","flowChartPredefinedProcess","flowChartInternalStorage","flowChartDocument","flowChartMultidocument","flowChartTerminator","flowChartPreparation","flowChartManualInput","flowChartManualOperation","flowChartConnector","flowChartPunchedCard","flowChartPunchedTape","flowChartSummingJunction","flowChartOr","flowChartCollate","flowChartSort","flowChartExtract","flowChartMerge","flowChartOfflineStorage","flowChartOnlineStorage","flowChartMagneticTape","flowChartMagneticDisk","flowChartMagneticDrum","flowChartDisplay","flowChartDelay","flowChartAlternateProcess","flowChartOffpageConnector","actionButtonBlank","actionButtonHome","actionButtonHelp","actionButtonInformation","actionButtonForwardNext","actionButtonBackPrevious","actionButtonEnd","actionButtonBeginning","actionButtonReturn","actionButtonDocument","actionButtonSound","actionButtonMovie","gear6","gear9","funnel","mathPlus","mathMinus","mathMultiply","mathDivide","mathEqual","mathNotEqual","cornerTabs","squareTabs","plaqueTabs","chartX","chartStar","chartPlus"],ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()});const b=new RegExp(`^(${THEME_COLORS.join("|")}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),f=/^#[0-9A-Fa-f]{6}$/u,w=t=>THEME_COLORS.includes(t);export function colorOfFile(t){if(w(t))return t;if(f.test(t))return{rgb:t.toUpperCase()};const n=b.exec(t),[,i="",e,a=""]=n??[],l=Math.round(Number(a)*1e3);if(!(!n||!w(i)||l<=0||l>1e5))return{theme_color:i,brightness:(e==="lighter"?l:-l)/1e5}}export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.rgb;const n=Math.round(Math.abs(t.brightness)*1e5)/1e3;return n===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(n)}%`}const m=`A colour is one of the theme's (${THEME_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), or #RRGGBB.`;export const ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(b,m),o.string().regex(f,m)]).refine(t=>colorOfFile(t)!==void 0,m),NUMBERINGS=["arabicPeriod","arabicParenR","alphaLcPeriod","alphaUcPeriod","romanLcPeriod","romanUcPeriod"],TEXT_ANCHORS=["t","ctr","b"],TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional(),line_spacing:o.number().positive().max(10).optional(),space_before:o.number().min(0).max(1584).optional(),space_after:o.number().min(0).max(1584).optional(),anchor:o.enum(TEXT_ANCHORS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional()});const A=o.strictObject({left:o.number().lt(1).optional(),top:o.number().lt(1).optional(),right:o.number().lt(1).optional(),bottom:o.number().lt(1).optional()}).refine(t=>(t.left??0)+(t.right??0)<1,{message:"left and right together cut the whole picture away"}).refine(t=>(t.top??0)+(t.bottom??0)<1,{message:"top and bottom together cut the whole picture away"}),d=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(d),o.record(o.string(),d)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],SHEET_CHART_TYPES=[...CHART_TYPES,"scatter","scatter-lines","scatter-smooth"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const C=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(SHEET_CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]).optional(),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),x:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),category_colors:o.array(ColorFileSchema).min(1).optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:C.optional(),category_axis:C.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()});const c=o.number().min(0).max(1);export const GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(n=>n!==void 0).length===1,{message:"A background is a fill, a gradient or a picture: one of them."}),ShadowSchema=o.strictObject({color:ColorFileSchema.optional(),blur:o.number().min(0).max(100).optional(),distance:o.number().min(0).max(200).optional(),angle:o.number().min(0).max(360).optional(),transparency:c.optional()});const S=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),connect:o.strictObject({begin:S.optional(),end:S.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),shadow:ShadowSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:A.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),adjustments:o.array(o.number()).max(8).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:s.optional(),locked:o.literal(!0).optional(),component:o.union([s,o.string().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,"A component is a name the deck's module registers, or a module's path and export: ../ui.ts#Dialog.")]).optional(),props:o.record(o.string(),d).optional(),dur:o.number().positive().optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:s,layout:o.string().min(1).optional(),generate:s.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional(),advance_after:o.number().min(0).max(86400).optional(),background:BackgroundSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,n)=>{const i=new Set;t.slides.forEach((e,a)=>{i.has(e.id)&&n.addIssue({code:"custom",path:["slides",a,"id"],message:`Two slides are "${e.id}".`}),i.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",a],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&n.addIssue({code:"custom",path:["slides",a,"hidden"],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(const[r,x]of Object.entries(e.shapes??{})){const h=SHAPE_KINDS.filter(u=>x[u]!==void 0);h.length>1&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:`Shape ${r} is one kind of shape, not ${h.join(" and ")}.`});const p=r.includes("/")?r.split("/"):[r];(!(p.length<=2&&p.every(u=>g.test(u)))||p.length===2&&e.generate===void 0)&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
2
+ import{z as o}from"zod";import{SCRIPT_NAME as g}from"./script.js";const s=o.string().regex(g,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=["line","lineInv","triangle","rtTriangle","rect","diamond","parallelogram","trapezoid","nonIsoscelesTrapezoid","pentagon","hexagon","heptagon","octagon","decagon","dodecagon","star4","star5","star6","star7","star8","star10","star12","star16","star24","star32","roundRect","round1Rect","round2SameRect","round2DiagRect","snipRoundRect","snip1Rect","snip2SameRect","snip2DiagRect","plaque","ellipse","teardrop","homePlate","chevron","pieWedge","pie","blockArc","donut","noSmoking","rightArrow","leftArrow","upArrow","downArrow","stripedRightArrow","notchedRightArrow","bentUpArrow","leftRightArrow","upDownArrow","leftUpArrow","leftRightUpArrow","quadArrow","leftArrowCallout","rightArrowCallout","upArrowCallout","downArrowCallout","leftRightArrowCallout","upDownArrowCallout","quadArrowCallout","bentArrow","uturnArrow","circularArrow","leftCircularArrow","leftRightCircularArrow","curvedRightArrow","curvedLeftArrow","curvedUpArrow","curvedDownArrow","swooshArrow","cube","can","lightningBolt","heart","sun","moon","smileyFace","irregularSeal1","irregularSeal2","foldedCorner","bevel","frame","halfFrame","corner","diagStripe","chord","arc","leftBracket","rightBracket","leftBrace","rightBrace","bracketPair","bracePair","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5","callout1","callout2","callout3","accentCallout1","accentCallout2","accentCallout3","borderCallout1","borderCallout2","borderCallout3","accentBorderCallout1","accentBorderCallout2","accentBorderCallout3","wedgeRectCallout","wedgeRoundRectCallout","wedgeEllipseCallout","cloudCallout","cloud","ribbon","ribbon2","ellipseRibbon","ellipseRibbon2","leftRightRibbon","verticalScroll","horizontalScroll","wave","doubleWave","plus","flowChartProcess","flowChartDecision","flowChartInputOutput","flowChartPredefinedProcess","flowChartInternalStorage","flowChartDocument","flowChartMultidocument","flowChartTerminator","flowChartPreparation","flowChartManualInput","flowChartManualOperation","flowChartConnector","flowChartPunchedCard","flowChartPunchedTape","flowChartSummingJunction","flowChartOr","flowChartCollate","flowChartSort","flowChartExtract","flowChartMerge","flowChartOfflineStorage","flowChartOnlineStorage","flowChartMagneticTape","flowChartMagneticDisk","flowChartMagneticDrum","flowChartDisplay","flowChartDelay","flowChartAlternateProcess","flowChartOffpageConnector","actionButtonBlank","actionButtonHome","actionButtonHelp","actionButtonInformation","actionButtonForwardNext","actionButtonBackPrevious","actionButtonEnd","actionButtonBeginning","actionButtonReturn","actionButtonDocument","actionButtonSound","actionButtonMovie","gear6","gear9","funnel","mathPlus","mathMinus","mathMultiply","mathDivide","mathEqual","mathNotEqual","cornerTabs","squareTabs","plaqueTabs","chartX","chartStar","chartPlus"],ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],ARROW_SIZES=["sm","med","lg"],LineEndSizeSchema=o.strictObject({w:o.enum(ARROW_SIZES).optional(),len:o.enum(ARROW_SIZES).optional()}),FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()});const b=new RegExp(`^(${THEME_COLORS.join("|")}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),f=/^#[0-9A-Fa-f]{6}$/u,w=t=>THEME_COLORS.includes(t);export function colorOfFile(t){if(w(t))return t;if(f.test(t))return{rgb:t.toUpperCase()};const n=b.exec(t),[,i="",e,a=""]=n??[],l=Math.round(Number(a)*1e3);if(!(!n||!w(i)||l<=0||l>1e5))return{theme_color:i,brightness:(e==="lighter"?l:-l)/1e5}}export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.rgb;const n=Math.round(Math.abs(t.brightness)*1e5)/1e3;return n===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(n)}%`}const m=`A colour is one of the theme's (${THEME_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), or #RRGGBB.`;export const ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(b,m),o.string().regex(f,m)]).refine(t=>colorOfFile(t)!==void 0,m),NUMBERINGS=["arabicPeriod","arabicParenR","alphaLcPeriod","alphaUcPeriod","romanLcPeriod","romanUcPeriod"],TEXT_ANCHORS=["t","ctr","b"],TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional(),line_spacing:o.number().positive().max(10).optional(),space_before:o.number().min(0).max(1584).optional(),space_after:o.number().min(0).max(1584).optional(),anchor:o.enum(TEXT_ANCHORS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional()});const A=o.strictObject({left:o.number().lt(1).optional(),top:o.number().lt(1).optional(),right:o.number().lt(1).optional(),bottom:o.number().lt(1).optional()}).refine(t=>(t.left??0)+(t.right??0)<1,{message:"left and right together cut the whole picture away"}).refine(t=>(t.top??0)+(t.bottom??0)<1,{message:"top and bottom together cut the whole picture away"}),d=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(d),o.record(o.string(),d)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],SHEET_CHART_TYPES=[...CHART_TYPES,"scatter","scatter-lines","scatter-smooth"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const C=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(SHEET_CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]).optional(),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),x:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),category_colors:o.array(ColorFileSchema).min(1).optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:C.optional(),category_axis:C.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()});const c=o.number().min(0).max(1);export const GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(n=>n!==void 0).length===1,{message:"A background is a fill, a gradient or a picture: one of them."}),ShadowSchema=o.strictObject({color:ColorFileSchema.optional(),blur:o.number().min(0).max(100).optional(),distance:o.number().min(0).max(200).optional(),angle:o.number().min(0).max(360).optional(),transparency:c.optional()});const S=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),connect:o.strictObject({begin:S.optional(),end:S.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),shadow:ShadowSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),line_begin_size:LineEndSizeSchema.optional(),line_end_size:LineEndSizeSchema.optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:A.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),adjustments:o.array(o.number()).max(8).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:s.optional(),locked:o.literal(!0).optional(),component:o.union([s,o.string().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,"A component is a name the deck's module registers, or a module's path and export: ../ui.ts#Dialog.")]).optional(),props:o.record(o.string(),d).optional(),dur:o.number().positive().optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:s,layout:o.string().min(1).optional(),generate:s.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional(),advance_after:o.number().min(0).max(86400).optional(),background:BackgroundSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,n)=>{const i=new Set;t.slides.forEach((e,a)=>{i.has(e.id)&&n.addIssue({code:"custom",path:["slides",a,"id"],message:`Two slides are "${e.id}".`}),i.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",a],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&n.addIssue({code:"custom",path:["slides",a,"hidden"],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(const[r,x]of Object.entries(e.shapes??{})){const h=SHAPE_KINDS.filter(u=>x[u]!==void 0);h.length>1&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:`Shape ${r} is one kind of shape, not ${h.join(" and ")}.`});const p=r.includes("/")?r.split("/"):[r];(!(p.length<=2&&p.every(u=>g.test(u)))||p.length===2&&e.generate===void 0)&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
@@ -36,4 +36,24 @@ export declare function touches(shape: NoteShape, box: NoteBox): boolean;
36
36
  export declare function pointsOf(shape: NoteShape): NotePoint[];
37
37
  /** A shape moved into another frame, as a stage's own. */
38
38
  export declare function mapShape(shape: NoteShape, map: (p: NotePoint) => NotePoint): NoteShape;
39
+ /**
40
+ * An element's edge as it is drawn, for a person who picks it rather than
41
+ * drawing round it (docs/design/notes.md, "Select"): closed outlines, each a
42
+ * ring of points in the surface's pixels. A box is one ring of four, a box
43
+ * turned its four corners turned, words a ring a line, a round shape its
44
+ * edge in steps.
45
+ */
46
+ export type NoteOutline = NotePoint[][];
47
+ /** A box's outline. */
48
+ export declare function rectOutline(box: NoteBox): NoteOutline;
49
+ /** A box turned about its middle, degrees clockwise: its four corners where they are drawn. */
50
+ export declare function turnedOutline(box: NoteBox, degrees: number): NoteOutline;
51
+ /** The round in a box: its edge in steps. */
52
+ export declare function roundOutline(box: NoteBox): NoteOutline;
53
+ /** An outline moved into another frame. */
54
+ export declare function mapOutline(outline: readonly (readonly NotePoint[])[], map: (p: NotePoint) => NotePoint): NoteOutline;
55
+ /** The box round an outline. */
56
+ export declare function outlineBox(outline: readonly (readonly NotePoint[])[]): NoteBox;
57
+ /** Whether a point is inside an outline: inside one of its rings (the even-odd rule a ring). */
58
+ export declare function insideOutline(outline: readonly (readonly NotePoint[])[], p: NotePoint): boolean;
39
59
  //# sourceMappingURL=note-shape.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- const T=6,P=.85,I=.25,O=40,S=12,x=(t,n,r)=>Math.min(r,Math.max(n,t));function f(t){const n=t.map(e=>e.x),r=t.map(e=>e.y),c=Math.min(...n),o=Math.min(...r);return{x:c,y:o,width:Math.max(...n)-c,height:Math.max(...r)-o}}function l(t){const[n]=t,r=t.at(-1);if(!n||!r)return!1;const{width:c,height:o}=f(t),e=Math.hypot(c,o);return e>0&&Math.hypot(r.x-n.x,r.y-n.y)<=e*.25}const m=(t,n)=>t.x<n.x+Math.max(n.width,1)&&t.x+Math.max(t.width,1)>n.x&&t.y<n.y+Math.max(n.height,1)&&t.y+Math.max(t.height,1)>n.y;function M(t,n){const r=t.width/2||1,c=t.height/2||1,o=t.x+r,e=t.y+c,i=(x(o,n.x,n.x+n.width)-o)/r,s=(x(e,n.y,n.y+n.height)-e)/c;return Math.hypot(i,s)<=.85}function w(t,n,r){const c=n.x-t.x,o=n.y-t.y;let e=0,i=1;for(const[s,h]of[[-c,t.x-r.x],[c,r.x+r.width-t.x],[-o,t.y-r.y],[o,r.y+r.height-t.y]]){if(s===0){if(h<0)return!1}else s<0?e=Math.max(e,h/s):i=Math.min(i,h/s);if(e>i)return!1}return!0}export function touches(t,n){switch(t.kind){case"box":return m(t.rect,n);case"round":return M(t.rect,n);case"arrow":return m({x:t.to.x-6,y:t.to.y-6,width:12,height:12},n);case"line":return l(t.points)?M(f(t.points),n):t.points.some((r,c)=>w(t.points[c-1]??r,r,n))}}function d(t,n){return n.flatMap(r=>n.map(c=>({x:t.x+t.width*c,y:t.y+t.height*r})))}function g(t){const n=t.map((o,e)=>{const i=t[e-1]??o;return Math.hypot(o.x-i.x,o.y-i.y)}),r=n.reduce((o,e)=>o+e,0),c=x(Math.ceil(r/40)+1,2,12);return Array.from({length:c},(o,e)=>{let i=r*e/(c-1);for(const[s,h]of t.entries()){const u=n[s]??0,y=t[s-1];if(y&&i<=u){const a=u===0?0:i/u;return{x:y.x+(h.x-y.x)*a,y:y.y+(h.y-y.y)*a}}i-=u}return t.at(-1)??{x:0,y:0}})}export function pointsOf(t){switch(t.kind){case"box":return d(t.rect,[.5,.2,.8]);case"round":return d(t.rect,[.5,.3,.7]);case"arrow":return[t.to];case"line":return l(t.points)?d(f(t.points),[.5,.3,.7]):g(t.points)}}export function mapShape(t,n){switch(t.kind){case"box":case"round":{const r=n(t.rect),c=n({x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height});return{kind:t.kind,rect:{...r,width:c.x-r.x,height:c.y-r.y}}}case"arrow":return{kind:"arrow",from:n(t.from),to:n(t.to)};case"line":return{kind:"line",points:t.points.map(n)}}}
2
+ const O=6,P=.85,I=.25,S=40,k=12,x=(t,n,r)=>Math.min(r,Math.max(n,t));function f(t){const n=t.map(e=>e.x),r=t.map(e=>e.y),c=Math.min(...n),i=Math.min(...r);return{x:c,y:i,width:Math.max(...n)-c,height:Math.max(...r)-i}}function d(t){const[n]=t,r=t.at(-1);if(!n||!r)return!1;const{width:c,height:i}=f(t),e=Math.hypot(c,i);return e>0&&Math.hypot(r.x-n.x,r.y-n.y)<=e*.25}const m=(t,n)=>t.x<n.x+Math.max(n.width,1)&&t.x+Math.max(t.width,1)>n.x&&t.y<n.y+Math.max(n.height,1)&&t.y+Math.max(t.height,1)>n.y;function M(t,n){const r=t.width/2||1,c=t.height/2||1,i=t.x+r,e=t.y+c,o=(x(i,n.x,n.x+n.width)-i)/r,s=(x(e,n.y,n.y+n.height)-e)/c;return Math.hypot(o,s)<=.85}function g(t,n,r){const c=n.x-t.x,i=n.y-t.y;let e=0,o=1;for(const[s,y]of[[-c,t.x-r.x],[c,r.x+r.width-t.x],[-i,t.y-r.y],[i,r.y+r.height-t.y]]){if(s===0){if(y<0)return!1}else s<0?e=Math.max(e,y/s):o=Math.min(o,y/s);if(e>o)return!1}return!0}export function touches(t,n){switch(t.kind){case"box":return m(t.rect,n);case"round":return M(t.rect,n);case"arrow":return m({x:t.to.x-6,y:t.to.y-6,width:12,height:12},n);case"line":return d(t.points)?M(f(t.points),n):t.points.some((r,c)=>g(t.points[c-1]??r,r,n))}}function a(t,n){return n.flatMap(r=>n.map(c=>({x:t.x+t.width*c,y:t.y+t.height*r})))}function T(t){const n=t.map((i,e)=>{const o=t[e-1]??i;return Math.hypot(i.x-o.x,i.y-o.y)}),r=n.reduce((i,e)=>i+e,0),c=x(Math.ceil(r/40)+1,2,12);return Array.from({length:c},(i,e)=>{let o=r*e/(c-1);for(const[s,y]of t.entries()){const h=n[s]??0,u=t[s-1];if(u&&o<=h){const l=h===0?0:o/h;return{x:u.x+(y.x-u.x)*l,y:u.y+(y.y-u.y)*l}}o-=h}return t.at(-1)??{x:0,y:0}})}export function pointsOf(t){switch(t.kind){case"box":return a(t.rect,[.5,.2,.8]);case"round":return a(t.rect,[.5,.3,.7]);case"arrow":return[t.to];case"line":return d(t.points)?a(f(t.points),[.5,.3,.7]):T(t.points)}}export function mapShape(t,n){switch(t.kind){case"box":case"round":{const r=n(t.rect),c=n({x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height});return{kind:t.kind,rect:{...r,width:c.x-r.x,height:c.y-r.y}}}case"arrow":return{kind:"arrow",from:n(t.from),to:n(t.to)};case"line":return{kind:"line",points:t.points.map(n)}}}export function rectOutline(t){return[[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}]]}export function turnedOutline(t,n){if(n%360===0)return rectOutline(t);const r=n*Math.PI/180,c=Math.cos(r),i=Math.sin(r),e=t.x+t.width/2,o=t.y+t.height/2;return rectOutline(t).map(s=>s.map(y=>({x:e+(y.x-e)*c-(y.y-o)*i,y:o+(y.x-e)*i+(y.y-o)*c})))}const w=48;export function roundOutline(t){const n=t.width/2,r=t.height/2;return[Array.from({length:w},(c,i)=>{const e=2*Math.PI*i/w;return{x:t.x+n+n*Math.cos(e),y:t.y+r+r*Math.sin(e)}})]}export function mapOutline(t,n){return t.map(r=>r.map(n))}export function outlineBox(t){return f(t.flat())}export function insideOutline(t,n){return t.some(r=>{let c=!1;for(let i=0,e=r.length-1;i<r.length;e=i++){const o=r[i],s=r[e];!o||!s||o.y>n.y!=s.y>n.y&&n.x<(s.x-o.x)*(n.y-o.y)/(s.y-o.y)+o.x&&(c=!c)}return c})}
@@ -719,6 +719,7 @@ export declare const DATA_FILES: {
719
719
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
720
720
  formula: z.ZodOptional<z.ZodString>;
721
721
  name: z.ZodOptional<z.ZodString>;
722
+ start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
722
723
  }, z.core.$strict>]>>>;
723
724
  format: z.ZodOptional<z.ZodArray<z.ZodObject<{
724
725
  format: z.ZodOptional<z.ZodString>;
@@ -1585,6 +1586,17 @@ export declare const DATA_FILES: {
1585
1586
  smooth: z.ZodOptional<z.ZodBoolean>;
1586
1587
  line_width: z.ZodOptional<z.ZodNumber>;
1587
1588
  marker_size: z.ZodOptional<z.ZodNumber>;
1589
+ type: z.ZodOptional<z.ZodEnum<{
1590
+ line: "line";
1591
+ "column-clustered": "column-clustered";
1592
+ "column-stacked": "column-stacked";
1593
+ "column-stacked-100": "column-stacked-100";
1594
+ "line-markers": "line-markers";
1595
+ area: "area";
1596
+ "area-stacked": "area-stacked";
1597
+ "area-stacked-100": "area-stacked-100";
1598
+ }>>;
1599
+ secondary: z.ZodOptional<z.ZodBoolean>;
1588
1600
  }, z.core.$strict>>;
1589
1601
  legend: z.ZodOptional<z.ZodEnum<{
1590
1602
  left: "left";
@@ -1649,6 +1661,16 @@ export declare const DATA_FILES: {
1649
1661
  format: z.ZodOptional<z.ZodString>;
1650
1662
  reverse: z.ZodOptional<z.ZodBoolean>;
1651
1663
  }, z.core.$strict>>;
1664
+ secondary_axis: z.ZodOptional<z.ZodObject<{
1665
+ title: z.ZodOptional<z.ZodString>;
1666
+ min: z.ZodOptional<z.ZodNumber>;
1667
+ max: z.ZodOptional<z.ZodNumber>;
1668
+ major: z.ZodOptional<z.ZodNumber>;
1669
+ gridlines: z.ZodOptional<z.ZodBoolean>;
1670
+ visible: z.ZodOptional<z.ZodBoolean>;
1671
+ format: z.ZodOptional<z.ZodString>;
1672
+ reverse: z.ZodOptional<z.ZodBoolean>;
1673
+ }, z.core.$strict>>;
1652
1674
  size: z.ZodOptional<z.ZodNumber>;
1653
1675
  title_size: z.ZodOptional<z.ZodNumber>;
1654
1676
  color: z.ZodOptional<z.ZodString>;
@@ -1723,6 +1745,10 @@ export declare const DATA_FILES: {
1723
1745
  formula: z.ZodString;
1724
1746
  }, z.core.$strict>>>;
1725
1747
  scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
1748
+ iteration: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
1749
+ max_iterations: z.ZodOptional<z.ZodNumber>;
1750
+ max_change: z.ZodOptional<z.ZodNumber>;
1751
+ }, z.core.$strict>]>>;
1726
1752
  }, z.core.$strict>;
1727
1753
  readonly files: readonly [];
1728
1754
  readonly about: "A workbook: its sheets, cells, formulas, formats, names, checks and scenarios.";
@@ -1852,6 +1878,30 @@ export declare const DATA_FILES: {
1852
1878
  stealth: "stealth";
1853
1879
  oval: "oval";
1854
1880
  }>>;
1881
+ line_begin_size: z.ZodOptional<z.ZodObject<{
1882
+ w: z.ZodOptional<z.ZodEnum<{
1883
+ sm: "sm";
1884
+ med: "med";
1885
+ lg: "lg";
1886
+ }>>;
1887
+ len: z.ZodOptional<z.ZodEnum<{
1888
+ sm: "sm";
1889
+ med: "med";
1890
+ lg: "lg";
1891
+ }>>;
1892
+ }, z.core.$strict>>;
1893
+ line_end_size: z.ZodOptional<z.ZodObject<{
1894
+ w: z.ZodOptional<z.ZodEnum<{
1895
+ sm: "sm";
1896
+ med: "med";
1897
+ lg: "lg";
1898
+ }>>;
1899
+ len: z.ZodOptional<z.ZodEnum<{
1900
+ sm: "sm";
1901
+ med: "med";
1902
+ lg: "lg";
1903
+ }>>;
1904
+ }, z.core.$strict>>;
1855
1905
  text: z.ZodOptional<z.ZodObject<{
1856
1906
  size: z.ZodOptional<z.ZodNumber>;
1857
1907
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/i18n",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-draw",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,2 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{mkdir as B,mkdtemp as C,readFile as U,readdir as A,rm as E,writeFile as P}from"node:fs/promises";import{tmpdir as X}from"node:os";import{dirname as R,join as k,parse as K}from"node:path";import{PSD_DEFAULTS as W,trimmed as I,writeBoardPsd as J}from"@allyhub/image-psd";import{cropImage as H,readPng as V}from"@allyhub/measure";import{finishPdf as Y}from"@allyhub/image-render/pdf";import{ffmpegOf as Z,runFfmpegWith as tt}from"@allyhub/runtimes";import{zipSync as et}from"fflate";import{PDFDocument as q}from"pdf-lib";export const IMAGE_EXPORT_DEFAULTS={jpegQuality:90,avifQuality:60,scale:1};const j={min:.25,max:4},T=16384,at=["png","jpeg","webp","avif"],it=t=>at.includes(t),M={png:"png",jpeg:"jpg",webp:"webp",avif:"avif"},nt=t=>typeof t=="number"&&Number.isFinite(t)?Math.max(0,Math.min(100,Math.round(t))):void 0;async function st(t,e,s,a){const o=String(Math.round(63-.63*s)),i=e?["-filter_complex","[0:v]format=yuv420p[c];[0:v]alphaextract,format=gray,setparams=colorspace=bt709:range=pc[a]","-map","[c]","-map","[a]"]:["-vf","format=yuv420p"],c=await C(k(X(),"allyhub-avif-")),f=k(c,"board.avif");try{return await tt(await Z(),["-v","error","-f","image2pipe","-c:v","png","-i","-",...i,"-frames:v","1","-c:v","libaom-av1","-still-picture","1","-crf",o,"-cpu-used","6","-threads","1","-f","avif","-y",f],async r=>{await new Promise((n,l)=>{r.end(t,()=>{n()}),r.on("error",l)})},!1,a),await U(f)}finally{await E(c,{recursive:!0,force:!0})}}const D=t=>{const e=typeof t=="number"?t:typeof t=="string"?Number(t.trim().replace(/[x×]$/iu,"")):Number.NaN;return Number.isFinite(e)&&e>0?e:void 0};export function scaleOf(t,e){const s=["scale","width","height"].filter(r=>t[r]!==void 0);if(s.length>1)return{code:"bad-param",message:`${s.join(" and ")} both size a board's picture.`,hint:"Give one: scale (2), width or height (pixels)."};const[a]=s;if(a===void 0)return IMAGE_EXPORT_DEFAULTS.scale;const o=D(t[a]);if(o===void 0)return{code:"bad-param",message:`${a} is ${JSON.stringify(t[a])}, not a positive number.`};const i=a==="scale"?o:o/(a==="width"?e.width:e.height),c=Math.round(e.width*i),f=Math.round(e.height*i);return i<j.min||i>j.max?{code:"bad-param",message:`Board ${e.key} (${String(e.width)}×${String(e.height)}) at ${a} ${String(o)} is drawn at ${String(Math.round(i*1e3)/1e3)}×, not from ${String(j.min)}× to ${String(j.max)}×.`,hint:"Change the board's size in the code for a picture further from it."}:Math.max(c,f)>T?{code:"bad-param",message:`Board ${e.key} at ${String(Math.round(i*1e3)/1e3)}× is ${String(c)}×${String(f)}, over ${String(T)} pixels a side.`}:i}async function _(t,e,s,a,o){if(e==="avif"){const i=await t.stage.capture({format:"png",alpha:a});return st(i,a,s??IMAGE_EXPORT_DEFAULTS.avifQuality,o)}return t.stage.capture({format:e,alpha:a,...e==="jpeg"?{quality:s??IMAGE_EXPORT_DEFAULTS.jpegQuality}:e==="webp"&&s!==void 0?{quality:s}:{}})}const G=t=>Math.round(t/1024*10)/10;async function L(t,e,s,a){const o=scaleOf(a.params,e);if(typeof o!="number")return o;const i=D(a.params.maxKb),c=t.timeline.parts.find(f=>f.key===e.key);await t.stage.rescale(o);try{await t.seek(c?.still??0);const f=nt(a.params.quality),r=a.transparent&&s!=="jpeg",n=await _(t,s,f,r,a.signal);if(i===void 0||n.length<=i*1024)return{bytes:n};if(s==="png")return{code:"over-size",message:`Board ${e.key}'s PNG is ${String(G(n.length))} KB, over ${String(i)} KB, and a PNG keeps every pixel.`,hint:"Export it as jpeg, webp or avif, which find a quality under the size, or at a smaller scale."};let l=0,y=f??100,u;for(;l<=y;){const d=Math.floor((l+y)/2),h=await _(t,s,d,r,a.signal);h.length<=i*1024?(u={bytes:h,picked:d},l=d+1):y=d-1}return u??{code:"over-size",message:`Board ${e.key}'s ${s} is over ${String(i)} KB at every quality.`,hint:"Export it at a smaller scale, or as another type."}}finally{await t.stage.rescale(1)}}async function rt(t,e,s,a){const o=await q.create({updateMetadata:!1});for(const i of e){const c=await t.another();try{const r=c.timeline.parts.find(u=>u.key===i.key)?.still??0;await c.seek(r);const n=await c.stage.print([{still:r,title:i.key,background:a?"transparent":c.timeline.background??"white"}],`${String(i.width)}px ${String(i.height)}px`,{width:i.width,height:i.height}),l=await q.load(n,{updateMetadata:!1}),[y]=await o.copyPages(l,[0]);y&&o.addPage(y)}finally{await c.close()}}return Y(await o.save(),{...s===void 0?{}:{title:s},outline:e.map(i=>i.key)})}function ot(t){const e=t.piece.title;return typeof e=="string"?e:e===void 0?void 0:e[t.target.combo.lang??""]??Object.values(e)[0]}async function O(t,e,s){const a=V(await t.stage.capture({format:"png",alpha:s}));return a.width===e.width&&a.height===e.height?a:H(a,[0,0,e.width,e.height])??a}const Q=t=>t.flatMap(e=>[e,...Q(e.layers??[])]);async function ct(t,e,s,a){const o=t.timeline.parts.find(r=>r.key===e.key);await t.seek(o?.still??0);const i=await O(t,e,!0),c=new Map,f=new Map;try{for(const r of Q(s.layers)){if(r.pixels){await t.stage.call("psdDraw",e.key,r.key,"pixels");const n=I(await O(t,e,!0));n&&c.set(r.key,n)}if(r.mask?.kind==="raster"){await t.stage.call("psdDraw",e.key,r.key,"mask");const n=I(await O(t,e,!1),0);n&&f.set(r.key,n)}}}finally{await t.stage.call("psdDraw",null)}return J(s,{composite:i,layers:c,masks:f},{format:a})}export async function renderImage(t){const e=t.version;if(!e)throw new Error("An image's files are made from a version.");const s=e.version,a=await s.stage.call("boards"),o=e.piece.options.transparent===!0,i=[];let c=0;const f=t.types.length*Math.max(1,a.length),r=()=>{c++,t.onProgress?.(Math.min(1,c/f))};for(const n of t.types){t.signal?.throwIfAborted();const l=t.out(n);await B(R(l),{recursive:!0});const y={transparent:o,params:t.params,...t.signal?{signal:t.signal}:{}};if(it(n)){const{dir:u,name:d}=K(l),h=k(u,d);await B(h,{recursive:!0});const g=new Set(a.map(m=>`${m.key}.${M[n]}`));for(const m of await A(h))m.endsWith(`.${M[n]}`)&&!g.has(m)&&await E(k(h,m),{force:!0});const w=[],S=[],x={};let b;for(const m of a){const p=await L(s,m,n,y);if(r(),!("bytes"in p)){b=p;break}const v=k(h,`${m.key}.${M[n]}`);await P(v,p.bytes),w.push(v),x[m.key]=v,p.picked!==void 0&&S.push(`${d}/${m.key}.${M[n]} at quality ${String(p.picked)}, ${String(G(p.bytes.length))} KB, under the ${String(D(t.params.maxKb))} KB asked`)}i.push(b?{type:n,failure:b}:{type:n,files:w,partFiles:x,...S.length>0?{chosen:S}:{}});continue}if(n==="zip"){const u={};let d;for(const g of a){const w=await L(s,g,"png",{...y,params:{...y.params,maxKb:void 0}});if(r(),!("bytes"in w)){d=w;break}u[`${g.key}.${M.png}`]=w.bytes}if(d){i.push({type:n,failure:d});continue}const h=et(Object.fromEntries(Object.entries(u).map(([g,w])=>[g,[w,{level:0,mtime:new Date(1980,0,1)}]])));await P(l,h),i.push({type:n,files:[l]});continue}if(n==="pdf"){const u=await rt(e,a,ot(e),o);await P(l,u),c+=a.length,t.onProgress?.(Math.min(1,c/f)),i.push({type:n,files:[l]});continue}if(n==="psd"){const u=t.params.psd==="psb"?"psb":W.format,{dir:d,name:h}=K(l),g=k(d,h);await B(g,{recursive:!0});const w=new Set(a.map(p=>`${p.key}.${u}`));for(const p of await A(g))/\.ps[db]$/u.test(p)&&!w.has(p)&&await E(k(g,p),{force:!0});const S=await s.stage.call("psdBoards"),x=[],b=[],m=new Set;for(const p of a){const v=S.find($=>$.key===p.key);if(!v)continue;const z=k(g,`${p.key}.${u}`),F=await ct(s,p,v,u);await P(z,F.bytes),x.push(z);for(const $ of F.fidelity){const N=`${$.how}|${$.what}|${$.layer??""}`;m.has(N)||(m.add(N),b.push({...$,...$.layer===void 0?{}:{layer:`${p.key}/${$.layer}`}}))}r()}i.push({type:n,files:x,...b.length>0?{fidelity:b}:{}});continue}i.push({type:n,failure:{code:"bad-type",message:`An image is not made as ${n}.`,hint:"Its types: png, jpeg, webp, avif, pdf, zip, psd."}})}return i}
2
+ import{mkdir as B,readdir as A,rm as K,writeFile as j}from"node:fs/promises";import{dirname as X,join as P,parse as q}from"node:path";import{PSD_DEFAULTS as Q,trimmed as T,writeBoardPsd as J}from"@allyhub/image-psd";import{cropImage as V,readPng as W}from"@allyhub/measure";import{finishPdf as H}from"@allyhub/image-render/pdf";import{zipSync as Y}from"fflate";import{PDFDocument as _}from"pdf-lib";export const IMAGE_EXPORT_DEFAULTS={jpegQuality:90,scale:1};const v={min:.25,max:4},C=16384,Z=["png","jpeg","webp"],tt=t=>Z.includes(t),M={png:"png",jpeg:"jpg",webp:"webp"},et=t=>typeof t=="number"&&Number.isFinite(t)?Math.max(0,Math.min(100,Math.round(t))):void 0,E=t=>{const e=typeof t=="number"?t:typeof t=="string"?Number(t.trim().replace(/[x×]$/iu,"")):Number.NaN;return Number.isFinite(e)&&e>0?e:void 0};export function scaleOf(t,e){const i=["scale","width","height"].filter(o=>t[o]!==void 0);if(i.length>1)return{code:"bad-param",message:`${i.join(" and ")} both size a board's picture.`,hint:"Give one: scale (2), width or height (pixels)."};const[n]=i;if(n===void 0)return IMAGE_EXPORT_DEFAULTS.scale;const c=E(t[n]);if(c===void 0)return{code:"bad-param",message:`${n} is ${JSON.stringify(t[n])}, not a positive number.`};const s=n==="scale"?c:c/(n==="width"?e.width:e.height),h=Math.round(e.width*s),r=Math.round(e.height*s);return s<v.min||s>v.max?{code:"bad-param",message:`Board ${e.key} (${String(e.width)}×${String(e.height)}) at ${n} ${String(c)} is drawn at ${String(Math.round(s*1e3)/1e3)}×, not from ${String(v.min)}× to ${String(v.max)}×.`,hint:"Change the board's size in the code for a picture further from it."}:Math.max(h,r)>C?{code:"bad-param",message:`Board ${e.key} at ${String(Math.round(s*1e3)/1e3)}× is ${String(h)}×${String(r)}, over ${String(C)} pixels a side.`}:s}async function G(t,e,i,n){return t.stage.capture({format:e,alpha:n,...e==="jpeg"?{quality:i??IMAGE_EXPORT_DEFAULTS.jpegQuality}:e==="webp"&&i!==void 0?{quality:i}:{}})}const L=t=>Math.round(t/1024*10)/10;async function R(t,e,i,n){const c=scaleOf(n.params,e);if(typeof c!="number")return c;const s=E(n.params.maxKb),h=t.timeline.parts.find(r=>r.key===e.key);await t.stage.rescale(c);try{await t.seek(h?.still??0);const r=et(n.params.quality),o=n.transparent&&i!=="jpeg",a=await G(t,i,r,o);if(s===void 0||a.length<=s*1024)return{bytes:a};if(i==="png")return{code:"over-size",message:`Board ${e.key}'s PNG is ${String(L(a.length))} KB, over ${String(s)} KB, and a PNG keeps every pixel.`,hint:"Export it as jpeg or webp, which find a quality under the size, or at a smaller scale."};let u=0,$=r??100,d;for(;u<=$;){const f=Math.floor((u+$)/2),p=await G(t,i,f,o);p.length<=s*1024?(d={bytes:p,picked:f},u=f+1):$=f-1}return d??{code:"over-size",message:`Board ${e.key}'s ${i} is over ${String(s)} KB at every quality.`,hint:"Export it at a smaller scale, or as another type."}}finally{await t.stage.rescale(1)}}const nt=`[...document.querySelectorAll("*")].some((el) => {
3
+ const f = getComputedStyle(el).backdropFilter;
4
+ return f !== "" && f !== "none" && el.checkVisibility();
5
+ })`,D=.75;async function at(t,e,i,n){const c=await _.create({updateMetadata:!1}),s=[];for(const r of e){const o=await t.another();try{const u=o.timeline.parts.find(p=>p.key===r.key)?.still??0;if(await o.seek(u),await o.stage.page.evaluate(nt)){await o.stage.rescale(2);const p=await o.stage.capture({format:"png",alpha:n});c.addPage([r.width*D,r.height*D]).drawImage(await c.embedPng(p),{x:0,y:0,width:r.width*D,height:r.height*D}),s.push(r.key);continue}const $=await o.stage.print([{still:u,title:r.key,background:n?"transparent":o.timeline.background??"white"}],`${String(r.width)}px ${String(r.height)}px`,{width:r.width,height:r.height}),d=await _.load($,{updateMetadata:!1}),[f]=await c.copyPages(d,[0]);f&&c.addPage(f)}finally{await o.close()}}return{bytes:await H(await c.save(),{...i===void 0?{}:{title:i},outline:e.map(r=>r.key)}),pictured:s}}function it(t){const e=t.piece.title;return typeof e=="string"?e:e===void 0?void 0:e[t.target.combo.lang??""]??Object.values(e)[0]}async function N(t,e,i){const n=W(await t.stage.capture({format:"png",alpha:i}));return n.width===e.width&&n.height===e.height?n:V(n,[0,0,e.width,e.height])??n}const U=t=>t.flatMap(e=>[e,...U(e.layers??[])]);async function st(t,e,i,n){const c=t.timeline.parts.find(o=>o.key===e.key);await t.seek(c?.still??0);const s=await N(t,e,!0),h=new Map,r=new Map;try{for(const o of U(i.layers)){if(o.pixels){await t.stage.call("psdDraw",e.key,o.key,"pixels");const a=T(await N(t,e,!0));a&&h.set(o.key,a)}if(o.mask?.kind==="raster"){await t.stage.call("psdDraw",e.key,o.key,"mask");const a=T(await N(t,e,!1),0);a&&r.set(o.key,a)}}}finally{await t.stage.call("psdDraw",null)}return J(i,{composite:s,layers:h,masks:r},{format:n})}export async function renderImage(t){const e=t.version;if(!e)throw new Error("An image's files are made from a version.");const i=e.version,n=await i.stage.call("boards"),c=e.piece.options.transparent===!0,s=[];let h=0;const r=t.types.length*Math.max(1,n.length),o=()=>{h++,t.onProgress?.(Math.min(1,h/r))};for(const a of t.types){t.signal?.throwIfAborted();const u=t.out(a);await B(X(u),{recursive:!0});const $={transparent:c,params:t.params,...t.signal?{signal:t.signal}:{}};if(tt(a)){const{dir:d,name:f}=q(u),p=P(d,f);await B(p,{recursive:!0});const m=new Set(n.map(g=>`${g.key}.${M[a]}`));for(const g of await A(p))g.endsWith(`.${M[a]}`)&&!m.has(g)&&await K(P(p,g),{force:!0});const w=[],x=[],S={};let k;for(const g of n){const y=await R(i,g,a,$);if(o(),!("bytes"in y)){k=y;break}const l=P(p,`${g.key}.${M[a]}`);await j(l,y.bytes),w.push(l),S[g.key]=l,y.picked!==void 0&&x.push(`${f}/${g.key}.${M[a]} at quality ${String(y.picked)}, ${String(L(y.bytes.length))} KB, under the ${String(E(t.params.maxKb))} KB asked`)}s.push(k?{type:a,failure:k}:{type:a,files:w,partFiles:S,...x.length>0?{chosen:x}:{}});continue}if(a==="zip"){const d={};let f;for(const m of n){const w=await R(i,m,"png",{...$,params:{...$.params,maxKb:void 0}});if(o(),!("bytes"in w)){f=w;break}d[`${m.key}.${M.png}`]=w.bytes}if(f){s.push({type:a,failure:f});continue}const p=Y(Object.fromEntries(Object.entries(d).map(([m,w])=>[m,[w,{level:0,mtime:new Date(1980,0,1)}]])));await j(u,p),s.push({type:a,files:[u]});continue}if(a==="pdf"){const d=await at(e,n,it(e),c);await j(u,d.bytes),h+=n.length,t.onProgress?.(Math.min(1,h/r)),s.push({type:a,files:[u],...d.pictured.length>0?{notes:[`${d.pictured.join(", ")} ${d.pictured.length===1?"is a picture":"are pictures"} in the PDF, ${d.pictured.length===1?"its":"their"} text as pixels: an adjustment (a backdrop-filter) is left out where a PDF is printed.`]}:{}});continue}if(a==="psd"){const d=t.params.psd==="psb"?"psb":Q.format,{dir:f,name:p}=q(u),m=P(f,p);await B(m,{recursive:!0});const w=new Set(n.map(l=>`${l.key}.${d}`));for(const l of await A(m))/\.ps[db]$/u.test(l)&&!w.has(l)&&await K(P(m,l),{force:!0});const x=await i.stage.call("psdBoards"),S=[],k=[],g=new Set,y=[];for(const l of n){const F=x.find(b=>b.key===l.key);if(!F){y.push(l.key);continue}const I=P(m,`${l.key}.${d}`),O=await st(i,l,F,d);await j(I,O.bytes),S.push(I);for(const b of O.fidelity){const z=`${b.how}|${b.what}|${b.layer??""}`;g.has(z)||(g.add(z),k.push({...b,...b.layer===void 0?{}:{layer:`${l.key}/${b.layer}`}}))}o()}if(S.length===0){s.push({type:a,failure:{code:"psd-unread",message:`No board's layers could be read for a PSD (${y.join(", ")}).`}});continue}s.push({type:a,files:S,...k.length>0?{fidelity:k}:{},...y.length>0?{notes:y.map(l=>`Board ${l} is not in a PSD: its layers could not be read.`)}:{}});continue}s.push({type:a,failure:{code:"bad-type",message:`An image is not made as ${a}.`,hint:"Its types: png, jpeg, webp, pdf, zip, psd."}})}return s}