allyhub 0.8.0 → 0.10.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 (1719) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/NOTICE +122 -42
  3. package/client.d.ts +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +4 -4
  6. package/dist/commands/auth.js +4 -4
  7. package/dist/commands/check.js +1 -1
  8. package/dist/commands/cloud-tools.js +13 -7
  9. package/dist/commands/cloud.js +1 -1
  10. package/dist/commands/contributed.js +2 -0
  11. package/dist/commands/dev.js +2 -2
  12. package/dist/commands/doctor.js +4 -4
  13. package/dist/commands/extensions.js +3 -0
  14. package/dist/commands/frames/common.js +1 -1
  15. package/dist/commands/frames/compare.js +2 -2
  16. package/dist/commands/frames/cuts.js +1 -1
  17. package/dist/commands/frames/doc.js +1 -1
  18. package/dist/commands/frames/overlay.js +2 -0
  19. package/dist/commands/frames/piece.js +1 -1
  20. package/dist/commands/frames/sheet.js +1 -1
  21. package/dist/commands/frames.js +9 -9
  22. package/dist/commands/index.js +1 -1
  23. package/dist/commands/inspect/combos.js +2 -2
  24. package/dist/commands/inspect/common.js +4 -2
  25. package/dist/commands/inspect/facts.js +3 -3
  26. package/dist/commands/inspect/index.js +1 -1
  27. package/dist/commands/inspect/layout.js +1 -1
  28. package/dist/commands/inspect/views.js +2 -0
  29. package/dist/commands/mail.js +9 -0
  30. package/dist/commands/orgs.js +2 -2
  31. package/dist/commands/render.js +2 -2
  32. package/dist/fields.js +1 -1
  33. package/dist/help.js +4 -4
  34. package/dist/main.js +8 -7
  35. package/dist/media.js +1 -1
  36. package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
  37. package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
  38. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
  39. package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
  40. package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
  41. package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
  42. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
  43. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
  44. package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
  45. package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
  46. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
  47. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
  48. package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
  49. package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
  50. package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
  51. package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
  52. package/dist/node_modules/@allyhub/3d-extension/package.json +327 -0
  53. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  54. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  55. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  56. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +24 -0
  57. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
  58. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
  59. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
  60. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
  61. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
  62. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
  63. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
  64. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
  65. package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
  66. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
  67. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  68. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
  69. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
  70. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
  71. package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
  72. package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
  73. package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
  74. package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
  75. package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
  76. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
  77. package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
  78. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
  79. package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
  80. package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
  81. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
  82. package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
  83. package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
  84. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  85. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
  86. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
  87. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
  88. package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
  89. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
  90. package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
  91. package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
  92. package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
  93. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
  94. package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
  95. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
  96. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
  97. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
  98. package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
  99. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
  100. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
  101. package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
  102. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
  103. package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
  104. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
  105. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  106. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
  107. package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
  108. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
  109. package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
  110. package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
  111. package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
  112. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
  113. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  114. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
  115. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
  116. package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
  117. package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
  118. package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
  119. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
  120. package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
  121. package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
  122. package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
  123. package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
  124. package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
  125. package/dist/node_modules/@allyhub/build/package.json +1 -1
  126. package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
  127. package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
  128. package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
  129. package/dist/node_modules/@allyhub/canvas-extension/package.json +107 -0
  130. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +7 -0
  131. package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
  132. package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
  133. package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
  134. package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
  135. package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
  136. package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
  137. package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
  138. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  139. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  140. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  141. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  142. package/dist/node_modules/@allyhub/check/dist/cache.js +1 -1
  143. package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
  144. package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
  145. package/dist/node_modules/@allyhub/check/package.json +1 -1
  146. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
  147. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
  148. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  149. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
  150. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +53 -0
  151. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  152. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +34 -0
  153. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  154. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
  155. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  156. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
  157. package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
  158. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
  159. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  160. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
  161. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
  162. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  163. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
  164. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
  165. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
  166. package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
  167. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
  168. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
  169. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
  170. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
  171. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
  172. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
  173. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  174. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
  175. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
  176. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  177. package/dist/node_modules/@allyhub/components/package.json +1 -1
  178. package/dist/node_modules/@allyhub/components/r/callout.json +2 -4
  179. package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
  180. package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
  181. package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
  182. package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
  183. package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
  184. package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
  185. package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
  186. package/dist/node_modules/@allyhub/components/registry.json +6 -0
  187. package/dist/node_modules/@allyhub/components/src/callout.ts +165 -4
  188. package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
  189. package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
  190. package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
  191. package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
  192. package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
  193. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  194. package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
  195. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  196. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  197. package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
  198. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  199. package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
  200. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  201. package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
  202. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  203. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
  204. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  205. package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
  206. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  207. package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
  208. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  209. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  210. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
  211. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  212. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  213. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  214. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  215. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  216. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  217. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  218. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  219. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  220. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  221. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  222. package/dist/node_modules/@allyhub/doc/dist/captions.js +2 -0
  223. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  224. package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
  225. package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
  226. package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
  227. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  228. package/dist/node_modules/@allyhub/doc/dist/html.js +247 -57
  229. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  230. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  231. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  232. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
  233. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  234. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  235. package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
  236. package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
  237. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  238. package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
  239. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
  240. package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
  241. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
  242. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
  243. package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
  244. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
  245. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
  246. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
  247. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
  248. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
  249. package/dist/node_modules/@allyhub/doc-extension/package.json +202 -0
  250. package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
  251. package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
  252. package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
  253. package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
  254. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
  255. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
  256. package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
  257. package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
  258. package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
  259. package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
  260. package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
  261. package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
  262. package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
  263. package/dist/node_modules/@allyhub/export/package.json +1 -1
  264. package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
  265. package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
  266. package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
  267. package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
  268. package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
  269. package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
  270. package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
  271. package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
  272. package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
  273. package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
  274. package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
  275. package/dist/node_modules/@allyhub/extension-host/package.json +22 -0
  276. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  277. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  278. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  279. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  280. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  281. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  282. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  283. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  284. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  285. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  286. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  287. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  288. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  289. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  290. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  291. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  292. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  293. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  294. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  295. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  296. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  297. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  298. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  299. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  300. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  301. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  302. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  303. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  304. package/dist/node_modules/@allyhub/i18n/LICENSE +241 -0
  305. package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
  306. package/dist/node_modules/@allyhub/i18n/package.json +13 -0
  307. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  308. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  309. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  310. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  311. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  312. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  313. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  314. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  315. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  316. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  317. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  318. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  319. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  320. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  321. package/dist/node_modules/@allyhub/image-extension/LICENSE +241 -0
  322. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
  323. package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
  324. package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
  325. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
  326. package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
  327. package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
  328. package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
  329. package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
  330. package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
  331. package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
  332. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
  333. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
  334. package/dist/node_modules/@allyhub/image-extension/package.json +291 -0
  335. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +12 -0
  336. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  337. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  338. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  339. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  340. package/dist/node_modules/@allyhub/image-psd/LICENSE +241 -0
  341. package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
  342. package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
  343. package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
  344. package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
  345. package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
  346. package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
  347. package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
  348. package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
  349. package/dist/node_modules/@allyhub/image-render/package.json +14 -0
  350. package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
  351. package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
  352. package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
  353. package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
  354. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
  355. package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
  356. package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
  357. package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
  358. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  359. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  360. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  361. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  362. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  363. package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
  364. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  365. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  366. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  367. package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
  368. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  369. package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
  370. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  371. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  372. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  373. package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
  374. package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
  375. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  376. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
  377. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
  378. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
  379. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  380. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  381. package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
  382. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  383. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  384. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  385. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  386. package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
  387. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  388. package/dist/node_modules/@allyhub/media/NOTICE +1 -42
  389. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
  390. package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
  391. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
  392. package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
  393. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
  394. package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
  395. package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
  396. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
  397. package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
  398. package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
  399. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
  400. package/dist/node_modules/@allyhub/media/package.json +1 -1
  401. package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
  402. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
  403. package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
  404. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
  405. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
  406. package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
  407. package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
  408. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
  409. package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
  410. package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
  411. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
  412. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
  413. package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
  414. package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
  415. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
  416. package/dist/node_modules/@allyhub/media-extension/package.json +65 -0
  417. package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
  418. package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
  419. package/dist/node_modules/@allyhub/model/package.json +1 -1
  420. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  421. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  422. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  423. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  424. package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
  425. package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
  426. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  427. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  428. package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
  429. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
  430. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  431. package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
  432. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  433. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  434. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  435. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  436. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  437. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  438. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  439. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  440. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  441. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  442. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
  443. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
  444. package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
  445. package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
  446. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  447. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  448. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  449. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  450. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  451. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  452. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  453. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  454. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  455. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  456. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  457. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  458. package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
  459. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  460. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  461. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  462. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  463. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  464. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  465. package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
  466. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  467. package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
  468. package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
  469. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  470. package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
  471. package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
  472. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  473. package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
  474. package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
  475. package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
  476. package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
  477. package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
  478. package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
  479. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  480. package/dist/node_modules/@allyhub/project/package.json +1 -1
  481. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  482. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  483. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  484. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  485. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  486. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  487. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  488. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  489. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  490. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  491. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  492. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  493. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  494. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  495. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  496. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  497. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  498. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  499. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  500. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  501. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  502. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  503. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  504. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  505. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  506. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  507. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  508. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  509. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  510. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  511. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  512. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  513. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  514. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  515. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  516. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  517. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  518. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  519. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  520. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  521. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  522. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  523. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  524. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  525. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  526. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  527. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  528. package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
  529. package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
  530. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  531. package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
  532. package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
  533. package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
  534. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  535. package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
  536. package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
  537. package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
  538. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  539. package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
  540. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  541. package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
  542. package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
  543. package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
  544. package/dist/node_modules/@allyhub/render/package.json +1 -5
  545. package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
  546. package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
  547. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  548. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  549. package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
  550. package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
  551. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  552. package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
  553. package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
  554. package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
  555. package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
  556. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  557. package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
  558. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  559. package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
  560. package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
  561. package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
  562. package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
  563. package/dist/node_modules/@allyhub/runtime/package.json +1 -5
  564. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  565. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  566. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  567. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  568. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  569. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  570. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  571. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  572. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  573. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  574. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  575. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  576. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -5
  577. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  578. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  579. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  580. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  581. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  582. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  583. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  584. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  585. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  586. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  587. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
  588. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
  589. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
  590. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
  591. package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
  592. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
  593. package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
  594. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
  595. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
  596. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +6 -5
  597. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  598. package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
  599. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +2 -2
  600. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  601. package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
  602. package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
  603. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
  604. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
  605. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
  606. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
  607. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
  608. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
  609. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
  610. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
  611. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
  612. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
  613. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
  614. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
  615. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
  616. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
  617. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
  618. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
  619. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
  620. package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
  621. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  622. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  623. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  624. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  625. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  626. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  627. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  628. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  629. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  630. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  631. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  632. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  633. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  634. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  635. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  636. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  637. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  638. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  639. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  640. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  641. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  642. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  643. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  644. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  645. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  646. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  647. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  648. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  649. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  650. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  651. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  652. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  653. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  654. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  655. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  656. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  657. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  658. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  659. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  660. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  661. package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
  662. package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
  663. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
  664. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
  665. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
  666. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
  667. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
  668. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
  669. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
  670. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
  671. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
  672. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
  673. package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
  674. package/dist/node_modules/@allyhub/sheet-extension/package.json +228 -0
  675. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  676. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  677. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  678. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  679. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  680. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  681. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  682. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  683. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  684. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  685. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  686. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  687. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  688. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  689. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  690. package/dist/node_modules/@allyhub/slides-extension/LICENSE +241 -0
  691. package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
  692. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
  693. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
  694. package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
  695. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
  696. package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
  697. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
  698. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
  699. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
  700. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
  701. package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
  702. package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
  703. package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
  704. package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
  705. package/dist/node_modules/@allyhub/slides-extension/package.json +265 -0
  706. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  707. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  708. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  709. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  710. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
  711. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  712. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  713. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  714. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  715. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  716. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  717. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
  718. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  719. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  720. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  721. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  722. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  723. package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
  724. package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
  725. package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
  726. package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
  727. package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
  728. package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
  729. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  730. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
  731. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
  732. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
  733. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
  734. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
  735. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
  736. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
  737. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
  738. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
  739. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
  740. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
  741. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
  742. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
  743. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
  744. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
  745. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
  746. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
  747. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
  748. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
  749. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
  750. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
  751. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
  752. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
  753. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
  754. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
  755. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
  756. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
  757. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
  758. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
  759. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
  760. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
  761. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
  762. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
  763. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
  764. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
  765. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
  766. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
  767. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
  768. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
  769. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
  770. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
  771. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
  772. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
  773. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
  774. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
  775. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
  776. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
  777. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
  778. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
  779. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
  780. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
  781. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
  782. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
  783. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
  784. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
  785. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
  786. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
  787. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
  788. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
  789. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
  790. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
  791. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
  792. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
  793. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
  794. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
  795. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
  796. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
  797. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
  798. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
  799. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
  800. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
  801. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
  802. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
  803. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
  804. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
  805. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
  806. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
  807. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
  808. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
  809. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
  810. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
  811. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
  812. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
  813. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
  814. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
  815. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
  816. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
  817. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
  818. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
  819. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
  820. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  821. package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
  822. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
  823. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  824. package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
  825. package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
  826. package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
  827. package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
  828. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
  829. package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
  830. package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
  831. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  832. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  833. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  834. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  835. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  836. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  837. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  838. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  839. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  840. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  841. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  842. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  843. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  844. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  845. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  846. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  847. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  848. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  849. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  850. package/dist/node_modules/@allyhub/video-extension/LICENSE +241 -0
  851. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
  852. package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
  853. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
  854. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
  855. package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
  856. package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
  857. package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
  858. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
  859. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
  860. package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
  861. package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
  862. package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
  863. package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
  864. package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
  865. package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
  866. package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
  867. package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
  868. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
  869. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
  870. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
  871. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
  872. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
  873. package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
  874. package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
  875. package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
  876. package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
  877. package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
  878. package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
  879. package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
  880. package/dist/node_modules/@allyhub/video-extension/package.json +469 -0
  881. package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
  882. package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
  883. package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
  884. package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
  885. package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
  886. package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
  887. package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
  888. package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
  889. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
  890. package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
  891. package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
  892. package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
  893. package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
  894. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
  895. package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
  896. package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
  897. package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
  898. package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
  899. package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
  900. package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
  901. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  902. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  903. package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
  904. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  905. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  906. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  907. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  908. package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
  909. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  910. package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
  911. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  912. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  913. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  914. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  915. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  916. package/dist/node_modules/@allyhub/website/dist/publish.js +2 -2
  917. package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
  918. package/dist/node_modules/@allyhub/website/package.json +1 -1
  919. package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
  920. package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
  921. package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
  922. package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
  923. package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
  924. package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
  925. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
  926. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +25 -0
  927. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
  928. package/dist/node_modules/@allyhub/website-extension/package.json +199 -0
  929. package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
  930. package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
  931. package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
  932. package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
  933. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
  934. package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
  935. package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
  936. package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
  937. package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
  938. package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
  939. package/dist/node_modules/@allyhub/x-extension/package.json +307 -0
  940. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +12 -0
  941. package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
  942. package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
  943. package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
  944. package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
  945. package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
  946. package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
  947. package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
  948. package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
  949. package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
  950. package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
  951. package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
  952. package/dist/node_modules/@allyhub/x-model/package.json +14 -0
  953. package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
  954. package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
  955. package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
  956. package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
  957. package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
  958. package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
  959. package/dist/node_modules/@allyhub/x-view/package.json +21 -0
  960. package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
  961. package/dist/package.json +16 -0
  962. package/dist/parameters.js +1 -1
  963. package/dist/presence.js +2 -0
  964. package/dist/project.js +1 -1
  965. package/dist/sdk-docs.js +1 -1
  966. package/dist/text/batch-text.js +1 -1
  967. package/dist/text/console-text.js +1 -1
  968. package/dist/text/facts-text.js +5 -5
  969. package/dist/text/format.js +2 -2
  970. package/dist/text/index.js +1 -1
  971. package/dist/text/long-text.js +4 -0
  972. package/dist/tool-options.js +1 -1
  973. package/dist/version.js +1 -1
  974. package/dist/works.js +1 -1
  975. package/editor-web/assets/abnfDiagram-WEYOIA3C-CjAmWsNR.js +1 -0
  976. package/editor-web/assets/alt-DnBZJzEh.js +4 -0
  977. package/editor-web/assets/architecture-WOLXFQ4H-DeeKhyhZ.js +1 -0
  978. package/editor-web/assets/architectureDiagram-ZHVYKT53-b32qTaJg.js +36 -0
  979. package/editor-web/assets/arrow-up-L4YV_65f.js +1 -0
  980. package/editor-web/assets/article-DLMjAdbP.js +73 -0
  981. package/editor-web/assets/audio-lines-BFcM7G2L.js +1 -0
  982. package/editor-web/assets/blockDiagram-RJAE7QA3-BNbnMNmw.js +140 -0
  983. package/editor-web/assets/button-Chk675Xu.js +41 -0
  984. package/editor-web/assets/c4Diagram-XDPPPE54-BEuemvMw.js +38 -0
  985. package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
  986. package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
  987. package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
  988. package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
  989. package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
  990. package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
  991. package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
  992. package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
  993. package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
  994. package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
  995. package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
  996. package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
  997. package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
  998. package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
  999. package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
  1000. package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
  1001. package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
  1002. package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
  1003. package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
  1004. package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
  1005. package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
  1006. package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
  1007. package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
  1008. package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
  1009. package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
  1010. package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
  1011. package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
  1012. package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
  1013. package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
  1014. package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
  1015. package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
  1016. package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
  1017. package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
  1018. package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
  1019. package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
  1020. package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
  1021. package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
  1022. package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
  1023. package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
  1024. package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
  1025. package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
  1026. package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
  1027. package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
  1028. package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
  1029. package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
  1030. package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
  1031. package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
  1032. package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
  1033. package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
  1034. package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
  1035. package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
  1036. package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
  1037. package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
  1038. package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
  1039. package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
  1040. package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
  1041. package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
  1042. package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
  1043. package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
  1044. package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
  1045. package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
  1046. package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
  1047. package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
  1048. package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
  1049. package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
  1050. package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
  1051. package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
  1052. package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
  1053. package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
  1054. package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
  1055. package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
  1056. package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
  1057. package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
  1058. package/editor-web/assets/channel-EzYq4r0d.js +1 -0
  1059. package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
  1060. package/editor-web/assets/choice-BgmBh4yu.js +1 -0
  1061. package/editor-web/assets/chunk-2E7WHVMD-Zb5nPx_e.js +88 -0
  1062. package/editor-web/assets/chunk-4EMNKR2T-DSEM2reX.js +1 -0
  1063. package/editor-web/assets/chunk-55XCU76K-BOZa_65H.js +1 -0
  1064. package/editor-web/assets/chunk-7S6XSTFO-DeiGeVpB.js +2 -0
  1065. package/editor-web/assets/chunk-AQDTSKZB-fPuQFBJc.js +72 -0
  1066. package/editor-web/assets/chunk-DSNLSHJZ-5vdnoak2.js +129 -0
  1067. package/editor-web/assets/chunk-HAGFOTED-DFF2mZJ1.js +62 -0
  1068. package/editor-web/assets/chunk-HNE4Q36P-g6-ZLbTg.js +1 -0
  1069. package/editor-web/assets/chunk-NQOKRVIF-o3hNcHMJ.js +213 -0
  1070. package/editor-web/assets/chunk-UHW7PFBP-BQiDI9dK.js +1 -0
  1071. package/editor-web/assets/chunk-VQ5W62QI-CJlMXWWz.js +1 -0
  1072. package/editor-web/assets/chunk-WQQL4CDK-pNBU8dXv.js +10 -0
  1073. package/editor-web/assets/chunk-YZO67HFG-2x-BiWd-.js +1 -0
  1074. package/editor-web/assets/chunk-ZAUX2LTX-etFStEM8.js +1 -0
  1075. package/editor-web/assets/chunk-ZCHMQSOR-B3AYRhIY.js +2 -0
  1076. package/editor-web/assets/classDiagram-v2-4MYWR3UA-6y2yX0oq.js +217 -0
  1077. package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
  1078. package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
  1079. package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
  1080. package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
  1081. package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
  1082. package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
  1083. package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
  1084. package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
  1085. package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
  1086. package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
  1087. package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
  1088. package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
  1089. package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
  1090. package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
  1091. package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
  1092. package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
  1093. package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
  1094. package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
  1095. package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
  1096. package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
  1097. package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
  1098. package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
  1099. package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
  1100. package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
  1101. package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
  1102. package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
  1103. package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
  1104. package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
  1105. package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
  1106. package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
  1107. package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
  1108. package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
  1109. package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
  1110. package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
  1111. package/editor-web/assets/cynefin-EF2NZ3EQ-CX4BTQQe.js +1 -0
  1112. package/editor-web/assets/cynefinDiagram-WF24UDRP-LbDkOTy3.js +62 -0
  1113. package/editor-web/assets/dagre-NK4GIZVX-wCKQk7hi.js +4 -0
  1114. package/editor-web/assets/diagram-CBK3MWTC-a9fofQwk.js +24 -0
  1115. package/editor-web/assets/diagram-I5XIIV2D-UCLZWch5.js +24 -0
  1116. package/editor-web/assets/diagram-ODIL2UCW-CAEe88Lp.js +30 -0
  1117. package/editor-web/assets/diagram-PFBEJUXE-Cp1o45bs.js +3 -0
  1118. package/editor-web/assets/diagram-RJA3I4VV-c6OVxDyq.js +41 -0
  1119. package/editor-web/assets/diagram-TYUNFSNR-BVRWslDM.js +200 -0
  1120. package/editor-web/assets/dist--KKyT5zP.js +340 -0
  1121. package/editor-web/assets/dist-1k0MHB3i.js +1 -0
  1122. package/editor-web/assets/dist-B9KHJqL5.js +4 -0
  1123. package/editor-web/assets/dist-BbJyrhIY.js +1 -0
  1124. package/editor-web/assets/dist-CJXCQxQM.js +37 -0
  1125. package/editor-web/assets/dist-D9xQGwe9.js +5 -0
  1126. package/editor-web/assets/dist-DFiLzbx8.js +219 -0
  1127. package/editor-web/assets/dist-DIPV6xfF.js +2 -0
  1128. package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
  1129. package/editor-web/assets/dist-Duw28VxJ.js +16 -0
  1130. package/editor-web/assets/dist-DwGhfliS.js +1 -0
  1131. package/editor-web/assets/dist-OBE2IIYP.js +24 -0
  1132. package/editor-web/assets/dist-YW8hS4IM.js +9 -0
  1133. package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
  1134. package/editor-web/assets/ebnfDiagram-V4P3TTPT-KdOTJgFu.js +1 -0
  1135. package/editor-web/assets/elk-QONTBCTQ-Cmlrp7qB.js +27 -0
  1136. package/editor-web/assets/erDiagram-KYQIGQAA-CBM7-aQm.js +99 -0
  1137. package/editor-web/assets/eventmodeling-K75KTNOO-CEoJkbuW.js +1 -0
  1138. package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
  1139. package/editor-web/assets/ganttDiagram-R7GPNTJY-D4S6ZSYD.js +292 -0
  1140. package/editor-web/assets/gitGraph-VSP46ZUC-BvkL6RSh.js +1 -0
  1141. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-lTGguloH.js +106 -0
  1142. package/editor-web/assets/hint-BimUgJms.js +1 -0
  1143. package/editor-web/assets/index-C-i_iuxN.js +28 -0
  1144. package/editor-web/assets/index-Cxh_Shkm.css +2 -0
  1145. package/editor-web/assets/info-OHQRW6UA-DvKzqNvp.js +1 -0
  1146. package/editor-web/assets/infoDiagram-MVDRKAX5-D7hCpehs.js +2 -0
  1147. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-Bg93sZQe.js +70 -0
  1148. package/editor-web/assets/italic-BQBwRTe8.js +1 -0
  1149. package/editor-web/assets/journeyDiagram-BOSHW7O7-CKm_KONJ.js +139 -0
  1150. package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
  1151. package/editor-web/assets/kanban-definition-FNSA4HC5-BKknnpTR.js +89 -0
  1152. package/editor-web/assets/layout-SWqqA0yV.js +1 -0
  1153. package/editor-web/assets/mermaid-parser.core-BzqkDnqL.js +7 -0
  1154. package/editor-web/assets/mermaid.core-CEpvTOAe.js +44 -0
  1155. package/editor-web/assets/mindmap-definition-6OY57UG3-BJ0qG8Wi.js +98 -0
  1156. package/editor-web/assets/minus-oPj1GxwA.js +1 -0
  1157. package/editor-web/assets/packet-JDAUHWVQ-ew3kvyFm.js +1 -0
  1158. package/editor-web/assets/pegDiagram-ECIUJNBX-DqUS2xit.js +1 -0
  1159. package/editor-web/assets/picture-B-I4V_JT.js +1 -0
  1160. package/editor-web/assets/pie-XZMESJXO-DTIAMPGm.js +1 -0
  1161. package/editor-web/assets/pieDiagram-GNMPY74T-DoKOE02-.js +39 -0
  1162. package/editor-web/assets/progress-CPEbDOoN.js +6 -0
  1163. package/editor-web/assets/quadrantDiagram-D57K4MC3-DauOpYun.js +7 -0
  1164. package/editor-web/assets/radar-ABXABTNO-BvMJXUU-.js +1 -0
  1165. package/editor-web/assets/railroad-I3PHUGI6-D3jdJmhM.js +1 -0
  1166. package/editor-web/assets/railroad-abnf-LNEFI6M7-Dm8ZpmPj.js +1 -0
  1167. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js +1 -0
  1168. package/editor-web/assets/railroad-peg-JR7BVNR7-CMrQL_7U.js +1 -0
  1169. package/editor-web/assets/railroadDiagram-Y72NRBL7-y99z0C7i.js +1 -0
  1170. package/editor-web/assets/react-DztDSW4P.js +1 -0
  1171. package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
  1172. package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
  1173. package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
  1174. package/editor-web/assets/repeat-2-DJi4LW5C.js +1 -0
  1175. package/editor-web/assets/requirementDiagram-EQYSW5RA-jMr_uoF6.js +84 -0
  1176. package/editor-web/assets/row-ClBisiBs.js +1 -0
  1177. package/editor-web/assets/sankeyDiagram-SY24JHO5-DcUyx03Q.js +40 -0
  1178. package/editor-web/assets/schemas-68mjUjP5.js +1 -0
  1179. package/editor-web/assets/sequenceDiagram-BLEHNHQU-R4X8wRCd.js +169 -0
  1180. package/editor-web/assets/session-2u9U7koW.js +1 -0
  1181. package/editor-web/assets/slides-BByblSSR.js +1 -0
  1182. package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
  1183. package/editor-web/assets/sound-DExlNJbb.js +1 -0
  1184. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BqvXKbCA.js +291 -0
  1185. package/editor-web/assets/strikethrough-CyUBnGTl.js +1 -0
  1186. package/editor-web/assets/svg-lBRT-uhy.js +1 -0
  1187. package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
  1188. package/editor-web/assets/swimlanes-B3ENRKFQ-hjTXIc6M.js +1 -0
  1189. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
  1190. package/editor-web/assets/switch-D0K-K8-C.js +1 -0
  1191. package/editor-web/assets/syntax-Bih_jv7W.js +1 -0
  1192. package/editor-web/assets/syntax-C0iPON60.js +18 -0
  1193. package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
  1194. package/editor-web/assets/textarea-Fu93tFO3.js +105 -0
  1195. package/editor-web/assets/timeline-definition-JXYKGLGB-BcSoN4Dq.js +120 -0
  1196. package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
  1197. package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
  1198. package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
  1199. package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
  1200. package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
  1201. package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
  1202. package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
  1203. package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
  1204. package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
  1205. package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
  1206. package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
  1207. package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
  1208. package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
  1209. package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
  1210. package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
  1211. package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
  1212. package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
  1213. package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
  1214. package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
  1215. package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
  1216. package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
  1217. package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
  1218. package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
  1219. package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
  1220. package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
  1221. package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
  1222. package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
  1223. package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
  1224. package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
  1225. package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
  1226. package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
  1227. package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
  1228. package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
  1229. package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
  1230. package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
  1231. package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
  1232. package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
  1233. package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
  1234. package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
  1235. package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
  1236. package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
  1237. package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
  1238. package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
  1239. package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
  1240. package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
  1241. package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
  1242. package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
  1243. package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
  1244. package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
  1245. package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
  1246. package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
  1247. package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
  1248. package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
  1249. package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
  1250. package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
  1251. package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
  1252. package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
  1253. package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
  1254. package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
  1255. package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
  1256. package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
  1257. package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
  1258. package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
  1259. package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
  1260. package/editor-web/assets/trash-2-BAKAeziW.js +1 -0
  1261. package/editor-web/assets/treeView-D4JQ5SDB-CsFN2jrc.js +1 -0
  1262. package/editor-web/assets/treemap-SAJKECNS-DP1eqXJ2.js +1 -0
  1263. package/editor-web/assets/undo-2-DQ5CBmki.js +1 -0
  1264. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BGxa0osF.js +328 -0
  1265. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D2XhTF49.js +34 -0
  1266. package/editor-web/assets/video-CDbPX4Cr.js +1 -0
  1267. package/editor-web/assets/wardley-7MLQ67FV-DM3jMAbZ.js +1 -0
  1268. package/editor-web/assets/wardleyDiagram-IVAIDKWA-Bf-DaZEg.js +78 -0
  1269. package/editor-web/assets/xychartDiagram-4URNHDU4-dp-mdcWd.js +7 -0
  1270. package/editor-web/index.html +8 -3
  1271. package/package.json +21 -5
  1272. package/dist/audio-text.js +0 -6
  1273. package/dist/cloud-hearing.js +0 -2
  1274. package/dist/commands/audio.js +0 -4
  1275. package/dist/commands/inspect/contrast.js +0 -2
  1276. package/dist/commands/inspect/fidelity.js +0 -2
  1277. package/dist/commands/inspect/joins.js +0 -2
  1278. package/dist/commands/inspect/motion.js +0 -4
  1279. package/dist/commands/inspect/sheet.js +0 -3
  1280. package/dist/commands/inspect/timeline.js +0 -3
  1281. package/dist/commands/model.js +0 -3
  1282. package/dist/commands/reference-text.js +0 -5
  1283. package/dist/commands/reference.js +0 -2
  1284. package/dist/commands/scenery-input.js +0 -2
  1285. package/dist/commands/scenery.js +0 -7
  1286. package/dist/commands/sheet.js +0 -8
  1287. package/dist/commands/site.js +0 -4
  1288. package/dist/commands/slides.js +0 -3
  1289. package/dist/commands/voice.js +0 -3
  1290. package/dist/commands/words-text.js +0 -6
  1291. package/dist/commands/words.js +0 -2
  1292. package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
  1293. package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
  1294. package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
  1295. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
  1296. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
  1297. package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
  1298. package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
  1299. package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
  1300. package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
  1301. package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
  1302. package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
  1303. package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
  1304. package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
  1305. package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
  1306. package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
  1307. package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
  1308. package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
  1309. package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
  1310. package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
  1311. package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
  1312. package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
  1313. package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
  1314. package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
  1315. package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
  1316. package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
  1317. package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
  1318. package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +0 -2
  1319. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  1320. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  1321. package/dist/node_modules/@allyhub/measure/dist/contrast.js +0 -2
  1322. package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
  1323. package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
  1324. package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
  1325. package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
  1326. package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
  1327. package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
  1328. package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
  1329. package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
  1330. package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
  1331. package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
  1332. package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
  1333. package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
  1334. package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
  1335. package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
  1336. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
  1337. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
  1338. package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
  1339. package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
  1340. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
  1341. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
  1342. package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
  1343. package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
  1344. package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
  1345. package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
  1346. package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
  1347. package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
  1348. package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
  1349. package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
  1350. package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
  1351. package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
  1352. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
  1353. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
  1354. package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
  1355. package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
  1356. package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
  1357. package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
  1358. package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
  1359. package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
  1360. package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
  1361. package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
  1362. package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
  1363. package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
  1364. package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
  1365. package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
  1366. package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
  1367. package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
  1368. package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
  1369. package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
  1370. package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
  1371. package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
  1372. package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
  1373. package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
  1374. package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
  1375. package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
  1376. package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
  1377. package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
  1378. package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
  1379. package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
  1380. package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
  1381. package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
  1382. package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
  1383. package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
  1384. package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
  1385. package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
  1386. package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
  1387. package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
  1388. package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
  1389. package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
  1390. package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
  1391. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
  1392. package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
  1393. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
  1394. package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
  1395. package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
  1396. package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
  1397. package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
  1398. package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
  1399. package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
  1400. package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
  1401. package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
  1402. package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
  1403. package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
  1404. package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
  1405. package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
  1406. package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
  1407. package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
  1408. package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
  1409. package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
  1410. package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
  1411. package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
  1412. package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
  1413. package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
  1414. package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
  1415. package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
  1416. package/dist/node_modules/@allyhub/runtime/dist/locate.js +0 -2
  1417. package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
  1418. package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
  1419. package/dist/node_modules/@allyhub/runtime/dist/stage.js +0 -2
  1420. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  1421. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  1422. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  1423. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  1424. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  1425. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  1426. package/dist/node_modules/@allyhub/sheet/dist/address.d.ts +0 -32
  1427. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
  1428. package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
  1429. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
  1430. package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
  1431. package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
  1432. package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
  1433. package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
  1434. package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
  1435. package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
  1436. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
  1437. package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
  1438. package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
  1439. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
  1440. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
  1441. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
  1442. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
  1443. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
  1444. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
  1445. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
  1446. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
  1447. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
  1448. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
  1449. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
  1450. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
  1451. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
  1452. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
  1453. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
  1454. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
  1455. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
  1456. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
  1457. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
  1458. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
  1459. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
  1460. package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
  1461. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
  1462. package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
  1463. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
  1464. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
  1465. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
  1466. package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
  1467. package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
  1468. package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
  1469. package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
  1470. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
  1471. package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
  1472. package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
  1473. package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
  1474. package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
  1475. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
  1476. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
  1477. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
  1478. package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
  1479. package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
  1480. package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
  1481. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
  1482. package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
  1483. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
  1484. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
  1485. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
  1486. package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
  1487. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
  1488. package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
  1489. package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
  1490. package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
  1491. package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
  1492. package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
  1493. package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
  1494. package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
  1495. package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
  1496. package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
  1497. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
  1498. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
  1499. package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
  1500. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
  1501. package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
  1502. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
  1503. package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
  1504. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
  1505. package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
  1506. package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
  1507. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
  1508. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
  1509. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
  1510. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
  1511. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
  1512. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
  1513. package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
  1514. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
  1515. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
  1516. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
  1517. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
  1518. package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
  1519. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
  1520. package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
  1521. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
  1522. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
  1523. package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
  1524. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
  1525. package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
  1526. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
  1527. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
  1528. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
  1529. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
  1530. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
  1531. package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
  1532. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
  1533. package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
  1534. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
  1535. package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
  1536. package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
  1537. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
  1538. package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
  1539. package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
  1540. package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
  1541. package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
  1542. package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
  1543. package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
  1544. package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
  1545. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
  1546. package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
  1547. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
  1548. package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
  1549. package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
  1550. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
  1551. package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
  1552. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
  1553. package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
  1554. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  1555. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
  1556. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
  1557. package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
  1558. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  1559. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  1560. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +0 -41
  1561. package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
  1562. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
  1563. package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
  1564. package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
  1565. package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
  1566. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
  1567. package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
  1568. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
  1569. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +0 -37
  1570. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  1571. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  1572. package/dist/node_modules/@allyhub/video-core/dist/render-types.d.ts +0 -49
  1573. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
  1574. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
  1575. package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
  1576. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  1577. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
  1578. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
  1579. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  1580. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
  1581. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
  1582. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
  1583. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
  1584. package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
  1585. package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
  1586. package/dist/text/timeline-text.js +0 -2
  1587. package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
  1588. package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
  1589. package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
  1590. package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
  1591. package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
  1592. package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
  1593. package/editor-web/assets/channel-hhT2g1yB.js +0 -1
  1594. package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
  1595. package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
  1596. package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
  1597. package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
  1598. package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
  1599. package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
  1600. package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
  1601. package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
  1602. package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
  1603. package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
  1604. package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
  1605. package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
  1606. package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
  1607. package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
  1608. package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
  1609. package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
  1610. package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
  1611. package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
  1612. package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
  1613. package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
  1614. package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
  1615. package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
  1616. package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
  1617. package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
  1618. package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
  1619. package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
  1620. package/editor-web/assets/dist-BRuoygB7.js +0 -2
  1621. package/editor-web/assets/dist-CK42vCmN.js +0 -550
  1622. package/editor-web/assets/dist-C_buDsM-.js +0 -36
  1623. package/editor-web/assets/dist-DNcXHhzn.js +0 -37
  1624. package/editor-web/assets/dist-HxiPpGXi.js +0 -10
  1625. package/editor-web/assets/dist-PF3VMsK7.js +0 -1
  1626. package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
  1627. package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
  1628. package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
  1629. package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
  1630. package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
  1631. package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
  1632. package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
  1633. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
  1634. package/editor-web/assets/hint-BwGc32IE.js +0 -1
  1635. package/editor-web/assets/index-BQKSbBSy.js +0 -69
  1636. package/editor-web/assets/index-CfD80QPx.css +0 -2
  1637. package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
  1638. package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
  1639. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
  1640. package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
  1641. package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
  1642. package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
  1643. package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
  1644. package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
  1645. package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
  1646. package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
  1647. package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
  1648. package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
  1649. package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
  1650. package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
  1651. package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
  1652. package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
  1653. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
  1654. package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
  1655. package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
  1656. package/editor-web/assets/react-BSSSHUyV.js +0 -101
  1657. package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
  1658. package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
  1659. package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
  1660. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
  1661. package/editor-web/assets/svg-BiObwMnL.js +0 -1
  1662. package/editor-web/assets/swatch-CwskGSEY.js +0 -105
  1663. package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
  1664. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
  1665. package/editor-web/assets/tabs-uHwPMprC.js +0 -1
  1666. package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
  1667. package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
  1668. package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
  1669. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
  1670. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
  1671. package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
  1672. package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
  1673. package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
  1674. /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
  1675. /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
  1676. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
  1677. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
  1678. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  1679. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  1680. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
  1681. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
  1682. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
  1683. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
  1684. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
  1685. /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
  1686. /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
  1687. /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
  1688. /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +0 -0
  1689. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  1690. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  1691. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  1692. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  1693. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  1694. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  1695. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  1696. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  1697. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  1698. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  1699. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  1700. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  1701. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  1702. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  1703. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  1704. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  1705. /package/dist/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
  1706. /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
  1707. /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
  1708. /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
  1709. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
  1710. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
  1711. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
  1712. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
  1713. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
  1714. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
  1715. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
  1716. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
  1717. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
  1718. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
  1719. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.js +0 -0
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{useStageRuntime as m}from"@allyhub/stage-page";import{STAGE_RUNTIME as o}from"./index.js";m(o);
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@allyhub/stage-runtime",
3
+ "version": "0.10.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ },
10
+ "./use": {
11
+ "types": "./dist/use.d.ts",
12
+ "default": "./dist/use.js"
13
+ }
14
+ },
15
+ "private": true,
16
+ "license": "SEE LICENSE IN LICENSE.md"
17
+ }
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{changesOf as K}from"./anchors.js";import{normText as p,joinWords as V,ScriptAlignment as v,WordStream as F}from"./words.js";import{speechWords as D}from"./speech.js";export const CAPTION_CUE_DEFAULTS={maxChars:42,maxCharsCjk:16,minSeconds:.8,maxSeconds:6,gapFrames:2};export function speechLines(c,s,i){return c.parts.flatMap(r=>{const o=r.speech,h=o?i[o.file]?.words:void 0;if(!o||!h?.length)return[];const a=D(h,o);if(a.length===0)return[];const n=s.find(t=>t.key===r.key),e=n?.spoken??V(a);return[{part:r.key,shown:e,spoken:n?.speak??e,words:a}]})}export function shownToSpoken(c,s){const i=(o,h)=>p(o.slice(0,h)).length,r=[[0,0]];for(const o of K(c,s))r.push([i(c,o.at),i(s,o.into)]),r.push([i(c,o.at+o.removed),i(s,o.into+o.inserted)]);return r.push([p(c).length,p(s).length]),o=>{for(let h=1;h<r.length;h++){const[a,n]=r[h-1]??[0,0],[e,t]=r[h]??[0,0];if(o>e&&h<r.length-1)continue;if(e<=a)return o<=a?n:t;const u=Math.max(0,Math.min(1,(o-a)/(e-a)));return n+(t-n)*u}return 0}}const b=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,G=/[。!?!?…]|\.(?=\s|$)/u,J=/[,、;:,;:—]/u,H=/[,、;:。,;:.\s]+$/u,P=(c,s)=>/[.,:;]/u.test(c[s]??"")&&/[0-9A-Za-z]/u.test(c[s+1]??"");export function keptSpans(c,s){const i=[],r=U(c).map(o=>({...o,n:p(o.w)}));for(const o of s){const h=p(o);if(!h)continue;if(b.test(o)){const n=[];Array.from(c).reduce((t,u)=>(p(u)&&n.push(t),t+u.length),0);const e=p(c);for(let t=e.indexOf(h);t>=0;t=e.indexOf(h,t+1)){const u=n[t],g=n[t+h.length-1];u!==void 0&&g!==void 0&&i.push([u,g+1])}continue}const a=o.split(/\s+/u).map(p).filter(Boolean);for(let n=0;n+a.length<=r.length;n++)if(a.every((e,t)=>r[n+t]?.n===e)){const e=r[n],t=r[n+a.length-1];e&&t&&i.push([e.from,t.to])}}return i}const _=(c,s)=>c.some(([i,r])=>s>i&&s<r);export function splitLine(c,s=b.test(c)?CAPTION_CUE_DEFAULTS.maxCharsCjk:CAPTION_CUE_DEFAULTS.maxChars,i=[]){const r=[],o=(a,n)=>{const e=c.slice(a,n),t=e.length-e.trimStart().length,u=e.trim();u&&r.push({text:u,from:a+t,to:a+t+u.length})},h=(a,n,e)=>{const t=c.slice(a,n);if(Array.from(t.trim()).length<=s){o(a,n);return}const g=e===0?G:e===1?J:void 0;if(g){let f=-1;for(let k=1;k<t.length-1;k++)g.test(t[k]??"")&&!P(t,k)&&!_(i,a+k+1)&&(f<0||Math.abs(k-t.length/2)<Math.abs(f-t.length/2))&&(f=k);if(f<0){h(a,n,e+1);return}h(a,a+f+1,e),h(a+f+1,n,e);return}const w=Math.floor(t.length/2),C=f=>f>0&&f<t.length&&!_(i,a+f);let x=-1;if(!b.test(t)){for(let f=w;f>0&&x<0;f--)t[f]===" "&&C(f)&&(x=f);for(let f=w;f<t.length&&x<0;f++)t[f]===" "&&C(f)&&(x=f)}for(let f=0;f<=t.length&&x<0;f++)C(w-f)?x=w-f:C(w+f)&&(x=w+f);if(x<0){o(a,n);return}h(a,a+x,e),h(a+x,n,e)};return h(0,c.length,0),r}export function captionCues(c,s={}){const{lines:i,fps:r}=c,o={...CAPTION_CUE_DEFAULTS,...s},h=[];for(const t of i){if(t.words.length===0)continue;const u=t.words,g=new v(new F(u),[t.spoken]),w=(M,l)=>{const d=u[g.wordAtChar(0,M)];return d?l?d.end:d.start:0};if((g.lines[0]?.length??0)===0)continue;const f=p(t.shown)===p(t.spoken)?M=>M:shownToSpoken(t.shown,t.spoken),k=b.test(t.shown)?o.maxCharsCjk:o.maxChars;for(const M of splitLine(t.shown,k)){const l=Math.round(f(p(t.shown.slice(0,M.from)).length)),d=Math.round(f(p(t.shown.slice(0,M.to)).length)),S=w(l,!1),A=w(Math.max(l,d-1),!0),T=b.test(M.text)?M.text.replace(H,""):M.text.replace(/[,;:]+$/u,"");T&&h.push({start:S,end:Math.max(A,S),text:T,part:t.part})}}const a=1/r,n=t=>Math.round(t*r)/r,e=h.map(t=>({...t,start:n(t.start),end:n(t.end)}));for(let t=0;t<e.length;t++){const u=e[t];if(!u)continue;const g=e[t+1],w=g?g.start-o.gapFrames*a:1/0;u.end=Math.min(Math.max(u.end,u.start+o.minSeconds),u.start+o.maxSeconds,w),u.end<=u.start&&(u.end=u.start+a)}return e}export function subtitleCues(c,s){return s===void 0?captionCues(c):wordCues(c.lines,{...s,fps:c.fps}).map(i=>({start:i.start,end:i.end,text:i.text,part:i.part}))}function U(c){const s=[],i=/\S+/gu;for(let r=i.exec(c);r;r=i.exec(c))s.push({w:r[0],from:r.index,to:r.index+r[0].length});return s}export function wordCues(c,s){const{fps:i}=s,r=[];for(const n of c){if(n.words.length===0)continue;const e=n.words,t=new v(new F(e),[n.spoken]);if((t.lines[0]?.length??0)===0)continue;const g=(l,d)=>{const S=e[t.wordAtChar(0,l)];return S?d?S.end:S.start:0},C=p(n.shown)===p(n.spoken)?l=>l:shownToSpoken(n.shown,n.spoken),x=(l,d)=>{const S=Math.round(C(p(n.shown.slice(0,l)).length)),A=Math.round(C(p(n.shown.slice(0,d)).length));return[g(S,!1),g(Math.max(S,A-1),!0)]},f=b.test(n.shown),k=s.maxChars??(f?16:32),M=keptSpans(n.shown,s.keep??[]);for(const l of splitLine(n.shown,k,M)){const d=(f?[{w:l.text,from:l.from,to:l.to}]:U(n.shown.slice(l.from,l.to)).map(m=>({w:m.w,from:m.from+l.from,to:m.to+l.from}))).filter(m=>p(m.w)!=="");if(d.length===0)continue;const S=s.maxWords&&s.maxWords>0?s.maxWords:d.length,A=Math.ceil(d.length/S),T=Math.ceil(d.length/A),O=[];d.forEach((m,L)=>{const W=d[L-1],j=O.at(-1);j&&W&&_(M,Math.ceil((W.to+m.from)/2))?j.push(m):O.push([m])});const I=[];let $=[];for(const m of O)$.length>0&&$.length+m.length>T&&(I.push($),$=[]),$.push(...m);$.length>0&&I.push($);for(const m of I){const L=m.map(E=>{const[N,B]=x(E.from,E.to);return{text:E.w,start:N,end:Math.max(B,N)}}),W=L[0],j=L.at(-1);if(!W||!j)continue;const z=m.map(E=>E.w).join(f?"":" ").replace(f?H:/[,;:]+$/u,"");r.push({start:W.start,end:j.end,text:z,part:n.part,words:L})}}}const o=n=>Math.round(n*i)/i,h=1/i,a=r.map(n=>({...n,start:o(n.start),end:o(n.end)}));for(let n=0;n<a.length;n++){const e=a[n];if(!e)continue;const t=a[n+1],u=t?.part===e.part;t&&u&&t.start-e.end<(s.close??.4)&&(e.end=t.start),e.end=Math.max(e.end,e.start+Math.min(.5,6*h)),t&&e.end>t.start&&(e.end=t.start),e.end<=e.start&&(e.end=e.start+h)}return a}export function cuesIn(c,s,i){const r=o=>Math.round(o*1e6)/1e6;return c.filter(o=>o.end>s&&o.start<i).map(o=>({start:r(Math.max(o.start,s)-s),end:r(Math.min(o.end,i)-s),text:o.text,words:o.words.map(h=>({text:h.text,start:r(h.start-s),end:r(h.end-s)}))}))}const y=(c,s)=>{const i=Math.round(c*1e3),r=Math.floor(i/36e5),o=Math.floor(i/6e4)%60,h=Math.floor(i/1e3)%60,a=(n,e=2)=>String(n).padStart(e,"0");return`${a(r)}:${a(o)}:${a(h)}${s}${a(i%1e3,3)}`};export function toSrt(c){return c.map((s,i)=>`${String(i+1)}
2
+ import{changesOf as K}from"@allyhub/piece";import{normText as p,joinWords as V,ScriptAlignment as v,WordStream as F}from"@allyhub/piece";import{speechWords as D}from"./speech.js";export const CAPTION_CUE_DEFAULTS={maxChars:42,maxCharsCjk:16,minSeconds:.8,maxSeconds:6,gapFrames:2};export function speechLines(c,s,i){return c.parts.flatMap(r=>{const o=r.speech,h=o?i[o.file]?.words:void 0;if(!o||!h?.length)return[];const a=D(h,o);if(a.length===0)return[];const n=s.find(t=>t.key===r.key),e=n?.spoken??V(a);return[{part:r.key,shown:e,spoken:n?.speak??e,words:a}]})}export function shownToSpoken(c,s){const i=(o,h)=>p(o.slice(0,h)).length,r=[[0,0]];for(const o of K(c,s))r.push([i(c,o.at),i(s,o.into)]),r.push([i(c,o.at+o.removed),i(s,o.into+o.inserted)]);return r.push([p(c).length,p(s).length]),o=>{for(let h=1;h<r.length;h++){const[a,n]=r[h-1]??[0,0],[e,t]=r[h]??[0,0];if(o>e&&h<r.length-1)continue;if(e<=a)return o<=a?n:t;const u=Math.max(0,Math.min(1,(o-a)/(e-a)));return n+(t-n)*u}return 0}}const b=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,G=/[。!?!?…]|\.(?=\s|$)/u,J=/[,、;:,;:—]/u,H=/[,、;:。,;:.\s]+$/u,P=(c,s)=>/[.,:;]/u.test(c[s]??"")&&/[0-9A-Za-z]/u.test(c[s+1]??"");export function keptSpans(c,s){const i=[],r=U(c).map(o=>({...o,n:p(o.w)}));for(const o of s){const h=p(o);if(!h)continue;if(b.test(o)){const n=[];Array.from(c).reduce((t,u)=>(p(u)&&n.push(t),t+u.length),0);const e=p(c);for(let t=e.indexOf(h);t>=0;t=e.indexOf(h,t+1)){const u=n[t],g=n[t+h.length-1];u!==void 0&&g!==void 0&&i.push([u,g+1])}continue}const a=o.split(/\s+/u).map(p).filter(Boolean);for(let n=0;n+a.length<=r.length;n++)if(a.every((e,t)=>r[n+t]?.n===e)){const e=r[n],t=r[n+a.length-1];e&&t&&i.push([e.from,t.to])}}return i}const _=(c,s)=>c.some(([i,r])=>s>i&&s<r);export function splitLine(c,s=b.test(c)?CAPTION_CUE_DEFAULTS.maxCharsCjk:CAPTION_CUE_DEFAULTS.maxChars,i=[]){const r=[],o=(a,n)=>{const e=c.slice(a,n),t=e.length-e.trimStart().length,u=e.trim();u&&r.push({text:u,from:a+t,to:a+t+u.length})},h=(a,n,e)=>{const t=c.slice(a,n);if(Array.from(t.trim()).length<=s){o(a,n);return}const g=e===0?G:e===1?J:void 0;if(g){let f=-1;for(let k=1;k<t.length-1;k++)g.test(t[k]??"")&&!P(t,k)&&!_(i,a+k+1)&&(f<0||Math.abs(k-t.length/2)<Math.abs(f-t.length/2))&&(f=k);if(f<0){h(a,n,e+1);return}h(a,a+f+1,e),h(a+f+1,n,e);return}const w=Math.floor(t.length/2),C=f=>f>0&&f<t.length&&!_(i,a+f);let x=-1;if(!b.test(t)){for(let f=w;f>0&&x<0;f--)t[f]===" "&&C(f)&&(x=f);for(let f=w;f<t.length&&x<0;f++)t[f]===" "&&C(f)&&(x=f)}for(let f=0;f<=t.length&&x<0;f++)C(w-f)?x=w-f:C(w+f)&&(x=w+f);if(x<0){o(a,n);return}h(a,a+x,e),h(a+x,n,e)};return h(0,c.length,0),r}export function captionCues(c,s={}){const{lines:i,fps:r}=c,o={...CAPTION_CUE_DEFAULTS,...s},h=[];for(const t of i){if(t.words.length===0)continue;const u=t.words,g=new v(new F(u),[t.spoken]),w=(M,l)=>{const d=u[g.wordAtChar(0,M)];return d?l?d.end:d.start:0};if((g.lines[0]?.length??0)===0)continue;const f=p(t.shown)===p(t.spoken)?M=>M:shownToSpoken(t.shown,t.spoken),k=b.test(t.shown)?o.maxCharsCjk:o.maxChars;for(const M of splitLine(t.shown,k)){const l=Math.round(f(p(t.shown.slice(0,M.from)).length)),d=Math.round(f(p(t.shown.slice(0,M.to)).length)),S=w(l,!1),A=w(Math.max(l,d-1),!0),T=b.test(M.text)?M.text.replace(H,""):M.text.replace(/[,;:]+$/u,"");T&&h.push({start:S,end:Math.max(A,S),text:T,part:t.part})}}const a=1/r,n=t=>Math.round(t*r)/r,e=h.map(t=>({...t,start:n(t.start),end:n(t.end)}));for(let t=0;t<e.length;t++){const u=e[t];if(!u)continue;const g=e[t+1],w=g?g.start-o.gapFrames*a:1/0;u.end=Math.min(Math.max(u.end,u.start+o.minSeconds),u.start+o.maxSeconds,w),u.end<=u.start&&(u.end=u.start+a)}return e}export function subtitleCues(c,s){return s===void 0?captionCues(c):wordCues(c.lines,{...s,fps:c.fps}).map(i=>({start:i.start,end:i.end,text:i.text,part:i.part}))}function U(c){const s=[],i=/\S+/gu;for(let r=i.exec(c);r;r=i.exec(c))s.push({w:r[0],from:r.index,to:r.index+r[0].length});return s}export function wordCues(c,s){const{fps:i}=s,r=[];for(const n of c){if(n.words.length===0)continue;const e=n.words,t=new v(new F(e),[n.spoken]);if((t.lines[0]?.length??0)===0)continue;const g=(l,d)=>{const S=e[t.wordAtChar(0,l)];return S?d?S.end:S.start:0},C=p(n.shown)===p(n.spoken)?l=>l:shownToSpoken(n.shown,n.spoken),x=(l,d)=>{const S=Math.round(C(p(n.shown.slice(0,l)).length)),A=Math.round(C(p(n.shown.slice(0,d)).length));return[g(S,!1),g(Math.max(S,A-1),!0)]},f=b.test(n.shown),k=s.maxChars??(f?16:32),M=keptSpans(n.shown,s.keep??[]);for(const l of splitLine(n.shown,k,M)){const d=(f?[{w:l.text,from:l.from,to:l.to}]:U(n.shown.slice(l.from,l.to)).map(m=>({w:m.w,from:m.from+l.from,to:m.to+l.from}))).filter(m=>p(m.w)!=="");if(d.length===0)continue;const S=s.maxWords&&s.maxWords>0?s.maxWords:d.length,A=Math.ceil(d.length/S),T=Math.ceil(d.length/A),O=[];d.forEach((m,L)=>{const W=d[L-1],j=O.at(-1);j&&W&&_(M,Math.ceil((W.to+m.from)/2))?j.push(m):O.push([m])});const I=[];let $=[];for(const m of O)$.length>0&&$.length+m.length>T&&(I.push($),$=[]),$.push(...m);$.length>0&&I.push($);for(const m of I){const L=m.map(E=>{const[N,B]=x(E.from,E.to);return{text:E.w,start:N,end:Math.max(B,N)}}),W=L[0],j=L.at(-1);if(!W||!j)continue;const z=m.map(E=>E.w).join(f?"":" ").replace(f?H:/[,;:]+$/u,"");r.push({start:W.start,end:j.end,text:z,part:n.part,words:L})}}}const o=n=>Math.round(n*i)/i,h=1/i,a=r.map(n=>({...n,start:o(n.start),end:o(n.end)}));for(let n=0;n<a.length;n++){const e=a[n];if(!e)continue;const t=a[n+1],u=t?.part===e.part;t&&u&&t.start-e.end<(s.close??.4)&&(e.end=t.start),e.end=Math.max(e.end,e.start+Math.min(.5,6*h)),t&&e.end>t.start&&(e.end=t.start),e.end<=e.start&&(e.end=e.start+h)}return a}export function cuesIn(c,s,i){const r=o=>Math.round(o*1e6)/1e6;return c.filter(o=>o.end>s&&o.start<i).map(o=>({start:r(Math.max(o.start,s)-s),end:r(Math.min(o.end,i)-s),text:o.text,words:o.words.map(h=>({text:h.text,start:r(h.start-s),end:r(h.end-s)}))}))}const y=(c,s)=>{const i=Math.round(c*1e3),r=Math.floor(i/36e5),o=Math.floor(i/6e4)%60,h=Math.floor(i/1e3)%60,a=(n,e=2)=>String(n).padStart(e,"0");return`${a(r)}:${a(o)}:${a(h)}${s}${a(i%1e3,3)}`};export function toSrt(c){return c.map((s,i)=>`${String(i+1)}
3
3
  ${y(s.start,",")} --> ${y(s.end,",")}
4
4
  ${s.text}
5
5
  `).join(`
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export{};
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{applyEdits as E,editedLength as P,PAD_AFTER as T,PAD_BEFORE as _,speechPads as j}from"./edits.js";import{JOIN_NEAR as q,joinsOf as x,takeLevels as B}from"./transcript.js";import{matchRoom as g,ROOM_MATCH as v,roomTone as I}from"./voice.js";import{joinWords as y}from"./words.js";const A=o=>Math.round(o*1e3)/1e3;export function cutReport(o,e,a,c={}){const r=Math.max(0,o.length-1),d=Math.min(c.from??0,r),s=Math.min(c.to??r,r),p=c.fps??30,i=c.duration??o.at(-1)?.end??0,n=E(o,e,d,s,{levels:a,fps:p}),m=o[d],u=o[s],l=m&&u?u.end-m.start:0,h=P(n.ranges),M=[];for(const t of n.removed){const f=M.at(-1);f?.to===t-1?f.to=t:M.push({from:t,to:t})}const O=t=>e.maxPause===void 0?t:Math.min(t,e.maxPause/2),k={before:O(e.pad?.before??_),after:O(e.pad?.after??T)},W=M.map(t=>({...t,start:o[t.from]?.start??0,end:o[t.to]?.end??0,text:y(o.slice(t.from,t.to+1))})),R=c.quiet??(a?B(a).threshold:-60),b=c.near??q;return{from:d,to:s,fps:p,pad:k,padGiven:e.pad?.before!==void 0||e.pad?.after!==void 0,kept:n.ranges,removed:W,sounds:n.sounds,soundsUnused:(e.sounds??[]).filter(t=>!n.sounds.some(f=>f.from<t.to&&f.to>t.from)),inWord:n.inWord,inWordUnplaced:(e.inWord??[]).filter(t=>!n.inWord.some(f=>f.from<t.to+.05&&f.to>t.from-.05)),pauses:n.pauses,lost:n.lost,seconds:{before:A(l),after:A(h),removed:A(l-h)},roomTone:a?D(o,n,a,i):null,joins:x(o,n,a,R,b),quietBelow:a?R:null,near:b}}function D(o,e,a,c){const r=I(a),d=e.kept[0],s=e.kept.at(-1);if(!r||d===void 0||s===void 0)return null;const p=j(o,d,s,c,a),i=e.ranges[0]?.from??o[d]?.start??0,n=e.ranges.at(-1)?.to??o[s]?.end??0,m=i>(o[d]?.start??0)+1e-6?0:p.padIn,u=n<(o[s]?.end??0)-1e-6?0:p.padOut,l={from:r.from,to:Math.min(r.to,r.from+v.near)},h=g(a,l,{from:i-m,to:i-m+Math.min(m,v.near)}),M=g(a,l,{from:n+u-Math.min(u,v.near),to:n+u});return{...r,level:h.level,lead:{word:d,pad:m,...h},tail:{word:s,pad:u,...M}}}
2
+ import{applyEdits as E,editedLength as P,PAD_AFTER as T,PAD_BEFORE as _,speechPads as j}from"./edits.js";import{JOIN_NEAR as q,joinsOf as x,takeLevels as B}from"./transcript.js";import{matchRoom as g,ROOM_MATCH as v,roomTone as I}from"@allyhub/piece";import{joinWords as y}from"@allyhub/piece";const A=o=>Math.round(o*1e3)/1e3;export function cutReport(o,e,a,c={}){const r=Math.max(0,o.length-1),d=Math.min(c.from??0,r),s=Math.min(c.to??r,r),p=c.fps??30,i=c.duration??o.at(-1)?.end??0,n=E(o,e,d,s,{levels:a,fps:p}),m=o[d],u=o[s],l=m&&u?u.end-m.start:0,h=P(n.ranges),M=[];for(const t of n.removed){const f=M.at(-1);f?.to===t-1?f.to=t:M.push({from:t,to:t})}const O=t=>e.maxPause===void 0?t:Math.min(t,e.maxPause/2),k={before:O(e.pad?.before??_),after:O(e.pad?.after??T)},W=M.map(t=>({...t,start:o[t.from]?.start??0,end:o[t.to]?.end??0,text:y(o.slice(t.from,t.to+1))})),R=c.quiet??(a?B(a).threshold:-60),b=c.near??q;return{from:d,to:s,fps:p,pad:k,padGiven:e.pad?.before!==void 0||e.pad?.after!==void 0,kept:n.ranges,removed:W,sounds:n.sounds,soundsUnused:(e.sounds??[]).filter(t=>!n.sounds.some(f=>f.from<t.to&&f.to>t.from)),inWord:n.inWord,inWordUnplaced:(e.inWord??[]).filter(t=>!n.inWord.some(f=>f.from<t.to+.05&&f.to>t.from-.05)),pauses:n.pauses,lost:n.lost,seconds:{before:A(l),after:A(h),removed:A(l-h)},roomTone:a?D(o,n,a,i):null,joins:x(o,n,a,R,b),quietBelow:a?R:null,near:b}}function D(o,e,a,c){const r=I(a),d=e.kept[0],s=e.kept.at(-1);if(!r||d===void 0||s===void 0)return null;const p=j(o,d,s,c,a),i=e.ranges[0]?.from??o[d]?.start??0,n=e.ranges.at(-1)?.to??o[s]?.end??0,m=i>(o[d]?.start??0)+1e-6?0:p.padIn,u=n<(o[s]?.end??0)-1e-6?0:p.padOut,l={from:r.from,to:Math.min(r.to,r.from+v.near)},h=g(a,l,{from:i-m,to:i-m+Math.min(m,v.near)}),M=g(a,l,{from:n+u-Math.min(u,v.near),to:n+u});return{...r,level:h.level,lead:{word:d,pad:m,...h},tail:{word:s,pad:u,...M}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{PAD_MAX as X}from"@allyhub/formats";import{quietest as Y}from"./voice.js";import{joinWords as Z,normText as w,WordStream as z}from"./words.js";export const PAD_BEFORE=.12,PAD_AFTER=.08;const $=.04,R=.04,A=e=>Math.round(e*1e3)/1e3,T=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0;export function parseEditList(e){if(typeof e!="object"||e===null||Array.isArray(e))return"an edits file is a JSON object: { version: 1, remove, sounds, inWord, maxPause, pad }";const t=e;if(t.version!==1)return"version is 1";for(const o of["take","$schema"])if(t[o]!==void 0&&typeof t[o]!="string")return`${o} is a string`;const s=Object.keys(t).filter(o=>!["version","remove","sounds","inWord","maxPause","pad","take","$schema"].includes(o));if(s.length>0)return`unknown field${s.length>1?"s":""} ${s.join(", ")} (an edits file has version, remove, sounds, inWord, maxPause, pad and take)`;const f={};if(t.remove!==void 0){if(!Array.isArray(t.remove))return"remove is a list of { from, to, text }";const o=[];for(const[i,k]of t.remove.entries()){const u=k,M=u?.from,m=u?.to,p=u?.text;if(typeof M!="number"||typeof m!="number"||!Number.isInteger(M)||!Number.isInteger(m)||M<0||m<M||p!==void 0&&typeof p!="string")return`remove[${String(i)}] is not { from, to, text } with word indices from ≤ to`;o.push({from:M,to:m,...p===void 0?{}:{text:p}})}f.remove=o}for(const o of["sounds","inWord"]){if(t[o]===void 0)continue;if(!Array.isArray(t[o]))return`${o} is a list of { from, to } in seconds of the take`;const i=[];for(const[k,u]of t[o].entries()){const M=u,m=M?.from,p=M?.to;if(!T(m)||!T(p)||p<=m)return`${o}[${String(k)}] is not { from, to } in seconds with from < to`;i.push({from:m,to:p})}f[o]=i}const a=t.maxPause;if(a!==void 0){if(typeof a!="number"||!Number.isFinite(a)||a<.05||a>10)return"maxPause is seconds, from 0.05 to 10";f.maxPause=a}const r=t.pad;if(r!==void 0){const o=r,i=typeof r=="object"&&o!==null&&!Array.isArray(r),k=i?Object.keys(o).filter(p=>p!=="before"&&p!=="after"):[],u=p=>p===void 0||T(p)&&p<=X;if(!i||k.length>0||!u(o.before)||!u(o.after))return`pad is { before, after }: seconds of silence kept before and after each cut, each from 0 to ${String(X)}`;const M=o.before,m=o.after;f.pad={...M===void 0?{}:{before:M},...m===void 0?{}:{after:m}}}return f}export function rangeText(e,t,s){return Z(e.slice(t,s+1))}export function locateRange(e,t,s=new z(e)){const f=t.from>=0&&t.to<e.length&&t.to>=t.from;if(t.text===void 0)return f?{from:t.from,to:t.to}:void 0;const a=w(t.text);if(a==="")return f?{from:t.from,to:t.to}:void 0;if(f&&w(rangeText(e,t.from,t.to))===a)return{from:t.from,to:t.to};let r;for(let o=1;;o++){const i=s.span(a,0,e.length-1,o);if(!i)break;w(rangeText(e,i.first,i.last))===a&&(!r||Math.abs(i.first-t.from)<Math.abs(r.from-t.from))&&(r={from:i.first,to:i.last})}return r}export function removedWords(e,t,s=new z(e)){const f=new Set,a=[];for(const r of t?.remove??[]){const o=locateRange(e,r,s);if(!o){a.push(r);continue}for(let i=o.from;i<=o.to;i++)f.add(i)}return{cut:f,lost:a}}export function snapCut(e,t,s,f){const a=Math.min(Math.max(t,s),f);return e?Y(e,a,Math.max(s,a-$),Math.min(f,a+$)):a}const tt=.5,ot=.6;export function speechPads(e,t,s,f,a){const r=e[t],o=e[s]??r;if(!r||!o)return{padIn:0,padOut:0};const i=r.start,k=e[t-1]?.end??0,u=e[s+1]?.start??f??o.end+.4,M=Math.max(0,Math.min((i-k)/2,i)),m=Math.max(0,(u-o.end)/2),p=snapCut(a,i-Math.min(tt,M),i-M,i),g=snapCut(a,o.end+Math.min(ot,m),o.end,o.end+m);return{padIn:A(Math.max(0,i-p)),padOut:A(Math.max(0,g-o.end))}}export function applyEdits(e,t,s=0,f=e.length-1,a={}){const{levels:r,fps:o}=a,{cut:i,lost:k}=removedWords(e,t),u=[];for(let n=s;n<=f;n++)i.has(n)||u.push(n);const M=[...i].filter(n=>n>=s&&n<=f).sort((n,c)=>n-c),m=t?.maxPause,p=[],g=[],y=n=>e[n]??{text:"",start:0,end:0};if(u.length===0)return{ranges:[],words:[],kept:u,removed:M,sounds:[],inWord:[],pauses:p,lost:k};const _=[],j=new Map;for(const n of t?.sounds??[])for(let c=0;c<u.length-1;c++){const h=y(u[c]??0),l=y(u[c+1]??0),b=Math.max(n.from,h.end),x=Math.min(n.to,l.start);if(x-b<.01)continue;const d=j.get(c)??[];d.push({start:b,end:x}),j.set(c,d),_.push({from:A(b),to:A(x)})}const F=y(u[0]??0);let O=F.start,W=F.start;const B=t?.pad?.before??PAD_BEFORE,C=t?.pad?.after??PAD_AFTER,H=m===void 0?B:Math.min(B,m/2),K=m===void 0?C:Math.min(C,m/2);for(let n=0;n<u.length-1;n++){const c=u[n]??0,h=u[n+1]??0,l=y(c),b=y(h),x=[];for(let v=c+1;v<h;v++)x.push({start:y(v).start,end:y(v).end});x.push(...j.get(n)??[]),x.sort((v,P)=>v.start-P.start);const d=x[0],N=x.at(-1);if(!d||!N){const v=b.start-l.end;if(m!==void 0&&v>m){const P=snapCut(r,l.end+m/2,l.end,b.start),S=snapCut(r,b.start-m/2,P,b.start);S-P>=R&&(p.push({after:c,was:A(v),now:m}),g.push({from:O,to:P,lo:W,hi:S}),O=S,W=P)}continue}const J=Math.max(0,d.start-l.end),q=Math.max(0,b.start-N.end),U=snapCut(r,l.end+Math.min(H,J/2),l.end,l.end+J/2),V=snapCut(r,b.start-Math.min(K,q/2),b.start-q/2,b.start);g.push({from:O,to:U,lo:W,hi:d.start}),O=Math.max(V,U),W=Math.min(O,N.end)}const D=y(u.at(-1)??0);g.push({from:O,to:D.end,lo:W,hi:D.end});const L=[];for(const n of t?.inWord??[]){const c=(n.from+n.to)/2,h=snapCut(r,n.from,n.from-$,c),l=snapCut(r,n.to,c,n.to+$);if(l-h<R)continue;let b=!1;for(let x=0;x<g.length;x++){const d=g[x];!d||h>=d.to||l<=d.from||(b=!0,h>d.from&&l<d.to?(g.splice(x,1,{from:d.from,to:h,lo:d.lo,hi:h},{from:l,to:d.to,lo:l,hi:d.hi}),x++):h<=d.from&&l>=d.to?(g.splice(x,1),x--):h<=d.from?(d.from=l,d.lo=l):(d.to=h,d.hi=h))}b&&L.push({from:A(h),to:A(l),words:u.filter(x=>y(x).start<l&&y(x).end>h)})}o!==void 0&&o>0&&g.forEach((n,c)=>{if(c>0){const h=Math.floor(n.from*o+1e-6)/o;h>=n.lo-1e-9&&(n.from=h)}if(c<g.length-1){const h=Math.ceil(n.to*o-1e-6)/o;h<=n.hi+1e-9&&(n.to=h)}});const E=[];for(const n of g){const c=E.at(-1);c&&n.from-c.to<R?c.to=Math.max(c.to,n.to):E.push({from:n.from,to:n.to})}const I=E.map(n=>({from:A(n.from),to:A(n.to)})),Q=editedLength(I),G=n=>A(Math.min(Q,Math.max(0,toEdited(I,n))));return{ranges:I,words:u.map(n=>{const c=y(n);return{text:c.text,start:G(c.start),end:G(c.end)}}),kept:u,removed:M,sounds:_,inWord:L,pauses:p,lost:k}}export function editedLength(e){return e.reduce((t,s)=>t+(s.to-s.from),0)}export function toEdited(e,t){let s=0;const f=e[0];if(!f)return t;if(t<=f.from)return t-f.from;for(const r of e){if(t<r.from)return s;if(t<=r.to)return s+(t-r.from);s+=r.to-r.from}const a=e.at(-1)??f;return s+(t-a.to)}export function fromEdited(e,t){const s=e[0];if(!s)return t;if(t<=0)return s.from+t;let f=0;for(const r of e){const o=r.to-r.from;if(t<f+o)return r.from+(t-f);f+=o}return(e.at(-1)??s).to+(t-f)}
2
+ import{PAD_MAX as X}from"@allyhub/formats";import{quietest as Y}from"@allyhub/piece";import{joinWords as Z,normText as w,WordStream as z}from"@allyhub/piece";export const PAD_BEFORE=.12,PAD_AFTER=.08;const $=.04,R=.04,A=e=>Math.round(e*1e3)/1e3,T=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0;export function parseEditList(e){if(typeof e!="object"||e===null||Array.isArray(e))return"an edits file is a JSON object: { version: 1, remove, sounds, inWord, maxPause, pad }";const t=e;if(t.version!==1)return"version is 1";for(const o of["take","$schema"])if(t[o]!==void 0&&typeof t[o]!="string")return`${o} is a string`;const s=Object.keys(t).filter(o=>!["version","remove","sounds","inWord","maxPause","pad","take","$schema"].includes(o));if(s.length>0)return`unknown field${s.length>1?"s":""} ${s.join(", ")} (an edits file has version, remove, sounds, inWord, maxPause, pad and take)`;const f={};if(t.remove!==void 0){if(!Array.isArray(t.remove))return"remove is a list of { from, to, text }";const o=[];for(const[i,k]of t.remove.entries()){const u=k,M=u?.from,m=u?.to,p=u?.text;if(typeof M!="number"||typeof m!="number"||!Number.isInteger(M)||!Number.isInteger(m)||M<0||m<M||p!==void 0&&typeof p!="string")return`remove[${String(i)}] is not { from, to, text } with word indices from ≤ to`;o.push({from:M,to:m,...p===void 0?{}:{text:p}})}f.remove=o}for(const o of["sounds","inWord"]){if(t[o]===void 0)continue;if(!Array.isArray(t[o]))return`${o} is a list of { from, to } in seconds of the take`;const i=[];for(const[k,u]of t[o].entries()){const M=u,m=M?.from,p=M?.to;if(!T(m)||!T(p)||p<=m)return`${o}[${String(k)}] is not { from, to } in seconds with from < to`;i.push({from:m,to:p})}f[o]=i}const a=t.maxPause;if(a!==void 0){if(typeof a!="number"||!Number.isFinite(a)||a<.05||a>10)return"maxPause is seconds, from 0.05 to 10";f.maxPause=a}const r=t.pad;if(r!==void 0){const o=r,i=typeof r=="object"&&o!==null&&!Array.isArray(r),k=i?Object.keys(o).filter(p=>p!=="before"&&p!=="after"):[],u=p=>p===void 0||T(p)&&p<=X;if(!i||k.length>0||!u(o.before)||!u(o.after))return`pad is { before, after }: seconds of silence kept before and after each cut, each from 0 to ${String(X)}`;const M=o.before,m=o.after;f.pad={...M===void 0?{}:{before:M},...m===void 0?{}:{after:m}}}return f}export function rangeText(e,t,s){return Z(e.slice(t,s+1))}export function locateRange(e,t,s=new z(e)){const f=t.from>=0&&t.to<e.length&&t.to>=t.from;if(t.text===void 0)return f?{from:t.from,to:t.to}:void 0;const a=w(t.text);if(a==="")return f?{from:t.from,to:t.to}:void 0;if(f&&w(rangeText(e,t.from,t.to))===a)return{from:t.from,to:t.to};let r;for(let o=1;;o++){const i=s.span(a,0,e.length-1,o);if(!i)break;w(rangeText(e,i.first,i.last))===a&&(!r||Math.abs(i.first-t.from)<Math.abs(r.from-t.from))&&(r={from:i.first,to:i.last})}return r}export function removedWords(e,t,s=new z(e)){const f=new Set,a=[];for(const r of t?.remove??[]){const o=locateRange(e,r,s);if(!o){a.push(r);continue}for(let i=o.from;i<=o.to;i++)f.add(i)}return{cut:f,lost:a}}export function snapCut(e,t,s,f){const a=Math.min(Math.max(t,s),f);return e?Y(e,a,Math.max(s,a-$),Math.min(f,a+$)):a}const tt=.5,ot=.6;export function speechPads(e,t,s,f,a){const r=e[t],o=e[s]??r;if(!r||!o)return{padIn:0,padOut:0};const i=r.start,k=e[t-1]?.end??0,u=e[s+1]?.start??f??o.end+.4,M=Math.max(0,Math.min((i-k)/2,i)),m=Math.max(0,(u-o.end)/2),p=snapCut(a,i-Math.min(tt,M),i-M,i),g=snapCut(a,o.end+Math.min(ot,m),o.end,o.end+m);return{padIn:A(Math.max(0,i-p)),padOut:A(Math.max(0,g-o.end))}}export function applyEdits(e,t,s=0,f=e.length-1,a={}){const{levels:r,fps:o}=a,{cut:i,lost:k}=removedWords(e,t),u=[];for(let n=s;n<=f;n++)i.has(n)||u.push(n);const M=[...i].filter(n=>n>=s&&n<=f).sort((n,c)=>n-c),m=t?.maxPause,p=[],g=[],y=n=>e[n]??{text:"",start:0,end:0};if(u.length===0)return{ranges:[],words:[],kept:u,removed:M,sounds:[],inWord:[],pauses:p,lost:k};const _=[],j=new Map;for(const n of t?.sounds??[])for(let c=0;c<u.length-1;c++){const h=y(u[c]??0),l=y(u[c+1]??0),b=Math.max(n.from,h.end),x=Math.min(n.to,l.start);if(x-b<.01)continue;const d=j.get(c)??[];d.push({start:b,end:x}),j.set(c,d),_.push({from:A(b),to:A(x)})}const F=y(u[0]??0);let O=F.start,W=F.start;const B=t?.pad?.before??PAD_BEFORE,C=t?.pad?.after??PAD_AFTER,H=m===void 0?B:Math.min(B,m/2),K=m===void 0?C:Math.min(C,m/2);for(let n=0;n<u.length-1;n++){const c=u[n]??0,h=u[n+1]??0,l=y(c),b=y(h),x=[];for(let v=c+1;v<h;v++)x.push({start:y(v).start,end:y(v).end});x.push(...j.get(n)??[]),x.sort((v,P)=>v.start-P.start);const d=x[0],N=x.at(-1);if(!d||!N){const v=b.start-l.end;if(m!==void 0&&v>m){const P=snapCut(r,l.end+m/2,l.end,b.start),S=snapCut(r,b.start-m/2,P,b.start);S-P>=R&&(p.push({after:c,was:A(v),now:m}),g.push({from:O,to:P,lo:W,hi:S}),O=S,W=P)}continue}const J=Math.max(0,d.start-l.end),q=Math.max(0,b.start-N.end),U=snapCut(r,l.end+Math.min(H,J/2),l.end,l.end+J/2),V=snapCut(r,b.start-Math.min(K,q/2),b.start-q/2,b.start);g.push({from:O,to:U,lo:W,hi:d.start}),O=Math.max(V,U),W=Math.min(O,N.end)}const D=y(u.at(-1)??0);g.push({from:O,to:D.end,lo:W,hi:D.end});const L=[];for(const n of t?.inWord??[]){const c=(n.from+n.to)/2,h=snapCut(r,n.from,n.from-$,c),l=snapCut(r,n.to,c,n.to+$);if(l-h<R)continue;let b=!1;for(let x=0;x<g.length;x++){const d=g[x];!d||h>=d.to||l<=d.from||(b=!0,h>d.from&&l<d.to?(g.splice(x,1,{from:d.from,to:h,lo:d.lo,hi:h},{from:l,to:d.to,lo:l,hi:d.hi}),x++):h<=d.from&&l>=d.to?(g.splice(x,1),x--):h<=d.from?(d.from=l,d.lo=l):(d.to=h,d.hi=h))}b&&L.push({from:A(h),to:A(l),words:u.filter(x=>y(x).start<l&&y(x).end>h)})}o!==void 0&&o>0&&g.forEach((n,c)=>{if(c>0){const h=Math.floor(n.from*o+1e-6)/o;h>=n.lo-1e-9&&(n.from=h)}if(c<g.length-1){const h=Math.ceil(n.to*o-1e-6)/o;h<=n.hi+1e-9&&(n.to=h)}});const E=[];for(const n of g){const c=E.at(-1);c&&n.from-c.to<R?c.to=Math.max(c.to,n.to):E.push({from:n.from,to:n.to})}const I=E.map(n=>({from:A(n.from),to:A(n.to)})),Q=editedLength(I),G=n=>A(Math.min(Q,Math.max(0,toEdited(I,n))));return{ranges:I,words:u.map(n=>{const c=y(n);return{text:c.text,start:G(c.start),end:G(c.end)}}),kept:u,removed:M,sounds:_,inWord:L,pauses:p,lost:k}}export function editedLength(e){return e.reduce((t,s)=>t+(s.to-s.from),0)}export function toEdited(e,t){let s=0;const f=e[0];if(!f)return t;if(t<=f.from)return t-f.from;for(const r of e){if(t<r.from)return s;if(t<=r.to)return s+(t-r.from);s+=r.to-r.from}const a=e.at(-1)??f;return s+(t-a.to)}export function fromEdited(e,t){const s=e[0];if(!s)return t;if(t<=0)return s.from+t;let f=0;for(const r of e){const o=r.to-r.from;if(t<f+o)return r.from+(t-f);f+=o}return(e.at(-1)??s).to+(t-f)}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{READ_DEFAULTS as d,boxRows as f,contentBox as l,freeBands as c,unionSpans as u,wordsAtOnce as m}from"./measure.js";export const FACT_KINDS={"text-speaker":"Text over the speaker's face box or person matte","text-off-frame":"Text the frame's edges cut: its glyphs outside the frame, in pixels and as a share","text-contrast":"Text against the pixels behind its glyphs: WCAG contrast ratios, the lowest, a low percentile and the median","text-covered":"Text in the area a platform's interface covers","text-overlap":"Text over text of another layer","text-overlap-own":"Text over text of the same layer","text-outside":"Text reaching outside a box it is drawn inside (a background, border or shadow)","text-time":"How long each text shows whole, against its words, and how large it is on a phone, with its lowercase letters' height","words-on-screen":"Words whole on screen at once in each part: the most, and every change","speech-on-screen":"Words a part says that show as text in it, and those that do not","footage-scale":"Footage enlargement: output pixels per source pixel, largest and smallest","free-bands":"Bands of the frame inside the covered edges that the speaker's face box or person matte leaves free","graphics-under-footage":"Graphic layers drawn under footage (listed before it), and how much of the frame the footage covers","flat-frames":"Runs of nearly flat frames unlike the picture around them","still-picture":"Stretches where the picture holds: how long, and how much changed in them","cut-seam":"How things move either side of each join: direction, speed and the change across; things named alike on both sides",flash:"Frames unlike both the frame before and the frame after: a flash, a blank frame, a layer for one frame","music-length":"Music length against video length","join-loudness":"Speech loudness either side of a join, or why it was not measured","matrix-coverage":"Matrix: combos asked for, possible and chosen, per candidate","generated-media":"Generated media (files with a .gen.json record) shown or played, and when","gen-mismatch":"A .gen.json record whose sha256 is not its file's, or that cannot be read",fallback:"Drawn or timed a fallback way: a face track, matte, take or music tempo missing","scenery-contact":"3D scenery: named objects that touch or cross, with the shared area, the crossing's length, how deep at least, the lift that clears them and the shared volume","scenery-support":"3D scenery: what each named object rests on, the gap below or how far it is sunk, its footprint in contact and its centre of mass against the contact","scenery-bake":"3D scenery: whether a scenery layer's scenery was drawn with its bake laid; when not, the scene's digest looked for, whether it was baked before (out of date) or never, and the command that makes it","mesh-health":"3D scenery: named objects whose surface is open, non-manifold, degenerate or crosses itself","camera-clearance":"3D scenery: a scenery layer's camera near a surface, inside an object, or cutting geometry with its near plane","camera-motion":"3D scenery: a scenery layer's camera motion in its own frame: peaks of truck, pedestal, dolly, pan, tilt, roll, zoom, speed, acceleration and jerk, smoothness, the largest step","scenery-screen":"3D scenery: a screen in a scenery layer: when it is on the frame, its share, how much its content is enlarged or shrunk, its angle to the view, how much is hidden in front of it, how blurred with an aperture, where it is drawn and at what scale, its smallest text on the frame as drawn and the speed of each stretch between cues","scenery-screen-fidelity":"3D scenery: a screen drawn in the scenery against its own element drawn flat: the colour difference, the share of pixels that differ, the regions where they differ and the elements in them the scenery's picture is known to draw otherwise","text-overflow":"A deck: a shape's text past its box, by its lines' glyphs: how far, and the lines past it","text-off-slide":"A deck: a shape's text the slide's edge cuts: how far its glyphs reach past it, and the share outside","shape-off-slide":"A deck: a shape partly or wholly past the slide's edge, and the share of it outside","shape-overlap":"A deck: two shapes of a slide over each other (not a master's or a layout's own under another), and by how much","near-alignment":"A deck: edges and centres of two shapes, or of a shape and the slide, nearly in line and not: each line, and the x or y that aligns them","placement-drift":"A deck: a shape of one name at different places on slides of one layout","type-in-use":"A deck: the text sizes and weights it uses, on how many slides each, and the smallest","read-size":"A deck: each text's size on the slide, on a phone, and with --room on a room's screen and at its farthest seat","words-on-slide":"A deck: words, lines and texts on each slide","sheet-error":"A sheet: cells whose value is an error, and whether the error starts there or is read from another","sheet-number":"A sheet: numbers written into a formula, each with what takes it, and how many cells hold the formula","sheet-unlike":"A sheet: a cell between neighbours that read alike, unlike them, and how long a run they make","sheet-exception":"A sheet: cells of a calculated column set apart from its formula","sheet-unused":"A sheet: defined names and typed numbers nothing reads (no formula, chart, rule, check or name)","sheet-invalid":"A sheet: cells that break their data validation","sheet-typed":"A sheet: numbers sheet.ts typed that neither its data nor its code holds, what it computed where a formula should","sheet-ordinary":"A sheet: a sheet sheet.ts makes and sheet.yaml holds too, sheet.yaml's standing","picture-resolution":"A deck: a picture drawn larger than its pixels, its pixels per inch, and how much it is stretched","shape-hidden":"A deck: a shape another covers whole at every build, or an animation that never shows its shape","chart-data":"A chart's numbers: how many, how far they run, and the file they came from","table-grown":"A deck: a table's rows its words made taller than they are set","deck-fonts":"A deck: the fonts its PowerPoint file names, and whether each is one every PowerPoint, Keynote and Google Slides has","cut-in-word":"A part playing a stretch of a video item cut inside one of its words"};export function isFactKind(e){return Object.hasOwn(FACT_KINDS,e)}export function fact(e,a,o){return{kind:e,...a,data:o}}export function factsOf(e,a){return e.filter(o=>o.kind===a)}export function countFacts(e){const a={};for(const o of e)a[o.kind]=(a[o.kind]??0)+1;return a}export function filterFacts(e,a){return e.filter(o=>!(a.kinds?.length&&!a.kinds.includes(o.kind)||a.part!==void 0&&o.part!==a.part||(a.from!==void 0||a.to!==void 0)&&(o.t===void 0||a.from!==void 0&&o.t<a.from-1e-6||a.to!==void 0&&o.t>a.to+1e-6)))}export function freeBandsData(e){const a=l(e.width,e.height,e.safe),o=(r,s)=>{const n=u(s.flat());return{files:r,seen:s.filter(h=>h.length>0).length,rows:n,bands:c(a,n)}},i="missing"in e.face?e.face:{...o(e.face.files,e.face.boxes.map(r=>{const s=r?f(r,a.x):void 0;return s?[s]:[]})),...e.face.speaker===void 0?{}:{speaker:e.face.speaker}},t="missing"in e.person?e.person:o(e.person.files,e.person.rows);return{frame:[e.width,e.height],covered:e.safe,content:a,...e.profile?{profile:e.profile}:{},moments:e.moments,face:i,person:t,bands:c(a,[..."rows"in i?i.rows:[],..."rows"in t?t.rows:[]])}}export function layoutFacts(e,a,o){const i=[];for(const t of e.moments){const r={...a,part:t.part,t:t.t};for(const s of t.overlaps){const n=t.texts[s.a],h=t.texts[s.b];!n||!h||i.push(fact("text-overlap",r,{a:n,b:h,area:s.area,share:s.share}))}for(const s of t.ownOverlaps){const n=t.texts[s.a],h=t.texts[s.b];!n||!h||i.push(fact("text-overlap-own",r,{a:n,b:h,area:s.area,share:s.share}))}for(const s of t.outside){const n=t.texts[s.text];n&&i.push(fact("text-outside",r,{text:n,container:s.container,edges:s.edges}))}for(const s of t.faceOverlaps){const n=t.texts[s.text];!n||!t.face||i.push(fact("text-speaker",r,{text:n,face:{box:t.face,area:s.area,ofText:s.ofText,ofFace:s.ofFace}}))}for(const s of t.offFrame){const n=t.texts[s.text];n&&i.push(fact("text-off-frame",r,{text:n,frame:[e.width,e.height],edges:s.edges,outside:s.outside,share:s.share,glyphs:s.glyphs}))}for(const s of t.safeOverlaps){const n=t.texts[s.text];n&&i.push(fact("text-covered",r,{text:n,frame:[e.width,e.height],covered:e.safe,...o?{profile:o}:{},edges:s.edges}))}}for(const t of e.reading?.texts??[])i.push(fact("text-time",{...a,part:t.part,t:t.first},{text:t.text,words:t.words,chars:t.chars,seconds:t.seconds,spans:t.spans,onScreen:t.onScreen,...t.size?{size:t.size}:{},options:e.reading?.options??d}));for(const t of m(e.reading?.texts??[])){const{part:r,...s}=t;i.push(fact("words-on-screen",{...a,part:r,t:t.from},{...s,options:e.reading?.options??d}))}for(const t of e.footage){const{part:r,...s}=t;i.push(fact("footage-scale",{...a,part:r,t:t.max.t},s))}return i}
2
+ import{factOf as d}from"@allyhub/diagnostics";import{frameFacts as u}from"@allyhub/image-measure/layout";import{READ_DEFAULTS as c}from"@allyhub/piece";import{boxRows as x,contentBox as h,freeBands as i,unionSpans as m,wordsAtOnce as g}from"./measure.js";export const fact=(e,n,a)=>d(e,n,a);export function freeBandsData(e){const n=h(e.width,e.height,e.safe),a=(t,o)=>{const f=m(o.flat());return{files:t,seen:o.filter(p=>p.length>0).length,rows:f,bands:i(n,f)}},s="missing"in e.face?e.face:{...a(e.face.files,e.face.boxes.map(t=>{const o=t?x(t,n.x):void 0;return o?[o]:[]})),...e.face.speaker===void 0?{}:{speaker:e.face.speaker}},r="missing"in e.person?e.person:a(e.person.files,e.person.rows);return{frame:[e.width,e.height],covered:e.safe,content:n,moments:e.moments,face:s,person:r,bands:i(n,[..."rows"in s?s.rows:[],..."rows"in r?r.rows:[]])}}export function layoutFacts(e,n){const a=[];a.push(...u(e,n,(s,r)=>{const t=[];for(const o of s.faceOverlaps){const f=s.texts[o.text];!f||!s.face||t.push(fact("text-speaker",r,{text:f,face:{box:s.face,area:o.area,ofText:o.ofText,ofFace:o.ofFace}}))}return t}));for(const s of e.reading?.texts??[])a.push(fact("text-time",{...n,part:s.part,t:s.first},{text:s.text,words:s.words,chars:s.chars,seconds:s.seconds,spans:s.spans,onScreen:s.onScreen,...s.size?{size:s.size}:{},options:e.reading?.options??c}));for(const s of g(e.reading?.texts??[])){const{part:r,...t}=s;a.push(fact("words-on-screen",{...n,part:r,t:s.from},{...t,options:e.reading?.options??c}))}for(const s of e.footage){const{part:r,...t}=s;a.push(fact("footage-scale",{...n,part:r,t:s.max.t},t))}for(const s of e.pictures??[]){const{part:r,t,...o}=s;a.push(fact("graphic-picture-scale",{...n,part:r,t},o))}return a}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{faceAt as A,facesAt as C}from"./media.js";import{keyAt as l,rectAt as z,simplifyKeys as E}from"./motion.js";export function sourceAt(t,e){const n=t.cuts;if(n&&n.length>0){let c=n[0]??{at:t.start,from:t.from};for(const r of n)r.at<=e+1e-9&&(c=r);return c.from+(e-c.at)}return t.from+(e-t.start)*t.speed}export function zoomRect(t,e,n,c){if(e===1)return t;const r=1-1/e;return[t[0]+n*t[2]*r,t[1]+c*t[3]*r,t[2]/e,t[3]/e]}export function zoomChannel(t,e){return t.map(n=>({t:n.t,v:n[e],...n.ease?{ease:n.ease}:{}}))}export function placementAt(t,e){let n=t.box,c=t.picture;if(t.boxes&&t.boxes.length>0){const o=t.boxes[0]?.box??t.box,i=z(t.boxes.map(h=>({t:h.t,rect:h.box,...h.ease?{ease:h.ease}:{}})),e),a=boxFit(t,o,i),[f,m,u,x]=t.picture,s=i[0]+i[2]/2+(f+u/2-(o[0]+o[2]/2))*a,p=i[1]+i[3]/2+(m+x/2-(o[1]+o[3]/2))*a;c=[s-u*a/2,p-x*a/2,u*a,x*a],n=i}let r=t.crop;if(r&&t.pan&&t.pan.length>0){const o=l(t.pan.map(a=>({t:a.t,v:a.x})),e),i=l(t.pan.map(a=>({t:a.t,v:a.y})),e);r=[o,i,r[2],r[3]]}return r&&t.zoom&&t.zoom.length>0&&(r=zoomRect(r,l(zoomChannel(t.zoom,"z"),e),l(zoomChannel(t.zoom,"cx"),e),l(zoomChannel(t.zoom,"cy"),e))),{box:n,picture:c,...r?{crop:r}:{}}}export function boxFit(t,e,n){const[,,c,r]=t.picture;if(c<=0||r<=0||e[2]<=0||e[3]<=0)return 1;const o=t.fit==="cover"?Math.max:Math.min,i=o(e[2]/c,e[3]/r);return o(n[2]/c,n[3]/r)/i}export function sourceToFrame(t,e){const n=t.crop;if(!n)return e;const c=t.picture[2]/n[2],r=t.picture[3]/n[3];return[t.picture[0]+(e[0]-n[0])*c,t.picture[1]+(e[1]-n[1])*r,e[2]*c,e[3]*r]}function w(t,e){const n=Math.max(t[0],e[0]),c=Math.max(t[1],e[1]),r=Math.min(t[0]+t[2],e[0]+e[2]),o=Math.min(t[1]+t[3],e[1]+e[3]);return r>n&&o>c?[n,c,r-n,o-c]:void 0}export function faceOnFrame(t,e,n,c=t.speaker??e.speaker){if(n<t.start||n>=t.end)return;const r=A(e,sourceAt(t,n),c);if(!r)return;const o=placementAt(t,n);return w(sourceToFrame(o,r),o.box)}export function facesOnFrame(t,e,n){if(n<t.start||n>=t.end)return[];const c=placementAt(t,n);return C(e,sourceAt(t,n)).flatMap(r=>{const o=w(sourceToFrame(c,r.box),c.box);return o?[{id:r.id,box:o}]:[]})}export function reframeWindow(t,e){const n=e.w/e.h,c=Math.min(t.width,t.height*n);return{w:Math.min(t.width,Math.round(c)),h:Math.min(t.height,Math.round(c/n))}}export const REFRAME_FACE_Y=.4,REFRAME_FALLBACK={x:.5,y:.4};export function reframePath(t){const{window:e,source:n,layer:c}=t,r=s=>Math.min(Math.max(s,0),n.width-e.w),o=s=>Math.min(Math.max(s,0),n.height-e.h),i=t.faceY??REFRAME_FACE_Y,a=s=>{const p=t.track?A(t.track,sourceAt(c,s),t.speaker??t.track.speaker):void 0,h=p?p[0]+p[2]/2:(t.focus?.x??.5)*n.width,y=p?p[1]+p[3]/2:(t.focus?.y??.4)*n.height;return[r(h-e.w/2),o(y-e.h*i)]},f=(c.cuts??[]).map(s=>s.at).filter(s=>s>c.start&&s<c.end),m=[c.start,...f,c.end],u=[];for(let s=0;s<m.length-1;s++){const p=m[s]??0,h=m[s+1]??p,y=[];for(let d=p;d<h-1e-6;d+=.1)y.push({t:d,v:a(d)});const M=Math.max(p,h-.001);y.push({t:M,v:a(M)});for(const d of E(y,1.5))u.push({t:Math.round(d.t*1e6)/1e6,x:Math.round((d.v[0]??0)*100)/100,y:Math.round((d.v[1]??0)*100)/100})}const x=u[0];return x&&u.every(s=>s.x===x.x&&s.y===x.y)?[x]:u}export const PUNCH_IN=.2,PUNCH_OUT=.25,PUNCH_SCALE=1.12,PUNCH_EASE="in-out",PUNCH_CENTER={x:.5,y:.42};export function punchKeys(t){const e=[...t].sort((o,i)=>o.start-i.start),n=[],c=o=>Math.round(o*1e6)/1e6;let r=PUNCH_OUT;for(const o of e){const i=o.in??PUNCH_IN,a=o.out??PUNCH_OUT,f=o.ease??PUNCH_EASE,m=o.start-i/2,u=o.start+i/2,x=n.at(-1);x&&x.t>m?(n.pop(),n.push({t:c(Math.max(x.t-r,u)),z:o.scale,cx:o.cx,cy:o.cy,ease:f})):(n.push({t:c(Math.max(0,m)),z:1,cx:o.cx,cy:o.cy}),n.push({t:c(u),z:o.scale,cx:o.cx,cy:o.cy,ease:f}));const s=Math.max(o.end,u);n.push({t:c(s),z:o.scale,cx:o.cx,cy:o.cy}),n.push({t:c(s+a),z:1,cx:o.cx,cy:o.cy,ease:f}),r=a}return n}export const PULLBACK_SCALE=1.12,PULLBACK_DUR=.6,PULLBACK_EASE="out";export function pullbackKeys(t,e,n=[]){const c=a=>Math.round(a*1e6)/1e6,r=n[0],o=Math.min(t+e.dur,r?.t??1/0);if(o<=t+1e-6)return[...n];const i=r&&r.t<=o+1e-9&&r.z===1?n.slice(1):n;return[{t:c(t),z:e.scale,cx:e.cx,cy:e.cy},{t:c(o),z:1,cx:e.cx,cy:e.cy,ease:e.ease??PULLBACK_EASE},...i]}export function parsePunch(t){const e=/^(.*\S)@(\d*\.\d+)$/u.exec(t.trim());return!e?.[1]||e[2]===void 0?{ref:t}:{ref:e[1],scale:Number(e[2])}}
2
+ import{faceAt as A,facesAt as C}from"@allyhub/piece";import{keyAt as l,rectAt as z,simplifyKeys as E}from"./motion.js";export function sourceAt(t,e){const n=t.cuts;if(n&&n.length>0){let c=n[0]??{at:t.start,from:t.from};for(const r of n)r.at<=e+1e-9&&(c=r);return c.from+(e-c.at)}return t.from+(e-t.start)*t.speed}export function zoomRect(t,e,n,c){if(e===1)return t;const r=1-1/e;return[t[0]+n*t[2]*r,t[1]+c*t[3]*r,t[2]/e,t[3]/e]}export function zoomChannel(t,e){return t.map(n=>({t:n.t,v:n[e],...n.ease?{ease:n.ease}:{}}))}export function placementAt(t,e){let n=t.box,c=t.picture;if(t.boxes&&t.boxes.length>0){const o=t.boxes[0]?.box??t.box,i=z(t.boxes.map(h=>({t:h.t,rect:h.box,...h.ease?{ease:h.ease}:{}})),e),a=boxFit(t,o,i),[f,m,u,x]=t.picture,s=i[0]+i[2]/2+(f+u/2-(o[0]+o[2]/2))*a,p=i[1]+i[3]/2+(m+x/2-(o[1]+o[3]/2))*a;c=[s-u*a/2,p-x*a/2,u*a,x*a],n=i}let r=t.crop;if(r&&t.pan&&t.pan.length>0){const o=l(t.pan.map(a=>({t:a.t,v:a.x})),e),i=l(t.pan.map(a=>({t:a.t,v:a.y})),e);r=[o,i,r[2],r[3]]}return r&&t.zoom&&t.zoom.length>0&&(r=zoomRect(r,l(zoomChannel(t.zoom,"z"),e),l(zoomChannel(t.zoom,"cx"),e),l(zoomChannel(t.zoom,"cy"),e))),{box:n,picture:c,...r?{crop:r}:{}}}export function boxFit(t,e,n){const[,,c,r]=t.picture;if(c<=0||r<=0||e[2]<=0||e[3]<=0)return 1;const o=t.fit==="cover"?Math.max:Math.min,i=o(e[2]/c,e[3]/r);return o(n[2]/c,n[3]/r)/i}export function sourceToFrame(t,e){const n=t.crop;if(!n)return e;const c=t.picture[2]/n[2],r=t.picture[3]/n[3];return[t.picture[0]+(e[0]-n[0])*c,t.picture[1]+(e[1]-n[1])*r,e[2]*c,e[3]*r]}function w(t,e){const n=Math.max(t[0],e[0]),c=Math.max(t[1],e[1]),r=Math.min(t[0]+t[2],e[0]+e[2]),o=Math.min(t[1]+t[3],e[1]+e[3]);return r>n&&o>c?[n,c,r-n,o-c]:void 0}export function faceOnFrame(t,e,n,c=t.speaker??e.speaker){if(n<t.start||n>=t.end)return;const r=A(e,sourceAt(t,n),c);if(!r)return;const o=placementAt(t,n);return w(sourceToFrame(o,r),o.box)}export function facesOnFrame(t,e,n){if(n<t.start||n>=t.end)return[];const c=placementAt(t,n);return C(e,sourceAt(t,n)).flatMap(r=>{const o=w(sourceToFrame(c,r.box),c.box);return o?[{id:r.id,box:o}]:[]})}export function reframeWindow(t,e){const n=e.w/e.h,c=Math.min(t.width,t.height*n);return{w:Math.min(t.width,Math.round(c)),h:Math.min(t.height,Math.round(c/n))}}export const REFRAME_FACE_Y=.4,REFRAME_FALLBACK={x:.5,y:.4};export function reframePath(t){const{window:e,source:n,layer:c}=t,r=s=>Math.min(Math.max(s,0),n.width-e.w),o=s=>Math.min(Math.max(s,0),n.height-e.h),i=t.faceY??REFRAME_FACE_Y,a=s=>{const p=t.track?A(t.track,sourceAt(c,s),t.speaker??t.track.speaker):void 0,h=p?p[0]+p[2]/2:(t.focus?.x??.5)*n.width,y=p?p[1]+p[3]/2:(t.focus?.y??.4)*n.height;return[r(h-e.w/2),o(y-e.h*i)]},f=(c.cuts??[]).map(s=>s.at).filter(s=>s>c.start&&s<c.end),m=[c.start,...f,c.end],u=[];for(let s=0;s<m.length-1;s++){const p=m[s]??0,h=m[s+1]??p,y=[];for(let d=p;d<h-1e-6;d+=.1)y.push({t:d,v:a(d)});const M=Math.max(p,h-.001);y.push({t:M,v:a(M)});for(const d of E(y,1.5))u.push({t:Math.round(d.t*1e6)/1e6,x:Math.round((d.v[0]??0)*100)/100,y:Math.round((d.v[1]??0)*100)/100})}const x=u[0];return x&&u.every(s=>s.x===x.x&&s.y===x.y)?[x]:u}export const PUNCH_IN=.2,PUNCH_OUT=.25,PUNCH_SCALE=1.12,PUNCH_EASE="in-out",PUNCH_CENTER={x:.5,y:.42};export function punchKeys(t){const e=[...t].sort((o,i)=>o.start-i.start),n=[],c=o=>Math.round(o*1e6)/1e6;let r=PUNCH_OUT;for(const o of e){const i=o.in??PUNCH_IN,a=o.out??PUNCH_OUT,f=o.ease??PUNCH_EASE,m=o.start-i/2,u=o.start+i/2,x=n.at(-1);x&&x.t>m?(n.pop(),n.push({t:c(Math.max(x.t-r,u)),z:o.scale,cx:o.cx,cy:o.cy,ease:f})):(n.push({t:c(Math.max(0,m)),z:1,cx:o.cx,cy:o.cy}),n.push({t:c(u),z:o.scale,cx:o.cx,cy:o.cy,ease:f}));const s=Math.max(o.end,u);n.push({t:c(s),z:o.scale,cx:o.cx,cy:o.cy}),n.push({t:c(s+a),z:1,cx:o.cx,cy:o.cy,ease:f}),r=a}return n}export const PULLBACK_SCALE=1.12,PULLBACK_DUR=.6,PULLBACK_EASE="out";export function pullbackKeys(t,e,n=[]){const c=a=>Math.round(a*1e6)/1e6,r=n[0],o=Math.min(t+e.dur,r?.t??1/0);if(o<=t+1e-6)return[...n];const i=r&&r.t<=o+1e-9&&r.z===1?n.slice(1):n;return[{t:c(t),z:e.scale,cx:e.cx,cy:e.cy},{t:c(o),z:1,cx:e.cx,cy:e.cy,ease:e.ease??PULLBACK_EASE},...i]}export function parsePunch(t){const e=/^(.*\S)@(\d*\.\d+)$/u.exec(t.trim());return!e?.[1]||e[2]===void 0?{ref:t}:{ref:e[1],scale:Number(e[2])}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./piece.js";export*from"./component.js";export*from"./timeline.js";export*from"./source.js";export*from"./look.js";export*from"./formats.js";export*from"./placement.js";export*from"./media.js";export*from"./gen.js";export*from"./messages.js";export*from"./script.js";export*from"./anchors.js";export*from"./marks.js";export*from"./script-edit.js";export*from"./edit.js";export*from"./timing.js";export*from"./music.js";export*from"./words.js";export*from"./speech.js";export*from"./edits.js";export*from"./voice.js";export*from"./transcript.js";export*from"./cut-report.js";export*from"./captions.js";export*from"./transition.js";export*from"./motion.js";export*from"./footage-motion.js";export*from"./backdrop.js";export*from"./measure.js";export*from"./seams.js";export*from"./contrast.js";export*from"./matrix.js";export*from"./problem.js";export*from"./fact.js";export*from"./console.js";export*from"./export.js";export*from"./schema.js";export*from"./audio-types.js";export*from"./render-types.js";export*from"./sound-under.js";
2
+ export*from"./piece.js";export*from"./timeline.js";export*from"./placement.js";export*from"./script-edit.js";export*from"./edit.js";export*from"./timing.js";export*from"./music.js";export*from"./speech.js";export*from"./edits.js";export*from"./transcript.js";export*from"./cut-report.js";export*from"./captions.js";export*from"./transition.js";export*from"./motion.js";export*from"./footage-motion.js";export*from"./backdrop.js";export*from"./measure.js";export*from"./seams.js";export*from"./fact.js";export*from"./schema.js";export*from"./audio-types.js";export*from"./render-types.js";export*from"./sound-under.js";export*from"./mix-plan.js";export*from"./stage.js";export*from"./check.js";
@@ -1,5 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{boxFit as F,zoomChannel as I}from"./footage-motion.js";import{keyAt as $,rectAt as L}from"./motion.js";export const READ_DEFAULTS={every:.2,opacity:.9,shown:.9,phone:[390,844]};export function phoneScale(t,o){return Math.min(o[0]/t[0],o[1]/t[1])}export function countWords(t){let o=0;for(const e of new Intl.Segmenter(void 0,{granularity:"word"}).segment(t))e.isWordLike&&o++;let a=0;for(const e of new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t))e.segment.trim()!==""&&a++;return{words:o,chars:a}}export function textTime(t,o,a=READ_DEFAULTS){const e=new Map;for(const x of t)e.set(x.text,(e.get(x.text)??0)+1);let c,u=0;for(const x of t){const w=e.get(x.text)??0;w>=u&&(u=w,c=x.text)}if(c===void 0)return;const h=t.filter(x=>x.text===c),f=x=>x.opacity>=a.opacity-1e-9&&x.shown>=a.shown-1e-9,i=a.every,n=x=>g(Math.min(x+i,o.end)),r=[];for(const x of h){if(!f(x))continue;const w=r.at(-1);w&&x.t-w[1]<i*.5?w[1]=n(x.t):r.push([g(x.t),n(x.t)])}const p=h.find(f)??h[0];if(!p)return;const l=(h.some(f)?h.filter(f):h).flatMap(x=>x.size===void 0?[]:[x.size]),m=l.length>0?Math.min(...l):void 0,s=(h.some(f)?h.filter(f):h).flatMap(x=>x.xHeight===void 0?[]:[x.xHeight]),d=s.length>0?Math.min(...s):void 0,M=phoneScale(o.frame,a.phone),v=x=>g(x.reduce((w,[O,A])=>w+Math.max(0,A-O),0)),y=[];for(const x of h){const w=y.at(-1);w&&x.t-w[1]<i*.5?w[1]=n(x.t):y.push([g(x.t),n(x.t)])}return{part:o.part,text:{layer:o.layer,z:o.z,text:c,box:p.box},...countWords(c),seconds:v(r),spans:r,onScreen:v(y),first:g(p.t),...m===void 0?{}:{size:{px:z(m),phone:z(m*M),...d===void 0?{}:{lowercase:{px:z(d),phone:z(d*M)}}}}}}const S=t=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"");export function speechShown(t,o){const a=new Set(o.flatMap(u=>u.split(/\s+/u).map(S))),e=t.split(/\s+/u).filter(u=>S(u)!==""),c=e.filter(u=>!a.has(S(u)));return{words:e.length,shown:e.length-c.length,unshown:[...new Set(c.map(S))]}}export function wordsAtOnce(t){const o=new Map;for(const e of t){if(e.spans.length===0)continue;const c=o.get(e.part)??[];c.push(e),o.set(e.part,c)}const a=[];for(const[e,c]of o){const u=[...new Set(c.flatMap(i=>i.spans.flat()))].sort((i,n)=>i-n),h=[];let f;for(const[i,n]of u.entries()){const r=c.filter(m=>m.spans.some(([s,d])=>n>=s&&n<d)),p=r.reduce((m,s)=>m+s.words,0),l=h.at(-1);(l?.words!==p||l.texts!==r.length)&&h.push({t:n,words:p,texts:r.length}),r.length>0&&(!f||p>f.words)?f={words:p,chars:r.reduce((m,s)=>m+s.chars,0),texts:r.length,from:n,until:u[i+1]??n}:f?.until===n&&p===f.words&&(f.until=u[i+1]??n)}f&&a.push({part:e,...f,steps:h})}return a}const b=t=>Math.max(0,t[2])*Math.max(0,t[3]);export function overlapArea(t,o){const a=Math.min(t[0]+t[2],o[0]+o[2])-Math.max(t[0],o[0]),e=Math.min(t[1]+t[3],o[1]+o[3])-Math.max(t[1],o[1]);return a>0&&e>0?a*e:0}const g=t=>Math.round(t*1e3)/1e3,z=t=>Math.round(t*10)/10;export function boxOverlap(t,o){const a=overlapArea(t,o);if(a<=0)return;const e=Math.min(b(t),b(o));return{area:Math.round(a),share:e>0?g(a/e):0}}export function safeEdges(t,o,a,e){const[c,u,h,f]=t;return[["top",o.top>0?o.top-u:0],["bottom",o.bottom>0?u+f-(e-o.bottom):0],["left",o.left>0?o.left-c:0],["right",o.right>0?c+h-(a-o.right):0]].filter(([,n])=>n>=1).map(([n,r])=>({side:n,px:Math.round(r)}))}export function outsideEdges(t,o){return[["top",o[1]-t[1]],["bottom",t[1]+t[3]-(o[1]+o[3])],["left",o[0]-t[0]],["right",t[0]+t[2]-(o[0]+o[2])]].filter(([,e])=>e>=1).map(([e,c])=>({side:e,px:Math.round(c)}))}export function offFrame(t,o,a){let e=0,c=0;const u={top:0,bottom:0,left:0,right:0};let[h,f,i,n]=[1/0,1/0,-1/0,-1/0];for(const s of t)s[2]<=0||s[3]<=0||(h=Math.min(h,s[0]),f=Math.min(f,s[1]),i=Math.max(i,s[0]+s[2]),n=Math.max(n,s[1]+s[3]),e+=b(s),c+=overlapArea(s,[0,0,o,a]),u.top=Math.max(u.top,-s[1]),u.bottom=Math.max(u.bottom,s[1]+s[3]-a),u.left=Math.max(u.left,-s[0]),u.right=Math.max(u.right,s[0]+s[2]-o));if(e<=0)return;const r=["top","bottom","left","right"].filter(s=>u[s]>=1).map(s=>({side:s,px:Math.round(u[s])}));if(r.length===0)return;const p=Math.max(0,e-c),l=Math.round(h),m=Math.round(f);return{outside:Math.round(p),share:g(p/e),edges:r,glyphs:[l,m,Math.round(i)-l,Math.round(n)-m]}}export function cutThroughout(t){const o=new Map;for(const e of t.moments){const c=new Map(e.offFrame.map(h=>[h.text,h])),u=new Set;e.texts.forEach((h,f)=>{if(h.viewport)return;const i=c.get(f);if(i&&i.share>=1)return;const n=`${e.part}
3
- ${h.layer}
4
- ${h.z}
5
- ${h.text}`;if(u.has(n))return;u.add(n);let r=o.get(n);if(r||(r={part:e.part,shown:0,cut:void 0},o.set(n,r)),r.shown++,!i)return;const p={outside:i.outside,share:i.share,edges:i.edges,glyphs:i.glyphs};if(!r.cut){r.cut={part:e.part,text:h,moments:[e.t],t:e.t,worst:p};return}r.cut.moments.push(e.t),i.share>r.cut.worst.share&&(r.cut.text=h,r.cut.t=e.t,r.cut.worst=p)})}const a=[];for(const e of o.values())e.cut?.moments.length===e.shown&&a.push(e.cut);return a}export function measureMoment(t){const o=[],a=[],e=n=>t.seen?.[n]??t.texts[n]?.box;for(let n=0;n<t.texts.length;n++)for(let r=n+1;r<t.texts.length;r++){const p=t.texts[n],l=t.texts[r];if(!p||!l)continue;if(t.owner[n]===t.owner[r]){const s=e(n),d=e(r),M=s&&d?boxOverlap(s,d):void 0;M&&a.push({a:n,b:r,...M});continue}const m=boxOverlap(p.box,l.box);m&&o.push({a:n,b:r,...m})}const c=[];t.texts.forEach((n,r)=>{const p=e(r);if(!(!p||n.viewport))for(const l of t.containers?.[r]??[]){const m=outsideEdges(p,l.box);if(m.length!==0){c.push({text:r,container:l,edges:m});break}}});const u=[],h=t.face;h&&t.texts.forEach((n,r)=>{const p=overlapArea(n.box,h);p<=0||u.push({text:r,area:Math.round(p),ofText:g(p/Math.max(1,b(n.box))),ofFace:g(p/Math.max(1,b(h)))})});const f=[];t.texts.forEach((n,r)=>{if(n.viewport)return;const p=safeEdges(n.box,t.safe,t.width,t.height);p.length>0&&f.push({text:r,edges:p})});const i=[];return t.texts.forEach((n,r)=>{if(n.viewport)return;const p=e(r),l=offFrame(t.glyphs?.[r]??(p?[p]:[]),t.width,t.height);l&&i.push({text:r,...l})}),{t:t.t,part:t.part,texts:t.texts,...h?{face:h}:{},overlaps:o,ownOverlaps:a,outside:c,faceOverlaps:u,safeOverlaps:f,offFrame:i}}export function footageScale(t,o=1,a){const e=t.crop;if(!e||!t.source||e[2]<=0||e[3]<=0)return;const c=t.picture,u=t.zoom&&t.zoom.length>0?I(t.zoom,"z"):[],h=t.boxes&&t.boxes.length>1?t.boxes:void 0,f=h?.[0]?.box,i=h?.map(s=>({t:s.t,rect:s.box,...s.ease?{ease:s.ease}:{}})),n=Math.max(t.start,a?t.end-1/a:t.end),r=[t.start,...u.map(s=>s.t),...(h??[]).map(s=>s.t),n].map(s=>Math.min(Math.max(s,t.start),n)).sort((s,d)=>s-d),p=s=>{const d=u.length>0?$(u,s):1,M=i&&f?F(t,f,L(i,s)):1,v=Math.max(c[2]*M/e[2],c[3]*M/e[3])*d*o,y=[t.fit];return Math.abs(d-1)>1e-6&&y.push(`zoom ${String(g(d))}×`),i&&Math.abs(M-1)>1e-6&&y.push(`box key ${String(g(M))}×`),{scale:g(v),t:g(s),from:y}};let l=p(t.start),m=l;for(const s of r){const d=p(s);d.scale>l.scale&&(l=d),d.scale<m.scale&&(m=d)}return{part:t.part,file:t.file,source:[t.source.width,t.source.height],shown:[Math.round(e[2]),Math.round(e[3])],max:l,min:m}}export function contentBox(t,o,a){return{x:[a.left,Math.max(a.left,t-a.right)],y:[a.top,Math.max(a.top,o-a.bottom)]}}export function unionSpans(t){const o=t.filter(([e,c])=>c>e).map(([e,c])=>[e,c]).sort((e,c)=>e[0]-c[0]),a=[];for(const e of o){const c=a.at(-1);c&&e[0]<=c[1]?c[1]=Math.max(c[1],e[1]):a.push(e)}return a}export function freeBands(t,o){const[a,e]=t.y,c=[];let u=a;const h=(f,i)=>{i>f&&c.push({y:[f,i],x:[t.x[0],t.x[1]],height:i-f})};for(const[f,i]of unionSpans(o))if(!(i<=u)){if(f>=e)break;h(u,Math.min(f,e)),u=Math.max(u,i)}return h(u,e),c}export function boxRows(t,o){if(!(t[2]<=0||t[3]<=0)&&!(t[0]>=o[1]||t[0]+t[2]<=o[0]))return[Math.floor(t[1]),Math.ceil(t[1]+t[3])]}const E=t=>[t[0]+t[2]/2,t[1]+t[3]/2];function k(t,o){if(!t.box||!o.box)return{px:0,grew:0};const[a,e]=E(t.box),[c,u]=E(o.box);return{px:Math.hypot(c-a,u-e),grew:Math.max(Math.abs(o.box[2]-t.box[2]),Math.abs(o.box[3]-t.box[3]))}}export function largestSteps(t){const o=[];for(const e of t){const c=e.samples.length,u=[],h=[];for(let f=1;f<c;f++){const i=e.samples[f-1],n=e.samples[f];if(!i||!n)continue;const r=k(i,n);u[f]=Math.max(r.px,r.grew),h[f]=Math.abs(n.opacity-i.opacity)}for(const[f,i]of[["move",u],["fade",h]]){let n=-1,r=0;for(let s=1;s<c;s++){const M=(i[s]??0)-Math.max(i[s-1]??0,i[s+1]??0);M>r+1e-9&&(n=s,r=M)}const p=e.samples[n-1],l=e.samples[n];if(n<1||!p||!l)continue;const m=k(p,l);o.push({part:e.part,layer:e.layer,what:e.what,selector:e.selector,kind:f,t:g(l.t),...p.box?{from:p.box}:{},...l.box?{to:l.box}:{},px:g(m.px),grew:g(m.grew),opacity:[g(p.opacity),g(l.opacity)],around:g(Math.max(i[n-1]??0,i[n+1]??0)),over:g(r)})}}const a=e=>e.kind==="move"?0:1;return o.sort((e,c)=>a(e)-a(c)||c.over-e.over)}
2
+ import{READ_DEFAULTS as G,countWords as I,phoneScale as K}from"@allyhub/piece";import{boxFit as V,zoomChannel as W}from"./footage-motion.js";import{keyAt as J,rectAt as Q}from"./motion.js";export function textTime(t,r,i=G){const o=new Map;for(const h of t)o.set(h.text,(o.get(h.text)??0)+1);let a,p=0;for(const h of t){const w=o.get(h.text)??0;w>=p&&(p=w,a=h.text)}if(a===void 0)return;const x=t.filter(h=>h.text===a),e=h=>h.opacity>=i.opacity-1e-9&&h.shown>=i.shown-1e-9,n=i.every,c=h=>d(Math.min(h+n,r.end)),m=[];for(const h of x){if(!e(h))continue;const w=m.at(-1);w&&h.t-w[1]<n*.5?w[1]=c(h.t):m.push([d(h.t),c(h.t)])}const u=x.find(e)??x[0];if(!u)return;const f=(x.some(e)?x.filter(e):x).flatMap(h=>h.size===void 0?[]:[h.size]),b=f.length>0?Math.min(...f):void 0,s=(x.some(e)?x.filter(e):x).flatMap(h=>h.xHeight===void 0?[]:[h.xHeight]),l=s.length>0?Math.min(...s):void 0,g=K(r.frame,i.phone),z=h=>d(h.reduce((w,[S,F])=>w+Math.max(0,F-S),0)),y=[];for(const h of x){const w=y.at(-1);w&&h.t-w[1]<n*.5?w[1]=c(h.t):y.push([d(h.t),c(h.t)])}return{part:r.part,text:{layer:r.layer,z:r.z,text:a,box:u.box},...I(a),seconds:z(m),spans:m,onScreen:z(y),first:d(u.t),...b===void 0?{}:{size:{px:T(b),phone:T(b*g),...l===void 0?{}:{lowercase:{px:T(l),phone:T(l*g)}}}}}}const L=t=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"");export function speechShown(t,r){const i=new Set(r.flatMap(p=>p.split(/\s+/u).map(L))),o=t.split(/\s+/u).filter(p=>L(p)!==""),a=o.filter(p=>!i.has(L(p)));return{words:o.length,shown:o.length-a.length,unshown:[...new Set(a.map(L))]}}export function wordsAtOnce(t){const r=new Map;for(const o of t){if(o.spans.length===0)continue;const a=r.get(o.part)??[];a.push(o),r.set(o.part,a)}const i=[];for(const[o,a]of r){const p=[...new Set(a.flatMap(n=>n.spans.flat()))].sort((n,c)=>n-c),x=[];let e;for(const[n,c]of p.entries()){const m=a.filter(b=>b.spans.some(([s,l])=>c>=s&&c<l)),u=m.reduce((b,s)=>b+s.words,0),f=x.at(-1);(f?.words!==u||f.texts!==m.length)&&x.push({t:c,words:u,texts:m.length}),m.length>0&&(!e||u>e.words)?e={words:u,chars:m.reduce((b,s)=>b+s.chars,0),texts:m.length,from:c,until:p[n+1]??c}:e?.until===c&&u===e.words&&(e.until=p[n+1]??c)}e&&i.push({part:o,...e,steps:x})}return i}const d=t=>Math.round(t*1e3)/1e3,T=t=>Math.round(t*10)/10;export{cutThroughout}from"@allyhub/image-measure/layout";export function footageScale(t,r=1,i){const o=t.crop;if(!o||!t.source||o[2]<=0||o[3]<=0)return;const a=t.picture,p=t.zoom&&t.zoom.length>0?W(t.zoom,"z"):[],x=t.boxes&&t.boxes.length>1?t.boxes:void 0,e=x?.[0]?.box,n=x?.map(s=>({t:s.t,rect:s.box,...s.ease?{ease:s.ease}:{}})),c=Math.max(t.start,i?t.end-1/i:t.end),m=[t.start,...p.map(s=>s.t),...(x??[]).map(s=>s.t),c].map(s=>Math.min(Math.max(s,t.start),c)).sort((s,l)=>s-l),u=s=>{const l=p.length>0?J(p,s):1,g=n&&e?V(t,e,Q(n,s)):1,z=Math.max(a[2]*g/o[2],a[3]*g/o[3])*l*r,y=[t.fit];return Math.abs(l-1)>1e-6&&y.push(`zoom ${String(d(l))}×`),n&&Math.abs(g-1)>1e-6&&y.push(`box key ${String(d(g))}×`),{scale:d(z),t:d(s),from:y}};let f=u(t.start),b=f;for(const s of m){const l=u(s);l.scale>f.scale&&(f=l),l.scale<b.scale&&(b=l)}return{part:t.part,file:t.file,source:[t.source.width,t.source.height],shown:[Math.round(o[2]),Math.round(o[3])],max:f,min:b}}export function contentBox(t,r,i){return{x:[i.left,Math.max(i.left,t-i.right)],y:[i.top,Math.max(i.top,r-i.bottom)]}}export function unionSpans(t){const r=t.filter(([o,a])=>a>o).map(([o,a])=>[o,a]).sort((o,a)=>o[0]-a[0]),i=[];for(const o of r){const a=i.at(-1);a&&o[0]<=a[1]?a[1]=Math.max(a[1],o[1]):i.push(o)}return i}export function freeBands(t,r){const[i,o]=t.y,a=[];let p=i;const x=(e,n)=>{n>e&&a.push({y:[e,n],x:[t.x[0],t.x[1]],height:n-e})};for(const[e,n]of unionSpans(r))if(!(n<=p)){if(e>=o)break;x(p,Math.min(e,o)),p=Math.max(p,n)}return x(p,o),a}export function boxRows(t,r){if(!(t[2]<=0||t[3]<=0)&&!(t[0]>=r[1]||t[0]+t[2]<=r[0]))return[Math.floor(t[1]),Math.ceil(t[1]+t[3])]}const A=t=>[t[0]+t[2]/2,t[1]+t[3]/2];function N(t,r){if(!t.box||!r.box)return{px:0,grew:0};const[i,o]=A(t.box),[a,p]=A(r.box);return{px:Math.hypot(a-i,p-o),grew:Math.max(Math.abs(r.box[2]-t.box[2]),Math.abs(r.box[3]-t.box[3]))}}export function largestSteps(t){const r=[];for(const o of t){const a=o.samples.length,p=[],x=[];for(let e=1;e<a;e++){const n=o.samples[e-1],c=o.samples[e];if(!n||!c)continue;const m=N(n,c);p[e]=Math.max(m.px,m.grew),x[e]=Math.abs(c.opacity-n.opacity)}for(const[e,n]of[["move",p],["fade",x]]){let c=-1,m=0;for(let s=1;s<a;s++){const g=(n[s]??0)-Math.max(n[s-1]??0,n[s+1]??0);g>m+1e-9&&(c=s,m=g)}const u=o.samples[c-1],f=o.samples[c];if(c<1||!u||!f)continue;const b=N(u,f);r.push({part:o.part,layer:o.layer,what:o.what,selector:o.selector,kind:e,t:d(f.t),...u.box?{from:u.box}:{},...f.box?{to:f.box}:{},px:d(b.px),grew:d(b.grew),opacity:[d(u.opacity),d(f.opacity)],around:d(Math.max(n[c-1]??0,n[c+1]??0)),over:d(m)})}}const i=o=>o.kind==="move"?0:1;return r.sort((o,a)=>i(o)-i(a)||a.over-o.over)}export const MOVING_DEFAULTS={hold:1,slow:8,window:.25};const P=(t,r)=>t===r||t!==void 0&&r!==void 0&&t.every((i,o)=>i===r[o]);export function movingStretches(t,r){const i=r.hold??MOVING_DEFAULTS.hold,o=(r.slow??MOVING_DEFAULTS.slow)*((r.height??1080)/1080),a=r.window??MOVING_DEFAULTS.window,p=Math.max(1,Math.round(i*r.fps)),x=new Map;for(const e of t){const n=e.samples;let c=1;for(;c<n.length;){if(P(n[c-1]?.box,n[c]?.box)||!n[c-1]?.box||!n[c]?.box){c++;continue}const m=c-1;let u=c,f=c+1;for(;f<n.length&&f-u<=p;){const M=n[f-1]?.box,v=n[f]?.box;if(!M||!v)break;P(M,v)||(u=f),f++}c=u+1;const b=f>=n.length,s=n[m],l=n[u];if(!s?.box||!l?.box)continue;const[g,z]=A(s.box),[y,h]=A(l.box),w=Math.hypot(y-g,h-z),S=[s.box[2]>0?l.box[2]/s.box[2]:1,s.box[3]>0?l.box[3]/s.box[3]:1],F=l.t-s.t,D=Math.max(1,Math.round(a*r.fps));let j=0;for(let M=m;M<u;M+=D){const v=n[M],k=n[Math.min(u,M+D)];if(!v?.box||!k?.box||k.t<=v.t)continue;const[U,_]=A(v.box),[$,q]=A(k.box);Math.max(Math.hypot($-U,q-_),Math.abs(k.box[2]-v.box[2])/2,Math.abs(k.box[3]-v.box[3])/2)/(k.t-v.t)<o&&(j+=k.t-v.t)}const R=Math.abs(S[0]-1)>.001||Math.abs(S[1]-1)>.001,B=[e.part,d(s.t),d(l.t),S[0].toFixed(2),S[1].toFixed(2),...R?[]:[Math.round(y-g),Math.round(h-z)]].join("|"),C={layer:e.layer,what:e.what,...e.name===void 0?{}:{name:e.name}},O=x.get(B);if(O){O.things++,O.names.length<3&&O.names.push(C);continue}const E=r.transitions?.find(M=>(M.part===e.part||M.from===e.part)&&s.t<M.end&&l.t>M.start),H=r.parts?.find(M=>M.key===e.part)?.end;x.set(B,{part:e.part,start:d(s.t),end:d(l.t),things:1,names:[C],px:d(w),scale:[d(S[0]),d(S[1])],speed:F>0?d(w/F):0,slow:d(j),...E?{transition:{type:E.type,start:E.start,end:E.end}}:{},...H!==void 0&&b&&(n.at(-1)?.t??0)>=H-1.5/r.fps?{toEnd:!0}:{}})}}return[...x.values()].sort((e,n)=>e.start-n.start||n.things-e.things)}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{addEnvelopes as v,duckEnvelope as I,hashSeed as w,MIX_DEFAULTS as D,resolveVoice as E,SFX_HIT as F,speechEnvelope as S,speechSpans as O}from"@allyhub/audio";import{MUSIC_DEFAULTS as M,musicSegments as k,placeStretches as A,wholeLoop as G}from"./music.js";import{wordsIn as U}from"./speech.js";export function voicePlan(t,s){const a=o=>E(o),c=s.filter(o=>o.mic!==void 0);return{mic:{video:a(t),...c.length>0?{parts:Object.fromEntries(c.map(o=>[o.key,a(o.mic)]))}:{}}}}export function wordsOnFilm(t,s){return t.flatMap(a=>U(s(a.file)??[],a.from,a.dur,a.at,a.speed??1)).map(a=>({start:a.start,end:a.end})).sort((a,c)=>a.start-c.start)}const g=(t,s)=>s===void 0||!Number.isFinite(s)?0:t-s,L=t=>[...t].sort((s,a)=>s.t-a.t);export function musicPlayed(t,s,a){return t.play?k(t.play,t.seam??M.seam,s,"before",!t.loop):t.loop?k(G(t.from,s,a,t.seam),s>1?t.seam??M.loopSeam:0,s,"after",!1):k(A([{from:t.from,to:s}],void 0,s,a),0,s)}export function mixPlan(t,s,a){const c=t.duration,o=t.audio.mix??D,i={duration:c,speech:[],footage:[],sfx:[]};for(const e of[...t.audio.speech??[],...t.audio.room??[]]){const f=s[e.file];!f||e.dur<=0||i.speech.push({file:e.file,...e.part===void 0?{}:{part:e.part},at:e.at,from:e.from,dur:e.dur,gainDb:g(o.speech,f.loudness)+(e.gainDb??0),...e.speed!==void 0&&e.speed!==1?{speed:e.speed}:{},...e.denoise?{denoise:e.denoise}:{},...e.fadeIn?{fadeIn:e.fadeIn}:{},...e.fadeOut?{fadeOut:e.fadeOut}:{}})}const m=O(i.speech,o.duck),h=S(m,o.footageUnderSpeech-o.footage,o.duck);for(const e of t.footage??[]){const f=s[e.file];if(!e.audio||e.take===!0||!f)continue;const d=e.speed>0?e.speed:1,u=Math.max(0,e.from),b=e.start+(u-e.from)/d,y=f.duration===void 0?1/0:f.duration-u,x=Math.min(e.end-b,y/d);x<=0||i.footage.push({file:e.file,at:b,from:u,dur:x,...d===1?{}:{speed:d},gainDb:g(o.footage,f.loudness)+e.gainDb,...h.length>0?{envelope:h}:{}})}const n=t.audio.music,r=n?.file===void 0?void 0:s[n.file];if(n?.file!==void 0&&r){const e=(n.gain??[]).map(u=>({t:u.t,db:u.db})),f=r.duration??n.from+c,d={file:n.file,segments:musicPlayed(n,f,c),gainDb:g(o.musicAlone,r.loudness),alone:o.musicAlone,fadeIn:o.musicFade.in,fadeOut:Math.min(o.musicFade.out,c/4),...n.until===void 0?{}:{until:n.until},duck:v(v(S(m,o.music-o.musicAlone,o.duck),I(wordsOnFilm(i.speech,u=>s[u]?.words),o.duck)),L(e)),...n.shape?{shape:n.shape}:{}};i.music=d}const l=speechGains(t);l.length>0&&(i.speechGain=l);const p=t.audio.mic;return p&&(i.voice={video:p.video,...p.parts?{parts:p.parts}:{},spans:t.parts.map(e=>({part:e.key,start:e.start,end:e.end})),seed:a.seed}),t.cues.forEach((e,f)=>{const d=e.gainDb??0;if(e.file!==void 0){const b=s[e.file];if(!b)return;i.sfx.push({sound:e.sound,file:e.file,at:e.t,gainDb:g(o.sfx,b.loudness)+d,seed:0,...e.shape?{shape:e.shape,level:{target:o.sfx,gainDb:d}}:{}});return}const u=F[e.sound];u!==void 0&&i.sfx.push({sound:e.sound,at:Math.max(0,e.t-u),gainDb:o.sfx-D.sfx+d,seed:w(`${a.seed}:${e.sound}:${String(f)}`),...e.shape?{shape:e.shape}:{}})}),i}export function speechGains(t){const s=new Map;for(const n of t.parts)n.speechGainDb!==void 0&&n.speechGainDb!==0&&s.set(n.key,n.speechGainDb);if(s.size===0)return[];const a=[];for(const n of t.parts)a.push({start:n.start,end:n.end,db:s.get(n.key)??0,rank:0});const c=[...(t.audio.speech??[]).map(n=>({c:n,rank:2})),...(t.audio.room??[]).map(n=>({c:n,rank:1}))];for(const{c:n,rank:r}of c)n.part===void 0||n.dur<=0||a.push({start:n.at,end:n.at+n.dur,db:s.get(n.part)??0,rank:r});const o=[...new Set(a.flatMap(n=>[n.start,n.end]))].sort((n,r)=>n-r),i=[];for(let n=0;n+1<o.length;n++){const r=o[n]??0,l=o[n+1]??r,p=(r+l)/2;let e;for(const d of a)p<d.start||p>=d.end||(!e||d.rank>e.rank||d.rank===e.rank&&d.start>=e.start)&&(e=d);const f=e?.db??0;i.at(-1)?.db!==f&&i.push({t:r,db:f})}if(i.every(n=>n.db===0))return[];const m=.005,h=[];for(const[n,r]of i.entries()){if(n===0){h.push({t:r.t,db:r.db});continue}const l=i[n-1]?.db??0;h.push({t:Math.max(0,r.t-m),db:l},{t:r.t+m,db:r.db})}return h}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{ANCHOR_NAME as i}from"./anchors.js";export const PIECE_BRAND="__allyhubPiece",PART_BRAND="__allyhubPart",LAYER_BRAND="__allyhubLayer",SPEECH_BRAND="__allyhubSpeech",MEDIA_BRAND="__allyhubMedia",OUTPUT_KINDS=["video"];export function partAnchorsProblem(e){if(typeof e!="object"||e===null||Array.isArray(e))return"is { name: seconds } or { name: [from, to] }";const t=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0;for(const[r,n]of Object.entries(e)){if(!i.test(r))return`"${r}" is not a name of letters, digits, _ and -`;if(!(Array.isArray(n)?n.length===2&&t(n[0])&&t(n[1])&&n[1]>=n[0]:t(n)))return`.${r} is seconds from the part's start, or [from, to] with to not before from (not ${JSON.stringify(n)})`}}export function partAnchorList(e){return Object.entries(e??{}).map(([t,r])=>typeof r=="number"?{name:t,at:r}:{name:t,at:r[0],end:r[1]})}export const SPEECH_SPEED={min:.5,max:2};export function speechSpeedProblem(e){return typeof e=="number"&&Number.isFinite(e)&&e>=SPEECH_SPEED.min&&e<=SPEECH_SPEED.max?void 0:`speed is how many times as fast it plays, from ${String(SPEECH_SPEED.min)} to ${String(SPEECH_SPEED.max)} (1 as recorded), not ${typeof e=="number"?String(e):JSON.stringify(e)}`}export function isSpeechSpec(e){return typeof e=="object"&&e!==null&&SPEECH_BRAND in e}export const ORIENT_KEYS=["landscape","portrait","square","default"];export function isPerOrient(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export function forOrient(e,t){return isPerOrient(e)?e[t]??e.default:e}export function isLayerSpec(e){return typeof e=="object"&&e!==null&&LAYER_BRAND in e}export function isPartSpec(e){return typeof e=="object"&&e!==null&&PART_BRAND in e}export const PART_DEFAULTS={dur:4,lead:.2,tail:.3};export function partDefaults(...e){const t={...PART_DEFAULTS};for(const r of e)r?.dur!==void 0&&(t.dur=r.dur),r?.lead!==void 0&&(t.lead=r.lead),r?.tail!==void 0&&(t.tail=r.tail);return t}export function isPieceDefinition(e){return typeof e=="object"&&e!==null&&PIECE_BRAND in e}export const outputName=e=>e;export function outputOf(e){const t={};for(const[r,n]of Object.entries(e))s.has(r)||(t[r]=n);return{kind:"video",build:e.parts,options:t}}const s=new Set([PIECE_BRAND,"kind","parts","id","base","title","format","matrix","meta","written"]);export const buildOf=e=>e.parts,pieceIn=(e,t)=>e===t||e.startsWith(`${t}/`);export function pieceName(e){let t=e.replaceAll("\\","/").replace(/^\.\//u,"").replace(/\/+$/u,"");return t=t.replace(/\/(?:video|slides)\.(?:ts|tsx|js|jsx|mts|mjs)$/u,""),t}function o(e){const t=pieceName(e),r=t.replace(/^content\//u,"");return r===t?[t]:[t,r]}export const pieceNamed=(e,t)=>o(t).some(r=>pieceIn(e.id,r)||e.path!==void 0&&pieceIn(e.path,r)),pieceIs=(e,t)=>o(t).some(r=>e.id===r||e.path===r);export function messagePrefix(e){return e.replace(/\//g,".")}export const LAYER_OFF="data-ak-off";export function showLayer(e,t){e.toggleAttribute(LAYER_OFF,!t)}export function layerShown(e){return!e.hasAttribute(LAYER_OFF)}export function addLayerRule(e){if(e.adoptedStyleSheets.some(r=>r.allyhubLayers))return;const t=new CSSStyleSheet;t.replaceSync(`[${LAYER_OFF}] { display: none !important; }`),Object.assign(t,{allyhubLayers:!0}),e.adoptedStyleSheets=[...e.adoptedStyleSheets,t]}
2
+ import{LAYER_BRAND as i,PIECE_BRAND as o}from"@allyhub/piece";import{ANCHOR_NAME as s}from"@allyhub/piece";export const PART_BRAND="__allyhubPart",SPEECH_BRAND="__allyhubSpeech",OUTPUT_KINDS=["video"];export function partAnchorsProblem(t){if(typeof t!="object"||t===null||Array.isArray(t))return"is { name: seconds } or { name: [from, to] }";const r=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0;for(const[e,n]of Object.entries(t)){if(!s.test(e))return`"${e}" is not a name of letters, digits, _ and -`;if(!(Array.isArray(n)?n.length===2&&r(n[0])&&r(n[1])&&n[1]>=n[0]:r(n)))return`.${e} is seconds from the part's start, or [from, to] with to not before from (not ${JSON.stringify(n)})`}}export function partAnchorList(t){return Object.entries(t??{}).map(([r,e])=>typeof e=="number"?{name:r,at:e}:{name:r,at:e[0],end:e[1]})}export const SPEECH_SPEED={min:.5,max:2};export function speechSpeedProblem(t){return typeof t=="number"&&Number.isFinite(t)&&t>=SPEECH_SPEED.min&&t<=SPEECH_SPEED.max?void 0:`speed is how many times as fast it plays, from ${String(SPEECH_SPEED.min)} to ${String(SPEECH_SPEED.max)} (1 as recorded), not ${typeof t=="number"?String(t):JSON.stringify(t)}`}export function isSpeechSpec(t){return typeof t=="object"&&t!==null&&SPEECH_BRAND in t}export const ORIENT_KEYS=["landscape","portrait","square","default"];export function isPerOrient(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}export function forOrient(t,r){return isPerOrient(t)?t[r]??t.default:t}export function isLayerSpec(t){return typeof t=="object"&&t!==null&&i in t}export function isPartSpec(t){return typeof t=="object"&&t!==null&&PART_BRAND in t}export const PART_DEFAULTS={dur:4,lead:.2,tail:.3};export function partDefaults(...t){const r={...PART_DEFAULTS};for(const e of t)e?.dur!==void 0&&(r.dur=e.dur),e?.lead!==void 0&&(r.lead=e.lead),e?.tail!==void 0&&(r.tail=e.tail);return r}export function isPieceDefinition(t){return typeof t=="object"&&t!==null&&o in t}export const outputName=t=>t;export function outputOf(t){const r={};for(const[e,n]of Object.entries(t))f.has(e)||(r[e]=n);return{kind:"video",build:t.parts,options:r}}const f=new Set([o,"kind","parts","id","base","title","script","format","matrix","meta","written"]);export const buildOf=t=>t.parts;export{pieceIn,pieceIs,pieceName,pieceNamed}from"@allyhub/piece";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{LOCALE as m}from"./messages.js";import{OUTPUT_KINDS as u}from"./piece.js";import{musicTimeProblem as b}from"./music.js";import{FPS_HELP as d,VIDEO_FORMAT_HELP as g,formatSpecProblem as f,isVideoFormat as h,parseFps as x}from"./formats.js";import{RESERVED_DIMS as l}from"./matrix.js";export const VideoFormatSchema=t.string().refine(h,{message:`unknown format (${g})`}),ComboSchema=t.record(t.string(),t.string()),ProblemSchema=t.strictObject({code:t.string().regex(/^AK-[A-Z]\d{3}$/),level:t.enum(["error","warn"]),message:t.string(),piece:t.string().optional(),output:t.string().optional(),combo:ComboSchema.optional(),format:t.string().optional(),part:t.string().optional(),t:t.number().optional(),page:t.number().int().nonnegative().optional(),where:t.strictObject({file:t.string().optional(),line:t.number().int().optional(),selector:t.string().optional(),bbox:t.tuple([t.number(),t.number(),t.number(),t.number()]).optional()}).optional()}),Locale=t.string().regex(m,"must be a lower-case locale such as en or zh-cn"),PieceId=t.string().regex(/^[a-z0-9][a-z0-9._-]*(\/[a-z0-9][a-z0-9._-]*)*$/,"id: lowercase letters, digits, . _ -, with / between levels"),DimName=t.string().regex(/^[a-z][a-zA-Z0-9_-]*$/,"dimension name: starts with a letter; letters, digits, _ and -"),DimValue=t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/,"dimension value: letters, digits, . _ -"),OutputName=t.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/,"output name: starts with a letter; letters, digits, _ and -"),DimsSchema=t.record(DimName,t.array(DimValue).min(1)).superRefine((o,e)=>{for(const[n,a]of Object.entries(o)){if(l.includes(n)){e.addIssue({code:"custom",path:[n],message:n==="size"||n==="format"?`${n} is not a dimension: a piece has one format, format: "9x16", and another format is a piece of its own`:`${n} cannot name a dimension: the preview's address uses it. Choose another name`});continue}if(new Set(a).size!==a.length&&e.addIssue({code:"custom",path:[n],message:"the same value is listed twice"}),n==="lang")for(const s of a)m.test(s)||e.addIssue({code:"custom",path:[n],message:`lang value ${s} must be a lowercase language tag, such as en or zh-cn`})}});const O=o=>l.includes(o)?`${o} cannot name a slot: the framework uses it. Choose another name`:void 0;export const CandidateSchema=t.union([DimValue,t.strictObject({name:DimValue,tags:t.array(t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:-]*$/)).optional()})]),SlotSchema=t.union([t.array(CandidateSchema).min(1),t.strictObject({pool:t.string().min(1),tags:t.array(t.string().min(1)).optional()})]);const j=t.union([t.string().min(1),t.array(t.string().min(1)).min(1)]),r=t.record(t.string(),j);export const MatrixSchema=t.strictObject({dims:DimsSchema.optional(),slots:t.record(DimName,SlotSchema).optional(),structures:t.record(DimValue,t.array(DimName).min(1)).optional(),combos:t.array(t.record(DimName,DimValue)).min(1).max(1e4).optional(),pick:t.number().int().min(1).max(1e4).optional(),seed:t.union([t.number(),t.string()]).optional(),differ:t.strictObject({slots:t.number().int().min(1).optional(),first:t.union([t.number().int().min(1),t.array(DimName).min(1)]).optional()}).optional(),rules:t.array(t.strictObject({if:r.optional(),require:r.optional(),exclude:r.optional()})).optional()}).superRefine((o,e)=>{for(const n of Object.keys(o.slots??{})){const a=O(n);a&&e.addIssue({code:"custom",path:["slots",n],message:a})}if(o.structures&&!o.slots&&e.addIssue({code:"custom",path:["structures"],message:"structures order slots: declare matrix.slots too"}),o.combos&&!o.slots&&e.addIssue({code:"custom",path:["combos"],message:"combos choose candidates of slots: declare matrix.slots too"}),o.combos)for(const n of["pick","seed"])o[n]!==void 0&&e.addIssue({code:"custom",path:[n],message:`combos names the combos to make, so nothing is sampled: remove ${n}, which only steers sampling`})}),FormatSpecSchema=t.strictObject({format:t.string().min(1),safe:t.strictObject({top:t.number().optional(),bottom:t.number().optional(),left:t.number().optional(),right:t.number().optional()}).optional(),maxDuration:t.number().positive().optional(),loudness:t.number().min(-70).max(0).optional()}).superRefine((o,e)=>{const n=f(o);n&&e.addIssue({code:"custom",message:n})}),FormatEntrySchema=t.union([t.string().min(1),FormatSpecSchema]);const i=t.number().min(-70).max(0),c=t.unknown().superRefine((o,e)=>{const n=b(o);n&&e.addIssue({code:"custom",message:n})}),p=t.strictObject({from:c,to:c.optional()}),S=t.union([t.number().min(0),t.string().min(1),t.strictObject({part:t.string().min(1),at:t.union([t.number(),t.string().min(1)])})]);export const PartDefaultsSchema=t.strictObject({dur:t.number().positive().max(3600).optional(),lead:t.number().min(0).max(60).optional(),tail:t.number().min(0).max(60).optional()}),VideoOptionsMeta=t.strictObject({music:t.strictObject({file:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),from:t.number().min(0).optional(),loop:t.union([t.boolean(),p]).optional(),play:t.array(p).min(1).optional(),seam:t.number().min(0).max(5).optional(),meter:t.number().int().min(1).max(32).optional(),downbeat:t.number().min(0).optional(),end:t.enum(["film","bar","beat"]).optional(),snap:t.boolean().optional(),bpm:t.number().min(20).max(400).optional(),gain:t.array(t.strictObject({at:S,db:t.number().min(-60).max(24)})).min(1).optional(),filter:t.string().min(1).optional(),eq:t.array(t.unknown()).optional(),compress:t.unknown().optional()}).optional(),mix:t.strictObject({speech:i.optional(),music:i.optional(),musicAlone:i.optional(),sfx:i.optional(),footage:i.optional(),footageUnderSpeech:i.optional(),duck:t.strictObject({db:t.number().min(-60).max(0).optional(),attack:t.number().min(0).max(10).optional(),release:t.number().min(0).max(10).optional(),hold:t.number().min(0).max(60).optional()}).optional(),musicFade:t.strictObject({in:t.number().min(0).max(60).optional(),out:t.number().min(0).max(60).optional()}).optional()}).optional(),mic:t.union([t.string().min(1),t.record(t.string(),t.unknown()),t.literal(!1)]).optional(),look:t.string().min(1).optional(),defaults:t.strictObject({part:PartDefaultsSchema.optional()}).optional(),covers:t.literal(!0).optional(),fps:t.union([t.number(),t.string()]).refine(o=>x(o)!==void 0,{error:`A frame rate is ${d}`}).optional(),transparent:t.boolean().optional(),maxDuration:t.number().positive().optional(),loadLimit:t.number().positive().optional(),seekLimit:t.number().positive().optional(),deliverable:t.boolean().optional(),master:t.union([i,t.literal(!1),t.strictObject({lufs:t.union([i,t.literal(!1)]).optional(),truePeak:t.number().min(-9).max(0).optional()})]).optional(),motionBlur:t.strictObject({samples:t.number().int().min(2).max(16),shutter:t.number().gt(0).max(1).optional()}).optional(),capture:t.strictObject({bloom:t.strictObject({threshold:t.number().optional(),radius:t.number().optional(),strength:t.number().optional()}).optional(),aberration:t.number().optional(),soften:t.number().optional(),vignette:t.number().optional(),exposure:t.strictObject({drift:t.number().optional(),period:t.number().optional()}).optional(),grain:t.strictObject({amount:t.number().optional(),size:t.number().optional(),shadows:t.number().optional(),highlights:t.number().optional(),chroma:t.number().optional(),chromaSize:t.number().optional(),static:t.boolean().optional()}).optional(),sharpen:t.number().optional()}).optional(),post:t.strictObject({filter:t.string().min(1).optional(),lut:t.string().regex(/\.cube$/i,"A LUT is a .cube file").optional()}).optional()}),OutputMeta=t.strictObject({kind:t.enum(u),options:t.record(t.string(),t.unknown())}),PieceMeta=t.strictObject({id:PieceId.optional(),title:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),format:FormatEntrySchema.optional(),matrix:MatrixSchema.optional(),meta:t.record(t.string(),t.unknown()).optional(),outputs:t.record(OutputName,OutputMeta).refine(o=>Object.keys(o).length>0,"outputs needs at least one output")}),LookConfigSchema=t.strictObject({color:t.strictObject({bg:t.string().min(1).optional(),fg:t.string().min(1).optional(),accent:t.string().min(1).optional(),muted:t.string().min(1).optional(),surface:t.string().min(1).optional()}).optional(),font:t.strictObject({display:t.string().min(1).optional(),body:t.string().min(1).optional(),mono:t.string().min(1).optional(),emoji:t.string().min(1).optional()}).optional(),motion:t.strictObject({beat:t.number().positive().optional()}).optional(),sfx:t.record(t.string().regex(/^[a-z][a-z0-9-]*$/,"a sound's name: lowercase letters, digits and -"),t.string().min(1).refine(o=>!o.startsWith("/")&&!o.split(/[\\/]/).includes(".."),"a sound is an audio file relative to the workspace's root")).optional()}),PropSchemaEntry=t.looseObject({type:t.enum(["text","time","asset","color","number","boolean","list","object"])}),ComponentEntry=t.strictObject({name:t.string(),label:t.union([t.string(),t.record(t.string(),t.string())]),file:t.string(),props:t.record(t.string(),PropSchemaEntry),examples:t.array(t.string()),hidden:t.boolean()}),VideoConfigSchema=t.object({look:LookConfigSchema.optional(),defaults:t.strictObject({format:VideoFormatSchema.optional(),part:PartDefaultsSchema.optional()}).optional()});
2
+ import{z as t}from"zod";import{LOCALE as m,FPS_HELP as u,VIDEO_FORMAT_HELP as b,formatSpecProblem as d,isVideoFormat as g,parseFps as f,RESERVED_DIMS as l}from"@allyhub/piece";import{OUTPUT_KINDS as h}from"./piece.js";import{musicTimeProblem as x}from"./music.js";export const VideoFormatSchema=t.string().refine(g,{message:`unknown format (${b})`}),ComboSchema=t.record(t.string(),t.string()),ProblemSchema=t.strictObject({code:t.string().regex(/^AK-[A-Z]\d{3}$/),level:t.enum(["error","warn"]),message:t.string(),piece:t.string().optional(),output:t.string().optional(),combo:ComboSchema.optional(),format:t.string().optional(),part:t.string().optional(),t:t.number().optional(),page:t.number().int().nonnegative().optional(),where:t.strictObject({file:t.string().optional(),line:t.number().int().optional(),selector:t.string().optional(),bbox:t.tuple([t.number(),t.number(),t.number(),t.number()]).optional()}).optional()}),Locale=t.string().regex(m,"must be a lower-case locale such as en or zh-cn"),PieceId=t.string().regex(/^[a-z0-9][a-z0-9._-]*(\/[a-z0-9][a-z0-9._-]*)*$/,"id: lowercase letters, digits, . _ -, with / between levels"),DimName=t.string().regex(/^[a-z][a-zA-Z0-9_-]*$/,"dimension name: starts with a letter; letters, digits, _ and -"),DimValue=t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/,"dimension value: letters, digits, . _ -"),OutputName=t.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/,"output name: starts with a letter; letters, digits, _ and -"),DimsSchema=t.record(DimName,t.array(DimValue).min(1)).superRefine((o,e)=>{for(const[n,a]of Object.entries(o)){if(l.includes(n)){e.addIssue({code:"custom",path:[n],message:n==="size"||n==="format"?`${n} is not a dimension: a piece has one format, format: "9x16", and another format is a piece of its own`:`${n} cannot name a dimension: the preview's address uses it. Choose another name`});continue}if(new Set(a).size!==a.length&&e.addIssue({code:"custom",path:[n],message:"the same value is listed twice"}),n==="lang")for(const s of a)m.test(s)||e.addIssue({code:"custom",path:[n],message:`lang value ${s} must be a lowercase language tag, such as en or zh-cn`})}});const O=o=>l.includes(o)?`${o} cannot name a slot: the framework uses it. Choose another name`:void 0;export const CandidateSchema=t.union([DimValue,t.strictObject({name:DimValue,tags:t.array(t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:-]*$/)).optional()})]),SlotSchema=t.union([t.array(CandidateSchema).min(1),t.strictObject({pool:t.string().min(1),tags:t.array(t.string().min(1)).optional()})]);const j=t.union([t.string().min(1),t.array(t.string().min(1)).min(1)]),r=t.record(t.string(),j);export const MatrixSchema=t.strictObject({dims:DimsSchema.optional(),slots:t.record(DimName,SlotSchema).optional(),structures:t.record(DimValue,t.array(DimName).min(1)).optional(),combos:t.array(t.record(DimName,DimValue)).min(1).max(1e4).optional(),pick:t.number().int().min(1).max(1e4).optional(),seed:t.union([t.number(),t.string()]).optional(),differ:t.strictObject({slots:t.number().int().min(1).optional(),first:t.union([t.number().int().min(1),t.array(DimName).min(1)]).optional()}).optional(),rules:t.array(t.strictObject({if:r.optional(),require:r.optional(),exclude:r.optional()})).optional()}).superRefine((o,e)=>{for(const n of Object.keys(o.slots??{})){const a=O(n);a&&e.addIssue({code:"custom",path:["slots",n],message:a})}if(o.structures&&!o.slots&&e.addIssue({code:"custom",path:["structures"],message:"structures order slots: declare matrix.slots too"}),o.combos&&!o.slots&&e.addIssue({code:"custom",path:["combos"],message:"combos choose candidates of slots: declare matrix.slots too"}),o.combos)for(const n of["pick","seed"])o[n]!==void 0&&e.addIssue({code:"custom",path:[n],message:`combos names the combos to make, so nothing is sampled: remove ${n}, which only steers sampling`})}),FormatSpecSchema=t.strictObject({format:t.string().min(1),safe:t.strictObject({top:t.number().optional(),bottom:t.number().optional(),left:t.number().optional(),right:t.number().optional()}).optional()}).superRefine((o,e)=>{const n=d(o);n&&e.addIssue({code:"custom",message:n})}),FormatEntrySchema=t.union([t.string().min(1),FormatSpecSchema]);const i=t.number().min(-70).max(0),c=t.unknown().superRefine((o,e)=>{const n=x(o);n&&e.addIssue({code:"custom",message:n})}),p=t.strictObject({from:c,to:c.optional()}),S=t.union([t.number().min(0),t.string().min(1),t.strictObject({part:t.string().min(1),at:t.union([t.number(),t.string().min(1)])})]);export const PartDefaultsSchema=t.strictObject({dur:t.number().positive().max(3600).optional(),lead:t.number().min(0).max(60).optional(),tail:t.number().min(0).max(60).optional()}),VideoOptionsMeta=t.strictObject({music:t.strictObject({file:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),from:t.number().min(0).optional(),loop:t.union([t.boolean(),p]).optional(),play:t.array(p).min(1).optional(),seam:t.number().min(0).max(5).optional(),meter:t.number().int().min(1).max(32).optional(),downbeat:t.number().min(0).optional(),end:t.enum(["film","bar","beat"]).optional(),snap:t.boolean().optional(),bpm:t.number().min(20).max(400).optional(),gain:t.array(t.strictObject({at:S,db:t.number().min(-60).max(24)})).min(1).optional(),filter:t.string().min(1).optional(),eq:t.array(t.unknown()).optional(),compress:t.unknown().optional()}).optional(),mix:t.strictObject({speech:i.optional(),music:i.optional(),musicAlone:i.optional(),sfx:i.optional(),footage:i.optional(),footageUnderSpeech:i.optional(),duck:t.strictObject({db:t.number().min(-60).max(0).optional(),attack:t.number().min(0).max(10).optional(),release:t.number().min(0).max(10).optional(),hold:t.number().min(0).max(60).optional()}).optional(),musicFade:t.strictObject({in:t.number().min(0).max(60).optional(),out:t.number().min(0).max(60).optional()}).optional()}).optional(),mic:t.union([t.string().min(1),t.record(t.string(),t.unknown()),t.literal(!1)]).optional(),look:t.string().min(1).optional(),defaults:t.strictObject({part:PartDefaultsSchema.optional()}).optional(),covers:t.literal(!0).optional(),fps:t.union([t.number(),t.string()]).refine(o=>f(o)!==void 0,{error:`A frame rate is ${u}`}).optional(),transparent:t.boolean().optional(),maxDuration:t.number().positive().optional(),loadLimit:t.number().positive().optional(),seekLimit:t.number().positive().optional(),deliverable:t.boolean().optional(),master:t.union([i,t.literal(!1),t.strictObject({lufs:t.union([i,t.literal(!1)]).optional(),truePeak:t.number().min(-9).max(0).optional()})]).optional(),motionBlur:t.strictObject({samples:t.number().int().min(2).max(16),shutter:t.number().gt(0).max(1).optional()}).nullable().optional(),capture:t.strictObject({bloom:t.strictObject({threshold:t.number().optional(),radius:t.number().optional(),strength:t.number().optional()}).optional(),aberration:t.number().optional(),soften:t.number().optional(),vignette:t.number().optional(),exposure:t.strictObject({drift:t.number().optional(),period:t.number().optional()}).optional(),grain:t.strictObject({amount:t.number().optional(),size:t.number().optional(),shadows:t.number().optional(),highlights:t.number().optional(),chroma:t.number().optional(),chromaSize:t.number().optional(),static:t.boolean().optional()}).optional(),sharpen:t.number().optional()}).optional(),post:t.strictObject({filter:t.string().min(1).optional(),lut:t.string().regex(/\.cube$/i,"A LUT is a .cube file").optional()}).optional()}),OutputMeta=t.strictObject({kind:t.enum(h),options:t.record(t.string(),t.unknown())}),PieceMeta=t.strictObject({id:PieceId.optional(),script:t.string().min(1).optional(),title:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),format:FormatEntrySchema.optional(),matrix:MatrixSchema.optional(),meta:t.record(t.string(),t.unknown()).optional(),outputs:t.record(OutputName,OutputMeta).refine(o=>Object.keys(o).length>0,"outputs needs at least one output")}),LookConfigSchema=t.strictObject({color:t.strictObject({bg:t.string().min(1).optional(),fg:t.string().min(1).optional(),accent:t.string().min(1).optional(),muted:t.string().min(1).optional(),surface:t.string().min(1).optional()}).optional(),font:t.strictObject({display:t.string().min(1).optional(),body:t.string().min(1).optional(),mono:t.string().min(1).optional(),emoji:t.string().min(1).optional()}).optional(),motion:t.strictObject({beat:t.number().positive().optional()}).optional(),sfx:t.record(t.string().regex(/^[a-z][a-z0-9-]*$/,"a sound's name: lowercase letters, digits and -"),t.string().min(1).refine(o=>!o.startsWith("/")&&!o.split(/[\\/]/).includes(".."),"a sound is an audio file relative to the workspace's root")).optional()}),PropSchemaEntry=t.looseObject({type:t.enum(["text","time","asset","color","number","boolean","list","object"])}),ComponentEntry=t.strictObject({name:t.string(),label:t.union([t.string(),t.record(t.string(),t.string())]),file:t.string(),props:t.record(t.string(),PropSchemaEntry),examples:t.array(t.string()),hidden:t.boolean()}),VideoConfigSchema=t.object({look:LookConfigSchema.optional(),defaults:t.strictObject({format:VideoFormatSchema.optional(),part:PartDefaultsSchema.optional()}).optional()});
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{editLine as y,joinLines as N,readLine as R,rewordLine as V,sliceLine as k,spokenLine as q,withoutAnchors as L,writeLine as T}from"./anchors.js";import{isSpoken as F}from"./messages.js";const J=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&"match"in e;function $(e,t,n){if(e!==void 0){if(typeof e=="string")n.push({field:t,value:e});else if(Array.isArray(e))e.forEach((s,i)=>{$(s,`${t}.${String(i)}`,n)});else if(F(e))n.push({field:`${t}.display`,value:e.display}),n.push({field:`${t}.speak`,value:e.speak});else if(!J(e))for(const[s,i]of Object.entries(e))$(i,`${t}.${s}`,n)}}export function partTexts(e){const t=[];$(e.say,"say",t);for(const[n,s]of Object.entries(e.screen??{}))$(s,`screen.${n}`,t);return t}export function itemTexts(e){const t=[];for(const[n,s]of Object.entries(e.text??{}))$(s,`text.${n}`,t);return t}function w(e,t,n){const[s,...i]=t;if(s===void 0)return n;if(Array.isArray(e))return e.map((o,d)=>String(d)===s?w(o,i,n):o);if(typeof e=="object"){const o=e,d=o[s];return d===void 0?e:{...o,[s]:w(d,i,n)}}return e}export function setPartText(e,t,n){const[s,...i]=t.split(".");if(s==="say"){const o=e.say===void 0?n:w(e.say,i,n);return{...e,say:o}}return s==="screen"&&e.screen?{...e,screen:w(e.screen,i,n)}:e}export function setItemText(e,t,n){const[s,...i]=t.split(".");return s!=="text"||!e.text?e:{...e,text:w(e.text,i,n)}}const I=(e,t,n)=>({...e,parts:e.parts.map(s=>s.id===t?n(s):s)});export function newPartId(...e){const t=new Set(e.flatMap(n=>n.parts.map(s=>s.id)));for(let n=1;;n++){const s=`new-${String(n)}`;if(!t.has(s))return s}}export const SAY="say";const M=e=>typeof e.say=="string"?e.say:void 0;export const saidText=e=>{const t=M(e);return t===void 0?void 0:L(t)};const p=e=>R(M(e)??"");export const saidAnchors=e=>p(e).anchors,saidSpans=e=>p(e).spans,spokenText=e=>M(e)===void 0?void 0:q(p(e)).text;const l=(e,t)=>setPartText(e,SAY,T(t));export function placeOfRemoved(e,t,n){const s=t.parts.findIndex(i=>i.id===n);for(let i=s+1;i<t.parts.length;i++){const o=e.findIndex(d=>d.id===t.parts[i]?.id);if(o>=0)return o}return e.length}export const draftEdit={text:(e,t,n,s)=>I(e,t,i=>{const o=saidText(i);return n===SAY&&o!==void 0?l(i,V(p(i),s)):setPartText(i,n,s)}),title:(e,t)=>({...e,title:t}),remove:(e,t)=>({...e,parts:e.parts.filter(n=>n.id!==t)}),restore(e,t,n){const s=t.parts.find(o=>o.id===n);if(!s||e.parts.some(o=>o.id===n))return e;const i=[...e.parts];return i.splice(placeOfRemoved(i,t,n),0,s),{...e,parts:i}},add(e,t,n){const s=newPartId(e,t),i=n===void 0?0:e.parts.findIndex(d=>d.id===n)+1,o=[...e.parts];return o.splice(i,0,{id:s,say:""}),{script:{...e,parts:o},id:s}},insert(e,t,n){const s=e.parts.find(d=>d.id===t.id);if(!s)return{script:e,caret:t};const i=saidText(s)??"",o=Math.max(0,Math.min(t.offset,i.length));return{script:I(e,t.id,d=>l(d,y(p(d),o,0,n))),caret:{id:t.id,offset:o+n.length}}},replace(e,t,n,s){const i=e.parts.find(f=>f.id===t.id),o=i?saidText(i):void 0;if(t.id!==n.id||!i||o===void 0){const f=draftEdit.cut(e,t,n);return f.caret?draftEdit.insert(f.script,f.caret,s):{script:f.script,caret:void 0}}const d=f=>Math.max(0,Math.min(f.offset,o.length)),r=Math.min(d(t),d(n)),c=Math.max(d(t),d(n));return{script:I(e,t.id,f=>l(f,y(p(f),r,c-r,s))),caret:{id:t.id,offset:r+s.length}}},cut(e,t,n){const s=e.parts.findIndex(a=>a.id===t.id),i=e.parts.findIndex(a=>a.id===n.id);if(s<0||i<0)return{script:e,caret:t};const[o,d,r,c]=s<i||s===i&&t.offset<=n.offset?[t,n,s,i]:[n,t,i,s],f=e.parts[r],u=e.parts[c];if(!f||!u)return{script:e,caret:t};if(r===c){const a=saidText(f)??"";return{script:a.slice(0,o.offset)+a.slice(d.offset)===a?e:I(e,f.id,S=>l(S,y(p(S),o.offset,d.offset-o.offset,""))),caret:o}}const m=saidText(f)??"",g=m.slice(0,o.offset),j=o.offset>0,A=d.offset<(saidText(u)??"").length||d.offset<=0,E=e.parts.flatMap((a,h)=>h<r||h>c?[a]:h===r?j?[saidText(a)===void 0?a:l(a,y(p(a),g.length,m.length-g.length,""))]:[]:h>r&&h<c&&saidText(a)===void 0?[a]:h===c?A?[saidText(a)===void 0||d.offset<=0?a:l(a,y(p(a),0,d.offset,""))]:[]:[]),C=j?{id:f.id,offset:g.length}:A?{id:u.id,offset:0}:void 0;return{script:{...e,parts:E},caret:C}},move(e,t,n){const s=e.parts.findIndex(r=>r.id===t),i=s+n,o=e.parts[s];if(!o||i<0||i>=e.parts.length)return e;const d=[...e.parts];return d.splice(s,1),d.splice(i,0,o),{...e,parts:d}},split(e,t,n,s){const i=e.parts.find(u=>u.id===n),o=i?saidText(i):void 0;if(!i||o===void 0)return{script:e,id:void 0};const d=newPartId(e,t),r=p(i),c=e.parts.indexOf(i),f=[...e.parts];return f.splice(c,1,l(i,k(r,0,s)),{id:d,say:T(k(r,s,o.length))}),{script:{...e,parts:f},id:d}},merge(e,t,n){const s=e.parts.findIndex(c=>c.id===t),i=e.parts[s],o=n===void 0?s-1:e.parts.findIndex(c=>c.id===n),d=e.parts[o];if(!i||!d||o===s)return e;const r=l(d,N(p(d),p(i)));return{...e,parts:e.parts.flatMap((c,f)=>f===s?[]:f===o?[r]:[c])}}};export function withVideoParts(e,t){const n=[...e.parts];return t.forEach((s,i)=>{if(n.some(d=>d.id===s))return;let o=0;for(let d=i-1;d>=0;d--){const r=n.findIndex(c=>c.id===t[d]);if(r>=0){o=r+1;break}}n.splice(o,0,{id:s})}),n.length===e.parts.length?e:{...e,parts:n}}function W(e,t){const n=e.length,s=t.length,i=Array.from({length:n+1},()=>new Array(s+1).fill(0));for(let c=n-1;c>=0;c--)for(let f=s-1;f>=0;f--){const u=i[c];u&&(u[f]=e[c]===t[f]?(i[c+1]?.[f+1]??0)+1:Math.max(i[c+1]?.[f]??0,u[f+1]??0))}const o=new Set;let d=0,r=0;for(;d<n&&r<s;){const c=e[d];c!==void 0&&c===t[r]?(o.add(c),d++,r++):(i[d+1]?.[r]??0)>=(i[d]?.[r+1]??0)?d++:r++}return o}function P(e,t,n){const s=[],i=new Map(e.map(r=>[r.field,r.value])),o=new Map(t.map(r=>[r.field,r.value])),d=(r,c)=>r==="say"||r.startsWith("say.")?L(c):c;for(const[r,c]of o){const f=i.get(r);(f===void 0||d(r,f)!==d(r,c))&&s.push({kind:"text",...n===void 0?{}:{part:n},field:r,...f===void 0?{}:{before:f},after:c})}for(const[r,c]of i)o.has(r)||s.push({kind:"text",...n===void 0?{}:{part:n},field:r,before:c});return s}export function scriptChanges(e,t){const n=[];e.title!==t.title&&n.push({kind:"title",...e.title===void 0?{}:{before:e.title},...t.title===void 0?{}:{after:t.title}}),n.push(...P(itemTexts(e),itemTexts(t),void 0));const s=e.parts.map(r=>r.id),i=t.parts.map(r=>r.id),o=new Set(s.filter(r=>i.includes(r))),d=W(s.filter(r=>o.has(r)),i.filter(r=>o.has(r)));t.parts.forEach((r,c)=>{const f=t.parts[c-1]?.id,u=f===void 0?{}:{after:f},m=e.parts.find(g=>g.id===r.id);if(!m){n.push({kind:"add",part:r.id,...u,texts:partTexts(r)});return}d.has(r.id)||n.push({kind:"move",part:r.id,...u}),n.push(...P(partTexts(m),partTexts(r),r.id))});for(const r of e.parts){if(o.has(r.id))continue;const c=saidText(r);n.push({kind:"remove",part:r.id,...c===void 0?{}:{said:c}})}return n}const x=e=>e===void 0||e===""?"(nothing)":JSON.stringify(e),O=e=>e===void 0?"first":`after ${e}`;export function changeLine(e){switch(e.kind){case"title":return`Title: ${x(e.before)} → ${x(e.after)}`;case"text":return`${e.part===void 0?"The item's text":`Part ${e.part}`}, ${e.field}: ${x(e.before)} → ${x(e.after)}`;case"remove":return`Part ${e.part}: removed${e.said?` (it said ${x(e.said)})`:""}`;case"add":return`New part ${e.part}, ${O(e.after)}: ${e.texts.length===0?"empty":e.texts.map(t=>`${t.field} ${x(t.value)}`).join("; ")}`;case"move":return`Part ${e.part}: moved, now ${O(e.after)}`}}
2
+ import{isSpoken as N}from"@allyhub/piece";import{editLine as y,joinLines as R,readLine as V,rewordLine as q,sliceLine as k,spokenLine as F,withoutAnchors as L,writeLine as T}from"@allyhub/piece";const J=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&"match"in e;function $(e,t,n){if(e!==void 0){if(typeof e=="string")n.push({field:t,value:e});else if(Array.isArray(e))e.forEach((s,i)=>{$(s,`${t}.${String(i)}`,n)});else if(N(e))n.push({field:`${t}.display`,value:e.display}),n.push({field:`${t}.speak`,value:e.speak});else if(!J(e))for(const[s,i]of Object.entries(e))$(i,`${t}.${s}`,n)}}export function partTexts(e){const t=[];$(e.say,"say",t);for(const[n,s]of Object.entries(e.screen??{}))$(s,`screen.${n}`,t);return t}export function itemTexts(e){const t=[];for(const[n,s]of Object.entries(e.text??{}))$(s,`text.${n}`,t);return t}function w(e,t,n){const[s,...i]=t;if(s===void 0)return n;if(Array.isArray(e))return e.map((o,d)=>String(d)===s?w(o,i,n):o);if(typeof e=="object"){const o=e,d=o[s];return d===void 0?e:{...o,[s]:w(d,i,n)}}return e}export function setPartText(e,t,n){const[s,...i]=t.split(".");if(s==="say"){const o=e.say===void 0?n:w(e.say,i,n);return{...e,say:o}}return s==="screen"&&e.screen?{...e,screen:w(e.screen,i,n)}:e}export function setItemText(e,t,n){const[s,...i]=t.split(".");return s!=="text"||!e.text?e:{...e,text:w(e.text,i,n)}}const I=(e,t,n)=>({...e,parts:e.parts.map(s=>s.id===t?n(s):s)});export function newPartId(...e){const t=new Set(e.flatMap(n=>n.parts.map(s=>s.id)));for(let n=1;;n++){const s=`new-${String(n)}`;if(!t.has(s))return s}}export const SAY="say";const M=e=>typeof e.say=="string"?e.say:void 0;export const saidText=e=>{const t=M(e);return t===void 0?void 0:L(t)};const p=e=>V(M(e)??"");export const saidAnchors=e=>p(e).anchors,saidSpans=e=>p(e).spans,spokenText=e=>M(e)===void 0?void 0:F(p(e)).text;const l=(e,t)=>setPartText(e,SAY,T(t));export function placeOfRemoved(e,t,n){const s=t.parts.findIndex(i=>i.id===n);for(let i=s+1;i<t.parts.length;i++){const o=e.findIndex(d=>d.id===t.parts[i]?.id);if(o>=0)return o}return e.length}export const draftEdit={text:(e,t,n,s)=>I(e,t,i=>{const o=saidText(i);return n===SAY&&o!==void 0?l(i,q(p(i),s)):setPartText(i,n,s)}),title:(e,t)=>({...e,title:t}),remove:(e,t)=>({...e,parts:e.parts.filter(n=>n.id!==t)}),restore(e,t,n){const s=t.parts.find(o=>o.id===n);if(!s||e.parts.some(o=>o.id===n))return e;const i=[...e.parts];return i.splice(placeOfRemoved(i,t,n),0,s),{...e,parts:i}},add(e,t,n){const s=newPartId(e,t),i=n===void 0?0:e.parts.findIndex(d=>d.id===n)+1,o=[...e.parts];return o.splice(i,0,{id:s,say:""}),{script:{...e,parts:o},id:s}},insert(e,t,n){const s=e.parts.find(d=>d.id===t.id);if(!s)return{script:e,caret:t};const i=saidText(s)??"",o=Math.max(0,Math.min(t.offset,i.length));return{script:I(e,t.id,d=>l(d,y(p(d),o,0,n))),caret:{id:t.id,offset:o+n.length}}},replace(e,t,n,s){const i=e.parts.find(f=>f.id===t.id),o=i?saidText(i):void 0;if(t.id!==n.id||!i||o===void 0){const f=draftEdit.cut(e,t,n);return f.caret?draftEdit.insert(f.script,f.caret,s):{script:f.script,caret:void 0}}const d=f=>Math.max(0,Math.min(f.offset,o.length)),r=Math.min(d(t),d(n)),c=Math.max(d(t),d(n));return{script:I(e,t.id,f=>l(f,y(p(f),r,c-r,s))),caret:{id:t.id,offset:r+s.length}}},cut(e,t,n){const s=e.parts.findIndex(a=>a.id===t.id),i=e.parts.findIndex(a=>a.id===n.id);if(s<0||i<0)return{script:e,caret:t};const[o,d,r,c]=s<i||s===i&&t.offset<=n.offset?[t,n,s,i]:[n,t,i,s],f=e.parts[r],u=e.parts[c];if(!f||!u)return{script:e,caret:t};if(r===c){const a=saidText(f)??"";return{script:a.slice(0,o.offset)+a.slice(d.offset)===a?e:I(e,f.id,S=>l(S,y(p(S),o.offset,d.offset-o.offset,""))),caret:o}}const m=saidText(f)??"",g=m.slice(0,o.offset),j=o.offset>0,A=d.offset<(saidText(u)??"").length||d.offset<=0,E=e.parts.flatMap((a,h)=>h<r||h>c?[a]:h===r?j?[saidText(a)===void 0?a:l(a,y(p(a),g.length,m.length-g.length,""))]:[]:h>r&&h<c&&saidText(a)===void 0?[a]:h===c?A?[saidText(a)===void 0||d.offset<=0?a:l(a,y(p(a),0,d.offset,""))]:[]:[]),C=j?{id:f.id,offset:g.length}:A?{id:u.id,offset:0}:void 0;return{script:{...e,parts:E},caret:C}},move(e,t,n){const s=e.parts.findIndex(r=>r.id===t),i=s+n,o=e.parts[s];if(!o||i<0||i>=e.parts.length)return e;const d=[...e.parts];return d.splice(s,1),d.splice(i,0,o),{...e,parts:d}},split(e,t,n,s){const i=e.parts.find(u=>u.id===n),o=i?saidText(i):void 0;if(!i||o===void 0)return{script:e,id:void 0};const d=newPartId(e,t),r=p(i),c=e.parts.indexOf(i),f=[...e.parts];return f.splice(c,1,l(i,k(r,0,s)),{id:d,say:T(k(r,s,o.length))}),{script:{...e,parts:f},id:d}},merge(e,t,n){const s=e.parts.findIndex(c=>c.id===t),i=e.parts[s],o=n===void 0?s-1:e.parts.findIndex(c=>c.id===n),d=e.parts[o];if(!i||!d||o===s)return e;const r=l(d,R(p(d),p(i)));return{...e,parts:e.parts.flatMap((c,f)=>f===s?[]:f===o?[r]:[c])}}};export function withVideoParts(e,t){const n=[...e.parts];return t.forEach((s,i)=>{if(n.some(d=>d.id===s))return;let o=0;for(let d=i-1;d>=0;d--){const r=n.findIndex(c=>c.id===t[d]);if(r>=0){o=r+1;break}}n.splice(o,0,{id:s})}),n.length===e.parts.length?e:{...e,parts:n}}function W(e,t){const n=e.length,s=t.length,i=Array.from({length:n+1},()=>new Array(s+1).fill(0));for(let c=n-1;c>=0;c--)for(let f=s-1;f>=0;f--){const u=i[c];u&&(u[f]=e[c]===t[f]?(i[c+1]?.[f+1]??0)+1:Math.max(i[c+1]?.[f]??0,u[f+1]??0))}const o=new Set;let d=0,r=0;for(;d<n&&r<s;){const c=e[d];c!==void 0&&c===t[r]?(o.add(c),d++,r++):(i[d+1]?.[r]??0)>=(i[d]?.[r+1]??0)?d++:r++}return o}function P(e,t,n){const s=[],i=new Map(e.map(r=>[r.field,r.value])),o=new Map(t.map(r=>[r.field,r.value])),d=(r,c)=>r==="say"||r.startsWith("say.")?L(c):c;for(const[r,c]of o){const f=i.get(r);(f===void 0||d(r,f)!==d(r,c))&&s.push({kind:"text",...n===void 0?{}:{part:n},field:r,...f===void 0?{}:{before:f},after:c})}for(const[r,c]of i)o.has(r)||s.push({kind:"text",...n===void 0?{}:{part:n},field:r,before:c});return s}export function scriptChanges(e,t){const n=[];e.title!==t.title&&n.push({kind:"title",...e.title===void 0?{}:{before:e.title},...t.title===void 0?{}:{after:t.title}}),n.push(...P(itemTexts(e),itemTexts(t),void 0));const s=e.parts.map(r=>r.id),i=t.parts.map(r=>r.id),o=new Set(s.filter(r=>i.includes(r))),d=W(s.filter(r=>o.has(r)),i.filter(r=>o.has(r)));t.parts.forEach((r,c)=>{const f=t.parts[c-1]?.id,u=f===void 0?{}:{after:f},m=e.parts.find(g=>g.id===r.id);if(!m){n.push({kind:"add",part:r.id,...u,texts:partTexts(r)});return}d.has(r.id)||n.push({kind:"move",part:r.id,...u}),n.push(...P(partTexts(m),partTexts(r),r.id))});for(const r of e.parts){if(o.has(r.id))continue;const c=saidText(r);n.push({kind:"remove",part:r.id,...c===void 0?{}:{said:c}})}return n}const x=e=>e===void 0||e===""?"(nothing)":JSON.stringify(e),O=e=>e===void 0?"first":`after ${e}`;export function changeLine(e){switch(e.kind){case"title":return`Title: ${x(e.before)} → ${x(e.after)}`;case"text":return`${e.part===void 0?"The item's text":`Part ${e.part}`}, ${e.field}: ${x(e.before)} → ${x(e.after)}`;case"remove":return`Part ${e.part}: removed${e.said?` (it said ${x(e.said)})`:""}`;case"add":return`New part ${e.part}, ${O(e.after)}: ${e.texts.length===0?"empty":e.texts.map(t=>`${t.field} ${x(t.value)}`).join("; ")}`;case"move":return`Part ${e.part}: moved, now ${O(e.after)}`}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{frameDb as k}from"./voice.js";export const SOUND_DEFAULTS={gap:.2,edge:.05,voiced:50};const d=n=>Math.round(n*10)/10,b=n=>Math.round(n*1e3)/1e3;function m(n,h){const s=[...n].sort((e,i)=>e-i),o=e=>s[Math.min(s.length-1,Math.floor(e*s.length))]??-120;return{seconds:b(s.length*h),p10:d(o(.1)),median:d(o(.5)),p90:d(o(.9))}}export function soundUnder(n,h,s,o={}){const e={...SOUND_DEFAULTS,...o},i=n.db.length,p=[];for(let t=0;t<i;t++)p.push(k(n,t));const f=[...p].sort((t,c)=>t-c),u=f.slice(0,Math.max(1,Math.floor(f.length/10))),M=u.length?d(u.reduce((t,c)=>t+c,0)/u.length):-120,U={gap:e.gap,edge:e.edge,voiced:e.voiced,whole:m(p,n.hop),floor:M};if(!h)return U;const w=t=>t*n.hop,a=new Uint8Array(i),x=t=>Math.ceil(t/n.hop-1e-6);for(const t of h){const c=Math.max(0,x(t.start-e.edge)),r=Math.min(i-1,x(t.end+e.edge)-1);for(let l=c;l<=r;l++)l>=x(t.start)&&l<x(t.end)?a[l]=1:a[l]===0&&(a[l]=2)}const v=[],g=[];let D=0;const P=[];for(let t=0;t<i;){if(a[t]===1&&v.push(k(n,t)),a[t]!==0){t++;continue}let c=t;for(;c<i&&a[c]===0;)c++;if((c-t)*n.hop>=e.gap){P.push([w(t),w(c)]);for(let r=t;r<c;r++)g.push(k(n,r)),(n.voicing[r]??0)>=e.voiced&&D++}t=c}const F=s.filter(t=>P.some(([c,r])=>t>=c&&t<r)).length,A=g.length*n.hop/60;return{...U,...v.length>0?{words:m(v,n.hop)}:{},...g.length>0?{between:{...m(g,n.hop),voicedShare:b(D/g.length),onsetsPerMinute:A>0?d(F/A):0}}:{}}}const S=(n,h)=>h>0?d(n*60/h):0;export function paceOf(n,h,s,o){const e=o[0],i=o.at(-1),p=e&&i?i.end-e.start:0,f=o.reduce((u,M)=>u+Math.max(0,M.end-M.start),0);return{tempo:s?{bpm:s.bpm,confidence:s.confidence}:null,onsetsPerMinute:S(h,n),wordsPerMinute:S(o.length,n),speakingRate:S(o.length,p),speechShare:n>0?Math.min(1,b(f/n)):0,timeToFirstWord:e?b(e.start):null}}export function joinedWords(n,h){const s=[];for(const o of[...n].sort((e,i)=>e.start-i.start)){const e=s.at(-1);if(e?.text===o.text&&o.start-e.end<=h&&o.start>=e.start){s[s.length-1]={...e,end:Math.max(e.end,o.end)};continue}s.push({...o})}return s}
2
+ import{frameDb as k}from"@allyhub/piece";export const SOUND_DEFAULTS={gap:.2,edge:.05,voiced:50};const d=n=>Math.round(n*10)/10,b=n=>Math.round(n*1e3)/1e3;function m(n,h){const s=[...n].sort((e,i)=>e-i),o=e=>s[Math.min(s.length-1,Math.floor(e*s.length))]??-120;return{seconds:b(s.length*h),p10:d(o(.1)),median:d(o(.5)),p90:d(o(.9))}}export function soundUnder(n,h,s,o={}){const e={...SOUND_DEFAULTS,...o},i=n.db.length,p=[];for(let t=0;t<i;t++)p.push(k(n,t));const f=[...p].sort((t,c)=>t-c),u=f.slice(0,Math.max(1,Math.floor(f.length/10))),M=u.length?d(u.reduce((t,c)=>t+c,0)/u.length):-120,U={gap:e.gap,edge:e.edge,voiced:e.voiced,whole:m(p,n.hop),floor:M};if(!h)return U;const w=t=>t*n.hop,a=new Uint8Array(i),x=t=>Math.ceil(t/n.hop-1e-6);for(const t of h){const c=Math.max(0,x(t.start-e.edge)),r=Math.min(i-1,x(t.end+e.edge)-1);for(let l=c;l<=r;l++)l>=x(t.start)&&l<x(t.end)?a[l]=1:a[l]===0&&(a[l]=2)}const v=[],g=[];let D=0;const P=[];for(let t=0;t<i;){if(a[t]===1&&v.push(k(n,t)),a[t]!==0){t++;continue}let c=t;for(;c<i&&a[c]===0;)c++;if((c-t)*n.hop>=e.gap){P.push([w(t),w(c)]);for(let r=t;r<c;r++)g.push(k(n,r)),(n.voicing[r]??0)>=e.voiced&&D++}t=c}const F=s.filter(t=>P.some(([c,r])=>t>=c&&t<r)).length,A=g.length*n.hop/60;return{...U,...v.length>0?{words:m(v,n.hop)}:{},...g.length>0?{between:{...m(g,n.hop),voicedShare:b(D/g.length),onsetsPerMinute:A>0?d(F/A):0}}:{}}}const S=(n,h)=>h>0?d(n*60/h):0;export function paceOf(n,h,s,o){const e=o[0],i=o.at(-1),p=e&&i?i.end-e.start:0,f=o.reduce((u,M)=>u+Math.max(0,M.end-M.start),0);return{tempo:s?{bpm:s.bpm,confidence:s.confidence}:null,onsetsPerMinute:S(h,n),wordsPerMinute:S(o.length,n),speakingRate:S(o.length,p),speechShare:n>0?Math.min(1,b(f/n)):0,timeToFirstWord:e?b(e.start):null}}export function joinedWords(n,h){const s=[];for(const o of[...n].sort((e,i)=>e.start-i.start)){const e=s.at(-1);if(e?.text===o.text&&o.start-e.end<=h&&o.start>=e.start){s[s.length-1]={...e,end:Math.max(e.end,o.end)};continue}s.push({...o})}return s}
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{MEDIA_DIR as p}from"@allyhub/formats";export const SAY_DIR=`${p}/gen/say`,DEFAULT_VOICE_TOOL="speech-elevenlabs-multilingual-v2";export function hash64(n){let t=0xcbf29ce484222325n;const e=0x100000001b3n;for(const r of new TextEncoder().encode(n))t^=BigInt(r),t=t*e&0xffffffffffffffffn;return t.toString(16).padStart(16,"0")}export function notJson(n,t="value"){if(n===null||typeof n=="string"||typeof n=="boolean")return;if(typeof n=="number")return Number.isFinite(n)?void 0:t;if(typeof n!="object")return t;if(Array.isArray(n)){for(const[r,o]of n.entries()){const i=notJson(o,`${t}[${String(r)}]`);if(i!==void 0)return i}return}const e=Object.getPrototypeOf(n);if(e!==Object.prototype&&e!==null)return t;for(const[r,o]of Object.entries(n)){const i=notJson(o,`${t}.${r}`);if(i!==void 0)return i}}export function canonicalJson(n){if(Array.isArray(n))return`[${n.map(canonicalJson).join(",")}]`;if(typeof n=="object"&&n!==null){const t=n;return`{${Object.keys(t).sort().map(e=>`${JSON.stringify(e)}:${canonicalJson(t[e])}`).join(",")}}`}return JSON.stringify(n)}export function sayStem(n){const t=n.tool??DEFAULT_VOICE_TOOL,e=n.params&&Object.keys(n.params).length>0?`
2
+ import{MEDIA_DIR as p}from"@allyhub/formats";export const SAY_DIR=`${p}/gen/say`,DEFAULT_VOICE_TOOL="speak";export function hash64(n){let t=0xcbf29ce484222325n;const e=0x100000001b3n;for(const r of new TextEncoder().encode(n))t^=BigInt(r),t=t*e&0xffffffffffffffffn;return t.toString(16).padStart(16,"0")}export function notJson(n,t="value"){if(n===null||typeof n=="string"||typeof n=="boolean")return;if(typeof n=="number")return Number.isFinite(n)?void 0:t;if(typeof n!="object")return t;if(Array.isArray(n)){for(const[r,o]of n.entries()){const s=notJson(o,`${t}[${String(r)}]`);if(s!==void 0)return s}return}const e=Object.getPrototypeOf(n);if(e!==Object.prototype&&e!==null)return t;for(const[r,o]of Object.entries(n)){const s=notJson(o,`${t}.${r}`);if(s!==void 0)return s}}export function canonicalJson(n){if(Array.isArray(n))return`[${n.map(canonicalJson).join(",")}]`;if(typeof n=="object"&&n!==null){const t=n;return`{${Object.keys(t).sort().map(e=>`${JSON.stringify(e)}:${canonicalJson(t[e])}`).join(",")}}`}return JSON.stringify(n)}export function sayStem(n){const t=n.tool??DEFAULT_VOICE_TOOL,e=n.params&&Object.keys(n.params).length>0?`
3
3
  ${canonicalJson(n.params)}`:"";return`${SAY_DIR}/${hash64(`${t}
4
4
  ${n.voice??""}
5
- ${n.text}${e}`)}`}export function mediaByStem(n,t){for(const[e,r]of Object.entries(n))if(r.kind==="audio"&&e.startsWith(`${t}.`)){const o=e.slice(t.length+1);if(!o.includes("/")&&!o.includes("."))return r}}export function speechWords(n,t){const e=t.speed??1,r=t.cuts;return!r||r.length===0?wordsIn(n,t.from,t.end-t.start,t.start,e):r.flatMap((o,i)=>{const c=r[i+1]?.at??t.end;return wordsIn(n,o.from,c-o.at,o.at,e)})}export function wordsIn(n,t,e,r,o=1){const i=s=>Math.round(s*1e3)/1e3,c=t+e*o,d=r-t,u=s=>i(o===1?s+d:r+(s-t)/o);return n.filter(s=>s.start>=t-1e-6&&s.start<c-1e-6).map(s=>({text:s.text,start:u(s.start),end:u(Math.min(s.end,c))}))}const a=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/gu;export const SPEECH_RATE_DEFAULTS={word:.38,cjk:.22};export function speechUnits(n){const t=n.match(a)?.length??0;return{words:n.replace(a," ").split(/\s+/u).filter(r=>/[\p{L}\p{N}]/u.test(r)).length,cjk:t}}const f=(n,t)=>{const{words:e,cjk:r}=speechUnits(n);return e*(t.word??SPEECH_RATE_DEFAULTS.word)+r*(t.cjk??SPEECH_RATE_DEFAULTS.cjk)};export function estimateSpeech(n,t={}){return Math.max(1,Math.round(f(n,t)*10)/10)}export function speechLength(n,t,e={}){const r=f(n,e),o=t===void 0?0:f(t.text,e),i=t!==void 0&&o>0&&t.seconds>0?t.seconds*r/o:r;return Math.round(i*10)/10}
5
+ ${n.text}${e}`)}`}export function speechWords(n,t){const e=t.speed??1,r=t.cuts;return!r||r.length===0?wordsIn(n,t.from,t.end-t.start,t.start,e):r.flatMap((o,s)=>{const i=r[s+1]?.at??t.end;return wordsIn(n,o.from,i-o.at,o.at,e)})}export function wordsIn(n,t,e,r,o=1){const s=c=>Math.round(c*1e3)/1e3,i=t+e*o,d=r-t,u=c=>s(o===1?c+d:r+(c-t)/o);return n.filter(c=>c.start>=t-1e-6&&c.start<i-1e-6).map(c=>({text:c.text,start:u(c.start),end:u(Math.min(c.end,i))}))}const a=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/gu;export const SPEECH_RATE_DEFAULTS={word:.38,cjk:.22};export function speechUnits(n){const t=n.match(a)?.length??0;return{words:n.replace(a," ").split(/\s+/u).filter(r=>/[\p{L}\p{N}]/u.test(r)).length,cjk:t}}const f=(n,t)=>{const{words:e,cjk:r}=speechUnits(n);return e*(t.word??SPEECH_RATE_DEFAULTS.word)+r*(t.cjk??SPEECH_RATE_DEFAULTS.cjk)};export function estimateSpeech(n,t={}){return Math.max(1,Math.round(f(n,t)*10)/10)}export function speechLength(n,t,e={}){const r=f(n,e),o=t===void 0?0:f(t.text,e),s=t!==void 0&&o>0&&t.seconds>0?t.seconds*r/o:r;return Math.round(s*10)/10}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const filmSummary=s=>({kind:s.kind,timeline:s.timeline,problems:s.problems(),facts:s.facts(),reads:s.reads(),text:s.text(),says:s.says(),signs:s.signs(),covers:s.covers(),seekLimit:s.seekLimit});
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{parseAnchorRef as f}from"./anchors.js";export function planeAt(t,s,r){return(t?.planes[s]?.layers??[]).some(n=>n.end>n.start&&r>=n.start-1e-6&&r<n.end+1e-6)}export function stackOf(t,s){const r=s.filter(a=>a.part===t.key),n=[];for(let a=0;a<=t.planes.length;a++){for(const o of r)Math.min(o.over??0,t.planes.length)===a&&n.push({kind:"footage",footage:o});const e=t.planes[a];if(e&&(n.push({kind:"graphics",plane:a,layers:e.layers}),!!e.behindPerson))for(const o of r)o.cutout===!0&&(o.over??0)===a&&n.push({kind:"person",footage:o})}return n}export function momentOf(t,s){const r=new Set(t.parts.flatMap(e=>(e.anchors??[]).map(o=>o.name))),n=f(s,r);if(n){for(const e of t.parts){const o=e.anchors?.find(i=>i.name===n.name);if(o){if(n.end&&o.end===void 0)throw new Error(`The anchor "${n.name}" of part ${e.key} is a place, not a stretch: "@/${n.name}" has no end. Use "@${n.name}".`);return(n.end?o.end??o.at:o.at)+n.shift}}throw new Error(`No part of the video has the anchor "${n.name}"; it has ${r.size>0?[...r].map(e=>`@${e}`).join(", "):"no anchors"}.`)}const a=t.parts.find(e=>e.key===s);if(a)return a.start;throw new Error(`"${s}" is not an anchor ("@name") or a part of the video; its parts are ${t.parts.map(e=>e.key).join(", ")}.`)}
2
+ import{parseAnchorRef as f}from"@allyhub/piece";export function planeAt(t,s,r){return(t?.planes[s]?.layers??[]).some(n=>n.end>n.start&&r>=n.start-1e-6&&r<n.end+1e-6)}export function stackOf(t,s){const r=s.filter(a=>a.part===t.key),n=[];for(let a=0;a<=t.planes.length;a++){for(const o of r)Math.min(o.over??0,t.planes.length)===a&&n.push({kind:"footage",footage:o});const e=t.planes[a];if(e&&(n.push({kind:"graphics",plane:a,layers:e.layers}),!!e.behindPerson))for(const o of r)o.cutout===!0&&(o.over??0)===a&&n.push({kind:"person",footage:o})}return n}export function momentOf(t,s){const r=new Set(t.parts.flatMap(e=>(e.anchors??[]).map(o=>o.name))),n=f(s,r);if(n){for(const e of t.parts){const o=e.anchors?.find(i=>i.name===n.name);if(o){if(n.end&&o.end===void 0)throw new Error(`The anchor "${n.name}" of part ${e.key} is a place, not a stretch: "@/${n.name}" has no end. Use "@${n.name}".`);return(n.end?o.end??o.at:o.at)+n.shift}}throw new Error(`No part of the video has the anchor "${n.name}"; it has ${r.size>0?[...r].map(e=>`@${e}`).join(", "):"no anchors"}.`)}const a=t.parts.find(e=>e.key===s);if(a)return a.start;throw new Error(`"${s}" is not an anchor ("@name") or a part of the video; its parts are ${t.parts.map(e=>e.key).join(", ")}.`)}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{parseAnchorRef as z}from"./anchors.js";import{FPS as B}from"./formats.js";import{problem as R}from"./problem.js";import{joinWords as E,normText as W,numericRef as H,parseWordRef as I,ScriptAlignment as J,WordStream as j}from"./words.js";const g=i=>Math.round(i*1e3)/1e3;function L(i,l,a){const x=w=>Math.round(w*a)/a,p=i.map(x);for(let w=1;w<p.length;w++){const d=p[w-1]??0;(p[w]??0)<=d&&(p[w]=d+1/a)}const b=p.at(-1)??0;return{starts:p,end:Math.max(x(l),b+1/a)}}const F=i=>i.speechDur!==void 0&&i.speechDur>0;export function overlapOf(i,l){const a=i[l]??0;if(!F(i)||!Number.isFinite(a)||a<=0)return 0;const x=(i.speechDur??0)/2+(l==="before"?i.lead:i.tail);return Math.min(a,x)}export function timeParts(i,l={}){const a=i.map((t,e)=>({...t,before:e===0?0:t.before??0,after:e===i.length-1?0:t.after??0})),x=l.fps??B,p=l.beat??0,b=[];for(const t of a){const e=new Set((t.placed??[]).map(n=>n.name));for(const n of t.anchors??[])e.has(n.name)&&b.push(R("AK-T004",`The anchor ${n.name} of part ${t.key} is both in the line it says (@{${n.name}}) and in the part's own anchors; "@${n.name}" is the part's own. Rename one of them.`,{part:t.key}))}const w=[];let d=0;for(const t of a){w.push(d);let e;if(F(t))e=t.lead+(t.speechDur??0)+t.tail-overlapOf(t,"before")-overlapOf(t,"after");else{e=t.dur;const n=l.snap?.(d+e,d);if(n!==void 0)e=n-d;else if(p>0&&!l.snap){const r=l.beatPhase??0;let s=r+Math.round((d+e-r)/p)*p;s<=d+1e-9&&(s+=p),e=s-d}}d+=Math.max(e,1/x)}const{starts:G,end:K}=L(w,d,x),T=a.map((t,e)=>{const n=G[e]??0;return{key:t.key,start:n,end:G[e+1]??K,...F(t)?{speechAt:g(n+t.lead-overlapOf(t,"before"))}:{}}}),D=new Map,P=t=>{if(D.has(t))return D.get(t);const e=a[t],n=e?.script&&e.words?.length?new J(new j(e.words),[e.script]):void 0;return D.set(t,n),n};function C(t,e){const n=T[t],r=a[t];if(!n||!r)return;const s=r.anchors??[],f=r.placed??[],o=z(e,new Set([...s,...f].map(u=>u.name)));if(!o)return;const $=n.end-n.start,y=u=>(b.push(R("AK-T004",u,{part:r.key})),g($/2)),k=u=>g(Math.min($,Math.max(0,u))),m=f.find(u=>u.name===o.name);if(m)return o.end&&m.end===void 0?y(`"${e}" asks for the end of the anchor ${m.name} of part ${r.key}, which is a point. Give it as a stretch (anchors: { ${m.name}: [from, to] }), or use "@${m.name}".`):k((o.end?m.end??m.at:m.at)+o.shift);const c=s.find(u=>u.name===o.name);if(!c){const u=[...s,...f].map(q=>`@${q.name}`);return y(`The anchor "${e}" is not in the line part ${r.key} says, nor in the part's own anchors${u.length>0?` (its anchors: ${u.join(", ")})`:""}. Write @{${o.name}} before the word it is for, in the part's say in the item's script, in every language (the part must say that line, s("….say")); or give its seconds in the part: anchors: { ${o.name}: 1.2 }.`)}if(o.end&&c.end===void 0)return y(`"${e}" asks for the end of the anchor ${c.name} of part ${r.key}, which is a point. Write @{${c.name}}…@{/${c.name}} around the words in the script, or use "@${c.name}".`);const M=o.end?c.end??c.at:c.at,S=W(r.script??"");if(r.pending===!0&&n.speechAt===void 0)return S.length===0?g($/2):k(M/S.length*$+o.shift);const h=r.words??[],A=P(t);if(n.speechAt===void 0||!A||h.length===0)return y(`The anchor "${e}" is in part ${r.key}, which has no speech. Give its seconds in the part instead: anchors: { ${o.name}: 1.2 }.`);const v=h.at(-1),U=o.end?h[A.wordAtChar(0,Math.max(0,M-1))]?.end:M>=S.length?v?.end:h[A.wordAtChar(0,M)]?.start;return k(n.speechAt+(U??0)+o.shift-n.start)}function O(t,e){const n=H(e);if(n!==void 0)return n;const r=typeof e=="string"?C(t,e):void 0;if(r!==void 0)return r;const s=T[t],f=a[t];if(!s||!f)return 0;const o=s.end-s.start,$=f.words??[],{text:y,nth:k,shift:m}=I(String(e));let c=-1;$.length>0&&(c=P(t)?.wordFor(0,y,k)??-1,c<0&&(c=new j($).find(W(y),0,$.length-1,k)));const M=$[c];if(f.pending===!0&&s.speechAt===void 0){const h=W(f.script??"");let A=-1;for(let v=0;v<k;v++)A=h.indexOf(W(y),A+1);return A<0||h.length===0?g(o/2):g(Math.min(o,Math.max(0,A/h.length*o+m)))}if(c<0||!M||s.speechAt===void 0){const h=f.script??E($);return b.push(R("AK-T004",s.speechAt===void 0?`The word reference "${String(e)}" is in part ${f.key}, which has no speech. Give it in seconds from the part's start instead.`:`The word reference "${String(e)}" is not in the words of part ${f.key}${h?` (it says: "${h.length>160?`${h.slice(0,160)}…`:h}")`:""}. Use a word the part says, as "word", "word@2" or "word+0.2".`,{part:f.key})),g(o/2)}const S=s.speechAt+M.start+m;return g(Math.min(o,Math.max(0,S-s.start)))}function N(t){const e=T[t],n=a[t];if(!e||!n||e.speechAt===void 0)return[];const r=e.speechAt-e.start;return(n.words??[]).map(s=>({text:s.text,start:g(s.start+r),end:g(s.end+r)}))}return{parts:T,duration:K,problems:b,at:O,words:N}}
2
+ import{parseAnchorRef as z}from"@allyhub/piece";import{FPS as B}from"@allyhub/piece";import{problem as R}from"@allyhub/diagnostics";import{joinWords as E,normText as W,numericRef as H,parseWordRef as I,ScriptAlignment as J,WordStream as j}from"@allyhub/piece";const g=i=>Math.round(i*1e3)/1e3;function L(i,l,a){const x=w=>Math.round(w*a)/a,p=i.map(x);for(let w=1;w<p.length;w++){const d=p[w-1]??0;(p[w]??0)<=d&&(p[w]=d+1/a)}const b=p.at(-1)??0;return{starts:p,end:Math.max(x(l),b+1/a)}}const F=i=>i.speechDur!==void 0&&i.speechDur>0;export function overlapOf(i,l){const a=i[l]??0;if(!F(i)||!Number.isFinite(a)||a<=0)return 0;const x=(i.speechDur??0)/2+(l==="before"?i.lead:i.tail);return Math.min(a,x)}export function timeParts(i,l={}){const a=i.map((t,e)=>({...t,before:e===0?0:t.before??0,after:e===i.length-1?0:t.after??0})),x=l.fps??B,p=l.beat??0,b=[];for(const t of a){const e=new Set((t.placed??[]).map(n=>n.name));for(const n of t.anchors??[])e.has(n.name)&&b.push(R("AK-T004",`The anchor ${n.name} of part ${t.key} is both in the line it says (@{${n.name}}) and in the part's own anchors; "@${n.name}" is the part's own. Rename one of them.`,{part:t.key}))}const w=[];let d=0;for(const t of a){w.push(d);let e;if(F(t))e=t.lead+(t.speechDur??0)+t.tail-overlapOf(t,"before")-overlapOf(t,"after");else{e=t.dur;const n=l.snap?.(d+e,d);if(n!==void 0)e=n-d;else if(p>0&&!l.snap){const r=l.beatPhase??0;let s=r+Math.round((d+e-r)/p)*p;s<=d+1e-9&&(s+=p),e=s-d}}d+=Math.max(e,1/x)}const{starts:G,end:K}=L(w,d,x),T=a.map((t,e)=>{const n=G[e]??0;return{key:t.key,start:n,end:G[e+1]??K,...F(t)?{speechAt:g(n+t.lead-overlapOf(t,"before"))}:{}}}),D=new Map,P=t=>{if(D.has(t))return D.get(t);const e=a[t],n=e?.script&&e.words?.length?new J(new j(e.words),[e.script]):void 0;return D.set(t,n),n};function C(t,e){const n=T[t],r=a[t];if(!n||!r)return;const s=r.anchors??[],f=r.placed??[],o=z(e,new Set([...s,...f].map(u=>u.name)));if(!o)return;const $=n.end-n.start,y=u=>(b.push(R("AK-T004",u,{part:r.key})),g($/2)),k=u=>g(Math.min($,Math.max(0,u))),m=f.find(u=>u.name===o.name);if(m)return o.end&&m.end===void 0?y(`"${e}" asks for the end of the anchor ${m.name} of part ${r.key}, which is a point. Give it as a stretch (anchors: { ${m.name}: [from, to] }), or use "@${m.name}".`):k((o.end?m.end??m.at:m.at)+o.shift);const c=s.find(u=>u.name===o.name);if(!c){const u=[...s,...f].map(q=>`@${q.name}`);return y(`The anchor "${e}" is not in the line part ${r.key} says, nor in the part's own anchors${u.length>0?` (its anchors: ${u.join(", ")})`:""}. Write @{${o.name}} before the word it is for, in the part's say in the item's script, in every language (the part must say that line, s("….say")); or give its seconds in the part: anchors: { ${o.name}: 1.2 }.`)}if(o.end&&c.end===void 0)return y(`"${e}" asks for the end of the anchor ${c.name} of part ${r.key}, which is a point. Write @{${c.name}}…@{/${c.name}} around the words in the script, or use "@${c.name}".`);const M=o.end?c.end??c.at:c.at,S=W(r.script??"");if(r.pending===!0&&n.speechAt===void 0)return S.length===0?g($/2):k(M/S.length*$+o.shift);const h=r.words??[],A=P(t);if(n.speechAt===void 0||!A||h.length===0)return y(`The anchor "${e}" is in part ${r.key}, which has no speech. Give its seconds in the part instead: anchors: { ${o.name}: 1.2 }.`);const v=h.at(-1),U=o.end?h[A.wordAtChar(0,Math.max(0,M-1))]?.end:M>=S.length?v?.end:h[A.wordAtChar(0,M)]?.start;return k(n.speechAt+(U??0)+o.shift-n.start)}function O(t,e){const n=H(e);if(n!==void 0)return n;const r=typeof e=="string"?C(t,e):void 0;if(r!==void 0)return r;const s=T[t],f=a[t];if(!s||!f)return 0;const o=s.end-s.start,$=f.words??[],{text:y,nth:k,shift:m}=I(String(e));let c=-1;$.length>0&&(c=P(t)?.wordFor(0,y,k)??-1,c<0&&(c=new j($).find(W(y),0,$.length-1,k)));const M=$[c];if(f.pending===!0&&s.speechAt===void 0){const h=W(f.script??"");let A=-1;for(let v=0;v<k;v++)A=h.indexOf(W(y),A+1);return A<0||h.length===0?g(o/2):g(Math.min(o,Math.max(0,A/h.length*o+m)))}if(c<0||!M||s.speechAt===void 0){const h=f.script??E($);return b.push(R("AK-T004",s.speechAt===void 0?`The word reference "${String(e)}" is in part ${f.key}, which has no speech. Give it in seconds from the part's start instead.`:`The word reference "${String(e)}" is not in the words of part ${f.key}${h?` (it says: "${h.length>160?`${h.slice(0,160)}…`:h}")`:""}. Use a word the part says, as "word", "word@2" or "word+0.2".`,{part:f.key})),g(o/2)}const S=s.speechAt+M.start+m;return g(Math.min(o,Math.max(0,S-s.start)))}function N(t){const e=T[t],n=a[t];if(!e||!n||e.speechAt===void 0)return[];const r=e.speechAt-e.start;return(n.words??[]).map(s=>({text:s.text,start:g(s.start+r),end:g(s.end+r)}))}return{parts:T,duration:K,problems:b,at:O,words:N}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{frameDb as E}from"./voice.js";import{findLine as z,joinWords as G,LINE_FOUND as K,normText as N,ScriptAlignment as Q,WordStream as q}from"./words.js";const b=t=>Math.round(t*1e3)/1e3,_=t=>Math.round(t*10)/10;export function takeLevels(t){const e=Array.from(t.db,n=>-n).filter(n=>n>-100).sort((n,a)=>n-a);if(e.length===0)return{floor:-100,speech:-100,threshold:-60};const r=n=>e[Math.floor((e.length-1)*n)]??-100,u=r(.1),i=r(.95);return{floor:_(u),speech:_(i),threshold:_(Math.max(u+.3*(i-u),u+6))}}function V(t,e,r){return[Math.round(e/t),Math.max(Math.round(e/t)+1,Math.round(r/t))]}export function wordLevels(t,e){return t.map(r=>{const[u,i]=V(e.hop,r.start,r.end);let n=-120,a=0,f=0;for(let l=u;l<i&&l<e.db.length;l++){const s=E(e,l);n=Math.max(n,s),a+=s,f++}return{peak:_(n),mean:_(f?a/f:-120)}})}const X=.06;export function tightenWords(t,e){const{threshold:r}=takeLevels(e),u=e.hop,i=Math.round(X/u);let n=0;return{words:t.map(f=>{const l=Math.max(0,Math.round(f.start/u)),s=Math.min(e.db.length,Math.round(f.end/u));if(s<=l+i)return{...f};const d=g=>E(e,g)>=r;let x=!1;for(let g=l;g<s;g++)d(g)&&(x=!0);if(!x)return{...f};let o=l;for(;o+i<s&&!d(o);)o++;let c=s;for(;c>o+i&&!d(c-1);)c--;const h=o>l?b(Math.max(f.start,o*u-u/2)):f.start,M=c<s?b(Math.min(f.end,Math.max(h,c*u-u/2))):f.end;return(h!==f.start||M!==f.end)&&n++,{...f,start:h,end:M}}),moved:n}}export const WORD_SHAPE_DEFAULTS={voiced:.6,dip:10};const U=8,C=2,Y=/\p{L}/gu,Z=/\p{N}/u;function H(t){const e=N(t);return Z.test(e)?0:e.match(Y)?.length??0}const w=t=>{const e=[...t].sort((u,i)=>u-i),r=e.length>>1;return e.length%2?e[r]??0:((e[r-1]??0)+(e[r]??0))/2};export function speakingRate(t){const e=new Map;let r=0;for(const x of t){const o=H(x.text),c=x.end-x.start;o===0||!(c>0)||(e.set(o,[...e.get(o)??[],c]),r++)}if(r<U)return;let u=0,i=0,n=0,a=0,f=0;for(const[x,o]of e){const c=o.length,h=w(o);u+=c,i+=c*x,n+=c*h,a+=c*x*x,f+=c*x*h}const l=u*a-i*i;let s=l>1e-9?(u*f-i*n)/l:0,d=(n-s*i)/u;if((d<0||l<=1e-9)&&(d=0,s=a>0?f/a:0),s>0)return{base:b(d),perLetter:b(s),words:r}}export function wordShapes(t,e,r={}){const u={voiced:r.voiced??WORD_SHAPE_DEFAULTS.voiced,dip:r.dip??WORD_SHAPE_DEFAULTS.dip},i=speakingRate(t),n=e.hop,a=Math.round(u.voiced*100),f=t.map((l,s)=>{const d=Math.max(0,l.end-l.start),x=H(l.text),o=i&&x>0?b(i.base+i.perLetter*x):null,c=Math.max(0,Math.round(l.start/n)),h=Math.min(e.db.length,Math.round(l.end/n)),M=[];let g=-1;for(let p=c;p<=h;p++){const $=p<h&&(e.voicing[p]??0)>=a;$&&g<0&&(g=p),!$&&g>=0&&(p-g>=C&&M.push({start:b(g*n),end:b(p*n)}),g=-1)}const m=[],L=new Float64Array(Math.max(0,h-c));let A=-120;for(let p=h-1;p>=c;p--)A=Math.max(A,E(e,p)),L[p-c]=A;let W=-120,S=-1,k=0;for(let p=c;p<=h;p++){let $=0;p<h&&(W=Math.max(W,E(e,p)),$=Math.min(W,L[p-c]??-120)-E(e,p)),$>=u.dip?(S<0&&(S=p),k=Math.max(k,$)):S>=0&&(p-S>=C&&m.push({start:b(S*n),end:b(p*n),depth:_(k)}),S=-1,k=0)}return{i:s,dur:b(d),letters:x,expected:o,ratio:o===null?null:Math.round(d/o*100)/100,excess:o===null?null:b(d-o),voicedRuns:M,dips:m}});return{rate:i??null,...i?{}:{rateWhy:t.length<U?`the take has under ${String(U)} words with letters`:"the take's longer words do not last longer than its short ones"},options:u,words:f}}export const LONG_WORD_DEFAULTS={ratio:2,excess:.15};export function longWords(t,e={}){const r=e.ratio??LONG_WORD_DEFAULTS.ratio,u=e.excess??LONG_WORD_DEFAULTS.excess;return t.filter(i=>i.ratio!==null&&i.excess!==null&&i.ratio>=r&&i.excess>=u)}export function longLabel(t){return`(long ${t.dur.toFixed(2)}s ×${(t.ratio??0).toFixed(1)})`}export const PARAGRAPH_GAP=.5;export function paragraphs(t,e=PARAGRAPH_GAP,r=0,u=t.length-1){const i=[];let n=r;for(let a=r;a<=u;a++){const f=t[a],l=t[a+1];if(!f)break;if(a===u||!l||l.start-f.end>=e){const s=t[n];s&&i.push({from:n,to:a,start:s.start,end:f.end,text:G(t.slice(n,a+1))}),n=a+1}}return i}export function searchWords(t,e){const r=e.split(/\s+/u).map(N).filter(n=>n!=="");if(r.length===0)return[];const u=t.map(n=>N(n.text)),i=[];for(let n=0;n+r.length<=t.length;n++){let a=!0;for(let f=0;f<r.length&&a;f++){const l=u[n+f]??"",s=r[f]??"";a=f===r.length-1?l.startsWith(s):l===s}a&&i.push(y(t,n,n+r.length-1))}return i}function y(t,e,r){return{from:e,to:r,start:t[e]?.start??0,end:t[r]?.end??0,text:G(t.slice(e,r+1))}}export function phraseMatches(t,e){const r=e.map(n=>({phrase:n,norm:n.split(/\s+/u).map(N).filter(a=>a!=="")})).filter(n=>n.norm.length>0).sort((n,a)=>a.norm.length-n.norm.length),u=t.map(n=>N(n.text)),i=[];for(let n=0;n<t.length;n++)for(const a of r)if(!(n+a.norm.length>t.length)&&a.norm.every((f,l)=>u[n+l]===f)){i.push({...y(t,n,n+a.norm.length-1),phrase:a.phrase}),n+=a.norm.length-1;break}return i}export function pauseCandidates(t,e,r,u=0,i=t.length-1){const n=[];for(let a=u;a<i;a++){const f=t[a],l=t[a+1];if(!f||!l)continue;const s=l.start-f.end;if(s<e)continue;const d=Math.min(r,s)/2;n.push({after:a,start:f.end,end:l.start,gap:b(s),remove:{from:b(f.end+d),to:b(l.start-d),seconds:b(Math.max(0,s-2*d))}})}return n}export const JOIN_NEAR=.2;export function joinsOf(t,e,r,u,i=JOIN_NEAR){const{ranges:n,kept:a}=e,f=r?wordLevels(t,r):void 0,l=r?.hop??.01,s=[];let d=0;for(let x=0;x+1<n.length;x++){const o=n[x],c=n[x+1];if(!o||!c)continue;d+=o.to-o.from;let h=-1,M=-1;for(const v of a){const F=t[v];F&&(F.start<o.to&&(h=v),M<0&&F.end>c.from&&(M=v))}const g=t[h],m=t[M];if(!g||!m)continue;const L=(v,F,O)=>{if(!r)return null;const I=Math.ceil(v/l-1e-9),R=Math.ceil(F/l-1e-9)-1;let D=0;for(let T=0;T<=R-I;T++){const J=O?R-T:I+T;if(E(r,J)>=u)break;D++}return b(D*l)},A=(v,F)=>{const O=Math.ceil(v/l-1e-9),I=Math.ceil(F/l-1e-9)-1,R=[];if(!r)return R;for(let D=Math.max(0,O);D<=I&&D<r.db.length;D++)R.push(E(r,D));return R},W=(v,F)=>{const O=A(v,F);return O.length?_(Math.max(...O)):null},S=(v,F)=>{const O=A(v,Math.max(F,v+l));return O.length?_(O.reduce((I,R)=>I+R,0)/O.length):null},k=(v,F,O,I,R,D,T)=>({i:v,text:F.text,edge:O,gap:b(I),quiet:R,peakBetween:D,peak:f?.[v]?.peak??null,mean:f?.[v]?.mean??null,near:T}),p=Math.min(g.end,o.to),$=Math.max(m.start,c.from),j=k(h,g,p,o.to-p,L(o.from,o.to,!0),W(p,o.to),S(Math.max(g.start,p-i),p)),P=k(M,m,$,$-c.from,L(c.from,c.to,!1),W(c.from,$),S($,Math.min(m.end,$+i)));s.push({at:b(d),out:o.to,in:c.from,removed:M>h+1?{from:h+1,to:M-1}:null,inWord:g.end>o.to+1e-9||m.start<c.from-1e-9,before:j,after:P,step:j.near===null||P.near===null?null:_(P.near-j.near)})}return s}export const SCRIPT_DIFF_DEFAULTS={match:.5,lineMatch:K};export function scriptDiff(t,e,r={}){const u={match:r.match??SCRIPT_DIFF_DEFAULTS.match,lineMatch:r.lineMatch??SCRIPT_DIFF_DEFAULTS.lineMatch},i=new q(t),n=e.filter(o=>N(o)!==""),a=new Q(i,n),f=[];let l;for(let o=0;o<=t.length;o++){let c=!1;if(o<t.length){const h=i.charOf(o),M=i.charOf(o+1);let g=0;for(let m=h;m<M;m++)g+=a.takeHits[m]??0;c=M>h&&g/(M-h)<u.match}c&&l===void 0&&(l=o),!c&&l!==void 0&&(f.push(y(t,l,o-1)),l=void 0)}const s=(o,c,h)=>{if(h<c)return[];const M=new q(t.slice(c,h+1)),g=z(M,o,0);return!g||g.score<u.lineMatch?[]:[...s(o,c,c+g.first-1),y(t,c+g.first,c+g.last),...s(o,c+g.last+1,h)]},d=n.map((o,c)=>{const h=a.lines[c]?.length??0;return{line:c,text:o,share:h?Math.round((a.matched[c]??0)/h*1e3)/1e3:0,matches:s(o,0,t.length-1)}}),x=d.filter(o=>o.matches.length>1).map(({line:o,text:c,matches:h})=>({line:o,text:c,matches:h}));return{options:u,unscripted:f,repeated:x,lines:d}}const B=t=>t.toFixed(2).padStart(6,"0");export const LINE_WORDS=12;export function soundLabel(t,e=!1){const r=t.peak>=0?`+${String(t.peak)}`:`−${String(-t.peak)}`;return`(${e?"cut ":""}sound ${t.start.toFixed(2)}–${t.end.toFixed(2)} ${(t.end-t.start).toFixed(2)}s ${r}dB v${t.voiced.toFixed(2)})`}export function packTranscript(t,e={}){const r=Math.max(0,e.from??0),u=Math.min(t.length-1,e.to??t.length-1),i=e.sounds??[],n=e.lineWords??LINE_WORDS,a=s=>(e.removedSounds??[]).some(d=>d.from<s.end&&d.to>s.start)||e.removed?.has(s.after)===!0&&e.removed.has(s.after+1),f=[],l=[];for(const s of paragraphs(t,e.gap??PARAGRAPH_GAP,r,u)){let d=s.from;for(let x=s.from;x<=s.to;x++){const o=/[.?!。?!]["')\]]*$/u.test(t[x]?.text??"");(x===s.to||o&&x-d+1>=n)&&(l.push({from:d,to:x}),d=x+1)}}for(const s of l){const d=[],x=i.filter(m=>m.after===s.from-1&&s.from===r);for(const m of x)d.push(soundLabel(m,a(m)));let o,c;const h=()=>{o&&d.push(`[-${o.join(" ")}-]`),c&&d.push(`{${c.join(" ")}}`),o=void 0,c=void 0};for(let m=s.from;m<=s.to;m++){const L=t[m]?.text??"",A=e.unscripted?.has(m)===!0;e.removed?.has(m)===!0?(c&&h(),(o??=[]).push(A?`{${L}}`:L)):A?(o&&h(),(c??=[]).push(L)):(h(),d.push(L));const W=t[m],S=e.long?.get(m);S&&e.removed?.has(m)!==!0&&(h(),d.push(longLabel(S)));for(const k of e.inWord??[]){if(!W||e.removed?.has(m)===!0)continue;const p=t[m-1];k.from<W.end&&k.to>W.start&&!(p&&m>s.from&&k.from<p.end&&k.to>p.start)&&(h(),d.push(`(cut ${k.from.toFixed(2)}–${k.to.toFixed(2)} in word)`))}(m-s.from)%8===7&&m<s.to&&(h(),d.push(`#${String(m+1)}`));for(const k of i.filter(p=>p.after===m))h(),d.push(soundLabel(k,a(k)))}h();const M=t[s.from],g=t[s.to];f.push(`[${B(M?.start??0)}-${B(g?.end??0)}] #${String(s.from)}-#${String(s.to)} ${d.join(" ")}`)}return f}
2
+ import{frameDb as E}from"@allyhub/piece";import{findLine as z,joinWords as G,LINE_FOUND as K,normText as N,ScriptAlignment as Q,WordStream as q}from"@allyhub/piece";const b=t=>Math.round(t*1e3)/1e3,_=t=>Math.round(t*10)/10;export function takeLevels(t){const e=Array.from(t.db,n=>-n).filter(n=>n>-100).sort((n,a)=>n-a);if(e.length===0)return{floor:-100,speech:-100,threshold:-60};const r=n=>e[Math.floor((e.length-1)*n)]??-100,u=r(.1),i=r(.95);return{floor:_(u),speech:_(i),threshold:_(Math.max(u+.3*(i-u),u+6))}}function V(t,e,r){return[Math.round(e/t),Math.max(Math.round(e/t)+1,Math.round(r/t))]}export function wordLevels(t,e){return t.map(r=>{const[u,i]=V(e.hop,r.start,r.end);let n=-120,a=0,f=0;for(let l=u;l<i&&l<e.db.length;l++){const s=E(e,l);n=Math.max(n,s),a+=s,f++}return{peak:_(n),mean:_(f?a/f:-120)}})}const X=.06;export function tightenWords(t,e){const{threshold:r}=takeLevels(e),u=e.hop,i=Math.round(X/u);let n=0;return{words:t.map(f=>{const l=Math.max(0,Math.round(f.start/u)),s=Math.min(e.db.length,Math.round(f.end/u));if(s<=l+i)return{...f};const d=g=>E(e,g)>=r;let x=!1;for(let g=l;g<s;g++)d(g)&&(x=!0);if(!x)return{...f};let o=l;for(;o+i<s&&!d(o);)o++;let c=s;for(;c>o+i&&!d(c-1);)c--;const h=o>l?b(Math.max(f.start,o*u-u/2)):f.start,M=c<s?b(Math.min(f.end,Math.max(h,c*u-u/2))):f.end;return(h!==f.start||M!==f.end)&&n++,{...f,start:h,end:M}}),moved:n}}export const WORD_SHAPE_DEFAULTS={voiced:.6,dip:10};const U=8,C=2,Y=/\p{L}/gu,Z=/\p{N}/u;function H(t){const e=N(t);return Z.test(e)?0:e.match(Y)?.length??0}const w=t=>{const e=[...t].sort((u,i)=>u-i),r=e.length>>1;return e.length%2?e[r]??0:((e[r-1]??0)+(e[r]??0))/2};export function speakingRate(t){const e=new Map;let r=0;for(const x of t){const o=H(x.text),c=x.end-x.start;o===0||!(c>0)||(e.set(o,[...e.get(o)??[],c]),r++)}if(r<U)return;let u=0,i=0,n=0,a=0,f=0;for(const[x,o]of e){const c=o.length,h=w(o);u+=c,i+=c*x,n+=c*h,a+=c*x*x,f+=c*x*h}const l=u*a-i*i;let s=l>1e-9?(u*f-i*n)/l:0,d=(n-s*i)/u;if((d<0||l<=1e-9)&&(d=0,s=a>0?f/a:0),s>0)return{base:b(d),perLetter:b(s),words:r}}export function wordShapes(t,e,r={}){const u={voiced:r.voiced??WORD_SHAPE_DEFAULTS.voiced,dip:r.dip??WORD_SHAPE_DEFAULTS.dip},i=speakingRate(t),n=e.hop,a=Math.round(u.voiced*100),f=t.map((l,s)=>{const d=Math.max(0,l.end-l.start),x=H(l.text),o=i&&x>0?b(i.base+i.perLetter*x):null,c=Math.max(0,Math.round(l.start/n)),h=Math.min(e.db.length,Math.round(l.end/n)),M=[];let g=-1;for(let p=c;p<=h;p++){const $=p<h&&(e.voicing[p]??0)>=a;$&&g<0&&(g=p),!$&&g>=0&&(p-g>=C&&M.push({start:b(g*n),end:b(p*n)}),g=-1)}const m=[],L=new Float64Array(Math.max(0,h-c));let A=-120;for(let p=h-1;p>=c;p--)A=Math.max(A,E(e,p)),L[p-c]=A;let W=-120,S=-1,k=0;for(let p=c;p<=h;p++){let $=0;p<h&&(W=Math.max(W,E(e,p)),$=Math.min(W,L[p-c]??-120)-E(e,p)),$>=u.dip?(S<0&&(S=p),k=Math.max(k,$)):S>=0&&(p-S>=C&&m.push({start:b(S*n),end:b(p*n),depth:_(k)}),S=-1,k=0)}return{i:s,dur:b(d),letters:x,expected:o,ratio:o===null?null:Math.round(d/o*100)/100,excess:o===null?null:b(d-o),voicedRuns:M,dips:m}});return{rate:i??null,...i?{}:{rateWhy:t.length<U?`the take has under ${String(U)} words with letters`:"the take's longer words do not last longer than its short ones"},options:u,words:f}}export const LONG_WORD_DEFAULTS={ratio:2,excess:.15};export function longWords(t,e={}){const r=e.ratio??LONG_WORD_DEFAULTS.ratio,u=e.excess??LONG_WORD_DEFAULTS.excess;return t.filter(i=>i.ratio!==null&&i.excess!==null&&i.ratio>=r&&i.excess>=u)}export function longLabel(t){return`(long ${t.dur.toFixed(2)}s ×${(t.ratio??0).toFixed(1)})`}export const PARAGRAPH_GAP=.5;export function paragraphs(t,e=PARAGRAPH_GAP,r=0,u=t.length-1){const i=[];let n=r;for(let a=r;a<=u;a++){const f=t[a],l=t[a+1];if(!f)break;if(a===u||!l||l.start-f.end>=e){const s=t[n];s&&i.push({from:n,to:a,start:s.start,end:f.end,text:G(t.slice(n,a+1))}),n=a+1}}return i}export function searchWords(t,e){const r=e.split(/\s+/u).map(N).filter(n=>n!=="");if(r.length===0)return[];const u=t.map(n=>N(n.text)),i=[];for(let n=0;n+r.length<=t.length;n++){let a=!0;for(let f=0;f<r.length&&a;f++){const l=u[n+f]??"",s=r[f]??"";a=f===r.length-1?l.startsWith(s):l===s}a&&i.push(y(t,n,n+r.length-1))}return i}function y(t,e,r){return{from:e,to:r,start:t[e]?.start??0,end:t[r]?.end??0,text:G(t.slice(e,r+1))}}export function phraseMatches(t,e){const r=e.map(n=>({phrase:n,norm:n.split(/\s+/u).map(N).filter(a=>a!=="")})).filter(n=>n.norm.length>0).sort((n,a)=>a.norm.length-n.norm.length),u=t.map(n=>N(n.text)),i=[];for(let n=0;n<t.length;n++)for(const a of r)if(!(n+a.norm.length>t.length)&&a.norm.every((f,l)=>u[n+l]===f)){i.push({...y(t,n,n+a.norm.length-1),phrase:a.phrase}),n+=a.norm.length-1;break}return i}export function pauseCandidates(t,e,r,u=0,i=t.length-1){const n=[];for(let a=u;a<i;a++){const f=t[a],l=t[a+1];if(!f||!l)continue;const s=l.start-f.end;if(s<e)continue;const d=Math.min(r,s)/2;n.push({after:a,start:f.end,end:l.start,gap:b(s),remove:{from:b(f.end+d),to:b(l.start-d),seconds:b(Math.max(0,s-2*d))}})}return n}export const JOIN_NEAR=.2;export function joinsOf(t,e,r,u,i=JOIN_NEAR){const{ranges:n,kept:a}=e,f=r?wordLevels(t,r):void 0,l=r?.hop??.01,s=[];let d=0;for(let x=0;x+1<n.length;x++){const o=n[x],c=n[x+1];if(!o||!c)continue;d+=o.to-o.from;let h=-1,M=-1;for(const v of a){const F=t[v];F&&(F.start<o.to&&(h=v),M<0&&F.end>c.from&&(M=v))}const g=t[h],m=t[M];if(!g||!m)continue;const L=(v,F,O)=>{if(!r)return null;const I=Math.ceil(v/l-1e-9),R=Math.ceil(F/l-1e-9)-1;let D=0;for(let T=0;T<=R-I;T++){const J=O?R-T:I+T;if(E(r,J)>=u)break;D++}return b(D*l)},A=(v,F)=>{const O=Math.ceil(v/l-1e-9),I=Math.ceil(F/l-1e-9)-1,R=[];if(!r)return R;for(let D=Math.max(0,O);D<=I&&D<r.db.length;D++)R.push(E(r,D));return R},W=(v,F)=>{const O=A(v,F);return O.length?_(Math.max(...O)):null},S=(v,F)=>{const O=A(v,Math.max(F,v+l));return O.length?_(O.reduce((I,R)=>I+R,0)/O.length):null},k=(v,F,O,I,R,D,T)=>({i:v,text:F.text,edge:O,gap:b(I),quiet:R,peakBetween:D,peak:f?.[v]?.peak??null,mean:f?.[v]?.mean??null,near:T}),p=Math.min(g.end,o.to),$=Math.max(m.start,c.from),j=k(h,g,p,o.to-p,L(o.from,o.to,!0),W(p,o.to),S(Math.max(g.start,p-i),p)),P=k(M,m,$,$-c.from,L(c.from,c.to,!1),W(c.from,$),S($,Math.min(m.end,$+i)));s.push({at:b(d),out:o.to,in:c.from,removed:M>h+1?{from:h+1,to:M-1}:null,inWord:g.end>o.to+1e-9||m.start<c.from-1e-9,before:j,after:P,step:j.near===null||P.near===null?null:_(P.near-j.near)})}return s}export const SCRIPT_DIFF_DEFAULTS={match:.5,lineMatch:K};export function scriptDiff(t,e,r={}){const u={match:r.match??SCRIPT_DIFF_DEFAULTS.match,lineMatch:r.lineMatch??SCRIPT_DIFF_DEFAULTS.lineMatch},i=new q(t),n=e.filter(o=>N(o)!==""),a=new Q(i,n),f=[];let l;for(let o=0;o<=t.length;o++){let c=!1;if(o<t.length){const h=i.charOf(o),M=i.charOf(o+1);let g=0;for(let m=h;m<M;m++)g+=a.takeHits[m]??0;c=M>h&&g/(M-h)<u.match}c&&l===void 0&&(l=o),!c&&l!==void 0&&(f.push(y(t,l,o-1)),l=void 0)}const s=(o,c,h)=>{if(h<c)return[];const M=new q(t.slice(c,h+1)),g=z(M,o,0);return!g||g.score<u.lineMatch?[]:[...s(o,c,c+g.first-1),y(t,c+g.first,c+g.last),...s(o,c+g.last+1,h)]},d=n.map((o,c)=>{const h=a.lines[c]?.length??0;return{line:c,text:o,share:h?Math.round((a.matched[c]??0)/h*1e3)/1e3:0,matches:s(o,0,t.length-1)}}),x=d.filter(o=>o.matches.length>1).map(({line:o,text:c,matches:h})=>({line:o,text:c,matches:h}));return{options:u,unscripted:f,repeated:x,lines:d}}const B=t=>t.toFixed(2).padStart(6,"0");export const LINE_WORDS=12;export function soundLabel(t,e=!1){const r=t.peak>=0?`+${String(t.peak)}`:`−${String(-t.peak)}`;return`(${e?"cut ":""}sound ${t.start.toFixed(2)}–${t.end.toFixed(2)} ${(t.end-t.start).toFixed(2)}s ${r}dB v${t.voiced.toFixed(2)})`}export function packTranscript(t,e={}){const r=Math.max(0,e.from??0),u=Math.min(t.length-1,e.to??t.length-1),i=e.sounds??[],n=e.lineWords??LINE_WORDS,a=s=>(e.removedSounds??[]).some(d=>d.from<s.end&&d.to>s.start)||e.removed?.has(s.after)===!0&&e.removed.has(s.after+1),f=[],l=[];for(const s of paragraphs(t,e.gap??PARAGRAPH_GAP,r,u)){let d=s.from;for(let x=s.from;x<=s.to;x++){const o=/[.?!。?!]["')\]]*$/u.test(t[x]?.text??"");(x===s.to||o&&x-d+1>=n)&&(l.push({from:d,to:x}),d=x+1)}}for(const s of l){const d=[],x=i.filter(m=>m.after===s.from-1&&s.from===r);for(const m of x)d.push(soundLabel(m,a(m)));let o,c;const h=()=>{o&&d.push(`[-${o.join(" ")}-]`),c&&d.push(`{${c.join(" ")}}`),o=void 0,c=void 0};for(let m=s.from;m<=s.to;m++){const L=t[m]?.text??"",A=e.unscripted?.has(m)===!0;e.removed?.has(m)===!0?(c&&h(),(o??=[]).push(A?`{${L}}`:L)):A?(o&&h(),(c??=[]).push(L)):(h(),d.push(L));const W=t[m],S=e.long?.get(m);S&&e.removed?.has(m)!==!0&&(h(),d.push(longLabel(S)));for(const k of e.inWord??[]){if(!W||e.removed?.has(m)===!0)continue;const p=t[m-1];k.from<W.end&&k.to>W.start&&!(p&&m>s.from&&k.from<p.end&&k.to>p.start)&&(h(),d.push(`(cut ${k.from.toFixed(2)}–${k.to.toFixed(2)} in word)`))}(m-s.from)%8===7&&m<s.to&&(h(),d.push(`#${String(m+1)}`));for(const k of i.filter(p=>p.after===m))h(),d.push(soundLabel(k,a(k)))}h();const M=t[s.from],g=t[s.to];f.push(`[${B(M?.start??0)}-${B(g?.end??0)}] #${String(s.from)}-#${String(s.to)} ${d.join(" ")}`)}return f}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-core",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {