@banou/stub 0.0.54 → 0.0.55
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/build/assets/anime-index-Dl2tJrXZ.js +1 -0
- package/build/assets/anime-seasons-DeekEv3y.js +1 -0
- package/build/assets/dist-BJ3mUMPi.js +1328 -0
- package/build/assets/{embed-BXVON2cN.js → embed-CuQfvLpE.js} +6 -6
- package/build/assets/embed-title-BdHSyUcL.js +1 -0
- package/build/assets/emotion-react-jsx-runtime.browser.esm-BeCsfCPw.js +1 -0
- package/build/assets/index-C8Mbxk2k.js +2600 -0
- package/build/assets/{lib-emotion-react-jsx-runtime.browser.esm-BXK3nCt6.js → lib-emotion-react-jsx-runtime.browser.esm-C5mAgoyK.js} +913 -916
- package/build/assets/{lib-theme-player-Ca8vejFM.js → lib-theme-player-CoiqFznF.js} +943 -943
- package/build/assets/{lib-worker-Z6aSHw7w.js → lib-worker-BGhw0CAI.js} +1 -1
- package/build/assets/{lib-worker-PtOuAkPf.js → lib-worker-CqSAXTb1.js} +1 -1
- package/build/assets/lib-worker-anime-index-Dl2tJrXZ.js +1 -0
- package/build/assets/lib-worker-anime-seasons-DeekEv3y.js +1 -0
- package/build/assets/{lib-worker-index-wTApHofM.js → lib-worker-index-6-JbkhEb.js} +357 -388
- package/build/assets/main-BfUswC7f.js +5215 -0
- package/build/assets/{theme-player-kjqP6iMr.js → theme-player-IT6nuTgw.js} +1 -1
- package/build/assets/{worker-DuBkNi7w.js → worker-CdK09-wP.js} +1 -1
- package/build/assets/{worker-DxIvGCqk.js → worker-PNw2azxt.js} +1 -1
- package/build/embed.html +4 -4
- package/build/index.html +4 -4
- package/build/index.js +9066 -8680
- package/fkn.json +1 -1
- package/package.json +3 -3
- package/build/assets/anime-index-CWT8EUVb.js +0 -1
- package/build/assets/anime-seasons-CoquI0pK.js +0 -1
- package/build/assets/dist-BhdcN4JK.js +0 -1328
- package/build/assets/embed-title-BD9cgqvV.js +0 -1
- package/build/assets/emotion-react-jsx-runtime.browser.esm-BQbalngd.js +0 -1
- package/build/assets/index-CKS-vpo7.js +0 -2631
- package/build/assets/lib-worker-anime-index-CWT8EUVb.js +0 -1
- package/build/assets/lib-worker-anime-seasons-CoquI0pK.js +0 -1
- package/build/assets/main-L3DMTKgc.js +0 -5095
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, r as t, s as n, t as r } from "./lib-dist-DvqYL0NS.js";
|
|
2
|
-
import { $ as i,
|
|
3
|
-
var
|
|
2
|
+
import { $ as i, B as a, C as o, I as s, J as c, L as l, U as u, V as d, X as f, Z as p, _ as m, a as h, at as g, b as _, c as v, ct as y, d as b, dt as x, et as S, f as C, g as w, h as T, i as E, it as ee, l as D, m as O, n as k, nt as A, o as j, ot as te, p as ne, q as M, r as N, rt as re, s as P, t as F, tt as I, u as ie, v as ae, x as oe, y as se, z as L } from "./lib-emotion-react-jsx-runtime.browser.esm-C5mAgoyK.js";
|
|
3
|
+
var R = T("captions-off", [
|
|
4
4
|
["path", {
|
|
5
5
|
d: "M10.5 5H19a2 2 0 0 1 2 2v8.5",
|
|
6
6
|
key: "jqtk4d"
|
|
@@ -25,7 +25,7 @@ var L = g("captions-off", [
|
|
|
25
25
|
d: "M7 15h2.5",
|
|
26
26
|
key: "1ina1g"
|
|
27
27
|
}]
|
|
28
|
-
]),
|
|
28
|
+
]), ce = T("maximize", [
|
|
29
29
|
["path", {
|
|
30
30
|
d: "M8 3H5a2 2 0 0 0-2 2v3",
|
|
31
31
|
key: "1dcmit"
|
|
@@ -42,7 +42,7 @@ var L = g("captions-off", [
|
|
|
42
42
|
d: "M16 21h3a2 2 0 0 0 2-2v-3",
|
|
43
43
|
key: "18trek"
|
|
44
44
|
}]
|
|
45
|
-
]),
|
|
45
|
+
]), z = T("minimize", [
|
|
46
46
|
["path", {
|
|
47
47
|
d: "M8 3v3a2 2 0 0 1-2 2H3",
|
|
48
48
|
key: "hohbtr"
|
|
@@ -59,13 +59,13 @@ var L = g("captions-off", [
|
|
|
59
59
|
d: "M16 21v-3a2 2 0 0 1 2-2h3",
|
|
60
60
|
key: "ph8mxp"
|
|
61
61
|
}]
|
|
62
|
-
]),
|
|
62
|
+
]), le = T("rotate-ccw", [["path", {
|
|
63
63
|
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
64
64
|
key: "1357e3"
|
|
65
65
|
}], ["path", {
|
|
66
66
|
d: "M3 3v5h5",
|
|
67
67
|
key: "1xhq8a"
|
|
68
|
-
}]]),
|
|
68
|
+
}]]), ue = T("triangle-alert", [
|
|
69
69
|
["path", {
|
|
70
70
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
71
71
|
key: "wmoenq"
|
|
@@ -78,7 +78,7 @@ var L = g("captions-off", [
|
|
|
78
78
|
d: "M12 17h.01",
|
|
79
79
|
key: "p32p05"
|
|
80
80
|
}]
|
|
81
|
-
]),
|
|
81
|
+
]), de = {};
|
|
82
82
|
(function(e) {
|
|
83
83
|
var t = Object.prototype.hasOwnProperty, n = "~";
|
|
84
84
|
function r() {}
|
|
@@ -168,25 +168,25 @@ var L = g("captions-off", [
|
|
|
168
168
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = n, s.EventEmitter = s, e.exports = s;
|
|
169
169
|
})({
|
|
170
170
|
get exports() {
|
|
171
|
-
return
|
|
171
|
+
return de;
|
|
172
172
|
},
|
|
173
173
|
set exports(e) {
|
|
174
|
-
|
|
174
|
+
de = e;
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
var
|
|
177
|
+
var B = de, fe = class extends Error {
|
|
178
178
|
constructor(e) {
|
|
179
179
|
super(e), this.name = "TimeoutError";
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, pe = class extends Error {
|
|
182
182
|
constructor(e) {
|
|
183
183
|
super(), this.name = "AbortError", this.message = e;
|
|
184
184
|
}
|
|
185
|
-
},
|
|
186
|
-
let t = e.reason === void 0 ?
|
|
187
|
-
return t instanceof Error ? t :
|
|
185
|
+
}, me = (e) => globalThis.DOMException === void 0 ? new pe(e) : new DOMException(e), he = (e) => {
|
|
186
|
+
let t = e.reason === void 0 ? me("This operation was aborted.") : e.reason;
|
|
187
|
+
return t instanceof Error ? t : me(t);
|
|
188
188
|
};
|
|
189
|
-
function
|
|
189
|
+
function ge(e, t, n, r) {
|
|
190
190
|
let i, a = new Promise((a, o) => {
|
|
191
191
|
if (typeof t != "number" || Math.sign(t) !== 1) throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${t}\``);
|
|
192
192
|
if (t === Infinity) {
|
|
@@ -201,8 +201,8 @@ function _e(e, t, n, r) {
|
|
|
201
201
|
...r
|
|
202
202
|
}, r.signal) {
|
|
203
203
|
let { signal: e } = r;
|
|
204
|
-
e.aborted && o(
|
|
205
|
-
o(
|
|
204
|
+
e.aborted && o(he(e)), e.addEventListener("abort", () => {
|
|
205
|
+
o(he(e));
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
i = r.customTimers.setTimeout.call(void 0, () => {
|
|
@@ -214,7 +214,7 @@ function _e(e, t, n, r) {
|
|
|
214
214
|
}
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
|
-
let r = typeof n == "string" ? n : `Promise timed out after ${t} milliseconds`, i = n instanceof Error ? n : new
|
|
217
|
+
let r = typeof n == "string" ? n : `Promise timed out after ${t} milliseconds`, i = n instanceof Error ? n : new fe(r);
|
|
218
218
|
typeof e.cancel == "function" && e.cancel(), o(i);
|
|
219
219
|
}, t), (async () => {
|
|
220
220
|
try {
|
|
@@ -230,7 +230,7 @@ function _e(e, t, n, r) {
|
|
|
230
230
|
clearTimeout(i), i = void 0;
|
|
231
231
|
}, a;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function _e(e, t, n) {
|
|
234
234
|
let r = 0, i = e.length;
|
|
235
235
|
for (; i > 0;) {
|
|
236
236
|
let a = Math.trunc(i / 2), o = r + a;
|
|
@@ -238,13 +238,13 @@ function ve(e, t, n) {
|
|
|
238
238
|
}
|
|
239
239
|
return r;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var V = function(e, t, n, r) {
|
|
242
242
|
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
243
243
|
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
|
|
244
244
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
245
|
-
},
|
|
245
|
+
}, ve, ye = class {
|
|
246
246
|
constructor() {
|
|
247
|
-
|
|
247
|
+
ve.set(this, []);
|
|
248
248
|
}
|
|
249
249
|
enqueue(e, t) {
|
|
250
250
|
t = {
|
|
@@ -255,36 +255,36 @@ var B = function(e, t, n, r) {
|
|
|
255
255
|
priority: t.priority,
|
|
256
256
|
run: e
|
|
257
257
|
};
|
|
258
|
-
if (this.size &&
|
|
259
|
-
|
|
258
|
+
if (this.size && V(this, ve, "f")[this.size - 1].priority >= t.priority) {
|
|
259
|
+
V(this, ve, "f").push(n);
|
|
260
260
|
return;
|
|
261
261
|
}
|
|
262
|
-
let r =
|
|
263
|
-
|
|
262
|
+
let r = _e(V(this, ve, "f"), n, (e, t) => t.priority - e.priority);
|
|
263
|
+
V(this, ve, "f").splice(r, 0, n);
|
|
264
264
|
}
|
|
265
265
|
dequeue() {
|
|
266
|
-
return
|
|
266
|
+
return V(this, ve, "f").shift()?.run;
|
|
267
267
|
}
|
|
268
268
|
filter(e) {
|
|
269
|
-
return
|
|
269
|
+
return V(this, ve, "f").filter((t) => t.priority === e.priority).map((e) => e.run);
|
|
270
270
|
}
|
|
271
271
|
get size() {
|
|
272
|
-
return
|
|
272
|
+
return V(this, ve, "f").length;
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
|
|
276
|
-
var
|
|
275
|
+
ve = /* @__PURE__ */ new WeakMap();
|
|
276
|
+
var H = function(e, t, n, r, i) {
|
|
277
277
|
if (r === "m") throw TypeError("Private method is not writable");
|
|
278
278
|
if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
|
|
279
279
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
|
|
280
280
|
return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
281
|
-
},
|
|
281
|
+
}, U = function(e, t, n, r) {
|
|
282
282
|
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
283
283
|
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
|
|
284
284
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
285
|
-
},
|
|
285
|
+
}, W, be, G, xe, Se, Ce, we, Te, Ee, De, Oe, K, ke, q, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He = new fe(), Ue = class extends Error {}, We = class extends B {
|
|
286
286
|
constructor(e) {
|
|
287
|
-
if (super(),
|
|
287
|
+
if (super(), W.add(this), be.set(this, void 0), G.set(this, void 0), xe.set(this, 0), Se.set(this, void 0), Ce.set(this, void 0), we.set(this, 0), Te.set(this, void 0), Ee.set(this, void 0), De.set(this, void 0), Oe.set(this, void 0), K.set(this, 0), ke.set(this, void 0), q.set(this, void 0), Ae.set(this, void 0), Object.defineProperty(this, "timeout", {
|
|
288
288
|
enumerable: !0,
|
|
289
289
|
configurable: !0,
|
|
290
290
|
writable: !0,
|
|
@@ -295,113 +295,113 @@ var V = function(e, t, n, r, i) {
|
|
|
295
295
|
interval: 0,
|
|
296
296
|
concurrency: Infinity,
|
|
297
297
|
autoStart: !0,
|
|
298
|
-
queueClass:
|
|
298
|
+
queueClass: ye,
|
|
299
299
|
...e
|
|
300
300
|
}, !(typeof e.intervalCap == "number" && e.intervalCap >= 1)) throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString() ?? ""}\` (${typeof e.intervalCap})`);
|
|
301
301
|
if (e.interval === void 0 || !(Number.isFinite(e.interval) && e.interval >= 0)) throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString() ?? ""}\` (${typeof e.interval})`);
|
|
302
|
-
|
|
302
|
+
H(this, be, e.carryoverConcurrencyCount, "f"), H(this, G, e.intervalCap === Infinity || e.interval === 0, "f"), H(this, Se, e.intervalCap, "f"), H(this, Ce, e.interval, "f"), H(this, De, new e.queueClass(), "f"), H(this, Oe, e.queueClass, "f"), this.concurrency = e.concurrency, this.timeout = e.timeout, H(this, Ae, e.throwOnTimeout === !0, "f"), H(this, q, e.autoStart === !1, "f");
|
|
303
303
|
}
|
|
304
304
|
get concurrency() {
|
|
305
|
-
return
|
|
305
|
+
return U(this, ke, "f");
|
|
306
306
|
}
|
|
307
307
|
set concurrency(e) {
|
|
308
308
|
if (!(typeof e == "number" && e >= 1)) throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);
|
|
309
|
-
|
|
309
|
+
H(this, ke, e, "f"), U(this, W, "m", Be).call(this);
|
|
310
310
|
}
|
|
311
311
|
async add(e, t = {}) {
|
|
312
312
|
return new Promise((n, r) => {
|
|
313
|
-
|
|
313
|
+
U(this, De, "f").enqueue(async () => {
|
|
314
314
|
var i, a;
|
|
315
|
-
|
|
315
|
+
H(this, K, (i = U(this, K, "f"), i++, i), "f"), H(this, xe, (a = U(this, xe, "f"), a++, a), "f");
|
|
316
316
|
try {
|
|
317
317
|
if (t.signal?.aborted) {
|
|
318
318
|
r(new Ue("The task was aborted."));
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
|
-
let i = await (this.timeout === void 0 && t.timeout === void 0 ? e({ signal: t.signal }) :
|
|
322
|
-
(t.throwOnTimeout === void 0 ?
|
|
321
|
+
let i = await (this.timeout === void 0 && t.timeout === void 0 ? e({ signal: t.signal }) : ge(Promise.resolve(e({ signal: t.signal })), t.timeout === void 0 ? this.timeout : t.timeout, () => {
|
|
322
|
+
(t.throwOnTimeout === void 0 ? U(this, Ae, "f") : t.throwOnTimeout) && r(He);
|
|
323
323
|
}));
|
|
324
324
|
n(i), this.emit("completed", i);
|
|
325
325
|
} catch (e) {
|
|
326
326
|
r(e), this.emit("error", e);
|
|
327
327
|
}
|
|
328
|
-
|
|
329
|
-
}, t),
|
|
328
|
+
U(this, W, "m", Ne).call(this);
|
|
329
|
+
}, t), U(this, W, "m", Le).call(this), this.emit("add");
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
async addAll(e, t) {
|
|
333
333
|
return Promise.all(e.map(async (e) => this.add(e, t)));
|
|
334
334
|
}
|
|
335
335
|
start() {
|
|
336
|
-
return
|
|
336
|
+
return U(this, q, "f") ? (H(this, q, !1, "f"), U(this, W, "m", Be).call(this), this) : this;
|
|
337
337
|
}
|
|
338
338
|
pause() {
|
|
339
|
-
|
|
339
|
+
H(this, q, !0, "f");
|
|
340
340
|
}
|
|
341
341
|
clear() {
|
|
342
|
-
|
|
342
|
+
H(this, De, new (U(this, Oe, "f"))(), "f");
|
|
343
343
|
}
|
|
344
344
|
async onEmpty() {
|
|
345
|
-
|
|
345
|
+
U(this, De, "f").size !== 0 && await U(this, W, "m", Ve).call(this, "empty");
|
|
346
346
|
}
|
|
347
347
|
async onSizeLessThan(e) {
|
|
348
|
-
|
|
348
|
+
U(this, De, "f").size < e || await U(this, W, "m", Ve).call(this, "next", () => U(this, De, "f").size < e);
|
|
349
349
|
}
|
|
350
350
|
async onIdle() {
|
|
351
|
-
(
|
|
351
|
+
(U(this, K, "f") !== 0 || U(this, De, "f").size !== 0) && await U(this, W, "m", Ve).call(this, "idle");
|
|
352
352
|
}
|
|
353
353
|
get size() {
|
|
354
|
-
return
|
|
354
|
+
return U(this, De, "f").size;
|
|
355
355
|
}
|
|
356
356
|
sizeBy(e) {
|
|
357
|
-
return
|
|
357
|
+
return U(this, De, "f").filter(e).length;
|
|
358
358
|
}
|
|
359
359
|
get pending() {
|
|
360
|
-
return
|
|
360
|
+
return U(this, K, "f");
|
|
361
361
|
}
|
|
362
362
|
get isPaused() {
|
|
363
|
-
return
|
|
363
|
+
return U(this, q, "f");
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
|
-
|
|
367
|
-
return
|
|
366
|
+
be = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), je = function() {
|
|
367
|
+
return U(this, G, "f") || U(this, xe, "f") < U(this, Se, "f");
|
|
368
368
|
}, Me = function() {
|
|
369
|
-
return
|
|
369
|
+
return U(this, K, "f") < U(this, ke, "f");
|
|
370
370
|
}, Ne = function() {
|
|
371
371
|
var e;
|
|
372
|
-
|
|
372
|
+
H(this, K, (e = U(this, K, "f"), e--, e), "f"), U(this, W, "m", Le).call(this), this.emit("next");
|
|
373
373
|
}, Pe = function() {
|
|
374
|
-
this.emit("empty"),
|
|
374
|
+
this.emit("empty"), U(this, K, "f") === 0 && this.emit("idle");
|
|
375
375
|
}, Fe = function() {
|
|
376
|
-
|
|
376
|
+
U(this, W, "m", ze).call(this), U(this, W, "m", Re).call(this), H(this, Ee, void 0, "f");
|
|
377
377
|
}, Ie = function() {
|
|
378
378
|
let e = Date.now();
|
|
379
|
-
if (
|
|
380
|
-
let t =
|
|
381
|
-
if (t < 0)
|
|
382
|
-
else return
|
|
383
|
-
|
|
379
|
+
if (U(this, Te, "f") === void 0) {
|
|
380
|
+
let t = U(this, we, "f") - e;
|
|
381
|
+
if (t < 0) H(this, xe, U(this, be, "f") ? U(this, K, "f") : 0, "f");
|
|
382
|
+
else return U(this, Ee, "f") === void 0 && H(this, Ee, setTimeout(() => {
|
|
383
|
+
U(this, W, "m", Fe).call(this);
|
|
384
384
|
}, t), "f"), !0;
|
|
385
385
|
}
|
|
386
386
|
return !1;
|
|
387
387
|
}, Le = function() {
|
|
388
|
-
if (
|
|
389
|
-
if (!
|
|
390
|
-
let e = !
|
|
391
|
-
if (
|
|
392
|
-
let t =
|
|
393
|
-
return t ? (this.emit("active"), t(), e &&
|
|
388
|
+
if (U(this, De, "f").size === 0) return U(this, Te, "f") && clearInterval(U(this, Te, "f")), H(this, Te, void 0, "f"), U(this, W, "m", Pe).call(this), !1;
|
|
389
|
+
if (!U(this, q, "f")) {
|
|
390
|
+
let e = !U(this, W, "a", Ie);
|
|
391
|
+
if (U(this, W, "a", je) && U(this, W, "a", Me)) {
|
|
392
|
+
let t = U(this, De, "f").dequeue();
|
|
393
|
+
return t ? (this.emit("active"), t(), e && U(this, W, "m", Re).call(this), !0) : !1;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
return !1;
|
|
397
397
|
}, Re = function() {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
},
|
|
398
|
+
U(this, G, "f") || U(this, Te, "f") !== void 0 || (H(this, Te, setInterval(() => {
|
|
399
|
+
U(this, W, "m", ze).call(this);
|
|
400
|
+
}, U(this, Ce, "f")), "f"), H(this, we, Date.now() + U(this, Ce, "f"), "f"));
|
|
401
401
|
}, ze = function() {
|
|
402
|
-
|
|
402
|
+
U(this, xe, "f") === 0 && U(this, K, "f") === 0 && U(this, Te, "f") && (clearInterval(U(this, Te, "f")), H(this, Te, void 0, "f")), H(this, xe, U(this, be, "f") ? U(this, K, "f") : 0, "f"), U(this, W, "m", Be).call(this);
|
|
403
403
|
}, Be = function() {
|
|
404
|
-
for (;
|
|
404
|
+
for (; U(this, W, "m", Le).call(this););
|
|
405
405
|
}, Ve = async function(e, t) {
|
|
406
406
|
return new Promise((n) => {
|
|
407
407
|
let r = () => {
|
|
@@ -3143,7 +3143,7 @@ function ns(e) {
|
|
|
3143
3143
|
}).join("");
|
|
3144
3144
|
}
|
|
3145
3145
|
//#endregion
|
|
3146
|
-
//#region node_modules/@banou/media-player/dist/engine-
|
|
3146
|
+
//#region node_modules/@banou/media-player/dist/engine-C4Gj_4zs.js
|
|
3147
3147
|
var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
3148
3148
|
index: n,
|
|
3149
3149
|
start: e.buffered.start(n),
|
|
@@ -3168,8 +3168,8 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3168
3168
|
updateTimestampOffset: (t) => r(async () => {
|
|
3169
3169
|
e.timestampOffset = t;
|
|
3170
3170
|
}),
|
|
3171
|
-
endOfStream: () => r(async () => {
|
|
3172
|
-
if (
|
|
3171
|
+
endOfStream: (n = () => !0) => r(async () => {
|
|
3172
|
+
if (t.readyState === "open" && !e.updating && n()) try {
|
|
3173
3173
|
t.endOfStream();
|
|
3174
3174
|
} catch {}
|
|
3175
3175
|
})
|
|
@@ -3379,138 +3379,138 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3379
3379
|
i(), n(/* @__PURE__ */ Error("The MediaSource closed before a SourceBuffer could be created"));
|
|
3380
3380
|
};
|
|
3381
3381
|
C.addEventListener("sourceopen", a, { once: !0 }), C.addEventListener("sourceclose", o, { once: !0 }), C.addEventListener("error", o, { once: !0 });
|
|
3382
|
-
}), { appendBuffer:
|
|
3383
|
-
await
|
|
3384
|
-
let k = !1,
|
|
3382
|
+
}), { appendBuffer: E, unbufferRange: ee, updateTimestampOffset: D, endOfStream: O } = as(T, C);
|
|
3383
|
+
await E(e.data), e.subtitles?.length && a.pushFragments(e.subtitles), p?.();
|
|
3384
|
+
let k = !1, A = !1, j = 0, te, ne = () => te ?? t.currentTime, M = !1, N = !1, re = 0, P = 0, F = null, I = 0, ie = 0, ae = !1, oe = 0, se = !0, L = (e, t, n = !1) => {
|
|
3385
3385
|
let r = e?.message === "Cancelled";
|
|
3386
|
-
t && r || (console.error(e), (!
|
|
3387
|
-
},
|
|
3388
|
-
if (
|
|
3389
|
-
let n = t.currentTime, r = e ? ys : gs, i = e ? bs : _s, a = rs(T), o = (e, t) => (
|
|
3386
|
+
t && r || (console.error(e), (!ae || n) && (ae = !0, m?.(r ? Error("Reading the video file failed", { cause: e }) : e)));
|
|
3387
|
+
}, R = async (e = !1) => {
|
|
3388
|
+
if (j > 0 && !e) return;
|
|
3389
|
+
let n = t.currentTime, r = e ? ys : gs, i = e ? bs : _s, a = rs(T), o = (e, t) => (se = !1, ee(e, t));
|
|
3390
3390
|
a.length && a[0].start < n + r && await o(0, n + r);
|
|
3391
3391
|
for (let { end: e } of a) e > n + i && await o(n + i, e);
|
|
3392
|
-
},
|
|
3392
|
+
}, ce = () => {
|
|
3393
3393
|
let e = rs(T);
|
|
3394
3394
|
if (!e.length) return !0;
|
|
3395
|
-
let t =
|
|
3396
|
-
return
|
|
3397
|
-
},
|
|
3398
|
-
let n =
|
|
3399
|
-
return e >=
|
|
3400
|
-
},
|
|
3395
|
+
let t = ne(), n = e.find((e) => e.start <= t + Cs && t < e.end);
|
|
3396
|
+
return B() && ue(t) && (!n || n.start <= t) || n && n.end >= t + _s ? !1 : !n || n.end < t + vs;
|
|
3397
|
+
}, z = (e) => rs(T).find((t) => t.start <= e + Cs && e < t.end), le = () => z(t.currentTime), ue = (e = t.currentTime) => {
|
|
3398
|
+
let n = z(e);
|
|
3399
|
+
return e >= ie - .1 || !!n && n.end >= ie - .1;
|
|
3400
|
+
}, de = () => {
|
|
3401
3401
|
let e = rs(T).map((e) => e.end);
|
|
3402
|
-
e.length && (
|
|
3403
|
-
},
|
|
3404
|
-
|
|
3405
|
-
let t = ++
|
|
3402
|
+
e.length && (ie = Math.max(ie, ...e)), M && (N = !0);
|
|
3403
|
+
}, B = () => M || N && (rs(T).at(-1)?.end ?? 0) >= ie - .1, fe = async (e) => {
|
|
3404
|
+
A = !0, F = null, I = 0, oe = e, se = !0;
|
|
3405
|
+
let t = ++P;
|
|
3406
3406
|
try {
|
|
3407
3407
|
let { data: n, pts: r, subtitles: i, finished: o } = await y.seek(e);
|
|
3408
|
-
if (x || t !==
|
|
3409
|
-
n.byteLength && (await
|
|
3408
|
+
if (x || t !== P || (o && (M = !0), i?.length && a.pushFragments(i), await D(r), x || t !== P)) return;
|
|
3409
|
+
n.byteLength && (await E(n), de());
|
|
3410
3410
|
} catch (e) {
|
|
3411
|
-
t ===
|
|
3411
|
+
t === P && (se = !1), L(e, x || t !== P);
|
|
3412
3412
|
} finally {
|
|
3413
|
-
t ===
|
|
3413
|
+
t === P && (A = !1);
|
|
3414
3414
|
}
|
|
3415
|
-
},
|
|
3416
|
-
let e =
|
|
3415
|
+
}, pe = async () => {
|
|
3416
|
+
let e = F;
|
|
3417
3417
|
if (e) try {
|
|
3418
|
-
await
|
|
3418
|
+
await E(e), de(), F === e && (F = null, I = 0);
|
|
3419
3419
|
} catch (n) {
|
|
3420
|
-
if (
|
|
3420
|
+
if (F !== e) return;
|
|
3421
3421
|
if (n?.name === "QuotaExceededError") {
|
|
3422
|
-
let n = await
|
|
3423
|
-
if (
|
|
3422
|
+
let n = await R(!0).then(() => !0, () => !1);
|
|
3423
|
+
if (F !== e) return;
|
|
3424
3424
|
if (n) {
|
|
3425
|
-
M = !1, await
|
|
3425
|
+
M = !1, await fe(le()?.end ?? t.currentTime);
|
|
3426
3426
|
return;
|
|
3427
3427
|
}
|
|
3428
3428
|
}
|
|
3429
|
-
if (
|
|
3430
|
-
throw
|
|
3429
|
+
if (I += 1, I < xs) return;
|
|
3430
|
+
throw F = null, n;
|
|
3431
3431
|
}
|
|
3432
|
-
},
|
|
3433
|
-
if (k ||
|
|
3434
|
-
let e = ++
|
|
3432
|
+
}, me = async () => {
|
|
3433
|
+
if (k || A || G !== void 0 || x || !F && (M || !ce())) return;
|
|
3434
|
+
let e = ++re, t = P, n = () => x || e !== re || t !== P;
|
|
3435
3435
|
k = !0;
|
|
3436
3436
|
try {
|
|
3437
|
-
if (!
|
|
3437
|
+
if (!F) {
|
|
3438
3438
|
let { data: e, subtitles: t, finished: r } = await y.read();
|
|
3439
3439
|
if (n() || (r && (M = !0), t?.length && a.pushFragments(t), !e.byteLength)) return;
|
|
3440
|
-
|
|
3440
|
+
F = e, I = 0;
|
|
3441
3441
|
}
|
|
3442
|
-
await
|
|
3442
|
+
await pe(), !n() && ae && (ae = !1, h?.());
|
|
3443
3443
|
} catch (e) {
|
|
3444
|
-
|
|
3444
|
+
L(e, n());
|
|
3445
3445
|
} finally {
|
|
3446
|
-
e ===
|
|
3446
|
+
e === re && (k = !1);
|
|
3447
3447
|
}
|
|
3448
|
-
},
|
|
3449
|
-
let t =
|
|
3448
|
+
}, he = (e) => e >= oe && ge(e) && V(e), ge = (e) => rs(T).some((t) => t.start <= e && e < t.end), _e = (e) => {
|
|
3449
|
+
let t = z(e);
|
|
3450
3450
|
return t ? t.end - e : 0;
|
|
3451
|
-
},
|
|
3452
|
-
if (!x && !(
|
|
3453
|
-
M = !1,
|
|
3451
|
+
}, V = (e) => _e(e) >= ws || B() && ue(e), ve = async (e) => {
|
|
3452
|
+
if (!x && !(ge(e) && V(e))) {
|
|
3453
|
+
M = !1, j++, te = e;
|
|
3454
3454
|
try {
|
|
3455
|
-
await
|
|
3456
|
-
let t =
|
|
3457
|
-
for (let n = 0; n < Ts && !(x || t !==
|
|
3458
|
-
let t =
|
|
3459
|
-
if (await
|
|
3455
|
+
await fe(e);
|
|
3456
|
+
let t = P;
|
|
3457
|
+
for (let n = 0; n < Ts && !(x || t !== P || M || _e(e) >= ws); n++) {
|
|
3458
|
+
let t = _e(e);
|
|
3459
|
+
if (await me(), _e(e) <= t) break;
|
|
3460
3460
|
}
|
|
3461
3461
|
} finally {
|
|
3462
|
-
|
|
3462
|
+
j--, te === e && (te = void 0);
|
|
3463
3463
|
}
|
|
3464
3464
|
}
|
|
3465
|
-
},
|
|
3466
|
-
let t = performance.now(), n = t -
|
|
3465
|
+
}, ye = 0, H = null, U, W = (e) => {
|
|
3466
|
+
let t = performance.now(), n = t - ye;
|
|
3467
3467
|
if (n >= Es) {
|
|
3468
|
-
|
|
3468
|
+
ye = t, H = null, g?.(e);
|
|
3469
3469
|
return;
|
|
3470
3470
|
}
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
let e =
|
|
3474
|
-
|
|
3471
|
+
H = e, !U && (U = setTimeout(() => {
|
|
3472
|
+
U = void 0;
|
|
3473
|
+
let e = H;
|
|
3474
|
+
H = null, !(e === null || x) && (ye = performance.now(), g?.(e));
|
|
3475
3475
|
}, Es - n));
|
|
3476
3476
|
};
|
|
3477
3477
|
b.push(() => {
|
|
3478
|
-
|
|
3478
|
+
U && clearTimeout(U);
|
|
3479
3479
|
});
|
|
3480
|
-
let
|
|
3480
|
+
let be = 0, G;
|
|
3481
3481
|
b.push(() => {
|
|
3482
|
-
|
|
3482
|
+
G && clearTimeout(G);
|
|
3483
3483
|
});
|
|
3484
|
-
let
|
|
3484
|
+
let xe = () => {
|
|
3485
3485
|
let n = t.currentTime, r = e.info.input.duration || t.duration;
|
|
3486
|
-
r > 0 &&
|
|
3487
|
-
let i = performance.now(), a = i -
|
|
3488
|
-
if (
|
|
3489
|
-
if (M = !1,
|
|
3490
|
-
|
|
3486
|
+
r > 0 && W(Math.min(Math.max(n / r, 0), 1));
|
|
3487
|
+
let i = performance.now(), a = i - be < Ds;
|
|
3488
|
+
if (be = i, !he(n) && !(se && (A || _e(n) > 0) && Math.abs(n - oe) < .001)) {
|
|
3489
|
+
if (M = !1, G && clearTimeout(G), !a) {
|
|
3490
|
+
G = void 0, fe(n);
|
|
3491
3491
|
return;
|
|
3492
3492
|
}
|
|
3493
|
-
|
|
3494
|
-
if (
|
|
3493
|
+
G = setTimeout(() => {
|
|
3494
|
+
if (G = void 0, x) return;
|
|
3495
3495
|
let e = t.currentTime;
|
|
3496
|
-
|
|
3496
|
+
he(e) || (M = !1, fe(e));
|
|
3497
3497
|
}, Ds);
|
|
3498
3498
|
}
|
|
3499
3499
|
};
|
|
3500
|
-
t.addEventListener("seeking",
|
|
3501
|
-
let
|
|
3502
|
-
if (
|
|
3503
|
-
|
|
3500
|
+
t.addEventListener("seeking", xe), b.push(() => t.removeEventListener("seeking", xe));
|
|
3501
|
+
let Se = !1, Ce = () => {
|
|
3502
|
+
if (Se) return;
|
|
3503
|
+
Se = !0;
|
|
3504
3504
|
let e = t.error;
|
|
3505
|
-
|
|
3505
|
+
L(new ms(`the media element failed: ${e?.message ?? "unknown"}`, { cause: e }), !1, !0);
|
|
3506
3506
|
};
|
|
3507
|
-
t.addEventListener("error",
|
|
3508
|
-
let
|
|
3509
|
-
|
|
3507
|
+
t.addEventListener("error", Ce), b.push(() => t.removeEventListener("error", Ce));
|
|
3508
|
+
let we = setInterval(() => {
|
|
3509
|
+
Se || t.error || (R().catch(() => {}), me().catch((e) => L(e, !1)), B() && !F && ue() && C.readyState === "open" && O(() => !A).catch(() => {}));
|
|
3510
3510
|
}, 100);
|
|
3511
|
-
return b.push(() => clearInterval(
|
|
3511
|
+
return b.push(() => clearInterval(we)), {
|
|
3512
3512
|
destroy: S,
|
|
3513
|
-
prepareSeek:
|
|
3513
|
+
prepareSeek: ve,
|
|
3514
3514
|
videoElement: t,
|
|
3515
3515
|
selectSubtitleStream: (e) => a.selectStream(e),
|
|
3516
3516
|
indexes: e.indexes ?? [],
|
|
@@ -3595,7 +3595,7 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3595
3595
|
g = !1;
|
|
3596
3596
|
let e = v;
|
|
3597
3597
|
w(T(e)).then(() => {
|
|
3598
|
-
|
|
3598
|
+
E(e), S();
|
|
3599
3599
|
});
|
|
3600
3600
|
return;
|
|
3601
3601
|
}
|
|
@@ -3629,7 +3629,7 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3629
3629
|
} catch {} finally {
|
|
3630
3630
|
_ = !1;
|
|
3631
3631
|
}
|
|
3632
|
-
}, T = (e) => e ? e.reduce((e, [, t]) => Math.max(e, t), 0) : r,
|
|
3632
|
+
}, T = (e) => e ? e.reduce((e, [, t]) => Math.max(e, t), 0) : r, E = (e) => {
|
|
3633
3633
|
for (let t of c) t.done || (!e || e.some(([e, n]) => e <= t.startByte && t.endByte <= n)) && C(t);
|
|
3634
3634
|
};
|
|
3635
3635
|
return b(), {
|
|
@@ -3637,7 +3637,7 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3637
3637
|
if (d) return;
|
|
3638
3638
|
v = e;
|
|
3639
3639
|
let t = T(e);
|
|
3640
|
-
h < 0 ? h = t : (t >= Math.max(h * Ls, h + Rs) || t >= r && h < r) && (g = !0),
|
|
3640
|
+
h < 0 ? h = t : (t >= Math.max(h * Ls, h + Rs) || t >= r && h < r) && (g = !0), E(e), S();
|
|
3641
3641
|
},
|
|
3642
3642
|
prioritize: (e) => {
|
|
3643
3643
|
d || (m = e);
|
|
@@ -3687,14 +3687,14 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3687
3687
|
l = !1;
|
|
3688
3688
|
}, Ws);
|
|
3689
3689
|
});
|
|
3690
|
-
},
|
|
3690
|
+
}, E = [["play", () => {
|
|
3691
3691
|
t.play().catch(() => {});
|
|
3692
|
-
}], ["pause", () => t.pause()]],
|
|
3693
|
-
if ("mediaSession" in navigator) for (let [t, n] of
|
|
3692
|
+
}], ["pause", () => t.pause()]], ee = (e) => {
|
|
3693
|
+
if ("mediaSession" in navigator) for (let [t, n] of E) try {
|
|
3694
3694
|
navigator.mediaSession.setActionHandler(t, e ? n : null);
|
|
3695
3695
|
} catch {}
|
|
3696
3696
|
}, D = () => {
|
|
3697
|
-
if (y(),
|
|
3697
|
+
if (y(), ee(!1), t.removeEventListener("play", C), t.removeEventListener("pause", w), t.removeEventListener("seeked", T), !a) {
|
|
3698
3698
|
f?.();
|
|
3699
3699
|
return;
|
|
3700
3700
|
}
|
|
@@ -3707,7 +3707,7 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3707
3707
|
e.style.cssText = "position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:1", t.style.opacity = "0", n.style.display = "none", f = () => {
|
|
3708
3708
|
f = void 0, t.style.opacity = r, n.style.display = i;
|
|
3709
3709
|
};
|
|
3710
|
-
},
|
|
3710
|
+
}, A = async () => {
|
|
3711
3711
|
let n = Math.min(t.videoWidth || i, i), o = Math.round(n * ((t.videoHeight || 9) / (t.videoWidth || 16))), c = document.createElement("canvas");
|
|
3712
3712
|
c.width = n, c.height = o;
|
|
3713
3713
|
let l = c.getContext("2d");
|
|
@@ -3731,7 +3731,7 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3731
3731
|
u.remove();
|
|
3732
3732
|
return;
|
|
3733
3733
|
}
|
|
3734
|
-
if (u.addEventListener("play", x), u.addEventListener("pause", S), u.addEventListener("leavepictureinpicture", O), t.addEventListener("play", C), t.addEventListener("pause", w), t.addEventListener("seeked", T),
|
|
3734
|
+
if (u.addEventListener("play", x), u.addEventListener("pause", S), u.addEventListener("leavepictureinpicture", O), t.addEventListener("play", C), t.addEventListener("pause", w), t.addEventListener("seeked", T), ee(!0), b(), r === "burn-in") {
|
|
3735
3735
|
t.paused && u.pause(), e.onBurnedInChange?.(!0);
|
|
3736
3736
|
return;
|
|
3737
3737
|
}
|
|
@@ -3752,7 +3752,7 @@ var rs = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3752
3752
|
}
|
|
3753
3753
|
r !== "burn-in" && document.pictureInPictureElement && await document.exitPictureInPicture().catch(() => {});
|
|
3754
3754
|
try {
|
|
3755
|
-
await
|
|
3755
|
+
await A();
|
|
3756
3756
|
} catch (t) {
|
|
3757
3757
|
console.warn("subtitle compositing for picture in picture failed", t), D(), r === "burn-in" && e.onBurnedInChange?.(!1);
|
|
3758
3758
|
}
|
|
@@ -3853,13 +3853,13 @@ function fc(e, t) {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
//#endregion
|
|
3855
3855
|
//#region node_modules/@videojs/react/dist/default/i18n/context.js
|
|
3856
|
-
|
|
3857
|
-
var pc =
|
|
3858
|
-
|
|
3856
|
+
M();
|
|
3857
|
+
var pc = y(null);
|
|
3858
|
+
y(void 0);
|
|
3859
3859
|
function mc() {
|
|
3860
|
-
let e =
|
|
3861
|
-
|
|
3862
|
-
let r =
|
|
3860
|
+
let e = ee(pc), [t, n] = te((e) => e + 1, 0);
|
|
3861
|
+
S(() => lc(() => n()), []);
|
|
3862
|
+
let r = g(() => fc(cc("en"), "en"), [t]);
|
|
3863
3863
|
return e ? e.translator : r;
|
|
3864
3864
|
}
|
|
3865
3865
|
//#endregion
|
|
@@ -3942,7 +3942,7 @@ function Tc(e) {
|
|
|
3942
3942
|
}
|
|
3943
3943
|
//#endregion
|
|
3944
3944
|
//#region node_modules/@videojs/react/dist/default/utils/use-composed-refs.js
|
|
3945
|
-
|
|
3945
|
+
M();
|
|
3946
3946
|
function Ec(e, t) {
|
|
3947
3947
|
if (X(e)) return e(t);
|
|
3948
3948
|
e != null && (e.current = t);
|
|
@@ -3960,17 +3960,17 @@ function Dc(...e) {
|
|
|
3960
3960
|
};
|
|
3961
3961
|
}
|
|
3962
3962
|
function Oc(...e) {
|
|
3963
|
-
return
|
|
3963
|
+
return I(Dc(...e), [...e]);
|
|
3964
3964
|
}
|
|
3965
3965
|
//#endregion
|
|
3966
3966
|
//#region node_modules/@videojs/store/dist/default/react/hooks/use-selector.js
|
|
3967
|
-
|
|
3967
|
+
M();
|
|
3968
3968
|
function kc(e, t, n, r = $s) {
|
|
3969
|
-
let i =
|
|
3969
|
+
let i = p(void 0), a = () => {
|
|
3970
3970
|
let e = n(t());
|
|
3971
3971
|
return i.current !== void 0 && r(i.current, e) ? i.current : (i.current = e, e);
|
|
3972
3972
|
};
|
|
3973
|
-
return
|
|
3973
|
+
return L(e, a, a);
|
|
3974
3974
|
}
|
|
3975
3975
|
//#endregion
|
|
3976
3976
|
//#region node_modules/@videojs/utils/dist/function/identity.js
|
|
@@ -3988,16 +3988,16 @@ function Nc(e, t, n) {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
//#endregion
|
|
3990
3990
|
//#region node_modules/@videojs/react/dist/default/player/context.js
|
|
3991
|
-
|
|
3992
|
-
var Pc =
|
|
3991
|
+
M();
|
|
3992
|
+
var Pc = y(null);
|
|
3993
3993
|
function Fc({ value: e, children: t }) {
|
|
3994
|
-
return /* @__PURE__ */
|
|
3994
|
+
return /* @__PURE__ */ o(Pc.Provider, {
|
|
3995
3995
|
value: e,
|
|
3996
3996
|
children: t
|
|
3997
3997
|
});
|
|
3998
3998
|
}
|
|
3999
3999
|
function Ic() {
|
|
4000
|
-
let e =
|
|
4000
|
+
let e = ee(Pc);
|
|
4001
4001
|
if (!e) throw Error("usePlayerContext must be used within a Player Provider");
|
|
4002
4002
|
return e;
|
|
4003
4003
|
}
|
|
@@ -4006,10 +4006,10 @@ function Lc() {
|
|
|
4006
4006
|
return e;
|
|
4007
4007
|
}
|
|
4008
4008
|
function Rc() {
|
|
4009
|
-
return
|
|
4009
|
+
return ee(Pc)?.setMedia;
|
|
4010
4010
|
}
|
|
4011
4011
|
function zc() {
|
|
4012
|
-
return
|
|
4012
|
+
return ee(Pc)?.setContainer;
|
|
4013
4013
|
}
|
|
4014
4014
|
//#endregion
|
|
4015
4015
|
//#region node_modules/@videojs/utils/dist/events/abort.js
|
|
@@ -4958,41 +4958,41 @@ var hu = {
|
|
|
4958
4958
|
};
|
|
4959
4959
|
//#endregion
|
|
4960
4960
|
//#region node_modules/@videojs/react/dist/default/player/container.js
|
|
4961
|
-
|
|
4962
|
-
var gu =
|
|
4963
|
-
let
|
|
4964
|
-
|
|
4965
|
-
let
|
|
4961
|
+
M();
|
|
4962
|
+
var gu = u(function({ children: e, tabIndex: t = 0, role: n = fu, "aria-label": r, "aria-labelledby": i, ...a }, s) {
|
|
4963
|
+
let c = zc(), l = mc(), u = p(null), d = Oc(s, u);
|
|
4964
|
+
S(() => (c?.(u.current), () => c?.(null)), [c]);
|
|
4965
|
+
let f = (e) => {
|
|
4966
4966
|
a.onPointerUp?.(e);
|
|
4967
|
-
let t =
|
|
4967
|
+
let t = u.current;
|
|
4968
4968
|
t && pu(t);
|
|
4969
4969
|
};
|
|
4970
|
-
return /* @__PURE__ */
|
|
4971
|
-
ref:
|
|
4970
|
+
return /* @__PURE__ */ o("div", {
|
|
4971
|
+
ref: d,
|
|
4972
4972
|
role: n,
|
|
4973
4973
|
tabIndex: t,
|
|
4974
4974
|
...r !== void 0 || i !== void 0 ? {
|
|
4975
4975
|
"aria-label": r,
|
|
4976
4976
|
"aria-labelledby": i
|
|
4977
|
-
} : { "aria-label":
|
|
4977
|
+
} : { "aria-label": l(hu) },
|
|
4978
4978
|
...a,
|
|
4979
|
-
onPointerUp:
|
|
4979
|
+
onPointerUp: f,
|
|
4980
4980
|
children: e
|
|
4981
4981
|
});
|
|
4982
4982
|
});
|
|
4983
4983
|
//#endregion
|
|
4984
4984
|
//#region node_modules/@videojs/react/dist/default/utils/use-latest-ref.js
|
|
4985
|
-
|
|
4985
|
+
M();
|
|
4986
4986
|
function _u(e) {
|
|
4987
|
-
let t =
|
|
4987
|
+
let t = p(e);
|
|
4988
4988
|
return t.current = e, t;
|
|
4989
4989
|
}
|
|
4990
4990
|
//#endregion
|
|
4991
4991
|
//#region node_modules/@videojs/react/dist/default/utils/use-destroy.js
|
|
4992
|
-
|
|
4992
|
+
M();
|
|
4993
4993
|
function vu(e, t, n) {
|
|
4994
|
-
let r =
|
|
4995
|
-
|
|
4994
|
+
let r = p(null), i = _u(t), a = _u(n);
|
|
4995
|
+
S(() => (r.current === null ? i.current?.() : (clearTimeout(r.current), r.current = null), () => {
|
|
4996
4996
|
r.current = setTimeout(() => {
|
|
4997
4997
|
a.current?.(), e.destroy();
|
|
4998
4998
|
}, 0);
|
|
@@ -5000,11 +5000,11 @@ function vu(e, t, n) {
|
|
|
5000
5000
|
}
|
|
5001
5001
|
//#endregion
|
|
5002
5002
|
//#region node_modules/@videojs/react/dist/default/player/create-player.js
|
|
5003
|
-
|
|
5003
|
+
M();
|
|
5004
5004
|
function yu(e) {
|
|
5005
5005
|
function t({ children: t }) {
|
|
5006
|
-
let [n, r] =
|
|
5007
|
-
return vu(n),
|
|
5006
|
+
let [n, r] = A(() => tl()(Hc(...e.features))), [i] = A(() => mu()), [a, s] = A(null), [c, l] = A(null);
|
|
5007
|
+
return vu(n), S(() => {
|
|
5008
5008
|
if (a) {
|
|
5009
5009
|
if (n.destroyed) {
|
|
5010
5010
|
r(tl()(Hc(...e.features)));
|
|
@@ -5012,25 +5012,25 @@ function yu(e) {
|
|
|
5012
5012
|
}
|
|
5013
5013
|
return n.attach({
|
|
5014
5014
|
media: a,
|
|
5015
|
-
container:
|
|
5015
|
+
container: c
|
|
5016
5016
|
});
|
|
5017
5017
|
}
|
|
5018
5018
|
}, [
|
|
5019
5019
|
a,
|
|
5020
|
-
|
|
5020
|
+
c,
|
|
5021
5021
|
n
|
|
5022
|
-
]), /* @__PURE__ */
|
|
5023
|
-
value:
|
|
5022
|
+
]), /* @__PURE__ */ o(Fc, {
|
|
5023
|
+
value: g(() => ({
|
|
5024
5024
|
store: n,
|
|
5025
5025
|
media: a,
|
|
5026
|
-
setMedia:
|
|
5027
|
-
container:
|
|
5028
|
-
setContainer:
|
|
5026
|
+
setMedia: s,
|
|
5027
|
+
container: c,
|
|
5028
|
+
setContainer: l,
|
|
5029
5029
|
popupGroup: i
|
|
5030
5030
|
}), [
|
|
5031
5031
|
n,
|
|
5032
5032
|
a,
|
|
5033
|
-
|
|
5033
|
+
c,
|
|
5034
5034
|
i
|
|
5035
5035
|
]),
|
|
5036
5036
|
children: t
|
|
@@ -5049,7 +5049,7 @@ function yu(e) {
|
|
|
5049
5049
|
}
|
|
5050
5050
|
//#endregion
|
|
5051
5051
|
//#region node_modules/@banou/ponyfill/build/web-audio.js
|
|
5052
|
-
|
|
5052
|
+
re();
|
|
5053
5053
|
var bu = (e, t) => {
|
|
5054
5054
|
if (globalThis.navigator?.vendor === "Apple Computer, Inc.") throw new DOMException("A media element routed into Web Audio loses its volume and mute, or its sound, in this engine", "NotSupportedError");
|
|
5055
5055
|
return e.createMediaElementSource(t);
|
|
@@ -5080,7 +5080,7 @@ var bu = (e, t) => {
|
|
|
5080
5080
|
}) : window.classNames = n;
|
|
5081
5081
|
})();
|
|
5082
5082
|
}));
|
|
5083
|
-
r(),
|
|
5083
|
+
r(), M();
|
|
5084
5084
|
var Su = /* @__PURE__ */ n(xu(), 1), Cu = "react-tooltip-core-styles", wu = "react-tooltip-base-styles", Tu = {
|
|
5085
5085
|
core: !1,
|
|
5086
5086
|
base: !1
|
|
@@ -5094,9 +5094,9 @@ function Eu({ css: t, id: n = wu, type: r = "base", ref: i }) {
|
|
|
5094
5094
|
s.id = n, s.type = "text/css", a === "top" && o.firstChild ? o.insertBefore(s, o.firstChild) : o.appendChild(s), s.styleSheet ? s.styleSheet.cssText = t : s.appendChild(document.createTextNode(t)), Tu[r] = !0;
|
|
5095
5095
|
}
|
|
5096
5096
|
var Du = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: r = "top", offset: i = 10, strategy: a = "absolute", middlewares: o = [
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5097
|
+
_(Number(i)),
|
|
5098
|
+
se({ fallbackAxisSideDirection: "start" }),
|
|
5099
|
+
oe({ padding: 5 })
|
|
5100
5100
|
], border: s, arrowSize: c = 8 }) => {
|
|
5101
5101
|
if (!e || t === null) return {
|
|
5102
5102
|
tooltipStyles: {},
|
|
@@ -5104,10 +5104,10 @@ var Du = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
5104
5104
|
place: r
|
|
5105
5105
|
};
|
|
5106
5106
|
let l = o;
|
|
5107
|
-
return n ? (l.push(
|
|
5107
|
+
return n ? (l.push(w({
|
|
5108
5108
|
element: n,
|
|
5109
5109
|
padding: 5
|
|
5110
|
-
})),
|
|
5110
|
+
})), ae(e, t, {
|
|
5111
5111
|
placement: r,
|
|
5112
5112
|
strategy: a,
|
|
5113
5113
|
middleware: l
|
|
@@ -5144,7 +5144,7 @@ var Du = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
5144
5144
|
},
|
|
5145
5145
|
place: n
|
|
5146
5146
|
};
|
|
5147
|
-
}))) :
|
|
5147
|
+
}))) : ae(e, t, {
|
|
5148
5148
|
placement: "bottom",
|
|
5149
5149
|
strategy: a,
|
|
5150
5150
|
middleware: l
|
|
@@ -5192,7 +5192,7 @@ var Du = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
5192
5192
|
t = t.parentElement;
|
|
5193
5193
|
}
|
|
5194
5194
|
return document.scrollingElement || document.documentElement;
|
|
5195
|
-
}, Pu = typeof window < "u" ?
|
|
5195
|
+
}, Pu = typeof window < "u" ? f : S, Fu = (e) => {
|
|
5196
5196
|
e.current &&= (clearTimeout(e.current), null);
|
|
5197
5197
|
}, Iu = "DEFAULT_TOOLTIP_ID", Lu = {
|
|
5198
5198
|
anchorRefs: /* @__PURE__ */ new Set(),
|
|
@@ -5200,9 +5200,9 @@ var Du = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
5200
5200
|
attach: () => {},
|
|
5201
5201
|
detach: () => {},
|
|
5202
5202
|
setActiveAnchor: () => {}
|
|
5203
|
-
}, Ru =
|
|
5203
|
+
}, Ru = y({ getTooltipData: () => Lu });
|
|
5204
5204
|
function zu(e = Iu) {
|
|
5205
|
-
return
|
|
5205
|
+
return ee(Ru).getTooltipData(e);
|
|
5206
5206
|
}
|
|
5207
5207
|
var Bu = {
|
|
5208
5208
|
tooltip: "core-styles-module_tooltip__3vRRp",
|
|
@@ -5223,12 +5223,12 @@ var Bu = {
|
|
|
5223
5223
|
warning: "styles-module_warning__SCK0X",
|
|
5224
5224
|
error: "styles-module_error__JvumD",
|
|
5225
5225
|
info: "styles-module_info__BWdHW"
|
|
5226
|
-
}, Hu = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant:
|
|
5227
|
-
let
|
|
5226
|
+
}, Hu = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o = "dark", anchorId: s, anchorSelect: c, place: l = "top", offset: u = 10, events: d = ["hover"], openOnClick: f = !1, positionStrategy: h = "absolute", middlewares: g, wrapper: _, delayShow: v = 0, delayHide: y = 0, float: b = !1, hidden: x = !1, noArrow: C = !1, clickable: w = !1, closeOnEsc: T = !1, closeOnScroll: E = !1, closeOnResize: ee = !1, openEvents: D, closeEvents: O, globalCloseEvents: k, imperativeModeOnly: j, style: te, position: ne, afterShow: M, afterHide: N, disableTooltip: re, content: P, contentWrapperRef: F, isOpen: ie, defaultIsOpen: ae = !1, setIsOpen: oe, previousActiveAnchor: se, activeAnchor: L, setActiveAnchor: R, border: ce, opacity: z, arrowColor: le, arrowSize: ue = 8, role: de = "tooltip" }) => {
|
|
5227
|
+
let B = p(null), fe = p(null), pe = p(null), me = p(null), he = p(null), [ge, _e] = A({
|
|
5228
5228
|
tooltipStyles: {},
|
|
5229
5229
|
tooltipArrowStyles: {},
|
|
5230
5230
|
place: l
|
|
5231
|
-
}), [
|
|
5231
|
+
}), [V, ve] = A(!1), [ye, H] = A(!1), [U, W] = A(null), be = p(!1), G = p(null), { anchorRefs: xe, setActiveAnchor: Se } = zu(t), Ce = p(!1), [we, Te] = A([]), Ee = p(!1), De = f || d.includes("click"), Oe = De || D?.click || D?.dblclick || D?.mousedown, K = D ? { ...D } : {
|
|
5232
5232
|
mouseover: !0,
|
|
5233
5233
|
focus: !0,
|
|
5234
5234
|
mouseenter: !1,
|
|
@@ -5236,7 +5236,7 @@ var Bu = {
|
|
|
5236
5236
|
dblclick: !1,
|
|
5237
5237
|
mousedown: !1
|
|
5238
5238
|
};
|
|
5239
|
-
!
|
|
5239
|
+
!D && De && Object.assign(K, {
|
|
5240
5240
|
mouseenter: !1,
|
|
5241
5241
|
focus: !1,
|
|
5242
5242
|
mouseover: !1,
|
|
@@ -5250,18 +5250,18 @@ var Bu = {
|
|
|
5250
5250
|
dblclick: !1,
|
|
5251
5251
|
mouseup: !1
|
|
5252
5252
|
};
|
|
5253
|
-
!O &&
|
|
5253
|
+
!O && De && Object.assign(ke, {
|
|
5254
5254
|
mouseleave: !1,
|
|
5255
5255
|
blur: !1,
|
|
5256
5256
|
mouseout: !1
|
|
5257
5257
|
});
|
|
5258
5258
|
let q = k ? { ...k } : {
|
|
5259
|
-
escape:
|
|
5260
|
-
scroll:
|
|
5259
|
+
escape: T || !1,
|
|
5260
|
+
scroll: E || !1,
|
|
5261
5261
|
resize: ee || !1,
|
|
5262
5262
|
clickOutsideAnchor: Oe || !1
|
|
5263
5263
|
};
|
|
5264
|
-
|
|
5264
|
+
j && (Object.assign(K, {
|
|
5265
5265
|
mouseover: !1,
|
|
5266
5266
|
focus: !1,
|
|
5267
5267
|
mouseenter: !1,
|
|
@@ -5280,23 +5280,23 @@ var Bu = {
|
|
|
5280
5280
|
scroll: !1,
|
|
5281
5281
|
resize: !1,
|
|
5282
5282
|
clickOutsideAnchor: !1
|
|
5283
|
-
})), Pu((() => (
|
|
5284
|
-
|
|
5283
|
+
})), Pu((() => (Ee.current = !0, () => {
|
|
5284
|
+
Ee.current = !1;
|
|
5285
5285
|
})), []);
|
|
5286
5286
|
let Ae = (e) => {
|
|
5287
|
-
|
|
5288
|
-
|
|
5287
|
+
Ee.current && (e && H(!0), setTimeout((() => {
|
|
5288
|
+
Ee.current && (oe?.(e), ie === void 0 && ve(e));
|
|
5289
5289
|
}), 10));
|
|
5290
5290
|
};
|
|
5291
|
-
|
|
5291
|
+
S((() => {
|
|
5292
5292
|
if (t) {
|
|
5293
|
-
if (
|
|
5294
|
-
n(
|
|
5295
|
-
let r = e(
|
|
5296
|
-
|
|
5297
|
-
} else n(
|
|
5293
|
+
if (V) {
|
|
5294
|
+
n(se);
|
|
5295
|
+
let r = e(L), i = [.../* @__PURE__ */ new Set([...r, t])].filter(Boolean).join(" ");
|
|
5296
|
+
L?.setAttribute("aria-describedby", i);
|
|
5297
|
+
} else n(L);
|
|
5298
5298
|
return () => {
|
|
5299
|
-
n(
|
|
5299
|
+
n(L), n(se);
|
|
5300
5300
|
};
|
|
5301
5301
|
}
|
|
5302
5302
|
function e(e) {
|
|
@@ -5307,22 +5307,22 @@ var Bu = {
|
|
|
5307
5307
|
r.length ? n?.setAttribute("aria-describedby", r.join(" ")) : n?.removeAttribute("aria-describedby");
|
|
5308
5308
|
}
|
|
5309
5309
|
}), [
|
|
5310
|
-
|
|
5311
|
-
|
|
5310
|
+
L,
|
|
5311
|
+
V,
|
|
5312
5312
|
t,
|
|
5313
|
-
|
|
5314
|
-
]),
|
|
5315
|
-
if (
|
|
5316
|
-
|
|
5313
|
+
se
|
|
5314
|
+
]), S((() => {
|
|
5315
|
+
if (ie === void 0) return () => null;
|
|
5316
|
+
ie && H(!0);
|
|
5317
5317
|
let e = setTimeout((() => {
|
|
5318
|
-
|
|
5318
|
+
ve(ie);
|
|
5319
5319
|
}), 10);
|
|
5320
5320
|
return () => {
|
|
5321
5321
|
clearTimeout(e);
|
|
5322
5322
|
};
|
|
5323
|
-
}), [
|
|
5324
|
-
if (
|
|
5325
|
-
if (Fu(
|
|
5323
|
+
}), [ie]), S((() => {
|
|
5324
|
+
if (V !== be.current) {
|
|
5325
|
+
if (Fu(he), be.current = V, V) M?.();
|
|
5326
5326
|
else {
|
|
5327
5327
|
let e = ((e) => {
|
|
5328
5328
|
let t = e.match(/^([\d.]+)(ms|s)$/);
|
|
@@ -5330,32 +5330,32 @@ var Bu = {
|
|
|
5330
5330
|
let [, n, r] = t;
|
|
5331
5331
|
return Number(n) * (r === "ms" ? 1 : 1e3);
|
|
5332
5332
|
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
5333
|
-
|
|
5334
|
-
|
|
5333
|
+
he.current = setTimeout((() => {
|
|
5334
|
+
H(!1), W(null), N?.();
|
|
5335
5335
|
}), e + 25);
|
|
5336
5336
|
}
|
|
5337
5337
|
}
|
|
5338
|
-
}), [
|
|
5338
|
+
}), [V]);
|
|
5339
5339
|
let je = (e) => {
|
|
5340
|
-
|
|
5341
|
-
}, Me = (e =
|
|
5342
|
-
Fu(
|
|
5340
|
+
_e(((t) => ju(t, e) ? t : e));
|
|
5341
|
+
}, Me = (e = v) => {
|
|
5342
|
+
Fu(pe), ye ? Ae(!0) : pe.current = setTimeout((() => {
|
|
5343
5343
|
Ae(!0);
|
|
5344
5344
|
}), e);
|
|
5345
|
-
}, Ne = (e =
|
|
5346
|
-
Fu(
|
|
5347
|
-
|
|
5345
|
+
}, Ne = (e = y) => {
|
|
5346
|
+
Fu(me), me.current = setTimeout((() => {
|
|
5347
|
+
Ce.current || Ae(!1);
|
|
5348
5348
|
}), e);
|
|
5349
5349
|
}, Pe = (e) => {
|
|
5350
5350
|
if (!e) return;
|
|
5351
5351
|
let t = e.currentTarget ?? e.target;
|
|
5352
|
-
if (!t?.isConnected) return
|
|
5353
|
-
|
|
5352
|
+
if (!t?.isConnected) return R(null), void Se({ current: null });
|
|
5353
|
+
v ? Me() : Ae(!0), R(t), Se({ current: t }), Fu(me);
|
|
5354
5354
|
}, Fe = () => {
|
|
5355
|
-
|
|
5355
|
+
w ? Ne(y || 100) : y ? Ne() : Ae(!1), Fu(pe);
|
|
5356
5356
|
}, Ie = ({ x: e, y: t }) => {
|
|
5357
5357
|
Du({
|
|
5358
|
-
place:
|
|
5358
|
+
place: U?.place ?? l,
|
|
5359
5359
|
offset: u,
|
|
5360
5360
|
elementReference: { getBoundingClientRect: () => ({
|
|
5361
5361
|
x: e,
|
|
@@ -5367,12 +5367,12 @@ var Bu = {
|
|
|
5367
5367
|
right: e,
|
|
5368
5368
|
bottom: t
|
|
5369
5369
|
}) },
|
|
5370
|
-
tooltipReference:
|
|
5371
|
-
tooltipArrowReference:
|
|
5372
|
-
strategy:
|
|
5373
|
-
middlewares:
|
|
5374
|
-
border:
|
|
5375
|
-
arrowSize:
|
|
5370
|
+
tooltipReference: B.current,
|
|
5371
|
+
tooltipArrowReference: fe.current,
|
|
5372
|
+
strategy: h,
|
|
5373
|
+
middlewares: g,
|
|
5374
|
+
border: ce,
|
|
5375
|
+
arrowSize: ue
|
|
5376
5376
|
}).then(((e) => {
|
|
5377
5377
|
je(e);
|
|
5378
5378
|
}));
|
|
@@ -5382,58 +5382,58 @@ var Bu = {
|
|
|
5382
5382
|
x: t.clientX,
|
|
5383
5383
|
y: t.clientY
|
|
5384
5384
|
};
|
|
5385
|
-
Ie(n),
|
|
5385
|
+
Ie(n), G.current = n;
|
|
5386
5386
|
}, Re = (e) => {
|
|
5387
|
-
if (!
|
|
5387
|
+
if (!V) return;
|
|
5388
5388
|
let t = e.target;
|
|
5389
|
-
t.isConnected && (
|
|
5389
|
+
t.isConnected && (B.current?.contains(t) || [document.querySelector(`[id='${s}']`), ...we].some(((e) => e?.contains(t))) || (Ae(!1), Fu(pe)));
|
|
5390
5390
|
}, ze = ku(Pe, 50, !0), Be = ku(Fe, 50, !0), Ve = (e) => {
|
|
5391
5391
|
Be.cancel(), ze(e);
|
|
5392
5392
|
}, He = () => {
|
|
5393
5393
|
ze.cancel(), Be();
|
|
5394
|
-
}, Ue =
|
|
5395
|
-
let e =
|
|
5396
|
-
e ? Ie(e) :
|
|
5397
|
-
place:
|
|
5394
|
+
}, Ue = I((() => {
|
|
5395
|
+
let e = U?.position ?? ne;
|
|
5396
|
+
e ? Ie(e) : b ? G.current && Ie(G.current) : L != null && L.isConnected && Du({
|
|
5397
|
+
place: U?.place ?? l,
|
|
5398
5398
|
offset: u,
|
|
5399
|
-
elementReference:
|
|
5400
|
-
tooltipReference:
|
|
5401
|
-
tooltipArrowReference:
|
|
5402
|
-
strategy:
|
|
5403
|
-
middlewares:
|
|
5404
|
-
border:
|
|
5405
|
-
arrowSize:
|
|
5399
|
+
elementReference: L,
|
|
5400
|
+
tooltipReference: B.current,
|
|
5401
|
+
tooltipArrowReference: fe.current,
|
|
5402
|
+
strategy: h,
|
|
5403
|
+
middlewares: g,
|
|
5404
|
+
border: ce,
|
|
5405
|
+
arrowSize: ue
|
|
5406
5406
|
}).then(((e) => {
|
|
5407
|
-
|
|
5407
|
+
Ee.current && je(e);
|
|
5408
5408
|
}));
|
|
5409
5409
|
}), [
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5410
|
+
V,
|
|
5411
|
+
L,
|
|
5412
|
+
P,
|
|
5413
|
+
te,
|
|
5414
5414
|
l,
|
|
5415
|
-
|
|
5415
|
+
U?.place,
|
|
5416
5416
|
u,
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5417
|
+
h,
|
|
5418
|
+
ne,
|
|
5419
|
+
U?.position,
|
|
5420
|
+
b,
|
|
5421
|
+
ue
|
|
5422
5422
|
]);
|
|
5423
|
-
|
|
5423
|
+
S((() => {
|
|
5424
5424
|
var e, t;
|
|
5425
|
-
let n = new Set(
|
|
5426
|
-
|
|
5427
|
-
|
|
5425
|
+
let n = new Set(xe);
|
|
5426
|
+
we.forEach(((e) => {
|
|
5427
|
+
re != null && re(e) || n.add({ current: e });
|
|
5428
5428
|
}));
|
|
5429
5429
|
let r = document.querySelector(`[id='${s}']`);
|
|
5430
|
-
r && !(
|
|
5430
|
+
r && !(re != null && re(r)) && n.add({ current: r });
|
|
5431
5431
|
let i = () => {
|
|
5432
5432
|
Ae(!1);
|
|
5433
|
-
}, a = Nu(
|
|
5433
|
+
}, a = Nu(L), o = Nu(B.current);
|
|
5434
5434
|
q.scroll && (window.addEventListener("scroll", i), a?.addEventListener("scroll", i), o?.addEventListener("scroll", i));
|
|
5435
5435
|
let c = null;
|
|
5436
|
-
q.resize ? window.addEventListener("resize", i) :
|
|
5436
|
+
q.resize ? window.addEventListener("resize", i) : L && B.current && (c = m(L, B.current, Ue, {
|
|
5437
5437
|
ancestorResize: !0,
|
|
5438
5438
|
elementResize: !0,
|
|
5439
5439
|
layoutShift: !0
|
|
@@ -5442,56 +5442,56 @@ var Bu = {
|
|
|
5442
5442
|
e.key === "Escape" && Ae(!1);
|
|
5443
5443
|
};
|
|
5444
5444
|
q.escape && window.addEventListener("keydown", l), q.clickOutsideAnchor && window.addEventListener("click", Re);
|
|
5445
|
-
let u = [], d = (e) => !!(e?.target &&
|
|
5446
|
-
|
|
5445
|
+
let u = [], d = (e) => !!(e?.target && L?.contains(e.target)), f = (e) => {
|
|
5446
|
+
V && d(e) || Pe(e);
|
|
5447
5447
|
}, p = (e) => {
|
|
5448
|
-
|
|
5449
|
-
},
|
|
5448
|
+
V && d(e) && Fe();
|
|
5449
|
+
}, h = [
|
|
5450
5450
|
"mouseover",
|
|
5451
5451
|
"mouseout",
|
|
5452
5452
|
"mouseenter",
|
|
5453
5453
|
"mouseleave",
|
|
5454
5454
|
"focus",
|
|
5455
5455
|
"blur"
|
|
5456
|
-
],
|
|
5456
|
+
], g = [
|
|
5457
5457
|
"click",
|
|
5458
5458
|
"dblclick",
|
|
5459
5459
|
"mousedown",
|
|
5460
5460
|
"mouseup"
|
|
5461
5461
|
];
|
|
5462
5462
|
Object.entries(K).forEach((([e, t]) => {
|
|
5463
|
-
t && (
|
|
5463
|
+
t && (h.includes(e) ? u.push({
|
|
5464
5464
|
event: e,
|
|
5465
5465
|
listener: Ve
|
|
5466
|
-
}) :
|
|
5466
|
+
}) : g.includes(e) && u.push({
|
|
5467
5467
|
event: e,
|
|
5468
5468
|
listener: f
|
|
5469
5469
|
}));
|
|
5470
5470
|
})), Object.entries(ke).forEach((([e, t]) => {
|
|
5471
|
-
t && (
|
|
5471
|
+
t && (h.includes(e) ? u.push({
|
|
5472
5472
|
event: e,
|
|
5473
5473
|
listener: He
|
|
5474
|
-
}) :
|
|
5474
|
+
}) : g.includes(e) && u.push({
|
|
5475
5475
|
event: e,
|
|
5476
5476
|
listener: p
|
|
5477
5477
|
}));
|
|
5478
|
-
})),
|
|
5478
|
+
})), b && u.push({
|
|
5479
5479
|
event: "pointermove",
|
|
5480
5480
|
listener: Le
|
|
5481
5481
|
});
|
|
5482
|
-
let
|
|
5483
|
-
|
|
5484
|
-
},
|
|
5485
|
-
|
|
5486
|
-
}, y =
|
|
5487
|
-
return y && ((e =
|
|
5482
|
+
let _ = () => {
|
|
5483
|
+
Ce.current = !0;
|
|
5484
|
+
}, v = () => {
|
|
5485
|
+
Ce.current = !1, Fe();
|
|
5486
|
+
}, y = w && (ke.mouseout || ke.mouseleave);
|
|
5487
|
+
return y && ((e = B.current) == null || e.addEventListener("mouseover", _), (t = B.current) == null || t.addEventListener("mouseout", v)), u.forEach((({ event: e, listener: t }) => {
|
|
5488
5488
|
n.forEach(((n) => {
|
|
5489
5489
|
var r;
|
|
5490
5490
|
(r = n.current) == null || r.addEventListener(e, t);
|
|
5491
5491
|
}));
|
|
5492
5492
|
})), () => {
|
|
5493
5493
|
var e, t;
|
|
5494
|
-
q.scroll && (window.removeEventListener("scroll", i), a?.removeEventListener("scroll", i), o?.removeEventListener("scroll", i)), q.resize ? window.removeEventListener("resize", i) : c?.(), q.clickOutsideAnchor && window.removeEventListener("click", Re), q.escape && window.removeEventListener("keydown", l), y && ((e =
|
|
5494
|
+
q.scroll && (window.removeEventListener("scroll", i), a?.removeEventListener("scroll", i), o?.removeEventListener("scroll", i)), q.resize ? window.removeEventListener("resize", i) : c?.(), q.clickOutsideAnchor && window.removeEventListener("click", Re), q.escape && window.removeEventListener("keydown", l), y && ((e = B.current) == null || e.removeEventListener("mouseover", _), (t = B.current) == null || t.removeEventListener("mouseout", v)), u.forEach((({ event: e, listener: t }) => {
|
|
5495
5495
|
n.forEach(((n) => {
|
|
5496
5496
|
var r;
|
|
5497
5497
|
(r = n.current) == null || r.removeEventListener(e, t);
|
|
@@ -5499,37 +5499,37 @@ var Bu = {
|
|
|
5499
5499
|
}));
|
|
5500
5500
|
};
|
|
5501
5501
|
}), [
|
|
5502
|
-
|
|
5502
|
+
L,
|
|
5503
5503
|
Ue,
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5504
|
+
ye,
|
|
5505
|
+
xe,
|
|
5506
|
+
we,
|
|
5507
|
+
D,
|
|
5508
5508
|
O,
|
|
5509
5509
|
k,
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
]),
|
|
5514
|
-
let e =
|
|
5510
|
+
De,
|
|
5511
|
+
v,
|
|
5512
|
+
y
|
|
5513
|
+
]), S((() => {
|
|
5514
|
+
let e = U?.anchorSelect ?? c ?? "";
|
|
5515
5515
|
!e && t && (e = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
|
|
5516
5516
|
let n = new MutationObserver(((n) => {
|
|
5517
5517
|
let r = [], i = [];
|
|
5518
5518
|
n.forEach(((n) => {
|
|
5519
5519
|
if (n.type === "attributes" && n.attributeName === "data-tooltip-id" && (n.target.getAttribute("data-tooltip-id") === t ? r.push(n.target) : n.oldValue === t && i.push(n.target)), n.type === "childList") {
|
|
5520
|
-
if (
|
|
5520
|
+
if (L) {
|
|
5521
5521
|
let t = [...n.removedNodes].filter(((e) => e.nodeType === 1));
|
|
5522
5522
|
if (e) try {
|
|
5523
5523
|
i.push(...t.filter(((t) => t.matches(e)))), i.push(...t.flatMap(((t) => [...t.querySelectorAll(e)])));
|
|
5524
5524
|
} catch {}
|
|
5525
|
-
t.some(((e) => !!(e?.contains)?.call(e,
|
|
5525
|
+
t.some(((e) => !!(e?.contains)?.call(e, L) && (H(!1), Ae(!1), R(null), Fu(pe), Fu(me), !0)));
|
|
5526
5526
|
}
|
|
5527
5527
|
if (e) try {
|
|
5528
5528
|
let t = [...n.addedNodes].filter(((e) => e.nodeType === 1));
|
|
5529
5529
|
r.push(...t.filter(((t) => t.matches(e)))), r.push(...t.flatMap(((t) => [...t.querySelectorAll(e)])));
|
|
5530
5530
|
} catch {}
|
|
5531
5531
|
}
|
|
5532
|
-
})), (r.length || i.length) &&
|
|
5532
|
+
})), (r.length || i.length) && Te(((e) => [...e.filter(((e) => !i.includes(e))), ...r]));
|
|
5533
5533
|
}));
|
|
5534
5534
|
return n.observe(document.body, {
|
|
5535
5535
|
childList: !0,
|
|
@@ -5543,43 +5543,43 @@ var Bu = {
|
|
|
5543
5543
|
}), [
|
|
5544
5544
|
t,
|
|
5545
5545
|
c,
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
]),
|
|
5546
|
+
U?.anchorSelect,
|
|
5547
|
+
L
|
|
5548
|
+
]), S((() => {
|
|
5549
5549
|
Ue();
|
|
5550
|
-
}), [Ue]),
|
|
5551
|
-
if (!
|
|
5550
|
+
}), [Ue]), S((() => {
|
|
5551
|
+
if (!F?.current) return () => null;
|
|
5552
5552
|
let e = new ResizeObserver((() => {
|
|
5553
5553
|
setTimeout((() => Ue()));
|
|
5554
5554
|
}));
|
|
5555
|
-
return e.observe(
|
|
5555
|
+
return e.observe(F.current), () => {
|
|
5556
5556
|
e.disconnect();
|
|
5557
5557
|
};
|
|
5558
|
-
}), [
|
|
5559
|
-
let e = document.querySelector(`[id='${s}']`), t = [...
|
|
5560
|
-
|
|
5558
|
+
}), [P, F?.current]), S((() => {
|
|
5559
|
+
let e = document.querySelector(`[id='${s}']`), t = [...we, e];
|
|
5560
|
+
L && t.includes(L) || R(we[0] ?? e);
|
|
5561
5561
|
}), [
|
|
5562
5562
|
s,
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
]),
|
|
5566
|
-
Fu(
|
|
5567
|
-
})), []),
|
|
5568
|
-
let e =
|
|
5563
|
+
we,
|
|
5564
|
+
L
|
|
5565
|
+
]), S((() => (ae && Ae(!0), () => {
|
|
5566
|
+
Fu(pe), Fu(me);
|
|
5567
|
+
})), []), S((() => {
|
|
5568
|
+
let e = U?.anchorSelect ?? c;
|
|
5569
5569
|
if (!e && t && (e = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), e) try {
|
|
5570
5570
|
let t = Array.from(document.querySelectorAll(e));
|
|
5571
|
-
|
|
5571
|
+
Te(t);
|
|
5572
5572
|
} catch {
|
|
5573
|
-
|
|
5573
|
+
Te([]);
|
|
5574
5574
|
}
|
|
5575
5575
|
}), [
|
|
5576
5576
|
t,
|
|
5577
5577
|
c,
|
|
5578
|
-
|
|
5579
|
-
]),
|
|
5580
|
-
|
|
5581
|
-
}), [
|
|
5582
|
-
let We =
|
|
5578
|
+
U?.anchorSelect
|
|
5579
|
+
]), S((() => {
|
|
5580
|
+
pe.current && (Fu(pe), Me(v));
|
|
5581
|
+
}), [v]);
|
|
5582
|
+
let We = U?.content ?? P, Ge = V && Object.keys(ge.tooltipStyles).length > 0;
|
|
5583
5583
|
return i(e, (() => ({
|
|
5584
5584
|
open: (e) => {
|
|
5585
5585
|
if (e?.anchorSelect) try {
|
|
@@ -5588,75 +5588,75 @@ var Bu = {
|
|
|
5588
5588
|
console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`);
|
|
5589
5589
|
return;
|
|
5590
5590
|
}
|
|
5591
|
-
|
|
5591
|
+
W(e ?? null), e?.delay ? Me(e.delay) : Ae(!0);
|
|
5592
5592
|
},
|
|
5593
5593
|
close: (e) => {
|
|
5594
5594
|
e?.delay ? Ne(e.delay) : Ae(!1);
|
|
5595
5595
|
},
|
|
5596
|
-
activeAnchor:
|
|
5597
|
-
place:
|
|
5598
|
-
isOpen: !!(
|
|
5599
|
-
}))),
|
|
5596
|
+
activeAnchor: L,
|
|
5597
|
+
place: ge.place,
|
|
5598
|
+
isOpen: !!(ye && !x && We && Ge)
|
|
5599
|
+
}))), ye && !x && We ? a.createElement(_, {
|
|
5600
5600
|
id: t,
|
|
5601
|
-
role:
|
|
5602
|
-
className: (0, Su.default)("react-tooltip", Bu.tooltip, Vu.tooltip, Vu[
|
|
5601
|
+
role: de,
|
|
5602
|
+
className: (0, Su.default)("react-tooltip", Bu.tooltip, Vu.tooltip, Vu[o], n, `react-tooltip__place-${ge.place}`, Bu[Ge ? "show" : "closing"], Ge ? "react-tooltip__show" : "react-tooltip__closing", h === "fixed" && Bu.fixed, w && Bu.clickable),
|
|
5603
5603
|
onTransitionEnd: (e) => {
|
|
5604
|
-
Fu(
|
|
5604
|
+
Fu(he), V || e.propertyName !== "opacity" || (H(!1), W(null), N?.());
|
|
5605
5605
|
},
|
|
5606
5606
|
style: {
|
|
5607
|
-
...
|
|
5608
|
-
...
|
|
5609
|
-
opacity:
|
|
5607
|
+
...te,
|
|
5608
|
+
...ge.tooltipStyles,
|
|
5609
|
+
opacity: z !== void 0 && Ge ? z : void 0
|
|
5610
5610
|
},
|
|
5611
|
-
ref:
|
|
5612
|
-
},
|
|
5613
|
-
className: (0, Su.default)("react-tooltip-arrow", Bu.arrow, Vu.arrow, r,
|
|
5611
|
+
ref: B
|
|
5612
|
+
}, a.createElement(_, { className: (0, Su.default)("react-tooltip-content-wrapper", Bu.content, Vu.content) }, We), a.createElement(_, {
|
|
5613
|
+
className: (0, Su.default)("react-tooltip-arrow", Bu.arrow, Vu.arrow, r, C && Bu.noArrow),
|
|
5614
5614
|
style: {
|
|
5615
|
-
...
|
|
5616
|
-
background:
|
|
5617
|
-
"--rt-arrow-size": `${
|
|
5615
|
+
...ge.tooltipArrowStyles,
|
|
5616
|
+
background: le ? `linear-gradient(to right bottom, transparent 50%, ${le} 50%)` : void 0,
|
|
5617
|
+
"--rt-arrow-size": `${ue}px`
|
|
5618
5618
|
},
|
|
5619
|
-
ref:
|
|
5619
|
+
ref: fe
|
|
5620
5620
|
})) : null;
|
|
5621
|
-
}, Uu = ({ content: e }) =>
|
|
5622
|
-
let [
|
|
5621
|
+
}, Uu = ({ content: e }) => a.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), Wu = a.forwardRef((({ id: e, anchorId: t, anchorSelect: n, content: r, html: i, render: o, className: s, classNameArrow: c, variant: l = "dark", place: u = "top", offset: d = 10, wrapper: f = "div", children: m = null, events: h = ["hover"], openOnClick: g = !1, positionStrategy: _ = "absolute", middlewares: v, delayShow: y = 0, delayHide: b = 0, float: x = !1, hidden: C = !1, noArrow: w = !1, clickable: T = !1, closeOnEsc: E = !1, closeOnScroll: ee = !1, closeOnResize: D = !1, openEvents: O, closeEvents: k, globalCloseEvents: j, imperativeModeOnly: te = !1, style: ne, position: M, isOpen: N, defaultIsOpen: re = !1, disableStyleInjection: P = !1, border: F, opacity: I, arrowColor: ie, arrowSize: ae, setIsOpen: oe, afterShow: se, afterHide: L, disableTooltip: R, role: ce = "tooltip" }, z) => {
|
|
5622
|
+
let [le, ue] = A(r), [de, B] = A(i), [fe, pe] = A(u), [me, he] = A(l), [ge, _e] = A(d), [V, ve] = A(y), [ye, H] = A(b), [U, W] = A(x), [be, G] = A(C), [xe, Se] = A(f), [Ce, we] = A(h), [Te, Ee] = A(_), [De, Oe] = A(null), [K, ke] = A(null), q = p(null), Ae = p(P), { anchorRefs: je, activeAnchor: Me } = zu(e), Ne = (e) => e?.getAttributeNames().reduce(((t, n) => (n.startsWith("data-tooltip-") && (t[n.replace(/^data-tooltip-/, "")] = e?.getAttribute(n) ?? null), t)), {}), Pe = (e) => {
|
|
5623
5623
|
let t = {
|
|
5624
5624
|
place: (e) => {
|
|
5625
|
-
|
|
5625
|
+
pe(e ?? u);
|
|
5626
5626
|
},
|
|
5627
5627
|
content: (e) => {
|
|
5628
|
-
|
|
5628
|
+
ue(e ?? r);
|
|
5629
5629
|
},
|
|
5630
5630
|
html: (e) => {
|
|
5631
|
-
|
|
5631
|
+
B(e ?? i);
|
|
5632
5632
|
},
|
|
5633
5633
|
variant: (e) => {
|
|
5634
|
-
|
|
5634
|
+
he(e ?? l);
|
|
5635
5635
|
},
|
|
5636
5636
|
offset: (e) => {
|
|
5637
|
-
|
|
5637
|
+
_e(e === null ? d : Number(e));
|
|
5638
5638
|
},
|
|
5639
5639
|
wrapper: (e) => {
|
|
5640
|
-
|
|
5640
|
+
Se(e ?? f);
|
|
5641
5641
|
},
|
|
5642
5642
|
events: (e) => {
|
|
5643
5643
|
let t = e?.split(" ");
|
|
5644
|
-
|
|
5644
|
+
we(t ?? h);
|
|
5645
5645
|
},
|
|
5646
5646
|
"position-strategy": (e) => {
|
|
5647
|
-
|
|
5647
|
+
Ee(e ?? _);
|
|
5648
5648
|
},
|
|
5649
5649
|
"delay-show": (e) => {
|
|
5650
|
-
|
|
5650
|
+
ve(e === null ? y : Number(e));
|
|
5651
5651
|
},
|
|
5652
5652
|
"delay-hide": (e) => {
|
|
5653
|
-
|
|
5653
|
+
H(e === null ? b : Number(e));
|
|
5654
5654
|
},
|
|
5655
5655
|
float: (e) => {
|
|
5656
|
-
|
|
5656
|
+
W(e === null ? x : e === "true");
|
|
5657
5657
|
},
|
|
5658
5658
|
hidden: (e) => {
|
|
5659
|
-
|
|
5659
|
+
G(e === null ? C : e === "true");
|
|
5660
5660
|
},
|
|
5661
5661
|
"class-name": (e) => {
|
|
5662
5662
|
Oe(e);
|
|
@@ -5667,34 +5667,34 @@ var Bu = {
|
|
|
5667
5667
|
(r = t[e]) == null || r.call(t, n);
|
|
5668
5668
|
}));
|
|
5669
5669
|
};
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
}), [r]),
|
|
5673
|
-
|
|
5674
|
-
}), [i]),
|
|
5675
|
-
|
|
5676
|
-
}), [u]),
|
|
5677
|
-
|
|
5678
|
-
}), [l]),
|
|
5679
|
-
|
|
5680
|
-
}), [d]),
|
|
5681
|
-
|
|
5682
|
-
}), [
|
|
5683
|
-
|
|
5684
|
-
}), [
|
|
5685
|
-
|
|
5686
|
-
}), [
|
|
5687
|
-
|
|
5688
|
-
}), [
|
|
5689
|
-
|
|
5690
|
-
}), [
|
|
5691
|
-
Ae.current !==
|
|
5692
|
-
}), [
|
|
5670
|
+
S((() => {
|
|
5671
|
+
ue(r);
|
|
5672
|
+
}), [r]), S((() => {
|
|
5673
|
+
B(i);
|
|
5674
|
+
}), [i]), S((() => {
|
|
5675
|
+
pe(u);
|
|
5676
|
+
}), [u]), S((() => {
|
|
5677
|
+
he(l);
|
|
5678
|
+
}), [l]), S((() => {
|
|
5679
|
+
_e(d);
|
|
5680
|
+
}), [d]), S((() => {
|
|
5681
|
+
ve(y);
|
|
5682
|
+
}), [y]), S((() => {
|
|
5683
|
+
H(b);
|
|
5684
|
+
}), [b]), S((() => {
|
|
5685
|
+
W(x);
|
|
5686
|
+
}), [x]), S((() => {
|
|
5687
|
+
G(C);
|
|
5688
|
+
}), [C]), S((() => {
|
|
5689
|
+
Ee(_);
|
|
5690
|
+
}), [_]), S((() => {
|
|
5691
|
+
Ae.current !== P && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
5692
|
+
}), [P]), S((() => {
|
|
5693
5693
|
typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: {
|
|
5694
|
-
disableCore:
|
|
5695
|
-
disableBase:
|
|
5694
|
+
disableCore: P === "core",
|
|
5695
|
+
disableBase: P
|
|
5696
5696
|
} }));
|
|
5697
|
-
}), []),
|
|
5697
|
+
}), []), S((() => {
|
|
5698
5698
|
let r = new Set(je), i = n;
|
|
5699
5699
|
if (!i && e && (i = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`), i) try {
|
|
5700
5700
|
document.querySelectorAll(i).forEach(((e) => {
|
|
@@ -5729,71 +5729,71 @@ var Bu = {
|
|
|
5729
5729
|
K,
|
|
5730
5730
|
t,
|
|
5731
5731
|
n
|
|
5732
|
-
]),
|
|
5733
|
-
|
|
5732
|
+
]), S((() => {
|
|
5733
|
+
ne != null && ne.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), F && !Ou("border", `${F}`) && console.warn(`[react-tooltip] "${F}" is not a valid \`border\`.`), ne != null && ne.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), I && !Ou("opacity", `${I}`) && console.warn(`[react-tooltip] "${I}" is not a valid \`opacity\`.`);
|
|
5734
5734
|
}), []);
|
|
5735
|
-
let Fe =
|
|
5736
|
-
if (
|
|
5737
|
-
let e =
|
|
5738
|
-
content: K?.getAttribute("data-tooltip-content") ||
|
|
5735
|
+
let Fe = m, Ie = p(null);
|
|
5736
|
+
if (o) {
|
|
5737
|
+
let e = o({
|
|
5738
|
+
content: K?.getAttribute("data-tooltip-content") || le || null,
|
|
5739
5739
|
activeAnchor: K
|
|
5740
5740
|
});
|
|
5741
|
-
Fe = e ?
|
|
5741
|
+
Fe = e ? a.createElement("div", {
|
|
5742
5742
|
ref: Ie,
|
|
5743
5743
|
className: "react-tooltip-content-wrapper"
|
|
5744
5744
|
}, e) : null;
|
|
5745
|
-
} else
|
|
5746
|
-
|
|
5745
|
+
} else le && (Fe = le);
|
|
5746
|
+
de && (Fe = a.createElement(Uu, { content: de }));
|
|
5747
5747
|
let Le = {
|
|
5748
|
-
forwardRef:
|
|
5748
|
+
forwardRef: z,
|
|
5749
5749
|
id: e,
|
|
5750
5750
|
anchorId: t,
|
|
5751
5751
|
anchorSelect: n,
|
|
5752
|
-
className: (0, Su.default)(s,
|
|
5752
|
+
className: (0, Su.default)(s, De),
|
|
5753
5753
|
classNameArrow: c,
|
|
5754
5754
|
content: Fe,
|
|
5755
5755
|
contentWrapperRef: Ie,
|
|
5756
|
-
place:
|
|
5757
|
-
variant:
|
|
5758
|
-
offset:
|
|
5759
|
-
wrapper:
|
|
5760
|
-
events:
|
|
5761
|
-
openOnClick:
|
|
5762
|
-
positionStrategy:
|
|
5763
|
-
middlewares:
|
|
5764
|
-
delayShow:
|
|
5765
|
-
delayHide:
|
|
5766
|
-
float:
|
|
5767
|
-
hidden:
|
|
5768
|
-
noArrow:
|
|
5769
|
-
clickable:
|
|
5770
|
-
closeOnEsc:
|
|
5756
|
+
place: fe,
|
|
5757
|
+
variant: me,
|
|
5758
|
+
offset: ge,
|
|
5759
|
+
wrapper: xe,
|
|
5760
|
+
events: Ce,
|
|
5761
|
+
openOnClick: g,
|
|
5762
|
+
positionStrategy: Te,
|
|
5763
|
+
middlewares: v,
|
|
5764
|
+
delayShow: V,
|
|
5765
|
+
delayHide: ye,
|
|
5766
|
+
float: U,
|
|
5767
|
+
hidden: be,
|
|
5768
|
+
noArrow: w,
|
|
5769
|
+
clickable: T,
|
|
5770
|
+
closeOnEsc: E,
|
|
5771
5771
|
closeOnScroll: ee,
|
|
5772
|
-
closeOnResize:
|
|
5772
|
+
closeOnResize: D,
|
|
5773
5773
|
openEvents: O,
|
|
5774
5774
|
closeEvents: k,
|
|
5775
|
-
globalCloseEvents:
|
|
5776
|
-
imperativeModeOnly:
|
|
5777
|
-
style:
|
|
5778
|
-
position:
|
|
5779
|
-
isOpen:
|
|
5780
|
-
defaultIsOpen:
|
|
5781
|
-
border:
|
|
5782
|
-
opacity:
|
|
5783
|
-
arrowColor:
|
|
5784
|
-
arrowSize:
|
|
5785
|
-
setIsOpen:
|
|
5786
|
-
afterShow:
|
|
5787
|
-
afterHide:
|
|
5788
|
-
disableTooltip:
|
|
5775
|
+
globalCloseEvents: j,
|
|
5776
|
+
imperativeModeOnly: te,
|
|
5777
|
+
style: ne,
|
|
5778
|
+
position: M,
|
|
5779
|
+
isOpen: N,
|
|
5780
|
+
defaultIsOpen: re,
|
|
5781
|
+
border: F,
|
|
5782
|
+
opacity: I,
|
|
5783
|
+
arrowColor: ie,
|
|
5784
|
+
arrowSize: ae,
|
|
5785
|
+
setIsOpen: oe,
|
|
5786
|
+
afterShow: se,
|
|
5787
|
+
afterHide: L,
|
|
5788
|
+
disableTooltip: R,
|
|
5789
5789
|
activeAnchor: K,
|
|
5790
5790
|
previousActiveAnchor: q.current,
|
|
5791
5791
|
setActiveAnchor: (e) => {
|
|
5792
5792
|
ke(((t) => (e != null && e.isSameNode(t) || (q.current = t), e)));
|
|
5793
5793
|
},
|
|
5794
|
-
role:
|
|
5794
|
+
role: ce
|
|
5795
5795
|
};
|
|
5796
|
-
return
|
|
5796
|
+
return a.createElement(Hu, { ...Le });
|
|
5797
5797
|
}));
|
|
5798
5798
|
//#endregion
|
|
5799
5799
|
//#region node_modules/@banou/media-player/dist/index.js
|
|
@@ -5805,7 +5805,7 @@ typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", ((
|
|
|
5805
5805
|
css: "\n.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;width:max-content}.styles-module_content__ydYdI{background:inherit;border-radius:inherit;padding:8px 16px}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",
|
|
5806
5806
|
type: "base"
|
|
5807
5807
|
});
|
|
5808
|
-
})),
|
|
5808
|
+
})), M();
|
|
5809
5809
|
var Gu = {
|
|
5810
5810
|
indexes: [],
|
|
5811
5811
|
chapters: [],
|
|
@@ -5883,30 +5883,30 @@ var Gu = {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
return t.length ? t.join("\n") : void 0;
|
|
5885
5885
|
}, id = (e, t, n) => {
|
|
5886
|
-
let r = $(), { read: i, size: a, publicPath: o = "", libavWorkerUrl: s = "", jassubWorkerUrl: c = "", jassubWasmUrl: l = "", jassubLegacyWasmUrl: u, defaultFontUrl: d, bufferSize: f, autoplay:
|
|
5887
|
-
|
|
5888
|
-
let [
|
|
5886
|
+
let r = $(), { read: i, size: a, publicPath: o = "", libavWorkerUrl: s = "", jassubWorkerUrl: c = "", jassubWasmUrl: l = "", jassubLegacyWasmUrl: u, defaultFontUrl: d, bufferSize: f, autoplay: m = !1, chapters: h, seekPrepareBudgetMs: g = ed } = n ?? {}, _ = p(h);
|
|
5887
|
+
_.current = h;
|
|
5888
|
+
let [v, y] = A(void 0), [b, x] = A(0), C = p({
|
|
5889
5889
|
count: 0,
|
|
5890
5890
|
at: 0
|
|
5891
|
-
}),
|
|
5892
|
-
|
|
5891
|
+
}), w = p(void 0);
|
|
5892
|
+
S(() => (C.current = {
|
|
5893
5893
|
count: 0,
|
|
5894
5894
|
at: 0
|
|
5895
5895
|
}, r.setSourceState({ playbackErrors: [] }), () => {
|
|
5896
|
-
|
|
5896
|
+
w.current && clearTimeout(w.current);
|
|
5897
5897
|
}), [a]);
|
|
5898
|
-
let
|
|
5899
|
-
|
|
5900
|
-
let O =
|
|
5898
|
+
let T = p(null), E = p(null), ee = p(!1), D = p(i);
|
|
5899
|
+
D.current = i;
|
|
5900
|
+
let O = p(n?.onSeek);
|
|
5901
5901
|
O.current = n?.onSeek;
|
|
5902
|
-
let k =
|
|
5902
|
+
let k = p(n?.onPlaybackError);
|
|
5903
5903
|
k.current = n?.onPlaybackError;
|
|
5904
|
-
let
|
|
5904
|
+
let j = I((e) => {
|
|
5905
5905
|
let t = typeof e == "number" ? e : void 0;
|
|
5906
|
-
ee.current = !0, r.setSourceState({ selectedSubtitleTrack: t }),
|
|
5907
|
-
}, [r]),
|
|
5908
|
-
let t =
|
|
5909
|
-
if (!t ||
|
|
5906
|
+
ee.current = !0, r.setSourceState({ selectedSubtitleTrack: t }), T.current?.selectSubtitleStream(t);
|
|
5907
|
+
}, [r]), te = I((e) => {
|
|
5908
|
+
let t = T.current;
|
|
5909
|
+
if (!t || g <= 0) {
|
|
5910
5910
|
r.seek(e);
|
|
5911
5911
|
return;
|
|
5912
5912
|
}
|
|
@@ -5924,32 +5924,32 @@ var Gu = {
|
|
|
5924
5924
|
c?.addEventListener("seeked", l);
|
|
5925
5925
|
let d = setTimeout(() => {
|
|
5926
5926
|
o = "deadline", s();
|
|
5927
|
-
},
|
|
5927
|
+
}, g);
|
|
5928
5928
|
t.prepareSeek(e).catch(() => {}).finally(() => {
|
|
5929
5929
|
clearTimeout(d), s();
|
|
5930
5930
|
});
|
|
5931
|
-
}, [r,
|
|
5932
|
-
typeof e == "number" && (r.setSourceState({ selectedAudioTrack: e }),
|
|
5933
|
-
}, [r]),
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
selectSubtitleTrack:
|
|
5937
|
-
selectAudioTrack:
|
|
5938
|
-
requestSeek:
|
|
5931
|
+
}, [r, g]), ne = I((e) => {
|
|
5932
|
+
typeof e == "number" && (r.setSourceState({ selectedAudioTrack: e }), y(e));
|
|
5933
|
+
}, [r]), M = $((e) => e.setSourceState);
|
|
5934
|
+
S(() => {
|
|
5935
|
+
M({
|
|
5936
|
+
selectSubtitleTrack: j,
|
|
5937
|
+
selectAudioTrack: ne,
|
|
5938
|
+
requestSeek: te
|
|
5939
5939
|
});
|
|
5940
5940
|
}, [
|
|
5941
|
+
M,
|
|
5941
5942
|
j,
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
]), D(() => {
|
|
5943
|
+
ne,
|
|
5944
|
+
te
|
|
5945
|
+
]), S(() => {
|
|
5946
5946
|
if (!e || !t || !a || !i) return;
|
|
5947
5947
|
let n = !1;
|
|
5948
5948
|
r.setSourceState({
|
|
5949
5949
|
playbackError: null,
|
|
5950
5950
|
ready: !1
|
|
5951
5951
|
});
|
|
5952
|
-
let
|
|
5952
|
+
let p = (t, n) => {
|
|
5953
5953
|
let i = Date.now(), a = nd(t), o = rd(t), s = r.playbackErrors, c = s[s.length - 1];
|
|
5954
5954
|
if (c && c.message === a && c.detail === o && c.recovered === n) {
|
|
5955
5955
|
let e = {
|
|
@@ -5973,17 +5973,17 @@ var Gu = {
|
|
|
5973
5973
|
}, h = (e) => {
|
|
5974
5974
|
if (n) return;
|
|
5975
5975
|
let t = hs(e);
|
|
5976
|
-
if (
|
|
5976
|
+
if (p(e, t), t) {
|
|
5977
5977
|
let t = performance.now();
|
|
5978
|
-
t -
|
|
5978
|
+
t - C.current.at > $u && (C.current = {
|
|
5979
5979
|
count: 0,
|
|
5980
5980
|
at: t
|
|
5981
5981
|
});
|
|
5982
|
-
let n = Qu[Math.min(
|
|
5983
|
-
|
|
5984
|
-
count:
|
|
5982
|
+
let n = Qu[Math.min(C.current.count, Qu.length - 1)];
|
|
5983
|
+
C.current = {
|
|
5984
|
+
count: C.current.count + 1,
|
|
5985
5985
|
at: t
|
|
5986
|
-
}, console.warn(`the media element failed; rebuilding the pipeline${n ? ` in ${n}ms` : ""}`, e),
|
|
5986
|
+
}, console.warn(`the media element failed; rebuilding the pipeline${n ? ` in ${n}ms` : ""}`, e), w.current && clearTimeout(w.current), w.current = setTimeout(() => x((e) => e + 1), n);
|
|
5987
5987
|
return;
|
|
5988
5988
|
}
|
|
5989
5989
|
console.error("playback failed", e), r.setSourceState({ playbackError: e }), k.current?.(e);
|
|
@@ -5993,7 +5993,7 @@ var Gu = {
|
|
|
5993
5993
|
let i = await As({
|
|
5994
5994
|
videoElement: e,
|
|
5995
5995
|
subtitleContainer: t,
|
|
5996
|
-
read: (e, t) =>
|
|
5996
|
+
read: (e, t) => D.current(e, t),
|
|
5997
5997
|
length: a,
|
|
5998
5998
|
publicPath: o,
|
|
5999
5999
|
libavWorkerUrl: s,
|
|
@@ -6002,12 +6002,12 @@ var Gu = {
|
|
|
6002
6002
|
jassubLegacyWasmUrl: u,
|
|
6003
6003
|
defaultFontUrl: d,
|
|
6004
6004
|
bufferSize: f,
|
|
6005
|
-
audioStreamIndex:
|
|
6005
|
+
audioStreamIndex: v,
|
|
6006
6006
|
onReady: () => {
|
|
6007
6007
|
if (n) return;
|
|
6008
6008
|
r.setSourceState({ ready: !0 });
|
|
6009
|
-
let t =
|
|
6010
|
-
|
|
6009
|
+
let t = E.current;
|
|
6010
|
+
E.current = null, t && t.size === a && t.time > 0 && (e.currentTime = t.time), m && e.play().catch(() => {});
|
|
6011
6011
|
},
|
|
6012
6012
|
onError: h,
|
|
6013
6013
|
onRecovered: () => {
|
|
@@ -6031,20 +6031,20 @@ var Gu = {
|
|
|
6031
6031
|
i.destroy();
|
|
6032
6032
|
return;
|
|
6033
6033
|
}
|
|
6034
|
-
|
|
6034
|
+
T.current = i, r.setSourceState({
|
|
6035
6035
|
indexes: i.indexes,
|
|
6036
|
-
chapters:
|
|
6036
|
+
chapters: _.current ?? i.chapters
|
|
6037
6037
|
});
|
|
6038
|
-
let
|
|
6039
|
-
typeof
|
|
6038
|
+
let p = r.selectedSubtitleTrack;
|
|
6039
|
+
typeof p == "number" && i.selectSubtitleStream(p);
|
|
6040
6040
|
} catch (e) {
|
|
6041
6041
|
h(e);
|
|
6042
6042
|
}
|
|
6043
6043
|
})(), () => {
|
|
6044
|
-
n = !0,
|
|
6044
|
+
n = !0, E.current = {
|
|
6045
6045
|
time: e.currentTime,
|
|
6046
6046
|
size: a
|
|
6047
|
-
},
|
|
6047
|
+
}, T.current?.destroy(), T.current = null, r.setSourceState({ ready: !1 });
|
|
6048
6048
|
};
|
|
6049
6049
|
}, [
|
|
6050
6050
|
r,
|
|
@@ -6058,15 +6058,15 @@ var Gu = {
|
|
|
6058
6058
|
u,
|
|
6059
6059
|
d,
|
|
6060
6060
|
f,
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6061
|
+
v,
|
|
6062
|
+
m,
|
|
6063
|
+
b
|
|
6064
6064
|
]);
|
|
6065
6065
|
}, ad = 5e3, od = 6e4, sd = ({ publicPath: e, workerUrl: t, length: n, read: r, downloadedRanges: i }) => {
|
|
6066
|
-
let [a, o] =
|
|
6066
|
+
let [a, o] = A([]), s = p(null), c = p(r);
|
|
6067
6067
|
c.current = r;
|
|
6068
|
-
let l =
|
|
6069
|
-
return u.current = l,
|
|
6068
|
+
let l = g(() => i?.map(({ startByteOffset: e, endByteOffset: t }) => [e, t]), [i?.map(({ startByteOffset: e, endByteOffset: t }) => `${e}-${t}`).join(",")]), u = p(l);
|
|
6069
|
+
return u.current = l, S(() => {
|
|
6070
6070
|
if (!n || !r || !e || !t) return;
|
|
6071
6071
|
let i = !1, a = null, l, d = ad, f = () => {
|
|
6072
6072
|
Bs({
|
|
@@ -6094,17 +6094,17 @@ var Gu = {
|
|
|
6094
6094
|
n,
|
|
6095
6095
|
e,
|
|
6096
6096
|
t
|
|
6097
|
-
]),
|
|
6097
|
+
]), S(() => {
|
|
6098
6098
|
s.current?.update(l);
|
|
6099
6099
|
}, [l]), {
|
|
6100
6100
|
thumbnails: a,
|
|
6101
|
-
requestThumbnail:
|
|
6101
|
+
requestThumbnail: I((e) => {
|
|
6102
6102
|
s.current?.prioritize(e);
|
|
6103
6103
|
}, [])
|
|
6104
6104
|
};
|
|
6105
6105
|
}, cd = (e, t) => {
|
|
6106
|
-
let n =
|
|
6107
|
-
|
|
6106
|
+
let n = p(null), [r, i] = A(!1), [a] = A(() => Js());
|
|
6107
|
+
S(() => {
|
|
6108
6108
|
if (!e || !t || !a) return;
|
|
6109
6109
|
let r = Ys({
|
|
6110
6110
|
video: e,
|
|
@@ -6120,7 +6120,7 @@ var Gu = {
|
|
|
6120
6120
|
t,
|
|
6121
6121
|
a
|
|
6122
6122
|
]);
|
|
6123
|
-
let o =
|
|
6123
|
+
let o = I(() => {
|
|
6124
6124
|
n.current?.toggle().catch((e) => {
|
|
6125
6125
|
console.warn("picture in picture was refused", e);
|
|
6126
6126
|
});
|
|
@@ -6134,16 +6134,16 @@ var Gu = {
|
|
|
6134
6134
|
let t = ud();
|
|
6135
6135
|
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
6136
6136
|
}, fd = () => !!ud()?.matches, pd = () => !1, md = (e, t) => {
|
|
6137
|
-
let [n, r] =
|
|
6137
|
+
let [n, r] = A(!1), [i, a] = A(), o = p(t);
|
|
6138
6138
|
t && (o.current = t);
|
|
6139
|
-
let s =
|
|
6139
|
+
let s = p(!1), c = I((e) => {
|
|
6140
6140
|
s.current !== e && (s.current = e, o.current?.onArmedChange(e));
|
|
6141
|
-
}, []), l =
|
|
6141
|
+
}, []), l = I((t) => {
|
|
6142
6142
|
!e || e.readyState < 1 || e.error || (a(t), c(!0));
|
|
6143
|
-
}, [e, c]), u =
|
|
6143
|
+
}, [e, c]), u = I(() => {
|
|
6144
6144
|
a(void 0), c(!1);
|
|
6145
6145
|
}, [c]), d = !!t && !!e;
|
|
6146
|
-
|
|
6146
|
+
S(() => {
|
|
6147
6147
|
if (!d || !e) return;
|
|
6148
6148
|
let t = () => {
|
|
6149
6149
|
r(!0), u();
|
|
@@ -6156,13 +6156,13 @@ var Gu = {
|
|
|
6156
6156
|
d,
|
|
6157
6157
|
u
|
|
6158
6158
|
]);
|
|
6159
|
-
let f =
|
|
6160
|
-
|
|
6159
|
+
let f = L(dd, fd, pd), [m, h] = A(!1);
|
|
6160
|
+
S(() => {
|
|
6161
6161
|
if (!d) return;
|
|
6162
6162
|
let e = (e) => {
|
|
6163
|
-
e.pointerType === "touch" &&
|
|
6163
|
+
e.pointerType === "touch" && h(!0);
|
|
6164
6164
|
}, t = (e) => {
|
|
6165
|
-
e.pointerType !== "touch" &&
|
|
6165
|
+
e.pointerType !== "touch" && h(!1);
|
|
6166
6166
|
};
|
|
6167
6167
|
return window.addEventListener("pointerdown", e, {
|
|
6168
6168
|
capture: !0,
|
|
@@ -6174,28 +6174,28 @@ var Gu = {
|
|
|
6174
6174
|
window.removeEventListener("pointerdown", e, { capture: !0 }), window.removeEventListener("pointermove", t, { capture: !0 });
|
|
6175
6175
|
};
|
|
6176
6176
|
}, [d]);
|
|
6177
|
-
let
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
}, [
|
|
6181
|
-
let
|
|
6177
|
+
let _ = d && f && !m;
|
|
6178
|
+
S(() => {
|
|
6179
|
+
_ || u();
|
|
6180
|
+
}, [_, u]);
|
|
6181
|
+
let v = I(() => {
|
|
6182
6182
|
Promise.resolve(e?.exitPictureInPicture?.()).catch((e) => {
|
|
6183
6183
|
console.warn("leaving picture in picture was refused", e);
|
|
6184
6184
|
});
|
|
6185
6185
|
}, [e]);
|
|
6186
|
-
return
|
|
6186
|
+
return g(() => _ ? {
|
|
6187
6187
|
active: n,
|
|
6188
6188
|
armed: i,
|
|
6189
6189
|
arm: l,
|
|
6190
6190
|
disarm: u,
|
|
6191
|
-
exit:
|
|
6191
|
+
exit: v
|
|
6192
6192
|
} : null, [
|
|
6193
|
-
|
|
6193
|
+
_,
|
|
6194
6194
|
n,
|
|
6195
6195
|
i,
|
|
6196
6196
|
l,
|
|
6197
6197
|
u,
|
|
6198
|
-
|
|
6198
|
+
v
|
|
6199
6199
|
]);
|
|
6200
6200
|
}, hd = async (e, t, n = {}) => (await e.audioWorklet.addModule(t), new AudioWorkletNode(e, "banou-volume-normalizer", {
|
|
6201
6201
|
channelCountMode: "max",
|
|
@@ -6252,8 +6252,8 @@ var Gu = {
|
|
|
6252
6252
|
};
|
|
6253
6253
|
return gd.set(e, m), m;
|
|
6254
6254
|
}, yd = (e, t, n) => {
|
|
6255
|
-
let r =
|
|
6256
|
-
return
|
|
6255
|
+
let r = p(null), [i, a] = A(!1);
|
|
6256
|
+
return S(() => {
|
|
6257
6257
|
if (e && t) {
|
|
6258
6258
|
if (n && !r.current) {
|
|
6259
6259
|
let i = vd(e, t, { enabled: n });
|
|
@@ -6267,7 +6267,7 @@ var Gu = {
|
|
|
6267
6267
|
e,
|
|
6268
6268
|
t,
|
|
6269
6269
|
n
|
|
6270
|
-
]),
|
|
6270
|
+
]), S(() => () => {
|
|
6271
6271
|
r.current?.release(), r.current = null;
|
|
6272
6272
|
}, [e]), { refused: i };
|
|
6273
6273
|
}, bd = {
|
|
@@ -6297,7 +6297,7 @@ var Gu = {
|
|
|
6297
6297
|
medium: "\n font-weight: 500;\n font-size: calc(0.8 * var(--mp-unit));\n line-height: calc(1.1 * var(--mp-unit));\n @media (min-width: 960px) {\n font-size: calc(1 * var(--mp-unit));\n line-height: calc(1.4 * var(--mp-unit));\n }\n ",
|
|
6298
6298
|
regular: "\n font-weight: 400;\n font-size: calc(0.8 * var(--mp-unit));\n line-height: calc(1.1 * var(--mp-unit));\n @media (min-width: 960px) {\n font-size: calc(1 * var(--mp-unit));\n line-height: calc(1.4 * var(--mp-unit));\n }\n "
|
|
6299
6299
|
}
|
|
6300
|
-
}, xd =
|
|
6300
|
+
}, xd = s`
|
|
6301
6301
|
display: flex;
|
|
6302
6302
|
justify-content: center;
|
|
6303
6303
|
align-items: center;
|
|
@@ -6310,7 +6310,7 @@ var Gu = {
|
|
|
6310
6310
|
margin: auto;
|
|
6311
6311
|
pointer-events: none;
|
|
6312
6312
|
}
|
|
6313
|
-
`, Sd =
|
|
6313
|
+
`, Sd = s`
|
|
6314
6314
|
position: absolute;
|
|
6315
6315
|
top: 0;
|
|
6316
6316
|
left: 0;
|
|
@@ -6339,9 +6339,9 @@ var Gu = {
|
|
|
6339
6339
|
|
|
6340
6340
|
background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 80%, transparent 100%);
|
|
6341
6341
|
transition: opacity 0.1s cubic-bezier(.4,0,1,1);
|
|
6342
|
-
`, Cd =
|
|
6342
|
+
`, Cd = l`
|
|
6343
6343
|
to { transform: rotate(360deg); }
|
|
6344
|
-
`, wd =
|
|
6344
|
+
`, wd = s`
|
|
6345
6345
|
position: absolute;
|
|
6346
6346
|
inset: 0;
|
|
6347
6347
|
z-index: 2;
|
|
@@ -6359,7 +6359,7 @@ var Gu = {
|
|
|
6359
6359
|
border-top-color: #fff;
|
|
6360
6360
|
animation: ${Cd} 0.8s linear infinite;
|
|
6361
6361
|
}
|
|
6362
|
-
`, Td =
|
|
6362
|
+
`, Td = s`
|
|
6363
6363
|
position: absolute;
|
|
6364
6364
|
inset: auto 0 20%;
|
|
6365
6365
|
z-index: 3;
|
|
@@ -6371,8 +6371,8 @@ var Gu = {
|
|
|
6371
6371
|
pointer-events: none;
|
|
6372
6372
|
`, Ed = (e) => e instanceof Error ? e.message : typeof e == "string" ? e : "Playback failed", Dd = ({ onSubtitleRef: e }) => {
|
|
6373
6373
|
let t = $((e) => e.title), n = $((e) => e.hideUI), r = $((e) => e.playbackError), i = $((e) => e.ready), a = $((e) => e.size), o = $((e) => e.waiting), s = $((e) => e.seekingTo);
|
|
6374
|
-
return /* @__PURE__ */
|
|
6375
|
-
t ? /* @__PURE__ */
|
|
6374
|
+
return /* @__PURE__ */ N(F, { children: [
|
|
6375
|
+
t ? /* @__PURE__ */ k("div", {
|
|
6376
6376
|
className: "title",
|
|
6377
6377
|
css: Sd,
|
|
6378
6378
|
style: { ...n ? {
|
|
@@ -6381,12 +6381,12 @@ var Gu = {
|
|
|
6381
6381
|
} : {} },
|
|
6382
6382
|
children: t
|
|
6383
6383
|
}) : void 0,
|
|
6384
|
-
((a ? !i : o) || s !== void 0) && !r ? /* @__PURE__ */
|
|
6385
|
-
r ? /* @__PURE__ */
|
|
6384
|
+
((a ? !i : o) || s !== void 0) && !r ? /* @__PURE__ */ k("div", { css: wd }) : void 0,
|
|
6385
|
+
r ? /* @__PURE__ */ k("div", {
|
|
6386
6386
|
css: Td,
|
|
6387
6387
|
children: Ed(r)
|
|
6388
6388
|
}) : void 0,
|
|
6389
|
-
/* @__PURE__ */
|
|
6389
|
+
/* @__PURE__ */ k("div", {
|
|
6390
6390
|
className: "subtitles",
|
|
6391
6391
|
ref: e,
|
|
6392
6392
|
css: xd
|
|
@@ -6396,7 +6396,7 @@ var Gu = {
|
|
|
6396
6396
|
if (e === void 0) return "0:00";
|
|
6397
6397
|
let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
|
|
6398
6398
|
return t > 0 ? `${t}:${n < 10 ? "0" : ""}${n}:${r < 10 ? "0" : ""}${r}` : `${n}:${r < 10 ? "0" : ""}${r}`;
|
|
6399
|
-
}, Nd = (e, t) => `${Md(e)} / ${Md(t)}`, Pd = (e) =>
|
|
6399
|
+
}, Nd = (e, t) => `${Md(e)} / ${Md(t)}`, Pd = (e) => s`
|
|
6400
6400
|
display: flex;
|
|
6401
6401
|
justify-content: flex-start;
|
|
6402
6402
|
|
|
@@ -6431,13 +6431,13 @@ var Gu = {
|
|
|
6431
6431
|
${bd.bMedium.regular}
|
|
6432
6432
|
}
|
|
6433
6433
|
|
|
6434
|
-
${e === "sm" &&
|
|
6434
|
+
${e === "sm" && s`
|
|
6435
6435
|
padding: calc(0.4 * var(--mp-unit))!important;
|
|
6436
6436
|
`}
|
|
6437
|
-
${e === "md" &&
|
|
6437
|
+
${e === "md" && s`
|
|
6438
6438
|
padding: calc(0.6 * var(--mp-unit))!important;
|
|
6439
6439
|
`}
|
|
6440
|
-
${e === "lg" &&
|
|
6440
|
+
${e === "lg" && s`
|
|
6441
6441
|
padding: calc(1.2 * var(--mp-unit))!important;
|
|
6442
6442
|
`}
|
|
6443
6443
|
`, Fd = {
|
|
@@ -6452,8 +6452,8 @@ var Gu = {
|
|
|
6452
6452
|
}), () => {
|
|
6453
6453
|
--Fd.anchors === 0 && window.removeEventListener("pointermove", Id, { capture: !0 });
|
|
6454
6454
|
}), Rd = ({ id: e, toolTipText: t, text: n, delayShow: r = 0, closeDelay: i = 0, offset: a = 20, tooltipPlace: o = "top", disabled: s = !1, size: c = "md" }) => {
|
|
6455
|
-
let l =
|
|
6456
|
-
return
|
|
6455
|
+
let l = p(null), u = p(null);
|
|
6456
|
+
return S(() => {
|
|
6457
6457
|
let e = Ld(), t = () => {
|
|
6458
6458
|
let e = l.current;
|
|
6459
6459
|
if (!e) return;
|
|
@@ -6465,7 +6465,7 @@ var Gu = {
|
|
|
6465
6465
|
e();
|
|
6466
6466
|
for (let e of n) document.removeEventListener(e, t);
|
|
6467
6467
|
};
|
|
6468
|
-
}, []), /* @__PURE__ */
|
|
6468
|
+
}, []), /* @__PURE__ */ N(F, { children: [/* @__PURE__ */ k("div", {
|
|
6469
6469
|
ref: l,
|
|
6470
6470
|
"data-tooltip-id": e,
|
|
6471
6471
|
"data-open": !0,
|
|
@@ -6474,7 +6474,7 @@ var Gu = {
|
|
|
6474
6474
|
"data-tooltip-delay-hide": i,
|
|
6475
6475
|
"data-tooltip-place": o,
|
|
6476
6476
|
children: n
|
|
6477
|
-
}), !s && /* @__PURE__ */
|
|
6477
|
+
}), !s && /* @__PURE__ */ k(Wu, {
|
|
6478
6478
|
ref: u,
|
|
6479
6479
|
css: Pd(c),
|
|
6480
6480
|
id: e,
|
|
@@ -6482,14 +6482,14 @@ var Gu = {
|
|
|
6482
6482
|
children: t
|
|
6483
6483
|
})] });
|
|
6484
6484
|
}, zd = ({ ref: e, onChange: t, orientation: n = "horizontal", disabled: r = !1 }) => {
|
|
6485
|
-
let [i, a] =
|
|
6485
|
+
let [i, a] = A(!1), o = p(t);
|
|
6486
6486
|
o.current = t;
|
|
6487
|
-
let s =
|
|
6487
|
+
let s = p(null), c = I((t, r) => {
|
|
6488
6488
|
let i = e.current;
|
|
6489
6489
|
if (!i) return 0;
|
|
6490
6490
|
let { left: a, right: o, top: s, bottom: c } = i.getBoundingClientRect(), l = n === "horizontal" ? (t - a) / (o - a) : (c - r) / (c - s);
|
|
6491
6491
|
return Math.min(Math.max(l, 0), 1);
|
|
6492
|
-
}, [e, n]), l =
|
|
6492
|
+
}, [e, n]), l = I((e) => {
|
|
6493
6493
|
if (!(r || e.button > 0)) {
|
|
6494
6494
|
s.current = e.pointerId;
|
|
6495
6495
|
try {
|
|
@@ -6497,9 +6497,9 @@ var Gu = {
|
|
|
6497
6497
|
} catch {}
|
|
6498
6498
|
a(!0), o.current(c(e.clientX, e.clientY));
|
|
6499
6499
|
}
|
|
6500
|
-
}, [r, c]), u =
|
|
6500
|
+
}, [r, c]), u = I((e) => {
|
|
6501
6501
|
s.current === e.pointerId && o.current(c(e.clientX, e.clientY));
|
|
6502
|
-
}, [c]), d =
|
|
6502
|
+
}, [c]), d = I((e) => {
|
|
6503
6503
|
if (s.current === e.pointerId) {
|
|
6504
6504
|
s.current = null;
|
|
6505
6505
|
try {
|
|
@@ -6508,7 +6508,7 @@ var Gu = {
|
|
|
6508
6508
|
a(!1);
|
|
6509
6509
|
}
|
|
6510
6510
|
}, []);
|
|
6511
|
-
return
|
|
6511
|
+
return S(() => {
|
|
6512
6512
|
r && (s.current = null, a(!1));
|
|
6513
6513
|
}, [r]), {
|
|
6514
6514
|
dragging: i,
|
|
@@ -6631,7 +6631,7 @@ var Gu = {
|
|
|
6631
6631
|
return i && !t.includes(i) ? i : void 0;
|
|
6632
6632
|
});
|
|
6633
6633
|
return e.every(({ title: e }) => ef(e)) ? cf(e) : i;
|
|
6634
|
-
}, uf =
|
|
6634
|
+
}, uf = s`
|
|
6635
6635
|
position: relative;
|
|
6636
6636
|
height: calc(.4 * var(--mp-unit));
|
|
6637
6637
|
|
|
@@ -6851,57 +6851,57 @@ var Gu = {
|
|
|
6851
6851
|
--thumbnail-half: calc(9 * var(--mp-unit));
|
|
6852
6852
|
}
|
|
6853
6853
|
`, df = 4, ff = () => {
|
|
6854
|
-
let e = $(), t = $((e) => e.currentTime), n = $((e) => e.requestSeek), r = $((e) => e.duration), i = $((e) => e.size), a = $((e) => e.downloadedRanges), o = $((e) => e.buffered), s = $((e) => e.indexes), c = $((e) => e.thumbnails), l = $((e) => e.thumbnailAt), u = $((e) => e.requestThumbnail), d = $((e) => e.chapters), f = $((e) => e.seekingTo),
|
|
6855
|
-
|
|
6856
|
-
},
|
|
6857
|
-
|
|
6858
|
-
if (
|
|
6859
|
-
}, [
|
|
6860
|
-
|
|
6861
|
-
}, [
|
|
6862
|
-
let
|
|
6863
|
-
ref:
|
|
6854
|
+
let e = $(), t = $((e) => e.currentTime), n = $((e) => e.requestSeek), r = $((e) => e.duration), i = $((e) => e.size), a = $((e) => e.downloadedRanges), o = $((e) => e.buffered), s = $((e) => e.indexes), c = $((e) => e.thumbnails), l = $((e) => e.thumbnailAt), u = $((e) => e.requestThumbnail), d = $((e) => e.chapters), f = $((e) => e.seekingTo), m = $((e) => e.setSourceState), h = $((e) => e.hideUI), _ = p(null), [v, y] = A(void 0), [b, x] = A(void 0), C = (e) => {
|
|
6855
|
+
x(e), u(e);
|
|
6856
|
+
}, w = !!b;
|
|
6857
|
+
S(() => {
|
|
6858
|
+
if (w) return m({ seekPreview: !0 }), () => m({ seekPreview: !1 });
|
|
6859
|
+
}, [m, w]), S(() => {
|
|
6860
|
+
h && C(void 0);
|
|
6861
|
+
}, [h]);
|
|
6862
|
+
let T = p(void 0), E = p(0), ee = p(void 0), D = p(void 0), O = p(!1), { dragging: j, handlers: te } = zd({
|
|
6863
|
+
ref: _,
|
|
6864
6864
|
onChange: (e) => {
|
|
6865
|
-
if (
|
|
6865
|
+
if (E.current += 1, ee.current = e, D.current === void 0) D.current = e;
|
|
6866
6866
|
else if (!O.current) {
|
|
6867
|
-
let t =
|
|
6868
|
-
Math.abs(e -
|
|
6867
|
+
let t = _.current?.getBoundingClientRect().width ?? 0;
|
|
6868
|
+
Math.abs(e - D.current) * t > df && (O.current = !0);
|
|
6869
6869
|
}
|
|
6870
|
-
|
|
6870
|
+
y(e), T.current !== "mouse" && C(e * r);
|
|
6871
6871
|
}
|
|
6872
6872
|
}), ne = (e) => {
|
|
6873
|
-
|
|
6874
|
-
},
|
|
6873
|
+
T.current = e.pointerType, E.current = 0, D.current = void 0, O.current = !1, te.onPointerDown(e);
|
|
6874
|
+
}, M = (t) => {
|
|
6875
6875
|
te.onPointerUp(t);
|
|
6876
|
-
let i =
|
|
6876
|
+
let i = E.current > 0 ? ee.current : void 0;
|
|
6877
6877
|
if (i !== void 0 && r) {
|
|
6878
6878
|
let t = i * r;
|
|
6879
6879
|
n ? n(t) : e.seek(t);
|
|
6880
6880
|
}
|
|
6881
|
-
|
|
6881
|
+
E.current = 0, O.current = !1, D.current = void 0, t.pointerType !== "mouse" && C(void 0);
|
|
6882
6882
|
}, re = (e) => {
|
|
6883
|
-
if (!
|
|
6884
|
-
let { left: t, right: n } =
|
|
6883
|
+
if (!_.current) return;
|
|
6884
|
+
let { left: t, right: n } = _.current.getBoundingClientRect();
|
|
6885
6885
|
return Math.min(Math.max((e - t) / (n - t), 0), 1) * r;
|
|
6886
|
-
},
|
|
6887
|
-
|
|
6888
|
-
},
|
|
6889
|
-
|
|
6890
|
-
},
|
|
6891
|
-
|
|
6892
|
-
},
|
|
6886
|
+
}, P = p("mouse"), F = (e) => {
|
|
6887
|
+
P.current = e.pointerType;
|
|
6888
|
+
}, I = (e) => {
|
|
6889
|
+
P.current !== "touch" && C(re(e.clientX));
|
|
6890
|
+
}, ie = () => {
|
|
6891
|
+
_.current && C(void 0);
|
|
6892
|
+
}, ae = (e) => r ? e / r * 100 : 0, oe = (e, t, n) => {
|
|
6893
6893
|
let r = Number((n - t).toFixed(4)), i = t * 100;
|
|
6894
|
-
return /* @__PURE__ */
|
|
6894
|
+
return /* @__PURE__ */ k("div", {
|
|
6895
6895
|
className: "loaded-part",
|
|
6896
6896
|
style: {
|
|
6897
6897
|
transform: `scaleX(${r})`,
|
|
6898
6898
|
marginLeft: `${i}%`
|
|
6899
6899
|
}
|
|
6900
6900
|
}, e);
|
|
6901
|
-
},
|
|
6901
|
+
}, se = g(() => i === void 0 ? r ? o.map(([e, t], n) => oe(n, e / r, t / r)) : [] : a?.map((e, t) => {
|
|
6902
6902
|
if (!i || !r) return null;
|
|
6903
6903
|
let n = s.filter((t) => e.startByteOffset <= t.pos && t.pos <= e.endByteOffset), a = n.at(0), o = n.at(-1);
|
|
6904
|
-
return !a || !o ? null :
|
|
6904
|
+
return !a || !o ? null : oe(t, a.timestamp / r, o.timestamp / r);
|
|
6905
6905
|
}) ?? [], [
|
|
6906
6906
|
r,
|
|
6907
6907
|
i,
|
|
@@ -6909,110 +6909,110 @@ var Gu = {
|
|
|
6909
6909
|
s.length,
|
|
6910
6910
|
a?.map(({ startByteOffset: e, endByteOffset: t }) => `${e}/${t}`).join(",")
|
|
6911
6911
|
]);
|
|
6912
|
-
|
|
6913
|
-
|
|
6912
|
+
S(() => {
|
|
6913
|
+
v !== void 0 && r && j && O.current && e.seek(v * r);
|
|
6914
6914
|
}, [
|
|
6915
6915
|
e,
|
|
6916
|
-
|
|
6917
|
-
|
|
6916
|
+
j,
|
|
6917
|
+
v,
|
|
6918
6918
|
r
|
|
6919
6919
|
]);
|
|
6920
|
-
let
|
|
6920
|
+
let L = g(() => {
|
|
6921
6921
|
if (!r) return 0;
|
|
6922
|
-
if (
|
|
6922
|
+
if (j && v !== void 0) return v;
|
|
6923
6923
|
let e = f ?? t;
|
|
6924
6924
|
return typeof e == "number" ? e / r : 0;
|
|
6925
6925
|
}, [
|
|
6926
6926
|
r,
|
|
6927
6927
|
t,
|
|
6928
|
-
|
|
6929
|
-
|
|
6928
|
+
j,
|
|
6929
|
+
v,
|
|
6930
6930
|
f
|
|
6931
|
-
]),
|
|
6932
|
-
if (!
|
|
6933
|
-
let e =
|
|
6934
|
-
return t >= 0 ? t :
|
|
6931
|
+
]), R = g(() => Wd(d, r), [d, r]), ce = R.length > 0, z = g(() => {
|
|
6932
|
+
if (!ce || b === void 0 || !r) return -1;
|
|
6933
|
+
let e = b / r * 100, t = R.findIndex((t, n) => n < R.length - 1 && e >= t && e < R[n + 1]);
|
|
6934
|
+
return t >= 0 ? t : R.length - 2;
|
|
6935
6935
|
}, [
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6936
|
+
ce,
|
|
6937
|
+
R,
|
|
6938
|
+
b,
|
|
6939
6939
|
r
|
|
6940
|
-
]),
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
]),
|
|
6945
|
-
if (
|
|
6946
|
-
}, [d,
|
|
6947
|
-
if (
|
|
6948
|
-
if (l) return l(
|
|
6949
|
-
if (c.length) return c.find(({ startTime: e, endTime: t }) => e <=
|
|
6940
|
+
]), le = g(() => ce ? Gd(R, (e) => e !== z) : void 0, [
|
|
6941
|
+
ce,
|
|
6942
|
+
R,
|
|
6943
|
+
z
|
|
6944
|
+
]), ue = g(() => z >= 0 ? Gd(R, (e) => e === z) : void 0, [R, z]), de = g(() => {
|
|
6945
|
+
if (b !== void 0) return d.find(({ start: e, end: t }) => e <= b && b < t);
|
|
6946
|
+
}, [d, b]), B = g(() => {
|
|
6947
|
+
if (b) {
|
|
6948
|
+
if (l) return l(b);
|
|
6949
|
+
if (c.length) return c.find(({ startTime: e, endTime: t }) => e <= b && b < t);
|
|
6950
6950
|
}
|
|
6951
6951
|
}, [
|
|
6952
6952
|
c,
|
|
6953
6953
|
l,
|
|
6954
|
-
|
|
6955
|
-
]),
|
|
6954
|
+
b
|
|
6955
|
+
]), fe = (e, t) => /* @__PURE__ */ N("div", {
|
|
6956
6956
|
className: e ? `track ${e}` : "track",
|
|
6957
6957
|
style: t ? { maskImage: t } : void 0,
|
|
6958
6958
|
children: [
|
|
6959
|
-
/* @__PURE__ */
|
|
6960
|
-
/* @__PURE__ */
|
|
6959
|
+
/* @__PURE__ */ k("div", { className: "background-bar" }),
|
|
6960
|
+
/* @__PURE__ */ k("div", {
|
|
6961
6961
|
className: "loaded",
|
|
6962
|
-
children:
|
|
6962
|
+
children: se
|
|
6963
6963
|
}),
|
|
6964
|
-
/* @__PURE__ */
|
|
6964
|
+
/* @__PURE__ */ k("div", {
|
|
6965
6965
|
className: "play-container",
|
|
6966
|
-
children: /* @__PURE__ */
|
|
6966
|
+
children: /* @__PURE__ */ k("div", {
|
|
6967
6967
|
className: "play",
|
|
6968
|
-
style: { transform: `scaleX(${
|
|
6968
|
+
style: { transform: `scaleX(${L})` }
|
|
6969
6969
|
})
|
|
6970
6970
|
})
|
|
6971
6971
|
]
|
|
6972
6972
|
});
|
|
6973
|
-
return /* @__PURE__ */
|
|
6973
|
+
return /* @__PURE__ */ N("div", {
|
|
6974
6974
|
css: uf,
|
|
6975
|
-
ref:
|
|
6975
|
+
ref: _,
|
|
6976
6976
|
className: [
|
|
6977
6977
|
"progress-bar",
|
|
6978
|
-
|
|
6979
|
-
|
|
6978
|
+
j ? "dragging" : "",
|
|
6979
|
+
ce ? "segmented" : ""
|
|
6980
6980
|
].filter(Boolean).join(" "),
|
|
6981
|
-
onPointerDown:
|
|
6982
|
-
onPointerMove:
|
|
6983
|
-
onMouseMove:
|
|
6984
|
-
onMouseOut:
|
|
6981
|
+
onPointerDown: F,
|
|
6982
|
+
onPointerMove: F,
|
|
6983
|
+
onMouseMove: I,
|
|
6984
|
+
onMouseOut: ie,
|
|
6985
6985
|
children: [
|
|
6986
|
-
|
|
6987
|
-
|
|
6986
|
+
fe(void 0, le),
|
|
6987
|
+
b ? /* @__PURE__ */ N("div", {
|
|
6988
6988
|
className: "cursor-time",
|
|
6989
6989
|
style: {
|
|
6990
|
-
left:
|
|
6991
|
-
maxWidth:
|
|
6990
|
+
left: de ? `clamp(var(--thumbnail-half), ${ae(b)}%, calc(100% - var(--thumbnail-half)))` : `clamp(calc(3 * var(--mp-unit)), ${ae(b)}%, calc(100% - calc(3 * var(--mp-unit))))`,
|
|
6991
|
+
maxWidth: de ? "var(--thumbnail-width)" : void 0
|
|
6992
6992
|
},
|
|
6993
|
-
children: [/* @__PURE__ */
|
|
6993
|
+
children: [/* @__PURE__ */ k("span", {
|
|
6994
6994
|
className: "cursor-time-value",
|
|
6995
|
-
children: Md(
|
|
6996
|
-
}),
|
|
6995
|
+
children: Md(b)
|
|
6996
|
+
}), de ? /* @__PURE__ */ k("span", {
|
|
6997
6997
|
className: "chapter-title",
|
|
6998
|
-
children:
|
|
6998
|
+
children: de.title
|
|
6999
6999
|
}) : void 0]
|
|
7000
7000
|
}) : void 0,
|
|
7001
|
-
/* @__PURE__ */
|
|
7002
|
-
/* @__PURE__ */
|
|
7003
|
-
|
|
7004
|
-
/* @__PURE__ */
|
|
7005
|
-
/* @__PURE__ */
|
|
7001
|
+
/* @__PURE__ */ k("div", { className: "progress" }),
|
|
7002
|
+
/* @__PURE__ */ k("div", { className: "hover" }),
|
|
7003
|
+
ue ? fe("focus", ue) : void 0,
|
|
7004
|
+
/* @__PURE__ */ k("div", { className: "scrubber" }),
|
|
7005
|
+
/* @__PURE__ */ k("div", {
|
|
7006
7006
|
className: "padding",
|
|
7007
7007
|
...te,
|
|
7008
7008
|
onPointerDown: ne,
|
|
7009
|
-
onPointerUp:
|
|
7010
|
-
onPointerCancel:
|
|
7009
|
+
onPointerUp: M,
|
|
7010
|
+
onPointerCancel: M
|
|
7011
7011
|
}),
|
|
7012
|
-
/* @__PURE__ */
|
|
7012
|
+
/* @__PURE__ */ k("div", {
|
|
7013
7013
|
className: "thumbnail",
|
|
7014
|
-
style: { left: `clamp(var(--thumbnail-half), ${
|
|
7015
|
-
children:
|
|
7014
|
+
style: { left: `clamp(var(--thumbnail-half), ${ae(b ?? 1)}%, calc(100% - var(--thumbnail-half)))` },
|
|
7015
|
+
children: B?.url ? /* @__PURE__ */ k("img", { src: B.url }) : void 0
|
|
7016
7016
|
})
|
|
7017
7017
|
]
|
|
7018
7018
|
});
|
|
@@ -7026,12 +7026,12 @@ var Gu = {
|
|
|
7026
7026
|
strokeWidth: 2,
|
|
7027
7027
|
strokeLinecap: "round",
|
|
7028
7028
|
strokeLinejoin: "round"
|
|
7029
|
-
}, hf = (e) => /* @__PURE__ */
|
|
7029
|
+
}, hf = (e) => /* @__PURE__ */ N("svg", {
|
|
7030
7030
|
...mf,
|
|
7031
7031
|
...e,
|
|
7032
7032
|
children: [
|
|
7033
|
-
/* @__PURE__ */
|
|
7034
|
-
/* @__PURE__ */
|
|
7033
|
+
/* @__PURE__ */ k("path", { d: "M21 11V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h5" }),
|
|
7034
|
+
/* @__PURE__ */ k("rect", {
|
|
7035
7035
|
x: "12",
|
|
7036
7036
|
y: "13",
|
|
7037
7037
|
width: "10",
|
|
@@ -7039,14 +7039,14 @@ var Gu = {
|
|
|
7039
7039
|
rx: "1",
|
|
7040
7040
|
ry: "1"
|
|
7041
7041
|
}),
|
|
7042
|
-
/* @__PURE__ */
|
|
7042
|
+
/* @__PURE__ */ k("path", { d: "M14.5 18.5h2m2 0h1" })
|
|
7043
7043
|
]
|
|
7044
|
-
}), gf = (e) => /* @__PURE__ */
|
|
7044
|
+
}), gf = (e) => /* @__PURE__ */ N("svg", {
|
|
7045
7045
|
...mf,
|
|
7046
7046
|
...e,
|
|
7047
7047
|
children: [
|
|
7048
|
-
/* @__PURE__ */
|
|
7049
|
-
/* @__PURE__ */
|
|
7048
|
+
/* @__PURE__ */ k("path", { d: "M21 11V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h5" }),
|
|
7049
|
+
/* @__PURE__ */ k("rect", {
|
|
7050
7050
|
x: "12",
|
|
7051
7051
|
y: "13",
|
|
7052
7052
|
width: "10",
|
|
@@ -7054,9 +7054,9 @@ var Gu = {
|
|
|
7054
7054
|
rx: "1",
|
|
7055
7055
|
ry: "1"
|
|
7056
7056
|
}),
|
|
7057
|
-
/* @__PURE__ */
|
|
7057
|
+
/* @__PURE__ */ k("path", { d: "M6 9h3m2 0h2" })
|
|
7058
7058
|
]
|
|
7059
|
-
}), _f =
|
|
7059
|
+
}), _f = s`
|
|
7060
7060
|
.popover {
|
|
7061
7061
|
position: absolute;
|
|
7062
7062
|
/* Anchored to the PLAYER's right edge, never to the gear. The gear is not the last control in the
|
|
@@ -7186,23 +7186,23 @@ var Gu = {
|
|
|
7186
7186
|
`, vf = ({ title: e, tracks: t, selected: n, onSelect: r, onBack: i, offLabel: a, pending: o, failed: s }) => {
|
|
7187
7187
|
let c = o !== void 0, l = (e, i, a) => {
|
|
7188
7188
|
let s = c && o === e, l = c || t.find((t) => t.id === e)?.disabled;
|
|
7189
|
-
return /* @__PURE__ */
|
|
7189
|
+
return /* @__PURE__ */ N("div", {
|
|
7190
7190
|
onClick: () => {
|
|
7191
7191
|
l || r(e ?? void 0);
|
|
7192
7192
|
},
|
|
7193
7193
|
className: [a, l ? "unavailable" : null].filter(Boolean).join(" ") || void 0,
|
|
7194
|
-
children: [/* @__PURE__ */
|
|
7194
|
+
children: [/* @__PURE__ */ k("span", { children: i }), /* @__PURE__ */ k("span", { children: s ? "…" : (n ?? null) === e ? "✓" : "" })]
|
|
7195
7195
|
}, e ?? "__off__");
|
|
7196
7196
|
};
|
|
7197
|
-
return /* @__PURE__ */
|
|
7197
|
+
return /* @__PURE__ */ N("div", {
|
|
7198
7198
|
className: "popover track-list",
|
|
7199
7199
|
children: [
|
|
7200
|
-
/* @__PURE__ */
|
|
7200
|
+
/* @__PURE__ */ N("div", {
|
|
7201
7201
|
className: i ? "back" : "back no-hover",
|
|
7202
7202
|
onClick: i,
|
|
7203
|
-
children: [i ? /* @__PURE__ */
|
|
7203
|
+
children: [i ? /* @__PURE__ */ k(C, {}) : null, /* @__PURE__ */ k("span", { children: e })]
|
|
7204
7204
|
}),
|
|
7205
|
-
s ? /* @__PURE__ */
|
|
7205
|
+
s ? /* @__PURE__ */ k("div", {
|
|
7206
7206
|
className: "no-hover failed",
|
|
7207
7207
|
children: "Could not switch. Try again."
|
|
7208
7208
|
}) : null,
|
|
@@ -7211,12 +7211,12 @@ var Gu = {
|
|
|
7211
7211
|
]
|
|
7212
7212
|
});
|
|
7213
7213
|
}, yf = ({ onReset: e } = {}) => {
|
|
7214
|
-
let t =
|
|
7214
|
+
let t = p(null), [n, r] = A(!1), [i, a] = A(void 0), [o, s] = A(!1), c = p(e);
|
|
7215
7215
|
c.current = e;
|
|
7216
7216
|
let l = () => {
|
|
7217
7217
|
r(!1), c.current?.();
|
|
7218
7218
|
};
|
|
7219
|
-
return
|
|
7219
|
+
return S(() => {
|
|
7220
7220
|
let e = (e) => {
|
|
7221
7221
|
n && t.current && !t.current.contains(e.target) && l();
|
|
7222
7222
|
};
|
|
@@ -7251,7 +7251,7 @@ var Gu = {
|
|
|
7251
7251
|
});
|
|
7252
7252
|
}
|
|
7253
7253
|
};
|
|
7254
|
-
}, bf =
|
|
7254
|
+
}, bf = s`
|
|
7255
7255
|
/* Not a containing block, for the reason given on popoverStyle: the menu anchors to the control bar,
|
|
7256
7256
|
which is the width of the player box, so it can be clamped to it. */
|
|
7257
7257
|
position: static;
|
|
@@ -7347,60 +7347,60 @@ ${_f}
|
|
|
7347
7347
|
e.detail
|
|
7348
7348
|
].filter(Boolean).join("\n");
|
|
7349
7349
|
}).join("\n\n"), Tf = () => {
|
|
7350
|
-
let e = $((e) => e.playbackErrors), { open: t, toggle: n, containerRef: r } = yf(), [i, a] =
|
|
7350
|
+
let e = $((e) => e.playbackErrors), { open: t, toggle: n, containerRef: r } = yf(), [i, a] = A(!1);
|
|
7351
7351
|
if (e.length === 0) return null;
|
|
7352
7352
|
let o = () => {
|
|
7353
7353
|
navigator.clipboard?.writeText(wf(e)).then(() => {
|
|
7354
7354
|
a(!0), setTimeout(() => a(!1), 2e3);
|
|
7355
7355
|
}, (e) => console.warn("[media-player] could not copy the errors:", e));
|
|
7356
7356
|
}, s = `Playback errors (${Cf(e)})`;
|
|
7357
|
-
return /* @__PURE__ */
|
|
7357
|
+
return /* @__PURE__ */ N("div", {
|
|
7358
7358
|
css: bf,
|
|
7359
7359
|
ref: r,
|
|
7360
|
-
children: [/* @__PURE__ */
|
|
7360
|
+
children: [/* @__PURE__ */ k(Rd, {
|
|
7361
7361
|
id: "errors",
|
|
7362
7362
|
disabled: t,
|
|
7363
|
-
text: /* @__PURE__ */
|
|
7363
|
+
text: /* @__PURE__ */ k("button", {
|
|
7364
7364
|
className: "errors",
|
|
7365
7365
|
type: "button",
|
|
7366
7366
|
onClick: n,
|
|
7367
7367
|
"aria-label": s,
|
|
7368
7368
|
"aria-expanded": t,
|
|
7369
|
-
children: /* @__PURE__ */
|
|
7369
|
+
children: /* @__PURE__ */ k(ue, { className: "alert-triangle" })
|
|
7370
7370
|
}),
|
|
7371
|
-
toolTipText: /* @__PURE__ */
|
|
7372
|
-
}), t && /* @__PURE__ */
|
|
7371
|
+
toolTipText: /* @__PURE__ */ k("span", { children: s })
|
|
7372
|
+
}), t && /* @__PURE__ */ N("div", {
|
|
7373
7373
|
className: "popover error-list",
|
|
7374
|
-
children: [/* @__PURE__ */
|
|
7374
|
+
children: [/* @__PURE__ */ N("div", {
|
|
7375
7375
|
className: "back no-hover",
|
|
7376
|
-
children: [/* @__PURE__ */
|
|
7376
|
+
children: [/* @__PURE__ */ k("span", { children: s }), /* @__PURE__ */ N("button", {
|
|
7377
7377
|
className: "copy",
|
|
7378
7378
|
type: "button",
|
|
7379
7379
|
onClick: o,
|
|
7380
7380
|
"aria-label": "Copy the errors",
|
|
7381
|
-
children: [
|
|
7381
|
+
children: [k(i ? ne : ie, {}), /* @__PURE__ */ k("span", { children: i ? "Copied" : "Copy" })]
|
|
7382
7382
|
})]
|
|
7383
|
-
}), e.map((e, t) => /* @__PURE__ */
|
|
7383
|
+
}), e.map((e, t) => /* @__PURE__ */ N("div", {
|
|
7384
7384
|
className: "entry no-hover",
|
|
7385
7385
|
children: [
|
|
7386
|
-
/* @__PURE__ */
|
|
7386
|
+
/* @__PURE__ */ N("span", {
|
|
7387
7387
|
className: "when",
|
|
7388
7388
|
children: [
|
|
7389
7389
|
xf(e.at),
|
|
7390
7390
|
e.count > 1 ? ` to ${xf(e.lastAt)}` : "",
|
|
7391
7391
|
Sf(e.atMediaTime) ? ` at ${Sf(e.atMediaTime)}` : "",
|
|
7392
7392
|
e.recovered ? " recovered" : "",
|
|
7393
|
-
e.count > 1 ? /* @__PURE__ */
|
|
7393
|
+
e.count > 1 ? /* @__PURE__ */ k("span", {
|
|
7394
7394
|
className: "count",
|
|
7395
7395
|
children: `×${e.count}`
|
|
7396
7396
|
}) : null
|
|
7397
7397
|
]
|
|
7398
7398
|
}),
|
|
7399
|
-
/* @__PURE__ */
|
|
7399
|
+
/* @__PURE__ */ k("span", {
|
|
7400
7400
|
className: "what",
|
|
7401
7401
|
children: e.message
|
|
7402
7402
|
}),
|
|
7403
|
-
e.detail ? /* @__PURE__ */
|
|
7403
|
+
e.detail ? /* @__PURE__ */ k("span", {
|
|
7404
7404
|
className: "cause",
|
|
7405
7405
|
children: e.detail
|
|
7406
7406
|
}) : null
|
|
@@ -7408,7 +7408,7 @@ ${_f}
|
|
|
7408
7408
|
}, `${e.at}-${t}`))]
|
|
7409
7409
|
})]
|
|
7410
7410
|
});
|
|
7411
|
-
}, Ef =
|
|
7411
|
+
}, Ef = s`
|
|
7412
7412
|
display: flex;
|
|
7413
7413
|
align-items: center;
|
|
7414
7414
|
justify-content: center;
|
|
@@ -7462,7 +7462,7 @@ width: 100%;
|
|
|
7462
7462
|
}
|
|
7463
7463
|
}
|
|
7464
7464
|
`, Df = () => {
|
|
7465
|
-
let e = $(), t = $((e) => e.playbackRate), n =
|
|
7465
|
+
let e = $(), t = $((e) => e.playbackRate), n = p(null), r = p(null), i = .25, a = 2.75, o = (e, t = .05) => Math.round(e / t) * t, s = o(t || 1), c = (e) => (e - i) / a * 100, l = (e) => o(i + e * a), { handlers: u } = zd({
|
|
7466
7466
|
ref: r,
|
|
7467
7467
|
onChange: (t) => e.setPlaybackRate(l(t))
|
|
7468
7468
|
}), d = (t) => {
|
|
@@ -7470,33 +7470,33 @@ width: 100%;
|
|
|
7470
7470
|
let n = .05, r = s;
|
|
7471
7471
|
r = t.deltaY < 0 ? Math.min(3, r + n) : Math.max(i, r - n), e.setPlaybackRate(r);
|
|
7472
7472
|
};
|
|
7473
|
-
|
|
7473
|
+
S(() => {
|
|
7474
7474
|
let e = n.current;
|
|
7475
7475
|
return e && e.addEventListener("wheel", d, { passive: !1 }), () => {
|
|
7476
7476
|
e && e.removeEventListener("wheel", d);
|
|
7477
7477
|
};
|
|
7478
7478
|
}, [t]);
|
|
7479
7479
|
let f = c(s);
|
|
7480
|
-
return /* @__PURE__ */
|
|
7480
|
+
return /* @__PURE__ */ N("div", {
|
|
7481
7481
|
css: Ef,
|
|
7482
|
-
children: [/* @__PURE__ */
|
|
7482
|
+
children: [/* @__PURE__ */ N("div", { children: [s.toFixed(2), "x"] }), /* @__PURE__ */ k("div", {
|
|
7483
7483
|
className: "playback-slider",
|
|
7484
7484
|
ref: n,
|
|
7485
7485
|
...u,
|
|
7486
|
-
children: /* @__PURE__ */
|
|
7486
|
+
children: /* @__PURE__ */ k("div", {
|
|
7487
7487
|
ref: r,
|
|
7488
7488
|
style: { background: `linear-gradient(to right,
|
|
7489
7489
|
#fff 0% ${f}%,
|
|
7490
7490
|
#3A3A3A ${f}% 100%
|
|
7491
7491
|
)` },
|
|
7492
|
-
children: /* @__PURE__ */
|
|
7492
|
+
children: /* @__PURE__ */ k("div", {
|
|
7493
7493
|
className: "playback-handle",
|
|
7494
7494
|
style: { left: `${f}%` }
|
|
7495
7495
|
})
|
|
7496
7496
|
})
|
|
7497
7497
|
})]
|
|
7498
7498
|
});
|
|
7499
|
-
}, Of =
|
|
7499
|
+
}, Of = s`
|
|
7500
7500
|
/* Deliberately NOT a containing block. The menu anchors to the control bar instead, which is exactly
|
|
7501
7501
|
as wide as the player box and can therefore be clamped to it. The outside-click check uses
|
|
7502
7502
|
\`contains\` on the ref, which is DOM containment and needs no position, and the bar's other
|
|
@@ -7591,106 +7591,106 @@ ${_f}
|
|
|
7591
7591
|
}
|
|
7592
7592
|
|
|
7593
7593
|
`, kf = () => {
|
|
7594
|
-
let e = $(), t = $((e) => e.playbackRate), n = $((e) => e.audioTracks), r = $((e) => e.selectedAudioTrack), i = $((e) => e.selectAudioTrack),
|
|
7595
|
-
e.setPlaybackRate(t),
|
|
7596
|
-
},
|
|
7597
|
-
e !== void 0 &&
|
|
7598
|
-
},
|
|
7599
|
-
|
|
7594
|
+
let e = $(), t = $((e) => e.playbackRate), n = $((e) => e.audioTracks), r = $((e) => e.selectedAudioTrack), i = $((e) => e.selectAudioTrack), a = $((e) => e.volumeNormalizer), [o, s] = A(0), { open: c, toggle: l, containerRef: u, pending: d, failed: f, runSelect: p } = yf({ onReset: () => s(0) }), m = (t) => {
|
|
7595
|
+
e.setPlaybackRate(t), s(0);
|
|
7596
|
+
}, h = (e) => {
|
|
7597
|
+
e !== void 0 && p(e, () => i(e));
|
|
7598
|
+
}, g = (e) => () => {
|
|
7599
|
+
s(e);
|
|
7600
7600
|
};
|
|
7601
|
-
return /* @__PURE__ */
|
|
7601
|
+
return /* @__PURE__ */ N("div", {
|
|
7602
7602
|
css: Of,
|
|
7603
|
-
ref:
|
|
7603
|
+
ref: u,
|
|
7604
7604
|
children: [
|
|
7605
|
-
/* @__PURE__ */
|
|
7605
|
+
/* @__PURE__ */ k(Rd, {
|
|
7606
7606
|
id: "settings",
|
|
7607
|
-
disabled:
|
|
7608
|
-
text: /* @__PURE__ */
|
|
7607
|
+
disabled: c,
|
|
7608
|
+
text: /* @__PURE__ */ k("button", {
|
|
7609
7609
|
className: "settings",
|
|
7610
7610
|
type: "button",
|
|
7611
|
-
onClick:
|
|
7611
|
+
onClick: l,
|
|
7612
7612
|
"aria-label": "Settings",
|
|
7613
|
-
"aria-expanded":
|
|
7614
|
-
children: /* @__PURE__ */
|
|
7613
|
+
"aria-expanded": c,
|
|
7614
|
+
children: /* @__PURE__ */ k(P, {})
|
|
7615
7615
|
}),
|
|
7616
|
-
toolTipText: /* @__PURE__ */
|
|
7616
|
+
toolTipText: /* @__PURE__ */ k("span", { children: "Settings" })
|
|
7617
7617
|
}),
|
|
7618
|
-
|
|
7618
|
+
c && o === 0 && /* @__PURE__ */ N("div", {
|
|
7619
7619
|
className: "popover menu",
|
|
7620
7620
|
children: [
|
|
7621
|
-
n.length > 1 ? /* @__PURE__ */
|
|
7622
|
-
onClick:
|
|
7623
|
-
children: [/* @__PURE__ */
|
|
7621
|
+
n.length > 1 ? /* @__PURE__ */ N("div", {
|
|
7622
|
+
onClick: g(2),
|
|
7623
|
+
children: [/* @__PURE__ */ k("div", { children: "Audio" }), /* @__PURE__ */ k("div", { children: /* @__PURE__ */ k(b, {}) })]
|
|
7624
7624
|
}) : null,
|
|
7625
|
-
/* @__PURE__ */
|
|
7626
|
-
onClick:
|
|
7627
|
-
children: [/* @__PURE__ */
|
|
7625
|
+
/* @__PURE__ */ N("div", {
|
|
7626
|
+
onClick: g(1),
|
|
7627
|
+
children: [/* @__PURE__ */ k("div", { children: "Playback speed" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ k("span", {
|
|
7628
7628
|
className: "secondary",
|
|
7629
7629
|
children: t === 1 ? "(Default)" : t.toFixed(2)
|
|
7630
|
-
}), /* @__PURE__ */
|
|
7630
|
+
}), /* @__PURE__ */ k(b, {})] })]
|
|
7631
7631
|
}),
|
|
7632
|
-
|
|
7632
|
+
a ? /* @__PURE__ */ N("div", {
|
|
7633
7633
|
role: "switch",
|
|
7634
|
-
"aria-checked":
|
|
7635
|
-
"aria-disabled": !
|
|
7636
|
-
className:
|
|
7634
|
+
"aria-checked": a.available && a.enabled,
|
|
7635
|
+
"aria-disabled": !a.available,
|
|
7636
|
+
className: a.available ? void 0 : "no-hover unavailable",
|
|
7637
7637
|
onClick: () => {
|
|
7638
|
-
|
|
7638
|
+
a.available && a.setEnabled(!a.enabled);
|
|
7639
7639
|
},
|
|
7640
|
-
children: [/* @__PURE__ */
|
|
7640
|
+
children: [/* @__PURE__ */ k("div", { children: "Normalize volume" }), /* @__PURE__ */ k("div", { children: a.available ? /* @__PURE__ */ k("span", { className: a.enabled ? "switch on" : "switch" }) : /* @__PURE__ */ k("span", {
|
|
7641
7641
|
className: "secondary",
|
|
7642
7642
|
children: "Unavailable"
|
|
7643
7643
|
}) })]
|
|
7644
7644
|
}) : null
|
|
7645
7645
|
]
|
|
7646
7646
|
}),
|
|
7647
|
-
|
|
7647
|
+
c && o === 1 && /* @__PURE__ */ N("div", {
|
|
7648
7648
|
className: "popover playback-rate",
|
|
7649
7649
|
children: [
|
|
7650
|
-
/* @__PURE__ */
|
|
7650
|
+
/* @__PURE__ */ N("div", {
|
|
7651
7651
|
className: "back",
|
|
7652
|
-
onClick:
|
|
7653
|
-
children: [/* @__PURE__ */
|
|
7652
|
+
onClick: g(0),
|
|
7653
|
+
children: [/* @__PURE__ */ k(C, {}), /* @__PURE__ */ k("span", { children: "Playback speed" })]
|
|
7654
7654
|
}),
|
|
7655
|
-
/* @__PURE__ */
|
|
7655
|
+
/* @__PURE__ */ k("div", {
|
|
7656
7656
|
className: "slider no-hover",
|
|
7657
|
-
children: /* @__PURE__ */
|
|
7657
|
+
children: /* @__PURE__ */ k(Df, {})
|
|
7658
7658
|
}),
|
|
7659
|
-
/* @__PURE__ */
|
|
7659
|
+
/* @__PURE__ */ N("div", {
|
|
7660
7660
|
className: "options no-hover",
|
|
7661
7661
|
children: [
|
|
7662
|
-
/* @__PURE__ */
|
|
7663
|
-
onClick: () =>
|
|
7662
|
+
/* @__PURE__ */ k("div", {
|
|
7663
|
+
onClick: () => m(.5),
|
|
7664
7664
|
children: "0.5x"
|
|
7665
7665
|
}),
|
|
7666
|
-
/* @__PURE__ */
|
|
7667
|
-
onClick: () =>
|
|
7666
|
+
/* @__PURE__ */ k("div", {
|
|
7667
|
+
onClick: () => m(1),
|
|
7668
7668
|
children: "1x"
|
|
7669
7669
|
}),
|
|
7670
|
-
/* @__PURE__ */
|
|
7671
|
-
onClick: () =>
|
|
7670
|
+
/* @__PURE__ */ k("div", {
|
|
7671
|
+
onClick: () => m(1.5),
|
|
7672
7672
|
children: "1.5x"
|
|
7673
7673
|
}),
|
|
7674
|
-
/* @__PURE__ */
|
|
7675
|
-
onClick: () =>
|
|
7674
|
+
/* @__PURE__ */ k("div", {
|
|
7675
|
+
onClick: () => m(2),
|
|
7676
7676
|
children: "2x"
|
|
7677
7677
|
})
|
|
7678
7678
|
]
|
|
7679
7679
|
})
|
|
7680
7680
|
]
|
|
7681
7681
|
}),
|
|
7682
|
-
|
|
7682
|
+
c && o === 2 && /* @__PURE__ */ k(vf, {
|
|
7683
7683
|
title: "Audio",
|
|
7684
7684
|
tracks: n,
|
|
7685
7685
|
selected: r,
|
|
7686
|
-
onSelect:
|
|
7687
|
-
onBack:
|
|
7688
|
-
pending:
|
|
7689
|
-
failed:
|
|
7686
|
+
onSelect: h,
|
|
7687
|
+
onBack: g(0),
|
|
7688
|
+
pending: d,
|
|
7689
|
+
failed: f
|
|
7690
7690
|
})
|
|
7691
7691
|
]
|
|
7692
7692
|
});
|
|
7693
|
-
}, Af =
|
|
7693
|
+
}, Af = s`
|
|
7694
7694
|
/* Not a containing block, for the reason given on popoverStyle: the menu anchors to the control bar,
|
|
7695
7695
|
which is the width of the player box, so it can be clamped to it. */
|
|
7696
7696
|
position: static;
|
|
@@ -7711,23 +7711,23 @@ ${_f}
|
|
|
7711
7711
|
let e = $((e) => e.subtitleTracks), t = $((e) => e.selectedSubtitleTrack), n = $((e) => e.selectSubtitleTrack), r = $((e) => e.subtitleOffLabel), { open: i, toggle: a, containerRef: o, pending: s, failed: c, runSelect: l } = yf();
|
|
7712
7712
|
if (e.length === 0) return null;
|
|
7713
7713
|
let u = t !== void 0;
|
|
7714
|
-
return /* @__PURE__ */
|
|
7714
|
+
return /* @__PURE__ */ N("div", {
|
|
7715
7715
|
css: Af,
|
|
7716
7716
|
ref: o,
|
|
7717
|
-
children: [/* @__PURE__ */
|
|
7717
|
+
children: [/* @__PURE__ */ k(Rd, {
|
|
7718
7718
|
id: "subtitles",
|
|
7719
7719
|
disabled: i,
|
|
7720
|
-
text: /* @__PURE__ */
|
|
7720
|
+
text: /* @__PURE__ */ k("button", {
|
|
7721
7721
|
className: "subtitles",
|
|
7722
7722
|
type: "button",
|
|
7723
7723
|
onClick: a,
|
|
7724
7724
|
"aria-label": "Subtitles",
|
|
7725
7725
|
"aria-expanded": i,
|
|
7726
7726
|
"aria-pressed": u,
|
|
7727
|
-
children: u ? /* @__PURE__ */
|
|
7727
|
+
children: u ? /* @__PURE__ */ k(O, { className: "captions" }) : /* @__PURE__ */ k(R, { className: "captions-off" })
|
|
7728
7728
|
}),
|
|
7729
|
-
toolTipText: /* @__PURE__ */
|
|
7730
|
-
}), i && /* @__PURE__ */
|
|
7729
|
+
toolTipText: /* @__PURE__ */ k("span", { children: "Subtitles" })
|
|
7730
|
+
}), i && /* @__PURE__ */ k(vf, {
|
|
7731
7731
|
title: "Subtitles",
|
|
7732
7732
|
tracks: e,
|
|
7733
7733
|
selected: t,
|
|
@@ -7743,7 +7743,7 @@ ${_f}
|
|
|
7743
7743
|
hover: "rgba(255, 255, 255, 0.13)",
|
|
7744
7744
|
borderPrimary: "#384F70",
|
|
7745
7745
|
backgroundTooltip: "#222222"
|
|
7746
|
-
}, Nf =
|
|
7746
|
+
}, Nf = s`
|
|
7747
7747
|
display: flex;
|
|
7748
7748
|
align-items: center;
|
|
7749
7749
|
|
|
@@ -7787,7 +7787,7 @@ ${_f}
|
|
|
7787
7787
|
height: 10px;
|
|
7788
7788
|
}
|
|
7789
7789
|
`, Pf = ({ value: e, onChange: t }) => {
|
|
7790
|
-
let n = $((e) => e.volume), r = $((e) => e.muted), i =
|
|
7790
|
+
let n = $((e) => e.volume), r = $((e) => e.muted), i = p(null), a = p(null), { handlers: o } = zd({
|
|
7791
7791
|
ref: a,
|
|
7792
7792
|
onChange: t
|
|
7793
7793
|
}), s = (n) => {
|
|
@@ -7795,37 +7795,37 @@ ${_f}
|
|
|
7795
7795
|
let r = .05, i = e;
|
|
7796
7796
|
i = n.deltaY < 0 ? Math.min(1, i + r) : Math.max(0, i - r), t(i);
|
|
7797
7797
|
};
|
|
7798
|
-
|
|
7798
|
+
S(() => {
|
|
7799
7799
|
let e = i.current;
|
|
7800
7800
|
return e && e.addEventListener("wheel", s, { passive: !1 }), () => {
|
|
7801
7801
|
e && e.removeEventListener("wheel", s);
|
|
7802
7802
|
};
|
|
7803
7803
|
}, [e]);
|
|
7804
|
-
let c = e * 100, l =
|
|
7805
|
-
return /* @__PURE__ */
|
|
7804
|
+
let c = e * 100, l = g(() => Math.round(r ? 0 : jd(n) * 100), [n, r]);
|
|
7805
|
+
return /* @__PURE__ */ k(Rd, {
|
|
7806
7806
|
id: "volume-slider",
|
|
7807
|
-
text: /* @__PURE__ */
|
|
7807
|
+
text: /* @__PURE__ */ k("div", {
|
|
7808
7808
|
ref: i,
|
|
7809
7809
|
css: Nf,
|
|
7810
7810
|
...o,
|
|
7811
|
-
children: /* @__PURE__ */
|
|
7811
|
+
children: /* @__PURE__ */ k("div", {
|
|
7812
7812
|
ref: a,
|
|
7813
7813
|
style: { background: `linear-gradient(to right,
|
|
7814
7814
|
#fff 0% ${c}%,
|
|
7815
7815
|
#3A3A3A ${c}% 100%
|
|
7816
7816
|
)` },
|
|
7817
|
-
children: /* @__PURE__ */
|
|
7817
|
+
children: /* @__PURE__ */ k("div", {
|
|
7818
7818
|
className: "volume-handle",
|
|
7819
7819
|
style: { left: `${e * 100}%` }
|
|
7820
7820
|
})
|
|
7821
7821
|
})
|
|
7822
7822
|
}),
|
|
7823
|
-
toolTipText: /* @__PURE__ */
|
|
7823
|
+
toolTipText: /* @__PURE__ */ N("div", {
|
|
7824
7824
|
className: "volume-value",
|
|
7825
7825
|
children: [l, "%"]
|
|
7826
7826
|
})
|
|
7827
7827
|
});
|
|
7828
|
-
}, Ff =
|
|
7828
|
+
}, Ff = s`
|
|
7829
7829
|
position: relative;
|
|
7830
7830
|
display: flex;
|
|
7831
7831
|
align-items: center;
|
|
@@ -7889,29 +7889,29 @@ ${_f}
|
|
|
7889
7889
|
}
|
|
7890
7890
|
|
|
7891
7891
|
`, If = ({ ref: e }) => {
|
|
7892
|
-
let t = $(), n = $((e) => e.volume), r = $((e) => e.muted), i =
|
|
7893
|
-
return /* @__PURE__ */
|
|
7892
|
+
let t = $(), n = $((e) => e.volume), r = $((e) => e.muted), i = g(() => jd(n), [n]);
|
|
7893
|
+
return /* @__PURE__ */ N("div", {
|
|
7894
7894
|
css: Ff,
|
|
7895
|
-
children: [/* @__PURE__ */
|
|
7895
|
+
children: [/* @__PURE__ */ k(Rd, {
|
|
7896
7896
|
id: "sound",
|
|
7897
|
-
text: /* @__PURE__ */
|
|
7897
|
+
text: /* @__PURE__ */ k("button", {
|
|
7898
7898
|
className: "sound",
|
|
7899
7899
|
type: "button",
|
|
7900
7900
|
onClick: () => t.toggleMuted(),
|
|
7901
7901
|
ref: e,
|
|
7902
7902
|
"aria-label": "Mute",
|
|
7903
7903
|
"aria-pressed": r || n === 0,
|
|
7904
|
-
children:
|
|
7904
|
+
children: k(r || n === 0 ? E : n <= .5 ? j : h, {
|
|
7905
7905
|
size: 18,
|
|
7906
7906
|
color: "#fff"
|
|
7907
7907
|
})
|
|
7908
7908
|
}),
|
|
7909
|
-
toolTipText: /* @__PURE__ */
|
|
7910
|
-
}), /* @__PURE__ */
|
|
7909
|
+
toolTipText: /* @__PURE__ */ k("span", { children: r ? "Unmute (m)" : "Mute (m)" })
|
|
7910
|
+
}), /* @__PURE__ */ k("div", {
|
|
7911
7911
|
className: "volume-slider-container",
|
|
7912
|
-
children: /* @__PURE__ */
|
|
7912
|
+
children: /* @__PURE__ */ k("div", {
|
|
7913
7913
|
className: "volume-slider-background",
|
|
7914
|
-
children: /* @__PURE__ */
|
|
7914
|
+
children: /* @__PURE__ */ k(Pf, {
|
|
7915
7915
|
value: r ? 0 : i,
|
|
7916
7916
|
onChange: (e) => {
|
|
7917
7917
|
t.setVolume(Ad(e));
|
|
@@ -7920,7 +7920,7 @@ ${_f}
|
|
|
7920
7920
|
})
|
|
7921
7921
|
})]
|
|
7922
7922
|
});
|
|
7923
|
-
}, Lf = .05, Rf = 5, zf = 50, Bf = 1e3, Vf =
|
|
7923
|
+
}, Lf = .05, Rf = 5, zf = 50, Bf = 1e3, Vf = s`
|
|
7924
7924
|
position: absolute;
|
|
7925
7925
|
bottom: 0;
|
|
7926
7926
|
width: 100%;
|
|
@@ -8051,17 +8051,17 @@ ${_f}
|
|
|
8051
8051
|
}
|
|
8052
8052
|
}
|
|
8053
8053
|
`, Hf = ({ shortcuts: e = "window", root: t }) => {
|
|
8054
|
-
let n = $(), r = $((e) => e.paused), i = $((e) => e.currentTime), a = $((e) => e.duration), o = $((e) => e.seekingTo), s = $((e) => e.fullscreen),
|
|
8054
|
+
let n = $(), r = $((e) => e.paused), i = $((e) => e.currentTime), a = $((e) => e.duration), o = $((e) => e.seekingTo), s = $((e) => e.fullscreen), c = $((e) => e.hideUI), l = $((e) => e.togglePictureInPicture), u = $((e) => e.pictureInPictureMode), d = $((e) => e.burnedInSubtitles), f = $((e) => e.passThroughPictureInPicture), m = $((e) => e.subtitleTracks), h = $((e) => e.requestSeek), [g, _] = A(null), y = p(null), b = p(void 0), x = u === "burn-in", C = m.length > 0, w = a > 0 && i === a, T = I(({ direction: e, stepSize: t }) => {
|
|
8055
8055
|
let r = jd(n.volume), i = e === "up" ? t : -t, a = Math.max(0, Math.min(1, r + i)), o = n.muted;
|
|
8056
8056
|
n.setVolume(Ad(a)), o && !n.muted && n.toggleMuted();
|
|
8057
|
-
}, [n]),
|
|
8058
|
-
|
|
8059
|
-
let r = (e) =>
|
|
8060
|
-
|
|
8057
|
+
}, [n]), E = p(!1);
|
|
8058
|
+
S(() => {
|
|
8059
|
+
let r = (e) => h ? h(e) : n.seek(e), i = (e) => e.composedPath()[0], a = (e) => {
|
|
8060
|
+
E.current = !!t.current?.contains(i(e) ?? null);
|
|
8061
8061
|
}, o = (a) => {
|
|
8062
8062
|
let o = i(a);
|
|
8063
8063
|
if (o?.isContentEditable || /^(input|textarea|select)$/i.test(o?.tagName ?? "")) return;
|
|
8064
|
-
let s = t.current?.contains(o ?? null) || o === document.body &&
|
|
8064
|
+
let s = t.current?.contains(o ?? null) || o === document.body && E.current;
|
|
8065
8065
|
if (e === "player" && !n.fullscreen && !s) return;
|
|
8066
8066
|
let c = !0;
|
|
8067
8067
|
if (a.key === "f") n.toggleFullscreen();
|
|
@@ -8088,11 +8088,11 @@ ${_f}
|
|
|
8088
8088
|
}, [
|
|
8089
8089
|
n,
|
|
8090
8090
|
T,
|
|
8091
|
-
|
|
8091
|
+
h,
|
|
8092
8092
|
e,
|
|
8093
8093
|
t
|
|
8094
8094
|
]);
|
|
8095
|
-
let
|
|
8095
|
+
let ee = I((e) => {
|
|
8096
8096
|
e.preventDefault(), e.deltaY < 0 ? T({
|
|
8097
8097
|
direction: "up",
|
|
8098
8098
|
stepSize: Lf
|
|
@@ -8101,21 +8101,21 @@ ${_f}
|
|
|
8101
8101
|
stepSize: Lf
|
|
8102
8102
|
});
|
|
8103
8103
|
}, [T]);
|
|
8104
|
-
|
|
8105
|
-
if (
|
|
8106
|
-
}, [
|
|
8104
|
+
S(() => {
|
|
8105
|
+
if (g) return g.addEventListener("wheel", ee, { passive: !1 }), () => g.removeEventListener("wheel", ee);
|
|
8106
|
+
}, [g, ee]);
|
|
8107
8107
|
let O = (e) => {
|
|
8108
|
-
if (!
|
|
8108
|
+
if (!f || f.active || f.armed || e.pointerType === "touch") return;
|
|
8109
8109
|
let { left: t, top: n, width: r, height: i } = e.currentTarget.getBoundingClientRect();
|
|
8110
|
-
|
|
8110
|
+
f.arm({
|
|
8111
8111
|
left: t,
|
|
8112
8112
|
top: n,
|
|
8113
8113
|
width: r,
|
|
8114
8114
|
height: i
|
|
8115
8115
|
});
|
|
8116
|
-
},
|
|
8117
|
-
return
|
|
8118
|
-
if (!
|
|
8116
|
+
}, j = !!f?.armed;
|
|
8117
|
+
return S(() => {
|
|
8118
|
+
if (!j) return;
|
|
8119
8119
|
clearInterval(b.current);
|
|
8120
8120
|
let e = Infinity, t = setInterval(() => {
|
|
8121
8121
|
if (Date.now() > e) {
|
|
@@ -8128,94 +8128,94 @@ ${_f}
|
|
|
8128
8128
|
return b.current = t, () => {
|
|
8129
8129
|
e = Date.now() + Bf;
|
|
8130
8130
|
};
|
|
8131
|
-
}, [
|
|
8131
|
+
}, [j]), S(() => () => clearInterval(b.current), []), /* @__PURE__ */ N("div", {
|
|
8132
8132
|
css: Vf,
|
|
8133
|
-
style: { ...
|
|
8133
|
+
style: { ...c ? {
|
|
8134
8134
|
opacity: "0",
|
|
8135
8135
|
pointerEvents: "none"
|
|
8136
|
-
} :
|
|
8137
|
-
children: [/* @__PURE__ */
|
|
8136
|
+
} : j ? { pointerEvents: "none" } : {} },
|
|
8137
|
+
children: [/* @__PURE__ */ k(ff, {}), /* @__PURE__ */ N("div", {
|
|
8138
8138
|
className: "actions",
|
|
8139
|
-
children: [/* @__PURE__ */
|
|
8139
|
+
children: [/* @__PURE__ */ N("div", {
|
|
8140
8140
|
className: "left",
|
|
8141
8141
|
children: [
|
|
8142
|
-
/* @__PURE__ */
|
|
8142
|
+
/* @__PURE__ */ k(Rd, {
|
|
8143
8143
|
id: "play",
|
|
8144
8144
|
tooltipPlace: "top-start",
|
|
8145
|
-
text: /* @__PURE__ */
|
|
8145
|
+
text: /* @__PURE__ */ k("button", {
|
|
8146
8146
|
className: "play",
|
|
8147
8147
|
type: "button",
|
|
8148
8148
|
onClick: () => n.togglePaused(),
|
|
8149
8149
|
"aria-label": w ? "Replay" : r ? "Play" : "Pause",
|
|
8150
|
-
children:
|
|
8150
|
+
children: k(w ? le : r ? v : D, {})
|
|
8151
8151
|
}),
|
|
8152
|
-
toolTipText: /* @__PURE__ */
|
|
8152
|
+
toolTipText: /* @__PURE__ */ k("span", { children: w ? "Replay (k)" : r ? "Play (k)" : "Pause (k)" })
|
|
8153
8153
|
}),
|
|
8154
|
-
/* @__PURE__ */
|
|
8155
|
-
/* @__PURE__ */
|
|
8154
|
+
/* @__PURE__ */ k(If, { ref: _ }),
|
|
8155
|
+
/* @__PURE__ */ k("div", {
|
|
8156
8156
|
className: "time",
|
|
8157
8157
|
children: Nd(o ?? i, a)
|
|
8158
8158
|
})
|
|
8159
8159
|
]
|
|
8160
|
-
}), /* @__PURE__ */
|
|
8160
|
+
}), /* @__PURE__ */ N("div", {
|
|
8161
8161
|
className: "right",
|
|
8162
8162
|
children: [
|
|
8163
|
-
/* @__PURE__ */
|
|
8164
|
-
/* @__PURE__ */
|
|
8165
|
-
/* @__PURE__ */
|
|
8166
|
-
|
|
8163
|
+
/* @__PURE__ */ k(Tf, {}),
|
|
8164
|
+
/* @__PURE__ */ k(jf, {}),
|
|
8165
|
+
/* @__PURE__ */ k(kf, {}),
|
|
8166
|
+
f ? /* @__PURE__ */ k(Rd, {
|
|
8167
8167
|
id: "picture-in-picture",
|
|
8168
8168
|
tooltipPlace: "top-end",
|
|
8169
|
-
text: /* @__PURE__ */
|
|
8169
|
+
text: /* @__PURE__ */ k("button", {
|
|
8170
8170
|
ref: y,
|
|
8171
|
-
className:
|
|
8171
|
+
className: f.armed ? "picture-in-picture armed" : "picture-in-picture",
|
|
8172
8172
|
type: "button",
|
|
8173
8173
|
onPointerEnter: O,
|
|
8174
8174
|
onPointerMove: O,
|
|
8175
|
-
onClick:
|
|
8175
|
+
onClick: f.active ? f.exit : void 0,
|
|
8176
8176
|
"aria-label": "Picture in picture",
|
|
8177
|
-
"aria-pressed":
|
|
8178
|
-
children: /* @__PURE__ */
|
|
8177
|
+
"aria-pressed": f.active,
|
|
8178
|
+
children: /* @__PURE__ */ k("img", {
|
|
8179
8179
|
src: pf,
|
|
8180
8180
|
alt: ""
|
|
8181
8181
|
})
|
|
8182
8182
|
}),
|
|
8183
|
-
toolTipText: /* @__PURE__ */
|
|
8184
|
-
}) :
|
|
8183
|
+
toolTipText: /* @__PURE__ */ k("span", { children: f.active ? "Exit picture in picture" : "Picture in picture" })
|
|
8184
|
+
}) : l ? /* @__PURE__ */ k(Rd, {
|
|
8185
8185
|
id: "picture-in-picture",
|
|
8186
8186
|
tooltipPlace: "top-end",
|
|
8187
|
-
text: /* @__PURE__ */
|
|
8187
|
+
text: /* @__PURE__ */ k("button", {
|
|
8188
8188
|
className: "picture-in-picture",
|
|
8189
8189
|
type: "button",
|
|
8190
|
-
onClick:
|
|
8191
|
-
disabled:
|
|
8192
|
-
"aria-label":
|
|
8193
|
-
"aria-pressed":
|
|
8194
|
-
children:
|
|
8190
|
+
onClick: l,
|
|
8191
|
+
disabled: x && !C,
|
|
8192
|
+
"aria-label": x ? "Put the subtitles in the video" : "Picture in picture",
|
|
8193
|
+
"aria-pressed": x ? d : void 0,
|
|
8194
|
+
children: x ? k(d ? hf : gf, {}) : /* @__PURE__ */ k("img", {
|
|
8195
8195
|
src: pf,
|
|
8196
8196
|
alt: ""
|
|
8197
8197
|
})
|
|
8198
8198
|
}),
|
|
8199
|
-
toolTipText: /* @__PURE__ */
|
|
8199
|
+
toolTipText: /* @__PURE__ */ k("span", { children: x ? C ? d ? "Subtitles are in the picture" : "Put the subtitles in the picture" : "This file has no subtitles" : "Picture in picture" })
|
|
8200
8200
|
}) : null,
|
|
8201
|
-
/* @__PURE__ */
|
|
8201
|
+
/* @__PURE__ */ k(Rd, {
|
|
8202
8202
|
id: "full-screen",
|
|
8203
8203
|
tooltipPlace: "top-end",
|
|
8204
|
-
text: /* @__PURE__ */
|
|
8204
|
+
text: /* @__PURE__ */ k("button", {
|
|
8205
8205
|
className: "full-screen",
|
|
8206
8206
|
type: "button",
|
|
8207
8207
|
onClick: () => n.toggleFullscreen(),
|
|
8208
8208
|
"aria-label": "Full screen",
|
|
8209
8209
|
"aria-pressed": s,
|
|
8210
|
-
children:
|
|
8210
|
+
children: k(s ? z : ce, {})
|
|
8211
8211
|
}),
|
|
8212
|
-
toolTipText: /* @__PURE__ */
|
|
8212
|
+
toolTipText: /* @__PURE__ */ k("span", { children: s ? "Exit full screen (f)" : "Full screen (f)" })
|
|
8213
8213
|
})
|
|
8214
8214
|
]
|
|
8215
8215
|
})]
|
|
8216
8216
|
})]
|
|
8217
8217
|
});
|
|
8218
|
-
}, Uf = 9e3, Wf =
|
|
8218
|
+
}, Uf = 9e3, Wf = s`
|
|
8219
8219
|
position: absolute;
|
|
8220
8220
|
inset: 0;
|
|
8221
8221
|
z-index: 2;
|
|
@@ -8259,8 +8259,8 @@ ${_f}
|
|
|
8259
8259
|
color: #fff;
|
|
8260
8260
|
}
|
|
8261
8261
|
`, Gf = () => {
|
|
8262
|
-
let e = $((e) => e.burnedInSubtitles), t = $((e) => e.pictureInPictureMode), [n, r] =
|
|
8263
|
-
return
|
|
8262
|
+
let e = $((e) => e.burnedInSubtitles), t = $((e) => e.pictureInPictureMode), [n, r] = A(!1);
|
|
8263
|
+
return S(() => {
|
|
8264
8264
|
if (t !== "burn-in" || !e) {
|
|
8265
8265
|
r(!1);
|
|
8266
8266
|
return;
|
|
@@ -8268,16 +8268,16 @@ ${_f}
|
|
|
8268
8268
|
r(!0);
|
|
8269
8269
|
let n = setTimeout(() => r(!1), Uf);
|
|
8270
8270
|
return () => clearTimeout(n);
|
|
8271
|
-
}, [t, e]), t !== "burn-in" || !e ? null : /* @__PURE__ */
|
|
8271
|
+
}, [t, e]), t !== "burn-in" || !e ? null : /* @__PURE__ */ k("div", {
|
|
8272
8272
|
css: Wf,
|
|
8273
8273
|
className: n ? "show" : "",
|
|
8274
8274
|
role: "status",
|
|
8275
|
-
children: /* @__PURE__ */
|
|
8275
|
+
children: /* @__PURE__ */ N("div", {
|
|
8276
8276
|
className: "card",
|
|
8277
|
-
children: [/* @__PURE__ */
|
|
8277
|
+
children: [/* @__PURE__ */ k("div", {
|
|
8278
8278
|
className: "text",
|
|
8279
8279
|
children: "Now click your browser's pop out button"
|
|
8280
|
-
}), /* @__PURE__ */
|
|
8280
|
+
}), /* @__PURE__ */ k("div", {
|
|
8281
8281
|
className: "arrow",
|
|
8282
8282
|
"aria-hidden": "true",
|
|
8283
8283
|
children: "→"
|
|
@@ -8287,7 +8287,7 @@ ${_f}
|
|
|
8287
8287
|
}, Kf = 1, qf = 6e3, Jf = 1, Yf = {
|
|
8288
8288
|
opening: "Skip Opening",
|
|
8289
8289
|
ending: "Skip Ending"
|
|
8290
|
-
}, Xf =
|
|
8290
|
+
}, Xf = s`
|
|
8291
8291
|
position: absolute;
|
|
8292
8292
|
inset: 0;
|
|
8293
8293
|
z-index: 2;
|
|
@@ -8339,7 +8339,7 @@ ${_f}
|
|
|
8339
8339
|
}
|
|
8340
8340
|
}
|
|
8341
8341
|
`, Zf = () => {
|
|
8342
|
-
let e = $((e) => e.chapters), t = $((e) => e.currentTime), n = $((e) => e.requestSeek), r = $((e) => e.seekPreview), i = $(), a =
|
|
8342
|
+
let e = $((e) => e.chapters), t = $((e) => e.currentTime), n = $((e) => e.requestSeek), r = $((e) => e.seekPreview), i = $(), a = g(() => lf(e), [e]), o = g(() => {
|
|
8343
8343
|
if (typeof t != "number") return;
|
|
8344
8344
|
let n = e.findIndex((e, n) => a[n] !== void 0 && e.start - Kf <= t && t < e.end), r = n >= 0 ? a[n] : void 0;
|
|
8345
8345
|
return r ? {
|
|
@@ -8350,13 +8350,13 @@ ${_f}
|
|
|
8350
8350
|
e,
|
|
8351
8351
|
a,
|
|
8352
8352
|
t
|
|
8353
|
-
]), s =
|
|
8354
|
-
|
|
8353
|
+
]), s = p(0), [c, l] = A(0);
|
|
8354
|
+
S(() => {
|
|
8355
8355
|
let e = typeof t == "number" ? t : 0, n = s.current;
|
|
8356
8356
|
s.current = e, e < n - Jf && l((e) => e + 1);
|
|
8357
8357
|
}, [t]);
|
|
8358
|
-
let [u, d] =
|
|
8359
|
-
return
|
|
8358
|
+
let [u, d] = A(!1), f = o ? `${o.kind}@${o.end}` : "";
|
|
8359
|
+
return S(() => {
|
|
8360
8360
|
if (!f) {
|
|
8361
8361
|
d(!1);
|
|
8362
8362
|
return;
|
|
@@ -8364,12 +8364,12 @@ ${_f}
|
|
|
8364
8364
|
d(!0);
|
|
8365
8365
|
let e = setTimeout(() => d(!1), qf);
|
|
8366
8366
|
return () => clearTimeout(e);
|
|
8367
|
-
}, [f, c]),
|
|
8367
|
+
}, [f, c]), S(() => {
|
|
8368
8368
|
o || d(!1);
|
|
8369
|
-
}, [o]), o ? /* @__PURE__ */
|
|
8369
|
+
}, [o]), o ? /* @__PURE__ */ k("div", {
|
|
8370
8370
|
css: Xf,
|
|
8371
8371
|
className: u && !r ? "show" : "",
|
|
8372
|
-
children: /* @__PURE__ */
|
|
8372
|
+
children: /* @__PURE__ */ k("button", {
|
|
8373
8373
|
type: "button",
|
|
8374
8374
|
className: "skip-chapter",
|
|
8375
8375
|
onClick: () => {
|
|
@@ -8378,7 +8378,7 @@ ${_f}
|
|
|
8378
8378
|
children: Yf[o.kind]
|
|
8379
8379
|
})
|
|
8380
8380
|
}) : null;
|
|
8381
|
-
}, Qf = 3e3, $f =
|
|
8381
|
+
}, Qf = 3e3, $f = s`
|
|
8382
8382
|
position: absolute;
|
|
8383
8383
|
inset: 0;
|
|
8384
8384
|
z-index: 2;
|
|
@@ -8392,7 +8392,7 @@ ${_f}
|
|
|
8392
8392
|
`, ep = (e, t) => {
|
|
8393
8393
|
let n = e.left - t.left, r = e.top - t.top;
|
|
8394
8394
|
return `path(evenodd, 'M0 0H${t.width}V${t.height}H0Z M${n} ${r}H${n + e.width}V${r + e.height}H${n}Z')`;
|
|
8395
|
-
}, tp =
|
|
8395
|
+
}, tp = s`
|
|
8396
8396
|
position: relative;
|
|
8397
8397
|
background-color: black;
|
|
8398
8398
|
display: flex;
|
|
@@ -8449,63 +8449,63 @@ ${_f}
|
|
|
8449
8449
|
&.hide {
|
|
8450
8450
|
cursor: none;
|
|
8451
8451
|
}
|
|
8452
|
-
`, np = (e, t = "") =>
|
|
8453
|
-
let r = `${t}${
|
|
8454
|
-
return
|
|
8452
|
+
`, np = (e, t = "") => d.toArray(e).flatMap((e, n) => {
|
|
8453
|
+
let r = `${t}${c(e) && e.key != null ? e.key : n}`;
|
|
8454
|
+
return c(e) && e.type === x ? np(e.props.children, `${r}/`) : [{
|
|
8455
8455
|
key: r,
|
|
8456
8456
|
item: e
|
|
8457
8457
|
}];
|
|
8458
8458
|
}), rp = ({ ref: e, onVideoRef: t, onSubtitleRef: n, overlay: r, controls: i, shortcuts: a, children: o }) => {
|
|
8459
|
-
let s = $(), c = $((e) => e.hideUI), l = $((e) => e.setHideUI), u = $((e) => e.hasMedia), d = $((e) => e.passThroughPictureInPicture), f =
|
|
8459
|
+
let s = $(), c = $((e) => e.hideUI), l = $((e) => e.setHideUI), u = $((e) => e.hasMedia), d = $((e) => e.passThroughPictureInPicture), f = p(void 0), m = p("mouse"), h = p({
|
|
8460
8460
|
x: -1,
|
|
8461
8461
|
y: -1
|
|
8462
|
-
}),
|
|
8463
|
-
|
|
8462
|
+
}), g = p(null);
|
|
8463
|
+
S(() => () => clearTimeout(f.current), []), S(() => {
|
|
8464
8464
|
u || (clearTimeout(f.current), l(!1));
|
|
8465
8465
|
}, [u, l]);
|
|
8466
|
-
let
|
|
8466
|
+
let _ = () => {
|
|
8467
8467
|
u && l(!0);
|
|
8468
|
-
},
|
|
8469
|
-
|
|
8470
|
-
},
|
|
8468
|
+
}, v = (t) => {
|
|
8469
|
+
g.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
|
|
8470
|
+
}, y = () => {
|
|
8471
8471
|
if (s.passThroughPictureInPicture?.armed) return !0;
|
|
8472
|
-
if (
|
|
8473
|
-
let { x: e, y: t } =
|
|
8474
|
-
if (!
|
|
8472
|
+
if (m.current !== "mouse") return !1;
|
|
8473
|
+
let { x: e, y: t } = h.current;
|
|
8474
|
+
if (!g.current || e < 0) return !1;
|
|
8475
8475
|
let n = document.elementFromPoint(e, t);
|
|
8476
|
-
return !!n &&
|
|
8477
|
-
},
|
|
8478
|
-
if (
|
|
8479
|
-
f.current = setTimeout(
|
|
8476
|
+
return !!n && g.current.contains(n) && !n.closest(".video");
|
|
8477
|
+
}, b = () => {
|
|
8478
|
+
if (y()) {
|
|
8479
|
+
f.current = setTimeout(b, Qf);
|
|
8480
8480
|
return;
|
|
8481
8481
|
}
|
|
8482
|
-
|
|
8483
|
-
},
|
|
8484
|
-
l(!1), clearTimeout(f.current), f.current = setTimeout(
|
|
8482
|
+
_();
|
|
8483
|
+
}, x = () => {
|
|
8484
|
+
l(!1), clearTimeout(f.current), f.current = setTimeout(b, Qf);
|
|
8485
8485
|
};
|
|
8486
|
-
return /* @__PURE__ */
|
|
8486
|
+
return /* @__PURE__ */ N("div", {
|
|
8487
8487
|
css: tp,
|
|
8488
|
-
ref:
|
|
8488
|
+
ref: v,
|
|
8489
8489
|
onPointerMove: (e) => {
|
|
8490
|
-
|
|
8490
|
+
m.current = e.pointerType, e.pointerType === "mouse" && (h.current = {
|
|
8491
8491
|
x: e.clientX,
|
|
8492
8492
|
y: e.clientY
|
|
8493
|
-
},
|
|
8493
|
+
}, x());
|
|
8494
8494
|
},
|
|
8495
8495
|
onPointerDown: (e) => {
|
|
8496
|
-
|
|
8496
|
+
m.current = e.pointerType;
|
|
8497
8497
|
},
|
|
8498
8498
|
onMouseOut: (e) => {
|
|
8499
8499
|
let t = e.relatedTarget;
|
|
8500
8500
|
if (t && e.currentTarget.contains(t)) return;
|
|
8501
8501
|
let { left: n, right: r, top: i, bottom: a } = e.currentTarget.getBoundingClientRect();
|
|
8502
|
-
e.clientX >= n && e.clientX < r && e.clientY >= i && e.clientY < a || (clearTimeout(f.current),
|
|
8502
|
+
e.clientX >= n && e.clientX < r && e.clientY >= i && e.clientY < a || (clearTimeout(f.current), _());
|
|
8503
8503
|
},
|
|
8504
8504
|
className: c ? "hide" : "",
|
|
8505
8505
|
tabIndex: a === "player" ? -1 : void 0,
|
|
8506
8506
|
children: [
|
|
8507
|
-
/* @__PURE__ */
|
|
8508
|
-
np(r).map(({ key: e, item: t }) => /* @__PURE__ */
|
|
8507
|
+
/* @__PURE__ */ k(Dd, { onSubtitleRef: n }),
|
|
8508
|
+
np(r).map(({ key: e, item: t }) => /* @__PURE__ */ k("div", {
|
|
8509
8509
|
css: $f,
|
|
8510
8510
|
style: { ...c ? {
|
|
8511
8511
|
opacity: "0",
|
|
@@ -8514,27 +8514,27 @@ ${_f}
|
|
|
8514
8514
|
} : {} },
|
|
8515
8515
|
children: t
|
|
8516
8516
|
}, e)),
|
|
8517
|
-
i === !1 ? null : /* @__PURE__ */
|
|
8517
|
+
i === !1 ? null : /* @__PURE__ */ k(Hf, {
|
|
8518
8518
|
shortcuts: a,
|
|
8519
|
-
root:
|
|
8519
|
+
root: g
|
|
8520
8520
|
}),
|
|
8521
|
-
/* @__PURE__ */
|
|
8522
|
-
/* @__PURE__ */
|
|
8523
|
-
d?.armed &&
|
|
8521
|
+
/* @__PURE__ */ k(Gf, {}),
|
|
8522
|
+
/* @__PURE__ */ k(Zf, {}),
|
|
8523
|
+
d?.armed && g.current ? /* @__PURE__ */ k("div", {
|
|
8524
8524
|
className: "pass-through",
|
|
8525
|
-
style: { clipPath: ep(d.armed,
|
|
8525
|
+
style: { clipPath: ep(d.armed, g.current.getBoundingClientRect()) },
|
|
8526
8526
|
onPointerOver: d.disarm
|
|
8527
8527
|
}) : null,
|
|
8528
|
-
/* @__PURE__ */
|
|
8528
|
+
/* @__PURE__ */ N("div", {
|
|
8529
8529
|
className: "video",
|
|
8530
8530
|
onClick: () => {
|
|
8531
|
-
if (
|
|
8531
|
+
if (m.current === "mouse") {
|
|
8532
8532
|
s.togglePaused();
|
|
8533
8533
|
return;
|
|
8534
8534
|
}
|
|
8535
|
-
c ?
|
|
8535
|
+
c ? x() : (clearTimeout(f.current), _());
|
|
8536
8536
|
},
|
|
8537
|
-
children: [t ? /* @__PURE__ */
|
|
8537
|
+
children: [t ? /* @__PURE__ */ k("video", {
|
|
8538
8538
|
ref: t,
|
|
8539
8539
|
playsInline: !0
|
|
8540
8540
|
}) : null, o]
|
|
@@ -8542,120 +8542,120 @@ ${_f}
|
|
|
8542
8542
|
]
|
|
8543
8543
|
});
|
|
8544
8544
|
}, ip = ({ options: e, children: t }) => {
|
|
8545
|
-
let n = "media" in e ? e : null, r = n ? null : e, { title: i, chapters: a } = e, { size: o, downloadedRanges: s, publicPath: c, libavWorkerUrl: l, read: u, thumbnailRead: d, thumbnailsEnabled: f } = r ?? {},
|
|
8546
|
-
|
|
8547
|
-
let { expose:
|
|
8548
|
-
|
|
8549
|
-
let
|
|
8550
|
-
|
|
8551
|
-
if (!
|
|
8545
|
+
let n = "media" in e ? e : null, r = n ? null : e, { title: i, chapters: a } = e, { size: o, downloadedRanges: s, publicPath: c, libavWorkerUrl: l, read: u, thumbnailRead: d, thumbnailsEnabled: f } = r ?? {}, m = Rc(), h = zc(), [_, v] = A(null), [y, b] = A(null), x = n?.media ?? _;
|
|
8546
|
+
S(() => (m?.(x), () => m?.(null)), [x, m]);
|
|
8547
|
+
let { expose: C } = e, w = C === !0 ? {} : C || void 0, T = p(w);
|
|
8548
|
+
T.current = w;
|
|
8549
|
+
let E = w ? w.id : void 0, ee = w ? w.origin : void 0, D = w ? w.channel : void 0;
|
|
8550
|
+
S(() => {
|
|
8551
|
+
if (!C || !x) return;
|
|
8552
8552
|
let e, t = !1;
|
|
8553
8553
|
return import("./lib-remote-C1YHVUVa.js").then(({ exposePlayer: n }) => {
|
|
8554
|
-
t || (e = n(
|
|
8554
|
+
t || (e = n(x, T.current ?? {}));
|
|
8555
8555
|
}).catch(() => {}), () => {
|
|
8556
8556
|
t = !0, e?.();
|
|
8557
8557
|
};
|
|
8558
8558
|
}, [
|
|
8559
|
-
|
|
8560
|
-
!!
|
|
8561
|
-
|
|
8559
|
+
x,
|
|
8560
|
+
!!C,
|
|
8561
|
+
E,
|
|
8562
8562
|
ee,
|
|
8563
|
-
|
|
8564
|
-
]), id(
|
|
8565
|
-
let O = r?.normalizeVolume, [
|
|
8566
|
-
|
|
8563
|
+
D
|
|
8564
|
+
]), id(_, y, r);
|
|
8565
|
+
let O = r?.normalizeVolume, [j, te] = A(!!O);
|
|
8566
|
+
S(() => {
|
|
8567
8567
|
te(!!O);
|
|
8568
8568
|
}, [O]);
|
|
8569
|
-
let ne =
|
|
8569
|
+
let ne = p(r?.onNormalizeVolumeChange);
|
|
8570
8570
|
ne.current = r?.onNormalizeVolumeChange;
|
|
8571
|
-
let
|
|
8572
|
-
enabled:
|
|
8573
|
-
available: !
|
|
8571
|
+
let M = r?.normalizerWorkletUrl, { refused: N } = yd(_, M, j), re = g(() => M && typeof AudioWorkletNode == "function" ? {
|
|
8572
|
+
enabled: j,
|
|
8573
|
+
available: !N,
|
|
8574
8574
|
setEnabled: (e) => {
|
|
8575
8575
|
te(e), ne.current?.(e);
|
|
8576
8576
|
}
|
|
8577
8577
|
} : null, [
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
]), { thumbnails:
|
|
8578
|
+
M,
|
|
8579
|
+
j,
|
|
8580
|
+
N
|
|
8581
|
+
]), { thumbnails: P, requestThumbnail: F } = sd({
|
|
8582
8582
|
publicPath: c,
|
|
8583
8583
|
workerUrl: l,
|
|
8584
8584
|
length: f === !1 ? void 0 : o,
|
|
8585
8585
|
read: d ?? u,
|
|
8586
8586
|
downloadedRanges: s
|
|
8587
|
-
}),
|
|
8588
|
-
|
|
8589
|
-
|
|
8587
|
+
}), I = n?.thumbnails?.all ?? P, { toggle: ie, mode: ae, burnedIn: oe } = cd(_, y), se = md(n?.media ?? null, n?.pictureInPicture), L = $((e) => e.setSourceState), R = n ? !!n.media : o !== void 0;
|
|
8588
|
+
S(() => {
|
|
8589
|
+
L({
|
|
8590
8590
|
title: i,
|
|
8591
8591
|
size: o,
|
|
8592
8592
|
downloadedRanges: s,
|
|
8593
|
-
hasMedia:
|
|
8593
|
+
hasMedia: R
|
|
8594
8594
|
});
|
|
8595
8595
|
}, [
|
|
8596
|
-
|
|
8596
|
+
L,
|
|
8597
8597
|
i,
|
|
8598
8598
|
o,
|
|
8599
8599
|
s,
|
|
8600
|
-
|
|
8600
|
+
R
|
|
8601
8601
|
]);
|
|
8602
|
-
let
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
thumbnails:
|
|
8606
|
-
thumbnailAt:
|
|
8607
|
-
requestThumbnail:
|
|
8608
|
-
togglePictureInPicture:
|
|
8609
|
-
pictureInPictureMode:
|
|
8610
|
-
burnedInSubtitles:
|
|
8602
|
+
let ce = n?.thumbnails?.at;
|
|
8603
|
+
S(() => {
|
|
8604
|
+
L({
|
|
8605
|
+
thumbnails: I,
|
|
8606
|
+
thumbnailAt: ce,
|
|
8607
|
+
requestThumbnail: F,
|
|
8608
|
+
togglePictureInPicture: ie,
|
|
8609
|
+
pictureInPictureMode: ae,
|
|
8610
|
+
burnedInSubtitles: oe
|
|
8611
8611
|
});
|
|
8612
8612
|
}, [
|
|
8613
|
+
L,
|
|
8613
8614
|
I,
|
|
8615
|
+
ce,
|
|
8616
|
+
F,
|
|
8617
|
+
ie,
|
|
8614
8618
|
ae,
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
let R = n?.subtitles?.selection, ue = n?.audioTracks?.selection;
|
|
8626
|
-
return D(() => {
|
|
8627
|
-
R && I({
|
|
8628
|
-
subtitleTracks: R.options.map(({ id: e, label: t, disabled: n }) => ({
|
|
8619
|
+
oe
|
|
8620
|
+
]), S(() => {
|
|
8621
|
+
L({ volumeNormalizer: re });
|
|
8622
|
+
}, [L, re]), S(() => {
|
|
8623
|
+
L({ passThroughPictureInPicture: se });
|
|
8624
|
+
}, [L, se]);
|
|
8625
|
+
let z = n?.subtitles?.selection, le = n?.audioTracks?.selection;
|
|
8626
|
+
return S(() => {
|
|
8627
|
+
z && L({
|
|
8628
|
+
subtitleTracks: z.options.map(({ id: e, label: t, disabled: n }) => ({
|
|
8629
8629
|
id: e,
|
|
8630
8630
|
label: t,
|
|
8631
8631
|
disabled: n
|
|
8632
8632
|
})),
|
|
8633
|
-
selectedSubtitleTrack:
|
|
8634
|
-
selectSubtitleTrack: (e) =>
|
|
8635
|
-
subtitleOffLabel:
|
|
8633
|
+
selectedSubtitleTrack: z.selectedId ?? void 0,
|
|
8634
|
+
selectSubtitleTrack: (e) => z.select(e == null ? null : String(e)),
|
|
8635
|
+
subtitleOffLabel: z.offLabel
|
|
8636
8636
|
});
|
|
8637
|
-
}, [
|
|
8638
|
-
|
|
8639
|
-
audioTracks:
|
|
8637
|
+
}, [L, z]), S(() => {
|
|
8638
|
+
le && L({
|
|
8639
|
+
audioTracks: le.options.map(({ id: e, label: t, disabled: n }) => ({
|
|
8640
8640
|
id: e,
|
|
8641
8641
|
label: t,
|
|
8642
8642
|
disabled: n
|
|
8643
8643
|
})),
|
|
8644
|
-
selectedAudioTrack:
|
|
8645
|
-
selectAudioTrack: (e) =>
|
|
8644
|
+
selectedAudioTrack: le.selectedId ?? void 0,
|
|
8645
|
+
selectAudioTrack: (e) => le.select(String(e))
|
|
8646
8646
|
});
|
|
8647
|
-
}, [
|
|
8648
|
-
a &&
|
|
8649
|
-
}, [
|
|
8650
|
-
ref:
|
|
8651
|
-
onVideoRef: n ? void 0 :
|
|
8652
|
-
onSubtitleRef:
|
|
8647
|
+
}, [L, le]), S(() => {
|
|
8648
|
+
a && L({ chapters: a });
|
|
8649
|
+
}, [L, a]), /* @__PURE__ */ k(rp, {
|
|
8650
|
+
ref: h,
|
|
8651
|
+
onVideoRef: n ? void 0 : v,
|
|
8652
|
+
onSubtitleRef: b,
|
|
8653
8653
|
overlay: e.overlay,
|
|
8654
8654
|
controls: e.controls,
|
|
8655
8655
|
shortcuts: e.shortcuts,
|
|
8656
8656
|
children: t
|
|
8657
8657
|
});
|
|
8658
|
-
}, ap =
|
|
8658
|
+
}, ap = s`
|
|
8659
8659
|
/**
|
|
8660
8660
|
* The chrome's whole scale, in one place.
|
|
8661
8661
|
*
|
|
@@ -8725,20 +8725,20 @@ ${_f}
|
|
|
8725
8725
|
height: 100%;
|
|
8726
8726
|
width: 100%;
|
|
8727
8727
|
overflow: hidden;
|
|
8728
|
-
`, op = (e) => /* @__PURE__ */
|
|
8728
|
+
`, op = (e) => /* @__PURE__ */ k("div", {
|
|
8729
8729
|
css: ap,
|
|
8730
|
-
children: /* @__PURE__ */
|
|
8730
|
+
children: /* @__PURE__ */ k(qu.Provider, { children: /* @__PURE__ */ k(ip, {
|
|
8731
8731
|
options: e,
|
|
8732
8732
|
children: e.children
|
|
8733
8733
|
}) })
|
|
8734
8734
|
}), sp = ({ url: e }) => {
|
|
8735
|
-
let [t, n] =
|
|
8736
|
-
return
|
|
8735
|
+
let [t, n] = A(null);
|
|
8736
|
+
return S(() => {
|
|
8737
8737
|
t?.play().catch(() => {});
|
|
8738
|
-
}, [t]), /* @__PURE__ */
|
|
8738
|
+
}, [t]), /* @__PURE__ */ k(op, {
|
|
8739
8739
|
media: t,
|
|
8740
8740
|
shortcuts: "player",
|
|
8741
|
-
children: /* @__PURE__ */
|
|
8741
|
+
children: /* @__PURE__ */ k("video", {
|
|
8742
8742
|
ref: n,
|
|
8743
8743
|
src: e,
|
|
8744
8744
|
playsInline: !0
|