agentroam-runtime-darwin-arm64 0.2.0-preview.72 → 0.2.0-preview.73

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 (1008) hide show
  1. package/manifest.json +2 -2
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +9 -9
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +5 -5
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/required-server-files.json +1 -1
  9. package/runtime/.next/routes-manifest.json +1 -1
  10. package/runtime/.next/server/app/_not-found/page.js +1 -1
  11. package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/runtime/.next/server/app/_not-found.html +1 -1
  13. package/runtime/.next/server/app/_not-found.rsc +1 -1
  14. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  16. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  18. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  20. package/runtime/.next/server/app/api/agent/run/route.js +1 -1
  21. package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
  22. package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
  23. package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
  24. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
  25. package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
  26. package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
  27. package/runtime/.next/server/app/api/business/route.js +1 -1
  28. package/runtime/.next/server/app/api/client-logs/route.js +1 -1
  29. package/runtime/.next/server/app/api/collaboration/route.js +9 -9
  30. package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
  31. package/runtime/.next/server/app/api/engine-threads/route.js +1 -0
  32. package/runtime/.next/server/app/api/engine-threads/route.js.nft.json +1 -0
  33. package/runtime/.next/server/app/api/engine-threads.body +1 -0
  34. package/runtime/.next/server/app/api/engine-threads.meta +1 -0
  35. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  36. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  37. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
  38. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  39. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  40. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  41. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  42. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  43. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  44. package/runtime/.next/server/app/api/memory/route.js +1 -1
  45. package/runtime/.next/server/app/api/messaging/route.js +1 -1
  46. package/runtime/.next/server/app/api/messaging/route.js.nft.json +1 -1
  47. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  48. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  49. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  50. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  51. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  52. package/runtime/.next/server/app/api/projects/route.js +1 -1
  53. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  54. package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
  55. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  56. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  57. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  58. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
  59. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
  60. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
  61. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  62. package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -0
  63. package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js.nft.json +1 -0
  64. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  65. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  66. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  67. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  68. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  69. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  70. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js.nft.json +1 -1
  71. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  72. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  73. package/runtime/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  74. package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -0
  75. package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js.nft.json +1 -0
  76. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  77. package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -0
  78. package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js.nft.json +1 -0
  79. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  80. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js.nft.json +1 -1
  81. package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
  82. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  83. package/runtime/.next/server/app/api/settings/route.js +1 -1
  84. package/runtime/.next/server/app/api/skills/route.js +1 -1
  85. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  86. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  87. package/runtime/.next/server/app/api/tools/route.js +1 -1
  88. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  89. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  90. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  91. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  92. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  93. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  94. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  95. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  96. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  97. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  98. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  99. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  100. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  101. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  102. package/runtime/.next/server/app/web/page.js +4 -4
  103. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  104. package/runtime/.next/server/app-paths-manifest.json +47 -43
  105. package/runtime/.next/server/chunks/1614.js +1 -1
  106. package/runtime/.next/server/chunks/5303.js +1 -1
  107. package/runtime/.next/server/chunks/5762.js +18 -0
  108. package/runtime/.next/server/chunks/6977.js +1 -1
  109. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  110. package/runtime/.next/server/pages/404.html +1 -1
  111. package/runtime/.next/server/pages/500.html +1 -1
  112. package/runtime/.next/server/server-reference-manifest.json +1 -1
  113. package/runtime/.next/static/chunks/333-9881c3d2c558a28d.js +1 -0
  114. package/runtime/.next/static/chunks/app/web/{error-36b287ca40eab041.js → error-077f54cd48d5a6c2.js} +1 -1
  115. package/runtime/.next/static/chunks/app/web/layout-ebfc3a207c355453.js +1 -0
  116. package/runtime/.next/static/chunks/app/web/page-b456468be8e8e8fa.js +1 -0
  117. package/runtime/.next/static/chunks/{main-94a733696db11b91.js → main-93c452d518291b1c.js} +1 -1
  118. package/runtime/.next/static/chunks/{main-app-07b9ccbb642d9b9d.js → main-app-20135c1d85680f16.js} +1 -1
  119. package/runtime/lib/web-app-cache.mjs +6 -0
  120. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  121. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  122. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  123. package/runtime/node_modules/.package-lock.json +30 -30
  124. package/runtime/node_modules/@agent/core/dist/index.js +874 -128
  125. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +185 -15
  126. package/runtime/node_modules/@agent/messaging/dist/assets/wecom//351/235/231/346/200/201/350/265/204/346/226/231/350/257/273/345/217/226/350/257/264/346/230/216.md +34 -0
  127. package/runtime/node_modules/@agent/native-runtime/dist/index.js +171 -34
  128. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
  129. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +104 -84
  130. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +78 -67
  131. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0a66n3e7.mjs +16 -0
  132. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0bmnpbz2.mjs +45 -0
  133. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-9je8ee1j.mjs +16 -0
  134. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ds2jqcef.mjs +19 -0
  135. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fxa8mwbm.mjs +18 -0
  136. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gbbw9cgm.mjs +17 -0
  137. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-msnqqcc2.mjs +42 -0
  138. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wadgcjfh.mjs +18 -0
  139. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x20yarwf.mjs +17 -0
  140. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x3hc9abc.mjs +17 -0
  141. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-zg882d22.mjs +16 -0
  142. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
  143. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +23 -23
  144. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +27 -27
  145. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +21 -14
  146. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +96 -85
  147. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  148. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  149. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  150. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  151. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  152. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  153. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  172. package/runtime/node_modules/caniuse-lite/data/features/av2.js +1 -0
  173. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  696. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  697. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  698. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  699. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  700. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  701. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  702. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  703. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  704. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  705. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  706. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  707. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  708. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  709. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  710. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  711. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  712. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  713. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  714. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  715. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  716. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  717. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  718. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  719. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  720. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  721. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  722. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  723. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  724. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  725. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  726. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  727. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  728. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  729. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  730. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  731. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  732. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  733. package/runtime/node_modules/caniuse-lite/data/features.js +1 -1
  734. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  735. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  736. package/runtime/node_modules/graceful-fs/LICENSE.md +55 -0
  737. package/runtime/node_modules/graceful-fs/package.json +3 -4
  738. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +4312 -2466
  739. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +30 -24
  740. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +30 -24
  741. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +4312 -2466
  742. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +4312 -2466
  743. package/runtime/node_modules/mediabunny/dist/modules/shared/aac-misc.js +202 -5
  744. package/runtime/node_modules/mediabunny/dist/modules/shared/bitstream.js +4 -3
  745. package/runtime/node_modules/mediabunny/dist/modules/shared/dts-misc.js +7 -8
  746. package/runtime/node_modules/mediabunny/dist/modules/shared/mp3-misc.js +7 -1
  747. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +60 -41
  748. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-muxer.js +12 -8
  749. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js +39 -5
  750. package/runtime/node_modules/mediabunny/dist/modules/src/codec-data.js +220 -48
  751. package/runtime/node_modules/mediabunny/dist/modules/src/codec.js +80 -54
  752. package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +144 -96
  753. package/runtime/node_modules/mediabunny/dist/modules/src/decode.js +14 -8
  754. package/runtime/node_modules/mediabunny/dist/modules/src/encode.js +22 -9
  755. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js +16 -13
  756. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js +3 -2
  757. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-muxer.js +40 -26
  758. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +129 -115
  759. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-muxer.js +392 -326
  760. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +27 -24
  761. package/runtime/node_modules/mediabunny/dist/modules/src/id3.js +111 -33
  762. package/runtime/node_modules/mediabunny/dist/modules/src/input-format.js +81 -149
  763. package/runtime/node_modules/mediabunny/dist/modules/src/input-track.js +48 -15
  764. package/runtime/node_modules/mediabunny/dist/modules/src/input.js +37 -15
  765. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +104 -21
  766. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +347 -216
  767. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js +11 -2
  768. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +257 -163
  769. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/ebml.js +93 -32
  770. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +193 -99
  771. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-muxer.js +129 -116
  772. package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +216 -136
  773. package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +237 -129
  774. package/runtime/node_modules/mediabunny/dist/modules/src/metadata.js +6 -0
  775. package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +96 -49
  776. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +101 -29
  777. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-muxer.js +18 -9
  778. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js +45 -2
  779. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-writer.js +9 -2
  780. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +253 -254
  781. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-misc.js +5 -10
  782. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +69 -43
  783. package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +11 -1
  784. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js +89 -57
  785. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js +1 -1
  786. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-muxer.js +183 -73
  787. package/runtime/node_modules/mediabunny/dist/modules/src/output-format.js +70 -5
  788. package/runtime/node_modules/mediabunny/dist/modules/src/output.js +54 -29
  789. package/runtime/node_modules/mediabunny/dist/modules/src/packet.js +1 -1
  790. package/runtime/node_modules/mediabunny/dist/modules/src/resample.js +1 -0
  791. package/runtime/node_modules/mediabunny/dist/modules/src/sample.js +85 -42
  792. package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +40 -21
  793. package/runtime/node_modules/mediabunny/dist/modules/src/source.js +188 -88
  794. package/runtime/node_modules/mediabunny/dist/modules/src/subtitles.js +15 -9
  795. package/runtime/node_modules/mediabunny/dist/modules/src/target.js +63 -39
  796. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  797. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  798. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js +77 -41
  799. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-muxer.js +83 -20
  800. package/runtime/node_modules/mediabunny/dist/modules/src/writer.js +4 -1
  801. package/runtime/node_modules/mediabunny/package.json +5 -4
  802. package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +76 -47
  803. package/runtime/node_modules/mediabunny/src/adts/adts-muxer.ts +13 -11
  804. package/runtime/node_modules/mediabunny/src/adts/adts-reader.ts +54 -5
  805. package/runtime/node_modules/mediabunny/src/codec-data.ts +249 -52
  806. package/runtime/node_modules/mediabunny/src/codec.ts +85 -58
  807. package/runtime/node_modules/mediabunny/src/conversion.ts +161 -94
  808. package/runtime/node_modules/mediabunny/src/decode.ts +15 -8
  809. package/runtime/node_modules/mediabunny/src/encode.ts +23 -14
  810. package/runtime/node_modules/mediabunny/src/flac/flac-demuxer.ts +21 -20
  811. package/runtime/node_modules/mediabunny/src/flac/flac-misc.ts +3 -2
  812. package/runtime/node_modules/mediabunny/src/flac/flac-muxer.ts +44 -29
  813. package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +161 -129
  814. package/runtime/node_modules/mediabunny/src/hls/hls-muxer.ts +453 -379
  815. package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +35 -24
  816. package/runtime/node_modules/mediabunny/src/id3.ts +123 -35
  817. package/runtime/node_modules/mediabunny/src/input-format.ts +86 -170
  818. package/runtime/node_modules/mediabunny/src/input-track.ts +57 -17
  819. package/runtime/node_modules/mediabunny/src/input.ts +41 -17
  820. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +118 -21
  821. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +435 -253
  822. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-misc.ts +13 -4
  823. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +318 -191
  824. package/runtime/node_modules/mediabunny/src/matroska/ebml.ts +91 -38
  825. package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +212 -103
  826. package/runtime/node_modules/mediabunny/src/matroska/matroska-muxer.ts +155 -148
  827. package/runtime/node_modules/mediabunny/src/media-sink.ts +229 -146
  828. package/runtime/node_modules/mediabunny/src/media-source.ts +263 -141
  829. package/runtime/node_modules/mediabunny/src/metadata.ts +7 -1
  830. package/runtime/node_modules/mediabunny/src/misc.ts +122 -54
  831. package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +121 -33
  832. package/runtime/node_modules/mediabunny/src/mp3/mp3-muxer.ts +16 -12
  833. package/runtime/node_modules/mediabunny/src/mp3/mp3-reader.ts +66 -2
  834. package/runtime/node_modules/mediabunny/src/mp3/mp3-writer.ts +11 -2
  835. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +295 -325
  836. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-misc.ts +5 -14
  837. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +90 -51
  838. package/runtime/node_modules/mediabunny/src/muxer.ts +14 -1
  839. package/runtime/node_modules/mediabunny/src/ogg/ogg-demuxer.ts +92 -62
  840. package/runtime/node_modules/mediabunny/src/ogg/ogg-misc.ts +1 -1
  841. package/runtime/node_modules/mediabunny/src/ogg/ogg-muxer.ts +203 -88
  842. package/runtime/node_modules/mediabunny/src/output-format.ts +91 -7
  843. package/runtime/node_modules/mediabunny/src/output.ts +57 -30
  844. package/runtime/node_modules/mediabunny/src/packet.ts +1 -1
  845. package/runtime/node_modules/mediabunny/src/resample.ts +1 -0
  846. package/runtime/node_modules/mediabunny/src/sample.ts +105 -51
  847. package/runtime/node_modules/mediabunny/src/segmented-input.ts +50 -24
  848. package/runtime/node_modules/mediabunny/src/source.ts +227 -97
  849. package/runtime/node_modules/mediabunny/src/subtitles.ts +16 -9
  850. package/runtime/node_modules/mediabunny/src/target.ts +65 -41
  851. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  852. package/runtime/node_modules/mediabunny/src/wave/wave-demuxer.ts +103 -56
  853. package/runtime/node_modules/mediabunny/src/wave/wave-muxer.ts +88 -21
  854. package/runtime/node_modules/mediabunny/src/writer.ts +4 -1
  855. package/runtime/node_modules/sanitize-html/index.js +50 -20
  856. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +6 -4
  857. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/map-generator.js +12 -2
  858. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
  859. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/tokenize.js +6 -13
  860. package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +1 -1
  861. package/runtime/node_modules/sanitize-html/package.json +1 -1
  862. package/runtime/node_modules/ws/lib/websocket-server.js +3 -0
  863. package/runtime/node_modules/ws/lib/websocket.js +38 -7
  864. package/runtime/node_modules/ws/package.json +1 -1
  865. package/runtime/package-lock.json +54 -54
  866. package/runtime/server.js +1 -1
  867. package/runtime/webapp/dist/assets/AIHubView-BQKD1oRa.js +1 -0
  868. package/runtime/webapp/dist/assets/AgentManager-eTCpLsYc.js +3 -0
  869. package/runtime/webapp/dist/assets/{AiHubPane-DBuhzcId.js → AiHubPane-LnfAKHOH.js} +1 -1
  870. package/runtime/webapp/dist/assets/App-Cm4c_ukZ.js +177 -0
  871. package/runtime/webapp/dist/assets/BrowserLivePanel-BvXuMltx.js +56 -0
  872. package/runtime/webapp/dist/assets/CollaborationCreateDialog-0xwWJVAB.js +1 -0
  873. package/runtime/webapp/dist/assets/CollaborationDashboard-CDuqbRZZ.js +1 -0
  874. package/runtime/webapp/dist/assets/CollaborationPage-BLv1g5Ke.js +6 -0
  875. package/runtime/webapp/dist/assets/{FilePreview-CkY_jNql.js → FilePreview-DIsjFx4f.js} +9 -14
  876. package/runtime/webapp/dist/assets/FileTree-BJe67ELr.js +11 -0
  877. package/runtime/webapp/dist/assets/FileWorkspaceDrawer-PtNe21oN.js +1 -0
  878. package/runtime/webapp/dist/assets/FlowStudioPane-DGv9czqf.js +5 -0
  879. package/runtime/webapp/dist/assets/LSPServerList-DZkbA5NX.js +4 -0
  880. package/runtime/webapp/dist/assets/MCPServerList-DLJUT0j8.js +8 -0
  881. package/runtime/webapp/dist/assets/MemoryViewer-B4synV6O.js +1 -0
  882. package/runtime/webapp/dist/assets/RemoteDesktopPage-Db8WVCjo.js +1 -0
  883. package/runtime/webapp/dist/assets/{RunningSessionsIcon-BbgfV3Y9.js → RunningSessionsIcon-DRhO-CVq.js} +1 -1
  884. package/runtime/webapp/dist/assets/SessionDashboard-C6En31sg.js +21 -0
  885. package/runtime/webapp/dist/assets/{SessionDashboardBridge-DEUcW6SI.js → SessionDashboardBridge--lNIU1u6.js} +1 -1
  886. package/runtime/webapp/dist/assets/SettingsPanel-mJ5Ggwlp.js +4 -0
  887. package/runtime/webapp/dist/assets/SkillManager-C_mt62Rc.js +1 -0
  888. package/runtime/webapp/dist/assets/{TerminalPane-BLqkE0Sr.js → TerminalPane-D121NsSc.js} +2 -2
  889. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DeYUTKWn.js → abnfDiagram-VCTEODGH-CSTtPfA-.js} +1 -1
  890. package/runtime/webapp/dist/assets/arc-pE43fNGK.js +1 -0
  891. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-CuFeRT7v.js → architectureDiagram-5GKGNRK7-BlExjf1L.js} +1 -1
  892. package/runtime/webapp/dist/assets/{arrow-right-CBoNjLZc.js → arrow-right-CED95s1t.js} +1 -1
  893. package/runtime/webapp/dist/assets/{artifact-links-DPEFlv87.js → artifact-links-BWD7xpfV.js} +1 -1
  894. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-CSQFiZW1.js → blockDiagram-I7D4REHJ-4pzU0s_A.js} +1 -1
  895. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Dp0yNsZN.js → c4Diagram-7LVT6UL2-DBoJHf0c.js} +1 -1
  896. package/runtime/webapp/dist/assets/channel-C029kbz3.js +1 -0
  897. package/runtime/webapp/dist/assets/{chevron-down-DqV6YJGE.js → chevron-down-DuxUTH_N.js} +1 -1
  898. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-HGRodfIv.js → chunk-2Q5K7J3B-Bu1Sc-w9.js} +1 -1
  899. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CBrQNVFD.js → chunk-5VM5RSS4-COwAF0w2.js} +1 -1
  900. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-DB6uGYpD.js → chunk-F27PBJKO-FLl8DRP2.js} +1 -1
  901. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-Dedjjkdt.js → chunk-IMKFNOWR-BL8M_b-w.js} +3 -3
  902. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CFqPSTPh.js → chunk-JWPE2WC7-Bm0OpXaO.js} +1 -1
  903. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-3acvfPpy.js → chunk-POPQ4Y6H-Be_mjw7_.js} +1 -1
  904. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-Bn9tMxLG.js → chunk-SVP7TREG-Dijp9l1U.js} +3 -3
  905. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BjPHa9Ep.js → chunk-TICWLB2K-CJDtjon2.js} +1 -1
  906. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-pSIpAtkj.js → chunk-XXDRQBXY-BLWOMtvS.js} +1 -1
  907. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-DjlcT9EO.js +1 -0
  908. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-DjlcT9EO.js +1 -0
  909. package/runtime/webapp/dist/assets/{codeSyntax-Bs__ElW1.js → codeSyntax-BnmCqa8x.js} +3 -3
  910. package/runtime/webapp/dist/assets/{collaboration-xcnZxf7i.js → collaboration-B0sTZDns.js} +1 -1
  911. package/runtime/webapp/dist/assets/composer-file-routing-BrWLenKF.js +11 -0
  912. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Cc1ea8TO.js → cose-bilkent-JH36ORCC-cA67vOKJ.js} +1 -1
  913. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-B2IeHhVa.js → cynefin-OW5HDTMX-BPeSii-l.js} +1 -1
  914. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-BeZhQnWx.js → cynefinDiagram-5FMLGOSQ-B9f094pg.js} +2 -2
  915. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DF08UpVJ.js → dagre-GXQ25YYZ-C_xejuzH.js} +2 -2
  916. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Cx_tPRJp.js → diagram-S7CK7UJ4-0f77MjI_.js} +1 -1
  917. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Cb6fFvJt.js → diagram-UQ7AKVKN-B7qqB6UY.js} +1 -1
  918. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-CvuweBru.js → diagram-VSXAHHWV-eS0I06tX.js} +1 -1
  919. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BYouVdoe.js → diagram-VX7I27RA-BzaPvwZL.js} +1 -1
  920. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-DRBjsxYw.js → diagram-Z3DM3KII-C_EAUyuK.js} +1 -1
  921. package/runtime/webapp/dist/assets/download-DNa5KRtu.js +6 -0
  922. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CxHOPzwg.js → ebnfDiagram-PWID7BFC-CpSazgmq.js} +1 -1
  923. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-tUK9K8ZD.js → erDiagram-RLTQ6QDP-BbAq4dnX.js} +1 -1
  924. package/runtime/webapp/dist/assets/{external-link-DpecT7Vm.js → external-link-D0ZU8y72.js} +1 -1
  925. package/runtime/webapp/dist/assets/{file-types-CfFmgvNi.js → file-types-Bv8xIlsm.js} +9 -4
  926. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BFd8shzR.js → flowDiagram-HODETNUW-FxtiM8S_.js} +5 -5
  927. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js → ganttDiagram-EL5Y4UJY-vbQAmYA_.js} +2 -2
  928. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-L22kw422.js → gitGraphDiagram-WWUBYQGX-CoH-vS6p.js} +1 -1
  929. package/runtime/webapp/dist/assets/{image-plus-Bzr6FXFm.js → image-plus-CMQPwQ1a.js} +1 -1
  930. package/runtime/webapp/dist/assets/{index-C165MF0E.js → index-B_qrzBSm.js} +48 -48
  931. package/runtime/webapp/dist/assets/index-DFMBt4EW.css +1 -0
  932. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-DBrWW4hh.js → infoDiagram-27XIBGKW-BhQjKjwI.js} +1 -1
  933. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-BiQERurn.js → ishikawaDiagram-5VMMS53U-Do6164Lq.js} +1 -1
  934. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-CbuOAsvy.js → journeyDiagram-3NMN7TZE-DU9terNG.js} +1 -1
  935. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BS0cpYtD.js → kanban-definition-UXKFOSKX-PIi78bMz.js} +5 -5
  936. package/runtime/webapp/dist/assets/layout-kIcBLq12.js +1 -0
  937. package/runtime/webapp/dist/assets/{linear-DOnDPVCl.js → linear-DuoGw6Ne.js} +1 -1
  938. package/runtime/webapp/dist/assets/{loader-circle-DzxGeGeP.js → loader-circle-CkN6rr8Q.js} +1 -1
  939. package/runtime/webapp/dist/assets/{mermaid.core-CIbk74HW.js → mermaid.core-CMSVAwDO.js} +6 -6
  940. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BXA3aIva.js → mindmap-definition-YA3MSWOX-BqXezPt8.js} +1 -1
  941. package/runtime/webapp/dist/assets/page-BJynASYd.js +91 -0
  942. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-oUTq5zGX.js → pegDiagram-XKGWAZYB-CfhSiKuL.js} +1 -1
  943. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-D6dTu0HJ.js +39 -0
  944. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-BDJl9Tah.js → quadrantDiagram-AXDQQJYC-B6Nk3my2.js} +2 -2
  945. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-BCu1VCKA.js → railroadDiagram-O6MQD6OU-9HdWlkSi.js} +1 -1
  946. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CqUIqsRU.js → requirementDiagram-BXWQKSXE-CJ72A4ch.js} +1 -1
  947. package/runtime/webapp/dist/assets/{rotate-ccw-Bjr9jTxM.js → rotate-ccw-CFOlggPt.js} +1 -1
  948. package/runtime/webapp/dist/assets/{rotate-cw-A1YTnj9Q.js → rotate-cw-CV6TU7ho.js} +1 -1
  949. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-DaveIjpG.js → sankeyDiagram-P5KCCOFB-B0k_-2GA.js} +1 -1
  950. package/runtime/webapp/dist/assets/{send-BEl9srBG.js → send-Br8F4frT.js} +1 -1
  951. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-C7zRgFw8.js → sequenceDiagram-WJ2MYXX4-D-Vubzl4.js} +1 -1
  952. package/runtime/webapp/dist/assets/session-dashboard-B_G9IZRa.js +6 -0
  953. package/runtime/webapp/dist/assets/{shield-check-C79GaqpX.js → shield-check-C_XCddHW.js} +1 -1
  954. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-BKOrYnP1.js → sizeCapture-INFHLROL-CDLZ64va.js} +1 -1
  955. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-D55B47_M.js +1 -0
  956. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DhVWnu4U.js +1 -0
  957. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-CbDMTwgn.js → swimlanes-42K2YHIH-FSX6VCzY.js} +1 -1
  958. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-B677Rs5I.js +8 -0
  959. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CanMvfCK.js → timeline-definition-24CTP7MA-DGmgxtYO.js} +1 -1
  960. package/runtime/webapp/dist/assets/{trash-2-RnFgAyKW.js → trash-2-Drt7yRIe.js} +10 -5
  961. package/runtime/webapp/dist/assets/{types-DguAd3Ud.js → types-BOD4WqhS.js} +1 -1
  962. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CR-V0-y3.js → vennDiagram-4TSXK5OY-XbldOddh.js} +1 -1
  963. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CjTtvx6s.js → wardleyDiagram-VM6X3IG4-DrGMS-oH.js} +1 -1
  964. package/runtime/webapp/dist/assets/{web-DPag1EjS.js → web-Crv8v2xB.js} +1 -1
  965. package/runtime/webapp/dist/assets/{web-DedGjdA8.js → web-DQg6oOed.js} +1 -1
  966. package/runtime/webapp/dist/assets/{x-Bx8qOEL4.js → x-8eDWe1V2.js} +1 -1
  967. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-D2959gYR.js → xychartDiagram-S5SC5T6Z-BClf-jGf.js} +1 -1
  968. package/runtime/webapp/dist/assets/zoom-out-CKWUyj9b.js +21 -0
  969. package/runtime/webapp/dist/index.html +2 -2
  970. package/runtime/ws-server.mjs +3 -6
  971. package/runtime/.next/server/chunks/1973.js +0 -1
  972. package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +0 -1
  973. package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +0 -1
  974. package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +0 -1
  975. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +0 -45
  976. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +0 -34
  977. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +0 -18
  978. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +0 -17
  979. package/runtime/node_modules/graceful-fs/LICENSE +0 -15
  980. package/runtime/webapp/dist/assets/App-D3-qxUjs.js +0 -187
  981. package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +0 -76
  982. package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +0 -1
  983. package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +0 -16
  984. package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +0 -11
  985. package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +0 -5
  986. package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +0 -6
  987. package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +0 -7
  988. package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +0 -1
  989. package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +0 -1
  990. package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +0 -16
  991. package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +0 -1
  992. package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +0 -6
  993. package/runtime/webapp/dist/assets/channel-CcOPsanj.js +0 -1
  994. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +0 -1
  995. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +0 -1
  996. package/runtime/webapp/dist/assets/index-IYQjHlQx.css +0 -1
  997. package/runtime/webapp/dist/assets/layout-C6lzLyIZ.js +0 -1
  998. package/runtime/webapp/dist/assets/page-oP1ftgSe.js +0 -91
  999. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-CES_HFyS.js +0 -39
  1000. package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +0 -6
  1001. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-Cz_WH93D.js +0 -1
  1002. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +0 -1
  1003. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +0 -8
  1004. package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +0 -11
  1005. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → fg72y0mrQ518VXPNOLU1t}/_buildManifest.js +0 -0
  1006. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → fg72y0mrQ518VXPNOLU1t}/_ssgManifest.js +0 -0
  1007. /package/runtime/webapp/dist/assets/{use-error-notice-CAYVDT8Z.css → SessionDashboard-CAYVDT8Z.css} +0 -0
  1008. /package/runtime/webapp/dist/assets/{SessionDashboard-D3n4eFut.css → session-dashboard-D3n4eFut.css} +0 -0
