allyhub 0.15.2 → 0.16.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 (394) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/commands/add.js +1 -1
  3. package/dist/commands/cloud-tools.js +1 -1
  4. package/dist/commands/dev.js +6 -2
  5. package/dist/commands/doctor.js +3 -3
  6. package/dist/commands/frames/doc.js +1 -1
  7. package/dist/commands/inspect/common.js +3 -3
  8. package/dist/commands/inspect/facts.js +2 -2
  9. package/dist/commands/inspect/layout.js +1 -1
  10. package/dist/commands/mail.js +6 -6
  11. package/dist/commands/render.js +1 -1
  12. package/dist/main.js +8 -8
  13. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-text.js +2 -2
  14. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  17. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +2 -2
  18. package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -1
  19. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +1 -1
  20. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  21. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  22. package/dist/node_modules/@allyhub/build/dist/work.d.ts +9 -1
  23. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  24. package/dist/node_modules/@allyhub/build/package.json +1 -1
  25. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  26. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +2 -2
  27. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  28. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  29. package/dist/node_modules/@allyhub/check/package.json +1 -1
  30. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  31. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +12 -3
  32. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  33. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +1 -1
  34. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  35. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  36. package/dist/node_modules/@allyhub/components/package.json +1 -1
  37. package/dist/node_modules/@allyhub/dev-server/dist/deletion.js +2 -0
  38. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  39. package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +1 -1
  40. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  41. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  42. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -2
  43. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  44. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  45. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  46. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  47. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  48. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  49. package/dist/node_modules/@allyhub/export/package.json +1 -1
  50. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  51. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  52. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +30 -4
  54. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +15 -4
  56. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  58. package/dist/node_modules/@allyhub/i18n/dist/index.js +1 -1
  59. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  61. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +1 -1
  62. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +1 -1
  63. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  64. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +3 -3
  65. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  66. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  67. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  68. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +2 -2
  69. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  70. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  71. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  72. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  73. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +1 -1
  74. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  75. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  76. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  77. package/dist/node_modules/@allyhub/media/package.json +1 -1
  78. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  79. package/dist/node_modules/@allyhub/model/package.json +1 -1
  80. package/dist/node_modules/@allyhub/office-extension/LICENSE +241 -0
  81. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  82. package/dist/node_modules/@allyhub/office-extension/markup/csv/data/leads.csv +5 -0
  83. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +19 -0
  84. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  85. package/dist/node_modules/@allyhub/office-extension/markup/document/briefs/launch.docx +0 -0
  86. package/dist/node_modules/@allyhub/office-extension/markup/document/markup.json +11 -0
  87. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  88. package/dist/node_modules/@allyhub/office-extension/markup/presentation/decks/pitch.pptx +0 -0
  89. package/dist/node_modules/@allyhub/office-extension/markup/presentation/markup.json +11 -0
  90. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  91. package/dist/node_modules/@allyhub/office-extension/markup/workbook/data/plans.xlsx +0 -0
  92. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +10 -0
  93. package/dist/node_modules/@allyhub/office-extension/package.json +124 -0
  94. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  95. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +2 -0
  96. package/dist/node_modules/@allyhub/piece/dist/source.js +1 -1
  97. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  98. package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
  99. package/dist/node_modules/@allyhub/project/package.json +1 -1
  100. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +10 -5
  101. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  102. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +7 -0
  103. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  104. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +9 -0
  105. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  106. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +2 -0
  107. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  108. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +77 -0
  109. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +2 -0
  110. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +39 -9
  111. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  112. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +15 -15
  113. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +441 -5
  114. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  115. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -2
  116. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +1 -1
  117. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +8 -0
  118. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  119. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +5 -5
  120. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +15 -0
  121. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  122. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +134 -0
  123. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +2 -0
  124. package/dist/node_modules/@allyhub/protocol/dist/place.js +1 -1
  125. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +3 -3
  126. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +47 -0
  127. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +2 -0
  128. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  129. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +52 -5
  130. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  131. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +34 -0
  132. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +2 -0
  133. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +1 -0
  134. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +21 -52
  135. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  136. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +264 -0
  137. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +2 -0
  138. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +18 -0
  139. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +2 -0
  140. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +97 -0
  141. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +2 -0
  142. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +3 -2
  143. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  144. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +20 -20
  145. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +71 -0
  146. package/dist/node_modules/@allyhub/protocol/dist/turns.js +2 -0
  147. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  148. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  149. package/dist/node_modules/@allyhub/render/package.json +1 -1
  150. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  151. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  152. package/dist/node_modules/@allyhub/scaffold/dist/index.js +4 -4
  153. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  154. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  155. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  156. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  157. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +1 -1
  158. package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -3
  159. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  160. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  161. package/dist/node_modules/@allyhub/slides-extension/package.json +2 -2
  162. package/dist/node_modules/@allyhub/slides-pptx/dist/audio-icon.js +1 -1
  163. package/dist/node_modules/@allyhub/slides-pptx/package.json +5 -1
  164. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +1 -1
  165. package/dist/node_modules/@allyhub/slides-runtime/dist/slide-css.js +20 -0
  166. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  167. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  168. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +1 -1
  169. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  170. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  171. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +15 -15
  172. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  173. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +17 -2
  174. package/dist/node_modules/@allyhub/telemetry/dist/level.js +2 -2
  175. package/dist/node_modules/@allyhub/telemetry/dist/levels.js +2 -0
  176. package/dist/node_modules/@allyhub/telemetry/dist/scrub.js +1 -1
  177. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  178. package/dist/node_modules/@allyhub/text-extension/markup/markup.json +1 -1
  179. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  180. package/dist/node_modules/@allyhub/text-extension/markup-file/archive/assets.zip +0 -0
  181. package/dist/node_modules/@allyhub/text-extension/markup-file/markup.json +10 -0
  182. package/dist/node_modules/@allyhub/text-extension/package.json +35 -1
  183. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  184. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +3 -3
  185. package/dist/node_modules/@allyhub/video-extension/package.json +2 -2
  186. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  187. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  188. package/dist/node_modules/@allyhub/website/package.json +1 -1
  189. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  190. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  191. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +1 -1
  192. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  193. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  194. package/dist/package.json +13 -12
  195. package/dist/project.js +1 -1
  196. package/dist/telemetry.js +3 -3
  197. package/dist/text/console-text.js +2 -2
  198. package/editor-web/assets/{abnfDiagram-WEYOIA3C-9z0ZEYUq.js → abnfDiagram-WEYOIA3C-B1AxOB-Y.js} +1 -1
  199. package/editor-web/assets/{architecture-WOLXFQ4H-ELMO_PA6.js → architecture-WOLXFQ4H-C-7xKJ2Z.js} +1 -1
  200. package/editor-web/assets/{architectureDiagram-ZHVYKT53-C0yuCWU3.js → architectureDiagram-ZHVYKT53-CyWb8_iD.js} +1 -1
  201. package/editor-web/assets/arrow-down-B8VUPCGi.js +1 -0
  202. package/editor-web/assets/arrow-up-Ds4juY8X.js +1 -0
  203. package/editor-web/assets/article-CTKW7Eo0.js +7 -0
  204. package/editor-web/assets/article-qt4W_BKH.js +3 -0
  205. package/editor-web/assets/{audio-lines-1s1eRs4Q.js → audio-lines-PZj77e7t.js} +1 -1
  206. package/editor-web/assets/bar-button-J9vbfzTx.js +1 -0
  207. package/editor-web/assets/{blockDiagram-RJAE7QA3-vi6JOg4o.js → blockDiagram-RJAE7QA3-uii4-7Ix.js} +4 -4
  208. package/editor-web/assets/browser-C1XuTMlp.js +1 -0
  209. package/editor-web/assets/{c4Diagram-XDPPPE54-Agf_H8uS.js → c4Diagram-XDPPPE54-BtL5Z-wF.js} +1 -1
  210. package/editor-web/assets/channel-dEO-yacZ.js +1 -0
  211. package/editor-web/assets/chart-amT4lgX3.js +2 -0
  212. package/editor-web/assets/chart-file-HE-uXGmJ.js +1 -0
  213. package/editor-web/assets/{chart-no-axes-column-CJmeYOSo.js → chart-no-axes-column-Be0lFcGF.js} +1 -1
  214. package/editor-web/assets/{chunk-2E7WHVMD-XalaZaha.js → chunk-2E7WHVMD-BJjuZYBs.js} +1 -1
  215. package/editor-web/assets/{chunk-4EMNKR2T-DUlRZkCS.js → chunk-4EMNKR2T-nzPdUHaI.js} +1 -1
  216. package/editor-web/assets/{chunk-55XCU76K-DTa7whGr.js → chunk-55XCU76K-CH52E3Nl.js} +1 -1
  217. package/editor-web/assets/{chunk-7S6XSTFO-85zCPzj0.js → chunk-7S6XSTFO-Ba4LNKCV.js} +1 -1
  218. package/editor-web/assets/{chunk-AQDTSKZB-CWBseIyh.js → chunk-AQDTSKZB-Co9SmoqD.js} +1 -1
  219. package/editor-web/assets/chunk-DSNLSHJZ-BHRvxRGi.js +127 -0
  220. package/editor-web/assets/{chunk-HAGFOTED-DFWda2Rk.js → chunk-HAGFOTED-F5Wd8ETY.js} +1 -1
  221. package/editor-web/assets/{chunk-HNE4Q36P-aXibFitC.js → chunk-HNE4Q36P-C_E0__p9.js} +1 -1
  222. package/editor-web/assets/{chunk-NQOKRVIF-CtJUuFdN.js → chunk-NQOKRVIF-BvrtbbWm.js} +17 -17
  223. package/editor-web/assets/{chunk-UHW7PFBP-B6QKSKWE.js → chunk-UHW7PFBP-D0HTPXRF.js} +1 -1
  224. package/editor-web/assets/{chunk-VQ5W62QI-CF6Al55P.js → chunk-VQ5W62QI-B9hF2YMk.js} +1 -1
  225. package/editor-web/assets/{chunk-WQQL4CDK-w2TKLkyw.js → chunk-WQQL4CDK-D7N3o-Ub.js} +1 -1
  226. package/editor-web/assets/{chunk-YZO67HFG-DVGOATM3.js → chunk-YZO67HFG-XaLSrI_W.js} +1 -1
  227. package/editor-web/assets/{chunk-ZAUX2LTX-Cq7MMjDP.js → chunk-ZAUX2LTX-sXc6qmw-.js} +1 -1
  228. package/editor-web/assets/{chunk-ZCHMQSOR-GMW_lBh4.js → chunk-ZCHMQSOR-B0X6sNMX.js} +1 -1
  229. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-C7AK5Bkj.js → classDiagram-v2-4MYWR3UA-CjXVvOUp.js} +7 -7
  230. package/editor-web/assets/code-CD-CbJG9.js +1 -0
  231. package/editor-web/assets/collaborator-BU4qU7O3.js +1 -0
  232. package/editor-web/assets/{copy-DvOiv9Ra.js → copy-CuJSs0nI.js} +1 -1
  233. package/editor-web/assets/{createLucideIcon-REX213UO.js → createLucideIcon-lm_6n8YT.js} +1 -1
  234. package/editor-web/assets/csv-Bwre9FdI.js +11 -0
  235. package/editor-web/assets/{cynefin-EF2NZ3EQ-ZnDieQsN.js → cynefin-EF2NZ3EQ-PQ9VyM9v.js} +1 -1
  236. package/editor-web/assets/{cynefinDiagram-WF24UDRP-BrukKIBF.js → cynefinDiagram-WF24UDRP-KXuXFAhX.js} +1 -1
  237. package/editor-web/assets/{dagre-NK4GIZVX-DfO0S2p_.js → dagre-NK4GIZVX-CBTyfYD5.js} +1 -1
  238. package/editor-web/assets/deck-C-p17098.js +1 -0
  239. package/editor-web/assets/{diagram-CBK3MWTC-D43RLesi.js → diagram-CBK3MWTC-CsVO64Bf.js} +1 -1
  240. package/editor-web/assets/{diagram-I5XIIV2D-bA1B1QQG.js → diagram-I5XIIV2D-fzbUm1St.js} +1 -1
  241. package/editor-web/assets/{diagram-ODIL2UCW-DAdXBD2K.js → diagram-ODIL2UCW-up6ihgN5.js} +1 -1
  242. package/editor-web/assets/{diagram-PFBEJUXE-C_KyEaws.js → diagram-PFBEJUXE-T6hVBoCD.js} +1 -1
  243. package/editor-web/assets/{diagram-RJA3I4VV-oXTtENF7.js → diagram-RJA3I4VV-BDntFeuR.js} +1 -1
  244. package/editor-web/assets/{diagram-TYUNFSNR-Czupe6mO.js → diagram-TYUNFSNR-Dv1-mqbf.js} +16 -16
  245. package/editor-web/assets/dist-B-lYrbqX.js +43 -0
  246. package/editor-web/assets/dist-B94TkgAP.js +18 -0
  247. package/editor-web/assets/dist-BW8IR8bR.js +17 -0
  248. package/editor-web/assets/dist-Ba5Kv4A-.js +4 -0
  249. package/editor-web/assets/{dist-BrGYx10E.js → dist-Bd8IxQPP.js} +1 -1
  250. package/editor-web/assets/dist-Bfs4cZI_.js +24 -0
  251. package/editor-web/assets/dist-C66KgS8g.js +19 -0
  252. package/editor-web/assets/dist-CBeeIAlh.js +1 -0
  253. package/editor-web/assets/dist-CHKVUdcE.js +16 -0
  254. package/editor-web/assets/dist-CWXGbcPB.js +3 -0
  255. package/editor-web/assets/{dist-2lNSE-G_.js → dist-D3C6FyrO.js} +1 -1
  256. package/editor-web/assets/dist-DhMagA-B.js +5 -0
  257. package/editor-web/assets/{dist-BtRMClDw.js → dist-DruvDNQe.js} +1 -1
  258. package/editor-web/assets/dist-DxcrMrCR.js +6 -0
  259. package/editor-web/assets/dist-DzjSp2i2.js +17 -0
  260. package/editor-web/assets/dist-_ooK0TT9.js +1 -0
  261. package/editor-web/assets/{dist-BPecIPz6.js → dist-aTV6Rwon.js} +134 -134
  262. package/editor-web/assets/dist-mrWPE-br.js +1 -0
  263. package/editor-web/assets/docx-draw-CeiLkccT.js +4 -0
  264. package/editor-web/assets/docx-preview-pcg9ioe3.js +21 -0
  265. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BOhNZmtp.js → ebnfDiagram-V4P3TTPT-CZzljBYN.js} +1 -1
  266. package/editor-web/assets/{elk-QONTBCTQ-DoZH3OoE.js → elk-QONTBCTQ-6vNb82av.js} +1 -1
  267. package/editor-web/assets/{erDiagram-KYQIGQAA-Bv0KDJi4.js → erDiagram-KYQIGQAA-B8smxURG.js} +2 -2
  268. package/editor-web/assets/esm-CNi9O1ya.js +21 -0
  269. package/editor-web/assets/{eventmodeling-K75KTNOO-C-_xzqfj.js → eventmodeling-K75KTNOO-CngIhoUF.js} +1 -1
  270. package/editor-web/assets/{file-exclamation-point-C_fX4fpI.js → file-exclamation-point-_L3ElCJ5.js} +1 -1
  271. package/editor-web/assets/file-question-mark-DlIjUK37.js +1 -0
  272. package/editor-web/assets/flowDiagram-IUGLLWBU-CL0AVU4Y.js +1 -0
  273. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CAuJlaZX.js → ganttDiagram-R7GPNTJY-BtzqHUiP.js} +1 -1
  274. package/editor-web/assets/{gitGraph-VSP46ZUC-Dx2xLi5C.js → gitGraph-VSP46ZUC-DOOpoQDh.js} +1 -1
  275. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DHsk_UOT.js → gitGraphDiagram-PDYL7XHY-Cu4T8UUo.js} +1 -1
  276. package/editor-web/assets/{group-pebHQTdP.js → group-BdrTp7gi.js} +1 -1
  277. package/editor-web/assets/hint-rlht0uxG.js +1 -0
  278. package/editor-web/assets/index-BCjGdcPh.js +28 -0
  279. package/editor-web/assets/index-D9ng69En.css +2 -0
  280. package/editor-web/assets/{info-OHQRW6UA-CnKQHx5m.js → info-OHQRW6UA-CiNozx0c.js} +1 -1
  281. package/editor-web/assets/{infoDiagram-MVDRKAX5-ibAVFw_2.js → infoDiagram-MVDRKAX5-A3mxzTmc.js} +1 -1
  282. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-C1OCHt3y.js → ishikawaDiagram-HPEHV2GE-CIbVgY0Z.js} +1 -1
  283. package/editor-web/assets/iso-ahTwmFwH.js +56 -0
  284. package/editor-web/assets/{italic-CtlNOXN9.js → italic-zw4_eUNF.js} +1 -1
  285. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BDdqMOM1.js → journeyDiagram-BOSHW7O7-BwPXFmyS.js} +1 -1
  286. package/editor-web/assets/{kanban-definition-FNSA4HC5-CSAS_zGn.js → kanban-definition-FNSA4HC5-biRlEeb1.js} +4 -4
  287. package/editor-web/assets/{link-CW2KxKT_.js → link-DopSU3aa.js} +1 -1
  288. package/editor-web/assets/{mermaid-parser.core-DTLyYXbn.js → mermaid-parser.core-ikwPmNne.js} +3 -3
  289. package/editor-web/assets/mermaid.core-B4GR7QVa.js +44 -0
  290. package/editor-web/assets/{mindmap-definition-6OY57UG3-DSWHcglH.js → mindmap-definition-6OY57UG3-BN8aiUmO.js} +3 -3
  291. package/editor-web/assets/minus-CbPnUIOy.js +1 -0
  292. package/editor-web/assets/{packet-JDAUHWVQ-_k1BF29s.js → packet-JDAUHWVQ-DWesZv6p.js} +1 -1
  293. package/editor-web/assets/{pegDiagram-ECIUJNBX-B22YyWAa.js → pegDiagram-ECIUJNBX-Bh3QEAL_.js} +1 -1
  294. package/editor-web/assets/{pie-XZMESJXO-CSwV32hj.js → pie-XZMESJXO-DT1ANL51.js} +1 -1
  295. package/editor-web/assets/{pieDiagram-GNMPY74T-rSFNeWnq.js → pieDiagram-GNMPY74T-xXxgiv6O.js} +1 -1
  296. package/editor-web/assets/progress-CwKcXARv.js +6 -0
  297. package/editor-web/assets/props-form-BwZY8ZWd.js +1 -0
  298. package/editor-web/assets/purify.es-B9ve_eFf.js +3 -0
  299. package/editor-web/assets/{quadrantDiagram-D57K4MC3-Xrntfg4j.js → quadrantDiagram-D57K4MC3-BGzRd8iZ.js} +1 -1
  300. package/editor-web/assets/{radar-ABXABTNO-Dwq5qiNw.js → radar-ABXABTNO-C-rmMB0D.js} +1 -1
  301. package/editor-web/assets/{railroad-I3PHUGI6-sIUGWcZh.js → railroad-I3PHUGI6-CvLOq2i8.js} +1 -1
  302. package/editor-web/assets/{railroad-abnf-LNEFI6M7-1rWlT9BX.js → railroad-abnf-LNEFI6M7-DMsb025s.js} +1 -1
  303. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DWdkzEHc.js → railroad-ebnf-DWYD2UWJ-5bvVcIvh.js} +1 -1
  304. package/editor-web/assets/{railroad-peg-JR7BVNR7-CME0JBbV.js → railroad-peg-JR7BVNR7-LKZ9-9ja.js} +1 -1
  305. package/editor-web/assets/{railroadDiagram-Y72NRBL7-Ch4BpP22.js → railroadDiagram-Y72NRBL7-DVBhzkmC.js} +1 -1
  306. package/editor-web/assets/{react-Bk7NnOLX.js → react-Edyoga_4.js} +1 -1
  307. package/editor-web/assets/{requirementDiagram-EQYSW5RA-CgE-x3wN.js → requirementDiagram-EQYSW5RA-B5RyzWna.js} +1 -1
  308. package/editor-web/assets/row-C_svyL8o.js +1 -0
  309. package/editor-web/assets/{sankeyDiagram-SY24JHO5-DBf4G6n3.js → sankeyDiagram-SY24JHO5-BvOJG-gB.js} +1 -1
  310. package/editor-web/assets/schemas-BmdNnDyt.js +1 -0
  311. package/editor-web/assets/{scissors-BURkYWPv.js → scissors-B_xOiUhd.js} +1 -1
  312. package/editor-web/assets/{search-jKDvFIEU.js → search-Ba2BbT6T.js} +1 -1
  313. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-Bz07CoUS.js → sequenceDiagram-BLEHNHQU-BI7-Daqy.js} +1 -1
  314. package/editor-web/assets/{session-CUCSWPTE.js → session-D8E3nUwU.js} +1 -1
  315. package/editor-web/assets/{sigma-CY2Chbro.js → sigma-DSUsJhMn.js} +1 -1
  316. package/editor-web/assets/slides-bj0WJT_G.js +1 -0
  317. package/editor-web/assets/snapshots-CuflsO8Q.js +1 -0
  318. package/editor-web/assets/{sound-DUCxe9eC.js → sound-bTlco_K3.js} +1 -1
  319. package/editor-web/assets/split-BrF9ECYb.js +3 -0
  320. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DuqAmDPP.js → stateDiagram-v2-A6IESKWZ-C01p8WHX.js} +7 -7
  321. package/editor-web/assets/{sticky-note-C5qUDHhC.js → sticky-note-BdkIu5_D.js} +1 -1
  322. package/editor-web/assets/{strikethrough-DP-7tMz0.js → strikethrough-BwXWi4zg.js} +1 -1
  323. package/editor-web/assets/surface-DtCjIlrq.js +1 -0
  324. package/editor-web/assets/svg-CWIBMIQ9.js +1 -0
  325. package/editor-web/assets/swatch-DhztHwPU.js +1 -0
  326. package/editor-web/assets/{swimlanes-B3ENRKFQ-C7sOL6rB.js → swimlanes-B3ENRKFQ-B00P2SqG.js} +1 -1
  327. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-ChmNuO4G.js +8 -0
  328. package/editor-web/assets/switch-8MU4Nfxe.js +1 -0
  329. package/editor-web/assets/{syntax-DSsHrzWF.js → syntax-CU_WPKxt.js} +1 -1
  330. package/editor-web/assets/{table-CTjNpE4W.js → table-DRbddzx0.js} +1 -1
  331. package/editor-web/assets/tabs-CloHB5Z4.js +1 -0
  332. package/editor-web/assets/tag-CIfWT8B_.js +1 -0
  333. package/editor-web/assets/text-align-start-Cic2-TLh.js +1 -0
  334. package/editor-web/assets/textarea-D7TnPwv1.js +1 -0
  335. package/editor-web/assets/{timeline-definition-JXYKGLGB-CaLYz9mc.js → timeline-definition-JXYKGLGB-BIBoOYJY.js} +3 -3
  336. package/editor-web/assets/{treeView-D4JQ5SDB-D1P1Kyxc.js → treeView-D4JQ5SDB-CL6DL8V0.js} +1 -1
  337. package/editor-web/assets/{treemap-SAJKECNS-2YaFL53t.js → treemap-SAJKECNS-CPLGr0WY.js} +1 -1
  338. package/editor-web/assets/{undo-2-DUGGyBdX.js → undo-2-C47jrRp5.js} +1 -1
  339. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-uYdbUhUS.js → usecaseDiagram-WPOLBNNX-L03lK2bO.js} +1 -1
  340. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DHepmX4t.js → vennDiagram-Q3Y3IDCW-B5tKKP_-.js} +3 -3
  341. package/editor-web/assets/{video-Xl-OaXRc.js → video-BWUznyLR.js} +1 -1
  342. package/editor-web/assets/{wardley-7MLQ67FV-Dx0MOPV1.js → wardley-7MLQ67FV-vsBpXT56.js} +1 -1
  343. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BX8ElwDW.js → wardleyDiagram-IVAIDKWA-CMCnVUgh.js} +1 -1
  344. package/editor-web/assets/{whole-word-6DliXke2.js → whole-word-D3ZAtnkw.js} +1 -1
  345. package/editor-web/assets/{words-B2FXYyeZ.js → words-0Ww2RyT4.js} +1 -1
  346. package/editor-web/assets/{words-DFIhHhHF.js → words-XlXG79Ur.js} +1 -1
  347. package/editor-web/assets/workbook-C1QR6Cts.js +45 -0
  348. package/editor-web/assets/x-DlhyIKuu.js +41 -0
  349. package/editor-web/assets/{xychartDiagram-4URNHDU4-DoWQRJUS.js → xychartDiagram-4URNHDU4-C9XkBiEO.js} +1 -1
  350. package/editor-web/assets/{zoom-in-C4lxmIDE.js → zoom-in-PgsC94hP.js} +1 -1
  351. package/editor-web/index.html +8 -6
  352. package/package.json +2 -2
  353. package/editor-web/assets/arrow-down-DzZjFrBL.js +0 -1
  354. package/editor-web/assets/arrow-up-hdmh9LVD.js +0 -1
  355. package/editor-web/assets/article-DHFgHYjv.js +0 -3
  356. package/editor-web/assets/article-Dt9id9Y9.js +0 -7
  357. package/editor-web/assets/button-BVQH7zxz.js +0 -41
  358. package/editor-web/assets/channel-Dkg198L0.js +0 -1
  359. package/editor-web/assets/chart-BC3kUUDD.js +0 -2
  360. package/editor-web/assets/chunk-DSNLSHJZ-BFnyvrWg.js +0 -129
  361. package/editor-web/assets/code-BID_OoRp.js +0 -1
  362. package/editor-web/assets/collaborator-2qfw-8OJ.js +0 -1
  363. package/editor-web/assets/dist-5HNrQ9AU.js +0 -45
  364. package/editor-web/assets/dist-BXJKASX4.js +0 -24
  365. package/editor-web/assets/dist-BeDRTqQ8.js +0 -38
  366. package/editor-web/assets/dist-BlL-4sl3.js +0 -43
  367. package/editor-web/assets/dist-BuqBg8k8.js +0 -1
  368. package/editor-web/assets/dist-BwW08gSh.js +0 -1
  369. package/editor-web/assets/dist-C30Thvb3.js +0 -1
  370. package/editor-web/assets/dist-Cj5AmpVb.js +0 -5
  371. package/editor-web/assets/dist-CjjnDOa8.js +0 -3
  372. package/editor-web/assets/dist-D7ur8721.js +0 -6
  373. package/editor-web/assets/dist-DOHhp09C.js +0 -4
  374. package/editor-web/assets/dist-LhFEYZza.js +0 -16
  375. package/editor-web/assets/flowDiagram-IUGLLWBU-C7ZmHJZW.js +0 -1
  376. package/editor-web/assets/hint-mQB8slJ2.js +0 -1
  377. package/editor-web/assets/index-BGAXezRR.js +0 -28
  378. package/editor-web/assets/index-Br4a-QEv.css +0 -2
  379. package/editor-web/assets/mermaid.core-B8478wZ1.js +0 -44
  380. package/editor-web/assets/minus-D1tgAHbU.js +0 -1
  381. package/editor-web/assets/progress-udl4pNsP.js +0 -6
  382. package/editor-web/assets/props-form-B6mYjTgZ.js +0 -1
  383. package/editor-web/assets/row-dgHEAE7h.js +0 -1
  384. package/editor-web/assets/schemas-B89k2jEC.js +0 -1
  385. package/editor-web/assets/slides-BdaWgL_N.js +0 -1
  386. package/editor-web/assets/snapshots-CTS2iez5.js +0 -56
  387. package/editor-web/assets/split-mDSkdQkd.js +0 -3
  388. package/editor-web/assets/surface-D9qJjJQL.js +0 -1
  389. package/editor-web/assets/svg-nJtFNJ-7.js +0 -1
  390. package/editor-web/assets/swatch-S8YuBYyj.js +0 -1
  391. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CQ2aWYP-.js +0 -8
  392. package/editor-web/assets/switch-D5kPl2jO.js +0 -1
  393. package/editor-web/assets/tabs-C0AHyuE5.js +0 -1
  394. package/editor-web/assets/textarea-mzr9Kfuf.js +0 -1
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{d as t,o as n,s as r,u as i,v as a,y as o}from"./react-Edyoga_4.js";import{Dt as s,Ot as c,ht as l,kt as u,yt as d}from"./x-DlhyIKuu.js";import{t as f}from"./jsx-runtime-DePvh3-m.js";import{i as p}from"./dist-DxcrMrCR.js";import{t as m}from"./audio-lines-PZj77e7t.js";import{t as h}from"./file-exclamation-point-_L3ElCJ5.js";import{p as g}from"./index-BCjGdcPh.js";import{t as _}from"./surface-DtCjIlrq.js";var v=e(o(),1),y=f(),b=d({en:{loading:`Opening the file…`,couldNotOpen:e=>`The file could not be opened: ${e}`,page:(e,t)=>`Page ${String(e)} of ${String(t)}`},"zh-cn":{loading:`正在打开文件…`,couldNotOpen:e=>`无法打开文件:${e}`,page:(e,t)=>`第 ${String(e)} 页,共 ${String(t)} 页`},"zh-tw":{loading:`正在開啟檔案…`,couldNotOpen:e=>`無法開啟檔案:${e}`,page:(e,t)=>`第 ${String(e)} 頁,共 ${String(t)} 頁`},ja:{loading:`ファイルを開いています…`,couldNotOpen:e=>`ファイルを開けませんでした:${e}`,page:(e,t)=>`${String(t)} ページ中 ${String(e)} ページ`},ko:{loading:`파일을 여는 중…`,couldNotOpen:e=>`파일을 열 수 없습니다: ${e}`,page:(e,t)=>`${String(t)}페이지 중 ${String(e)}페이지`},es:{loading:`Abriendo el archivo…`,couldNotOpen:e=>`No se pudo abrir el archivo: ${e}`,page:(e,t)=>`Página ${String(e)} de ${String(t)}`},fr:{loading:`Ouverture du fichier…`,couldNotOpen:e=>`Impossible d’ouvrir le fichier : ${e}`,page:(e,t)=>`Page ${String(e)} sur ${String(t)}`},de:{loading:`Datei wird geöffnet …`,couldNotOpen:e=>`Die Datei konnte nicht geöffnet werden: ${e}`,page:(e,t)=>`Seite ${String(e)} von ${String(t)}`},pt:{loading:`Abrindo o arquivo…`,couldNotOpen:e=>`Não foi possível abrir o arquivo: ${e}`,page:(e,t)=>`Página ${String(e)} de ${String(t)}`}}),x={png:`picture`,jpg:`picture`,jpeg:`picture`,gif:`picture`,webp:`picture`,avif:`picture`,bmp:`picture`,ico:`picture`,svg:`picture`,mp4:`video`,m4v:`video`,mov:`video`,webm:`video`,mp3:`sound`,wav:`sound`,m4a:`sound`,aac:`sound`,ogg:`sound`,oga:`sound`,opus:`sound`,flac:`sound`,pdf:`pdf`},S=Object.keys(x);function C(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?void 0:x[t.slice(n+1).toLowerCase()]}var w=300,T=1200,E=16;async function D(e){let[t,n]=await Promise.all([g(()=>import(`./pdf-BHx8b9rl.js`),[],import.meta.url),g(()=>import(`./pdf.worker.min-DI4FfYVf.js`),[],import.meta.url)]);t.GlobalWorkerOptions.workerSrc=n.default;let r=t.getDocument({url:e});return{pdf:await r.promise,close:()=>r.destroy()}}var O=e=>{let t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height}};function k({pdf:e,number:t,width:n,drawing:r}){let i=(0,v.useRef)(null),[a,o]=(0,v.useState)(),[s,c]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{let r=!0;return e.getPage(t).then(e=>{if(!r)return;let t=e.getViewport({scale:1});o({width:n,height:n*t.height/t.width})}),()=>{r=!1}},[e,t,n]),(0,v.useEffect)(()=>{let e=i.current;if(!e||s)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&c(!0)},{rootMargin:`800px 0px`});return t.observe(e),()=>{t.disconnect()}},[s,a]),(0,v.useEffect)(()=>{let n=i.current;if(!n||!s||!a)return;let o;return r((async()=>{let r=await e.getPage(t),i=window.devicePixelRatio||1,s=r.getViewport({scale:1}),c=r.getViewport({scale:a.width/s.width*i});n.width=Math.round(c.width),n.height=Math.round(c.height);let l=r.render({canvas:n,viewport:c});o=l,await l.promise.catch(()=>void 0)})()),()=>{o?.cancel()}},[e,t,s,a,r]),(0,y.jsx)(`canvas`,{ref:i,"data-page":t,"data-testid":`media-viewer-pdf-page`,className:`border-rule border bg-white`,style:{width:a?.width??n,height:a?.height??n*1.3}})}function A({path:e,url:n,version:i}){let a=b.of(r()?.locale),o=(0,v.useRef)(null),[c,d]=(0,v.useState)(),[f,p]=(0,v.useState)(),[m,h]=(0,v.useState)(0),g=(0,v.useRef)(new Set),_=(0,v.useCallback)(e=>{g.current.add(e),e.finally(()=>g.current.delete(e))},[]);(0,v.useEffect)(()=>{let e=!0,t;return D(n).then(n=>{e?(t=n.close,d(n.pdf)):n.close()},t=>{e&&p(t instanceof Error?t.message:String(t))}),()=>{e=!1,t?.()}},[n]),(0,v.useEffect)(()=>{let e=o.current;if(!e)return;let t=new ResizeObserver(()=>{h(Math.max(0,Math.min(e.clientWidth-32,960)))});return t.observe(e),()=>{t.disconnect()}},[]);let x=()=>[...o.current?.querySelectorAll(`canvas[data-page]`)??[]],S=e=>`page ${e.dataset.page??`?`}`;t({hold:async()=>(await Promise.all([...g.current]),{key:`${e}@${String(i)}`,what:`The PDF ${e}`,source:{path:e}}),locate:t=>{let n=x().filter(e=>u(t,O(e)));return Promise.resolve({elements:n.map(t=>({name:`${S(t)} of the PDF ${e}`,source:{path:e}})),...n.length===0?{}:{where:`on ${n.map(S).join(`, `)}`}})},pick:t=>{let n=x().find(e=>{let n=O(e);return t.x>=n.x&&t.x<=n.x+n.width&&t.y>=n.y&&t.y<=n.y+n.height});return Promise.resolve(n&&{element:{name:`${S(n)} of the PDF ${e}`,source:{path:e}},outline:s(O(n)),where:`on ${S(n)}`})}});let C=Math.min(c?.numPages??0,w),[A,j]=(0,v.useState)(),M=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>()=>{clearTimeout(M.current)},[]),(0,y.jsxs)(`div`,{ref:o,onScroll:()=>{let e=o.current;if(!e)return;let t=e.getBoundingClientRect().top+e.clientHeight/2,n=1;for(let e of x())e.getBoundingClientRect().top<=t&&(n=Number(e.dataset.page));j({at:n,live:!0}),clearTimeout(M.current),M.current=setTimeout(()=>{j(e=>e&&{...e,live:!1})},T)},className:`size-full overflow-auto`,"data-testid":`media-viewer-pdf`,"data-state":f===void 0?c?`open`:`loading`:`error`,children:[(f!==void 0||!c)&&(0,y.jsx)(`p`,{className:`text-lead p-6 text-center text-sm`,children:f===void 0?a.loading:a.couldNotOpen(f)}),(0,y.jsx)(`div`,{className:`flex flex-col items-center`,style:{gap:E,padding:E},children:c&&m>0&&Array.from({length:C},(e,t)=>(0,y.jsx)(k,{pdf:c,number:t+1,width:m,drawing:_},t))}),A&&C>1&&(0,y.jsx)(`p`,{className:l(`bg-background text-lead shadow-overlay pointer-events-none absolute bottom-4 left-1/2 -translate-x-1/2 rounded-md px-2.5 py-1 text-xs tabular-nums motion-safe:transition-opacity`,A.live?`opacity-100`:`opacity-0`),"data-testid":`media-viewer-pdf-page-number`,"aria-live":`polite`,children:a.page(A.at,C)})]})}var j=()=>b.of(r()?.locale);function M(e){let t=n(),[r,i]=(0,v.useState)(0),[a,o]=(0,v.useState)({});return(0,v.useEffect)(()=>{let n=!0,r,a=t.on(`files/changed`,t=>{t.watch===r&&t.changes.some(t=>t.path===e)&&i(e=>e+1)});return t[`files/watch`]({paths:[e]}).then(e=>{n?r=e.watch:t[`files/unwatch`]({watch:e.watch}).catch(()=>void 0)},()=>void 0),()=>{n=!1,a(),r!==void 0&&t[`files/unwatch`]({watch:r}).catch(()=>void 0)}},[t,e]),(0,v.useEffect)(()=>{let n=!0;return t[`files/url`]({path:e}).then(({url:e})=>{if(!n)return;let t=new URL(e,location.href);r>0&&t.searchParams.set(`v`,String(r)),o({url:t.href})},e=>{n&&o({failed:e instanceof Error?e.message:String(e)})}),()=>{n=!1}},[t,e,r]),{url:a.url,version:r,failed:a.failed}}function N(e,t){let n=e.getBoundingClientRect();if(t.width<=0||t.height<=0||n.width<=0)return;let r=Math.min(n.width/t.width,n.height/t.height),i=t.width*r,a=t.height*r;return{x:n.x+(n.width-i)/2,y:n.y+(n.height-a)/2,width:i,height:a}}var P=(e,t)=>e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height;function F({path:e,url:n,version:r}){let i=(0,v.useRef)(null),[a,o]=(0,v.useState)(!1),d=()=>{let e=i.current;if(!e?.complete)return;let t={width:e.naturalWidth,height:e.naturalHeight},n=N(e,t);return n&&{box:n,...t}},f=()=>({name:`the picture ${e}`,source:{path:e}});return t({hold:()=>Promise.resolve({key:`${e}@${String(r)}`,what:`The picture ${e}`,source:{path:e}}),locate:t=>{let n=d();if(!n||!u(t,n.box))return Promise.resolve({elements:[]});let r=n.width/n.box.width,i=e=>({x:(e.x-n.box.x)*r,y:(e.y-n.box.y)*r});return Promise.resolve({elements:[{...f(),regions:[{in:`the picture`,file:e,width:n.width,height:n.height,...c(t,i),scale:r}]}]})},pick:e=>{let t=d();return Promise.resolve(t&&P(e,t.box)?{element:f(),outline:s(t.box)}:void 0)}}),(0,y.jsx)(`div`,{className:l(`size-full`,a?`overflow-auto`:`flex items-center justify-center p-6`),onDoubleClick:()=>{o(e=>!e)},"data-testid":`media-viewer-stage`,"data-size":a?`actual`:`fit`,children:(0,y.jsx)(`img`,{ref:i,src:n,alt:``,draggable:!1,className:l(`select-none`,a?`m-auto block max-w-none p-6`:`size-full object-contain`),"data-testid":`media-viewer-picture`})})}function I({path:e,url:n,version:r}){let o=(0,v.useRef)(null),s=(0,v.useRef)(!1),c=()=>(o.current?.currentTime??0).toFixed(2);return t({hold:()=>Promise.resolve({key:`${e}@${String(r)}`,what:`The video ${e}`,source:{path:e}}),locate:()=>Promise.resolve({elements:[]})}),i({element:()=>o.current,hold:()=>{let e=o.current;return s.current=e!==null&&!e.paused,e?.pause(),Promise.resolve()},release:()=>{s.current&&o.current?.play().catch(()=>void 0),s.current=!1},pictures:()=>{let e=o.current,t=e?a(e):void 0;return Promise.resolve(t?[t]:[])},locate:()=>Promise.resolve({elements:[{name:`the video ${e}`,source:{path:e}}],where:`on the video ${e} at ${c()} s`})}),(0,y.jsx)(`video`,{ref:o,src:n,controls:!0,playsInline:!0,preload:`metadata`,className:`size-full object-contain`,"data-testid":`media-viewer-video`})}function L({path:e,url:n,version:r}){let i=(0,v.useRef)(null),a=(0,v.useRef)(!1);return t({hold:()=>{let t=i.current;return a.current=t!==null&&!t.paused,t?.pause(),Promise.resolve({key:`${e}@${String(r)}`,what:`The sound ${e}`,source:{path:e}})},locate:()=>Promise.resolve({elements:[{name:`the sound ${e}`,source:{path:e}}],where:`at ${(i.current?.currentTime??0).toFixed(2)} s`}),release:()=>{a.current&&i.current?.play().catch(()=>void 0),a.current=!1}}),(0,y.jsxs)(_,{className:`flex w-full max-w-sm flex-col items-center gap-2 p-5 text-center`,children:[(0,y.jsx)(m,{className:`text-lead-soft size-5`,strokeWidth:1.5,"aria-hidden":!0}),(0,y.jsx)(`p`,{className:`text-ink font-serif text-sm font-semibold`,children:e.slice(e.lastIndexOf(`/`)+1)}),(0,y.jsx)(`audio`,{ref:i,src:n,controls:!0,preload:`metadata`,className:`mt-1 w-full`,"data-testid":`media-viewer-sound`})]})}var R={picture:F,video:I,sound:L,pdf:A};function z(){let e=j(),t=r()?.item.entry??``,n=C(t),{url:i,version:a,failed:o}=M(t),s=n===void 0?void 0:R[n];return(0,y.jsxs)(`div`,{className:`flex size-full flex-col`,"data-testid":`media-viewer`,children:[(0,y.jsx)(p,{}),(0,y.jsx)(`div`,{className:l(`bg-stone relative min-h-0 flex-1`,(n===`video`||n===`sound`)&&`flex items-center justify-center p-6`),children:i!==void 0&&s?(0,y.jsx)(s,{path:t,url:i,version:a},i):o===void 0?null:(0,y.jsxs)(`div`,{className:`flex size-full flex-col items-center justify-center gap-2 p-6 text-center`,children:[(0,y.jsx)(h,{className:`text-lead-soft size-5`,strokeWidth:1.5,"aria-hidden":!0}),(0,y.jsx)(`p`,{className:`text-ink font-serif text-sm font-semibold`,children:t.slice(t.lastIndexOf(`/`)+1)}),(0,y.jsx)(`p`,{className:`text-lead text-xs`,children:e.couldNotOpen(o)})]})})]})}export{S as MEDIA_EXTENSIONS,z as MediaViewer,z as default,b as WORDS,C as mediaOf};