@vindral/web-sdk 4.1.7-2-g5b3cced4 → 4.1.7-4-g2df58a2b
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/{BsNAFBQN.js → BvnP6GwT.js} +1 -1
- package/{CP-Li-sh.js → DB98JzqA.js} +1 -1
- package/core.d.ts +1 -1
- package/core.js +1 -1
- package/legacy.d.ts +1 -1
- package/legacy.es.js +105 -104
- package/legacy.umd.js +5 -5
- package/{DZluQ4FW.js → moo_d1lY.js} +134 -133
- package/package.json +1 -1
- package/player.d.ts +1 -1
- package/player.js +1 -1
- package/react.d.ts +1 -1
package/legacy.es.js
CHANGED
|
@@ -39,7 +39,7 @@ var Je = (i) => {
|
|
|
39
39
|
a = fE(h, t, Q = {}, i[3], G), h && (a.static = d, a.private = u, E = a.access = { has: u ? (k) => pE(g, k) : (k) => t in k }, h ^ 3 && (E.get = u ? (k) => (h ^ 1 ? s : l)(k, g, h ^ 4 ? B : y.get) : (k) => k[t]), h > 2 && (E.set = u ? (k, Y) => r(k, g, Y, h ^ 4 ? B : y.set) : (k, Y) => k[t] = Y)), C = (0, e[R])(h ? h < 4 ? u ? B : y[S] : h > 4 ? void 0 : { get: y.get, set: y.set } : g, a), Q._ = 1, h ^ 4 || C === void 0 ? ng(C) && (h > 4 ? p.unshift(C) : h ? u ? B = C : y[S] = C : g = C) : typeof C != "object" || C === null ? Jt("Object expected") : (ng(o = C.get) && (y.get = o), ng(o = C.set) && (y.set = o), ng(o = C.init) && p.unshift(o));
|
|
40
40
|
return h || ee(i, g), y && hC(g, t, y), u ? h ^ 4 ? B : y : g;
|
|
41
41
|
}, I = (i, A, t) => cB(i, typeof A != "symbol" ? A + "" : A, t), dC = (i, A, t) => A.has(i) || Jt("Cannot " + t), pE = (i, A) => Object(A) !== A ? Jt('Cannot use the "in" operator on this value') : i.has(A), s = (i, A, t) => (dC(i, A, "read from private field"), t ? t.call(i) : A.get(i)), n = (i, A, t) => A.has(i) ? Jt("Cannot add the same private member more than once") : A instanceof WeakSet ? A.add(i) : A.set(i, t), r = (i, A, t, e) => (dC(i, A, "write to private field"), e ? e.call(i, t) : A.set(i, t), t), l = (i, A, t) => (dC(i, A, "access private method"), t);
|
|
42
|
-
var
|
|
42
|
+
var OA = (i, A, t, e) => ({
|
|
43
43
|
set _(g) {
|
|
44
44
|
r(i, A, g, t);
|
|
45
45
|
},
|
|
@@ -92,7 +92,7 @@ var c = (i, A, t) => new Promise((e, g) => {
|
|
|
92
92
|
throw B;
|
|
93
93
|
}, "return" in A && e("return"), g;
|
|
94
94
|
}, IA = (i, A, t) => (A = i[dt("asyncIterator")]) ? A.call(i) : (i = i[dt("iterator")](), A = {}, t = (e, g) => (g = i[e]) && (A[e] = (B) => new Promise((o, C, Q) => (B = g.call(i, B), Q = B.done, Promise.resolve(B.value).then((a) => o({ value: a, done: Q }), C)))), t("next"), t("return"), A);
|
|
95
|
-
var
|
|
95
|
+
var VA = (i, A, t) => {
|
|
96
96
|
if (A != null) {
|
|
97
97
|
typeof A != "object" && typeof A != "function" && Jt("Object expected");
|
|
98
98
|
var e, g;
|
|
@@ -105,7 +105,7 @@ var OA = (i, A, t) => {
|
|
|
105
105
|
}), i.push([t, e, A]);
|
|
106
106
|
} else t && i.push([t]);
|
|
107
107
|
return A;
|
|
108
|
-
},
|
|
108
|
+
}, ZA = (i, A, t) => {
|
|
109
109
|
var e = typeof SuppressedError == "function" ? SuppressedError : function(o, C, Q, a) {
|
|
110
110
|
return a = Error(Q), a.name = "SuppressedError", a.error = o, a.suppressed = C, a;
|
|
111
111
|
}, g = (o) => A = t ? new e(o, A, "An error was suppressed during disposal") : (t = !0, o), B = (o) => {
|
|
@@ -344,12 +344,12 @@ class pa {
|
|
|
344
344
|
I(this, "peekBit", () => this.getBit(s(this, ut), s(this, gt)));
|
|
345
345
|
I(this, "readBit", () => {
|
|
346
346
|
const A = this.peekBit();
|
|
347
|
-
return
|
|
347
|
+
return OA(this, gt)._++, A;
|
|
348
348
|
});
|
|
349
349
|
I(this, "readBits", (A) => {
|
|
350
350
|
let t = 0;
|
|
351
351
|
for (let e = 0; e < A; e++)
|
|
352
|
-
t = t << 1 | (this.getBit(s(this, ut),
|
|
352
|
+
t = t << 1 | (this.getBit(s(this, ut), OA(this, gt)._++) ? 1 : 0);
|
|
353
353
|
return t;
|
|
354
354
|
});
|
|
355
355
|
I(this, "remainingBits", () => s(this, ut).byteLength * 8 - s(this, gt));
|
|
@@ -359,11 +359,11 @@ class pa {
|
|
|
359
359
|
});
|
|
360
360
|
I(this, "readUnsignedExpGolomb", () => {
|
|
361
361
|
let A = 0;
|
|
362
|
-
for (; this.getBit(s(this, ut),
|
|
362
|
+
for (; this.getBit(s(this, ut), OA(this, gt)._++) === 0; )
|
|
363
363
|
A++;
|
|
364
364
|
let t = 1 << A;
|
|
365
365
|
for (let e = A - 1; e >= 0; e--)
|
|
366
|
-
t |= this.getBit(s(this, ut),
|
|
366
|
+
t |= this.getBit(s(this, ut), OA(this, gt)._++) << e;
|
|
367
367
|
return t - 1;
|
|
368
368
|
});
|
|
369
369
|
// Safety: We assume that base has enough elements
|
|
@@ -801,12 +801,12 @@ class XE {
|
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
Ve = new WeakMap(), Ze = new WeakMap();
|
|
804
|
-
var
|
|
804
|
+
var XA, st;
|
|
805
805
|
class bA {
|
|
806
806
|
constructor(A) {
|
|
807
|
-
n(this,
|
|
807
|
+
n(this, XA);
|
|
808
808
|
n(this, st);
|
|
809
|
-
r(this,
|
|
809
|
+
r(this, XA, A), r(this, st, new z());
|
|
810
810
|
}
|
|
811
811
|
isClosed() {
|
|
812
812
|
var A;
|
|
@@ -816,29 +816,29 @@ class bA {
|
|
|
816
816
|
* Return only the current value
|
|
817
817
|
*/
|
|
818
818
|
current() {
|
|
819
|
-
return s(this,
|
|
819
|
+
return s(this, XA);
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
822
|
* Return the current value and a promise for the next value
|
|
823
823
|
*/
|
|
824
824
|
value() {
|
|
825
825
|
var A;
|
|
826
|
-
return [s(this,
|
|
826
|
+
return [s(this, XA), (A = s(this, st)) == null ? void 0 : A.promise];
|
|
827
827
|
}
|
|
828
828
|
update(A) {
|
|
829
829
|
var t;
|
|
830
830
|
if (!((t = s(this, st)) != null && t.pending))
|
|
831
831
|
throw new Error("ObservableValue is closed");
|
|
832
|
-
r(this,
|
|
832
|
+
r(this, XA, A instanceof Function ? A(s(this, XA)) : A), s(this, st).resolve(s(this, XA)), r(this, st, new z());
|
|
833
833
|
}
|
|
834
834
|
close() {
|
|
835
835
|
var A;
|
|
836
|
-
(A = s(this, st)) == null || A.resolve(s(this,
|
|
836
|
+
(A = s(this, st)) == null || A.resolve(s(this, XA)), r(this, st, void 0);
|
|
837
837
|
}
|
|
838
838
|
waitFor(A) {
|
|
839
839
|
return c(this, null, function* () {
|
|
840
|
-
if (A(s(this,
|
|
841
|
-
return s(this,
|
|
840
|
+
if (A(s(this, XA)))
|
|
841
|
+
return s(this, XA);
|
|
842
842
|
for (; ; ) {
|
|
843
843
|
const [t, e] = this.value();
|
|
844
844
|
if (!e)
|
|
@@ -860,7 +860,7 @@ class bA {
|
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
|
|
863
|
+
XA = new WeakMap(), st = new WeakMap();
|
|
864
864
|
const wn = (i, A) => {
|
|
865
865
|
const t = w({}, i);
|
|
866
866
|
return typeof t != "object" || A.forEach((e) => {
|
|
@@ -3520,11 +3520,11 @@ class Mn {
|
|
|
3520
3520
|
skipEmptyLines() {
|
|
3521
3521
|
let A = 0;
|
|
3522
3522
|
for (; s(this, ne)[s(this, Yt)] === ""; )
|
|
3523
|
-
|
|
3523
|
+
OA(this, Yt)._++, A++;
|
|
3524
3524
|
return A;
|
|
3525
3525
|
}
|
|
3526
3526
|
readLine() {
|
|
3527
|
-
return s(this, ne)[
|
|
3527
|
+
return s(this, ne)[OA(this, Yt)._++];
|
|
3528
3528
|
}
|
|
3529
3529
|
takeUntilEmptyLine() {
|
|
3530
3530
|
const A = [];
|
|
@@ -4135,7 +4135,7 @@ class Yd {
|
|
|
4135
4135
|
return { done: !0, value: void 0 };
|
|
4136
4136
|
const A = s(this, Bs) === 0 ? s(this, oI) : yield s(this, Dt).readBigVarInt(), t = yield s(this, Dt).readBigVarInt(), e = yield s(this, Dt).readVarInt();
|
|
4137
4137
|
let g = 0, B = new Uint8Array();
|
|
4138
|
-
return e > 0 ? B = yield s(this, Dt).read(e) : g = yield s(this, Dt).readVarInt(), gr(g), (g === NA.EndOfTrackAndGroup || g === NA.EndOfGroup) && s(this, QI).resolve(g),
|
|
4138
|
+
return e > 0 ? B = yield s(this, Dt).read(e) : g = yield s(this, Dt).readVarInt(), gr(g), (g === NA.EndOfTrackAndGroup || g === NA.EndOfGroup) && s(this, QI).resolve(g), OA(this, Bs)._++, {
|
|
4139
4139
|
done: !1,
|
|
4140
4140
|
value: {
|
|
4141
4141
|
subscribeId: s(this, CI),
|
|
@@ -5323,17 +5323,17 @@ class yl {
|
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
5325
|
fA = new WeakMap(), Ds = new WeakMap();
|
|
5326
|
-
var ms,
|
|
5326
|
+
var ms, jA, Ss, ys, yI, fs, So, Hr;
|
|
5327
5327
|
class fl {
|
|
5328
5328
|
constructor(A, t, e, g) {
|
|
5329
5329
|
n(this, So);
|
|
5330
5330
|
n(this, ms);
|
|
5331
|
-
n(this,
|
|
5331
|
+
n(this, jA);
|
|
5332
5332
|
n(this, Ss);
|
|
5333
5333
|
n(this, ys);
|
|
5334
5334
|
n(this, yI);
|
|
5335
5335
|
n(this, fs);
|
|
5336
|
-
r(this, ms, t), r(this,
|
|
5336
|
+
r(this, ms, t), r(this, jA, A), r(this, Ss, e), r(this, ys, g), r(this, fs, SA.get().createContext(`SubscriptionWriter:${A.subscribe.name}`));
|
|
5337
5337
|
}
|
|
5338
5338
|
finalInfo() {
|
|
5339
5339
|
return s(this, yI);
|
|
@@ -5342,24 +5342,24 @@ class fl {
|
|
|
5342
5342
|
return c(this, null, function* () {
|
|
5343
5343
|
yield Promise.race([
|
|
5344
5344
|
l(this, So, Hr).call(this).catch((A) => s(this, fs).error("error writing subscription", A)),
|
|
5345
|
-
s(this,
|
|
5346
|
-
s(this,
|
|
5347
|
-
s(this,
|
|
5345
|
+
s(this, jA).unsubscribed(),
|
|
5346
|
+
s(this, jA).done(),
|
|
5347
|
+
s(this, jA).expiryNotification().catch(H)
|
|
5348
5348
|
]);
|
|
5349
5349
|
});
|
|
5350
5350
|
}
|
|
5351
5351
|
done(A, t) {
|
|
5352
5352
|
return c(this, null, function* () {
|
|
5353
|
-
if (s(this,
|
|
5353
|
+
if (s(this, jA).isUnsubscribed())
|
|
5354
5354
|
return;
|
|
5355
5355
|
const e = {
|
|
5356
5356
|
type: N.SubscribeDone,
|
|
5357
|
-
id: s(this,
|
|
5357
|
+
id: s(this, jA).subscribe.id,
|
|
5358
5358
|
errorCode: A,
|
|
5359
5359
|
reason: t,
|
|
5360
5360
|
finalInfo: s(this, yI)
|
|
5361
5361
|
};
|
|
5362
|
-
s(this,
|
|
5362
|
+
s(this, jA).onDone(e), yield s(this, ys).push(e);
|
|
5363
5363
|
});
|
|
5364
5364
|
}
|
|
5365
5365
|
[bt()]() {
|
|
@@ -5369,25 +5369,25 @@ class fl {
|
|
|
5369
5369
|
return this.done(gQ.TrackEnded, "Track ended");
|
|
5370
5370
|
}
|
|
5371
5371
|
}
|
|
5372
|
-
ms = new WeakMap(),
|
|
5372
|
+
ms = new WeakMap(), jA = new WeakMap(), Ss = new WeakMap(), ys = new WeakMap(), yI = new WeakMap(), fs = new WeakMap(), So = new WeakSet(), Hr = function() {
|
|
5373
5373
|
return c(this, null, function* () {
|
|
5374
5374
|
try {
|
|
5375
5375
|
for (var o = IA(s(this, ms)), C, Q, a; C = !(Q = yield o.next()).done; C = !1) {
|
|
5376
5376
|
const E = Q.value;
|
|
5377
5377
|
var A = [];
|
|
5378
5378
|
try {
|
|
5379
|
-
const h = s(this,
|
|
5379
|
+
const h = s(this, jA).range();
|
|
5380
5380
|
if (h && (h.startGroup > E.id || h.endGroup && h.endGroup < E.id))
|
|
5381
5381
|
break;
|
|
5382
5382
|
const d = yield s(this, Ss).openSendStream();
|
|
5383
5383
|
const u = new yl(d);
|
|
5384
|
-
const m =
|
|
5384
|
+
const m = VA(A, new pl(u, E.consume(), s(this, jA)), !0);
|
|
5385
5385
|
yield m.run();
|
|
5386
5386
|
r(this, yI, m.finalGroup());
|
|
5387
5387
|
} catch (t) {
|
|
5388
5388
|
var e = t, g = !0;
|
|
5389
5389
|
} finally {
|
|
5390
|
-
var B =
|
|
5390
|
+
var B = ZA(A, e, g);
|
|
5391
5391
|
B && (yield B);
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
@@ -5706,7 +5706,7 @@ class qr {
|
|
|
5706
5706
|
var C = S.value;
|
|
5707
5707
|
var Q = [];
|
|
5708
5708
|
try {
|
|
5709
|
-
const G =
|
|
5709
|
+
const G = VA(Q, C, !0);
|
|
5710
5710
|
try {
|
|
5711
5711
|
for (var e = IA(G.groups()), g, B, o; g = !(B = yield new eA(e.next())).done; g = !1) {
|
|
5712
5712
|
const y = B.value;
|
|
@@ -5730,7 +5730,7 @@ class qr {
|
|
|
5730
5730
|
} catch (a) {
|
|
5731
5731
|
var E = a, h = !0;
|
|
5732
5732
|
} finally {
|
|
5733
|
-
var d =
|
|
5733
|
+
var d = ZA(Q, E, h);
|
|
5734
5734
|
d && (yield new eA(d));
|
|
5735
5735
|
}
|
|
5736
5736
|
}
|
|
@@ -6024,59 +6024,59 @@ Pi = Je(null), Qt = new WeakMap(), Rs = new WeakMap(), ni = new WeakMap(), bI =
|
|
|
6024
6024
|
this.close();
|
|
6025
6025
|
}, FB = kA(Pi, 17, "#runOutgoingMessages", wa, cA, FB), kB = kA(Pi, 17, "#runControl", ua, cA, kB), GB = kA(Pi, 17, "#runObjects", la, cA, GB), lg = kA(Pi, 17, "#dispose", da, cA, lg), ee(Pi, ZQ);
|
|
6026
6026
|
const Ul = 128;
|
|
6027
|
-
var
|
|
6027
|
+
var zA, Us, ai, JI, Ns, pA, Ye, Te;
|
|
6028
6028
|
class Nl {
|
|
6029
6029
|
constructor(A, t, e) {
|
|
6030
6030
|
n(this, pA);
|
|
6031
|
-
n(this,
|
|
6031
|
+
n(this, zA);
|
|
6032
6032
|
n(this, Us);
|
|
6033
6033
|
n(this, ai, !0);
|
|
6034
6034
|
n(this, JI, !1);
|
|
6035
6035
|
n(this, Ns);
|
|
6036
|
-
r(this,
|
|
6036
|
+
r(this, zA, A), r(this, Us, t), r(this, Ns, e);
|
|
6037
6037
|
}
|
|
6038
6038
|
writeUnsigned8(A) {
|
|
6039
6039
|
return c(this, null, function* () {
|
|
6040
|
-
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this,
|
|
6040
|
+
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this, zA).writeUnsigned8(A);
|
|
6041
6041
|
});
|
|
6042
6042
|
}
|
|
6043
6043
|
writeVarInt(A) {
|
|
6044
6044
|
return c(this, null, function* () {
|
|
6045
|
-
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this,
|
|
6045
|
+
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this, zA).writeVarInt(A);
|
|
6046
6046
|
});
|
|
6047
6047
|
}
|
|
6048
6048
|
writeBigVarInt(A) {
|
|
6049
6049
|
return c(this, null, function* () {
|
|
6050
|
-
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this,
|
|
6050
|
+
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this, zA).writeBigVarInt(A);
|
|
6051
6051
|
});
|
|
6052
6052
|
}
|
|
6053
6053
|
write(A) {
|
|
6054
6054
|
return c(this, null, function* () {
|
|
6055
|
-
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this,
|
|
6055
|
+
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this, zA).write(A);
|
|
6056
6056
|
});
|
|
6057
6057
|
}
|
|
6058
6058
|
writeString(A) {
|
|
6059
6059
|
return c(this, null, function* () {
|
|
6060
|
-
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this,
|
|
6060
|
+
return l(this, pA, Ye).call(this), yield l(this, pA, Te).call(this), s(this, zA).writeString(A);
|
|
6061
6061
|
});
|
|
6062
6062
|
}
|
|
6063
6063
|
flush() {
|
|
6064
6064
|
return c(this, null, function* () {
|
|
6065
|
-
l(this, pA, Ye).call(this), r(this, ai, !0), yield s(this,
|
|
6065
|
+
l(this, pA, Ye).call(this), r(this, ai, !0), yield s(this, zA).flush();
|
|
6066
6066
|
});
|
|
6067
6067
|
}
|
|
6068
6068
|
close() {
|
|
6069
6069
|
return c(this, null, function* () {
|
|
6070
|
-
s(this, JI) || (r(this, ai, !0), yield l(this, pA, Te).call(this, !1), yield s(this,
|
|
6070
|
+
s(this, JI) || (r(this, ai, !0), yield l(this, pA, Te).call(this, !1), yield s(this, zA).flush(), r(this, JI, !0), s(this, Ns).call(this));
|
|
6071
6071
|
});
|
|
6072
6072
|
}
|
|
6073
6073
|
}
|
|
6074
|
-
|
|
6074
|
+
zA = new WeakMap(), Us = new WeakMap(), ai = new WeakMap(), JI = new WeakMap(), Ns = new WeakMap(), pA = new WeakSet(), Ye = function() {
|
|
6075
6075
|
if (s(this, JI))
|
|
6076
6076
|
throw new Error("Stream is closed");
|
|
6077
6077
|
}, Te = function(A = !0) {
|
|
6078
6078
|
if (s(this, ai))
|
|
6079
|
-
return r(this, ai, !1), s(this,
|
|
6079
|
+
return r(this, ai, !1), s(this, zA).writeUnsigned8(s(this, Us) | (A ? Ul : 0));
|
|
6080
6080
|
};
|
|
6081
6081
|
var le, Wt, MI, ri, Ot, HI, qI, yo, Yr;
|
|
6082
6082
|
class bl {
|
|
@@ -6235,7 +6235,7 @@ Vt = new WeakMap(), Zt = new WeakMap(), ue = new WeakMap(), bs = new WeakMap(),
|
|
|
6235
6235
|
return;
|
|
6236
6236
|
}
|
|
6237
6237
|
const g = new _B(new Uint8Array(), t);
|
|
6238
|
-
yield s(this, ue).push(or(g, s(this, Ls))),
|
|
6238
|
+
yield s(this, ue).push(or(g, s(this, Ls))), OA(this, Ls)._++;
|
|
6239
6239
|
}
|
|
6240
6240
|
});
|
|
6241
6241
|
};
|
|
@@ -6355,7 +6355,7 @@ function vl(i) {
|
|
|
6355
6355
|
const A = new TextDecoder().decode(i);
|
|
6356
6356
|
return JSON.parse(A);
|
|
6357
6357
|
}
|
|
6358
|
-
var PA, pt, Ei,
|
|
6358
|
+
var PA, pt, Ei, _A, Ms, Fo, Hs, BQ;
|
|
6359
6359
|
const en = class en {
|
|
6360
6360
|
constructor(A, t) {
|
|
6361
6361
|
n(this, Hs);
|
|
@@ -6365,15 +6365,15 @@ const en = class en {
|
|
|
6365
6365
|
// We keep track of the most recent groups to ensure we haven't missed any due to re-ordering before we close subscriptions
|
|
6366
6366
|
n(this, Ei, new iA(100));
|
|
6367
6367
|
// This contains the unconsumed groups if this track has an absolute range
|
|
6368
|
-
n(this,
|
|
6368
|
+
n(this, _A);
|
|
6369
6369
|
n(this, Ms);
|
|
6370
6370
|
n(this, Fo, (A) => c(this, null, function* () {
|
|
6371
6371
|
if (!A)
|
|
6372
6372
|
return s(this, PA).close();
|
|
6373
|
-
if (s(this,
|
|
6373
|
+
if (s(this, _A))
|
|
6374
6374
|
return;
|
|
6375
6375
|
const t = s(this, Ei).items().reduce((e, g) => e < g ? e : g, A);
|
|
6376
|
-
r(this,
|
|
6376
|
+
r(this, _A, l(this, Hs, BQ).call(this, t, A)), s(this, _A).size === 0 && (yield s(this, PA).close());
|
|
6377
6377
|
}));
|
|
6378
6378
|
r(this, PA, A), r(this, pt, t), A.done().then((e) => c(this, null, function* () {
|
|
6379
6379
|
var g;
|
|
@@ -6398,7 +6398,7 @@ const en = class en {
|
|
|
6398
6398
|
// The subscription needs renewal if it is still active and aren't finishing up the unconsumed group IDs.
|
|
6399
6399
|
// If we are just finishing up the unconsumed group IDs we assume we'll finish up before the expiry.
|
|
6400
6400
|
needsRenewal() {
|
|
6401
|
-
return s(this, PA).expiryState() === "active" && s(this,
|
|
6401
|
+
return s(this, PA).expiryState() === "active" && s(this, _A) === void 0;
|
|
6402
6402
|
}
|
|
6403
6403
|
/** Set the endGroup as the end of group.
|
|
6404
6404
|
* This lets the subscription end when the endGroup is reached.
|
|
@@ -6409,7 +6409,7 @@ const en = class en {
|
|
|
6409
6409
|
}
|
|
6410
6410
|
update(A, t) {
|
|
6411
6411
|
return c(this, null, function* () {
|
|
6412
|
-
return r(this,
|
|
6412
|
+
return r(this, _A, l(this, Hs, BQ).call(this, A, t)), s(this, _A).size === 0 && (yield s(this, PA).close()), s(this, PA).update(A, t);
|
|
6413
6413
|
});
|
|
6414
6414
|
}
|
|
6415
6415
|
unsubscribe() {
|
|
@@ -6418,13 +6418,13 @@ const en = class en {
|
|
|
6418
6418
|
next() {
|
|
6419
6419
|
return c(this, null, function* () {
|
|
6420
6420
|
var e;
|
|
6421
|
-
if (s(this,
|
|
6421
|
+
if (s(this, _A) && s(this, _A).size === 0)
|
|
6422
6422
|
return { done: !0, value: void 0 };
|
|
6423
6423
|
const A = yield s(this, Ms).next();
|
|
6424
6424
|
if (A.done)
|
|
6425
6425
|
return A;
|
|
6426
6426
|
const t = A.value.groupId();
|
|
6427
|
-
return (e = s(this,
|
|
6427
|
+
return (e = s(this, _A)) == null || e.delete(t), s(this, Ei).push(t), s(this, pt) || r(this, pt, t), r(this, pt, s(this, pt) < t ? t : s(this, pt)), A;
|
|
6428
6428
|
});
|
|
6429
6429
|
}
|
|
6430
6430
|
return() {
|
|
@@ -6434,7 +6434,7 @@ const en = class en {
|
|
|
6434
6434
|
return this;
|
|
6435
6435
|
}
|
|
6436
6436
|
};
|
|
6437
|
-
PA = new WeakMap(), pt = new WeakMap(), Ei = new WeakMap(),
|
|
6437
|
+
PA = new WeakMap(), pt = new WeakMap(), Ei = new WeakMap(), _A = new WeakMap(), Ms = new WeakMap(), Fo = new WeakMap(), Hs = new WeakSet(), BQ = function(A, t) {
|
|
6438
6438
|
const e = /* @__PURE__ */ new Set();
|
|
6439
6439
|
for (let g = A; g <= t; g++)
|
|
6440
6440
|
e == null || e.add(g);
|
|
@@ -6457,7 +6457,7 @@ const In = class In {
|
|
|
6457
6457
|
n(this, vs, (A, t) => c(this, null, function* () {
|
|
6458
6458
|
var h = [];
|
|
6459
6459
|
try {
|
|
6460
|
-
const e =
|
|
6460
|
+
const e = VA(h, yield s(this, nt).lock());
|
|
6461
6461
|
const g = { subscribeId: e.value.subscribeId() };
|
|
6462
6462
|
if (!e.value.needsRenewal()) {
|
|
6463
6463
|
s(this, Ft).debug("Subscription does not need renewal", g);
|
|
@@ -6493,7 +6493,7 @@ const In = class In {
|
|
|
6493
6493
|
} catch (d) {
|
|
6494
6494
|
var u = d, m = !0;
|
|
6495
6495
|
} finally {
|
|
6496
|
-
|
|
6496
|
+
ZA(h, u, m);
|
|
6497
6497
|
}
|
|
6498
6498
|
}));
|
|
6499
6499
|
r(this, nt, new XE(A)), r(this, ci, A), r(this, Ft, SA.get().createContext(`Renewable '${A.name()}'`));
|
|
@@ -6517,13 +6517,13 @@ const In = class In {
|
|
|
6517
6517
|
return c(this, null, function* () {
|
|
6518
6518
|
var g = [];
|
|
6519
6519
|
try {
|
|
6520
|
-
const e =
|
|
6520
|
+
const e = VA(g, yield s(this, nt).lock());
|
|
6521
6521
|
s(this, jt).close();
|
|
6522
6522
|
return e.value.update(A, t);
|
|
6523
6523
|
} catch (B) {
|
|
6524
6524
|
var o = B, C = !0;
|
|
6525
6525
|
} finally {
|
|
6526
|
-
|
|
6526
|
+
ZA(g, o, C);
|
|
6527
6527
|
}
|
|
6528
6528
|
});
|
|
6529
6529
|
}
|
|
@@ -6531,13 +6531,13 @@ const In = class In {
|
|
|
6531
6531
|
return c(this, null, function* () {
|
|
6532
6532
|
var e = [];
|
|
6533
6533
|
try {
|
|
6534
|
-
const t =
|
|
6534
|
+
const t = VA(e, yield s(this, nt).lock());
|
|
6535
6535
|
s(this, jt).close();
|
|
6536
6536
|
return t.value.endOfTrack(A);
|
|
6537
6537
|
} catch (g) {
|
|
6538
6538
|
var B = g, o = !0;
|
|
6539
6539
|
} finally {
|
|
6540
|
-
|
|
6540
|
+
ZA(e, B, o);
|
|
6541
6541
|
}
|
|
6542
6542
|
});
|
|
6543
6543
|
}
|
|
@@ -6545,13 +6545,13 @@ const In = class In {
|
|
|
6545
6545
|
return c(this, null, function* () {
|
|
6546
6546
|
var t = [];
|
|
6547
6547
|
try {
|
|
6548
|
-
const A =
|
|
6548
|
+
const A = VA(t, yield s(this, nt).lock());
|
|
6549
6549
|
s(this, jt).close();
|
|
6550
6550
|
return A.value.unsubscribe();
|
|
6551
6551
|
} catch (e) {
|
|
6552
6552
|
var g = e, B = !0;
|
|
6553
6553
|
} finally {
|
|
6554
|
-
|
|
6554
|
+
ZA(t, g, B);
|
|
6555
6555
|
}
|
|
6556
6556
|
});
|
|
6557
6557
|
}
|
|
@@ -6559,13 +6559,13 @@ const In = class In {
|
|
|
6559
6559
|
return c(this, null, function* () {
|
|
6560
6560
|
var t = [];
|
|
6561
6561
|
try {
|
|
6562
|
-
const A =
|
|
6562
|
+
const A = VA(t, yield s(this, nt).lock());
|
|
6563
6563
|
s(this, jt).close();
|
|
6564
6564
|
return A.value.return();
|
|
6565
6565
|
} catch (e) {
|
|
6566
6566
|
var g = e, B = !0;
|
|
6567
6567
|
} finally {
|
|
6568
|
-
|
|
6568
|
+
ZA(t, g, B);
|
|
6569
6569
|
}
|
|
6570
6570
|
});
|
|
6571
6571
|
}
|
|
@@ -6592,12 +6592,12 @@ const In = class In {
|
|
|
6592
6592
|
var A = a.value;
|
|
6593
6593
|
var t = [];
|
|
6594
6594
|
try {
|
|
6595
|
-
const h =
|
|
6595
|
+
const h = VA(t, A, !0);
|
|
6596
6596
|
yield* lC(h);
|
|
6597
6597
|
} catch (e) {
|
|
6598
6598
|
var g = e, B = !0;
|
|
6599
6599
|
} finally {
|
|
6600
|
-
var o =
|
|
6600
|
+
var o = ZA(t, g, B);
|
|
6601
6601
|
o && (yield new eA(o));
|
|
6602
6602
|
}
|
|
6603
6603
|
}
|
|
@@ -6849,7 +6849,7 @@ Os = new WeakMap(), kt = new WeakMap(), Vs = new WeakMap(), Zs = new WeakMap(),
|
|
|
6849
6849
|
return c(this, null, function* () {
|
|
6850
6850
|
var B = [];
|
|
6851
6851
|
try {
|
|
6852
|
-
const e =
|
|
6852
|
+
const e = VA(B, yield A.subscribe(t), !0);
|
|
6853
6853
|
const g = yield e.objects().next();
|
|
6854
6854
|
if (g.done)
|
|
6855
6855
|
throw new Error("No init object");
|
|
@@ -6858,7 +6858,7 @@ Os = new WeakMap(), kt = new WeakMap(), Vs = new WeakMap(), Zs = new WeakMap(),
|
|
|
6858
6858
|
} catch (o) {
|
|
6859
6859
|
var C = o, Q = !0;
|
|
6860
6860
|
} finally {
|
|
6861
|
-
var a =
|
|
6861
|
+
var a = ZA(B, C, Q);
|
|
6862
6862
|
a && (yield a);
|
|
6863
6863
|
}
|
|
6864
6864
|
});
|
|
@@ -6924,7 +6924,7 @@ Uo = new WeakMap(), De = new WeakMap(), hi = new WeakMap(), Xs = new WeakMap(),
|
|
|
6924
6924
|
var C = S.value;
|
|
6925
6925
|
var Q = [];
|
|
6926
6926
|
try {
|
|
6927
|
-
const G =
|
|
6927
|
+
const G = VA(Q, C, !0);
|
|
6928
6928
|
try {
|
|
6929
6929
|
for (var e = IA(G), g, B, o; g = !(B = yield e.next()).done; g = !1) {
|
|
6930
6930
|
const y = B.value;
|
|
@@ -6953,7 +6953,7 @@ Uo = new WeakMap(), De = new WeakMap(), hi = new WeakMap(), Xs = new WeakMap(),
|
|
|
6953
6953
|
} catch (a) {
|
|
6954
6954
|
var E = a, h = !0;
|
|
6955
6955
|
} finally {
|
|
6956
|
-
var d =
|
|
6956
|
+
var d = ZA(Q, E, h);
|
|
6957
6957
|
d && (yield d);
|
|
6958
6958
|
}
|
|
6959
6959
|
}
|
|
@@ -7226,7 +7226,7 @@ class XQ {
|
|
|
7226
7226
|
return c(this, null, function* () {
|
|
7227
7227
|
var Q = [];
|
|
7228
7228
|
try {
|
|
7229
|
-
const g =
|
|
7229
|
+
const g = VA(Q, yield A.subscribeTrack(new Ae().name("drm").build()), !0);
|
|
7230
7230
|
const B = g.objects();
|
|
7231
7231
|
const o = yield B.next();
|
|
7232
7232
|
if (o.done)
|
|
@@ -7236,7 +7236,7 @@ class XQ {
|
|
|
7236
7236
|
} catch (a) {
|
|
7237
7237
|
var E = a, h = !0;
|
|
7238
7238
|
} finally {
|
|
7239
|
-
var d =
|
|
7239
|
+
var d = ZA(Q, E, h);
|
|
7240
7240
|
d && (yield d);
|
|
7241
7241
|
}
|
|
7242
7242
|
});
|
|
@@ -7574,13 +7574,13 @@ function RC(i, A, t) {
|
|
|
7574
7574
|
return e.searchParams.set("sessionId", A.sessionId), e.searchParams.set("clientId", A.clientId), e.searchParams.set("channelId", A.channelId), t && e.searchParams.set("authToken", t), e;
|
|
7575
7575
|
}
|
|
7576
7576
|
const Au = 1e4;
|
|
7577
|
-
var lA, RA,
|
|
7577
|
+
var lA, RA, xA, mi, sA, fe, IB, XI, gB, jI, JA, jr, zI, sB, _I, zr, _r, $r, AE, uQ;
|
|
7578
7578
|
const Cn = class Cn {
|
|
7579
7579
|
constructor(A, t, e, g, B, o, C) {
|
|
7580
7580
|
n(this, JA);
|
|
7581
7581
|
n(this, lA);
|
|
7582
7582
|
n(this, RA);
|
|
7583
|
-
n(this,
|
|
7583
|
+
n(this, xA);
|
|
7584
7584
|
n(this, mi, "disconnected");
|
|
7585
7585
|
n(this, sA);
|
|
7586
7586
|
n(this, fe, /* @__PURE__ */ new Map());
|
|
@@ -7614,21 +7614,21 @@ const Cn = class Cn {
|
|
|
7614
7614
|
}
|
|
7615
7615
|
break;
|
|
7616
7616
|
case "telemetry":
|
|
7617
|
-
Ir(new URL("/api/telemetry", s(this,
|
|
7617
|
+
Ir(new URL("/api/telemetry", s(this, xA).url().replace("wss://", "https://")), {
|
|
7618
7618
|
body: A.body,
|
|
7619
7619
|
headers: { "Content-Type": "text/plain" }
|
|
7620
7620
|
}).catch(H);
|
|
7621
7621
|
break;
|
|
7622
7622
|
case "refresh auth":
|
|
7623
|
-
s(this,
|
|
7623
|
+
s(this, xA).updateAuthToken(A.token);
|
|
7624
7624
|
break;
|
|
7625
7625
|
}
|
|
7626
7626
|
});
|
|
7627
7627
|
n(this, _I, !1);
|
|
7628
7628
|
I(this, "disconnect", (A = "Disconnect Requested") => {
|
|
7629
|
-
s(this, RA).info("Disconnecting", A), s(this,
|
|
7629
|
+
s(this, RA).info("Disconnecting", A), s(this, xA).close(), s(this, sA).close().catch(H), r(this, jI, /* @__PURE__ */ new Map()), r(this, mi, "disconnected");
|
|
7630
7630
|
});
|
|
7631
|
-
r(this, lA, A), r(this, RA, t), r(this,
|
|
7631
|
+
r(this, lA, A), r(this, RA, t), r(this, xA, e), r(this, sA, g), r(this, fe, B), r(this, IB, o), r(this, XI, C), s(this, lA).on("send signal", s(this, sB)), s(this, lA).on("disconnect", this.disconnect), s(this, lA).on("text track", s(this, zI)), l(this, JA, jr).call(this).catch(H), l(this, JA, $r).call(this).catch(H);
|
|
7632
7632
|
}
|
|
7633
7633
|
get estimatedBandwidth() {
|
|
7634
7634
|
return s(this, gB);
|
|
@@ -7641,9 +7641,10 @@ const Cn = class Cn {
|
|
|
7641
7641
|
unsuspend() {
|
|
7642
7642
|
}
|
|
7643
7643
|
getStatistics() {
|
|
7644
|
+
const t = s(this, xA).transportType() === "webtransport" ? "moq" : "moq_ws";
|
|
7644
7645
|
return {
|
|
7645
|
-
edgeUrl: s(this,
|
|
7646
|
-
connectionProtocol:
|
|
7646
|
+
edgeUrl: s(this, xA).url(),
|
|
7647
|
+
connectionProtocol: t
|
|
7647
7648
|
};
|
|
7648
7649
|
}
|
|
7649
7650
|
static start(A, t, e, g, B) {
|
|
@@ -7701,15 +7702,15 @@ const Cn = class Cn {
|
|
|
7701
7702
|
return s(this, mi);
|
|
7702
7703
|
}
|
|
7703
7704
|
close() {
|
|
7704
|
-
s(this,
|
|
7705
|
+
s(this, xA).close();
|
|
7705
7706
|
}
|
|
7706
7707
|
closed() {
|
|
7707
|
-
return Promise.race([s(this,
|
|
7708
|
+
return Promise.race([s(this, xA).closed(), s(this, sA).closed()]);
|
|
7708
7709
|
}
|
|
7709
7710
|
};
|
|
7710
|
-
lA = new WeakMap(), RA = new WeakMap(),
|
|
7711
|
+
lA = new WeakMap(), RA = new WeakMap(), xA = new WeakMap(), mi = new WeakMap(), sA = new WeakMap(), fe = new WeakMap(), IB = new WeakMap(), XI = new WeakMap(), gB = new WeakMap(), jI = new WeakMap(), JA = new WeakSet(), jr = function() {
|
|
7711
7712
|
return c(this, null, function* () {
|
|
7712
|
-
s(this,
|
|
7713
|
+
s(this, xA).transportType() === "websocket" && (yield Ue(5e3));
|
|
7713
7714
|
try {
|
|
7714
7715
|
for (var A = IA(s(this, sA).stats()), t, e, g; t = !(e = yield A.next()).done; t = !1) {
|
|
7715
7716
|
const { rtt: B, estimatedBandwidth: o } = e.value;
|
|
@@ -7780,7 +7781,7 @@ lA = new WeakMap(), RA = new WeakMap(), _A = new WeakMap(), mi = new WeakMap(),
|
|
|
7780
7781
|
l(this, JA, uQ).call(this, s(this, sA).referenceClock(), s(this, sA).audio),
|
|
7781
7782
|
l(this, JA, uQ).call(this, s(this, sA).referenceClock(), s(this, sA).video),
|
|
7782
7783
|
l(this, JA, AE).call(this, s(this, sA).subtitles)
|
|
7783
|
-
]), yield s(this, sA).closed(), s(this,
|
|
7784
|
+
]), yield s(this, sA).closed(), s(this, xA).close(), s(this, RA).info("Session closed");
|
|
7784
7785
|
} catch (A) {
|
|
7785
7786
|
s(this, RA).warn("Session error", A);
|
|
7786
7787
|
}
|
|
@@ -8387,7 +8388,7 @@ Gt = new WeakMap(), Rt = new WeakMap(), tg = new WeakMap(), yi = new WeakMap(),
|
|
|
8387
8388
|
var t;
|
|
8388
8389
|
const A = new ou({ edgeUrl: this.config.options.get("edgeUrl") });
|
|
8389
8390
|
for (r(this, yi, 0); ; ) {
|
|
8390
|
-
|
|
8391
|
+
OA(this, yi)._++, OA(this, Fe)._++;
|
|
8391
8392
|
try {
|
|
8392
8393
|
const [g, B] = yield Promise.all([s(this, Ho).call(this), s(this, qo).call(this)]), o = B / 2;
|
|
8393
8394
|
if (s(this, Gt).clear(), s(this, Gt).push(o), !s(this, Rt))
|
|
@@ -8412,7 +8413,7 @@ Gt = new WeakMap(), Rt = new WeakMap(), tg = new WeakMap(), yi = new WeakMap(),
|
|
|
8412
8413
|
edgeUrl: C
|
|
8413
8414
|
}),
|
|
8414
8415
|
s(this, Gt)
|
|
8415
|
-
)), A.reset(),
|
|
8416
|
+
)), A.reset(), OA(this, fi)._++, r(this, yi, 0), r(this, ig, Date.now()), s(this, eg) || r(this, eg, s(this, ig)), yield this.connectionImpl.closed();
|
|
8416
8417
|
} catch (g) {
|
|
8417
8418
|
this.logger.info("Failed to connect", g);
|
|
8418
8419
|
const B = A.shiftedEdge();
|
|
@@ -11613,7 +11614,7 @@ const ea = (i, A) => i && typeof i == "object" && A in i, nE = (i) => !(typeof i
|
|
|
11613
11614
|
throw new Error("missing channelId");
|
|
11614
11615
|
return !0;
|
|
11615
11616
|
};
|
|
11616
|
-
var Fi,
|
|
11617
|
+
var Fi, WA, ki;
|
|
11617
11618
|
const Ht = class Ht extends At {
|
|
11618
11619
|
constructor(t) {
|
|
11619
11620
|
super();
|
|
@@ -11642,7 +11643,7 @@ const Ht = class Ht extends At {
|
|
|
11642
11643
|
I(this, "userAgentInformation", new Hu());
|
|
11643
11644
|
I(this, "encryptedMediaExtensions");
|
|
11644
11645
|
n(this, Fi, 0);
|
|
11645
|
-
n(this,
|
|
11646
|
+
n(this, WA, []);
|
|
11646
11647
|
I(this, "sampleProcessingSesssions", /* @__PURE__ */ new Map());
|
|
11647
11648
|
I(this, "sizes", /* @__PURE__ */ new Map());
|
|
11648
11649
|
I(this, "isSuspended", !0);
|
|
@@ -11755,30 +11756,30 @@ const Ht = class Ht extends At {
|
|
|
11755
11756
|
I(this, "updateTextTracks", (t) => {
|
|
11756
11757
|
const e = t.filter((g) => g.codec === "webvtt");
|
|
11757
11758
|
e.forEach((g) => {
|
|
11758
|
-
if (!s(this,
|
|
11759
|
+
if (!s(this, WA).find((o) => o.language === g.language)) {
|
|
11759
11760
|
if (this.modules.canvasModule) {
|
|
11760
11761
|
const o = this.modules.canvasModule.textTracks.addTextTrack(
|
|
11761
11762
|
g.kind,
|
|
11762
11763
|
g.label || g.language || "",
|
|
11763
11764
|
g.language || ""
|
|
11764
11765
|
);
|
|
11765
|
-
s(this,
|
|
11766
|
+
s(this, WA).push(o);
|
|
11766
11767
|
} else if (this.mediaElement instanceof HTMLVideoElement) {
|
|
11767
11768
|
const o = this.mediaElement.addTextTrack(
|
|
11768
11769
|
g.kind,
|
|
11769
11770
|
g.label || g.language,
|
|
11770
11771
|
g.language
|
|
11771
11772
|
);
|
|
11772
|
-
s(this,
|
|
11773
|
+
s(this, WA).push(o);
|
|
11773
11774
|
}
|
|
11774
11775
|
}
|
|
11775
11776
|
});
|
|
11776
|
-
for (const g of s(this,
|
|
11777
|
+
for (const g of s(this, WA))
|
|
11777
11778
|
e.find((o) => o.language === g.language) ? g.mode === "disabled" && (g.mode = "hidden") : g.mode = "disabled";
|
|
11778
11779
|
this.emit("text tracks", this.textTracks);
|
|
11779
11780
|
});
|
|
11780
11781
|
I(this, "cleanupTextTracks", (t = this.currentTime - 2e4) => {
|
|
11781
|
-
s(this,
|
|
11782
|
+
s(this, WA).forEach((e) => {
|
|
11782
11783
|
if (e.cues)
|
|
11783
11784
|
for (const g of e.cues)
|
|
11784
11785
|
g.endTime * 1e3 < t - 2e3 && e.removeCue(g);
|
|
@@ -11970,7 +11971,7 @@ const Ht = class Ht extends At {
|
|
|
11970
11971
|
const t = this.modules.canvasModule ? this.options.get("iosMediaElementEnabled") : void 0;
|
|
11971
11972
|
return w({
|
|
11972
11973
|
uptime: Date.now() - this.createdAt,
|
|
11973
|
-
version: "4.1.7-
|
|
11974
|
+
version: "4.1.7-4-g2df58a2b",
|
|
11974
11975
|
clientId: this.clientId,
|
|
11975
11976
|
sessionId: this.sessionId,
|
|
11976
11977
|
channelId: this.channelId,
|
|
@@ -12233,7 +12234,7 @@ const Ht = class Ht extends At {
|
|
|
12233
12234
|
audio: w(w({}, this.targetSubscription.audio), $ == null ? void 0 : $.audio)
|
|
12234
12235
|
})), this.emitter.emit("adapted level");
|
|
12235
12236
|
}), this.emitter.on("text track data", (D) => {
|
|
12236
|
-
const f = s(this,
|
|
12237
|
+
const f = s(this, WA).find((x) => x.language === D.language), O = this.modules.sync.getTimeshiftOffset() / 1e3, q = O - s(this, Fi);
|
|
12237
12238
|
if (r(this, Fi, O), f) {
|
|
12238
12239
|
if (f.cues)
|
|
12239
12240
|
for (const x of f.cues)
|
|
@@ -12360,7 +12361,7 @@ const Ht = class Ht extends At {
|
|
|
12360
12361
|
if (D.renditionId !== 0) {
|
|
12361
12362
|
const $ = Na(q);
|
|
12362
12363
|
if ($ && $.language !== void 0) {
|
|
12363
|
-
const U = new tr().parse($.content || ""), T = x / 1e3, tA = s(this,
|
|
12364
|
+
const U = new tr().parse($.content || ""), T = x / 1e3, tA = s(this, WA).find((P) => P.language === $.language), M = T - s(this, Fi);
|
|
12364
12365
|
if (r(this, Fi, T), tA) {
|
|
12365
12366
|
if (tA.cues)
|
|
12366
12367
|
for (const P of tA.cues)
|
|
@@ -12620,7 +12621,7 @@ const Ht = class Ht extends At {
|
|
|
12620
12621
|
* Set the active text track
|
|
12621
12622
|
*/
|
|
12622
12623
|
set textTrack(t) {
|
|
12623
|
-
s(this,
|
|
12624
|
+
s(this, WA).forEach((e) => {
|
|
12624
12625
|
e.label === t ? e.mode = "showing" : e.mode = "hidden";
|
|
12625
12626
|
}), this.emitter.emit("text track", t);
|
|
12626
12627
|
}
|
|
@@ -12628,14 +12629,14 @@ const Ht = class Ht extends At {
|
|
|
12628
12629
|
* Get the available text tracks
|
|
12629
12630
|
*/
|
|
12630
12631
|
get textTracks() {
|
|
12631
|
-
return s(this,
|
|
12632
|
+
return s(this, WA).filter((t) => t.mode !== "disabled").map((t) => t.label);
|
|
12632
12633
|
}
|
|
12633
12634
|
/**
|
|
12634
12635
|
* Get the active text track
|
|
12635
12636
|
*/
|
|
12636
12637
|
get textTrack() {
|
|
12637
12638
|
var t;
|
|
12638
|
-
return (t = s(this,
|
|
12639
|
+
return (t = s(this, WA).find((e) => e.mode === "showing")) == null ? void 0 : t.label;
|
|
12639
12640
|
}
|
|
12640
12641
|
/**
|
|
12641
12642
|
* The current channelId
|
|
@@ -12836,7 +12837,7 @@ const Ht = class Ht extends At {
|
|
|
12836
12837
|
return this.browser.supportsMediaSource && this.options.get("mseEnabled");
|
|
12837
12838
|
}
|
|
12838
12839
|
};
|
|
12839
|
-
Fi = new WeakMap(),
|
|
12840
|
+
Fi = new WeakMap(), WA = new WeakMap(), ki = new WeakMap(), I(Ht, "MAX_POOL_SIZE", 10), I(Ht, "DISCONNECT_TIMEOUT", 15 * 1e3), I(Ht, "REMOVE_CUE_THRESHOLD", 1e3 * 10);
|
|
12840
12841
|
let vQ = Ht;
|
|
12841
12842
|
const Ku = "_bar_qm7bl_1", Yu = "_hidden_qm7bl_47", aE = {
|
|
12842
12843
|
bar: Ku,
|