@norskvideo/norsk-studio-alpha 1.27.0-2025-11-13-b28a5d1a → 1.27.0-2025-11-14-3956ca4c
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/client/info.js +615 -594
- package/client/style.css +79 -14
- package/lib/output.tams/inline-view.js +15 -1
- package/lib/output.tams/inline-view.js.map +1 -1
- package/lib/output.tams/runtime.js +1 -1
- package/lib/output.tams/runtime.js.map +1 -1
- package/package.json +4 -4
package/client/info.js
CHANGED
|
@@ -16053,15 +16053,15 @@ var import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
|
16053
16053
|
// ../norsk-player-react/dist/norsk-player-react.es.js
|
|
16054
16054
|
var import_react = __toESM(require_react());
|
|
16055
16055
|
var ea2 = { exports: {} };
|
|
16056
|
-
var
|
|
16056
|
+
var ci2 = {};
|
|
16057
16057
|
var xn2;
|
|
16058
16058
|
function Fo2() {
|
|
16059
16059
|
return xn2 || (xn2 = 1, function() {
|
|
16060
|
-
var t = import_react.default, e = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"),
|
|
16060
|
+
var t = import_react.default, e = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g2 = Symbol.for("react.suspense"), E2 = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), D = Symbol.iterator, S2 = "@@iterator";
|
|
16061
16061
|
function I(o) {
|
|
16062
16062
|
if (o === null || typeof o != "object")
|
|
16063
16063
|
return null;
|
|
16064
|
-
var h =
|
|
16064
|
+
var h = D && o[D] || o[S2];
|
|
16065
16065
|
return typeof h == "function" ? h : null;
|
|
16066
16066
|
}
|
|
16067
16067
|
var k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -16076,22 +16076,22 @@ function Fo2() {
|
|
|
16076
16076
|
{
|
|
16077
16077
|
var y2 = k.ReactDebugCurrentFrame, N = y2.getStackAddendum();
|
|
16078
16078
|
N !== "" && (h += "%s", v = v.concat([N]));
|
|
16079
|
-
var V2 = v.map(function(
|
|
16080
|
-
return String(
|
|
16079
|
+
var V2 = v.map(function(C2) {
|
|
16080
|
+
return String(C2);
|
|
16081
16081
|
});
|
|
16082
16082
|
V2.unshift("Warning: " + h), Function.prototype.apply.call(console[o], console, V2);
|
|
16083
16083
|
}
|
|
16084
16084
|
}
|
|
16085
16085
|
var x = false, U2 = false, te2 = false, ve2 = false, Te2 = false, Jt2;
|
|
16086
16086
|
Jt2 = Symbol.for("react.module.reference");
|
|
16087
|
-
function
|
|
16088
|
-
return !!(typeof o == "string" || typeof o == "function" || o === a || o === n || Te2 || o === r || o ===
|
|
16087
|
+
function Wi2(o) {
|
|
16088
|
+
return !!(typeof o == "string" || typeof o == "function" || o === a || o === n || Te2 || o === r || o === g2 || o === E2 || ve2 || o === f || x || U2 || te2 || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === _ || o.$$typeof === l || o.$$typeof === d || o.$$typeof === c || // This needs to include all possible module reference object
|
|
16089
16089
|
// types supported by any Flight configuration anywhere since
|
|
16090
16090
|
// we don't know which Flight build this will end up being used
|
|
16091
16091
|
// with.
|
|
16092
16092
|
o.$$typeof === Jt2 || o.getModuleId !== void 0));
|
|
16093
16093
|
}
|
|
16094
|
-
function
|
|
16094
|
+
function Bi2(o, h, v) {
|
|
16095
16095
|
var y2 = o.displayName;
|
|
16096
16096
|
if (y2)
|
|
16097
16097
|
return y2;
|
|
@@ -16117,7 +16117,7 @@ function Fo2() {
|
|
|
16117
16117
|
return "Profiler";
|
|
16118
16118
|
case r:
|
|
16119
16119
|
return "StrictMode";
|
|
16120
|
-
case
|
|
16120
|
+
case g2:
|
|
16121
16121
|
return "Suspense";
|
|
16122
16122
|
case E2:
|
|
16123
16123
|
return "SuspenseList";
|
|
@@ -16131,14 +16131,14 @@ function Fo2() {
|
|
|
16131
16131
|
var v = o;
|
|
16132
16132
|
return ei2(v._context) + ".Provider";
|
|
16133
16133
|
case c:
|
|
16134
|
-
return
|
|
16134
|
+
return Bi2(o, o.render, "ForwardRef");
|
|
16135
16135
|
case _:
|
|
16136
16136
|
var y2 = o.displayName || null;
|
|
16137
16137
|
return y2 !== null ? y2 : Me2(o.type) || "Memo";
|
|
16138
16138
|
case m: {
|
|
16139
|
-
var N = o, V2 = N._payload,
|
|
16139
|
+
var N = o, V2 = N._payload, C2 = N._init;
|
|
16140
16140
|
try {
|
|
16141
|
-
return Me2(
|
|
16141
|
+
return Me2(C2(V2));
|
|
16142
16142
|
} catch {
|
|
16143
16143
|
return null;
|
|
16144
16144
|
}
|
|
@@ -16146,14 +16146,14 @@ function Fo2() {
|
|
|
16146
16146
|
}
|
|
16147
16147
|
return null;
|
|
16148
16148
|
}
|
|
16149
|
-
var
|
|
16149
|
+
var Ce2 = Object.assign, Ze2 = 0, ti2, Vi2, Be2, ii2, ai2, ri2, ni2;
|
|
16150
16150
|
function si2() {
|
|
16151
16151
|
}
|
|
16152
16152
|
si2.__reactDisabledLog = true;
|
|
16153
|
-
function
|
|
16153
|
+
function Gi2() {
|
|
16154
16154
|
{
|
|
16155
16155
|
if (Ze2 === 0) {
|
|
16156
|
-
ti2 = console.log,
|
|
16156
|
+
ti2 = console.log, Vi2 = console.info, Be2 = console.warn, ii2 = console.error, ai2 = console.group, ri2 = console.groupCollapsed, ni2 = console.groupEnd;
|
|
16157
16157
|
var o = {
|
|
16158
16158
|
configurable: true,
|
|
16159
16159
|
enumerable: true,
|
|
@@ -16173,7 +16173,7 @@ function Fo2() {
|
|
|
16173
16173
|
Ze2++;
|
|
16174
16174
|
}
|
|
16175
16175
|
}
|
|
16176
|
-
function
|
|
16176
|
+
function Ki2() {
|
|
16177
16177
|
{
|
|
16178
16178
|
if (Ze2--, Ze2 === 0) {
|
|
16179
16179
|
var o = {
|
|
@@ -16182,25 +16182,25 @@ function Fo2() {
|
|
|
16182
16182
|
writable: true
|
|
16183
16183
|
};
|
|
16184
16184
|
Object.defineProperties(console, {
|
|
16185
|
-
log:
|
|
16185
|
+
log: Ce2({}, o, {
|
|
16186
16186
|
value: ti2
|
|
16187
16187
|
}),
|
|
16188
|
-
info:
|
|
16189
|
-
value:
|
|
16188
|
+
info: Ce2({}, o, {
|
|
16189
|
+
value: Vi2
|
|
16190
16190
|
}),
|
|
16191
|
-
warn:
|
|
16192
|
-
value:
|
|
16191
|
+
warn: Ce2({}, o, {
|
|
16192
|
+
value: Be2
|
|
16193
16193
|
}),
|
|
16194
|
-
error:
|
|
16194
|
+
error: Ce2({}, o, {
|
|
16195
16195
|
value: ii2
|
|
16196
16196
|
}),
|
|
16197
|
-
group:
|
|
16197
|
+
group: Ce2({}, o, {
|
|
16198
16198
|
value: ai2
|
|
16199
16199
|
}),
|
|
16200
|
-
groupCollapsed:
|
|
16200
|
+
groupCollapsed: Ce2({}, o, {
|
|
16201
16201
|
value: ri2
|
|
16202
16202
|
}),
|
|
16203
|
-
groupEnd:
|
|
16203
|
+
groupEnd: Ce2({}, o, {
|
|
16204
16204
|
value: ni2
|
|
16205
16205
|
})
|
|
16206
16206
|
});
|
|
@@ -16224,10 +16224,10 @@ function Fo2() {
|
|
|
16224
16224
|
}
|
|
16225
16225
|
var St2 = false, lt;
|
|
16226
16226
|
{
|
|
16227
|
-
var
|
|
16228
|
-
lt = new
|
|
16227
|
+
var qi2 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
16228
|
+
lt = new qi2();
|
|
16229
16229
|
}
|
|
16230
|
-
function
|
|
16230
|
+
function Ve2(o, h) {
|
|
16231
16231
|
if (!o || St2)
|
|
16232
16232
|
return "";
|
|
16233
16233
|
{
|
|
@@ -16240,30 +16240,30 @@ function Fo2() {
|
|
|
16240
16240
|
var N = Error.prepareStackTrace;
|
|
16241
16241
|
Error.prepareStackTrace = void 0;
|
|
16242
16242
|
var V2;
|
|
16243
|
-
V2 = It.current, It.current = null,
|
|
16243
|
+
V2 = It.current, It.current = null, Gi2();
|
|
16244
16244
|
try {
|
|
16245
16245
|
if (h) {
|
|
16246
|
-
var
|
|
16246
|
+
var C2 = function() {
|
|
16247
16247
|
throw Error();
|
|
16248
16248
|
};
|
|
16249
|
-
if (Object.defineProperty(
|
|
16249
|
+
if (Object.defineProperty(C2.prototype, "props", {
|
|
16250
16250
|
set: function() {
|
|
16251
16251
|
throw Error();
|
|
16252
16252
|
}
|
|
16253
16253
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
16254
16254
|
try {
|
|
16255
|
-
Reflect.construct(
|
|
16255
|
+
Reflect.construct(C2, []);
|
|
16256
16256
|
} catch (me2) {
|
|
16257
16257
|
y2 = me2;
|
|
16258
16258
|
}
|
|
16259
|
-
Reflect.construct(o, [],
|
|
16259
|
+
Reflect.construct(o, [], C2);
|
|
16260
16260
|
} else {
|
|
16261
16261
|
try {
|
|
16262
|
-
|
|
16262
|
+
C2.call();
|
|
16263
16263
|
} catch (me2) {
|
|
16264
16264
|
y2 = me2;
|
|
16265
16265
|
}
|
|
16266
|
-
o.call(
|
|
16266
|
+
o.call(C2.prototype);
|
|
16267
16267
|
}
|
|
16268
16268
|
} else {
|
|
16269
16269
|
try {
|
|
@@ -16293,15 +16293,15 @@ function Fo2() {
|
|
|
16293
16293
|
}
|
|
16294
16294
|
}
|
|
16295
16295
|
} finally {
|
|
16296
|
-
St2 = false, It.current = V2,
|
|
16296
|
+
St2 = false, It.current = V2, Ki2(), Error.prepareStackTrace = N;
|
|
16297
16297
|
}
|
|
16298
16298
|
var kt = o ? o.displayName || o.name : "", ct2 = kt ? ot2(kt) : "";
|
|
16299
16299
|
return typeof o == "function" && lt.set(o, ct2), ct2;
|
|
16300
16300
|
}
|
|
16301
|
-
function
|
|
16302
|
-
return
|
|
16301
|
+
function Yi2(o, h, v) {
|
|
16302
|
+
return Ve2(o, false);
|
|
16303
16303
|
}
|
|
16304
|
-
function
|
|
16304
|
+
function Qi2(o) {
|
|
16305
16305
|
var h = o.prototype;
|
|
16306
16306
|
return !!(h && h.isReactComponent);
|
|
16307
16307
|
}
|
|
@@ -16309,11 +16309,11 @@ function Fo2() {
|
|
|
16309
16309
|
if (o == null)
|
|
16310
16310
|
return "";
|
|
16311
16311
|
if (typeof o == "function")
|
|
16312
|
-
return
|
|
16312
|
+
return Ve2(o, Qi2(o));
|
|
16313
16313
|
if (typeof o == "string")
|
|
16314
16314
|
return ot2(o);
|
|
16315
16315
|
switch (o) {
|
|
16316
|
-
case
|
|
16316
|
+
case g2:
|
|
16317
16317
|
return ot2("Suspense");
|
|
16318
16318
|
case E2:
|
|
16319
16319
|
return ot2("SuspenseList");
|
|
@@ -16321,7 +16321,7 @@ function Fo2() {
|
|
|
16321
16321
|
if (typeof o == "object")
|
|
16322
16322
|
switch (o.$$typeof) {
|
|
16323
16323
|
case c:
|
|
16324
|
-
return
|
|
16324
|
+
return Yi2(o.render);
|
|
16325
16325
|
case _:
|
|
16326
16326
|
return dt2(o.type, h, v);
|
|
16327
16327
|
case m: {
|
|
@@ -16345,24 +16345,24 @@ function Fo2() {
|
|
|
16345
16345
|
function Mn2(o, h, v, y2, N) {
|
|
16346
16346
|
{
|
|
16347
16347
|
var V2 = Function.call.bind(Xe2);
|
|
16348
|
-
for (var
|
|
16349
|
-
if (V2(o,
|
|
16348
|
+
for (var C2 in o)
|
|
16349
|
+
if (V2(o, C2)) {
|
|
16350
16350
|
var w = void 0;
|
|
16351
16351
|
try {
|
|
16352
|
-
if (typeof o[
|
|
16353
|
-
var he2 = Error((y2 || "React class") + ": " + v + " type `" +
|
|
16352
|
+
if (typeof o[C2] != "function") {
|
|
16353
|
+
var he2 = Error((y2 || "React class") + ": " + v + " type `" + C2 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[C2] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
16354
16354
|
throw he2.name = "Invariant Violation", he2;
|
|
16355
16355
|
}
|
|
16356
|
-
w = o[
|
|
16356
|
+
w = o[C2](h, C2, y2, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
16357
16357
|
} catch (z2) {
|
|
16358
16358
|
w = z2;
|
|
16359
16359
|
}
|
|
16360
|
-
w && !(w instanceof Error) && (ut2(N), P2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y2 || "React class", v,
|
|
16360
|
+
w && !(w instanceof Error) && (ut2(N), P2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y2 || "React class", v, C2, typeof w), ut2(null)), w instanceof Error && !(w.message in oi2) && (oi2[w.message] = true, ut2(N), P2("Failed %s type: %s", v, w.message), ut2(null));
|
|
16361
16361
|
}
|
|
16362
16362
|
}
|
|
16363
16363
|
}
|
|
16364
16364
|
var W2 = Array.isArray;
|
|
16365
|
-
function
|
|
16365
|
+
function Ge2(o) {
|
|
16366
16366
|
return W2(o);
|
|
16367
16367
|
}
|
|
16368
16368
|
function _r2(o) {
|
|
@@ -16373,24 +16373,24 @@ function Fo2() {
|
|
|
16373
16373
|
}
|
|
16374
16374
|
function gr2(o) {
|
|
16375
16375
|
try {
|
|
16376
|
-
return
|
|
16376
|
+
return zi2(o), false;
|
|
16377
16377
|
} catch {
|
|
16378
16378
|
return true;
|
|
16379
16379
|
}
|
|
16380
16380
|
}
|
|
16381
|
-
function
|
|
16381
|
+
function zi2(o) {
|
|
16382
16382
|
return "" + o;
|
|
16383
16383
|
}
|
|
16384
|
-
function
|
|
16384
|
+
function Zi2(o) {
|
|
16385
16385
|
if (gr2(o))
|
|
16386
|
-
return P2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _r2(o)),
|
|
16386
|
+
return P2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _r2(o)), zi2(o);
|
|
16387
16387
|
}
|
|
16388
|
-
var
|
|
16388
|
+
var Xi2 = k.ReactCurrentOwner, br2 = {
|
|
16389
16389
|
key: true,
|
|
16390
16390
|
ref: true,
|
|
16391
16391
|
__self: true,
|
|
16392
16392
|
__source: true
|
|
16393
|
-
},
|
|
16393
|
+
}, ji2, le2;
|
|
16394
16394
|
function X(o) {
|
|
16395
16395
|
if (Xe2.call(o, "ref")) {
|
|
16396
16396
|
var h = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
@@ -16399,7 +16399,7 @@ function Fo2() {
|
|
|
16399
16399
|
}
|
|
16400
16400
|
return o.ref !== void 0;
|
|
16401
16401
|
}
|
|
16402
|
-
function
|
|
16402
|
+
function Ji2(o) {
|
|
16403
16403
|
if (Xe2.call(o, "key")) {
|
|
16404
16404
|
var h = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
16405
16405
|
if (h && h.isReactWarning)
|
|
@@ -16408,12 +16408,12 @@ function Fo2() {
|
|
|
16408
16408
|
return o.key !== void 0;
|
|
16409
16409
|
}
|
|
16410
16410
|
function G(o, h) {
|
|
16411
|
-
typeof o.ref == "string" &&
|
|
16411
|
+
typeof o.ref == "string" && Xi2.current;
|
|
16412
16412
|
}
|
|
16413
16413
|
function ce2(o, h) {
|
|
16414
16414
|
{
|
|
16415
16415
|
var v = function() {
|
|
16416
|
-
|
|
16416
|
+
ji2 || (ji2 = true, P2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
16417
16417
|
};
|
|
16418
16418
|
v.isReactWarning = true, Object.defineProperty(o, "key", {
|
|
16419
16419
|
get: v,
|
|
@@ -16432,7 +16432,7 @@ function Fo2() {
|
|
|
16432
16432
|
});
|
|
16433
16433
|
}
|
|
16434
16434
|
}
|
|
16435
|
-
var So2 = function(o, h, v, y2, N, V2,
|
|
16435
|
+
var So2 = function(o, h, v, y2, N, V2, C2) {
|
|
16436
16436
|
var w = {
|
|
16437
16437
|
// This tag allows us to uniquely identify this as a React Element
|
|
16438
16438
|
$$typeof: e,
|
|
@@ -16440,7 +16440,7 @@ function Fo2() {
|
|
|
16440
16440
|
type: o,
|
|
16441
16441
|
key: h,
|
|
16442
16442
|
ref: v,
|
|
16443
|
-
props:
|
|
16443
|
+
props: C2,
|
|
16444
16444
|
// Record the component responsible for creating this element.
|
|
16445
16445
|
_owner: V2
|
|
16446
16446
|
};
|
|
@@ -16463,20 +16463,20 @@ function Fo2() {
|
|
|
16463
16463
|
};
|
|
16464
16464
|
function Mo2(o, h, v, y2, N) {
|
|
16465
16465
|
{
|
|
16466
|
-
var V2,
|
|
16467
|
-
v !== void 0 && (
|
|
16466
|
+
var V2, C2 = {}, w = null, he2 = null;
|
|
16467
|
+
v !== void 0 && (Zi2(v), w = "" + v), Ji2(h) && (Zi2(h.key), w = "" + h.key), X(h) && (he2 = h.ref, G(h, N));
|
|
16468
16468
|
for (V2 in h)
|
|
16469
|
-
Xe2.call(h, V2) && !br2.hasOwnProperty(V2) && (
|
|
16469
|
+
Xe2.call(h, V2) && !br2.hasOwnProperty(V2) && (C2[V2] = h[V2]);
|
|
16470
16470
|
if (o && o.defaultProps) {
|
|
16471
16471
|
var z2 = o.defaultProps;
|
|
16472
16472
|
for (V2 in z2)
|
|
16473
|
-
|
|
16473
|
+
C2[V2] === void 0 && (C2[V2] = z2[V2]);
|
|
16474
16474
|
}
|
|
16475
16475
|
if (w || he2) {
|
|
16476
16476
|
var j2 = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
16477
|
-
w && ce2(
|
|
16477
|
+
w && ce2(C2, j2), he2 && fe2(C2, j2);
|
|
16478
16478
|
}
|
|
16479
|
-
return So2(o, w, he2, N, y2,
|
|
16479
|
+
return So2(o, w, he2, N, y2, Xi2.current, C2);
|
|
16480
16480
|
}
|
|
16481
16481
|
}
|
|
16482
16482
|
var Ar2 = k.ReactCurrentOwner, kn2 = k.ReactDebugCurrentFrame;
|
|
@@ -16533,11 +16533,11 @@ Check the top-level render call using <` + v + ">.");
|
|
|
16533
16533
|
o && o._owner && o._owner !== Ar2.current && (y2 = " It was passed a child from " + Me2(o._owner.type) + "."), Mt2(o), P2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, y2), Mt2(null);
|
|
16534
16534
|
}
|
|
16535
16535
|
}
|
|
16536
|
-
function
|
|
16536
|
+
function Cn2(o, h) {
|
|
16537
16537
|
{
|
|
16538
16538
|
if (typeof o != "object")
|
|
16539
16539
|
return;
|
|
16540
|
-
if (
|
|
16540
|
+
if (Ge2(o))
|
|
16541
16541
|
for (var v = 0; v < o.length; v++) {
|
|
16542
16542
|
var y2 = o[v];
|
|
16543
16543
|
Ir2(y2) && Rn2(y2, h);
|
|
@@ -16547,8 +16547,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
16547
16547
|
else if (o) {
|
|
16548
16548
|
var N = I(o);
|
|
16549
16549
|
if (typeof N == "function" && N !== o.entries)
|
|
16550
|
-
for (var V2 = N.call(o),
|
|
16551
|
-
Ir2(
|
|
16550
|
+
for (var V2 = N.call(o), C2; !(C2 = V2.next()).done; )
|
|
16551
|
+
Ir2(C2.value) && Rn2(C2.value, h);
|
|
16552
16552
|
}
|
|
16553
16553
|
}
|
|
16554
16554
|
}
|
|
@@ -16589,66 +16589,66 @@ Check the top-level render call using <` + v + ">.");
|
|
|
16589
16589
|
o.ref !== null && (Mt2(o), P2("Invalid attribute `ref` supplied to `React.Fragment`."), Mt2(null));
|
|
16590
16590
|
}
|
|
16591
16591
|
}
|
|
16592
|
-
var
|
|
16592
|
+
var Dn2 = {};
|
|
16593
16593
|
function Pn2(o, h, v, y2, N, V2) {
|
|
16594
16594
|
{
|
|
16595
|
-
var
|
|
16596
|
-
if (!
|
|
16595
|
+
var C2 = Wi2(o);
|
|
16596
|
+
if (!C2) {
|
|
16597
16597
|
var w = "";
|
|
16598
16598
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
16599
16599
|
var he2 = ko2();
|
|
16600
16600
|
he2 ? w += he2 : w += wn2();
|
|
16601
16601
|
var z2;
|
|
16602
|
-
o === null ? z2 = "null" :
|
|
16602
|
+
o === null ? z2 = "null" : Ge2(o) ? z2 = "array" : o !== void 0 && o.$$typeof === e ? (z2 = "<" + (Me2(o.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : z2 = typeof o, P2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z2, w);
|
|
16603
16603
|
}
|
|
16604
16604
|
var j2 = Mo2(o, h, v, N, V2);
|
|
16605
16605
|
if (j2 == null)
|
|
16606
16606
|
return j2;
|
|
16607
|
-
if (
|
|
16607
|
+
if (C2) {
|
|
16608
16608
|
var Ie2 = h.children;
|
|
16609
16609
|
if (Ie2 !== void 0)
|
|
16610
16610
|
if (y2)
|
|
16611
|
-
if (
|
|
16611
|
+
if (Ge2(Ie2)) {
|
|
16612
16612
|
for (var kt = 0; kt < Ie2.length; kt++)
|
|
16613
|
-
|
|
16613
|
+
Cn2(Ie2[kt], o);
|
|
16614
16614
|
Object.freeze && Object.freeze(Ie2);
|
|
16615
16615
|
} else
|
|
16616
16616
|
P2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
16617
16617
|
else
|
|
16618
|
-
|
|
16618
|
+
Cn2(Ie2, o);
|
|
16619
16619
|
}
|
|
16620
16620
|
if (Xe2.call(h, "key")) {
|
|
16621
16621
|
var ct2 = Me2(o), me2 = Object.keys(h).filter(function(Uo2) {
|
|
16622
16622
|
return Uo2 !== "key";
|
|
16623
16623
|
}), yr2 = me2.length > 0 ? "{key: someKey, " + me2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
16624
|
-
if (!
|
|
16624
|
+
if (!Dn2[ct2 + yr2]) {
|
|
16625
16625
|
var xo2 = me2.length > 0 ? "{" + me2.join(": ..., ") + ": ...}" : "{}";
|
|
16626
16626
|
P2(`A props object containing a "key" prop is being spread into JSX:
|
|
16627
16627
|
let props = %s;
|
|
16628
16628
|
<%s {...props} />
|
|
16629
16629
|
React keys must be passed directly to JSX without using spread:
|
|
16630
16630
|
let props = %s;
|
|
16631
|
-
<%s key={someKey} {...props} />`, yr2, ct2, xo2, ct2),
|
|
16631
|
+
<%s key={someKey} {...props} />`, yr2, ct2, xo2, ct2), Dn2[ct2 + yr2] = true;
|
|
16632
16632
|
}
|
|
16633
16633
|
}
|
|
16634
16634
|
return o === a ? Ro2(j2) : Lo2(j2), j2;
|
|
16635
16635
|
}
|
|
16636
16636
|
}
|
|
16637
|
-
function
|
|
16637
|
+
function Co2(o, h, v) {
|
|
16638
16638
|
return Pn2(o, h, v, true);
|
|
16639
16639
|
}
|
|
16640
|
-
function
|
|
16640
|
+
function Do2(o, h, v) {
|
|
16641
16641
|
return Pn2(o, h, v, false);
|
|
16642
16642
|
}
|
|
16643
|
-
var Po2 =
|
|
16644
|
-
|
|
16645
|
-
}()),
|
|
16643
|
+
var Po2 = Do2, Oo2 = Co2;
|
|
16644
|
+
ci2.Fragment = a, ci2.jsx = Po2, ci2.jsxs = Oo2;
|
|
16645
|
+
}()), ci2;
|
|
16646
16646
|
}
|
|
16647
16647
|
var Un2;
|
|
16648
16648
|
function Wo2() {
|
|
16649
16649
|
return Un2 || (Un2 = 1, false ? ea2.exports = Ho() : ea2.exports = Fo2()), ea2.exports;
|
|
16650
16650
|
}
|
|
16651
|
-
var
|
|
16651
|
+
var ke2 = Wo2();
|
|
16652
16652
|
var Bo2 = /* @__PURE__ */ new Set([
|
|
16653
16653
|
"style",
|
|
16654
16654
|
"children",
|
|
@@ -16681,9 +16681,9 @@ function H2({
|
|
|
16681
16681
|
toAttributeName: l = Go2,
|
|
16682
16682
|
toAttributeValue: d = Nn2
|
|
16683
16683
|
}) {
|
|
16684
|
-
const c = Number.parseInt(t.version) >= 19,
|
|
16684
|
+
const c = Number.parseInt(t.version) >= 19, g2 = t.forwardRef((E2, _) => {
|
|
16685
16685
|
var P2, ue2;
|
|
16686
|
-
const m = t.useRef(null), f = t.useRef(/* @__PURE__ */ new Map()),
|
|
16686
|
+
const m = t.useRef(null), f = t.useRef(/* @__PURE__ */ new Map()), D = {}, S2 = {}, I = {}, k = {};
|
|
16687
16687
|
for (const [x, U2] of Object.entries(E2)) {
|
|
16688
16688
|
if (Bo2.has(x)) {
|
|
16689
16689
|
I[x] = U2;
|
|
@@ -16695,7 +16695,7 @@ function H2({
|
|
|
16695
16695
|
continue;
|
|
16696
16696
|
}
|
|
16697
16697
|
if (x.startsWith("on")) {
|
|
16698
|
-
|
|
16698
|
+
D[x] = U2;
|
|
16699
16699
|
continue;
|
|
16700
16700
|
}
|
|
16701
16701
|
const ve2 = d(U2);
|
|
@@ -16705,8 +16705,8 @@ function H2({
|
|
|
16705
16705
|
}
|
|
16706
16706
|
}
|
|
16707
16707
|
if (typeof window < "u") {
|
|
16708
|
-
for (const x in
|
|
16709
|
-
const U2 =
|
|
16708
|
+
for (const x in D) {
|
|
16709
|
+
const U2 = D[x], te2 = x.endsWith("Capture"), ve2 = ((a == null ? void 0 : a[x]) ?? x.slice(2).toLowerCase()).slice(
|
|
16710
16710
|
0,
|
|
16711
16711
|
te2 ? -7 : void 0
|
|
16712
16712
|
);
|
|
@@ -16750,13 +16750,13 @@ function H2({
|
|
|
16750
16750
|
)
|
|
16751
16751
|
});
|
|
16752
16752
|
});
|
|
16753
|
-
return
|
|
16753
|
+
return g2.displayName = r ?? i.name, g2;
|
|
16754
16754
|
}
|
|
16755
16755
|
function $n2(t, e, i) {
|
|
16756
16756
|
var a;
|
|
16757
16757
|
t[e] = i, i == null && e in (((a = globalThis.HTMLElement) == null ? void 0 : a.prototype) ?? {}) && t.removeAttribute(e);
|
|
16758
16758
|
}
|
|
16759
|
-
var
|
|
16759
|
+
var b2 = {
|
|
16760
16760
|
MEDIA_PLAY_REQUEST: "mediaplayrequest",
|
|
16761
16761
|
MEDIA_PAUSE_REQUEST: "mediapauserequest",
|
|
16762
16762
|
MEDIA_MUTE_REQUEST: "mediamuterequest",
|
|
@@ -16866,7 +16866,7 @@ var qo2 = Object.entries(
|
|
|
16866
16866
|
},
|
|
16867
16867
|
{ userinactive: "userinactivechange" }
|
|
16868
16868
|
);
|
|
16869
|
-
var
|
|
16869
|
+
var We2 = {
|
|
16870
16870
|
SUBTITLES: "subtitles",
|
|
16871
16871
|
CAPTIONS: "captions",
|
|
16872
16872
|
CHAPTERS: "chapters",
|
|
@@ -16932,7 +16932,7 @@ var jo2 = (t, e) => {
|
|
|
16932
16932
|
const i = t === 1 ? Fn2[e].singular : Fn2[e].plural;
|
|
16933
16933
|
return `${t} ${i}`;
|
|
16934
16934
|
};
|
|
16935
|
-
var
|
|
16935
|
+
var Mi2 = (t) => {
|
|
16936
16936
|
if (!nn2(t))
|
|
16937
16937
|
return "";
|
|
16938
16938
|
const e = Math.abs(t), i = e !== t, a = new Date(0, 0, 0, 0, 0, e, 0);
|
|
@@ -17057,10 +17057,10 @@ var il2 = class {
|
|
|
17057
17057
|
};
|
|
17058
17058
|
var gs2 = {
|
|
17059
17059
|
createElement: function() {
|
|
17060
|
-
return new
|
|
17060
|
+
return new Ri2.HTMLElement();
|
|
17061
17061
|
},
|
|
17062
17062
|
createElementNS: function() {
|
|
17063
|
-
return new
|
|
17063
|
+
return new Ri2.HTMLElement();
|
|
17064
17064
|
},
|
|
17065
17065
|
addEventListener() {
|
|
17066
17066
|
},
|
|
@@ -17070,7 +17070,7 @@ var gs2 = {
|
|
|
17070
17070
|
return false;
|
|
17071
17071
|
}
|
|
17072
17072
|
};
|
|
17073
|
-
var
|
|
17073
|
+
var Ri2 = {
|
|
17074
17074
|
ResizeObserver: il2,
|
|
17075
17075
|
document: gs2,
|
|
17076
17076
|
Node: _s2,
|
|
@@ -17080,7 +17080,7 @@ var Li2 = {
|
|
|
17080
17080
|
super(...arguments), this.innerHTML = "";
|
|
17081
17081
|
}
|
|
17082
17082
|
get content() {
|
|
17083
|
-
return new
|
|
17083
|
+
return new Ri2.DocumentFragment();
|
|
17084
17084
|
}
|
|
17085
17085
|
},
|
|
17086
17086
|
DocumentFragment: class extends fs2 {
|
|
@@ -17129,8 +17129,8 @@ var Li2 = {
|
|
|
17129
17129
|
}
|
|
17130
17130
|
};
|
|
17131
17131
|
var bs2 = typeof window > "u" || typeof window.customElements > "u";
|
|
17132
|
-
var As2 = Object.keys(
|
|
17133
|
-
var u2 = bs2 && !As2 ?
|
|
17132
|
+
var As2 = Object.keys(Ri2).every((t) => t in globalThis);
|
|
17133
|
+
var u2 = bs2 && !As2 ? Ri2 : globalThis;
|
|
17134
17134
|
var Ee2 = bs2 && !As2 ? gs2 : globalThis.document;
|
|
17135
17135
|
var Vn2 = /* @__PURE__ */ new WeakMap();
|
|
17136
17136
|
var sn2 = (t) => {
|
|
@@ -17151,7 +17151,7 @@ function ys2(t, e) {
|
|
|
17151
17151
|
const i = sn2(t);
|
|
17152
17152
|
i.delete(e), i.size || Ts2.unobserve(t);
|
|
17153
17153
|
}
|
|
17154
|
-
function
|
|
17154
|
+
function Re2(t) {
|
|
17155
17155
|
const e = {};
|
|
17156
17156
|
for (const i of t)
|
|
17157
17157
|
e[i.name] = i.value;
|
|
@@ -17159,7 +17159,7 @@ function Le2(t) {
|
|
|
17159
17159
|
}
|
|
17160
17160
|
function al2(t) {
|
|
17161
17161
|
var e;
|
|
17162
|
-
return (e = rl2(t)) != null ? e :
|
|
17162
|
+
return (e = rl2(t)) != null ? e : Hi2(t, "media-controller");
|
|
17163
17163
|
}
|
|
17164
17164
|
function rl2(t) {
|
|
17165
17165
|
var e;
|
|
@@ -17182,11 +17182,11 @@ var Xt2 = (t, e) => !t || !e ? false : t != null && t.contains(e) ? true : Xt2(
|
|
|
17182
17182
|
t,
|
|
17183
17183
|
e.getRootNode().host
|
|
17184
17184
|
);
|
|
17185
|
-
var
|
|
17185
|
+
var Hi2 = (t, e) => {
|
|
17186
17186
|
if (!t)
|
|
17187
17187
|
return null;
|
|
17188
17188
|
const i = t.closest(e);
|
|
17189
|
-
return i ||
|
|
17189
|
+
return i || Hi2(
|
|
17190
17190
|
t.getRootNode().host,
|
|
17191
17191
|
e
|
|
17192
17192
|
);
|
|
@@ -17322,7 +17322,7 @@ var Za2 = class extends u2.HTMLElement {
|
|
|
17322
17322
|
constructor() {
|
|
17323
17323
|
if (super(), ul2(this, pe2, void 0), !this.shadowRoot) {
|
|
17324
17324
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
17325
|
-
const e =
|
|
17325
|
+
const e = Re2(this.attributes);
|
|
17326
17326
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
17327
17327
|
}
|
|
17328
17328
|
}
|
|
@@ -17353,9 +17353,9 @@ var Za2 = class extends u2.HTMLElement {
|
|
|
17353
17353
|
if (e.type === "pointerdown")
|
|
17354
17354
|
this._pointerType = e.pointerType;
|
|
17355
17355
|
else if (e.type === "click") {
|
|
17356
|
-
const { clientX: n, clientY: l } = e, { left: d, top: c, width:
|
|
17357
|
-
if (_ < 0 || m < 0 || _ >
|
|
17358
|
-
|
|
17356
|
+
const { clientX: n, clientY: l } = e, { left: d, top: c, width: g2, height: E2 } = this.getBoundingClientRect(), _ = n - d, m = l - c;
|
|
17357
|
+
if (_ < 0 || m < 0 || _ > g2 || m > E2 || // In case this element has no dimensions (or display: none) return.
|
|
17358
|
+
g2 === 0 && E2 === 0)
|
|
17359
17359
|
return;
|
|
17360
17360
|
const f = this._pointerType || "mouse";
|
|
17361
17361
|
if (this._pointerType = void 0, f === Hn2.TOUCH) {
|
|
@@ -17388,7 +17388,7 @@ var Za2 = class extends u2.HTMLElement {
|
|
|
17388
17388
|
// eslint-disable-line
|
|
17389
17389
|
// eslint-disable-next-line
|
|
17390
17390
|
handleMouseClick(e) {
|
|
17391
|
-
const i = this.mediaPaused ?
|
|
17391
|
+
const i = this.mediaPaused ? b2.MEDIA_PLAY_REQUEST : b2.MEDIA_PAUSE_REQUEST;
|
|
17392
17392
|
this.dispatchEvent(
|
|
17393
17393
|
new u2.CustomEvent(i, { composed: true, bubbles: true })
|
|
17394
17394
|
);
|
|
@@ -17402,13 +17402,13 @@ function hl2(t) {
|
|
|
17402
17402
|
const i = t.getAttribute(
|
|
17403
17403
|
$2.MEDIA_CONTROLLER
|
|
17404
17404
|
);
|
|
17405
|
-
return i ? (e = t.getRootNode()) == null ? void 0 : e.getElementById(i) :
|
|
17405
|
+
return i ? (e = t.getRootNode()) == null ? void 0 : e.getElementById(i) : Hi2(t, "media-controller");
|
|
17406
17406
|
}
|
|
17407
17407
|
u2.customElements.get("media-gesture-receiver") || u2.customElements.define(
|
|
17408
17408
|
"media-gesture-receiver",
|
|
17409
17409
|
Za2
|
|
17410
17410
|
);
|
|
17411
|
-
var
|
|
17411
|
+
var Cr2 = Za2;
|
|
17412
17412
|
var on2 = (t, e, i) => {
|
|
17413
17413
|
if (!e.has(t))
|
|
17414
17414
|
throw TypeError("Cannot " + i);
|
|
@@ -17423,23 +17423,23 @@ var mt2 = (t, e, i, a) => (on2(t, e, "write to private field"), e.set(t, i), i);
|
|
|
17423
17423
|
var Se2 = (t, e, i) => (on2(t, e, "access private method"), i);
|
|
17424
17424
|
var Na2;
|
|
17425
17425
|
var Pt2;
|
|
17426
|
-
var
|
|
17426
|
+
var Ci2;
|
|
17427
17427
|
var Kt2;
|
|
17428
17428
|
var ma2;
|
|
17429
|
-
var
|
|
17429
|
+
var Dr2;
|
|
17430
17430
|
var Rs2;
|
|
17431
|
-
var
|
|
17431
|
+
var vi2;
|
|
17432
17432
|
var pa2;
|
|
17433
17433
|
var Pr2;
|
|
17434
|
-
var Ds2;
|
|
17435
|
-
var Or2;
|
|
17436
17434
|
var Cs2;
|
|
17435
|
+
var Or2;
|
|
17436
|
+
var Ds2;
|
|
17437
17437
|
var Di2;
|
|
17438
17438
|
var Xa2;
|
|
17439
17439
|
var ja2;
|
|
17440
17440
|
var ln2;
|
|
17441
17441
|
var zt2;
|
|
17442
|
-
var
|
|
17442
|
+
var Pi2;
|
|
17443
17443
|
var T2 = {
|
|
17444
17444
|
AUDIO: "audio",
|
|
17445
17445
|
AUTOHIDE: "autohide",
|
|
@@ -17590,8 +17590,8 @@ function ml2(t) {
|
|
|
17590
17590
|
<slot name="poster" part="layer poster-layer"></slot>
|
|
17591
17591
|
<slot name="gestures-chrome" part="layer gesture-layer">
|
|
17592
17592
|
<media-gesture-receiver slot="gestures-chrome">
|
|
17593
|
-
<template shadowrootmode="${
|
|
17594
|
-
${
|
|
17593
|
+
<template shadowrootmode="${Cr2.shadowRootOptions.mode}">
|
|
17594
|
+
${Cr2.getTemplateHTML({})}
|
|
17595
17595
|
</template>
|
|
17596
17596
|
</media-gesture-receiver>
|
|
17597
17597
|
</slot>
|
|
@@ -17643,15 +17643,15 @@ function fl2(t) {
|
|
|
17643
17643
|
function _l2(t, e) {
|
|
17644
17644
|
return Object.keys(t).filter((i) => e >= parseInt(t[i]));
|
|
17645
17645
|
}
|
|
17646
|
-
var
|
|
17646
|
+
var Fi2 = class extends u2.HTMLElement {
|
|
17647
17647
|
constructor() {
|
|
17648
|
-
if (super(), ge2(this,
|
|
17649
|
-
Ae2(this,
|
|
17650
|
-
vl2(i), mt2(this,
|
|
17651
|
-
}, 0), mt2(this,
|
|
17648
|
+
if (super(), ge2(this, Dr2), ge2(this, Pr2), ge2(this, Or2), ge2(this, Di2), ge2(this, ja2), ge2(this, zt2), ge2(this, Na2, 0), ge2(this, Pt2, null), ge2(this, Ci2, null), ge2(this, Kt2, void 0), this.breakpointsComputed = false, ge2(this, ma2, new MutationObserver(Se2(this, Dr2, Rs2).bind(this))), ge2(this, vi2, false), ge2(this, pa2, (i) => {
|
|
17649
|
+
Ae2(this, vi2) || (setTimeout(() => {
|
|
17650
|
+
vl2(i), mt2(this, vi2, false);
|
|
17651
|
+
}, 0), mt2(this, vi2, true));
|
|
17652
17652
|
}), !this.shadowRoot) {
|
|
17653
17653
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
17654
|
-
const i =
|
|
17654
|
+
const i = Re2(this.attributes), a = this.constructor.getTemplateHTML(i);
|
|
17655
17655
|
this.shadowRoot.setHTMLUnsafe ? this.shadowRoot.setHTMLUnsafe(a) : this.shadowRoot.innerHTML = a;
|
|
17656
17656
|
}
|
|
17657
17657
|
const e = this.querySelector(
|
|
@@ -17714,10 +17714,10 @@ var Hi2 = class extends u2.HTMLElement {
|
|
|
17714
17714
|
mt2(this, Na2, e.timeStamp);
|
|
17715
17715
|
break;
|
|
17716
17716
|
case "pointermove":
|
|
17717
|
-
Se2(this, Pr2,
|
|
17717
|
+
Se2(this, Pr2, Cs2).call(this, e);
|
|
17718
17718
|
break;
|
|
17719
17719
|
case "pointerup":
|
|
17720
|
-
Se2(this, Or2,
|
|
17720
|
+
Se2(this, Or2, Ds2).call(this, e);
|
|
17721
17721
|
break;
|
|
17722
17722
|
case "mouseleave":
|
|
17723
17723
|
Se2(this, Di2, Xa2).call(this);
|
|
@@ -17726,7 +17726,7 @@ var Hi2 = class extends u2.HTMLElement {
|
|
|
17726
17726
|
this.removeAttribute(T2.KEYBOARD_CONTROL);
|
|
17727
17727
|
break;
|
|
17728
17728
|
case "keyup":
|
|
17729
|
-
Se2(this, zt2,
|
|
17729
|
+
Se2(this, zt2, Pi2).call(this), this.setAttribute(T2.KEYBOARD_CONTROL, "");
|
|
17730
17730
|
break;
|
|
17731
17731
|
}
|
|
17732
17732
|
}
|
|
@@ -17782,10 +17782,10 @@ var Hi2 = class extends u2.HTMLElement {
|
|
|
17782
17782
|
};
|
|
17783
17783
|
Na2 = /* @__PURE__ */ new WeakMap();
|
|
17784
17784
|
Pt2 = /* @__PURE__ */ new WeakMap();
|
|
17785
|
-
|
|
17785
|
+
Ci2 = /* @__PURE__ */ new WeakMap();
|
|
17786
17786
|
Kt2 = /* @__PURE__ */ new WeakMap();
|
|
17787
17787
|
ma2 = /* @__PURE__ */ new WeakMap();
|
|
17788
|
-
|
|
17788
|
+
Dr2 = /* @__PURE__ */ new WeakSet();
|
|
17789
17789
|
Rs2 = function(t) {
|
|
17790
17790
|
const e = this.media;
|
|
17791
17791
|
for (const i of t) {
|
|
@@ -17810,29 +17810,29 @@ Rs2 = function(t) {
|
|
|
17810
17810
|
r === e && this.handleMediaUpdated(e);
|
|
17811
17811
|
}
|
|
17812
17812
|
};
|
|
17813
|
-
|
|
17813
|
+
vi2 = /* @__PURE__ */ new WeakMap();
|
|
17814
17814
|
pa2 = /* @__PURE__ */ new WeakMap();
|
|
17815
17815
|
Pr2 = /* @__PURE__ */ new WeakSet();
|
|
17816
|
-
|
|
17816
|
+
Cs2 = function(t) {
|
|
17817
17817
|
if (t.pointerType !== "mouse" && t.timeStamp - Ae2(this, Na2) < 250)
|
|
17818
17818
|
return;
|
|
17819
|
-
Se2(this, ja2, ln2).call(this), clearTimeout(Ae2(this,
|
|
17819
|
+
Se2(this, ja2, ln2).call(this), clearTimeout(Ae2(this, Ci2));
|
|
17820
17820
|
const e = this.hasAttribute(
|
|
17821
17821
|
T2.AUTOHIDE_OVER_CONTROLS
|
|
17822
17822
|
);
|
|
17823
|
-
([this, this.media].includes(t.target) || e) && Se2(this, zt2,
|
|
17823
|
+
([this, this.media].includes(t.target) || e) && Se2(this, zt2, Pi2).call(this);
|
|
17824
17824
|
};
|
|
17825
17825
|
Or2 = /* @__PURE__ */ new WeakSet();
|
|
17826
|
-
|
|
17826
|
+
Ds2 = function(t) {
|
|
17827
17827
|
if (t.pointerType === "touch") {
|
|
17828
17828
|
const e = !this.hasAttribute(T2.USER_INACTIVE);
|
|
17829
|
-
[this, this.media].includes(t.target) && e ? Se2(this, Di2, Xa2).call(this) : Se2(this, zt2,
|
|
17829
|
+
[this, this.media].includes(t.target) && e ? Se2(this, Di2, Xa2).call(this) : Se2(this, zt2, Pi2).call(this);
|
|
17830
17830
|
} else
|
|
17831
17831
|
t.composedPath().some(
|
|
17832
17832
|
(e) => ["media-play-button", "media-fullscreen-button"].includes(
|
|
17833
17833
|
e == null ? void 0 : e.localName
|
|
17834
17834
|
)
|
|
17835
|
-
) && Se2(this, zt2,
|
|
17835
|
+
) && Se2(this, zt2, Pi2).call(this);
|
|
17836
17836
|
};
|
|
17837
17837
|
Di2 = /* @__PURE__ */ new WeakSet();
|
|
17838
17838
|
Xa2 = function() {
|
|
@@ -17857,23 +17857,23 @@ ln2 = function() {
|
|
|
17857
17857
|
this.dispatchEvent(t);
|
|
17858
17858
|
};
|
|
17859
17859
|
zt2 = /* @__PURE__ */ new WeakSet();
|
|
17860
|
-
|
|
17861
|
-
Se2(this, ja2, ln2).call(this), clearTimeout(Ae2(this,
|
|
17860
|
+
Pi2 = function() {
|
|
17861
|
+
Se2(this, ja2, ln2).call(this), clearTimeout(Ae2(this, Ci2));
|
|
17862
17862
|
const t = parseInt(this.autohide);
|
|
17863
|
-
t < 0 || mt2(this,
|
|
17863
|
+
t < 0 || mt2(this, Ci2, setTimeout(() => {
|
|
17864
17864
|
Se2(this, Di2, Xa2).call(this);
|
|
17865
17865
|
}, t * 1e3));
|
|
17866
17866
|
};
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
u2.customElements.get("media-container") || u2.customElements.define("media-container",
|
|
17870
|
-
var gl2 =
|
|
17867
|
+
Fi2.shadowRootOptions = { mode: "open" };
|
|
17868
|
+
Fi2.getTemplateHTML = ml2;
|
|
17869
|
+
u2.customElements.get("media-container") || u2.customElements.define("media-container", Fi2);
|
|
17870
|
+
var gl2 = Fi2;
|
|
17871
17871
|
var Os2 = (t, e, i) => {
|
|
17872
17872
|
if (!e.has(t))
|
|
17873
17873
|
throw TypeError("Cannot " + i);
|
|
17874
17874
|
};
|
|
17875
17875
|
var re2 = (t, e, i) => (Os2(t, e, "read from private field"), i ? i.call(t) : e.get(t));
|
|
17876
|
-
var
|
|
17876
|
+
var hi2 = (t, e, i) => {
|
|
17877
17877
|
if (e.has(t))
|
|
17878
17878
|
throw TypeError("Cannot add the same private member more than once");
|
|
17879
17879
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
@@ -17887,7 +17887,7 @@ var Ye2;
|
|
|
17887
17887
|
var tt2;
|
|
17888
17888
|
var xs2 = class {
|
|
17889
17889
|
constructor(e, i, { defaultValue: a } = { defaultValue: void 0 }) {
|
|
17890
|
-
|
|
17890
|
+
hi2(this, Ye2), hi2(this, Ot, void 0), hi2(this, xt2, void 0), hi2(this, $a2, void 0), hi2(this, ft2, /* @__PURE__ */ new Set()), ia2(this, Ot, e), ia2(this, xt2, i), ia2(this, $a2, new Set(a));
|
|
17891
17891
|
}
|
|
17892
17892
|
[Symbol.iterator]() {
|
|
17893
17893
|
return re2(this, Ye2, tt2).values();
|
|
@@ -17945,7 +17945,7 @@ var bl2 = (t = "") => t.split(/\s+/);
|
|
|
17945
17945
|
var Us2 = (t = "") => {
|
|
17946
17946
|
const [e, i, a] = t.split(":"), r = a ? decodeURIComponent(a) : void 0;
|
|
17947
17947
|
return {
|
|
17948
|
-
kind: e === "cc" ?
|
|
17948
|
+
kind: e === "cc" ? We2.CAPTIONS : We2.SUBTITLES,
|
|
17949
17949
|
language: i,
|
|
17950
17950
|
label: r
|
|
17951
17951
|
};
|
|
@@ -17967,7 +17967,7 @@ var Hs2 = (t) => {
|
|
|
17967
17967
|
const e = Object.entries(t).map(([i, a]) => Tl2(i, a));
|
|
17968
17968
|
return (i) => e.every((a) => a(i));
|
|
17969
17969
|
};
|
|
17970
|
-
var
|
|
17970
|
+
var ki2 = (t, e = [], i = []) => {
|
|
17971
17971
|
const a = $s2(i).map(Hs2), r = (n) => a.some((l) => l(n));
|
|
17972
17972
|
Array.from(e).filter(r).forEach((n) => {
|
|
17973
17973
|
n.mode = t;
|
|
@@ -18010,9 +18010,9 @@ var Sl2 = (t) => {
|
|
|
18010
18010
|
});
|
|
18011
18011
|
}
|
|
18012
18012
|
};
|
|
18013
|
-
var
|
|
18013
|
+
var fi = "fullscreenElement" in Ee2 ? "fullscreenElement" : "webkitFullscreenElement" in Ee2 ? "webkitFullscreenElement" : void 0;
|
|
18014
18014
|
var Ml2 = (t) => {
|
|
18015
|
-
const { documentElement: e, media: i } = t, a = e == null ? void 0 : e[
|
|
18015
|
+
const { documentElement: e, media: i } = t, a = e == null ? void 0 : e[fi];
|
|
18016
18016
|
return !a && "webkitDisplayingFullscreen" in i && "webkitPresentationMode" in i && i.webkitDisplayingFullscreen && i.webkitPresentationMode === Yo2.FULLSCREEN ? i : a;
|
|
18017
18017
|
};
|
|
18018
18018
|
var kl2 = (t) => {
|
|
@@ -18027,17 +18027,17 @@ var kl2 = (t) => {
|
|
|
18027
18027
|
return true;
|
|
18028
18028
|
if (n.localName.includes("-")) {
|
|
18029
18029
|
let l = n.shadowRoot;
|
|
18030
|
-
if (!(
|
|
18030
|
+
if (!(fi in l))
|
|
18031
18031
|
return Xt2(
|
|
18032
18032
|
n,
|
|
18033
18033
|
/** @TODO clean up type assumptions (e.g. Node) (CJP) */
|
|
18034
18034
|
// @ts-ignore
|
|
18035
18035
|
r
|
|
18036
18036
|
);
|
|
18037
|
-
for (; l != null && l[
|
|
18038
|
-
if (l[
|
|
18037
|
+
for (; l != null && l[fi]; ) {
|
|
18038
|
+
if (l[fi] === r)
|
|
18039
18039
|
return true;
|
|
18040
|
-
l = (e = l[
|
|
18040
|
+
l = (e = l[fi]) == null ? void 0 : e.shadowRoot;
|
|
18041
18041
|
}
|
|
18042
18042
|
}
|
|
18043
18043
|
return false;
|
|
@@ -18058,15 +18058,15 @@ var Rl2 = async (t = dn2()) => {
|
|
|
18058
18058
|
const e = t.volume;
|
|
18059
18059
|
t.volume = e / 2 + 0.1;
|
|
18060
18060
|
const i = new AbortController(), a = await Promise.race([
|
|
18061
|
-
|
|
18062
|
-
|
|
18061
|
+
Cl2(t, i.signal),
|
|
18062
|
+
Dl2(t, e)
|
|
18063
18063
|
]);
|
|
18064
18064
|
return i.abort(), a;
|
|
18065
18065
|
};
|
|
18066
|
-
var
|
|
18066
|
+
var Cl2 = (t, e) => new Promise((i) => {
|
|
18067
18067
|
t.addEventListener("volumechange", () => i(true), { signal: e });
|
|
18068
18068
|
});
|
|
18069
|
-
var
|
|
18069
|
+
var Dl2 = async (t, e) => {
|
|
18070
18070
|
for (let i = 0; i < 10; i++) {
|
|
18071
18071
|
if (t.volume === e)
|
|
18072
18072
|
return false;
|
|
@@ -18083,17 +18083,17 @@ var Ol2 = Ws2();
|
|
|
18083
18083
|
var xl2 = Fs2();
|
|
18084
18084
|
var Ul2 = !!u2.WebKitPlaybackTargetAvailabilityEvent;
|
|
18085
18085
|
var Nl2 = !!u2.chrome;
|
|
18086
|
-
var Ha2 = (t) => Ja2(t.media, (e) => [
|
|
18086
|
+
var Ha2 = (t) => Ja2(t.media, (e) => [We2.SUBTITLES, We2.CAPTIONS].includes(
|
|
18087
18087
|
e.kind
|
|
18088
18088
|
)).sort((e, i) => e.kind >= i.kind ? 1 : -1);
|
|
18089
|
-
var Bs2 = (t) => Ja2(t.media, (e) => e.mode === Yt2.SHOWING && [
|
|
18089
|
+
var Bs2 = (t) => Ja2(t.media, (e) => e.mode === Yt2.SHOWING && [We2.SUBTITLES, We2.CAPTIONS].includes(
|
|
18090
18090
|
e.kind
|
|
18091
18091
|
));
|
|
18092
18092
|
var Vs2 = (t, e) => {
|
|
18093
18093
|
const i = Ha2(t), a = Bs2(t), r = !!a.length;
|
|
18094
18094
|
if (i.length) {
|
|
18095
18095
|
if (e === false || r && e !== true)
|
|
18096
|
-
|
|
18096
|
+
ki2(Yt2.DISABLED, i, a);
|
|
18097
18097
|
else if (e === true || !r && e !== false) {
|
|
18098
18098
|
let n = i[0];
|
|
18099
18099
|
const { options: l } = t;
|
|
@@ -18101,20 +18101,20 @@ var Vs2 = (t, e) => {
|
|
|
18101
18101
|
const E2 = globalThis.localStorage.getItem(
|
|
18102
18102
|
"media-chrome-pref-subtitles-lang"
|
|
18103
18103
|
), _ = E2 ? [E2, ...globalThis.navigator.languages] : globalThis.navigator.languages, m = i.filter((f) => _.some(
|
|
18104
|
-
(
|
|
18105
|
-
)).sort((f,
|
|
18104
|
+
(D) => f.language.toLowerCase().startsWith(D.split("-")[0])
|
|
18105
|
+
)).sort((f, D) => {
|
|
18106
18106
|
const S2 = _.findIndex(
|
|
18107
18107
|
(k) => f.language.toLowerCase().startsWith(k.split("-")[0])
|
|
18108
18108
|
), I = _.findIndex(
|
|
18109
|
-
(k) =>
|
|
18109
|
+
(k) => D.language.toLowerCase().startsWith(k.split("-")[0])
|
|
18110
18110
|
);
|
|
18111
18111
|
return S2 - I;
|
|
18112
18112
|
});
|
|
18113
18113
|
m[0] && (n = m[0]);
|
|
18114
18114
|
}
|
|
18115
|
-
const { language: d, label: c, kind:
|
|
18116
|
-
|
|
18117
|
-
{ language: d, label: c, kind:
|
|
18115
|
+
const { language: d, label: c, kind: g2 } = n;
|
|
18116
|
+
ki2(Yt2.DISABLED, i, a), ki2(Yt2.SHOWING, i, [
|
|
18117
|
+
{ language: d, label: c, kind: g2 }
|
|
18118
18118
|
]);
|
|
18119
18119
|
}
|
|
18120
18120
|
}
|
|
@@ -18145,7 +18145,7 @@ var Wl2 = async (...t) => {
|
|
|
18145
18145
|
};
|
|
18146
18146
|
var Bl2 = new u2.DOMParser();
|
|
18147
18147
|
var Vl2 = (t) => t && (Bl2.parseFromString(t, "text/html").body.textContent || t);
|
|
18148
|
-
var
|
|
18148
|
+
var _i2 = {
|
|
18149
18149
|
mediaError: {
|
|
18150
18150
|
get(t, e) {
|
|
18151
18151
|
const { media: i } = t;
|
|
@@ -18262,7 +18262,7 @@ var fi = {
|
|
|
18262
18262
|
if (!(!a || a.muted || i))
|
|
18263
18263
|
try {
|
|
18264
18264
|
const r = u2.localStorage.getItem("media-chrome-pref-muted") === "true";
|
|
18265
|
-
|
|
18265
|
+
_i2.mediaMuted.set(r, e), t(r);
|
|
18266
18266
|
} catch (r) {
|
|
18267
18267
|
console.debug("Error getting muted pref", r);
|
|
18268
18268
|
}
|
|
@@ -18305,7 +18305,7 @@ var fi = {
|
|
|
18305
18305
|
);
|
|
18306
18306
|
if (r == null)
|
|
18307
18307
|
return;
|
|
18308
|
-
|
|
18308
|
+
_i2.mediaVolume.set(+r, e), t(+r);
|
|
18309
18309
|
} catch (a) {
|
|
18310
18310
|
console.debug("Error getting volume pref", a);
|
|
18311
18311
|
}
|
|
@@ -18397,7 +18397,7 @@ var fi = {
|
|
|
18397
18397
|
const { media: e } = t;
|
|
18398
18398
|
if (!e)
|
|
18399
18399
|
return Number.NaN;
|
|
18400
|
-
const { targetLiveWindow: i } = e, a =
|
|
18400
|
+
const { targetLiveWindow: i } = e, a = _i2.mediaStreamType.get(t);
|
|
18401
18401
|
return (i == null || Number.isNaN(i)) && a === Qe2.LIVE ? 0 : i;
|
|
18402
18402
|
},
|
|
18403
18403
|
mediaEvents: [
|
|
@@ -18419,7 +18419,7 @@ var fi = {
|
|
|
18419
18419
|
return false;
|
|
18420
18420
|
if (typeof e.liveEdgeStart == "number")
|
|
18421
18421
|
return Number.isNaN(e.liveEdgeStart) ? false : e.currentTime >= e.liveEdgeStart;
|
|
18422
|
-
if (!(
|
|
18422
|
+
if (!(_i2.mediaStreamType.get(t) === Qe2.LIVE))
|
|
18423
18423
|
return false;
|
|
18424
18424
|
const r = e.seekable;
|
|
18425
18425
|
if (!r)
|
|
@@ -18457,7 +18457,7 @@ var fi = {
|
|
|
18457
18457
|
return;
|
|
18458
18458
|
const l = (d) => {
|
|
18459
18459
|
var c;
|
|
18460
|
-
!n.defaultSubtitles || d && ![
|
|
18460
|
+
!n.defaultSubtitles || d && ![We2.CAPTIONS, We2.SUBTITLES].includes(
|
|
18461
18461
|
// @ts-ignore
|
|
18462
18462
|
(c = d == null ? void 0 : d.track) == null ? void 0 : c.kind
|
|
18463
18463
|
) || Vs2(e, true);
|
|
@@ -18494,7 +18494,7 @@ var fi = {
|
|
|
18494
18494
|
if (!i)
|
|
18495
18495
|
return [];
|
|
18496
18496
|
const [a] = Ja2(i, {
|
|
18497
|
-
kind:
|
|
18497
|
+
kind: We2.CHAPTERS
|
|
18498
18498
|
});
|
|
18499
18499
|
return Array.from((e = a == null ? void 0 : a.cues) != null ? e : []).map(
|
|
18500
18500
|
({ text: r, startTime: n, endTime: l }) => ({
|
|
@@ -18840,38 +18840,38 @@ var Gl2 = {
|
|
|
18840
18840
|
/**
|
|
18841
18841
|
* @TODO Consider adding state to `StateMediator` for e.g. `mediaThumbnailCues` and use that for derived state here (CJP)
|
|
18842
18842
|
*/
|
|
18843
|
-
[
|
|
18843
|
+
[b2.MEDIA_PREVIEW_REQUEST](t, e, { detail: i }) {
|
|
18844
18844
|
var a, r, n;
|
|
18845
18845
|
const { media: l } = e, d = i ?? void 0;
|
|
18846
|
-
let c,
|
|
18846
|
+
let c, g2;
|
|
18847
18847
|
if (l && d != null) {
|
|
18848
18848
|
const [f] = Ja2(l, {
|
|
18849
|
-
kind:
|
|
18849
|
+
kind: We2.METADATA,
|
|
18850
18850
|
label: "thumbnails"
|
|
18851
|
-
}),
|
|
18852
|
-
if (
|
|
18853
|
-
const S2 = /'^(?:[a-z]+:)?\/\//i.test(
|
|
18851
|
+
}), D = Array.prototype.find.call((a = f == null ? void 0 : f.cues) != null ? a : [], (S2, I, k) => I === 0 ? S2.endTime > d : I === k.length - 1 ? S2.startTime <= d : S2.startTime <= d && S2.endTime > d);
|
|
18852
|
+
if (D) {
|
|
18853
|
+
const S2 = /'^(?:[a-z]+:)?\/\//i.test(D.text) || (r = l == null ? void 0 : l.querySelector(
|
|
18854
18854
|
'track[label="thumbnails"]'
|
|
18855
|
-
)) == null ? void 0 : r.src, I = new URL(
|
|
18856
|
-
|
|
18855
|
+
)) == null ? void 0 : r.src, I = new URL(D.text, S2);
|
|
18856
|
+
g2 = new URLSearchParams(I.hash).get("#xywh").split(",").map((P2) => +P2), c = I.href;
|
|
18857
18857
|
}
|
|
18858
18858
|
}
|
|
18859
18859
|
const E2 = t.mediaDuration.get(e);
|
|
18860
|
-
let m = (n = t.mediaChaptersCues.get(e).find((f,
|
|
18860
|
+
let m = (n = t.mediaChaptersCues.get(e).find((f, D, S2) => D === S2.length - 1 && E2 === f.endTime ? f.startTime <= d && f.endTime >= d : f.startTime <= d && f.endTime > d)) == null ? void 0 : n.text;
|
|
18861
18861
|
return i != null && m == null && (m = ""), {
|
|
18862
18862
|
mediaPreviewTime: d,
|
|
18863
18863
|
mediaPreviewImage: c,
|
|
18864
|
-
mediaPreviewCoords:
|
|
18864
|
+
mediaPreviewCoords: g2,
|
|
18865
18865
|
mediaPreviewChapter: m
|
|
18866
18866
|
};
|
|
18867
18867
|
},
|
|
18868
|
-
[
|
|
18868
|
+
[b2.MEDIA_PAUSE_REQUEST](t, e) {
|
|
18869
18869
|
t["mediaPaused"].set(true, e);
|
|
18870
18870
|
},
|
|
18871
|
-
[
|
|
18871
|
+
[b2.MEDIA_PLAY_REQUEST](t, e) {
|
|
18872
18872
|
var i, a, r, n;
|
|
18873
|
-
const l = "mediaPaused", c = t.mediaStreamType.get(e) === Qe2.LIVE,
|
|
18874
|
-
if (c &&
|
|
18873
|
+
const l = "mediaPaused", c = t.mediaStreamType.get(e) === Qe2.LIVE, g2 = !((i = e.options) != null && i.noAutoSeekToLive), E2 = t.mediaTargetLiveWindow.get(e) > 0;
|
|
18874
|
+
if (c && g2 && !E2) {
|
|
18875
18875
|
const _ = (a = t.mediaSeekable.get(e)) == null ? void 0 : a[1];
|
|
18876
18876
|
if (_) {
|
|
18877
18877
|
const m = (n = (r = e.options) == null ? void 0 : r.seekToLiveOffset) != null ? n : 0, f = _ - m;
|
|
@@ -18880,26 +18880,26 @@ var Gl2 = {
|
|
|
18880
18880
|
}
|
|
18881
18881
|
t[l].set(false, e);
|
|
18882
18882
|
},
|
|
18883
|
-
[
|
|
18883
|
+
[b2.MEDIA_PLAYBACK_RATE_REQUEST](t, e, { detail: i }) {
|
|
18884
18884
|
const a = "mediaPlaybackRate", r = i;
|
|
18885
18885
|
t[a].set(r, e);
|
|
18886
18886
|
},
|
|
18887
|
-
[
|
|
18887
|
+
[b2.MEDIA_MUTE_REQUEST](t, e) {
|
|
18888
18888
|
t["mediaMuted"].set(true, e);
|
|
18889
18889
|
},
|
|
18890
|
-
[
|
|
18890
|
+
[b2.MEDIA_UNMUTE_REQUEST](t, e) {
|
|
18891
18891
|
const i = "mediaMuted";
|
|
18892
18892
|
t.mediaVolume.get(e) || t.mediaVolume.set(0.25, e), t[i].set(false, e);
|
|
18893
18893
|
},
|
|
18894
|
-
[
|
|
18894
|
+
[b2.MEDIA_VOLUME_REQUEST](t, e, { detail: i }) {
|
|
18895
18895
|
const a = "mediaVolume", r = i;
|
|
18896
18896
|
r && t.mediaMuted.get(e) && t.mediaMuted.set(false, e), t[a].set(r, e);
|
|
18897
18897
|
},
|
|
18898
|
-
[
|
|
18898
|
+
[b2.MEDIA_SEEK_REQUEST](t, e, { detail: i }) {
|
|
18899
18899
|
const a = "mediaCurrentTime", r = i;
|
|
18900
18900
|
t[a].set(r, e);
|
|
18901
18901
|
},
|
|
18902
|
-
[
|
|
18902
|
+
[b2.MEDIA_SEEK_TO_LIVE_REQUEST](t, e) {
|
|
18903
18903
|
var i, a, r;
|
|
18904
18904
|
const n = "mediaCurrentTime", l = (i = t.mediaSeekable.get(e)) == null ? void 0 : i[1];
|
|
18905
18905
|
if (Number.isNaN(Number(l)))
|
|
@@ -18908,53 +18908,53 @@ var Gl2 = {
|
|
|
18908
18908
|
t[n].set(c, e);
|
|
18909
18909
|
},
|
|
18910
18910
|
// Text Tracks state change requests
|
|
18911
|
-
[
|
|
18911
|
+
[b2.MEDIA_SHOW_SUBTITLES_REQUEST](t, e, { detail: i }) {
|
|
18912
18912
|
var a;
|
|
18913
18913
|
const { options: r } = e, n = Ha2(e), l = $s2(i), d = (a = l[0]) == null ? void 0 : a.language;
|
|
18914
18914
|
d && !r.noSubtitlesLangPref && u2.localStorage.setItem(
|
|
18915
18915
|
"media-chrome-pref-subtitles-lang",
|
|
18916
18916
|
d
|
|
18917
|
-
),
|
|
18917
|
+
), ki2(Yt2.SHOWING, n, l);
|
|
18918
18918
|
},
|
|
18919
|
-
[
|
|
18919
|
+
[b2.MEDIA_DISABLE_SUBTITLES_REQUEST](t, e, { detail: i }) {
|
|
18920
18920
|
const a = Ha2(e), r = i ?? [];
|
|
18921
|
-
|
|
18921
|
+
ki2(Yt2.DISABLED, a, r);
|
|
18922
18922
|
},
|
|
18923
|
-
[
|
|
18923
|
+
[b2.MEDIA_TOGGLE_SUBTITLES_REQUEST](t, e, { detail: i }) {
|
|
18924
18924
|
Vs2(e, i);
|
|
18925
18925
|
},
|
|
18926
18926
|
// Renditions/Tracks state change requests
|
|
18927
|
-
[
|
|
18927
|
+
[b2.MEDIA_RENDITION_REQUEST](t, e, { detail: i }) {
|
|
18928
18928
|
const a = "mediaRenditionSelected", r = i;
|
|
18929
18929
|
t[a].set(r, e);
|
|
18930
18930
|
},
|
|
18931
|
-
[
|
|
18931
|
+
[b2.MEDIA_AUDIO_TRACK_REQUEST](t, e, { detail: i }) {
|
|
18932
18932
|
const a = "mediaAudioTrackEnabled", r = i;
|
|
18933
18933
|
t[a].set(r, e);
|
|
18934
18934
|
},
|
|
18935
18935
|
// State change requests dependent on root node
|
|
18936
|
-
[
|
|
18936
|
+
[b2.MEDIA_ENTER_PIP_REQUEST](t, e) {
|
|
18937
18937
|
const i = "mediaIsPip";
|
|
18938
18938
|
t.mediaIsFullscreen.get(e) && t.mediaIsFullscreen.set(false, e), t[i].set(true, e);
|
|
18939
18939
|
},
|
|
18940
|
-
[
|
|
18940
|
+
[b2.MEDIA_EXIT_PIP_REQUEST](t, e) {
|
|
18941
18941
|
t["mediaIsPip"].set(false, e);
|
|
18942
18942
|
},
|
|
18943
|
-
[
|
|
18943
|
+
[b2.MEDIA_ENTER_FULLSCREEN_REQUEST](t, e) {
|
|
18944
18944
|
const i = "mediaIsFullscreen";
|
|
18945
18945
|
t.mediaIsPip.get(e) && t.mediaIsPip.set(false, e), t[i].set(true, e);
|
|
18946
18946
|
},
|
|
18947
|
-
[
|
|
18947
|
+
[b2.MEDIA_EXIT_FULLSCREEN_REQUEST](t, e) {
|
|
18948
18948
|
t["mediaIsFullscreen"].set(false, e);
|
|
18949
18949
|
},
|
|
18950
|
-
[
|
|
18950
|
+
[b2.MEDIA_ENTER_CAST_REQUEST](t, e) {
|
|
18951
18951
|
const i = "mediaIsCasting";
|
|
18952
18952
|
t.mediaIsFullscreen.get(e) && t.mediaIsFullscreen.set(false, e), t[i].set(true, e);
|
|
18953
18953
|
},
|
|
18954
|
-
[
|
|
18954
|
+
[b2.MEDIA_EXIT_CAST_REQUEST](t, e) {
|
|
18955
18955
|
t["mediaIsCasting"].set(false, e);
|
|
18956
18956
|
},
|
|
18957
|
-
[
|
|
18957
|
+
[b2.MEDIA_AIRPLAY_REQUEST](t, e) {
|
|
18958
18958
|
t["mediaIsAirplaying"].set(true, e);
|
|
18959
18959
|
}
|
|
18960
18960
|
};
|
|
@@ -18962,7 +18962,7 @@ var Kl2 = ({
|
|
|
18962
18962
|
media: t,
|
|
18963
18963
|
fullscreenElement: e,
|
|
18964
18964
|
documentElement: i,
|
|
18965
|
-
stateMediator: a =
|
|
18965
|
+
stateMediator: a = _i2,
|
|
18966
18966
|
requestMap: r = Gl2,
|
|
18967
18967
|
options: n = {},
|
|
18968
18968
|
monitorStateOwnersOnlyWithSubscriptions: l = true
|
|
@@ -18972,17 +18972,17 @@ var Kl2 = ({
|
|
|
18972
18972
|
// for any app-level logic wrt options.
|
|
18973
18973
|
options: { ...n }
|
|
18974
18974
|
};
|
|
18975
|
-
let
|
|
18975
|
+
let g2 = Object.freeze({
|
|
18976
18976
|
mediaPreviewTime: void 0,
|
|
18977
18977
|
mediaPreviewImage: void 0,
|
|
18978
18978
|
mediaPreviewCoords: void 0,
|
|
18979
18979
|
mediaPreviewChapter: void 0
|
|
18980
18980
|
});
|
|
18981
18981
|
const E2 = (S2) => {
|
|
18982
|
-
S2 != null && (un2(S2,
|
|
18983
|
-
...
|
|
18982
|
+
S2 != null && (un2(S2, g2) || (g2 = Object.freeze({
|
|
18983
|
+
...g2,
|
|
18984
18984
|
...S2
|
|
18985
|
-
}), d.forEach((I) => I(
|
|
18985
|
+
}), d.forEach((I) => I(g2))));
|
|
18986
18986
|
}, _ = () => {
|
|
18987
18987
|
const S2 = Object.entries(a).reduce(
|
|
18988
18988
|
(I, [k, { get: P2 }]) => (I[k] = P2(c), I),
|
|
@@ -18991,21 +18991,21 @@ var Kl2 = ({
|
|
|
18991
18991
|
E2(S2);
|
|
18992
18992
|
}, m = {};
|
|
18993
18993
|
let f;
|
|
18994
|
-
const
|
|
18995
|
-
var k, P2, ue2, x, U2, te2, ve2, Te2, Jt2,
|
|
18996
|
-
const
|
|
18994
|
+
const D = async (S2, I) => {
|
|
18995
|
+
var k, P2, ue2, x, U2, te2, ve2, Te2, Jt2, Wi2, Bi2, ei2, Me2, Ce2, Ze2, ti2;
|
|
18996
|
+
const Vi2 = !!f;
|
|
18997
18997
|
if (f = {
|
|
18998
18998
|
...c,
|
|
18999
18999
|
...f ?? {},
|
|
19000
19000
|
...S2
|
|
19001
|
-
},
|
|
19001
|
+
}, Vi2)
|
|
19002
19002
|
return;
|
|
19003
19003
|
await Wl2(...Object.values(S2));
|
|
19004
|
-
const
|
|
19005
|
-
if (!(
|
|
19004
|
+
const Be2 = d.length > 0 && I === 0 && l, ii2 = c.media !== f.media, ai2 = ((k = c.media) == null ? void 0 : k.textTracks) !== ((P2 = f.media) == null ? void 0 : P2.textTracks), ri2 = ((ue2 = c.media) == null ? void 0 : ue2.videoRenditions) !== ((x = f.media) == null ? void 0 : x.videoRenditions), ni2 = ((U2 = c.media) == null ? void 0 : U2.audioTracks) !== ((te2 = f.media) == null ? void 0 : te2.audioTracks), si2 = ((ve2 = c.media) == null ? void 0 : ve2.remote) !== ((Te2 = f.media) == null ? void 0 : Te2.remote), Gi2 = c.documentElement !== f.documentElement, Ki2 = !!c.media && (ii2 || Be2), It = !!((Jt2 = c.media) != null && Jt2.textTracks) && (ai2 || Be2), yt2 = !!((Wi2 = c.media) != null && Wi2.videoRenditions) && (ri2 || Be2), ot2 = !!((Bi2 = c.media) != null && Bi2.audioTracks) && (ni2 || Be2), St2 = !!((ei2 = c.media) != null && ei2.remote) && (si2 || Be2), lt = !!c.documentElement && (Gi2 || Be2), qi2 = Ki2 || It || yt2 || ot2 || St2 || lt, Ve2 = d.length === 0 && I === 1 && l, Yi2 = !!f.media && (ii2 || Ve2), Qi2 = !!((Me2 = f.media) != null && Me2.textTracks) && (ai2 || Ve2), dt2 = !!((Ce2 = f.media) != null && Ce2.videoRenditions) && (ri2 || Ve2), Xe2 = !!((Ze2 = f.media) != null && Ze2.audioTracks) && (ni2 || Ve2), oi2 = !!((ti2 = f.media) != null && ti2.remote) && (si2 || Ve2), li2 = !!f.documentElement && (Gi2 || Ve2), ut2 = Yi2 || Qi2 || dt2 || Xe2 || oi2 || li2;
|
|
19005
|
+
if (!(qi2 || ut2)) {
|
|
19006
19006
|
Object.entries(f).forEach(
|
|
19007
|
-
([W2,
|
|
19008
|
-
c[W2] =
|
|
19007
|
+
([W2, Ge2]) => {
|
|
19008
|
+
c[W2] = Ge2;
|
|
19009
19009
|
}
|
|
19010
19010
|
), _(), f = void 0;
|
|
19011
19011
|
return;
|
|
@@ -19014,34 +19014,34 @@ var Kl2 = ({
|
|
|
19014
19014
|
([
|
|
19015
19015
|
W2,
|
|
19016
19016
|
{
|
|
19017
|
-
get:
|
|
19017
|
+
get: Ge2,
|
|
19018
19018
|
mediaEvents: _r2 = [],
|
|
19019
19019
|
textTracksEvents: gr2 = [],
|
|
19020
|
-
videoRenditionsEvents:
|
|
19021
|
-
audioTracksEvents:
|
|
19022
|
-
remoteEvents:
|
|
19020
|
+
videoRenditionsEvents: zi2 = [],
|
|
19021
|
+
audioTracksEvents: Zi2 = [],
|
|
19022
|
+
remoteEvents: Xi2 = [],
|
|
19023
19023
|
rootEvents: br2 = [],
|
|
19024
|
-
stateOwnersUpdateHandlers:
|
|
19024
|
+
stateOwnersUpdateHandlers: ji2 = []
|
|
19025
19025
|
}
|
|
19026
19026
|
]) => {
|
|
19027
19027
|
m[W2] || (m[W2] = {});
|
|
19028
19028
|
const le2 = (G) => {
|
|
19029
|
-
const ce2 =
|
|
19029
|
+
const ce2 = Ge2(c, G);
|
|
19030
19030
|
E2({ [W2]: ce2 });
|
|
19031
19031
|
};
|
|
19032
19032
|
let X;
|
|
19033
19033
|
X = m[W2].mediaEvents, _r2.forEach((G) => {
|
|
19034
|
-
X &&
|
|
19034
|
+
X && Ki2 && (c.media.removeEventListener(G, X), m[W2].mediaEvents = void 0), Yi2 && (f.media.addEventListener(G, le2), m[W2].mediaEvents = le2);
|
|
19035
19035
|
}), X = m[W2].textTracksEvents, gr2.forEach((G) => {
|
|
19036
19036
|
var ce2, fe2;
|
|
19037
19037
|
X && It && ((ce2 = c.media.textTracks) == null || ce2.removeEventListener(
|
|
19038
19038
|
G,
|
|
19039
19039
|
X
|
|
19040
|
-
), m[W2].textTracksEvents = void 0),
|
|
19040
|
+
), m[W2].textTracksEvents = void 0), Qi2 && ((fe2 = f.media.textTracks) == null || fe2.addEventListener(
|
|
19041
19041
|
G,
|
|
19042
19042
|
le2
|
|
19043
19043
|
), m[W2].textTracksEvents = le2);
|
|
19044
|
-
}), X = m[W2].videoRenditionsEvents,
|
|
19044
|
+
}), X = m[W2].videoRenditionsEvents, zi2.forEach((G) => {
|
|
19045
19045
|
var ce2, fe2;
|
|
19046
19046
|
X && yt2 && ((ce2 = c.media.videoRenditions) == null || ce2.removeEventListener(
|
|
19047
19047
|
G,
|
|
@@ -19050,7 +19050,7 @@ var Kl2 = ({
|
|
|
19050
19050
|
G,
|
|
19051
19051
|
le2
|
|
19052
19052
|
), m[W2].videoRenditionsEvents = le2);
|
|
19053
|
-
}), X = m[W2].audioTracksEvents,
|
|
19053
|
+
}), X = m[W2].audioTracksEvents, Zi2.forEach((G) => {
|
|
19054
19054
|
var ce2, fe2;
|
|
19055
19055
|
X && ot2 && ((ce2 = c.media.audioTracks) == null || ce2.removeEventListener(
|
|
19056
19056
|
G,
|
|
@@ -19059,7 +19059,7 @@ var Kl2 = ({
|
|
|
19059
19059
|
G,
|
|
19060
19060
|
le2
|
|
19061
19061
|
), m[W2].audioTracksEvents = le2);
|
|
19062
|
-
}), X = m[W2].remoteEvents,
|
|
19062
|
+
}), X = m[W2].remoteEvents, Xi2.forEach((G) => {
|
|
19063
19063
|
var ce2, fe2;
|
|
19064
19064
|
X && St2 && ((ce2 = c.media.remote) == null || ce2.removeEventListener(
|
|
19065
19065
|
G,
|
|
@@ -19074,19 +19074,19 @@ var Kl2 = ({
|
|
|
19074
19074
|
le2
|
|
19075
19075
|
), m[W2].rootEvents = le2);
|
|
19076
19076
|
});
|
|
19077
|
-
const
|
|
19078
|
-
|
|
19079
|
-
|
|
19077
|
+
const Ji2 = m[W2].stateOwnersUpdateHandlers;
|
|
19078
|
+
ji2.forEach((G) => {
|
|
19079
|
+
Ji2 && qi2 && Ji2(), ut2 && (m[W2].stateOwnersUpdateHandlers = G(
|
|
19080
19080
|
le2,
|
|
19081
19081
|
f
|
|
19082
19082
|
));
|
|
19083
19083
|
});
|
|
19084
19084
|
}
|
|
19085
|
-
), Object.entries(f).forEach(([W2,
|
|
19086
|
-
c[W2] =
|
|
19085
|
+
), Object.entries(f).forEach(([W2, Ge2]) => {
|
|
19086
|
+
c[W2] = Ge2;
|
|
19087
19087
|
}), _(), f = void 0;
|
|
19088
19088
|
};
|
|
19089
|
-
return
|
|
19089
|
+
return D({ media: t, fullscreenElement: e, documentElement: i, options: n }), {
|
|
19090
19090
|
// note that none of these cases directly interact with the media element, root node, full screen element, etc.
|
|
19091
19091
|
// note these "actions" could just be the events if we wanted, especially if we normalize on "detail" for
|
|
19092
19092
|
// any payload-relevant values
|
|
@@ -19094,21 +19094,21 @@ var Kl2 = ({
|
|
|
19094
19094
|
// "heavy lifting" is now moved into the facade `set()`
|
|
19095
19095
|
dispatch(S2) {
|
|
19096
19096
|
const { type: I, detail: k } = S2;
|
|
19097
|
-
if (r[I] &&
|
|
19097
|
+
if (r[I] && g2.mediaErrorCode == null) {
|
|
19098
19098
|
E2(r[I](a, c, S2));
|
|
19099
19099
|
return;
|
|
19100
19100
|
}
|
|
19101
|
-
I === "mediaelementchangerequest" ?
|
|
19101
|
+
I === "mediaelementchangerequest" ? D({ media: k }) : I === "fullscreenelementchangerequest" ? D({ fullscreenElement: k }) : I === "documentelementchangerequest" ? D({ documentElement: k }) : I === "optionschangerequest" && (Object.entries(k ?? {}).forEach(([P2, ue2]) => {
|
|
19102
19102
|
c.options[P2] = ue2;
|
|
19103
19103
|
}), _());
|
|
19104
19104
|
},
|
|
19105
19105
|
getState() {
|
|
19106
|
-
return
|
|
19106
|
+
return g2;
|
|
19107
19107
|
},
|
|
19108
19108
|
subscribe(S2) {
|
|
19109
|
-
return
|
|
19109
|
+
return D({}, d.length + 1), d.push(S2), S2(g2), () => {
|
|
19110
19110
|
const I = d.indexOf(S2);
|
|
19111
|
-
I >= 0 && (
|
|
19111
|
+
I >= 0 && (D({}, d.length - 1), d.splice(I, 1));
|
|
19112
19112
|
};
|
|
19113
19113
|
}
|
|
19114
19114
|
};
|
|
@@ -19126,15 +19126,15 @@ var Ke2 = (t, e, i) => {
|
|
|
19126
19126
|
var Je2 = (t, e, i, a) => (cn2(t, e, "write to private field"), e.set(t, i), i);
|
|
19127
19127
|
var rt2 = (t, e, i) => (cn2(t, e, "access private method"), i);
|
|
19128
19128
|
var _t2;
|
|
19129
|
-
var _i2;
|
|
19130
|
-
var B;
|
|
19131
19129
|
var gi2;
|
|
19132
|
-
var
|
|
19130
|
+
var B;
|
|
19131
|
+
var bi2;
|
|
19132
|
+
var Oe;
|
|
19133
19133
|
var Ea2;
|
|
19134
19134
|
var va2;
|
|
19135
19135
|
var Ur2;
|
|
19136
19136
|
var Zt2;
|
|
19137
|
-
var
|
|
19137
|
+
var Oi2;
|
|
19138
19138
|
var fa2;
|
|
19139
19139
|
var Nr2;
|
|
19140
19140
|
var Gs2 = [
|
|
@@ -19167,14 +19167,14 @@ var p = {
|
|
|
19167
19167
|
KEYBOARD_BACKWARD_SEEK_OFFSET: "keyboardbackwardseekoffset",
|
|
19168
19168
|
LANG: "lang"
|
|
19169
19169
|
};
|
|
19170
|
-
var Ks2 = class extends
|
|
19170
|
+
var Ks2 = class extends Fi2 {
|
|
19171
19171
|
constructor() {
|
|
19172
|
-
super(), Ke2(this, va2), Ke2(this, Zt2), Ke2(this, fa2), this.mediaStateReceivers = [], this.associatedElementSubscriptions = /* @__PURE__ */ new Map(), Ke2(this, _t2, new xs2(this, p.HOTKEYS)), Ke2(this,
|
|
19172
|
+
super(), Ke2(this, va2), Ke2(this, Zt2), Ke2(this, fa2), this.mediaStateReceivers = [], this.associatedElementSubscriptions = /* @__PURE__ */ new Map(), Ke2(this, _t2, new xs2(this, p.HOTKEYS)), Ke2(this, gi2, void 0), Ke2(this, B, void 0), Ke2(this, bi2, void 0), Ke2(this, Oe, void 0), Ke2(this, Ea2, (i) => {
|
|
19173
19173
|
var a;
|
|
19174
19174
|
(a = M(this, B)) == null || a.dispatch(i);
|
|
19175
19175
|
}), this.associateElement(this);
|
|
19176
19176
|
let e = {};
|
|
19177
|
-
Je2(this,
|
|
19177
|
+
Je2(this, bi2, (i) => {
|
|
19178
19178
|
Object.entries(i).forEach(([a, r]) => {
|
|
19179
19179
|
if (a in e && e[a] === r)
|
|
19180
19180
|
return;
|
|
@@ -19202,21 +19202,21 @@ var Ks2 = class extends Hi2 {
|
|
|
19202
19202
|
}
|
|
19203
19203
|
set mediaStore(e) {
|
|
19204
19204
|
var i, a;
|
|
19205
|
-
if (M(this, B) && ((i = M(this,
|
|
19205
|
+
if (M(this, B) && ((i = M(this, Oe)) == null || i.call(this), Je2(this, Oe, void 0)), Je2(this, B, e), !M(this, B) && !this.hasAttribute(p.NO_DEFAULT_STORE)) {
|
|
19206
19206
|
rt2(this, va2, Ur2).call(this);
|
|
19207
19207
|
return;
|
|
19208
19208
|
}
|
|
19209
|
-
Je2(this,
|
|
19210
|
-
M(this,
|
|
19209
|
+
Je2(this, Oe, (a = M(this, B)) == null ? void 0 : a.subscribe(
|
|
19210
|
+
M(this, bi2)
|
|
19211
19211
|
));
|
|
19212
19212
|
}
|
|
19213
19213
|
get fullscreenElement() {
|
|
19214
19214
|
var e;
|
|
19215
|
-
return (e = M(this,
|
|
19215
|
+
return (e = M(this, gi2)) != null ? e : this;
|
|
19216
19216
|
}
|
|
19217
19217
|
set fullscreenElement(e) {
|
|
19218
19218
|
var i;
|
|
19219
|
-
this.hasAttribute(p.FULLSCREEN_ELEMENT) && this.removeAttribute(p.FULLSCREEN_ELEMENT), Je2(this,
|
|
19219
|
+
this.hasAttribute(p.FULLSCREEN_ELEMENT) && this.removeAttribute(p.FULLSCREEN_ELEMENT), Je2(this, gi2, e), (i = M(this, B)) == null || i.dispatch({
|
|
19220
19220
|
type: "fullscreenelementchangerequest",
|
|
19221
19221
|
detail: this.fullscreenElement
|
|
19222
19222
|
});
|
|
@@ -19288,7 +19288,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19288
19288
|
R(this, p.NO_DEFAULT_STORE, e);
|
|
19289
19289
|
}
|
|
19290
19290
|
attributeChangedCallback(e, i, a) {
|
|
19291
|
-
var r, n, l, d, c,
|
|
19291
|
+
var r, n, l, d, c, g2, E2, _, m;
|
|
19292
19292
|
if (super.attributeChangedCallback(e, i, a), e === p.NO_HOTKEYS)
|
|
19293
19293
|
a !== i && a === "" ? (this.hasAttribute(p.HOTKEYS) && console.warn(
|
|
19294
19294
|
"Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."
|
|
@@ -19325,7 +19325,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19325
19325
|
}
|
|
19326
19326
|
});
|
|
19327
19327
|
else if (e === p.NO_AUTO_SEEK_TO_LIVE)
|
|
19328
|
-
(
|
|
19328
|
+
(g2 = M(this, B)) == null || g2.dispatch({
|
|
19329
19329
|
type: "optionschangerequest",
|
|
19330
19330
|
detail: {
|
|
19331
19331
|
noAutoSeekToLive: this.hasAttribute(p.NO_AUTO_SEEK_TO_LIVE)
|
|
@@ -19333,7 +19333,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19333
19333
|
});
|
|
19334
19334
|
else if (e === p.FULLSCREEN_ELEMENT) {
|
|
19335
19335
|
const f = a ? (E2 = this.getRootNode()) == null ? void 0 : E2.getElementById(a) : void 0;
|
|
19336
|
-
Je2(this,
|
|
19336
|
+
Je2(this, gi2, f), (_ = M(this, B)) == null || _.dispatch({
|
|
19337
19337
|
type: "fullscreenelementchangerequest",
|
|
19338
19338
|
detail: this.fullscreenElement
|
|
19339
19339
|
});
|
|
@@ -19350,8 +19350,8 @@ var Ks2 = class extends Hi2 {
|
|
|
19350
19350
|
!M(this, B) && !this.hasAttribute(p.NO_DEFAULT_STORE) && rt2(this, va2, Ur2).call(this), (e = M(this, B)) == null || e.dispatch({
|
|
19351
19351
|
type: "documentelementchangerequest",
|
|
19352
19352
|
detail: Ee2
|
|
19353
|
-
}), super.connectedCallback(), M(this, B) && !M(this,
|
|
19354
|
-
M(this,
|
|
19353
|
+
}), super.connectedCallback(), M(this, B) && !M(this, Oe) && Je2(this, Oe, (i = M(this, B)) == null ? void 0 : i.subscribe(
|
|
19354
|
+
M(this, bi2)
|
|
19355
19355
|
)), this.hasAttribute(p.NO_HOTKEYS) ? this.disableHotkeys() : this.enableHotkeys();
|
|
19356
19356
|
}
|
|
19357
19357
|
disconnectedCallback() {
|
|
@@ -19360,9 +19360,9 @@ var Ks2 = class extends Hi2 {
|
|
|
19360
19360
|
type: "documentelementchangerequest",
|
|
19361
19361
|
detail: void 0
|
|
19362
19362
|
}), (a = M(this, B)) == null || a.dispatch({
|
|
19363
|
-
type:
|
|
19363
|
+
type: b2.MEDIA_TOGGLE_SUBTITLES_REQUEST,
|
|
19364
19364
|
detail: false
|
|
19365
|
-
})), M(this,
|
|
19365
|
+
})), M(this, Oe) && ((r = M(this, Oe)) == null || r.call(this), Je2(this, Oe, void 0));
|
|
19366
19366
|
}
|
|
19367
19367
|
/**
|
|
19368
19368
|
* @override
|
|
@@ -19400,7 +19400,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19400
19400
|
a,
|
|
19401
19401
|
r
|
|
19402
19402
|
);
|
|
19403
|
-
Object.values(
|
|
19403
|
+
Object.values(b2).forEach((l) => {
|
|
19404
19404
|
e.addEventListener(l, M(this, Ea2));
|
|
19405
19405
|
}), i.set(e, n);
|
|
19406
19406
|
}
|
|
@@ -19410,7 +19410,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19410
19410
|
const { associatedElementSubscriptions: i } = this;
|
|
19411
19411
|
if (!i.has(e))
|
|
19412
19412
|
return;
|
|
19413
|
-
i.get(e)(), i.delete(e), Object.values(
|
|
19413
|
+
i.get(e)(), i.delete(e), Object.values(b2).forEach((r) => {
|
|
19414
19414
|
e.removeEventListener(r, M(this, Ea2));
|
|
19415
19415
|
});
|
|
19416
19416
|
}
|
|
@@ -19432,7 +19432,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19432
19432
|
this.addEventListener("keydown", rt2(this, fa2, Nr2));
|
|
19433
19433
|
}
|
|
19434
19434
|
disableHotkeys() {
|
|
19435
|
-
this.removeEventListener("keydown", rt2(this, fa2, Nr2)), this.removeEventListener("keyup", rt2(this, Zt2,
|
|
19435
|
+
this.removeEventListener("keydown", rt2(this, fa2, Nr2)), this.removeEventListener("keyup", rt2(this, Zt2, Oi2));
|
|
19436
19436
|
}
|
|
19437
19437
|
get hotkeys() {
|
|
19438
19438
|
return Y(this, p.HOTKEYS);
|
|
@@ -19445,29 +19445,29 @@ var Ks2 = class extends Hi2 {
|
|
|
19445
19445
|
const d = e.target;
|
|
19446
19446
|
if (((r = (a = (i = d.getAttribute(p.KEYS_USED)) == null ? void 0 : i.split(" ")) != null ? a : d == null ? void 0 : d.keysUsed) != null ? r : []).map((m) => m === "Space" ? " " : m).filter(Boolean).includes(e.key))
|
|
19447
19447
|
return;
|
|
19448
|
-
let
|
|
19448
|
+
let g2, E2, _;
|
|
19449
19449
|
if (!M(this, _t2).contains(`no${e.key.toLowerCase()}`) && !(e.key === " " && M(this, _t2).contains("nospace")))
|
|
19450
19450
|
switch (e.key) {
|
|
19451
19451
|
case " ":
|
|
19452
19452
|
case "k":
|
|
19453
|
-
|
|
19454
|
-
new u2.CustomEvent(
|
|
19453
|
+
g2 = M(this, B).getState().mediaPaused ? b2.MEDIA_PLAY_REQUEST : b2.MEDIA_PAUSE_REQUEST, this.dispatchEvent(
|
|
19454
|
+
new u2.CustomEvent(g2, {
|
|
19455
19455
|
composed: true,
|
|
19456
19456
|
bubbles: true
|
|
19457
19457
|
})
|
|
19458
19458
|
);
|
|
19459
19459
|
break;
|
|
19460
19460
|
case "m":
|
|
19461
|
-
|
|
19462
|
-
new u2.CustomEvent(
|
|
19461
|
+
g2 = this.mediaStore.getState().mediaVolumeLevel === "off" ? b2.MEDIA_UNMUTE_REQUEST : b2.MEDIA_MUTE_REQUEST, this.dispatchEvent(
|
|
19462
|
+
new u2.CustomEvent(g2, {
|
|
19463
19463
|
composed: true,
|
|
19464
19464
|
bubbles: true
|
|
19465
19465
|
})
|
|
19466
19466
|
);
|
|
19467
19467
|
break;
|
|
19468
19468
|
case "f":
|
|
19469
|
-
|
|
19470
|
-
new u2.CustomEvent(
|
|
19469
|
+
g2 = this.mediaStore.getState().mediaIsFullscreen ? b2.MEDIA_EXIT_FULLSCREEN_REQUEST : b2.MEDIA_ENTER_FULLSCREEN_REQUEST, this.dispatchEvent(
|
|
19470
|
+
new u2.CustomEvent(g2, {
|
|
19471
19471
|
composed: true,
|
|
19472
19472
|
bubbles: true
|
|
19473
19473
|
})
|
|
@@ -19476,7 +19476,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19476
19476
|
case "c":
|
|
19477
19477
|
this.dispatchEvent(
|
|
19478
19478
|
new u2.CustomEvent(
|
|
19479
|
-
|
|
19479
|
+
b2.MEDIA_TOGGLE_SUBTITLES_REQUEST,
|
|
19480
19480
|
{ composed: true, bubbles: true }
|
|
19481
19481
|
)
|
|
19482
19482
|
);
|
|
@@ -19488,7 +19488,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19488
19488
|
E2 = Math.max(
|
|
19489
19489
|
((n = this.mediaStore.getState().mediaCurrentTime) != null ? n : 0) - m,
|
|
19490
19490
|
0
|
|
19491
|
-
), _ = new u2.CustomEvent(
|
|
19491
|
+
), _ = new u2.CustomEvent(b2.MEDIA_SEEK_REQUEST, {
|
|
19492
19492
|
composed: true,
|
|
19493
19493
|
bubbles: true,
|
|
19494
19494
|
detail: E2
|
|
@@ -19502,7 +19502,7 @@ var Ks2 = class extends Hi2 {
|
|
|
19502
19502
|
E2 = Math.max(
|
|
19503
19503
|
((l = this.mediaStore.getState().mediaCurrentTime) != null ? l : 0) + m,
|
|
19504
19504
|
0
|
|
19505
|
-
), _ = new u2.CustomEvent(
|
|
19505
|
+
), _ = new u2.CustomEvent(b2.MEDIA_SEEK_REQUEST, {
|
|
19506
19506
|
composed: true,
|
|
19507
19507
|
bubbles: true,
|
|
19508
19508
|
detail: E2
|
|
@@ -19513,10 +19513,10 @@ var Ks2 = class extends Hi2 {
|
|
|
19513
19513
|
}
|
|
19514
19514
|
};
|
|
19515
19515
|
_t2 = /* @__PURE__ */ new WeakMap();
|
|
19516
|
-
_i2 = /* @__PURE__ */ new WeakMap();
|
|
19517
|
-
B = /* @__PURE__ */ new WeakMap();
|
|
19518
19516
|
gi2 = /* @__PURE__ */ new WeakMap();
|
|
19519
|
-
|
|
19517
|
+
B = /* @__PURE__ */ new WeakMap();
|
|
19518
|
+
bi2 = /* @__PURE__ */ new WeakMap();
|
|
19519
|
+
Oe = /* @__PURE__ */ new WeakMap();
|
|
19520
19520
|
Ea2 = /* @__PURE__ */ new WeakMap();
|
|
19521
19521
|
va2 = /* @__PURE__ */ new WeakSet();
|
|
19522
19522
|
Ur2 = function() {
|
|
@@ -19546,10 +19546,10 @@ Ur2 = function() {
|
|
|
19546
19546
|
});
|
|
19547
19547
|
};
|
|
19548
19548
|
Zt2 = /* @__PURE__ */ new WeakSet();
|
|
19549
|
-
|
|
19549
|
+
Oi2 = function(t) {
|
|
19550
19550
|
const { key: e } = t;
|
|
19551
19551
|
if (!Gs2.includes(e)) {
|
|
19552
|
-
this.removeEventListener("keyup", rt2(this, Zt2,
|
|
19552
|
+
this.removeEventListener("keyup", rt2(this, Zt2, Oi2));
|
|
19553
19553
|
return;
|
|
19554
19554
|
}
|
|
19555
19555
|
this.keyboardShortcutHandler(t);
|
|
@@ -19558,10 +19558,10 @@ fa2 = /* @__PURE__ */ new WeakSet();
|
|
|
19558
19558
|
Nr2 = function(t) {
|
|
19559
19559
|
const { metaKey: e, altKey: i, key: a } = t;
|
|
19560
19560
|
if (e || i || !Gs2.includes(a)) {
|
|
19561
|
-
this.removeEventListener("keyup", rt2(this, Zt2,
|
|
19561
|
+
this.removeEventListener("keyup", rt2(this, Zt2, Oi2));
|
|
19562
19562
|
return;
|
|
19563
19563
|
}
|
|
19564
|
-
[" ", "ArrowLeft", "ArrowRight"].includes(a) && !(M(this, _t2).contains(`no${a.toLowerCase()}`) || a === " " && M(this, _t2).contains("nospace")) && t.preventDefault(), this.addEventListener("keyup", rt2(this, Zt2,
|
|
19564
|
+
[" ", "ArrowLeft", "ArrowRight"].includes(a) && !(M(this, _t2).contains(`no${a.toLowerCase()}`) || a === " " && M(this, _t2).contains("nospace")) && t.preventDefault(), this.addEventListener("keyup", rt2(this, Zt2, Oi2), { once: true });
|
|
19565
19565
|
};
|
|
19566
19566
|
var ql2 = Object.values(s);
|
|
19567
19567
|
var Yl2 = Object.values(ps2);
|
|
@@ -19621,8 +19621,8 @@ var pt2 = (t, e) => {
|
|
|
19621
19621
|
const i = (r, n) => {
|
|
19622
19622
|
var l, d;
|
|
19623
19623
|
$r2(r) && n(r);
|
|
19624
|
-
const { children: c = [] } = r ?? {},
|
|
19625
|
-
[...c, ...
|
|
19624
|
+
const { children: c = [] } = r ?? {}, g2 = (d = (l = r == null ? void 0 : r.shadowRoot) == null ? void 0 : l.children) != null ? d : [];
|
|
19625
|
+
[...c, ...g2].forEach(
|
|
19626
19626
|
(_) => pt2(
|
|
19627
19627
|
_,
|
|
19628
19628
|
n
|
|
@@ -19659,10 +19659,10 @@ var Xl2 = (t, e, i) => {
|
|
|
19659
19659
|
i(m);
|
|
19660
19660
|
};
|
|
19661
19661
|
t.addEventListener(
|
|
19662
|
-
|
|
19662
|
+
b2.REGISTER_MEDIA_STATE_RECEIVER,
|
|
19663
19663
|
a
|
|
19664
19664
|
), t.addEventListener(
|
|
19665
|
-
|
|
19665
|
+
b2.UNREGISTER_MEDIA_STATE_RECEIVER,
|
|
19666
19666
|
r
|
|
19667
19667
|
);
|
|
19668
19668
|
const n = (E2) => {
|
|
@@ -19670,11 +19670,11 @@ var Xl2 = (t, e, i) => {
|
|
|
19670
19670
|
const {
|
|
19671
19671
|
addedNodes: m = [],
|
|
19672
19672
|
removedNodes: f = [],
|
|
19673
|
-
type:
|
|
19673
|
+
type: D,
|
|
19674
19674
|
target: S2,
|
|
19675
19675
|
attributeName: I
|
|
19676
19676
|
} = _;
|
|
19677
|
-
|
|
19677
|
+
D === "childList" ? (Array.prototype.forEach.call(
|
|
19678
19678
|
m,
|
|
19679
19679
|
(k) => pt2(
|
|
19680
19680
|
k,
|
|
@@ -19686,7 +19686,7 @@ var Xl2 = (t, e, i) => {
|
|
|
19686
19686
|
k,
|
|
19687
19687
|
i
|
|
19688
19688
|
)
|
|
19689
|
-
)) :
|
|
19689
|
+
)) : D === "attributes" && I === $2.MEDIA_CHROME_ATTRIBUTES && ($r2(S2) ? e(S2) : i(S2));
|
|
19690
19690
|
});
|
|
19691
19691
|
};
|
|
19692
19692
|
let l = [];
|
|
@@ -19708,10 +19708,10 @@ var Xl2 = (t, e, i) => {
|
|
|
19708
19708
|
subtree: true
|
|
19709
19709
|
}), () => {
|
|
19710
19710
|
pt2(t, i), t.removeEventListener("slotchange", d), c.disconnect(), t.removeEventListener(
|
|
19711
|
-
|
|
19711
|
+
b2.REGISTER_MEDIA_STATE_RECEIVER,
|
|
19712
19712
|
a
|
|
19713
19713
|
), t.removeEventListener(
|
|
19714
|
-
|
|
19714
|
+
b2.UNREGISTER_MEDIA_STATE_RECEIVER,
|
|
19715
19715
|
r
|
|
19716
19716
|
);
|
|
19717
19717
|
};
|
|
@@ -19848,14 +19848,14 @@ var er2 = class extends u2.HTMLElement {
|
|
|
19848
19848
|
this.style.removeProperty("--media-tooltip-offset-x");
|
|
19849
19849
|
return;
|
|
19850
19850
|
}
|
|
19851
|
-
const a = getComputedStyle(this), r = (e =
|
|
19851
|
+
const a = getComputedStyle(this), r = (e = Hi2(this, "#" + this.bounds)) != null ? e : al2(this);
|
|
19852
19852
|
if (!r)
|
|
19853
19853
|
return;
|
|
19854
|
-
const { x: n, width: l } = r.getBoundingClientRect(), { x: d, width: c } = this.getBoundingClientRect(),
|
|
19854
|
+
const { x: n, width: l } = r.getBoundingClientRect(), { x: d, width: c } = this.getBoundingClientRect(), g2 = d + c, E2 = n + l, _ = a.getPropertyValue(
|
|
19855
19855
|
"--media-tooltip-offset-x"
|
|
19856
19856
|
), m = _ ? parseFloat(_.replace("px", "")) : 0, f = a.getPropertyValue(
|
|
19857
19857
|
"--media-tooltip-container-margin"
|
|
19858
|
-
),
|
|
19858
|
+
), D = f ? parseFloat(f.replace("px", "")) : 0, S2 = d - n + m - D, I = g2 - E2 + m + D;
|
|
19859
19859
|
if (S2 < 0) {
|
|
19860
19860
|
this.style.setProperty("--media-tooltip-offset-x", `${S2}px`);
|
|
19861
19861
|
return;
|
|
@@ -19867,7 +19867,7 @@ var er2 = class extends u2.HTMLElement {
|
|
|
19867
19867
|
this.style.removeProperty("--media-tooltip-offset-x");
|
|
19868
19868
|
}, !this.shadowRoot) {
|
|
19869
19869
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
19870
|
-
const e =
|
|
19870
|
+
const e = Re2(this.attributes);
|
|
19871
19871
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
19872
19872
|
}
|
|
19873
19873
|
if (this.arrowEl = this.shadowRoot.querySelector("#arrow"), Object.prototype.hasOwnProperty.call(this, "placement")) {
|
|
@@ -19914,7 +19914,7 @@ var Lt2 = (t, e, i) => {
|
|
|
19914
19914
|
};
|
|
19915
19915
|
var ra2 = (t, e, i, a) => (hn2(t, e, "write to private field"), e.set(t, i), i);
|
|
19916
19916
|
var ed2 = (t, e, i) => (hn2(t, e, "access private method"), i);
|
|
19917
|
-
var
|
|
19917
|
+
var xe2;
|
|
19918
19918
|
var qt2;
|
|
19919
19919
|
var nt2;
|
|
19920
19920
|
var Ut;
|
|
@@ -20027,7 +20027,7 @@ function ad2() {
|
|
|
20027
20027
|
}
|
|
20028
20028
|
var oe2 = class extends u2.HTMLElement {
|
|
20029
20029
|
constructor() {
|
|
20030
|
-
if (super(), Lt2(this, Fr2), Lt2(this,
|
|
20030
|
+
if (super(), Lt2(this, Fr2), Lt2(this, xe2, void 0), this.preventClick = false, this.tooltipEl = null, Lt2(this, qt2, (e) => {
|
|
20031
20031
|
this.preventClick || this.handleClick(e), setTimeout(J(this, nt2), 0);
|
|
20032
20032
|
}), Lt2(this, nt2, () => {
|
|
20033
20033
|
var e, i;
|
|
@@ -20048,7 +20048,7 @@ var oe2 = class extends u2.HTMLElement {
|
|
|
20048
20048
|
this.addEventListener("keyup", J(this, Ut), { once: true });
|
|
20049
20049
|
}), !this.shadowRoot) {
|
|
20050
20050
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
20051
|
-
const e =
|
|
20051
|
+
const e = Re2(this.attributes), i = this.constructor.getTemplateHTML(e);
|
|
20052
20052
|
this.shadowRoot.setHTMLUnsafe ? this.shadowRoot.setHTMLUnsafe(i) : this.shadowRoot.innerHTML = i;
|
|
20053
20053
|
}
|
|
20054
20054
|
this.tooltipEl = this.shadowRoot.querySelector("media-tooltip");
|
|
@@ -20069,7 +20069,7 @@ var oe2 = class extends u2.HTMLElement {
|
|
|
20069
20069
|
}
|
|
20070
20070
|
attributeChangedCallback(e, i, a) {
|
|
20071
20071
|
var r, n, l, d, c;
|
|
20072
|
-
e === $2.MEDIA_CONTROLLER ? (i && ((n = (r = J(this,
|
|
20072
|
+
e === $2.MEDIA_CONTROLLER ? (i && ((n = (r = J(this, xe2)) == null ? void 0 : r.unassociateElement) == null || n.call(r, this), ra2(this, xe2, null)), a && this.isConnected && (ra2(this, xe2, (l = this.getRootNode()) == null ? void 0 : l.getElementById(a)), (c = (d = J(this, xe2)) == null ? void 0 : d.associateElement) == null || c.call(d, this))) : e === "disabled" && a !== i ? a == null ? this.enable() : this.disable() : e === et2.TOOLTIP_PLACEMENT && this.tooltipEl && a !== i ? this.tooltipEl.placement = a : e === s.MEDIA_LANG && (this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML = this.constructor.getTooltipContentHTML()), J(this, nt2).call(this);
|
|
20073
20073
|
}
|
|
20074
20074
|
connectedCallback() {
|
|
20075
20075
|
var e, i, a;
|
|
@@ -20083,14 +20083,14 @@ var oe2 = class extends u2.HTMLElement {
|
|
|
20083
20083
|
);
|
|
20084
20084
|
n && (ra2(
|
|
20085
20085
|
this,
|
|
20086
|
-
|
|
20086
|
+
xe2,
|
|
20087
20087
|
// @ts-ignore
|
|
20088
20088
|
(e = this.getRootNode()) == null ? void 0 : e.getElementById(n)
|
|
20089
|
-
), (a = (i = J(this,
|
|
20089
|
+
), (a = (i = J(this, xe2)) == null ? void 0 : i.associateElement) == null || a.call(i, this)), u2.customElements.whenDefined("media-tooltip").then(() => ed2(this, Fr2, Ys2).call(this));
|
|
20090
20090
|
}
|
|
20091
20091
|
disconnectedCallback() {
|
|
20092
20092
|
var e, i;
|
|
20093
|
-
this.disable(), (i = (e = J(this,
|
|
20093
|
+
this.disable(), (i = (e = J(this, xe2)) == null ? void 0 : e.unassociateElement) == null || i.call(e, this), ra2(this, xe2, null), this.removeEventListener("mouseenter", J(this, nt2)), this.removeEventListener("focus", J(this, nt2)), this.removeEventListener("click", J(this, qt2));
|
|
20094
20094
|
}
|
|
20095
20095
|
get keysUsed() {
|
|
20096
20096
|
return ["Enter", " "];
|
|
@@ -20130,7 +20130,7 @@ var oe2 = class extends u2.HTMLElement {
|
|
|
20130
20130
|
}
|
|
20131
20131
|
// eslint-disable-line
|
|
20132
20132
|
};
|
|
20133
|
-
|
|
20133
|
+
xe2 = /* @__PURE__ */ new WeakMap();
|
|
20134
20134
|
qt2 = /* @__PURE__ */ new WeakMap();
|
|
20135
20135
|
nt2 = /* @__PURE__ */ new WeakMap();
|
|
20136
20136
|
Ut = /* @__PURE__ */ new WeakMap();
|
|
@@ -20225,7 +20225,7 @@ var tr2 = class extends oe2 {
|
|
|
20225
20225
|
}
|
|
20226
20226
|
handleClick() {
|
|
20227
20227
|
const e = new u2.CustomEvent(
|
|
20228
|
-
|
|
20228
|
+
b2.MEDIA_AIRPLAY_REQUEST,
|
|
20229
20229
|
{
|
|
20230
20230
|
composed: true,
|
|
20231
20231
|
bubbles: true
|
|
@@ -20322,7 +20322,7 @@ var ir2 = class extends oe2 {
|
|
|
20322
20322
|
}
|
|
20323
20323
|
handleClick() {
|
|
20324
20324
|
this.dispatchEvent(
|
|
20325
|
-
new u2.CustomEvent(
|
|
20325
|
+
new u2.CustomEvent(b2.MEDIA_TOGGLE_SUBTITLES_REQUEST, {
|
|
20326
20326
|
composed: true,
|
|
20327
20327
|
bubbles: true
|
|
20328
20328
|
})
|
|
@@ -20423,7 +20423,7 @@ var ar2 = class extends oe2 {
|
|
|
20423
20423
|
Q2(this, s.MEDIA_CAST_UNAVAILABLE, e);
|
|
20424
20424
|
}
|
|
20425
20425
|
handleClick() {
|
|
20426
|
-
const e = this.mediaIsCasting ?
|
|
20426
|
+
const e = this.mediaIsCasting ? b2.MEDIA_EXIT_CAST_REQUEST : b2.MEDIA_ENTER_CAST_REQUEST;
|
|
20427
20427
|
this.dispatchEvent(
|
|
20428
20428
|
new u2.CustomEvent(e, { composed: true, bubbles: true })
|
|
20429
20429
|
);
|
|
@@ -20446,7 +20446,7 @@ var qe2 = (t, e, i) => {
|
|
|
20446
20446
|
var pn2 = (t, e, i, a) => (mn2(t, e, "write to private field"), e.set(t, i), i);
|
|
20447
20447
|
var ht2 = (t, e, i) => (mn2(t, e, "access private method"), i);
|
|
20448
20448
|
var Wa2;
|
|
20449
|
-
var
|
|
20449
|
+
var xi2;
|
|
20450
20450
|
var At2;
|
|
20451
20451
|
var ga2;
|
|
20452
20452
|
var Wr2;
|
|
@@ -20515,22 +20515,22 @@ function gd2(t) {
|
|
|
20515
20515
|
`
|
|
20516
20516
|
);
|
|
20517
20517
|
}
|
|
20518
|
-
var
|
|
20518
|
+
var mi2 = {
|
|
20519
20519
|
OPEN: "open",
|
|
20520
20520
|
ANCHOR: "anchor"
|
|
20521
20521
|
};
|
|
20522
20522
|
var jt2 = class extends u2.HTMLElement {
|
|
20523
20523
|
constructor() {
|
|
20524
|
-
super(), qe2(this, ga2), qe2(this, Br2), qe2(this, Vr2), qe2(this, Gr2), qe2(this, Kr2), qe2(this, qr2), qe2(this, Wa2, false), qe2(this,
|
|
20524
|
+
super(), qe2(this, ga2), qe2(this, Br2), qe2(this, Vr2), qe2(this, Gr2), qe2(this, Kr2), qe2(this, qr2), qe2(this, Wa2, false), qe2(this, xi2, null), qe2(this, At2, null), this.addEventListener("invoke", this), this.addEventListener("focusout", this), this.addEventListener("keydown", this);
|
|
20525
20525
|
}
|
|
20526
20526
|
static get observedAttributes() {
|
|
20527
|
-
return [
|
|
20527
|
+
return [mi2.OPEN, mi2.ANCHOR];
|
|
20528
20528
|
}
|
|
20529
20529
|
get open() {
|
|
20530
|
-
return L2(this,
|
|
20530
|
+
return L2(this, mi2.OPEN);
|
|
20531
20531
|
}
|
|
20532
20532
|
set open(e) {
|
|
20533
|
-
R(this,
|
|
20533
|
+
R(this, mi2.OPEN, e);
|
|
20534
20534
|
}
|
|
20535
20535
|
handleEvent(e) {
|
|
20536
20536
|
switch (e.type) {
|
|
@@ -20549,10 +20549,10 @@ var jt2 = class extends u2.HTMLElement {
|
|
|
20549
20549
|
ht2(this, ga2, Wr2).call(this), this.role || (this.role = "dialog");
|
|
20550
20550
|
}
|
|
20551
20551
|
attributeChangedCallback(e, i, a) {
|
|
20552
|
-
ht2(this, ga2, Wr2).call(this), e ===
|
|
20552
|
+
ht2(this, ga2, Wr2).call(this), e === mi2.OPEN && a !== i && (this.open ? ht2(this, Br2, Qs2).call(this) : ht2(this, Vr2, zs2).call(this));
|
|
20553
20553
|
}
|
|
20554
20554
|
focus() {
|
|
20555
|
-
pn2(this,
|
|
20555
|
+
pn2(this, xi2, ks2());
|
|
20556
20556
|
const e = !this.dispatchEvent(new Event("focus", { composed: true, cancelable: true })), i = !this.dispatchEvent(new Event("focusin", { composed: true, bubbles: true, cancelable: true }));
|
|
20557
20557
|
if (e || i)
|
|
20558
20558
|
return;
|
|
@@ -20566,13 +20566,13 @@ var jt2 = class extends u2.HTMLElement {
|
|
|
20566
20566
|
}
|
|
20567
20567
|
};
|
|
20568
20568
|
Wa2 = /* @__PURE__ */ new WeakMap();
|
|
20569
|
-
|
|
20569
|
+
xi2 = /* @__PURE__ */ new WeakMap();
|
|
20570
20570
|
At2 = /* @__PURE__ */ new WeakMap();
|
|
20571
20571
|
ga2 = /* @__PURE__ */ new WeakSet();
|
|
20572
20572
|
Wr2 = function() {
|
|
20573
20573
|
if (!gt(this, Wa2) && (pn2(this, Wa2, true), !this.shadowRoot)) {
|
|
20574
20574
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
20575
|
-
const t =
|
|
20575
|
+
const t = Re2(this.attributes);
|
|
20576
20576
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(t), queueMicrotask(() => {
|
|
20577
20577
|
const { style: e } = ee2(this.shadowRoot, ":host");
|
|
20578
20578
|
e.setProperty(
|
|
@@ -20599,13 +20599,13 @@ Zs2 = function(t) {
|
|
|
20599
20599
|
Kr2 = /* @__PURE__ */ new WeakSet();
|
|
20600
20600
|
Xs2 = function(t) {
|
|
20601
20601
|
var e;
|
|
20602
|
-
Xt2(this, t.relatedTarget) || ((e = gt(this,
|
|
20602
|
+
Xt2(this, t.relatedTarget) || ((e = gt(this, xi2)) == null || e.focus(), gt(this, At2) && gt(this, At2) !== t.relatedTarget && this.open && (this.open = false));
|
|
20603
20603
|
};
|
|
20604
20604
|
qr2 = /* @__PURE__ */ new WeakSet();
|
|
20605
20605
|
js2 = function(t) {
|
|
20606
20606
|
var e, i, a, r, n;
|
|
20607
|
-
const { key: l, ctrlKey: d, altKey: c, metaKey:
|
|
20608
|
-
d || c ||
|
|
20607
|
+
const { key: l, ctrlKey: d, altKey: c, metaKey: g2 } = t;
|
|
20608
|
+
d || c || g2 || this.keysUsed.includes(l) && (t.preventDefault(), t.stopPropagation(), l === "Tab" ? (t.shiftKey ? (i = (e = this.previousElementSibling) == null ? void 0 : e.focus) == null || i.call(e) : (r = (a = this.nextElementSibling) == null ? void 0 : a.focus) == null || r.call(a), this.blur()) : l === "Escape" && ((n = gt(this, xi2)) == null || n.focus(), this.open = false));
|
|
20609
20609
|
};
|
|
20610
20610
|
jt2.shadowRootOptions = { mode: "open" };
|
|
20611
20611
|
jt2.getTemplateHTML = _d2;
|
|
@@ -20623,12 +20623,12 @@ var se2 = (t, e, i) => {
|
|
|
20623
20623
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
20624
20624
|
};
|
|
20625
20625
|
var it2 = (t, e, i, a) => (En2(t, e, "write to private field"), e.set(t, i), i);
|
|
20626
|
-
var
|
|
20627
|
-
var
|
|
20626
|
+
var we = (t, e, i) => (En2(t, e, "access private method"), i);
|
|
20627
|
+
var Ue2;
|
|
20628
20628
|
var rr2;
|
|
20629
20629
|
var ba2;
|
|
20630
20630
|
var Aa2;
|
|
20631
|
-
var
|
|
20631
|
+
var Le2;
|
|
20632
20632
|
var Ba2;
|
|
20633
20633
|
var Ta2;
|
|
20634
20634
|
var Ia2;
|
|
@@ -20885,7 +20885,7 @@ function Ad2(t) {
|
|
|
20885
20885
|
}
|
|
20886
20886
|
var Tt2 = class extends u2.HTMLElement {
|
|
20887
20887
|
constructor() {
|
|
20888
|
-
if (super(), se2(this, vn2), se2(this, Sa2), se2(this, Ma2), se2(this, Va2), se2(this, zr2), se2(this, Zr2), se2(this, Xr2), se2(this, jr2), se2(this,
|
|
20888
|
+
if (super(), se2(this, vn2), se2(this, Sa2), se2(this, Ma2), se2(this, Va2), se2(this, zr2), se2(this, Zr2), se2(this, Xr2), se2(this, jr2), se2(this, Ue2, void 0), se2(this, rr2, void 0), se2(this, ba2, void 0), se2(this, Aa2, void 0), se2(this, Le2, {}), se2(this, Ba2, []), se2(this, Ta2, () => {
|
|
20889
20889
|
if (this.range.matches(":focus-visible")) {
|
|
20890
20890
|
const { style: e } = ee2(this.shadowRoot, ":host");
|
|
20891
20891
|
e.setProperty(
|
|
@@ -20901,7 +20901,7 @@ var Tt2 = class extends u2.HTMLElement {
|
|
|
20901
20901
|
e && e.parentNode.append(e);
|
|
20902
20902
|
}), !this.shadowRoot) {
|
|
20903
20903
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
20904
|
-
const e =
|
|
20904
|
+
const e = Re2(this.attributes), i = this.constructor.getTemplateHTML(e);
|
|
20905
20905
|
this.shadowRoot.setHTMLUnsafe ? this.shadowRoot.setHTMLUnsafe(i) : this.shadowRoot.innerHTML = i;
|
|
20906
20906
|
}
|
|
20907
20907
|
this.container = this.shadowRoot.querySelector("#container"), it2(this, ba2, this.shadowRoot.querySelector("#startpoint")), it2(this, Aa2, this.shadowRoot.querySelector("#endpoint")), this.range = this.shadowRoot.querySelector("#range"), this.appearance = this.shadowRoot.querySelector("#appearance");
|
|
@@ -20915,7 +20915,7 @@ var Tt2 = class extends u2.HTMLElement {
|
|
|
20915
20915
|
}
|
|
20916
20916
|
attributeChangedCallback(e, i, a) {
|
|
20917
20917
|
var r, n, l, d, c;
|
|
20918
|
-
e === $2.MEDIA_CONTROLLER ? (i && ((n = (r = K2(this,
|
|
20918
|
+
e === $2.MEDIA_CONTROLLER ? (i && ((n = (r = K2(this, Ue2)) == null ? void 0 : r.unassociateElement) == null || n.call(r, this), it2(this, Ue2, null)), a && this.isConnected && (it2(this, Ue2, (l = this.getRootNode()) == null ? void 0 : l.getElementById(a)), (c = (d = K2(this, Ue2)) == null ? void 0 : d.associateElement) == null || c.call(d, this))) : (e === "disabled" || e === "aria-disabled" && i !== a) && (a == null ? (this.range.removeAttribute(e), we(this, Sa2, Yr2).call(this)) : (this.range.setAttribute(e, a), we(this, Ma2, Qr2).call(this)));
|
|
20919
20919
|
}
|
|
20920
20920
|
connectedCallback() {
|
|
20921
20921
|
var e, i, a;
|
|
@@ -20923,27 +20923,27 @@ var Tt2 = class extends u2.HTMLElement {
|
|
|
20923
20923
|
r.setProperty(
|
|
20924
20924
|
"display",
|
|
20925
20925
|
`var(--media-control-display, var(--${this.localName}-display, inline-flex))`
|
|
20926
|
-
), K2(this,
|
|
20926
|
+
), K2(this, Le2).pointer = ee2(this.shadowRoot, "#pointer"), K2(this, Le2).progress = ee2(this.shadowRoot, "#progress"), K2(this, Le2).thumb = ee2(
|
|
20927
20927
|
this.shadowRoot,
|
|
20928
20928
|
'#thumb, ::slotted([slot="thumb"])'
|
|
20929
|
-
), K2(this,
|
|
20929
|
+
), K2(this, Le2).activeSegment = ee2(
|
|
20930
20930
|
this.shadowRoot,
|
|
20931
20931
|
"#segments-clipping rect:nth-child(0)"
|
|
20932
20932
|
);
|
|
20933
20933
|
const n = this.getAttribute(
|
|
20934
20934
|
$2.MEDIA_CONTROLLER
|
|
20935
20935
|
);
|
|
20936
|
-
n && (it2(this,
|
|
20936
|
+
n && (it2(this, Ue2, (e = this.getRootNode()) == null ? void 0 : e.getElementById(
|
|
20937
20937
|
n
|
|
20938
|
-
)), (a = (i = K2(this,
|
|
20938
|
+
)), (a = (i = K2(this, Ue2)) == null ? void 0 : i.associateElement) == null || a.call(i, this)), this.updateBar(), this.shadowRoot.addEventListener("focusin", K2(this, Ta2)), this.shadowRoot.addEventListener("focusout", K2(this, Ia2)), we(this, Sa2, Yr2).call(this), Is2(this.container, K2(this, ya2));
|
|
20939
20939
|
}
|
|
20940
20940
|
disconnectedCallback() {
|
|
20941
20941
|
var e, i;
|
|
20942
|
-
|
|
20942
|
+
we(this, Ma2, Qr2).call(this), (i = (e = K2(this, Ue2)) == null ? void 0 : e.unassociateElement) == null || i.call(e, this), it2(this, Ue2, null), this.shadowRoot.removeEventListener("focusin", K2(this, Ta2)), this.shadowRoot.removeEventListener("focusout", K2(this, Ia2)), ys2(this.container, K2(this, ya2));
|
|
20943
20943
|
}
|
|
20944
20944
|
updatePointerBar(e) {
|
|
20945
20945
|
var i;
|
|
20946
|
-
(i = K2(this,
|
|
20946
|
+
(i = K2(this, Le2).pointer) == null || i.style.setProperty(
|
|
20947
20947
|
"width",
|
|
20948
20948
|
`${this.getPointerRatio(e) * 100}%`
|
|
20949
20949
|
);
|
|
@@ -20951,7 +20951,7 @@ var Tt2 = class extends u2.HTMLElement {
|
|
|
20951
20951
|
updateBar() {
|
|
20952
20952
|
var e, i;
|
|
20953
20953
|
const a = this.range.valueAsNumber * 100;
|
|
20954
|
-
(e = K2(this,
|
|
20954
|
+
(e = K2(this, Le2).progress) == null || e.style.setProperty("width", `${a}%`), (i = K2(this, Le2).thumb) == null || i.style.setProperty("left", `${a}%`);
|
|
20955
20955
|
}
|
|
20956
20956
|
updateSegments(e) {
|
|
20957
20957
|
const i = this.shadowRoot.querySelector("#segments-clipping");
|
|
@@ -20967,14 +20967,14 @@ var Tt2 = class extends u2.HTMLElement {
|
|
|
20967
20967
|
it2(this, Ba2, [...a]);
|
|
20968
20968
|
const r = a.pop();
|
|
20969
20969
|
for (const [n, l] of a.entries()) {
|
|
20970
|
-
const [d, c] = [n === 0, n === a.length - 1],
|
|
20970
|
+
const [d, c] = [n === 0, n === a.length - 1], g2 = d ? "calc(var(--segments-gap) / -1)" : `${l * 100}%`, _ = `calc(${((c ? r : a[n + 1]) - l) * 100}%${d || c ? "" : " - var(--segments-gap)"})`, m = Ee2.createElementNS(
|
|
20971
20971
|
"http://www.w3.org/2000/svg",
|
|
20972
20972
|
"rect"
|
|
20973
20973
|
), f = ee2(
|
|
20974
20974
|
this.shadowRoot,
|
|
20975
20975
|
`#segments-clipping rect:nth-child(${n + 1})`
|
|
20976
20976
|
);
|
|
20977
|
-
f.style.setProperty("x",
|
|
20977
|
+
f.style.setProperty("x", g2), f.style.setProperty("width", _), i.append(m);
|
|
20978
20978
|
}
|
|
20979
20979
|
}
|
|
20980
20980
|
getPointerRatio(e) {
|
|
@@ -20991,22 +20991,22 @@ var Tt2 = class extends u2.HTMLElement {
|
|
|
20991
20991
|
handleEvent(e) {
|
|
20992
20992
|
switch (e.type) {
|
|
20993
20993
|
case "pointermove":
|
|
20994
|
-
|
|
20994
|
+
we(this, jr2, ao2).call(this, e);
|
|
20995
20995
|
break;
|
|
20996
20996
|
case "input":
|
|
20997
20997
|
this.updateBar();
|
|
20998
20998
|
break;
|
|
20999
20999
|
case "pointerenter":
|
|
21000
|
-
|
|
21000
|
+
we(this, zr2, eo2).call(this, e);
|
|
21001
21001
|
break;
|
|
21002
21002
|
case "pointerdown":
|
|
21003
|
-
|
|
21003
|
+
we(this, Va2, fn2).call(this, e);
|
|
21004
21004
|
break;
|
|
21005
21005
|
case "pointerup":
|
|
21006
|
-
|
|
21006
|
+
we(this, Zr2, to2).call(this);
|
|
21007
21007
|
break;
|
|
21008
21008
|
case "pointerleave":
|
|
21009
|
-
|
|
21009
|
+
we(this, Xr2, io2).call(this);
|
|
21010
21010
|
break;
|
|
21011
21011
|
}
|
|
21012
21012
|
}
|
|
@@ -21014,18 +21014,18 @@ var Tt2 = class extends u2.HTMLElement {
|
|
|
21014
21014
|
return ["ArrowUp", "ArrowRight", "ArrowDown", "ArrowLeft"];
|
|
21015
21015
|
}
|
|
21016
21016
|
};
|
|
21017
|
-
|
|
21017
|
+
Ue2 = /* @__PURE__ */ new WeakMap();
|
|
21018
21018
|
rr2 = /* @__PURE__ */ new WeakMap();
|
|
21019
21019
|
ba2 = /* @__PURE__ */ new WeakMap();
|
|
21020
21020
|
Aa2 = /* @__PURE__ */ new WeakMap();
|
|
21021
|
-
|
|
21021
|
+
Le2 = /* @__PURE__ */ new WeakMap();
|
|
21022
21022
|
Ba2 = /* @__PURE__ */ new WeakMap();
|
|
21023
21023
|
Ta2 = /* @__PURE__ */ new WeakMap();
|
|
21024
21024
|
Ia2 = /* @__PURE__ */ new WeakMap();
|
|
21025
21025
|
ya2 = /* @__PURE__ */ new WeakMap();
|
|
21026
21026
|
vn2 = /* @__PURE__ */ new WeakSet();
|
|
21027
21027
|
Js2 = function(t) {
|
|
21028
|
-
const e = K2(this,
|
|
21028
|
+
const e = K2(this, Le2).activeSegment;
|
|
21029
21029
|
if (!e)
|
|
21030
21030
|
return;
|
|
21031
21031
|
const i = this.getPointerRatio(t), r = `#segments-clipping rect:nth-child(${K2(this, Ba2).findIndex((n, l, d) => {
|
|
@@ -21054,7 +21054,7 @@ fn2 = function(t) {
|
|
|
21054
21054
|
zr2 = /* @__PURE__ */ new WeakSet();
|
|
21055
21055
|
eo2 = function(t) {
|
|
21056
21056
|
var e;
|
|
21057
|
-
t.pointerType !== "mouse" &&
|
|
21057
|
+
t.pointerType !== "mouse" && we(this, Va2, fn2).call(this, t), this.addEventListener("pointerleave", this), (e = u2.window) == null || e.addEventListener("pointermove", this);
|
|
21058
21058
|
};
|
|
21059
21059
|
Zr2 = /* @__PURE__ */ new WeakSet();
|
|
21060
21060
|
to2 = function() {
|
|
@@ -21064,14 +21064,14 @@ to2 = function() {
|
|
|
21064
21064
|
Xr2 = /* @__PURE__ */ new WeakSet();
|
|
21065
21065
|
io2 = function() {
|
|
21066
21066
|
var t, e;
|
|
21067
|
-
this.removeEventListener("pointerleave", this), (t = u2.window) == null || t.removeEventListener("pointermove", this), this.toggleAttribute("dragging", false), this.range.disabled = this.hasAttribute("disabled"), (e = K2(this,
|
|
21067
|
+
this.removeEventListener("pointerleave", this), (t = u2.window) == null || t.removeEventListener("pointermove", this), this.toggleAttribute("dragging", false), this.range.disabled = this.hasAttribute("disabled"), (e = K2(this, Le2).activeSegment) == null || e.style.removeProperty("transform");
|
|
21068
21068
|
};
|
|
21069
21069
|
jr2 = /* @__PURE__ */ new WeakSet();
|
|
21070
21070
|
ao2 = function(t) {
|
|
21071
21071
|
this.toggleAttribute(
|
|
21072
21072
|
"dragging",
|
|
21073
21073
|
t.buttons === 1 || t.pointerType !== "mouse"
|
|
21074
|
-
), this.updatePointerBar(t),
|
|
21074
|
+
), this.updatePointerBar(t), we(this, vn2, Js2).call(this, t), this.dragging && (t.pointerType !== "mouse" || !K2(this, rr2)) && (this.range.disabled = true, this.range.valueAsNumber = this.getPointerRatio(t), this.range.dispatchEvent(
|
|
21075
21075
|
new Event("input", { bubbles: true, composed: true })
|
|
21076
21076
|
));
|
|
21077
21077
|
};
|
|
@@ -21090,7 +21090,7 @@ var Id2 = (t, e, i) => {
|
|
|
21090
21090
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
21091
21091
|
};
|
|
21092
21092
|
var sa2 = (t, e, i, a) => (ro2(t, e, "write to private field"), e.set(t, i), i);
|
|
21093
|
-
var
|
|
21093
|
+
var Ne2;
|
|
21094
21094
|
function yd2(t) {
|
|
21095
21095
|
return (
|
|
21096
21096
|
/*html*/
|
|
@@ -21125,9 +21125,9 @@ function yd2(t) {
|
|
|
21125
21125
|
}
|
|
21126
21126
|
var nr2 = class extends u2.HTMLElement {
|
|
21127
21127
|
constructor() {
|
|
21128
|
-
if (super(), Id2(this,
|
|
21128
|
+
if (super(), Id2(this, Ne2, void 0), !this.shadowRoot) {
|
|
21129
21129
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
21130
|
-
const e =
|
|
21130
|
+
const e = Re2(this.attributes);
|
|
21131
21131
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
21132
21132
|
}
|
|
21133
21133
|
}
|
|
@@ -21136,23 +21136,23 @@ var nr2 = class extends u2.HTMLElement {
|
|
|
21136
21136
|
}
|
|
21137
21137
|
attributeChangedCallback(e, i, a) {
|
|
21138
21138
|
var r, n, l, d, c;
|
|
21139
|
-
e === $2.MEDIA_CONTROLLER && (i && ((n = (r = na2(this,
|
|
21139
|
+
e === $2.MEDIA_CONTROLLER && (i && ((n = (r = na2(this, Ne2)) == null ? void 0 : r.unassociateElement) == null || n.call(r, this), sa2(this, Ne2, null)), a && this.isConnected && (sa2(this, Ne2, (l = this.getRootNode()) == null ? void 0 : l.getElementById(a)), (c = (d = na2(this, Ne2)) == null ? void 0 : d.associateElement) == null || c.call(d, this)));
|
|
21140
21140
|
}
|
|
21141
21141
|
connectedCallback() {
|
|
21142
21142
|
var e, i, a;
|
|
21143
21143
|
const r = this.getAttribute(
|
|
21144
21144
|
$2.MEDIA_CONTROLLER
|
|
21145
21145
|
);
|
|
21146
|
-
r && (sa2(this,
|
|
21146
|
+
r && (sa2(this, Ne2, (e = this.getRootNode()) == null ? void 0 : e.getElementById(
|
|
21147
21147
|
r
|
|
21148
|
-
)), (a = (i = na2(this,
|
|
21148
|
+
)), (a = (i = na2(this, Ne2)) == null ? void 0 : i.associateElement) == null || a.call(i, this));
|
|
21149
21149
|
}
|
|
21150
21150
|
disconnectedCallback() {
|
|
21151
21151
|
var e, i;
|
|
21152
|
-
(i = (e = na2(this,
|
|
21152
|
+
(i = (e = na2(this, Ne2)) == null ? void 0 : e.unassociateElement) == null || i.call(e, this), sa2(this, Ne2, null);
|
|
21153
21153
|
}
|
|
21154
21154
|
};
|
|
21155
|
-
|
|
21155
|
+
Ne2 = /* @__PURE__ */ new WeakMap();
|
|
21156
21156
|
nr2.shadowRootOptions = { mode: "open" };
|
|
21157
21157
|
nr2.getTemplateHTML = yd2;
|
|
21158
21158
|
u2.customElements.get("media-control-bar") || u2.customElements.define("media-control-bar", nr2);
|
|
@@ -21168,7 +21168,7 @@ var Md2 = (t, e, i) => {
|
|
|
21168
21168
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
21169
21169
|
};
|
|
21170
21170
|
var la2 = (t, e, i, a) => (no2(t, e, "write to private field"), e.set(t, i), i);
|
|
21171
|
-
var
|
|
21171
|
+
var $e2;
|
|
21172
21172
|
function kd2(t, e = {}) {
|
|
21173
21173
|
return (
|
|
21174
21174
|
/*html*/
|
|
@@ -21219,9 +21219,9 @@ function wd2(t, e) {
|
|
|
21219
21219
|
}
|
|
21220
21220
|
var ze = class extends u2.HTMLElement {
|
|
21221
21221
|
constructor() {
|
|
21222
|
-
if (super(), Md2(this,
|
|
21222
|
+
if (super(), Md2(this, $e2, void 0), !this.shadowRoot) {
|
|
21223
21223
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
21224
|
-
const e =
|
|
21224
|
+
const e = Re2(this.attributes);
|
|
21225
21225
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
21226
21226
|
}
|
|
21227
21227
|
}
|
|
@@ -21230,7 +21230,7 @@ var ze = class extends u2.HTMLElement {
|
|
|
21230
21230
|
}
|
|
21231
21231
|
attributeChangedCallback(e, i, a) {
|
|
21232
21232
|
var r, n, l, d, c;
|
|
21233
|
-
e === $2.MEDIA_CONTROLLER && (i && ((n = (r = oa2(this,
|
|
21233
|
+
e === $2.MEDIA_CONTROLLER && (i && ((n = (r = oa2(this, $e2)) == null ? void 0 : r.unassociateElement) == null || n.call(r, this), la2(this, $e2, null)), a && this.isConnected && (la2(this, $e2, (l = this.getRootNode()) == null ? void 0 : l.getElementById(a)), (c = (d = oa2(this, $e2)) == null ? void 0 : d.associateElement) == null || c.call(d, this)));
|
|
21234
21234
|
}
|
|
21235
21235
|
connectedCallback() {
|
|
21236
21236
|
var e, i, a;
|
|
@@ -21242,16 +21242,16 @@ var ze = class extends u2.HTMLElement {
|
|
|
21242
21242
|
const n = this.getAttribute(
|
|
21243
21243
|
$2.MEDIA_CONTROLLER
|
|
21244
21244
|
);
|
|
21245
|
-
n && (la2(this,
|
|
21245
|
+
n && (la2(this, $e2, (e = this.getRootNode()) == null ? void 0 : e.getElementById(
|
|
21246
21246
|
n
|
|
21247
|
-
)), (a = (i = oa2(this,
|
|
21247
|
+
)), (a = (i = oa2(this, $e2)) == null ? void 0 : i.associateElement) == null || a.call(i, this));
|
|
21248
21248
|
}
|
|
21249
21249
|
disconnectedCallback() {
|
|
21250
21250
|
var e, i;
|
|
21251
|
-
(i = (e = oa2(this,
|
|
21251
|
+
(i = (e = oa2(this, $e2)) == null ? void 0 : e.unassociateElement) == null || i.call(e, this), la2(this, $e2, null);
|
|
21252
21252
|
}
|
|
21253
21253
|
};
|
|
21254
|
-
|
|
21254
|
+
$e2 = /* @__PURE__ */ new WeakMap();
|
|
21255
21255
|
ze.shadowRootOptions = { mode: "open" };
|
|
21256
21256
|
ze.getTemplateHTML = kd2;
|
|
21257
21257
|
ze.getSlotTemplateHTML = wd2;
|
|
@@ -21267,9 +21267,9 @@ var Rd2 = (t, e, i) => {
|
|
|
21267
21267
|
throw TypeError("Cannot add the same private member more than once");
|
|
21268
21268
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
21269
21269
|
};
|
|
21270
|
-
var
|
|
21271
|
-
var
|
|
21272
|
-
function
|
|
21270
|
+
var Cd2 = (t, e, i, a) => (so2(t, e, "write to private field"), e.set(t, i), i);
|
|
21271
|
+
var Ai2;
|
|
21272
|
+
function Dd2(t, e) {
|
|
21273
21273
|
return (
|
|
21274
21274
|
/*html*/
|
|
21275
21275
|
`
|
|
@@ -21280,13 +21280,13 @@ function Cd2(t, e) {
|
|
|
21280
21280
|
var _n2 = class extends ze {
|
|
21281
21281
|
constructor() {
|
|
21282
21282
|
var e;
|
|
21283
|
-
super(), Rd2(this,
|
|
21283
|
+
super(), Rd2(this, Ai2, void 0), Cd2(this, Ai2, this.shadowRoot.querySelector("slot")), ts2(this, Ai2).textContent = st2((e = this.mediaDuration) != null ? e : 0);
|
|
21284
21284
|
}
|
|
21285
21285
|
static get observedAttributes() {
|
|
21286
21286
|
return [...super.observedAttributes, s.MEDIA_DURATION];
|
|
21287
21287
|
}
|
|
21288
21288
|
attributeChangedCallback(e, i, a) {
|
|
21289
|
-
e === s.MEDIA_DURATION && (ts2(this,
|
|
21289
|
+
e === s.MEDIA_DURATION && (ts2(this, Ai2).textContent = st2(+a)), super.attributeChangedCallback(e, i, a);
|
|
21290
21290
|
}
|
|
21291
21291
|
/**
|
|
21292
21292
|
* @type {number | undefined} In seconds
|
|
@@ -21298,8 +21298,8 @@ var _n2 = class extends ze {
|
|
|
21298
21298
|
ne2(this, s.MEDIA_DURATION, e);
|
|
21299
21299
|
}
|
|
21300
21300
|
};
|
|
21301
|
-
|
|
21302
|
-
_n2.getSlotTemplateHTML =
|
|
21301
|
+
Ai2 = /* @__PURE__ */ new WeakMap();
|
|
21302
|
+
_n2.getSlotTemplateHTML = Dd2;
|
|
21303
21303
|
u2.customElements.get("media-duration-display") || u2.customElements.define(
|
|
21304
21304
|
"media-duration-display",
|
|
21305
21305
|
_n2
|
|
@@ -21501,7 +21501,7 @@ var or2 = class extends oe2 {
|
|
|
21501
21501
|
R(this, s.MEDIA_IS_FULLSCREEN, e);
|
|
21502
21502
|
}
|
|
21503
21503
|
handleClick() {
|
|
21504
|
-
const e = this.mediaIsFullscreen ?
|
|
21504
|
+
const e = this.mediaIsFullscreen ? b2.MEDIA_EXIT_FULLSCREEN_REQUEST : b2.MEDIA_ENTER_FULLSCREEN_REQUEST;
|
|
21505
21505
|
this.dispatchEvent(
|
|
21506
21506
|
new u2.CustomEvent(e, { composed: true, bubbles: true })
|
|
21507
21507
|
);
|
|
@@ -21514,8 +21514,8 @@ u2.customElements.get("media-fullscreen-button") || u2.customElements.define(
|
|
|
21514
21514
|
or2
|
|
21515
21515
|
);
|
|
21516
21516
|
var qd2 = or2;
|
|
21517
|
-
var { MEDIA_TIME_IS_LIVE: wa2, MEDIA_PAUSED:
|
|
21518
|
-
var { MEDIA_SEEK_TO_LIVE_REQUEST: Yd2, MEDIA_PLAY_REQUEST: Qd2 } =
|
|
21517
|
+
var { MEDIA_TIME_IS_LIVE: wa2, MEDIA_PAUSED: wi2 } = s;
|
|
21518
|
+
var { MEDIA_SEEK_TO_LIVE_REQUEST: Yd2, MEDIA_PLAY_REQUEST: Qd2 } = b2;
|
|
21519
21519
|
var zd2 = '<svg viewBox="0 0 6 12"><circle cx="3" cy="6" r="2"></circle></svg>';
|
|
21520
21520
|
function Zd2(t) {
|
|
21521
21521
|
return (
|
|
@@ -21532,13 +21532,13 @@ function Zd2(t) {
|
|
|
21532
21532
|
color: var(--media-live-button-icon-color, rgb(140, 140, 140));
|
|
21533
21533
|
}
|
|
21534
21534
|
|
|
21535
|
-
:host([${wa2}]:not([${
|
|
21536
|
-
:host([${wa2}]:not([${
|
|
21535
|
+
:host([${wa2}]:not([${wi2}])) slot[name=indicator] > *,
|
|
21536
|
+
:host([${wa2}]:not([${wi2}])) ::slotted([slot=indicator]) {
|
|
21537
21537
|
fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
|
|
21538
21538
|
color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
|
|
21539
21539
|
}
|
|
21540
21540
|
|
|
21541
|
-
:host([${wa2}]:not([${
|
|
21541
|
+
:host([${wa2}]:not([${wi2}])) {
|
|
21542
21542
|
cursor: var(--media-cursor, not-allowed);
|
|
21543
21543
|
}
|
|
21544
21544
|
|
|
@@ -21566,7 +21566,7 @@ var gn2 = class extends oe2 {
|
|
|
21566
21566
|
return [
|
|
21567
21567
|
...super.observedAttributes,
|
|
21568
21568
|
wa2,
|
|
21569
|
-
|
|
21569
|
+
wi2
|
|
21570
21570
|
];
|
|
21571
21571
|
}
|
|
21572
21572
|
connectedCallback() {
|
|
@@ -21599,7 +21599,7 @@ var gn2 = class extends oe2 {
|
|
|
21599
21599
|
composed: true,
|
|
21600
21600
|
bubbles: true
|
|
21601
21601
|
})
|
|
21602
|
-
), this.hasAttribute(
|
|
21602
|
+
), this.hasAttribute(wi2) && this.dispatchEvent(
|
|
21603
21603
|
new u2.CustomEvent(Qd2, {
|
|
21604
21604
|
composed: true,
|
|
21605
21605
|
bubbles: true
|
|
@@ -21614,14 +21614,14 @@ var co2 = (t, e, i) => {
|
|
|
21614
21614
|
if (!e.has(t))
|
|
21615
21615
|
throw TypeError("Cannot " + i);
|
|
21616
21616
|
};
|
|
21617
|
-
var
|
|
21617
|
+
var pi2 = (t, e, i) => (co2(t, e, "read from private field"), i ? i.call(t) : e.get(t));
|
|
21618
21618
|
var ns2 = (t, e, i) => {
|
|
21619
21619
|
if (e.has(t))
|
|
21620
21620
|
throw TypeError("Cannot add the same private member more than once");
|
|
21621
21621
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
21622
21622
|
};
|
|
21623
|
-
var
|
|
21624
|
-
var
|
|
21623
|
+
var Ei2 = (t, e, i, a) => (co2(t, e, "write to private field"), e.set(t, i), i);
|
|
21624
|
+
var He2;
|
|
21625
21625
|
var La2;
|
|
21626
21626
|
var da2 = {
|
|
21627
21627
|
LOADING_DELAY: "loadingdelay",
|
|
@@ -21697,9 +21697,9 @@ function Jd2(t) {
|
|
|
21697
21697
|
}
|
|
21698
21698
|
var lr2 = class extends u2.HTMLElement {
|
|
21699
21699
|
constructor() {
|
|
21700
|
-
if (super(), ns2(this,
|
|
21700
|
+
if (super(), ns2(this, He2, void 0), ns2(this, La2, ho2), !this.shadowRoot) {
|
|
21701
21701
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
21702
|
-
const e =
|
|
21702
|
+
const e = Re2(this.attributes);
|
|
21703
21703
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
21704
21704
|
}
|
|
21705
21705
|
}
|
|
@@ -21713,29 +21713,29 @@ var lr2 = class extends u2.HTMLElement {
|
|
|
21713
21713
|
}
|
|
21714
21714
|
attributeChangedCallback(e, i, a) {
|
|
21715
21715
|
var r, n, l, d, c;
|
|
21716
|
-
e === da2.LOADING_DELAY && i !== a ? this.loadingDelay = Number(a) : e === $2.MEDIA_CONTROLLER && (i && ((n = (r =
|
|
21716
|
+
e === da2.LOADING_DELAY && i !== a ? this.loadingDelay = Number(a) : e === $2.MEDIA_CONTROLLER && (i && ((n = (r = pi2(this, He2)) == null ? void 0 : r.unassociateElement) == null || n.call(r, this), Ei2(this, He2, null)), a && this.isConnected && (Ei2(this, He2, (l = this.getRootNode()) == null ? void 0 : l.getElementById(a)), (c = (d = pi2(this, He2)) == null ? void 0 : d.associateElement) == null || c.call(d, this)));
|
|
21717
21717
|
}
|
|
21718
21718
|
connectedCallback() {
|
|
21719
21719
|
var e, i, a;
|
|
21720
21720
|
const r = this.getAttribute(
|
|
21721
21721
|
$2.MEDIA_CONTROLLER
|
|
21722
21722
|
);
|
|
21723
|
-
r && (
|
|
21723
|
+
r && (Ei2(this, He2, (e = this.getRootNode()) == null ? void 0 : e.getElementById(
|
|
21724
21724
|
r
|
|
21725
|
-
)), (a = (i =
|
|
21725
|
+
)), (a = (i = pi2(this, He2)) == null ? void 0 : i.associateElement) == null || a.call(i, this));
|
|
21726
21726
|
}
|
|
21727
21727
|
disconnectedCallback() {
|
|
21728
21728
|
var e, i;
|
|
21729
|
-
(i = (e =
|
|
21729
|
+
(i = (e = pi2(this, He2)) == null ? void 0 : e.unassociateElement) == null || i.call(e, this), Ei2(this, He2, null);
|
|
21730
21730
|
}
|
|
21731
21731
|
/**
|
|
21732
21732
|
* Delay in ms
|
|
21733
21733
|
*/
|
|
21734
21734
|
get loadingDelay() {
|
|
21735
|
-
return
|
|
21735
|
+
return pi2(this, La2);
|
|
21736
21736
|
}
|
|
21737
21737
|
set loadingDelay(e) {
|
|
21738
|
-
|
|
21738
|
+
Ei2(this, La2, e);
|
|
21739
21739
|
const { style: i } = ee2(this.shadowRoot, ":host");
|
|
21740
21740
|
i.setProperty(
|
|
21741
21741
|
"--_loading-indicator-delay",
|
|
@@ -21773,7 +21773,7 @@ var lr2 = class extends u2.HTMLElement {
|
|
|
21773
21773
|
R(this, da2.NO_AUTOHIDE, e);
|
|
21774
21774
|
}
|
|
21775
21775
|
};
|
|
21776
|
-
|
|
21776
|
+
He2 = /* @__PURE__ */ new WeakMap();
|
|
21777
21777
|
La2 = /* @__PURE__ */ new WeakMap();
|
|
21778
21778
|
lr2.shadowRootOptions = { mode: "open" };
|
|
21779
21779
|
lr2.getTemplateHTML = Jd2;
|
|
@@ -21861,7 +21861,7 @@ var dr2 = class extends oe2 {
|
|
|
21861
21861
|
Q2(this, s.MEDIA_VOLUME_LEVEL, e);
|
|
21862
21862
|
}
|
|
21863
21863
|
handleClick() {
|
|
21864
|
-
const e = this.mediaVolumeLevel === "off" ?
|
|
21864
|
+
const e = this.mediaVolumeLevel === "off" ? b2.MEDIA_UNMUTE_REQUEST : b2.MEDIA_MUTE_REQUEST;
|
|
21865
21865
|
this.dispatchEvent(
|
|
21866
21866
|
new u2.CustomEvent(e, { composed: true, bubbles: true })
|
|
21867
21867
|
);
|
|
@@ -21946,7 +21946,7 @@ var ur2 = class extends oe2 {
|
|
|
21946
21946
|
R(this, s.MEDIA_IS_PIP, e);
|
|
21947
21947
|
}
|
|
21948
21948
|
handleClick() {
|
|
21949
|
-
const e = this.mediaIsPip ?
|
|
21949
|
+
const e = this.mediaIsPip ? b2.MEDIA_EXIT_PIP_REQUEST : b2.MEDIA_ENTER_PIP_REQUEST;
|
|
21950
21950
|
this.dispatchEvent(
|
|
21951
21951
|
new u2.CustomEvent(e, { composed: true, bubbles: true })
|
|
21952
21952
|
);
|
|
@@ -21971,7 +21971,7 @@ var Mr2 = {
|
|
|
21971
21971
|
RATES: "rates"
|
|
21972
21972
|
};
|
|
21973
21973
|
var cu2 = [1, 1.2, 1.5, 1.7, 2];
|
|
21974
|
-
var
|
|
21974
|
+
var Ti2 = 1;
|
|
21975
21975
|
function hu2(t) {
|
|
21976
21976
|
return (
|
|
21977
21977
|
/*html*/
|
|
@@ -21982,7 +21982,7 @@ function hu2(t) {
|
|
|
21982
21982
|
padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
|
|
21983
21983
|
}
|
|
21984
21984
|
</style>
|
|
21985
|
-
<slot name="icon">${t.mediaplaybackrate ||
|
|
21985
|
+
<slot name="icon">${t.mediaplaybackrate || Ti2}x</slot>
|
|
21986
21986
|
`
|
|
21987
21987
|
);
|
|
21988
21988
|
}
|
|
@@ -21994,7 +21994,7 @@ var cr2 = class extends oe2 {
|
|
|
21994
21994
|
var e;
|
|
21995
21995
|
super(), uu2(this, at2, new xs2(this, Mr2.RATES, {
|
|
21996
21996
|
defaultValue: cu2
|
|
21997
|
-
})), this.container = this.shadowRoot.querySelector('slot[name="icon"]'), this.container.innerHTML = `${(e = this.mediaPlaybackRate) != null ? e :
|
|
21997
|
+
})), this.container = this.shadowRoot.querySelector('slot[name="icon"]'), this.container.innerHTML = `${(e = this.mediaPlaybackRate) != null ? e : Ti2}x`;
|
|
21998
21998
|
}
|
|
21999
21999
|
static get observedAttributes() {
|
|
22000
22000
|
return [
|
|
@@ -22005,7 +22005,7 @@ var cr2 = class extends oe2 {
|
|
|
22005
22005
|
}
|
|
22006
22006
|
attributeChangedCallback(e, i, a) {
|
|
22007
22007
|
if (super.attributeChangedCallback(e, i, a), e === Mr2.RATES && (Rt(this, at2).value = a), e === s.MEDIA_PLAYBACK_RATE) {
|
|
22008
|
-
const r = a ? +a : Number.NaN, n = Number.isNaN(r) ?
|
|
22008
|
+
const r = a ? +a : Number.NaN, n = Number.isNaN(r) ? Ti2 : r;
|
|
22009
22009
|
this.container.innerHTML = `${n}x`, this.setAttribute(
|
|
22010
22010
|
"aria-label",
|
|
22011
22011
|
A("Playback rate {playbackRate}", { playbackRate: n })
|
|
@@ -22032,7 +22032,7 @@ var cr2 = class extends oe2 {
|
|
|
22032
22032
|
return q2(
|
|
22033
22033
|
this,
|
|
22034
22034
|
s.MEDIA_PLAYBACK_RATE,
|
|
22035
|
-
|
|
22035
|
+
Ti2
|
|
22036
22036
|
);
|
|
22037
22037
|
}
|
|
22038
22038
|
set mediaPlaybackRate(e) {
|
|
@@ -22042,8 +22042,8 @@ var cr2 = class extends oe2 {
|
|
|
22042
22042
|
var e, i;
|
|
22043
22043
|
const a = Array.from(Rt(this, at2).values(), (l) => +l).sort(
|
|
22044
22044
|
(l, d) => l - d
|
|
22045
|
-
), r = (i = (e = a.find((l) => l > this.mediaPlaybackRate)) != null ? e : a[0]) != null ? i :
|
|
22046
|
-
|
|
22045
|
+
), r = (i = (e = a.find((l) => l > this.mediaPlaybackRate)) != null ? e : a[0]) != null ? i : Ti2, n = new u2.CustomEvent(
|
|
22046
|
+
b2.MEDIA_PLAYBACK_RATE_REQUEST,
|
|
22047
22047
|
{ composed: true, bubbles: true, detail: r }
|
|
22048
22048
|
);
|
|
22049
22049
|
this.dispatchEvent(n);
|
|
@@ -22123,7 +22123,7 @@ var hr2 = class extends oe2 {
|
|
|
22123
22123
|
R(this, s.MEDIA_PAUSED, e);
|
|
22124
22124
|
}
|
|
22125
22125
|
handleClick() {
|
|
22126
|
-
const e = this.mediaPaused ?
|
|
22126
|
+
const e = this.mediaPaused ? b2.MEDIA_PLAY_REQUEST : b2.MEDIA_PAUSE_REQUEST;
|
|
22127
22127
|
this.dispatchEvent(
|
|
22128
22128
|
new u2.CustomEvent(e, { composed: true, bubbles: true })
|
|
22129
22129
|
);
|
|
@@ -22178,7 +22178,7 @@ var mr2 = class extends u2.HTMLElement {
|
|
|
22178
22178
|
constructor() {
|
|
22179
22179
|
if (super(), !this.shadowRoot) {
|
|
22180
22180
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
22181
|
-
const e =
|
|
22181
|
+
const e = Re2(this.attributes);
|
|
22182
22182
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
22183
22183
|
}
|
|
22184
22184
|
this.image = this.shadowRoot.querySelector("#image");
|
|
@@ -22269,7 +22269,7 @@ var wu2 = (t, e, i) => {
|
|
|
22269
22269
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
22270
22270
|
};
|
|
22271
22271
|
var ca2 = (t, e, i, a) => (Eo2(t, e, "write to private field"), e.set(t, i), i);
|
|
22272
|
-
var
|
|
22272
|
+
var Fe2;
|
|
22273
22273
|
function Lu2(t) {
|
|
22274
22274
|
return (
|
|
22275
22275
|
/*html*/
|
|
@@ -22292,9 +22292,9 @@ function Lu2(t) {
|
|
|
22292
22292
|
}
|
|
22293
22293
|
var pr2 = class extends u2.HTMLElement {
|
|
22294
22294
|
constructor() {
|
|
22295
|
-
if (super(), wu2(this,
|
|
22295
|
+
if (super(), wu2(this, Fe2, void 0), !this.shadowRoot) {
|
|
22296
22296
|
this.attachShadow(this.constructor.shadowRootOptions);
|
|
22297
|
-
const e =
|
|
22297
|
+
const e = Re2(this.attributes);
|
|
22298
22298
|
this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
|
|
22299
22299
|
}
|
|
22300
22300
|
}
|
|
@@ -22312,21 +22312,21 @@ var pr2 = class extends u2.HTMLElement {
|
|
|
22312
22312
|
);
|
|
22313
22313
|
r && (ca2(
|
|
22314
22314
|
this,
|
|
22315
|
-
|
|
22315
|
+
Fe2,
|
|
22316
22316
|
// @ts-ignore
|
|
22317
22317
|
(e = this.getRootNode()) == null ? void 0 : e.getElementById(r)
|
|
22318
|
-
), (a = (i = ua2(this,
|
|
22318
|
+
), (a = (i = ua2(this, Fe2)) == null ? void 0 : i.associateElement) == null || a.call(i, this));
|
|
22319
22319
|
}
|
|
22320
22320
|
disconnectedCallback() {
|
|
22321
22321
|
var e, i;
|
|
22322
|
-
(i = (e = ua2(this,
|
|
22322
|
+
(i = (e = ua2(this, Fe2)) == null ? void 0 : e.unassociateElement) == null || i.call(e, this), ca2(this, Fe2, null);
|
|
22323
22323
|
}
|
|
22324
22324
|
attributeChangedCallback(e, i, a) {
|
|
22325
22325
|
var r, n, l, d, c;
|
|
22326
22326
|
[
|
|
22327
22327
|
s.MEDIA_PREVIEW_IMAGE,
|
|
22328
22328
|
s.MEDIA_PREVIEW_COORDS
|
|
22329
|
-
].includes(e) && this.update(), e === $2.MEDIA_CONTROLLER && (i && ((n = (r = ua2(this,
|
|
22329
|
+
].includes(e) && this.update(), e === $2.MEDIA_CONTROLLER && (i && ((n = (r = ua2(this, Fe2)) == null ? void 0 : r.unassociateElement) == null || n.call(r, this), ca2(this, Fe2, null)), a && this.isConnected && (ca2(this, Fe2, (l = this.getRootNode()) == null ? void 0 : l.getElementById(a)), (c = (d = ua2(this, Fe2)) == null ? void 0 : d.associateElement) == null || c.call(d, this)));
|
|
22330
22330
|
}
|
|
22331
22331
|
/**
|
|
22332
22332
|
* @type {string | undefined} The url of the preview image
|
|
@@ -22356,7 +22356,7 @@ var pr2 = class extends u2.HTMLElement {
|
|
|
22356
22356
|
const e = this.mediaPreviewCoords, i = this.mediaPreviewImage;
|
|
22357
22357
|
if (!(e && i))
|
|
22358
22358
|
return;
|
|
22359
|
-
const [a, r, n, l] = e, d = i.split("#")[0], c = getComputedStyle(this), { maxWidth:
|
|
22359
|
+
const [a, r, n, l] = e, d = i.split("#")[0], c = getComputedStyle(this), { maxWidth: g2, maxHeight: E2, minWidth: _, minHeight: m } = c, f = Math.min(parseInt(g2) / n, parseInt(E2) / l), D = Math.max(parseInt(_) / n, parseInt(m) / l), S2 = f < 1, I = S2 ? f : D > 1 ? D : 1, { style: k } = ee2(this.shadowRoot, ":host"), P2 = ee2(this.shadowRoot, "img").style, ue2 = this.shadowRoot.querySelector("img"), x = S2 ? "min" : "max";
|
|
22360
22360
|
k.setProperty(`${x}-width`, "initial", "important"), k.setProperty(`${x}-height`, "initial", "important"), k.width = `${n * I}px`, k.height = `${l * I}px`;
|
|
22361
22361
|
const U2 = () => {
|
|
22362
22362
|
P2.width = `${this.imgWidth * I}px`, P2.height = `${this.imgHeight * I}px`, P2.display = "block";
|
|
@@ -22366,7 +22366,7 @@ var pr2 = class extends u2.HTMLElement {
|
|
|
22366
22366
|
}, ue2.src = d, U2()), U2(), P2.transform = `translate(-${a * I}px, -${r * I}px)`;
|
|
22367
22367
|
}
|
|
22368
22368
|
};
|
|
22369
|
-
|
|
22369
|
+
Fe2 = /* @__PURE__ */ new WeakMap();
|
|
22370
22370
|
pr2.shadowRootOptions = { mode: "open" };
|
|
22371
22371
|
pr2.getTemplateHTML = Lu2;
|
|
22372
22372
|
u2.customElements.get("media-preview-thumbnail") || u2.customElements.define(
|
|
@@ -22384,17 +22384,17 @@ var Ru2 = (t, e, i) => {
|
|
|
22384
22384
|
throw TypeError("Cannot add the same private member more than once");
|
|
22385
22385
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
22386
22386
|
};
|
|
22387
|
-
var
|
|
22388
|
-
var
|
|
22387
|
+
var Cu2 = (t, e, i, a) => (vo2(t, e, "write to private field"), e.set(t, i), i);
|
|
22388
|
+
var Ii2;
|
|
22389
22389
|
var fo2 = class extends ze {
|
|
22390
22390
|
constructor() {
|
|
22391
|
-
super(), Ru2(this,
|
|
22391
|
+
super(), Ru2(this, Ii2, void 0), Cu2(this, Ii2, this.shadowRoot.querySelector("slot")), cs2(this, Ii2).textContent = st2(0);
|
|
22392
22392
|
}
|
|
22393
22393
|
static get observedAttributes() {
|
|
22394
22394
|
return [...super.observedAttributes, s.MEDIA_PREVIEW_TIME];
|
|
22395
22395
|
}
|
|
22396
22396
|
attributeChangedCallback(e, i, a) {
|
|
22397
|
-
super.attributeChangedCallback(e, i, a), e === s.MEDIA_PREVIEW_TIME && a != null && (cs2(this,
|
|
22397
|
+
super.attributeChangedCallback(e, i, a), e === s.MEDIA_PREVIEW_TIME && a != null && (cs2(this, Ii2).textContent = st2(parseFloat(a)));
|
|
22398
22398
|
}
|
|
22399
22399
|
/**
|
|
22400
22400
|
* Timeline preview time
|
|
@@ -22406,13 +22406,13 @@ var fo2 = class extends ze {
|
|
|
22406
22406
|
ne2(this, s.MEDIA_PREVIEW_TIME, e);
|
|
22407
22407
|
}
|
|
22408
22408
|
};
|
|
22409
|
-
|
|
22409
|
+
Ii2 = /* @__PURE__ */ new WeakMap();
|
|
22410
22410
|
u2.customElements.get("media-preview-time-display") || u2.customElements.define(
|
|
22411
22411
|
"media-preview-time-display",
|
|
22412
22412
|
fo2
|
|
22413
22413
|
);
|
|
22414
|
-
var
|
|
22415
|
-
var
|
|
22414
|
+
var Du2 = fo2;
|
|
22415
|
+
var Ct2 = {
|
|
22416
22416
|
SEEK_OFFSET: "seekoffset"
|
|
22417
22417
|
};
|
|
22418
22418
|
var kr2 = 30;
|
|
@@ -22441,20 +22441,20 @@ var Er2 = class extends oe2 {
|
|
|
22441
22441
|
return [
|
|
22442
22442
|
...super.observedAttributes,
|
|
22443
22443
|
s.MEDIA_CURRENT_TIME,
|
|
22444
|
-
|
|
22444
|
+
Ct2.SEEK_OFFSET
|
|
22445
22445
|
];
|
|
22446
22446
|
}
|
|
22447
22447
|
connectedCallback() {
|
|
22448
22448
|
super.connectedCallback(), this.seekOffset = q2(
|
|
22449
22449
|
this,
|
|
22450
|
-
|
|
22450
|
+
Ct2.SEEK_OFFSET,
|
|
22451
22451
|
kr2
|
|
22452
22452
|
);
|
|
22453
22453
|
}
|
|
22454
22454
|
attributeChangedCallback(e, i, a) {
|
|
22455
|
-
super.attributeChangedCallback(e, i, a), e ===
|
|
22455
|
+
super.attributeChangedCallback(e, i, a), e === Ct2.SEEK_OFFSET && (this.seekOffset = q2(
|
|
22456
22456
|
this,
|
|
22457
|
-
|
|
22457
|
+
Ct2.SEEK_OFFSET,
|
|
22458
22458
|
kr2
|
|
22459
22459
|
));
|
|
22460
22460
|
}
|
|
@@ -22463,10 +22463,10 @@ var Er2 = class extends oe2 {
|
|
|
22463
22463
|
* Seek amount in seconds
|
|
22464
22464
|
*/
|
|
22465
22465
|
get seekOffset() {
|
|
22466
|
-
return q2(this,
|
|
22466
|
+
return q2(this, Ct2.SEEK_OFFSET, kr2);
|
|
22467
22467
|
}
|
|
22468
22468
|
set seekOffset(e) {
|
|
22469
|
-
ne2(this,
|
|
22469
|
+
ne2(this, Ct2.SEEK_OFFSET, e), this.setAttribute(
|
|
22470
22470
|
"aria-label",
|
|
22471
22471
|
A("seek back {seekOffset} seconds", { seekOffset: this.seekOffset })
|
|
22472
22472
|
), Ss2(Ms2(this, "icon"), this.seekOffset);
|
|
@@ -22486,7 +22486,7 @@ var Er2 = class extends oe2 {
|
|
|
22486
22486
|
ne2(this, s.MEDIA_CURRENT_TIME, e);
|
|
22487
22487
|
}
|
|
22488
22488
|
handleClick() {
|
|
22489
|
-
const e = Math.max(this.mediaCurrentTime - this.seekOffset, 0), i = new u2.CustomEvent(
|
|
22489
|
+
const e = Math.max(this.mediaCurrentTime - this.seekOffset, 0), i = new u2.CustomEvent(b2.MEDIA_SEEK_REQUEST, {
|
|
22490
22490
|
composed: true,
|
|
22491
22491
|
bubbles: true,
|
|
22492
22492
|
detail: e
|
|
@@ -22501,7 +22501,7 @@ u2.customElements.get("media-seek-backward-button") || u2.customElements.define(
|
|
|
22501
22501
|
Er2
|
|
22502
22502
|
);
|
|
22503
22503
|
var Nu2 = Er2;
|
|
22504
|
-
var
|
|
22504
|
+
var Dt2 = {
|
|
22505
22505
|
SEEK_OFFSET: "seekoffset"
|
|
22506
22506
|
};
|
|
22507
22507
|
var wr2 = 30;
|
|
@@ -22530,20 +22530,20 @@ var vr2 = class extends oe2 {
|
|
|
22530
22530
|
return [
|
|
22531
22531
|
...super.observedAttributes,
|
|
22532
22532
|
s.MEDIA_CURRENT_TIME,
|
|
22533
|
-
|
|
22533
|
+
Dt2.SEEK_OFFSET
|
|
22534
22534
|
];
|
|
22535
22535
|
}
|
|
22536
22536
|
connectedCallback() {
|
|
22537
22537
|
super.connectedCallback(), this.seekOffset = q2(
|
|
22538
22538
|
this,
|
|
22539
|
-
|
|
22539
|
+
Dt2.SEEK_OFFSET,
|
|
22540
22540
|
wr2
|
|
22541
22541
|
);
|
|
22542
22542
|
}
|
|
22543
22543
|
attributeChangedCallback(e, i, a) {
|
|
22544
|
-
super.attributeChangedCallback(e, i, a), e ===
|
|
22544
|
+
super.attributeChangedCallback(e, i, a), e === Dt2.SEEK_OFFSET && (this.seekOffset = q2(
|
|
22545
22545
|
this,
|
|
22546
|
-
|
|
22546
|
+
Dt2.SEEK_OFFSET,
|
|
22547
22547
|
wr2
|
|
22548
22548
|
));
|
|
22549
22549
|
}
|
|
@@ -22552,10 +22552,10 @@ var vr2 = class extends oe2 {
|
|
|
22552
22552
|
* Seek amount in seconds
|
|
22553
22553
|
*/
|
|
22554
22554
|
get seekOffset() {
|
|
22555
|
-
return q2(this,
|
|
22555
|
+
return q2(this, Dt2.SEEK_OFFSET, wr2);
|
|
22556
22556
|
}
|
|
22557
22557
|
set seekOffset(e) {
|
|
22558
|
-
ne2(this,
|
|
22558
|
+
ne2(this, Dt2.SEEK_OFFSET, e), this.setAttribute(
|
|
22559
22559
|
"aria-label",
|
|
22560
22560
|
A("seek forward {seekOffset} seconds", { seekOffset: this.seekOffset })
|
|
22561
22561
|
), Ss2(Ms2(this, "icon"), this.seekOffset);
|
|
@@ -22575,7 +22575,7 @@ var vr2 = class extends oe2 {
|
|
|
22575
22575
|
ne2(this, s.MEDIA_CURRENT_TIME, e);
|
|
22576
22576
|
}
|
|
22577
22577
|
handleClick() {
|
|
22578
|
-
const e = this.mediaCurrentTime + this.seekOffset, i = new u2.CustomEvent(
|
|
22578
|
+
const e = this.mediaCurrentTime + this.seekOffset, i = new u2.CustomEvent(b2.MEDIA_SEEK_REQUEST, {
|
|
22579
22579
|
composed: true,
|
|
22580
22580
|
bubbles: true,
|
|
22581
22581
|
detail: e
|
|
@@ -22632,12 +22632,12 @@ var Yu2 = (t) => {
|
|
|
22632
22632
|
t.setAttribute("aria-valuetext", qu2);
|
|
22633
22633
|
return;
|
|
22634
22634
|
}
|
|
22635
|
-
const n = t.remaining ?
|
|
22635
|
+
const n = t.remaining ? Mi2(0 - (r - i)) : Mi2(i);
|
|
22636
22636
|
if (!t.showDuration) {
|
|
22637
22637
|
t.setAttribute("aria-valuetext", n);
|
|
22638
22638
|
return;
|
|
22639
22639
|
}
|
|
22640
|
-
const l =
|
|
22640
|
+
const l = Mi2(r), d = `${n} of ${l}`;
|
|
22641
22641
|
t.setAttribute("aria-valuetext", d);
|
|
22642
22642
|
};
|
|
22643
22643
|
function Qu2(t, e) {
|
|
@@ -22773,7 +22773,7 @@ var go2 = (t, e, i) => {
|
|
|
22773
22773
|
throw TypeError("Cannot " + i);
|
|
22774
22774
|
};
|
|
22775
22775
|
var ae2 = (t, e, i) => (go2(t, e, "read from private field"), e.get(t));
|
|
22776
|
-
var
|
|
22776
|
+
var Pe2 = (t, e, i) => {
|
|
22777
22777
|
if (e.has(t))
|
|
22778
22778
|
throw TypeError("Cannot add the same private member more than once");
|
|
22779
22779
|
e instanceof WeakSet ? e.add(t) : e.set(t, i);
|
|
@@ -22788,10 +22788,10 @@ var Zu2 = (t, e, i, a) => ({
|
|
|
22788
22788
|
}
|
|
22789
22789
|
});
|
|
22790
22790
|
var $t2;
|
|
22791
|
-
var Da2;
|
|
22792
|
-
var Ht2;
|
|
22793
|
-
var Ii2;
|
|
22794
22791
|
var Ca2;
|
|
22792
|
+
var Ht2;
|
|
22793
|
+
var yi2;
|
|
22794
|
+
var Da2;
|
|
22795
22795
|
var Pa2;
|
|
22796
22796
|
var Oa2;
|
|
22797
22797
|
var Ft2;
|
|
@@ -22799,19 +22799,19 @@ var vt2;
|
|
|
22799
22799
|
var xa2;
|
|
22800
22800
|
var Xu2 = class {
|
|
22801
22801
|
constructor(e, i, a) {
|
|
22802
|
-
|
|
22803
|
-
be2(this, vt2, requestAnimationFrame(ae2(this, xa2))), be2(this,
|
|
22802
|
+
Pe2(this, $t2, void 0), Pe2(this, Ca2, void 0), Pe2(this, Ht2, void 0), Pe2(this, yi2, void 0), Pe2(this, Da2, void 0), Pe2(this, Pa2, void 0), Pe2(this, Oa2, void 0), Pe2(this, Ft2, void 0), Pe2(this, vt2, 0), Pe2(this, xa2, (r = performance.now()) => {
|
|
22803
|
+
be2(this, vt2, requestAnimationFrame(ae2(this, xa2))), be2(this, yi2, performance.now() - ae2(this, Ht2));
|
|
22804
22804
|
const n = 1e3 / this.fps;
|
|
22805
|
-
if (ae2(this,
|
|
22806
|
-
be2(this, Ht2, r - ae2(this,
|
|
22807
|
-
const l = 1e3 / ((r - ae2(this,
|
|
22805
|
+
if (ae2(this, yi2) > n) {
|
|
22806
|
+
be2(this, Ht2, r - ae2(this, yi2) % n);
|
|
22807
|
+
const l = 1e3 / ((r - ae2(this, Ca2)) / ++Zu2(this, Da2)._), d = (r - ae2(this, Pa2)) / 1e3 / this.duration;
|
|
22808
22808
|
let c = ae2(this, Oa2) + d * this.playbackRate;
|
|
22809
22809
|
c - ae2(this, $t2).valueAsNumber > 0 ? be2(this, Ft2, this.playbackRate / this.duration / l) : (be2(this, Ft2, 0.995 * ae2(this, Ft2)), c = ae2(this, $t2).valueAsNumber + ae2(this, Ft2)), this.callback(c);
|
|
22810
22810
|
}
|
|
22811
22811
|
}), be2(this, $t2, e), this.callback = i, this.fps = a;
|
|
22812
22812
|
}
|
|
22813
22813
|
start() {
|
|
22814
|
-
ae2(this, vt2) === 0 && (be2(this, Ht2, performance.now()), be2(this,
|
|
22814
|
+
ae2(this, vt2) === 0 && (be2(this, Ht2, performance.now()), be2(this, Ca2, ae2(this, Ht2)), be2(this, Da2, 0), ae2(this, xa2).call(this));
|
|
22815
22815
|
}
|
|
22816
22816
|
stop() {
|
|
22817
22817
|
ae2(this, vt2) !== 0 && (cancelAnimationFrame(ae2(this, vt2)), be2(this, vt2, 0));
|
|
@@ -22822,10 +22822,10 @@ var Xu2 = class {
|
|
|
22822
22822
|
}
|
|
22823
22823
|
};
|
|
22824
22824
|
$t2 = /* @__PURE__ */ new WeakMap();
|
|
22825
|
-
Da2 = /* @__PURE__ */ new WeakMap();
|
|
22826
|
-
Ht2 = /* @__PURE__ */ new WeakMap();
|
|
22827
|
-
Ii2 = /* @__PURE__ */ new WeakMap();
|
|
22828
22825
|
Ca2 = /* @__PURE__ */ new WeakMap();
|
|
22826
|
+
Ht2 = /* @__PURE__ */ new WeakMap();
|
|
22827
|
+
yi2 = /* @__PURE__ */ new WeakMap();
|
|
22828
|
+
Da2 = /* @__PURE__ */ new WeakMap();
|
|
22829
22829
|
Pa2 = /* @__PURE__ */ new WeakMap();
|
|
22830
22830
|
Oa2 = /* @__PURE__ */ new WeakMap();
|
|
22831
22831
|
Ft2 = /* @__PURE__ */ new WeakMap();
|
|
@@ -22846,15 +22846,15 @@ var de = (t, e, i) => (An2(t, e, "access private method"), i);
|
|
|
22846
22846
|
var Wt;
|
|
22847
22847
|
var bt2;
|
|
22848
22848
|
var Ga2;
|
|
22849
|
-
var
|
|
22849
|
+
var Li2;
|
|
22850
22850
|
var Ka2;
|
|
22851
22851
|
var Ua2;
|
|
22852
|
-
var xi2;
|
|
22853
22852
|
var Ui2;
|
|
22853
|
+
var Ni2;
|
|
22854
22854
|
var Bt;
|
|
22855
22855
|
var Vt2;
|
|
22856
22856
|
var Gt2;
|
|
22857
|
-
var
|
|
22857
|
+
var Si2;
|
|
22858
22858
|
var Tn2;
|
|
22859
22859
|
var bo2;
|
|
22860
22860
|
var tn2;
|
|
@@ -22866,13 +22866,13 @@ var Qa2;
|
|
|
22866
22866
|
var Sn2;
|
|
22867
22867
|
var an2;
|
|
22868
22868
|
var Ao2;
|
|
22869
|
-
var
|
|
22869
|
+
var $i2;
|
|
22870
22870
|
var za2;
|
|
22871
22871
|
var rn2;
|
|
22872
22872
|
var To2;
|
|
22873
22873
|
var ju2 = "video not loaded, unknown time.";
|
|
22874
22874
|
var Ju2 = (t) => {
|
|
22875
|
-
const e = t.range, i =
|
|
22875
|
+
const e = t.range, i = Mi2(+Io2(t)), a = Mi2(+t.mediaSeekableEnd), r = i && a ? `${i} of ${a}` : ju2;
|
|
22876
22876
|
e.setAttribute("aria-valuetext", r);
|
|
22877
22877
|
};
|
|
22878
22878
|
function ec(t) {
|
|
@@ -23112,16 +23112,16 @@ var Io2 = (t, e = t.range.valueAsNumber) => {
|
|
|
23112
23112
|
};
|
|
23113
23113
|
var fr2 = class extends Tt2 {
|
|
23114
23114
|
constructor() {
|
|
23115
|
-
super(), ie2(this, Gt2), ie2(this, Tn2), ie2(this, qa2), ie2(this, Ya2), ie2(this, Qa2), ie2(this, an2), ie2(this,
|
|
23115
|
+
super(), ie2(this, Gt2), ie2(this, Tn2), ie2(this, qa2), ie2(this, Ya2), ie2(this, Qa2), ie2(this, an2), ie2(this, $i2), ie2(this, rn2), ie2(this, Wt, void 0), ie2(this, bt2, void 0), ie2(this, Ga2, void 0), ie2(this, Li2, void 0), ie2(this, Ka2, void 0), ie2(this, Ua2, void 0), ie2(this, Ui2, void 0), ie2(this, Ni2, void 0), ie2(this, Bt, void 0), ie2(this, Vt2, void 0), ie2(this, tn2, (a) => {
|
|
23116
23116
|
this.dragging || (nn2(a) && (this.range.valueAsNumber = a), Z2(this, Vt2) || this.updateBar());
|
|
23117
23117
|
}), this.shadowRoot.querySelector("#track").insertAdjacentHTML(
|
|
23118
23118
|
"afterbegin",
|
|
23119
23119
|
'<div id="buffered" part="buffered"></div>'
|
|
23120
23120
|
), ye2(this, Ga2, this.shadowRoot.querySelectorAll('[part~="box"]')), ye2(this, Ka2, this.shadowRoot.querySelector('[part~="preview-box"]')), ye2(this, Ua2, this.shadowRoot.querySelector('[part~="current-box"]'));
|
|
23121
23121
|
const i = getComputedStyle(this);
|
|
23122
|
-
ye2(this,
|
|
23122
|
+
ye2(this, Ui2, parseInt(
|
|
23123
23123
|
i.getPropertyValue("--media-box-padding-left")
|
|
23124
|
-
)), ye2(this,
|
|
23124
|
+
)), ye2(this, Ni2, parseInt(
|
|
23125
23125
|
i.getPropertyValue("--media-box-padding-right")
|
|
23126
23126
|
)), ye2(this, bt2, new Xu2(this.range, Z2(this, tn2), 60));
|
|
23127
23127
|
}
|
|
@@ -23143,18 +23143,18 @@ var fr2 = class extends Tt2 {
|
|
|
23143
23143
|
}
|
|
23144
23144
|
connectedCallback() {
|
|
23145
23145
|
var e;
|
|
23146
|
-
super.connectedCallback(), this.range.setAttribute("aria-label", A("seek")), de(this, Gt2,
|
|
23146
|
+
super.connectedCallback(), this.range.setAttribute("aria-label", A("seek")), de(this, Gt2, Si2).call(this), ye2(this, Wt, this.getRootNode()), (e = Z2(this, Wt)) == null || e.addEventListener("transitionstart", this);
|
|
23147
23147
|
}
|
|
23148
23148
|
disconnectedCallback() {
|
|
23149
23149
|
var e;
|
|
23150
|
-
super.disconnectedCallback(), de(this, Gt2,
|
|
23150
|
+
super.disconnectedCallback(), de(this, Gt2, Si2).call(this), (e = Z2(this, Wt)) == null || e.removeEventListener("transitionstart", this), ye2(this, Wt, null);
|
|
23151
23151
|
}
|
|
23152
23152
|
attributeChangedCallback(e, i, a) {
|
|
23153
23153
|
super.attributeChangedCallback(e, i, a), i != a && (e === s.MEDIA_CURRENT_TIME || e === s.MEDIA_PAUSED || e === s.MEDIA_ENDED || e === s.MEDIA_LOADING || e === s.MEDIA_DURATION || e === s.MEDIA_SEEKABLE ? (Z2(this, bt2).update({
|
|
23154
23154
|
start: ha2(this),
|
|
23155
23155
|
duration: this.mediaSeekableEnd - this.mediaSeekableStart,
|
|
23156
23156
|
playbackRate: this.mediaPlaybackRate
|
|
23157
|
-
}), de(this, Gt2,
|
|
23157
|
+
}), de(this, Gt2, Si2).call(this), Ju2(this)) : e === s.MEDIA_BUFFERED && this.updateBufferedBar(), (e === s.MEDIA_DURATION || e === s.MEDIA_SEEKABLE) && (this.mediaChaptersCues = Z2(this, Bt), this.updateBar()));
|
|
23158
23158
|
}
|
|
23159
23159
|
get mediaChaptersCues() {
|
|
23160
23160
|
return Z2(this, Bt);
|
|
@@ -23335,10 +23335,10 @@ var fr2 = class extends Tt2 {
|
|
|
23335
23335
|
ye2(this, Vt2, true);
|
|
23336
23336
|
break;
|
|
23337
23337
|
case "pointerleave":
|
|
23338
|
-
de(this,
|
|
23338
|
+
de(this, $i2, za2).call(this, null);
|
|
23339
23339
|
break;
|
|
23340
23340
|
case "transitionstart":
|
|
23341
|
-
Xt2(e.target, this) && setTimeout(() => de(this, Gt2,
|
|
23341
|
+
Xt2(e.target, this) && setTimeout(() => de(this, Gt2, Si2).call(this), 0);
|
|
23342
23342
|
break;
|
|
23343
23343
|
}
|
|
23344
23344
|
}
|
|
@@ -23346,15 +23346,15 @@ var fr2 = class extends Tt2 {
|
|
|
23346
23346
|
Wt = /* @__PURE__ */ new WeakMap();
|
|
23347
23347
|
bt2 = /* @__PURE__ */ new WeakMap();
|
|
23348
23348
|
Ga2 = /* @__PURE__ */ new WeakMap();
|
|
23349
|
-
|
|
23349
|
+
Li2 = /* @__PURE__ */ new WeakMap();
|
|
23350
23350
|
Ka2 = /* @__PURE__ */ new WeakMap();
|
|
23351
23351
|
Ua2 = /* @__PURE__ */ new WeakMap();
|
|
23352
|
-
xi2 = /* @__PURE__ */ new WeakMap();
|
|
23353
23352
|
Ui2 = /* @__PURE__ */ new WeakMap();
|
|
23353
|
+
Ni2 = /* @__PURE__ */ new WeakMap();
|
|
23354
23354
|
Bt = /* @__PURE__ */ new WeakMap();
|
|
23355
23355
|
Vt2 = /* @__PURE__ */ new WeakMap();
|
|
23356
23356
|
Gt2 = /* @__PURE__ */ new WeakSet();
|
|
23357
|
-
|
|
23357
|
+
Si2 = function() {
|
|
23358
23358
|
de(this, Tn2, bo2).call(this) ? Z2(this, bt2).start() : Z2(this, bt2).stop();
|
|
23359
23359
|
};
|
|
23360
23360
|
Tn2 = /* @__PURE__ */ new WeakSet();
|
|
@@ -23365,7 +23365,7 @@ tn2 = /* @__PURE__ */ new WeakMap();
|
|
|
23365
23365
|
qa2 = /* @__PURE__ */ new WeakSet();
|
|
23366
23366
|
In2 = function(t) {
|
|
23367
23367
|
var e;
|
|
23368
|
-
const a = ((e = this.getAttribute("bounds") ?
|
|
23368
|
+
const a = ((e = this.getAttribute("bounds") ? Hi2(this, `#${this.getAttribute("bounds")}`) : this.parentElement) != null ? e : this).getBoundingClientRect(), r = this.range.getBoundingClientRect(), n = t.offsetWidth, l = -(r.left - a.left - n / 2), d = a.right - r.left - n / 2;
|
|
23369
23369
|
return {
|
|
23370
23370
|
box: { width: n, min: l, max: d },
|
|
23371
23371
|
bounds: a,
|
|
@@ -23387,12 +23387,12 @@ yn2 = function(t, e) {
|
|
|
23387
23387
|
Qa2 = /* @__PURE__ */ new WeakSet();
|
|
23388
23388
|
Sn2 = function(t, e) {
|
|
23389
23389
|
const { width: i, min: a, max: r } = t.box, n = e * t.range.width;
|
|
23390
|
-
if (n < a + Z2(this,
|
|
23391
|
-
const l = t.range.left - t.bounds.left - Z2(this,
|
|
23390
|
+
if (n < a + Z2(this, Ui2)) {
|
|
23391
|
+
const l = t.range.left - t.bounds.left - Z2(this, Ui2);
|
|
23392
23392
|
return `${n - i / 2 + l}px`;
|
|
23393
23393
|
}
|
|
23394
|
-
if (n > r - Z2(this,
|
|
23395
|
-
const l = t.bounds.right - t.range.right - Z2(this,
|
|
23394
|
+
if (n > r - Z2(this, Ni2)) {
|
|
23395
|
+
const l = t.bounds.right - t.range.right - Z2(this, Ni2);
|
|
23396
23396
|
return `${n + i / 2 - l - t.range.width}px`;
|
|
23397
23397
|
}
|
|
23398
23398
|
return 0;
|
|
@@ -23403,7 +23403,7 @@ Ao2 = function(t) {
|
|
|
23403
23403
|
(E2) => t.composedPath().includes(E2)
|
|
23404
23404
|
);
|
|
23405
23405
|
if (!this.dragging && (e || !t.composedPath().includes(this))) {
|
|
23406
|
-
de(this,
|
|
23406
|
+
de(this, $i2, za2).call(this, null);
|
|
23407
23407
|
return;
|
|
23408
23408
|
}
|
|
23409
23409
|
const i = this.mediaSeekableEnd;
|
|
@@ -23420,13 +23420,13 @@ Ao2 = function(t) {
|
|
|
23420
23420
|
l = Math.max(0, Math.min(1, l));
|
|
23421
23421
|
const d = de(this, Ya2, yn2).call(this, n, l), c = de(this, Qa2, Sn2).call(this, n, l);
|
|
23422
23422
|
a.style.transform = `translateX(${d})`, a.style.setProperty("--_range-width", `${n.range.width}`), r.style.setProperty("--_box-shift", `${c}`), r.style.setProperty("--_box-width", `${n.box.width}px`);
|
|
23423
|
-
const
|
|
23424
|
-
Math.abs(
|
|
23423
|
+
const g2 = Math.round(Z2(this, Li2)) - Math.round(l * i);
|
|
23424
|
+
Math.abs(g2) < 1 && l > 0.01 && l < 0.99 || (ye2(this, Li2, l * i), de(this, $i2, za2).call(this, Z2(this, Li2)));
|
|
23425
23425
|
};
|
|
23426
|
-
|
|
23426
|
+
$i2 = /* @__PURE__ */ new WeakSet();
|
|
23427
23427
|
za2 = function(t) {
|
|
23428
23428
|
this.dispatchEvent(
|
|
23429
|
-
new u2.CustomEvent(
|
|
23429
|
+
new u2.CustomEvent(b2.MEDIA_PREVIEW_REQUEST, {
|
|
23430
23430
|
composed: true,
|
|
23431
23431
|
bubbles: true,
|
|
23432
23432
|
detail: t
|
|
@@ -23438,7 +23438,7 @@ To2 = function() {
|
|
|
23438
23438
|
Z2(this, bt2).stop();
|
|
23439
23439
|
const t = Io2(this);
|
|
23440
23440
|
this.dispatchEvent(
|
|
23441
|
-
new u2.CustomEvent(
|
|
23441
|
+
new u2.CustomEvent(b2.MEDIA_SEEK_REQUEST, {
|
|
23442
23442
|
composed: true,
|
|
23443
23443
|
bubbles: true,
|
|
23444
23444
|
detail: t
|
|
@@ -23464,7 +23464,7 @@ var yo2 = class extends Tt2 {
|
|
|
23464
23464
|
constructor() {
|
|
23465
23465
|
super(), this.range.addEventListener("input", () => {
|
|
23466
23466
|
const e = this.range.value, i = new u2.CustomEvent(
|
|
23467
|
-
|
|
23467
|
+
b2.MEDIA_VOLUME_REQUEST,
|
|
23468
23468
|
{
|
|
23469
23469
|
composed: true,
|
|
23470
23470
|
bubbles: true,
|
|
@@ -23526,7 +23526,7 @@ function F(t) {
|
|
|
23526
23526
|
}
|
|
23527
23527
|
H2({
|
|
23528
23528
|
tagName: "media-gesture-receiver",
|
|
23529
|
-
elementClass:
|
|
23529
|
+
elementClass: Cr2,
|
|
23530
23530
|
react: import_react.default,
|
|
23531
23531
|
toAttributeValue: F,
|
|
23532
23532
|
defaultProps: {
|
|
@@ -23677,7 +23677,7 @@ H2({
|
|
|
23677
23677
|
suppressHydrationWarning: true
|
|
23678
23678
|
}
|
|
23679
23679
|
});
|
|
23680
|
-
H2({
|
|
23680
|
+
var dc2 = H2({
|
|
23681
23681
|
tagName: "media-mute-button",
|
|
23682
23682
|
elementClass: nu2,
|
|
23683
23683
|
react: import_react.default,
|
|
@@ -23704,7 +23704,7 @@ H2({
|
|
|
23704
23704
|
suppressHydrationWarning: true
|
|
23705
23705
|
}
|
|
23706
23706
|
});
|
|
23707
|
-
H2({
|
|
23707
|
+
var uc2 = H2({
|
|
23708
23708
|
tagName: "media-play-button",
|
|
23709
23709
|
elementClass: gu2,
|
|
23710
23710
|
react: import_react.default,
|
|
@@ -23742,7 +23742,7 @@ H2({
|
|
|
23742
23742
|
});
|
|
23743
23743
|
H2({
|
|
23744
23744
|
tagName: "media-preview-time-display",
|
|
23745
|
-
elementClass:
|
|
23745
|
+
elementClass: Du2,
|
|
23746
23746
|
react: import_react.default,
|
|
23747
23747
|
toAttributeValue: F,
|
|
23748
23748
|
defaultProps: {
|
|
@@ -23767,7 +23767,7 @@ H2({
|
|
|
23767
23767
|
suppressHydrationWarning: true
|
|
23768
23768
|
}
|
|
23769
23769
|
});
|
|
23770
|
-
var
|
|
23770
|
+
var cc2 = H2({
|
|
23771
23771
|
tagName: "media-time-display",
|
|
23772
23772
|
elementClass: zu2,
|
|
23773
23773
|
react: import_react.default,
|
|
@@ -23776,7 +23776,7 @@ var dc2 = H2({
|
|
|
23776
23776
|
suppressHydrationWarning: true
|
|
23777
23777
|
}
|
|
23778
23778
|
});
|
|
23779
|
-
var
|
|
23779
|
+
var hc2 = H2({
|
|
23780
23780
|
tagName: "media-time-range",
|
|
23781
23781
|
elementClass: tc,
|
|
23782
23782
|
react: import_react.default,
|
|
@@ -23794,7 +23794,7 @@ H2({
|
|
|
23794
23794
|
suppressHydrationWarning: true
|
|
23795
23795
|
}
|
|
23796
23796
|
});
|
|
23797
|
-
var
|
|
23797
|
+
var yc2 = ({
|
|
23798
23798
|
className: t,
|
|
23799
23799
|
src: e,
|
|
23800
23800
|
fillContainer: i,
|
|
@@ -23803,51 +23803,56 @@ var bc2 = ({
|
|
|
23803
23803
|
autoPlay: n = true
|
|
23804
23804
|
}) => {
|
|
23805
23805
|
const l = (0, import_react.useRef)(null), [d, c] = (0, import_react.useState)(false);
|
|
23806
|
-
(0, import_react.useEffect)(() => {
|
|
23806
|
+
return (0, import_react.useEffect)(() => {
|
|
23807
23807
|
c(true);
|
|
23808
23808
|
}, []), (0, import_react.useEffect)(() => {
|
|
23809
23809
|
d && Promise.resolve().then(() => (init_norsk_player_es_BXprBSo0(), norsk_player_es_BXprBSo0_exports)).catch(console.error);
|
|
23810
23810
|
}, [d]), (0, import_react.useEffect)(() => {
|
|
23811
23811
|
if (n && l.current && d) {
|
|
23812
|
-
const
|
|
23813
|
-
|
|
23812
|
+
const g2 = l.current, E2 = () => {
|
|
23813
|
+
g2.readyState >= 1 ? g2.play() : setTimeout(E2, 10);
|
|
23814
23814
|
};
|
|
23815
|
-
|
|
23816
|
-
}
|
|
23817
|
-
}, [n, d, e])
|
|
23818
|
-
|
|
23819
|
-
|
|
23820
|
-
|
|
23821
|
-
|
|
23822
|
-
|
|
23823
|
-
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
|
|
23829
|
-
|
|
23830
|
-
|
|
23815
|
+
E2();
|
|
23816
|
+
}
|
|
23817
|
+
}, [n, d, e]), (0, import_react.useEffect)(() => {
|
|
23818
|
+
const g2 = (E2) => {
|
|
23819
|
+
const _ = E2.target;
|
|
23820
|
+
if (!(_ && (_.tagName === "INPUT" || _.tagName === "TEXTAREA" || _.isContentEditable)) && l.current) {
|
|
23821
|
+
switch (E2.key) {
|
|
23822
|
+
case "n":
|
|
23823
|
+
case ".":
|
|
23824
|
+
l.current.dispatchEvent(new Event("frame-next"));
|
|
23825
|
+
break;
|
|
23826
|
+
case "p":
|
|
23827
|
+
case ",":
|
|
23828
|
+
l.current.dispatchEvent(new Event("frame-previous"));
|
|
23829
|
+
break;
|
|
23830
|
+
case " ":
|
|
23831
|
+
l.current.paused ? l.current.play() : l.current.pause();
|
|
23832
|
+
break;
|
|
23833
|
+
default:
|
|
23834
|
+
return;
|
|
23835
|
+
}
|
|
23836
|
+
E2.preventDefault(), E2.stopPropagation();
|
|
23831
23837
|
}
|
|
23832
|
-
|
|
23833
|
-
|
|
23834
|
-
}
|
|
23835
|
-
|
|
23836
|
-
const E2 = () => {
|
|
23838
|
+
};
|
|
23839
|
+
return window.addEventListener("keydown", g2, true), () => window.removeEventListener("keydown", g2, true);
|
|
23840
|
+
}, []), (0, import_react.useEffect)(() => {
|
|
23841
|
+
const g2 = () => {
|
|
23837
23842
|
if (l.current) {
|
|
23838
|
-
document.removeEventListener("click",
|
|
23843
|
+
document.removeEventListener("click", g2);
|
|
23839
23844
|
try {
|
|
23840
23845
|
l.current.dispatchEvent(new Event("user-interaction"));
|
|
23841
|
-
} catch (
|
|
23842
|
-
console.error("Error starting playback:",
|
|
23846
|
+
} catch (E2) {
|
|
23847
|
+
console.error("Error starting playback:", E2);
|
|
23843
23848
|
}
|
|
23844
23849
|
}
|
|
23845
23850
|
};
|
|
23846
|
-
return document.addEventListener("click",
|
|
23847
|
-
document.removeEventListener("click",
|
|
23851
|
+
return document.addEventListener("click", g2), () => {
|
|
23852
|
+
document.removeEventListener("click", g2);
|
|
23848
23853
|
};
|
|
23849
|
-
}, [l]), d ? /* @__PURE__ */
|
|
23850
|
-
/* @__PURE__ */
|
|
23854
|
+
}, [l]), d ? /* @__PURE__ */ ke2.jsx("div", { className: `relative ${t}`, tabIndex: 0, children: /* @__PURE__ */ ke2.jsxs(sc, { style: { width: "100%", height: "100%" }, children: [
|
|
23855
|
+
/* @__PURE__ */ ke2.jsx(
|
|
23851
23856
|
"norsk-video",
|
|
23852
23857
|
{
|
|
23853
23858
|
ref: l,
|
|
@@ -23859,20 +23864,36 @@ var bc2 = ({
|
|
|
23859
23864
|
style: { width: "100%", height: "100%" }
|
|
23860
23865
|
}
|
|
23861
23866
|
),
|
|
23862
|
-
/* @__PURE__ */
|
|
23863
|
-
/* @__PURE__ */
|
|
23864
|
-
/* @__PURE__ */
|
|
23865
|
-
/* @__PURE__ */
|
|
23867
|
+
/* @__PURE__ */ ke2.jsxs(oc, { children: [
|
|
23868
|
+
/* @__PURE__ */ ke2.jsx(uc2, {}),
|
|
23869
|
+
/* @__PURE__ */ ke2.jsx(hc2, {}),
|
|
23870
|
+
/* @__PURE__ */ ke2.jsx(cc2, { showDuration: true }),
|
|
23871
|
+
/* @__PURE__ */ ke2.jsx(dc2, {}),
|
|
23872
|
+
/* @__PURE__ */ ke2.jsx(lc, {})
|
|
23866
23873
|
] })
|
|
23867
|
-
] }) }) : /* @__PURE__ */
|
|
23874
|
+
] }) }) : /* @__PURE__ */ ke2.jsx("div", { className: `relative ${t}`, children: /* @__PURE__ */ ke2.jsx("div", { style: { width: "100%", height: "100%", background: "#f0f0f0", display: "flex", alignItems: "center", justifyContent: "center" }, children: "Loading player..." }) });
|
|
23868
23875
|
};
|
|
23869
23876
|
|
|
23870
23877
|
// build/client/output.tams/inline-view.js
|
|
23871
23878
|
var import_react2 = __toESM(require_react());
|
|
23872
23879
|
function InlineView({ state }) {
|
|
23873
23880
|
const [playing, setPlaying] = (0, import_react2.useState)();
|
|
23881
|
+
const [hovered, setHovered] = (0, import_react2.useState)(false);
|
|
23874
23882
|
if (playing) {
|
|
23875
|
-
return (0, import_jsx_runtime.
|
|
23883
|
+
return (0, import_jsx_runtime.jsx)("div", { className: "flex flex-col gap-2", children: (0, import_jsx_runtime.jsxs)("div", { style: { width: 420, height: 280 }, className: "relative", children: [(0, import_jsx_runtime.jsx)("button", { onClick: () => setPlaying(void 0), onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), className: `
|
|
23884
|
+
absolute top-1 right-1
|
|
23885
|
+
z-50 pointer-events-auto
|
|
23886
|
+
flex items-center justify-center
|
|
23887
|
+
h-8 w-8 aspect-square
|
|
23888
|
+
rounded-full
|
|
23889
|
+
border border-white
|
|
23890
|
+
text-white
|
|
23891
|
+
shadow-[0_4px_16px_rgba(0,0,0,0.45)]
|
|
23892
|
+
backdrop-blur-md
|
|
23893
|
+
!p-0 leading-none
|
|
23894
|
+
transition-transform transition-colors duration-150 ease-out
|
|
23895
|
+
${hovered ? "opacity-50" : "opacity-20"}
|
|
23896
|
+
`, children: (0, import_jsx_runtime.jsxs)("svg", { viewBox: "0 0 20 20", className: "w-4 h-4", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [(0, import_jsx_runtime.jsx)("line", { x1: "4", y1: "4", x2: "16", y2: "16" }), (0, import_jsx_runtime.jsx)("line", { x1: "16", y1: "4", x2: "4", y2: "16" })] }) }), (0, import_jsx_runtime.jsx)(yc2, { src: playing, className: "w-full h-full", fillContainer: true }, playing)] }) });
|
|
23876
23897
|
}
|
|
23877
23898
|
const hasSessions = state.active || state.sessions.length > 0;
|
|
23878
23899
|
return (0, import_jsx_runtime.jsxs)("div", { className: "bg-slate-950 p-6 overflow-auto", style: { maxHeight: "600px", maxWidth: "450px" }, children: [!hasSessions && (0, import_jsx_runtime.jsx)("div", { className: "text-slate-400 text-center py-8", children: "No active or recorded sessions" }), displaySessions("Active Sessions", state.active ? [state.active] : [], setPlaying), displaySessions("Past Sessions", state.sessions, setPlaying)] });
|
|
@@ -24850,9 +24871,9 @@ function n2p(v) {
|
|
|
24850
24871
|
}
|
|
24851
24872
|
var map$1 = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 };
|
|
24852
24873
|
var hex = [..."0123456789ABCDEF"];
|
|
24853
|
-
var h1 = (
|
|
24854
|
-
var h2 = (
|
|
24855
|
-
var eq = (
|
|
24874
|
+
var h1 = (b3) => hex[b3 & 15];
|
|
24875
|
+
var h2 = (b3) => hex[(b3 & 240) >> 4] + hex[b3 & 15];
|
|
24876
|
+
var eq = (b3) => (b3 & 240) >> 4 === (b3 & 15);
|
|
24856
24877
|
var isShort = (v) => eq(v.r) && eq(v.g) && eq(v.b) && eq(v.a);
|
|
24857
24878
|
function hexParse(str) {
|
|
24858
24879
|
var len = str.length;
|
|
@@ -24891,54 +24912,54 @@ function hsv2rgbn(h, s2, v) {
|
|
|
24891
24912
|
const f = (n, k = (n + h / 60) % 6) => v - v * s2 * Math.max(Math.min(k, 4 - k, 1), 0);
|
|
24892
24913
|
return [f(5), f(3), f(1)];
|
|
24893
24914
|
}
|
|
24894
|
-
function hwb2rgbn(h, w,
|
|
24915
|
+
function hwb2rgbn(h, w, b3) {
|
|
24895
24916
|
const rgb = hsl2rgbn(h, 1, 0.5);
|
|
24896
24917
|
let i;
|
|
24897
|
-
if (w +
|
|
24898
|
-
i = 1 / (w +
|
|
24918
|
+
if (w + b3 > 1) {
|
|
24919
|
+
i = 1 / (w + b3);
|
|
24899
24920
|
w *= i;
|
|
24900
|
-
|
|
24921
|
+
b3 *= i;
|
|
24901
24922
|
}
|
|
24902
24923
|
for (i = 0; i < 3; i++) {
|
|
24903
|
-
rgb[i] *= 1 - w -
|
|
24924
|
+
rgb[i] *= 1 - w - b3;
|
|
24904
24925
|
rgb[i] += w;
|
|
24905
24926
|
}
|
|
24906
24927
|
return rgb;
|
|
24907
24928
|
}
|
|
24908
|
-
function hueValue(r,
|
|
24929
|
+
function hueValue(r, g2, b3, d, max) {
|
|
24909
24930
|
if (r === max) {
|
|
24910
|
-
return (
|
|
24931
|
+
return (g2 - b3) / d + (g2 < b3 ? 6 : 0);
|
|
24911
24932
|
}
|
|
24912
|
-
if (
|
|
24913
|
-
return (
|
|
24933
|
+
if (g2 === max) {
|
|
24934
|
+
return (b3 - r) / d + 2;
|
|
24914
24935
|
}
|
|
24915
|
-
return (r -
|
|
24936
|
+
return (r - g2) / d + 4;
|
|
24916
24937
|
}
|
|
24917
24938
|
function rgb2hsl(v) {
|
|
24918
24939
|
const range = 255;
|
|
24919
24940
|
const r = v.r / range;
|
|
24920
|
-
const
|
|
24921
|
-
const
|
|
24922
|
-
const max = Math.max(r,
|
|
24923
|
-
const min = Math.min(r,
|
|
24941
|
+
const g2 = v.g / range;
|
|
24942
|
+
const b3 = v.b / range;
|
|
24943
|
+
const max = Math.max(r, g2, b3);
|
|
24944
|
+
const min = Math.min(r, g2, b3);
|
|
24924
24945
|
const l = (max + min) / 2;
|
|
24925
24946
|
let h, s2, d;
|
|
24926
24947
|
if (max !== min) {
|
|
24927
24948
|
d = max - min;
|
|
24928
24949
|
s2 = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
24929
|
-
h = hueValue(r,
|
|
24950
|
+
h = hueValue(r, g2, b3, d, max);
|
|
24930
24951
|
h = h * 60 + 0.5;
|
|
24931
24952
|
}
|
|
24932
24953
|
return [h | 0, s2 || 0, l];
|
|
24933
24954
|
}
|
|
24934
|
-
function calln(f, a,
|
|
24935
|
-
return (Array.isArray(a) ? f(a[0], a[1], a[2]) : f(a,
|
|
24955
|
+
function calln(f, a, b3, c) {
|
|
24956
|
+
return (Array.isArray(a) ? f(a[0], a[1], a[2]) : f(a, b3, c)).map(n2b);
|
|
24936
24957
|
}
|
|
24937
24958
|
function hsl2rgb(h, s2, l) {
|
|
24938
24959
|
return calln(hsl2rgbn, h, s2, l);
|
|
24939
24960
|
}
|
|
24940
|
-
function hwb2rgb(h, w,
|
|
24941
|
-
return calln(hwb2rgbn, h, w,
|
|
24961
|
+
function hwb2rgb(h, w, b3) {
|
|
24962
|
+
return calln(hwb2rgbn, h, w, b3);
|
|
24942
24963
|
}
|
|
24943
24964
|
function hsv2rgb(h, s2, v) {
|
|
24944
24965
|
return calln(hsv2rgbn, h, s2, v);
|
|
@@ -25204,7 +25225,7 @@ var RGB_RE = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)
|
|
|
25204
25225
|
function rgbParse(str) {
|
|
25205
25226
|
const m = RGB_RE.exec(str);
|
|
25206
25227
|
let a = 255;
|
|
25207
|
-
let r,
|
|
25228
|
+
let r, g2, b3;
|
|
25208
25229
|
if (!m) {
|
|
25209
25230
|
return;
|
|
25210
25231
|
}
|
|
@@ -25213,15 +25234,15 @@ function rgbParse(str) {
|
|
|
25213
25234
|
a = m[8] ? p2b(v) : lim(v * 255, 0, 255);
|
|
25214
25235
|
}
|
|
25215
25236
|
r = +m[1];
|
|
25216
|
-
|
|
25217
|
-
|
|
25237
|
+
g2 = +m[3];
|
|
25238
|
+
b3 = +m[5];
|
|
25218
25239
|
r = 255 & (m[2] ? p2b(r) : lim(r, 0, 255));
|
|
25219
|
-
|
|
25220
|
-
|
|
25240
|
+
g2 = 255 & (m[4] ? p2b(g2) : lim(g2, 0, 255));
|
|
25241
|
+
b3 = 255 & (m[6] ? p2b(b3) : lim(b3, 0, 255));
|
|
25221
25242
|
return {
|
|
25222
25243
|
r,
|
|
25223
|
-
g:
|
|
25224
|
-
b:
|
|
25244
|
+
g: g2,
|
|
25245
|
+
b: b3,
|
|
25225
25246
|
a
|
|
25226
25247
|
};
|
|
25227
25248
|
}
|
|
@@ -25232,12 +25253,12 @@ var to3 = (v) => v <= 31308e-7 ? v * 12.92 : Math.pow(v, 1 / 2.4) * 1.055 - 0.05
|
|
|
25232
25253
|
var from = (v) => v <= 0.04045 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
|
|
25233
25254
|
function interpolate(rgb1, rgb2, t) {
|
|
25234
25255
|
const r = from(b2n(rgb1.r));
|
|
25235
|
-
const
|
|
25236
|
-
const
|
|
25256
|
+
const g2 = from(b2n(rgb1.g));
|
|
25257
|
+
const b3 = from(b2n(rgb1.b));
|
|
25237
25258
|
return {
|
|
25238
25259
|
r: n2b(to3(r + t * (from(b2n(rgb2.r)) - r))),
|
|
25239
|
-
g: n2b(to3(
|
|
25240
|
-
b: n2b(to3(
|
|
25260
|
+
g: n2b(to3(g2 + t * (from(b2n(rgb2.g)) - g2))),
|
|
25261
|
+
b: n2b(to3(b3 + t * (from(b2n(rgb2.b)) - b3))),
|
|
25241
25262
|
a: rgb1.a + t * (rgb2.a - rgb1.a)
|
|
25242
25263
|
};
|
|
25243
25264
|
}
|
|
@@ -25580,12 +25601,12 @@ function _capitalize(str) {
|
|
|
25580
25601
|
}
|
|
25581
25602
|
var defined = (value) => typeof value !== "undefined";
|
|
25582
25603
|
var isFunction = (value) => typeof value === "function";
|
|
25583
|
-
var setsEqual = (a,
|
|
25584
|
-
if (a.size !==
|
|
25604
|
+
var setsEqual = (a, b3) => {
|
|
25605
|
+
if (a.size !== b3.size) {
|
|
25585
25606
|
return false;
|
|
25586
25607
|
}
|
|
25587
25608
|
for (const item of a) {
|
|
25588
|
-
if (!
|
|
25609
|
+
if (!b3.has(item)) {
|
|
25589
25610
|
return false;
|
|
25590
25611
|
}
|
|
25591
25612
|
}
|
|
@@ -25628,7 +25649,7 @@ function _factorize(value) {
|
|
|
25628
25649
|
if (sqrt === (sqrt | 0)) {
|
|
25629
25650
|
result.push(sqrt);
|
|
25630
25651
|
}
|
|
25631
|
-
result.sort((a,
|
|
25652
|
+
result.sort((a, b3) => a - b3).pop();
|
|
25632
25653
|
return result;
|
|
25633
25654
|
}
|
|
25634
25655
|
function isNumber(n) {
|
|
@@ -25682,8 +25703,8 @@ function getAngleFromPoint(centrePoint, anglePoint) {
|
|
|
25682
25703
|
function distanceBetweenPoints(pt1, pt22) {
|
|
25683
25704
|
return Math.sqrt(Math.pow(pt22.x - pt1.x, 2) + Math.pow(pt22.y - pt1.y, 2));
|
|
25684
25705
|
}
|
|
25685
|
-
function _angleDiff(a,
|
|
25686
|
-
return (a -
|
|
25706
|
+
function _angleDiff(a, b3) {
|
|
25707
|
+
return (a - b3 + PITAU) % TAU - PI;
|
|
25687
25708
|
}
|
|
25688
25709
|
function _normalizeAngle(a) {
|
|
25689
25710
|
return (a % TAU + TAU) % TAU;
|
|
@@ -27399,10 +27420,10 @@ function _bezierInterpolation(p1, p2, t, mode) {
|
|
|
27399
27420
|
y: p2.cp1y
|
|
27400
27421
|
};
|
|
27401
27422
|
const a = _pointInLine(p1, cp1, t);
|
|
27402
|
-
const
|
|
27423
|
+
const b3 = _pointInLine(cp1, cp2, t);
|
|
27403
27424
|
const c = _pointInLine(cp2, p2, t);
|
|
27404
|
-
const d = _pointInLine(a,
|
|
27405
|
-
const e = _pointInLine(
|
|
27425
|
+
const d = _pointInLine(a, b3, t);
|
|
27426
|
+
const e = _pointInLine(b3, c, t);
|
|
27406
27427
|
return _pointInLine(d, e, t);
|
|
27407
27428
|
}
|
|
27408
27429
|
var getRightToLeftAdapter = function(rectX, width) {
|
|
@@ -27476,7 +27497,7 @@ function propertyFn(property) {
|
|
|
27476
27497
|
}
|
|
27477
27498
|
return {
|
|
27478
27499
|
between: _isBetween,
|
|
27479
|
-
compare: (a,
|
|
27500
|
+
compare: (a, b3) => a - b3,
|
|
27480
27501
|
normalize: (x) => x
|
|
27481
27502
|
};
|
|
27482
27503
|
}
|
|
@@ -28151,19 +28172,19 @@ function defaultClip(xScale, yScale, allowedOverflow) {
|
|
|
28151
28172
|
};
|
|
28152
28173
|
}
|
|
28153
28174
|
function toClip(value) {
|
|
28154
|
-
let t, r,
|
|
28175
|
+
let t, r, b3, l;
|
|
28155
28176
|
if (isObject(value)) {
|
|
28156
28177
|
t = value.top;
|
|
28157
28178
|
r = value.right;
|
|
28158
|
-
|
|
28179
|
+
b3 = value.bottom;
|
|
28159
28180
|
l = value.left;
|
|
28160
28181
|
} else {
|
|
28161
|
-
t = r =
|
|
28182
|
+
t = r = b3 = l = value;
|
|
28162
28183
|
}
|
|
28163
28184
|
return {
|
|
28164
28185
|
top: t,
|
|
28165
28186
|
right: r,
|
|
28166
|
-
bottom:
|
|
28187
|
+
bottom: b3,
|
|
28167
28188
|
left: l,
|
|
28168
28189
|
disabled: value === false
|
|
28169
28190
|
};
|
|
@@ -28915,7 +28936,7 @@ function getAllScaleValues(scale, type) {
|
|
|
28915
28936
|
for (let i = 0, ilen = visibleMetas.length; i < ilen; i++) {
|
|
28916
28937
|
values = values.concat(visibleMetas[i].controller.getAllParsedValues(scale));
|
|
28917
28938
|
}
|
|
28918
|
-
scale._cache.$bar = _arrayUnique(values.sort((a,
|
|
28939
|
+
scale._cache.$bar = _arrayUnique(values.sort((a, b3) => a - b3));
|
|
28919
28940
|
}
|
|
28920
28941
|
return scale._cache.$bar;
|
|
28921
28942
|
}
|
|
@@ -29090,12 +29111,12 @@ function setBorderSkipped(properties, options, stack, index2) {
|
|
|
29090
29111
|
res[parseEdge(edge, start, end, reverse)] = true;
|
|
29091
29112
|
properties.borderSkipped = res;
|
|
29092
29113
|
}
|
|
29093
|
-
function parseEdge(edge, a,
|
|
29114
|
+
function parseEdge(edge, a, b3, reverse) {
|
|
29094
29115
|
if (reverse) {
|
|
29095
|
-
edge = swap(edge, a,
|
|
29096
|
-
edge = startEnd(edge,
|
|
29116
|
+
edge = swap(edge, a, b3);
|
|
29117
|
+
edge = startEnd(edge, b3, a);
|
|
29097
29118
|
} else {
|
|
29098
|
-
edge = startEnd(edge, a,
|
|
29119
|
+
edge = startEnd(edge, a, b3);
|
|
29099
29120
|
}
|
|
29100
29121
|
return edge;
|
|
29101
29122
|
}
|
|
@@ -29510,8 +29531,8 @@ function getRatioAndOffset(rotation, circumference, cutout) {
|
|
|
29510
29531
|
const startY = Math.sin(startAngle);
|
|
29511
29532
|
const endX = Math.cos(endAngle);
|
|
29512
29533
|
const endY = Math.sin(endAngle);
|
|
29513
|
-
const calcMax = (angle, a,
|
|
29514
|
-
const calcMin = (angle, a,
|
|
29534
|
+
const calcMax = (angle, a, b3) => _angleBetween(angle, startAngle, endAngle, true) ? 1 : Math.max(a, a * cutout, b3, b3 * cutout);
|
|
29535
|
+
const calcMin = (angle, a, b3) => _angleBetween(angle, startAngle, endAngle, true) ? -1 : Math.min(a, a * cutout, b3, b3 * cutout);
|
|
29515
29536
|
const maxX = calcMax(0, startX, endX);
|
|
29516
29537
|
const maxY = calcMax(HALF_PI, startY, endY);
|
|
29517
29538
|
const minX = calcMin(PI, startX, endX);
|
|
@@ -30581,9 +30602,9 @@ function filterDynamicPositionByAxis(array, axis) {
|
|
|
30581
30602
|
return array.filter((v) => STATIC_POSITIONS.indexOf(v.pos) === -1 && v.box.axis === axis);
|
|
30582
30603
|
}
|
|
30583
30604
|
function sortByWeight(array, reverse) {
|
|
30584
|
-
return array.sort((a,
|
|
30585
|
-
const v02 = reverse ?
|
|
30586
|
-
const v1 = reverse ? a :
|
|
30605
|
+
return array.sort((a, b3) => {
|
|
30606
|
+
const v02 = reverse ? b3 : a;
|
|
30607
|
+
const v1 = reverse ? a : b3;
|
|
30587
30608
|
return v02.weight === v1.weight ? v02.index - v1.index : v02.weight - v1.weight;
|
|
30588
30609
|
});
|
|
30589
30610
|
}
|
|
@@ -30660,8 +30681,8 @@ function buildLayoutBoxes(boxes) {
|
|
|
30660
30681
|
horizontal: top.concat(bottom).concat(centerHorizontal)
|
|
30661
30682
|
};
|
|
30662
30683
|
}
|
|
30663
|
-
function getCombinedMax(maxPadding, chartArea, a,
|
|
30664
|
-
return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[
|
|
30684
|
+
function getCombinedMax(maxPadding, chartArea, a, b3) {
|
|
30685
|
+
return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b3], chartArea[b3]);
|
|
30665
30686
|
}
|
|
30666
30687
|
function updateMaxPadding(maxPadding, boxPadding) {
|
|
30667
30688
|
maxPadding.top = Math.max(maxPadding.top, boxPadding.top);
|
|
@@ -32840,7 +32861,7 @@ var PluginService = class {
|
|
|
32840
32861
|
_notifyStateChanges(chart) {
|
|
32841
32862
|
const previousDescriptors = this._oldCache || [];
|
|
32842
32863
|
const descriptors2 = this._cache;
|
|
32843
|
-
const diff = (a,
|
|
32864
|
+
const diff = (a, b3) => a.filter((x) => !b3.some((y2) => x.plugin.id === y2.plugin.id));
|
|
32844
32865
|
this._notify(diff(previousDescriptors, descriptors2), chart, "stop");
|
|
32845
32866
|
this._notify(diff(descriptors2, previousDescriptors), chart, "start");
|
|
32846
32867
|
}
|
|
@@ -33250,8 +33271,8 @@ function positionIsHorizontal(position, axis) {
|
|
|
33250
33271
|
return position === "top" || position === "bottom" || KNOWN_POSITIONS.indexOf(position) === -1 && axis === "x";
|
|
33251
33272
|
}
|
|
33252
33273
|
function compare2Level(l1, l2) {
|
|
33253
|
-
return function(a,
|
|
33254
|
-
return a[l1] ===
|
|
33274
|
+
return function(a, b3) {
|
|
33275
|
+
return a[l1] === b3[l1] ? a[l2] - b3[l2] : a[l1] - b3[l1];
|
|
33255
33276
|
};
|
|
33256
33277
|
}
|
|
33257
33278
|
function onAnimationsComplete(context) {
|
|
@@ -33537,7 +33558,7 @@ var Chart = class {
|
|
|
33537
33558
|
const metasets = this._metasets;
|
|
33538
33559
|
const numData = this.data.datasets.length;
|
|
33539
33560
|
const numMeta = metasets.length;
|
|
33540
|
-
metasets.sort((a,
|
|
33561
|
+
metasets.sort((a, b3) => a.index - b3.index);
|
|
33541
33562
|
if (numMeta > numData) {
|
|
33542
33563
|
for (let i = numData; i < numMeta; ++i) {
|
|
33543
33564
|
this._destroyDatasetMeta(i);
|
|
@@ -34080,7 +34101,7 @@ var Chart = class {
|
|
|
34080
34101
|
}
|
|
34081
34102
|
_updateHoverStyles(active, lastActive, replay) {
|
|
34082
34103
|
const hoverOptions = this.options.hover;
|
|
34083
|
-
const diff = (a,
|
|
34104
|
+
const diff = (a, b3) => a.filter((x) => !b3.some((y2) => x.datasetIndex === y2.datasetIndex && x.index === y2.index));
|
|
34084
34105
|
const deactivated = diff(lastActive, active);
|
|
34085
34106
|
const activated = replay ? active : diff(active, lastActive);
|
|
34086
34107
|
if (deactivated.length) {
|
|
@@ -35348,11 +35369,11 @@ function _findSegmentEnd(start, end, points) {
|
|
|
35348
35369
|
}
|
|
35349
35370
|
return end;
|
|
35350
35371
|
}
|
|
35351
|
-
function _getEdge(a,
|
|
35352
|
-
if (a &&
|
|
35353
|
-
return fn3(a[prop],
|
|
35372
|
+
function _getEdge(a, b3, prop, fn3) {
|
|
35373
|
+
if (a && b3) {
|
|
35374
|
+
return fn3(a[prop], b3[prop]);
|
|
35354
35375
|
}
|
|
35355
|
-
return a ? a[prop] :
|
|
35376
|
+
return a ? a[prop] : b3 ? b3[prop] : 0;
|
|
35356
35377
|
}
|
|
35357
35378
|
function _createBoundaryLine(boundary, line) {
|
|
35358
35379
|
let points = [];
|
|
@@ -35840,7 +35861,7 @@ var getBoxSize = (labelOpts, fontSize) => {
|
|
|
35840
35861
|
itemHeight: Math.max(fontSize, boxHeight)
|
|
35841
35862
|
};
|
|
35842
35863
|
};
|
|
35843
|
-
var itemsEqual = (a,
|
|
35864
|
+
var itemsEqual = (a, b3) => a !== null && b3 !== null && a.datasetIndex === b3.datasetIndex && a.index === b3.index;
|
|
35844
35865
|
var Legend = class extends Element {
|
|
35845
35866
|
constructor(config) {
|
|
35846
35867
|
super();
|
|
@@ -35895,7 +35916,7 @@ var Legend = class extends Element {
|
|
|
35895
35916
|
legendItems = legendItems.filter((item) => labelOpts.filter(item, this.chart.data));
|
|
35896
35917
|
}
|
|
35897
35918
|
if (labelOpts.sort) {
|
|
35898
|
-
legendItems = legendItems.sort((a,
|
|
35919
|
+
legendItems = legendItems.sort((a, b3) => labelOpts.sort(a, b3, this.chart.data));
|
|
35899
35920
|
}
|
|
35900
35921
|
if (this.options.reverse) {
|
|
35901
35922
|
legendItems.reverse();
|
|
@@ -36255,7 +36276,7 @@ function calculateItemSize(boxWidth, labelFont, ctx, legendItem, _itemHeight) {
|
|
|
36255
36276
|
function calculateItemWidth(legendItem, boxWidth, labelFont, ctx) {
|
|
36256
36277
|
let legendItemText = legendItem.text;
|
|
36257
36278
|
if (legendItemText && typeof legendItemText !== "string") {
|
|
36258
|
-
legendItemText = legendItemText.reduce((a,
|
|
36279
|
+
legendItemText = legendItemText.reduce((a, b3) => a.length > b3.length ? a : b3);
|
|
36259
36280
|
}
|
|
36260
36281
|
return boxWidth + labelFont.size / 2 + ctx.measureText(legendItemText).width;
|
|
36261
36282
|
}
|
|
@@ -36577,7 +36598,7 @@ var positioners = {
|
|
|
36577
36598
|
}
|
|
36578
36599
|
const xAverage = [
|
|
36579
36600
|
...xSet
|
|
36580
|
-
].reduce((a,
|
|
36601
|
+
].reduce((a, b3) => a + b3) / xSet.size;
|
|
36581
36602
|
return {
|
|
36582
36603
|
x: xAverage,
|
|
36583
36604
|
y: y2 / count
|
|
@@ -36982,7 +37003,7 @@ var Tooltip = class extends Element {
|
|
|
36982
37003
|
tooltipItems = tooltipItems.filter((element, index2, array) => options.filter(element, index2, array, data));
|
|
36983
37004
|
}
|
|
36984
37005
|
if (options.itemSort) {
|
|
36985
|
-
tooltipItems = tooltipItems.sort((a,
|
|
37006
|
+
tooltipItems = tooltipItems.sort((a, b3) => options.itemSort(a, b3, data));
|
|
36986
37007
|
}
|
|
36987
37008
|
each(tooltipItems, (context) => {
|
|
36988
37009
|
const scoped = overrideCallbacks(options.callbacks, context);
|
|
@@ -38623,8 +38644,8 @@ var INTERVALS = {
|
|
|
38623
38644
|
}
|
|
38624
38645
|
};
|
|
38625
38646
|
var UNITS = /* @__PURE__ */ Object.keys(INTERVALS);
|
|
38626
|
-
function sorter(a,
|
|
38627
|
-
return a -
|
|
38647
|
+
function sorter(a, b3) {
|
|
38648
|
+
return a - b3;
|
|
38628
38649
|
}
|
|
38629
38650
|
function parse(scale, input) {
|
|
38630
38651
|
if (isNullOrUndef(input)) {
|
|
@@ -39080,7 +39101,7 @@ var TimeSeriesScale = class extends TimeScale {
|
|
|
39080
39101
|
if (!timestamps.includes(max) || timestamps.length === 1) {
|
|
39081
39102
|
timestamps.push(max);
|
|
39082
39103
|
}
|
|
39083
|
-
return timestamps.sort((a,
|
|
39104
|
+
return timestamps.sort((a, b3) => a - b3);
|
|
39084
39105
|
}
|
|
39085
39106
|
_getTimestampsForTable() {
|
|
39086
39107
|
let timestamps = this._cache.all || [];
|