allyhub 0.15.2 → 0.17.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 (467) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/commands/add.js +1 -1
  3. package/dist/commands/cloud-tools.js +1 -1
  4. package/dist/commands/dev.js +6 -2
  5. package/dist/commands/doctor.js +3 -3
  6. package/dist/commands/frames/doc.js +1 -1
  7. package/dist/commands/inspect/common.js +3 -3
  8. package/dist/commands/inspect/facts.js +2 -2
  9. package/dist/commands/inspect/index.js +1 -1
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/inspect/uses.js +3 -0
  12. package/dist/commands/mail.js +6 -6
  13. package/dist/commands/render.js +1 -1
  14. package/dist/main.js +8 -8
  15. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-text.js +2 -2
  16. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  17. package/dist/node_modules/@allyhub/audio/dist/index.js +1 -1
  18. package/dist/node_modules/@allyhub/audio/dist/place.js +2 -0
  19. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  20. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  21. package/dist/node_modules/@allyhub/build/dist/content.d.ts +7 -0
  22. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +2 -2
  23. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +17 -0
  24. package/dist/node_modules/@allyhub/build/dist/imports.js +2 -0
  25. package/dist/node_modules/@allyhub/build/dist/index.d.ts +3 -2
  26. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  27. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +1 -1
  28. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  29. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +19 -3
  30. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  31. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +27 -6
  32. package/dist/node_modules/@allyhub/build/dist/uses.js +1 -1
  33. package/dist/node_modules/@allyhub/build/dist/work.d.ts +9 -1
  34. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  35. package/dist/node_modules/@allyhub/build/package.json +1 -1
  36. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  37. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +2 -2
  38. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  39. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  40. package/dist/node_modules/@allyhub/check/package.json +1 -1
  41. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  42. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +12 -3
  43. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  44. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +1 -1
  45. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  46. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  47. package/dist/node_modules/@allyhub/components/package.json +1 -1
  48. package/dist/node_modules/@allyhub/dev-server/dist/deletion.js +2 -0
  49. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  50. package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +1 -1
  51. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  52. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  53. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  54. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -2
  55. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  56. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  57. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  58. package/dist/node_modules/@allyhub/doc/dist/html.js +40 -40
  59. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  60. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  61. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  62. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  63. package/dist/node_modules/@allyhub/doc/dist/write.js +26 -26
  64. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  65. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  66. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  67. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  68. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  69. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  70. package/dist/node_modules/@allyhub/export/package.json +1 -1
  71. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  72. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  73. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  74. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +15 -3
  75. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  76. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  77. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +70 -11
  78. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  79. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +15 -4
  80. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  81. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +4 -0
  82. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  83. package/dist/node_modules/@allyhub/i18n/dist/index.js +1 -1
  84. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  85. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +1 -1
  86. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  87. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +1 -1
  88. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +1 -1
  89. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  90. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +3 -3
  91. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  92. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  93. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  94. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +2 -2
  95. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  96. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  97. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  98. package/dist/node_modules/@allyhub/linkedin-extension/package.json +3 -1
  99. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +1 -1
  100. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  101. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  102. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  103. package/dist/node_modules/@allyhub/media/package.json +1 -1
  104. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  105. package/dist/node_modules/@allyhub/model/package.json +1 -1
  106. package/dist/node_modules/@allyhub/office-extension/LICENSE +241 -0
  107. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  108. package/dist/node_modules/@allyhub/office-extension/markup/csv/data/leads.csv +5 -0
  109. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +19 -0
  110. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  111. package/dist/node_modules/@allyhub/office-extension/markup/document/briefs/launch.docx +0 -0
  112. package/dist/node_modules/@allyhub/office-extension/markup/document/markup.json +11 -0
  113. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  114. package/dist/node_modules/@allyhub/office-extension/markup/presentation/decks/pitch.pptx +0 -0
  115. package/dist/node_modules/@allyhub/office-extension/markup/presentation/markup.json +11 -0
  116. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  117. package/dist/node_modules/@allyhub/office-extension/markup/workbook/data/plans.xlsx +0 -0
  118. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +10 -0
  119. package/dist/node_modules/@allyhub/office-extension/package.json +124 -0
  120. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  121. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +15 -0
  122. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -0
  123. package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
  124. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +9 -0
  125. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.js +2 -0
  126. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +53 -10
  127. package/dist/node_modules/@allyhub/piece/dist/source.js +1 -1
  128. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  129. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  130. package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
  131. package/dist/node_modules/@allyhub/project/package.json +1 -1
  132. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +10 -11
  133. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  134. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +7 -0
  135. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  136. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +9 -0
  137. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  138. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +2 -0
  139. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  140. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +77 -0
  141. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +2 -0
  142. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +39 -9
  143. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  144. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +15 -15
  145. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +441 -5
  146. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  147. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -2
  148. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +4 -1
  149. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  150. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +8 -0
  151. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  152. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +5 -5
  153. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +45 -0
  154. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  155. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +134 -0
  156. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +2 -0
  157. package/dist/node_modules/@allyhub/protocol/dist/place.js +1 -1
  158. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +3 -3
  159. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +47 -0
  160. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +2 -0
  161. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  162. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +52 -5
  163. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  164. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +34 -0
  165. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +2 -0
  166. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +1 -0
  167. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +21 -52
  168. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  169. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +264 -0
  170. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +2 -0
  171. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +18 -0
  172. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +2 -0
  173. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +97 -0
  174. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +2 -0
  175. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +3 -2
  176. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  177. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +26 -20
  178. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  179. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +71 -0
  180. package/dist/node_modules/@allyhub/protocol/dist/turns.js +2 -0
  181. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  182. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  183. package/dist/node_modules/@allyhub/render/package.json +1 -1
  184. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  185. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  186. package/dist/node_modules/@allyhub/runtime/dist/film.js +1 -1
  187. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  188. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  189. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  190. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  191. package/dist/node_modules/@allyhub/scaffold/dist/index.js +4 -4
  192. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  193. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  194. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  195. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  196. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  197. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  198. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  199. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.js +1 -1
  200. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  201. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.js +1 -1
  202. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  203. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  204. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  205. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  206. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  207. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  208. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  209. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  210. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  211. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +1 -1
  212. package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -3
  213. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  214. package/dist/node_modules/@allyhub/slides-core/dist/api.js +1 -1
  215. package/dist/node_modules/@allyhub/slides-core/dist/components.js +1 -1
  216. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  217. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  218. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -1
  219. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  220. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +1 -1
  221. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +2 -2
  222. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
  223. package/dist/node_modules/@allyhub/slides-extension/package.json +2 -2
  224. package/dist/node_modules/@allyhub/slides-pptx/dist/audio-icon.js +1 -1
  225. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  226. package/dist/node_modules/@allyhub/slides-pptx/package.json +5 -1
  227. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  228. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  229. package/dist/node_modules/@allyhub/slides-runtime/dist/item.js +2 -0
  230. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  231. package/dist/node_modules/@allyhub/slides-runtime/dist/slide-css.js +20 -0
  232. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  233. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  234. package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
  235. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +1 -1
  236. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  237. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  238. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +20 -20
  239. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  240. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +17 -2
  241. package/dist/node_modules/@allyhub/telemetry/dist/level.js +2 -2
  242. package/dist/node_modules/@allyhub/telemetry/dist/levels.js +2 -0
  243. package/dist/node_modules/@allyhub/telemetry/dist/scrub.js +1 -1
  244. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  245. package/dist/node_modules/@allyhub/text-extension/markup/markup.json +1 -1
  246. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  247. package/dist/node_modules/@allyhub/text-extension/markup-file/archive/assets.zip +0 -0
  248. package/dist/node_modules/@allyhub/text-extension/markup-file/markup.json +10 -0
  249. package/dist/node_modules/@allyhub/text-extension/package.json +35 -1
  250. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  251. package/dist/node_modules/@allyhub/video-extension/dist/build.js +1 -1
  252. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +3 -3
  253. package/dist/node_modules/@allyhub/video-extension/package.json +2 -2
  254. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  255. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  256. package/dist/node_modules/@allyhub/website/package.json +1 -1
  257. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  258. package/dist/node_modules/@allyhub/x-extension/package.json +3 -1
  259. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +1 -1
  260. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  261. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  262. package/dist/package.json +13 -12
  263. package/dist/project.js +1 -1
  264. package/dist/telemetry.js +3 -3
  265. package/dist/text/console-text.js +2 -2
  266. package/dist/works.js +1 -1
  267. package/editor-web/assets/{abnfDiagram-WEYOIA3C-9z0ZEYUq.js → abnfDiagram-WEYOIA3C-CHNpVSPv.js} +1 -1
  268. package/editor-web/assets/{architecture-WOLXFQ4H-ELMO_PA6.js → architecture-WOLXFQ4H-gPsJqQwV.js} +1 -1
  269. package/editor-web/assets/{architectureDiagram-ZHVYKT53-C0yuCWU3.js → architectureDiagram-ZHVYKT53-CEIDcC6r.js} +1 -1
  270. package/editor-web/assets/arrow-down-B8VUPCGi.js +1 -0
  271. package/editor-web/assets/arrow-up-Ds4juY8X.js +1 -0
  272. package/editor-web/assets/article-BHTjq0_Y.js +3 -0
  273. package/editor-web/assets/article-DfELjJ2o.js +7 -0
  274. package/editor-web/assets/{audio-lines-1s1eRs4Q.js → audio-lines-PZj77e7t.js} +1 -1
  275. package/editor-web/assets/bar-button-J9vbfzTx.js +1 -0
  276. package/editor-web/assets/{blockDiagram-RJAE7QA3-vi6JOg4o.js → blockDiagram-RJAE7QA3-CUzEGVet.js} +4 -4
  277. package/editor-web/assets/browser-C1XuTMlp.js +1 -0
  278. package/editor-web/assets/{c4Diagram-XDPPPE54-Agf_H8uS.js → c4Diagram-XDPPPE54-CB94NR9s.js} +1 -1
  279. package/editor-web/assets/calc-worker-BdHh5LXM.js +45 -0
  280. package/editor-web/assets/channel-DCDCx5Es.js +1 -0
  281. package/editor-web/assets/chart-amT4lgX3.js +2 -0
  282. package/editor-web/assets/chart-file-CfbWK9l1.js +1 -0
  283. package/editor-web/assets/{chart-no-axes-column-CJmeYOSo.js → chart-no-axes-column-Be0lFcGF.js} +1 -1
  284. package/editor-web/assets/{chunk-2E7WHVMD-XalaZaha.js → chunk-2E7WHVMD-DFYo_Boi.js} +1 -1
  285. package/editor-web/assets/{chunk-4EMNKR2T-DUlRZkCS.js → chunk-4EMNKR2T-CLLjmweX.js} +1 -1
  286. package/editor-web/assets/{chunk-55XCU76K-DTa7whGr.js → chunk-55XCU76K-CkwQ_3m1.js} +1 -1
  287. package/editor-web/assets/{chunk-7S6XSTFO-85zCPzj0.js → chunk-7S6XSTFO-V-AvHpAB.js} +1 -1
  288. package/editor-web/assets/{chunk-AQDTSKZB-CWBseIyh.js → chunk-AQDTSKZB-PjHyYpb8.js} +1 -1
  289. package/editor-web/assets/chunk-DSNLSHJZ-QaczBS3J.js +127 -0
  290. package/editor-web/assets/{chunk-HAGFOTED-DFWda2Rk.js → chunk-HAGFOTED-aLaQB5Xu.js} +1 -1
  291. package/editor-web/assets/{chunk-HNE4Q36P-aXibFitC.js → chunk-HNE4Q36P-De3ftDQR.js} +1 -1
  292. package/editor-web/assets/{chunk-NQOKRVIF-CtJUuFdN.js → chunk-NQOKRVIF-CrhVQyvP.js} +17 -17
  293. package/editor-web/assets/{chunk-UHW7PFBP-B6QKSKWE.js → chunk-UHW7PFBP-BFmZ5ZLn.js} +1 -1
  294. package/editor-web/assets/{chunk-VQ5W62QI-CF6Al55P.js → chunk-VQ5W62QI-CzppUHLA.js} +1 -1
  295. package/editor-web/assets/{chunk-WQQL4CDK-w2TKLkyw.js → chunk-WQQL4CDK-BrAU7V6v.js} +1 -1
  296. package/editor-web/assets/{chunk-YZO67HFG-DVGOATM3.js → chunk-YZO67HFG-BSiF71qj.js} +1 -1
  297. package/editor-web/assets/{chunk-ZAUX2LTX-Cq7MMjDP.js → chunk-ZAUX2LTX-BJc4r5b1.js} +1 -1
  298. package/editor-web/assets/{chunk-ZCHMQSOR-GMW_lBh4.js → chunk-ZCHMQSOR-CkGTuehB.js} +1 -1
  299. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-C7AK5Bkj.js → classDiagram-v2-4MYWR3UA-Byxc7J88.js} +7 -7
  300. package/editor-web/assets/code-CD-CbJG9.js +1 -0
  301. package/editor-web/assets/collaborator-BU4qU7O3.js +1 -0
  302. package/editor-web/assets/{copy-DvOiv9Ra.js → copy-CuJSs0nI.js} +1 -1
  303. package/editor-web/assets/{createLucideIcon-REX213UO.js → createLucideIcon-lm_6n8YT.js} +1 -1
  304. package/editor-web/assets/csv-Bwre9FdI.js +11 -0
  305. package/editor-web/assets/{cynefin-EF2NZ3EQ-ZnDieQsN.js → cynefin-EF2NZ3EQ-BSxkVbdf.js} +1 -1
  306. package/editor-web/assets/{cynefinDiagram-WF24UDRP-BrukKIBF.js → cynefinDiagram-WF24UDRP-IkCgARNs.js} +1 -1
  307. package/editor-web/assets/{dagre-NK4GIZVX-DfO0S2p_.js → dagre-NK4GIZVX-9PgeH6nY.js} +1 -1
  308. package/editor-web/assets/deck-tTzKONci.js +1 -0
  309. package/editor-web/assets/{diagram-CBK3MWTC-D43RLesi.js → diagram-CBK3MWTC-DRzeg3Ds.js} +1 -1
  310. package/editor-web/assets/{diagram-I5XIIV2D-bA1B1QQG.js → diagram-I5XIIV2D-B_zeKMN6.js} +1 -1
  311. package/editor-web/assets/{diagram-ODIL2UCW-DAdXBD2K.js → diagram-ODIL2UCW-FFm0O8SN.js} +1 -1
  312. package/editor-web/assets/{diagram-PFBEJUXE-C_KyEaws.js → diagram-PFBEJUXE-DrtCT8OA.js} +1 -1
  313. package/editor-web/assets/{diagram-RJA3I4VV-oXTtENF7.js → diagram-RJA3I4VV-DtxJ3V0q.js} +1 -1
  314. package/editor-web/assets/{diagram-TYUNFSNR-Czupe6mO.js → diagram-TYUNFSNR-DmxF_8H_.js} +16 -16
  315. package/editor-web/assets/dist-BEpzsYn_.js +6 -0
  316. package/editor-web/assets/dist-BUD4ywMB.js +18 -0
  317. package/editor-web/assets/{dist-BrGYx10E.js → dist-Bd8IxQPP.js} +1 -1
  318. package/editor-web/assets/dist-C21CkR7Z.js +531 -0
  319. package/editor-web/assets/dist-C56mWAec.js +5 -0
  320. package/editor-web/assets/dist-CAb3W9_P.js +43 -0
  321. package/editor-web/assets/dist-CEknsRDd.js +24 -0
  322. package/editor-web/assets/dist-CbZAznNW.js +19 -0
  323. package/editor-web/assets/{dist-2lNSE-G_.js → dist-D3C6FyrO.js} +1 -1
  324. package/editor-web/assets/dist-DDzjbKIg.js +4 -0
  325. package/editor-web/assets/dist-DaEbElXI.js +3 -0
  326. package/editor-web/assets/dist-Dr3o4vee.js +1 -0
  327. package/editor-web/assets/{dist-BtRMClDw.js → dist-DruvDNQe.js} +1 -1
  328. package/editor-web/assets/dist-JLyDtl9X.js +1 -0
  329. package/editor-web/assets/dist-PBbWAsrV.js +17 -0
  330. package/editor-web/assets/dist-ZZlQa66J.js +1 -0
  331. package/editor-web/assets/dist-bQKpw3Zz.js +16 -0
  332. package/editor-web/assets/dist-d4dayaWE.js +17 -0
  333. package/editor-web/assets/docx-draw-9Q_fArBC.js +4 -0
  334. package/editor-web/assets/docx-preview-pcg9ioe3.js +21 -0
  335. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BOhNZmtp.js → ebnfDiagram-V4P3TTPT-DSX1Aoty.js} +1 -1
  336. package/editor-web/assets/{elk-QONTBCTQ-DoZH3OoE.js → elk-QONTBCTQ-C7gy9q56.js} +1 -1
  337. package/editor-web/assets/{erDiagram-KYQIGQAA-Bv0KDJi4.js → erDiagram-KYQIGQAA-CKx_HoY4.js} +2 -2
  338. package/editor-web/assets/esm-BZb5QMQf.js +21 -0
  339. package/editor-web/assets/{eventmodeling-K75KTNOO-C-_xzqfj.js → eventmodeling-K75KTNOO-DL4HvSrd.js} +1 -1
  340. package/editor-web/assets/{file-exclamation-point-C_fX4fpI.js → file-exclamation-point-_L3ElCJ5.js} +1 -1
  341. package/editor-web/assets/file-question-mark-DlIjUK37.js +1 -0
  342. package/editor-web/assets/flowDiagram-IUGLLWBU-BUnRtJ8q.js +1 -0
  343. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CAuJlaZX.js → ganttDiagram-R7GPNTJY-N-AP4slN.js} +1 -1
  344. package/editor-web/assets/{gitGraph-VSP46ZUC-Dx2xLi5C.js → gitGraph-VSP46ZUC-BKRGJKWm.js} +1 -1
  345. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DHsk_UOT.js → gitGraphDiagram-PDYL7XHY-ClwL7w2_.js} +1 -1
  346. package/editor-web/assets/{group-pebHQTdP.js → group-BdrTp7gi.js} +1 -1
  347. package/editor-web/assets/hint-rlht0uxG.js +1 -0
  348. package/editor-web/assets/index-BedbINE5.css +2 -0
  349. package/editor-web/assets/index-DG2nHq4D.js +28 -0
  350. package/editor-web/assets/{info-OHQRW6UA-CnKQHx5m.js → info-OHQRW6UA-DpcY8t23.js} +1 -1
  351. package/editor-web/assets/{infoDiagram-MVDRKAX5-ibAVFw_2.js → infoDiagram-MVDRKAX5-ChtmtWni.js} +1 -1
  352. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-C1OCHt3y.js → ishikawaDiagram-HPEHV2GE-BZNTuG_F.js} +1 -1
  353. package/editor-web/assets/iso-ahTwmFwH.js +56 -0
  354. package/editor-web/assets/{italic-CtlNOXN9.js → italic-zw4_eUNF.js} +1 -1
  355. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BDdqMOM1.js → journeyDiagram-BOSHW7O7-C3uVmZbL.js} +1 -1
  356. package/editor-web/assets/{kanban-definition-FNSA4HC5-CSAS_zGn.js → kanban-definition-FNSA4HC5-puEhftGG.js} +4 -4
  357. package/editor-web/assets/{link-CW2KxKT_.js → link-DopSU3aa.js} +1 -1
  358. package/editor-web/assets/{mermaid-parser.core-DTLyYXbn.js → mermaid-parser.core-Bw8re-WE.js} +3 -3
  359. package/editor-web/assets/mermaid.core-Cc2GIqBr.js +44 -0
  360. package/editor-web/assets/{mindmap-definition-6OY57UG3-DSWHcglH.js → mindmap-definition-6OY57UG3-C6MUl_S_.js} +3 -3
  361. package/editor-web/assets/minus-CbPnUIOy.js +1 -0
  362. package/editor-web/assets/{packet-JDAUHWVQ-_k1BF29s.js → packet-JDAUHWVQ-C75RnvC5.js} +1 -1
  363. package/editor-web/assets/{pegDiagram-ECIUJNBX-B22YyWAa.js → pegDiagram-ECIUJNBX-ChjmsdV4.js} +1 -1
  364. package/editor-web/assets/{pie-XZMESJXO-CSwV32hj.js → pie-XZMESJXO-BaKxJQpj.js} +1 -1
  365. package/editor-web/assets/{pieDiagram-GNMPY74T-rSFNeWnq.js → pieDiagram-GNMPY74T-CT2ez8pr.js} +1 -1
  366. package/editor-web/assets/progress-CwKcXARv.js +6 -0
  367. package/editor-web/assets/props-form-D5oKHfpk.js +1 -0
  368. package/editor-web/assets/purify.es-B9ve_eFf.js +3 -0
  369. package/editor-web/assets/{quadrantDiagram-D57K4MC3-Xrntfg4j.js → quadrantDiagram-D57K4MC3-BJItlTfk.js} +1 -1
  370. package/editor-web/assets/{radar-ABXABTNO-Dwq5qiNw.js → radar-ABXABTNO-DnLzBlTo.js} +1 -1
  371. package/editor-web/assets/{railroad-I3PHUGI6-sIUGWcZh.js → railroad-I3PHUGI6-D5hj6Yv3.js} +1 -1
  372. package/editor-web/assets/{railroad-abnf-LNEFI6M7-1rWlT9BX.js → railroad-abnf-LNEFI6M7-DUZlZoPu.js} +1 -1
  373. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DWdkzEHc.js → railroad-ebnf-DWYD2UWJ-CDyyDC6d.js} +1 -1
  374. package/editor-web/assets/{railroad-peg-JR7BVNR7-CME0JBbV.js → railroad-peg-JR7BVNR7-CC3ImNnT.js} +1 -1
  375. package/editor-web/assets/{railroadDiagram-Y72NRBL7-Ch4BpP22.js → railroadDiagram-Y72NRBL7-Bjw-8Se5.js} +1 -1
  376. package/editor-web/assets/{react-Bk7NnOLX.js → react-Edyoga_4.js} +1 -1
  377. package/editor-web/assets/{requirementDiagram-EQYSW5RA-CgE-x3wN.js → requirementDiagram-EQYSW5RA-CDFnuEIO.js} +1 -1
  378. package/editor-web/assets/row-C_svyL8o.js +1 -0
  379. package/editor-web/assets/{sankeyDiagram-SY24JHO5-DBf4G6n3.js → sankeyDiagram-SY24JHO5-CQPVLY1w.js} +1 -1
  380. package/editor-web/assets/schemas-moE_A7Nj.js +1 -0
  381. package/editor-web/assets/{scissors-BURkYWPv.js → scissors-B_xOiUhd.js} +1 -1
  382. package/editor-web/assets/{search-jKDvFIEU.js → search-Ba2BbT6T.js} +1 -1
  383. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-Bz07CoUS.js → sequenceDiagram-BLEHNHQU-BQzuLmBX.js} +1 -1
  384. package/editor-web/assets/{session-CUCSWPTE.js → session-s1I85rox.js} +1 -1
  385. package/editor-web/assets/{sigma-CY2Chbro.js → sigma-DSUsJhMn.js} +1 -1
  386. package/editor-web/assets/slides-oQ_C0SVJ.js +1 -0
  387. package/editor-web/assets/snapshots-BPJKywuN.js +1 -0
  388. package/editor-web/assets/{sound-DUCxe9eC.js → sound-bTlco_K3.js} +1 -1
  389. package/editor-web/assets/split-7CVjIkSU.js +3 -0
  390. package/editor-web/assets/square-arrow-out-up-right-DF5dvsSp.js +1 -0
  391. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DuqAmDPP.js → stateDiagram-v2-A6IESKWZ-DOuageUf.js} +7 -7
  392. package/editor-web/assets/{sticky-note-C5qUDHhC.js → sticky-note-BdkIu5_D.js} +1 -1
  393. package/editor-web/assets/{strikethrough-DP-7tMz0.js → strikethrough-BwXWi4zg.js} +1 -1
  394. package/editor-web/assets/surface-DtCjIlrq.js +1 -0
  395. package/editor-web/assets/svg-CWIBMIQ9.js +1 -0
  396. package/editor-web/assets/swatch-DhztHwPU.js +1 -0
  397. package/editor-web/assets/{swimlanes-B3ENRKFQ-C7sOL6rB.js → swimlanes-B3ENRKFQ-CXKkok7X.js} +1 -1
  398. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-C3Car2M0.js +8 -0
  399. package/editor-web/assets/switch-8MU4Nfxe.js +1 -0
  400. package/editor-web/assets/{syntax-DSsHrzWF.js → syntax-CU_WPKxt.js} +1 -1
  401. package/editor-web/assets/{table-CTjNpE4W.js → table-DRbddzx0.js} +1 -1
  402. package/editor-web/assets/tabs-CiF1N-pL.js +1 -0
  403. package/editor-web/assets/tag-CIfWT8B_.js +1 -0
  404. package/editor-web/assets/text-align-start-Cic2-TLh.js +1 -0
  405. package/editor-web/assets/textarea-D7TnPwv1.js +1 -0
  406. package/editor-web/assets/{timeline-definition-JXYKGLGB-CaLYz9mc.js → timeline-definition-JXYKGLGB-DgAjAeZp.js} +3 -3
  407. package/editor-web/assets/{treeView-D4JQ5SDB-D1P1Kyxc.js → treeView-D4JQ5SDB-C0Xvnhck.js} +1 -1
  408. package/editor-web/assets/{treemap-SAJKECNS-2YaFL53t.js → treemap-SAJKECNS-aXfKAeSX.js} +1 -1
  409. package/editor-web/assets/{undo-2-DUGGyBdX.js → undo-2-C47jrRp5.js} +1 -1
  410. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-uYdbUhUS.js → usecaseDiagram-WPOLBNNX-CvUlBa-L.js} +1 -1
  411. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DHepmX4t.js → vennDiagram-Q3Y3IDCW-qMJ1iCxs.js} +3 -3
  412. package/editor-web/assets/{video-Xl-OaXRc.js → video-DQrjo1TI.js} +1 -1
  413. package/editor-web/assets/{wardley-7MLQ67FV-Dx0MOPV1.js → wardley-7MLQ67FV-DEdnH0by.js} +1 -1
  414. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BX8ElwDW.js → wardleyDiagram-IVAIDKWA-Bt-B2hQ5.js} +1 -1
  415. package/editor-web/assets/{whole-word-6DliXke2.js → whole-word-D3ZAtnkw.js} +1 -1
  416. package/editor-web/assets/{words-B2FXYyeZ.js → words-0Ww2RyT4.js} +1 -1
  417. package/editor-web/assets/{words-DFIhHhHF.js → words-XlXG79Ur.js} +1 -1
  418. package/editor-web/assets/workbook-FSSUiIp9.js +45 -0
  419. package/editor-web/assets/x-DlhyIKuu.js +41 -0
  420. package/editor-web/assets/{xychartDiagram-4URNHDU4-DoWQRJUS.js → xychartDiagram-4URNHDU4-DV4bSzTb.js} +1 -1
  421. package/editor-web/assets/{zoom-in-C4lxmIDE.js → zoom-in-PgsC94hP.js} +1 -1
  422. package/editor-web/index.html +8 -6
  423. package/package.json +2 -2
  424. package/editor-web/assets/arrow-down-DzZjFrBL.js +0 -1
  425. package/editor-web/assets/arrow-up-hdmh9LVD.js +0 -1
  426. package/editor-web/assets/article-DHFgHYjv.js +0 -3
  427. package/editor-web/assets/article-Dt9id9Y9.js +0 -7
  428. package/editor-web/assets/button-BVQH7zxz.js +0 -41
  429. package/editor-web/assets/calc-worker-jImBXoeb.js +0 -45
  430. package/editor-web/assets/channel-Dkg198L0.js +0 -1
  431. package/editor-web/assets/chart-BC3kUUDD.js +0 -2
  432. package/editor-web/assets/chunk-DSNLSHJZ-BFnyvrWg.js +0 -129
  433. package/editor-web/assets/code-BID_OoRp.js +0 -1
  434. package/editor-web/assets/collaborator-2qfw-8OJ.js +0 -1
  435. package/editor-web/assets/dist-5HNrQ9AU.js +0 -45
  436. package/editor-web/assets/dist-BPecIPz6.js +0 -530
  437. package/editor-web/assets/dist-BXJKASX4.js +0 -24
  438. package/editor-web/assets/dist-BeDRTqQ8.js +0 -38
  439. package/editor-web/assets/dist-BlL-4sl3.js +0 -43
  440. package/editor-web/assets/dist-BuqBg8k8.js +0 -1
  441. package/editor-web/assets/dist-BwW08gSh.js +0 -1
  442. package/editor-web/assets/dist-C30Thvb3.js +0 -1
  443. package/editor-web/assets/dist-Cj5AmpVb.js +0 -5
  444. package/editor-web/assets/dist-CjjnDOa8.js +0 -3
  445. package/editor-web/assets/dist-D7ur8721.js +0 -6
  446. package/editor-web/assets/dist-DOHhp09C.js +0 -4
  447. package/editor-web/assets/dist-LhFEYZza.js +0 -16
  448. package/editor-web/assets/flowDiagram-IUGLLWBU-C7ZmHJZW.js +0 -1
  449. package/editor-web/assets/hint-mQB8slJ2.js +0 -1
  450. package/editor-web/assets/index-BGAXezRR.js +0 -28
  451. package/editor-web/assets/index-Br4a-QEv.css +0 -2
  452. package/editor-web/assets/mermaid.core-B8478wZ1.js +0 -44
  453. package/editor-web/assets/minus-D1tgAHbU.js +0 -1
  454. package/editor-web/assets/progress-udl4pNsP.js +0 -6
  455. package/editor-web/assets/props-form-B6mYjTgZ.js +0 -1
  456. package/editor-web/assets/row-dgHEAE7h.js +0 -1
  457. package/editor-web/assets/schemas-B89k2jEC.js +0 -1
  458. package/editor-web/assets/slides-BdaWgL_N.js +0 -1
  459. package/editor-web/assets/snapshots-CTS2iez5.js +0 -56
  460. package/editor-web/assets/split-mDSkdQkd.js +0 -3
  461. package/editor-web/assets/surface-D9qJjJQL.js +0 -1
  462. package/editor-web/assets/svg-nJtFNJ-7.js +0 -1
  463. package/editor-web/assets/swatch-S8YuBYyj.js +0 -1
  464. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CQ2aWYP-.js +0 -8
  465. package/editor-web/assets/switch-D5kPl2jO.js +0 -1
  466. package/editor-web/assets/tabs-C0AHyuE5.js +0 -1
  467. package/editor-web/assets/textarea-mzr9Kfuf.js +0 -1
