@flock/wirespec 0.18.4 → 0.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +406 -406
- package/kotlin-kotlin-stdlib.mjs +5 -5
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4585 -4585
- package/kotlin-rgxgen.mjs +1757 -1757
- package/kotlinx-io-kotlinx-io-core.mjs +397 -397
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1616 -1616
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1271 -1271
- package/mordant-mordant.mjs +1097 -1097
- package/package.json +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +189 -188
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +166 -166
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +218 -217
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +303 -292
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +111 -110
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +149 -146
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +25 -25
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2974 -2934
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +475 -475
- package/wirespec-src-converter-openapi.mjs +365 -365
- package/wirespec-src-plugin-arguments.mjs +115 -115
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +20 -20
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -261,80 +261,80 @@ function Default_getInstance() {
|
|
|
261
261
|
}
|
|
262
262
|
function Json(configuration, serializersModule) {
|
|
263
263
|
Default_getInstance();
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
264
|
+
this.o2j_1 = configuration;
|
|
265
|
+
this.p2j_1 = serializersModule;
|
|
266
|
+
this.q2j_1 = new DescriptorSchemaCache();
|
|
267
267
|
}
|
|
268
|
-
protoOf(Json).
|
|
269
|
-
return this.
|
|
268
|
+
protoOf(Json).e23 = function () {
|
|
269
|
+
return this.p2j_1;
|
|
270
270
|
};
|
|
271
|
-
protoOf(Json).
|
|
271
|
+
protoOf(Json).r2j = function (serializer, value) {
|
|
272
272
|
var result = new JsonToStringWriter();
|
|
273
273
|
try {
|
|
274
274
|
encodeByWriter(this, result, serializer, value);
|
|
275
275
|
return result.toString();
|
|
276
276
|
}finally {
|
|
277
|
-
result.
|
|
277
|
+
result.v2j();
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
|
-
protoOf(Json).
|
|
280
|
+
protoOf(Json).s2j = function (deserializer, string) {
|
|
281
281
|
var lexer = StringJsonLexer_0(this, string);
|
|
282
|
-
var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.
|
|
283
|
-
var result = input.
|
|
284
|
-
lexer.
|
|
282
|
+
var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.p1z(), null);
|
|
283
|
+
var result = input.o22(deserializer);
|
|
284
|
+
lexer.i2k();
|
|
285
285
|
return result;
|
|
286
286
|
};
|
|
287
|
-
protoOf(Json).
|
|
287
|
+
protoOf(Json).t2j = function (deserializer, element) {
|
|
288
288
|
return readJson(this, element, deserializer);
|
|
289
289
|
};
|
|
290
290
|
function Json_0(from, builderAction) {
|
|
291
291
|
from = from === VOID ? Default_getInstance() : from;
|
|
292
292
|
var builder = new JsonBuilder(from);
|
|
293
293
|
builderAction(builder);
|
|
294
|
-
var conf = builder.
|
|
295
|
-
return new JsonImpl(conf, builder.
|
|
294
|
+
var conf = builder.b2l();
|
|
295
|
+
return new JsonImpl(conf, builder.a2l_1);
|
|
296
296
|
}
|
|
297
297
|
function JsonBuilder(json) {
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
303
|
-
this.
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
316
|
-
}
|
|
317
|
-
protoOf(JsonBuilder).
|
|
318
|
-
if (this.
|
|
298
|
+
this.j2k_1 = json.o2j_1.c2l_1;
|
|
299
|
+
this.k2k_1 = json.o2j_1.h2l_1;
|
|
300
|
+
this.l2k_1 = json.o2j_1.d2l_1;
|
|
301
|
+
this.m2k_1 = json.o2j_1.e2l_1;
|
|
302
|
+
this.n2k_1 = json.o2j_1.g2l_1;
|
|
303
|
+
this.o2k_1 = json.o2j_1.i2l_1;
|
|
304
|
+
this.p2k_1 = json.o2j_1.j2l_1;
|
|
305
|
+
this.q2k_1 = json.o2j_1.l2l_1;
|
|
306
|
+
this.r2k_1 = json.o2j_1.s2l_1;
|
|
307
|
+
this.s2k_1 = json.o2j_1.n2l_1;
|
|
308
|
+
this.t2k_1 = json.o2j_1.o2l_1;
|
|
309
|
+
this.u2k_1 = json.o2j_1.p2l_1;
|
|
310
|
+
this.v2k_1 = json.o2j_1.q2l_1;
|
|
311
|
+
this.w2k_1 = json.o2j_1.r2l_1;
|
|
312
|
+
this.x2k_1 = json.o2j_1.m2l_1;
|
|
313
|
+
this.y2k_1 = json.o2j_1.f2l_1;
|
|
314
|
+
this.z2k_1 = json.o2j_1.k2l_1;
|
|
315
|
+
this.a2l_1 = json.e23();
|
|
316
|
+
}
|
|
317
|
+
protoOf(JsonBuilder).b2l = function () {
|
|
318
|
+
if (this.z2k_1) {
|
|
319
319
|
// Inline function 'kotlin.require' call
|
|
320
|
-
if (!(this.
|
|
320
|
+
if (!(this.q2k_1 === 'type')) {
|
|
321
321
|
var message = 'Class discriminator should not be specified when array polymorphism is specified';
|
|
322
322
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
323
323
|
}
|
|
324
324
|
// Inline function 'kotlin.require' call
|
|
325
|
-
if (!this.
|
|
325
|
+
if (!this.r2k_1.equals(ClassDiscriminatorMode_POLYMORPHIC_getInstance())) {
|
|
326
326
|
var message_0 = 'useArrayPolymorphism option can only be used if classDiscriminatorMode in a default POLYMORPHIC state.';
|
|
327
327
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
if (!this.
|
|
330
|
+
if (!this.n2k_1) {
|
|
331
331
|
// Inline function 'kotlin.require' call
|
|
332
|
-
if (!(this.
|
|
332
|
+
if (!(this.o2k_1 === ' ')) {
|
|
333
333
|
var message_1 = 'Indent should not be specified when default printing mode is used';
|
|
334
334
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
335
335
|
}
|
|
336
|
-
} else if (!(this.
|
|
337
|
-
var tmp0 = this.
|
|
336
|
+
} else if (!(this.o2k_1 === ' ')) {
|
|
337
|
+
var tmp0 = this.o2k_1;
|
|
338
338
|
var tmp$ret$7;
|
|
339
339
|
$l$block: {
|
|
340
340
|
// Inline function 'kotlin.text.all' call
|
|
@@ -352,17 +352,17 @@ protoOf(JsonBuilder).a2l = function () {
|
|
|
352
352
|
var allWhitespaces = tmp$ret$7;
|
|
353
353
|
// Inline function 'kotlin.require' call
|
|
354
354
|
if (!allWhitespaces) {
|
|
355
|
-
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.
|
|
355
|
+
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.o2k_1;
|
|
356
356
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
return new JsonConfiguration(this.
|
|
359
|
+
return new JsonConfiguration(this.j2k_1, this.l2k_1, this.m2k_1, this.y2k_1, this.n2k_1, this.k2k_1, this.o2k_1, this.p2k_1, this.z2k_1, this.q2k_1, this.x2k_1, this.s2k_1, this.t2k_1, this.u2k_1, this.v2k_1, this.w2k_1, this.r2k_1);
|
|
360
360
|
};
|
|
361
361
|
function validateConfiguration($this) {
|
|
362
|
-
if (equals($this.
|
|
362
|
+
if (equals($this.e23(), EmptySerializersModule()))
|
|
363
363
|
return Unit_instance;
|
|
364
|
-
var collector = new PolymorphismValidator($this.
|
|
365
|
-
$this.
|
|
364
|
+
var collector = new PolymorphismValidator($this.o2j_1.k2l_1, $this.o2j_1.l2l_1);
|
|
365
|
+
$this.e23().w2i(collector);
|
|
366
366
|
}
|
|
367
367
|
function JsonImpl(configuration, module_0) {
|
|
368
368
|
Json.call(this, configuration, module_0);
|
|
@@ -390,26 +390,26 @@ function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowSt
|
|
|
390
390
|
allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
|
|
391
391
|
allowComments = allowComments === VOID ? false : allowComments;
|
|
392
392
|
classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
409
|
-
this.
|
|
393
|
+
this.c2l_1 = encodeDefaults;
|
|
394
|
+
this.d2l_1 = ignoreUnknownKeys;
|
|
395
|
+
this.e2l_1 = isLenient;
|
|
396
|
+
this.f2l_1 = allowStructuredMapKeys;
|
|
397
|
+
this.g2l_1 = prettyPrint;
|
|
398
|
+
this.h2l_1 = explicitNulls;
|
|
399
|
+
this.i2l_1 = prettyPrintIndent;
|
|
400
|
+
this.j2l_1 = coerceInputValues;
|
|
401
|
+
this.k2l_1 = useArrayPolymorphism;
|
|
402
|
+
this.l2l_1 = classDiscriminator;
|
|
403
|
+
this.m2l_1 = allowSpecialFloatingPointValues;
|
|
404
|
+
this.n2l_1 = useAlternativeNames;
|
|
405
|
+
this.o2l_1 = namingStrategy;
|
|
406
|
+
this.p2l_1 = decodeEnumsCaseInsensitive;
|
|
407
|
+
this.q2l_1 = allowTrailingComma;
|
|
408
|
+
this.r2l_1 = allowComments;
|
|
409
|
+
this.s2l_1 = classDiscriminatorMode;
|
|
410
410
|
}
|
|
411
411
|
protoOf(JsonConfiguration).toString = function () {
|
|
412
|
-
return 'JsonConfiguration(encodeDefaults=' + this.
|
|
412
|
+
return 'JsonConfiguration(encodeDefaults=' + this.c2l_1 + ', ignoreUnknownKeys=' + this.d2l_1 + ', isLenient=' + this.e2l_1 + ', ' + ('allowStructuredMapKeys=' + this.f2l_1 + ', prettyPrint=' + this.g2l_1 + ', explicitNulls=' + this.h2l_1 + ', ') + ("prettyPrintIndent='" + this.i2l_1 + "', coerceInputValues=" + this.j2l_1 + ', useArrayPolymorphism=' + this.k2l_1 + ', ') + ("classDiscriminator='" + this.l2l_1 + "', allowSpecialFloatingPointValues=" + this.m2l_1 + ', ') + ('useAlternativeNames=' + this.n2l_1 + ', namingStrategy=' + toString_0(this.o2l_1) + ', decodeEnumsCaseInsensitive=' + this.p2l_1 + ', ') + ('allowTrailingComma=' + this.q2l_1 + ', allowComments=' + this.r2l_1 + ', classDiscriminatorMode=' + this.s2l_1.toString() + ')');
|
|
413
413
|
};
|
|
414
414
|
var ClassDiscriminatorMode_NONE_instance;
|
|
415
415
|
var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
|
|
@@ -485,42 +485,42 @@ function Companion_getInstance_5() {
|
|
|
485
485
|
}
|
|
486
486
|
function JsonArray(content) {
|
|
487
487
|
JsonElement.call(this);
|
|
488
|
-
this.
|
|
488
|
+
this.v2l_1 = content;
|
|
489
489
|
}
|
|
490
|
-
protoOf(JsonArray).
|
|
491
|
-
return this.
|
|
490
|
+
protoOf(JsonArray).w2l = function (element) {
|
|
491
|
+
return this.v2l_1.u1(element);
|
|
492
492
|
};
|
|
493
493
|
protoOf(JsonArray).u1 = function (element) {
|
|
494
494
|
if (!(element instanceof JsonElement))
|
|
495
495
|
return false;
|
|
496
|
-
return this.
|
|
496
|
+
return this.w2l(element instanceof JsonElement ? element : THROW_CCE());
|
|
497
497
|
};
|
|
498
498
|
protoOf(JsonArray).f1 = function (index) {
|
|
499
|
-
return this.
|
|
499
|
+
return this.v2l_1.f1(index);
|
|
500
500
|
};
|
|
501
501
|
protoOf(JsonArray).r = function () {
|
|
502
|
-
return this.
|
|
502
|
+
return this.v2l_1.r();
|
|
503
503
|
};
|
|
504
504
|
protoOf(JsonArray).t = function () {
|
|
505
|
-
return this.
|
|
505
|
+
return this.v2l_1.t();
|
|
506
506
|
};
|
|
507
507
|
protoOf(JsonArray).g1 = function (index) {
|
|
508
|
-
return this.
|
|
508
|
+
return this.v2l_1.g1(index);
|
|
509
509
|
};
|
|
510
510
|
protoOf(JsonArray).l2 = function (fromIndex, toIndex) {
|
|
511
|
-
return this.
|
|
511
|
+
return this.v2l_1.l2(fromIndex, toIndex);
|
|
512
512
|
};
|
|
513
513
|
protoOf(JsonArray).a1 = function () {
|
|
514
|
-
return this.
|
|
514
|
+
return this.v2l_1.a1();
|
|
515
515
|
};
|
|
516
516
|
protoOf(JsonArray).equals = function (other) {
|
|
517
|
-
return equals(this.
|
|
517
|
+
return equals(this.v2l_1, other);
|
|
518
518
|
};
|
|
519
519
|
protoOf(JsonArray).hashCode = function () {
|
|
520
|
-
return hashCode(this.
|
|
520
|
+
return hashCode(this.v2l_1);
|
|
521
521
|
};
|
|
522
522
|
protoOf(JsonArray).toString = function () {
|
|
523
|
-
return joinToString(this.
|
|
523
|
+
return joinToString(this.v2l_1, ',', '[', ']');
|
|
524
524
|
};
|
|
525
525
|
function Companion_2() {
|
|
526
526
|
}
|
|
@@ -543,18 +543,18 @@ function JsonObject$toString$lambda(_destruct__k2r9zo) {
|
|
|
543
543
|
}
|
|
544
544
|
function JsonObject(content) {
|
|
545
545
|
JsonElement.call(this);
|
|
546
|
-
this.
|
|
546
|
+
this.x2l_1 = content;
|
|
547
547
|
}
|
|
548
|
-
protoOf(JsonObject).
|
|
549
|
-
return this.
|
|
548
|
+
protoOf(JsonObject).y2l = function (key) {
|
|
549
|
+
return this.x2l_1.n2(key);
|
|
550
550
|
};
|
|
551
551
|
protoOf(JsonObject).n2 = function (key) {
|
|
552
552
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
553
553
|
return false;
|
|
554
|
-
return this.
|
|
554
|
+
return this.y2l((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
555
555
|
};
|
|
556
556
|
protoOf(JsonObject).ad = function (key) {
|
|
557
|
-
return this.
|
|
557
|
+
return this.x2l_1.p2(key);
|
|
558
558
|
};
|
|
559
559
|
protoOf(JsonObject).p2 = function (key) {
|
|
560
560
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
@@ -562,28 +562,28 @@ protoOf(JsonObject).p2 = function (key) {
|
|
|
562
562
|
return this.ad((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
563
563
|
};
|
|
564
564
|
protoOf(JsonObject).r = function () {
|
|
565
|
-
return this.
|
|
565
|
+
return this.x2l_1.r();
|
|
566
566
|
};
|
|
567
567
|
protoOf(JsonObject).j1 = function () {
|
|
568
|
-
return this.
|
|
568
|
+
return this.x2l_1.j1();
|
|
569
569
|
};
|
|
570
570
|
protoOf(JsonObject).q2 = function () {
|
|
571
|
-
return this.
|
|
571
|
+
return this.x2l_1.q2();
|
|
572
572
|
};
|
|
573
573
|
protoOf(JsonObject).a1 = function () {
|
|
574
|
-
return this.
|
|
574
|
+
return this.x2l_1.a1();
|
|
575
575
|
};
|
|
576
576
|
protoOf(JsonObject).r2 = function () {
|
|
577
|
-
return this.
|
|
577
|
+
return this.x2l_1.r2();
|
|
578
578
|
};
|
|
579
579
|
protoOf(JsonObject).equals = function (other) {
|
|
580
|
-
return equals(this.
|
|
580
|
+
return equals(this.x2l_1, other);
|
|
581
581
|
};
|
|
582
582
|
protoOf(JsonObject).hashCode = function () {
|
|
583
|
-
return hashCode(this.
|
|
583
|
+
return hashCode(this.x2l_1);
|
|
584
584
|
};
|
|
585
585
|
protoOf(JsonObject).toString = function () {
|
|
586
|
-
var tmp = this.
|
|
586
|
+
var tmp = this.x2l_1.j1();
|
|
587
587
|
return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
|
|
588
588
|
};
|
|
589
589
|
function get_jsonObject(_this__u8e3s4) {
|
|
@@ -609,7 +609,7 @@ function get_boolean(_this__u8e3s4) {
|
|
|
609
609
|
return tmp;
|
|
610
610
|
}
|
|
611
611
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
612
|
-
return $this.
|
|
612
|
+
return $this.a2m_1.l1();
|
|
613
613
|
}
|
|
614
614
|
function JsonNull$_anonymous__enib48() {
|
|
615
615
|
return JsonNullSerializer_getInstance();
|
|
@@ -617,19 +617,19 @@ function JsonNull$_anonymous__enib48() {
|
|
|
617
617
|
function JsonNull() {
|
|
618
618
|
JsonNull_instance = this;
|
|
619
619
|
JsonPrimitive.call(this);
|
|
620
|
-
this.
|
|
620
|
+
this.z2l_1 = 'null';
|
|
621
621
|
var tmp = this;
|
|
622
622
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
623
|
-
tmp.
|
|
623
|
+
tmp.a2m_1 = lazy(tmp_0, JsonNull$_anonymous__enib48);
|
|
624
624
|
}
|
|
625
625
|
protoOf(JsonNull).hx = function () {
|
|
626
|
-
return this.
|
|
626
|
+
return this.z2l_1;
|
|
627
627
|
};
|
|
628
|
-
protoOf(JsonNull).
|
|
628
|
+
protoOf(JsonNull).b2m = function () {
|
|
629
629
|
return _get_$cachedSerializer__te6jhj(this);
|
|
630
630
|
};
|
|
631
|
-
protoOf(JsonNull).
|
|
632
|
-
return this.
|
|
631
|
+
protoOf(JsonNull).d2b = function (typeParamsSerializers) {
|
|
632
|
+
return this.b2m();
|
|
633
633
|
};
|
|
634
634
|
var JsonNull_instance;
|
|
635
635
|
function JsonNull_getInstance() {
|
|
@@ -640,31 +640,31 @@ function JsonNull_getInstance() {
|
|
|
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.c2m_1 = isString;
|
|
644
|
+
this.d2m_1 = coerceToInlineType;
|
|
645
|
+
this.e2m_1 = toString(body);
|
|
646
|
+
if (!(this.d2m_1 == null)) {
|
|
647
647
|
// Inline function 'kotlin.require' call
|
|
648
648
|
// Inline function 'kotlin.require' call
|
|
649
|
-
if (!this.
|
|
649
|
+
if (!this.d2m_1.c21()) {
|
|
650
650
|
var message = 'Failed requirement.';
|
|
651
651
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
protoOf(JsonLiteral).hx = function () {
|
|
656
|
-
return this.
|
|
656
|
+
return this.e2m_1;
|
|
657
657
|
};
|
|
658
658
|
protoOf(JsonLiteral).toString = function () {
|
|
659
659
|
var tmp;
|
|
660
|
-
if (this.
|
|
660
|
+
if (this.c2m_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.e2m_1);
|
|
665
665
|
tmp = this_0.toString();
|
|
666
666
|
} else {
|
|
667
|
-
tmp = this.
|
|
667
|
+
tmp = this.e2m_1;
|
|
668
668
|
}
|
|
669
669
|
return tmp;
|
|
670
670
|
};
|
|
@@ -675,15 +675,15 @@ protoOf(JsonLiteral).equals = function (other) {
|
|
|
675
675
|
return false;
|
|
676
676
|
if (!(other instanceof JsonLiteral))
|
|
677
677
|
THROW_CCE();
|
|
678
|
-
if (!(this.
|
|
678
|
+
if (!(this.c2m_1 === other.c2m_1))
|
|
679
679
|
return false;
|
|
680
|
-
if (!(this.
|
|
680
|
+
if (!(this.e2m_1 === other.e2m_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.c2m_1);
|
|
686
|
+
result = imul(31, result) + getStringHashCode(this.e2m_1) | 0;
|
|
687
687
|
return result;
|
|
688
688
|
};
|
|
689
689
|
function error(_this__u8e3s4, element) {
|
|
@@ -699,7 +699,7 @@ function get_int(_this__u8e3s4) {
|
|
|
699
699
|
// Inline function 'kotlinx.serialization.json.mapExceptions' call
|
|
700
700
|
var tmp;
|
|
701
701
|
try {
|
|
702
|
-
tmp = (new StringJsonLexer(_this__u8e3s4.hx())).
|
|
702
|
+
tmp = (new StringJsonLexer(_this__u8e3s4.hx())).f2m();
|
|
703
703
|
} catch ($p) {
|
|
704
704
|
var tmp_0;
|
|
705
705
|
if ($p instanceof JsonDecodingException) {
|
|
@@ -721,7 +721,7 @@ function get_long(_this__u8e3s4) {
|
|
|
721
721
|
// Inline function 'kotlinx.serialization.json.mapExceptions' call
|
|
722
722
|
var tmp;
|
|
723
723
|
try {
|
|
724
|
-
tmp = (new StringJsonLexer(_this__u8e3s4.hx())).
|
|
724
|
+
tmp = (new StringJsonLexer(_this__u8e3s4.hx())).f2m();
|
|
725
725
|
} catch ($p) {
|
|
726
726
|
var tmp_0;
|
|
727
727
|
if ($p instanceof JsonDecodingException) {
|
|
@@ -776,59 +776,59 @@ function _init_properties_JsonElement_kt__7cbdc2() {
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
|
|
779
|
-
$this$buildSerialDescriptor.
|
|
780
|
-
$this$buildSerialDescriptor.
|
|
781
|
-
$this$buildSerialDescriptor.
|
|
782
|
-
$this$buildSerialDescriptor.
|
|
783
|
-
$this$buildSerialDescriptor.
|
|
779
|
+
$this$buildSerialDescriptor.d20('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
|
|
780
|
+
$this$buildSerialDescriptor.d20('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0));
|
|
781
|
+
$this$buildSerialDescriptor.d20('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1));
|
|
782
|
+
$this$buildSerialDescriptor.d20('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2));
|
|
783
|
+
$this$buildSerialDescriptor.d20('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3));
|
|
784
784
|
return Unit_instance;
|
|
785
785
|
}
|
|
786
786
|
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
787
|
-
return JsonPrimitiveSerializer_getInstance().
|
|
787
|
+
return JsonPrimitiveSerializer_getInstance().g2m_1;
|
|
788
788
|
}
|
|
789
789
|
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
790
|
-
return JsonNullSerializer_getInstance().
|
|
790
|
+
return JsonNullSerializer_getInstance().h2m_1;
|
|
791
791
|
}
|
|
792
792
|
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
793
|
-
return JsonLiteralSerializer_getInstance().
|
|
793
|
+
return JsonLiteralSerializer_getInstance().i2m_1;
|
|
794
794
|
}
|
|
795
795
|
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
796
|
-
return JsonObjectSerializer_getInstance().
|
|
796
|
+
return JsonObjectSerializer_getInstance().j2m_1;
|
|
797
797
|
}
|
|
798
798
|
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
799
|
-
return JsonArraySerializer_getInstance().
|
|
799
|
+
return JsonArraySerializer_getInstance().k2m_1;
|
|
800
800
|
}
|
|
801
801
|
function JsonElementSerializer() {
|
|
802
802
|
JsonElementSerializer_instance = this;
|
|
803
803
|
var tmp = this;
|
|
804
804
|
var tmp_0 = SEALED_getInstance();
|
|
805
|
-
tmp.
|
|
805
|
+
tmp.l2m_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
806
806
|
}
|
|
807
|
-
protoOf(JsonElementSerializer).
|
|
808
|
-
return this.
|
|
807
|
+
protoOf(JsonElementSerializer).p1z = function () {
|
|
808
|
+
return this.l2m_1;
|
|
809
809
|
};
|
|
810
|
-
protoOf(JsonElementSerializer).
|
|
810
|
+
protoOf(JsonElementSerializer).m2m = function (encoder, value) {
|
|
811
811
|
verify(encoder);
|
|
812
812
|
if (value instanceof JsonPrimitive) {
|
|
813
|
-
encoder.
|
|
813
|
+
encoder.h24(JsonPrimitiveSerializer_getInstance(), value);
|
|
814
814
|
} else {
|
|
815
815
|
if (value instanceof JsonObject) {
|
|
816
|
-
encoder.
|
|
816
|
+
encoder.h24(JsonObjectSerializer_getInstance(), value);
|
|
817
817
|
} else {
|
|
818
818
|
if (value instanceof JsonArray) {
|
|
819
|
-
encoder.
|
|
819
|
+
encoder.h24(JsonArraySerializer_getInstance(), value);
|
|
820
820
|
} else {
|
|
821
821
|
noWhenBranchMatchedException();
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
825
|
};
|
|
826
|
-
protoOf(JsonElementSerializer).
|
|
827
|
-
return this.
|
|
826
|
+
protoOf(JsonElementSerializer).q1z = function (encoder, value) {
|
|
827
|
+
return this.m2m(encoder, value instanceof JsonElement ? value : THROW_CCE());
|
|
828
828
|
};
|
|
829
|
-
protoOf(JsonElementSerializer).
|
|
829
|
+
protoOf(JsonElementSerializer).r1z = function (decoder) {
|
|
830
830
|
var input = asJsonDecoder(decoder);
|
|
831
|
-
return input.
|
|
831
|
+
return input.u2l();
|
|
832
832
|
};
|
|
833
833
|
var JsonElementSerializer_instance;
|
|
834
834
|
function JsonElementSerializer_getInstance() {
|
|
@@ -838,29 +838,29 @@ function JsonElementSerializer_getInstance() {
|
|
|
838
838
|
}
|
|
839
839
|
function JsonPrimitiveSerializer() {
|
|
840
840
|
JsonPrimitiveSerializer_instance = this;
|
|
841
|
-
this.
|
|
841
|
+
this.g2m_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
842
842
|
}
|
|
843
|
-
protoOf(JsonPrimitiveSerializer).
|
|
844
|
-
return this.
|
|
843
|
+
protoOf(JsonPrimitiveSerializer).p1z = function () {
|
|
844
|
+
return this.g2m_1;
|
|
845
845
|
};
|
|
846
|
-
protoOf(JsonPrimitiveSerializer).
|
|
846
|
+
protoOf(JsonPrimitiveSerializer).n2m = function (encoder, value) {
|
|
847
847
|
verify(encoder);
|
|
848
848
|
var tmp;
|
|
849
849
|
if (value instanceof JsonNull) {
|
|
850
|
-
encoder.
|
|
850
|
+
encoder.h24(JsonNullSerializer_getInstance(), JsonNull_getInstance());
|
|
851
851
|
tmp = Unit_instance;
|
|
852
852
|
} else {
|
|
853
853
|
var tmp_0 = JsonLiteralSerializer_getInstance();
|
|
854
|
-
encoder.
|
|
854
|
+
encoder.h24(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
855
855
|
tmp = Unit_instance;
|
|
856
856
|
}
|
|
857
857
|
return tmp;
|
|
858
858
|
};
|
|
859
|
-
protoOf(JsonPrimitiveSerializer).
|
|
860
|
-
return this.
|
|
859
|
+
protoOf(JsonPrimitiveSerializer).q1z = function (encoder, value) {
|
|
860
|
+
return this.n2m(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
861
861
|
};
|
|
862
|
-
protoOf(JsonPrimitiveSerializer).
|
|
863
|
-
var result = asJsonDecoder(decoder).
|
|
862
|
+
protoOf(JsonPrimitiveSerializer).r1z = function (decoder) {
|
|
863
|
+
var result = asJsonDecoder(decoder).u2l();
|
|
864
864
|
if (!(result instanceof JsonPrimitive))
|
|
865
865
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
866
866
|
return result;
|
|
@@ -873,41 +873,41 @@ function JsonPrimitiveSerializer_getInstance() {
|
|
|
873
873
|
}
|
|
874
874
|
function JsonArrayDescriptor() {
|
|
875
875
|
JsonArrayDescriptor_instance = this;
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
876
|
+
this.o2m_1 = ListSerializer(JsonElementSerializer_getInstance()).p1z();
|
|
877
|
+
this.p2m_1 = 'kotlinx.serialization.json.JsonArray';
|
|
878
878
|
}
|
|
879
|
-
protoOf(JsonArrayDescriptor).
|
|
880
|
-
return this.
|
|
881
|
-
};
|
|
882
|
-
protoOf(JsonArrayDescriptor).w20 = function (name) {
|
|
883
|
-
return this.n2m_1.w20(name);
|
|
879
|
+
protoOf(JsonArrayDescriptor).w20 = function (index) {
|
|
880
|
+
return this.o2m_1.w20(index);
|
|
884
881
|
};
|
|
885
|
-
protoOf(JsonArrayDescriptor).x20 = function (
|
|
886
|
-
return this.
|
|
882
|
+
protoOf(JsonArrayDescriptor).x20 = function (name) {
|
|
883
|
+
return this.o2m_1.x20(name);
|
|
887
884
|
};
|
|
888
885
|
protoOf(JsonArrayDescriptor).y20 = function (index) {
|
|
889
|
-
return this.
|
|
886
|
+
return this.o2m_1.y20(index);
|
|
890
887
|
};
|
|
891
888
|
protoOf(JsonArrayDescriptor).z20 = function (index) {
|
|
892
|
-
return this.
|
|
889
|
+
return this.o2m_1.z20(index);
|
|
893
890
|
};
|
|
894
|
-
protoOf(JsonArrayDescriptor).a21 = function () {
|
|
895
|
-
return this.
|
|
896
|
-
};
|
|
897
|
-
protoOf(JsonArrayDescriptor).cu = function () {
|
|
898
|
-
return this.n2m_1.cu();
|
|
891
|
+
protoOf(JsonArrayDescriptor).a21 = function (index) {
|
|
892
|
+
return this.o2m_1.a21(index);
|
|
899
893
|
};
|
|
900
894
|
protoOf(JsonArrayDescriptor).b21 = function () {
|
|
901
|
-
return this.
|
|
895
|
+
return this.o2m_1.b21();
|
|
896
|
+
};
|
|
897
|
+
protoOf(JsonArrayDescriptor).cu = function () {
|
|
898
|
+
return this.o2m_1.cu();
|
|
902
899
|
};
|
|
903
900
|
protoOf(JsonArrayDescriptor).c21 = function () {
|
|
904
|
-
return this.
|
|
901
|
+
return this.o2m_1.c21();
|
|
905
902
|
};
|
|
906
903
|
protoOf(JsonArrayDescriptor).d21 = function () {
|
|
907
|
-
return this.
|
|
904
|
+
return this.o2m_1.d21();
|
|
905
|
+
};
|
|
906
|
+
protoOf(JsonArrayDescriptor).e21 = function () {
|
|
907
|
+
return this.o2m_1.e21();
|
|
908
908
|
};
|
|
909
|
-
protoOf(JsonArrayDescriptor).
|
|
910
|
-
return this.
|
|
909
|
+
protoOf(JsonArrayDescriptor).v20 = function () {
|
|
910
|
+
return this.p2m_1;
|
|
911
911
|
};
|
|
912
912
|
var JsonArrayDescriptor_instance;
|
|
913
913
|
function JsonArrayDescriptor_getInstance() {
|
|
@@ -917,21 +917,21 @@ function JsonArrayDescriptor_getInstance() {
|
|
|
917
917
|
}
|
|
918
918
|
function JsonArraySerializer() {
|
|
919
919
|
JsonArraySerializer_instance = this;
|
|
920
|
-
this.
|
|
920
|
+
this.k2m_1 = JsonArrayDescriptor_getInstance();
|
|
921
921
|
}
|
|
922
|
-
protoOf(JsonArraySerializer).
|
|
923
|
-
return this.
|
|
922
|
+
protoOf(JsonArraySerializer).p1z = function () {
|
|
923
|
+
return this.k2m_1;
|
|
924
924
|
};
|
|
925
|
-
protoOf(JsonArraySerializer).
|
|
925
|
+
protoOf(JsonArraySerializer).q2m = function (encoder, value) {
|
|
926
926
|
verify(encoder);
|
|
927
|
-
ListSerializer(JsonElementSerializer_getInstance()).
|
|
927
|
+
ListSerializer(JsonElementSerializer_getInstance()).q1z(encoder, value);
|
|
928
928
|
};
|
|
929
|
-
protoOf(JsonArraySerializer).
|
|
930
|
-
return this.
|
|
929
|
+
protoOf(JsonArraySerializer).q1z = function (encoder, value) {
|
|
930
|
+
return this.q2m(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
931
931
|
};
|
|
932
|
-
protoOf(JsonArraySerializer).
|
|
932
|
+
protoOf(JsonArraySerializer).r1z = function (decoder) {
|
|
933
933
|
verify_0(decoder);
|
|
934
|
-
return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).
|
|
934
|
+
return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).r1z(decoder));
|
|
935
935
|
};
|
|
936
936
|
var JsonArraySerializer_instance;
|
|
937
937
|
function JsonArraySerializer_getInstance() {
|
|
@@ -941,41 +941,41 @@ function JsonArraySerializer_getInstance() {
|
|
|
941
941
|
}
|
|
942
942
|
function JsonObjectDescriptor() {
|
|
943
943
|
JsonObjectDescriptor_instance = this;
|
|
944
|
-
this.
|
|
945
|
-
this.
|
|
944
|
+
this.r2m_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).p1z();
|
|
945
|
+
this.s2m_1 = 'kotlinx.serialization.json.JsonObject';
|
|
946
946
|
}
|
|
947
|
-
protoOf(JsonObjectDescriptor).
|
|
948
|
-
return this.
|
|
947
|
+
protoOf(JsonObjectDescriptor).w20 = function (index) {
|
|
948
|
+
return this.r2m_1.w20(index);
|
|
949
949
|
};
|
|
950
|
-
protoOf(JsonObjectDescriptor).
|
|
951
|
-
return this.
|
|
952
|
-
};
|
|
953
|
-
protoOf(JsonObjectDescriptor).x20 = function (index) {
|
|
954
|
-
return this.q2m_1.x20(index);
|
|
950
|
+
protoOf(JsonObjectDescriptor).x20 = function (name) {
|
|
951
|
+
return this.r2m_1.x20(name);
|
|
955
952
|
};
|
|
956
953
|
protoOf(JsonObjectDescriptor).y20 = function (index) {
|
|
957
|
-
return this.
|
|
954
|
+
return this.r2m_1.y20(index);
|
|
958
955
|
};
|
|
959
956
|
protoOf(JsonObjectDescriptor).z20 = function (index) {
|
|
960
|
-
return this.
|
|
961
|
-
};
|
|
962
|
-
protoOf(JsonObjectDescriptor).a21 = function () {
|
|
963
|
-
return this.q2m_1.a21();
|
|
957
|
+
return this.r2m_1.z20(index);
|
|
964
958
|
};
|
|
965
|
-
protoOf(JsonObjectDescriptor).
|
|
966
|
-
return this.
|
|
959
|
+
protoOf(JsonObjectDescriptor).a21 = function (index) {
|
|
960
|
+
return this.r2m_1.a21(index);
|
|
967
961
|
};
|
|
968
962
|
protoOf(JsonObjectDescriptor).b21 = function () {
|
|
969
|
-
return this.
|
|
963
|
+
return this.r2m_1.b21();
|
|
964
|
+
};
|
|
965
|
+
protoOf(JsonObjectDescriptor).cu = function () {
|
|
966
|
+
return this.r2m_1.cu();
|
|
970
967
|
};
|
|
971
968
|
protoOf(JsonObjectDescriptor).c21 = function () {
|
|
972
|
-
return this.
|
|
969
|
+
return this.r2m_1.c21();
|
|
973
970
|
};
|
|
974
971
|
protoOf(JsonObjectDescriptor).d21 = function () {
|
|
975
|
-
return this.
|
|
972
|
+
return this.r2m_1.d21();
|
|
976
973
|
};
|
|
977
|
-
protoOf(JsonObjectDescriptor).
|
|
978
|
-
return this.r2m_1;
|
|
974
|
+
protoOf(JsonObjectDescriptor).e21 = function () {
|
|
975
|
+
return this.r2m_1.e21();
|
|
976
|
+
};
|
|
977
|
+
protoOf(JsonObjectDescriptor).v20 = function () {
|
|
978
|
+
return this.s2m_1;
|
|
979
979
|
};
|
|
980
980
|
var JsonObjectDescriptor_instance;
|
|
981
981
|
function JsonObjectDescriptor_getInstance() {
|
|
@@ -985,21 +985,21 @@ function JsonObjectDescriptor_getInstance() {
|
|
|
985
985
|
}
|
|
986
986
|
function JsonObjectSerializer() {
|
|
987
987
|
JsonObjectSerializer_instance = this;
|
|
988
|
-
this.
|
|
988
|
+
this.j2m_1 = JsonObjectDescriptor_getInstance();
|
|
989
989
|
}
|
|
990
|
-
protoOf(JsonObjectSerializer).
|
|
991
|
-
return this.
|
|
990
|
+
protoOf(JsonObjectSerializer).p1z = function () {
|
|
991
|
+
return this.j2m_1;
|
|
992
992
|
};
|
|
993
|
-
protoOf(JsonObjectSerializer).
|
|
993
|
+
protoOf(JsonObjectSerializer).t2m = function (encoder, value) {
|
|
994
994
|
verify(encoder);
|
|
995
|
-
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).
|
|
995
|
+
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).q1z(encoder, value);
|
|
996
996
|
};
|
|
997
|
-
protoOf(JsonObjectSerializer).
|
|
998
|
-
return this.
|
|
997
|
+
protoOf(JsonObjectSerializer).q1z = function (encoder, value) {
|
|
998
|
+
return this.t2m(encoder, value instanceof JsonObject ? value : THROW_CCE());
|
|
999
999
|
};
|
|
1000
|
-
protoOf(JsonObjectSerializer).
|
|
1000
|
+
protoOf(JsonObjectSerializer).r1z = function (decoder) {
|
|
1001
1001
|
verify_0(decoder);
|
|
1002
|
-
return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).
|
|
1002
|
+
return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).r1z(decoder));
|
|
1003
1003
|
};
|
|
1004
1004
|
var JsonObjectSerializer_instance;
|
|
1005
1005
|
function JsonObjectSerializer_getInstance() {
|
|
@@ -1009,24 +1009,24 @@ function JsonObjectSerializer_getInstance() {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
function JsonNullSerializer() {
|
|
1011
1011
|
JsonNullSerializer_instance = this;
|
|
1012
|
-
this.
|
|
1012
|
+
this.h2m_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
|
|
1013
1013
|
}
|
|
1014
|
-
protoOf(JsonNullSerializer).
|
|
1015
|
-
return this.
|
|
1014
|
+
protoOf(JsonNullSerializer).p1z = function () {
|
|
1015
|
+
return this.h2m_1;
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf(JsonNullSerializer).
|
|
1017
|
+
protoOf(JsonNullSerializer).u2m = function (encoder, value) {
|
|
1018
1018
|
verify(encoder);
|
|
1019
|
-
encoder.
|
|
1019
|
+
encoder.k23();
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(JsonNullSerializer).
|
|
1022
|
-
return this.
|
|
1021
|
+
protoOf(JsonNullSerializer).q1z = function (encoder, value) {
|
|
1022
|
+
return this.u2m(encoder, value instanceof JsonNull ? value : THROW_CCE());
|
|
1023
1023
|
};
|
|
1024
|
-
protoOf(JsonNullSerializer).
|
|
1024
|
+
protoOf(JsonNullSerializer).r1z = function (decoder) {
|
|
1025
1025
|
verify_0(decoder);
|
|
1026
|
-
if (decoder.
|
|
1026
|
+
if (decoder.a22()) {
|
|
1027
1027
|
throw new JsonDecodingException("Expected 'null' literal");
|
|
1028
1028
|
}
|
|
1029
|
-
decoder.
|
|
1029
|
+
decoder.b22();
|
|
1030
1030
|
return JsonNull_getInstance();
|
|
1031
1031
|
};
|
|
1032
1032
|
var JsonNullSerializer_instance;
|
|
@@ -1040,27 +1040,27 @@ function defer(deferred) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
function JsonLiteralSerializer() {
|
|
1042
1042
|
JsonLiteralSerializer_instance = this;
|
|
1043
|
-
this.
|
|
1043
|
+
this.i2m_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
|
|
1044
1044
|
}
|
|
1045
|
-
protoOf(JsonLiteralSerializer).
|
|
1046
|
-
return this.
|
|
1045
|
+
protoOf(JsonLiteralSerializer).p1z = function () {
|
|
1046
|
+
return this.i2m_1;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(JsonLiteralSerializer).
|
|
1048
|
+
protoOf(JsonLiteralSerializer).v2m = function (encoder, value) {
|
|
1049
1049
|
verify(encoder);
|
|
1050
|
-
if (value.
|
|
1051
|
-
return encoder.
|
|
1050
|
+
if (value.c2m_1) {
|
|
1051
|
+
return encoder.t23(value.e2m_1);
|
|
1052
1052
|
}
|
|
1053
|
-
if (!(value.
|
|
1054
|
-
return encoder.
|
|
1053
|
+
if (!(value.d2m_1 == null)) {
|
|
1054
|
+
return encoder.v23(value.d2m_1).t23(value.e2m_1);
|
|
1055
1055
|
}
|
|
1056
|
-
var tmp2_safe_receiver = toLongOrNull(value.
|
|
1056
|
+
var tmp2_safe_receiver = toLongOrNull(value.e2m_1);
|
|
1057
1057
|
if (tmp2_safe_receiver == null)
|
|
1058
1058
|
null;
|
|
1059
1059
|
else {
|
|
1060
1060
|
// Inline function 'kotlin.let' call
|
|
1061
|
-
return encoder.
|
|
1061
|
+
return encoder.p23(tmp2_safe_receiver);
|
|
1062
1062
|
}
|
|
1063
|
-
var tmp3_safe_receiver = toULongOrNull(value.
|
|
1063
|
+
var tmp3_safe_receiver = toULongOrNull(value.e2m_1);
|
|
1064
1064
|
var tmp = tmp3_safe_receiver;
|
|
1065
1065
|
if ((tmp == null ? null : new ULong(tmp)) == null)
|
|
1066
1066
|
null;
|
|
@@ -1068,33 +1068,33 @@ protoOf(JsonLiteralSerializer).u2m = function (encoder, value) {
|
|
|
1068
1068
|
var tmp_0 = tmp3_safe_receiver;
|
|
1069
1069
|
// Inline function 'kotlin.let' call
|
|
1070
1070
|
var it = (tmp_0 == null ? null : new ULong(tmp_0)).pk_1;
|
|
1071
|
-
var tmp_1 = encoder.
|
|
1071
|
+
var tmp_1 = encoder.v23(serializer_0(Companion_getInstance()).p1z());
|
|
1072
1072
|
// Inline function 'kotlin.ULong.toLong' call
|
|
1073
1073
|
var tmp$ret$1 = _ULong___get_data__impl__fggpzb(it);
|
|
1074
|
-
tmp_1.
|
|
1074
|
+
tmp_1.p23(tmp$ret$1);
|
|
1075
1075
|
return Unit_instance;
|
|
1076
1076
|
}
|
|
1077
|
-
var tmp4_safe_receiver = toDoubleOrNull(value.
|
|
1077
|
+
var tmp4_safe_receiver = toDoubleOrNull(value.e2m_1);
|
|
1078
1078
|
if (tmp4_safe_receiver == null)
|
|
1079
1079
|
null;
|
|
1080
1080
|
else {
|
|
1081
1081
|
// Inline function 'kotlin.let' call
|
|
1082
|
-
return encoder.
|
|
1082
|
+
return encoder.r23(tmp4_safe_receiver);
|
|
1083
1083
|
}
|
|
1084
|
-
var tmp5_safe_receiver = toBooleanStrictOrNull(value.
|
|
1084
|
+
var tmp5_safe_receiver = toBooleanStrictOrNull(value.e2m_1);
|
|
1085
1085
|
if (tmp5_safe_receiver == null)
|
|
1086
1086
|
null;
|
|
1087
1087
|
else {
|
|
1088
1088
|
// Inline function 'kotlin.let' call
|
|
1089
|
-
return encoder.
|
|
1089
|
+
return encoder.l23(tmp5_safe_receiver);
|
|
1090
1090
|
}
|
|
1091
|
-
encoder.
|
|
1091
|
+
encoder.t23(value.e2m_1);
|
|
1092
1092
|
};
|
|
1093
|
-
protoOf(JsonLiteralSerializer).
|
|
1094
|
-
return this.
|
|
1093
|
+
protoOf(JsonLiteralSerializer).q1z = function (encoder, value) {
|
|
1094
|
+
return this.v2m(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
1095
1095
|
};
|
|
1096
|
-
protoOf(JsonLiteralSerializer).
|
|
1097
|
-
var result = asJsonDecoder(decoder).
|
|
1096
|
+
protoOf(JsonLiteralSerializer).r1z = function (decoder) {
|
|
1097
|
+
var result = asJsonDecoder(decoder).u2l();
|
|
1098
1098
|
if (!(result instanceof JsonLiteral))
|
|
1099
1099
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
1100
1100
|
return result;
|
|
@@ -1132,7 +1132,7 @@ function asJsonEncoder(_this__u8e3s4) {
|
|
|
1132
1132
|
return tmp;
|
|
1133
1133
|
}
|
|
1134
1134
|
function _get_original__l7ku1m($this) {
|
|
1135
|
-
var tmp0 = $this.
|
|
1135
|
+
var tmp0 = $this.w2m_1;
|
|
1136
1136
|
var tmp = KProperty1;
|
|
1137
1137
|
// Inline function 'kotlin.getValue' call
|
|
1138
1138
|
getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
|
|
@@ -1144,25 +1144,22 @@ function defer$o$_get_original_$ref_3cje7k() {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
1146
|
function defer$1($deferred) {
|
|
1147
|
-
this.
|
|
1147
|
+
this.w2m_1 = lazy_0($deferred);
|
|
1148
1148
|
}
|
|
1149
|
-
protoOf(defer$1).
|
|
1150
|
-
return _get_original__l7ku1m(this).
|
|
1151
|
-
};
|
|
1152
|
-
protoOf(defer$1).a21 = function () {
|
|
1153
|
-
return _get_original__l7ku1m(this).a21();
|
|
1149
|
+
protoOf(defer$1).v20 = function () {
|
|
1150
|
+
return _get_original__l7ku1m(this).v20();
|
|
1154
1151
|
};
|
|
1155
|
-
protoOf(defer$1).
|
|
1156
|
-
return _get_original__l7ku1m(this).
|
|
1152
|
+
protoOf(defer$1).b21 = function () {
|
|
1153
|
+
return _get_original__l7ku1m(this).b21();
|
|
1157
1154
|
};
|
|
1158
|
-
protoOf(defer$1).
|
|
1159
|
-
return _get_original__l7ku1m(this).
|
|
1155
|
+
protoOf(defer$1).d21 = function () {
|
|
1156
|
+
return _get_original__l7ku1m(this).d21();
|
|
1160
1157
|
};
|
|
1161
|
-
protoOf(defer$1).w20 = function (
|
|
1162
|
-
return _get_original__l7ku1m(this).w20(
|
|
1158
|
+
protoOf(defer$1).w20 = function (index) {
|
|
1159
|
+
return _get_original__l7ku1m(this).w20(index);
|
|
1163
1160
|
};
|
|
1164
|
-
protoOf(defer$1).x20 = function (
|
|
1165
|
-
return _get_original__l7ku1m(this).x20(
|
|
1161
|
+
protoOf(defer$1).x20 = function (name) {
|
|
1162
|
+
return _get_original__l7ku1m(this).x20(name);
|
|
1166
1163
|
};
|
|
1167
1164
|
protoOf(defer$1).y20 = function (index) {
|
|
1168
1165
|
return _get_original__l7ku1m(this).y20(index);
|
|
@@ -1170,158 +1167,161 @@ protoOf(defer$1).y20 = function (index) {
|
|
|
1170
1167
|
protoOf(defer$1).z20 = function (index) {
|
|
1171
1168
|
return _get_original__l7ku1m(this).z20(index);
|
|
1172
1169
|
};
|
|
1170
|
+
protoOf(defer$1).a21 = function (index) {
|
|
1171
|
+
return _get_original__l7ku1m(this).a21(index);
|
|
1172
|
+
};
|
|
1173
1173
|
function JsonEncoder() {
|
|
1174
1174
|
}
|
|
1175
1175
|
function Composer(writer) {
|
|
1176
|
-
this.
|
|
1177
|
-
this.
|
|
1176
|
+
this.x2m_1 = writer;
|
|
1177
|
+
this.y2m_1 = true;
|
|
1178
1178
|
}
|
|
1179
|
-
protoOf(Composer).y2m = function () {
|
|
1180
|
-
this.x2m_1 = true;
|
|
1181
|
-
};
|
|
1182
1179
|
protoOf(Composer).z2m = function () {
|
|
1183
|
-
|
|
1180
|
+
this.y2m_1 = true;
|
|
1184
1181
|
};
|
|
1185
1182
|
protoOf(Composer).a2n = function () {
|
|
1186
|
-
|
|
1183
|
+
return Unit_instance;
|
|
1187
1184
|
};
|
|
1188
1185
|
protoOf(Composer).b2n = function () {
|
|
1189
|
-
this.
|
|
1186
|
+
this.y2m_1 = false;
|
|
1190
1187
|
};
|
|
1191
1188
|
protoOf(Composer).c2n = function () {
|
|
1192
|
-
|
|
1189
|
+
this.y2m_1 = false;
|
|
1193
1190
|
};
|
|
1194
|
-
protoOf(Composer).d2n = function (
|
|
1195
|
-
return
|
|
1191
|
+
protoOf(Composer).d2n = function () {
|
|
1192
|
+
return Unit_instance;
|
|
1196
1193
|
};
|
|
1197
|
-
protoOf(Composer).
|
|
1198
|
-
return this.
|
|
1194
|
+
protoOf(Composer).e2n = function (v) {
|
|
1195
|
+
return this.x2m_1.f2n(v);
|
|
1199
1196
|
};
|
|
1200
|
-
protoOf(Composer).
|
|
1201
|
-
return this.
|
|
1197
|
+
protoOf(Composer).g2n = function (v) {
|
|
1198
|
+
return this.x2m_1.h2n(v);
|
|
1202
1199
|
};
|
|
1203
1200
|
protoOf(Composer).i2n = function (v) {
|
|
1204
|
-
return this.
|
|
1201
|
+
return this.x2m_1.h2n(v.toString());
|
|
1205
1202
|
};
|
|
1206
1203
|
protoOf(Composer).j2n = function (v) {
|
|
1207
|
-
return this.
|
|
1204
|
+
return this.x2m_1.h2n(v.toString());
|
|
1208
1205
|
};
|
|
1209
|
-
protoOf(Composer).
|
|
1210
|
-
return this.
|
|
1206
|
+
protoOf(Composer).k2n = function (v) {
|
|
1207
|
+
return this.x2m_1.l2n(fromInt(v));
|
|
1211
1208
|
};
|
|
1212
1209
|
protoOf(Composer).m2n = function (v) {
|
|
1213
|
-
return this.
|
|
1210
|
+
return this.x2m_1.l2n(fromInt(v));
|
|
1214
1211
|
};
|
|
1215
1212
|
protoOf(Composer).n2n = function (v) {
|
|
1216
|
-
return this.
|
|
1213
|
+
return this.x2m_1.l2n(fromInt(v));
|
|
1217
1214
|
};
|
|
1218
1215
|
protoOf(Composer).o2n = function (v) {
|
|
1219
|
-
return this.
|
|
1216
|
+
return this.x2m_1.l2n(v);
|
|
1217
|
+
};
|
|
1218
|
+
protoOf(Composer).p2n = function (v) {
|
|
1219
|
+
return this.x2m_1.h2n(v.toString());
|
|
1220
1220
|
};
|
|
1221
|
-
protoOf(Composer).
|
|
1222
|
-
return this.
|
|
1221
|
+
protoOf(Composer).q2n = function (value) {
|
|
1222
|
+
return this.x2m_1.r2n(value);
|
|
1223
1223
|
};
|
|
1224
1224
|
function Composer_0(sb, json) {
|
|
1225
|
-
return json.
|
|
1225
|
+
return json.o2j_1.g2l_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
1226
1226
|
}
|
|
1227
1227
|
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
1228
1228
|
Composer.call(this, writer);
|
|
1229
|
-
this.
|
|
1229
|
+
this.u2n_1 = forceQuoting;
|
|
1230
1230
|
}
|
|
1231
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1232
|
-
if (this.
|
|
1231
|
+
protoOf(ComposerForUnsignedNumbers).n2n = function (v) {
|
|
1232
|
+
if (this.u2n_1) {
|
|
1233
1233
|
// Inline function 'kotlin.toUInt' call
|
|
1234
1234
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
1235
|
-
this.
|
|
1235
|
+
this.q2n(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
1236
1236
|
} else {
|
|
1237
1237
|
// Inline function 'kotlin.toUInt' call
|
|
1238
1238
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
1239
|
-
this.
|
|
1239
|
+
this.g2n(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1243
|
-
if (this.
|
|
1242
|
+
protoOf(ComposerForUnsignedNumbers).o2n = function (v) {
|
|
1243
|
+
if (this.u2n_1) {
|
|
1244
1244
|
// Inline function 'kotlin.toULong' call
|
|
1245
1245
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
1246
|
-
this.
|
|
1246
|
+
this.q2n(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
1247
1247
|
} else {
|
|
1248
1248
|
// Inline function 'kotlin.toULong' call
|
|
1249
1249
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
1250
|
-
this.
|
|
1250
|
+
this.g2n(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1254
|
-
if (this.
|
|
1253
|
+
protoOf(ComposerForUnsignedNumbers).k2n = function (v) {
|
|
1254
|
+
if (this.u2n_1) {
|
|
1255
1255
|
// Inline function 'kotlin.toUByte' call
|
|
1256
1256
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
1257
|
-
this.
|
|
1257
|
+
this.q2n(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
1258
1258
|
} else {
|
|
1259
1259
|
// Inline function 'kotlin.toUByte' call
|
|
1260
1260
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
1261
|
-
this.
|
|
1261
|
+
this.g2n(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
1262
1262
|
}
|
|
1263
1263
|
};
|
|
1264
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1265
|
-
if (this.
|
|
1264
|
+
protoOf(ComposerForUnsignedNumbers).m2n = function (v) {
|
|
1265
|
+
if (this.u2n_1) {
|
|
1266
1266
|
// Inline function 'kotlin.toUShort' call
|
|
1267
1267
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
1268
|
-
this.
|
|
1268
|
+
this.q2n(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
1269
1269
|
} else {
|
|
1270
1270
|
// Inline function 'kotlin.toUShort' call
|
|
1271
1271
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
1272
|
-
this.
|
|
1272
|
+
this.g2n(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
1273
1273
|
}
|
|
1274
1274
|
};
|
|
1275
1275
|
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
1276
1276
|
Composer.call(this, writer);
|
|
1277
|
-
this.
|
|
1277
|
+
this.x2n_1 = forceQuoting;
|
|
1278
1278
|
}
|
|
1279
|
-
protoOf(ComposerForUnquotedLiterals).
|
|
1280
|
-
if (this.
|
|
1281
|
-
protoOf(Composer).
|
|
1279
|
+
protoOf(ComposerForUnquotedLiterals).q2n = function (value) {
|
|
1280
|
+
if (this.x2n_1) {
|
|
1281
|
+
protoOf(Composer).q2n.call(this, value);
|
|
1282
1282
|
} else {
|
|
1283
|
-
protoOf(Composer).
|
|
1283
|
+
protoOf(Composer).g2n.call(this, value);
|
|
1284
1284
|
}
|
|
1285
1285
|
};
|
|
1286
1286
|
function ComposerWithPrettyPrint(writer, json) {
|
|
1287
1287
|
Composer.call(this, writer);
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1288
|
+
this.a2o_1 = json;
|
|
1289
|
+
this.b2o_1 = 0;
|
|
1290
1290
|
}
|
|
1291
|
-
protoOf(ComposerWithPrettyPrint).y2m = function () {
|
|
1292
|
-
this.x2m_1 = true;
|
|
1293
|
-
this.a2o_1 = this.a2o_1 + 1 | 0;
|
|
1294
|
-
};
|
|
1295
1291
|
protoOf(ComposerWithPrettyPrint).z2m = function () {
|
|
1296
|
-
this.
|
|
1292
|
+
this.y2m_1 = true;
|
|
1293
|
+
this.b2o_1 = this.b2o_1 + 1 | 0;
|
|
1297
1294
|
};
|
|
1298
1295
|
protoOf(ComposerWithPrettyPrint).a2n = function () {
|
|
1299
|
-
this.
|
|
1300
|
-
|
|
1296
|
+
this.b2o_1 = this.b2o_1 - 1 | 0;
|
|
1297
|
+
};
|
|
1298
|
+
protoOf(ComposerWithPrettyPrint).b2n = function () {
|
|
1299
|
+
this.y2m_1 = false;
|
|
1300
|
+
this.g2n('\n');
|
|
1301
1301
|
// Inline function 'kotlin.repeat' call
|
|
1302
|
-
var times = this.
|
|
1302
|
+
var times = this.b2o_1;
|
|
1303
1303
|
var inductionVariable = 0;
|
|
1304
1304
|
if (inductionVariable < times)
|
|
1305
1305
|
do {
|
|
1306
1306
|
var index = inductionVariable;
|
|
1307
1307
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1308
|
-
this.
|
|
1308
|
+
this.g2n(this.a2o_1.o2j_1.i2l_1);
|
|
1309
1309
|
}
|
|
1310
1310
|
while (inductionVariable < times);
|
|
1311
1311
|
};
|
|
1312
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1313
|
-
if (this.
|
|
1314
|
-
this.
|
|
1312
|
+
protoOf(ComposerWithPrettyPrint).c2n = function () {
|
|
1313
|
+
if (this.y2m_1)
|
|
1314
|
+
this.y2m_1 = false;
|
|
1315
1315
|
else {
|
|
1316
|
-
this.
|
|
1316
|
+
this.b2n();
|
|
1317
1317
|
}
|
|
1318
1318
|
};
|
|
1319
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1320
|
-
this.
|
|
1319
|
+
protoOf(ComposerWithPrettyPrint).d2n = function () {
|
|
1320
|
+
this.e2n(_Char___init__impl__6a9atx(32));
|
|
1321
1321
|
};
|
|
1322
1322
|
function readIfAbsent($this, descriptor, index) {
|
|
1323
|
-
$this.
|
|
1324
|
-
return $this.
|
|
1323
|
+
$this.d2o_1 = (!descriptor.a21(index) && descriptor.z20(index).cu());
|
|
1324
|
+
return $this.d2o_1;
|
|
1325
1325
|
}
|
|
1326
1326
|
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
1327
1327
|
var l = function (_this__u8e3s4, p0_0) {
|
|
@@ -1333,14 +1333,14 @@ function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
function JsonElementMarker(descriptor) {
|
|
1335
1335
|
var tmp = this;
|
|
1336
|
-
tmp.
|
|
1337
|
-
this.
|
|
1336
|
+
tmp.c2o_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
1337
|
+
this.d2o_1 = false;
|
|
1338
1338
|
}
|
|
1339
|
-
protoOf(JsonElementMarker).
|
|
1340
|
-
this.
|
|
1339
|
+
protoOf(JsonElementMarker).e2o = function (index) {
|
|
1340
|
+
this.c2o_1.t28(index);
|
|
1341
1341
|
};
|
|
1342
|
-
protoOf(JsonElementMarker).
|
|
1343
|
-
return this.
|
|
1342
|
+
protoOf(JsonElementMarker).f2o = function () {
|
|
1343
|
+
return this.c2o_1.u28();
|
|
1344
1344
|
};
|
|
1345
1345
|
function JsonDecodingException(message) {
|
|
1346
1346
|
JsonException.call(this, message);
|
|
@@ -1379,10 +1379,10 @@ function minify(_this__u8e3s4, offset) {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
1381
1381
|
entity = entity === VOID ? 'object' : entity;
|
|
1382
|
-
_this__u8e3s4.
|
|
1382
|
+
_this__u8e3s4.g2o('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.e2k_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingCommas = true' in 'Json {}' builder to support them.");
|
|
1383
1383
|
}
|
|
1384
1384
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
1385
|
-
_this__u8e3s4.
|
|
1385
|
+
_this__u8e3s4.h2o('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'");
|
|
1386
1386
|
}
|
|
1387
1387
|
function JsonEncodingException(message) {
|
|
1388
1388
|
JsonException.call(this, message);
|
|
@@ -1398,7 +1398,7 @@ function UnknownKeyException(key, input) {
|
|
|
1398
1398
|
return JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "'.\n" + "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.\n" + ('Current input: ' + toString(minify(input))));
|
|
1399
1399
|
}
|
|
1400
1400
|
function InvalidKeyKindException(keyDescriptor) {
|
|
1401
|
-
return new JsonEncodingException("Value of type '" + keyDescriptor.
|
|
1401
|
+
return new JsonEncodingException("Value of type '" + keyDescriptor.v20() + "' can't be used in JSON as a key in the map. " + ("It should have either primitive or enum kind, but its kind is '" + keyDescriptor.b21().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
|
|
1402
1402
|
}
|
|
1403
1403
|
function unexpectedFpErrorMessage(value, key, output) {
|
|
1404
1404
|
return 'Unexpected special floating-point value ' + toString(value) + ' with key ' + key + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output)));
|
|
@@ -1424,10 +1424,10 @@ function getJsonNameIndex(_this__u8e3s4, json, name) {
|
|
|
1424
1424
|
var strategy = namingStrategy(_this__u8e3s4, json);
|
|
1425
1425
|
if (!(strategy == null))
|
|
1426
1426
|
return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
|
|
1427
|
-
var index = _this__u8e3s4.
|
|
1427
|
+
var index = _this__u8e3s4.x20(name);
|
|
1428
1428
|
if (!(index === -3))
|
|
1429
1429
|
return index;
|
|
1430
|
-
if (!json.
|
|
1430
|
+
if (!json.o2j_1.n2l_1)
|
|
1431
1431
|
return index;
|
|
1432
1432
|
return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
|
|
1433
1433
|
}
|
|
@@ -1436,27 +1436,27 @@ function getJsonNameIndexOrThrow(_this__u8e3s4, json, name, suffix) {
|
|
|
1436
1436
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1437
1437
|
var index = getJsonNameIndex(_this__u8e3s4, json, name);
|
|
1438
1438
|
if (index === -3)
|
|
1439
|
-
throw SerializationException_init_$Create$(_this__u8e3s4.
|
|
1439
|
+
throw SerializationException_init_$Create$(_this__u8e3s4.v20() + " does not contain element with name '" + name + "'" + suffix);
|
|
1440
1440
|
return index;
|
|
1441
1441
|
}
|
|
1442
1442
|
function getJsonElementName(_this__u8e3s4, json, index) {
|
|
1443
1443
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1444
1444
|
var strategy = namingStrategy(_this__u8e3s4, json);
|
|
1445
|
-
return strategy == null ? _this__u8e3s4.
|
|
1445
|
+
return strategy == null ? _this__u8e3s4.w20(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
|
|
1446
1446
|
}
|
|
1447
1447
|
function namingStrategy(_this__u8e3s4, json) {
|
|
1448
1448
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1449
|
-
return equals(_this__u8e3s4.
|
|
1449
|
+
return equals(_this__u8e3s4.b21(), CLASS_getInstance()) ? json.o2j_1.o2l_1 : null;
|
|
1450
1450
|
}
|
|
1451
1451
|
function deserializationNamesMap(_this__u8e3s4, descriptor) {
|
|
1452
1452
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1453
1453
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
1454
1454
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
1455
|
-
return tmp.
|
|
1455
|
+
return tmp.j2o(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
1456
1456
|
}
|
|
1457
1457
|
function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
|
|
1458
1458
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1459
|
-
return _this__u8e3s4.
|
|
1459
|
+
return _this__u8e3s4.o2j_1.p2l_1 && equals(descriptor.b21(), ENUM_getInstance());
|
|
1460
1460
|
}
|
|
1461
1461
|
function getJsonNameIndexSlowPath(_this__u8e3s4, json, name) {
|
|
1462
1462
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1467,7 +1467,7 @@ function serializationNamesIndices(_this__u8e3s4, json, strategy) {
|
|
|
1467
1467
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1468
1468
|
var tmp = get_schemaCache(json);
|
|
1469
1469
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
1470
|
-
return tmp.
|
|
1470
|
+
return tmp.j2o(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
1471
1471
|
}
|
|
1472
1472
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
1473
1473
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1476,13 +1476,13 @@ function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
|
1476
1476
|
var useLowercaseEnums = decodeCaseInsensitive(json, _this__u8e3s4);
|
|
1477
1477
|
var strategyForClasses = namingStrategy(_this__u8e3s4, json);
|
|
1478
1478
|
var inductionVariable = 0;
|
|
1479
|
-
var last = _this__u8e3s4.
|
|
1479
|
+
var last = _this__u8e3s4.d21();
|
|
1480
1480
|
if (inductionVariable < last)
|
|
1481
1481
|
do {
|
|
1482
1482
|
var i = inductionVariable;
|
|
1483
1483
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1484
1484
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1485
|
-
var tmp0 = _this__u8e3s4.
|
|
1485
|
+
var tmp0 = _this__u8e3s4.y20(i);
|
|
1486
1486
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1487
1487
|
var destination = ArrayList_init_$Create$();
|
|
1488
1488
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1493,7 +1493,7 @@ function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
var tmp9_safe_receiver = singleOrNull(destination);
|
|
1496
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1496
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.k2o_1;
|
|
1497
1497
|
if (tmp10_safe_receiver == null)
|
|
1498
1498
|
null;
|
|
1499
1499
|
else {
|
|
@@ -1518,9 +1518,9 @@ function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
|
1518
1518
|
if (useLowercaseEnums) {
|
|
1519
1519
|
// Inline function 'kotlin.text.lowercase' call
|
|
1520
1520
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1521
|
-
tmp_0 = _this__u8e3s4.
|
|
1521
|
+
tmp_0 = _this__u8e3s4.w20(i).toLowerCase();
|
|
1522
1522
|
} else if (!(strategyForClasses == null)) {
|
|
1523
|
-
tmp_0 = strategyForClasses.
|
|
1523
|
+
tmp_0 = strategyForClasses.l2o(_this__u8e3s4, i, _this__u8e3s4.w20(i));
|
|
1524
1524
|
} else {
|
|
1525
1525
|
tmp_0 = null;
|
|
1526
1526
|
}
|
|
@@ -1550,24 +1550,24 @@ function deserializationNamesMap$lambda($descriptor, $this_deserializationNamesM
|
|
|
1550
1550
|
function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
|
|
1551
1551
|
return function () {
|
|
1552
1552
|
var tmp = 0;
|
|
1553
|
-
var tmp_0 = $this_serializationNamesIndices.
|
|
1553
|
+
var tmp_0 = $this_serializationNamesIndices.d21();
|
|
1554
1554
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1555
1555
|
var tmp_1 = Array(tmp_0);
|
|
1556
1556
|
while (tmp < tmp_0) {
|
|
1557
1557
|
var tmp_2 = tmp;
|
|
1558
|
-
var baseName = $this_serializationNamesIndices.
|
|
1559
|
-
tmp_1[tmp_2] = $strategy.
|
|
1558
|
+
var baseName = $this_serializationNamesIndices.w20(tmp_2);
|
|
1559
|
+
tmp_1[tmp_2] = $strategy.l2o($this_serializationNamesIndices, tmp_2, baseName);
|
|
1560
1560
|
tmp = tmp + 1 | 0;
|
|
1561
1561
|
}
|
|
1562
1562
|
return tmp_1;
|
|
1563
1563
|
};
|
|
1564
1564
|
}
|
|
1565
1565
|
function buildDeserializationNamesMap$putOrThrow(_this__u8e3s4, $this_buildDeserializationNamesMap, name, index) {
|
|
1566
|
-
var entity = equals($this_buildDeserializationNamesMap.
|
|
1566
|
+
var entity = equals($this_buildDeserializationNamesMap.b21(), ENUM_getInstance()) ? 'enum value' : 'property';
|
|
1567
1567
|
// Inline function 'kotlin.collections.contains' call
|
|
1568
1568
|
// Inline function 'kotlin.collections.containsKey' call
|
|
1569
1569
|
if ((isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).n2(name)) {
|
|
1570
|
-
throw new JsonException("The suggested name '" + name + "' for " + entity + ' ' + $this_buildDeserializationNamesMap.
|
|
1570
|
+
throw new JsonException("The suggested name '" + name + "' for " + entity + ' ' + $this_buildDeserializationNamesMap.w20(index) + ' is already one of the names for ' + entity + ' ' + ($this_buildDeserializationNamesMap.w20(getValue(_this__u8e3s4, name)) + ' in ' + toString($this_buildDeserializationNamesMap)));
|
|
1571
1571
|
}
|
|
1572
1572
|
// Inline function 'kotlin.collections.set' call
|
|
1573
1573
|
_this__u8e3s4.w2(name, index);
|
|
@@ -1587,14 +1587,14 @@ function Tombstone_getInstance() {
|
|
|
1587
1587
|
return Tombstone_instance;
|
|
1588
1588
|
}
|
|
1589
1589
|
function resize($this) {
|
|
1590
|
-
var newSize = imul($this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1590
|
+
var newSize = imul($this.o2o_1, 2);
|
|
1591
|
+
$this.m2o_1 = copyOf($this.m2o_1, newSize);
|
|
1592
|
+
$this.n2o_1 = copyOf_0($this.n2o_1, newSize);
|
|
1593
1593
|
}
|
|
1594
1594
|
function JsonPath() {
|
|
1595
1595
|
var tmp = this;
|
|
1596
1596
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1597
|
-
tmp.
|
|
1597
|
+
tmp.m2o_1 = Array(8);
|
|
1598
1598
|
var tmp_0 = this;
|
|
1599
1599
|
var tmp_1 = 0;
|
|
1600
1600
|
var tmp_2 = new Int32Array(8);
|
|
@@ -1602,74 +1602,74 @@ function JsonPath() {
|
|
|
1602
1602
|
tmp_2[tmp_1] = -1;
|
|
1603
1603
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1604
1604
|
}
|
|
1605
|
-
tmp_0.
|
|
1606
|
-
this.
|
|
1605
|
+
tmp_0.n2o_1 = tmp_2;
|
|
1606
|
+
this.o2o_1 = -1;
|
|
1607
1607
|
}
|
|
1608
|
-
protoOf(JsonPath).
|
|
1609
|
-
this.
|
|
1610
|
-
var depth = this.
|
|
1611
|
-
if (depth === this.
|
|
1608
|
+
protoOf(JsonPath).p2o = function (sd) {
|
|
1609
|
+
this.o2o_1 = this.o2o_1 + 1 | 0;
|
|
1610
|
+
var depth = this.o2o_1;
|
|
1611
|
+
if (depth === this.m2o_1.length) {
|
|
1612
1612
|
resize(this);
|
|
1613
1613
|
}
|
|
1614
|
-
this.
|
|
1614
|
+
this.m2o_1[depth] = sd;
|
|
1615
1615
|
};
|
|
1616
|
-
protoOf(JsonPath).
|
|
1617
|
-
this.
|
|
1616
|
+
protoOf(JsonPath).q2o = function (index) {
|
|
1617
|
+
this.n2o_1[this.o2o_1] = index;
|
|
1618
1618
|
};
|
|
1619
|
-
protoOf(JsonPath).
|
|
1619
|
+
protoOf(JsonPath).r2o = function (key) {
|
|
1620
1620
|
var tmp;
|
|
1621
|
-
if (!(this.
|
|
1622
|
-
this.
|
|
1623
|
-
tmp = this.
|
|
1621
|
+
if (!(this.n2o_1[this.o2o_1] === -2)) {
|
|
1622
|
+
this.o2o_1 = this.o2o_1 + 1 | 0;
|
|
1623
|
+
tmp = this.o2o_1 === this.m2o_1.length;
|
|
1624
1624
|
} else {
|
|
1625
1625
|
tmp = false;
|
|
1626
1626
|
}
|
|
1627
1627
|
if (tmp) {
|
|
1628
1628
|
resize(this);
|
|
1629
1629
|
}
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1630
|
+
this.m2o_1[this.o2o_1] = key;
|
|
1631
|
+
this.n2o_1[this.o2o_1] = -2;
|
|
1632
1632
|
};
|
|
1633
|
-
protoOf(JsonPath).
|
|
1634
|
-
if (this.
|
|
1635
|
-
this.
|
|
1633
|
+
protoOf(JsonPath).s2o = function () {
|
|
1634
|
+
if (this.n2o_1[this.o2o_1] === -2) {
|
|
1635
|
+
this.m2o_1[this.o2o_1] = Tombstone_instance;
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
|
-
protoOf(JsonPath).
|
|
1639
|
-
var depth = this.
|
|
1640
|
-
if (this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1638
|
+
protoOf(JsonPath).t2o = function () {
|
|
1639
|
+
var depth = this.o2o_1;
|
|
1640
|
+
if (this.n2o_1[depth] === -2) {
|
|
1641
|
+
this.n2o_1[depth] = -1;
|
|
1642
|
+
this.o2o_1 = this.o2o_1 - 1 | 0;
|
|
1643
1643
|
}
|
|
1644
|
-
if (!(this.
|
|
1645
|
-
this.
|
|
1644
|
+
if (!(this.o2o_1 === -1)) {
|
|
1645
|
+
this.o2o_1 = this.o2o_1 - 1 | 0;
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
|
-
protoOf(JsonPath).
|
|
1648
|
+
protoOf(JsonPath).u2o = function () {
|
|
1649
1649
|
// Inline function 'kotlin.text.buildString' call
|
|
1650
1650
|
// Inline function 'kotlin.apply' call
|
|
1651
1651
|
var this_0 = StringBuilder_init_$Create$();
|
|
1652
1652
|
this_0.q('$');
|
|
1653
1653
|
// Inline function 'kotlin.repeat' call
|
|
1654
|
-
var times = this.
|
|
1654
|
+
var times = this.o2o_1 + 1 | 0;
|
|
1655
1655
|
var inductionVariable = 0;
|
|
1656
1656
|
if (inductionVariable < times)
|
|
1657
1657
|
do {
|
|
1658
1658
|
var index = inductionVariable;
|
|
1659
1659
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1660
|
-
var element = this.
|
|
1660
|
+
var element = this.m2o_1[index];
|
|
1661
1661
|
if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
|
|
1662
|
-
if (equals(element.
|
|
1663
|
-
if (!(this.
|
|
1662
|
+
if (equals(element.b21(), LIST_getInstance())) {
|
|
1663
|
+
if (!(this.n2o_1[index] === -1)) {
|
|
1664
1664
|
this_0.q('[');
|
|
1665
|
-
this_0.sb(this.
|
|
1665
|
+
this_0.sb(this.n2o_1[index]);
|
|
1666
1666
|
this_0.q(']');
|
|
1667
1667
|
}
|
|
1668
1668
|
} else {
|
|
1669
|
-
var idx = this.
|
|
1669
|
+
var idx = this.n2o_1[index];
|
|
1670
1670
|
if (idx >= 0) {
|
|
1671
1671
|
this_0.q('.');
|
|
1672
|
-
this_0.q(element.
|
|
1672
|
+
this_0.q(element.w20(idx));
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
1675
|
} else {
|
|
@@ -1686,7 +1686,7 @@ protoOf(JsonPath).t2o = function () {
|
|
|
1686
1686
|
return this_0.toString();
|
|
1687
1687
|
};
|
|
1688
1688
|
protoOf(JsonPath).toString = function () {
|
|
1689
|
-
return this.
|
|
1689
|
+
return this.u2o();
|
|
1690
1690
|
};
|
|
1691
1691
|
function encodeByWriter(json, writer, serializer, value) {
|
|
1692
1692
|
var tmp = WriteMode_OBJ_getInstance();
|
|
@@ -1694,38 +1694,38 @@ function encodeByWriter(json, writer, serializer, value) {
|
|
|
1694
1694
|
var size = get_entries().a1();
|
|
1695
1695
|
var tmp$ret$0 = Array(size);
|
|
1696
1696
|
var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0);
|
|
1697
|
-
encoder.
|
|
1697
|
+
encoder.h24(serializer, value);
|
|
1698
1698
|
}
|
|
1699
1699
|
function readObject($this) {
|
|
1700
1700
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
1701
|
-
var lastToken = $this.
|
|
1702
|
-
if ($this.
|
|
1703
|
-
$this.
|
|
1701
|
+
var lastToken = $this.e2p_1.i2p(6);
|
|
1702
|
+
if ($this.e2p_1.j2p() === 4) {
|
|
1703
|
+
$this.e2p_1.h2o('Unexpected leading comma');
|
|
1704
1704
|
}
|
|
1705
1705
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
1706
1706
|
var result = LinkedHashMap_init_$Create$();
|
|
1707
|
-
$l$loop: while ($this.
|
|
1708
|
-
var key = $this.
|
|
1709
|
-
$this.
|
|
1710
|
-
var element = $this.
|
|
1707
|
+
$l$loop: while ($this.e2p_1.k2p()) {
|
|
1708
|
+
var key = $this.f2p_1 ? $this.e2p_1.m2p() : $this.e2p_1.l2p();
|
|
1709
|
+
$this.e2p_1.i2p(5);
|
|
1710
|
+
var element = $this.n2p();
|
|
1711
1711
|
// Inline function 'kotlin.collections.set' call
|
|
1712
1712
|
result.w2(key, element);
|
|
1713
|
-
lastToken = $this.
|
|
1713
|
+
lastToken = $this.e2p_1.o2p();
|
|
1714
1714
|
var tmp13_subject = lastToken;
|
|
1715
1715
|
if (tmp13_subject !== 4)
|
|
1716
1716
|
if (tmp13_subject === 7)
|
|
1717
1717
|
break $l$loop;
|
|
1718
1718
|
else {
|
|
1719
|
-
$this.
|
|
1719
|
+
$this.e2p_1.h2o('Expected end of the object or comma');
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
1722
|
if (lastToken === 6) {
|
|
1723
|
-
$this.
|
|
1723
|
+
$this.e2p_1.i2p(7);
|
|
1724
1724
|
} else if (lastToken === 4) {
|
|
1725
|
-
if (!$this.
|
|
1726
|
-
invalidTrailingComma($this.
|
|
1725
|
+
if (!$this.g2p_1) {
|
|
1726
|
+
invalidTrailingComma($this.e2p_1);
|
|
1727
1727
|
}
|
|
1728
|
-
$this.
|
|
1728
|
+
$this.e2p_1.i2p(7);
|
|
1729
1729
|
}
|
|
1730
1730
|
return new JsonObject(result);
|
|
1731
1731
|
}
|
|
@@ -1736,43 +1736,43 @@ function readObject_0($this, _this__u8e3s4, $completion) {
|
|
|
1736
1736
|
return tmp.k9();
|
|
1737
1737
|
}
|
|
1738
1738
|
function readArray($this) {
|
|
1739
|
-
var lastToken = $this.
|
|
1740
|
-
if ($this.
|
|
1741
|
-
$this.
|
|
1739
|
+
var lastToken = $this.e2p_1.o2p();
|
|
1740
|
+
if ($this.e2p_1.j2p() === 4) {
|
|
1741
|
+
$this.e2p_1.h2o('Unexpected leading comma');
|
|
1742
1742
|
}
|
|
1743
1743
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1744
1744
|
var result = ArrayList_init_$Create$();
|
|
1745
|
-
while ($this.
|
|
1746
|
-
var element = $this.
|
|
1745
|
+
while ($this.e2p_1.k2p()) {
|
|
1746
|
+
var element = $this.n2p();
|
|
1747
1747
|
result.x(element);
|
|
1748
|
-
lastToken = $this.
|
|
1748
|
+
lastToken = $this.e2p_1.o2p();
|
|
1749
1749
|
if (!(lastToken === 4)) {
|
|
1750
|
-
var tmp0 = $this.
|
|
1750
|
+
var tmp0 = $this.e2p_1;
|
|
1751
1751
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1752
1752
|
var condition = lastToken === 9;
|
|
1753
|
-
var position = tmp0.
|
|
1753
|
+
var position = tmp0.e2k_1;
|
|
1754
1754
|
if (!condition) {
|
|
1755
1755
|
var tmp$ret$1 = 'Expected end of the array or comma';
|
|
1756
|
-
tmp0.
|
|
1756
|
+
tmp0.h2o(tmp$ret$1, position);
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
1760
|
if (lastToken === 8) {
|
|
1761
|
-
$this.
|
|
1761
|
+
$this.e2p_1.i2p(9);
|
|
1762
1762
|
} else if (lastToken === 4) {
|
|
1763
|
-
if (!$this.
|
|
1764
|
-
invalidTrailingComma($this.
|
|
1763
|
+
if (!$this.g2p_1) {
|
|
1764
|
+
invalidTrailingComma($this.e2p_1, 'array');
|
|
1765
1765
|
}
|
|
1766
|
-
$this.
|
|
1766
|
+
$this.e2p_1.i2p(9);
|
|
1767
1767
|
}
|
|
1768
1768
|
return new JsonArray(result);
|
|
1769
1769
|
}
|
|
1770
1770
|
function readValue($this, isString) {
|
|
1771
1771
|
var tmp;
|
|
1772
|
-
if ($this.
|
|
1773
|
-
tmp = $this.
|
|
1772
|
+
if ($this.f2p_1 || !isString) {
|
|
1773
|
+
tmp = $this.e2p_1.m2p();
|
|
1774
1774
|
} else {
|
|
1775
|
-
tmp = $this.
|
|
1775
|
+
tmp = $this.e2p_1.l2p();
|
|
1776
1776
|
}
|
|
1777
1777
|
var string = tmp;
|
|
1778
1778
|
if (!isString && string === 'null')
|
|
@@ -1783,18 +1783,18 @@ function readDeepRecursive($this) {
|
|
|
1783
1783
|
return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
|
|
1784
1784
|
}
|
|
1785
1785
|
function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
|
|
1786
|
-
this.
|
|
1786
|
+
this.l2q_1 = this$0;
|
|
1787
1787
|
CoroutineImpl.call(this, resultContinuation);
|
|
1788
1788
|
}
|
|
1789
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1790
|
-
var tmp = this.
|
|
1789
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).p2q = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1790
|
+
var tmp = this.q2q($this$DeepRecursiveFunction, it, $completion);
|
|
1791
1791
|
tmp.e9_1 = Unit_instance;
|
|
1792
1792
|
tmp.f9_1 = null;
|
|
1793
1793
|
return tmp.k9();
|
|
1794
1794
|
};
|
|
1795
1795
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).q9 = function (p1, p2, $completion) {
|
|
1796
1796
|
var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
|
|
1797
|
-
return this.
|
|
1797
|
+
return this.p2q(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
|
|
1798
1798
|
};
|
|
1799
1799
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).k9 = function () {
|
|
1800
1800
|
var suspendResult = this.e9_1;
|
|
@@ -1804,32 +1804,32 @@ protoOf(JsonTreeReader$readDeepRecursive$slambda).k9 = function () {
|
|
|
1804
1804
|
switch (tmp) {
|
|
1805
1805
|
case 0:
|
|
1806
1806
|
this.d9_1 = 3;
|
|
1807
|
-
var tmp14_subject = this.
|
|
1807
|
+
var tmp14_subject = this.l2q_1.e2p_1.j2p();
|
|
1808
1808
|
if (tmp14_subject === 1) {
|
|
1809
|
-
this.
|
|
1809
|
+
this.o2q_1 = readValue(this.l2q_1, true);
|
|
1810
1810
|
this.c9_1 = 2;
|
|
1811
1811
|
continue $sm;
|
|
1812
1812
|
} else {
|
|
1813
1813
|
if (tmp14_subject === 0) {
|
|
1814
|
-
this.
|
|
1814
|
+
this.o2q_1 = readValue(this.l2q_1, false);
|
|
1815
1815
|
this.c9_1 = 2;
|
|
1816
1816
|
continue $sm;
|
|
1817
1817
|
} else {
|
|
1818
1818
|
if (tmp14_subject === 6) {
|
|
1819
1819
|
this.c9_1 = 1;
|
|
1820
|
-
suspendResult = readObject_0(this.
|
|
1820
|
+
suspendResult = readObject_0(this.l2q_1, this.m2q_1, this);
|
|
1821
1821
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1822
1822
|
return suspendResult;
|
|
1823
1823
|
}
|
|
1824
1824
|
continue $sm;
|
|
1825
1825
|
} else {
|
|
1826
1826
|
if (tmp14_subject === 8) {
|
|
1827
|
-
this.
|
|
1827
|
+
this.o2q_1 = readArray(this.l2q_1);
|
|
1828
1828
|
this.c9_1 = 2;
|
|
1829
1829
|
continue $sm;
|
|
1830
1830
|
} else {
|
|
1831
1831
|
var tmp_0 = this;
|
|
1832
|
-
this.
|
|
1832
|
+
this.l2q_1.e2p_1.h2o("Can't begin reading element, unexpected token");
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
@@ -1837,11 +1837,11 @@ protoOf(JsonTreeReader$readDeepRecursive$slambda).k9 = function () {
|
|
|
1837
1837
|
|
|
1838
1838
|
break;
|
|
1839
1839
|
case 1:
|
|
1840
|
-
this.
|
|
1840
|
+
this.o2q_1 = suspendResult;
|
|
1841
1841
|
this.c9_1 = 2;
|
|
1842
1842
|
continue $sm;
|
|
1843
1843
|
case 2:
|
|
1844
|
-
return this.
|
|
1844
|
+
return this.o2q_1;
|
|
1845
1845
|
case 3:
|
|
1846
1846
|
throw this.f9_1;
|
|
1847
1847
|
}
|
|
@@ -1856,24 +1856,24 @@ protoOf(JsonTreeReader$readDeepRecursive$slambda).k9 = function () {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
while (true);
|
|
1858
1858
|
};
|
|
1859
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1860
|
-
var i = new JsonTreeReader$readDeepRecursive$slambda(this.
|
|
1861
|
-
i.
|
|
1862
|
-
i.
|
|
1859
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).q2q = function ($this$DeepRecursiveFunction, it, completion) {
|
|
1860
|
+
var i = new JsonTreeReader$readDeepRecursive$slambda(this.l2q_1, completion);
|
|
1861
|
+
i.m2q_1 = $this$DeepRecursiveFunction;
|
|
1862
|
+
i.n2q_1 = it;
|
|
1863
1863
|
return i;
|
|
1864
1864
|
};
|
|
1865
1865
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
1866
1866
|
var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
|
|
1867
1867
|
var l = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1868
|
-
return i.
|
|
1868
|
+
return i.p2q($this$DeepRecursiveFunction, it, $completion);
|
|
1869
1869
|
};
|
|
1870
1870
|
l.$arity = 2;
|
|
1871
1871
|
return l;
|
|
1872
1872
|
}
|
|
1873
1873
|
function $readObjectCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1874
1874
|
CoroutineImpl.call(this, resultContinuation);
|
|
1875
|
-
this.
|
|
1876
|
-
this.
|
|
1875
|
+
this.x2p_1 = _this__u8e3s4;
|
|
1876
|
+
this.y2p_1 = _this__u8e3s4_0;
|
|
1877
1877
|
}
|
|
1878
1878
|
protoOf($readObjectCOROUTINE$).k9 = function () {
|
|
1879
1879
|
var suspendResult = this.e9_1;
|
|
@@ -1883,26 +1883,26 @@ protoOf($readObjectCOROUTINE$).k9 = function () {
|
|
|
1883
1883
|
switch (tmp) {
|
|
1884
1884
|
case 0:
|
|
1885
1885
|
this.d9_1 = 5;
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
if (this.
|
|
1889
|
-
this.
|
|
1886
|
+
this.a2q_1 = this.x2p_1;
|
|
1887
|
+
this.b2q_1 = this.a2q_1.e2p_1.i2p(6);
|
|
1888
|
+
if (this.a2q_1.e2p_1.j2p() === 4) {
|
|
1889
|
+
this.a2q_1.e2p_1.h2o('Unexpected leading comma');
|
|
1890
1890
|
}
|
|
1891
1891
|
|
|
1892
1892
|
var tmp_0 = this;
|
|
1893
|
-
tmp_0.
|
|
1893
|
+
tmp_0.z2p_1 = LinkedHashMap_init_$Create$();
|
|
1894
1894
|
this.c9_1 = 1;
|
|
1895
1895
|
continue $sm;
|
|
1896
1896
|
case 1:
|
|
1897
|
-
if (!this.
|
|
1897
|
+
if (!this.a2q_1.e2p_1.k2p()) {
|
|
1898
1898
|
this.c9_1 = 4;
|
|
1899
1899
|
continue $sm;
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
|
-
this.
|
|
1903
|
-
this.
|
|
1902
|
+
this.c2q_1 = this.a2q_1.f2p_1 ? this.a2q_1.e2p_1.m2p() : this.a2q_1.e2p_1.l2p();
|
|
1903
|
+
this.a2q_1.e2p_1.i2p(5);
|
|
1904
1904
|
this.c9_1 = 2;
|
|
1905
|
-
suspendResult = this.
|
|
1905
|
+
suspendResult = this.y2p_1.yi(Unit_instance, this);
|
|
1906
1906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1907
1907
|
return suspendResult;
|
|
1908
1908
|
}
|
|
@@ -1910,11 +1910,11 @@ protoOf($readObjectCOROUTINE$).k9 = function () {
|
|
|
1910
1910
|
continue $sm;
|
|
1911
1911
|
case 2:
|
|
1912
1912
|
var element = suspendResult;
|
|
1913
|
-
var tmp0 = this.
|
|
1914
|
-
var key = this.
|
|
1913
|
+
var tmp0 = this.z2p_1;
|
|
1914
|
+
var key = this.c2q_1;
|
|
1915
1915
|
tmp0.w2(key, element);
|
|
1916
|
-
this.
|
|
1917
|
-
var tmp13_subject = this.
|
|
1916
|
+
this.b2q_1 = this.a2q_1.e2p_1.o2p();
|
|
1917
|
+
var tmp13_subject = this.b2q_1;
|
|
1918
1918
|
if (tmp13_subject === 4) {
|
|
1919
1919
|
this.c9_1 = 3;
|
|
1920
1920
|
continue $sm;
|
|
@@ -1923,7 +1923,7 @@ protoOf($readObjectCOROUTINE$).k9 = function () {
|
|
|
1923
1923
|
this.c9_1 = 4;
|
|
1924
1924
|
continue $sm;
|
|
1925
1925
|
} else {
|
|
1926
|
-
this.
|
|
1926
|
+
this.a2q_1.e2p_1.h2o('Expected end of the object or comma');
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
@@ -1932,16 +1932,16 @@ protoOf($readObjectCOROUTINE$).k9 = function () {
|
|
|
1932
1932
|
this.c9_1 = 1;
|
|
1933
1933
|
continue $sm;
|
|
1934
1934
|
case 4:
|
|
1935
|
-
if (this.
|
|
1936
|
-
this.
|
|
1937
|
-
} else if (this.
|
|
1938
|
-
if (!this.
|
|
1939
|
-
invalidTrailingComma(this.
|
|
1935
|
+
if (this.b2q_1 === 6) {
|
|
1936
|
+
this.a2q_1.e2p_1.i2p(7);
|
|
1937
|
+
} else if (this.b2q_1 === 4) {
|
|
1938
|
+
if (!this.a2q_1.g2p_1) {
|
|
1939
|
+
invalidTrailingComma(this.a2q_1.e2p_1);
|
|
1940
1940
|
}
|
|
1941
|
-
this.
|
|
1941
|
+
this.a2q_1.e2p_1.i2p(7);
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
1944
|
-
return new JsonObject(this.
|
|
1944
|
+
return new JsonObject(this.z2p_1);
|
|
1945
1945
|
case 5:
|
|
1946
1946
|
throw this.f9_1;
|
|
1947
1947
|
}
|
|
@@ -1957,13 +1957,13 @@ protoOf($readObjectCOROUTINE$).k9 = function () {
|
|
|
1957
1957
|
while (true);
|
|
1958
1958
|
};
|
|
1959
1959
|
function JsonTreeReader(configuration, lexer) {
|
|
1960
|
-
this.
|
|
1961
|
-
this.
|
|
1962
|
-
this.
|
|
1963
|
-
this.
|
|
1960
|
+
this.e2p_1 = lexer;
|
|
1961
|
+
this.f2p_1 = configuration.e2l_1;
|
|
1962
|
+
this.g2p_1 = configuration.q2l_1;
|
|
1963
|
+
this.h2p_1 = 0;
|
|
1964
1964
|
}
|
|
1965
|
-
protoOf(JsonTreeReader).
|
|
1966
|
-
var token = this.
|
|
1965
|
+
protoOf(JsonTreeReader).n2p = function () {
|
|
1966
|
+
var token = this.e2p_1.j2p();
|
|
1967
1967
|
var tmp;
|
|
1968
1968
|
if (token === 1) {
|
|
1969
1969
|
tmp = readValue(this, true);
|
|
@@ -1971,37 +1971,37 @@ protoOf(JsonTreeReader).m2p = function () {
|
|
|
1971
1971
|
tmp = readValue(this, false);
|
|
1972
1972
|
} else if (token === 6) {
|
|
1973
1973
|
var tmp_0;
|
|
1974
|
-
this.
|
|
1975
|
-
if (this.
|
|
1974
|
+
this.h2p_1 = this.h2p_1 + 1 | 0;
|
|
1975
|
+
if (this.h2p_1 === 200) {
|
|
1976
1976
|
tmp_0 = readDeepRecursive(this);
|
|
1977
1977
|
} else {
|
|
1978
1978
|
tmp_0 = readObject(this);
|
|
1979
1979
|
}
|
|
1980
1980
|
var result = tmp_0;
|
|
1981
|
-
this.
|
|
1981
|
+
this.h2p_1 = this.h2p_1 - 1 | 0;
|
|
1982
1982
|
tmp = result;
|
|
1983
1983
|
} else if (token === 8) {
|
|
1984
1984
|
tmp = readArray(this);
|
|
1985
1985
|
} else {
|
|
1986
|
-
this.
|
|
1986
|
+
this.e2p_1.h2o('Cannot read Json element because of unexpected ' + tokenDescription(token));
|
|
1987
1987
|
}
|
|
1988
1988
|
return tmp;
|
|
1989
1989
|
};
|
|
1990
1990
|
function classDiscriminator(_this__u8e3s4, json) {
|
|
1991
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
1991
|
+
var _iterator__ex2g4s = _this__u8e3s4.e21().t();
|
|
1992
1992
|
while (_iterator__ex2g4s.u()) {
|
|
1993
1993
|
var annotation = _iterator__ex2g4s.v();
|
|
1994
1994
|
if (annotation instanceof JsonClassDiscriminator)
|
|
1995
|
-
return annotation.
|
|
1995
|
+
return annotation.r2q_1;
|
|
1996
1996
|
}
|
|
1997
|
-
return json.
|
|
1997
|
+
return json.o2j_1.l2l_1;
|
|
1998
1998
|
}
|
|
1999
1999
|
function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
|
|
2000
2000
|
if (!(serializer instanceof SealedClassSerializer))
|
|
2001
2001
|
return Unit_instance;
|
|
2002
|
-
if (jsonCachedSerialNames(actualSerializer.
|
|
2003
|
-
var baseName = serializer.
|
|
2004
|
-
var actualName = actualSerializer.
|
|
2002
|
+
if (jsonCachedSerialNames(actualSerializer.p1z()).u1(classDiscriminator)) {
|
|
2003
|
+
var baseName = serializer.p1z().v20();
|
|
2004
|
+
var actualName = actualSerializer.p1z().v20();
|
|
2005
2005
|
// Inline function 'kotlin.error' call
|
|
2006
2006
|
var message = "Sealed class '" + actualName + "' cannot be serialized as base class '" + baseName + "' because" + (" it has property name that conflicts with JSON class discriminator '" + classDiscriminator + "'. ") + 'You can either change class discriminator in JsonConfiguration, ' + 'rename property with @SerialName annotation or fall back to array polymorphism';
|
|
2007
2007
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -2028,7 +2028,7 @@ function access$validateIfSealed$tPolymorphicKt(serializer, actualSerializer, cl
|
|
|
2028
2028
|
return validateIfSealed(serializer, actualSerializer, classDiscriminator);
|
|
2029
2029
|
}
|
|
2030
2030
|
function checkKind_0($this, descriptor, actualClass) {
|
|
2031
|
-
var kind = descriptor.
|
|
2031
|
+
var kind = descriptor.b21();
|
|
2032
2032
|
var tmp;
|
|
2033
2033
|
if (kind instanceof PolymorphicKind) {
|
|
2034
2034
|
tmp = true;
|
|
@@ -2038,7 +2038,7 @@ function checkKind_0($this, descriptor, actualClass) {
|
|
|
2038
2038
|
if (tmp) {
|
|
2039
2039
|
throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.o() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind.toString() + ' is not concrete. To work with multiple hierarchies, register it as a base class.'));
|
|
2040
2040
|
}
|
|
2041
|
-
if ($this.
|
|
2041
|
+
if ($this.s2q_1)
|
|
2042
2042
|
return Unit_instance;
|
|
2043
2043
|
var tmp_0;
|
|
2044
2044
|
var tmp_1;
|
|
@@ -2058,43 +2058,43 @@ function checkKind_0($this, descriptor, actualClass) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
function checkDiscriminatorCollisions($this, descriptor, actualClass) {
|
|
2060
2060
|
var inductionVariable = 0;
|
|
2061
|
-
var last = descriptor.
|
|
2061
|
+
var last = descriptor.d21();
|
|
2062
2062
|
if (inductionVariable < last)
|
|
2063
2063
|
do {
|
|
2064
2064
|
var i = inductionVariable;
|
|
2065
2065
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2066
|
-
var name = descriptor.
|
|
2067
|
-
if (name === $this.
|
|
2066
|
+
var name = descriptor.w20(i);
|
|
2067
|
+
if (name === $this.t2q_1) {
|
|
2068
2068
|
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');
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
while (inductionVariable < last);
|
|
2072
2072
|
}
|
|
2073
2073
|
function PolymorphismValidator(useArrayPolymorphism, discriminator) {
|
|
2074
|
-
this.
|
|
2075
|
-
this.
|
|
2074
|
+
this.s2q_1 = useArrayPolymorphism;
|
|
2075
|
+
this.t2q_1 = discriminator;
|
|
2076
2076
|
}
|
|
2077
|
-
protoOf(PolymorphismValidator).
|
|
2077
|
+
protoOf(PolymorphismValidator).f2j = function (kClass, provider) {
|
|
2078
2078
|
};
|
|
2079
|
-
protoOf(PolymorphismValidator).
|
|
2080
|
-
var descriptor = actualSerializer.
|
|
2079
|
+
protoOf(PolymorphismValidator).i2j = function (baseClass, actualClass, actualSerializer) {
|
|
2080
|
+
var descriptor = actualSerializer.p1z();
|
|
2081
2081
|
checkKind_0(this, descriptor, actualClass);
|
|
2082
|
-
if (!this.
|
|
2082
|
+
if (!this.s2q_1) {
|
|
2083
2083
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
2084
2084
|
}
|
|
2085
2085
|
};
|
|
2086
|
-
protoOf(PolymorphismValidator).
|
|
2086
|
+
protoOf(PolymorphismValidator).j2j = function (baseClass, defaultSerializerProvider) {
|
|
2087
2087
|
};
|
|
2088
|
-
protoOf(PolymorphismValidator).
|
|
2088
|
+
protoOf(PolymorphismValidator).k2j = function (baseClass, defaultDeserializerProvider) {
|
|
2089
2089
|
};
|
|
2090
2090
|
function Key() {
|
|
2091
2091
|
}
|
|
2092
2092
|
function DescriptorSchemaCache() {
|
|
2093
|
-
this.
|
|
2093
|
+
this.i2o_1 = createMapForCache(16);
|
|
2094
2094
|
}
|
|
2095
|
-
protoOf(DescriptorSchemaCache).
|
|
2095
|
+
protoOf(DescriptorSchemaCache).u2q = function (descriptor, key, value) {
|
|
2096
2096
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2097
|
-
var this_0 = this.
|
|
2097
|
+
var this_0 = this.i2o_1;
|
|
2098
2098
|
var value_0 = this_0.p2(descriptor);
|
|
2099
2099
|
var tmp;
|
|
2100
2100
|
if (value_0 == null) {
|
|
@@ -2110,8 +2110,8 @@ protoOf(DescriptorSchemaCache).t2q = function (descriptor, key, value) {
|
|
|
2110
2110
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
2111
2111
|
tmp0.w2(tmp2, value_1);
|
|
2112
2112
|
};
|
|
2113
|
-
protoOf(DescriptorSchemaCache).
|
|
2114
|
-
var tmp18_safe_receiver = this.
|
|
2113
|
+
protoOf(DescriptorSchemaCache).j2o = function (descriptor, key, defaultValue) {
|
|
2114
|
+
var tmp18_safe_receiver = this.v2q(descriptor, key);
|
|
2115
2115
|
if (tmp18_safe_receiver == null)
|
|
2116
2116
|
null;
|
|
2117
2117
|
else {
|
|
@@ -2119,11 +2119,11 @@ protoOf(DescriptorSchemaCache).i2o = function (descriptor, key, defaultValue) {
|
|
|
2119
2119
|
return tmp18_safe_receiver;
|
|
2120
2120
|
}
|
|
2121
2121
|
var value = defaultValue();
|
|
2122
|
-
this.
|
|
2122
|
+
this.u2q(descriptor, key, value);
|
|
2123
2123
|
return value;
|
|
2124
2124
|
};
|
|
2125
|
-
protoOf(DescriptorSchemaCache).
|
|
2126
|
-
var tmp19_safe_receiver = this.
|
|
2125
|
+
protoOf(DescriptorSchemaCache).v2q = function (descriptor, key) {
|
|
2126
|
+
var tmp19_safe_receiver = this.i2o_1.p2(descriptor);
|
|
2127
2127
|
var tmp;
|
|
2128
2128
|
if (tmp19_safe_receiver == null) {
|
|
2129
2129
|
tmp = null;
|
|
@@ -2134,79 +2134,79 @@ protoOf(DescriptorSchemaCache).u2q = function (descriptor, key) {
|
|
|
2134
2134
|
return !(tmp_0 == null) ? tmp_0 : null;
|
|
2135
2135
|
};
|
|
2136
2136
|
function DiscriminatorHolder(discriminatorToSkip) {
|
|
2137
|
-
this.
|
|
2137
|
+
this.w2q_1 = discriminatorToSkip;
|
|
2138
2138
|
}
|
|
2139
2139
|
function trySkip($this, _this__u8e3s4, unknownKey) {
|
|
2140
2140
|
if (_this__u8e3s4 == null)
|
|
2141
2141
|
return false;
|
|
2142
|
-
if (_this__u8e3s4.
|
|
2143
|
-
_this__u8e3s4.
|
|
2142
|
+
if (_this__u8e3s4.w2q_1 === unknownKey) {
|
|
2143
|
+
_this__u8e3s4.w2q_1 = null;
|
|
2144
2144
|
return true;
|
|
2145
2145
|
}
|
|
2146
2146
|
return false;
|
|
2147
2147
|
}
|
|
2148
2148
|
function skipLeftoverElements($this, descriptor) {
|
|
2149
|
-
while (!($this.
|
|
2149
|
+
while (!($this.g23(descriptor) === -1)) {
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
2152
|
function checkLeadingComma($this) {
|
|
2153
|
-
if ($this.
|
|
2154
|
-
$this.
|
|
2153
|
+
if ($this.y2j_1.j2p() === 4) {
|
|
2154
|
+
$this.y2j_1.h2o('Unexpected leading comma');
|
|
2155
2155
|
}
|
|
2156
2156
|
}
|
|
2157
2157
|
function decodeMapIndex($this) {
|
|
2158
2158
|
var hasComma = false;
|
|
2159
|
-
var decodingKey = !(($this.
|
|
2159
|
+
var decodingKey = !(($this.a2k_1 % 2 | 0) === 0);
|
|
2160
2160
|
if (decodingKey) {
|
|
2161
|
-
if (!($this.
|
|
2162
|
-
hasComma = $this.
|
|
2161
|
+
if (!($this.a2k_1 === -1)) {
|
|
2162
|
+
hasComma = $this.y2j_1.y2q();
|
|
2163
2163
|
}
|
|
2164
2164
|
} else {
|
|
2165
|
-
$this.
|
|
2165
|
+
$this.y2j_1.x2q(_Char___init__impl__6a9atx(58));
|
|
2166
2166
|
}
|
|
2167
2167
|
var tmp;
|
|
2168
|
-
if ($this.
|
|
2168
|
+
if ($this.y2j_1.k2p()) {
|
|
2169
2169
|
if (decodingKey) {
|
|
2170
|
-
if ($this.
|
|
2171
|
-
var tmp0 = $this.
|
|
2170
|
+
if ($this.a2k_1 === -1) {
|
|
2171
|
+
var tmp0 = $this.y2j_1;
|
|
2172
2172
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
2173
2173
|
var condition = !hasComma;
|
|
2174
|
-
var position = tmp0.
|
|
2174
|
+
var position = tmp0.e2k_1;
|
|
2175
2175
|
if (!condition) {
|
|
2176
2176
|
var tmp$ret$0 = 'Unexpected leading comma';
|
|
2177
|
-
tmp0.
|
|
2177
|
+
tmp0.h2o(tmp$ret$0, position);
|
|
2178
2178
|
}
|
|
2179
2179
|
} else {
|
|
2180
|
-
var tmp0_0 = $this.
|
|
2180
|
+
var tmp0_0 = $this.y2j_1;
|
|
2181
2181
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
2182
2182
|
var condition_0 = hasComma;
|
|
2183
|
-
var position_0 = tmp0_0.
|
|
2183
|
+
var position_0 = tmp0_0.e2k_1;
|
|
2184
2184
|
if (!condition_0) {
|
|
2185
2185
|
var tmp$ret$2 = 'Expected comma after the key-value pair';
|
|
2186
|
-
tmp0_0.
|
|
2186
|
+
tmp0_0.h2o(tmp$ret$2, position_0);
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
|
-
$this.
|
|
2191
|
-
tmp = $this.
|
|
2190
|
+
$this.a2k_1 = $this.a2k_1 + 1 | 0;
|
|
2191
|
+
tmp = $this.a2k_1;
|
|
2192
2192
|
} else {
|
|
2193
|
-
if (hasComma && !$this.
|
|
2194
|
-
invalidTrailingComma($this.
|
|
2193
|
+
if (hasComma && !$this.w2j_1.o2j_1.q2l_1) {
|
|
2194
|
+
invalidTrailingComma($this.y2j_1);
|
|
2195
2195
|
}
|
|
2196
2196
|
tmp = -1;
|
|
2197
2197
|
}
|
|
2198
2198
|
return tmp;
|
|
2199
2199
|
}
|
|
2200
2200
|
function coerceInputValue($this, descriptor, index) {
|
|
2201
|
-
var tmp0 = $this.
|
|
2201
|
+
var tmp0 = $this.w2j_1;
|
|
2202
2202
|
var tmp$ret$1;
|
|
2203
2203
|
$l$block_2: {
|
|
2204
2204
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
2205
|
-
var isOptional = descriptor.
|
|
2206
|
-
var elementDescriptor = descriptor.
|
|
2205
|
+
var isOptional = descriptor.a21(index);
|
|
2206
|
+
var elementDescriptor = descriptor.z20(index);
|
|
2207
2207
|
var tmp;
|
|
2208
2208
|
if (isOptional && !elementDescriptor.cu()) {
|
|
2209
|
-
tmp = $this.
|
|
2209
|
+
tmp = $this.y2j_1.z2q(true);
|
|
2210
2210
|
} else {
|
|
2211
2211
|
tmp = false;
|
|
2212
2212
|
}
|
|
@@ -2214,10 +2214,10 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
2214
2214
|
tmp$ret$1 = true;
|
|
2215
2215
|
break $l$block_2;
|
|
2216
2216
|
}
|
|
2217
|
-
if (equals(elementDescriptor.
|
|
2217
|
+
if (equals(elementDescriptor.b21(), ENUM_getInstance())) {
|
|
2218
2218
|
var tmp_0;
|
|
2219
2219
|
if (elementDescriptor.cu()) {
|
|
2220
|
-
tmp_0 = $this.
|
|
2220
|
+
tmp_0 = $this.y2j_1.z2q(false);
|
|
2221
2221
|
} else {
|
|
2222
2222
|
tmp_0 = false;
|
|
2223
2223
|
}
|
|
@@ -2225,7 +2225,7 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
2225
2225
|
tmp$ret$1 = false;
|
|
2226
2226
|
break $l$block_2;
|
|
2227
2227
|
}
|
|
2228
|
-
var tmp0_elvis_lhs = $this.
|
|
2228
|
+
var tmp0_elvis_lhs = $this.y2j_1.a2r($this.c2k_1.e2l_1);
|
|
2229
2229
|
var tmp_1;
|
|
2230
2230
|
if (tmp0_elvis_lhs == null) {
|
|
2231
2231
|
tmp$ret$1 = false;
|
|
@@ -2235,9 +2235,9 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
var enumValue = tmp_1;
|
|
2237
2237
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
2238
|
-
var coerceToNull = !tmp0.
|
|
2238
|
+
var coerceToNull = !tmp0.o2j_1.h2l_1 && elementDescriptor.cu();
|
|
2239
2239
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
2240
|
-
$this.
|
|
2240
|
+
$this.y2j_1.l2p();
|
|
2241
2241
|
tmp$ret$1 = true;
|
|
2242
2242
|
break $l$block_2;
|
|
2243
2243
|
}
|
|
@@ -2247,24 +2247,24 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
2247
2247
|
return tmp$ret$1;
|
|
2248
2248
|
}
|
|
2249
2249
|
function decodeObjectIndex($this, descriptor) {
|
|
2250
|
-
var hasComma = $this.
|
|
2251
|
-
while ($this.
|
|
2250
|
+
var hasComma = $this.y2j_1.y2q();
|
|
2251
|
+
while ($this.y2j_1.k2p()) {
|
|
2252
2252
|
hasComma = false;
|
|
2253
2253
|
var key = decodeStringKey($this);
|
|
2254
|
-
$this.
|
|
2255
|
-
var index = getJsonNameIndex(descriptor, $this.
|
|
2254
|
+
$this.y2j_1.x2q(_Char___init__impl__6a9atx(58));
|
|
2255
|
+
var index = getJsonNameIndex(descriptor, $this.w2j_1, key);
|
|
2256
2256
|
var tmp;
|
|
2257
2257
|
if (!(index === -3)) {
|
|
2258
2258
|
var tmp_0;
|
|
2259
|
-
if ($this.
|
|
2260
|
-
hasComma = $this.
|
|
2259
|
+
if ($this.c2k_1.j2l_1 && coerceInputValue($this, descriptor, index)) {
|
|
2260
|
+
hasComma = $this.y2j_1.y2q();
|
|
2261
2261
|
tmp_0 = false;
|
|
2262
2262
|
} else {
|
|
2263
|
-
var tmp23_safe_receiver = $this.
|
|
2263
|
+
var tmp23_safe_receiver = $this.d2k_1;
|
|
2264
2264
|
if (tmp23_safe_receiver == null)
|
|
2265
2265
|
null;
|
|
2266
2266
|
else {
|
|
2267
|
-
tmp23_safe_receiver.
|
|
2267
|
+
tmp23_safe_receiver.e2o(index);
|
|
2268
2268
|
}
|
|
2269
2269
|
return index;
|
|
2270
2270
|
}
|
|
@@ -2277,33 +2277,33 @@ function decodeObjectIndex($this, descriptor) {
|
|
|
2277
2277
|
hasComma = handleUnknown($this, key);
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
|
-
if (hasComma && !$this.
|
|
2281
|
-
invalidTrailingComma($this.
|
|
2280
|
+
if (hasComma && !$this.w2j_1.o2j_1.q2l_1) {
|
|
2281
|
+
invalidTrailingComma($this.y2j_1);
|
|
2282
2282
|
}
|
|
2283
|
-
var tmp24_safe_receiver = $this.
|
|
2284
|
-
var tmp0_elvis_lhs = tmp24_safe_receiver == null ? null : tmp24_safe_receiver.
|
|
2283
|
+
var tmp24_safe_receiver = $this.d2k_1;
|
|
2284
|
+
var tmp0_elvis_lhs = tmp24_safe_receiver == null ? null : tmp24_safe_receiver.f2o();
|
|
2285
2285
|
return tmp0_elvis_lhs == null ? -1 : tmp0_elvis_lhs;
|
|
2286
2286
|
}
|
|
2287
2287
|
function handleUnknown($this, key) {
|
|
2288
|
-
if ($this.
|
|
2289
|
-
$this.
|
|
2288
|
+
if ($this.c2k_1.d2l_1 || trySkip($this, $this.b2k_1, key)) {
|
|
2289
|
+
$this.y2j_1.c2r($this.c2k_1.e2l_1);
|
|
2290
2290
|
} else {
|
|
2291
|
-
$this.
|
|
2291
|
+
$this.y2j_1.b2r(key);
|
|
2292
2292
|
}
|
|
2293
|
-
return $this.
|
|
2293
|
+
return $this.y2j_1.y2q();
|
|
2294
2294
|
}
|
|
2295
2295
|
function decodeListIndex($this) {
|
|
2296
|
-
var hasComma = $this.
|
|
2296
|
+
var hasComma = $this.y2j_1.y2q();
|
|
2297
2297
|
var tmp;
|
|
2298
|
-
if ($this.
|
|
2299
|
-
if (!($this.
|
|
2300
|
-
$this.
|
|
2298
|
+
if ($this.y2j_1.k2p()) {
|
|
2299
|
+
if (!($this.a2k_1 === -1) && !hasComma) {
|
|
2300
|
+
$this.y2j_1.h2o('Expected end of the array or comma');
|
|
2301
2301
|
}
|
|
2302
|
-
$this.
|
|
2303
|
-
tmp = $this.
|
|
2302
|
+
$this.a2k_1 = $this.a2k_1 + 1 | 0;
|
|
2303
|
+
tmp = $this.a2k_1;
|
|
2304
2304
|
} else {
|
|
2305
|
-
if (hasComma && !$this.
|
|
2306
|
-
invalidTrailingComma($this.
|
|
2305
|
+
if (hasComma && !$this.w2j_1.o2j_1.q2l_1) {
|
|
2306
|
+
invalidTrailingComma($this.y2j_1, 'array');
|
|
2307
2307
|
}
|
|
2308
2308
|
tmp = -1;
|
|
2309
2309
|
}
|
|
@@ -2311,46 +2311,46 @@ function decodeListIndex($this) {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
function decodeStringKey($this) {
|
|
2313
2313
|
var tmp;
|
|
2314
|
-
if ($this.
|
|
2315
|
-
tmp = $this.
|
|
2314
|
+
if ($this.c2k_1.e2l_1) {
|
|
2315
|
+
tmp = $this.y2j_1.e2r();
|
|
2316
2316
|
} else {
|
|
2317
|
-
tmp = $this.
|
|
2317
|
+
tmp = $this.y2j_1.d2r();
|
|
2318
2318
|
}
|
|
2319
2319
|
return tmp;
|
|
2320
2320
|
}
|
|
2321
2321
|
function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
|
|
2322
2322
|
AbstractDecoder.call(this);
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
this.
|
|
2330
|
-
this.
|
|
2323
|
+
this.w2j_1 = json;
|
|
2324
|
+
this.x2j_1 = mode;
|
|
2325
|
+
this.y2j_1 = lexer;
|
|
2326
|
+
this.z2j_1 = this.w2j_1.e23();
|
|
2327
|
+
this.a2k_1 = -1;
|
|
2328
|
+
this.b2k_1 = discriminatorHolder;
|
|
2329
|
+
this.c2k_1 = this.w2j_1.o2j_1;
|
|
2330
|
+
this.d2k_1 = this.c2k_1.h2l_1 ? null : new JsonElementMarker(descriptor);
|
|
2331
2331
|
}
|
|
2332
|
-
protoOf(StreamingJsonDecoder).
|
|
2333
|
-
return this.
|
|
2332
|
+
protoOf(StreamingJsonDecoder).t2l = function () {
|
|
2333
|
+
return this.w2j_1;
|
|
2334
2334
|
};
|
|
2335
|
-
protoOf(StreamingJsonDecoder).
|
|
2336
|
-
return this.
|
|
2335
|
+
protoOf(StreamingJsonDecoder).e23 = function () {
|
|
2336
|
+
return this.z2j_1;
|
|
2337
2337
|
};
|
|
2338
|
-
protoOf(StreamingJsonDecoder).
|
|
2339
|
-
return (new JsonTreeReader(this.
|
|
2338
|
+
protoOf(StreamingJsonDecoder).u2l = function () {
|
|
2339
|
+
return (new JsonTreeReader(this.w2j_1.o2j_1, this.y2j_1)).n2p();
|
|
2340
2340
|
};
|
|
2341
|
-
protoOf(StreamingJsonDecoder).
|
|
2341
|
+
protoOf(StreamingJsonDecoder).o22 = function (deserializer) {
|
|
2342
2342
|
try {
|
|
2343
2343
|
var tmp;
|
|
2344
2344
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
2345
2345
|
tmp = true;
|
|
2346
2346
|
} else {
|
|
2347
|
-
tmp = this.
|
|
2347
|
+
tmp = this.w2j_1.o2j_1.k2l_1;
|
|
2348
2348
|
}
|
|
2349
2349
|
if (tmp) {
|
|
2350
|
-
return deserializer.
|
|
2350
|
+
return deserializer.r1z(this);
|
|
2351
2351
|
}
|
|
2352
|
-
var discriminator = classDiscriminator(deserializer.
|
|
2353
|
-
var tmp0_elvis_lhs = this.
|
|
2352
|
+
var discriminator = classDiscriminator(deserializer.p1z(), this.w2j_1);
|
|
2353
|
+
var tmp0_elvis_lhs = this.y2j_1.f2r(discriminator, this.c2k_1.e2l_1);
|
|
2354
2354
|
var tmp_0;
|
|
2355
2355
|
if (tmp0_elvis_lhs == null) {
|
|
2356
2356
|
var tmp2 = isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE();
|
|
@@ -2361,20 +2361,20 @@ protoOf(StreamingJsonDecoder).n22 = function (deserializer) {
|
|
|
2361
2361
|
if (!(tmp2 instanceof AbstractPolymorphicSerializer)) {
|
|
2362
2362
|
tmp_1 = true;
|
|
2363
2363
|
} else {
|
|
2364
|
-
tmp_1 = this.
|
|
2364
|
+
tmp_1 = this.t2l().o2j_1.k2l_1;
|
|
2365
2365
|
}
|
|
2366
2366
|
if (tmp_1) {
|
|
2367
|
-
tmp$ret$0 = tmp2.
|
|
2367
|
+
tmp$ret$0 = tmp2.r1z(this);
|
|
2368
2368
|
break $l$block;
|
|
2369
2369
|
}
|
|
2370
|
-
var discriminator_0 = classDiscriminator(tmp2.
|
|
2371
|
-
var tmp0 = this.
|
|
2370
|
+
var discriminator_0 = classDiscriminator(tmp2.p1z(), this.t2l());
|
|
2371
|
+
var tmp0 = this.u2l();
|
|
2372
2372
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2373
|
-
var serialName = tmp2.
|
|
2373
|
+
var serialName = tmp2.p1z().v20();
|
|
2374
2374
|
if (!(tmp0 instanceof JsonObject)) {
|
|
2375
2375
|
var tmp_2 = getKClass(JsonObject).o();
|
|
2376
2376
|
var tmp_3 = getKClassFromExpression(tmp0).o();
|
|
2377
|
-
var tmp$ret$1 = this.
|
|
2377
|
+
var tmp$ret$1 = this.y2j_1.f2k_1.u2o();
|
|
2378
2378
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
2379
2379
|
}
|
|
2380
2380
|
var jsonTree = tmp0;
|
|
@@ -2395,7 +2395,7 @@ protoOf(StreamingJsonDecoder).n22 = function (deserializer) {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
var tmp_6 = tmp_4;
|
|
2397
2397
|
var actualSerializer = isInterface(tmp_6, DeserializationStrategy) ? tmp_6 : THROW_CCE();
|
|
2398
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
2398
|
+
tmp$ret$0 = readPolymorphicJson(this.t2l(), discriminator_0, jsonTree, actualSerializer);
|
|
2399
2399
|
}
|
|
2400
2400
|
return tmp$ret$0;
|
|
2401
2401
|
} else {
|
|
@@ -2411,7 +2411,7 @@ protoOf(StreamingJsonDecoder).n22 = function (deserializer) {
|
|
|
2411
2411
|
var it_0 = $p;
|
|
2412
2412
|
var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
|
|
2413
2413
|
var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
|
|
2414
|
-
this.
|
|
2414
|
+
this.y2j_1.h2o(message, VOID, hint);
|
|
2415
2415
|
} else {
|
|
2416
2416
|
throw $p;
|
|
2417
2417
|
}
|
|
@@ -2419,37 +2419,37 @@ protoOf(StreamingJsonDecoder).n22 = function (deserializer) {
|
|
|
2419
2419
|
}
|
|
2420
2420
|
var tmp_9 = tmp_7;
|
|
2421
2421
|
var actualSerializer_0 = isInterface(tmp_9, DeserializationStrategy) ? tmp_9 : THROW_CCE();
|
|
2422
|
-
this.
|
|
2423
|
-
return actualSerializer_0.
|
|
2422
|
+
this.b2k_1 = new DiscriminatorHolder(discriminator);
|
|
2423
|
+
return actualSerializer_0.r1z(this);
|
|
2424
2424
|
} catch ($p) {
|
|
2425
2425
|
if ($p instanceof MissingFieldException) {
|
|
2426
2426
|
var e = $p;
|
|
2427
2427
|
if (contains_0(ensureNotNull(e.message), 'at path'))
|
|
2428
2428
|
throw e;
|
|
2429
|
-
throw new MissingFieldException(e.
|
|
2429
|
+
throw new MissingFieldException(e.j20_1, plus(e.message, ' at path: ') + this.y2j_1.f2k_1.u2o(), e);
|
|
2430
2430
|
} else {
|
|
2431
2431
|
throw $p;
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
2434
|
};
|
|
2435
|
-
protoOf(StreamingJsonDecoder).
|
|
2436
|
-
var newMode = switchMode(this.
|
|
2437
|
-
this.
|
|
2438
|
-
this.
|
|
2435
|
+
protoOf(StreamingJsonDecoder).p22 = function (descriptor) {
|
|
2436
|
+
var newMode = switchMode(this.w2j_1, descriptor);
|
|
2437
|
+
this.y2j_1.f2k_1.p2o(descriptor);
|
|
2438
|
+
this.y2j_1.x2q(newMode.i2r_1);
|
|
2439
2439
|
checkLeadingComma(this);
|
|
2440
2440
|
var tmp;
|
|
2441
2441
|
switch (newMode.b3_1) {
|
|
2442
2442
|
case 1:
|
|
2443
2443
|
case 2:
|
|
2444
2444
|
case 3:
|
|
2445
|
-
tmp = new StreamingJsonDecoder(this.
|
|
2445
|
+
tmp = new StreamingJsonDecoder(this.w2j_1, newMode, this.y2j_1, descriptor, this.b2k_1);
|
|
2446
2446
|
break;
|
|
2447
2447
|
default:
|
|
2448
2448
|
var tmp_0;
|
|
2449
|
-
if (this.
|
|
2449
|
+
if (this.x2j_1.equals(newMode) && this.w2j_1.o2j_1.h2l_1) {
|
|
2450
2450
|
tmp_0 = this;
|
|
2451
2451
|
} else {
|
|
2452
|
-
tmp_0 = new StreamingJsonDecoder(this.
|
|
2452
|
+
tmp_0 = new StreamingJsonDecoder(this.w2j_1, newMode, this.y2j_1, descriptor, this.b2k_1);
|
|
2453
2453
|
}
|
|
2454
2454
|
|
|
2455
2455
|
tmp = tmp_0;
|
|
@@ -2457,44 +2457,44 @@ protoOf(StreamingJsonDecoder).o22 = function (descriptor) {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
return tmp;
|
|
2459
2459
|
};
|
|
2460
|
-
protoOf(StreamingJsonDecoder).
|
|
2461
|
-
if (this.
|
|
2460
|
+
protoOf(StreamingJsonDecoder).q22 = function (descriptor) {
|
|
2461
|
+
if (this.w2j_1.o2j_1.d2l_1 && descriptor.d21() === 0) {
|
|
2462
2462
|
skipLeftoverElements(this, descriptor);
|
|
2463
2463
|
}
|
|
2464
|
-
if (this.
|
|
2465
|
-
invalidTrailingComma(this.
|
|
2464
|
+
if (this.y2j_1.y2q() && !this.w2j_1.o2j_1.q2l_1) {
|
|
2465
|
+
invalidTrailingComma(this.y2j_1, '');
|
|
2466
2466
|
}
|
|
2467
|
-
this.
|
|
2468
|
-
this.
|
|
2467
|
+
this.y2j_1.x2q(this.x2j_1.j2r_1);
|
|
2468
|
+
this.y2j_1.f2k_1.t2o();
|
|
2469
2469
|
};
|
|
2470
|
-
protoOf(StreamingJsonDecoder).
|
|
2470
|
+
protoOf(StreamingJsonDecoder).a22 = function () {
|
|
2471
2471
|
var tmp;
|
|
2472
|
-
var tmp21_safe_receiver = this.
|
|
2473
|
-
var tmp0_elvis_lhs = tmp21_safe_receiver == null ? null : tmp21_safe_receiver.
|
|
2472
|
+
var tmp21_safe_receiver = this.d2k_1;
|
|
2473
|
+
var tmp0_elvis_lhs = tmp21_safe_receiver == null ? null : tmp21_safe_receiver.d2o_1;
|
|
2474
2474
|
if (!(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs)) {
|
|
2475
|
-
tmp = !this.
|
|
2475
|
+
tmp = !this.y2j_1.k2r();
|
|
2476
2476
|
} else {
|
|
2477
2477
|
tmp = false;
|
|
2478
2478
|
}
|
|
2479
2479
|
return tmp;
|
|
2480
2480
|
};
|
|
2481
|
-
protoOf(StreamingJsonDecoder).
|
|
2481
|
+
protoOf(StreamingJsonDecoder).b22 = function () {
|
|
2482
2482
|
return null;
|
|
2483
2483
|
};
|
|
2484
|
-
protoOf(StreamingJsonDecoder).
|
|
2485
|
-
var isMapKey = this.
|
|
2484
|
+
protoOf(StreamingJsonDecoder).b23 = function (descriptor, index, deserializer, previousValue) {
|
|
2485
|
+
var isMapKey = this.x2j_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
2486
2486
|
if (isMapKey) {
|
|
2487
|
-
this.
|
|
2487
|
+
this.y2j_1.f2k_1.s2o();
|
|
2488
2488
|
}
|
|
2489
|
-
var value = protoOf(AbstractDecoder).
|
|
2489
|
+
var value = protoOf(AbstractDecoder).b23.call(this, descriptor, index, deserializer, previousValue);
|
|
2490
2490
|
if (isMapKey) {
|
|
2491
|
-
this.
|
|
2491
|
+
this.y2j_1.f2k_1.r2o(value);
|
|
2492
2492
|
}
|
|
2493
2493
|
return value;
|
|
2494
2494
|
};
|
|
2495
|
-
protoOf(StreamingJsonDecoder).
|
|
2495
|
+
protoOf(StreamingJsonDecoder).g23 = function (descriptor) {
|
|
2496
2496
|
var index;
|
|
2497
|
-
switch (this.
|
|
2497
|
+
switch (this.x2j_1.b3_1) {
|
|
2498
2498
|
case 0:
|
|
2499
2499
|
index = decodeObjectIndex(this, descriptor);
|
|
2500
2500
|
break;
|
|
@@ -2505,44 +2505,44 @@ protoOf(StreamingJsonDecoder).f23 = function (descriptor) {
|
|
|
2505
2505
|
index = decodeListIndex(this);
|
|
2506
2506
|
break;
|
|
2507
2507
|
}
|
|
2508
|
-
if (!this.
|
|
2509
|
-
this.
|
|
2508
|
+
if (!this.x2j_1.equals(WriteMode_MAP_getInstance())) {
|
|
2509
|
+
this.y2j_1.f2k_1.q2o(index);
|
|
2510
2510
|
}
|
|
2511
2511
|
return index;
|
|
2512
2512
|
};
|
|
2513
|
-
protoOf(StreamingJsonDecoder).b22 = function () {
|
|
2514
|
-
return this.x2j_1.k2r();
|
|
2515
|
-
};
|
|
2516
2513
|
protoOf(StreamingJsonDecoder).c22 = function () {
|
|
2517
|
-
|
|
2514
|
+
return this.y2j_1.l2r();
|
|
2515
|
+
};
|
|
2516
|
+
protoOf(StreamingJsonDecoder).d22 = function () {
|
|
2517
|
+
var value = this.y2j_1.f2m();
|
|
2518
2518
|
if (!equalsLong(value, fromInt(convertToByte(value)))) {
|
|
2519
|
-
this.
|
|
2519
|
+
this.y2j_1.h2o("Failed to parse byte for input '" + value.toString() + "'");
|
|
2520
2520
|
}
|
|
2521
2521
|
return convertToByte(value);
|
|
2522
2522
|
};
|
|
2523
|
-
protoOf(StreamingJsonDecoder).
|
|
2524
|
-
var value = this.
|
|
2523
|
+
protoOf(StreamingJsonDecoder).e22 = function () {
|
|
2524
|
+
var value = this.y2j_1.f2m();
|
|
2525
2525
|
if (!equalsLong(value, fromInt(convertToShort(value)))) {
|
|
2526
|
-
this.
|
|
2526
|
+
this.y2j_1.h2o("Failed to parse short for input '" + value.toString() + "'");
|
|
2527
2527
|
}
|
|
2528
2528
|
return convertToShort(value);
|
|
2529
2529
|
};
|
|
2530
|
-
protoOf(StreamingJsonDecoder).
|
|
2531
|
-
var value = this.
|
|
2530
|
+
protoOf(StreamingJsonDecoder).f22 = function () {
|
|
2531
|
+
var value = this.y2j_1.f2m();
|
|
2532
2532
|
if (!equalsLong(value, fromInt(convertToInt(value)))) {
|
|
2533
|
-
this.
|
|
2533
|
+
this.y2j_1.h2o("Failed to parse int for input '" + value.toString() + "'");
|
|
2534
2534
|
}
|
|
2535
2535
|
return convertToInt(value);
|
|
2536
2536
|
};
|
|
2537
|
-
protoOf(StreamingJsonDecoder).f22 = function () {
|
|
2538
|
-
return this.x2j_1.e2m();
|
|
2539
|
-
};
|
|
2540
2537
|
protoOf(StreamingJsonDecoder).g22 = function () {
|
|
2541
|
-
|
|
2538
|
+
return this.y2j_1.f2m();
|
|
2539
|
+
};
|
|
2540
|
+
protoOf(StreamingJsonDecoder).h22 = function () {
|
|
2541
|
+
var tmp0 = this.y2j_1;
|
|
2542
2542
|
var tmp$ret$4;
|
|
2543
2543
|
$l$block: {
|
|
2544
2544
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2545
|
-
var input = tmp0.
|
|
2545
|
+
var input = tmp0.m2p();
|
|
2546
2546
|
try {
|
|
2547
2547
|
// Inline function 'kotlin.text.toFloat' call
|
|
2548
2548
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2552,82 +2552,82 @@ protoOf(StreamingJsonDecoder).g22 = function () {
|
|
|
2552
2552
|
} catch ($p) {
|
|
2553
2553
|
if ($p instanceof IllegalArgumentException) {
|
|
2554
2554
|
var e = $p;
|
|
2555
|
-
tmp0.
|
|
2555
|
+
tmp0.h2o("Failed to parse type '" + 'float' + "' for input '" + input + "'");
|
|
2556
2556
|
} else {
|
|
2557
2557
|
throw $p;
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
2561
|
var result = tmp$ret$4;
|
|
2562
|
-
var specialFp = this.
|
|
2562
|
+
var specialFp = this.w2j_1.o2j_1.m2l_1;
|
|
2563
2563
|
if (specialFp || isFinite(result))
|
|
2564
2564
|
return result;
|
|
2565
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2565
|
+
throwInvalidFloatingPointDecoded(this.y2j_1, result);
|
|
2566
2566
|
};
|
|
2567
|
-
protoOf(StreamingJsonDecoder).
|
|
2568
|
-
var tmp0 = this.
|
|
2567
|
+
protoOf(StreamingJsonDecoder).i22 = function () {
|
|
2568
|
+
var tmp0 = this.y2j_1;
|
|
2569
2569
|
var tmp$ret$1;
|
|
2570
2570
|
$l$block: {
|
|
2571
2571
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2572
|
-
var input = tmp0.
|
|
2572
|
+
var input = tmp0.m2p();
|
|
2573
2573
|
try {
|
|
2574
2574
|
tmp$ret$1 = toDouble(input);
|
|
2575
2575
|
break $l$block;
|
|
2576
2576
|
} catch ($p) {
|
|
2577
2577
|
if ($p instanceof IllegalArgumentException) {
|
|
2578
2578
|
var e = $p;
|
|
2579
|
-
tmp0.
|
|
2579
|
+
tmp0.h2o("Failed to parse type '" + 'double' + "' for input '" + input + "'");
|
|
2580
2580
|
} else {
|
|
2581
2581
|
throw $p;
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
2584
|
}
|
|
2585
2585
|
var result = tmp$ret$1;
|
|
2586
|
-
var specialFp = this.
|
|
2586
|
+
var specialFp = this.w2j_1.o2j_1.m2l_1;
|
|
2587
2587
|
if (specialFp || isFinite_0(result))
|
|
2588
2588
|
return result;
|
|
2589
|
-
throwInvalidFloatingPointDecoded(this.
|
|
2589
|
+
throwInvalidFloatingPointDecoded(this.y2j_1, result);
|
|
2590
2590
|
};
|
|
2591
|
-
protoOf(StreamingJsonDecoder).
|
|
2592
|
-
var string = this.
|
|
2591
|
+
protoOf(StreamingJsonDecoder).j22 = function () {
|
|
2592
|
+
var string = this.y2j_1.m2p();
|
|
2593
2593
|
if (!(string.length === 1)) {
|
|
2594
|
-
this.
|
|
2594
|
+
this.y2j_1.h2o("Expected single char, but got '" + string + "'");
|
|
2595
2595
|
}
|
|
2596
2596
|
return charCodeAt(string, 0);
|
|
2597
2597
|
};
|
|
2598
|
-
protoOf(StreamingJsonDecoder).
|
|
2598
|
+
protoOf(StreamingJsonDecoder).k22 = function () {
|
|
2599
2599
|
var tmp;
|
|
2600
|
-
if (this.
|
|
2601
|
-
tmp = this.
|
|
2600
|
+
if (this.c2k_1.e2l_1) {
|
|
2601
|
+
tmp = this.y2j_1.e2r();
|
|
2602
2602
|
} else {
|
|
2603
|
-
tmp = this.
|
|
2603
|
+
tmp = this.y2j_1.l2p();
|
|
2604
2604
|
}
|
|
2605
2605
|
return tmp;
|
|
2606
2606
|
};
|
|
2607
|
-
protoOf(StreamingJsonDecoder).
|
|
2608
|
-
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.
|
|
2607
|
+
protoOf(StreamingJsonDecoder).m22 = function (descriptor) {
|
|
2608
|
+
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.y2j_1, this.w2j_1) : protoOf(AbstractDecoder).m22.call(this, descriptor);
|
|
2609
2609
|
};
|
|
2610
|
-
protoOf(StreamingJsonDecoder).
|
|
2611
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.
|
|
2610
|
+
protoOf(StreamingJsonDecoder).l22 = function (enumDescriptor) {
|
|
2611
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.w2j_1, this.k22(), ' at path ' + this.y2j_1.f2k_1.u2o());
|
|
2612
2612
|
};
|
|
2613
2613
|
function JsonDecoderForUnsignedTypes(lexer, json) {
|
|
2614
2614
|
AbstractDecoder.call(this);
|
|
2615
|
-
this.
|
|
2616
|
-
this.
|
|
2615
|
+
this.m2r_1 = lexer;
|
|
2616
|
+
this.n2r_1 = json.e23();
|
|
2617
2617
|
}
|
|
2618
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2619
|
-
return this.
|
|
2618
|
+
protoOf(JsonDecoderForUnsignedTypes).e23 = function () {
|
|
2619
|
+
return this.n2r_1;
|
|
2620
2620
|
};
|
|
2621
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2621
|
+
protoOf(JsonDecoderForUnsignedTypes).g23 = function (descriptor) {
|
|
2622
2622
|
var message = 'unsupported';
|
|
2623
2623
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2624
2624
|
};
|
|
2625
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2626
|
-
var tmp0 = this.
|
|
2625
|
+
protoOf(JsonDecoderForUnsignedTypes).f22 = function () {
|
|
2626
|
+
var tmp0 = this.m2r_1;
|
|
2627
2627
|
var tmp$ret$2;
|
|
2628
2628
|
$l$block: {
|
|
2629
2629
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2630
|
-
var input = tmp0.
|
|
2630
|
+
var input = tmp0.m2p();
|
|
2631
2631
|
try {
|
|
2632
2632
|
// Inline function 'kotlin.UInt.toInt' call
|
|
2633
2633
|
var this_0 = toUInt(input);
|
|
@@ -2636,7 +2636,7 @@ protoOf(JsonDecoderForUnsignedTypes).e22 = function () {
|
|
|
2636
2636
|
} catch ($p) {
|
|
2637
2637
|
if ($p instanceof IllegalArgumentException) {
|
|
2638
2638
|
var e = $p;
|
|
2639
|
-
tmp0.
|
|
2639
|
+
tmp0.h2o("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
|
|
2640
2640
|
} else {
|
|
2641
2641
|
throw $p;
|
|
2642
2642
|
}
|
|
@@ -2644,12 +2644,12 @@ protoOf(JsonDecoderForUnsignedTypes).e22 = function () {
|
|
|
2644
2644
|
}
|
|
2645
2645
|
return tmp$ret$2;
|
|
2646
2646
|
};
|
|
2647
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2648
|
-
var tmp0 = this.
|
|
2647
|
+
protoOf(JsonDecoderForUnsignedTypes).g22 = function () {
|
|
2648
|
+
var tmp0 = this.m2r_1;
|
|
2649
2649
|
var tmp$ret$2;
|
|
2650
2650
|
$l$block: {
|
|
2651
2651
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2652
|
-
var input = tmp0.
|
|
2652
|
+
var input = tmp0.m2p();
|
|
2653
2653
|
try {
|
|
2654
2654
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2655
2655
|
var this_0 = toULong(input);
|
|
@@ -2658,7 +2658,7 @@ protoOf(JsonDecoderForUnsignedTypes).f22 = function () {
|
|
|
2658
2658
|
} catch ($p) {
|
|
2659
2659
|
if ($p instanceof IllegalArgumentException) {
|
|
2660
2660
|
var e = $p;
|
|
2661
|
-
tmp0.
|
|
2661
|
+
tmp0.h2o("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
|
|
2662
2662
|
} else {
|
|
2663
2663
|
throw $p;
|
|
2664
2664
|
}
|
|
@@ -2666,12 +2666,12 @@ protoOf(JsonDecoderForUnsignedTypes).f22 = function () {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
return tmp$ret$2;
|
|
2668
2668
|
};
|
|
2669
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2670
|
-
var tmp0 = this.
|
|
2669
|
+
protoOf(JsonDecoderForUnsignedTypes).d22 = function () {
|
|
2670
|
+
var tmp0 = this.m2r_1;
|
|
2671
2671
|
var tmp$ret$2;
|
|
2672
2672
|
$l$block: {
|
|
2673
2673
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2674
|
-
var input = tmp0.
|
|
2674
|
+
var input = tmp0.m2p();
|
|
2675
2675
|
try {
|
|
2676
2676
|
// Inline function 'kotlin.UByte.toByte' call
|
|
2677
2677
|
var this_0 = toUByte(input);
|
|
@@ -2680,7 +2680,7 @@ protoOf(JsonDecoderForUnsignedTypes).c22 = function () {
|
|
|
2680
2680
|
} catch ($p) {
|
|
2681
2681
|
if ($p instanceof IllegalArgumentException) {
|
|
2682
2682
|
var e = $p;
|
|
2683
|
-
tmp0.
|
|
2683
|
+
tmp0.h2o("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
|
|
2684
2684
|
} else {
|
|
2685
2685
|
throw $p;
|
|
2686
2686
|
}
|
|
@@ -2688,12 +2688,12 @@ protoOf(JsonDecoderForUnsignedTypes).c22 = function () {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return tmp$ret$2;
|
|
2690
2690
|
};
|
|
2691
|
-
protoOf(JsonDecoderForUnsignedTypes).
|
|
2692
|
-
var tmp0 = this.
|
|
2691
|
+
protoOf(JsonDecoderForUnsignedTypes).e22 = function () {
|
|
2692
|
+
var tmp0 = this.m2r_1;
|
|
2693
2693
|
var tmp$ret$2;
|
|
2694
2694
|
$l$block: {
|
|
2695
2695
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2696
|
-
var input = tmp0.
|
|
2696
|
+
var input = tmp0.m2p();
|
|
2697
2697
|
try {
|
|
2698
2698
|
// Inline function 'kotlin.UShort.toShort' call
|
|
2699
2699
|
var this_0 = toUShort(input);
|
|
@@ -2702,7 +2702,7 @@ protoOf(JsonDecoderForUnsignedTypes).d22 = function () {
|
|
|
2702
2702
|
} catch ($p) {
|
|
2703
2703
|
if ($p instanceof IllegalArgumentException) {
|
|
2704
2704
|
var e = $p;
|
|
2705
|
-
tmp0.
|
|
2705
|
+
tmp0.h2o("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
|
|
2706
2706
|
} else {
|
|
2707
2707
|
throw $p;
|
|
2708
2708
|
}
|
|
@@ -2723,53 +2723,53 @@ function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache)
|
|
|
2723
2723
|
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
2724
2724
|
}
|
|
2725
2725
|
function encodeTypeInfo($this, discriminator, serialName) {
|
|
2726
|
-
$this.
|
|
2727
|
-
$this.
|
|
2728
|
-
$this.
|
|
2729
|
-
$this.
|
|
2730
|
-
$this.
|
|
2726
|
+
$this.v2o_1.b2n();
|
|
2727
|
+
$this.t23(discriminator);
|
|
2728
|
+
$this.v2o_1.e2n(_Char___init__impl__6a9atx(58));
|
|
2729
|
+
$this.v2o_1.d2n();
|
|
2730
|
+
$this.t23(serialName);
|
|
2731
2731
|
}
|
|
2732
2732
|
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
2733
2733
|
AbstractEncoder.call(this);
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2736
|
-
this.
|
|
2737
|
-
this.
|
|
2738
|
-
this.
|
|
2739
|
-
this.
|
|
2740
|
-
this.
|
|
2741
|
-
this.b2p_1 = null;
|
|
2734
|
+
this.v2o_1 = composer;
|
|
2735
|
+
this.w2o_1 = json;
|
|
2736
|
+
this.x2o_1 = mode;
|
|
2737
|
+
this.y2o_1 = modeReuseCache;
|
|
2738
|
+
this.z2o_1 = this.w2o_1.e23();
|
|
2739
|
+
this.a2p_1 = this.w2o_1.o2j_1;
|
|
2740
|
+
this.b2p_1 = false;
|
|
2742
2741
|
this.c2p_1 = null;
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2742
|
+
this.d2p_1 = null;
|
|
2743
|
+
var i = this.x2o_1.b3_1;
|
|
2744
|
+
if (!(this.y2o_1 == null)) {
|
|
2745
|
+
if (!(this.y2o_1[i] === null) || !(this.y2o_1[i] === this)) {
|
|
2746
|
+
this.y2o_1[i] = this;
|
|
2747
2747
|
}
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
|
-
protoOf(StreamingJsonEncoder).
|
|
2751
|
-
return this.
|
|
2750
|
+
protoOf(StreamingJsonEncoder).t2l = function () {
|
|
2751
|
+
return this.w2o_1;
|
|
2752
2752
|
};
|
|
2753
|
-
protoOf(StreamingJsonEncoder).
|
|
2754
|
-
return this.
|
|
2753
|
+
protoOf(StreamingJsonEncoder).e23 = function () {
|
|
2754
|
+
return this.z2o_1;
|
|
2755
2755
|
};
|
|
2756
|
-
protoOf(StreamingJsonEncoder).
|
|
2757
|
-
return this.
|
|
2756
|
+
protoOf(StreamingJsonEncoder).m24 = function (descriptor, index) {
|
|
2757
|
+
return this.a2p_1.c2l_1;
|
|
2758
2758
|
};
|
|
2759
|
-
protoOf(StreamingJsonEncoder).
|
|
2759
|
+
protoOf(StreamingJsonEncoder).h24 = function (serializer, value) {
|
|
2760
2760
|
$l$block: {
|
|
2761
2761
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
2762
|
-
if (this.
|
|
2763
|
-
serializer.
|
|
2762
|
+
if (this.t2l().o2j_1.k2l_1) {
|
|
2763
|
+
serializer.q1z(this, value);
|
|
2764
2764
|
break $l$block;
|
|
2765
2765
|
}
|
|
2766
2766
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
2767
2767
|
var tmp;
|
|
2768
2768
|
if (isPolymorphicSerializer) {
|
|
2769
|
-
tmp = !this.
|
|
2769
|
+
tmp = !this.t2l().o2j_1.s2l_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
2770
2770
|
} else {
|
|
2771
2771
|
var tmp_0;
|
|
2772
|
-
switch (this.
|
|
2772
|
+
switch (this.t2l().o2j_1.s2l_1.b3_1) {
|
|
2773
2773
|
case 0:
|
|
2774
2774
|
case 2:
|
|
2775
2775
|
tmp_0 = false;
|
|
@@ -2777,7 +2777,7 @@ protoOf(StreamingJsonEncoder).g24 = function (serializer, value) {
|
|
|
2777
2777
|
case 1:
|
|
2778
2778
|
// Inline function 'kotlin.let' call
|
|
2779
2779
|
|
|
2780
|
-
var it = serializer.
|
|
2780
|
+
var it = serializer.p1z().b21();
|
|
2781
2781
|
tmp_0 = equals(it, CLASS_getInstance()) || equals(it, OBJECT_getInstance());
|
|
2782
2782
|
break;
|
|
2783
2783
|
default:
|
|
@@ -2787,14 +2787,14 @@ protoOf(StreamingJsonEncoder).g24 = function (serializer, value) {
|
|
|
2787
2787
|
tmp = tmp_0;
|
|
2788
2788
|
}
|
|
2789
2789
|
var needDiscriminator = tmp;
|
|
2790
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.
|
|
2790
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.p1z(), this.t2l()) : null;
|
|
2791
2791
|
var tmp_1;
|
|
2792
2792
|
if (isPolymorphicSerializer) {
|
|
2793
2793
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
2794
2794
|
$l$block_0: {
|
|
2795
2795
|
// Inline function 'kotlin.requireNotNull' call
|
|
2796
2796
|
if (value == null) {
|
|
2797
|
-
var message = 'Value for serializer ' + toString(serializer.
|
|
2797
|
+
var message = 'Value for serializer ' + toString(serializer.p1z()) + ' should always be non-null. Please report issue to the kotlinx.serialization tracker.';
|
|
2798
2798
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2799
2799
|
} else {
|
|
2800
2800
|
break $l$block_0;
|
|
@@ -2804,221 +2804,221 @@ protoOf(StreamingJsonEncoder).g24 = function (serializer, value) {
|
|
|
2804
2804
|
if (!(baseClassDiscriminator == null)) {
|
|
2805
2805
|
access$validateIfSealed$tPolymorphicKt(serializer, actual, baseClassDiscriminator);
|
|
2806
2806
|
}
|
|
2807
|
-
checkKind(actual.
|
|
2807
|
+
checkKind(actual.p1z().b21());
|
|
2808
2808
|
tmp_1 = isInterface(actual, SerializationStrategy) ? actual : THROW_CCE();
|
|
2809
2809
|
} else {
|
|
2810
2810
|
tmp_1 = serializer;
|
|
2811
2811
|
}
|
|
2812
2812
|
var actualSerializer = tmp_1;
|
|
2813
2813
|
if (!(baseClassDiscriminator == null)) {
|
|
2814
|
-
var serialName = actualSerializer.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2814
|
+
var serialName = actualSerializer.p1z().v20();
|
|
2815
|
+
this.c2p_1 = baseClassDiscriminator;
|
|
2816
|
+
this.d2p_1 = serialName;
|
|
2817
2817
|
}
|
|
2818
|
-
actualSerializer.
|
|
2818
|
+
actualSerializer.q1z(this, value);
|
|
2819
2819
|
}
|
|
2820
2820
|
};
|
|
2821
|
-
protoOf(StreamingJsonEncoder).
|
|
2822
|
-
var newMode = switchMode(this.
|
|
2823
|
-
if (!(newMode.
|
|
2824
|
-
this.
|
|
2825
|
-
this.
|
|
2821
|
+
protoOf(StreamingJsonEncoder).p22 = function (descriptor) {
|
|
2822
|
+
var newMode = switchMode(this.w2o_1, descriptor);
|
|
2823
|
+
if (!(newMode.i2r_1 === _Char___init__impl__6a9atx(0))) {
|
|
2824
|
+
this.v2o_1.e2n(newMode.i2r_1);
|
|
2825
|
+
this.v2o_1.z2m();
|
|
2826
2826
|
}
|
|
2827
|
-
var discriminator = this.
|
|
2827
|
+
var discriminator = this.c2p_1;
|
|
2828
2828
|
if (!(discriminator == null)) {
|
|
2829
|
-
var tmp0_elvis_lhs = this.
|
|
2830
|
-
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.
|
|
2831
|
-
this.b2p_1 = null;
|
|
2829
|
+
var tmp0_elvis_lhs = this.d2p_1;
|
|
2830
|
+
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.v20() : tmp0_elvis_lhs);
|
|
2832
2831
|
this.c2p_1 = null;
|
|
2832
|
+
this.d2p_1 = null;
|
|
2833
2833
|
}
|
|
2834
|
-
if (this.
|
|
2834
|
+
if (this.x2o_1.equals(newMode)) {
|
|
2835
2835
|
return this;
|
|
2836
2836
|
}
|
|
2837
|
-
var tmp25_safe_receiver = this.
|
|
2837
|
+
var tmp25_safe_receiver = this.y2o_1;
|
|
2838
2838
|
var tmp1_elvis_lhs = tmp25_safe_receiver == null ? null : tmp25_safe_receiver[newMode.b3_1];
|
|
2839
|
-
return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.
|
|
2839
|
+
return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.v2o_1, this.w2o_1, newMode, this.y2o_1) : tmp1_elvis_lhs;
|
|
2840
2840
|
};
|
|
2841
|
-
protoOf(StreamingJsonEncoder).
|
|
2842
|
-
if (!(this.
|
|
2843
|
-
this.
|
|
2844
|
-
this.
|
|
2845
|
-
this.
|
|
2841
|
+
protoOf(StreamingJsonEncoder).q22 = function (descriptor) {
|
|
2842
|
+
if (!(this.x2o_1.j2r_1 === _Char___init__impl__6a9atx(0))) {
|
|
2843
|
+
this.v2o_1.a2n();
|
|
2844
|
+
this.v2o_1.c2n();
|
|
2845
|
+
this.v2o_1.e2n(this.x2o_1.j2r_1);
|
|
2846
2846
|
}
|
|
2847
2847
|
};
|
|
2848
|
-
protoOf(StreamingJsonEncoder).
|
|
2849
|
-
switch (this.
|
|
2848
|
+
protoOf(StreamingJsonEncoder).i23 = function (descriptor, index) {
|
|
2849
|
+
switch (this.x2o_1.b3_1) {
|
|
2850
2850
|
case 1:
|
|
2851
|
-
if (!this.
|
|
2852
|
-
this.
|
|
2851
|
+
if (!this.v2o_1.y2m_1) {
|
|
2852
|
+
this.v2o_1.e2n(_Char___init__impl__6a9atx(44));
|
|
2853
2853
|
}
|
|
2854
2854
|
|
|
2855
|
-
this.
|
|
2855
|
+
this.v2o_1.b2n();
|
|
2856
2856
|
break;
|
|
2857
2857
|
case 2:
|
|
2858
|
-
if (!this.
|
|
2858
|
+
if (!this.v2o_1.y2m_1) {
|
|
2859
2859
|
var tmp = this;
|
|
2860
2860
|
var tmp_0;
|
|
2861
2861
|
if ((index % 2 | 0) === 0) {
|
|
2862
|
-
this.
|
|
2863
|
-
this.
|
|
2862
|
+
this.v2o_1.e2n(_Char___init__impl__6a9atx(44));
|
|
2863
|
+
this.v2o_1.b2n();
|
|
2864
2864
|
tmp_0 = true;
|
|
2865
2865
|
} else {
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2866
|
+
this.v2o_1.e2n(_Char___init__impl__6a9atx(58));
|
|
2867
|
+
this.v2o_1.d2n();
|
|
2868
2868
|
tmp_0 = false;
|
|
2869
2869
|
}
|
|
2870
|
-
tmp.
|
|
2870
|
+
tmp.b2p_1 = tmp_0;
|
|
2871
2871
|
} else {
|
|
2872
|
-
this.
|
|
2873
|
-
this.
|
|
2872
|
+
this.b2p_1 = true;
|
|
2873
|
+
this.v2o_1.b2n();
|
|
2874
2874
|
}
|
|
2875
2875
|
|
|
2876
2876
|
break;
|
|
2877
2877
|
case 3:
|
|
2878
2878
|
if (index === 0)
|
|
2879
|
-
this.
|
|
2879
|
+
this.b2p_1 = true;
|
|
2880
2880
|
if (index === 1) {
|
|
2881
|
-
this.
|
|
2882
|
-
this.
|
|
2883
|
-
this.
|
|
2881
|
+
this.v2o_1.e2n(_Char___init__impl__6a9atx(44));
|
|
2882
|
+
this.v2o_1.d2n();
|
|
2883
|
+
this.b2p_1 = false;
|
|
2884
2884
|
}
|
|
2885
2885
|
|
|
2886
2886
|
break;
|
|
2887
2887
|
default:
|
|
2888
|
-
if (!this.
|
|
2889
|
-
this.
|
|
2888
|
+
if (!this.v2o_1.y2m_1) {
|
|
2889
|
+
this.v2o_1.e2n(_Char___init__impl__6a9atx(44));
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2892
|
+
this.v2o_1.b2n();
|
|
2893
|
+
this.t23(getJsonElementName(descriptor, this.w2o_1, index));
|
|
2894
|
+
this.v2o_1.e2n(_Char___init__impl__6a9atx(58));
|
|
2895
|
+
this.v2o_1.d2n();
|
|
2896
2896
|
break;
|
|
2897
2897
|
}
|
|
2898
2898
|
return true;
|
|
2899
2899
|
};
|
|
2900
|
-
protoOf(StreamingJsonEncoder).
|
|
2901
|
-
if (!(value == null) || this.
|
|
2902
|
-
protoOf(AbstractEncoder).
|
|
2900
|
+
protoOf(StreamingJsonEncoder).i24 = function (descriptor, index, serializer, value) {
|
|
2901
|
+
if (!(value == null) || this.a2p_1.h2l_1) {
|
|
2902
|
+
protoOf(AbstractEncoder).i24.call(this, descriptor, index, serializer, value);
|
|
2903
2903
|
}
|
|
2904
2904
|
};
|
|
2905
|
-
protoOf(StreamingJsonEncoder).
|
|
2905
|
+
protoOf(StreamingJsonEncoder).v23 = function (descriptor) {
|
|
2906
2906
|
var tmp;
|
|
2907
2907
|
if (get_isUnsignedNumber(descriptor)) {
|
|
2908
2908
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2909
2909
|
var tmp_0;
|
|
2910
|
-
var tmp_1 = this.
|
|
2910
|
+
var tmp_1 = this.v2o_1;
|
|
2911
2911
|
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
2912
|
-
tmp_0 = this.
|
|
2912
|
+
tmp_0 = this.v2o_1;
|
|
2913
2913
|
} else {
|
|
2914
|
-
var tmp0 = this.
|
|
2915
|
-
var p1 = this.
|
|
2914
|
+
var tmp0 = this.v2o_1.x2m_1;
|
|
2915
|
+
var p1 = this.b2p_1;
|
|
2916
2916
|
tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
|
|
2917
2917
|
}
|
|
2918
2918
|
var tmp$ret$1 = tmp_0;
|
|
2919
|
-
tmp = new StreamingJsonEncoder(tmp$ret$1, this.
|
|
2919
|
+
tmp = new StreamingJsonEncoder(tmp$ret$1, this.w2o_1, this.x2o_1, null);
|
|
2920
2920
|
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
2921
2921
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2922
2922
|
var tmp_2;
|
|
2923
|
-
var tmp_3 = this.
|
|
2923
|
+
var tmp_3 = this.v2o_1;
|
|
2924
2924
|
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
2925
|
-
tmp_2 = this.
|
|
2925
|
+
tmp_2 = this.v2o_1;
|
|
2926
2926
|
} else {
|
|
2927
|
-
var tmp0_0 = this.
|
|
2928
|
-
var p1_0 = this.
|
|
2927
|
+
var tmp0_0 = this.v2o_1.x2m_1;
|
|
2928
|
+
var p1_0 = this.b2p_1;
|
|
2929
2929
|
tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
|
|
2930
2930
|
}
|
|
2931
2931
|
var tmp$ret$3 = tmp_2;
|
|
2932
|
-
tmp = new StreamingJsonEncoder(tmp$ret$3, this.
|
|
2933
|
-
} else if (!(this.
|
|
2932
|
+
tmp = new StreamingJsonEncoder(tmp$ret$3, this.w2o_1, this.x2o_1, null);
|
|
2933
|
+
} else if (!(this.c2p_1 == null)) {
|
|
2934
2934
|
// Inline function 'kotlin.apply' call
|
|
2935
|
-
this.
|
|
2935
|
+
this.d2p_1 = descriptor.v20();
|
|
2936
2936
|
tmp = this;
|
|
2937
2937
|
} else {
|
|
2938
|
-
tmp = protoOf(AbstractEncoder).
|
|
2938
|
+
tmp = protoOf(AbstractEncoder).v23.call(this, descriptor);
|
|
2939
2939
|
}
|
|
2940
2940
|
return tmp;
|
|
2941
2941
|
};
|
|
2942
|
-
protoOf(StreamingJsonEncoder).
|
|
2943
|
-
this.
|
|
2944
|
-
};
|
|
2945
|
-
protoOf(StreamingJsonEncoder).k23 = function (value) {
|
|
2946
|
-
if (this.a2p_1) {
|
|
2947
|
-
this.s23(value.toString());
|
|
2948
|
-
} else {
|
|
2949
|
-
this.u2o_1.o2n(value);
|
|
2950
|
-
}
|
|
2942
|
+
protoOf(StreamingJsonEncoder).k23 = function () {
|
|
2943
|
+
this.v2o_1.g2n('null');
|
|
2951
2944
|
};
|
|
2952
2945
|
protoOf(StreamingJsonEncoder).l23 = function (value) {
|
|
2953
|
-
if (this.
|
|
2954
|
-
this.
|
|
2946
|
+
if (this.b2p_1) {
|
|
2947
|
+
this.t23(value.toString());
|
|
2955
2948
|
} else {
|
|
2956
|
-
this.
|
|
2949
|
+
this.v2o_1.p2n(value);
|
|
2957
2950
|
}
|
|
2958
2951
|
};
|
|
2959
2952
|
protoOf(StreamingJsonEncoder).m23 = function (value) {
|
|
2960
|
-
if (this.
|
|
2961
|
-
this.
|
|
2953
|
+
if (this.b2p_1) {
|
|
2954
|
+
this.t23(value.toString());
|
|
2962
2955
|
} else {
|
|
2963
|
-
this.
|
|
2956
|
+
this.v2o_1.k2n(value);
|
|
2964
2957
|
}
|
|
2965
2958
|
};
|
|
2966
2959
|
protoOf(StreamingJsonEncoder).n23 = function (value) {
|
|
2967
|
-
if (this.
|
|
2968
|
-
this.
|
|
2960
|
+
if (this.b2p_1) {
|
|
2961
|
+
this.t23(value.toString());
|
|
2969
2962
|
} else {
|
|
2970
|
-
this.
|
|
2963
|
+
this.v2o_1.m2n(value);
|
|
2971
2964
|
}
|
|
2972
2965
|
};
|
|
2973
2966
|
protoOf(StreamingJsonEncoder).o23 = function (value) {
|
|
2974
|
-
if (this.
|
|
2975
|
-
this.
|
|
2967
|
+
if (this.b2p_1) {
|
|
2968
|
+
this.t23(value.toString());
|
|
2976
2969
|
} else {
|
|
2977
|
-
this.
|
|
2970
|
+
this.v2o_1.n2n(value);
|
|
2978
2971
|
}
|
|
2979
2972
|
};
|
|
2980
2973
|
protoOf(StreamingJsonEncoder).p23 = function (value) {
|
|
2981
|
-
if (this.
|
|
2982
|
-
this.
|
|
2974
|
+
if (this.b2p_1) {
|
|
2975
|
+
this.t23(value.toString());
|
|
2983
2976
|
} else {
|
|
2984
|
-
this.
|
|
2985
|
-
}
|
|
2986
|
-
if (!this.z2o_1.l2l_1 && !isFinite(value)) {
|
|
2987
|
-
throw InvalidFloatingPointEncoded(value, toString(this.u2o_1.w2m_1));
|
|
2977
|
+
this.v2o_1.o2n(value);
|
|
2988
2978
|
}
|
|
2989
2979
|
};
|
|
2990
2980
|
protoOf(StreamingJsonEncoder).q23 = function (value) {
|
|
2991
|
-
if (this.
|
|
2992
|
-
this.
|
|
2981
|
+
if (this.b2p_1) {
|
|
2982
|
+
this.t23(value.toString());
|
|
2993
2983
|
} else {
|
|
2994
|
-
this.
|
|
2984
|
+
this.v2o_1.i2n(value);
|
|
2995
2985
|
}
|
|
2996
|
-
if (!this.
|
|
2997
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
2986
|
+
if (!this.a2p_1.m2l_1 && !isFinite(value)) {
|
|
2987
|
+
throw InvalidFloatingPointEncoded(value, toString(this.v2o_1.x2m_1));
|
|
2998
2988
|
}
|
|
2999
2989
|
};
|
|
3000
2990
|
protoOf(StreamingJsonEncoder).r23 = function (value) {
|
|
3001
|
-
this.
|
|
2991
|
+
if (this.b2p_1) {
|
|
2992
|
+
this.t23(value.toString());
|
|
2993
|
+
} else {
|
|
2994
|
+
this.v2o_1.j2n(value);
|
|
2995
|
+
}
|
|
2996
|
+
if (!this.a2p_1.m2l_1 && !isFinite_0(value)) {
|
|
2997
|
+
throw InvalidFloatingPointEncoded(value, toString(this.v2o_1.x2m_1));
|
|
2998
|
+
}
|
|
3002
2999
|
};
|
|
3003
3000
|
protoOf(StreamingJsonEncoder).s23 = function (value) {
|
|
3004
|
-
|
|
3001
|
+
this.t23(toString_1(value));
|
|
3002
|
+
};
|
|
3003
|
+
protoOf(StreamingJsonEncoder).t23 = function (value) {
|
|
3004
|
+
return this.v2o_1.q2n(value);
|
|
3005
3005
|
};
|
|
3006
|
-
protoOf(StreamingJsonEncoder).
|
|
3007
|
-
this.
|
|
3006
|
+
protoOf(StreamingJsonEncoder).u23 = function (enumDescriptor, index) {
|
|
3007
|
+
this.t23(enumDescriptor.w20(index));
|
|
3008
3008
|
};
|
|
3009
3009
|
function get_isUnsignedNumber(_this__u8e3s4) {
|
|
3010
3010
|
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
3011
|
-
return _this__u8e3s4.
|
|
3011
|
+
return _this__u8e3s4.c21() && get_unsignedNumberDescriptors().u1(_this__u8e3s4);
|
|
3012
3012
|
}
|
|
3013
3013
|
function get_isUnquotedLiteral(_this__u8e3s4) {
|
|
3014
3014
|
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
3015
|
-
return _this__u8e3s4.
|
|
3015
|
+
return _this__u8e3s4.c21() && equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor());
|
|
3016
3016
|
}
|
|
3017
3017
|
var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
|
|
3018
3018
|
function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
|
|
3019
3019
|
if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
|
|
3020
3020
|
properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
|
|
3021
|
-
unsignedNumberDescriptors = setOf([serializer_1(Companion_getInstance_0()).
|
|
3021
|
+
unsignedNumberDescriptors = setOf([serializer_1(Companion_getInstance_0()).p1z(), serializer_0(Companion_getInstance()).p1z(), serializer_2(Companion_getInstance_1()).p1z(), serializer_3(Companion_getInstance_2()).p1z()]);
|
|
3022
3022
|
}
|
|
3023
3023
|
}
|
|
3024
3024
|
function get_ESCAPE_STRINGS() {
|
|
@@ -3195,48 +3195,48 @@ function readJson(json, element, deserializer) {
|
|
|
3195
3195
|
}
|
|
3196
3196
|
}
|
|
3197
3197
|
var input = tmp;
|
|
3198
|
-
return input.
|
|
3198
|
+
return input.o22(deserializer);
|
|
3199
3199
|
}
|
|
3200
3200
|
function unparsedPrimitive($this, literal, primitive, tag) {
|
|
3201
3201
|
var type = startsWith(primitive, 'i') ? 'an ' + primitive : 'a ' + primitive;
|
|
3202
|
-
throw JsonDecodingException_0(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.
|
|
3202
|
+
throw JsonDecodingException_0(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.u2r(tag), toString($this.v2r()));
|
|
3203
3203
|
}
|
|
3204
3204
|
function AbstractJsonTreeDecoder(json, value, polymorphicDiscriminator) {
|
|
3205
3205
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3206
3206
|
NamedValueDecoder.call(this);
|
|
3207
|
-
this.
|
|
3208
|
-
this.
|
|
3209
|
-
this.
|
|
3210
|
-
this.
|
|
3207
|
+
this.q2r_1 = json;
|
|
3208
|
+
this.r2r_1 = value;
|
|
3209
|
+
this.s2r_1 = polymorphicDiscriminator;
|
|
3210
|
+
this.t2r_1 = this.t2l().o2j_1;
|
|
3211
3211
|
}
|
|
3212
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3213
|
-
return this.
|
|
3212
|
+
protoOf(AbstractJsonTreeDecoder).t2l = function () {
|
|
3213
|
+
return this.q2r_1;
|
|
3214
3214
|
};
|
|
3215
3215
|
protoOf(AbstractJsonTreeDecoder).l1 = function () {
|
|
3216
|
-
return this.
|
|
3216
|
+
return this.r2r_1;
|
|
3217
3217
|
};
|
|
3218
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3219
|
-
return this.
|
|
3218
|
+
protoOf(AbstractJsonTreeDecoder).e23 = function () {
|
|
3219
|
+
return this.t2l().e23();
|
|
3220
3220
|
};
|
|
3221
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3222
|
-
var tmp28_safe_receiver = this.
|
|
3221
|
+
protoOf(AbstractJsonTreeDecoder).v2r = function () {
|
|
3222
|
+
var tmp28_safe_receiver = this.v2g();
|
|
3223
3223
|
var tmp;
|
|
3224
3224
|
if (tmp28_safe_receiver == null) {
|
|
3225
3225
|
tmp = null;
|
|
3226
3226
|
} else {
|
|
3227
3227
|
// Inline function 'kotlin.let' call
|
|
3228
|
-
tmp = this.
|
|
3228
|
+
tmp = this.w2r(tmp28_safe_receiver);
|
|
3229
3229
|
}
|
|
3230
3230
|
var tmp0_elvis_lhs = tmp;
|
|
3231
3231
|
return tmp0_elvis_lhs == null ? this.l1() : tmp0_elvis_lhs;
|
|
3232
3232
|
};
|
|
3233
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3234
|
-
return this.
|
|
3233
|
+
protoOf(AbstractJsonTreeDecoder).u2r = function (currentTag) {
|
|
3234
|
+
return this.x2g() + ('.' + currentTag);
|
|
3235
3235
|
};
|
|
3236
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3237
|
-
return this.
|
|
3236
|
+
protoOf(AbstractJsonTreeDecoder).u2l = function () {
|
|
3237
|
+
return this.v2r();
|
|
3238
3238
|
};
|
|
3239
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3239
|
+
protoOf(AbstractJsonTreeDecoder).o22 = function (deserializer) {
|
|
3240
3240
|
var tmp$ret$0;
|
|
3241
3241
|
$l$block: {
|
|
3242
3242
|
// Inline function 'kotlinx.serialization.json.internal.decodeSerializableValuePolymorphic' call
|
|
@@ -3244,20 +3244,20 @@ protoOf(AbstractJsonTreeDecoder).n22 = function (deserializer) {
|
|
|
3244
3244
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
3245
3245
|
tmp = true;
|
|
3246
3246
|
} else {
|
|
3247
|
-
tmp = this.
|
|
3247
|
+
tmp = this.t2l().o2j_1.k2l_1;
|
|
3248
3248
|
}
|
|
3249
3249
|
if (tmp) {
|
|
3250
|
-
tmp$ret$0 = deserializer.
|
|
3250
|
+
tmp$ret$0 = deserializer.r1z(this);
|
|
3251
3251
|
break $l$block;
|
|
3252
3252
|
}
|
|
3253
|
-
var discriminator = classDiscriminator(deserializer.
|
|
3254
|
-
var tmp0 = this.
|
|
3253
|
+
var discriminator = classDiscriminator(deserializer.p1z(), this.t2l());
|
|
3254
|
+
var tmp0 = this.u2l();
|
|
3255
3255
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3256
|
-
var serialName = deserializer.
|
|
3256
|
+
var serialName = deserializer.p1z().v20();
|
|
3257
3257
|
if (!(tmp0 instanceof JsonObject)) {
|
|
3258
3258
|
var tmp_0 = getKClass(JsonObject).o();
|
|
3259
3259
|
var tmp_1 = getKClassFromExpression(tmp0).o();
|
|
3260
|
-
var tmp$ret$1 = this.
|
|
3260
|
+
var tmp$ret$1 = this.x2g();
|
|
3261
3261
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
3262
3262
|
}
|
|
3263
3263
|
var jsonTree = tmp0;
|
|
@@ -3278,16 +3278,16 @@ protoOf(AbstractJsonTreeDecoder).n22 = function (deserializer) {
|
|
|
3278
3278
|
}
|
|
3279
3279
|
var tmp_4 = tmp_2;
|
|
3280
3280
|
var actualSerializer = isInterface(tmp_4, DeserializationStrategy) ? tmp_4 : THROW_CCE();
|
|
3281
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
3281
|
+
tmp$ret$0 = readPolymorphicJson(this.t2l(), discriminator, jsonTree, actualSerializer);
|
|
3282
3282
|
}
|
|
3283
3283
|
return tmp$ret$0;
|
|
3284
3284
|
};
|
|
3285
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3285
|
+
protoOf(AbstractJsonTreeDecoder).w2g = function (parentName, childName) {
|
|
3286
3286
|
return childName;
|
|
3287
3287
|
};
|
|
3288
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3289
|
-
var currentObject = this.
|
|
3290
|
-
var tmp29_subject = descriptor.
|
|
3288
|
+
protoOf(AbstractJsonTreeDecoder).p22 = function (descriptor) {
|
|
3289
|
+
var currentObject = this.v2r();
|
|
3290
|
+
var tmp29_subject = descriptor.b21();
|
|
3291
3291
|
var tmp;
|
|
3292
3292
|
var tmp_0;
|
|
3293
3293
|
if (equals(tmp29_subject, LIST_getInstance())) {
|
|
@@ -3296,23 +3296,23 @@ protoOf(AbstractJsonTreeDecoder).o22 = function (descriptor) {
|
|
|
3296
3296
|
tmp_0 = tmp29_subject instanceof PolymorphicKind;
|
|
3297
3297
|
}
|
|
3298
3298
|
if (tmp_0) {
|
|
3299
|
-
var tmp_1 = this.
|
|
3299
|
+
var tmp_1 = this.t2l();
|
|
3300
3300
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3301
3301
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3302
|
-
var serialName = descriptor.
|
|
3302
|
+
var serialName = descriptor.v20();
|
|
3303
3303
|
if (!(currentObject instanceof JsonArray)) {
|
|
3304
3304
|
var tmp_2 = getKClass(JsonArray).o();
|
|
3305
3305
|
var tmp_3 = getKClassFromExpression(currentObject).o();
|
|
3306
|
-
var tmp$ret$0 = this.
|
|
3306
|
+
var tmp$ret$0 = this.x2g();
|
|
3307
3307
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(currentObject));
|
|
3308
3308
|
}
|
|
3309
3309
|
tmp = new JsonTreeListDecoder(tmp_1, currentObject);
|
|
3310
3310
|
} else {
|
|
3311
3311
|
if (equals(tmp29_subject, MAP_getInstance())) {
|
|
3312
3312
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
3313
|
-
var this_0 = this.
|
|
3314
|
-
var keyDescriptor = carrierDescriptor(descriptor.
|
|
3315
|
-
var keyKind = keyDescriptor.
|
|
3313
|
+
var this_0 = this.t2l();
|
|
3314
|
+
var keyDescriptor = carrierDescriptor(descriptor.z20(0), this_0.e23());
|
|
3315
|
+
var keyKind = keyDescriptor.b21();
|
|
3316
3316
|
var tmp_4;
|
|
3317
3317
|
var tmp_5;
|
|
3318
3318
|
if (keyKind instanceof PrimitiveKind) {
|
|
@@ -3321,27 +3321,27 @@ protoOf(AbstractJsonTreeDecoder).o22 = function (descriptor) {
|
|
|
3321
3321
|
tmp_5 = equals(keyKind, ENUM_getInstance());
|
|
3322
3322
|
}
|
|
3323
3323
|
if (tmp_5) {
|
|
3324
|
-
var tmp_6 = this.
|
|
3324
|
+
var tmp_6 = this.t2l();
|
|
3325
3325
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3326
3326
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3327
|
-
var serialName_0 = descriptor.
|
|
3327
|
+
var serialName_0 = descriptor.v20();
|
|
3328
3328
|
if (!(currentObject instanceof JsonObject)) {
|
|
3329
3329
|
var tmp_7 = getKClass(JsonObject).o();
|
|
3330
3330
|
var tmp_8 = getKClassFromExpression(currentObject).o();
|
|
3331
|
-
var tmp$ret$3 = this.
|
|
3331
|
+
var tmp$ret$3 = this.x2g();
|
|
3332
3332
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_7 + ', but had ' + tmp_8 + ' as the serialized body of ' + serialName_0 + ' at element: ' + tmp$ret$3, toString(currentObject));
|
|
3333
3333
|
}
|
|
3334
3334
|
tmp_4 = new JsonTreeMapDecoder(tmp_6, currentObject);
|
|
3335
3335
|
} else {
|
|
3336
|
-
if (this_0.
|
|
3337
|
-
var tmp_9 = this.
|
|
3336
|
+
if (this_0.o2j_1.f2l_1) {
|
|
3337
|
+
var tmp_9 = this.t2l();
|
|
3338
3338
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3339
3339
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3340
|
-
var serialName_1 = descriptor.
|
|
3340
|
+
var serialName_1 = descriptor.v20();
|
|
3341
3341
|
if (!(currentObject instanceof JsonArray)) {
|
|
3342
3342
|
var tmp_10 = getKClass(JsonArray).o();
|
|
3343
3343
|
var tmp_11 = getKClassFromExpression(currentObject).o();
|
|
3344
|
-
var tmp$ret$7 = this.
|
|
3344
|
+
var tmp$ret$7 = this.x2g();
|
|
3345
3345
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_10 + ', but had ' + tmp_11 + ' as the serialized body of ' + serialName_1 + ' at element: ' + tmp$ret$7, toString(currentObject));
|
|
3346
3346
|
}
|
|
3347
3347
|
tmp_4 = new JsonTreeListDecoder(tmp_9, currentObject);
|
|
@@ -3351,62 +3351,62 @@ protoOf(AbstractJsonTreeDecoder).o22 = function (descriptor) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
tmp = tmp_4;
|
|
3353
3353
|
} else {
|
|
3354
|
-
var tmp_12 = this.
|
|
3354
|
+
var tmp_12 = this.t2l();
|
|
3355
3355
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3356
3356
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3357
|
-
var serialName_2 = descriptor.
|
|
3357
|
+
var serialName_2 = descriptor.v20();
|
|
3358
3358
|
if (!(currentObject instanceof JsonObject)) {
|
|
3359
3359
|
var tmp_13 = getKClass(JsonObject).o();
|
|
3360
3360
|
var tmp_14 = getKClassFromExpression(currentObject).o();
|
|
3361
|
-
var tmp$ret$12 = this.
|
|
3361
|
+
var tmp$ret$12 = this.x2g();
|
|
3362
3362
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_13 + ', but had ' + tmp_14 + ' as the serialized body of ' + serialName_2 + ' at element: ' + tmp$ret$12, toString(currentObject));
|
|
3363
3363
|
}
|
|
3364
|
-
tmp = new JsonTreeDecoder(tmp_12, currentObject, this.
|
|
3364
|
+
tmp = new JsonTreeDecoder(tmp_12, currentObject, this.s2r_1);
|
|
3365
3365
|
}
|
|
3366
3366
|
}
|
|
3367
3367
|
return tmp;
|
|
3368
3368
|
};
|
|
3369
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3369
|
+
protoOf(AbstractJsonTreeDecoder).q22 = function (descriptor) {
|
|
3370
3370
|
};
|
|
3371
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3372
|
-
var tmp = this.
|
|
3371
|
+
protoOf(AbstractJsonTreeDecoder).a22 = function () {
|
|
3372
|
+
var tmp = this.v2r();
|
|
3373
3373
|
return !(tmp instanceof JsonNull);
|
|
3374
3374
|
};
|
|
3375
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3376
|
-
var tmp = this.
|
|
3375
|
+
protoOf(AbstractJsonTreeDecoder).x2r = function (tag, enumDescriptor) {
|
|
3376
|
+
var tmp = this.t2l();
|
|
3377
3377
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3378
|
-
var tmp2 = this.
|
|
3378
|
+
var tmp2 = this.w2r(tag);
|
|
3379
3379
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3380
3380
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3381
|
-
var serialName = enumDescriptor.
|
|
3381
|
+
var serialName = enumDescriptor.v20();
|
|
3382
3382
|
if (!(tmp2 instanceof JsonPrimitive)) {
|
|
3383
3383
|
var tmp_0 = getKClass(JsonPrimitive).o();
|
|
3384
3384
|
var tmp_1 = getKClassFromExpression(tmp2).o();
|
|
3385
|
-
var tmp$ret$0 = this.
|
|
3385
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3386
3386
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3387
3387
|
}
|
|
3388
3388
|
return getJsonNameIndexOrThrow(enumDescriptor, tmp, tmp2.hx());
|
|
3389
3389
|
};
|
|
3390
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3391
|
-
return this.
|
|
3390
|
+
protoOf(AbstractJsonTreeDecoder).j2h = function (tag, enumDescriptor) {
|
|
3391
|
+
return this.x2r((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
|
|
3392
3392
|
};
|
|
3393
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3394
|
-
return !(this.
|
|
3393
|
+
protoOf(AbstractJsonTreeDecoder).y2r = function (tag) {
|
|
3394
|
+
return !(this.w2r(tag) === JsonNull_getInstance());
|
|
3395
3395
|
};
|
|
3396
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3397
|
-
return this.
|
|
3396
|
+
protoOf(AbstractJsonTreeDecoder).z2g = function (tag) {
|
|
3397
|
+
return this.y2r((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3398
3398
|
};
|
|
3399
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3399
|
+
protoOf(AbstractJsonTreeDecoder).z2r = function (tag) {
|
|
3400
3400
|
var tmp$ret$4;
|
|
3401
3401
|
$l$block: {
|
|
3402
3402
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3403
3403
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3404
3404
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3405
|
-
var value = this.
|
|
3405
|
+
var value = this.w2r(tag);
|
|
3406
3406
|
if (!(value instanceof JsonPrimitive)) {
|
|
3407
3407
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3408
3408
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3409
|
-
var tmp$ret$0 = this.
|
|
3409
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3410
3410
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'boolean' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3411
3411
|
}
|
|
3412
3412
|
var literal = value;
|
|
@@ -3431,20 +3431,20 @@ protoOf(AbstractJsonTreeDecoder).y2r = function (tag) {
|
|
|
3431
3431
|
}
|
|
3432
3432
|
return tmp$ret$4;
|
|
3433
3433
|
};
|
|
3434
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3435
|
-
return this.
|
|
3434
|
+
protoOf(AbstractJsonTreeDecoder).a2h = function (tag) {
|
|
3435
|
+
return this.z2r((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3436
3436
|
};
|
|
3437
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3437
|
+
protoOf(AbstractJsonTreeDecoder).a2s = function (tag) {
|
|
3438
3438
|
var tmp$ret$4;
|
|
3439
3439
|
$l$block: {
|
|
3440
3440
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3441
3441
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3442
3442
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3443
|
-
var value = this.
|
|
3443
|
+
var value = this.w2r(tag);
|
|
3444
3444
|
if (!(value instanceof JsonPrimitive)) {
|
|
3445
3445
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3446
3446
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3447
|
-
var tmp$ret$0 = this.
|
|
3447
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3448
3448
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'byte' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3449
3449
|
}
|
|
3450
3450
|
var literal = value;
|
|
@@ -3470,20 +3470,20 @@ protoOf(AbstractJsonTreeDecoder).z2r = function (tag) {
|
|
|
3470
3470
|
}
|
|
3471
3471
|
return tmp$ret$4;
|
|
3472
3472
|
};
|
|
3473
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3474
|
-
return this.
|
|
3473
|
+
protoOf(AbstractJsonTreeDecoder).b2h = function (tag) {
|
|
3474
|
+
return this.a2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3475
3475
|
};
|
|
3476
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3476
|
+
protoOf(AbstractJsonTreeDecoder).b2s = function (tag) {
|
|
3477
3477
|
var tmp$ret$4;
|
|
3478
3478
|
$l$block: {
|
|
3479
3479
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3480
3480
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3481
3481
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3482
|
-
var value = this.
|
|
3482
|
+
var value = this.w2r(tag);
|
|
3483
3483
|
if (!(value instanceof JsonPrimitive)) {
|
|
3484
3484
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3485
3485
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3486
|
-
var tmp$ret$0 = this.
|
|
3486
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3487
3487
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'short' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3488
3488
|
}
|
|
3489
3489
|
var literal = value;
|
|
@@ -3509,20 +3509,20 @@ protoOf(AbstractJsonTreeDecoder).a2s = function (tag) {
|
|
|
3509
3509
|
}
|
|
3510
3510
|
return tmp$ret$4;
|
|
3511
3511
|
};
|
|
3512
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3513
|
-
return this.
|
|
3512
|
+
protoOf(AbstractJsonTreeDecoder).c2h = function (tag) {
|
|
3513
|
+
return this.b2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3514
3514
|
};
|
|
3515
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3515
|
+
protoOf(AbstractJsonTreeDecoder).c2s = function (tag) {
|
|
3516
3516
|
var tmp$ret$4;
|
|
3517
3517
|
$l$block: {
|
|
3518
3518
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3519
3519
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3520
3520
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3521
|
-
var value = this.
|
|
3521
|
+
var value = this.w2r(tag);
|
|
3522
3522
|
if (!(value instanceof JsonPrimitive)) {
|
|
3523
3523
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3524
3524
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3525
|
-
var tmp$ret$0 = this.
|
|
3525
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3526
3526
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'int' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3527
3527
|
}
|
|
3528
3528
|
var literal = value;
|
|
@@ -3547,20 +3547,20 @@ protoOf(AbstractJsonTreeDecoder).b2s = function (tag) {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
return tmp$ret$4;
|
|
3549
3549
|
};
|
|
3550
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3551
|
-
return this.
|
|
3550
|
+
protoOf(AbstractJsonTreeDecoder).d2h = function (tag) {
|
|
3551
|
+
return this.c2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3552
3552
|
};
|
|
3553
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3553
|
+
protoOf(AbstractJsonTreeDecoder).d2s = function (tag) {
|
|
3554
3554
|
var tmp$ret$4;
|
|
3555
3555
|
$l$block: {
|
|
3556
3556
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3557
3557
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3558
3558
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3559
|
-
var value = this.
|
|
3559
|
+
var value = this.w2r(tag);
|
|
3560
3560
|
if (!(value instanceof JsonPrimitive)) {
|
|
3561
3561
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3562
3562
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3563
|
-
var tmp$ret$0 = this.
|
|
3563
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3564
3564
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'long' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3565
3565
|
}
|
|
3566
3566
|
var literal = value;
|
|
@@ -3585,20 +3585,20 @@ protoOf(AbstractJsonTreeDecoder).c2s = function (tag) {
|
|
|
3585
3585
|
}
|
|
3586
3586
|
return tmp$ret$4;
|
|
3587
3587
|
};
|
|
3588
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3589
|
-
return this.
|
|
3588
|
+
protoOf(AbstractJsonTreeDecoder).e2h = function (tag) {
|
|
3589
|
+
return this.d2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3590
3590
|
};
|
|
3591
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3591
|
+
protoOf(AbstractJsonTreeDecoder).e2s = function (tag) {
|
|
3592
3592
|
var tmp$ret$4;
|
|
3593
3593
|
$l$block: {
|
|
3594
3594
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3595
3595
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3596
3596
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3597
|
-
var value = this.
|
|
3597
|
+
var value = this.w2r(tag);
|
|
3598
3598
|
if (!(value instanceof JsonPrimitive)) {
|
|
3599
3599
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3600
3600
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3601
|
-
var tmp$ret$0 = this.
|
|
3601
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3602
3602
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'float' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3603
3603
|
}
|
|
3604
3604
|
var literal = value;
|
|
@@ -3622,25 +3622,25 @@ protoOf(AbstractJsonTreeDecoder).d2s = function (tag) {
|
|
|
3622
3622
|
}
|
|
3623
3623
|
}
|
|
3624
3624
|
var result = tmp$ret$4;
|
|
3625
|
-
var specialFp = this.
|
|
3625
|
+
var specialFp = this.t2l().o2j_1.m2l_1;
|
|
3626
3626
|
if (specialFp || isFinite(result))
|
|
3627
3627
|
return result;
|
|
3628
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
3628
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.v2r()));
|
|
3629
3629
|
};
|
|
3630
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3631
|
-
return this.
|
|
3630
|
+
protoOf(AbstractJsonTreeDecoder).f2h = function (tag) {
|
|
3631
|
+
return this.e2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3632
3632
|
};
|
|
3633
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3633
|
+
protoOf(AbstractJsonTreeDecoder).f2s = function (tag) {
|
|
3634
3634
|
var tmp$ret$4;
|
|
3635
3635
|
$l$block: {
|
|
3636
3636
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3637
3637
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3638
3638
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3639
|
-
var value = this.
|
|
3639
|
+
var value = this.w2r(tag);
|
|
3640
3640
|
if (!(value instanceof JsonPrimitive)) {
|
|
3641
3641
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3642
3642
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3643
|
-
var tmp$ret$0 = this.
|
|
3643
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3644
3644
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'double' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3645
3645
|
}
|
|
3646
3646
|
var literal = value;
|
|
@@ -3664,25 +3664,25 @@ protoOf(AbstractJsonTreeDecoder).e2s = function (tag) {
|
|
|
3664
3664
|
}
|
|
3665
3665
|
}
|
|
3666
3666
|
var result = tmp$ret$4;
|
|
3667
|
-
var specialFp = this.
|
|
3667
|
+
var specialFp = this.t2l().o2j_1.m2l_1;
|
|
3668
3668
|
if (specialFp || isFinite_0(result))
|
|
3669
3669
|
return result;
|
|
3670
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
3670
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.v2r()));
|
|
3671
3671
|
};
|
|
3672
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3673
|
-
return this.
|
|
3672
|
+
protoOf(AbstractJsonTreeDecoder).g2h = function (tag) {
|
|
3673
|
+
return this.f2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3674
3674
|
};
|
|
3675
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3675
|
+
protoOf(AbstractJsonTreeDecoder).g2s = function (tag) {
|
|
3676
3676
|
var tmp$ret$4;
|
|
3677
3677
|
$l$block: {
|
|
3678
3678
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3679
3679
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3680
3680
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3681
|
-
var value = this.
|
|
3681
|
+
var value = this.w2r(tag);
|
|
3682
3682
|
if (!(value instanceof JsonPrimitive)) {
|
|
3683
3683
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3684
3684
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3685
|
-
var tmp$ret$0 = this.
|
|
3685
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3686
3686
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'char' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3687
3687
|
}
|
|
3688
3688
|
var literal = value;
|
|
@@ -3707,68 +3707,68 @@ protoOf(AbstractJsonTreeDecoder).f2s = function (tag) {
|
|
|
3707
3707
|
}
|
|
3708
3708
|
return tmp$ret$4;
|
|
3709
3709
|
};
|
|
3710
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3711
|
-
return this.
|
|
3710
|
+
protoOf(AbstractJsonTreeDecoder).h2h = function (tag) {
|
|
3711
|
+
return this.g2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3712
3712
|
};
|
|
3713
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3713
|
+
protoOf(AbstractJsonTreeDecoder).h2s = function (tag) {
|
|
3714
3714
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3715
3715
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3716
|
-
var value = this.
|
|
3716
|
+
var value = this.w2r(tag);
|
|
3717
3717
|
if (!(value instanceof JsonPrimitive)) {
|
|
3718
3718
|
var tmp = getKClass(JsonPrimitive).o();
|
|
3719
3719
|
var tmp_0 = getKClassFromExpression(value).o();
|
|
3720
|
-
var tmp$ret$0 = this.
|
|
3720
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3721
3721
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'string' + ' at element: ' + tmp$ret$0, toString(value));
|
|
3722
3722
|
}
|
|
3723
3723
|
var value_0 = value;
|
|
3724
3724
|
if (!(value_0 instanceof JsonLiteral))
|
|
3725
|
-
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.
|
|
3726
|
-
if (!value_0.
|
|
3727
|
-
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.
|
|
3725
|
+
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.u2r(tag), toString(this.v2r()));
|
|
3726
|
+
if (!value_0.c2m_1 && !this.t2l().o2j_1.e2l_1) {
|
|
3727
|
+
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.u2r(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.v2r()));
|
|
3728
3728
|
}
|
|
3729
|
-
return value_0.
|
|
3729
|
+
return value_0.e2m_1;
|
|
3730
3730
|
};
|
|
3731
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3732
|
-
return this.
|
|
3731
|
+
protoOf(AbstractJsonTreeDecoder).i2h = function (tag) {
|
|
3732
|
+
return this.h2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
3733
3733
|
};
|
|
3734
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3734
|
+
protoOf(AbstractJsonTreeDecoder).i2s = function (tag, inlineDescriptor) {
|
|
3735
3735
|
var tmp;
|
|
3736
3736
|
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
3737
|
-
var tmp_0 = this.
|
|
3737
|
+
var tmp_0 = this.t2l();
|
|
3738
3738
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3739
|
-
var tmp2 = this.
|
|
3739
|
+
var tmp2 = this.w2r(tag);
|
|
3740
3740
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3741
3741
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3742
|
-
var serialName = inlineDescriptor.
|
|
3742
|
+
var serialName = inlineDescriptor.v20();
|
|
3743
3743
|
if (!(tmp2 instanceof JsonPrimitive)) {
|
|
3744
3744
|
var tmp_1 = getKClass(JsonPrimitive).o();
|
|
3745
3745
|
var tmp_2 = getKClassFromExpression(tmp2).o();
|
|
3746
|
-
var tmp$ret$0 = this.
|
|
3746
|
+
var tmp$ret$0 = this.u2r(tag);
|
|
3747
3747
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3748
3748
|
}
|
|
3749
3749
|
var lexer = StringJsonLexer_0(tmp_0, tmp2.hx());
|
|
3750
|
-
tmp = new JsonDecoderForUnsignedTypes(lexer, this.
|
|
3750
|
+
tmp = new JsonDecoderForUnsignedTypes(lexer, this.t2l());
|
|
3751
3751
|
} else {
|
|
3752
|
-
tmp = protoOf(NamedValueDecoder).
|
|
3752
|
+
tmp = protoOf(NamedValueDecoder).k2h.call(this, tag, inlineDescriptor);
|
|
3753
3753
|
}
|
|
3754
3754
|
return tmp;
|
|
3755
3755
|
};
|
|
3756
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3757
|
-
return this.
|
|
3756
|
+
protoOf(AbstractJsonTreeDecoder).k2h = function (tag, inlineDescriptor) {
|
|
3757
|
+
return this.i2s((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
3758
3758
|
};
|
|
3759
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3760
|
-
return !(this.
|
|
3759
|
+
protoOf(AbstractJsonTreeDecoder).m22 = function (descriptor) {
|
|
3760
|
+
return !(this.v2g() == null) ? protoOf(NamedValueDecoder).m22.call(this, descriptor) : (new JsonPrimitiveDecoder(this.t2l(), this.l1(), this.s2r_1)).m22(descriptor);
|
|
3761
3761
|
};
|
|
3762
3762
|
function coerceInputValue_0($this, descriptor, index, tag) {
|
|
3763
|
-
var tmp0 = $this.
|
|
3763
|
+
var tmp0 = $this.t2l();
|
|
3764
3764
|
var tmp$ret$1;
|
|
3765
3765
|
$l$block_2: {
|
|
3766
3766
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
3767
|
-
var isOptional = descriptor.
|
|
3768
|
-
var elementDescriptor = descriptor.
|
|
3767
|
+
var isOptional = descriptor.a21(index);
|
|
3768
|
+
var elementDescriptor = descriptor.z20(index);
|
|
3769
3769
|
var tmp;
|
|
3770
3770
|
if (isOptional && !elementDescriptor.cu()) {
|
|
3771
|
-
var tmp_0 = $this.
|
|
3771
|
+
var tmp_0 = $this.w2r(tag);
|
|
3772
3772
|
tmp = tmp_0 instanceof JsonNull;
|
|
3773
3773
|
} else {
|
|
3774
3774
|
tmp = false;
|
|
@@ -3777,10 +3777,10 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3777
3777
|
tmp$ret$1 = true;
|
|
3778
3778
|
break $l$block_2;
|
|
3779
3779
|
}
|
|
3780
|
-
if (equals(elementDescriptor.
|
|
3780
|
+
if (equals(elementDescriptor.b21(), ENUM_getInstance())) {
|
|
3781
3781
|
var tmp_1;
|
|
3782
3782
|
if (elementDescriptor.cu()) {
|
|
3783
|
-
var tmp_2 = $this.
|
|
3783
|
+
var tmp_2 = $this.w2r(tag);
|
|
3784
3784
|
tmp_1 = tmp_2 instanceof JsonNull;
|
|
3785
3785
|
} else {
|
|
3786
3786
|
tmp_1 = false;
|
|
@@ -3789,7 +3789,7 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3789
3789
|
tmp$ret$1 = false;
|
|
3790
3790
|
break $l$block_2;
|
|
3791
3791
|
}
|
|
3792
|
-
var tmp_3 = $this.
|
|
3792
|
+
var tmp_3 = $this.w2r(tag);
|
|
3793
3793
|
var tmp30_safe_receiver = tmp_3 instanceof JsonPrimitive ? tmp_3 : null;
|
|
3794
3794
|
var tmp0_elvis_lhs = tmp30_safe_receiver == null ? null : get_contentOrNull(tmp30_safe_receiver);
|
|
3795
3795
|
var tmp_4;
|
|
@@ -3801,7 +3801,7 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
var enumValue = tmp_4;
|
|
3803
3803
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
3804
|
-
var coerceToNull = !tmp0.
|
|
3804
|
+
var coerceToNull = !tmp0.o2j_1.h2l_1 && elementDescriptor.cu();
|
|
3805
3805
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
3806
3806
|
tmp$ret$1 = true;
|
|
3807
3807
|
break $l$block_2;
|
|
@@ -3812,28 +3812,28 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3812
3812
|
return tmp$ret$1;
|
|
3813
3813
|
}
|
|
3814
3814
|
function absenceIsNull($this, descriptor, index) {
|
|
3815
|
-
$this.
|
|
3816
|
-
return $this.
|
|
3815
|
+
$this.s2s_1 = (!$this.t2l().o2j_1.h2l_1 && !descriptor.a21(index) && descriptor.z20(index).cu());
|
|
3816
|
+
return $this.s2s_1;
|
|
3817
3817
|
}
|
|
3818
3818
|
function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
3819
3819
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3820
3820
|
polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
|
|
3821
3821
|
AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
|
|
3822
|
-
this.
|
|
3823
|
-
this.
|
|
3824
|
-
this.
|
|
3825
|
-
this.
|
|
3822
|
+
this.p2s_1 = value;
|
|
3823
|
+
this.q2s_1 = polyDescriptor;
|
|
3824
|
+
this.r2s_1 = 0;
|
|
3825
|
+
this.s2s_1 = false;
|
|
3826
3826
|
}
|
|
3827
3827
|
protoOf(JsonTreeDecoder).l1 = function () {
|
|
3828
|
-
return this.
|
|
3829
|
-
};
|
|
3830
|
-
protoOf(JsonTreeDecoder).
|
|
3831
|
-
while (this.
|
|
3832
|
-
var _unary__edvuaz = this.
|
|
3833
|
-
this.
|
|
3834
|
-
var name = this.
|
|
3835
|
-
var index = this.
|
|
3836
|
-
this.
|
|
3828
|
+
return this.p2s_1;
|
|
3829
|
+
};
|
|
3830
|
+
protoOf(JsonTreeDecoder).g23 = function (descriptor) {
|
|
3831
|
+
while (this.r2s_1 < descriptor.d21()) {
|
|
3832
|
+
var _unary__edvuaz = this.r2s_1;
|
|
3833
|
+
this.r2s_1 = _unary__edvuaz + 1 | 0;
|
|
3834
|
+
var name = this.q2g(descriptor, _unary__edvuaz);
|
|
3835
|
+
var index = this.r2s_1 - 1 | 0;
|
|
3836
|
+
this.s2s_1 = false;
|
|
3837
3837
|
var tmp;
|
|
3838
3838
|
var tmp_0;
|
|
3839
3839
|
// Inline function 'kotlin.collections.contains' call
|
|
@@ -3845,7 +3845,7 @@ protoOf(JsonTreeDecoder).f23 = function (descriptor) {
|
|
|
3845
3845
|
tmp_0 = absenceIsNull(this, descriptor, index);
|
|
3846
3846
|
}
|
|
3847
3847
|
if (tmp_0) {
|
|
3848
|
-
tmp = !this.
|
|
3848
|
+
tmp = !this.t2r_1.j2l_1 || !coerceInputValue_0(this, descriptor, index, name);
|
|
3849
3849
|
} else {
|
|
3850
3850
|
tmp = false;
|
|
3851
3851
|
}
|
|
@@ -3855,19 +3855,19 @@ protoOf(JsonTreeDecoder).f23 = function (descriptor) {
|
|
|
3855
3855
|
}
|
|
3856
3856
|
return -1;
|
|
3857
3857
|
};
|
|
3858
|
-
protoOf(JsonTreeDecoder).
|
|
3859
|
-
return !this.
|
|
3858
|
+
protoOf(JsonTreeDecoder).a22 = function () {
|
|
3859
|
+
return !this.s2s_1 && protoOf(AbstractJsonTreeDecoder).a22.call(this);
|
|
3860
3860
|
};
|
|
3861
|
-
protoOf(JsonTreeDecoder).
|
|
3862
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3863
|
-
var baseName = descriptor.
|
|
3861
|
+
protoOf(JsonTreeDecoder).r2g = function (descriptor, index) {
|
|
3862
|
+
var strategy = namingStrategy(descriptor, this.t2l());
|
|
3863
|
+
var baseName = descriptor.w20(index);
|
|
3864
3864
|
if (strategy == null) {
|
|
3865
|
-
if (!this.
|
|
3865
|
+
if (!this.t2r_1.n2l_1)
|
|
3866
3866
|
return baseName;
|
|
3867
3867
|
if (this.l1().q2().u1(baseName))
|
|
3868
3868
|
return baseName;
|
|
3869
3869
|
}
|
|
3870
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
3870
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.t2l(), descriptor);
|
|
3871
3871
|
// Inline function 'kotlin.collections.find' call
|
|
3872
3872
|
var tmp0 = this.l1().q2();
|
|
3873
3873
|
var tmp$ret$1;
|
|
@@ -3890,48 +3890,48 @@ protoOf(JsonTreeDecoder).q2g = function (descriptor, index) {
|
|
|
3890
3890
|
// Inline function 'kotlin.let' call
|
|
3891
3891
|
return tmp31_safe_receiver;
|
|
3892
3892
|
}
|
|
3893
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
3893
|
+
var fallbackName = strategy == null ? null : strategy.l2o(descriptor, index, baseName);
|
|
3894
3894
|
return fallbackName == null ? baseName : fallbackName;
|
|
3895
3895
|
};
|
|
3896
|
-
protoOf(JsonTreeDecoder).
|
|
3896
|
+
protoOf(JsonTreeDecoder).w2r = function (tag) {
|
|
3897
3897
|
return getValue(this.l1(), tag);
|
|
3898
3898
|
};
|
|
3899
|
-
protoOf(JsonTreeDecoder).
|
|
3900
|
-
if (descriptor === this.
|
|
3901
|
-
var tmp = this.
|
|
3902
|
-
var tmp2 = this.
|
|
3899
|
+
protoOf(JsonTreeDecoder).p22 = function (descriptor) {
|
|
3900
|
+
if (descriptor === this.q2s_1) {
|
|
3901
|
+
var tmp = this.t2l();
|
|
3902
|
+
var tmp2 = this.v2r();
|
|
3903
3903
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3904
3904
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3905
|
-
var serialName = this.
|
|
3905
|
+
var serialName = this.q2s_1.v20();
|
|
3906
3906
|
if (!(tmp2 instanceof JsonObject)) {
|
|
3907
3907
|
var tmp_0 = getKClass(JsonObject).o();
|
|
3908
3908
|
var tmp_1 = getKClassFromExpression(tmp2).o();
|
|
3909
|
-
var tmp$ret$0 = this.
|
|
3909
|
+
var tmp$ret$0 = this.x2g();
|
|
3910
3910
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3911
3911
|
}
|
|
3912
|
-
return new JsonTreeDecoder(tmp, tmp2, this.
|
|
3912
|
+
return new JsonTreeDecoder(tmp, tmp2, this.s2r_1, this.q2s_1);
|
|
3913
3913
|
}
|
|
3914
|
-
return protoOf(AbstractJsonTreeDecoder).
|
|
3914
|
+
return protoOf(AbstractJsonTreeDecoder).p22.call(this, descriptor);
|
|
3915
3915
|
};
|
|
3916
|
-
protoOf(JsonTreeDecoder).
|
|
3916
|
+
protoOf(JsonTreeDecoder).q22 = function (descriptor) {
|
|
3917
3917
|
var tmp;
|
|
3918
|
-
if (this.
|
|
3918
|
+
if (this.t2r_1.d2l_1) {
|
|
3919
3919
|
tmp = true;
|
|
3920
3920
|
} else {
|
|
3921
|
-
var tmp_0 = descriptor.
|
|
3921
|
+
var tmp_0 = descriptor.b21();
|
|
3922
3922
|
tmp = tmp_0 instanceof PolymorphicKind;
|
|
3923
3923
|
}
|
|
3924
3924
|
if (tmp)
|
|
3925
3925
|
return Unit_instance;
|
|
3926
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3926
|
+
var strategy = namingStrategy(descriptor, this.t2l());
|
|
3927
3927
|
var tmp_1;
|
|
3928
|
-
if (strategy == null && !this.
|
|
3928
|
+
if (strategy == null && !this.t2r_1.n2l_1) {
|
|
3929
3929
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
3930
3930
|
} else if (!(strategy == null)) {
|
|
3931
|
-
tmp_1 = deserializationNamesMap(this.
|
|
3931
|
+
tmp_1 = deserializationNamesMap(this.t2l(), descriptor).q2();
|
|
3932
3932
|
} else {
|
|
3933
3933
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
3934
|
-
var tmp33_safe_receiver = get_schemaCache(this.
|
|
3934
|
+
var tmp33_safe_receiver = get_schemaCache(this.t2l()).v2q(descriptor, get_JsonDeserializationNamesKey());
|
|
3935
3935
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3936
3936
|
var tmp0_elvis_lhs = tmp33_safe_receiver == null ? null : tmp33_safe_receiver.q2();
|
|
3937
3937
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -3941,81 +3941,81 @@ protoOf(JsonTreeDecoder).p22 = function (descriptor) {
|
|
|
3941
3941
|
var _iterator__ex2g4s = this.l1().q2().t();
|
|
3942
3942
|
while (_iterator__ex2g4s.u()) {
|
|
3943
3943
|
var key = _iterator__ex2g4s.v();
|
|
3944
|
-
if (!names.u1(key) && !(key === this.
|
|
3944
|
+
if (!names.u1(key) && !(key === this.s2r_1)) {
|
|
3945
3945
|
throw UnknownKeyException(key, this.l1().toString());
|
|
3946
3946
|
}
|
|
3947
3947
|
}
|
|
3948
3948
|
};
|
|
3949
3949
|
function JsonTreeListDecoder(json, value) {
|
|
3950
3950
|
AbstractJsonTreeDecoder.call(this, json, value);
|
|
3951
|
-
this.
|
|
3952
|
-
this.
|
|
3953
|
-
this.
|
|
3951
|
+
this.z2s_1 = value;
|
|
3952
|
+
this.a2t_1 = this.z2s_1.a1();
|
|
3953
|
+
this.b2t_1 = -1;
|
|
3954
3954
|
}
|
|
3955
3955
|
protoOf(JsonTreeListDecoder).l1 = function () {
|
|
3956
|
-
return this.
|
|
3956
|
+
return this.z2s_1;
|
|
3957
3957
|
};
|
|
3958
|
-
protoOf(JsonTreeListDecoder).
|
|
3958
|
+
protoOf(JsonTreeListDecoder).r2g = function (descriptor, index) {
|
|
3959
3959
|
return index.toString();
|
|
3960
3960
|
};
|
|
3961
|
-
protoOf(JsonTreeListDecoder).
|
|
3962
|
-
return this.
|
|
3961
|
+
protoOf(JsonTreeListDecoder).w2r = function (tag) {
|
|
3962
|
+
return this.z2s_1.f1(toInt(tag));
|
|
3963
3963
|
};
|
|
3964
|
-
protoOf(JsonTreeListDecoder).
|
|
3965
|
-
while (this.
|
|
3966
|
-
this.
|
|
3967
|
-
return this.
|
|
3964
|
+
protoOf(JsonTreeListDecoder).g23 = function (descriptor) {
|
|
3965
|
+
while (this.b2t_1 < (this.a2t_1 - 1 | 0)) {
|
|
3966
|
+
this.b2t_1 = this.b2t_1 + 1 | 0;
|
|
3967
|
+
return this.b2t_1;
|
|
3968
3968
|
}
|
|
3969
3969
|
return -1;
|
|
3970
3970
|
};
|
|
3971
3971
|
function JsonPrimitiveDecoder(json, value, polymorphicDiscriminator) {
|
|
3972
3972
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
3973
3973
|
AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
|
|
3974
|
-
this.
|
|
3975
|
-
this.
|
|
3974
|
+
this.i2t_1 = value;
|
|
3975
|
+
this.l2h('primitive');
|
|
3976
3976
|
}
|
|
3977
3977
|
protoOf(JsonPrimitiveDecoder).l1 = function () {
|
|
3978
|
-
return this.
|
|
3978
|
+
return this.i2t_1;
|
|
3979
3979
|
};
|
|
3980
|
-
protoOf(JsonPrimitiveDecoder).
|
|
3980
|
+
protoOf(JsonPrimitiveDecoder).g23 = function (descriptor) {
|
|
3981
3981
|
return 0;
|
|
3982
3982
|
};
|
|
3983
|
-
protoOf(JsonPrimitiveDecoder).
|
|
3983
|
+
protoOf(JsonPrimitiveDecoder).w2r = function (tag) {
|
|
3984
3984
|
// Inline function 'kotlin.require' call
|
|
3985
3985
|
if (!(tag === 'primitive')) {
|
|
3986
3986
|
var message = "This input can only handle primitives with 'primitive' tag";
|
|
3987
3987
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3988
3988
|
}
|
|
3989
|
-
return this.
|
|
3989
|
+
return this.i2t_1;
|
|
3990
3990
|
};
|
|
3991
3991
|
function JsonTreeMapDecoder(json, value) {
|
|
3992
3992
|
JsonTreeDecoder.call(this, json, value);
|
|
3993
|
-
this.
|
|
3994
|
-
this.
|
|
3995
|
-
this.
|
|
3996
|
-
this.
|
|
3993
|
+
this.t2t_1 = value;
|
|
3994
|
+
this.u2t_1 = toList(this.t2t_1.q2());
|
|
3995
|
+
this.v2t_1 = imul(this.u2t_1.a1(), 2);
|
|
3996
|
+
this.w2t_1 = -1;
|
|
3997
3997
|
}
|
|
3998
3998
|
protoOf(JsonTreeMapDecoder).l1 = function () {
|
|
3999
|
-
return this.
|
|
3999
|
+
return this.t2t_1;
|
|
4000
4000
|
};
|
|
4001
|
-
protoOf(JsonTreeMapDecoder).
|
|
4001
|
+
protoOf(JsonTreeMapDecoder).r2g = function (descriptor, index) {
|
|
4002
4002
|
var i = index / 2 | 0;
|
|
4003
|
-
return this.
|
|
4003
|
+
return this.u2t_1.f1(i);
|
|
4004
4004
|
};
|
|
4005
|
-
protoOf(JsonTreeMapDecoder).
|
|
4006
|
-
while (this.
|
|
4007
|
-
this.
|
|
4008
|
-
return this.
|
|
4005
|
+
protoOf(JsonTreeMapDecoder).g23 = function (descriptor) {
|
|
4006
|
+
while (this.w2t_1 < (this.v2t_1 - 1 | 0)) {
|
|
4007
|
+
this.w2t_1 = this.w2t_1 + 1 | 0;
|
|
4008
|
+
return this.w2t_1;
|
|
4009
4009
|
}
|
|
4010
4010
|
return -1;
|
|
4011
4011
|
};
|
|
4012
|
-
protoOf(JsonTreeMapDecoder).
|
|
4013
|
-
return (this.
|
|
4012
|
+
protoOf(JsonTreeMapDecoder).w2r = function (tag) {
|
|
4013
|
+
return (this.w2t_1 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.t2t_1, tag);
|
|
4014
4014
|
};
|
|
4015
|
-
protoOf(JsonTreeMapDecoder).
|
|
4015
|
+
protoOf(JsonTreeMapDecoder).q22 = function (descriptor) {
|
|
4016
4016
|
};
|
|
4017
4017
|
function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) {
|
|
4018
|
-
return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.
|
|
4018
|
+
return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.p1z())).o22(deserializer);
|
|
4019
4019
|
}
|
|
4020
4020
|
var WriteMode_OBJ_instance;
|
|
4021
4021
|
var WriteMode_LIST_instance;
|
|
@@ -4042,11 +4042,11 @@ function WriteMode_initEntries() {
|
|
|
4042
4042
|
var $ENTRIES;
|
|
4043
4043
|
function WriteMode(name, ordinal, begin, end) {
|
|
4044
4044
|
Enum.call(this, name, ordinal);
|
|
4045
|
-
this.
|
|
4046
|
-
this.
|
|
4045
|
+
this.i2r_1 = begin;
|
|
4046
|
+
this.j2r_1 = end;
|
|
4047
4047
|
}
|
|
4048
4048
|
function switchMode(_this__u8e3s4, desc) {
|
|
4049
|
-
var tmp36_subject = desc.
|
|
4049
|
+
var tmp36_subject = desc.b21();
|
|
4050
4050
|
var tmp;
|
|
4051
4051
|
if (tmp36_subject instanceof PolymorphicKind) {
|
|
4052
4052
|
tmp = WriteMode_POLY_OBJ_getInstance();
|
|
@@ -4056,8 +4056,8 @@ function switchMode(_this__u8e3s4, desc) {
|
|
|
4056
4056
|
} else {
|
|
4057
4057
|
if (equals(tmp36_subject, MAP_getInstance())) {
|
|
4058
4058
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
4059
|
-
var keyDescriptor = carrierDescriptor(desc.
|
|
4060
|
-
var keyKind = keyDescriptor.
|
|
4059
|
+
var keyDescriptor = carrierDescriptor(desc.z20(0), _this__u8e3s4.e23());
|
|
4060
|
+
var keyKind = keyDescriptor.b21();
|
|
4061
4061
|
var tmp_0;
|
|
4062
4062
|
var tmp_1;
|
|
4063
4063
|
if (keyKind instanceof PrimitiveKind) {
|
|
@@ -4068,7 +4068,7 @@ function switchMode(_this__u8e3s4, desc) {
|
|
|
4068
4068
|
if (tmp_1) {
|
|
4069
4069
|
tmp_0 = WriteMode_MAP_getInstance();
|
|
4070
4070
|
} else {
|
|
4071
|
-
if (_this__u8e3s4.
|
|
4071
|
+
if (_this__u8e3s4.o2j_1.f2l_1) {
|
|
4072
4072
|
tmp_0 = WriteMode_LIST_getInstance();
|
|
4073
4073
|
} else {
|
|
4074
4074
|
throw InvalidKeyKindException(keyDescriptor);
|
|
@@ -4084,12 +4084,12 @@ function switchMode(_this__u8e3s4, desc) {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
function carrierDescriptor(_this__u8e3s4, module_0) {
|
|
4086
4086
|
var tmp;
|
|
4087
|
-
if (equals(_this__u8e3s4.
|
|
4087
|
+
if (equals(_this__u8e3s4.b21(), CONTEXTUAL_getInstance())) {
|
|
4088
4088
|
var tmp37_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
|
|
4089
4089
|
var tmp0_elvis_lhs = tmp37_safe_receiver == null ? null : carrierDescriptor(tmp37_safe_receiver, module_0);
|
|
4090
4090
|
tmp = tmp0_elvis_lhs == null ? _this__u8e3s4 : tmp0_elvis_lhs;
|
|
4091
|
-
} else if (_this__u8e3s4.
|
|
4092
|
-
tmp = carrierDescriptor(_this__u8e3s4.
|
|
4091
|
+
} else if (_this__u8e3s4.c21()) {
|
|
4092
|
+
tmp = carrierDescriptor(_this__u8e3s4.z20(0), module_0);
|
|
4093
4093
|
} else {
|
|
4094
4094
|
tmp = _this__u8e3s4;
|
|
4095
4095
|
}
|
|
@@ -4112,56 +4112,56 @@ function WriteMode_POLY_OBJ_getInstance() {
|
|
|
4112
4112
|
return WriteMode_POLY_OBJ_instance;
|
|
4113
4113
|
}
|
|
4114
4114
|
function appendEscape($this, lastPosition, current) {
|
|
4115
|
-
$this.
|
|
4115
|
+
$this.x2t(lastPosition, current);
|
|
4116
4116
|
return appendEsc($this, current + 1 | 0);
|
|
4117
4117
|
}
|
|
4118
4118
|
function decodedString($this, lastPosition, currentPosition) {
|
|
4119
|
-
$this.
|
|
4120
|
-
var result = $this.
|
|
4121
|
-
$this.
|
|
4119
|
+
$this.x2t(lastPosition, currentPosition);
|
|
4120
|
+
var result = $this.h2k_1.toString();
|
|
4121
|
+
$this.h2k_1.vb(0);
|
|
4122
4122
|
return result;
|
|
4123
4123
|
}
|
|
4124
4124
|
function takePeeked($this) {
|
|
4125
4125
|
// Inline function 'kotlin.also' call
|
|
4126
|
-
var this_0 = ensureNotNull($this.
|
|
4127
|
-
$this.
|
|
4126
|
+
var this_0 = ensureNotNull($this.g2k_1);
|
|
4127
|
+
$this.g2k_1 = null;
|
|
4128
4128
|
return this_0;
|
|
4129
4129
|
}
|
|
4130
4130
|
function wasUnquotedString($this) {
|
|
4131
|
-
return !(charSequenceGet($this.
|
|
4131
|
+
return !(charSequenceGet($this.y2t(), $this.e2k_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
|
|
4132
4132
|
}
|
|
4133
4133
|
function appendEsc($this, startPosition) {
|
|
4134
4134
|
var currentPosition = startPosition;
|
|
4135
|
-
currentPosition = $this.
|
|
4135
|
+
currentPosition = $this.z2t(currentPosition);
|
|
4136
4136
|
if (currentPosition === -1) {
|
|
4137
|
-
$this.
|
|
4137
|
+
$this.h2o('Expected escape sequence to continue, got EOF');
|
|
4138
4138
|
}
|
|
4139
|
-
var tmp = $this.
|
|
4139
|
+
var tmp = $this.y2t();
|
|
4140
4140
|
var _unary__edvuaz = currentPosition;
|
|
4141
4141
|
currentPosition = _unary__edvuaz + 1 | 0;
|
|
4142
4142
|
var currentChar = charSequenceGet(tmp, _unary__edvuaz);
|
|
4143
4143
|
if (currentChar === _Char___init__impl__6a9atx(117)) {
|
|
4144
|
-
return appendHex($this, $this.
|
|
4144
|
+
return appendHex($this, $this.y2t(), currentPosition);
|
|
4145
4145
|
}
|
|
4146
4146
|
// Inline function 'kotlin.code' call
|
|
4147
4147
|
var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
4148
4148
|
var c = escapeToChar(tmp$ret$0);
|
|
4149
4149
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
4150
|
-
$this.
|
|
4150
|
+
$this.h2o("Invalid escaped char '" + toString_1(currentChar) + "'");
|
|
4151
4151
|
}
|
|
4152
|
-
$this.
|
|
4152
|
+
$this.h2k_1.s(c);
|
|
4153
4153
|
return currentPosition;
|
|
4154
4154
|
}
|
|
4155
4155
|
function appendHex($this, source, startPos) {
|
|
4156
4156
|
if ((startPos + 4 | 0) >= charSequenceLength(source)) {
|
|
4157
|
-
$this.
|
|
4158
|
-
$this.
|
|
4159
|
-
if (($this.
|
|
4160
|
-
$this.
|
|
4157
|
+
$this.e2k_1 = startPos;
|
|
4158
|
+
$this.a2u();
|
|
4159
|
+
if (($this.e2k_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
4160
|
+
$this.h2o('Unexpected EOF during unicode escape');
|
|
4161
4161
|
}
|
|
4162
|
-
return appendHex($this, source, $this.
|
|
4162
|
+
return appendHex($this, source, $this.e2k_1);
|
|
4163
4163
|
}
|
|
4164
|
-
$this.
|
|
4164
|
+
$this.h2k_1.s(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));
|
|
4165
4165
|
return startPos + 4 | 0;
|
|
4166
4166
|
}
|
|
4167
4167
|
function fromHexChar($this, source, currentPosition) {
|
|
@@ -4186,16 +4186,16 @@ function fromHexChar($this, source, currentPosition) {
|
|
|
4186
4186
|
var this_2 = _Char___init__impl__6a9atx(65);
|
|
4187
4187
|
tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
|
|
4188
4188
|
} else {
|
|
4189
|
-
$this.
|
|
4189
|
+
$this.h2o("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
|
|
4190
4190
|
}
|
|
4191
4191
|
return tmp;
|
|
4192
4192
|
}
|
|
4193
4193
|
function consumeBoolean2($this, start) {
|
|
4194
|
-
var current = $this.
|
|
4195
|
-
if (current >= charSequenceLength($this.
|
|
4196
|
-
$this.
|
|
4194
|
+
var current = $this.z2t(start);
|
|
4195
|
+
if (current >= charSequenceLength($this.y2t()) || current === -1) {
|
|
4196
|
+
$this.h2o('EOF');
|
|
4197
4197
|
}
|
|
4198
|
-
var tmp = $this.
|
|
4198
|
+
var tmp = $this.y2t();
|
|
4199
4199
|
var _unary__edvuaz = current;
|
|
4200
4200
|
current = _unary__edvuaz + 1 | 0;
|
|
4201
4201
|
// Inline function 'kotlin.code' call
|
|
@@ -4214,14 +4214,14 @@ function consumeBoolean2($this, start) {
|
|
|
4214
4214
|
consumeBooleanLiteral($this, 'alse', current);
|
|
4215
4215
|
tmp_0 = false;
|
|
4216
4216
|
} else {
|
|
4217
|
-
$this.
|
|
4217
|
+
$this.h2o("Expected valid boolean literal prefix, but had '" + $this.m2p() + "'");
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
4220
|
return tmp_0;
|
|
4221
4221
|
}
|
|
4222
4222
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
4223
|
-
if ((charSequenceLength($this.
|
|
4224
|
-
$this.
|
|
4223
|
+
if ((charSequenceLength($this.y2t()) - current | 0) < literalSuffix.length) {
|
|
4224
|
+
$this.h2o('Unexpected end of boolean literal');
|
|
4225
4225
|
}
|
|
4226
4226
|
var inductionVariable = 0;
|
|
4227
4227
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -4230,16 +4230,16 @@ function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
|
4230
4230
|
var i = inductionVariable;
|
|
4231
4231
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4232
4232
|
var expected = charCodeAt(literalSuffix, i);
|
|
4233
|
-
var actual = charSequenceGet($this.
|
|
4233
|
+
var actual = charSequenceGet($this.y2t(), current + i | 0);
|
|
4234
4234
|
// Inline function 'kotlin.code' call
|
|
4235
4235
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
4236
4236
|
// Inline function 'kotlin.code' call
|
|
4237
4237
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
4238
|
-
$this.
|
|
4238
|
+
$this.h2o("Expected valid boolean literal prefix, but had '" + $this.m2p() + "'");
|
|
4239
4239
|
}
|
|
4240
4240
|
}
|
|
4241
4241
|
while (inductionVariable <= last);
|
|
4242
|
-
$this.
|
|
4242
|
+
$this.e2k_1 = current + literalSuffix.length | 0;
|
|
4243
4243
|
}
|
|
4244
4244
|
function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive) {
|
|
4245
4245
|
var tmp;
|
|
@@ -4263,76 +4263,76 @@ function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponent
|
|
|
4263
4263
|
return tmp;
|
|
4264
4264
|
}
|
|
4265
4265
|
function AbstractJsonLexer() {
|
|
4266
|
-
this.
|
|
4267
|
-
this.
|
|
4268
|
-
this.
|
|
4269
|
-
this.
|
|
4266
|
+
this.e2k_1 = 0;
|
|
4267
|
+
this.f2k_1 = new JsonPath();
|
|
4268
|
+
this.g2k_1 = null;
|
|
4269
|
+
this.h2k_1 = StringBuilder_init_$Create$();
|
|
4270
4270
|
}
|
|
4271
|
-
protoOf(AbstractJsonLexer).
|
|
4271
|
+
protoOf(AbstractJsonLexer).a2u = function () {
|
|
4272
4272
|
};
|
|
4273
|
-
protoOf(AbstractJsonLexer).
|
|
4274
|
-
var current = this.
|
|
4275
|
-
var source = this.
|
|
4273
|
+
protoOf(AbstractJsonLexer).y2q = function () {
|
|
4274
|
+
var current = this.b2u();
|
|
4275
|
+
var source = this.y2t();
|
|
4276
4276
|
if (current >= charSequenceLength(source) || current === -1)
|
|
4277
4277
|
return false;
|
|
4278
4278
|
if (charSequenceGet(source, current) === _Char___init__impl__6a9atx(44)) {
|
|
4279
|
-
this.
|
|
4279
|
+
this.e2k_1 = this.e2k_1 + 1 | 0;
|
|
4280
4280
|
return true;
|
|
4281
4281
|
}
|
|
4282
4282
|
return false;
|
|
4283
4283
|
};
|
|
4284
|
-
protoOf(AbstractJsonLexer).
|
|
4284
|
+
protoOf(AbstractJsonLexer).c2u = function (c) {
|
|
4285
4285
|
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;
|
|
4286
4286
|
};
|
|
4287
|
-
protoOf(AbstractJsonLexer).
|
|
4288
|
-
var nextToken = this.
|
|
4287
|
+
protoOf(AbstractJsonLexer).i2k = function () {
|
|
4288
|
+
var nextToken = this.o2p();
|
|
4289
4289
|
if (!(nextToken === 10)) {
|
|
4290
|
-
this.
|
|
4290
|
+
this.h2o('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.y2t(), this.e2k_1 - 1 | 0)) + ' instead');
|
|
4291
4291
|
}
|
|
4292
4292
|
};
|
|
4293
|
-
protoOf(AbstractJsonLexer).
|
|
4294
|
-
var token = this.
|
|
4293
|
+
protoOf(AbstractJsonLexer).i2p = function (expected) {
|
|
4294
|
+
var token = this.o2p();
|
|
4295
4295
|
if (!(token === expected)) {
|
|
4296
|
-
this.
|
|
4296
|
+
this.d2u(expected);
|
|
4297
4297
|
}
|
|
4298
4298
|
return token;
|
|
4299
4299
|
};
|
|
4300
|
-
protoOf(AbstractJsonLexer).
|
|
4301
|
-
if (this.
|
|
4300
|
+
protoOf(AbstractJsonLexer).e2u = function (expected) {
|
|
4301
|
+
if (this.e2k_1 > 0 && expected === _Char___init__impl__6a9atx(34)) {
|
|
4302
4302
|
var tmp$ret$1;
|
|
4303
4303
|
$l$block: {
|
|
4304
4304
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.withPositionRollback' call
|
|
4305
|
-
var snapshot = this.
|
|
4305
|
+
var snapshot = this.e2k_1;
|
|
4306
4306
|
try {
|
|
4307
|
-
this.
|
|
4308
|
-
tmp$ret$1 = this.
|
|
4307
|
+
this.e2k_1 = this.e2k_1 - 1 | 0;
|
|
4308
|
+
tmp$ret$1 = this.m2p();
|
|
4309
4309
|
break $l$block;
|
|
4310
4310
|
}finally {
|
|
4311
|
-
this.
|
|
4311
|
+
this.e2k_1 = snapshot;
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
4314
|
var inputLiteral = tmp$ret$1;
|
|
4315
4315
|
if (inputLiteral === 'null') {
|
|
4316
|
-
this.
|
|
4316
|
+
this.g2o("Expected string literal but 'null' literal was found", this.e2k_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
|
-
this.
|
|
4319
|
+
this.d2u(charToTokenClass(expected));
|
|
4320
4320
|
};
|
|
4321
|
-
protoOf(AbstractJsonLexer).
|
|
4321
|
+
protoOf(AbstractJsonLexer).f2u = function (expectedToken, wasConsumed) {
|
|
4322
4322
|
var expected = tokenDescription(expectedToken);
|
|
4323
|
-
var position = wasConsumed ? this.
|
|
4324
|
-
var s = this.
|
|
4325
|
-
this.
|
|
4323
|
+
var position = wasConsumed ? this.e2k_1 - 1 | 0 : this.e2k_1;
|
|
4324
|
+
var s = this.e2k_1 === charSequenceLength(this.y2t()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.y2t(), position));
|
|
4325
|
+
this.h2o('Expected ' + expected + ", but had '" + s + "' instead", position);
|
|
4326
4326
|
};
|
|
4327
|
-
protoOf(AbstractJsonLexer).
|
|
4327
|
+
protoOf(AbstractJsonLexer).d2u = function (expectedToken, wasConsumed, $super) {
|
|
4328
4328
|
wasConsumed = wasConsumed === VOID ? true : wasConsumed;
|
|
4329
|
-
return $super === VOID ? this.
|
|
4329
|
+
return $super === VOID ? this.f2u(expectedToken, wasConsumed) : $super.f2u.call(this, expectedToken, wasConsumed);
|
|
4330
4330
|
};
|
|
4331
|
-
protoOf(AbstractJsonLexer).
|
|
4332
|
-
var source = this.
|
|
4333
|
-
var cpos = this.
|
|
4331
|
+
protoOf(AbstractJsonLexer).j2p = function () {
|
|
4332
|
+
var source = this.y2t();
|
|
4333
|
+
var cpos = this.e2k_1;
|
|
4334
4334
|
$l$loop_0: while (true) {
|
|
4335
|
-
cpos = this.
|
|
4335
|
+
cpos = this.z2t(cpos);
|
|
4336
4336
|
if (cpos === -1)
|
|
4337
4337
|
break $l$loop_0;
|
|
4338
4338
|
var ch = charSequenceGet(source, cpos);
|
|
@@ -4340,16 +4340,16 @@ protoOf(AbstractJsonLexer).i2p = function () {
|
|
|
4340
4340
|
cpos = cpos + 1 | 0;
|
|
4341
4341
|
continue $l$loop_0;
|
|
4342
4342
|
}
|
|
4343
|
-
this.
|
|
4343
|
+
this.e2k_1 = cpos;
|
|
4344
4344
|
return charToTokenClass(ch);
|
|
4345
4345
|
}
|
|
4346
|
-
this.
|
|
4346
|
+
this.e2k_1 = cpos;
|
|
4347
4347
|
return 10;
|
|
4348
4348
|
};
|
|
4349
|
-
protoOf(AbstractJsonLexer).
|
|
4350
|
-
var current = this.
|
|
4351
|
-
current = this.
|
|
4352
|
-
var len = charSequenceLength(this.
|
|
4349
|
+
protoOf(AbstractJsonLexer).z2q = function (doConsume) {
|
|
4350
|
+
var current = this.b2u();
|
|
4351
|
+
current = this.z2t(current);
|
|
4352
|
+
var len = charSequenceLength(this.y2t()) - current | 0;
|
|
4353
4353
|
if (len < 4 || current === -1)
|
|
4354
4354
|
return false;
|
|
4355
4355
|
var inductionVariable = 0;
|
|
@@ -4357,50 +4357,50 @@ protoOf(AbstractJsonLexer).y2q = function (doConsume) {
|
|
|
4357
4357
|
do {
|
|
4358
4358
|
var i = inductionVariable;
|
|
4359
4359
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4360
|
-
if (!(charCodeAt('null', i) === charSequenceGet(this.
|
|
4360
|
+
if (!(charCodeAt('null', i) === charSequenceGet(this.y2t(), current + i | 0)))
|
|
4361
4361
|
return false;
|
|
4362
4362
|
}
|
|
4363
4363
|
while (inductionVariable <= 3);
|
|
4364
|
-
if (len > 4 && charToTokenClass(charSequenceGet(this.
|
|
4364
|
+
if (len > 4 && charToTokenClass(charSequenceGet(this.y2t(), current + 4 | 0)) === 0)
|
|
4365
4365
|
return false;
|
|
4366
4366
|
if (doConsume) {
|
|
4367
|
-
this.
|
|
4367
|
+
this.e2k_1 = current + 4 | 0;
|
|
4368
4368
|
}
|
|
4369
4369
|
return true;
|
|
4370
4370
|
};
|
|
4371
|
-
protoOf(AbstractJsonLexer).
|
|
4371
|
+
protoOf(AbstractJsonLexer).k2r = function (doConsume, $super) {
|
|
4372
4372
|
doConsume = doConsume === VOID ? true : doConsume;
|
|
4373
|
-
return $super === VOID ? this.
|
|
4373
|
+
return $super === VOID ? this.z2q(doConsume) : $super.z2q.call(this, doConsume);
|
|
4374
4374
|
};
|
|
4375
|
-
protoOf(AbstractJsonLexer).
|
|
4376
|
-
var token = this.
|
|
4375
|
+
protoOf(AbstractJsonLexer).a2r = function (isLenient) {
|
|
4376
|
+
var token = this.j2p();
|
|
4377
4377
|
var tmp;
|
|
4378
4378
|
if (isLenient) {
|
|
4379
4379
|
if (!(token === 1) && !(token === 0))
|
|
4380
4380
|
return null;
|
|
4381
|
-
tmp = this.
|
|
4381
|
+
tmp = this.m2p();
|
|
4382
4382
|
} else {
|
|
4383
4383
|
if (!(token === 1))
|
|
4384
4384
|
return null;
|
|
4385
|
-
tmp = this.
|
|
4385
|
+
tmp = this.l2p();
|
|
4386
4386
|
}
|
|
4387
4387
|
var string = tmp;
|
|
4388
|
-
this.
|
|
4388
|
+
this.g2k_1 = string;
|
|
4389
4389
|
return string;
|
|
4390
4390
|
};
|
|
4391
|
-
protoOf(AbstractJsonLexer).
|
|
4392
|
-
this.
|
|
4391
|
+
protoOf(AbstractJsonLexer).g2u = function () {
|
|
4392
|
+
this.g2k_1 = null;
|
|
4393
4393
|
};
|
|
4394
|
-
protoOf(AbstractJsonLexer).
|
|
4394
|
+
protoOf(AbstractJsonLexer).h2u = function (startPos, endPos) {
|
|
4395
4395
|
// Inline function 'kotlin.text.substring' call
|
|
4396
|
-
var this_0 = this.
|
|
4396
|
+
var this_0 = this.y2t();
|
|
4397
4397
|
return toString(charSequenceSubSequence(this_0, startPos, endPos));
|
|
4398
4398
|
};
|
|
4399
|
-
protoOf(AbstractJsonLexer).
|
|
4400
|
-
if (!(this.
|
|
4399
|
+
protoOf(AbstractJsonLexer).l2p = function () {
|
|
4400
|
+
if (!(this.g2k_1 == null)) {
|
|
4401
4401
|
return takePeeked(this);
|
|
4402
4402
|
}
|
|
4403
|
-
return this.
|
|
4403
|
+
return this.d2r();
|
|
4404
4404
|
};
|
|
4405
4405
|
protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) {
|
|
4406
4406
|
var currentPosition = current;
|
|
@@ -4410,19 +4410,19 @@ protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, cur
|
|
|
4410
4410
|
while (!(char === _Char___init__impl__6a9atx(34))) {
|
|
4411
4411
|
if (char === _Char___init__impl__6a9atx(92)) {
|
|
4412
4412
|
usedAppend = true;
|
|
4413
|
-
currentPosition = this.
|
|
4413
|
+
currentPosition = this.z2t(appendEscape(this, lastPosition, currentPosition));
|
|
4414
4414
|
if (currentPosition === -1) {
|
|
4415
|
-
this.
|
|
4415
|
+
this.h2o('Unexpected EOF', currentPosition);
|
|
4416
4416
|
}
|
|
4417
4417
|
lastPosition = currentPosition;
|
|
4418
4418
|
} else {
|
|
4419
4419
|
currentPosition = currentPosition + 1 | 0;
|
|
4420
4420
|
if (currentPosition >= charSequenceLength(source)) {
|
|
4421
4421
|
usedAppend = true;
|
|
4422
|
-
this.
|
|
4423
|
-
currentPosition = this.
|
|
4422
|
+
this.x2t(lastPosition, currentPosition);
|
|
4423
|
+
currentPosition = this.z2t(currentPosition);
|
|
4424
4424
|
if (currentPosition === -1) {
|
|
4425
|
-
this.
|
|
4425
|
+
this.h2o('Unexpected EOF', currentPosition);
|
|
4426
4426
|
}
|
|
4427
4427
|
lastPosition = currentPosition;
|
|
4428
4428
|
}
|
|
@@ -4431,45 +4431,45 @@ protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, cur
|
|
|
4431
4431
|
}
|
|
4432
4432
|
var tmp;
|
|
4433
4433
|
if (!usedAppend) {
|
|
4434
|
-
tmp = this.
|
|
4434
|
+
tmp = this.h2u(lastPosition, currentPosition);
|
|
4435
4435
|
} else {
|
|
4436
4436
|
tmp = decodedString(this, lastPosition, currentPosition);
|
|
4437
4437
|
}
|
|
4438
4438
|
var string = tmp;
|
|
4439
|
-
this.
|
|
4439
|
+
this.e2k_1 = currentPosition + 1 | 0;
|
|
4440
4440
|
return string;
|
|
4441
4441
|
};
|
|
4442
|
-
protoOf(AbstractJsonLexer).
|
|
4443
|
-
var result = this.
|
|
4442
|
+
protoOf(AbstractJsonLexer).e2r = function () {
|
|
4443
|
+
var result = this.m2p();
|
|
4444
4444
|
if (result === 'null' && wasUnquotedString(this)) {
|
|
4445
|
-
this.
|
|
4445
|
+
this.h2o("Unexpected 'null' value instead of string literal");
|
|
4446
4446
|
}
|
|
4447
4447
|
return result;
|
|
4448
4448
|
};
|
|
4449
|
-
protoOf(AbstractJsonLexer).
|
|
4450
|
-
if (!(this.
|
|
4449
|
+
protoOf(AbstractJsonLexer).m2p = function () {
|
|
4450
|
+
if (!(this.g2k_1 == null)) {
|
|
4451
4451
|
return takePeeked(this);
|
|
4452
4452
|
}
|
|
4453
|
-
var current = this.
|
|
4454
|
-
if (current >= charSequenceLength(this.
|
|
4455
|
-
this.
|
|
4453
|
+
var current = this.b2u();
|
|
4454
|
+
if (current >= charSequenceLength(this.y2t()) || current === -1) {
|
|
4455
|
+
this.h2o('EOF', current);
|
|
4456
4456
|
}
|
|
4457
|
-
var token = charToTokenClass(charSequenceGet(this.
|
|
4457
|
+
var token = charToTokenClass(charSequenceGet(this.y2t(), current));
|
|
4458
4458
|
if (token === 1) {
|
|
4459
|
-
return this.
|
|
4459
|
+
return this.l2p();
|
|
4460
4460
|
}
|
|
4461
4461
|
if (!(token === 0)) {
|
|
4462
|
-
this.
|
|
4462
|
+
this.h2o('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.y2t(), current)));
|
|
4463
4463
|
}
|
|
4464
4464
|
var usedAppend = false;
|
|
4465
|
-
while (charToTokenClass(charSequenceGet(this.
|
|
4465
|
+
while (charToTokenClass(charSequenceGet(this.y2t(), current)) === 0) {
|
|
4466
4466
|
current = current + 1 | 0;
|
|
4467
|
-
if (current >= charSequenceLength(this.
|
|
4467
|
+
if (current >= charSequenceLength(this.y2t())) {
|
|
4468
4468
|
usedAppend = true;
|
|
4469
|
-
this.
|
|
4470
|
-
var eof = this.
|
|
4469
|
+
this.x2t(this.e2k_1, current);
|
|
4470
|
+
var eof = this.z2t(current);
|
|
4471
4471
|
if (eof === -1) {
|
|
4472
|
-
this.
|
|
4472
|
+
this.e2k_1 = current;
|
|
4473
4473
|
return decodedString(this, 0, 0);
|
|
4474
4474
|
} else {
|
|
4475
4475
|
current = eof;
|
|
@@ -4478,32 +4478,32 @@ protoOf(AbstractJsonLexer).l2p = function () {
|
|
|
4478
4478
|
}
|
|
4479
4479
|
var tmp;
|
|
4480
4480
|
if (!usedAppend) {
|
|
4481
|
-
tmp = this.
|
|
4481
|
+
tmp = this.h2u(this.e2k_1, current);
|
|
4482
4482
|
} else {
|
|
4483
|
-
tmp = decodedString(this, this.
|
|
4483
|
+
tmp = decodedString(this, this.e2k_1, current);
|
|
4484
4484
|
}
|
|
4485
4485
|
var result = tmp;
|
|
4486
|
-
this.
|
|
4486
|
+
this.e2k_1 = current;
|
|
4487
4487
|
return result;
|
|
4488
4488
|
};
|
|
4489
|
-
protoOf(AbstractJsonLexer).
|
|
4490
|
-
this.
|
|
4489
|
+
protoOf(AbstractJsonLexer).x2t = function (fromIndex, toIndex) {
|
|
4490
|
+
this.h2k_1.qb(this.y2t(), fromIndex, toIndex);
|
|
4491
4491
|
};
|
|
4492
|
-
protoOf(AbstractJsonLexer).
|
|
4492
|
+
protoOf(AbstractJsonLexer).c2r = function (allowLenientStrings) {
|
|
4493
4493
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4494
4494
|
var tokenStack = ArrayList_init_$Create$();
|
|
4495
|
-
var lastToken = this.
|
|
4495
|
+
var lastToken = this.j2p();
|
|
4496
4496
|
if (!(lastToken === 8) && !(lastToken === 6)) {
|
|
4497
|
-
this.
|
|
4497
|
+
this.m2p();
|
|
4498
4498
|
return Unit_instance;
|
|
4499
4499
|
}
|
|
4500
4500
|
$l$loop: while (true) {
|
|
4501
|
-
lastToken = this.
|
|
4501
|
+
lastToken = this.j2p();
|
|
4502
4502
|
if (lastToken === 1) {
|
|
4503
4503
|
if (allowLenientStrings)
|
|
4504
|
-
this.
|
|
4504
|
+
this.m2p();
|
|
4505
4505
|
else
|
|
4506
|
-
this.
|
|
4506
|
+
this.d2r();
|
|
4507
4507
|
continue $l$loop;
|
|
4508
4508
|
}
|
|
4509
4509
|
var tmp40_subject = lastToken;
|
|
@@ -4511,29 +4511,29 @@ protoOf(AbstractJsonLexer).b2r = function (allowLenientStrings) {
|
|
|
4511
4511
|
tokenStack.x(lastToken);
|
|
4512
4512
|
} else if (tmp40_subject === 9) {
|
|
4513
4513
|
if (!(last(tokenStack) === 8))
|
|
4514
|
-
throw JsonDecodingException_0(this.
|
|
4514
|
+
throw JsonDecodingException_0(this.e2k_1, 'found ] instead of } at path: ' + this.f2k_1.toString(), this.y2t());
|
|
4515
4515
|
removeLast(tokenStack);
|
|
4516
4516
|
} else if (tmp40_subject === 7) {
|
|
4517
4517
|
if (!(last(tokenStack) === 6))
|
|
4518
|
-
throw JsonDecodingException_0(this.
|
|
4518
|
+
throw JsonDecodingException_0(this.e2k_1, 'found } instead of ] at path: ' + this.f2k_1.toString(), this.y2t());
|
|
4519
4519
|
removeLast(tokenStack);
|
|
4520
4520
|
} else if (tmp40_subject === 10) {
|
|
4521
|
-
this.
|
|
4521
|
+
this.h2o('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
4522
4522
|
}
|
|
4523
|
-
this.
|
|
4523
|
+
this.o2p();
|
|
4524
4524
|
if (tokenStack.a1() === 0)
|
|
4525
4525
|
return Unit_instance;
|
|
4526
4526
|
}
|
|
4527
4527
|
};
|
|
4528
4528
|
protoOf(AbstractJsonLexer).toString = function () {
|
|
4529
|
-
return "JsonReader(source='" + toString(this.
|
|
4529
|
+
return "JsonReader(source='" + toString(this.y2t()) + "', currentPosition=" + this.e2k_1 + ')';
|
|
4530
4530
|
};
|
|
4531
|
-
protoOf(AbstractJsonLexer).
|
|
4532
|
-
var processed = this.
|
|
4531
|
+
protoOf(AbstractJsonLexer).b2r = function (key) {
|
|
4532
|
+
var processed = this.h2u(0, this.e2k_1);
|
|
4533
4533
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
4534
|
-
this.
|
|
4534
|
+
this.g2o("Encountered an unknown key '" + key + "'", lastIndexOf_0, "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.");
|
|
4535
4535
|
};
|
|
4536
|
-
protoOf(AbstractJsonLexer).
|
|
4536
|
+
protoOf(AbstractJsonLexer).g2o = function (message, position, hint) {
|
|
4537
4537
|
var tmp;
|
|
4538
4538
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4539
4539
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -4542,24 +4542,24 @@ protoOf(AbstractJsonLexer).f2o = function (message, position, hint) {
|
|
|
4542
4542
|
tmp = '\n' + hint;
|
|
4543
4543
|
}
|
|
4544
4544
|
var hintMessage = tmp;
|
|
4545
|
-
throw JsonDecodingException_0(position, message + ' at path: ' + this.
|
|
4545
|
+
throw JsonDecodingException_0(position, message + ' at path: ' + this.f2k_1.u2o() + hintMessage, this.y2t());
|
|
4546
4546
|
};
|
|
4547
|
-
protoOf(AbstractJsonLexer).
|
|
4548
|
-
position = position === VOID ? this.
|
|
4547
|
+
protoOf(AbstractJsonLexer).h2o = function (message, position, hint, $super) {
|
|
4548
|
+
position = position === VOID ? this.e2k_1 : position;
|
|
4549
4549
|
hint = hint === VOID ? '' : hint;
|
|
4550
|
-
return $super === VOID ? this.
|
|
4550
|
+
return $super === VOID ? this.g2o(message, position, hint) : $super.g2o.call(this, message, position, hint);
|
|
4551
4551
|
};
|
|
4552
|
-
protoOf(AbstractJsonLexer).
|
|
4553
|
-
var current = this.
|
|
4554
|
-
current = this.
|
|
4555
|
-
if (current >= charSequenceLength(this.
|
|
4556
|
-
this.
|
|
4552
|
+
protoOf(AbstractJsonLexer).f2m = function () {
|
|
4553
|
+
var current = this.b2u();
|
|
4554
|
+
current = this.z2t(current);
|
|
4555
|
+
if (current >= charSequenceLength(this.y2t()) || current === -1) {
|
|
4556
|
+
this.h2o('EOF');
|
|
4557
4557
|
}
|
|
4558
4558
|
var tmp;
|
|
4559
|
-
if (charSequenceGet(this.
|
|
4559
|
+
if (charSequenceGet(this.y2t(), current) === _Char___init__impl__6a9atx(34)) {
|
|
4560
4560
|
current = current + 1 | 0;
|
|
4561
|
-
if (current === charSequenceLength(this.
|
|
4562
|
-
this.
|
|
4561
|
+
if (current === charSequenceLength(this.y2t())) {
|
|
4562
|
+
this.h2o('EOF');
|
|
4563
4563
|
}
|
|
4564
4564
|
tmp = true;
|
|
4565
4565
|
} else {
|
|
@@ -4572,11 +4572,11 @@ protoOf(AbstractJsonLexer).e2m = function () {
|
|
|
4572
4572
|
var isExponentPositive = false;
|
|
4573
4573
|
var hasExponent = false;
|
|
4574
4574
|
var start = current;
|
|
4575
|
-
$l$loop_4: while (!(current === charSequenceLength(this.
|
|
4576
|
-
var ch = charSequenceGet(this.
|
|
4575
|
+
$l$loop_4: while (!(current === charSequenceLength(this.y2t()))) {
|
|
4576
|
+
var ch = charSequenceGet(this.y2t(), current);
|
|
4577
4577
|
if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
|
|
4578
4578
|
if (current === start) {
|
|
4579
|
-
this.
|
|
4579
|
+
this.h2o('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
|
|
4580
4580
|
}
|
|
4581
4581
|
isExponentPositive = true;
|
|
4582
4582
|
hasExponent = true;
|
|
@@ -4585,7 +4585,7 @@ protoOf(AbstractJsonLexer).e2m = function () {
|
|
|
4585
4585
|
}
|
|
4586
4586
|
if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
|
|
4587
4587
|
if (current === start) {
|
|
4588
|
-
this.
|
|
4588
|
+
this.h2o("Unexpected symbol '-' in numeric literal");
|
|
4589
4589
|
}
|
|
4590
4590
|
isExponentPositive = false;
|
|
4591
4591
|
current = current + 1 | 0;
|
|
@@ -4593,7 +4593,7 @@ protoOf(AbstractJsonLexer).e2m = function () {
|
|
|
4593
4593
|
}
|
|
4594
4594
|
if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
|
|
4595
4595
|
if (current === start) {
|
|
4596
|
-
this.
|
|
4596
|
+
this.h2o("Unexpected symbol '+' in numeric literal");
|
|
4597
4597
|
}
|
|
4598
4598
|
isExponentPositive = true;
|
|
4599
4599
|
current = current + 1 | 0;
|
|
@@ -4601,7 +4601,7 @@ protoOf(AbstractJsonLexer).e2m = function () {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
4603
4603
|
if (!(current === start)) {
|
|
4604
|
-
this.
|
|
4604
|
+
this.h2o("Unexpected symbol '-' in numeric literal");
|
|
4605
4605
|
}
|
|
4606
4606
|
isNegative = true;
|
|
4607
4607
|
current = current + 1 | 0;
|
|
@@ -4613,7 +4613,7 @@ protoOf(AbstractJsonLexer).e2m = function () {
|
|
|
4613
4613
|
current = current + 1 | 0;
|
|
4614
4614
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
4615
4615
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
4616
|
-
this.
|
|
4616
|
+
this.h2o("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
|
|
4617
4617
|
}
|
|
4618
4618
|
if (hasExponent) {
|
|
4619
4619
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -4629,31 +4629,31 @@ protoOf(AbstractJsonLexer).e2m = function () {
|
|
|
4629
4629
|
var this_3 = multiply(this_2, fromInt(10));
|
|
4630
4630
|
accumulator = subtract(this_3, fromInt(digit));
|
|
4631
4631
|
if (compare(accumulator, new Long(0, 0)) > 0) {
|
|
4632
|
-
this.
|
|
4632
|
+
this.h2o('Numeric value overflow');
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
4635
|
var hasChars = !(current === start);
|
|
4636
4636
|
if (start === current || (isNegative && start === (current - 1 | 0))) {
|
|
4637
|
-
this.
|
|
4637
|
+
this.h2o('Expected numeric literal');
|
|
4638
4638
|
}
|
|
4639
4639
|
if (hasQuotation) {
|
|
4640
4640
|
if (!hasChars) {
|
|
4641
|
-
this.
|
|
4641
|
+
this.h2o('EOF');
|
|
4642
4642
|
}
|
|
4643
|
-
if (!(charSequenceGet(this.
|
|
4644
|
-
this.
|
|
4643
|
+
if (!(charSequenceGet(this.y2t(), current) === _Char___init__impl__6a9atx(34))) {
|
|
4644
|
+
this.h2o('Expected closing quotation mark');
|
|
4645
4645
|
}
|
|
4646
4646
|
current = current + 1 | 0;
|
|
4647
4647
|
}
|
|
4648
|
-
this.
|
|
4648
|
+
this.e2k_1 = current;
|
|
4649
4649
|
if (hasExponent) {
|
|
4650
4650
|
var doubleAccumulator = toNumber(accumulator) * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
|
|
4651
4651
|
if (doubleAccumulator > toNumber(new Long(-1, 2147483647)) || doubleAccumulator < toNumber(new Long(0, -2147483648))) {
|
|
4652
|
-
this.
|
|
4652
|
+
this.h2o('Numeric value overflow');
|
|
4653
4653
|
}
|
|
4654
4654
|
// Inline function 'kotlin.math.floor' call
|
|
4655
4655
|
if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
|
|
4656
|
-
this.
|
|
4656
|
+
this.h2o("Can't convert " + doubleAccumulator + ' to Long');
|
|
4657
4657
|
}
|
|
4658
4658
|
accumulator = numberToLong(doubleAccumulator);
|
|
4659
4659
|
}
|
|
@@ -4663,17 +4663,17 @@ protoOf(AbstractJsonLexer).e2m = function () {
|
|
|
4663
4663
|
} else if (!equalsLong(accumulator, new Long(0, -2147483648))) {
|
|
4664
4664
|
tmp_0 = negate(accumulator);
|
|
4665
4665
|
} else {
|
|
4666
|
-
this.
|
|
4666
|
+
this.h2o('Numeric value overflow');
|
|
4667
4667
|
}
|
|
4668
4668
|
return tmp_0;
|
|
4669
4669
|
};
|
|
4670
|
-
protoOf(AbstractJsonLexer).
|
|
4671
|
-
var current = this.
|
|
4672
|
-
if (current === charSequenceLength(this.
|
|
4673
|
-
this.
|
|
4670
|
+
protoOf(AbstractJsonLexer).l2r = function () {
|
|
4671
|
+
var current = this.b2u();
|
|
4672
|
+
if (current === charSequenceLength(this.y2t())) {
|
|
4673
|
+
this.h2o('EOF');
|
|
4674
4674
|
}
|
|
4675
4675
|
var tmp;
|
|
4676
|
-
if (charSequenceGet(this.
|
|
4676
|
+
if (charSequenceGet(this.y2t(), current) === _Char___init__impl__6a9atx(34)) {
|
|
4677
4677
|
current = current + 1 | 0;
|
|
4678
4678
|
tmp = true;
|
|
4679
4679
|
} else {
|
|
@@ -4682,13 +4682,13 @@ protoOf(AbstractJsonLexer).k2r = function () {
|
|
|
4682
4682
|
var hasQuotation = tmp;
|
|
4683
4683
|
var result = consumeBoolean2(this, current);
|
|
4684
4684
|
if (hasQuotation) {
|
|
4685
|
-
if (this.
|
|
4686
|
-
this.
|
|
4685
|
+
if (this.e2k_1 === charSequenceLength(this.y2t())) {
|
|
4686
|
+
this.h2o('EOF');
|
|
4687
4687
|
}
|
|
4688
|
-
if (!(charSequenceGet(this.
|
|
4689
|
-
this.
|
|
4688
|
+
if (!(charSequenceGet(this.y2t(), this.e2k_1) === _Char___init__impl__6a9atx(34))) {
|
|
4689
|
+
this.h2o('Expected closing quotation mark');
|
|
4690
4690
|
}
|
|
4691
|
-
this.
|
|
4691
|
+
this.e2k_1 = this.e2k_1 + 1 | 0;
|
|
4692
4692
|
}
|
|
4693
4693
|
return result;
|
|
4694
4694
|
};
|
|
@@ -4696,7 +4696,7 @@ function charToTokenClass(c) {
|
|
|
4696
4696
|
var tmp;
|
|
4697
4697
|
// Inline function 'kotlin.code' call
|
|
4698
4698
|
if (Char__toInt_impl_vasixd(c) < 126) {
|
|
4699
|
-
var tmp_0 = CharMappings_getInstance().
|
|
4699
|
+
var tmp_0 = CharMappings_getInstance().j2u_1;
|
|
4700
4700
|
// Inline function 'kotlin.code' call
|
|
4701
4701
|
tmp = tmp_0[Char__toInt_impl_vasixd(c)];
|
|
4702
4702
|
} else {
|
|
@@ -4708,7 +4708,7 @@ function tokenDescription(token) {
|
|
|
4708
4708
|
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';
|
|
4709
4709
|
}
|
|
4710
4710
|
function escapeToChar(c) {
|
|
4711
|
-
return c < 117 ? CharMappings_getInstance().
|
|
4711
|
+
return c < 117 ? CharMappings_getInstance().i2u_1[c] : _Char___init__impl__6a9atx(0);
|
|
4712
4712
|
}
|
|
4713
4713
|
function initEscape($this) {
|
|
4714
4714
|
var inductionVariable = 0;
|
|
@@ -4754,7 +4754,7 @@ function initC2ESC($this, c, esc) {
|
|
|
4754
4754
|
if (!(esc === _Char___init__impl__6a9atx(117))) {
|
|
4755
4755
|
// Inline function 'kotlin.code' call
|
|
4756
4756
|
var tmp$ret$0 = Char__toInt_impl_vasixd(esc);
|
|
4757
|
-
$this.
|
|
4757
|
+
$this.i2u_1[tmp$ret$0] = numberToChar(c);
|
|
4758
4758
|
}
|
|
4759
4759
|
}
|
|
4760
4760
|
function initC2ESC_0($this, c, esc) {
|
|
@@ -4763,7 +4763,7 @@ function initC2ESC_0($this, c, esc) {
|
|
|
4763
4763
|
return initC2ESC($this, tmp$ret$0, esc);
|
|
4764
4764
|
}
|
|
4765
4765
|
function initC2TC($this, c, cl) {
|
|
4766
|
-
$this.
|
|
4766
|
+
$this.j2u_1[c] = cl;
|
|
4767
4767
|
}
|
|
4768
4768
|
function initC2TC_0($this, c, cl) {
|
|
4769
4769
|
// Inline function 'kotlin.code' call
|
|
@@ -4772,8 +4772,8 @@ function initC2TC_0($this, c, cl) {
|
|
|
4772
4772
|
}
|
|
4773
4773
|
function CharMappings() {
|
|
4774
4774
|
CharMappings_instance = this;
|
|
4775
|
-
this.
|
|
4776
|
-
this.
|
|
4775
|
+
this.i2u_1 = charArray(117);
|
|
4776
|
+
this.j2u_1 = new Int8Array(126);
|
|
4777
4777
|
initEscape(this);
|
|
4778
4778
|
initCharToToken(this);
|
|
4779
4779
|
}
|
|
@@ -4786,48 +4786,48 @@ function CharMappings_getInstance() {
|
|
|
4786
4786
|
function StringJsonLexerWithComments(source) {
|
|
4787
4787
|
StringJsonLexer.call(this, source);
|
|
4788
4788
|
}
|
|
4789
|
-
protoOf(StringJsonLexerWithComments).
|
|
4790
|
-
var source = this.
|
|
4791
|
-
var cpos = this.
|
|
4789
|
+
protoOf(StringJsonLexerWithComments).o2p = function () {
|
|
4790
|
+
var source = this.y2t();
|
|
4791
|
+
var cpos = this.b2u();
|
|
4792
4792
|
if (cpos >= source.length || cpos === -1)
|
|
4793
4793
|
return 10;
|
|
4794
|
-
this.
|
|
4794
|
+
this.e2k_1 = cpos + 1 | 0;
|
|
4795
4795
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
4796
4796
|
};
|
|
4797
|
-
protoOf(StringJsonLexerWithComments).
|
|
4798
|
-
var current = this.
|
|
4799
|
-
if (current >= this.
|
|
4797
|
+
protoOf(StringJsonLexerWithComments).k2p = function () {
|
|
4798
|
+
var current = this.b2u();
|
|
4799
|
+
if (current >= this.y2t().length || current === -1)
|
|
4800
4800
|
return false;
|
|
4801
|
-
return this.
|
|
4801
|
+
return this.c2u(charCodeAt(this.y2t(), current));
|
|
4802
4802
|
};
|
|
4803
|
-
protoOf(StringJsonLexerWithComments).
|
|
4804
|
-
var source = this.
|
|
4805
|
-
var current = this.
|
|
4803
|
+
protoOf(StringJsonLexerWithComments).x2q = function (expected) {
|
|
4804
|
+
var source = this.y2t();
|
|
4805
|
+
var current = this.b2u();
|
|
4806
4806
|
if (current >= source.length || current === -1) {
|
|
4807
|
-
this.
|
|
4808
|
-
this.
|
|
4807
|
+
this.e2k_1 = -1;
|
|
4808
|
+
this.e2u(expected);
|
|
4809
4809
|
}
|
|
4810
4810
|
var c = charCodeAt(source, current);
|
|
4811
|
-
this.
|
|
4811
|
+
this.e2k_1 = current + 1 | 0;
|
|
4812
4812
|
if (c === expected)
|
|
4813
4813
|
return Unit_instance;
|
|
4814
4814
|
else {
|
|
4815
|
-
this.
|
|
4815
|
+
this.e2u(expected);
|
|
4816
4816
|
}
|
|
4817
4817
|
};
|
|
4818
|
-
protoOf(StringJsonLexerWithComments).
|
|
4819
|
-
var source = this.
|
|
4820
|
-
var cpos = this.
|
|
4818
|
+
protoOf(StringJsonLexerWithComments).j2p = function () {
|
|
4819
|
+
var source = this.y2t();
|
|
4820
|
+
var cpos = this.b2u();
|
|
4821
4821
|
if (cpos >= source.length || cpos === -1)
|
|
4822
4822
|
return 10;
|
|
4823
|
-
this.
|
|
4823
|
+
this.e2k_1 = cpos;
|
|
4824
4824
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
4825
4825
|
};
|
|
4826
|
-
protoOf(StringJsonLexerWithComments).
|
|
4827
|
-
var current = this.
|
|
4826
|
+
protoOf(StringJsonLexerWithComments).b2u = function () {
|
|
4827
|
+
var current = this.e2k_1;
|
|
4828
4828
|
if (current === -1)
|
|
4829
4829
|
return current;
|
|
4830
|
-
var source = this.
|
|
4830
|
+
var source = this.y2t();
|
|
4831
4831
|
$l$loop_1: while (current < source.length) {
|
|
4832
4832
|
var c = charCodeAt(source, current);
|
|
4833
4833
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
@@ -4848,8 +4848,8 @@ protoOf(StringJsonLexerWithComments).a2u = function () {
|
|
|
4848
4848
|
} else if (tmp43_subject === _Char___init__impl__6a9atx(42)) {
|
|
4849
4849
|
current = indexOf(source, '*/', current + 2 | 0);
|
|
4850
4850
|
if (current === -1) {
|
|
4851
|
-
this.
|
|
4852
|
-
this.
|
|
4851
|
+
this.e2k_1 = source.length;
|
|
4852
|
+
this.h2o('Expected end of the block comment: "*/", but had EOF instead');
|
|
4853
4853
|
} else {
|
|
4854
4854
|
current = current + 2 | 0;
|
|
4855
4855
|
}
|
|
@@ -4858,22 +4858,22 @@ protoOf(StringJsonLexerWithComments).a2u = function () {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
break $l$loop_1;
|
|
4860
4860
|
}
|
|
4861
|
-
this.
|
|
4861
|
+
this.e2k_1 = current;
|
|
4862
4862
|
return current;
|
|
4863
4863
|
};
|
|
4864
4864
|
function StringJsonLexer(source) {
|
|
4865
4865
|
AbstractJsonLexer.call(this);
|
|
4866
|
-
this.
|
|
4866
|
+
this.t2u_1 = source;
|
|
4867
4867
|
}
|
|
4868
|
-
protoOf(StringJsonLexer).
|
|
4869
|
-
return this.
|
|
4868
|
+
protoOf(StringJsonLexer).y2t = function () {
|
|
4869
|
+
return this.t2u_1;
|
|
4870
4870
|
};
|
|
4871
|
-
protoOf(StringJsonLexer).
|
|
4872
|
-
return position < this.
|
|
4871
|
+
protoOf(StringJsonLexer).z2t = function (position) {
|
|
4872
|
+
return position < this.y2t().length ? position : -1;
|
|
4873
4873
|
};
|
|
4874
|
-
protoOf(StringJsonLexer).
|
|
4875
|
-
var source = this.
|
|
4876
|
-
var cpos = this.
|
|
4874
|
+
protoOf(StringJsonLexer).o2p = function () {
|
|
4875
|
+
var source = this.y2t();
|
|
4876
|
+
var cpos = this.e2k_1;
|
|
4877
4877
|
$l$loop: while (!(cpos === -1) && cpos < source.length) {
|
|
4878
4878
|
var _unary__edvuaz = cpos;
|
|
4879
4879
|
cpos = _unary__edvuaz + 1 | 0;
|
|
@@ -4881,17 +4881,17 @@ protoOf(StringJsonLexer).n2p = function () {
|
|
|
4881
4881
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
4882
4882
|
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))
|
|
4883
4883
|
continue $l$loop;
|
|
4884
|
-
this.
|
|
4884
|
+
this.e2k_1 = cpos;
|
|
4885
4885
|
return charToTokenClass(c);
|
|
4886
4886
|
}
|
|
4887
|
-
this.
|
|
4887
|
+
this.e2k_1 = source.length;
|
|
4888
4888
|
return 10;
|
|
4889
4889
|
};
|
|
4890
|
-
protoOf(StringJsonLexer).
|
|
4891
|
-
var current = this.
|
|
4890
|
+
protoOf(StringJsonLexer).k2p = function () {
|
|
4891
|
+
var current = this.e2k_1;
|
|
4892
4892
|
if (current === -1)
|
|
4893
4893
|
return false;
|
|
4894
|
-
var source = this.
|
|
4894
|
+
var source = this.y2t();
|
|
4895
4895
|
$l$loop: while (current < source.length) {
|
|
4896
4896
|
var c = charCodeAt(source, current);
|
|
4897
4897
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
@@ -4899,17 +4899,17 @@ protoOf(StringJsonLexer).j2p = function () {
|
|
|
4899
4899
|
current = current + 1 | 0;
|
|
4900
4900
|
continue $l$loop;
|
|
4901
4901
|
}
|
|
4902
|
-
this.
|
|
4903
|
-
return this.
|
|
4902
|
+
this.e2k_1 = current;
|
|
4903
|
+
return this.c2u(c);
|
|
4904
4904
|
}
|
|
4905
|
-
this.
|
|
4905
|
+
this.e2k_1 = current;
|
|
4906
4906
|
return false;
|
|
4907
4907
|
};
|
|
4908
|
-
protoOf(StringJsonLexer).
|
|
4909
|
-
var current = this.
|
|
4908
|
+
protoOf(StringJsonLexer).b2u = function () {
|
|
4909
|
+
var current = this.e2k_1;
|
|
4910
4910
|
if (current === -1)
|
|
4911
4911
|
return current;
|
|
4912
|
-
var source = this.
|
|
4912
|
+
var source = this.y2t();
|
|
4913
4913
|
$l$loop: while (current < source.length) {
|
|
4914
4914
|
var c = charCodeAt(source, current);
|
|
4915
4915
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
@@ -4919,15 +4919,15 @@ protoOf(StringJsonLexer).a2u = function () {
|
|
|
4919
4919
|
break $l$loop;
|
|
4920
4920
|
}
|
|
4921
4921
|
}
|
|
4922
|
-
this.
|
|
4922
|
+
this.e2k_1 = current;
|
|
4923
4923
|
return current;
|
|
4924
4924
|
};
|
|
4925
|
-
protoOf(StringJsonLexer).
|
|
4926
|
-
if (this.
|
|
4927
|
-
this.
|
|
4925
|
+
protoOf(StringJsonLexer).x2q = function (expected) {
|
|
4926
|
+
if (this.e2k_1 === -1) {
|
|
4927
|
+
this.e2u(expected);
|
|
4928
4928
|
}
|
|
4929
|
-
var source = this.
|
|
4930
|
-
var cpos = this.
|
|
4929
|
+
var source = this.y2t();
|
|
4930
|
+
var cpos = this.e2k_1;
|
|
4931
4931
|
$l$loop: while (cpos < source.length) {
|
|
4932
4932
|
var _unary__edvuaz = cpos;
|
|
4933
4933
|
cpos = _unary__edvuaz + 1 | 0;
|
|
@@ -4935,87 +4935,87 @@ protoOf(StringJsonLexer).w2q = function (expected) {
|
|
|
4935
4935
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
4936
4936
|
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))
|
|
4937
4937
|
continue $l$loop;
|
|
4938
|
-
this.
|
|
4938
|
+
this.e2k_1 = cpos;
|
|
4939
4939
|
if (c === expected)
|
|
4940
4940
|
return Unit_instance;
|
|
4941
|
-
this.
|
|
4941
|
+
this.e2u(expected);
|
|
4942
4942
|
}
|
|
4943
|
-
this.
|
|
4944
|
-
this.
|
|
4943
|
+
this.e2k_1 = -1;
|
|
4944
|
+
this.e2u(expected);
|
|
4945
4945
|
};
|
|
4946
|
-
protoOf(StringJsonLexer).
|
|
4947
|
-
this.
|
|
4948
|
-
var current = this.
|
|
4949
|
-
var closingQuote = indexOf_0(this.
|
|
4946
|
+
protoOf(StringJsonLexer).d2r = function () {
|
|
4947
|
+
this.x2q(_Char___init__impl__6a9atx(34));
|
|
4948
|
+
var current = this.e2k_1;
|
|
4949
|
+
var closingQuote = indexOf_0(this.y2t(), _Char___init__impl__6a9atx(34), current);
|
|
4950
4950
|
if (closingQuote === -1) {
|
|
4951
|
-
this.
|
|
4952
|
-
this.
|
|
4951
|
+
this.m2p();
|
|
4952
|
+
this.f2u(1, false);
|
|
4953
4953
|
}
|
|
4954
4954
|
var inductionVariable = current;
|
|
4955
4955
|
if (inductionVariable < closingQuote)
|
|
4956
4956
|
do {
|
|
4957
4957
|
var i = inductionVariable;
|
|
4958
4958
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4959
|
-
if (charCodeAt(this.
|
|
4960
|
-
return this.consumeString2(this.
|
|
4959
|
+
if (charCodeAt(this.y2t(), i) === _Char___init__impl__6a9atx(92)) {
|
|
4960
|
+
return this.consumeString2(this.y2t(), this.e2k_1, i);
|
|
4961
4961
|
}
|
|
4962
4962
|
}
|
|
4963
4963
|
while (inductionVariable < closingQuote);
|
|
4964
|
-
this.
|
|
4965
|
-
return substring(this.
|
|
4964
|
+
this.e2k_1 = closingQuote + 1 | 0;
|
|
4965
|
+
return substring(this.y2t(), current, closingQuote);
|
|
4966
4966
|
};
|
|
4967
|
-
protoOf(StringJsonLexer).
|
|
4968
|
-
var positionSnapshot = this.
|
|
4967
|
+
protoOf(StringJsonLexer).f2r = function (keyToMatch, isLenient) {
|
|
4968
|
+
var positionSnapshot = this.e2k_1;
|
|
4969
4969
|
try {
|
|
4970
|
-
if (!(this.
|
|
4970
|
+
if (!(this.o2p() === 6))
|
|
4971
4971
|
return null;
|
|
4972
|
-
var firstKey = this.
|
|
4972
|
+
var firstKey = this.a2r(isLenient);
|
|
4973
4973
|
if (!(firstKey === keyToMatch))
|
|
4974
4974
|
return null;
|
|
4975
|
-
this.
|
|
4976
|
-
if (!(this.
|
|
4975
|
+
this.g2u();
|
|
4976
|
+
if (!(this.o2p() === 5))
|
|
4977
4977
|
return null;
|
|
4978
|
-
return this.
|
|
4978
|
+
return this.a2r(isLenient);
|
|
4979
4979
|
}finally {
|
|
4980
|
-
this.
|
|
4981
|
-
this.
|
|
4980
|
+
this.e2k_1 = positionSnapshot;
|
|
4981
|
+
this.g2u();
|
|
4982
4982
|
}
|
|
4983
4983
|
};
|
|
4984
4984
|
function StringJsonLexer_0(json, source) {
|
|
4985
|
-
return !json.
|
|
4985
|
+
return !json.o2j_1.r2l_1 ? new StringJsonLexer(source) : new StringJsonLexerWithComments(source);
|
|
4986
4986
|
}
|
|
4987
4987
|
function get_schemaCache(_this__u8e3s4) {
|
|
4988
|
-
return _this__u8e3s4.
|
|
4988
|
+
return _this__u8e3s4.q2j_1;
|
|
4989
4989
|
}
|
|
4990
4990
|
function JsonToStringWriter() {
|
|
4991
|
-
this.
|
|
4991
|
+
this.u2j_1 = StringBuilder_init_$Create$_0(128);
|
|
4992
4992
|
}
|
|
4993
|
-
protoOf(JsonToStringWriter).
|
|
4994
|
-
this.
|
|
4993
|
+
protoOf(JsonToStringWriter).l2n = function (value) {
|
|
4994
|
+
this.u2j_1.tb(value);
|
|
4995
4995
|
};
|
|
4996
|
-
protoOf(JsonToStringWriter).
|
|
4997
|
-
this.
|
|
4996
|
+
protoOf(JsonToStringWriter).f2n = function (char) {
|
|
4997
|
+
this.u2j_1.s(char);
|
|
4998
4998
|
};
|
|
4999
|
-
protoOf(JsonToStringWriter).
|
|
5000
|
-
this.
|
|
4999
|
+
protoOf(JsonToStringWriter).h2n = function (text) {
|
|
5000
|
+
this.u2j_1.q(text);
|
|
5001
5001
|
};
|
|
5002
|
-
protoOf(JsonToStringWriter).
|
|
5003
|
-
printQuoted(this.
|
|
5002
|
+
protoOf(JsonToStringWriter).r2n = function (text) {
|
|
5003
|
+
printQuoted(this.u2j_1, text);
|
|
5004
5004
|
};
|
|
5005
|
-
protoOf(JsonToStringWriter).
|
|
5006
|
-
this.
|
|
5005
|
+
protoOf(JsonToStringWriter).v2j = function () {
|
|
5006
|
+
this.u2j_1.xb();
|
|
5007
5007
|
};
|
|
5008
5008
|
protoOf(JsonToStringWriter).toString = function () {
|
|
5009
|
-
return this.
|
|
5009
|
+
return this.u2j_1.toString();
|
|
5010
5010
|
};
|
|
5011
5011
|
function createMapForCache(initialCapacity) {
|
|
5012
5012
|
return HashMap_init_$Create$(initialCapacity);
|
|
5013
5013
|
}
|
|
5014
5014
|
//region block: post-declaration
|
|
5015
5015
|
protoOf(defer$1).cu = get_isNullable;
|
|
5016
|
-
protoOf(defer$1).
|
|
5017
|
-
protoOf(defer$1).
|
|
5018
|
-
protoOf(PolymorphismValidator).
|
|
5016
|
+
protoOf(defer$1).c21 = get_isInline;
|
|
5017
|
+
protoOf(defer$1).e21 = get_annotations;
|
|
5018
|
+
protoOf(PolymorphismValidator).h2j = contextual;
|
|
5019
5019
|
//endregion
|
|
5020
5020
|
//region block: init
|
|
5021
5021
|
Companion_instance = new Companion();
|