@realsee/live 0.6.1 → 0.6.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.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +82 -104
- package/dist/index.es.js.map +1 -1
- package/docs/classes/BrowserRTC4Chime.html +8 -8
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -256,33 +256,27 @@ class rt extends De {
|
|
|
256
256
|
o(this, "initObservers", () => {
|
|
257
257
|
this.deviceChangeObserver = {
|
|
258
258
|
audioInputsChanged: (e) => {
|
|
259
|
-
e == null || e.forEach((n) => {
|
|
260
|
-
this.logger.info(
|
|
261
|
-
`Device ID: ${n.deviceId} Microphone: ${n.label}`
|
|
262
|
-
);
|
|
259
|
+
this.logger.info(`audioInputsChanged ${typeof e}`), e == null || e.forEach((n) => {
|
|
260
|
+
this.logger.info(`Device ID: ${n.deviceId} Microphone: ${n.label}`);
|
|
263
261
|
});
|
|
264
262
|
},
|
|
265
263
|
audioOutputsChanged: (e) => {
|
|
266
|
-
this.logger.info(
|
|
267
|
-
`
|
|
268
|
-
);
|
|
269
|
-
},
|
|
270
|
-
videoInputsChanged: (e) => {
|
|
271
|
-
this.logger.info(`Video inputs updated: ${e}`);
|
|
264
|
+
this.logger.info(`audioOutputsChanged ${typeof e}`), e == null || e.forEach((n) => {
|
|
265
|
+
this.logger.info(`Device ID: ${n.deviceId} Speaker: ${n.label}`);
|
|
266
|
+
});
|
|
272
267
|
},
|
|
268
|
+
// videoInputsChanged: (freshVideoInputDeviceList: any) => {
|
|
269
|
+
// this.logger.info(`Video inputs updated: ${freshVideoInputDeviceList}`);
|
|
270
|
+
// },
|
|
273
271
|
audioInputMuteStateChanged: (e, n) => {
|
|
274
|
-
this.logger.info(
|
|
275
|
-
`Device ${e.toString()} ${n ? "is muted in hardware" : "is not muted"}`
|
|
276
|
-
);
|
|
272
|
+
this.logger.info(`Device ${e.toString()} ${n ? "is muted in hardware" : "is not muted"}`);
|
|
277
273
|
}
|
|
278
274
|
}, this.audioVideoObserver = {
|
|
279
275
|
audioVideoDidStart: () => {
|
|
280
276
|
this.logger.info("Started");
|
|
281
277
|
},
|
|
282
278
|
audioVideoDidStop: (e) => {
|
|
283
|
-
this.logger.info(
|
|
284
|
-
`Stopped with a session status code: ${e.statusCode()}`
|
|
285
|
-
);
|
|
279
|
+
this.logger.info(`Stopped with a session status code: ${e.statusCode()}`);
|
|
286
280
|
},
|
|
287
281
|
audioVideoDidStartConnecting: (e) => {
|
|
288
282
|
e && this.logger.info("Attempting to reconnect");
|
|
@@ -329,15 +323,10 @@ class rt extends De {
|
|
|
329
323
|
(p, w, m, N) => {
|
|
330
324
|
new et(p).base() === p && N !== null && N !== 1 && this.emit("weakNetwork");
|
|
331
325
|
}
|
|
332
|
-
), (_ = this.meetingSession) == null || _.audioVideo.realtimeSubscribeToFatalError(
|
|
333
|
-
(p) => this.emit("error", p)
|
|
334
|
-
);
|
|
326
|
+
), (_ = this.meetingSession) == null || _.audioVideo.realtimeSubscribeToFatalError((p) => this.emit("error", p));
|
|
335
327
|
}
|
|
336
328
|
});
|
|
337
|
-
this._getVoiceSign = e.getVoiceSign, this._initDom(), this.logger = new Mt(
|
|
338
|
-
"WebRTCLogger",
|
|
339
|
-
e.logLevel || $t.INFO
|
|
340
|
-
), this.deviceController = new xt(this.logger), this.initObservers();
|
|
329
|
+
this._getVoiceSign = e.getVoiceSign, this._initDom(), this.logger = new Mt("WebRTCLogger", e.logLevel || $t.INFO), this.deviceController = new xt(this.logger), this.initObservers();
|
|
341
330
|
}
|
|
342
331
|
/**
|
|
343
332
|
* 加入语音会议
|
|
@@ -354,10 +343,7 @@ class rt extends De {
|
|
|
354
343
|
roomId: e.roomId || 0
|
|
355
344
|
});
|
|
356
345
|
this.userId = _;
|
|
357
|
-
const {
|
|
358
|
-
attendence: p,
|
|
359
|
-
vendor_wrapper: w
|
|
360
|
-
} = JSON.parse(
|
|
346
|
+
const { attendence: p, vendor_wrapper: w } = JSON.parse(
|
|
361
347
|
decodeURIComponent(v)
|
|
362
348
|
), m = new Ut(
|
|
363
349
|
{
|
|
@@ -371,13 +357,7 @@ class rt extends De {
|
|
|
371
357
|
}
|
|
372
358
|
}
|
|
373
359
|
);
|
|
374
|
-
this.meetingSession = new Bt(
|
|
375
|
-
m,
|
|
376
|
-
this.logger,
|
|
377
|
-
this.deviceController
|
|
378
|
-
), this._registerRtcEvent(), this.meetingSession.audioVideo.addDeviceChangeObserver(
|
|
379
|
-
this.deviceChangeObserver
|
|
380
|
-
), this.meetingSession.audioVideo.addObserver(this.audioVideoObserver), this.meetingSession.audioVideo.bindAudioElement(this.$audio);
|
|
360
|
+
this.meetingSession = new Bt(m, this.logger, this.deviceController), this._registerRtcEvent(), this.meetingSession.audioVideo.addDeviceChangeObserver(this.deviceChangeObserver), this.meetingSession.audioVideo.addObserver(this.audioVideoObserver), this.meetingSession.audioVideo.bindAudioElement(this.$audio);
|
|
381
361
|
const N = {
|
|
382
362
|
audioVideoDidStart: () => {
|
|
383
363
|
var I;
|
|
@@ -405,9 +385,7 @@ class rt extends De {
|
|
|
405
385
|
audioVideoDidStop: async (f) => {
|
|
406
386
|
var g;
|
|
407
387
|
const _ = f.statusCode();
|
|
408
|
-
(g = this.meetingSession) == null || g.deviceController.destroy(), _ === Wt.Left ? (this.logger.info("You left the session"), e(!0)) : (this.logger.info(
|
|
409
|
-
`Stopped with a session status code: ${_}`
|
|
410
|
-
), e(!0));
|
|
388
|
+
(g = this.meetingSession) == null || g.deviceController.destroy(), _ === Wt.Left ? (this.logger.info("You left the session"), e(!0)) : (this.logger.info(`Stopped with a session status code: ${_}`), e(!0));
|
|
411
389
|
}
|
|
412
390
|
};
|
|
413
391
|
(a = this.meetingSession) == null || a.audioVideo.addObserver(i), (u = this.meetingSession) == null || u.audioVideo.stop();
|
|
@@ -1562,7 +1540,7 @@ var Ne = {};
|
|
|
1562
1540
|
* LICENSE file in the root directory of this source tree.
|
|
1563
1541
|
*/
|
|
1564
1542
|
var ct;
|
|
1565
|
-
function
|
|
1543
|
+
function yr() {
|
|
1566
1544
|
return ct || (ct = 1, function(t) {
|
|
1567
1545
|
process.env.NODE_ENV !== "production" && function() {
|
|
1568
1546
|
var s = V, e = dt(), n = 60103, i = 60106;
|
|
@@ -1580,7 +1558,7 @@ function Cr() {
|
|
|
1580
1558
|
return typeof c == "function" ? c : null;
|
|
1581
1559
|
}
|
|
1582
1560
|
var b = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1583
|
-
function
|
|
1561
|
+
function y(r) {
|
|
1584
1562
|
{
|
|
1585
1563
|
for (var c = arguments.length, l = new Array(c > 1 ? c - 1 : 0), h = 1; h < c; h++)
|
|
1586
1564
|
l[h - 1] = arguments[h];
|
|
@@ -1591,8 +1569,8 @@ function Cr() {
|
|
|
1591
1569
|
{
|
|
1592
1570
|
var h = b.ReactDebugCurrentFrame, O = h.getStackAddendum();
|
|
1593
1571
|
O !== "" && (c += "%s", l = l.concat([O]));
|
|
1594
|
-
var R = l.map(function(
|
|
1595
|
-
return "" +
|
|
1572
|
+
var R = l.map(function(C) {
|
|
1573
|
+
return "" + C;
|
|
1596
1574
|
});
|
|
1597
1575
|
R.unshift("Warning: " + c), Function.prototype.apply.call(console[r], console, R);
|
|
1598
1576
|
}
|
|
@@ -1611,7 +1589,7 @@ function Cr() {
|
|
|
1611
1589
|
function F(r) {
|
|
1612
1590
|
if (r == null)
|
|
1613
1591
|
return null;
|
|
1614
|
-
if (typeof r.tag == "number" &&
|
|
1592
|
+
if (typeof r.tag == "number" && y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
1615
1593
|
return r.displayName || r.name || null;
|
|
1616
1594
|
if (typeof r == "string")
|
|
1617
1595
|
return r;
|
|
@@ -1647,7 +1625,7 @@ function Cr() {
|
|
|
1647
1625
|
var h = r, O = h._payload, R = h._init;
|
|
1648
1626
|
try {
|
|
1649
1627
|
return F(R(O));
|
|
1650
|
-
} catch (
|
|
1628
|
+
} catch (C) {
|
|
1651
1629
|
return null;
|
|
1652
1630
|
}
|
|
1653
1631
|
}
|
|
@@ -1713,21 +1691,21 @@ function Cr() {
|
|
|
1713
1691
|
})
|
|
1714
1692
|
});
|
|
1715
1693
|
}
|
|
1716
|
-
ee < 0 &&
|
|
1694
|
+
ee < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1717
1695
|
}
|
|
1718
1696
|
}
|
|
1719
|
-
var
|
|
1697
|
+
var ye = b.ReactCurrentDispatcher, Ce;
|
|
1720
1698
|
function fe(r, c, l) {
|
|
1721
1699
|
{
|
|
1722
|
-
if (
|
|
1700
|
+
if (Ce === void 0)
|
|
1723
1701
|
try {
|
|
1724
1702
|
throw Error();
|
|
1725
1703
|
} catch (O) {
|
|
1726
1704
|
var h = O.stack.trim().match(/\n( *(at )?)/);
|
|
1727
|
-
|
|
1705
|
+
Ce = h && h[1] || "";
|
|
1728
1706
|
}
|
|
1729
1707
|
return `
|
|
1730
|
-
` +
|
|
1708
|
+
` + Ce + r;
|
|
1731
1709
|
}
|
|
1732
1710
|
}
|
|
1733
1711
|
var we = !1, de;
|
|
@@ -1748,30 +1726,30 @@ function Cr() {
|
|
|
1748
1726
|
var O = Error.prepareStackTrace;
|
|
1749
1727
|
Error.prepareStackTrace = void 0;
|
|
1750
1728
|
var R;
|
|
1751
|
-
R =
|
|
1729
|
+
R = ye.current, ye.current = null, ht();
|
|
1752
1730
|
try {
|
|
1753
1731
|
if (c) {
|
|
1754
|
-
var
|
|
1732
|
+
var C = function() {
|
|
1755
1733
|
throw Error();
|
|
1756
1734
|
};
|
|
1757
|
-
if (Object.defineProperty(
|
|
1735
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
1758
1736
|
set: function() {
|
|
1759
1737
|
throw Error();
|
|
1760
1738
|
}
|
|
1761
1739
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1762
1740
|
try {
|
|
1763
|
-
Reflect.construct(
|
|
1741
|
+
Reflect.construct(C, []);
|
|
1764
1742
|
} catch (H) {
|
|
1765
1743
|
h = H;
|
|
1766
1744
|
}
|
|
1767
|
-
Reflect.construct(r, [],
|
|
1745
|
+
Reflect.construct(r, [], C);
|
|
1768
1746
|
} else {
|
|
1769
1747
|
try {
|
|
1770
|
-
|
|
1748
|
+
C.call();
|
|
1771
1749
|
} catch (H) {
|
|
1772
1750
|
h = H;
|
|
1773
1751
|
}
|
|
1774
|
-
r.call(
|
|
1752
|
+
r.call(C.prototype);
|
|
1775
1753
|
}
|
|
1776
1754
|
} else {
|
|
1777
1755
|
try {
|
|
@@ -1801,7 +1779,7 @@ function Cr() {
|
|
|
1801
1779
|
}
|
|
1802
1780
|
}
|
|
1803
1781
|
} finally {
|
|
1804
|
-
we = !1,
|
|
1782
|
+
we = !1, ye.current = R, _t(), Error.prepareStackTrace = O;
|
|
1805
1783
|
}
|
|
1806
1784
|
var ne = r ? r.displayName || r.name : "", Qe = ne ? fe(ne) : "";
|
|
1807
1785
|
return typeof r == "function" && de.set(r, Qe), Qe;
|
|
@@ -1838,7 +1816,7 @@ function Cr() {
|
|
|
1838
1816
|
var h = r, O = h._payload, R = h._init;
|
|
1839
1817
|
try {
|
|
1840
1818
|
return he(R(O), c, l);
|
|
1841
|
-
} catch (
|
|
1819
|
+
} catch (C) {
|
|
1842
1820
|
}
|
|
1843
1821
|
}
|
|
1844
1822
|
}
|
|
@@ -1855,19 +1833,19 @@ function Cr() {
|
|
|
1855
1833
|
function vt(r, c, l, h, O) {
|
|
1856
1834
|
{
|
|
1857
1835
|
var R = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1858
|
-
for (var
|
|
1859
|
-
if (R(r,
|
|
1836
|
+
for (var C in r)
|
|
1837
|
+
if (R(r, C)) {
|
|
1860
1838
|
var E = void 0;
|
|
1861
1839
|
try {
|
|
1862
|
-
if (typeof r[
|
|
1863
|
-
var $ = Error((h || "React class") + ": " + l + " type `" +
|
|
1840
|
+
if (typeof r[C] != "function") {
|
|
1841
|
+
var $ = Error((h || "React class") + ": " + l + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1864
1842
|
throw $.name = "Invariant Violation", $;
|
|
1865
1843
|
}
|
|
1866
|
-
E = r[
|
|
1844
|
+
E = r[C](c, C, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1867
1845
|
} catch (k) {
|
|
1868
1846
|
E = k;
|
|
1869
1847
|
}
|
|
1870
|
-
E && !(E instanceof Error) && (_e(O),
|
|
1848
|
+
E && !(E instanceof Error) && (_e(O), y("%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).", h || "React class", l, C, typeof E), _e(null)), E instanceof Error && !(E.message in Fe) && (Fe[E.message] = !0, _e(O), y("Failed %s type: %s", l, E.message), _e(null));
|
|
1871
1849
|
}
|
|
1872
1850
|
}
|
|
1873
1851
|
}
|
|
@@ -1894,16 +1872,16 @@ function Cr() {
|
|
|
1894
1872
|
}
|
|
1895
1873
|
return r.key !== void 0;
|
|
1896
1874
|
}
|
|
1897
|
-
function
|
|
1875
|
+
function yt(r, c) {
|
|
1898
1876
|
if (typeof r.ref == "string" && se.current && c && se.current.stateNode !== c) {
|
|
1899
1877
|
var l = F(se.current.type);
|
|
1900
|
-
Oe[l] || (
|
|
1878
|
+
Oe[l] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(se.current.type), r.ref), Oe[l] = !0);
|
|
1901
1879
|
}
|
|
1902
1880
|
}
|
|
1903
|
-
function
|
|
1881
|
+
function Ct(r, c) {
|
|
1904
1882
|
{
|
|
1905
1883
|
var l = function() {
|
|
1906
|
-
Ke || (Ke = !0,
|
|
1884
|
+
Ke || (Ke = !0, y("%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)", c));
|
|
1907
1885
|
};
|
|
1908
1886
|
l.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
1909
1887
|
get: l,
|
|
@@ -1914,7 +1892,7 @@ function Cr() {
|
|
|
1914
1892
|
function wt(r, c) {
|
|
1915
1893
|
{
|
|
1916
1894
|
var l = function() {
|
|
1917
|
-
Ye || (Ye = !0,
|
|
1895
|
+
Ye || (Ye = !0, y("%s: `ref` 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)", c));
|
|
1918
1896
|
};
|
|
1919
1897
|
l.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
1920
1898
|
get: l,
|
|
@@ -1922,7 +1900,7 @@ function Cr() {
|
|
|
1922
1900
|
});
|
|
1923
1901
|
}
|
|
1924
1902
|
}
|
|
1925
|
-
var St = function(r, c, l, h, O, R,
|
|
1903
|
+
var St = function(r, c, l, h, O, R, C) {
|
|
1926
1904
|
var E = {
|
|
1927
1905
|
// This tag allows us to uniquely identify this as a React Element
|
|
1928
1906
|
$$typeof: n,
|
|
@@ -1930,7 +1908,7 @@ function Cr() {
|
|
|
1930
1908
|
type: r,
|
|
1931
1909
|
key: c,
|
|
1932
1910
|
ref: l,
|
|
1933
|
-
props:
|
|
1911
|
+
props: C,
|
|
1934
1912
|
// Record the component responsible for creating this element.
|
|
1935
1913
|
_owner: R
|
|
1936
1914
|
};
|
|
@@ -1953,20 +1931,20 @@ function Cr() {
|
|
|
1953
1931
|
};
|
|
1954
1932
|
function Ot(r, c, l, h, O) {
|
|
1955
1933
|
{
|
|
1956
|
-
var R,
|
|
1957
|
-
l !== void 0 && (E = "" + l), bt(c) && (E = "" + c.key), Et(c) && ($ = c.ref,
|
|
1934
|
+
var R, C = {}, E = null, $ = null;
|
|
1935
|
+
l !== void 0 && (E = "" + l), bt(c) && (E = "" + c.key), Et(c) && ($ = c.ref, yt(c, O));
|
|
1958
1936
|
for (R in c)
|
|
1959
|
-
Se.call(c, R) && !pt.hasOwnProperty(R) && (
|
|
1937
|
+
Se.call(c, R) && !pt.hasOwnProperty(R) && (C[R] = c[R]);
|
|
1960
1938
|
if (r && r.defaultProps) {
|
|
1961
1939
|
var k = r.defaultProps;
|
|
1962
1940
|
for (R in k)
|
|
1963
|
-
|
|
1941
|
+
C[R] === void 0 && (C[R] = k[R]);
|
|
1964
1942
|
}
|
|
1965
1943
|
if (E || $) {
|
|
1966
1944
|
var j = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
1967
|
-
E &&
|
|
1945
|
+
E && Ct(C, j), $ && wt(C, j);
|
|
1968
1946
|
}
|
|
1969
|
-
return St(r, E, $, O, h, se.current,
|
|
1947
|
+
return St(r, E, $, O, h, se.current, C);
|
|
1970
1948
|
}
|
|
1971
1949
|
}
|
|
1972
1950
|
var Re = b.ReactCurrentOwner, Ge = b.ReactDebugCurrentFrame;
|
|
@@ -2028,7 +2006,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
2028
2006
|
return;
|
|
2029
2007
|
Je[l] = !0;
|
|
2030
2008
|
var h = "";
|
|
2031
|
-
r && r._owner && r._owner !== Re.current && (h = " It was passed a child from " + F(r._owner.type) + "."), re(r),
|
|
2009
|
+
r && r._owner && r._owner !== Re.current && (h = " It was passed a child from " + F(r._owner.type) + "."), re(r), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, h), re(null);
|
|
2032
2010
|
}
|
|
2033
2011
|
}
|
|
2034
2012
|
function Xe(r, c) {
|
|
@@ -2045,8 +2023,8 @@ Check the top-level render call using <` + l + ">.");
|
|
|
2045
2023
|
else if (r) {
|
|
2046
2024
|
var O = L(r);
|
|
2047
2025
|
if (typeof O == "function" && O !== r.entries)
|
|
2048
|
-
for (var R = O.call(r),
|
|
2049
|
-
Te(
|
|
2026
|
+
for (var R = O.call(r), C; !(C = R.next()).done; )
|
|
2027
|
+
Te(C.value) && ze(C.value, c);
|
|
2050
2028
|
}
|
|
2051
2029
|
}
|
|
2052
2030
|
}
|
|
@@ -2070,9 +2048,9 @@ Check the top-level render call using <` + l + ">.");
|
|
|
2070
2048
|
} else if (c.PropTypes !== void 0 && !Ie) {
|
|
2071
2049
|
Ie = !0;
|
|
2072
2050
|
var O = F(c);
|
|
2073
|
-
|
|
2051
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
2074
2052
|
}
|
|
2075
|
-
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved &&
|
|
2053
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2076
2054
|
}
|
|
2077
2055
|
}
|
|
2078
2056
|
function kt(r) {
|
|
@@ -2080,28 +2058,28 @@ Check the top-level render call using <` + l + ">.");
|
|
|
2080
2058
|
for (var c = Object.keys(r.props), l = 0; l < c.length; l++) {
|
|
2081
2059
|
var h = c[l];
|
|
2082
2060
|
if (h !== "children" && h !== "key") {
|
|
2083
|
-
re(r),
|
|
2061
|
+
re(r), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), re(null);
|
|
2084
2062
|
break;
|
|
2085
2063
|
}
|
|
2086
2064
|
}
|
|
2087
|
-
r.ref !== null && (re(r),
|
|
2065
|
+
r.ref !== null && (re(r), y("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
|
|
2088
2066
|
}
|
|
2089
2067
|
}
|
|
2090
2068
|
function Ze(r, c, l, h, O, R) {
|
|
2091
2069
|
{
|
|
2092
|
-
var
|
|
2093
|
-
if (!
|
|
2070
|
+
var C = z(r);
|
|
2071
|
+
if (!C) {
|
|
2094
2072
|
var E = "";
|
|
2095
2073
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2096
2074
|
var $ = Rt(O);
|
|
2097
2075
|
$ ? E += $ : E += He();
|
|
2098
2076
|
var k;
|
|
2099
|
-
r === null ? k = "null" : Array.isArray(r) ? k = "array" : r !== void 0 && r.$$typeof === n ? (k = "<" + (F(r.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : k = typeof r,
|
|
2077
|
+
r === null ? k = "null" : Array.isArray(r) ? k = "array" : r !== void 0 && r.$$typeof === n ? (k = "<" + (F(r.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : k = typeof r, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, E);
|
|
2100
2078
|
}
|
|
2101
2079
|
var j = Ot(r, c, l, O, R);
|
|
2102
2080
|
if (j == null)
|
|
2103
2081
|
return j;
|
|
2104
|
-
if (
|
|
2082
|
+
if (C) {
|
|
2105
2083
|
var G = c.children;
|
|
2106
2084
|
if (G !== void 0)
|
|
2107
2085
|
if (h)
|
|
@@ -2110,7 +2088,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
2110
2088
|
Xe(G[ne], r);
|
|
2111
2089
|
Object.freeze && Object.freeze(G);
|
|
2112
2090
|
} else
|
|
2113
|
-
|
|
2091
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2114
2092
|
else
|
|
2115
2093
|
Xe(G, r);
|
|
2116
2094
|
}
|
|
@@ -2129,19 +2107,19 @@ Check the top-level render call using <` + l + ">.");
|
|
|
2129
2107
|
}(Ne)), Ne;
|
|
2130
2108
|
}
|
|
2131
2109
|
(function(t) {
|
|
2132
|
-
process.env.NODE_ENV === "production" ? t.exports = br() : t.exports =
|
|
2110
|
+
process.env.NODE_ENV === "production" ? t.exports = br() : t.exports = yr();
|
|
2133
2111
|
})(Er);
|
|
2134
|
-
const
|
|
2112
|
+
const Cr = Ae.jsx;
|
|
2135
2113
|
function kr(t) {
|
|
2136
|
-
const s = Ft(null), e = pr(t), n = e.jsBridge, i = (d) => /* @__PURE__ */
|
|
2114
|
+
const s = Ft(null), e = pr(t), n = e.jsBridge, i = (d) => /* @__PURE__ */ Cr(s.Provider, { value: e, children: d.children }), a = () => {
|
|
2137
2115
|
const d = V.useContext(s);
|
|
2138
2116
|
if (!d)
|
|
2139
2117
|
throw new Error("LiveProvider never found.");
|
|
2140
2118
|
return d;
|
|
2141
2119
|
}, u = () => e, f = () => e.$RTC, _ = () => f(), g = () => async (d) => await e.connect(d);
|
|
2142
2120
|
function v(d, S, L = []) {
|
|
2143
|
-
const b = a(),
|
|
2144
|
-
return V.useEffect(() => (b.keyframes.on(d, S), D),
|
|
2121
|
+
const b = a(), y = [b, name, ...L], D = () => b.keyframes.off(d, S);
|
|
2122
|
+
return V.useEffect(() => (b.keyframes.on(d, S), D), y), D;
|
|
2145
2123
|
}
|
|
2146
2124
|
function p() {
|
|
2147
2125
|
const d = a();
|
|
@@ -2165,20 +2143,20 @@ function kr(t) {
|
|
|
2165
2143
|
const D = (ue) => b(ue), U = d, z = D;
|
|
2166
2144
|
return S.keyframes.on(U, z), () => S.keyframes.off(U, z);
|
|
2167
2145
|
}, [S]);
|
|
2168
|
-
const
|
|
2146
|
+
const y = V.useCallback(
|
|
2169
2147
|
(D) => S.sendKeyframe(d, D),
|
|
2170
2148
|
[S]
|
|
2171
2149
|
);
|
|
2172
|
-
return [L,
|
|
2150
|
+
return [L, y];
|
|
2173
2151
|
}
|
|
2174
2152
|
function m(d, S, L = []) {
|
|
2175
|
-
const b = a(),
|
|
2176
|
-
return V.useEffect(() => (b.on(d, S),
|
|
2153
|
+
const b = a(), y = () => b.off(d, S), D = [b, d, ...L];
|
|
2154
|
+
return V.useEffect(() => (b.on(d, S), y), D), y;
|
|
2177
2155
|
}
|
|
2178
2156
|
function N() {
|
|
2179
2157
|
const d = a(), [S, L] = V.useState(d.state);
|
|
2180
2158
|
return V.useEffect(() => {
|
|
2181
|
-
const b = (
|
|
2159
|
+
const b = (y) => L(y);
|
|
2182
2160
|
return d.on("stateChange", b), () => d.off("stateChange", b);
|
|
2183
2161
|
}, [d]), S;
|
|
2184
2162
|
}
|
|
@@ -2196,31 +2174,31 @@ function kr(t) {
|
|
|
2196
2174
|
};
|
|
2197
2175
|
}
|
|
2198
2176
|
function P(d, S, L = []) {
|
|
2199
|
-
const b = a(),
|
|
2200
|
-
return V.useEffect(() => (b.$RTC.on(d, S),
|
|
2177
|
+
const b = a(), y = () => b.$RTC.off(d, S), D = [b, d, ...L];
|
|
2178
|
+
return V.useEffect(() => (b.$RTC.on(d, S), y), D), y;
|
|
2201
2179
|
}
|
|
2202
2180
|
function Y() {
|
|
2203
2181
|
const d = a(), [S, L] = V.useState(
|
|
2204
2182
|
d.selfInfo || {}
|
|
2205
2183
|
), b = (D) => L(D);
|
|
2206
2184
|
V.useEffect(() => (d.on("selfInfoUpdate", b), () => d.off("selfInfoUpdate", b)), [d]);
|
|
2207
|
-
const
|
|
2185
|
+
const y = V.useCallback(
|
|
2208
2186
|
async (D) => await d.setSelfInfo(D),
|
|
2209
2187
|
[d]
|
|
2210
2188
|
);
|
|
2211
|
-
return [S,
|
|
2189
|
+
return [S, y];
|
|
2212
2190
|
}
|
|
2213
2191
|
function K() {
|
|
2214
2192
|
const d = a(), [S, L] = V.useState(
|
|
2215
2193
|
d.snapshot
|
|
2216
2194
|
);
|
|
2217
2195
|
return V.useEffect(() => {
|
|
2218
|
-
const b = (
|
|
2196
|
+
const b = (y) => L(y);
|
|
2219
2197
|
return d.on("keyframes", b), () => d.off("keyframes", b);
|
|
2220
2198
|
}), S;
|
|
2221
2199
|
}
|
|
2222
2200
|
function I() {
|
|
2223
|
-
const d = a(), [S, L] = V.useState(d.userList), b = (
|
|
2201
|
+
const d = a(), [S, L] = V.useState(d.userList), b = (y) => L(y);
|
|
2224
2202
|
return V.useEffect(() => (d.on("userListUpdate", b), () => d.off("userListUpdate", b)), [d]), S;
|
|
2225
2203
|
}
|
|
2226
2204
|
return {
|