@ikonai/sdk 0.0.43 → 1.0.0
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/index.js +381 -376
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Ml(t) {
|
|
2
2
|
return t;
|
|
3
3
|
}
|
|
4
4
|
function ue(t) {
|
|
@@ -564,13 +564,13 @@ class F {
|
|
|
564
564
|
return this.ensureType(
|
|
565
565
|
9
|
|
566
566
|
/* Array */
|
|
567
|
-
),
|
|
567
|
+
), Le.create(this.payload);
|
|
568
568
|
}
|
|
569
569
|
asDictionary() {
|
|
570
570
|
return this.ensureType(
|
|
571
571
|
10
|
|
572
572
|
/* Dict */
|
|
573
|
-
),
|
|
573
|
+
), ve.create(this.payload);
|
|
574
574
|
}
|
|
575
575
|
ensureType(e) {
|
|
576
576
|
if (this.type !== e)
|
|
@@ -585,7 +585,7 @@ class Wr extends F {
|
|
|
585
585
|
return this.type === 1;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
class
|
|
588
|
+
class Le {
|
|
589
589
|
payload;
|
|
590
590
|
elementType;
|
|
591
591
|
count;
|
|
@@ -601,7 +601,7 @@ class ve {
|
|
|
601
601
|
this.count = U(e, n, "ArrayMalformed"), this.offset = n.offset;
|
|
602
602
|
}
|
|
603
603
|
static create(e) {
|
|
604
|
-
return new
|
|
604
|
+
return new Le(se(e));
|
|
605
605
|
}
|
|
606
606
|
next() {
|
|
607
607
|
if (this.index >= this.count) {
|
|
@@ -658,7 +658,7 @@ class Z extends F {
|
|
|
658
658
|
super(e, r);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
class
|
|
661
|
+
class ve {
|
|
662
662
|
payload;
|
|
663
663
|
keyType;
|
|
664
664
|
valueType;
|
|
@@ -675,7 +675,7 @@ class Le {
|
|
|
675
675
|
this.count = U(e, r, "DictMalformed"), this.offset = r.offset;
|
|
676
676
|
}
|
|
677
677
|
static create(e) {
|
|
678
|
-
return new
|
|
678
|
+
return new ve(se(e));
|
|
679
679
|
}
|
|
680
680
|
next() {
|
|
681
681
|
if (this.index >= this.count) {
|
|
@@ -1149,7 +1149,7 @@ function gn(t) {
|
|
|
1149
1149
|
e.push(r.asString());
|
|
1150
1150
|
return e;
|
|
1151
1151
|
}
|
|
1152
|
-
const Cn = 76337612, bn = 185396121, Rn = 388632637, kn = 417197284, Un = 469070965, Dn = 470595159, Mn = 781727218, On = 834078886,
|
|
1152
|
+
const Cn = 76337612, bn = 185396121, Rn = 388632637, kn = 417197284, Un = 469070965, Dn = 470595159, Mn = 781727218, On = 834078886, Ln = 1043273762, vn = 1236999138, Fn = 1368629611, Pn = 1715899485, Bn = 1942830531, xn = 1999510636, Gn = 2079864626, Vn = 2142346422, Wn = 2598291686, Hn = 2719718823, $n = 2810953526, Kn = 2840065720, Yn = 2885165957, jn = 3586157513, zn = 3717933110, Xn = 4062655306;
|
|
1153
1153
|
function Ne(t) {
|
|
1154
1154
|
const e = {};
|
|
1155
1155
|
return wt(e), e;
|
|
@@ -1205,12 +1205,12 @@ function Jn(t, e) {
|
|
|
1205
1205
|
e.ProductId = r.asString();
|
|
1206
1206
|
break;
|
|
1207
1207
|
}
|
|
1208
|
-
case
|
|
1208
|
+
case Ln: {
|
|
1209
1209
|
if (r.isNull) throw new Error();
|
|
1210
1210
|
e.AuthSessionId = r.asString();
|
|
1211
1211
|
break;
|
|
1212
1212
|
}
|
|
1213
|
-
case
|
|
1213
|
+
case vn: {
|
|
1214
1214
|
if (r.isNull) throw new Error();
|
|
1215
1215
|
e.ReceiveAllMessages = r.asBool();
|
|
1216
1216
|
break;
|
|
@@ -1453,12 +1453,12 @@ function Ms(t) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
function Os(t) {
|
|
1455
1455
|
const e = new D(Nt);
|
|
1456
|
-
return
|
|
1456
|
+
return Ls(t, e), e.finish();
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function Ls(t, e) {
|
|
1459
1459
|
e.writeGuidField(ks, t.CallId), e.writeGuidField(Us, t.InstanceId);
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function vs(t, e, r) {
|
|
1462
1462
|
const n = Os(t);
|
|
1463
1463
|
return P(Rs, n, Nt, e, r);
|
|
1464
1464
|
}
|
|
@@ -1584,7 +1584,7 @@ function fi(t, e, r) {
|
|
|
1584
1584
|
const n = hi(t);
|
|
1585
1585
|
return P(ni, n, bt, e, r);
|
|
1586
1586
|
}
|
|
1587
|
-
const Ge = 1, pi = 1048600, Rt = 703025676, kt = 814454131, Ut = 972460562, Dt = 976255570, Mt = 1368629611, Ot = 1479280922,
|
|
1587
|
+
const Ge = 1, pi = 1048600, Rt = 703025676, kt = 814454131, Ut = 972460562, Dt = 976255570, Mt = 1368629611, Ot = 1479280922, Lt = 1533537016, vt = 2274386296, Ft = 2603556958, Pt = 2885165957, Bt = 3568439632;
|
|
1588
1588
|
function Ei(t) {
|
|
1589
1589
|
const e = {};
|
|
1590
1590
|
return xt(e), e;
|
|
@@ -1597,7 +1597,7 @@ function mi(t) {
|
|
|
1597
1597
|
return Gt(t, e), e.finish();
|
|
1598
1598
|
}
|
|
1599
1599
|
function Gt(t, e) {
|
|
1600
|
-
e.writeStringField(Rt, t.ResultTypeName), e.writeStringField(kt, t.FunctionName), e.writeStringField(Ut, t.EnumerableItemTypeName), e.writeGuidField(Dt, t.FunctionId), e.writeStringField(Mt, t.Description), e.writeBoolField(Ot, t.IsCancellable), e.writeBoolField(
|
|
1600
|
+
e.writeStringField(Rt, t.ResultTypeName), e.writeStringField(kt, t.FunctionName), e.writeStringField(Ut, t.EnumerableItemTypeName), e.writeGuidField(Dt, t.FunctionId), e.writeStringField(Mt, t.Description), e.writeBoolField(Ot, t.IsCancellable), e.writeBoolField(Lt, t.RequiresInstance), e.writeBoolField(vt, t.LlmInlineResult), e.writeBoolField(Ft, t.IsEnumerable), e.writeArrayField(Pt, b.Object, (r) => {
|
|
1601
1601
|
for (const n of t.Parameters)
|
|
1602
1602
|
r.writeObject(wi, (s) => {
|
|
1603
1603
|
yi(n, s);
|
|
@@ -1642,12 +1642,12 @@ function _i(t, e) {
|
|
|
1642
1642
|
e.IsCancellable = r.asBool();
|
|
1643
1643
|
break;
|
|
1644
1644
|
}
|
|
1645
|
-
case
|
|
1645
|
+
case Lt: {
|
|
1646
1646
|
if (r.isNull) throw new Error();
|
|
1647
1647
|
e.RequiresInstance = r.asBool();
|
|
1648
1648
|
break;
|
|
1649
1649
|
}
|
|
1650
|
-
case
|
|
1650
|
+
case vt: {
|
|
1651
1651
|
if (r.isNull) throw new Error();
|
|
1652
1652
|
e.LlmInlineResult = r.asBool();
|
|
1653
1653
|
break;
|
|
@@ -1770,7 +1770,7 @@ function Mi(t, e, r) {
|
|
|
1770
1770
|
const n = Ui(t);
|
|
1771
1771
|
return P(Ci, n, Qt, e, r);
|
|
1772
1772
|
}
|
|
1773
|
-
const qt = 1, Oi = 1048602,
|
|
1773
|
+
const qt = 1, Oi = 1048602, Li = 349453957, vi = 703025676, Fi = 3403385840, Pi = 3748161056, Bi = 4289118421;
|
|
1774
1774
|
function xi(t) {
|
|
1775
1775
|
const e = {};
|
|
1776
1776
|
return Gi(e), t && Object.assign(e, t), e;
|
|
@@ -1783,7 +1783,7 @@ function Vi(t) {
|
|
|
1783
1783
|
return Wi(t, e), e.finish();
|
|
1784
1784
|
}
|
|
1785
1785
|
function Wi(t, e) {
|
|
1786
|
-
e.writeBinaryField(
|
|
1786
|
+
e.writeBinaryField(Li, t.ResultData), e.writeStringField(vi, t.ResultTypeName), e.writeStringField(Fi, t.ResultJson), e.writeGuidField(Pi, t.CallId), e.writeGuidField(Bi, t.InstanceId);
|
|
1787
1787
|
}
|
|
1788
1788
|
function Hi(t, e, r) {
|
|
1789
1789
|
const n = Vi(t);
|
|
@@ -1916,23 +1916,23 @@ function lo(t, e) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
const uo = 3, ho = 65539, fo = 693643444, po = 1144553441, Eo = 1497620243, mo = 1559330978, Io = 1999510636, _o = 2277643855, To = 2469008121, So =
|
|
1920
|
-
function
|
|
1919
|
+
const uo = 3, ho = 65539, fo = 693643444, po = 1144553441, Eo = 1497620243, mo = 1559330978, Io = 1999510636, _o = 2277643855, To = 2469008121, So = 2589786682, wo = 3219210453, Ao = 3678477544, yo = 3696445035, No = 3707543140, go = 3712281496, Co = 3823842552, bo = 3895362455, Ro = 3897397815, ko = 4225107827;
|
|
1920
|
+
function Uo(t) {
|
|
1921
1921
|
const e = {};
|
|
1922
1922
|
return or(e), e;
|
|
1923
1923
|
}
|
|
1924
1924
|
function or(t) {
|
|
1925
|
-
return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.Functions = /* @__PURE__ */ Object.create(null), t;
|
|
1926
|
-
}
|
|
1927
|
-
function Uo(t, e) {
|
|
1928
|
-
const r = z.create(t);
|
|
1929
|
-
return Do(r, e);
|
|
1925
|
+
return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.IsGitSourceMode = !1, t.Functions = /* @__PURE__ */ Object.create(null), t;
|
|
1930
1926
|
}
|
|
1931
1927
|
function Do(t, e) {
|
|
1932
|
-
const r =
|
|
1933
|
-
return
|
|
1928
|
+
const r = z.create(t);
|
|
1929
|
+
return Mo(r, e);
|
|
1934
1930
|
}
|
|
1935
1931
|
function Mo(t, e) {
|
|
1932
|
+
const r = e ?? Uo();
|
|
1933
|
+
return or(r), Oo(t, r), r;
|
|
1934
|
+
}
|
|
1935
|
+
function Oo(t, e) {
|
|
1936
1936
|
let r;
|
|
1937
1937
|
for (; (r = t.next()) !== null; )
|
|
1938
1938
|
switch (r.fieldId) {
|
|
@@ -1948,7 +1948,7 @@ function Mo(t, e) {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
case Eo: {
|
|
1950
1950
|
if (r.isNull) throw new Error();
|
|
1951
|
-
e.TrackingStreams =
|
|
1951
|
+
e.TrackingStreams = Fo(r.asDictionary());
|
|
1952
1952
|
break;
|
|
1953
1953
|
}
|
|
1954
1954
|
case mo: {
|
|
@@ -1973,54 +1973,59 @@ function Mo(t, e) {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
case So: {
|
|
1975
1975
|
if (r.isNull) throw new Error();
|
|
1976
|
-
e.
|
|
1976
|
+
e.IsGitSourceMode = r.asBool();
|
|
1977
1977
|
break;
|
|
1978
1978
|
}
|
|
1979
1979
|
case wo: {
|
|
1980
1980
|
if (r.isNull) throw new Error();
|
|
1981
|
-
e.
|
|
1981
|
+
e.OrganisationName = r.asString();
|
|
1982
1982
|
break;
|
|
1983
1983
|
}
|
|
1984
1984
|
case Ao: {
|
|
1985
1985
|
if (r.isNull) throw new Error();
|
|
1986
|
-
e.
|
|
1986
|
+
e.Functions = Po(r.asDictionary());
|
|
1987
1987
|
break;
|
|
1988
1988
|
}
|
|
1989
1989
|
case yo: {
|
|
1990
1990
|
if (r.isNull) throw new Error();
|
|
1991
|
-
e.
|
|
1991
|
+
e.UIStreams = Bo(r.asDictionary());
|
|
1992
1992
|
break;
|
|
1993
1993
|
}
|
|
1994
1994
|
case No: {
|
|
1995
1995
|
if (r.isNull) throw new Error();
|
|
1996
|
-
e.
|
|
1996
|
+
e.SpaceId = r.asString();
|
|
1997
1997
|
break;
|
|
1998
1998
|
}
|
|
1999
1999
|
case go: {
|
|
2000
2000
|
if (r.isNull) throw new Error();
|
|
2001
|
-
e.
|
|
2001
|
+
e.PrimaryUserId = r.asString();
|
|
2002
2002
|
break;
|
|
2003
2003
|
}
|
|
2004
2004
|
case Co: {
|
|
2005
2005
|
if (r.isNull) throw new Error();
|
|
2006
|
-
e.
|
|
2006
|
+
e.ChannelInstanceId = r.asString();
|
|
2007
2007
|
break;
|
|
2008
2008
|
}
|
|
2009
2009
|
case bo: {
|
|
2010
2010
|
if (r.isNull) throw new Error();
|
|
2011
|
-
e.
|
|
2011
|
+
e.AudioStreams = xo(r.asDictionary());
|
|
2012
2012
|
break;
|
|
2013
2013
|
}
|
|
2014
2014
|
case Ro: {
|
|
2015
|
+
if (r.isNull) throw new Error();
|
|
2016
|
+
e.VideoStreams = Go(r.asDictionary());
|
|
2017
|
+
break;
|
|
2018
|
+
}
|
|
2019
|
+
case ko: {
|
|
2015
2020
|
if (r.isNull) throw new Error();
|
|
2016
2021
|
e.SpaceName = r.asString();
|
|
2017
2022
|
break;
|
|
2018
2023
|
}
|
|
2019
2024
|
}
|
|
2020
2025
|
}
|
|
2021
|
-
function
|
|
2026
|
+
function Lo(t, e) {
|
|
2022
2027
|
const r = Me(t, ho, uo);
|
|
2023
|
-
return
|
|
2028
|
+
return Do(r, e);
|
|
2024
2029
|
}
|
|
2025
2030
|
function vo(t) {
|
|
2026
2031
|
const e = /* @__PURE__ */ Object.create(null);
|
|
@@ -2031,233 +2036,233 @@ function vo(t) {
|
|
|
2031
2036
|
}
|
|
2032
2037
|
return e;
|
|
2033
2038
|
}
|
|
2034
|
-
function
|
|
2039
|
+
function Fo(t) {
|
|
2035
2040
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2036
2041
|
let r;
|
|
2037
2042
|
for (; (r = t.next()) !== null; ) {
|
|
2038
2043
|
const n = r.key.asString();
|
|
2039
|
-
e[n] =
|
|
2044
|
+
e[n] = pa(r.value.asObject());
|
|
2040
2045
|
}
|
|
2041
2046
|
return e;
|
|
2042
2047
|
}
|
|
2043
|
-
function
|
|
2048
|
+
function Po(t) {
|
|
2044
2049
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2045
2050
|
let r;
|
|
2046
2051
|
for (; (r = t.next()) !== null; ) {
|
|
2047
2052
|
const n = r.key.asInt32();
|
|
2048
|
-
e[n] =
|
|
2053
|
+
e[n] = Vo(r.value.asArray());
|
|
2049
2054
|
}
|
|
2050
2055
|
return e;
|
|
2051
2056
|
}
|
|
2052
|
-
function
|
|
2057
|
+
function Bo(t) {
|
|
2053
2058
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2054
2059
|
let r;
|
|
2055
2060
|
for (; (r = t.next()) !== null; ) {
|
|
2056
2061
|
const n = r.key.asString();
|
|
2057
|
-
e[n] =
|
|
2062
|
+
e[n] = jo(r.value.asObject());
|
|
2058
2063
|
}
|
|
2059
2064
|
return e;
|
|
2060
2065
|
}
|
|
2061
|
-
function
|
|
2066
|
+
function xo(t) {
|
|
2062
2067
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2063
2068
|
let r;
|
|
2064
2069
|
for (; (r = t.next()) !== null; ) {
|
|
2065
2070
|
const n = r.key.asString();
|
|
2066
|
-
e[n] =
|
|
2071
|
+
e[n] = ea(r.value.asObject());
|
|
2067
2072
|
}
|
|
2068
2073
|
return e;
|
|
2069
2074
|
}
|
|
2070
|
-
function
|
|
2075
|
+
function Go(t) {
|
|
2071
2076
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2072
2077
|
let r;
|
|
2073
2078
|
for (; (r = t.next()) !== null; ) {
|
|
2074
2079
|
const n = r.key.asString();
|
|
2075
|
-
e[n] =
|
|
2080
|
+
e[n] = aa(r.value.asObject());
|
|
2076
2081
|
}
|
|
2077
2082
|
return e;
|
|
2078
2083
|
}
|
|
2079
|
-
function
|
|
2084
|
+
function Vo(t) {
|
|
2080
2085
|
const e = [];
|
|
2081
2086
|
let r;
|
|
2082
2087
|
for (; (r = t.next()) !== null; )
|
|
2083
2088
|
e.push(Ii(r.asObject()));
|
|
2084
2089
|
return e;
|
|
2085
2090
|
}
|
|
2086
|
-
const
|
|
2087
|
-
function
|
|
2091
|
+
const Wo = 161083277, Ho = 325678206, $o = 3469892363, Ko = 3645544153;
|
|
2092
|
+
function Yo(t) {
|
|
2088
2093
|
const e = {};
|
|
2089
2094
|
return ar(e), e;
|
|
2090
2095
|
}
|
|
2091
2096
|
function ar(t) {
|
|
2092
2097
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = rr(), t;
|
|
2093
2098
|
}
|
|
2094
|
-
function Yo(t, e) {
|
|
2095
|
-
const r = e ?? Ko();
|
|
2096
|
-
return ar(r), jo(t, r), r;
|
|
2097
|
-
}
|
|
2098
2099
|
function jo(t, e) {
|
|
2100
|
+
const r = e ?? Yo();
|
|
2101
|
+
return ar(r), zo(t, r), r;
|
|
2102
|
+
}
|
|
2103
|
+
function zo(t, e) {
|
|
2099
2104
|
let r;
|
|
2100
2105
|
for (; (r = t.next()) !== null; )
|
|
2101
2106
|
switch (r.fieldId) {
|
|
2102
|
-
case
|
|
2107
|
+
case Wo: {
|
|
2103
2108
|
if (r.isNull) throw new Error();
|
|
2104
2109
|
e.StreamId = r.asString();
|
|
2105
2110
|
break;
|
|
2106
2111
|
}
|
|
2107
|
-
case
|
|
2112
|
+
case Ho: {
|
|
2108
2113
|
if (r.isNull) throw new Error();
|
|
2109
2114
|
e.ClientSessionId = r.asInt32();
|
|
2110
2115
|
break;
|
|
2111
2116
|
}
|
|
2112
|
-
case
|
|
2117
|
+
case $o: {
|
|
2113
2118
|
if (r.isNull) throw new Error();
|
|
2114
2119
|
e.TrackId = r.asInt32();
|
|
2115
2120
|
break;
|
|
2116
2121
|
}
|
|
2117
|
-
case
|
|
2122
|
+
case Ko: {
|
|
2118
2123
|
if (r.isNull) throw new Error();
|
|
2119
2124
|
e.Info = Zi(r.asObject());
|
|
2120
2125
|
break;
|
|
2121
2126
|
}
|
|
2122
2127
|
}
|
|
2123
2128
|
}
|
|
2124
|
-
const
|
|
2125
|
-
function
|
|
2129
|
+
const Xo = 161083277, Jo = 325678206, Qo = 3469892363, qo = 3645544153;
|
|
2130
|
+
function Zo(t) {
|
|
2126
2131
|
const e = {};
|
|
2127
2132
|
return cr(e), e;
|
|
2128
2133
|
}
|
|
2129
2134
|
function cr(t) {
|
|
2130
2135
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = _t(), t;
|
|
2131
2136
|
}
|
|
2132
|
-
function Zo(t, e) {
|
|
2133
|
-
const r = e ?? qo();
|
|
2134
|
-
return cr(r), ea(t, r), r;
|
|
2135
|
-
}
|
|
2136
2137
|
function ea(t, e) {
|
|
2138
|
+
const r = e ?? Zo();
|
|
2139
|
+
return cr(r), ta(t, r), r;
|
|
2140
|
+
}
|
|
2141
|
+
function ta(t, e) {
|
|
2137
2142
|
let r;
|
|
2138
2143
|
for (; (r = t.next()) !== null; )
|
|
2139
2144
|
switch (r.fieldId) {
|
|
2140
|
-
case
|
|
2145
|
+
case Xo: {
|
|
2141
2146
|
if (r.isNull) throw new Error();
|
|
2142
2147
|
e.StreamId = r.asString();
|
|
2143
2148
|
break;
|
|
2144
2149
|
}
|
|
2145
|
-
case
|
|
2150
|
+
case Jo: {
|
|
2146
2151
|
if (r.isNull) throw new Error();
|
|
2147
2152
|
e.ClientSessionId = r.asInt32();
|
|
2148
2153
|
break;
|
|
2149
2154
|
}
|
|
2150
|
-
case
|
|
2155
|
+
case Qo: {
|
|
2151
2156
|
if (r.isNull) throw new Error();
|
|
2152
2157
|
e.TrackId = r.asInt32();
|
|
2153
2158
|
break;
|
|
2154
2159
|
}
|
|
2155
|
-
case
|
|
2160
|
+
case qo: {
|
|
2156
2161
|
if (r.isNull) throw new Error();
|
|
2157
2162
|
e.Info = mn(r.asObject());
|
|
2158
2163
|
break;
|
|
2159
2164
|
}
|
|
2160
2165
|
}
|
|
2161
2166
|
}
|
|
2162
|
-
const
|
|
2163
|
-
function
|
|
2167
|
+
const ra = 161083277, na = 325678206, sa = 3469892363, ia = 3645544153;
|
|
2168
|
+
function oa(t) {
|
|
2164
2169
|
const e = {};
|
|
2165
2170
|
return lr(e), e;
|
|
2166
2171
|
}
|
|
2167
2172
|
function lr(t) {
|
|
2168
2173
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = sr(), t;
|
|
2169
2174
|
}
|
|
2170
|
-
function oa(t, e) {
|
|
2171
|
-
const r = e ?? ia();
|
|
2172
|
-
return lr(r), aa(t, r), r;
|
|
2173
|
-
}
|
|
2174
2175
|
function aa(t, e) {
|
|
2176
|
+
const r = e ?? oa();
|
|
2177
|
+
return lr(r), ca(t, r), r;
|
|
2178
|
+
}
|
|
2179
|
+
function ca(t, e) {
|
|
2175
2180
|
let r;
|
|
2176
2181
|
for (; (r = t.next()) !== null; )
|
|
2177
2182
|
switch (r.fieldId) {
|
|
2178
|
-
case
|
|
2183
|
+
case ra: {
|
|
2179
2184
|
if (r.isNull) throw new Error();
|
|
2180
2185
|
e.StreamId = r.asString();
|
|
2181
2186
|
break;
|
|
2182
2187
|
}
|
|
2183
|
-
case
|
|
2188
|
+
case na: {
|
|
2184
2189
|
if (r.isNull) throw new Error();
|
|
2185
2190
|
e.ClientSessionId = r.asInt32();
|
|
2186
2191
|
break;
|
|
2187
2192
|
}
|
|
2188
|
-
case
|
|
2193
|
+
case sa: {
|
|
2189
2194
|
if (r.isNull) throw new Error();
|
|
2190
2195
|
e.TrackId = r.asInt32();
|
|
2191
2196
|
break;
|
|
2192
2197
|
}
|
|
2193
|
-
case
|
|
2198
|
+
case ia: {
|
|
2194
2199
|
if (r.isNull) throw new Error();
|
|
2195
2200
|
e.Info = co(r.asObject());
|
|
2196
2201
|
break;
|
|
2197
2202
|
}
|
|
2198
2203
|
}
|
|
2199
2204
|
}
|
|
2200
|
-
const
|
|
2201
|
-
function
|
|
2205
|
+
const la = 161083277, ua = 325678206, ha = 3469892363, da = 3645544153;
|
|
2206
|
+
function fa(t) {
|
|
2202
2207
|
const e = {};
|
|
2203
2208
|
return ur(e), e;
|
|
2204
2209
|
}
|
|
2205
2210
|
function ur(t) {
|
|
2206
2211
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = er(), t;
|
|
2207
2212
|
}
|
|
2208
|
-
function fa(t, e) {
|
|
2209
|
-
const r = e ?? da();
|
|
2210
|
-
return ur(r), pa(t, r), r;
|
|
2211
|
-
}
|
|
2212
2213
|
function pa(t, e) {
|
|
2214
|
+
const r = e ?? fa();
|
|
2215
|
+
return ur(r), Ea(t, r), r;
|
|
2216
|
+
}
|
|
2217
|
+
function Ea(t, e) {
|
|
2213
2218
|
let r;
|
|
2214
2219
|
for (; (r = t.next()) !== null; )
|
|
2215
2220
|
switch (r.fieldId) {
|
|
2216
|
-
case
|
|
2221
|
+
case la: {
|
|
2217
2222
|
if (r.isNull) throw new Error();
|
|
2218
2223
|
e.StreamId = r.asString();
|
|
2219
2224
|
break;
|
|
2220
2225
|
}
|
|
2221
|
-
case
|
|
2226
|
+
case ua: {
|
|
2222
2227
|
if (r.isNull) throw new Error();
|
|
2223
2228
|
e.ClientSessionId = r.asInt32();
|
|
2224
2229
|
break;
|
|
2225
2230
|
}
|
|
2226
|
-
case
|
|
2231
|
+
case ha: {
|
|
2227
2232
|
if (r.isNull) throw new Error();
|
|
2228
2233
|
e.TrackId = r.asInt32();
|
|
2229
2234
|
break;
|
|
2230
2235
|
}
|
|
2231
|
-
case
|
|
2236
|
+
case da: {
|
|
2232
2237
|
if (r.isNull) throw new Error();
|
|
2233
2238
|
e.Info = Xi(r.asObject());
|
|
2234
2239
|
break;
|
|
2235
2240
|
}
|
|
2236
2241
|
}
|
|
2237
2242
|
}
|
|
2238
|
-
const hr = 1,
|
|
2243
|
+
const hr = 1, ma = 131074;
|
|
2239
2244
|
function dr(t) {
|
|
2240
2245
|
return {};
|
|
2241
2246
|
}
|
|
2242
|
-
function
|
|
2247
|
+
function Ia(t) {
|
|
2243
2248
|
return new D(hr).finish();
|
|
2244
2249
|
}
|
|
2245
2250
|
function fr(t, e, r) {
|
|
2246
|
-
const n =
|
|
2247
|
-
return P(
|
|
2251
|
+
const n = Ia();
|
|
2252
|
+
return P(ma, n, hr, e, r);
|
|
2248
2253
|
}
|
|
2249
|
-
const pr = 1,
|
|
2250
|
-
function
|
|
2254
|
+
const pr = 1, _a = 8388612;
|
|
2255
|
+
function Ta(t) {
|
|
2251
2256
|
return {};
|
|
2252
2257
|
}
|
|
2253
|
-
function
|
|
2258
|
+
function Sa(t) {
|
|
2254
2259
|
return new D(pr).finish();
|
|
2255
2260
|
}
|
|
2256
|
-
function
|
|
2257
|
-
const n =
|
|
2258
|
-
return P(
|
|
2261
|
+
function wa(t, e, r) {
|
|
2262
|
+
const n = Sa();
|
|
2263
|
+
return P(_a, n, pr, e, r);
|
|
2259
2264
|
}
|
|
2260
|
-
function
|
|
2265
|
+
function Aa(t) {
|
|
2261
2266
|
return new Worker(
|
|
2262
2267
|
"" + new URL("assets/protocol-worker-DKSTqFKg.js", import.meta.url).href,
|
|
2263
2268
|
{
|
|
@@ -2286,22 +2291,22 @@ class We extends W {
|
|
|
2286
2291
|
super(`No keepalive received within ${e}ms`), this.name = "KeepaliveTimeoutError";
|
|
2287
2292
|
}
|
|
2288
2293
|
}
|
|
2289
|
-
class
|
|
2294
|
+
class ya extends Ve {
|
|
2290
2295
|
constructor(e) {
|
|
2291
2296
|
super(`Maximum reconnection attempts (${e}) exceeded`), this.name = "MaxRetriesExceededError";
|
|
2292
2297
|
}
|
|
2293
2298
|
}
|
|
2294
|
-
class
|
|
2299
|
+
class Na extends y {
|
|
2295
2300
|
constructor(e) {
|
|
2296
2301
|
super(`Channel provisioning timeout after ${e}ms`), this.name = "ProvisioningTimeoutError";
|
|
2297
2302
|
}
|
|
2298
2303
|
}
|
|
2299
|
-
class
|
|
2304
|
+
class Ol extends y {
|
|
2300
2305
|
constructor(e) {
|
|
2301
2306
|
super(`Channel not found: ${e}`), this.name = "ChannelNotFoundError";
|
|
2302
2307
|
}
|
|
2303
2308
|
}
|
|
2304
|
-
class
|
|
2309
|
+
class Ll extends y {
|
|
2305
2310
|
constructor(e) {
|
|
2306
2311
|
super(`Space not found for domain: ${e}`), this.name = "SpaceNotFoundError";
|
|
2307
2312
|
}
|
|
@@ -2327,30 +2332,30 @@ function Er(t, e) {
|
|
|
2327
2332
|
}
|
|
2328
2333
|
var mr = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t[t.NONE = 4] = "NONE", t))(mr || {});
|
|
2329
2334
|
let He = 1, fe = null;
|
|
2330
|
-
function
|
|
2335
|
+
function Fl(t) {
|
|
2331
2336
|
He = t;
|
|
2332
2337
|
}
|
|
2333
|
-
function
|
|
2338
|
+
function Pl() {
|
|
2334
2339
|
return He;
|
|
2335
2340
|
}
|
|
2336
|
-
function
|
|
2341
|
+
function ga(t) {
|
|
2337
2342
|
fe = t;
|
|
2338
2343
|
}
|
|
2339
|
-
function
|
|
2344
|
+
function Bl() {
|
|
2340
2345
|
return fe;
|
|
2341
2346
|
}
|
|
2342
|
-
const
|
|
2347
|
+
const Ca = {
|
|
2343
2348
|
0: "DEBUG",
|
|
2344
2349
|
1: "INFO",
|
|
2345
2350
|
2: "WARN",
|
|
2346
2351
|
3: "ERROR",
|
|
2347
2352
|
4: "NONE"
|
|
2348
2353
|
};
|
|
2349
|
-
function
|
|
2354
|
+
function ba(t, e) {
|
|
2350
2355
|
return `[${t}] ${e}`;
|
|
2351
2356
|
}
|
|
2352
2357
|
function ie(t, e, r, n) {
|
|
2353
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i =
|
|
2358
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = Ca[t];
|
|
2354
2359
|
if (fe && fe({
|
|
2355
2360
|
timestamp: s,
|
|
2356
2361
|
level: t,
|
|
@@ -2359,7 +2364,7 @@ function ie(t, e, r, n) {
|
|
|
2359
2364
|
message: r,
|
|
2360
2365
|
args: n
|
|
2361
2366
|
}), He <= t) {
|
|
2362
|
-
const o =
|
|
2367
|
+
const o = ba(e, r);
|
|
2363
2368
|
switch (t) {
|
|
2364
2369
|
case 0:
|
|
2365
2370
|
console.debug(o, ...n);
|
|
@@ -2376,7 +2381,7 @@ function ie(t, e, r, n) {
|
|
|
2376
2381
|
}
|
|
2377
2382
|
}
|
|
2378
2383
|
}
|
|
2379
|
-
function
|
|
2384
|
+
function L(t) {
|
|
2380
2385
|
return {
|
|
2381
2386
|
debug(e, ...r) {
|
|
2382
2387
|
ie(0, t, e, r);
|
|
@@ -2392,8 +2397,8 @@ function v(t) {
|
|
|
2392
2397
|
}
|
|
2393
2398
|
};
|
|
2394
2399
|
}
|
|
2395
|
-
const oe =
|
|
2396
|
-
class
|
|
2400
|
+
const oe = L("WebSocketTransport"), Ra = 1e4;
|
|
2401
|
+
class ka {
|
|
2397
2402
|
ws = null;
|
|
2398
2403
|
keepaliveTimeout = null;
|
|
2399
2404
|
// Pre-allocated keepalive response message to avoid allocation per keepalive
|
|
@@ -2420,7 +2425,7 @@ class Ra {
|
|
|
2420
2425
|
clearTimeout(c), this.ws && (this.ws.onopen = null, this.ws.onerror = null, this.ws.onclose = null, this.ws.onmessage = null);
|
|
2421
2426
|
}, c = setTimeout(() => {
|
|
2422
2427
|
o || (o = !0, a(), this.ws?.close(), s(new W("WebSocket connection timeout")));
|
|
2423
|
-
},
|
|
2428
|
+
}, Ra);
|
|
2424
2429
|
this.ws.onopen = () => {
|
|
2425
2430
|
i = !0, clearTimeout(c), this.ws.send(r), this.resetKeepaliveTimeout(), o || (o = !0, n());
|
|
2426
2431
|
}, this.ws.onerror = () => {
|
|
@@ -2469,11 +2474,11 @@ class Ra {
|
|
|
2469
2474
|
this.keepaliveTimeout && (clearTimeout(this.keepaliveTimeout), this.keepaliveTimeout = null);
|
|
2470
2475
|
}
|
|
2471
2476
|
}
|
|
2472
|
-
const B =
|
|
2477
|
+
const B = L("WebTransportTransport"), Qe = 4, Ua = 65536;
|
|
2473
2478
|
function Ir() {
|
|
2474
2479
|
return typeof WebTransport < "u";
|
|
2475
2480
|
}
|
|
2476
|
-
class
|
|
2481
|
+
class Da {
|
|
2477
2482
|
transport = null;
|
|
2478
2483
|
stream = null;
|
|
2479
2484
|
reader = null;
|
|
@@ -2481,7 +2486,7 @@ class Ua {
|
|
|
2481
2486
|
keepaliveTimeout = null;
|
|
2482
2487
|
readLoopActive = !1;
|
|
2483
2488
|
// Grow-only receive buffer with offset/length tracking to minimize allocations
|
|
2484
|
-
receiveBuffer = new Uint8Array(
|
|
2489
|
+
receiveBuffer = new Uint8Array(Ua);
|
|
2485
2490
|
receiveBufferOffset = 0;
|
|
2486
2491
|
receiveBufferLength = 0;
|
|
2487
2492
|
// Cached DataView to avoid allocation per message
|
|
@@ -2635,8 +2640,8 @@ class Ua {
|
|
|
2635
2640
|
}
|
|
2636
2641
|
}
|
|
2637
2642
|
}
|
|
2638
|
-
const ee =
|
|
2639
|
-
class
|
|
2643
|
+
const ee = L("Channel");
|
|
2644
|
+
class Ma {
|
|
2640
2645
|
state = "disconnected";
|
|
2641
2646
|
transport = null;
|
|
2642
2647
|
config;
|
|
@@ -2713,13 +2718,13 @@ class Da {
|
|
|
2713
2718
|
switch (e.Type) {
|
|
2714
2719
|
case k.WebSocket:
|
|
2715
2720
|
case k.WebSocketProxy:
|
|
2716
|
-
this.transport = new
|
|
2721
|
+
this.transport = new ka(r);
|
|
2717
2722
|
break;
|
|
2718
2723
|
case k.WebTransport:
|
|
2719
2724
|
case k.WebTransportProxy:
|
|
2720
2725
|
if (!Ir())
|
|
2721
2726
|
throw new Error("WebTransport is not supported in this browser");
|
|
2722
|
-
this.transport = new
|
|
2727
|
+
this.transport = new Da(r);
|
|
2723
2728
|
break;
|
|
2724
2729
|
default:
|
|
2725
2730
|
throw new Error(`Unsupported entrypoint type: ${k[e.Type]}`);
|
|
@@ -2760,8 +2765,8 @@ class Da {
|
|
|
2760
2765
|
this.state !== e && (this.state = e, this.config.onStateChange?.(e));
|
|
2761
2766
|
}
|
|
2762
2767
|
}
|
|
2763
|
-
const x =
|
|
2764
|
-
class
|
|
2768
|
+
const x = L("ChannelManager");
|
|
2769
|
+
class Oa {
|
|
2765
2770
|
channels = /* @__PURE__ */ new Map();
|
|
2766
2771
|
// keyed by opcode group
|
|
2767
2772
|
activeType = null;
|
|
@@ -2863,7 +2868,7 @@ class Ma {
|
|
|
2863
2868
|
* Connect a single channel.
|
|
2864
2869
|
*/
|
|
2865
2870
|
async connectChannel(e) {
|
|
2866
|
-
const r = new
|
|
2871
|
+
const r = new Ma({
|
|
2867
2872
|
entrypoint: e,
|
|
2868
2873
|
sessionId: this.config.sessionId,
|
|
2869
2874
|
keepaliveTimeoutMs: this.config.keepaliveTimeoutMs,
|
|
@@ -2918,7 +2923,7 @@ class Ma {
|
|
|
2918
2923
|
if (!this.shouldReconnect)
|
|
2919
2924
|
return;
|
|
2920
2925
|
if (this.reconnectAttempts >= this.config.maxReconnectAttempts) {
|
|
2921
|
-
x.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new
|
|
2926
|
+
x.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new ya(this.config.maxReconnectAttempts));
|
|
2922
2927
|
return;
|
|
2923
2928
|
}
|
|
2924
2929
|
this.setState("reconnecting"), this.reconnectAttempts++;
|
|
@@ -2945,7 +2950,7 @@ class Ma {
|
|
|
2945
2950
|
this.state !== e && (this.state = e, this.config.onStateChange?.(e));
|
|
2946
2951
|
}
|
|
2947
2952
|
}
|
|
2948
|
-
const
|
|
2953
|
+
const La = 5e3, va = 3e4, qe = 35e3, Ze = 500, et = 6, _r = 6e4, Ce = "ikon_device_id";
|
|
2949
2954
|
function $e() {
|
|
2950
2955
|
if (typeof window > "u" || typeof localStorage > "u")
|
|
2951
2956
|
return crypto.randomUUID();
|
|
@@ -2956,14 +2961,14 @@ function $e() {
|
|
|
2956
2961
|
return crypto.randomUUID();
|
|
2957
2962
|
}
|
|
2958
2963
|
}
|
|
2959
|
-
function
|
|
2964
|
+
function xl() {
|
|
2960
2965
|
if (!(typeof localStorage > "u"))
|
|
2961
2966
|
try {
|
|
2962
2967
|
localStorage.removeItem(Ce);
|
|
2963
2968
|
} catch {
|
|
2964
2969
|
}
|
|
2965
2970
|
}
|
|
2966
|
-
function
|
|
2971
|
+
function Gl(t) {
|
|
2967
2972
|
try {
|
|
2968
2973
|
const e = t.split(".");
|
|
2969
2974
|
return e.length !== 3 ? null : JSON.parse(atob(e[1])).id ?? null;
|
|
@@ -2971,22 +2976,22 @@ function xl(t) {
|
|
|
2971
2976
|
return null;
|
|
2972
2977
|
}
|
|
2973
2978
|
}
|
|
2974
|
-
const pe = {}, be = "https://api.prod.ikon.live", Ee = "https://api.dev.ikon.live", tt = "https://auth.ikonai.com", rt = "https://auth.dev.ikonai.com",
|
|
2979
|
+
const pe = {}, be = "https://api.prod.ikon.live", Ee = "https://api.dev.ikon.live", tt = "https://auth.ikonai.com", rt = "https://auth.dev.ikonai.com", Vl = "https://auth.ikonai.com";
|
|
2975
2980
|
function Tr(t) {
|
|
2976
2981
|
return t === "development" ? Ee : be;
|
|
2977
2982
|
}
|
|
2978
|
-
function
|
|
2983
|
+
function Wl() {
|
|
2979
2984
|
const t = typeof import.meta < "u" ? pe?.VITE_IKON_BACKEND_URL : void 0;
|
|
2980
2985
|
return t || (typeof window > "u" ? be : !Ke() || window.location.hostname.includes(".dev.") ? Ee : be);
|
|
2981
2986
|
}
|
|
2982
|
-
function
|
|
2987
|
+
function Hl() {
|
|
2983
2988
|
const t = typeof import.meta < "u" ? pe?.VITE_IKON_BACKEND_TYPE : void 0;
|
|
2984
2989
|
if (t === "development" || t === "production")
|
|
2985
2990
|
return t;
|
|
2986
2991
|
const e = typeof import.meta < "u" ? pe?.VITE_IKON_BACKEND_URL : void 0;
|
|
2987
2992
|
return e ? e.includes(".dev.") ? "development" : "production" : typeof window > "u" ? "production" : Ke() ? window.location.hostname.includes(".dev.") ? "development" : "production" : "development";
|
|
2988
2993
|
}
|
|
2989
|
-
function
|
|
2994
|
+
function $l() {
|
|
2990
2995
|
const t = typeof import.meta < "u" ? pe?.VITE_IKON_AUTH_URL : void 0;
|
|
2991
2996
|
return t || (typeof window > "u" ? tt : !Ke() || window.location.hostname.includes(".dev.") ? rt : tt);
|
|
2992
2997
|
}
|
|
@@ -2998,8 +3003,8 @@ function Sr() {
|
|
|
2998
3003
|
e[r] = n;
|
|
2999
3004
|
return e;
|
|
3000
3005
|
}
|
|
3001
|
-
const
|
|
3002
|
-
function
|
|
3006
|
+
const Fa = ["ikon_token", "ikon_provider", "error"];
|
|
3007
|
+
function Kl() {
|
|
3003
3008
|
if (typeof window > "u")
|
|
3004
3009
|
return { parameters: {} };
|
|
3005
3010
|
const t = window.location.pathname;
|
|
@@ -3011,7 +3016,7 @@ function $l() {
|
|
|
3011
3016
|
throw new Error("URL cannot contain both /s/[sessionId] and /c/[channelKey]");
|
|
3012
3017
|
const i = Sr(), o = {};
|
|
3013
3018
|
for (const [a, c] of Object.entries(i))
|
|
3014
|
-
|
|
3019
|
+
Fa.includes(a) || (o[a] = c);
|
|
3015
3020
|
return { sessionId: e, channelKey: r, parameters: o };
|
|
3016
3021
|
}
|
|
3017
3022
|
function Ke() {
|
|
@@ -3026,8 +3031,8 @@ function Ke() {
|
|
|
3026
3031
|
}
|
|
3027
3032
|
return !0;
|
|
3028
3033
|
}
|
|
3029
|
-
const me =
|
|
3030
|
-
async function
|
|
3034
|
+
const me = L("Authenticator"), j = T.GROUP_CORE | T.GROUP_KEEPALIVE | T.GROUP_EVENTS | T.GROUP_ACTIONS | T.GROUP_UI | T.GROUP_AUDIO | T.GROUP_VIDEO, Pa = 1e3, Ba = 5e3;
|
|
3035
|
+
async function xa(t) {
|
|
3031
3036
|
try {
|
|
3032
3037
|
const e = await fetch(`${Ee}/users/me`, {
|
|
3033
3038
|
credentials: "include",
|
|
@@ -3063,7 +3068,7 @@ async function Ar(t, e, r, n, s, i, o) {
|
|
|
3063
3068
|
}
|
|
3064
3069
|
return await u.json();
|
|
3065
3070
|
}
|
|
3066
|
-
async function
|
|
3071
|
+
async function Ga(t, e, r, n) {
|
|
3067
3072
|
const s = `${t}/rooms/connect`, i = await fetch(s, wr(e, r, n));
|
|
3068
3073
|
if (!i.ok) {
|
|
3069
3074
|
const o = await i.text().catch(() => "Unknown error");
|
|
@@ -3073,17 +3078,17 @@ async function xa(t, e, r, n) {
|
|
|
3073
3078
|
}
|
|
3074
3079
|
async function yr(t, e, r, n, s) {
|
|
3075
3080
|
const i = Date.now();
|
|
3076
|
-
let o =
|
|
3081
|
+
let o = Pa;
|
|
3077
3082
|
for (; ; ) {
|
|
3078
3083
|
if (s?.aborted)
|
|
3079
3084
|
throw new y("Connection aborted");
|
|
3080
3085
|
if (Date.now() - i >= r)
|
|
3081
|
-
throw new
|
|
3082
|
-
const c = await
|
|
3086
|
+
throw new Na(r);
|
|
3087
|
+
const c = await Ga(t, e, n, s), u = c.state?.toLowerCase();
|
|
3083
3088
|
if (u === "running")
|
|
3084
3089
|
return c;
|
|
3085
3090
|
if (u === "provisioning") {
|
|
3086
|
-
await Er(o, s), o = Math.min(o * 1.5,
|
|
3091
|
+
await Er(o, s), o = Math.min(o * 1.5, Ba);
|
|
3087
3092
|
continue;
|
|
3088
3093
|
}
|
|
3089
3094
|
throw new y(`Unexpected channel state: ${c.state}`);
|
|
@@ -3098,7 +3103,7 @@ async function Ye(t, e) {
|
|
|
3098
3103
|
const n = await r.arrayBuffer(), s = new Uint8Array(n);
|
|
3099
3104
|
return { authResponse: ys(s) };
|
|
3100
3105
|
}
|
|
3101
|
-
function
|
|
3106
|
+
function Va(t, e) {
|
|
3102
3107
|
return Cs({
|
|
3103
3108
|
ServerSessionId: "",
|
|
3104
3109
|
// Server will fill this in
|
|
@@ -3126,7 +3131,7 @@ function Ga(t, e) {
|
|
|
3126
3131
|
Parameters: t.parameters ?? {}
|
|
3127
3132
|
});
|
|
3128
3133
|
}
|
|
3129
|
-
function
|
|
3134
|
+
function Wa(t) {
|
|
3130
3135
|
return {
|
|
3131
3136
|
ServerSessionId: t.ServerSessionId,
|
|
3132
3137
|
ContextType: t.ContextType,
|
|
@@ -3153,13 +3158,13 @@ function Va(t) {
|
|
|
3153
3158
|
Parameters: t.Parameters
|
|
3154
3159
|
};
|
|
3155
3160
|
}
|
|
3156
|
-
async function
|
|
3161
|
+
async function Ha(t, e) {
|
|
3157
3162
|
const r = `https://${t.host}:${t.httpsPort}`;
|
|
3158
3163
|
me.debug(`Authenticating with local server: ${r}`);
|
|
3159
3164
|
const s = { ...Sr(), ...t.parameters };
|
|
3160
3165
|
let i = t.userId;
|
|
3161
|
-
i || (i = await
|
|
3162
|
-
const o =
|
|
3166
|
+
i || (i = await xa(e), i || (i = "local", me.warn('Could not determine user ID. Using fallback "local". To fix: either provide userId in config, or log in to the Ikon portal at https://portal.dev.ikon.live')));
|
|
3167
|
+
const o = Va({ ...t, parameters: s }, i), a = Wa(o), c = await fetch(`${r}/connect-token`, {
|
|
3163
3168
|
method: "POST",
|
|
3164
3169
|
headers: {
|
|
3165
3170
|
"Content-Type": "application/json"
|
|
@@ -3177,7 +3182,7 @@ async function Wa(t, e) {
|
|
|
3177
3182
|
const d = `${r}/connect?token=${encodeURIComponent(p)}`;
|
|
3178
3183
|
return Ye(d, e);
|
|
3179
3184
|
}
|
|
3180
|
-
async function
|
|
3185
|
+
async function $a(t, e) {
|
|
3181
3186
|
if (t.sessionId && t.channelKey)
|
|
3182
3187
|
throw new y("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
|
|
3183
3188
|
const r = Tr(t.backendType);
|
|
@@ -3237,7 +3242,7 @@ async function Ha(t, e) {
|
|
|
3237
3242
|
const d = p.configuration.url;
|
|
3238
3243
|
return Ye(d, e);
|
|
3239
3244
|
}
|
|
3240
|
-
async function
|
|
3245
|
+
async function Ka(t, e) {
|
|
3241
3246
|
if (t.sessionId && t.channelKey)
|
|
3242
3247
|
throw new y("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
|
|
3243
3248
|
const r = Tr(t.backendType), n = t.token;
|
|
@@ -3278,22 +3283,22 @@ async function $a(t, e) {
|
|
|
3278
3283
|
const u = c.configuration.url;
|
|
3279
3284
|
return Ye(u, e);
|
|
3280
3285
|
}
|
|
3281
|
-
const Nr = "ikon.theme", Re = "ikon.theme-user",
|
|
3286
|
+
const Nr = "ikon.theme", Re = "ikon.theme-user", Ya = "ikon.theme-change";
|
|
3282
3287
|
function gr(t) {
|
|
3283
3288
|
typeof document < "u" && document.documentElement && document.documentElement.setAttribute("data-theme", t);
|
|
3284
3289
|
}
|
|
3285
|
-
const
|
|
3290
|
+
const ja = {
|
|
3286
3291
|
name: "ikon.client.getTheme",
|
|
3287
3292
|
description: "Get the currently selected client theme",
|
|
3288
3293
|
returnType: { kind: "string", nullable: !0 }
|
|
3289
3294
|
};
|
|
3290
|
-
function
|
|
3295
|
+
function za() {
|
|
3291
3296
|
if (typeof window > "u" || !window.localStorage)
|
|
3292
3297
|
return null;
|
|
3293
3298
|
const t = window.localStorage.getItem(Re) ?? window.localStorage.getItem(Nr) ?? "light";
|
|
3294
3299
|
return gr(t), t;
|
|
3295
3300
|
}
|
|
3296
|
-
const
|
|
3301
|
+
const Xa = {
|
|
3297
3302
|
name: "ikon.client.setTheme",
|
|
3298
3303
|
description: "Update the client UI theme",
|
|
3299
3304
|
returnType: { kind: "boolean" },
|
|
@@ -3302,7 +3307,7 @@ const za = {
|
|
|
3302
3307
|
{ name: "persist", type: { kind: "boolean", nullable: !0 }, description: "Whether to persist as user preference" }
|
|
3303
3308
|
]
|
|
3304
3309
|
};
|
|
3305
|
-
function
|
|
3310
|
+
function Ja(t, e) {
|
|
3306
3311
|
if (typeof window > "u" || !window.localStorage || typeof t != "string")
|
|
3307
3312
|
return !1;
|
|
3308
3313
|
const r = t.trim().toLowerCase();
|
|
@@ -3311,12 +3316,12 @@ function Xa(t, e) {
|
|
|
3311
3316
|
const n = e === void 0 ? !0 : !!e, s = window.localStorage;
|
|
3312
3317
|
n ? s.setItem(Re, r) : s.removeItem(Re), s.setItem(Nr, r);
|
|
3313
3318
|
try {
|
|
3314
|
-
window.dispatchEvent(new CustomEvent(
|
|
3319
|
+
window.dispatchEvent(new CustomEvent(Ya, { detail: { mode: r } }));
|
|
3315
3320
|
} catch {
|
|
3316
3321
|
}
|
|
3317
3322
|
return gr(r), !0;
|
|
3318
3323
|
}
|
|
3319
|
-
const
|
|
3324
|
+
const Qa = {
|
|
3320
3325
|
name: "ikon.client.getLocation",
|
|
3321
3326
|
description: "Retrieve the current geolocation coordinates from the browser",
|
|
3322
3327
|
returnType: {
|
|
@@ -3326,7 +3331,7 @@ const Ja = {
|
|
|
3326
3331
|
nullable: !0
|
|
3327
3332
|
}
|
|
3328
3333
|
};
|
|
3329
|
-
async function
|
|
3334
|
+
async function qa() {
|
|
3330
3335
|
if (typeof navigator > "u" || !navigator.geolocation)
|
|
3331
3336
|
return null;
|
|
3332
3337
|
try {
|
|
@@ -3345,7 +3350,7 @@ async function Qa() {
|
|
|
3345
3350
|
return null;
|
|
3346
3351
|
}
|
|
3347
3352
|
}
|
|
3348
|
-
const
|
|
3353
|
+
const Za = {
|
|
3349
3354
|
name: "ikon.client.share",
|
|
3350
3355
|
description: "Open the Web Share dialog when supported",
|
|
3351
3356
|
returnType: { kind: "boolean" },
|
|
@@ -3355,7 +3360,7 @@ const qa = {
|
|
|
3355
3360
|
{ name: "url", type: { kind: "string", nullable: !0 }, description: "Share URL" }
|
|
3356
3361
|
]
|
|
3357
3362
|
};
|
|
3358
|
-
async function
|
|
3363
|
+
async function ec(t, e, r) {
|
|
3359
3364
|
if (typeof navigator > "u" || typeof navigator.share != "function")
|
|
3360
3365
|
return !1;
|
|
3361
3366
|
const n = typeof t == "string" ? t.trim() : "", s = typeof e == "string" ? e.trim() : "", i = typeof r == "string" ? r.trim() : "", o = {};
|
|
@@ -3367,13 +3372,13 @@ async function Za(t, e, r) {
|
|
|
3367
3372
|
return !1;
|
|
3368
3373
|
}
|
|
3369
3374
|
}
|
|
3370
|
-
const
|
|
3375
|
+
const tc = {
|
|
3371
3376
|
name: "ikon.client.pickContacts",
|
|
3372
3377
|
description: "Launch the native contact picker when available",
|
|
3373
3378
|
returnType: { kind: "string", nullable: !0 },
|
|
3374
3379
|
parameters: [{ name: "multiple", type: { kind: "boolean", nullable: !0 }, description: "Allow multiple contacts" }]
|
|
3375
3380
|
};
|
|
3376
|
-
async function
|
|
3381
|
+
async function rc(t) {
|
|
3377
3382
|
if (typeof navigator > "u")
|
|
3378
3383
|
return null;
|
|
3379
3384
|
const e = navigator, r = e.contacts?.select;
|
|
@@ -3392,33 +3397,33 @@ async function tc(t) {
|
|
|
3392
3397
|
return null;
|
|
3393
3398
|
}
|
|
3394
3399
|
}
|
|
3395
|
-
const
|
|
3400
|
+
const nc = {
|
|
3396
3401
|
name: "ikon.client.getLanguage",
|
|
3397
3402
|
description: "Get the browser language preference",
|
|
3398
3403
|
returnType: { kind: "string" }
|
|
3399
3404
|
};
|
|
3400
|
-
function
|
|
3405
|
+
function sc() {
|
|
3401
3406
|
return typeof navigator > "u" ? "en-US" : navigator.language || "en-US";
|
|
3402
3407
|
}
|
|
3403
|
-
const
|
|
3408
|
+
const ic = {
|
|
3404
3409
|
name: "ikon.client.getTimezone",
|
|
3405
3410
|
description: "Get the browser timezone (IANA format)",
|
|
3406
3411
|
returnType: { kind: "string" }
|
|
3407
3412
|
};
|
|
3408
|
-
function
|
|
3413
|
+
function oc() {
|
|
3409
3414
|
try {
|
|
3410
3415
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3411
3416
|
} catch {
|
|
3412
3417
|
return "UTC";
|
|
3413
3418
|
}
|
|
3414
3419
|
}
|
|
3415
|
-
const
|
|
3420
|
+
const ac = {
|
|
3416
3421
|
name: "ikon.client.copyToClipboard",
|
|
3417
3422
|
description: "Copy text to clipboard",
|
|
3418
3423
|
returnType: { kind: "boolean" },
|
|
3419
3424
|
parameters: [{ name: "text", type: { kind: "string" }, description: "Text to copy" }]
|
|
3420
3425
|
};
|
|
3421
|
-
async function
|
|
3426
|
+
async function cc(t) {
|
|
3422
3427
|
if (typeof navigator > "u" || !navigator.clipboard || typeof t != "string")
|
|
3423
3428
|
return !1;
|
|
3424
3429
|
try {
|
|
@@ -3427,15 +3432,15 @@ async function ac(t) {
|
|
|
3427
3432
|
return !1;
|
|
3428
3433
|
}
|
|
3429
3434
|
}
|
|
3430
|
-
const
|
|
3435
|
+
const lc = {
|
|
3431
3436
|
name: "ikon.client.getUrl",
|
|
3432
3437
|
description: "Get the current browser URL path and query string",
|
|
3433
3438
|
returnType: { kind: "string", nullable: !0 }
|
|
3434
3439
|
};
|
|
3435
|
-
function
|
|
3440
|
+
function uc() {
|
|
3436
3441
|
return typeof window > "u" ? null : window.location.pathname + window.location.search;
|
|
3437
3442
|
}
|
|
3438
|
-
const
|
|
3443
|
+
const hc = {
|
|
3439
3444
|
name: "ikon.client.setUrl",
|
|
3440
3445
|
description: "Update the browser URL without triggering a page reload",
|
|
3441
3446
|
returnType: { kind: "boolean" },
|
|
@@ -3444,7 +3449,7 @@ const uc = {
|
|
|
3444
3449
|
{ name: "replace", type: { kind: "boolean", nullable: !0 }, description: "If true, replaces current history entry instead of adding new one" }
|
|
3445
3450
|
]
|
|
3446
3451
|
};
|
|
3447
|
-
function
|
|
3452
|
+
function dc(t, e) {
|
|
3448
3453
|
if (typeof window > "u" || !window.history || typeof t != "string")
|
|
3449
3454
|
return !1;
|
|
3450
3455
|
const r = t.trim();
|
|
@@ -3456,13 +3461,13 @@ function hc(t, e) {
|
|
|
3456
3461
|
return !1;
|
|
3457
3462
|
}
|
|
3458
3463
|
}
|
|
3459
|
-
const
|
|
3464
|
+
const fc = {
|
|
3460
3465
|
name: "ikon.client.vibrate",
|
|
3461
3466
|
description: "Trigger haptic feedback on supported devices",
|
|
3462
3467
|
returnType: { kind: "boolean" },
|
|
3463
3468
|
parameters: [{ name: "pattern", type: { kind: "string" }, description: 'Duration in ms, or comma-separated pattern (e.g., "200" or "100,50,100")' }]
|
|
3464
3469
|
};
|
|
3465
|
-
function
|
|
3470
|
+
function pc(t) {
|
|
3466
3471
|
if (typeof navigator > "u" || !navigator.vibrate || typeof t != "string")
|
|
3467
3472
|
return !1;
|
|
3468
3473
|
try {
|
|
@@ -3472,7 +3477,7 @@ function fc(t) {
|
|
|
3472
3477
|
return !1;
|
|
3473
3478
|
}
|
|
3474
3479
|
}
|
|
3475
|
-
const
|
|
3480
|
+
const Ec = {
|
|
3476
3481
|
name: "ikon.client.playSound",
|
|
3477
3482
|
description: "Play audio from a URL",
|
|
3478
3483
|
returnType: { kind: "boolean" },
|
|
@@ -3481,7 +3486,7 @@ const pc = {
|
|
|
3481
3486
|
{ name: "volume", type: { kind: "number", nullable: !0 }, description: "Volume level from 0.0 to 1.0" }
|
|
3482
3487
|
]
|
|
3483
3488
|
};
|
|
3484
|
-
async function
|
|
3489
|
+
async function mc(t, e) {
|
|
3485
3490
|
if (typeof window > "u" || typeof Audio > "u" || typeof t != "string" || !t.trim())
|
|
3486
3491
|
return !1;
|
|
3487
3492
|
try {
|
|
@@ -3491,7 +3496,7 @@ async function Ec(t, e) {
|
|
|
3491
3496
|
return !1;
|
|
3492
3497
|
}
|
|
3493
3498
|
}
|
|
3494
|
-
const
|
|
3499
|
+
const Ic = {
|
|
3495
3500
|
name: "ikon.client.showNotification",
|
|
3496
3501
|
description: "Show a browser notification (requests permission if needed)",
|
|
3497
3502
|
returnType: { kind: "boolean" },
|
|
@@ -3501,7 +3506,7 @@ const mc = {
|
|
|
3501
3506
|
{ name: "icon", type: { kind: "string", nullable: !0 }, description: "URL of notification icon" }
|
|
3502
3507
|
]
|
|
3503
3508
|
};
|
|
3504
|
-
async function
|
|
3509
|
+
async function _c(t, e, r) {
|
|
3505
3510
|
if (typeof window > "u" || !("Notification" in window) || typeof t != "string" || !t.trim())
|
|
3506
3511
|
return !1;
|
|
3507
3512
|
try {
|
|
@@ -3514,12 +3519,12 @@ async function Ic(t, e, r) {
|
|
|
3514
3519
|
return !1;
|
|
3515
3520
|
}
|
|
3516
3521
|
}
|
|
3517
|
-
const
|
|
3522
|
+
const Tc = {
|
|
3518
3523
|
name: "ikon.client.requestFullscreen",
|
|
3519
3524
|
description: "Enter fullscreen mode",
|
|
3520
3525
|
returnType: { kind: "boolean" }
|
|
3521
3526
|
};
|
|
3522
|
-
async function
|
|
3527
|
+
async function Sc() {
|
|
3523
3528
|
if (typeof document > "u" || !document.documentElement)
|
|
3524
3529
|
return !1;
|
|
3525
3530
|
try {
|
|
@@ -3529,12 +3534,12 @@ async function Tc() {
|
|
|
3529
3534
|
return !1;
|
|
3530
3535
|
}
|
|
3531
3536
|
}
|
|
3532
|
-
const
|
|
3537
|
+
const wc = {
|
|
3533
3538
|
name: "ikon.client.exitFullscreen",
|
|
3534
3539
|
description: "Exit fullscreen mode",
|
|
3535
3540
|
returnType: { kind: "boolean" }
|
|
3536
3541
|
};
|
|
3537
|
-
function
|
|
3542
|
+
function Ac() {
|
|
3538
3543
|
if (typeof document > "u")
|
|
3539
3544
|
return !1;
|
|
3540
3545
|
try {
|
|
@@ -3544,7 +3549,7 @@ function wc() {
|
|
|
3544
3549
|
return !1;
|
|
3545
3550
|
}
|
|
3546
3551
|
}
|
|
3547
|
-
const
|
|
3552
|
+
const yc = {
|
|
3548
3553
|
name: "ikon.client.downloadFile",
|
|
3549
3554
|
description: "Trigger a file download",
|
|
3550
3555
|
returnType: { kind: "boolean" },
|
|
@@ -3553,7 +3558,7 @@ const Ac = {
|
|
|
3553
3558
|
{ name: "filename", type: { kind: "string", nullable: !0 }, description: "Suggested filename for the download" }
|
|
3554
3559
|
]
|
|
3555
3560
|
};
|
|
3556
|
-
function
|
|
3561
|
+
function Nc(t, e) {
|
|
3557
3562
|
if (typeof document > "u" || typeof t != "string" || !t.trim())
|
|
3558
3563
|
return !1;
|
|
3559
3564
|
try {
|
|
@@ -3564,13 +3569,13 @@ function yc(t, e) {
|
|
|
3564
3569
|
}
|
|
3565
3570
|
}
|
|
3566
3571
|
let te = null;
|
|
3567
|
-
const
|
|
3572
|
+
const gc = {
|
|
3568
3573
|
name: "ikon.client.keepScreenAwake",
|
|
3569
3574
|
description: "Prevent or allow the screen to sleep",
|
|
3570
3575
|
returnType: { kind: "boolean" },
|
|
3571
3576
|
parameters: [{ name: "enabled", type: { kind: "boolean" }, description: "Whether to keep the screen awake" }]
|
|
3572
3577
|
};
|
|
3573
|
-
async function
|
|
3578
|
+
async function Cc(t) {
|
|
3574
3579
|
if (typeof navigator > "u" || !("wakeLock" in navigator))
|
|
3575
3580
|
return !1;
|
|
3576
3581
|
try {
|
|
@@ -3579,15 +3584,15 @@ async function gc(t) {
|
|
|
3579
3584
|
return !1;
|
|
3580
3585
|
}
|
|
3581
3586
|
}
|
|
3582
|
-
const
|
|
3587
|
+
const bc = {
|
|
3583
3588
|
name: "ikon.client.getVisibility",
|
|
3584
3589
|
description: "Get the current page visibility state",
|
|
3585
3590
|
returnType: { kind: "string", nullable: !0 }
|
|
3586
3591
|
};
|
|
3587
|
-
function
|
|
3592
|
+
function Rc() {
|
|
3588
3593
|
return typeof document > "u" ? null : document.visibilityState || null;
|
|
3589
3594
|
}
|
|
3590
|
-
const
|
|
3595
|
+
const kc = {
|
|
3591
3596
|
name: "ikon.client.scrollTo",
|
|
3592
3597
|
description: "Scroll the page to a specific position",
|
|
3593
3598
|
returnType: { kind: "boolean" },
|
|
@@ -3597,7 +3602,7 @@ const Rc = {
|
|
|
3597
3602
|
{ name: "smooth", type: { kind: "boolean", nullable: !0 }, description: "Whether to animate the scroll" }
|
|
3598
3603
|
]
|
|
3599
3604
|
};
|
|
3600
|
-
function
|
|
3605
|
+
function Uc(t, e, r) {
|
|
3601
3606
|
if (typeof window > "u" || typeof t != "number" || typeof e != "number")
|
|
3602
3607
|
return !1;
|
|
3603
3608
|
try {
|
|
@@ -3610,12 +3615,12 @@ function kc(t, e, r) {
|
|
|
3610
3615
|
return !1;
|
|
3611
3616
|
}
|
|
3612
3617
|
}
|
|
3613
|
-
const
|
|
3618
|
+
const Dc = {
|
|
3614
3619
|
name: "ikon.client.getBatteryLevel",
|
|
3615
3620
|
description: "Get the current battery level (0-100)",
|
|
3616
3621
|
returnType: { kind: "number", nullable: !0 }
|
|
3617
3622
|
};
|
|
3618
|
-
async function
|
|
3623
|
+
async function Mc() {
|
|
3619
3624
|
if (typeof navigator > "u" || !("getBattery" in navigator))
|
|
3620
3625
|
return null;
|
|
3621
3626
|
try {
|
|
@@ -3625,48 +3630,48 @@ async function Dc() {
|
|
|
3625
3630
|
return null;
|
|
3626
3631
|
}
|
|
3627
3632
|
}
|
|
3628
|
-
const
|
|
3633
|
+
const Oc = {
|
|
3629
3634
|
name: "ikon.client.getNetworkType",
|
|
3630
3635
|
description: "Get the current network connection type",
|
|
3631
3636
|
returnType: { kind: "string", nullable: !0 }
|
|
3632
3637
|
};
|
|
3633
|
-
function
|
|
3638
|
+
function Lc() {
|
|
3634
3639
|
if (typeof navigator > "u")
|
|
3635
3640
|
return null;
|
|
3636
3641
|
const t = navigator.connection;
|
|
3637
3642
|
return t && (t.effectiveType || t.type) || null;
|
|
3638
3643
|
}
|
|
3639
3644
|
const vc = [
|
|
3640
|
-
{ definition:
|
|
3641
|
-
{ definition:
|
|
3642
|
-
{ definition:
|
|
3643
|
-
{ definition:
|
|
3644
|
-
{ definition:
|
|
3645
|
-
{ definition:
|
|
3646
|
-
{ definition:
|
|
3647
|
-
{ definition:
|
|
3648
|
-
{ definition:
|
|
3649
|
-
{ definition:
|
|
3650
|
-
{ definition:
|
|
3651
|
-
{ definition:
|
|
3652
|
-
{ definition:
|
|
3653
|
-
{ definition:
|
|
3654
|
-
{ definition:
|
|
3655
|
-
{ definition:
|
|
3656
|
-
{ definition:
|
|
3657
|
-
{ definition:
|
|
3658
|
-
{ definition:
|
|
3659
|
-
{ definition:
|
|
3660
|
-
{ definition:
|
|
3645
|
+
{ definition: ja, handler: za },
|
|
3646
|
+
{ definition: Xa, handler: Ja },
|
|
3647
|
+
{ definition: Qa, handler: qa },
|
|
3648
|
+
{ definition: Za, handler: ec },
|
|
3649
|
+
{ definition: tc, handler: rc },
|
|
3650
|
+
{ definition: nc, handler: sc },
|
|
3651
|
+
{ definition: ic, handler: oc },
|
|
3652
|
+
{ definition: ac, handler: cc },
|
|
3653
|
+
{ definition: lc, handler: uc },
|
|
3654
|
+
{ definition: hc, handler: dc },
|
|
3655
|
+
{ definition: fc, handler: pc },
|
|
3656
|
+
{ definition: Ec, handler: mc },
|
|
3657
|
+
{ definition: Ic, handler: _c },
|
|
3658
|
+
{ definition: Tc, handler: Sc },
|
|
3659
|
+
{ definition: wc, handler: Ac },
|
|
3660
|
+
{ definition: yc, handler: Nc },
|
|
3661
|
+
{ definition: gc, handler: Cc },
|
|
3662
|
+
{ definition: bc, handler: Rc },
|
|
3663
|
+
{ definition: kc, handler: Uc },
|
|
3664
|
+
{ definition: Dc, handler: Mc },
|
|
3665
|
+
{ definition: Oc, handler: Lc }
|
|
3661
3666
|
];
|
|
3662
|
-
function
|
|
3667
|
+
function Fc(t) {
|
|
3663
3668
|
const e = vc.map(({ definition: r, handler: n }) => t.register(r, n));
|
|
3664
3669
|
return () => e.forEach((r) => r());
|
|
3665
3670
|
}
|
|
3666
3671
|
function nt() {
|
|
3667
3672
|
return typeof window < "u" && typeof navigator < "u";
|
|
3668
3673
|
}
|
|
3669
|
-
const
|
|
3674
|
+
const Pc = new Uint8Array(0);
|
|
3670
3675
|
function Ie(t) {
|
|
3671
3676
|
switch (t.kind) {
|
|
3672
3677
|
case "array":
|
|
@@ -3726,7 +3731,7 @@ function Cr(t, e) {
|
|
|
3726
3731
|
}
|
|
3727
3732
|
return JSON.stringify(t);
|
|
3728
3733
|
}
|
|
3729
|
-
function
|
|
3734
|
+
function Bc(t, e) {
|
|
3730
3735
|
const r = (t.parameters ?? []).map((i) => {
|
|
3731
3736
|
const o = Ie(i.type), a = Object.prototype.hasOwnProperty.call(i, "defaultValue"), c = a ? Cr(i.defaultValue, o) : "";
|
|
3732
3737
|
return {
|
|
@@ -3753,7 +3758,7 @@ function Pc(t, e) {
|
|
|
3753
3758
|
TypeName: re(i.descriptor),
|
|
3754
3759
|
HasDefaultValue: i.hasDefaultValue,
|
|
3755
3760
|
DefaultValueJson: i.defaultValueJson,
|
|
3756
|
-
DefaultValueData:
|
|
3761
|
+
DefaultValueData: Pc,
|
|
3757
3762
|
IsEnumerable: !1,
|
|
3758
3763
|
EnumerableItemTypeName: "",
|
|
3759
3764
|
Description: i.description ?? ""
|
|
@@ -3767,11 +3772,11 @@ function Pc(t, e) {
|
|
|
3767
3772
|
returnType: n
|
|
3768
3773
|
};
|
|
3769
3774
|
}
|
|
3770
|
-
const it =
|
|
3771
|
-
function
|
|
3775
|
+
const it = L("FunctionRegistry"), xc = new Uint8Array(0);
|
|
3776
|
+
function Gc(t) {
|
|
3772
3777
|
return !t || typeof t != "object" ? !1 : t.data instanceof Uint8Array;
|
|
3773
3778
|
}
|
|
3774
|
-
class
|
|
3779
|
+
class Vc {
|
|
3775
3780
|
functions = /* @__PURE__ */ new Map();
|
|
3776
3781
|
config = null;
|
|
3777
3782
|
isConnected = !1;
|
|
@@ -3793,7 +3798,7 @@ class Gc {
|
|
|
3793
3798
|
* If already connected, sends registration to server immediately.
|
|
3794
3799
|
*/
|
|
3795
3800
|
register(e, r) {
|
|
3796
|
-
const n =
|
|
3801
|
+
const n = Bc(e, r);
|
|
3797
3802
|
return this.functions.set(e.name, n), this.isConnected && this.config && this.sendRegistration(n), () => this.unregister(e.name);
|
|
3798
3803
|
}
|
|
3799
3804
|
/**
|
|
@@ -3872,8 +3877,8 @@ class Gc {
|
|
|
3872
3877
|
h === void 0 || h === "" ? p.hasDefaultValue ? s.push(st(p.defaultValueJson, p.descriptor)) : s.push(void 0) : s.push(st(h, p.descriptor));
|
|
3873
3878
|
}
|
|
3874
3879
|
const i = await e.handler(...s);
|
|
3875
|
-
let o = i, a =
|
|
3876
|
-
|
|
3880
|
+
let o = i, a = xc;
|
|
3881
|
+
Gc(i) && (o = i.value, a = new Uint8Array(i.data));
|
|
3877
3882
|
const c = Cr(o, e.returnType);
|
|
3878
3883
|
this.sendResult(r.CallId, r.InstanceId, n, e, c, a);
|
|
3879
3884
|
} catch (s) {
|
|
@@ -3886,7 +3891,7 @@ class Gc {
|
|
|
3886
3891
|
sendAck(e, r, n) {
|
|
3887
3892
|
if (!this.config)
|
|
3888
3893
|
return;
|
|
3889
|
-
const s =
|
|
3894
|
+
const s = vs(Ds({ CallId: e, InstanceId: r }), this.config.sessionId, { targetIds: [n] });
|
|
3890
3895
|
this.config.sendProtocolMessage(s);
|
|
3891
3896
|
}
|
|
3892
3897
|
/**
|
|
@@ -3928,7 +3933,7 @@ class Gc {
|
|
|
3928
3933
|
this.config.sendProtocolMessage(i);
|
|
3929
3934
|
}
|
|
3930
3935
|
}
|
|
3931
|
-
function
|
|
3936
|
+
function Wc(t, e) {
|
|
3932
3937
|
return { value: t, data: e };
|
|
3933
3938
|
}
|
|
3934
3939
|
function Se(t) {
|
|
@@ -3944,7 +3949,7 @@ const Te = {
|
|
|
3944
3949
|
StartAudioCapture: "ikon.client.startAudioCapture",
|
|
3945
3950
|
StopCapture: "ikon.client.stopCapture",
|
|
3946
3951
|
CaptureImage: "ikon.client.captureImage"
|
|
3947
|
-
},
|
|
3952
|
+
}, Hc = {
|
|
3948
3953
|
name: Te.StartVideoCapture,
|
|
3949
3954
|
description: "Start camera or screen capture and stream video frames to the server",
|
|
3950
3955
|
returnType: { kind: "string" },
|
|
@@ -3952,26 +3957,26 @@ const Te = {
|
|
|
3952
3957
|
{ name: "source", type: { kind: "string", nullable: !0 }, description: "camera or screen" },
|
|
3953
3958
|
{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }
|
|
3954
3959
|
]
|
|
3955
|
-
},
|
|
3960
|
+
}, $c = {
|
|
3956
3961
|
name: Te.StartAudioCapture,
|
|
3957
3962
|
description: "Start microphone capture and stream audio frames to the server",
|
|
3958
3963
|
returnType: { kind: "string" },
|
|
3959
3964
|
parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
|
|
3960
|
-
},
|
|
3965
|
+
}, Kc = {
|
|
3961
3966
|
name: Te.StopCapture,
|
|
3962
3967
|
description: "Stop a previously started capture by captureId",
|
|
3963
3968
|
returnType: { kind: "boolean" },
|
|
3964
3969
|
parameters: [{ name: "captureId", type: { kind: "string" }, description: "Capture ID to stop" }]
|
|
3965
|
-
},
|
|
3970
|
+
}, Yc = {
|
|
3966
3971
|
name: Te.CaptureImage,
|
|
3967
3972
|
description: "Capture a single image from the camera and return metadata (JSON) plus binary image data",
|
|
3968
3973
|
returnType: { kind: "string" },
|
|
3969
3974
|
parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
|
|
3970
3975
|
};
|
|
3971
|
-
function
|
|
3976
|
+
function jc(t, e) {
|
|
3972
3977
|
const r = [];
|
|
3973
3978
|
return r.push(
|
|
3974
|
-
t.register(
|
|
3979
|
+
t.register(Hc, async (n, s) => {
|
|
3975
3980
|
const i = e.mediaCapture;
|
|
3976
3981
|
if (!i)
|
|
3977
3982
|
throw new Error("Media capture is not available in this environment");
|
|
@@ -3979,7 +3984,7 @@ function Yc(t, e) {
|
|
|
3979
3984
|
return ((typeof n == "string" && n.trim().toLowerCase() === "screen" ? "screen" : "camera") === "screen" ? await i.video.startScreen({ userGesture: !1, options: o, constraints: o?.constraints }) : await i.video.startCamera({ userGesture: !1, options: o, constraints: o?.constraints })).captureId;
|
|
3980
3985
|
})
|
|
3981
3986
|
), r.push(
|
|
3982
|
-
t.register(
|
|
3987
|
+
t.register($c, async (n) => {
|
|
3983
3988
|
const s = e.mediaCapture;
|
|
3984
3989
|
if (!s)
|
|
3985
3990
|
throw new Error("Media capture is not available in this environment");
|
|
@@ -3987,7 +3992,7 @@ function Yc(t, e) {
|
|
|
3987
3992
|
return (await s.audio.startMic({ userGesture: !1, options: i, constraints: i?.constraints })).captureId;
|
|
3988
3993
|
})
|
|
3989
3994
|
), r.push(
|
|
3990
|
-
t.register(
|
|
3995
|
+
t.register(Kc, async (n) => {
|
|
3991
3996
|
const s = e.mediaCapture;
|
|
3992
3997
|
if (!s || typeof n != "string" || !n.trim())
|
|
3993
3998
|
return !1;
|
|
@@ -3995,7 +4000,7 @@ function Yc(t, e) {
|
|
|
3995
4000
|
return i || o;
|
|
3996
4001
|
})
|
|
3997
4002
|
), r.push(
|
|
3998
|
-
t.register(
|
|
4003
|
+
t.register(Yc, async (n) => {
|
|
3999
4004
|
const s = e.mediaCapture;
|
|
4000
4005
|
if (!s)
|
|
4001
4006
|
throw new Error("Media capture is not available in this environment");
|
|
@@ -4007,7 +4012,7 @@ function Yc(t, e) {
|
|
|
4007
4012
|
width: i.width,
|
|
4008
4013
|
height: i.height
|
|
4009
4014
|
}), a = JSON.stringify({ mime: o.mime, width: o.width, height: o.height });
|
|
4010
|
-
return
|
|
4015
|
+
return Wc(a, o.data);
|
|
4011
4016
|
})
|
|
4012
4017
|
), () => {
|
|
4013
4018
|
for (const n of r)
|
|
@@ -4019,9 +4024,9 @@ const br = () => {
|
|
|
4019
4024
|
return !1;
|
|
4020
4025
|
const t = navigator.userAgent, e = /iPad|iPhone|iPod/.test(t), r = t.includes("Macintosh") && typeof navigator.maxTouchPoints == "number" && navigator.maxTouchPoints > 1;
|
|
4021
4026
|
return e || r;
|
|
4022
|
-
},
|
|
4027
|
+
}, zc = globalThis;
|
|
4023
4028
|
function le() {
|
|
4024
|
-
if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" ||
|
|
4029
|
+
if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" || zc.crossOriginIsolated === !1)
|
|
4025
4030
|
return !1;
|
|
4026
4031
|
try {
|
|
4027
4032
|
new SharedArrayBuffer(1);
|
|
@@ -4033,7 +4038,7 @@ function le() {
|
|
|
4033
4038
|
function Rr(t) {
|
|
4034
4039
|
return typeof AudioWorkletNode != "function" ? !1 : typeof t.audioWorklet?.addModule == "function";
|
|
4035
4040
|
}
|
|
4036
|
-
function
|
|
4041
|
+
function Xc(t) {
|
|
4037
4042
|
return new Worker(
|
|
4038
4043
|
"" + new URL("assets/audio-playback-worker-Cwm3GaAx.js", import.meta.url).href,
|
|
4039
4044
|
{
|
|
@@ -4042,7 +4047,7 @@ function zc(t) {
|
|
|
4042
4047
|
}
|
|
4043
4048
|
);
|
|
4044
4049
|
}
|
|
4045
|
-
const ae = 48e3, R = 2, kr = 1500, ot = 512, at = "playback",
|
|
4050
|
+
const ae = 48e3, R = 2, kr = 1500, ot = 512, at = "playback", Jc = 120, Qc = 300, qc = 4, Zc = 200, el = 100, tl = 8e3, rl = 10, Ur = 100, ke = 50, Dr = 128, nl = 20, sl = !0, G = 1500, il = -20, ol = -100, al = 200, g = L("IkonAudioPlayback"), cl = () => {
|
|
4046
4051
|
if (typeof navigator > "u" || typeof window > "u")
|
|
4047
4052
|
return !1;
|
|
4048
4053
|
const t = navigator.userAgent, e = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t), r = t.includes("Macintosh") && typeof navigator.maxTouchPoints == "number" && navigator.maxTouchPoints > 1;
|
|
@@ -4054,19 +4059,19 @@ const ae = 48e3, R = 2, kr = 1500, ot = 512, at = "playback", Xc = 120, Jc = 300
|
|
|
4054
4059
|
function K(t) {
|
|
4055
4060
|
return t instanceof Error ? `${t.name}: ${t.message}` : String(t);
|
|
4056
4061
|
}
|
|
4057
|
-
function
|
|
4062
|
+
function ll(t) {
|
|
4058
4063
|
return `
|
|
4059
4064
|
// Audio buffer constants
|
|
4060
4065
|
const OUTPUT_SAMPLE_RATE_HZ = ${t.outputSampleRateHz};
|
|
4061
4066
|
const DEFAULT_FRAME_SAMPLES_PER_CHANNEL = Math.max(1, Math.round(OUTPUT_SAMPLE_RATE_HZ * 0.02));
|
|
4062
|
-
const BUFFER_TARGET_MIN_MS = ${
|
|
4063
|
-
const BUFFER_TARGET_MAX_MS = ${
|
|
4064
|
-
const JITTER_MULTIPLIER = ${
|
|
4067
|
+
const BUFFER_TARGET_MIN_MS = ${Jc};
|
|
4068
|
+
const BUFFER_TARGET_MAX_MS = ${Qc};
|
|
4069
|
+
const JITTER_MULTIPLIER = ${qc};
|
|
4065
4070
|
const LOCAL_BUFFER_MAX_MS = ${kr};
|
|
4066
|
-
const CONTROL_PERIOD_MS = ${
|
|
4067
|
-
const UNDERRUN_JUMP_MS = ${
|
|
4068
|
-
const STABLE_TIME_TO_DECREASE_MS = ${
|
|
4069
|
-
const DECREASE_STEP_MS = ${
|
|
4071
|
+
const CONTROL_PERIOD_MS = ${Zc};
|
|
4072
|
+
const UNDERRUN_JUMP_MS = ${el};
|
|
4073
|
+
const STABLE_TIME_TO_DECREASE_MS = ${tl};
|
|
4074
|
+
const DECREASE_STEP_MS = ${rl};
|
|
4070
4075
|
const DEFAULT_STATS_INTERVAL_SAMPLES = OUTPUT_SAMPLE_RATE_HZ;
|
|
4071
4076
|
|
|
4072
4077
|
// Pre-computed reciprocals for division-free calculations
|
|
@@ -4085,7 +4090,7 @@ const FADE_OUT_INCREMENT = 1.0 / FADE_OUT_DURATION_SAMPLES;
|
|
|
4085
4090
|
const RENDER_QUANTUM_SIZE = ${Dr};
|
|
4086
4091
|
|
|
4087
4092
|
// Buffer reduction crossfade constants (align to quantum boundary to avoid partial quanta)
|
|
4088
|
-
const BUFFER_REDUCTION_CROSSFADE_MS = ${
|
|
4093
|
+
const BUFFER_REDUCTION_CROSSFADE_MS = ${nl};
|
|
4089
4094
|
const BUFFER_REDUCTION_CROSSFADE_SAMPLES_RAW = Math.round(OUTPUT_SAMPLE_RATE_HZ * BUFFER_REDUCTION_CROSSFADE_MS / 1000);
|
|
4090
4095
|
const BUFFER_REDUCTION_CROSSFADE_SAMPLES = Math.ceil(BUFFER_REDUCTION_CROSSFADE_SAMPLES_RAW / RENDER_QUANTUM_SIZE) * RENDER_QUANTUM_SIZE;
|
|
4091
4096
|
|
|
@@ -4296,7 +4301,7 @@ class IkonAudioPlayerProcessor extends AudioWorkletProcessor {
|
|
|
4296
4301
|
this.statsIntervalSamples = Math.max(1, Math.round((OUTPUT_SAMPLE_RATE_HZ * statusIntervalMs) / 1000));
|
|
4297
4302
|
|
|
4298
4303
|
// Normalization config (hardcoded)
|
|
4299
|
-
this.normalizationEnabled = ${
|
|
4304
|
+
this.normalizationEnabled = ${sl};
|
|
4300
4305
|
|
|
4301
4306
|
// Stream states for audio buffer
|
|
4302
4307
|
this.streams = new Map();
|
|
@@ -4972,7 +4977,7 @@ class je {
|
|
|
4972
4977
|
config;
|
|
4973
4978
|
enabled = !1;
|
|
4974
4979
|
stateUnsubscribe = null;
|
|
4975
|
-
isMobile =
|
|
4980
|
+
isMobile = cl();
|
|
4976
4981
|
boundVisibilityChange = null;
|
|
4977
4982
|
boundPageHide = null;
|
|
4978
4983
|
unlockHandler = null;
|
|
@@ -5187,8 +5192,8 @@ class je {
|
|
|
5187
5192
|
const a = o * n * s, c = i.frames, u = i.count, d = (i.head - u + G) % G;
|
|
5188
5193
|
let h = null, f = null;
|
|
5189
5194
|
for (let l = 0; l < u; l++) {
|
|
5190
|
-
const N = (d + l) % G, S = c[N],
|
|
5191
|
-
if (S.samplePosition <= a && (h = S),
|
|
5195
|
+
const N = (d + l) % G, S = c[N], v = S.samplePosition + Math.max(S.frameSamples, 1);
|
|
5196
|
+
if (S.samplePosition <= a && (h = S), v > a && !f && (f = S, S.samplePosition <= a))
|
|
5192
5197
|
break;
|
|
5193
5198
|
}
|
|
5194
5199
|
if (!h)
|
|
@@ -5406,7 +5411,7 @@ class je {
|
|
|
5406
5411
|
URL.revokeObjectURL(this.workletModuleUrl);
|
|
5407
5412
|
} catch {
|
|
5408
5413
|
}
|
|
5409
|
-
this.workletModuleKey = i, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(new Blob([
|
|
5414
|
+
this.workletModuleKey = i, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(new Blob([ll({ outputSampleRateHz: this.outputSampleRateHz, outputChannels: R })], { type: "text/javascript" }));
|
|
5410
5415
|
}
|
|
5411
5416
|
this.workletReady || (this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl).catch((p) => {
|
|
5412
5417
|
throw g.warn(`Failed to load AudioWorklet module, falling back: ${K(p)}`), p;
|
|
@@ -5468,9 +5473,9 @@ class je {
|
|
|
5468
5473
|
l.totalSamples > 0 && (w += 1), (l.ending || l.inputDrained) && l.fadeDirection !== "out" && l.totalSamples / E * 1e3 / this.outputSampleRateHz <= ke * 2 && (l.fadeDirection = "out"), this.readFromFallbackQueue(l, s), (l.totalSamples > 0 || !l.hasLastOut) && ((!l.lastOut || l.lastOut.length !== s.length) && (l.lastOut = new Float32Array(s.length)), l.lastOut.set(s), l.hasLastOut = !0);
|
|
5469
5474
|
for (let S = 0; S < I; S++) {
|
|
5470
5475
|
l.fadeDirection === "in" ? (l.fadeGain = Math.min(1, l.fadeGain + a), l.fadeGain >= 1 && (l.fadeDirection = "none")) : l.fadeDirection === "out" && (l.fadeGain = Math.max(0, l.fadeGain - c), l.fadeGain <= 0 && (l.fadeDirection = "none"));
|
|
5471
|
-
for (let
|
|
5472
|
-
const M = s[S * E +
|
|
5473
|
-
u[
|
|
5476
|
+
for (let v = 0; v < E; v++) {
|
|
5477
|
+
const M = s[S * E + v];
|
|
5478
|
+
u[v][S] += M * l.fadeGain;
|
|
5474
5479
|
}
|
|
5475
5480
|
}
|
|
5476
5481
|
const N = l.ending || l.inputDrained;
|
|
@@ -5485,11 +5490,11 @@ class je {
|
|
|
5485
5490
|
l.fadeGain <= 1e-3 && l.ending && p.push(_);
|
|
5486
5491
|
} else if (!N && l.totalSamples <= 0 && l.hasLastOut && l.lastOut && l.fadeGain > 1e-3) {
|
|
5487
5492
|
l.fadeDirection = "out", l.underrunPending = !0;
|
|
5488
|
-
const S = l.lastOut,
|
|
5493
|
+
const S = l.lastOut, v = I - 1;
|
|
5489
5494
|
for (let M = 0; M < I; M++) {
|
|
5490
5495
|
l.fadeGain = Math.max(0, l.fadeGain - c), l.fadeGain <= 0 && (l.fadeDirection = "none");
|
|
5491
5496
|
for (let $ = 0; $ < E; $++) {
|
|
5492
|
-
const xr = S[
|
|
5497
|
+
const xr = S[v * E + $];
|
|
5493
5498
|
u[$][M] += xr * l.fadeGain;
|
|
5494
5499
|
}
|
|
5495
5500
|
}
|
|
@@ -5652,7 +5657,7 @@ class je {
|
|
|
5652
5657
|
}
|
|
5653
5658
|
this.protocolPort = e;
|
|
5654
5659
|
try {
|
|
5655
|
-
this.audioWorker = new
|
|
5660
|
+
this.audioWorker = new Xc();
|
|
5656
5661
|
} catch (d) {
|
|
5657
5662
|
g.warn(`Failed to create audio worker: ${K(d)}`), this.protocolPort.close(), this.protocolPort = null;
|
|
5658
5663
|
return;
|
|
@@ -5736,7 +5741,7 @@ class je {
|
|
|
5736
5741
|
s.epochTimestampSamples = e.timestampInterleavedSamples;
|
|
5737
5742
|
const c = this.audioContext;
|
|
5738
5743
|
if (c) {
|
|
5739
|
-
const u = (c.outputLatency ?? 0) + (c.baseLatency ?? 0), p =
|
|
5744
|
+
const u = (c.outputLatency ?? 0) + (c.baseLatency ?? 0), p = il + u * 1e3, d = Math.min(al, Math.max(ol, p));
|
|
5740
5745
|
s.playbackStartContextTime = c.currentTime + d / 1e3;
|
|
5741
5746
|
}
|
|
5742
5747
|
s.timingEstablished = !0;
|
|
@@ -5859,7 +5864,7 @@ class je {
|
|
|
5859
5864
|
}));
|
|
5860
5865
|
}
|
|
5861
5866
|
}
|
|
5862
|
-
function
|
|
5867
|
+
function ul(t) {
|
|
5863
5868
|
return new Worker(
|
|
5864
5869
|
"" + new URL("assets/video-playback-worker-Bfm3r5xW.js", import.meta.url).href,
|
|
5865
5870
|
{
|
|
@@ -5868,11 +5873,11 @@ function ll(t) {
|
|
|
5868
5873
|
}
|
|
5869
5874
|
);
|
|
5870
5875
|
}
|
|
5871
|
-
const V =
|
|
5876
|
+
const V = L("IkonVideoPlayback");
|
|
5872
5877
|
function we(t) {
|
|
5873
5878
|
return t instanceof Error ? `${t.name}: ${t.message}` : String(t);
|
|
5874
5879
|
}
|
|
5875
|
-
class
|
|
5880
|
+
class hl {
|
|
5876
5881
|
client;
|
|
5877
5882
|
config;
|
|
5878
5883
|
enabled = !0;
|
|
@@ -5947,7 +5952,7 @@ class ul {
|
|
|
5947
5952
|
}
|
|
5948
5953
|
let e;
|
|
5949
5954
|
try {
|
|
5950
|
-
e = new
|
|
5955
|
+
e = new ul();
|
|
5951
5956
|
} catch (r) {
|
|
5952
5957
|
V.warn(`Failed to create video worker: ${we(r)}`);
|
|
5953
5958
|
return;
|
|
@@ -6036,7 +6041,7 @@ class ul {
|
|
|
6036
6041
|
const r = this.parseStreamId(e);
|
|
6037
6042
|
if (!r)
|
|
6038
6043
|
return;
|
|
6039
|
-
const n =
|
|
6044
|
+
const n = wa(Ta(), this.client.sessionId ?? 0, {
|
|
6040
6045
|
trackId: r.trackId,
|
|
6041
6046
|
targetIds: [r.senderId]
|
|
6042
6047
|
});
|
|
@@ -6096,11 +6101,11 @@ class ul {
|
|
|
6096
6101
|
}));
|
|
6097
6102
|
}
|
|
6098
6103
|
}
|
|
6099
|
-
class
|
|
6104
|
+
class dl {
|
|
6100
6105
|
audio;
|
|
6101
6106
|
video;
|
|
6102
6107
|
constructor(e, r) {
|
|
6103
|
-
this.audio = new je(e, r?.audio), this.video = new
|
|
6108
|
+
this.audio = new je(e, r?.audio), this.video = new hl(e, r?.video), r?.mediaSession && this.audio.setMediaSession(r.mediaSession);
|
|
6104
6109
|
}
|
|
6105
6110
|
/**
|
|
6106
6111
|
* Releases media resources (workers, audio graph, decoders).
|
|
@@ -6111,7 +6116,7 @@ class hl {
|
|
|
6111
6116
|
this.audio.dispose(), this.video.dispose();
|
|
6112
6117
|
}
|
|
6113
6118
|
}
|
|
6114
|
-
class
|
|
6119
|
+
class fl {
|
|
6115
6120
|
static getStorageForCapacity(e, r) {
|
|
6116
6121
|
const n = Int32Array.BYTES_PER_ELEMENT * 2, s = r.BYTES_PER_ELEMENT * e;
|
|
6117
6122
|
return new SharedArrayBuffer(n + s);
|
|
@@ -6165,7 +6170,7 @@ class dl {
|
|
|
6165
6170
|
return n = (n + r) % this.capacity, Atomics.store(this.readWrite, 0, n), r;
|
|
6166
6171
|
}
|
|
6167
6172
|
}
|
|
6168
|
-
function
|
|
6173
|
+
function pl(t) {
|
|
6169
6174
|
return new Worker(
|
|
6170
6175
|
"" + new URL("assets/audio-capture-worker-kpORDYGU.js", import.meta.url).href,
|
|
6171
6176
|
{
|
|
@@ -6174,12 +6179,12 @@ function fl(t) {
|
|
|
6174
6179
|
}
|
|
6175
6180
|
);
|
|
6176
6181
|
}
|
|
6177
|
-
const
|
|
6178
|
-
function
|
|
6182
|
+
const El = L("IkonAudioCapture");
|
|
6183
|
+
function ml() {
|
|
6179
6184
|
const t = globalThis.crypto;
|
|
6180
6185
|
return t?.randomUUID ? t.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
|
|
6181
6186
|
}
|
|
6182
|
-
function
|
|
6187
|
+
function Il() {
|
|
6183
6188
|
return `
|
|
6184
6189
|
class RingBuffer {
|
|
6185
6190
|
static getStorageForCapacity(capacity, type) {
|
|
@@ -6308,7 +6313,7 @@ class IkonAudioCaptureProcessor extends AudioWorkletProcessor {
|
|
|
6308
6313
|
registerProcessor('ikon-audio-capture', IkonAudioCaptureProcessor);
|
|
6309
6314
|
`;
|
|
6310
6315
|
}
|
|
6311
|
-
class
|
|
6316
|
+
class _l {
|
|
6312
6317
|
constructor(e, r) {
|
|
6313
6318
|
this.client = e, this.config = r ?? {};
|
|
6314
6319
|
}
|
|
@@ -6328,12 +6333,12 @@ class Il {
|
|
|
6328
6333
|
ensureWorker() {
|
|
6329
6334
|
if (this.worker)
|
|
6330
6335
|
return this.worker;
|
|
6331
|
-
const e = new
|
|
6336
|
+
const e = new pl();
|
|
6332
6337
|
return this.worker = e, e.addEventListener("message", (r) => {
|
|
6333
6338
|
const n = r.data;
|
|
6334
6339
|
if (n?.type === "error") {
|
|
6335
6340
|
const s = n.error;
|
|
6336
|
-
|
|
6341
|
+
El.warn(`Audio capture worker error: ${s?.name ?? "Error"} ${s?.message ?? ""}`);
|
|
6337
6342
|
}
|
|
6338
6343
|
}), e;
|
|
6339
6344
|
}
|
|
@@ -6371,7 +6376,7 @@ class Il {
|
|
|
6371
6376
|
async ensureWorklet(e) {
|
|
6372
6377
|
if (!Rr(e))
|
|
6373
6378
|
throw new Error("AudioWorklet is not supported in this browser");
|
|
6374
|
-
this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([
|
|
6379
|
+
this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([Il()], { type: "text/javascript" }))), (!this.workletReady || this.workletContext !== e) && (this.workletContext = e, this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl));
|
|
6375
6380
|
try {
|
|
6376
6381
|
await this.workletReady;
|
|
6377
6382
|
} catch (r) {
|
|
@@ -6387,13 +6392,13 @@ class Il {
|
|
|
6387
6392
|
if (!i)
|
|
6388
6393
|
throw s.getTracks().forEach((_) => _.stop()), new Error("No audio track available");
|
|
6389
6394
|
await this.ensureWorklet(n);
|
|
6390
|
-
const o =
|
|
6395
|
+
const o = ml(), a = this.allocateTrackId(), c = n.createMediaStreamSource(s), u = n.createGain();
|
|
6391
6396
|
u.gain.value = 0, u.connect(n.destination);
|
|
6392
6397
|
const h = le() ? "sab" : "pcm";
|
|
6393
6398
|
let f;
|
|
6394
6399
|
if (h === "sab") {
|
|
6395
6400
|
const _ = Math.floor(n.sampleRate * 2);
|
|
6396
|
-
f =
|
|
6401
|
+
f = fl.getStorageForCapacity(_, Float32Array);
|
|
6397
6402
|
}
|
|
6398
6403
|
const E = this.ensureWorker();
|
|
6399
6404
|
E.postMessage({
|
|
@@ -6412,8 +6417,8 @@ class Il {
|
|
|
6412
6417
|
}), await new Promise((_, l) => {
|
|
6413
6418
|
const N = setTimeout(() => {
|
|
6414
6419
|
E.removeEventListener("message", S), l(new Error("Audio capture worker start timeout"));
|
|
6415
|
-
}, 1e4), S = (
|
|
6416
|
-
const M =
|
|
6420
|
+
}, 1e4), S = (v) => {
|
|
6421
|
+
const M = v.data;
|
|
6417
6422
|
if (M?.type === "started" && M.captureId === o)
|
|
6418
6423
|
clearTimeout(N), E.removeEventListener("message", S), _();
|
|
6419
6424
|
else if (M?.type === "error" && M.captureId === o) {
|
|
@@ -6534,9 +6539,9 @@ class Il {
|
|
|
6534
6539
|
}
|
|
6535
6540
|
}
|
|
6536
6541
|
}
|
|
6537
|
-
const Mr = 1280, Or = 720,
|
|
6538
|
-
async function
|
|
6539
|
-
const r = e.mime ??
|
|
6542
|
+
const Mr = 1280, Or = 720, Tl = 30, Lr = "image/jpeg", Sl = 0.92;
|
|
6543
|
+
async function wl(t, e) {
|
|
6544
|
+
const r = e.mime ?? Lr, n = e.quality ?? Sl;
|
|
6540
6545
|
if (typeof OffscreenCanvas < "u" && t instanceof OffscreenCanvas)
|
|
6541
6546
|
try {
|
|
6542
6547
|
return await t.convertToBlob({ type: r, quality: n });
|
|
@@ -6553,7 +6558,7 @@ async function Sl(t, e) {
|
|
|
6553
6558
|
);
|
|
6554
6559
|
});
|
|
6555
6560
|
}
|
|
6556
|
-
class
|
|
6561
|
+
class Al {
|
|
6557
6562
|
async acquireCameraStream(e) {
|
|
6558
6563
|
if (!navigator.mediaDevices)
|
|
6559
6564
|
throw new Error("Media devices are not available in this environment");
|
|
@@ -6590,9 +6595,9 @@ class wl {
|
|
|
6590
6595
|
if (!p)
|
|
6591
6596
|
throw new Error("2D canvas context unavailable");
|
|
6592
6597
|
p.drawImage(s, 0, 0, a, c);
|
|
6593
|
-
const d = await
|
|
6598
|
+
const d = await wl(u, e), h = await d.arrayBuffer();
|
|
6594
6599
|
return {
|
|
6595
|
-
mime: d.type || e.mime ||
|
|
6600
|
+
mime: d.type || e.mime || Lr,
|
|
6596
6601
|
width: a,
|
|
6597
6602
|
height: c,
|
|
6598
6603
|
data: new Uint8Array(h)
|
|
@@ -6617,7 +6622,7 @@ class wl {
|
|
|
6617
6622
|
}
|
|
6618
6623
|
}
|
|
6619
6624
|
}
|
|
6620
|
-
function
|
|
6625
|
+
function yl(t) {
|
|
6621
6626
|
return new Worker(
|
|
6622
6627
|
"" + new URL("assets/video-capture-worker-BBs_62Fq.js", import.meta.url).href,
|
|
6623
6628
|
{
|
|
@@ -6626,18 +6631,18 @@ function Al(t) {
|
|
|
6626
6631
|
}
|
|
6627
6632
|
);
|
|
6628
6633
|
}
|
|
6629
|
-
const lt =
|
|
6630
|
-
function
|
|
6634
|
+
const lt = L("IkonVideoCapture");
|
|
6635
|
+
function Nl() {
|
|
6631
6636
|
const t = globalThis.crypto;
|
|
6632
6637
|
return t?.randomUUID ? t.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
|
|
6633
6638
|
}
|
|
6634
|
-
function
|
|
6639
|
+
function gl() {
|
|
6635
6640
|
const t = globalThis.MediaStreamTrackProcessor;
|
|
6636
6641
|
if (!t)
|
|
6637
6642
|
throw new Error("MediaStreamTrackProcessor is not available in this browser");
|
|
6638
6643
|
return t;
|
|
6639
6644
|
}
|
|
6640
|
-
class
|
|
6645
|
+
class Cl {
|
|
6641
6646
|
constructor(e) {
|
|
6642
6647
|
this.client = e;
|
|
6643
6648
|
}
|
|
@@ -6653,7 +6658,7 @@ class gl {
|
|
|
6653
6658
|
ensureWorker() {
|
|
6654
6659
|
if (this.worker)
|
|
6655
6660
|
return this.worker;
|
|
6656
|
-
const e = new
|
|
6661
|
+
const e = new yl();
|
|
6657
6662
|
return this.worker = e, e.addEventListener("message", (r) => {
|
|
6658
6663
|
const n = r.data;
|
|
6659
6664
|
if (n?.type === "error") {
|
|
@@ -6680,7 +6685,7 @@ class gl {
|
|
|
6680
6685
|
async getMediaStream(e) {
|
|
6681
6686
|
if (!navigator.mediaDevices)
|
|
6682
6687
|
throw new Error("Media devices are not available in this environment");
|
|
6683
|
-
const r = e.constraints ?? {}, n = e.options?.framerate ??
|
|
6688
|
+
const r = e.constraints ?? {}, n = e.options?.framerate ?? Tl, s = {
|
|
6684
6689
|
...r,
|
|
6685
6690
|
frameRate: r.frameRate ?? { ideal: n }
|
|
6686
6691
|
};
|
|
@@ -6691,10 +6696,10 @@ class gl {
|
|
|
6691
6696
|
if (!r)
|
|
6692
6697
|
throw new Error("Cannot start video capture before client is connected");
|
|
6693
6698
|
this.ensurePorts();
|
|
6694
|
-
const n =
|
|
6699
|
+
const n = Nl(), s = await this.getMediaStream(e), i = s.getVideoTracks()[0];
|
|
6695
6700
|
if (!i)
|
|
6696
6701
|
throw s.getTracks().forEach((I) => I.stop()), new Error("No video track available");
|
|
6697
|
-
const o = i.getSettings(), a = e.options?.width ?? o.width ?? Mr, c = e.options?.height ?? o.height ?? Or, u =
|
|
6702
|
+
const o = i.getSettings(), a = e.options?.width ?? o.width ?? Mr, c = e.options?.height ?? o.height ?? Or, u = gl(), d = new u({ track: i }).readable, h = this.allocateTrackId(), f = this.ensureWorker();
|
|
6698
6703
|
f.postMessage(
|
|
6699
6704
|
{
|
|
6700
6705
|
type: "start",
|
|
@@ -6762,12 +6767,12 @@ class gl {
|
|
|
6762
6767
|
this.protocolPort?.close(), this.protocolPort = null, this.sendPort?.close(), this.sendPort = null;
|
|
6763
6768
|
}
|
|
6764
6769
|
}
|
|
6765
|
-
class
|
|
6770
|
+
class bl {
|
|
6766
6771
|
audio;
|
|
6767
6772
|
video;
|
|
6768
6773
|
image;
|
|
6769
6774
|
constructor(e, r) {
|
|
6770
|
-
this.audio = new
|
|
6775
|
+
this.audio = new _l(e, r?.audio), this.video = new Cl(e), this.image = new Al();
|
|
6771
6776
|
}
|
|
6772
6777
|
dispose() {
|
|
6773
6778
|
this.audio.dispose(), this.video.dispose();
|
|
@@ -6779,7 +6784,7 @@ const ut = {
|
|
|
6779
6784
|
[k.WebTransportProxy]: 2,
|
|
6780
6785
|
[k.WebSocketProxy]: 3
|
|
6781
6786
|
}, Ae = "ikon_endpoint_type";
|
|
6782
|
-
class
|
|
6787
|
+
class Rl {
|
|
6783
6788
|
isLocal;
|
|
6784
6789
|
workingEndpointType = null;
|
|
6785
6790
|
constructor(e) {
|
|
@@ -6840,8 +6845,8 @@ class bl {
|
|
|
6840
6845
|
}
|
|
6841
6846
|
}
|
|
6842
6847
|
}
|
|
6843
|
-
const A =
|
|
6844
|
-
class
|
|
6848
|
+
const A = L("IkonClient");
|
|
6849
|
+
class Yl {
|
|
6845
6850
|
channelManager = null;
|
|
6846
6851
|
protocolWorker = null;
|
|
6847
6852
|
workerManagerState = null;
|
|
@@ -6896,27 +6901,27 @@ class Kl {
|
|
|
6896
6901
|
return this._mediaCapture;
|
|
6897
6902
|
}
|
|
6898
6903
|
constructor(e) {
|
|
6899
|
-
this.config = e, this.slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ??
|
|
6904
|
+
this.config = e, this.slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ?? La, this.connectionTimeoutMs = e.timeouts?.connectionTimeoutMs ?? va;
|
|
6900
6905
|
const r = [e.local, e.apiKey, e.sessionToken].filter(Boolean).length;
|
|
6901
6906
|
if (r === 0)
|
|
6902
6907
|
throw new Error('IkonClient requires one of: "local", "apiKey", or "sessionToken" configuration');
|
|
6903
6908
|
if (r > 1)
|
|
6904
6909
|
throw new Error('IkonClient accepts only one of: "local", "apiKey", or "sessionToken" configuration');
|
|
6905
|
-
this.endpointSelector = new
|
|
6910
|
+
this.endpointSelector = new Rl({
|
|
6906
6911
|
local: e.local
|
|
6907
|
-
}), this._functionRegistry = new
|
|
6912
|
+
}), this._functionRegistry = new Vc(), nt() && !e.disableBrowserFunctions && (this.unregisterBrowserFunctions = Fc(this._functionRegistry));
|
|
6908
6913
|
const n = e.audio ? {
|
|
6909
6914
|
performance: e.audio.performance,
|
|
6910
6915
|
background: e.audio.background,
|
|
6911
6916
|
diagnostics: e.audio.diagnostics
|
|
6912
6917
|
} : void 0, s = e.video ? { performance: e.video.performance } : void 0;
|
|
6913
|
-
this._media = new
|
|
6918
|
+
this._media = new dl(this, { audio: n, video: s, mediaSession: e.mediaSession }), this._media.audio.setEnabled(!0), this._media.video.setEnabled(!0), nt() && (this._mediaCapture = new bl(this, {
|
|
6914
6919
|
audio: {
|
|
6915
6920
|
performance: {
|
|
6916
6921
|
preferWebCodecs: e.audio?.performance?.preferWebCodecs
|
|
6917
6922
|
}
|
|
6918
6923
|
}
|
|
6919
|
-
}), this.unregisterMediaCaptureFunctions =
|
|
6924
|
+
}), this.unregisterMediaCaptureFunctions = jc(this._functionRegistry, this));
|
|
6920
6925
|
}
|
|
6921
6926
|
_lastError = void 0;
|
|
6922
6927
|
/**
|
|
@@ -7157,11 +7162,11 @@ class Kl {
|
|
|
7157
7162
|
async authenticate() {
|
|
7158
7163
|
const e = this.abortController?.signal;
|
|
7159
7164
|
if (this.config.local)
|
|
7160
|
-
return
|
|
7165
|
+
return Ha(this.config.local, e);
|
|
7161
7166
|
if (this.config.apiKey)
|
|
7162
|
-
return
|
|
7167
|
+
return $a(this.config.apiKey, e);
|
|
7163
7168
|
if (this.config.sessionToken)
|
|
7164
|
-
return
|
|
7169
|
+
return Ka(this.config.sessionToken, e);
|
|
7165
7170
|
throw new Error("No connection configuration provided (need local, apiKey, or sessionToken)");
|
|
7166
7171
|
}
|
|
7167
7172
|
/**
|
|
@@ -7175,7 +7180,7 @@ class Kl {
|
|
|
7175
7180
|
}
|
|
7176
7181
|
if (r === T.CORE_GLOBAL_STATE)
|
|
7177
7182
|
try {
|
|
7178
|
-
this._globalState =
|
|
7183
|
+
this._globalState = Lo(e), this._globalStateReceived || (this._globalStateReceived = !0, this.tryHandleJoined());
|
|
7179
7184
|
} catch (s) {
|
|
7180
7185
|
A.error("Failed to parse GlobalState:", s);
|
|
7181
7186
|
}
|
|
@@ -7263,7 +7268,7 @@ class Kl {
|
|
|
7263
7268
|
}
|
|
7264
7269
|
let r;
|
|
7265
7270
|
try {
|
|
7266
|
-
r = new
|
|
7271
|
+
r = new Aa();
|
|
7267
7272
|
} catch (c) {
|
|
7268
7273
|
A.warn(`Failed to create protocol worker, falling back to main thread: ${c}`), await this.connectProtocolOnMainThread(e);
|
|
7269
7274
|
return;
|
|
@@ -7310,7 +7315,7 @@ class Kl {
|
|
|
7310
7315
|
}
|
|
7311
7316
|
}
|
|
7312
7317
|
async connectProtocolOnMainThread(e) {
|
|
7313
|
-
this.workerManagerState = null, this.protocolWorker = null, this.channelManager = new
|
|
7318
|
+
this.workerManagerState = null, this.protocolWorker = null, this.channelManager = new Oa({
|
|
7314
7319
|
sessionId: this._sessionId,
|
|
7315
7320
|
keepaliveTimeoutMs: this.config.timeouts?.keepaliveTimeoutMs ?? qe,
|
|
7316
7321
|
reconnectBackoffMs: this.config.timeouts?.reconnectBackoffMs ?? Ze,
|
|
@@ -7441,121 +7446,121 @@ class Kl {
|
|
|
7441
7446
|
}
|
|
7442
7447
|
}
|
|
7443
7448
|
}
|
|
7444
|
-
function
|
|
7449
|
+
function jl(t) {
|
|
7445
7450
|
return t === "connecting" || t === "connectingSlow" || t === "reconnecting";
|
|
7446
7451
|
}
|
|
7447
|
-
function
|
|
7452
|
+
function zl(t) {
|
|
7448
7453
|
return t === "connected";
|
|
7449
7454
|
}
|
|
7450
|
-
function
|
|
7455
|
+
function Xl(t) {
|
|
7451
7456
|
return t === "offline" || t === "offlineError" || t === "idle";
|
|
7452
7457
|
}
|
|
7453
|
-
function
|
|
7458
|
+
function Jl(t) {
|
|
7454
7459
|
return t === "offlineError";
|
|
7455
7460
|
}
|
|
7456
|
-
const
|
|
7461
|
+
const vr = /* @__PURE__ */ new Map();
|
|
7457
7462
|
for (const [t, e] of Object.entries(T))
|
|
7458
|
-
typeof e == "number" &&
|
|
7459
|
-
function
|
|
7460
|
-
return
|
|
7463
|
+
typeof e == "number" && vr.set(e, t);
|
|
7464
|
+
function Ql(t) {
|
|
7465
|
+
return vr.get(t) ?? `UNKNOWN_${t}`;
|
|
7461
7466
|
}
|
|
7462
7467
|
const Fr = 1e3, Pr = mr.INFO;
|
|
7463
7468
|
let O = [], Ue = Fr, Br = Pr, De = null;
|
|
7464
|
-
function
|
|
7469
|
+
function kl(t) {
|
|
7465
7470
|
t.level < Br || (O.push(t), O.length > Ue && (O = O.slice(-Ue)));
|
|
7466
7471
|
}
|
|
7467
|
-
function
|
|
7468
|
-
Ue = t?.maxBufferSize ?? Fr, Br = t?.minLevel ?? Pr, O = [],
|
|
7472
|
+
function Ul(t) {
|
|
7473
|
+
Ue = t?.maxBufferSize ?? Fr, Br = t?.minLevel ?? Pr, O = [], ga(kl);
|
|
7469
7474
|
}
|
|
7470
|
-
function
|
|
7475
|
+
function ql(t) {
|
|
7471
7476
|
De = t;
|
|
7472
7477
|
}
|
|
7473
|
-
function
|
|
7478
|
+
function Zl() {
|
|
7474
7479
|
return O;
|
|
7475
7480
|
}
|
|
7476
|
-
function
|
|
7481
|
+
function Dl() {
|
|
7477
7482
|
const t = O;
|
|
7478
7483
|
return O = [], t;
|
|
7479
7484
|
}
|
|
7480
|
-
function
|
|
7485
|
+
function eu() {
|
|
7481
7486
|
if (!De || O.length === 0)
|
|
7482
7487
|
return 0;
|
|
7483
|
-
const t =
|
|
7488
|
+
const t = Dl();
|
|
7484
7489
|
return De(t), t.length;
|
|
7485
7490
|
}
|
|
7486
|
-
function
|
|
7491
|
+
function tu() {
|
|
7487
7492
|
O = [];
|
|
7488
7493
|
}
|
|
7489
|
-
function
|
|
7494
|
+
function ru() {
|
|
7490
7495
|
return O.length;
|
|
7491
7496
|
}
|
|
7492
|
-
|
|
7497
|
+
Ul();
|
|
7493
7498
|
export {
|
|
7494
7499
|
y as AuthenticationError,
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7500
|
+
Ma as Channel,
|
|
7501
|
+
Oa as ChannelManager,
|
|
7502
|
+
Ol as ChannelNotFoundError,
|
|
7498
7503
|
X as ClientType,
|
|
7499
7504
|
Ve as ConnectionError,
|
|
7500
7505
|
J as ContextType,
|
|
7501
|
-
|
|
7506
|
+
Rl as EndpointSelector,
|
|
7502
7507
|
k as EntrypointType,
|
|
7503
|
-
|
|
7504
|
-
|
|
7508
|
+
Vc as FunctionRegistry,
|
|
7509
|
+
Vl as IKON_AUTH_BASE_URL,
|
|
7505
7510
|
rt as IKON_AUTH_URL_DEV,
|
|
7506
7511
|
tt as IKON_AUTH_URL_PROD,
|
|
7507
7512
|
Ee as IKON_BACKEND_URL_DEV,
|
|
7508
7513
|
be as IKON_BACKEND_URL_PROD,
|
|
7509
|
-
|
|
7514
|
+
_l as IkonAudioCapture,
|
|
7510
7515
|
je as IkonAudioPlayback,
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7516
|
+
Yl as IkonClient,
|
|
7517
|
+
Al as IkonImageCapture,
|
|
7518
|
+
dl as IkonMedia,
|
|
7519
|
+
bl as IkonMediaCapture,
|
|
7520
|
+
Cl as IkonVideoCapture,
|
|
7521
|
+
hl as IkonVideoPlayback,
|
|
7517
7522
|
We as KeepaliveTimeoutError,
|
|
7518
7523
|
mr as LogLevel,
|
|
7519
|
-
|
|
7524
|
+
ya as MaxRetriesExceededError,
|
|
7520
7525
|
vl as NoChannelsError,
|
|
7521
7526
|
T as Opcode,
|
|
7522
|
-
|
|
7523
|
-
|
|
7527
|
+
Na as ProvisioningTimeoutError,
|
|
7528
|
+
Ll as SpaceNotFoundError,
|
|
7524
7529
|
W as TransportError,
|
|
7525
7530
|
q as UserType,
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7531
|
+
Ml as asProtocolMessage,
|
|
7532
|
+
xl as clearDeviceId,
|
|
7533
|
+
tu as clearLogBuffer,
|
|
7534
|
+
L as createLogger,
|
|
7535
|
+
$l as deriveAuthUrl,
|
|
7536
|
+
Hl as deriveBackendType,
|
|
7537
|
+
Wl as deriveBackendUrl,
|
|
7538
|
+
Gl as extractUserIdFromToken,
|
|
7539
|
+
eu as flushLogs,
|
|
7540
|
+
Zl as getBufferedLogs,
|
|
7541
|
+
ru as getLogBufferSize,
|
|
7542
|
+
Pl as getLogLevel,
|
|
7543
|
+
Bl as getLogSink,
|
|
7544
|
+
Ql as getOpcodeName,
|
|
7540
7545
|
$e as getOrCreateDeviceId,
|
|
7541
|
-
|
|
7546
|
+
Ul as initializeLogSink,
|
|
7542
7547
|
Rr as isAudioWorkletSupported,
|
|
7543
7548
|
nt as isBrowserEnvironment,
|
|
7544
7549
|
Ke as isCloudEnvironment,
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7550
|
+
zl as isConnected,
|
|
7551
|
+
jl as isConnecting,
|
|
7552
|
+
Jl as isError,
|
|
7553
|
+
Xl as isOffline,
|
|
7549
7554
|
le as isSharedArrayBufferSupported,
|
|
7550
7555
|
Ir as isWebTransportSupported,
|
|
7551
|
-
|
|
7556
|
+
Kl as parseUrlParams,
|
|
7552
7557
|
ue as readOpcode,
|
|
7553
7558
|
ce as readOpcodeGroup,
|
|
7554
7559
|
ne as readProtocolMessageHeaders,
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7560
|
+
Fc as registerBrowserFunctions,
|
|
7561
|
+
Fl as setLogLevel,
|
|
7562
|
+
ga as setLogSink,
|
|
7563
|
+
ql as setSendLogsCallback,
|
|
7564
|
+
Dl as takeBufferedLogs,
|
|
7565
|
+
Wc as withResultData
|
|
7561
7566
|
};
|