@@ -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 _}from"./script.js";const h=o.string().regex(_,"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","fly-in","float-in","split","wipe","zoom","disappear","fade-out","fly-out","float-out","split-out","wipe-out","zoom-out","pulse","grow-shrink","spin","transparency","path"],ANIMATE_TEXT=["word","letter"],ANIMATION_REPEATS=["until-next-click","until-end-of-slide"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right","from-top-right","from-bottom-right","from-top-left","from-bottom-left","vertical-out","vertical-in","horizontal-out","horizontal-in","in","out","rotate","up","down","clockwise","counterclockwise","both","horizontal","vertical"],LINE_DASHES=["solid","sysDot","sysDash","dash","dashDot","lgDash","lgDashDot","lgDashDotDot","dot","sysDashDot","sysDashDotDot"],LINE_CAPS=["flat","rnd","sq"],LINE_JOINS=["round","bevel","miter"],LINE_COMPOUNDS=["sng","dbl","thickThin","thinThick","tri"],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()}),MAPPED_COLORS=["tx1","bg1","tx2","bg2"],COLOR_NAMES=[...THEME_COLORS,...MAPPED_COLORS],COLOR_TRANSFORMS=["tint","shade","lumMod","lumOff","lum","satMod","satOff","sat","hueMod","hueOff","hue","alpha","alphaMod","alphaOff"];const C=`(?:${COLOR_NAMES.join("|")})`,k=`(?:${COLOR_TRANSFORMS.join("|")}) -?\\d+(?:\\.\\d+)?(?:%|°)`,A=new RegExp(`^(${C}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),v=new RegExp(`^(${C}|#[0-9A-Fa-f]{6})((?: ${k})+)$`,"u"),O=/^#[0-9A-Fa-f]{6}$/u,g=t=>COLOR_NAMES.includes(t),E=t=>COLOR_TRANSFORMS.includes(t),y=new Set(["hue","hueOff"]);export function colorOfFile(t){if(g(t))return t;if(O.test(t))return{rgb:t.toUpperCase()};const e=v.exec(t);if(e){const[,l="",p=""]=e,m=[];for(const w of p.matchAll(/ (\w+) (-?[\d.]+)(%|°)/gu)){const[,u="",D="",x]=w;if(!E(u)||x==="°"!==y.has(u))return;const S=Number(D);m.push({name:u,value:x==="%"?Math.round(S*1e3)/1e5:S})}return g(l)?{theme_color:l,transforms:m}:{rgb:l.toUpperCase(),transforms:m}}const r=A.exec(t),[,n="",i,s=""]=r??[],a=Math.round(Number(s)*1e3);if(!(!r||!g(n)||a<=0||a>1e5))return{theme_color:n,brightness:(i==="lighter"?a:-a)/1e5}}const P=t=>y.has(t.name)?`${t.name} ${String(Math.round(t.value*1e3)/1e3)}°`:`${t.name} ${String(Math.round(t.value*1e5)/1e3)}%`;export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.transforms&&t.transforms.length>0?`${t.rgb} ${t.transforms.map(P).join(" ")}`:t.rgb;if("transforms"in t)return t.transforms.length===0?t.theme_color:`${t.theme_color} ${t.transforms.map(P).join(" ")}`;const e=Math.round(Math.abs(t.brightness)*1e5)/1e3;return e===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(e)}%`}const d=`A colour is one of the theme's (${THEME_COLORS.join(", ")}) or the colour map's (${MAPPED_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), #RRGGBB, or one of them with DrawingML's transforms in order ("accent1 lumMod 75% lumOff 25%", "#4472C4 alpha 50%", "accent2 hueOff 30°": ${COLOR_TRANSFORMS.join(", ")}).`;export const ColorFileSchema=o.union([o.enum(COLOR_NAMES),o.string().regex(A,d),o.string().regex(O,d),o.string().regex(v,d)]).refine(t=>colorOfFile(t)!==void 0,d),NUMBERINGS=["alphaLcParenBoth","alphaUcParenBoth","alphaLcParenR","alphaUcParenR","alphaLcPeriod","alphaUcPeriod","arabicParenBoth","arabicParenR","arabicPeriod","arabicPlain","romanLcParenBoth","romanUcParenBoth","romanLcParenR","romanUcParenR","romanLcPeriod","romanUcPeriod","circleNumDbPlain","circleNumWdBlackPlain","circleNumWdWhitePlain","arabicDbPeriod","arabicDbPlain","ea1ChsPeriod","ea1ChsPlain","ea1ChtPeriod","ea1ChtPlain","ea1JpnChsDbPeriod","ea1JpnKorPlain","ea1JpnKorPeriod","arabic1Minus","arabic2Minus","hebrew2Minus","thaiAlphaPeriod","thaiAlphaParenR","thaiAlphaParenBoth","thaiNumPeriod","thaiNumParenR","thaiNumParenBoth","hindiAlphaPeriod","hindiNumPeriod","hindiNumParenR","hindiAlpha1Period"],UNDERLINES=["sng","dbl","heavy","dotted","dottedHeavy","dash","dashHeavy","dashLong","dashLongHeavy","dotDash","dotDashHeavy","dotDotDash","dotDotDashHeavy","wavy","wavyHeavy","wavyDbl","words"],STRIKES=["sngStrike","dblStrike"],CAPS=["all","small","none"],TEXT_ORIENTATIONS=["horz","vert","vert270","eaVert","wordArtVert","wordArtVertRtl","mongolianVert"],TEXT_ANCHORS=["t","ctr","b"],ParagraphSpaceSchema=o.union([o.number().min(0).max(1584),o.object({lines:o.number().min(0).max(100)})]),TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.union([o.boolean(),o.enum(UNDERLINES)]).optional(),strike:o.union([o.boolean(),o.enum(STRIKES)]).optional(),caps:o.enum(CAPS).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:ParagraphSpaceSchema.optional(),space_after:ParagraphSpaceSchema.optional(),anchor:o.enum(TEXT_ANCHORS).optional(),orientation:o.enum(TEXT_ORIENTATIONS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional(),bullet_color:ColorFileSchema.optional(),bullet_size:o.number().min(.25).max(4).optional(),start_at:o.int().min(1).max(32767).optional()});const T=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"}),b=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(b),o.record(o.string(),b)]));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"],CHART_COMBINED_TYPES=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"];const f=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(),type:o.enum(CHART_COMBINED_TYPES).optional(),secondary:o.boolean().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:f.optional(),category_axis:f.optional(),secondary_axis:f.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 GRADIENT_PATHS=["circle","rect","shape"],GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),path:o.enum(GRADIENT_PATHS).optional(),focus:o.strictObject({left:o.number().optional(),top:o.number().optional(),right:o.number().optional(),bottom:o.number().optional()}).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),PATTERNS=["pct5","pct10","pct20","pct25","pct30","pct40","pct50","pct60","pct70","pct75","pct80","pct90","horz","vert","ltHorz","ltVert","dkHorz","dkVert","narHorz","narVert","dashHorz","dashVert","cross","dnDiag","upDiag","ltDnDiag","ltUpDiag","dkDnDiag","dkUpDiag","wdDnDiag","wdUpDiag","dashDnDiag","dashUpDiag","diagCross","smCheck","lgCheck","smGrid","lgGrid","dotGrid","smConfetti","lgConfetti","horzBrick","diagBrick","solidDmnd","openDmnd","dotDmnd","plaid","sphere","weave","divot","shingle","wave","trellis","zigZag"],PatternSchema=o.strictObject({preset:o.enum(PATTERNS),fg:ColorFileSchema.optional(),bg:ColorFileSchema.optional()}),TILE_ALIGNMENTS=["tl","t","tr","l","ctr","r","bl","b","br"],PictureFillSchema=o.strictObject({path:o.string().min(1),tile:o.strictObject({scale_x:o.number().positive().max(100).optional(),scale_y:o.number().positive().max(100).optional(),x:o.number().optional(),y:o.number().optional(),align:o.enum(TILE_ALIGNMENTS).optional()}).optional(),transparency:c.optional()}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(e=>e!==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()}),InnerShadowSchema=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()}),GlowSchema=o.strictObject({color:ColorFileSchema.optional(),size:o.number().min(0).max(150).optional(),transparency:c.optional()}),ReflectionSchema=o.strictObject({transparency:c.optional(),size:c.optional(),distance:o.number().min(0).max(100).optional(),blur:o.number().min(0).max(100).optional()});const R=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const MergedCellsSchema=o.object({row:o.int().min(0),column:o.int().min(0),rows:o.int().min(1).optional(),columns:o.int().min(1).optional()});function N(t,e,r,n){const i=t.rows??1,s=t.columns??1;if(i*s<2)return"A merge takes two cells or more.";if(t.row+i>e||t.column+s>r)return`A merge from row ${String(t.row)}, column ${String(t.column)} goes past the table's ${String(e)} rows and ${String(r)} columns.`;for(let a=t.row;a<t.row+i;a++)for(let l=t.column;l<t.column+s;l++){const p=`${String(a)},${String(l)}`;if(n.has(p))return`Two merges take the cell at row ${String(a)}, column ${String(l)}.`;n.add(p)}}export const MEDIA_STARTS=["auto","on-click"],PlaybackSchema=o.strictObject({start:o.enum(MEDIA_STARTS).optional(),trim:o.strictObject({start:o.number().min(0).optional(),end:o.number().positive().optional()}).refine(t=>t.start===void 0||t.end===void 0||t.end>t.start,{message:"A trim ends after it starts."}).optional(),loop:o.boolean().optional(),volume:o.number().min(0).max(1).optional(),fullscreen:o.boolean().optional(),hide:o.boolean().optional()}),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:R.optional(),end:R.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),pattern:PatternSchema.optional(),picture_fill:PictureFillSchema.optional(),shadow:ShadowSchema.optional(),inner_shadow:InnerShadowSchema.optional(),glow:GlowSchema.optional(),soft_edges:o.number().positive().max(100).optional(),reflection:ReflectionSchema.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_cap:o.enum(LINE_CAPS).optional(),line_join:o.enum(LINE_JOINS).optional(),line_compound:o.enum(LINE_COMPOUNDS).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:T.optional(),movie:o.string().min(1).optional(),audio:o.string().min(1).optional(),poster:o.number().min(0).optional(),playback:PlaybackSchema.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),merged:o.array(MergedCellsSchema).optional(),style:o.string().min(1).optional(),first_row:o.boolean().optional(),last_row:o.boolean().optional(),first_col:o.boolean().optional(),last_col:o.boolean().optional(),horz_banding:o.boolean().optional(),vert_banding:o.boolean().optional()}).superRefine((t,e)=>{const r=new Set;(t.merged??[]).forEach((n,i)=>{const s=N(n,t.rows.length,t.columns.length,r);s!==void 0&&e.addIssue({code:"custom",path:["merged",i],message:s})})}).optional(),chart:ChartSchema.optional(),link:o.string().trim().min(1).optional(),group:o.string().regex(/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/u,"A group is a name of letters, digits, _ and -; a group in a group is outer/inner.").optional(),locked:o.literal(!0).optional(),component:o.union([h,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(),b).optional(),dur:o.number().positive().optional()}),groupLevels=t=>t.split("/").map((e,r,n)=>n.slice(0,r+1).join("/")),inGroup=(t,e)=>t!==void 0&&(t===e||t.startsWith(`${e}/`)),SHOW_JUMPS=["firstslide","lastslide","nextslide","previousslide","endshow"],showJumpLink=t=>`ppaction://hlinkshowjump?jump=${t}`;export function showJumpOf(t){const e=/^ppaction:\/\/hlinkshowjump\?jump=([a-z]+)$/u.exec(t);return SHOW_JUMPS.find(r=>r===e?.[1])}export const slideLinkOf=t=>t.startsWith("#")&&t.length>1?t.slice(1):void 0,SHAPE_KINDS=["textbox","picture","movie","audio","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","split","reveal","cut","cover","uncover","zoom","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),through_black:o.literal(!0).optional(),duration:o.number().min(0).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(),amount:o.number().positive().max(36e3).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(),animate_text:o.enum(ANIMATE_TEXT).optional(),text_delay:o.number().min(0).max(100).optional(),repeat:o.union([o.number().min(1).max(1e4),o.enum(ANIMATION_REPEATS)]).optional(),rewind:o.literal(!0).optional()}),SlideSchema=o.strictObject({id:h,layout:o.string().min(1).optional(),generate:h.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(),section:o.string().trim().min(1).max(255).optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,e)=>{const r=new Set;t.slides.forEach((n,i)=>{r.has(n.id)&&e.addIssue({code:"custom",path:["slides",i,"id"],message:`Two slides are "${n.id}".`}),r.add(n.id),(n.layout===void 0?0:1)+(n.generate===void 0?0:1)!==1&&e.addIssue({code:"custom",path:["slides",i],message:`Slide ${n.id} has a layout or a generator: one of them.`}),n.hidden!==void 0&&n.generate===void 0&&n.hidden!==!0&&e.addIssue({code:"custom",path:["slides",i,"hidden"],message:`Slide ${n.id} is hidden (true); a list of ids is a generated block's.`});for(const[a,l]of Object.entries(n.shapes??{})){const p=SHAPE_KINDS.filter(u=>l[u]!==void 0);p.length>1&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],message:`Shape ${a} is one kind of shape, not ${p.join(" and ")}.`});const m=a.includes("/")?a.split("/"):[a];(!(m.length<=2&&m.every(u=>_.test(u)))||m.length===2&&n.generate===void 0)&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],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 _}from"./script.js";const h=o.string().regex(_,"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","fly-in","float-in","split","wipe","zoom","disappear","fade-out","fly-out","float-out","split-out","wipe-out","zoom-out","pulse","grow-shrink","spin","transparency","path"],ANIMATE_TEXT=["word","letter"],ANIMATION_REPEATS=["until-next-click","until-end-of-slide"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right","from-top-right","from-bottom-right","from-top-left","from-bottom-left","vertical-out","vertical-in","horizontal-out","horizontal-in","in","out","rotate","up","down","clockwise","counterclockwise","both","horizontal","vertical"],LINE_DASHES=["solid","sysDot","sysDash","dash","dashDot","lgDash","lgDashDot","lgDashDotDot","dot","sysDashDot","sysDashDotDot"],LINE_CAPS=["flat","rnd","sq"],LINE_JOINS=["round","bevel","miter"],LINE_COMPOUNDS=["sng","dbl","thickThin","thinThick","tri"],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()}),MAPPED_COLORS=["tx1","bg1","tx2","bg2"],COLOR_NAMES=[...THEME_COLORS,...MAPPED_COLORS],COLOR_TRANSFORMS=["tint","shade","lumMod","lumOff","lum","satMod","satOff","sat","hueMod","hueOff","hue","alpha","alphaMod","alphaOff"];const C=`(?:${COLOR_NAMES.join("|")})`,k=`(?:${COLOR_TRANSFORMS.join("|")}) -?\\d+(?:\\.\\d+)?(?:%|°)`,A=new RegExp(`^(${C}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),v=new RegExp(`^(${C}|#[0-9A-Fa-f]{6})((?: ${k})+)$`,"u"),O=/^#[0-9A-Fa-f]{6}$/u,g=t=>COLOR_NAMES.includes(t),E=t=>COLOR_TRANSFORMS.includes(t),y=new Set(["hue","hueOff"]);export function colorOfFile(t){if(g(t))return t;if(O.test(t))return{rgb:t.toUpperCase()};const e=v.exec(t);if(e){const[,l="",p=""]=e,m=[];for(const w of p.matchAll(/ (\w+) (-?[\d.]+)(%|°)/gu)){const[,u="",D="",x]=w;if(!E(u)||x==="°"!==y.has(u))return;const S=Number(D);m.push({name:u,value:x==="%"?Math.round(S*1e3)/1e5:S})}return g(l)?{theme_color:l,transforms:m}:{rgb:l.toUpperCase(),transforms:m}}const r=A.exec(t),[,n="",i,s=""]=r??[],a=Math.round(Number(s)*1e3);if(!(!r||!g(n)||a<=0||a>1e5))return{theme_color:n,brightness:(i==="lighter"?a:-a)/1e5}}const P=t=>y.has(t.name)?`${t.name} ${String(Math.round(t.value*1e3)/1e3)}°`:`${t.name} ${String(Math.round(t.value*1e5)/1e3)}%`;export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.transforms&&t.transforms.length>0?`${t.rgb} ${t.transforms.map(P).join(" ")}`:t.rgb;if("transforms"in t)return t.transforms.length===0?t.theme_color:`${t.theme_color} ${t.transforms.map(P).join(" ")}`;const e=Math.round(Math.abs(t.brightness)*1e5)/1e3;return e===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(e)}%`}const d=`A colour is one of the theme's (${THEME_COLORS.join(", ")}) or the colour map's (${MAPPED_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), #RRGGBB, or one of them with DrawingML's transforms in order ("accent1 lumMod 75% lumOff 25%", "#4472C4 alpha 50%", "accent2 hueOff 30°": ${COLOR_TRANSFORMS.join(", ")}).`;export const ColorFileSchema=o.union([o.enum(COLOR_NAMES),o.string().regex(A,d),o.string().regex(O,d),o.string().regex(v,d)]).refine(t=>colorOfFile(t)!==void 0,d),NUMBERINGS=["alphaLcParenBoth","alphaUcParenBoth","alphaLcParenR","alphaUcParenR","alphaLcPeriod","alphaUcPeriod","arabicParenBoth","arabicParenR","arabicPeriod","arabicPlain","romanLcParenBoth","romanUcParenBoth","romanLcParenR","romanUcParenR","romanLcPeriod","romanUcPeriod","circleNumDbPlain","circleNumWdBlackPlain","circleNumWdWhitePlain","arabicDbPeriod","arabicDbPlain","ea1ChsPeriod","ea1ChsPlain","ea1ChtPeriod","ea1ChtPlain","ea1JpnChsDbPeriod","ea1JpnKorPlain","ea1JpnKorPeriod","arabic1Minus","arabic2Minus","hebrew2Minus","thaiAlphaPeriod","thaiAlphaParenR","thaiAlphaParenBoth","thaiNumPeriod","thaiNumParenR","thaiNumParenBoth","hindiAlphaPeriod","hindiNumPeriod","hindiNumParenR","hindiAlpha1Period"],UNDERLINES=["sng","dbl","heavy","dotted","dottedHeavy","dash","dashHeavy","dashLong","dashLongHeavy","dotDash","dotDashHeavy","dotDotDash","dotDotDashHeavy","wavy","wavyHeavy","wavyDbl","words"],STRIKES=["sngStrike","dblStrike"],CAPS=["all","small","none"],TEXT_ORIENTATIONS=["horz","vert","vert270","eaVert","wordArtVert","wordArtVertRtl","mongolianVert"],TEXT_ANCHORS=["t","ctr","b"],ParagraphSpaceSchema=o.union([o.number().min(0).max(1584),o.object({lines:o.number().min(0).max(100)})]),TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.union([o.boolean(),o.enum(UNDERLINES)]).optional(),strike:o.union([o.boolean(),o.enum(STRIKES)]).optional(),caps:o.enum(CAPS).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:ParagraphSpaceSchema.optional(),space_after:ParagraphSpaceSchema.optional(),anchor:o.enum(TEXT_ANCHORS).optional(),orientation:o.enum(TEXT_ORIENTATIONS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional(),bullet_color:ColorFileSchema.optional(),bullet_size:o.number().min(.25).max(4).optional(),start_at:o.int().min(1).max(32767).optional()});const T=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"}),b=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(b),o.record(o.string(),b)]));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"],CHART_COMBINED_TYPES=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"];const f=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(),type:o.enum(CHART_COMBINED_TYPES).optional(),secondary:o.boolean().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:f.optional(),category_axis:f.optional(),secondary_axis:f.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 GRADIENT_PATHS=["circle","rect","shape"],GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),path:o.enum(GRADIENT_PATHS).optional(),focus:o.strictObject({left:o.number().optional(),top:o.number().optional(),right:o.number().optional(),bottom:o.number().optional()}).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),PATTERNS=["pct5","pct10","pct20","pct25","pct30","pct40","pct50","pct60","pct70","pct75","pct80","pct90","horz","vert","ltHorz","ltVert","dkHorz","dkVert","narHorz","narVert","dashHorz","dashVert","cross","dnDiag","upDiag","ltDnDiag","ltUpDiag","dkDnDiag","dkUpDiag","wdDnDiag","wdUpDiag","dashDnDiag","dashUpDiag","diagCross","smCheck","lgCheck","smGrid","lgGrid","dotGrid","smConfetti","lgConfetti","horzBrick","diagBrick","solidDmnd","openDmnd","dotDmnd","plaid","sphere","weave","divot","shingle","wave","trellis","zigZag"],PatternSchema=o.strictObject({preset:o.enum(PATTERNS),fg:ColorFileSchema.optional(),bg:ColorFileSchema.optional()}),TILE_ALIGNMENTS=["tl","t","tr","l","ctr","r","bl","b","br"],PictureFillSchema=o.strictObject({path:o.string().min(1),tile:o.strictObject({scale_x:o.number().positive().max(100).optional(),scale_y:o.number().positive().max(100).optional(),x:o.number().optional(),y:o.number().optional(),align:o.enum(TILE_ALIGNMENTS).optional()}).optional(),transparency:c.optional()}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(e=>e!==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()}),InnerShadowSchema=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()}),GlowSchema=o.strictObject({color:ColorFileSchema.optional(),size:o.number().min(0).max(150).optional(),transparency:c.optional()}),ReflectionSchema=o.strictObject({transparency:c.optional(),size:c.optional(),distance:o.number().min(0).max(100).optional(),blur:o.number().min(0).max(100).optional()});const R=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const MergedCellsSchema=o.object({row:o.int().min(0),column:o.int().min(0),rows:o.int().min(1).optional(),columns:o.int().min(1).optional()});function N(t,e,r,n){const i=t.rows??1,s=t.columns??1;if(i*s<2)return"A merge takes two cells or more.";if(t.row+i>e||t.column+s>r)return`A merge from row ${String(t.row)}, column ${String(t.column)} goes past the table's ${String(e)} rows and ${String(r)} columns.`;for(let a=t.row;a<t.row+i;a++)for(let l=t.column;l<t.column+s;l++){const p=`${String(a)},${String(l)}`;if(n.has(p))return`Two merges take the cell at row ${String(a)}, column ${String(l)}.`;n.add(p)}}export const MEDIA_STARTS=["auto","on-click"],PlaybackSchema=o.strictObject({start:o.enum(MEDIA_STARTS).optional(),trim:o.strictObject({start:o.number().min(0).optional(),end:o.number().positive().optional()}).refine(t=>t.start===void 0||t.end===void 0||t.end>t.start,{message:"A trim ends after it starts."}).optional(),loop:o.boolean().optional(),volume:o.number().min(0).max(1).optional(),fullscreen:o.boolean().optional(),hide:o.boolean().optional()}),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:R.optional(),end:R.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),pattern:PatternSchema.optional(),picture_fill:PictureFillSchema.optional(),shadow:ShadowSchema.optional(),inner_shadow:InnerShadowSchema.optional(),glow:GlowSchema.optional(),soft_edges:o.number().positive().max(100).optional(),reflection:ReflectionSchema.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_cap:o.enum(LINE_CAPS).optional(),line_join:o.enum(LINE_JOINS).optional(),line_compound:o.enum(LINE_COMPOUNDS).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:T.optional(),movie:o.string().min(1).optional(),audio:o.string().min(1).optional(),item:o.string().min(1).optional(),poster:o.number().min(0).optional(),playback:PlaybackSchema.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),merged:o.array(MergedCellsSchema).optional(),data:o.string().min(1).optional(),fields:o.array(o.string().min(1)).min(1).optional(),head:o.boolean().optional(),style:o.string().min(1).optional(),first_row:o.boolean().optional(),last_row:o.boolean().optional(),first_col:o.boolean().optional(),last_col:o.boolean().optional(),horz_banding:o.boolean().optional(),vert_banding:o.boolean().optional()}).superRefine((t,e)=>{const r=new Set;t.data===void 0&&(t.fields!==void 0||t.head!==void 0)&&e.addIssue({code:"custom",path:[t.fields===void 0?"head":"fields"],message:"fields and head say how a table shows its data: give it data."}),(t.merged??[]).forEach((n,i)=>{const s=N(n,t.rows.length,t.columns.length,r);s!==void 0&&e.addIssue({code:"custom",path:["merged",i],message:s})})}).optional(),chart:ChartSchema.optional(),link:o.string().trim().min(1).optional(),group:o.string().regex(/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/u,"A group is a name of letters, digits, _ and -; a group in a group is outer/inner.").optional(),locked:o.literal(!0).optional(),component:o.union([h,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(),b).optional(),dur:o.number().positive().optional()}),groupLevels=t=>t.split("/").map((e,r,n)=>n.slice(0,r+1).join("/")),inGroup=(t,e)=>t!==void 0&&(t===e||t.startsWith(`${e}/`)),SHOW_JUMPS=["firstslide","lastslide","nextslide","previousslide","endshow"],showJumpLink=t=>`ppaction://hlinkshowjump?jump=${t}`;export function showJumpOf(t){const e=/^ppaction:\/\/hlinkshowjump\?jump=([a-z]+)$/u.exec(t);return SHOW_JUMPS.find(r=>r===e?.[1])}export const slideLinkOf=t=>t.startsWith("#")&&t.length>1?t.slice(1):void 0,SHAPE_KINDS=["textbox","picture","movie","audio","geometry","path","table","chart","component","item"],SLIDE_TRANSITIONS=["fade","push","wipe","split","reveal","cut","cover","uncover","zoom","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),through_black:o.literal(!0).optional(),duration:o.number().min(0).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(),amount:o.number().positive().max(36e3).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(),animate_text:o.enum(ANIMATE_TEXT).optional(),text_delay:o.number().min(0).max(100).optional(),repeat:o.union([o.number().min(1).max(1e4),o.enum(ANIMATION_REPEATS)]).optional(),rewind:o.literal(!0).optional()}),SlideSchema=o.strictObject({id:h,layout:o.string().min(1).optional(),generate:h.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(),section:o.string().trim().min(1).max(255).optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,e)=>{const r=new Set;t.slides.forEach((n,i)=>{r.has(n.id)&&e.addIssue({code:"custom",path:["slides",i,"id"],message:`Two slides are "${n.id}".`}),r.add(n.id),(n.layout===void 0?0:1)+(n.generate===void 0?0:1)!==1&&e.addIssue({code:"custom",path:["slides",i],message:`Slide ${n.id} has a layout or a generator: one of them.`}),n.hidden!==void 0&&n.generate===void 0&&n.hidden!==!0&&e.addIssue({code:"custom",path:["slides",i,"hidden"],message:`Slide ${n.id} is hidden (true); a list of ids is a generated block's.`});for(const[a,l]of Object.entries(n.shapes??{})){const p=SHAPE_KINDS.filter(u=>l[u]!==void 0);p.length>1&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],message:`Shape ${a} is one kind of shape, not ${p.join(" and ")}.`});const m=a.includes("/")?a.split("/"):[a];(!(m.length<=2&&m.every(u=>_.test(u)))||m.length===2&&n.generate===void 0)&&e.addIssue({code:"custom",path:["slides",i,"shapes",a],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
@@ -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 t}from"zod";export const WEBSITE_FILE="website.json",WebsiteFileSchema=t.strictObject({$schema:t.string().optional(),title:t.string().min(1).optional().describe("The website's name where people see it (Studio's list of a project's work); none: its entry file's name."),dev:t.string().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:t.string().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: it is not built."),output:t.string().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:t.string().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")});export function parseWebsite(o){let i;try{i=JSON.parse(o)}catch(e){return{ok:!1,problems:[`is not JSON: ${e instanceof Error?e.message:String(e)}`]}}const s=WebsiteFileSchema.safeParse(i);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(e=>e.path.length===0?e.message:`${e.path.join(".")}: ${e.message}`)}}
2
+ import{z as t}from"zod";export const WEBSITE_FILE="website.json",WebsiteFileSchema=t.strictObject({$schema:t.string().optional(),title:t.string().min(1).optional().describe("The website's name where people see it (Studio's list of a project's work); none: its entry file's name."),dev:t.string().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:t.string().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: the output folder is used as it is."),output:t.string().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:t.string().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")});export function parseWebsite(o){let i;try{i=JSON.parse(o)}catch(e){return{ok:!1,problems:[`is not JSON: ${e instanceof Error?e.message:String(e)}`]}}const s=WebsiteFileSchema.safeParse(i);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(e=>e.path.length===0?e.message:`${e.path.join(".")}: ${e.message}`)}}
@@ -68,6 +68,10 @@ export interface KindSpec {
68
68
  } | undefined;
