@blockcast/mmt-container 0.3.0 → 0.4.0-main.d6f2737828fc

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 (588) hide show
  1. package/README.md +22 -8
  2. package/dist/browser-runtime.js +1185 -1049
  3. package/dist/browser-runtime.js.map +4 -4
  4. package/dist/carp-catalog.d.ts +24 -8
  5. package/dist/carp-catalog.d.ts.map +1 -1
  6. package/dist/carp-catalog.js +21 -8
  7. package/dist/carp-catalog.js.map +2 -2
  8. package/dist/catalog-fec-params.d.ts +88 -28
  9. package/dist/catalog-fec-params.d.ts.map +1 -1
  10. package/dist/catalog-fec-params.js +59 -17
  11. package/dist/catalog-fec-params.js.map +3 -3
  12. package/dist/catalog-network-source.js +0 -1
  13. package/dist/catalog-network-source.js.map +2 -2
  14. package/dist/cmaf-block-assembler.d.ts +0 -2
  15. package/dist/cmaf-block-assembler.d.ts.map +1 -1
  16. package/dist/cmaf-block-assembler.js +0 -1
  17. package/dist/cmaf-block-assembler.js.map +2 -2
  18. package/dist/delta-fallback-config.d.ts +42 -0
  19. package/dist/delta-fallback-config.d.ts.map +1 -0
  20. package/dist/delta-fallback-config.js +59 -0
  21. package/dist/delta-fallback-config.js.map +7 -0
  22. package/dist/fec-manager.d.ts +35 -26
  23. package/dist/fec-manager.d.ts.map +1 -1
  24. package/dist/fec-manager.js +300 -273
  25. package/dist/fec-manager.js.map +2 -2
  26. package/dist/fec-state.d.ts +19 -31
  27. package/dist/fec-state.d.ts.map +1 -1
  28. package/dist/fec-state.js +3 -4
  29. package/dist/fec-state.js.map +2 -2
  30. package/dist/fec-worker-setup.d.ts +16 -6
  31. package/dist/fec-worker-setup.d.ts.map +1 -1
  32. package/dist/fec-worker-setup.js +72 -34
  33. package/dist/fec-worker-setup.js.map +2 -2
  34. package/dist/index.d.ts +4 -3
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +12 -0
  37. package/dist/index.js.map +2 -2
  38. package/dist/iso-block-locator.js +0 -1
  39. package/dist/iso-block-locator.js.map +2 -2
  40. package/dist/media-router.d.ts +20 -8
  41. package/dist/media-router.d.ts.map +1 -1
  42. package/dist/media-router.js +46 -21
  43. package/dist/media-router.js.map +2 -2
  44. package/dist/mfu-reassembler.js +0 -1
  45. package/dist/mfu-reassembler.js.map +2 -2
  46. package/dist/mmtp-container-parser.d.ts +5 -0
  47. package/dist/mmtp-container-parser.d.ts.map +1 -1
  48. package/dist/mmtp-container-parser.js +22 -1
  49. package/dist/mmtp-container-parser.js.map +2 -2
  50. package/dist/mmtp-container-parser.no-modules.js +37 -9
  51. package/dist/mmtp-container-parser.no-modules.js.map +2 -2
  52. package/dist/mmtp-decode-pipeline.js +22 -1
  53. package/dist/mmtp-decode-pipeline.js.map +2 -2
  54. package/dist/mmtp-router.d.ts +36 -16
  55. package/dist/mmtp-router.d.ts.map +1 -1
  56. package/dist/mmtp-router.js +126 -213
  57. package/dist/mmtp-router.js.map +2 -2
  58. package/dist/multicast-input.js +0 -1
  59. package/dist/multicast-input.js.map +2 -2
  60. package/dist/multicast-manager.d.ts +33 -3
  61. package/dist/multicast-manager.d.ts.map +1 -1
  62. package/dist/multicast-manager.js +660 -529
  63. package/dist/multicast-manager.js.map +4 -4
  64. package/dist/multicast-transport.d.ts +1 -1
  65. package/dist/multicast-transport.d.ts.map +1 -1
  66. package/dist/multicast-transport.js +42 -14
  67. package/dist/multicast-transport.js.map +3 -3
  68. package/dist/multicast-unwrap.js +0 -1
  69. package/dist/multicast-unwrap.js.map +2 -2
  70. package/dist/no-modules.js +36 -8
  71. package/dist/no-modules.js.map +2 -2
  72. package/dist/repair-fetch.d.ts +30 -19
  73. package/dist/repair-fetch.d.ts.map +1 -1
  74. package/dist/repair-fetch.js +32 -18
  75. package/dist/repair-fetch.js.map +3 -3
  76. package/dist/repair-layers.d.ts +18 -7
  77. package/dist/repair-layers.d.ts.map +1 -1
  78. package/dist/repair-layers.js +11 -4
  79. package/dist/repair-layers.js.map +2 -2
  80. package/dist/signaling.js +0 -4
  81. package/dist/signaling.js.map +2 -2
  82. package/dist/timestamp-codec.js +0 -1
  83. package/dist/timestamp-codec.js.map +2 -2
  84. package/dist/track-session.d.ts +7 -0
  85. package/dist/track-session.d.ts.map +1 -1
  86. package/dist/track-session.js +15 -8
  87. package/dist/track-session.js.map +2 -2
  88. package/dist/wasm-mfu-reassembler.js +0 -1
  89. package/dist/wasm-mfu-reassembler.js.map +2 -2
  90. package/dist/wasm-mmtp-container-parser.js +22 -1
  91. package/dist/wasm-mmtp-container-parser.js.map +2 -2
  92. package/package.json +8 -14
  93. package/schemas/catalog.schema.json +3 -3
  94. package/src/carp-catalog.ts +35 -13
  95. package/src/catalog-fec-params.ts +173 -64
  96. package/src/cmaf-block-assembler.ts +1 -4
  97. package/src/delta-fallback-config.ts +72 -0
  98. package/src/fec-manager.ts +413 -317
  99. package/src/fec-state.ts +20 -32
  100. package/src/fec-worker-setup.ts +105 -55
  101. package/src/index.ts +10 -0
  102. package/src/media-router.ts +59 -21
  103. package/src/mmtp-container-parser.ts +26 -0
  104. package/src/mmtp-router.ts +145 -303
  105. package/src/multicast-manager.ts +172 -60
  106. package/src/multicast-transport.ts +16 -9
  107. package/src/repair-fetch.ts +46 -27
  108. package/src/repair-layers.ts +28 -8
  109. package/src/track-session.ts +28 -9
  110. package/test-vectors/catalog/README.md +34 -17
  111. package/test-vectors/catalog/negative/fec-block-profile-retired.json +52 -0
  112. package/test-vectors/catalog/negative/fec-enhancement-repair-removed.json +1 -1
  113. package/test-vectors/catalog/negative/fec-repair-layer-geometry.json +1 -1
  114. package/test-vectors/catalog/negative/fec-repair-layer-missing-symbols.json +1 -1
  115. package/test-vectors/catalog/negative/fec-repair-multiple-depends.json +1 -1
  116. package/test-vectors/catalog/negative/fec-repair-overlay-with-layer.json +1 -1
  117. package/test-vectors/catalog/negative/fec-repair-priority-out-of-band.json +1 -1
  118. package/test-vectors/catalog/negative/fec-repair-source-symbols-without-scope.json +1 -1
  119. package/test-vectors/catalog/negative/multicast-network-source-empty.json +1 -1
  120. package/test-vectors/catalog/negative/raptorq-source-symbols-over-max.json +1 -1
  121. package/test-vectors/catalog/negative/raptorq-unaligned-symbol.json +1 -1
  122. package/test-vectors/catalog/positive/fec-layered-repair.json +2 -2
  123. package/test-vectors/catalog/positive/fec-multicast.json +2 -1
  124. package/test-vectors/catalog/positive/multicast-native-ssm-no-network-source.json +2 -1
  125. package/test-vectors/catalog-timing.json +356 -0
  126. package/test-vectors/catalog-validation.json +40 -5
  127. package/node_modules/@blockcast/fec-worker/README.md +0 -223
  128. package/node_modules/@blockcast/fec-worker/dist/.build-stamp +0 -0
  129. package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts +0 -38
  130. package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts.map +0 -1
  131. package/node_modules/@blockcast/fec-worker/dist/block-order.js +0 -78
  132. package/node_modules/@blockcast/fec-worker/dist/block-order.js.map +0 -1
  133. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts +0 -93
  134. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts.map +0 -1
  135. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js +0 -346
  136. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js.map +0 -1
  137. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts +0 -380
  138. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts.map +0 -1
  139. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js +0 -11
  140. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js.map +0 -1
  141. package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts +0 -14
  142. package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts.map +0 -1
  143. package/node_modules/@blockcast/fec-worker/dist/fec-worker.js +0 -859
  144. package/node_modules/@blockcast/fec-worker/dist/fec-worker.js.map +0 -7
  145. package/node_modules/@blockcast/fec-worker/dist/index.d.ts +0 -10
  146. package/node_modules/@blockcast/fec-worker/dist/index.d.ts.map +0 -1
  147. package/node_modules/@blockcast/fec-worker/dist/index.js +0 -8
  148. package/node_modules/@blockcast/fec-worker/dist/index.js.map +0 -1
  149. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts +0 -20
  150. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts.map +0 -1
  151. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js +0 -370
  152. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js.map +0 -7
  153. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts +0 -104
  154. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts.map +0 -1
  155. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js +0 -181
  156. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js.map +0 -1
  157. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts +0 -194
  158. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts.map +0 -1
  159. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js +0 -62
  160. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js.map +0 -1
  161. package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts +0 -9
  162. package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts.map +0 -1
  163. package/node_modules/@blockcast/fec-worker/dist/transfer.js +0 -13
  164. package/node_modules/@blockcast/fec-worker/dist/transfer.js.map +0 -1
  165. package/node_modules/@blockcast/fec-worker/package.json +0 -59
  166. package/node_modules/@blockcast/fec-worker/src/block-order.ts +0 -93
  167. package/node_modules/@blockcast/fec-worker/src/fec-worker-client.ts +0 -392
  168. package/node_modules/@blockcast/fec-worker/src/fec-worker-types.ts +0 -399
  169. package/node_modules/@blockcast/fec-worker/src/fec-worker.ts +0 -1502
  170. package/node_modules/@blockcast/fec-worker/src/index.ts +0 -35
  171. package/node_modules/@blockcast/fec-worker/src/shred-fec-worker.ts +0 -589
  172. package/node_modules/@blockcast/fec-worker/src/shred-worker-client.ts +0 -222
  173. package/node_modules/@blockcast/fec-worker/src/shred-worker-types.ts +0 -209
  174. package/node_modules/@blockcast/fec-worker/src/transfer.ts +0 -12
  175. package/node_modules/@blockcast/mmt-alta-parse/README.md +0 -181
  176. package/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
  177. package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +0 -57
  178. package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +0 -1
  179. package/node_modules/@blockcast/mmt-alta-parse/dist/index.js +0 -115
  180. package/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +0 -1
  181. package/node_modules/@blockcast/mmt-alta-parse/package.json +0 -50
  182. package/node_modules/@blockcast/mmt-alta-parse/src/index.ts +0 -136
  183. package/node_modules/@blockcast/mmt-base/README.md +0 -134
  184. package/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
  185. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts +0 -55
  186. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +0 -1
  187. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +0 -128
  188. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +0 -1
  189. package/node_modules/@blockcast/mmt-base/dist/index.d.ts +0 -7
  190. package/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +0 -1
  191. package/node_modules/@blockcast/mmt-base/dist/index.js +0 -7
  192. package/node_modules/@blockcast/mmt-base/dist/index.js.map +0 -1
  193. package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +0 -292
  194. package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +0 -1
  195. package/node_modules/@blockcast/mmt-base/dist/mmtp.js +0 -612
  196. package/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +0 -1
  197. package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts +0 -18
  198. package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +0 -1
  199. package/node_modules/@blockcast/mmt-base/dist/net-constants.js +0 -18
  200. package/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +0 -1
  201. package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +0 -47
  202. package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +0 -1
  203. package/node_modules/@blockcast/mmt-base/dist/ntp-short.js +0 -54
  204. package/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +0 -1
  205. package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +0 -57
  206. package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +0 -1
  207. package/node_modules/@blockcast/mmt-base/dist/serial-number.js +0 -98
  208. package/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +0 -1
  209. package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +0 -312
  210. package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +0 -1
  211. package/node_modules/@blockcast/mmt-base/dist/signalling.js +0 -637
  212. package/node_modules/@blockcast/mmt-base/dist/signalling.js.map +0 -1
  213. package/node_modules/@blockcast/mmt-base/package.json +0 -49
  214. package/node_modules/@blockcast/mmt-base/src/fec-block-profile.ts +0 -145
  215. package/node_modules/@blockcast/mmt-base/src/index.ts +0 -6
  216. package/node_modules/@blockcast/mmt-base/src/mmtp.ts +0 -892
  217. package/node_modules/@blockcast/mmt-base/src/net-constants.ts +0 -17
  218. package/node_modules/@blockcast/mmt-base/src/ntp-short.ts +0 -67
  219. package/node_modules/@blockcast/mmt-base/src/serial-number.ts +0 -107
  220. package/node_modules/@blockcast/mmt-base/src/signalling.ts +0 -862
  221. package/node_modules/@blockcast/mmt-fec/README.md +0 -271
  222. package/node_modules/@blockcast/mmt-fec/dist/.build-stamp +0 -0
  223. package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts +0 -82
  224. package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts.map +0 -1
  225. package/node_modules/@blockcast/mmt-fec/dist/block-manager.js +0 -296
  226. package/node_modules/@blockcast/mmt-fec/dist/block-manager.js.map +0 -1
  227. package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts +0 -106
  228. package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts.map +0 -1
  229. package/node_modules/@blockcast/mmt-fec/dist/block-processor.js +0 -288
  230. package/node_modules/@blockcast/mmt-fec/dist/block-processor.js.map +0 -1
  231. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts +0 -46
  232. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts.map +0 -1
  233. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js +0 -96
  234. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js.map +0 -1
  235. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts +0 -33
  236. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts.map +0 -1
  237. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js +0 -57
  238. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js.map +0 -1
  239. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts +0 -205
  240. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts.map +0 -1
  241. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js +0 -240
  242. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js.map +0 -1
  243. package/node_modules/@blockcast/mmt-fec/dist/index.d.ts +0 -28
  244. package/node_modules/@blockcast/mmt-fec/dist/index.d.ts.map +0 -1
  245. package/node_modules/@blockcast/mmt-fec/dist/index.js +0 -28
  246. package/node_modules/@blockcast/mmt-fec/dist/index.js.map +0 -1
  247. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts +0 -20
  248. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts.map +0 -1
  249. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js +0 -28
  250. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js.map +0 -1
  251. package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts +0 -258
  252. package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts.map +0 -1
  253. package/node_modules/@blockcast/mmt-fec/dist/oti.js +0 -382
  254. package/node_modules/@blockcast/mmt-fec/dist/oti.js.map +0 -1
  255. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts +0 -41
  256. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts.map +0 -1
  257. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js +0 -81
  258. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js.map +0 -1
  259. package/node_modules/@blockcast/mmt-fec/dist/repair-group.d.ts +0 -82
  260. package/node_modules/@blockcast/mmt-fec/dist/repair-group.d.ts.map +0 -1
  261. package/node_modules/@blockcast/mmt-fec/dist/repair-group.js +0 -170
  262. package/node_modules/@blockcast/mmt-fec/dist/repair-group.js.map +0 -1
  263. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/README.md +0 -181
  264. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
  265. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +0 -57
  266. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +0 -1
  267. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js +0 -115
  268. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +0 -1
  269. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/package.json +0 -50
  270. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/src/index.ts +0 -136
  271. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/README.md +0 -134
  272. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
  273. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts +0 -55
  274. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +0 -1
  275. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +0 -128
  276. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +0 -1
  277. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts +0 -7
  278. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +0 -1
  279. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js +0 -7
  280. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js.map +0 -1
  281. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +0 -292
  282. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +0 -1
  283. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js +0 -612
  284. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +0 -1
  285. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts +0 -18
  286. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +0 -1
  287. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js +0 -18
  288. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +0 -1
  289. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +0 -47
  290. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +0 -1
  291. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js +0 -54
  292. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +0 -1
  293. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +0 -57
  294. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +0 -1
  295. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js +0 -98
  296. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +0 -1
  297. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +0 -312
  298. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +0 -1
  299. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.js +0 -637
  300. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.js.map +0 -1
  301. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/package.json +0 -49
  302. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/fec-block-profile.ts +0 -145
  303. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/index.ts +0 -6
  304. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/mmtp.ts +0 -892
  305. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/net-constants.ts +0 -17
  306. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/ntp-short.ts +0 -67
  307. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/serial-number.ts +0 -107
  308. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/signalling.ts +0 -862
  309. package/node_modules/@blockcast/mmt-fec/package.json +0 -79
  310. package/node_modules/@blockcast/mmt-fec/src/block-manager.ts +0 -371
  311. package/node_modules/@blockcast/mmt-fec/src/block-processor.ts +0 -439
  312. package/node_modules/@blockcast/mmt-fec/src/cmaf-recovery.ts +0 -127
  313. package/node_modules/@blockcast/mmt-fec/src/cmaf-symbols.ts +0 -68
  314. package/node_modules/@blockcast/mmt-fec/src/fec-block-mapper.ts +0 -310
  315. package/node_modules/@blockcast/mmt-fec/src/index.ts +0 -94
  316. package/node_modules/@blockcast/mmt-fec/src/loc-symbols.ts +0 -34
  317. package/node_modules/@blockcast/mmt-fec/src/oti.ts +0 -463
  318. package/node_modules/@blockcast/mmt-fec/src/reorder-buffer.ts +0 -101
  319. package/node_modules/@blockcast/mmt-fec/src/repair-group.ts +0 -195
  320. package/node_modules/@blockcast/mmt-manifest-verify/dist/.build-stamp +0 -0
  321. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts +0 -28
  322. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts.map +0 -1
  323. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js +0 -128
  324. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js.map +0 -1
  325. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts +0 -4
  326. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts.map +0 -1
  327. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js +0 -4
  328. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js.map +0 -1
  329. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts +0 -37
  330. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts.map +0 -1
  331. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js +0 -179
  332. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js.map +0 -1
  333. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts +0 -99
  334. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts.map +0 -1
  335. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js +0 -492
  336. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js.map +0 -1
  337. package/node_modules/@blockcast/mmt-manifest-verify/package.json +0 -45
  338. package/node_modules/@blockcast/mmt-manifest-verify/src/admission.ts +0 -171
  339. package/node_modules/@blockcast/mmt-manifest-verify/src/index.ts +0 -3
  340. package/node_modules/@blockcast/mmt-manifest-verify/src/source-auth.ts +0 -230
  341. package/node_modules/@blockcast/mmt-manifest-verify/src/verifier.ts +0 -669
  342. package/node_modules/@noble/hashes/LICENSE +0 -21
  343. package/node_modules/@noble/hashes/README.md +0 -521
  344. package/node_modules/@noble/hashes/_assert.d.ts +0 -17
  345. package/node_modules/@noble/hashes/_assert.d.ts.map +0 -1
  346. package/node_modules/@noble/hashes/_assert.js +0 -18
  347. package/node_modules/@noble/hashes/_assert.js.map +0 -1
  348. package/node_modules/@noble/hashes/_blake.d.ts +0 -14
  349. package/node_modules/@noble/hashes/_blake.d.ts.map +0 -1
  350. package/node_modules/@noble/hashes/_blake.js +0 -50
  351. package/node_modules/@noble/hashes/_blake.js.map +0 -1
  352. package/node_modules/@noble/hashes/_md.d.ts +0 -51
  353. package/node_modules/@noble/hashes/_md.d.ts.map +0 -1
  354. package/node_modules/@noble/hashes/_md.js +0 -162
  355. package/node_modules/@noble/hashes/_md.js.map +0 -1
  356. package/node_modules/@noble/hashes/_u64.d.ts +0 -55
  357. package/node_modules/@noble/hashes/_u64.d.ts.map +0 -1
  358. package/node_modules/@noble/hashes/_u64.js +0 -90
  359. package/node_modules/@noble/hashes/_u64.js.map +0 -1
  360. package/node_modules/@noble/hashes/argon2.d.ts +0 -32
  361. package/node_modules/@noble/hashes/argon2.d.ts.map +0 -1
  362. package/node_modules/@noble/hashes/argon2.js +0 -401
  363. package/node_modules/@noble/hashes/argon2.js.map +0 -1
  364. package/node_modules/@noble/hashes/blake1.d.ts +0 -106
  365. package/node_modules/@noble/hashes/blake1.d.ts.map +0 -1
  366. package/node_modules/@noble/hashes/blake1.js +0 -459
  367. package/node_modules/@noble/hashes/blake1.js.map +0 -1
  368. package/node_modules/@noble/hashes/blake2.d.ts +0 -116
  369. package/node_modules/@noble/hashes/blake2.d.ts.map +0 -1
  370. package/node_modules/@noble/hashes/blake2.js +0 -420
  371. package/node_modules/@noble/hashes/blake2.js.map +0 -1
  372. package/node_modules/@noble/hashes/blake2b.d.ts +0 -11
  373. package/node_modules/@noble/hashes/blake2b.d.ts.map +0 -1
  374. package/node_modules/@noble/hashes/blake2b.js +0 -14
  375. package/node_modules/@noble/hashes/blake2b.js.map +0 -1
  376. package/node_modules/@noble/hashes/blake2s.d.ts +0 -20
  377. package/node_modules/@noble/hashes/blake2s.d.ts.map +0 -1
  378. package/node_modules/@noble/hashes/blake2s.js +0 -24
  379. package/node_modules/@noble/hashes/blake2s.js.map +0 -1
  380. package/node_modules/@noble/hashes/blake3.d.ts +0 -54
  381. package/node_modules/@noble/hashes/blake3.d.ts.map +0 -1
  382. package/node_modules/@noble/hashes/blake3.js +0 -255
  383. package/node_modules/@noble/hashes/blake3.js.map +0 -1
  384. package/node_modules/@noble/hashes/crypto.d.ts +0 -2
  385. package/node_modules/@noble/hashes/crypto.d.ts.map +0 -1
  386. package/node_modules/@noble/hashes/crypto.js +0 -5
  387. package/node_modules/@noble/hashes/crypto.js.map +0 -1
  388. package/node_modules/@noble/hashes/cryptoNode.d.ts +0 -2
  389. package/node_modules/@noble/hashes/cryptoNode.d.ts.map +0 -1
  390. package/node_modules/@noble/hashes/cryptoNode.js +0 -18
  391. package/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
  392. package/node_modules/@noble/hashes/eskdf.d.ts +0 -47
  393. package/node_modules/@noble/hashes/eskdf.d.ts.map +0 -1
  394. package/node_modules/@noble/hashes/eskdf.js +0 -166
  395. package/node_modules/@noble/hashes/eskdf.js.map +0 -1
  396. package/node_modules/@noble/hashes/esm/_assert.d.ts +0 -17
  397. package/node_modules/@noble/hashes/esm/_assert.d.ts.map +0 -1
  398. package/node_modules/@noble/hashes/esm/_assert.js +0 -15
  399. package/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
  400. package/node_modules/@noble/hashes/esm/_blake.d.ts +0 -14
  401. package/node_modules/@noble/hashes/esm/_blake.d.ts.map +0 -1
  402. package/node_modules/@noble/hashes/esm/_blake.js +0 -45
  403. package/node_modules/@noble/hashes/esm/_blake.js.map +0 -1
  404. package/node_modules/@noble/hashes/esm/_md.d.ts +0 -51
  405. package/node_modules/@noble/hashes/esm/_md.d.ts.map +0 -1
  406. package/node_modules/@noble/hashes/esm/_md.js +0 -155
  407. package/node_modules/@noble/hashes/esm/_md.js.map +0 -1
  408. package/node_modules/@noble/hashes/esm/_u64.d.ts +0 -55
  409. package/node_modules/@noble/hashes/esm/_u64.d.ts.map +0 -1
  410. package/node_modules/@noble/hashes/esm/_u64.js +0 -67
  411. package/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
  412. package/node_modules/@noble/hashes/esm/argon2.d.ts +0 -32
  413. package/node_modules/@noble/hashes/esm/argon2.d.ts.map +0 -1
  414. package/node_modules/@noble/hashes/esm/argon2.js +0 -392
  415. package/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
  416. package/node_modules/@noble/hashes/esm/blake1.d.ts +0 -106
  417. package/node_modules/@noble/hashes/esm/blake1.d.ts.map +0 -1
  418. package/node_modules/@noble/hashes/esm/blake1.js +0 -452
  419. package/node_modules/@noble/hashes/esm/blake1.js.map +0 -1
  420. package/node_modules/@noble/hashes/esm/blake2.d.ts +0 -116
  421. package/node_modules/@noble/hashes/esm/blake2.d.ts.map +0 -1
  422. package/node_modules/@noble/hashes/esm/blake2.js +0 -413
  423. package/node_modules/@noble/hashes/esm/blake2.js.map +0 -1
  424. package/node_modules/@noble/hashes/esm/blake2b.d.ts +0 -11
  425. package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +0 -1
  426. package/node_modules/@noble/hashes/esm/blake2b.js +0 -11
  427. package/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
  428. package/node_modules/@noble/hashes/esm/blake2s.d.ts +0 -20
  429. package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +0 -1
  430. package/node_modules/@noble/hashes/esm/blake2s.js +0 -21
  431. package/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
  432. package/node_modules/@noble/hashes/esm/blake3.d.ts +0 -54
  433. package/node_modules/@noble/hashes/esm/blake3.d.ts.map +0 -1
  434. package/node_modules/@noble/hashes/esm/blake3.js +0 -251
  435. package/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
  436. package/node_modules/@noble/hashes/esm/crypto.d.ts +0 -2
  437. package/node_modules/@noble/hashes/esm/crypto.d.ts.map +0 -1
  438. package/node_modules/@noble/hashes/esm/crypto.js +0 -2
  439. package/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
  440. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +0 -2
  441. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +0 -1
  442. package/node_modules/@noble/hashes/esm/cryptoNode.js +0 -15
  443. package/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
  444. package/node_modules/@noble/hashes/esm/eskdf.d.ts +0 -47
  445. package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +0 -1
  446. package/node_modules/@noble/hashes/esm/eskdf.js +0 -160
  447. package/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
  448. package/node_modules/@noble/hashes/esm/hkdf.d.ts +0 -36
  449. package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +0 -1
  450. package/node_modules/@noble/hashes/esm/hkdf.js +0 -82
  451. package/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
  452. package/node_modules/@noble/hashes/esm/hmac.d.ts +0 -35
  453. package/node_modules/@noble/hashes/esm/hmac.d.ts.map +0 -1
  454. package/node_modules/@noble/hashes/esm/hmac.js +0 -86
  455. package/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
  456. package/node_modules/@noble/hashes/esm/index.d.ts +0 -2
  457. package/node_modules/@noble/hashes/esm/index.d.ts.map +0 -1
  458. package/node_modules/@noble/hashes/esm/index.js +0 -33
  459. package/node_modules/@noble/hashes/esm/index.js.map +0 -1
  460. package/node_modules/@noble/hashes/esm/legacy.d.ts +0 -71
  461. package/node_modules/@noble/hashes/esm/legacy.d.ts.map +0 -1
  462. package/node_modules/@noble/hashes/esm/legacy.js +0 -281
  463. package/node_modules/@noble/hashes/esm/legacy.js.map +0 -1
  464. package/node_modules/@noble/hashes/esm/package.json +0 -10
  465. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +0 -23
  466. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +0 -1
  467. package/node_modules/@noble/hashes/esm/pbkdf2.js +0 -97
  468. package/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
  469. package/node_modules/@noble/hashes/esm/ripemd160.d.ts +0 -13
  470. package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +0 -1
  471. package/node_modules/@noble/hashes/esm/ripemd160.js +0 -13
  472. package/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
  473. package/node_modules/@noble/hashes/esm/scrypt.d.ts +0 -34
  474. package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +0 -1
  475. package/node_modules/@noble/hashes/esm/scrypt.js +0 -228
  476. package/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
  477. package/node_modules/@noble/hashes/esm/sha1.d.ts +0 -11
  478. package/node_modules/@noble/hashes/esm/sha1.d.ts.map +0 -1
  479. package/node_modules/@noble/hashes/esm/sha1.js +0 -11
  480. package/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
  481. package/node_modules/@noble/hashes/esm/sha2.d.ts +0 -159
  482. package/node_modules/@noble/hashes/esm/sha2.d.ts.map +0 -1
  483. package/node_modules/@noble/hashes/esm/sha2.js +0 -375
  484. package/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
  485. package/node_modules/@noble/hashes/esm/sha256.d.ts +0 -20
  486. package/node_modules/@noble/hashes/esm/sha256.d.ts.map +0 -1
  487. package/node_modules/@noble/hashes/esm/sha256.js +0 -20
  488. package/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
  489. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +0 -142
  490. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +0 -1
  491. package/node_modules/@noble/hashes/esm/sha3-addons.js +0 -393
  492. package/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
  493. package/node_modules/@noble/hashes/esm/sha3.d.ts +0 -53
  494. package/node_modules/@noble/hashes/esm/sha3.d.ts.map +0 -1
  495. package/node_modules/@noble/hashes/esm/sha3.js +0 -234
  496. package/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
  497. package/node_modules/@noble/hashes/esm/sha512.d.ts +0 -26
  498. package/node_modules/@noble/hashes/esm/sha512.d.ts.map +0 -1
  499. package/node_modules/@noble/hashes/esm/sha512.js +0 -26
  500. package/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
  501. package/node_modules/@noble/hashes/esm/utils.d.ts +0 -161
  502. package/node_modules/@noble/hashes/esm/utils.d.ts.map +0 -1
  503. package/node_modules/@noble/hashes/esm/utils.js +0 -281
  504. package/node_modules/@noble/hashes/esm/utils.js.map +0 -1
  505. package/node_modules/@noble/hashes/hkdf.d.ts +0 -36
  506. package/node_modules/@noble/hashes/hkdf.d.ts.map +0 -1
  507. package/node_modules/@noble/hashes/hkdf.js +0 -88
  508. package/node_modules/@noble/hashes/hkdf.js.map +0 -1
  509. package/node_modules/@noble/hashes/hmac.d.ts +0 -35
  510. package/node_modules/@noble/hashes/hmac.d.ts.map +0 -1
  511. package/node_modules/@noble/hashes/hmac.js +0 -91
  512. package/node_modules/@noble/hashes/hmac.js.map +0 -1
  513. package/node_modules/@noble/hashes/index.d.ts +0 -1
  514. package/node_modules/@noble/hashes/index.d.ts.map +0 -1
  515. package/node_modules/@noble/hashes/index.js +0 -33
  516. package/node_modules/@noble/hashes/index.js.map +0 -1
  517. package/node_modules/@noble/hashes/legacy.d.ts +0 -71
  518. package/node_modules/@noble/hashes/legacy.d.ts.map +0 -1
  519. package/node_modules/@noble/hashes/legacy.js +0 -287
  520. package/node_modules/@noble/hashes/legacy.js.map +0 -1
  521. package/node_modules/@noble/hashes/package.json +0 -266
  522. package/node_modules/@noble/hashes/pbkdf2.d.ts +0 -23
  523. package/node_modules/@noble/hashes/pbkdf2.d.ts.map +0 -1
  524. package/node_modules/@noble/hashes/pbkdf2.js +0 -101
  525. package/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
  526. package/node_modules/@noble/hashes/ripemd160.d.ts +0 -13
  527. package/node_modules/@noble/hashes/ripemd160.d.ts.map +0 -1
  528. package/node_modules/@noble/hashes/ripemd160.js +0 -16
  529. package/node_modules/@noble/hashes/ripemd160.js.map +0 -1
  530. package/node_modules/@noble/hashes/scrypt.d.ts +0 -34
  531. package/node_modules/@noble/hashes/scrypt.d.ts.map +0 -1
  532. package/node_modules/@noble/hashes/scrypt.js +0 -232
  533. package/node_modules/@noble/hashes/scrypt.js.map +0 -1
  534. package/node_modules/@noble/hashes/sha1.d.ts +0 -11
  535. package/node_modules/@noble/hashes/sha1.d.ts.map +0 -1
  536. package/node_modules/@noble/hashes/sha1.js +0 -14
  537. package/node_modules/@noble/hashes/sha1.js.map +0 -1
  538. package/node_modules/@noble/hashes/sha2.d.ts +0 -159
  539. package/node_modules/@noble/hashes/sha2.d.ts.map +0 -1
  540. package/node_modules/@noble/hashes/sha2.js +0 -384
  541. package/node_modules/@noble/hashes/sha2.js.map +0 -1
  542. package/node_modules/@noble/hashes/sha256.d.ts +0 -20
  543. package/node_modules/@noble/hashes/sha256.d.ts.map +0 -1
  544. package/node_modules/@noble/hashes/sha256.js +0 -23
  545. package/node_modules/@noble/hashes/sha256.js.map +0 -1
  546. package/node_modules/@noble/hashes/sha3-addons.d.ts +0 -142
  547. package/node_modules/@noble/hashes/sha3-addons.d.ts.map +0 -1
  548. package/node_modules/@noble/hashes/sha3-addons.js +0 -402
  549. package/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
  550. package/node_modules/@noble/hashes/sha3.d.ts +0 -53
  551. package/node_modules/@noble/hashes/sha3.d.ts.map +0 -1
  552. package/node_modules/@noble/hashes/sha3.js +0 -239
  553. package/node_modules/@noble/hashes/sha3.js.map +0 -1
  554. package/node_modules/@noble/hashes/sha512.d.ts +0 -26
  555. package/node_modules/@noble/hashes/sha512.d.ts.map +0 -1
  556. package/node_modules/@noble/hashes/sha512.js +0 -29
  557. package/node_modules/@noble/hashes/sha512.js.map +0 -1
  558. package/node_modules/@noble/hashes/src/_assert.ts +0 -22
  559. package/node_modules/@noble/hashes/src/_blake.ts +0 -50
  560. package/node_modules/@noble/hashes/src/_md.ts +0 -176
  561. package/node_modules/@noble/hashes/src/_u64.ts +0 -91
  562. package/node_modules/@noble/hashes/src/argon2.ts +0 -497
  563. package/node_modules/@noble/hashes/src/blake1.ts +0 -534
  564. package/node_modules/@noble/hashes/src/blake2.ts +0 -486
  565. package/node_modules/@noble/hashes/src/blake2b.ts +0 -10
  566. package/node_modules/@noble/hashes/src/blake2s.ts +0 -20
  567. package/node_modules/@noble/hashes/src/blake3.ts +0 -272
  568. package/node_modules/@noble/hashes/src/crypto.ts +0 -9
  569. package/node_modules/@noble/hashes/src/cryptoNode.ts +0 -15
  570. package/node_modules/@noble/hashes/src/eskdf.ts +0 -187
  571. package/node_modules/@noble/hashes/src/hkdf.ts +0 -88
  572. package/node_modules/@noble/hashes/src/hmac.ts +0 -94
  573. package/node_modules/@noble/hashes/src/index.ts +0 -31
  574. package/node_modules/@noble/hashes/src/legacy.ts +0 -293
  575. package/node_modules/@noble/hashes/src/pbkdf2.ts +0 -122
  576. package/node_modules/@noble/hashes/src/ripemd160.ts +0 -12
  577. package/node_modules/@noble/hashes/src/scrypt.ts +0 -257
  578. package/node_modules/@noble/hashes/src/sha1.ts +0 -10
  579. package/node_modules/@noble/hashes/src/sha2.ts +0 -402
  580. package/node_modules/@noble/hashes/src/sha256.ts +0 -24
  581. package/node_modules/@noble/hashes/src/sha3-addons.ts +0 -499
  582. package/node_modules/@noble/hashes/src/sha3.ts +0 -258
  583. package/node_modules/@noble/hashes/src/sha512.ts +0 -34
  584. package/node_modules/@noble/hashes/src/utils.ts +0 -395
  585. package/node_modules/@noble/hashes/utils.d.ts +0 -161
  586. package/node_modules/@noble/hashes/utils.d.ts.map +0 -1
  587. package/node_modules/@noble/hashes/utils.js +0 -313
  588. package/node_modules/@noble/hashes/utils.js.map +0 -1
