@ikonai/sdk-ui 1.0.19 → 1.0.21
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/assets/{ui-worker-9tm_v9mw.js → ui-worker-BIfzqCdM.js} +353 -348
- package/index.js +1165 -1160
- package/package.json +1 -1
|
@@ -97,7 +97,7 @@ class L {
|
|
|
97
97
|
return new ae(s, r, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
class
|
|
100
|
+
class U {
|
|
101
101
|
constructor(s, e) {
|
|
102
102
|
this.type = s, this.payload = e;
|
|
103
103
|
}
|
|
@@ -190,7 +190,7 @@ class R {
|
|
|
190
190
|
throw new Error(`Teleport value has type ${F[this.type]}, expected ${F[s]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class ae extends
|
|
193
|
+
class ae extends U {
|
|
194
194
|
constructor(s, e, r) {
|
|
195
195
|
super(e, r), this.fieldId = s;
|
|
196
196
|
}
|
|
@@ -266,7 +266,7 @@ class st {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
class M extends
|
|
269
|
+
class M extends U {
|
|
270
270
|
constructor(s, e) {
|
|
271
271
|
super(s, e);
|
|
272
272
|
}
|
|
@@ -304,13 +304,13 @@ class rt {
|
|
|
304
304
|
if (s >= 0) {
|
|
305
305
|
d(this.payload, this.offset, s);
|
|
306
306
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
307
|
-
return this.offset += s, new
|
|
307
|
+
return this.offset += s, new U(this.keyType, e);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
310
|
const e = { offset: this.offset }, r = w(this.payload, e, "DictMalformed");
|
|
311
311
|
d(this.payload, e.offset, r);
|
|
312
312
|
const n = this.payload.subarray(e.offset, e.offset + r);
|
|
313
|
-
return this.offset = e.offset + r, new
|
|
313
|
+
return this.offset = e.offset + r, new U(this.keyType, n);
|
|
314
314
|
}
|
|
315
315
|
throw new Error("Unsupported dictionary key type");
|
|
316
316
|
}
|
|
@@ -321,21 +321,21 @@ class rt {
|
|
|
321
321
|
const s = { offset: this.offset }, e = w(this.payload, s, "DictMalformed");
|
|
322
322
|
d(this.payload, s.offset, e);
|
|
323
323
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
324
|
-
return this.offset = s.offset + e, new
|
|
324
|
+
return this.offset = s.offset + e, new U(this.valueType, r);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
327
|
const s = { offset: this.offset }, e = w(this.payload, s, "DictMalformed");
|
|
328
328
|
d(this.payload, s.offset, e);
|
|
329
329
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
330
|
-
return this.offset = s.offset + e, new
|
|
330
|
+
return this.offset = s.offset + e, new U(11, r);
|
|
331
331
|
}
|
|
332
332
|
case 9: {
|
|
333
333
|
const s = nt(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + s);
|
|
334
|
-
return this.offset += s, new
|
|
334
|
+
return this.offset += s, new U(9, e);
|
|
335
335
|
}
|
|
336
336
|
case 10: {
|
|
337
337
|
const s = it(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + s);
|
|
338
|
-
return this.offset += s, new
|
|
338
|
+
return this.offset += s, new U(10, e);
|
|
339
339
|
}
|
|
340
340
|
case 3:
|
|
341
341
|
case 5:
|
|
@@ -349,7 +349,7 @@ class rt {
|
|
|
349
349
|
const s = p(this.valueType);
|
|
350
350
|
d(this.payload, this.offset, s);
|
|
351
351
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
352
|
-
return this.offset += s, new
|
|
352
|
+
return this.offset += s, new U(this.valueType, e);
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
355
|
throw new Error(`Unsupported dictionary value type ${F[this.valueType]}`);
|
|
@@ -604,19 +604,19 @@ function Ce(t) {
|
|
|
604
604
|
const s = [];
|
|
605
605
|
let e;
|
|
606
606
|
for (; (e = t.next()) !== null; )
|
|
607
|
-
s.push(
|
|
607
|
+
s.push(Re(e.asObject()));
|
|
608
608
|
return s;
|
|
609
609
|
}
|
|
610
610
|
const ye = 1107713536, we = 1154362099, De = 1185721362;
|
|
611
|
-
function
|
|
611
|
+
function Ue(t) {
|
|
612
612
|
const s = {};
|
|
613
613
|
return wt(s), s;
|
|
614
614
|
}
|
|
615
615
|
function wt(t) {
|
|
616
616
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
const e = s ??
|
|
618
|
+
function Re(t, s) {
|
|
619
|
+
const e = s ?? Ue();
|
|
620
620
|
return wt(e), me(t, e), e;
|
|
621
621
|
}
|
|
622
622
|
function me(t, s) {
|
|
@@ -647,19 +647,19 @@ function Le(t) {
|
|
|
647
647
|
s.push(e.asString());
|
|
648
648
|
return s;
|
|
649
649
|
}
|
|
650
|
-
const Oe = 76337612, ge = 185396121, Pe =
|
|
651
|
-
function
|
|
650
|
+
const Oe = 76337612, ge = 185396121, Pe = 227309410, be = 250031587, Fe = 388632637, pe = 417197284, ve = 469070965, Me = 470595159, ke = 781727218, Ve = 834078886, Ge = 1043273762, Be = 1236999138, xe = 1286979607, He = 1368629611, Ye = 1715899485, $e = 1942830531, Ke = 1999510636, Xe = 2033288346, je = 2079864626, We = 2142346422, ze = 2232517119, Je = 2598291686, qe = 2719718823, Qe = 2810953526, Ze = 2840065720, ts = 2885165957, es = 3542818975, ss = 3586157513, rs = 3717933110, ns = 4062655306;
|
|
651
|
+
function is(t) {
|
|
652
652
|
const s = {};
|
|
653
653
|
return Dt(s), s;
|
|
654
654
|
}
|
|
655
655
|
function Dt(t) {
|
|
656
|
-
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ht.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = At.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t;
|
|
657
|
-
}
|
|
658
|
-
function is(t, s) {
|
|
659
|
-
const e = s ?? ns();
|
|
660
|
-
return Dt(e), os(t, e), e;
|
|
656
|
+
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ht.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = At.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialUrl = "", t;
|
|
661
657
|
}
|
|
662
658
|
function os(t, s) {
|
|
659
|
+
const e = s ?? is();
|
|
660
|
+
return Dt(e), as(t, e), e;
|
|
661
|
+
}
|
|
662
|
+
function as(t, s) {
|
|
663
663
|
let e;
|
|
664
664
|
for (; (e = t.next()) !== null; )
|
|
665
665
|
switch (e.fieldId) {
|
|
@@ -675,142 +675,147 @@ function os(t, s) {
|
|
|
675
675
|
}
|
|
676
676
|
case Pe: {
|
|
677
677
|
if (e.isNull) throw new Error();
|
|
678
|
-
s.
|
|
678
|
+
s.InitialUrl = e.asString();
|
|
679
679
|
break;
|
|
680
680
|
}
|
|
681
681
|
case be: {
|
|
682
682
|
if (e.isNull) throw new Error();
|
|
683
|
-
s.
|
|
683
|
+
s.Theme = e.asString();
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
686
|
case Fe: {
|
|
687
687
|
if (e.isNull) throw new Error();
|
|
688
|
-
s.
|
|
688
|
+
s.UserAgent = e.asString();
|
|
689
689
|
break;
|
|
690
690
|
}
|
|
691
691
|
case pe: {
|
|
692
692
|
if (e.isNull) throw new Error();
|
|
693
|
-
s.
|
|
693
|
+
s.ContextType = e.asInt32();
|
|
694
694
|
break;
|
|
695
695
|
}
|
|
696
696
|
case ve: {
|
|
697
697
|
if (e.isNull) throw new Error();
|
|
698
|
-
s.
|
|
698
|
+
s.HasInput = e.asBool();
|
|
699
699
|
break;
|
|
700
700
|
}
|
|
701
701
|
case Me: {
|
|
702
702
|
if (e.isNull) throw new Error();
|
|
703
|
-
s.
|
|
703
|
+
s.UserType = e.asInt32();
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
706
|
case ke: {
|
|
707
707
|
if (e.isNull) throw new Error();
|
|
708
|
-
s.
|
|
708
|
+
s.UserId = e.asString();
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
711
711
|
case Ve: {
|
|
712
712
|
if (e.isNull) throw new Error();
|
|
713
|
-
s.
|
|
713
|
+
s.ProductId = e.asString();
|
|
714
714
|
break;
|
|
715
715
|
}
|
|
716
716
|
case Ge: {
|
|
717
717
|
if (e.isNull) throw new Error();
|
|
718
|
-
s.
|
|
718
|
+
s.AuthSessionId = e.asString();
|
|
719
719
|
break;
|
|
720
720
|
}
|
|
721
721
|
case Be: {
|
|
722
722
|
if (e.isNull) throw new Error();
|
|
723
|
-
s.
|
|
723
|
+
s.ReceiveAllMessages = e.asBool();
|
|
724
724
|
break;
|
|
725
725
|
}
|
|
726
726
|
case xe: {
|
|
727
727
|
if (e.isNull) throw new Error();
|
|
728
|
-
s.
|
|
728
|
+
s.ViewportHeight = e.asInt32();
|
|
729
729
|
break;
|
|
730
730
|
}
|
|
731
731
|
case He: {
|
|
732
732
|
if (e.isNull) throw new Error();
|
|
733
|
-
s.
|
|
733
|
+
s.Description = e.asString();
|
|
734
734
|
break;
|
|
735
735
|
}
|
|
736
736
|
case Ye: {
|
|
737
737
|
if (e.isNull) throw new Error();
|
|
738
|
-
s.
|
|
738
|
+
s.Locale = e.asString();
|
|
739
739
|
break;
|
|
740
740
|
}
|
|
741
741
|
case $e: {
|
|
742
742
|
if (e.isNull) throw new Error();
|
|
743
|
-
s.
|
|
743
|
+
s.SdkType = e.asInt32();
|
|
744
744
|
break;
|
|
745
745
|
}
|
|
746
746
|
case Ke: {
|
|
747
747
|
if (e.isNull) throw new Error();
|
|
748
|
-
s.
|
|
748
|
+
s.SessionId = e.asInt32();
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
751
751
|
case Xe: {
|
|
752
752
|
if (e.isNull) throw new Error();
|
|
753
|
-
s.
|
|
753
|
+
s.ViewportWidth = e.asInt32();
|
|
754
754
|
break;
|
|
755
755
|
}
|
|
756
756
|
case je: {
|
|
757
757
|
if (e.isNull) throw new Error();
|
|
758
|
-
s.
|
|
758
|
+
s.PreciseJoinedAt = e.asUInt64();
|
|
759
759
|
break;
|
|
760
760
|
}
|
|
761
761
|
case We: {
|
|
762
762
|
if (e.isNull) throw new Error();
|
|
763
|
-
s.
|
|
763
|
+
s.PayloadType = e.asInt32();
|
|
764
764
|
break;
|
|
765
765
|
}
|
|
766
766
|
case ze: {
|
|
767
767
|
if (e.isNull) throw new Error();
|
|
768
|
-
s.
|
|
768
|
+
s.IsTouchDevice = e.asBool();
|
|
769
769
|
break;
|
|
770
770
|
}
|
|
771
771
|
case Je: {
|
|
772
772
|
if (e.isNull) throw new Error();
|
|
773
|
-
s.
|
|
773
|
+
s.VersionId = e.asString();
|
|
774
774
|
break;
|
|
775
775
|
}
|
|
776
776
|
case qe: {
|
|
777
777
|
if (e.isNull) throw new Error();
|
|
778
|
-
s.
|
|
778
|
+
s.UniqueSessionId = e.asString();
|
|
779
779
|
break;
|
|
780
780
|
}
|
|
781
781
|
case Qe: {
|
|
782
782
|
if (e.isNull) throw new Error();
|
|
783
|
-
s.
|
|
783
|
+
s.ClientType = e.asInt32();
|
|
784
784
|
break;
|
|
785
785
|
}
|
|
786
786
|
case Ze: {
|
|
787
787
|
if (e.isNull) throw new Error();
|
|
788
|
-
s.
|
|
788
|
+
s.IsReady = e.asBool();
|
|
789
789
|
break;
|
|
790
790
|
}
|
|
791
791
|
case ts: {
|
|
792
792
|
if (e.isNull) throw new Error();
|
|
793
|
-
s.
|
|
793
|
+
s.Parameters = ls(e.asDictionary());
|
|
794
794
|
break;
|
|
795
795
|
}
|
|
796
796
|
case es: {
|
|
797
797
|
if (e.isNull) throw new Error();
|
|
798
|
-
s.
|
|
798
|
+
s.Timezone = e.asString();
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
801
|
case ss: {
|
|
802
802
|
if (e.isNull) throw new Error();
|
|
803
|
-
s.
|
|
803
|
+
s.IsInternal = e.asBool();
|
|
804
804
|
break;
|
|
805
805
|
}
|
|
806
806
|
case rs: {
|
|
807
|
+
if (e.isNull) throw new Error();
|
|
808
|
+
s.ChannelLocale = e.asString();
|
|
809
|
+
break;
|
|
810
|
+
}
|
|
811
|
+
case ns: {
|
|
807
812
|
if (e.isNull) throw new Error();
|
|
808
813
|
s.EmbeddedSpaceId = e.asString();
|
|
809
814
|
break;
|
|
810
815
|
}
|
|
811
816
|
}
|
|
812
817
|
}
|
|
813
|
-
function
|
|
818
|
+
function ls(t) {
|
|
814
819
|
const s = /* @__PURE__ */ Object.create(null);
|
|
815
820
|
let e;
|
|
816
821
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -819,111 +824,111 @@ function as(t) {
|
|
|
819
824
|
}
|
|
820
825
|
return s;
|
|
821
826
|
}
|
|
822
|
-
const
|
|
823
|
-
function
|
|
827
|
+
const Is = 703025676, cs = 814454131, Es = 972460562, _s = 976255570, fs = 1368629611, hs = 1479280922, us = 1533537016, Ts = 1909301063, Ns = 2274386296, As = 2603556958, Ss = 2885165957, ds = 3568439632;
|
|
828
|
+
function Cs(t) {
|
|
824
829
|
const s = {};
|
|
825
|
-
return
|
|
830
|
+
return Ut(s), s;
|
|
826
831
|
}
|
|
827
|
-
function
|
|
832
|
+
function Ut(t) {
|
|
828
833
|
return t.FunctionId = T.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t.Versions = [], t;
|
|
829
834
|
}
|
|
830
|
-
function Cs(t, s) {
|
|
831
|
-
const e = s ?? ds();
|
|
832
|
-
return Rt(e), ys(t, e), e;
|
|
833
|
-
}
|
|
834
835
|
function ys(t, s) {
|
|
836
|
+
const e = s ?? Cs();
|
|
837
|
+
return Ut(e), ws(t, e), e;
|
|
838
|
+
}
|
|
839
|
+
function ws(t, s) {
|
|
835
840
|
let e;
|
|
836
841
|
for (; (e = t.next()) !== null; )
|
|
837
842
|
switch (e.fieldId) {
|
|
838
|
-
case
|
|
843
|
+
case Is: {
|
|
839
844
|
if (e.isNull) throw new Error();
|
|
840
845
|
s.ResultTypeName = e.asString();
|
|
841
846
|
break;
|
|
842
847
|
}
|
|
843
|
-
case
|
|
848
|
+
case cs: {
|
|
844
849
|
if (e.isNull) throw new Error();
|
|
845
850
|
s.FunctionName = e.asString();
|
|
846
851
|
break;
|
|
847
852
|
}
|
|
848
|
-
case
|
|
853
|
+
case Es: {
|
|
849
854
|
if (e.isNull) throw new Error();
|
|
850
855
|
s.EnumerableItemTypeName = e.asString();
|
|
851
856
|
break;
|
|
852
857
|
}
|
|
853
|
-
case
|
|
858
|
+
case _s: {
|
|
854
859
|
if (e.isNull) throw new Error();
|
|
855
860
|
s.FunctionId = e.asGuid();
|
|
856
861
|
break;
|
|
857
862
|
}
|
|
858
|
-
case
|
|
863
|
+
case fs: {
|
|
859
864
|
if (e.isNull) throw new Error();
|
|
860
865
|
s.Description = e.asString();
|
|
861
866
|
break;
|
|
862
867
|
}
|
|
863
|
-
case
|
|
868
|
+
case hs: {
|
|
864
869
|
if (e.isNull) throw new Error();
|
|
865
870
|
s.IsCancellable = e.asBool();
|
|
866
871
|
break;
|
|
867
872
|
}
|
|
868
|
-
case
|
|
873
|
+
case us: {
|
|
869
874
|
if (e.isNull) throw new Error();
|
|
870
875
|
s.RequiresInstance = e.asBool();
|
|
871
876
|
break;
|
|
872
877
|
}
|
|
873
|
-
case
|
|
878
|
+
case Ts: {
|
|
874
879
|
if (e.isNull) throw new Error();
|
|
875
|
-
s.Versions =
|
|
880
|
+
s.Versions = Ds(e.asArray());
|
|
876
881
|
break;
|
|
877
882
|
}
|
|
878
|
-
case
|
|
883
|
+
case Ns: {
|
|
879
884
|
if (e.isNull) throw new Error();
|
|
880
885
|
s.LlmInlineResult = e.asBool();
|
|
881
886
|
break;
|
|
882
887
|
}
|
|
883
|
-
case
|
|
888
|
+
case As: {
|
|
884
889
|
if (e.isNull) throw new Error();
|
|
885
890
|
s.IsEnumerable = e.asBool();
|
|
886
891
|
break;
|
|
887
892
|
}
|
|
888
|
-
case
|
|
893
|
+
case Ss: {
|
|
889
894
|
if (e.isNull) throw new Error();
|
|
890
|
-
s.Parameters =
|
|
895
|
+
s.Parameters = Us(e.asArray());
|
|
891
896
|
break;
|
|
892
897
|
}
|
|
893
|
-
case
|
|
898
|
+
case ds: {
|
|
894
899
|
if (e.isNull) throw new Error();
|
|
895
900
|
s.LlmCallOnlyOnce = e.asBool();
|
|
896
901
|
break;
|
|
897
902
|
}
|
|
898
903
|
}
|
|
899
904
|
}
|
|
900
|
-
function
|
|
905
|
+
function Ds(t) {
|
|
901
906
|
const s = [];
|
|
902
907
|
let e;
|
|
903
908
|
for (; (e = t.next()) !== null; )
|
|
904
909
|
s.push(e.asString());
|
|
905
910
|
return s;
|
|
906
911
|
}
|
|
907
|
-
function
|
|
912
|
+
function Us(t) {
|
|
908
913
|
const s = [];
|
|
909
914
|
let e;
|
|
910
915
|
for (; (e = t.next()) !== null; )
|
|
911
|
-
s.push(
|
|
916
|
+
s.push(Ms(e.asObject()));
|
|
912
917
|
return s;
|
|
913
918
|
}
|
|
914
|
-
const Rs = 607861992,
|
|
915
|
-
function
|
|
919
|
+
const Rs = 607861992, ms = 894485888, Ls = 972460562, Os = 1368629611, gs = 1883521406, Ps = 2603556958, bs = 3609695522, Fs = 4075263697, ps = 4257460908;
|
|
920
|
+
function vs(t) {
|
|
916
921
|
const s = {};
|
|
917
|
-
return
|
|
922
|
+
return Rt(s), s;
|
|
918
923
|
}
|
|
919
|
-
function
|
|
924
|
+
function Rt(t) {
|
|
920
925
|
return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
|
|
921
926
|
}
|
|
922
|
-
function vs(t, s) {
|
|
923
|
-
const e = s ?? ps();
|
|
924
|
-
return Ut(e), Ms(t, e), e;
|
|
925
|
-
}
|
|
926
927
|
function Ms(t, s) {
|
|
928
|
+
const e = s ?? vs();
|
|
929
|
+
return Rt(e), ks(t, e), e;
|
|
930
|
+
}
|
|
931
|
+
function ks(t, s) {
|
|
927
932
|
let e;
|
|
928
933
|
for (; (e = t.next()) !== null; )
|
|
929
934
|
switch (e.fieldId) {
|
|
@@ -932,49 +937,49 @@ function Ms(t, s) {
|
|
|
932
937
|
s.HasDefaultValue = e.asBool();
|
|
933
938
|
break;
|
|
934
939
|
}
|
|
935
|
-
case
|
|
940
|
+
case ms: {
|
|
936
941
|
if (e.isNull) throw new Error();
|
|
937
942
|
s.DefaultValueJson = e.asString();
|
|
938
943
|
break;
|
|
939
944
|
}
|
|
940
|
-
case
|
|
945
|
+
case Ls: {
|
|
941
946
|
if (e.isNull) throw new Error();
|
|
942
947
|
s.EnumerableItemTypeName = e.asString();
|
|
943
948
|
break;
|
|
944
949
|
}
|
|
945
|
-
case
|
|
950
|
+
case Os: {
|
|
946
951
|
if (e.isNull) throw new Error();
|
|
947
952
|
s.Description = e.asString();
|
|
948
953
|
break;
|
|
949
954
|
}
|
|
950
|
-
case
|
|
955
|
+
case gs: {
|
|
951
956
|
if (e.isNull) throw new Error();
|
|
952
957
|
s.DefaultValueData = e.asBinary();
|
|
953
958
|
break;
|
|
954
959
|
}
|
|
955
|
-
case
|
|
960
|
+
case Ps: {
|
|
956
961
|
if (e.isNull) throw new Error();
|
|
957
962
|
s.IsEnumerable = e.asBool();
|
|
958
963
|
break;
|
|
959
964
|
}
|
|
960
|
-
case
|
|
965
|
+
case bs: {
|
|
961
966
|
if (e.isNull) throw new Error();
|
|
962
967
|
s.TypeName = e.asString();
|
|
963
968
|
break;
|
|
964
969
|
}
|
|
965
|
-
case
|
|
970
|
+
case Fs: {
|
|
966
971
|
if (e.isNull) throw new Error();
|
|
967
972
|
s.ParameterName = e.asString();
|
|
968
973
|
break;
|
|
969
974
|
}
|
|
970
|
-
case
|
|
975
|
+
case ps: {
|
|
971
976
|
if (e.isNull) throw new Error();
|
|
972
977
|
s.ParameterIndex = e.asInt32();
|
|
973
978
|
break;
|
|
974
979
|
}
|
|
975
980
|
}
|
|
976
981
|
}
|
|
977
|
-
const
|
|
982
|
+
const Vs = 3167053791, Gs = 3342364356, Bs = 3612929027;
|
|
978
983
|
function mt(t) {
|
|
979
984
|
const s = {};
|
|
980
985
|
return Lt(s), s;
|
|
@@ -982,39 +987,39 @@ function mt(t) {
|
|
|
982
987
|
function Lt(t) {
|
|
983
988
|
return t.Category = "", t.Type = ut.Face, t.FaceBlendshapes = [], t;
|
|
984
989
|
}
|
|
985
|
-
function
|
|
990
|
+
function xs(t, s) {
|
|
986
991
|
const e = s ?? mt();
|
|
987
|
-
return Lt(e),
|
|
992
|
+
return Lt(e), Hs(t, e), e;
|
|
988
993
|
}
|
|
989
|
-
function
|
|
994
|
+
function Hs(t, s) {
|
|
990
995
|
let e;
|
|
991
996
|
for (; (e = t.next()) !== null; )
|
|
992
997
|
switch (e.fieldId) {
|
|
993
|
-
case
|
|
998
|
+
case Vs: {
|
|
994
999
|
if (e.isNull) throw new Error();
|
|
995
1000
|
s.Type = e.asInt32();
|
|
996
1001
|
break;
|
|
997
1002
|
}
|
|
998
|
-
case
|
|
1003
|
+
case Gs: {
|
|
999
1004
|
if (e.isNull) throw new Error();
|
|
1000
|
-
s.FaceBlendshapes =
|
|
1005
|
+
s.FaceBlendshapes = Ys(e.asArray());
|
|
1001
1006
|
break;
|
|
1002
1007
|
}
|
|
1003
|
-
case
|
|
1008
|
+
case Bs: {
|
|
1004
1009
|
if (e.isNull) throw new Error();
|
|
1005
1010
|
s.Category = e.asString();
|
|
1006
1011
|
break;
|
|
1007
1012
|
}
|
|
1008
1013
|
}
|
|
1009
1014
|
}
|
|
1010
|
-
function
|
|
1015
|
+
function Ys(t) {
|
|
1011
1016
|
const s = [];
|
|
1012
1017
|
let e;
|
|
1013
1018
|
for (; (e = t.next()) !== null; )
|
|
1014
1019
|
s.push(e.asString());
|
|
1015
1020
|
return s;
|
|
1016
1021
|
}
|
|
1017
|
-
const
|
|
1022
|
+
const $s = 3612929027;
|
|
1018
1023
|
function Ot(t) {
|
|
1019
1024
|
const s = {};
|
|
1020
1025
|
return gt(s), s;
|
|
@@ -1022,22 +1027,22 @@ function Ot(t) {
|
|
|
1022
1027
|
function gt(t) {
|
|
1023
1028
|
return t.Category = "", t;
|
|
1024
1029
|
}
|
|
1025
|
-
function
|
|
1030
|
+
function Ks(t, s) {
|
|
1026
1031
|
const e = s ?? Ot();
|
|
1027
|
-
return gt(e),
|
|
1032
|
+
return gt(e), Xs(t, e), e;
|
|
1028
1033
|
}
|
|
1029
|
-
function
|
|
1034
|
+
function Xs(t, s) {
|
|
1030
1035
|
let e;
|
|
1031
1036
|
for (; (e = t.next()) !== null; )
|
|
1032
1037
|
switch (e.fieldId) {
|
|
1033
|
-
case
|
|
1038
|
+
case $s: {
|
|
1034
1039
|
if (e.isNull) throw new Error();
|
|
1035
1040
|
s.Category = e.asString();
|
|
1036
1041
|
break;
|
|
1037
1042
|
}
|
|
1038
1043
|
}
|
|
1039
1044
|
}
|
|
1040
|
-
const
|
|
1045
|
+
const js = 161083277, Ws = 164808083, zs = 1368629611, Js = 2745379226, qs = 2950031986, Qs = 3282782683, Zs = 3284746250, tr = 4065070594;
|
|
1041
1046
|
function Pt(t) {
|
|
1042
1047
|
const s = {};
|
|
1043
1048
|
return bt(s), s;
|
|
@@ -1045,460 +1050,460 @@ function Pt(t) {
|
|
|
1045
1050
|
function bt(t) {
|
|
1046
1051
|
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Nt.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t;
|
|
1047
1052
|
}
|
|
1048
|
-
function
|
|
1053
|
+
function er(t, s) {
|
|
1049
1054
|
const e = s ?? Pt();
|
|
1050
|
-
return bt(e),
|
|
1055
|
+
return bt(e), sr(t, e), e;
|
|
1051
1056
|
}
|
|
1052
|
-
function
|
|
1057
|
+
function sr(t, s) {
|
|
1053
1058
|
let e;
|
|
1054
1059
|
for (; (e = t.next()) !== null; )
|
|
1055
1060
|
switch (e.fieldId) {
|
|
1056
|
-
case
|
|
1061
|
+
case js: {
|
|
1057
1062
|
if (e.isNull) throw new Error();
|
|
1058
1063
|
s.StreamId = e.asString();
|
|
1059
1064
|
break;
|
|
1060
1065
|
}
|
|
1061
|
-
case
|
|
1066
|
+
case Ws: {
|
|
1062
1067
|
if (e.isNull) throw new Error();
|
|
1063
1068
|
s.Framerate = e.asFloat64();
|
|
1064
1069
|
break;
|
|
1065
1070
|
}
|
|
1066
|
-
case
|
|
1071
|
+
case zs: {
|
|
1067
1072
|
if (e.isNull) throw new Error();
|
|
1068
1073
|
s.Description = e.asString();
|
|
1069
1074
|
break;
|
|
1070
1075
|
}
|
|
1071
|
-
case
|
|
1076
|
+
case Js: {
|
|
1072
1077
|
if (e.isNull) throw new Error();
|
|
1073
1078
|
s.CodecDetails = e.asString();
|
|
1074
1079
|
break;
|
|
1075
1080
|
}
|
|
1076
|
-
case
|
|
1081
|
+
case qs: {
|
|
1077
1082
|
if (e.isNull) throw new Error();
|
|
1078
1083
|
s.Height = e.asInt32();
|
|
1079
1084
|
break;
|
|
1080
1085
|
}
|
|
1081
|
-
case
|
|
1086
|
+
case Qs: {
|
|
1082
1087
|
if (e.isNull) throw new Error();
|
|
1083
1088
|
s.SourceType = e.asString();
|
|
1084
1089
|
break;
|
|
1085
1090
|
}
|
|
1086
|
-
case
|
|
1091
|
+
case Zs: {
|
|
1087
1092
|
if (e.isNull) throw new Error();
|
|
1088
1093
|
s.Codec = e.asInt32();
|
|
1089
1094
|
break;
|
|
1090
1095
|
}
|
|
1091
|
-
case
|
|
1096
|
+
case tr: {
|
|
1092
1097
|
if (e.isNull) throw new Error();
|
|
1093
1098
|
s.Width = e.asInt32();
|
|
1094
1099
|
break;
|
|
1095
1100
|
}
|
|
1096
1101
|
}
|
|
1097
1102
|
}
|
|
1098
|
-
const
|
|
1099
|
-
function
|
|
1103
|
+
const rr = 65539, nr = 693643444, ir = 1144553441, or = 1497620243, ar = 1559330978, lr = 1976546434, Ir = 1999510636, cr = 2271236852, Er = 2277643855, _r = 2469008121, fr = 3042922213, hr = 3064612128, ur = 3219210453, Tr = 3504054055, Nr = 3678477544, Ar = 3696445035, Sr = 3707543140, dr = 3712281496, Cr = 3895362455, yr = 3897397815, wr = 4225107827;
|
|
1104
|
+
function Dr(t) {
|
|
1100
1105
|
const s = {};
|
|
1101
1106
|
return Ft(s), s;
|
|
1102
1107
|
}
|
|
1103
1108
|
function Ft(t) {
|
|
1104
1109
|
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__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.ChannelId = "", t.SessionId = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = St.Local, t.AppSourceType = dt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1105
1110
|
}
|
|
1106
|
-
function
|
|
1111
|
+
function Ur(t, s) {
|
|
1107
1112
|
const e = L.create(t);
|
|
1108
1113
|
return Rr(e, s);
|
|
1109
1114
|
}
|
|
1110
1115
|
function Rr(t, s) {
|
|
1111
|
-
const e = s ??
|
|
1112
|
-
return Ft(e),
|
|
1116
|
+
const e = s ?? Dr();
|
|
1117
|
+
return Ft(e), mr(t, e), e;
|
|
1113
1118
|
}
|
|
1114
|
-
function
|
|
1119
|
+
function mr(t, s) {
|
|
1115
1120
|
let e;
|
|
1116
1121
|
for (; (e = t.next()) !== null; )
|
|
1117
1122
|
switch (e.fieldId) {
|
|
1118
|
-
case rr: {
|
|
1119
|
-
if (e.isNull) throw new Error();
|
|
1120
|
-
s.FirstUserId = e.asString();
|
|
1121
|
-
break;
|
|
1122
|
-
}
|
|
1123
1123
|
case nr: {
|
|
1124
1124
|
if (e.isNull) throw new Error();
|
|
1125
|
-
s.
|
|
1125
|
+
s.FirstUserId = e.asString();
|
|
1126
1126
|
break;
|
|
1127
1127
|
}
|
|
1128
1128
|
case ir: {
|
|
1129
1129
|
if (e.isNull) throw new Error();
|
|
1130
|
-
s.
|
|
1130
|
+
s.Clients = Or(e.asDictionary());
|
|
1131
1131
|
break;
|
|
1132
1132
|
}
|
|
1133
1133
|
case or: {
|
|
1134
1134
|
if (e.isNull) throw new Error();
|
|
1135
|
-
s.
|
|
1135
|
+
s.TrackingStreams = gr(e.asDictionary());
|
|
1136
1136
|
break;
|
|
1137
1137
|
}
|
|
1138
1138
|
case ar: {
|
|
1139
1139
|
if (e.isNull) throw new Error();
|
|
1140
|
-
s.
|
|
1140
|
+
s.ChannelId = e.asString();
|
|
1141
1141
|
break;
|
|
1142
1142
|
}
|
|
1143
1143
|
case lr: {
|
|
1144
1144
|
if (e.isNull) throw new Error();
|
|
1145
|
-
s.
|
|
1145
|
+
s.AppSourceType = e.asInt32();
|
|
1146
1146
|
break;
|
|
1147
1147
|
}
|
|
1148
1148
|
case Ir: {
|
|
1149
1149
|
if (e.isNull) throw new Error();
|
|
1150
|
-
s.
|
|
1150
|
+
s.SessionId = e.asString();
|
|
1151
1151
|
break;
|
|
1152
1152
|
}
|
|
1153
1153
|
case cr: {
|
|
1154
1154
|
if (e.isNull) throw new Error();
|
|
1155
|
-
s.
|
|
1155
|
+
s.SessionChannelUrl = e.asString();
|
|
1156
1156
|
break;
|
|
1157
1157
|
}
|
|
1158
1158
|
case Er: {
|
|
1159
1159
|
if (e.isNull) throw new Error();
|
|
1160
|
-
s.
|
|
1160
|
+
s.ChannelUrl = e.asString();
|
|
1161
1161
|
break;
|
|
1162
1162
|
}
|
|
1163
1163
|
case _r: {
|
|
1164
1164
|
if (e.isNull) throw new Error();
|
|
1165
|
-
s.
|
|
1165
|
+
s.ChannelName = e.asString();
|
|
1166
1166
|
break;
|
|
1167
1167
|
}
|
|
1168
1168
|
case fr: {
|
|
1169
1169
|
if (e.isNull) throw new Error();
|
|
1170
|
-
s.
|
|
1170
|
+
s.PublicAccess = e.asBool();
|
|
1171
1171
|
break;
|
|
1172
1172
|
}
|
|
1173
1173
|
case hr: {
|
|
1174
1174
|
if (e.isNull) throw new Error();
|
|
1175
|
-
s.
|
|
1175
|
+
s.ServerRunType = e.asInt32();
|
|
1176
1176
|
break;
|
|
1177
1177
|
}
|
|
1178
1178
|
case ur: {
|
|
1179
1179
|
if (e.isNull) throw new Error();
|
|
1180
|
-
s.
|
|
1180
|
+
s.OrganisationName = e.asString();
|
|
1181
1181
|
break;
|
|
1182
1182
|
}
|
|
1183
1183
|
case Tr: {
|
|
1184
1184
|
if (e.isNull) throw new Error();
|
|
1185
|
-
s.
|
|
1185
|
+
s.DebugMode = e.asBool();
|
|
1186
1186
|
break;
|
|
1187
1187
|
}
|
|
1188
1188
|
case Nr: {
|
|
1189
1189
|
if (e.isNull) throw new Error();
|
|
1190
|
-
s.
|
|
1190
|
+
s.Functions = Pr(e.asDictionary());
|
|
1191
1191
|
break;
|
|
1192
1192
|
}
|
|
1193
1193
|
case Ar: {
|
|
1194
1194
|
if (e.isNull) throw new Error();
|
|
1195
|
-
s.
|
|
1195
|
+
s.UIStreams = br(e.asDictionary());
|
|
1196
1196
|
break;
|
|
1197
1197
|
}
|
|
1198
1198
|
case Sr: {
|
|
1199
1199
|
if (e.isNull) throw new Error();
|
|
1200
|
-
s.
|
|
1200
|
+
s.SpaceId = e.asString();
|
|
1201
1201
|
break;
|
|
1202
1202
|
}
|
|
1203
1203
|
case dr: {
|
|
1204
1204
|
if (e.isNull) throw new Error();
|
|
1205
|
-
s.
|
|
1205
|
+
s.PrimaryUserId = e.asString();
|
|
1206
1206
|
break;
|
|
1207
1207
|
}
|
|
1208
1208
|
case Cr: {
|
|
1209
1209
|
if (e.isNull) throw new Error();
|
|
1210
|
-
s.
|
|
1210
|
+
s.AudioStreams = Fr(e.asDictionary());
|
|
1211
1211
|
break;
|
|
1212
1212
|
}
|
|
1213
1213
|
case yr: {
|
|
1214
|
+
if (e.isNull) throw new Error();
|
|
1215
|
+
s.VideoStreams = pr(e.asDictionary());
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
case wr: {
|
|
1214
1219
|
if (e.isNull) throw new Error();
|
|
1215
1220
|
s.SpaceName = e.asString();
|
|
1216
1221
|
break;
|
|
1217
1222
|
}
|
|
1218
1223
|
}
|
|
1219
1224
|
}
|
|
1220
|
-
async function
|
|
1221
|
-
const e = await $(t,
|
|
1222
|
-
return
|
|
1225
|
+
async function Lr(t, s) {
|
|
1226
|
+
const e = await $(t, rr);
|
|
1227
|
+
return Ur(e, s);
|
|
1223
1228
|
}
|
|
1224
|
-
function
|
|
1229
|
+
function Or(t) {
|
|
1225
1230
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1226
1231
|
let e;
|
|
1227
1232
|
for (; (e = t.next()) !== null; ) {
|
|
1228
1233
|
const r = e.key.asInt32();
|
|
1229
|
-
s[r] =
|
|
1234
|
+
s[r] = os(e.value.asObject());
|
|
1230
1235
|
}
|
|
1231
1236
|
return s;
|
|
1232
1237
|
}
|
|
1233
|
-
function
|
|
1238
|
+
function gr(t) {
|
|
1234
1239
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1235
1240
|
let e;
|
|
1236
1241
|
for (; (e = t.next()) !== null; ) {
|
|
1237
1242
|
const r = e.key.asString();
|
|
1238
|
-
s[r] =
|
|
1243
|
+
s[r] = In(e.value.asObject());
|
|
1239
1244
|
}
|
|
1240
1245
|
return s;
|
|
1241
1246
|
}
|
|
1242
|
-
function
|
|
1247
|
+
function Pr(t) {
|
|
1243
1248
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1244
1249
|
let e;
|
|
1245
1250
|
for (; (e = t.next()) !== null; ) {
|
|
1246
1251
|
const r = e.key.asInt32();
|
|
1247
|
-
s[r] =
|
|
1252
|
+
s[r] = vr(e.value.asArray());
|
|
1248
1253
|
}
|
|
1249
1254
|
return s;
|
|
1250
1255
|
}
|
|
1251
|
-
function
|
|
1256
|
+
function br(t) {
|
|
1252
1257
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1253
1258
|
let e;
|
|
1254
1259
|
for (; (e = t.next()) !== null; ) {
|
|
1255
1260
|
const r = e.key.asString();
|
|
1256
|
-
s[r] =
|
|
1261
|
+
s[r] = xr(e.value.asObject());
|
|
1257
1262
|
}
|
|
1258
1263
|
return s;
|
|
1259
1264
|
}
|
|
1260
|
-
function
|
|
1265
|
+
function Fr(t) {
|
|
1261
1266
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1262
1267
|
let e;
|
|
1263
1268
|
for (; (e = t.next()) !== null; ) {
|
|
1264
1269
|
const r = e.key.asString();
|
|
1265
|
-
s[r] =
|
|
1270
|
+
s[r] = Wr(e.value.asObject());
|
|
1266
1271
|
}
|
|
1267
1272
|
return s;
|
|
1268
1273
|
}
|
|
1269
|
-
function
|
|
1274
|
+
function pr(t) {
|
|
1270
1275
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1271
1276
|
let e;
|
|
1272
1277
|
for (; (e = t.next()) !== null; ) {
|
|
1273
1278
|
const r = e.key.asString();
|
|
1274
|
-
s[r] =
|
|
1279
|
+
s[r] = en(e.value.asObject());
|
|
1275
1280
|
}
|
|
1276
1281
|
return s;
|
|
1277
1282
|
}
|
|
1278
|
-
function
|
|
1283
|
+
function vr(t) {
|
|
1279
1284
|
const s = [];
|
|
1280
1285
|
let e;
|
|
1281
1286
|
for (; (e = t.next()) !== null; )
|
|
1282
|
-
s.push(
|
|
1287
|
+
s.push(ys(e.asObject()));
|
|
1283
1288
|
return s;
|
|
1284
1289
|
}
|
|
1285
|
-
const
|
|
1286
|
-
function
|
|
1290
|
+
const Mr = 161083277, kr = 325678206, Vr = 3469892363, Gr = 3645544153;
|
|
1291
|
+
function Br(t) {
|
|
1287
1292
|
const s = {};
|
|
1288
1293
|
return pt(s), s;
|
|
1289
1294
|
}
|
|
1290
1295
|
function pt(t) {
|
|
1291
1296
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ot(), t;
|
|
1292
1297
|
}
|
|
1293
|
-
function Br(t, s) {
|
|
1294
|
-
const e = s ?? Gr();
|
|
1295
|
-
return pt(e), xr(t, e), e;
|
|
1296
|
-
}
|
|
1297
1298
|
function xr(t, s) {
|
|
1299
|
+
const e = s ?? Br();
|
|
1300
|
+
return pt(e), Hr(t, e), e;
|
|
1301
|
+
}
|
|
1302
|
+
function Hr(t, s) {
|
|
1298
1303
|
let e;
|
|
1299
1304
|
for (; (e = t.next()) !== null; )
|
|
1300
1305
|
switch (e.fieldId) {
|
|
1301
|
-
case
|
|
1306
|
+
case Mr: {
|
|
1302
1307
|
if (e.isNull) throw new Error();
|
|
1303
1308
|
s.StreamId = e.asString();
|
|
1304
1309
|
break;
|
|
1305
1310
|
}
|
|
1306
|
-
case
|
|
1311
|
+
case kr: {
|
|
1307
1312
|
if (e.isNull) throw new Error();
|
|
1308
1313
|
s.ClientSessionId = e.asInt32();
|
|
1309
1314
|
break;
|
|
1310
1315
|
}
|
|
1311
|
-
case
|
|
1316
|
+
case Vr: {
|
|
1312
1317
|
if (e.isNull) throw new Error();
|
|
1313
1318
|
s.TrackId = e.asInt32();
|
|
1314
1319
|
break;
|
|
1315
1320
|
}
|
|
1316
|
-
case
|
|
1321
|
+
case Gr: {
|
|
1317
1322
|
if (e.isNull) throw new Error();
|
|
1318
|
-
s.Info =
|
|
1323
|
+
s.Info = Ks(e.asObject());
|
|
1319
1324
|
break;
|
|
1320
1325
|
}
|
|
1321
1326
|
}
|
|
1322
1327
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1328
|
+
const Yr = 161083277, $r = 325678206, Kr = 3469892363, Xr = 3645544153;
|
|
1329
|
+
function jr(t) {
|
|
1325
1330
|
const s = {};
|
|
1326
1331
|
return vt(s), s;
|
|
1327
1332
|
}
|
|
1328
1333
|
function vt(t) {
|
|
1329
1334
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ct(), t;
|
|
1330
1335
|
}
|
|
1331
|
-
function jr(t, s) {
|
|
1332
|
-
const e = s ?? Xr();
|
|
1333
|
-
return vt(e), Wr(t, e), e;
|
|
1334
|
-
}
|
|
1335
1336
|
function Wr(t, s) {
|
|
1337
|
+
const e = s ?? jr();
|
|
1338
|
+
return vt(e), zr(t, e), e;
|
|
1339
|
+
}
|
|
1340
|
+
function zr(t, s) {
|
|
1336
1341
|
let e;
|
|
1337
1342
|
for (; (e = t.next()) !== null; )
|
|
1338
1343
|
switch (e.fieldId) {
|
|
1339
|
-
case
|
|
1344
|
+
case Yr: {
|
|
1340
1345
|
if (e.isNull) throw new Error();
|
|
1341
1346
|
s.StreamId = e.asString();
|
|
1342
1347
|
break;
|
|
1343
1348
|
}
|
|
1344
|
-
case
|
|
1349
|
+
case $r: {
|
|
1345
1350
|
if (e.isNull) throw new Error();
|
|
1346
1351
|
s.ClientSessionId = e.asInt32();
|
|
1347
1352
|
break;
|
|
1348
1353
|
}
|
|
1349
|
-
case
|
|
1354
|
+
case Kr: {
|
|
1350
1355
|
if (e.isNull) throw new Error();
|
|
1351
1356
|
s.TrackId = e.asInt32();
|
|
1352
1357
|
break;
|
|
1353
1358
|
}
|
|
1354
|
-
case
|
|
1359
|
+
case Xr: {
|
|
1355
1360
|
if (e.isNull) throw new Error();
|
|
1356
1361
|
s.Info = Se(e.asObject());
|
|
1357
1362
|
break;
|
|
1358
1363
|
}
|
|
1359
1364
|
}
|
|
1360
1365
|
}
|
|
1361
|
-
const
|
|
1362
|
-
function
|
|
1366
|
+
const Jr = 161083277, qr = 325678206, Qr = 3469892363, Zr = 3645544153;
|
|
1367
|
+
function tn(t) {
|
|
1363
1368
|
const s = {};
|
|
1364
1369
|
return Mt(s), s;
|
|
1365
1370
|
}
|
|
1366
1371
|
function Mt(t) {
|
|
1367
1372
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Pt(), t;
|
|
1368
1373
|
}
|
|
1369
|
-
function tn(t, s) {
|
|
1370
|
-
const e = s ?? Zr();
|
|
1371
|
-
return Mt(e), en(t, e), e;
|
|
1372
|
-
}
|
|
1373
1374
|
function en(t, s) {
|
|
1375
|
+
const e = s ?? tn();
|
|
1376
|
+
return Mt(e), sn(t, e), e;
|
|
1377
|
+
}
|
|
1378
|
+
function sn(t, s) {
|
|
1374
1379
|
let e;
|
|
1375
1380
|
for (; (e = t.next()) !== null; )
|
|
1376
1381
|
switch (e.fieldId) {
|
|
1377
|
-
case
|
|
1382
|
+
case Jr: {
|
|
1378
1383
|
if (e.isNull) throw new Error();
|
|
1379
1384
|
s.StreamId = e.asString();
|
|
1380
1385
|
break;
|
|
1381
1386
|
}
|
|
1382
|
-
case
|
|
1387
|
+
case qr: {
|
|
1383
1388
|
if (e.isNull) throw new Error();
|
|
1384
1389
|
s.ClientSessionId = e.asInt32();
|
|
1385
1390
|
break;
|
|
1386
1391
|
}
|
|
1387
|
-
case
|
|
1392
|
+
case Qr: {
|
|
1388
1393
|
if (e.isNull) throw new Error();
|
|
1389
1394
|
s.TrackId = e.asInt32();
|
|
1390
1395
|
break;
|
|
1391
1396
|
}
|
|
1392
|
-
case
|
|
1397
|
+
case Zr: {
|
|
1393
1398
|
if (e.isNull) throw new Error();
|
|
1394
|
-
s.Info =
|
|
1399
|
+
s.Info = er(e.asObject());
|
|
1395
1400
|
break;
|
|
1396
1401
|
}
|
|
1397
1402
|
}
|
|
1398
1403
|
}
|
|
1399
|
-
const
|
|
1400
|
-
function
|
|
1404
|
+
const rn = 161083277, nn = 325678206, on = 3469892363, an = 3645544153;
|
|
1405
|
+
function ln(t) {
|
|
1401
1406
|
const s = {};
|
|
1402
1407
|
return kt(s), s;
|
|
1403
1408
|
}
|
|
1404
1409
|
function kt(t) {
|
|
1405
1410
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1406
1411
|
}
|
|
1407
|
-
function ln(t, s) {
|
|
1408
|
-
const e = s ?? an();
|
|
1409
|
-
return kt(e), In(t, e), e;
|
|
1410
|
-
}
|
|
1411
1412
|
function In(t, s) {
|
|
1413
|
+
const e = s ?? ln();
|
|
1414
|
+
return kt(e), cn(t, e), e;
|
|
1415
|
+
}
|
|
1416
|
+
function cn(t, s) {
|
|
1412
1417
|
let e;
|
|
1413
1418
|
for (; (e = t.next()) !== null; )
|
|
1414
1419
|
switch (e.fieldId) {
|
|
1415
|
-
case
|
|
1420
|
+
case rn: {
|
|
1416
1421
|
if (e.isNull) throw new Error();
|
|
1417
1422
|
s.StreamId = e.asString();
|
|
1418
1423
|
break;
|
|
1419
1424
|
}
|
|
1420
|
-
case
|
|
1425
|
+
case nn: {
|
|
1421
1426
|
if (e.isNull) throw new Error();
|
|
1422
1427
|
s.ClientSessionId = e.asInt32();
|
|
1423
1428
|
break;
|
|
1424
1429
|
}
|
|
1425
|
-
case
|
|
1430
|
+
case on: {
|
|
1426
1431
|
if (e.isNull) throw new Error();
|
|
1427
1432
|
s.TrackId = e.asInt32();
|
|
1428
1433
|
break;
|
|
1429
1434
|
}
|
|
1430
|
-
case
|
|
1435
|
+
case an: {
|
|
1431
1436
|
if (e.isNull) throw new Error();
|
|
1432
|
-
s.Info =
|
|
1437
|
+
s.Info = xs(e.asObject());
|
|
1433
1438
|
break;
|
|
1434
1439
|
}
|
|
1435
1440
|
}
|
|
1436
1441
|
}
|
|
1437
|
-
const
|
|
1438
|
-
function
|
|
1442
|
+
const En = 1405462580, _n = 2968276160;
|
|
1443
|
+
function fn(t) {
|
|
1439
1444
|
const s = {};
|
|
1440
1445
|
return Vt(s), s;
|
|
1441
1446
|
}
|
|
1442
1447
|
function Vt(t) {
|
|
1443
1448
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1444
1449
|
}
|
|
1445
|
-
function fn(t, s) {
|
|
1446
|
-
const e = s ?? _n();
|
|
1447
|
-
return Vt(e), hn(t, e), e;
|
|
1448
|
-
}
|
|
1449
1450
|
function hn(t, s) {
|
|
1451
|
+
const e = s ?? fn();
|
|
1452
|
+
return Vt(e), un(t, e), e;
|
|
1453
|
+
}
|
|
1454
|
+
function un(t, s) {
|
|
1450
1455
|
let e;
|
|
1451
1456
|
for (; (e = t.next()) !== null; )
|
|
1452
1457
|
switch (e.fieldId) {
|
|
1453
|
-
case
|
|
1458
|
+
case En: {
|
|
1454
1459
|
if (e.isNull) throw new Error();
|
|
1455
1460
|
s.Value = e.asBinary();
|
|
1456
1461
|
break;
|
|
1457
1462
|
}
|
|
1458
|
-
case
|
|
1463
|
+
case _n: {
|
|
1459
1464
|
if (e.isNull) throw new Error();
|
|
1460
1465
|
s.MimeType = e.asString();
|
|
1461
1466
|
break;
|
|
1462
1467
|
}
|
|
1463
1468
|
}
|
|
1464
1469
|
}
|
|
1465
|
-
const
|
|
1466
|
-
function
|
|
1470
|
+
const Tn = 2097188, Nn = 979822885, An = 2374537704;
|
|
1471
|
+
function Sn(t) {
|
|
1467
1472
|
const s = {};
|
|
1468
1473
|
return Gt(s), s;
|
|
1469
1474
|
}
|
|
1470
1475
|
function Gt(t) {
|
|
1471
1476
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1472
1477
|
}
|
|
1473
|
-
function Sn(t, s) {
|
|
1474
|
-
const e = L.create(t);
|
|
1475
|
-
return dn(e, s);
|
|
1476
|
-
}
|
|
1477
1478
|
function dn(t, s) {
|
|
1478
|
-
const e =
|
|
1479
|
-
return
|
|
1479
|
+
const e = L.create(t);
|
|
1480
|
+
return Cn(e, s);
|
|
1480
1481
|
}
|
|
1481
1482
|
function Cn(t, s) {
|
|
1483
|
+
const e = s ?? Sn();
|
|
1484
|
+
return Gt(e), yn(t, e), e;
|
|
1485
|
+
}
|
|
1486
|
+
function yn(t, s) {
|
|
1482
1487
|
let e;
|
|
1483
1488
|
for (; (e = t.next()) !== null; )
|
|
1484
1489
|
switch (e.fieldId) {
|
|
1485
|
-
case
|
|
1490
|
+
case Nn: {
|
|
1486
1491
|
if (e.isNull) throw new Error();
|
|
1487
1492
|
s.StyleId = e.asString();
|
|
1488
1493
|
break;
|
|
1489
1494
|
}
|
|
1490
|
-
case
|
|
1495
|
+
case An: {
|
|
1491
1496
|
if (e.isNull) throw new Error();
|
|
1492
|
-
s.Style =
|
|
1497
|
+
s.Style = Dn(e.asDictionary());
|
|
1493
1498
|
break;
|
|
1494
1499
|
}
|
|
1495
1500
|
}
|
|
1496
1501
|
}
|
|
1497
|
-
async function
|
|
1498
|
-
const e = await $(t,
|
|
1499
|
-
return
|
|
1502
|
+
async function wn(t, s) {
|
|
1503
|
+
const e = await $(t, Tn);
|
|
1504
|
+
return dn(e, s);
|
|
1500
1505
|
}
|
|
1501
|
-
function
|
|
1506
|
+
function Dn(t) {
|
|
1502
1507
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1503
1508
|
let e;
|
|
1504
1509
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1507,73 +1512,73 @@ function wn(t) {
|
|
|
1507
1512
|
}
|
|
1508
1513
|
return s;
|
|
1509
1514
|
}
|
|
1510
|
-
const
|
|
1511
|
-
function
|
|
1515
|
+
const Un = 2097192, Rn = 2136687806;
|
|
1516
|
+
function mn(t) {
|
|
1512
1517
|
const s = {};
|
|
1513
1518
|
return Bt(s), s;
|
|
1514
1519
|
}
|
|
1515
1520
|
function Bt(t) {
|
|
1516
1521
|
return t.Styles = [], t;
|
|
1517
1522
|
}
|
|
1518
|
-
function mn(t, s) {
|
|
1519
|
-
const e = L.create(t);
|
|
1520
|
-
return Ln(e, s);
|
|
1521
|
-
}
|
|
1522
1523
|
function Ln(t, s) {
|
|
1523
|
-
const e =
|
|
1524
|
-
return
|
|
1524
|
+
const e = L.create(t);
|
|
1525
|
+
return On(e, s);
|
|
1525
1526
|
}
|
|
1526
1527
|
function On(t, s) {
|
|
1528
|
+
const e = s ?? mn();
|
|
1529
|
+
return Bt(e), gn(t, e), e;
|
|
1530
|
+
}
|
|
1531
|
+
function gn(t, s) {
|
|
1527
1532
|
let e;
|
|
1528
1533
|
for (; (e = t.next()) !== null; )
|
|
1529
1534
|
switch (e.fieldId) {
|
|
1530
1535
|
case Rn: {
|
|
1531
1536
|
if (e.isNull) throw new Error();
|
|
1532
|
-
s.Styles =
|
|
1537
|
+
s.Styles = bn(e.asArray());
|
|
1533
1538
|
break;
|
|
1534
1539
|
}
|
|
1535
1540
|
}
|
|
1536
1541
|
}
|
|
1537
|
-
async function
|
|
1538
|
-
const e = await $(t,
|
|
1539
|
-
return
|
|
1542
|
+
async function Pn(t, s) {
|
|
1543
|
+
const e = await $(t, Un);
|
|
1544
|
+
return Ln(e, s);
|
|
1540
1545
|
}
|
|
1541
|
-
function
|
|
1546
|
+
function bn(t) {
|
|
1542
1547
|
const s = [];
|
|
1543
1548
|
let e;
|
|
1544
1549
|
for (; (e = t.next()) !== null; )
|
|
1545
|
-
s.push(
|
|
1550
|
+
s.push(Mn(e.asObject()));
|
|
1546
1551
|
return s;
|
|
1547
1552
|
}
|
|
1548
|
-
const
|
|
1549
|
-
function
|
|
1553
|
+
const Fn = 979822885, pn = 2374537704;
|
|
1554
|
+
function vn(t) {
|
|
1550
1555
|
const s = {};
|
|
1551
1556
|
return xt(s), s;
|
|
1552
1557
|
}
|
|
1553
1558
|
function xt(t) {
|
|
1554
1559
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1555
1560
|
}
|
|
1556
|
-
function vn(t, s) {
|
|
1557
|
-
const e = s ?? pn();
|
|
1558
|
-
return xt(e), Mn(t, e), e;
|
|
1559
|
-
}
|
|
1560
1561
|
function Mn(t, s) {
|
|
1562
|
+
const e = s ?? vn();
|
|
1563
|
+
return xt(e), kn(t, e), e;
|
|
1564
|
+
}
|
|
1565
|
+
function kn(t, s) {
|
|
1561
1566
|
let e;
|
|
1562
1567
|
for (; (e = t.next()) !== null; )
|
|
1563
1568
|
switch (e.fieldId) {
|
|
1564
|
-
case
|
|
1569
|
+
case Fn: {
|
|
1565
1570
|
if (e.isNull) throw new Error();
|
|
1566
1571
|
s.StyleId = e.asString();
|
|
1567
1572
|
break;
|
|
1568
1573
|
}
|
|
1569
|
-
case
|
|
1574
|
+
case pn: {
|
|
1570
1575
|
if (e.isNull) throw new Error();
|
|
1571
|
-
s.Style =
|
|
1576
|
+
s.Style = Vn(e.asDictionary());
|
|
1572
1577
|
break;
|
|
1573
1578
|
}
|
|
1574
1579
|
}
|
|
1575
1580
|
}
|
|
1576
|
-
function
|
|
1581
|
+
function Vn(t) {
|
|
1577
1582
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1578
1583
|
let e;
|
|
1579
1584
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1582,86 +1587,86 @@ function kn(t) {
|
|
|
1582
1587
|
}
|
|
1583
1588
|
return s;
|
|
1584
1589
|
}
|
|
1585
|
-
const
|
|
1586
|
-
function
|
|
1590
|
+
const Gn = 2097193, Bn = 1415642792;
|
|
1591
|
+
function xn(t) {
|
|
1587
1592
|
const s = {};
|
|
1588
1593
|
return Ht(s), s;
|
|
1589
1594
|
}
|
|
1590
1595
|
function Ht(t) {
|
|
1591
1596
|
return t.StyleIds = [], t;
|
|
1592
1597
|
}
|
|
1593
|
-
function xn(t, s) {
|
|
1594
|
-
const e = L.create(t);
|
|
1595
|
-
return Hn(e, s);
|
|
1596
|
-
}
|
|
1597
1598
|
function Hn(t, s) {
|
|
1598
|
-
const e =
|
|
1599
|
-
return
|
|
1599
|
+
const e = L.create(t);
|
|
1600
|
+
return Yn(e, s);
|
|
1600
1601
|
}
|
|
1601
1602
|
function Yn(t, s) {
|
|
1603
|
+
const e = s ?? xn();
|
|
1604
|
+
return Ht(e), $n(t, e), e;
|
|
1605
|
+
}
|
|
1606
|
+
function $n(t, s) {
|
|
1602
1607
|
let e;
|
|
1603
1608
|
for (; (e = t.next()) !== null; )
|
|
1604
1609
|
switch (e.fieldId) {
|
|
1605
|
-
case
|
|
1610
|
+
case Bn: {
|
|
1606
1611
|
if (e.isNull) throw new Error();
|
|
1607
|
-
s.StyleIds =
|
|
1612
|
+
s.StyleIds = Xn(e.asArray());
|
|
1608
1613
|
break;
|
|
1609
1614
|
}
|
|
1610
1615
|
}
|
|
1611
1616
|
}
|
|
1612
|
-
async function
|
|
1613
|
-
const e = await $(t,
|
|
1614
|
-
return
|
|
1617
|
+
async function Kn(t, s) {
|
|
1618
|
+
const e = await $(t, Gn);
|
|
1619
|
+
return Hn(e, s);
|
|
1615
1620
|
}
|
|
1616
|
-
function
|
|
1621
|
+
function Xn(t) {
|
|
1617
1622
|
const s = [];
|
|
1618
1623
|
let e;
|
|
1619
1624
|
for (; (e = t.next()) !== null; )
|
|
1620
1625
|
s.push(e.asString());
|
|
1621
1626
|
return s;
|
|
1622
1627
|
}
|
|
1623
|
-
const
|
|
1624
|
-
function
|
|
1628
|
+
const jn = 2097190, Wn = 425183262, zn = 653781469;
|
|
1629
|
+
function Jn(t) {
|
|
1625
1630
|
const s = {};
|
|
1626
1631
|
return Yt(s), s;
|
|
1627
1632
|
}
|
|
1628
1633
|
function Yt(t) {
|
|
1629
1634
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1630
1635
|
}
|
|
1631
|
-
function Jn(t, s) {
|
|
1632
|
-
const e = L.create(t);
|
|
1633
|
-
return qn(e, s);
|
|
1634
|
-
}
|
|
1635
1636
|
function qn(t, s) {
|
|
1636
|
-
const e =
|
|
1637
|
-
return
|
|
1637
|
+
const e = L.create(t);
|
|
1638
|
+
return Qn(e, s);
|
|
1638
1639
|
}
|
|
1639
1640
|
function Qn(t, s) {
|
|
1641
|
+
const e = s ?? Jn();
|
|
1642
|
+
return Yt(e), Zn(t, e), e;
|
|
1643
|
+
}
|
|
1644
|
+
function Zn(t, s) {
|
|
1640
1645
|
let e;
|
|
1641
1646
|
for (; (e = t.next()) !== null; )
|
|
1642
1647
|
switch (e.fieldId) {
|
|
1643
|
-
case
|
|
1648
|
+
case Wn: {
|
|
1644
1649
|
if (e.isNull) throw new Error();
|
|
1645
1650
|
s.Json = e.asString();
|
|
1646
1651
|
break;
|
|
1647
1652
|
}
|
|
1648
|
-
case
|
|
1653
|
+
case zn: {
|
|
1649
1654
|
if (e.isNull) throw new Error();
|
|
1650
|
-
s.Payloads =
|
|
1655
|
+
s.Payloads = ei(e.asDictionary());
|
|
1651
1656
|
break;
|
|
1652
1657
|
}
|
|
1653
1658
|
}
|
|
1654
1659
|
}
|
|
1655
|
-
async function
|
|
1656
|
-
const e = await $(t,
|
|
1657
|
-
return
|
|
1660
|
+
async function ti(t, s) {
|
|
1661
|
+
const e = await $(t, jn);
|
|
1662
|
+
return qn(e, s);
|
|
1658
1663
|
}
|
|
1659
|
-
function
|
|
1664
|
+
function ei(t) {
|
|
1660
1665
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1661
1666
|
let e;
|
|
1662
1667
|
for (; (e = t.next()) !== null; ) {
|
|
1663
1668
|
const r = e.key.asString();
|
|
1664
|
-
s[r] =
|
|
1669
|
+
s[r] = hn(e.value.asObject());
|
|
1665
1670
|
}
|
|
1666
1671
|
return s;
|
|
1667
1672
|
}
|
|
@@ -1721,7 +1726,7 @@ function ot(t, s) {
|
|
|
1721
1726
|
styleIds: l ?? []
|
|
1722
1727
|
};
|
|
1723
1728
|
}
|
|
1724
|
-
function
|
|
1729
|
+
function si(t, s) {
|
|
1725
1730
|
if (!C(t))
|
|
1726
1731
|
throw new Error(`Invalid text delta at ${s}`);
|
|
1727
1732
|
const e = t.NodeId, r = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
@@ -1748,7 +1753,7 @@ function ei(t, s) {
|
|
|
1748
1753
|
insertedText: o
|
|
1749
1754
|
};
|
|
1750
1755
|
}
|
|
1751
|
-
function
|
|
1756
|
+
function ri(t, s) {
|
|
1752
1757
|
if (!C(t))
|
|
1753
1758
|
throw new Error(`Invalid child insert at ${s}`);
|
|
1754
1759
|
const e = t.Index, r = t.Node;
|
|
@@ -1761,7 +1766,7 @@ function si(t, s) {
|
|
|
1761
1766
|
node: ot(r, `${s}.node`)
|
|
1762
1767
|
};
|
|
1763
1768
|
}
|
|
1764
|
-
function
|
|
1769
|
+
function ni(t, s) {
|
|
1765
1770
|
if (!C(t))
|
|
1766
1771
|
throw new Error(`Invalid child move at ${s}`);
|
|
1767
1772
|
const e = t.NodeId, r = t.FromIndex, n = t.ToIndex;
|
|
@@ -1777,7 +1782,7 @@ function ri(t, s) {
|
|
|
1777
1782
|
toIndex: n
|
|
1778
1783
|
};
|
|
1779
1784
|
}
|
|
1780
|
-
function
|
|
1785
|
+
function ii(t, s) {
|
|
1781
1786
|
if (!C(t))
|
|
1782
1787
|
throw new Error(`Invalid child remove at ${s}`);
|
|
1783
1788
|
const e = t.NodeId, r = t.Index;
|
|
@@ -1790,18 +1795,18 @@ function ni(t, s) {
|
|
|
1790
1795
|
index: r
|
|
1791
1796
|
};
|
|
1792
1797
|
}
|
|
1793
|
-
function
|
|
1798
|
+
function oi(t, s) {
|
|
1794
1799
|
if (!C(t))
|
|
1795
1800
|
throw new Error(`Invalid node change at ${s}`);
|
|
1796
1801
|
const e = t.nodeId;
|
|
1797
1802
|
if (typeof e != "string" || e.length === 0)
|
|
1798
1803
|
throw new Error(`Invalid node change nodeId at ${s}`);
|
|
1799
1804
|
const r = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1800
|
-
(I, E) =>
|
|
1805
|
+
(I, E) => ri(I ?? {}, `${s}.inserts[${E}]`)
|
|
1801
1806
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1802
|
-
(I, E) =>
|
|
1807
|
+
(I, E) => ni(I ?? {}, `${s}.moves[${E}]`)
|
|
1803
1808
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1804
|
-
(I, E) =>
|
|
1809
|
+
(I, E) => ii(I ?? {}, `${s}.removals[${E}]`)
|
|
1805
1810
|
) : void 0;
|
|
1806
1811
|
let o;
|
|
1807
1812
|
if (C(t.changedProps)) {
|
|
@@ -1814,7 +1819,7 @@ function ii(t, s) {
|
|
|
1814
1819
|
}
|
|
1815
1820
|
}
|
|
1816
1821
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1817
|
-
(I, E) =>
|
|
1822
|
+
(I, E) => si(I ?? {}, `${s}.textUpdates[${E}]`)
|
|
1818
1823
|
) : void 0, c = t.styleIds, l = c !== void 0 ? Kt(c, s, e, !0) : void 0;
|
|
1819
1824
|
return {
|
|
1820
1825
|
nodeId: e,
|
|
@@ -1826,19 +1831,19 @@ function ii(t, s) {
|
|
|
1826
1831
|
...l !== void 0 ? { styleIds: l } : {}
|
|
1827
1832
|
};
|
|
1828
1833
|
}
|
|
1829
|
-
function
|
|
1834
|
+
function ai(t) {
|
|
1830
1835
|
const s = /* @__PURE__ */ new Map();
|
|
1831
1836
|
for (const [e, r] of Object.entries(t))
|
|
1832
1837
|
s.set(e, r);
|
|
1833
1838
|
return s;
|
|
1834
1839
|
}
|
|
1835
|
-
function
|
|
1840
|
+
function li(t, s, e) {
|
|
1836
1841
|
if (!t || typeof t != "object")
|
|
1837
1842
|
throw new D("UI update graph is missing");
|
|
1838
1843
|
const r = ot(t, "graph");
|
|
1839
1844
|
if (r.type !== "root")
|
|
1840
1845
|
throw new D('UI update root element must have type "root"');
|
|
1841
|
-
const n =
|
|
1846
|
+
const n = ci(r.props, s);
|
|
1842
1847
|
return {
|
|
1843
1848
|
type: "full",
|
|
1844
1849
|
version: e,
|
|
@@ -1846,7 +1851,7 @@ function ai(t, s, e) {
|
|
|
1846
1851
|
metadata: n
|
|
1847
1852
|
};
|
|
1848
1853
|
}
|
|
1849
|
-
function
|
|
1854
|
+
function Ii(t, s, e) {
|
|
1850
1855
|
if (!Array.isArray(t))
|
|
1851
1856
|
throw new D("UI diff changes must be an array");
|
|
1852
1857
|
if (!C(s))
|
|
@@ -1855,7 +1860,7 @@ function li(t, s, e) {
|
|
|
1855
1860
|
if (typeof r != "string" || r.length === 0)
|
|
1856
1861
|
throw new D("UI diff metadata is missing viewId");
|
|
1857
1862
|
const n = t.map(
|
|
1858
|
-
(E, _) =>
|
|
1863
|
+
(E, _) => oi(E ?? {}, `changes[${_}]`)
|
|
1859
1864
|
), i = s.optimisticActionId === null || typeof s.optimisticActionId == "string" ? s.optimisticActionId : void 0, o = typeof s.isOptimistic == "boolean" ? s.isOptimistic : void 0, a = typeof s.isUpdate == "boolean" ? s.isUpdate : void 0, c = Q(s.optimisticPatch), l = Z(s.optimisticReconcile), I = {
|
|
1860
1865
|
viewId: r,
|
|
1861
1866
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
@@ -1871,7 +1876,7 @@ function li(t, s, e) {
|
|
|
1871
1876
|
metadata: I
|
|
1872
1877
|
};
|
|
1873
1878
|
}
|
|
1874
|
-
function
|
|
1879
|
+
function ci(t, s) {
|
|
1875
1880
|
const e = t.viewId;
|
|
1876
1881
|
if (typeof e != "string" || e.length === 0)
|
|
1877
1882
|
throw new D("UI update root is missing viewId");
|
|
@@ -1929,7 +1934,7 @@ class D extends Error {
|
|
|
1929
1934
|
super(s), this.causeError = e, this.name = "UiUpdateParseError", e instanceof Error && (this.stack = e.stack);
|
|
1930
1935
|
}
|
|
1931
1936
|
}
|
|
1932
|
-
function
|
|
1937
|
+
function Ei(t) {
|
|
1933
1938
|
let s;
|
|
1934
1939
|
try {
|
|
1935
1940
|
s = JSON.parse(t.Json);
|
|
@@ -1943,13 +1948,13 @@ function ci(t) {
|
|
|
1943
1948
|
throw new D(`Unknown UI update type: ${String(e)}`);
|
|
1944
1949
|
if (typeof r != "number")
|
|
1945
1950
|
throw new D("UI update version must be a number");
|
|
1946
|
-
const n = e === "full" ?
|
|
1951
|
+
const n = e === "full" ? li(s.graph, s.metadata, r) : Ii(s.changes, s.metadata, r), i = t.Payloads ? ai(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1947
1952
|
return {
|
|
1948
1953
|
snapshot: n,
|
|
1949
1954
|
payloads: i
|
|
1950
1955
|
};
|
|
1951
1956
|
}
|
|
1952
|
-
class
|
|
1957
|
+
class _i {
|
|
1953
1958
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1954
1959
|
cache = /* @__PURE__ */ new Map();
|
|
1955
1960
|
/**
|
|
@@ -2030,7 +2035,7 @@ class Ei {
|
|
|
2030
2035
|
return this.cache.size;
|
|
2031
2036
|
}
|
|
2032
2037
|
}
|
|
2033
|
-
class
|
|
2038
|
+
class fi {
|
|
2034
2039
|
views = /* @__PURE__ */ new Map();
|
|
2035
2040
|
listeners = /* @__PURE__ */ new Set();
|
|
2036
2041
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2052,7 +2057,7 @@ class _i {
|
|
|
2052
2057
|
patchesDirty = !0;
|
|
2053
2058
|
payloadsDirty = !0;
|
|
2054
2059
|
// Handler cache for stable event handlers
|
|
2055
|
-
handlerCache = new
|
|
2060
|
+
handlerCache = new _i();
|
|
2056
2061
|
getSortedPatches(s) {
|
|
2057
2062
|
const e = this.buildPatchCacheKey(s.patches);
|
|
2058
2063
|
if (s.sortedPatchesCacheKey === e && s.sortedPatchesCache)
|
|
@@ -2171,7 +2176,7 @@ class _i {
|
|
|
2171
2176
|
if (s.upsertOptimisticPatches && s.upsertOptimisticPatches.length > 0)
|
|
2172
2177
|
for (const [_, N] of s.upsertOptimisticPatches) {
|
|
2173
2178
|
const h = l(), y = h.get(_);
|
|
2174
|
-
|
|
2179
|
+
Ni(y, N) || (h.set(_, N), r = !0);
|
|
2175
2180
|
}
|
|
2176
2181
|
const I = s.rootViewId ?? this.snapshot.rootViewId;
|
|
2177
2182
|
I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -2298,7 +2303,7 @@ class _i {
|
|
|
2298
2303
|
}
|
|
2299
2304
|
}
|
|
2300
2305
|
}
|
|
2301
|
-
class
|
|
2306
|
+
class hi {
|
|
2302
2307
|
streams = /* @__PURE__ */ new Map();
|
|
2303
2308
|
listeners = /* @__PURE__ */ new Set();
|
|
2304
2309
|
apply(s, e) {
|
|
@@ -2362,7 +2367,7 @@ class fi {
|
|
|
2362
2367
|
}
|
|
2363
2368
|
getOrCreateStreamEntry(s) {
|
|
2364
2369
|
let e = this.streams.get(s);
|
|
2365
|
-
return e || (e = { store: new
|
|
2370
|
+
return e || (e = { store: new fi() }, this.streams.set(s, e)), e;
|
|
2366
2371
|
}
|
|
2367
2372
|
notify(s) {
|
|
2368
2373
|
for (const e of this.listeners)
|
|
@@ -2381,7 +2386,7 @@ function Xt(t, s, e) {
|
|
|
2381
2386
|
const r = s.get(t.id);
|
|
2382
2387
|
let n = t, i = !1;
|
|
2383
2388
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
2384
|
-
const f =
|
|
2389
|
+
const f = Si(t, r.textUpdates);
|
|
2385
2390
|
n = f.node, i = f.changed;
|
|
2386
2391
|
}
|
|
2387
2392
|
let o = !1, a = n.props;
|
|
@@ -2452,7 +2457,7 @@ function b(t, s) {
|
|
|
2452
2457
|
b(e, s);
|
|
2453
2458
|
}
|
|
2454
2459
|
const X = [];
|
|
2455
|
-
function
|
|
2460
|
+
function ui(t) {
|
|
2456
2461
|
for (; X.length <= t; )
|
|
2457
2462
|
X.push(/* @__PURE__ */ new Map());
|
|
2458
2463
|
return X[t].clear(), X[t];
|
|
@@ -2463,10 +2468,10 @@ function j(t, s, e) {
|
|
|
2463
2468
|
function jt(t, s, e, r) {
|
|
2464
2469
|
if (t === s)
|
|
2465
2470
|
return;
|
|
2466
|
-
(t.type !== s.type || !
|
|
2471
|
+
(t.type !== s.type || !Ti(t.props, s.props) || !zt(t.styleIds, s.styleIds)) && e.add(s.id);
|
|
2467
2472
|
const i = t.children ?? [], o = s.children ?? [];
|
|
2468
2473
|
if (i !== o) {
|
|
2469
|
-
const a =
|
|
2474
|
+
const a = ui(r);
|
|
2470
2475
|
for (const l of i)
|
|
2471
2476
|
a.set(l.id, l);
|
|
2472
2477
|
let c = !1;
|
|
@@ -2477,7 +2482,7 @@ function jt(t, s, e, r) {
|
|
|
2477
2482
|
(i.length !== o.length || c) && e.add(s.id);
|
|
2478
2483
|
}
|
|
2479
2484
|
}
|
|
2480
|
-
function
|
|
2485
|
+
function Ti(t, s) {
|
|
2481
2486
|
return v(t, s);
|
|
2482
2487
|
}
|
|
2483
2488
|
function Wt(t, s) {
|
|
@@ -2493,7 +2498,7 @@ function Wt(t, s) {
|
|
|
2493
2498
|
function zt(t, s) {
|
|
2494
2499
|
return v(t, s);
|
|
2495
2500
|
}
|
|
2496
|
-
function
|
|
2501
|
+
function Ni(t, s) {
|
|
2497
2502
|
if (t === s) return !0;
|
|
2498
2503
|
if (!t || !s || t.length !== s.length) return !1;
|
|
2499
2504
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -2503,7 +2508,7 @@ function Ti(t, s) {
|
|
|
2503
2508
|
}
|
|
2504
2509
|
return !0;
|
|
2505
2510
|
}
|
|
2506
|
-
function
|
|
2511
|
+
function Ai(t, s) {
|
|
2507
2512
|
if (s.length === 0)
|
|
2508
2513
|
return t;
|
|
2509
2514
|
const e = [...s].sort((i, o) => i.start - o.start);
|
|
@@ -2511,7 +2516,7 @@ function Ni(t, s) {
|
|
|
2511
2516
|
for (const i of e) {
|
|
2512
2517
|
const o = lt(i.start + n, 0, r.length);
|
|
2513
2518
|
if (i.end == null) {
|
|
2514
|
-
const I = r.slice(o), E =
|
|
2519
|
+
const I = r.slice(o), E = di(I, i.insertedText);
|
|
2515
2520
|
r = r.slice(0, o) + i.insertedText + I.slice(E), n += i.insertedText.length - E;
|
|
2516
2521
|
continue;
|
|
2517
2522
|
}
|
|
@@ -2520,7 +2525,7 @@ function Ni(t, s) {
|
|
|
2520
2525
|
}
|
|
2521
2526
|
return r;
|
|
2522
2527
|
}
|
|
2523
|
-
function
|
|
2528
|
+
function Si(t, s, e) {
|
|
2524
2529
|
if (s.length === 0)
|
|
2525
2530
|
return { node: t, changed: !1 };
|
|
2526
2531
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2540,7 +2545,7 @@ function Jt(t, s, e) {
|
|
|
2540
2545
|
E ? E.push(I) : l.set(I.propertyName, [I]);
|
|
2541
2546
|
}
|
|
2542
2547
|
for (const [I, E] of l.entries()) {
|
|
2543
|
-
const _ = i[I], h =
|
|
2548
|
+
const _ = i[I], h = Ai(typeof _ == "string" ? _ : "", E);
|
|
2544
2549
|
n || (i = k(i), n = !0), i[I] = h;
|
|
2545
2550
|
}
|
|
2546
2551
|
}
|
|
@@ -2569,7 +2574,7 @@ function Jt(t, s, e) {
|
|
|
2569
2574
|
function lt(t, s, e) {
|
|
2570
2575
|
return Math.max(s, Math.min(e, t));
|
|
2571
2576
|
}
|
|
2572
|
-
function
|
|
2577
|
+
function di(t, s) {
|
|
2573
2578
|
const e = Math.min(t.length, s.length);
|
|
2574
2579
|
let r = 0;
|
|
2575
2580
|
for (; r < e && t.charCodeAt(r) === s.charCodeAt(r); )
|
|
@@ -2609,20 +2614,20 @@ function v(t, s) {
|
|
|
2609
2614
|
}
|
|
2610
2615
|
return !1;
|
|
2611
2616
|
}
|
|
2612
|
-
const
|
|
2613
|
-
let qt =
|
|
2617
|
+
const Ci = 16, yi = 50, g = new hi(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2618
|
+
let qt = Ci, Qt = yi, V = [], G = null, B = null, R = 0, W = 0;
|
|
2614
2619
|
const x = /* @__PURE__ */ new Map();
|
|
2615
|
-
function
|
|
2620
|
+
function wi() {
|
|
2616
2621
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2617
2622
|
}
|
|
2618
|
-
function
|
|
2623
|
+
function Di() {
|
|
2619
2624
|
try {
|
|
2620
2625
|
return crypto.randomUUID();
|
|
2621
2626
|
} catch {
|
|
2622
2627
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2623
2628
|
}
|
|
2624
2629
|
}
|
|
2625
|
-
function
|
|
2630
|
+
function Ui(t) {
|
|
2626
2631
|
const s = [];
|
|
2627
2632
|
for (const n of t.views)
|
|
2628
2633
|
s.push(n);
|
|
@@ -2652,9 +2657,9 @@ function Ri(t, s) {
|
|
|
2652
2657
|
}
|
|
2653
2658
|
return !0;
|
|
2654
2659
|
}
|
|
2655
|
-
function
|
|
2660
|
+
function mi(t, s, e) {
|
|
2656
2661
|
if (!e || e.version === -1)
|
|
2657
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2662
|
+
return { type: "ReplaceStreamSnapshot", snapshot: Ui(s) };
|
|
2658
2663
|
let r, n;
|
|
2659
2664
|
for (const [l, I] of s.views)
|
|
2660
2665
|
e.views.get(l) !== I && (r ??= []).push([l, I]);
|
|
@@ -2695,26 +2700,26 @@ function P(t) {
|
|
|
2695
2700
|
}
|
|
2696
2701
|
function It() {
|
|
2697
2702
|
if (G && (clearTimeout(G), G = null), B && (clearTimeout(B), B = null), V.length === 0 && x.size === 0) {
|
|
2698
|
-
|
|
2703
|
+
R = 0, W = 0;
|
|
2699
2704
|
return;
|
|
2700
2705
|
}
|
|
2701
2706
|
const t = [];
|
|
2702
2707
|
for (const [e, r] of x)
|
|
2703
2708
|
t.push({ trackId: e, version: r.version, senderId: r.senderId });
|
|
2704
2709
|
const s = {
|
|
2705
|
-
batchId:
|
|
2706
|
-
createdAtMs:
|
|
2710
|
+
batchId: Di(),
|
|
2711
|
+
createdAtMs: wi(),
|
|
2707
2712
|
ops: V,
|
|
2708
2713
|
...t.length > 0 ? { acks: t } : {},
|
|
2709
|
-
stats: { uiMessagesConsumed:
|
|
2714
|
+
stats: { uiMessagesConsumed: R, bytesConsumed: W }
|
|
2710
2715
|
};
|
|
2711
|
-
V = [],
|
|
2716
|
+
V = [], R = 0, W = 0, x.clear(), self.postMessage(s);
|
|
2712
2717
|
}
|
|
2713
2718
|
function te(t) {
|
|
2714
2719
|
return `${t.senderId}_${t.trackId}`;
|
|
2715
2720
|
}
|
|
2716
|
-
async function
|
|
2717
|
-
const s = await
|
|
2721
|
+
async function Li(t) {
|
|
2722
|
+
const s = await Lr(t), e = /* @__PURE__ */ new Set();
|
|
2718
2723
|
for (const r of Object.values(s.UIStreams ?? {})) {
|
|
2719
2724
|
const n = r.StreamId;
|
|
2720
2725
|
e.add(n);
|
|
@@ -2724,18 +2729,18 @@ async function mi(t) {
|
|
|
2724
2729
|
for (const r of g.getSnapshots())
|
|
2725
2730
|
e.has(r.streamId) || (g.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
|
|
2726
2731
|
}
|
|
2727
|
-
async function
|
|
2728
|
-
const s = et(t), e = te(s), r = await
|
|
2732
|
+
async function Oi(t) {
|
|
2733
|
+
const s = et(t), e = te(s), r = await ti(t), n = Ei(r), i = x.get(s.trackId);
|
|
2729
2734
|
if ((i === void 0 || n.snapshot.version > i.version) && (x.set(s.trackId, { version: n.snapshot.version, senderId: s.senderId }), Zt()), !g.apply(e, n))
|
|
2730
2735
|
return;
|
|
2731
2736
|
const a = g.getSnapshot(e);
|
|
2732
2737
|
if (!a)
|
|
2733
2738
|
return;
|
|
2734
2739
|
const c = Y.get(e);
|
|
2735
|
-
Y.set(e, a), P(
|
|
2740
|
+
Y.set(e, a), P(mi(e, a, c));
|
|
2736
2741
|
}
|
|
2737
|
-
async function
|
|
2738
|
-
const s = await
|
|
2742
|
+
async function gi(t) {
|
|
2743
|
+
const s = await wn(t);
|
|
2739
2744
|
if (!s.StyleId)
|
|
2740
2745
|
return;
|
|
2741
2746
|
const e = {
|
|
@@ -2745,8 +2750,8 @@ async function Oi(t) {
|
|
|
2745
2750
|
}, r = H.get(e.styleId);
|
|
2746
2751
|
r && r.css === e.css && r.common === e.common || (H.set(e.styleId, e), P({ type: "UpsertUiStyle", style: e }));
|
|
2747
2752
|
}
|
|
2748
|
-
async function
|
|
2749
|
-
const s = await
|
|
2753
|
+
async function Pi(t) {
|
|
2754
|
+
const s = await Pn(t);
|
|
2750
2755
|
if (s.Styles)
|
|
2751
2756
|
for (const e of s.Styles) {
|
|
2752
2757
|
if (!e.StyleId)
|
|
@@ -2759,44 +2764,44 @@ async function gi(t) {
|
|
|
2759
2764
|
n && n.css === r.css && n.common === r.common || (H.set(r.styleId, r), P({ type: "UpsertUiStyle", style: r }));
|
|
2760
2765
|
}
|
|
2761
2766
|
}
|
|
2762
|
-
function
|
|
2767
|
+
function bi(t) {
|
|
2763
2768
|
const s = et(t), e = te(s);
|
|
2764
2769
|
g.clear(e), Y.delete(e), P({ type: "ClearStream", streamId: e });
|
|
2765
2770
|
}
|
|
2766
|
-
async function
|
|
2767
|
-
const s = await
|
|
2771
|
+
async function Fi(t) {
|
|
2772
|
+
const s = await Kn(t);
|
|
2768
2773
|
if (!(!s.StyleIds || s.StyleIds.length === 0))
|
|
2769
2774
|
for (const e of s.StyleIds)
|
|
2770
2775
|
H.delete(e) && P({ type: "RemoveUiStyle", styleId: e });
|
|
2771
2776
|
}
|
|
2772
|
-
async function
|
|
2777
|
+
async function pi(t) {
|
|
2773
2778
|
const s = new Uint8Array(t);
|
|
2774
2779
|
W += s.byteLength;
|
|
2775
2780
|
const e = s;
|
|
2776
2781
|
switch (se(e)) {
|
|
2777
2782
|
case O.CORE_GLOBAL_STATE:
|
|
2778
|
-
await
|
|
2783
|
+
await Li(e), R++;
|
|
2779
2784
|
return;
|
|
2780
2785
|
case O.UI_UPDATE:
|
|
2781
2786
|
try {
|
|
2782
|
-
await
|
|
2787
|
+
await Oi(e);
|
|
2783
2788
|
} catch (n) {
|
|
2784
2789
|
return n instanceof D, void 0;
|
|
2785
2790
|
} finally {
|
|
2786
|
-
|
|
2791
|
+
R++;
|
|
2787
2792
|
}
|
|
2788
2793
|
return;
|
|
2789
2794
|
case O.UI_STYLES:
|
|
2790
|
-
await
|
|
2795
|
+
await gi(e), R++;
|
|
2791
2796
|
return;
|
|
2792
2797
|
case O.UI_STYLES_BATCH:
|
|
2793
|
-
await
|
|
2798
|
+
await Pi(e), R++;
|
|
2794
2799
|
return;
|
|
2795
2800
|
case O.UI_STYLES_DELETE:
|
|
2796
|
-
await
|
|
2801
|
+
await Fi(e), R++;
|
|
2797
2802
|
return;
|
|
2798
2803
|
case O.ACTION_UI_CLEAR_STREAM:
|
|
2799
|
-
|
|
2804
|
+
bi(e), R++;
|
|
2800
2805
|
return;
|
|
2801
2806
|
default:
|
|
2802
2807
|
return;
|
|
@@ -2812,6 +2817,6 @@ self.addEventListener("message", (t) => {
|
|
|
2812
2817
|
V = [], Y.clear();
|
|
2813
2818
|
return;
|
|
2814
2819
|
}
|
|
2815
|
-
s.type === "protocol" &&
|
|
2820
|
+
s.type === "protocol" && pi(s.message).catch(() => {
|
|
2816
2821
|
});
|
|
2817
2822
|
});
|