mattebox 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +17 -0
  2. package/dist/cdn/mattebox.dash-drm.min.js +3 -3
  3. package/dist/cdn/mattebox.dash-ll.min.js +2 -2
  4. package/dist/cdn/mattebox.dash.min.js +2 -2
  5. package/dist/cdn/mattebox.dual-drm.min.js +2 -2
  6. package/dist/cdn/mattebox.dual-ll.min.js +2 -2
  7. package/dist/cdn/mattebox.dual-ts-drm.min.js +2 -2
  8. package/dist/cdn/mattebox.dual-ts.min.js +2 -2
  9. package/dist/cdn/mattebox.dual.min.js +2 -2
  10. package/dist/cdn/mattebox.hls-drm.min.js +1 -1
  11. package/dist/cdn/mattebox.hls-ll.min.js +1 -1
  12. package/dist/cdn/mattebox.hls-ts-drm.min.js +2 -2
  13. package/dist/cdn/mattebox.hls-ts.min.js +2 -2
  14. package/dist/cdn/mattebox.hls.min.js +1 -1
  15. package/dist/cdn/mattebox.kernel.min.js +1 -1
  16. package/dist/cdn/mattebox.min.js +5 -5
  17. package/dist/containers/projection.d.ts +20 -0
  18. package/dist/containers/projection.d.ts.map +1 -1
  19. package/dist/containers/projection.js +43 -6
  20. package/dist/containers/projection.js.map +1 -1
  21. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/asyncToGenerator.js +1 -1
  22. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/defineProperty.js +1 -1
  23. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/objectSpread2.js +1 -1
  24. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/objectWithoutProperties.js +1 -1
  25. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  26. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/toPrimitive.js +1 -1
  27. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/toPropertyKey.js +1 -1
  28. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.158.0 → _@oxc-project_runtime@0.159.0}/helpers/esm/typeof.js +1 -1
  29. package/dist/es2015/containers/emsg.js +2 -2
  30. package/dist/es2015/containers/fmp4/fit.js +1 -1
  31. package/dist/es2015/containers/fmp4/writer.js +1 -1
  32. package/dist/es2015/containers/id3.js +1 -1
  33. package/dist/es2015/containers/mp4-box/index.js +2 -2
  34. package/dist/es2015/containers/projection.js +50 -11
  35. package/dist/es2015/containers/scte35.js +1 -1
  36. package/dist/es2015/containers/sei.js +1 -1
  37. package/dist/es2015/containers/ts-transmux/demux.js +1 -1
  38. package/dist/es2015/containers/ts-transmux/h264.js +1 -1
  39. package/dist/es2015/containers/ts-transmux/h265.js +1 -1
  40. package/dist/es2015/containers/ts-transmux/index.js +1 -1
  41. package/dist/es2015/containers/ts-transmux/runner.js +2 -2
  42. package/dist/es2015/containers/ts-transmux/transmux.js +1 -1
  43. package/dist/es2015/containers/webm/index.js +2 -5
  44. package/dist/es2015/containers/webvtt.js +1 -1
  45. package/dist/es2015/containers/wvtt.js +1 -1
  46. package/dist/es2015/eme/index.js +3 -3
  47. package/dist/es2015/index.js +2 -2
  48. package/dist/es2015/kernel/append-queue.js +1 -1
  49. package/dist/es2015/kernel/dry-run.js +1 -1
  50. package/dist/es2015/kernel/mse.js +1 -1
  51. package/dist/es2015/kernel/prepare.js +2 -2
  52. package/dist/es2015/kernel/reducer.js +32 -12
  53. package/dist/es2015/kernel/refresh.js +1 -1
  54. package/dist/es2015/kernel/rendition-select.js +2 -2
  55. package/dist/es2015/kernel/scheduler.js +1 -1
  56. package/dist/es2015/kernel/timeline.js +1 -1
  57. package/dist/es2015/kernel/trace.js +2 -2
  58. package/dist/es2015/kernel/transport.js +2 -2
  59. package/dist/es2015/presets/define.js +2 -2
  60. package/dist/es2015/protocols/dash-cmaf/index.js +1 -1
  61. package/dist/es2015/protocols/dash-cmaf/parse.js +68 -44
  62. package/dist/es2015/protocols/dash-cmaf/periods-runtime.js +1 -1
  63. package/dist/es2015/protocols/dash-cmaf/periods.js +1 -1
  64. package/dist/es2015/protocols/dash-live/index.js +2 -2
  65. package/dist/es2015/protocols/hls-cmaf/index.js +1 -1
  66. package/dist/es2015/protocols/hls-cmaf/parse.js +1 -1
  67. package/dist/es2015/protocols/hls-cmaf/unavailable.js +1 -1
  68. package/dist/es2015/protocols/hls-live/index.js +1 -1
  69. package/dist/es2015/protocols/hls-ll/parse.js +1 -1
  70. package/dist/es2015/stages/abr/index.js +1 -1
  71. package/dist/es2015/stages/aes-128/index.js +1 -1
  72. package/dist/es2015/stages/chapters/index.js +2 -2
  73. package/dist/es2015/stages/chapters/parse.js +2 -2
  74. package/dist/es2015/stages/cmcd/index.js +1 -2
  75. package/dist/es2015/stages/codec-probe/index.js +1 -1
  76. package/dist/es2015/stages/content-steering/index.js +1 -1
  77. package/dist/es2015/stages/eme-core/index.js +2 -2
  78. package/dist/es2015/stages/eme-fairplay/index.js +1 -1
  79. package/dist/es2015/stages/hdr/index.js +1 -1
  80. package/dist/es2015/stages/interstitials/breaks.js +1 -1
  81. package/dist/es2015/stages/interstitials/index.js +2 -2
  82. package/dist/es2015/stages/projection/index.js +13 -3
  83. package/dist/es2015/stages/qoe/index.js +1 -1
  84. package/dist/es2015/stages/recovery/index.js +1 -1
  85. package/dist/es2015/stages/rendition-names/index.js +1 -1
  86. package/dist/es2015/stages/text-cea608/decode.js +1 -1
  87. package/dist/es2015/stages/text-cea708/decode.js +2 -2
  88. package/dist/es2015/stages/text-cea708/index.js +1 -1
  89. package/dist/es2015/stages/text-ttml/index.js +1 -1
  90. package/dist/es2015/stages/text-ttml/parse.js +1 -1
  91. package/dist/es2015/stages/thumbnails/index.js +1 -1
  92. package/dist/es2015/stages/timed-metadata/index.js +1 -1
  93. package/dist/es2015/stages/trick-play/index.js +1 -1
  94. package/dist/kernel/reducer.d.ts.map +1 -1
  95. package/dist/kernel/reducer.js +36 -11
  96. package/dist/kernel/reducer.js.map +1 -1
  97. package/dist/protocols/dash-cmaf/parse.d.ts.map +1 -1
  98. package/dist/protocols/dash-cmaf/parse.js +33 -0
  99. package/dist/protocols/dash-cmaf/parse.js.map +1 -1
  100. package/dist/stages/projection/index.d.ts.map +1 -1
  101. package/dist/stages/projection/index.js +15 -3
  102. package/dist/stages/projection/index.js.map +1 -1
  103. package/dist/types/ir.d.ts +9 -0
  104. package/dist/types/ir.d.ts.map +1 -1
  105. package/dist/types/kernel.d.ts +2 -0
  106. package/dist/types/kernel.d.ts.map +1 -1
  107. package/dist/types/messages.d.ts +10 -0
  108. package/dist/types/messages.d.ts.map +1 -1
  109. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
