allyhub 0.17.1 → 0.19.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 (600) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/bin/allyhub.js +10 -0
  3. package/dist/args.js +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +1 -1
  6. package/dist/commands/auth.js +1 -1
  7. package/dist/commands/cloud-tools.js +1 -1
  8. package/dist/commands/cloud.js +1 -1
  9. package/dist/commands/contributed.js +1 -1
  10. package/dist/commands/found-extensions.js +2 -0
  11. package/dist/commands/frames/common.js +1 -1
  12. package/dist/commands/frames/doc.js +1 -1
  13. package/dist/commands/frames.js +9 -9
  14. package/dist/commands/index.js +1 -1
  15. package/dist/commands/inspect/common.js +3 -3
  16. package/dist/commands/inspect/index.js +1 -1
  17. package/dist/commands/inspect/layout.js +1 -1
  18. package/dist/commands/inspect/views.js +1 -1
  19. package/dist/commands/list.js +2 -0
  20. package/dist/commands/mail.js +1 -1
  21. package/dist/commands/render.js +1 -1
  22. package/dist/commands/run-context.js +2 -0
  23. package/dist/commands.json +1 -0
  24. package/dist/fields.js +1 -1
  25. package/dist/main.js +7 -7
  26. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
  27. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
  28. package/dist/node_modules/@allyhub/3d-extension/package.json +3 -2
  29. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  30. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  31. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
  32. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  33. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
  34. package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
  35. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  36. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  37. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  38. package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
  39. package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
  40. package/dist/node_modules/@allyhub/build/package.json +9 -1
  41. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  42. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  43. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  44. package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
  45. package/dist/node_modules/@allyhub/check/package.json +1 -1
  46. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  47. package/dist/node_modules/@allyhub/cloud/dist/call.js +1 -1
  48. package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
  49. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  50. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  51. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
  52. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  53. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  54. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  55. package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
  56. package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
  57. package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
  58. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  59. package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
  60. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  61. package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
  62. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +1 -1
  63. package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
  64. package/dist/node_modules/@allyhub/cloud/package.json +5 -1
  65. package/dist/node_modules/@allyhub/components/package.json +1 -1
  66. package/dist/node_modules/@allyhub/dev-server/dist/offline-page.js +2 -0
  67. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +1 -1
  68. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  69. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  70. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  71. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  72. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  73. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  74. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  75. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
  76. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  77. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  78. package/dist/node_modules/@allyhub/export/package.json +1 -1
  79. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  80. package/dist/node_modules/@allyhub/extension-host/dist/host.js +1 -1
  81. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  82. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  83. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +4 -0
  84. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +24 -7
  85. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  86. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
  87. package/dist/node_modules/@allyhub/formats/package.json +25 -1
  88. package/dist/node_modules/@allyhub/html-extension/LICENSE +241 -0
  89. package/dist/node_modules/@allyhub/html-extension/dist/page.js +6 -0
  90. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -0
  91. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +2 -0
  92. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  93. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +15 -0
  94. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +36 -0
  95. package/dist/node_modules/@allyhub/html-extension/package.json +92 -0
  96. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  97. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  98. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  99. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  100. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  101. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  102. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  103. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  104. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  105. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  106. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  107. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  108. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
  109. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  110. package/dist/node_modules/@allyhub/media/package.json +5 -1
  111. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
  112. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
  113. package/dist/node_modules/@allyhub/media-extension/package.json +2 -1
  114. package/dist/node_modules/@allyhub/model/package.json +1 -1
  115. package/dist/node_modules/@allyhub/office-extension/package.json +4 -1
  116. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  117. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
  118. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +1 -1
  119. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +2 -2
  120. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
  121. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  122. package/dist/node_modules/@allyhub/project/package.json +1 -1
  123. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  124. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  125. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  126. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  127. package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
  128. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  129. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  130. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
  131. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  132. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  133. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  134. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  135. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
  136. package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
  137. package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
  138. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  139. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  140. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  141. package/dist/node_modules/@allyhub/protocol/package.json +41 -1
  142. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  143. package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
  144. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  145. package/dist/node_modules/@allyhub/render/package.json +9 -1
  146. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  147. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  148. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
  149. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  150. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
  151. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  152. package/dist/node_modules/@allyhub/runtimes/manifest.json +1 -1
  153. package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
  154. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  155. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  156. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
  157. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
  158. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
  159. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  160. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
  161. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  162. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  163. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  164. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  165. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  166. package/dist/node_modules/@allyhub/sheet/dist/html.js +6 -6
  167. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  168. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  169. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
  170. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  171. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  172. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  173. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  174. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  175. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  176. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  177. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  178. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
  179. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
  180. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
  181. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
  182. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
  183. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
  184. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
  185. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
  186. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
  187. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
  188. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
  189. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
  190. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
  191. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
  192. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
  193. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
  194. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
  195. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
  196. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
  197. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
  198. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
  199. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
  200. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
  201. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
  202. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
  203. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
  204. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
  205. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
  206. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
  207. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  208. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  209. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
  210. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
  211. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
  212. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  213. package/dist/node_modules/@allyhub/text-extension/package.json +2 -1
  214. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  215. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
  216. package/dist/node_modules/@allyhub/video-extension/package.json +6 -2
  217. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
  218. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
  219. package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
  220. package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
  221. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
  222. package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
  223. package/dist/node_modules/@allyhub/website/package.json +1 -1
  224. package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
  225. package/dist/node_modules/@allyhub/website-extension/package.json +4 -4
  226. package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
  227. package/dist/node_modules/@allyhub/x-extension/package.json +8 -2
  228. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  229. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  230. package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
  231. package/dist/package.json +14 -13
  232. package/dist/project.js +1 -1
  233. package/dist/resources.js +1 -1
  234. package/dist/sdk-docs.js +1 -1
  235. package/dist/slot.js +4 -0
  236. package/dist/telemetry.js +1 -1
  237. package/dist/version.js +1 -1
  238. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CHNpVSPv.js → abnfDiagram-WEYOIA3C-DYaMS_BB.js} +1 -1
  239. package/editor-web/assets/{architecture-WOLXFQ4H-gPsJqQwV.js → architecture-WOLXFQ4H-g_Tjfl_y.js} +1 -1
  240. package/editor-web/assets/{architectureDiagram-ZHVYKT53-CEIDcC6r.js → architectureDiagram-ZHVYKT53-CqdhofOL.js} +1 -1
  241. package/editor-web/assets/article-8evPh712.js +3 -0
  242. package/editor-web/assets/{article-DfELjJ2o.js → article-BhRtWYMd.js} +2 -2
  243. package/editor-web/assets/{blockDiagram-RJAE7QA3-CUzEGVet.js → blockDiagram-RJAE7QA3-Bc-28Bci.js} +1 -1
  244. package/editor-web/assets/{c4Diagram-XDPPPE54-CB94NR9s.js → c4Diagram-XDPPPE54-CTGJb8FB.js} +1 -1
  245. package/editor-web/assets/{calc-worker-BdHh5LXM.js → calc-worker-oEIqrrTM.js} +1 -1
  246. package/editor-web/assets/channel-wIj_OqDm.js +1 -0
  247. package/editor-web/assets/{chart-file-CfbWK9l1.js → chart-file-dGiRgFcH.js} +1 -1
  248. package/editor-web/assets/{chunk-2E7WHVMD-DFYo_Boi.js → chunk-2E7WHVMD-B2MPOVTU.js} +1 -1
  249. package/editor-web/assets/{chunk-4EMNKR2T-CLLjmweX.js → chunk-4EMNKR2T-BUV1ZHP0.js} +1 -1
  250. package/editor-web/assets/{chunk-55XCU76K-CkwQ_3m1.js → chunk-55XCU76K-BZlpspL5.js} +1 -1
  251. package/editor-web/assets/{chunk-7S6XSTFO-V-AvHpAB.js → chunk-7S6XSTFO-CpKeisWE.js} +1 -1
  252. package/editor-web/assets/{chunk-AQDTSKZB-PjHyYpb8.js → chunk-AQDTSKZB-BJqwAPyo.js} +1 -1
  253. package/editor-web/assets/{chunk-DSNLSHJZ-QaczBS3J.js → chunk-DSNLSHJZ-D6oPWl_W.js} +1 -1
  254. package/editor-web/assets/{chunk-HAGFOTED-aLaQB5Xu.js → chunk-HAGFOTED-B5pk4MZF.js} +1 -1
  255. package/editor-web/assets/{chunk-HNE4Q36P-De3ftDQR.js → chunk-HNE4Q36P-DHbSPvxQ.js} +1 -1
  256. package/editor-web/assets/{chunk-NQOKRVIF-CrhVQyvP.js → chunk-NQOKRVIF-CcL_GcRA.js} +1 -1
  257. package/editor-web/assets/{chunk-UHW7PFBP-BFmZ5ZLn.js → chunk-UHW7PFBP-YgiOL6XE.js} +1 -1
  258. package/editor-web/assets/{chunk-VQ5W62QI-CzppUHLA.js → chunk-VQ5W62QI-p14b4UYc.js} +1 -1
  259. package/editor-web/assets/{chunk-WQQL4CDK-BrAU7V6v.js → chunk-WQQL4CDK-BWW0x-XH.js} +1 -1
  260. package/editor-web/assets/{chunk-YZO67HFG-BSiF71qj.js → chunk-YZO67HFG-oG3qd68C.js} +1 -1
  261. package/editor-web/assets/{chunk-ZAUX2LTX-BJc4r5b1.js → chunk-ZAUX2LTX-CpcheH0u.js} +1 -1
  262. package/editor-web/assets/{chunk-ZCHMQSOR-CkGTuehB.js → chunk-ZCHMQSOR-cWQvLl1w.js} +1 -1
  263. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-Byxc7J88.js → classDiagram-v2-4MYWR3UA-7PG7YcdU.js} +1 -1
  264. package/editor-web/assets/{cynefin-EF2NZ3EQ-BSxkVbdf.js → cynefin-EF2NZ3EQ-CtcknEQ_.js} +1 -1
  265. package/editor-web/assets/{cynefinDiagram-WF24UDRP-IkCgARNs.js → cynefinDiagram-WF24UDRP-Ca7VIsjN.js} +1 -1
  266. package/editor-web/assets/{dagre-NK4GIZVX-9PgeH6nY.js → dagre-NK4GIZVX-BzcSLtsr.js} +1 -1
  267. package/editor-web/assets/deck-C7fN0Qtn.js +1 -0
  268. package/editor-web/assets/{diagram-CBK3MWTC-DRzeg3Ds.js → diagram-CBK3MWTC-DpRmTGlG.js} +1 -1
  269. package/editor-web/assets/{diagram-I5XIIV2D-B_zeKMN6.js → diagram-I5XIIV2D-BTrs_AX8.js} +1 -1
  270. package/editor-web/assets/{diagram-ODIL2UCW-FFm0O8SN.js → diagram-ODIL2UCW-CkIVjPqH.js} +1 -1
  271. package/editor-web/assets/{diagram-PFBEJUXE-DrtCT8OA.js → diagram-PFBEJUXE-BlFMbAG1.js} +1 -1
  272. package/editor-web/assets/{diagram-RJA3I4VV-DtxJ3V0q.js → diagram-RJA3I4VV-D3f8VJ-D.js} +1 -1
  273. package/editor-web/assets/{diagram-TYUNFSNR-DmxF_8H_.js → diagram-TYUNFSNR-Bbpngj6F.js} +1 -1
  274. package/editor-web/assets/{dist-bQKpw3Zz.js → dist-3iovns9K.js} +3 -3
  275. package/editor-web/assets/dist-BkHnbOEj.js +4 -0
  276. package/editor-web/assets/dist-BvOrNcK-.js +19 -0
  277. package/editor-web/assets/dist-CEIszq39.js +1 -0
  278. package/editor-web/assets/dist-CU5RbLNH.js +1 -0
  279. package/editor-web/assets/dist-CWZj8IAm.js +1 -0
  280. package/editor-web/assets/{dist-PBbWAsrV.js → dist-C_Mtrnif.js} +3 -3
  281. package/editor-web/assets/{dist-CEknsRDd.js → dist-CdqpwdCV.js} +4 -4
  282. package/editor-web/assets/{dist-CAb3W9_P.js → dist-CjT76RAw.js} +1 -1
  283. package/editor-web/assets/dist-CpzEn9T8.js +6 -0
  284. package/editor-web/assets/dist-CrFYWl5-.js +3 -0
  285. package/editor-web/assets/{dist-Dr3o4vee.js → dist-D4eBFGVL.js} +1 -1
  286. package/editor-web/assets/dist-DTcjb3cP.js +18 -0
  287. package/editor-web/assets/dist-D_WSM29I.js +17 -0
  288. package/editor-web/assets/{dist-C21CkR7Z.js → dist-Dp_9ISjP.js} +12 -12
  289. package/editor-web/assets/{dist-C56mWAec.js → dist-J-tPYKGS.js} +4 -4
  290. package/editor-web/assets/{docx-draw-9Q_fArBC.js → docx-draw-CoK1oqQD.js} +1 -1
  291. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-DSX1Aoty.js → ebnfDiagram-V4P3TTPT-BaKj-yL6.js} +1 -1
  292. package/editor-web/assets/{elk-QONTBCTQ-C7gy9q56.js → elk-QONTBCTQ-Cn2qv1_U.js} +1 -1
  293. package/editor-web/assets/{erDiagram-KYQIGQAA-CKx_HoY4.js → erDiagram-KYQIGQAA-Bd7AEIDo.js} +1 -1
  294. package/editor-web/assets/{esm-BZb5QMQf.js → esm-Cjv8ogpP.js} +1 -1
  295. package/editor-web/assets/{eventmodeling-K75KTNOO-DL4HvSrd.js → eventmodeling-K75KTNOO-Sfp7_461.js} +1 -1
  296. package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +1 -0
  297. package/editor-web/assets/{ganttDiagram-R7GPNTJY-N-AP4slN.js → ganttDiagram-R7GPNTJY-CBqcGdHI.js} +1 -1
  298. package/editor-web/assets/{gitGraph-VSP46ZUC-BKRGJKWm.js → gitGraph-VSP46ZUC-WTokXKTW.js} +1 -1
  299. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-ClwL7w2_.js → gitGraphDiagram-PDYL7XHY-BIWZHD9q.js} +1 -1
  300. package/editor-web/assets/index-BQWZnyAQ.js +28 -0
  301. package/editor-web/assets/index-Dvh1t1om.css +2 -0
  302. package/editor-web/assets/{info-OHQRW6UA-DpcY8t23.js → info-OHQRW6UA-COC6G-_J.js} +1 -1
  303. package/editor-web/assets/{infoDiagram-MVDRKAX5-ChtmtWni.js → infoDiagram-MVDRKAX5-DpaqdKBD.js} +1 -1
  304. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BZNTuG_F.js → ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js} +1 -1
  305. package/editor-web/assets/{iso-ahTwmFwH.js → iso-DoC-ZoBr.js} +1 -1
  306. package/editor-web/assets/{journeyDiagram-BOSHW7O7-C3uVmZbL.js → journeyDiagram-BOSHW7O7-DeSVfmm7.js} +1 -1
  307. package/editor-web/assets/{kanban-definition-FNSA4HC5-puEhftGG.js → kanban-definition-FNSA4HC5-Bfg0lj7B.js} +1 -1
  308. package/editor-web/assets/{mermaid-parser.core-Bw8re-WE.js → mermaid-parser.core-CyhovuYE.js} +3 -3
  309. package/editor-web/assets/{mermaid.core-Cc2GIqBr.js → mermaid.core-Dx1fBVUG.js} +4 -4
  310. package/editor-web/assets/{mindmap-definition-6OY57UG3-C6MUl_S_.js → mindmap-definition-6OY57UG3-QEU2HF_m.js} +1 -1
  311. package/editor-web/assets/{packet-JDAUHWVQ-C75RnvC5.js → packet-JDAUHWVQ-ReJTa_hw.js} +1 -1
  312. package/editor-web/assets/{pegDiagram-ECIUJNBX-ChjmsdV4.js → pegDiagram-ECIUJNBX-Bo1jFrvb.js} +1 -1
  313. package/editor-web/assets/{pie-XZMESJXO-BaKxJQpj.js → pie-XZMESJXO-BrtYafNA.js} +1 -1
  314. package/editor-web/assets/{pieDiagram-GNMPY74T-CT2ez8pr.js → pieDiagram-GNMPY74T-Cj0zQqs_.js} +1 -1
  315. package/editor-web/assets/{props-form-D5oKHfpk.js → props-form-BpSXbrSF.js} +1 -1
  316. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BJItlTfk.js → quadrantDiagram-D57K4MC3-D5npDAVn.js} +1 -1
  317. package/editor-web/assets/{radar-ABXABTNO-DnLzBlTo.js → radar-ABXABTNO-C8RDrRqi.js} +1 -1
  318. package/editor-web/assets/{railroad-I3PHUGI6-D5hj6Yv3.js → railroad-I3PHUGI6-ebDrmYTK.js} +1 -1
  319. package/editor-web/assets/{railroad-abnf-LNEFI6M7-DUZlZoPu.js → railroad-abnf-LNEFI6M7-BxKuqg6V.js} +1 -1
  320. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-CDyyDC6d.js → railroad-ebnf-DWYD2UWJ-DOclnfpr.js} +1 -1
  321. package/editor-web/assets/{railroad-peg-JR7BVNR7-CC3ImNnT.js → railroad-peg-JR7BVNR7-DN0A1fpq.js} +1 -1
  322. package/editor-web/assets/{railroadDiagram-Y72NRBL7-Bjw-8Se5.js → railroadDiagram-Y72NRBL7-B3PjoVWw.js} +1 -1
  323. package/editor-web/assets/{requirementDiagram-EQYSW5RA-CDFnuEIO.js → requirementDiagram-EQYSW5RA-DLdzkQk5.js} +1 -1
  324. package/editor-web/assets/{sankeyDiagram-SY24JHO5-CQPVLY1w.js → sankeyDiagram-SY24JHO5-Dip4Piv_.js} +1 -1
  325. package/editor-web/assets/schemas-CQ_UU8-Z.js +1 -0
  326. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-BQzuLmBX.js → sequenceDiagram-BLEHNHQU-QnPcoybL.js} +1 -1
  327. package/editor-web/assets/{session-s1I85rox.js → session-DMlLCFWg.js} +1 -1
  328. package/editor-web/assets/slides-7xWhREpt.js +1 -0
  329. package/editor-web/assets/snapshots-BLX4NTQC.js +1 -0
  330. package/editor-web/assets/{split-7CVjIkSU.js → split-tFGKk-x8.js} +1 -1
  331. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DOuageUf.js → stateDiagram-v2-A6IESKWZ-D103CiMX.js} +1 -1
  332. package/editor-web/assets/{swimlanes-B3ENRKFQ-CXKkok7X.js → swimlanes-B3ENRKFQ-y4gCqEoa.js} +1 -1
  333. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +8 -0
  334. package/editor-web/assets/tabs-CuEawka3.js +1 -0
  335. package/editor-web/assets/{timeline-definition-JXYKGLGB-DgAjAeZp.js → timeline-definition-JXYKGLGB-BMp76v4V.js} +1 -1
  336. package/editor-web/assets/{treeView-D4JQ5SDB-C0Xvnhck.js → treeView-D4JQ5SDB-Q_GYyk0b.js} +1 -1
  337. package/editor-web/assets/{treemap-SAJKECNS-aXfKAeSX.js → treemap-SAJKECNS-B5lRWdQB.js} +1 -1
  338. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-CvUlBa-L.js → usecaseDiagram-WPOLBNNX--QRllA-U.js} +1 -1
  339. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-qMJ1iCxs.js → vennDiagram-Q3Y3IDCW-CzkATPA3.js} +1 -1
  340. package/editor-web/assets/{video-DQrjo1TI.js → video-D0uTbHWx.js} +1 -1
  341. package/editor-web/assets/{wardley-7MLQ67FV-DEdnH0by.js → wardley-7MLQ67FV-BXzwcdJa.js} +1 -1
  342. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Bt-B2hQ5.js → wardleyDiagram-IVAIDKWA-BQvC8Agx.js} +1 -1
  343. package/editor-web/assets/{words-0Ww2RyT4.js → words-CaUHhQHf.js} +1 -1
  344. package/editor-web/assets/workbook-CiCXkjmN.js +45 -0
  345. package/editor-web/assets/{xychartDiagram-4URNHDU4-DV4bSzTb.js → xychartDiagram-4URNHDU4-aY-lsD5o.js} +1 -1
  346. package/editor-web/index.html +4 -4
  347. package/package.json +2 -2
  348. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
  349. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
  350. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
  351. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
  352. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
  353. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
  354. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
  355. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
  356. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
  357. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
  358. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
  359. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
  360. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
  361. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
  362. package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
  363. package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
  364. package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
  365. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
  366. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
  367. package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
  368. package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
  369. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
  370. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
  371. package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
  372. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
  373. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
  374. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
  375. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
  376. package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
  377. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
  378. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
  379. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
  380. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
  381. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
  382. package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
  383. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
  384. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
  385. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
  386. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -133
  387. package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
  388. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
  389. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
  390. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
  391. package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
  392. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
  393. package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
  394. package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
  395. package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
  396. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -29
  397. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
  398. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
  399. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
  400. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
  401. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
  402. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
  403. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
  404. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
  405. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
  406. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
  407. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
  408. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
  409. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
  410. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
  411. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
  412. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
  413. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
  414. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
  415. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
  416. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
  417. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
  418. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
  419. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
  420. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
  421. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
  422. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
  423. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
  424. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
  425. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
  426. package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
  427. package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
  428. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
  429. package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
  430. package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
  431. package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
  432. package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
  433. package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
  434. package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
  435. package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
  436. package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
  437. package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
  438. package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
  439. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
  440. package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
  441. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
  442. package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
  443. package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
  444. package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
  445. package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
  446. package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
  447. package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
  448. package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
  449. package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
  450. package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
  451. package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
  452. package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
  453. package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
  454. package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
  455. package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
  456. package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
  457. package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
  458. package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
  459. package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
  460. package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
  461. package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
  462. package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
  463. package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
  464. package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
  465. package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
  466. package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
  467. package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
  468. package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
  469. package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
  470. package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
  471. package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
  472. package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
  473. package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
  474. package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
  475. package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
  476. package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
  477. package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
  478. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
  479. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
  480. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
  481. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
  482. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
  483. package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
  484. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
  485. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
  486. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
  487. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
  488. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
  489. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
  490. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
  491. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
  492. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
  493. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
  494. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
  495. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
  496. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
  497. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
  498. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
  499. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
  500. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -143
  501. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
  502. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
  503. package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
  504. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
  505. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
  506. package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
  507. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
  508. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
  509. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
  510. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
  511. package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
  512. package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
  513. package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
  514. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
  515. package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
  516. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
  517. package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
  518. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
  519. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
  520. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
  521. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -496
  522. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
  523. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
  524. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
  525. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
  526. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
  527. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
  528. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
  529. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -203
  530. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
  531. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
  532. package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
  533. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
  534. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
  535. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
  536. package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
  537. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
  538. package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
  539. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
  540. package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
  541. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
  542. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
  543. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
  544. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
  545. package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
  546. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
  547. package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
  548. package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
  549. package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
  550. package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
  551. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
  552. package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
  553. package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
  554. package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
  555. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
  556. package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
  557. package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
  558. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
  559. package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
  560. package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
  561. package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
  562. package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
  563. package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
  564. package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
  565. package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
  566. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
  567. package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
  568. package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
  569. package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
  570. package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
  571. package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
  572. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
  573. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
  574. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
  575. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
  576. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
  577. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
  578. package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
  579. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
  580. package/editor-web/assets/article-BHTjq0_Y.js +0 -3
  581. package/editor-web/assets/channel-DCDCx5Es.js +0 -1
  582. package/editor-web/assets/deck-tTzKONci.js +0 -1
  583. package/editor-web/assets/dist-BEpzsYn_.js +0 -6
  584. package/editor-web/assets/dist-BUD4ywMB.js +0 -18
  585. package/editor-web/assets/dist-CbZAznNW.js +0 -19
  586. package/editor-web/assets/dist-DDzjbKIg.js +0 -4
  587. package/editor-web/assets/dist-DaEbElXI.js +0 -3
  588. package/editor-web/assets/dist-JLyDtl9X.js +0 -1
  589. package/editor-web/assets/dist-ZZlQa66J.js +0 -1
  590. package/editor-web/assets/dist-d4dayaWE.js +0 -17
  591. package/editor-web/assets/flowDiagram-IUGLLWBU-BUnRtJ8q.js +0 -1
  592. package/editor-web/assets/index-BedbINE5.css +0 -2
  593. package/editor-web/assets/index-DG2nHq4D.js +0 -28
  594. package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
  595. package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
  596. package/editor-web/assets/snapshots-BPJKywuN.js +0 -1
  597. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-C3Car2M0.js +0 -8
  598. package/editor-web/assets/tabs-CiF1N-pL.js +0 -1
  599. package/editor-web/assets/workbook-FSSUiIp9.js +0 -45
  600. /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,d as n,m as r,o as i,s as a,u as o,y as s}from"./react-Edyoga_4.js";import{Dt as c,Et as l,Ot as u,kt as d,yt as f}from"./x-DlhyIKuu.js";import{C as p,S as m,a as h,b as g,c as _,g as v,h as y,l as b,p as x,r as S,s as C,u as w,v as ee,w as te,x as T}from"./iso-DoC-ZoBr.js";import{F as E,S as ne,b as re,g as D,j as O,x as ie}from"./snapshots-BLX4NTQC.js";import{t as ae}from"./jsx-runtime-DePvh3-m.js";import{A as k,C as oe,f as se,m as A,t as ce,u as le,y as j}from"./bar-button-J9vbfzTx.js";import{D as ue,_ as de,a as fe,c as pe,d as me,i as M,l as he,n as ge,o as _e,p as ve,r as N,u as ye}from"./dist-CpzEn9T8.js";import{o as be,r as xe}from"./index-BQWZnyAQ.js";import{t as P}from"./collaborator-BU4qU7O3.js";var F=ae(),I=f({en:{loading:`Drawing the boards`,noBoards:`This image has no boards yet`,boards:`Boards`,zoom:`Zoom`,zoomIn:`Zoom In`,zoomOut:`Zoom Out`,zoomFit:`Zoom to Fit`,zoomActual:`Actual Size`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`The boards could not be drawn: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 board`:`${String(e)} boards`},"zh-cn":{loading:`正在绘制画板`,noBoards:`这张图片还没有画板`,boards:`画板`,zoom:`缩放`,zoomIn:`放大`,zoomOut:`缩小`,zoomFit:`缩放到适合`,zoomActual:`实际大小`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`无法绘制画板:${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`${String(e)} 个画板`},"zh-tw":{loading:`正在繪製畫板`,noBoards:`這張圖片還沒有畫板`,boards:`畫板`,zoom:`縮放`,zoomIn:`放大`,zoomOut:`縮小`,zoomFit:`縮放至適合大小`,zoomActual:`實際大小`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`無法繪製畫板:${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`${String(e)} 個畫板`},ja:{loading:`ボードを描画中`,noBoards:`この画像にはまだボードがありません`,boards:`ボード`,zoom:`ズーム`,zoomIn:`拡大`,zoomOut:`縮小`,zoomFit:`全体を表示`,zoomActual:`実寸`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`ボードを描画できませんでした:${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`${String(e)} 枚のボード`},ko:{loading:`보드를 그리는 중`,noBoards:`이 이미지에는 아직 보드가 없습니다`,boards:`보드`,zoom:`확대/축소`,zoomIn:`확대`,zoomOut:`축소`,zoomFit:`화면에 맞추기`,zoomActual:`실제 크기`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`보드를 그리지 못했습니다: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`보드 ${String(e)}개`},es:{loading:`Dibujando las mesas de trabajo`,noBoards:`Esta imagen aún no tiene mesas de trabajo`,boards:`Mesas de trabajo`,zoom:`Zoom`,zoomIn:`Acercar`,zoomOut:`Alejar`,zoomFit:`Ajustar a la ventana`,zoomActual:`Tamaño real`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`No se pudieron dibujar las mesas de trabajo: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 mesa de trabajo`:`${String(e)} mesas de trabajo`},fr:{loading:`Dessin des plans de travail`,noBoards:`Cette image n’a pas encore de plan de travail`,boards:`Plans de travail`,zoom:`Zoom`,zoomIn:`Zoom avant`,zoomOut:`Zoom arrière`,zoomFit:`Ajuster à la fenêtre`,zoomActual:`Taille réelle`,percent:e=>`${String(e)}\u202f%`,couldNotDraw:e=>`Les plans de travail n’ont pas pu être dessinés : ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 plan de travail`:`${String(e)} plans de travail`},de:{loading:`Zeichenflächen werden gezeichnet`,noBoards:`Dieses Bild hat noch keine Zeichenflächen`,boards:`Zeichenflächen`,zoom:`Zoom`,zoomIn:`Vergrößern`,zoomOut:`Verkleinern`,zoomFit:`An Fenster anpassen`,zoomActual:`Originalgröße`,percent:e=>`${String(e)}\u00a0%`,couldNotDraw:e=>`Die Zeichenflächen konnten nicht gezeichnet werden: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 Zeichenfläche`:`${String(e)} Zeichenflächen`},pt:{loading:`Desenhando as pranchetas`,noBoards:`Esta imagem ainda não tem pranchetas`,boards:`Pranchetas`,zoom:`Zoom`,zoomIn:`Ampliar`,zoomOut:`Reduzir`,zoomFit:`Ajustar à janela`,zoomActual:`Tamanho real`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`Não foi possível desenhar as pranchetas: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 prancheta`:`${String(e)} pranchetas`}});function L(){return I.of(a()?.locale)}var Se=typeof navigator<`u`&&navigator.userAgent.includes(`Mac`)?`⌘`:`Ctrl+`;function Ce(e){let t=L();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(ge,{id:`zoom`,priority:3,children:(0,F.jsxs)(le,{children:[(0,F.jsx)(oe,{asChild:!0,children:(0,F.jsxs)(ce,{"aria-label":t.zoom,title:t.zoom,className:`tabular-nums`,"data-testid":`image-zoom`,children:[t.percent(Math.round(e.zoom*100)),(0,F.jsx)(k,{className:`size-3`})]})}),(0,F.jsxs)(se,{align:`start`,children:[(0,F.jsx)(`div`,{className:`px-1 pb-1`,children:(0,F.jsx)(be,{"aria-label":t.zoom,className:`h-7 tabular-nums`,inputMode:`decimal`,defaultValue:t.percent(Math.round(e.zoom*100)),"data-testid":`image-zoom-typed`,onKeyDown:t=>{if(t.stopPropagation(),t.key!==`Enter`)return;let n=parseFloat(t.currentTarget.value.replace(`,`,`.`));Number.isFinite(n)&&n>0&&e.onZoom(n/100)}},Math.round(e.zoom*100))}),(0,F.jsxs)(A,{onSelect:()=>{e.onZoom(`in`)},children:[t.zoomIn,(0,F.jsx)(j,{children:`${Se}+`})]}),(0,F.jsxs)(A,{onSelect:()=>{e.onZoom(`out`)},children:[t.zoomOut,(0,F.jsx)(j,{children:`${Se}−`})]}),(0,F.jsxs)(A,{"data-testid":`image-zoom-fit`,onSelect:()=>{e.onZoom(`fit`)},children:[t.zoomFit,(0,F.jsx)(j,{children:`⇧1`})]}),(0,F.jsxs)(A,{"data-testid":`image-zoom-actual`,onSelect:()=>{e.onZoom(1)},children:[t.zoomActual,(0,F.jsx)(j,{children:`⇧0`})]})]})]})})})}var we=`normal.dissolve.darken.multiply.colorBurn.linearBurn.darkerColor.lighten.screen.colorDodge.linearDodge.lighterColor.overlay.softLight.hardLight.vividLight.linearLight.pinLight.hardMix.difference.exclusion.subtract.divide.hue.saturation.color.luminosity.passThrough`.split(`.`),Te=e=>typeof e==`object`&&!!e&&(`__allyhubMedia`in e||`sha256`in e),R=y().min(0).max(1),Ee=m([R,R,R,R]).refine(([e,t,n,r])=>n>0&&r>0&&e+n<=1+1e-9&&t+r<=1+1e-9,`[x, y, w, h] as shares of the frame, inside it, its sides more than 0`),z=p([T().min(1),_(Te,`an imported picture`)]),B=y().min(0).max(100).refine(Number.isFinite,`a percent from 0 to 100`),V=y().min(0).max(1e3).refine(Number.isFinite),H=y().min(-360).max(360),U=S(we),De=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/iu,Oe=/^(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\([^()]*\)$/iu;function ke(e){if(typeof e!=`string`)return!1;let t=e.trim();if(De.test(t)||Oe.test(t))return!0;if(!/^[a-z]+$/iu.test(t))return!1;let n=globalThis.CSS;return n?n.supports(`color`,t):t.length>2}var W=T().refine(ke,`a CSS colour (#rrggbb, rgb(…), hsl(…) or a colour's name)`),Ae=v({color:W,location:B,midpoint:B.optional()}),je=v({stops:h(Ae).min(2),style:S([`linear`,`radial`,`angle`,`reflected`,`diamond`]).optional(),angle:H.optional(),scale:y().min(10).max(1e3).optional(),reverse:C().optional()});p([v({color:W}),v({gradient:je}),v({pattern:z,scale:y().min(1).max(1e3).optional()})]);var Me=v({src:z.optional(),path:T().min(1).optional(),box:Ee.optional(),mode:S([`alpha`,`luminance`]).optional(),density:B.optional(),feather:V.optional(),invert:C().optional(),enabled:C().optional()}),Ne=p([z,Me]),G={enabled:C().optional(),blendMode:U.optional(),opacity:B.optional()},Pe={...G,color:W.optional(),angle:H.optional(),distance:V.optional(),size:V.optional()},Fe=v({dropShadow:v({...Pe,spread:B.optional()}).optional(),innerShadow:v({...Pe,choke:B.optional()}).optional(),outerGlow:v({...G,color:W.optional(),spread:B.optional(),size:V.optional()}).optional(),innerGlow:v({...G,color:W.optional(),choke:B.optional(),size:V.optional(),source:S([`edge`,`center`]).optional()}).optional(),stroke:v({...G,color:W.optional(),size:V.optional(),position:S([`outside`,`inside`,`center`]).optional()}).optional(),colorOverlay:v({...G,color:W.optional()}).optional(),gradientOverlay:v({...G,gradient:je.optional()}).optional(),patternOverlay:v({...G,pattern:z,scale:y().min(1).max(1e3).optional()}).optional(),satin:v({...G,color:W.optional(),angle:H.optional(),distance:V.optional(),size:V.optional(),invert:C().optional()}).optional(),bevelEmboss:v({...G,style:S([`innerBevel`,`outerBevel`,`emboss`,`pillowEmboss`,`strokeEmboss`]).optional(),technique:S([`smooth`,`chiselHard`,`chiselSoft`]).optional(),depth:y().min(1).max(1e3).optional(),direction:S([`up`,`down`]).optional(),size:V.optional(),soften:V.optional(),angle:H.optional(),altitude:y().min(0).max(90).optional(),highlightMode:U.optional(),highlightColor:W.optional(),highlightOpacity:B.optional(),shadowMode:U.optional(),shadowColor:W.optional(),shadowOpacity:B.optional()}).optional()}),Ie=v({rotation:y().min(-360).max(360).optional(),flipH:C().optional(),flipV:C().optional()});v({blendMode:U.optional(),opacity:B.optional(),fillOpacity:B.optional(),clipping:C().optional(),mask:Ne.optional(),effects:Fe.optional(),transform:Ie.optional(),visible:C().optional()});var K=y().min(0).max(255),Le=v({inputBlack:K.optional(),inputWhite:K.optional(),gamma:y().min(.1).max(9.99).optional(),outputBlack:K.optional(),outputWhite:K.optional()}),Re=m([K,K]),ze=h(Re).min(2).max(16);b(`kind`,[v({kind:x(`levels`),rgb:Le.optional(),red:Le.optional(),green:Le.optional(),blue:Le.optional()}),v({kind:x(`curves`),rgb:ze.optional(),red:ze.optional(),green:ze.optional(),blue:ze.optional()}),v({kind:x(`brightnessContrast`),brightness:y().min(-150).max(150).optional(),contrast:y().min(-50).max(100).optional(),useLegacy:C().optional()}),v({kind:x(`hueSaturation`),hue:y().min(-180).max(180).optional(),saturation:y().min(-100).max(100).optional(),lightness:y().min(-100).max(100).optional(),colorize:C().optional()}),v({kind:x(`vibrance`),vibrance:y().min(-100).max(100).optional(),saturation:y().min(-100).max(100).optional()}),v({kind:x(`colorBalance`),shadows:m([y(),y(),y()]).optional(),midtones:m([y(),y(),y()]).optional(),highlights:m([y(),y(),y()]).optional(),preserveLuminosity:C().optional()}),v({kind:x(`blackAndWhite`),reds:y().min(-200).max(300).optional(),yellows:y().min(-200).max(300).optional(),greens:y().min(-200).max(300).optional(),cyans:y().min(-200).max(300).optional(),blues:y().min(-200).max(300).optional(),magentas:y().min(-200).max(300).optional()}),v({kind:x(`photoFilter`),color:W.optional(),density:B.optional(),preserveLuminosity:C().optional()}),v({kind:x(`invert`)}),v({kind:x(`threshold`),level:y().int().min(1).max(255).optional()}),v({kind:x(`gradientMap`),gradient:je.optional(),reverse:C().optional()}),v({kind:x(`exposure`),exposure:y().min(-20).max(20).optional(),offset:y().min(-.5).max(.5).optional(),gammaCorrection:y().min(.01).max(9.99).optional()})]),v({color:W.optional(),width:V.optional(),alignment:S([`inside`,`center`,`outside`]).optional(),dashes:h(y().min(0).max(1e3)).max(8).optional(),cap:S([`butt`,`round`,`square`]).optional(),join:S([`miter`,`round`,`bevel`]).optional(),opacity:B.optional()}),v({font:T().min(1).optional(),weight:y().int().min(100).max(900).optional(),italic:C().optional(),size:y().min(1).max(4096).optional(),color:W.optional(),tracking:y().min(-1e3).max(1e4).optional(),leading:p([y().min(0).max(5e3),x(`auto`)]).optional(),capitalization:S([`normal`,`allCaps`,`smallCaps`]).optional(),underline:C().optional(),strikeThrough:C().optional()}),v({justification:S([`left`,`center`,`right`,`justifyLeft`,`justifyCenter`,`justifyRight`,`justifyAll`]).optional(),firstLineIndent:y().min(-1296).max(1296).optional(),leftIndent:y().min(0).max(1296).optional(),rightIndent:y().min(0).max(1296).optional(),spaceBefore:y().min(0).max(1296).optional(),spaceAfter:y().min(0).max(1296).optional()});var Be=[`pixel`,`type`,`shape`,`smartObject`,`adjustment`,`fill`,`group`],q=e(s(),1),J=m([y(),y(),y(),y()]),Ve=g({text:T(),box:J,size:y(),capHeight:y().optional(),color:T(),font:T(),weight:T(),lineHeight:y(),align:T(),letterSpacing:y().optional()}),He=g({key:T(),component:T(),kind:S(Be),parent:T().optional(),hidden:C(),style:ee(T(),te()),box:J.optional(),words:h(g({prop:T(),key:T(),text:T()})),texts:h(Ve),picture:g({file:T(),source:m([y(),y()]),whole:J,box:J,fit:T(),position:m([y(),y()]),crop:J.optional()}).optional()}),Ue=g({key:T(),title:T().optional(),width:w().positive(),height:w().positive(),background:T(),picture:ne,layers:h(He)}),We=g({from:w().positive(),to:w().positive()}),Ge=We.extend({key:T().min(1)}),Ke=We.extend({key:T().min(1),layers:h(Ge)}),qe={"image/versions":E(g({item:O}),g({piece:T(),title:T().optional(),script:T().min(1).optional(),versions:h(g({key:T(),lang:T().optional(),variant:T().optional(),script:O.optional()}))}),`An image's versions, one per combo, and its script in each version's language.`),"image/boards":E(g({...re,height:w().min(16).max(2048).optional()}),g({image:ne,width:w().positive(),height:w().positive(),boards:h(g({key:T(),width:w().positive(),height:w().positive(),x:w().nonnegative()}))}),`An image version's boards drawn side by side, in order, at one height: its card and its preview.`),"image/edit":E(g({...re,scale:y().min(.05).max(2).optional()}),g({piece:T(),boards:h(Ue)}),`An image version's boards as its viewer shows them: each drawn, and its named layers with what each draws, the messages it shows and its picture (what Mark up finds under a mark).`),"image/stage":E(g({...re,board:T().min(1).optional()}),D,"The address of an image version's stage page, for its viewer's sandboxed frame: a board drawn live, as large as the frame holds it, which moves to another board (`seek` by `part`)."),"image/sources":E(g({item:O}),g({path:O,boards:h(Ke)}),`Where each board and its layers are written in the image's module, by line: what a change to those lines changes.`)},Je=ie(qe),Ye=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Xe(e,t){for(let n of t){let t=e.find(e=>e.key===n.key);if(!t)return{board:n.key};for(let e of n.layers){let r=t.layers.find(t=>t.key===e.key);if(!r||!Ye(r,e))return{board:n.key,layer:e.key}}if(t.layers.length!==n.layers.length)return{board:n.key}}}var Ze=(e,t)=>e.from<=t.to&&t.from<=e.to,Qe=(e,t)=>e.filter(e=>Ze(e,t)).sort((e,t)=>e.to-e.from-(t.to-t.from))[0];function $e(e,t,n=t){let r={from:t,to:n},i=Qe(e,r);if(!i)return;let a=Qe(i.layers,r);return{board:i.key,...a?{layer:a.key}:{}}}var et=1,tt=e=>`data:${e.mime};base64,${e.data}`;function nt(e){let t=i(),[n,r]=(0,q.useState)(),[a,o]=(0,q.useState)([]),[s,c]=(0,q.useState)(new Map),[l,u]=(0,q.useState)(),[d,f]=(0,q.useState)(0),[p,m]=(0,q.useState)(),[h,g]=(0,q.useState)(),[_,v]=(0,q.useState)(0),y=(0,q.useRef)(0),b=(0,q.useRef)(new Map);return(0,q.useEffect)(()=>t.on(`project/changed`,e=>{y.current=e.revision,v(e=>e+1)}),[t]),(0,q.useEffect)(()=>{if(e===void 0)return;let n={on:!0},i=y.current;return Je(t,`image/sources`,{item:e}).then(e=>{n.on&&m(e)},()=>void 0),(async()=>{let a=(await Je(t,`image/versions`,{item:e})).versions.map(e=>({key:e.key,lang:e.lang,variant:e.variant})),s=new Map,l;for(let n of a){let r=await Je(t,`image/edit`,{item:e,version:n.key,scale:et});l=r.piece,s.set(n.key,{version:n,boards:r.boards})}if(n.on){for(let[e,t]of s){let n=b.current.get(e),r=n&&Xe(n.boards,t.boards);if(r){g({spot:r,version:e,at:Date.now()});break}}b.current=s,r(l),o(a),c(s),u(void 0),f(i)}})().catch(e=>{n.on&&u(e instanceof Error?e.message:String(e))}),()=>{n.on=!1}},[t,e,_]),{item:e,piece:n,versions:a,drawn:s,revision:d,sources:p,landed:h,error:l}}var rt=e=>typeof e==`object`&&!!e&&e.allyhub===!0&&typeof e.type==`string`;function it(e){let t=i(),[n,a]=(0,q.useState)(),o=r(n),[s,c]=(0,q.useState)(new Map),l=(0,q.useRef)(new Map),u=(0,q.useRef)(1),d=e.wanted.map(e=>e.id).join(`
2
+ `);return(0,q.useEffect)(()=>{if(e.item===void 0)return;let n=!0,r=e.item;return Promise.all(e.wanted.slice(0,8).map(e=>Je(t,`image/stage`,{item:r,version:e.version,board:e.board}).then(t=>({w:e,r:t}),()=>void 0))).then(e=>{if(!n)return;let t=e.find(e=>e!==void 0);t&&a(t.r.probe),c(t=>{let n=new Map;for(let r of e){if(!r)continue;let e=t.get(r.w.id),i=()=>({n:u.current++,src:r.r.url,drawn:!1});e?.shown?e.shown.src===r.r.url?n.set(r.w.id,e):n.set(r.w.id,{shown:e.shown,pending:e.pending?.src===r.r.url?e.pending:i()}):n.set(r.w.id,{shown:i(),pending:void 0})}return n})}),()=>{n=!1}},[t,e.item,d,e.revision]),(0,q.useEffect)(()=>{let e=e=>{if(!rt(e.data)||e.data.type!==`ready`)return;let t;for(let[n,r]of l.current)r.contentWindow===e.source&&(t=n);t!==void 0&&c(e=>{let n=!1,r=new Map(e);for(let[i,a]of e)a.shown?.n===t&&!a.shown.drawn?(r.set(i,{...a,shown:{...a.shown,drawn:!0}}),n=!0):a.pending?.n===t&&(r.set(i,{shown:{...a.pending,drawn:!0},pending:void 0}),n=!0);return n?r:e})};return addEventListener(`message`,e),()=>{removeEventListener(`message`,e)}},[]),{frame:(e,t)=>{let n=s.get(e);return!n||o===void 0?null:(0,F.jsx)(ot,{frames:n,sandbox:o,els:l,picture:t})},drawn:e=>s.get(e)?.shown?.drawn===!0}}function at(e){let t=/^data:([^;,]+);base64,(.*)$/su.exec(e);return t?.[1]!==void 0&&t[2]!==void 0?{mime:t[1],data:t[2]}:void 0}function ot({frames:e,sandbox:t,els:n,picture:r}){let i=(0,q.useRef)(null),a=()=>{let e=i.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0};o({element:()=>i.current,pictures:()=>{let e=a(),t=at(r);return Promise.resolve(e&&t?[{rect:e,...t}]:[])}});let s=(e,r)=>(0,F.jsx)(`iframe`,{ref:t=>{t?n.current.set(e.n,t):n.current.delete(e.n),r||(i.current=t)},src:e.src,title:``,tabIndex:-1,...t?{sandbox:`allow-scripts`}:{},"data-testid":r?`image-live-pending`:`image-live`,"data-drawn":e.drawn?``:void 0,className:`pointer-events-none absolute inset-0 size-full border-0`,style:{opacity:!r&&e.drawn?1:0}},e.n);return(0,F.jsxs)(F.Fragment,{children:[e.shown?s(e.shown,!1):null,e.pending?s(e.pending,!0):null]})}function st(e,t,n,r){let i=e=>({x:(e.x-t.x)/t.zoom,y:(e.y-t.y)/t.zoom}),a=u(n,i),o=t=>ct(e,t),s=[...e.layers].reverse(),c=e=>!e.hidden&&e.shown!==void 0&&d(n,{x:t.x+e.shown.left*t.zoom,y:t.y+e.shown.top*t.zoom,width:e.shown.width*t.zoom,height:e.shown.height*t.zoom}),l=s.filter(e=>e.kind!==`group`&&!o(e)&&c(e)),f=l.length>0?l:s.filter(e=>e.kind!==`group`&&c(e)),p=new Set,m=new Map(e.layers.map(e=>[e.key,e.parent]));for(let e of f)for(let t=e.parent;t!==void 0;t=m.get(t))p.add(t);let h=new Set([...f.map(e=>e.key),...p]);return s.filter(e=>h.has(e.key)).map(o=>{let s=[{in:`board ${e.key}`,width:e.width,height:e.height,...a,scale:1/t.zoom}],c=o.info.picture;if(c&&c.whole[2]>0&&c.whole[3]>0){let[e,r,a,o]=c.whole,[l,d]=c.source;s.push({in:`the picture`,file:c.file,width:l,height:d,...u(n,t=>{let n=i(t);return{x:(n.x-e)*l/a,y:(n.y-r)*d/o}}),scale:l/a/t.zoom})}return{...lt(e,o,r),regions:s}})}var ct=(e,t)=>(t.kind===`adjustment`||t.kind===`fill`)&&t.box!==void 0&&t.box.left<=0&&t.box.top<=0&&t.box.left+t.box.width>=e.width&&t.box.top+t.box.height>=e.height;function lt(e,t,n){let r=t.info.picture,i=t.info.words[0]?.text??t.info.texts[0]?.text,a=n.lineOf(t.key);return{name:`layer ${t.name===t.key?`"${t.key}"`:`"${t.key}" (${t.name})`}, a ${t.kind}${r?` of ${r.file}`:``}, of board ${e.key}`,source:{path:n.file,...a===void 0?{}:{line:a}},...i===void 0?{}:{text:i}}}function ut(e,t,n){let r=(n.x-t.x)/t.zoom,i=(n.y-t.y)/t.zoom,a=e=>!e.hidden&&e.kind!==`group`&&e.shown!==void 0&&r>=e.shown.left&&r<=e.shown.left+e.shown.width&&i>=e.shown.top&&i<=e.shown.top+e.shown.height,o=[...e.layers].reverse();return o.find(t=>a(t)&&!ct(e,t))??o.find(a)}function dt(e,t,n,r){if(n.shown!==void 0)return{element:lt(e,n,r),outline:c({x:t.x+n.shown.left*t.zoom,y:t.y+n.shown.top*t.zoom,width:n.shown.width*t.zoom,height:n.shown.height*t.zoom})}}function ft(e,t){let n=e.split(`
3
+ `).findIndex(e=>RegExp(`key:\\s*["'\`]${t.replace(/[.*+?^${}()|[\]\\]/gu,`\\$&`)}["'\`]`,`u`).test(e));return n<0?void 0:n+1}var pt=e=>e===void 0?void 0:{left:e[0],top:e[1],width:e[2],height:e[3]};function mt(e,t){let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.left+e.width,t.left+t.width),a=Math.min(e.top+e.height,t.top+t.height);return i>n&&a>r?{left:n,top:r,width:i-n,height:a-r}:void 0}function ht(e){let t=new Map;for(let n of e){let e=n.info.style.clipping===!0&&n.kind!==`group`,r=e?t.get(n.parent):void 0;n.shown=r===void 0?n.box:r.shown&&n.box?mt(n.box,r.shown):void 0,e||t.set(n.parent,n)}}function gt(e,t,n){let r=t.layers.map(e=>({key:e.key,name:e.key,component:e.component,kind:e.kind,hidden:e.hidden,parent:e.parent,box:pt(e.box),shown:void 0,info:e}));return ht(r),{version:e,key:t.key,title:t.title??t.key,width:t.width,height:t.height,background:t.background,picture:n,layers:r}}function _t(e,t,n){return e.flatMap(e=>{let r=t.get(e.key);return r?[r.boards.map(t=>gt(e,t,n(t.picture)))]:[]})}var Y=48,vt=80,yt=20,bt=22,xt=26,X=40,Z=(e,t)=>`${e} ${t}`;function St(e){let t=[];for(let n of e)n.forEach((e,n)=>{t[n]=Math.max(t[n]??0,e.width)});return t}var Ct=e=>Math.max(yt,vt*e);function wt(e,t){let n=St(e),r=e.length>1;return{width:n.reduce((e,n)=>e+n*t,0)+Ct(t)*Math.max(0,n.length-1)+96,height:e.reduce((e,n)=>e+Math.max(0,...n.map(e=>e.height))*t+bt+(r?xt:0),0)+X*Math.max(0,e.length-1)+96}}function Tt(e,t,n,r){let i=St(e),a=Ct(t),o=wt(e,t),s=Math.max(0,((r?.width??0)-o.width)/2),c=Math.max(0,((r?.height??0)-o.height)/2),l=new Map,u=[],d=c+Y,f=0,p=e.length>1;for(let r of e){let e=r[0];p&&e&&(u.push({x:s+Y,y:d,label:n(e)}),d+=xt);let o=d;d+=bt;let c=s+Y,m=0;r.forEach((e,n)=>{l.set(Z(e.version.key,e.key),{x:c,y:d,labelY:o}),c+=(i[n]??e.width)*t+a,m=Math.max(m,e.height*t)}),f=Math.max(f,c-a+Y+s),d+=m+X}return{width:f,height:d-X+Y+c,boards:l,rows:u}}function Et(e,t){let n=St(e);if(n.length===0||t.width<=0||t.height<=0)return 1;let r=n.reduce((e,t)=>e+t,0),i=n.length-1,a=(t.width-96)/(r+vt*i),o=vt*a>=yt?a:(t.width-96-yt*i)/r,s=e.reduce((e,t)=>e+Math.max(...t.map(e=>e.height)),0),c=e.length*(bt+(e.length>1?xt:0))+X*(e.length-1),l=Math.min(o,(t.height-96-c)/s,1);return Math.max(.02,l)}var Q=e=>`${String(e)}px`,$=e=>`${String(e*100)}%`;function Dt(e){let t=e.board.layers.find(t=>t.key===e.layer)?.shown;return t?(0,F.jsx)(`div`,{"data-note-chrome":``,"data-testid":e.selected?`image-selected`:`image-hovered`,"data-layer":e.layer,className:e.selected?`outline-pencil absolute shadow-[0_0_0_4px_var(--color-sheet),inset_0_0_0_2px_var(--color-sheet)] outline-2`:`outline-pencil absolute shadow-[0_0_0_2px_var(--color-sheet),inset_0_0_0_1px_var(--color-sheet)] outline-1`,style:{left:$(t.left/e.board.width),top:$(t.top/e.board.height),width:$(t.width/e.board.width),height:$(t.height/e.board.height)},children:e.selected&&e.bar!==void 0?(0,F.jsx)(`div`,{className:`pointer-events-auto absolute top-full left-1/2 mt-2 -translate-x-1/2`,children:e.bar}):null}):null}function Ot(e){let t=(e.agent.layer===void 0?void 0:e.board.layers.find(t=>t.key===e.agent.layer))?.box;return t?(0,F.jsx)(P,{"data-testid":`image-agent`,label:e.agent.label,style:{left:$(t.left/e.board.width),top:$(t.top/e.board.height),width:$(t.width/e.board.width),height:$(t.height/e.board.height)}}):(0,F.jsx)(P,{"data-testid":`image-agent`,label:e.agent.label,flag:`end`,className:`inset-0`})}function kt(e){let t=L(),{board:n,zoom:r}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`text-lead text-micro absolute flex h-5 items-end gap-2 truncate`,style:{left:Q(e.at.x),top:Q(e.at.labelY),width:Q(n.width*r)},"data-testid":`image-board-label`,children:[(0,F.jsx)(`span`,{className:`text-ink truncate font-medium`,children:n.title}),n.title.replace(/\s/gu,``).toLowerCase().replace(`×`,`x`).includes(`${String(n.width)}x${String(n.height)}`)?null:(0,F.jsx)(`span`,{className:`tabular-nums`,children:t.size(n.width,n.height)})]}),(0,F.jsxs)(`div`,{className:`bg-sheet absolute overflow-hidden shadow-[0_0_0_1px_var(--color-rule)]`,style:{left:Q(e.at.x),top:Q(e.at.y),width:Q(n.width*r),height:Q(n.height*r)},"data-testid":`image-board`,"data-board":n.key,"data-version":n.version.key,children:[(0,F.jsx)(`img`,{src:n.picture,alt:``,draggable:!1,className:`absolute inset-0 size-full max-w-none select-none`}),e.frame]}),e.agent||e.hovered!==void 0||e.selected!==void 0?(0,F.jsxs)(`div`,{className:`pointer-events-none absolute`,style:{left:Q(e.at.x),top:Q(e.at.y),width:Q(n.width*r),height:Q(n.height*r)},children:[e.agent?(0,F.jsx)(Ot,{board:n,agent:e.agent}):null,e.hovered===void 0?null:(0,F.jsx)(Dt,{board:n,layer:e.hovered,selected:!1}),e.selected===void 0?null:(0,F.jsx)(Dt,{board:n,layer:e.selected,selected:!0,bar:e.selectionBar})]}):null]})}function At({ref:e,...t}){let n=(0,q.useRef)(null),r=(0,q.useCallback)(t=>{n.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),i=(0,q.useRef)(t.onZoomAt);return(0,q.useEffect)(()=>{i.current=t.onZoomAt}),(0,q.useEffect)(()=>{let e=n.current;if(!e)return;let t=t=>{if(!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let n=e.getBoundingClientRect();i.current(Math.exp(-t.deltaY/200),{x:t.clientX-n.left,y:t.clientY-n.top})};return e.addEventListener(`wheel`,t,{passive:!1}),()=>{e.removeEventListener(`wheel`,t)}},[]),(0,F.jsx)(`div`,{ref:r,className:`bg-stone focus-visible:outline-pencil relative min-h-0 min-w-0 flex-1 overflow-auto outline-none focus-visible:-outline-offset-1 focus-visible:outline-1`,tabIndex:0,role:`application`,"aria-label":t.label,"data-testid":`image-surface`,style:{cursor:t.cursor},onPointerDown:t.onPointerDown,onPointerMove:t.onPointerMove,onPointerUp:t.onPointerUp,onPointerCancel:t.onPointerUp,onLostPointerCapture:t.onPointerUp,onPointerLeave:t.onPointerLeave,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,children:(0,F.jsxs)(`div`,{className:`relative`,style:{width:Q(t.layout.width),height:Q(t.layout.height)},"data-testid":`image-world`,children:[t.layout.rows.map(e=>(0,F.jsx)(`div`,{className:`text-lead absolute text-xs font-medium`,style:{left:Q(e.x),top:Q(e.y)},"data-testid":`image-row-label`,children:e.label},e.y)),t.rows.flatMap(e=>e.map(e=>{let n=Z(e.version.key,e.key),r=t.layout.boards.get(n);return r?(0,F.jsx)(kt,{board:e,zoom:t.zoom,at:r,frame:t.frame?.(n,e.picture),agent:t.agent?.id===n?{label:t.agent.label,layer:t.agent.layer}:void 0,hovered:t.hovered?.id===n?t.hovered.layer:void 0,selected:t.selected?.id===n?t.selected.layer:void 0,selectionBar:t.selectionBar},n):null}))]})})}function jt(e,t){if(e!==void 0)try{return new Intl.DisplayNames([t??`en`],{type:`language`}).of(e)}catch{return e}}var Mt=3e4;function Nt(e){let t=e?.board??e?.part;if(typeof t!=`string`)return;let n=e?.layer;return typeof n==`string`?{board:t,layer:n}:{board:t}}var Pt=e=>e instanceof Element&&e.closest(`input, textarea, [contenteditable='true'], [role='combobox']`)!==null;function Ft(e){return e.bar(e.tools)}function It(e){let r=L(),o=i(),s=a(),c=(0,q.useMemo)(()=>_t(e.data.versions,e.data.drawn,tt),[e.data.versions,e.data.drawn]),u=c.flat(),d=(0,q.useRef)(null),[f,p]=(0,q.useState)(),[m,h]=(0,q.useState)(!0),[g,_]=(0,q.useState)(`default`),[v,y]=(0,q.useState)(!1),b=(0,q.useRef)(void 0),x=e=>[jt(e.version.lang,s?.locale),e.version.variant].filter(e=>e!==void 0).join(` · `)||e.version.key,[S,C]=(0,q.useState)();(0,q.useLayoutEffect)(()=>{let e=d.current;if(!e)return;let t=()=>{C(t=>t?.width===e.offsetWidth&&t.height===e.offsetHeight?t:{width:e.offsetWidth,height:e.offsetHeight})};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);let w=m&&S&&c.length>0?Et(c,S):f??1,ee=(0,q.useMemo)(()=>Tt(c,w,x,S),[c,w,s?.locale,S]),te=(0,q.useRef)(void 0);(0,q.useLayoutEffect)(()=>{let e=d.current,t=te.current;if(!e||!t)return;te.current=void 0;let n=w/t.from;e.scrollLeft=(e.scrollLeft+t.at.x)*n-t.at.x,e.scrollTop=(e.scrollTop+t.at.y)*n-t.at.y},[w]);let T=(0,q.useRef)(!1);(0,q.useEffect)(()=>{if(T.current||e.board===void 0||c.length===0)return;let t=d.current?.querySelector(`[data-testid="image-board"][data-board="${CSS.escape(e.board)}"]`);t&&(T.current=!0,t.scrollIntoView({block:`nearest`,inline:`nearest`}))},[e.board,c.length,ee]);let{agent:E,following:ne}=t(),re=ue(),D=(()=>{if(E?.doing===void 0)return;let{landed:t,sources:n}=e.data,r=E.source,i=r?.path!==void 0&&r.path===n?.path&&r.from!==void 0?$e(n.boards,r.from,r.to):void 0,a=t&&t.at>=E.at-Mt?t:void 0,o=Nt(E.place)??i??a?.spot;if(!o)return;let s=u.filter(e=>e.key===o.board),c=s.find(e=>e.version.key===a?.version)??s[0];if(!c)return;let l=c.layers.some(e=>e.key===o.layer)?o.layer:void 0;return{id:Z(c.version.key,c.key),layer:l,label:re(E)}})(),O=ne&&D?`${D.id}\n${D.layer??``}`:void 0;(0,q.useEffect)(()=>{let e=d.current;if(O===void 0||!e)return;let[t=``,n=``]=O.split(`
4
+ `),r=u.find(e=>Z(e.version.key,e.key)===t),i=ee.boards.get(t);if(!r||!i)return;let a=r.layers.find(e=>e.key===n)?.box??{left:0,top:0,width:r.width,height:r.height},o=(e,t,n,r)=>t+96>r||e-48<n?e-48:e+t+48>n+r?e+t+48-r:n;e.scrollTo({left:o(i.x+a.left*w,a.width*w,e.scrollLeft,e.clientWidth),top:o(i.y+a.top*w,a.height*w,e.scrollTop,e.clientHeight)})},[O]);let ie=it({item:e.data.item,wanted:u.map(e=>({id:Z(e.version.key,e.key),version:e.version.key,board:e.key})),revision:e.data.revision}),ae=(e,t)=>{h(!1);let n=d.current;te.current={at:t??{x:(n?.clientWidth??0)/2,y:(n?.clientHeight??0)/2},from:w},p(Math.min(8,Math.max(.02,e)))},k=e=>{e===`fit`?h(!0):ae(typeof e==`number`?e:w*(e===`in`?1.25:.8))},oe=(e,t)=>d.current?.querySelector(`[data-testid="image-board"][data-version="${CSS.escape(e)}"][data-board="${CSS.escape(t)}"]`)?.getBoundingClientRect(),se=(0,q.useRef)(``),A=e=>{for(let t of u){let n=oe(t.version.key,t.key);if(n&&e.x>=n.left&&e.x<=n.right&&e.y>=n.top&&e.y<=n.bottom)return{b:t,r:n}}},ce=pe()!==void 0,[le,j]=(0,q.useState)(),[M,ge]=(0,q.useState)(),N=(e,t)=>({x:e.x,y:e.y,zoom:e.width/t.width}),be=e=>{let t=A(e),n=t?ut(t.b,N(t.r,t.b),e):void 0;return t&&n?{id:Z(t.b.version.key,t.b.key),layer:n.key}:void 0},xe=(e,t)=>e?.id===t?.id&&e?.layer===t?.layer,P={file:e.entry,lineOf:e=>ft(se.current,e)},I=t=>{let n=jt(t.version.lang,`en`);return`on board ${t.key}${n===void 0||e.data.versions.length<2?``:` (${n})`}`},Se=e=>{d.current?.focus({preventScroll:!0});let t=d.current;if(ce&&!v&&e.button!==1){let t=be({x:e.clientX,y:e.clientY});(e.button===0||t)&&ge(t)}(v||e.button===1)&&t&&(e.currentTarget.setPointerCapture(e.pointerId),b.current={x:e.clientX,y:e.clientY,left:t.scrollLeft,top:t.scrollTop},_(`grabbing`))},Ce=()=>{b.current&&(b.current=void 0,_(v?`grab`:`default`))};return n({hold:async()=>(se.current=await o[`files/read`]({path:e.entry}).then(e=>e.text,()=>``),{key:`${e.entry}@${String(e.data.revision)}`,what:`The image ${e.entry}, its boards side by side${e.data.versions.length>1?`, a version a row`:``}`,source:{path:e.entry}}),locate:t=>{let n=l(t)[0],r=n?A(n):void 0;if(!n||!r)return Promise.resolve({elements:[]});let i=jt(r.b.version.lang,`en`),a=e=>`${String(Math.round(Math.min(1,Math.max(0,e))*100))}%`,o=a((n.x-r.r.x)/r.r.width),s=a((n.y-r.r.y)/r.r.height);return Promise.resolve({elements:st(r.b,{x:r.r.x,y:r.r.y,zoom:r.r.width/r.b.width},t,{file:e.entry,lineOf:e=>ft(se.current,e)}),where:`on board ${r.b.key}${i===void 0||e.data.versions.length<2?``:` (${i})`}, at ${o} across and ${s} down it`})},pick:e=>{let t=A(e),n=t?ut(t.b,N(t.r,t.b),e):void 0,r=t&&n?dt(t.b,N(t.r,t.b),n,P):void 0;return Promise.resolve(t&&r?{...r,where:I(t.b)}:void 0)},selected:()=>{let e=u.find(e=>Z(e.version.key,e.key)===M?.id),t=e?.layers.find(e=>e.key===M?.layer),n=e?oe(e.version.key,e.key):void 0,r=e&&t&&n?dt(e,N(n,e),t,P):void 0;return Promise.resolve(e&&r?[{...r,where:I(e)}]:[])}}),(0,F.jsxs)(`div`,{className:`relative flex size-full min-h-0 flex-col`,"data-testid":`image-viewer`,children:[(0,F.jsx)(Ft,{bar:e.bar,tools:{zoom:w,onZoom:k}}),(0,F.jsxs)(he,{children:[(0,F.jsx)(de,{asChild:!0,children:(0,F.jsx)(`div`,{className:`flex min-h-0 flex-1`,children:(0,F.jsx)(At,{ref:d,rows:c,layout:ee,zoom:w,cursor:v&&g==="default"?`grab`:g,frame:ie.frame,agent:D,hovered:xe(le,M)?void 0:le,selected:M,selectionBar:(0,F.jsx)(fe,{}),onPointerLeave:()=>{j(void 0)},onPointerDown:Se,onPointerMove:e=>{let t=b.current,n=d.current;if(t&&e.buttons===0){Ce();return}if(t&&n){n.scrollLeft=t.left-(e.clientX-t.x),n.scrollTop=t.top-(e.clientY-t.y);return}if(!ce)return;let r=v||e.buttons!==0?void 0:be({x:e.clientX,y:e.clientY});xe(r,le)||j(r)},onPointerUp:Ce,onKeyDown:e=>{if(Pt(e.target))return;let t=e.metaKey||e.ctrlKey,n=e.key===`Escape`&&M?()=>{ge(void 0)}:e.key===` `?()=>{e.repeat||y(!0),_(`grab`)}:e.shiftKey&&e.code===`Digit1`?()=>{k(`fit`)}:e.shiftKey&&e.code===`Digit0`?()=>{k(1)}:t&&(e.key===`=`||e.key===`+`)?()=>{k(`in`)}:t&&e.key===`-`?()=>{k(`out`)}:void 0;n&&(e.preventDefault(),n())},onKeyUp:e=>{e.key===` `&&(y(!1),_(`default`))},onZoomAt:(e,t)=>{ae(w*e,t)},label:r.boards})})}),(0,F.jsxs)(ye,{className:`w-60`,"data-testid":`image-menu`,children:[(0,F.jsxs)(me,{onSelect:()=>{k(`fit`)},children:[r.zoomFit,(0,F.jsx)(ve,{children:`⇧1`})]}),(0,F.jsx)(_e,{})]})]})]})}var Lt=e=>typeof e==`object`&&!!e&&typeof e.board==`string`;function Rt(){let e=L(),t=a(),n=nt(t?.item.id);if(n.piece===void 0||t===void 0)return(0,F.jsx)(`div`,{className:`text-lead bg-paper flex size-full items-center justify-center text-sm`,"data-testid":`image-editor`,"data-state":n.error===void 0?`loading`:`error`,children:n.error===void 0?(0,F.jsx)(xe,{label:e.loading}):e.couldNotDraw(n.error)});let r=Lt(t.place)?t.place:void 0;return(0,F.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col`,"data-testid":`image-editor`,"data-state":`ready`,children:[(0,F.jsx)(It,{entry:t.item.entry,data:n,board:r?.board,bar:t=>(0,F.jsx)(M,{start:(0,F.jsx)(N,{testid:`image-bar`,"aria-label":e.zoom,children:(0,F.jsx)(Ce,{...t})}),exports:{versions:n.versions.map(e=>({key:e.key,label:e.lang??e.key})),facts:e.boardCount(n.drawn.values().next().value?.boards.length??0)}})}),n.drawn.size>0&&[...n.drawn.values()].every(e=>e.boards.length===0)?(0,F.jsx)(`p`,{className:`text-lead p-6 text-sm`,children:e.noBoards}):null]})}export{Rt as ImageEditor,Rt as default,I as WORDS};