69
69
  /** What a new item of it starts as (KindStarter); none for a kind a person does not make new. */
70
70
  readonly starter?: KindStarter | undefined;
71
+ /** Its place among the kinds where they are listed for people (its contribution's `shown.order`, lower first); none: after those that have one. */
72
+ readonly order?: number | undefined;
73
+ /** Turn into does not offer it (its contribution's `turnInto: false`); absent: it does, where a person makes it new. */
74
+ readonly turnInto?: false | undefined;
71
75
  /** Whether an item of it is shared alone: a read-only link to it, its view served from the project's snapshot. */
72
76
  readonly share?: boolean | undefined;
73
77
  /**
@@ -142,28 +146,51 @@ export interface Item {
142
146
  */
143
147
  files?: ItemFile[];
144
148
  /**
145
- * The other items' made files it uses (docs/design/x.md §2), as the
146
- * build resolved them once its kind read it; absent before, and for an
147
- * item that uses none.
149
+ * The other items it uses (docs/design/references.md): their data,
150
+ * their drawing live or their made files, as the build resolved them
151
+ * once its kind read it; absent before, and for an item that uses none.
148
152
  */
149
153
  uses?: ItemUse[];
150
154
  }
151
155
  /**
152
- * Another item's made file an item uses, resolved by the build: the
153
- * reference as its file writes it (`./hero.ts#main`), the item it names,
154
- * the part after `#` when there is one, and the type it is made as (the
155
- * first of the types the using kind takes that the used kind renders).
156
+ * The forms a use takes an item as besides a made file's type
157
+ * (docs/design/references.md §3.2): its values, which its kind lends
158
+ * (`data`), and its drawing by its own kind's runtime inside the using
159
+ * item's page (`live`). Any other form is a file type (`png`, `mp4`).
160
+ */
161
+ export declare const USE_FORMS: {
162
+ readonly data: "data";
163
+ readonly live: "live";
164
+ };
165
+ /** Whether a use's form is a made file's type, which an export makes, rather than `data` or `live`. */
166
+ export declare const isFileForm: (form: string) => boolean;
167
+ /**
168
+ * Another item an item uses, resolved by the build: the reference as its
169
+ * file writes it (`./hero.ts#main`), the item it names, the part after
170
+ * `#` when there is one, and the form it is taken as (the first of the
171
+ * forms the using kind takes that the used item gives). A form read here
172
+ * may be one a later version added: a reader skips one it does not know.
156
173
  */
