@flock/wirespec 0.17.2 → 0.17.4
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/clikt-clikt.mjs +1174 -1174
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +44 -43
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9202 -9761
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +4 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +299 -299
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/markdown.mjs +1876 -1876
- package/mordant-mordant.mjs +1643 -1643
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1059 -1059
- package/wirespec-src-compiler-emitters-java.mjs +260 -260
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +186 -186
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +183 -183
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +196 -196
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +76 -76
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +377 -327
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +316 -316
- package/wirespec-src-converter-openapi.mjs +2565 -2561
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +139 -139
- package/wirespec-src-plugin-cli.mjs +77 -77
- package/wirespec-src-plugin-npm.d.ts +13 -5
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +25 -25
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
SEALED_getInstance2brzxtciy6zxg as SEALED_getInstance,
|
|
9
9
|
buildSerialDescriptor2873qmkp8r2ib as buildSerialDescriptor,
|
|
10
10
|
KSerializerzf77vz1967fq as KSerializer,
|
|
11
|
+
MapSerializer11kmegt3g5c1g as MapSerializer,
|
|
12
|
+
SerialDescriptor2pelqekb5ic3a as SerialDescriptor,
|
|
13
|
+
ListSerializer1hxuk9dx5n9du as ListSerializer,
|
|
11
14
|
STRING_getInstance2md3nu8ka1da4 as STRING_getInstance,
|
|
12
15
|
ENUM_getInstance3qjro8veu1n4s as ENUM_getInstance,
|
|
13
16
|
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
|
|
14
17
|
serializer2lw83vwvpnyms as serializer_0,
|
|
15
|
-
MapSerializer11kmegt3g5c1g as MapSerializer,
|
|
16
|
-
SerialDescriptor2pelqekb5ic3a as SerialDescriptor,
|
|
17
|
-
ListSerializer1hxuk9dx5n9du as ListSerializer,
|
|
18
18
|
get_isNullable36pbikm8xb7bz as get_isNullable,
|
|
19
19
|
get_isInline5x26qrhi9qs6 as get_isInline,
|
|
20
20
|
get_annotationshjxdbdcl8kmv as get_annotations,
|
|
@@ -71,12 +71,12 @@ import {
|
|
|
71
71
|
hashCodeq5arwsb9dgti as hashCode,
|
|
72
72
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
73
73
|
KtMap140uvy3s5zad8 as KtMap,
|
|
74
|
-
KtList3hktaavzmj137 as KtList,
|
|
75
74
|
LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
76
75
|
lazy1261dae0bgscp as lazy,
|
|
77
76
|
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
|
|
78
77
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
79
78
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
79
|
+
KtList3hktaavzmj137 as KtList,
|
|
80
80
|
NumberFormatException_init_$Create$22b1m03hjdq4h as NumberFormatException_init_$Create$,
|
|
81
81
|
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
82
82
|
ClosedRangehokgr73im9z3 as ClosedRange,
|
|
@@ -189,21 +189,21 @@ initMetadataForInterface(JsonDecoder, 'JsonDecoder', VOID, VOID, [Decoder, Compo
|
|
|
189
189
|
initMetadataForCompanion(Companion);
|
|
190
190
|
initMetadataForClass(JsonElement, 'JsonElement', VOID, VOID, VOID, VOID, VOID, {0: JsonElementSerializer_getInstance});
|
|
191
191
|
initMetadataForCompanion(Companion_0);
|
|
192
|
+
initMetadataForClass(JsonObject, 'JsonObject', VOID, JsonElement, [JsonElement, KtMap], VOID, VOID, {0: JsonObjectSerializer_getInstance});
|
|
192
193
|
initMetadataForClass(JsonPrimitive, 'JsonPrimitive', VOID, JsonElement, VOID, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance});
|
|
194
|
+
initMetadataForObject(JsonNull, 'JsonNull', VOID, JsonPrimitive, [JsonPrimitive, SerializerFactory], VOID, VOID, {0: JsonNull_getInstance});
|
|
193
195
|
initMetadataForCompanion(Companion_1);
|
|
194
|
-
initMetadataForClass(
|
|
196
|
+
initMetadataForClass(JsonLiteral, 'JsonLiteral', VOID, JsonPrimitive);
|
|
195
197
|
initMetadataForCompanion(Companion_2);
|
|
196
198
|
initMetadataForClass(JsonArray, 'JsonArray', VOID, JsonElement, [JsonElement, KtList], VOID, VOID, {0: JsonArraySerializer_getInstance});
|
|
197
|
-
initMetadataForObject(JsonNull, 'JsonNull', VOID, JsonPrimitive, [JsonPrimitive, SerializerFactory], VOID, VOID, {0: JsonNull_getInstance});
|
|
198
|
-
initMetadataForClass(JsonLiteral, 'JsonLiteral', VOID, JsonPrimitive);
|
|
199
199
|
initMetadataForObject(JsonElementSerializer, 'JsonElementSerializer', VOID, VOID, [KSerializer]);
|
|
200
|
-
initMetadataForObject(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', VOID, VOID, [KSerializer]);
|
|
201
|
-
initMetadataForObject(JsonNullSerializer, 'JsonNullSerializer', VOID, VOID, [KSerializer]);
|
|
202
|
-
initMetadataForObject(JsonLiteralSerializer, 'JsonLiteralSerializer', VOID, VOID, [KSerializer]);
|
|
203
200
|
initMetadataForObject(JsonObjectDescriptor, 'JsonObjectDescriptor', VOID, VOID, [SerialDescriptor]);
|
|
204
201
|
initMetadataForObject(JsonObjectSerializer, 'JsonObjectSerializer', VOID, VOID, [KSerializer]);
|
|
205
202
|
initMetadataForObject(JsonArrayDescriptor, 'JsonArrayDescriptor', VOID, VOID, [SerialDescriptor]);
|
|
206
203
|
initMetadataForObject(JsonArraySerializer, 'JsonArraySerializer', VOID, VOID, [KSerializer]);
|
|
204
|
+
initMetadataForObject(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', VOID, VOID, [KSerializer]);
|
|
205
|
+
initMetadataForObject(JsonNullSerializer, 'JsonNullSerializer', VOID, VOID, [KSerializer]);
|
|
206
|
+
initMetadataForObject(JsonLiteralSerializer, 'JsonLiteralSerializer', VOID, VOID, [KSerializer]);
|
|
207
207
|
initMetadataForClass(defer$1, VOID, VOID, VOID, [SerialDescriptor]);
|
|
208
208
|
initMetadataForInterface(JsonEncoder, 'JsonEncoder', VOID, VOID, [Encoder, CompositeEncoder]);
|
|
209
209
|
initMetadataForClass(Composer, 'Composer');
|
|
@@ -212,8 +212,8 @@ initMetadataForClass(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals',
|
|
|
212
212
|
initMetadataForClass(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint', VOID, Composer);
|
|
213
213
|
initMetadataForClass(JsonElementMarker, 'JsonElementMarker');
|
|
214
214
|
initMetadataForClass(JsonException, 'JsonException', VOID, SerializationException);
|
|
215
|
-
initMetadataForClass(JsonDecodingException, 'JsonDecodingException', VOID, JsonException);
|
|
216
215
|
initMetadataForClass(JsonEncodingException, 'JsonEncodingException', VOID, JsonException);
|
|
216
|
+
initMetadataForClass(JsonDecodingException, 'JsonDecodingException', VOID, JsonException);
|
|
217
217
|
initMetadataForObject(Tombstone, 'Tombstone');
|
|
218
218
|
initMetadataForClass(JsonPath, 'JsonPath', JsonPath);
|
|
219
219
|
initMetadataForLambda(JsonTreeReader$readDeepRecursive$slambda, CoroutineImpl, VOID, [2]);
|
|
@@ -453,18 +453,6 @@ var Companion_instance_0;
|
|
|
453
453
|
function Companion_getInstance_4() {
|
|
454
454
|
return Companion_instance_0;
|
|
455
455
|
}
|
|
456
|
-
function JsonPrimitive() {
|
|
457
|
-
JsonElement.call(this);
|
|
458
|
-
}
|
|
459
|
-
protoOf(JsonPrimitive).toString = function () {
|
|
460
|
-
return this.q17();
|
|
461
|
-
};
|
|
462
|
-
function Companion_1() {
|
|
463
|
-
}
|
|
464
|
-
var Companion_instance_1;
|
|
465
|
-
function Companion_getInstance_5() {
|
|
466
|
-
return Companion_instance_1;
|
|
467
|
-
}
|
|
468
456
|
function JsonObject$toString$lambda(_destruct__k2r9zo) {
|
|
469
457
|
// Inline function 'kotlin.collections.component1' call
|
|
470
458
|
var k = _destruct__k2r9zo.a1();
|
|
@@ -483,18 +471,18 @@ function JsonObject$toString$lambda(_destruct__k2r9zo) {
|
|
|
483
471
|
}
|
|
484
472
|
function JsonObject(content) {
|
|
485
473
|
JsonElement.call(this);
|
|
486
|
-
this.
|
|
474
|
+
this.q17_1 = content;
|
|
487
475
|
}
|
|
488
|
-
protoOf(JsonObject).
|
|
489
|
-
return this.
|
|
476
|
+
protoOf(JsonObject).r17 = function (key) {
|
|
477
|
+
return this.q17_1.f2(key);
|
|
490
478
|
};
|
|
491
479
|
protoOf(JsonObject).f2 = function (key) {
|
|
492
480
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
493
481
|
return false;
|
|
494
|
-
return this.
|
|
482
|
+
return this.r17((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
495
483
|
};
|
|
496
484
|
protoOf(JsonObject).hc = function (key) {
|
|
497
|
-
return this.
|
|
485
|
+
return this.q17_1.g2(key);
|
|
498
486
|
};
|
|
499
487
|
protoOf(JsonObject).g2 = function (key) {
|
|
500
488
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
@@ -502,80 +490,29 @@ protoOf(JsonObject).g2 = function (key) {
|
|
|
502
490
|
return this.hc((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
503
491
|
};
|
|
504
492
|
protoOf(JsonObject).l = function () {
|
|
505
|
-
return this.
|
|
493
|
+
return this.q17_1.l();
|
|
506
494
|
};
|
|
507
495
|
protoOf(JsonObject).z = function () {
|
|
508
|
-
return this.
|
|
496
|
+
return this.q17_1.z();
|
|
509
497
|
};
|
|
510
498
|
protoOf(JsonObject).h2 = function () {
|
|
511
|
-
return this.
|
|
499
|
+
return this.q17_1.h2();
|
|
512
500
|
};
|
|
513
501
|
protoOf(JsonObject).j = function () {
|
|
514
|
-
return this.
|
|
502
|
+
return this.q17_1.j();
|
|
515
503
|
};
|
|
516
504
|
protoOf(JsonObject).equals = function (other) {
|
|
517
|
-
return equals(this.
|
|
505
|
+
return equals(this.q17_1, other);
|
|
518
506
|
};
|
|
519
507
|
protoOf(JsonObject).hashCode = function () {
|
|
520
|
-
return hashCode(this.
|
|
508
|
+
return hashCode(this.q17_1);
|
|
521
509
|
};
|
|
522
510
|
protoOf(JsonObject).toString = function () {
|
|
523
|
-
var tmp = this.
|
|
511
|
+
var tmp = this.q17_1.z();
|
|
524
512
|
return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
|
|
525
513
|
};
|
|
526
|
-
function Companion_2() {
|
|
527
|
-
}
|
|
528
|
-
var Companion_instance_2;
|
|
529
|
-
function Companion_getInstance_6() {
|
|
530
|
-
return Companion_instance_2;
|
|
531
|
-
}
|
|
532
|
-
function JsonArray(content) {
|
|
533
|
-
JsonElement.call(this);
|
|
534
|
-
this.t17_1 = content;
|
|
535
|
-
}
|
|
536
|
-
protoOf(JsonArray).u17 = function (element) {
|
|
537
|
-
return this.t17_1.o1(element);
|
|
538
|
-
};
|
|
539
|
-
protoOf(JsonArray).o1 = function (element) {
|
|
540
|
-
if (!(element instanceof JsonElement))
|
|
541
|
-
return false;
|
|
542
|
-
return this.u17(element instanceof JsonElement ? element : THROW_CCE());
|
|
543
|
-
};
|
|
544
|
-
protoOf(JsonArray).v17 = function (elements) {
|
|
545
|
-
return this.t17_1.e2(elements);
|
|
546
|
-
};
|
|
547
|
-
protoOf(JsonArray).e2 = function (elements) {
|
|
548
|
-
return this.v17(elements);
|
|
549
|
-
};
|
|
550
|
-
protoOf(JsonArray).k = function (index) {
|
|
551
|
-
return this.t17_1.k(index);
|
|
552
|
-
};
|
|
553
|
-
protoOf(JsonArray).l = function () {
|
|
554
|
-
return this.t17_1.l();
|
|
555
|
-
};
|
|
556
|
-
protoOf(JsonArray).g = function () {
|
|
557
|
-
return this.t17_1.g();
|
|
558
|
-
};
|
|
559
|
-
protoOf(JsonArray).q = function (index) {
|
|
560
|
-
return this.t17_1.q(index);
|
|
561
|
-
};
|
|
562
|
-
protoOf(JsonArray).w = function (fromIndex, toIndex) {
|
|
563
|
-
return this.t17_1.w(fromIndex, toIndex);
|
|
564
|
-
};
|
|
565
|
-
protoOf(JsonArray).j = function () {
|
|
566
|
-
return this.t17_1.j();
|
|
567
|
-
};
|
|
568
|
-
protoOf(JsonArray).equals = function (other) {
|
|
569
|
-
return equals(this.t17_1, other);
|
|
570
|
-
};
|
|
571
|
-
protoOf(JsonArray).hashCode = function () {
|
|
572
|
-
return hashCode(this.t17_1);
|
|
573
|
-
};
|
|
574
|
-
protoOf(JsonArray).toString = function () {
|
|
575
|
-
return joinToString(this.t17_1, ',', '[', ']');
|
|
576
|
-
};
|
|
577
514
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
578
|
-
return $this.
|
|
515
|
+
return $this.t17_1.b1();
|
|
579
516
|
}
|
|
580
517
|
function JsonNull$_anonymous__enib48() {
|
|
581
518
|
return JsonNullSerializer_getInstance();
|
|
@@ -583,19 +520,19 @@ function JsonNull$_anonymous__enib48() {
|
|
|
583
520
|
function JsonNull() {
|
|
584
521
|
JsonNull_instance = this;
|
|
585
522
|
JsonPrimitive.call(this);
|
|
586
|
-
this.
|
|
523
|
+
this.s17_1 = 'null';
|
|
587
524
|
var tmp = this;
|
|
588
525
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
589
|
-
tmp.
|
|
526
|
+
tmp.t17_1 = lazy(tmp_0, JsonNull$_anonymous__enib48);
|
|
590
527
|
}
|
|
591
|
-
protoOf(JsonNull).
|
|
592
|
-
return this.
|
|
528
|
+
protoOf(JsonNull).u17 = function () {
|
|
529
|
+
return this.s17_1;
|
|
593
530
|
};
|
|
594
|
-
protoOf(JsonNull).
|
|
531
|
+
protoOf(JsonNull).v17 = function () {
|
|
595
532
|
return _get_$cachedSerializer__te6jhj(this);
|
|
596
533
|
};
|
|
597
534
|
protoOf(JsonNull).yw = function (typeParamsSerializers) {
|
|
598
|
-
return this.
|
|
535
|
+
return this.v17();
|
|
599
536
|
};
|
|
600
537
|
var JsonNull_instance;
|
|
601
538
|
function JsonNull_getInstance() {
|
|
@@ -603,40 +540,70 @@ function JsonNull_getInstance() {
|
|
|
603
540
|
new JsonNull();
|
|
604
541
|
return JsonNull_instance;
|
|
605
542
|
}
|
|
543
|
+
function Companion_1() {
|
|
544
|
+
}
|
|
545
|
+
var Companion_instance_1;
|
|
546
|
+
function Companion_getInstance_5() {
|
|
547
|
+
return Companion_instance_1;
|
|
548
|
+
}
|
|
549
|
+
function JsonPrimitive() {
|
|
550
|
+
JsonElement.call(this);
|
|
551
|
+
}
|
|
552
|
+
protoOf(JsonPrimitive).toString = function () {
|
|
553
|
+
return this.u17();
|
|
554
|
+
};
|
|
555
|
+
function JsonPrimitive_0(value) {
|
|
556
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
557
|
+
if (value == null)
|
|
558
|
+
return JsonNull_getInstance();
|
|
559
|
+
return new JsonLiteral(value, false);
|
|
560
|
+
}
|
|
561
|
+
function JsonPrimitive_1(value) {
|
|
562
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
563
|
+
if (value == null)
|
|
564
|
+
return JsonNull_getInstance();
|
|
565
|
+
return new JsonLiteral(value, false);
|
|
566
|
+
}
|
|
567
|
+
function JsonPrimitive_2(value) {
|
|
568
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
569
|
+
if (value == null)
|
|
570
|
+
return JsonNull_getInstance();
|
|
571
|
+
return new JsonLiteral(value, true);
|
|
572
|
+
}
|
|
606
573
|
function JsonLiteral(body, isString, coerceToInlineType) {
|
|
607
574
|
coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
|
|
608
575
|
JsonPrimitive.call(this);
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
if (!(this.
|
|
576
|
+
this.w17_1 = isString;
|
|
577
|
+
this.x17_1 = coerceToInlineType;
|
|
578
|
+
this.y17_1 = toString(body);
|
|
579
|
+
if (!(this.x17_1 == null)) {
|
|
613
580
|
// Inline function 'kotlin.require' call
|
|
614
581
|
// Inline function 'kotlin.contracts.contract' call
|
|
615
582
|
// Inline function 'kotlin.require' call
|
|
616
583
|
// Inline function 'kotlin.contracts.contract' call
|
|
617
|
-
if (!this.
|
|
584
|
+
if (!this.x17_1.um()) {
|
|
618
585
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
619
586
|
var message = 'Failed requirement.';
|
|
620
587
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
621
588
|
}
|
|
622
589
|
}
|
|
623
590
|
}
|
|
624
|
-
protoOf(JsonLiteral).
|
|
625
|
-
return this.
|
|
591
|
+
protoOf(JsonLiteral).u17 = function () {
|
|
592
|
+
return this.y17_1;
|
|
626
593
|
};
|
|
627
594
|
protoOf(JsonLiteral).toString = function () {
|
|
628
595
|
var tmp;
|
|
629
|
-
if (this.
|
|
596
|
+
if (this.w17_1) {
|
|
630
597
|
// Inline function 'kotlin.text.buildString' call
|
|
631
598
|
// Inline function 'kotlin.contracts.contract' call
|
|
632
599
|
// Inline function 'kotlin.apply' call
|
|
633
600
|
var this_0 = StringBuilder_init_$Create$();
|
|
634
601
|
// Inline function 'kotlin.contracts.contract' call
|
|
635
602
|
// Inline function 'kotlinx.serialization.json.JsonLiteral.toString.<anonymous>' call
|
|
636
|
-
printQuoted(this_0, this.
|
|
603
|
+
printQuoted(this_0, this.y17_1);
|
|
637
604
|
tmp = this_0.toString();
|
|
638
605
|
} else {
|
|
639
|
-
tmp = this.
|
|
606
|
+
tmp = this.y17_1;
|
|
640
607
|
}
|
|
641
608
|
return tmp;
|
|
642
609
|
};
|
|
@@ -647,38 +614,71 @@ protoOf(JsonLiteral).equals = function (other) {
|
|
|
647
614
|
return false;
|
|
648
615
|
if (!(other instanceof JsonLiteral))
|
|
649
616
|
THROW_CCE();
|
|
650
|
-
if (!(this.
|
|
617
|
+
if (!(this.w17_1 === other.w17_1))
|
|
651
618
|
return false;
|
|
652
|
-
if (!(this.
|
|
619
|
+
if (!(this.y17_1 === other.y17_1))
|
|
653
620
|
return false;
|
|
654
621
|
return true;
|
|
655
622
|
};
|
|
656
623
|
protoOf(JsonLiteral).hashCode = function () {
|
|
657
|
-
var result = getBooleanHashCode(this.
|
|
658
|
-
result = imul(31, result) + getStringHashCode(this.
|
|
624
|
+
var result = getBooleanHashCode(this.w17_1);
|
|
625
|
+
result = imul(31, result) + getStringHashCode(this.y17_1) | 0;
|
|
659
626
|
return result;
|
|
660
627
|
};
|
|
661
|
-
function
|
|
662
|
-
_init_properties_JsonElement_kt__7cbdc2();
|
|
663
|
-
if (value == null)
|
|
664
|
-
return JsonNull_getInstance();
|
|
665
|
-
return new JsonLiteral(value, false);
|
|
628
|
+
function Companion_2() {
|
|
666
629
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
return JsonNull_getInstance();
|
|
671
|
-
return new JsonLiteral(value, false);
|
|
630
|
+
var Companion_instance_2;
|
|
631
|
+
function Companion_getInstance_6() {
|
|
632
|
+
return Companion_instance_2;
|
|
672
633
|
}
|
|
673
|
-
function
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return JsonNull_getInstance();
|
|
677
|
-
return new JsonLiteral(value, true);
|
|
634
|
+
function JsonArray(content) {
|
|
635
|
+
JsonElement.call(this);
|
|
636
|
+
this.z17_1 = content;
|
|
678
637
|
}
|
|
638
|
+
protoOf(JsonArray).a18 = function (element) {
|
|
639
|
+
return this.z17_1.o1(element);
|
|
640
|
+
};
|
|
641
|
+
protoOf(JsonArray).o1 = function (element) {
|
|
642
|
+
if (!(element instanceof JsonElement))
|
|
643
|
+
return false;
|
|
644
|
+
return this.a18(element instanceof JsonElement ? element : THROW_CCE());
|
|
645
|
+
};
|
|
646
|
+
protoOf(JsonArray).b18 = function (elements) {
|
|
647
|
+
return this.z17_1.e2(elements);
|
|
648
|
+
};
|
|
649
|
+
protoOf(JsonArray).e2 = function (elements) {
|
|
650
|
+
return this.b18(elements);
|
|
651
|
+
};
|
|
652
|
+
protoOf(JsonArray).k = function (index) {
|
|
653
|
+
return this.z17_1.k(index);
|
|
654
|
+
};
|
|
655
|
+
protoOf(JsonArray).l = function () {
|
|
656
|
+
return this.z17_1.l();
|
|
657
|
+
};
|
|
658
|
+
protoOf(JsonArray).g = function () {
|
|
659
|
+
return this.z17_1.g();
|
|
660
|
+
};
|
|
661
|
+
protoOf(JsonArray).q = function (index) {
|
|
662
|
+
return this.z17_1.q(index);
|
|
663
|
+
};
|
|
664
|
+
protoOf(JsonArray).w = function (fromIndex, toIndex) {
|
|
665
|
+
return this.z17_1.w(fromIndex, toIndex);
|
|
666
|
+
};
|
|
667
|
+
protoOf(JsonArray).j = function () {
|
|
668
|
+
return this.z17_1.j();
|
|
669
|
+
};
|
|
670
|
+
protoOf(JsonArray).equals = function (other) {
|
|
671
|
+
return equals(this.z17_1, other);
|
|
672
|
+
};
|
|
673
|
+
protoOf(JsonArray).hashCode = function () {
|
|
674
|
+
return hashCode(this.z17_1);
|
|
675
|
+
};
|
|
676
|
+
protoOf(JsonArray).toString = function () {
|
|
677
|
+
return joinToString(this.z17_1, ',', '[', ']');
|
|
678
|
+
};
|
|
679
679
|
function get_booleanOrNull(_this__u8e3s4) {
|
|
680
680
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
681
|
-
return toBooleanStrictOrNull_0(_this__u8e3s4.
|
|
681
|
+
return toBooleanStrictOrNull_0(_this__u8e3s4.u17());
|
|
682
682
|
}
|
|
683
683
|
function get_int(_this__u8e3s4) {
|
|
684
684
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -686,7 +686,7 @@ function get_int(_this__u8e3s4) {
|
|
|
686
686
|
var tmp;
|
|
687
687
|
try {
|
|
688
688
|
// Inline function 'kotlinx.serialization.json.<get-int>.<anonymous>' call
|
|
689
|
-
tmp = (new StringJsonLexer(_this__u8e3s4.
|
|
689
|
+
tmp = (new StringJsonLexer(_this__u8e3s4.u17())).c18();
|
|
690
690
|
} catch ($p) {
|
|
691
691
|
var tmp_0;
|
|
692
692
|
if ($p instanceof JsonDecodingException) {
|
|
@@ -700,7 +700,7 @@ function get_int(_this__u8e3s4) {
|
|
|
700
700
|
// Inline function 'kotlin.ranges.contains' call
|
|
701
701
|
var this_0 = numberRangeToNumber(-2147483648, 2147483647);
|
|
702
702
|
if (!contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), result))
|
|
703
|
-
throw NumberFormatException_init_$Create$(_this__u8e3s4.
|
|
703
|
+
throw NumberFormatException_init_$Create$(_this__u8e3s4.u17() + ' is not an Int');
|
|
704
704
|
return result.l1();
|
|
705
705
|
}
|
|
706
706
|
function get_long(_this__u8e3s4) {
|
|
@@ -709,7 +709,7 @@ function get_long(_this__u8e3s4) {
|
|
|
709
709
|
var tmp;
|
|
710
710
|
try {
|
|
711
711
|
// Inline function 'kotlinx.serialization.json.<get-long>.<anonymous>' call
|
|
712
|
-
tmp = (new StringJsonLexer(_this__u8e3s4.
|
|
712
|
+
tmp = (new StringJsonLexer(_this__u8e3s4.u17())).c18();
|
|
713
713
|
} catch ($p) {
|
|
714
714
|
var tmp_0;
|
|
715
715
|
if ($p instanceof JsonDecodingException) {
|
|
@@ -724,14 +724,14 @@ function get_long(_this__u8e3s4) {
|
|
|
724
724
|
function get_float(_this__u8e3s4) {
|
|
725
725
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
726
726
|
// Inline function 'kotlin.text.toFloat' call
|
|
727
|
-
var this_0 = _this__u8e3s4.
|
|
727
|
+
var this_0 = _this__u8e3s4.u17();
|
|
728
728
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
729
729
|
// Inline function 'kotlin.js.asDynamic' call
|
|
730
730
|
return toDouble(this_0);
|
|
731
731
|
}
|
|
732
732
|
function get_double(_this__u8e3s4) {
|
|
733
733
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
734
|
-
return toDouble(_this__u8e3s4.
|
|
734
|
+
return toDouble(_this__u8e3s4.u17());
|
|
735
735
|
}
|
|
736
736
|
function get_contentOrNull(_this__u8e3s4) {
|
|
737
737
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -739,7 +739,7 @@ function get_contentOrNull(_this__u8e3s4) {
|
|
|
739
739
|
if (_this__u8e3s4 instanceof JsonNull) {
|
|
740
740
|
tmp = null;
|
|
741
741
|
} else {
|
|
742
|
-
tmp = _this__u8e3s4.
|
|
742
|
+
tmp = _this__u8e3s4.u17();
|
|
743
743
|
}
|
|
744
744
|
return tmp;
|
|
745
745
|
}
|
|
@@ -771,7 +771,7 @@ function get_jsonObject(_this__u8e3s4) {
|
|
|
771
771
|
}
|
|
772
772
|
function get_boolean(_this__u8e3s4) {
|
|
773
773
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
774
|
-
var tmp0_elvis_lhs = toBooleanStrictOrNull_0(_this__u8e3s4.
|
|
774
|
+
var tmp0_elvis_lhs = toBooleanStrictOrNull_0(_this__u8e3s4.u17());
|
|
775
775
|
var tmp;
|
|
776
776
|
if (tmp0_elvis_lhs == null) {
|
|
777
777
|
throw IllegalStateException_init_$Create$(_this__u8e3s4.toString() + ' does not represent a Boolean');
|
|
@@ -848,6 +848,142 @@ function JsonElementSerializer_getInstance() {
|
|
|
848
848
|
new JsonElementSerializer();
|
|
849
849
|
return JsonElementSerializer_instance;
|
|
850
850
|
}
|
|
851
|
+
function JsonObjectDescriptor() {
|
|
852
|
+
JsonObjectDescriptor_instance = this;
|
|
853
|
+
this.k18_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).jl();
|
|
854
|
+
this.l18_1 = 'kotlinx.serialization.json.JsonObject';
|
|
855
|
+
}
|
|
856
|
+
protoOf(JsonObjectDescriptor).om = function (index) {
|
|
857
|
+
return this.k18_1.om(index);
|
|
858
|
+
};
|
|
859
|
+
protoOf(JsonObjectDescriptor).pm = function (name) {
|
|
860
|
+
return this.k18_1.pm(name);
|
|
861
|
+
};
|
|
862
|
+
protoOf(JsonObjectDescriptor).qm = function (index) {
|
|
863
|
+
return this.k18_1.qm(index);
|
|
864
|
+
};
|
|
865
|
+
protoOf(JsonObjectDescriptor).rm = function (index) {
|
|
866
|
+
return this.k18_1.rm(index);
|
|
867
|
+
};
|
|
868
|
+
protoOf(JsonObjectDescriptor).sm = function (index) {
|
|
869
|
+
return this.k18_1.sm(index);
|
|
870
|
+
};
|
|
871
|
+
protoOf(JsonObjectDescriptor).tm = function () {
|
|
872
|
+
return this.k18_1.tm();
|
|
873
|
+
};
|
|
874
|
+
protoOf(JsonObjectDescriptor).jm = function () {
|
|
875
|
+
return this.k18_1.jm();
|
|
876
|
+
};
|
|
877
|
+
protoOf(JsonObjectDescriptor).um = function () {
|
|
878
|
+
return this.k18_1.um();
|
|
879
|
+
};
|
|
880
|
+
protoOf(JsonObjectDescriptor).vm = function () {
|
|
881
|
+
return this.k18_1.vm();
|
|
882
|
+
};
|
|
883
|
+
protoOf(JsonObjectDescriptor).wm = function () {
|
|
884
|
+
return this.k18_1.wm();
|
|
885
|
+
};
|
|
886
|
+
protoOf(JsonObjectDescriptor).nm = function () {
|
|
887
|
+
return this.l18_1;
|
|
888
|
+
};
|
|
889
|
+
var JsonObjectDescriptor_instance;
|
|
890
|
+
function JsonObjectDescriptor_getInstance() {
|
|
891
|
+
if (JsonObjectDescriptor_instance == null)
|
|
892
|
+
new JsonObjectDescriptor();
|
|
893
|
+
return JsonObjectDescriptor_instance;
|
|
894
|
+
}
|
|
895
|
+
function JsonObjectSerializer() {
|
|
896
|
+
JsonObjectSerializer_instance = this;
|
|
897
|
+
this.g18_1 = JsonObjectDescriptor_getInstance();
|
|
898
|
+
}
|
|
899
|
+
protoOf(JsonObjectSerializer).jl = function () {
|
|
900
|
+
return this.g18_1;
|
|
901
|
+
};
|
|
902
|
+
protoOf(JsonObjectSerializer).m18 = function (encoder, value) {
|
|
903
|
+
verify(encoder);
|
|
904
|
+
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).kl(encoder, value);
|
|
905
|
+
};
|
|
906
|
+
protoOf(JsonObjectSerializer).kl = function (encoder, value) {
|
|
907
|
+
return this.m18(encoder, value instanceof JsonObject ? value : THROW_CCE());
|
|
908
|
+
};
|
|
909
|
+
protoOf(JsonObjectSerializer).ll = function (decoder) {
|
|
910
|
+
verify_0(decoder);
|
|
911
|
+
return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).ll(decoder));
|
|
912
|
+
};
|
|
913
|
+
var JsonObjectSerializer_instance;
|
|
914
|
+
function JsonObjectSerializer_getInstance() {
|
|
915
|
+
if (JsonObjectSerializer_instance == null)
|
|
916
|
+
new JsonObjectSerializer();
|
|
917
|
+
return JsonObjectSerializer_instance;
|
|
918
|
+
}
|
|
919
|
+
function JsonArrayDescriptor() {
|
|
920
|
+
JsonArrayDescriptor_instance = this;
|
|
921
|
+
this.n18_1 = ListSerializer(JsonElementSerializer_getInstance()).jl();
|
|
922
|
+
this.o18_1 = 'kotlinx.serialization.json.JsonArray';
|
|
923
|
+
}
|
|
924
|
+
protoOf(JsonArrayDescriptor).om = function (index) {
|
|
925
|
+
return this.n18_1.om(index);
|
|
926
|
+
};
|
|
927
|
+
protoOf(JsonArrayDescriptor).pm = function (name) {
|
|
928
|
+
return this.n18_1.pm(name);
|
|
929
|
+
};
|
|
930
|
+
protoOf(JsonArrayDescriptor).qm = function (index) {
|
|
931
|
+
return this.n18_1.qm(index);
|
|
932
|
+
};
|
|
933
|
+
protoOf(JsonArrayDescriptor).rm = function (index) {
|
|
934
|
+
return this.n18_1.rm(index);
|
|
935
|
+
};
|
|
936
|
+
protoOf(JsonArrayDescriptor).sm = function (index) {
|
|
937
|
+
return this.n18_1.sm(index);
|
|
938
|
+
};
|
|
939
|
+
protoOf(JsonArrayDescriptor).tm = function () {
|
|
940
|
+
return this.n18_1.tm();
|
|
941
|
+
};
|
|
942
|
+
protoOf(JsonArrayDescriptor).jm = function () {
|
|
943
|
+
return this.n18_1.jm();
|
|
944
|
+
};
|
|
945
|
+
protoOf(JsonArrayDescriptor).um = function () {
|
|
946
|
+
return this.n18_1.um();
|
|
947
|
+
};
|
|
948
|
+
protoOf(JsonArrayDescriptor).vm = function () {
|
|
949
|
+
return this.n18_1.vm();
|
|
950
|
+
};
|
|
951
|
+
protoOf(JsonArrayDescriptor).wm = function () {
|
|
952
|
+
return this.n18_1.wm();
|
|
953
|
+
};
|
|
954
|
+
protoOf(JsonArrayDescriptor).nm = function () {
|
|
955
|
+
return this.o18_1;
|
|
956
|
+
};
|
|
957
|
+
var JsonArrayDescriptor_instance;
|
|
958
|
+
function JsonArrayDescriptor_getInstance() {
|
|
959
|
+
if (JsonArrayDescriptor_instance == null)
|
|
960
|
+
new JsonArrayDescriptor();
|
|
961
|
+
return JsonArrayDescriptor_instance;
|
|
962
|
+
}
|
|
963
|
+
function JsonArraySerializer() {
|
|
964
|
+
JsonArraySerializer_instance = this;
|
|
965
|
+
this.h18_1 = JsonArrayDescriptor_getInstance();
|
|
966
|
+
}
|
|
967
|
+
protoOf(JsonArraySerializer).jl = function () {
|
|
968
|
+
return this.h18_1;
|
|
969
|
+
};
|
|
970
|
+
protoOf(JsonArraySerializer).p18 = function (encoder, value) {
|
|
971
|
+
verify(encoder);
|
|
972
|
+
ListSerializer(JsonElementSerializer_getInstance()).kl(encoder, value);
|
|
973
|
+
};
|
|
974
|
+
protoOf(JsonArraySerializer).kl = function (encoder, value) {
|
|
975
|
+
return this.p18(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
976
|
+
};
|
|
977
|
+
protoOf(JsonArraySerializer).ll = function (decoder) {
|
|
978
|
+
verify_0(decoder);
|
|
979
|
+
return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).ll(decoder));
|
|
980
|
+
};
|
|
981
|
+
var JsonArraySerializer_instance;
|
|
982
|
+
function JsonArraySerializer_getInstance() {
|
|
983
|
+
if (JsonArraySerializer_instance == null)
|
|
984
|
+
new JsonArraySerializer();
|
|
985
|
+
return JsonArraySerializer_instance;
|
|
986
|
+
}
|
|
851
987
|
function defer(deferred) {
|
|
852
988
|
return new defer$1(deferred);
|
|
853
989
|
}
|
|
@@ -858,7 +994,7 @@ function JsonPrimitiveSerializer() {
|
|
|
858
994
|
protoOf(JsonPrimitiveSerializer).jl = function () {
|
|
859
995
|
return this.d18_1;
|
|
860
996
|
};
|
|
861
|
-
protoOf(JsonPrimitiveSerializer).
|
|
997
|
+
protoOf(JsonPrimitiveSerializer).q18 = function (encoder, value) {
|
|
862
998
|
verify(encoder);
|
|
863
999
|
var tmp;
|
|
864
1000
|
if (value instanceof JsonNull) {
|
|
@@ -872,7 +1008,7 @@ protoOf(JsonPrimitiveSerializer).k18 = function (encoder, value) {
|
|
|
872
1008
|
return tmp;
|
|
873
1009
|
};
|
|
874
1010
|
protoOf(JsonPrimitiveSerializer).kl = function (encoder, value) {
|
|
875
|
-
return this.
|
|
1011
|
+
return this.q18(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
876
1012
|
};
|
|
877
1013
|
protoOf(JsonPrimitiveSerializer).ll = function (decoder) {
|
|
878
1014
|
var result = asJsonDecoder(decoder).p17();
|
|
@@ -893,12 +1029,12 @@ function JsonNullSerializer() {
|
|
|
893
1029
|
protoOf(JsonNullSerializer).jl = function () {
|
|
894
1030
|
return this.e18_1;
|
|
895
1031
|
};
|
|
896
|
-
protoOf(JsonNullSerializer).
|
|
1032
|
+
protoOf(JsonNullSerializer).r18 = function (encoder, value) {
|
|
897
1033
|
verify(encoder);
|
|
898
1034
|
encoder.fp();
|
|
899
1035
|
};
|
|
900
1036
|
protoOf(JsonNullSerializer).kl = function (encoder, value) {
|
|
901
|
-
return this.
|
|
1037
|
+
return this.r18(encoder, value instanceof JsonNull ? value : THROW_CCE());
|
|
902
1038
|
};
|
|
903
1039
|
protoOf(JsonNullSerializer).ll = function (decoder) {
|
|
904
1040
|
verify_0(decoder);
|
|
@@ -921,15 +1057,15 @@ function JsonLiteralSerializer() {
|
|
|
921
1057
|
protoOf(JsonLiteralSerializer).jl = function () {
|
|
922
1058
|
return this.f18_1;
|
|
923
1059
|
};
|
|
924
|
-
protoOf(JsonLiteralSerializer).
|
|
1060
|
+
protoOf(JsonLiteralSerializer).s18 = function (encoder, value) {
|
|
925
1061
|
verify(encoder);
|
|
926
|
-
if (value.
|
|
927
|
-
return encoder.op(value.
|
|
1062
|
+
if (value.w17_1) {
|
|
1063
|
+
return encoder.op(value.y17_1);
|
|
928
1064
|
}
|
|
929
|
-
if (!(value.
|
|
930
|
-
return encoder.qp(value.
|
|
1065
|
+
if (!(value.x17_1 == null)) {
|
|
1066
|
+
return encoder.qp(value.x17_1).op(value.y17_1);
|
|
931
1067
|
}
|
|
932
|
-
var tmp2_safe_receiver = toLongOrNull(value.
|
|
1068
|
+
var tmp2_safe_receiver = toLongOrNull(value.y17_1);
|
|
933
1069
|
if (tmp2_safe_receiver == null)
|
|
934
1070
|
null;
|
|
935
1071
|
else {
|
|
@@ -937,7 +1073,7 @@ protoOf(JsonLiteralSerializer).m18 = function (encoder, value) {
|
|
|
937
1073
|
// Inline function 'kotlin.contracts.contract' call
|
|
938
1074
|
return encoder.kp(tmp2_safe_receiver);
|
|
939
1075
|
}
|
|
940
|
-
var tmp3_safe_receiver = toULongOrNull(value.
|
|
1076
|
+
var tmp3_safe_receiver = toULongOrNull(value.y17_1);
|
|
941
1077
|
var tmp = tmp3_safe_receiver;
|
|
942
1078
|
if ((tmp == null ? null : new ULong(tmp)) == null)
|
|
943
1079
|
null;
|
|
@@ -952,7 +1088,7 @@ protoOf(JsonLiteralSerializer).m18 = function (encoder, value) {
|
|
|
952
1088
|
tmp_1.kp(tmp$ret$1);
|
|
953
1089
|
return Unit_instance;
|
|
954
1090
|
}
|
|
955
|
-
var tmp4_safe_receiver = toDoubleOrNull(value.
|
|
1091
|
+
var tmp4_safe_receiver = toDoubleOrNull(value.y17_1);
|
|
956
1092
|
if (tmp4_safe_receiver == null)
|
|
957
1093
|
null;
|
|
958
1094
|
else {
|
|
@@ -960,7 +1096,7 @@ protoOf(JsonLiteralSerializer).m18 = function (encoder, value) {
|
|
|
960
1096
|
// Inline function 'kotlin.contracts.contract' call
|
|
961
1097
|
return encoder.mp(tmp4_safe_receiver);
|
|
962
1098
|
}
|
|
963
|
-
var tmp5_safe_receiver = toBooleanStrictOrNull(value.
|
|
1099
|
+
var tmp5_safe_receiver = toBooleanStrictOrNull(value.y17_1);
|
|
964
1100
|
if (tmp5_safe_receiver == null)
|
|
965
1101
|
null;
|
|
966
1102
|
else {
|
|
@@ -968,10 +1104,10 @@ protoOf(JsonLiteralSerializer).m18 = function (encoder, value) {
|
|
|
968
1104
|
// Inline function 'kotlin.contracts.contract' call
|
|
969
1105
|
return encoder.gp(tmp5_safe_receiver);
|
|
970
1106
|
}
|
|
971
|
-
encoder.op(value.
|
|
1107
|
+
encoder.op(value.y17_1);
|
|
972
1108
|
};
|
|
973
1109
|
protoOf(JsonLiteralSerializer).kl = function (encoder, value) {
|
|
974
|
-
return this.
|
|
1110
|
+
return this.s18(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
975
1111
|
};
|
|
976
1112
|
protoOf(JsonLiteralSerializer).ll = function (decoder) {
|
|
977
1113
|
var result = asJsonDecoder(decoder).p17();
|
|
@@ -985,142 +1121,6 @@ function JsonLiteralSerializer_getInstance() {
|
|
|
985
1121
|
new JsonLiteralSerializer();
|
|
986
1122
|
return JsonLiteralSerializer_instance;
|
|
987
1123
|
}
|
|
988
|
-
function JsonObjectDescriptor() {
|
|
989
|
-
JsonObjectDescriptor_instance = this;
|
|
990
|
-
this.n18_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).jl();
|
|
991
|
-
this.o18_1 = 'kotlinx.serialization.json.JsonObject';
|
|
992
|
-
}
|
|
993
|
-
protoOf(JsonObjectDescriptor).om = function (index) {
|
|
994
|
-
return this.n18_1.om(index);
|
|
995
|
-
};
|
|
996
|
-
protoOf(JsonObjectDescriptor).pm = function (name) {
|
|
997
|
-
return this.n18_1.pm(name);
|
|
998
|
-
};
|
|
999
|
-
protoOf(JsonObjectDescriptor).qm = function (index) {
|
|
1000
|
-
return this.n18_1.qm(index);
|
|
1001
|
-
};
|
|
1002
|
-
protoOf(JsonObjectDescriptor).rm = function (index) {
|
|
1003
|
-
return this.n18_1.rm(index);
|
|
1004
|
-
};
|
|
1005
|
-
protoOf(JsonObjectDescriptor).sm = function (index) {
|
|
1006
|
-
return this.n18_1.sm(index);
|
|
1007
|
-
};
|
|
1008
|
-
protoOf(JsonObjectDescriptor).tm = function () {
|
|
1009
|
-
return this.n18_1.tm();
|
|
1010
|
-
};
|
|
1011
|
-
protoOf(JsonObjectDescriptor).jm = function () {
|
|
1012
|
-
return this.n18_1.jm();
|
|
1013
|
-
};
|
|
1014
|
-
protoOf(JsonObjectDescriptor).um = function () {
|
|
1015
|
-
return this.n18_1.um();
|
|
1016
|
-
};
|
|
1017
|
-
protoOf(JsonObjectDescriptor).vm = function () {
|
|
1018
|
-
return this.n18_1.vm();
|
|
1019
|
-
};
|
|
1020
|
-
protoOf(JsonObjectDescriptor).wm = function () {
|
|
1021
|
-
return this.n18_1.wm();
|
|
1022
|
-
};
|
|
1023
|
-
protoOf(JsonObjectDescriptor).nm = function () {
|
|
1024
|
-
return this.o18_1;
|
|
1025
|
-
};
|
|
1026
|
-
var JsonObjectDescriptor_instance;
|
|
1027
|
-
function JsonObjectDescriptor_getInstance() {
|
|
1028
|
-
if (JsonObjectDescriptor_instance == null)
|
|
1029
|
-
new JsonObjectDescriptor();
|
|
1030
|
-
return JsonObjectDescriptor_instance;
|
|
1031
|
-
}
|
|
1032
|
-
function JsonObjectSerializer() {
|
|
1033
|
-
JsonObjectSerializer_instance = this;
|
|
1034
|
-
this.g18_1 = JsonObjectDescriptor_getInstance();
|
|
1035
|
-
}
|
|
1036
|
-
protoOf(JsonObjectSerializer).jl = function () {
|
|
1037
|
-
return this.g18_1;
|
|
1038
|
-
};
|
|
1039
|
-
protoOf(JsonObjectSerializer).p18 = function (encoder, value) {
|
|
1040
|
-
verify(encoder);
|
|
1041
|
-
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).kl(encoder, value);
|
|
1042
|
-
};
|
|
1043
|
-
protoOf(JsonObjectSerializer).kl = function (encoder, value) {
|
|
1044
|
-
return this.p18(encoder, value instanceof JsonObject ? value : THROW_CCE());
|
|
1045
|
-
};
|
|
1046
|
-
protoOf(JsonObjectSerializer).ll = function (decoder) {
|
|
1047
|
-
verify_0(decoder);
|
|
1048
|
-
return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).ll(decoder));
|
|
1049
|
-
};
|
|
1050
|
-
var JsonObjectSerializer_instance;
|
|
1051
|
-
function JsonObjectSerializer_getInstance() {
|
|
1052
|
-
if (JsonObjectSerializer_instance == null)
|
|
1053
|
-
new JsonObjectSerializer();
|
|
1054
|
-
return JsonObjectSerializer_instance;
|
|
1055
|
-
}
|
|
1056
|
-
function JsonArrayDescriptor() {
|
|
1057
|
-
JsonArrayDescriptor_instance = this;
|
|
1058
|
-
this.q18_1 = ListSerializer(JsonElementSerializer_getInstance()).jl();
|
|
1059
|
-
this.r18_1 = 'kotlinx.serialization.json.JsonArray';
|
|
1060
|
-
}
|
|
1061
|
-
protoOf(JsonArrayDescriptor).om = function (index) {
|
|
1062
|
-
return this.q18_1.om(index);
|
|
1063
|
-
};
|
|
1064
|
-
protoOf(JsonArrayDescriptor).pm = function (name) {
|
|
1065
|
-
return this.q18_1.pm(name);
|
|
1066
|
-
};
|
|
1067
|
-
protoOf(JsonArrayDescriptor).qm = function (index) {
|
|
1068
|
-
return this.q18_1.qm(index);
|
|
1069
|
-
};
|
|
1070
|
-
protoOf(JsonArrayDescriptor).rm = function (index) {
|
|
1071
|
-
return this.q18_1.rm(index);
|
|
1072
|
-
};
|
|
1073
|
-
protoOf(JsonArrayDescriptor).sm = function (index) {
|
|
1074
|
-
return this.q18_1.sm(index);
|
|
1075
|
-
};
|
|
1076
|
-
protoOf(JsonArrayDescriptor).tm = function () {
|
|
1077
|
-
return this.q18_1.tm();
|
|
1078
|
-
};
|
|
1079
|
-
protoOf(JsonArrayDescriptor).jm = function () {
|
|
1080
|
-
return this.q18_1.jm();
|
|
1081
|
-
};
|
|
1082
|
-
protoOf(JsonArrayDescriptor).um = function () {
|
|
1083
|
-
return this.q18_1.um();
|
|
1084
|
-
};
|
|
1085
|
-
protoOf(JsonArrayDescriptor).vm = function () {
|
|
1086
|
-
return this.q18_1.vm();
|
|
1087
|
-
};
|
|
1088
|
-
protoOf(JsonArrayDescriptor).wm = function () {
|
|
1089
|
-
return this.q18_1.wm();
|
|
1090
|
-
};
|
|
1091
|
-
protoOf(JsonArrayDescriptor).nm = function () {
|
|
1092
|
-
return this.r18_1;
|
|
1093
|
-
};
|
|
1094
|
-
var JsonArrayDescriptor_instance;
|
|
1095
|
-
function JsonArrayDescriptor_getInstance() {
|
|
1096
|
-
if (JsonArrayDescriptor_instance == null)
|
|
1097
|
-
new JsonArrayDescriptor();
|
|
1098
|
-
return JsonArrayDescriptor_instance;
|
|
1099
|
-
}
|
|
1100
|
-
function JsonArraySerializer() {
|
|
1101
|
-
JsonArraySerializer_instance = this;
|
|
1102
|
-
this.h18_1 = JsonArrayDescriptor_getInstance();
|
|
1103
|
-
}
|
|
1104
|
-
protoOf(JsonArraySerializer).jl = function () {
|
|
1105
|
-
return this.h18_1;
|
|
1106
|
-
};
|
|
1107
|
-
protoOf(JsonArraySerializer).s18 = function (encoder, value) {
|
|
1108
|
-
verify(encoder);
|
|
1109
|
-
ListSerializer(JsonElementSerializer_getInstance()).kl(encoder, value);
|
|
1110
|
-
};
|
|
1111
|
-
protoOf(JsonArraySerializer).kl = function (encoder, value) {
|
|
1112
|
-
return this.s18(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
1113
|
-
};
|
|
1114
|
-
protoOf(JsonArraySerializer).ll = function (decoder) {
|
|
1115
|
-
verify_0(decoder);
|
|
1116
|
-
return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).ll(decoder));
|
|
1117
|
-
};
|
|
1118
|
-
var JsonArraySerializer_instance;
|
|
1119
|
-
function JsonArraySerializer_getInstance() {
|
|
1120
|
-
if (JsonArraySerializer_instance == null)
|
|
1121
|
-
new JsonArraySerializer();
|
|
1122
|
-
return JsonArraySerializer_instance;
|
|
1123
|
-
}
|
|
1124
1124
|
function verify(encoder) {
|
|
1125
1125
|
asJsonEncoder(encoder);
|
|
1126
1126
|
}
|
|
@@ -1358,13 +1358,6 @@ protoOf(JsonElementMarker).b1a = function (index) {
|
|
|
1358
1358
|
protoOf(JsonElementMarker).c1a = function () {
|
|
1359
1359
|
return this.z19_1.pu();
|
|
1360
1360
|
};
|
|
1361
|
-
function JsonDecodingException(message) {
|
|
1362
|
-
JsonException.call(this, message);
|
|
1363
|
-
captureStack(this, JsonDecodingException);
|
|
1364
|
-
}
|
|
1365
|
-
function JsonDecodingException_0(offset, message, input) {
|
|
1366
|
-
return JsonDecodingException_1(offset, message + '\nJSON input: ' + toString(minify(input, offset)));
|
|
1367
|
-
}
|
|
1368
1361
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
1369
1362
|
entity = entity === VOID ? 'object' : entity;
|
|
1370
1363
|
_this__u8e3s4.d1a('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.z15_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingCommas = true' in 'Json {}' builder to support them.");
|
|
@@ -1379,16 +1372,29 @@ function JsonEncodingException(message) {
|
|
|
1379
1372
|
function InvalidKeyKindException(keyDescriptor) {
|
|
1380
1373
|
return new JsonEncodingException("Value of type '" + keyDescriptor.nm() + "' can't be used in JSON as a key in the map. " + ("It should have either primitive or enum kind, but its kind is '" + keyDescriptor.tm().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
|
|
1381
1374
|
}
|
|
1375
|
+
function JsonDecodingException(message) {
|
|
1376
|
+
JsonException.call(this, message);
|
|
1377
|
+
captureStack(this, JsonDecodingException);
|
|
1378
|
+
}
|
|
1379
|
+
function JsonDecodingException_0(offset, message, input) {
|
|
1380
|
+
return JsonDecodingException_1(offset, message + '\nJSON input: ' + toString(minify(input, offset)));
|
|
1381
|
+
}
|
|
1382
1382
|
function InvalidFloatingPointDecoded(value, key, output) {
|
|
1383
1383
|
return JsonDecodingException_1(-1, unexpectedFpErrorMessage(value, key, output));
|
|
1384
1384
|
}
|
|
1385
1385
|
function UnknownKeyException(key, input) {
|
|
1386
1386
|
return JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "'.\n" + "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.\n" + ('Current input: ' + toString(minify(input))));
|
|
1387
1387
|
}
|
|
1388
|
+
function InvalidFloatingPointEncoded(value, output) {
|
|
1389
|
+
return new JsonEncodingException('Unexpected special floating-point value ' + toString(value) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output))));
|
|
1390
|
+
}
|
|
1388
1391
|
function JsonException(message) {
|
|
1389
1392
|
SerializationException_init_$Init$(message, this);
|
|
1390
1393
|
captureStack(this, JsonException);
|
|
1391
1394
|
}
|
|
1395
|
+
function unexpectedFpErrorMessage(value, key, output) {
|
|
1396
|
+
return 'Unexpected special floating-point value ' + toString(value) + ' with key ' + key + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output)));
|
|
1397
|
+
}
|
|
1392
1398
|
function JsonDecodingException_1(offset, message) {
|
|
1393
1399
|
return new JsonDecodingException(offset >= 0 ? 'Unexpected JSON token at offset ' + offset + ': ' + message : message);
|
|
1394
1400
|
}
|
|
@@ -1413,12 +1419,6 @@ function minify(_this__u8e3s4, offset) {
|
|
|
1413
1419
|
var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
|
|
1414
1420
|
return prefix + toString(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex_0)) + suffix;
|
|
1415
1421
|
}
|
|
1416
|
-
function unexpectedFpErrorMessage(value, key, output) {
|
|
1417
|
-
return 'Unexpected special floating-point value ' + toString(value) + ' with key ' + key + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output)));
|
|
1418
|
-
}
|
|
1419
|
-
function InvalidFloatingPointEncoded(value, output) {
|
|
1420
|
-
return new JsonEncodingException('Unexpected special floating-point value ' + toString(value) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output))));
|
|
1421
|
-
}
|
|
1422
1422
|
function get_JsonDeserializationNamesKey() {
|
|
1423
1423
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1424
1424
|
return JsonDeserializationNamesKey;
|
|
@@ -3423,7 +3423,7 @@ protoOf(AbstractJsonTreeDecoder).v1d = function (tag, enumDescriptor) {
|
|
|
3423
3423
|
var tmp$ret$0 = this.s1d(tag);
|
|
3424
3424
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(value));
|
|
3425
3425
|
}
|
|
3426
|
-
return getJsonNameIndexOrThrow(enumDescriptor, tmp, value.
|
|
3426
|
+
return getJsonNameIndexOrThrow(enumDescriptor, tmp, value.u17());
|
|
3427
3427
|
};
|
|
3428
3428
|
protoOf(AbstractJsonTreeDecoder).e13 = function (tag, enumDescriptor) {
|
|
3429
3429
|
return this.v1d((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
|
|
@@ -3740,7 +3740,7 @@ protoOf(AbstractJsonTreeDecoder).e1e = function (tag) {
|
|
|
3740
3740
|
var literal = value;
|
|
3741
3741
|
try {
|
|
3742
3742
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedChar.<anonymous>' call
|
|
3743
|
-
var tmp0_elvis_lhs = new Char(single(literal.
|
|
3743
|
+
var tmp0_elvis_lhs = new Char(single(literal.u17()));
|
|
3744
3744
|
var tmp_1;
|
|
3745
3745
|
if (tmp0_elvis_lhs == null) {
|
|
3746
3746
|
unparsedPrimitive(this, literal, 'char', tag);
|
|
@@ -3777,10 +3777,10 @@ protoOf(AbstractJsonTreeDecoder).f1e = function (tag) {
|
|
|
3777
3777
|
var value_0 = value;
|
|
3778
3778
|
if (!(value_0 instanceof JsonLiteral))
|
|
3779
3779
|
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.s1d(tag), toString(this.t1d()));
|
|
3780
|
-
if (!value_0.
|
|
3780
|
+
if (!value_0.w17_1 && !this.o17().j15_1.z16_1) {
|
|
3781
3781
|
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.s1d(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.t1d()));
|
|
3782
3782
|
}
|
|
3783
|
-
return value_0.
|
|
3783
|
+
return value_0.y17_1;
|
|
3784
3784
|
};
|
|
3785
3785
|
protoOf(AbstractJsonTreeDecoder).d13 = function (tag) {
|
|
3786
3786
|
return this.f1e((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
@@ -3801,7 +3801,7 @@ protoOf(AbstractJsonTreeDecoder).g1e = function (tag, inlineDescriptor) {
|
|
|
3801
3801
|
var tmp$ret$0 = this.s1d(tag);
|
|
3802
3802
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(value));
|
|
3803
3803
|
}
|
|
3804
|
-
var lexer = StringJsonLexer_0(tmp_0, value.
|
|
3804
|
+
var lexer = StringJsonLexer_0(tmp_0, value.u17());
|
|
3805
3805
|
tmp = new JsonDecoderForUnsignedTypes(lexer, this.o17());
|
|
3806
3806
|
} else {
|
|
3807
3807
|
tmp = protoOf(NamedValueDecoder).f13.call(this, tag, inlineDescriptor);
|