@@ -1,612 +0,0 @@
1
- import { MMTP_EXT_TYPE_ALTA_AUTH as _LEAF_MMTP_EXT_TYPE_ALTA_AUTH, MMTP_EXT_TRAILER_HEADER_SIZE as _LEAF_MMTP_EXT_TRAILER_HEADER_SIZE, extractAltaTrailer as _leafExtractAltaTrailer, } from '@blockcast/mmt-alta-parse';
2
- export const MMTP_HEADER_SIZE = 12;
3
- export const MPU_HEADER_SIZE = 8;
4
- export const MFU_DU_HEADER_SIZE_TIMED = 14; // T=1: timed media (video/audio samples)
5
- export const MFU_DU_HEADER_SIZE_NONTIMED = 4; // T=0: non-timed media (item_id only)
6
- const MPU_LENGTH_FIELD_SIZE = 2;
7
- const MPU_HEADER_REMAINDER_SIZE = MPU_HEADER_SIZE - MPU_LENGTH_FIELD_SIZE;
8
- const SOURCE_FEC_PAYLOAD_ID_SIZE = 4;
9
- // MMTP Packet Types (ISO/IEC 23008-1:2023 Section 9.2.2)
10
- export const PACKET_TYPE_MPU = 0x00;
11
- export const PACKET_TYPE_SIGNALING = 0x02;
12
- export const PACKET_TYPE_REPAIR = 0x03;
13
- // AL-FEC Signaling Message ID (ISO/IEC 23008-1:2023 Amendment 1:2025)
14
- export const ALFEC_MESSAGE_ID = 0x0203;
15
- /**
16
- * MMTP `packet_id` of the signaling flow, which carries PACKET_TYPE_SIGNALING
17
- * packets such as the AL-FEC message (ALFEC_MESSAGE_ID). The FFmpeg `moq_mmt`
18
- * muxer sends that message on this packet_id into the same multicast group as
19
- * the media, and moqcast-draft (PR #44) makes advertising it for a track a
20
- * MUST NOT. A track's packet_id is therefore 1..MMTP_PACKET_ID_MAX.
21
- */
22
- export const MMTP_SIGNALING_PACKET_ID = 0;
23
- /** Largest value of the 16-bit MMTP `packet_id` header field. */
24
- export const MMTP_PACKET_ID_MAX = 0xffff;
25
- // FEC Code IDs
26
- export const FEC_CODE_XOR = 1;
27
- export const FEC_CODE_RAPTORQ = 2;
28
- /**
29
- * Parse MMTP header from buffer
30
- */
31
- export function parseMMTPHeader(buffer) {
32
- if (buffer.length < MMTP_HEADER_SIZE) {
33
- throw new Error(`MMTP packet too small: ${buffer.length} bytes`);
34
- }
35
- const view = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
36
- const version = (buffer[0] >> 6) & 0x03;
37
- if (version !== 0) {
38
- throw new Error(`Unsupported MMTP version: ${version}`);
39
- }
40
- // Extract FEC type from byte 0, bits 3-4
41
- const fecType = (buffer[0] >> 3) & 0x03;
42
- const packetCounterFlag = (buffer[0] & 0x20) !== 0;
43
- const extensionFlag = (buffer[0] & 0x02) !== 0;
44
- // Extract RAP flag from byte 0, bit 0 (R bit - Random Access Point)
45
- const rapFlag = (buffer[0] & 0x01) === 1;
46
- // ISO/IEC 23008-1:2023 Figure 8 (V=0) places reserved(2) before
47
- // packet_type(6), so packet_type occupies the low six bits of byte 1.
48
- const packetType = buffer[1] & 0x3F;
49
- let offset = 2;
50
- // Packet ID (2 bytes, big-endian)
51
- const packetId = view.getUint16(offset, false);
52
- offset += 2;
53
- // Timestamp (4 bytes, big-endian)
54
- const timestamp = BigInt(view.getUint32(offset, false));
55
- offset += 4;
56
- // Sequence number (4 bytes, big-endian)
57
- const sequenceNumber = view.getUint32(offset, false);
58
- offset += 4;
59
- let packetCounter;
60
- if (packetCounterFlag) {
61
- if (offset + 4 > buffer.length)
62
- throw new Error('MMTP packet truncated in packet_counter');
63
- packetCounter = view.getUint32(offset, false);
64
- offset += 4;
65
- }
66
- let extension;
67
- if (extensionFlag) {
68
- if (offset + 4 > buffer.length)
69
- throw new Error('MMTP packet truncated in header extension');
70
- const type = view.getUint16(offset, false);
71
- const length = view.getUint16(offset + 2, false);
72
- offset += 4;
73
- if (offset + length > buffer.length)
74
- throw new Error('MMTP packet truncated in header extension value');
75
- extension = { type, data: buffer.subarray(offset, offset + length) };
76
- offset += length;
77
- }
78
- return {
79
- version,
80
- packetType,
81
- packetId,
82
- timestamp,
83
- sequenceNumber,
84
- payloadLength: buffer.length - offset,
85
- fecType,
86
- packetCounterFlag,
87
- packetCounter,
88
- extensionFlag,
89
- extension,
90
- headerLength: offset,
91
- rapFlag,
92
- };
93
- }
94
- /**
95
- * The MMTP `packet_id` of `buffer`, or null exactly when parseMMTPHeader would
96
- * throw for it (short buffer, V != 0, truncated packet_counter or header
97
- * extension).
98
- *
99
- * This is the per-packet filter a receiver runs before any other work, so it
100
- * builds no header object, DataView or BigInt timestamp (BLO-36599). Use
101
- * parseMMTPHeader when any other header field is needed.
102
- */
103
- export function readMMTPPacketId(buffer) {
104
- if (buffer.length < MMTP_HEADER_SIZE)
105
- return null;
106
- const flags = buffer[0];
107
- if (((flags >> 6) & 0x03) !== 0)
108
- return null;
109
- let offset = MMTP_HEADER_SIZE;
110
- if ((flags & 0x20) !== 0) {
111
- if (offset + 4 > buffer.length)
112
- return null;
113
- offset += 4;
114
- }
115
- if ((flags & 0x02) !== 0) {
116
- if (offset + 4 > buffer.length)
117
- return null;
118
- const length = (buffer[offset + 2] << 8) | buffer[offset + 3];
119
- if (offset + 4 + length > buffer.length)
120
- return null;
121
- }
122
- return (buffer[2] << 8) | buffer[3];
123
- }
124
- /**
125
- * Unwrap MMTP packet to extract payload
126
- */
127
- export function unwrapMMTP(buffer) {
128
- const header = parseMMTPHeader(buffer);
129
- const payload = buffer.subarray(header.headerLength);
130
- return { header, payload };
131
- }
132
- /**
133
- * Parse MPU header from payload
134
- * ISO/IEC 23008-1:2023 Section 9.2.3.3
135
- *
136
- * MPU Header format (8 bytes) as written by FFmpeg/libmmt:
137
- * - Bytes 0-1: payload_length (16 bits, big-endian)
138
- * - Byte 2: FT(4) | T(1) | FI(2) | A(1)
139
- * - Byte 3: fragment_counter (8 bits)
140
- * - Bytes 4-7: MPU_sequence_number (32 bits, big-endian)
141
- */
142
- export function parseMPUHeader(payload) {
143
- if (payload.length < MPU_HEADER_SIZE) {
144
- throw new Error(`Payload too small for MPU header: ${payload.length} bytes`);
145
- }
146
- const view = new DataView(payload.buffer, payload.byteOffset, payload.byteLength);
147
- // Bytes 0-1: payload_length (16 bits, big-endian)
148
- const payloadLength = view.getUint16(0, false);
149
- // Byte 2: FT(4) | T(1) | FI(2) | A(1)
150
- const flagsByte = payload[2];
151
- const timedFlag = (flagsByte >> 3) & 0x01;
152
- const fragmentationIndicator = (flagsByte >> 1) & 0x03;
153
- const aggregationFlag = (flagsByte & 0x01) !== 0;
154
- // Byte 3: fragment_counter (8 bits). The high bit is part of the counter in
155
- // the current libmmt/FFmpeg writer ABI.
156
- const fragmentCounter = payload[3];
157
- // Bytes 4-7: MPU_sequence_number (32 bits, big-endian)
158
- const mpuSequenceNumber = view.getUint32(4, false);
159
- return {
160
- mpuSequenceNumber,
161
- fragmentationIndicator,
162
- fragmentCounter,
163
- timedFlag,
164
- aggregationFlag,
165
- payloadLength,
166
- };
167
- }
168
- export function parseTimedMfuDuHeader(payload, offset) {
169
- if (offset < 0 || offset + MFU_DU_HEADER_SIZE_TIMED > payload.length)
170
- return null;
171
- const view = new DataView(payload.buffer, payload.byteOffset + offset, MFU_DU_HEADER_SIZE_TIMED);
172
- return {
173
- movieFragmentSequenceNumber: view.getUint32(0, false),
174
- sampleNumber: view.getUint32(4, false),
175
- offset: view.getUint32(8, false),
176
- priority: payload[offset + 12],
177
- dependencyCounter: payload[offset + 13],
178
- };
179
- }
180
- function resolveMfuPayloadLayout(mpu, fragmentType, payload) {
181
- if (mpu.payloadLength < MPU_HEADER_REMAINDER_SIZE) {
182
- return {
183
- rejection: {
184
- gate: 'mpu-payload-length-below-header-remainder',
185
- detail: `payload_length=${mpu.payloadLength} < ${MPU_HEADER_REMAINDER_SIZE}`,
186
- },
187
- };
188
- }
189
- // ISO/IEC 23008-1 defines payload_length from immediately after its own
190
- // two-byte field. It therefore includes the remaining six MPU-header bytes.
191
- const declaredEnd = MPU_LENGTH_FIELD_SIZE + mpu.payloadLength;
192
- if (declaredEnd > payload.length) {
193
- return {
194
- rejection: {
195
- gate: 'mpu-declared-end-exceeds-payload',
196
- detail: `payload_length=${mpu.payloadLength} implies end=${declaredEnd}, ` +
197
- `payload is ${payload.length} bytes`,
198
- },
199
- };
200
- }
201
- const hasHeader = fragmentType === 2 && mpu.fragmentationIndicator <= 1;
202
- const mfuHeaderSize = mpu.timedFlag ? MFU_DU_HEADER_SIZE_TIMED : MFU_DU_HEADER_SIZE_NONTIMED;
203
- const mfuOffset = MPU_HEADER_SIZE + (hasHeader ? mfuHeaderSize : 0);
204
- if (mfuOffset >= declaredEnd) {
205
- return {
206
- rejection: {
207
- gate: 'mfu-offset-at-or-past-declared-end',
208
- detail: `mfuOffset=${mfuOffset} >= declaredEnd=${declaredEnd}`,
209
- },
210
- };
211
- }
212
- return {
213
- layout: {
214
- hasMfuDuHeader: hasHeader,
215
- mfuOffset,
216
- dataEnd: declaredEnd,
217
- },
218
- };
219
- }
220
- function isEmptyOrExactAltaTrailer(payload, start, end) {
221
- if (start === end)
222
- return true;
223
- if (start < 0 || end > payload.length || start + _LEAF_MMTP_EXT_TRAILER_HEADER_SIZE > end) {
224
- return false;
225
- }
226
- const view = new DataView(payload.buffer, payload.byteOffset + start, end - start);
227
- if (view.getUint16(0, false) !== _LEAF_MMTP_EXT_TYPE_ALTA_AUTH)
228
- return false;
229
- const authLength = view.getUint16(2, false);
230
- return start + _LEAF_MMTP_EXT_TRAILER_HEADER_SIZE + authLength === end;
231
- }
232
- function resolveDeclaredTrailers(payload, declaredEnd, fecType, options) {
233
- if (declaredEnd > payload.length)
234
- return null;
235
- if (options?.skipFecId) {
236
- return isEmptyOrExactAltaTrailer(payload, declaredEnd, payload.length)
237
- ? { hasFecId: false }
238
- : null;
239
- }
240
- if (fecType === 1) {
241
- const fecStart = payload.length - SOURCE_FEC_PAYLOAD_ID_SIZE;
242
- if (fecStart < declaredEnd || !isEmptyOrExactAltaTrailer(payload, declaredEnd, fecStart)) {
243
- return null;
244
- }
245
- return { hasFecId: true };
246
- }
247
- if (fecType !== 0)
248
- return null;
249
- if (isEmptyOrExactAltaTrailer(payload, declaredEnd, payload.length)) {
250
- return { hasFecId: false };
251
- }
252
- return null;
253
- }
254
- /**
255
- * Extract NAL unit payload from MMTP packet
256
- */
257
- export function extractNALUnit(mmtpPacket) {
258
- const extraction = extractMFUPayload(mmtpPacket);
259
- if (!extraction)
260
- throw new Error('Malformed MMTP MPU payload');
261
- return extraction.data;
262
- }
263
- /**
264
- * Single source of truth for whether a packet yields an MFU payload.
265
- *
266
- * `extractMFUPayload` and `explainMFURejection` both delegate here, so the
267
- * reason reported to operators can never drift from the decision the parser
268
- * actually made.
269
- */
270
- function planMfuExtraction(mmtpPacket, options, parsedHeader) {
271
- if (mmtpPacket.length < MMTP_HEADER_SIZE + MPU_HEADER_SIZE) {
272
- return {
273
- rejection: {
274
- gate: 'packet-shorter-than-mmtp-plus-mpu-header',
275
- detail: `${mmtpPacket.length} bytes < ${MMTP_HEADER_SIZE + MPU_HEADER_SIZE}`,
276
- },
277
- };
278
- }
279
- let header;
280
- if (parsedHeader) {
281
- header = parsedHeader;
282
- }
283
- else {
284
- try {
285
- header = parseMMTPHeader(mmtpPacket);
286
- }
287
- catch (error) {
288
- return {
289
- rejection: {
290
- gate: 'mmtp-header-unparseable',
291
- detail: error instanceof Error ? error.message : String(error),
292
- },
293
- };
294
- }
295
- }
296
- if (header.packetType !== PACKET_TYPE_MPU) {
297
- return {
298
- rejection: {
299
- gate: 'not-an-mpu-packet',
300
- detail: `packetType=0x${header.packetType.toString(16).padStart(2, '0')}`,
301
- },
302
- };
303
- }
304
- const payload = mmtpPacket.subarray(header.headerLength);
305
- if (payload.length < MPU_HEADER_SIZE) {
306
- return {
307
- rejection: {
308
- gate: 'payload-shorter-than-mpu-header',
309
- detail: `${payload.length} bytes < ${MPU_HEADER_SIZE}`,
310
- },
311
- };
312
- }
313
- const mpu = parseMPUHeader(payload);
314
- if (mpu.aggregationFlag) {
315
- return {
316
- rejection: { gate: 'aggregation-flag-set', detail: 'strict profile requires A=0' },
317
- };
318
- }
319
- // Fragment type from byte 2 upper nibble (not returned by parseMPUHeader)
320
- const fragmentType = (payload[2] >> 4) & 0x0f;
321
- const layoutResult = resolveMfuPayloadLayout(mpu, fragmentType, payload);
322
- if ('rejection' in layoutResult)
323
- return layoutResult;
324
- const { layout } = layoutResult;
325
- const trailerLayout = resolveDeclaredTrailers(payload, layout.dataEnd, header.fecType, options);
326
- if (!trailerLayout) {
327
- // The most common cause is a producer whose Source FEC Payload ID width
328
- // disagrees with ISO/IEC 23008-1 §C.5.2. Name that explicitly rather than
329
- // leaving operators to infer it from a generic trailer error.
330
- if (!options?.skipFecId && header.fecType === 1) {
331
- const observed = payload.length - layout.dataEnd;
332
- if (observed !== SOURCE_FEC_PAYLOAD_ID_SIZE) {
333
- return {
334
- rejection: {
335
- gate: 'source-fec-payload-id-width-mismatch',
336
- detail: `producer wrote a ${observed}-byte Source FEC Payload ID, ` +
337
- `ISO/IEC 23008-1 §C.5.2 requires ${SOURCE_FEC_PAYLOAD_ID_SIZE} ` +
338
- `(payload=${payload.length}, declaredEnd=${layout.dataEnd})`,
339
- },
340
- };
341
- }
342
- }
343
- return {
344
- rejection: {
345
- gate: 'declared-trailers-unresolved',
346
- detail: `trailer bytes [${layout.dataEnd}, ${payload.length}) are neither empty ` +
347
- `nor an exact ALTA trailer (fecType=${header.fecType})`,
348
- },
349
- };
350
- }
351
- return { plan: { header, payload, mpu, fragmentType, layout, trailerLayout } };
352
- }
353
- /**
354
- * Report why `extractMFUPayload` would refuse this packet, or null if it would
355
- * accept it.
356
- *
357
- * `extractMFUPayload` returns bare `null` on ten distinct conditions, which
358
- * makes a producer/consumer framing disagreement indistinguishable from a
359
- * publisher that never started — both render as silence. Use this wherever
360
- * that distinction matters: diagnostics, contract tests, and operator-facing
361
- * logs.
362
- */
363
- export function explainMFURejection(mmtpPacket, options) {
364
- const result = planMfuExtraction(mmtpPacket, options);
365
- return 'rejection' in result ? result.rejection : null;
366
- }
367
- export function extractMFUPayload(mmtpPacket, options) {
368
- return extractPlannedMfu(mmtpPacket, planMfuExtraction(mmtpPacket, options));
369
- }
370
- /**
371
- * extractMFUPayload for a caller that already holds this packet's parsed MMTP
372
- * header, so the header is not parsed a second time (BLO-36599).
373
- *
374
- * `header` must be `parseMMTPHeader(mmtpPacket)` of this same packet; the
375
- * result is then identical to `extractMFUPayload(mmtpPacket, options)`.
376
- */
377
- export function extractMFUPayloadWithHeader(mmtpPacket, header, options) {
378
- return extractPlannedMfu(mmtpPacket, planMfuExtraction(mmtpPacket, options, header));
379
- }
380
- function extractPlannedMfu(mmtpPacket, result) {
381
- if ('rejection' in result)
382
- return null;
383
- const { header, payload, mpu, fragmentType, layout, trailerLayout } = result.plan;
384
- const mfuDuHeaderPresent = layout.hasMfuDuHeader;
385
- const mfuOffset = layout.mfuOffset;
386
- const dataEnd = layout.dataEnd;
387
- const mfuDuHeader = mfuDuHeaderPresent && mpu.timedFlag === 1
388
- ? parseTimedMfuDuHeader(payload, MPU_HEADER_SIZE)
389
- : null;
390
- const itemId = mfuDuHeaderPresent && mpu.timedFlag === 0
391
- ? new DataView(payload.buffer, payload.byteOffset + MPU_HEADER_SIZE, 4).getUint32(0, false)
392
- : null;
393
- const data = payload.subarray(mfuOffset, dataEnd);
394
- const fecPayloadId = trailerLayout.hasFecId
395
- ? {
396
- ssId: new DataView(mmtpPacket.buffer, mmtpPacket.byteOffset + mmtpPacket.length - SOURCE_FEC_PAYLOAD_ID_SIZE, SOURCE_FEC_PAYLOAD_ID_SIZE).getUint32(0, false),
397
- }
398
- : null;
399
- return { header, mpu, fragmentType, data, mfuDuHeader, itemId, fecPayloadId };
400
- }
401
- /**
402
- * Extract timestamp from MMTP packet
403
- */
404
- export function extractTimestamp(mmtpPacket) {
405
- const { header } = unwrapMMTP(mmtpPacket);
406
- return header.timestamp;
407
- }
408
- /**
409
- * Check if MMTP packet is an FEC repair packet
410
- * FEC_type 2 and 3 are repair packets
411
- */
412
- export function isFecRepairPacket(mmtpPacket) {
413
- if (mmtpPacket.length < 1)
414
- return false;
415
- const fecType = (mmtpPacket[0] >> 3) & 0x03;
416
- return fecType >= 2;
417
- }
418
- /**
419
- * Extract Source FEC Payload ID (SS_ID) from the last 4 bytes of an MMTP
420
- * source packet per ISO/IEC 23008-1:2023 Section C.5.2 Figure C.10.
421
- *
422
- * SS_ID is a flat 32-bit monotonic counter (incremented by 1 per packet
423
- * for ssbg_mode0 and ssbg_mode1). Block membership and ESI use the
424
- * configured K; repair SS_Start identifies the first SS_ID of the block and
425
- * SSB_length records the authored source-symbol count:
426
- * SBN = floor(SS_ID / K), ESI = SS_ID % K
427
- * SS_Start = SBN * K (first SS_ID of the block)
428
- *
429
- * This matches FFmpeg moqenc_mmt.c, the drafts (draft-ramadan-moq-fec §6.2),
430
- * and ATSC A/331 §8.1.2.5 which defers to ISO 23008-1 Annex C.
431
- */
432
- export function extractFecPayloadId(mmtpPacket) {
433
- const header = parseHeaderForSourceFecId(mmtpPacket);
434
- return header ? sourceFecPayloadIdOf(mmtpPacket, header) : null;
435
- }
436
- /**
437
- * Return true when FEC_type=1 and the exact suffix after the ISO-declared MPU
438
- * payload contains a four-byte Source FEC Payload ID.
439
- */
440
- export function hasSourceFecPayloadId(mmtpPacket) {
441
- const header = parseHeaderForSourceFecId(mmtpPacket);
442
- return header !== null && sourceFecPayloadIdOf(mmtpPacket, header) !== null;
443
- }
444
- function parseHeaderForSourceFecId(mmtpPacket) {
445
- if (mmtpPacket.length < MMTP_HEADER_SIZE + MPU_HEADER_SIZE)
446
- return null;
447
- try {
448
- return parseMMTPHeader(mmtpPacket);
449
- }
450
- catch {
451
- return null;
452
- }
453
- }
454
- /**
455
- * The Source FEC Payload ID of a packet whose MMTP header the caller already
456
- * parsed, or null when the packet carries none: present only when FEC_type=1
457
- * and the exact suffix after the ISO-declared MPU payload holds the four-byte
458
- * ID (ISO/IEC 23008-1 §C.5.2). Same answer as extractFecPayloadId, without a
459
- * second header parse (BLO-36599).
460
- *
461
- * `header` must be `parseMMTPHeader(mmtpPacket)` of this same packet.
462
- */
463
- export function sourceFecPayloadIdOf(mmtpPacket, header) {
464
- if (mmtpPacket.length < MMTP_HEADER_SIZE + MPU_HEADER_SIZE)
465
- return null;
466
- if (header.packetType !== PACKET_TYPE_MPU)
467
- return null;
468
- const payload = mmtpPacket.subarray(header.headerLength);
469
- if (payload.length < MPU_HEADER_SIZE)
470
- return null;
471
- const payloadLength = (payload[0] << 8) | payload[1];
472
- if (payloadLength < MPU_HEADER_REMAINDER_SIZE)
473
- return null;
474
- const declaredEnd = MPU_LENGTH_FIELD_SIZE + payloadLength;
475
- if (!resolveDeclaredTrailers(payload, declaredEnd, header.fecType)?.hasFecId)
476
- return null;
477
- // Flat 4-byte SS_ID: encoder writes block_id * K + symbol_id
478
- const off = mmtpPacket.length - SOURCE_FEC_PAYLOAD_ID_SIZE;
479
- return {
480
- ssId: ((mmtpPacket[off] << 24) |
481
- (mmtpPacket[off + 1] << 16) |
482
- (mmtpPacket[off + 2] << 8) |
483
- mmtpPacket[off + 3]) >>>
484
- 0,
485
- };
486
- }
487
- /**
488
- * MMTP header-extension ext_type assigned to the detached ALTA authenticator
489
- * trailer (Path 2 / 08-07). Carried in an `[ext_type][ext_length][auth]`
490
- * block appended after the MPU's declared payload bytes, before the 4-byte
491
- * Source FEC Payload ID. MMTP X-bit stays 0 — non-ALTA MMTP receivers treat
492
- * the trailer as bytes past `payload_length` and skip it (per ISO 23008-1
493
- * §9.2.2 "may be discarded without impacting correct processing").
494
- */
495
- // Re-export the ALTA trailer helper from the zero-dep leaf package. The leaf
496
- // owns the implementation so container and FEC consumers share one parser
497
- // without creating a package cycle.
498
- export const MMTP_EXT_TYPE_ALTA_AUTH = _LEAF_MMTP_EXT_TYPE_ALTA_AUTH;
499
- export const MMTP_EXT_TRAILER_HEADER_SIZE = _LEAF_MMTP_EXT_TRAILER_HEADER_SIZE;
500
- export const extractAltaTrailer = _leafExtractAltaTrailer;
501
- /** Size of Repair FEC Payload ID per ISO/IEC 23008-1 Section C.5.3 */
502
- export const REPAIR_FEC_PID_SIZE = 13;
503
- /**
504
- * Parse the 13-byte Repair FEC Payload ID after the complete dynamic MMTP header.
505
- * `parsedHeader`, when given, must be `parseMMTPHeader(mmtpPacket)` of this
506
- * same packet; it spares the second header parse (BLO-36599).
507
- */
508
- function readRepairFecPayloadIdFields(mmtpPacket, parsedHeader) {
509
- let header;
510
- if (parsedHeader) {
511
- header = parsedHeader;
512
- }
513
- else {
514
- try {
515
- header = parseMMTPHeader(mmtpPacket);
516
- }
517
- catch {
518
- return null;
519
- }
520
- }
521
- if (header.packetType !== PACKET_TYPE_REPAIR || header.fecType !== 2)
522
- return null;
523
- const off = header.headerLength;
524
- if (mmtpPacket.length < off + REPAIR_FEC_PID_SIZE)
525
- return null;
526
- const ssStart = ((mmtpPacket[off] << 24) |
527
- (mmtpPacket[off + 1] << 16) |
528
- (mmtpPacket[off + 2] << 8) |
529
- mmtpPacket[off + 3]) >>>
530
- 0; // 32 bits
531
- const rsbLength = (mmtpPacket[off + 4] << 16) | (mmtpPacket[off + 5] << 8) | mmtpPacket[off + 6]; // 24 bits
532
- const rsId = (mmtpPacket[off + 7] << 16) | (mmtpPacket[off + 8] << 8) | mmtpPacket[off + 9]; // 24 bits
533
- const ssbLength = (mmtpPacket[off + 10] << 16) | (mmtpPacket[off + 11] << 8) | mmtpPacket[off + 12]; // 24 bits
534
- return {
535
- packetId: header.packetId,
536
- ssStart,
537
- rsbLength,
538
- rsId,
539
- ssbLength,
540
- dataOffset: off + REPAIR_FEC_PID_SIZE,
541
- };
542
- }
543
- /**
544
- * Extract Repair FEC Payload ID from a raw-multicast MMTP repair packet.
545
- * Per ISO/IEC 23008-1:2023 Section C.5.3 (ssbg_mode0, one-stage, no FFSRP_TS):
546
- * [MMTP header][SS_Start:4][RSB_length:3][RS_ID:3][SSB_length:3][repair data]
547
- * OTI is delivered via AL-FEC signaling message (Table C.3), not per-packet.
548
- *
549
- * Byte 1 is reserved(2)|packet_type(6) for V=0, so repair type 0x03 is 0x03.
550
- * Pre-migration high-bits bytes (0x0c) are rejected — no compatibility decode.
551
- */
552
- export function extractRepairFecPayloadId(mmtpPacket) {
553
- const fields = readRepairFecPayloadIdFields(mmtpPacket);
554
- if (!fields)
555
- return null;
556
- return {
557
- ssStart: fields.ssStart,
558
- rsbLength: fields.rsbLength,
559
- rsId: fields.rsId,
560
- ssbLength: fields.ssbLength,
561
- };
562
- }
563
- /**
564
- * Parse a MoQ repair frame (ISO/IEC 23008-1 Annex C format).
565
- *
566
- * Wire format per ISO 23008-1 §C.4.3 + §C.5.3:
567
- * MMTP Header: fixed 12 bytes plus C/X optional fields
568
- * then SS_Start (4 bytes) → block identifier
569
- * then RSB_length (3 bytes) → P
570
- * then RS_ID (3 bytes) → ESI = K + RS_ID
571
- * then SSB_length (3 bytes) → authored source-symbol count (1..=K)
572
- * then Repair Symbol Data (T bytes)
573
- *
574
- * @param frame - Raw MoQ repair frame bytes
575
- * @returns Parsed frame or null if invalid
576
- */
577
- export function parseMoqRepairFrame(frame) {
578
- return moqRepairFrameFrom(frame, readRepairFecPayloadIdFields(frame));
579
- }
580
- /**
581
- * parseMoqRepairFrame for a caller that already holds this frame's parsed MMTP
582
- * header, so the header is not parsed a second time (BLO-36599). The router's
583
- * multicast repair branch uses it: one repair packet in every K + P otherwise
584
- * paid two header parses.
585
- *
586
- * `header` must be `parseMMTPHeader(frame)` of this same frame; the result is
587
- * then identical to `parseMoqRepairFrame(frame)`.
588
- */
589
- export function parseMoqRepairFrameWithHeader(frame, header) {
590
- return moqRepairFrameFrom(frame, readRepairFecPayloadIdFields(frame, header));
591
- }
592
- function moqRepairFrameFrom(frame, repairId) {
593
- if (!repairId)
594
- return null;
595
- const symbolData = frame.subarray(repairId.dataOffset);
596
- if (repairId.rsbLength === 0 ||
597
- repairId.ssbLength === 0 ||
598
- repairId.rsId >= repairId.rsbLength ||
599
- symbolData.length === 0)
600
- return null;
601
- return {
602
- packetId: repairId.packetId,
603
- ssStart: repairId.ssStart,
604
- rsbLength: repairId.rsbLength,
605
- rsId: repairId.rsId,
606
- ssbLength: repairId.ssbLength,
607
- symbolData,
608
- };
609
- }
610
- // The signalling-message parsers (9.3.4.2 payload header, AL-FEC message,
611
- // PA/MPT) live in ./signalling.ts.
612
- //# sourceMappingURL=mmtp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mmtp.js","sourceRoot":"","sources":["../src/mmtp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,IAAI,6BAA6B,EACxD,4BAA4B,IAAI,kCAAkC,EAClE,kBAAkB,IAAI,uBAAuB,GAE9C,MAAM,2BAA2B,CAAA;AAuElC,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAA;AAChC,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAA,CAAI,yCAAyC;AACvF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAA,CAAE,sCAAsC;AAEpF,MAAM,qBAAqB,GAAG,CAAC,CAAA;AAC/B,MAAM,yBAAyB,GAAG,eAAe,GAAG,qBAAqB,C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tD,IACE,QAAQ,CAAC,SAAS,KAAK,CAAC;QACxB,QAAQ,CAAC,SAAS,KAAK,CAAC;QACxB,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,SAAS;QACnC,UAAU,CAAC,MAAM,KAAK,CAAC;QACvB,OAAO,IAAI,CAAA;IAEb,OAAO;QACL,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,UAAU;KACX,CAAA;AACH,CAAC;AAED,0EAA0E;AAC1E,mCAAmC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * AMT well-known UDP port (RFC 7450 §4).
3
- *
4
- * The single definition for the whole repo. It lives here, in the one package
5
- * both `@blockcast/mmt-transport` and `@blockcast/mmt-container` already
6
- * depend on, because the two apply it on opposite sides of a boundary that
7
- * does not otherwise share code:
8
- *
9
- * - container resolves it where `networkSource` semantics live, so a catalog
10
- * relay that names no port is reachable instead of handing a join a
11
- * portless relay that fails.
12
- * - transport applies it when reading a catalog, dialling a gateway, and
13
- * answering DRIAD — but deliberately not at every boundary. Which call
14
- * sites do and do not take the default is transport's business; the
15
- * reasoning lives beside those call sites, not here.
16
- */
17
- export declare const DEFAULT_AMT_RELAY_PORT = 2268;
18
- //# sourceMappingURL=net-constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"net-constants.d.ts","sourceRoot":"","sources":["../src/net-constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,OAAO,CAAC"}