157
174
  export interface ItemUse {
158
175
  /** The reference as written. */
159
176
  of: string;
160
177
  /** The file that writes it, a project path. */
161
178
  from: string;
179
+ /** Its line in that file, when its kind said it. */
180
+ line?: number | undefined;
162
181
  /** The used item's id. */
163
182
  item: string;
164
183
  /** The part after `#` (a board's key), when the reference names one. */
165
184
  part?: string | undefined;
185
+ /** The form it is taken as: `data`, `live` or a file type (USE_FORMS). */
166
186
  type: string;
187
+ /**
188
+ * Where `type` is `live`: the file type it is made as for a file that
189
+ * cannot hold it live (a deck's PowerPoint file), when both kinds have one.
190
+ */
191
+ file?: string | undefined;
192
+ /** The using item's types that hold `file` (`pptx`); absent, every type. */
193
+ madeFor?: string[] | undefined;
167
194
  /** What it is to the using item, in its kind's own words (`media`). */
168
195
  role?: string | undefined;
169
196
  }
@@ -185,18 +212,42 @@ export declare function listsFile(files: readonly ItemFile[], path: string): boo
185
212
  export declare const itemFiles: (item: Pick<Item, "entry" | "files">) => ItemFile[];
186
213
  /** An item's id: its file without its extension. */
