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

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 (1017) hide show
  1. package/manifest.json +2 -3
  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 +34 -30
  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-53531bb27b3b87f8.js} +1 -1
  115. package/runtime/.next/static/chunks/app/web/layout-88328c61ec0589af.js +1 -0
  116. package/runtime/.next/static/chunks/app/web/page-84b5f00b4c9cd4ce.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-ba2527534563adfe.js} +1 -1
  119. package/runtime/lib/device-pairing-gateway.mjs +6 -1
  120. package/runtime/lib/web-app-cache.mjs +6 -0
  121. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  122. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  123. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  124. package/runtime/node_modules/.package-lock.json +138 -138
  125. package/runtime/node_modules/@agent/core/dist/index.js +874 -128
  126. package/runtime/node_modules/@agent/native-runtime/dist/index.js +203 -38
  127. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
  128. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +104 -84
  129. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +78 -67
  130. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0a66n3e7.mjs +16 -0
  131. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0bmnpbz2.mjs +45 -0
  132. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-9je8ee1j.mjs +16 -0
  133. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ds2jqcef.mjs +19 -0
  134. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fxa8mwbm.mjs +18 -0
  135. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gbbw9cgm.mjs +17 -0
  136. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-msnqqcc2.mjs +42 -0
  137. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wadgcjfh.mjs +18 -0
  138. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x20yarwf.mjs +17 -0
  139. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x3hc9abc.mjs +17 -0
  140. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-zg882d22.mjs +16 -0
  141. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
  142. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +23 -23
  143. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +27 -27
  144. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +21 -14
  145. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +96 -85
  146. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  147. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  148. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  149. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  150. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  151. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  152. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  153. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/av2.js +1 -0
  172. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  173. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  696. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  697. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  698. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  699. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  700. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  701. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  702. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  703. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  704. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  705. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  706. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  707. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  708. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  709. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  710. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  711. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  712. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  713. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  714. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  715. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  716. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  717. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  718. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  719. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  720. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  721. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  722. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  723. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  724. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  725. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  726. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  727. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  728. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  729. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  730. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  731. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  732. package/runtime/node_modules/caniuse-lite/data/features.js +1 -1
  733. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  734. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  735. package/runtime/node_modules/graceful-fs/LICENSE.md +55 -0
  736. package/runtime/node_modules/graceful-fs/package.json +3 -4
  737. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +4312 -2466
  738. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +30 -24
  739. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +30 -24
  740. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +4312 -2466
  741. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +4312 -2466
  742. package/runtime/node_modules/mediabunny/dist/modules/shared/aac-misc.js +202 -5
  743. package/runtime/node_modules/mediabunny/dist/modules/shared/bitstream.js +4 -3
  744. package/runtime/node_modules/mediabunny/dist/modules/shared/dts-misc.js +7 -8
  745. package/runtime/node_modules/mediabunny/dist/modules/shared/mp3-misc.js +7 -1
  746. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +60 -41
  747. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-muxer.js +12 -8
  748. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js +39 -5
  749. package/runtime/node_modules/mediabunny/dist/modules/src/codec-data.js +220 -48
  750. package/runtime/node_modules/mediabunny/dist/modules/src/codec.js +80 -54
  751. package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +144 -96
  752. package/runtime/node_modules/mediabunny/dist/modules/src/decode.js +14 -8
  753. package/runtime/node_modules/mediabunny/dist/modules/src/encode.js +22 -9
  754. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js +16 -13
  755. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js +3 -2
  756. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-muxer.js +40 -26
  757. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +129 -115
  758. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-muxer.js +392 -326
  759. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +27 -24
  760. package/runtime/node_modules/mediabunny/dist/modules/src/id3.js +111 -33
  761. package/runtime/node_modules/mediabunny/dist/modules/src/input-format.js +81 -149
  762. package/runtime/node_modules/mediabunny/dist/modules/src/input-track.js +48 -15
  763. package/runtime/node_modules/mediabunny/dist/modules/src/input.js +37 -15
  764. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +104 -21
  765. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +347 -216
  766. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js +11 -2
  767. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +257 -163
  768. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/ebml.js +93 -32
  769. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +193 -99
  770. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-muxer.js +129 -116
  771. package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +216 -136
  772. package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +237 -129
  773. package/runtime/node_modules/mediabunny/dist/modules/src/metadata.js +6 -0
  774. package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +96 -49
  775. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +101 -29
  776. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-muxer.js +18 -9
  777. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js +45 -2
  778. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-writer.js +9 -2
  779. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +253 -254
  780. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-misc.js +5 -10
  781. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +69 -43
  782. package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +11 -1
  783. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js +89 -57
  784. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js +1 -1
  785. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-muxer.js +183 -73
  786. package/runtime/node_modules/mediabunny/dist/modules/src/output-format.js +70 -5
  787. package/runtime/node_modules/mediabunny/dist/modules/src/output.js +54 -29
  788. package/runtime/node_modules/mediabunny/dist/modules/src/packet.js +1 -1
  789. package/runtime/node_modules/mediabunny/dist/modules/src/resample.js +1 -0
  790. package/runtime/node_modules/mediabunny/dist/modules/src/sample.js +85 -42
  791. package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +40 -21
  792. package/runtime/node_modules/mediabunny/dist/modules/src/source.js +188 -88
  793. package/runtime/node_modules/mediabunny/dist/modules/src/subtitles.js +15 -9
  794. package/runtime/node_modules/mediabunny/dist/modules/src/target.js +63 -39
  795. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  796. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  797. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js +77 -41
  798. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-muxer.js +83 -20
  799. package/runtime/node_modules/mediabunny/dist/modules/src/writer.js +4 -1
  800. package/runtime/node_modules/mediabunny/package.json +5 -4
  801. package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +76 -47
  802. package/runtime/node_modules/mediabunny/src/adts/adts-muxer.ts +13 -11
  803. package/runtime/node_modules/mediabunny/src/adts/adts-reader.ts +54 -5
  804. package/runtime/node_modules/mediabunny/src/codec-data.ts +249 -52
  805. package/runtime/node_modules/mediabunny/src/codec.ts +85 -58
  806. package/runtime/node_modules/mediabunny/src/conversion.ts +161 -94
  807. package/runtime/node_modules/mediabunny/src/decode.ts +15 -8
  808. package/runtime/node_modules/mediabunny/src/encode.ts +23 -14
  809. package/runtime/node_modules/mediabunny/src/flac/flac-demuxer.ts +21 -20
  810. package/runtime/node_modules/mediabunny/src/flac/flac-misc.ts +3 -2
  811. package/runtime/node_modules/mediabunny/src/flac/flac-muxer.ts +44 -29
  812. package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +161 -129
  813. package/runtime/node_modules/mediabunny/src/hls/hls-muxer.ts +453 -379
  814. package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +35 -24
  815. package/runtime/node_modules/mediabunny/src/id3.ts +123 -35
  816. package/runtime/node_modules/mediabunny/src/input-format.ts +86 -170
  817. package/runtime/node_modules/mediabunny/src/input-track.ts +57 -17
  818. package/runtime/node_modules/mediabunny/src/input.ts +41 -17
  819. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +118 -21
  820. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +435 -253
  821. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-misc.ts +13 -4
  822. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +318 -191
  823. package/runtime/node_modules/mediabunny/src/matroska/ebml.ts +91 -38
  824. package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +212 -103
  825. package/runtime/node_modules/mediabunny/src/matroska/matroska-muxer.ts +155 -148
  826. package/runtime/node_modules/mediabunny/src/media-sink.ts +229 -146
  827. package/runtime/node_modules/mediabunny/src/media-source.ts +263 -141
  828. package/runtime/node_modules/mediabunny/src/metadata.ts +7 -1
  829. package/runtime/node_modules/mediabunny/src/misc.ts +122 -54
  830. package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +121 -33
  831. package/runtime/node_modules/mediabunny/src/mp3/mp3-muxer.ts +16 -12
  832. package/runtime/node_modules/mediabunny/src/mp3/mp3-reader.ts +66 -2
  833. package/runtime/node_modules/mediabunny/src/mp3/mp3-writer.ts +11 -2
  834. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +295 -325
  835. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-misc.ts +5 -14
  836. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +90 -51
  837. package/runtime/node_modules/mediabunny/src/muxer.ts +14 -1
  838. package/runtime/node_modules/mediabunny/src/ogg/ogg-demuxer.ts +92 -62
  839. package/runtime/node_modules/mediabunny/src/ogg/ogg-misc.ts +1 -1
  840. package/runtime/node_modules/mediabunny/src/ogg/ogg-muxer.ts +203 -88
  841. package/runtime/node_modules/mediabunny/src/output-format.ts +91 -7
  842. package/runtime/node_modules/mediabunny/src/output.ts +57 -30
  843. package/runtime/node_modules/mediabunny/src/packet.ts +1 -1
  844. package/runtime/node_modules/mediabunny/src/resample.ts +1 -0
  845. package/runtime/node_modules/mediabunny/src/sample.ts +105 -51
  846. package/runtime/node_modules/mediabunny/src/segmented-input.ts +50 -24
  847. package/runtime/node_modules/mediabunny/src/source.ts +227 -97
  848. package/runtime/node_modules/mediabunny/src/subtitles.ts +16 -9
  849. package/runtime/node_modules/mediabunny/src/target.ts +65 -41
  850. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  851. package/runtime/node_modules/mediabunny/src/wave/wave-demuxer.ts +103 -56
  852. package/runtime/node_modules/mediabunny/src/wave/wave-muxer.ts +88 -21
  853. package/runtime/node_modules/mediabunny/src/writer.ts +4 -1
  854. package/runtime/node_modules/sanitize-html/index.js +50 -20
  855. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +6 -4
  856. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/map-generator.js +12 -2
  857. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
  858. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/tokenize.js +6 -13
  859. package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +1 -1
  860. package/runtime/node_modules/sanitize-html/package.json +1 -1
  861. package/runtime/node_modules/ws/lib/websocket-server.js +3 -0
  862. package/runtime/node_modules/ws/lib/websocket.js +38 -7
  863. package/runtime/node_modules/ws/package.json +1 -1
  864. package/runtime/package-lock.json +195 -171
  865. package/runtime/server.js +1 -1
  866. package/runtime/webapp/dist/assets/AIHubView-DBOyOZzW.js +1 -0
  867. package/runtime/webapp/dist/assets/AgentManager-BLHvEA2d.js +3 -0
  868. package/runtime/webapp/dist/assets/{AiHubPane-DBuhzcId.js → AiHubPane-CWvL3HSl.js} +1 -1
  869. package/runtime/webapp/dist/assets/App-DGtdMfGk.js +179 -0
  870. package/runtime/webapp/dist/assets/BrowserLivePanel-Cl5kMDJF.js +56 -0
  871. package/runtime/webapp/dist/assets/CollaborationCreateDialog-DPs4doOz.js +1 -0
  872. package/runtime/webapp/dist/assets/CollaborationDashboard-ChUaJ5xA.js +1 -0
  873. package/runtime/webapp/dist/assets/CollaborationPage-Cg22tJGB.js +6 -0
  874. package/runtime/webapp/dist/assets/{FilePreview-CkY_jNql.js → FilePreview-BItgMeyP.js} +9 -14
  875. package/runtime/webapp/dist/assets/FileTree-t-YjjCDU.js +11 -0
  876. package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BnOoPJA6.js +1 -0
  877. package/runtime/webapp/dist/assets/FlowStudioPane-DHrpQpBA.js +5 -0
  878. package/runtime/webapp/dist/assets/LSPServerList-CB2Cwqw_.js +4 -0
  879. package/runtime/webapp/dist/assets/MCPServerList-DUpgIcHk.js +8 -0
  880. package/runtime/webapp/dist/assets/MemoryViewer-DCFueBdK.js +1 -0
  881. package/runtime/webapp/dist/assets/RemoteDesktopPage-DD9aNe8m.js +1 -0
  882. package/runtime/webapp/dist/assets/{RunningSessionsIcon-BbgfV3Y9.js → RunningSessionsIcon-CKKjZfu_.js} +1 -1
  883. package/runtime/webapp/dist/assets/SessionDashboard-CCpxslxg.js +21 -0
  884. package/runtime/webapp/dist/assets/{SessionDashboardBridge-DEUcW6SI.js → SessionDashboardBridge-DG1fQUEQ.js} +1 -1
  885. package/runtime/webapp/dist/assets/SettingsPanel-CA0Pj7qk.js +4 -0
  886. package/runtime/webapp/dist/assets/SkillManager-BzgAJlVW.js +1 -0
  887. package/runtime/webapp/dist/assets/{TerminalPane-BLqkE0Sr.js → TerminalPane-Bc4cGUmA.js} +2 -2
  888. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DeYUTKWn.js → abnfDiagram-VCTEODGH-Dsp6XgB7.js} +1 -1
  889. package/runtime/webapp/dist/assets/arc-DROGDR5M.js +1 -0
  890. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-CuFeRT7v.js → architectureDiagram-5GKGNRK7-S8c_fFRN.js} +1 -1
  891. package/runtime/webapp/dist/assets/{arrow-right-CBoNjLZc.js → arrow-right-CUDfCOna.js} +1 -1
  892. package/runtime/webapp/dist/assets/{artifact-links-DPEFlv87.js → artifact-links-C7zYRJaC.js} +1 -1
  893. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-CSQFiZW1.js → blockDiagram-I7D4REHJ-DrTz3v2B.js} +1 -1
  894. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Dp0yNsZN.js → c4Diagram-7LVT6UL2-wuHRphdr.js} +1 -1
  895. package/runtime/webapp/dist/assets/channel-C_3UNQvo.js +1 -0
  896. package/runtime/webapp/dist/assets/{chevron-down-DqV6YJGE.js → chevron-down-fUU2ZKzR.js} +1 -1
  897. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-HGRodfIv.js → chunk-2Q5K7J3B-BpV5cOX0.js} +1 -1
  898. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CBrQNVFD.js → chunk-5VM5RSS4-1_IZosIm.js} +1 -1
  899. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-DB6uGYpD.js → chunk-F27PBJKO-IZ7w-WCZ.js} +1 -1
  900. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-Dedjjkdt.js → chunk-IMKFNOWR-BuicwmZn.js} +3 -3
  901. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CFqPSTPh.js → chunk-JWPE2WC7-CfNSj3eC.js} +1 -1
  902. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-3acvfPpy.js → chunk-POPQ4Y6H-Bxryudz4.js} +1 -1
  903. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-Bn9tMxLG.js → chunk-SVP7TREG-DSZbEEd6.js} +3 -3
  904. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BjPHa9Ep.js → chunk-TICWLB2K-CHqUfDzl.js} +1 -1
  905. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-pSIpAtkj.js → chunk-XXDRQBXY-CPbMDiSF.js} +1 -1
  906. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-j9nJ5DUm.js +1 -0
  907. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-j9nJ5DUm.js +1 -0
  908. package/runtime/webapp/dist/assets/{codeSyntax-Bs__ElW1.js → codeSyntax-BENnBdX2.js} +3 -3
  909. package/runtime/webapp/dist/assets/{collaboration-xcnZxf7i.js → collaboration-DwgXZbHy.js} +1 -1
  910. package/runtime/webapp/dist/assets/composer-file-routing-CKLnrVkP.js +11 -0
  911. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Cc1ea8TO.js → cose-bilkent-JH36ORCC-BPzEzfJw.js} +1 -1
  912. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-B2IeHhVa.js → cynefin-OW5HDTMX-BZgzPIdr.js} +1 -1
  913. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-BeZhQnWx.js → cynefinDiagram-5FMLGOSQ-CyNjL-LN.js} +2 -2
  914. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DF08UpVJ.js → dagre-GXQ25YYZ-QqLmAYnp.js} +2 -2
  915. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Cx_tPRJp.js → diagram-S7CK7UJ4-DrIIbhV6.js} +1 -1
  916. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Cb6fFvJt.js → diagram-UQ7AKVKN-B7JON90e.js} +1 -1
  917. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-CvuweBru.js → diagram-VSXAHHWV-C1Fzjcgp.js} +1 -1
  918. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BYouVdoe.js → diagram-VX7I27RA-HmkXh54q.js} +1 -1
  919. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-DRBjsxYw.js → diagram-Z3DM3KII-Ca5jnESS.js} +1 -1
  920. package/runtime/webapp/dist/assets/download-CKrjXoG9.js +6 -0
  921. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CxHOPzwg.js → ebnfDiagram-PWID7BFC-a3qnPIiF.js} +1 -1
  922. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-tUK9K8ZD.js → erDiagram-RLTQ6QDP-EZKQ4NYt.js} +1 -1
  923. package/runtime/webapp/dist/assets/{external-link-DpecT7Vm.js → external-link-C9AwR_tM.js} +1 -1
  924. package/runtime/webapp/dist/assets/{file-types-CfFmgvNi.js → file-types-BlRT2KnS.js} +9 -4
  925. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BFd8shzR.js → flowDiagram-HODETNUW-C4U9dCin.js} +5 -5
  926. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js → ganttDiagram-EL5Y4UJY-B5iyiF0_.js} +2 -2
  927. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-L22kw422.js → gitGraphDiagram-WWUBYQGX-D9CfK-tl.js} +1 -1
  928. package/runtime/webapp/dist/assets/{image-plus-Bzr6FXFm.js → image-plus-DsCC5WAa.js} +1 -1
  929. package/runtime/webapp/dist/assets/{index-C165MF0E.js → index-DBNVLOBM.js} +53 -53
  930. package/runtime/webapp/dist/assets/index-DrzCwyPu.css +1 -0
  931. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-DBrWW4hh.js → infoDiagram-27XIBGKW-DBcCijd6.js} +1 -1
  932. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-BiQERurn.js → ishikawaDiagram-5VMMS53U-D_m8F4n9.js} +1 -1
  933. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-CbuOAsvy.js → journeyDiagram-3NMN7TZE-4oy2R7XW.js} +1 -1
  934. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BS0cpYtD.js → kanban-definition-UXKFOSKX-O6jHSf0E.js} +5 -5
  935. package/runtime/webapp/dist/assets/layout-P82L_S-q.js +1 -0
  936. package/runtime/webapp/dist/assets/{linear-DOnDPVCl.js → linear-B-Cl5K73.js} +1 -1
  937. package/runtime/webapp/dist/assets/{loader-circle-DzxGeGeP.js → loader-circle--s-WzZxC.js} +1 -1
  938. package/runtime/webapp/dist/assets/{mermaid.core-CIbk74HW.js → mermaid.core-BEmIap6p.js} +6 -6
  939. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BXA3aIva.js → mindmap-definition-YA3MSWOX-Bnlqql-j.js} +1 -1
  940. package/runtime/webapp/dist/assets/page-BtLq1udo.js +91 -0
  941. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-oUTq5zGX.js → pegDiagram-XKGWAZYB-AbRjuoUM.js} +1 -1
  942. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-5-ms1WT0.js +39 -0
  943. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-BDJl9Tah.js → quadrantDiagram-AXDQQJYC-BXr5BqtQ.js} +2 -2
  944. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-BCu1VCKA.js → railroadDiagram-O6MQD6OU-DqBC-aod.js} +1 -1
  945. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CqUIqsRU.js → requirementDiagram-BXWQKSXE-VOUcatZG.js} +1 -1
  946. package/runtime/webapp/dist/assets/{rotate-ccw-Bjr9jTxM.js → rotate-ccw-CSiD4c4O.js} +1 -1
  947. package/runtime/webapp/dist/assets/{rotate-cw-A1YTnj9Q.js → rotate-cw-CclBpLSU.js} +1 -1
  948. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-DaveIjpG.js → sankeyDiagram-P5KCCOFB-Bs23XmVr.js} +1 -1
  949. package/runtime/webapp/dist/assets/{send-BEl9srBG.js → send-CfzPXlfx.js} +1 -1
  950. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-C7zRgFw8.js → sequenceDiagram-WJ2MYXX4-DO-oDX3L.js} +1 -1
  951. package/runtime/webapp/dist/assets/session-dashboard-D-0Cip5Y.js +6 -0
  952. package/runtime/webapp/dist/assets/{shield-check-C79GaqpX.js → shield-check-Dsex8w1k.js} +1 -1
  953. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-BKOrYnP1.js → sizeCapture-INFHLROL-hCQ98eA9.js} +1 -1
  954. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-DLODIaTQ.js +1 -0
  955. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CTpD-7Re.js +1 -0
  956. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-CbDMTwgn.js → swimlanes-42K2YHIH-B3Qg_5tW.js} +1 -1
  957. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-v5rUeqtL.js +8 -0
  958. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CanMvfCK.js → timeline-definition-24CTP7MA-BdFnRV4K.js} +1 -1
  959. package/runtime/webapp/dist/assets/{trash-2-RnFgAyKW.js → trash-2-CZp_yMDT.js} +10 -5
  960. package/runtime/webapp/dist/assets/{types-DguAd3Ud.js → types-BWTyn3Bs.js} +1 -1
  961. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CR-V0-y3.js → vennDiagram-4TSXK5OY-CRU6BY1c.js} +1 -1
  962. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CjTtvx6s.js → wardleyDiagram-VM6X3IG4-CXK3g3al.js} +1 -1
  963. package/runtime/webapp/dist/assets/{web-DPag1EjS.js → web-Den_EYDz.js} +1 -1
  964. package/runtime/webapp/dist/assets/{web-DedGjdA8.js → web-JmfGsfI_.js} +1 -1
  965. package/runtime/webapp/dist/assets/{x-Bx8qOEL4.js → x-CLvev0bC.js} +1 -1
  966. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-D2959gYR.js → xychartDiagram-S5SC5T6Z-CeISrKUm.js} +1 -1
  967. package/runtime/webapp/dist/assets/zoom-out-CSyjX26v.js +21 -0
  968. package/runtime/webapp/dist/index.html +18 -3
  969. package/runtime/ws-server.mjs +3 -6
  970. package/runtime/.next/server/chunks/1973.js +0 -1
  971. package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +0 -1
  972. package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +0 -1
  973. package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +0 -1
  974. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +0 -13
  975. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
  976. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +0 -4
  977. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +0 -128
  978. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +0 -240
  979. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +0 -133
  980. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +0 -445
  981. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +0 -309
  982. package/runtime/node_modules/@agent/messaging/dist/index.js +0 -1219
  983. package/runtime/node_modules/@agent/messaging/package.json +0 -7
  984. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +0 -45
  985. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +0 -34
  986. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +0 -18
  987. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +0 -17
  988. package/runtime/node_modules/graceful-fs/LICENSE +0 -15
  989. package/runtime/webapp/dist/assets/App-D3-qxUjs.js +0 -187
  990. package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +0 -76
  991. package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +0 -1
  992. package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +0 -16
  993. package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +0 -11
  994. package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +0 -5
  995. package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +0 -6
  996. package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +0 -7
  997. package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +0 -1
  998. package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +0 -1
  999. package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +0 -16
  1000. package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +0 -1
  1001. package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +0 -6
  1002. package/runtime/webapp/dist/assets/channel-CcOPsanj.js +0 -1
  1003. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +0 -1
  1004. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +0 -1
  1005. package/runtime/webapp/dist/assets/index-IYQjHlQx.css +0 -1
  1006. package/runtime/webapp/dist/assets/layout-C6lzLyIZ.js +0 -1
  1007. package/runtime/webapp/dist/assets/page-oP1ftgSe.js +0 -91
  1008. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-CES_HFyS.js +0 -39
  1009. package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +0 -6
  1010. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-Cz_WH93D.js +0 -1
  1011. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +0 -1
  1012. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +0 -8
  1013. package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +0 -11
  1014. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_buildManifest.js +0 -0
  1015. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_ssgManifest.js +0 -0
  1016. /package/runtime/webapp/dist/assets/{use-error-notice-CAYVDT8Z.css → SessionDashboard-CAYVDT8Z.css} +0 -0
  1017. /package/runtime/webapp/dist/assets/{SessionDashboard-D3n4eFut.css → session-dashboard-D3n4eFut.css} +0 -0
