UNPKG

@klever-one/web-sdk

Version:

Web SDK for integrating real-time room management and streaming functionality into web applications

1,153 lines 118 kB
"use client"; import { WebXRController as Ft, TextParameters as Mt, SettingFlag as Nt, OptionParameters as Bt, NumericParameters as zt, Logger as Ut, Flags as Dt, CandidatePairStats as Ht } from "./lib-pixelstreamingfrontend.esm-Bu1fAG_z.js"; function g() { return g = Object.assign ? Object.assign.bind() : function(r) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var e in n) ({}).hasOwnProperty.call(n, e) && (r[e] = n[e]); } return r; }, g.apply(null, arguments); } var ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) { return typeof r; } : function(r) { return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r; }, jt = (typeof window > "u" ? "undefined" : ot(window)) === "object" && (typeof document > "u" ? "undefined" : ot(document)) === "object" && document.nodeType === 9; function P(r) { "@babel/helpers - typeof"; return P = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, P(r); } function Qt(r, t) { if (P(r) != "object" || !r) return r; var n = r[Symbol.toPrimitive]; if (n !== void 0) { var e = n.call(r, t); if (P(e) != "object") return e; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(r); } function Wt(r) { var t = Qt(r, "string"); return P(t) == "symbol" ? t : t + ""; } function qt(r, t) { for (var n = 0; n < t.length; n++) { var e = t[n]; e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, Wt(e.key), e); } } function Et(r, t, n) { return t && qt(r.prototype, t), Object.defineProperty(r, "prototype", { writable: !1 }), r; } function Z(r, t) { return Z = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, e) { return n.__proto__ = e, n; }, Z(r, t); } function St(r, t) { r.prototype = Object.create(t.prototype), r.prototype.constructor = r, Z(r, t); } function at(r) { if (r === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return r; } function Vt(r, t) { if (r == null) return {}; var n = {}; for (var e in r) if ({}.hasOwnProperty.call(r, e)) { if (t.indexOf(e) !== -1) continue; n[e] = r[e]; } return n; } var Zt = {}.constructor; function G(r) { if (r == null || typeof r != "object") return r; if (Array.isArray(r)) return r.map(G); if (r.constructor !== Zt) return r; var t = {}; for (var n in r) t[n] = G(r[n]); return t; } function Ct(r, t, n) { r === void 0 && (r = "unnamed"); var e = n.jss, i = G(t), s = e.plugins.onCreateRule(r, i, n); return s || null; } var lt = function(t, n) { for (var e = "", i = 0; i < t.length && t[i] !== "!important"; i++) e && (e += n), e += t[i]; return e; }, T = function(t) { if (!Array.isArray(t)) return t; var n = ""; if (Array.isArray(t[0])) for (var e = 0; e < t.length && t[e] !== "!important"; e++) n && (n += ", "), n += lt(t[e], " "); else n = lt(t, ", "); return t[t.length - 1] === "!important" && (n += " !important"), n; }; function x(r) { return r && r.format === !1 ? { linebreak: "", space: "" } : { linebreak: ` `, space: " " }; } function w(r, t) { for (var n = "", e = 0; e < t; e++) n += " "; return n + r; } function _(r, t, n) { n === void 0 && (n = {}); var e = ""; if (!t) return e; var i = n, s = i.indent, o = s === void 0 ? 0 : s, a = t.fallbacks; n.format === !1 && (o = -1 / 0); var c = x(n), d = c.linebreak, h = c.space; if (r && o++, a) if (Array.isArray(a)) for (var u = 0; u < a.length; u++) { var v = a[u]; for (var p in v) { var f = v[p]; f != null && (e && (e += d), e += w(p + ":" + h + T(f) + ";", o)); } } else for (var y in a) { var B = a[y]; B != null && (e && (e += d), e += w(y + ":" + h + T(B) + ";", o)); } for (var H in t) { var rt = t[H]; rt != null && H !== "fallbacks" && (e && (e += d), e += w(H + ":" + h + T(rt) + ";", o)); } return !e && !n.allowEmpty || !r ? e : (o--, e && (e = "" + d + e + d), w("" + r + h + "{" + e, o) + w("}", o)); } var Gt = /([[\].#*$><+~=|^:(),"'`\s])/g, ct = typeof CSS < "u" && CSS.escape, nt = (function(r) { return ct ? ct(r) : r.replace(Gt, "\\$1"); }), xt = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "style", this.isProcessed = !1; var s = i.sheet, o = i.Renderer; this.key = n, this.options = i, this.style = e, s ? this.renderer = s.renderer : o && (this.renderer = new o()); } var t = r.prototype; return t.prop = function(e, i, s) { if (i === void 0) return this.style[e]; var o = s ? s.force : !1; if (!o && this.style[e] === i) return this; var a = i; (!s || s.process !== !1) && (a = this.options.jss.plugins.onChangeValue(i, e, this)); var c = a == null || a === !1, d = e in this.style; if (c && !d && !o) return this; var h = c && d; return h ? delete this.style[e] : this.style[e] = a, this.renderable && this.renderer ? (h ? this.renderer.removeProperty(this.renderable, e) : this.renderer.setProperty(this.renderable, e, a), this) : this; }, r; })(), X = /* @__PURE__ */ (function(r) { St(t, r); function t(e, i, s) { var o; o = r.call(this, e, i, s) || this; var a = s.selector, c = s.scoped, d = s.sheet, h = s.generateId; return a ? o.selectorText = a : c !== !1 && (o.id = h(at(at(o)), d), o.selectorText = "." + nt(o.id)), o; } var n = t.prototype; return n.applyTo = function(i) { var s = this.renderer; if (s) { var o = this.toJSON(); for (var a in o) s.setProperty(i, a, o[a]); } return this; }, n.toJSON = function() { var i = {}; for (var s in this.style) { var o = this.style[s]; typeof o != "object" ? i[s] = o : Array.isArray(o) && (i[s] = T(o)); } return i; }, n.toString = function(i) { var s = this.options.sheet, o = s ? s.options.link : !1, a = o ? g({}, i, { allowEmpty: !0 }) : i; return _(this.selectorText, this.style, a); }, Et(t, [{ key: "selector", set: function(i) { if (i !== this.selectorText) { this.selectorText = i; var s = this.renderer, o = this.renderable; if (!(!o || !s)) { var a = s.setSelector(o, i); a || s.replaceRule(o, this); } } }, get: function() { return this.selectorText; } }]), t; })(xt), Xt = { onCreateRule: function(t, n, e) { return t[0] === "@" || e.parent && e.parent.type === "keyframes" ? null : new X(t, n, e); } }, j = { indent: 1, children: !0 }, Jt = /@([\w-]+)/, Yt = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "conditional", this.isProcessed = !1, this.key = n; var s = n.match(Jt); this.at = s ? s[1] : "unknown", this.query = i.name || "@" + this.at, this.options = i, this.rules = new D(g({}, i, { parent: this })); for (var o in e) this.rules.add(o, e[o]); this.rules.process(); } var t = r.prototype; return t.getRule = function(e) { return this.rules.get(e); }, t.indexOf = function(e) { return this.rules.indexOf(e); }, t.addRule = function(e, i, s) { var o = this.rules.add(e, i, s); return o ? (this.options.jss.plugins.onProcessRule(o), o) : null; }, t.replaceRule = function(e, i, s) { var o = this.rules.replace(e, i, s); return o && this.options.jss.plugins.onProcessRule(o), o; }, t.toString = function(e) { e === void 0 && (e = j); var i = x(e), s = i.linebreak; if (e.indent == null && (e.indent = j.indent), e.children == null && (e.children = j.children), e.children === !1) return this.query + " {}"; var o = this.rules.toString(e); return o ? this.query + " {" + s + o + s + "}" : ""; }, r; })(), Kt = /@container|@media|@supports\s+/, $t = { onCreateRule: function(t, n, e) { return Kt.test(t) ? new Yt(t, n, e) : null; } }, Q = { indent: 1, children: !0 }, te = /@keyframes\s+([\w-]+)/, J = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "keyframes", this.at = "@keyframes", this.isProcessed = !1; var s = n.match(te); s && s[1] ? this.name = s[1] : this.name = "noname", this.key = this.type + "-" + this.name, this.options = i; var o = i.scoped, a = i.sheet, c = i.generateId; this.id = o === !1 ? this.name : nt(c(this, a)), this.rules = new D(g({}, i, { parent: this })); for (var d in e) this.rules.add(d, e[d], g({}, i, { parent: this })); this.rules.process(); } var t = r.prototype; return t.toString = function(e) { e === void 0 && (e = Q); var i = x(e), s = i.linebreak; if (e.indent == null && (e.indent = Q.indent), e.children == null && (e.children = Q.children), e.children === !1) return this.at + " " + this.id + " {}"; var o = this.rules.toString(e); return o && (o = "" + s + o + s), this.at + " " + this.id + " {" + o + "}"; }, r; })(), ee = /@keyframes\s+/, ne = /\$([\w-]+)/g, Y = function(t, n) { return typeof t == "string" ? t.replace(ne, function(e, i) { return i in n ? n[i] : e; }) : t; }, dt = function(t, n, e) { var i = t[n], s = Y(i, e); s !== i && (t[n] = s); }, ie = { onCreateRule: function(t, n, e) { return typeof t == "string" && ee.test(t) ? new J(t, n, e) : null; }, // Animation name ref replacer. onProcessStyle: function(t, n, e) { return n.type !== "style" || !e || ("animation-name" in t && dt(t, "animation-name", e.keyframes), "animation" in t && dt(t, "animation", e.keyframes)), t; }, onChangeValue: function(t, n, e) { var i = e.options.sheet; if (!i) return t; switch (n) { case "animation": return Y(t, i.keyframes); case "animation-name": return Y(t, i.keyframes); default: return t; } } }, se = /* @__PURE__ */ (function(r) { St(t, r); function t() { return r.apply(this, arguments) || this; } var n = t.prototype; return n.toString = function(i) { var s = this.options.sheet, o = s ? s.options.link : !1, a = o ? g({}, i, { allowEmpty: !0 }) : i; return _(this.key, this.style, a); }, t; })(xt), re = { onCreateRule: function(t, n, e) { return e.parent && e.parent.type === "keyframes" ? new se(t, n, e) : null; } }, oe = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "font-face", this.at = "@font-face", this.isProcessed = !1, this.key = n, this.style = e, this.options = i; } var t = r.prototype; return t.toString = function(e) { var i = x(e), s = i.linebreak; if (Array.isArray(this.style)) { for (var o = "", a = 0; a < this.style.length; a++) o += _(this.at, this.style[a]), this.style[a + 1] && (o += s); return o; } return _(this.at, this.style, e); }, r; })(), ae = /@font-face/, le = { onCreateRule: function(t, n, e) { return ae.test(t) ? new oe(t, n, e) : null; } }, ce = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "viewport", this.at = "@viewport", this.isProcessed = !1, this.key = n, this.style = e, this.options = i; } var t = r.prototype; return t.toString = function(e) { return _(this.key, this.style, e); }, r; })(), de = { onCreateRule: function(t, n, e) { return t === "@viewport" || t === "@-ms-viewport" ? new ce(t, n, e) : null; } }, he = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "simple", this.isProcessed = !1, this.key = n, this.value = e, this.options = i; } var t = r.prototype; return t.toString = function(e) { if (Array.isArray(this.value)) { for (var i = "", s = 0; s < this.value.length; s++) i += this.key + " " + this.value[s] + ";", this.value[s + 1] && (i += ` `); return i; } return this.key + " " + this.value + ";"; }, r; })(), ue = { "@charset": !0, "@import": !0, "@namespace": !0 }, me = { onCreateRule: function(t, n, e) { return t in ue ? new he(t, n, e) : null; } }, ht = [Xt, $t, ie, re, le, de, me], ge = { process: !0 }, ut = { force: !0, process: !0 /** * Contains rules objects and allows adding/removing etc. * Is used for e.g. by `StyleSheet` or `ConditionalRule`. */ }, D = /* @__PURE__ */ (function() { function r(n) { this.map = {}, this.raw = {}, this.index = [], this.counter = 0, this.options = n, this.classes = n.classes, this.keyframes = n.keyframes; } var t = r.prototype; return t.add = function(e, i, s) { var o = this.options, a = o.parent, c = o.sheet, d = o.jss, h = o.Renderer, u = o.generateId, v = o.scoped, p = g({ classes: this.classes, parent: a, sheet: c, jss: d, Renderer: h, generateId: u, scoped: v, name: e, keyframes: this.keyframes, selector: void 0 }, s), f = e; e in this.raw && (f = e + "-d" + this.counter++), this.raw[f] = i, f in this.classes && (p.selector = "." + nt(this.classes[f])); var y = Ct(f, i, p); if (!y) return null; this.register(y); var B = p.index === void 0 ? this.index.length : p.index; return this.index.splice(B, 0, y), y; }, t.replace = function(e, i, s) { var o = this.get(e), a = this.index.indexOf(o); o && this.remove(o); var c = s; return a !== -1 && (c = g({}, s, { index: a })), this.add(e, i, c); }, t.get = function(e) { return this.map[e]; }, t.remove = function(e) { this.unregister(e), delete this.raw[e.key], this.index.splice(this.index.indexOf(e), 1); }, t.indexOf = function(e) { return this.index.indexOf(e); }, t.process = function() { var e = this.options.jss.plugins; this.index.slice(0).forEach(e.onProcessRule, e); }, t.register = function(e) { this.map[e.key] = e, e instanceof X ? (this.map[e.selector] = e, e.id && (this.classes[e.key] = e.id)) : e instanceof J && this.keyframes && (this.keyframes[e.name] = e.id); }, t.unregister = function(e) { delete this.map[e.key], e instanceof X ? (delete this.map[e.selector], delete this.classes[e.key]) : e instanceof J && delete this.keyframes[e.name]; }, t.update = function() { var e, i, s; if (typeof (arguments.length <= 0 ? void 0 : arguments[0]) == "string" ? (e = arguments.length <= 0 ? void 0 : arguments[0], i = arguments.length <= 1 ? void 0 : arguments[1], s = arguments.length <= 2 ? void 0 : arguments[2]) : (i = arguments.length <= 0 ? void 0 : arguments[0], s = arguments.length <= 1 ? void 0 : arguments[1], e = null), e) this.updateOne(this.get(e), i, s); else for (var o = 0; o < this.index.length; o++) this.updateOne(this.index[o], i, s); }, t.updateOne = function(e, i, s) { s === void 0 && (s = ge); var o = this.options, a = o.jss.plugins, c = o.sheet; if (e.rules instanceof r) { e.rules.update(i, s); return; } var d = e.style; if (a.onUpdate(i, e, c, s), s.process && d && d !== e.style) { a.onProcessStyle(e.style, e, c); for (var h in e.style) { var u = e.style[h], v = d[h]; u !== v && e.prop(h, u, ut); } for (var p in d) { var f = e.style[p], y = d[p]; f == null && f !== y && e.prop(p, null, ut); } } }, t.toString = function(e) { for (var i = "", s = this.options.sheet, o = s ? s.options.link : !1, a = x(e), c = a.linebreak, d = 0; d < this.index.length; d++) { var h = this.index[d], u = h.toString(e); !u && !o || (i && (i += c), i += u); } return i; }, r; })(), wt = /* @__PURE__ */ (function() { function r(n, e) { this.attached = !1, this.deployed = !1, this.classes = {}, this.keyframes = {}, this.options = g({}, e, { sheet: this, parent: this, classes: this.classes, keyframes: this.keyframes }), e.Renderer && (this.renderer = new e.Renderer(this)), this.rules = new D(this.options); for (var i in n) this.rules.add(i, n[i]); this.rules.process(); } var t = r.prototype; return t.attach = function() { return this.attached ? this : (this.renderer && this.renderer.attach(), this.attached = !0, this.deployed || this.deploy(), this); }, t.detach = function() { return this.attached ? (this.renderer && this.renderer.detach(), this.attached = !1, this) : this; }, t.addRule = function(e, i, s) { var o = this.queue; this.attached && !o && (this.queue = []); var a = this.rules.add(e, i, s); return a ? (this.options.jss.plugins.onProcessRule(a), this.attached ? (this.deployed && (o ? o.push(a) : (this.insertRule(a), this.queue && (this.queue.forEach(this.insertRule, this), this.queue = void 0))), a) : (this.deployed = !1, a)) : null; }, t.replaceRule = function(e, i, s) { var o = this.rules.get(e); if (!o) return this.addRule(e, i, s); var a = this.rules.replace(e, i, s); return a && this.options.jss.plugins.onProcessRule(a), this.attached ? (this.deployed && this.renderer && (a ? o.renderable && this.renderer.replaceRule(o.renderable, a) : this.renderer.deleteRule(o)), a) : (this.deployed = !1, a); }, t.insertRule = function(e) { this.renderer && this.renderer.insertRule(e); }, t.addRules = function(e, i) { var s = []; for (var o in e) { var a = this.addRule(o, e[o], i); a && s.push(a); } return s; }, t.getRule = function(e) { return this.rules.get(e); }, t.deleteRule = function(e) { var i = typeof e == "object" ? e : this.rules.get(e); return !i || // Style sheet was created without link: true and attached, in this case we // won't be able to remove the CSS rule from the DOM. this.attached && !i.renderable ? !1 : (this.rules.remove(i), this.attached && i.renderable && this.renderer ? this.renderer.deleteRule(i.renderable) : !0); }, t.indexOf = function(e) { return this.rules.indexOf(e); }, t.deploy = function() { return this.renderer && this.renderer.deploy(), this.deployed = !0, this; }, t.update = function() { var e; return (e = this.rules).update.apply(e, arguments), this; }, t.updateOne = function(e, i, s) { return this.rules.updateOne(e, i, s), this; }, t.toString = function(e) { return this.rules.toString(e); }, r; })(), pe = /* @__PURE__ */ (function() { function r() { this.plugins = { internal: [], external: [] }, this.registry = {}; } var t = r.prototype; return t.onCreateRule = function(e, i, s) { for (var o = 0; o < this.registry.onCreateRule.length; o++) { var a = this.registry.onCreateRule[o](e, i, s); if (a) return a; } return null; }, t.onProcessRule = function(e) { if (!e.isProcessed) { for (var i = e.options.sheet, s = 0; s < this.registry.onProcessRule.length; s++) this.registry.onProcessRule[s](e, i); e.style && this.onProcessStyle(e.style, e, i), e.isProcessed = !0; } }, t.onProcessStyle = function(e, i, s) { for (var o = 0; o < this.registry.onProcessStyle.length; o++) i.style = this.registry.onProcessStyle[o](i.style, i, s); }, t.onProcessSheet = function(e) { for (var i = 0; i < this.registry.onProcessSheet.length; i++) this.registry.onProcessSheet[i](e); }, t.onUpdate = function(e, i, s, o) { for (var a = 0; a < this.registry.onUpdate.length; a++) this.registry.onUpdate[a](e, i, s, o); }, t.onChangeValue = function(e, i, s) { for (var o = e, a = 0; a < this.registry.onChangeValue.length; a++) o = this.registry.onChangeValue[a](o, i, s); return o; }, t.use = function(e, i) { i === void 0 && (i = { queue: "external" }); var s = this.plugins[i.queue]; s.indexOf(e) === -1 && (s.push(e), this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function(o, a) { for (var c in a) c in o && o[c].push(a[c]); return o; }, { onCreateRule: [], onProcessRule: [], onProcessStyle: [], onProcessSheet: [], onChangeValue: [], onUpdate: [] })); }, r; })(), fe = /* @__PURE__ */ (function() { function r() { this.registry = []; } var t = r.prototype; return t.add = function(e) { var i = this.registry, s = e.options.index; if (i.indexOf(e) === -1) { if (i.length === 0 || s >= this.index) { i.push(e); return; } for (var o = 0; o < i.length; o++) if (i[o].options.index > s) { i.splice(o, 0, e); return; } } }, t.reset = function() { this.registry = []; }, t.remove = function(e) { var i = this.registry.indexOf(e); this.registry.splice(i, 1); }, t.toString = function(e) { for (var i = e === void 0 ? {} : e, s = i.attached, o = Vt(i, ["attached"]), a = x(o), c = a.linebreak, d = "", h = 0; h < this.registry.length; h++) { var u = this.registry[h]; s != null && u.attached !== s || (d && (d += c), d += u.toString(o)); } return d; }, Et(r, [{ key: "index", /** * Current highest index number. */ get: function() { return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index; } }]), r; })(), R = new fe(), K = typeof globalThis < "u" ? globalThis : typeof window < "u" && window.Math === Math ? window : typeof self < "u" && self.Math === Math ? self : Function("return this")(), $ = "2f1acc6c3a606b082e5eef5e54414ffb"; K[$] == null && (K[$] = 0); var mt = K[$]++, gt = function(t) { t === void 0 && (t = {}); var n = 0, e = function(s, o) { n += 1; var a = "", c = ""; return o && (o.options.classNamePrefix && (c = o.options.classNamePrefix), o.options.jss.id != null && (a = String(o.options.jss.id))), t.minify ? "" + (c || "c") + mt + a + n : c + s.key + "-" + mt + (a ? "-" + a : "") + "-" + n; }; return e; }, Tt = function(t) { var n; return function() { return n || (n = t()), n; }; }, ve = function(t, n) { try { return t.attributeStyleMap ? t.attributeStyleMap.get(n) : t.style.getPropertyValue(n); } catch { return ""; } }, ye = function(t, n, e) { try { var i = e; if (Array.isArray(e) && (i = T(e)), t.attributeStyleMap) t.attributeStyleMap.set(n, i); else { var s = i ? i.indexOf("!important") : -1, o = s > -1 ? i.substr(0, s - 1) : i; t.style.setProperty(n, o, s > -1 ? "important" : ""); } } catch { return !1; } return !0; }, be = function(t, n) { try { t.attributeStyleMap ? t.attributeStyleMap.delete(n) : t.style.removeProperty(n); } catch { } }, Ee = function(t, n) { return t.selectorText = n, t.selectorText === n; }, Rt = Tt(function() { return document.querySelector("head"); }); function Se(r, t) { for (var n = 0; n < r.length; n++) { var e = r[n]; if (e.attached && e.options.index > t.index && e.options.insertionPoint === t.insertionPoint) return e; } return null; } function Ce(r, t) { for (var n = r.length - 1; n >= 0; n--) { var e = r[n]; if (e.attached && e.options.insertionPoint === t.insertionPoint) return e; } return null; } function xe(r) { for (var t = Rt(), n = 0; n < t.childNodes.length; n++) { var e = t.childNodes[n]; if (e.nodeType === 8 && e.nodeValue.trim() === r) return e; } return null; } function we(r) { var t = R.registry; if (t.length > 0) { var n = Se(t, r); if (n && n.renderer) return { parent: n.renderer.element.parentNode, node: n.renderer.element }; if (n = Ce(t, r), n && n.renderer) return { parent: n.renderer.element.parentNode, node: n.renderer.element.nextSibling }; } var e = r.insertionPoint; if (e && typeof e == "string") { var i = xe(e); if (i) return { parent: i.parentNode, node: i.nextSibling }; } return !1; } function Te(r, t) { var n = t.insertionPoint, e = we(t); if (e !== !1 && e.parent) { e.parent.insertBefore(r, e.node); return; } if (n && typeof n.nodeType == "number") { var i = n, s = i.parentNode; s && s.insertBefore(r, i.nextSibling); return; } Rt().appendChild(r); } var Re = Tt(function() { var r = document.querySelector('meta[property="csp-nonce"]'); return r ? r.getAttribute("content") : null; }), pt = function(t, n, e) { try { "insertRule" in t ? t.insertRule(n, e) : "appendRule" in t && t.appendRule(n); } catch { return !1; } return t.cssRules[e]; }, ft = function(t, n) { var e = t.cssRules.length; return n === void 0 || n > e ? e : n; }, Pe = function() { var t = document.createElement("style"); return t.textContent = ` `, t; }, _e = /* @__PURE__ */ (function() { function r(n) { this.getPropertyValue = ve, this.setProperty = ye, this.removeProperty = be, this.setSelector = Ee, this.hasInsertedRules = !1, this.cssRules = [], n && R.add(n), this.sheet = n; var e = this.sheet ? this.sheet.options : {}, i = e.media, s = e.meta, o = e.element; this.element = o || Pe(), this.element.setAttribute("data-jss", ""), i && this.element.setAttribute("media", i), s && this.element.setAttribute("data-meta", s); var a = Re(); a && this.element.setAttribute("nonce", a); } var t = r.prototype; return t.attach = function() { if (!(this.element.parentNode || !this.sheet)) { Te(this.element, this.sheet.options); var e = !!(this.sheet && this.sheet.deployed); this.hasInsertedRules && e && (this.hasInsertedRules = !1, this.deploy()); } }, t.detach = function() { if (this.sheet) { var e = this.element.parentNode; e && e.removeChild(this.element), this.sheet.options.link && (this.cssRules = [], this.element.textContent = ` `); } }, t.deploy = function() { var e = this.sheet; if (e) { if (e.options.link) { this.insertRules(e.rules); return; } this.element.textContent = ` ` + e.toString() + ` `; } }, t.insertRules = function(e, i) { for (var s = 0; s < e.index.length; s++) this.insertRule(e.index[s], s, i); }, t.insertRule = function(e, i, s) { if (s === void 0 && (s = this.element.sheet), e.rules) { var o = e, a = s; if (e.type === "conditional" || e.type === "keyframes") { var c = ft(s, i); if (a = pt(s, o.toString({ children: !1 }), c), a === !1) return !1; this.refCssRule(e, c, a); } return this.insertRules(o.rules, a), a; } var d = e.toString(); if (!d) return !1; var h = ft(s, i), u = pt(s, d, h); return u === !1 ? !1 : (this.hasInsertedRules = !0, this.refCssRule(e, h, u), u); }, t.refCssRule = function(e, i, s) { e.renderable = s, e.options.parent instanceof wt && this.cssRules.splice(i, 0, s); }, t.deleteRule = function(e) { var i = this.element.sheet, s = this.indexOf(e); return s === -1 ? !1 : (i.deleteRule(s), this.cssRules.splice(s, 1), !0); }, t.indexOf = function(e) { return this.cssRules.indexOf(e); }, t.replaceRule = function(e, i) { var s = this.indexOf(e); return s === -1 ? !1 : (this.element.sheet.deleteRule(s), this.cssRules.splice(s, 1), this.insertRule(i, s)); }, t.getRules = function() { return this.element.sheet.cssRules; }, r; })(), ke = 0, Le = /* @__PURE__ */ (function() { function r(n) { this.id = ke++, this.version = "10.10.0", this.plugins = new pe(), this.options = { id: { minify: !1 }, createGenerateId: gt, Renderer: jt ? _e : null, plugins: [] }, this.generateId = gt({ minify: !1 }); for (var e = 0; e < ht.length; e++) this.plugins.use(ht[e], { queue: "internal" }); this.setup(n); } var t = r.prototype; return t.setup = function(e) { return e === void 0 && (e = {}), e.createGenerateId && (this.options.createGenerateId = e.createGenerateId), e.id && (this.options.id = g({}, this.options.id, e.id)), (e.createGenerateId || e.id) && (this.generateId = this.options.createGenerateId(this.options.id)), e.insertionPoint != null && (this.options.insertionPoint = e.insertionPoint), "Renderer" in e && (this.options.Renderer = e.Renderer), e.plugins && this.use.apply(this, e.plugins), this; }, t.createStyleSheet = function(e, i) { i === void 0 && (i = {}); var s = i, o = s.index; typeof o != "number" && (o = R.index === 0 ? 0 : R.index + 1); var a = new wt(e, g({}, i, { jss: this, generateId: i.generateId || this.generateId, insertionPoint: this.options.insertionPoint, Renderer: this.options.Renderer, index: o })); return this.plugins.onProcessSheet(a), a; }, t.removeStyleSheet = function(e) { return e.detach(), R.remove(e), this; }, t.createRule = function(e, i, s) { if (i === void 0 && (i = {}), s === void 0 && (s = {}), typeof e == "object") return this.createRule(void 0, e, i); var o = g({}, s, { name: e, jss: this, Renderer: this.options.Renderer }); o.generateId || (o.generateId = this.generateId), o.classes || (o.classes = {}), o.keyframes || (o.keyframes = {}); var a = Ct(e, i, o); return a && this.plugins.onProcessRule(a), a; }, t.use = function() { for (var e = this, i = arguments.length, s = new Array(i), o = 0; o < i; o++) s[o] = arguments[o]; return s.forEach(function(a) { e.plugins.use(a); }), this; }, r; })(), Ie = function(t) { return new Le(t); }; var Oe = Ie(), b = "@global", tt = "@global ", Ae = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "global", this.at = b, this.isProcessed = !1, this.key = n, this.options = i, this.rules = new D(g({}, i, { parent: this })); for (var s in e) this.rules.add(s, e[s]); this.rules.process(); } var t = r.prototype; return t.getRule = function(e) { return this.rules.get(e); }, t.addRule = function(e, i, s) { var o = this.rules.add(e, i, s); return o && this.options.jss.plugins.onProcessRule(o), o; }, t.replaceRule = function(e, i, s) { var o = this.rules.replace(e, i, s); return o && this.options.jss.plugins.onProcessRule(o), o; }, t.indexOf = function(e) { return this.rules.indexOf(e); }, t.toString = function(e) { return this.rules.toString(e); }, r; })(), Fe = /* @__PURE__ */ (function() { function r(n, e, i) { this.type = "global", this.at = b, this.isProcessed = !1, this.key = n, this.options = i; var s = n.substr(tt.length); this.rule = i.jss.createRule(s, e, g({}, i, { parent: this })); } var t = r.prototype; return t.toString = function(e) { return this.rule ? this.rule.toString(e) : ""; }, r; })(), Me = /\s*,\s*/g; function Pt(r, t) { for (var n = r.split(Me), e = "", i = 0; i < n.length; i++) e += t + " " + n[i].trim(), n[i + 1] && (e += ", "); return e; } function Ne(r, t) { var n = r.options, e = r.style, i = e ? e[b] : null; if (i) { for (var s in i) t.addRule(s, i[s], g({}, n, { selector: Pt(s, r.selector) })); delete e[b]; } } function Be(r, t) { var n = r.options, e = r.style; for (var i in e) if (!(i[0] !== "@" || i.substr(0, b.length) !== b)) { var s = Pt(i.substr(b.length), r.selector); t.addRule(s, e[i], g({}, n, { selector: s })), delete e[i]; } } function ze() { function r(n, e, i) { if (!n) return null; if (n === b) return new Ae(n, e, i); if (n[0] === "@" && n.substr(0, tt.length) === tt) return new Fe(n, e, i); var s = i.parent; return s && (s.type === "global" || s.options.parent && s.options.parent.type === "global") && (i.scoped = !1), !i.selector && i.scoped === !1 && (i.selector = n), null; } function t(n, e) { n.type !== "style" || !e || (Ne(n, e), Be(n, e)); } return { onCreateRule: r, onProcessRule: t }; } var Ue = /[A-Z]/g, De = /^ms-/, W = {}; function He(r) { return "-" + r.toLowerCase(); } function _t(r) { if (W.hasOwnProperty(r)) return W[r]; var t = r.replace(Ue, He); return W[r] = De.test(t) ? "-" + t : t; } function U(r) { var t = {}; for (var n in r) { var e = n.indexOf("--") === 0 ? n : _t(n); t[e] = r[n]; } return r.fallbacks && (Array.isArray(r.fallbacks) ? t.fallbacks = r.fallbacks.map(U) : t.fallbacks = U(r.fallbacks)), t; } function je() { function r(n) { if (Array.isArray(n)) { for (var e = 0; e < n.length; e++) n[e] = U(n[e]); return n; } return U(n); } function t(n, e, i) { if (e.indexOf("--") === 0) return n; var s = _t(e); return e === s ? n : (i.prop(s, n), null); } return { onProcessStyle: r, onChangeValue: t }; } var S = { d: (r, t) => { for (var n in t) S.o(t, n) && !S.o(r, n) && Object.defineProperty(r, n, { enumerable: !0, get: t[n] }); }, o: (r, t) => Object.prototype.hasOwnProperty.call(r, t) }, m = {}; S.d(m, { ym: () => F, EW: () => M, Mx: () => nn, L3: () => At, rl: () => k, NR: () => L, f1: () => A, IY: () => O, RZ: () => it, XY: () => on, Fk: () => I, Zh: () => N, ek: () => et, MG: () => Lt, gE: () => Ot, tW: () => It, wr: () => st, QT: () => E }); const l = (vt = { CandidatePairStats: () => Ht, Flags: () => Dt, Logger: () => Ut, NumericParameters: () => zt, OptionParameters: () => Bt, SettingFlag: () => Nt, TextParameters: () => Mt, WebXRController: () => Ft }, q = {}, S.d(q, vt), q); var vt, q, E; class it { constructor(t, n, e) { this.rootDiv = t, this.rootElement = n, this.textElement = e, this.rootElement.appendChild(this.textElement), this.hide(), this.rootDiv.appendChild(this.rootElement); } show() { this.rootElement.classList.remove("hiddenState"); } hide() { this.rootElement.classList.add("hiddenState"); } } class M extends it { constructor(t, n, e) { super(t, n, e), this.onActionCallback = () => { l.Logger.Info(l.Logger.GetStackTrace(), "Did you forget to set the onAction callback in your overlay?"); }; } update(t) { t == null && t == null || (this.textElement.innerHTML = t); } onAction(t) { this.onActionCallback = t; } activate() { this.onActionCallback(); } } class k extends M { static createRootElement() { const t = document.createElement("div"); return t.id = "connectOverlay", t.className = "clickableState", t; } static createContentElement() { const t = document.createElement("div"); return t.id = "connectButton", t.innerHTML = "Click to start", t; } constructor(t) { super(t, k.createRootElement(), k.createContentElement()), this.rootElement.addEventListener("click", (() => { this.activate(); })); } } class L extends M { static createRootElement() { const t = document.createElement("div"); return t.id = "disconnectOverlay", t.className = "clickableState", t; } static createContentElement() { const t = document.createElement("div"); return t.id = "disconnectButton", t.innerHTML = "Click To Restart", t; } constructor(t) { super(t, L.createRootElement(), L.createContentElement()), this.rootElement.addEventListener("click", (() => { this.activate(); })); } } class I extends M { static createRootElement() { const t = document.createElement("div"); return t.id = "playOverlay", t.className = "clickableState", t; } static createContentElement() { const t = document.createElement("img"); return t.id = "playButton", t.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPEAAAD5CAYAAAD2mNNkAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAASgklEQVR4Xu2dC7BdVX2HqUCCIRASCPjAFIQREBRBBSRYbFOt8lIrFUWRFqXWsT5wbItUqFWs0KqIMPKoYEWpRS06KDjS1BeVFkVQbCw+wCfiAwGhCKWP9PuZtU24uTe59zz22Y/vm/nGkXtz7jlrr9+sdfZea/03Wb169QtxGW62iYi0D8L7NbwYj8EdcdPyIxFpA4T2P/F/8Ua8CI/GhPnXyq+ISJMhrAlxxX9hRuYL8Sh8SPk1EWkqBHXdEFfcg6vw3fhs3Kb8uog0DQI6XYgr8rOvYsJ8OM4v/0xEmkIJ6ob4P8zIfANegCvQMIs0BQK5sRBXJMy/wIzM5+ByXFBeRkQmBUGcbYjX5S5MmM/AA3CL8nIiUjcEcJ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Zb+QIdva4izRDLPeldi6vSm1OfC8rFE+gMdv40hznu+GlMhfz/cEj0OR/oJnb9NIc57vQZPxCehI69ICUbTydnN1+LJmPAuKW9fRAhEk0OcZ73XYw6hOwg9v1lkKgSjqSHO5oRT8TdwKbq+WWQ6CEeTQpw7zlmocTqmTm/Ob7bomMiGICRNCHGmzT/BszClPjPyuspKZDYQlkmH+Mf4t7gct0enzSJzgdBMKsQJ70X4VHTkFRkUwlN3iFM54YN4KG6LHkQnMgyEqK4Q51nvpZjwZuQ1vCKjgDDVEeIr8XBMeL3bLDJKCNW4QpyR9zo8ArdBb1iJjAPCNeoQJ7ypFngszkc3JoiME0I2qhDnWW8Kjv0xujFBpC4I3DAhzgqrHESXUp/Z0/uQ8rIiUhcEb5AQJ7z34TfwJNy5vJyI1A0BnG2IE9yYsiffwTfizuh3XpFJQghnE+J83014v4upkL8r+qhIpAkQxg2FOOHNzzNtPhf3REdekSZRQjqVTJtzguSNeD4eWH5dRJoGAZ0a4rvxm3ghrkCnzSJNhpBWIc7/plpgwpudRZ7dLNIGCOvtJbwX42G4uPxIRNoAoU2d3iNxUflPItIaNtnk/wEGBoMdpECGHAAAAABJRU5ErkJggg==", t.alt = "Start Streaming", t; } constructor(t) { super(t, I.createRootElement(), I.createContentElement()), this.rootElement.addEventListener("click", (() => { this.activate(); })); } } class st extends it { constructor(t, n, e) { super(t, n, e); } update(t) { t == null && t == null || (this.textElement.innerHTML = t); } } class O extends st { static createRootElement() { const t = document.createElement("div"); return t.id = "infoOverlay", t.className = "textDisplayState", t; } static createContentElement() { const t = document.createElement("div"); return t.id = "messageOverlayInner", t; } constructor(t) { super(t, O.createRootElement(), O.createContentElement()); } } class A extends st { static createRootElement() { const t = document.createElement("div"); return t.id = "errorOverlay", t.className = "textDisplayState", t; } static createContentElement() { const t = document.createElement("div"); return t.id = "errorOverlayInner", t; } constructor(t) { super(t, A.createRootElement(), A.createContentElement()); } } class F extends M { static createRootElement() { const t = document.createElement("div"); return t.id = "afkOverlay", t.className = "clickableState", t; } static createContentElement() { const t = document.createElement("div"); return t.id = "afkOverlayInner", t.innerHTML = '<center>No activity detected<br>Disconnecting in <span id="afkCountDownNumber"></span> seconds<br>Click to continue<br></center>', t; } constructor(t) { super(t, F.createRootElement(), F.createContentElement()), this.rootElement.addEventListener("click", (() => { this.activate(); })); } updateCountdown(t) { this.textElement.innerHTML = `<center>No activity detected<br>Disconnecting in <span id="afkCountDownNumber">${t}</span> seconds<br>Click to continue<br></center>`; } } class kt { get rootElement() { return this._rootElement; } set rootElement(t) { t.onclick = () => this.toggleFullscreen(), this._rootElement = t; } constructor() { this.isFullscreen = !1, document.addEventListener("webkitfullscreenchange", (() => this.onFullscreenChange()), !1), document.addEventListener("mozfullscreenchange", (() => this.onFullscreenChange()), !1), document.addEventListener("fullscreenchange", (() => this.onFullscreenChange()), !1), document.addEventListener("MSFullscreenChange", (() => this.onFullscreenChange()), !1); } toggleFullscreen() { if (document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement) document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(); else { const t = this.fullscreenElement; if (!t) return; t.requestFullscreen ? t.requestFullscreen() : t.mozRequestFullscreen ? t.mozRequestFullscreen() : t.webkitRequestFullscreen ? t.webkitRequestFullscreen() : t.msRequestFullscreen ? t.msRequestFullscreen() : t.webkitEnterFullscreen && t.webkitEnterFullscreen(); } this.onFullscreenChange(); } onFullscreenChange() { this.isFullscreen = document.webkitIsFullScreen || document.mozFullScreen || document.msFullscreenElement && document.msFullscreenElement !== null || document.fullscreenElement && document.fullscreenElement !== null; } } class Qe extends kt { constructor(t) { super(), this.rootElement = t; } } class We extends kt { constructor() { super(); const t = document.createElement("button"); t.type = "button", t.classList.add("UiTool"), t.id = "fullscreen-btn", t.appendChild(this.maximizeIcon), t.appendChild(this.minimizeIcon), t.appendChild(this.tooltipText), this.rootElement = t; } get tooltipText() { return this._tooltipText || (this._tooltipText = document.createElement("span"), this._tooltipText.classList.add("tooltiptext"), this._tooltipText.innerHTML = "Fullscreen"), this._tooltipText; } get maximizeIcon() { if (!this._maximizeIcon) { this._maximizeIcon = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._maximizeIcon.setAttributeNS(null, "id", "maximizeIcon"), this._maximizeIcon.setAttributeNS(null, "x", "0px"), this._maximizeIcon.setAttributeNS(null, "y", "0px"), this._maximizeIcon.setAttributeNS(null, "viewBox", "0 0 384.97 384.97"); const t = document.createElementNS("http://www.w3.org/2000/svg", "g"); t.classList.add("svgIcon"), this._maximizeIcon.appendChild(t); const n = document.createElementNS("http://www.w3.org/2000/svg", "path"); n.setAttributeNS(null, "d", "M384.97,12.03c0-6.713-5.317-12.03-12.03-12.03H264.847c-6.833,0-11.922,5.39-11.934,12.223c0,6.821,5.101,11.838,11.934,11.838h96.062l-0.193,96.519c0,6.833,5.197,12.03,12.03,12.03c6.833-0.012,12.03-5.197,12.03-12.03l0.193-108.369c0-0.036-0.012-0.06-0.012-0.084C384.958,12.09,384.97,12.066,384.97,12.03z"); const e = document.createElementNS("http://www.w3.org/2000/svg", "path"); e.setAttributeNS(null, "d", "M120.496,0H12.403c-0.036,0-0.06,0.012-0.096,0.012C12.283,0.012,12.247,0,12.223,0C5.51,0,0.192,5.317,0.192,12.03L0,120.399c0,6.833,5.39,11.934,12.223,11.934c6.821,0,11.838-5.101,11.838-11.934l0.192-96.339h96.242c6.833,0,12.03-5.197,12.03-12.03C132.514,5.197,127.317,0,120.496,0z"); const i = document.createElementNS("http://www.w3.org/2000/svg", "path"); i.setAttributeNS(null, "d", "M120.123,360.909H24.061v-96.242c0-6.833-5.197-12.03-12.03-12.03S0,257.833,0,264.667v108.092c0,0.036,0.012,0.06,0.012,0.084c0,0.036-0.012,0.06-0.012,0.096c0,6.713,5.317,12.03,12.03,12.03h108.092c6.833,0,11.922-5.39,11.934-12.223C132.057,365.926,126.956,360.909,120.123,360.909z"); const s = document.createElementNS("http://www.w3.org/2000/svg", "path"); s.setAttributeNS(null, "d", "M372.747,252.913c-6.833,0-11.85,5.101-11.838,11.934v96.062h-96.242c-6.833,0-12.03,5.197-12.03,12.03s5.197,12.03,12.03,12.03h108.092c0.036,0,0.06-0.012,0.084-0.012c0.036-0.012,0.06,0.012,0.096,0.012c6.713,0,12.03-5.317,12.03-12.03V264.847C384.97,258.014,379.58,252.913,372.747,252.913z"), t.appendChild(n), t.appendChild(e), t.appendChild(i), t.appendChild(s); } return this._maximizeIcon; } get minimizeIcon() { if (!this._minimizeIcon) { this._minimizeIcon = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._minimizeIcon.setAttributeNS(null, "id", "minimizeIcon"), this._minimizeIcon.setAttributeNS(null, "x", "0px"), this._minimizeIcon.setAttributeNS(null, "y", "0px"), this._minimizeIcon.setAttributeNS(null, "viewBox", "0 0 385.331 385.331"); const t = document.createElementNS("http://www.w3.org/2000/svg", "g"); t.classList.add("svgIcon"), this._minimizeIcon.appendChild(t); const n = document.createElementNS("http://www.w3.org/2000/svg", "path"); n.setAttributeNS(null, "d", "M264.943,156.665h108.273c6.833,0,11.934-5.39,11.934-12.211c0-6.833-5.101-11.85-11.934-11.838h-96.242V36.181c0-6.833-5.197-12.03-12.03-12.03s-12.03,5.197-12.03,12.03v108.273c0,0.036,0.012,0.06,0.012,0.084c0,0.036-0.012,0.06-0.012,0.096C252.913,151.347,258.23,156.677,264.943,156.665z"); const e = document.createElementNS("http://www.w3.org/2000/svg", "path"); e.setAttributeNS(null, "d", "M120.291,24.247c-6.821,0-11.838,5.113-11.838,11.934v96.242H12