@@ -6,8 +6,8 @@
6
6
  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7
7
  */
8
8
  import { SAMPLES_PER_AAC_FRAME } from '../adts/adts-demuxer.js';
9
- import { MAX_ADTS_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader.js';
10
- import { aacChannelMap, aacFrequencyTable } from '../../shared/aac-misc.js';
9
+ import { MAX_ADTS_FRAME_HEADER_SIZE, MIN_ADTS_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader.js';
10
+ import { aacChannelMap, aacFrequencyTable, getAacProgramConfigElementChannelCount, readAdtsProgramConfigElement, } from '../../shared/aac-misc.js';
11
11
  import { extractAudioCodecString, extractVideoCodecString, } from '../codec.js';
12
12
  import { AC3_ACMOD_CHANNEL_COUNTS, AC3_SAMPLES_PER_FRAME, AvcNalUnitType, determineVideoPacketType, extractAvcDecoderConfigurationRecord, extractHevcDecoderConfigurationRecord, EAC3_NUMBLKS_TABLE, getEac3ChannelCount, getEac3SampleRate, HevcNalUnitType, parseAc3SyncFrame, parseAvcSps, parseEac3SyncFrame, parseHevcSps, AC3_FRAME_SIZES, extractNalUnitTypeForAvc, extractNalUnitTypeForHevc, parseDtsFrame, parseDtsCoreFrameHeader, parseDtsExssHeader, DTS_CORE_FRAME_HEADER_SIZE, DTS_EXSS_HEADER_PREFIX_SIZE, DTS_EXSS_MAX_HEADER_SIZE, } from '../codec-data.js';
13
13
  import { Demuxer } from '../demuxer.js';
@@ -101,16 +101,19 @@ export class MpegTsDemuxer extends Demuxer {
101
101
  currentPos += this.packetStride;
102
102
  continue;
103
103
  }
104
- const section = await this.readSection(currentPos, true, !hasProgramMap);
104
+ const isElementaryStreamPid = this.elementaryStreams.some(x => x.pid === packetHeader.pid);
105
+ const section = await this.readSection(currentPos, !isElementaryStreamPid, !hasProgramMap);
105
106
  if (!section) {
106
107
  break;
107
108
  }
108
- const BYTES_BEFORE_SECTION_LENGTH = 3;
109
109
  const BITS_IN_CRC_32 = 32; // Duh
110
- // Some streams don't contain a PAT for some reason, so we must do some guesswork to figure out where
111
- // the PMT is.
112
- let isProbablyProgramMap = false;
113
- if (!hasProgramMap && section.pid !== 0) {
110
+ // Some streams don't contain a PAT for some reason, so as long as we haven't seen one, we must do some
111
+ // guesswork to figure out where the PMT is. Either way, the PMT PID may also carry private sections, so
112
+ // the table ID tells us it's the PMT.
113
+ let isProgramMap = false;
114
+ if (!hasProgramMap
115
+ && section.pid !== 0
116
+ && (programMapPid === null || section.pid === programMapPid)) {
114
117
  const isPesPacket = section.payload[0] === 0x00 && section.payload[1] === 0x00 && section.payload[2] === 0x01;
115
118
  if (!isPesPacket) {
116
119
  // Assume it's a PSI
@@ -118,7 +121,7 @@ export class MpegTsDemuxer extends Demuxer {
118
121
  const pointerField = bitstream.readAlignedByte();
119
122
  bitstream.skipBits(8 * pointerField);
120
123
  const tableId = bitstream.readBits(8);
121
- isProbablyProgramMap = tableId === 0x02; // 0x02 == TS_program_map_section
124
+ isProgramMap = tableId === 0x02; // 0x02 == TS_program_map_section
122
125
  }
123
126
  }
124
127
  if (section.pid === 0 && !hasProgramAssociationTable) {
@@ -127,8 +130,9 @@ export class MpegTsDemuxer extends Demuxer {
127
130
  bitstream.skipBits(8 * pointerField);
128
131
  bitstream.skipBits(14);
129
132
  const sectionLength = bitstream.readBits(10);
133
+ const sectionEndPos = bitstream.pos + 8 * sectionLength;
130
134
  bitstream.skipBits(40);
131
- while (8 * (sectionLength + BYTES_BEFORE_SECTION_LENGTH) - bitstream.pos > BITS_IN_CRC_32) {
135
+ while (sectionEndPos - bitstream.pos > BITS_IN_CRC_32) {
132
136
  const programNumber = bitstream.readBits(16);
133
137
  bitstream.skipBits(3); // Reserved
134
138
  const id = bitstream.readBits(13);
@@ -146,12 +150,13 @@ export class MpegTsDemuxer extends Demuxer {
146
150
  }
147
151
  hasProgramAssociationTable = true;
148
152
  }
149
- else if ((section.pid === programMapPid || isProbablyProgramMap) && !hasProgramMap) {
153
+ else if (isProgramMap) {
150
154
  const bitstream = new Bitstream(section.payload);
151
155
  const pointerField = bitstream.readAlignedByte();
152
156
  bitstream.skipBits(8 * pointerField);
153
157
  bitstream.skipBits(12);
154
158
  const sectionLength = bitstream.readBits(12);
159
+ const sectionEndPos = bitstream.pos + 8 * sectionLength;
155
160
  bitstream.skipBits(43);
156
161
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
157
162
  const pcrPid = bitstream.readBits(13);
@@ -175,7 +180,7 @@ export class MpegTsDemuxer extends Demuxer {
175
180
  bitstream.pos = descriptorEndPos;
176
181
  }
177
182
  bitstream.pos = programInfoEndPos;
178
- while (8 * (sectionLength + BYTES_BEFORE_SECTION_LENGTH) - bitstream.pos > BITS_IN_CRC_32) {
183
+ while (sectionEndPos - bitstream.pos > BITS_IN_CRC_32) {
179
184
  const streamType = bitstream.readBits(8);
180
185
  bitstream.skipBits(3);
181
186
  const elementaryPid = bitstream.readBits(13);
@@ -341,14 +346,18 @@ export class MpegTsDemuxer extends Demuxer {
341
346
  else {
342
347
  const elementaryStream = this.elementaryStreams.find(x => x.pid === section.pid);
343
348
  outer: if (elementaryStream && !elementaryStream.initialized) {
344
- const pesPacket = readPesPacket(this, section, true);
345
- if (!pesPacket) {
349
+ const pesPacketHeader = readPesPacketHeader(this, section, true);
350
+ if (!pesPacketHeader) {
346
351
  throw new Error(`Couldn't read first PES packet for Elementary Stream with PID ${elementaryStream.pid}`);
347
352
  }
348
353
  elementaryStream.firstSection = section;
349
354
  elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
350
355
  if (this.input._initInput) {
351
356
  const initDemuxer = (await this.input._initInput._getDemuxer());
357
+ if (initDemuxer.constructor !== MpegTsDemuxer) {
358
+ throw new Error('Init input must match the input\'s format.');
359
+ }
360
+ await initDemuxer.readMetadata();
352
361
  const matchingStream = initDemuxer.elementaryStreams.find(x => (x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized));
353
362
  if (matchingStream) {
354
363
  elementaryStream.info = matchingStream.info;
@@ -356,7 +365,7 @@ export class MpegTsDemuxer extends Demuxer {
356
365
  break outer; // We have the stream info, we're done
357
366
  }
358
367
  }
359
- const context = new PacketReadingContext(elementaryStream, pesPacket);
368
+ const context = new PacketReadingContext(elementaryStream, section.startPos);
360
369
  if (elementaryStream.info.type === 'video') {
361
370
  // We loop because in some files, the video parameters are not in the first packet
362
371
  while (true) {
@@ -449,6 +458,7 @@ export class MpegTsDemuxer extends Demuxer {
449
458
  colorSpace: elementaryStream.info.colorSpace,
450
459
  avcType: 1,
451
460
  avcCodecInfo: elementaryStream.info.avcCodecInfo,
461
+ hevcType: 'hev1',
452
462
  hevcCodecInfo: elementaryStream.info.hevcCodecInfo,
453
463
  vp9CodecInfo: null,
454
464
  av1CodecInfo: null,
@@ -483,8 +493,23 @@ export class MpegTsDemuxer extends Demuxer {
483
493
  isMpeg2: false,
484
494
  objectType: header.objectType,
485
495
  };
486
- elementaryStream.info.numberOfChannels
487
- = aacChannelMap[header.channelConfiguration];
496
+ if (header.channelConfiguration === 0) {
497
+ // The channel layout comes from the PCE at the start of the frame's raw data block
498
+ const headerSize = header.crcCheck === null
499
+ ? MIN_ADTS_FRAME_HEADER_SIZE
500
+ : MAX_ADTS_FRAME_HEADER_SIZE;
501
+ const result = readAdtsProgramConfigElement(context.suppliedPacket.data.subarray(headerSize, header.frameLength));
502
+ if (!result) {
503
+ throw new Error('Invalid AAC audio stream; ADTS frames with channel configuration 0 must'
504
+ + ' begin with a program config element.');
505
+ }
506
+ elementaryStream.info.numberOfChannels
507
+ = getAacProgramConfigElementChannelCount(result.programConfigElement);
508
+ }
509
+ else {
510
+ elementaryStream.info.numberOfChannels
511
+ = aacChannelMap[header.channelConfiguration];
512
+ }
488
513
  elementaryStream.info.sampleRate
489
514
  = aacFrequencyTable[header.samplingFrequencyIndex];
490
515
  }
@@ -604,15 +629,15 @@ export class MpegTsDemuxer extends Demuxer {
604
629
  break;
605
630
  }
606
631
  if (!firstPacket) {
607
- if (packet.payloadUnitStartIndicator === 0) {
608
- break;
609
- }
632
+ assert(packet.payloadUnitStartIndicator === 1); // Callers only start sections at such packets
610
633
  firstPacket = packet;
611
634
  }
612
635
  else {
613
636
  if (packet.pid !== firstPacket.pid) {
614
637
  if (contiguous) {
615
- break; // End of section
638
+ // The section may well continue after the foreign packets, so this isn't necessarily its end
639
+ mustAddSectionEnd = false;
640
+ break;
616
641
  }
617
642
  else {
618
643
  continue; // Ignore this packet
@@ -677,7 +702,6 @@ export class MpegTsDemuxer extends Demuxer {
677
702
  }
678
703
  return {
679
704
  startPos,
680
- endPos: full ? endPos : null,
681
705
  pid: firstPacket.pid,
682
706
  payload: merged,
683
707
  randomAccessIndicator,
@@ -796,39 +820,10 @@ const readPesPacketHeader = (demuxer, section, expectPts) => {
796
820
  }
797
821
  return {
798
822
  sectionStartPos: section.startPos,
799
- sectionEndPos: section.endPos,
800
823
  pts,
801
824
  randomAccessIndicator: section.randomAccessIndicator,
802
825
  };
803
826
  };
804
- const readPesPacket = (demuxer, section, expectPts) => {
805
- assert(section.endPos !== null); // Can only read full PES packets from fully read sections
806
- const header = readPesPacketHeader(demuxer, section, expectPts);
807
- if (!header) {
808
- return null;
809
- }
810
- const bitstream = new Bitstream(section.payload);
811
- bitstream.skipBits(32);
812
- const pesPacketLength = bitstream.readBits(16);
813
- const BYTES_UNTIL_END_OF_PES_PACKET_LENGTH = 6;
814
- bitstream.skipBits(16);
815
- const pesHeaderDataLength = bitstream.readBits(8);
816
- const pesHeaderEndPos = bitstream.pos + 8 * pesHeaderDataLength;
817
- bitstream.pos = pesHeaderEndPos;
818
- const bytePos = pesHeaderEndPos / 8;
819
- assert(Number.isInteger(bytePos));
820
- const data = section.payload.subarray(bytePos,
821
- // "A value of 0 indicates that the PES packet length is neither specified nor bounded and is allowed only in
822
- // PES packets whose payload consists of bytes from a video elementary stream contained in
823
- // transport stream packets."
824
- pesPacketLength > 0
825
- ? BYTES_UNTIL_END_OF_PES_PACKET_LENGTH + pesPacketLength
826
- : section.payload.byteLength);
827
- return {
828
- ...header,
829
- data,
830
- };
831
- };
832
827
  class MpegTsTrackBacking {
833
828
  constructor(elementaryStream) {
834
829
  this.elementaryStream = elementaryStream;
@@ -836,9 +831,6 @@ class MpegTsTrackBacking {
836
831
  /** Used for recreating PacketBuffers if necessary. */
837
832
  this.packetSectionStarts = new WeakMap();
838
833
  }
839
- getId() {
840
- return this.elementaryStream.pid;
841
- }
842
834
  getNumber() {
843
835
  const demuxer = this.elementaryStream.demuxer;
844
836
  const trackType = this.elementaryStream.info.type;
@@ -911,9 +903,7 @@ class MpegTsTrackBacking {
911
903
  async getFirstPacket(options) {
912
904
  const section = this.elementaryStream.firstSection;
913
905
  assert(section);
914
- const pesPacket = readPesPacket(this.elementaryStream.demuxer, section, true);
915
- assert(pesPacket);
916
- const context = new PacketReadingContext(this.elementaryStream, pesPacket);
906
+ const context = new PacketReadingContext(this.elementaryStream, section.startPos);
917
907
  const buffer = new PacketBuffer(this, context);
918
908
  const result = await buffer.readNext();
919
909
  if (!result) {
@@ -927,13 +917,13 @@ class MpegTsTrackBacking {
927
917
  async getNextPacket(packet, options) {
928
918
  let buffer = this.packetBuffers.get(packet);
929
919
  if (buffer) {
930
- // Fast path
920
+ // Remove PacketBuffer access from the old packet, it belongs to the next packet now. Remove it before any
921
+ // async to prevent races
922
+ this.packetBuffers.delete(packet);
931
923
  const result = await buffer.readNext();
932
924
  if (!result) {
933
925
  return null;
934
926
  }
935
- // Remove PacketBuffer access from the old packet, it belongs to the next packet now
936
- this.packetBuffers.delete(packet);
937
927
  const newPacket = this.createEncodedPacket(result.packet, result.duration, options);
938
928
  this.packetBuffers.set(newPacket, buffer);
939
929
  this.packetSectionStarts.set(newPacket, result.packet.sectionStartPos);
@@ -945,11 +935,26 @@ class MpegTsTrackBacking {
945
935
  throw new Error('Packet was not created from this track.');
946
936
  }
947
937
  const demuxer = this.elementaryStream.demuxer;
948
- const section = await demuxer.readSection(sectionStartPos, true);
949
- assert(section);
950
- const pesPacket = readPesPacket(demuxer, section, true);
951
- assert(pesPacket);
952
- const context = new PacketReadingContext(this.elementaryStream, pesPacket);
938
+ // Rewind by reorderSize PES packets, since the reordering (and with it the packet durations) depends on the
939
+ // packets decoded before this one
940
+ let startPos = sectionStartPos;
941
+ let pesPacketsToRewind = this.getReorderSize();
942
+ let pos = sectionStartPos - demuxer.packetStride;
943
+ while (pesPacketsToRewind > 0 && pos >= demuxer.packetOffset) {
944
+ const packetHeader = await demuxer.readPacketHeader(pos);
945
+ assert(packetHeader);
946
+ if (packetHeader.pid === this.elementaryStream.pid && packetHeader.payloadUnitStartIndicator === 1) {
947
+ const pesSection = await demuxer.readSection(pos, false);
948
+ assert(pesSection);
949
+ const pesHeader = readPesPacketHeader(demuxer, pesSection, false);
950
+ if (pesHeader && pesHeader.pts !== null) {
951
+ startPos = pos;
952
+ pesPacketsToRewind--;
953
+ }
954
+ }
955
+ pos -= demuxer.packetStride;
956
+ }
957
+ const context = new PacketReadingContext(this.elementaryStream, startPos);
953
958
  buffer = new PacketBuffer(this, context);
954
959
  // Advance until we pass the current packet's sequence number
955
960
  const targetSequenceNumber = packet.sequenceNumber;
@@ -996,7 +1001,7 @@ class MpegTsTrackBacking {
996
1001
  const demuxer = this.elementaryStream.demuxer;
997
1002
  const { reader, seekChunkSize } = demuxer;
998
1003
  const pid = this.elementaryStream.pid;
999
- const findFirstPesPacketHeaderInChunk = async (startPos, endPos, readSectionInFull) => {
1004
+ const findFirstPesPacketHeaderInChunk = async (startPos, endPos) => {
1000
1005
  let currentPos = startPos;
1001
1006
  while (currentPos < endPos) {
1002
1007
  const packetHeader = await demuxer.readPacketHeader(currentPos);
@@ -1004,16 +1009,13 @@ class MpegTsTrackBacking {
1004
1009
  return null;
1005
1010
  }
1006
1011
  if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
1007
- const section = await demuxer.readSection(currentPos, readSectionInFull);
1012
+ const section = await demuxer.readSection(currentPos, false);
1008
1013
  if (!section) {
1009
1014
  return null;
1010
1015
  }
1011
1016
  const pesPacketHeader = readPesPacketHeader(demuxer, section, false);
1012
1017
  if (pesPacketHeader && pesPacketHeader.pts !== null) {
1013
- return {
1014
- pesPacketHeader: pesPacketHeader,
1015
- section,
1016
- };
1018
+ return pesPacketHeader;
1017
1019
  }
1018
1020
  }
1019
1021
  currentPos += demuxer.packetStride;
@@ -1025,10 +1027,6 @@ class MpegTsTrackBacking {
1025
1027
  assert(firstSection);
1026
1028
  const firstPesPacketHeader = readPesPacketHeader(demuxer, firstSection, true);
1027
1029
  assert(firstPesPacketHeader);
1028
- if (searchPts < firstPesPacketHeader.pts) {
1029
- // We're before the first packet, definitely nothing here
1030
- return null;
1031
- }
1032
1030
  let scanStartPos;
1033
1031
  const referencePesPackets = this.elementaryStream.referencePesPackets;
1034
1032
  const referencePointIndex = binarySearchLessOrEqual(referencePesPackets, searchPts, x => x.pts);
@@ -1039,7 +1037,10 @@ class MpegTsTrackBacking {
1039
1037
  }
1040
1038
  else {
1041
1039
  let startChunkIndex = 0;
1042
- if (reader.fileSize !== null) {
1040
+ if (reader.fileSize !== null
1041
+ // Packets presented before the first PES packet can only be leading frames right after it (think open
1042
+ // GOPs), so those don't need any searching
1043
+ && searchPts >= firstPesPacketHeader.pts) {
1043
1044
  const numChunks = Math.ceil(reader.fileSize / seekChunkSize);
1044
1045
  if (numChunks > 1) {
1045
1046
  // Binary search to find the chunk with highest index whose first PES has pts <= searchPts
@@ -1051,13 +1052,13 @@ class MpegTsTrackBacking {
1051
1052
  const chunkStartPos = floorToMultiple(mid * seekChunkSize, demuxer.packetStride)
1052
1053
  + firstPesPacketHeader.sectionStartPos;
1053
1054
  const chunkEndPos = chunkStartPos + seekChunkSize;
1054
- const result = await findFirstPesPacketHeaderInChunk(chunkStartPos, chunkEndPos, false);
1055
- if (!result) {
1055
+ const pesPacketHeader = await findFirstPesPacketHeaderInChunk(chunkStartPos, chunkEndPos);
1056
+ if (!pesPacketHeader) {
1056
1057
  // No PES packet found in this chunk, search left
1057
1058
  high = mid - 1;
1058
1059
  continue;
1059
1060
  }
1060
- if (result.pesPacketHeader.pts <= searchPts) {
1061
+ if (pesPacketHeader.pts <= searchPts) {
1061
1062
  // This chunk's first PES is <= searchPts, it's a candidate
1062
1063
  startChunkIndex = mid;
1063
1064
  low = mid + 1; // Search right
@@ -1072,20 +1073,14 @@ class MpegTsTrackBacking {
1072
1073
  scanStartPos = floorToMultiple(startChunkIndex * seekChunkSize, demuxer.packetStride) + firstPesPacketHeader.sectionStartPos;
1073
1074
  }
1074
1075
  // Find the first PES packet at or after scanStartPos
1075
- const result = await findFirstPesPacketHeaderInChunk(scanStartPos, reader.fileSize ?? Infinity, false);
1076
- let currentPesHeader = result?.pesPacketHeader ?? null;
1076
+ let currentPesHeader = await findFirstPesPacketHeaderInChunk(scanStartPos, reader.fileSize ?? Infinity);
1077
1077
  if (!currentPesHeader) {
1078
1078
  // Fall back to first packet
1079
1079
  currentPesHeader = firstPesPacketHeader;
1080
1080
  }
1081
1081
  const reorderSize = this.getReorderSize();
1082
1082
  const retrieveEncodedPacket = async (sectionStartPos, predicate) => {
1083
- // Load the relevant section in full
1084
- const section = await demuxer.readSection(sectionStartPos, true);
1085
- assert(section);
1086
- const pesPacket = readPesPacket(demuxer, section, true);
1087
- assert(pesPacket);
1088
- const context = new PacketReadingContext(this.elementaryStream, pesPacket);
1083
+ const context = new PacketReadingContext(this.elementaryStream, sectionStartPos);
1089
1084
  const buffer = new PacketBuffer(this, context);
1090
1085
  // Advance until the top-most presentation timestamp crosses or equals searchPts
1091
1086
  while (true) {
@@ -1103,12 +1098,8 @@ class MpegTsTrackBacking {
1103
1098
  return null;
1104
1099
  }
1105
1100
  const targetPacket = buffer.presentationOrderPackets[targetIndex];
1106
- const lastDuration = targetIndex === 0
1107
- ? 0
1108
- : targetPacket.pts - buffer.presentationOrderPackets[targetIndex - 1].pts;
1109
1101
  // Pop packets in decode order until we hit the target packet
1110
1102
  buffer.decodeOrderPackets.splice(0, buffer.decodeOrderPackets.indexOf(targetPacket));
1111
- buffer.lastDuration = lastDuration; // Kinda ugly but necessary fix
1112
1103
  const result = await buffer.readNext();
1113
1104
  assert(result);
1114
1105
  const packet = this.createEncodedPacket(result.packet, result.duration, options);
@@ -1145,10 +1136,11 @@ class MpegTsTrackBacking {
1145
1136
  currentPos += demuxer.packetStride;
1146
1137
  }
1147
1138
  }
1148
- // Rewind by reorderSize + 1 PES packets (even for audio! To ensure proper durations)
1139
+ // Rewind by reorderSize + 1 PES packets (even for audio! To ensure proper durations), but never past the
1140
+ // track's first PES packet, since anything before it isn't part of the track
1149
1141
  outer: for (let i = 0; i < reorderSize + 1; i++) {
1150
1142
  let pos = currentPesHeader.sectionStartPos - demuxer.packetStride;
1151
- while (pos >= demuxer.packetOffset) {
1143
+ while (pos >= firstPesPacketHeader.sectionStartPos) {
1152
1144
  const packetHeader = await demuxer.readPacketHeader(pos);
1153
1145
  if (!packetHeader) {
1154
1146
  break outer;
@@ -1165,8 +1157,8 @@ class MpegTsTrackBacking {
1165
1157
  }
1166
1158
  pos -= demuxer.packetStride;
1167
1159
  }
1168
- if (pos < demuxer.packetOffset) {
1169
- break; // We've hit the start of the file, there's nothing more to rewind
1160
+ if (pos < firstPesPacketHeader.sectionStartPos) {
1161
+ break; // We've hit the track's first PES packet, there's nothing more to rewind
1170
1162
  }
1171
1163
  }
1172
1164
  return retrieveEncodedPacket(currentPesHeader.sectionStartPos, p => p.pts <= searchPts);
@@ -1176,20 +1168,15 @@ class MpegTsTrackBacking {
1176
1168
  // means we might need to search the previous chunks until we find something.
1177
1169
  let currentChunkStartPos = scanStartPos;
1178
1170
  let nextChunkStartPos = null; // "next" as in later in the file, even tho we scan backwards
1179
- const readSectionsInFull = !this.elementaryStream.canBeTrustedWithKeyPackets;
1180
1171
  while (true) {
1181
1172
  let bestKeyPesHeader = null;
1182
1173
  const isFirstChunk = currentChunkStartPos <= firstPesPacketHeader.sectionStartPos;
1183
1174
  let pesHeader;
1184
- let pesHeaderSection = null;
1185
1175
  if (isFirstChunk) {
1186
1176
  pesHeader = firstPesPacketHeader;
1187
- pesHeaderSection = firstSection;
1188
1177
  }
1189
1178
  else {
1190
- const result = await findFirstPesPacketHeaderInChunk(currentChunkStartPos, nextChunkStartPos ?? reader.fileSize ?? Infinity, readSectionsInFull);
1191
- pesHeader = result?.pesPacketHeader ?? null;
1192
- pesHeaderSection = result?.section ?? null;
1179
+ pesHeader = await findFirstPesPacketHeaderInChunk(currentChunkStartPos, nextChunkStartPos ?? reader.fileSize ?? Infinity);
1193
1180
  }
1194
1181
  let passedSearchPts = false;
1195
1182
  let lookaheadCount = 0;
@@ -1205,12 +1192,7 @@ class MpegTsTrackBacking {
1205
1192
  isKeyPacket = pesHeader.randomAccessIndicator === 1;
1206
1193
  }
1207
1194
  else {
1208
- if (!context) {
1209
- assert(pesHeaderSection);
1210
- const pesPacket = readPesPacket(demuxer, pesHeaderSection, true);
1211
- assert(pesPacket);
1212
- context = new PacketReadingContext(this.elementaryStream, pesPacket);
1213
- }
1195
+ context ??= new PacketReadingContext(this.elementaryStream, pesHeader.sectionStartPos);
1214
1196
  // Advance to the first packet that starts in this PES packet
1215
1197
  while (!context.suppliedPacket
1216
1198
  || context.suppliedPacket.sectionStartPos < pesHeader.sectionStartPos) {
@@ -1245,12 +1227,11 @@ class MpegTsTrackBacking {
1245
1227
  break outer; // End of file
1246
1228
  }
1247
1229
  if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
1248
- const section = await demuxer.readSection(currentPos, readSectionsInFull);
1230
+ const section = await demuxer.readSection(currentPos, false);
1249
1231
  if (section) {
1250
1232
  const nextPesHeader = readPesPacketHeader(demuxer, section, false);
1251
1233
  if (nextPesHeader && nextPesHeader.pts !== null) {
1252
1234
  pesHeader = nextPesHeader;
1253
- pesHeaderSection = section;
1254
1235
  maybeInsertReferencePacket(this.elementaryStream, pesHeader);
1255
1236
  break;
1256
1237
  }
@@ -1263,15 +1244,15 @@ class MpegTsTrackBacking {
1263
1244
  let startPesHeader = bestKeyPesHeader;
1264
1245
  if (lookaheadCount === 0) {
1265
1246
  // Packet is at the end of stream, let's rewind a little to obtain the correct packet duration
1266
- outer: for (let i = 0; i < reorderSize; i++) {
1247
+ outer: for (let i = 0; i < reorderSize + 1; i++) {
1267
1248
  let pos = startPesHeader.sectionStartPos - demuxer.packetStride;
1268
- while (pos >= demuxer.packetOffset) {
1249
+ while (pos >= firstPesPacketHeader.sectionStartPos) {
1269
1250
  const packetHeader = await demuxer.readPacketHeader(pos);
1270
1251
  if (!packetHeader) {
1271
1252
  break outer;
1272
1253
  }
1273
1254
  if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
1274
- const section = await demuxer.readSection(pos, readSectionsInFull);
1255
+ const section = await demuxer.readSection(pos, false);
1275
1256
  if (section) {
1276
1257
  const header = readPesPacketHeader(demuxer, section, false);
1277
1258
  if (header && header.pts !== null) {
@@ -1282,8 +1263,8 @@ class MpegTsTrackBacking {
1282
1263
  }
1283
1264
  pos -= demuxer.packetStride;
1284
1265
  }
1285
- if (pos < demuxer.packetOffset) {
1286
- break; // We've hit the start of the file, there's nothing more to rewind
1266
+ if (pos < firstPesPacketHeader.sectionStartPos) {
1267
+ break; // We've hit the track's first PES packet, there's nothing more to rewind
1287
1268
  }
1288
1269
  }
1289
1270
  }
@@ -1372,6 +1353,7 @@ class MpegTsAudioTrackBacking extends MpegTsTrackBacking {
1372
1353
  const maybeInsertReferencePacket = (elementaryStream, pesPacketHeader) => {
1373
1354
  const referencePesPackets = elementaryStream.referencePesPackets;
1374
1355
  const index = binarySearchLessOrEqual(referencePesPackets, pesPacketHeader.sectionStartPos, x => x.sectionStartPos);
1356
+ const minByteDistance = elementaryStream.demuxer.minReferencePointByteDistance;
1375
1357
  if (index >= 0) {
1376
1358
  // Since pts and file position don't necessarily have a monotonic relationship (since pts can go crazy),
1377
1359
  // let's see if inserting at the given index would violate the pts order. If so, return.
@@ -1379,27 +1361,24 @@ const maybeInsertReferencePacket = (elementaryStream, pesPacketHeader) => {
1379
1361
  if (pesPacketHeader.pts <= entry.pts) {
1380
1362
  return false;
1381
1363
  }
1382
- const minByteDistance = elementaryStream.demuxer.minReferencePointByteDistance;
1383
1364
  if (pesPacketHeader.sectionStartPos - entry.sectionStartPos < minByteDistance) {
1384
1365
  // Too close
1385
1366
  return false;
1386
1367
  }
1387
- if (index < referencePesPackets.length - 1) {
1388
- const nextEntry = referencePesPackets[index + 1];
1389
- if (nextEntry.pts < pesPacketHeader.pts) {
1390
- // Out of order
1391
- return false;
1392
- }
1393
- if (nextEntry.sectionStartPos - pesPacketHeader.sectionStartPos < minByteDistance) {
1394
- // Too close
1395
- return false;
1396
- }
1368
+ }
1369
+ if (index < referencePesPackets.length - 1) {
1370
+ const nextEntry = referencePesPackets[index + 1];
1371
+ if (nextEntry.pts < pesPacketHeader.pts) {
1372
+ // Out of order
1373
+ return false;
1374
+ }
1375
+ if (nextEntry.sectionStartPos - pesPacketHeader.sectionStartPos < minByteDistance) {
1376
+ // Too close
1377
+ return false;
1397
1378
  }
1398
1379
  }
1399
- // Copy only the header fields (callers may pass a whole PES packet)
1400
1380
  referencePesPackets.splice(index + 1, 0, {
1401
1381
  sectionStartPos: pesPacketHeader.sectionStartPos,
1402
- sectionEndPos: pesPacketHeader.sectionEndPos,
1403
1382
  pts: pesPacketHeader.pts,
1404
1383
  randomAccessIndicator: pesPacketHeader.randomAccessIndicator,
1405
1384
  });
@@ -1407,19 +1386,25 @@ const maybeInsertReferencePacket = (elementaryStream, pesPacketHeader) => {
1407
1386
  };
1408
1387
  /** Stateful context used to extract exact encoded packets from the underlying data stream. */
1409
1388
  class PacketReadingContext {
1410
- constructor(elementaryStream, startingPesPacket) {
1411
- this.currentPos = 0; // Relative to the data in startingPesPacket
1412
- this.pesPackets = [];
1413
- this.currentPesPacketIndex = 0;
1414
- this.currentPesPacketPos = 0;
1389
+ constructor(elementaryStream, pesPacketStartPos) {
1390
+ this.reachedEnd = false;
1391
+ this.isInPesPacket = false;
1392
+ this.pesHeaderBytesLeft = 0;
1393
+ this.pesDataBytesLeft = 0;
1394
+ // Positions are relative to `pesPacketStartPos`
1395
+ this.currentPos = 0;
1415
1396
  this.endPos = 0;
1397
+ this.scratch = new Uint8Array(2 ** 16);
1398
+ this.scratchStartPos = 0;
1399
+ this.pesPackets = [];
1400
+ this.pesPacketDataStartPositions = [];
1416
1401
  this.lastSuppliedPesPacket = null;
1417
1402
  this.nextPts = null;
1418
1403
  this.suppliedPacket = null;
1419
1404
  this.elementaryStream = elementaryStream;
1420
1405
  this.pid = elementaryStream.pid;
1421
1406
  this.demuxer = elementaryStream.demuxer;
1422
- this.startingPesPacket = startingPesPacket;
1407
+ this.nextTsPacketPos = pesPacketStartPos;
1423
1408
  }
1424
1409
  ensureBuffered(length) {
1425
1410
  const remaining = this.endPos - this.currentPos;
@@ -1429,118 +1414,85 @@ class PacketReadingContext {
1429
1414
  return this.bufferData(length - remaining)
1430
1415
  .then(() => Math.min(this.endPos - this.currentPos, length));
1431
1416
  }
1432
- getCurrentPesPacket() {
1433
- const packet = this.pesPackets[this.currentPesPacketIndex];
1434
- assert(packet);
1435
- return packet;
1436
- }
1437
1417
  async bufferData(length) {
1438
1418
  const targetEndPos = this.endPos + length;
1439
- while (this.endPos < targetEndPos) {
1440
- let pesPacket;
1441
- if (this.pesPackets.length === 0) {
1442
- pesPacket = this.startingPesPacket;
1419
+ // Data is taken in one TS packet at a time
1420
+ while (this.endPos < targetEndPos && !this.reachedEnd) {
1421
+ const pos = this.nextTsPacketPos;
1422
+ const packet = await this.demuxer.readPacket(pos);
1423
+ if (!packet) {
1424
+ this.reachedEnd = true;
1425
+ break;
1443
1426
  }
1444
- else {
1445
- // Find the next PES packet
1446
- let currentPos = last(this.pesPackets).sectionEndPos;
1447
- assert(currentPos !== null);
1448
- while (true) {
1449
- const packetHeader = await this.demuxer.readPacketHeader(currentPos);
1450
- if (!packetHeader) {
1451
- return;
1452
- }
1453
- if (packetHeader.pid === this.pid) {
1454
- const nextSection = await this.demuxer.readSection(currentPos, true);
1455
- if (!nextSection) {
1456
- return;
1457
- }
1458
- const nextPesPacket = readPesPacket(this.demuxer, nextSection, false);
1459
- if (nextPesPacket) {
1460
- pesPacket = nextPesPacket;
1461
- break;
1462
- }
1463
- }
1464
- currentPos += this.demuxer.packetStride;
1427
+ this.nextTsPacketPos += this.demuxer.packetStride;
1428
+ if (packet.pid !== this.pid) {
1429
+ continue;
1430
+ }
1431
+ if (packet.payloadUnitStartIndicator === 1) {
1432
+ this.isInPesPacket = false;
1433
+ const section = await this.demuxer.readSection(pos, false);
1434
+ assert(section);
1435
+ const header = readPesPacketHeader(this.demuxer, section, false);
1436
+ if (!header) {
1437
+ continue; // Not a PES packet we can use, so skip over its whole section
1465
1438
  }
1439
+ const bitstream = new Bitstream(section.payload);
1440
+ bitstream.skipBits(32);
1441
+ const pesPacketLength = bitstream.readBits(16);
1442
+ const BYTES_UNTIL_END_OF_PES_PACKET_LENGTH = 6;
1443
+ bitstream.skipBits(16);
1444
+ const pesHeaderDataLength = bitstream.readBits(8);
1445
+ this.pesHeaderBytesLeft = bitstream.pos / 8 + pesHeaderDataLength;
1446
+ // "A value of 0 indicates that the PES packet length is neither specified nor bounded and is allowed
1447
+ // only in PES packets whose payload consists of bytes from a video elementary stream contained in
1448
+ // transport stream packets."
1449
+ this.pesDataBytesLeft = pesPacketLength > 0
1450
+ ? Math.max(BYTES_UNTIL_END_OF_PES_PACKET_LENGTH + pesPacketLength - this.pesHeaderBytesLeft, 0)
1451
+ : Infinity;
1452
+ this.isInPesPacket = true;
1453
+ this.pesPackets.push(header);
1454
+ this.pesPacketDataStartPositions.push(this.endPos);
1455
+ }
1456
+ if (!this.isInPesPacket || !(packet.adaptationFieldControl & 0b01)) {
1457
+ continue;
1466
1458
  }
1467
- this.pesPackets.push(pesPacket);
1468
- this.endPos += pesPacket.data.byteLength;
1459
+ const body = packet.body;
1460
+ let start = packet.adaptationFieldControl & 0b10 ? 1 + body[0] : 0;
1461
+ const skippedHeaderBytes = Math.min(this.pesHeaderBytesLeft, Math.max(body.byteLength - start, 0));
1462
+ this.pesHeaderBytesLeft -= skippedHeaderBytes;
1463
+ start += skippedHeaderBytes;
1464
+ // Anything past the declared PES packet length is stuffing
1465
+ const end = Math.min(body.byteLength, start + this.pesDataBytesLeft);
1466
+ if (end <= start) {
1467
+ continue;
1468
+ }
1469
+ const byteCount = end - start;
1470
+ this.pesDataBytesLeft -= byteCount;
1471
+ const scratchLength = this.endPos - this.scratchStartPos;
1472
+ if (scratchLength + byteCount > this.scratch.byteLength) {
1473
+ const scratch = new Uint8Array(2 * this.scratch.byteLength);
1474
+ scratch.set(this.scratch.subarray(0, scratchLength));
1475
+ this.scratch = scratch;
1476
+ }
1477
+ this.scratch.set(body.subarray(start, end), scratchLength);
1478
+ this.endPos += byteCount;
1469
1479
  }
1470
1480
  }
1471
1481
  readBytes(length) {
1472
- const currentPesPacket = this.getCurrentPesPacket();
1473
- const relativeStartOffset = this.currentPos - this.currentPesPacketPos;
1474
- const relativeEndOffset = relativeStartOffset + length;
1482
+ const start = this.currentPos - this.scratchStartPos;
1475
1483
  this.currentPos += length;
1476
- if (relativeEndOffset <= currentPesPacket.data.byteLength) {
1477
- // Request can be satisfied with one PES packet
1478
- return currentPesPacket.data.subarray(relativeStartOffset, relativeEndOffset);
1479
- }
1480
- // Data spans multiple PES packets, we must do some merging
1481
- const result = new Uint8Array(length);
1482
- result.set(currentPesPacket.data.subarray(relativeStartOffset));
1483
- let offset = currentPesPacket.data.byteLength - relativeStartOffset;
1484
- while (true) {
1485
- this.advanceCurrentPacket();
1486
- const currentPesPacket = this.getCurrentPesPacket();
1487
- const relativeEndOffset = length - offset;
1488
- if (relativeEndOffset <= currentPesPacket.data.byteLength) {
1489
- result.set(currentPesPacket.data.subarray(0, relativeEndOffset), offset);
1490
- break;
1491
- }
1492
- result.set(currentPesPacket.data, offset);
1493
- offset += currentPesPacket.data.byteLength;
1494
- }
1495
- return result;
1484
+ return this.scratch.subarray(start, start + length);
1496
1485
  }
1497
1486
  readU8() {
1498
- let currentPesPacket = this.getCurrentPesPacket();
1499
- const relativeOffset = this.currentPos - this.currentPesPacketPos;
1500
- this.currentPos++;
1501
- if (relativeOffset < currentPesPacket.data.byteLength) {
1502
- return currentPesPacket.data[relativeOffset];
1503
- }
1504
- // Skip over PES packets without any data
1505
- do {
1506
- this.advanceCurrentPacket();
1507
- currentPesPacket = this.getCurrentPesPacket();
1508
- } while (currentPesPacket.data.byteLength === 0);
1509
- return currentPesPacket.data[0];
1487
+ return this.scratch[this.currentPos++ - this.scratchStartPos];
1510
1488
  }
1511
1489
  seekTo(pos) {
1512
- if (pos === this.currentPos) {
1513
- return;
1514
- }
1515
- if (pos < this.currentPos) {
1516
- while (pos < this.currentPesPacketPos) {
1517
- // Move to the previous PES packet
1518
- this.currentPesPacketIndex--;
1519
- const currentPacket = this.getCurrentPesPacket();
1520
- this.currentPesPacketPos -= currentPacket.data.byteLength;
1521
- }
1522
- }
1523
- else {
1524
- while (true) {
1525
- // Move to the next PES packet
1526
- const currentPesPacket = this.getCurrentPesPacket();
1527
- const currentEndPos = this.currentPesPacketPos + currentPesPacket.data.byteLength;
1528
- if (pos < currentEndPos) {
1529
- break;
1530
- }
1531
- this.currentPesPacketPos += currentPesPacket.data.byteLength;
1532
- this.currentPesPacketIndex++;
1533
- }
1534
- }
1490
+ assert(pos >= this.scratchStartPos);
1535
1491
  this.currentPos = pos;
1536
1492
  }
1537
1493
  skip(n) {
1538
1494
  this.seekTo(this.currentPos + n);
1539
1495
  }
1540
- advanceCurrentPacket() {
1541
- this.currentPesPacketPos += this.getCurrentPesPacket().data.byteLength;
1542
- this.currentPesPacketIndex++;
1543
- }
1544
1496
  async markNextPacket() {
1545
1497
  assert(!this.suppliedPacket);
1546
1498
  const elementaryStream = this.elementaryStream;
@@ -1602,13 +1554,9 @@ class PacketReadingContext {
1602
1554
  packetStartPos ??= startCodePos;
1603
1555
  const nalHeaderStart = i + startCodeLength;
1604
1556
  const payloadStart = nalHeaderStart + nalHeaderSize;
1605
- // Bytes peeked from the start of a slice header to decode first_mb_in_slice. Six bytes (48 bits)
1606
- // comfortably covers the exp-Golomb code for any realistic macroblock count
1607
- const AVC_SLICE_HEADER_PEEK_SIZE = 6;
1608
1557
  // We read the NAL header plus, for slices, the start of the slice header to decode the
1609
- // first_mb_in_slice / first_slice_segment_in_pic_flag. Make sure all of it is buffered.
1610
- const bytesNeeded = payloadStart + (codec === 'avc' ? AVC_SLICE_HEADER_PEEK_SIZE : 1);
1611
- if (bytesNeeded > length) {
1558
+ // first_mb_in_slice / first_slice_segment_in_pic_flag. Make sure at least a byte of it is there.
1559
+ if (payloadStart + 1 > length) {
1612
1560
  this.seekTo(posBeforeZero);
1613
1561
  break;
1614
1562
  }
@@ -1639,8 +1587,8 @@ class PacketReadingContext {
1639
1587
  // VCL slices: 0..RASL_R, plus the IRAP range BLA_W_LP..CRA_NUT
1640
1588
  isSlice = nalUnitType <= HevcNalUnitType.RASL_R
1641
1589
  || (nalUnitType >= HevcNalUnitType.BLA_W_LP && nalUnitType <= 21);
1642
- // VPS..FD, prefix SEI, and the reserved/unspecified non-VCL ranges
1643
- isAccessUnitStart = (nalUnitType >= HevcNalUnitType.VPS_NUT && nalUnitType <= 37)
1590
+ // VPS..AUD, prefix SEI, and the reserved/unspecified non-VCL ranges
1591
+ isAccessUnitStart = (nalUnitType >= HevcNalUnitType.VPS_NUT && nalUnitType <= 35)
1644
1592
  || nalUnitType === HevcNalUnitType.PREFIX_SEI_NUT
1645
1593
  || (nalUnitType >= 41 && nalUnitType <= 44)
1646
1594
  || (nalUnitType >= 48 && nalUnitType <= 55);
@@ -1650,8 +1598,20 @@ class PacketReadingContext {
1650
1598
  if (isSlice) {
1651
1599
  let startsNewPicture;
1652
1600
  if (codec === 'avc') {
1653
- const headerBytes = chunk.subarray(payloadStart, payloadStart + AVC_SLICE_HEADER_PEEK_SIZE);
1654
- const firstMacroblockInSlice = readExpGolomb(new Bitstream(headerBytes));
1601
+ // first_mb_in_slice may not be fully buffered yet, in which case reading it either runs
1602
+ // past the end (where Bitstream reads zeros) or throws from all those zeros
1603
+ const bitstream = new Bitstream(chunk.subarray(payloadStart));
1604
+ let firstMacroblockInSlice;
1605
+ try {
1606
+ firstMacroblockInSlice = readExpGolomb(bitstream);
1607
+ }
1608
+ catch {
1609
+ firstMacroblockInSlice = null;
1610
+ }
1611
+ if (firstMacroblockInSlice === null || bitstream.getBitsLeft() < 0) {
1612
+ this.seekTo(posBeforeZero);
1613
+ break;
1614
+ }
1655
1615
  startsNewPicture = !frameStartFound || firstMacroblockInSlice <= lastFirstMacroblockInSlice;
1656
1616
  lastFirstMacroblockInSlice = firstMacroblockInSlice;
1657
1617
  }
@@ -1725,7 +1685,7 @@ class PacketReadingContext {
1725
1685
  let remaining = this.ensureBuffered(header.frameLength);
1726
1686
  if (isThenable(remaining))
1727
1687
  remaining = await remaining;
1728
- return this.supplyPacket(remaining, Math.round(SAMPLES_PER_AAC_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate));
1688
+ return this.supplyPacket(remaining, SAMPLES_PER_AAC_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate);
1729
1689
  }
1730
1690
  else {
1731
1691
  this.seekTo(possibleHeaderStartPos + 1);
@@ -1753,7 +1713,7 @@ class PacketReadingContext {
1753
1713
  remaining = await remaining;
1754
1714
  const duration = result.header.audioSamplesInFrame * MPEG_TS_TIMESCALE
1755
1715
  / elementaryStream.info.sampleRate;
1756
- return this.supplyPacket(remaining, Math.round(duration));
1716
+ return this.supplyPacket(remaining, duration);
1757
1717
  }
1758
1718
  else {
1759
1719
  this.seekTo(possibleHeaderStartPos + 1);
@@ -1791,7 +1751,7 @@ class PacketReadingContext {
1791
1751
  remaining = this.ensureBuffered(frameSize);
1792
1752
  if (isThenable(remaining))
1793
1753
  remaining = await remaining;
1794
- const duration = Math.round(AC3_SAMPLES_PER_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate);
1754
+ const duration = AC3_SAMPLES_PER_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
1795
1755
  return this.supplyPacket(remaining, duration);
1796
1756
  }
1797
1757
  else if (codec === 'eac3') {
@@ -1813,17 +1773,38 @@ class PacketReadingContext {
1813
1773
  continue;
1814
1774
  }
1815
1775
  const frmsiz = ((headerBytes[2] & 0x07) << 8) | headerBytes[3];
1816
- const frameSize = (frmsiz + 1) * 2;
1776
+ let frameSize = (frmsiz + 1) * 2;
1817
1777
  const fscod = headerBytes[4] >> 6;
1818
1778
  const numblkscod = fscod === 3 ? 3 : (headerBytes[4] >> 4) & 0x03;
1819
1779
  const numblks = EAC3_NUMBLKS_TABLE[numblkscod];
1780
+ // Dependent substreams extend the frame before them to more channels, so they're part of its
1781
+ // access unit
1782
+ while (true) {
1783
+ this.seekTo(possibleSyncPos);
1784
+ const neededBytes = frameSize + 4;
1785
+ let remaining = this.ensureBuffered(neededBytes);
1786
+ if (isThenable(remaining))
1787
+ remaining = await remaining;
1788
+ if (remaining < neededBytes) {
1789
+ break;
1790
+ }
1791
+ this.seekTo(possibleSyncPos + frameSize);
1792
+ const nextHeaderBytes = this.readBytes(4);
1793
+ if (nextHeaderBytes[0] !== 0x0b
1794
+ || nextHeaderBytes[1] !== 0x77
1795
+ || (nextHeaderBytes[2] >> 6) !== 1 // strmtyp of a dependent substream
1796
+ ) {
1797
+ break;
1798
+ }
1799
+ frameSize += 2 * ((((nextHeaderBytes[2] & 0x07) << 8) | nextHeaderBytes[3]) + 1);
1800
+ }
1820
1801
  this.seekTo(possibleSyncPos);
1821
1802
  remaining = this.ensureBuffered(frameSize);
1822
1803
  if (isThenable(remaining))
1823
1804
  remaining = await remaining;
1824
1805
  // Duration = numblks * 256 samples per block
1825
1806
  const samplesPerFrame = numblks * 256;
1826
- const duration = Math.round(samplesPerFrame * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate);
1807
+ const duration = samplesPerFrame * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
1827
1808
  return this.supplyPacket(remaining, duration);
1828
1809
  }
1829
1810
  else if (codec === 'dts') {
@@ -1889,7 +1870,7 @@ class PacketReadingContext {
1889
1870
  remaining = this.ensureBuffered(frameSize);
1890
1871
  if (isThenable(remaining))
1891
1872
  remaining = await remaining;
1892
- const duration = Math.round(sampleCount * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate);
1873
+ const duration = sampleCount * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
1893
1874
  return this.supplyPacket(remaining, duration);
1894
1875
  }
1895
1876
  else {
@@ -1904,7 +1885,10 @@ class PacketReadingContext {
1904
1885
  }
1905
1886
  /** Supplies the context with a new encoded packet, beginning at the current position. */
1906
1887
  supplyPacket(packetLength, intrinsicDuration) {
1907
- const currentPesPacket = this.getCurrentPesPacket();
1888
+ const pesPacketIndex = findLastIndex(this.pesPacketDataStartPositions, x => x <= this.currentPos);
1889
+ assert(pesPacketIndex !== -1);
1890
+ const currentPesPacket = this.pesPackets[pesPacketIndex];
1891
+ const currentPesPacketDataStartPos = this.pesPacketDataStartPositions[pesPacketIndex];
1908
1892
  let pts;
1909
1893
  if (this.lastSuppliedPesPacket === currentPesPacket) {
1910
1894
  assert(this.nextPts !== null);
@@ -1922,8 +1906,8 @@ class PacketReadingContext {
1922
1906
  const sectionStartPos = currentPesPacket.sectionStartPos;
1923
1907
  // The sequence number is the starting position of the section the PES packet is in, PLUS the offset within the
1924
1908
  // PES packet where the packet starts.
1925
- const sequenceNumber = sectionStartPos + (this.currentPos - this.currentPesPacketPos);
1926
- const data = this.readBytes(packetLength);
1909
+ const sequenceNumber = sectionStartPos + (this.currentPos - currentPesPacketDataStartPos);
1910
+ const data = this.readBytes(packetLength).slice();
1927
1911
  let randomAccessIndicator = currentPesPacket.randomAccessIndicator;
1928
1912
  if (randomAccessIndicator === 0 && !this.elementaryStream.canBeTrustedWithKeyPackets) {
1929
1913
  if (this.elementaryStream.info.type === 'audio') {
@@ -1939,15 +1923,22 @@ class PacketReadingContext {
1939
1923
  }
1940
1924
  }
1941
1925
  }
1926
+ const roundedPts = Math.round(pts);
1942
1927
  this.suppliedPacket = {
1943
- pts,
1928
+ pts: roundedPts,
1929
+ intrinsicDuration: Math.round(pts + intrinsicDuration) - roundedPts,
1944
1930
  data,
1945
1931
  sequenceNumber,
1946
1932
  sectionStartPos,
1947
1933
  randomAccessIndicator,
1948
1934
  };
1949
- this.pesPackets.splice(0, this.currentPesPacketIndex);
1950
- this.currentPesPacketIndex = 0;
1935
+ // Nothing before the end of the packet is needed anymore
1936
+ const keptStart = this.currentPos - this.scratchStartPos;
1937
+ this.scratch.copyWithin(0, keptStart, this.endPos - this.scratchStartPos);
1938
+ this.scratchStartPos = this.currentPos;
1939
+ const keptPesPacketIndex = findLastIndex(this.pesPacketDataStartPositions, x => x <= this.currentPos);
1940
+ this.pesPackets.splice(0, keptPesPacketIndex);
1941
+ this.pesPacketDataStartPositions.splice(0, keptPesPacketIndex);
1951
1942
  }
1952
1943
  }
1953
1944
  /**
@@ -1980,15 +1971,23 @@ class PacketBuffer {
1980
1971
  // Let's compute the duration
1981
1972
  const presentationIndex = this.presentationOrderPackets.indexOf(packet);
1982
1973
  let duration;
1983
- if (presentationIndex === -1 || presentationIndex === this.presentationOrderPackets.length - 1) {
1984
- // The packet has no known successor (or isn't even placed yet when timestamps are messed up)
1985
- duration = this.lastDuration; // Reasonable heuristic
1986
- }
1987
- else {
1974
+ if (presentationIndex !== -1 && presentationIndex < this.presentationOrderPackets.length - 1) {
1988
1975
  const nextPacket = this.presentationOrderPackets[presentationIndex + 1];
1989
1976
  duration = nextPacket.pts - packet.pts;
1990
1977
  this.lastDuration = duration;
1991
1978
  }
1979
+ else if (packet.intrinsicDuration > 0) {
1980
+ // The packet has no known successor (or isn't even placed yet when timestamps are messed up), but the codec
1981
+ // tells us how long it lasts
1982
+ duration = packet.intrinsicDuration;
1983
+ }
1984
+ else if (presentationIndex > 0) {
1985
+ // Let's say it lasts as long as the packet presented before it
1986
+ duration = packet.pts - this.presentationOrderPackets[presentationIndex - 1].pts;
1987
+ }
1988
+ else {
1989
+ duration = this.lastDuration; // Reasonable heuristic
1990
+ }
1992
1991
  this.decodeOrderPackets.shift();
1993
1992
  // Shrink the presentation array as much as possible
1994
1993
  while (this.presentationOrderPackets.length > 0) {