@@ -50,6 +50,12 @@ const toHlsCodecString = (codecString: string) => {
50
50
  if (codecString === 'opus') {
51
51
  return 'Opus';
52
52
  }
53
+ if (codecString === 'flac') {
54
+ return 'fLaC';
55
+ }
56
+ if (codecString === 'mp3' || codecString === 'mp4a.69' || codecString === 'mp4a.6B' || codecString === 'mp4a.6b') {
57
+ return 'mp4a.40.34';
58
+ }
53
59
 
54
60
  return codecString;
55
61
  };
@@ -58,8 +64,6 @@ type HlsTrackData = {
58
64
  track: OutputTrack;
59
65
  packets: EncodedPacket[];
60
66
  playlist: Playlist;
61
- // We must store it on the TrackData, reading it directly from the track leads to async race conditions!
62
- closed: boolean;
63
67
  info: {
64
68
  type: 'video';
65
69
  decoderConfig: VideoDecoderConfig;
@@ -139,6 +143,7 @@ export class HlsMuxer extends Muxer {
139
143
 
140
144
  targetSegmentDuration: number;
141
145
  trackDatas: HlsTrackData[] = [];
146
+ closedTracks = new Set<OutputTrack>();
142
147
  singleFilePerPlaylist: boolean;
143
148
  isLive: boolean;
144
149
  maxLiveSegmentCount: number;
@@ -164,7 +169,7 @@ export class HlsMuxer extends Muxer {
164
169
  this.isLive = format._options.live ?? false;
165
170
  this.maxLiveSegmentCount = format._options.maxLiveSegmentCount ?? Infinity;
166
171
  this.mediaTimestampBase = format._options.mediaTimestampBase ?? 10;
167
- this.globalTargetDuration = this.targetSegmentDuration;
172
+ this.globalTargetDuration = 0;
168
173
 
169
174
  this.getPlaylistPath = format._options.getPlaylistPath
170
175
  ?? (({ n }) => `playlist-${n}.m3u8`);
@@ -179,387 +184,402 @@ export class HlsMuxer extends Muxer {
179
184
  async start(): Promise<void> {
180
185
  const release = await this.mutex.acquire();
181
186
 
182
- const someRelative = this.output.tracks.some(t => t.metadata.isRelativeToUnixEpoch);
183
- const someNotRelative = this.output.tracks.some(t => !t.metadata.isRelativeToUnixEpoch);
184
- if (someRelative && someNotRelative) {
185
- throw new Error(
186
- 'All tracks must agree on `relativeToUnixEpoch`: some tracks are relative to the Unix epoch and some'
187
- + ' are not.',
188
- );
189
- }
190
- this.isRelativeToUnixEpoch = someRelative;
191
-
192
- // Upon starting, we now need to assign the tracks to separate playlists. This assignment will make use of the
193
- // track pairability information provided by the user as well as other metadata specified on the tracks. The
194
- // resulting master playlist should preserve track pairability; meaning that all tracks that are pairable
195
- // remain pairable, and no two tracks become pairable that are meant to be mutually exclusive.
196
- // The algorithm determines "groups" by enumerating all pairable tracks for each track, and then materializes
197
- // each group either as #EXT-X-MEDIA tags or top-level #EXT-X-STREAM-INF tags. The algorithm is biased towards
198
- // video being the top-level grouping, since that's the standard practice.
199
-
200
- const groupAssignment = new Map<OutputTrack, string[]>();
201
- const groups: {
202
- name: string;
203
- key: string;
204
- tracks: OutputTrack[];
205
- needsEmit: boolean;
206
- firstNoUri: boolean;
207
- }[] = [];
208
-
209
- let hasVideo = false;
210
- let illegalPairingDetected = false;
211
- let keyPacketsOnlyPairingWarned = false;
212
-
213
- // First, let's build the "sibling" groups induced by track pairability
214
- for (const track of this.output.tracks) {
215
- if (track.type === 'video') {
216
- hasVideo = true;
187
+ try {
188
+ const someRelative = this.output.tracks.some(t => t.metadata.isRelativeToUnixEpoch);
189
+ const someNotRelative = this.output.tracks.some(t => !t.metadata.isRelativeToUnixEpoch);
190
+ if (someRelative && someNotRelative) {
191
+ throw new Error(
192
+ 'All tracks must agree on `relativeToUnixEpoch`: some tracks are relative to the Unix epoch and'
193
+ + ' some are not.',
194
+ );
217
195
  }
196
+ this.isRelativeToUnixEpoch = someRelative;
197
+
198
+ // Upon starting, we now need to assign the tracks to separate playlists. This assignment will make use of
199
+ // the track pairability information provided by the user as well as other metadata specified on the tracks.
200
+ // The resulting master playlist should preserve track pairability; meaning that all tracks that are
201
+ // pairable remain pairable, and no two tracks become pairable that are meant to be mutually exclusive.
202
+ // The algorithm determines "groups" by enumerating all pairable tracks for each track, and then
203
+ // materializes each group either as #EXT-X-MEDIA tags or top-level #EXT-X-STREAM-INF tags. The algorithm is
204
+ // biased towards video being the top-level grouping, since that's the standard practice.
205
+
206
+ const groupAssignment = new Map<OutputTrack, string[]>();
207
+ const groups: {
208
+ name: string;
209
+ key: string;
210
+ tracks: OutputTrack[];
211
+ needsEmit: boolean;
212
+ firstNoUri: boolean;
213
+ }[] = [];
214
+
215
+ let hasVideo = false;
216
+ let illegalPairingDetected = false;
217
+ let keyPacketsOnlyPairingWarned = false;
218
+
219
+ // First, let's build the "sibling" groups induced by track pairability
220
+ for (const track of this.output.tracks) {
221
+ if (track.type === 'video') {
222
+ hasVideo = true;
223
+ }
218
224
 
219
- const pairableGroups = new Map<MediaCodec, OutputTrack[]>();
225
+ const pairableGroups = new Map<MediaCodec, OutputTrack[]>();
220
226
 
221
- for (const otherTrack of this.output.tracks) {
222
- if (track === otherTrack) {
223
- continue;
224
- }
227
+ for (const otherTrack of this.output.tracks) {
228
+ if (track === otherTrack) {
229
+ continue;
230
+ }
225
231
 
226
- if (!track.canBePairedWith(otherTrack)) {
227
- continue;
228
- }
232
+ if (!track.canBePairedWith(otherTrack)) {
233
+ continue;
234
+ }
229
235
 
230
- if (track.type === otherTrack.type) {
231
- if (!illegalPairingDetected) {
232
- Logging._warn(
233
- `Illegal pairing of two ${track.type} tracks detected, which is not possible in HLS;`
234
- + ` treating them as unpaired.`,
235
- );
236
- illegalPairingDetected = true;
236
+ if (track.type === otherTrack.type) {
237
+ if (!illegalPairingDetected) {
238
+ Logging._warn(
239
+ `Illegal pairing of two ${track.type} tracks detected, which is not possible in HLS;`
240
+ + ` treating them as unpaired.`,
241
+ );
242
+ illegalPairingDetected = true;
243
+ }
244
+
245
+ continue;
237
246
  }
238
247
 
239
- continue;
240
- }
248
+ // Key-packets-only tracks can neither pair with nor be paired with other tracks
249
+ if (
250
+ (track.isVideoTrack() && track.metadata.hasOnlyKeyPackets)
251
+ || (otherTrack.isVideoTrack() && otherTrack.metadata.hasOnlyKeyPackets)
252
+ ) {
253
+ if (!keyPacketsOnlyPairingWarned) {
254
+ Logging._warn(
255
+ `A key-packets-only video track is pairable with another track, which is not`
256
+ + ` possible in HLS; treating them as unpaired.`,
257
+ );
258
+ keyPacketsOnlyPairingWarned = true;
259
+ }
241
260
 
242
- // Key-packets-only tracks can neither pair with nor be paired with other tracks
243
- if (
244
- (track.isVideoTrack() && track.metadata.hasOnlyKeyPackets)
245
- || (otherTrack.isVideoTrack() && otherTrack.metadata.hasOnlyKeyPackets)
246
- ) {
247
- if (!keyPacketsOnlyPairingWarned) {
248
- Logging._warn(
249
- `A key-packets-only video track is pairable with another track, which is not`
250
- + ` possible in HLS; treating them as unpaired.`,
251
- );
252
- keyPacketsOnlyPairingWarned = true;
261
+ continue;
253
262
  }
254
263
 
255
- continue;
256
- }
264
+ let groupTracks = pairableGroups.get(otherTrack.source._codec);
265
+ if (!groupTracks) {
266
+ pairableGroups.set(otherTrack.source._codec, groupTracks = []);
267
+ }
257
268
 
258
- let groupTracks = pairableGroups.get(otherTrack.source._codec);
259
- if (!groupTracks) {
260
- pairableGroups.set(otherTrack.source._codec, groupTracks = []);
269
+ groupTracks.push(otherTrack);
261
270
  }
262
271
 
263
- groupTracks.push(otherTrack);
264
- }
272
+ for (const [, pairableTracks] of pairableGroups) {
273
+ const key = pairableTracks.map(x => x.id).join('-');
274
+ const group = groups.find(x => x.key === key);
275
+ if (!group) {
276
+ groups.push({
277
+ name: pairableTracks[0]!.type + '-' + (groups.length + 1),
278
+ key,
279
+ tracks: pairableTracks,
280
+ needsEmit: false,
281
+ firstNoUri: false,
282
+ });
283
+ }
265
284
 
266
- for (const [, pairableTracks] of pairableGroups) {
267
- const key = pairableTracks.map(x => x.id).join('-');
268
- const group = groups.find(x => x.key === key);
269
- if (!group) {
270
- groups.push({
271
- name: pairableTracks[0]!.type + '-' + (groups.length + 1),
272
- key,
273
- tracks: pairableTracks,
274
- needsEmit: false,
275
- firstNoUri: false,
276
- });
285
+ let assignedGroups = groupAssignment.get(track);
286
+ if (!assignedGroups) {
287
+ groupAssignment.set(track, assignedGroups = []);
288
+ }
289
+ assignedGroups.push(key);
277
290
  }
291
+ }
292
+
293
+ const mainType: TrackType = hasVideo ? 'video' : 'audio';
294
+
295
+ const variantStreams: {
296
+ tracks: OutputTrack[];
297
+ linkedGroup: typeof groups[number] | null;
298
+ }[] = [];
278
299
 
279
- let assignedGroups = groupAssignment.get(track);
280
- if (!assignedGroups) {
281
- groupAssignment.set(track, assignedGroups = []);
300
+ const unpairedVideoTracks: OutputTrack[] = [];
301
+ const unpairedAudioTracks: OutputTrack[] = [];
302
+
303
+ const deduceSegmentFormat = (tracks: OutputTrack[]) => {
304
+ const codecs: MediaCodec[] = [];
305
+ let videoCount = 0;
306
+ let audioCount = 0;
307
+ let requiresTransformationMetadata = false;
308
+
309
+ let candidate: OutputFormat | null = null;
310
+ let candidateScore = -Infinity;
311
+
312
+ for (const track of tracks) {
313
+ if (track.isVideoTrack()) {
314
+ videoCount++;
315
+ requiresTransformationMetadata ||= (track.metadata.rotation ?? 0) !== 0
316
+ || !!track.metadata.flip
317
+ || !!track.metadata.transformationMatrix;
318
+ } else if (track.isAudioTrack()) {
319
+ audioCount++;
320
+ }
321
+
322
+ codecs.push(track.source._codec);
282
323
  }
283
- assignedGroups.push(key);
284
- }
285
- }
286
324
 
287
- const mainType: TrackType = hasVideo ? 'video' : 'audio';
325
+ for (const format of toArray(this.format._options.segmentFormat)) {
326
+ const supportedCodecs = format.getSupportedCodecs();
327
+ const trackCounts = format.getSupportedTrackCounts();
288
328
 
289
- const variantStreams: {
290
- tracks: OutputTrack[];
291
- linkedGroup: typeof groups[number] | null;
292
- }[] = [];
329
+ if (codecs.some(codec => !supportedCodecs.includes(codec))) {
330
+ continue;
331
+ }
293
332
 
294
- const unpairedVideoTracks: OutputTrack[] = [];
295
- const unpairedAudioTracks: OutputTrack[] = [];
333
+ if (videoCount < trackCounts.video.min || videoCount > trackCounts.video.max) {
334
+ continue;
335
+ }
296
336
 
297
- // Now, create the top-level variant streams
298
- for (const track of this.output.tracks) {
299
- const assignedGroupKeys = groupAssignment.get(track);
300
- if (assignedGroupKeys) {
301
- assert(assignedGroupKeys.length > 0);
337
+ if (audioCount < trackCounts.audio.min || audioCount > trackCounts.audio.max) {
338
+ continue;
339
+ }
302
340
 
303
- if (track.type !== mainType) {
304
- continue;
341
+ let score = 0;
342
+ if (requiresTransformationMetadata && format.supportsVideoTransformationMetadata) {
343
+ score++;
344
+ }
345
+
346
+ if (score > candidateScore) {
347
+ candidate = format;
348
+ candidateScore = score;
349
+ }
305
350
  }
306
351
 
307
- for (const key of assignedGroupKeys) {
308
- const group = groups.find(x => x.key === key);
309
- assert(group);
352
+ return candidate;
353
+ };
310
354
 
311
- if (assignedGroupKeys.length === 1 && group.tracks.length === 1) {
312
- const otherGroupKeys = groupAssignment.get(group.tracks[0]!);
313
- assert(otherGroupKeys !== undefined);
355
+ // Now, create the top-level variant streams
356
+ for (const track of this.output.tracks) {
357
+ const assignedGroupKeys = groupAssignment.get(track);
358
+ if (assignedGroupKeys) {
359
+ assert(assignedGroupKeys.length > 0);
314
360
 
315
- if (otherGroupKeys.length === 1) {
316
- const otherGroup = groups.find(x => x.key === otherGroupKeys[0]!)!;
361
+ if (track.type !== mainType) {
362
+ continue;
363
+ }
317
364
 
318
- if (otherGroup.tracks.length === 1) {
319
- assert(otherGroup.tracks[0] === track);
365
+ for (const key of assignedGroupKeys) {
366
+ const group = groups.find(x => x.key === key);
367
+ assert(group);
320
368
 
321
- variantStreams.push({
322
- tracks: [track, group.tracks[0]!],
323
- linkedGroup: null,
324
- });
325
- continue;
369
+ if (assignedGroupKeys.length === 1 && group.tracks.length === 1) {
370
+ const otherGroupKeys = groupAssignment.get(group.tracks[0]!);
371
+ assert(otherGroupKeys !== undefined);
372
+
373
+ if (otherGroupKeys.length === 1) {
374
+ const otherGroup = groups.find(x => x.key === otherGroupKeys[0]!)!;
375
+
376
+ if (otherGroup.tracks.length === 1) {
377
+ assert(otherGroup.tracks[0] === track);
378
+
379
+ const canSharePlaylist = !!deduceSegmentFormat([track, group.tracks[0]!]);
380
+ if (canSharePlaylist) {
381
+ variantStreams.push({
382
+ tracks: [track, group.tracks[0]!],
383
+ linkedGroup: null,
384
+ });
385
+ continue;
386
+ }
387
+ }
326
388
  }
327
389
  }
328
- }
329
390
 
330
- variantStreams.push({
331
- tracks: [track],
332
- linkedGroup: group,
333
- });
334
- group.needsEmit = true;
335
- }
336
- } else {
337
- if (track.type === 'video') {
338
- unpairedVideoTracks.push(track);
339
- } else if (track.type === 'audio') {
340
- unpairedAudioTracks.push(track);
391
+ variantStreams.push({
392
+ tracks: [track],
393
+ linkedGroup: group,
394
+ });
395
+ group.needsEmit = true;
396
+ }
397
+ } else {
398
+ if (track.type === 'video') {
399
+ unpairedVideoTracks.push(track);
400
+ } else if (track.type === 'audio') {
401
+ unpairedAudioTracks.push(track);
402
+ }
341
403
  }
342
404
  }
343
- }
344
405
 
345
- const getMetadataKeyForTrack = ({ metadata }: OutputTrack) => {
346
- let key = '';
347
- key += `${metadata.languageCode ?? UNDETERMINED_LANGUAGE}-`;
348
- key += `${metadata.name ?? ''}-`;
349
- key += `${metadata.disposition?.default ?? true}-`;
350
- key += `${metadata.disposition?.primary ?? false}-`;
351
- key += `${metadata.disposition?.forced ?? false}-`;
406
+ const getMetadataKeyForTrack = ({ metadata }: OutputTrack) => {
407
+ let key = '';
408
+ key += `${metadata.languageCode ?? UNDETERMINED_LANGUAGE}-`;
409
+ key += `${metadata.name ?? ''}-`;
410
+ key += `${metadata.disposition?.default ?? true}-`;
411
+ key += `${metadata.disposition?.primary ?? false}-`;
412
+ key += `${metadata.disposition?.forced ?? false}-`;
352
413
 
353
- return key;
354
- };
414
+ return key;
415
+ };
355
416
 
356
- // Video tracks that can't be paired with any other track always live on the top-level, the question is just if
357
- // they need to be separated into #EXT-X-MEDIA tags or not
358
- if (unpairedVideoTracks.length > 0) {
359
- const uniqueMetadata = new Set(unpairedVideoTracks.map(getMetadataKeyForTrack));
360
-
361
- if (uniqueMetadata.size > 1) {
362
- // They differ in metadata, emit as group
363
- const group: typeof groups[number] = {
364
- key: unpairedVideoTracks.map(x => x.id).join('-'),
365
- name: 'video-' + (groups.length + 1),
366
- tracks: unpairedVideoTracks,
367
- needsEmit: true,
368
- firstNoUri: true,
369
- };
370
- groups.push(group);
417
+ // Video tracks that can't be paired with any other track always live on the top-level, the question is just
418
+ // if they need to be separated into #EXT-X-MEDIA tags or not
419
+ if (unpairedVideoTracks.length > 0) {
420
+ // Key-packets-only tracks are standalone I-frame streams, so they can't be renditions within a group
421
+ const iFrameTracks = unpairedVideoTracks.filter(x => x.isVideoTrack() && x.metadata.hasOnlyKeyPackets);
422
+ const groupableTracks = unpairedVideoTracks.filter(x => !iFrameTracks.includes(x));
423
+ const uniqueMetadata = new Set(groupableTracks.map(getMetadataKeyForTrack));
424
+
425
+ if (uniqueMetadata.size > 1) {
426
+ // They differ in metadata, emit as group
427
+ const group: typeof groups[number] = {
428
+ key: groupableTracks.map(x => x.id).join('-'),
429
+ name: 'video-' + (groups.length + 1),
430
+ tracks: groupableTracks,
431
+ needsEmit: true,
432
+ firstNoUri: true,
433
+ };
434
+ groups.push(group);
371
435
 
372
- variantStreams.push({
373
- tracks: [unpairedVideoTracks[0]!],
374
- linkedGroup: group,
375
- });
376
- } else {
377
- for (const track of unpairedVideoTracks) {
378
436
  variantStreams.push({
379
- tracks: [track],
380
- linkedGroup: null,
437
+ tracks: [groupableTracks[0]!],
438
+ linkedGroup: group,
381
439
  });
440
+
441
+ for (const track of iFrameTracks) {
442
+ variantStreams.push({
443
+ tracks: [track],
444
+ linkedGroup: null,
445
+ });
446
+ }
447
+ } else {
448
+ for (const track of unpairedVideoTracks) {
449
+ variantStreams.push({
450
+ tracks: [track],
451
+ linkedGroup: null,
452
+ });
453
+ }
382
454
  }
383
455
  }
384
- }
385
456
 
386
- // Audio tracks that can't be paired with any other track always live on the top-level, the question is just if
387
- // they need to be separated into #EXT-X-MEDIA tags or not
388
- if (unpairedAudioTracks.length > 0) {
389
- const uniqueMetadata = new Set(unpairedAudioTracks.map(getMetadataKeyForTrack));
390
-
391
- if (uniqueMetadata.size > 1) {
392
- // They differ in metadata, emit as group
393
- const group: typeof groups[number] = {
394
- key: unpairedAudioTracks.map(x => x.id).join('-'),
395
- name: 'audio-' + (groups.length + 1),
396
- tracks: unpairedAudioTracks,
397
- needsEmit: true,
398
- firstNoUri: true,
399
- };
400
- groups.push(group);
457
+ // Audio tracks that can't be paired with any other track always live on the top-level, the question is just
458
+ // if they need to be separated into #EXT-X-MEDIA tags or not
459
+ if (unpairedAudioTracks.length > 0) {
460
+ const uniqueMetadata = new Set(unpairedAudioTracks.map(getMetadataKeyForTrack));
461
+
462
+ if (uniqueMetadata.size > 1) {
463
+ // They differ in metadata, emit as group
464
+ const group: typeof groups[number] = {
465
+ key: unpairedAudioTracks.map(x => x.id).join('-'),
466
+ name: 'audio-' + (groups.length + 1),
467
+ tracks: unpairedAudioTracks,
468
+ needsEmit: true,
469
+ firstNoUri: true,
470
+ };
471
+ groups.push(group);
401
472
 
402
- variantStreams.push({
403
- tracks: [unpairedAudioTracks[0]!],
404
- linkedGroup: group,
405
- });
406
- } else {
407
- for (const track of unpairedAudioTracks) {
408
473
  variantStreams.push({
409
- tracks: [track],
410
- linkedGroup: null,
474
+ tracks: [unpairedAudioTracks[0]!],
475
+ linkedGroup: group,
411
476
  });
477
+ } else {
478
+ for (const track of unpairedAudioTracks) {
479
+ variantStreams.push({
480
+ tracks: [track],
481
+ linkedGroup: null,
482
+ });
483
+ }
412
484
  }
413
485
  }
414
- }
415
486
 
416
- const deduceSegmentFormat = (tracks: OutputTrack[]) => {
417
- const codecs: MediaCodec[] = [];
418
- let videoCount = 0;
419
- let audioCount = 0;
420
- let requiresTransformationMetadata = false;
421
-
422
- let candidate: OutputFormat | null = null;
423
- let candidateScore = -Infinity;
424
-
425
- for (const track of tracks) {
426
- if (track.isVideoTrack()) {
427
- videoCount++;
428
- requiresTransformationMetadata ||= (track.metadata.rotation ?? 0) !== 0
429
- || !!track.metadata.flip
430
- || !!track.metadata.transformationMatrix;
431
- } else if (track.isAudioTrack()) {
432
- audioCount++;
487
+ const registerPlaylist = async (tracks: OutputTrack[]) => {
488
+ if (tracks.some(track => this.playlists.some(playlist => playlist.tracks.includes(track)))) {
489
+ // Should be unreachable
490
+ throw new Error('Internal error: track is already registered in a playlist.');
433
491
  }
434
492
 
435
- codecs.push(track.source._codec);
436
- }
493
+ const format = deduceSegmentFormat(tracks);
494
+ // We must find a format. If no format is found, that means we incorrectly gated track creation and
495
+ // assignment at an earlier step.
496
+ assert(format);
437
497
 
438
- for (const format of toArray(this.format._options.segmentFormat)) {
439
- const supportedCodecs = format.getSupportedCodecs();
440
- const trackCounts = format.getSupportedTrackCounts();
498
+ const id = this.playlists.length + 1;
499
+ const path = await this.getPlaylistPath({
500
+ n: id,
501
+ tracks,
502
+ segmentFormat: format,
503
+ });
504
+ validatePlaylistPath(path);
505
+
506
+ const playlist: Playlist = {
507
+ id: this.playlists.length + 1,
508
+ path,
509
+ tracks,
510
+ segmentFormat: format,
511
+ currentSegmentStartTimestamp: null,
512
+ currentSegmentStartTimestampIsFixed: false,
513
+ nextSegmentId: 1,
514
+ initSegment: null,
515
+ writtenSegments: [],
516
+ peakBitrate: null,
517
+ averageBitrate: null,
518
+ mediaSequence: 0,
519
+ done: false,
520
+ singleFile: null,
521
+ mutex: new AsyncMutex(),
522
+ };
523
+ this.playlists.push(playlist);
441
524
 
442
- if (codecs.some(codec => !supportedCodecs.includes(codec))) {
443
- continue;
444
- }
525
+ return playlist;
526
+ };
445
527
 
446
- if (videoCount < trackCounts.video.min || videoCount > trackCounts.video.max) {
528
+ // Now, finally let's create all declarations. Each declaration maps to one #EXT-X-MEDIA or
529
+ // #EXT-X-STREAM-INF tag in the final master playlist.
530
+ for (const group of groups) {
531
+ if (!group.needsEmit) {
447
532
  continue;
448
533
  }
449
534
 
450
- if (audioCount < trackCounts.audio.min || audioCount > trackCounts.audio.max) {
451
- continue;
452
- }
535
+ for (let i = 0; i < group.tracks.length; i++) {
536
+ const track = group.tracks[i]!;
453
537
 
454
- let score = 0;
455
- if (requiresTransformationMetadata && format.supportsVideoTransformationMetadata) {
456
- score++;
457
- }
538
+ let playlist = this.playlists.find(x => x.tracks[0]!.id === track.id);
539
+ playlist ??= await registerPlaylist([track]);
458
540
 
459
- if (score > candidateScore) {
460
- candidate = format;
461
- candidateScore = score;
541
+ this.playlistDeclarations.push({
542
+ playlist,
543
+ groupId: group.name,
544
+ noUri: group.firstNoUri && i === 0,
545
+ references: [],
546
+ });
462
547
  }
463
548
  }
464
549
 
465
- // We must find a format. If no format is found, that means we incorrectly gated track creation and
466
- // assignment at an earlier step.
467
- assert(candidate);
468
-
469
- return candidate;
470
- };
471
-
472
- const registerPlaylist = async (tracks: OutputTrack[]) => {
473
- if (tracks.some(track => this.playlists.some(playlist => playlist.tracks.includes(track)))) {
474
- throw new Error('Internal error: track is already registered in a playlist.'); // Should be unreachable
475
- }
476
-
477
- const format = deduceSegmentFormat(tracks);
478
-
479
- const id = this.playlists.length + 1;
480
- const path = await this.getPlaylistPath({
481
- n: id,
482
- tracks,
483
- segmentFormat: format,
484
- });
485
- validatePlaylistPath(path);
486
-
487
- const playlist: Playlist = {
488
- id: this.playlists.length + 1,
489
- path,
490
- tracks,
491
- segmentFormat: format,
492
- currentSegmentStartTimestamp: null,
493
- currentSegmentStartTimestampIsFixed: false,
494
- nextSegmentId: 1,
495
- initSegment: null,
496
- writtenSegments: [],
497
- peakBitrate: null,
498
- averageBitrate: null,
499
- mediaSequence: 0,
500
- done: false,
501
- singleFile: null,
502
- mutex: new AsyncMutex(),
503
- };
504
- this.playlists.push(playlist);
505
-
506
- return playlist;
507
- };
508
-
509
- // Now, finally let's create all declarations. Each declaration maps to one #EXT-X-MEDIA or #EXT-X-STREAM-INF
510
- // tag in the final master playlist.
511
- for (const group of groups) {
512
- if (!group.needsEmit) {
513
- continue;
514
- }
515
-
516
- for (let i = 0; i < group.tracks.length; i++) {
517
- const track = group.tracks[i]!;
518
-
519
- let playlist = this.playlists.find(x => x.tracks[0]!.id === track.id);
520
- playlist ??= await registerPlaylist([track]);
550
+ for (const variant of variantStreams) {
551
+ // Since tracks can only be assigned to one playlist, the first track's ID acts as a "playlist key"
552
+ let playlist = this.playlists.find(x => x.tracks[0]!.id === variant.tracks[0]!.id);
553
+ playlist ??= await registerPlaylist(variant.tracks);
521
554
 
522
555
  this.playlistDeclarations.push({
523
556
  playlist,
524
- groupId: group.name,
525
- noUri: group.firstNoUri && i === 0,
526
- references: [],
557
+ groupId: null,
558
+ noUri: false,
559
+ references: variant.linkedGroup
560
+ ? this.playlistDeclarations.filter(x => x.groupId === variant.linkedGroup!.name)
561
+ : [],
527
562
  });
528
563
  }
529
- }
530
564
 
531
- for (const variant of variantStreams) {
532
- // Since tracks can only be assigned to one playlist, the first track's ID acts as a "playlist key"
533
- let playlist = this.playlists.find(x => x.tracks[0]!.id === variant.tracks[0]!.id);
534
- playlist ??= await registerPlaylist(variant.tracks);
535
-
536
- this.playlistDeclarations.push({
537
- playlist,
538
- groupId: null,
539
- noUri: false,
540
- references: variant.linkedGroup
541
- ? this.playlistDeclarations.filter(x => x.groupId === variant.linkedGroup!.name)
542
- : [],
543
- });
544
- }
545
-
546
- for (const track of this.output.tracks) {
547
- if (track.isVideoTrack() && track.metadata.decoderConfig) {
548
- this.getVideoTrackData(
549
- track,
550
- track.metadata.primingPacket ?? null,
551
- { decoderConfig: track.metadata.decoderConfig },
552
- );
553
- } else if (track.isAudioTrack() && track.metadata.decoderConfig) {
554
- this.getAudioTrackData(
555
- track,
556
- track.metadata.primingPacket ?? null,
557
- { decoderConfig: track.metadata.decoderConfig },
558
- );
565
+ for (const track of this.output.tracks) {
566
+ if (track.isVideoTrack() && track.metadata.decoderConfig) {
567
+ this.getVideoTrackData(
568
+ track,
569
+ track.metadata.primingPacket ?? null,
570
+ { decoderConfig: track.metadata.decoderConfig },
571
+ );
572
+ } else if (track.isAudioTrack() && track.metadata.decoderConfig) {
573
+ this.getAudioTrackData(
574
+ track,
575
+ track.metadata.primingPacket ?? null,
576
+ { decoderConfig: track.metadata.decoderConfig },
577
+ );
578
+ }
559
579
  }
580
+ } finally {
581
+ release();
560
582
  }
561
-
562
- release();
563
583
  }
564
584
 
565
585
  async getMimeType(): Promise<string> {
@@ -568,7 +588,7 @@ export class HlsMuxer extends Muxer {
568
588
 
569
589
  private allTracksAreKnown(playlist: Playlist) {
570
590
  for (const track of playlist.tracks) {
571
- if (!track.source._closed && !this.trackDatas.some(x => x.track === track)) {
591
+ if (!this.closedTracks.has(track) && !this.trackDatas.some(x => x.track === track)) {
572
592
  return false; // We haven't seen a sample from this open track yet
573
593
  }
574
594
  }
@@ -576,20 +596,20 @@ export class HlsMuxer extends Muxer {
576
596
  return true;
577
597
  }
578
598
 
579
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
580
599
  override async onTrackClose(track: OutputTrack) {
581
- const trackData = this.trackDatas.find(x => x.track === track);
582
- if (trackData) {
583
- trackData.closed = true;
584
- }
585
-
586
600
  const playlist = this.playlists.find(x => x.tracks.includes(track));
587
601
  assert(playlist); // If there isn't one then the assignment algo failed innit
588
602
 
589
603
  const release = await playlist.mutex.acquire();
590
604
 
591
605
  try {
592
- await this.advancePlaylist(playlist);
606
+ this.closedTracks.add(track);
607
+
608
+ // Another track of the playlist may have closed alongside this one and already finished the playlist,
609
+ // hence this check
610
+ if (!playlist.done) {
611
+ await this.advancePlaylist(playlist);
612
+ }
593
613
  } finally {
594
614
  release();
595
615
  }
@@ -613,7 +633,6 @@ export class HlsMuxer extends Muxer {
613
633
  track,
614
634
  packets: [],
615
635
  playlist: playlists[0]!,
616
- closed: false,
617
636
  info: {
618
637
  type: 'video',
619
638
  decoderConfig: meta.decoderConfig,
@@ -643,7 +662,6 @@ export class HlsMuxer extends Muxer {
643
662
  track,
644
663
  packets: [],
645
664
  playlist: playlists[0]!,
646
- closed: false,
647
665
  info: {
648
666
  type: 'audio',
649
667
  decoderConfig: meta.decoderConfig,
@@ -734,11 +752,12 @@ export class HlsMuxer extends Muxer {
734
752
  }
735
753
 
736
754
  const trackDatas = this.trackDatas.filter(x => playlist.tracks.includes(x.track));
755
+ const allClosed = trackDatas.every(x => this.closedTracks.has(x.track));
737
756
 
738
757
  if (playlist.currentSegmentStartTimestamp === null) {
739
758
  // All tracks are known but we never received any data. Tracks that declared themselves up front are known
740
759
  // before their first packet, so we can only call it a day once they're actually closed.
741
- if (trackDatas.every(x => x.closed)) {
760
+ if (allClosed) {
742
761
  await this.onPlaylistDone(playlist);
743
762
  }
744
763
 
@@ -747,6 +766,13 @@ export class HlsMuxer extends Muxer {
747
766
 
748
767
  const videoTrack = trackDatas.find(x => x.info.type === 'video') as HlsVideoTrackData | undefined;
749
768
  const audioTrack = trackDatas.find(x => x.info.type === 'audio') as HlsAudioTrackData | undefined;
769
+ const videoTrackIsClosed = !!videoTrack && this.closedTracks.has(videoTrack.track);
770
+ const audioTrackIsClosed = !!audioTrack && this.closedTracks.has(audioTrack.track);
771
+
772
+ // RFC 8216: "The EXT-X-I-FRAMES-ONLY tag indicates that each Media Segment in the Playlist describes a
773
+ // single I-frame"
774
+ const isKeyPacketsOnly = playlist.tracks[0]!.isVideoTrack()
775
+ && playlist.tracks[0].metadata.hasOnlyKeyPackets;
750
776
 
751
777
  // Loop in case we can finalize multiple segments
752
778
  while (true) {
@@ -767,15 +793,15 @@ export class HlsMuxer extends Muxer {
767
793
  let videoEndIndex = 0;
768
794
  let audioEndIndex = 0;
769
795
 
770
- if (videoTrack && (!videoTrack.closed || videoTrack.packets.length > 0)) {
796
+ if (videoTrack && (!videoTrackIsClosed || videoTrack.packets.length > 0)) {
771
797
  // A video track is active (and maybe an audio track too)
772
798
  const allBelow = videoTrack.packets.every(x => x.timestamp < currentSegmentEndTimestamp);
773
799
 
774
800
  let bestKeyPacket: EncodedPacket | null = null;
775
801
  let bestKeyPacketIndex: number | null = null;
776
802
 
777
- if (allBelow) {
778
- if (!videoTrack.closed) {
803
+ if (allBelow && !isKeyPacketsOnly) {
804
+ if (!videoTrackIsClosed) {
779
805
  // Not enough data yet
780
806
  return;
781
807
  }
@@ -791,6 +817,10 @@ export class HlsMuxer extends Muxer {
791
817
  if (i > 0 && packet.type === 'key') {
792
818
  bestKeyPacket = packet;
793
819
  bestKeyPacketIndex = i;
820
+
821
+ if (isKeyPacketsOnly) {
822
+ break;
823
+ }
794
824
  }
795
825
  }
796
826
  }
@@ -804,7 +834,7 @@ export class HlsMuxer extends Muxer {
804
834
  if (index !== -1) {
805
835
  audioEndIndex = index;
806
836
  } else {
807
- if (audioTrack.closed) {
837
+ if (audioTrackIsClosed) {
808
838
  audioEndIndex = audioTrack.packets.length;
809
839
  } else {
810
840
  return;
@@ -812,7 +842,7 @@ export class HlsMuxer extends Muxer {
812
842
  }
813
843
  }
814
844
  } else {
815
- if (!videoTrack.closed) {
845
+ if (!videoTrackIsClosed) {
816
846
  return;
817
847
  }
818
848
 
@@ -829,7 +859,7 @@ export class HlsMuxer extends Muxer {
829
859
  if (index !== -1) {
830
860
  audioEndIndex = index;
831
861
  } else {
832
- if (audioTrack.closed) {
862
+ if (audioTrackIsClosed) {
833
863
  audioEndIndex = audioTrack.packets.length;
834
864
  } else {
835
865
  return;
@@ -841,7 +871,7 @@ export class HlsMuxer extends Muxer {
841
871
  if (index !== -1) {
842
872
  audioEndIndex = index;
843
873
  } else {
844
- if (audioTrack.closed) {
874
+ if (audioTrackIsClosed) {
845
875
  audioEndIndex = audioTrack.packets.length;
846
876
  } else {
847
877
  return;
@@ -850,13 +880,13 @@ export class HlsMuxer extends Muxer {
850
880
  }
851
881
  }
852
882
  }
853
- } else if (audioTrack && (!audioTrack.closed || audioTrack.packets.length > 0)) {
883
+ } else if (audioTrack && (!audioTrackIsClosed || audioTrack.packets.length > 0)) {
854
884
  // There's only an audio track active
855
885
 
856
886
  const allBelow = audioTrack.packets.every(x => x.timestamp < currentSegmentEndTimestamp);
857
887
 
858
888
  if (allBelow) {
859
- if (audioTrack.closed) {
889
+ if (audioTrackIsClosed) {
860
890
  // We can write all packets since they're all below
861
891
  audioEndIndex = audioTrack.packets.length;
862
892
  } else {
@@ -872,7 +902,6 @@ export class HlsMuxer extends Muxer {
872
902
 
873
903
  if (videoEndIndex === 0 && audioEndIndex === 0) {
874
904
  // No more segments to write - if all tracks are closed, this playlist is done
875
- const allClosed = trackDatas.every(x => x.closed);
876
905
  if (allClosed) {
877
906
  await this.onPlaylistDone(playlist);
878
907
  }
@@ -1033,7 +1062,12 @@ export class HlsMuxer extends Muxer {
1033
1062
  } else {
1034
1063
  // Create the output for this segment
1035
1064
  output = new Output({
1036
- format: playlist.segmentFormat,
1065
+ // TEMP HACK: MP3 makes little sense with the Xing header, because many players interpret it
1066
+ // as mid-stream silence. But it's enabled by default, and changing that would be breaking.
1067
+ // So, it's a hardcoded special case for now. In the future, we should deprecate arbitrary
1068
+ // segment formats for HLS and switch to special HLS-specific segment formats which can carry
1069
+ // their own logic.
1070
+ format: playlist.segmentFormat._withoutXingHeader(),
1037
1071
  target: new PathedTarget(
1038
1072
  fullSegmentPath,
1039
1073
  async (request: TargetRequest) => {
@@ -1129,6 +1163,7 @@ export class HlsMuxer extends Muxer {
1129
1163
  ...videoTrack.track.metadata,
1130
1164
  decoderConfig: videoTrack.info.decoderConfig,
1131
1165
  primingPacket: videoTrack.info.primingPacket ?? undefined,
1166
+ maximumPacketCount: videoEndIndex,
1132
1167
  });
1133
1168
  }
1134
1169
 
@@ -1141,6 +1176,7 @@ export class HlsMuxer extends Muxer {
1141
1176
  ...audioTrack.track.metadata,
1142
1177
  decoderConfig: audioTrack.info.decoderConfig,
1143
1178
  primingPacket: audioTrack.info.primingPacket ?? undefined,
1179
+ maximumPacketCount: audioEndIndex,
1144
1180
  });
1145
1181
 
1146
1182
  if (!playlist.segmentFormat.supportsTimestampedMediaData && audioEndIndex > 0) {
@@ -1313,14 +1349,16 @@ export class HlsMuxer extends Muxer {
1313
1349
  this.format._options.onSegment?.(playlist.singleFile.target, playlist.singleFile.info);
1314
1350
  }
1315
1351
 
1316
- await this.writePlaylist(playlist);
1352
+ if (this.isLive) {
1353
+ await this.writePlaylist(playlist);
1317
1354
 
1318
- if (this.isLive && playlist.writtenSegments.length === 0) {
1319
- await this.tryWriteMasterPlaylist();
1355
+ if (playlist.writtenSegments.length === 0) {
1356
+ await this.tryWriteMasterPlaylist();
1357
+ }
1320
1358
  }
1321
1359
  }
1322
1360
 
1323
- private updatePlaylistBitrates(playlist: Playlist) {
1361
+ private updatePlaylistBitrates(playlist: Playlist, targetDuration: number) {
1324
1362
  const segments = playlist.writtenSegments;
1325
1363
 
1326
1364
  let peakBitrate = 0;
@@ -1339,14 +1377,11 @@ export class HlsMuxer extends Muxer {
1339
1377
  windowBytes += segments[j]!.byteSize;
1340
1378
  windowDuration += segments[j]!.duration;
1341
1379
 
1342
- if (
1343
- windowDuration >= 0.5 * this.globalTargetDuration
1344
- && windowDuration <= 1.5 * this.globalTargetDuration
1345
- ) {
1380
+ if (windowDuration >= 0.5 * targetDuration && windowDuration <= 1.5 * targetDuration) {
1346
1381
  peakBitrate = Math.max(peakBitrate, 8 * windowBytes / windowDuration);
1347
1382
  }
1348
1383
 
1349
- if (windowDuration > 1.5 * this.globalTargetDuration) {
1384
+ if (windowDuration > 1.5 * targetDuration) {
1350
1385
  break;
1351
1386
  }
1352
1387
  }
@@ -1385,7 +1420,11 @@ export class HlsMuxer extends Muxer {
1385
1420
  decoderConfig?.codedHeight ?? 1080,
1386
1421
  );
1387
1422
  } else if (track.isAudioTrack()) {
1388
- trackPeakBitrate = mediumQuality._toAudioBitrate(track.source._codec) ?? 0;
1423
+ const decoderConfig = trackData?.info.decoderConfig as AudioDecoderConfig | undefined;
1424
+ trackPeakBitrate = mediumQuality._toAudioBitrate(
1425
+ track.source._codec,
1426
+ decoderConfig?.numberOfChannels ?? 2,
1427
+ ) ?? 0;
1389
1428
  }
1390
1429
  }
1391
1430
 
@@ -1401,7 +1440,14 @@ export class HlsMuxer extends Muxer {
1401
1440
  assert(this.output._target instanceof PathedTarget);
1402
1441
  const pathedTarget = this.output._target;
1403
1442
 
1404
- this.updatePlaylistBitrates(playlist);
1443
+ // In live mode, target duration is not allowed to change, so we use the nominal value. It must be a
1444
+ // "decimal-integer", and it's rounded like the EXTINF values first so that float noise doesn't mess it up
1445
+ const targetDuration = Math.max(
1446
+ Math.ceil(+(this.isLive ? this.targetSegmentDuration : this.globalTargetDuration).toFixed(12)),
1447
+ 1, // A target duration of 0 is kinda weird
1448
+ );
1449
+
1450
+ this.updatePlaylistBitrates(playlist, targetDuration);
1405
1451
 
1406
1452
  let hasByteOffsets = false;
1407
1453
  for (const segment of playlist.writtenSegments) {
@@ -1423,14 +1469,11 @@ export class HlsMuxer extends Muxer {
1423
1469
  version = 6;
1424
1470
  }
1425
1471
 
1426
- // In live mode, target duration is not allowed to change, so we use the nominal value
1427
- const targetDuration = this.isLive ? this.targetSegmentDuration : this.globalTargetDuration;
1428
-
1429
1472
  const playlistPath = joinPaths(pathedTarget.rootPath, playlist.path);
1430
1473
  const playlistText = '#EXTM3U\n'
1431
1474
  + `#EXT-X-VERSION:${version}\n`
1432
1475
  + (!this.isLive ? '#EXT-X-PLAYLIST-TYPE:VOD\n' : '')
1433
- + `#EXT-X-TARGETDURATION:${Math.ceil(targetDuration)}\n` // Must be a "decimal-integer"
1476
+ + `#EXT-X-TARGETDURATION:${targetDuration}\n`
1434
1477
  + (Number.isFinite(this.maxLiveSegmentCount) ? `#EXT-X-MEDIA-SEQUENCE:${playlist.mediaSequence}\n` : '')
1435
1478
  + '#EXT-X-INDEPENDENT-SEGMENTS\n'
1436
1479
  + (isKeyPacketsOnly ? '#EXT-X-I-FRAMES-ONLY\n' : '')
@@ -1483,6 +1526,7 @@ export class HlsMuxer extends Muxer {
1483
1526
  let lastGroupId: string | null = null;
1484
1527
  let groupIdTrackCount = 0;
1485
1528
  let hasHadDefaultTrackInGroup = false;
1529
+ const namesInGroup = new Set<string>();
1486
1530
 
1487
1531
  for (const decl of this.playlistDeclarations) {
1488
1532
  if (decl.groupId === null) {
@@ -1499,23 +1543,28 @@ export class HlsMuxer extends Muxer {
1499
1543
  let peakDeclBitrate = 0;
1500
1544
  let maxRefAverageBitrate = 0;
1501
1545
 
1502
- if (decl.references.length > 0) {
1503
- const firstRef = decl.references[0]!;
1504
- const firstTrack = firstRef.playlist.tracks[0]!;
1505
- const trackData = this.trackDatas.find(x => x.track === firstTrack);
1506
- const codecString = trackData?.info.decoderConfig.codec ?? firstTrack.source._codec;
1507
- codecs.push(toHlsCodecString(codecString));
1546
+ // The variant's own playlist can be the URI-less rendition of the group it references, in which case
1547
+ // the group's renditions take the place of the variant's own media instead of adding to it
1548
+ const ownPlaylistIsReferenced = decl.references.some(x => x.playlist === decl.playlist);
1508
1549
 
1509
- for (const ref of decl.references) {
1510
- assert(ref.playlist.peakBitrate !== null);
1511
- peakDeclBitrate = Math.max(peakDeclBitrate, ref.playlist.peakBitrate);
1512
- maxRefAverageBitrate = Math.max(maxRefAverageBitrate, ref.playlist.averageBitrate ?? 0);
1550
+ for (const ref of decl.references) {
1551
+ // The spec wants every codec of any rendition in the group listed
1552
+ for (const track of ref.playlist.tracks) {
1553
+ const trackData = this.trackDatas.find(x => x.track === track);
1554
+ const codecString = trackData?.info.decoderConfig.codec ?? track.source._codec;
1555
+ codecs.push(toHlsCodecString(codecString));
1513
1556
  }
1557
+
1558
+ assert(ref.playlist.peakBitrate !== null);
1559
+ peakDeclBitrate = Math.max(peakDeclBitrate, ref.playlist.peakBitrate);
1560
+ maxRefAverageBitrate = Math.max(maxRefAverageBitrate, ref.playlist.averageBitrate ?? 0);
1514
1561
  }
1515
1562
 
1516
1563
  assert(decl.playlist.peakBitrate !== null);
1517
- const totalPeakBitrate = decl.playlist.peakBitrate + peakDeclBitrate;
1518
- const totalAverageBitrate = (decl.playlist.averageBitrate ?? 0) + maxRefAverageBitrate;
1564
+ const ownPeakBitrate = ownPlaylistIsReferenced ? 0 : decl.playlist.peakBitrate;
1565
+ const ownAverageBitrate = ownPlaylistIsReferenced ? 0 : (decl.playlist.averageBitrate ?? 0);
1566
+ const totalPeakBitrate = ownPeakBitrate + peakDeclBitrate;
1567
+ const totalAverageBitrate = ownAverageBitrate + maxRefAverageBitrate;
1519
1568
 
1520
1569
  if (!firstVariantWritten) {
1521
1570
  masterPlaylistText += '\n';
@@ -1534,7 +1583,7 @@ export class HlsMuxer extends Muxer {
1534
1583
  masterPlaylistText += `,AVERAGE-BANDWIDTH=${Math.ceil(totalAverageBitrate)}`;
1535
1584
  }
1536
1585
 
1537
- masterPlaylistText += `,CODECS="${codecs.join(',')}"`;
1586
+ masterPlaylistText += `,CODECS="${[...new Set(codecs)].join(',')}"`;
1538
1587
 
1539
1588
  const videoTrack = decl.playlist.tracks.find(x => x.isVideoTrack());
1540
1589
  if (videoTrack?.isVideoTrack()) {
@@ -1542,19 +1591,34 @@ export class HlsMuxer extends Muxer {
1542
1591
  HlsVideoTrackData | undefined;
1543
1592
  const decoderConfig = trackData?.info.decoderConfig;
1544
1593
  if (decoderConfig) {
1545
- let width = decoderConfig.displayAspectWidth ?? decoderConfig.codedWidth;
1546
- let height = decoderConfig.displayAspectHeight ?? decoderConfig.codedHeight;
1547
-
1548
- if (width !== undefined && height !== undefined) {
1549
- if (
1550
- videoTrack.metadata.rotation !== undefined
1551
- && videoTrack.metadata.rotation % 180 === 90
1552
- ) {
1553
- [width, height] = [height, width];
1594
+ assert(decoderConfig.codedWidth !== undefined);
1595
+ assert(decoderConfig.codedHeight !== undefined);
1596
+
1597
+ let width = decoderConfig.codedWidth;
1598
+ let height = decoderConfig.codedHeight;
1599
+
1600
+ if (
1601
+ decoderConfig.displayAspectWidth !== undefined
1602
+ && decoderConfig.displayAspectHeight !== undefined
1603
+ ) {
1604
+ const num = decoderConfig.displayAspectWidth * decoderConfig.codedHeight;
1605
+ const den = decoderConfig.displayAspectHeight * decoderConfig.codedWidth;
1606
+
1607
+ if (num > den) {
1608
+ width = Math.round(width * num / den);
1609
+ } else {
1610
+ height = Math.round(height * den / num);
1554
1611
  }
1612
+ }
1555
1613
 
1556
- masterPlaylistText += `,RESOLUTION=${width}x${height}`;
1614
+ if (
1615
+ videoTrack.metadata.rotation !== undefined
1616
+ && videoTrack.metadata.rotation % 180 === 90
1617
+ ) {
1618
+ [width, height] = [height, width];
1557
1619
  }
1620
+
1621
+ masterPlaylistText += `,RESOLUTION=${width}x${height}`;
1558
1622
  }
1559
1623
 
1560
1624
  // FRAME-RATE is not defined for EXT-X-I-FRAME-STREAM-INF
@@ -1598,10 +1662,12 @@ export class HlsMuxer extends Muxer {
1598
1662
  groupIdTrackCount = 0;
1599
1663
  masterPlaylistText += '\n';
1600
1664
  hasHadDefaultTrackInGroup = false;
1665
+ namesInGroup.clear();
1601
1666
  }
1602
1667
  lastGroupId = decl.groupId;
1603
1668
  groupIdTrackCount++;
1604
1669
 
1670
+ // Once subtitle tracks are supported, this logic is wrong (they need TYPE=SUBTITLES)
1605
1671
  masterPlaylistText += `#EXT-X-MEDIA:TYPE=${type.toUpperCase()},GROUP-ID="${decl.groupId}"`;
1606
1672
 
1607
1673
  if (name !== null && /[\n\r"]/.test(name)) {
@@ -1615,7 +1681,14 @@ export class HlsMuxer extends Muxer {
1615
1681
  // Name is required, so we have to set it to SOMETHING
1616
1682
  name ??= `${languageCode ?? decl.groupId}-${groupIdTrackCount}`;
1617
1683
 
1618
- masterPlaylistText += `,NAME="${name}"`;
1684
+ // The spec requires distinct names within a group
1685
+ let uniqueName = name;
1686
+ for (let i = 2; namesInGroup.has(uniqueName); i++) {
1687
+ uniqueName = `${name} (${i})`;
1688
+ }
1689
+ namesInGroup.add(uniqueName);
1690
+
1691
+ masterPlaylistText += `,NAME="${uniqueName}"`;
1619
1692
 
1620
1693
  if (languageCode !== undefined) {
1621
1694
  masterPlaylistText += `,LANGUAGE="${languageCode}"`;
@@ -1635,7 +1708,7 @@ export class HlsMuxer extends Muxer {
1635
1708
  masterPlaylistText += ',AUTOSELECT=YES';
1636
1709
  }
1637
1710
 
1638
- if (dispositionForced) {
1711
+ if (dispositionForced && type === 'subtitle') { // The spec reserves FORCED for subtitle renditions
1639
1712
  masterPlaylistText += ',FORCED=YES';
1640
1713
  }
1641
1714
 
@@ -1707,8 +1780,8 @@ export class HlsMuxer extends Muxer {
1707
1780
  const releases = await Promise.all(this.playlists.map(p => p.mutex.acquire()));
1708
1781
  releases.forEach(release => release());
1709
1782
 
1710
- for (const trackData of this.trackDatas) {
1711
- trackData.closed = true;
1783
+ for (const track of this.output.tracks) {
1784
+ this.closedTracks.add(track);
1712
1785
  }
1713
1786
 
1714
1787
  await Promise.all(this.playlists.map(playlist => (
@@ -1716,6 +1789,7 @@ export class HlsMuxer extends Muxer {
1716
1789
  )));
1717
1790
 
1718
1791
  if (!this.isLive) {
1792
+ await Promise.all(this.playlists.map(playlist => this.writePlaylist(playlist)));
1719
1793
  await this.writeMasterPlaylist();
1720
1794
  }
1721
1795
  }