@solibo/home-api 1.0.30 → 1.0.31
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/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +595 -580
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.ts +25 -25
- package/solibo-sdk-sdk-home-api.js +17127 -17072
- package/solibo-sdk-sdk-home-api.js.map +1 -1
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
var charSequenceGet = kotlin_kotlin.$_$.ia;
|
|
30
30
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
|
|
31
31
|
var equals = kotlin_kotlin.$_$.na;
|
|
32
|
+
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
33
|
+
var getStringHashCode = kotlin_kotlin.$_$.ua;
|
|
32
34
|
var toString_0 = kotlin_kotlin.$_$.ug;
|
|
33
35
|
var Enum = kotlin_kotlin.$_$.jf;
|
|
34
36
|
var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
@@ -38,13 +40,11 @@
|
|
|
38
40
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
39
41
|
var hashCode = kotlin_kotlin.$_$.va;
|
|
40
42
|
var joinToString = kotlin_kotlin.$_$.y6;
|
|
41
|
-
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
42
43
|
var KtMap = kotlin_kotlin.$_$.i5;
|
|
43
44
|
var KtList = kotlin_kotlin.$_$.f5;
|
|
44
45
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
45
46
|
var getKClassFromExpression = kotlin_kotlin.$_$.kc;
|
|
46
47
|
var getBooleanHashCode = kotlin_kotlin.$_$.qa;
|
|
47
|
-
var getStringHashCode = kotlin_kotlin.$_$.ua;
|
|
48
48
|
var toDouble = kotlin_kotlin.$_$.he;
|
|
49
49
|
var StringCompanionObject_instance = kotlin_kotlin.$_$.l4;
|
|
50
50
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
@@ -374,8 +374,23 @@
|
|
|
374
374
|
Json.call(this, configuration, module_0);
|
|
375
375
|
validateConfiguration(this);
|
|
376
376
|
}
|
|
377
|
-
function JsonClassDiscriminator() {
|
|
377
|
+
function JsonClassDiscriminator(discriminator) {
|
|
378
|
+
this.p4o_1 = discriminator;
|
|
378
379
|
}
|
|
380
|
+
protoOf(JsonClassDiscriminator).equals = function (other) {
|
|
381
|
+
if (!(other instanceof JsonClassDiscriminator))
|
|
382
|
+
return false;
|
|
383
|
+
var tmp0_other_with_cast = other instanceof JsonClassDiscriminator ? other : THROW_CCE();
|
|
384
|
+
if (!(this.p4o_1 === tmp0_other_with_cast.p4o_1))
|
|
385
|
+
return false;
|
|
386
|
+
return true;
|
|
387
|
+
};
|
|
388
|
+
protoOf(JsonClassDiscriminator).hashCode = function () {
|
|
389
|
+
return imul(getStringHashCode('discriminator'), 127) ^ getStringHashCode(this.p4o_1);
|
|
390
|
+
};
|
|
391
|
+
protoOf(JsonClassDiscriminator).toString = function () {
|
|
392
|
+
return '@kotlinx.serialization.json.JsonClassDiscriminator(' + 'discriminator=' + this.p4o_1 + ')';
|
|
393
|
+
};
|
|
379
394
|
function JsonIgnoreUnknownKeys() {
|
|
380
395
|
}
|
|
381
396
|
function JsonNames() {
|
|
@@ -490,39 +505,39 @@
|
|
|
490
505
|
}
|
|
491
506
|
function JsonObject(content) {
|
|
492
507
|
JsonElement.call(this);
|
|
493
|
-
this.
|
|
508
|
+
this.s4o_1 = content;
|
|
494
509
|
}
|
|
495
510
|
protoOf(JsonObject).equals = function (other) {
|
|
496
|
-
return equals(this.
|
|
511
|
+
return equals(this.s4o_1, other);
|
|
497
512
|
};
|
|
498
513
|
protoOf(JsonObject).hashCode = function () {
|
|
499
|
-
return hashCode(this.
|
|
514
|
+
return hashCode(this.s4o_1);
|
|
500
515
|
};
|
|
501
516
|
protoOf(JsonObject).toString = function () {
|
|
502
|
-
var tmp = this.
|
|
517
|
+
var tmp = this.s4o_1.k1();
|
|
503
518
|
return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
|
|
504
519
|
};
|
|
505
520
|
protoOf(JsonObject).r = function () {
|
|
506
|
-
return this.
|
|
521
|
+
return this.s4o_1.r();
|
|
507
522
|
};
|
|
508
523
|
protoOf(JsonObject).v2b = function (key) {
|
|
509
|
-
return this.
|
|
524
|
+
return this.s4o_1.w2(key);
|
|
510
525
|
};
|
|
511
526
|
protoOf(JsonObject).w2 = function (key) {
|
|
512
527
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
513
528
|
return false;
|
|
514
529
|
return this.v2b((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
515
530
|
};
|
|
516
|
-
protoOf(JsonObject).
|
|
517
|
-
return this.
|
|
531
|
+
protoOf(JsonObject).t4o = function (value) {
|
|
532
|
+
return this.s4o_1.x2(value);
|
|
518
533
|
};
|
|
519
534
|
protoOf(JsonObject).x2 = function (value) {
|
|
520
535
|
if (!(value instanceof JsonElement))
|
|
521
536
|
return false;
|
|
522
|
-
return this.
|
|
537
|
+
return this.t4o(value instanceof JsonElement ? value : THROW_CCE());
|
|
523
538
|
};
|
|
524
539
|
protoOf(JsonObject).x2b = function (key) {
|
|
525
|
-
return this.
|
|
540
|
+
return this.s4o_1.y2(key);
|
|
526
541
|
};
|
|
527
542
|
protoOf(JsonObject).y2 = function (key) {
|
|
528
543
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
@@ -530,19 +545,19 @@
|
|
|
530
545
|
return this.x2b((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
531
546
|
};
|
|
532
547
|
protoOf(JsonObject).asJsReadonlyMapView = function () {
|
|
533
|
-
return this.
|
|
548
|
+
return this.s4o_1.asJsReadonlyMapView();
|
|
534
549
|
};
|
|
535
550
|
protoOf(JsonObject).g1 = function () {
|
|
536
|
-
return this.
|
|
551
|
+
return this.s4o_1.g1();
|
|
537
552
|
};
|
|
538
553
|
protoOf(JsonObject).u2 = function () {
|
|
539
|
-
return this.
|
|
554
|
+
return this.s4o_1.u2();
|
|
540
555
|
};
|
|
541
556
|
protoOf(JsonObject).v2 = function () {
|
|
542
|
-
return this.
|
|
557
|
+
return this.s4o_1.v2();
|
|
543
558
|
};
|
|
544
559
|
protoOf(JsonObject).k1 = function () {
|
|
545
|
-
return this.
|
|
560
|
+
return this.s4o_1.k1();
|
|
546
561
|
};
|
|
547
562
|
function Companion_2() {
|
|
548
563
|
}
|
|
@@ -552,84 +567,84 @@
|
|
|
552
567
|
}
|
|
553
568
|
function JsonArray(content) {
|
|
554
569
|
JsonElement.call(this);
|
|
555
|
-
this.
|
|
570
|
+
this.u4o_1 = content;
|
|
556
571
|
}
|
|
557
572
|
protoOf(JsonArray).equals = function (other) {
|
|
558
|
-
return equals(this.
|
|
573
|
+
return equals(this.u4o_1, other);
|
|
559
574
|
};
|
|
560
575
|
protoOf(JsonArray).hashCode = function () {
|
|
561
|
-
return hashCode(this.
|
|
576
|
+
return hashCode(this.u4o_1);
|
|
562
577
|
};
|
|
563
578
|
protoOf(JsonArray).toString = function () {
|
|
564
|
-
return joinToString(this.
|
|
579
|
+
return joinToString(this.u4o_1, ',', '[', ']');
|
|
565
580
|
};
|
|
566
581
|
protoOf(JsonArray).r = function () {
|
|
567
|
-
return this.
|
|
582
|
+
return this.u4o_1.r();
|
|
568
583
|
};
|
|
569
|
-
protoOf(JsonArray).
|
|
570
|
-
return this.
|
|
584
|
+
protoOf(JsonArray).v4o = function (element) {
|
|
585
|
+
return this.u4o_1.h2(element);
|
|
571
586
|
};
|
|
572
587
|
protoOf(JsonArray).h2 = function (element) {
|
|
573
588
|
if (!(element instanceof JsonElement))
|
|
574
589
|
return false;
|
|
575
|
-
return this.
|
|
590
|
+
return this.v4o(element instanceof JsonElement ? element : THROW_CCE());
|
|
576
591
|
};
|
|
577
592
|
protoOf(JsonArray).t = function () {
|
|
578
|
-
return this.
|
|
593
|
+
return this.u4o_1.t();
|
|
579
594
|
};
|
|
580
|
-
protoOf(JsonArray).
|
|
581
|
-
return this.
|
|
595
|
+
protoOf(JsonArray).w4o = function (elements) {
|
|
596
|
+
return this.u4o_1.i2(elements);
|
|
582
597
|
};
|
|
583
598
|
protoOf(JsonArray).i2 = function (elements) {
|
|
584
|
-
return this.
|
|
599
|
+
return this.w4o(elements);
|
|
585
600
|
};
|
|
586
601
|
protoOf(JsonArray).h1 = function (index) {
|
|
587
|
-
return this.
|
|
602
|
+
return this.u4o_1.h1(index);
|
|
588
603
|
};
|
|
589
|
-
protoOf(JsonArray).
|
|
590
|
-
return this.
|
|
604
|
+
protoOf(JsonArray).x4o = function (element) {
|
|
605
|
+
return this.u4o_1.j2(element);
|
|
591
606
|
};
|
|
592
607
|
protoOf(JsonArray).j2 = function (element) {
|
|
593
608
|
if (!(element instanceof JsonElement))
|
|
594
609
|
return -1;
|
|
595
|
-
return this.
|
|
610
|
+
return this.x4o(element instanceof JsonElement ? element : THROW_CCE());
|
|
596
611
|
};
|
|
597
|
-
protoOf(JsonArray).
|
|
598
|
-
return this.
|
|
612
|
+
protoOf(JsonArray).y4o = function (element) {
|
|
613
|
+
return this.u4o_1.k2(element);
|
|
599
614
|
};
|
|
600
615
|
protoOf(JsonArray).k2 = function (element) {
|
|
601
616
|
if (!(element instanceof JsonElement))
|
|
602
617
|
return -1;
|
|
603
|
-
return this.
|
|
618
|
+
return this.y4o(element instanceof JsonElement ? element : THROW_CCE());
|
|
604
619
|
};
|
|
605
620
|
protoOf(JsonArray).l2 = function () {
|
|
606
|
-
return this.
|
|
621
|
+
return this.u4o_1.l2();
|
|
607
622
|
};
|
|
608
623
|
protoOf(JsonArray).i1 = function (index) {
|
|
609
|
-
return this.
|
|
624
|
+
return this.u4o_1.i1(index);
|
|
610
625
|
};
|
|
611
626
|
protoOf(JsonArray).m2 = function (fromIndex, toIndex) {
|
|
612
|
-
return this.
|
|
627
|
+
return this.u4o_1.m2(fromIndex, toIndex);
|
|
613
628
|
};
|
|
614
629
|
protoOf(JsonArray).asJsReadonlyArrayView = function () {
|
|
615
|
-
return this.
|
|
630
|
+
return this.u4o_1.asJsReadonlyArrayView();
|
|
616
631
|
};
|
|
617
632
|
protoOf(JsonArray).g1 = function () {
|
|
618
|
-
return this.
|
|
633
|
+
return this.u4o_1.g1();
|
|
619
634
|
};
|
|
620
635
|
function JsonNull() {
|
|
621
636
|
JsonNull_instance = this;
|
|
622
637
|
JsonPrimitive.call(this);
|
|
623
|
-
this.
|
|
638
|
+
this.z4o_1 = 'null';
|
|
624
639
|
}
|
|
625
640
|
protoOf(JsonNull).c3f = function () {
|
|
626
|
-
return this.
|
|
641
|
+
return this.z4o_1;
|
|
627
642
|
};
|
|
628
|
-
protoOf(JsonNull).
|
|
643
|
+
protoOf(JsonNull).a4p = function () {
|
|
629
644
|
return JsonNullSerializer_getInstance();
|
|
630
645
|
};
|
|
631
646
|
protoOf(JsonNull).x22 = function (typeParamsSerializers) {
|
|
632
|
-
return this.
|
|
647
|
+
return this.a4p();
|
|
633
648
|
};
|
|
634
649
|
var JsonNull_instance;
|
|
635
650
|
function JsonNull_getInstance() {
|
|
@@ -640,31 +655,31 @@
|
|
|
640
655
|
function JsonLiteral(body, isString, coerceToInlineType) {
|
|
641
656
|
coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
|
|
642
657
|
JsonPrimitive.call(this);
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
if (!(this.
|
|
658
|
+
this.b4p_1 = isString;
|
|
659
|
+
this.c4p_1 = coerceToInlineType;
|
|
660
|
+
this.d4p_1 = toString(body);
|
|
661
|
+
if (!(this.c4p_1 == null)) {
|
|
647
662
|
// Inline function 'kotlin.require' call
|
|
648
663
|
// Inline function 'kotlin.require' call
|
|
649
|
-
if (!this.
|
|
664
|
+
if (!this.c4p_1.n1s()) {
|
|
650
665
|
var message = 'Failed requirement.';
|
|
651
666
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
652
667
|
}
|
|
653
668
|
}
|
|
654
669
|
}
|
|
655
670
|
protoOf(JsonLiteral).c3f = function () {
|
|
656
|
-
return this.
|
|
671
|
+
return this.d4p_1;
|
|
657
672
|
};
|
|
658
673
|
protoOf(JsonLiteral).toString = function () {
|
|
659
674
|
var tmp;
|
|
660
|
-
if (this.
|
|
675
|
+
if (this.b4p_1) {
|
|
661
676
|
// Inline function 'kotlin.text.buildString' call
|
|
662
677
|
// Inline function 'kotlin.apply' call
|
|
663
678
|
var this_0 = StringBuilder_init_$Create$();
|
|
664
|
-
printQuoted(this_0, this.
|
|
679
|
+
printQuoted(this_0, this.d4p_1);
|
|
665
680
|
tmp = this_0.toString();
|
|
666
681
|
} else {
|
|
667
|
-
tmp = this.
|
|
682
|
+
tmp = this.d4p_1;
|
|
668
683
|
}
|
|
669
684
|
return tmp;
|
|
670
685
|
};
|
|
@@ -675,15 +690,15 @@
|
|
|
675
690
|
return false;
|
|
676
691
|
if (!(other instanceof JsonLiteral))
|
|
677
692
|
THROW_CCE();
|
|
678
|
-
if (!(this.
|
|
693
|
+
if (!(this.b4p_1 === other.b4p_1))
|
|
679
694
|
return false;
|
|
680
|
-
if (!(this.
|
|
695
|
+
if (!(this.d4p_1 === other.d4p_1))
|
|
681
696
|
return false;
|
|
682
697
|
return true;
|
|
683
698
|
};
|
|
684
699
|
protoOf(JsonLiteral).hashCode = function () {
|
|
685
|
-
var result = getBooleanHashCode(this.
|
|
686
|
-
result = imul(31, result) + getStringHashCode(this.
|
|
700
|
+
var result = getBooleanHashCode(this.b4p_1);
|
|
701
|
+
result = imul(31, result) + getStringHashCode(this.d4p_1) | 0;
|
|
687
702
|
return result;
|
|
688
703
|
};
|
|
689
704
|
function get_booleanOrNull(_this__u8e3s4) {
|
|
@@ -692,7 +707,7 @@
|
|
|
692
707
|
}
|
|
693
708
|
function parseLongImpl(_this__u8e3s4) {
|
|
694
709
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
695
|
-
return (new StringJsonLexer(_this__u8e3s4.c3f())).
|
|
710
|
+
return (new StringJsonLexer(_this__u8e3s4.c3f())).e4p();
|
|
696
711
|
}
|
|
697
712
|
function get_float(_this__u8e3s4) {
|
|
698
713
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -753,30 +768,30 @@
|
|
|
753
768
|
return Unit_instance;
|
|
754
769
|
}
|
|
755
770
|
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
756
|
-
return JsonPrimitiveSerializer_getInstance().
|
|
771
|
+
return JsonPrimitiveSerializer_getInstance().f4p_1;
|
|
757
772
|
}
|
|
758
773
|
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
759
|
-
return JsonNullSerializer_getInstance().
|
|
774
|
+
return JsonNullSerializer_getInstance().g4p_1;
|
|
760
775
|
}
|
|
761
776
|
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
762
|
-
return JsonLiteralSerializer_getInstance().
|
|
777
|
+
return JsonLiteralSerializer_getInstance().h4p_1;
|
|
763
778
|
}
|
|
764
779
|
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
765
|
-
return JsonObjectSerializer_getInstance().
|
|
780
|
+
return JsonObjectSerializer_getInstance().i4p_1;
|
|
766
781
|
}
|
|
767
782
|
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
768
|
-
return JsonArraySerializer_getInstance().
|
|
783
|
+
return JsonArraySerializer_getInstance().j4p_1;
|
|
769
784
|
}
|
|
770
785
|
function JsonElementSerializer() {
|
|
771
786
|
JsonElementSerializer_instance = this;
|
|
772
787
|
var tmp = this;
|
|
773
788
|
var tmp_0 = SEALED_getInstance();
|
|
774
|
-
tmp.
|
|
789
|
+
tmp.k4p_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
775
790
|
}
|
|
776
791
|
protoOf(JsonElementSerializer).r1q = function () {
|
|
777
|
-
return this.
|
|
792
|
+
return this.k4p_1;
|
|
778
793
|
};
|
|
779
|
-
protoOf(JsonElementSerializer).
|
|
794
|
+
protoOf(JsonElementSerializer).l4p = function (encoder, value) {
|
|
780
795
|
verify(encoder);
|
|
781
796
|
if (value instanceof JsonPrimitive) {
|
|
782
797
|
encoder.x1v(JsonPrimitiveSerializer_getInstance(), value);
|
|
@@ -793,11 +808,11 @@
|
|
|
793
808
|
}
|
|
794
809
|
};
|
|
795
810
|
protoOf(JsonElementSerializer).s1q = function (encoder, value) {
|
|
796
|
-
return this.
|
|
811
|
+
return this.l4p(encoder, value instanceof JsonElement ? value : THROW_CCE());
|
|
797
812
|
};
|
|
798
813
|
protoOf(JsonElementSerializer).t1q = function (decoder) {
|
|
799
814
|
var input = asJsonDecoder(decoder);
|
|
800
|
-
return input.
|
|
815
|
+
return input.r4o();
|
|
801
816
|
};
|
|
802
817
|
var JsonElementSerializer_instance;
|
|
803
818
|
function JsonElementSerializer_getInstance() {
|
|
@@ -810,12 +825,12 @@
|
|
|
810
825
|
}
|
|
811
826
|
function JsonPrimitiveSerializer() {
|
|
812
827
|
JsonPrimitiveSerializer_instance = this;
|
|
813
|
-
this.
|
|
828
|
+
this.f4p_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
814
829
|
}
|
|
815
830
|
protoOf(JsonPrimitiveSerializer).r1q = function () {
|
|
816
|
-
return this.
|
|
831
|
+
return this.f4p_1;
|
|
817
832
|
};
|
|
818
|
-
protoOf(JsonPrimitiveSerializer).
|
|
833
|
+
protoOf(JsonPrimitiveSerializer).m4p = function (encoder, value) {
|
|
819
834
|
verify(encoder);
|
|
820
835
|
var tmp;
|
|
821
836
|
if (value instanceof JsonNull) {
|
|
@@ -829,10 +844,10 @@
|
|
|
829
844
|
return tmp;
|
|
830
845
|
};
|
|
831
846
|
protoOf(JsonPrimitiveSerializer).s1q = function (encoder, value) {
|
|
832
|
-
return this.
|
|
847
|
+
return this.m4p(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
833
848
|
};
|
|
834
849
|
protoOf(JsonPrimitiveSerializer).t1q = function (decoder) {
|
|
835
|
-
var result = asJsonDecoder(decoder).
|
|
850
|
+
var result = asJsonDecoder(decoder).r4o();
|
|
836
851
|
if (!(result instanceof JsonPrimitive))
|
|
837
852
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
838
853
|
return result;
|
|
@@ -845,17 +860,17 @@
|
|
|
845
860
|
}
|
|
846
861
|
function JsonNullSerializer() {
|
|
847
862
|
JsonNullSerializer_instance = this;
|
|
848
|
-
this.
|
|
863
|
+
this.g4p_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
|
|
849
864
|
}
|
|
850
865
|
protoOf(JsonNullSerializer).r1q = function () {
|
|
851
|
-
return this.
|
|
866
|
+
return this.g4p_1;
|
|
852
867
|
};
|
|
853
|
-
protoOf(JsonNullSerializer).
|
|
868
|
+
protoOf(JsonNullSerializer).n4p = function (encoder, value) {
|
|
854
869
|
verify(encoder);
|
|
855
870
|
encoder.a1v();
|
|
856
871
|
};
|
|
857
872
|
protoOf(JsonNullSerializer).s1q = function (encoder, value) {
|
|
858
|
-
return this.
|
|
873
|
+
return this.n4p(encoder, value instanceof JsonNull ? value : THROW_CCE());
|
|
859
874
|
};
|
|
860
875
|
protoOf(JsonNullSerializer).t1q = function (decoder) {
|
|
861
876
|
verify_0(decoder);
|
|
@@ -873,27 +888,27 @@
|
|
|
873
888
|
}
|
|
874
889
|
function JsonLiteralSerializer() {
|
|
875
890
|
JsonLiteralSerializer_instance = this;
|
|
876
|
-
this.
|
|
891
|
+
this.h4p_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
|
|
877
892
|
}
|
|
878
893
|
protoOf(JsonLiteralSerializer).r1q = function () {
|
|
879
|
-
return this.
|
|
894
|
+
return this.h4p_1;
|
|
880
895
|
};
|
|
881
|
-
protoOf(JsonLiteralSerializer).
|
|
896
|
+
protoOf(JsonLiteralSerializer).o4p = function (encoder, value) {
|
|
882
897
|
verify(encoder);
|
|
883
|
-
if (value.
|
|
884
|
-
return encoder.j1v(value.
|
|
898
|
+
if (value.b4p_1) {
|
|
899
|
+
return encoder.j1v(value.d4p_1);
|
|
885
900
|
}
|
|
886
|
-
if (!(value.
|
|
887
|
-
return encoder.l1v(value.
|
|
901
|
+
if (!(value.c4p_1 == null)) {
|
|
902
|
+
return encoder.l1v(value.c4p_1).j1v(value.d4p_1);
|
|
888
903
|
}
|
|
889
|
-
var tmp0_safe_receiver = toLongOrNull(value.
|
|
904
|
+
var tmp0_safe_receiver = toLongOrNull(value.d4p_1);
|
|
890
905
|
if (tmp0_safe_receiver == null)
|
|
891
906
|
null;
|
|
892
907
|
else {
|
|
893
908
|
// Inline function 'kotlin.let' call
|
|
894
909
|
return encoder.f1v(tmp0_safe_receiver);
|
|
895
910
|
}
|
|
896
|
-
var tmp1_safe_receiver = toULongOrNull(value.
|
|
911
|
+
var tmp1_safe_receiver = toULongOrNull(value.d4p_1);
|
|
897
912
|
var tmp = tmp1_safe_receiver;
|
|
898
913
|
if ((tmp == null ? null : new ULong(tmp)) == null)
|
|
899
914
|
null;
|
|
@@ -907,27 +922,27 @@
|
|
|
907
922
|
tmp_1.f1v(tmp$ret$1);
|
|
908
923
|
return Unit_instance;
|
|
909
924
|
}
|
|
910
|
-
var tmp2_safe_receiver = toDoubleOrNull(value.
|
|
925
|
+
var tmp2_safe_receiver = toDoubleOrNull(value.d4p_1);
|
|
911
926
|
if (tmp2_safe_receiver == null)
|
|
912
927
|
null;
|
|
913
928
|
else {
|
|
914
929
|
// Inline function 'kotlin.let' call
|
|
915
930
|
return encoder.h1v(tmp2_safe_receiver);
|
|
916
931
|
}
|
|
917
|
-
var tmp3_safe_receiver = toBooleanStrictOrNull(value.
|
|
932
|
+
var tmp3_safe_receiver = toBooleanStrictOrNull(value.d4p_1);
|
|
918
933
|
if (tmp3_safe_receiver == null)
|
|
919
934
|
null;
|
|
920
935
|
else {
|
|
921
936
|
// Inline function 'kotlin.let' call
|
|
922
937
|
return encoder.b1v(tmp3_safe_receiver);
|
|
923
938
|
}
|
|
924
|
-
encoder.j1v(value.
|
|
939
|
+
encoder.j1v(value.d4p_1);
|
|
925
940
|
};
|
|
926
941
|
protoOf(JsonLiteralSerializer).s1q = function (encoder, value) {
|
|
927
|
-
return this.
|
|
942
|
+
return this.o4p(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
928
943
|
};
|
|
929
944
|
protoOf(JsonLiteralSerializer).t1q = function (decoder) {
|
|
930
|
-
var result = asJsonDecoder(decoder).
|
|
945
|
+
var result = asJsonDecoder(decoder).r4o();
|
|
931
946
|
if (!(result instanceof JsonLiteral))
|
|
932
947
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
933
948
|
return result;
|
|
@@ -940,41 +955,41 @@
|
|
|
940
955
|
}
|
|
941
956
|
function JsonObjectDescriptor() {
|
|
942
957
|
JsonObjectDescriptor_instance = this;
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
958
|
+
this.p4p_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).r1q();
|
|
959
|
+
this.q4p_1 = 'kotlinx.serialization.json.JsonObject';
|
|
945
960
|
}
|
|
946
961
|
protoOf(JsonObjectDescriptor).s1r = function () {
|
|
947
|
-
return this.
|
|
962
|
+
return this.q4p_1;
|
|
948
963
|
};
|
|
949
964
|
protoOf(JsonObjectDescriptor).q1s = function (index) {
|
|
950
|
-
return this.
|
|
965
|
+
return this.p4p_1.q1s(index);
|
|
951
966
|
};
|
|
952
967
|
protoOf(JsonObjectDescriptor).r1s = function (name) {
|
|
953
|
-
return this.
|
|
968
|
+
return this.p4p_1.r1s(name);
|
|
954
969
|
};
|
|
955
970
|
protoOf(JsonObjectDescriptor).s1s = function (index) {
|
|
956
|
-
return this.
|
|
971
|
+
return this.p4p_1.s1s(index);
|
|
957
972
|
};
|
|
958
973
|
protoOf(JsonObjectDescriptor).t1s = function (index) {
|
|
959
|
-
return this.
|
|
974
|
+
return this.p4p_1.t1s(index);
|
|
960
975
|
};
|
|
961
976
|
protoOf(JsonObjectDescriptor).u1s = function (index) {
|
|
962
|
-
return this.
|
|
977
|
+
return this.p4p_1.u1s(index);
|
|
963
978
|
};
|
|
964
979
|
protoOf(JsonObjectDescriptor).m1s = function () {
|
|
965
|
-
return this.
|
|
980
|
+
return this.p4p_1.m1s();
|
|
966
981
|
};
|
|
967
982
|
protoOf(JsonObjectDescriptor).f1s = function () {
|
|
968
|
-
return this.
|
|
983
|
+
return this.p4p_1.f1s();
|
|
969
984
|
};
|
|
970
985
|
protoOf(JsonObjectDescriptor).n1s = function () {
|
|
971
|
-
return this.
|
|
986
|
+
return this.p4p_1.n1s();
|
|
972
987
|
};
|
|
973
988
|
protoOf(JsonObjectDescriptor).o1s = function () {
|
|
974
|
-
return this.
|
|
989
|
+
return this.p4p_1.o1s();
|
|
975
990
|
};
|
|
976
991
|
protoOf(JsonObjectDescriptor).p1s = function () {
|
|
977
|
-
return this.
|
|
992
|
+
return this.p4p_1.p1s();
|
|
978
993
|
};
|
|
979
994
|
var JsonObjectDescriptor_instance;
|
|
980
995
|
function JsonObjectDescriptor_getInstance() {
|
|
@@ -984,17 +999,17 @@
|
|
|
984
999
|
}
|
|
985
1000
|
function JsonObjectSerializer() {
|
|
986
1001
|
JsonObjectSerializer_instance = this;
|
|
987
|
-
this.
|
|
1002
|
+
this.i4p_1 = JsonObjectDescriptor_getInstance();
|
|
988
1003
|
}
|
|
989
1004
|
protoOf(JsonObjectSerializer).r1q = function () {
|
|
990
|
-
return this.
|
|
1005
|
+
return this.i4p_1;
|
|
991
1006
|
};
|
|
992
|
-
protoOf(JsonObjectSerializer).
|
|
1007
|
+
protoOf(JsonObjectSerializer).r4p = function (encoder, value) {
|
|
993
1008
|
verify(encoder);
|
|
994
1009
|
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).s1q(encoder, value);
|
|
995
1010
|
};
|
|
996
1011
|
protoOf(JsonObjectSerializer).s1q = function (encoder, value) {
|
|
997
|
-
return this.
|
|
1012
|
+
return this.r4p(encoder, value instanceof JsonObject ? value : THROW_CCE());
|
|
998
1013
|
};
|
|
999
1014
|
protoOf(JsonObjectSerializer).t1q = function (decoder) {
|
|
1000
1015
|
verify_0(decoder);
|
|
@@ -1008,41 +1023,41 @@
|
|
|
1008
1023
|
}
|
|
1009
1024
|
function JsonArrayDescriptor() {
|
|
1010
1025
|
JsonArrayDescriptor_instance = this;
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1026
|
+
this.s4p_1 = ListSerializer(JsonElementSerializer_getInstance()).r1q();
|
|
1027
|
+
this.t4p_1 = 'kotlinx.serialization.json.JsonArray';
|
|
1013
1028
|
}
|
|
1014
1029
|
protoOf(JsonArrayDescriptor).s1r = function () {
|
|
1015
|
-
return this.
|
|
1030
|
+
return this.t4p_1;
|
|
1016
1031
|
};
|
|
1017
1032
|
protoOf(JsonArrayDescriptor).q1s = function (index) {
|
|
1018
|
-
return this.
|
|
1033
|
+
return this.s4p_1.q1s(index);
|
|
1019
1034
|
};
|
|
1020
1035
|
protoOf(JsonArrayDescriptor).r1s = function (name) {
|
|
1021
|
-
return this.
|
|
1036
|
+
return this.s4p_1.r1s(name);
|
|
1022
1037
|
};
|
|
1023
1038
|
protoOf(JsonArrayDescriptor).s1s = function (index) {
|
|
1024
|
-
return this.
|
|
1039
|
+
return this.s4p_1.s1s(index);
|
|
1025
1040
|
};
|
|
1026
1041
|
protoOf(JsonArrayDescriptor).t1s = function (index) {
|
|
1027
|
-
return this.
|
|
1042
|
+
return this.s4p_1.t1s(index);
|
|
1028
1043
|
};
|
|
1029
1044
|
protoOf(JsonArrayDescriptor).u1s = function (index) {
|
|
1030
|
-
return this.
|
|
1045
|
+
return this.s4p_1.u1s(index);
|
|
1031
1046
|
};
|
|
1032
1047
|
protoOf(JsonArrayDescriptor).m1s = function () {
|
|
1033
|
-
return this.
|
|
1048
|
+
return this.s4p_1.m1s();
|
|
1034
1049
|
};
|
|
1035
1050
|
protoOf(JsonArrayDescriptor).f1s = function () {
|
|
1036
|
-
return this.
|
|
1051
|
+
return this.s4p_1.f1s();
|
|
1037
1052
|
};
|
|
1038
1053
|
protoOf(JsonArrayDescriptor).n1s = function () {
|
|
1039
|
-
return this.
|
|
1054
|
+
return this.s4p_1.n1s();
|
|
1040
1055
|
};
|
|
1041
1056
|
protoOf(JsonArrayDescriptor).o1s = function () {
|
|
1042
|
-
return this.
|
|
1057
|
+
return this.s4p_1.o1s();
|
|
1043
1058
|
};
|
|
1044
1059
|
protoOf(JsonArrayDescriptor).p1s = function () {
|
|
1045
|
-
return this.
|
|
1060
|
+
return this.s4p_1.p1s();
|
|
1046
1061
|
};
|
|
1047
1062
|
var JsonArrayDescriptor_instance;
|
|
1048
1063
|
function JsonArrayDescriptor_getInstance() {
|
|
@@ -1052,17 +1067,17 @@
|
|
|
1052
1067
|
}
|
|
1053
1068
|
function JsonArraySerializer() {
|
|
1054
1069
|
JsonArraySerializer_instance = this;
|
|
1055
|
-
this.
|
|
1070
|
+
this.j4p_1 = JsonArrayDescriptor_getInstance();
|
|
1056
1071
|
}
|
|
1057
1072
|
protoOf(JsonArraySerializer).r1q = function () {
|
|
1058
|
-
return this.
|
|
1073
|
+
return this.j4p_1;
|
|
1059
1074
|
};
|
|
1060
|
-
protoOf(JsonArraySerializer).
|
|
1075
|
+
protoOf(JsonArraySerializer).u4p = function (encoder, value) {
|
|
1061
1076
|
verify(encoder);
|
|
1062
1077
|
ListSerializer(JsonElementSerializer_getInstance()).s1q(encoder, value);
|
|
1063
1078
|
};
|
|
1064
1079
|
protoOf(JsonArraySerializer).s1q = function (encoder, value) {
|
|
1065
|
-
return this.
|
|
1080
|
+
return this.u4p(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
1066
1081
|
};
|
|
1067
1082
|
protoOf(JsonArraySerializer).t1q = function (decoder) {
|
|
1068
1083
|
verify_0(decoder);
|
|
@@ -1101,7 +1116,7 @@
|
|
|
1101
1116
|
return tmp;
|
|
1102
1117
|
}
|
|
1103
1118
|
function _get_original__l7ku1m($this) {
|
|
1104
|
-
var tmp0 = $this.
|
|
1119
|
+
var tmp0 = $this.v4p_1;
|
|
1105
1120
|
var tmp = KProperty1;
|
|
1106
1121
|
// Inline function 'kotlin.getValue' call
|
|
1107
1122
|
getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
|
|
@@ -1113,7 +1128,7 @@
|
|
|
1113
1128
|
};
|
|
1114
1129
|
}
|
|
1115
1130
|
function defer$1($deferred) {
|
|
1116
|
-
this.
|
|
1131
|
+
this.v4p_1 = lazy($deferred);
|
|
1117
1132
|
}
|
|
1118
1133
|
protoOf(defer$1).s1r = function () {
|
|
1119
1134
|
return _get_original__l7ku1m(this).s1r();
|
|
@@ -1142,155 +1157,155 @@
|
|
|
1142
1157
|
function JsonEncoder() {
|
|
1143
1158
|
}
|
|
1144
1159
|
function Composer(writer) {
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1160
|
+
this.w4p_1 = writer;
|
|
1161
|
+
this.x4p_1 = true;
|
|
1147
1162
|
}
|
|
1148
|
-
protoOf(Composer).x4p = function () {
|
|
1149
|
-
this.w4p_1 = true;
|
|
1150
|
-
};
|
|
1151
1163
|
protoOf(Composer).y4p = function () {
|
|
1152
|
-
|
|
1164
|
+
this.x4p_1 = true;
|
|
1153
1165
|
};
|
|
1154
1166
|
protoOf(Composer).z4p = function () {
|
|
1155
|
-
|
|
1167
|
+
return Unit_instance;
|
|
1156
1168
|
};
|
|
1157
1169
|
protoOf(Composer).a4q = function () {
|
|
1158
|
-
this.
|
|
1170
|
+
this.x4p_1 = false;
|
|
1159
1171
|
};
|
|
1160
1172
|
protoOf(Composer).b4q = function () {
|
|
1161
|
-
|
|
1173
|
+
this.x4p_1 = false;
|
|
1162
1174
|
};
|
|
1163
|
-
protoOf(Composer).c4q = function (
|
|
1164
|
-
return
|
|
1175
|
+
protoOf(Composer).c4q = function () {
|
|
1176
|
+
return Unit_instance;
|
|
1165
1177
|
};
|
|
1166
|
-
protoOf(Composer).
|
|
1167
|
-
return this.
|
|
1178
|
+
protoOf(Composer).d4q = function (v) {
|
|
1179
|
+
return this.w4p_1.e4q(v);
|
|
1168
1180
|
};
|
|
1169
|
-
protoOf(Composer).
|
|
1170
|
-
return this.
|
|
1181
|
+
protoOf(Composer).f4q = function (v) {
|
|
1182
|
+
return this.w4p_1.g4q(v);
|
|
1171
1183
|
};
|
|
1172
1184
|
protoOf(Composer).h4q = function (v) {
|
|
1173
|
-
return this.
|
|
1185
|
+
return this.w4p_1.g4q(v.toString());
|
|
1174
1186
|
};
|
|
1175
1187
|
protoOf(Composer).i4q = function (v) {
|
|
1176
|
-
return this.
|
|
1188
|
+
return this.w4p_1.g4q(v.toString());
|
|
1177
1189
|
};
|
|
1178
|
-
protoOf(Composer).
|
|
1179
|
-
return this.
|
|
1190
|
+
protoOf(Composer).j4q = function (v) {
|
|
1191
|
+
return this.w4p_1.k4q(fromInt(v));
|
|
1180
1192
|
};
|
|
1181
1193
|
protoOf(Composer).l4q = function (v) {
|
|
1182
|
-
return this.
|
|
1194
|
+
return this.w4p_1.k4q(fromInt(v));
|
|
1183
1195
|
};
|
|
1184
1196
|
protoOf(Composer).m4q = function (v) {
|
|
1185
|
-
return this.
|
|
1197
|
+
return this.w4p_1.k4q(fromInt(v));
|
|
1186
1198
|
};
|
|
1187
1199
|
protoOf(Composer).n4q = function (v) {
|
|
1188
|
-
return this.
|
|
1200
|
+
return this.w4p_1.k4q(v);
|
|
1189
1201
|
};
|
|
1190
|
-
protoOf(Composer).o4q = function (
|
|
1191
|
-
return this.
|
|
1202
|
+
protoOf(Composer).o4q = function (v) {
|
|
1203
|
+
return this.w4p_1.g4q(v.toString());
|
|
1204
|
+
};
|
|
1205
|
+
protoOf(Composer).p4q = function (value) {
|
|
1206
|
+
return this.w4p_1.q4q(value);
|
|
1192
1207
|
};
|
|
1193
1208
|
function Composer_0(sb, json) {
|
|
1194
1209
|
return json.o4m_1.c4o_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
1195
1210
|
}
|
|
1196
1211
|
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
1197
1212
|
Composer.call(this, writer);
|
|
1198
|
-
this.
|
|
1213
|
+
this.t4q_1 = forceQuoting;
|
|
1199
1214
|
}
|
|
1200
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1201
|
-
if (this.
|
|
1215
|
+
protoOf(ComposerForUnsignedNumbers).m4q = function (v) {
|
|
1216
|
+
if (this.t4q_1) {
|
|
1202
1217
|
// Inline function 'kotlin.toUInt' call
|
|
1203
1218
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
1204
|
-
this.
|
|
1219
|
+
this.p4q(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
1205
1220
|
} else {
|
|
1206
1221
|
// Inline function 'kotlin.toUInt' call
|
|
1207
1222
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
1208
|
-
this.
|
|
1223
|
+
this.f4q(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
1209
1224
|
}
|
|
1210
1225
|
};
|
|
1211
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1212
|
-
if (this.
|
|
1226
|
+
protoOf(ComposerForUnsignedNumbers).n4q = function (v) {
|
|
1227
|
+
if (this.t4q_1) {
|
|
1213
1228
|
// Inline function 'kotlin.toULong' call
|
|
1214
1229
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
1215
|
-
this.
|
|
1230
|
+
this.p4q(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
1216
1231
|
} else {
|
|
1217
1232
|
// Inline function 'kotlin.toULong' call
|
|
1218
1233
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
1219
|
-
this.
|
|
1234
|
+
this.f4q(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
1220
1235
|
}
|
|
1221
1236
|
};
|
|
1222
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1223
|
-
if (this.
|
|
1237
|
+
protoOf(ComposerForUnsignedNumbers).j4q = function (v) {
|
|
1238
|
+
if (this.t4q_1) {
|
|
1224
1239
|
// Inline function 'kotlin.toUByte' call
|
|
1225
1240
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
1226
|
-
this.
|
|
1241
|
+
this.p4q(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
1227
1242
|
} else {
|
|
1228
1243
|
// Inline function 'kotlin.toUByte' call
|
|
1229
1244
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
1230
|
-
this.
|
|
1245
|
+
this.f4q(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
1231
1246
|
}
|
|
1232
1247
|
};
|
|
1233
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1234
|
-
if (this.
|
|
1248
|
+
protoOf(ComposerForUnsignedNumbers).l4q = function (v) {
|
|
1249
|
+
if (this.t4q_1) {
|
|
1235
1250
|
// Inline function 'kotlin.toUShort' call
|
|
1236
1251
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
1237
|
-
this.
|
|
1252
|
+
this.p4q(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
1238
1253
|
} else {
|
|
1239
1254
|
// Inline function 'kotlin.toUShort' call
|
|
1240
1255
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
1241
|
-
this.
|
|
1256
|
+
this.f4q(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
1242
1257
|
}
|
|
1243
1258
|
};
|
|
1244
1259
|
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
1245
1260
|
Composer.call(this, writer);
|
|
1246
|
-
this.
|
|
1261
|
+
this.w4q_1 = forceQuoting;
|
|
1247
1262
|
}
|
|
1248
|
-
protoOf(ComposerForUnquotedLiterals).
|
|
1249
|
-
if (this.
|
|
1250
|
-
protoOf(Composer).
|
|
1263
|
+
protoOf(ComposerForUnquotedLiterals).p4q = function (value) {
|
|
1264
|
+
if (this.w4q_1) {
|
|
1265
|
+
protoOf(Composer).p4q.call(this, value);
|
|
1251
1266
|
} else {
|
|
1252
|
-
protoOf(Composer).
|
|
1267
|
+
protoOf(Composer).f4q.call(this, value);
|
|
1253
1268
|
}
|
|
1254
1269
|
};
|
|
1255
1270
|
function ComposerWithPrettyPrint(writer, json) {
|
|
1256
1271
|
Composer.call(this, writer);
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1272
|
+
this.z4q_1 = json;
|
|
1273
|
+
this.a4r_1 = 0;
|
|
1259
1274
|
}
|
|
1260
|
-
protoOf(ComposerWithPrettyPrint).x4p = function () {
|
|
1261
|
-
this.w4p_1 = true;
|
|
1262
|
-
this.z4q_1 = this.z4q_1 + 1 | 0;
|
|
1263
|
-
};
|
|
1264
1275
|
protoOf(ComposerWithPrettyPrint).y4p = function () {
|
|
1265
|
-
this.
|
|
1276
|
+
this.x4p_1 = true;
|
|
1277
|
+
this.a4r_1 = this.a4r_1 + 1 | 0;
|
|
1266
1278
|
};
|
|
1267
1279
|
protoOf(ComposerWithPrettyPrint).z4p = function () {
|
|
1268
|
-
this.
|
|
1269
|
-
|
|
1280
|
+
this.a4r_1 = this.a4r_1 - 1 | 0;
|
|
1281
|
+
};
|
|
1282
|
+
protoOf(ComposerWithPrettyPrint).a4q = function () {
|
|
1283
|
+
this.x4p_1 = false;
|
|
1284
|
+
this.f4q('\n');
|
|
1270
1285
|
// Inline function 'kotlin.repeat' call
|
|
1271
|
-
var times = this.
|
|
1286
|
+
var times = this.a4r_1;
|
|
1272
1287
|
var inductionVariable = 0;
|
|
1273
1288
|
if (inductionVariable < times)
|
|
1274
1289
|
do {
|
|
1275
1290
|
var index = inductionVariable;
|
|
1276
1291
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1277
|
-
this.
|
|
1292
|
+
this.f4q(this.z4q_1.o4m_1.e4o_1);
|
|
1278
1293
|
}
|
|
1279
1294
|
while (inductionVariable < times);
|
|
1280
1295
|
};
|
|
1281
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1282
|
-
if (this.
|
|
1283
|
-
this.
|
|
1296
|
+
protoOf(ComposerWithPrettyPrint).b4q = function () {
|
|
1297
|
+
if (this.x4p_1)
|
|
1298
|
+
this.x4p_1 = false;
|
|
1284
1299
|
else {
|
|
1285
|
-
this.
|
|
1300
|
+
this.a4q();
|
|
1286
1301
|
}
|
|
1287
1302
|
};
|
|
1288
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1289
|
-
this.
|
|
1303
|
+
protoOf(ComposerWithPrettyPrint).c4q = function () {
|
|
1304
|
+
this.d4q(_Char___init__impl__6a9atx(32));
|
|
1290
1305
|
};
|
|
1291
1306
|
function readIfAbsent($this, descriptor, index) {
|
|
1292
|
-
$this.
|
|
1293
|
-
return $this.
|
|
1307
|
+
$this.c4r_1 = (!descriptor.u1s(index) && descriptor.t1s(index).f1s());
|
|
1308
|
+
return $this.c4r_1;
|
|
1294
1309
|
}
|
|
1295
1310
|
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
1296
1311
|
var l = function (_this__u8e3s4, p0_0) {
|
|
@@ -1302,14 +1317,14 @@
|
|
|
1302
1317
|
}
|
|
1303
1318
|
function JsonElementMarker(descriptor) {
|
|
1304
1319
|
var tmp = this;
|
|
1305
|
-
tmp.
|
|
1306
|
-
this.
|
|
1320
|
+
tmp.b4r_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
1321
|
+
this.c4r_1 = false;
|
|
1307
1322
|
}
|
|
1308
|
-
protoOf(JsonElementMarker).
|
|
1309
|
-
this.
|
|
1323
|
+
protoOf(JsonElementMarker).d4r = function (index) {
|
|
1324
|
+
this.b4r_1.n20(index);
|
|
1310
1325
|
};
|
|
1311
|
-
protoOf(JsonElementMarker).
|
|
1312
|
-
return this.
|
|
1326
|
+
protoOf(JsonElementMarker).e4r = function () {
|
|
1327
|
+
return this.b4r_1.o20();
|
|
1313
1328
|
};
|
|
1314
1329
|
function JsonDecodingException(message) {
|
|
1315
1330
|
JsonException.call(this, message);
|
|
@@ -1348,10 +1363,10 @@
|
|
|
1348
1363
|
}
|
|
1349
1364
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
1350
1365
|
entity = entity === VOID ? 'object' : entity;
|
|
1351
|
-
_this__u8e3s4.
|
|
1366
|
+
_this__u8e3s4.f4r('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.a4n_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them.");
|
|
1352
1367
|
}
|
|
1353
1368
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
1354
|
-
_this__u8e3s4.
|
|
1369
|
+
_this__u8e3s4.g4r('Unexpected special floating-point value ' + toString(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
|
|
1355
1370
|
}
|
|
1356
1371
|
function JsonEncodingException(message) {
|
|
1357
1372
|
JsonException.call(this, message);
|
|
@@ -1452,7 +1467,7 @@
|
|
|
1452
1467
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1453
1468
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
1454
1469
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
1455
|
-
return tmp.
|
|
1470
|
+
return tmp.i4r(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
1456
1471
|
}
|
|
1457
1472
|
function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
|
|
1458
1473
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1467,7 +1482,7 @@
|
|
|
1467
1482
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1468
1483
|
var tmp = get_schemaCache(json);
|
|
1469
1484
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
1470
|
-
return tmp.
|
|
1485
|
+
return tmp.i4r(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
1471
1486
|
}
|
|
1472
1487
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
1473
1488
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1493,7 +1508,7 @@
|
|
|
1493
1508
|
}
|
|
1494
1509
|
}
|
|
1495
1510
|
var tmp0_safe_receiver = singleOrNull(destination);
|
|
1496
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1511
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j4r_1;
|
|
1497
1512
|
if (tmp1_safe_receiver == null)
|
|
1498
1513
|
null;
|
|
1499
1514
|
else {
|
|
@@ -1520,7 +1535,7 @@
|
|
|
1520
1535
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1521
1536
|
tmp_0 = _this__u8e3s4.q1s(i).toLowerCase();
|
|
1522
1537
|
} else if (!(strategyForClasses == null)) {
|
|
1523
|
-
tmp_0 = strategyForClasses.
|
|
1538
|
+
tmp_0 = strategyForClasses.k4r(_this__u8e3s4, i, _this__u8e3s4.q1s(i));
|
|
1524
1539
|
} else {
|
|
1525
1540
|
tmp_0 = null;
|
|
1526
1541
|
}
|
|
@@ -1556,7 +1571,7 @@
|
|
|
1556
1571
|
while (tmp < tmp_0) {
|
|
1557
1572
|
var tmp_2 = tmp;
|
|
1558
1573
|
var baseName = $this_serializationNamesIndices.q1s(tmp_2);
|
|
1559
|
-
tmp_1[tmp_2] = $strategy.
|
|
1574
|
+
tmp_1[tmp_2] = $strategy.k4r($this_serializationNamesIndices, tmp_2, baseName);
|
|
1560
1575
|
tmp = tmp + 1 | 0;
|
|
1561
1576
|
}
|
|
1562
1577
|
return tmp_1;
|
|
@@ -1587,8 +1602,8 @@
|
|
|
1587
1602
|
return Tombstone_instance;
|
|
1588
1603
|
}
|
|
1589
1604
|
function resize($this) {
|
|
1590
|
-
var newSize = imul($this.
|
|
1591
|
-
$this.
|
|
1605
|
+
var newSize = imul($this.n4r_1, 2);
|
|
1606
|
+
$this.l4r_1 = copyOf($this.l4r_1, newSize);
|
|
1592
1607
|
var tmp = 0;
|
|
1593
1608
|
var tmp_0 = new Int32Array(newSize);
|
|
1594
1609
|
while (tmp < newSize) {
|
|
@@ -1597,7 +1612,7 @@
|
|
|
1597
1612
|
}
|
|
1598
1613
|
var newIndices = tmp_0;
|
|
1599
1614
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1600
|
-
var this_0 = $this.
|
|
1615
|
+
var this_0 = $this.m4r_1;
|
|
1601
1616
|
var endIndex = this_0.length;
|
|
1602
1617
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1603
1618
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1605,12 +1620,12 @@
|
|
|
1605
1620
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1606
1621
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1607
1622
|
arrayCopy(tmp_1, newIndices, 0, 0, endIndex);
|
|
1608
|
-
$this.
|
|
1623
|
+
$this.m4r_1 = newIndices;
|
|
1609
1624
|
}
|
|
1610
1625
|
function JsonPath() {
|
|
1611
1626
|
var tmp = this;
|
|
1612
1627
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1613
|
-
tmp.
|
|
1628
|
+
tmp.l4r_1 = Array(8);
|
|
1614
1629
|
var tmp_0 = this;
|
|
1615
1630
|
var tmp_1 = 0;
|
|
1616
1631
|
var tmp_2 = new Int32Array(8);
|
|
@@ -1618,71 +1633,71 @@
|
|
|
1618
1633
|
tmp_2[tmp_1] = -1;
|
|
1619
1634
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1620
1635
|
}
|
|
1621
|
-
tmp_0.
|
|
1622
|
-
this.
|
|
1636
|
+
tmp_0.m4r_1 = tmp_2;
|
|
1637
|
+
this.n4r_1 = -1;
|
|
1623
1638
|
}
|
|
1624
|
-
protoOf(JsonPath).
|
|
1625
|
-
this.
|
|
1626
|
-
var depth = this.
|
|
1627
|
-
if (depth === this.
|
|
1639
|
+
protoOf(JsonPath).o4r = function (sd) {
|
|
1640
|
+
this.n4r_1 = this.n4r_1 + 1 | 0;
|
|
1641
|
+
var depth = this.n4r_1;
|
|
1642
|
+
if (depth === this.l4r_1.length) {
|
|
1628
1643
|
resize(this);
|
|
1629
1644
|
}
|
|
1630
|
-
this.
|
|
1645
|
+
this.l4r_1[depth] = sd;
|
|
1631
1646
|
};
|
|
1632
|
-
protoOf(JsonPath).
|
|
1633
|
-
this.
|
|
1647
|
+
protoOf(JsonPath).p4r = function (index) {
|
|
1648
|
+
this.m4r_1[this.n4r_1] = index;
|
|
1634
1649
|
};
|
|
1635
|
-
protoOf(JsonPath).
|
|
1650
|
+
protoOf(JsonPath).q4r = function (key) {
|
|
1636
1651
|
var tmp;
|
|
1637
|
-
if (!(this.
|
|
1638
|
-
this.
|
|
1639
|
-
tmp = this.
|
|
1652
|
+
if (!(this.m4r_1[this.n4r_1] === -2)) {
|
|
1653
|
+
this.n4r_1 = this.n4r_1 + 1 | 0;
|
|
1654
|
+
tmp = this.n4r_1 === this.l4r_1.length;
|
|
1640
1655
|
} else {
|
|
1641
1656
|
tmp = false;
|
|
1642
1657
|
}
|
|
1643
1658
|
if (tmp) {
|
|
1644
1659
|
resize(this);
|
|
1645
1660
|
}
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1661
|
+
this.l4r_1[this.n4r_1] = key;
|
|
1662
|
+
this.m4r_1[this.n4r_1] = -2;
|
|
1648
1663
|
};
|
|
1649
|
-
protoOf(JsonPath).
|
|
1650
|
-
if (this.
|
|
1651
|
-
this.
|
|
1664
|
+
protoOf(JsonPath).r4r = function () {
|
|
1665
|
+
if (this.m4r_1[this.n4r_1] === -2) {
|
|
1666
|
+
this.l4r_1[this.n4r_1] = Tombstone_instance;
|
|
1652
1667
|
}
|
|
1653
1668
|
};
|
|
1654
|
-
protoOf(JsonPath).
|
|
1655
|
-
var depth = this.
|
|
1656
|
-
if (this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1669
|
+
protoOf(JsonPath).s4r = function () {
|
|
1670
|
+
var depth = this.n4r_1;
|
|
1671
|
+
if (this.m4r_1[depth] === -2) {
|
|
1672
|
+
this.m4r_1[depth] = -1;
|
|
1673
|
+
this.n4r_1 = this.n4r_1 - 1 | 0;
|
|
1659
1674
|
}
|
|
1660
|
-
if (!(this.
|
|
1661
|
-
this.
|
|
1675
|
+
if (!(this.n4r_1 === -1)) {
|
|
1676
|
+
this.n4r_1 = this.n4r_1 - 1 | 0;
|
|
1662
1677
|
}
|
|
1663
1678
|
};
|
|
1664
|
-
protoOf(JsonPath).
|
|
1679
|
+
protoOf(JsonPath).t4r = function () {
|
|
1665
1680
|
// Inline function 'kotlin.text.buildString' call
|
|
1666
1681
|
// Inline function 'kotlin.apply' call
|
|
1667
1682
|
var this_0 = StringBuilder_init_$Create$();
|
|
1668
1683
|
this_0.q('$');
|
|
1669
1684
|
// Inline function 'kotlin.repeat' call
|
|
1670
|
-
var times = this.
|
|
1685
|
+
var times = this.n4r_1 + 1 | 0;
|
|
1671
1686
|
var inductionVariable = 0;
|
|
1672
1687
|
if (inductionVariable < times)
|
|
1673
1688
|
do {
|
|
1674
1689
|
var index = inductionVariable;
|
|
1675
1690
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1676
|
-
var element = this.
|
|
1691
|
+
var element = this.l4r_1[index];
|
|
1677
1692
|
if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
|
|
1678
1693
|
if (equals(element.m1s(), LIST_getInstance())) {
|
|
1679
|
-
if (!(this.
|
|
1694
|
+
if (!(this.m4r_1[index] === -1)) {
|
|
1680
1695
|
this_0.q('[');
|
|
1681
|
-
this_0.vb(this.
|
|
1696
|
+
this_0.vb(this.m4r_1[index]);
|
|
1682
1697
|
this_0.q(']');
|
|
1683
1698
|
}
|
|
1684
1699
|
} else {
|
|
1685
|
-
var idx = this.
|
|
1700
|
+
var idx = this.m4r_1[index];
|
|
1686
1701
|
if (idx >= 0) {
|
|
1687
1702
|
this_0.q('.');
|
|
1688
1703
|
this_0.q(element.q1s(idx));
|
|
@@ -1702,7 +1717,7 @@
|
|
|
1702
1717
|
return this_0.toString();
|
|
1703
1718
|
};
|
|
1704
1719
|
protoOf(JsonPath).toString = function () {
|
|
1705
|
-
return this.
|
|
1720
|
+
return this.t4r();
|
|
1706
1721
|
};
|
|
1707
1722
|
function checkKind($this, descriptor, actualClass) {
|
|
1708
1723
|
var kind = descriptor.m1s();
|
|
@@ -1715,9 +1730,9 @@
|
|
|
1715
1730
|
if (tmp) {
|
|
1716
1731
|
throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.o() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind.toString() + ' is not concrete. To work with multiple hierarchies, register it as a base class.'));
|
|
1717
1732
|
}
|
|
1718
|
-
if ($this.
|
|
1733
|
+
if ($this.v4r_1)
|
|
1719
1734
|
return Unit_instance;
|
|
1720
|
-
if (!$this.
|
|
1735
|
+
if (!$this.w4r_1)
|
|
1721
1736
|
return Unit_instance;
|
|
1722
1737
|
var tmp_0;
|
|
1723
1738
|
var tmp_1;
|
|
@@ -1743,23 +1758,23 @@
|
|
|
1743
1758
|
var i = inductionVariable;
|
|
1744
1759
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1745
1760
|
var name = descriptor.q1s(i);
|
|
1746
|
-
if (name === $this.
|
|
1761
|
+
if (name === $this.u4r_1) {
|
|
1747
1762
|
throw IllegalArgumentException_init_$Create$('Polymorphic serializer for ' + toString(actualClass) + " has property '" + name + "' that conflicts " + 'with JSON class discriminator. You can either change class discriminator in JsonConfiguration, rename property with @SerialName annotation or fall back to array polymorphism');
|
|
1748
1763
|
}
|
|
1749
1764
|
}
|
|
1750
1765
|
while (inductionVariable < last);
|
|
1751
1766
|
}
|
|
1752
1767
|
function JsonSerializersModuleValidator(configuration) {
|
|
1753
|
-
this.
|
|
1754
|
-
this.
|
|
1755
|
-
this.
|
|
1768
|
+
this.u4r_1 = configuration.h4o_1;
|
|
1769
|
+
this.v4r_1 = configuration.g4o_1;
|
|
1770
|
+
this.w4r_1 = !configuration.o4o_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
1756
1771
|
}
|
|
1757
1772
|
protoOf(JsonSerializersModuleValidator).z2a = function (kClass, provider) {
|
|
1758
1773
|
};
|
|
1759
1774
|
protoOf(JsonSerializersModuleValidator).c2b = function (baseClass, actualClass, actualSerializer) {
|
|
1760
1775
|
var descriptor = actualSerializer.r1q();
|
|
1761
1776
|
checkKind(this, descriptor, actualClass);
|
|
1762
|
-
if (!this.
|
|
1777
|
+
if (!this.v4r_1 && this.w4r_1) {
|
|
1763
1778
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
1764
1779
|
}
|
|
1765
1780
|
};
|
|
@@ -1777,34 +1792,34 @@
|
|
|
1777
1792
|
}
|
|
1778
1793
|
function readObject($this) {
|
|
1779
1794
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
1780
|
-
var lastToken = $this.
|
|
1781
|
-
if ($this.
|
|
1782
|
-
$this.
|
|
1795
|
+
var lastToken = $this.g4s_1.k4s(6);
|
|
1796
|
+
if ($this.g4s_1.l4s() === 4) {
|
|
1797
|
+
$this.g4s_1.g4r('Unexpected leading comma');
|
|
1783
1798
|
}
|
|
1784
1799
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
1785
1800
|
var result = LinkedHashMap_init_$Create$();
|
|
1786
|
-
$l$loop: while ($this.
|
|
1787
|
-
var key = $this.
|
|
1788
|
-
$this.
|
|
1789
|
-
var element = $this.
|
|
1801
|
+
$l$loop: while ($this.g4s_1.m4s()) {
|
|
1802
|
+
var key = $this.h4s_1 ? $this.g4s_1.o4s() : $this.g4s_1.n4s();
|
|
1803
|
+
$this.g4s_1.k4s(5);
|
|
1804
|
+
var element = $this.p4s();
|
|
1790
1805
|
// Inline function 'kotlin.collections.set' call
|
|
1791
1806
|
result.r2(key, element);
|
|
1792
|
-
lastToken = $this.
|
|
1807
|
+
lastToken = $this.g4s_1.q4s();
|
|
1793
1808
|
var tmp0_subject = lastToken;
|
|
1794
1809
|
if (tmp0_subject !== 4)
|
|
1795
1810
|
if (tmp0_subject === 7)
|
|
1796
1811
|
break $l$loop;
|
|
1797
1812
|
else {
|
|
1798
|
-
$this.
|
|
1813
|
+
$this.g4s_1.g4r('Expected end of the object or comma');
|
|
1799
1814
|
}
|
|
1800
1815
|
}
|
|
1801
1816
|
if (lastToken === 6) {
|
|
1802
|
-
$this.
|
|
1817
|
+
$this.g4s_1.k4s(7);
|
|
1803
1818
|
} else if (lastToken === 4) {
|
|
1804
|
-
if (!$this.
|
|
1805
|
-
invalidTrailingComma($this.
|
|
1819
|
+
if (!$this.i4s_1) {
|
|
1820
|
+
invalidTrailingComma($this.g4s_1);
|
|
1806
1821
|
}
|
|
1807
|
-
$this.
|
|
1822
|
+
$this.g4s_1.k4s(7);
|
|
1808
1823
|
}
|
|
1809
1824
|
return new JsonObject(result);
|
|
1810
1825
|
}
|
|
@@ -1815,43 +1830,43 @@
|
|
|
1815
1830
|
return tmp.o8();
|
|
1816
1831
|
}
|
|
1817
1832
|
function readArray($this) {
|
|
1818
|
-
var lastToken = $this.
|
|
1819
|
-
if ($this.
|
|
1820
|
-
$this.
|
|
1833
|
+
var lastToken = $this.g4s_1.q4s();
|
|
1834
|
+
if ($this.g4s_1.l4s() === 4) {
|
|
1835
|
+
$this.g4s_1.g4r('Unexpected leading comma');
|
|
1821
1836
|
}
|
|
1822
1837
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1823
1838
|
var result = ArrayList_init_$Create$();
|
|
1824
|
-
while ($this.
|
|
1825
|
-
var element = $this.
|
|
1839
|
+
while ($this.g4s_1.m4s()) {
|
|
1840
|
+
var element = $this.p4s();
|
|
1826
1841
|
result.e1(element);
|
|
1827
|
-
lastToken = $this.
|
|
1842
|
+
lastToken = $this.g4s_1.q4s();
|
|
1828
1843
|
if (!(lastToken === 4)) {
|
|
1829
|
-
var tmp0 = $this.
|
|
1844
|
+
var tmp0 = $this.g4s_1;
|
|
1830
1845
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1831
1846
|
var condition = lastToken === 9;
|
|
1832
1847
|
var position = tmp0.a4n_1;
|
|
1833
1848
|
if (!condition) {
|
|
1834
1849
|
var tmp$ret$1 = 'Expected end of the array or comma';
|
|
1835
|
-
tmp0.
|
|
1850
|
+
tmp0.g4r(tmp$ret$1, position);
|
|
1836
1851
|
}
|
|
1837
1852
|
}
|
|
1838
1853
|
}
|
|
1839
1854
|
if (lastToken === 8) {
|
|
1840
|
-
$this.
|
|
1855
|
+
$this.g4s_1.k4s(9);
|
|
1841
1856
|
} else if (lastToken === 4) {
|
|
1842
|
-
if (!$this.
|
|
1843
|
-
invalidTrailingComma($this.
|
|
1857
|
+
if (!$this.i4s_1) {
|
|
1858
|
+
invalidTrailingComma($this.g4s_1, 'array');
|
|
1844
1859
|
}
|
|
1845
|
-
$this.
|
|
1860
|
+
$this.g4s_1.k4s(9);
|
|
1846
1861
|
}
|
|
1847
1862
|
return new JsonArray(result);
|
|
1848
1863
|
}
|
|
1849
1864
|
function readValue($this, isString) {
|
|
1850
1865
|
var tmp;
|
|
1851
|
-
if ($this.
|
|
1852
|
-
tmp = $this.
|
|
1866
|
+
if ($this.h4s_1 || !isString) {
|
|
1867
|
+
tmp = $this.g4s_1.o4s();
|
|
1853
1868
|
} else {
|
|
1854
|
-
tmp = $this.
|
|
1869
|
+
tmp = $this.g4s_1.n4s();
|
|
1855
1870
|
}
|
|
1856
1871
|
var string = tmp;
|
|
1857
1872
|
if (!isString && string === 'null')
|
|
@@ -1862,18 +1877,18 @@
|
|
|
1862
1877
|
return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
|
|
1863
1878
|
}
|
|
1864
1879
|
function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
|
|
1865
|
-
this.
|
|
1880
|
+
this.n4t_1 = this$0;
|
|
1866
1881
|
CoroutineImpl.call(this, resultContinuation);
|
|
1867
1882
|
}
|
|
1868
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1869
|
-
var tmp = this.
|
|
1883
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).r4t = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1884
|
+
var tmp = this.s4t($this$DeepRecursiveFunction, it, $completion);
|
|
1870
1885
|
tmp.i8_1 = Unit_instance;
|
|
1871
1886
|
tmp.j8_1 = null;
|
|
1872
1887
|
return tmp.o8();
|
|
1873
1888
|
};
|
|
1874
1889
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).b9 = function (p1, p2, $completion) {
|
|
1875
1890
|
var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
|
|
1876
|
-
return this.
|
|
1891
|
+
return this.r4t(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
|
|
1877
1892
|
};
|
|
1878
1893
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).o8 = function () {
|
|
1879
1894
|
var suspendResult = this.i8_1;
|
|
@@ -1883,32 +1898,32 @@
|
|
|
1883
1898
|
switch (tmp) {
|
|
1884
1899
|
case 0:
|
|
1885
1900
|
this.h8_1 = 3;
|
|
1886
|
-
var tmp0_subject = this.
|
|
1901
|
+
var tmp0_subject = this.n4t_1.g4s_1.l4s();
|
|
1887
1902
|
if (tmp0_subject === 1) {
|
|
1888
|
-
this.
|
|
1903
|
+
this.q4t_1 = readValue(this.n4t_1, true);
|
|
1889
1904
|
this.g8_1 = 2;
|
|
1890
1905
|
continue $sm;
|
|
1891
1906
|
} else {
|
|
1892
1907
|
if (tmp0_subject === 0) {
|
|
1893
|
-
this.
|
|
1908
|
+
this.q4t_1 = readValue(this.n4t_1, false);
|
|
1894
1909
|
this.g8_1 = 2;
|
|
1895
1910
|
continue $sm;
|
|
1896
1911
|
} else {
|
|
1897
1912
|
if (tmp0_subject === 6) {
|
|
1898
1913
|
this.g8_1 = 1;
|
|
1899
|
-
suspendResult = readObject_0(this.
|
|
1914
|
+
suspendResult = readObject_0(this.n4t_1, this.o4t_1, this);
|
|
1900
1915
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1901
1916
|
return suspendResult;
|
|
1902
1917
|
}
|
|
1903
1918
|
continue $sm;
|
|
1904
1919
|
} else {
|
|
1905
1920
|
if (tmp0_subject === 8) {
|
|
1906
|
-
this.
|
|
1921
|
+
this.q4t_1 = readArray(this.n4t_1);
|
|
1907
1922
|
this.g8_1 = 2;
|
|
1908
1923
|
continue $sm;
|
|
1909
1924
|
} else {
|
|
1910
1925
|
var tmp_0 = this;
|
|
1911
|
-
this.
|
|
1926
|
+
this.n4t_1.g4s_1.g4r("Can't begin reading element, unexpected token");
|
|
1912
1927
|
}
|
|
1913
1928
|
}
|
|
1914
1929
|
}
|
|
@@ -1916,11 +1931,11 @@
|
|
|
1916
1931
|
|
|
1917
1932
|
break;
|
|
1918
1933
|
case 1:
|
|
1919
|
-
this.
|
|
1934
|
+
this.q4t_1 = suspendResult;
|
|
1920
1935
|
this.g8_1 = 2;
|
|
1921
1936
|
continue $sm;
|
|
1922
1937
|
case 2:
|
|
1923
|
-
return this.
|
|
1938
|
+
return this.q4t_1;
|
|
1924
1939
|
case 3:
|
|
1925
1940
|
throw this.j8_1;
|
|
1926
1941
|
}
|
|
@@ -1935,24 +1950,24 @@
|
|
|
1935
1950
|
}
|
|
1936
1951
|
while (true);
|
|
1937
1952
|
};
|
|
1938
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1939
|
-
var i = new JsonTreeReader$readDeepRecursive$slambda(this.
|
|
1940
|
-
i.
|
|
1941
|
-
i.
|
|
1953
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).s4t = function ($this$DeepRecursiveFunction, it, completion) {
|
|
1954
|
+
var i = new JsonTreeReader$readDeepRecursive$slambda(this.n4t_1, completion);
|
|
1955
|
+
i.o4t_1 = $this$DeepRecursiveFunction;
|
|
1956
|
+
i.p4t_1 = it;
|
|
1942
1957
|
return i;
|
|
1943
1958
|
};
|
|
1944
1959
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
1945
1960
|
var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
|
|
1946
1961
|
var l = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1947
|
-
return i.
|
|
1962
|
+
return i.r4t($this$DeepRecursiveFunction, it, $completion);
|
|
1948
1963
|
};
|
|
1949
1964
|
l.$arity = 2;
|
|
1950
1965
|
return l;
|
|
1951
1966
|
}
|
|
1952
1967
|
function $readObjectCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1953
1968
|
CoroutineImpl.call(this, resultContinuation);
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1969
|
+
this.z4s_1 = _this__u8e3s4;
|
|
1970
|
+
this.a4t_1 = _this__u8e3s4_0;
|
|
1956
1971
|
}
|
|
1957
1972
|
protoOf($readObjectCOROUTINE$).o8 = function () {
|
|
1958
1973
|
var suspendResult = this.i8_1;
|
|
@@ -1962,26 +1977,26 @@
|
|
|
1962
1977
|
switch (tmp) {
|
|
1963
1978
|
case 0:
|
|
1964
1979
|
this.h8_1 = 5;
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1967
|
-
if (this.
|
|
1968
|
-
this.
|
|
1980
|
+
this.c4t_1 = this.z4s_1;
|
|
1981
|
+
this.d4t_1 = this.c4t_1.g4s_1.k4s(6);
|
|
1982
|
+
if (this.c4t_1.g4s_1.l4s() === 4) {
|
|
1983
|
+
this.c4t_1.g4s_1.g4r('Unexpected leading comma');
|
|
1969
1984
|
}
|
|
1970
1985
|
|
|
1971
1986
|
var tmp_0 = this;
|
|
1972
|
-
tmp_0.
|
|
1987
|
+
tmp_0.b4t_1 = LinkedHashMap_init_$Create$();
|
|
1973
1988
|
this.g8_1 = 1;
|
|
1974
1989
|
continue $sm;
|
|
1975
1990
|
case 1:
|
|
1976
|
-
if (!this.
|
|
1991
|
+
if (!this.c4t_1.g4s_1.m4s()) {
|
|
1977
1992
|
this.g8_1 = 4;
|
|
1978
1993
|
continue $sm;
|
|
1979
1994
|
}
|
|
1980
1995
|
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
1996
|
+
this.e4t_1 = this.c4t_1.h4s_1 ? this.c4t_1.g4s_1.o4s() : this.c4t_1.g4s_1.n4s();
|
|
1997
|
+
this.c4t_1.g4s_1.k4s(5);
|
|
1983
1998
|
this.g8_1 = 2;
|
|
1984
|
-
suspendResult = this.
|
|
1999
|
+
suspendResult = this.a4t_1.jk(Unit_instance, this);
|
|
1985
2000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1986
2001
|
return suspendResult;
|
|
1987
2002
|
}
|
|
@@ -1989,11 +2004,11 @@
|
|
|
1989
2004
|
continue $sm;
|
|
1990
2005
|
case 2:
|
|
1991
2006
|
var element = suspendResult;
|
|
1992
|
-
var tmp0 = this.
|
|
1993
|
-
var key = this.
|
|
2007
|
+
var tmp0 = this.b4t_1;
|
|
2008
|
+
var key = this.e4t_1;
|
|
1994
2009
|
tmp0.r2(key, element);
|
|
1995
|
-
this.
|
|
1996
|
-
var tmp0_subject = this.
|
|
2010
|
+
this.d4t_1 = this.c4t_1.g4s_1.q4s();
|
|
2011
|
+
var tmp0_subject = this.d4t_1;
|
|
1997
2012
|
if (tmp0_subject === 4) {
|
|
1998
2013
|
this.g8_1 = 3;
|
|
1999
2014
|
continue $sm;
|
|
@@ -2002,7 +2017,7 @@
|
|
|
2002
2017
|
this.g8_1 = 4;
|
|
2003
2018
|
continue $sm;
|
|
2004
2019
|
} else {
|
|
2005
|
-
this.
|
|
2020
|
+
this.c4t_1.g4s_1.g4r('Expected end of the object or comma');
|
|
2006
2021
|
}
|
|
2007
2022
|
}
|
|
2008
2023
|
|
|
@@ -2011,16 +2026,16 @@
|
|
|
2011
2026
|
this.g8_1 = 1;
|
|
2012
2027
|
continue $sm;
|
|
2013
2028
|
case 4:
|
|
2014
|
-
if (this.
|
|
2015
|
-
this.
|
|
2016
|
-
} else if (this.
|
|
2017
|
-
if (!this.
|
|
2018
|
-
invalidTrailingComma(this.
|
|
2029
|
+
if (this.d4t_1 === 6) {
|
|
2030
|
+
this.c4t_1.g4s_1.k4s(7);
|
|
2031
|
+
} else if (this.d4t_1 === 4) {
|
|
2032
|
+
if (!this.c4t_1.i4s_1) {
|
|
2033
|
+
invalidTrailingComma(this.c4t_1.g4s_1);
|
|
2019
2034
|
}
|
|
2020
|
-
this.
|
|
2035
|
+
this.c4t_1.g4s_1.k4s(7);
|
|
2021
2036
|
}
|
|
2022
2037
|
|
|
2023
|
-
return new JsonObject(this.
|
|
2038
|
+
return new JsonObject(this.b4t_1);
|
|
2024
2039
|
case 5:
|
|
2025
2040
|
throw this.j8_1;
|
|
2026
2041
|
}
|
|
@@ -2036,13 +2051,13 @@
|
|
|
2036
2051
|
while (true);
|
|
2037
2052
|
};
|
|
2038
2053
|
function JsonTreeReader(configuration, lexer) {
|
|
2039
|
-
this.
|
|
2040
|
-
this.
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2054
|
+
this.g4s_1 = lexer;
|
|
2055
|
+
this.h4s_1 = configuration.a4o_1;
|
|
2056
|
+
this.i4s_1 = configuration.m4o_1;
|
|
2057
|
+
this.j4s_1 = 0;
|
|
2043
2058
|
}
|
|
2044
|
-
protoOf(JsonTreeReader).
|
|
2045
|
-
var token = this.
|
|
2059
|
+
protoOf(JsonTreeReader).p4s = function () {
|
|
2060
|
+
var token = this.g4s_1.l4s();
|
|
2046
2061
|
var tmp;
|
|
2047
2062
|
if (token === 1) {
|
|
2048
2063
|
tmp = readValue(this, true);
|
|
@@ -2050,19 +2065,19 @@
|
|
|
2050
2065
|
tmp = readValue(this, false);
|
|
2051
2066
|
} else if (token === 6) {
|
|
2052
2067
|
var tmp_0;
|
|
2053
|
-
this.
|
|
2054
|
-
if (this.
|
|
2068
|
+
this.j4s_1 = this.j4s_1 + 1 | 0;
|
|
2069
|
+
if (this.j4s_1 === 200) {
|
|
2055
2070
|
tmp_0 = readDeepRecursive(this);
|
|
2056
2071
|
} else {
|
|
2057
2072
|
tmp_0 = readObject(this);
|
|
2058
2073
|
}
|
|
2059
2074
|
var result = tmp_0;
|
|
2060
|
-
this.
|
|
2075
|
+
this.j4s_1 = this.j4s_1 - 1 | 0;
|
|
2061
2076
|
tmp = result;
|
|
2062
2077
|
} else if (token === 8) {
|
|
2063
2078
|
tmp = readArray(this);
|
|
2064
2079
|
} else {
|
|
2065
|
-
this.
|
|
2080
|
+
this.g4s_1.g4r('Cannot read Json element because of unexpected ' + tokenDescription(token));
|
|
2066
2081
|
}
|
|
2067
2082
|
return tmp;
|
|
2068
2083
|
};
|
|
@@ -2071,7 +2086,7 @@
|
|
|
2071
2086
|
while (_iterator__ex2g4s.u()) {
|
|
2072
2087
|
var annotation = _iterator__ex2g4s.v();
|
|
2073
2088
|
if (annotation instanceof JsonClassDiscriminator)
|
|
2074
|
-
return annotation.
|
|
2089
|
+
return annotation.p4o_1;
|
|
2075
2090
|
}
|
|
2076
2091
|
return json.o4m_1.h4o_1;
|
|
2077
2092
|
}
|
|
@@ -2109,11 +2124,11 @@
|
|
|
2109
2124
|
function Key() {
|
|
2110
2125
|
}
|
|
2111
2126
|
function DescriptorSchemaCache() {
|
|
2112
|
-
this.
|
|
2127
|
+
this.h4r_1 = createMapForCache(16);
|
|
2113
2128
|
}
|
|
2114
2129
|
protoOf(DescriptorSchemaCache).t4t = function (descriptor, key, value) {
|
|
2115
2130
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2116
|
-
var this_0 = this.
|
|
2131
|
+
var this_0 = this.h4r_1;
|
|
2117
2132
|
var value_0 = this_0.y2(descriptor);
|
|
2118
2133
|
var tmp;
|
|
2119
2134
|
if (value_0 == null) {
|
|
@@ -2129,7 +2144,7 @@
|
|
|
2129
2144
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
2130
2145
|
tmp0.r2(tmp2, value_1);
|
|
2131
2146
|
};
|
|
2132
|
-
protoOf(DescriptorSchemaCache).
|
|
2147
|
+
protoOf(DescriptorSchemaCache).i4r = function (descriptor, key, defaultValue) {
|
|
2133
2148
|
var tmp0_safe_receiver = this.u4t(descriptor, key);
|
|
2134
2149
|
if (tmp0_safe_receiver == null)
|
|
2135
2150
|
null;
|
|
@@ -2142,7 +2157,7 @@
|
|
|
2142
2157
|
return value;
|
|
2143
2158
|
};
|
|
2144
2159
|
protoOf(DescriptorSchemaCache).u4t = function (descriptor, key) {
|
|
2145
|
-
var tmp0_safe_receiver = this.
|
|
2160
|
+
var tmp0_safe_receiver = this.h4r_1.y2(descriptor);
|
|
2146
2161
|
var tmp;
|
|
2147
2162
|
if (tmp0_safe_receiver == null) {
|
|
2148
2163
|
tmp = null;
|
|
@@ -2169,8 +2184,8 @@
|
|
|
2169
2184
|
}
|
|
2170
2185
|
}
|
|
2171
2186
|
function checkLeadingComma($this) {
|
|
2172
|
-
if ($this.u4m_1.
|
|
2173
|
-
$this.u4m_1.
|
|
2187
|
+
if ($this.u4m_1.l4s() === 4) {
|
|
2188
|
+
$this.u4m_1.g4r('Unexpected leading comma');
|
|
2174
2189
|
}
|
|
2175
2190
|
}
|
|
2176
2191
|
function decodeMapIndex($this) {
|
|
@@ -2184,7 +2199,7 @@
|
|
|
2184
2199
|
$this.u4m_1.w4t(_Char___init__impl__6a9atx(58));
|
|
2185
2200
|
}
|
|
2186
2201
|
var tmp;
|
|
2187
|
-
if ($this.u4m_1.
|
|
2202
|
+
if ($this.u4m_1.m4s()) {
|
|
2188
2203
|
if (decodingKey) {
|
|
2189
2204
|
if ($this.w4m_1 === -1) {
|
|
2190
2205
|
var tmp0 = $this.u4m_1;
|
|
@@ -2193,7 +2208,7 @@
|
|
|
2193
2208
|
var position = tmp0.a4n_1;
|
|
2194
2209
|
if (!condition) {
|
|
2195
2210
|
var tmp$ret$0 = 'Unexpected leading comma';
|
|
2196
|
-
tmp0.
|
|
2211
|
+
tmp0.g4r(tmp$ret$0, position);
|
|
2197
2212
|
}
|
|
2198
2213
|
} else {
|
|
2199
2214
|
var tmp0_0 = $this.u4m_1;
|
|
@@ -2202,7 +2217,7 @@
|
|
|
2202
2217
|
var position_0 = tmp0_0.a4n_1;
|
|
2203
2218
|
if (!condition_0) {
|
|
2204
2219
|
var tmp$ret$2 = 'Expected comma after the key-value pair';
|
|
2205
|
-
tmp0_0.
|
|
2220
|
+
tmp0_0.g4r(tmp$ret$2, position_0);
|
|
2206
2221
|
}
|
|
2207
2222
|
}
|
|
2208
2223
|
}
|
|
@@ -2256,7 +2271,7 @@
|
|
|
2256
2271
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
2257
2272
|
var coerceToNull = !tmp0.o4m_1.d4o_1 && elementDescriptor.f1s();
|
|
2258
2273
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
2259
|
-
$this.u4m_1.
|
|
2274
|
+
$this.u4m_1.n4s();
|
|
2260
2275
|
tmp$ret$1 = true;
|
|
2261
2276
|
break $l$block_2;
|
|
2262
2277
|
}
|
|
@@ -2267,7 +2282,7 @@
|
|
|
2267
2282
|
}
|
|
2268
2283
|
function decodeObjectIndex($this, descriptor) {
|
|
2269
2284
|
var hasComma = $this.u4m_1.x4t();
|
|
2270
|
-
while ($this.u4m_1.
|
|
2285
|
+
while ($this.u4m_1.m4s()) {
|
|
2271
2286
|
hasComma = false;
|
|
2272
2287
|
var key = decodeStringKey($this);
|
|
2273
2288
|
$this.u4m_1.w4t(_Char___init__impl__6a9atx(58));
|
|
@@ -2283,7 +2298,7 @@
|
|
|
2283
2298
|
if (tmp0_safe_receiver == null)
|
|
2284
2299
|
null;
|
|
2285
2300
|
else {
|
|
2286
|
-
tmp0_safe_receiver.
|
|
2301
|
+
tmp0_safe_receiver.d4r(index);
|
|
2287
2302
|
}
|
|
2288
2303
|
return index;
|
|
2289
2304
|
}
|
|
@@ -2300,14 +2315,14 @@
|
|
|
2300
2315
|
invalidTrailingComma($this.u4m_1);
|
|
2301
2316
|
}
|
|
2302
2317
|
var tmp1_safe_receiver = $this.z4m_1;
|
|
2303
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2318
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e4r();
|
|
2304
2319
|
return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2305
2320
|
}
|
|
2306
2321
|
function handleUnknown($this, descriptor, key) {
|
|
2307
2322
|
if (ignoreUnknownKeys(descriptor, $this.s4m_1) || trySkip($this, $this.x4m_1, key)) {
|
|
2308
2323
|
$this.u4m_1.b4u($this.y4m_1.a4o_1);
|
|
2309
2324
|
} else {
|
|
2310
|
-
$this.u4m_1.b4n_1.
|
|
2325
|
+
$this.u4m_1.b4n_1.s4r();
|
|
2311
2326
|
$this.u4m_1.a4u(key);
|
|
2312
2327
|
}
|
|
2313
2328
|
return $this.u4m_1.x4t();
|
|
@@ -2315,9 +2330,9 @@
|
|
|
2315
2330
|
function decodeListIndex($this) {
|
|
2316
2331
|
var hasComma = $this.u4m_1.x4t();
|
|
2317
2332
|
var tmp;
|
|
2318
|
-
if ($this.u4m_1.
|
|
2333
|
+
if ($this.u4m_1.m4s()) {
|
|
2319
2334
|
if (!($this.w4m_1 === -1) && !hasComma) {
|
|
2320
|
-
$this.u4m_1.
|
|
2335
|
+
$this.u4m_1.g4r('Expected end of the array or comma');
|
|
2321
2336
|
}
|
|
2322
2337
|
$this.w4m_1 = $this.w4m_1 + 1 | 0;
|
|
2323
2338
|
tmp = $this.w4m_1;
|
|
@@ -2349,14 +2364,14 @@
|
|
|
2349
2364
|
this.y4m_1 = this.s4m_1.o4m_1;
|
|
2350
2365
|
this.z4m_1 = this.y4m_1.d4o_1 ? null : new JsonElementMarker(descriptor);
|
|
2351
2366
|
}
|
|
2352
|
-
protoOf(StreamingJsonDecoder).
|
|
2367
|
+
protoOf(StreamingJsonDecoder).q4o = function () {
|
|
2353
2368
|
return this.s4m_1;
|
|
2354
2369
|
};
|
|
2355
2370
|
protoOf(StreamingJsonDecoder).u1u = function () {
|
|
2356
2371
|
return this.v4m_1;
|
|
2357
2372
|
};
|
|
2358
|
-
protoOf(StreamingJsonDecoder).
|
|
2359
|
-
return (new JsonTreeReader(this.s4m_1.o4m_1, this.u4m_1)).
|
|
2373
|
+
protoOf(StreamingJsonDecoder).r4o = function () {
|
|
2374
|
+
return (new JsonTreeReader(this.s4m_1.o4m_1, this.u4m_1)).p4s();
|
|
2360
2375
|
};
|
|
2361
2376
|
protoOf(StreamingJsonDecoder).e1u = function (deserializer) {
|
|
2362
2377
|
try {
|
|
@@ -2381,20 +2396,20 @@
|
|
|
2381
2396
|
if (!(tmp2 instanceof AbstractPolymorphicSerializer)) {
|
|
2382
2397
|
tmp_1 = true;
|
|
2383
2398
|
} else {
|
|
2384
|
-
tmp_1 = this.
|
|
2399
|
+
tmp_1 = this.q4o().o4m_1.g4o_1;
|
|
2385
2400
|
}
|
|
2386
2401
|
if (tmp_1) {
|
|
2387
2402
|
tmp$ret$0 = tmp2.t1q(this);
|
|
2388
2403
|
break $l$block;
|
|
2389
2404
|
}
|
|
2390
|
-
var discriminator_0 = classDiscriminator(tmp2.r1q(), this.
|
|
2391
|
-
var tmp0 = this.
|
|
2405
|
+
var discriminator_0 = classDiscriminator(tmp2.r1q(), this.q4o());
|
|
2406
|
+
var tmp0 = this.r4o();
|
|
2392
2407
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2393
2408
|
var serialName = tmp2.r1q().s1r();
|
|
2394
2409
|
if (!(tmp0 instanceof JsonObject)) {
|
|
2395
2410
|
var tmp_2 = getKClass(JsonObject).o();
|
|
2396
2411
|
var tmp_3 = getKClassFromExpression(tmp0).o();
|
|
2397
|
-
var tmp$ret$1 = this.u4m_1.b4n_1.
|
|
2412
|
+
var tmp$ret$1 = this.u4m_1.b4n_1.t4r();
|
|
2398
2413
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
2399
2414
|
}
|
|
2400
2415
|
var jsonTree = tmp0;
|
|
@@ -2415,7 +2430,7 @@
|
|
|
2415
2430
|
}
|
|
2416
2431
|
var tmp_6 = tmp_4;
|
|
2417
2432
|
var actualSerializer = isInterface(tmp_6, DeserializationStrategy) ? tmp_6 : THROW_CCE();
|
|
2418
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
2433
|
+
tmp$ret$0 = readPolymorphicJson(this.q4o(), discriminator_0, jsonTree, actualSerializer);
|
|
2419
2434
|
}
|
|
2420
2435
|
return tmp$ret$0;
|
|
2421
2436
|
} else {
|
|
@@ -2431,7 +2446,7 @@
|
|
|
2431
2446
|
var it_0 = $p;
|
|
2432
2447
|
var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
|
|
2433
2448
|
var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
|
|
2434
|
-
this.u4m_1.
|
|
2449
|
+
this.u4m_1.g4r(message, VOID, hint);
|
|
2435
2450
|
} else {
|
|
2436
2451
|
throw $p;
|
|
2437
2452
|
}
|
|
@@ -2446,7 +2461,7 @@
|
|
|
2446
2461
|
var e = $p;
|
|
2447
2462
|
if (contains(ensureNotNull(e.message), 'at path'))
|
|
2448
2463
|
throw e;
|
|
2449
|
-
throw MissingFieldException_init_$Create$(e.y1r_1, plus(e.message, ' at path: ') + this.u4m_1.b4n_1.
|
|
2464
|
+
throw MissingFieldException_init_$Create$(e.y1r_1, plus(e.message, ' at path: ') + this.u4m_1.b4n_1.t4r(), e);
|
|
2450
2465
|
} else {
|
|
2451
2466
|
throw $p;
|
|
2452
2467
|
}
|
|
@@ -2454,7 +2469,7 @@
|
|
|
2454
2469
|
};
|
|
2455
2470
|
protoOf(StreamingJsonDecoder).f1u = function (descriptor) {
|
|
2456
2471
|
var newMode = switchMode(this.s4m_1, descriptor);
|
|
2457
|
-
this.u4m_1.b4n_1.
|
|
2472
|
+
this.u4m_1.b4n_1.o4r(descriptor);
|
|
2458
2473
|
this.u4m_1.w4t(newMode.h4u_1);
|
|
2459
2474
|
checkLeadingComma(this);
|
|
2460
2475
|
var tmp;
|
|
@@ -2485,12 +2500,12 @@
|
|
|
2485
2500
|
invalidTrailingComma(this.u4m_1, '');
|
|
2486
2501
|
}
|
|
2487
2502
|
this.u4m_1.w4t(this.t4m_1.i4u_1);
|
|
2488
|
-
this.u4m_1.b4n_1.
|
|
2503
|
+
this.u4m_1.b4n_1.s4r();
|
|
2489
2504
|
};
|
|
2490
2505
|
protoOf(StreamingJsonDecoder).q1t = function () {
|
|
2491
2506
|
var tmp;
|
|
2492
2507
|
var tmp0_safe_receiver = this.z4m_1;
|
|
2493
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2508
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c4r_1;
|
|
2494
2509
|
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
2495
2510
|
tmp = !this.u4m_1.j4u();
|
|
2496
2511
|
} else {
|
|
@@ -2504,11 +2519,11 @@
|
|
|
2504
2519
|
protoOf(StreamingJsonDecoder).r1u = function (descriptor, index, deserializer, previousValue) {
|
|
2505
2520
|
var isMapKey = this.t4m_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
2506
2521
|
if (isMapKey) {
|
|
2507
|
-
this.u4m_1.b4n_1.
|
|
2522
|
+
this.u4m_1.b4n_1.r4r();
|
|
2508
2523
|
}
|
|
2509
2524
|
var value = protoOf(AbstractDecoder).r1u.call(this, descriptor, index, deserializer, previousValue);
|
|
2510
2525
|
if (isMapKey) {
|
|
2511
|
-
this.u4m_1.b4n_1.
|
|
2526
|
+
this.u4m_1.b4n_1.q4r(value);
|
|
2512
2527
|
}
|
|
2513
2528
|
return value;
|
|
2514
2529
|
};
|
|
@@ -2526,7 +2541,7 @@
|
|
|
2526
2541
|
break;
|
|
2527
2542
|
}
|
|
2528
2543
|
if (!this.t4m_1.equals(WriteMode_MAP_getInstance())) {
|
|
2529
|
-
this.u4m_1.b4n_1.
|
|
2544
|
+
this.u4m_1.b4n_1.p4r(index);
|
|
2530
2545
|
}
|
|
2531
2546
|
return index;
|
|
2532
2547
|
};
|
|
@@ -2536,21 +2551,21 @@
|
|
|
2536
2551
|
protoOf(StreamingJsonDecoder).t1t = function () {
|
|
2537
2552
|
var value = this.u4m_1.l4u();
|
|
2538
2553
|
if (!(value === fromInt(convertToByte(value)))) {
|
|
2539
|
-
this.u4m_1.
|
|
2554
|
+
this.u4m_1.g4r("Failed to parse byte for input '" + value.toString() + "'");
|
|
2540
2555
|
}
|
|
2541
2556
|
return convertToByte(value);
|
|
2542
2557
|
};
|
|
2543
2558
|
protoOf(StreamingJsonDecoder).u1t = function () {
|
|
2544
2559
|
var value = this.u4m_1.l4u();
|
|
2545
2560
|
if (!(value === fromInt(convertToShort(value)))) {
|
|
2546
|
-
this.u4m_1.
|
|
2561
|
+
this.u4m_1.g4r("Failed to parse short for input '" + value.toString() + "'");
|
|
2547
2562
|
}
|
|
2548
2563
|
return convertToShort(value);
|
|
2549
2564
|
};
|
|
2550
2565
|
protoOf(StreamingJsonDecoder).v1t = function () {
|
|
2551
2566
|
var value = this.u4m_1.l4u();
|
|
2552
2567
|
if (!(value === fromInt(convertToInt(value)))) {
|
|
2553
|
-
this.u4m_1.
|
|
2568
|
+
this.u4m_1.g4r("Failed to parse int for input '" + value.toString() + "'");
|
|
2554
2569
|
}
|
|
2555
2570
|
return convertToInt(value);
|
|
2556
2571
|
};
|
|
@@ -2562,7 +2577,7 @@
|
|
|
2562
2577
|
var tmp$ret$4;
|
|
2563
2578
|
$l$block: {
|
|
2564
2579
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2565
|
-
var input = tmp0.
|
|
2580
|
+
var input = tmp0.o4s();
|
|
2566
2581
|
try {
|
|
2567
2582
|
// Inline function 'kotlin.text.toFloat' call
|
|
2568
2583
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2572,7 +2587,7 @@
|
|
|
2572
2587
|
} catch ($p) {
|
|
2573
2588
|
if ($p instanceof IllegalArgumentException) {
|
|
2574
2589
|
var e = $p;
|
|
2575
|
-
tmp0.
|
|
2590
|
+
tmp0.g4r("Failed to parse type '" + 'float' + "' for input '" + input + "'");
|
|
2576
2591
|
} else {
|
|
2577
2592
|
throw $p;
|
|
2578
2593
|
}
|
|
@@ -2589,14 +2604,14 @@
|
|
|
2589
2604
|
var tmp$ret$1;
|
|
2590
2605
|
$l$block: {
|
|
2591
2606
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2592
|
-
var input = tmp0.
|
|
2607
|
+
var input = tmp0.o4s();
|
|
2593
2608
|
try {
|
|
2594
2609
|
tmp$ret$1 = toDouble(input);
|
|
2595
2610
|
break $l$block;
|
|
2596
2611
|
} catch ($p) {
|
|
2597
2612
|
if ($p instanceof IllegalArgumentException) {
|
|
2598
2613
|
var e = $p;
|
|
2599
|
-
tmp0.
|
|
2614
|
+
tmp0.g4r("Failed to parse type '" + 'double' + "' for input '" + input + "'");
|
|
2600
2615
|
} else {
|
|
2601
2616
|
throw $p;
|
|
2602
2617
|
}
|
|
@@ -2609,9 +2624,9 @@
|
|
|
2609
2624
|
throwInvalidFloatingPointDecoded(this.u4m_1, result);
|
|
2610
2625
|
};
|
|
2611
2626
|
protoOf(StreamingJsonDecoder).z1t = function () {
|
|
2612
|
-
var string = this.u4m_1.
|
|
2627
|
+
var string = this.u4m_1.o4s();
|
|
2613
2628
|
if (!(string.length === 1)) {
|
|
2614
|
-
this.u4m_1.
|
|
2629
|
+
this.u4m_1.g4r("Expected single char, but got '" + string + "'");
|
|
2615
2630
|
}
|
|
2616
2631
|
return charCodeAt(string, 0);
|
|
2617
2632
|
};
|
|
@@ -2620,7 +2635,7 @@
|
|
|
2620
2635
|
if (this.y4m_1.a4o_1) {
|
|
2621
2636
|
tmp = this.u4m_1.d4u();
|
|
2622
2637
|
} else {
|
|
2623
|
-
tmp = this.u4m_1.
|
|
2638
|
+
tmp = this.u4m_1.n4s();
|
|
2624
2639
|
}
|
|
2625
2640
|
return tmp;
|
|
2626
2641
|
};
|
|
@@ -2628,7 +2643,7 @@
|
|
|
2628
2643
|
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.u4m_1, this.s4m_1) : protoOf(AbstractDecoder).c1u.call(this, descriptor);
|
|
2629
2644
|
};
|
|
2630
2645
|
protoOf(StreamingJsonDecoder).b1u = function (enumDescriptor) {
|
|
2631
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.s4m_1, this.a1u(), ' at path ' + this.u4m_1.b4n_1.
|
|
2646
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.s4m_1, this.a1u(), ' at path ' + this.u4m_1.b4n_1.t4r());
|
|
2632
2647
|
};
|
|
2633
2648
|
function JsonDecoderForUnsignedTypes(lexer, json) {
|
|
2634
2649
|
AbstractDecoder.call(this);
|
|
@@ -2647,7 +2662,7 @@
|
|
|
2647
2662
|
var tmp$ret$2;
|
|
2648
2663
|
$l$block: {
|
|
2649
2664
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2650
|
-
var input = tmp0.
|
|
2665
|
+
var input = tmp0.o4s();
|
|
2651
2666
|
try {
|
|
2652
2667
|
// Inline function 'kotlin.UInt.toInt' call
|
|
2653
2668
|
var this_0 = toUInt(input);
|
|
@@ -2656,7 +2671,7 @@
|
|
|
2656
2671
|
} catch ($p) {
|
|
2657
2672
|
if ($p instanceof IllegalArgumentException) {
|
|
2658
2673
|
var e = $p;
|
|
2659
|
-
tmp0.
|
|
2674
|
+
tmp0.g4r("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
|
|
2660
2675
|
} else {
|
|
2661
2676
|
throw $p;
|
|
2662
2677
|
}
|
|
@@ -2669,7 +2684,7 @@
|
|
|
2669
2684
|
var tmp$ret$2;
|
|
2670
2685
|
$l$block: {
|
|
2671
2686
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2672
|
-
var input = tmp0.
|
|
2687
|
+
var input = tmp0.o4s();
|
|
2673
2688
|
try {
|
|
2674
2689
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2675
2690
|
var this_0 = toULong(input);
|
|
@@ -2678,7 +2693,7 @@
|
|
|
2678
2693
|
} catch ($p) {
|
|
2679
2694
|
if ($p instanceof IllegalArgumentException) {
|
|
2680
2695
|
var e = $p;
|
|
2681
|
-
tmp0.
|
|
2696
|
+
tmp0.g4r("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
|
|
2682
2697
|
} else {
|
|
2683
2698
|
throw $p;
|
|
2684
2699
|
}
|
|
@@ -2691,7 +2706,7 @@
|
|
|
2691
2706
|
var tmp$ret$2;
|
|
2692
2707
|
$l$block: {
|
|
2693
2708
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2694
|
-
var input = tmp0.
|
|
2709
|
+
var input = tmp0.o4s();
|
|
2695
2710
|
try {
|
|
2696
2711
|
// Inline function 'kotlin.UByte.toByte' call
|
|
2697
2712
|
var this_0 = toUByte(input);
|
|
@@ -2700,7 +2715,7 @@
|
|
|
2700
2715
|
} catch ($p) {
|
|
2701
2716
|
if ($p instanceof IllegalArgumentException) {
|
|
2702
2717
|
var e = $p;
|
|
2703
|
-
tmp0.
|
|
2718
|
+
tmp0.g4r("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
|
|
2704
2719
|
} else {
|
|
2705
2720
|
throw $p;
|
|
2706
2721
|
}
|
|
@@ -2713,7 +2728,7 @@
|
|
|
2713
2728
|
var tmp$ret$2;
|
|
2714
2729
|
$l$block: {
|
|
2715
2730
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2716
|
-
var input = tmp0.
|
|
2731
|
+
var input = tmp0.o4s();
|
|
2717
2732
|
try {
|
|
2718
2733
|
// Inline function 'kotlin.UShort.toShort' call
|
|
2719
2734
|
var this_0 = toUShort(input);
|
|
@@ -2722,7 +2737,7 @@
|
|
|
2722
2737
|
} catch ($p) {
|
|
2723
2738
|
if ($p instanceof IllegalArgumentException) {
|
|
2724
2739
|
var e = $p;
|
|
2725
|
-
tmp0.
|
|
2740
|
+
tmp0.g4r("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
|
|
2726
2741
|
} else {
|
|
2727
2742
|
throw $p;
|
|
2728
2743
|
}
|
|
@@ -2743,53 +2758,53 @@
|
|
|
2743
2758
|
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
2744
2759
|
}
|
|
2745
2760
|
function encodeTypeInfo($this, discriminator, serialName) {
|
|
2746
|
-
$this.
|
|
2761
|
+
$this.x4r_1.a4q();
|
|
2747
2762
|
$this.j1v(discriminator);
|
|
2748
|
-
$this.
|
|
2749
|
-
$this.
|
|
2763
|
+
$this.x4r_1.d4q(_Char___init__impl__6a9atx(58));
|
|
2764
|
+
$this.x4r_1.c4q();
|
|
2750
2765
|
$this.j1v(serialName);
|
|
2751
2766
|
}
|
|
2752
2767
|
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
2753
2768
|
AbstractEncoder.call(this);
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2756
|
-
this.
|
|
2757
|
-
this.
|
|
2758
|
-
this.
|
|
2759
|
-
this.
|
|
2760
|
-
this.
|
|
2761
|
-
this.d4s_1 = null;
|
|
2769
|
+
this.x4r_1 = composer;
|
|
2770
|
+
this.y4r_1 = json;
|
|
2771
|
+
this.z4r_1 = mode;
|
|
2772
|
+
this.a4s_1 = modeReuseCache;
|
|
2773
|
+
this.b4s_1 = this.y4r_1.u1u();
|
|
2774
|
+
this.c4s_1 = this.y4r_1.o4m_1;
|
|
2775
|
+
this.d4s_1 = false;
|
|
2762
2776
|
this.e4s_1 = null;
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2777
|
+
this.f4s_1 = null;
|
|
2778
|
+
var i = this.z4r_1.a1_1;
|
|
2779
|
+
if (!(this.a4s_1 == null)) {
|
|
2780
|
+
if (!(this.a4s_1[i] === null) || !(this.a4s_1[i] === this)) {
|
|
2781
|
+
this.a4s_1[i] = this;
|
|
2767
2782
|
}
|
|
2768
2783
|
}
|
|
2769
2784
|
}
|
|
2770
|
-
protoOf(StreamingJsonEncoder).
|
|
2771
|
-
return this.
|
|
2785
|
+
protoOf(StreamingJsonEncoder).q4o = function () {
|
|
2786
|
+
return this.y4r_1;
|
|
2772
2787
|
};
|
|
2773
2788
|
protoOf(StreamingJsonEncoder).u1u = function () {
|
|
2774
|
-
return this.
|
|
2789
|
+
return this.b4s_1;
|
|
2775
2790
|
};
|
|
2776
2791
|
protoOf(StreamingJsonEncoder).c1w = function (descriptor, index) {
|
|
2777
|
-
return this.
|
|
2792
|
+
return this.c4s_1.y4n_1;
|
|
2778
2793
|
};
|
|
2779
2794
|
protoOf(StreamingJsonEncoder).x1v = function (serializer, value) {
|
|
2780
2795
|
$l$block: {
|
|
2781
2796
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
2782
|
-
if (this.
|
|
2797
|
+
if (this.q4o().o4m_1.g4o_1) {
|
|
2783
2798
|
serializer.s1q(this, value);
|
|
2784
2799
|
break $l$block;
|
|
2785
2800
|
}
|
|
2786
2801
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
2787
2802
|
var tmp;
|
|
2788
2803
|
if (isPolymorphicSerializer) {
|
|
2789
|
-
tmp = !this.
|
|
2804
|
+
tmp = !this.q4o().o4m_1.o4o_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
2790
2805
|
} else {
|
|
2791
2806
|
var tmp_0;
|
|
2792
|
-
switch (this.
|
|
2807
|
+
switch (this.q4o().o4m_1.o4o_1.a1_1) {
|
|
2793
2808
|
case 0:
|
|
2794
2809
|
case 2:
|
|
2795
2810
|
tmp_0 = false;
|
|
@@ -2807,7 +2822,7 @@
|
|
|
2807
2822
|
tmp = tmp_0;
|
|
2808
2823
|
}
|
|
2809
2824
|
var needDiscriminator = tmp;
|
|
2810
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.r1q(), this.
|
|
2825
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.r1q(), this.q4o()) : null;
|
|
2811
2826
|
var tmp_1;
|
|
2812
2827
|
if (isPolymorphicSerializer) {
|
|
2813
2828
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
@@ -2832,93 +2847,93 @@
|
|
|
2832
2847
|
var actualSerializer = tmp_1;
|
|
2833
2848
|
if (!(baseClassDiscriminator == null)) {
|
|
2834
2849
|
var serialName = actualSerializer.r1q().s1r();
|
|
2835
|
-
this.
|
|
2836
|
-
this.
|
|
2850
|
+
this.e4s_1 = baseClassDiscriminator;
|
|
2851
|
+
this.f4s_1 = serialName;
|
|
2837
2852
|
}
|
|
2838
2853
|
actualSerializer.s1q(this, value);
|
|
2839
2854
|
}
|
|
2840
2855
|
};
|
|
2841
2856
|
protoOf(StreamingJsonEncoder).f1u = function (descriptor) {
|
|
2842
|
-
var newMode = switchMode(this.
|
|
2857
|
+
var newMode = switchMode(this.y4r_1, descriptor);
|
|
2843
2858
|
if (!(newMode.h4u_1 === _Char___init__impl__6a9atx(0))) {
|
|
2844
|
-
this.
|
|
2845
|
-
this.
|
|
2859
|
+
this.x4r_1.d4q(newMode.h4u_1);
|
|
2860
|
+
this.x4r_1.y4p();
|
|
2846
2861
|
}
|
|
2847
|
-
var discriminator = this.
|
|
2862
|
+
var discriminator = this.e4s_1;
|
|
2848
2863
|
if (!(discriminator == null)) {
|
|
2849
|
-
var tmp0_elvis_lhs = this.
|
|
2864
|
+
var tmp0_elvis_lhs = this.f4s_1;
|
|
2850
2865
|
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.s1r() : tmp0_elvis_lhs);
|
|
2851
|
-
this.d4s_1 = null;
|
|
2852
2866
|
this.e4s_1 = null;
|
|
2867
|
+
this.f4s_1 = null;
|
|
2853
2868
|
}
|
|
2854
|
-
if (this.
|
|
2869
|
+
if (this.z4r_1.equals(newMode)) {
|
|
2855
2870
|
return this;
|
|
2856
2871
|
}
|
|
2857
|
-
var tmp1_safe_receiver = this.
|
|
2872
|
+
var tmp1_safe_receiver = this.a4s_1;
|
|
2858
2873
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.a1_1];
|
|
2859
|
-
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.
|
|
2874
|
+
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.x4r_1, this.y4r_1, newMode, this.a4s_1) : tmp2_elvis_lhs;
|
|
2860
2875
|
};
|
|
2861
2876
|
protoOf(StreamingJsonEncoder).g1u = function (descriptor) {
|
|
2862
|
-
if (!(this.
|
|
2863
|
-
this.
|
|
2864
|
-
this.
|
|
2865
|
-
this.
|
|
2877
|
+
if (!(this.z4r_1.i4u_1 === _Char___init__impl__6a9atx(0))) {
|
|
2878
|
+
this.x4r_1.z4p();
|
|
2879
|
+
this.x4r_1.b4q();
|
|
2880
|
+
this.x4r_1.d4q(this.z4r_1.i4u_1);
|
|
2866
2881
|
}
|
|
2867
2882
|
};
|
|
2868
2883
|
protoOf(StreamingJsonEncoder).y1u = function (descriptor, index) {
|
|
2869
|
-
switch (this.
|
|
2884
|
+
switch (this.z4r_1.a1_1) {
|
|
2870
2885
|
case 1:
|
|
2871
|
-
if (!this.
|
|
2872
|
-
this.
|
|
2886
|
+
if (!this.x4r_1.x4p_1) {
|
|
2887
|
+
this.x4r_1.d4q(_Char___init__impl__6a9atx(44));
|
|
2873
2888
|
}
|
|
2874
2889
|
|
|
2875
|
-
this.
|
|
2890
|
+
this.x4r_1.a4q();
|
|
2876
2891
|
break;
|
|
2877
2892
|
case 2:
|
|
2878
|
-
if (!this.
|
|
2893
|
+
if (!this.x4r_1.x4p_1) {
|
|
2879
2894
|
var tmp = this;
|
|
2880
2895
|
var tmp_0;
|
|
2881
2896
|
if ((index % 2 | 0) === 0) {
|
|
2882
|
-
this.
|
|
2883
|
-
this.
|
|
2897
|
+
this.x4r_1.d4q(_Char___init__impl__6a9atx(44));
|
|
2898
|
+
this.x4r_1.a4q();
|
|
2884
2899
|
tmp_0 = true;
|
|
2885
2900
|
} else {
|
|
2886
|
-
this.
|
|
2887
|
-
this.
|
|
2901
|
+
this.x4r_1.d4q(_Char___init__impl__6a9atx(58));
|
|
2902
|
+
this.x4r_1.c4q();
|
|
2888
2903
|
tmp_0 = false;
|
|
2889
2904
|
}
|
|
2890
|
-
tmp.
|
|
2905
|
+
tmp.d4s_1 = tmp_0;
|
|
2891
2906
|
} else {
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2907
|
+
this.d4s_1 = true;
|
|
2908
|
+
this.x4r_1.a4q();
|
|
2894
2909
|
}
|
|
2895
2910
|
|
|
2896
2911
|
break;
|
|
2897
2912
|
case 3:
|
|
2898
2913
|
if (index === 0)
|
|
2899
|
-
this.
|
|
2914
|
+
this.d4s_1 = true;
|
|
2900
2915
|
if (index === 1) {
|
|
2901
|
-
this.
|
|
2902
|
-
this.
|
|
2903
|
-
this.
|
|
2916
|
+
this.x4r_1.d4q(_Char___init__impl__6a9atx(44));
|
|
2917
|
+
this.x4r_1.c4q();
|
|
2918
|
+
this.d4s_1 = false;
|
|
2904
2919
|
}
|
|
2905
2920
|
|
|
2906
2921
|
break;
|
|
2907
2922
|
default:
|
|
2908
|
-
if (!this.
|
|
2909
|
-
this.
|
|
2923
|
+
if (!this.x4r_1.x4p_1) {
|
|
2924
|
+
this.x4r_1.d4q(_Char___init__impl__6a9atx(44));
|
|
2910
2925
|
}
|
|
2911
2926
|
|
|
2912
|
-
this.
|
|
2913
|
-
this.j1v(getJsonElementName(descriptor, this.
|
|
2914
|
-
this.
|
|
2915
|
-
this.
|
|
2927
|
+
this.x4r_1.a4q();
|
|
2928
|
+
this.j1v(getJsonElementName(descriptor, this.y4r_1, index));
|
|
2929
|
+
this.x4r_1.d4q(_Char___init__impl__6a9atx(58));
|
|
2930
|
+
this.x4r_1.c4q();
|
|
2916
2931
|
break;
|
|
2917
2932
|
}
|
|
2918
2933
|
return true;
|
|
2919
2934
|
};
|
|
2920
2935
|
protoOf(StreamingJsonEncoder).y1v = function (descriptor, index, serializer, value) {
|
|
2921
|
-
if (!(value == null) || this.
|
|
2936
|
+
if (!(value == null) || this.c4s_1.d4o_1) {
|
|
2922
2937
|
protoOf(AbstractEncoder).y1v.call(this, descriptor, index, serializer, value);
|
|
2923
2938
|
}
|
|
2924
2939
|
};
|
|
@@ -2927,32 +2942,32 @@
|
|
|
2927
2942
|
if (get_isUnsignedNumber(descriptor)) {
|
|
2928
2943
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2929
2944
|
var tmp_0;
|
|
2930
|
-
var tmp_1 = this.
|
|
2945
|
+
var tmp_1 = this.x4r_1;
|
|
2931
2946
|
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
2932
|
-
tmp_0 = this.
|
|
2947
|
+
tmp_0 = this.x4r_1;
|
|
2933
2948
|
} else {
|
|
2934
|
-
var tmp0 = this.
|
|
2935
|
-
var p1 = this.
|
|
2949
|
+
var tmp0 = this.x4r_1.w4p_1;
|
|
2950
|
+
var p1 = this.d4s_1;
|
|
2936
2951
|
tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
|
|
2937
2952
|
}
|
|
2938
2953
|
var tmp$ret$1 = tmp_0;
|
|
2939
|
-
tmp = new StreamingJsonEncoder(tmp$ret$1, this.
|
|
2954
|
+
tmp = new StreamingJsonEncoder(tmp$ret$1, this.y4r_1, this.z4r_1, null);
|
|
2940
2955
|
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
2941
2956
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2942
2957
|
var tmp_2;
|
|
2943
|
-
var tmp_3 = this.
|
|
2958
|
+
var tmp_3 = this.x4r_1;
|
|
2944
2959
|
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
2945
|
-
tmp_2 = this.
|
|
2960
|
+
tmp_2 = this.x4r_1;
|
|
2946
2961
|
} else {
|
|
2947
|
-
var tmp0_0 = this.
|
|
2948
|
-
var p1_0 = this.
|
|
2962
|
+
var tmp0_0 = this.x4r_1.w4p_1;
|
|
2963
|
+
var p1_0 = this.d4s_1;
|
|
2949
2964
|
tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
|
|
2950
2965
|
}
|
|
2951
2966
|
var tmp$ret$3 = tmp_2;
|
|
2952
|
-
tmp = new StreamingJsonEncoder(tmp$ret$3, this.
|
|
2953
|
-
} else if (!(this.
|
|
2967
|
+
tmp = new StreamingJsonEncoder(tmp$ret$3, this.y4r_1, this.z4r_1, null);
|
|
2968
|
+
} else if (!(this.e4s_1 == null)) {
|
|
2954
2969
|
// Inline function 'kotlin.apply' call
|
|
2955
|
-
this.
|
|
2970
|
+
this.f4s_1 = descriptor.s1r();
|
|
2956
2971
|
tmp = this;
|
|
2957
2972
|
} else {
|
|
2958
2973
|
tmp = protoOf(AbstractEncoder).l1v.call(this, descriptor);
|
|
@@ -2960,68 +2975,68 @@
|
|
|
2960
2975
|
return tmp;
|
|
2961
2976
|
};
|
|
2962
2977
|
protoOf(StreamingJsonEncoder).a1v = function () {
|
|
2963
|
-
this.
|
|
2978
|
+
this.x4r_1.f4q('null');
|
|
2964
2979
|
};
|
|
2965
2980
|
protoOf(StreamingJsonEncoder).b1v = function (value) {
|
|
2966
|
-
if (this.
|
|
2981
|
+
if (this.d4s_1) {
|
|
2967
2982
|
this.j1v(value.toString());
|
|
2968
2983
|
} else {
|
|
2969
|
-
this.
|
|
2984
|
+
this.x4r_1.o4q(value);
|
|
2970
2985
|
}
|
|
2971
2986
|
};
|
|
2972
2987
|
protoOf(StreamingJsonEncoder).c1v = function (value) {
|
|
2973
|
-
if (this.
|
|
2988
|
+
if (this.d4s_1) {
|
|
2974
2989
|
this.j1v(value.toString());
|
|
2975
2990
|
} else {
|
|
2976
|
-
this.
|
|
2991
|
+
this.x4r_1.j4q(value);
|
|
2977
2992
|
}
|
|
2978
2993
|
};
|
|
2979
2994
|
protoOf(StreamingJsonEncoder).d1v = function (value) {
|
|
2980
|
-
if (this.
|
|
2995
|
+
if (this.d4s_1) {
|
|
2981
2996
|
this.j1v(value.toString());
|
|
2982
2997
|
} else {
|
|
2983
|
-
this.
|
|
2998
|
+
this.x4r_1.l4q(value);
|
|
2984
2999
|
}
|
|
2985
3000
|
};
|
|
2986
3001
|
protoOf(StreamingJsonEncoder).e1v = function (value) {
|
|
2987
|
-
if (this.
|
|
3002
|
+
if (this.d4s_1) {
|
|
2988
3003
|
this.j1v(value.toString());
|
|
2989
3004
|
} else {
|
|
2990
|
-
this.
|
|
3005
|
+
this.x4r_1.m4q(value);
|
|
2991
3006
|
}
|
|
2992
3007
|
};
|
|
2993
3008
|
protoOf(StreamingJsonEncoder).f1v = function (value) {
|
|
2994
|
-
if (this.
|
|
3009
|
+
if (this.d4s_1) {
|
|
2995
3010
|
this.j1v(value.toString());
|
|
2996
3011
|
} else {
|
|
2997
|
-
this.
|
|
3012
|
+
this.x4r_1.n4q(value);
|
|
2998
3013
|
}
|
|
2999
3014
|
};
|
|
3000
3015
|
protoOf(StreamingJsonEncoder).g1v = function (value) {
|
|
3001
|
-
if (this.
|
|
3016
|
+
if (this.d4s_1) {
|
|
3002
3017
|
this.j1v(value.toString());
|
|
3003
3018
|
} else {
|
|
3004
|
-
this.
|
|
3019
|
+
this.x4r_1.h4q(value);
|
|
3005
3020
|
}
|
|
3006
|
-
if (!this.
|
|
3007
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
3021
|
+
if (!this.c4s_1.i4o_1 && !isFinite(value)) {
|
|
3022
|
+
throw InvalidFloatingPointEncoded(value, toString(this.x4r_1.w4p_1));
|
|
3008
3023
|
}
|
|
3009
3024
|
};
|
|
3010
3025
|
protoOf(StreamingJsonEncoder).h1v = function (value) {
|
|
3011
|
-
if (this.
|
|
3026
|
+
if (this.d4s_1) {
|
|
3012
3027
|
this.j1v(value.toString());
|
|
3013
3028
|
} else {
|
|
3014
|
-
this.
|
|
3029
|
+
this.x4r_1.i4q(value);
|
|
3015
3030
|
}
|
|
3016
|
-
if (!this.
|
|
3017
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
3031
|
+
if (!this.c4s_1.i4o_1 && !isFinite_0(value)) {
|
|
3032
|
+
throw InvalidFloatingPointEncoded(value, toString(this.x4r_1.w4p_1));
|
|
3018
3033
|
}
|
|
3019
3034
|
};
|
|
3020
3035
|
protoOf(StreamingJsonEncoder).i1v = function (value) {
|
|
3021
3036
|
this.j1v(toString_1(value));
|
|
3022
3037
|
};
|
|
3023
3038
|
protoOf(StreamingJsonEncoder).j1v = function (value) {
|
|
3024
|
-
return this.
|
|
3039
|
+
return this.x4r_1.p4q(value);
|
|
3025
3040
|
};
|
|
3026
3041
|
protoOf(StreamingJsonEncoder).k1v = function (enumDescriptor, index) {
|
|
3027
3042
|
this.j1v(enumDescriptor.q1s(index));
|
|
@@ -3203,16 +3218,16 @@
|
|
|
3203
3218
|
this.q4u_1 = json;
|
|
3204
3219
|
this.r4u_1 = value;
|
|
3205
3220
|
this.s4u_1 = polymorphicDiscriminator;
|
|
3206
|
-
this.t4u_1 = this.
|
|
3221
|
+
this.t4u_1 = this.q4o().o4m_1;
|
|
3207
3222
|
}
|
|
3208
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3223
|
+
protoOf(AbstractJsonTreeDecoder).q4o = function () {
|
|
3209
3224
|
return this.q4u_1;
|
|
3210
3225
|
};
|
|
3211
3226
|
protoOf(AbstractJsonTreeDecoder).m1 = function () {
|
|
3212
3227
|
return this.r4u_1;
|
|
3213
3228
|
};
|
|
3214
3229
|
protoOf(AbstractJsonTreeDecoder).u1u = function () {
|
|
3215
|
-
return this.
|
|
3230
|
+
return this.q4o().u1u();
|
|
3216
3231
|
};
|
|
3217
3232
|
protoOf(AbstractJsonTreeDecoder).v4u = function () {
|
|
3218
3233
|
var tmp0_safe_receiver = this.p28();
|
|
@@ -3229,7 +3244,7 @@
|
|
|
3229
3244
|
protoOf(AbstractJsonTreeDecoder).u4u = function (currentTag) {
|
|
3230
3245
|
return this.r28() + ('.' + currentTag);
|
|
3231
3246
|
};
|
|
3232
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3247
|
+
protoOf(AbstractJsonTreeDecoder).r4o = function () {
|
|
3233
3248
|
return this.v4u();
|
|
3234
3249
|
};
|
|
3235
3250
|
protoOf(AbstractJsonTreeDecoder).e1u = function (deserializer) {
|
|
@@ -3240,14 +3255,14 @@
|
|
|
3240
3255
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
3241
3256
|
tmp = true;
|
|
3242
3257
|
} else {
|
|
3243
|
-
tmp = this.
|
|
3258
|
+
tmp = this.q4o().o4m_1.g4o_1;
|
|
3244
3259
|
}
|
|
3245
3260
|
if (tmp) {
|
|
3246
3261
|
tmp$ret$0 = deserializer.t1q(this);
|
|
3247
3262
|
break $l$block;
|
|
3248
3263
|
}
|
|
3249
|
-
var discriminator = classDiscriminator(deserializer.r1q(), this.
|
|
3250
|
-
var tmp0 = this.
|
|
3264
|
+
var discriminator = classDiscriminator(deserializer.r1q(), this.q4o());
|
|
3265
|
+
var tmp0 = this.r4o();
|
|
3251
3266
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3252
3267
|
var serialName = deserializer.r1q().s1r();
|
|
3253
3268
|
if (!(tmp0 instanceof JsonObject)) {
|
|
@@ -3274,7 +3289,7 @@
|
|
|
3274
3289
|
}
|
|
3275
3290
|
var tmp_4 = tmp_2;
|
|
3276
3291
|
var actualSerializer = isInterface(tmp_4, DeserializationStrategy) ? tmp_4 : THROW_CCE();
|
|
3277
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
3292
|
+
tmp$ret$0 = readPolymorphicJson(this.q4o(), discriminator, jsonTree, actualSerializer);
|
|
3278
3293
|
}
|
|
3279
3294
|
return tmp$ret$0;
|
|
3280
3295
|
};
|
|
@@ -3292,7 +3307,7 @@
|
|
|
3292
3307
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
3293
3308
|
}
|
|
3294
3309
|
if (tmp_0) {
|
|
3295
|
-
var tmp_1 = this.
|
|
3310
|
+
var tmp_1 = this.q4o();
|
|
3296
3311
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3297
3312
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3298
3313
|
var serialName = descriptor.s1r();
|
|
@@ -3306,7 +3321,7 @@
|
|
|
3306
3321
|
} else {
|
|
3307
3322
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
3308
3323
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
3309
|
-
var this_0 = this.
|
|
3324
|
+
var this_0 = this.q4o();
|
|
3310
3325
|
var keyDescriptor = carrierDescriptor(descriptor.t1s(0), this_0.u1u());
|
|
3311
3326
|
var keyKind = keyDescriptor.m1s();
|
|
3312
3327
|
var tmp_4;
|
|
@@ -3317,7 +3332,7 @@
|
|
|
3317
3332
|
tmp_5 = equals(keyKind, ENUM_getInstance());
|
|
3318
3333
|
}
|
|
3319
3334
|
if (tmp_5) {
|
|
3320
|
-
var tmp_6 = this.
|
|
3335
|
+
var tmp_6 = this.q4o();
|
|
3321
3336
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3322
3337
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3323
3338
|
var serialName_0 = descriptor.s1r();
|
|
@@ -3330,7 +3345,7 @@
|
|
|
3330
3345
|
tmp_4 = new JsonTreeMapDecoder(tmp_6, currentObject);
|
|
3331
3346
|
} else {
|
|
3332
3347
|
if (this_0.o4m_1.b4o_1) {
|
|
3333
|
-
var tmp_9 = this.
|
|
3348
|
+
var tmp_9 = this.q4o();
|
|
3334
3349
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3335
3350
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3336
3351
|
var serialName_1 = descriptor.s1r();
|
|
@@ -3347,7 +3362,7 @@
|
|
|
3347
3362
|
}
|
|
3348
3363
|
tmp = tmp_4;
|
|
3349
3364
|
} else {
|
|
3350
|
-
var tmp_12 = this.
|
|
3365
|
+
var tmp_12 = this.q4o();
|
|
3351
3366
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3352
3367
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3353
3368
|
var serialName_2 = descriptor.s1r();
|
|
@@ -3369,7 +3384,7 @@
|
|
|
3369
3384
|
return !(tmp instanceof JsonNull);
|
|
3370
3385
|
};
|
|
3371
3386
|
protoOf(AbstractJsonTreeDecoder).x4u = function (tag, enumDescriptor) {
|
|
3372
|
-
var tmp = this.
|
|
3387
|
+
var tmp = this.q4o();
|
|
3373
3388
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3374
3389
|
var tmp2 = this.w4u(tag);
|
|
3375
3390
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
@@ -3643,7 +3658,7 @@
|
|
|
3643
3658
|
}
|
|
3644
3659
|
}
|
|
3645
3660
|
var result = tmp$ret$4;
|
|
3646
|
-
var specialFp = this.
|
|
3661
|
+
var specialFp = this.q4o().o4m_1.i4o_1;
|
|
3647
3662
|
if (specialFp || isFinite(result))
|
|
3648
3663
|
return result;
|
|
3649
3664
|
throw InvalidFloatingPointDecoded(result, tag, toString(this.v4u()));
|
|
@@ -3685,7 +3700,7 @@
|
|
|
3685
3700
|
}
|
|
3686
3701
|
}
|
|
3687
3702
|
var result = tmp$ret$4;
|
|
3688
|
-
var specialFp = this.
|
|
3703
|
+
var specialFp = this.q4o().o4m_1.i4o_1;
|
|
3689
3704
|
if (specialFp || isFinite_0(result))
|
|
3690
3705
|
return result;
|
|
3691
3706
|
throw InvalidFloatingPointDecoded(result, tag, toString(this.v4u()));
|
|
@@ -3744,10 +3759,10 @@
|
|
|
3744
3759
|
var value_0 = value;
|
|
3745
3760
|
if (!(value_0 instanceof JsonLiteral))
|
|
3746
3761
|
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.u4u(tag), toString(this.v4u()));
|
|
3747
|
-
if (!value_0.
|
|
3762
|
+
if (!value_0.b4p_1 && !this.q4o().o4m_1.a4o_1) {
|
|
3748
3763
|
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.u4u(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.v4u()));
|
|
3749
3764
|
}
|
|
3750
|
-
return value_0.
|
|
3765
|
+
return value_0.d4p_1;
|
|
3751
3766
|
};
|
|
3752
3767
|
protoOf(AbstractJsonTreeDecoder).c29 = function (tag) {
|
|
3753
3768
|
return this.h4v((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
@@ -3755,7 +3770,7 @@
|
|
|
3755
3770
|
protoOf(AbstractJsonTreeDecoder).i4v = function (tag, inlineDescriptor) {
|
|
3756
3771
|
var tmp;
|
|
3757
3772
|
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
3758
|
-
var tmp_0 = this.
|
|
3773
|
+
var tmp_0 = this.q4o();
|
|
3759
3774
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3760
3775
|
var tmp2 = this.w4u(tag);
|
|
3761
3776
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
@@ -3768,7 +3783,7 @@
|
|
|
3768
3783
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3769
3784
|
}
|
|
3770
3785
|
var lexer = StringJsonLexer_0(tmp_0, tmp2.c3f());
|
|
3771
|
-
tmp = new JsonDecoderForUnsignedTypes(lexer, this.
|
|
3786
|
+
tmp = new JsonDecoderForUnsignedTypes(lexer, this.q4o());
|
|
3772
3787
|
} else {
|
|
3773
3788
|
tmp = protoOf(NamedValueDecoder).e29.call(this, tag, inlineDescriptor);
|
|
3774
3789
|
}
|
|
@@ -3778,10 +3793,10 @@
|
|
|
3778
3793
|
return this.i4v((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
3779
3794
|
};
|
|
3780
3795
|
protoOf(AbstractJsonTreeDecoder).c1u = function (descriptor) {
|
|
3781
|
-
return !(this.p28() == null) ? protoOf(NamedValueDecoder).c1u.call(this, descriptor) : (new JsonPrimitiveDecoder(this.
|
|
3796
|
+
return !(this.p28() == null) ? protoOf(NamedValueDecoder).c1u.call(this, descriptor) : (new JsonPrimitiveDecoder(this.q4o(), this.m1(), this.s4u_1)).c1u(descriptor);
|
|
3782
3797
|
};
|
|
3783
3798
|
function setForceNull($this, descriptor, index) {
|
|
3784
|
-
$this.s4v_1 = (!$this.
|
|
3799
|
+
$this.s4v_1 = (!$this.q4o().o4m_1.d4o_1 && !descriptor.u1s(index) && descriptor.t1s(index).f1s());
|
|
3785
3800
|
return $this.s4v_1;
|
|
3786
3801
|
}
|
|
3787
3802
|
function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
@@ -3815,7 +3830,7 @@
|
|
|
3815
3830
|
if (tmp) {
|
|
3816
3831
|
if (!this.t4u_1.f4o_1)
|
|
3817
3832
|
return index;
|
|
3818
|
-
var tmp0 = this.
|
|
3833
|
+
var tmp0 = this.q4o();
|
|
3819
3834
|
var tmp$ret$3;
|
|
3820
3835
|
$l$block_2: {
|
|
3821
3836
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -3877,7 +3892,7 @@
|
|
|
3877
3892
|
return !this.s4v_1 && protoOf(AbstractJsonTreeDecoder).q1t.call(this);
|
|
3878
3893
|
};
|
|
3879
3894
|
protoOf(JsonTreeDecoder).l28 = function (descriptor, index) {
|
|
3880
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3895
|
+
var strategy = namingStrategy(descriptor, this.q4o());
|
|
3881
3896
|
var baseName = descriptor.q1s(index);
|
|
3882
3897
|
if (strategy == null) {
|
|
3883
3898
|
if (!this.t4u_1.j4o_1)
|
|
@@ -3885,7 +3900,7 @@
|
|
|
3885
3900
|
if (this.m1().u2().h2(baseName))
|
|
3886
3901
|
return baseName;
|
|
3887
3902
|
}
|
|
3888
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
3903
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.q4o(), descriptor);
|
|
3889
3904
|
// Inline function 'kotlin.collections.find' call
|
|
3890
3905
|
var tmp0 = this.m1().u2();
|
|
3891
3906
|
var tmp$ret$1;
|
|
@@ -3908,7 +3923,7 @@
|
|
|
3908
3923
|
// Inline function 'kotlin.let' call
|
|
3909
3924
|
return tmp0_safe_receiver;
|
|
3910
3925
|
}
|
|
3911
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
3926
|
+
var fallbackName = strategy == null ? null : strategy.k4r(descriptor, index, baseName);
|
|
3912
3927
|
return fallbackName == null ? baseName : fallbackName;
|
|
3913
3928
|
};
|
|
3914
3929
|
protoOf(JsonTreeDecoder).w4u = function (tag) {
|
|
@@ -3919,7 +3934,7 @@
|
|
|
3919
3934
|
};
|
|
3920
3935
|
protoOf(JsonTreeDecoder).f1u = function (descriptor) {
|
|
3921
3936
|
if (descriptor === this.q4v_1) {
|
|
3922
|
-
var tmp = this.
|
|
3937
|
+
var tmp = this.q4o();
|
|
3923
3938
|
var tmp2 = this.v4u();
|
|
3924
3939
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3925
3940
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
@@ -3936,7 +3951,7 @@
|
|
|
3936
3951
|
};
|
|
3937
3952
|
protoOf(JsonTreeDecoder).g1u = function (descriptor) {
|
|
3938
3953
|
var tmp;
|
|
3939
|
-
if (ignoreUnknownKeys(descriptor, this.
|
|
3954
|
+
if (ignoreUnknownKeys(descriptor, this.q4o())) {
|
|
3940
3955
|
tmp = true;
|
|
3941
3956
|
} else {
|
|
3942
3957
|
var tmp_0 = descriptor.m1s();
|
|
@@ -3944,15 +3959,15 @@
|
|
|
3944
3959
|
}
|
|
3945
3960
|
if (tmp)
|
|
3946
3961
|
return Unit_instance;
|
|
3947
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3962
|
+
var strategy = namingStrategy(descriptor, this.q4o());
|
|
3948
3963
|
var tmp_1;
|
|
3949
3964
|
if (strategy == null && !this.t4u_1.j4o_1) {
|
|
3950
3965
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
3951
3966
|
} else if (!(strategy == null)) {
|
|
3952
|
-
tmp_1 = deserializationNamesMap(this.
|
|
3967
|
+
tmp_1 = deserializationNamesMap(this.q4o(), descriptor).u2();
|
|
3953
3968
|
} else {
|
|
3954
3969
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
3955
|
-
var tmp0_safe_receiver = get_schemaCache(this.
|
|
3970
|
+
var tmp0_safe_receiver = get_schemaCache(this.q4o()).u4t(descriptor, get_JsonDeserializationNamesKey());
|
|
3956
3971
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3957
3972
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2();
|
|
3958
3973
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -4155,7 +4170,7 @@
|
|
|
4155
4170
|
var currentPosition = startPosition;
|
|
4156
4171
|
currentPosition = $this.a4x(currentPosition);
|
|
4157
4172
|
if (currentPosition === -1) {
|
|
4158
|
-
$this.
|
|
4173
|
+
$this.g4r('Expected escape sequence to continue, got EOF');
|
|
4159
4174
|
}
|
|
4160
4175
|
var tmp = $this.z4w();
|
|
4161
4176
|
var _unary__edvuaz = currentPosition;
|
|
@@ -4168,7 +4183,7 @@
|
|
|
4168
4183
|
var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
4169
4184
|
var c = escapeToChar(tmp$ret$0);
|
|
4170
4185
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
4171
|
-
$this.
|
|
4186
|
+
$this.g4r("Invalid escaped char '" + toString_1(currentChar) + "'");
|
|
4172
4187
|
}
|
|
4173
4188
|
$this.d4n_1.s(c);
|
|
4174
4189
|
return currentPosition;
|
|
@@ -4178,7 +4193,7 @@
|
|
|
4178
4193
|
$this.a4n_1 = startPos;
|
|
4179
4194
|
$this.b4x();
|
|
4180
4195
|
if (($this.a4n_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
4181
|
-
$this.
|
|
4196
|
+
$this.g4r('Unexpected EOF during unicode escape');
|
|
4182
4197
|
}
|
|
4183
4198
|
return appendHex($this, source, $this.a4n_1);
|
|
4184
4199
|
}
|
|
@@ -4207,14 +4222,14 @@
|
|
|
4207
4222
|
var this_2 = _Char___init__impl__6a9atx(65);
|
|
4208
4223
|
tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
|
|
4209
4224
|
} else {
|
|
4210
|
-
$this.
|
|
4225
|
+
$this.g4r("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
|
|
4211
4226
|
}
|
|
4212
4227
|
return tmp;
|
|
4213
4228
|
}
|
|
4214
4229
|
function consumeBoolean2($this, start) {
|
|
4215
4230
|
var current = $this.a4x(start);
|
|
4216
4231
|
if (current >= charSequenceLength($this.z4w()) || current === -1) {
|
|
4217
|
-
$this.
|
|
4232
|
+
$this.g4r('EOF');
|
|
4218
4233
|
}
|
|
4219
4234
|
var tmp = $this.z4w();
|
|
4220
4235
|
var _unary__edvuaz = current;
|
|
@@ -4235,14 +4250,14 @@
|
|
|
4235
4250
|
consumeBooleanLiteral($this, 'alse', current);
|
|
4236
4251
|
tmp_0 = false;
|
|
4237
4252
|
} else {
|
|
4238
|
-
$this.
|
|
4253
|
+
$this.g4r("Expected valid boolean literal prefix, but had '" + $this.o4s() + "'");
|
|
4239
4254
|
}
|
|
4240
4255
|
}
|
|
4241
4256
|
return tmp_0;
|
|
4242
4257
|
}
|
|
4243
4258
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
4244
4259
|
if ((charSequenceLength($this.z4w()) - current | 0) < literalSuffix.length) {
|
|
4245
|
-
$this.
|
|
4260
|
+
$this.g4r('Unexpected end of boolean literal');
|
|
4246
4261
|
}
|
|
4247
4262
|
var inductionVariable = 0;
|
|
4248
4263
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -4256,7 +4271,7 @@
|
|
|
4256
4271
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
4257
4272
|
// Inline function 'kotlin.code' call
|
|
4258
4273
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
4259
|
-
$this.
|
|
4274
|
+
$this.g4r("Expected valid boolean literal prefix, but had '" + $this.o4s() + "'");
|
|
4260
4275
|
}
|
|
4261
4276
|
}
|
|
4262
4277
|
while (inductionVariable <= last);
|
|
@@ -4306,20 +4321,20 @@
|
|
|
4306
4321
|
return c === _Char___init__impl__6a9atx(125) || c === _Char___init__impl__6a9atx(93) || (c === _Char___init__impl__6a9atx(58) || c === _Char___init__impl__6a9atx(44)) ? false : true;
|
|
4307
4322
|
};
|
|
4308
4323
|
protoOf(AbstractJsonLexer).e4n = function () {
|
|
4309
|
-
var nextToken = this.
|
|
4324
|
+
var nextToken = this.q4s();
|
|
4310
4325
|
if (!(nextToken === 10)) {
|
|
4311
|
-
this.
|
|
4326
|
+
this.g4r('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.z4w(), this.a4n_1 - 1 | 0)) + ' instead');
|
|
4312
4327
|
}
|
|
4313
4328
|
};
|
|
4314
|
-
protoOf(AbstractJsonLexer).
|
|
4315
|
-
var token = this.
|
|
4329
|
+
protoOf(AbstractJsonLexer).k4s = function (expected) {
|
|
4330
|
+
var token = this.q4s();
|
|
4316
4331
|
if (!(token === expected)) {
|
|
4317
4332
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4318
4333
|
var expected_0 = tokenDescription(expected);
|
|
4319
4334
|
var position = true ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
4320
4335
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
4321
4336
|
var tmp$ret$0 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4322
|
-
this.
|
|
4337
|
+
this.g4r(tmp$ret$0, position);
|
|
4323
4338
|
}
|
|
4324
4339
|
return token;
|
|
4325
4340
|
};
|
|
@@ -4331,7 +4346,7 @@
|
|
|
4331
4346
|
var snapshot = this.a4n_1;
|
|
4332
4347
|
try {
|
|
4333
4348
|
this.a4n_1 = this.a4n_1 - 1 | 0;
|
|
4334
|
-
tmp$ret$1 = this.
|
|
4349
|
+
tmp$ret$1 = this.o4s();
|
|
4335
4350
|
break $l$block;
|
|
4336
4351
|
}finally {
|
|
4337
4352
|
this.a4n_1 = snapshot;
|
|
@@ -4339,7 +4354,7 @@
|
|
|
4339
4354
|
}
|
|
4340
4355
|
var inputLiteral = tmp$ret$1;
|
|
4341
4356
|
if (inputLiteral === 'null') {
|
|
4342
|
-
this.
|
|
4357
|
+
this.f4r("Expected string literal but 'null' literal was found", this.a4n_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
|
|
4343
4358
|
}
|
|
4344
4359
|
}
|
|
4345
4360
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
@@ -4348,9 +4363,9 @@
|
|
|
4348
4363
|
var position = true ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
4349
4364
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
4350
4365
|
var tmp$ret$2 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4351
|
-
this.
|
|
4366
|
+
this.g4r(tmp$ret$2, position);
|
|
4352
4367
|
};
|
|
4353
|
-
protoOf(AbstractJsonLexer).
|
|
4368
|
+
protoOf(AbstractJsonLexer).l4s = function () {
|
|
4354
4369
|
var source = this.z4w();
|
|
4355
4370
|
var cpos = this.a4n_1;
|
|
4356
4371
|
$l$loop_0: while (true) {
|
|
@@ -4395,16 +4410,16 @@
|
|
|
4395
4410
|
return $super === VOID ? this.y4t(doConsume) : $super.y4t.call(this, doConsume);
|
|
4396
4411
|
};
|
|
4397
4412
|
protoOf(AbstractJsonLexer).z4t = function (isLenient) {
|
|
4398
|
-
var token = this.
|
|
4413
|
+
var token = this.l4s();
|
|
4399
4414
|
var tmp;
|
|
4400
4415
|
if (isLenient) {
|
|
4401
4416
|
if (!(token === 1) && !(token === 0))
|
|
4402
4417
|
return null;
|
|
4403
|
-
tmp = this.
|
|
4418
|
+
tmp = this.o4s();
|
|
4404
4419
|
} else {
|
|
4405
4420
|
if (!(token === 1))
|
|
4406
4421
|
return null;
|
|
4407
|
-
tmp = this.
|
|
4422
|
+
tmp = this.n4s();
|
|
4408
4423
|
}
|
|
4409
4424
|
var string = tmp;
|
|
4410
4425
|
this.c4n_1 = string;
|
|
@@ -4418,7 +4433,7 @@
|
|
|
4418
4433
|
var this_0 = this.z4w();
|
|
4419
4434
|
return toString(charSequenceSubSequence(this_0, startPos, endPos));
|
|
4420
4435
|
};
|
|
4421
|
-
protoOf(AbstractJsonLexer).
|
|
4436
|
+
protoOf(AbstractJsonLexer).n4s = function () {
|
|
4422
4437
|
if (!(this.c4n_1 == null)) {
|
|
4423
4438
|
return takePeeked(this);
|
|
4424
4439
|
}
|
|
@@ -4434,7 +4449,7 @@
|
|
|
4434
4449
|
usedAppend = true;
|
|
4435
4450
|
currentPosition = this.a4x(appendEscape(this, lastPosition, currentPosition));
|
|
4436
4451
|
if (currentPosition === -1) {
|
|
4437
|
-
this.
|
|
4452
|
+
this.g4r('Unexpected EOF', currentPosition);
|
|
4438
4453
|
}
|
|
4439
4454
|
lastPosition = currentPosition;
|
|
4440
4455
|
} else {
|
|
@@ -4444,7 +4459,7 @@
|
|
|
4444
4459
|
this.y4w(lastPosition, currentPosition);
|
|
4445
4460
|
currentPosition = this.a4x(currentPosition);
|
|
4446
4461
|
if (currentPosition === -1) {
|
|
4447
|
-
this.
|
|
4462
|
+
this.g4r('Unexpected EOF', currentPosition);
|
|
4448
4463
|
}
|
|
4449
4464
|
lastPosition = currentPosition;
|
|
4450
4465
|
}
|
|
@@ -4462,26 +4477,26 @@
|
|
|
4462
4477
|
return string;
|
|
4463
4478
|
};
|
|
4464
4479
|
protoOf(AbstractJsonLexer).d4u = function () {
|
|
4465
|
-
var result = this.
|
|
4480
|
+
var result = this.o4s();
|
|
4466
4481
|
if (result === 'null' && wasUnquotedString(this)) {
|
|
4467
|
-
this.
|
|
4482
|
+
this.g4r("Unexpected 'null' value instead of string literal");
|
|
4468
4483
|
}
|
|
4469
4484
|
return result;
|
|
4470
4485
|
};
|
|
4471
|
-
protoOf(AbstractJsonLexer).
|
|
4486
|
+
protoOf(AbstractJsonLexer).o4s = function () {
|
|
4472
4487
|
if (!(this.c4n_1 == null)) {
|
|
4473
4488
|
return takePeeked(this);
|
|
4474
4489
|
}
|
|
4475
4490
|
var current = this.c4x();
|
|
4476
4491
|
if (current >= charSequenceLength(this.z4w()) || current === -1) {
|
|
4477
|
-
this.
|
|
4492
|
+
this.g4r('EOF', current);
|
|
4478
4493
|
}
|
|
4479
4494
|
var token = charToTokenClass(charSequenceGet(this.z4w(), current));
|
|
4480
4495
|
if (token === 1) {
|
|
4481
|
-
return this.
|
|
4496
|
+
return this.n4s();
|
|
4482
4497
|
}
|
|
4483
4498
|
if (!(token === 0)) {
|
|
4484
|
-
this.
|
|
4499
|
+
this.g4r('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.z4w(), current)));
|
|
4485
4500
|
}
|
|
4486
4501
|
var usedAppend = false;
|
|
4487
4502
|
while (charToTokenClass(charSequenceGet(this.z4w(), current)) === 0) {
|
|
@@ -4514,16 +4529,16 @@
|
|
|
4514
4529
|
protoOf(AbstractJsonLexer).b4u = function (allowLenientStrings) {
|
|
4515
4530
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4516
4531
|
var tokenStack = ArrayList_init_$Create$();
|
|
4517
|
-
var lastToken = this.
|
|
4532
|
+
var lastToken = this.l4s();
|
|
4518
4533
|
if (!(lastToken === 8) && !(lastToken === 6)) {
|
|
4519
|
-
this.
|
|
4534
|
+
this.o4s();
|
|
4520
4535
|
return Unit_instance;
|
|
4521
4536
|
}
|
|
4522
4537
|
$l$loop: while (true) {
|
|
4523
|
-
lastToken = this.
|
|
4538
|
+
lastToken = this.l4s();
|
|
4524
4539
|
if (lastToken === 1) {
|
|
4525
4540
|
if (allowLenientStrings)
|
|
4526
|
-
this.
|
|
4541
|
+
this.o4s();
|
|
4527
4542
|
else
|
|
4528
4543
|
this.c4u();
|
|
4529
4544
|
continue $l$loop;
|
|
@@ -4540,9 +4555,9 @@
|
|
|
4540
4555
|
throw JsonDecodingException_0(this.a4n_1, 'found } instead of ] at path: ' + this.b4n_1.toString(), this.z4w());
|
|
4541
4556
|
removeLast(tokenStack);
|
|
4542
4557
|
} else if (tmp0_subject === 10) {
|
|
4543
|
-
this.
|
|
4558
|
+
this.g4r('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
4544
4559
|
}
|
|
4545
|
-
this.
|
|
4560
|
+
this.q4s();
|
|
4546
4561
|
if (tokenStack.g1() === 0)
|
|
4547
4562
|
return Unit_instance;
|
|
4548
4563
|
}
|
|
@@ -4553,9 +4568,9 @@
|
|
|
4553
4568
|
protoOf(AbstractJsonLexer).a4u = function (key) {
|
|
4554
4569
|
var processed = this.an(0, this.a4n_1);
|
|
4555
4570
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
4556
|
-
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.b4n_1.
|
|
4571
|
+
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.b4n_1.t4r() + "\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.z4w(), lastIndexOf_0))));
|
|
4557
4572
|
};
|
|
4558
|
-
protoOf(AbstractJsonLexer).
|
|
4573
|
+
protoOf(AbstractJsonLexer).f4r = function (message, position, hint) {
|
|
4559
4574
|
var tmp;
|
|
4560
4575
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4561
4576
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -4564,24 +4579,24 @@
|
|
|
4564
4579
|
tmp = '\n' + hint;
|
|
4565
4580
|
}
|
|
4566
4581
|
var hintMessage = tmp;
|
|
4567
|
-
throw JsonDecodingException_0(position, message + ' at path: ' + this.b4n_1.
|
|
4582
|
+
throw JsonDecodingException_0(position, message + ' at path: ' + this.b4n_1.t4r() + hintMessage, this.z4w());
|
|
4568
4583
|
};
|
|
4569
|
-
protoOf(AbstractJsonLexer).
|
|
4584
|
+
protoOf(AbstractJsonLexer).g4r = function (message, position, hint, $super) {
|
|
4570
4585
|
position = position === VOID ? this.a4n_1 : position;
|
|
4571
4586
|
hint = hint === VOID ? '' : hint;
|
|
4572
|
-
return $super === VOID ? this.
|
|
4587
|
+
return $super === VOID ? this.f4r(message, position, hint) : $super.f4r.call(this, message, position, hint);
|
|
4573
4588
|
};
|
|
4574
4589
|
protoOf(AbstractJsonLexer).l4u = function () {
|
|
4575
4590
|
var current = this.c4x();
|
|
4576
4591
|
current = this.a4x(current);
|
|
4577
4592
|
if (current >= charSequenceLength(this.z4w()) || current === -1) {
|
|
4578
|
-
this.
|
|
4593
|
+
this.g4r('EOF');
|
|
4579
4594
|
}
|
|
4580
4595
|
var tmp;
|
|
4581
4596
|
if (charSequenceGet(this.z4w(), current) === _Char___init__impl__6a9atx(34)) {
|
|
4582
4597
|
current = current + 1 | 0;
|
|
4583
4598
|
if (current === charSequenceLength(this.z4w())) {
|
|
4584
|
-
this.
|
|
4599
|
+
this.g4r('EOF');
|
|
4585
4600
|
}
|
|
4586
4601
|
tmp = true;
|
|
4587
4602
|
} else {
|
|
@@ -4598,7 +4613,7 @@
|
|
|
4598
4613
|
var ch = charSequenceGet(this.z4w(), current);
|
|
4599
4614
|
if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
|
|
4600
4615
|
if (current === start) {
|
|
4601
|
-
this.
|
|
4616
|
+
this.g4r('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
|
|
4602
4617
|
}
|
|
4603
4618
|
isExponentPositive = true;
|
|
4604
4619
|
hasExponent = true;
|
|
@@ -4607,7 +4622,7 @@
|
|
|
4607
4622
|
}
|
|
4608
4623
|
if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
|
|
4609
4624
|
if (current === start) {
|
|
4610
|
-
this.
|
|
4625
|
+
this.g4r("Unexpected symbol '-' in numeric literal");
|
|
4611
4626
|
}
|
|
4612
4627
|
isExponentPositive = false;
|
|
4613
4628
|
current = current + 1 | 0;
|
|
@@ -4615,7 +4630,7 @@
|
|
|
4615
4630
|
}
|
|
4616
4631
|
if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
|
|
4617
4632
|
if (current === start) {
|
|
4618
|
-
this.
|
|
4633
|
+
this.g4r("Unexpected symbol '+' in numeric literal");
|
|
4619
4634
|
}
|
|
4620
4635
|
isExponentPositive = true;
|
|
4621
4636
|
current = current + 1 | 0;
|
|
@@ -4623,7 +4638,7 @@
|
|
|
4623
4638
|
}
|
|
4624
4639
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
4625
4640
|
if (!(current === start)) {
|
|
4626
|
-
this.
|
|
4641
|
+
this.g4r("Unexpected symbol '-' in numeric literal");
|
|
4627
4642
|
}
|
|
4628
4643
|
isNegative = true;
|
|
4629
4644
|
current = current + 1 | 0;
|
|
@@ -4635,7 +4650,7 @@
|
|
|
4635
4650
|
current = current + 1 | 0;
|
|
4636
4651
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
4637
4652
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
4638
|
-
this.
|
|
4653
|
+
this.g4r("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
|
|
4639
4654
|
}
|
|
4640
4655
|
if (hasExponent) {
|
|
4641
4656
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -4651,19 +4666,19 @@
|
|
|
4651
4666
|
var this_3 = multiply(this_2, fromInt(10));
|
|
4652
4667
|
accumulator = subtract(this_3, fromInt(digit));
|
|
4653
4668
|
if (accumulator > 0n) {
|
|
4654
|
-
this.
|
|
4669
|
+
this.g4r('Numeric value overflow');
|
|
4655
4670
|
}
|
|
4656
4671
|
}
|
|
4657
4672
|
var hasChars = !(current === start);
|
|
4658
4673
|
if (start === current || (isNegative && start === (current - 1 | 0))) {
|
|
4659
|
-
this.
|
|
4674
|
+
this.g4r('Expected numeric literal');
|
|
4660
4675
|
}
|
|
4661
4676
|
if (hasQuotation) {
|
|
4662
4677
|
if (!hasChars) {
|
|
4663
|
-
this.
|
|
4678
|
+
this.g4r('EOF');
|
|
4664
4679
|
}
|
|
4665
4680
|
if (!(charSequenceGet(this.z4w(), current) === _Char___init__impl__6a9atx(34))) {
|
|
4666
|
-
this.
|
|
4681
|
+
this.g4r('Expected closing quotation mark');
|
|
4667
4682
|
}
|
|
4668
4683
|
current = current + 1 | 0;
|
|
4669
4684
|
}
|
|
@@ -4671,11 +4686,11 @@
|
|
|
4671
4686
|
if (hasExponent) {
|
|
4672
4687
|
var doubleAccumulator = toNumber(accumulator) * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
|
|
4673
4688
|
if (doubleAccumulator > toNumber(9223372036854775807n) || doubleAccumulator < toNumber(-9223372036854775808n)) {
|
|
4674
|
-
this.
|
|
4689
|
+
this.g4r('Numeric value overflow');
|
|
4675
4690
|
}
|
|
4676
4691
|
// Inline function 'kotlin.math.floor' call
|
|
4677
4692
|
if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
|
|
4678
|
-
this.
|
|
4693
|
+
this.g4r("Can't convert " + doubleAccumulator + ' to Long');
|
|
4679
4694
|
}
|
|
4680
4695
|
accumulator = numberToLong(doubleAccumulator);
|
|
4681
4696
|
}
|
|
@@ -4685,27 +4700,27 @@
|
|
|
4685
4700
|
} else if (!(accumulator === -9223372036854775808n)) {
|
|
4686
4701
|
tmp_0 = negate(accumulator);
|
|
4687
4702
|
} else {
|
|
4688
|
-
this.
|
|
4703
|
+
this.g4r('Numeric value overflow');
|
|
4689
4704
|
}
|
|
4690
4705
|
return tmp_0;
|
|
4691
4706
|
};
|
|
4692
|
-
protoOf(AbstractJsonLexer).
|
|
4707
|
+
protoOf(AbstractJsonLexer).e4p = function () {
|
|
4693
4708
|
var result = this.l4u();
|
|
4694
|
-
var next = this.
|
|
4709
|
+
var next = this.q4s();
|
|
4695
4710
|
if (!(next === 10)) {
|
|
4696
4711
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4697
4712
|
var expected = tokenDescription(10);
|
|
4698
4713
|
var position = true ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
4699
4714
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
4700
4715
|
var tmp$ret$0 = "Expected input to contain a single valid number, but got '" + s + "' after it";
|
|
4701
|
-
this.
|
|
4716
|
+
this.g4r(tmp$ret$0, position);
|
|
4702
4717
|
}
|
|
4703
4718
|
return result;
|
|
4704
4719
|
};
|
|
4705
4720
|
protoOf(AbstractJsonLexer).k4u = function () {
|
|
4706
4721
|
var current = this.c4x();
|
|
4707
4722
|
if (current === charSequenceLength(this.z4w())) {
|
|
4708
|
-
this.
|
|
4723
|
+
this.g4r('EOF');
|
|
4709
4724
|
}
|
|
4710
4725
|
var tmp;
|
|
4711
4726
|
if (charSequenceGet(this.z4w(), current) === _Char___init__impl__6a9atx(34)) {
|
|
@@ -4718,10 +4733,10 @@
|
|
|
4718
4733
|
var result = consumeBoolean2(this, current);
|
|
4719
4734
|
if (hasQuotation) {
|
|
4720
4735
|
if (this.a4n_1 === charSequenceLength(this.z4w())) {
|
|
4721
|
-
this.
|
|
4736
|
+
this.g4r('EOF');
|
|
4722
4737
|
}
|
|
4723
4738
|
if (!(charSequenceGet(this.z4w(), this.a4n_1) === _Char___init__impl__6a9atx(34))) {
|
|
4724
|
-
this.
|
|
4739
|
+
this.g4r('Expected closing quotation mark');
|
|
4725
4740
|
}
|
|
4726
4741
|
this.a4n_1 = this.a4n_1 + 1 | 0;
|
|
4727
4742
|
}
|
|
@@ -4821,7 +4836,7 @@
|
|
|
4821
4836
|
function StringJsonLexerWithComments(source) {
|
|
4822
4837
|
StringJsonLexer.call(this, source);
|
|
4823
4838
|
}
|
|
4824
|
-
protoOf(StringJsonLexerWithComments).
|
|
4839
|
+
protoOf(StringJsonLexerWithComments).q4s = function () {
|
|
4825
4840
|
var source = this.z4w();
|
|
4826
4841
|
var cpos = this.c4x();
|
|
4827
4842
|
if (cpos >= source.length || cpos === -1)
|
|
@@ -4829,7 +4844,7 @@
|
|
|
4829
4844
|
this.a4n_1 = cpos + 1 | 0;
|
|
4830
4845
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
4831
4846
|
};
|
|
4832
|
-
protoOf(StringJsonLexerWithComments).
|
|
4847
|
+
protoOf(StringJsonLexerWithComments).m4s = function () {
|
|
4833
4848
|
var current = this.c4x();
|
|
4834
4849
|
if (current >= this.z4w().length || current === -1)
|
|
4835
4850
|
return false;
|
|
@@ -4850,7 +4865,7 @@
|
|
|
4850
4865
|
this.e4x(expected);
|
|
4851
4866
|
}
|
|
4852
4867
|
};
|
|
4853
|
-
protoOf(StringJsonLexerWithComments).
|
|
4868
|
+
protoOf(StringJsonLexerWithComments).l4s = function () {
|
|
4854
4869
|
var source = this.z4w();
|
|
4855
4870
|
var cpos = this.c4x();
|
|
4856
4871
|
if (cpos >= source.length || cpos === -1)
|
|
@@ -4884,7 +4899,7 @@
|
|
|
4884
4899
|
current = indexOf(source, '*/', current + 2 | 0);
|
|
4885
4900
|
if (current === -1) {
|
|
4886
4901
|
this.a4n_1 = source.length;
|
|
4887
|
-
this.
|
|
4902
|
+
this.g4r('Expected end of the block comment: "*/", but had EOF instead');
|
|
4888
4903
|
} else {
|
|
4889
4904
|
current = current + 2 | 0;
|
|
4890
4905
|
}
|
|
@@ -4906,7 +4921,7 @@
|
|
|
4906
4921
|
protoOf(StringJsonLexer).a4x = function (position) {
|
|
4907
4922
|
return position < this.z4w().length ? position : -1;
|
|
4908
4923
|
};
|
|
4909
|
-
protoOf(StringJsonLexer).
|
|
4924
|
+
protoOf(StringJsonLexer).q4s = function () {
|
|
4910
4925
|
var source = this.z4w();
|
|
4911
4926
|
var cpos = this.a4n_1;
|
|
4912
4927
|
$l$loop: while (!(cpos === -1) && cpos < source.length) {
|
|
@@ -4922,7 +4937,7 @@
|
|
|
4922
4937
|
this.a4n_1 = source.length;
|
|
4923
4938
|
return 10;
|
|
4924
4939
|
};
|
|
4925
|
-
protoOf(StringJsonLexer).
|
|
4940
|
+
protoOf(StringJsonLexer).m4s = function () {
|
|
4926
4941
|
var current = this.a4n_1;
|
|
4927
4942
|
if (current === -1)
|
|
4928
4943
|
return false;
|
|
@@ -4983,13 +4998,13 @@
|
|
|
4983
4998
|
var current = this.a4n_1;
|
|
4984
4999
|
var closingQuote = indexOf_0(this.z4w(), _Char___init__impl__6a9atx(34), current);
|
|
4985
5000
|
if (closingQuote === -1) {
|
|
4986
|
-
this.
|
|
5001
|
+
this.o4s();
|
|
4987
5002
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4988
5003
|
var expected = tokenDescription(1);
|
|
4989
5004
|
var position = false ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
4990
5005
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
4991
5006
|
var tmp$ret$0 = 'Expected ' + expected + ", but had '" + s + "' instead";
|
|
4992
|
-
this.
|
|
5007
|
+
this.g4r(tmp$ret$0, position);
|
|
4993
5008
|
}
|
|
4994
5009
|
var inductionVariable = current;
|
|
4995
5010
|
if (inductionVariable < closingQuote)
|
|
@@ -5007,13 +5022,13 @@
|
|
|
5007
5022
|
protoOf(StringJsonLexer).e4u = function (keyToMatch, isLenient) {
|
|
5008
5023
|
var positionSnapshot = this.a4n_1;
|
|
5009
5024
|
try {
|
|
5010
|
-
if (!(this.
|
|
5025
|
+
if (!(this.q4s() === 6))
|
|
5011
5026
|
return null;
|
|
5012
5027
|
var firstKey = this.z4t(isLenient);
|
|
5013
5028
|
if (!(firstKey === keyToMatch))
|
|
5014
5029
|
return null;
|
|
5015
5030
|
this.f4x();
|
|
5016
|
-
if (!(this.
|
|
5031
|
+
if (!(this.q4s() === 5))
|
|
5017
5032
|
return null;
|
|
5018
5033
|
return this.z4t(isLenient);
|
|
5019
5034
|
}finally {
|
|
@@ -5030,16 +5045,16 @@
|
|
|
5030
5045
|
function JsonToStringWriter() {
|
|
5031
5046
|
this.r4m_1 = StringBuilder_init_$Create$_0(128);
|
|
5032
5047
|
}
|
|
5033
|
-
protoOf(JsonToStringWriter).
|
|
5048
|
+
protoOf(JsonToStringWriter).k4q = function (value) {
|
|
5034
5049
|
this.r4m_1.wb(value);
|
|
5035
5050
|
};
|
|
5036
|
-
protoOf(JsonToStringWriter).
|
|
5051
|
+
protoOf(JsonToStringWriter).e4q = function (char) {
|
|
5037
5052
|
this.r4m_1.s(char);
|
|
5038
5053
|
};
|
|
5039
|
-
protoOf(JsonToStringWriter).
|
|
5054
|
+
protoOf(JsonToStringWriter).g4q = function (text) {
|
|
5040
5055
|
this.r4m_1.q(text);
|
|
5041
5056
|
};
|
|
5042
|
-
protoOf(JsonToStringWriter).
|
|
5057
|
+
protoOf(JsonToStringWriter).q4q = function (text) {
|
|
5043
5058
|
printQuoted(this.r4m_1, text);
|
|
5044
5059
|
};
|
|
5045
5060
|
protoOf(JsonToStringWriter).h2v = function () {
|
|
@@ -5066,7 +5081,7 @@
|
|
|
5066
5081
|
//endregion
|
|
5067
5082
|
//region block: exports
|
|
5068
5083
|
_.$_$ = _.$_$ || {};
|
|
5069
|
-
_.$_$.a =
|
|
5084
|
+
_.$_$.a = JsonClassDiscriminator;
|
|
5070
5085
|
_.$_$.b = Json_0;
|
|
5071
5086
|
//endregion
|
|
5072
5087
|
return _;
|