@netless/window-manager 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +133 -126
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/BuiltinApps.ts +1 -1
package/dist/index.mjs
CHANGED
@@ -23,7 +23,7 @@ import { debounce, isEqual, omit, isObject, has, get, size as size$1, mapValues,
|
|
23
23
|
import { ScenePathType, UpdateEventKind, listenUpdated, unlistenUpdated, reaction, autorun, toJS, listenDisposed, unlistenDisposed, ViewMode, AnimationMode, isPlayer, isRoom, WhiteVersion, ApplianceNames, RoomPhase, PlayerPhase, InvisiblePlugin } from "white-web-sdk";
|
24
24
|
import { v4 } from "uuid";
|
25
25
|
import { ResizeObserver as ResizeObserver$3 } from "@juggle/resize-observer";
|
26
|
-
import
|
26
|
+
import u$3 from "video.js";
|
27
27
|
var Events = /* @__PURE__ */ ((Events2) => {
|
28
28
|
Events2["AppMove"] = "AppMove";
|
29
29
|
Events2["AppFocus"] = "AppFocus";
|
@@ -3074,7 +3074,7 @@ var objectAssign = shouldUseNative$1() ? Object.assign : function(target, source
|
|
3074
3074
|
* This source code is licensed under the MIT license found in the
|
3075
3075
|
* LICENSE file in the root directory of this source tree.
|
3076
3076
|
*/
|
3077
|
-
var l$1 = objectAssign, n$2 = typeof Symbol === "function" && Symbol.for, p = n$2 ? Symbol.for("react.element") : 60103, q$1 = n$2 ? Symbol.for("react.portal") : 60106, r$3 = n$2 ? Symbol.for("react.fragment") : 60107, t$3 = n$2 ? Symbol.for("react.strict_mode") : 60108, u$
|
3077
|
+
var l$1 = objectAssign, n$2 = typeof Symbol === "function" && Symbol.for, p = n$2 ? Symbol.for("react.element") : 60103, q$1 = n$2 ? Symbol.for("react.portal") : 60106, r$3 = n$2 ? Symbol.for("react.fragment") : 60107, t$3 = n$2 ? Symbol.for("react.strict_mode") : 60108, u$2 = n$2 ? Symbol.for("react.profiler") : 60114, v$2 = n$2 ? Symbol.for("react.provider") : 60109, w$1 = n$2 ? Symbol.for("react.context") : 60110, x$1 = n$2 ? Symbol.for("react.forward_ref") : 60112, y$1 = n$2 ? Symbol.for("react.suspense") : 60113, z$1 = n$2 ? Symbol.for("react.memo") : 60115, A$1 = n$2 ? Symbol.for("react.lazy") : 60116, B$1 = typeof Symbol === "function" && Symbol.iterator;
|
3078
3078
|
function C$2(a2) {
|
3079
3079
|
for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++)
|
3080
3080
|
b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
|
@@ -3263,7 +3263,7 @@ react_production_min.Children = { map: function(a2, b2, c2) {
|
|
3263
3263
|
} };
|
3264
3264
|
react_production_min.Component = F$2;
|
3265
3265
|
react_production_min.Fragment = r$3;
|
3266
|
-
react_production_min.Profiler = u$
|
3266
|
+
react_production_min.Profiler = u$2;
|
3267
3267
|
react_production_min.PureComponent = H$2;
|
3268
3268
|
react_production_min.StrictMode = t$3;
|
3269
3269
|
react_production_min.Suspense = y$1;
|
@@ -4535,10 +4535,10 @@ function t$2(e2, s2, t2, i2) {
|
|
4535
4535
|
}
|
4536
4536
|
function i$1(e2, s2) {
|
4537
4537
|
Object.keys(s2).forEach((r2) => {
|
4538
|
-
u$
|
4538
|
+
u$1(e2, r2, s2[r2]);
|
4539
4539
|
});
|
4540
4540
|
}
|
4541
|
-
function u$
|
4541
|
+
function u$1(e2, s2, r2) {
|
4542
4542
|
var t2;
|
4543
4543
|
return Object.defineProperties(e2, { [s2]: { get: () => r2.value }, [`_${s2}$`]: { value: r2 }, [`set${t2 = s2, t2[0].toUpperCase() + t2.slice(1)}`]: { value: (e3, s3) => r2.setValue(e3, s3) } }), e2;
|
4544
4544
|
}
|
@@ -11034,13 +11034,13 @@ var scheduler_production_min = {};
|
|
11034
11034
|
* LICENSE file in the root directory of this source tree.
|
11035
11035
|
*/
|
11036
11036
|
var aa = react.exports, n$1 = objectAssign, r$1 = scheduler.exports;
|
11037
|
-
function u
|
11037
|
+
function u(a2) {
|
11038
11038
|
for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++)
|
11039
11039
|
b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
|
11040
11040
|
return "Minified React error #" + a2 + "; visit " + b2 + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
11041
11041
|
}
|
11042
11042
|
if (!aa)
|
11043
|
-
throw Error(u
|
11043
|
+
throw Error(u(227));
|
11044
11044
|
function ba(a2, b2, c2, d2, e2, f2, g2, h2, k2) {
|
11045
11045
|
var l2 = Array.prototype.slice.call(arguments, 3);
|
11046
11046
|
try {
|
@@ -11066,7 +11066,7 @@ function ka(a2, b2, c2, d2, e2, f2, g2, h2, k2) {
|
|
11066
11066
|
da = false;
|
11067
11067
|
ea = null;
|
11068
11068
|
} else
|
11069
|
-
throw Error(u
|
11069
|
+
throw Error(u(198));
|
11070
11070
|
fa || (fa = true, ha = l2);
|
11071
11071
|
}
|
11072
11072
|
}
|
@@ -11083,17 +11083,17 @@ function ra() {
|
|
11083
11083
|
for (var a2 in qa) {
|
11084
11084
|
var b2 = qa[a2], c2 = pa.indexOf(a2);
|
11085
11085
|
if (!(-1 < c2))
|
11086
|
-
throw Error(u
|
11086
|
+
throw Error(u(96, a2));
|
11087
11087
|
if (!sa[c2]) {
|
11088
11088
|
if (!b2.extractEvents)
|
11089
|
-
throw Error(u
|
11089
|
+
throw Error(u(97, a2));
|
11090
11090
|
sa[c2] = b2;
|
11091
11091
|
c2 = b2.eventTypes;
|
11092
11092
|
for (var d2 in c2) {
|
11093
11093
|
var e2 = void 0;
|
11094
11094
|
var f2 = c2[d2], g2 = b2, h2 = d2;
|
11095
11095
|
if (ta.hasOwnProperty(h2))
|
11096
|
-
throw Error(u
|
11096
|
+
throw Error(u(99, h2));
|
11097
11097
|
ta[h2] = f2;
|
11098
11098
|
var k2 = f2.phasedRegistrationNames;
|
11099
11099
|
if (k2) {
|
@@ -11103,14 +11103,14 @@ function ra() {
|
|
11103
11103
|
} else
|
11104
11104
|
f2.registrationName ? (ua(f2.registrationName, g2, h2), e2 = true) : e2 = false;
|
11105
11105
|
if (!e2)
|
11106
|
-
throw Error(u
|
11106
|
+
throw Error(u(98, d2, a2));
|
11107
11107
|
}
|
11108
11108
|
}
|
11109
11109
|
}
|
11110
11110
|
}
|
11111
11111
|
function ua(a2, b2, c2) {
|
11112
11112
|
if (va[a2])
|
11113
|
-
throw Error(u
|
11113
|
+
throw Error(u(100, a2));
|
11114
11114
|
va[a2] = b2;
|
11115
11115
|
wa[a2] = b2.eventTypes[c2].dependencies;
|
11116
11116
|
}
|
@@ -11122,7 +11122,7 @@ function xa(a2) {
|
|
11122
11122
|
var d2 = a2[c2];
|
11123
11123
|
if (!qa.hasOwnProperty(c2) || qa[c2] !== d2) {
|
11124
11124
|
if (qa[c2])
|
11125
|
-
throw Error(u
|
11125
|
+
throw Error(u(102, c2));
|
11126
11126
|
qa[c2] = d2;
|
11127
11127
|
b2 = true;
|
11128
11128
|
}
|
@@ -11133,7 +11133,7 @@ var ya = !(typeof window === "undefined" || typeof window.document === "undefine
|
|
11133
11133
|
function Ca(a2) {
|
11134
11134
|
if (a2 = ma(a2)) {
|
11135
11135
|
if (typeof za !== "function")
|
11136
|
-
throw Error(u
|
11136
|
+
throw Error(u(280));
|
11137
11137
|
var b2 = a2.stateNode;
|
11138
11138
|
b2 && (b2 = la(b2), za(a2.stateNode, a2.type, b2));
|
11139
11139
|
}
|
@@ -11514,7 +11514,7 @@ function Hb(a2, b2, c2, d2) {
|
|
11514
11514
|
}
|
11515
11515
|
function Ib(a2, b2) {
|
11516
11516
|
if (b2.dangerouslySetInnerHTML != null)
|
11517
|
-
throw Error(u
|
11517
|
+
throw Error(u(91));
|
11518
11518
|
return n$1({}, b2, { value: void 0, defaultValue: void 0, children: "" + a2._wrapperState.initialValue });
|
11519
11519
|
}
|
11520
11520
|
function Jb(a2, b2) {
|
@@ -11524,10 +11524,10 @@ function Jb(a2, b2) {
|
|
11524
11524
|
b2 = b2.defaultValue;
|
11525
11525
|
if (c2 != null) {
|
11526
11526
|
if (b2 != null)
|
11527
|
-
throw Error(u
|
11527
|
+
throw Error(u(92));
|
11528
11528
|
if (Array.isArray(c2)) {
|
11529
11529
|
if (!(1 >= c2.length))
|
11530
|
-
throw Error(u
|
11530
|
+
throw Error(u(93));
|
11531
11531
|
c2 = c2[0];
|
11532
11532
|
}
|
11533
11533
|
b2 = c2;
|
@@ -11638,14 +11638,14 @@ function ec(a2) {
|
|
11638
11638
|
}
|
11639
11639
|
function fc(a2) {
|
11640
11640
|
if (dc(a2) !== a2)
|
11641
|
-
throw Error(u
|
11641
|
+
throw Error(u(188));
|
11642
11642
|
}
|
11643
11643
|
function gc(a2) {
|
11644
11644
|
var b2 = a2.alternate;
|
11645
11645
|
if (!b2) {
|
11646
11646
|
b2 = dc(a2);
|
11647
11647
|
if (b2 === null)
|
11648
|
-
throw Error(u
|
11648
|
+
throw Error(u(188));
|
11649
11649
|
return b2 !== a2 ? null : a2;
|
11650
11650
|
}
|
11651
11651
|
for (var c2 = a2, d2 = b2; ; ) {
|
@@ -11669,7 +11669,7 @@ function gc(a2) {
|
|
11669
11669
|
return fc(e2), b2;
|
11670
11670
|
f2 = f2.sibling;
|
11671
11671
|
}
|
11672
|
-
throw Error(u
|
11672
|
+
throw Error(u(188));
|
11673
11673
|
}
|
11674
11674
|
if (c2.return !== d2.return)
|
11675
11675
|
c2 = e2, d2 = f2;
|
@@ -11706,14 +11706,14 @@ function gc(a2) {
|
|
11706
11706
|
h2 = h2.sibling;
|
11707
11707
|
}
|
11708
11708
|
if (!g2)
|
11709
|
-
throw Error(u
|
11709
|
+
throw Error(u(189));
|
11710
11710
|
}
|
11711
11711
|
}
|
11712
11712
|
if (c2.alternate !== d2)
|
11713
|
-
throw Error(u
|
11713
|
+
throw Error(u(190));
|
11714
11714
|
}
|
11715
11715
|
if (c2.tag !== 3)
|
11716
|
-
throw Error(u
|
11716
|
+
throw Error(u(188));
|
11717
11717
|
return c2.stateNode.current === c2 ? a2 : b2;
|
11718
11718
|
}
|
11719
11719
|
function hc(a2) {
|
@@ -11741,7 +11741,7 @@ function hc(a2) {
|
|
11741
11741
|
}
|
11742
11742
|
function ic(a2, b2) {
|
11743
11743
|
if (b2 == null)
|
11744
|
-
throw Error(u
|
11744
|
+
throw Error(u(30));
|
11745
11745
|
if (a2 == null)
|
11746
11746
|
return b2;
|
11747
11747
|
if (Array.isArray(a2)) {
|
@@ -11776,7 +11776,7 @@ function mc(a2) {
|
|
11776
11776
|
if (a2) {
|
11777
11777
|
jc(a2, lc);
|
11778
11778
|
if (kc)
|
11779
|
-
throw Error(u
|
11779
|
+
throw Error(u(95));
|
11780
11780
|
if (fa)
|
11781
11781
|
throw a2 = ha, fa = false, ha = null, a2;
|
11782
11782
|
}
|
@@ -12224,15 +12224,15 @@ var nd = n$1({ menuitem: true }, { area: true, base: true, br: true, col: true,
|
|
12224
12224
|
function od(a2, b2) {
|
12225
12225
|
if (b2) {
|
12226
12226
|
if (nd[a2] && (b2.children != null || b2.dangerouslySetInnerHTML != null))
|
12227
|
-
throw Error(u
|
12227
|
+
throw Error(u(137, a2, ""));
|
12228
12228
|
if (b2.dangerouslySetInnerHTML != null) {
|
12229
12229
|
if (b2.children != null)
|
12230
|
-
throw Error(u
|
12230
|
+
throw Error(u(60));
|
12231
12231
|
if (!(typeof b2.dangerouslySetInnerHTML === "object" && "__html" in b2.dangerouslySetInnerHTML))
|
12232
|
-
throw Error(u
|
12232
|
+
throw Error(u(61));
|
12233
12233
|
}
|
12234
12234
|
if (b2.style != null && typeof b2.style !== "object")
|
12235
|
-
throw Error(u
|
12235
|
+
throw Error(u(62, ""));
|
12236
12236
|
}
|
12237
12237
|
}
|
12238
12238
|
function pd(a2, b2) {
|
@@ -12389,7 +12389,7 @@ function Nc(a2) {
|
|
12389
12389
|
function Pd(a2) {
|
12390
12390
|
if (a2.tag === 5 || a2.tag === 6)
|
12391
12391
|
return a2.stateNode;
|
12392
|
-
throw Error(u
|
12392
|
+
throw Error(u(33));
|
12393
12393
|
}
|
12394
12394
|
function Qd(a2) {
|
12395
12395
|
return a2[Nd] || null;
|
@@ -12430,7 +12430,7 @@ function Sd(a2, b2) {
|
|
12430
12430
|
if (a2)
|
12431
12431
|
return null;
|
12432
12432
|
if (c2 && typeof c2 !== "function")
|
12433
|
-
throw Error(u
|
12433
|
+
throw Error(u(231, b2, typeof c2));
|
12434
12434
|
return c2;
|
12435
12435
|
}
|
12436
12436
|
function Td(a2, b2, c2) {
|
@@ -12535,7 +12535,7 @@ function ee$1(a2, b2, c2, d2) {
|
|
12535
12535
|
}
|
12536
12536
|
function fe(a2) {
|
12537
12537
|
if (!(a2 instanceof this))
|
12538
|
-
throw Error(u
|
12538
|
+
throw Error(u(279));
|
12539
12539
|
a2.destructor();
|
12540
12540
|
10 > this.eventPool.length && this.eventPool.push(a2);
|
12541
12541
|
}
|
@@ -13018,7 +13018,7 @@ var pf = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right
|
|
13018
13018
|
return b2;
|
13019
13019
|
} };
|
13020
13020
|
if (pa)
|
13021
|
-
throw Error(u
|
13021
|
+
throw Error(u(101));
|
13022
13022
|
pa = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));
|
13023
13023
|
ra();
|
13024
13024
|
var xf = Nc;
|
@@ -13059,7 +13059,7 @@ function Df() {
|
|
13059
13059
|
}
|
13060
13060
|
function Ef(a2, b2, c2) {
|
13061
13061
|
if (J$1.current !== Af)
|
13062
|
-
throw Error(u
|
13062
|
+
throw Error(u(168));
|
13063
13063
|
I$1(J$1, b2);
|
13064
13064
|
I$1(K$1, c2);
|
13065
13065
|
}
|
@@ -13071,7 +13071,7 @@ function Ff(a2, b2, c2) {
|
|
13071
13071
|
d2 = d2.getChildContext();
|
13072
13072
|
for (var e2 in d2)
|
13073
13073
|
if (!(e2 in a2))
|
13074
|
-
throw Error(u
|
13074
|
+
throw Error(u(108, pb(b2) || "Unknown", e2));
|
13075
13075
|
return n$1({}, c2, {}, d2);
|
13076
13076
|
}
|
13077
13077
|
function Gf(a2) {
|
@@ -13084,7 +13084,7 @@ function Gf(a2) {
|
|
13084
13084
|
function Hf(a2, b2, c2) {
|
13085
13085
|
var d2 = a2.stateNode;
|
13086
13086
|
if (!d2)
|
13087
|
-
throw Error(u
|
13087
|
+
throw Error(u(169));
|
13088
13088
|
c2 ? (a2 = Ff(a2, b2, Bf), d2.__reactInternalMemoizedMergedChildContext = a2, H$1(K$1), H$1(J$1), I$1(J$1, a2)) : H$1(K$1);
|
13089
13089
|
I$1(K$1, c2);
|
13090
13090
|
}
|
@@ -13105,7 +13105,7 @@ function ag() {
|
|
13105
13105
|
case Sf:
|
13106
13106
|
return 95;
|
13107
13107
|
default:
|
13108
|
-
throw Error(u
|
13108
|
+
throw Error(u(332));
|
13109
13109
|
}
|
13110
13110
|
}
|
13111
13111
|
function bg(a2) {
|
@@ -13121,7 +13121,7 @@ function bg(a2) {
|
|
13121
13121
|
case 95:
|
13122
13122
|
return Sf;
|
13123
13123
|
default:
|
13124
|
-
throw Error(u
|
13124
|
+
throw Error(u(332));
|
13125
13125
|
}
|
13126
13126
|
}
|
13127
13127
|
function cg(a2, b2) {
|
@@ -13213,7 +13213,7 @@ function sg(a2, b2) {
|
|
13213
13213
|
b2 = { context: a2, observedBits: b2, next: null };
|
13214
13214
|
if (lg === null) {
|
13215
13215
|
if (kg === null)
|
13216
|
-
throw Error(u
|
13216
|
+
throw Error(u(308));
|
13217
13217
|
lg = b2;
|
13218
13218
|
kg.dependencies = { expirationTime: 0, firstContext: b2, responders: null };
|
13219
13219
|
} else
|
@@ -13333,7 +13333,7 @@ function Cg(a2, b2, c2) {
|
|
13333
13333
|
d2 = e2;
|
13334
13334
|
e2 = c2;
|
13335
13335
|
if (typeof d2 !== "function")
|
13336
|
-
throw Error(u
|
13336
|
+
throw Error(u(191, d2));
|
13337
13337
|
d2.call(e2);
|
13338
13338
|
}
|
13339
13339
|
}
|
@@ -13422,11 +13422,11 @@ function Pg(a2, b2, c2) {
|
|
13422
13422
|
c2 = c2._owner;
|
13423
13423
|
if (c2) {
|
13424
13424
|
if (c2.tag !== 1)
|
13425
|
-
throw Error(u
|
13425
|
+
throw Error(u(309));
|
13426
13426
|
var d2 = c2.stateNode;
|
13427
13427
|
}
|
13428
13428
|
if (!d2)
|
13429
|
-
throw Error(u
|
13429
|
+
throw Error(u(147, a2));
|
13430
13430
|
var e2 = "" + a2;
|
13431
13431
|
if (b2 !== null && b2.ref !== null && typeof b2.ref === "function" && b2.ref._stringRef === e2)
|
13432
13432
|
return b2.ref;
|
@@ -13439,15 +13439,15 @@ function Pg(a2, b2, c2) {
|
|
13439
13439
|
return b2;
|
13440
13440
|
}
|
13441
13441
|
if (typeof a2 !== "string")
|
13442
|
-
throw Error(u
|
13442
|
+
throw Error(u(284));
|
13443
13443
|
if (!c2._owner)
|
13444
|
-
throw Error(u
|
13444
|
+
throw Error(u(290, a2));
|
13445
13445
|
}
|
13446
13446
|
return a2;
|
13447
13447
|
}
|
13448
13448
|
function Qg(a2, b2) {
|
13449
13449
|
if (a2.type !== "textarea")
|
13450
|
-
throw Error(u
|
13450
|
+
throw Error(u(31, Object.prototype.toString.call(b2) === "[object Object]" ? "object with keys {" + Object.keys(b2).join(", ") + "}" : b2, ""));
|
13451
13451
|
}
|
13452
13452
|
function Rg(a2) {
|
13453
13453
|
function b2(b3, c3) {
|
@@ -13599,10 +13599,10 @@ function Rg(a2) {
|
|
13599
13599
|
function D2(e3, g3, h3, l3) {
|
13600
13600
|
var k3 = nb(h3);
|
13601
13601
|
if (typeof k3 !== "function")
|
13602
|
-
throw Error(u
|
13602
|
+
throw Error(u(150));
|
13603
13603
|
h3 = k3.call(h3);
|
13604
13604
|
if (h3 == null)
|
13605
|
-
throw Error(u
|
13605
|
+
throw Error(u(151));
|
13606
13606
|
for (var m3 = k3 = null, t2 = g3, y2 = g3 = 0, A2 = null, q2 = h3.next(); t2 !== null && !q2.done; y2++, q2 = h3.next()) {
|
13607
13607
|
t2.index > y2 ? (A2 = t2, t2 = null) : A2 = t2.sibling;
|
13608
13608
|
var D3 = x2(e3, t2, q2.value, l3);
|
@@ -13705,7 +13705,7 @@ function Rg(a2) {
|
|
13705
13705
|
switch (a3.tag) {
|
13706
13706
|
case 1:
|
13707
13707
|
case 0:
|
13708
|
-
throw a3 = a3.type, Error(u
|
13708
|
+
throw a3 = a3.type, Error(u(152, a3.displayName || a3.name || "Component"));
|
13709
13709
|
}
|
13710
13710
|
return c2(a3, d3);
|
13711
13711
|
};
|
@@ -13713,7 +13713,7 @@ function Rg(a2) {
|
|
13713
13713
|
var Xg = Rg(true), Yg = Rg(false), Zg = {}, $g = { current: Zg }, ah = { current: Zg }, bh = { current: Zg };
|
13714
13714
|
function ch(a2) {
|
13715
13715
|
if (a2 === Zg)
|
13716
|
-
throw Error(u
|
13716
|
+
throw Error(u(174));
|
13717
13717
|
return a2;
|
13718
13718
|
}
|
13719
13719
|
function dh(a2, b2) {
|
@@ -13778,7 +13778,7 @@ function ih(a2, b2) {
|
|
13778
13778
|
}
|
13779
13779
|
var jh = Wa.ReactCurrentDispatcher, kh = Wa.ReactCurrentBatchConfig, lh = 0, N$1 = null, O$1 = null, P$1 = null, mh = false;
|
13780
13780
|
function Q$1() {
|
13781
|
-
throw Error(u
|
13781
|
+
throw Error(u(321));
|
13782
13782
|
}
|
13783
13783
|
function nh(a2, b2) {
|
13784
13784
|
if (b2 === null)
|
@@ -13801,7 +13801,7 @@ function oh(a2, b2, c2, d2, e2, f2) {
|
|
13801
13801
|
do {
|
13802
13802
|
b2.expirationTime = 0;
|
13803
13803
|
if (!(25 > f2))
|
13804
|
-
throw Error(u
|
13804
|
+
throw Error(u(301));
|
13805
13805
|
f2 += 1;
|
13806
13806
|
P$1 = O$1 = null;
|
13807
13807
|
b2.updateQueue = null;
|
@@ -13815,7 +13815,7 @@ function oh(a2, b2, c2, d2, e2, f2) {
|
|
13815
13815
|
P$1 = O$1 = N$1 = null;
|
13816
13816
|
mh = false;
|
13817
13817
|
if (b2)
|
13818
|
-
throw Error(u
|
13818
|
+
throw Error(u(300));
|
13819
13819
|
return a2;
|
13820
13820
|
}
|
13821
13821
|
function th() {
|
@@ -13834,7 +13834,7 @@ function uh() {
|
|
13834
13834
|
P$1 = b2, O$1 = a2;
|
13835
13835
|
else {
|
13836
13836
|
if (a2 === null)
|
13837
|
-
throw Error(u
|
13837
|
+
throw Error(u(310));
|
13838
13838
|
O$1 = a2;
|
13839
13839
|
a2 = { memoizedState: O$1.memoizedState, baseState: O$1.baseState, baseQueue: O$1.baseQueue, queue: O$1.queue, next: null };
|
13840
13840
|
P$1 === null ? N$1.memoizedState = P$1 = a2 : P$1 = P$1.next = a2;
|
@@ -13847,7 +13847,7 @@ function vh(a2, b2) {
|
|
13847
13847
|
function wh(a2) {
|
13848
13848
|
var b2 = uh(), c2 = b2.queue;
|
13849
13849
|
if (c2 === null)
|
13850
|
-
throw Error(u
|
13850
|
+
throw Error(u(311));
|
13851
13851
|
c2.lastRenderedReducer = a2;
|
13852
13852
|
var d2 = O$1, e2 = d2.baseQueue, f2 = c2.pending;
|
13853
13853
|
if (f2 !== null) {
|
@@ -13885,7 +13885,7 @@ function wh(a2) {
|
|
13885
13885
|
function xh(a2) {
|
13886
13886
|
var b2 = uh(), c2 = b2.queue;
|
13887
13887
|
if (c2 === null)
|
13888
|
-
throw Error(u
|
13888
|
+
throw Error(u(311));
|
13889
13889
|
c2.lastRenderedReducer = a2;
|
13890
13890
|
var d2 = c2.dispatch, e2 = c2.pending, f2 = b2.memoizedState;
|
13891
13891
|
if (e2 !== null) {
|
@@ -14166,7 +14166,7 @@ function Wh(a2) {
|
|
14166
14166
|
a2 = a2.memoizedState;
|
14167
14167
|
a2 = a2 !== null ? a2.dehydrated : null;
|
14168
14168
|
if (!a2)
|
14169
|
-
throw Error(u
|
14169
|
+
throw Error(u(317));
|
14170
14170
|
a: {
|
14171
14171
|
a2 = a2.nextSibling;
|
14172
14172
|
for (b2 = 0; a2; ) {
|
@@ -14446,7 +14446,7 @@ function $h(a2, b2, c2) {
|
|
14446
14446
|
if (b2.childExpirationTime < c2)
|
14447
14447
|
return null;
|
14448
14448
|
if (a2 !== null && b2.child !== a2.child)
|
14449
|
-
throw Error(u
|
14449
|
+
throw Error(u(153));
|
14450
14450
|
if (b2.child !== null) {
|
14451
14451
|
a2 = b2.child;
|
14452
14452
|
c2 = Sg(a2, a2.pendingProps);
|
@@ -14586,7 +14586,7 @@ function si(a2, b2, c2) {
|
|
14586
14586
|
else {
|
14587
14587
|
if (!d2) {
|
14588
14588
|
if (b2.stateNode === null)
|
14589
|
-
throw Error(u
|
14589
|
+
throw Error(u(166));
|
14590
14590
|
return null;
|
14591
14591
|
}
|
14592
14592
|
a2 = ch($g.current);
|
@@ -14764,7 +14764,7 @@ function si(a2, b2, c2) {
|
|
14764
14764
|
qi(a2, b2, a2.memoizedProps, d2);
|
14765
14765
|
else {
|
14766
14766
|
if (typeof d2 !== "string" && b2.stateNode === null)
|
14767
|
-
throw Error(u
|
14767
|
+
throw Error(u(166));
|
14768
14768
|
c2 = ch(bh.current);
|
14769
14769
|
ch($g.current);
|
14770
14770
|
Wh(b2) ? (c2 = b2.stateNode, d2 = b2.memoizedProps, c2[Md] = b2, c2.nodeValue !== d2 && (b2.effectTag |= 4)) : (c2 = (c2.nodeType === 9 ? c2 : c2.ownerDocument).createTextNode(d2), c2[Md] = b2, b2.stateNode = c2);
|
@@ -14835,7 +14835,7 @@ function si(a2, b2, c2) {
|
|
14835
14835
|
}
|
14836
14836
|
return d2.tail !== null ? (d2.tailExpiration === 0 && (d2.tailExpiration = $f() + 500), c2 = d2.tail, d2.rendering = c2, d2.tail = c2.sibling, d2.lastEffect = b2.lastEffect, d2.renderingStartTime = $f(), c2.sibling = null, b2 = M$1.current, I$1(M$1, e2 ? b2 & 1 | 2 : b2 & 1), c2) : null;
|
14837
14837
|
}
|
14838
|
-
throw Error(u
|
14838
|
+
throw Error(u(156, b2.tag));
|
14839
14839
|
}
|
14840
14840
|
function zi(a2) {
|
14841
14841
|
switch (a2.tag) {
|
@@ -14849,7 +14849,7 @@ function zi(a2) {
|
|
14849
14849
|
H$1(J$1);
|
14850
14850
|
b2 = a2.effectTag;
|
14851
14851
|
if ((b2 & 64) !== 0)
|
14852
|
-
throw Error(u
|
14852
|
+
throw Error(u(285));
|
14853
14853
|
a2.effectTag = b2 & -4097 | 64;
|
14854
14854
|
return a2;
|
14855
14855
|
case 5:
|
@@ -14925,7 +14925,7 @@ function Gi(a2, b2) {
|
|
14925
14925
|
case 17:
|
14926
14926
|
return;
|
14927
14927
|
}
|
14928
|
-
throw Error(u
|
14928
|
+
throw Error(u(163));
|
14929
14929
|
}
|
14930
14930
|
function Hi(a2, b2) {
|
14931
14931
|
b2 = b2.updateQueue;
|
@@ -15010,7 +15010,7 @@ function Ji(a2, b2, c2) {
|
|
15010
15010
|
case 21:
|
15011
15011
|
return;
|
15012
15012
|
}
|
15013
|
-
throw Error(u
|
15013
|
+
throw Error(u(163));
|
15014
15014
|
}
|
15015
15015
|
function Ki(a2, b2, c2) {
|
15016
15016
|
typeof Li === "function" && Li(b2);
|
@@ -15079,7 +15079,7 @@ function Pi(a2) {
|
|
15079
15079
|
}
|
15080
15080
|
b2 = b2.return;
|
15081
15081
|
}
|
15082
|
-
throw Error(u
|
15082
|
+
throw Error(u(160));
|
15083
15083
|
}
|
15084
15084
|
b2 = c2.stateNode;
|
15085
15085
|
switch (c2.tag) {
|
@@ -15095,7 +15095,7 @@ function Pi(a2) {
|
|
15095
15095
|
d2 = true;
|
15096
15096
|
break;
|
15097
15097
|
default:
|
15098
|
-
throw Error(u
|
15098
|
+
throw Error(u(161));
|
15099
15099
|
}
|
15100
15100
|
c2.effectTag & 16 && (Rb(b2, ""), c2.effectTag &= -17);
|
15101
15101
|
a:
|
@@ -15147,7 +15147,7 @@ function Mi(a2, b2, c2) {
|
|
15147
15147
|
a:
|
15148
15148
|
for (; ; ) {
|
15149
15149
|
if (e2 === null)
|
15150
|
-
throw Error(u
|
15150
|
+
throw Error(u(160));
|
15151
15151
|
f2 = e2.stateNode;
|
15152
15152
|
switch (e2.tag) {
|
15153
15153
|
case 5:
|
@@ -15250,7 +15250,7 @@ function Si(a2, b2) {
|
|
15250
15250
|
return;
|
15251
15251
|
case 6:
|
15252
15252
|
if (b2.stateNode === null)
|
15253
|
-
throw Error(u
|
15253
|
+
throw Error(u(162));
|
15254
15254
|
b2.stateNode.nodeValue = b2.memoizedProps;
|
15255
15255
|
return;
|
15256
15256
|
case 3:
|
@@ -15297,7 +15297,7 @@ function Si(a2, b2) {
|
|
15297
15297
|
case 17:
|
15298
15298
|
return;
|
15299
15299
|
}
|
15300
|
-
throw Error(u
|
15300
|
+
throw Error(u(163));
|
15301
15301
|
}
|
15302
15302
|
function Ui(a2) {
|
15303
15303
|
var b2 = a2.updateQueue;
|
@@ -15373,14 +15373,14 @@ function Hg(a2, b2, c2) {
|
|
15373
15373
|
a2 = 2;
|
15374
15374
|
break;
|
15375
15375
|
default:
|
15376
|
-
throw Error(u
|
15376
|
+
throw Error(u(326));
|
15377
15377
|
}
|
15378
15378
|
T$1 !== null && a2 === U$1 && --a2;
|
15379
15379
|
return a2;
|
15380
15380
|
}
|
15381
15381
|
function Ig(a2, b2) {
|
15382
15382
|
if (50 < uj)
|
15383
|
-
throw uj = 0, vj = null, Error(u
|
15383
|
+
throw uj = 0, vj = null, Error(u(185));
|
15384
15384
|
a2 = xj(a2, b2);
|
15385
15385
|
if (a2 !== null) {
|
15386
15386
|
var c2 = ag();
|
@@ -15452,7 +15452,7 @@ function Bj(a2, b2) {
|
|
15452
15452
|
if (c2 !== 0) {
|
15453
15453
|
b2 = a2.callbackNode;
|
15454
15454
|
if ((W$1 & (fj | gj)) !== V$1)
|
15455
|
-
throw Error(u
|
15455
|
+
throw Error(u(327));
|
15456
15456
|
Dj();
|
15457
15457
|
a2 === T$1 && c2 === U$1 || Ej(a2, c2);
|
15458
15458
|
if (X$1 !== null) {
|
@@ -15476,7 +15476,7 @@ function Bj(a2, b2) {
|
|
15476
15476
|
switch (e2 = a2.finishedWork = a2.current.alternate, a2.finishedExpirationTime = c2, d2 = S$1, T$1 = null, d2) {
|
15477
15477
|
case ti:
|
15478
15478
|
case hj:
|
15479
|
-
throw Error(u
|
15479
|
+
throw Error(u(345));
|
15480
15480
|
case ij:
|
15481
15481
|
Cj(a2, 2 < c2 ? 2 : c2);
|
15482
15482
|
break;
|
@@ -15543,7 +15543,7 @@ function Bj(a2, b2) {
|
|
15543
15543
|
Jj(a2);
|
15544
15544
|
break;
|
15545
15545
|
default:
|
15546
|
-
throw Error(u
|
15546
|
+
throw Error(u(329));
|
15547
15547
|
}
|
15548
15548
|
Z$1(a2);
|
15549
15549
|
if (a2.callbackNode === b2)
|
@@ -15556,7 +15556,7 @@ function yj(a2) {
|
|
15556
15556
|
var b2 = a2.lastExpiredTime;
|
15557
15557
|
b2 = b2 !== 0 ? b2 : 1073741823;
|
15558
15558
|
if ((W$1 & (fj | gj)) !== V$1)
|
15559
|
-
throw Error(u
|
15559
|
+
throw Error(u(327));
|
15560
15560
|
Dj();
|
15561
15561
|
a2 === T$1 && b2 === U$1 || Ej(a2, b2);
|
15562
15562
|
if (X$1 !== null) {
|
@@ -15577,7 +15577,7 @@ function yj(a2) {
|
|
15577
15577
|
if (S$1 === hj)
|
15578
15578
|
throw c2 = kj, Ej(a2, b2), xi(a2, b2), Z$1(a2), c2;
|
15579
15579
|
if (X$1 !== null)
|
15580
|
-
throw Error(u
|
15580
|
+
throw Error(u(261));
|
15581
15581
|
a2.finishedWork = a2.current.alternate;
|
15582
15582
|
a2.finishedExpirationTime = b2;
|
15583
15583
|
T$1 = null;
|
@@ -15848,14 +15848,14 @@ function Sj(a2, b2) {
|
|
15848
15848
|
Dj();
|
15849
15849
|
while (rj !== null);
|
15850
15850
|
if ((W$1 & (fj | gj)) !== V$1)
|
15851
|
-
throw Error(u
|
15851
|
+
throw Error(u(327));
|
15852
15852
|
var c2 = a2.finishedWork, d2 = a2.finishedExpirationTime;
|
15853
15853
|
if (c2 === null)
|
15854
15854
|
return null;
|
15855
15855
|
a2.finishedWork = null;
|
15856
15856
|
a2.finishedExpirationTime = 0;
|
15857
15857
|
if (c2 === a2.current)
|
15858
|
-
throw Error(u
|
15858
|
+
throw Error(u(177));
|
15859
15859
|
a2.callbackNode = null;
|
15860
15860
|
a2.callbackExpirationTime = 0;
|
15861
15861
|
a2.callbackPriority = 90;
|
@@ -15929,7 +15929,7 @@ function Sj(a2, b2) {
|
|
15929
15929
|
Tj();
|
15930
15930
|
} catch (wb) {
|
15931
15931
|
if (Y$1 === null)
|
15932
|
-
throw Error(u
|
15932
|
+
throw Error(u(330));
|
15933
15933
|
Ei(Y$1, wb);
|
15934
15934
|
Y$1 = Y$1.nextEffect;
|
15935
15935
|
}
|
@@ -15974,7 +15974,7 @@ function Sj(a2, b2) {
|
|
15974
15974
|
}
|
15975
15975
|
} catch (wb) {
|
15976
15976
|
if (Y$1 === null)
|
15977
|
-
throw Error(u
|
15977
|
+
throw Error(u(330));
|
15978
15978
|
Ei(Y$1, wb);
|
15979
15979
|
Y$1 = Y$1.nextEffect;
|
15980
15980
|
}
|
@@ -16024,7 +16024,7 @@ function Sj(a2, b2) {
|
|
16024
16024
|
}
|
16025
16025
|
} catch (wb) {
|
16026
16026
|
if (Y$1 === null)
|
16027
|
-
throw Error(u
|
16027
|
+
throw Error(u(330));
|
16028
16028
|
Ei(Y$1, wb);
|
16029
16029
|
Y$1 = Y$1.nextEffect;
|
16030
16030
|
}
|
@@ -16075,7 +16075,7 @@ function Vj() {
|
|
16075
16075
|
var a2 = rj;
|
16076
16076
|
rj = null;
|
16077
16077
|
if ((W$1 & (fj | gj)) !== V$1)
|
16078
|
-
throw Error(u
|
16078
|
+
throw Error(u(331));
|
16079
16079
|
var b2 = W$1;
|
16080
16080
|
W$1 |= gj;
|
16081
16081
|
for (a2 = a2.current.firstEffect; a2 !== null; ) {
|
@@ -16091,7 +16091,7 @@ function Vj() {
|
|
16091
16091
|
}
|
16092
16092
|
} catch (d2) {
|
16093
16093
|
if (a2 === null)
|
16094
|
-
throw Error(u
|
16094
|
+
throw Error(u(330));
|
16095
16095
|
Ei(a2, d2);
|
16096
16096
|
}
|
16097
16097
|
c2 = a2.nextEffect;
|
@@ -16263,7 +16263,7 @@ Rj = function(a2, b2, c2) {
|
|
16263
16263
|
b2 = ai(null, b2, e2, ig(e2.type, a2), d2, c2);
|
16264
16264
|
break a;
|
16265
16265
|
}
|
16266
|
-
throw Error(u
|
16266
|
+
throw Error(u(306, e2, ""));
|
16267
16267
|
}
|
16268
16268
|
return b2;
|
16269
16269
|
case 0:
|
@@ -16274,7 +16274,7 @@ Rj = function(a2, b2, c2) {
|
|
16274
16274
|
hi(b2);
|
16275
16275
|
d2 = b2.updateQueue;
|
16276
16276
|
if (a2 === null || d2 === null)
|
16277
|
-
throw Error(u
|
16277
|
+
throw Error(u(282));
|
16278
16278
|
d2 = b2.pendingProps;
|
16279
16279
|
e2 = b2.memoizedState;
|
16280
16280
|
e2 = e2 !== null ? e2.element : null;
|
@@ -16377,7 +16377,7 @@ Rj = function(a2, b2, c2) {
|
|
16377
16377
|
case 19:
|
16378
16378
|
return mi(a2, b2, c2);
|
16379
16379
|
}
|
16380
|
-
throw Error(u
|
16380
|
+
throw Error(u(156, b2.tag));
|
16381
16381
|
};
|
16382
16382
|
var Uj = null, Li = null;
|
16383
16383
|
function Yj(a2) {
|
@@ -16506,7 +16506,7 @@ function Ug(a2, b2, c2, d2, e2, f2) {
|
|
16506
16506
|
g2 = 22;
|
16507
16507
|
break a;
|
16508
16508
|
}
|
16509
|
-
throw Error(u
|
16509
|
+
throw Error(u(130, a2 == null ? a2 : typeof a2, ""));
|
16510
16510
|
}
|
16511
16511
|
b2 = Sh(g2, c2, b2, e2);
|
16512
16512
|
b2.elementType = a2;
|
@@ -16575,7 +16575,7 @@ function bk(a2, b2, c2, d2) {
|
|
16575
16575
|
c2 = c2._reactInternalFiber;
|
16576
16576
|
b: {
|
16577
16577
|
if (dc(c2) !== c2 || c2.tag !== 1)
|
16578
|
-
throw Error(u
|
16578
|
+
throw Error(u(170));
|
16579
16579
|
var h2 = c2;
|
16580
16580
|
do {
|
16581
16581
|
switch (h2.tag) {
|
@@ -16590,7 +16590,7 @@ function bk(a2, b2, c2, d2) {
|
|
16590
16590
|
}
|
16591
16591
|
h2 = h2.return;
|
16592
16592
|
} while (h2 !== null);
|
16593
|
-
throw Error(u
|
16593
|
+
throw Error(u(171));
|
16594
16594
|
}
|
16595
16595
|
if (c2.tag === 1) {
|
16596
16596
|
var k2 = c2.type;
|
@@ -16723,7 +16723,7 @@ za = function(a2, b2, c2) {
|
|
16723
16723
|
if (d2 !== a2 && d2.form === a2.form) {
|
16724
16724
|
var e2 = Qd(d2);
|
16725
16725
|
if (!e2)
|
16726
|
-
throw Error(u
|
16726
|
+
throw Error(u(90));
|
16727
16727
|
yb(d2);
|
16728
16728
|
Cb(d2, e2);
|
16729
16729
|
}
|
@@ -16762,7 +16762,7 @@ Ia = function(a2, b2) {
|
|
16762
16762
|
function kk(a2, b2) {
|
16763
16763
|
var c2 = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
16764
16764
|
if (!gk(b2))
|
16765
|
-
throw Error(u
|
16765
|
+
throw Error(u(200));
|
16766
16766
|
return jk(a2, b2, null, c2);
|
16767
16767
|
}
|
16768
16768
|
var lk = { Events: [Nc, Pd, Qd, xa, ta, Xd, function(a2) {
|
@@ -16792,8 +16792,8 @@ reactDom_production_min.findDOMNode = function(a2) {
|
|
16792
16792
|
var b2 = a2._reactInternalFiber;
|
16793
16793
|
if (b2 === void 0) {
|
16794
16794
|
if (typeof a2.render === "function")
|
16795
|
-
throw Error(u
|
16796
|
-
throw Error(u
|
16795
|
+
throw Error(u(188));
|
16796
|
+
throw Error(u(268, Object.keys(a2)));
|
16797
16797
|
}
|
16798
16798
|
a2 = hc(b2);
|
16799
16799
|
a2 = a2 === null ? null : a2.stateNode;
|
@@ -16801,7 +16801,7 @@ reactDom_production_min.findDOMNode = function(a2) {
|
|
16801
16801
|
};
|
16802
16802
|
reactDom_production_min.flushSync = function(a2, b2) {
|
16803
16803
|
if ((W$1 & (fj | gj)) !== V$1)
|
16804
|
-
throw Error(u
|
16804
|
+
throw Error(u(187));
|
16805
16805
|
var c2 = W$1;
|
16806
16806
|
W$1 |= 1;
|
16807
16807
|
try {
|
@@ -16812,17 +16812,17 @@ reactDom_production_min.flushSync = function(a2, b2) {
|
|
16812
16812
|
};
|
16813
16813
|
reactDom_production_min.hydrate = function(a2, b2, c2) {
|
16814
16814
|
if (!gk(b2))
|
16815
|
-
throw Error(u
|
16815
|
+
throw Error(u(200));
|
16816
16816
|
return ik(null, a2, b2, true, c2);
|
16817
16817
|
};
|
16818
16818
|
reactDom_production_min.render = function(a2, b2, c2) {
|
16819
16819
|
if (!gk(b2))
|
16820
|
-
throw Error(u
|
16820
|
+
throw Error(u(200));
|
16821
16821
|
return ik(null, a2, b2, false, c2);
|
16822
16822
|
};
|
16823
16823
|
reactDom_production_min.unmountComponentAtNode = function(a2) {
|
16824
16824
|
if (!gk(a2))
|
16825
|
-
throw Error(u
|
16825
|
+
throw Error(u(40));
|
16826
16826
|
return a2._reactRootContainer ? (Nj(function() {
|
16827
16827
|
ik(null, null, a2, false, function() {
|
16828
16828
|
a2._reactRootContainer = null;
|
@@ -16836,9 +16836,9 @@ reactDom_production_min.unstable_createPortal = function(a2, b2) {
|
|
16836
16836
|
};
|
16837
16837
|
reactDom_production_min.unstable_renderSubtreeIntoContainer = function(a2, b2, c2, d2) {
|
16838
16838
|
if (!gk(c2))
|
16839
|
-
throw Error(u
|
16839
|
+
throw Error(u(200));
|
16840
16840
|
if (a2 == null || a2._reactInternalFiber === void 0)
|
16841
|
-
throw Error(u
|
16841
|
+
throw Error(u(38));
|
16842
16842
|
return ik(a2, b2, c2, false, d2);
|
16843
16843
|
};
|
16844
16844
|
reactDom_production_min.version = "16.14.0";
|
@@ -16856,7 +16856,7 @@ function checkDCE() {
|
|
16856
16856
|
checkDCE();
|
16857
16857
|
reactDom.exports = reactDom_production_min;
|
16858
16858
|
}
|
16859
|
-
var
|
16859
|
+
var d = reactDom.exports;
|
16860
16860
|
var e = Object.defineProperty, t = Object.defineProperties, i = Object.getOwnPropertyDescriptors, s = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable, n = (t2, i2, s2) => i2 in t2 ? e(t2, i2, { enumerable: true, configurable: true, writable: true, value: s2 }) : t2[i2] = s2, a = (e2, t2) => {
|
16861
16861
|
for (var i2 in t2 || (t2 = {}))
|
16862
16862
|
r.call(t2, i2) && n(e2, i2, t2[i2]);
|
@@ -16881,13 +16881,13 @@ function f(e2, t2) {
|
|
16881
16881
|
}(t2);
|
16882
16882
|
return i2 ? e2.currentTime + (i2 - e2.hostTime) / 1e3 : e2.currentTime;
|
16883
16883
|
}
|
16884
|
-
const
|
16885
|
-
var I = typeof global == "object" && global && global.Object === Object && global, S = typeof self == "object" && self && self.Object === Object && self, T = I || S || Function("return this")(), C = T.Symbol,
|
16884
|
+
const y = navigator.userAgent.includes("Safari"), A = navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPad"), b = [".aac", ".mid", ".midi", ".mp3", ".ogg", ".oga", ".wav", ".weba"];
|
16885
|
+
var I = typeof global == "object" && global && global.Object === Object && global, S = typeof self == "object" && self && self.Object === Object && self, T = I || S || Function("return this")(), C = T.Symbol, E = Object.prototype, k = E.hasOwnProperty, P = E.toString, j = C ? C.toStringTag : void 0;
|
16886
16886
|
var B = Object.prototype.toString;
|
16887
16887
|
var w = C ? C.toStringTag : void 0;
|
16888
16888
|
function x(e2) {
|
16889
16889
|
return e2 == null ? e2 === void 0 ? "[object Undefined]" : "[object Null]" : w && w in Object(e2) ? function(e3) {
|
16890
|
-
var t2 =
|
16890
|
+
var t2 = k.call(e3, j), i2 = e3[j];
|
16891
16891
|
try {
|
16892
16892
|
e3[j] = void 0;
|
16893
16893
|
var s2 = true;
|
@@ -16936,7 +16936,7 @@ var D = function() {
|
|
16936
16936
|
return T.Date.now();
|
16937
16937
|
}, Z = Math.max, R = Math.min;
|
16938
16938
|
function U(e2, t2, i2) {
|
16939
|
-
var s2, r2, o2, n2, a2, l2, c2 = 0,
|
16939
|
+
var s2, r2, o2, n2, a2, l2, c2 = 0, d2 = false, u2 = false, p2 = true;
|
16940
16940
|
if (typeof e2 != "function")
|
16941
16941
|
throw new TypeError("Expected a function");
|
16942
16942
|
function h2(t3) {
|
@@ -16944,11 +16944,11 @@ function U(e2, t2, i2) {
|
|
16944
16944
|
return s2 = r2 = void 0, c2 = t3, n2 = e2.apply(o3, i3);
|
16945
16945
|
}
|
16946
16946
|
function m2(e3) {
|
16947
|
-
return c2 = e3, a2 = setTimeout(v2, t2),
|
16947
|
+
return c2 = e3, a2 = setTimeout(v2, t2), d2 ? h2(e3) : n2;
|
16948
16948
|
}
|
16949
16949
|
function g2(e3) {
|
16950
16950
|
var i3 = e3 - l2;
|
16951
|
-
return l2 === void 0 || i3 >= t2 || i3 < 0 ||
|
16951
|
+
return l2 === void 0 || i3 >= t2 || i3 < 0 || u2 && e3 - c2 >= o2;
|
16952
16952
|
}
|
16953
16953
|
function v2() {
|
16954
16954
|
var e3 = D();
|
@@ -16956,27 +16956,27 @@ function U(e2, t2, i2) {
|
|
16956
16956
|
return f2(e3);
|
16957
16957
|
a2 = setTimeout(v2, function(e4) {
|
16958
16958
|
var i3 = t2 - (e4 - l2);
|
16959
|
-
return
|
16959
|
+
return u2 ? R(i3, o2 - (e4 - c2)) : i3;
|
16960
16960
|
}(e3));
|
16961
16961
|
}
|
16962
16962
|
function f2(e3) {
|
16963
16963
|
return a2 = void 0, p2 && s2 ? h2(e3) : (s2 = r2 = void 0, n2);
|
16964
16964
|
}
|
16965
|
-
function
|
16965
|
+
function y2() {
|
16966
16966
|
var e3 = D(), i3 = g2(e3);
|
16967
16967
|
if (s2 = arguments, r2 = this, l2 = e3, i3) {
|
16968
16968
|
if (a2 === void 0)
|
16969
16969
|
return m2(l2);
|
16970
|
-
if (
|
16970
|
+
if (u2)
|
16971
16971
|
return clearTimeout(a2), a2 = setTimeout(v2, t2), h2(l2);
|
16972
16972
|
}
|
16973
16973
|
return a2 === void 0 && (a2 = setTimeout(v2, t2)), n2;
|
16974
16974
|
}
|
16975
|
-
return t2 = z(t2) || 0, L(i2) && (
|
16975
|
+
return t2 = z(t2) || 0, L(i2) && (d2 = !!i2.leading, o2 = (u2 = "maxWait" in i2) ? Z(z(i2.maxWait) || 0, t2) : o2, p2 = "trailing" in i2 ? !!i2.trailing : p2), y2.cancel = function() {
|
16976
16976
|
a2 !== void 0 && clearTimeout(a2), c2 = 0, s2 = l2 = r2 = a2 = void 0;
|
16977
|
-
},
|
16977
|
+
}, y2.flush = function() {
|
16978
16978
|
return a2 === void 0 ? n2 : f2(D());
|
16979
|
-
},
|
16979
|
+
}, y2;
|
16980
16980
|
}
|
16981
16981
|
class F extends react.exports.Component {
|
16982
16982
|
constructor(e2) {
|
@@ -17179,13 +17179,13 @@ function ee(e2, t2, i2) {
|
|
17179
17179
|
function c2(t3, i5) {
|
17180
17180
|
e2.setEffectPosition(i5, 1e3 * t3), r3.previousBeginSeekTime = Date.now() / 1e3, r3.previousSeekTargetTime = t3;
|
17181
17181
|
}
|
17182
|
-
const
|
17182
|
+
const d2 = r3.previousBeginSeekTime;
|
17183
17183
|
if (i4 > 0) {
|
17184
17184
|
const e3 = a2 - o3, t3 = Math.abs(e3), i5 = 0.5;
|
17185
17185
|
if (t3 > i5)
|
17186
17186
|
if (l2) {
|
17187
|
-
const t4 = r3.previousSeekTargetTime - o3, i6 = Date.now() / 1e3 -
|
17188
|
-
c2(l3, n2), _(">>> Start seeking after seeking lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, lastSeekingCost: i6, estimatedRTCLag: s3, targetRTCSeekTime: l3, previousBeginSeekTime:
|
17187
|
+
const t4 = r3.previousSeekTargetTime - o3, i6 = Date.now() / 1e3 - d2, s3 = i6 + (e3 > 0 ? e3 : 0), l3 = a2 + s3;
|
17188
|
+
c2(l3, n2), _(">>> Start seeking after seeking lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, lastSeekingCost: i6, estimatedRTCLag: s3, targetRTCSeekTime: l3, previousBeginSeekTime: d2, timeElapse: t4 });
|
17189
17189
|
} else if (t3 > 10)
|
17190
17190
|
c2(a2, n2), _(">>> DirectSeek", { time: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3 });
|
17191
17191
|
else {
|
@@ -17193,7 +17193,7 @@ function ee(e2, t2, i2) {
|
|
17193
17193
|
r3.previousVideoJSAdvance = i6, c2(s3, n2), _(">>> Start seeking with lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousAdvance: t4, estimatedRTCLag: i6, targetRTCSeekTime: s3 });
|
17194
17194
|
}
|
17195
17195
|
else
|
17196
|
-
l2 && (_(">>> SeekingFinish no lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousBeginSeekTime:
|
17196
|
+
l2 && (_(">>> SeekingFinish no lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousBeginSeekTime: d2, rtcLagTolerance: i5 }), r3.previousBeginSeekTime = 0, r3.previousSeekTargetTime = 0);
|
17197
17197
|
}
|
17198
17198
|
});
|
17199
17199
|
}), t2.on("dispose", () => {
|
@@ -17250,7 +17250,7 @@ class ie extends react.exports.Component {
|
|
17250
17250
|
if (this.state.NoSound && (r2 *= 3), s2 > i2.duration())
|
17251
17251
|
this.resetPlayer();
|
17252
17252
|
else if (Math.abs(i2.currentTime() - s2) > r2) {
|
17253
|
-
if (this.debug("<<< currentTime -> %o", s2),
|
17253
|
+
if (this.debug("<<< currentTime -> %o", s2), A)
|
17254
17254
|
return void (this.everPlayed ? i2.currentTime(s2) : this.debug("<<< ignore iOS idle time update. -> %o (ignored)", s2));
|
17255
17255
|
i2.currentTime(s2);
|
17256
17256
|
}
|
@@ -17263,7 +17263,7 @@ class ie extends react.exports.Component {
|
|
17263
17263
|
}, this.catchPlayFail = (e3) => {
|
17264
17264
|
var t2, i2;
|
17265
17265
|
const s2 = String(e3);
|
17266
|
-
if (
|
17266
|
+
if (y && s2.includes("NotAllowedError") || s2.includes("interact"))
|
17267
17267
|
(t2 = this.player) == null || t2.autoplay("any"), this.setState({ NoSound: true });
|
17268
17268
|
else {
|
17269
17269
|
const t3 = (i2 = this.player) == null ? void 0 : i2.error();
|
@@ -17282,7 +17282,7 @@ class ie extends react.exports.Component {
|
|
17282
17282
|
o2.className = "video-js", o2.crossOrigin = "anonymous", s2 && (o2.poster = s2), o2.setAttribute("playsInline", ""), o2.setAttribute("webkit-playsinline", "");
|
17283
17283
|
const n2 = document.createElement("source");
|
17284
17284
|
new URL(i2).pathname.endsWith(".m3u8") ? n2.type = "application/x-mpegURL" : o2.src = i2, n2.src = i2, t2 && (n2.type = t2), o2.appendChild(n2), r2.appendChild(o2), this.container.current.appendChild(r2), await new Promise((e4) => (window.requestAnimationFrame || window.setTimeout)(e4)), this.debug("initializing videojs() ...");
|
17285
|
-
const a2 =
|
17285
|
+
const a2 = u$3(o2);
|
17286
17286
|
this.player = a2, window.player = a2, a2.one("loadedmetadata", this.gracefullyUpdate);
|
17287
17287
|
const l2 = window.__mediaPlayerAudioEffectClient;
|
17288
17288
|
l2 !== void 0 && ee(l2, a2, i2);
|
@@ -17335,7 +17335,7 @@ class ie extends react.exports.Component {
|
|
17335
17335
|
g.verbose && g.log(`[MediaPlayer] ${e2}`, ...t2);
|
17336
17336
|
}
|
17337
17337
|
componentDidMount() {
|
17338
|
-
this.debug("app version =", "0.1.0-alpha.5"), this.debug("video.js version =",
|
17338
|
+
this.debug("app version =", "0.1.0-alpha.5"), this.debug("video.js version =", u$3.VERSION), this.initPlayer(), this.props.context.emitter.on("attributesUpdate", this.syncPlayerWithAttributes), this.syncPlayerTimer = setInterval(this.syncPlayerWithAttributes, g.syncInterval), this.decreaseRetryTimer = setInterval(this.decreaseRetryCount, g.retryInterval);
|
17339
17339
|
}
|
17340
17340
|
componentWillUnmount() {
|
17341
17341
|
var e2;
|
@@ -17353,9 +17353,16 @@ const se = { kind: "MediaPlayer", setup(e2) {
|
|
17353
17353
|
const i2 = e2.getBox();
|
17354
17354
|
i2.mountStyles('.vjs-p{display:flex;flex-grow:1}.vjs-p *{pointer-events:auto}.vjs-p.disabled *{pointer-events:none}.vjs-p .video-js-plugin-poster{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/png;base64,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);background-repeat:repeat-x;background-position:0 50%;display:flex;align-items:center;justify-content:center}.vjs-p .video-js-plugin-poster img{box-shadow:0 0 5px 10px #0006}.vjs-p .player-controller,.vjs-p .videojs-plugin-muted-alert{pointer-events:auto}.vjs-p.disabled .videojs-plugin-close-icon,.vjs-p.disabled .player-controller{pointer-events:none}.vjs-p .video-js-plugin-player{position:absolute;top:0;left:0;right:0;bottom:0}.video-js,[data-vjs-player]{width:100%;height:100%}.vjs-p .videojs-plugin-muted-alert{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:43}.vjs-p .videojs-plugin-muted-alert:before{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:43;content:"\\f104";background:rgba(0,0,0,.3);font-family:VideoJS;font-size:2em;display:flex;align-items:center;justify-content:center;color:#fff}.vjs-p .videojs-plugin-recovery-mode{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:44}.vjs-p .videojs-plugin-recovery-mode button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vjs-p .seek-slider{position:relative;width:100%}.vjs-p .seek-slider:focus{outline:none}.vjs-p .seek-slider .track{padding:10px 0;cursor:pointer;outline:none}.vjs-p .seek-slider .track:focus{border:0;outline:none}.vjs-p .seek-slider .track .main{width:100%;height:3px;background-color:#ffffff4d;border-radius:30px;position:absolute;left:0;top:8.5px;transition:transform .4s;outline:none}.vjs-p .seek-slider .track .main:focus{border:0;outline:none}.vjs-p .seek-slider .track .main .buffered{position:absolute;background-color:#ffffff4d;width:100%;height:100%;transform:scaleX(.8);z-index:2;transform-origin:0 0}.vjs-p .seek-slider .track .main .seek-hover{position:absolute;background-color:#ffffff80;width:100%;height:100%;z-index:1;transform:scaleX(.6);transform-origin:0 0;opacity:0;transition:opacity .4s}.vjs-p .seek-slider .track .main .connect{position:absolute;background-color:#fff;width:100%;height:100%;z-index:3;left:0;transform:scaleX(.13);transform-origin:0 0}.vjs-p .seek-slider .track.active .main{transform:scaleY(2)}.vjs-p .seek-slider .thumb{pointer-events:none;position:absolute;width:12px;height:12px;left:-6px;top:4px;z-index:4;transform:translate(100px)}.vjs-p .seek-slider .thumb .handler{border-radius:100%;width:100%;height:100%;background-color:#fff;opacity:0;transform:scale(.4);cursor:pointer;transition:transform .2s;pointer-events:none}.vjs-p .seek-slider .thumb.active .handler{opacity:1;transform:scale(1)}.vjs-p .seek-slider .hover-time{position:absolute;background-color:#0000004d;line-height:18px;font-size:16px;color:#ddd;top:-25px;left:0;padding:5px 10px;border-radius:5px;box-shadow:0 0 5px #0000004d;opacity:0;transform:translate(150px);pointer-events:none}.vjs-p .seek-slider .hover-time.active{opacity:1}.vjs-p .seek-slider:hover .track .main .seek-hover{opacity:1}.vjs-p .player-controller{position:absolute;z-index:100;bottom:0px;left:0;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:stretch;height:64px;background-image:linear-gradient(0deg,#000,transparent);transition:opacity .2s;color:#fff}.vjs-p .player-menu-box{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:40px}.vjs-p .player-menu-cell{width:100%;text-align:center;font-size:12px;color:#7a7b7c}.vjs-p .player-multiple-play{width:64px;height:120px}.vjs-p .player-controller-actions-left{display:flex;justify-content:center;align-items:center;flex-shrink:0}.vjs-p .player-right-box{font-size:14px;color:#7a7b7c;cursor:pointer;margin-right:12px}.vjs-p .player-controller-actions{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:8px;padding-right:8px;margin-top:2px}.vjs-p .player-mid-box-time{font-size:9px;display:flex;justify-content:center;align-items:center;color:#fff;flex-shrink:0;margin-right:8px;font-family:monospace}.vjs-p .player-controller-play{display:flex;align-items:center;justify-content:center;cursor:pointer;padding-right:4px}.vjs-p .player-controller-progress{width:calc(100% - 28px);margin-left:14px;display:flex;align-items:center;justify-content:center;margin-top:8px}.vjs-p .player-volume{display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:16px;margin-left:8px}.vjs-p .player-volume-slider{width:60px;margin-right:12px;display:flex;align-items:center}.vjs-p .player-volume-box{display:flex;flex-direction:row}.netless-app-media-player-container{display:flex;position:relative;height:100%}\n');
|
17355
17355
|
const s2 = document.createElement("div");
|
17356
|
-
s2.classList.add("netless-app-media-player-container"),
|
17357
|
-
console.log("[MediaPlayer]: destroy"),
|
17358
|
-
})
|
17356
|
+
if (s2.classList.add("netless-app-media-player-container"), d.render(l.createElement(te, { context: e2 }), s2), i2.mountContent(s2), e2.emitter.on("destroy", () => {
|
17357
|
+
console.log("[MediaPlayer]: destroy"), d.unmountComponentAtNode(s2);
|
17358
|
+
}), window.__pcmProxy) {
|
17359
|
+
const t3 = () => {
|
17360
|
+
document.visibilityState === "hidden" ? (console.log("[MediaPlayer]: visibilitychange -> hidden. unmount for pcmproxy"), d.unmountComponentAtNode(s2)) : (console.log("[MediaPlayer]: visibilitychange -> visible. mount for pcmproxy"), d.render(l.createElement(te, { context: e2 }), s2));
|
17361
|
+
};
|
17362
|
+
document.addEventListener("visibilitychange", t3), e2.emitter.on("destroy", () => {
|
17363
|
+
document.removeEventListener("visibilitychange", t3);
|
17364
|
+
});
|
17365
|
+
}
|
17359
17366
|
} };
|
17360
17367
|
const setupBuiltin = () => {
|
17361
17368
|
if (WindowManager.debug) {
|
@@ -17892,15 +17899,15 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
17892
17899
|
const _WindowManager = class extends InvisiblePlugin {
|
17893
17900
|
constructor(context) {
|
17894
17901
|
super(context);
|
17895
|
-
this.version = "1.0.
|
17896
|
-
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.52" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.18", "@netless/app-media-player": "0.1.
|
17902
|
+
this.version = "1.0.2";
|
17903
|
+
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.52" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.18", "@netless/app-media-player": "0.1.4", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.22", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.1", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "jspdf": "^2.5.1", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "side-effect-manager": "0.1.5", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.9.9", "vitest": "^0.14.1", "white-web-sdk": "2.16.52" } };
|
17897
17904
|
this.emitter = callbacks$1;
|
17898
17905
|
this.viewMode = ViewMode.Broadcaster;
|
17899
17906
|
this.isReplay = isPlayer(this.displayer);
|
17900
17907
|
this._cursorUIDs = [];
|
17901
17908
|
this.containerSizeRatio = _WindowManager.containerSizeRatio;
|
17902
17909
|
_WindowManager.displayer = context.displayer;
|
17903
|
-
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.52" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.18", "@netless/app-media-player": "0.1.
|
17910
|
+
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.52" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.18", "@netless/app-media-player": "0.1.4", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.22", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.1", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "jspdf": "^2.5.1", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "side-effect-manager": "0.1.5", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.9.9", "vitest": "^0.14.1", "white-web-sdk": "2.16.52" } };
|
17904
17911
|
}
|
17905
17912
|
static onCreate(manager) {
|
17906
17913
|
_WindowManager._resolve(manager);
|