1
  import { findRendition, findTrackSite } from "./presentation.js";
2
2
  import { bufferedEndFrom } from "./scheduler.js";
3
3
  import { segmentAtTime } from "./timeline.js";
4
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
5
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectWithoutProperties.js";
5
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
6
6
  // src/kernel/rendition-select.ts
7
7
  const _excluded = [
8
8
  "maxHeight",
@@ -1,5 +1,5 @@
1
1
  import { buildEpochs, epochForSeq, epochKey, isIndexed, segmentAtTime, timestampOffsetFor } from "./timeline.js";
2
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
3
3
  // src/kernel/scheduler.ts
4
4
  const DEFAULT_GAP_TOLERANCE = .25;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
2
2
  // src/kernel/timeline.ts
3
3
  function isIndexed(addressing) {
4
4
  return !Array.isArray(addressing) && addressing.kind === "indexed";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
2
2
  function isBytes(value) {
3
3
  return value instanceof ArrayBuffer || ArrayBuffer.isView(value);
4
4
  }
@@ -70,7 +70,7 @@ function stableStringify(value) {
70
70
  }
71
71
  /** 32-bit FNV-1a over a string, as fixed-width hex. */
72
72
  function fnv1a(input) {
73
- let hash = 2166136261;
73
+ let hash = 0x811c9dc5;
74
74
  for (let i = 0; i < input.length; i += 1) {
75
75
  hash ^= input.charCodeAt(i);
76
76
  hash = Math.imul(hash, 16777619) >>> 0;
@@ -1,5 +1,5 @@
1
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
2
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
1
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/asyncToGenerator.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
3
3
  // src/kernel/transport.ts
4
4
  const DEFAULT_RETRY_POLICY = {
5
5
  maxAttempts: 3,
@@ -1,6 +1,6 @@
1
1
  import { mattebox } from "../index.js";
2
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
3
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectWithoutProperties.js";
3
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
4
  // src/presets/define.ts
5
5
  const _excluded = ["stages", "without"];
6
6
  /** Applies the merge rule. Exported for tests; presets call it through `stages`. */
@@ -6,7 +6,7 @@ import { isUnresolved } from "../../kernel/timeline.js";
6
6
  import { manifestFact } from "../adapter-shared.js";
7
7
  import { parse, sidxToSegments } from "./parse.js";
8
8
  import { installPeriods } from "./periods-runtime.js";
9
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
9
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
10
10
  // src/protocols/dash-cmaf/index.ts
11
11
  /**
12
12
  * The dash-cmaf protocol adapter as a stage. Inert module: exports a
@@ -4,7 +4,7 @@ import { resolveUrl } from "../../kernel/url.js";
4
4
  import { manifestError } from "../adapter-shared.js";
5
5
  import { dimensions } from "../dimensions.js";
6
6
  import { flattenPeriods } from "./periods.js";
7
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
8
8
  // src/protocols/dash-cmaf/parse.ts
9
9
  /**
10
10
  * MPD into the IR. Pure: no fetching, no state, no side effects. DOMParser
@@ -282,6 +282,30 @@ function projectionOf(representation, adaptationSet) {
282
282
  }
283
283
  return {};
284
284
  }
285
+ /**
286
+ * The schemes of a `FramePacking` descriptor whose values are the frame
287
+ * packing arrangement types of H.264 Table D-8, which ITU-T H.273
288
+ * (`VideoFramePackingType`) repeats. DASH-IF lists both:
289
+ * https://dashif.org/identifiers/video_source_metadata/
290
+ */
291
+ const FRAME_PACKING = ["urn:mpeg:mpegB:cicp:VideoFramePackingType", "urn:mpeg:dash:14496:10:frame_packing_arrangement_type:2011"];
292
+ /**
293
+ * The `FramePacking` descriptor (ISO/IEC 23009-1 §5.8.4.6), on the
294
+ * Representation or its AdaptationSet: 3 is side by side, 4 top and bottom.
295
+ * The descriptor does not say which eye comes first, and the left one is
296
+ * the default of H.264's frame packing message. Another type, such as an
297
+ * interleaving, is not a packing the IR names.
298
+ */
299
+ function framePackingOf(representation, adaptationSet) {
300
+ for (const element of [representation, adaptationSet]) for (const descriptor of children(element, "FramePacking")) {
301
+ var _attr10;
302
+ if (!FRAME_PACKING.includes((_attr10 = attr(descriptor, "schemeIdUri")) !== null && _attr10 !== void 0 ? _attr10 : "")) continue;
303
+ const value = attr(descriptor, "value");
304
+ if (value === "3") return { framePacking: "side-by-side" };
305
+ return value === "4" ? { framePacking: "top-bottom" } : {};
306
+ }
307
+ return {};
308
+ }
285
309
  function videoRangeOf(representation, adaptationSet, codecs) {
286
310
  for (const element of [representation, adaptationSet]) for (const property of [...children(element, "EssentialProperty"), ...children(element, "SupplementalProperty")]) {
287
311
  if (attr(property, "schemeIdUri") !== TRANSFER_CHARACTERISTICS) continue;
@@ -325,9 +349,9 @@ const CICP_CHANNELS = [
325
349
  */
326
350
  function channelsOf(representation, adaptationSet) {
327
351
  for (const element of [representation, adaptationSet]) for (const config of children(element, "AudioChannelConfiguration")) {
328
- var _attr10, _attr11;
329
- const scheme = (_attr10 = attr(config, "schemeIdUri")) !== null && _attr10 !== void 0 ? _attr10 : "";
330
- const value = (_attr11 = attr(config, "value")) !== null && _attr11 !== void 0 ? _attr11 : "";
352
+ var _attr11, _attr12;
353
+ const scheme = (_attr11 = attr(config, "schemeIdUri")) !== null && _attr11 !== void 0 ? _attr11 : "";
354
+ const value = (_attr12 = attr(config, "value")) !== null && _attr12 !== void 0 ? _attr12 : "";
331
355
  let channels = 0;
332
356
  if (scheme === "urn:mpeg:dash:23003:3:audio_channel_configuration:2011") channels = Number(value);
333
357
  else if (scheme === "urn:mpeg:mpegB:cicp:ChannelConfiguration") {
@@ -354,8 +378,8 @@ function bitCount(value) {
354
378
  */
355
379
  function isTrickMode(adaptationSet) {
356
380
  for (const property of children(adaptationSet, "EssentialProperty")) {
357
- var _attr12;
358
- if (((_attr12 = attr(property, "schemeIdUri")) !== null && _attr12 !== void 0 ? _attr12 : "").includes("trickmode")) return true;
381
+ var _attr13;
382
+ if (((_attr13 = attr(property, "schemeIdUri")) !== null && _attr13 !== void 0 ? _attr13 : "").includes("trickmode")) return true;
359
383
  }
360
384
  if (numberAttr(adaptationSet, "maxPlayoutRate") !== null) return true;
361
385
  for (const representation of children(adaptationSet, "Representation")) {
@@ -374,8 +398,8 @@ function tileGridOf(representation, adaptationSet, width, height) {
374
398
  if (width === null || height === null) return null;
375
399
  const properties = [...children(representation, "EssentialProperty"), ...children(adaptationSet, "EssentialProperty")];
376
400
  for (const property of properties) {
377
- var _attr13;
378
- if (!((_attr13 = attr(property, "schemeIdUri")) !== null && _attr13 !== void 0 ? _attr13 : "").includes("thumbnail_tile")) continue;
401
+ var _attr14;
402
+ if (!((_attr14 = attr(property, "schemeIdUri")) !== null && _attr14 !== void 0 ? _attr14 : "").includes("thumbnail_tile")) continue;
379
403
  const grid = dimensions(attr(property, "value"));
380
404
  if (grid === null) continue;
381
405
  const [columns, rows] = grid;
@@ -406,19 +430,19 @@ function mergeTemplates(levels) {
406
430
  let complete = null;
407
431
  let found = false;
408
432
  for (const level of levels) {
409
- var _attr14, _attr15, _numberAttr4, _numberAttr5, _numberAttr6, _numberAttr7, _children$2, _availabilityOffsetOf, _attr16;
433
+ var _attr15, _attr16, _numberAttr4, _numberAttr5, _numberAttr6, _numberAttr7, _children$2, _availabilityOffsetOf, _attr17;
410
434
  const template = children(level, "SegmentTemplate")[0];
411
435
  if (template === void 0) continue;
412
436
  found = true;
413
- media = (_attr14 = attr(template, "media")) !== null && _attr14 !== void 0 ? _attr14 : media;
414
- initialization = (_attr15 = attr(template, "initialization")) !== null && _attr15 !== void 0 ? _attr15 : initialization;
437
+ media = (_attr15 = attr(template, "media")) !== null && _attr15 !== void 0 ? _attr15 : media;
438
+ initialization = (_attr16 = attr(template, "initialization")) !== null && _attr16 !== void 0 ? _attr16 : initialization;
415
439
  timescale = (_numberAttr4 = numberAttr(template, "timescale")) !== null && _numberAttr4 !== void 0 ? _numberAttr4 : timescale;
416
440
  startNumber = (_numberAttr5 = numberAttr(template, "startNumber")) !== null && _numberAttr5 !== void 0 ? _numberAttr5 : startNumber;
417
441
  duration = (_numberAttr6 = numberAttr(template, "duration")) !== null && _numberAttr6 !== void 0 ? _numberAttr6 : duration;
418
442
  pto = (_numberAttr7 = numberAttr(template, "presentationTimeOffset")) !== null && _numberAttr7 !== void 0 ? _numberAttr7 : pto;
419
443
  timelineElement = (_children$2 = children(template, "SegmentTimeline")[0]) !== null && _children$2 !== void 0 ? _children$2 : timelineElement;
420
444
  ato = (_availabilityOffsetOf = availabilityOffsetOf(template)) !== null && _availabilityOffsetOf !== void 0 ? _availabilityOffsetOf : ato;
421
- complete = (_attr16 = attr(template, "availabilityTimeComplete")) !== null && _attr16 !== void 0 ? _attr16 : complete;
445
+ complete = (_attr17 = attr(template, "availabilityTimeComplete")) !== null && _attr17 !== void 0 ? _attr17 : complete;
422
446
  }
423
447
  if (!found) return null;
424
448
  return {
@@ -445,7 +469,7 @@ function mergeTemplates(levels) {
445
469
  * level has a SegmentList.
446
470
  */
447
471
  function segmentListOf(levels, base, periodStart, periodEndUnits) {
448
- var _attr18;
472
+ var _attr19;
449
473
  let timescale = 1;
450
474
  let duration = null;
451
475
  let startNumber = 1;
@@ -478,20 +502,20 @@ function segmentListOf(levels, base, periodStart, periodEndUnits) {
478
502
  else if (urls.length > 1) return "invalid";
479
503
  const segments = [];
480
504
  urls.forEach((url, i) => {
481
- var _times$i, _attr17;
505
+ var _times$i, _attr18;
482
506
  const [time, length] = (_times$i = times[i]) !== null && _times$i !== void 0 ? _times$i : [offset, 0];
483
507
  const range = parseByteRange(attr(url, "mediaRange"));
484
508
  segments.push(_objectSpread2({
485
509
  seq: startNumber + i,
486
510
  start: periodStart + (time - offset) / timescale,
487
511
  duration: length / timescale,
488
- url: resolveUrl((_attr17 = attr(url, "media")) !== null && _attr17 !== void 0 ? _attr17 : "", base)
512
+ url: resolveUrl((_attr18 = attr(url, "media")) !== null && _attr18 !== void 0 ? _attr18 : "", base)
489
513
  }, range !== null ? { byteRange: range } : {}));
490
514
  });
491
515
  const initRange = initialization === null ? null : parseByteRange(attr(initialization, "range"));
492
516
  return {
493
517
  segments,
494
- init: initialization === null ? null : _objectSpread2({ url: resolveUrl((_attr18 = attr(initialization, "sourceURL")) !== null && _attr18 !== void 0 ? _attr18 : "", base) }, initRange !== null ? { byteRange: initRange } : {})
518
+ init: initialization === null ? null : _objectSpread2({ url: resolveUrl((_attr19 = attr(initialization, "sourceURL")) !== null && _attr19 !== void 0 ? _attr19 : "", base) }, initRange !== null ? { byteRange: initRange } : {})
495
519
  };
496
520
  }
497
521
  function parseTimeline(timelineElement, periodEndUnits) {
@@ -530,13 +554,13 @@ function substituteIdentity(template, id, bandwidth) {
530
554
  });
531
555
  }
532
556
  function contentTypeOf(adaptationSet, mimeType) {
533
- var _attr19, _children$5;
557
+ var _attr20, _children$5;
534
558
  const declared = attr(adaptationSet, "contentType");
535
559
  if (declared === "video" || declared === "audio" || declared === "text" || declared === "image" || declared === "metadata") return declared;
536
560
  if (mimeType.startsWith("audio/")) return "audio";
537
561
  if (mimeType.startsWith("image/")) return "image";
538
562
  if (mimeType.startsWith("text/") || mimeType === "application/ttml+xml") return "text";
539
- const codecs = (_attr19 = attr(adaptationSet, "codecs")) !== null && _attr19 !== void 0 ? _attr19 : attr((_children$5 = children(adaptationSet, "Representation")[0]) !== null && _children$5 !== void 0 ? _children$5 : adaptationSet, "codecs");
563
+ const codecs = (_attr20 = attr(adaptationSet, "codecs")) !== null && _attr20 !== void 0 ? _attr20 : attr((_children$5 = children(adaptationSet, "Representation")[0]) !== null && _children$5 !== void 0 ? _children$5 : adaptationSet, "codecs");
540
564
  if (mimeType === "application/mp4" && codecs !== null && /^(stpp|wvtt)/.test(codecs)) return "text";
541
565
  return "video";
542
566
  }
@@ -572,15 +596,15 @@ function periodSpans(elements, mpdDuration) {
572
596
  */
573
597
  function followsOf(adaptationSet) {
574
598
  return children(adaptationSet, "SupplementalProperty").filter((property) => {
575
- var _attr20;
576
- return /^urn:mpeg:dash:period-(continuity|connectivity):2015$/.test((_attr20 = attr(property, "schemeIdUri")) !== null && _attr20 !== void 0 ? _attr20 : "");
577
- }).flatMap((property) => {
578
599
  var _attr21;
579
- return ((_attr21 = attr(property, "value")) !== null && _attr21 !== void 0 ? _attr21 : "").split(/[\s,]+/).filter((v) => v !== "");
600
+ return /^urn:mpeg:dash:period-(continuity|connectivity):2015$/.test((_attr21 = attr(property, "schemeIdUri")) !== null && _attr21 !== void 0 ? _attr21 : "");
601
+ }).flatMap((property) => {
602
+ var _attr22;
603
+ return ((_attr22 = attr(property, "value")) !== null && _attr22 !== void 0 ? _attr22 : "").split(/[\s,]+/).filter((v) => v !== "");
580
604
  });
581
605
  }
582
606
  function parsePeriod(periodElement, span, index, mpdBase, isLive, availability, capabilities) {
583
- var _attr30;
607
+ var _attr31;
584
608
  const matching = /* @__PURE__ */ new Map();
585
609
  const periodStart = span.start;
586
610
  const periodDuration = span.duration;
@@ -602,18 +626,18 @@ function parsePeriod(periodElement, span, index, mpdBase, isLive, availability,
602
626
  const renditions = [];
603
627
  let trackMime = null;
604
628
  for (const representation of children(adaptationSet, "Representation")) {
605
- var _ref2, _attr22, _trackMime, _parseFrameRate2, _numberAttr15, _attr28, _attr29;
629
+ var _ref2, _attr23, _trackMime, _parseFrameRate2, _numberAttr15, _attr29, _attr30;
606
630
  const id = attr(representation, "id");
607
631
  const bandwidth = numberAttr(representation, "bandwidth");
608
632
  if (id === null || bandwidth === null) continue;
609
633
  const repBase = applyBaseUrl(representation, asBase);
610
- const mimeType = (_ref2 = (_attr22 = attr(representation, "mimeType")) !== null && _attr22 !== void 0 ? _attr22 : asMime) !== null && _ref2 !== void 0 ? _ref2 : "video/mp4";
634
+ const mimeType = (_ref2 = (_attr23 = attr(representation, "mimeType")) !== null && _attr23 !== void 0 ? _attr23 : asMime) !== null && _ref2 !== void 0 ? _ref2 : "video/mp4";
611
635
  const webm = /\/(webm|x-matroska)$/.test(mimeType);
612
636
  if (webm && !capabilities.some((c) => typeof c !== "string" && c.mimeType === mimeType)) continue;
613
637
  trackMime = (_trackMime = trackMime) !== null && _trackMime !== void 0 ? _trackMime : mimeType;
614
638
  const segmentBase = children(representation, "SegmentBase")[0];
615
639
  if (segmentBase !== void 0) {
616
- var _numberAttr14, _parseFrameRate, _attr23, _attr24;
640
+ var _numberAttr14, _parseFrameRate, _attr24, _attr25;
617
641
  const indexRange = parseByteRange(attr(segmentBase, "indexRange"));
618
642
  if (indexRange === null) continue;
619
643
  const baseTimescale = (_numberAttr14 = numberAttr(segmentBase, "timescale")) !== null && _numberAttr14 !== void 0 ? _numberAttr14 : 1;
@@ -634,13 +658,13 @@ function parsePeriod(periodElement, span, index, mpdBase, isLive, availability,
634
658
  const w = numberAttr(representation, "width");
635
659
  const h = numberAttr(representation, "height");
636
660
  const fr = (_parseFrameRate = parseFrameRate(attr(representation, "frameRate"))) !== null && _parseFrameRate !== void 0 ? _parseFrameRate : parseFrameRate(attr(adaptationSet, "frameRate"));
637
- renditions.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
661
+ renditions.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
638
662
  id,
639
663
  bitrate: bandwidth,
640
- codecs: (_attr23 = attr(representation, "codecs")) !== null && _attr23 !== void 0 ? _attr23 : asCodecs,
664
+ codecs: (_attr24 = attr(representation, "codecs")) !== null && _attr24 !== void 0 ? _attr24 : asCodecs,
641
665
  mimeType,
642
666
  segments: sidxSegments
643
- }, sidxInit !== null ? { init: sidxInit } : {}), w !== null ? { width: w } : {}), h !== null ? { height: h } : {}), fr !== null ? { frameRate: fr } : {}), videoRangeOf(representation, adaptationSet, (_attr24 = attr(representation, "codecs")) !== null && _attr24 !== void 0 ? _attr24 : asCodecs)), channelsOf(representation, adaptationSet)), supplementalOf(representation, adaptationSet)), projectionOf(representation, adaptationSet)));
667
+ }, sidxInit !== null ? { init: sidxInit } : {}), w !== null ? { width: w } : {}), h !== null ? { height: h } : {}), fr !== null ? { frameRate: fr } : {}), videoRangeOf(representation, adaptationSet, (_attr25 = attr(representation, "codecs")) !== null && _attr25 !== void 0 ? _attr25 : asCodecs)), channelsOf(representation, adaptationSet)), supplementalOf(representation, adaptationSet)), projectionOf(representation, adaptationSet)), framePackingOf(representation, adaptationSet)));
644
668
  continue;
645
669
  }
646
670
  const list = segmentListOf([
@@ -650,15 +674,15 @@ function parsePeriod(periodElement, span, index, mpdBase, isLive, availability,
650
674
  ], repBase, periodStart, (timescale, offset) => periodDuration !== null ? Math.round(offset + periodDuration * timescale) : null);
651
675
  if (list === "invalid") return { error: manifestError(`bad SegmentList in '${id}'`) };
652
676
  if (list !== null) {
653
- var _attr25, _attr26;
677
+ var _attr26, _attr27;
654
678
  const segments = list.segments.map((segment) => segment.duration === 0 && periodDuration !== null ? _objectSpread2(_objectSpread2({}, segment), {}, { duration: periodDuration }) : segment);
655
- renditions.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
679
+ renditions.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
656
680
  id,
657
681
  bitrate: bandwidth,
658
- codecs: (_attr25 = attr(representation, "codecs")) !== null && _attr25 !== void 0 ? _attr25 : asCodecs,
682
+ codecs: (_attr26 = attr(representation, "codecs")) !== null && _attr26 !== void 0 ? _attr26 : asCodecs,
659
683
  mimeType,
660
684
  segments
661
- }, list.init !== null ? { init: list.init } : {}), numberAttr(representation, "width") !== null ? { width: numberAttr(representation, "width") } : {}), numberAttr(representation, "height") !== null ? { height: numberAttr(representation, "height") } : {}), videoRangeOf(representation, adaptationSet, (_attr26 = attr(representation, "codecs")) !== null && _attr26 !== void 0 ? _attr26 : asCodecs)), channelsOf(representation, adaptationSet)), supplementalOf(representation, adaptationSet)), projectionOf(representation, adaptationSet)));
685
+ }, list.init !== null ? { init: list.init } : {}), numberAttr(representation, "width") !== null ? { width: numberAttr(representation, "width") } : {}), numberAttr(representation, "height") !== null ? { height: numberAttr(representation, "height") } : {}), videoRangeOf(representation, adaptationSet, (_attr27 = attr(representation, "codecs")) !== null && _attr27 !== void 0 ? _attr27 : asCodecs)), channelsOf(representation, adaptationSet)), supplementalOf(representation, adaptationSet)), projectionOf(representation, adaptationSet)), framePackingOf(representation, adaptationSet)));
662
686
  continue;
