allyhub 0.19.0 → 0.20.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 (699) hide show
  1. package/dist/commands/align.js +1 -1
  2. package/dist/commands/check.js +1 -1
  3. package/dist/commands/cloud-tools.js +1 -1
  4. package/dist/commands/cloud.js +1 -1
  5. package/dist/commands/dev.js +5 -5
  6. package/dist/commands/export.js +3 -0
  7. package/dist/commands/frames/doc.js +1 -1
  8. package/dist/commands/frames/piece.js +1 -1
  9. package/dist/commands/frames/sheet.js +1 -1
  10. package/dist/commands/frames.js +9 -9
  11. package/dist/commands/index.js +1 -1
  12. package/dist/commands/inspect/combos.js +1 -1
  13. package/dist/commands/inspect/common.js +2 -2
  14. package/dist/commands/inspect/facts.js +2 -2
  15. package/dist/commands/migrate.js +3 -0
  16. package/dist/commands/skills.js +3 -3
  17. package/dist/commands/upgrade.js +5 -0
  18. package/dist/commands.json +1 -1
  19. package/dist/help.js +3 -3
  20. package/dist/main.js +8 -7
  21. package/dist/node_modules/@allyhub/3d-extension/package.json +2 -2
  22. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  23. package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
  24. package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
  25. package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
  26. package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
  27. package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
  28. package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
  29. package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
  30. package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
  31. package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
  32. package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
  33. package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
  34. package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
  35. package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
  36. package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
  37. package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
  38. package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
  39. package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
  40. package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
  41. package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
  42. package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
  43. package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
  44. package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
  45. package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
  46. package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
  47. package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
  48. package/dist/node_modules/@allyhub/blocks/package.json +19 -0
  49. package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
  50. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  51. package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
  52. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  54. package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
  55. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  56. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  57. package/dist/node_modules/@allyhub/build/package.json +5 -1
  58. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  59. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  60. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
  61. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
  62. package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
  63. package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
  64. package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
  65. package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
  66. package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
  67. package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
  68. package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
  69. package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
  70. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  71. package/dist/node_modules/@allyhub/check/dist/check.js +1 -1
  72. package/dist/node_modules/@allyhub/check/package.json +1 -1
  73. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  74. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  75. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  76. package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
  77. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
  78. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  79. package/dist/node_modules/@allyhub/components/package.json +1 -1
  80. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  81. package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
  82. package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
  83. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  84. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
  85. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  86. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  87. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  88. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  89. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  90. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
  91. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  92. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
  93. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  94. package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
  95. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  96. package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
  97. package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
  98. package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
  99. package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
  100. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  101. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  102. package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
  103. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  104. package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
  105. package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
  106. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
  107. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  108. package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
  109. package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
  110. package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
  111. package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
  112. package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
  113. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  114. package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
  115. package/dist/node_modules/@allyhub/doc/package.json +5 -1
  116. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  117. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  118. package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
  119. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
  120. package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
  121. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  122. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  123. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
  124. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
  125. package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
  126. package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
  127. package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
  128. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
  129. package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
  130. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  131. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  132. package/dist/node_modules/@allyhub/export/package.json +1 -1
  133. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  134. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  135. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  136. package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
  137. package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
  138. package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
  139. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
  140. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
  141. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
  142. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
  143. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
  144. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
  145. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
  146. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
  147. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
  148. package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
  149. package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
  150. package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
  151. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
  152. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
  153. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  154. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
  155. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  156. package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
  157. package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
  158. package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
  159. package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
  160. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  161. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  162. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
  163. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  164. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +12 -3
  165. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
  166. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  167. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
  168. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
  169. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  170. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
  171. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
  172. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  173. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
  174. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
  175. package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
  176. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  177. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
  178. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
  179. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  180. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
  181. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
  182. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  183. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
  184. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
  185. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  186. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  187. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  188. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  189. package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
  190. package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
  191. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
  192. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  193. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  194. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
  195. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
  196. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  197. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  198. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  199. package/dist/node_modules/@allyhub/media/package.json +1 -1
  200. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
  201. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
  202. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
  203. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  204. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
  205. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  206. package/dist/node_modules/@allyhub/model/package.json +1 -1
  207. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  208. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
  209. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  210. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  211. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  212. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
  213. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  214. package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
  215. package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
  216. package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
  217. package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
  218. package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
  219. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  220. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
  221. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
  222. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
  223. package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
  224. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +8 -2
  225. package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
  226. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +3 -0
  227. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  228. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  229. package/dist/node_modules/@allyhub/project/package.json +1 -1
  230. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  231. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  232. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  234. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  235. package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
  236. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  237. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  238. package/dist/node_modules/@allyhub/render/package.json +1 -1
  239. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  240. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  241. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
  242. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
  243. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  244. package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
  245. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  246. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  247. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  248. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  249. package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
  250. package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
  251. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
  252. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  253. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  254. package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
  256. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  257. package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  259. package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
  260. package/dist/node_modules/@allyhub/sheet/dist/html.js +10 -10
  261. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  262. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  263. package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
  264. package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
  267. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
  270. package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
  271. package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
  272. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  273. package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
  274. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  276. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  277. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  278. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
  279. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  281. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  282. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
  283. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  284. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
  285. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  286. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
  287. package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
  288. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
  289. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
  291. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  292. package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
  293. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  294. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  295. package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
  296. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  297. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  298. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  299. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  300. package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
  301. package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
  302. package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
  303. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  304. package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
  305. package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
  306. package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
  307. package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
  308. package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
  309. package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
  310. package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
  311. package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
  312. package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
  313. package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
  314. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  315. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  316. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
  317. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  318. package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
  319. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
  320. package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
  321. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  322. package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
  323. package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
  324. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  325. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
  326. package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
  327. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  328. package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
  329. package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
  330. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
  331. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
  332. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  333. package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
  334. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
  336. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  337. package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
  338. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  339. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  340. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  341. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
  342. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  343. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  344. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  346. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  347. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
  348. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
  349. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
  350. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
  351. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
  352. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
  353. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
  354. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
  355. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
  356. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
  357. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
  358. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
  359. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
  360. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
  361. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
  362. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
  363. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
  364. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
  365. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
  366. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
  367. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
  368. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
  369. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
  370. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
  371. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  372. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
  373. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
  374. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
  375. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  376. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
  377. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
  378. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
  379. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
  380. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
  381. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
  382. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
  383. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
  384. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
  385. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
  386. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
  387. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
  388. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
  389. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
  390. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
  391. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
  392. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
  393. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
  394. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
  395. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
  396. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
  397. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
  398. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
  399. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
  400. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
  401. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
  402. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
  403. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
  404. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
  405. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
  406. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
  407. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
  408. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
  409. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
  410. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
  411. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
  412. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
  413. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
  414. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
  415. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
  416. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
  417. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
  418. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
  419. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
  420. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
  421. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
  422. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
  423. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
  424. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
  425. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
  426. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
  427. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
  428. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
  429. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
  430. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
  431. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
  432. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
  433. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
  434. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
  435. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
  436. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
  437. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  438. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
  439. package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
  440. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  441. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
  442. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  443. package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
  444. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  445. package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
  446. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  447. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  448. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  449. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
  450. package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
  451. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  452. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
  453. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
  454. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
  455. package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
  456. package/dist/node_modules/@allyhub/video-extension/package.json +2 -25
  457. package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
  458. package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
  459. package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
  460. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  461. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  462. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
  463. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  464. package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
  465. package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
  466. package/dist/node_modules/@allyhub/website/package.json +1 -1
  467. package/dist/node_modules/@allyhub/website-extension/package.json +3 -3
  468. package/dist/node_modules/@allyhub/x-extension/package.json +1 -3
  469. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
  470. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  471. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  472. package/dist/package.json +14 -14
  473. package/dist/self-upgrade.js +2 -0
  474. package/dist/text/batch-text.js +1 -1
  475. package/dist/text/facts-text.js +5 -5
  476. package/dist/text/format.js +2 -2
  477. package/dist/update-notice.js +3 -0
  478. package/dist/version.js +1 -1
  479. package/dist/works.js +1 -1
  480. package/editor-web/assets/{abnfDiagram-WEYOIA3C-DYaMS_BB.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
  481. package/editor-web/assets/{architecture-WOLXFQ4H-g_Tjfl_y.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
  482. package/editor-web/assets/{architectureDiagram-ZHVYKT53-CqdhofOL.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
  483. package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
  484. package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
  485. package/editor-web/assets/article-DHf6mOY_.js +7 -0
  486. package/editor-web/assets/article-Dns1-Xh-.js +3 -0
  487. package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
  488. package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
  489. package/editor-web/assets/{blockDiagram-RJAE7QA3-Bc-28Bci.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
  490. package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
  491. package/editor-web/assets/{c4Diagram-XDPPPE54-CTGJb8FB.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
  492. package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
  493. package/editor-web/assets/channel-CVWSV3su.js +1 -0
  494. package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
  495. package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
  496. package/editor-web/assets/{chunk-2E7WHVMD-B2MPOVTU.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
  497. package/editor-web/assets/{chunk-4EMNKR2T-BUV1ZHP0.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
  498. package/editor-web/assets/{chunk-55XCU76K-BZlpspL5.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
  499. package/editor-web/assets/{chunk-7S6XSTFO-CpKeisWE.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
  500. package/editor-web/assets/{chunk-AQDTSKZB-BJqwAPyo.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
  501. package/editor-web/assets/{chunk-DSNLSHJZ-D6oPWl_W.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
  502. package/editor-web/assets/{chunk-HAGFOTED-B5pk4MZF.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
  503. package/editor-web/assets/{chunk-HNE4Q36P-DHbSPvxQ.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
  504. package/editor-web/assets/{chunk-NQOKRVIF-CcL_GcRA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
  505. package/editor-web/assets/{chunk-UHW7PFBP-YgiOL6XE.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
  506. package/editor-web/assets/{chunk-VQ5W62QI-p14b4UYc.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
  507. package/editor-web/assets/{chunk-WQQL4CDK-BWW0x-XH.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
  508. package/editor-web/assets/{chunk-YZO67HFG-oG3qd68C.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
  509. package/editor-web/assets/{chunk-ZAUX2LTX-CpcheH0u.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
  510. package/editor-web/assets/{chunk-ZCHMQSOR-cWQvLl1w.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
  511. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-7PG7YcdU.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
  512. package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
  513. package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
  514. package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
  515. package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
  516. package/editor-web/assets/{cynefin-EF2NZ3EQ-CtcknEQ_.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
  517. package/editor-web/assets/{cynefinDiagram-WF24UDRP-Ca7VIsjN.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
  518. package/editor-web/assets/{dagre-NK4GIZVX-BzcSLtsr.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
  519. package/editor-web/assets/deck-DQpNIS2p.js +1 -0
  520. package/editor-web/assets/{diagram-CBK3MWTC-DpRmTGlG.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
  521. package/editor-web/assets/{diagram-I5XIIV2D-BTrs_AX8.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
  522. package/editor-web/assets/{diagram-ODIL2UCW-CkIVjPqH.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
  523. package/editor-web/assets/{diagram-PFBEJUXE-BlFMbAG1.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
  524. package/editor-web/assets/{diagram-RJA3I4VV-D3f8VJ-D.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
  525. package/editor-web/assets/{diagram-TYUNFSNR-Bbpngj6F.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
  526. package/editor-web/assets/dist--z0ZHp4T.js +16 -0
  527. package/editor-web/assets/dist-9kuRjUTN.js +41 -0
  528. package/editor-web/assets/dist-B3rd02Cg.js +6 -0
  529. package/editor-web/assets/dist-B5GOGGEe.js +1 -0
  530. package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
  531. package/editor-web/assets/dist-C4hHtrJr.js +1 -0
  532. package/editor-web/assets/dist-CCXJewsi.js +19 -0
  533. package/editor-web/assets/dist-CfK2BLl8.js +4 -0
  534. package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
  535. package/editor-web/assets/dist-Cspf85KV.js +6 -0
  536. package/editor-web/assets/dist-DA72-4WB.js +82 -0
  537. package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
  538. package/editor-web/assets/dist-DIJnhQFK.js +9 -0
  539. package/editor-web/assets/dist-DOrGo1GD.js +19 -0
  540. package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
  541. package/editor-web/assets/dist-DjiCHlSu.js +35 -0
  542. package/editor-web/assets/dist-Do4a40Wn.js +19 -0
  543. package/editor-web/assets/dist-FKEWS3Co.js +547 -0
  544. package/editor-web/assets/dist-QKd2i6kG.js +5 -0
  545. package/editor-web/assets/dist-SGnOfLhx.js +24 -0
  546. package/editor-web/assets/dist-VmVB7tl4.js +3 -0
  547. package/editor-web/assets/{docx-draw-CoK1oqQD.js → docx-draw-L54blreB.js} +1 -1
  548. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BaKj-yL6.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
  549. package/editor-web/assets/{elk-QONTBCTQ-Cn2qv1_U.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
  550. package/editor-web/assets/{erDiagram-KYQIGQAA-Bd7AEIDo.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
  551. package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
  552. package/editor-web/assets/{eventmodeling-K75KTNOO-Sfp7_461.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
  553. package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
  554. package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
  555. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CBqcGdHI.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
  556. package/editor-web/assets/{gitGraph-VSP46ZUC-WTokXKTW.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
  557. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BIWZHD9q.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
  558. package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
  559. package/editor-web/assets/hint-CbwoSBMw.js +1 -0
  560. package/editor-web/assets/index-CXisi0Cj.css +2 -0
  561. package/editor-web/assets/index-wMlfx8aT.js +28 -0
  562. package/editor-web/assets/{info-OHQRW6UA-COC6G-_J.js → info-OHQRW6UA-CdPrqere.js} +1 -1
  563. package/editor-web/assets/{infoDiagram-MVDRKAX5-DpaqdKBD.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
  564. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
  565. package/editor-web/assets/iso-UwGLGD3F.js +1 -0
  566. package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
  567. package/editor-web/assets/{journeyDiagram-BOSHW7O7-DeSVfmm7.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
  568. package/editor-web/assets/{kanban-definition-FNSA4HC5-Bfg0lj7B.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
  569. package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
  570. package/editor-web/assets/{mermaid-parser.core-CyhovuYE.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
  571. package/editor-web/assets/{mermaid.core-Dx1fBVUG.js → mermaid.core-BOln9YdH.js} +4 -4
  572. package/editor-web/assets/{mindmap-definition-6OY57UG3-QEU2HF_m.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
  573. package/editor-web/assets/minus-ngE8owxs.js +1 -0
  574. package/editor-web/assets/{packet-JDAUHWVQ-ReJTa_hw.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
  575. package/editor-web/assets/{pegDiagram-ECIUJNBX-Bo1jFrvb.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
  576. package/editor-web/assets/{pie-XZMESJXO-BrtYafNA.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
  577. package/editor-web/assets/{pieDiagram-GNMPY74T-Cj0zQqs_.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
  578. package/editor-web/assets/progress-DZQTiRLv.js +6 -0
  579. package/editor-web/assets/{quadrantDiagram-D57K4MC3-D5npDAVn.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
  580. package/editor-web/assets/{radar-ABXABTNO-C8RDrRqi.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
  581. package/editor-web/assets/{railroad-I3PHUGI6-ebDrmYTK.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
  582. package/editor-web/assets/{railroad-abnf-LNEFI6M7-BxKuqg6V.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
  583. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DOclnfpr.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
  584. package/editor-web/assets/{railroad-peg-JR7BVNR7-DN0A1fpq.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
  585. package/editor-web/assets/{railroadDiagram-Y72NRBL7-B3PjoVWw.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
  586. package/editor-web/assets/react-Byupo4pA.js +1 -0
  587. package/editor-web/assets/replace-CLLMtF4e.js +1 -0
  588. package/editor-web/assets/{requirementDiagram-EQYSW5RA-DLdzkQk5.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
  589. package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
  590. package/editor-web/assets/row-Bei9HNEe.js +1 -0
  591. package/editor-web/assets/{sankeyDiagram-SY24JHO5-Dip4Piv_.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
  592. package/editor-web/assets/schemas-C21MyseF.js +1 -0
  593. package/editor-web/assets/{iso-DoC-ZoBr.js → schemas-DlRAoVtq.js} +1 -1
  594. package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
  595. package/editor-web/assets/search-D75Bi2GU.js +1 -0
  596. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-QnPcoybL.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
  597. package/editor-web/assets/{session-DMlLCFWg.js → session-BhClkDyr.js} +1 -1
  598. package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
  599. package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
  600. package/editor-web/assets/sound-DkR3qxSt.js +1 -0
  601. package/editor-web/assets/split-DBAbwPZ5.js +3 -0
  602. package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
  603. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-D103CiMX.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
  604. package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
  605. package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
  606. package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
  607. package/editor-web/assets/{swimlanes-B3ENRKFQ-y4gCqEoa.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
  608. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
  609. package/editor-web/assets/switch-DrZxoPQS.js +1 -0
  610. package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
  611. package/editor-web/assets/table-BW43XXVd.js +1 -0
  612. package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
  613. package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
  614. package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
  615. package/editor-web/assets/{timeline-definition-JXYKGLGB-BMp76v4V.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
  616. package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
  617. package/editor-web/assets/{treeView-D4JQ5SDB-Q_GYyk0b.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
  618. package/editor-web/assets/{treemap-SAJKECNS-B5lRWdQB.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
  619. package/editor-web/assets/type-CvZ0HZsV.js +41 -0
  620. package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
  621. package/editor-web/assets/{usecaseDiagram-WPOLBNNX--QRllA-U.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
  622. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CzkATPA3.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
  623. package/editor-web/assets/video-SJvDRCJK.js +1 -0
  624. package/editor-web/assets/{wardley-7MLQ67FV-BXzwcdJa.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
  625. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BQvC8Agx.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
  626. package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
  627. package/editor-web/assets/{words-CaUHhQHf.js → words-BUlNNuH2.js} +3 -3
  628. package/editor-web/assets/words-zMedmPWc.js +3 -0
  629. package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
  630. package/editor-web/assets/{xychartDiagram-4URNHDU4-aY-lsD5o.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
  631. package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
  632. package/editor-web/index.html +9 -8
  633. package/package.json +3 -3
  634. package/CHANGELOG.md +0 -251
  635. package/dist/commands/render.js +0 -3
  636. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
  637. package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
  638. package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
  639. package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
  640. package/editor-web/assets/article-8evPh712.js +0 -3
  641. package/editor-web/assets/article-BhRtWYMd.js +0 -7
  642. package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
  643. package/editor-web/assets/calc-worker-oEIqrrTM.js +0 -45
  644. package/editor-web/assets/channel-wIj_OqDm.js +0 -1
  645. package/editor-web/assets/chart-amT4lgX3.js +0 -2
  646. package/editor-web/assets/chart-file-dGiRgFcH.js +0 -1
  647. package/editor-web/assets/code-CD-CbJG9.js +0 -1
  648. package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
  649. package/editor-web/assets/deck-C7fN0Qtn.js +0 -1
  650. package/editor-web/assets/dist-3iovns9K.js +0 -16
  651. package/editor-web/assets/dist-BkHnbOEj.js +0 -4
  652. package/editor-web/assets/dist-BvOrNcK-.js +0 -19
  653. package/editor-web/assets/dist-CEIszq39.js +0 -1
  654. package/editor-web/assets/dist-CU5RbLNH.js +0 -1
  655. package/editor-web/assets/dist-CWZj8IAm.js +0 -1
  656. package/editor-web/assets/dist-C_Mtrnif.js +0 -17
  657. package/editor-web/assets/dist-CdqpwdCV.js +0 -24
  658. package/editor-web/assets/dist-CjT76RAw.js +0 -43
  659. package/editor-web/assets/dist-CpzEn9T8.js +0 -6
  660. package/editor-web/assets/dist-CrFYWl5-.js +0 -3
  661. package/editor-web/assets/dist-D3C6FyrO.js +0 -82
  662. package/editor-web/assets/dist-D4eBFGVL.js +0 -1
  663. package/editor-web/assets/dist-DTcjb3cP.js +0 -18
  664. package/editor-web/assets/dist-D_WSM29I.js +0 -17
  665. package/editor-web/assets/dist-Dp_9ISjP.js +0 -531
  666. package/editor-web/assets/dist-J-tPYKGS.js +0 -5
  667. package/editor-web/assets/dist-YW8hS4IM.js +0 -9
  668. package/editor-web/assets/esm-Cjv8ogpP.js +0 -21
  669. package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
  670. package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +0 -1
  671. package/editor-web/assets/hint-rlht0uxG.js +0 -1
  672. package/editor-web/assets/index-BQWZnyAQ.js +0 -28
  673. package/editor-web/assets/index-Dvh1t1om.css +0 -2
  674. package/editor-web/assets/minus-CbPnUIOy.js +0 -1
  675. package/editor-web/assets/progress-CwKcXARv.js +0 -6
  676. package/editor-web/assets/props-form-BpSXbrSF.js +0 -1
  677. package/editor-web/assets/react-Edyoga_4.js +0 -1
  678. package/editor-web/assets/row-C_svyL8o.js +0 -1
  679. package/editor-web/assets/schemas-CQ_UU8-Z.js +0 -1
  680. package/editor-web/assets/search-Ba2BbT6T.js +0 -1
  681. package/editor-web/assets/slides-7xWhREpt.js +0 -1
  682. package/editor-web/assets/snapshots-BLX4NTQC.js +0 -1
  683. package/editor-web/assets/sound-bTlco_K3.js +0 -1
  684. package/editor-web/assets/split-tFGKk-x8.js +0 -3
  685. package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
  686. package/editor-web/assets/surface-DtCjIlrq.js +0 -1
  687. package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
  688. package/editor-web/assets/swatch-DhztHwPU.js +0 -1
  689. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +0 -8
  690. package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
  691. package/editor-web/assets/table-DRbddzx0.js +0 -1
  692. package/editor-web/assets/tabs-CuEawka3.js +0 -1
  693. package/editor-web/assets/tag-CIfWT8B_.js +0 -1
  694. package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
  695. package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
  696. package/editor-web/assets/video-D0uTbHWx.js +0 -1
  697. package/editor-web/assets/words-XlXG79Ur.js +0 -3
  698. package/editor-web/assets/workbook-CiCXkjmN.js +0 -45
  699. package/editor-web/assets/x-DlhyIKuu.js +0 -41
package/dist/package.json CHANGED
@@ -2,19 +2,19 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@allyhub/3d-extension": "0.19.0",
6
- "@allyhub/canvas-extension": "0.19.0",
7
- "@allyhub/doc-extension": "0.19.0",
8
- "@allyhub/html-extension": "0.19.0",
9
- "@allyhub/image-extension": "0.19.0",
10
- "@allyhub/linkedin-extension": "0.19.0",
11
- "@allyhub/media-extension": "0.19.0",
12
- "@allyhub/office-extension": "0.19.0",
13
- "@allyhub/sheet-extension": "0.19.0",
14
- "@allyhub/slides-extension": "0.19.0",
15
- "@allyhub/text-extension": "0.19.0",
16
- "@allyhub/video-extension": "0.19.0",
17
- "@allyhub/website-extension": "0.19.0",
18
- "@allyhub/x-extension": "0.19.0"
5
+ "@allyhub/3d-extension": "0.20.0",
6
+ "@allyhub/canvas-extension": "0.20.0",
7
+ "@allyhub/doc-extension": "0.20.0",
8
+ "@allyhub/html-extension": "0.20.0",
9
+ "@allyhub/image-extension": "0.20.0",
10
+ "@allyhub/linkedin-extension": "0.20.0",
11
+ "@allyhub/media-extension": "0.20.0",
12
+ "@allyhub/office-extension": "0.20.0",
13
+ "@allyhub/sheet-extension": "0.20.0",
14
+ "@allyhub/slides-extension": "0.20.0",
15
+ "@allyhub/text-extension": "0.20.0",
16
+ "@allyhub/video-extension": "0.20.0",
17
+ "@allyhub/website-extension": "0.20.0",
18
+ "@allyhub/x-extension": "0.20.0"
19
19
  }
20
20
  }
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readFile as l,realpath as u,stat as f}from"node:fs/promises";import{dirname as i,join as c}from"node:path";import{fileURLToPath as g}from"node:url";import{compareVersions as p}from"@allyhub/protocol/cli";export const PACKAGE="allyhub",ownPackage=()=>u(i(i(g(import.meta.url))));const m=[["pnpm-lock.yaml","pnpm"],["bun.lock","bun"],["bun.lockb","bun"],["yarn.lock","yarn"],["package-lock.json","npm"],["npm-shrinkwrap.json","npm"]],y=n=>f(n).then(()=>!0,()=>!1);async function b(n){const e=await l(c(n,"package.json"),"utf8").catch(()=>{});if(e!==void 0)try{const t=JSON.parse(e);return typeof t=="object"&&t!==null?t:void 0}catch(t){if(t instanceof SyntaxError)return;throw t}}async function h(n,e){for(let r=n;;r=i(r)){for(const[a,o]of m)if(await y(c(r,a)))return o;if(i(r)===r)break}const t=typeof e.packageManager=="string"?e.packageManager.split("@")[0]:void 0;return t==="pnpm"||t==="yarn"||t==="bun"?t:"npm"}const k=[[/\/pnpm\/global\//iu,"pnpm"],[/\/yarn\/(?:data\/)?global\//iu,"yarn"],[/\/\.bun\/install\/global\//iu,"bun"]];export async function installOf(n){const e=n.replaceAll("\\","/");if(e.includes("/_npx/"))return{kind:"npx"};const t=e.indexOf("/node_modules/");if(t<0)return{kind:"source",dir:n};const r=n.slice(0,t),a=await b(r);if(typeof a?.name=="string"&&a.name.startsWith("@allyhub/"))return{kind:"studio"};for(const[s,d]of k)if(s.test(`${e.slice(0,t)}/`))return{kind:"global",manager:d};const o=s=>s!==void 0&&Object.hasOwn(s,PACKAGE);return a!==void 0&&(o(a.dependencies)||o(a.devDependencies)||o(a.optionalDependencies))?{kind:"project",root:r,manager:await h(r,a),dev:o(a.devDependencies)&&!o(a.dependencies)}:{kind:"global",manager:"npm"}}export function installCommand(n){const e=`${PACKAGE}@latest`;switch(n.kind){case"project":{const{manager:t,dev:r,root:a}=n,o=t==="npm"?["install",e,...r?["--save-dev"]:[]]:["add",e,...r?["--dev"]:[]];return{program:t,args:o,cwd:a}}case"global":return{program:n.manager,args:n.manager==="npm"?["install","-g",e]:n.manager==="yarn"?["global","add",e]:["add","-g",e]};case"npx":case"studio":case"source":return}}export const commandLine=n=>[n.program,...n.args].join(" "),registryOf=n=>(n.npm_config_registry??n.NPM_CONFIG_REGISTRY??"https://registry.npmjs.org/").replace(/\/+$/u,"");export async function latestRelease(n,e={}){const t=await(e.fetch??fetch)(`${registryOf(n)}/-/package/${PACKAGE}/dist-tags`,{headers:{accept:"application/json"},signal:AbortSignal.any([AbortSignal.timeout(e.timeoutMs??1e4),...e.signal===void 0?[]:[e.signal]])});if(!t.ok)throw new Error(`The npm registry answered ${String(t.status)} for ${PACKAGE}'s releases.`);const a=(await t.json())?.latest;if(typeof a!="string"||p(a,"0.0.0")===void 0)throw new Error(`The npm registry names no latest release of ${PACKAGE}.`);return a}export const behind=(n,e)=>(p(n,e)??0)<0;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{ruleText as f}from"@allyhub/piece";import{plural as a}from"./plural.js";export function formatBatches(u){const o=[];for(const e of u){const i=Object.keys(e.structures).length;o.push(`${e.piece} · ${a(e.slots.length,"slot")}, ${a(i,"structure")} · ${String(e.total)} slot combinations, ${e.valid===void 0?"not counted against the rules":`${String(e.valid)} allowed by the rules`}, ${String(new Set(e.combos.map(t=>t.pick)).size)} ${e.choice==="combos"?"named in matrix.combos":`chosen${e.seed===void 0?"":` (seed ${String(e.seed)})`}`}`);for(const t of e.slots){const n=t.candidates.some(s=>s.file!==void 0);o.push(` ${t.name}: ${t.candidates.map(s=>[s.name,...s.tags.map(h=>`#${h}`)].join(" ")).join(", ")}${n?" (pool)":""}`)}if(i>1)for(const[t,n]of Object.entries(e.structures))o.push(` structure ${t}: ${n.join(" → ")}`);for(const t of e.rules)o.push(` rule: ${f(t)}`);const c=t=>[...t.structure===void 0?[]:[`[${t.structure}]`],...Object.entries(t.picks).map(([n,s])=>`${n}=${s}`)].join(" "),p=Math.max(...e.combos.map(t=>t.id.length),3),$=Math.max(...e.combos.map(t=>c(t).length),10);for(const t of e.combos)o.push(` ${t.id.padEnd(p)} ${c(t).padEnd($)} ${t.why.join("; ")}`);const{ads:l,format:m,whole:d,parts:r}=e.cost;o.push(` Render: ${a(l,"ad")} (${m}): ${String(d)} slot parts if each ad rendered whole; ${String(r)} distinct part renders with the part cache${r>0?` (${(d/r).toFixed(1)}× fewer)`:""}, then a join and a sound mix per ad.`)}return o}
2
+ import{ruleText as f}from"@allyhub/piece";import{plural as a}from"./plural.js";export function formatBatches(u){const o=[];for(const e of u){const i=Object.keys(e.structures).length;o.push(`${e.piece} · ${a(e.slots.length,"slot")}, ${a(i,"structure")} · ${String(e.total)} slot combinations, ${e.valid===void 0?"not counted against the rules":`${String(e.valid)} allowed by the rules`}, ${String(new Set(e.combos.map(t=>t.pick)).size)} ${e.choice==="combos"?"named in matrix.combos":`chosen${e.seed===void 0?"":` (seed ${String(e.seed)})`}`}`);for(const t of e.slots){const n=t.candidates.some(s=>s.file!==void 0);o.push(` ${t.name}: ${t.candidates.map(s=>[s.name,...s.tags.map(h=>`#${h}`)].join(" ")).join(", ")}${n?" (pool)":""}`)}if(i>1)for(const[t,n]of Object.entries(e.structures))o.push(` structure ${t}: ${n.join(" → ")}`);for(const t of e.rules)o.push(` rule: ${f(t)}`);const c=t=>[...t.structure===void 0?[]:[`[${t.structure}]`],...Object.entries(t.picks).map(([n,s])=>`${n}=${s}`)].join(" "),p=Math.max(...e.combos.map(t=>t.id.length),3),$=Math.max(...e.combos.map(t=>c(t).length),10);for(const t of e.combos)o.push(` ${t.id.padEnd(p)} ${c(t).padEnd($)} ${t.why.join("; ")}`);const{ads:l,format:m,whole:d,parts:r}=e.cost;o.push(` Export: ${a(l,"ad")} (${m}): ${String(d)} slot parts if each ad rendered whole; ${String(r)} distinct part renders with the part cache${r>0?` (${(d/r).toFixed(1)}× fewer)`:""}, then a join and a sound mix per ad.`)}return o}
@@ -1,6 +1,6 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{comboKey as H}from"@allyhub/piece";import{builtInExtensions as J,factKindsOf as U}from"../commands/extensions.js";import{plural as c}from"./plural.js";const L=n=>{const e=n.replace(/\s+/gu," ");return`"${e.length>40?`${e.slice(0,40)}…`:e}"`},f=n=>`[${n.join(",")}]`,S=n=>`${String(Math.round(n*100))}%`,F=n=>`${(n*100).toFixed(1)}%`,M=n=>`${String(Math.round(n*1e4)/100)}%`,$=n=>n.toFixed(2),x=n=>`${n.layer}${n.z==="behind-person"?" (behind)":n.z==="overlay"?" (overlay)":""} ${L(n.text)} ${f(n.box)}${n.opacity===void 0?"":` at ${S(n.opacity)} opacity`}`,C=n=>x({...n,box:n.ink??n.box});function K(n){return n.output===void 0?n.piece:[n.piece,n.combo?H(n.combo):void 0,n.format].filter(e=>e!==void 0&&e!=="").join(" · ")}function T(n,e,t){const a=A(n,e.start),s=n.t===void 0?0:n.t-e.start;return{line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${t}`,alike:{what:`${e.layer}: ${t}`,span:[e.start+s,e.end+s]}}}const z=n=>`${n.sheet===void 0?"":`${n.sheet}!`}${n.cell??""}`;function R(n){switch(n.kind){case"sheet-error":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.origin?1:0,line:`${z(e)} ${e.code}${e.formula===void 0?"":` ${e.formula}`}${e.origin?", starts here":", read from another"}`}}case"sheet-number":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.numbers.length,line:`${z(e)}${e.cells>1?` and ${String(e.cells-1)} more`:""} ${e.formula}: ${e.numbers.map(t=>`${String(t.value)} (${t.in})`).join(", ")}`}}case"sheet-unlike":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${e.along}`,value:e.run,line:`${z(e)} ${e.holds}, its ${e.along} ${e.neighbour} (${String(e.run)} alike)`}}case"sheet-exception":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${z(e)} ${e.table}[${e.column}] holds ${JSON.stringify(e.text)}`}}case"sheet-unused":{const e=n.data;return{key:`${e.what}:${e.sheet??""}!${e.name}`,value:1,line:`${e.what} ${e.sheet===void 0?"":`${e.sheet}!`}${e.name}${e.value===void 0?"":` ${e.value}`}`}}case"sheet-invalid":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${z(e)} ${JSON.stringify(e.value)} under the ${e.rule} validation on ${e.range}`}}case"sheet-typed":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${String(e.value)}`,value:1,line:`${z(e)} ${String(e.value)}, in neither its code nor its data`}}case"sheet-ordinary":{const e=n.data;return{key:e.sheet,value:1,line:`${e.sheet}: its code makes it and the workbook file holds it; the workbook file's stands`}}case"sheet-iteration":{const e=n.data;return{key:"iteration",value:e.iterations,line:`iterative calculation: ${String(e.iterations)} of at most ${String(e.max_iterations)} rounds over ${String(e.cells)} cells; the last moved a value by ${e.change===null?"a change of kind":String(e.change)} (it stops under ${String(e.max_change)})`}}case"text-speaker":{const e=n.data,t=[e.face?`covers ${S(e.face.ofFace)} of the face ${f(e.face.box)} (${S(e.face.ofText)} of the text's box)`:"",e.person?`${S(e.person.ofText)} of the text's box over the person (${e.person.file})`:""].filter(Boolean);return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(e.face?.ofFace??0,e.person?.ofText??0),line:`${x(e.text)}: ${t.join("; ")}`}}case"text-off-frame":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}`,value:e.share,line:`${x({...e.text,box:e.glyphs})}: ${M(e.share)} of its glyphs outside the ${String(e.frame[0])}×${String(e.frame[1])} frame (${String(e.outside)} px), ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}`}}case"text-contrast":{const e=n.data,t=`${String(e.size)} px, weight ${String(e.weight)}${e.shadow?", a shadow":""}${e.stroke?", a stroke":""}`,a=e.footage?`; footage under it, not drawn here: ${e.footage.join(", ")}`:"";if("missing"in e)return{key:`${e.text.layer}|${e.text.text}`,value:0,line:`${x(e.text)}: not measured (${e.missing}: ${e.why}; ${t})${a}`};const s=o=>`${o.toFixed(2)}:1`;return{key:`${e.text.layer}|${e.text.text}`,value:1/Math.max(1,e.ratio.min),line:`${x(e.text)}: ${s(e.ratio.min)} lowest, ${s(e.ratio.low)} at the ${String(e.options.percentile)}th percentile, ${s(e.ratio.median)} median; ${e.fill.join(", ")} over ${e.background.median} (median; ${e.background.atMin} at the lowest), ${t}${e.under?` (its outline counted behind it; under the outline ${s(e.under.ratio.min)} lowest, ${s(e.under.ratio.median)} median, over ${e.under.background.median})`:""}, ${String(e.pixels)} px${e.picture==="final"?", final picture":""}${a}`}}case"text-covered":{const e=n.data,t=e.covered;return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(...e.edges.map(a=>a.px)),line:`${x(e.text)}: ${e.edges.map(a=>`${String(a.px)} px into the ${a.side}`).join(", ")} (covered: top ${String(t.top)}, bottom ${String(t.bottom)}, left ${String(t.left)}, right ${String(t.right)})`}}case"text-overlap":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.layer}|${e.b.text}`,value:e.share,line:`${x(e.a)} × ${x(e.b)}: ${S(e.share)} of the smaller box`}}case"text-overlap-own":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.text}`,value:e.share,line:`${C(e.a)} × ${C(e.b)}: ${S(e.share)} of the smaller glyph box`}}case"text-outside":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}|${f(e.container.box)}`,value:Math.max(...e.edges.map(t=>t.px)),line:`${C(e.text)}: ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")} of the box ${f(e.container.box)} (${e.container.paint.join(", ")})`}}case"text-time":{const e=n.data,t=e.seconds>0?`${(e.words/e.seconds).toFixed(1)} words/s`:"never whole",a=e.spans.map(([s,o])=>`${$(s)}–${$(o)}`).join(", ");return{key:`${e.text.layer}|${e.text.text}|${f(e.text.box)}`,value:e.seconds>0?e.words/e.seconds:e.words,line:`${x(e.text)}: ${c(e.words,"word")} (${String(e.chars)} characters) whole for ${$(e.seconds)} s${a?` (${a} s)`:""}, ${t}; on screen ${$(e.onScreen)} s${e.size?`; ${String(e.size.px)} px, ${String(e.size.phone)} pt on a ${String(e.options.phone[0])}-point phone${e.size.lowercase?`, lowercase ${String(e.size.lowercase.px)} px, ${String(e.size.lowercase.phone)} pt`:""}`:""}`}}case"speech-on-screen":{const e=n.data;return{key:n.part??"",value:e.words-e.shown,line:`${String(e.shown)} of ${c(e.words,"word")} said show as text${e.unshown.length>0?`; not shown: ${e.unshown.slice(0,12).join(" ")}`:""}`}}case"words-on-screen":{const e=n.data,t=e.steps.map(a=>`${$(a.t)} s ${String(a.words)}`);return{key:n.part??"",value:e.words,line:`at most ${c(e.words,"word")} (${String(e.chars)} characters) whole at once, in ${c(e.texts,"text")}, ${$(e.from)}–${$(e.until)} s; from each change on: ${t.join(", ")}`}}case"graphic-picture-scale":{const e=n.data;return{key:`${e.source}|${n.part??""}`,value:e.scale,line:`${e.source} (${String(e.natural[0])}×${String(e.natural[1])}) in ${e.layer}: drawn ${String(e.drawn[0])}×${String(e.drawn[1])}, ${String(e.scale)}× at its largest`}}case"footage-scale":{const e=n.data,t=e.shown[0]===e.source[0]&&e.shown[1]===e.source[1]?"":`, ${String(e.shown[0])}×${String(e.shown[1])} of it shown`,{min:a,max:s}=e,o=a.scale===s.scale?`${String(s.scale)}× throughout (${s.from.join(", ")})`:`${String(a.scale)}×–${String(s.scale)}× (smallest at ${$(a.t)} s: ${a.from.join(", ")}; largest at ${$(s.t)} s: ${s.from.join(", ")})`;return{key:`${e.file}|${n.part??""}`,value:s.scale,line:`${e.file} (${String(e.source[0])}×${String(e.source[1])}${t}): ${o}`}}case"free-bands":{const e=n.data,t=o=>o.length===0?"none":o.map(([r,u])=>`${String(r)}–${String(u)}`).join(", "),a=o=>o.length===0?"none":o.map(r=>`${String(r.y[0])}–${String(r.y[1])} (${String(r.height)} px)`).join(", "),s=(o,r)=>"missing"in r?` ${o}: not measured (no ${r.missing==="face-track"?"face track":"person matte"} for ${r.files.join(", ")} in the media index)`:` ${o}${r.speaker===void 0?"":` (face ${String(r.speaker)})`}, seen at ${String(r.seen)} of ${String(e.moments.length)} moments: rows ${t(r.rows)}; free ${a(r.bands)}`;return{key:"bands",value:e.bands.reduce((o,r)=>o+r.height,0),line:[`inside the covered edges: rows ${String(e.content.y[0])}–${String(e.content.y[1])}, columns ${String(e.content.x[0])}–${String(e.content.x[1])}, ${String(e.moments.length)} moments ${$(e.moments[0]??0)}–${$(e.moments.at(-1)??0)} s; free of everything measured: ${a(e.bands)}`,s("face box",e.face),s("person matte",e.person)].join(`
3
- `)}}case"flat-frames":{const e=n.data;return{key:String(e.start),value:e.frames,line:`${String(e.frames)}${e.longer?" or more":""} frames of flat ${e.shade} (luma ${String(e.luma)}) to ${$(e.end)} s (flat: luminance deviation at most ${String(e.options.maxStd)}; runs of ${String(e.options.minFrames)} frames or more, more than ${String(e.options.sameLuma)} levels from the picture around)`}}case"still-picture":{const e=n.data,t=e.footage?`; footage not compared: ${e.footage.map(a=>`${a.file} ${$(a.start)}–${$(a.end)} s`).join(", ")}`:"";return{key:String(e.start),value:e.seconds,line:`${$(e.seconds)} s still, ${$(e.start)}–${$(e.end)} s${e.toEnd?" (to the last frame)":""}, through ${e.parts.join(", ")}: at most ${M(e.change)} of the picture changed from its start (mean ${String(e.mean)} of 255), ${M(e.drift.change)} at its end${t}`}}case"cut-seam":{const e=n.data,t=o=>`${o.turn===void 0?"":`turns ${String(o.turn)}°, `}${String(o.speed[0])} → ${String(o.speed[1])} px/s`,a=e.transition?`, a ${e.transition.type} ${$(e.transition.start)}–${$(e.transition.end)} s between`:"",s=[`${e.before.part} → ${e.after.part}${a}: the largest moving thing ${t(e.change.lead)}; everything moving ${t(e.change.overall)}${e.change.picture?`; the picture ${t(e.change.picture)}`:""}`,W("before",e.before),W("after",e.after),...e.carriers.slice(0,B).map(o=>` named alike: ${o.name} ${f(o.before)} → ${f(o.after)}, ${String(o.distance)} px apart, size ×${String(o.size)}, ${String(o.speed[0])} → ${String(o.speed[1])} px/s`),...e.carriers.length>B?[` and ${String(e.carriers.length-B)} more named alike (every one in --json)`]:[]];return{key:String(e.at),value:Math.abs(e.change.lead.turn??0),line:s.join(`
4
- `)}}case"flash":{const e=n.data,t=a=>`${M(a.share)} (mean ${String(a.mean)})`;return{key:String(e.start),value:e.foreign.share,line:`${c(e.frames,"frame")} ${$(e.start)}–${$(e.end)} s${e.join===void 0?"":` (the join at ${$(e.join)} s)`}${e.transition?` in a ${e.transition.type} from ${e.transition.from} to ${e.transition.to}`:""}: ${t(e.foreign)} of its pixels outside what the frames beside it span; against the frame before ${t(e.before)}, the frame after ${t(e.after)}, those two against each other ${t(e.across)}${e.own?`; on its own side of the cut (${e.own.side} it), against the next frame of its shot ${t(e.own.step)}, while that shot changes ${t(e.own.usual)} a frame`:""}`}}case"music-length":{const e=n.data;return{key:e.file,value:e.without,line:`${e.file}: ${e.music.toFixed(1)} s of music${e.from===void 0?"":` (from ${e.from.toFixed(1)} s in)`}${e.loop?", looped":""}, ${e.video.toFixed(1)} s of video${e.without>0?`, the last ${e.without.toFixed(1)} s without music`:""}${e.estimated?" (put together from its parts)":""}`}}case"join-loudness":{const e=n.data,t=e.estimated?" (put together from its parts)":"";return"missing"in e?{key:`${e.before}|${e.after}`,value:0,line:`${e.before} → ${e.after}: not measured (${e.missing}: ${e.why})${t}`}:{key:`${e.before}|${e.after}`,value:Math.abs(e.difference),line:`${e.before} → ${e.after}: ${e.beforeLufs.toFixed(1)} → ${e.afterLufs.toFixed(1)} LUFS (${e.difference>0?"+":""}${e.difference.toFixed(1)} LU)${t}`}}case"matrix-coverage":{const e=n.data;return{key:"matrix",value:e.candidates.filter(a=>a.combos.length===0).length,line:[`${e.choice==="combos"?"named in matrix.combos":e.pick===void 0?"every combo asked for":`pick ${String(e.pick)}`}; ${e.possible===void 0?"possible not counted":`${String(e.possible)} possible`}, ${String(e.chosen)} chosen`,...e.candidates.map(a=>` ${a.slot}=${a.candidate}: ${a.combos.length>0?a.combos.join(", "):"in no combo"}`)].join(`
5
- `)}}case"generated":{const e=n.data,t=a=>a.start===void 0?"":a.end===void 0||a.end===a.start?` at ${$(a.start)} s`:` ${$(a.start)}–${$(a.end)} s`;return{key:"generated",value:e.files.length,line:[`${c(e.files.length,"generated file")}${e.duration===void 0?"":` in ${e.duration.toFixed(1)} s of video`}${e.estimated?" (put together from its parts)":""}`,...e.files.map(a=>` ${a.file} (${[a.kind,a.tool,a.model,a.license,a.at].filter(Boolean).join(", ")}${a.mismatch?"; its record is another file's":""})${a.seconds===void 0?"":`, ${a.seconds.toFixed(1)} s`}: ${a.uses.map(s=>`${s.as}${s.part?` in ${s.part}`:""}${t(s)}`).join("; ")}`)].join(`
6
- `)}}case"gen-mismatch":{const e=n.data;return{key:e.file,value:1,line:e.why==="sha256"?`${e.file}: ${e.record} records sha256 ${e.recorded.slice(0,12)}…, the file's is ${e.actual.slice(0,12)}… (the record was moved without its file, or the file changed)`:`${e.file}: ${e.record} cannot be read (${e.error})`}}case"graphics-under-footage":{const e=n.data;return{key:e.layers.map(t=>t.component).join("+"),value:e.covered,line:`${e.layers.map(t=>`${t.component} ${$(t.start)}–${$(t.end)} s`).join(", ")} under ${e.footage.map(t=>`${t.file} ${f(t.box)} (${S(t.frame)} of the frame, ${$(t.start)}–${$(t.end)} s)`).join(", ")}`}}case"fallback":{const e=n.data,t={"face-track":"no face track",face:`no face ${String(e.face??"")} in the face track`,"person-matte":"no person matte","own-footage":"no footage of the part's own take",tempo:"no tempo (no bpm given, none measured)"}[e.missing],a={reframe:"the reframe",speaker:"the layer's speaker","behind-person":"a layer behind the person",background:"the footage's background",snap:"music.snap","music-play":"the music's beats and bars (music.play, music.loop)","music-end":"music.end"}[e.for],s={centred:"drawn centred","in-front":"drawn in front",unprocessed:"the footage shown as it is","not-snapped":"parts without speech keep their own length","played-once":"the file played once","film-end":"the music ends with the film"}[e.fallback];return{key:`${e.file??""}|${e.missing}|${String(e.face??"")}`,value:1,line:`${e.file?`${e.file}: `:""}${t} for ${a}; ${s}`}}case"scenery-contact":{const e=n.data,t=e.missing?[`not measured: ${e.missing}`]:e.crossing?[`crossing along ${y(e.curve??0)}`,e.depth!==void 0?`at least ${y(e.depth)} deep`:"",e.lift!==void 0?P(e.a,e.b,e.lift,"up"):"",e.volume!==void 0?`sharing ${e.volume.toExponential(3)} m³`:e.volumeMissing?`volume not measured: ${e.volumeMissing}`:""]:e.within?[`${e.within==="a in b"?e.a:e.b} inside the other`,e.depth!==void 0?`at least ${y(e.depth)} deep`:""]:[e.area!==void 0?`touching, sharing ${e.area.toFixed(4)} m²`:`${y(e.gap??0)} apart`];return{key:`${e.layer}|${e.a}|${e.b}`,value:e.depth??e.curve??0,...T(n,e,`${e.a} and ${e.b}: ${t.filter(Boolean).join("; ")}`)}}case"scenery-support":{const e=n.data,t=e.gap===null?"nothing below":e.gap<0?`sunk ${y(-e.gap)}`:`${y(e.gap)} above`;return{key:`${e.layer}|${e.object}`,value:Math.abs(e.gap??0),...T(n,e,`${e.object}: ${t}${e.on.length?` ${e.on.join(", ")}`:""}; ${S(e.footprintShare)} of its footprint in contact${e.margin!==void 0?`; centre of mass ${y(Math.abs(e.margin))} ${e.margin>=0?"inside":"outside"} the contact`:""}${e.nothingBelow?`; nothing below in ${String(e.nothingBelow)} columns`:""}`)}}case"scenery-bake":{const e=n.data,t=e.laid?`bake laid (made on ${e.bakedOn??e.renderer})`:`drawn unbaked: no bake for its scene (digest ${e.digest}, on ${e.renderer} or the CPU); ${e.elsewhere?.length?`one was made only on ${e.elsewhere.join(", ")}, which this renderer does not lay`:e.stale?"it was baked before, so the scene changed since":"it was never baked"}; ${e.command??"allyhub scenery bake"} makes it`;return{key:`${e.layer}|${e.digest}`,value:e.laid?0:1,...T(n,e,t)}}case"mesh-health":{const e=n.data,t=[e.closed?"closed":"open",e.openEdges?`${String(e.openEdges)} open edges`:"",e.nonManifoldEdges?`${String(e.nonManifoldEdges)} non-manifold edges`:"",e.degenerate?`${String(e.degenerate)} triangles without area`:"",e.selfIntersections?`${String(e.selfIntersections)} self-intersecting pairs`:""].filter(Boolean);return{key:`${e.layer}|${e.object}`,value:e.openEdges+e.nonManifoldEdges+e.degenerate+(e.selfIntersections??0),...T(n,e,`${e.object}: ${t.join(", ")}`)}}case"camera-clearance":{const e=n.data,t=A(n,e.start),a=[e.nearest?`nearest surface ${e.nearest.object} ${y(e.nearest.distance)} at ${t(e.nearest.t)} s`:"",...e.inside.map(s=>`inside ${s.object}${s.closed?"":" (open: a vote)"} from ${t(s.from)} to ${t(s.to)} s`),...e.nearCut.map(s=>`near plane cuts ${s.object} from ${t(s.from)} to ${t(s.to)} s`)].filter(Boolean);return{key:`${e.layer}|${String(e.start)}`,value:e.inside.length+e.nearCut.length,line:`${e.layer} ${t(e.start)}–${t(e.end)} s: ${a.join("; ")}`}}case"camera-motion":{const e=n.data,t=e.peaks,a=A(n,e.start),s=(o,r)=>`${o.peak.toFixed(2)} ${r} at ${a(o.at)} s`;return{key:`${e.layer}|${String(e.start)}`,value:t.speed.peak,line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${y(e.length)} travelled; speed ${s(t.speed,"m/s")}, truck ${s(t.truck,"m/s")}, pedestal ${s(t.pedestal,"m/s")}, dolly ${s(t.dolly,"m/s")}, pan ${s(t.pan,"°/s")}, tilt ${s(t.tilt,"°/s")}, roll ${s(t.roll,"°/s")}, zoom ${s(t.zoom,"stops/s")}, view turning ${s(t.turn,"°/s")}, acceleration ${s(t.acceleration,"m/s²")}, jerk ${s(t.jerk,"m/s³")}; smoothness ${e.smoothness===null?"not measured":e.smoothness.toFixed(2)}; largest step ${y(e.step.distance)} and ${e.step.angle.toFixed(2)}° at ${a(e.step.at)} s${e.cuts?.length?`; ${c(e.cuts.length,"cut")} at ${e.cuts.map(o=>`${a(o)} s`).join(", ")} (not measured across)`:""} (${String(e.fps)} samples a second)`}}case"scenery-screen":{const e=n.data,t=A(n,e.start),a=(r,u,g=1)=>r?`${(r.least*g).toFixed(2)}${u} at ${t(r.leastAt)} s to ${(r.most*g).toFixed(2)}${u} at ${t(r.mostAt)} s`:e.shown.length>0?"not measured (a corner behind the camera)":"not shown",s=e.shown.length===0?"never on the frame":`on the frame ${e.shown.map(r=>`${t(r.from)}–${t(r.to)} s`).join(", ")}`,o=e.hidden?.by.map(r=>`${r.object} ${String(Math.round(r.share*100))}%`).join(", ");return{key:`${e.layer} ${e.screen}|${String(e.start)}`,value:e.scale?.least??0,line:`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) ${t(e.start)}–${t(e.end)} s: ${s}; share of the box ${a(e.share,"%",100)}; scale ${e.scale?`${a(e.scale,"×")} frame px per content px`:a(void 0,"")}; angle ${a(e.angle,"°")}; hidden ${a(e.hidden,"%",100)}${o?` (at the most by ${o})`:""}${e.blur?`; blur ${a(e.blur," px")} (the circle of confusion across it)`:""}${e.moire?`; moiré ${a(e.moire,"%",100)} deep${e.moire.period!==void 0?`, bands ${e.moire.period.toFixed(1)} px apart at the deepest`:""}`:""}${e.drawn?e.drawn.in==="scenery"?`; drawn in the scenery at ${String(e.drawn.scale)} of the frame's pixels each way`:"; drawn over the scenery":""}${e.text?`; smallest text ${String(e.text.size)} px, ${String(e.text.onFrame[0])}–${String(e.text.onFrame[1])} px on the frame as drawn`:""}${e.stretches?.length&&e.shown.length>0?`; between cues (scenery s → its s): ${e.stretches.map(r=>`${r.from.toFixed(2)}–${r.to.toFixed(2)} → ${r.video[0].toFixed(2)}–${r.video[1].toFixed(2)} at ${r.speed.toFixed(2)}×`).join(", ")}`:""}`}}case"scenery-screen-fidelity":{const e=n.data,t=A(n,e.start),a=`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) at ${t(e.at)} s`,s=`${e.layer} ${e.screen}|${String(e.start)}|${String(e.at)}`;if(e.missing!==void 0||!e.deltaE)return{key:s,value:0,line:`${a}: not compared: ${e.missing??"no numbers"}`};const o=e.elements??[],r=(e.regions??[]).map(i=>{const l=i.elements.flatMap(m=>{const h=o[m];return h?[`${h.kind} ${h.name} ${f(h.box)}`]:[]});return`${f(i.box)} ${F(i.share)} (ΔE ${i.meanDeltaE.toFixed(1)} mean, ${i.maxDeltaE.toFixed(1)} most)${l.length>0?` over ${l.join(", ")}`:""}`}),u=new Map;for(const i of o)u.set(i.kind,(u.get(i.kind)??0)+1);const g=e.texture;return{key:s,value:e.share??0,line:`${a}: ${F(e.share??0)} of its pixels differ from its element drawn flat by more than ΔE ${String(e.tolerance)} (ΔE ${e.deltaE.mean.toFixed(2)} mean, ${e.deltaE.p95.toFixed(2)} at the 95th percentile, ${e.deltaE.max.toFixed(1)} most)${g?`; its texture ${String(g.of[0])}×${String(g.of[1])} px for an element of ${String(g.element[0])}×${String(g.element[1])}, compared at its level ${String(g.level)} (${String(g.size[0])}×${String(g.size[1])})`:""}${r.length>0?`; most in ${r.join("; ")}`:""}${u.size>0?`; in its content, of what the scenery's picture can draw otherwise: ${[...u].map(([i,l])=>`${String(l)} ${i}`).join(", ")}`:""} (boxes in content px)`}}case"text-overflow":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:Math.max(...e.edges.map(t=>t.pt)),line:`${e.shape} ${L(e.text)} ${f(e.box)} pt: its glyphs ${f(e.glyphs)} ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}; ${String(e.past)} of ${c(e.lines,"line")} past it${e.scale===void 0?"":`, shrunk to ${S(e.scale)}`}`}}case"text-off-slide":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:e.share,line:`${e.shape} ${L(e.text)}: its glyphs ${f(e.glyphs)} pt ${e.edges.map(t=>`${String(t.pt)} pt past the slide's ${t.side} edge`).join(", ")}, ${F(e.share)} of them outside`}}case"shape-off-slide":{const e=n.data;return{key:e.shape,value:e.share,line:`${e.shape} ${f(e.box)} pt: ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}, ${F(e.share)} of it outside the slide`}}case"shape-overlap":{const e=n.data;return{key:`${e.a}|${e.b}`,value:e.share,line:`${e.a} and ${e.b}: ${String(e.area)} pt² both cover, ${F(e.share)} of the smaller`}}case"near-alignment":{const e=n.data,t=e.line==="centre-x"?"horizontal centres":e.line==="centre-y"?"vertical centres":`${e.line} edges`,a=o=>o==="glyphs"?", its glyphs":"",s=e.align.x===void 0?`y ${String(e.align.y)}`:`x ${String(e.align.x)}`;return{key:`${e.a}|${e.b}|${e.line}`,value:e.gap,line:`${e.a} and ${e.b==="slide"?"the slide":e.b}: ${t} ${String(e.gap)} pt apart (${e.a} at ${String(e.at.a)}${a(e.by.a)}, ${e.b==="slide"?"the slide's":e.b} at ${String(e.at.b)}${a(e.by.b)}); ${e.align.shape} at ${s} aligns them`}}case"placement-drift":{const e=n.data;return{key:`${e.layout}|${e.shape}`,value:e.places.length,line:`${e.shape} on "${e.layout}": ${e.places.map(t=>`${f(t.frame)} pt on ${t.slides.join(", ")}`).join("; ")}`}}case"type-in-use":{const e=n.data;return{key:"type",value:e.type.length,line:`${c(e.type.length,"size")}, the smallest ${String(e.smallest)} pt: ${e.type.map(t=>`${String(t.size)} pt weight ${String(t.weight)} on ${c(t.slides,"slide")} (${c(t.shapes,"shape")})`).join("; ")}`}}case"read-size":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:1/Math.max(.1,e.screen?.arcmin??e.size),line:`${e.shape} ${L(e.text)}: ${String(e.size)} pt${e.xHeight===void 0?"":`, x ${String(e.xHeight)} pt`}${e.screen?`; ${e.screen.by==="x"?"its lowercase x":"its characters"} ${String(e.screen.mm)} mm on the screen, ${String(e.screen.arcmin)} arcmin from the farthest seat`:""}; ${String(e.phone)} pt on the phone`}}case"words-on-slide":{const e=n.data;return{key:"words",value:e.words,line:`${c(e.words,"word")}, ${c(e.lines,"line")}, ${c(e.texts,"text")}`}}case"picture-resolution":{const e=n.data;return{key:e.shape,value:e.scale,line:`${e.shape} ${f(e.box)} pt: ${String(e.shown[0])}×${String(e.shown[1])} of its ${String(e.source[0])}×${String(e.source[1])} px drawn ${String(e.scale)}× (${String(e.ppi)} ppi on the slide)${Math.abs(e.stretch)>.005?`, stretched ${F(e.stretch)}`:""}`}}case"chart-data":{const e=n.data,t=e.low===void 0||e.high===void 0?"no numbers":`${String(e.low)} to ${String(e.high)}`;return{key:e.shape,value:e.series,line:`${e.shape}: ${e.type}, ${String(e.categories)} categories, ${String(e.series)} series, ${t}; ${e.source===void 0?"its numbers are written in the deck":`from ${e.source}`}`}}case"line-ends":{const e=n.data,t=r=>r.glued!==void 0?`glued to ${r.glued}`:r.near===void 0?`at (${String(r.at[0])}, ${String(r.at[1])}), no shape near`:(r.by??0)===0?`on ${r.near}`:`${String(r.by)} pt from ${r.near}`,a=r=>`${t(r)}${r.head==="none"?"":` (${r.head} head)`}`,[s,o]=e.ends;return{key:e.shape,value:Math.max(...e.ends.map(r=>r.by??0)),line:`${e.shape}: ${s?a(s):""} → ${o?a(o):""}`}}case"table-grown":{const e=n.data;return{key:e.shape,value:e.drawn-e.set,line:`${e.shape}: ${String(e.drawn)} pt tall, set ${String(e.set)} pt; ${e.rows.map(t=>`row ${String(t.row+1)} ${String(t.set)} → ${String(t.drawn)} pt`).join(", ")}`}}case"shape-hidden":{const e=n.data;return{key:`${e.shape}|${e.by??""}`,value:1,line:e.by===void 0?`${e.shape}: no step of the slide shows it`:`${e.shape}: covered whole by ${e.by}`}}case"deck-fonts":{const e=n.data,t=e.fonts.filter(a=>!a.standard);return{key:"fonts",value:t.length,line:`${e.fonts.map(a=>`${a.name} (${a.where}${a.standard?"":", not standard"})`).join(", ")}${t.length>0?`: ${t.map(a=>a.name).join(", ")} goes in the file when the project has its font files (render says what could not); an app that does not read a file's fonts replaces it`:""}`}}case"page-fill":{const e=n.data;return{key:`p${String(e.page)}`,value:e.foot,line:`page ${String(e.page)}${e.landscape?" (on its side)":""}: ${c(e.lines,"line")}, ${c(e.blocks,"block")}, ${String(e.used)} mm of its text area used, ${String(e.foot)} mm left at its foot (${S(e.share)})${e.next===void 0?"":`; the next page starts with line ${String(e.next.line)} ${e.next.block}${e.next.words===""?"":` "${e.next.words}"`}, ${String(e.next.height)} mm high`}`}}case"page-split":{const e=n.data,t=e.lines??e.rows??[];return{key:`L${String(e.line)}`,value:e.pages.length,line:`line ${String(e.line)} ${e.block} "${e.words}": pages ${e.pages.join(", ")}, ${e.rows===void 0?"lines":"rows"} ${t.join(" + ")}${e.head===void 0?"":e.head?", its head set again on each page":", no head set again"}${e.last===void 0?"":`; its last line ${c(e.last.chars,"character")}, ${S(e.last.share)} of the column`}`}}case"page-heading":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.after,line:`line ${String(e.line)} h${String(e.level)} "${e.words}": page ${String(e.page)}, ${String(e.below)} mm above its foot, ${c(e.after,"line")} after it on the page`}}case"page-short-line":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.chars,line:`line ${String(e.line)} "${e.words}": page ${String(e.page)}, its last line ${c(e.chars,"letter")}, ${S(e.share)} of the column`}}case"page-overflow":{const e=n.data;return{key:`L${String(e.line)}`,value:e.past,line:`line ${String(e.line)} ${e.block} "${e.words}" (page ${e.pages.join(", ")}): ${String(e.past)} mm past the column${e.cut>0?`, ${String(e.cut)} mm past the paper's edge, which is cut`:""}`}}case"page-kinsoku":{const e=n.data;return{key:`L${String(e.line)}|${String(e.page)}|${e.at}|${e.char}`,value:1,line:`line ${String(e.line)} "${e.words}": a line on page ${String(e.page)} ${e.at==="start"?"starts":"ends"} with ${e.char}`}}case"page-figure":{const e=n.data;return{key:`L${String(e.line)}`,value:1,line:`line ${String(e.line)} ${e.label}${e.id===void 0?"":` (#${e.id})`}: page ${String(e.page)}; ${e.referenced.length===0?"no link names it":`named on page ${e.referenced.join(", ")}`}`}}case"page-picture":{const e=n.data;return{key:`L${String(e.line)}`,value:e.scale,line:`line ${String(e.line)} a ${e.block} drawn at ${String(Math.round(e.scale*100))}% of its size, ${String(e.width)} mm wide${e.text===void 0?"":`: its words ${String(e.text)} pt`}${e.crossings===void 0?"":`; its lines cross ${String(e.crossings)} time${e.crossings===1?"":"s"}`}`}}case"page-grid":{const e=n.data;return{key:"grid",value:1,line:`${String(e.chars.median)} characters to a full line (${String(e.chars.min)}–${String(e.chars.max)}), ${String(e.lines.median)} lines of paragraphs to a page (${String(e.lines.max)} at most)${e.grid===void 0?"":`; its front matter's grid ${String(e.grid.chars)} × ${String(e.grid.lines)}`}`}}case"page-contents":{const e=n.data;return{key:"contents",value:e.passes,line:`printed ${c(e.passes,"time")} for its contents' page numbers, ${e.settled?"which hold":"which did not hold: a number may be a page off"}; ${c(e.headings,"heading")}`}}case"cut-in-word":{const e=n.data;return{key:`${e.source}|${e.side}|${String(e.at)}`,value:Math.min(e.at-e.wordStart,e.wordEnd-e.at),line:`${e.source}: the stretch's ${e.side} at ${$(e.at)} s cuts "${e.word}" (${$(e.wordStart)}–${$(e.wordEnd)} s)`}}default:return}}function A(n,e){const t=n.t===void 0?0:n.t-e;return a=>(a+t).toFixed(2)}function P(n,e,t,a){const[s,o]=t.b<t.a?[[e,t.b],[n,t.a]]:[[n,t.a],[e,t.b]];return`moving ${s[0]} ${y(s[1])} ${a} (${o[0]} ${y(o[1])}) clears them`}const y=n=>Math.abs(n)<.1?`${(n*1e3).toFixed(1)} mm`:`${n.toFixed(3)} m`,B=5;function W(n,e){const t=s=>`${String(s.speed)} px/s${s.angle===void 0?"":` at ${String(s.angle)}°`}`,a=e.list.map(s=>`${s.layer} ${s.what}${s.name?` (${s.name})`:""} ${f(s.box)} ${t(s)}${s.scale!==0?`, size ${s.scale>0?"+":""}${String(Math.round(s.scale*100))}%/s`:""}`);return` ${n} (${e.part} ${$(e.from)}–${$(e.to)} s): ${String(e.moving)} of ${c(e.things,"thing")} moving${e.overall?`, together ${t(e.overall)}`:""}${e.picture?`; the picture ${t(e.picture)} (difference ${String(e.picture.still)} → ${String(e.picture.match)} after the shift)`:""}${a.length>0?`: ${a.join("; ")}`:""}`}function G(n,e){const t=n.data.text;if(typeof t!="object"||t===null||!("layer"in t))return;const a=t,s=`${x(a)}: `;if(e.startsWith(s))return{layer:a.layer,text:a.text,what:e.slice(s.length)}}const D=3,_=8;function V(n,e=!1){const t=new Map;for(const i of n){const l=R(i);if(l===void 0)continue;const m=`${i.part??""}|${l.key}`,h=t.get(m);if(!h){const d=G(i,l.line);t.set(m,{part:i.part,...i.output==="slides"?{slide:!0}:{},first:i.t,last:i.t,count:1,worst:l.value,line:l.line,...d?{text:d}:{},...l.alike?{alike:l.alike}:{}});continue}if(h.count++,i.t!==void 0&&(h.first=Math.min(h.first??i.t,i.t),h.last=Math.max(h.last??i.t,i.t)),l.value>h.worst){h.worst=l.value,h.line=l.line,l.alike&&(h.alike=l.alike);const d=G(i,l.line);d?h.text=d:delete h.text}}const a=[...t.values()].sort((i,l)=>l.worst-i.worst),s=new Map;if(!e)for(const i of a){if(!i.text)continue;const l=`${i.text.layer}|${i.text.what}`;s.set(l,[...s.get(l)??[],i])}const o=new Map;if(!e)for(const i of a){if(!i.alike||i.count>1)continue;const l=i.alike.what;o.set(l,[...o.get(l)??[],i])}const r=[],u=new Set;for(const i of a){if(u.has(i))continue;const l=i.alike?o.get(i.alike.what):void 0;if(l&&l.length>1&&i.alike){for(const v of l)u.add(v);const w=Math.min(...l.map(v=>v.alike?.span[0]??0)),b=Math.max(...l.map(v=>v.alike?.span[1]??0)),j=l.flatMap(v=>v.part?[v.part]:[]),N=j.length>_?`${j.slice(0,_).join(", ")} and ${String(j.length-_)} more`:j.join(", ");r.push(` ${$(w)}–${$(b)} s, the same in ${String(l.length)} parts (${N}): ${i.alike.what} (--all lists each)`);continue}const m=i.text?s.get(`${i.text.layer}|${i.text.what}`):void 0;if(!m||m.length<2||!i.text){r.push(g(i));continue}for(const w of m)u.add(w);const h=m.flatMap(w=>[w.first,w.last].filter(b=>b!==void 0)),d=[...new Set(m.flatMap(w=>w.part?[w.part]:[]))],p=Math.min(...h),k=Math.max(...h),O=h.length===0?"":p===k?`${$(p)} s `:`${$(p)}–${$(k)} s `,E=m.slice(0,D).map(w=>L(w.text?.text??"")),I=m.length>D?` and ${String(m.length-D)} more`:"";r.push(` ${O}${d.length>0?`${d.length===1?d[0]??"":`${String(d.length)} parts`}: `:""}${i.text.layer}: ${String(m.length)} texts, each ${i.text.what}: ${E.join(", ")}${I} (--all lists each)`)}return r;function g(i){return` ${i.first===void 0||i.slide?"":i.count===1||i.first===i.last?`${$(i.first)} s `:`${$(i.first)}–${$(i.last??i.first)} s (${String(i.count)} moments, the most shown) `}${i.part?`${i.part}: `:""}${i.line}`}}function q(n){const e=n[0];if(e?.kind==="still-picture"){const a=e.data.options;return`; a frame every ${String(a.every)} s, ${String(a.width)} px wide, still while ${M(a.change)} or less of its pixels moved more than ${String(a.noise)} levels from the stretch's first; ${a.minSeconds>0?`${String(a.minSeconds)} s or longer`:"every stretch"}`}if(e?.kind==="text-contrast"){const a=e.data.options;return`; WCAG 2.1 ratios over the pixels behind each line's glyphs, the ${String(a.percentile)}th percentile, captured at ${String(a.scale)}× the frame's pixels, blocks at ${S(a.opacity)} opacity or more. For reference, WCAG AA asks 4.5:1 (3:1 for large text, 24 px or 18.66 px bold, in CSS pixels), AAA 7:1 (4.5:1)`}if(e?.kind==="cut-seam"){const a=e.data.options;return`; velocities over ${String(a.frames)} frames each side, at rest under ${String(a.rest)} px/s; ${a.top>0?`the ${String(a.top)} largest things listed each side, moving ones first`:"every thing listed"}; 0° is rightward, 90° downward, ±180° leftward`}if(e?.kind==="flash"){const a=e.data.options;return`; each frame against the frames beside it, ${String(a.width)} px wide, a pixel outside their span by more than ${String(a.noise)} levels, from ${M(a.change)} of the pixels; runs of up to ${c(a.frames,"frame")}; beside a cut, only past ${String(a.usual)}× its shot's usual change a frame`}if(e?.kind==="near-alignment"){const a=e.data.options;return`; lines more than ${String(a.aligned)} pt and up to ${String(a.within)} pt apart`}if(e?.kind==="page-heading")return`; listed when fewer than ${c(e.data.options.lines,"line")} follow it on its page (--heading-lines; --all lists every one)`;if(e?.kind==="page-short-line")return`; listed at ${c(e.data.options.chars,"letter")} or fewer (--short-line; --all lists every one)`;if(e?.kind==="placement-drift")return`; places more than ${String(e.data.options.drift)} pt apart`;if(e?.kind==="read-size"){const{room:a,phone:s}=e.data.options;return`${a?`; a screen ${String(a.screen)} m wide, the farthest seat ${String(a.distance)} m away`:""}; a ${String(s[0])}×${String(s[1])} pt phone`}if(e?.kind!=="text-time"&&e?.kind!=="words-on-screen")return"";const t=e.data.options;return`; whole: every text node at ${S(t.opacity)} opacity or more with ${S(t.shown)} or more of its glyphs showing, each part looked at every ${String(t.every)} s`}const X=3,Q=20;export function formatFacts(n,e={}){const t=[],a=U(J()),s=new Set(n.map(u=>u.kind)).size>1,o=s?X:Q,r=new Map;for(const u of n){const g=K(u);r.set(g,[...r.get(g)??[],u])}for(const[u,g]of r){const i=d=>{const p=g.find(k=>k.kind===d);return p!==void 0&&R(p)!==void 0},l=[...new Set(g.map(d=>d.kind))].filter(d=>!a.some(p=>p.kind===d)||!i(d)),m=[...a.filter(d=>!l.includes(d.kind)),...l.map(d=>({kind:d,about:a.find(p=>p.kind===d)?.about??d}))],h=m.map(({kind:d})=>[d,g.filter(p=>p.kind===d).length]).filter(([,d])=>d>0).map(([d,p])=>`${d} ${String(p)}`);t.push(`${u}: ${h.join(", ")}`);for(const{kind:d,about:p}of m){const k=g.filter(b=>b.kind===d);if(k.length===0)continue;if(l.includes(d)){const b=e.all===!0?k:k.slice(0,o),j=k.length-b.length;t.push(` ${p}${p===d?"":` (${d})`}:`,...b.map(N=>` ${JSON.stringify(N.data)}`),...j>0?[` … ${String(j)} more (${s?`--kind ${d}`:"--all"})`]:[]);continue}const O=k,E=V(O,e.all===!0),I=e.all===!0?E:E.slice(0,o),w=E.length-I.length;t.push(` ${p} (${d})${q(O)}:`,...I,...w>0?[` … ${String(w)} more (${s?`--kind ${d}`:"--all"})`]:[])}}return t}export const textOnScreen=n=>`${x(n)}${n.fonts?` in ${n.fonts.join(", ")}`:""}`;
2
+ import{comboKey as G}from"@allyhub/piece";import{builtInExtensions as H,factKindsOf as J}from"../commands/extensions.js";import{plural as h}from"./plural.js";const E=n=>{const e=n.replace(/\s+/gu," ");return`"${e.length>40?`${e.slice(0,40)}…`:e}"`},f=n=>`[${n.join(",")}]`,S=n=>`${String(Math.round(n*100))}%`,F=n=>`${(n*100).toFixed(1)}%`,U=n=>`${String(Math.round(n*1e4)/100)}%`,d=n=>n.toFixed(2),y=n=>`${n.layer}${n.z==="behind-person"?" (behind)":n.z==="overlay"?" (overlay)":""} ${E(n.text)} ${f(n.box)}${n.opacity===void 0?"":` at ${S(n.opacity)} opacity`}`,N=n=>y({...n,box:n.ink??n.box});function K(n){return n.output===void 0?n.piece:[n.piece,n.combo?G(n.combo):void 0,n.format].filter(e=>e!==void 0&&e!=="").join(" · ")}function I(n,e,t){const a=L(n,e.start),s=n.t===void 0?0:n.t-e.start;return{line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${t}`,alike:{what:`${e.layer}: ${t}`,span:[e.start+s,e.end+s]}}}const M=n=>`${n.sheet===void 0?"":`${n.sheet}!`}${n.cell??""}`;function _(n){switch(n.kind){case"sheet-error":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.origin?1:0,line:`${M(e)} ${e.code}${e.formula===void 0?"":` ${e.formula}`}${e.origin?", starts here":", read from another"}`}}case"sheet-number":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.numbers.length,line:`${M(e)}${e.cells>1?` and ${String(e.cells-1)} more`:""} ${e.formula}: ${e.numbers.map(t=>`${String(t.value)} (${t.in})`).join(", ")}`}}case"sheet-unlike":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${e.along}`,value:e.run,line:`${M(e)} ${e.holds}, its ${e.along} ${e.neighbour} (${String(e.run)} alike)`}}case"sheet-exception":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${M(e)} ${e.table}[${e.column}] holds ${JSON.stringify(e.text)}`}}case"sheet-unused":{const e=n.data;return{key:`${e.what}:${e.sheet??""}!${e.name}`,value:1,line:`${e.what} ${e.sheet===void 0?"":`${e.sheet}!`}${e.name}${e.value===void 0?"":` ${e.value}`}`}}case"sheet-invalid":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${M(e)} ${JSON.stringify(e.value)} under the ${e.rule} validation on ${e.range}`}}case"sheet-typed":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${String(e.value)}`,value:1,line:`${M(e)} ${String(e.value)}, in neither its code nor its data`}}case"sheet-ordinary":{const e=n.data;return{key:e.sheet,value:1,line:`${e.sheet}: its code makes it and the workbook file holds it; the workbook file's stands`}}case"sheet-iteration":{const e=n.data;return{key:"iteration",value:e.iterations,line:`iterative calculation: ${String(e.iterations)} of at most ${String(e.max_iterations)} rounds over ${String(e.cells)} cells; the last moved a value by ${e.change===null?"a change of kind":String(e.change)} (it stops under ${String(e.max_change)})`}}case"text-speaker":{const e=n.data,t=[e.face?`covers ${S(e.face.ofFace)} of the face ${f(e.face.box)} (${S(e.face.ofText)} of the text's box)`:"",e.person?`${S(e.person.ofText)} of the text's box over the person (${e.person.file})`:""].filter(Boolean);return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(e.face?.ofFace??0,e.person?.ofText??0),line:`${y(e.text)}: ${t.join("; ")}`}}case"text-off-frame":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}`,value:e.share,line:`${y({...e.text,box:e.glyphs})}: ${U(e.share)} of its glyphs outside the ${String(e.frame[0])}×${String(e.frame[1])} frame (${String(e.outside)} px), ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}`}}case"text-contrast":{const e=n.data,t=`${String(e.size)} px, weight ${String(e.weight)}${e.shadow?", a shadow":""}${e.stroke?", a stroke":""}`,a=e.footage?`; footage under it, not drawn here: ${e.footage.join(", ")}`:"";if("missing"in e)return{key:`${e.text.layer}|${e.text.text}`,value:0,line:`${y(e.text)}: not measured (${e.missing}: ${e.why}; ${t})${a}`};const s=o=>`${o.toFixed(2)}:1`;return{key:`${e.text.layer}|${e.text.text}`,value:1/Math.max(1,e.ratio.min),line:`${y(e.text)}: ${s(e.ratio.min)} lowest, ${s(e.ratio.low)} at the ${String(e.options.percentile)}th percentile, ${s(e.ratio.median)} median; ${e.fill.join(", ")} over ${e.background.median} (median; ${e.background.atMin} at the lowest), ${t}${e.under?` (its outline counted behind it; under the outline ${s(e.under.ratio.min)} lowest, ${s(e.under.ratio.median)} median, over ${e.under.background.median})`:""}, ${String(e.pixels)} px${e.picture==="final"?", final picture":""}${a}`}}case"text-covered":{const e=n.data,t=e.covered;return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(...e.edges.map(a=>a.px)),line:`${y(e.text)}: ${e.edges.map(a=>`${String(a.px)} px into the ${a.side}`).join(", ")} (covered: top ${String(t.top)}, bottom ${String(t.bottom)}, left ${String(t.left)}, right ${String(t.right)})`}}case"text-overlap":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.layer}|${e.b.text}`,value:e.share,line:`${y(e.a)} × ${y(e.b)}: ${S(e.share)} of the smaller box`}}case"text-overlap-own":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.text}`,value:e.share,line:`${N(e.a)} × ${N(e.b)}: ${S(e.share)} of the smaller glyph box`}}case"text-outside":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}|${f(e.container.box)}`,value:Math.max(...e.edges.map(t=>t.px)),line:`${N(e.text)}: ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")} of the box ${f(e.container.box)} (${e.container.paint.join(", ")})`}}case"text-time":{const e=n.data,t=e.seconds>0?`${(e.words/e.seconds).toFixed(1)} words/s`:"never whole",a=e.spans.map(([s,o])=>`${d(s)}–${d(o)}`).join(", ");return{key:`${e.text.layer}|${e.text.text}|${f(e.text.box)}`,value:e.seconds>0?e.words/e.seconds:e.words,line:`${y(e.text)}: ${h(e.words,"word")} (${String(e.chars)} characters) whole for ${d(e.seconds)} s${a?` (${a} s)`:""}, ${t}; on screen ${d(e.onScreen)} s${e.size?`; ${String(e.size.px)} px, ${String(e.size.phone)} pt on a ${String(e.options.phone[0])}-point phone${e.size.lowercase?`, lowercase ${String(e.size.lowercase.px)} px, ${String(e.size.lowercase.phone)} pt`:""}`:""}`}}case"speech-on-screen":{const e=n.data;return{key:n.part??"",value:e.words-e.shown,line:`${String(e.shown)} of ${h(e.words,"word")} said show as text${e.unshown.length>0?`; not shown: ${e.unshown.slice(0,12).join(" ")}`:""}`}}case"words-on-screen":{const e=n.data,t=e.steps.map(a=>`${d(a.t)} s ${String(a.words)}`);return{key:n.part??"",value:e.words,line:`at most ${h(e.words,"word")} (${String(e.chars)} characters) whole at once, in ${h(e.texts,"text")}, ${d(e.from)}–${d(e.until)} s; from each change on: ${t.join(", ")}`}}case"graphic-picture-scale":{const e=n.data;return{key:`${e.source}|${n.part??""}`,value:e.scale,line:`${e.source} (${String(e.natural[0])}×${String(e.natural[1])}) in ${e.layer}: drawn ${String(e.drawn[0])}×${String(e.drawn[1])}, ${String(e.scale)}× at its largest`}}case"footage-scale":{const e=n.data,t=e.shown[0]===e.source[0]&&e.shown[1]===e.source[1]?"":`, ${String(e.shown[0])}×${String(e.shown[1])} of it shown`,{min:a,max:s}=e,o=a.scale===s.scale?`${String(s.scale)}× throughout (${s.from.join(", ")})`:`${String(a.scale)}×–${String(s.scale)}× (smallest at ${d(a.t)} s: ${a.from.join(", ")}; largest at ${d(s.t)} s: ${s.from.join(", ")})`;return{key:`${e.file}|${n.part??""}`,value:s.scale,line:`${e.file} (${String(e.source[0])}×${String(e.source[1])}${t}): ${o}`}}case"free-bands":{const e=n.data,t=o=>o.length===0?"none":o.map(([r,u])=>`${String(r)}–${String(u)}`).join(", "),a=o=>o.length===0?"none":o.map(r=>`${String(r.y[0])}–${String(r.y[1])} (${String(r.height)} px)`).join(", "),s=(o,r)=>"missing"in r?` ${o}: not measured (no ${r.missing==="face-track"?"face track":"person matte"} for ${r.files.join(", ")} in the media index)`:` ${o}${r.speaker===void 0?"":` (face ${String(r.speaker)})`}, seen at ${String(r.seen)} of ${String(e.moments.length)} moments: rows ${t(r.rows)}; free ${a(r.bands)}`;return{key:"bands",value:e.bands.reduce((o,r)=>o+r.height,0),line:[`inside the covered edges: rows ${String(e.content.y[0])}–${String(e.content.y[1])}, columns ${String(e.content.x[0])}–${String(e.content.x[1])}, ${String(e.moments.length)} moments ${d(e.moments[0]??0)}–${d(e.moments.at(-1)??0)} s; free of everything measured: ${a(e.bands)}`,s("face box",e.face),s("person matte",e.person)].join(`
3
+ `)}}case"flat-frames":{const e=n.data;return{key:String(e.start),value:e.frames,line:`${String(e.frames)}${e.longer?" or more":""} frames of flat ${e.shade} (luma ${String(e.luma)}) to ${d(e.end)} s (flat: luminance deviation at most ${String(e.options.maxStd)}; runs of ${String(e.options.minFrames)} frames or more, more than ${String(e.options.sameLuma)} levels from the picture around)`}}case"cut-seam":{const e=n.data,t=o=>`${o.turn===void 0?"":`turns ${String(o.turn)}°, `}${String(o.speed[0])} → ${String(o.speed[1])} px/s`,a=e.transition?`, a ${e.transition.type} ${d(e.transition.start)}–${d(e.transition.end)} s between`:"",s=[`${e.before.part} → ${e.after.part}${a}: the largest moving thing ${t(e.change.lead)}; everything moving ${t(e.change.overall)}${e.change.picture?`; the picture ${t(e.change.picture)}`:""}`,R("before",e.before),R("after",e.after),...e.carriers.slice(0,C).map(o=>` named alike: ${o.name} ${f(o.before)} → ${f(o.after)}, ${String(o.distance)} px apart, size ×${String(o.size)}, ${String(o.speed[0])} → ${String(o.speed[1])} px/s`),...e.carriers.length>C?[` and ${String(e.carriers.length-C)} more named alike (every one in --json)`]:[]];return{key:String(e.at),value:Math.abs(e.change.lead.turn??0),line:s.join(`
4
+ `)}}case"music-length":{const e=n.data;return{key:e.file,value:e.without,line:`${e.file}: ${e.music.toFixed(1)} s of music${e.from===void 0?"":` (from ${e.from.toFixed(1)} s in)`}${e.loop?", looped":""}, ${e.video.toFixed(1)} s of video${e.without>0?`, the last ${e.without.toFixed(1)} s without music`:""}${e.estimated?" (put together from its parts)":""}`}}case"join-loudness":{const e=n.data,t=e.estimated?" (put together from its parts)":"";return"missing"in e?{key:`${e.before}|${e.after}`,value:0,line:`${e.before} → ${e.after}: not measured (${e.missing}: ${e.why})${t}`}:{key:`${e.before}|${e.after}`,value:Math.abs(e.difference),line:`${e.before} → ${e.after}: ${e.beforeLufs.toFixed(1)} → ${e.afterLufs.toFixed(1)} LUFS (${e.difference>0?"+":""}${e.difference.toFixed(1)} LU)${t}`}}case"matrix-coverage":{const e=n.data;return{key:"matrix",value:e.candidates.filter(a=>a.combos.length===0).length,line:[`${e.choice==="combos"?"named in matrix.combos":e.pick===void 0?"every combo asked for":`pick ${String(e.pick)}`}; ${e.possible===void 0?"possible not counted":`${String(e.possible)} possible`}, ${String(e.chosen)} chosen`,...e.candidates.map(a=>` ${a.slot}=${a.candidate}: ${a.combos.length>0?a.combos.join(", "):"in no combo"}`)].join(`
5
+ `)}}case"generated":{const e=n.data,t=a=>a.start===void 0?"":a.end===void 0||a.end===a.start?` at ${d(a.start)} s`:` ${d(a.start)}–${d(a.end)} s`;return{key:"generated",value:e.files.length,line:[`${h(e.files.length,"generated file")}${e.duration===void 0?"":` in ${e.duration.toFixed(1)} s of video`}${e.estimated?" (put together from its parts)":""}`,...e.files.map(a=>` ${a.file} (${[a.kind,a.tool,a.model,a.license,a.at].filter(Boolean).join(", ")}${a.mismatch?"; its record is another file's":""})${a.seconds===void 0?"":`, ${a.seconds.toFixed(1)} s`}: ${a.uses.map(s=>`${s.as}${s.part?` in ${s.part}`:""}${t(s)}`).join("; ")}`)].join(`
6
+ `)}}case"gen-mismatch":{const e=n.data;return{key:e.file,value:1,line:e.why==="sha256"?`${e.file}: ${e.record} records sha256 ${e.recorded.slice(0,12)}…, the file's is ${e.actual.slice(0,12)}…`:`${e.file}: ${e.record} cannot be read (${e.error})`}}case"graphics-under-footage":{const e=n.data;return{key:e.layers.map(t=>t.component).join("+"),value:e.covered,line:`${e.layers.map(t=>`${t.component} ${d(t.start)}–${d(t.end)} s`).join(", ")} under ${e.footage.map(t=>`${t.file} ${f(t.box)} (${S(t.frame)} of the frame, ${d(t.start)}–${d(t.end)} s)`).join(", ")}`}}case"fallback":{const e=n.data,t={"face-track":"no face track",face:`no face ${String(e.face??"")} in the face track`,"person-matte":"no person matte","own-footage":"no footage of the part's own take",tempo:"no tempo (no bpm given, none measured)"}[e.missing],a={reframe:"the reframe",speaker:"the layer's speaker","behind-person":"a layer behind the person",background:"the footage's background",snap:"music.snap","music-play":"the music's beats and bars (music.play, music.loop)","music-end":"music.end"}[e.for],s={centred:"drawn centred","in-front":"drawn in front",unprocessed:"the footage shown as it is","not-snapped":"parts without speech keep their own length","played-once":"the file played once","film-end":"the music ends with the film"}[e.fallback];return{key:`${e.file??""}|${e.missing}|${String(e.face??"")}`,value:1,line:`${e.file?`${e.file}: `:""}${t} for ${a}; ${s}`}}case"scenery-contact":{const e=n.data,t=e.missing?[`not measured: ${e.missing}`]:e.crossing?[`crossing along ${w(e.curve??0)}`,e.depth!==void 0?`at least ${w(e.depth)} deep`:"",e.lift!==void 0?P(e.a,e.b,e.lift,"up"):"",e.volume!==void 0?`sharing ${e.volume.toExponential(3)} m³`:e.volumeMissing?`volume not measured: ${e.volumeMissing}`:""]:e.within?[`${e.within==="a in b"?e.a:e.b} inside the other`,e.depth!==void 0?`at least ${w(e.depth)} deep`:""]:[e.area!==void 0?`touching, sharing ${e.area.toFixed(4)} m²`:`${w(e.gap??0)} apart`];return{key:`${e.layer}|${e.a}|${e.b}`,value:e.depth??e.curve??0,...I(n,e,`${e.a} and ${e.b}: ${t.filter(Boolean).join("; ")}`)}}case"scenery-support":{const e=n.data,t=e.gap===null?"nothing below":e.gap<0?`sunk ${w(-e.gap)}`:`${w(e.gap)} above`;return{key:`${e.layer}|${e.object}`,value:Math.abs(e.gap??0),...I(n,e,`${e.object}: ${t}${e.on.length?` ${e.on.join(", ")}`:""}; ${S(e.footprintShare)} of its footprint in contact${e.margin!==void 0?`; centre of mass ${w(Math.abs(e.margin))} ${e.margin>=0?"inside":"outside"} the contact`:""}${e.nothingBelow?`; nothing below in ${String(e.nothingBelow)} columns`:""}`)}}case"scenery-bake":{const e=n.data,t=e.laid?`bake laid (made on ${e.bakedOn??e.renderer})`:`drawn unbaked: no bake for its scene (digest ${e.digest}, on ${e.renderer} or the CPU); ${e.elsewhere?.length?`one was made only on ${e.elsewhere.join(", ")}, which this renderer does not lay`:e.stale?"it was baked before, so the scene changed since":"it was never baked"}; ${e.command??"allyhub scenery bake"} makes it`;return{key:`${e.layer}|${e.digest}`,value:e.laid?0:1,...I(n,e,t)}}case"mesh-health":{const e=n.data,t=[e.closed?"closed":"open",e.openEdges?`${String(e.openEdges)} open edges`:"",e.nonManifoldEdges?`${String(e.nonManifoldEdges)} non-manifold edges`:"",e.degenerate?`${String(e.degenerate)} triangles without area`:"",e.selfIntersections?`${String(e.selfIntersections)} self-intersecting pairs`:""].filter(Boolean);return{key:`${e.layer}|${e.object}`,value:e.openEdges+e.nonManifoldEdges+e.degenerate+(e.selfIntersections??0),...I(n,e,`${e.object}: ${t.join(", ")}`)}}case"camera-clearance":{const e=n.data,t=L(n,e.start),a=[e.nearest?`nearest surface ${e.nearest.object} ${w(e.nearest.distance)} at ${t(e.nearest.t)} s`:"",...e.inside.map(s=>`inside ${s.object}${s.closed?"":" (open: a vote)"} from ${t(s.from)} to ${t(s.to)} s`),...e.nearCut.map(s=>`near plane cuts ${s.object} from ${t(s.from)} to ${t(s.to)} s`)].filter(Boolean);return{key:`${e.layer}|${String(e.start)}`,value:e.inside.length+e.nearCut.length,line:`${e.layer} ${t(e.start)}–${t(e.end)} s: ${a.join("; ")}`}}case"camera-motion":{const e=n.data,t=e.peaks,a=L(n,e.start),s=(o,r)=>`${o.peak.toFixed(2)} ${r} at ${a(o.at)} s`;return{key:`${e.layer}|${String(e.start)}`,value:t.speed.peak,line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${w(e.length)} travelled; speed ${s(t.speed,"m/s")}, truck ${s(t.truck,"m/s")}, pedestal ${s(t.pedestal,"m/s")}, dolly ${s(t.dolly,"m/s")}, pan ${s(t.pan,"°/s")}, tilt ${s(t.tilt,"°/s")}, roll ${s(t.roll,"°/s")}, zoom ${s(t.zoom,"stops/s")}, view turning ${s(t.turn,"°/s")}, acceleration ${s(t.acceleration,"m/s²")}, jerk ${s(t.jerk,"m/s³")}; smoothness ${e.smoothness===null?"not measured":e.smoothness.toFixed(2)}; largest step ${w(e.step.distance)} and ${e.step.angle.toFixed(2)}° at ${a(e.step.at)} s${e.cuts?.length?`; ${h(e.cuts.length,"cut")} at ${e.cuts.map(o=>`${a(o)} s`).join(", ")} (not measured across)`:""} (${String(e.fps)} samples a second)`}}case"scenery-screen":{const e=n.data,t=L(n,e.start),a=(r,u,g=1)=>r?`${(r.least*g).toFixed(2)}${u} at ${t(r.leastAt)} s to ${(r.most*g).toFixed(2)}${u} at ${t(r.mostAt)} s`:e.shown.length>0?"not measured (a corner behind the camera)":"not shown",s=e.shown.length===0?"never on the frame":`on the frame ${e.shown.map(r=>`${t(r.from)}–${t(r.to)} s`).join(", ")}`,o=e.hidden?.by.map(r=>`${r.object} ${String(Math.round(r.share*100))}%`).join(", ");return{key:`${e.layer} ${e.screen}|${String(e.start)}`,value:e.scale?.least??0,line:`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) ${t(e.start)}–${t(e.end)} s: ${s}; share of the box ${a(e.share,"%",100)}; scale ${e.scale?`${a(e.scale,"×")} frame px per content px`:a(void 0,"")}; angle ${a(e.angle,"°")}; hidden ${a(e.hidden,"%",100)}${o?` (at the most by ${o})`:""}${e.blur?`; blur ${a(e.blur," px")} (the circle of confusion across it)`:""}${e.moire?`; moiré ${a(e.moire,"%",100)} deep${e.moire.period!==void 0?`, bands ${e.moire.period.toFixed(1)} px apart at the deepest`:""}`:""}${e.drawn?e.drawn.in==="scenery"?`; drawn in the scenery at ${String(e.drawn.scale)} of the frame's pixels each way`:"; drawn over the scenery":""}${e.text?`; smallest text ${String(e.text.size)} px, ${String(e.text.onFrame[0])}–${String(e.text.onFrame[1])} px on the frame as drawn`:""}${e.stretches?.length&&e.shown.length>0?`; between cues (scenery s → its s): ${e.stretches.map(r=>`${r.from.toFixed(2)}–${r.to.toFixed(2)} → ${r.video[0].toFixed(2)}–${r.video[1].toFixed(2)} at ${r.speed.toFixed(2)}×`).join(", ")}`:""}`}}case"scenery-screen-fidelity":{const e=n.data,t=L(n,e.start),a=`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) at ${t(e.at)} s`,s=`${e.layer} ${e.screen}|${String(e.start)}|${String(e.at)}`;if(e.missing!==void 0||!e.deltaE)return{key:s,value:0,line:`${a}: not compared: ${e.missing??"no numbers"}`};const o=e.elements??[],r=(e.regions??[]).map(i=>{const $=i.elements.flatMap(m=>{const c=o[m];return c?[`${c.kind} ${c.name} ${f(c.box)}`]:[]});return`${f(i.box)} ${F(i.share)} (ΔE ${i.meanDeltaE.toFixed(1)} mean, ${i.maxDeltaE.toFixed(1)} most)${$.length>0?` over ${$.join(", ")}`:""}`}),u=new Map;for(const i of o)u.set(i.kind,(u.get(i.kind)??0)+1);const g=e.texture;return{key:s,value:e.share??0,line:`${a}: ${F(e.share??0)} of its pixels differ from its element drawn flat by more than ΔE ${String(e.tolerance)} (ΔE ${e.deltaE.mean.toFixed(2)} mean, ${e.deltaE.p95.toFixed(2)} at the 95th percentile, ${e.deltaE.max.toFixed(1)} most)${g?`; its texture ${String(g.of[0])}×${String(g.of[1])} px for an element of ${String(g.element[0])}×${String(g.element[1])}, compared at its level ${String(g.level)} (${String(g.size[0])}×${String(g.size[1])})`:""}${r.length>0?`; most in ${r.join("; ")}`:""}${u.size>0?`; in its content, of what the scenery's picture can draw otherwise: ${[...u].map(([i,$])=>`${String($)} ${i}`).join(", ")}`:""} (boxes in content px)`}}case"text-overflow":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:Math.max(...e.edges.map(t=>t.pt)),line:`${e.shape} ${E(e.text)} ${f(e.box)} pt: its glyphs ${f(e.glyphs)} ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}; ${String(e.past)} of ${h(e.lines,"line")} past it${e.scale===void 0?"":`, shrunk to ${S(e.scale)}`}`}}case"text-off-slide":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:e.share,line:`${e.shape} ${E(e.text)}: its glyphs ${f(e.glyphs)} pt ${e.edges.map(t=>`${String(t.pt)} pt past the slide's ${t.side} edge`).join(", ")}, ${F(e.share)} of them outside`}}case"shape-off-slide":{const e=n.data;return{key:e.shape,value:e.share,line:`${e.shape} ${f(e.box)} pt: ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}, ${F(e.share)} of it outside the slide`}}case"shape-overlap":{const e=n.data;return{key:`${e.a}|${e.b}`,value:e.share,line:`${e.a} and ${e.b}: ${String(e.area)} pt² both cover, ${F(e.share)} of the smaller`}}case"text-across-shape":{const e=n.data;return{key:`${e.text}|${e.shape}`,value:e.share,line:`${e.text} across ${e.shape}${e.level==="slide"?"":` (its ${e.level}'s)`}: ${F(e.share)} of its words over it${e.decorative===void 0?"":`, ${e.decorative.join(" and ")} decorative`}`}}case"near-alignment":{const e=n.data,t=e.line==="centre-x"?"horizontal centres":e.line==="centre-y"?"vertical centres":`${e.line} edges`,a=o=>o==="glyphs"?", its glyphs":"",s=e.align.x===void 0?`y ${String(e.align.y)}`:`x ${String(e.align.x)}`;return{key:`${e.a}|${e.b}|${e.line}`,value:e.gap,line:`${e.a} and ${e.b==="slide"?"the slide":e.b}: ${t} ${String(e.gap)} pt apart (${e.a} at ${String(e.at.a)}${a(e.by.a)}, ${e.b==="slide"?"the slide's":e.b} at ${String(e.at.b)}${a(e.by.b)}); ${e.align.shape} at ${s} aligns them`}}case"placement-drift":{const e=n.data;return{key:`${e.layout}|${e.shape}`,value:e.places.length,line:`${e.shape} on "${e.layout}": ${e.places.map(t=>`${f(t.frame)} pt on ${t.slides.join(", ")}`).join("; ")}`}}case"type-in-use":{const e=n.data;return{key:"type",value:e.type.length,line:`${h(e.type.length,"size")}, the smallest ${String(e.smallest)} pt: ${e.type.map(t=>`${String(t.size)} pt weight ${String(t.weight)} on ${h(t.slides,"slide")} (${h(t.shapes,"shape")})`).join("; ")}`}}case"read-size":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:1/Math.max(.1,e.screen?.arcmin??e.size),line:`${e.shape} ${E(e.text)}: ${String(e.size)} pt${e.xHeight===void 0?"":`, x ${String(e.xHeight)} pt`}${e.screen?`; ${e.screen.by==="x"?"its lowercase x":"its characters"} ${String(e.screen.mm)} mm on the screen, ${String(e.screen.arcmin)} arcmin from the farthest seat`:""}; ${String(e.phone)} pt on the phone`}}case"words-on-slide":{const e=n.data;return{key:"words",value:e.words,line:`${h(e.words,"word")}, ${h(e.lines,"line")}, ${h(e.texts,"text")}`}}case"picture-resolution":{const e=n.data;return{key:e.shape,value:e.scale,line:`${e.shape} ${f(e.box)} pt: ${String(e.shown[0])}×${String(e.shown[1])} of its ${String(e.source[0])}×${String(e.source[1])} px drawn ${String(e.scale)}× (${String(e.ppi)} ppi on the slide)${Math.abs(e.stretch)>.005?`, stretched ${F(e.stretch)}`:""}`}}case"chart-data":{const e=n.data,t=e.low===void 0||e.high===void 0?"no numbers":`${String(e.low)} to ${String(e.high)}`;return{key:e.shape,value:e.series,line:`${e.shape}: ${e.type}, ${String(e.categories)} categories, ${String(e.series)} series, ${t}; ${e.source===void 0?"its numbers are written in the deck":`from ${e.source}`}`}}case"line-ends":{const e=n.data,t=r=>r.glued!==void 0?`glued to ${r.glued}`:r.near===void 0?`at (${String(r.at[0])}, ${String(r.at[1])}), no shape near`:(r.by??0)===0?`on ${r.near}`:`${String(r.by)} pt from ${r.near}`,a=r=>`${t(r)}${r.head==="none"?"":` (${r.head} head)`}`,[s,o]=e.ends;return{key:e.shape,value:Math.max(...e.ends.map(r=>r.by??0)),line:`${e.shape}: ${s?a(s):""} → ${o?a(o):""}`}}case"table-grown":{const e=n.data;return{key:e.shape,value:e.drawn-e.set,line:`${e.shape}: ${String(e.drawn)} pt tall, set ${String(e.set)} pt; ${e.rows.map(t=>`row ${String(t.row+1)} ${String(t.set)} → ${String(t.drawn)} pt`).join(", ")}`}}case"shape-hidden":{const e=n.data;return{key:`${e.shape}|${e.by??""}`,value:1,line:e.by===void 0?`${e.shape}: no step of the slide shows it`:`${e.shape}: covered whole by ${e.by}`}}case"deck-fonts":{const e=n.data;return{key:"fonts",value:e.fonts.filter(a=>!a.standard).length,line:e.fonts.map(a=>`${a.name} (${a.where})`).join(", ")}}case"page-fill":{const e=n.data;return{key:`p${String(e.page)}`,value:e.foot,line:`page ${String(e.page)}${e.landscape?" (on its side)":""}: ${h(e.lines,"line")}, ${h(e.blocks,"block")}, ${String(e.used)} mm of its text area used, ${String(e.foot)} mm left at its foot (${S(e.share)})${e.next===void 0?"":`; the next page starts with line ${String(e.next.line)} ${e.next.block}${e.next.words===""?"":` "${e.next.words}"`}, ${String(e.next.height)} mm high`}`}}case"page-split":{const e=n.data,t=e.lines??e.rows??[];return{key:`L${String(e.line)}`,value:e.pages.length,line:`line ${String(e.line)} ${e.block} "${e.words}": pages ${e.pages.join(", ")}, ${e.rows===void 0?"lines":"rows"} ${t.join(" + ")}${e.head===void 0?"":e.head?", its head set again on each page":", no head set again"}${e.last===void 0?"":`; its last line ${h(e.last.chars,"character")}, ${S(e.last.share)} of the column`}`}}case"page-heading":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.after,line:`line ${String(e.line)} h${String(e.level)} "${e.words}": page ${String(e.page)}, ${String(e.below)} mm above its foot, ${h(e.after,"line")} after it on the page`}}case"page-short-line":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.chars,line:`line ${String(e.line)} "${e.words}": page ${String(e.page)}, its last line ${h(e.chars,"letter")}, ${S(e.share)} of the column`}}case"page-overflow":{const e=n.data;return{key:`L${String(e.line)}`,value:e.past,line:`line ${String(e.line)} ${e.block} "${e.words}" (page ${e.pages.join(", ")}): ${String(e.past)} mm past the column${e.cut>0?`, ${String(e.cut)} mm past the paper's edge, which is cut`:""}`}}case"page-kinsoku":{const e=n.data;return{key:`L${String(e.line)}|${String(e.page)}|${e.at}|${e.char}`,value:1,line:`line ${String(e.line)} "${e.words}": a line on page ${String(e.page)} ${e.at==="start"?"starts":"ends"} with ${e.char}`}}case"page-figure":{const e=n.data;return{key:`L${String(e.line)}`,value:1,line:`line ${String(e.line)} ${e.label}${e.id===void 0?"":` (#${e.id})`}: page ${String(e.page)}; ${e.referenced.length===0?"no link names it":`named on page ${e.referenced.join(", ")}`}`}}case"page-picture":{const e=n.data;return{key:`L${String(e.line)}`,value:e.scale,line:`line ${String(e.line)} a ${e.block} drawn at ${String(Math.round(e.scale*100))}% of its size, ${String(e.width)} mm wide${e.text===void 0?"":`: its words ${String(e.text)} pt`}${e.crossings===void 0?"":`; its lines cross ${String(e.crossings)} time${e.crossings===1?"":"s"}`}`}}case"page-grid":{const e=n.data;return{key:"grid",value:1,line:`${String(e.chars.median)} characters to a full line (${String(e.chars.min)}–${String(e.chars.max)}), ${String(e.lines.median)} lines of paragraphs to a page (${String(e.lines.max)} at most)${e.grid===void 0?"":`; its front matter's grid ${String(e.grid.chars)} × ${String(e.grid.lines)}`}`}}case"page-contents":{const e=n.data;return{key:"contents",value:e.passes,line:`printed ${h(e.passes,"time")} for its contents' page numbers, ${e.settled?"which hold":"which did not hold: a number may be a page off"}; ${h(e.headings,"heading")}`}}case"cut-in-word":{const e=n.data;return{key:`${e.source}|${e.side}|${String(e.at)}`,value:Math.min(e.at-e.wordStart,e.wordEnd-e.at),line:`${e.source}: the stretch's ${e.side} at ${d(e.at)} s cuts "${e.word}" (${d(e.wordStart)}–${d(e.wordEnd)} s)`}}default:return}}function L(n,e){const t=n.t===void 0?0:n.t-e;return a=>(a+t).toFixed(2)}function P(n,e,t,a){const[s,o]=t.b<t.a?[[e,t.b],[n,t.a]]:[[n,t.a],[e,t.b]];return`moving ${s[0]} ${w(s[1])} ${a} (${o[0]} ${w(o[1])}) clears them`}const w=n=>Math.abs(n)<.1?`${(n*1e3).toFixed(1)} mm`:`${n.toFixed(3)} m`,C=5;function R(n,e){const t=s=>`${String(s.speed)} px/s${s.angle===void 0?"":` at ${String(s.angle)}°`}`,a=e.list.map(s=>`${s.layer} ${s.what}${s.name?` (${s.name})`:""} ${f(s.box)} ${t(s)}${s.scale!==0?`, size ${s.scale>0?"+":""}${String(Math.round(s.scale*100))}%/s`:""}`);return` ${n} (${e.part} ${d(e.from)}–${d(e.to)} s): ${String(e.moving)} of ${h(e.things,"thing")} moving${e.overall?`, together ${t(e.overall)}`:""}${e.picture?`; the picture ${t(e.picture)} (difference ${String(e.picture.still)} → ${String(e.picture.match)} after the shift)`:""}${a.length>0?`: ${a.join("; ")}`:""}`}function W(n,e){const t=n.data.text;if(typeof t!="object"||t===null||!("layer"in t))return;const a=t,s=`${y(a)}: `;if(e.startsWith(s))return{layer:a.layer,text:a.text,what:e.slice(s.length)}}const B=3,D=8;function V(n,e=!1){const t=new Map;for(const i of n){const $=_(i);if($===void 0)continue;const m=`${i.part??""}|${$.key}`,c=t.get(m);if(!c){const l=W(i,$.line);t.set(m,{part:i.part,...i.output==="slides"?{slide:!0}:{},first:i.t,last:i.t,count:1,worst:$.value,line:$.line,...l?{text:l}:{},...$.alike?{alike:$.alike}:{}});continue}if(c.count++,i.t!==void 0&&(c.first=Math.min(c.first??i.t,i.t),c.last=Math.max(c.last??i.t,i.t)),$.value>c.worst){c.worst=$.value,c.line=$.line,$.alike&&(c.alike=$.alike);const l=W(i,$.line);l?c.text=l:delete c.text}}const a=[...t.values()].sort((i,$)=>$.worst-i.worst),s=new Map;if(!e)for(const i of a){if(!i.text)continue;const $=`${i.text.layer}|${i.text.what}`;s.set($,[...s.get($)??[],i])}const o=new Map;if(!e)for(const i of a){if(!i.alike||i.count>1)continue;const $=i.alike.what;o.set($,[...o.get($)??[],i])}const r=[],u=new Set;for(const i of a){if(u.has(i))continue;const $=i.alike?o.get(i.alike.what):void 0;if($&&$.length>1&&i.alike){for(const v of $)u.add(v);const x=Math.min(...$.map(v=>v.alike?.span[0]??0)),b=Math.max(...$.map(v=>v.alike?.span[1]??0)),j=$.flatMap(v=>v.part?[v.part]:[]),T=j.length>D?`${j.slice(0,D).join(", ")} and ${String(j.length-D)} more`:j.join(", ");r.push(` ${d(x)}–${d(b)} s, the same in ${String($.length)} parts (${T}): ${i.alike.what} (--all lists each)`);continue}const m=i.text?s.get(`${i.text.layer}|${i.text.what}`):void 0;if(!m||m.length<2||!i.text){r.push(g(i));continue}for(const x of m)u.add(x);const c=m.flatMap(x=>[x.first,x.last].filter(b=>b!==void 0)),l=[...new Set(m.flatMap(x=>x.part?[x.part]:[]))],p=Math.min(...c),k=Math.max(...c),A=c.length===0?"":p===k?`${d(p)} s `:`${d(p)}–${d(k)} s `,z=m.slice(0,B).map(x=>E(x.text?.text??"")),O=m.length>B?` and ${String(m.length-B)} more`:"";r.push(` ${A}${l.length>0?`${l.length===1?l[0]??"":`${String(l.length)} parts`}: `:""}${i.text.layer}: ${String(m.length)} texts, each ${i.text.what}: ${z.join(", ")}${O} (--all lists each)`)}return r;function g(i){return` ${i.first===void 0||i.slide?"":i.count===1||i.first===i.last?`${d(i.first)} s `:`${d(i.first)}–${d(i.last??i.first)} s (${String(i.count)} moments, the most shown) `}${i.part?`${i.part}: `:""}${i.line}`}}function q(n){const e=n[0];if(e?.kind==="text-contrast"){const a=e.data.options;return`; WCAG 2.1 ratios over the pixels behind each line's glyphs, the ${String(a.percentile)}th percentile, captured at ${String(a.scale)}× the frame's pixels, blocks at ${S(a.opacity)} opacity or more. WCAG AA: 4.5:1 (3:1 for large text, 24 px or 18.66 px bold, in CSS pixels), AAA 7:1 (4.5:1)`}if(e?.kind==="cut-seam"){const a=e.data.options;return`; velocities over ${String(a.frames)} frames each side, at rest under ${String(a.rest)} px/s; ${a.top>0?`the ${String(a.top)} largest things listed each side, moving ones first`:"every thing listed"}; 0° is rightward, 90° downward, ±180° leftward`}if(e?.kind==="near-alignment"){const a=e.data.options;return`; lines more than ${String(a.aligned)} pt and up to ${String(a.within)} pt apart`}if(e?.kind==="page-heading")return`; listed when fewer than ${h(e.data.options.lines,"line")} follow it on its page (--heading-lines; --all lists every one)`;if(e?.kind==="page-short-line")return`; listed at ${h(e.data.options.chars,"letter")} or fewer (--short-line; --all lists every one)`;if(e?.kind==="placement-drift")return`; places more than ${String(e.data.options.drift)} pt apart`;if(e?.kind==="read-size"){const{room:a,phone:s}=e.data.options;return`${a?`; a screen ${String(a.screen)} m wide, the farthest seat ${String(a.distance)} m away`:""}; a ${String(s[0])}×${String(s[1])} pt phone`}if(e?.kind!=="text-time"&&e?.kind!=="words-on-screen")return"";const t=e.data.options;return`; whole: every text node at ${S(t.opacity)} opacity or more with ${S(t.shown)} or more of its glyphs showing, each part looked at every ${String(t.every)} s`}const X=3,Q=20;export function formatFacts(n,e={}){const t=[],a=J(H()),s=new Set(n.map(u=>u.kind)).size>1,o=s?X:Q,r=new Map;for(const u of n){const g=K(u);r.set(g,[...r.get(g)??[],u])}for(const[u,g]of r){const i=l=>{const p=g.find(k=>k.kind===l);return p!==void 0&&_(p)!==void 0},$=[...new Set(g.map(l=>l.kind))].filter(l=>!a.some(p=>p.kind===l)||!i(l)),m=[...a.filter(l=>!$.includes(l.kind)),...$.map(l=>({kind:l,about:a.find(p=>p.kind===l)?.about??l}))],c=m.map(({kind:l})=>[l,g.filter(p=>p.kind===l).length]).filter(([,l])=>l>0).map(([l,p])=>`${l} ${String(p)}`);t.push(`${u}: ${c.join(", ")}`);for(const{kind:l,about:p}of m){const k=g.filter(b=>b.kind===l);if(k.length===0)continue;if($.includes(l)){const b=e.all===!0?k:k.slice(0,o),j=k.length-b.length;t.push(` ${p}${p===l?"":` (${l})`}:`,...b.map(T=>` ${JSON.stringify(T.data)}`),...j>0?[` … ${String(j)} more (${s?`--kind ${l}`:"--all"})`]:[]);continue}const A=k,z=V(A,e.all===!0),O=e.all===!0?z:z.slice(0,o),x=z.length-O.length;t.push(` ${p} (${l})${q(A)}:`,...O,...x>0?[` … ${String(x)} more (${s?`--kind ${l}`:"--all"})`]:[])}}return t}export const textOnScreen=n=>`${y(n)}${n.fonts?` in ${n.fonts.join(", ")}`:""}`;
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{factsOf as $}from"@allyhub/diagnostics";import{comboKey as p}from"@allyhub/piece";import{plural as a}from"./plural.js";import{consoleJson as g}from"@allyhub/project";import{formatConsole as x}from"./console-text.js";export function formatStats(t){const{total:s,checked:i,reused:o,covered:n}=t.outputs;return o===0&&n===0?`${a(s,"version")}, all checked this time`:i===0&&n===0?`${a(s,"version")} unchanged, results reused from the last check`:`${a(s,"version")}: ${[i>0?`${String(i)} checked this time`:"",o>0?`${String(o)} unchanged with results reused from the last check`:"",n>0?`${String(n)} made of parts checked in the others`:""].filter(Boolean).join(", ")}`}const z={error:"✖",warn:"⚠"};export function formatProblem(t){const s=[t.piece,t.combo?p(t.combo):void 0,t.format,t.part,t.t===void 0?void 0:`${t.t.toFixed(2)} s`].filter(Boolean).join(" · "),i=t.where?.file?` (${t.where.file}${t.where.line?`:${String(t.where.line)}`:""})`:"";return`${z[t.level]} ${t.code}${s?` [${s}]`:""} ${t.message}${i}`}export function formatReading(t){const s=t,i=$(s,"text-time").filter(e=>e.data.words>0);if(i.length===0)return;const o=e=>[e.piece,e.combo?p(e.combo):void 0,e.format,e.part,e.t===void 0?void 0:`${e.t.toFixed(2)} s`].filter(r=>r!==void 0&&r!=="").join(" · "),n=e=>e.length>40?`${e.slice(0,40)}…`:e,d=i.filter(e=>e.data.seconds>0),h=e=>e.data.seconds/e.data.words,c=d.reduce((e,r)=>!e||h(r)<h(e)?r:e,void 0),u=$(s,"words-on-screen").reduce((e,r)=>!e||r.data.words>e.data.words?r:e,void 0),l=d.reduce((e,r)=>r.data.size&&(!e?.data.size||r.data.size.phone<e.data.size.phone)?r:e,void 0),f=d.reduce((e,r)=>r.data.size?.lowercase&&(!e?.data.size?.lowercase||r.data.size.lowercase.phone<e.data.size.lowercase.phone)?r:e,void 0),m=i.length-d.length,w=[c?`least time per word ${h(c).toFixed(2)} s ("${n(c.data.text.text)}", ${a(c.data.words,"word")} whole for ${c.data.seconds.toFixed(2)} s; ${o(c)})`:void 0,l?.data.size?`smallest on a ${String(l.data.options.phone[0])}-point phone ${String(l.data.size.phone)} pt ("${n(l.data.text.text)}", ${String(l.data.size.px)} px; ${o(l)})`:void 0,f?.data.size?.lowercase?`smallest lowercase on a phone ${String(f.data.size.lowercase.phone)} pt ("${n(f.data.text.text)}", ${String(f.data.size.lowercase.px)} px; ${o(f)})`:void 0,m>0?`${a(m,"text")} never whole`:void 0,u?`most words whole at once ${String(u.data.words)} (${u.data.from.toFixed(2)}–${u.data.until.toFixed(2)} s; ${o(u)})`:void 0].filter(e=>e!==void 0);return`Text on screen, ${a(i.length,"text")} timed: ${w.join("; ")}. Each one: allyhub inspect --kind text-time,words-on-screen`}function S(t){const s=new Map;for(const o of t)s.set(o.kind,(s.get(o.kind)??0)+1);const i=[...s.entries()].sort((o,n)=>n[1]-o[1]).map(([o])=>o);return`${i.slice(0,4).join(", ")}${i.length>4?"…":""}`}export function formatCheck(t){const s=new Set(t.targets.map(n=>n.piece)).size,i=Object.entries(t.items).sort(([n],[d])=>n.localeCompare(d)).map(([n,d])=>a(d,n)),o=[[s>0||i.length===0?`${a(s,"piece")} · ${formatStats(t.stats)}`:void 0,...i].filter(n=>n!==void 0).join(" · ")];o.push(...x(g(t.console)));for(const n of t.problems)o.push(formatProblem(n));if(t.facts.length>0){o.push(`${a(t.facts.length,"measurement")} for you to judge (${S(t.facts)}): allyhub inspect`);const n=formatReading(t.facts);n!==void 0&&o.push(n)}return o.push(formatCounts(t.check)),o.join(`
3
- `)}export function formatCounts(t){return`Result: ${String(t.errors)} must-fix, ${a(t.warnings,"suggestion")}`}
2
+ import{factsOf as $}from"@allyhub/diagnostics";import{comboKey as w}from"@allyhub/piece";import{plural as i}from"./plural.js";import{consoleJson as x}from"@allyhub/project";import{formatConsole as g}from"./console-text.js";export function formatStats(t){const{total:a,checked:r,reused:s,covered:o}=t.outputs;return s===0&&o===0?`${i(a,"version")}, all checked this time`:r===0&&o===0?`${i(a,"version")} unchanged, results reused from the last check`:`${i(a,"version")}: ${[r>0?`${String(r)} checked this time`:"",s>0?`${String(s)} unchanged with results reused from the last check`:"",o>0?`${String(o)} made of parts checked in the others`:""].filter(Boolean).join(", ")}`}const z={error:"✖",warn:"⚠"};export function formatProblem(t){const a=[t.piece,t.combo?w(t.combo):void 0,t.format,t.part,t.t===void 0?void 0:`${t.t.toFixed(2)} s`].filter(Boolean).join(" · "),r=t.where?.file?` (${t.where.file}${t.where.line?`:${String(t.where.line)}`:""})`:"";return`${z[t.level]} ${t.code}${a?` [${a}]`:""} ${t.message}${r}`}export function formatReading(t){const a=t,r=$(a,"text-time").filter(e=>e.data.words>0);if(r.length===0)return;const s=e=>[e.piece,e.combo?w(e.combo):void 0,e.format,e.part,e.t===void 0?void 0:`${e.t.toFixed(2)} s`].filter(n=>n!==void 0&&n!=="").join(" · "),o=e=>e.length>40?`${e.slice(0,40)}…`:e,d=r.filter(e=>e.data.seconds>0),m=e=>e.data.seconds/e.data.words,c=d.reduce((e,n)=>!e||m(n)<m(e)?n:e,void 0),u=$(a,"words-on-screen").reduce((e,n)=>!e||n.data.words>e.data.words?n:e,void 0),l=d.reduce((e,n)=>n.data.size&&(!e?.data.size||n.data.size.phone<e.data.size.phone)?n:e,void 0),h=d.reduce((e,n)=>n.data.size?.lowercase&&(!e?.data.size?.lowercase||n.data.size.lowercase.phone<e.data.size.lowercase.phone)?n:e,void 0),f=r.length-d.length,p=[c?`least time per word ${m(c).toFixed(2)} s ("${o(c.data.text.text)}", ${i(c.data.words,"word")} whole for ${c.data.seconds.toFixed(2)} s; ${s(c)})`:void 0,l?.data.size?`smallest on a ${String(l.data.options.phone[0])}-point phone ${String(l.data.size.phone)} pt ("${o(l.data.text.text)}", ${String(l.data.size.px)} px; ${s(l)})`:void 0,h?.data.size?.lowercase?`smallest lowercase on a phone ${String(h.data.size.lowercase.phone)} pt ("${o(h.data.text.text)}", ${String(h.data.size.lowercase.px)} px; ${s(h)})`:void 0,f>0?`${i(f,"text")} never whole`:void 0,u?`most words whole at once ${String(u.data.words)} (${u.data.from.toFixed(2)}–${u.data.until.toFixed(2)} s; ${s(u)})`:void 0].filter(e=>e!==void 0);return`Text on screen, ${i(r.length,"text")} timed: ${p.join("; ")}. Each one: allyhub inspect --kind text-time,words-on-screen`}export function formatCheck(t){const a=new Set(t.targets.map(o=>o.piece)).size,r=Object.entries(t.items).sort(([o],[d])=>o.localeCompare(d)).map(([o,d])=>i(d,o)),s=[[a>0||r.length===0?`${i(a,"piece")} · ${formatStats(t.stats)}`:void 0,...r].filter(o=>o!==void 0).join(" · ")];s.push(...g(x(t.console)));for(const o of t.problems)s.push(formatProblem(o));return s.push(formatCounts(t.check)),s.join(`
3
+ `)}export function formatCounts(t){return`Result: ${i(t.errors,"error")}, ${i(t.warnings,"warning")}`}
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{mkdir as u,readFile as f,writeFile as l}from"node:fs/promises";import{dirname as h,join as p}from"node:path";import{cacheHome as w}from"@allyhub/runtimes/home";import{behind as A,installOf as k,latestRelease as m,ownPackage as y}from"./self-upgrade.js";export const NO_UPDATE_NOTICE="ALLYHUB_NO_UPDATE_NOTICE";const r=1440*6e4,C=3e3,_=500;export const keptFile=i=>p(w(i),"cloud","cli-release.json");async function d(i){const t=await f(i,"utf8").catch(s=>{if(s.code!=="ENOENT")throw s});if(t===void 0)return{};const e=JSON.parse(t),n=s=>typeof s=="number"?s:void 0;return{checkedAt:n(e?.checkedAt),latest:typeof e?.latest=="string"?e.latest:void 0,latestAt:n(e?.latestAt),noticedAt:n(e?.noticedAt)}}async function o(i,t){await u(h(i),{recursive:!0}),await l(i,`${JSON.stringify(t)}
3
+ `)}export function noticeOff(i){const t=e=>e!==void 0&&e!==""&&e!=="0"&&e.toLowerCase()!=="false";return t(i.CI)||t(i[NO_UPDATE_NOTICE])}const O=i=>({version:i,now:Date.now,latest:(t,e)=>m(t,{timeoutMs:C,signal:e}),studios:async()=>(await k(await y())).kind==="studio"});export const noticeLine=(i,t)=>`AllyHub CLI ${i} is out (this is ${t}): allyhub upgrade`;export class UpdateCheck{env;deps;file;asked;stop=new AbortController;constructor(t,e){this.env=t,this.deps=e,this.file=keptFile(t),this.asked=this.ask()}async ask(){try{if(noticeOff(this.env)||await this.deps.studios())return!1;const t=await d(this.file),e=this.deps.now();if(t.checkedAt!==void 0&&e-t.checkedAt<r)return!1;await o(this.file,{...t,checkedAt:e});const n=await this.deps.latest(this.env,this.stop.signal);return await o(this.file,{...await d(this.file),latest:n,latestAt:e}),!0}catch{return!1}}async line(){try{let t;if(await Promise.race([this.asked,new Promise(c=>{t=setTimeout(()=>{c(void 0)},_)})]).finally(()=>{clearTimeout(t)})===void 0){this.stop.abort();return}if(noticeOff(this.env)||await this.deps.studios())return;const n=await d(this.file),s=this.deps.now();return n.latest===void 0||n.latestAt===void 0||s-n.latestAt>=r||!A(this.deps.version,n.latest)||n.noticedAt!==void 0&&s-n.noticedAt<r?void 0:(await o(this.file,{...n,noticedAt:s}),noticeLine(n.latest,this.deps.version))}catch{return}}}let a;export function startUpdateCheck(i,t){a!==void 0||noticeOff(i)||(a=new UpdateCheck(i,O(t)))}export const endUpdateCheck=async()=>a===void 0?void 0:a.line();
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{EXIT as a}from"@allyhub/protocol";import{runCheck as l}from"@allyhub/check";import{VERSION_FIELDS as p}from"@allyhub/build";import{ConsolePool as g,OpenedVersion as x,StuckError as k,ProjectError as y,indexNeeds as u,makeIndex as E,parseCombo as v}from"@allyhub/project";import{RenderError as b}from"@allyhub/render/errors";import{MediaError as I}from"@allyhub/media/errors";import{CommandError as d}from"./command.js";import{projectRoot as A}from"./project.js";import{indexing as h}from"./fields.js";import{extensionsAt as C,fileEditorsAt as O,kindsAt as w}from"./commands/extensions.js";export{p as VERSION_FIELDS};export function combosOf(e){return(e.combo??[]).map(t=>known(()=>v(t)))}const S={usage:a.usage,"not-found":a.notFound,failed:a.failed};export function commandError(e){return e instanceof d?e:e instanceof y?new d(e.code,e.message,{exit:S[e.kind],...e.hint===void 0?{}:{hint:e.hint}}):e instanceof b?new d(e.code,e.message,{exit:e.exit,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof I?new d(e.code,e.message,{exit:a.failed,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof k?new d("stuck",e.message,{exit:a.failed,hint:"A layer's render may run forever at that moment."}):e}export function known(e){try{return e()}catch(t){throw commandError(t)}}export async function withOpened(e,t,r,s){const n=await A(t.cwd,e.dir),m=combosOf(e),c=()=>x.open({root:n,kinds:w(n),...e.item===void 0?{}:{item:e.item},combos:m,purpose:r});let o;try{o=await c();const i=h(t.env)?u([{timeline:o.version.timeline}]):[];i.length>0&&await indexed(n,i,t)&&(await o.close(),o=await c())}catch(i){throw commandError(i)}try{const i=await s(o),f=new g(o.session.consoleLimit);return f.add(o.target,await o.console()),{result:i,problems:await o.problems(),console:f.report()}}catch(i){throw commandError(i)}finally{await o.close()}}export const withVersion=(e,t,r,s)=>withOpened(e,t,r,async n=>{const{OpenedFilm:m}=await import("@allyhub/video-measure");return s(new m(n))});export async function indexed(e,t,r){return(await E(e,t,C(e).mediaAnalyses(),{env:r.env,onProgress:n=>{(n.status!=="running"||n.share===void 0)&&r.progress(n.status==="failed"?`Could not index ${n.file}: ${n.message}`:n.message)},signal:r.signal})).done.length>0}export async function checkIndexed(e,t){const r={kinds:w(e.dir),files:O(e.dir),...e},s=await l(r),n=h(t.env)?u(s.results):[];return n.length===0||!await indexed(r.dir,n,t)?s:l({...r,fresh:!1})}
2
+ import{EXIT as e}from"@allyhub/protocol";import{runCheck as p}from"@allyhub/check";import{VERSION_FIELDS as h}from"@allyhub/build";import{ConsolePool as l,OpenedVersion as w,StuckError as x,ProjectError as E,parseCombo as k}from"@allyhub/project";import{RenderError as y}from"@allyhub/render/errors";import{MediaError as g}from"@allyhub/media/errors";import{CommandError as i}from"./command.js";import{projectRoot as b}from"./project.js";import{fileEditorsAt as O,kindsAt as d}from"./commands/extensions.js";export{h as VERSION_FIELDS};export function combosOf(t){return(t.combo??[]).map(o=>known(()=>k(o)))}const C={usage:e.usage,"not-found":e.notFound,failed:e.failed};export function commandError(t){return t instanceof i?t:t instanceof E?new i(t.code,t.message,{exit:C[t.kind],...t.hint===void 0?{}:{hint:t.hint}}):t instanceof y?new i(t.code,t.message,{exit:t.exit,...t.hint===void 0?{}:{hint:t.hint}}):t instanceof g?new i(t.code,t.message,{exit:e.failed,...t.hint===void 0?{}:{hint:t.hint}}):t instanceof x?new i("stuck",t.message,{exit:e.failed,hint:"A layer's render may run forever at that moment."}):t}export function known(t){try{return t()}catch(o){throw commandError(o)}}export async function withOpened(t,o,c,s){const a=await b(o.cwd,t.dir),m=combosOf(t),u=()=>w.open({root:a,kinds:d(a),...t.item===void 0?{}:{item:t.item},combos:m,purpose:c});let r;try{r=await u()}catch(n){throw commandError(n)}try{const n=await s(r),f=new l(r.session.consoleLimit);return f.add(r.target,await r.console()),{result:n,problems:await r.problems(),console:f.report()}}catch(n){throw commandError(n)}finally{await r.close()}}export const withVersion=(t,o,c,s)=>withOpened(t,o,c,async a=>{const{OpenedFilm:m}=await import("@allyhub/video-measure");return s(new m(a))});export function checkProject(t){return p({kinds:d(t.dir),files:O(t.dir),...t})}
package/dist/works.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect motion","inspect still","inspect contrast","inspect seams","inspect flash","inspect loop","inspect combos","inspect uses","audio","add search","add","dev","render"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","render"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","frames compare","inspect layout","inspect contrast","inspect uses","dev","render"],docs:["slides.md","layers.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","frames","inspect pages","inspect uses","dev","render"],docs:["docs.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect sheet","inspect uses","sheet","frames","check","dev","render"],docs:["sheets.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","render"],docs:["image.md","pictures.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","render","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"],docs:["canvas.md"]},{name:"x",title:"Writing for X: a post, a thread, a long post or an article",commands:["check","inspect","frames","dev","render"],docs:["x.md"]},{name:"linkedin",title:"Writing for LinkedIn: a post, a carousel or an article",commands:["check","inspect","frames","dev","render"],docs:["linkedin.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"setup",title:"This computer, the account and AllyHub's skills",commands:["skills","skills show","auth login","auth status","orgs list","orgs use","doctor","doctor extensions"]}];export function withJoined(e,a){const n=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return n.length===0?e:{...e,commands:[...e.commands,...n]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const n=new Set(WORKS.flatMap(t=>t.cloud?.works??[])),s=e.cloud.works;return a.filter(t=>t.work!==!1&&(s===void 0?!n.has(t.name):s.includes(t.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const n=cloudNouns(e,a);return n.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${n.map(s=>s.name).join(", ")}`}
2
+ export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect contrast","inspect seams","inspect loop","inspect combos","inspect uses","audio","add search","add","dev","export"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","export"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","frames compare","inspect layout","inspect contrast","inspect uses","dev","export"],docs:["slides.md","blocks.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","frames","inspect pages","inspect uses","dev","export"],docs:["docs.md","blocks.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect sheet","inspect uses","sheet","frames","check","dev","export"],docs:["sheets.md","blocks.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","export"],docs:["image.md","pictures.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","export","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"],docs:["canvas.md"]},{name:"x",title:"Writing for X: a post, a thread, a long post or an article",commands:["check","inspect","frames","dev","export"],docs:["x.md"]},{name:"linkedin",title:"Writing for LinkedIn: a post, a carousel or an article",commands:["check","inspect","frames","dev","export"],docs:["linkedin.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"setup",title:"This computer, the account, AllyHub's skills, this CLI's release and the project's formats",commands:["skills","skills show","auth login","auth status","orgs list","orgs use","doctor","doctor extensions","upgrade","migrate"]}];export function withJoined(e,a){const t=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return t.length===0?e:{...e,commands:[...e.commands,...t]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(n=>n.cloud?.works??[])),s=e.cloud.works;return a.filter(n=>n.work!==!1&&(s===void 0?!t.has(n.name):s.includes(n.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,a);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(s=>s.name).join(", ")}`}
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-CyhovuYE.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-D6oPWl_W.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-B2MPOVTU.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-Dx1fBVUG.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
1
+ import{m as e,t}from"./mermaid-parser.core-BxOSjBH9.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-DoUgmzGB.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-BXa-uRSi.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BOln9YdH.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-CyhovuYE.js";
1
+ import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-BxOSjBH9.js";