187
214
  export declare const itemIdOf: (file: string) => string;
188
- /** An item's name for people: its title as listed, else the one its file says, else its file's name. */
215
+ /**
216
+ * A file's id where the list names it with no kind: its path, extension
217
+ * and all (`research/insights.csv`), as a file the list does not name is
218
+ * opened by. It never takes an item's id (`research/insights`, of
219
+ * `research/insights.mdx`), nor that of another file of its name
220
+ * (`research/insights.xlsx`). Versions before gave it its path without
221
+ * its extension, as an item's; `listedPieceByIdOrFormerId` still finds it
222
+ * by that.
223
+ */
224
+ export declare const listedFileIdOf: (file: string) => string;
225
+ /** A piece's name for people: its title as listed, else the one its file says, else its id's last part (a file listed with no kind: its file's name, extension and all). */
189
226
  export declare const itemNameOf: (item: {
190
227
  id: string;
191
228
  title?: string | undefined;
192
229
  }, own?: string) => string;
230
+ /**
231
+ * The piece of a list an id names, whichever version of AllyHub gave the
232
+ * id: by its id; else a file listed with no kind (no `kind`) by the id the
233
+ * other version gives it: its path, where the list was made by a version
234
+ * before a file's id kept its extension; its path without its extension
235
+ * (`itemIdOf`), where the id was kept from then (an address, what a window
236
+ * or a machine remembers), the first such file in the list's order. None
237
+ * where nothing has it.
238
+ */
239
+ export declare function listedPieceByIdOrFormerId<P extends {
240
+ id: string;
241
+ entry: string;
242
+ kind?: string | undefined;
243
+ }>(pieces: readonly P[], id: string): P | undefined;
193
244
  /**
194
245
  * A piece the list names with no kind: a file an editor opens by its name
195
246
  * (a canvas), with the editor whose pattern matches it. It has the names an
196
247
  * item has and nothing of a kind (no versions, no Export, no Share).
197
248
  */
