mattebox 0.6.0 → 0.6.1
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.
- package/dist/cdn/mattebox.dash-drm.min.js +3 -3
- package/dist/cdn/mattebox.dash.min.js +3 -3
- package/dist/cdn/mattebox.dual-drm.min.js +3 -3
- package/dist/cdn/mattebox.dual-ts-drm.min.js +3 -3
- package/dist/cdn/mattebox.dual-ts.min.js +3 -3
- package/dist/cdn/mattebox.dual.min.js +3 -3
- package/dist/cdn/mattebox.hls-drm.min.js +3 -3
- package/dist/cdn/mattebox.hls-ts-drm.min.js +3 -3
- package/dist/cdn/mattebox.hls-ts.min.js +3 -3
- package/dist/cdn/mattebox.hls.min.js +3 -3
- package/dist/cdn/mattebox.kernel.min.js +1 -1
- package/dist/cdn/mattebox.min.js +4 -4
- package/dist/containers/mp4-box/index.d.ts +9 -7
- package/dist/containers/mp4-box/index.d.ts.map +1 -1
- package/dist/containers/mp4-box/index.js +20 -28
- package/dist/containers/mp4-box/index.js.map +1 -1
- package/dist/containers/packed-audio/index.d.ts.map +1 -1
- package/dist/containers/packed-audio/index.js +5 -1
- package/dist/containers/packed-audio/index.js.map +1 -1
- package/dist/containers/ts-transmux/index.d.ts.map +1 -1
- package/dist/containers/ts-transmux/index.js +2 -1
- package/dist/containers/ts-transmux/index.js.map +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/defineProperty.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/objectSpread2.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/objectWithoutProperties.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/toPrimitive.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/toPropertyKey.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/typeof.js +1 -1
- package/dist/es2015/containers/id3.js +1 -1
- package/dist/es2015/containers/mp4-box/index.js +19 -22
- package/dist/es2015/containers/packed-audio/index.js +2 -5
- package/dist/es2015/containers/ts-transmux/h264.js +1 -1
- package/dist/es2015/containers/ts-transmux/index.js +3 -6
- package/dist/es2015/index.js +34 -27
- package/dist/es2015/kernel/append-queue.js +1 -1
- package/dist/es2015/kernel/context.js +7 -0
- package/dist/es2015/kernel/loader.js +5 -4
- package/dist/es2015/kernel/mse.js +27 -71
- package/dist/es2015/kernel/prepare.js +77 -0
- package/dist/es2015/kernel/reducer.js +233 -64
- package/dist/es2015/kernel/refresh.js +35 -0
- package/dist/es2015/kernel/rendition-select.js +62 -2
- package/dist/es2015/kernel/scheduler.js +23 -5
- package/dist/es2015/kernel/timeline.js +22 -1
- package/dist/es2015/kernel/trace.js +1 -1
- package/dist/es2015/kernel/transport.js +4 -4
- package/dist/es2015/presets/define.js +2 -2
- package/dist/es2015/presets/tiers.js +7 -6
- package/dist/es2015/protocols/dash-cmaf/index.js +136 -55
- package/dist/es2015/protocols/dash-cmaf/parse.js +2 -10
- package/dist/es2015/protocols/dash-live/index.js +54 -14
- package/dist/es2015/protocols/hls-cmaf/index.js +119 -71
- package/dist/es2015/protocols/hls-cmaf/parse.js +35 -25
- package/dist/es2015/protocols/hls-cmaf/unavailable.js +42 -0
- package/dist/es2015/protocols/hls-live/index.js +191 -85
- package/dist/es2015/stages/abr/index.js +1 -1
- package/dist/es2015/stages/abr-persist/index.js +1 -1
- package/dist/es2015/stages/aes-128/index.js +1 -1
- package/dist/es2015/stages/alt-audio/index.js +1 -1
- package/dist/es2015/stages/cmaf-timing/index.js +24 -39
- package/dist/es2015/stages/cmcd/index.js +15 -2
- package/dist/es2015/stages/content-steering/index.js +1 -1
- package/dist/es2015/stages/eme-core/index.js +2 -2
- package/dist/es2015/stages/eme-fairplay/index.js +1 -1
- package/dist/es2015/stages/recovery/index.js +1 -1
- package/dist/es2015/stages/text-cea608/decode.js +1 -1
- package/dist/es2015/stages/text-webvtt/parse.js +1 -1
- package/dist/es2015/stages/thumbnails/index.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -32
- package/dist/index.js.map +1 -1
- package/dist/kernel/context.d.ts +5 -1
- package/dist/kernel/context.d.ts.map +1 -1
- package/dist/kernel/context.js +10 -0
- package/dist/kernel/context.js.map +1 -1
- package/dist/kernel/loader.d.ts.map +1 -1
- package/dist/kernel/loader.js +5 -7
- package/dist/kernel/loader.js.map +1 -1
- package/dist/kernel/mse.d.ts +6 -10
- package/dist/kernel/mse.d.ts.map +1 -1
- package/dist/kernel/mse.js +20 -73
- package/dist/kernel/mse.js.map +1 -1
- package/dist/kernel/prepare.d.ts +28 -0
- package/dist/kernel/prepare.d.ts.map +1 -0
- package/dist/kernel/prepare.js +89 -0
- package/dist/kernel/prepare.js.map +1 -0
- package/dist/kernel/reducer.d.ts +15 -0
- package/dist/kernel/reducer.d.ts.map +1 -1
- package/dist/kernel/reducer.js +317 -82
- package/dist/kernel/reducer.js.map +1 -1
- package/dist/kernel/refresh.d.ts +14 -0
- package/dist/kernel/refresh.d.ts.map +1 -0
- package/dist/kernel/refresh.js +50 -0
- package/dist/kernel/refresh.js.map +1 -0
- package/dist/kernel/rendition-select.d.ts +19 -1
- package/dist/kernel/rendition-select.d.ts.map +1 -1
- package/dist/kernel/rendition-select.js +69 -0
- package/dist/kernel/rendition-select.js.map +1 -1
- package/dist/kernel/scheduler.d.ts +18 -3
- package/dist/kernel/scheduler.d.ts.map +1 -1
- package/dist/kernel/scheduler.js +32 -7
- package/dist/kernel/scheduler.js.map +1 -1
- package/dist/kernel/timeline.d.ts +18 -6
- package/dist/kernel/timeline.d.ts.map +1 -1
- package/dist/kernel/timeline.js +19 -5
- package/dist/kernel/timeline.js.map +1 -1
- package/dist/kernel/transport.d.ts.map +1 -1
- package/dist/kernel/transport.js +1 -0
- package/dist/kernel/transport.js.map +1 -1
- package/dist/presets/tiers.d.ts +7 -6
- package/dist/presets/tiers.d.ts.map +1 -1
- package/dist/presets/tiers.js +7 -6
- package/dist/presets/tiers.js.map +1 -1
- package/dist/protocols/dash-cmaf/index.d.ts +2 -2
- package/dist/protocols/dash-cmaf/index.d.ts.map +1 -1
- package/dist/protocols/dash-cmaf/index.js +166 -57
- package/dist/protocols/dash-cmaf/index.js.map +1 -1
- package/dist/protocols/dash-live/index.d.ts.map +1 -1
- package/dist/protocols/dash-live/index.js +55 -9
- package/dist/protocols/dash-live/index.js.map +1 -1
- package/dist/protocols/hls-cmaf/index.d.ts +3 -2
- package/dist/protocols/hls-cmaf/index.d.ts.map +1 -1
- package/dist/protocols/hls-cmaf/index.js +140 -88
- package/dist/protocols/hls-cmaf/index.js.map +1 -1
- package/dist/protocols/hls-cmaf/parse.d.ts +9 -5
- package/dist/protocols/hls-cmaf/parse.d.ts.map +1 -1
- package/dist/protocols/hls-cmaf/parse.js +50 -47
- package/dist/protocols/hls-cmaf/parse.js.map +1 -1
- package/dist/protocols/hls-cmaf/unavailable.d.ts +17 -0
- package/dist/protocols/hls-cmaf/unavailable.d.ts.map +1 -0
- package/dist/protocols/hls-cmaf/unavailable.js +36 -0
- package/dist/protocols/hls-cmaf/unavailable.js.map +1 -0
- package/dist/protocols/hls-live/index.d.ts +17 -0
- package/dist/protocols/hls-live/index.d.ts.map +1 -1
- package/dist/protocols/hls-live/index.js +213 -82
- package/dist/protocols/hls-live/index.js.map +1 -1
- package/dist/stages/aes-128/index.js +2 -2
- package/dist/stages/aes-128/index.js.map +1 -1
- package/dist/stages/alt-audio/index.d.ts.map +1 -1
- package/dist/stages/alt-audio/index.js +5 -3
- package/dist/stages/alt-audio/index.js.map +1 -1
- package/dist/stages/cmaf-timing/index.d.ts.map +1 -1
- package/dist/stages/cmaf-timing/index.js +33 -42
- package/dist/stages/cmaf-timing/index.js.map +1 -1
- package/dist/stages/cmcd/index.d.ts.map +1 -1
- package/dist/stages/cmcd/index.js +15 -3
- package/dist/stages/cmcd/index.js.map +1 -1
- package/dist/types/kernel.d.ts +39 -13
- package/dist/types/kernel.d.ts.map +1 -1
- package/dist/types/kernel.js +2 -1
- package/dist/types/kernel.js.map +1 -1
- package/dist/types/messages.d.ts +50 -10
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/stage.d.ts +18 -0
- package/dist/types/stage.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import {
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import { ladderNeighbours } from "../../kernel/rendition-select.js";
|
|
3
|
+
import { parseMediaPlaylist, refreshFor } from "../hls-cmaf/parse.js";
|
|
4
|
+
import { RELOAD_FAILED, unavailableMessages } from "../hls-cmaf/unavailable.js";
|
|
3
5
|
import { registerLiveNamespace } from "../live-shared.js";
|
|
4
6
|
//#region src/protocols/hls-live/index.ts
|
|
7
|
+
/**
|
|
8
|
+
* HLS live: the edge is read, never computed. A slice reducer reloads the
|
|
9
|
+
* active playlists on the TARGETDURATION cadence, reconciles the sliding
|
|
10
|
+
* window as absorb-a-fact-derive-the-diff (seqs stay stable across reloads
|
|
11
|
+
* because they come from MEDIA-SEQUENCE, so replacing the segment list IS
|
|
12
|
+
* the diff for scheduling), and reports the availability window through
|
|
13
|
+
* LIVE_WINDOW_CHANGED facts. EXT-X-ENDLIST converts the presentation to
|
|
14
|
+
* VOD and the reload loop dies with it.
|
|
15
|
+
*
|
|
16
|
+
* One playlist drives the window (the active video rendition, or audio for
|
|
17
|
+
* an audio-only presentation); every other active track's playlist (the
|
|
18
|
+
* audio group's rendition, a segmented subtitle playlist) reloads on the
|
|
19
|
+
* same tick as a companion, the way videojs-http-streaming runs a playlist
|
|
20
|
+
* loader per media type. A companion left stale drains once playback
|
|
21
|
+
* passes the edge it was fetched at, which looks like a live stream dying
|
|
22
|
+
* a minute in.
|
|
23
|
+
*/
|
|
5
24
|
const REFRESH_TOKEN = "hls:live:refresh";
|
|
6
25
|
const TICK_TOKEN = "hls-live:reload";
|
|
7
26
|
const INITIAL = {
|
|
@@ -13,9 +32,20 @@ const INITIAL = {
|
|
|
13
32
|
inflight: null,
|
|
14
33
|
lastEndSeq: -1,
|
|
15
34
|
awaitingTarget: false,
|
|
16
|
-
suspended: false
|
|
35
|
+
suspended: false,
|
|
36
|
+
failures: {},
|
|
37
|
+
abandoned: []
|
|
17
38
|
};
|
|
18
39
|
/**
|
|
40
|
+
* Failed reloads of one playlist in a row before the loop gives up on it.
|
|
41
|
+
* Each reload already carries the transport's own retries, so this is
|
|
42
|
+
* several rounds of a playlist that does not answer: an expired token, a
|
|
43
|
+
* stream that ended without ENDLIST. The playlist is then abandoned and
|
|
44
|
+
* playback moves off it. Retrying forever only keeps the network busy for
|
|
45
|
+
* a stream that cannot play.
|
|
46
|
+
*/
|
|
47
|
+
const FAILURE_LIMIT = 4;
|
|
48
|
+
/**
|
|
19
49
|
* A two-hour DVR playlist is tens of kilobytes; reloading four of them every
|
|
20
50
|
* target duration saturates a slow link. The audio and text companions keep
|
|
21
51
|
* the full cadence because playback consumes them; the other video rungs
|
|
@@ -34,6 +64,15 @@ const LADDER_EVERY = 3;
|
|
|
34
64
|
function refreshToken(renditionId) {
|
|
35
65
|
return `${REFRESH_TOKEN}:${renditionId}`;
|
|
36
66
|
}
|
|
67
|
+
/** A reload of one playlist. The rendition rides along so a failure counts toward steering failover. */
|
|
68
|
+
function reload(target) {
|
|
69
|
+
return {
|
|
70
|
+
kind: "fetch",
|
|
71
|
+
token: refreshToken(target.renditionId),
|
|
72
|
+
url: target.url,
|
|
73
|
+
renditionId: target.renditionId
|
|
74
|
+
};
|
|
75
|
+
}
|
|
37
76
|
function renditionOfToken(token) {
|
|
38
77
|
return token.startsWith(`${REFRESH_TOKEN}:`) ? token.slice(17) : null;
|
|
39
78
|
}
|
|
@@ -42,30 +81,46 @@ function findRendition(presentation, renditionId) {
|
|
|
42
81
|
return null;
|
|
43
82
|
}
|
|
44
83
|
/**
|
|
45
|
-
* The active tracks' playlists other than the window rendition's:
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* a
|
|
84
|
+
* The active tracks' playlists other than the window rendition's: the audio
|
|
85
|
+
* group rendition, a segmented subtitle playlist, and the video rungs next
|
|
86
|
+
* to the window rendition. A switch can only land on a rendition whose
|
|
87
|
+
* playlist reaches the playhead, and ABR steps one rung at a time, so the
|
|
88
|
+
* neighbours stay fresh; a longer jump reloads its target at once (the
|
|
89
|
+
* switch branch). Reloading the whole ladder saturates the link on a large
|
|
90
|
+
* multivariant playlist. Renditions without a playlist of their own (muxed
|
|
91
|
+
* audio, a text track in a single file) need no reload, and a playlist
|
|
92
|
+
* shared by several renditions reloads once.
|
|
52
93
|
*/
|
|
53
|
-
function companionTargets(presentation, kernel,
|
|
54
|
-
const
|
|
94
|
+
function companionTargets(presentation, kernel, window, abandoned) {
|
|
95
|
+
const urls = /* @__PURE__ */ new Set();
|
|
96
|
+
if ((window === null || window === void 0 ? void 0 : window.playlistUrl) !== void 0) urls.add(window.playlistUrl);
|
|
97
|
+
const out = [];
|
|
98
|
+
const add = (rendition, ladder) => {
|
|
99
|
+
const url = rendition.playlistUrl;
|
|
100
|
+
if (url === void 0 || urls.has(url) || abandoned.includes(rendition.id)) return;
|
|
101
|
+
urls.add(url);
|
|
102
|
+
out.push({
|
|
103
|
+
url,
|
|
104
|
+
renditionId: rendition.id,
|
|
105
|
+
ladder
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
for (const contentType of [
|
|
55
109
|
"video",
|
|
56
110
|
"audio",
|
|
57
111
|
"text"
|
|
58
|
-
]
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
112
|
+
]) {
|
|
113
|
+
const trackId = kernel.tracks.active.get(contentType);
|
|
114
|
+
if (trackId === void 0) continue;
|
|
115
|
+
for (const period of presentation.periods) for (const track of period.tracks) {
|
|
116
|
+
if (track.id !== trackId) continue;
|
|
117
|
+
if (contentType !== "video") {
|
|
118
|
+
for (const rendition of track.renditions) add(rendition, false);
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if (window === null) continue;
|
|
122
|
+
const neighbours = ladderNeighbours(track.renditions, window.id, kernel.quality.constraints);
|
|
123
|
+
for (const rendition of neighbours) add(rendition, true);
|
|
69
124
|
}
|
|
70
125
|
}
|
|
71
126
|
return out;
|
|
@@ -96,7 +151,7 @@ function tick(delaySeconds) {
|
|
|
96
151
|
* presentation (a radio or packed-audio DVR stream) has no video track, so
|
|
97
152
|
* audio drives the window there.
|
|
98
153
|
*/
|
|
99
|
-
function windowRendition(presentation, kernel) {
|
|
154
|
+
function windowRendition(presentation, kernel, abandoned) {
|
|
100
155
|
let fallback = null;
|
|
101
156
|
for (const contentType of ["video", "audio"]) {
|
|
102
157
|
for (const period of presentation.periods) for (const track of period.tracks) {
|
|
@@ -104,6 +159,7 @@ function windowRendition(presentation, kernel) {
|
|
|
104
159
|
for (const rendition of track.renditions) {
|
|
105
160
|
var _fallback;
|
|
106
161
|
if (!Array.isArray(rendition.segments) || rendition.segments.length === 0) continue;
|
|
162
|
+
if (abandoned.includes(rendition.id)) continue;
|
|
107
163
|
if (rendition.id === kernel.quality.active) return rendition;
|
|
108
164
|
fallback = (_fallback = fallback) !== null && _fallback !== void 0 ? _fallback : rendition;
|
|
109
165
|
}
|
|
@@ -115,7 +171,7 @@ function windowRendition(presentation, kernel) {
|
|
|
115
171
|
/**
|
|
116
172
|
* The window fact for the rendition's current segment list, or null when
|
|
117
173
|
* the kernel already holds exactly that window: every companion reload
|
|
118
|
-
* feeds a
|
|
174
|
+
* feeds a PLAYLIST_REFRESHED, and a window that has not moved is not news.
|
|
119
175
|
*/
|
|
120
176
|
function windowFact(presentation, rendition, kernel) {
|
|
121
177
|
var _presentation$live$ho, _presentation$live, _presentation$live$up, _presentation$live2;
|
|
@@ -143,6 +199,64 @@ function playlistUrlFor(presentation, renditionId, target) {
|
|
|
143
199
|
if ((rendition === null || rendition === void 0 ? void 0 : rendition.playlistUrl) !== void 0) return rendition.playlistUrl;
|
|
144
200
|
return target !== null && target.renditionId === renditionId ? target.url : null;
|
|
145
201
|
}
|
|
202
|
+
/** Every rendition whose playlist is `url`. */
|
|
203
|
+
function renditionIdsAt(presentation, url) {
|
|
204
|
+
const ids = [];
|
|
205
|
+
for (const period of presentation.periods) for (const track of period.tracks) for (const rendition of track.renditions) if (rendition.playlistUrl === url) ids.push(rendition.id);
|
|
206
|
+
return ids;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* A reload that failed, or answered with a playlist that does not parse.
|
|
210
|
+
* The target tries again soon rather than let the loop die, and every
|
|
211
|
+
* other playlist waits for the next tick, up to FAILURE_LIMIT times in a
|
|
212
|
+
* row. Then the playlist is abandoned: its renditions are excluded, so
|
|
213
|
+
* arbitration moves to another variant (or, for an audio group, to a
|
|
214
|
+
* variant on another group), and the next tick reloads whatever the window
|
|
215
|
+
* rendition is then. The load fails only when nothing is left to move to.
|
|
216
|
+
*/
|
|
217
|
+
function reloadFailed(state, kernel, renditionId, error) {
|
|
218
|
+
var _state$failures$rendi, _findRendition;
|
|
219
|
+
const count = ((_state$failures$rendi = state.failures[renditionId]) !== null && _state$failures$rendi !== void 0 ? _state$failures$rendi : 0) + 1;
|
|
220
|
+
const failures = _objectSpread2(_objectSpread2({}, state.failures), {}, { [renditionId]: count });
|
|
221
|
+
const isTarget = state.target !== null && renditionId === state.target.renditionId;
|
|
222
|
+
if (count < FAILURE_LIMIT) {
|
|
223
|
+
if (!isTarget) return [_objectSpread2(_objectSpread2({}, state), {}, { failures }), []];
|
|
224
|
+
if (state.tickPending) return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
225
|
+
failures,
|
|
226
|
+
inflight: null
|
|
227
|
+
}), []];
|
|
228
|
+
return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
229
|
+
failures,
|
|
230
|
+
inflight: null,
|
|
231
|
+
tickPending: true
|
|
232
|
+
}), [tick(2)]];
|
|
233
|
+
}
|
|
234
|
+
const presentation = kernel.presentation;
|
|
235
|
+
const url = presentation === null ? null : playlistUrlFor(presentation, renditionId, state.target);
|
|
236
|
+
const sharing = presentation !== null && url !== null && ((_findRendition = findRendition(presentation, renditionId)) === null || _findRendition === void 0 ? void 0 : _findRendition.playlistUrl) !== void 0 ? renditionIdsAt(presentation, url) : [renditionId];
|
|
237
|
+
const abandoned = [.../* @__PURE__ */ new Set([...state.abandoned, ...sharing])];
|
|
238
|
+
const messages = unavailableMessages(kernel, RELOAD_FAILED, abandoned, {
|
|
239
|
+
category: "manifest",
|
|
240
|
+
code: "MANIFEST_REFRESH_FAILED",
|
|
241
|
+
fatal: true,
|
|
242
|
+
recoverable: false,
|
|
243
|
+
context: {
|
|
244
|
+
cause: error.code,
|
|
245
|
+
renditionId,
|
|
246
|
+
attempts: count
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
const next = _objectSpread2(_objectSpread2({}, state), {}, {
|
|
250
|
+
failures,
|
|
251
|
+
abandoned,
|
|
252
|
+
companions: state.companions.filter((c) => !abandoned.includes(c.renditionId)),
|
|
253
|
+
inflight: isTarget ? null : state.inflight
|
|
254
|
+
});
|
|
255
|
+
const effects = messages.map(feed);
|
|
256
|
+
const failed = messages.some((m) => m.type === "MANIFEST_FAILED");
|
|
257
|
+
if (isTarget && !failed && !state.tickPending) return [_objectSpread2(_objectSpread2({}, next), {}, { tickPending: true }), [...effects, tick(2)]];
|
|
258
|
+
return [next, effects];
|
|
259
|
+
}
|
|
146
260
|
const reduceHlsLive = (slice, msg, kernel) => {
|
|
147
261
|
const state = slice !== null && slice !== void 0 ? slice : INITIAL;
|
|
148
262
|
if (msg.type === "LOAD") return [_objectSpread2(_objectSpread2({}, INITIAL), {}, { manifestUrl: msg.url }), []];
|
|
@@ -168,29 +282,22 @@ const reduceHlsLive = (slice, msg, kernel) => {
|
|
|
168
282
|
if (!state.suspended) return [state, []];
|
|
169
283
|
const resumed = _objectSpread2(_objectSpread2({}, state), {}, { suspended: false });
|
|
170
284
|
if (state.target === null || ((_kernel$presentation = kernel.presentation) === null || _kernel$presentation === void 0 ? void 0 : _kernel$presentation.isLive) !== true) return [resumed, []];
|
|
171
|
-
const effects = [
|
|
172
|
-
|
|
173
|
-
token: refreshToken(state.target.renditionId),
|
|
174
|
-
url: state.target.url
|
|
175
|
-
}];
|
|
176
|
-
for (const companion of state.companions) effects.push({
|
|
177
|
-
kind: "fetch",
|
|
178
|
-
token: refreshToken(companion.renditionId),
|
|
179
|
-
url: companion.url
|
|
180
|
-
});
|
|
285
|
+
const effects = [reload(state.target)];
|
|
286
|
+
for (const companion of state.companions) effects.push(reload(companion));
|
|
181
287
|
return [_objectSpread2(_objectSpread2({}, resumed), {}, {
|
|
182
288
|
inflight: state.target.renditionId,
|
|
183
289
|
awaitingTarget: true
|
|
184
290
|
}), effects];
|
|
185
291
|
}
|
|
186
|
-
if (msg.type === "MANIFEST_LOADED") {
|
|
187
|
-
var _rendition$playlistUr
|
|
188
|
-
|
|
292
|
+
if ((msg.type === "MANIFEST_LOADED" || msg.type === "PLAYLIST_REFRESHED") && kernel.presentation !== null) {
|
|
293
|
+
var _rendition$playlistUr;
|
|
294
|
+
const presentation = kernel.presentation;
|
|
295
|
+
if (!presentation.isLive) return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
189
296
|
target: null,
|
|
190
297
|
companions: [],
|
|
191
298
|
inflight: null
|
|
192
299
|
}), []];
|
|
193
|
-
const rendition = windowRendition(
|
|
300
|
+
const rendition = windowRendition(presentation, kernel, state.abandoned);
|
|
194
301
|
const effects = [];
|
|
195
302
|
const url = (_rendition$playlistUr = rendition === null || rendition === void 0 ? void 0 : rendition.playlistUrl) !== null && _rendition$playlistUr !== void 0 ? _rendition$playlistUr : state.manifestUrl;
|
|
196
303
|
const target = url !== null && rendition !== null ? {
|
|
@@ -198,28 +305,24 @@ const reduceHlsLive = (slice, msg, kernel) => {
|
|
|
198
305
|
renditionId: rendition.id,
|
|
199
306
|
ladder: false
|
|
200
307
|
} : state.target;
|
|
201
|
-
const companions = companionTargets(
|
|
308
|
+
const companions = companionTargets(presentation, kernel, rendition, state.abandoned);
|
|
202
309
|
const switched = state.target !== null && target !== null && target.renditionId !== state.target.renditionId;
|
|
203
310
|
let awaitingTarget = state.awaitingTarget;
|
|
204
311
|
let inflight = state.inflight;
|
|
205
312
|
if (switched && target !== null) {
|
|
206
313
|
if (inflight !== target.renditionId) {
|
|
207
|
-
effects.push(
|
|
208
|
-
kind: "fetch",
|
|
209
|
-
token: refreshToken(target.renditionId),
|
|
210
|
-
url: target.url
|
|
211
|
-
});
|
|
314
|
+
effects.push(reload(target));
|
|
212
315
|
inflight = target.renditionId;
|
|
213
316
|
}
|
|
214
317
|
awaitingTarget = true;
|
|
215
318
|
} else if (!awaitingTarget && rendition !== null) {
|
|
216
|
-
const window = windowFact(
|
|
319
|
+
const window = windowFact(presentation, rendition, kernel);
|
|
217
320
|
if (window !== null) effects.push(window);
|
|
218
321
|
}
|
|
219
322
|
let tickPending = state.tickPending;
|
|
220
323
|
if (!tickPending && inflight === null && target !== null) {
|
|
221
|
-
var
|
|
222
|
-
effects.push(tick((
|
|
324
|
+
var _presentation$live$up2, _presentation$live3;
|
|
325
|
+
effects.push(tick((_presentation$live$up2 = (_presentation$live3 = presentation.live) === null || _presentation$live3 === void 0 ? void 0 : _presentation$live3.updatePeriod) !== null && _presentation$live$up2 !== void 0 ? _presentation$live$up2 : 4));
|
|
223
326
|
tickPending = true;
|
|
224
327
|
}
|
|
225
328
|
return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
@@ -236,25 +339,34 @@ const reduceHlsLive = (slice, msg, kernel) => {
|
|
|
236
339
|
tickPending: false,
|
|
237
340
|
inflight: null
|
|
238
341
|
}), []];
|
|
342
|
+
let target = state.target;
|
|
343
|
+
let awaitingTarget = state.awaitingTarget;
|
|
344
|
+
if (state.abandoned.includes(target.renditionId)) {
|
|
345
|
+
const rendition = windowRendition(kernel.presentation, kernel, state.abandoned);
|
|
346
|
+
target = (rendition === null || rendition === void 0 ? void 0 : rendition.playlistUrl) !== void 0 ? {
|
|
347
|
+
url: rendition.playlistUrl,
|
|
348
|
+
renditionId: rendition.id,
|
|
349
|
+
ladder: false
|
|
350
|
+
} : null;
|
|
351
|
+
if (target === null) return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
352
|
+
tickPending: false,
|
|
353
|
+
inflight: null
|
|
354
|
+
}), []];
|
|
355
|
+
awaitingTarget = true;
|
|
356
|
+
}
|
|
239
357
|
const effects = [];
|
|
240
358
|
let inflight = state.inflight;
|
|
241
|
-
if (inflight !==
|
|
242
|
-
effects.push(
|
|
243
|
-
|
|
244
|
-
token: refreshToken(state.target.renditionId),
|
|
245
|
-
url: state.target.url
|
|
246
|
-
});
|
|
247
|
-
inflight = state.target.renditionId;
|
|
359
|
+
if (inflight !== target.renditionId) {
|
|
360
|
+
effects.push(reload(target));
|
|
361
|
+
inflight = target.renditionId;
|
|
248
362
|
}
|
|
249
363
|
for (const companion of state.companions) {
|
|
250
364
|
if (companion.ladder && state.round % LADDER_EVERY !== 0) continue;
|
|
251
|
-
effects.push(
|
|
252
|
-
kind: "fetch",
|
|
253
|
-
token: refreshToken(companion.renditionId),
|
|
254
|
-
url: companion.url
|
|
255
|
-
});
|
|
365
|
+
effects.push(reload(companion));
|
|
256
366
|
}
|
|
257
367
|
return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
368
|
+
target,
|
|
369
|
+
awaitingTarget,
|
|
258
370
|
round: state.round + 1,
|
|
259
371
|
tickPending: false,
|
|
260
372
|
inflight
|
|
@@ -263,15 +375,10 @@ const reduceHlsLive = (slice, msg, kernel) => {
|
|
|
263
375
|
if (msg.type === "SEGMENT_FAILED") {
|
|
264
376
|
const renditionId = renditionOfToken(msg.trackId);
|
|
265
377
|
if (renditionId === null) return [state, []];
|
|
266
|
-
|
|
267
|
-
if (state.tickPending) return [_objectSpread2(_objectSpread2({}, state), {}, { inflight: null }), []];
|
|
268
|
-
return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
269
|
-
inflight: null,
|
|
270
|
-
tickPending: true
|
|
271
|
-
}), [tick(2)]];
|
|
378
|
+
return reloadFailed(state, kernel, renditionId, msg.error);
|
|
272
379
|
}
|
|
273
380
|
if (msg.type === "SEGMENT_LOADED") {
|
|
274
|
-
var _lastSegment$seq;
|
|
381
|
+
var _findRendition2, _lastSegment$seq;
|
|
275
382
|
const renditionId = renditionOfToken(msg.trackId);
|
|
276
383
|
if (renditionId === null || kernel.presentation === null) return [state, []];
|
|
277
384
|
const isTarget = state.target !== null && renditionId === state.target.renditionId;
|
|
@@ -280,25 +387,23 @@ const reduceHlsLive = (slice, msg, kernel) => {
|
|
|
280
387
|
const text = new TextDecoder().decode(msg.bytes);
|
|
281
388
|
const media = parseMediaPlaylist(text, url);
|
|
282
389
|
if (media.playlist === null) {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
390
|
+
var _media$error;
|
|
391
|
+
return reloadFailed(state, kernel, renditionId, (_media$error = media.error) !== null && _media$error !== void 0 ? _media$error : {
|
|
392
|
+
category: "manifest",
|
|
393
|
+
code: "MANIFEST_PARSE_FAILED",
|
|
394
|
+
fatal: false,
|
|
395
|
+
recoverable: false
|
|
396
|
+
});
|
|
289
397
|
}
|
|
290
|
-
const
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
presentation: refreshed
|
|
300
|
-
})];
|
|
301
|
-
if (!isTarget) return [state, effects];
|
|
398
|
+
const failures = _objectSpread2({}, state.failures);
|
|
399
|
+
delete failures[renditionId];
|
|
400
|
+
const sharing = ((_findRendition2 = findRendition(kernel.presentation, renditionId)) === null || _findRendition2 === void 0 ? void 0 : _findRendition2.playlistUrl) === void 0 ? [renditionId] : renditionIdsAt(kernel.presentation, url);
|
|
401
|
+
const effects = [];
|
|
402
|
+
for (const id of sharing) {
|
|
403
|
+
const refresh = refreshFor(kernel.presentation, id, media.playlist);
|
|
404
|
+
if (refresh !== null) effects.push(feed(refresh));
|
|
405
|
+
}
|
|
406
|
+
if (!isTarget) return [_objectSpread2(_objectSpread2({}, state), {}, { failures }), effects];
|
|
302
407
|
const lastSegment = media.playlist.segments[media.playlist.segments.length - 1];
|
|
303
408
|
const endSeq = (_lastSegment$seq = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.seq) !== null && _lastSegment$seq !== void 0 ? _lastSegment$seq : -1;
|
|
304
409
|
const changed = endSeq !== state.lastEndSeq;
|
|
@@ -309,6 +414,7 @@ const reduceHlsLive = (slice, msg, kernel) => {
|
|
|
309
414
|
tickPending = true;
|
|
310
415
|
}
|
|
311
416
|
return [_objectSpread2(_objectSpread2({}, state), {}, {
|
|
417
|
+
failures,
|
|
312
418
|
lastEndSeq: endSeq,
|
|
313
419
|
tickPending,
|
|
314
420
|
inflight: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { canSwitchTo } from "../../kernel/rendition-select.js";
|
|
3
3
|
//#region src/stages/abr/index.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region src/stages/abr-persist/index.ts
|
|
3
3
|
const INITIAL = {
|
|
4
4
|
seeded: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/asyncToGenerator.js";
|
|
2
2
|
//#region src/stages/aes-128/index.ts
|
|
3
3
|
/** Before the transmux (100) and the codec probe (5), which must read clear bytes. */
|
|
4
4
|
const DECRYPT_ORDER = 1;
|
|
@@ -53,7 +53,7 @@ const reduceAltAudio = (slice, msg, kernel) => {
|
|
|
53
53
|
if ((chosen === null || chosen === void 0 ? void 0 : chosen.lang) != null) return [{ preferredLang: chosen.lang }, []];
|
|
54
54
|
return [state, []];
|
|
55
55
|
}
|
|
56
|
-
if (msg.type === "MANIFEST_LOADED" || msg.type === "SEGMENT_LOADED") {
|
|
56
|
+
if (msg.type === "MANIFEST_LOADED" || msg.type === "PLAYLIST_REFRESHED" || msg.type === "SEGMENT_LOADED") {
|
|
57
57
|
const group = requiredGroup(kernel);
|
|
58
58
|
if (group === null) return [state, []];
|
|
59
59
|
const active = kernel.tracks.active.get("audio");
|
|
@@ -1,52 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { earliestDecodeTime, findBox, trackTimescales } from "../../containers/mp4-box/index.js";
|
|
2
2
|
//#region src/stages/cmaf-timing/index.ts
|
|
3
3
|
/**
|
|
4
|
-
* cmaf-timing
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
4
|
+
* cmaf-timing reads where a native fMP4 segment's media clock starts, so
|
|
5
|
+
* the kernel can land the segment at the presentation time the manifest
|
|
6
|
+
* gives it. Packagers write whatever clock they like into tfdt: a live
|
|
7
|
+
* broadcast clock in the billions of seconds, an encoder offset of ten
|
|
8
|
+
* seconds into a VOD title, or zero. The bytes are never touched. The
|
|
9
|
+
* kernel settles one timestampOffset per timeline epoch from the first
|
|
10
|
+
* reading, the segment's playlist start minus this decode time, and every
|
|
11
|
+
* buffer applies it, the way videojs-http-streaming derives the offset
|
|
12
|
+
* from its main loader's first segment.
|
|
12
13
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* segment is normalized the same way.
|
|
14
|
+
* The probe runs after the transform pipeline, so a decrypted or
|
|
15
|
+
* transmuxed segment is read in its final form. Timescales come from each
|
|
16
|
+
* rendition's init segment moov, or from a self-contained segment that
|
|
17
|
+
* carries its own.
|
|
18
18
|
*/
|
|
19
|
-
/** After ts-transmux (100) and any decrypt-class step, before the append. */
|
|
20
|
-
const ORDER = 150;
|
|
21
19
|
function cmafTiming() {
|
|
22
20
|
return {
|
|
23
21
|
name: "cmaf-timing",
|
|
24
|
-
provides: [
|
|
25
|
-
"cmaf-timing",
|
|
26
|
-
"media-transform",
|
|
27
|
-
"media-time-normalized"
|
|
28
|
-
],
|
|
22
|
+
provides: ["cmaf-timing", "media-time-probe"],
|
|
29
23
|
install(ctx) {
|
|
30
24
|
const timescales = /* @__PURE__ */ new Map();
|
|
31
|
-
ctx.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
if (findBox(data, "moov") !== null) {
|
|
37
|
-
const scales = trackTimescales(data);
|
|
38
|
-
if (scales.size > 0) timescales.set(meta.contentType, scales);
|
|
39
|
-
}
|
|
40
|
-
if (findBox(data, "moof") !== null) {
|
|
41
|
-
const scales = timescales.get(meta.contentType);
|
|
42
|
-
if (scales !== void 0 && scales.size > 0) {
|
|
43
|
-
var _;
|
|
44
|
-
const fallback = (_ = [...scales.values()][0]) !== null && _ !== void 0 ? _ : 0;
|
|
45
|
-
normalizeTfdt(data, meta.start, scales, fallback);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return data;
|
|
25
|
+
ctx.registerTimeProbe((data, meta) => {
|
|
26
|
+
if (meta.contentType !== "video" && meta.contentType !== "audio") return null;
|
|
27
|
+
if (findBox(data, "moov") !== null) {
|
|
28
|
+
const scales = trackTimescales(data);
|
|
29
|
+
if (scales.size > 0) timescales.set(meta.renditionId, scales);
|
|
49
30
|
}
|
|
31
|
+
if (findBox(data, "moof") === null) return null;
|
|
32
|
+
const scales = timescales.get(meta.renditionId);
|
|
33
|
+
if (scales === void 0) return null;
|
|
34
|
+
return earliestDecodeTime(data, scales);
|
|
50
35
|
});
|
|
51
36
|
}
|
|
52
37
|
};
|
|
@@ -24,9 +24,22 @@ function serialize(keys) {
|
|
|
24
24
|
return `${key}=${value}`;
|
|
25
25
|
}).join(",");
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* A version 4 UUID for `sid` (CTA-5004 recommends a UUID). randomUUID
|
|
29
|
+
* exists only in secure contexts, so plain-HTTP pages build one from
|
|
30
|
+
* getRandomValues, which every context has (RFC 9562 §5.4).
|
|
31
|
+
*/
|
|
32
|
+
function sessionUuid() {
|
|
33
|
+
if (typeof crypto.randomUUID === "function") return crypto.randomUUID();
|
|
34
|
+
const bytes = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
|
|
35
|
+
bytes[6] = bytes[6] & 15 | 64;
|
|
36
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
37
|
+
const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
38
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
39
|
+
}
|
|
27
40
|
function cmcd(options = {}) {
|
|
28
|
-
var
|
|
29
|
-
const sessionId = (
|
|
41
|
+
var _options$sessionId, _options$mode;
|
|
42
|
+
const sessionId = (_options$sessionId = options.sessionId) !== null && _options$sessionId !== void 0 ? _options$sessionId : sessionUuid();
|
|
30
43
|
const mode = (_options$mode = options.mode) !== null && _options$mode !== void 0 ? _options$mode : "query";
|
|
31
44
|
return {
|
|
32
45
|
name: "cmcd",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region src/stages/content-steering/index.ts
|
|
3
3
|
const MANIFEST_TOKEN = "steering:manifest";
|
|
4
4
|
const RELOAD_TOKEN = "steering:reload";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/asyncToGenerator.js";
|
|
3
3
|
import { keySystemHandlers, normalizeSystemId } from "../drm-shared.js";
|
|
4
4
|
//#region src/stages/eme-core/index.ts
|
|
5
5
|
const CLEARKEY = "org.w3.clearkey";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { registerKeySystem } from "../drm-shared.js";
|
|
3
3
|
//#region src/stages/eme-fairplay/index.ts
|
|
4
4
|
const FAIRPLAY_SYSTEM_ID = "94ce86fb-07ff-4f43-adb8-93d2fa968ca2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region src/stages/recovery/index.ts
|
|
3
3
|
const DEFAULTS = {
|
|
4
4
|
excludeAfter: 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/defineProperty.js";
|
|
2
2
|
//#region src/stages/text-cea608/decode.ts
|
|
3
3
|
const ROWS = 15;
|
|
4
4
|
/** The basic CEA-608 character set: ASCII with a handful of substitutions. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region src/stages/text-webvtt/parse.ts
|
|
3
3
|
/** `HH:MM:SS.mmm` or `MM:SS.mmm` to seconds, or null. */
|
|
4
4
|
function parseTimestamp(text) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/asyncToGenerator.js";
|
|
2
2
|
//#region src/stages/thumbnails/index.ts
|
|
3
3
|
function timestamp(text) {
|
|
4
4
|
const parts = text.trim().split(":").map(Number);
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMvE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAExD,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,kBAAkB,CAAC;AAEtC;;;;;;GAMG;AAEH,MAAM,WAAW,kBAAkB;CAAG;AAEtC;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAIlE,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,CA2Z3D;yBA3Ze,QAAQ;mBAiaH,gBAAgB,KAAG,QAAQ,GAAG,IAAI"}
|