@cloudflare/realtimekit 0.5.0-staging.77 → 0.5.0-staging.79
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/browser.js +15 -15
- package/dist/index.cjs.js +15 -15
- package/dist/index.es.js +2922 -2905
- package/dist/mock.cjs.js +5 -64
- package/dist/mock.es.js +362 -421
- package/dist/react.cjs.js +15 -15
- package/dist/react.es.js +2922 -2905
- package/package.json +1 -1
package/dist/mock.es.js
CHANGED
|
@@ -2071,23 +2071,23 @@ var I = (e, s, a) => (ze(e, s, "read from private field"), a ? a.call(e) : s.get
|
|
|
2071
2071
|
throw TypeError("Cannot add the same private member more than once");
|
|
2072
2072
|
s instanceof WeakSet ? s.add(e) : s.set(e, a);
|
|
2073
2073
|
}, Se = (e, s, a, d) => (ze(e, s, "write to private field"), d ? d.call(e, a) : s.set(e, a), a);
|
|
2074
|
-
var Ye = (e, s, a) => new Promise((d,
|
|
2075
|
-
var m = (
|
|
2074
|
+
var Ye = (e, s, a) => new Promise((d, p) => {
|
|
2075
|
+
var m = (P) => {
|
|
2076
2076
|
try {
|
|
2077
|
-
g(a.next(
|
|
2077
|
+
g(a.next(P));
|
|
2078
2078
|
} catch (b) {
|
|
2079
|
-
|
|
2079
|
+
p(b);
|
|
2080
2080
|
}
|
|
2081
|
-
},
|
|
2081
|
+
}, f = (P) => {
|
|
2082
2082
|
try {
|
|
2083
|
-
g(a.throw(
|
|
2083
|
+
g(a.throw(P));
|
|
2084
2084
|
} catch (b) {
|
|
2085
|
-
|
|
2085
|
+
p(b);
|
|
2086
2086
|
}
|
|
2087
|
-
}, g = (
|
|
2087
|
+
}, g = (P) => P.done ? d(P.value) : Promise.resolve(P.value).then(m, f);
|
|
2088
2088
|
g((a = a.apply(e, s)).next());
|
|
2089
2089
|
});
|
|
2090
|
-
var Y = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, ie = {},
|
|
2090
|
+
var Y = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, ie = {}, ut = {
|
|
2091
2091
|
get exports() {
|
|
2092
2092
|
return ie;
|
|
2093
2093
|
},
|
|
@@ -2102,17 +2102,17 @@ j && typeof j.ownKeys == "function" ? oe = j.ownKeys : Object.getOwnPropertySymb
|
|
|
2102
2102
|
} : oe = function(s) {
|
|
2103
2103
|
return Object.getOwnPropertyNames(s);
|
|
2104
2104
|
};
|
|
2105
|
-
function
|
|
2105
|
+
function pt(e) {
|
|
2106
2106
|
console && console.warn && console.warn(e);
|
|
2107
2107
|
}
|
|
2108
|
-
var
|
|
2108
|
+
var un = Number.isNaN || function(s) {
|
|
2109
2109
|
return s !== s;
|
|
2110
2110
|
};
|
|
2111
2111
|
function R() {
|
|
2112
2112
|
R.init.call(this);
|
|
2113
2113
|
}
|
|
2114
|
-
|
|
2115
|
-
ie.once =
|
|
2114
|
+
ut.exports = R;
|
|
2115
|
+
ie.once = ft;
|
|
2116
2116
|
R.EventEmitter = R;
|
|
2117
2117
|
R.prototype._events = void 0;
|
|
2118
2118
|
R.prototype._eventsCount = 0;
|
|
@@ -2128,7 +2128,7 @@ Object.defineProperty(R, "defaultMaxListeners", {
|
|
|
2128
2128
|
return Xe;
|
|
2129
2129
|
},
|
|
2130
2130
|
set: function(e) {
|
|
2131
|
-
if (typeof e != "number" || e < 0 ||
|
|
2131
|
+
if (typeof e != "number" || e < 0 || un(e))
|
|
2132
2132
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
2133
2133
|
Xe = e;
|
|
2134
2134
|
}
|
|
@@ -2137,53 +2137,53 @@ R.init = function() {
|
|
|
2137
2137
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
2138
2138
|
};
|
|
2139
2139
|
R.prototype.setMaxListeners = function(s) {
|
|
2140
|
-
if (typeof s != "number" || s < 0 ||
|
|
2140
|
+
if (typeof s != "number" || s < 0 || un(s))
|
|
2141
2141
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + s + ".");
|
|
2142
2142
|
return this._maxListeners = s, this;
|
|
2143
2143
|
};
|
|
2144
|
-
function
|
|
2144
|
+
function pn(e) {
|
|
2145
2145
|
return e._maxListeners === void 0 ? R.defaultMaxListeners : e._maxListeners;
|
|
2146
2146
|
}
|
|
2147
2147
|
R.prototype.getMaxListeners = function() {
|
|
2148
|
-
return
|
|
2148
|
+
return pn(this);
|
|
2149
2149
|
};
|
|
2150
2150
|
R.prototype.emit = function(s) {
|
|
2151
2151
|
for (var a = [], d = 1; d < arguments.length; d++)
|
|
2152
2152
|
a.push(arguments[d]);
|
|
2153
|
-
var
|
|
2153
|
+
var p = s === "error", m = this._events;
|
|
2154
2154
|
if (m !== void 0)
|
|
2155
|
-
|
|
2156
|
-
else if (!
|
|
2155
|
+
p = p && m.error === void 0;
|
|
2156
|
+
else if (!p)
|
|
2157
2157
|
return false;
|
|
2158
|
-
if (
|
|
2159
|
-
var
|
|
2160
|
-
if (a.length > 0 && (
|
|
2161
|
-
throw
|
|
2162
|
-
var g = new Error("Unhandled error." + (
|
|
2163
|
-
throw g.context =
|
|
2164
|
-
}
|
|
2165
|
-
var
|
|
2166
|
-
if (
|
|
2158
|
+
if (p) {
|
|
2159
|
+
var f;
|
|
2160
|
+
if (a.length > 0 && (f = a[0]), f instanceof Error)
|
|
2161
|
+
throw f;
|
|
2162
|
+
var g = new Error("Unhandled error." + (f ? " (" + f.message + ")" : ""));
|
|
2163
|
+
throw g.context = f, g;
|
|
2164
|
+
}
|
|
2165
|
+
var P = m[s];
|
|
2166
|
+
if (P === void 0)
|
|
2167
2167
|
return false;
|
|
2168
|
-
if (typeof
|
|
2169
|
-
Qe(
|
|
2168
|
+
if (typeof P == "function")
|
|
2169
|
+
Qe(P, this, a);
|
|
2170
2170
|
else
|
|
2171
|
-
for (var b =
|
|
2172
|
-
Qe(
|
|
2171
|
+
for (var b = P.length, he = hn(P, b), d = 0; d < b; ++d)
|
|
2172
|
+
Qe(he[d], this, a);
|
|
2173
2173
|
return true;
|
|
2174
2174
|
};
|
|
2175
2175
|
function ln(e, s, a, d) {
|
|
2176
|
-
var
|
|
2176
|
+
var p, m, f;
|
|
2177
2177
|
if (me(a), m = e._events, m === void 0 ? (m = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (m.newListener !== void 0 && (e.emit(
|
|
2178
2178
|
"newListener",
|
|
2179
2179
|
s,
|
|
2180
2180
|
a.listener ? a.listener : a
|
|
2181
|
-
), m = e._events),
|
|
2182
|
-
|
|
2183
|
-
else if (typeof
|
|
2184
|
-
|
|
2185
|
-
var g = new Error("Possible EventEmitter memory leak detected. " +
|
|
2186
|
-
g.name = "MaxListenersExceededWarning", g.emitter = e, g.type = s, g.count =
|
|
2181
|
+
), m = e._events), f = m[s]), f === void 0)
|
|
2182
|
+
f = m[s] = a, ++e._eventsCount;
|
|
2183
|
+
else if (typeof f == "function" ? f = m[s] = d ? [a, f] : [f, a] : d ? f.unshift(a) : f.push(a), p = pn(e), p > 0 && f.length > p && !f.warned) {
|
|
2184
|
+
f.warned = true;
|
|
2185
|
+
var g = new Error("Possible EventEmitter memory leak detected. " + f.length + " " + String(s) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2186
|
+
g.name = "MaxListenersExceededWarning", g.emitter = e, g.type = s, g.count = f.length, pt(g);
|
|
2187
2187
|
}
|
|
2188
2188
|
return e;
|
|
2189
2189
|
}
|
|
@@ -2199,8 +2199,8 @@ function lt() {
|
|
|
2199
2199
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = true, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
2200
2200
|
}
|
|
2201
2201
|
function mn(e, s, a) {
|
|
2202
|
-
var d = { fired: false, wrapFn: void 0, target: e, type: s, listener: a },
|
|
2203
|
-
return
|
|
2202
|
+
var d = { fired: false, wrapFn: void 0, target: e, type: s, listener: a }, p = lt.bind(d);
|
|
2203
|
+
return p.listener = a, d.wrapFn = p, p;
|
|
2204
2204
|
}
|
|
2205
2205
|
R.prototype.once = function(s, a) {
|
|
2206
2206
|
return me(a), this.on(s, mn(this, s, a)), this;
|
|
@@ -2209,51 +2209,51 @@ R.prototype.prependOnceListener = function(s, a) {
|
|
|
2209
2209
|
return me(a), this.prependListener(s, mn(this, s, a)), this;
|
|
2210
2210
|
};
|
|
2211
2211
|
R.prototype.removeListener = function(s, a) {
|
|
2212
|
-
var d,
|
|
2213
|
-
if (me(a),
|
|
2212
|
+
var d, p, m, f, g;
|
|
2213
|
+
if (me(a), p = this._events, p === void 0)
|
|
2214
2214
|
return this;
|
|
2215
|
-
if (d =
|
|
2215
|
+
if (d = p[s], d === void 0)
|
|
2216
2216
|
return this;
|
|
2217
2217
|
if (d === a || d.listener === a)
|
|
2218
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
|
2218
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete p[s], p.removeListener && this.emit("removeListener", s, d.listener || a));
|
|
2219
2219
|
else if (typeof d != "function") {
|
|
2220
|
-
for (m = -1,
|
|
2221
|
-
if (d[
|
|
2222
|
-
g = d[
|
|
2220
|
+
for (m = -1, f = d.length - 1; f >= 0; f--)
|
|
2221
|
+
if (d[f] === a || d[f].listener === a) {
|
|
2222
|
+
g = d[f].listener, m = f;
|
|
2223
2223
|
break;
|
|
2224
2224
|
}
|
|
2225
2225
|
if (m < 0)
|
|
2226
2226
|
return this;
|
|
2227
|
-
m === 0 ? d.shift() : mt(d, m), d.length === 1 && (
|
|
2227
|
+
m === 0 ? d.shift() : mt(d, m), d.length === 1 && (p[s] = d[0]), p.removeListener !== void 0 && this.emit("removeListener", s, g || a);
|
|
2228
2228
|
}
|
|
2229
2229
|
return this;
|
|
2230
2230
|
};
|
|
2231
2231
|
R.prototype.off = R.prototype.removeListener;
|
|
2232
2232
|
R.prototype.removeAllListeners = function(s) {
|
|
2233
|
-
var a, d,
|
|
2233
|
+
var a, d, p;
|
|
2234
2234
|
if (d = this._events, d === void 0)
|
|
2235
2235
|
return this;
|
|
2236
2236
|
if (d.removeListener === void 0)
|
|
2237
2237
|
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : d[s] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete d[s]), this;
|
|
2238
2238
|
if (arguments.length === 0) {
|
|
2239
|
-
var m = Object.keys(d),
|
|
2240
|
-
for (
|
|
2241
|
-
|
|
2239
|
+
var m = Object.keys(d), f;
|
|
2240
|
+
for (p = 0; p < m.length; ++p)
|
|
2241
|
+
f = m[p], f !== "removeListener" && this.removeAllListeners(f);
|
|
2242
2242
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
2243
2243
|
}
|
|
2244
2244
|
if (a = d[s], typeof a == "function")
|
|
2245
2245
|
this.removeListener(s, a);
|
|
2246
2246
|
else if (a !== void 0)
|
|
2247
|
-
for (
|
|
2248
|
-
this.removeListener(s, a[
|
|
2247
|
+
for (p = a.length - 1; p >= 0; p--)
|
|
2248
|
+
this.removeListener(s, a[p]);
|
|
2249
2249
|
return this;
|
|
2250
2250
|
};
|
|
2251
2251
|
function Tn(e, s, a) {
|
|
2252
2252
|
var d = e._events;
|
|
2253
2253
|
if (d === void 0)
|
|
2254
2254
|
return [];
|
|
2255
|
-
var
|
|
2256
|
-
return
|
|
2255
|
+
var p = d[s];
|
|
2256
|
+
return p === void 0 ? [] : typeof p == "function" ? a ? [p.listener || p] : [p] : a ? Tt(p) : hn(p, p.length);
|
|
2257
2257
|
}
|
|
2258
2258
|
R.prototype.listeners = function(s) {
|
|
2259
2259
|
return Tn(this, s, true);
|
|
@@ -2262,10 +2262,10 @@ R.prototype.rawListeners = function(s) {
|
|
|
2262
2262
|
return Tn(this, s, false);
|
|
2263
2263
|
};
|
|
2264
2264
|
R.listenerCount = function(e, s) {
|
|
2265
|
-
return typeof e.listenerCount == "function" ? e.listenerCount(s) :
|
|
2265
|
+
return typeof e.listenerCount == "function" ? e.listenerCount(s) : fn.call(e, s);
|
|
2266
2266
|
};
|
|
2267
|
-
R.prototype.listenerCount =
|
|
2268
|
-
function
|
|
2267
|
+
R.prototype.listenerCount = fn;
|
|
2268
|
+
function fn(e) {
|
|
2269
2269
|
var s = this._events;
|
|
2270
2270
|
if (s !== void 0) {
|
|
2271
2271
|
var a = s[e];
|
|
@@ -2279,7 +2279,7 @@ function hn(e) {
|
|
|
2279
2279
|
R.prototype.eventNames = function() {
|
|
2280
2280
|
return this._eventsCount > 0 ? oe(this._events) : [];
|
|
2281
2281
|
};
|
|
2282
|
-
function
|
|
2282
|
+
function hn(e, s) {
|
|
2283
2283
|
for (var a = new Array(s), d = 0; d < s; ++d)
|
|
2284
2284
|
a[d] = e[d];
|
|
2285
2285
|
return a;
|
|
@@ -2294,94 +2294,35 @@ function Tt(e) {
|
|
|
2294
2294
|
s[a] = e[a].listener || e[a];
|
|
2295
2295
|
return s;
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function ft(e, s) {
|
|
2298
2298
|
return new Promise(function(a, d) {
|
|
2299
|
-
function
|
|
2300
|
-
e.removeListener(s, m), d(
|
|
2299
|
+
function p(f) {
|
|
2300
|
+
e.removeListener(s, m), d(f);
|
|
2301
2301
|
}
|
|
2302
2302
|
function m() {
|
|
2303
|
-
typeof e.removeListener == "function" && e.removeListener("error",
|
|
2303
|
+
typeof e.removeListener == "function" && e.removeListener("error", p), a([].slice.call(arguments));
|
|
2304
2304
|
}
|
|
2305
|
-
kn(e, s, m, { once: true }), s !== "error" &&
|
|
2305
|
+
kn(e, s, m, { once: true }), s !== "error" && ht(e, p, { once: true });
|
|
2306
2306
|
});
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function ht(e, s, a) {
|
|
2309
2309
|
typeof e.on == "function" && kn(e, "error", s, a);
|
|
2310
2310
|
}
|
|
2311
2311
|
function kn(e, s, a, d) {
|
|
2312
2312
|
if (typeof e.on == "function")
|
|
2313
2313
|
d.once ? e.once(s, a) : e.on(s, a);
|
|
2314
2314
|
else if (typeof e.addEventListener == "function")
|
|
2315
|
-
e.addEventListener(s, function
|
|
2316
|
-
d.once && e.removeEventListener(s,
|
|
2315
|
+
e.addEventListener(s, function p(m) {
|
|
2316
|
+
d.once && e.removeEventListener(s, p), a(m);
|
|
2317
2317
|
});
|
|
2318
2318
|
else
|
|
2319
2319
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
|
|
2320
2320
|
}
|
|
2321
2321
|
const kt = `
|
|
2322
|
-
v=0
|
|
2323
|
-
o=- 0000000000000000000 0 IN IP4 127.0.0.1
|
|
2324
|
-
s=-
|
|
2325
|
-
t=0 0
|
|
2326
|
-
a=group:BUNDLE 0 1
|
|
2327
|
-
a=extmap-allow-mixed
|
|
2328
|
-
a=msid-semantic: WMS stream-id
|
|
2329
|
-
m=application 99999 UDP/DTLS/SCTP webrtc-datachannel
|
|
2330
|
-
c=IN IP4 0.0.0.0
|
|
2331
|
-
a=candidate:1 1 udp 2122194687 192.168.1.2 9999 typ host generation 0 network-id 1 network-cost 10
|
|
2332
|
-
a=candidate:2 1 udp 2122063615 10.0.0.1 9999 typ host generation 0 network-id 2 network-cost 50
|
|
2333
|
-
a=candidate:3 1 udp 2122262783 2001:db8::1 9999 typ host generation 0 network-id 3 network-cost 10
|
|
2334
|
-
a=candidate:4 1 udp 2122131711 2001:db8::2 9999 typ host generation 0 network-id 4 network-cost 50
|
|
2335
|
-
a=candidate:5 1 udp 1685855999 198.51.100.1 9999 typ srflx raddr 10.0.0.1 rport 9999 generation 0 network-id 2 network-cost 50
|
|
2336
|
-
a=candidate:6 1 udp 1685924095 2001:db8::3 9999 typ srflx raddr 2001:db8::2 rport 9999 generation 0 network-id 4 network-cost 50
|
|
2337
|
-
a=candidate:7 1 udp 41755903 203.0.113.1 9999 typ relay raddr 2001:db8::3 rport 9999 generation 0 network-id 4 network-cost 50
|
|
2338
|
-
a=candidate:8 1 tcp 1518214911 192.168.1.2 9 typ host tcptype active generation 0 network-id 1 network-cost 10
|
|
2339
|
-
a=candidate:9 1 tcp 1518083839 10.0.0.1 9 typ host tcptype active generation 0 network-id 2 network-cost 50
|
|
2340
|
-
a=candidate:10 1 tcp 1518283007 2001:db8::1 9 typ host tcptype active generation 0 network-id 3 network-cost 10
|
|
2341
|
-
a=candidate:11 1 tcp 1518151935 2001:db8::2 9 typ host tcptype active generation 0 network-id 4 network-cost 50
|
|
2342
|
-
a=ice-ufrag:ICEUF
|
|
2343
|
-
a=ice-pwd:ICEPWD
|
|
2344
|
-
a=ice-options:trickle
|
|
2345
|
-
a=fingerprint:sha-256 AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99
|
|
2346
|
-
a=setup:actpass
|
|
2347
|
-
a=mid:0
|
|
2348
|
-
a=sctp-port:5000
|
|
2349
|
-
a=max-message-size:262144
|
|
2350
2322
|
m=video 9 UDP/TLS/RTP/SAVPF 96
|
|
2351
|
-
c=IN IP4 0.0.0.0
|
|
2352
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
2353
|
-
a=ice-ufrag:ICEUF
|
|
2354
|
-
a=ice-pwd:ICEPWD
|
|
2355
|
-
a=ice-options:trickle
|
|
2356
|
-
a=fingerprint:sha-256 AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99
|
|
2357
|
-
a=setup:actpass
|
|
2358
|
-
a=mid:1
|
|
2359
|
-
a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
|
|
2360
|
-
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
|
2361
|
-
a=extmap:3 urn:3gpp:video-orientation
|
|
2362
|
-
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
|
|
2363
|
-
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
|
|
2364
|
-
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
|
|
2365
|
-
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
|
|
2366
|
-
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
|
|
2367
|
-
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
|
|
2368
|
-
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
|
|
2369
|
-
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
|
|
2370
|
-
a=extmap:13 https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension
|
|
2371
|
-
a=extmap:14 http://www.webrtc.org/experiments/rtp-hdrext/video-layers-allocation00
|
|
2372
|
-
a=sendonly
|
|
2373
2323
|
a=msid:stream-id track-id
|
|
2374
|
-
|
|
2375
|
-
a=
|
|
2376
|
-
a=rtpmap:96 VP8/90000
|
|
2377
|
-
a=rtcp-fb:96 goog-remb
|
|
2378
|
-
a=rtcp-fb:96 transport-cc
|
|
2379
|
-
a=rtcp-fb:96 ccm fir
|
|
2380
|
-
a=rtcp-fb:96 nack
|
|
2381
|
-
a=rtcp-fb:96 nack pli
|
|
2382
|
-
a=rid:q send
|
|
2383
|
-
a=rid:h send
|
|
2384
|
-
a=simulcast:send q;h
|
|
2324
|
+
m=audio 9 UDP/TLS/RTP/SAVPF 96
|
|
2325
|
+
a=msid:stream-id track-id
|
|
2385
2326
|
`, en = {
|
|
2386
2327
|
track: null,
|
|
2387
2328
|
transport: null,
|
|
@@ -2524,7 +2465,7 @@ var Q = {}, Rt = {
|
|
|
2524
2465
|
(function(a, d) {
|
|
2525
2466
|
d(s);
|
|
2526
2467
|
})(Y, function(a) {
|
|
2527
|
-
var d = typeof window != "undefined" ? window : typeof Y != "undefined" ? Y : typeof self != "undefined" ? self : {},
|
|
2468
|
+
var d = typeof window != "undefined" ? window : typeof Y != "undefined" ? Y : typeof self != "undefined" ? self : {}, p = function(t, c) {
|
|
2528
2469
|
if (c = c.split(":")[0], t = +t, !t)
|
|
2529
2470
|
return false;
|
|
2530
2471
|
switch (c) {
|
|
@@ -2542,7 +2483,7 @@ var Q = {}, Rt = {
|
|
|
2542
2483
|
return false;
|
|
2543
2484
|
}
|
|
2544
2485
|
return t !== 0;
|
|
2545
|
-
}, m = Object.prototype.hasOwnProperty,
|
|
2486
|
+
}, m = Object.prototype.hasOwnProperty, f;
|
|
2546
2487
|
function g(r) {
|
|
2547
2488
|
try {
|
|
2548
2489
|
return decodeURIComponent(r.replace(/\+/g, " "));
|
|
@@ -2550,7 +2491,7 @@ var Q = {}, Rt = {
|
|
|
2550
2491
|
return null;
|
|
2551
2492
|
}
|
|
2552
2493
|
}
|
|
2553
|
-
function
|
|
2494
|
+
function P(r) {
|
|
2554
2495
|
try {
|
|
2555
2496
|
return encodeURIComponent(r);
|
|
2556
2497
|
} catch (t) {
|
|
@@ -2559,24 +2500,24 @@ var Q = {}, Rt = {
|
|
|
2559
2500
|
}
|
|
2560
2501
|
function b(r) {
|
|
2561
2502
|
for (var t = /([^=?#&]+)=?([^&]*)/g, c = {}, n; n = t.exec(r); ) {
|
|
2562
|
-
var i = g(n[1]),
|
|
2563
|
-
i === null ||
|
|
2503
|
+
var i = g(n[1]), u = g(n[2]);
|
|
2504
|
+
i === null || u === null || i in c || (c[i] = u);
|
|
2564
2505
|
}
|
|
2565
2506
|
return c;
|
|
2566
2507
|
}
|
|
2567
|
-
function
|
|
2508
|
+
function he(r, t) {
|
|
2568
2509
|
t = t || "";
|
|
2569
2510
|
var c = [], n, i;
|
|
2570
2511
|
typeof t != "string" && (t = "?");
|
|
2571
2512
|
for (i in r)
|
|
2572
2513
|
if (m.call(r, i)) {
|
|
2573
|
-
if (n = r[i], !n && (n === null || n ===
|
|
2514
|
+
if (n = r[i], !n && (n === null || n === f || isNaN(n)) && (n = ""), i = P(i), n = P(n), i === null || n === null)
|
|
2574
2515
|
continue;
|
|
2575
2516
|
c.push(i + "=" + n);
|
|
2576
2517
|
}
|
|
2577
2518
|
return c.length ? t + c.join("&") : "";
|
|
2578
2519
|
}
|
|
2579
|
-
var In =
|
|
2520
|
+
var In = he, Dn = b, ne = {
|
|
2580
2521
|
stringify: In,
|
|
2581
2522
|
parse: Dn
|
|
2582
2523
|
}, Be = /[\n\r\t]/g, Un = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, Bn = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, Gn = /^[a-zA-Z]:/, jn = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/;
|
|
@@ -2600,16 +2541,16 @@ var Q = {}, Rt = {
|
|
|
2600
2541
|
typeof window != "undefined" ? t = window : typeof d != "undefined" ? t = d : typeof self != "undefined" ? t = self : t = {};
|
|
2601
2542
|
var c = t.location || {};
|
|
2602
2543
|
r = r || c;
|
|
2603
|
-
var n = {}, i = typeof r,
|
|
2544
|
+
var n = {}, i = typeof r, u;
|
|
2604
2545
|
if (r.protocol === "blob:")
|
|
2605
2546
|
n = new $(unescape(r.pathname), {});
|
|
2606
2547
|
else if (i === "string") {
|
|
2607
2548
|
n = new $(r, {});
|
|
2608
|
-
for (
|
|
2609
|
-
delete n[
|
|
2549
|
+
for (u in Ge)
|
|
2550
|
+
delete n[u];
|
|
2610
2551
|
} else if (i === "object") {
|
|
2611
|
-
for (
|
|
2612
|
-
|
|
2552
|
+
for (u in r)
|
|
2553
|
+
u in Ge || (n[u] = r[u]);
|
|
2613
2554
|
n.slashes === void 0 && (n.slashes = Un.test(r.href));
|
|
2614
2555
|
}
|
|
2615
2556
|
return n;
|
|
@@ -2619,8 +2560,8 @@ var Q = {}, Rt = {
|
|
|
2619
2560
|
}
|
|
2620
2561
|
function We(r, t) {
|
|
2621
2562
|
r = ke(r), r = r.replace(Be, ""), t = t || {};
|
|
2622
|
-
var c = Bn.exec(r), n = c[1] ? c[1].toLowerCase() : "", i = !!c[2],
|
|
2623
|
-
return i ?
|
|
2563
|
+
var c = Bn.exec(r), n = c[1] ? c[1].toLowerCase() : "", i = !!c[2], u = !!c[3], l = 0, T;
|
|
2564
|
+
return i ? u ? (T = c[2] + c[3] + c[4], l = c[2].length + c[3].length) : (T = c[2] + c[4], l = c[2].length) : u ? (T = c[3] + c[4], l = c[3].length) : T = c[4], n === "file:" ? l >= 2 && (T = T.slice(2)) : q(n) ? T = c[4] : n ? i && (T = T.slice(2)) : l >= 2 && q(t.protocol) && (T = c[4]), {
|
|
2624
2565
|
protocol: n,
|
|
2625
2566
|
slashes: i || q(n),
|
|
2626
2567
|
slashesCount: l,
|
|
@@ -2630,22 +2571,22 @@ var Q = {}, Rt = {
|
|
|
2630
2571
|
function Wn(r, t) {
|
|
2631
2572
|
if (r === "")
|
|
2632
2573
|
return t;
|
|
2633
|
-
for (var c = (t || "/").split("/").slice(0, -1).concat(r.split("/")), n = c.length, i = c[n - 1],
|
|
2634
|
-
c[n] === "." ? c.splice(n, 1) : c[n] === ".." ? (c.splice(n, 1), l++) : l && (n === 0 && (
|
|
2635
|
-
return
|
|
2574
|
+
for (var c = (t || "/").split("/").slice(0, -1).concat(r.split("/")), n = c.length, i = c[n - 1], u = false, l = 0; n--; )
|
|
2575
|
+
c[n] === "." ? c.splice(n, 1) : c[n] === ".." ? (c.splice(n, 1), l++) : l && (n === 0 && (u = true), c.splice(n, 1), l--);
|
|
2576
|
+
return u && c.unshift(""), (i === "." || i === "..") && c.push(""), c.join("/");
|
|
2636
2577
|
}
|
|
2637
2578
|
function $(r, t, c) {
|
|
2638
2579
|
if (r = ke(r), r = r.replace(Be, ""), !(this instanceof $))
|
|
2639
2580
|
return new $(r, t, c);
|
|
2640
|
-
var n, i,
|
|
2641
|
-
for (E !== "object" && E !== "string" && (c = t, t = null), c && typeof c != "function" && (c = ne.parse), t = je(t), i = We(r || "", t), n = !i.protocol && !i.slashes,
|
|
2642
|
-
if (l = _[
|
|
2643
|
-
r = l(r,
|
|
2581
|
+
var n, i, u, l, T, k, _ = ge.slice(), E = typeof t, h = this, we = 0;
|
|
2582
|
+
for (E !== "object" && E !== "string" && (c = t, t = null), c && typeof c != "function" && (c = ne.parse), t = je(t), i = We(r || "", t), n = !i.protocol && !i.slashes, h.slashes = i.slashes || n && t.slashes, h.protocol = i.protocol || t.protocol || "", r = i.rest, (i.protocol === "file:" && (i.slashesCount !== 2 || Gn.test(r)) || !i.slashes && (i.protocol || i.slashesCount < 2 || !q(h.protocol))) && (_[3] = [/(.*)/, "pathname"]); we < _.length; we++) {
|
|
2583
|
+
if (l = _[we], typeof l == "function") {
|
|
2584
|
+
r = l(r, h);
|
|
2644
2585
|
continue;
|
|
2645
2586
|
}
|
|
2646
|
-
|
|
2587
|
+
u = l[0], k = l[1], u !== u ? h[k] = r : typeof u == "string" ? (T = u === "@" ? r.lastIndexOf(u) : r.indexOf(u), ~T && (typeof l[2] == "number" ? (h[k] = r.slice(0, T), r = r.slice(T + l[2])) : (h[k] = r.slice(T), r = r.slice(0, T)))) : (T = u.exec(r)) && (h[k] = T[1], r = r.slice(0, T.index)), h[k] = h[k] || n && l[3] && t[k] || "", l[4] && (h[k] = h[k].toLowerCase());
|
|
2647
2588
|
}
|
|
2648
|
-
c && (
|
|
2589
|
+
c && (h.query = c(h.query)), n && t.slashes && h.pathname.charAt(0) !== "/" && (h.pathname !== "" || t.pathname !== "") && (h.pathname = Wn(h.pathname, t.pathname)), h.pathname.charAt(0) !== "/" && q(h.protocol) && (h.pathname = "/" + h.pathname), p(h.port, h.protocol) || (h.host = h.hostname, h.port = ""), h.username = h.password = "", h.auth && (T = h.auth.indexOf(":"), ~T ? (h.username = h.auth.slice(0, T), h.username = encodeURIComponent(decodeURIComponent(h.username)), h.password = h.auth.slice(T + 1), h.password = encodeURIComponent(decodeURIComponent(h.password))) : h.username = encodeURIComponent(decodeURIComponent(h.auth)), h.auth = h.password ? h.username + ":" + h.password : h.username), h.origin = h.protocol !== "file:" && q(h.protocol) && h.host ? h.protocol + "//" + h.host : "null", h.href = h.toString();
|
|
2649
2590
|
}
|
|
2650
2591
|
function Fn(r, t, c) {
|
|
2651
2592
|
var n = this;
|
|
@@ -2654,7 +2595,7 @@ var Q = {}, Rt = {
|
|
|
2654
2595
|
typeof t == "string" && t.length && (t = (c || ne.parse)(t)), n[r] = t;
|
|
2655
2596
|
break;
|
|
2656
2597
|
case "port":
|
|
2657
|
-
n[r] = t,
|
|
2598
|
+
n[r] = t, p(t, n.protocol) ? t && (n.host = n.hostname + ":" + t) : (n.host = n.hostname, n[r] = "");
|
|
2658
2599
|
break;
|
|
2659
2600
|
case "hostname":
|
|
2660
2601
|
n[r] = t, n.port && (t += ":" + n.port), n.host = t;
|
|
@@ -2678,8 +2619,8 @@ var Q = {}, Rt = {
|
|
|
2678
2619
|
n[r] = encodeURIComponent(t);
|
|
2679
2620
|
break;
|
|
2680
2621
|
case "auth":
|
|
2681
|
-
var
|
|
2682
|
-
~
|
|
2622
|
+
var u = t.indexOf(":");
|
|
2623
|
+
~u ? (n.username = t.slice(0, u), n.username = encodeURIComponent(decodeURIComponent(n.username)), n.password = t.slice(u + 1), n.password = encodeURIComponent(decodeURIComponent(n.password))) : n.username = encodeURIComponent(decodeURIComponent(t));
|
|
2683
2624
|
}
|
|
2684
2625
|
for (var l = 0; l < ge.length; l++) {
|
|
2685
2626
|
var T = ge[l];
|
|
@@ -2691,8 +2632,8 @@ var Q = {}, Rt = {
|
|
|
2691
2632
|
(!r || typeof r != "function") && (r = ne.stringify);
|
|
2692
2633
|
var t, c = this, n = c.host, i = c.protocol;
|
|
2693
2634
|
i && i.charAt(i.length - 1) !== ":" && (i += ":");
|
|
2694
|
-
var
|
|
2695
|
-
return c.username ? (
|
|
2635
|
+
var u = i + (c.protocol && c.slashes || q(c.protocol) ? "//" : "");
|
|
2636
|
+
return c.username ? (u += c.username, c.password && (u += ":" + c.password), u += "@") : c.password ? (u += ":" + c.password, u += "@") : c.protocol !== "file:" && q(c.protocol) && !n && c.pathname !== "/" && (u += "@"), n[n.length - 1] === ":" && (n += ":"), u += n + c.pathname, t = typeof c.query == "object" ? r(c.query) : c.query, t && (u += t.charAt(0) !== "?" ? "?" + t : t), c.hash && (u += c.hash), u;
|
|
2696
2637
|
}
|
|
2697
2638
|
$.prototype = { set: Fn, toString: Kn }, $.extractProtocol = We, $.location = je, $.trimLeft = ke, $.qs = ne;
|
|
2698
2639
|
var ye = $;
|
|
@@ -2733,7 +2674,7 @@ var Q = {}, Rt = {
|
|
|
2733
2674
|
}, U.prototype.dispatchEvent = function(t) {
|
|
2734
2675
|
for (var c = this, n = [], i = arguments.length - 1; i-- > 0; )
|
|
2735
2676
|
n[i] = arguments[i + 1];
|
|
2736
|
-
var
|
|
2677
|
+
var u = t.type, l = this.listeners[u];
|
|
2737
2678
|
return Array.isArray(l) ? (l.forEach(function(T) {
|
|
2738
2679
|
n.length > 0 ? T.apply(c, n) : T.call(c, t);
|
|
2739
2680
|
}), true) : false;
|
|
@@ -2765,28 +2706,28 @@ var Q = {}, Rt = {
|
|
|
2765
2706
|
if (n)
|
|
2766
2707
|
return n.server;
|
|
2767
2708
|
}, N.prototype.websocketsLookup = function(t, c, n) {
|
|
2768
|
-
var i = A(t),
|
|
2769
|
-
if (
|
|
2709
|
+
var i = A(t), u, l = this.urlMap[i];
|
|
2710
|
+
if (u = l ? l.websockets : [], c) {
|
|
2770
2711
|
var T = l.roomMemberships[c];
|
|
2771
|
-
|
|
2712
|
+
u = T || [];
|
|
2772
2713
|
}
|
|
2773
|
-
return n ?
|
|
2714
|
+
return n ? u.filter(function(k) {
|
|
2774
2715
|
return k !== n;
|
|
2775
|
-
}) :
|
|
2716
|
+
}) : u;
|
|
2776
2717
|
}, N.prototype.removeServer = function(t) {
|
|
2777
2718
|
delete this.urlMap[A(t)];
|
|
2778
2719
|
}, N.prototype.removeWebSocket = function(t, c) {
|
|
2779
2720
|
var n = A(c), i = this.urlMap[n];
|
|
2780
|
-
i && (i.websockets = Re(i.websockets, function(
|
|
2781
|
-
return
|
|
2721
|
+
i && (i.websockets = Re(i.websockets, function(u) {
|
|
2722
|
+
return u === t;
|
|
2782
2723
|
}));
|
|
2783
2724
|
}, N.prototype.removeMembershipFromRoom = function(t, c) {
|
|
2784
2725
|
var n = this.urlMap[A(t.url)], i = n.roomMemberships[c];
|
|
2785
|
-
n && i !== null && (n.roomMemberships[c] = Re(i, function(
|
|
2786
|
-
return
|
|
2726
|
+
n && i !== null && (n.roomMemberships[c] = Re(i, function(u) {
|
|
2727
|
+
return u === t;
|
|
2787
2728
|
}));
|
|
2788
2729
|
};
|
|
2789
|
-
var
|
|
2730
|
+
var w = new N(), L = {
|
|
2790
2731
|
CLOSE_NORMAL: 1e3,
|
|
2791
2732
|
CLOSE_GOING_AWAY: 1001,
|
|
2792
2733
|
CLOSE_PROTOCOL_ERROR: 1002,
|
|
@@ -2822,8 +2763,8 @@ var Q = {}, Rt = {
|
|
|
2822
2763
|
throw new TypeError(S.EVENT_ERROR + " 1 argument required, but only 0 present.");
|
|
2823
2764
|
if (typeof n != "object")
|
|
2824
2765
|
throw new TypeError(S.EVENT_ERROR + " parameter 2 ('eventInitDict') is not an object.");
|
|
2825
|
-
var i = n.bubbles,
|
|
2826
|
-
this.type = "" + c, this.timeStamp = Date.now(), this.target = null, this.srcElement = null, this.returnValue = true, this.isTrusted = false, this.eventPhase = 0, this.defaultPrevented = false, this.currentTarget = null, this.cancelable =
|
|
2766
|
+
var i = n.bubbles, u = n.cancelable;
|
|
2767
|
+
this.type = "" + c, this.timeStamp = Date.now(), this.target = null, this.srcElement = null, this.returnValue = true, this.isTrusted = false, this.eventPhase = 0, this.defaultPrevented = false, this.currentTarget = null, this.cancelable = u ? Boolean(u) : false, this.cancelBubble = false, this.bubbles = i ? Boolean(i) : false;
|
|
2827
2768
|
}
|
|
2828
2769
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
2829
2770
|
}(B), Jn = function(r) {
|
|
@@ -2832,8 +2773,8 @@ var Q = {}, Rt = {
|
|
|
2832
2773
|
throw new TypeError(S.EVENT.MESSAGE + " 1 argument required, but only 0 present.");
|
|
2833
2774
|
if (typeof n != "object")
|
|
2834
2775
|
throw new TypeError(S.EVENT.MESSAGE + " parameter 2 ('eventInitDict') is not an object");
|
|
2835
|
-
var i = n.bubbles,
|
|
2836
|
-
this.type = "" + c, this.timeStamp = Date.now(), this.target = null, this.srcElement = null, this.returnValue = true, this.isTrusted = false, this.eventPhase = 0, this.defaultPrevented = false, this.currentTarget = null, this.cancelable =
|
|
2776
|
+
var i = n.bubbles, u = n.cancelable, l = n.data, T = n.origin, k = n.lastEventId, _ = n.ports;
|
|
2777
|
+
this.type = "" + c, this.timeStamp = Date.now(), this.target = null, this.srcElement = null, this.returnValue = true, this.isTrusted = false, this.eventPhase = 0, this.defaultPrevented = false, this.currentTarget = null, this.cancelable = u ? Boolean(u) : false, this.canncelBubble = false, this.bubbles = i ? Boolean(i) : false, this.origin = "" + T, this.ports = typeof _ == "undefined" ? null : _, this.data = typeof l == "undefined" ? null : l, this.lastEventId = "" + (k || "");
|
|
2837
2778
|
}
|
|
2838
2779
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
2839
2780
|
}(B), Zn = function(r) {
|
|
@@ -2842,58 +2783,58 @@ var Q = {}, Rt = {
|
|
|
2842
2783
|
throw new TypeError(S.EVENT.CLOSE + " 1 argument required, but only 0 present.");
|
|
2843
2784
|
if (typeof n != "object")
|
|
2844
2785
|
throw new TypeError(S.EVENT.CLOSE + " parameter 2 ('eventInitDict') is not an object");
|
|
2845
|
-
var i = n.bubbles,
|
|
2846
|
-
this.type = "" + c, this.timeStamp = Date.now(), this.target = null, this.srcElement = null, this.returnValue = true, this.isTrusted = false, this.eventPhase = 0, this.defaultPrevented = false, this.currentTarget = null, this.cancelable =
|
|
2786
|
+
var i = n.bubbles, u = n.cancelable, l = n.code, T = n.reason, k = n.wasClean;
|
|
2787
|
+
this.type = "" + c, this.timeStamp = Date.now(), this.target = null, this.srcElement = null, this.returnValue = true, this.isTrusted = false, this.eventPhase = 0, this.defaultPrevented = false, this.currentTarget = null, this.cancelable = u ? Boolean(u) : false, this.cancelBubble = false, this.bubbles = i ? Boolean(i) : false, this.code = typeof l == "number" ? parseInt(l, 10) : 0, this.reason = "" + (T || ""), this.wasClean = k ? Boolean(k) : false;
|
|
2847
2788
|
}
|
|
2848
2789
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
2849
2790
|
}(B);
|
|
2850
|
-
function
|
|
2791
|
+
function x(r) {
|
|
2851
2792
|
var t = r.type, c = r.target, n = new Hn(t);
|
|
2852
2793
|
return c && (n.target = c, n.srcElement = c, n.currentTarget = c), n;
|
|
2853
2794
|
}
|
|
2854
2795
|
function J(r) {
|
|
2855
|
-
var t = r.type, c = r.origin, n = r.data, i = r.target,
|
|
2796
|
+
var t = r.type, c = r.origin, n = r.data, i = r.target, u = new Jn(t, {
|
|
2856
2797
|
data: n,
|
|
2857
2798
|
origin: c
|
|
2858
2799
|
});
|
|
2859
|
-
return i && (
|
|
2800
|
+
return i && (u.target = i, u.srcElement = i, u.currentTarget = i), u;
|
|
2860
2801
|
}
|
|
2861
2802
|
function O(r) {
|
|
2862
|
-
var t = r.code, c = r.reason, n = r.type, i = r.target,
|
|
2863
|
-
|
|
2803
|
+
var t = r.code, c = r.reason, n = r.type, i = r.target, u = r.wasClean;
|
|
2804
|
+
u || (u = t === L.CLOSE_NORMAL || t === L.CLOSE_NO_STATUS);
|
|
2864
2805
|
var l = new Zn(n, {
|
|
2865
2806
|
code: t,
|
|
2866
2807
|
reason: c,
|
|
2867
|
-
wasClean:
|
|
2808
|
+
wasClean: u
|
|
2868
2809
|
});
|
|
2869
2810
|
return i && (l.target = i, l.srcElement = i, l.currentTarget = i), l;
|
|
2870
2811
|
}
|
|
2871
2812
|
function Fe(r, t, c) {
|
|
2872
2813
|
r.readyState = C.CLOSING;
|
|
2873
|
-
var n =
|
|
2814
|
+
var n = w.serverLookup(r.url), i = O({
|
|
2874
2815
|
type: "close",
|
|
2875
2816
|
target: r.target,
|
|
2876
2817
|
code: t,
|
|
2877
2818
|
reason: c
|
|
2878
2819
|
});
|
|
2879
2820
|
H(function() {
|
|
2880
|
-
|
|
2821
|
+
w.removeWebSocket(r, r.url), r.readyState = C.CLOSED, r.dispatchEvent(i), n && n.dispatchEvent(i, n);
|
|
2881
2822
|
}, r);
|
|
2882
2823
|
}
|
|
2883
2824
|
function zn(r, t, c) {
|
|
2884
2825
|
r.readyState = C.CLOSING;
|
|
2885
|
-
var n =
|
|
2826
|
+
var n = w.serverLookup(r.url), i = O({
|
|
2886
2827
|
type: "close",
|
|
2887
2828
|
target: r.target,
|
|
2888
2829
|
code: t,
|
|
2889
2830
|
reason: c,
|
|
2890
2831
|
wasClean: false
|
|
2891
|
-
}),
|
|
2832
|
+
}), u = x({
|
|
2892
2833
|
type: "error",
|
|
2893
2834
|
target: r.target
|
|
2894
2835
|
});
|
|
2895
2836
|
H(function() {
|
|
2896
|
-
|
|
2837
|
+
w.removeWebSocket(r, r.url), r.readyState = C.CLOSED, r.dispatchEvent(u), r.dispatchEvent(i), n && n.dispatchEvent(i, n);
|
|
2897
2838
|
}, r);
|
|
2898
2839
|
}
|
|
2899
2840
|
function se(r) {
|
|
@@ -2908,7 +2849,7 @@ var Q = {}, Rt = {
|
|
|
2908
2849
|
if (i === "close")
|
|
2909
2850
|
return function(T) {
|
|
2910
2851
|
T === void 0 && (T = {});
|
|
2911
|
-
var k = T.code ||
|
|
2852
|
+
var k = T.code || L.CLOSE_NORMAL, _ = T.reason || "";
|
|
2912
2853
|
Fe(t, k, _);
|
|
2913
2854
|
};
|
|
2914
2855
|
if (i === "send")
|
|
@@ -2922,13 +2863,13 @@ var Q = {}, Rt = {
|
|
|
2922
2863
|
})
|
|
2923
2864
|
);
|
|
2924
2865
|
};
|
|
2925
|
-
var
|
|
2866
|
+
var u = function(l) {
|
|
2926
2867
|
return l === "message" ? "server::" + l : l;
|
|
2927
2868
|
};
|
|
2928
2869
|
return i === "on" ? function(T, k) {
|
|
2929
|
-
r.addEventListener(
|
|
2870
|
+
r.addEventListener(u(T), k);
|
|
2930
2871
|
} : i === "off" ? function(T, k) {
|
|
2931
|
-
r.removeEventListener(
|
|
2872
|
+
r.removeEventListener(u(T), k);
|
|
2932
2873
|
} : i === "target" ? r : n[i];
|
|
2933
2874
|
}
|
|
2934
2875
|
});
|
|
@@ -2972,7 +2913,7 @@ var Q = {}, Rt = {
|
|
|
2972
2913
|
var C = function(r) {
|
|
2973
2914
|
function t(n, i) {
|
|
2974
2915
|
r.call(this), this._onopen = null, this._onmessage = null, this._onerror = null, this._onclose = null, this.url = Qn(n), i = Xn(i), this.protocol = i[0] || "", this.binaryType = "blob", this.readyState = t.CONNECTING;
|
|
2975
|
-
var
|
|
2916
|
+
var u = Ke(this), l = w.attachWebSocket(u, this.url);
|
|
2976
2917
|
H(function() {
|
|
2977
2918
|
if (this.readyState === t.CONNECTING)
|
|
2978
2919
|
if (l)
|
|
@@ -2980,20 +2921,20 @@ var Q = {}, Rt = {
|
|
|
2980
2921
|
this.readyState = t.CLOSED, te(
|
|
2981
2922
|
"error",
|
|
2982
2923
|
"WebSocket connection to '" + this.url + "' failed: HTTP Authentication failed; no valid credentials available"
|
|
2983
|
-
),
|
|
2924
|
+
), w.removeWebSocket(u, this.url), this.dispatchEvent(x({ type: "error", target: this })), this.dispatchEvent(O({ type: "close", target: this, code: L.CLOSE_NORMAL }));
|
|
2984
2925
|
else {
|
|
2985
2926
|
if (l.options.selectProtocol && typeof l.options.selectProtocol == "function") {
|
|
2986
2927
|
var k = l.options.selectProtocol(i), _ = k !== "", E = i.indexOf(k) !== -1;
|
|
2987
2928
|
if (_ && !E) {
|
|
2988
|
-
this.readyState = t.CLOSED, te("error", "WebSocket connection to '" + this.url + "' failed: Invalid Sub-Protocol"),
|
|
2929
|
+
this.readyState = t.CLOSED, te("error", "WebSocket connection to '" + this.url + "' failed: Invalid Sub-Protocol"), w.removeWebSocket(u, this.url), this.dispatchEvent(x({ type: "error", target: this })), this.dispatchEvent(O({ type: "close", target: this, code: L.CLOSE_NORMAL }));
|
|
2989
2930
|
return;
|
|
2990
2931
|
}
|
|
2991
2932
|
this.protocol = k;
|
|
2992
2933
|
}
|
|
2993
|
-
this.readyState = t.OPEN, this.dispatchEvent(
|
|
2934
|
+
this.readyState = t.OPEN, this.dispatchEvent(x({ type: "open", target: this })), l.dispatchEvent(x({ type: "connection" }), u);
|
|
2994
2935
|
}
|
|
2995
2936
|
else
|
|
2996
|
-
this.readyState = t.CLOSED, this.dispatchEvent(
|
|
2937
|
+
this.readyState = t.CLOSED, this.dispatchEvent(x({ type: "error", target: this })), this.dispatchEvent(O({ type: "close", target: this, code: L.CLOSE_NORMAL })), te("error", "WebSocket connection to '" + this.url + "' failed");
|
|
2997
2938
|
}, this);
|
|
2998
2939
|
}
|
|
2999
2940
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
@@ -3015,51 +2956,51 @@ var Q = {}, Rt = {
|
|
|
3015
2956
|
}, c.onerror.set = function(n) {
|
|
3016
2957
|
this.removeEventListener("error", this._onerror), this._onerror = n, this.addEventListener("error", n);
|
|
3017
2958
|
}, t.prototype.send = function(i) {
|
|
3018
|
-
var
|
|
2959
|
+
var u = this;
|
|
3019
2960
|
if (this.readyState === t.CONNECTING)
|
|
3020
2961
|
throw new Error("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state");
|
|
3021
2962
|
var l = J({
|
|
3022
2963
|
type: "server::message",
|
|
3023
2964
|
origin: this.url,
|
|
3024
2965
|
data: se(i)
|
|
3025
|
-
}), T =
|
|
2966
|
+
}), T = w.serverLookup(this.url);
|
|
3026
2967
|
T && H(function() {
|
|
3027
|
-
|
|
2968
|
+
u.dispatchEvent(l, i);
|
|
3028
2969
|
}, T);
|
|
3029
|
-
}, t.prototype.close = function(i,
|
|
2970
|
+
}, t.prototype.close = function(i, u) {
|
|
3030
2971
|
if (i !== void 0 && (typeof i != "number" || i !== 1e3 && (i < 3e3 || i > 4999)))
|
|
3031
2972
|
throw new TypeError(
|
|
3032
2973
|
S.CLOSE_ERROR + " The code must be either 1000, or between 3000 and 4999. " + i + " is neither."
|
|
3033
2974
|
);
|
|
3034
|
-
if (
|
|
3035
|
-
var l = Yn(
|
|
2975
|
+
if (u !== void 0) {
|
|
2976
|
+
var l = Yn(u);
|
|
3036
2977
|
if (l > 123)
|
|
3037
2978
|
throw new SyntaxError(S.CLOSE_ERROR + " The message must not be greater than 123 bytes.");
|
|
3038
2979
|
}
|
|
3039
2980
|
if (!(this.readyState === t.CLOSING || this.readyState === t.CLOSED)) {
|
|
3040
2981
|
var T = Ke(this);
|
|
3041
|
-
this.readyState === t.CONNECTING ? zn(T, i ||
|
|
2982
|
+
this.readyState === t.CONNECTING ? zn(T, i || L.CLOSE_ABNORMAL, u) : Fe(T, i || L.CLOSE_NO_STATUS, u);
|
|
3042
2983
|
}
|
|
3043
2984
|
}, Object.defineProperties(t.prototype, c), t;
|
|
3044
2985
|
}(U);
|
|
3045
2986
|
C.CONNECTING = 0, C.prototype.CONNECTING = C.CONNECTING, C.OPEN = 1, C.prototype.OPEN = C.OPEN, C.CLOSING = 2, C.prototype.CLOSING = C.CLOSING, C.CLOSED = 3, C.prototype.CLOSED = C.CLOSED;
|
|
3046
2987
|
var G = function(r) {
|
|
3047
2988
|
function t(n, i) {
|
|
3048
|
-
var
|
|
2989
|
+
var u = this;
|
|
3049
2990
|
n === void 0 && (n = "socket.io"), i === void 0 && (i = ""), r.call(this), this.binaryType = "blob";
|
|
3050
2991
|
var l = new ye(n);
|
|
3051
2992
|
l.pathname || (l.pathname = "/"), this.url = l.toString(), this.readyState = t.CONNECTING, this.protocol = "", this.target = this, typeof i == "string" || typeof i == "object" && i !== null ? this.protocol = i : Array.isArray(i) && i.length > 0 && (this.protocol = i[0]);
|
|
3052
|
-
var T =
|
|
2993
|
+
var T = w.attachWebSocket(this, this.url);
|
|
3053
2994
|
H(function() {
|
|
3054
|
-
T ? (this.readyState = t.OPEN, T.dispatchEvent(
|
|
2995
|
+
T ? (this.readyState = t.OPEN, T.dispatchEvent(x({ type: "connection" }), T, this), T.dispatchEvent(x({ type: "connect" }), T, this), this.dispatchEvent(x({ type: "connect", target: this }))) : (this.readyState = t.CLOSED, this.dispatchEvent(x({ type: "error", target: this })), this.dispatchEvent(
|
|
3055
2996
|
O({
|
|
3056
2997
|
type: "close",
|
|
3057
2998
|
target: this,
|
|
3058
|
-
code:
|
|
2999
|
+
code: L.CLOSE_NORMAL
|
|
3059
3000
|
})
|
|
3060
3001
|
), te("error", "Socket.io connection to '" + this.url + "' failed"));
|
|
3061
3002
|
}, this), this.addEventListener("close", function(k) {
|
|
3062
|
-
|
|
3003
|
+
u.dispatchEvent(
|
|
3063
3004
|
O({
|
|
3064
3005
|
type: "disconnect",
|
|
3065
3006
|
target: k.target,
|
|
@@ -3072,18 +3013,18 @@ var Q = {}, Rt = {
|
|
|
3072
3013
|
var c = { broadcast: {} };
|
|
3073
3014
|
return t.prototype.close = function() {
|
|
3074
3015
|
if (this.readyState === t.OPEN) {
|
|
3075
|
-
var i =
|
|
3076
|
-
return
|
|
3016
|
+
var i = w.serverLookup(this.url);
|
|
3017
|
+
return w.removeWebSocket(this, this.url), this.readyState = t.CLOSED, this.dispatchEvent(
|
|
3077
3018
|
O({
|
|
3078
3019
|
type: "close",
|
|
3079
3020
|
target: this,
|
|
3080
|
-
code:
|
|
3021
|
+
code: L.CLOSE_NORMAL
|
|
3081
3022
|
})
|
|
3082
3023
|
), i && i.dispatchEvent(
|
|
3083
3024
|
O({
|
|
3084
3025
|
type: "disconnect",
|
|
3085
3026
|
target: this,
|
|
3086
|
-
code:
|
|
3027
|
+
code: L.CLOSE_NORMAL
|
|
3087
3028
|
}),
|
|
3088
3029
|
i
|
|
3089
3030
|
), this;
|
|
@@ -3091,27 +3032,27 @@ var Q = {}, Rt = {
|
|
|
3091
3032
|
}, t.prototype.disconnect = function() {
|
|
3092
3033
|
return this.close();
|
|
3093
3034
|
}, t.prototype.emit = function(i) {
|
|
3094
|
-
for (var
|
|
3095
|
-
|
|
3035
|
+
for (var u = [], l = arguments.length - 1; l-- > 0; )
|
|
3036
|
+
u[l] = arguments[l + 1];
|
|
3096
3037
|
if (this.readyState !== t.OPEN)
|
|
3097
3038
|
throw new Error("SocketIO is already in CLOSING or CLOSED state");
|
|
3098
3039
|
var T = J({
|
|
3099
3040
|
type: i,
|
|
3100
3041
|
origin: this.url,
|
|
3101
|
-
data:
|
|
3102
|
-
}), k =
|
|
3103
|
-
return k && k.dispatchEvent.apply(k, [T].concat(
|
|
3042
|
+
data: u
|
|
3043
|
+
}), k = w.serverLookup(this.url);
|
|
3044
|
+
return k && k.dispatchEvent.apply(k, [T].concat(u)), this;
|
|
3104
3045
|
}, t.prototype.send = function(i) {
|
|
3105
3046
|
return this.emit("message", i), this;
|
|
3106
3047
|
}, c.broadcast.get = function() {
|
|
3107
3048
|
if (this.readyState !== t.OPEN)
|
|
3108
3049
|
throw new Error("SocketIO is already in CLOSING or CLOSED state");
|
|
3109
|
-
var n = this, i =
|
|
3050
|
+
var n = this, i = w.serverLookup(this.url);
|
|
3110
3051
|
if (!i)
|
|
3111
3052
|
throw new Error("SocketIO can not find a server at the specified URL (" + this.url + ")");
|
|
3112
3053
|
return {
|
|
3113
3054
|
emit: function(l, T) {
|
|
3114
|
-
return i.emit(l, T, { websockets:
|
|
3055
|
+
return i.emit(l, T, { websockets: w.websocketsLookup(n.url, null, n) }), n;
|
|
3115
3056
|
},
|
|
3116
3057
|
to: function(l) {
|
|
3117
3058
|
return i.to(l, n);
|
|
@@ -3120,29 +3061,29 @@ var Q = {}, Rt = {
|
|
|
3120
3061
|
return i.in(l, n);
|
|
3121
3062
|
}
|
|
3122
3063
|
};
|
|
3123
|
-
}, t.prototype.on = function(i,
|
|
3124
|
-
return this.addEventListener(i,
|
|
3125
|
-
}, t.prototype.off = function(i,
|
|
3126
|
-
this.removeEventListener(i,
|
|
3064
|
+
}, t.prototype.on = function(i, u) {
|
|
3065
|
+
return this.addEventListener(i, u), this;
|
|
3066
|
+
}, t.prototype.off = function(i, u) {
|
|
3067
|
+
this.removeEventListener(i, u);
|
|
3127
3068
|
}, t.prototype.hasListeners = function(i) {
|
|
3128
|
-
var
|
|
3129
|
-
return Array.isArray(
|
|
3069
|
+
var u = this.listeners[i];
|
|
3070
|
+
return Array.isArray(u) ? !!u.length : false;
|
|
3130
3071
|
}, t.prototype.join = function(i) {
|
|
3131
|
-
|
|
3072
|
+
w.addMembershipToRoom(this, i);
|
|
3132
3073
|
}, t.prototype.leave = function(i) {
|
|
3133
|
-
|
|
3074
|
+
w.removeMembershipFromRoom(this, i);
|
|
3134
3075
|
}, t.prototype.to = function(i) {
|
|
3135
3076
|
return this.broadcast.to(i);
|
|
3136
3077
|
}, t.prototype.in = function() {
|
|
3137
3078
|
return this.to.apply(null, arguments);
|
|
3138
3079
|
}, t.prototype.dispatchEvent = function(i) {
|
|
3139
|
-
for (var
|
|
3080
|
+
for (var u = this, l = [], T = arguments.length - 1; T-- > 0; )
|
|
3140
3081
|
l[T] = arguments[T + 1];
|
|
3141
3082
|
var k = i.type, _ = this.listeners[k];
|
|
3142
3083
|
if (!Array.isArray(_))
|
|
3143
3084
|
return false;
|
|
3144
3085
|
_.forEach(function(E) {
|
|
3145
|
-
l.length > 0 ? E.apply(
|
|
3086
|
+
l.length > 0 ? E.apply(u, l) : E.call(u, i.data ? i.data : i);
|
|
3146
3087
|
});
|
|
3147
3088
|
}, Object.defineProperties(t.prototype, c), t;
|
|
3148
3089
|
}(U);
|
|
@@ -3165,14 +3106,14 @@ var Q = {}, Rt = {
|
|
|
3165
3106
|
mock: true,
|
|
3166
3107
|
verifyClient: null,
|
|
3167
3108
|
selectProtocol: null
|
|
3168
|
-
},
|
|
3109
|
+
}, Pe = function(r) {
|
|
3169
3110
|
function t(c, n) {
|
|
3170
3111
|
n === void 0 && (n = He), r.call(this);
|
|
3171
3112
|
var i = new ye(c);
|
|
3172
3113
|
i.pathname || (i.pathname = "/"), this.url = i.toString(), this.originalWebSocket = null;
|
|
3173
|
-
var
|
|
3174
|
-
if (!
|
|
3175
|
-
throw this.dispatchEvent(
|
|
3114
|
+
var u = w.attachServer(this, this.url);
|
|
3115
|
+
if (!u)
|
|
3116
|
+
throw this.dispatchEvent(x({ type: "error" })), new Error("A mock server is already listening on this url");
|
|
3176
3117
|
this.options = Object.assign({}, He, n), this.options.mock && this.mockWebsocket();
|
|
3177
3118
|
}
|
|
3178
3119
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.mockWebsocket = function() {
|
|
@@ -3183,32 +3124,32 @@ var Q = {}, Rt = {
|
|
|
3183
3124
|
this.originalWebSocket !== null && (n.WebSocket = this.originalWebSocket), this.originalWebSocket = null;
|
|
3184
3125
|
}, t.prototype.stop = function(n) {
|
|
3185
3126
|
n === void 0 && (n = function() {
|
|
3186
|
-
}), this.options.mock && this.restoreWebsocket(),
|
|
3127
|
+
}), this.options.mock && this.restoreWebsocket(), w.removeServer(this.url), typeof n == "function" && n();
|
|
3187
3128
|
}, t.prototype.on = function(n, i) {
|
|
3188
3129
|
this.addEventListener(n, i);
|
|
3189
3130
|
}, t.prototype.off = function(n, i) {
|
|
3190
3131
|
this.removeEventListener(n, i);
|
|
3191
3132
|
}, t.prototype.close = function(n) {
|
|
3192
3133
|
n === void 0 && (n = {});
|
|
3193
|
-
var i = n.code,
|
|
3194
|
-
|
|
3134
|
+
var i = n.code, u = n.reason, l = n.wasClean, T = w.websocketsLookup(this.url);
|
|
3135
|
+
w.removeServer(this.url), T.forEach(function(k) {
|
|
3195
3136
|
k.readyState = C.CLOSED, k.dispatchEvent(
|
|
3196
3137
|
O({
|
|
3197
3138
|
type: "close",
|
|
3198
3139
|
target: k.target,
|
|
3199
|
-
code: i ||
|
|
3200
|
-
reason:
|
|
3140
|
+
code: i || L.CLOSE_NORMAL,
|
|
3141
|
+
reason: u || "",
|
|
3201
3142
|
wasClean: l
|
|
3202
3143
|
})
|
|
3203
3144
|
);
|
|
3204
3145
|
}), this.dispatchEvent(O({ type: "close" }), this);
|
|
3205
|
-
}, t.prototype.emit = function(n, i,
|
|
3146
|
+
}, t.prototype.emit = function(n, i, u) {
|
|
3206
3147
|
var l = this;
|
|
3207
|
-
|
|
3208
|
-
var T =
|
|
3209
|
-
T || (T =
|
|
3148
|
+
u === void 0 && (u = {});
|
|
3149
|
+
var T = u.websockets;
|
|
3150
|
+
T || (T = w.websocketsLookup(this.url));
|
|
3210
3151
|
var k;
|
|
3211
|
-
typeof
|
|
3152
|
+
typeof u != "object" || arguments.length > 3 ? (i = Array.prototype.slice.call(arguments, 1, arguments.length), k = i.map(function(_) {
|
|
3212
3153
|
return se(_);
|
|
3213
3154
|
})) : k = se(i), T.forEach(function(_) {
|
|
3214
3155
|
var E = _ instanceof G ? i : k;
|
|
@@ -3230,17 +3171,17 @@ var Q = {}, Rt = {
|
|
|
3230
3171
|
);
|
|
3231
3172
|
});
|
|
3232
3173
|
}, t.prototype.clients = function() {
|
|
3233
|
-
return
|
|
3234
|
-
}, t.prototype.to = function(n, i,
|
|
3174
|
+
return w.websocketsLookup(this.url);
|
|
3175
|
+
}, t.prototype.to = function(n, i, u) {
|
|
3235
3176
|
var l = this;
|
|
3236
|
-
|
|
3237
|
-
var T = this, k = et(
|
|
3177
|
+
u === void 0 && (u = []);
|
|
3178
|
+
var T = this, k = et(u.concat(w.websocketsLookup(this.url, n, i)));
|
|
3238
3179
|
return {
|
|
3239
3180
|
to: function(_, E) {
|
|
3240
3181
|
return l.to.call(l, _, E, k);
|
|
3241
3182
|
},
|
|
3242
|
-
emit: function(E,
|
|
3243
|
-
T.emit(E,
|
|
3183
|
+
emit: function(E, h) {
|
|
3184
|
+
T.emit(E, h, { websockets: k });
|
|
3244
3185
|
}
|
|
3245
3186
|
};
|
|
3246
3187
|
}, t.prototype.in = function() {
|
|
@@ -3248,25 +3189,25 @@ var Q = {}, Rt = {
|
|
|
3248
3189
|
n[i] = arguments[i];
|
|
3249
3190
|
return this.to.apply(null, n);
|
|
3250
3191
|
}, t.prototype.simulate = function(n) {
|
|
3251
|
-
var i =
|
|
3252
|
-
n === "error" && i.forEach(function(
|
|
3253
|
-
|
|
3192
|
+
var i = w.websocketsLookup(this.url);
|
|
3193
|
+
n === "error" && i.forEach(function(u) {
|
|
3194
|
+
u.readyState = C.CLOSED, u.dispatchEvent(x({ type: "error", target: u.target }));
|
|
3254
3195
|
});
|
|
3255
3196
|
}, t;
|
|
3256
3197
|
}(U);
|
|
3257
|
-
|
|
3258
|
-
return new
|
|
3198
|
+
Pe.of = function(t) {
|
|
3199
|
+
return new Pe(t);
|
|
3259
3200
|
};
|
|
3260
|
-
var nt =
|
|
3201
|
+
var nt = Pe, tt = C, st = _e;
|
|
3261
3202
|
a.Server = nt, a.WebSocket = tt, a.SocketIO = st, Object.defineProperty(a, "__esModule", { value: true });
|
|
3262
3203
|
});
|
|
3263
3204
|
})(Rt, Q);
|
|
3264
|
-
var
|
|
3205
|
+
var xe = {}, vt = {
|
|
3265
3206
|
get exports() {
|
|
3266
|
-
return
|
|
3207
|
+
return xe;
|
|
3267
3208
|
},
|
|
3268
3209
|
set exports(e) {
|
|
3269
|
-
|
|
3210
|
+
xe = e;
|
|
3270
3211
|
}
|
|
3271
3212
|
}, W = typeof Reflect == "object" ? Reflect : null, nn = W && typeof W.apply == "function" ? W.apply : function(e, s, a) {
|
|
3272
3213
|
return Function.prototype.apply.call(e, s, a);
|
|
@@ -3286,7 +3227,7 @@ function v() {
|
|
|
3286
3227
|
v.init.call(this);
|
|
3287
3228
|
}
|
|
3288
3229
|
vt.exports = v;
|
|
3289
|
-
|
|
3230
|
+
xe.once = Et;
|
|
3290
3231
|
v.EventEmitter = v;
|
|
3291
3232
|
v.prototype._events = void 0;
|
|
3292
3233
|
v.prototype._eventsCount = 0;
|
|
@@ -3324,40 +3265,40 @@ v.prototype.getMaxListeners = function() {
|
|
|
3324
3265
|
v.prototype.emit = function(e) {
|
|
3325
3266
|
for (var s = [], a = 1; a < arguments.length; a++)
|
|
3326
3267
|
s.push(arguments[a]);
|
|
3327
|
-
var d = e === "error",
|
|
3328
|
-
if (
|
|
3329
|
-
d = d &&
|
|
3268
|
+
var d = e === "error", p = this._events;
|
|
3269
|
+
if (p !== void 0)
|
|
3270
|
+
d = d && p.error === void 0;
|
|
3330
3271
|
else if (!d)
|
|
3331
3272
|
return false;
|
|
3332
3273
|
if (d) {
|
|
3333
3274
|
var m;
|
|
3334
3275
|
if (s.length > 0 && (m = s[0]), m instanceof Error)
|
|
3335
3276
|
throw m;
|
|
3336
|
-
var
|
|
3337
|
-
throw
|
|
3277
|
+
var f = new Error("Unhandled error." + (m ? " (" + m.message + ")" : ""));
|
|
3278
|
+
throw f.context = m, f;
|
|
3338
3279
|
}
|
|
3339
|
-
var g =
|
|
3280
|
+
var g = p[e];
|
|
3340
3281
|
if (g === void 0)
|
|
3341
3282
|
return false;
|
|
3342
3283
|
if (typeof g == "function")
|
|
3343
3284
|
nn(g, this, s);
|
|
3344
3285
|
else
|
|
3345
|
-
for (var
|
|
3286
|
+
for (var P = g.length, b = wn(g, P), a = 0; a < P; ++a)
|
|
3346
3287
|
nn(b[a], this, s);
|
|
3347
3288
|
return true;
|
|
3348
3289
|
};
|
|
3349
3290
|
function Rn(e, s, a, d) {
|
|
3350
|
-
var
|
|
3291
|
+
var p, m, f;
|
|
3351
3292
|
if (Te(a), m = e._events, m === void 0 ? (m = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (m.newListener !== void 0 && (e.emit(
|
|
3352
3293
|
"newListener",
|
|
3353
3294
|
s,
|
|
3354
3295
|
a.listener ? a.listener : a
|
|
3355
|
-
), m = e._events),
|
|
3356
|
-
|
|
3357
|
-
else if (typeof
|
|
3358
|
-
|
|
3359
|
-
var g = new Error("Possible EventEmitter memory leak detected. " +
|
|
3360
|
-
g.name = "MaxListenersExceededWarning", g.emitter = e, g.type = s, g.count =
|
|
3296
|
+
), m = e._events), f = m[s]), f === void 0)
|
|
3297
|
+
f = m[s] = a, ++e._eventsCount;
|
|
3298
|
+
else if (typeof f == "function" ? f = m[s] = d ? [a, f] : [f, a] : d ? f.unshift(a) : f.push(a), p = yn(e), p > 0 && f.length > p && !f.warned) {
|
|
3299
|
+
f.warned = true;
|
|
3300
|
+
var g = new Error("Possible EventEmitter memory leak detected. " + f.length + " " + String(s) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
3301
|
+
g.name = "MaxListenersExceededWarning", g.emitter = e, g.type = s, g.count = f.length, _t(g);
|
|
3361
3302
|
}
|
|
3362
3303
|
return e;
|
|
3363
3304
|
}
|
|
@@ -3368,13 +3309,13 @@ v.prototype.on = v.prototype.addListener;
|
|
|
3368
3309
|
v.prototype.prependListener = function(e, s) {
|
|
3369
3310
|
return Rn(this, e, s, true);
|
|
3370
3311
|
};
|
|
3371
|
-
function
|
|
3312
|
+
function Pt() {
|
|
3372
3313
|
if (!this.fired)
|
|
3373
3314
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = true, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
3374
3315
|
}
|
|
3375
3316
|
function vn(e, s, a) {
|
|
3376
|
-
var d = { fired: false, wrapFn: void 0, target: e, type: s, listener: a },
|
|
3377
|
-
return
|
|
3317
|
+
var d = { fired: false, wrapFn: void 0, target: e, type: s, listener: a }, p = Pt.bind(d);
|
|
3318
|
+
return p.listener = a, d.wrapFn = p, p;
|
|
3378
3319
|
}
|
|
3379
3320
|
v.prototype.once = function(e, s) {
|
|
3380
3321
|
return Te(s), this.on(e, vn(this, e, s)), this;
|
|
@@ -3383,7 +3324,7 @@ v.prototype.prependOnceListener = function(e, s) {
|
|
|
3383
3324
|
return Te(s), this.prependListener(e, vn(this, e, s)), this;
|
|
3384
3325
|
};
|
|
3385
3326
|
v.prototype.removeListener = function(e, s) {
|
|
3386
|
-
var a, d,
|
|
3327
|
+
var a, d, p, m, f;
|
|
3387
3328
|
if (Te(s), d = this._events, d === void 0)
|
|
3388
3329
|
return this;
|
|
3389
3330
|
if (a = d[e], a === void 0)
|
|
@@ -3391,14 +3332,14 @@ v.prototype.removeListener = function(e, s) {
|
|
|
3391
3332
|
if (a === s || a.listener === s)
|
|
3392
3333
|
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete d[e], d.removeListener && this.emit("removeListener", e, a.listener || s));
|
|
3393
3334
|
else if (typeof a != "function") {
|
|
3394
|
-
for (
|
|
3335
|
+
for (p = -1, m = a.length - 1; m >= 0; m--)
|
|
3395
3336
|
if (a[m] === s || a[m].listener === s) {
|
|
3396
|
-
|
|
3337
|
+
f = a[m].listener, p = m;
|
|
3397
3338
|
break;
|
|
3398
3339
|
}
|
|
3399
|
-
if (
|
|
3340
|
+
if (p < 0)
|
|
3400
3341
|
return this;
|
|
3401
|
-
|
|
3342
|
+
p === 0 ? a.shift() : wt(a, p), a.length === 1 && (d[e] = a[0]), d.removeListener !== void 0 && this.emit("removeListener", e, f || s);
|
|
3402
3343
|
}
|
|
3403
3344
|
return this;
|
|
3404
3345
|
};
|
|
@@ -3410,9 +3351,9 @@ v.prototype.removeAllListeners = function(e) {
|
|
|
3410
3351
|
if (a.removeListener === void 0)
|
|
3411
3352
|
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : a[e] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete a[e]), this;
|
|
3412
3353
|
if (arguments.length === 0) {
|
|
3413
|
-
var
|
|
3414
|
-
for (d = 0; d <
|
|
3415
|
-
m =
|
|
3354
|
+
var p = Object.keys(a), m;
|
|
3355
|
+
for (d = 0; d < p.length; ++d)
|
|
3356
|
+
m = p[d], m !== "removeListener" && this.removeAllListeners(m);
|
|
3416
3357
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
3417
3358
|
}
|
|
3418
3359
|
if (s = a[e], typeof s == "function")
|
|
@@ -3426,8 +3367,8 @@ function _n(e, s, a) {
|
|
|
3426
3367
|
var d = e._events;
|
|
3427
3368
|
if (d === void 0)
|
|
3428
3369
|
return [];
|
|
3429
|
-
var
|
|
3430
|
-
return
|
|
3370
|
+
var p = d[s];
|
|
3371
|
+
return p === void 0 ? [] : typeof p == "function" ? a ? [p.listener || p] : [p] : a ? Ct(p) : wn(p, p.length);
|
|
3431
3372
|
}
|
|
3432
3373
|
v.prototype.listeners = function(e) {
|
|
3433
3374
|
return _n(this, e, true);
|
|
@@ -3436,10 +3377,10 @@ v.prototype.rawListeners = function(e) {
|
|
|
3436
3377
|
return _n(this, e, false);
|
|
3437
3378
|
};
|
|
3438
3379
|
v.listenerCount = function(e, s) {
|
|
3439
|
-
return typeof e.listenerCount == "function" ? e.listenerCount(s) :
|
|
3380
|
+
return typeof e.listenerCount == "function" ? e.listenerCount(s) : Pn.call(e, s);
|
|
3440
3381
|
};
|
|
3441
|
-
v.prototype.listenerCount =
|
|
3442
|
-
function
|
|
3382
|
+
v.prototype.listenerCount = Pn;
|
|
3383
|
+
function Pn(e) {
|
|
3443
3384
|
var s = this._events;
|
|
3444
3385
|
if (s !== void 0) {
|
|
3445
3386
|
var a = s[e];
|
|
@@ -3453,12 +3394,12 @@ function wn(e) {
|
|
|
3453
3394
|
v.prototype.eventNames = function() {
|
|
3454
3395
|
return this._eventsCount > 0 ? ae(this._events) : [];
|
|
3455
3396
|
};
|
|
3456
|
-
function
|
|
3397
|
+
function wn(e, s) {
|
|
3457
3398
|
for (var a = new Array(s), d = 0; d < s; ++d)
|
|
3458
3399
|
a[d] = e[d];
|
|
3459
3400
|
return a;
|
|
3460
3401
|
}
|
|
3461
|
-
function
|
|
3402
|
+
function wt(e, s) {
|
|
3462
3403
|
for (; s + 1 < e.length; s++)
|
|
3463
3404
|
e[s] = e[s + 1];
|
|
3464
3405
|
e.pop();
|
|
@@ -3470,13 +3411,13 @@ function Ct(e) {
|
|
|
3470
3411
|
}
|
|
3471
3412
|
function Et(e, s) {
|
|
3472
3413
|
return new Promise(function(a, d) {
|
|
3473
|
-
function
|
|
3474
|
-
e.removeListener(s, m), d(
|
|
3414
|
+
function p(f) {
|
|
3415
|
+
e.removeListener(s, m), d(f);
|
|
3475
3416
|
}
|
|
3476
3417
|
function m() {
|
|
3477
|
-
typeof e.removeListener == "function" && e.removeListener("error",
|
|
3418
|
+
typeof e.removeListener == "function" && e.removeListener("error", p), a([].slice.call(arguments));
|
|
3478
3419
|
}
|
|
3479
|
-
Cn(e, s, m, { once: true }), s !== "error" && St(e,
|
|
3420
|
+
Cn(e, s, m, { once: true }), s !== "error" && St(e, p, { once: true });
|
|
3480
3421
|
});
|
|
3481
3422
|
}
|
|
3482
3423
|
function St(e, s, a) {
|
|
@@ -3486,8 +3427,8 @@ function Cn(e, s, a, d) {
|
|
|
3486
3427
|
if (typeof e.on == "function")
|
|
3487
3428
|
d.once ? e.once(s, a) : e.on(s, a);
|
|
3488
3429
|
else if (typeof e.addEventListener == "function")
|
|
3489
|
-
e.addEventListener(s, function
|
|
3490
|
-
d.once && e.removeEventListener(s,
|
|
3430
|
+
e.addEventListener(s, function p(m) {
|
|
3431
|
+
d.once && e.removeEventListener(s, p), a(m);
|
|
3491
3432
|
});
|
|
3492
3433
|
else
|
|
3493
3434
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
|
|
@@ -3534,7 +3475,7 @@ var Oe;
|
|
|
3534
3475
|
(function(e) {
|
|
3535
3476
|
e[e.AUDIO = 0] = "AUDIO", e[e.VIDEO = 1] = "VIDEO";
|
|
3536
3477
|
})(Oe || (Oe = {}));
|
|
3537
|
-
class
|
|
3478
|
+
class Lt extends MessageType {
|
|
3538
3479
|
constructor() {
|
|
3539
3480
|
super("media.Codec", [
|
|
3540
3481
|
{
|
|
@@ -3573,8 +3514,8 @@ class xt extends MessageType {
|
|
|
3573
3514
|
]);
|
|
3574
3515
|
}
|
|
3575
3516
|
}
|
|
3576
|
-
const En = new
|
|
3577
|
-
class
|
|
3517
|
+
const En = new Lt();
|
|
3518
|
+
class xt extends MessageType {
|
|
3578
3519
|
constructor() {
|
|
3579
3520
|
super("media.HeaderExtension", [
|
|
3580
3521
|
{
|
|
@@ -3593,7 +3534,7 @@ class Lt extends MessageType {
|
|
|
3593
3534
|
]);
|
|
3594
3535
|
}
|
|
3595
3536
|
}
|
|
3596
|
-
const Ot = new
|
|
3537
|
+
const Ot = new xt();
|
|
3597
3538
|
class Mt extends MessageType {
|
|
3598
3539
|
constructor() {
|
|
3599
3540
|
super("media.Fingerprint", [
|
|
@@ -3969,7 +3910,7 @@ class Yt extends MessageType {
|
|
|
3969
3910
|
]);
|
|
3970
3911
|
}
|
|
3971
3912
|
}
|
|
3972
|
-
const
|
|
3913
|
+
const Ln = new Yt();
|
|
3973
3914
|
class Qt extends MessageType {
|
|
3974
3915
|
constructor() {
|
|
3975
3916
|
super("media.RtpCapability", [
|
|
@@ -4086,7 +4027,7 @@ class rs extends MessageType {
|
|
|
4086
4027
|
T: 9
|
|
4087
4028
|
},
|
|
4088
4029
|
{ no: 8, name: "location", kind: "message", T: () => ss },
|
|
4089
|
-
{ no: 9, name: "capabilities", kind: "message", T: () =>
|
|
4030
|
+
{ no: 9, name: "capabilities", kind: "message", T: () => Ln }
|
|
4090
4031
|
]);
|
|
4091
4032
|
}
|
|
4092
4033
|
}
|
|
@@ -4166,7 +4107,7 @@ class cs extends MessageType {
|
|
|
4166
4107
|
}
|
|
4167
4108
|
}
|
|
4168
4109
|
const ds = new cs();
|
|
4169
|
-
class
|
|
4110
|
+
class us extends MessageType {
|
|
4170
4111
|
constructor() {
|
|
4171
4112
|
super("media.edge.ConsumePeersRequest", [
|
|
4172
4113
|
{ no: 1, name: "requests", kind: "message", repeat: 1, T: () => ds },
|
|
@@ -4180,8 +4121,8 @@ class ps extends MessageType {
|
|
|
4180
4121
|
]);
|
|
4181
4122
|
}
|
|
4182
4123
|
}
|
|
4183
|
-
new
|
|
4184
|
-
class
|
|
4124
|
+
new us();
|
|
4125
|
+
class ps extends MessageType {
|
|
4185
4126
|
constructor() {
|
|
4186
4127
|
super("media.edge.ProducerCreateRequest", [
|
|
4187
4128
|
{
|
|
@@ -4233,7 +4174,7 @@ class us extends MessageType {
|
|
|
4233
4174
|
]);
|
|
4234
4175
|
}
|
|
4235
4176
|
}
|
|
4236
|
-
new
|
|
4177
|
+
new ps();
|
|
4237
4178
|
class ls extends MessageType {
|
|
4238
4179
|
constructor() {
|
|
4239
4180
|
super("media.edge.SelectedPeersRequest", []);
|
|
@@ -4272,7 +4213,7 @@ class Ts extends MessageType {
|
|
|
4272
4213
|
}
|
|
4273
4214
|
}
|
|
4274
4215
|
new Ts();
|
|
4275
|
-
class
|
|
4216
|
+
class fs extends MessageType {
|
|
4276
4217
|
constructor() {
|
|
4277
4218
|
super("media.edge.ConsumerToggleRequest", [
|
|
4278
4219
|
{
|
|
@@ -4290,8 +4231,8 @@ class hs extends MessageType {
|
|
|
4290
4231
|
]);
|
|
4291
4232
|
}
|
|
4292
4233
|
}
|
|
4293
|
-
new
|
|
4294
|
-
class
|
|
4234
|
+
new fs();
|
|
4235
|
+
class hs extends MessageType {
|
|
4295
4236
|
constructor() {
|
|
4296
4237
|
super("media.edge.ProducerCloseRequest", [
|
|
4297
4238
|
{
|
|
@@ -4311,7 +4252,7 @@ class fs extends MessageType {
|
|
|
4311
4252
|
]);
|
|
4312
4253
|
}
|
|
4313
4254
|
}
|
|
4314
|
-
new
|
|
4255
|
+
new hs();
|
|
4315
4256
|
class ks extends MessageType {
|
|
4316
4257
|
constructor() {
|
|
4317
4258
|
super("media.edge.ConsumerCloseRequest", [
|
|
@@ -4435,7 +4376,7 @@ class _s extends MessageType {
|
|
|
4435
4376
|
}
|
|
4436
4377
|
}
|
|
4437
4378
|
new _s();
|
|
4438
|
-
class
|
|
4379
|
+
class Ps extends MessageType {
|
|
4439
4380
|
constructor() {
|
|
4440
4381
|
super("media.edge.GetRoomStateResponse", [
|
|
4441
4382
|
{
|
|
@@ -4492,7 +4433,7 @@ class ws extends MessageType {
|
|
|
4492
4433
|
]);
|
|
4493
4434
|
}
|
|
4494
4435
|
}
|
|
4495
|
-
const
|
|
4436
|
+
const ws = new Ps();
|
|
4496
4437
|
class Cs extends MessageType {
|
|
4497
4438
|
constructor() {
|
|
4498
4439
|
super("media.edge.ErrorResponse", [
|
|
@@ -4541,11 +4482,11 @@ class Ss extends MessageType {
|
|
|
4541
4482
|
opt: true,
|
|
4542
4483
|
T: 9
|
|
4543
4484
|
},
|
|
4544
|
-
{ no: 5, name: "capabilities", kind: "message", T: () =>
|
|
4485
|
+
{ no: 5, name: "capabilities", kind: "message", T: () => Ln }
|
|
4545
4486
|
]);
|
|
4546
4487
|
}
|
|
4547
4488
|
}
|
|
4548
|
-
const
|
|
4489
|
+
const xn = new Ss();
|
|
4549
4490
|
class bs extends MessageType {
|
|
4550
4491
|
constructor() {
|
|
4551
4492
|
super("media.edge.SelectedPeersResponse", [
|
|
@@ -4566,8 +4507,8 @@ class bs extends MessageType {
|
|
|
4566
4507
|
]);
|
|
4567
4508
|
}
|
|
4568
4509
|
}
|
|
4569
|
-
const
|
|
4570
|
-
class
|
|
4510
|
+
const Ls = new bs();
|
|
4511
|
+
class xs extends MessageType {
|
|
4571
4512
|
constructor() {
|
|
4572
4513
|
super("media.edge.SelectedPeersDiffEntry", [
|
|
4573
4514
|
{
|
|
@@ -4585,7 +4526,7 @@ class Ls extends MessageType {
|
|
|
4585
4526
|
]);
|
|
4586
4527
|
}
|
|
4587
4528
|
}
|
|
4588
|
-
const Os = new
|
|
4529
|
+
const Os = new xs();
|
|
4589
4530
|
class Ms extends MessageType {
|
|
4590
4531
|
constructor() {
|
|
4591
4532
|
super("media.edge.SelectedPeersDiffResponse", [
|
|
@@ -4603,9 +4544,9 @@ new qs();
|
|
|
4603
4544
|
class $s extends MessageType {
|
|
4604
4545
|
constructor() {
|
|
4605
4546
|
super("media.edge.PeerJoinCompleteResponse", [
|
|
4606
|
-
{ no: 1, name: "room_state", kind: "message", T: () =>
|
|
4607
|
-
{ no: 2, name: "participants", kind: "message", repeat: 1, T: () =>
|
|
4608
|
-
{ no: 3, name: "selected_peers", kind: "message", T: () =>
|
|
4547
|
+
{ no: 1, name: "room_state", kind: "message", T: () => ws },
|
|
4548
|
+
{ no: 2, name: "participants", kind: "message", repeat: 1, T: () => xn },
|
|
4549
|
+
{ no: 3, name: "selected_peers", kind: "message", T: () => Ls },
|
|
4609
4550
|
{
|
|
4610
4551
|
no: 4,
|
|
4611
4552
|
name: "max_preferred_streams",
|
|
@@ -4819,7 +4760,7 @@ new Xs();
|
|
|
4819
4760
|
class er extends MessageType {
|
|
4820
4761
|
constructor() {
|
|
4821
4762
|
super("media.edge.PeerJoinBroadcastResponse", [
|
|
4822
|
-
{ no: 1, name: "participant", kind: "message", T: () =>
|
|
4763
|
+
{ no: 1, name: "participant", kind: "message", T: () => xn }
|
|
4823
4764
|
]);
|
|
4824
4765
|
}
|
|
4825
4766
|
}
|
|
@@ -4948,7 +4889,7 @@ class dr extends MessageType {
|
|
|
4948
4889
|
}
|
|
4949
4890
|
}
|
|
4950
4891
|
new dr();
|
|
4951
|
-
class
|
|
4892
|
+
class ur extends MessageType {
|
|
4952
4893
|
constructor() {
|
|
4953
4894
|
super("media.edge.GlobalPeerUnPinningBroadcastResponse", [
|
|
4954
4895
|
{
|
|
@@ -4960,8 +4901,8 @@ class pr extends MessageType {
|
|
|
4960
4901
|
]);
|
|
4961
4902
|
}
|
|
4962
4903
|
}
|
|
4963
|
-
new
|
|
4964
|
-
class
|
|
4904
|
+
new ur();
|
|
4905
|
+
class pr extends MessageType {
|
|
4965
4906
|
constructor() {
|
|
4966
4907
|
super("media.edge.RecordingStartedBroadcastResponse", [
|
|
4967
4908
|
{
|
|
@@ -4973,7 +4914,7 @@ class ur extends MessageType {
|
|
|
4973
4914
|
]);
|
|
4974
4915
|
}
|
|
4975
4916
|
}
|
|
4976
|
-
new
|
|
4917
|
+
new pr();
|
|
4977
4918
|
class lr extends MessageType {
|
|
4978
4919
|
constructor() {
|
|
4979
4920
|
super("media.edge.RecordingStoppedBroadcastResponse", [
|
|
@@ -5019,7 +4960,7 @@ class Tr extends MessageType {
|
|
|
5019
4960
|
}
|
|
5020
4961
|
}
|
|
5021
4962
|
new Tr();
|
|
5022
|
-
class
|
|
4963
|
+
class fr extends MessageType {
|
|
5023
4964
|
constructor() {
|
|
5024
4965
|
super("media.edge.MediaRoomTerminationBroadcastResponse", [
|
|
5025
4966
|
{
|
|
@@ -5031,8 +4972,8 @@ class hr extends MessageType {
|
|
|
5031
4972
|
]);
|
|
5032
4973
|
}
|
|
5033
4974
|
}
|
|
5034
|
-
new
|
|
5035
|
-
class
|
|
4975
|
+
new fr();
|
|
4976
|
+
class hr extends MessageType {
|
|
5036
4977
|
constructor() {
|
|
5037
4978
|
super("socket.ai.MeetingTranscript", [
|
|
5038
4979
|
{
|
|
@@ -5056,7 +4997,7 @@ class fr extends MessageType {
|
|
|
5056
4997
|
]);
|
|
5057
4998
|
}
|
|
5058
4999
|
}
|
|
5059
|
-
new
|
|
5000
|
+
new hr();
|
|
5060
5001
|
class kr extends MessageType {
|
|
5061
5002
|
constructor() {
|
|
5062
5003
|
super("socket.api.BaseSocketHubMessage", [
|
|
@@ -5232,16 +5173,16 @@ class vr extends MessageType {
|
|
|
5232
5173
|
]);
|
|
5233
5174
|
}
|
|
5234
5175
|
}
|
|
5235
|
-
const
|
|
5176
|
+
const fe = new vr();
|
|
5236
5177
|
class _r extends MessageType {
|
|
5237
5178
|
constructor() {
|
|
5238
5179
|
super("socket.room.PeerInfoResponse", [
|
|
5239
|
-
{ no: 1, name: "peer", kind: "message", T: () =>
|
|
5180
|
+
{ no: 1, name: "peer", kind: "message", T: () => fe }
|
|
5240
5181
|
]);
|
|
5241
5182
|
}
|
|
5242
5183
|
}
|
|
5243
5184
|
const cn = new _r();
|
|
5244
|
-
class
|
|
5185
|
+
class Pr extends MessageType {
|
|
5245
5186
|
constructor() {
|
|
5246
5187
|
super("socket.room.PeerStatusUpdate", [
|
|
5247
5188
|
{
|
|
@@ -5260,8 +5201,8 @@ class wr extends MessageType {
|
|
|
5260
5201
|
]);
|
|
5261
5202
|
}
|
|
5262
5203
|
}
|
|
5263
|
-
new
|
|
5264
|
-
class
|
|
5204
|
+
new Pr();
|
|
5205
|
+
class wr extends MessageType {
|
|
5265
5206
|
constructor() {
|
|
5266
5207
|
super("socket.room.RoomPeersInfoRequest", [
|
|
5267
5208
|
{
|
|
@@ -5285,11 +5226,11 @@ class Pr extends MessageType {
|
|
|
5285
5226
|
]);
|
|
5286
5227
|
}
|
|
5287
5228
|
}
|
|
5288
|
-
new
|
|
5229
|
+
new wr();
|
|
5289
5230
|
class Cr extends MessageType {
|
|
5290
5231
|
constructor() {
|
|
5291
5232
|
super("socket.room.RoomPeersInfoResponse", [
|
|
5292
|
-
{ no: 1, name: "peers", kind: "message", repeat: 1, T: () =>
|
|
5233
|
+
{ no: 1, name: "peers", kind: "message", repeat: 1, T: () => fe }
|
|
5293
5234
|
]);
|
|
5294
5235
|
}
|
|
5295
5236
|
}
|
|
@@ -5330,7 +5271,7 @@ class br extends MessageType {
|
|
|
5330
5271
|
T: 4,
|
|
5331
5272
|
L: 2
|
|
5332
5273
|
},
|
|
5333
|
-
{ no: 5, name: "active_recordings", kind: "message", repeat: 1, T: () =>
|
|
5274
|
+
{ no: 5, name: "active_recordings", kind: "message", repeat: 1, T: () => xr },
|
|
5334
5275
|
{
|
|
5335
5276
|
no: 6,
|
|
5336
5277
|
name: "room_uuid",
|
|
@@ -5342,7 +5283,7 @@ class br extends MessageType {
|
|
|
5342
5283
|
}
|
|
5343
5284
|
}
|
|
5344
5285
|
const On = new br();
|
|
5345
|
-
class
|
|
5286
|
+
class Lr extends MessageType {
|
|
5346
5287
|
constructor() {
|
|
5347
5288
|
super("socket.room.ActiveRecording", [
|
|
5348
5289
|
{
|
|
@@ -5361,7 +5302,7 @@ class xr extends MessageType {
|
|
|
5361
5302
|
]);
|
|
5362
5303
|
}
|
|
5363
5304
|
}
|
|
5364
|
-
const
|
|
5305
|
+
const xr = new Lr();
|
|
5365
5306
|
class Or extends MessageType {
|
|
5366
5307
|
constructor() {
|
|
5367
5308
|
super("socket.room.RoomInfoResponse", [
|
|
@@ -5406,7 +5347,7 @@ new $r();
|
|
|
5406
5347
|
class Nr extends MessageType {
|
|
5407
5348
|
constructor() {
|
|
5408
5349
|
super("socket.room.JoinRoomRequest", [
|
|
5409
|
-
{ no: 1, name: "peer", kind: "message", T: () =>
|
|
5350
|
+
{ no: 1, name: "peer", kind: "message", T: () => fe },
|
|
5410
5351
|
{
|
|
5411
5352
|
no: 3,
|
|
5412
5353
|
name: "room_uuid",
|
|
@@ -5450,7 +5391,7 @@ new Nr();
|
|
|
5450
5391
|
class Ar extends MessageType {
|
|
5451
5392
|
constructor() {
|
|
5452
5393
|
super("socket.room.LeaveRoomRequest", [
|
|
5453
|
-
{ no: 1, name: "peer", kind: "message", T: () =>
|
|
5394
|
+
{ no: 1, name: "peer", kind: "message", T: () => fe },
|
|
5454
5395
|
{
|
|
5455
5396
|
no: 2,
|
|
5456
5397
|
name: "timestamp",
|
|
@@ -5754,7 +5695,7 @@ class co extends MessageType {
|
|
|
5754
5695
|
}
|
|
5755
5696
|
}
|
|
5756
5697
|
new co();
|
|
5757
|
-
class
|
|
5698
|
+
class uo extends MessageType {
|
|
5758
5699
|
constructor() {
|
|
5759
5700
|
super("socket.room.MovedPeer", [
|
|
5760
5701
|
{
|
|
@@ -5775,11 +5716,11 @@ class po extends MessageType {
|
|
|
5775
5716
|
]);
|
|
5776
5717
|
}
|
|
5777
5718
|
}
|
|
5778
|
-
const
|
|
5719
|
+
const po = new uo();
|
|
5779
5720
|
class lo extends MessageType {
|
|
5780
5721
|
constructor() {
|
|
5781
5722
|
super("socket.room.MovePeersBetweenRoomsResponse", [
|
|
5782
|
-
{ no: 1, name: "payloads", kind: "message", repeat: 1, T: () =>
|
|
5723
|
+
{ no: 1, name: "payloads", kind: "message", repeat: 1, T: () => po }
|
|
5783
5724
|
]);
|
|
5784
5725
|
}
|
|
5785
5726
|
}
|
|
@@ -5808,12 +5749,12 @@ new mo();
|
|
|
5808
5749
|
class To extends MessageType {
|
|
5809
5750
|
constructor() {
|
|
5810
5751
|
super("socket.room.GetAllAddedParticipantsResponse", [
|
|
5811
|
-
{ no: 1, name: "participants", kind: "message", repeat: 1, T: () =>
|
|
5752
|
+
{ no: 1, name: "participants", kind: "message", repeat: 1, T: () => ho }
|
|
5812
5753
|
]);
|
|
5813
5754
|
}
|
|
5814
5755
|
}
|
|
5815
5756
|
new To();
|
|
5816
|
-
class
|
|
5757
|
+
class fo extends MessageType {
|
|
5817
5758
|
constructor() {
|
|
5818
5759
|
super("socket.room.AddedParticipant", [
|
|
5819
5760
|
{
|
|
@@ -5845,7 +5786,7 @@ class ho extends MessageType {
|
|
|
5845
5786
|
]);
|
|
5846
5787
|
}
|
|
5847
5788
|
}
|
|
5848
|
-
const
|
|
5789
|
+
const ho = new fo();
|
|
5849
5790
|
class ko extends MessageType {
|
|
5850
5791
|
constructor() {
|
|
5851
5792
|
super("socket.room.RemoveParticipantsRequest", [
|
|
@@ -5968,15 +5909,15 @@ class vo extends MessageType {
|
|
|
5968
5909
|
}
|
|
5969
5910
|
}
|
|
5970
5911
|
const _o = new vo();
|
|
5971
|
-
class
|
|
5912
|
+
class Po extends MessageType {
|
|
5972
5913
|
constructor() {
|
|
5973
5914
|
super("socket.room.GetWaitingRoomRequests", [
|
|
5974
5915
|
{ no: 1, name: "requests", kind: "message", repeat: 1, T: () => _o }
|
|
5975
5916
|
]);
|
|
5976
5917
|
}
|
|
5977
5918
|
}
|
|
5978
|
-
new
|
|
5979
|
-
class
|
|
5919
|
+
new Po();
|
|
5920
|
+
class wo extends MessageType {
|
|
5980
5921
|
constructor() {
|
|
5981
5922
|
super("socket.room.GetRoomStageStateResponse", [
|
|
5982
5923
|
{
|
|
@@ -6003,15 +5944,15 @@ class Po extends MessageType {
|
|
|
6003
5944
|
]);
|
|
6004
5945
|
}
|
|
6005
5946
|
}
|
|
6006
|
-
new
|
|
5947
|
+
new wo();
|
|
6007
5948
|
var Ne;
|
|
6008
5949
|
(function(e) {
|
|
6009
5950
|
e[e.NONE = 0] = "NONE", e[e.SKIP = 1] = "SKIP", e[e.ON_PRIVILEGED_USER_ENTRY = 2] = "ON_PRIVILEGED_USER_ENTRY", e[e.SKIP_ON_ACCEPT = 3] = "SKIP_ON_ACCEPT";
|
|
6010
5951
|
})(Ne || (Ne = {}));
|
|
6011
|
-
var
|
|
5952
|
+
var ue;
|
|
6012
5953
|
(function(e) {
|
|
6013
5954
|
e[e.NONE = 0] = "NONE", e[e.ALLOWED = 1] = "ALLOWED", e[e.NOT_ALLOWED = 2] = "NOT_ALLOWED", e[e.CAN_REQUEST = 3] = "CAN_REQUEST";
|
|
6014
|
-
})(
|
|
5955
|
+
})(ue || (ue = {}));
|
|
6015
5956
|
class Co extends MessageType {
|
|
6016
5957
|
constructor() {
|
|
6017
5958
|
super("socket.preset.PollsPermissionUpdate", [
|
|
@@ -6061,7 +6002,7 @@ class So extends MessageType {
|
|
|
6061
6002
|
}
|
|
6062
6003
|
}
|
|
6063
6004
|
const bo = new So();
|
|
6064
|
-
class
|
|
6005
|
+
class Lo extends MessageType {
|
|
6065
6006
|
constructor() {
|
|
6066
6007
|
super("socket.preset.PublicChatPermission", [
|
|
6067
6008
|
{
|
|
@@ -6088,7 +6029,7 @@ class xo extends MessageType {
|
|
|
6088
6029
|
]);
|
|
6089
6030
|
}
|
|
6090
6031
|
}
|
|
6091
|
-
const
|
|
6032
|
+
const xo = new Lo();
|
|
6092
6033
|
class Oo extends MessageType {
|
|
6093
6034
|
constructor() {
|
|
6094
6035
|
super("socket.preset.PrivateChatPermission", [
|
|
@@ -6127,7 +6068,7 @@ const Mo = new Oo();
|
|
|
6127
6068
|
class qo extends MessageType {
|
|
6128
6069
|
constructor() {
|
|
6129
6070
|
super("socket.preset.ChatPermissionUpdate", [
|
|
6130
|
-
{ no: 1, name: "public", kind: "message", T: () =>
|
|
6071
|
+
{ no: 1, name: "public", kind: "message", T: () => xo },
|
|
6131
6072
|
{ no: 2, name: "private", kind: "message", T: () => Mo }
|
|
6132
6073
|
]);
|
|
6133
6074
|
}
|
|
@@ -6164,8 +6105,8 @@ const Ao = new No();
|
|
|
6164
6105
|
class Io extends MessageType {
|
|
6165
6106
|
constructor() {
|
|
6166
6107
|
super("socket.preset.StreamPermission", [
|
|
6167
|
-
{ no: 1, name: "can_produce", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType",
|
|
6168
|
-
{ no: 2, name: "can_consume", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType",
|
|
6108
|
+
{ no: 1, name: "can_produce", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", ue, "STREAM_PERMISSION_TYPE_"] },
|
|
6109
|
+
{ no: 2, name: "can_consume", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", ue, "STREAM_PERMISSION_TYPE_"] }
|
|
6169
6110
|
]);
|
|
6170
6111
|
}
|
|
6171
6112
|
}
|
|
@@ -6732,7 +6673,7 @@ class da extends MessageType {
|
|
|
6732
6673
|
}
|
|
6733
6674
|
}
|
|
6734
6675
|
new da();
|
|
6735
|
-
class
|
|
6676
|
+
class ua extends MessageType {
|
|
6736
6677
|
constructor() {
|
|
6737
6678
|
super("socket.chat.PinChatMessageResponse", [
|
|
6738
6679
|
{
|
|
@@ -6757,15 +6698,15 @@ class pa extends MessageType {
|
|
|
6757
6698
|
]);
|
|
6758
6699
|
}
|
|
6759
6700
|
}
|
|
6760
|
-
new
|
|
6761
|
-
class
|
|
6701
|
+
new ua();
|
|
6702
|
+
class pa extends MessageType {
|
|
6762
6703
|
constructor() {
|
|
6763
6704
|
super("socket.chat.EditChatMessageResponse", [
|
|
6764
6705
|
{ no: 1, name: "message", kind: "message", T: () => D }
|
|
6765
6706
|
]);
|
|
6766
6707
|
}
|
|
6767
6708
|
}
|
|
6768
|
-
new
|
|
6709
|
+
new pa();
|
|
6769
6710
|
class la extends MessageType {
|
|
6770
6711
|
constructor() {
|
|
6771
6712
|
super("socket.chat.DeleteChatMessageRequest", [
|
|
@@ -6851,7 +6792,7 @@ class Ta extends MessageType {
|
|
|
6851
6792
|
}
|
|
6852
6793
|
}
|
|
6853
6794
|
new Ta();
|
|
6854
|
-
class
|
|
6795
|
+
class fa extends MessageType {
|
|
6855
6796
|
constructor() {
|
|
6856
6797
|
super("socket.chat.MarkChannelIndexAsReadRequest", [
|
|
6857
6798
|
{
|
|
@@ -6875,8 +6816,8 @@ class ha extends MessageType {
|
|
|
6875
6816
|
]);
|
|
6876
6817
|
}
|
|
6877
6818
|
}
|
|
6878
|
-
new
|
|
6879
|
-
class
|
|
6819
|
+
new fa();
|
|
6820
|
+
class ha extends MessageType {
|
|
6880
6821
|
constructor() {
|
|
6881
6822
|
super("socket.chat.MarkChannelIndexAsReadResponse", [
|
|
6882
6823
|
{
|
|
@@ -6888,7 +6829,7 @@ class fa extends MessageType {
|
|
|
6888
6829
|
]);
|
|
6889
6830
|
}
|
|
6890
6831
|
}
|
|
6891
|
-
new
|
|
6832
|
+
new ha();
|
|
6892
6833
|
class ka extends MessageType {
|
|
6893
6834
|
constructor() {
|
|
6894
6835
|
super("socket.chat.CreateChatChannelRequest", [
|
|
@@ -7017,7 +6958,7 @@ class va extends MessageType {
|
|
|
7017
6958
|
}
|
|
7018
6959
|
}
|
|
7019
6960
|
const _a = new va();
|
|
7020
|
-
class
|
|
6961
|
+
class Pa extends MessageType {
|
|
7021
6962
|
constructor() {
|
|
7022
6963
|
super("socket.chat.ChatChannel", [
|
|
7023
6964
|
{
|
|
@@ -7062,11 +7003,11 @@ class wa extends MessageType {
|
|
|
7062
7003
|
]);
|
|
7063
7004
|
}
|
|
7064
7005
|
}
|
|
7065
|
-
const
|
|
7006
|
+
const wa = new Pa();
|
|
7066
7007
|
class Ca extends MessageType {
|
|
7067
7008
|
constructor() {
|
|
7068
7009
|
super("socket.chat.GetChatChannelResponse", [
|
|
7069
|
-
{ no: 1, name: "chat_channels", kind: "message", repeat: 1, T: () =>
|
|
7010
|
+
{ no: 1, name: "chat_channels", kind: "message", repeat: 1, T: () => wa }
|
|
7070
7011
|
]);
|
|
7071
7012
|
}
|
|
7072
7013
|
}
|
|
@@ -7112,7 +7053,7 @@ class ba extends MessageType {
|
|
|
7112
7053
|
}
|
|
7113
7054
|
}
|
|
7114
7055
|
new ba();
|
|
7115
|
-
class
|
|
7056
|
+
class La extends MessageType {
|
|
7116
7057
|
constructor() {
|
|
7117
7058
|
super("socket.plugin.AddPluginRequest", [
|
|
7118
7059
|
{
|
|
@@ -7130,8 +7071,8 @@ class xa extends MessageType {
|
|
|
7130
7071
|
]);
|
|
7131
7072
|
}
|
|
7132
7073
|
}
|
|
7133
|
-
new
|
|
7134
|
-
class
|
|
7074
|
+
new La();
|
|
7075
|
+
class xa extends MessageType {
|
|
7135
7076
|
constructor() {
|
|
7136
7077
|
super("socket.plugin.RemovePluginRequest", [
|
|
7137
7078
|
{
|
|
@@ -7149,7 +7090,7 @@ class La extends MessageType {
|
|
|
7149
7090
|
]);
|
|
7150
7091
|
}
|
|
7151
7092
|
}
|
|
7152
|
-
new
|
|
7093
|
+
new xa();
|
|
7153
7094
|
class Oa extends MessageType {
|
|
7154
7095
|
constructor() {
|
|
7155
7096
|
super("socket.plugin.EnablePluginForRoomRequest", [
|
|
@@ -7771,7 +7712,7 @@ class di extends MessageType {
|
|
|
7771
7712
|
}
|
|
7772
7713
|
}
|
|
7773
7714
|
new di();
|
|
7774
|
-
class
|
|
7715
|
+
class ui extends MessageType {
|
|
7775
7716
|
constructor() {
|
|
7776
7717
|
super("socket.polls.VotePollRequest", [
|
|
7777
7718
|
{
|
|
@@ -7790,15 +7731,15 @@ class pi extends MessageType {
|
|
|
7790
7731
|
]);
|
|
7791
7732
|
}
|
|
7792
7733
|
}
|
|
7793
|
-
new
|
|
7794
|
-
class
|
|
7734
|
+
new ui();
|
|
7735
|
+
class pi extends MessageType {
|
|
7795
7736
|
constructor() {
|
|
7796
7737
|
super("socket.polls.UpdatePollResponse", [
|
|
7797
7738
|
{ no: 1, name: "poll", kind: "message", T: () => qn }
|
|
7798
7739
|
]);
|
|
7799
7740
|
}
|
|
7800
7741
|
}
|
|
7801
|
-
new
|
|
7742
|
+
new pi();
|
|
7802
7743
|
class li extends MessageType {
|
|
7803
7744
|
constructor() {
|
|
7804
7745
|
super("socket.polls.GetPollsResponse", [
|
|
@@ -7862,29 +7803,29 @@ class Ti extends MessageType {
|
|
|
7862
7803
|
throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
7863
7804
|
if (s.nanos < 0)
|
|
7864
7805
|
throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
|
|
7865
|
-
let
|
|
7806
|
+
let p = "Z";
|
|
7866
7807
|
if (s.nanos > 0) {
|
|
7867
7808
|
let m = (s.nanos + 1e9).toString().substring(1);
|
|
7868
|
-
m.substring(3) === "000000" ?
|
|
7809
|
+
m.substring(3) === "000000" ? p = "." + m.substring(0, 3) + "Z" : m.substring(6) === "000" ? p = "." + m.substring(0, 6) + "Z" : p = "." + m + "Z";
|
|
7869
7810
|
}
|
|
7870
|
-
return new Date(d).toISOString().replace(".000Z",
|
|
7811
|
+
return new Date(d).toISOString().replace(".000Z", p);
|
|
7871
7812
|
}
|
|
7872
7813
|
internalJsonRead(s, a, d) {
|
|
7873
7814
|
if (typeof s != "string")
|
|
7874
7815
|
throw new Error("Unable to parse Timestamp from JSON " + typeofJsonValue(s) + ".");
|
|
7875
|
-
let
|
|
7876
|
-
if (!
|
|
7816
|
+
let p = s.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
|
7817
|
+
if (!p)
|
|
7877
7818
|
throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
|
|
7878
|
-
let m = Date.parse(
|
|
7819
|
+
let m = Date.parse(p[1] + "-" + p[2] + "-" + p[3] + "T" + p[4] + ":" + p[5] + ":" + p[6] + (p[8] ? p[8] : "Z"));
|
|
7879
7820
|
if (Number.isNaN(m))
|
|
7880
7821
|
throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
|
|
7881
7822
|
if (m < Date.parse("0001-01-01T00:00:00Z") || m > Date.parse("9999-12-31T23:59:59Z"))
|
|
7882
7823
|
throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
7883
|
-
return d || (d = this.create()), d.seconds = PbLong.from(m / 1e3).toBigInt(), d.nanos = 0,
|
|
7824
|
+
return d || (d = this.create()), d.seconds = PbLong.from(m / 1e3).toBigInt(), d.nanos = 0, p[7] && (d.nanos = parseInt("1" + p[7] + "0".repeat(9 - p[7].length)) - 1e9), d;
|
|
7884
7825
|
}
|
|
7885
7826
|
}
|
|
7886
7827
|
new Ti();
|
|
7887
|
-
class
|
|
7828
|
+
class fi extends MessageType {
|
|
7888
7829
|
constructor() {
|
|
7889
7830
|
super("common.BaseHubMessage", [
|
|
7890
7831
|
{
|
|
@@ -7954,15 +7895,15 @@ class hi extends MessageType {
|
|
|
7954
7895
|
]);
|
|
7955
7896
|
}
|
|
7956
7897
|
}
|
|
7957
|
-
const Ae = new
|
|
7958
|
-
class
|
|
7898
|
+
const Ae = new fi();
|
|
7899
|
+
class hi extends MessageType {
|
|
7959
7900
|
constructor() {
|
|
7960
7901
|
super("common.BulkedHubMessage", [
|
|
7961
7902
|
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () => Ae }
|
|
7962
7903
|
]);
|
|
7963
7904
|
}
|
|
7964
7905
|
}
|
|
7965
|
-
new
|
|
7906
|
+
new hi();
|
|
7966
7907
|
class ki extends MessageType {
|
|
7967
7908
|
constructor() {
|
|
7968
7909
|
super("common.CFWorkersResponse", [
|
|
@@ -7972,7 +7913,7 @@ class ki extends MessageType {
|
|
|
7972
7913
|
}
|
|
7973
7914
|
}
|
|
7974
7915
|
new ki();
|
|
7975
|
-
const gi = 0, yi = 1, Ri = 2, vi = 3, _i = 4,
|
|
7916
|
+
const gi = 0, yi = 1, Ri = 2, vi = 3, _i = 4, Pi = 5, wi = {
|
|
7976
7917
|
getPeerInfo: 0,
|
|
7977
7918
|
updatePeerInfo: 1,
|
|
7978
7919
|
getRoomPeersInfo: 2,
|
|
@@ -8088,7 +8029,7 @@ const gi = 0, yi = 1, Ri = 2, vi = 3, _i = 4, wi = 5, Pi = {
|
|
|
8088
8029
|
deprecatedGetAllChatChannels: 2,
|
|
8089
8030
|
getChannelMembers: 3,
|
|
8090
8031
|
updateChatChannel: 4
|
|
8091
|
-
},
|
|
8032
|
+
}, Li = {
|
|
8092
8033
|
getUserPresets: 0,
|
|
8093
8034
|
updateUserPreset: 1
|
|
8094
8035
|
};
|
|
@@ -8098,7 +8039,7 @@ function V(e, s) {
|
|
|
8098
8039
|
function Nn(e, s) {
|
|
8099
8040
|
return Object.keys(e).reduce((a, d) => (a[d] = s | e[d], a), {});
|
|
8100
8041
|
}
|
|
8101
|
-
const re = V(gi,
|
|
8042
|
+
const re = V(gi, wi);
|
|
8102
8043
|
V(yi, Ci);
|
|
8103
8044
|
V(
|
|
8104
8045
|
Ri,
|
|
@@ -8109,23 +8050,23 @@ V(
|
|
|
8109
8050
|
_i,
|
|
8110
8051
|
bi
|
|
8111
8052
|
);
|
|
8112
|
-
const
|
|
8053
|
+
const Le = Nn($n, 16777216);
|
|
8113
8054
|
Nn($n, 50331648);
|
|
8114
8055
|
V(
|
|
8115
|
-
|
|
8116
|
-
|
|
8056
|
+
Pi,
|
|
8057
|
+
Li
|
|
8117
8058
|
);
|
|
8118
8059
|
const An = "ws://localhost:8080/ws";
|
|
8119
|
-
class
|
|
8060
|
+
class xi extends Q.WebSocket {
|
|
8120
8061
|
constructor(s, a) {
|
|
8121
8062
|
super(An, a);
|
|
8122
8063
|
}
|
|
8123
8064
|
}
|
|
8124
|
-
var F,
|
|
8065
|
+
var F, pe, K, le;
|
|
8125
8066
|
class Oi {
|
|
8126
8067
|
constructor() {
|
|
8127
8068
|
Z(this, F, void 0);
|
|
8128
|
-
Z(this,
|
|
8069
|
+
Z(this, pe, []);
|
|
8129
8070
|
Z(this, K, void 0);
|
|
8130
8071
|
Z(this, le, 15e3);
|
|
8131
8072
|
y(this, "roomId", "roomId");
|
|
@@ -8133,16 +8074,16 @@ class Oi {
|
|
|
8133
8074
|
y(this, "cleanBuffer", (s) => s.buffer.slice(s.byteOffset, s.byteOffset + s.byteLength));
|
|
8134
8075
|
}
|
|
8135
8076
|
init({ peerId: s, mockParticipants: a }) {
|
|
8136
|
-
Se(this, K, s), window.WebSocket =
|
|
8077
|
+
Se(this, K, s), window.WebSocket = xi, Se(this, F, a);
|
|
8137
8078
|
const { RTK_MOCK_SERVER: d } = window;
|
|
8138
8079
|
if (d)
|
|
8139
8080
|
try {
|
|
8140
8081
|
d.close();
|
|
8141
8082
|
} catch (m) {
|
|
8142
8083
|
}
|
|
8143
|
-
const
|
|
8144
|
-
window.RTK_MOCK_SERVER =
|
|
8145
|
-
I(this,
|
|
8084
|
+
const p = new Q.Server(An, { mock: false });
|
|
8085
|
+
window.RTK_MOCK_SERVER = p, p.on("connection", (m) => {
|
|
8086
|
+
I(this, pe).push(m), this.addConnectionListeners(m);
|
|
8146
8087
|
});
|
|
8147
8088
|
}
|
|
8148
8089
|
addConnectionListeners(s) {
|
|
@@ -8150,10 +8091,10 @@ class Oi {
|
|
|
8150
8091
|
if (a === "3")
|
|
8151
8092
|
return;
|
|
8152
8093
|
const d = sn.fromBinary(a);
|
|
8153
|
-
let
|
|
8094
|
+
let p;
|
|
8154
8095
|
switch (d.event) {
|
|
8155
8096
|
case re.joinRoom: {
|
|
8156
|
-
|
|
8097
|
+
p = cn.toBinary(cn.fromJson({
|
|
8157
8098
|
peer: {
|
|
8158
8099
|
peerId: I(this, K),
|
|
8159
8100
|
userId: "self-userId",
|
|
@@ -8165,9 +8106,9 @@ class Oi {
|
|
|
8165
8106
|
break;
|
|
8166
8107
|
}
|
|
8167
8108
|
case re.getRoomPeersInfo: {
|
|
8168
|
-
|
|
8169
|
-
peers: I(this, F).map((
|
|
8170
|
-
userId:
|
|
8109
|
+
p = Er.toBinary({
|
|
8110
|
+
peers: I(this, F).map((P) => Ze(Ee({}, P), {
|
|
8111
|
+
userId: P.peerId,
|
|
8171
8112
|
waitlisted: false,
|
|
8172
8113
|
stageType: 1
|
|
8173
8114
|
}))
|
|
@@ -8175,7 +8116,7 @@ class Oi {
|
|
|
8175
8116
|
break;
|
|
8176
8117
|
}
|
|
8177
8118
|
case re.getRoomInfo: {
|
|
8178
|
-
|
|
8119
|
+
p = Mr.toBinary({
|
|
8179
8120
|
room: {
|
|
8180
8121
|
roomId: this.roomId,
|
|
8181
8122
|
title: "title",
|
|
@@ -8186,8 +8127,8 @@ class Oi {
|
|
|
8186
8127
|
});
|
|
8187
8128
|
break;
|
|
8188
8129
|
}
|
|
8189
|
-
case
|
|
8190
|
-
|
|
8130
|
+
case Le.createWebRTCTransport: {
|
|
8131
|
+
p = Sn.toBinary({
|
|
8191
8132
|
transportId: "transportId",
|
|
8192
8133
|
description: {
|
|
8193
8134
|
type: "answer",
|
|
@@ -8198,13 +8139,13 @@ class Oi {
|
|
|
8198
8139
|
});
|
|
8199
8140
|
break;
|
|
8200
8141
|
}
|
|
8201
|
-
case
|
|
8202
|
-
const
|
|
8142
|
+
case Le.selfJoinComplete: {
|
|
8143
|
+
const P = I(this, F).map((b) => Ee({
|
|
8203
8144
|
producerStates: []
|
|
8204
8145
|
}, b));
|
|
8205
|
-
|
|
8146
|
+
p = Ns.toBinary({
|
|
8206
8147
|
maxPreferredStreams: 6,
|
|
8207
|
-
participants:
|
|
8148
|
+
participants: P,
|
|
8208
8149
|
selectedPeers: {
|
|
8209
8150
|
audioPeers: [],
|
|
8210
8151
|
compulsoryPeers: []
|
|
@@ -8221,7 +8162,7 @@ class Oi {
|
|
|
8221
8162
|
break;
|
|
8222
8163
|
}
|
|
8223
8164
|
case re.getConnectedRoomsDump: {
|
|
8224
|
-
|
|
8165
|
+
p = Fr.toBinary({
|
|
8225
8166
|
parentMeeting: {
|
|
8226
8167
|
participants: []
|
|
8227
8168
|
},
|
|
@@ -8229,8 +8170,8 @@ class Oi {
|
|
|
8229
8170
|
});
|
|
8230
8171
|
break;
|
|
8231
8172
|
}
|
|
8232
|
-
case
|
|
8233
|
-
|
|
8173
|
+
case Le.produce: {
|
|
8174
|
+
p = Bs.toBinary({
|
|
8234
8175
|
status: true,
|
|
8235
8176
|
producerId: "producer-id"
|
|
8236
8177
|
});
|
|
@@ -8240,15 +8181,15 @@ class Oi {
|
|
|
8240
8181
|
const m = {
|
|
8241
8182
|
event: d.event,
|
|
8242
8183
|
id: d.id,
|
|
8243
|
-
payload:
|
|
8244
|
-
},
|
|
8184
|
+
payload: p
|
|
8185
|
+
}, f = sn.toBinary(m), g = this.cleanBuffer(f);
|
|
8245
8186
|
s.send(g);
|
|
8246
8187
|
}), setInterval(() => {
|
|
8247
8188
|
s.send("2");
|
|
8248
8189
|
}, I(this, le));
|
|
8249
8190
|
}
|
|
8250
8191
|
}
|
|
8251
|
-
F = /* @__PURE__ */ new WeakMap(),
|
|
8192
|
+
F = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap();
|
|
8252
8193
|
function $i(e) {
|
|
8253
8194
|
new Oi().init(e), window.RTCPeerConnection = gt, window.fetch = () => Ye(this, null, function* () {
|
|
8254
8195
|
const a = new window.Response(JSON.stringify({}), {
|