198
249
  export interface ListedFile {
199
- /** What names it: its file without its extension, unique among the items and files of the list. */
250
+ /** What names it: its file, extension and all (`listedFileIdOf`), unique among the items and files of the list. */
200
251
  id: string;
201
252
  /** The folder its file is in, a project path ("" at the root). */
202
253
  dir: string;
@@ -226,7 +277,7 @@ export type ItemProblem =
226
277
  code: "missing";
227
278
  file: string;
228
279
  }
229
- /** Two listed files of one id (`a.ts`, `a.mdx`), or one file listed twice. */
280
+ /** Two listed files of one id (`a.ts` and `a.mdx`, both of a kind), or one file listed twice: the first of them is kept. */
230
281
  | {
231
282
  code: "same-id";
232
283
  id: string;
@@ -250,7 +301,15 @@ export declare const isListedFile: (piece: Item | ListedFile) => piece is Listed
250
301
  * file not there, an id twice). A piece listed with no kind is a file an
251
302
  * editor opens by its name: with `editors` (the file editors loaded), each
252
303
  * is found its editor or is a problem; without them (the build, which
253
- * reads kinds only), it is left out, unchecked.
304
+ * reads kinds only), it is left out, unchecked. Of the pieces of one id
305
+ * the first is kept, as a tolerant reader keeps what it can read, and the
306
+ * id is the problem.
254
307
  */
255
308
  export declare function itemsOf(work: WorkFile, kinds: KindTable, files?: ReadonlySet<string>, editors?: FileEditorTable): ItemScan;
309
+ /** What a data file's rows as shown are asked by, beside the rows themselves (DataFile.shown). */
310
+ export declare const SHOWN_DATA = "\0shown";
311
+ /** The path a reader asks a data file's rows as shown by. */
312
+ export declare const shownPath: (path: string) => string;
313
+ /** The data file a path asks the rows as shown of; undefined for a path that asks the rows. */
314
+ export declare const shownOf: (path: string) => string | undefined;
256
315
  //# sourceMappingURL=items.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