663
687
  }
664
688
  const template = mergeTemplates([
@@ -668,11 +692,11 @@ function parsePeriod(periodElement, span, index, mpdBase, isLive, availability,
668
692
  ]);
669
693
  if (template === null || template.media === null) {
670
694
  if (contentTypeOf(adaptationSet, mimeType) === "text" && periodDuration !== null) {
671
- var _attr27;
695
+ var _attr28;
672
696
  renditions.push({
673
697
  id,
674
698
  bitrate: bandwidth,
675
- codecs: (_attr27 = attr(representation, "codecs")) !== null && _attr27 !== void 0 ? _attr27 : asCodecs,
699
+ codecs: (_attr28 = attr(representation, "codecs")) !== null && _attr28 !== void 0 ? _attr28 : asCodecs,
676
700
  mimeType,
677
701
  segments: [{
678
702
  seq: 0,
@@ -706,13 +730,13 @@ function parsePeriod(periodElement, span, index, mpdBase, isLive, availability,
706
730
  const height = numberAttr(representation, "height");
707
731
  const tiles = tileGridOf(representation, adaptationSet, width, height);
708
732
  const playoutRate = trick ? (_numberAttr15 = numberAttr(representation, "maxPlayoutRate")) !== null && _numberAttr15 !== void 0 ? _numberAttr15 : asPlayoutRate : null;
709
- renditions.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
733
+ renditions.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
710
734
  id,
711
735
  bitrate: bandwidth,
712
- codecs: (_attr28 = attr(representation, "codecs")) !== null && _attr28 !== void 0 ? _attr28 : asCodecs,
736
+ codecs: (_attr29 = attr(representation, "codecs")) !== null && _attr29 !== void 0 ? _attr29 : asCodecs,
713
737
  mimeType,
714
738
  segments
715
- }, init !== null ? { init } : {}), width !== null ? { width } : {}), height !== null ? { height } : {}), frameRate !== null ? { frameRate } : {}), videoRangeOf(representation, adaptationSet, (_attr29 = attr(representation, "codecs")) !== null && _attr29 !== void 0 ? _attr29 : asCodecs)), tiles !== null ? { tiles } : {}), playoutRate !== null ? { maxPlayoutRate: playoutRate } : {}), channelsOf(representation, adaptationSet)), supplementalOf(representation, adaptationSet)), projectionOf(representation, adaptationSet)));
739
+ }, init !== null ? { init } : {}), width !== null ? { width } : {}), height !== null ? { height } : {}), frameRate !== null ? { frameRate } : {}), videoRangeOf(representation, adaptationSet, (_attr30 = attr(representation, "codecs")) !== null && _attr30 !== void 0 ? _attr30 : asCodecs)), tiles !== null ? { tiles } : {}), playoutRate !== null ? { maxPlayoutRate: playoutRate } : {}), channelsOf(representation, adaptationSet)), supplementalOf(representation, adaptationSet)), projectionOf(representation, adaptationSet)), framePackingOf(representation, adaptationSet)));
716
740
  }
717
741
  if (renditions.length === 0) continue;
718
742
  const mimeType = (_trackMime2 = trackMime) !== null && _trackMime2 !== void 0 ? _trackMime2 : "video/mp4";
@@ -763,7 +787,7 @@ function parsePeriod(periodElement, span, index, mpdBase, isLive, availability,
763
787
  }
764
788
  const events = eventsOf(periodElement, periodStart);
765
789
  return {
766
- id: (_attr30 = attr(periodElement, "id")) !== null && _attr30 !== void 0 ? _attr30 : `p${index}`,
790
+ id: (_attr31 = attr(periodElement, "id")) !== null && _attr31 !== void 0 ? _attr31 : `p${index}`,
767
791
  start: periodStart,
768
792
  duration: periodDuration,
769
793
  tracks,
@@ -789,11 +813,11 @@ const UTC_SCHEME = /^urn:mpeg:dash:utc:(http-xsdate|http-iso|http-head|direct):2
789
813
  * like any other.
790
814
  */
791
815
  function timeServerOf(mpd, baseUrl) {
792
- var _attr31, _attr32;
816
+ var _attr32, _attr33;
793
817
  const timing = children(mpd, "UTCTiming")[0];
794
818
  if (timing === void 0) return null;
795
- const scheme = (_attr31 = attr(timing, "schemeIdUri")) !== null && _attr31 !== void 0 ? _attr31 : "";
796
- const value = (_attr32 = attr(timing, "value")) !== null && _attr32 !== void 0 ? _attr32 : "";
819
+ const scheme = (_attr32 = attr(timing, "schemeIdUri")) !== null && _attr32 !== void 0 ? _attr32 : "";
820
+ const value = (_attr33 = attr(timing, "value")) !== null && _attr33 !== void 0 ? _attr33 : "";
797
821
  if (!UTC_SCHEME.test(scheme) || value === "") return null;
798
822
  return {
799
823
  scheme,
@@ -869,8 +893,8 @@ function parse(text, baseUrl, lowLatency = false, capabilities = []) {
869
893
  } : null;
870
894
  let live;
871
895
  if (isLive) {
872
- var _attr33, _service$target;
873
- const availabilityStart = Date.parse((_attr33 = attr(mpd, "availabilityStartTime")) !== null && _attr33 !== void 0 ? _attr33 : "");
896
+ var _attr34, _service$target;
897
+ const availabilityStart = Date.parse((_attr34 = attr(mpd, "availabilityStartTime")) !== null && _attr34 !== void 0 ? _attr34 : "");
874
898
  const updatePeriod = parseDuration(attr(mpd, "minimumUpdatePeriod"));
875
899
  const timeShiftDepth = parseDuration(attr(mpd, "timeShiftBufferDepth"));
876
900
  const service = lowLatency ? serviceOf(mpd) : {};
@@ -1,6 +1,6 @@
1
1
  import { findRendition } from "../../kernel/presentation.js";
2
2
  import { segmentAt } from "../../kernel/timeline.js";
3
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
3
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/asyncToGenerator.js";
4
4
  // src/protocols/dash-cmaf/periods-runtime.ts
5
5
  /**
6
6
  * What a flattened multi-period presentation needs at playback time, kept
@@ -1,5 +1,5 @@
1
1
  import { isIndexed, isUnresolved, segmentAt } from "../../kernel/timeline.js";
2
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
3
3
  // src/protocols/dash-cmaf/periods.ts
4
4
  /**
5
5
  * Several DASH Periods as one continuous presentation, the way Shaka
@@ -1,7 +1,7 @@
1
1
  import { scheduled, tickAfter } from "../../kernel/effects.js";
2
2
  import { parse } from "../dash-cmaf/parse.js";
3
3
  import { registerLiveNamespace } from "../live-shared.js";
4
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
5
5
  // src/protocols/dash-live/index.ts
6
6
  /**
7
7
  * DASH live: the edge is computed, never read. Wall clock enters only as
@@ -51,7 +51,7 @@ const INITIAL = {
51
51
  };
52
52
  /** FNV-1a over the bytes: tells one MPD text from the next. */
53
53
  function hashOf(bytes) {
54
- let hash = 2166136261;
54
+ let hash = 0x811c9dc5;
55
55
  for (const byte of new Uint8Array(bytes)) hash = Math.imul(hash ^ byte, 16777619);
56
56
  return hash >>> 0;
57
57
  }
@@ -4,7 +4,7 @@ import { activeRenditions } from "../../kernel/rendition-select.js";
4
4
  import { manifestFact } from "../adapter-shared.js";
5
5
  import { parse, parseMediaPlaylist, refreshFor } from "./parse.js";
6
6
  import { LOAD_FAILED, readmitMessage, unavailableMessages } from "./unavailable.js";
7
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
8
8
  // src/protocols/hls-cmaf/index.ts
9
9
  /**
10
10
  * The hls-cmaf protocol adapter as a stage. Inert module: exports a
@@ -3,7 +3,7 @@ import { resolveUrl } from "../../kernel/url.js";
3
3
  import { manifestError } from "../adapter-shared.js";
4
4
  import { dimensions } from "../dimensions.js";
5
5
  import { lex } from "./lexer.js";
6
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
6
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
7
7
  // src/protocols/hls-cmaf/parse.ts
8
8
  /**
9
9
  * m3u8 into the IR. Pure: no fetching, no state, no side effects. URLs are
@@ -1,6 +1,6 @@
1
1
  import { isTrick } from "../../kernel/presentation.js";
2
2
  import { withDeadGroups } from "../../kernel/rendition-select.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
4
  // src/protocols/hls-cmaf/unavailable.ts
5
5
  /**
6
6
  * What a playlist that cannot be used means for playback. Pure; shared by
@@ -4,7 +4,7 @@ import { activeRenditions } from "../../kernel/rendition-select.js";
4
4
  import { parseMediaPlaylist, refreshFor } from "../hls-cmaf/parse.js";
5
5
  import { RELOAD_FAILED, readmitMessage, unavailableMessages } from "../hls-cmaf/unavailable.js";
6
6
  import { registerLiveNamespace } from "../live-shared.js";
7
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
8
8
  // src/protocols/hls-live/index.ts
9
9
  /**
10
10
  * HLS live: the edge is read, never computed. A slice reducer reloads the
@@ -2,7 +2,7 @@ import { resolveUrl } from "../../kernel/url.js";
2
2
  import { manifestError } from "../adapter-shared.js";
3
3
  import { lex } from "../hls-cmaf/lexer.js";
4
4
  import { parseByteRange, parseMediaLines } from "../hls-cmaf/parse.js";
5
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
5
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
6
6
  // src/protocols/hls-ll/parse.ts
7
7
  /**
8
8
  * Low-latency HLS media playlists (RFC 8216bis §4.4.3.7, §4.4.3.8,
@@ -1,7 +1,7 @@
1
1
  import { scheduled } from "../../kernel/effects.js";
2
2
  import { findRendition, isTrick } from "../../kernel/presentation.js";
3
3
  import { canSwitchTo } from "../../kernel/rendition-select.js";
4
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
5
5
  // src/stages/abr/index.ts
6
6
  /**
7
7
  * Adaptive bitrate as a stage, not kernel. It registers one chooser
@@ -1,5 +1,5 @@
1
1
  import { findRendition } from "../../kernel/presentation.js";
2
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
2
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/asyncToGenerator.js";
3
3
  // src/stages/aes-128/index.ts
4
4
  /**
5
5
  * aes-128 as a stage: full-segment AES-CBC decryption for HLS EXT-X-KEY
@@ -1,7 +1,7 @@
1
1
  import { findTrackSite } from "../../kernel/presentation.js";
2
2
  import { chaptersFromInput, parseAppleChapters, parseChapterTrack } from "./parse.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/asyncToGenerator.js";
5
5
  // src/stages/chapters/index.ts
6
6
  /**
7
7
  * Chapters: named spans of the presentation, answered through
@@ -1,7 +1,7 @@
1
1
  import { parseVtt } from "../../containers/webvtt.js";
2
2
  import { resolveUrl } from "../../kernel/url.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
- import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
+ import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectWithoutProperties.js";
5
5
  // src/stages/chapters/parse.ts
6
6
  /**
7
7
  * Chapter files into one record shape. Pure. A WebVTT file serves two
@@ -88,8 +88,7 @@ function cmcd(options = {}) {
88
88
  if (active !== null) keys.br = Math.round(active.rendition.bitrate / 1e3);
89
89
  const mtp = state.stats.throughputEwma;
90
90
  if (mtp > 0) keys.mtp = Math.round(mtp / 1e3 / 100) * 100;
91
- const el = ctx.element;
92
- const ahead = bufferAhead(el);
91
+ const ahead = bufferAhead(ctx.element);
93
92
  if (ahead !== null) keys.bl = Math.round(ahead * 1e3 / 100) * 100;
94
93
  if (ahead !== null && ahead < 1) keys.su = true;
95
94
  const request = state.scheduling.inflight.get(req.token);
@@ -1,6 +1,6 @@
1
1
  import { codecMismatch, probeInitSegment } from "../../containers/codec-probe/index.js";
2
2
  import { findRendition } from "../../kernel/presentation.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
4
  // src/stages/codec-probe/index.ts
5
5
  /**
6
6
  * codec-probe as a loadable stage. The derivation itself lives in the
@@ -1,5 +1,5 @@
1
1
  import { scheduled, tickAfter } from "../../kernel/effects.js";
2
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
3
3
  // src/stages/content-steering/index.ts
4
4
  /**
5
5
  * Content steering: pathway switching from a steering manifest, plus
@@ -1,7 +1,7 @@
1
1
  import { bytesToBase64 } from "../../kernel/base64.js";
2
2
  import { keySystemHandlers, normalizeSystemId } from "../drm-shared.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/asyncToGenerator.js";
5
5
  // src/stages/eme-core/index.ts
6
6
  /**
7
7
  * The generic EME handshake, entanglement #3 resolved: DRM lands without
@@ -1,6 +1,6 @@
1
1
  import { base64ToBytes, bytesToBase64 } from "../../kernel/base64.js";
2
2
  import { registerKeySystem } from "../drm-shared.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
4
  // src/stages/eme-fairplay/index.ts
5
5
  /**
6
6
  * FairPlay Streaming: the non-standard SPC/CKC flow. Safari only, and it
@@ -1,4 +1,4 @@
1
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
1
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/asyncToGenerator.js";
2
2
  // src/stages/hdr/index.ts
3
3
  const SOURCE = "hdr";
4
4
  /** The display's answer, or null when the browser does not know `dynamic-range`. */
@@ -1,6 +1,6 @@
1
1
  import { scte35Summary } from "../../containers/scte35.js";
2
2
  import { resolveUrl } from "../../kernel/url.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
4
4
  // src/stages/interstitials/breaks.ts
5
5
  /**
6
6
  * Breaks from what the stream signals, as plain data. HLS interstitials
@@ -2,8 +2,8 @@ import { placeEmsg } from "../../containers/emsg.js";
2
2
  import { findBox, trackTimescales } from "../../containers/mp4-box/index.js";
3
3
  import { bytesToBase64 } from "../../kernel/base64.js";
4
4
  import { assetsOf, breaksOf, fromEvent } from "./breaks.js";
5
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
6
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
5
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/objectSpread2.js";
6
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.159.0/helpers/esm/asyncToGenerator.js";
7
7
  // src/stages/interstitials/index.ts
8
8
  /**
9
9
  * Plays breaks: HLS interstitials, DASH alternative MPD events, and the