git-semver-tagger 1.9.23 → 1.9.24
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/README.md +137 -0
- package/kotlin/clikt-clikt-mordant.js +41 -41
- package/kotlin/clikt-clikt.js +613 -479
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +406 -406
- package/kotlin/command-line-tools-tagger-cli.js +165 -194
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +9 -9
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1168 -1168
- package/kotlin/mordant-mordant.js +1097 -1097
- package/package.json +1 -1
|
@@ -267,83 +267,83 @@
|
|
|
267
267
|
}
|
|
268
268
|
function Json(configuration, serializersModule) {
|
|
269
269
|
Default_getInstance();
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
272
|
-
this.
|
|
270
|
+
this.d2a_1 = configuration;
|
|
271
|
+
this.e2a_1 = serializersModule;
|
|
272
|
+
this.f2a_1 = new DescriptorSchemaCache();
|
|
273
273
|
}
|
|
274
274
|
protoOf(Json).sr = function () {
|
|
275
|
-
return this.
|
|
275
|
+
return this.e2a_1;
|
|
276
276
|
};
|
|
277
|
-
protoOf(Json).
|
|
277
|
+
protoOf(Json).g2a = function (serializer, value) {
|
|
278
278
|
var result = new JsonToStringWriter();
|
|
279
279
|
try {
|
|
280
280
|
encodeByWriter(this, result, serializer, value);
|
|
281
281
|
return result.toString();
|
|
282
282
|
}finally {
|
|
283
|
-
result.
|
|
283
|
+
result.l2a();
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
protoOf(Json).
|
|
286
|
+
protoOf(Json).h2a = function (deserializer, string) {
|
|
287
287
|
var lexer = StringJsonLexer_0(this, string);
|
|
288
288
|
var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.go(), null);
|
|
289
289
|
var result = input.cr(deserializer);
|
|
290
|
-
lexer.
|
|
290
|
+
lexer.y2a();
|
|
291
291
|
return result;
|
|
292
292
|
};
|
|
293
|
-
protoOf(Json).
|
|
293
|
+
protoOf(Json).i2a = function (serializer, value) {
|
|
294
294
|
return writeJson(this, value, serializer);
|
|
295
295
|
};
|
|
296
|
-
protoOf(Json).
|
|
297
|
-
return this.
|
|
296
|
+
protoOf(Json).j2a = function (string) {
|
|
297
|
+
return this.h2a(JsonElementSerializer_getInstance(), string);
|
|
298
298
|
};
|
|
299
299
|
function Json_0(from, builderAction) {
|
|
300
300
|
from = from === VOID ? Default_getInstance() : from;
|
|
301
301
|
var builder = new JsonBuilder(from);
|
|
302
302
|
builderAction(builder);
|
|
303
|
-
var conf = builder.
|
|
304
|
-
return new JsonImpl(conf, builder.
|
|
303
|
+
var conf = builder.r2b();
|
|
304
|
+
return new JsonImpl(conf, builder.q2b_1);
|
|
305
305
|
}
|
|
306
306
|
function JsonBuilder(json) {
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
}
|
|
326
|
-
protoOf(JsonBuilder).
|
|
327
|
-
if (this.
|
|
307
|
+
this.z2a_1 = json.d2a_1.s2b_1;
|
|
308
|
+
this.a2b_1 = json.d2a_1.x2b_1;
|
|
309
|
+
this.b2b_1 = json.d2a_1.t2b_1;
|
|
310
|
+
this.c2b_1 = json.d2a_1.u2b_1;
|
|
311
|
+
this.d2b_1 = json.d2a_1.w2b_1;
|
|
312
|
+
this.e2b_1 = json.d2a_1.y2b_1;
|
|
313
|
+
this.f2b_1 = json.d2a_1.z2b_1;
|
|
314
|
+
this.g2b_1 = json.d2a_1.b2c_1;
|
|
315
|
+
this.h2b_1 = json.d2a_1.i2c_1;
|
|
316
|
+
this.i2b_1 = json.d2a_1.d2c_1;
|
|
317
|
+
this.j2b_1 = json.d2a_1.e2c_1;
|
|
318
|
+
this.k2b_1 = json.d2a_1.f2c_1;
|
|
319
|
+
this.l2b_1 = json.d2a_1.g2c_1;
|
|
320
|
+
this.m2b_1 = json.d2a_1.h2c_1;
|
|
321
|
+
this.n2b_1 = json.d2a_1.c2c_1;
|
|
322
|
+
this.o2b_1 = json.d2a_1.v2b_1;
|
|
323
|
+
this.p2b_1 = json.d2a_1.a2c_1;
|
|
324
|
+
this.q2b_1 = json.sr();
|
|
325
|
+
}
|
|
326
|
+
protoOf(JsonBuilder).r2b = function () {
|
|
327
|
+
if (this.p2b_1) {
|
|
328
328
|
// Inline function 'kotlin.require' call
|
|
329
|
-
if (!(this.
|
|
329
|
+
if (!(this.g2b_1 === 'type')) {
|
|
330
330
|
var message = 'Class discriminator should not be specified when array polymorphism is specified';
|
|
331
331
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
332
332
|
}
|
|
333
333
|
// Inline function 'kotlin.require' call
|
|
334
|
-
if (!this.
|
|
334
|
+
if (!this.h2b_1.equals(ClassDiscriminatorMode_POLYMORPHIC_getInstance())) {
|
|
335
335
|
var message_0 = 'useArrayPolymorphism option can only be used if classDiscriminatorMode in a default POLYMORPHIC state.';
|
|
336
336
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
if (!this.
|
|
339
|
+
if (!this.d2b_1) {
|
|
340
340
|
// Inline function 'kotlin.require' call
|
|
341
|
-
if (!(this.
|
|
341
|
+
if (!(this.e2b_1 === ' ')) {
|
|
342
342
|
var message_1 = 'Indent should not be specified when default printing mode is used';
|
|
343
343
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
344
344
|
}
|
|
345
|
-
} else if (!(this.
|
|
346
|
-
var tmp0 = this.
|
|
345
|
+
} else if (!(this.e2b_1 === ' ')) {
|
|
346
|
+
var tmp0 = this.e2b_1;
|
|
347
347
|
var tmp$ret$6;
|
|
348
348
|
$l$block: {
|
|
349
349
|
// Inline function 'kotlin.text.all' call
|
|
@@ -361,16 +361,16 @@
|
|
|
361
361
|
var allWhitespaces = tmp$ret$6;
|
|
362
362
|
// Inline function 'kotlin.require' call
|
|
363
363
|
if (!allWhitespaces) {
|
|
364
|
-
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.
|
|
364
|
+
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.e2b_1;
|
|
365
365
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
return new JsonConfiguration(this.
|
|
368
|
+
return new JsonConfiguration(this.z2a_1, this.b2b_1, this.c2b_1, this.o2b_1, this.d2b_1, this.a2b_1, this.e2b_1, this.f2b_1, this.p2b_1, this.g2b_1, this.n2b_1, this.i2b_1, this.j2b_1, this.k2b_1, this.l2b_1, this.m2b_1, this.h2b_1);
|
|
369
369
|
};
|
|
370
370
|
function validateConfiguration($this) {
|
|
371
371
|
if (equals($this.sr(), EmptySerializersModule()))
|
|
372
372
|
return Unit_instance;
|
|
373
|
-
var collector = new JsonSerializersModuleValidator($this.
|
|
373
|
+
var collector = new JsonSerializersModuleValidator($this.d2a_1);
|
|
374
374
|
$this.sr().k17(collector);
|
|
375
375
|
}
|
|
376
376
|
function JsonImpl(configuration, module_0) {
|
|
@@ -401,26 +401,26 @@
|
|
|
401
401
|
allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
|
|
402
402
|
allowComments = allowComments === VOID ? false : allowComments;
|
|
403
403
|
classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
416
|
-
this.
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
404
|
+
this.s2b_1 = encodeDefaults;
|
|
405
|
+
this.t2b_1 = ignoreUnknownKeys;
|
|
406
|
+
this.u2b_1 = isLenient;
|
|
407
|
+
this.v2b_1 = allowStructuredMapKeys;
|
|
408
|
+
this.w2b_1 = prettyPrint;
|
|
409
|
+
this.x2b_1 = explicitNulls;
|
|
410
|
+
this.y2b_1 = prettyPrintIndent;
|
|
411
|
+
this.z2b_1 = coerceInputValues;
|
|
412
|
+
this.a2c_1 = useArrayPolymorphism;
|
|
413
|
+
this.b2c_1 = classDiscriminator;
|
|
414
|
+
this.c2c_1 = allowSpecialFloatingPointValues;
|
|
415
|
+
this.d2c_1 = useAlternativeNames;
|
|
416
|
+
this.e2c_1 = namingStrategy;
|
|
417
|
+
this.f2c_1 = decodeEnumsCaseInsensitive;
|
|
418
|
+
this.g2c_1 = allowTrailingComma;
|
|
419
|
+
this.h2c_1 = allowComments;
|
|
420
|
+
this.i2c_1 = classDiscriminatorMode;
|
|
421
421
|
}
|
|
422
422
|
protoOf(JsonConfiguration).toString = function () {
|
|
423
|
-
return 'JsonConfiguration(encodeDefaults=' + this.
|
|
423
|
+
return 'JsonConfiguration(encodeDefaults=' + this.s2b_1 + ', ignoreUnknownKeys=' + this.t2b_1 + ', isLenient=' + this.u2b_1 + ', ' + ('allowStructuredMapKeys=' + this.v2b_1 + ', prettyPrint=' + this.w2b_1 + ', explicitNulls=' + this.x2b_1 + ', ') + ("prettyPrintIndent='" + this.y2b_1 + "', coerceInputValues=" + this.z2b_1 + ', useArrayPolymorphism=' + this.a2c_1 + ', ') + ("classDiscriminator='" + this.b2c_1 + "', allowSpecialFloatingPointValues=" + this.c2c_1 + ', ') + ('useAlternativeNames=' + this.d2c_1 + ', namingStrategy=' + toString_0(this.e2c_1) + ', decodeEnumsCaseInsensitive=' + this.f2c_1 + ', ') + ('allowTrailingComma=' + this.g2c_1 + ', allowComments=' + this.h2c_1 + ', classDiscriminatorMode=' + this.i2c_1.toString() + ')');
|
|
424
424
|
};
|
|
425
425
|
var ClassDiscriminatorMode_NONE_instance;
|
|
426
426
|
var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
|
|
@@ -481,31 +481,31 @@
|
|
|
481
481
|
}
|
|
482
482
|
function JsonObject(content) {
|
|
483
483
|
JsonElement.call(this);
|
|
484
|
-
this.
|
|
484
|
+
this.l2c_1 = content;
|
|
485
485
|
}
|
|
486
486
|
protoOf(JsonObject).equals = function (other) {
|
|
487
|
-
return equals(this.
|
|
487
|
+
return equals(this.l2c_1, other);
|
|
488
488
|
};
|
|
489
489
|
protoOf(JsonObject).hashCode = function () {
|
|
490
|
-
return hashCode(this.
|
|
490
|
+
return hashCode(this.l2c_1);
|
|
491
491
|
};
|
|
492
492
|
protoOf(JsonObject).toString = function () {
|
|
493
|
-
var tmp = this.
|
|
493
|
+
var tmp = this.l2c_1.k1();
|
|
494
494
|
return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
|
|
495
495
|
};
|
|
496
496
|
protoOf(JsonObject).p = function () {
|
|
497
|
-
return this.
|
|
497
|
+
return this.l2c_1.p();
|
|
498
498
|
};
|
|
499
|
-
protoOf(JsonObject).
|
|
500
|
-
return this.
|
|
499
|
+
protoOf(JsonObject).m2c = function (key) {
|
|
500
|
+
return this.l2c_1.k2(key);
|
|
501
501
|
};
|
|
502
502
|
protoOf(JsonObject).k2 = function (key) {
|
|
503
503
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
504
504
|
return false;
|
|
505
|
-
return this.
|
|
505
|
+
return this.m2c((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
506
506
|
};
|
|
507
507
|
protoOf(JsonObject).rc = function (key) {
|
|
508
|
-
return this.
|
|
508
|
+
return this.l2c_1.m2(key);
|
|
509
509
|
};
|
|
510
510
|
protoOf(JsonObject).m2 = function (key) {
|
|
511
511
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
@@ -513,16 +513,16 @@
|
|
|
513
513
|
return this.rc((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
514
514
|
};
|
|
515
515
|
protoOf(JsonObject).d1 = function () {
|
|
516
|
-
return this.
|
|
516
|
+
return this.l2c_1.d1();
|
|
517
517
|
};
|
|
518
518
|
protoOf(JsonObject).n2 = function () {
|
|
519
|
-
return this.
|
|
519
|
+
return this.l2c_1.n2();
|
|
520
520
|
};
|
|
521
521
|
protoOf(JsonObject).o2 = function () {
|
|
522
|
-
return this.
|
|
522
|
+
return this.l2c_1.o2();
|
|
523
523
|
};
|
|
524
524
|
protoOf(JsonObject).k1 = function () {
|
|
525
|
-
return this.
|
|
525
|
+
return this.l2c_1.k1();
|
|
526
526
|
};
|
|
527
527
|
function Companion_1() {
|
|
528
528
|
}
|
|
@@ -532,42 +532,42 @@
|
|
|
532
532
|
}
|
|
533
533
|
function JsonArray(content) {
|
|
534
534
|
JsonElement.call(this);
|
|
535
|
-
this.
|
|
535
|
+
this.n2c_1 = content;
|
|
536
536
|
}
|
|
537
537
|
protoOf(JsonArray).equals = function (other) {
|
|
538
|
-
return equals(this.
|
|
538
|
+
return equals(this.n2c_1, other);
|
|
539
539
|
};
|
|
540
540
|
protoOf(JsonArray).hashCode = function () {
|
|
541
|
-
return hashCode(this.
|
|
541
|
+
return hashCode(this.n2c_1);
|
|
542
542
|
};
|
|
543
543
|
protoOf(JsonArray).toString = function () {
|
|
544
|
-
return joinToString(this.
|
|
544
|
+
return joinToString(this.n2c_1, ',', '[', ']');
|
|
545
545
|
};
|
|
546
546
|
protoOf(JsonArray).p = function () {
|
|
547
|
-
return this.
|
|
547
|
+
return this.n2c_1.p();
|
|
548
548
|
};
|
|
549
|
-
protoOf(JsonArray).
|
|
550
|
-
return this.
|
|
549
|
+
protoOf(JsonArray).o2c = function (element) {
|
|
550
|
+
return this.n2c_1.u1(element);
|
|
551
551
|
};
|
|
552
552
|
protoOf(JsonArray).u1 = function (element) {
|
|
553
553
|
if (!(element instanceof JsonElement))
|
|
554
554
|
return false;
|
|
555
|
-
return this.
|
|
555
|
+
return this.o2c(element instanceof JsonElement ? element : THROW_CCE());
|
|
556
556
|
};
|
|
557
557
|
protoOf(JsonArray).r = function () {
|
|
558
|
-
return this.
|
|
558
|
+
return this.n2c_1.r();
|
|
559
559
|
};
|
|
560
560
|
protoOf(JsonArray).c1 = function (index) {
|
|
561
|
-
return this.
|
|
561
|
+
return this.n2c_1.c1(index);
|
|
562
562
|
};
|
|
563
563
|
protoOf(JsonArray).i1 = function (index) {
|
|
564
|
-
return this.
|
|
564
|
+
return this.n2c_1.i1(index);
|
|
565
565
|
};
|
|
566
566
|
protoOf(JsonArray).i2 = function (fromIndex, toIndex) {
|
|
567
|
-
return this.
|
|
567
|
+
return this.n2c_1.i2(fromIndex, toIndex);
|
|
568
568
|
};
|
|
569
569
|
protoOf(JsonArray).d1 = function () {
|
|
570
|
-
return this.
|
|
570
|
+
return this.n2c_1.d1();
|
|
571
571
|
};
|
|
572
572
|
function Companion_2() {
|
|
573
573
|
}
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
JsonElement.call(this);
|
|
580
580
|
}
|
|
581
581
|
protoOf(JsonPrimitive).toString = function () {
|
|
582
|
-
return this.
|
|
582
|
+
return this.p2c();
|
|
583
583
|
};
|
|
584
584
|
function get_jsonPrimitive(_this__u8e3s4) {
|
|
585
585
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
if (_this__u8e3s4 instanceof JsonNull) {
|
|
610
610
|
tmp = null;
|
|
611
611
|
} else {
|
|
612
|
-
tmp = _this__u8e3s4.
|
|
612
|
+
tmp = _this__u8e3s4.p2c();
|
|
613
613
|
}
|
|
614
614
|
return tmp;
|
|
615
615
|
}
|
|
@@ -620,16 +620,16 @@
|
|
|
620
620
|
function JsonNull() {
|
|
621
621
|
JsonNull_instance = this;
|
|
622
622
|
JsonPrimitive.call(this);
|
|
623
|
-
this.
|
|
623
|
+
this.q2c_1 = 'null';
|
|
624
624
|
}
|
|
625
|
-
protoOf(JsonNull).
|
|
626
|
-
return this.
|
|
625
|
+
protoOf(JsonNull).p2c = function () {
|
|
626
|
+
return this.q2c_1;
|
|
627
627
|
};
|
|
628
|
-
protoOf(JsonNull).
|
|
628
|
+
protoOf(JsonNull).r2c = function () {
|
|
629
629
|
return JsonNullSerializer_getInstance();
|
|
630
630
|
};
|
|
631
631
|
protoOf(JsonNull).bz = function (typeParamsSerializers) {
|
|
632
|
-
return this.
|
|
632
|
+
return this.r2c();
|
|
633
633
|
};
|
|
634
634
|
var JsonNull_instance;
|
|
635
635
|
function JsonNull_getInstance() {
|
|
@@ -640,31 +640,31 @@
|
|
|
640
640
|
function JsonLiteral(body, isString, coerceToInlineType) {
|
|
641
641
|
coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
|
|
642
642
|
JsonPrimitive.call(this);
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
if (!(this.
|
|
643
|
+
this.s2c_1 = isString;
|
|
644
|
+
this.t2c_1 = coerceToInlineType;
|
|
645
|
+
this.u2c_1 = toString(body);
|
|
646
|
+
if (!(this.t2c_1 == null)) {
|
|
647
647
|
// Inline function 'kotlin.require' call
|
|
648
648
|
// Inline function 'kotlin.require' call
|
|
649
|
-
if (!this.
|
|
649
|
+
if (!this.t2c_1.mp()) {
|
|
650
650
|
var message = 'Failed requirement.';
|
|
651
651
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
protoOf(JsonLiteral).
|
|
656
|
-
return this.
|
|
655
|
+
protoOf(JsonLiteral).p2c = function () {
|
|
656
|
+
return this.u2c_1;
|
|
657
657
|
};
|
|
658
658
|
protoOf(JsonLiteral).toString = function () {
|
|
659
659
|
var tmp;
|
|
660
|
-
if (this.
|
|
660
|
+
if (this.s2c_1) {
|
|
661
661
|
// Inline function 'kotlin.text.buildString' call
|
|
662
662
|
// Inline function 'kotlin.apply' call
|
|
663
663
|
var this_0 = StringBuilder_init_$Create$();
|
|
664
|
-
printQuoted(this_0, this.
|
|
664
|
+
printQuoted(this_0, this.u2c_1);
|
|
665
665
|
tmp = this_0.toString();
|
|
666
666
|
} else {
|
|
667
|
-
tmp = this.
|
|
667
|
+
tmp = this.u2c_1;
|
|
668
668
|
}
|
|
669
669
|
return tmp;
|
|
670
670
|
};
|
|
@@ -675,15 +675,15 @@
|
|
|
675
675
|
return false;
|
|
676
676
|
if (!(other instanceof JsonLiteral))
|
|
677
677
|
THROW_CCE();
|
|
678
|
-
if (!(this.
|
|
678
|
+
if (!(this.s2c_1 === other.s2c_1))
|
|
679
679
|
return false;
|
|
680
|
-
if (!(this.
|
|
680
|
+
if (!(this.u2c_1 === other.u2c_1))
|
|
681
681
|
return false;
|
|
682
682
|
return true;
|
|
683
683
|
};
|
|
684
684
|
protoOf(JsonLiteral).hashCode = function () {
|
|
685
|
-
var result = getBooleanHashCode(this.
|
|
686
|
-
result = imul(31, result) + getStringHashCode(this.
|
|
685
|
+
var result = getBooleanHashCode(this.s2c_1);
|
|
686
|
+
result = imul(31, result) + getStringHashCode(this.u2c_1) | 0;
|
|
687
687
|
return result;
|
|
688
688
|
};
|
|
689
689
|
function JsonPrimitive_0(value) {
|
|
@@ -706,23 +706,23 @@
|
|
|
706
706
|
}
|
|
707
707
|
function get_booleanOrNull(_this__u8e3s4) {
|
|
708
708
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
709
|
-
return toBooleanStrictOrNull_0(_this__u8e3s4.
|
|
709
|
+
return toBooleanStrictOrNull_0(_this__u8e3s4.p2c());
|
|
710
710
|
}
|
|
711
711
|
function parseLongImpl(_this__u8e3s4) {
|
|
712
712
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
713
|
-
return (new StringJsonLexer(_this__u8e3s4.
|
|
713
|
+
return (new StringJsonLexer(_this__u8e3s4.p2c())).v2c();
|
|
714
714
|
}
|
|
715
715
|
function get_float(_this__u8e3s4) {
|
|
716
716
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
717
717
|
// Inline function 'kotlin.text.toFloat' call
|
|
718
|
-
var this_0 = _this__u8e3s4.
|
|
718
|
+
var this_0 = _this__u8e3s4.p2c();
|
|
719
719
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
720
720
|
// Inline function 'kotlin.js.asDynamic' call
|
|
721
721
|
return toDouble(this_0);
|
|
722
722
|
}
|
|
723
723
|
function get_double(_this__u8e3s4) {
|
|
724
724
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
725
|
-
return toDouble(_this__u8e3s4.
|
|
725
|
+
return toDouble(_this__u8e3s4.p2c());
|
|
726
726
|
}
|
|
727
727
|
var properties_initialized_JsonElement_kt_abxy8s;
|
|
728
728
|
function _init_properties_JsonElement_kt__7cbdc2() {
|
|
@@ -734,13 +734,13 @@
|
|
|
734
734
|
function JsonObjectBuilder() {
|
|
735
735
|
var tmp = this;
|
|
736
736
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
737
|
-
tmp.
|
|
737
|
+
tmp.w2c_1 = LinkedHashMap_init_$Create$();
|
|
738
738
|
}
|
|
739
|
-
protoOf(JsonObjectBuilder).
|
|
740
|
-
return this.
|
|
739
|
+
protoOf(JsonObjectBuilder).x2c = function (key, element) {
|
|
740
|
+
return this.w2c_1.p2(key, element);
|
|
741
741
|
};
|
|
742
|
-
protoOf(JsonObjectBuilder).
|
|
743
|
-
return new JsonObject(this.
|
|
742
|
+
protoOf(JsonObjectBuilder).r2b = function () {
|
|
743
|
+
return new JsonObject(this.w2c_1);
|
|
744
744
|
};
|
|
745
745
|
function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
|
|
746
746
|
$this$buildSerialDescriptor.ro('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
|
|
@@ -751,30 +751,30 @@
|
|
|
751
751
|
return Unit_instance;
|
|
752
752
|
}
|
|
753
753
|
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
754
|
-
return JsonPrimitiveSerializer_getInstance().
|
|
754
|
+
return JsonPrimitiveSerializer_getInstance().y2c_1;
|
|
755
755
|
}
|
|
756
756
|
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
757
|
-
return JsonNullSerializer_getInstance().
|
|
757
|
+
return JsonNullSerializer_getInstance().z2c_1;
|
|
758
758
|
}
|
|
759
759
|
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
760
|
-
return JsonLiteralSerializer_getInstance().
|
|
760
|
+
return JsonLiteralSerializer_getInstance().a2d_1;
|
|
761
761
|
}
|
|
762
762
|
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
763
|
-
return JsonObjectSerializer_getInstance().
|
|
763
|
+
return JsonObjectSerializer_getInstance().b2d_1;
|
|
764
764
|
}
|
|
765
765
|
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
766
|
-
return JsonArraySerializer_getInstance().
|
|
766
|
+
return JsonArraySerializer_getInstance().c2d_1;
|
|
767
767
|
}
|
|
768
768
|
function JsonElementSerializer() {
|
|
769
769
|
JsonElementSerializer_instance = this;
|
|
770
770
|
var tmp = this;
|
|
771
771
|
var tmp_0 = SEALED_getInstance();
|
|
772
|
-
tmp.
|
|
772
|
+
tmp.d2d_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
773
773
|
}
|
|
774
774
|
protoOf(JsonElementSerializer).go = function () {
|
|
775
|
-
return this.
|
|
775
|
+
return this.d2d_1;
|
|
776
776
|
};
|
|
777
|
-
protoOf(JsonElementSerializer).
|
|
777
|
+
protoOf(JsonElementSerializer).e2d = function (encoder, value) {
|
|
778
778
|
verify(encoder);
|
|
779
779
|
if (value instanceof JsonPrimitive) {
|
|
780
780
|
encoder.us(JsonPrimitiveSerializer_getInstance(), value);
|
|
@@ -791,11 +791,11 @@
|
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
793
|
protoOf(JsonElementSerializer).ho = function (encoder, value) {
|
|
794
|
-
return this.
|
|
794
|
+
return this.e2d(encoder, value instanceof JsonElement ? value : THROW_CCE());
|
|
795
795
|
};
|
|
796
796
|
protoOf(JsonElementSerializer).io = function (decoder) {
|
|
797
797
|
var input = asJsonDecoder(decoder);
|
|
798
|
-
return input.
|
|
798
|
+
return input.k2c();
|
|
799
799
|
};
|
|
800
800
|
var JsonElementSerializer_instance;
|
|
801
801
|
function JsonElementSerializer_getInstance() {
|
|
@@ -805,41 +805,41 @@
|
|
|
805
805
|
}
|
|
806
806
|
function JsonObjectDescriptor() {
|
|
807
807
|
JsonObjectDescriptor_instance = this;
|
|
808
|
-
this.
|
|
809
|
-
this.
|
|
808
|
+
this.f2d_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).go();
|
|
809
|
+
this.g2d_1 = 'kotlinx.serialization.json.JsonObject';
|
|
810
810
|
}
|
|
811
811
|
protoOf(JsonObjectDescriptor).kp = function () {
|
|
812
|
-
return this.
|
|
812
|
+
return this.g2d_1;
|
|
813
813
|
};
|
|
814
814
|
protoOf(JsonObjectDescriptor).pp = function (index) {
|
|
815
|
-
return this.
|
|
815
|
+
return this.f2d_1.pp(index);
|
|
816
816
|
};
|
|
817
817
|
protoOf(JsonObjectDescriptor).qp = function (name) {
|
|
818
|
-
return this.
|
|
818
|
+
return this.f2d_1.qp(name);
|
|
819
819
|
};
|
|
820
820
|
protoOf(JsonObjectDescriptor).rp = function (index) {
|
|
821
|
-
return this.
|
|
821
|
+
return this.f2d_1.rp(index);
|
|
822
822
|
};
|
|
823
823
|
protoOf(JsonObjectDescriptor).sp = function (index) {
|
|
824
|
-
return this.
|
|
824
|
+
return this.f2d_1.sp(index);
|
|
825
825
|
};
|
|
826
826
|
protoOf(JsonObjectDescriptor).tp = function (index) {
|
|
827
|
-
return this.
|
|
827
|
+
return this.f2d_1.tp(index);
|
|
828
828
|
};
|
|
829
829
|
protoOf(JsonObjectDescriptor).lp = function () {
|
|
830
|
-
return this.
|
|
830
|
+
return this.f2d_1.lp();
|
|
831
831
|
};
|
|
832
832
|
protoOf(JsonObjectDescriptor).gp = function () {
|
|
833
|
-
return this.
|
|
833
|
+
return this.f2d_1.gp();
|
|
834
834
|
};
|
|
835
835
|
protoOf(JsonObjectDescriptor).mp = function () {
|
|
836
|
-
return this.
|
|
836
|
+
return this.f2d_1.mp();
|
|
837
837
|
};
|
|
838
838
|
protoOf(JsonObjectDescriptor).np = function () {
|
|
839
|
-
return this.
|
|
839
|
+
return this.f2d_1.np();
|
|
840
840
|
};
|
|
841
841
|
protoOf(JsonObjectDescriptor).op = function () {
|
|
842
|
-
return this.
|
|
842
|
+
return this.f2d_1.op();
|
|
843
843
|
};
|
|
844
844
|
var JsonObjectDescriptor_instance;
|
|
845
845
|
function JsonObjectDescriptor_getInstance() {
|
|
@@ -849,17 +849,17 @@
|
|
|
849
849
|
}
|
|
850
850
|
function JsonObjectSerializer() {
|
|
851
851
|
JsonObjectSerializer_instance = this;
|
|
852
|
-
this.
|
|
852
|
+
this.b2d_1 = JsonObjectDescriptor_getInstance();
|
|
853
853
|
}
|
|
854
854
|
protoOf(JsonObjectSerializer).go = function () {
|
|
855
|
-
return this.
|
|
855
|
+
return this.b2d_1;
|
|
856
856
|
};
|
|
857
|
-
protoOf(JsonObjectSerializer).
|
|
857
|
+
protoOf(JsonObjectSerializer).h2d = function (encoder, value) {
|
|
858
858
|
verify(encoder);
|
|
859
859
|
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).ho(encoder, value);
|
|
860
860
|
};
|
|
861
861
|
protoOf(JsonObjectSerializer).ho = function (encoder, value) {
|
|
862
|
-
return this.
|
|
862
|
+
return this.h2d(encoder, value instanceof JsonObject ? value : THROW_CCE());
|
|
863
863
|
};
|
|
864
864
|
protoOf(JsonObjectSerializer).io = function (decoder) {
|
|
865
865
|
verify_0(decoder);
|
|
@@ -873,41 +873,41 @@
|
|
|
873
873
|
}
|
|
874
874
|
function JsonArrayDescriptor() {
|
|
875
875
|
JsonArrayDescriptor_instance = this;
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
876
|
+
this.i2d_1 = ListSerializer(JsonElementSerializer_getInstance()).go();
|
|
877
|
+
this.j2d_1 = 'kotlinx.serialization.json.JsonArray';
|
|
878
878
|
}
|
|
879
879
|
protoOf(JsonArrayDescriptor).kp = function () {
|
|
880
|
-
return this.
|
|
880
|
+
return this.j2d_1;
|
|
881
881
|
};
|
|
882
882
|
protoOf(JsonArrayDescriptor).pp = function (index) {
|
|
883
|
-
return this.
|
|
883
|
+
return this.i2d_1.pp(index);
|
|
884
884
|
};
|
|
885
885
|
protoOf(JsonArrayDescriptor).qp = function (name) {
|
|
886
|
-
return this.
|
|
886
|
+
return this.i2d_1.qp(name);
|
|
887
887
|
};
|
|
888
888
|
protoOf(JsonArrayDescriptor).rp = function (index) {
|
|
889
|
-
return this.
|
|
889
|
+
return this.i2d_1.rp(index);
|
|
890
890
|
};
|
|
891
891
|
protoOf(JsonArrayDescriptor).sp = function (index) {
|
|
892
|
-
return this.
|
|
892
|
+
return this.i2d_1.sp(index);
|
|
893
893
|
};
|
|
894
894
|
protoOf(JsonArrayDescriptor).tp = function (index) {
|
|
895
|
-
return this.
|
|
895
|
+
return this.i2d_1.tp(index);
|
|
896
896
|
};
|
|
897
897
|
protoOf(JsonArrayDescriptor).lp = function () {
|
|
898
|
-
return this.
|
|
898
|
+
return this.i2d_1.lp();
|
|
899
899
|
};
|
|
900
900
|
protoOf(JsonArrayDescriptor).gp = function () {
|
|
901
|
-
return this.
|
|
901
|
+
return this.i2d_1.gp();
|
|
902
902
|
};
|
|
903
903
|
protoOf(JsonArrayDescriptor).mp = function () {
|
|
904
|
-
return this.
|
|
904
|
+
return this.i2d_1.mp();
|
|
905
905
|
};
|
|
906
906
|
protoOf(JsonArrayDescriptor).np = function () {
|
|
907
|
-
return this.
|
|
907
|
+
return this.i2d_1.np();
|
|
908
908
|
};
|
|
909
909
|
protoOf(JsonArrayDescriptor).op = function () {
|
|
910
|
-
return this.
|
|
910
|
+
return this.i2d_1.op();
|
|
911
911
|
};
|
|
912
912
|
var JsonArrayDescriptor_instance;
|
|
913
913
|
function JsonArrayDescriptor_getInstance() {
|
|
@@ -917,17 +917,17 @@
|
|
|
917
917
|
}
|
|
918
918
|
function JsonArraySerializer() {
|
|
919
919
|
JsonArraySerializer_instance = this;
|
|
920
|
-
this.
|
|
920
|
+
this.c2d_1 = JsonArrayDescriptor_getInstance();
|
|
921
921
|
}
|
|
922
922
|
protoOf(JsonArraySerializer).go = function () {
|
|
923
|
-
return this.
|
|
923
|
+
return this.c2d_1;
|
|
924
924
|
};
|
|
925
|
-
protoOf(JsonArraySerializer).
|
|
925
|
+
protoOf(JsonArraySerializer).k2d = function (encoder, value) {
|
|
926
926
|
verify(encoder);
|
|
927
927
|
ListSerializer(JsonElementSerializer_getInstance()).ho(encoder, value);
|
|
928
928
|
};
|
|
929
929
|
protoOf(JsonArraySerializer).ho = function (encoder, value) {
|
|
930
|
-
return this.
|
|
930
|
+
return this.k2d(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
931
931
|
};
|
|
932
932
|
protoOf(JsonArraySerializer).io = function (decoder) {
|
|
933
933
|
verify_0(decoder);
|
|
@@ -941,12 +941,12 @@
|
|
|
941
941
|
}
|
|
942
942
|
function JsonPrimitiveSerializer() {
|
|
943
943
|
JsonPrimitiveSerializer_instance = this;
|
|
944
|
-
this.
|
|
944
|
+
this.y2c_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
945
945
|
}
|
|
946
946
|
protoOf(JsonPrimitiveSerializer).go = function () {
|
|
947
|
-
return this.
|
|
947
|
+
return this.y2c_1;
|
|
948
948
|
};
|
|
949
|
-
protoOf(JsonPrimitiveSerializer).
|
|
949
|
+
protoOf(JsonPrimitiveSerializer).l2d = function (encoder, value) {
|
|
950
950
|
verify(encoder);
|
|
951
951
|
var tmp;
|
|
952
952
|
if (value instanceof JsonNull) {
|
|
@@ -960,10 +960,10 @@
|
|
|
960
960
|
return tmp;
|
|
961
961
|
};
|
|
962
962
|
protoOf(JsonPrimitiveSerializer).ho = function (encoder, value) {
|
|
963
|
-
return this.
|
|
963
|
+
return this.l2d(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
964
964
|
};
|
|
965
965
|
protoOf(JsonPrimitiveSerializer).io = function (decoder) {
|
|
966
|
-
var result = asJsonDecoder(decoder).
|
|
966
|
+
var result = asJsonDecoder(decoder).k2c();
|
|
967
967
|
if (!(result instanceof JsonPrimitive))
|
|
968
968
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
969
969
|
return result;
|
|
@@ -976,17 +976,17 @@
|
|
|
976
976
|
}
|
|
977
977
|
function JsonNullSerializer() {
|
|
978
978
|
JsonNullSerializer_instance = this;
|
|
979
|
-
this.
|
|
979
|
+
this.z2c_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
|
|
980
980
|
}
|
|
981
981
|
protoOf(JsonNullSerializer).go = function () {
|
|
982
|
-
return this.
|
|
982
|
+
return this.z2c_1;
|
|
983
983
|
};
|
|
984
|
-
protoOf(JsonNullSerializer).
|
|
984
|
+
protoOf(JsonNullSerializer).m2d = function (encoder, value) {
|
|
985
985
|
verify(encoder);
|
|
986
986
|
encoder.yr();
|
|
987
987
|
};
|
|
988
988
|
protoOf(JsonNullSerializer).ho = function (encoder, value) {
|
|
989
|
-
return this.
|
|
989
|
+
return this.m2d(encoder, value instanceof JsonNull ? value : THROW_CCE());
|
|
990
990
|
};
|
|
991
991
|
protoOf(JsonNullSerializer).io = function (decoder) {
|
|
992
992
|
verify_0(decoder);
|
|
@@ -1007,27 +1007,27 @@
|
|
|
1007
1007
|
}
|
|
1008
1008
|
function JsonLiteralSerializer() {
|
|
1009
1009
|
JsonLiteralSerializer_instance = this;
|
|
1010
|
-
this.
|
|
1010
|
+
this.a2d_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
|
|
1011
1011
|
}
|
|
1012
1012
|
protoOf(JsonLiteralSerializer).go = function () {
|
|
1013
|
-
return this.
|
|
1013
|
+
return this.a2d_1;
|
|
1014
1014
|
};
|
|
1015
|
-
protoOf(JsonLiteralSerializer).
|
|
1015
|
+
protoOf(JsonLiteralSerializer).n2d = function (encoder, value) {
|
|
1016
1016
|
verify(encoder);
|
|
1017
|
-
if (value.
|
|
1018
|
-
return encoder.hs(value.
|
|
1017
|
+
if (value.s2c_1) {
|
|
1018
|
+
return encoder.hs(value.u2c_1);
|
|
1019
1019
|
}
|
|
1020
|
-
if (!(value.
|
|
1021
|
-
return encoder.is(value.
|
|
1020
|
+
if (!(value.t2c_1 == null)) {
|
|
1021
|
+
return encoder.is(value.t2c_1).hs(value.u2c_1);
|
|
1022
1022
|
}
|
|
1023
|
-
var tmp0_safe_receiver = toLongOrNull(value.
|
|
1023
|
+
var tmp0_safe_receiver = toLongOrNull(value.u2c_1);
|
|
1024
1024
|
if (tmp0_safe_receiver == null)
|
|
1025
1025
|
null;
|
|
1026
1026
|
else {
|
|
1027
1027
|
// Inline function 'kotlin.let' call
|
|
1028
1028
|
return encoder.ds(tmp0_safe_receiver);
|
|
1029
1029
|
}
|
|
1030
|
-
var tmp1_safe_receiver = toULongOrNull(value.
|
|
1030
|
+
var tmp1_safe_receiver = toULongOrNull(value.u2c_1);
|
|
1031
1031
|
var tmp = tmp1_safe_receiver;
|
|
1032
1032
|
if ((tmp == null ? null : new ULong(tmp)) == null)
|
|
1033
1033
|
null;
|
|
@@ -1041,27 +1041,27 @@
|
|
|
1041
1041
|
tmp_1.ds(tmp$ret$4);
|
|
1042
1042
|
return Unit_instance;
|
|
1043
1043
|
}
|
|
1044
|
-
var tmp2_safe_receiver = toDoubleOrNull(value.
|
|
1044
|
+
var tmp2_safe_receiver = toDoubleOrNull(value.u2c_1);
|
|
1045
1045
|
if (tmp2_safe_receiver == null)
|
|
1046
1046
|
null;
|
|
1047
1047
|
else {
|
|
1048
1048
|
// Inline function 'kotlin.let' call
|
|
1049
1049
|
return encoder.fs(tmp2_safe_receiver);
|
|
1050
1050
|
}
|
|
1051
|
-
var tmp3_safe_receiver = toBooleanStrictOrNull(value.
|
|
1051
|
+
var tmp3_safe_receiver = toBooleanStrictOrNull(value.u2c_1);
|
|
1052
1052
|
if (tmp3_safe_receiver == null)
|
|
1053
1053
|
null;
|
|
1054
1054
|
else {
|
|
1055
1055
|
// Inline function 'kotlin.let' call
|
|
1056
1056
|
return encoder.zr(tmp3_safe_receiver);
|
|
1057
1057
|
}
|
|
1058
|
-
encoder.hs(value.
|
|
1058
|
+
encoder.hs(value.u2c_1);
|
|
1059
1059
|
};
|
|
1060
1060
|
protoOf(JsonLiteralSerializer).ho = function (encoder, value) {
|
|
1061
|
-
return this.
|
|
1061
|
+
return this.n2d(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
1062
1062
|
};
|
|
1063
1063
|
protoOf(JsonLiteralSerializer).io = function (decoder) {
|
|
1064
|
-
var result = asJsonDecoder(decoder).
|
|
1064
|
+
var result = asJsonDecoder(decoder).k2c();
|
|
1065
1065
|
if (!(result instanceof JsonLiteral))
|
|
1066
1066
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
1067
1067
|
return result;
|
|
@@ -1099,7 +1099,7 @@
|
|
|
1099
1099
|
return tmp;
|
|
1100
1100
|
}
|
|
1101
1101
|
function _get_original__l7ku1m($this) {
|
|
1102
|
-
var tmp0 = $this.
|
|
1102
|
+
var tmp0 = $this.o2d_1;
|
|
1103
1103
|
var tmp = KProperty1;
|
|
1104
1104
|
// Inline function 'kotlin.getValue' call
|
|
1105
1105
|
getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
1113
|
function defer$1($deferred) {
|
|
1114
|
-
this.
|
|
1114
|
+
this.o2d_1 = lazy($deferred);
|
|
1115
1115
|
}
|
|
1116
1116
|
protoOf(defer$1).kp = function () {
|
|
1117
1117
|
return _get_original__l7ku1m(this).kp();
|
|
@@ -1140,155 +1140,155 @@
|
|
|
1140
1140
|
function JsonEncoder() {
|
|
1141
1141
|
}
|
|
1142
1142
|
function Composer(writer) {
|
|
1143
|
-
this.
|
|
1144
|
-
this.
|
|
1143
|
+
this.p2d_1 = writer;
|
|
1144
|
+
this.q2d_1 = true;
|
|
1145
1145
|
}
|
|
1146
|
-
protoOf(Composer).q2d = function () {
|
|
1147
|
-
this.p2d_1 = true;
|
|
1148
|
-
};
|
|
1149
1146
|
protoOf(Composer).r2d = function () {
|
|
1150
|
-
|
|
1147
|
+
this.q2d_1 = true;
|
|
1151
1148
|
};
|
|
1152
1149
|
protoOf(Composer).s2d = function () {
|
|
1153
|
-
|
|
1150
|
+
return Unit_instance;
|
|
1154
1151
|
};
|
|
1155
1152
|
protoOf(Composer).t2d = function () {
|
|
1156
|
-
this.
|
|
1153
|
+
this.q2d_1 = false;
|
|
1157
1154
|
};
|
|
1158
1155
|
protoOf(Composer).u2d = function () {
|
|
1159
|
-
|
|
1156
|
+
this.q2d_1 = false;
|
|
1160
1157
|
};
|
|
1161
|
-
protoOf(Composer).v2d = function (
|
|
1162
|
-
return
|
|
1158
|
+
protoOf(Composer).v2d = function () {
|
|
1159
|
+
return Unit_instance;
|
|
1163
1160
|
};
|
|
1164
|
-
protoOf(Composer).
|
|
1165
|
-
return this.
|
|
1161
|
+
protoOf(Composer).w2d = function (v) {
|
|
1162
|
+
return this.p2d_1.x2d(v);
|
|
1166
1163
|
};
|
|
1167
|
-
protoOf(Composer).
|
|
1168
|
-
return this.
|
|
1164
|
+
protoOf(Composer).y2d = function (v) {
|
|
1165
|
+
return this.p2d_1.z2d(v);
|
|
1169
1166
|
};
|
|
1170
1167
|
protoOf(Composer).a2e = function (v) {
|
|
1171
|
-
return this.
|
|
1168
|
+
return this.p2d_1.z2d(v.toString());
|
|
1172
1169
|
};
|
|
1173
1170
|
protoOf(Composer).b2e = function (v) {
|
|
1174
|
-
return this.
|
|
1171
|
+
return this.p2d_1.z2d(v.toString());
|
|
1175
1172
|
};
|
|
1176
|
-
protoOf(Composer).
|
|
1177
|
-
return this.
|
|
1173
|
+
protoOf(Composer).c2e = function (v) {
|
|
1174
|
+
return this.p2d_1.d2e(fromInt(v));
|
|
1178
1175
|
};
|
|
1179
1176
|
protoOf(Composer).e2e = function (v) {
|
|
1180
|
-
return this.
|
|
1177
|
+
return this.p2d_1.d2e(fromInt(v));
|
|
1181
1178
|
};
|
|
1182
1179
|
protoOf(Composer).f2e = function (v) {
|
|
1183
|
-
return this.
|
|
1180
|
+
return this.p2d_1.d2e(fromInt(v));
|
|
1184
1181
|
};
|
|
1185
1182
|
protoOf(Composer).g2e = function (v) {
|
|
1186
|
-
return this.
|
|
1183
|
+
return this.p2d_1.d2e(v);
|
|
1187
1184
|
};
|
|
1188
|
-
protoOf(Composer).h2e = function (
|
|
1189
|
-
return this.
|
|
1185
|
+
protoOf(Composer).h2e = function (v) {
|
|
1186
|
+
return this.p2d_1.z2d(v.toString());
|
|
1187
|
+
};
|
|
1188
|
+
protoOf(Composer).i2e = function (value) {
|
|
1189
|
+
return this.p2d_1.j2e(value);
|
|
1190
1190
|
};
|
|
1191
1191
|
function Composer_0(sb, json) {
|
|
1192
|
-
return json.
|
|
1192
|
+
return json.d2a_1.w2b_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
1193
1193
|
}
|
|
1194
1194
|
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
1195
1195
|
Composer.call(this, writer);
|
|
1196
|
-
this.
|
|
1196
|
+
this.m2e_1 = forceQuoting;
|
|
1197
1197
|
}
|
|
1198
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1199
|
-
if (this.
|
|
1198
|
+
protoOf(ComposerForUnsignedNumbers).f2e = function (v) {
|
|
1199
|
+
if (this.m2e_1) {
|
|
1200
1200
|
// Inline function 'kotlin.toUInt' call
|
|
1201
1201
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
1202
|
-
this.
|
|
1202
|
+
this.i2e(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
1203
1203
|
} else {
|
|
1204
1204
|
// Inline function 'kotlin.toUInt' call
|
|
1205
1205
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
1206
|
-
this.
|
|
1206
|
+
this.y2d(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
1207
1207
|
}
|
|
1208
1208
|
};
|
|
1209
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1210
|
-
if (this.
|
|
1209
|
+
protoOf(ComposerForUnsignedNumbers).g2e = function (v) {
|
|
1210
|
+
if (this.m2e_1) {
|
|
1211
1211
|
// Inline function 'kotlin.toULong' call
|
|
1212
1212
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
1213
|
-
this.
|
|
1213
|
+
this.i2e(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
1214
1214
|
} else {
|
|
1215
1215
|
// Inline function 'kotlin.toULong' call
|
|
1216
1216
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
1217
|
-
this.
|
|
1217
|
+
this.y2d(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
1218
1218
|
}
|
|
1219
1219
|
};
|
|
1220
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1221
|
-
if (this.
|
|
1220
|
+
protoOf(ComposerForUnsignedNumbers).c2e = function (v) {
|
|
1221
|
+
if (this.m2e_1) {
|
|
1222
1222
|
// Inline function 'kotlin.toUByte' call
|
|
1223
1223
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
1224
|
-
this.
|
|
1224
|
+
this.i2e(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
1225
1225
|
} else {
|
|
1226
1226
|
// Inline function 'kotlin.toUByte' call
|
|
1227
1227
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
1228
|
-
this.
|
|
1228
|
+
this.y2d(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1232
|
-
if (this.
|
|
1231
|
+
protoOf(ComposerForUnsignedNumbers).e2e = function (v) {
|
|
1232
|
+
if (this.m2e_1) {
|
|
1233
1233
|
// Inline function 'kotlin.toUShort' call
|
|
1234
1234
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
1235
|
-
this.
|
|
1235
|
+
this.i2e(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
1236
1236
|
} else {
|
|
1237
1237
|
// Inline function 'kotlin.toUShort' call
|
|
1238
1238
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
1239
|
-
this.
|
|
1239
|
+
this.y2d(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
1242
|
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
1243
1243
|
Composer.call(this, writer);
|
|
1244
|
-
this.
|
|
1244
|
+
this.p2e_1 = forceQuoting;
|
|
1245
1245
|
}
|
|
1246
|
-
protoOf(ComposerForUnquotedLiterals).
|
|
1247
|
-
if (this.
|
|
1248
|
-
protoOf(Composer).
|
|
1246
|
+
protoOf(ComposerForUnquotedLiterals).i2e = function (value) {
|
|
1247
|
+
if (this.p2e_1) {
|
|
1248
|
+
protoOf(Composer).i2e.call(this, value);
|
|
1249
1249
|
} else {
|
|
1250
|
-
protoOf(Composer).
|
|
1250
|
+
protoOf(Composer).y2d.call(this, value);
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
1253
|
function ComposerWithPrettyPrint(writer, json) {
|
|
1254
1254
|
Composer.call(this, writer);
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1255
|
+
this.s2e_1 = json;
|
|
1256
|
+
this.t2e_1 = 0;
|
|
1257
1257
|
}
|
|
1258
|
-
protoOf(ComposerWithPrettyPrint).q2d = function () {
|
|
1259
|
-
this.p2d_1 = true;
|
|
1260
|
-
this.s2e_1 = this.s2e_1 + 1 | 0;
|
|
1261
|
-
};
|
|
1262
1258
|
protoOf(ComposerWithPrettyPrint).r2d = function () {
|
|
1263
|
-
this.
|
|
1259
|
+
this.q2d_1 = true;
|
|
1260
|
+
this.t2e_1 = this.t2e_1 + 1 | 0;
|
|
1264
1261
|
};
|
|
1265
1262
|
protoOf(ComposerWithPrettyPrint).s2d = function () {
|
|
1266
|
-
this.
|
|
1267
|
-
|
|
1263
|
+
this.t2e_1 = this.t2e_1 - 1 | 0;
|
|
1264
|
+
};
|
|
1265
|
+
protoOf(ComposerWithPrettyPrint).t2d = function () {
|
|
1266
|
+
this.q2d_1 = false;
|
|
1267
|
+
this.y2d('\n');
|
|
1268
1268
|
// Inline function 'kotlin.repeat' call
|
|
1269
|
-
var times = this.
|
|
1269
|
+
var times = this.t2e_1;
|
|
1270
1270
|
var inductionVariable = 0;
|
|
1271
1271
|
if (inductionVariable < times)
|
|
1272
1272
|
do {
|
|
1273
1273
|
var index = inductionVariable;
|
|
1274
1274
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1275
|
-
this.
|
|
1275
|
+
this.y2d(this.s2e_1.d2a_1.y2b_1);
|
|
1276
1276
|
}
|
|
1277
1277
|
while (inductionVariable < times);
|
|
1278
1278
|
};
|
|
1279
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1280
|
-
if (this.
|
|
1281
|
-
this.
|
|
1279
|
+
protoOf(ComposerWithPrettyPrint).u2d = function () {
|
|
1280
|
+
if (this.q2d_1)
|
|
1281
|
+
this.q2d_1 = false;
|
|
1282
1282
|
else {
|
|
1283
|
-
this.
|
|
1283
|
+
this.t2d();
|
|
1284
1284
|
}
|
|
1285
1285
|
};
|
|
1286
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1287
|
-
this.
|
|
1286
|
+
protoOf(ComposerWithPrettyPrint).v2d = function () {
|
|
1287
|
+
this.w2d(_Char___init__impl__6a9atx(32));
|
|
1288
1288
|
};
|
|
1289
1289
|
function readIfAbsent($this, descriptor, index) {
|
|
1290
|
-
$this.
|
|
1291
|
-
return $this.
|
|
1290
|
+
$this.v2e_1 = (!descriptor.tp(index) && descriptor.sp(index).gp());
|
|
1291
|
+
return $this.v2e_1;
|
|
1292
1292
|
}
|
|
1293
1293
|
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
1294
1294
|
var l = function (_this__u8e3s4, p0_0) {
|
|
@@ -1300,14 +1300,14 @@
|
|
|
1300
1300
|
}
|
|
1301
1301
|
function JsonElementMarker(descriptor) {
|
|
1302
1302
|
var tmp = this;
|
|
1303
|
-
tmp.
|
|
1304
|
-
this.
|
|
1303
|
+
tmp.u2e_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
1304
|
+
this.v2e_1 = false;
|
|
1305
1305
|
}
|
|
1306
|
-
protoOf(JsonElementMarker).
|
|
1307
|
-
this.
|
|
1306
|
+
protoOf(JsonElementMarker).w2e = function (index) {
|
|
1307
|
+
this.u2e_1.kx(index);
|
|
1308
1308
|
};
|
|
1309
|
-
protoOf(JsonElementMarker).
|
|
1310
|
-
return this.
|
|
1309
|
+
protoOf(JsonElementMarker).x2e = function () {
|
|
1310
|
+
return this.u2e_1.lx();
|
|
1311
1311
|
};
|
|
1312
1312
|
function JsonDecodingException(message) {
|
|
1313
1313
|
JsonException.call(this, message);
|
|
@@ -1318,10 +1318,10 @@
|
|
|
1318
1318
|
}
|
|
1319
1319
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
1320
1320
|
entity = entity === VOID ? 'object' : entity;
|
|
1321
|
-
_this__u8e3s4.
|
|
1321
|
+
_this__u8e3s4.y2e('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.u2a_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them.");
|
|
1322
1322
|
}
|
|
1323
1323
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
1324
|
-
_this__u8e3s4.
|
|
1324
|
+
_this__u8e3s4.z2e('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'");
|
|
1325
1325
|
}
|
|
1326
1326
|
function JsonEncodingException(message) {
|
|
1327
1327
|
JsonException.call(this, message);
|
|
@@ -1383,7 +1383,7 @@
|
|
|
1383
1383
|
function ignoreUnknownKeys(_this__u8e3s4, json) {
|
|
1384
1384
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1385
1385
|
var tmp;
|
|
1386
|
-
if (json.
|
|
1386
|
+
if (json.d2a_1.t2b_1) {
|
|
1387
1387
|
tmp = true;
|
|
1388
1388
|
} else {
|
|
1389
1389
|
var tmp0 = _this__u8e3s4.op();
|
|
@@ -1428,7 +1428,7 @@
|
|
|
1428
1428
|
var index = _this__u8e3s4.qp(name);
|
|
1429
1429
|
if (!(index === -3))
|
|
1430
1430
|
return index;
|
|
1431
|
-
if (!json.
|
|
1431
|
+
if (!json.d2a_1.d2c_1)
|
|
1432
1432
|
return index;
|
|
1433
1433
|
return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
|
|
1434
1434
|
}
|
|
@@ -1439,17 +1439,17 @@
|
|
|
1439
1439
|
}
|
|
1440
1440
|
function namingStrategy(_this__u8e3s4, json) {
|
|
1441
1441
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1442
|
-
return equals(_this__u8e3s4.lp(), CLASS_getInstance()) ? json.
|
|
1442
|
+
return equals(_this__u8e3s4.lp(), CLASS_getInstance()) ? json.d2a_1.e2c_1 : null;
|
|
1443
1443
|
}
|
|
1444
1444
|
function deserializationNamesMap(_this__u8e3s4, descriptor) {
|
|
1445
1445
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1446
1446
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
1447
1447
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
1448
|
-
return tmp.
|
|
1448
|
+
return tmp.b2f(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
1449
1449
|
}
|
|
1450
1450
|
function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
|
|
1451
1451
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1452
|
-
return _this__u8e3s4.
|
|
1452
|
+
return _this__u8e3s4.d2a_1.f2c_1 && equals(descriptor.lp(), ENUM_getInstance());
|
|
1453
1453
|
}
|
|
1454
1454
|
function getJsonNameIndexSlowPath(_this__u8e3s4, json, name) {
|
|
1455
1455
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1460,7 +1460,7 @@
|
|
|
1460
1460
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1461
1461
|
var tmp = get_schemaCache(json);
|
|
1462
1462
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
1463
|
-
return tmp.
|
|
1463
|
+
return tmp.b2f(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
1464
1464
|
}
|
|
1465
1465
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
1466
1466
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1486,7 +1486,7 @@
|
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
var tmp0_safe_receiver = singleOrNull(destination);
|
|
1489
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1489
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c2f_1;
|
|
1490
1490
|
if (tmp1_safe_receiver == null)
|
|
1491
1491
|
null;
|
|
1492
1492
|
else {
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1514
1514
|
tmp_0 = _this__u8e3s4.pp(i).toLowerCase();
|
|
1515
1515
|
} else if (!(strategyForClasses == null)) {
|
|
1516
|
-
tmp_0 = strategyForClasses.
|
|
1516
|
+
tmp_0 = strategyForClasses.d2f(_this__u8e3s4, i, _this__u8e3s4.pp(i));
|
|
1517
1517
|
} else {
|
|
1518
1518
|
tmp_0 = null;
|
|
1519
1519
|
}
|
|
@@ -1549,7 +1549,7 @@
|
|
|
1549
1549
|
while (tmp < tmp_0) {
|
|
1550
1550
|
var tmp_2 = tmp;
|
|
1551
1551
|
var baseName = $this_serializationNamesIndices.pp(tmp_2);
|
|
1552
|
-
tmp_1[tmp_2] = $strategy.
|
|
1552
|
+
tmp_1[tmp_2] = $strategy.d2f($this_serializationNamesIndices, tmp_2, baseName);
|
|
1553
1553
|
tmp = tmp + 1 | 0;
|
|
1554
1554
|
}
|
|
1555
1555
|
return tmp_1;
|
|
@@ -1580,8 +1580,8 @@
|
|
|
1580
1580
|
return Tombstone_instance;
|
|
1581
1581
|
}
|
|
1582
1582
|
function resize($this) {
|
|
1583
|
-
var newSize = imul($this.
|
|
1584
|
-
$this.
|
|
1583
|
+
var newSize = imul($this.g2f_1, 2);
|
|
1584
|
+
$this.e2f_1 = copyOf($this.e2f_1, newSize);
|
|
1585
1585
|
var tmp = 0;
|
|
1586
1586
|
var tmp_0 = new Int32Array(newSize);
|
|
1587
1587
|
while (tmp < newSize) {
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
}
|
|
1591
1591
|
var newIndices = tmp_0;
|
|
1592
1592
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1593
|
-
var this_0 = $this.
|
|
1593
|
+
var this_0 = $this.f2f_1;
|
|
1594
1594
|
var endIndex = this_0.length;
|
|
1595
1595
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1596
1596
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1598,12 +1598,12 @@
|
|
|
1598
1598
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1599
1599
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1600
1600
|
arrayCopy(tmp_1, newIndices, 0, 0, endIndex);
|
|
1601
|
-
$this.
|
|
1601
|
+
$this.f2f_1 = newIndices;
|
|
1602
1602
|
}
|
|
1603
1603
|
function JsonPath() {
|
|
1604
1604
|
var tmp = this;
|
|
1605
1605
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1606
|
-
tmp.
|
|
1606
|
+
tmp.e2f_1 = Array(8);
|
|
1607
1607
|
var tmp_0 = this;
|
|
1608
1608
|
var tmp_1 = 0;
|
|
1609
1609
|
var tmp_2 = new Int32Array(8);
|
|
@@ -1611,71 +1611,71 @@
|
|
|
1611
1611
|
tmp_2[tmp_1] = -1;
|
|
1612
1612
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1613
1613
|
}
|
|
1614
|
-
tmp_0.
|
|
1615
|
-
this.
|
|
1614
|
+
tmp_0.f2f_1 = tmp_2;
|
|
1615
|
+
this.g2f_1 = -1;
|
|
1616
1616
|
}
|
|
1617
|
-
protoOf(JsonPath).
|
|
1618
|
-
this.
|
|
1619
|
-
var depth = this.
|
|
1620
|
-
if (depth === this.
|
|
1617
|
+
protoOf(JsonPath).h2f = function (sd) {
|
|
1618
|
+
this.g2f_1 = this.g2f_1 + 1 | 0;
|
|
1619
|
+
var depth = this.g2f_1;
|
|
1620
|
+
if (depth === this.e2f_1.length) {
|
|
1621
1621
|
resize(this);
|
|
1622
1622
|
}
|
|
1623
|
-
this.
|
|
1623
|
+
this.e2f_1[depth] = sd;
|
|
1624
1624
|
};
|
|
1625
|
-
protoOf(JsonPath).
|
|
1626
|
-
this.
|
|
1625
|
+
protoOf(JsonPath).i2f = function (index) {
|
|
1626
|
+
this.f2f_1[this.g2f_1] = index;
|
|
1627
1627
|
};
|
|
1628
|
-
protoOf(JsonPath).
|
|
1628
|
+
protoOf(JsonPath).j2f = function (key) {
|
|
1629
1629
|
var tmp;
|
|
1630
|
-
if (!(this.
|
|
1631
|
-
this.
|
|
1632
|
-
tmp = this.
|
|
1630
|
+
if (!(this.f2f_1[this.g2f_1] === -2)) {
|
|
1631
|
+
this.g2f_1 = this.g2f_1 + 1 | 0;
|
|
1632
|
+
tmp = this.g2f_1 === this.e2f_1.length;
|
|
1633
1633
|
} else {
|
|
1634
1634
|
tmp = false;
|
|
1635
1635
|
}
|
|
1636
1636
|
if (tmp) {
|
|
1637
1637
|
resize(this);
|
|
1638
1638
|
}
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1639
|
+
this.e2f_1[this.g2f_1] = key;
|
|
1640
|
+
this.f2f_1[this.g2f_1] = -2;
|
|
1641
1641
|
};
|
|
1642
|
-
protoOf(JsonPath).
|
|
1643
|
-
if (this.
|
|
1644
|
-
this.
|
|
1642
|
+
protoOf(JsonPath).k2f = function () {
|
|
1643
|
+
if (this.f2f_1[this.g2f_1] === -2) {
|
|
1644
|
+
this.e2f_1[this.g2f_1] = Tombstone_instance;
|
|
1645
1645
|
}
|
|
1646
1646
|
};
|
|
1647
|
-
protoOf(JsonPath).
|
|
1648
|
-
var depth = this.
|
|
1649
|
-
if (this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1647
|
+
protoOf(JsonPath).l2f = function () {
|
|
1648
|
+
var depth = this.g2f_1;
|
|
1649
|
+
if (this.f2f_1[depth] === -2) {
|
|
1650
|
+
this.f2f_1[depth] = -1;
|
|
1651
|
+
this.g2f_1 = this.g2f_1 - 1 | 0;
|
|
1652
1652
|
}
|
|
1653
|
-
if (!(this.
|
|
1654
|
-
this.
|
|
1653
|
+
if (!(this.g2f_1 === -1)) {
|
|
1654
|
+
this.g2f_1 = this.g2f_1 - 1 | 0;
|
|
1655
1655
|
}
|
|
1656
1656
|
};
|
|
1657
|
-
protoOf(JsonPath).
|
|
1657
|
+
protoOf(JsonPath).m2f = function () {
|
|
1658
1658
|
// Inline function 'kotlin.text.buildString' call
|
|
1659
1659
|
// Inline function 'kotlin.apply' call
|
|
1660
1660
|
var this_0 = StringBuilder_init_$Create$();
|
|
1661
1661
|
this_0.o('$');
|
|
1662
1662
|
// Inline function 'kotlin.repeat' call
|
|
1663
|
-
var times = this.
|
|
1663
|
+
var times = this.g2f_1 + 1 | 0;
|
|
1664
1664
|
var inductionVariable = 0;
|
|
1665
1665
|
if (inductionVariable < times)
|
|
1666
1666
|
do {
|
|
1667
1667
|
var index = inductionVariable;
|
|
1668
1668
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1669
|
-
var element = this.
|
|
1669
|
+
var element = this.e2f_1[index];
|
|
1670
1670
|
if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
|
|
1671
1671
|
if (equals(element.lp(), LIST_getInstance())) {
|
|
1672
|
-
if (!(this.
|
|
1672
|
+
if (!(this.f2f_1[index] === -1)) {
|
|
1673
1673
|
this_0.o('[');
|
|
1674
|
-
this_0.mb(this.
|
|
1674
|
+
this_0.mb(this.f2f_1[index]);
|
|
1675
1675
|
this_0.o(']');
|
|
1676
1676
|
}
|
|
1677
1677
|
} else {
|
|
1678
|
-
var idx = this.
|
|
1678
|
+
var idx = this.f2f_1[index];
|
|
1679
1679
|
if (idx >= 0) {
|
|
1680
1680
|
this_0.o('.');
|
|
1681
1681
|
this_0.o(element.pp(idx));
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
return this_0.toString();
|
|
1696
1696
|
};
|
|
1697
1697
|
protoOf(JsonPath).toString = function () {
|
|
1698
|
-
return this.
|
|
1698
|
+
return this.m2f();
|
|
1699
1699
|
};
|
|
1700
1700
|
function checkKind($this, descriptor, actualClass) {
|
|
1701
1701
|
var kind = descriptor.lp();
|
|
@@ -1708,9 +1708,9 @@
|
|
|
1708
1708
|
if (tmp) {
|
|
1709
1709
|
throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.m() + " 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.'));
|
|
1710
1710
|
}
|
|
1711
|
-
if ($this.
|
|
1711
|
+
if ($this.o2f_1)
|
|
1712
1712
|
return Unit_instance;
|
|
1713
|
-
if (!$this.
|
|
1713
|
+
if (!$this.p2f_1)
|
|
1714
1714
|
return Unit_instance;
|
|
1715
1715
|
var tmp_0;
|
|
1716
1716
|
var tmp_1;
|
|
@@ -1736,23 +1736,23 @@
|
|
|
1736
1736
|
var i = inductionVariable;
|
|
1737
1737
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1738
1738
|
var name = descriptor.pp(i);
|
|
1739
|
-
if (name === $this.
|
|
1739
|
+
if (name === $this.n2f_1) {
|
|
1740
1740
|
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');
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
while (inductionVariable < last);
|
|
1744
1744
|
}
|
|
1745
1745
|
function JsonSerializersModuleValidator(configuration) {
|
|
1746
|
-
this.
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1746
|
+
this.n2f_1 = configuration.b2c_1;
|
|
1747
|
+
this.o2f_1 = configuration.a2c_1;
|
|
1748
|
+
this.p2f_1 = !configuration.i2c_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
1749
1749
|
}
|
|
1750
1750
|
protoOf(JsonSerializersModuleValidator).t17 = function (kClass, provider) {
|
|
1751
1751
|
};
|
|
1752
1752
|
protoOf(JsonSerializersModuleValidator).w17 = function (baseClass, actualClass, actualSerializer) {
|
|
1753
1753
|
var descriptor = actualSerializer.go();
|
|
1754
1754
|
checkKind(this, descriptor, actualClass);
|
|
1755
|
-
if (!this.
|
|
1755
|
+
if (!this.o2f_1 && this.p2f_1) {
|
|
1756
1756
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
@@ -1770,34 +1770,34 @@
|
|
|
1770
1770
|
}
|
|
1771
1771
|
function readObject($this) {
|
|
1772
1772
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
1773
|
-
var lastToken = $this.
|
|
1774
|
-
if ($this.
|
|
1775
|
-
$this.
|
|
1773
|
+
var lastToken = $this.z2f_1.d2g(6);
|
|
1774
|
+
if ($this.z2f_1.e2g() === 4) {
|
|
1775
|
+
$this.z2f_1.z2e('Unexpected leading comma');
|
|
1776
1776
|
}
|
|
1777
1777
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
1778
1778
|
var result = LinkedHashMap_init_$Create$();
|
|
1779
|
-
$l$loop: while ($this.
|
|
1780
|
-
var key = $this.
|
|
1781
|
-
$this.
|
|
1782
|
-
var element = $this.
|
|
1779
|
+
$l$loop: while ($this.z2f_1.f2g()) {
|
|
1780
|
+
var key = $this.a2g_1 ? $this.z2f_1.h2g() : $this.z2f_1.g2g();
|
|
1781
|
+
$this.z2f_1.d2g(5);
|
|
1782
|
+
var element = $this.i2g();
|
|
1783
1783
|
// Inline function 'kotlin.collections.set' call
|
|
1784
1784
|
result.p2(key, element);
|
|
1785
|
-
lastToken = $this.
|
|
1785
|
+
lastToken = $this.z2f_1.j2g();
|
|
1786
1786
|
var tmp0_subject = lastToken;
|
|
1787
1787
|
if (tmp0_subject !== 4)
|
|
1788
1788
|
if (tmp0_subject === 7)
|
|
1789
1789
|
break $l$loop;
|
|
1790
1790
|
else {
|
|
1791
|
-
$this.
|
|
1791
|
+
$this.z2f_1.z2e('Expected end of the object or comma');
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
1794
|
if (lastToken === 6) {
|
|
1795
|
-
$this.
|
|
1795
|
+
$this.z2f_1.d2g(7);
|
|
1796
1796
|
} else if (lastToken === 4) {
|
|
1797
|
-
if (!$this.
|
|
1798
|
-
invalidTrailingComma($this.
|
|
1797
|
+
if (!$this.b2g_1) {
|
|
1798
|
+
invalidTrailingComma($this.z2f_1);
|
|
1799
1799
|
}
|
|
1800
|
-
$this.
|
|
1800
|
+
$this.z2f_1.d2g(7);
|
|
1801
1801
|
}
|
|
1802
1802
|
return new JsonObject(result);
|
|
1803
1803
|
}
|
|
@@ -1808,43 +1808,43 @@
|
|
|
1808
1808
|
return tmp.a9();
|
|
1809
1809
|
}
|
|
1810
1810
|
function readArray($this) {
|
|
1811
|
-
var lastToken = $this.
|
|
1812
|
-
if ($this.
|
|
1813
|
-
$this.
|
|
1811
|
+
var lastToken = $this.z2f_1.j2g();
|
|
1812
|
+
if ($this.z2f_1.e2g() === 4) {
|
|
1813
|
+
$this.z2f_1.z2e('Unexpected leading comma');
|
|
1814
1814
|
}
|
|
1815
1815
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1816
1816
|
var result = ArrayList_init_$Create$();
|
|
1817
|
-
while ($this.
|
|
1818
|
-
var element = $this.
|
|
1817
|
+
while ($this.z2f_1.f2g()) {
|
|
1818
|
+
var element = $this.i2g();
|
|
1819
1819
|
result.v(element);
|
|
1820
|
-
lastToken = $this.
|
|
1820
|
+
lastToken = $this.z2f_1.j2g();
|
|
1821
1821
|
if (!(lastToken === 4)) {
|
|
1822
|
-
var tmp0 = $this.
|
|
1822
|
+
var tmp0 = $this.z2f_1;
|
|
1823
1823
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1824
1824
|
var condition = lastToken === 9;
|
|
1825
|
-
var position = tmp0.
|
|
1825
|
+
var position = tmp0.u2a_1;
|
|
1826
1826
|
if (!condition) {
|
|
1827
1827
|
var tmp$ret$2 = 'Expected end of the array or comma';
|
|
1828
|
-
tmp0.
|
|
1828
|
+
tmp0.z2e(tmp$ret$2, position);
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
1832
|
if (lastToken === 8) {
|
|
1833
|
-
$this.
|
|
1833
|
+
$this.z2f_1.d2g(9);
|
|
1834
1834
|
} else if (lastToken === 4) {
|
|
1835
|
-
if (!$this.
|
|
1836
|
-
invalidTrailingComma($this.
|
|
1835
|
+
if (!$this.b2g_1) {
|
|
1836
|
+
invalidTrailingComma($this.z2f_1, 'array');
|
|
1837
1837
|
}
|
|
1838
|
-
$this.
|
|
1838
|
+
$this.z2f_1.d2g(9);
|
|
1839
1839
|
}
|
|
1840
1840
|
return new JsonArray(result);
|
|
1841
1841
|
}
|
|
1842
1842
|
function readValue($this, isString) {
|
|
1843
1843
|
var tmp;
|
|
1844
|
-
if ($this.
|
|
1845
|
-
tmp = $this.
|
|
1844
|
+
if ($this.a2g_1 || !isString) {
|
|
1845
|
+
tmp = $this.z2f_1.h2g();
|
|
1846
1846
|
} else {
|
|
1847
|
-
tmp = $this.
|
|
1847
|
+
tmp = $this.z2f_1.g2g();
|
|
1848
1848
|
}
|
|
1849
1849
|
var string = tmp;
|
|
1850
1850
|
if (!isString && string === 'null')
|
|
@@ -1855,18 +1855,18 @@
|
|
|
1855
1855
|
return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
|
|
1856
1856
|
}
|
|
1857
1857
|
function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
|
|
1858
|
-
this.
|
|
1858
|
+
this.g2h_1 = this$0;
|
|
1859
1859
|
CoroutineImpl.call(this, resultContinuation);
|
|
1860
1860
|
}
|
|
1861
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1862
|
-
var tmp = this.
|
|
1861
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).k2h = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1862
|
+
var tmp = this.l2h($this$DeepRecursiveFunction, it, $completion);
|
|
1863
1863
|
tmp.u8_1 = Unit_instance;
|
|
1864
1864
|
tmp.v8_1 = null;
|
|
1865
1865
|
return tmp.a9();
|
|
1866
1866
|
};
|
|
1867
1867
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).g9 = function (p1, p2, $completion) {
|
|
1868
1868
|
var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
|
|
1869
|
-
return this.
|
|
1869
|
+
return this.k2h(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
|
|
1870
1870
|
};
|
|
1871
1871
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).a9 = function () {
|
|
1872
1872
|
var suspendResult = this.u8_1;
|
|
@@ -1876,32 +1876,32 @@
|
|
|
1876
1876
|
switch (tmp) {
|
|
1877
1877
|
case 0:
|
|
1878
1878
|
this.t8_1 = 3;
|
|
1879
|
-
var tmp0_subject = this.
|
|
1879
|
+
var tmp0_subject = this.g2h_1.z2f_1.e2g();
|
|
1880
1880
|
if (tmp0_subject === 1) {
|
|
1881
|
-
this.
|
|
1881
|
+
this.j2h_1 = readValue(this.g2h_1, true);
|
|
1882
1882
|
this.s8_1 = 2;
|
|
1883
1883
|
continue $sm;
|
|
1884
1884
|
} else {
|
|
1885
1885
|
if (tmp0_subject === 0) {
|
|
1886
|
-
this.
|
|
1886
|
+
this.j2h_1 = readValue(this.g2h_1, false);
|
|
1887
1887
|
this.s8_1 = 2;
|
|
1888
1888
|
continue $sm;
|
|
1889
1889
|
} else {
|
|
1890
1890
|
if (tmp0_subject === 6) {
|
|
1891
1891
|
this.s8_1 = 1;
|
|
1892
|
-
suspendResult = readObject_0(this.
|
|
1892
|
+
suspendResult = readObject_0(this.g2h_1, this.h2h_1, this);
|
|
1893
1893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1894
1894
|
return suspendResult;
|
|
1895
1895
|
}
|
|
1896
1896
|
continue $sm;
|
|
1897
1897
|
} else {
|
|
1898
1898
|
if (tmp0_subject === 8) {
|
|
1899
|
-
this.
|
|
1899
|
+
this.j2h_1 = readArray(this.g2h_1);
|
|
1900
1900
|
this.s8_1 = 2;
|
|
1901
1901
|
continue $sm;
|
|
1902
1902
|
} else {
|
|
1903
1903
|
var tmp_0 = this;
|
|
1904
|
-
this.
|
|
1904
|
+
this.g2h_1.z2f_1.z2e("Can't begin reading element, unexpected token");
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
@@ -1909,11 +1909,11 @@
|
|
|
1909
1909
|
|
|
1910
1910
|
break;
|
|
1911
1911
|
case 1:
|
|
1912
|
-
this.
|
|
1912
|
+
this.j2h_1 = suspendResult;
|
|
1913
1913
|
this.s8_1 = 2;
|
|
1914
1914
|
continue $sm;
|
|
1915
1915
|
case 2:
|
|
1916
|
-
return this.
|
|
1916
|
+
return this.j2h_1;
|
|
1917
1917
|
case 3:
|
|
1918
1918
|
throw this.v8_1;
|
|
1919
1919
|
}
|
|
@@ -1928,24 +1928,24 @@
|
|
|
1928
1928
|
}
|
|
1929
1929
|
while (true);
|
|
1930
1930
|
};
|
|
1931
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1932
|
-
var i = new JsonTreeReader$readDeepRecursive$slambda(this.
|
|
1933
|
-
i.
|
|
1934
|
-
i.
|
|
1931
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).l2h = function ($this$DeepRecursiveFunction, it, completion) {
|
|
1932
|
+
var i = new JsonTreeReader$readDeepRecursive$slambda(this.g2h_1, completion);
|
|
1933
|
+
i.h2h_1 = $this$DeepRecursiveFunction;
|
|
1934
|
+
i.i2h_1 = it;
|
|
1935
1935
|
return i;
|
|
1936
1936
|
};
|
|
1937
1937
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
1938
1938
|
var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
|
|
1939
1939
|
var l = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1940
|
-
return i.
|
|
1940
|
+
return i.k2h($this$DeepRecursiveFunction, it, $completion);
|
|
1941
1941
|
};
|
|
1942
1942
|
l.$arity = 2;
|
|
1943
1943
|
return l;
|
|
1944
1944
|
}
|
|
1945
1945
|
function $readObjectCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1946
1946
|
CoroutineImpl.call(this, resultContinuation);
|
|
1947
|
-
this.
|
|
1948
|
-
this.
|
|
1947
|
+
this.s2g_1 = _this__u8e3s4;
|
|
1948
|
+
this.t2g_1 = _this__u8e3s4_0;
|
|
1949
1949
|
}
|
|
1950
1950
|
protoOf($readObjectCOROUTINE$).a9 = function () {
|
|
1951
1951
|
var suspendResult = this.u8_1;
|
|
@@ -1955,26 +1955,26 @@
|
|
|
1955
1955
|
switch (tmp) {
|
|
1956
1956
|
case 0:
|
|
1957
1957
|
this.t8_1 = 5;
|
|
1958
|
-
this.
|
|
1959
|
-
this.
|
|
1960
|
-
if (this.
|
|
1961
|
-
this.
|
|
1958
|
+
this.v2g_1 = this.s2g_1;
|
|
1959
|
+
this.w2g_1 = this.v2g_1.z2f_1.d2g(6);
|
|
1960
|
+
if (this.v2g_1.z2f_1.e2g() === 4) {
|
|
1961
|
+
this.v2g_1.z2f_1.z2e('Unexpected leading comma');
|
|
1962
1962
|
}
|
|
1963
1963
|
|
|
1964
1964
|
var tmp_0 = this;
|
|
1965
|
-
tmp_0.
|
|
1965
|
+
tmp_0.u2g_1 = LinkedHashMap_init_$Create$();
|
|
1966
1966
|
this.s8_1 = 1;
|
|
1967
1967
|
continue $sm;
|
|
1968
1968
|
case 1:
|
|
1969
|
-
if (!this.
|
|
1969
|
+
if (!this.v2g_1.z2f_1.f2g()) {
|
|
1970
1970
|
this.s8_1 = 4;
|
|
1971
1971
|
continue $sm;
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
|
-
this.
|
|
1975
|
-
this.
|
|
1974
|
+
this.x2g_1 = this.v2g_1.a2g_1 ? this.v2g_1.z2f_1.h2g() : this.v2g_1.z2f_1.g2g();
|
|
1975
|
+
this.v2g_1.z2f_1.d2g(5);
|
|
1976
1976
|
this.s8_1 = 2;
|
|
1977
|
-
suspendResult = this.
|
|
1977
|
+
suspendResult = this.t2g_1.gi(Unit_instance, this);
|
|
1978
1978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1979
1979
|
return suspendResult;
|
|
1980
1980
|
}
|
|
@@ -1982,11 +1982,11 @@
|
|
|
1982
1982
|
continue $sm;
|
|
1983
1983
|
case 2:
|
|
1984
1984
|
var element = suspendResult;
|
|
1985
|
-
var tmp0 = this.
|
|
1986
|
-
var key = this.
|
|
1985
|
+
var tmp0 = this.u2g_1;
|
|
1986
|
+
var key = this.x2g_1;
|
|
1987
1987
|
tmp0.p2(key, element);
|
|
1988
|
-
this.
|
|
1989
|
-
var tmp0_subject = this.
|
|
1988
|
+
this.w2g_1 = this.v2g_1.z2f_1.j2g();
|
|
1989
|
+
var tmp0_subject = this.w2g_1;
|
|
1990
1990
|
if (tmp0_subject === 4) {
|
|
1991
1991
|
this.s8_1 = 3;
|
|
1992
1992
|
continue $sm;
|
|
@@ -1995,7 +1995,7 @@
|
|
|
1995
1995
|
this.s8_1 = 4;
|
|
1996
1996
|
continue $sm;
|
|
1997
1997
|
} else {
|
|
1998
|
-
this.
|
|
1998
|
+
this.v2g_1.z2f_1.z2e('Expected end of the object or comma');
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
2001
|
|
|
@@ -2004,16 +2004,16 @@
|
|
|
2004
2004
|
this.s8_1 = 1;
|
|
2005
2005
|
continue $sm;
|
|
2006
2006
|
case 4:
|
|
2007
|
-
if (this.
|
|
2008
|
-
this.
|
|
2009
|
-
} else if (this.
|
|
2010
|
-
if (!this.
|
|
2011
|
-
invalidTrailingComma(this.
|
|
2007
|
+
if (this.w2g_1 === 6) {
|
|
2008
|
+
this.v2g_1.z2f_1.d2g(7);
|
|
2009
|
+
} else if (this.w2g_1 === 4) {
|
|
2010
|
+
if (!this.v2g_1.b2g_1) {
|
|
2011
|
+
invalidTrailingComma(this.v2g_1.z2f_1);
|
|
2012
2012
|
}
|
|
2013
|
-
this.
|
|
2013
|
+
this.v2g_1.z2f_1.d2g(7);
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
-
return new JsonObject(this.
|
|
2016
|
+
return new JsonObject(this.u2g_1);
|
|
2017
2017
|
case 5:
|
|
2018
2018
|
throw this.v8_1;
|
|
2019
2019
|
}
|
|
@@ -2029,13 +2029,13 @@
|
|
|
2029
2029
|
while (true);
|
|
2030
2030
|
};
|
|
2031
2031
|
function JsonTreeReader(configuration, lexer) {
|
|
2032
|
-
this.
|
|
2033
|
-
this.
|
|
2034
|
-
this.
|
|
2035
|
-
this.
|
|
2032
|
+
this.z2f_1 = lexer;
|
|
2033
|
+
this.a2g_1 = configuration.u2b_1;
|
|
2034
|
+
this.b2g_1 = configuration.g2c_1;
|
|
2035
|
+
this.c2g_1 = 0;
|
|
2036
2036
|
}
|
|
2037
|
-
protoOf(JsonTreeReader).
|
|
2038
|
-
var token = this.
|
|
2037
|
+
protoOf(JsonTreeReader).i2g = function () {
|
|
2038
|
+
var token = this.z2f_1.e2g();
|
|
2039
2039
|
var tmp;
|
|
2040
2040
|
if (token === 1) {
|
|
2041
2041
|
tmp = readValue(this, true);
|
|
@@ -2043,19 +2043,19 @@
|
|
|
2043
2043
|
tmp = readValue(this, false);
|
|
2044
2044
|
} else if (token === 6) {
|
|
2045
2045
|
var tmp_0;
|
|
2046
|
-
this.
|
|
2047
|
-
if (this.
|
|
2046
|
+
this.c2g_1 = this.c2g_1 + 1 | 0;
|
|
2047
|
+
if (this.c2g_1 === 200) {
|
|
2048
2048
|
tmp_0 = readDeepRecursive(this);
|
|
2049
2049
|
} else {
|
|
2050
2050
|
tmp_0 = readObject(this);
|
|
2051
2051
|
}
|
|
2052
2052
|
var result = tmp_0;
|
|
2053
|
-
this.
|
|
2053
|
+
this.c2g_1 = this.c2g_1 - 1 | 0;
|
|
2054
2054
|
tmp = result;
|
|
2055
2055
|
} else if (token === 8) {
|
|
2056
2056
|
tmp = readArray(this);
|
|
2057
2057
|
} else {
|
|
2058
|
-
this.
|
|
2058
|
+
this.z2f_1.z2e('Cannot read Json element because of unexpected ' + tokenDescription(token));
|
|
2059
2059
|
}
|
|
2060
2060
|
return tmp;
|
|
2061
2061
|
};
|
|
@@ -2064,9 +2064,9 @@
|
|
|
2064
2064
|
while (_iterator__ex2g4s.s()) {
|
|
2065
2065
|
var annotation = _iterator__ex2g4s.t();
|
|
2066
2066
|
if (annotation instanceof JsonClassDiscriminator)
|
|
2067
|
-
return annotation.
|
|
2067
|
+
return annotation.m2h_1;
|
|
2068
2068
|
}
|
|
2069
|
-
return json.
|
|
2069
|
+
return json.d2a_1.b2c_1;
|
|
2070
2070
|
}
|
|
2071
2071
|
function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
|
|
2072
2072
|
if (!(serializer instanceof SealedClassSerializer))
|
|
@@ -2102,11 +2102,11 @@
|
|
|
2102
2102
|
function Key() {
|
|
2103
2103
|
}
|
|
2104
2104
|
function DescriptorSchemaCache() {
|
|
2105
|
-
this.
|
|
2105
|
+
this.a2f_1 = createMapForCache(16);
|
|
2106
2106
|
}
|
|
2107
|
-
protoOf(DescriptorSchemaCache).
|
|
2107
|
+
protoOf(DescriptorSchemaCache).n2h = function (descriptor, key, value) {
|
|
2108
2108
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2109
|
-
var this_0 = this.
|
|
2109
|
+
var this_0 = this.a2f_1;
|
|
2110
2110
|
var value_0 = this_0.m2(descriptor);
|
|
2111
2111
|
var tmp;
|
|
2112
2112
|
if (value_0 == null) {
|
|
@@ -2122,8 +2122,8 @@
|
|
|
2122
2122
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
2123
2123
|
tmp0.p2(tmp2, value_1);
|
|
2124
2124
|
};
|
|
2125
|
-
protoOf(DescriptorSchemaCache).
|
|
2126
|
-
var tmp0_safe_receiver = this.
|
|
2125
|
+
protoOf(DescriptorSchemaCache).b2f = function (descriptor, key, defaultValue) {
|
|
2126
|
+
var tmp0_safe_receiver = this.o2h(descriptor, key);
|
|
2127
2127
|
if (tmp0_safe_receiver == null)
|
|
2128
2128
|
null;
|
|
2129
2129
|
else {
|
|
@@ -2131,11 +2131,11 @@
|
|
|
2131
2131
|
return tmp0_safe_receiver;
|
|
2132
2132
|
}
|
|
2133
2133
|
var value = defaultValue();
|
|
2134
|
-
this.
|
|
2134
|
+
this.n2h(descriptor, key, value);
|
|
2135
2135
|
return value;
|
|
2136
2136
|
};
|
|
2137
|
-
protoOf(DescriptorSchemaCache).
|
|
2138
|
-
var tmp0_safe_receiver = this.
|
|
2137
|
+
protoOf(DescriptorSchemaCache).o2h = function (descriptor, key) {
|
|
2138
|
+
var tmp0_safe_receiver = this.a2f_1.m2(descriptor);
|
|
2139
2139
|
var tmp;
|
|
2140
2140
|
if (tmp0_safe_receiver == null) {
|
|
2141
2141
|
tmp = null;
|
|
@@ -2146,13 +2146,13 @@
|
|
|
2146
2146
|
return !(tmp_0 == null) ? tmp_0 : null;
|
|
2147
2147
|
};
|
|
2148
2148
|
function DiscriminatorHolder(discriminatorToSkip) {
|
|
2149
|
-
this.
|
|
2149
|
+
this.p2h_1 = discriminatorToSkip;
|
|
2150
2150
|
}
|
|
2151
2151
|
function trySkip($this, $receiver, unknownKey) {
|
|
2152
2152
|
if ($receiver == null)
|
|
2153
2153
|
return false;
|
|
2154
|
-
if ($receiver.
|
|
2155
|
-
$receiver.
|
|
2154
|
+
if ($receiver.p2h_1 === unknownKey) {
|
|
2155
|
+
$receiver.p2h_1 = null;
|
|
2156
2156
|
return true;
|
|
2157
2157
|
}
|
|
2158
2158
|
return false;
|
|
@@ -2162,55 +2162,55 @@
|
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
2164
|
function checkLeadingComma($this) {
|
|
2165
|
-
if ($this.
|
|
2166
|
-
$this.
|
|
2165
|
+
if ($this.o2a_1.e2g() === 4) {
|
|
2166
|
+
$this.o2a_1.z2e('Unexpected leading comma');
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
function decodeMapIndex($this) {
|
|
2170
2170
|
var hasComma = false;
|
|
2171
|
-
var decodingKey = !(($this.
|
|
2171
|
+
var decodingKey = !(($this.q2a_1 % 2 | 0) === 0);
|
|
2172
2172
|
if (decodingKey) {
|
|
2173
|
-
if (!($this.
|
|
2174
|
-
hasComma = $this.
|
|
2173
|
+
if (!($this.q2a_1 === -1)) {
|
|
2174
|
+
hasComma = $this.o2a_1.r2h();
|
|
2175
2175
|
}
|
|
2176
2176
|
} else {
|
|
2177
|
-
$this.
|
|
2177
|
+
$this.o2a_1.q2h(_Char___init__impl__6a9atx(58));
|
|
2178
2178
|
}
|
|
2179
2179
|
var tmp;
|
|
2180
|
-
if ($this.
|
|
2180
|
+
if ($this.o2a_1.f2g()) {
|
|
2181
2181
|
if (decodingKey) {
|
|
2182
|
-
if ($this.
|
|
2183
|
-
var tmp0 = $this.
|
|
2182
|
+
if ($this.q2a_1 === -1) {
|
|
2183
|
+
var tmp0 = $this.o2a_1;
|
|
2184
2184
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
2185
2185
|
var condition = !hasComma;
|
|
2186
|
-
var position = tmp0.
|
|
2186
|
+
var position = tmp0.u2a_1;
|
|
2187
2187
|
if (!condition) {
|
|
2188
2188
|
var tmp$ret$1 = 'Unexpected leading comma';
|
|
2189
|
-
tmp0.
|
|
2189
|
+
tmp0.z2e(tmp$ret$1, position);
|
|
2190
2190
|
}
|
|
2191
2191
|
} else {
|
|
2192
|
-
var tmp0_0 = $this.
|
|
2192
|
+
var tmp0_0 = $this.o2a_1;
|
|
2193
2193
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
2194
2194
|
var condition_0 = hasComma;
|
|
2195
|
-
var position_0 = tmp0_0.
|
|
2195
|
+
var position_0 = tmp0_0.u2a_1;
|
|
2196
2196
|
if (!condition_0) {
|
|
2197
2197
|
var tmp$ret$3 = 'Expected comma after the key-value pair';
|
|
2198
|
-
tmp0_0.
|
|
2198
|
+
tmp0_0.z2e(tmp$ret$3, position_0);
|
|
2199
2199
|
}
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
|
-
$this.
|
|
2203
|
-
tmp = $this.
|
|
2202
|
+
$this.q2a_1 = $this.q2a_1 + 1 | 0;
|
|
2203
|
+
tmp = $this.q2a_1;
|
|
2204
2204
|
} else {
|
|
2205
|
-
if (hasComma && !$this.
|
|
2206
|
-
invalidTrailingComma($this.
|
|
2205
|
+
if (hasComma && !$this.m2a_1.d2a_1.g2c_1) {
|
|
2206
|
+
invalidTrailingComma($this.o2a_1);
|
|
2207
2207
|
}
|
|
2208
2208
|
tmp = -1;
|
|
2209
2209
|
}
|
|
2210
2210
|
return tmp;
|
|
2211
2211
|
}
|
|
2212
2212
|
function coerceInputValue($this, descriptor, index) {
|
|
2213
|
-
var tmp0 = $this.
|
|
2213
|
+
var tmp0 = $this.m2a_1;
|
|
2214
2214
|
var tmp$ret$0;
|
|
2215
2215
|
$l$block_2: {
|
|
2216
2216
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -2218,7 +2218,7 @@
|
|
|
2218
2218
|
var elementDescriptor = descriptor.sp(index);
|
|
2219
2219
|
var tmp;
|
|
2220
2220
|
if (isOptional && !elementDescriptor.gp()) {
|
|
2221
|
-
tmp = $this.
|
|
2221
|
+
tmp = $this.o2a_1.s2h(true);
|
|
2222
2222
|
} else {
|
|
2223
2223
|
tmp = false;
|
|
2224
2224
|
}
|
|
@@ -2229,7 +2229,7 @@
|
|
|
2229
2229
|
if (equals(elementDescriptor.lp(), ENUM_getInstance())) {
|
|
2230
2230
|
var tmp_0;
|
|
2231
2231
|
if (elementDescriptor.gp()) {
|
|
2232
|
-
tmp_0 = $this.
|
|
2232
|
+
tmp_0 = $this.o2a_1.s2h(false);
|
|
2233
2233
|
} else {
|
|
2234
2234
|
tmp_0 = false;
|
|
2235
2235
|
}
|
|
@@ -2237,7 +2237,7 @@
|
|
|
2237
2237
|
tmp$ret$0 = false;
|
|
2238
2238
|
break $l$block_2;
|
|
2239
2239
|
}
|
|
2240
|
-
var tmp0_elvis_lhs = $this.
|
|
2240
|
+
var tmp0_elvis_lhs = $this.o2a_1.t2h($this.s2a_1.u2b_1);
|
|
2241
2241
|
var tmp_1;
|
|
2242
2242
|
if (tmp0_elvis_lhs == null) {
|
|
2243
2243
|
tmp$ret$0 = false;
|
|
@@ -2247,9 +2247,9 @@
|
|
|
2247
2247
|
}
|
|
2248
2248
|
var enumValue = tmp_1;
|
|
2249
2249
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
2250
|
-
var coerceToNull = !tmp0.
|
|
2250
|
+
var coerceToNull = !tmp0.d2a_1.x2b_1 && elementDescriptor.gp();
|
|
2251
2251
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
2252
|
-
$this.
|
|
2252
|
+
$this.o2a_1.g2g();
|
|
2253
2253
|
tmp$ret$0 = true;
|
|
2254
2254
|
break $l$block_2;
|
|
2255
2255
|
}
|
|
@@ -2259,24 +2259,24 @@
|
|
|
2259
2259
|
return tmp$ret$0;
|
|
2260
2260
|
}
|
|
2261
2261
|
function decodeObjectIndex($this, descriptor) {
|
|
2262
|
-
var hasComma = $this.
|
|
2263
|
-
while ($this.
|
|
2262
|
+
var hasComma = $this.o2a_1.r2h();
|
|
2263
|
+
while ($this.o2a_1.f2g()) {
|
|
2264
2264
|
hasComma = false;
|
|
2265
2265
|
var key = decodeStringKey($this);
|
|
2266
|
-
$this.
|
|
2267
|
-
var index = getJsonNameIndex(descriptor, $this.
|
|
2266
|
+
$this.o2a_1.q2h(_Char___init__impl__6a9atx(58));
|
|
2267
|
+
var index = getJsonNameIndex(descriptor, $this.m2a_1, key);
|
|
2268
2268
|
var tmp;
|
|
2269
2269
|
if (!(index === -3)) {
|
|
2270
2270
|
var tmp_0;
|
|
2271
|
-
if ($this.
|
|
2272
|
-
hasComma = $this.
|
|
2271
|
+
if ($this.s2a_1.z2b_1 && coerceInputValue($this, descriptor, index)) {
|
|
2272
|
+
hasComma = $this.o2a_1.r2h();
|
|
2273
2273
|
tmp_0 = false;
|
|
2274
2274
|
} else {
|
|
2275
|
-
var tmp0_safe_receiver = $this.
|
|
2275
|
+
var tmp0_safe_receiver = $this.t2a_1;
|
|
2276
2276
|
if (tmp0_safe_receiver == null)
|
|
2277
2277
|
null;
|
|
2278
2278
|
else {
|
|
2279
|
-
tmp0_safe_receiver.
|
|
2279
|
+
tmp0_safe_receiver.w2e(index);
|
|
2280
2280
|
}
|
|
2281
2281
|
return index;
|
|
2282
2282
|
}
|
|
@@ -2289,34 +2289,34 @@
|
|
|
2289
2289
|
hasComma = handleUnknown($this, descriptor, key);
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
|
-
if (hasComma && !$this.
|
|
2293
|
-
invalidTrailingComma($this.
|
|
2292
|
+
if (hasComma && !$this.m2a_1.d2a_1.g2c_1) {
|
|
2293
|
+
invalidTrailingComma($this.o2a_1);
|
|
2294
2294
|
}
|
|
2295
|
-
var tmp1_safe_receiver = $this.
|
|
2296
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2295
|
+
var tmp1_safe_receiver = $this.t2a_1;
|
|
2296
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x2e();
|
|
2297
2297
|
return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2298
2298
|
}
|
|
2299
2299
|
function handleUnknown($this, descriptor, key) {
|
|
2300
|
-
if (ignoreUnknownKeys(descriptor, $this.
|
|
2301
|
-
$this.
|
|
2300
|
+
if (ignoreUnknownKeys(descriptor, $this.m2a_1) || trySkip($this, $this.r2a_1, key)) {
|
|
2301
|
+
$this.o2a_1.v2h($this.s2a_1.u2b_1);
|
|
2302
2302
|
} else {
|
|
2303
|
-
$this.
|
|
2304
|
-
$this.
|
|
2303
|
+
$this.o2a_1.v2a_1.l2f();
|
|
2304
|
+
$this.o2a_1.u2h(key);
|
|
2305
2305
|
}
|
|
2306
|
-
return $this.
|
|
2306
|
+
return $this.o2a_1.r2h();
|
|
2307
2307
|
}
|
|
2308
2308
|
function decodeListIndex($this) {
|
|
2309
|
-
var hasComma = $this.
|
|
2309
|
+
var hasComma = $this.o2a_1.r2h();
|
|
2310
2310
|
var tmp;
|
|
2311
|
-
if ($this.
|
|
2312
|
-
if (!($this.
|
|
2313
|
-
$this.
|
|
2311
|
+
if ($this.o2a_1.f2g()) {
|
|
2312
|
+
if (!($this.q2a_1 === -1) && !hasComma) {
|
|
2313
|
+
$this.o2a_1.z2e('Expected end of the array or comma');
|
|
2314
2314
|
}
|
|
2315
|
-
$this.
|
|
2316
|
-
tmp = $this.
|
|
2315
|
+
$this.q2a_1 = $this.q2a_1 + 1 | 0;
|
|
2316
|
+
tmp = $this.q2a_1;
|
|
2317
2317
|
} else {
|
|
2318
|
-
if (hasComma && !$this.
|
|
2319
|
-
invalidTrailingComma($this.
|
|
2318
|
+
if (hasComma && !$this.m2a_1.d2a_1.g2c_1) {
|
|
2319
|
+
invalidTrailingComma($this.o2a_1, 'array');
|
|
2320
2320
|
}
|
|
2321
2321
|
tmp = -1;
|
|
2322
2322
|
}
|
|
@@ -2324,32 +2324,32 @@
|
|
|
2324
2324
|
}
|
|
2325
2325
|
function decodeStringKey($this) {
|
|
2326
2326
|
var tmp;
|
|
2327
|
-
if ($this.
|
|
2328
|
-
tmp = $this.
|
|
2327
|
+
if ($this.s2a_1.u2b_1) {
|
|
2328
|
+
tmp = $this.o2a_1.x2h();
|
|
2329
2329
|
} else {
|
|
2330
|
-
tmp = $this.
|
|
2330
|
+
tmp = $this.o2a_1.w2h();
|
|
2331
2331
|
}
|
|
2332
2332
|
return tmp;
|
|
2333
2333
|
}
|
|
2334
2334
|
function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
|
|
2335
2335
|
AbstractDecoder.call(this);
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2339
|
-
this.
|
|
2340
|
-
this.
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2344
|
-
}
|
|
2345
|
-
protoOf(StreamingJsonDecoder).
|
|
2346
|
-
return this.
|
|
2336
|
+
this.m2a_1 = json;
|
|
2337
|
+
this.n2a_1 = mode;
|
|
2338
|
+
this.o2a_1 = lexer;
|
|
2339
|
+
this.p2a_1 = this.m2a_1.sr();
|
|
2340
|
+
this.q2a_1 = -1;
|
|
2341
|
+
this.r2a_1 = discriminatorHolder;
|
|
2342
|
+
this.s2a_1 = this.m2a_1.d2a_1;
|
|
2343
|
+
this.t2a_1 = this.s2a_1.x2b_1 ? null : new JsonElementMarker(descriptor);
|
|
2344
|
+
}
|
|
2345
|
+
protoOf(StreamingJsonDecoder).j2c = function () {
|
|
2346
|
+
return this.m2a_1;
|
|
2347
2347
|
};
|
|
2348
2348
|
protoOf(StreamingJsonDecoder).sr = function () {
|
|
2349
|
-
return this.
|
|
2349
|
+
return this.p2a_1;
|
|
2350
2350
|
};
|
|
2351
|
-
protoOf(StreamingJsonDecoder).
|
|
2352
|
-
return (new JsonTreeReader(this.
|
|
2351
|
+
protoOf(StreamingJsonDecoder).k2c = function () {
|
|
2352
|
+
return (new JsonTreeReader(this.m2a_1.d2a_1, this.o2a_1)).i2g();
|
|
2353
2353
|
};
|
|
2354
2354
|
protoOf(StreamingJsonDecoder).cr = function (deserializer) {
|
|
2355
2355
|
try {
|
|
@@ -2357,13 +2357,13 @@
|
|
|
2357
2357
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
2358
2358
|
tmp = true;
|
|
2359
2359
|
} else {
|
|
2360
|
-
tmp = this.
|
|
2360
|
+
tmp = this.m2a_1.d2a_1.a2c_1;
|
|
2361
2361
|
}
|
|
2362
2362
|
if (tmp) {
|
|
2363
2363
|
return deserializer.io(this);
|
|
2364
2364
|
}
|
|
2365
|
-
var discriminator = classDiscriminator(deserializer.go(), this.
|
|
2366
|
-
var tmp0_elvis_lhs = this.
|
|
2365
|
+
var discriminator = classDiscriminator(deserializer.go(), this.m2a_1);
|
|
2366
|
+
var tmp0_elvis_lhs = this.o2a_1.y2h(discriminator, this.s2a_1.u2b_1);
|
|
2367
2367
|
var tmp_0;
|
|
2368
2368
|
if (tmp0_elvis_lhs == null) {
|
|
2369
2369
|
var tmp2 = isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE();
|
|
@@ -2374,20 +2374,20 @@
|
|
|
2374
2374
|
if (!(tmp2 instanceof AbstractPolymorphicSerializer)) {
|
|
2375
2375
|
tmp_1 = true;
|
|
2376
2376
|
} else {
|
|
2377
|
-
tmp_1 = this.
|
|
2377
|
+
tmp_1 = this.j2c().d2a_1.a2c_1;
|
|
2378
2378
|
}
|
|
2379
2379
|
if (tmp_1) {
|
|
2380
2380
|
tmp$ret$0 = tmp2.io(this);
|
|
2381
2381
|
break $l$block;
|
|
2382
2382
|
}
|
|
2383
|
-
var discriminator_0 = classDiscriminator(tmp2.go(), this.
|
|
2384
|
-
var tmp0 = this.
|
|
2383
|
+
var discriminator_0 = classDiscriminator(tmp2.go(), this.j2c());
|
|
2384
|
+
var tmp0 = this.k2c();
|
|
2385
2385
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2386
2386
|
var serialName = tmp2.go().kp();
|
|
2387
2387
|
if (!(tmp0 instanceof JsonObject)) {
|
|
2388
2388
|
var tmp_2 = getKClass(JsonObject).m();
|
|
2389
2389
|
var tmp_3 = getKClassFromExpression(tmp0).m();
|
|
2390
|
-
var tmp$ret$2 = this.
|
|
2390
|
+
var tmp$ret$2 = this.o2a_1.v2a_1.m2f();
|
|
2391
2391
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$2, toString(tmp0));
|
|
2392
2392
|
}
|
|
2393
2393
|
var jsonTree = tmp0;
|
|
@@ -2408,7 +2408,7 @@
|
|
|
2408
2408
|
}
|
|
2409
2409
|
var tmp_6 = tmp_4;
|
|
2410
2410
|
var actualSerializer = isInterface(tmp_6, DeserializationStrategy) ? tmp_6 : THROW_CCE();
|
|
2411
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
2411
|
+
tmp$ret$0 = readPolymorphicJson(this.j2c(), discriminator_0, jsonTree, actualSerializer);
|
|
2412
2412
|
}
|
|
2413
2413
|
return tmp$ret$0;
|
|
2414
2414
|
} else {
|
|
@@ -2424,7 +2424,7 @@
|
|
|
2424
2424
|
var it_0 = $p;
|
|
2425
2425
|
var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
|
|
2426
2426
|
var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
|
|
2427
|
-
this.
|
|
2427
|
+
this.o2a_1.z2e(message, VOID, hint);
|
|
2428
2428
|
} else {
|
|
2429
2429
|
throw $p;
|
|
2430
2430
|
}
|
|
@@ -2432,37 +2432,37 @@
|
|
|
2432
2432
|
}
|
|
2433
2433
|
var tmp_9 = tmp_7;
|
|
2434
2434
|
var actualSerializer_0 = isInterface(tmp_9, DeserializationStrategy) ? tmp_9 : THROW_CCE();
|
|
2435
|
-
this.
|
|
2435
|
+
this.r2a_1 = new DiscriminatorHolder(discriminator);
|
|
2436
2436
|
return actualSerializer_0.io(this);
|
|
2437
2437
|
} catch ($p) {
|
|
2438
2438
|
if ($p instanceof MissingFieldException) {
|
|
2439
2439
|
var e = $p;
|
|
2440
2440
|
if (contains(ensureNotNull(e.message), 'at path'))
|
|
2441
2441
|
throw e;
|
|
2442
|
-
throw new MissingFieldException(e.ap_1, plus(e.message, ' at path: ') + this.
|
|
2442
|
+
throw new MissingFieldException(e.ap_1, plus(e.message, ' at path: ') + this.o2a_1.v2a_1.m2f(), e);
|
|
2443
2443
|
} else {
|
|
2444
2444
|
throw $p;
|
|
2445
2445
|
}
|
|
2446
2446
|
}
|
|
2447
2447
|
};
|
|
2448
2448
|
protoOf(StreamingJsonDecoder).dr = function (descriptor) {
|
|
2449
|
-
var newMode = switchMode(this.
|
|
2450
|
-
this.
|
|
2451
|
-
this.
|
|
2449
|
+
var newMode = switchMode(this.m2a_1, descriptor);
|
|
2450
|
+
this.o2a_1.v2a_1.h2f(descriptor);
|
|
2451
|
+
this.o2a_1.q2h(newMode.b2i_1);
|
|
2452
2452
|
checkLeadingComma(this);
|
|
2453
2453
|
var tmp;
|
|
2454
2454
|
switch (newMode.y2_1) {
|
|
2455
2455
|
case 1:
|
|
2456
2456
|
case 2:
|
|
2457
2457
|
case 3:
|
|
2458
|
-
tmp = new StreamingJsonDecoder(this.
|
|
2458
|
+
tmp = new StreamingJsonDecoder(this.m2a_1, newMode, this.o2a_1, descriptor, this.r2a_1);
|
|
2459
2459
|
break;
|
|
2460
2460
|
default:
|
|
2461
2461
|
var tmp_0;
|
|
2462
|
-
if (this.
|
|
2462
|
+
if (this.n2a_1.equals(newMode) && this.m2a_1.d2a_1.x2b_1) {
|
|
2463
2463
|
tmp_0 = this;
|
|
2464
2464
|
} else {
|
|
2465
|
-
tmp_0 = new StreamingJsonDecoder(this.
|
|
2465
|
+
tmp_0 = new StreamingJsonDecoder(this.m2a_1, newMode, this.o2a_1, descriptor, this.r2a_1);
|
|
2466
2466
|
}
|
|
2467
2467
|
|
|
2468
2468
|
tmp = tmp_0;
|
|
@@ -2471,21 +2471,21 @@
|
|
|
2471
2471
|
return tmp;
|
|
2472
2472
|
};
|
|
2473
2473
|
protoOf(StreamingJsonDecoder).er = function (descriptor) {
|
|
2474
|
-
if (descriptor.np() === 0 && ignoreUnknownKeys(descriptor, this.
|
|
2474
|
+
if (descriptor.np() === 0 && ignoreUnknownKeys(descriptor, this.m2a_1)) {
|
|
2475
2475
|
skipLeftoverElements(this, descriptor);
|
|
2476
2476
|
}
|
|
2477
|
-
if (this.
|
|
2478
|
-
invalidTrailingComma(this.
|
|
2477
|
+
if (this.o2a_1.r2h() && !this.m2a_1.d2a_1.g2c_1) {
|
|
2478
|
+
invalidTrailingComma(this.o2a_1, '');
|
|
2479
2479
|
}
|
|
2480
|
-
this.
|
|
2481
|
-
this.
|
|
2480
|
+
this.o2a_1.q2h(this.n2a_1.c2i_1);
|
|
2481
|
+
this.o2a_1.v2a_1.l2f();
|
|
2482
2482
|
};
|
|
2483
2483
|
protoOf(StreamingJsonDecoder).pq = function () {
|
|
2484
2484
|
var tmp;
|
|
2485
|
-
var tmp0_safe_receiver = this.
|
|
2486
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2485
|
+
var tmp0_safe_receiver = this.t2a_1;
|
|
2486
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v2e_1;
|
|
2487
2487
|
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
2488
|
-
tmp = !this.
|
|
2488
|
+
tmp = !this.o2a_1.d2i();
|
|
2489
2489
|
} else {
|
|
2490
2490
|
tmp = false;
|
|
2491
2491
|
}
|
|
@@ -2495,19 +2495,19 @@
|
|
|
2495
2495
|
return null;
|
|
2496
2496
|
};
|
|
2497
2497
|
protoOf(StreamingJsonDecoder).pr = function (descriptor, index, deserializer, previousValue) {
|
|
2498
|
-
var isMapKey = this.
|
|
2498
|
+
var isMapKey = this.n2a_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
2499
2499
|
if (isMapKey) {
|
|
2500
|
-
this.
|
|
2500
|
+
this.o2a_1.v2a_1.k2f();
|
|
2501
2501
|
}
|
|
2502
2502
|
var value = protoOf(AbstractDecoder).pr.call(this, descriptor, index, deserializer, previousValue);
|
|
2503
2503
|
if (isMapKey) {
|
|
2504
|
-
this.
|
|
2504
|
+
this.o2a_1.v2a_1.j2f(value);
|
|
2505
2505
|
}
|
|
2506
2506
|
return value;
|
|
2507
2507
|
};
|
|
2508
2508
|
protoOf(StreamingJsonDecoder).ur = function (descriptor) {
|
|
2509
2509
|
var index;
|
|
2510
|
-
switch (this.
|
|
2510
|
+
switch (this.n2a_1.y2_1) {
|
|
2511
2511
|
case 0:
|
|
2512
2512
|
index = decodeObjectIndex(this, descriptor);
|
|
2513
2513
|
break;
|
|
@@ -2518,44 +2518,44 @@
|
|
|
2518
2518
|
index = decodeListIndex(this);
|
|
2519
2519
|
break;
|
|
2520
2520
|
}
|
|
2521
|
-
if (!this.
|
|
2522
|
-
this.
|
|
2521
|
+
if (!this.n2a_1.equals(WriteMode_MAP_getInstance())) {
|
|
2522
|
+
this.o2a_1.v2a_1.i2f(index);
|
|
2523
2523
|
}
|
|
2524
2524
|
return index;
|
|
2525
2525
|
};
|
|
2526
2526
|
protoOf(StreamingJsonDecoder).rq = function () {
|
|
2527
|
-
return this.
|
|
2527
|
+
return this.o2a_1.e2i();
|
|
2528
2528
|
};
|
|
2529
2529
|
protoOf(StreamingJsonDecoder).sq = function () {
|
|
2530
|
-
var value = this.
|
|
2530
|
+
var value = this.o2a_1.f2i();
|
|
2531
2531
|
if (!equalsLong(value, fromInt(convertToByte(value)))) {
|
|
2532
|
-
this.
|
|
2532
|
+
this.o2a_1.z2e("Failed to parse byte for input '" + value.toString() + "'");
|
|
2533
2533
|
}
|
|
2534
2534
|
return convertToByte(value);
|
|
2535
2535
|
};
|
|
2536
2536
|
protoOf(StreamingJsonDecoder).tq = function () {
|
|
2537
|
-
var value = this.
|
|
2537
|
+
var value = this.o2a_1.f2i();
|
|
2538
2538
|
if (!equalsLong(value, fromInt(convertToShort(value)))) {
|
|
2539
|
-
this.
|
|
2539
|
+
this.o2a_1.z2e("Failed to parse short for input '" + value.toString() + "'");
|
|
2540
2540
|
}
|
|
2541
2541
|
return convertToShort(value);
|
|
2542
2542
|
};
|
|
2543
2543
|
protoOf(StreamingJsonDecoder).uq = function () {
|
|
2544
|
-
var value = this.
|
|
2544
|
+
var value = this.o2a_1.f2i();
|
|
2545
2545
|
if (!equalsLong(value, fromInt(convertToInt(value)))) {
|
|
2546
|
-
this.
|
|
2546
|
+
this.o2a_1.z2e("Failed to parse int for input '" + value.toString() + "'");
|
|
2547
2547
|
}
|
|
2548
2548
|
return convertToInt(value);
|
|
2549
2549
|
};
|
|
2550
2550
|
protoOf(StreamingJsonDecoder).vq = function () {
|
|
2551
|
-
return this.
|
|
2551
|
+
return this.o2a_1.f2i();
|
|
2552
2552
|
};
|
|
2553
2553
|
protoOf(StreamingJsonDecoder).wq = function () {
|
|
2554
|
-
var tmp0 = this.
|
|
2554
|
+
var tmp0 = this.o2a_1;
|
|
2555
2555
|
var tmp$ret$0;
|
|
2556
2556
|
$l$block: {
|
|
2557
2557
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2558
|
-
var input = tmp0.
|
|
2558
|
+
var input = tmp0.h2g();
|
|
2559
2559
|
try {
|
|
2560
2560
|
// Inline function 'kotlin.text.toFloat' call
|
|
2561
2561
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2565,68 +2565,68 @@
|
|
|
2565
2565
|
} catch ($p) {
|
|
2566
2566
|
if ($p instanceof IllegalArgumentException) {
|
|
2567
2567
|
var e = $p;
|
|
2568
|
-
tmp0.
|
|
2568
|
+
tmp0.z2e("Failed to parse type '" + 'float' + "' for input '" + input + "'");
|
|
2569
2569
|
} else {
|
|
2570
2570
|
throw $p;
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
var result = tmp$ret$0;
|
|
2575
|
-
var specialFp = this.
|
|
2575
|
+
var specialFp = this.m2a_1.d2a_1.c2c_1;
|
|
2576
2576
|
if (specialFp || isFinite(result))
|
|
2577
2577
|
return result;
|
|
2578
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2578
|
+
throwInvalidFloatingPointDecoded(this.o2a_1, result);
|
|
2579
2579
|
};
|
|
2580
2580
|
protoOf(StreamingJsonDecoder).xq = function () {
|
|
2581
|
-
var tmp0 = this.
|
|
2581
|
+
var tmp0 = this.o2a_1;
|
|
2582
2582
|
var tmp$ret$0;
|
|
2583
2583
|
$l$block: {
|
|
2584
2584
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2585
|
-
var input = tmp0.
|
|
2585
|
+
var input = tmp0.h2g();
|
|
2586
2586
|
try {
|
|
2587
2587
|
tmp$ret$0 = toDouble(input);
|
|
2588
2588
|
break $l$block;
|
|
2589
2589
|
} catch ($p) {
|
|
2590
2590
|
if ($p instanceof IllegalArgumentException) {
|
|
2591
2591
|
var e = $p;
|
|
2592
|
-
tmp0.
|
|
2592
|
+
tmp0.z2e("Failed to parse type '" + 'double' + "' for input '" + input + "'");
|
|
2593
2593
|
} else {
|
|
2594
2594
|
throw $p;
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
2598
|
var result = tmp$ret$0;
|
|
2599
|
-
var specialFp = this.
|
|
2599
|
+
var specialFp = this.m2a_1.d2a_1.c2c_1;
|
|
2600
2600
|
if (specialFp || isFinite_0(result))
|
|
2601
2601
|
return result;
|
|
2602
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2602
|
+
throwInvalidFloatingPointDecoded(this.o2a_1, result);
|
|
2603
2603
|
};
|
|
2604
2604
|
protoOf(StreamingJsonDecoder).yq = function () {
|
|
2605
|
-
var string = this.
|
|
2605
|
+
var string = this.o2a_1.h2g();
|
|
2606
2606
|
if (!(string.length === 1)) {
|
|
2607
|
-
this.
|
|
2607
|
+
this.o2a_1.z2e("Expected single char, but got '" + string + "'");
|
|
2608
2608
|
}
|
|
2609
2609
|
return charCodeAt(string, 0);
|
|
2610
2610
|
};
|
|
2611
2611
|
protoOf(StreamingJsonDecoder).zq = function () {
|
|
2612
2612
|
var tmp;
|
|
2613
|
-
if (this.
|
|
2614
|
-
tmp = this.
|
|
2613
|
+
if (this.s2a_1.u2b_1) {
|
|
2614
|
+
tmp = this.o2a_1.x2h();
|
|
2615
2615
|
} else {
|
|
2616
|
-
tmp = this.
|
|
2616
|
+
tmp = this.o2a_1.g2g();
|
|
2617
2617
|
}
|
|
2618
2618
|
return tmp;
|
|
2619
2619
|
};
|
|
2620
2620
|
protoOf(StreamingJsonDecoder).ar = function (descriptor) {
|
|
2621
|
-
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.
|
|
2621
|
+
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.o2a_1, this.m2a_1) : protoOf(AbstractDecoder).ar.call(this, descriptor);
|
|
2622
2622
|
};
|
|
2623
2623
|
function JsonDecoderForUnsignedTypes(lexer, json) {
|
|
2624
2624
|
AbstractDecoder.call(this);
|
|
2625
|
-
this.
|
|
2626
|
-
this.
|
|
2625
|
+
this.g2i_1 = lexer;
|
|
2626
|
+
this.h2i_1 = json.sr();
|
|
2627
2627
|
}
|
|
2628
2628
|
protoOf(JsonDecoderForUnsignedTypes).sr = function () {
|
|
2629
|
-
return this.
|
|
2629
|
+
return this.h2i_1;
|
|
2630
2630
|
};
|
|
2631
2631
|
protoOf(JsonDecoderForUnsignedTypes).ur = function (descriptor) {
|
|
2632
2632
|
// Inline function 'kotlin.error' call
|
|
@@ -2634,11 +2634,11 @@
|
|
|
2634
2634
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2635
2635
|
};
|
|
2636
2636
|
protoOf(JsonDecoderForUnsignedTypes).uq = function () {
|
|
2637
|
-
var tmp0 = this.
|
|
2637
|
+
var tmp0 = this.g2i_1;
|
|
2638
2638
|
var tmp$ret$0;
|
|
2639
2639
|
$l$block: {
|
|
2640
2640
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2641
|
-
var input = tmp0.
|
|
2641
|
+
var input = tmp0.h2g();
|
|
2642
2642
|
try {
|
|
2643
2643
|
// Inline function 'kotlin.UInt.toInt' call
|
|
2644
2644
|
var this_0 = toUInt(input);
|
|
@@ -2647,7 +2647,7 @@
|
|
|
2647
2647
|
} catch ($p) {
|
|
2648
2648
|
if ($p instanceof IllegalArgumentException) {
|
|
2649
2649
|
var e = $p;
|
|
2650
|
-
tmp0.
|
|
2650
|
+
tmp0.z2e("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
|
|
2651
2651
|
} else {
|
|
2652
2652
|
throw $p;
|
|
2653
2653
|
}
|
|
@@ -2656,11 +2656,11 @@
|
|
|
2656
2656
|
return tmp$ret$0;
|
|
2657
2657
|
};
|
|
2658
2658
|
protoOf(JsonDecoderForUnsignedTypes).vq = function () {
|
|
2659
|
-
var tmp0 = this.
|
|
2659
|
+
var tmp0 = this.g2i_1;
|
|
2660
2660
|
var tmp$ret$0;
|
|
2661
2661
|
$l$block: {
|
|
2662
2662
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2663
|
-
var input = tmp0.
|
|
2663
|
+
var input = tmp0.h2g();
|
|
2664
2664
|
try {
|
|
2665
2665
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2666
2666
|
var this_0 = toULong(input);
|
|
@@ -2669,7 +2669,7 @@
|
|
|
2669
2669
|
} catch ($p) {
|
|
2670
2670
|
if ($p instanceof IllegalArgumentException) {
|
|
2671
2671
|
var e = $p;
|
|
2672
|
-
tmp0.
|
|
2672
|
+
tmp0.z2e("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
|
|
2673
2673
|
} else {
|
|
2674
2674
|
throw $p;
|
|
2675
2675
|
}
|
|
@@ -2678,11 +2678,11 @@
|
|
|
2678
2678
|
return tmp$ret$0;
|
|
2679
2679
|
};
|
|
2680
2680
|
protoOf(JsonDecoderForUnsignedTypes).sq = function () {
|
|
2681
|
-
var tmp0 = this.
|
|
2681
|
+
var tmp0 = this.g2i_1;
|
|
2682
2682
|
var tmp$ret$0;
|
|
2683
2683
|
$l$block: {
|
|
2684
2684
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2685
|
-
var input = tmp0.
|
|
2685
|
+
var input = tmp0.h2g();
|
|
2686
2686
|
try {
|
|
2687
2687
|
// Inline function 'kotlin.UByte.toByte' call
|
|
2688
2688
|
var this_0 = toUByte(input);
|
|
@@ -2691,7 +2691,7 @@
|
|
|
2691
2691
|
} catch ($p) {
|
|
2692
2692
|
if ($p instanceof IllegalArgumentException) {
|
|
2693
2693
|
var e = $p;
|
|
2694
|
-
tmp0.
|
|
2694
|
+
tmp0.z2e("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
|
|
2695
2695
|
} else {
|
|
2696
2696
|
throw $p;
|
|
2697
2697
|
}
|
|
@@ -2700,11 +2700,11 @@
|
|
|
2700
2700
|
return tmp$ret$0;
|
|
2701
2701
|
};
|
|
2702
2702
|
protoOf(JsonDecoderForUnsignedTypes).tq = function () {
|
|
2703
|
-
var tmp0 = this.
|
|
2703
|
+
var tmp0 = this.g2i_1;
|
|
2704
2704
|
var tmp$ret$0;
|
|
2705
2705
|
$l$block: {
|
|
2706
2706
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2707
|
-
var input = tmp0.
|
|
2707
|
+
var input = tmp0.h2g();
|
|
2708
2708
|
try {
|
|
2709
2709
|
// Inline function 'kotlin.UShort.toShort' call
|
|
2710
2710
|
var this_0 = toUShort(input);
|
|
@@ -2713,7 +2713,7 @@
|
|
|
2713
2713
|
} catch ($p) {
|
|
2714
2714
|
if ($p instanceof IllegalArgumentException) {
|
|
2715
2715
|
var e = $p;
|
|
2716
|
-
tmp0.
|
|
2716
|
+
tmp0.z2e("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
|
|
2717
2717
|
} else {
|
|
2718
2718
|
throw $p;
|
|
2719
2719
|
}
|
|
@@ -2734,53 +2734,53 @@
|
|
|
2734
2734
|
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
2735
2735
|
}
|
|
2736
2736
|
function encodeTypeInfo($this, discriminator, serialName) {
|
|
2737
|
-
$this.
|
|
2737
|
+
$this.q2f_1.t2d();
|
|
2738
2738
|
$this.hs(discriminator);
|
|
2739
|
-
$this.
|
|
2740
|
-
$this.
|
|
2739
|
+
$this.q2f_1.w2d(_Char___init__impl__6a9atx(58));
|
|
2740
|
+
$this.q2f_1.v2d();
|
|
2741
2741
|
$this.hs(serialName);
|
|
2742
2742
|
}
|
|
2743
2743
|
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
2744
2744
|
AbstractEncoder.call(this);
|
|
2745
|
-
this.
|
|
2746
|
-
this.
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2749
|
-
this.
|
|
2750
|
-
this.
|
|
2751
|
-
this.
|
|
2752
|
-
this.w2f_1 = null;
|
|
2745
|
+
this.q2f_1 = composer;
|
|
2746
|
+
this.r2f_1 = json;
|
|
2747
|
+
this.s2f_1 = mode;
|
|
2748
|
+
this.t2f_1 = modeReuseCache;
|
|
2749
|
+
this.u2f_1 = this.r2f_1.sr();
|
|
2750
|
+
this.v2f_1 = this.r2f_1.d2a_1;
|
|
2751
|
+
this.w2f_1 = false;
|
|
2753
2752
|
this.x2f_1 = null;
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2753
|
+
this.y2f_1 = null;
|
|
2754
|
+
var i = this.s2f_1.y2_1;
|
|
2755
|
+
if (!(this.t2f_1 == null)) {
|
|
2756
|
+
if (!(this.t2f_1[i] === null) || !(this.t2f_1[i] === this)) {
|
|
2757
|
+
this.t2f_1[i] = this;
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
|
-
protoOf(StreamingJsonEncoder).
|
|
2762
|
-
return this.
|
|
2761
|
+
protoOf(StreamingJsonEncoder).j2c = function () {
|
|
2762
|
+
return this.r2f_1;
|
|
2763
2763
|
};
|
|
2764
2764
|
protoOf(StreamingJsonEncoder).sr = function () {
|
|
2765
|
-
return this.
|
|
2765
|
+
return this.u2f_1;
|
|
2766
2766
|
};
|
|
2767
2767
|
protoOf(StreamingJsonEncoder).zs = function (descriptor, index) {
|
|
2768
|
-
return this.
|
|
2768
|
+
return this.v2f_1.s2b_1;
|
|
2769
2769
|
};
|
|
2770
2770
|
protoOf(StreamingJsonEncoder).us = function (serializer, value) {
|
|
2771
2771
|
$l$block: {
|
|
2772
2772
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
2773
|
-
if (this.
|
|
2773
|
+
if (this.j2c().d2a_1.a2c_1) {
|
|
2774
2774
|
serializer.ho(this, value);
|
|
2775
2775
|
break $l$block;
|
|
2776
2776
|
}
|
|
2777
2777
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
2778
2778
|
var tmp;
|
|
2779
2779
|
if (isPolymorphicSerializer) {
|
|
2780
|
-
tmp = !this.
|
|
2780
|
+
tmp = !this.j2c().d2a_1.i2c_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
2781
2781
|
} else {
|
|
2782
2782
|
var tmp_0;
|
|
2783
|
-
switch (this.
|
|
2783
|
+
switch (this.j2c().d2a_1.i2c_1.y2_1) {
|
|
2784
2784
|
case 0:
|
|
2785
2785
|
case 2:
|
|
2786
2786
|
tmp_0 = false;
|
|
@@ -2798,7 +2798,7 @@
|
|
|
2798
2798
|
tmp = tmp_0;
|
|
2799
2799
|
}
|
|
2800
2800
|
var needDiscriminator = tmp;
|
|
2801
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.go(), this.
|
|
2801
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.go(), this.j2c()) : null;
|
|
2802
2802
|
var tmp_1;
|
|
2803
2803
|
if (isPolymorphicSerializer) {
|
|
2804
2804
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
@@ -2823,93 +2823,93 @@
|
|
|
2823
2823
|
var actualSerializer = tmp_1;
|
|
2824
2824
|
if (!(baseClassDiscriminator == null)) {
|
|
2825
2825
|
var serialName = actualSerializer.go().kp();
|
|
2826
|
-
this.
|
|
2827
|
-
this.
|
|
2826
|
+
this.x2f_1 = baseClassDiscriminator;
|
|
2827
|
+
this.y2f_1 = serialName;
|
|
2828
2828
|
}
|
|
2829
2829
|
actualSerializer.ho(this, value);
|
|
2830
2830
|
}
|
|
2831
2831
|
};
|
|
2832
2832
|
protoOf(StreamingJsonEncoder).dr = function (descriptor) {
|
|
2833
|
-
var newMode = switchMode(this.
|
|
2834
|
-
if (!(newMode.
|
|
2835
|
-
this.
|
|
2836
|
-
this.
|
|
2833
|
+
var newMode = switchMode(this.r2f_1, descriptor);
|
|
2834
|
+
if (!(newMode.b2i_1 === _Char___init__impl__6a9atx(0))) {
|
|
2835
|
+
this.q2f_1.w2d(newMode.b2i_1);
|
|
2836
|
+
this.q2f_1.r2d();
|
|
2837
2837
|
}
|
|
2838
|
-
var discriminator = this.
|
|
2838
|
+
var discriminator = this.x2f_1;
|
|
2839
2839
|
if (!(discriminator == null)) {
|
|
2840
|
-
var tmp0_elvis_lhs = this.
|
|
2840
|
+
var tmp0_elvis_lhs = this.y2f_1;
|
|
2841
2841
|
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.kp() : tmp0_elvis_lhs);
|
|
2842
|
-
this.w2f_1 = null;
|
|
2843
2842
|
this.x2f_1 = null;
|
|
2843
|
+
this.y2f_1 = null;
|
|
2844
2844
|
}
|
|
2845
|
-
if (this.
|
|
2845
|
+
if (this.s2f_1.equals(newMode)) {
|
|
2846
2846
|
return this;
|
|
2847
2847
|
}
|
|
2848
|
-
var tmp1_safe_receiver = this.
|
|
2848
|
+
var tmp1_safe_receiver = this.t2f_1;
|
|
2849
2849
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.y2_1];
|
|
2850
|
-
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.
|
|
2850
|
+
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.q2f_1, this.r2f_1, newMode, this.t2f_1) : tmp2_elvis_lhs;
|
|
2851
2851
|
};
|
|
2852
2852
|
protoOf(StreamingJsonEncoder).er = function (descriptor) {
|
|
2853
|
-
if (!(this.
|
|
2854
|
-
this.
|
|
2855
|
-
this.
|
|
2856
|
-
this.
|
|
2853
|
+
if (!(this.s2f_1.c2i_1 === _Char___init__impl__6a9atx(0))) {
|
|
2854
|
+
this.q2f_1.s2d();
|
|
2855
|
+
this.q2f_1.u2d();
|
|
2856
|
+
this.q2f_1.w2d(this.s2f_1.c2i_1);
|
|
2857
2857
|
}
|
|
2858
2858
|
};
|
|
2859
2859
|
protoOf(StreamingJsonEncoder).wr = function (descriptor, index) {
|
|
2860
|
-
switch (this.
|
|
2860
|
+
switch (this.s2f_1.y2_1) {
|
|
2861
2861
|
case 1:
|
|
2862
|
-
if (!this.
|
|
2863
|
-
this.
|
|
2862
|
+
if (!this.q2f_1.q2d_1) {
|
|
2863
|
+
this.q2f_1.w2d(_Char___init__impl__6a9atx(44));
|
|
2864
2864
|
}
|
|
2865
2865
|
|
|
2866
|
-
this.
|
|
2866
|
+
this.q2f_1.t2d();
|
|
2867
2867
|
break;
|
|
2868
2868
|
case 2:
|
|
2869
|
-
if (!this.
|
|
2869
|
+
if (!this.q2f_1.q2d_1) {
|
|
2870
2870
|
var tmp = this;
|
|
2871
2871
|
var tmp_0;
|
|
2872
2872
|
if ((index % 2 | 0) === 0) {
|
|
2873
|
-
this.
|
|
2874
|
-
this.
|
|
2873
|
+
this.q2f_1.w2d(_Char___init__impl__6a9atx(44));
|
|
2874
|
+
this.q2f_1.t2d();
|
|
2875
2875
|
tmp_0 = true;
|
|
2876
2876
|
} else {
|
|
2877
|
-
this.
|
|
2878
|
-
this.
|
|
2877
|
+
this.q2f_1.w2d(_Char___init__impl__6a9atx(58));
|
|
2878
|
+
this.q2f_1.v2d();
|
|
2879
2879
|
tmp_0 = false;
|
|
2880
2880
|
}
|
|
2881
|
-
tmp.
|
|
2881
|
+
tmp.w2f_1 = tmp_0;
|
|
2882
2882
|
} else {
|
|
2883
|
-
this.
|
|
2884
|
-
this.
|
|
2883
|
+
this.w2f_1 = true;
|
|
2884
|
+
this.q2f_1.t2d();
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
2887
|
break;
|
|
2888
2888
|
case 3:
|
|
2889
2889
|
if (index === 0)
|
|
2890
|
-
this.
|
|
2890
|
+
this.w2f_1 = true;
|
|
2891
2891
|
if (index === 1) {
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2894
|
-
this.
|
|
2892
|
+
this.q2f_1.w2d(_Char___init__impl__6a9atx(44));
|
|
2893
|
+
this.q2f_1.v2d();
|
|
2894
|
+
this.w2f_1 = false;
|
|
2895
2895
|
}
|
|
2896
2896
|
|
|
2897
2897
|
break;
|
|
2898
2898
|
default:
|
|
2899
|
-
if (!this.
|
|
2900
|
-
this.
|
|
2899
|
+
if (!this.q2f_1.q2d_1) {
|
|
2900
|
+
this.q2f_1.w2d(_Char___init__impl__6a9atx(44));
|
|
2901
2901
|
}
|
|
2902
2902
|
|
|
2903
|
-
this.
|
|
2904
|
-
this.hs(getJsonElementName(descriptor, this.
|
|
2905
|
-
this.
|
|
2906
|
-
this.
|
|
2903
|
+
this.q2f_1.t2d();
|
|
2904
|
+
this.hs(getJsonElementName(descriptor, this.r2f_1, index));
|
|
2905
|
+
this.q2f_1.w2d(_Char___init__impl__6a9atx(58));
|
|
2906
|
+
this.q2f_1.v2d();
|
|
2907
2907
|
break;
|
|
2908
2908
|
}
|
|
2909
2909
|
return true;
|
|
2910
2910
|
};
|
|
2911
2911
|
protoOf(StreamingJsonEncoder).vs = function (descriptor, index, serializer, value) {
|
|
2912
|
-
if (!(value == null) || this.
|
|
2912
|
+
if (!(value == null) || this.v2f_1.x2b_1) {
|
|
2913
2913
|
protoOf(AbstractEncoder).vs.call(this, descriptor, index, serializer, value);
|
|
2914
2914
|
}
|
|
2915
2915
|
};
|
|
@@ -2918,32 +2918,32 @@
|
|
|
2918
2918
|
if (get_isUnsignedNumber(descriptor)) {
|
|
2919
2919
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2920
2920
|
var tmp_0;
|
|
2921
|
-
var tmp_1 = this.
|
|
2921
|
+
var tmp_1 = this.q2f_1;
|
|
2922
2922
|
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
2923
|
-
tmp_0 = this.
|
|
2923
|
+
tmp_0 = this.q2f_1;
|
|
2924
2924
|
} else {
|
|
2925
|
-
var tmp0 = this.
|
|
2926
|
-
var p1 = this.
|
|
2925
|
+
var tmp0 = this.q2f_1.p2d_1;
|
|
2926
|
+
var p1 = this.w2f_1;
|
|
2927
2927
|
tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
|
|
2928
2928
|
}
|
|
2929
2929
|
var tmp$ret$0 = tmp_0;
|
|
2930
|
-
tmp = new StreamingJsonEncoder(tmp$ret$0, this.
|
|
2930
|
+
tmp = new StreamingJsonEncoder(tmp$ret$0, this.r2f_1, this.s2f_1, null);
|
|
2931
2931
|
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
2932
2932
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2933
2933
|
var tmp_2;
|
|
2934
|
-
var tmp_3 = this.
|
|
2934
|
+
var tmp_3 = this.q2f_1;
|
|
2935
2935
|
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
2936
|
-
tmp_2 = this.
|
|
2936
|
+
tmp_2 = this.q2f_1;
|
|
2937
2937
|
} else {
|
|
2938
|
-
var tmp0_0 = this.
|
|
2939
|
-
var p1_0 = this.
|
|
2938
|
+
var tmp0_0 = this.q2f_1.p2d_1;
|
|
2939
|
+
var p1_0 = this.w2f_1;
|
|
2940
2940
|
tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
|
|
2941
2941
|
}
|
|
2942
2942
|
var tmp$ret$2 = tmp_2;
|
|
2943
|
-
tmp = new StreamingJsonEncoder(tmp$ret$2, this.
|
|
2944
|
-
} else if (!(this.
|
|
2943
|
+
tmp = new StreamingJsonEncoder(tmp$ret$2, this.r2f_1, this.s2f_1, null);
|
|
2944
|
+
} else if (!(this.x2f_1 == null)) {
|
|
2945
2945
|
// Inline function 'kotlin.apply' call
|
|
2946
|
-
this.
|
|
2946
|
+
this.y2f_1 = descriptor.kp();
|
|
2947
2947
|
tmp = this;
|
|
2948
2948
|
} else {
|
|
2949
2949
|
tmp = protoOf(AbstractEncoder).is.call(this, descriptor);
|
|
@@ -2951,68 +2951,68 @@
|
|
|
2951
2951
|
return tmp;
|
|
2952
2952
|
};
|
|
2953
2953
|
protoOf(StreamingJsonEncoder).yr = function () {
|
|
2954
|
-
this.
|
|
2954
|
+
this.q2f_1.y2d('null');
|
|
2955
2955
|
};
|
|
2956
2956
|
protoOf(StreamingJsonEncoder).zr = function (value) {
|
|
2957
|
-
if (this.
|
|
2957
|
+
if (this.w2f_1) {
|
|
2958
2958
|
this.hs(value.toString());
|
|
2959
2959
|
} else {
|
|
2960
|
-
this.
|
|
2960
|
+
this.q2f_1.h2e(value);
|
|
2961
2961
|
}
|
|
2962
2962
|
};
|
|
2963
2963
|
protoOf(StreamingJsonEncoder).as = function (value) {
|
|
2964
|
-
if (this.
|
|
2964
|
+
if (this.w2f_1) {
|
|
2965
2965
|
this.hs(value.toString());
|
|
2966
2966
|
} else {
|
|
2967
|
-
this.
|
|
2967
|
+
this.q2f_1.c2e(value);
|
|
2968
2968
|
}
|
|
2969
2969
|
};
|
|
2970
2970
|
protoOf(StreamingJsonEncoder).bs = function (value) {
|
|
2971
|
-
if (this.
|
|
2971
|
+
if (this.w2f_1) {
|
|
2972
2972
|
this.hs(value.toString());
|
|
2973
2973
|
} else {
|
|
2974
|
-
this.
|
|
2974
|
+
this.q2f_1.e2e(value);
|
|
2975
2975
|
}
|
|
2976
2976
|
};
|
|
2977
2977
|
protoOf(StreamingJsonEncoder).cs = function (value) {
|
|
2978
|
-
if (this.
|
|
2978
|
+
if (this.w2f_1) {
|
|
2979
2979
|
this.hs(value.toString());
|
|
2980
2980
|
} else {
|
|
2981
|
-
this.
|
|
2981
|
+
this.q2f_1.f2e(value);
|
|
2982
2982
|
}
|
|
2983
2983
|
};
|
|
2984
2984
|
protoOf(StreamingJsonEncoder).ds = function (value) {
|
|
2985
|
-
if (this.
|
|
2985
|
+
if (this.w2f_1) {
|
|
2986
2986
|
this.hs(value.toString());
|
|
2987
2987
|
} else {
|
|
2988
|
-
this.
|
|
2988
|
+
this.q2f_1.g2e(value);
|
|
2989
2989
|
}
|
|
2990
2990
|
};
|
|
2991
2991
|
protoOf(StreamingJsonEncoder).es = function (value) {
|
|
2992
|
-
if (this.
|
|
2992
|
+
if (this.w2f_1) {
|
|
2993
2993
|
this.hs(value.toString());
|
|
2994
2994
|
} else {
|
|
2995
|
-
this.
|
|
2995
|
+
this.q2f_1.a2e(value);
|
|
2996
2996
|
}
|
|
2997
|
-
if (!this.
|
|
2998
|
-
throw InvalidFloatingPointEncoded_0(value, toString(this.
|
|
2997
|
+
if (!this.v2f_1.c2c_1 && !isFinite(value)) {
|
|
2998
|
+
throw InvalidFloatingPointEncoded_0(value, toString(this.q2f_1.p2d_1));
|
|
2999
2999
|
}
|
|
3000
3000
|
};
|
|
3001
3001
|
protoOf(StreamingJsonEncoder).fs = function (value) {
|
|
3002
|
-
if (this.
|
|
3002
|
+
if (this.w2f_1) {
|
|
3003
3003
|
this.hs(value.toString());
|
|
3004
3004
|
} else {
|
|
3005
|
-
this.
|
|
3005
|
+
this.q2f_1.b2e(value);
|
|
3006
3006
|
}
|
|
3007
|
-
if (!this.
|
|
3008
|
-
throw InvalidFloatingPointEncoded_0(value, toString(this.
|
|
3007
|
+
if (!this.v2f_1.c2c_1 && !isFinite_0(value)) {
|
|
3008
|
+
throw InvalidFloatingPointEncoded_0(value, toString(this.q2f_1.p2d_1));
|
|
3009
3009
|
}
|
|
3010
3010
|
};
|
|
3011
3011
|
protoOf(StreamingJsonEncoder).gs = function (value) {
|
|
3012
3012
|
this.hs(toString_1(value));
|
|
3013
3013
|
};
|
|
3014
3014
|
protoOf(StreamingJsonEncoder).hs = function (value) {
|
|
3015
|
-
return this.
|
|
3015
|
+
return this.q2f_1.i2e(value);
|
|
3016
3016
|
};
|
|
3017
3017
|
function get_isUnsignedNumber(_this__u8e3s4) {
|
|
3018
3018
|
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
@@ -3183,42 +3183,42 @@
|
|
|
3183
3183
|
}
|
|
3184
3184
|
function unparsedPrimitive($this, literal, primitive, tag) {
|
|
3185
3185
|
var type = startsWith(primitive, 'i') ? 'an ' + primitive : 'a ' + primitive;
|
|
3186
|
-
throw JsonDecodingException_0(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.
|
|
3186
|
+
throw JsonDecodingException_0(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.o2i(tag), toString($this.p2i()));
|
|
3187
3187
|
}
|
|
3188
3188
|
function AbstractJsonTreeDecoder(json, value, polymorphicDiscriminator) {
|
|
3189
3189
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3190
3190
|
NamedValueDecoder.call(this);
|
|
3191
|
-
this.
|
|
3192
|
-
this.
|
|
3193
|
-
this.
|
|
3194
|
-
this.
|
|
3191
|
+
this.k2i_1 = json;
|
|
3192
|
+
this.l2i_1 = value;
|
|
3193
|
+
this.m2i_1 = polymorphicDiscriminator;
|
|
3194
|
+
this.n2i_1 = this.j2c().d2a_1;
|
|
3195
3195
|
}
|
|
3196
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3197
|
-
return this.
|
|
3196
|
+
protoOf(AbstractJsonTreeDecoder).j2c = function () {
|
|
3197
|
+
return this.k2i_1;
|
|
3198
3198
|
};
|
|
3199
3199
|
protoOf(AbstractJsonTreeDecoder).m1 = function () {
|
|
3200
|
-
return this.
|
|
3200
|
+
return this.l2i_1;
|
|
3201
3201
|
};
|
|
3202
3202
|
protoOf(AbstractJsonTreeDecoder).sr = function () {
|
|
3203
|
-
return this.
|
|
3203
|
+
return this.j2c().sr();
|
|
3204
3204
|
};
|
|
3205
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3205
|
+
protoOf(AbstractJsonTreeDecoder).p2i = function () {
|
|
3206
3206
|
var tmp0_safe_receiver = this.r14();
|
|
3207
3207
|
var tmp;
|
|
3208
3208
|
if (tmp0_safe_receiver == null) {
|
|
3209
3209
|
tmp = null;
|
|
3210
3210
|
} else {
|
|
3211
3211
|
// Inline function 'kotlin.let' call
|
|
3212
|
-
tmp = this.
|
|
3212
|
+
tmp = this.q2i(tmp0_safe_receiver);
|
|
3213
3213
|
}
|
|
3214
3214
|
var tmp1_elvis_lhs = tmp;
|
|
3215
3215
|
return tmp1_elvis_lhs == null ? this.m1() : tmp1_elvis_lhs;
|
|
3216
3216
|
};
|
|
3217
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3217
|
+
protoOf(AbstractJsonTreeDecoder).o2i = function (currentTag) {
|
|
3218
3218
|
return this.o15() + ('.' + currentTag);
|
|
3219
3219
|
};
|
|
3220
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3221
|
-
return this.
|
|
3220
|
+
protoOf(AbstractJsonTreeDecoder).k2c = function () {
|
|
3221
|
+
return this.p2i();
|
|
3222
3222
|
};
|
|
3223
3223
|
protoOf(AbstractJsonTreeDecoder).cr = function (deserializer) {
|
|
3224
3224
|
var tmp$ret$0;
|
|
@@ -3228,14 +3228,14 @@
|
|
|
3228
3228
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
3229
3229
|
tmp = true;
|
|
3230
3230
|
} else {
|
|
3231
|
-
tmp = this.
|
|
3231
|
+
tmp = this.j2c().d2a_1.a2c_1;
|
|
3232
3232
|
}
|
|
3233
3233
|
if (tmp) {
|
|
3234
3234
|
tmp$ret$0 = deserializer.io(this);
|
|
3235
3235
|
break $l$block;
|
|
3236
3236
|
}
|
|
3237
|
-
var discriminator = classDiscriminator(deserializer.go(), this.
|
|
3238
|
-
var tmp0 = this.
|
|
3237
|
+
var discriminator = classDiscriminator(deserializer.go(), this.j2c());
|
|
3238
|
+
var tmp0 = this.k2c();
|
|
3239
3239
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3240
3240
|
var serialName = deserializer.go().kp();
|
|
3241
3241
|
if (!(tmp0 instanceof JsonObject)) {
|
|
@@ -3262,7 +3262,7 @@
|
|
|
3262
3262
|
}
|
|
3263
3263
|
var tmp_4 = tmp_2;
|
|
3264
3264
|
var actualSerializer = isInterface(tmp_4, DeserializationStrategy) ? tmp_4 : THROW_CCE();
|
|
3265
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
3265
|
+
tmp$ret$0 = readPolymorphicJson(this.j2c(), discriminator, jsonTree, actualSerializer);
|
|
3266
3266
|
}
|
|
3267
3267
|
return tmp$ret$0;
|
|
3268
3268
|
};
|
|
@@ -3270,7 +3270,7 @@
|
|
|
3270
3270
|
return childName;
|
|
3271
3271
|
};
|
|
3272
3272
|
protoOf(AbstractJsonTreeDecoder).dr = function (descriptor) {
|
|
3273
|
-
var currentObject = this.
|
|
3273
|
+
var currentObject = this.p2i();
|
|
3274
3274
|
var tmp0_subject = descriptor.lp();
|
|
3275
3275
|
var tmp;
|
|
3276
3276
|
var tmp_0;
|
|
@@ -3280,7 +3280,7 @@
|
|
|
3280
3280
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
3281
3281
|
}
|
|
3282
3282
|
if (tmp_0) {
|
|
3283
|
-
var tmp_1 = this.
|
|
3283
|
+
var tmp_1 = this.j2c();
|
|
3284
3284
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3285
3285
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3286
3286
|
var serialName = descriptor.kp();
|
|
@@ -3294,7 +3294,7 @@
|
|
|
3294
3294
|
} else {
|
|
3295
3295
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
3296
3296
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
3297
|
-
var this_0 = this.
|
|
3297
|
+
var this_0 = this.j2c();
|
|
3298
3298
|
var keyDescriptor = carrierDescriptor(descriptor.sp(0), this_0.sr());
|
|
3299
3299
|
var keyKind = keyDescriptor.lp();
|
|
3300
3300
|
var tmp_4;
|
|
@@ -3305,7 +3305,7 @@
|
|
|
3305
3305
|
tmp_5 = equals(keyKind, ENUM_getInstance());
|
|
3306
3306
|
}
|
|
3307
3307
|
if (tmp_5) {
|
|
3308
|
-
var tmp_6 = this.
|
|
3308
|
+
var tmp_6 = this.j2c();
|
|
3309
3309
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3310
3310
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3311
3311
|
var serialName_0 = descriptor.kp();
|
|
@@ -3317,8 +3317,8 @@
|
|
|
3317
3317
|
}
|
|
3318
3318
|
tmp_4 = new JsonTreeMapDecoder(tmp_6, currentObject);
|
|
3319
3319
|
} else {
|
|
3320
|
-
if (this_0.
|
|
3321
|
-
var tmp_9 = this.
|
|
3320
|
+
if (this_0.d2a_1.v2b_1) {
|
|
3321
|
+
var tmp_9 = this.j2c();
|
|
3322
3322
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3323
3323
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3324
3324
|
var serialName_1 = descriptor.kp();
|
|
@@ -3335,7 +3335,7 @@
|
|
|
3335
3335
|
}
|
|
3336
3336
|
tmp = tmp_4;
|
|
3337
3337
|
} else {
|
|
3338
|
-
var tmp_12 = this.
|
|
3338
|
+
var tmp_12 = this.j2c();
|
|
3339
3339
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3340
3340
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3341
3341
|
var serialName_2 = descriptor.kp();
|
|
@@ -3345,7 +3345,7 @@
|
|
|
3345
3345
|
var tmp$ret$14 = this.o15();
|
|
3346
3346
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_13 + ', but had ' + tmp_14 + ' as the serialized body of ' + serialName_2 + ' at element: ' + tmp$ret$14, toString(currentObject));
|
|
3347
3347
|
}
|
|
3348
|
-
tmp = new JsonTreeDecoder(tmp_12, currentObject, this.
|
|
3348
|
+
tmp = new JsonTreeDecoder(tmp_12, currentObject, this.m2i_1);
|
|
3349
3349
|
}
|
|
3350
3350
|
}
|
|
3351
3351
|
return tmp;
|
|
@@ -3353,26 +3353,26 @@
|
|
|
3353
3353
|
protoOf(AbstractJsonTreeDecoder).er = function (descriptor) {
|
|
3354
3354
|
};
|
|
3355
3355
|
protoOf(AbstractJsonTreeDecoder).pq = function () {
|
|
3356
|
-
var tmp = this.
|
|
3356
|
+
var tmp = this.p2i();
|
|
3357
3357
|
return !(tmp instanceof JsonNull);
|
|
3358
3358
|
};
|
|
3359
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3360
|
-
return !(this.
|
|
3359
|
+
protoOf(AbstractJsonTreeDecoder).r2i = function (tag) {
|
|
3360
|
+
return !(this.q2i(tag) === JsonNull_getInstance());
|
|
3361
3361
|
};
|
|
3362
3362
|
protoOf(AbstractJsonTreeDecoder).q15 = function (tag) {
|
|
3363
|
-
return this.
|
|
3363
|
+
return this.r2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3364
3364
|
};
|
|
3365
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3365
|
+
protoOf(AbstractJsonTreeDecoder).s2i = function (tag) {
|
|
3366
3366
|
var tmp$ret$0;
|
|
3367
3367
|
$l$block: {
|
|
3368
3368
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3369
3369
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3370
3370
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3371
|
-
var value = this.
|
|
3371
|
+
var value = this.q2i(tag);
|
|
3372
3372
|
if (!(value instanceof JsonPrimitive)) {
|
|
3373
3373
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3374
3374
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3375
|
-
var tmp$ret$3 = this.
|
|
3375
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3376
3376
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'boolean' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3377
3377
|
}
|
|
3378
3378
|
var literal = value;
|
|
@@ -3398,19 +3398,19 @@
|
|
|
3398
3398
|
return tmp$ret$0;
|
|
3399
3399
|
};
|
|
3400
3400
|
protoOf(AbstractJsonTreeDecoder).r15 = function (tag) {
|
|
3401
|
-
return this.
|
|
3401
|
+
return this.s2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3402
3402
|
};
|
|
3403
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3403
|
+
protoOf(AbstractJsonTreeDecoder).t2i = function (tag) {
|
|
3404
3404
|
var tmp$ret$0;
|
|
3405
3405
|
$l$block: {
|
|
3406
3406
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3407
3407
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3408
3408
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3409
|
-
var value = this.
|
|
3409
|
+
var value = this.q2i(tag);
|
|
3410
3410
|
if (!(value instanceof JsonPrimitive)) {
|
|
3411
3411
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3412
3412
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3413
|
-
var tmp$ret$3 = this.
|
|
3413
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3414
3414
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'byte' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3415
3415
|
}
|
|
3416
3416
|
var literal = value;
|
|
@@ -3445,19 +3445,19 @@
|
|
|
3445
3445
|
return tmp$ret$0;
|
|
3446
3446
|
};
|
|
3447
3447
|
protoOf(AbstractJsonTreeDecoder).s15 = function (tag) {
|
|
3448
|
-
return this.
|
|
3448
|
+
return this.t2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3449
3449
|
};
|
|
3450
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3450
|
+
protoOf(AbstractJsonTreeDecoder).u2i = function (tag) {
|
|
3451
3451
|
var tmp$ret$0;
|
|
3452
3452
|
$l$block: {
|
|
3453
3453
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3454
3454
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3455
3455
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3456
|
-
var value = this.
|
|
3456
|
+
var value = this.q2i(tag);
|
|
3457
3457
|
if (!(value instanceof JsonPrimitive)) {
|
|
3458
3458
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3459
3459
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3460
|
-
var tmp$ret$3 = this.
|
|
3460
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3461
3461
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'short' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3462
3462
|
}
|
|
3463
3463
|
var literal = value;
|
|
@@ -3492,19 +3492,19 @@
|
|
|
3492
3492
|
return tmp$ret$0;
|
|
3493
3493
|
};
|
|
3494
3494
|
protoOf(AbstractJsonTreeDecoder).t15 = function (tag) {
|
|
3495
|
-
return this.
|
|
3495
|
+
return this.u2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3496
3496
|
};
|
|
3497
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3497
|
+
protoOf(AbstractJsonTreeDecoder).v2i = function (tag) {
|
|
3498
3498
|
var tmp$ret$0;
|
|
3499
3499
|
$l$block: {
|
|
3500
3500
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3501
3501
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3502
3502
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3503
|
-
var value = this.
|
|
3503
|
+
var value = this.q2i(tag);
|
|
3504
3504
|
if (!(value instanceof JsonPrimitive)) {
|
|
3505
3505
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3506
3506
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3507
|
-
var tmp$ret$3 = this.
|
|
3507
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3508
3508
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'int' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3509
3509
|
}
|
|
3510
3510
|
var literal = value;
|
|
@@ -3539,19 +3539,19 @@
|
|
|
3539
3539
|
return tmp$ret$0;
|
|
3540
3540
|
};
|
|
3541
3541
|
protoOf(AbstractJsonTreeDecoder).u15 = function (tag) {
|
|
3542
|
-
return this.
|
|
3542
|
+
return this.v2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3543
3543
|
};
|
|
3544
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3544
|
+
protoOf(AbstractJsonTreeDecoder).w2i = function (tag) {
|
|
3545
3545
|
var tmp$ret$0;
|
|
3546
3546
|
$l$block: {
|
|
3547
3547
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3548
3548
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3549
3549
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3550
|
-
var value = this.
|
|
3550
|
+
var value = this.q2i(tag);
|
|
3551
3551
|
if (!(value instanceof JsonPrimitive)) {
|
|
3552
3552
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3553
3553
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3554
|
-
var tmp$ret$3 = this.
|
|
3554
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3555
3555
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'long' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3556
3556
|
}
|
|
3557
3557
|
var literal = value;
|
|
@@ -3577,19 +3577,19 @@
|
|
|
3577
3577
|
return tmp$ret$0;
|
|
3578
3578
|
};
|
|
3579
3579
|
protoOf(AbstractJsonTreeDecoder).v15 = function (tag) {
|
|
3580
|
-
return this.
|
|
3580
|
+
return this.w2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3581
3581
|
};
|
|
3582
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3582
|
+
protoOf(AbstractJsonTreeDecoder).x2i = function (tag) {
|
|
3583
3583
|
var tmp$ret$0;
|
|
3584
3584
|
$l$block: {
|
|
3585
3585
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3586
3586
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3587
3587
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3588
|
-
var value = this.
|
|
3588
|
+
var value = this.q2i(tag);
|
|
3589
3589
|
if (!(value instanceof JsonPrimitive)) {
|
|
3590
3590
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3591
3591
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3592
|
-
var tmp$ret$3 = this.
|
|
3592
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3593
3593
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'float' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3594
3594
|
}
|
|
3595
3595
|
var literal = value;
|
|
@@ -3613,25 +3613,25 @@
|
|
|
3613
3613
|
}
|
|
3614
3614
|
}
|
|
3615
3615
|
var result = tmp$ret$0;
|
|
3616
|
-
var specialFp = this.
|
|
3616
|
+
var specialFp = this.j2c().d2a_1.c2c_1;
|
|
3617
3617
|
if (specialFp || isFinite(result))
|
|
3618
3618
|
return result;
|
|
3619
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
3619
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.p2i()));
|
|
3620
3620
|
};
|
|
3621
3621
|
protoOf(AbstractJsonTreeDecoder).w15 = function (tag) {
|
|
3622
|
-
return this.
|
|
3622
|
+
return this.x2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3623
3623
|
};
|
|
3624
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3624
|
+
protoOf(AbstractJsonTreeDecoder).y2i = function (tag) {
|
|
3625
3625
|
var tmp$ret$0;
|
|
3626
3626
|
$l$block: {
|
|
3627
3627
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3628
3628
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3629
3629
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3630
|
-
var value = this.
|
|
3630
|
+
var value = this.q2i(tag);
|
|
3631
3631
|
if (!(value instanceof JsonPrimitive)) {
|
|
3632
3632
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3633
3633
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3634
|
-
var tmp$ret$3 = this.
|
|
3634
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3635
3635
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'double' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3636
3636
|
}
|
|
3637
3637
|
var literal = value;
|
|
@@ -3655,30 +3655,30 @@
|
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
3657
|
var result = tmp$ret$0;
|
|
3658
|
-
var specialFp = this.
|
|
3658
|
+
var specialFp = this.j2c().d2a_1.c2c_1;
|
|
3659
3659
|
if (specialFp || isFinite_0(result))
|
|
3660
3660
|
return result;
|
|
3661
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
3661
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.p2i()));
|
|
3662
3662
|
};
|
|
3663
3663
|
protoOf(AbstractJsonTreeDecoder).x15 = function (tag) {
|
|
3664
|
-
return this.
|
|
3664
|
+
return this.y2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3665
3665
|
};
|
|
3666
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3666
|
+
protoOf(AbstractJsonTreeDecoder).z2i = function (tag) {
|
|
3667
3667
|
var tmp$ret$0;
|
|
3668
3668
|
$l$block: {
|
|
3669
3669
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3670
3670
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3671
3671
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3672
|
-
var value = this.
|
|
3672
|
+
var value = this.q2i(tag);
|
|
3673
3673
|
if (!(value instanceof JsonPrimitive)) {
|
|
3674
3674
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3675
3675
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3676
|
-
var tmp$ret$3 = this.
|
|
3676
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3677
3677
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'char' + ' at element: ' + tmp$ret$3, toString(value));
|
|
3678
3678
|
}
|
|
3679
3679
|
var literal = value;
|
|
3680
3680
|
try {
|
|
3681
|
-
var tmp0_elvis_lhs = new Char(single(literal.
|
|
3681
|
+
var tmp0_elvis_lhs = new Char(single(literal.p2c()));
|
|
3682
3682
|
var tmp_1;
|
|
3683
3683
|
if (tmp0_elvis_lhs == null) {
|
|
3684
3684
|
unparsedPrimitive(this, literal, 'char', tag);
|
|
@@ -3699,80 +3699,80 @@
|
|
|
3699
3699
|
return tmp$ret$0;
|
|
3700
3700
|
};
|
|
3701
3701
|
protoOf(AbstractJsonTreeDecoder).y15 = function (tag) {
|
|
3702
|
-
return this.
|
|
3702
|
+
return this.z2i((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3703
3703
|
};
|
|
3704
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3704
|
+
protoOf(AbstractJsonTreeDecoder).a2j = function (tag) {
|
|
3705
3705
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3706
3706
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3707
|
-
var value = this.
|
|
3707
|
+
var value = this.q2i(tag);
|
|
3708
3708
|
if (!(value instanceof JsonPrimitive)) {
|
|
3709
3709
|
var tmp = getKClass(JsonPrimitive).m();
|
|
3710
3710
|
var tmp_0 = getKClassFromExpression(value).m();
|
|
3711
|
-
var tmp$ret$2 = this.
|
|
3711
|
+
var tmp$ret$2 = this.o2i(tag);
|
|
3712
3712
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'string' + ' at element: ' + tmp$ret$2, toString(value));
|
|
3713
3713
|
}
|
|
3714
3714
|
var value_0 = value;
|
|
3715
3715
|
if (!(value_0 instanceof JsonLiteral))
|
|
3716
|
-
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.
|
|
3717
|
-
if (!value_0.
|
|
3718
|
-
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.
|
|
3716
|
+
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.o2i(tag), toString(this.p2i()));
|
|
3717
|
+
if (!value_0.s2c_1 && !this.j2c().d2a_1.u2b_1) {
|
|
3718
|
+
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.o2i(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.p2i()));
|
|
3719
3719
|
}
|
|
3720
|
-
return value_0.
|
|
3720
|
+
return value_0.u2c_1;
|
|
3721
3721
|
};
|
|
3722
3722
|
protoOf(AbstractJsonTreeDecoder).z15 = function (tag) {
|
|
3723
|
-
return this.
|
|
3723
|
+
return this.a2j((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3724
3724
|
};
|
|
3725
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3725
|
+
protoOf(AbstractJsonTreeDecoder).b2j = function (tag, inlineDescriptor) {
|
|
3726
3726
|
var tmp;
|
|
3727
3727
|
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
3728
|
-
var tmp_0 = this.
|
|
3728
|
+
var tmp_0 = this.j2c();
|
|
3729
3729
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3730
|
-
var tmp2 = this.
|
|
3730
|
+
var tmp2 = this.q2i(tag);
|
|
3731
3731
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3732
3732
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3733
3733
|
var serialName = inlineDescriptor.kp();
|
|
3734
3734
|
if (!(tmp2 instanceof JsonPrimitive)) {
|
|
3735
3735
|
var tmp_1 = getKClass(JsonPrimitive).m();
|
|
3736
3736
|
var tmp_2 = getKClassFromExpression(tmp2).m();
|
|
3737
|
-
var tmp$ret$3 = this.
|
|
3737
|
+
var tmp$ret$3 = this.o2i(tag);
|
|
3738
3738
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$3, toString(tmp2));
|
|
3739
3739
|
}
|
|
3740
|
-
var lexer = StringJsonLexer_0(tmp_0, tmp2.
|
|
3741
|
-
tmp = new JsonDecoderForUnsignedTypes(lexer, this.
|
|
3740
|
+
var lexer = StringJsonLexer_0(tmp_0, tmp2.p2c());
|
|
3741
|
+
tmp = new JsonDecoderForUnsignedTypes(lexer, this.j2c());
|
|
3742
3742
|
} else {
|
|
3743
3743
|
tmp = protoOf(NamedValueDecoder).a16.call(this, tag, inlineDescriptor);
|
|
3744
3744
|
}
|
|
3745
3745
|
return tmp;
|
|
3746
3746
|
};
|
|
3747
3747
|
protoOf(AbstractJsonTreeDecoder).a16 = function (tag, inlineDescriptor) {
|
|
3748
|
-
return this.
|
|
3748
|
+
return this.b2j((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
3749
3749
|
};
|
|
3750
3750
|
protoOf(AbstractJsonTreeDecoder).ar = function (descriptor) {
|
|
3751
|
-
return !(this.r14() == null) ? protoOf(NamedValueDecoder).ar.call(this, descriptor) : (new JsonPrimitiveDecoder(this.
|
|
3751
|
+
return !(this.r14() == null) ? protoOf(NamedValueDecoder).ar.call(this, descriptor) : (new JsonPrimitiveDecoder(this.j2c(), this.m1(), this.m2i_1)).ar(descriptor);
|
|
3752
3752
|
};
|
|
3753
3753
|
function setForceNull($this, descriptor, index) {
|
|
3754
|
-
$this.
|
|
3755
|
-
return $this.
|
|
3754
|
+
$this.l2j_1 = (!$this.j2c().d2a_1.x2b_1 && !descriptor.tp(index) && descriptor.sp(index).gp());
|
|
3755
|
+
return $this.l2j_1;
|
|
3756
3756
|
}
|
|
3757
3757
|
function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
3758
3758
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3759
3759
|
polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
|
|
3760
3760
|
AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
|
|
3761
|
-
this.
|
|
3762
|
-
this.
|
|
3763
|
-
this.
|
|
3764
|
-
this.
|
|
3761
|
+
this.i2j_1 = value;
|
|
3762
|
+
this.j2j_1 = polyDescriptor;
|
|
3763
|
+
this.k2j_1 = 0;
|
|
3764
|
+
this.l2j_1 = false;
|
|
3765
3765
|
}
|
|
3766
3766
|
protoOf(JsonTreeDecoder).m1 = function () {
|
|
3767
|
-
return this.
|
|
3767
|
+
return this.i2j_1;
|
|
3768
3768
|
};
|
|
3769
3769
|
protoOf(JsonTreeDecoder).ur = function (descriptor) {
|
|
3770
|
-
$l$loop: while (this.
|
|
3771
|
-
var _unary__edvuaz = this.
|
|
3772
|
-
this.
|
|
3770
|
+
$l$loop: while (this.k2j_1 < descriptor.np()) {
|
|
3771
|
+
var _unary__edvuaz = this.k2j_1;
|
|
3772
|
+
this.k2j_1 = _unary__edvuaz + 1 | 0;
|
|
3773
3773
|
var name = this.n14(descriptor, _unary__edvuaz);
|
|
3774
|
-
var index = this.
|
|
3775
|
-
this.
|
|
3774
|
+
var index = this.k2j_1 - 1 | 0;
|
|
3775
|
+
this.l2j_1 = false;
|
|
3776
3776
|
var tmp;
|
|
3777
3777
|
// Inline function 'kotlin.collections.contains' call
|
|
3778
3778
|
// Inline function 'kotlin.collections.containsKey' call
|
|
@@ -3783,9 +3783,9 @@
|
|
|
3783
3783
|
tmp = setForceNull(this, descriptor, index);
|
|
3784
3784
|
}
|
|
3785
3785
|
if (tmp) {
|
|
3786
|
-
if (!this.
|
|
3786
|
+
if (!this.n2i_1.z2b_1)
|
|
3787
3787
|
return index;
|
|
3788
|
-
var tmp0 = this.
|
|
3788
|
+
var tmp0 = this.j2c();
|
|
3789
3789
|
var tmp$ret$2;
|
|
3790
3790
|
$l$block_2: {
|
|
3791
3791
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -3793,7 +3793,7 @@
|
|
|
3793
3793
|
var elementDescriptor = descriptor.sp(index);
|
|
3794
3794
|
var tmp_0;
|
|
3795
3795
|
if (isOptional && !elementDescriptor.gp()) {
|
|
3796
|
-
var tmp_1 = this.
|
|
3796
|
+
var tmp_1 = this.m2j(name);
|
|
3797
3797
|
tmp_0 = tmp_1 instanceof JsonNull;
|
|
3798
3798
|
} else {
|
|
3799
3799
|
tmp_0 = false;
|
|
@@ -3805,7 +3805,7 @@
|
|
|
3805
3805
|
if (equals(elementDescriptor.lp(), ENUM_getInstance())) {
|
|
3806
3806
|
var tmp_2;
|
|
3807
3807
|
if (elementDescriptor.gp()) {
|
|
3808
|
-
var tmp_3 = this.
|
|
3808
|
+
var tmp_3 = this.m2j(name);
|
|
3809
3809
|
tmp_2 = tmp_3 instanceof JsonNull;
|
|
3810
3810
|
} else {
|
|
3811
3811
|
tmp_2 = false;
|
|
@@ -3814,7 +3814,7 @@
|
|
|
3814
3814
|
tmp$ret$2 = false;
|
|
3815
3815
|
break $l$block_2;
|
|
3816
3816
|
}
|
|
3817
|
-
var tmp_4 = this.
|
|
3817
|
+
var tmp_4 = this.m2j(name);
|
|
3818
3818
|
var tmp0_safe_receiver = tmp_4 instanceof JsonPrimitive ? tmp_4 : null;
|
|
3819
3819
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
|
|
3820
3820
|
var tmp_5;
|
|
@@ -3826,7 +3826,7 @@
|
|
|
3826
3826
|
}
|
|
3827
3827
|
var enumValue = tmp_5;
|
|
3828
3828
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
3829
|
-
var coerceToNull = !tmp0.
|
|
3829
|
+
var coerceToNull = !tmp0.d2a_1.x2b_1 && elementDescriptor.gp();
|
|
3830
3830
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
3831
3831
|
if (setForceNull(this, descriptor, index))
|
|
3832
3832
|
return index;
|
|
@@ -3844,18 +3844,18 @@
|
|
|
3844
3844
|
return -1;
|
|
3845
3845
|
};
|
|
3846
3846
|
protoOf(JsonTreeDecoder).pq = function () {
|
|
3847
|
-
return !this.
|
|
3847
|
+
return !this.l2j_1 && protoOf(AbstractJsonTreeDecoder).pq.call(this);
|
|
3848
3848
|
};
|
|
3849
3849
|
protoOf(JsonTreeDecoder).o14 = function (descriptor, index) {
|
|
3850
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3850
|
+
var strategy = namingStrategy(descriptor, this.j2c());
|
|
3851
3851
|
var baseName = descriptor.pp(index);
|
|
3852
3852
|
if (strategy == null) {
|
|
3853
|
-
if (!this.
|
|
3853
|
+
if (!this.n2i_1.d2c_1)
|
|
3854
3854
|
return baseName;
|
|
3855
3855
|
if (this.m1().n2().u1(baseName))
|
|
3856
3856
|
return baseName;
|
|
3857
3857
|
}
|
|
3858
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
3858
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.j2c(), descriptor);
|
|
3859
3859
|
// Inline function 'kotlin.collections.find' call
|
|
3860
3860
|
var tmp0 = this.m1().n2();
|
|
3861
3861
|
var tmp$ret$1;
|
|
@@ -3878,35 +3878,35 @@
|
|
|
3878
3878
|
// Inline function 'kotlin.let' call
|
|
3879
3879
|
return tmp0_safe_receiver;
|
|
3880
3880
|
}
|
|
3881
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
3881
|
+
var fallbackName = strategy == null ? null : strategy.d2f(descriptor, index, baseName);
|
|
3882
3882
|
return fallbackName == null ? baseName : fallbackName;
|
|
3883
3883
|
};
|
|
3884
|
-
protoOf(JsonTreeDecoder).
|
|
3884
|
+
protoOf(JsonTreeDecoder).q2i = function (tag) {
|
|
3885
3885
|
return getValue(this.m1(), tag);
|
|
3886
3886
|
};
|
|
3887
|
-
protoOf(JsonTreeDecoder).
|
|
3887
|
+
protoOf(JsonTreeDecoder).m2j = function (tag) {
|
|
3888
3888
|
return this.m1().rc(tag);
|
|
3889
3889
|
};
|
|
3890
3890
|
protoOf(JsonTreeDecoder).dr = function (descriptor) {
|
|
3891
|
-
if (descriptor === this.
|
|
3892
|
-
var tmp = this.
|
|
3893
|
-
var tmp2 = this.
|
|
3891
|
+
if (descriptor === this.j2j_1) {
|
|
3892
|
+
var tmp = this.j2c();
|
|
3893
|
+
var tmp2 = this.p2i();
|
|
3894
3894
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3895
3895
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3896
|
-
var serialName = this.
|
|
3896
|
+
var serialName = this.j2j_1.kp();
|
|
3897
3897
|
if (!(tmp2 instanceof JsonObject)) {
|
|
3898
3898
|
var tmp_0 = getKClass(JsonObject).m();
|
|
3899
3899
|
var tmp_1 = getKClassFromExpression(tmp2).m();
|
|
3900
3900
|
var tmp$ret$2 = this.o15();
|
|
3901
3901
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$2, toString(tmp2));
|
|
3902
3902
|
}
|
|
3903
|
-
return new JsonTreeDecoder(tmp, tmp2, this.
|
|
3903
|
+
return new JsonTreeDecoder(tmp, tmp2, this.m2i_1, this.j2j_1);
|
|
3904
3904
|
}
|
|
3905
3905
|
return protoOf(AbstractJsonTreeDecoder).dr.call(this, descriptor);
|
|
3906
3906
|
};
|
|
3907
3907
|
protoOf(JsonTreeDecoder).er = function (descriptor) {
|
|
3908
3908
|
var tmp;
|
|
3909
|
-
if (ignoreUnknownKeys(descriptor, this.
|
|
3909
|
+
if (ignoreUnknownKeys(descriptor, this.j2c())) {
|
|
3910
3910
|
tmp = true;
|
|
3911
3911
|
} else {
|
|
3912
3912
|
var tmp_0 = descriptor.lp();
|
|
@@ -3914,15 +3914,15 @@
|
|
|
3914
3914
|
}
|
|
3915
3915
|
if (tmp)
|
|
3916
3916
|
return Unit_instance;
|
|
3917
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3917
|
+
var strategy = namingStrategy(descriptor, this.j2c());
|
|
3918
3918
|
var tmp_1;
|
|
3919
|
-
if (strategy == null && !this.
|
|
3919
|
+
if (strategy == null && !this.n2i_1.d2c_1) {
|
|
3920
3920
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
3921
3921
|
} else if (!(strategy == null)) {
|
|
3922
|
-
tmp_1 = deserializationNamesMap(this.
|
|
3922
|
+
tmp_1 = deserializationNamesMap(this.j2c(), descriptor).n2();
|
|
3923
3923
|
} else {
|
|
3924
3924
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
3925
|
-
var tmp0_safe_receiver = get_schemaCache(this.
|
|
3925
|
+
var tmp0_safe_receiver = get_schemaCache(this.j2c()).o2h(descriptor, get_JsonDeserializationNamesKey());
|
|
3926
3926
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3927
3927
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2();
|
|
3928
3928
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -3932,76 +3932,76 @@
|
|
|
3932
3932
|
var _iterator__ex2g4s = this.m1().n2().r();
|
|
3933
3933
|
while (_iterator__ex2g4s.s()) {
|
|
3934
3934
|
var key = _iterator__ex2g4s.t();
|
|
3935
|
-
if (!names.u1(key) && !(key === this.
|
|
3935
|
+
if (!names.u1(key) && !(key === this.m2i_1)) {
|
|
3936
3936
|
throw JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "' at element: " + this.o15() + '\n' + "Use 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.m1().toString()))));
|
|
3937
3937
|
}
|
|
3938
3938
|
}
|
|
3939
3939
|
};
|
|
3940
3940
|
function JsonTreeListDecoder(json, value) {
|
|
3941
3941
|
AbstractJsonTreeDecoder.call(this, json, value);
|
|
3942
|
-
this.
|
|
3943
|
-
this.
|
|
3944
|
-
this.
|
|
3942
|
+
this.t2j_1 = value;
|
|
3943
|
+
this.u2j_1 = this.t2j_1.d1();
|
|
3944
|
+
this.v2j_1 = -1;
|
|
3945
3945
|
}
|
|
3946
3946
|
protoOf(JsonTreeListDecoder).m1 = function () {
|
|
3947
|
-
return this.
|
|
3947
|
+
return this.t2j_1;
|
|
3948
3948
|
};
|
|
3949
3949
|
protoOf(JsonTreeListDecoder).o14 = function (descriptor, index) {
|
|
3950
3950
|
return index.toString();
|
|
3951
3951
|
};
|
|
3952
|
-
protoOf(JsonTreeListDecoder).
|
|
3953
|
-
return this.
|
|
3952
|
+
protoOf(JsonTreeListDecoder).q2i = function (tag) {
|
|
3953
|
+
return this.t2j_1.c1(toInt(tag));
|
|
3954
3954
|
};
|
|
3955
3955
|
protoOf(JsonTreeListDecoder).ur = function (descriptor) {
|
|
3956
|
-
while (this.
|
|
3957
|
-
this.
|
|
3958
|
-
return this.
|
|
3956
|
+
while (this.v2j_1 < (this.u2j_1 - 1 | 0)) {
|
|
3957
|
+
this.v2j_1 = this.v2j_1 + 1 | 0;
|
|
3958
|
+
return this.v2j_1;
|
|
3959
3959
|
}
|
|
3960
3960
|
return -1;
|
|
3961
3961
|
};
|
|
3962
3962
|
function JsonPrimitiveDecoder(json, value, polymorphicDiscriminator) {
|
|
3963
3963
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3964
3964
|
AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
|
|
3965
|
-
this.
|
|
3965
|
+
this.c2k_1 = value;
|
|
3966
3966
|
this.i15('primitive');
|
|
3967
3967
|
}
|
|
3968
3968
|
protoOf(JsonPrimitiveDecoder).m1 = function () {
|
|
3969
|
-
return this.
|
|
3969
|
+
return this.c2k_1;
|
|
3970
3970
|
};
|
|
3971
3971
|
protoOf(JsonPrimitiveDecoder).ur = function (descriptor) {
|
|
3972
3972
|
return 0;
|
|
3973
3973
|
};
|
|
3974
|
-
protoOf(JsonPrimitiveDecoder).
|
|
3974
|
+
protoOf(JsonPrimitiveDecoder).q2i = function (tag) {
|
|
3975
3975
|
// Inline function 'kotlin.require' call
|
|
3976
3976
|
if (!(tag === 'primitive')) {
|
|
3977
3977
|
var message = "This input can only handle primitives with 'primitive' tag";
|
|
3978
3978
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3979
3979
|
}
|
|
3980
|
-
return this.
|
|
3980
|
+
return this.c2k_1;
|
|
3981
3981
|
};
|
|
3982
3982
|
function JsonTreeMapDecoder(json, value) {
|
|
3983
3983
|
JsonTreeDecoder.call(this, json, value);
|
|
3984
|
-
this.
|
|
3985
|
-
this.
|
|
3986
|
-
this.
|
|
3987
|
-
this.
|
|
3984
|
+
this.n2k_1 = value;
|
|
3985
|
+
this.o2k_1 = toList(this.n2k_1.n2());
|
|
3986
|
+
this.p2k_1 = imul(this.o2k_1.d1(), 2);
|
|
3987
|
+
this.q2k_1 = -1;
|
|
3988
3988
|
}
|
|
3989
3989
|
protoOf(JsonTreeMapDecoder).m1 = function () {
|
|
3990
|
-
return this.
|
|
3990
|
+
return this.n2k_1;
|
|
3991
3991
|
};
|
|
3992
3992
|
protoOf(JsonTreeMapDecoder).o14 = function (descriptor, index) {
|
|
3993
3993
|
var i = index / 2 | 0;
|
|
3994
|
-
return this.
|
|
3994
|
+
return this.o2k_1.c1(i);
|
|
3995
3995
|
};
|
|
3996
3996
|
protoOf(JsonTreeMapDecoder).ur = function (descriptor) {
|
|
3997
|
-
while (this.
|
|
3998
|
-
this.
|
|
3999
|
-
return this.
|
|
3997
|
+
while (this.q2k_1 < (this.p2k_1 - 1 | 0)) {
|
|
3998
|
+
this.q2k_1 = this.q2k_1 + 1 | 0;
|
|
3999
|
+
return this.q2k_1;
|
|
4000
4000
|
}
|
|
4001
4001
|
return -1;
|
|
4002
4002
|
};
|
|
4003
|
-
protoOf(JsonTreeMapDecoder).
|
|
4004
|
-
return (this.
|
|
4003
|
+
protoOf(JsonTreeMapDecoder).q2i = function (tag) {
|
|
4004
|
+
return (this.q2k_1 % 2 | 0) === 0 ? JsonPrimitive_2(tag) : getValue(this.n2k_1, tag);
|
|
4005
4005
|
};
|
|
4006
4006
|
protoOf(JsonTreeMapDecoder).er = function (descriptor) {
|
|
4007
4007
|
};
|
|
@@ -4024,19 +4024,19 @@
|
|
|
4024
4024
|
AbstractJsonTreeEncoder.call(this, json, nodeConsumer);
|
|
4025
4025
|
var tmp = this;
|
|
4026
4026
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
4027
|
-
tmp.
|
|
4027
|
+
tmp.d2l_1 = LinkedHashMap_init_$Create$();
|
|
4028
4028
|
}
|
|
4029
|
-
protoOf(JsonTreeEncoder).
|
|
4029
|
+
protoOf(JsonTreeEncoder).e2l = function (key, element) {
|
|
4030
4030
|
// Inline function 'kotlin.collections.set' call
|
|
4031
|
-
this.
|
|
4031
|
+
this.d2l_1.p2(key, element);
|
|
4032
4032
|
};
|
|
4033
4033
|
protoOf(JsonTreeEncoder).vs = function (descriptor, index, serializer, value) {
|
|
4034
|
-
if (!(value == null) || this.
|
|
4034
|
+
if (!(value == null) || this.u2k_1.x2b_1) {
|
|
4035
4035
|
protoOf(AbstractJsonTreeEncoder).vs.call(this, descriptor, index, serializer, value);
|
|
4036
4036
|
}
|
|
4037
4037
|
};
|
|
4038
|
-
protoOf(JsonTreeEncoder).
|
|
4039
|
-
return new JsonObject(this.
|
|
4038
|
+
protoOf(JsonTreeEncoder).f2l = function () {
|
|
4039
|
+
return new JsonObject(this.d2l_1);
|
|
4040
4040
|
};
|
|
4041
4041
|
function inlineUnsignedNumberEncoder($this, tag) {
|
|
4042
4042
|
return new AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1($this, tag);
|
|
@@ -4045,74 +4045,74 @@
|
|
|
4045
4045
|
return new AbstractJsonTreeEncoder$inlineUnquotedLiteralEncoder$1($this, tag, inlineDescriptor);
|
|
4046
4046
|
}
|
|
4047
4047
|
function AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1(this$0, $tag) {
|
|
4048
|
-
this.
|
|
4049
|
-
this.
|
|
4048
|
+
this.t2l_1 = this$0;
|
|
4049
|
+
this.u2l_1 = $tag;
|
|
4050
4050
|
AbstractEncoder.call(this);
|
|
4051
|
-
this.
|
|
4051
|
+
this.s2l_1 = this$0.s2k_1.sr();
|
|
4052
4052
|
}
|
|
4053
4053
|
protoOf(AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1).sr = function () {
|
|
4054
|
-
return this.
|
|
4054
|
+
return this.s2l_1;
|
|
4055
4055
|
};
|
|
4056
|
-
protoOf(AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1).
|
|
4057
|
-
return this.
|
|
4056
|
+
protoOf(AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1).v2l = function (s) {
|
|
4057
|
+
return this.t2l_1.e2l(this.u2l_1, new JsonLiteral(s, false));
|
|
4058
4058
|
};
|
|
4059
4059
|
protoOf(AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1).cs = function (value) {
|
|
4060
4060
|
// Inline function 'kotlin.toUInt' call
|
|
4061
4061
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(value);
|
|
4062
|
-
return this.
|
|
4062
|
+
return this.v2l(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
4063
4063
|
};
|
|
4064
4064
|
protoOf(AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1).ds = function (value) {
|
|
4065
4065
|
// Inline function 'kotlin.toULong' call
|
|
4066
4066
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(value);
|
|
4067
|
-
return this.
|
|
4067
|
+
return this.v2l(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
4068
4068
|
};
|
|
4069
4069
|
protoOf(AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1).as = function (value) {
|
|
4070
4070
|
// Inline function 'kotlin.toUByte' call
|
|
4071
4071
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(value);
|
|
4072
|
-
return this.
|
|
4072
|
+
return this.v2l(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
4073
4073
|
};
|
|
4074
4074
|
protoOf(AbstractJsonTreeEncoder$inlineUnsignedNumberEncoder$1).bs = function (value) {
|
|
4075
4075
|
// Inline function 'kotlin.toUShort' call
|
|
4076
4076
|
var tmp$ret$0 = _UShort___init__impl__jigrne(value);
|
|
4077
|
-
return this.
|
|
4077
|
+
return this.v2l(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
4078
4078
|
};
|
|
4079
4079
|
function AbstractJsonTreeEncoder$inlineUnquotedLiteralEncoder$1(this$0, $tag, $inlineDescriptor) {
|
|
4080
|
-
this.
|
|
4081
|
-
this.
|
|
4082
|
-
this.
|
|
4080
|
+
this.w2l_1 = this$0;
|
|
4081
|
+
this.x2l_1 = $tag;
|
|
4082
|
+
this.y2l_1 = $inlineDescriptor;
|
|
4083
4083
|
AbstractEncoder.call(this);
|
|
4084
4084
|
}
|
|
4085
4085
|
protoOf(AbstractJsonTreeEncoder$inlineUnquotedLiteralEncoder$1).sr = function () {
|
|
4086
|
-
return this.
|
|
4086
|
+
return this.w2l_1.s2k_1.sr();
|
|
4087
4087
|
};
|
|
4088
4088
|
protoOf(AbstractJsonTreeEncoder$inlineUnquotedLiteralEncoder$1).hs = function (value) {
|
|
4089
|
-
return this.
|
|
4089
|
+
return this.w2l_1.e2l(this.x2l_1, new JsonLiteral(value, false, this.y2l_1));
|
|
4090
4090
|
};
|
|
4091
4091
|
function AbstractJsonTreeEncoder$beginStructure$lambda(this$0) {
|
|
4092
4092
|
return function (node) {
|
|
4093
|
-
this$0.
|
|
4093
|
+
this$0.e2l(this$0.h15(), node);
|
|
4094
4094
|
return Unit_instance;
|
|
4095
4095
|
};
|
|
4096
4096
|
}
|
|
4097
4097
|
function AbstractJsonTreeEncoder(json, nodeConsumer) {
|
|
4098
4098
|
NamedValueEncoder.call(this);
|
|
4099
|
-
this.
|
|
4100
|
-
this.
|
|
4101
|
-
this.
|
|
4102
|
-
this.u2k_1 = null;
|
|
4099
|
+
this.s2k_1 = json;
|
|
4100
|
+
this.t2k_1 = nodeConsumer;
|
|
4101
|
+
this.u2k_1 = this.s2k_1.d2a_1;
|
|
4103
4102
|
this.v2k_1 = null;
|
|
4103
|
+
this.w2k_1 = null;
|
|
4104
4104
|
}
|
|
4105
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4106
|
-
return this.
|
|
4105
|
+
protoOf(AbstractJsonTreeEncoder).j2c = function () {
|
|
4106
|
+
return this.s2k_1;
|
|
4107
4107
|
};
|
|
4108
4108
|
protoOf(AbstractJsonTreeEncoder).sr = function () {
|
|
4109
|
-
return this.
|
|
4109
|
+
return this.s2k_1.sr();
|
|
4110
4110
|
};
|
|
4111
4111
|
protoOf(AbstractJsonTreeEncoder).o14 = function (descriptor, index) {
|
|
4112
|
-
return getJsonElementName(descriptor, this.
|
|
4112
|
+
return getJsonElementName(descriptor, this.s2k_1, index);
|
|
4113
4113
|
};
|
|
4114
4114
|
protoOf(AbstractJsonTreeEncoder).zs = function (descriptor, index) {
|
|
4115
|
-
return this.
|
|
4115
|
+
return this.u2k_1.s2b_1;
|
|
4116
4116
|
};
|
|
4117
4117
|
protoOf(AbstractJsonTreeEncoder).s14 = function (parentName, childName) {
|
|
4118
4118
|
return childName;
|
|
@@ -4123,67 +4123,67 @@
|
|
|
4123
4123
|
var tmp0_elvis_lhs = this.r14();
|
|
4124
4124
|
var tmp;
|
|
4125
4125
|
if (tmp0_elvis_lhs == null) {
|
|
4126
|
-
return this.
|
|
4126
|
+
return this.t2k_1(JsonNull_getInstance());
|
|
4127
4127
|
} else {
|
|
4128
4128
|
tmp = tmp0_elvis_lhs;
|
|
4129
4129
|
}
|
|
4130
4130
|
var tag = tmp;
|
|
4131
|
-
this.
|
|
4131
|
+
this.g2l(tag);
|
|
4132
4132
|
};
|
|
4133
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4134
|
-
return this.
|
|
4133
|
+
protoOf(AbstractJsonTreeEncoder).g2l = function (tag) {
|
|
4134
|
+
return this.e2l(tag, JsonNull_getInstance());
|
|
4135
4135
|
};
|
|
4136
4136
|
protoOf(AbstractJsonTreeEncoder).v14 = function (tag) {
|
|
4137
|
-
return this.
|
|
4138
|
-
};
|
|
4139
|
-
protoOf(AbstractJsonTreeEncoder).g2l = function (tag, value) {
|
|
4140
|
-
return this.d2l(tag, JsonPrimitive_0(value));
|
|
4141
|
-
};
|
|
4142
|
-
protoOf(AbstractJsonTreeEncoder).w14 = function (tag, value) {
|
|
4143
|
-
return this.g2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4137
|
+
return this.g2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
4144
4138
|
};
|
|
4145
4139
|
protoOf(AbstractJsonTreeEncoder).h2l = function (tag, value) {
|
|
4146
|
-
return this.
|
|
4140
|
+
return this.e2l(tag, JsonPrimitive_0(value));
|
|
4147
4141
|
};
|
|
4148
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4142
|
+
protoOf(AbstractJsonTreeEncoder).w14 = function (tag, value) {
|
|
4149
4143
|
return this.h2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4150
4144
|
};
|
|
4151
4145
|
protoOf(AbstractJsonTreeEncoder).i2l = function (tag, value) {
|
|
4152
|
-
return this.
|
|
4146
|
+
return this.e2l(tag, JsonPrimitive_0(value));
|
|
4153
4147
|
};
|
|
4154
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4148
|
+
protoOf(AbstractJsonTreeEncoder).x14 = function (tag, value) {
|
|
4155
4149
|
return this.i2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4156
4150
|
};
|
|
4157
4151
|
protoOf(AbstractJsonTreeEncoder).j2l = function (tag, value) {
|
|
4158
|
-
return this.
|
|
4152
|
+
return this.e2l(tag, JsonPrimitive_0(value));
|
|
4159
4153
|
};
|
|
4160
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4154
|
+
protoOf(AbstractJsonTreeEncoder).y14 = function (tag, value) {
|
|
4161
4155
|
return this.j2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4162
4156
|
};
|
|
4163
4157
|
protoOf(AbstractJsonTreeEncoder).k2l = function (tag, value) {
|
|
4164
|
-
this.
|
|
4165
|
-
|
|
4166
|
-
|
|
4158
|
+
return this.e2l(tag, JsonPrimitive_0(value));
|
|
4159
|
+
};
|
|
4160
|
+
protoOf(AbstractJsonTreeEncoder).z14 = function (tag, value) {
|
|
4161
|
+
return this.k2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4162
|
+
};
|
|
4163
|
+
protoOf(AbstractJsonTreeEncoder).l2l = function (tag, value) {
|
|
4164
|
+
this.e2l(tag, JsonPrimitive_0(value));
|
|
4165
|
+
if (!this.u2k_1.c2c_1 && !isFinite(value)) {
|
|
4166
|
+
throw InvalidFloatingPointEncoded(value, tag, toString(this.f2l()));
|
|
4167
4167
|
}
|
|
4168
4168
|
};
|
|
4169
4169
|
protoOf(AbstractJsonTreeEncoder).a15 = function (tag, value) {
|
|
4170
|
-
return this.
|
|
4170
|
+
return this.l2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4171
4171
|
};
|
|
4172
4172
|
protoOf(AbstractJsonTreeEncoder).us = function (serializer, value) {
|
|
4173
4173
|
if (!(this.r14() == null) || !get_requiresTopLevelTag(carrierDescriptor(serializer.go(), this.sr()))) {
|
|
4174
4174
|
$l$block: {
|
|
4175
4175
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
4176
|
-
if (this.
|
|
4176
|
+
if (this.j2c().d2a_1.a2c_1) {
|
|
4177
4177
|
serializer.ho(this, value);
|
|
4178
4178
|
break $l$block;
|
|
4179
4179
|
}
|
|
4180
4180
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
4181
4181
|
var tmp;
|
|
4182
4182
|
if (isPolymorphicSerializer) {
|
|
4183
|
-
tmp = !this.
|
|
4183
|
+
tmp = !this.j2c().d2a_1.i2c_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
4184
4184
|
} else {
|
|
4185
4185
|
var tmp_0;
|
|
4186
|
-
switch (this.
|
|
4186
|
+
switch (this.j2c().d2a_1.i2c_1.y2_1) {
|
|
4187
4187
|
case 0:
|
|
4188
4188
|
case 2:
|
|
4189
4189
|
tmp_0 = false;
|
|
@@ -4201,7 +4201,7 @@
|
|
|
4201
4201
|
tmp = tmp_0;
|
|
4202
4202
|
}
|
|
4203
4203
|
var needDiscriminator = tmp;
|
|
4204
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.go(), this.
|
|
4204
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.go(), this.j2c()) : null;
|
|
4205
4205
|
var tmp_1;
|
|
4206
4206
|
if (isPolymorphicSerializer) {
|
|
4207
4207
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
@@ -4226,70 +4226,70 @@
|
|
|
4226
4226
|
var actualSerializer = tmp_1;
|
|
4227
4227
|
if (!(baseClassDiscriminator == null)) {
|
|
4228
4228
|
var serialName = actualSerializer.go().kp();
|
|
4229
|
-
this.
|
|
4230
|
-
this.
|
|
4229
|
+
this.v2k_1 = baseClassDiscriminator;
|
|
4230
|
+
this.w2k_1 = serialName;
|
|
4231
4231
|
}
|
|
4232
4232
|
actualSerializer.ho(this, value);
|
|
4233
4233
|
}
|
|
4234
4234
|
} else {
|
|
4235
4235
|
// Inline function 'kotlin.apply' call
|
|
4236
|
-
(new JsonPrimitiveEncoder(this.
|
|
4236
|
+
(new JsonPrimitiveEncoder(this.s2k_1, this.t2k_1)).us(serializer, value);
|
|
4237
4237
|
}
|
|
4238
4238
|
};
|
|
4239
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4240
|
-
this.
|
|
4241
|
-
if (!this.
|
|
4242
|
-
throw InvalidFloatingPointEncoded(value, tag, toString(this.
|
|
4239
|
+
protoOf(AbstractJsonTreeEncoder).m2l = function (tag, value) {
|
|
4240
|
+
this.e2l(tag, JsonPrimitive_0(value));
|
|
4241
|
+
if (!this.u2k_1.c2c_1 && !isFinite_0(value)) {
|
|
4242
|
+
throw InvalidFloatingPointEncoded(value, tag, toString(this.f2l()));
|
|
4243
4243
|
}
|
|
4244
4244
|
};
|
|
4245
4245
|
protoOf(AbstractJsonTreeEncoder).b15 = function (tag, value) {
|
|
4246
|
-
return this.l2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4247
|
-
};
|
|
4248
|
-
protoOf(AbstractJsonTreeEncoder).m2l = function (tag, value) {
|
|
4249
|
-
return this.d2l(tag, JsonPrimitive_1(value));
|
|
4250
|
-
};
|
|
4251
|
-
protoOf(AbstractJsonTreeEncoder).c15 = function (tag, value) {
|
|
4252
4246
|
return this.m2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4253
4247
|
};
|
|
4254
4248
|
protoOf(AbstractJsonTreeEncoder).n2l = function (tag, value) {
|
|
4255
|
-
return this.
|
|
4249
|
+
return this.e2l(tag, JsonPrimitive_1(value));
|
|
4256
4250
|
};
|
|
4257
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4251
|
+
protoOf(AbstractJsonTreeEncoder).c15 = function (tag, value) {
|
|
4258
4252
|
return this.n2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4259
4253
|
};
|
|
4260
4254
|
protoOf(AbstractJsonTreeEncoder).o2l = function (tag, value) {
|
|
4261
|
-
return this.
|
|
4255
|
+
return this.e2l(tag, JsonPrimitive_2(toString_1(value)));
|
|
4262
4256
|
};
|
|
4263
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4257
|
+
protoOf(AbstractJsonTreeEncoder).d15 = function (tag, value) {
|
|
4264
4258
|
return this.o2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4265
4259
|
};
|
|
4266
4260
|
protoOf(AbstractJsonTreeEncoder).p2l = function (tag, value) {
|
|
4267
|
-
this.
|
|
4261
|
+
return this.e2l(tag, JsonPrimitive_2(value));
|
|
4268
4262
|
};
|
|
4269
|
-
protoOf(AbstractJsonTreeEncoder).
|
|
4263
|
+
protoOf(AbstractJsonTreeEncoder).e15 = function (tag, value) {
|
|
4270
4264
|
return this.p2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4271
4265
|
};
|
|
4272
|
-
protoOf(AbstractJsonTreeEncoder).q2l = function (tag,
|
|
4266
|
+
protoOf(AbstractJsonTreeEncoder).q2l = function (tag, value) {
|
|
4267
|
+
this.e2l(tag, JsonPrimitive_2(toString(value)));
|
|
4268
|
+
};
|
|
4269
|
+
protoOf(AbstractJsonTreeEncoder).t14 = function (tag, value) {
|
|
4270
|
+
return this.q2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
|
|
4271
|
+
};
|
|
4272
|
+
protoOf(AbstractJsonTreeEncoder).r2l = function (tag, inlineDescriptor) {
|
|
4273
4273
|
return get_isUnsignedNumber(inlineDescriptor) ? inlineUnsignedNumberEncoder(this, tag) : get_isUnquotedLiteral(inlineDescriptor) ? inlineUnquotedLiteralEncoder(this, tag, inlineDescriptor) : protoOf(NamedValueEncoder).f15.call(this, tag, inlineDescriptor);
|
|
4274
4274
|
};
|
|
4275
4275
|
protoOf(AbstractJsonTreeEncoder).f15 = function (tag, inlineDescriptor) {
|
|
4276
|
-
return this.
|
|
4276
|
+
return this.r2l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
4277
4277
|
};
|
|
4278
4278
|
protoOf(AbstractJsonTreeEncoder).is = function (descriptor) {
|
|
4279
4279
|
var tmp;
|
|
4280
4280
|
if (!(this.r14() == null)) {
|
|
4281
|
-
if (!(this.
|
|
4282
|
-
this.
|
|
4281
|
+
if (!(this.v2k_1 == null))
|
|
4282
|
+
this.w2k_1 = descriptor.kp();
|
|
4283
4283
|
tmp = protoOf(NamedValueEncoder).is.call(this, descriptor);
|
|
4284
4284
|
} else {
|
|
4285
|
-
tmp = (new JsonPrimitiveEncoder(this.
|
|
4285
|
+
tmp = (new JsonPrimitiveEncoder(this.s2k_1, this.t2k_1)).is(descriptor);
|
|
4286
4286
|
}
|
|
4287
4287
|
return tmp;
|
|
4288
4288
|
};
|
|
4289
4289
|
protoOf(AbstractJsonTreeEncoder).dr = function (descriptor) {
|
|
4290
4290
|
var tmp;
|
|
4291
4291
|
if (this.r14() == null) {
|
|
4292
|
-
tmp = this.
|
|
4292
|
+
tmp = this.t2k_1;
|
|
4293
4293
|
} else {
|
|
4294
4294
|
tmp = AbstractJsonTreeEncoder$beginStructure$lambda(this);
|
|
4295
4295
|
}
|
|
@@ -4303,11 +4303,11 @@
|
|
|
4303
4303
|
tmp_1 = tmp0_subject instanceof PolymorphicKind;
|
|
4304
4304
|
}
|
|
4305
4305
|
if (tmp_1) {
|
|
4306
|
-
tmp_0 = new JsonTreeListEncoder(this.
|
|
4306
|
+
tmp_0 = new JsonTreeListEncoder(this.s2k_1, consumer);
|
|
4307
4307
|
} else {
|
|
4308
4308
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
4309
4309
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
4310
|
-
var this_0 = this.
|
|
4310
|
+
var this_0 = this.s2k_1;
|
|
4311
4311
|
var keyDescriptor = carrierDescriptor(descriptor.sp(0), this_0.sr());
|
|
4312
4312
|
var keyKind = keyDescriptor.lp();
|
|
4313
4313
|
var tmp_2;
|
|
@@ -4318,37 +4318,37 @@
|
|
|
4318
4318
|
tmp_3 = equals(keyKind, ENUM_getInstance());
|
|
4319
4319
|
}
|
|
4320
4320
|
if (tmp_3) {
|
|
4321
|
-
tmp_2 = new JsonTreeMapEncoder(this.
|
|
4321
|
+
tmp_2 = new JsonTreeMapEncoder(this.s2k_1, consumer);
|
|
4322
4322
|
} else {
|
|
4323
|
-
if (this_0.
|
|
4324
|
-
tmp_2 = new JsonTreeListEncoder(this.
|
|
4323
|
+
if (this_0.d2a_1.v2b_1) {
|
|
4324
|
+
tmp_2 = new JsonTreeListEncoder(this.s2k_1, consumer);
|
|
4325
4325
|
} else {
|
|
4326
4326
|
throw InvalidKeyKindException(keyDescriptor);
|
|
4327
4327
|
}
|
|
4328
4328
|
}
|
|
4329
4329
|
tmp_0 = tmp_2;
|
|
4330
4330
|
} else {
|
|
4331
|
-
tmp_0 = new JsonTreeEncoder(this.
|
|
4331
|
+
tmp_0 = new JsonTreeEncoder(this.s2k_1, consumer);
|
|
4332
4332
|
}
|
|
4333
4333
|
}
|
|
4334
4334
|
var encoder = tmp_0;
|
|
4335
|
-
var discriminator = this.
|
|
4335
|
+
var discriminator = this.v2k_1;
|
|
4336
4336
|
if (!(discriminator == null)) {
|
|
4337
4337
|
if (encoder instanceof JsonTreeMapEncoder) {
|
|
4338
|
-
encoder.
|
|
4339
|
-
var tmp1_elvis_lhs = this.
|
|
4340
|
-
encoder.
|
|
4338
|
+
encoder.e2l('key', JsonPrimitive_2(discriminator));
|
|
4339
|
+
var tmp1_elvis_lhs = this.w2k_1;
|
|
4340
|
+
encoder.e2l('value', JsonPrimitive_2(tmp1_elvis_lhs == null ? descriptor.kp() : tmp1_elvis_lhs));
|
|
4341
4341
|
} else {
|
|
4342
|
-
var tmp2_elvis_lhs = this.
|
|
4343
|
-
encoder.
|
|
4342
|
+
var tmp2_elvis_lhs = this.w2k_1;
|
|
4343
|
+
encoder.e2l(discriminator, JsonPrimitive_2(tmp2_elvis_lhs == null ? descriptor.kp() : tmp2_elvis_lhs));
|
|
4344
4344
|
}
|
|
4345
|
-
this.u2k_1 = null;
|
|
4346
4345
|
this.v2k_1 = null;
|
|
4346
|
+
this.w2k_1 = null;
|
|
4347
4347
|
}
|
|
4348
4348
|
return encoder;
|
|
4349
4349
|
};
|
|
4350
4350
|
protoOf(AbstractJsonTreeEncoder).g15 = function (descriptor) {
|
|
4351
|
-
this.
|
|
4351
|
+
this.t2k_1(this.f2l());
|
|
4352
4352
|
};
|
|
4353
4353
|
function get_requiresTopLevelTag(_this__u8e3s4) {
|
|
4354
4354
|
var tmp;
|
|
@@ -4362,25 +4362,25 @@
|
|
|
4362
4362
|
}
|
|
4363
4363
|
function JsonPrimitiveEncoder(json, nodeConsumer) {
|
|
4364
4364
|
AbstractJsonTreeEncoder.call(this, json, nodeConsumer);
|
|
4365
|
-
this.
|
|
4365
|
+
this.o2m_1 = null;
|
|
4366
4366
|
this.i15('primitive');
|
|
4367
4367
|
}
|
|
4368
|
-
protoOf(JsonPrimitiveEncoder).
|
|
4368
|
+
protoOf(JsonPrimitiveEncoder).e2l = function (key, element) {
|
|
4369
4369
|
// Inline function 'kotlin.require' call
|
|
4370
4370
|
if (!(key === 'primitive')) {
|
|
4371
4371
|
var message = "This output can only consume primitives with 'primitive' tag";
|
|
4372
4372
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4373
4373
|
}
|
|
4374
4374
|
// Inline function 'kotlin.require' call
|
|
4375
|
-
if (!(this.
|
|
4375
|
+
if (!(this.o2m_1 == null)) {
|
|
4376
4376
|
var message_0 = 'Primitive element was already recorded. Does call to .encodeXxx happen more than once?';
|
|
4377
4377
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
4378
4378
|
}
|
|
4379
|
-
this.
|
|
4380
|
-
this.
|
|
4379
|
+
this.o2m_1 = element;
|
|
4380
|
+
this.t2k_1(element);
|
|
4381
4381
|
};
|
|
4382
|
-
protoOf(JsonPrimitiveEncoder).
|
|
4383
|
-
var tmp0 = this.
|
|
4382
|
+
protoOf(JsonPrimitiveEncoder).f2l = function () {
|
|
4383
|
+
var tmp0 = this.o2m_1;
|
|
4384
4384
|
var tmp$ret$0;
|
|
4385
4385
|
$l$block: {
|
|
4386
4386
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -4398,20 +4398,20 @@
|
|
|
4398
4398
|
AbstractJsonTreeEncoder.call(this, json, nodeConsumer);
|
|
4399
4399
|
var tmp = this;
|
|
4400
4400
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
4401
|
-
tmp.
|
|
4401
|
+
tmp.v2m_1 = ArrayList_init_$Create$();
|
|
4402
4402
|
}
|
|
4403
4403
|
protoOf(JsonTreeListEncoder).o14 = function (descriptor, index) {
|
|
4404
4404
|
return index.toString();
|
|
4405
4405
|
};
|
|
4406
|
-
protoOf(JsonTreeListEncoder).
|
|
4406
|
+
protoOf(JsonTreeListEncoder).e2l = function (key, element) {
|
|
4407
4407
|
var idx = toInt(key);
|
|
4408
|
-
this.
|
|
4408
|
+
this.v2m_1.u2(idx, element);
|
|
4409
4409
|
};
|
|
4410
|
-
protoOf(JsonTreeListEncoder).
|
|
4411
|
-
return new JsonArray(this.
|
|
4410
|
+
protoOf(JsonTreeListEncoder).f2l = function () {
|
|
4411
|
+
return new JsonArray(this.v2m_1);
|
|
4412
4412
|
};
|
|
4413
4413
|
function _get_tag__e6h4qf($this) {
|
|
4414
|
-
var tmp = $this.
|
|
4414
|
+
var tmp = $this.g2m_1;
|
|
4415
4415
|
if (!(tmp == null))
|
|
4416
4416
|
return tmp;
|
|
4417
4417
|
else {
|
|
@@ -4420,37 +4420,37 @@
|
|
|
4420
4420
|
}
|
|
4421
4421
|
function JsonTreeMapEncoder(json, nodeConsumer) {
|
|
4422
4422
|
JsonTreeEncoder.call(this, json, nodeConsumer);
|
|
4423
|
-
this.
|
|
4423
|
+
this.h2m_1 = true;
|
|
4424
4424
|
}
|
|
4425
|
-
protoOf(JsonTreeMapEncoder).
|
|
4426
|
-
if (this.
|
|
4425
|
+
protoOf(JsonTreeMapEncoder).e2l = function (key, element) {
|
|
4426
|
+
if (this.h2m_1) {
|
|
4427
4427
|
var tmp = this;
|
|
4428
4428
|
var tmp_0;
|
|
4429
4429
|
if (element instanceof JsonPrimitive) {
|
|
4430
|
-
tmp_0 = element.
|
|
4430
|
+
tmp_0 = element.p2c();
|
|
4431
4431
|
} else {
|
|
4432
4432
|
if (element instanceof JsonObject) {
|
|
4433
|
-
throw InvalidKeyKindException(JsonObjectSerializer_getInstance().
|
|
4433
|
+
throw InvalidKeyKindException(JsonObjectSerializer_getInstance().b2d_1);
|
|
4434
4434
|
} else {
|
|
4435
4435
|
if (element instanceof JsonArray) {
|
|
4436
|
-
throw InvalidKeyKindException(JsonArraySerializer_getInstance().
|
|
4436
|
+
throw InvalidKeyKindException(JsonArraySerializer_getInstance().c2d_1);
|
|
4437
4437
|
} else {
|
|
4438
4438
|
noWhenBranchMatchedException();
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
|
-
tmp.
|
|
4443
|
-
this.
|
|
4442
|
+
tmp.g2m_1 = tmp_0;
|
|
4443
|
+
this.h2m_1 = false;
|
|
4444
4444
|
} else {
|
|
4445
|
-
var tmp0 = this.
|
|
4445
|
+
var tmp0 = this.d2l_1;
|
|
4446
4446
|
// Inline function 'kotlin.collections.set' call
|
|
4447
4447
|
var key_0 = _get_tag__e6h4qf(this);
|
|
4448
4448
|
tmp0.p2(key_0, element);
|
|
4449
|
-
this.
|
|
4449
|
+
this.h2m_1 = true;
|
|
4450
4450
|
}
|
|
4451
4451
|
};
|
|
4452
|
-
protoOf(JsonTreeMapEncoder).
|
|
4453
|
-
return new JsonObject(this.
|
|
4452
|
+
protoOf(JsonTreeMapEncoder).f2l = function () {
|
|
4453
|
+
return new JsonObject(this.d2l_1);
|
|
4454
4454
|
};
|
|
4455
4455
|
function writeJson$lambda($result) {
|
|
4456
4456
|
return function (it) {
|
|
@@ -4483,8 +4483,8 @@
|
|
|
4483
4483
|
var $ENTRIES;
|
|
4484
4484
|
function WriteMode(name, ordinal, begin, end) {
|
|
4485
4485
|
Enum.call(this, name, ordinal);
|
|
4486
|
-
this.
|
|
4487
|
-
this.
|
|
4486
|
+
this.b2i_1 = begin;
|
|
4487
|
+
this.c2i_1 = end;
|
|
4488
4488
|
}
|
|
4489
4489
|
function switchMode(_this__u8e3s4, desc) {
|
|
4490
4490
|
var tmp0_subject = desc.lp();
|
|
@@ -4509,7 +4509,7 @@
|
|
|
4509
4509
|
if (tmp_1) {
|
|
4510
4510
|
tmp_0 = WriteMode_MAP_getInstance();
|
|
4511
4511
|
} else {
|
|
4512
|
-
if (_this__u8e3s4.
|
|
4512
|
+
if (_this__u8e3s4.d2a_1.v2b_1) {
|
|
4513
4513
|
tmp_0 = WriteMode_LIST_getInstance();
|
|
4514
4514
|
} else {
|
|
4515
4515
|
throw InvalidKeyKindException(keyDescriptor);
|
|
@@ -4553,56 +4553,56 @@
|
|
|
4553
4553
|
return WriteMode_POLY_OBJ_instance;
|
|
4554
4554
|
}
|
|
4555
4555
|
function appendEscape($this, lastPosition, current) {
|
|
4556
|
-
$this.
|
|
4556
|
+
$this.w2m(lastPosition, current);
|
|
4557
4557
|
return appendEsc($this, current + 1 | 0);
|
|
4558
4558
|
}
|
|
4559
4559
|
function decodedString($this, lastPosition, currentPosition) {
|
|
4560
|
-
$this.
|
|
4561
|
-
var result = $this.
|
|
4562
|
-
$this.
|
|
4560
|
+
$this.w2m(lastPosition, currentPosition);
|
|
4561
|
+
var result = $this.x2a_1.toString();
|
|
4562
|
+
$this.x2a_1.pb(0);
|
|
4563
4563
|
return result;
|
|
4564
4564
|
}
|
|
4565
4565
|
function takePeeked($this) {
|
|
4566
4566
|
// Inline function 'kotlin.also' call
|
|
4567
|
-
var this_0 = ensureNotNull($this.
|
|
4568
|
-
$this.
|
|
4567
|
+
var this_0 = ensureNotNull($this.w2a_1);
|
|
4568
|
+
$this.w2a_1 = null;
|
|
4569
4569
|
return this_0;
|
|
4570
4570
|
}
|
|
4571
4571
|
function wasUnquotedString($this) {
|
|
4572
|
-
return !(charSequenceGet($this.
|
|
4572
|
+
return !(charSequenceGet($this.x2m(), $this.u2a_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
|
|
4573
4573
|
}
|
|
4574
4574
|
function appendEsc($this, startPosition) {
|
|
4575
4575
|
var currentPosition = startPosition;
|
|
4576
|
-
currentPosition = $this.
|
|
4576
|
+
currentPosition = $this.y2m(currentPosition);
|
|
4577
4577
|
if (currentPosition === -1) {
|
|
4578
|
-
$this.
|
|
4578
|
+
$this.z2e('Expected escape sequence to continue, got EOF');
|
|
4579
4579
|
}
|
|
4580
|
-
var tmp = $this.
|
|
4580
|
+
var tmp = $this.x2m();
|
|
4581
4581
|
var _unary__edvuaz = currentPosition;
|
|
4582
4582
|
currentPosition = _unary__edvuaz + 1 | 0;
|
|
4583
4583
|
var currentChar = charSequenceGet(tmp, _unary__edvuaz);
|
|
4584
4584
|
if (currentChar === _Char___init__impl__6a9atx(117)) {
|
|
4585
|
-
return appendHex($this, $this.
|
|
4585
|
+
return appendHex($this, $this.x2m(), currentPosition);
|
|
4586
4586
|
}
|
|
4587
4587
|
// Inline function 'kotlin.code' call
|
|
4588
4588
|
var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
4589
4589
|
var c = escapeToChar(tmp$ret$0);
|
|
4590
4590
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
4591
|
-
$this.
|
|
4591
|
+
$this.z2e("Invalid escaped char '" + toString_1(currentChar) + "'");
|
|
4592
4592
|
}
|
|
4593
|
-
$this.
|
|
4593
|
+
$this.x2a_1.q(c);
|
|
4594
4594
|
return currentPosition;
|
|
4595
4595
|
}
|
|
4596
4596
|
function appendHex($this, source, startPos) {
|
|
4597
4597
|
if ((startPos + 4 | 0) >= charSequenceLength(source)) {
|
|
4598
|
-
$this.
|
|
4599
|
-
$this.
|
|
4600
|
-
if (($this.
|
|
4601
|
-
$this.
|
|
4598
|
+
$this.u2a_1 = startPos;
|
|
4599
|
+
$this.z2m();
|
|
4600
|
+
if (($this.u2a_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
4601
|
+
$this.z2e('Unexpected EOF during unicode escape');
|
|
4602
4602
|
}
|
|
4603
|
-
return appendHex($this, source, $this.
|
|
4603
|
+
return appendHex($this, source, $this.u2a_1);
|
|
4604
4604
|
}
|
|
4605
|
-
$this.
|
|
4605
|
+
$this.x2a_1.q(numberToChar((((fromHexChar($this, source, startPos) << 12) + (fromHexChar($this, source, startPos + 1 | 0) << 8) | 0) + (fromHexChar($this, source, startPos + 2 | 0) << 4) | 0) + fromHexChar($this, source, startPos + 3 | 0) | 0));
|
|
4606
4606
|
return startPos + 4 | 0;
|
|
4607
4607
|
}
|
|
4608
4608
|
function fromHexChar($this, source, currentPosition) {
|
|
@@ -4627,16 +4627,16 @@
|
|
|
4627
4627
|
var this_2 = _Char___init__impl__6a9atx(65);
|
|
4628
4628
|
tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
|
|
4629
4629
|
} else {
|
|
4630
|
-
$this.
|
|
4630
|
+
$this.z2e("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
|
|
4631
4631
|
}
|
|
4632
4632
|
return tmp;
|
|
4633
4633
|
}
|
|
4634
4634
|
function consumeBoolean2($this, start) {
|
|
4635
|
-
var current = $this.
|
|
4636
|
-
if (current >= charSequenceLength($this.
|
|
4637
|
-
$this.
|
|
4635
|
+
var current = $this.y2m(start);
|
|
4636
|
+
if (current >= charSequenceLength($this.x2m()) || current === -1) {
|
|
4637
|
+
$this.z2e('EOF');
|
|
4638
4638
|
}
|
|
4639
|
-
var tmp = $this.
|
|
4639
|
+
var tmp = $this.x2m();
|
|
4640
4640
|
var _unary__edvuaz = current;
|
|
4641
4641
|
current = _unary__edvuaz + 1 | 0;
|
|
4642
4642
|
// Inline function 'kotlin.code' call
|
|
@@ -4655,14 +4655,14 @@
|
|
|
4655
4655
|
consumeBooleanLiteral($this, 'alse', current);
|
|
4656
4656
|
tmp_0 = false;
|
|
4657
4657
|
} else {
|
|
4658
|
-
$this.
|
|
4658
|
+
$this.z2e("Expected valid boolean literal prefix, but had '" + $this.h2g() + "'");
|
|
4659
4659
|
}
|
|
4660
4660
|
}
|
|
4661
4661
|
return tmp_0;
|
|
4662
4662
|
}
|
|
4663
4663
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
4664
|
-
if ((charSequenceLength($this.
|
|
4665
|
-
$this.
|
|
4664
|
+
if ((charSequenceLength($this.x2m()) - current | 0) < literalSuffix.length) {
|
|
4665
|
+
$this.z2e('Unexpected end of boolean literal');
|
|
4666
4666
|
}
|
|
4667
4667
|
var inductionVariable = 0;
|
|
4668
4668
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -4671,16 +4671,16 @@
|
|
|
4671
4671
|
var i = inductionVariable;
|
|
4672
4672
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4673
4673
|
var expected = charCodeAt(literalSuffix, i);
|
|
4674
|
-
var actual = charSequenceGet($this.
|
|
4674
|
+
var actual = charSequenceGet($this.x2m(), current + i | 0);
|
|
4675
4675
|
// Inline function 'kotlin.code' call
|
|
4676
4676
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
4677
4677
|
// Inline function 'kotlin.code' call
|
|
4678
4678
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
4679
|
-
$this.
|
|
4679
|
+
$this.z2e("Expected valid boolean literal prefix, but had '" + $this.h2g() + "'");
|
|
4680
4680
|
}
|
|
4681
4681
|
}
|
|
4682
4682
|
while (inductionVariable <= last);
|
|
4683
|
-
$this.
|
|
4683
|
+
$this.u2a_1 = current + literalSuffix.length | 0;
|
|
4684
4684
|
}
|
|
4685
4685
|
function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive) {
|
|
4686
4686
|
var tmp;
|
|
@@ -4704,77 +4704,77 @@
|
|
|
4704
4704
|
return tmp;
|
|
4705
4705
|
}
|
|
4706
4706
|
function AbstractJsonLexer() {
|
|
4707
|
-
this.
|
|
4708
|
-
this.
|
|
4709
|
-
this.
|
|
4710
|
-
this.
|
|
4707
|
+
this.u2a_1 = 0;
|
|
4708
|
+
this.v2a_1 = new JsonPath();
|
|
4709
|
+
this.w2a_1 = null;
|
|
4710
|
+
this.x2a_1 = StringBuilder_init_$Create$();
|
|
4711
4711
|
}
|
|
4712
|
-
protoOf(AbstractJsonLexer).
|
|
4712
|
+
protoOf(AbstractJsonLexer).z2m = function () {
|
|
4713
4713
|
};
|
|
4714
|
-
protoOf(AbstractJsonLexer).
|
|
4715
|
-
var current = this.
|
|
4716
|
-
var source = this.
|
|
4714
|
+
protoOf(AbstractJsonLexer).r2h = function () {
|
|
4715
|
+
var current = this.a2n();
|
|
4716
|
+
var source = this.x2m();
|
|
4717
4717
|
if (current >= charSequenceLength(source) || current === -1)
|
|
4718
4718
|
return false;
|
|
4719
4719
|
if (charSequenceGet(source, current) === _Char___init__impl__6a9atx(44)) {
|
|
4720
|
-
this.
|
|
4720
|
+
this.u2a_1 = this.u2a_1 + 1 | 0;
|
|
4721
4721
|
return true;
|
|
4722
4722
|
}
|
|
4723
4723
|
return false;
|
|
4724
4724
|
};
|
|
4725
|
-
protoOf(AbstractJsonLexer).
|
|
4725
|
+
protoOf(AbstractJsonLexer).b2n = function (c) {
|
|
4726
4726
|
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;
|
|
4727
4727
|
};
|
|
4728
|
-
protoOf(AbstractJsonLexer).
|
|
4729
|
-
var nextToken = this.
|
|
4728
|
+
protoOf(AbstractJsonLexer).y2a = function () {
|
|
4729
|
+
var nextToken = this.j2g();
|
|
4730
4730
|
if (!(nextToken === 10)) {
|
|
4731
|
-
this.
|
|
4731
|
+
this.z2e('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.x2m(), this.u2a_1 - 1 | 0)) + ' instead');
|
|
4732
4732
|
}
|
|
4733
4733
|
};
|
|
4734
|
-
protoOf(AbstractJsonLexer).
|
|
4735
|
-
var token = this.
|
|
4734
|
+
protoOf(AbstractJsonLexer).d2g = function (expected) {
|
|
4735
|
+
var token = this.j2g();
|
|
4736
4736
|
if (!(token === expected)) {
|
|
4737
4737
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4738
4738
|
var expected_0 = tokenDescription(expected);
|
|
4739
|
-
var position = true ? this.
|
|
4740
|
-
var s = this.
|
|
4739
|
+
var position = true ? this.u2a_1 - 1 | 0 : this.u2a_1;
|
|
4740
|
+
var s = this.u2a_1 === charSequenceLength(this.x2m()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.x2m(), position));
|
|
4741
4741
|
var tmp$ret$1 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4742
|
-
this.
|
|
4742
|
+
this.z2e(tmp$ret$1, position);
|
|
4743
4743
|
}
|
|
4744
4744
|
return token;
|
|
4745
4745
|
};
|
|
4746
|
-
protoOf(AbstractJsonLexer).
|
|
4747
|
-
if (this.
|
|
4746
|
+
protoOf(AbstractJsonLexer).c2n = function (expected) {
|
|
4747
|
+
if (this.u2a_1 > 0 && expected === _Char___init__impl__6a9atx(34)) {
|
|
4748
4748
|
var tmp$ret$0;
|
|
4749
4749
|
$l$block: {
|
|
4750
4750
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.withPositionRollback' call
|
|
4751
|
-
var snapshot = this.
|
|
4751
|
+
var snapshot = this.u2a_1;
|
|
4752
4752
|
try {
|
|
4753
|
-
this.
|
|
4754
|
-
tmp$ret$0 = this.
|
|
4753
|
+
this.u2a_1 = this.u2a_1 - 1 | 0;
|
|
4754
|
+
tmp$ret$0 = this.h2g();
|
|
4755
4755
|
break $l$block;
|
|
4756
4756
|
}finally {
|
|
4757
|
-
this.
|
|
4757
|
+
this.u2a_1 = snapshot;
|
|
4758
4758
|
}
|
|
4759
4759
|
}
|
|
4760
4760
|
var inputLiteral = tmp$ret$0;
|
|
4761
4761
|
if (inputLiteral === 'null') {
|
|
4762
|
-
this.
|
|
4762
|
+
this.y2e("Expected string literal but 'null' literal was found", this.u2a_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
|
|
4763
4763
|
}
|
|
4764
4764
|
}
|
|
4765
4765
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4766
4766
|
var expectedToken = charToTokenClass(expected);
|
|
4767
4767
|
var expected_0 = tokenDescription(expectedToken);
|
|
4768
|
-
var position = true ? this.
|
|
4769
|
-
var s = this.
|
|
4768
|
+
var position = true ? this.u2a_1 - 1 | 0 : this.u2a_1;
|
|
4769
|
+
var s = this.u2a_1 === charSequenceLength(this.x2m()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.x2m(), position));
|
|
4770
4770
|
var tmp$ret$3 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4771
|
-
this.
|
|
4771
|
+
this.z2e(tmp$ret$3, position);
|
|
4772
4772
|
};
|
|
4773
|
-
protoOf(AbstractJsonLexer).
|
|
4774
|
-
var source = this.
|
|
4775
|
-
var cpos = this.
|
|
4773
|
+
protoOf(AbstractJsonLexer).e2g = function () {
|
|
4774
|
+
var source = this.x2m();
|
|
4775
|
+
var cpos = this.u2a_1;
|
|
4776
4776
|
$l$loop_0: while (true) {
|
|
4777
|
-
cpos = this.
|
|
4777
|
+
cpos = this.y2m(cpos);
|
|
4778
4778
|
if (cpos === -1)
|
|
4779
4779
|
break $l$loop_0;
|
|
4780
4780
|
var ch = charSequenceGet(source, cpos);
|
|
@@ -4782,16 +4782,16 @@
|
|
|
4782
4782
|
cpos = cpos + 1 | 0;
|
|
4783
4783
|
continue $l$loop_0;
|
|
4784
4784
|
}
|
|
4785
|
-
this.
|
|
4785
|
+
this.u2a_1 = cpos;
|
|
4786
4786
|
return charToTokenClass(ch);
|
|
4787
4787
|
}
|
|
4788
|
-
this.
|
|
4788
|
+
this.u2a_1 = cpos;
|
|
4789
4789
|
return 10;
|
|
4790
4790
|
};
|
|
4791
|
-
protoOf(AbstractJsonLexer).
|
|
4792
|
-
var current = this.
|
|
4793
|
-
current = this.
|
|
4794
|
-
var len = charSequenceLength(this.
|
|
4791
|
+
protoOf(AbstractJsonLexer).s2h = function (doConsume) {
|
|
4792
|
+
var current = this.a2n();
|
|
4793
|
+
current = this.y2m(current);
|
|
4794
|
+
var len = charSequenceLength(this.x2m()) - current | 0;
|
|
4795
4795
|
if (len < 4 || current === -1)
|
|
4796
4796
|
return false;
|
|
4797
4797
|
var inductionVariable = 0;
|
|
@@ -4799,50 +4799,50 @@
|
|
|
4799
4799
|
do {
|
|
4800
4800
|
var i = inductionVariable;
|
|
4801
4801
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4802
|
-
if (!(charCodeAt('null', i) === charSequenceGet(this.
|
|
4802
|
+
if (!(charCodeAt('null', i) === charSequenceGet(this.x2m(), current + i | 0)))
|
|
4803
4803
|
return false;
|
|
4804
4804
|
}
|
|
4805
4805
|
while (inductionVariable <= 3);
|
|
4806
|
-
if (len > 4 && charToTokenClass(charSequenceGet(this.
|
|
4806
|
+
if (len > 4 && charToTokenClass(charSequenceGet(this.x2m(), current + 4 | 0)) === 0)
|
|
4807
4807
|
return false;
|
|
4808
4808
|
if (doConsume) {
|
|
4809
|
-
this.
|
|
4809
|
+
this.u2a_1 = current + 4 | 0;
|
|
4810
4810
|
}
|
|
4811
4811
|
return true;
|
|
4812
4812
|
};
|
|
4813
|
-
protoOf(AbstractJsonLexer).
|
|
4813
|
+
protoOf(AbstractJsonLexer).d2i = function (doConsume, $super) {
|
|
4814
4814
|
doConsume = doConsume === VOID ? true : doConsume;
|
|
4815
|
-
return $super === VOID ? this.
|
|
4815
|
+
return $super === VOID ? this.s2h(doConsume) : $super.s2h.call(this, doConsume);
|
|
4816
4816
|
};
|
|
4817
|
-
protoOf(AbstractJsonLexer).
|
|
4818
|
-
var token = this.
|
|
4817
|
+
protoOf(AbstractJsonLexer).t2h = function (isLenient) {
|
|
4818
|
+
var token = this.e2g();
|
|
4819
4819
|
var tmp;
|
|
4820
4820
|
if (isLenient) {
|
|
4821
4821
|
if (!(token === 1) && !(token === 0))
|
|
4822
4822
|
return null;
|
|
4823
|
-
tmp = this.
|
|
4823
|
+
tmp = this.h2g();
|
|
4824
4824
|
} else {
|
|
4825
4825
|
if (!(token === 1))
|
|
4826
4826
|
return null;
|
|
4827
|
-
tmp = this.
|
|
4827
|
+
tmp = this.g2g();
|
|
4828
4828
|
}
|
|
4829
4829
|
var string = tmp;
|
|
4830
|
-
this.
|
|
4830
|
+
this.w2a_1 = string;
|
|
4831
4831
|
return string;
|
|
4832
4832
|
};
|
|
4833
|
-
protoOf(AbstractJsonLexer).
|
|
4834
|
-
this.
|
|
4833
|
+
protoOf(AbstractJsonLexer).d2n = function () {
|
|
4834
|
+
this.w2a_1 = null;
|
|
4835
4835
|
};
|
|
4836
|
-
protoOf(AbstractJsonLexer).
|
|
4836
|
+
protoOf(AbstractJsonLexer).e2n = function (startPos, endPos) {
|
|
4837
4837
|
// Inline function 'kotlin.text.substring' call
|
|
4838
|
-
var this_0 = this.
|
|
4838
|
+
var this_0 = this.x2m();
|
|
4839
4839
|
return toString(charSequenceSubSequence(this_0, startPos, endPos));
|
|
4840
4840
|
};
|
|
4841
|
-
protoOf(AbstractJsonLexer).
|
|
4842
|
-
if (!(this.
|
|
4841
|
+
protoOf(AbstractJsonLexer).g2g = function () {
|
|
4842
|
+
if (!(this.w2a_1 == null)) {
|
|
4843
4843
|
return takePeeked(this);
|
|
4844
4844
|
}
|
|
4845
|
-
return this.
|
|
4845
|
+
return this.w2h();
|
|
4846
4846
|
};
|
|
4847
4847
|
protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) {
|
|
4848
4848
|
var currentPosition = current;
|
|
@@ -4852,19 +4852,19 @@
|
|
|
4852
4852
|
while (!(char === _Char___init__impl__6a9atx(34))) {
|
|
4853
4853
|
if (char === _Char___init__impl__6a9atx(92)) {
|
|
4854
4854
|
usedAppend = true;
|
|
4855
|
-
currentPosition = this.
|
|
4855
|
+
currentPosition = this.y2m(appendEscape(this, lastPosition, currentPosition));
|
|
4856
4856
|
if (currentPosition === -1) {
|
|
4857
|
-
this.
|
|
4857
|
+
this.z2e('Unexpected EOF', currentPosition);
|
|
4858
4858
|
}
|
|
4859
4859
|
lastPosition = currentPosition;
|
|
4860
4860
|
} else {
|
|
4861
4861
|
currentPosition = currentPosition + 1 | 0;
|
|
4862
4862
|
if (currentPosition >= charSequenceLength(source)) {
|
|
4863
4863
|
usedAppend = true;
|
|
4864
|
-
this.
|
|
4865
|
-
currentPosition = this.
|
|
4864
|
+
this.w2m(lastPosition, currentPosition);
|
|
4865
|
+
currentPosition = this.y2m(currentPosition);
|
|
4866
4866
|
if (currentPosition === -1) {
|
|
4867
|
-
this.
|
|
4867
|
+
this.z2e('Unexpected EOF', currentPosition);
|
|
4868
4868
|
}
|
|
4869
4869
|
lastPosition = currentPosition;
|
|
4870
4870
|
}
|
|
@@ -4873,45 +4873,45 @@
|
|
|
4873
4873
|
}
|
|
4874
4874
|
var tmp;
|
|
4875
4875
|
if (!usedAppend) {
|
|
4876
|
-
tmp = this.
|
|
4876
|
+
tmp = this.e2n(lastPosition, currentPosition);
|
|
4877
4877
|
} else {
|
|
4878
4878
|
tmp = decodedString(this, lastPosition, currentPosition);
|
|
4879
4879
|
}
|
|
4880
4880
|
var string = tmp;
|
|
4881
|
-
this.
|
|
4881
|
+
this.u2a_1 = currentPosition + 1 | 0;
|
|
4882
4882
|
return string;
|
|
4883
4883
|
};
|
|
4884
|
-
protoOf(AbstractJsonLexer).
|
|
4885
|
-
var result = this.
|
|
4884
|
+
protoOf(AbstractJsonLexer).x2h = function () {
|
|
4885
|
+
var result = this.h2g();
|
|
4886
4886
|
if (result === 'null' && wasUnquotedString(this)) {
|
|
4887
|
-
this.
|
|
4887
|
+
this.z2e("Unexpected 'null' value instead of string literal");
|
|
4888
4888
|
}
|
|
4889
4889
|
return result;
|
|
4890
4890
|
};
|
|
4891
|
-
protoOf(AbstractJsonLexer).
|
|
4892
|
-
if (!(this.
|
|
4891
|
+
protoOf(AbstractJsonLexer).h2g = function () {
|
|
4892
|
+
if (!(this.w2a_1 == null)) {
|
|
4893
4893
|
return takePeeked(this);
|
|
4894
4894
|
}
|
|
4895
|
-
var current = this.
|
|
4896
|
-
if (current >= charSequenceLength(this.
|
|
4897
|
-
this.
|
|
4895
|
+
var current = this.a2n();
|
|
4896
|
+
if (current >= charSequenceLength(this.x2m()) || current === -1) {
|
|
4897
|
+
this.z2e('EOF', current);
|
|
4898
4898
|
}
|
|
4899
|
-
var token = charToTokenClass(charSequenceGet(this.
|
|
4899
|
+
var token = charToTokenClass(charSequenceGet(this.x2m(), current));
|
|
4900
4900
|
if (token === 1) {
|
|
4901
|
-
return this.
|
|
4901
|
+
return this.g2g();
|
|
4902
4902
|
}
|
|
4903
4903
|
if (!(token === 0)) {
|
|
4904
|
-
this.
|
|
4904
|
+
this.z2e('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.x2m(), current)));
|
|
4905
4905
|
}
|
|
4906
4906
|
var usedAppend = false;
|
|
4907
|
-
while (charToTokenClass(charSequenceGet(this.
|
|
4907
|
+
while (charToTokenClass(charSequenceGet(this.x2m(), current)) === 0) {
|
|
4908
4908
|
current = current + 1 | 0;
|
|
4909
|
-
if (current >= charSequenceLength(this.
|
|
4909
|
+
if (current >= charSequenceLength(this.x2m())) {
|
|
4910
4910
|
usedAppend = true;
|
|
4911
|
-
this.
|
|
4912
|
-
var eof = this.
|
|
4911
|
+
this.w2m(this.u2a_1, current);
|
|
4912
|
+
var eof = this.y2m(current);
|
|
4913
4913
|
if (eof === -1) {
|
|
4914
|
-
this.
|
|
4914
|
+
this.u2a_1 = current;
|
|
4915
4915
|
return decodedString(this, 0, 0);
|
|
4916
4916
|
} else {
|
|
4917
4917
|
current = eof;
|
|
@@ -4920,32 +4920,32 @@
|
|
|
4920
4920
|
}
|
|
4921
4921
|
var tmp;
|
|
4922
4922
|
if (!usedAppend) {
|
|
4923
|
-
tmp = this.
|
|
4923
|
+
tmp = this.e2n(this.u2a_1, current);
|
|
4924
4924
|
} else {
|
|
4925
|
-
tmp = decodedString(this, this.
|
|
4925
|
+
tmp = decodedString(this, this.u2a_1, current);
|
|
4926
4926
|
}
|
|
4927
4927
|
var result = tmp;
|
|
4928
|
-
this.
|
|
4928
|
+
this.u2a_1 = current;
|
|
4929
4929
|
return result;
|
|
4930
4930
|
};
|
|
4931
|
-
protoOf(AbstractJsonLexer).
|
|
4932
|
-
this.
|
|
4931
|
+
protoOf(AbstractJsonLexer).w2m = function (fromIndex, toIndex) {
|
|
4932
|
+
this.x2a_1.kb(this.x2m(), fromIndex, toIndex);
|
|
4933
4933
|
};
|
|
4934
|
-
protoOf(AbstractJsonLexer).
|
|
4934
|
+
protoOf(AbstractJsonLexer).v2h = function (allowLenientStrings) {
|
|
4935
4935
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4936
4936
|
var tokenStack = ArrayList_init_$Create$();
|
|
4937
|
-
var lastToken = this.
|
|
4937
|
+
var lastToken = this.e2g();
|
|
4938
4938
|
if (!(lastToken === 8) && !(lastToken === 6)) {
|
|
4939
|
-
this.
|
|
4939
|
+
this.h2g();
|
|
4940
4940
|
return Unit_instance;
|
|
4941
4941
|
}
|
|
4942
4942
|
$l$loop: while (true) {
|
|
4943
|
-
lastToken = this.
|
|
4943
|
+
lastToken = this.e2g();
|
|
4944
4944
|
if (lastToken === 1) {
|
|
4945
4945
|
if (allowLenientStrings)
|
|
4946
|
-
this.
|
|
4946
|
+
this.h2g();
|
|
4947
4947
|
else
|
|
4948
|
-
this.
|
|
4948
|
+
this.w2h();
|
|
4949
4949
|
continue $l$loop;
|
|
4950
4950
|
}
|
|
4951
4951
|
var tmp0_subject = lastToken;
|
|
@@ -4953,29 +4953,29 @@
|
|
|
4953
4953
|
tokenStack.v(lastToken);
|
|
4954
4954
|
} else if (tmp0_subject === 9) {
|
|
4955
4955
|
if (!(last(tokenStack) === 8))
|
|
4956
|
-
throw JsonDecodingException_0(this.
|
|
4956
|
+
throw JsonDecodingException_0(this.u2a_1, 'found ] instead of } at path: ' + this.v2a_1.toString(), this.x2m());
|
|
4957
4957
|
removeLast(tokenStack);
|
|
4958
4958
|
} else if (tmp0_subject === 7) {
|
|
4959
4959
|
if (!(last(tokenStack) === 6))
|
|
4960
|
-
throw JsonDecodingException_0(this.
|
|
4960
|
+
throw JsonDecodingException_0(this.u2a_1, 'found } instead of ] at path: ' + this.v2a_1.toString(), this.x2m());
|
|
4961
4961
|
removeLast(tokenStack);
|
|
4962
4962
|
} else if (tmp0_subject === 10) {
|
|
4963
|
-
this.
|
|
4963
|
+
this.z2e('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
4964
4964
|
}
|
|
4965
|
-
this.
|
|
4965
|
+
this.j2g();
|
|
4966
4966
|
if (tokenStack.d1() === 0)
|
|
4967
4967
|
return Unit_instance;
|
|
4968
4968
|
}
|
|
4969
4969
|
};
|
|
4970
4970
|
protoOf(AbstractJsonLexer).toString = function () {
|
|
4971
|
-
return "JsonReader(source='" + toString(this.
|
|
4971
|
+
return "JsonReader(source='" + toString(this.x2m()) + "', currentPosition=" + this.u2a_1 + ')';
|
|
4972
4972
|
};
|
|
4973
|
-
protoOf(AbstractJsonLexer).
|
|
4974
|
-
var processed = this.
|
|
4973
|
+
protoOf(AbstractJsonLexer).u2h = function (key) {
|
|
4974
|
+
var processed = this.e2n(0, this.u2a_1);
|
|
4975
4975
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
4976
|
-
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.
|
|
4976
|
+
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.v2a_1.m2f() + "\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.x2m(), lastIndexOf_0))));
|
|
4977
4977
|
};
|
|
4978
|
-
protoOf(AbstractJsonLexer).
|
|
4978
|
+
protoOf(AbstractJsonLexer).y2e = function (message, position, hint) {
|
|
4979
4979
|
var tmp;
|
|
4980
4980
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4981
4981
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -4984,24 +4984,24 @@
|
|
|
4984
4984
|
tmp = '\n' + hint;
|
|
4985
4985
|
}
|
|
4986
4986
|
var hintMessage = tmp;
|
|
4987
|
-
throw JsonDecodingException_0(position, message + ' at path: ' + this.
|
|
4987
|
+
throw JsonDecodingException_0(position, message + ' at path: ' + this.v2a_1.m2f() + hintMessage, this.x2m());
|
|
4988
4988
|
};
|
|
4989
|
-
protoOf(AbstractJsonLexer).
|
|
4990
|
-
position = position === VOID ? this.
|
|
4989
|
+
protoOf(AbstractJsonLexer).z2e = function (message, position, hint, $super) {
|
|
4990
|
+
position = position === VOID ? this.u2a_1 : position;
|
|
4991
4991
|
hint = hint === VOID ? '' : hint;
|
|
4992
|
-
return $super === VOID ? this.
|
|
4992
|
+
return $super === VOID ? this.y2e(message, position, hint) : $super.y2e.call(this, message, position, hint);
|
|
4993
4993
|
};
|
|
4994
|
-
protoOf(AbstractJsonLexer).
|
|
4995
|
-
var current = this.
|
|
4996
|
-
current = this.
|
|
4997
|
-
if (current >= charSequenceLength(this.
|
|
4998
|
-
this.
|
|
4994
|
+
protoOf(AbstractJsonLexer).f2i = function () {
|
|
4995
|
+
var current = this.a2n();
|
|
4996
|
+
current = this.y2m(current);
|
|
4997
|
+
if (current >= charSequenceLength(this.x2m()) || current === -1) {
|
|
4998
|
+
this.z2e('EOF');
|
|
4999
4999
|
}
|
|
5000
5000
|
var tmp;
|
|
5001
|
-
if (charSequenceGet(this.
|
|
5001
|
+
if (charSequenceGet(this.x2m(), current) === _Char___init__impl__6a9atx(34)) {
|
|
5002
5002
|
current = current + 1 | 0;
|
|
5003
|
-
if (current === charSequenceLength(this.
|
|
5004
|
-
this.
|
|
5003
|
+
if (current === charSequenceLength(this.x2m())) {
|
|
5004
|
+
this.z2e('EOF');
|
|
5005
5005
|
}
|
|
5006
5006
|
tmp = true;
|
|
5007
5007
|
} else {
|
|
@@ -5014,11 +5014,11 @@
|
|
|
5014
5014
|
var isExponentPositive = false;
|
|
5015
5015
|
var hasExponent = false;
|
|
5016
5016
|
var start = current;
|
|
5017
|
-
$l$loop_4: while (!(current === charSequenceLength(this.
|
|
5018
|
-
var ch = charSequenceGet(this.
|
|
5017
|
+
$l$loop_4: while (!(current === charSequenceLength(this.x2m()))) {
|
|
5018
|
+
var ch = charSequenceGet(this.x2m(), current);
|
|
5019
5019
|
if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
|
|
5020
5020
|
if (current === start) {
|
|
5021
|
-
this.
|
|
5021
|
+
this.z2e('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
|
|
5022
5022
|
}
|
|
5023
5023
|
isExponentPositive = true;
|
|
5024
5024
|
hasExponent = true;
|
|
@@ -5027,7 +5027,7 @@
|
|
|
5027
5027
|
}
|
|
5028
5028
|
if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
|
|
5029
5029
|
if (current === start) {
|
|
5030
|
-
this.
|
|
5030
|
+
this.z2e("Unexpected symbol '-' in numeric literal");
|
|
5031
5031
|
}
|
|
5032
5032
|
isExponentPositive = false;
|
|
5033
5033
|
current = current + 1 | 0;
|
|
@@ -5035,7 +5035,7 @@
|
|
|
5035
5035
|
}
|
|
5036
5036
|
if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
|
|
5037
5037
|
if (current === start) {
|
|
5038
|
-
this.
|
|
5038
|
+
this.z2e("Unexpected symbol '+' in numeric literal");
|
|
5039
5039
|
}
|
|
5040
5040
|
isExponentPositive = true;
|
|
5041
5041
|
current = current + 1 | 0;
|
|
@@ -5043,7 +5043,7 @@
|
|
|
5043
5043
|
}
|
|
5044
5044
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
5045
5045
|
if (!(current === start)) {
|
|
5046
|
-
this.
|
|
5046
|
+
this.z2e("Unexpected symbol '-' in numeric literal");
|
|
5047
5047
|
}
|
|
5048
5048
|
isNegative = true;
|
|
5049
5049
|
current = current + 1 | 0;
|
|
@@ -5055,7 +5055,7 @@
|
|
|
5055
5055
|
current = current + 1 | 0;
|
|
5056
5056
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
5057
5057
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
5058
|
-
this.
|
|
5058
|
+
this.z2e("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
|
|
5059
5059
|
}
|
|
5060
5060
|
if (hasExponent) {
|
|
5061
5061
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -5071,31 +5071,31 @@
|
|
|
5071
5071
|
var this_3 = multiply(this_2, fromInt(10));
|
|
5072
5072
|
accumulator = subtract(this_3, fromInt(digit));
|
|
5073
5073
|
if (compare(accumulator, new Long(0, 0)) > 0) {
|
|
5074
|
-
this.
|
|
5074
|
+
this.z2e('Numeric value overflow');
|
|
5075
5075
|
}
|
|
5076
5076
|
}
|
|
5077
5077
|
var hasChars = !(current === start);
|
|
5078
5078
|
if (start === current || (isNegative && start === (current - 1 | 0))) {
|
|
5079
|
-
this.
|
|
5079
|
+
this.z2e('Expected numeric literal');
|
|
5080
5080
|
}
|
|
5081
5081
|
if (hasQuotation) {
|
|
5082
5082
|
if (!hasChars) {
|
|
5083
|
-
this.
|
|
5083
|
+
this.z2e('EOF');
|
|
5084
5084
|
}
|
|
5085
|
-
if (!(charSequenceGet(this.
|
|
5086
|
-
this.
|
|
5085
|
+
if (!(charSequenceGet(this.x2m(), current) === _Char___init__impl__6a9atx(34))) {
|
|
5086
|
+
this.z2e('Expected closing quotation mark');
|
|
5087
5087
|
}
|
|
5088
5088
|
current = current + 1 | 0;
|
|
5089
5089
|
}
|
|
5090
|
-
this.
|
|
5090
|
+
this.u2a_1 = current;
|
|
5091
5091
|
if (hasExponent) {
|
|
5092
5092
|
var doubleAccumulator = toNumber(accumulator) * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
|
|
5093
5093
|
if (doubleAccumulator > toNumber(new Long(-1, 2147483647)) || doubleAccumulator < toNumber(new Long(0, -2147483648))) {
|
|
5094
|
-
this.
|
|
5094
|
+
this.z2e('Numeric value overflow');
|
|
5095
5095
|
}
|
|
5096
5096
|
// Inline function 'kotlin.math.floor' call
|
|
5097
5097
|
if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
|
|
5098
|
-
this.
|
|
5098
|
+
this.z2e("Can't convert " + doubleAccumulator + ' to Long');
|
|
5099
5099
|
}
|
|
5100
5100
|
accumulator = numberToLong(doubleAccumulator);
|
|
5101
5101
|
}
|
|
@@ -5105,30 +5105,30 @@
|
|
|
5105
5105
|
} else if (!equalsLong(accumulator, new Long(0, -2147483648))) {
|
|
5106
5106
|
tmp_0 = negate(accumulator);
|
|
5107
5107
|
} else {
|
|
5108
|
-
this.
|
|
5108
|
+
this.z2e('Numeric value overflow');
|
|
5109
5109
|
}
|
|
5110
5110
|
return tmp_0;
|
|
5111
5111
|
};
|
|
5112
|
-
protoOf(AbstractJsonLexer).
|
|
5113
|
-
var result = this.
|
|
5114
|
-
var next = this.
|
|
5112
|
+
protoOf(AbstractJsonLexer).v2c = function () {
|
|
5113
|
+
var result = this.f2i();
|
|
5114
|
+
var next = this.j2g();
|
|
5115
5115
|
if (!(next === 10)) {
|
|
5116
5116
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
5117
5117
|
var expected = tokenDescription(10);
|
|
5118
|
-
var position = true ? this.
|
|
5119
|
-
var s = this.
|
|
5118
|
+
var position = true ? this.u2a_1 - 1 | 0 : this.u2a_1;
|
|
5119
|
+
var s = this.u2a_1 === charSequenceLength(this.x2m()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.x2m(), position));
|
|
5120
5120
|
var tmp$ret$1 = "Expected input to contain a single valid number, but got '" + s + "' after it";
|
|
5121
|
-
this.
|
|
5121
|
+
this.z2e(tmp$ret$1, position);
|
|
5122
5122
|
}
|
|
5123
5123
|
return result;
|
|
5124
5124
|
};
|
|
5125
|
-
protoOf(AbstractJsonLexer).
|
|
5126
|
-
var current = this.
|
|
5127
|
-
if (current === charSequenceLength(this.
|
|
5128
|
-
this.
|
|
5125
|
+
protoOf(AbstractJsonLexer).e2i = function () {
|
|
5126
|
+
var current = this.a2n();
|
|
5127
|
+
if (current === charSequenceLength(this.x2m())) {
|
|
5128
|
+
this.z2e('EOF');
|
|
5129
5129
|
}
|
|
5130
5130
|
var tmp;
|
|
5131
|
-
if (charSequenceGet(this.
|
|
5131
|
+
if (charSequenceGet(this.x2m(), current) === _Char___init__impl__6a9atx(34)) {
|
|
5132
5132
|
current = current + 1 | 0;
|
|
5133
5133
|
tmp = true;
|
|
5134
5134
|
} else {
|
|
@@ -5137,13 +5137,13 @@
|
|
|
5137
5137
|
var hasQuotation = tmp;
|
|
5138
5138
|
var result = consumeBoolean2(this, current);
|
|
5139
5139
|
if (hasQuotation) {
|
|
5140
|
-
if (this.
|
|
5141
|
-
this.
|
|
5140
|
+
if (this.u2a_1 === charSequenceLength(this.x2m())) {
|
|
5141
|
+
this.z2e('EOF');
|
|
5142
5142
|
}
|
|
5143
|
-
if (!(charSequenceGet(this.
|
|
5144
|
-
this.
|
|
5143
|
+
if (!(charSequenceGet(this.x2m(), this.u2a_1) === _Char___init__impl__6a9atx(34))) {
|
|
5144
|
+
this.z2e('Expected closing quotation mark');
|
|
5145
5145
|
}
|
|
5146
|
-
this.
|
|
5146
|
+
this.u2a_1 = this.u2a_1 + 1 | 0;
|
|
5147
5147
|
}
|
|
5148
5148
|
return result;
|
|
5149
5149
|
};
|
|
@@ -5151,7 +5151,7 @@
|
|
|
5151
5151
|
var tmp;
|
|
5152
5152
|
// Inline function 'kotlin.code' call
|
|
5153
5153
|
if (Char__toInt_impl_vasixd(c) < 126) {
|
|
5154
|
-
var tmp_0 = CharMappings_getInstance().
|
|
5154
|
+
var tmp_0 = CharMappings_getInstance().g2n_1;
|
|
5155
5155
|
// Inline function 'kotlin.code' call
|
|
5156
5156
|
tmp = tmp_0[Char__toInt_impl_vasixd(c)];
|
|
5157
5157
|
} else {
|
|
@@ -5163,7 +5163,7 @@
|
|
|
5163
5163
|
return token === 1 ? "quotation mark '\"'" : token === 2 ? "string escape sequence '\\'" : token === 4 ? "comma ','" : token === 5 ? "colon ':'" : token === 6 ? "start of the object '{'" : token === 7 ? "end of the object '}'" : token === 8 ? "start of the array '['" : token === 9 ? "end of the array ']'" : token === 10 ? 'end of the input' : token === 127 ? 'invalid token' : 'valid token';
|
|
5164
5164
|
}
|
|
5165
5165
|
function escapeToChar(c) {
|
|
5166
|
-
return c < 117 ? CharMappings_getInstance().
|
|
5166
|
+
return c < 117 ? CharMappings_getInstance().f2n_1[c] : _Char___init__impl__6a9atx(0);
|
|
5167
5167
|
}
|
|
5168
5168
|
function initEscape($this) {
|
|
5169
5169
|
var inductionVariable = 0;
|
|
@@ -5209,7 +5209,7 @@
|
|
|
5209
5209
|
if (!(esc === _Char___init__impl__6a9atx(117))) {
|
|
5210
5210
|
// Inline function 'kotlin.code' call
|
|
5211
5211
|
var tmp$ret$0 = Char__toInt_impl_vasixd(esc);
|
|
5212
|
-
$this.
|
|
5212
|
+
$this.f2n_1[tmp$ret$0] = numberToChar(c);
|
|
5213
5213
|
}
|
|
5214
5214
|
}
|
|
5215
5215
|
function initC2ESC_0($this, c, esc) {
|
|
@@ -5218,7 +5218,7 @@
|
|
|
5218
5218
|
return initC2ESC($this, tmp$ret$0, esc);
|
|
5219
5219
|
}
|
|
5220
5220
|
function initC2TC($this, c, cl) {
|
|
5221
|
-
$this.
|
|
5221
|
+
$this.g2n_1[c] = cl;
|
|
5222
5222
|
}
|
|
5223
5223
|
function initC2TC_0($this, c, cl) {
|
|
5224
5224
|
// Inline function 'kotlin.code' call
|
|
@@ -5227,8 +5227,8 @@
|
|
|
5227
5227
|
}
|
|
5228
5228
|
function CharMappings() {
|
|
5229
5229
|
CharMappings_instance = this;
|
|
5230
|
-
this.
|
|
5231
|
-
this.
|
|
5230
|
+
this.f2n_1 = charArray(117);
|
|
5231
|
+
this.g2n_1 = new Int8Array(126);
|
|
5232
5232
|
initEscape(this);
|
|
5233
5233
|
initCharToToken(this);
|
|
5234
5234
|
}
|
|
@@ -5241,48 +5241,48 @@
|
|
|
5241
5241
|
function StringJsonLexerWithComments(source) {
|
|
5242
5242
|
StringJsonLexer.call(this, source);
|
|
5243
5243
|
}
|
|
5244
|
-
protoOf(StringJsonLexerWithComments).
|
|
5245
|
-
var source = this.
|
|
5246
|
-
var cpos = this.
|
|
5244
|
+
protoOf(StringJsonLexerWithComments).j2g = function () {
|
|
5245
|
+
var source = this.x2m();
|
|
5246
|
+
var cpos = this.a2n();
|
|
5247
5247
|
if (cpos >= source.length || cpos === -1)
|
|
5248
5248
|
return 10;
|
|
5249
|
-
this.
|
|
5249
|
+
this.u2a_1 = cpos + 1 | 0;
|
|
5250
5250
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
5251
5251
|
};
|
|
5252
|
-
protoOf(StringJsonLexerWithComments).
|
|
5253
|
-
var current = this.
|
|
5254
|
-
if (current >= this.
|
|
5252
|
+
protoOf(StringJsonLexerWithComments).f2g = function () {
|
|
5253
|
+
var current = this.a2n();
|
|
5254
|
+
if (current >= this.x2m().length || current === -1)
|
|
5255
5255
|
return false;
|
|
5256
|
-
return this.
|
|
5256
|
+
return this.b2n(charCodeAt(this.x2m(), current));
|
|
5257
5257
|
};
|
|
5258
|
-
protoOf(StringJsonLexerWithComments).
|
|
5259
|
-
var source = this.
|
|
5260
|
-
var current = this.
|
|
5258
|
+
protoOf(StringJsonLexerWithComments).q2h = function (expected) {
|
|
5259
|
+
var source = this.x2m();
|
|
5260
|
+
var current = this.a2n();
|
|
5261
5261
|
if (current >= source.length || current === -1) {
|
|
5262
|
-
this.
|
|
5263
|
-
this.
|
|
5262
|
+
this.u2a_1 = -1;
|
|
5263
|
+
this.c2n(expected);
|
|
5264
5264
|
}
|
|
5265
5265
|
var c = charCodeAt(source, current);
|
|
5266
|
-
this.
|
|
5266
|
+
this.u2a_1 = current + 1 | 0;
|
|
5267
5267
|
if (c === expected)
|
|
5268
5268
|
return Unit_instance;
|
|
5269
5269
|
else {
|
|
5270
|
-
this.
|
|
5270
|
+
this.c2n(expected);
|
|
5271
5271
|
}
|
|
5272
5272
|
};
|
|
5273
|
-
protoOf(StringJsonLexerWithComments).
|
|
5274
|
-
var source = this.
|
|
5275
|
-
var cpos = this.
|
|
5273
|
+
protoOf(StringJsonLexerWithComments).e2g = function () {
|
|
5274
|
+
var source = this.x2m();
|
|
5275
|
+
var cpos = this.a2n();
|
|
5276
5276
|
if (cpos >= source.length || cpos === -1)
|
|
5277
5277
|
return 10;
|
|
5278
|
-
this.
|
|
5278
|
+
this.u2a_1 = cpos;
|
|
5279
5279
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
5280
5280
|
};
|
|
5281
|
-
protoOf(StringJsonLexerWithComments).
|
|
5282
|
-
var current = this.
|
|
5281
|
+
protoOf(StringJsonLexerWithComments).a2n = function () {
|
|
5282
|
+
var current = this.u2a_1;
|
|
5283
5283
|
if (current === -1)
|
|
5284
5284
|
return current;
|
|
5285
|
-
var source = this.
|
|
5285
|
+
var source = this.x2m();
|
|
5286
5286
|
$l$loop_1: while (current < source.length) {
|
|
5287
5287
|
var c = charCodeAt(source, current);
|
|
5288
5288
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
@@ -5303,8 +5303,8 @@
|
|
|
5303
5303
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(42)) {
|
|
5304
5304
|
current = indexOf(source, '*/', current + 2 | 0);
|
|
5305
5305
|
if (current === -1) {
|
|
5306
|
-
this.
|
|
5307
|
-
this.
|
|
5306
|
+
this.u2a_1 = source.length;
|
|
5307
|
+
this.z2e('Expected end of the block comment: "*/", but had EOF instead');
|
|
5308
5308
|
} else {
|
|
5309
5309
|
current = current + 2 | 0;
|
|
5310
5310
|
}
|
|
@@ -5313,22 +5313,22 @@
|
|
|
5313
5313
|
}
|
|
5314
5314
|
break $l$loop_1;
|
|
5315
5315
|
}
|
|
5316
|
-
this.
|
|
5316
|
+
this.u2a_1 = current;
|
|
5317
5317
|
return current;
|
|
5318
5318
|
};
|
|
5319
5319
|
function StringJsonLexer(source) {
|
|
5320
5320
|
AbstractJsonLexer.call(this);
|
|
5321
|
-
this.
|
|
5321
|
+
this.q2n_1 = source;
|
|
5322
5322
|
}
|
|
5323
|
-
protoOf(StringJsonLexer).
|
|
5324
|
-
return this.
|
|
5323
|
+
protoOf(StringJsonLexer).x2m = function () {
|
|
5324
|
+
return this.q2n_1;
|
|
5325
5325
|
};
|
|
5326
|
-
protoOf(StringJsonLexer).
|
|
5327
|
-
return position < this.
|
|
5326
|
+
protoOf(StringJsonLexer).y2m = function (position) {
|
|
5327
|
+
return position < this.x2m().length ? position : -1;
|
|
5328
5328
|
};
|
|
5329
|
-
protoOf(StringJsonLexer).
|
|
5330
|
-
var source = this.
|
|
5331
|
-
var cpos = this.
|
|
5329
|
+
protoOf(StringJsonLexer).j2g = function () {
|
|
5330
|
+
var source = this.x2m();
|
|
5331
|
+
var cpos = this.u2a_1;
|
|
5332
5332
|
$l$loop: while (!(cpos === -1) && cpos < source.length) {
|
|
5333
5333
|
var _unary__edvuaz = cpos;
|
|
5334
5334
|
cpos = _unary__edvuaz + 1 | 0;
|
|
@@ -5336,17 +5336,17 @@
|
|
|
5336
5336
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
5337
5337
|
if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9))
|
|
5338
5338
|
continue $l$loop;
|
|
5339
|
-
this.
|
|
5339
|
+
this.u2a_1 = cpos;
|
|
5340
5340
|
return charToTokenClass(c);
|
|
5341
5341
|
}
|
|
5342
|
-
this.
|
|
5342
|
+
this.u2a_1 = source.length;
|
|
5343
5343
|
return 10;
|
|
5344
5344
|
};
|
|
5345
|
-
protoOf(StringJsonLexer).
|
|
5346
|
-
var current = this.
|
|
5345
|
+
protoOf(StringJsonLexer).f2g = function () {
|
|
5346
|
+
var current = this.u2a_1;
|
|
5347
5347
|
if (current === -1)
|
|
5348
5348
|
return false;
|
|
5349
|
-
var source = this.
|
|
5349
|
+
var source = this.x2m();
|
|
5350
5350
|
$l$loop: while (current < source.length) {
|
|
5351
5351
|
var c = charCodeAt(source, current);
|
|
5352
5352
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
@@ -5354,17 +5354,17 @@
|
|
|
5354
5354
|
current = current + 1 | 0;
|
|
5355
5355
|
continue $l$loop;
|
|
5356
5356
|
}
|
|
5357
|
-
this.
|
|
5358
|
-
return this.
|
|
5357
|
+
this.u2a_1 = current;
|
|
5358
|
+
return this.b2n(c);
|
|
5359
5359
|
}
|
|
5360
|
-
this.
|
|
5360
|
+
this.u2a_1 = current;
|
|
5361
5361
|
return false;
|
|
5362
5362
|
};
|
|
5363
|
-
protoOf(StringJsonLexer).
|
|
5364
|
-
var current = this.
|
|
5363
|
+
protoOf(StringJsonLexer).a2n = function () {
|
|
5364
|
+
var current = this.u2a_1;
|
|
5365
5365
|
if (current === -1)
|
|
5366
5366
|
return current;
|
|
5367
|
-
var source = this.
|
|
5367
|
+
var source = this.x2m();
|
|
5368
5368
|
$l$loop: while (current < source.length) {
|
|
5369
5369
|
var c = charCodeAt(source, current);
|
|
5370
5370
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
@@ -5374,15 +5374,15 @@
|
|
|
5374
5374
|
break $l$loop;
|
|
5375
5375
|
}
|
|
5376
5376
|
}
|
|
5377
|
-
this.
|
|
5377
|
+
this.u2a_1 = current;
|
|
5378
5378
|
return current;
|
|
5379
5379
|
};
|
|
5380
|
-
protoOf(StringJsonLexer).
|
|
5381
|
-
if (this.
|
|
5382
|
-
this.
|
|
5380
|
+
protoOf(StringJsonLexer).q2h = function (expected) {
|
|
5381
|
+
if (this.u2a_1 === -1) {
|
|
5382
|
+
this.c2n(expected);
|
|
5383
5383
|
}
|
|
5384
|
-
var source = this.
|
|
5385
|
-
var cpos = this.
|
|
5384
|
+
var source = this.x2m();
|
|
5385
|
+
var cpos = this.u2a_1;
|
|
5386
5386
|
$l$loop: while (cpos < source.length) {
|
|
5387
5387
|
var _unary__edvuaz = cpos;
|
|
5388
5388
|
cpos = _unary__edvuaz + 1 | 0;
|
|
@@ -5390,83 +5390,83 @@
|
|
|
5390
5390
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
5391
5391
|
if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9))
|
|
5392
5392
|
continue $l$loop;
|
|
5393
|
-
this.
|
|
5393
|
+
this.u2a_1 = cpos;
|
|
5394
5394
|
if (c === expected)
|
|
5395
5395
|
return Unit_instance;
|
|
5396
|
-
this.
|
|
5396
|
+
this.c2n(expected);
|
|
5397
5397
|
}
|
|
5398
|
-
this.
|
|
5399
|
-
this.
|
|
5398
|
+
this.u2a_1 = -1;
|
|
5399
|
+
this.c2n(expected);
|
|
5400
5400
|
};
|
|
5401
|
-
protoOf(StringJsonLexer).
|
|
5402
|
-
this.
|
|
5403
|
-
var current = this.
|
|
5404
|
-
var closingQuote = indexOf_0(this.
|
|
5401
|
+
protoOf(StringJsonLexer).w2h = function () {
|
|
5402
|
+
this.q2h(_Char___init__impl__6a9atx(34));
|
|
5403
|
+
var current = this.u2a_1;
|
|
5404
|
+
var closingQuote = indexOf_0(this.x2m(), _Char___init__impl__6a9atx(34), current);
|
|
5405
5405
|
if (closingQuote === -1) {
|
|
5406
|
-
this.
|
|
5406
|
+
this.h2g();
|
|
5407
5407
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
5408
5408
|
var expected = tokenDescription(1);
|
|
5409
|
-
var position = false ? this.
|
|
5410
|
-
var s = this.
|
|
5409
|
+
var position = false ? this.u2a_1 - 1 | 0 : this.u2a_1;
|
|
5410
|
+
var s = this.u2a_1 === charSequenceLength(this.x2m()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.x2m(), position));
|
|
5411
5411
|
var tmp$ret$1 = 'Expected ' + expected + ", but had '" + s + "' instead";
|
|
5412
|
-
this.
|
|
5412
|
+
this.z2e(tmp$ret$1, position);
|
|
5413
5413
|
}
|
|
5414
5414
|
var inductionVariable = current;
|
|
5415
5415
|
if (inductionVariable < closingQuote)
|
|
5416
5416
|
do {
|
|
5417
5417
|
var i = inductionVariable;
|
|
5418
5418
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5419
|
-
if (charCodeAt(this.
|
|
5420
|
-
return this.consumeString2(this.
|
|
5419
|
+
if (charCodeAt(this.x2m(), i) === _Char___init__impl__6a9atx(92)) {
|
|
5420
|
+
return this.consumeString2(this.x2m(), this.u2a_1, i);
|
|
5421
5421
|
}
|
|
5422
5422
|
}
|
|
5423
5423
|
while (inductionVariable < closingQuote);
|
|
5424
|
-
this.
|
|
5425
|
-
return substring(this.
|
|
5424
|
+
this.u2a_1 = closingQuote + 1 | 0;
|
|
5425
|
+
return substring(this.x2m(), current, closingQuote);
|
|
5426
5426
|
};
|
|
5427
|
-
protoOf(StringJsonLexer).
|
|
5428
|
-
var positionSnapshot = this.
|
|
5427
|
+
protoOf(StringJsonLexer).y2h = function (keyToMatch, isLenient) {
|
|
5428
|
+
var positionSnapshot = this.u2a_1;
|
|
5429
5429
|
try {
|
|
5430
|
-
if (!(this.
|
|
5430
|
+
if (!(this.j2g() === 6))
|
|
5431
5431
|
return null;
|
|
5432
|
-
var firstKey = this.
|
|
5432
|
+
var firstKey = this.t2h(isLenient);
|
|
5433
5433
|
if (!(firstKey === keyToMatch))
|
|
5434
5434
|
return null;
|
|
5435
|
-
this.
|
|
5436
|
-
if (!(this.
|
|
5435
|
+
this.d2n();
|
|
5436
|
+
if (!(this.j2g() === 5))
|
|
5437
5437
|
return null;
|
|
5438
|
-
return this.
|
|
5438
|
+
return this.t2h(isLenient);
|
|
5439
5439
|
}finally {
|
|
5440
|
-
this.
|
|
5441
|
-
this.
|
|
5440
|
+
this.u2a_1 = positionSnapshot;
|
|
5441
|
+
this.d2n();
|
|
5442
5442
|
}
|
|
5443
5443
|
};
|
|
5444
5444
|
function StringJsonLexer_0(json, source) {
|
|
5445
|
-
return !json.
|
|
5445
|
+
return !json.d2a_1.h2c_1 ? new StringJsonLexer(source) : new StringJsonLexerWithComments(source);
|
|
5446
5446
|
}
|
|
5447
5447
|
function get_schemaCache(_this__u8e3s4) {
|
|
5448
|
-
return _this__u8e3s4.
|
|
5448
|
+
return _this__u8e3s4.f2a_1;
|
|
5449
5449
|
}
|
|
5450
5450
|
function JsonToStringWriter() {
|
|
5451
|
-
this.
|
|
5451
|
+
this.k2a_1 = StringBuilder_init_$Create$_0(128);
|
|
5452
5452
|
}
|
|
5453
|
-
protoOf(JsonToStringWriter).
|
|
5454
|
-
this.
|
|
5453
|
+
protoOf(JsonToStringWriter).d2e = function (value) {
|
|
5454
|
+
this.k2a_1.nb(value);
|
|
5455
5455
|
};
|
|
5456
|
-
protoOf(JsonToStringWriter).
|
|
5457
|
-
this.
|
|
5456
|
+
protoOf(JsonToStringWriter).x2d = function (char) {
|
|
5457
|
+
this.k2a_1.q(char);
|
|
5458
5458
|
};
|
|
5459
|
-
protoOf(JsonToStringWriter).
|
|
5460
|
-
this.
|
|
5459
|
+
protoOf(JsonToStringWriter).z2d = function (text) {
|
|
5460
|
+
this.k2a_1.o(text);
|
|
5461
5461
|
};
|
|
5462
|
-
protoOf(JsonToStringWriter).
|
|
5463
|
-
printQuoted(this.
|
|
5462
|
+
protoOf(JsonToStringWriter).j2e = function (text) {
|
|
5463
|
+
printQuoted(this.k2a_1, text);
|
|
5464
5464
|
};
|
|
5465
|
-
protoOf(JsonToStringWriter).
|
|
5466
|
-
this.
|
|
5465
|
+
protoOf(JsonToStringWriter).l2a = function () {
|
|
5466
|
+
this.k2a_1.qb();
|
|
5467
5467
|
};
|
|
5468
5468
|
protoOf(JsonToStringWriter).toString = function () {
|
|
5469
|
-
return this.
|
|
5469
|
+
return this.k2a_1.toString();
|
|
5470
5470
|
};
|
|
5471
5471
|
function createMapForCache(initialCapacity) {
|
|
5472
5472
|
return HashMap_init_$Create$(initialCapacity);
|