- import{listedWork as x}from"./data/work.js";import{fileEditorIn as O}from"./files.js";import{baseOf as m,dirOf as k}from"./layout.js";export function pointEntriesIn(t,e,n){return t.find(s=>s.id===e)?.points?.[n]??[]}export const LOCALE_MARK="{locale}";export function listsFile(t,e){return t.some(n=>{const s=n.path.indexOf(LOCALE_MARK);if(s<0)return n.path===e;const r=n.path.slice(0,s),d=n.path.slice(s+LOCALE_MARK.length);return e.length>r.length+d.length&&e.startsWith(r)&&e.endsWith(d)})}export const itemFiles=t=>t.files??[{path:t.entry,role:"entry"}],itemIdOf=t=>{const e=m(t),n=e.lastIndexOf(".");return n<=0?t:t.slice(0,t.length-(e.length-n))},itemNameOf=(t,e)=>t.title??e??m(t.id),isListedFile=t=>"editor"in t;export function itemsOf(t,e,n,s){const r=[],d=[],f=new Map;for(const i of x(t)){const o=i.file.replace(/^\.\//u,""),c=i.kind;let p;if(c===void 0){if(s===void 0)continue;const l=O(s,o)?.id;if(l===void 0){r.push({code:"no-editor",file:o});continue}p={editor:l}}else if(e.some(l=>l.id===c))p={kind:c};else{r.push({code:"unknown-kind",kind:c,file:o});continue}if(n!==void 0&&!n.has(o)){r.push({code:"missing",file:o});continue}const h=itemIdOf(o);f.set(h,[...f.get(h)??[],o]);const g={id:h,dir:k(o),entry:o,...i.title===void 0?{}:{title:i.title},groups:i.groups};d.push({...g,...p})}const a=new Set;for(const[i,o]of f)o.length>1&&(a.add(i),r.push({code:"same-id",id:i,files:o}));const u=d.filter(i=>!a.has(i.id));return{items:u.filter(i=>!isListedFile(i)),files:u.filter(isListedFile),listed:u,problems:r}}
2
+ import{listedWork as O}from"./data/work.js";import{fileEditorIn as g}from"./files.js";import{baseOf as m,dirOf as k}from"./layout.js";export function pointEntriesIn(t,e,i){return t.find(n=>n.id===e)?.points?.[i]??[]}export const USE_FORMS={data:"data",live:"live"},isFileForm=t=>t!==USE_FORMS.data&&t!==USE_FORMS.live,LOCALE_MARK="{locale}";export function listsFile(t,e){return t.some(i=>{const n=i.path.indexOf(LOCALE_MARK);if(n<0)return i.path===e;const r=i.path.slice(0,n),d=i.path.slice(n+LOCALE_MARK.length);return e.length>r.length+d.length&&e.startsWith(r)&&e.endsWith(d)})}export const itemFiles=t=>t.files??[{path:t.entry,role:"entry"}],itemIdOf=t=>{const e=m(t),i=e.lastIndexOf(".");return i<=0?t:t.slice(0,t.length-(e.length-i))},listedFileIdOf=t=>t,itemNameOf=(t,e)=>t.title??e??m(t.id);export function listedPieceByIdOrFormerId(t,e){const i=t.filter(n=>n.kind===void 0);return t.find(n=>n.id===e)??i.find(n=>n.entry===e)??i.find(n=>itemIdOf(n.entry)===e)}export const isListedFile=t=>"editor"in t;export function itemsOf(t,e,i,n){const r=[],d=[],u=new Map;for(const s of O(t)){const o=s.file.replace(/^\.\//u,""),l=s.kind;let c;if(l===void 0){if(n===void 0)continue;const f=g(n,o)?.id;if(f===void 0){r.push({code:"no-editor",file:o});continue}c={editor:f}}else if(e.some(f=>f.id===l))c={kind:l};else{r.push({code:"unknown-kind",kind:l,file:o});continue}if(i!==void 0&&!i.has(o)){r.push({code:"missing",file:o});continue}const a="kind"in c?itemIdOf(o):listedFileIdOf(o);u.set(a,[...u.get(a)??[],o]);const x={id:a,dir:k(o),entry:o,...s.title===void 0?{}:{title:s.title},groups:s.groups};d.push({...x,...c})}for(const[s,o]of u)o.length>1&&r.push({code:"same-id",id:s,files:o});const h=new Set,p=d.filter(s=>h.has(s.id)?!1:(h.add(s.id),!0));return{items:p.filter(s=>!isListedFile(s)),files:p.filter(isListedFile),listed:p,problems:r}}export const SHOWN_DATA="\0shown",shownPath=t=>`${t}${SHOWN_DATA}`,shownOf=t=>t.endsWith(SHOWN_DATA)?t.slice(0,-SHOWN_DATA.length):void 0;
@@ -12,7 +12,12 @@ export declare const TEXTURES_DIR = "assets/media/textures";
12
12
  export declare const COMPONENTS_DIR = "components";
13
13
  /** 3D sceneries a registry adds, a folder each (`sceneries/<name>/`), as shadcn puts a type of item in its own folder. */
14
14
  export declare const SCENERIES_DIR = "sceneries";
15
- /** This computer's only, never shared: a framework's build folder. */
15
+ /**
16
+ * AllyHub's own folder in a project, as `.next/` and `.astro/` are: made
17
+ * again, never saved and never in Git (`GITIGNORE`, core/protocol's
18
+ * `SNAPSHOT_SKIPPED`). What each place in a project is: docs/architecture.md,
19
+ * 4.1, "A project's folders".
20
+ */
16
21
  export declare const LOCAL_DIR = ".allyhub";
17
22
  /** The agent's working files, free to throw away. */
18
23
  export declare const WORK_DIR = ".allyhub/work";
@@ -32,10 +37,16 @@ export declare const CACHE_DIR = ".allyhub/cache";
32
37
  export declare function partCacheLimit(): number;
33
38
  /** Scenery bakes: a file each, named by its scene's digest and the renderer it was made on. */
34
39
  export declare const BAKE_DIR = ".allyhub/cache/bake";
40
+ /**
41
+ * The agents' folder in a project (the Agent Skills standard's: skills in
42
+ * `.agents/skills/`), saved with it. What the agents keep of the project
43
+ * beside its work goes here, never in `.allyhub/`, which is made again.
44
+ */
45
+ export declare const AGENTS_DIR = ".agents";
35
46
  /** What a person deleted, kept until they empty it. */
36
- export declare const TRASH_DIR = ".allyhub/trash";
37
- /** An agent's notes on the project, kept on this computer (AllyHub's own agent: docs/skills-schedules-memory.md). */
38
- export declare const MEMORY_DIR = ".allyhub/memory";
47
+ export declare const TRASH_DIR = ".agents/trash";
48
+ /** An agent's notes on the project (AllyHub's own agent: docs/skills-schedules-memory.md). */
49
+ export declare const MEMORY_DIR = ".agents/memory";
39
50
  export declare const PACKAGE_FILE = "package.json";
40
51
  export declare const TSCONFIG_FILE = "tsconfig.json";
41
52
  export declare const AGENTS_FILE = "AGENTS.md";
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const ASSETS_DIR="assets",MEDIA_DIR="assets/media",DATA_DIR="assets/data",TEXT_DIR="assets/text",FONTS_DIR="assets/fonts",MODELS_DIR="assets/media/models",ENVIRONMENTS_DIR="assets/media/environments",TEXTURES_DIR="assets/media/textures",COMPONENTS_DIR="components",SCENERIES_DIR="sceneries",LOCAL_DIR=".allyhub",WORK_DIR=".allyhub/work",REFERENCE_DIR=".allyhub/work/reference",DEV_FILE=".allyhub/dev.json",OUT_DIR=".allyhub/out",CACHE_DIR=".allyhub/cache";export function partCacheLimit(){const t=globalThis.process?.env,e=Number(t?.ALLYHUB_PART_CACHE_MB);return(Number.isFinite(e)&&e>=0?e:4096)*1024*1024}export const BAKE_DIR=".allyhub/cache/bake",TRASH_DIR=".allyhub/trash",MEMORY_DIR=".allyhub/memory",PACKAGE_FILE="package.json",TSCONFIG_FILE="tsconfig.json",AGENTS_FILE="AGENTS.md",CLAUDE_FILE="CLAUDE.md",CONFIG_FILES=["allyhub.config.ts","allyhub.config.mts","allyhub.config.js","allyhub.config.mjs"],GITIGNORE=`node_modules/
2
+ export const ASSETS_DIR="assets",MEDIA_DIR="assets/media",DATA_DIR="assets/data",TEXT_DIR="assets/text",FONTS_DIR="assets/fonts",MODELS_DIR="assets/media/models",ENVIRONMENTS_DIR="assets/media/environments",TEXTURES_DIR="assets/media/textures",COMPONENTS_DIR="components",SCENERIES_DIR="sceneries",LOCAL_DIR=".allyhub",WORK_DIR=".allyhub/work",REFERENCE_DIR=".allyhub/work/reference",DEV_FILE=".allyhub/dev.json",OUT_DIR=".allyhub/out",CACHE_DIR=".allyhub/cache";export function partCacheLimit(){const t=globalThis.process?.env,e=Number(t?.ALLYHUB_PART_CACHE_MB);return(Number.isFinite(e)&&e>=0?e:4096)*1024*1024}export const BAKE_DIR=".allyhub/cache/bake",AGENTS_DIR=".agents",TRASH_DIR=".agents/trash",MEMORY_DIR=".agents/memory",PACKAGE_FILE="package.json",TSCONFIG_FILE="tsconfig.json",AGENTS_FILE="AGENTS.md",CLAUDE_FILE="CLAUDE.md",CONFIG_FILES=["allyhub.config.ts","allyhub.config.mts","allyhub.config.js","allyhub.config.mjs"],GITIGNORE=`node_modules/
3
3
  ${LOCAL_DIR}/
4
4
  .playwright-cli/
5
5
  `;export function unscanned(t){return t.split("/").some(e=>e.startsWith(".")||e==="node_modules")}export function projectPath(t){return t.replaceAll("\\","/").replace(/^(?:\.\/)+/u,"").replace(/\/+$/u,"").replace(/\/{2,}/gu,"/")}export function dirOf(t){const e=t.lastIndexOf("/");return e<0?"":t.slice(0,e)}export function baseOf(t){return t.slice(t.lastIndexOf("/")+1)}export function within(t,e){return e===""||t===e||t.startsWith(`${e}/`)}
@@ -2367,6 +2367,7 @@ export declare const DATA_FILES: {
2367
2367
  }, z.core.$strict>>;
2368
2368
  movie: z.ZodOptional<z.ZodString>;
2369
2369
  audio: z.ZodOptional<z.ZodString>;
2370
+ item: z.ZodOptional<z.ZodString>;
2370
2371
  poster: z.ZodOptional<z.ZodNumber>;
2371
2372
  playback: z.ZodOptional<z.ZodObject<{
2372
2373
  start: z.ZodOptional<z.ZodEnum<{
@@ -2767,6 +2768,9 @@ export declare const DATA_FILES: {
2767
2768
  rows: z.ZodOptional<z.ZodInt>;
2768
2769
  columns: z.ZodOptional<z.ZodInt>;
2769
2770
  }, z.core.$strip>>>;
2771
+ data: z.ZodOptional<z.ZodString>;
2772
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
2773
+ head: z.ZodOptional<z.ZodBoolean>;
2770
2774
  style: z.ZodOptional<z.ZodString>;
2771
2775
  first_row: z.ZodOptional<z.ZodBoolean>;
2772
2776
  last_row: z.ZodOptional<z.ZodBoolean>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const LOCALES=["en","zh-cn","zh-tw","ja","ko","es","pt","de","fr"],BASE_LOCALE="en",LOCALE_NAMES={en:"English","zh-cn":"简体中文","zh-tw":"繁體中文",ja:"日本語",ko:"한국어",es:"Español",fr:"Français",de:"Deutsch",pt:"Português"},ENGLISH_NAMES={en:"English","zh-cn":"Simplified Chinese","zh-tw":"Traditional Chinese",ja:"Japanese",ko:"Korean",es:"Spanish",fr:"French",de:"German",pt:"Portuguese"},INTL_TAGS={en:"en","zh-cn":"zh-CN","zh-tw":"zh-TW",ja:"ja",ko:"ko",es:"es",fr:"fr",de:"de",pt:"pt-BR"};export function isLocale(e){return typeof e=="string"&&LOCALES.includes(e)}export function isLanguageChoice(e){return e==="system"||isLocale(e)}const c=new Set(["hant","tw","hk","mo"]);export function matchLocale(e){for(const n of e){const r=n.trim().toLowerCase().replaceAll("_","-").split("-"),t=r[0];if(!(t===void 0||t==="")){if(t==="zh"){const o=r.slice(1);return o.includes("hans")?"zh-cn":o.some(s=>c.has(s))?"zh-tw":"zh-cn"}if(isLocale(t))return t}}}export function resolveLocale(e,n){return e!==void 0&&e!=="system"?e:matchLocale(n)??"en"}export function localeOf(e){return e===void 0?"en":matchLocale([e])??"en"}export function pick(e,n){return e[localeOf(n)]}export function unspaced(e){return e==="zh-cn"||e==="zh-tw"||e==="ja"}export function stringPaths(e,n=""){return typeof e=="string"?[n]:typeof e!="object"||e===null?[]:Object.entries(e).flatMap(([r,t])=>stringPaths(t,n?`${n}.${r}`:r))}export function sameAsEnglish(e,n){const r=(t,o)=>o.split(".").reduce((s,i)=>typeof s=="object"&&s!==null?s[i]:void 0,t);return stringPaths(e).filter(t=>r(e,t)===r(n,t))}export function defineWords(e){return{all:e,of:n=>pick(e,n)}}export function untranslated(e,n={}){const r=n.share??.2,t=stringPaths(e.en).length;return LOCALES.filter(o=>o!=="en").flatMap(o=>{const s=sameAsEnglish(e.en,e[o]);return t>0&&s.length>=t*r?[{locale:o,same:s}]:[]})}
2
+ export const LOCALES=["en","zh-cn","zh-tw","ja","ko","es","pt","de","fr"],BASE_LOCALE="en",LOCALE_NAMES={en:"English","zh-cn":"简体中文","zh-tw":"繁體中文",ja:"日本語",ko:"한국어",es:"Español",fr:"Français",de:"Deutsch",pt:"Português"},ENGLISH_NAMES={en:"English","zh-cn":"Simplified Chinese","zh-tw":"Traditional Chinese",ja:"Japanese",ko:"Korean",es:"Spanish",fr:"French",de:"German",pt:"Portuguese"},INTL_TAGS={en:"en","zh-cn":"zh-CN","zh-tw":"zh-TW",ja:"ja",ko:"ko",es:"es",fr:"fr",de:"de",pt:"pt-BR"};export function isLocale(t){return typeof t=="string"&&LOCALES.includes(t)}export function isLanguageChoice(t){return t==="system"||isLocale(t)}const u=new Set(["hant","tw","hk","mo"]);export function matchLocale(t){for(const n of t){const r=n.trim().toLowerCase().replaceAll("_","-").split("-"),e=r[0];if(!(e===void 0||e==="")){if(e==="zh"){const o=r.slice(1);return o.includes("hans")?"zh-cn":o.some(s=>u.has(s))?"zh-tw":"zh-cn"}if(isLocale(e))return e}}}export function resolveLocale(t,n){return t!==void 0&&t!=="system"?t:matchLocale(n)??"en"}export function localeOf(t){return t===void 0?"en":matchLocale([t])??"en"}export function pick(t,n){return t[localeOf(n)]}export function sizeInWords(t,n){const r=["byte","kilobyte","megabyte","gigabyte"];let e=t,o=0;for(;e>=1024&&o<r.length-1;)e/=1024,o+=1;return new Intl.NumberFormat(INTL_TAGS[localeOf(n)],{style:"unit",unit:r[o],unitDisplay:"short",maximumFractionDigits:1}).format(e)}export function unspaced(t){return t==="zh-cn"||t==="zh-tw"||t==="ja"}export function stringPaths(t,n=""){return typeof t=="string"?[n]:typeof t!="object"||t===null?[]:Object.entries(t).flatMap(([r,e])=>stringPaths(e,n?`${n}.${r}`:r))}export function sameAsEnglish(t,n){const r=(e,o)=>o.split(".").reduce((s,i)=>typeof s=="object"&&s!==null?s[i]:void 0,e);return stringPaths(t).filter(e=>r(t,e)===r(n,e))}export function defineWords(t){return{all:t,of:n=>pick(t,n)}}export function untranslated(t,n={}){const r=n.share??.2,e=stringPaths(t.en).length;return LOCALES.filter(o=>o!=="en").flatMap(o=>{const s=sameAsEnglish(t.en,t[o]);return e>0&&s.length>=e*r?[{locale:o,same:s}]:[]})}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/i18n",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{problem as $}from"@allyhub/diagnostics";import{addLayerRule as L,lookCss as P}from"@allyhub/piece";import{selectorOf as E}from"./inspect.js";import{pictureHint as x,pictureWaiter as A,watchPictures as H}from"./pictures.js";import{rejectedMessage as K,watchStyles as M}from"./styles.js";const p=c=>c.toString(16).padStart(2,"0");export function createStage(c,n){const{options:m,embed:g}=c,f=m.purpose==="check"&&!g,b=f?M():void 0,v=f?H(n):void 0,h=[],R=A(n,t=>{h.some(o=>o.el===t.el&&o.src===t.src)||h.push(t)}),y=new Set,S=t=>!n.contains(t.target)&&!(t.target instanceof HTMLElement&&t.target.dataset.akHolder===""),w=f?new MutationObserver(t=>{for(const o of t)S(o)&&y.add(o.target.nodeName.toLowerCase())}):void 0;let u=!1;const C=t=>{const o=document.createElement("div");o.style.color=t,n.append(o);const i=getComputedStyle(o).color;o.remove();const s=document.createElement("canvas");s.width=1,s.height=1;const a=s.getContext("2d",{willReadFrequently:!0});if(!a)return"#000000";a.fillStyle=i,a.fillRect(0,0,1,1);const[e=0,r=0,d=0,l=255]=a.getImageData(0,0,1,1).data;return`#${p(e)}${p(r)}${p(d)}${l===255?"":p(l)}`},O=()=>{w?.takeRecords().forEach(t=>{S(t)&&y.add(t.target.nodeName.toLowerCase())})};return{el:n,styles:b,picturesDrawn:R,get clear(){return u},async sweep(){await v?.sweep()},cssColor:C,takeOutside:O,dress(t){const{dims:o,look:i}=t;u=m.purpose==="render"&&!g||t.options.transparent===!0,n.replaceChildren(),L(n.ownerDocument),n.dataset.format=t.format,c.lang!==void 0&&(n.lang=c.lang),Object.assign(n.style,{position:"relative",width:`${String(o.width)}px`,height:`${String(o.height)}px`,overflow:"hidden",background:u?"transparent":"var(--ak-color-bg)",color:"var(--ak-color-fg)",fontFamily:"var(--ak-font-body)"});for(const[e,r]of Object.entries(P(i)))n.style.setProperty(e,r);const a=t.options.transparent===!0?"transparent":C("var(--ak-color-bg)");return u&&m.purpose!=="play"&&!g&&(document.documentElement.style.background="transparent",document.body.style.background="transparent"),w?.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),a},problems(t){O();const o=[...y].map(e=>$("AK-R003",`Piece code changed <${e}> outside the stage. Draw only inside each layer's own element.`)),i=(b?.rejected()??[]).map(e=>{const r=e.el&&n.contains(e.el)?E(e.el,n):void 0;return $("AK-R004",K(e,r?` on ${r}`:""),{part:e.part,...r?{where:{selector:r}}:{}})}),s=v?.broken()??[],a=[...s,...h.filter(e=>!s.some(r=>r.el===e.el&&r.src===e.src))].map(e=>{const r=t.find(k=>k.el.contains(e.el)),d=r?.layers.find(k=>k.el.contains(e.el)),l=n.contains(e.el)?E(e.el,n):void 0,j=d?`${d.spec.component} (layer ${String(d.index+1)}) in part ${r?.part.key??""}`:r?`Part ${r.part.key}`:"The stage",D=e.via==="img"?`<img src="${e.src}">`:`a background image, url("${e.src}")`;return $("AK-A005",`${j} draws a picture that does not load: ${D}. ${x(e.src)}`,{...r?{part:r.part.key}:{},...l?{where:{selector:l}}:{}})});return[...o,...i,...a]},dispose(){w?.disconnect(),n.replaceChildren()}}}
2
+ import{problem as $}from"@allyhub/diagnostics";import{addLayerRule as L,lookCss as P}from"@allyhub/piece";import{selectorOf as E}from"./inspect.js";import{pictureHint as x,pictureWaiter as A,watchPictures as H}from"./pictures.js";import{rejectedMessage as K,watchStyles as M}from"./styles.js";const m=c=>c.toString(16).padStart(2,"0");export function createStage(c,n){const{options:u}=c,g=c.embed!==void 0||u.inside!==void 0,f=u.purpose==="check"&&!g,b=f?M():void 0,v=f?H(n):void 0,h=[],R=A(n,t=>{h.some(o=>o.el===t.el&&o.src===t.src)||h.push(t)}),y=new Set,S=t=>!n.contains(t.target)&&!(t.target instanceof HTMLElement&&t.target.dataset.akHolder===""),w=f?new MutationObserver(t=>{for(const o of t)S(o)&&y.add(o.target.nodeName.toLowerCase())}):void 0;let p=!1;const C=t=>{const o=document.createElement("div");o.style.color=t,n.append(o);const i=getComputedStyle(o).color;o.remove();const a=document.createElement("canvas");a.width=1,a.height=1;const s=a.getContext("2d",{willReadFrequently:!0});if(!s)return"#000000";s.fillStyle=i,s.fillRect(0,0,1,1);const[e=0,r=0,d=0,l=255]=s.getImageData(0,0,1,1).data;return`#${m(e)}${m(r)}${m(d)}${l===255?"":m(l)}`},O=()=>{w?.takeRecords().forEach(t=>{S(t)&&y.add(t.target.nodeName.toLowerCase())})};return{el:n,styles:b,picturesDrawn:R,get clear(){return p},async sweep(){await v?.sweep()},cssColor:C,takeOutside:O,dress(t){const{dims:o,look:i}=t;p=u.purpose==="render"&&!g||t.options.transparent===!0,n.replaceChildren(),L(n.ownerDocument),n.dataset.format=t.format,c.lang!==void 0&&(n.lang=c.lang),Object.assign(n.style,{position:"relative",width:`${String(o.width)}px`,height:`${String(o.height)}px`,overflow:"hidden",background:p?"transparent":"var(--ak-color-bg)",color:"var(--ak-color-fg)",fontFamily:"var(--ak-font-body)"});for(const[e,r]of Object.entries(P(i)))n.style.setProperty(e,r);const s=t.options.transparent===!0?"transparent":C("var(--ak-color-bg)");return p&&u.purpose!=="play"&&!g&&(document.documentElement.style.background="transparent",document.body.style.background="transparent"),w?.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),s},problems(t){O();const o=[...y].map(e=>$("AK-R003",`Piece code changed <${e}> outside the stage. Draw only inside each layer's own element.`)),i=(b?.rejected()??[]).map(e=>{const r=e.el&&n.contains(e.el)?E(e.el,n):void 0;return $("AK-R004",K(e,r?` on ${r}`:""),{part:e.part,...r?{where:{selector:r}}:{}})}),a=v?.broken()??[],s=[...a,...h.filter(e=>!a.some(r=>r.el===e.el&&r.src===e.src))].map(e=>{const r=t.find(k=>k.el.contains(e.el)),d=r?.layers.find(k=>k.el.contains(e.el)),l=n.contains(e.el)?E(e.el,n):void 0,j=d?`${d.spec.component} (layer ${String(d.index+1)}) in part ${r?.part.key??""}`:r?`Part ${r.part.key}`:"The stage",D=e.via==="img"?`<img src="${e.src}">`:`a background image, url("${e.src}")`;return $("AK-A005",`${j} draws a picture that does not load: ${D}. ${x(e.src)}`,{...r?{part:r.part.key}:{},...l?{where:{selector:l}}:{}})});return[...o,...i,...s]},dispose(){w?.disconnect(),n.replaceChildren()}}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-draw",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{LAYER_KINDS as o}from"@allyhub/piece";import{z as t}from"zod";import{FramedPageSchema as c,ImageSchema as a,PathSchema as r,VersionRef as n,method as e,toolCaller as m}from"@allyhub/protocol";const i=t.tuple([t.number(),t.number(),t.number(),t.number()]),g=t.strictObject({text:t.string(),box:i,size:t.number(),capHeight:t.number().optional(),color:t.string(),font:t.string(),weight:t.string(),lineHeight:t.number(),align:t.string(),letterSpacing:t.number().optional()});export const EditLayerSchema=t.strictObject({key:t.string(),component:t.string(),kind:t.enum(o),parent:t.string().optional(),hidden:t.boolean(),style:t.record(t.string(),t.unknown()),box:i.optional(),words:t.array(t.strictObject({prop:t.string(),key:t.string(),text:t.string()})),texts:t.array(g),picture:t.strictObject({file:t.string(),source:t.tuple([t.number(),t.number()]),whole:i,box:i,fit:t.string(),position:t.tuple([t.number(),t.number()]),crop:i.optional()}).optional()}),EditBoardSchema=t.strictObject({key:t.string(),title:t.string().optional(),width:t.int().positive(),height:t.int().positive(),background:t.string(),picture:a,layers:t.array(EditLayerSchema)});const s=t.strictObject({from:t.int().positive(),to:t.int().positive()});export const LayerSpanSchema=s.extend({key:t.string().min(1)}),BoardSpanSchema=s.extend({key:t.string().min(1),layers:t.array(LayerSpanSchema)}),IMAGE_TOOLS={"image/versions":e(t.strictObject({item:r}),t.strictObject({piece:t.string(),title:t.string().optional(),script:t.string().min(1).optional(),versions:t.array(t.strictObject({key:t.string(),lang:t.string().optional(),variant:t.string().optional(),script:r.optional()}))}),"An image's versions, one per combo, and its script in each version's language."),"image/boards":e(t.strictObject({...n,height:t.int().min(16).max(2048).optional()}),t.strictObject({image:a,width:t.int().positive(),height:t.int().positive(),boards:t.array(t.strictObject({key:t.string(),width:t.int().positive(),height:t.int().positive(),x:t.int().nonnegative()}))}),"An image version's boards drawn side by side, in order, at one height: its card and its preview."),"image/edit":e(t.strictObject({...n,scale:t.number().min(.05).max(2).optional()}),t.strictObject({piece:t.string(),boards:t.array(EditBoardSchema)}),"An image version's boards as its viewer shows them: each drawn, and its named layers with what each draws, the messages it shows and its picture (what Mark up finds under a mark)."),"image/stage":e(t.strictObject({...n,board:t.string().min(1).optional()}),c,"The address of an image version's stage page, for its viewer's sandboxed frame: a board drawn live, as large as the frame holds it, which moves to another board (`seek` by `part`)."),"image/sources":e(t.strictObject({item:r}),t.strictObject({path:r,boards:t.array(BoardSpanSchema)}),"Where each board and its layers are written in the image's module, by line: what a change to those lines changes.")},callImageTool=m(IMAGE_TOOLS);
2
+ import{LAYER_KINDS as o}from"@allyhub/piece";import{z as t}from"zod";import{FramedPageSchema as c,ImageSchema as a,PathSchema as r,VersionRef as n,method as e,toolCaller as m}from"@allyhub/protocol";const i=t.tuple([t.number(),t.number(),t.number(),t.number()]),g=t.strictObject({text:t.string(),box:i,size:t.number(),capHeight:t.number().optional(),color:t.string(),font:t.string(),weight:t.string(),lineHeight:t.number(),align:t.string(),letterSpacing:t.number().optional()});export const EditLayerSchema=t.strictObject({key:t.string(),component:t.string(),kind:t.enum(o),parent:t.string().optional(),hidden:t.boolean(),style:t.record(t.string(),t.unknown()),box:i.optional(),words:t.array(t.strictObject({prop:t.string(),key:t.string(),text:t.string()})),texts:t.array(g),picture:t.strictObject({file:t.string(),source:t.tuple([t.number(),t.number()]),whole:i,box:i,fit:t.string(),position:t.tuple([t.number(),t.number()]),crop:i.optional()}).optional()}),EditBoardSchema=t.strictObject({key:t.string(),title:t.string().optional(),width:t.int().positive(),height:t.int().positive(),background:t.string(),picture:a,layers:t.array(EditLayerSchema)});const s=t.strictObject({from:t.int().positive(),to:t.int().positive()});export const LayerSpanSchema=s.extend({key:t.string().min(1)}),BoardSpanSchema=s.extend({key:t.string().min(1),layers:t.array(LayerSpanSchema)}),IMAGE_TOOLS={"image/versions":e(t.strictObject({item:r}),t.strictObject({piece:t.string(),title:t.string().optional(),script:t.string().min(1).optional(),versions:t.array(t.strictObject({key:t.string(),lang:t.string().optional(),variant:t.string().optional(),script:r.optional()}))}),"An image's versions, one per combo, and its script in each version's language."),"image/boards":e(t.strictObject({...n,height:t.int().min(16).max(2048).optional()}),t.strictObject({image:a,width:t.int().positive(),height:t.int().positive(),boards:t.array(t.strictObject({key:t.string(),width:t.int().positive(),height:t.int().positive(),x:t.int().nonnegative()}))}),"An image version's boards drawn side by side, in order, at one height: its card and its preview."),"image/edit":e(t.strictObject({...n,scale:t.number().min(.05).max(2).optional()}),t.strictObject({piece:t.string(),boards:t.array(EditBoardSchema)}),"An image version's boards as its viewer shows them: each drawn, and its named layers with what each draws, the messages it shows and its picture (what Mark up finds under a mark)."),"image/stage":e(t.strictObject({...n,board:t.string().min(1).optional()}),c,"The address of an image version's stage page, for its viewer's sandboxed frame: a board drawn live, as large as the frame holds it, which moves to another board (`seek` by `part`)."),"image/sources":e(t.strictObject({item:r}),t.strictObject({path:r,boards:t.array(BoardSpanSchema)}),"Where each board and its layers are written in the image's module, by line: what a change to those lines changes.")},callImageTool=m(IMAGE_TOOLS),IMAGE_VIEWER_SCALE=1;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{IMAGE_TOOLS as r}from"./tools.js";export function activate(a){a.subscriptions.push(a.allyhub.kinds.registerKindProvider("image",{preview:async(i,{tool:e})=>{const t=r["image/boards"].result.parse(await e("image/boards",{item:i.id}));return{type:"picture",image:t.image,width:t.width,height:t.height}},snapshot:async(i,{tool:e})=>(await e("image/boards",{item:i.id}).catch(()=>{}),{})}))}
2
+ import{IMAGE_TOOLS as t,IMAGE_VIEWER_SCALE as n}from"./tools.js";export function activate(r){r.subscriptions.push(r.allyhub.kinds.registerKindProvider("image",{preview:async(i,{tool:e})=>{const a=t["image/boards"].result.parse(await e("image/boards",{item:i.id}));return{type:"picture",image:a.image,width:a.width,height:a.height}},snapshot:async(i,{tool:e})=>{await e("image/boards",{item:i.id}).catch(()=>{}),await e("image/sources",{item:i.id}).catch(()=>{});const a=await e("image/versions",{item:i.id}).then(s=>t["image/versions"].result.parse(s).versions,()=>[]);for(const s of a)await e("image/edit",{item:i.id,version:s.key,scale:n}).catch(()=>{});return{}}}))}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-extension",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./build": {
@@ -227,7 +227,7 @@
227
227
  "cliCommands": [
228
228
  {
229
229
  "name": "image import",
230
- "summary": "Makes an image of a Photoshop file: a board an artboard (else its canvas), each layer of its kind (pixels, type, shape, adjustment, fill, group) with its blend, opacity, mask and effects, a picture a pixel layer in media/, the words in the script, the file kept in source/; says what it could not carry over as it is; never over a place that is taken",
230
+ "summary": "Makes an image of a Photoshop file: a board an artboard (else its canvas), each layer of its kind (pixels, type, shape, adjustment, fill, group) with its blend, opacity, mask and effects, a picture a pixel layer in media/, the words in the script, the file kept in source/; lists each difference from the file; writes new files alone (--to names another module)",
231
231
  "work": "images",
232
232
  "module": "./dist/cli.js"
233
233
  }
@@ -3,9 +3,9 @@
3
3
  An image is any picture, or a set of pictures that ship together: a photo to change, a poster, a share card, a set of product pictures, a carousel. Each picture is a **board** with its own size and Photoshop's layers. Make an image for anything a person looks at as a still; a video for what moves, a deck for pages to flip through.
4
4
 
5
5
  - `allyhub help images` lists the commands in the order the work uses them and prints where the SDK's `image.md` and `pictures.md` are. Read them before writing an image.
6
- - **A photo is never changed.** New pixels (made, edited, extended, cut out) come from the cloud's image tools ([ai-media.md](ai-media.md)), each a new file beside the photo that a layer then shows. Words, a logo or a price go in a layer over a picture, never in its pixels.
7
- - **The person asks for changes with Mark up**: their viewer shows the boards and changes nothing by hand, so make each change in the image's code, or its script for words.
8
- - **A Photoshop file** becomes an image with `allyhub image import`, which says what it could not carry over.
6
+ - **A photo stays as it is.** New pixels (made, edited, extended, cut out) come from the cloud's image tools ([ai-media.md](ai-media.md)), each a new file beside the photo that a layer then shows. Words, a logo or a price go in a layer over a picture, where they stay sharp and editable.
7
+ - **The person asks for changes with Mark up**: their viewer shows the boards and their marks; make each change in the image's code, or its script for words.
8
+ - **A Photoshop file** becomes an image with `allyhub image import`, which lists each difference from the file.
9
9
 
10
10
  ## See and measure
11
11
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-measure",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-psd",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-render",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {