(function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_kotlin) { 'use strict'; //region block: imports var imul = Math.imul; var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e3; var protoOf = kotlin_kotlin.$_$.ed; var objectMeta = kotlin_kotlin.$_$.dd; var setMetadataFor = kotlin_kotlin.$_$.fd; var Unit_instance = kotlin_kotlin.$_$.m5; var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q3; var classMeta = kotlin_kotlin.$_$.qb; var VOID = kotlin_kotlin.$_$.f; var toString = kotlin_kotlin.$_$.jd; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1; var charSequenceLength = kotlin_kotlin.$_$.ob; var charSequenceGet = kotlin_kotlin.$_$.nb; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2; var equals = kotlin_kotlin.$_$.ub; var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e; var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i; var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1; var getKClassFromExpression = kotlin_kotlin.$_$.d; var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u3; var THROW_CCE = kotlin_kotlin.$_$.si; var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l3; var isInterface = kotlin_kotlin.$_$.mc; var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2; var CompositeDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2; var interfaceMeta = kotlin_kotlin.$_$.dc; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1; var hashCode = kotlin_kotlin.$_$.cc; var joinToString = kotlin_kotlin.$_$.e8; var Map = kotlin_kotlin.$_$.z5; var IntCompanionObject_instance = kotlin_kotlin.$_$.y4; var numberRangeToNumber = kotlin_kotlin.$_$.vc; var ClosedRange = kotlin_kotlin.$_$.od; var contains = kotlin_kotlin.$_$.vd; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i; var lazy = kotlin_kotlin.$_$.pj; var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y2; var List = kotlin_kotlin.$_$.x5; var getBooleanHashCode = kotlin_kotlin.$_$.xb; var getStringHashCode = kotlin_kotlin.$_$.bc; var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.j2; var toDouble = kotlin_kotlin.$_$.ch; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2; var StringCompanionObject_instance = kotlin_kotlin.$_$.a5; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1; var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u2; var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k; var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1; var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1; var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m; var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z; var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1; var toLongOrNull = kotlin_kotlin.$_$.hh; var toULongOrNull = kotlin_kotlin.$_$.oh; var ULong = kotlin_kotlin.$_$.bj; var Companion_getInstance = kotlin_kotlin.$_$.k5; var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1; var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.b4; var toDoubleOrNull = kotlin_kotlin.$_$.bh; var toBooleanStrictOrNull = kotlin_kotlin.$_$.xg; var lazy_0 = kotlin_kotlin.$_$.qj; var get_isNullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1; var get_isInline = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1; var get_annotations = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1; var KProperty1 = kotlin_kotlin.$_$.fe; var getPropertyCallableRef = kotlin_kotlin.$_$.ac; var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2; var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2; var toLong = kotlin_kotlin.$_$.hd; var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.q3; var UInt__toString_impl_dbgl21 = kotlin_kotlin.$_$.t3; var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.a4; var ULong__toString_impl_f9au7k = kotlin_kotlin.$_$.c4; var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.h3; var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.j3; var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.j4; var UShort__toString_impl_edaoee = kotlin_kotlin.$_$.l4; var ElementMarker = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2; var captureStack = kotlin_kotlin.$_$.kb; var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3; var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d; var charSequenceSubSequence = kotlin_kotlin.$_$.pb; var coerceAtLeast = kotlin_kotlin.$_$.rd; var coerceAtMost = kotlin_kotlin.$_$.td; var Companion_instance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r; var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n; var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m; var singleOrNull = kotlin_kotlin.$_$.r9; var emptyMap = kotlin_kotlin.$_$.o7; var getValue = kotlin_kotlin.$_$.y7; var fillArrayVal = kotlin_kotlin.$_$.wb; var copyOf = kotlin_kotlin.$_$.g7; var copyOf_0 = kotlin_kotlin.$_$.h7; var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o; var DeepRecursiveFunction = kotlin_kotlin.$_$.di; var invoke = kotlin_kotlin.$_$.lj; var CoroutineImpl = kotlin_kotlin.$_$.ab; var DeepRecursiveScope = kotlin_kotlin.$_$.ei; var Unit = kotlin_kotlin.$_$.ej; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ma; var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2; var getKClass = kotlin_kotlin.$_$.e; var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r3; var ensureNotNull = kotlin_kotlin.$_$.kj; var DeserializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k3; var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n3; var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a3; var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1; var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1; var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1; var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l; var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p; var contextual = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g3; var SerializersModuleCollector = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h3; var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2; var substringBefore = kotlin_kotlin.$_$.ug; var removeSuffix = kotlin_kotlin.$_$.dg; var substringAfter = kotlin_kotlin.$_$.pg; var contains_0 = kotlin_kotlin.$_$.af; var plus = kotlin_kotlin.$_$.sj; var MissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m3; var IllegalArgumentException = kotlin_kotlin.$_$.ii; var isFinite = kotlin_kotlin.$_$.nj; var isFinite_0 = kotlin_kotlin.$_$.mj; var toUInt = kotlin_kotlin.$_$.nh; var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.s3; var toULong = kotlin_kotlin.$_$.ph; var toUByte = kotlin_kotlin.$_$.mh; var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.i3; var toUShort = kotlin_kotlin.$_$.qh; var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.k4; var objectCreate = kotlin_kotlin.$_$.cd; var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2; var findPolymorphicSerializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s3; var toString_0 = kotlin_kotlin.$_$.c3; var Companion_getInstance_0 = kotlin_kotlin.$_$.j5; var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1; var Companion_getInstance_1 = kotlin_kotlin.$_$.i5; var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1; var Companion_getInstance_2 = kotlin_kotlin.$_$.l5; var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1; var setOf = kotlin_kotlin.$_$.p9; var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.b3; var numberToChar = kotlin_kotlin.$_$.xc; var equals_0 = kotlin_kotlin.$_$.if; var noWhenBranchMatchedException = kotlin_kotlin.$_$.rj; var NamedValueDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2; var ByteCompanionObject_instance = kotlin_kotlin.$_$.v4; var toByte = kotlin_kotlin.$_$.gd; var ShortCompanionObject_instance = kotlin_kotlin.$_$.z4; var toShort = kotlin_kotlin.$_$.id; var single = kotlin_kotlin.$_$.ig; var Char = kotlin_kotlin.$_$.ai; var emptySet = kotlin_kotlin.$_$.p7; var plus_0 = kotlin_kotlin.$_$.a9; var toInt = kotlin_kotlin.$_$.fh; var toList = kotlin_kotlin.$_$.y9; var enumEntries = kotlin_kotlin.$_$.eb; var Enum = kotlin_kotlin.$_$.fi; var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2; var last = kotlin_kotlin.$_$.l8; var removeLast = kotlin_kotlin.$_$.k9; var lastIndexOf = kotlin_kotlin.$_$.zf; var Long = kotlin_kotlin.$_$.li; var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.x2; var Companion_getInstance_3 = kotlin_kotlin.$_$.g5; var numberToLong = kotlin_kotlin.$_$.ad; var charArray = kotlin_kotlin.$_$.mb; var indexOf = kotlin_kotlin.$_$.nf; var abs = kotlin_kotlin.$_$.ld; var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.wj; var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q; var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.e1; var HashMap_init_$Create$ = kotlin_kotlin.$_$.o; //endregion //region block: pre-declaration setMetadataFor(Json, 'Json', classMeta, VOID, [StringFormat]); setMetadataFor(Default, 'Default', objectMeta, Json); setMetadataFor(JsonBuilder, 'JsonBuilder', classMeta); setMetadataFor(JsonImpl, 'JsonImpl', classMeta, Json); setMetadataFor(JsonClassDiscriminator, 'JsonClassDiscriminator', classMeta); setMetadataFor(JsonNames, 'JsonNames', classMeta); setMetadataFor(JsonConfiguration, 'JsonConfiguration', classMeta); setMetadataFor(JsonContentPolymorphicSerializer, 'JsonContentPolymorphicSerializer', classMeta, VOID, [KSerializer]); setMetadataFor(JsonDecoder, 'JsonDecoder', interfaceMeta, VOID, [Decoder, CompositeDecoder]); setMetadataFor(Companion, 'Companion', objectMeta); setMetadataFor(JsonElement, 'JsonElement', classMeta, VOID, VOID, VOID, VOID, {0: JsonElementSerializer_getInstance}); setMetadataFor(Companion_0, 'Companion', objectMeta); setMetadataFor(JsonPrimitive, 'JsonPrimitive', classMeta, JsonElement, VOID, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance}); setMetadataFor(Companion_1, 'Companion', objectMeta); setMetadataFor(JsonObject, 'JsonObject', classMeta, JsonElement, [JsonElement, Map], VOID, VOID, {0: JsonObjectSerializer_getInstance}); setMetadataFor(JsonNull, 'JsonNull', objectMeta, JsonPrimitive, [JsonPrimitive, SerializerFactory], VOID, VOID, {0: JsonNull_getInstance}); setMetadataFor(Companion_2, 'Companion', objectMeta); setMetadataFor(JsonArray, 'JsonArray', classMeta, JsonElement, [JsonElement, List], VOID, VOID, {0: JsonArraySerializer_getInstance}); setMetadataFor(JsonLiteral, 'JsonLiteral', classMeta, JsonPrimitive); setMetadataFor(JsonElementSerializer, 'JsonElementSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(JsonObjectDescriptor, 'JsonObjectDescriptor', objectMeta, VOID, [SerialDescriptor]); setMetadataFor(JsonObjectSerializer, 'JsonObjectSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(JsonNullSerializer, 'JsonNullSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(JsonArrayDescriptor, 'JsonArrayDescriptor', objectMeta, VOID, [SerialDescriptor]); setMetadataFor(JsonArraySerializer, 'JsonArraySerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(JsonLiteralSerializer, 'JsonLiteralSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(defer$1, VOID, classMeta, VOID, [SerialDescriptor]); setMetadataFor(JsonEncoder, 'JsonEncoder', interfaceMeta, VOID, [Encoder, CompositeEncoder]); setMetadataFor(Composer, 'Composer', classMeta); setMetadataFor(ComposerForUnsignedNumbers, 'ComposerForUnsignedNumbers', classMeta, Composer); setMetadataFor(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals', classMeta, Composer); setMetadataFor(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint', classMeta, Composer); setMetadataFor(JsonElementMarker, 'JsonElementMarker', classMeta); setMetadataFor(JsonException, 'JsonException', classMeta, SerializationException); setMetadataFor(JsonDecodingException, 'JsonDecodingException', classMeta, JsonException); setMetadataFor(JsonEncodingException, 'JsonEncodingException', classMeta, JsonException); setMetadataFor(Tombstone, 'Tombstone', objectMeta); setMetadataFor(JsonPath, 'JsonPath', classMeta, VOID, VOID, JsonPath); setMetadataFor(JsonTreeReader$readDeepRecursive$slambda, 'JsonTreeReader$readDeepRecursive$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor($readObjectCOROUTINE$0, '$readObjectCOROUTINE$0', classMeta, CoroutineImpl); setMetadataFor(JsonTreeReader, 'JsonTreeReader', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PolymorphismValidator, 'PolymorphismValidator', classMeta, VOID, [SerializersModuleCollector]); setMetadataFor(Key, 'Key', classMeta, VOID, VOID, Key); setMetadataFor(DescriptorSchemaCache, 'DescriptorSchemaCache', classMeta, VOID, VOID, DescriptorSchemaCache); setMetadataFor(DiscriminatorHolder, 'DiscriminatorHolder', classMeta); setMetadataFor(StreamingJsonDecoder, 'StreamingJsonDecoder', classMeta, AbstractDecoder, [JsonDecoder, AbstractDecoder]); setMetadataFor(JsonDecoderForUnsignedTypes, 'JsonDecoderForUnsignedTypes', classMeta, AbstractDecoder); setMetadataFor(StreamingJsonEncoder, 'StreamingJsonEncoder', classMeta, AbstractEncoder, [JsonEncoder, AbstractEncoder]); setMetadataFor(AbstractJsonTreeDecoder, 'AbstractJsonTreeDecoder', classMeta, NamedValueDecoder, [NamedValueDecoder, JsonDecoder]); setMetadataFor(JsonTreeDecoder, 'JsonTreeDecoder', classMeta, AbstractJsonTreeDecoder); setMetadataFor(JsonTreeListDecoder, 'JsonTreeListDecoder', classMeta, AbstractJsonTreeDecoder); setMetadataFor(JsonPrimitiveDecoder, 'JsonPrimitiveDecoder', classMeta, AbstractJsonTreeDecoder); setMetadataFor(JsonTreeMapDecoder, 'JsonTreeMapDecoder', classMeta, JsonTreeDecoder); setMetadataFor(WriteMode, 'WriteMode', classMeta, Enum); setMetadataFor(AbstractJsonLexer, 'AbstractJsonLexer', classMeta); setMetadataFor(CharMappings, 'CharMappings', objectMeta); setMetadataFor(StringJsonLexer, 'StringJsonLexer', classMeta, AbstractJsonLexer); setMetadataFor(DynamicPrimitiveEncoder, 'DynamicPrimitiveEncoder', classMeta, AbstractEncoder, [AbstractEncoder, JsonEncoder]); setMetadataFor(NoOutputMark, 'NoOutputMark', objectMeta); setMetadataFor(Node, 'Node', classMeta); setMetadataFor(WriteMode_0, 'WriteMode', classMeta, Enum); setMetadataFor(DynamicObjectEncoder, 'DynamicObjectEncoder', classMeta, AbstractEncoder, [AbstractEncoder, JsonEncoder]); setMetadataFor(JsonToStringWriter, 'JsonToStringWriter', classMeta, VOID, VOID, JsonToStringWriter); //endregion function Default() { Default_instance = this; Json.call(this, new JsonConfiguration(), EmptySerializersModule()); } var Default_instance; function Default_getInstance() { if (Default_instance == null) new Default(); return Default_instance; } function Json(configuration, serializersModule) { Default_getInstance(); this.v4p_1 = configuration; this.w4p_1 = serializersModule; this.x4p_1 = new DescriptorSchemaCache(); } protoOf(Json).d46 = function () { return this.w4p_1; }; protoOf(Json).b46 = function (serializer, value) { var result = new JsonToStringWriter(); try { encodeByWriter(this, result, serializer, value); return result.toString(); }finally { result.az(); } }; protoOf(Json).c46 = function (deserializer, string) { var lexer = new StringJsonLexer(string); var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.a45(), null); var result = input.r48(deserializer); lexer.m4q(); return result; }; protoOf(Json).y4p = function (deserializer, element) { return readJson(this, element, deserializer); }; function Json_0(from, builderAction) { from = from === VOID ? Default_getInstance() : from; var builder = new JsonBuilder(from); builderAction(builder); var conf = builder.f3(); return new JsonImpl(conf, builder.c4r_1); } function JsonBuilder(json) { this.n4q_1 = json.v4p_1.d4r_1; this.o4q_1 = json.v4p_1.i4r_1; this.p4q_1 = json.v4p_1.e4r_1; this.q4q_1 = json.v4p_1.f4r_1; this.r4q_1 = json.v4p_1.g4r_1; this.s4q_1 = json.v4p_1.h4r_1; this.t4q_1 = json.v4p_1.j4r_1; this.u4q_1 = json.v4p_1.k4r_1; this.v4q_1 = json.v4p_1.l4r_1; this.w4q_1 = json.v4p_1.m4r_1; this.x4q_1 = json.v4p_1.n4r_1; this.y4q_1 = json.v4p_1.o4r_1; this.z4q_1 = json.v4p_1.p4r_1; this.a4r_1 = json.v4p_1.q4r_1; this.b4r_1 = json.v4p_1.r4r_1; this.c4r_1 = json.d46(); } protoOf(JsonBuilder).f3 = function () { if (this.v4q_1) { // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call if (!(this.w4q_1 === 'type')) { // Inline function 'kotlinx.serialization.json.JsonBuilder.build.' call var message = 'Class discriminator should not be specified when array polymorphism is specified'; throw IllegalArgumentException_init_$Create$(toString(message)); } } if (!this.s4q_1) { // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call if (!(this.t4q_1 === ' ')) { // Inline function 'kotlinx.serialization.json.JsonBuilder.build.' call var message_0 = 'Indent should not be specified when default printing mode is used'; throw IllegalArgumentException_init_$Create$(toString(message_0)); } } else if (!(this.t4q_1 === ' ')) { var tmp$ret$3; $l$block: { // Inline function 'kotlin.text.all' call var indexedObject = this.t4q_1; var inductionVariable = 0; while (inductionVariable < charSequenceLength(indexedObject)) { var element = charSequenceGet(indexedObject, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlinx.serialization.json.JsonBuilder.build.' call if (!(((element === _Char___init__impl__6a9atx(32) ? true : element === _Char___init__impl__6a9atx(9)) ? true : element === _Char___init__impl__6a9atx(13)) ? true : element === _Char___init__impl__6a9atx(10))) { tmp$ret$3 = false; break $l$block; } } tmp$ret$3 = true; } var allWhitespaces = tmp$ret$3; // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call if (!allWhitespaces) { // Inline function 'kotlinx.serialization.json.JsonBuilder.build.' call var message_1 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.t4q_1; throw IllegalArgumentException_init_$Create$(toString(message_1)); } } return new JsonConfiguration(this.n4q_1, this.p4q_1, this.q4q_1, this.r4q_1, this.s4q_1, this.o4q_1, this.t4q_1, this.u4q_1, this.v4q_1, this.w4q_1, this.x4q_1, this.y4q_1, this.z4q_1, this.a4r_1, this.b4r_1); }; function validateConfiguration($this) { if (equals($this.d46(), EmptySerializersModule())) return Unit_instance; var collector = new PolymorphismValidator($this.v4p_1.l4r_1, $this.v4p_1.m4r_1); $this.d46().x4o(collector); } function JsonImpl(configuration, module_0) { Json.call(this, configuration, module_0); validateConfiguration(this); } function JsonClassDiscriminator() { } function JsonNames() { } function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy, decodeEnumsCaseInsensitive, allowTrailingComma) { encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults; ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys; isLenient = isLenient === VOID ? false : isLenient; allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys; prettyPrint = prettyPrint === VOID ? false : prettyPrint; explicitNulls = explicitNulls === VOID ? true : explicitNulls; prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent; coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues; useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism; classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator; allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues; useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames; namingStrategy = namingStrategy === VOID ? null : namingStrategy; decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive; allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma; this.d4r_1 = encodeDefaults; this.e4r_1 = ignoreUnknownKeys; this.f4r_1 = isLenient; this.g4r_1 = allowStructuredMapKeys; this.h4r_1 = prettyPrint; this.i4r_1 = explicitNulls; this.j4r_1 = prettyPrintIndent; this.k4r_1 = coerceInputValues; this.l4r_1 = useArrayPolymorphism; this.m4r_1 = classDiscriminator; this.n4r_1 = allowSpecialFloatingPointValues; this.o4r_1 = useAlternativeNames; this.p4r_1 = namingStrategy; this.q4r_1 = decodeEnumsCaseInsensitive; this.r4r_1 = allowTrailingComma; } protoOf(JsonConfiguration).toString = function () { return 'JsonConfiguration(encodeDefaults=' + this.d4r_1 + ', ignoreUnknownKeys=' + this.e4r_1 + ', isLenient=' + this.f4r_1 + ', ' + ('allowStructuredMapKeys=' + this.g4r_1 + ', prettyPrint=' + this.h4r_1 + ', explicitNulls=' + this.i4r_1 + ', ') + ("prettyPrintIndent='" + this.j4r_1 + "', coerceInputValues=" + this.k4r_1 + ', useArrayPolymorphism=' + this.l4r_1 + ', ') + ("classDiscriminator='" + this.m4r_1 + "', allowSpecialFloatingPointValues=" + this.n4r_1 + ', useAlternativeNames=' + this.o4r_1 + ', ') + ('namingStrategy=' + this.p4r_1 + ', decodeEnumsCaseInsensitive=' + this.q4r_1 + ', allowTrailingComma=' + this.r4r_1 + ')'); }; function throwSubtypeNotRegistered($this, subClass, baseClass) { var tmp0_elvis_lhs = subClass.f7(); var subClassName = tmp0_elvis_lhs == null ? '' + subClass : tmp0_elvis_lhs; var scope = "in the scope of '" + baseClass.f7() + "'"; throw SerializationException_init_$Create$("Class '" + subClassName + "' is not registered for polymorphic serialization " + scope + '.\n' + "Mark the base class as 'sealed' or register the serializer explicitly."); } function JsonContentPolymorphicSerializer(baseClass) { this.s4r_1 = baseClass; this.t4r_1 = buildSerialDescriptor('JsonContentPolymorphicSerializer<' + this.s4r_1.f7() + '>', SEALED_getInstance(), []); } protoOf(JsonContentPolymorphicSerializer).a45 = function () { return this.t4r_1; }; protoOf(JsonContentPolymorphicSerializer).q45 = function (encoder, value) { var tmp0_elvis_lhs = encoder.d46().s4a(this.s4r_1, value); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? serializerOrNull(getKClassFromExpression(value)) : tmp0_elvis_lhs; var tmp; if (tmp1_elvis_lhs == null) { throwSubtypeNotRegistered(this, getKClassFromExpression(value), this.s4r_1); } else { tmp = tmp1_elvis_lhs; } var actualSerializer = tmp; (isInterface(actualSerializer, KSerializer) ? actualSerializer : THROW_CCE()).b45(encoder, value); }; protoOf(JsonContentPolymorphicSerializer).b45 = function (encoder, value) { return this.q45(encoder, !(value == null) ? value : THROW_CCE()); }; protoOf(JsonContentPolymorphicSerializer).c45 = function (decoder) { var input = asJsonDecoder(decoder); var tree = input.u4r(); var tmp = this.v4r(tree); var actualSerializer = isInterface(tmp, KSerializer) ? tmp : THROW_CCE(); return input.w4r().y4p(actualSerializer, tree); }; function JsonDecoder() { } function get_jsonUnquotedLiteralDescriptor() { _init_properties_JsonElement_kt__7cbdc2(); return jsonUnquotedLiteralDescriptor; } var jsonUnquotedLiteralDescriptor; function Companion() { } protoOf(Companion).x4r = function () { return JsonElementSerializer_getInstance(); }; var Companion_instance_0; function Companion_getInstance_4() { return Companion_instance_0; } function JsonElement() { } function Companion_0() { } var Companion_instance_1; function Companion_getInstance_5() { return Companion_instance_1; } function JsonPrimitive() { JsonElement.call(this); } protoOf(JsonPrimitive).toString = function () { return this.q3b(); }; function Companion_1() { } var Companion_instance_2; function Companion_getInstance_6() { return Companion_instance_2; } function JsonObject$toString$lambda(_name_for_destructuring_parameter_0__wldtmu) { // Inline function 'kotlin.collections.component1' call var k = _name_for_destructuring_parameter_0__wldtmu.s2(); // Inline function 'kotlin.collections.component2' call var v = _name_for_destructuring_parameter_0__wldtmu.t2(); // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlinx.serialization.json.JsonObject.toString..' call printQuoted(this_0, k); this_0.z5(_Char___init__impl__6a9atx(58)); this_0.x5(v); return this_0.toString(); } function JsonObject(content) { JsonElement.call(this); this.z4r_1 = content; } protoOf(JsonObject).q2 = function () { return this.z4r_1.q2(); }; protoOf(JsonObject).o2 = function () { return this.z4r_1.o2(); }; protoOf(JsonObject).u = function () { return this.z4r_1.u(); }; protoOf(JsonObject).p2 = function () { return this.z4r_1.p2(); }; protoOf(JsonObject).w2m = function (key) { return this.z4r_1.r(key); }; protoOf(JsonObject).r = function (key) { if (!(!(key == null) ? typeof key === 'string' : false)) return false; return this.w2m((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE()); }; protoOf(JsonObject).ca = function (key) { return this.z4r_1.q(key); }; protoOf(JsonObject).q = function (key) { if (!(!(key == null) ? typeof key === 'string' : false)) return null; return this.ca((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE()); }; protoOf(JsonObject).d1 = function () { return this.z4r_1.d1(); }; protoOf(JsonObject).equals = function (other) { return equals(this.z4r_1, other); }; protoOf(JsonObject).hashCode = function () { return hashCode(this.z4r_1); }; protoOf(JsonObject).toString = function () { var tmp = this.z4r_1.q2(); return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda); }; function get_jsonPrimitive(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonPrimitive ? _this__u8e3s4 : null; var tmp; if (tmp0_elvis_lhs == null) { error(_this__u8e3s4, 'JsonPrimitive'); } else { tmp = tmp0_elvis_lhs; } return tmp; } function get_intOrNull(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); // Inline function 'kotlinx.serialization.json.mapExceptionsToNull' call var tmp; try { // Inline function 'kotlinx.serialization.json..' call tmp = (new StringJsonLexer(_this__u8e3s4.q3b())).a4s(); } catch ($p) { var tmp_0; if ($p instanceof JsonDecodingException) { var e = $p; tmp_0 = null; } else { throw $p; } tmp = tmp_0; } var tmp0_elvis_lhs = tmp; var tmp_1; if (tmp0_elvis_lhs == null) { return null; } else { tmp_1 = tmp0_elvis_lhs; } var result = tmp_1; // Inline function 'kotlin.ranges.contains' call var this_0 = numberRangeToNumber(IntCompanionObject_instance.MIN_VALUE, IntCompanionObject_instance.MAX_VALUE); if (!contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), result)) return null; return result.nb(); } function get_jsonObject(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonObject ? _this__u8e3s4 : null; var tmp; if (tmp0_elvis_lhs == null) { error(_this__u8e3s4, 'JsonObject'); } else { tmp = tmp0_elvis_lhs; } return tmp; } function _get_$cachedSerializer__te6jhj($this) { return $this.c4s_1.t2(); } function JsonNull$_anonymous__enib48() { return JsonNullSerializer_getInstance(); } function JsonNull() { JsonNull_instance = this; JsonPrimitive.call(this); this.b4s_1 = 'null'; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.c4s_1 = lazy(tmp_0, JsonNull$_anonymous__enib48); } protoOf(JsonNull).y4r = function () { return false; }; protoOf(JsonNull).q3b = function () { return this.b4s_1; }; protoOf(JsonNull).x4r = function () { return _get_$cachedSerializer__te6jhj(this); }; protoOf(JsonNull).f4h = function (typeParamsSerializers) { return this.x4r(); }; var JsonNull_instance; function JsonNull_getInstance() { if (JsonNull_instance == null) new JsonNull(); return JsonNull_instance; } function JsonPrimitive_0(value) { _init_properties_JsonElement_kt__7cbdc2(); if (value == null) return JsonNull_getInstance(); return new JsonLiteral(value, false); } function Companion_2() { } var Companion_instance_3; function Companion_getInstance_7() { return Companion_instance_3; } function JsonArray(content) { JsonElement.call(this); this.d4s_1 = content; } protoOf(JsonArray).u = function () { return this.d4s_1.u(); }; protoOf(JsonArray).e4s = function (element) { return this.d4s_1.b1(element); }; protoOf(JsonArray).b1 = function (element) { if (!(element instanceof JsonElement)) return false; return this.e4s(element instanceof JsonElement ? element : THROW_CCE()); }; protoOf(JsonArray).f4s = function (elements) { return this.d4s_1.c1(elements); }; protoOf(JsonArray).c1 = function (elements) { return this.f4s(elements); }; protoOf(JsonArray).v = function (index) { return this.d4s_1.v(index); }; protoOf(JsonArray).g4s = function (element) { return this.d4s_1.x(element); }; protoOf(JsonArray).x = function (element) { if (!(element instanceof JsonElement)) return -1; return this.g4s(element instanceof JsonElement ? element : THROW_CCE()); }; protoOf(JsonArray).d1 = function () { return this.d4s_1.d1(); }; protoOf(JsonArray).w = function () { return this.d4s_1.w(); }; protoOf(JsonArray).y = function () { return this.d4s_1.y(); }; protoOf(JsonArray).z = function (index) { return this.d4s_1.z(index); }; protoOf(JsonArray).a1 = function (fromIndex, toIndex) { return this.d4s_1.a1(fromIndex, toIndex); }; protoOf(JsonArray).equals = function (other) { return equals(this.d4s_1, other); }; protoOf(JsonArray).hashCode = function () { return hashCode(this.d4s_1); }; protoOf(JsonArray).toString = function () { return joinToString(this.d4s_1, ',', '[', ']'); }; function error(_this__u8e3s4, element) { _init_properties_JsonElement_kt__7cbdc2(); throw IllegalArgumentException_init_$Create$('Element ' + getKClassFromExpression(_this__u8e3s4) + ' is not a ' + element); } function JsonLiteral(body, isString, coerceToInlineType) { coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType; JsonPrimitive.call(this); this.h4s_1 = isString; this.i4s_1 = coerceToInlineType; this.j4s_1 = toString(body); if (!(this.i4s_1 == null)) { // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call if (!this.i4s_1.r46()) { // Inline function 'kotlin.require.' call var message = 'Failed requirement.'; throw IllegalArgumentException_init_$Create$(toString(message)); } } } protoOf(JsonLiteral).y4r = function () { return this.h4s_1; }; protoOf(JsonLiteral).q3b = function () { return this.j4s_1; }; protoOf(JsonLiteral).toString = function () { var tmp; if (this.h4s_1) { // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlinx.serialization.json.JsonLiteral.toString.' call printQuoted(this_0, this.j4s_1); tmp = this_0.toString(); } else { tmp = this.j4s_1; } return tmp; }; protoOf(JsonLiteral).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof JsonLiteral)) THROW_CCE(); if (!(this.h4s_1 === other.h4s_1)) return false; if (!(this.j4s_1 === other.j4s_1)) return false; return true; }; protoOf(JsonLiteral).hashCode = function () { var result = getBooleanHashCode(this.h4s_1); result = imul(31, result) + getStringHashCode(this.j4s_1) | 0; return result; }; function JsonPrimitive_1(value) { _init_properties_JsonElement_kt__7cbdc2(); if (value == null) return JsonNull_getInstance(); return new JsonLiteral(value, false); } function JsonPrimitive_2(value) { _init_properties_JsonElement_kt__7cbdc2(); if (value == null) return JsonNull_getInstance(); return new JsonLiteral(value, true); } function get_booleanOrNull(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); return toBooleanStrictOrNull_0(_this__u8e3s4.q3b()); } function get_int(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); // Inline function 'kotlinx.serialization.json.mapExceptions' call var tmp; try { // Inline function 'kotlinx.serialization.json..' call tmp = (new StringJsonLexer(_this__u8e3s4.q3b())).a4s(); } catch ($p) { var tmp_0; if ($p instanceof JsonDecodingException) { var e = $p; throw NumberFormatException_init_$Create$(e.message); } else { throw $p; } } var result = tmp; // Inline function 'kotlin.ranges.contains' call var this_0 = numberRangeToNumber(IntCompanionObject_instance.MIN_VALUE, IntCompanionObject_instance.MAX_VALUE); if (!contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), result)) throw NumberFormatException_init_$Create$(_this__u8e3s4.q3b() + ' is not an Int'); return result.nb(); } function get_long(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); // Inline function 'kotlinx.serialization.json.mapExceptions' call var tmp; try { // Inline function 'kotlinx.serialization.json..' call tmp = (new StringJsonLexer(_this__u8e3s4.q3b())).a4s(); } catch ($p) { var tmp_0; if ($p instanceof JsonDecodingException) { var e = $p; throw NumberFormatException_init_$Create$(e.message); } else { throw $p; } } return tmp; } function get_float(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); // Inline function 'kotlin.text.toFloat' call var this_0 = _this__u8e3s4.q3b(); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return toDouble(this_0); } function get_double(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); return toDouble(_this__u8e3s4.q3b()); } function get_contentOrNull(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); var tmp; if (_this__u8e3s4 instanceof JsonNull) { tmp = null; } else { tmp = _this__u8e3s4.q3b(); } return tmp; } function get_boolean(_this__u8e3s4) { _init_properties_JsonElement_kt__7cbdc2(); var tmp0_elvis_lhs = toBooleanStrictOrNull_0(_this__u8e3s4.q3b()); var tmp; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$('' + _this__u8e3s4 + ' does not represent a Boolean'); } else { tmp = tmp0_elvis_lhs; } return tmp; } var properties_initialized_JsonElement_kt_abxy8s; function _init_properties_JsonElement_kt__7cbdc2() { if (!properties_initialized_JsonElement_kt_abxy8s) { properties_initialized_JsonElement_kt_abxy8s = true; jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_instance)); } } function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) { $this$buildSerialDescriptor.l45('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda)); $this$buildSerialDescriptor.l45('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0)); $this$buildSerialDescriptor.l45('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1)); $this$buildSerialDescriptor.l45('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2)); $this$buildSerialDescriptor.l45('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3)); return Unit_instance; } function JsonElementSerializer$descriptor$lambda$lambda() { return JsonPrimitiveSerializer_getInstance().k4s_1; } function JsonElementSerializer$descriptor$lambda$lambda_0() { return JsonNullSerializer_getInstance().l4s_1; } function JsonElementSerializer$descriptor$lambda$lambda_1() { return JsonLiteralSerializer_getInstance().m4s_1; } function JsonElementSerializer$descriptor$lambda$lambda_2() { return JsonObjectSerializer_getInstance().n4s_1; } function JsonElementSerializer$descriptor$lambda$lambda_3() { return JsonArraySerializer_getInstance().o4s_1; } function JsonElementSerializer() { JsonElementSerializer_instance = this; var tmp = this; var tmp_0 = SEALED_getInstance(); tmp.p4s_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda); } protoOf(JsonElementSerializer).a45 = function () { return this.p4s_1; }; protoOf(JsonElementSerializer).q4s = function (encoder, value) { verify(encoder); if (value instanceof JsonPrimitive) { encoder.j4a(JsonPrimitiveSerializer_getInstance(), value); } else { if (value instanceof JsonObject) { encoder.j4a(JsonObjectSerializer_getInstance(), value); } else { if (value instanceof JsonArray) { encoder.j4a(JsonArraySerializer_getInstance(), value); } } } }; protoOf(JsonElementSerializer).b45 = function (encoder, value) { return this.q4s(encoder, value instanceof JsonElement ? value : THROW_CCE()); }; protoOf(JsonElementSerializer).c45 = function (decoder) { var input = asJsonDecoder(decoder); return input.u4r(); }; var JsonElementSerializer_instance; function JsonElementSerializer_getInstance() { if (JsonElementSerializer_instance == null) new JsonElementSerializer(); return JsonElementSerializer_instance; } function JsonPrimitiveSerializer() { JsonPrimitiveSerializer_instance = this; this.k4s_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []); } protoOf(JsonPrimitiveSerializer).a45 = function () { return this.k4s_1; }; protoOf(JsonPrimitiveSerializer).r4s = function (encoder, value) { verify(encoder); var tmp; if (value instanceof JsonNull) { encoder.j4a(JsonNullSerializer_getInstance(), JsonNull_getInstance()); tmp = Unit_instance; } else { var tmp_0 = JsonLiteralSerializer_getInstance(); encoder.j4a(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE()); tmp = Unit_instance; } return tmp; }; protoOf(JsonPrimitiveSerializer).b45 = function (encoder, value) { return this.r4s(encoder, value instanceof JsonPrimitive ? value : THROW_CCE()); }; protoOf(JsonPrimitiveSerializer).c45 = function (decoder) { var result = asJsonDecoder(decoder).u4r(); if (!(result instanceof JsonPrimitive)) throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + getKClassFromExpression(result), toString(result)); return result; }; var JsonPrimitiveSerializer_instance; function JsonPrimitiveSerializer_getInstance() { if (JsonPrimitiveSerializer_instance == null) new JsonPrimitiveSerializer(); return JsonPrimitiveSerializer_instance; } function JsonObjectDescriptor() { JsonObjectDescriptor_instance = this; this.s4s_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).a45(); this.t4s_1 = 'kotlinx.serialization.json.JsonObject'; } protoOf(JsonObjectDescriptor).p46 = function () { return this.s4s_1.p46(); }; protoOf(JsonObjectDescriptor).q46 = function () { return this.s4s_1.q46(); }; protoOf(JsonObjectDescriptor).r46 = function () { return this.s4s_1.r46(); }; protoOf(JsonObjectDescriptor).l46 = function () { return this.s4s_1.l46(); }; protoOf(JsonObjectDescriptor).s46 = function () { return this.s4s_1.s46(); }; protoOf(JsonObjectDescriptor).t46 = function (index) { return this.s4s_1.t46(index); }; protoOf(JsonObjectDescriptor).u46 = function (index) { return this.s4s_1.u46(index); }; protoOf(JsonObjectDescriptor).v46 = function (name) { return this.s4s_1.v46(name); }; protoOf(JsonObjectDescriptor).w46 = function (index) { return this.s4s_1.w46(index); }; protoOf(JsonObjectDescriptor).x46 = function (index) { return this.s4s_1.x46(index); }; protoOf(JsonObjectDescriptor).a46 = function () { return this.t4s_1; }; var JsonObjectDescriptor_instance; function JsonObjectDescriptor_getInstance() { if (JsonObjectDescriptor_instance == null) new JsonObjectDescriptor(); return JsonObjectDescriptor_instance; } function JsonObjectSerializer() { JsonObjectSerializer_instance = this; this.n4s_1 = JsonObjectDescriptor_getInstance(); } protoOf(JsonObjectSerializer).a45 = function () { return this.n4s_1; }; protoOf(JsonObjectSerializer).u4s = function (encoder, value) { verify(encoder); MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).b45(encoder, value); }; protoOf(JsonObjectSerializer).b45 = function (encoder, value) { return this.u4s(encoder, value instanceof JsonObject ? value : THROW_CCE()); }; protoOf(JsonObjectSerializer).c45 = function (decoder) { verify_0(decoder); return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).c45(decoder)); }; var JsonObjectSerializer_instance; function JsonObjectSerializer_getInstance() { if (JsonObjectSerializer_instance == null) new JsonObjectSerializer(); return JsonObjectSerializer_instance; } function JsonNullSerializer() { JsonNullSerializer_instance = this; this.l4s_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []); } protoOf(JsonNullSerializer).a45 = function () { return this.l4s_1; }; protoOf(JsonNullSerializer).v4s = function (encoder, value) { verify(encoder); encoder.m49(); }; protoOf(JsonNullSerializer).b45 = function (encoder, value) { return this.v4s(encoder, value instanceof JsonNull ? value : THROW_CCE()); }; protoOf(JsonNullSerializer).c45 = function (decoder) { verify_0(decoder); if (decoder.d48()) { throw new JsonDecodingException("Expected 'null' literal"); } decoder.e48(); return JsonNull_getInstance(); }; var JsonNullSerializer_instance; function JsonNullSerializer_getInstance() { if (JsonNullSerializer_instance == null) new JsonNullSerializer(); return JsonNullSerializer_instance; } function JsonArrayDescriptor() { JsonArrayDescriptor_instance = this; this.w4s_1 = ListSerializer(JsonElementSerializer_getInstance()).a45(); this.x4s_1 = 'kotlinx.serialization.json.JsonArray'; } protoOf(JsonArrayDescriptor).p46 = function () { return this.w4s_1.p46(); }; protoOf(JsonArrayDescriptor).q46 = function () { return this.w4s_1.q46(); }; protoOf(JsonArrayDescriptor).r46 = function () { return this.w4s_1.r46(); }; protoOf(JsonArrayDescriptor).l46 = function () { return this.w4s_1.l46(); }; protoOf(JsonArrayDescriptor).s46 = function () { return this.w4s_1.s46(); }; protoOf(JsonArrayDescriptor).t46 = function (index) { return this.w4s_1.t46(index); }; protoOf(JsonArrayDescriptor).u46 = function (index) { return this.w4s_1.u46(index); }; protoOf(JsonArrayDescriptor).v46 = function (name) { return this.w4s_1.v46(name); }; protoOf(JsonArrayDescriptor).w46 = function (index) { return this.w4s_1.w46(index); }; protoOf(JsonArrayDescriptor).x46 = function (index) { return this.w4s_1.x46(index); }; protoOf(JsonArrayDescriptor).a46 = function () { return this.x4s_1; }; var JsonArrayDescriptor_instance; function JsonArrayDescriptor_getInstance() { if (JsonArrayDescriptor_instance == null) new JsonArrayDescriptor(); return JsonArrayDescriptor_instance; } function JsonArraySerializer() { JsonArraySerializer_instance = this; this.o4s_1 = JsonArrayDescriptor_getInstance(); } protoOf(JsonArraySerializer).a45 = function () { return this.o4s_1; }; protoOf(JsonArraySerializer).y4s = function (encoder, value) { verify(encoder); ListSerializer(JsonElementSerializer_getInstance()).b45(encoder, value); }; protoOf(JsonArraySerializer).b45 = function (encoder, value) { return this.y4s(encoder, value instanceof JsonArray ? value : THROW_CCE()); }; protoOf(JsonArraySerializer).c45 = function (decoder) { verify_0(decoder); return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).c45(decoder)); }; var JsonArraySerializer_instance; function JsonArraySerializer_getInstance() { if (JsonArraySerializer_instance == null) new JsonArraySerializer(); return JsonArraySerializer_instance; } function asJsonDecoder(_this__u8e3s4) { var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonDecoder) ? _this__u8e3s4 : null; var tmp; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Decoder to be JsonDecoder, got ' + getKClassFromExpression(_this__u8e3s4))); } else { tmp = tmp0_elvis_lhs; } return tmp; } function defer(deferred) { return new defer$1(deferred); } function JsonLiteralSerializer() { JsonLiteralSerializer_instance = this; this.m4s_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance()); } protoOf(JsonLiteralSerializer).a45 = function () { return this.m4s_1; }; protoOf(JsonLiteralSerializer).z4s = function (encoder, value) { verify(encoder); if (value.h4s_1) { return encoder.v49(value.j4s_1); } if (!(value.i4s_1 == null)) { return encoder.x49(value.i4s_1).v49(value.j4s_1); } var tmp0_safe_receiver = toLongOrNull(value.j4s_1); if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return encoder.r49(tmp0_safe_receiver); } var tmp1_safe_receiver = toULongOrNull(value.j4s_1); var tmp = tmp1_safe_receiver; if ((tmp == null ? null : new ULong(tmp)) == null) null; else { // Inline function 'kotlin.let' call var tmp_0 = tmp1_safe_receiver; // Inline function 'kotlin.contracts.contract' call var it = (tmp_0 == null ? null : new ULong(tmp_0)).fp_1; var tmp_1 = encoder.x49(serializer_0(Companion_getInstance()).a45()); // Inline function 'kotlin.ULong.toLong' call var tmp$ret$1 = _ULong___get_data__impl__fggpzb(it); tmp_1.r49(tmp$ret$1); return Unit_instance; } var tmp2_safe_receiver = toDoubleOrNull(value.j4s_1); if (tmp2_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return encoder.t49(tmp2_safe_receiver); } var tmp3_safe_receiver = toBooleanStrictOrNull(value.j4s_1); if (tmp3_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return encoder.n49(tmp3_safe_receiver); } encoder.v49(value.j4s_1); }; protoOf(JsonLiteralSerializer).b45 = function (encoder, value) { return this.z4s(encoder, value instanceof JsonLiteral ? value : THROW_CCE()); }; protoOf(JsonLiteralSerializer).c45 = function (decoder) { var result = asJsonDecoder(decoder).u4r(); if (!(result instanceof JsonLiteral)) throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + getKClassFromExpression(result), toString(result)); return result; }; var JsonLiteralSerializer_instance; function JsonLiteralSerializer_getInstance() { if (JsonLiteralSerializer_instance == null) new JsonLiteralSerializer(); return JsonLiteralSerializer_instance; } function verify(encoder) { asJsonEncoder(encoder); } function verify_0(decoder) { asJsonDecoder(decoder); } function asJsonEncoder(_this__u8e3s4) { var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonEncoder) ? _this__u8e3s4 : null; var tmp; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Encoder to be JsonEncoder, got ' + getKClassFromExpression(_this__u8e3s4))); } else { tmp = tmp0_elvis_lhs; } return tmp; } function _get_original__l7ku1m($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.a4t_1; original$factory(); return this_0.t2(); } function defer$1($deferred) { this.a4t_1 = lazy_0($deferred); } protoOf(defer$1).a46 = function () { return _get_original__l7ku1m(this).a46(); }; protoOf(defer$1).s46 = function () { return _get_original__l7ku1m(this).s46(); }; protoOf(defer$1).q46 = function () { return _get_original__l7ku1m(this).q46(); }; protoOf(defer$1).w46 = function (index) { return _get_original__l7ku1m(this).w46(index); }; protoOf(defer$1).v46 = function (name) { return _get_original__l7ku1m(this).v46(name); }; protoOf(defer$1).t46 = function (index) { return _get_original__l7ku1m(this).t46(index); }; protoOf(defer$1).u46 = function (index) { return _get_original__l7ku1m(this).u46(index); }; protoOf(defer$1).x46 = function (index) { return _get_original__l7ku1m(this).x46(index); }; function original$factory() { return getPropertyCallableRef('original', 1, KProperty1, function (receiver) { return _get_original__l7ku1m(receiver); }, null); } function JsonEncoder() { } function Composer(writer) { this.c4t_1 = writer; this.d4t_1 = true; } protoOf(Composer).e4t = function () { this.d4t_1 = true; }; protoOf(Composer).f4t = function () { return Unit_instance; }; protoOf(Composer).g4t = function () { this.d4t_1 = false; }; protoOf(Composer).h4t = function () { return Unit_instance; }; protoOf(Composer).i4t = function (v) { return this.c4t_1.j4t(v); }; protoOf(Composer).k4t = function (v) { return this.c4t_1.l4t(v); }; protoOf(Composer).m4t = function (v) { return this.c4t_1.l4t(v.toString()); }; protoOf(Composer).n4t = function (v) { return this.c4t_1.l4t(v.toString()); }; protoOf(Composer).o4t = function (v) { return this.c4t_1.p4t(toLong(v)); }; protoOf(Composer).q4t = function (v) { return this.c4t_1.p4t(toLong(v)); }; protoOf(Composer).r4t = function (v) { return this.c4t_1.p4t(toLong(v)); }; protoOf(Composer).s4t = function (v) { return this.c4t_1.p4t(v); }; protoOf(Composer).t4t = function (v) { return this.c4t_1.l4t(v.toString()); }; protoOf(Composer).u4t = function (value) { return this.c4t_1.v4t(value); }; function Composer_0(sb, json) { return json.v4p_1.h4r_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb); } function ComposerForUnsignedNumbers(writer, forceQuoting) { Composer.call(this, writer); this.y4t_1 = forceQuoting; } protoOf(ComposerForUnsignedNumbers).r4t = function (v) { if (this.y4t_1) { // Inline function 'kotlin.toUInt' call var tmp$ret$0 = _UInt___init__impl__l7qpdl(v); this.u4t(UInt__toString_impl_dbgl21(tmp$ret$0)); } else { // Inline function 'kotlin.toUInt' call var tmp$ret$1 = _UInt___init__impl__l7qpdl(v); this.k4t(UInt__toString_impl_dbgl21(tmp$ret$1)); } }; protoOf(ComposerForUnsignedNumbers).s4t = function (v) { if (this.y4t_1) { // Inline function 'kotlin.toULong' call var tmp$ret$0 = _ULong___init__impl__c78o9k(v); this.u4t(ULong__toString_impl_f9au7k(tmp$ret$0)); } else { // Inline function 'kotlin.toULong' call var tmp$ret$1 = _ULong___init__impl__c78o9k(v); this.k4t(ULong__toString_impl_f9au7k(tmp$ret$1)); } }; protoOf(ComposerForUnsignedNumbers).o4t = function (v) { if (this.y4t_1) { // Inline function 'kotlin.toUByte' call var tmp$ret$0 = _UByte___init__impl__g9hnc4(v); this.u4t(UByte__toString_impl_v72jg(tmp$ret$0)); } else { // Inline function 'kotlin.toUByte' call var tmp$ret$1 = _UByte___init__impl__g9hnc4(v); this.k4t(UByte__toString_impl_v72jg(tmp$ret$1)); } }; protoOf(ComposerForUnsignedNumbers).q4t = function (v) { if (this.y4t_1) { // Inline function 'kotlin.toUShort' call var tmp$ret$0 = _UShort___init__impl__jigrne(v); this.u4t(UShort__toString_impl_edaoee(tmp$ret$0)); } else { // Inline function 'kotlin.toUShort' call var tmp$ret$1 = _UShort___init__impl__jigrne(v); this.k4t(UShort__toString_impl_edaoee(tmp$ret$1)); } }; function ComposerForUnquotedLiterals(writer, forceQuoting) { Composer.call(this, writer); this.b4u_1 = forceQuoting; } protoOf(ComposerForUnquotedLiterals).u4t = function (value) { if (this.b4u_1) { protoOf(Composer).u4t.call(this, value); } else { protoOf(Composer).k4t.call(this, value); } }; function ComposerWithPrettyPrint(writer, json) { Composer.call(this, writer); this.e4u_1 = json; this.f4u_1 = 0; } protoOf(ComposerWithPrettyPrint).e4t = function () { this.d4t_1 = true; this.f4u_1 = this.f4u_1 + 1 | 0; }; protoOf(ComposerWithPrettyPrint).f4t = function () { this.f4u_1 = this.f4u_1 - 1 | 0; }; protoOf(ComposerWithPrettyPrint).g4t = function () { this.d4t_1 = false; this.k4t('\n'); // Inline function 'kotlin.repeat' call var times = this.f4u_1; // Inline function 'kotlin.contracts.contract' call var inductionVariable = 0; if (inductionVariable < times) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlinx.serialization.json.internal.ComposerWithPrettyPrint.nextItem.' call this.k4t(this.e4u_1.v4p_1.j4r_1); } while (inductionVariable < times); }; protoOf(ComposerWithPrettyPrint).h4t = function () { this.i4t(_Char___init__impl__6a9atx(32)); }; function readIfAbsent($this, descriptor, index) { $this.h4u_1 = !descriptor.x46(index) ? descriptor.u46(index).l46() : false; return $this.h4u_1; } function JsonElementMarker$readIfAbsent$ref($boundThis) { var l = function (p0, p1) { return readIfAbsent($boundThis, p0, p1); }; l.callableName = 'readIfAbsent'; return l; } function JsonElementMarker(descriptor) { var tmp = this; tmp.g4u_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this)); this.h4u_1 = false; } protoOf(JsonElementMarker).v4e = function (index) { this.g4u_1.v4e(index); }; protoOf(JsonElementMarker).w4e = function () { return this.g4u_1.w4e(); }; function JsonDecodingException(message) { JsonException.call(this, message); captureStack(this, JsonDecodingException); } function JsonDecodingException_0(offset, message, input) { return JsonDecodingException_1(offset, message + '\nJSON input: ' + minify(input, offset)); } function invalidTrailingComma(_this__u8e3s4, entity) { entity = entity === VOID ? 'object' : entity; _this__u8e3s4.i4u('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.i4q_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingCommas = true' in 'Json {}' builder to support them."); } function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) { _this__u8e3s4.j4u('Unexpected special floating-point value ' + toString(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, get_specialFlowingValuesHint()); } function JsonEncodingException(message) { JsonException.call(this, message); captureStack(this, JsonEncodingException); } function InvalidKeyKindException(keyDescriptor) { return new JsonEncodingException("Value of type '" + keyDescriptor.a46() + "' 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.s46() + "'.\n") + get_allowStructuredMapKeysHint()); } function InvalidFloatingPointDecoded(value, key, output) { return JsonDecodingException_1(-1, unexpectedFpErrorMessage(value, key, output)); } function JsonDecodingException_1(offset, message) { return new JsonDecodingException(offset >= 0 ? 'Unexpected JSON token at offset ' + offset + ': ' + message : message); } function UnknownKeyException(key, input) { return JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "'.\n" + (get_ignoreUnknownKeysHint() + '\n') + ('Current input: ' + minify(input))); } function JsonException(message) { SerializationException_init_$Init$(message, this); captureStack(this, JsonException); } function minify(_this__u8e3s4, offset) { offset = offset === VOID ? -1 : offset; if (charSequenceLength(_this__u8e3s4) < 200) return _this__u8e3s4; if (offset === -1) { var start = charSequenceLength(_this__u8e3s4) - 60 | 0; if (start <= 0) return _this__u8e3s4; // Inline function 'kotlin.text.substring' call var endIndex = charSequenceLength(_this__u8e3s4); return '.....' + toString(charSequenceSubSequence(_this__u8e3s4, start, endIndex)); } var start_0 = offset - 30 | 0; var end = offset + 30 | 0; var prefix = start_0 <= 0 ? '' : '.....'; var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....'; // Inline function 'kotlin.text.substring' call var startIndex = coerceAtLeast(start_0, 0); var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4)); return prefix + toString(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex_0)) + suffix; } function unexpectedFpErrorMessage(value, key, output) { 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. ' + (get_specialFlowingValuesHint() + '\n') + ('Current output: ' + minify(output)); } function InvalidFloatingPointEncoded(value, output) { return new JsonEncodingException('Unexpected special floating-point value ' + toString(value) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + (get_specialFlowingValuesHint() + '\n') + ('Current output: ' + minify(output))); } function get_JsonDeserializationNamesKey() { _init_properties_JsonNamesMap_kt__cbbp0k(); return JsonDeserializationNamesKey; } var JsonDeserializationNamesKey; function get_JsonSerializationNamesKey() { _init_properties_JsonNamesMap_kt__cbbp0k(); return JsonSerializationNamesKey; } var JsonSerializationNamesKey; function getJsonNameIndex(_this__u8e3s4, json, name) { _init_properties_JsonNamesMap_kt__cbbp0k(); if (decodeCaseInsensitive(json, _this__u8e3s4)) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$1 = name.toLowerCase(); return getJsonNameIndexSlowPath(_this__u8e3s4, json, tmp$ret$1); } var strategy = namingStrategy(_this__u8e3s4, json); if (!(strategy == null)) return getJsonNameIndexSlowPath(_this__u8e3s4, json, name); var index = _this__u8e3s4.v46(name); if (!(index === -3)) return index; if (!json.v4p_1.o4r_1) return index; return getJsonNameIndexSlowPath(_this__u8e3s4, json, name); } function getJsonNameIndexOrThrow(_this__u8e3s4, json, name, suffix) { suffix = suffix === VOID ? '' : suffix; _init_properties_JsonNamesMap_kt__cbbp0k(); var index = getJsonNameIndex(_this__u8e3s4, json, name); if (index === -3) throw SerializationException_init_$Create$(_this__u8e3s4.a46() + " does not contain element with name '" + name + "'" + suffix); return index; } function getJsonElementName(_this__u8e3s4, json, index) { _init_properties_JsonNamesMap_kt__cbbp0k(); var strategy = namingStrategy(_this__u8e3s4, json); return strategy == null ? _this__u8e3s4.w46(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index]; } function namingStrategy(_this__u8e3s4, json) { _init_properties_JsonNamesMap_kt__cbbp0k(); return equals(_this__u8e3s4.s46(), CLASS_getInstance()) ? json.v4p_1.p4r_1 : null; } function deserializationNamesMap(_this__u8e3s4, descriptor) { _init_properties_JsonNamesMap_kt__cbbp0k(); var tmp = get_schemaCache(_this__u8e3s4); var tmp_0 = get_JsonDeserializationNamesKey(); return tmp.l4u(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4)); } function decodeCaseInsensitive(_this__u8e3s4, descriptor) { _init_properties_JsonNamesMap_kt__cbbp0k(); return _this__u8e3s4.v4p_1.q4r_1 ? equals(descriptor.s46(), ENUM_getInstance()) : false; } function getJsonNameIndexSlowPath(_this__u8e3s4, json, name) { _init_properties_JsonNamesMap_kt__cbbp0k(); var tmp0_elvis_lhs = deserializationNamesMap(json, _this__u8e3s4).q(name); var tmp; if (tmp0_elvis_lhs == null) { tmp = -3; } else { tmp = tmp0_elvis_lhs; } return tmp; } function serializationNamesIndices(_this__u8e3s4, json, strategy) { _init_properties_JsonNamesMap_kt__cbbp0k(); var tmp = get_schemaCache(json); var tmp_0 = get_JsonSerializationNamesKey(); return tmp.l4u(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy)); } function buildDeserializationNamesMap(_this__u8e3s4, json) { _init_properties_JsonNamesMap_kt__cbbp0k(); // Inline function 'kotlin.collections.mutableMapOf' call var builder = LinkedHashMap_init_$Create$(); var useLowercaseEnums = decodeCaseInsensitive(json, _this__u8e3s4); var strategyForClasses = namingStrategy(_this__u8e3s4, json); var inductionVariable = 0; var last = _this__u8e3s4.q46(); if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.collections.filterIsInstance' call // Inline function 'kotlin.collections.filterIsInstanceTo' call var this_0 = _this__u8e3s4.t46(i); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element instanceof JsonNames) { destination.j1(element); } } var tmp1_safe_receiver = singleOrNull(destination); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m4u_1; if (tmp2_safe_receiver == null) null; else { // Inline function 'kotlin.collections.forEach' call var inductionVariable_0 = 0; var last_0 = tmp2_safe_receiver.length; while (inductionVariable_0 < last_0) { var element_0 = tmp2_safe_receiver[inductionVariable_0]; inductionVariable_0 = inductionVariable_0 + 1 | 0; // Inline function 'kotlinx.serialization.json.internal.buildDeserializationNamesMap.' call var tmp; if (useLowercaseEnums) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call tmp = element_0.toLowerCase(); } else { tmp = element_0; } buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, tmp, i); } } var tmp_0; if (useLowercaseEnums) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call tmp_0 = _this__u8e3s4.w46(i).toLowerCase(); } else if (!(strategyForClasses == null)) { tmp_0 = strategyForClasses.n4u(_this__u8e3s4, i, _this__u8e3s4.w46(i)); } else { tmp_0 = null; } var nameToPut = tmp_0; if (nameToPut == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, nameToPut, i); } } while (inductionVariable < last); // Inline function 'kotlin.collections.ifEmpty' call var tmp_1; if (builder.d1()) { // Inline function 'kotlinx.serialization.json.internal.buildDeserializationNamesMap.' call tmp_1 = emptyMap(); } else { tmp_1 = builder; } return tmp_1; } function buildDeserializationNamesMap$putOrThrow(_this__u8e3s4, $this_buildDeserializationNamesMap, name, index) { var entity = equals($this_buildDeserializationNamesMap.s46(), ENUM_getInstance()) ? 'enum value' : 'property'; // Inline function 'kotlin.collections.contains' call // Inline function 'kotlin.collections.containsKey' call if ((isInterface(_this__u8e3s4, Map) ? _this__u8e3s4 : THROW_CCE()).r(name)) { throw new JsonException("The suggested name '" + name + "' for " + entity + ' ' + $this_buildDeserializationNamesMap.w46(index) + ' is already one of the names for ' + entity + ' ' + ($this_buildDeserializationNamesMap.w46(getValue(_this__u8e3s4, name)) + ' in ' + $this_buildDeserializationNamesMap)); } // Inline function 'kotlin.collections.set' call _this__u8e3s4.s(name, index); } function deserializationNamesMap$lambda($descriptor, $this_deserializationNamesMap) { return function () { return buildDeserializationNamesMap($descriptor, $this_deserializationNamesMap); }; } function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) { return function () { var tmp = 0; var tmp_0 = $this_serializationNamesIndices.q46(); // Inline function 'kotlin.arrayOfNulls' call var tmp_1 = fillArrayVal(Array(tmp_0), null); while (tmp < tmp_0) { var tmp_2 = tmp; var baseName = $this_serializationNamesIndices.w46(tmp_2); tmp_1[tmp_2] = $strategy.n4u($this_serializationNamesIndices, tmp_2, baseName); tmp = tmp + 1 | 0; } return tmp_1; }; } var properties_initialized_JsonNamesMap_kt_ljpf42; function _init_properties_JsonNamesMap_kt__cbbp0k() { if (!properties_initialized_JsonNamesMap_kt_ljpf42) { properties_initialized_JsonNamesMap_kt_ljpf42 = true; JsonDeserializationNamesKey = new Key(); JsonSerializationNamesKey = new Key(); } } function Tombstone() { } var Tombstone_instance; function Tombstone_getInstance() { return Tombstone_instance; } function resize($this) { var newSize = imul($this.q4u_1, 2); $this.o4u_1 = copyOf($this.o4u_1, newSize); $this.p4u_1 = copyOf_0($this.p4u_1, newSize); } function JsonPath() { var tmp = this; // Inline function 'kotlin.arrayOfNulls' call tmp.o4u_1 = fillArrayVal(Array(8), null); var tmp_0 = this; var tmp_1 = 0; var tmp_2 = new Int32Array(8); while (tmp_1 < 8) { tmp_2[tmp_1] = -1; tmp_1 = tmp_1 + 1 | 0; } tmp_0.p4u_1 = tmp_2; this.q4u_1 = -1; } protoOf(JsonPath).r4u = function (sd) { this.q4u_1 = this.q4u_1 + 1 | 0; var depth = this.q4u_1; if (depth === this.o4u_1.length) { resize(this); } this.o4u_1[depth] = sd; }; protoOf(JsonPath).s4u = function (index) { this.p4u_1[this.q4u_1] = index; }; protoOf(JsonPath).t4u = function (key) { var tmp; if (!(this.p4u_1[this.q4u_1] === -2)) { this.q4u_1 = this.q4u_1 + 1 | 0; tmp = this.q4u_1 === this.o4u_1.length; } else { tmp = false; } if (tmp) { resize(this); } this.o4u_1[this.q4u_1] = key; this.p4u_1[this.q4u_1] = -2; }; protoOf(JsonPath).u4u = function () { if (this.p4u_1[this.q4u_1] === -2) { this.o4u_1[this.q4u_1] = Tombstone_instance; } }; protoOf(JsonPath).v4u = function () { var depth = this.q4u_1; if (this.p4u_1[depth] === -2) { this.p4u_1[depth] = -1; this.q4u_1 = this.q4u_1 - 1 | 0; } if (!(this.q4u_1 === -1)) { this.q4u_1 = this.q4u_1 - 1 | 0; } }; protoOf(JsonPath).w4u = function () { // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath.' call this_0.y5('$'); // Inline function 'kotlin.repeat' call var times = this.q4u_1 + 1 | 0; // Inline function 'kotlin.contracts.contract' call var inductionVariable = 0; if (inductionVariable < times) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath..' call var element = this.o4u_1[index]; if (!(element == null) ? isInterface(element, SerialDescriptor) : false) { if (equals(element.s46(), LIST_getInstance())) { if (!(this.p4u_1[index] === -1)) { this_0.y5('['); this_0.v8(this.p4u_1[index]); this_0.y5(']'); } } else { var idx = this.p4u_1[index]; if (idx >= 0) { this_0.y5('.'); this_0.y5(element.w46(idx)); } } } else { if (!(element === Tombstone_instance)) { this_0.y5('['); this_0.y5("'"); this_0.x5(element); this_0.y5("'"); this_0.y5(']'); } } } while (inductionVariable < times); return this_0.toString(); }; protoOf(JsonPath).toString = function () { return this.w4u(); }; function encodeByWriter(json, writer, serializer, value) { var tmp = WriteMode_OBJ_getInstance(); // Inline function 'kotlin.arrayOfNulls' call var size = get_entries().u(); var tmp$ret$0 = fillArrayVal(Array(size), null); var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0); encoder.j4a(serializer, value); } function readObject($this) { // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call var lastToken = $this.f4v_1.j4v(get_TC_BEGIN_OBJ()); if ($this.f4v_1.k4v() === get_TC_COMMA()) { $this.f4v_1.j4u('Unexpected leading comma'); } // Inline function 'kotlin.collections.linkedMapOf' call var result = LinkedHashMap_init_$Create$(); $l$loop: while ($this.f4v_1.l4v()) { var key = $this.g4v_1 ? $this.f4v_1.n4v() : $this.f4v_1.m4v(); $this.f4v_1.j4v(get_TC_COLON()); // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObject.' call var element = $this.o4v(); // Inline function 'kotlin.collections.set' call result.s(key, element); lastToken = $this.f4v_1.p4v(); var tmp0_subject = lastToken; if (tmp0_subject !== get_TC_COMMA()) if (tmp0_subject === get_TC_END_OBJ()) break $l$loop; else { $this.f4v_1.j4u('Expected end of the object or comma'); } } if (lastToken === get_TC_BEGIN_OBJ()) { $this.f4v_1.j4v(get_TC_END_OBJ()); } else if (lastToken === get_TC_COMMA()) { if (!$this.h4v_1) { invalidTrailingComma($this.f4v_1); } $this.f4v_1.j4v(get_TC_END_OBJ()); } return new JsonObject(result); } function readObject_0(_this__u8e3s4, $this, $completion) { var tmp = new $readObjectCOROUTINE$0($this, _this__u8e3s4, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); } function readArray($this) { var lastToken = $this.f4v_1.p4v(); if ($this.f4v_1.k4v() === get_TC_COMMA()) { $this.f4v_1.j4u('Unexpected leading comma'); } // Inline function 'kotlin.collections.arrayListOf' call var result = ArrayList_init_$Create$(); while ($this.f4v_1.l4v()) { var element = $this.o4v(); result.j1(element); lastToken = $this.f4v_1.p4v(); if (!(lastToken === get_TC_COMMA())) { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call var this_0 = $this.f4v_1; var condition = lastToken === get_TC_END_LIST(); var position = this_0.i4q_1; if (!condition) { // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readArray.' call var tmp$ret$1 = 'Expected end of the array or comma'; this_0.j4u(tmp$ret$1, position); } } } if (lastToken === get_TC_BEGIN_LIST()) { $this.f4v_1.j4v(get_TC_END_LIST()); } else if (lastToken === get_TC_COMMA()) { if (!$this.h4v_1) { invalidTrailingComma($this.f4v_1, 'array'); } $this.f4v_1.j4v(get_TC_END_LIST()); } return new JsonArray(result); } function readValue($this, isString) { var tmp; if ($this.g4v_1 ? true : !isString) { tmp = $this.f4v_1.n4v(); } else { tmp = $this.f4v_1.m4v(); } var string = tmp; if (!isString ? string === get_NULL() : false) return JsonNull_getInstance(); return new JsonLiteral(string, isString); } function readDeepRecursive($this) { return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance); } function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) { this.m4w_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(JsonTreeReader$readDeepRecursive$slambda).r4w = function ($this$$receiver, it, $completion) { var tmp = this.s4w($this$$receiver, it, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(JsonTreeReader$readDeepRecursive$slambda).en = function (p1, p2, $completion) { var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE(); return this.r4w(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion); }; protoOf(JsonTreeReader$readDeepRecursive$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 3; this.p4w_1 = this.m4w_1.f4v_1.k4v(); if (this.p4w_1 === get_TC_STRING()) { this.q4w_1 = readValue(this.m4w_1, true); this.ld_1 = 2; continue $sm; } else { if (this.p4w_1 === get_TC_OTHER()) { this.q4w_1 = readValue(this.m4w_1, false); this.ld_1 = 2; continue $sm; } else { if (this.p4w_1 === get_TC_BEGIN_OBJ()) { this.ld_1 = 1; suspendResult = readObject_0(this.n4w_1, this.m4w_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.p4w_1 === get_TC_BEGIN_LIST()) { this.q4w_1 = readArray(this.m4w_1); this.ld_1 = 2; continue $sm; } else { var tmp_0 = this; this.m4w_1.f4v_1.j4u("Can't begin reading element, unexpected token"); } } } } break; case 1: this.q4w_1 = suspendResult; this.ld_1 = 2; continue $sm; case 2: return this.q4w_1; case 3: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 3) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(JsonTreeReader$readDeepRecursive$slambda).s4w = function ($this$$receiver, it, completion) { var i = new JsonTreeReader$readDeepRecursive$slambda(this.m4w_1, completion); i.n4w_1 = $this$$receiver; i.o4w_1 = it; return i; }; function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) { var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation); var l = function ($this$$receiver, it, $completion) { return i.r4w($this$$receiver, it, $completion); }; l.$arity = 2; return l; } function $readObjectCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.y4v_1 = _this__u8e3s4; this.z4v_1 = _this__u8e3s4_0; } protoOf($readObjectCOROUTINE$0).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; var tmp_0 = this; tmp_0.a4w_1 = this.y4v_1; this.b4w_1 = this.a4w_1.f4v_1.j4v(get_TC_BEGIN_OBJ()); if (this.a4w_1.f4v_1.k4v() === get_TC_COMMA()) { this.a4w_1.f4v_1.j4u('Unexpected leading comma'); } var tmp_1 = this; tmp_1.c4w_1 = LinkedHashMap_init_$Create$(); this.ld_1 = 1; continue $sm; case 1: if (!this.a4w_1.f4v_1.l4v()) { this.ld_1 = 4; continue $sm; } this.d4w_1 = this.a4w_1.g4v_1 ? this.a4w_1.f4v_1.n4v() : this.a4w_1.f4v_1.m4v(); this.a4w_1.f4v_1.j4v(get_TC_COLON()); this.ld_1 = 2; suspendResult = this.z4v_1.wm(Unit_instance, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var element = suspendResult; var this_0 = this.c4w_1; var key = this.d4w_1; this_0.s(key, element); this.b4w_1 = this.a4w_1.f4v_1.p4v(); var tmp0_subject = this.b4w_1; if (tmp0_subject === get_TC_COMMA()) { this.ld_1 = 3; continue $sm; } else { if (tmp0_subject === get_TC_END_OBJ()) { this.ld_1 = 4; continue $sm; } else { this.a4w_1.f4v_1.j4u('Expected end of the object or comma'); } } break; case 3: this.ld_1 = 1; continue $sm; case 4: if (this.b4w_1 === get_TC_BEGIN_OBJ()) { this.a4w_1.f4v_1.j4v(get_TC_END_OBJ()); } else if (this.b4w_1 === get_TC_COMMA()) { if (!this.a4w_1.h4v_1) { invalidTrailingComma(this.a4w_1.f4v_1); } this.a4w_1.f4v_1.j4v(get_TC_END_OBJ()); } return new JsonObject(this.c4w_1); case 5: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 5) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function JsonTreeReader(configuration, lexer) { this.f4v_1 = lexer; this.g4v_1 = configuration.f4r_1; this.h4v_1 = configuration.r4r_1; this.i4v_1 = 0; } protoOf(JsonTreeReader).o4v = function () { var token = this.f4v_1.k4v(); var tmp; if (token === get_TC_STRING()) { tmp = readValue(this, true); } else if (token === get_TC_OTHER()) { tmp = readValue(this, false); } else if (token === get_TC_BEGIN_OBJ()) { var tmp_0; this.i4v_1 = this.i4v_1 + 1 | 0; if (this.i4v_1 === 200) { tmp_0 = readDeepRecursive(this); } else { tmp_0 = readObject(this); } var result = tmp_0; this.i4v_1 = this.i4v_1 - 1 | 0; tmp = result; } else if (token === get_TC_BEGIN_LIST()) { tmp = readArray(this); } else { this.f4v_1.j4u('Cannot read Json element because of unexpected ' + tokenDescription(token)); } return tmp; }; function classDiscriminator(_this__u8e3s4, json) { var tmp0_iterator = _this__u8e3s4.p46().w(); while (tmp0_iterator.f()) { var annotation = tmp0_iterator.e(); if (annotation instanceof JsonClassDiscriminator) return annotation.t4w_1; } return json.v4p_1.m4r_1; } function decodeSerializableValuePolymorphic(_this__u8e3s4, deserializer) { var tmp; if (!(deserializer instanceof AbstractPolymorphicSerializer)) { tmp = true; } else { tmp = _this__u8e3s4.w4r().v4p_1.l4r_1; } if (tmp) { return deserializer.c45(_this__u8e3s4); } var discriminator = classDiscriminator(deserializer.a45(), _this__u8e3s4.w4r()); // Inline function 'kotlinx.serialization.json.internal.cast' call var value = _this__u8e3s4.u4r(); var descriptor = deserializer.a45(); if (!(value instanceof JsonObject)) { throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.a46() + ', but had ' + getKClassFromExpression(value)); } var jsonTree = value; var tmp0_safe_receiver = jsonTree.ca(discriminator); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver); var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver); var tmp_0; try { tmp_0 = findPolymorphicSerializer(deserializer, _this__u8e3s4, type); } catch ($p) { var tmp_1; if ($p instanceof SerializationException) { var it = $p; throw JsonDecodingException_0(-1, ensureNotNull(it.message), jsonTree.toString()); } else { throw $p; } } var tmp_2 = tmp_0; var actualSerializer = isInterface(tmp_2, DeserializationStrategy) ? tmp_2 : THROW_CCE(); return readPolymorphicJson(_this__u8e3s4.w4r(), discriminator, jsonTree, actualSerializer); } function validateIfSealed(serializer, actualSerializer, classDiscriminator) { if (!(serializer instanceof SealedClassSerializer)) return Unit_instance; if (jsonCachedSerialNames(actualSerializer.a45()).b1(classDiscriminator)) { var baseName = serializer.a45().a46(); var actualName = actualSerializer.a45().a46(); // Inline function 'kotlin.error' call 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'; throw IllegalStateException_init_$Create$(toString(message)); } } function checkKind(kind) { if (kind instanceof ENUM) { // Inline function 'kotlin.error' call var message = "Enums cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead"; throw IllegalStateException_init_$Create$(toString(message)); } if (kind instanceof PrimitiveKind) { // Inline function 'kotlin.error' call var message_0 = "Primitives cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead"; throw IllegalStateException_init_$Create$(toString(message_0)); } if (kind instanceof PolymorphicKind) { // Inline function 'kotlin.error' call var message_1 = 'Actual serializer for polymorphic cannot be polymorphic itself'; throw IllegalStateException_init_$Create$(toString(message_1)); } } function validateIfSealed$accessor$1ad0flx(serializer, actualSerializer, classDiscriminator) { return validateIfSealed(serializer, actualSerializer, classDiscriminator); } function checkKind_0($this, descriptor, actualClass) { var kind = descriptor.s46(); var tmp; if (kind instanceof PolymorphicKind) { tmp = true; } else { tmp = equals(kind, CONTEXTUAL_getInstance()); } if (tmp) { throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.f7() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind + ' is not concrete. To work with multiple hierarchies, register it as a base class.')); } if ($this.u4w_1) return Unit_instance; var tmp_0; var tmp_1; if (equals(kind, LIST_getInstance()) ? true : equals(kind, MAP_getInstance())) { tmp_1 = true; } else { tmp_1 = kind instanceof PrimitiveKind; } if (tmp_1) { tmp_0 = true; } else { tmp_0 = kind instanceof ENUM; } if (tmp_0) { throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.f7() + ' of kind ' + kind + ' cannot be serialized polymorphically with class discriminator.'); } } function checkDiscriminatorCollisions($this, descriptor, actualClass) { var inductionVariable = 0; var last = descriptor.q46(); if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var name = descriptor.w46(i); if (name === $this.v4w_1) { throw IllegalArgumentException_init_$Create$('Polymorphic serializer for ' + 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'); } } while (inductionVariable < last); } function PolymorphismValidator(useArrayPolymorphism, discriminator) { this.u4w_1 = useArrayPolymorphism; this.v4w_1 = discriminator; } protoOf(PolymorphismValidator).a4p = function (kClass, provider) { }; protoOf(PolymorphismValidator).d4p = function (baseClass, actualClass, actualSerializer) { var descriptor = actualSerializer.a45(); checkKind_0(this, descriptor, actualClass); if (!this.u4w_1) { checkDiscriminatorCollisions(this, descriptor, actualClass); } }; protoOf(PolymorphismValidator).e4p = function (baseClass, defaultSerializerProvider) { }; protoOf(PolymorphismValidator).f4p = function (baseClass, defaultDeserializerProvider) { }; function Key() { } function DescriptorSchemaCache() { this.k4u_1 = createMapForCache(16); } protoOf(DescriptorSchemaCache).w4w = function (descriptor, key, value) { // Inline function 'kotlin.collections.set' call // Inline function 'kotlin.collections.getOrPut' call var this_0 = this.k4u_1; var value_0 = this_0.q(descriptor); var tmp; if (value_0 == null) { // Inline function 'kotlinx.serialization.json.internal.DescriptorSchemaCache.set.' call var answer = createMapForCache(2); this_0.s(descriptor, answer); tmp = answer; } else { tmp = value_0; } var this_1 = tmp; var key_0 = key instanceof Key ? key : THROW_CCE(); var value_1 = !(value == null) ? value : THROW_CCE(); this_1.s(key_0, value_1); }; protoOf(DescriptorSchemaCache).l4u = function (descriptor, key, defaultValue) { var tmp0_safe_receiver = this.x4w(descriptor, key); if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return tmp0_safe_receiver; } var value = defaultValue(); this.w4w(descriptor, key, value); return value; }; protoOf(DescriptorSchemaCache).x4w = function (descriptor, key) { var tmp0_safe_receiver = this.k4u_1.q(descriptor); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = tmp0_safe_receiver.q(key instanceof Key ? key : THROW_CCE()); } var tmp_0 = tmp; return !(tmp_0 == null) ? tmp_0 : null; }; function DiscriminatorHolder(discriminatorToSkip) { this.y4w_1 = discriminatorToSkip; } function trySkip(_this__u8e3s4, $this, unknownKey) { if (_this__u8e3s4 == null) return false; if (_this__u8e3s4.y4w_1 === unknownKey) { _this__u8e3s4.y4w_1 = null; return true; } return false; } function skipLeftoverElements($this, descriptor) { $l$loop: while (true) { var tmp = $this.i49(descriptor); if (!!(tmp === -1)) { break $l$loop; } } } function checkLeadingComma($this) { if ($this.c4q_1.k4v() === get_TC_COMMA()) { $this.c4q_1.j4u('Unexpected leading comma'); } } function decodeMapIndex($this) { var hasComma = false; var decodingKey = !(($this.e4q_1 % 2 | 0) === 0); if (decodingKey) { if (!($this.e4q_1 === -1)) { hasComma = $this.c4q_1.a4x(); } } else { $this.c4q_1.z4w(get_COLON()); } var tmp; if ($this.c4q_1.l4v()) { if (decodingKey) { if ($this.e4q_1 === -1) { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call var this_0 = $this.c4q_1; var condition = !hasComma; var position = this_0.i4q_1; if (!condition) { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.' call var tmp$ret$0 = 'Unexpected leading comma'; this_0.j4u(tmp$ret$0, position); } } else { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call var this_1 = $this.c4q_1; var condition_0 = hasComma; var position_0 = this_1.i4q_1; if (!condition_0) { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.' call var tmp$ret$1 = 'Expected comma after the key-value pair'; this_1.j4u(tmp$ret$1, position_0); } } } $this.e4q_1 = $this.e4q_1 + 1 | 0; tmp = $this.e4q_1; } else { if (hasComma ? !$this.a4q_1.v4p_1.r4r_1 : false) { invalidTrailingComma($this.c4q_1); } tmp = -1; } return tmp; } function coerceInputValue($this, descriptor, index) { var tmp$ret$1; $l$block_2: { // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call var this_0 = $this.a4q_1; var elementDescriptor = descriptor.u46(index); var tmp; if (!elementDescriptor.l46()) { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.' call tmp = $this.c4q_1.b4x(true); } else { tmp = false; } if (tmp) { tmp$ret$1 = true; break $l$block_2; } if (equals(elementDescriptor.s46(), ENUM_getInstance())) { var tmp_0; if (elementDescriptor.l46()) { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.' call tmp_0 = $this.c4q_1.b4x(false); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$1 = false; break $l$block_2; } // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.' call var tmp0_elvis_lhs = $this.c4q_1.c4x($this.g4q_1.f4r_1); var tmp_1; if (tmp0_elvis_lhs == null) { tmp$ret$1 = false; break $l$block_2; } else { tmp_1 = tmp0_elvis_lhs; } var enumValue = tmp_1; var enumIndex = getJsonNameIndex(elementDescriptor, this_0, enumValue); if (enumIndex === -3) { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.' call $this.c4q_1.m4v(); tmp$ret$1 = true; break $l$block_2; } } tmp$ret$1 = false; } return tmp$ret$1; } function decodeObjectIndex($this, descriptor) { var hasComma = $this.c4q_1.a4x(); while ($this.c4q_1.l4v()) { hasComma = false; var key = decodeStringKey($this); $this.c4q_1.z4w(get_COLON()); var index = getJsonNameIndex(descriptor, $this.a4q_1, key); var tmp; if (!(index === -3)) { var tmp_0; if ($this.g4q_1.k4r_1 ? coerceInputValue($this, descriptor, index) : false) { hasComma = $this.c4q_1.a4x(); tmp_0 = false; } else { var tmp0_safe_receiver = $this.h4q_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.v4e(index); } return index; } tmp = tmp_0; } else { tmp = true; } var isUnknown = tmp; if (isUnknown) { hasComma = handleUnknown($this, key); } } if (hasComma ? !$this.a4q_1.v4p_1.r4r_1 : false) { invalidTrailingComma($this.c4q_1); } var tmp1_safe_receiver = $this.h4q_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w4e(); var tmp_1; if (tmp2_elvis_lhs == null) { tmp_1 = -1; } else { tmp_1 = tmp2_elvis_lhs; } return tmp_1; } function handleUnknown($this, key) { if ($this.g4q_1.e4r_1 ? true : trySkip($this.f4q_1, $this, key)) { $this.c4q_1.e4x($this.g4q_1.f4r_1); } else { $this.c4q_1.d4x(key); } return $this.c4q_1.a4x(); } function decodeListIndex($this) { var hasComma = $this.c4q_1.a4x(); var tmp; if ($this.c4q_1.l4v()) { if (!($this.e4q_1 === -1) ? !hasComma : false) { $this.c4q_1.j4u('Expected end of the array or comma'); } $this.e4q_1 = $this.e4q_1 + 1 | 0; tmp = $this.e4q_1; } else { if (hasComma ? !$this.a4q_1.v4p_1.r4r_1 : false) { invalidTrailingComma($this.c4q_1, 'array'); } tmp = -1; } return tmp; } function decodeStringKey($this) { var tmp; if ($this.g4q_1.f4r_1) { tmp = $this.c4q_1.g4x(); } else { tmp = $this.c4q_1.f4x(); } return tmp; } function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) { AbstractDecoder.call(this); this.a4q_1 = json; this.b4q_1 = mode; this.c4q_1 = lexer; this.d4q_1 = this.a4q_1.d46(); this.e4q_1 = -1; this.f4q_1 = discriminatorHolder; this.g4q_1 = this.a4q_1.v4p_1; this.h4q_1 = this.g4q_1.i4r_1 ? null : new JsonElementMarker(descriptor); } protoOf(StreamingJsonDecoder).w4r = function () { return this.a4q_1; }; protoOf(StreamingJsonDecoder).d46 = function () { return this.d4q_1; }; protoOf(StreamingJsonDecoder).u4r = function () { return (new JsonTreeReader(this.a4q_1.v4p_1, this.c4q_1)).o4v(); }; protoOf(StreamingJsonDecoder).r48 = function (deserializer) { try { var tmp; if (!(deserializer instanceof AbstractPolymorphicSerializer)) { tmp = true; } else { tmp = this.a4q_1.v4p_1.l4r_1; } if (tmp) { return deserializer.c45(this); } var discriminator = classDiscriminator(deserializer.a45(), this.a4q_1); var tmp0_elvis_lhs = this.c4q_1.h4x(discriminator, this.g4q_1.f4r_1); var tmp_0; if (tmp0_elvis_lhs == null) { return decodeSerializableValuePolymorphic(this, isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE()); } else { tmp_0 = tmp0_elvis_lhs; } var type = tmp_0; var tmp_1; try { tmp_1 = findPolymorphicSerializer(deserializer, this, type); } catch ($p) { var tmp_2; if ($p instanceof SerializationException) { var it = $p; var message = removeSuffix(substringBefore(ensureNotNull(it.message), _Char___init__impl__6a9atx(10)), '.'); var hint = substringAfter(ensureNotNull(it.message), _Char___init__impl__6a9atx(10), ''); this.c4q_1.j4u(message, VOID, hint); } else { throw $p; } tmp_1 = tmp_2; } var tmp_3 = tmp_1; var actualSerializer = isInterface(tmp_3, DeserializationStrategy) ? tmp_3 : THROW_CCE(); this.f4q_1 = new DiscriminatorHolder(discriminator); return actualSerializer.c45(this); } catch ($p) { if ($p instanceof MissingFieldException) { var e = $p; if (contains_0(ensureNotNull(e.message), 'at path')) throw e; throw new MissingFieldException(e.g46_1, plus(e.message, ' at path: ') + this.c4q_1.j4q_1.w4u(), e); } else { throw $p; } } }; protoOf(StreamingJsonDecoder).s48 = function (descriptor) { var newMode = switchMode(this.a4q_1, descriptor); this.c4q_1.j4q_1.r4u(descriptor); this.c4q_1.z4w(newMode.k4x_1); checkLeadingComma(this); var tmp; switch (newMode.ab_1) { case 1: case 2: case 3: tmp = new StreamingJsonDecoder(this.a4q_1, newMode, this.c4q_1, descriptor, this.f4q_1); break; default: var tmp_0; if (this.b4q_1.equals(newMode) ? this.a4q_1.v4p_1.i4r_1 : false) { tmp_0 = this; } else { tmp_0 = new StreamingJsonDecoder(this.a4q_1, newMode, this.c4q_1, descriptor, this.f4q_1); } tmp = tmp_0; break; } return tmp; }; protoOf(StreamingJsonDecoder).t48 = function (descriptor) { if (this.a4q_1.v4p_1.e4r_1 ? descriptor.q46() === 0 : false) { skipLeftoverElements(this, descriptor); } if (this.c4q_1.a4x() ? !this.a4q_1.v4p_1.r4r_1 : false) { invalidTrailingComma(this.c4q_1, ''); } this.c4q_1.z4w(this.b4q_1.l4x_1); this.c4q_1.j4q_1.v4u(); }; protoOf(StreamingJsonDecoder).d48 = function () { var tmp; var tmp0_safe_receiver = this.h4q_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h4u_1; if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) { tmp = !this.c4q_1.m4x(); } else { tmp = false; } return tmp; }; protoOf(StreamingJsonDecoder).e48 = function () { return null; }; protoOf(StreamingJsonDecoder).e49 = function (descriptor, index, deserializer, previousValue) { var isMapKey = this.b4q_1.equals(WriteMode_MAP_getInstance()) ? (index & 1) === 0 : false; if (isMapKey) { this.c4q_1.j4q_1.u4u(); } var value = protoOf(AbstractDecoder).e49.call(this, descriptor, index, deserializer, previousValue); if (isMapKey) { this.c4q_1.j4q_1.t4u(value); } return value; }; protoOf(StreamingJsonDecoder).i49 = function (descriptor) { var index; switch (this.b4q_1.ab_1) { case 0: index = decodeObjectIndex(this, descriptor); break; case 2: index = decodeMapIndex(this); break; default: index = decodeListIndex(this); break; } if (!this.b4q_1.equals(WriteMode_MAP_getInstance())) { this.c4q_1.j4q_1.s4u(index); } return index; }; protoOf(StreamingJsonDecoder).f48 = function () { return this.c4q_1.n4x(); }; protoOf(StreamingJsonDecoder).g48 = function () { var value = this.c4q_1.a4s(); if (!value.equals(toLong(value.bd()))) { this.c4q_1.j4u("Failed to parse byte for input '" + value.toString() + "'"); } return value.bd(); }; protoOf(StreamingJsonDecoder).h48 = function () { var value = this.c4q_1.a4s(); if (!value.equals(toLong(value.cd()))) { this.c4q_1.j4u("Failed to parse short for input '" + value.toString() + "'"); } return value.cd(); }; protoOf(StreamingJsonDecoder).i48 = function () { var value = this.c4q_1.a4s(); if (!value.equals(toLong(value.nb()))) { this.c4q_1.j4u("Failed to parse int for input '" + value.toString() + "'"); } return value.nb(); }; protoOf(StreamingJsonDecoder).j48 = function () { return this.c4q_1.a4s(); }; protoOf(StreamingJsonDecoder).k48 = function () { var tmp$ret$4; $l$block: { // Inline function 'kotlinx.serialization.json.internal.parseString' call var this_0 = this.c4q_1; var input = this_0.n4v(); try { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeFloat.' call // Inline function 'kotlin.text.toFloat' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp$ret$4 = toDouble(input); break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; this_0.j4u("Failed to parse type '" + 'float' + "' for input '" + input + "'"); } else { throw $p; } } } var result = tmp$ret$4; var specialFp = this.a4q_1.v4p_1.n4r_1; if (specialFp ? true : isFinite(result)) return result; throwInvalidFloatingPointDecoded(this.c4q_1, result); }; protoOf(StreamingJsonDecoder).l48 = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.parseString' call var this_0 = this.c4q_1; var input = this_0.n4v(); try { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeDouble.' call tmp$ret$1 = toDouble(input); break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; this_0.j4u("Failed to parse type '" + 'double' + "' for input '" + input + "'"); } else { throw $p; } } } var result = tmp$ret$1; var specialFp = this.a4q_1.v4p_1.n4r_1; if (specialFp ? true : isFinite_0(result)) return result; throwInvalidFloatingPointDecoded(this.c4q_1, result); }; protoOf(StreamingJsonDecoder).m48 = function () { var string = this.c4q_1.n4v(); if (!(string.length === 1)) { this.c4q_1.j4u("Expected single char, but got '" + string + "'"); } return charSequenceGet(string, 0); }; protoOf(StreamingJsonDecoder).n48 = function () { var tmp; if (this.g4q_1.f4r_1) { tmp = this.c4q_1.g4x(); } else { tmp = this.c4q_1.m4v(); } return tmp; }; protoOf(StreamingJsonDecoder).p48 = function (descriptor) { return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.c4q_1, this.a4q_1) : protoOf(AbstractDecoder).p48.call(this, descriptor); }; protoOf(StreamingJsonDecoder).o48 = function (enumDescriptor) { return getJsonNameIndexOrThrow(enumDescriptor, this.a4q_1, this.n48(), ' at path ' + this.c4q_1.j4q_1.w4u()); }; function JsonDecoderForUnsignedTypes(lexer, json) { AbstractDecoder.call(this); this.o4x_1 = lexer; this.p4x_1 = json.d46(); } protoOf(JsonDecoderForUnsignedTypes).d46 = function () { return this.p4x_1; }; protoOf(JsonDecoderForUnsignedTypes).i49 = function (descriptor) { var message = 'unsupported'; throw IllegalStateException_init_$Create$(toString(message)); }; protoOf(JsonDecoderForUnsignedTypes).i48 = function () { var tmp$ret$2; $l$block: { // Inline function 'kotlinx.serialization.json.internal.parseString' call var this_0 = this.o4x_1; var input = this_0.n4v(); try { // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeInt.' call // Inline function 'kotlin.UInt.toInt' call var this_1 = toUInt(input); tmp$ret$2 = _UInt___get_data__impl__f0vqqw(this_1); break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; this_0.j4u("Failed to parse type '" + 'UInt' + "' for input '" + input + "'"); } else { throw $p; } } } return tmp$ret$2; }; protoOf(JsonDecoderForUnsignedTypes).j48 = function () { var tmp$ret$2; $l$block: { // Inline function 'kotlinx.serialization.json.internal.parseString' call var this_0 = this.o4x_1; var input = this_0.n4v(); try { // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeLong.' call // Inline function 'kotlin.ULong.toLong' call var this_1 = toULong(input); tmp$ret$2 = _ULong___get_data__impl__fggpzb(this_1); break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; this_0.j4u("Failed to parse type '" + 'ULong' + "' for input '" + input + "'"); } else { throw $p; } } } return tmp$ret$2; }; protoOf(JsonDecoderForUnsignedTypes).g48 = function () { var tmp$ret$2; $l$block: { // Inline function 'kotlinx.serialization.json.internal.parseString' call var this_0 = this.o4x_1; var input = this_0.n4v(); try { // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeByte.' call // Inline function 'kotlin.UByte.toByte' call var this_1 = toUByte(input); tmp$ret$2 = _UByte___get_data__impl__jof9qr(this_1); break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; this_0.j4u("Failed to parse type '" + 'UByte' + "' for input '" + input + "'"); } else { throw $p; } } } return tmp$ret$2; }; protoOf(JsonDecoderForUnsignedTypes).h48 = function () { var tmp$ret$2; $l$block: { // Inline function 'kotlinx.serialization.json.internal.parseString' call var this_0 = this.o4x_1; var input = this_0.n4v(); try { // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeShort.' call // Inline function 'kotlin.UShort.toShort' call var this_1 = toUShort(input); tmp$ret$2 = _UShort___get_data__impl__g0245(this_1); break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; this_0.j4u("Failed to parse type '" + 'UShort' + "' for input '" + input + "'"); } else { throw $p; } } } return tmp$ret$2; }; function get_unsignedNumberDescriptors() { _init_properties_StreamingJsonEncoder_kt__pn1bsi(); return unsignedNumberDescriptors; } var unsignedNumberDescriptors; function StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, $this) { StreamingJsonEncoder.call($this, Composer_0(output, json), json, mode, modeReuseCache); return $this; } function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache) { return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder))); } function encodeTypeInfo($this, descriptor) { $this.x4u_1.g4t(); $this.v49(ensureNotNull($this.e4v_1)); $this.x4u_1.i4t(get_COLON()); $this.x4u_1.h4t(); $this.v49(descriptor.a46()); } function StreamingJsonEncoder(composer, json, mode, modeReuseCache) { AbstractEncoder.call(this); this.x4u_1 = composer; this.y4u_1 = json; this.z4u_1 = mode; this.a4v_1 = modeReuseCache; this.b4v_1 = this.y4u_1.d46(); this.c4v_1 = this.y4u_1.v4p_1; this.d4v_1 = false; this.e4v_1 = null; var i = this.z4u_1.ab_1; if (!(this.a4v_1 == null)) { if (!(this.a4v_1[i] === null) ? true : !(this.a4v_1[i] === this)) { this.a4v_1[i] = this; } } } protoOf(StreamingJsonEncoder).w4r = function () { return this.y4u_1; }; protoOf(StreamingJsonEncoder).d46 = function () { return this.b4v_1; }; protoOf(StreamingJsonEncoder).b4t = function (element) { this.j4a(JsonElementSerializer_getInstance(), element); }; protoOf(StreamingJsonEncoder).o4a = function (descriptor, index) { return this.c4v_1.d4r_1; }; protoOf(StreamingJsonEncoder).j4a = function (serializer, value) { $l$block: { // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call var tmp; if (!(serializer instanceof AbstractPolymorphicSerializer)) { tmp = true; } else { tmp = this.w4r().v4p_1.l4r_1; } if (tmp) { serializer.b45(this, value); break $l$block; } var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE(); var baseClassDiscriminator = classDiscriminator(serializer.a45(), this.w4r()); var actualSerializer = findPolymorphicSerializer_0(casted, this, !(value == null) ? value : THROW_CCE()); validateIfSealed$accessor$1ad0flx(casted, actualSerializer, baseClassDiscriminator); checkKind(actualSerializer.a45().s46()); // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue.' call this.e4v_1 = baseClassDiscriminator; actualSerializer.b45(this, value); } }; protoOf(StreamingJsonEncoder).s48 = function (descriptor) { var newMode = switchMode(this.y4u_1, descriptor); if (!(newMode.k4x_1 === get_INVALID())) { this.x4u_1.i4t(newMode.k4x_1); this.x4u_1.e4t(); } if (!(this.e4v_1 == null)) { encodeTypeInfo(this, descriptor); this.e4v_1 = null; } if (this.z4u_1.equals(newMode)) { return this; } var tmp0_safe_receiver = this.a4v_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver[newMode.ab_1]; return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.x4u_1, this.y4u_1, newMode, this.a4v_1) : tmp1_elvis_lhs; }; protoOf(StreamingJsonEncoder).t48 = function (descriptor) { if (!(this.z4u_1.l4x_1 === get_INVALID())) { this.x4u_1.f4t(); this.x4u_1.g4t(); this.x4u_1.i4t(this.z4u_1.l4x_1); } }; protoOf(StreamingJsonEncoder).k49 = function (descriptor, index) { switch (this.z4u_1.ab_1) { case 1: if (!this.x4u_1.d4t_1) { this.x4u_1.i4t(get_COMMA()); } this.x4u_1.g4t(); break; case 2: if (!this.x4u_1.d4t_1) { var tmp = this; var tmp_0; if ((index % 2 | 0) === 0) { this.x4u_1.i4t(get_COMMA()); this.x4u_1.g4t(); tmp_0 = true; } else { this.x4u_1.i4t(get_COLON()); this.x4u_1.h4t(); tmp_0 = false; } tmp.d4v_1 = tmp_0; } else { this.d4v_1 = true; this.x4u_1.g4t(); } break; case 3: if (index === 0) this.d4v_1 = true; if (index === 1) { this.x4u_1.i4t(get_COMMA()); this.x4u_1.h4t(); this.d4v_1 = false; } break; default: if (!this.x4u_1.d4t_1) { this.x4u_1.i4t(get_COMMA()); } this.x4u_1.g4t(); this.v49(getJsonElementName(descriptor, this.y4u_1, index)); this.x4u_1.i4t(get_COLON()); this.x4u_1.h4t(); break; } return true; }; protoOf(StreamingJsonEncoder).k4a = function (descriptor, index, serializer, value) { if (!(value == null) ? true : this.c4v_1.i4r_1) { protoOf(AbstractEncoder).k4a.call(this, descriptor, index, serializer, value); } }; protoOf(StreamingJsonEncoder).x49 = function (descriptor) { var tmp; if (get_isUnsignedNumber(descriptor)) { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call var tmp_0; var tmp_1 = this.x4u_1; if (tmp_1 instanceof ComposerForUnsignedNumbers) { tmp_0 = this.x4u_1; } else { tmp_0 = new ComposerForUnsignedNumbers(this.x4u_1.c4t_1, this.d4v_1); } var tmp$ret$1 = tmp_0; tmp = new StreamingJsonEncoder(tmp$ret$1, this.y4u_1, this.z4u_1, null); } else if (get_isUnquotedLiteral(descriptor)) { // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call var tmp_2; var tmp_3 = this.x4u_1; if (tmp_3 instanceof ComposerForUnquotedLiterals) { tmp_2 = this.x4u_1; } else { tmp_2 = new ComposerForUnquotedLiterals(this.x4u_1.c4t_1, this.d4v_1); } var tmp$ret$3 = tmp_2; tmp = new StreamingJsonEncoder(tmp$ret$3, this.y4u_1, this.z4u_1, null); } else { tmp = protoOf(AbstractEncoder).x49.call(this, descriptor); } return tmp; }; protoOf(StreamingJsonEncoder).m49 = function () { this.x4u_1.k4t(get_NULL()); }; protoOf(StreamingJsonEncoder).n49 = function (value) { if (this.d4v_1) { this.v49(value.toString()); } else { this.x4u_1.t4t(value); } }; protoOf(StreamingJsonEncoder).o49 = function (value) { if (this.d4v_1) { this.v49(value.toString()); } else { this.x4u_1.o4t(value); } }; protoOf(StreamingJsonEncoder).p49 = function (value) { if (this.d4v_1) { this.v49(value.toString()); } else { this.x4u_1.q4t(value); } }; protoOf(StreamingJsonEncoder).q49 = function (value) { if (this.d4v_1) { this.v49(value.toString()); } else { this.x4u_1.r4t(value); } }; protoOf(StreamingJsonEncoder).r49 = function (value) { if (this.d4v_1) { this.v49(value.toString()); } else { this.x4u_1.s4t(value); } }; protoOf(StreamingJsonEncoder).s49 = function (value) { if (this.d4v_1) { this.v49(value.toString()); } else { this.x4u_1.m4t(value); } if (!this.c4v_1.n4r_1 ? !isFinite(value) : false) { throw InvalidFloatingPointEncoded(value, toString(this.x4u_1.c4t_1)); } }; protoOf(StreamingJsonEncoder).t49 = function (value) { if (this.d4v_1) { this.v49(value.toString()); } else { this.x4u_1.n4t(value); } if (!this.c4v_1.n4r_1 ? !isFinite_0(value) : false) { throw InvalidFloatingPointEncoded(value, toString(this.x4u_1.c4t_1)); } }; protoOf(StreamingJsonEncoder).u49 = function (value) { this.v49(toString_0(value)); }; protoOf(StreamingJsonEncoder).v49 = function (value) { return this.x4u_1.u4t(value); }; protoOf(StreamingJsonEncoder).w49 = function (enumDescriptor, index) { this.v49(enumDescriptor.w46(index)); }; function get_isUnsignedNumber(_this__u8e3s4) { _init_properties_StreamingJsonEncoder_kt__pn1bsi(); return _this__u8e3s4.r46() ? get_unsignedNumberDescriptors().b1(_this__u8e3s4) : false; } function get_isUnquotedLiteral(_this__u8e3s4) { _init_properties_StreamingJsonEncoder_kt__pn1bsi(); return _this__u8e3s4.r46() ? equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor()) : false; } var properties_initialized_StreamingJsonEncoder_kt_6ifwwk; function _init_properties_StreamingJsonEncoder_kt__pn1bsi() { if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) { properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true; unsignedNumberDescriptors = setOf([serializer_1(Companion_getInstance_0()).a45(), serializer_0(Companion_getInstance()).a45(), serializer_2(Companion_getInstance_1()).a45(), serializer_3(Companion_getInstance_2()).a45()]); } } function get_ESCAPE_STRINGS() { _init_properties_StringOps_kt__fcy1db(); return ESCAPE_STRINGS; } var ESCAPE_STRINGS; var ESCAPE_MARKERS; function toHexChar(i) { _init_properties_StringOps_kt__fcy1db(); var d = i & 15; var tmp; if (d < 10) { // Inline function 'kotlin.code' call var this_0 = _Char___init__impl__6a9atx(48); var tmp$ret$0 = Char__toInt_impl_vasixd(this_0); tmp = numberToChar(d + tmp$ret$0 | 0); } else { var tmp_0 = d - 10 | 0; // Inline function 'kotlin.code' call var this_1 = _Char___init__impl__6a9atx(97); var tmp$ret$1 = Char__toInt_impl_vasixd(this_1); tmp = numberToChar(tmp_0 + tmp$ret$1 | 0); } return tmp; } function printQuoted(_this__u8e3s4, value) { _init_properties_StringOps_kt__fcy1db(); _this__u8e3s4.z5(get_STRING()); var lastPos = 0; var inductionVariable = 0; var last = charSequenceLength(value) - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.code' call var this_0 = charSequenceGet(value, i); var c = Char__toInt_impl_vasixd(this_0); if (c < get_ESCAPE_STRINGS().length ? !(get_ESCAPE_STRINGS()[c] == null) : false) { _this__u8e3s4.s8(value, lastPos, i); _this__u8e3s4.y5(get_ESCAPE_STRINGS()[c]); lastPos = i + 1 | 0; } } while (inductionVariable <= last); if (!(lastPos === 0)) { _this__u8e3s4.s8(value, lastPos, value.length); } else { _this__u8e3s4.y5(value); } _this__u8e3s4.z5(get_STRING()); } function toBooleanStrictOrNull_0(_this__u8e3s4) { _init_properties_StringOps_kt__fcy1db(); return equals_0(_this__u8e3s4, 'true', true) ? true : equals_0(_this__u8e3s4, 'false', true) ? false : null; } var properties_initialized_StringOps_kt_wzaea7; function _init_properties_StringOps_kt__fcy1db() { if (!properties_initialized_StringOps_kt_wzaea7) { properties_initialized_StringOps_kt_wzaea7 = true; // Inline function 'kotlin.apply' call // Inline function 'kotlin.arrayOfNulls' call var this_0 = fillArrayVal(Array(93), null); // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlinx.serialization.json.internal.ESCAPE_STRINGS.' call var inductionVariable = 0; if (inductionVariable <= 31) do { var c = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var c1 = toHexChar(c >> 12); var c2 = toHexChar(c >> 8); var c3 = toHexChar(c >> 4); var c4 = toHexChar(c); this_0[c] = '\\u' + toString_0(c1) + toString_0(c2) + toString_0(c3) + toString_0(c4); } while (inductionVariable <= 31); // Inline function 'kotlin.code' call var this_1 = _Char___init__impl__6a9atx(34); this_0[Char__toInt_impl_vasixd(this_1)] = '\\"'; // Inline function 'kotlin.code' call var this_2 = _Char___init__impl__6a9atx(92); this_0[Char__toInt_impl_vasixd(this_2)] = '\\\\'; // Inline function 'kotlin.code' call var this_3 = _Char___init__impl__6a9atx(9); this_0[Char__toInt_impl_vasixd(this_3)] = '\\t'; // Inline function 'kotlin.code' call var this_4 = _Char___init__impl__6a9atx(8); this_0[Char__toInt_impl_vasixd(this_4)] = '\\b'; // Inline function 'kotlin.code' call var this_5 = _Char___init__impl__6a9atx(10); this_0[Char__toInt_impl_vasixd(this_5)] = '\\n'; // Inline function 'kotlin.code' call var this_6 = _Char___init__impl__6a9atx(13); this_0[Char__toInt_impl_vasixd(this_6)] = '\\r'; this_0[12] = '\\f'; ESCAPE_STRINGS = this_0; // Inline function 'kotlin.apply' call var this_7 = new Int8Array(93); // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlinx.serialization.json.internal.ESCAPE_MARKERS.' call var inductionVariable_0 = 0; if (inductionVariable_0 <= 31) do { var c_0 = inductionVariable_0; inductionVariable_0 = inductionVariable_0 + 1 | 0; this_7[c_0] = 1; } while (inductionVariable_0 <= 31); // Inline function 'kotlin.code' call var this_8 = _Char___init__impl__6a9atx(34); this_7[Char__toInt_impl_vasixd(this_8)] = 34; // Inline function 'kotlin.code' call var this_9 = _Char___init__impl__6a9atx(92); this_7[Char__toInt_impl_vasixd(this_9)] = 92; // Inline function 'kotlin.code' call var this_10 = _Char___init__impl__6a9atx(9); this_7[Char__toInt_impl_vasixd(this_10)] = 116; // Inline function 'kotlin.code' call var this_11 = _Char___init__impl__6a9atx(8); this_7[Char__toInt_impl_vasixd(this_11)] = 98; // Inline function 'kotlin.code' call var this_12 = _Char___init__impl__6a9atx(10); this_7[Char__toInt_impl_vasixd(this_12)] = 110; // Inline function 'kotlin.code' call var this_13 = _Char___init__impl__6a9atx(13); this_7[Char__toInt_impl_vasixd(this_13)] = 114; this_7[12] = 102; ESCAPE_MARKERS = this_7; } } function readJson(json, element, deserializer) { var tmp; if (element instanceof JsonObject) { tmp = new JsonTreeDecoder(json, element); } else { if (element instanceof JsonArray) { tmp = new JsonTreeListDecoder(json, element); } else { var tmp_0; if (element instanceof JsonLiteral) { tmp_0 = true; } else { tmp_0 = equals(element, JsonNull_getInstance()); } if (tmp_0) { tmp = new JsonPrimitiveDecoder(json, element instanceof JsonPrimitive ? element : THROW_CCE()); } else { noWhenBranchMatchedException(); } } } var input = tmp; return input.r48(deserializer); } function unparsedPrimitive($this, primitive) { throw JsonDecodingException_0(-1, "Failed to parse literal as '" + primitive + "' value", toString($this.v4x())); } function asLiteral(_this__u8e3s4, $this, type) { var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonLiteral ? _this__u8e3s4 : null; var tmp; if (tmp0_elvis_lhs == null) { throw JsonDecodingException_1(-1, "Unexpected 'null' literal when non-nullable " + type + ' was expected'); } else { tmp = tmp0_elvis_lhs; } return tmp; } function AbstractJsonTreeDecoder(json, value) { NamedValueDecoder.call(this); this.s4x_1 = json; this.t4x_1 = value; this.u4x_1 = this.w4r().v4p_1; } protoOf(AbstractJsonTreeDecoder).w4r = function () { return this.s4x_1; }; protoOf(AbstractJsonTreeDecoder).t2 = function () { return this.t4x_1; }; protoOf(AbstractJsonTreeDecoder).d46 = function () { return this.w4r().d46(); }; protoOf(AbstractJsonTreeDecoder).v4x = function () { var tmp0_safe_receiver = this.x4m(); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.currentObject.' call tmp = this.w4x(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? this.t2() : tmp1_elvis_lhs; }; protoOf(AbstractJsonTreeDecoder).u4r = function () { return this.v4x(); }; protoOf(AbstractJsonTreeDecoder).r48 = function (deserializer) { return decodeSerializableValuePolymorphic(this, deserializer); }; protoOf(AbstractJsonTreeDecoder).y4m = function (parentName, childName) { return childName; }; protoOf(AbstractJsonTreeDecoder).s48 = function (descriptor) { var currentObject = this.v4x(); var tmp0_subject = descriptor.s46(); var tmp; var tmp_0; if (equals(tmp0_subject, LIST_getInstance())) { tmp_0 = true; } else { tmp_0 = tmp0_subject instanceof PolymorphicKind; } if (tmp_0) { var tmp_1 = this.w4r(); // Inline function 'kotlinx.serialization.json.internal.cast' call if (!(currentObject instanceof JsonArray)) { throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.a46() + ', but had ' + getKClassFromExpression(currentObject)); } tmp = new JsonTreeListDecoder(tmp_1, currentObject); } else { if (equals(tmp0_subject, MAP_getInstance())) { // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call var this_0 = this.w4r(); var keyDescriptor = carrierDescriptor(descriptor.u46(0), this_0.d46()); var keyKind = keyDescriptor.s46(); var tmp_2; var tmp_3; if (keyKind instanceof PrimitiveKind) { tmp_3 = true; } else { tmp_3 = equals(keyKind, ENUM_getInstance()); } if (tmp_3) { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.' call var tmp_4 = this.w4r(); // Inline function 'kotlinx.serialization.json.internal.cast' call if (!(currentObject instanceof JsonObject)) { throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.a46() + ', but had ' + getKClassFromExpression(currentObject)); } tmp_2 = new JsonTreeMapDecoder(tmp_4, currentObject); } else { if (this_0.v4p_1.g4r_1) { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.' call var tmp_5 = this.w4r(); // Inline function 'kotlinx.serialization.json.internal.cast' call if (!(currentObject instanceof JsonArray)) { throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.a46() + ', but had ' + getKClassFromExpression(currentObject)); } tmp_2 = new JsonTreeListDecoder(tmp_5, currentObject); } else { throw InvalidKeyKindException(keyDescriptor); } } tmp = tmp_2; } else { var tmp_6 = this.w4r(); // Inline function 'kotlinx.serialization.json.internal.cast' call if (!(currentObject instanceof JsonObject)) { throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.a46() + ', but had ' + getKClassFromExpression(currentObject)); } tmp = new JsonTreeDecoder(tmp_6, currentObject); } } return tmp; }; protoOf(AbstractJsonTreeDecoder).t48 = function (descriptor) { }; protoOf(AbstractJsonTreeDecoder).d48 = function () { var tmp = this.v4x(); return !(tmp instanceof JsonNull); }; protoOf(AbstractJsonTreeDecoder).x4x = function (tag) { var currentElement = this.w4x(tag); var tmp0_elvis_lhs = currentElement instanceof JsonPrimitive ? currentElement : null; var tmp; if (tmp0_elvis_lhs == null) { throw JsonDecodingException_0(-1, 'Expected JsonPrimitive at ' + tag + ', found ' + currentElement, toString(this.v4x())); } else { tmp = tmp0_elvis_lhs; } return tmp; }; protoOf(AbstractJsonTreeDecoder).y4x = function (tag, enumDescriptor) { return getJsonNameIndexOrThrow(enumDescriptor, this.w4r(), this.x4x(tag).q3b()); }; protoOf(AbstractJsonTreeDecoder).k4n = function (tag, enumDescriptor) { return this.y4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor); }; protoOf(AbstractJsonTreeDecoder).z4x = function (tag) { return !(this.w4x(tag) === JsonNull_getInstance()); }; protoOf(AbstractJsonTreeDecoder).a4n = function (tag) { return this.z4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).a4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { var tmp0_elvis_lhs = get_booleanOrNull(this_0); var tmp; if (tmp0_elvis_lhs == null) { unparsedPrimitive(this, 'boolean'); } else { tmp = tmp0_elvis_lhs; } tmp$ret$1 = tmp; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'boolean'); } else { throw $p; } } } return tmp$ret$1; }; protoOf(AbstractJsonTreeDecoder).b4n = function (tag) { return this.a4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).b4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedByte.' call var result = get_int(this_0); var tmp; var containsLower = ByteCompanionObject_instance.MIN_VALUE; if (result <= ByteCompanionObject_instance.MAX_VALUE ? containsLower <= result : false) { tmp = toByte(result); } else { tmp = null; } var tmp0_elvis_lhs = tmp; var tmp_0; if (tmp0_elvis_lhs == null) { unparsedPrimitive(this, 'byte'); } else { tmp_0 = tmp0_elvis_lhs; } tmp$ret$1 = tmp_0; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'byte'); } else { throw $p; } } } return tmp$ret$1; }; protoOf(AbstractJsonTreeDecoder).c4n = function (tag) { return this.b4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).c4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedShort.' call var result = get_int(this_0); var tmp; var containsLower = ShortCompanionObject_instance.MIN_VALUE; if (result <= ShortCompanionObject_instance.MAX_VALUE ? containsLower <= result : false) { tmp = toShort(result); } else { tmp = null; } var tmp0_elvis_lhs = tmp; var tmp_0; if (tmp0_elvis_lhs == null) { unparsedPrimitive(this, 'short'); } else { tmp_0 = tmp0_elvis_lhs; } tmp$ret$1 = tmp_0; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'short'); } else { throw $p; } } } return tmp$ret$1; }; protoOf(AbstractJsonTreeDecoder).d4n = function (tag) { return this.c4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).d4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedInt.' call var tmp0_elvis_lhs = get_int(this_0); var tmp; if (tmp0_elvis_lhs == null) { unparsedPrimitive(this, 'int'); } else { tmp = tmp0_elvis_lhs; } tmp$ret$1 = tmp; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'int'); } else { throw $p; } } } return tmp$ret$1; }; protoOf(AbstractJsonTreeDecoder).e4n = function (tag) { return this.d4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).e4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedLong.' call var tmp0_elvis_lhs = get_long(this_0); var tmp; if (tmp0_elvis_lhs == null) { unparsedPrimitive(this, 'long'); } else { tmp = tmp0_elvis_lhs; } tmp$ret$1 = tmp; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'long'); } else { throw $p; } } } return tmp$ret$1; }; protoOf(AbstractJsonTreeDecoder).f4n = function (tag) { return this.e4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).f4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedFloat.' call var tmp0_elvis_lhs = get_float(this_0); var tmp; if (tmp0_elvis_lhs == null) { unparsedPrimitive(this, 'float'); } else { tmp = tmp0_elvis_lhs; } tmp$ret$1 = tmp; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'float'); } else { throw $p; } } } var result = tmp$ret$1; var specialFp = this.w4r().v4p_1.n4r_1; if (specialFp ? true : isFinite(result)) return result; throw InvalidFloatingPointDecoded(result, tag, toString(this.v4x())); }; protoOf(AbstractJsonTreeDecoder).g4n = function (tag) { return this.f4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).g4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedDouble.' call var tmp0_elvis_lhs = get_double(this_0); var tmp; if (tmp0_elvis_lhs == null) { unparsedPrimitive(this, 'double'); } else { tmp = tmp0_elvis_lhs; } tmp$ret$1 = tmp; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'double'); } else { throw $p; } } } var result = tmp$ret$1; var specialFp = this.w4r().v4p_1.n4r_1; if (specialFp ? true : isFinite_0(result)) return result; throw InvalidFloatingPointDecoded(result, tag, toString(this.v4x())); }; protoOf(AbstractJsonTreeDecoder).h4n = function (tag) { return this.g4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).h4y = function (tag) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call var this_0 = this.x4x(tag); try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedChar.' call var tmp0_elvis_lhs = single(this_0.q3b()); var tmp; var tmp_0 = tmp0_elvis_lhs; if ((tmp_0 == null ? null : new Char(tmp_0)) == null) { unparsedPrimitive(this, 'char'); } else { tmp = tmp0_elvis_lhs; } tmp$ret$1 = tmp; break $l$block; } catch ($p) { if ($p instanceof IllegalArgumentException) { var e = $p; unparsedPrimitive(this, 'char'); } else { throw $p; } } } return tmp$ret$1; }; protoOf(AbstractJsonTreeDecoder).i4n = function (tag) { return this.h4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).i4y = function (tag) { var value = this.x4x(tag); if (!this.w4r().v4p_1.f4r_1) { var literal = asLiteral(value, this, 'string'); if (!literal.h4s_1) throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted.\n" + get_lenientHint(), toString(this.v4x())); } if (value instanceof JsonNull) throw JsonDecodingException_0(-1, "Unexpected 'null' value instead of string literal", toString(this.v4x())); return value.q3b(); }; protoOf(AbstractJsonTreeDecoder).j4n = function (tag) { return this.i4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE()); }; protoOf(AbstractJsonTreeDecoder).j4y = function (tag, inlineDescriptor) { return get_isUnsignedNumber(inlineDescriptor) ? new JsonDecoderForUnsignedTypes(new StringJsonLexer(this.x4x(tag).q3b()), this.w4r()) : protoOf(NamedValueDecoder).l4n.call(this, tag, inlineDescriptor); }; protoOf(AbstractJsonTreeDecoder).l4n = function (tag, inlineDescriptor) { return this.j4y((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor); }; protoOf(AbstractJsonTreeDecoder).p48 = function (descriptor) { return !(this.x4m() == null) ? protoOf(NamedValueDecoder).p48.call(this, descriptor) : (new JsonPrimitiveDecoder(this.w4r(), this.t2())).p48(descriptor); }; function coerceInputValue_0($this, descriptor, index, tag) { var tmp$ret$1; $l$block_2: { // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call var this_0 = $this.w4r(); var elementDescriptor = descriptor.u46(index); var tmp; if (!elementDescriptor.l46()) { // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.' call var tmp_0 = $this.w4x(tag); tmp = tmp_0 instanceof JsonNull; } else { tmp = false; } if (tmp) { tmp$ret$1 = true; break $l$block_2; } if (equals(elementDescriptor.s46(), ENUM_getInstance())) { var tmp_1; if (elementDescriptor.l46()) { // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.' call var tmp_2 = $this.w4x(tag); tmp_1 = tmp_2 instanceof JsonNull; } else { tmp_1 = false; } if (tmp_1) { tmp$ret$1 = false; break $l$block_2; } // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.' call var tmp_3 = $this.w4x(tag); var tmp0_safe_receiver = tmp_3 instanceof JsonPrimitive ? tmp_3 : null; var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver); var tmp_4; if (tmp0_elvis_lhs == null) { tmp$ret$1 = false; break $l$block_2; } else { tmp_4 = tmp0_elvis_lhs; } var enumValue = tmp_4; var enumIndex = getJsonNameIndex(elementDescriptor, this_0, enumValue); if (enumIndex === -3) { // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue.' call tmp$ret$1 = true; break $l$block_2; } } tmp$ret$1 = false; } return tmp$ret$1; } function absenceIsNull($this, descriptor, index) { $this.t4y_1 = (!$this.w4r().v4p_1.i4r_1 ? !descriptor.x46(index) : false) ? descriptor.u46(index).l46() : false; return $this.t4y_1; } function JsonTreeDecoder(json, value, polyDiscriminator, polyDescriptor) { polyDiscriminator = polyDiscriminator === VOID ? null : polyDiscriminator; polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor; AbstractJsonTreeDecoder.call(this, json, value); this.p4y_1 = value; this.q4y_1 = polyDiscriminator; this.r4y_1 = polyDescriptor; this.s4y_1 = 0; this.t4y_1 = false; } protoOf(JsonTreeDecoder).t2 = function () { return this.p4y_1; }; protoOf(JsonTreeDecoder).i49 = function (descriptor) { while (this.s4y_1 < descriptor.q46()) { var tmp1 = this.s4y_1; this.s4y_1 = tmp1 + 1 | 0; var name = this.s4m(descriptor, tmp1); var index = this.s4y_1 - 1 | 0; this.t4y_1 = false; var tmp; var tmp_0; // Inline function 'kotlin.collections.contains' call // Inline function 'kotlin.collections.containsKey' call var this_0 = this.t2(); if ((isInterface(this_0, Map) ? this_0 : THROW_CCE()).r(name)) { tmp_0 = true; } else { tmp_0 = absenceIsNull(this, descriptor, index); } if (tmp_0) { tmp = !this.u4x_1.k4r_1 ? true : !coerceInputValue_0(this, descriptor, index, name); } else { tmp = false; } if (tmp) { return index; } } return -1; }; protoOf(JsonTreeDecoder).d48 = function () { return !this.t4y_1 ? protoOf(AbstractJsonTreeDecoder).d48.call(this) : false; }; protoOf(JsonTreeDecoder).t4m = function (descriptor, index) { var strategy = namingStrategy(descriptor, this.w4r()); var baseName = descriptor.w46(index); if (strategy == null) { if (!this.u4x_1.o4r_1) return baseName; if (this.t2().o2().b1(baseName)) return baseName; } var deserializationNamesMap_0 = deserializationNamesMap(this.w4r(), descriptor); // Inline function 'kotlin.collections.find' call var this_0 = this.t2().o2(); var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.elementName.' call if (deserializationNamesMap_0.q(element) === index) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_safe_receiver = tmp$ret$1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return tmp0_safe_receiver; } var fallbackName = strategy == null ? null : strategy.n4u(descriptor, index, baseName); return fallbackName == null ? baseName : fallbackName; }; protoOf(JsonTreeDecoder).w4x = function (tag) { return getValue(this.t2(), tag); }; protoOf(JsonTreeDecoder).s48 = function (descriptor) { if (descriptor === this.r4y_1) { var tmp = this.w4r(); // Inline function 'kotlinx.serialization.json.internal.cast' call var value = this.v4x(); var descriptor_0 = this.r4y_1; if (!(value instanceof JsonObject)) { throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor_0.a46() + ', but had ' + getKClassFromExpression(value)); } return new JsonTreeDecoder(tmp, value, this.q4y_1, this.r4y_1); } return protoOf(AbstractJsonTreeDecoder).s48.call(this, descriptor); }; protoOf(JsonTreeDecoder).t48 = function (descriptor) { var tmp; if (this.u4x_1.e4r_1) { tmp = true; } else { var tmp_0 = descriptor.s46(); tmp = tmp_0 instanceof PolymorphicKind; } if (tmp) return Unit_instance; var strategy = namingStrategy(descriptor, this.w4r()); var tmp_1; if (strategy == null ? !this.u4x_1.o4r_1 : false) { tmp_1 = jsonCachedSerialNames(descriptor); } else if (!(strategy == null)) { tmp_1 = deserializationNamesMap(this.w4r(), descriptor).o2(); } else { var tmp_2 = jsonCachedSerialNames(descriptor); // Inline function 'kotlin.collections.orEmpty' call var tmp0_safe_receiver = get_schemaCache(this.w4r()).x4w(descriptor, get_JsonDeserializationNamesKey()); var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2(); var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs; tmp_1 = plus_0(tmp_2, tmp$ret$0); } var names = tmp_1; var tmp1_iterator = this.t2().o2().w(); while (tmp1_iterator.f()) { var key = tmp1_iterator.e(); if (!names.b1(key) ? !(key === this.q4y_1) : false) { throw UnknownKeyException(key, this.t2().toString()); } } }; function JsonTreeListDecoder(json, value) { AbstractJsonTreeDecoder.call(this, json, value); this.z4y_1 = value; this.a4z_1 = this.z4y_1.u(); this.b4z_1 = -1; } protoOf(JsonTreeListDecoder).t2 = function () { return this.z4y_1; }; protoOf(JsonTreeListDecoder).t4m = function (descriptor, index) { return index.toString(); }; protoOf(JsonTreeListDecoder).w4x = function (tag) { return this.z4y_1.v(toInt(tag)); }; protoOf(JsonTreeListDecoder).i49 = function (descriptor) { while (this.b4z_1 < (this.a4z_1 - 1 | 0)) { this.b4z_1 = this.b4z_1 + 1 | 0; return this.b4z_1; } return -1; }; function JsonPrimitiveDecoder(json, value) { AbstractJsonTreeDecoder.call(this, json, value); this.h4z_1 = value; this.m4n(get_PRIMITIVE_TAG()); } protoOf(JsonPrimitiveDecoder).t2 = function () { return this.h4z_1; }; protoOf(JsonPrimitiveDecoder).i49 = function (descriptor) { return 0; }; protoOf(JsonPrimitiveDecoder).w4x = function (tag) { // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call if (!(tag === get_PRIMITIVE_TAG())) { // Inline function 'kotlinx.serialization.json.internal.JsonPrimitiveDecoder.currentElement.' call var message = "This input can only handle primitives with '" + get_PRIMITIVE_TAG() + "' tag"; throw IllegalArgumentException_init_$Create$(toString(message)); } return this.h4z_1; }; function JsonTreeMapDecoder(json, value) { JsonTreeDecoder.call(this, json, value); this.s4z_1 = value; this.t4z_1 = toList(this.s4z_1.o2()); this.u4z_1 = imul(this.t4z_1.u(), 2); this.v4z_1 = -1; } protoOf(JsonTreeMapDecoder).t2 = function () { return this.s4z_1; }; protoOf(JsonTreeMapDecoder).t4m = function (descriptor, index) { var i = index / 2 | 0; return this.t4z_1.v(i); }; protoOf(JsonTreeMapDecoder).i49 = function (descriptor) { while (this.v4z_1 < (this.u4z_1 - 1 | 0)) { this.v4z_1 = this.v4z_1 + 1 | 0; return this.v4z_1; } return -1; }; protoOf(JsonTreeMapDecoder).w4x = function (tag) { return (this.v4z_1 % 2 | 0) === 0 ? JsonPrimitive_2(tag) : getValue(this.s4z_1, tag); }; protoOf(JsonTreeMapDecoder).t48 = function (descriptor) { }; function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) { return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.a45())).r48(deserializer); } function get_PRIMITIVE_TAG() { return PRIMITIVE_TAG; } var PRIMITIVE_TAG; var WriteMode_OBJ_instance; var WriteMode_LIST_instance; var WriteMode_MAP_instance; var WriteMode_POLY_OBJ_instance; function values() { return [WriteMode_OBJ_getInstance(), WriteMode_LIST_getInstance(), WriteMode_MAP_getInstance(), WriteMode_POLY_OBJ_getInstance()]; } function get_entries() { if ($ENTRIES == null) $ENTRIES = enumEntries(values()); return $ENTRIES; } var WriteMode_entriesInitialized; function WriteMode_initEntries() { if (WriteMode_entriesInitialized) return Unit_instance; WriteMode_entriesInitialized = true; WriteMode_OBJ_instance = new WriteMode('OBJ', 0, get_BEGIN_OBJ(), get_END_OBJ()); WriteMode_LIST_instance = new WriteMode('LIST', 1, get_BEGIN_LIST(), get_END_LIST()); WriteMode_MAP_instance = new WriteMode('MAP', 2, get_BEGIN_OBJ(), get_END_OBJ()); WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, get_BEGIN_LIST(), get_END_LIST()); } var $ENTRIES; function WriteMode(name, ordinal, begin, end) { Enum.call(this, name, ordinal); this.k4x_1 = begin; this.l4x_1 = end; } function switchMode(_this__u8e3s4, desc) { var tmp0_subject = desc.s46(); var tmp; if (tmp0_subject instanceof PolymorphicKind) { tmp = WriteMode_POLY_OBJ_getInstance(); } else { if (equals(tmp0_subject, LIST_getInstance())) { tmp = WriteMode_LIST_getInstance(); } else { if (equals(tmp0_subject, MAP_getInstance())) { // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call var keyDescriptor = carrierDescriptor(desc.u46(0), _this__u8e3s4.d46()); var keyKind = keyDescriptor.s46(); var tmp_0; var tmp_1; if (keyKind instanceof PrimitiveKind) { tmp_1 = true; } else { tmp_1 = equals(keyKind, ENUM_getInstance()); } if (tmp_1) { // Inline function 'kotlinx.serialization.json.internal.switchMode.' call tmp_0 = WriteMode_MAP_getInstance(); } else { if (_this__u8e3s4.v4p_1.g4r_1) { // Inline function 'kotlinx.serialization.json.internal.switchMode.' call tmp_0 = WriteMode_LIST_getInstance(); } else { throw InvalidKeyKindException(keyDescriptor); } } tmp = tmp_0; } else { tmp = WriteMode_OBJ_getInstance(); } } } return tmp; } function carrierDescriptor(_this__u8e3s4, module_0) { var tmp; if (equals(_this__u8e3s4.s46(), CONTEXTUAL_getInstance())) { var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0); tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs; } else if (_this__u8e3s4.r46()) { tmp = carrierDescriptor(_this__u8e3s4.u46(0), module_0); } else { tmp = _this__u8e3s4; } return tmp; } function WriteMode_OBJ_getInstance() { WriteMode_initEntries(); return WriteMode_OBJ_instance; } function WriteMode_LIST_getInstance() { WriteMode_initEntries(); return WriteMode_LIST_instance; } function WriteMode_MAP_getInstance() { WriteMode_initEntries(); return WriteMode_MAP_instance; } function WriteMode_POLY_OBJ_getInstance() { WriteMode_initEntries(); return WriteMode_POLY_OBJ_instance; } function appendEscape($this, lastPosition, current) { $this.w4z(lastPosition, current); return appendEsc($this, current + 1 | 0); } function decodedString($this, lastPosition, currentPosition) { $this.w4z(lastPosition, currentPosition); var result = $this.l4q_1.toString(); $this.l4q_1.y8(0); return result; } function takePeeked($this) { // Inline function 'kotlin.also' call var this_0 = ensureNotNull($this.k4q_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.takePeeked.' call $this.k4q_1 = null; return this_0; } function wasUnquotedString($this) { return !(charSequenceGet($this.x4z(), $this.i4q_1 - 1 | 0) === _Char___init__impl__6a9atx(34)); } function appendEsc($this, startPosition) { var currentPosition = startPosition; currentPosition = $this.y4z(currentPosition); if (currentPosition === -1) { $this.j4u('Expected escape sequence to continue, got EOF'); } var tmp = $this.x4z(); var tmp0 = currentPosition; currentPosition = tmp0 + 1 | 0; var currentChar = charSequenceGet(tmp, tmp0); if (currentChar === _Char___init__impl__6a9atx(117)) { return appendHex($this, $this.x4z(), currentPosition); } // Inline function 'kotlin.code' call var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar); var c = escapeToChar(tmp$ret$0); if (c === _Char___init__impl__6a9atx(0)) { $this.j4u("Invalid escaped char '" + toString_0(currentChar) + "'"); } $this.l4q_1.z5(c); return currentPosition; } function appendHex($this, source, startPos) { if ((startPos + 4 | 0) >= charSequenceLength(source)) { $this.i4q_1 = startPos; $this.z4z(); if (($this.i4q_1 + 4 | 0) >= charSequenceLength(source)) { $this.j4u('Unexpected EOF during unicode escape'); } return appendHex($this, source, $this.i4q_1); } $this.l4q_1.z5(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)); return startPos + 4 | 0; } function fromHexChar($this, source, currentPosition) { var character = charSequenceGet(source, currentPosition); var tmp; if (_Char___init__impl__6a9atx(48) <= character ? character <= _Char___init__impl__6a9atx(57) : false) { // Inline function 'kotlin.code' call var tmp_0 = Char__toInt_impl_vasixd(character); // Inline function 'kotlin.code' call var this_0 = _Char___init__impl__6a9atx(48); tmp = tmp_0 - Char__toInt_impl_vasixd(this_0) | 0; } else if (_Char___init__impl__6a9atx(97) <= character ? character <= _Char___init__impl__6a9atx(102) : false) { // Inline function 'kotlin.code' call var tmp_1 = Char__toInt_impl_vasixd(character); // Inline function 'kotlin.code' call var this_1 = _Char___init__impl__6a9atx(97); tmp = (tmp_1 - Char__toInt_impl_vasixd(this_1) | 0) + 10 | 0; } else if (_Char___init__impl__6a9atx(65) <= character ? character <= _Char___init__impl__6a9atx(70) : false) { // Inline function 'kotlin.code' call var tmp_2 = Char__toInt_impl_vasixd(character); // Inline function 'kotlin.code' call var this_2 = _Char___init__impl__6a9atx(65); tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0; } else { $this.j4u("Invalid toHexChar char '" + toString_0(character) + "' in unicode escape"); } return tmp; } function consumeBoolean($this, start) { var current = $this.y4z(start); if (current >= charSequenceLength($this.x4z()) ? true : current === -1) { $this.j4u('EOF'); } // Inline function 'kotlin.code' call var tmp = $this.x4z(); var tmp0 = current; current = tmp0 + 1 | 0; var this_0 = charSequenceGet(tmp, tmp0); var tmp1_subject = Char__toInt_impl_vasixd(this_0) | 32; var tmp_0; // Inline function 'kotlin.code' call var this_1 = _Char___init__impl__6a9atx(116); if (tmp1_subject === Char__toInt_impl_vasixd(this_1)) { consumeBooleanLiteral($this, 'rue', current); tmp_0 = true; } else { // Inline function 'kotlin.code' call var this_2 = _Char___init__impl__6a9atx(102); if (tmp1_subject === Char__toInt_impl_vasixd(this_2)) { consumeBooleanLiteral($this, 'alse', current); tmp_0 = false; } else { $this.j4u("Expected valid boolean literal prefix, but had '" + $this.n4v() + "'"); } } return tmp_0; } function consumeBooleanLiteral($this, literalSuffix, current) { if ((charSequenceLength($this.x4z()) - current | 0) < literalSuffix.length) { $this.j4u('Unexpected end of boolean literal'); } var inductionVariable = 0; var last = charSequenceLength(literalSuffix) - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var expected = charSequenceGet(literalSuffix, i); var actual = charSequenceGet($this.x4z(), current + i | 0); // Inline function 'kotlin.code' call var tmp = Char__toInt_impl_vasixd(expected); // Inline function 'kotlin.code' call if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) { $this.j4u("Expected valid boolean literal prefix, but had '" + $this.n4v() + "'"); } } while (inductionVariable <= last); $this.i4q_1 = current + literalSuffix.length | 0; } function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive) { var tmp; switch (isExponentPositive) { case false: // Inline function 'kotlin.math.pow' call var x = -exponentAccumulator.a7(); tmp = Math.pow(10.0, x); break; case true: // Inline function 'kotlin.math.pow' call var x_0 = exponentAccumulator.a7(); tmp = Math.pow(10.0, x_0); break; default: noWhenBranchMatchedException(); break; } return tmp; } function AbstractJsonLexer() { this.i4q_1 = 0; this.j4q_1 = new JsonPath(); this.k4q_1 = null; this.l4q_1 = StringBuilder_init_$Create$(); } protoOf(AbstractJsonLexer).z4z = function () { }; protoOf(AbstractJsonLexer).a50 = function (c) { return (((c === _Char___init__impl__6a9atx(125) ? true : c === _Char___init__impl__6a9atx(93)) ? true : c === _Char___init__impl__6a9atx(58)) ? true : c === _Char___init__impl__6a9atx(44)) ? false : true; }; protoOf(AbstractJsonLexer).m4q = function () { var nextToken = this.p4v(); if (!(nextToken === 10)) { this.j4u('Expected EOF after parsing, but had ' + toString_0(charSequenceGet(this.x4z(), this.i4q_1 - 1 | 0)) + ' instead'); } }; protoOf(AbstractJsonLexer).j4v = function (expected) { var token = this.p4v(); if (!(token === expected)) { this.b50(expected); } return token; }; protoOf(AbstractJsonLexer).z4w = function (expected) { this.z4z(); var source = this.x4z(); var cpos = this.i4q_1; $l$loop_0: while (true) { cpos = this.y4z(cpos); if (cpos === -1) break $l$loop_0; var tmp0 = cpos; cpos = tmp0 + 1 | 0; var c = charSequenceGet(source, tmp0); if (((c === _Char___init__impl__6a9atx(32) ? true : c === _Char___init__impl__6a9atx(10)) ? true : c === _Char___init__impl__6a9atx(13)) ? true : c === _Char___init__impl__6a9atx(9)) continue $l$loop_0; this.i4q_1 = cpos; if (c === expected) return Unit_instance; this.c50(expected); } this.i4q_1 = cpos; this.c50(expected); }; protoOf(AbstractJsonLexer).c50 = function (expected) { if (this.i4q_1 > 0 ? expected === _Char___init__impl__6a9atx(34) : false) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.withPositionRollback' call var snapshot = this.i4q_1; try { // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken.' call this.i4q_1 = this.i4q_1 - 1 | 0; tmp$ret$1 = this.n4v(); break $l$block; }finally { this.i4q_1 = snapshot; } } var inputLiteral = tmp$ret$1; if (inputLiteral === 'null') { this.i4u("Expected string literal but 'null' literal was found", this.i4q_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls to default values."); } } this.b50(charToTokenClass(expected)); }; protoOf(AbstractJsonLexer).d50 = function (expectedToken, wasConsumed) { var expected = tokenDescription(expectedToken); var position = wasConsumed ? this.i4q_1 - 1 | 0 : this.i4q_1; var s = (this.i4q_1 === charSequenceLength(this.x4z()) ? true : position < 0) ? 'EOF' : toString_0(charSequenceGet(this.x4z(), position)); this.j4u('Expected ' + expected + ", but had '" + s + "' instead", position); }; protoOf(AbstractJsonLexer).b50 = function (expectedToken, wasConsumed, $super) { wasConsumed = wasConsumed === VOID ? true : wasConsumed; return $super === VOID ? this.d50(expectedToken, wasConsumed) : $super.d50.call(this, expectedToken, wasConsumed); }; protoOf(AbstractJsonLexer).k4v = function () { var source = this.x4z(); var cpos = this.i4q_1; $l$loop_0: while (true) { cpos = this.y4z(cpos); if (cpos === -1) break $l$loop_0; var ch = charSequenceGet(source, cpos); if (((ch === _Char___init__impl__6a9atx(32) ? true : ch === _Char___init__impl__6a9atx(10)) ? true : ch === _Char___init__impl__6a9atx(13)) ? true : ch === _Char___init__impl__6a9atx(9)) { cpos = cpos + 1 | 0; continue $l$loop_0; } this.i4q_1 = cpos; return charToTokenClass(ch); } this.i4q_1 = cpos; return 10; }; protoOf(AbstractJsonLexer).b4x = function (doConsume) { var current = this.e50(); current = this.y4z(current); var len = charSequenceLength(this.x4z()) - current | 0; if (len < 4 ? true : current === -1) return false; var inductionVariable = 0; if (inductionVariable <= 3) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (!(charSequenceGet('null', i) === charSequenceGet(this.x4z(), current + i | 0))) return false; } while (inductionVariable <= 3); if (len > 4 ? charToTokenClass(charSequenceGet(this.x4z(), current + 4 | 0)) === 0 : false) return false; if (doConsume) { this.i4q_1 = current + 4 | 0; } return true; }; protoOf(AbstractJsonLexer).m4x = function (doConsume, $super) { doConsume = doConsume === VOID ? true : doConsume; return $super === VOID ? this.b4x(doConsume) : $super.b4x.call(this, doConsume); }; protoOf(AbstractJsonLexer).e50 = function () { var current = this.i4q_1; $l$loop_0: while (true) { current = this.y4z(current); if (current === -1) break $l$loop_0; var c = charSequenceGet(this.x4z(), current); if (((c === _Char___init__impl__6a9atx(32) ? true : c === _Char___init__impl__6a9atx(10)) ? true : c === _Char___init__impl__6a9atx(13)) ? true : c === _Char___init__impl__6a9atx(9)) { current = current + 1 | 0; } else { break $l$loop_0; } } this.i4q_1 = current; return current; }; protoOf(AbstractJsonLexer).c4x = function (isLenient) { var token = this.k4v(); var tmp; if (isLenient) { if (!(token === 1) ? !(token === 0) : false) return null; tmp = this.n4v(); } else { if (!(token === 1)) return null; tmp = this.m4v(); } var string = tmp; this.k4q_1 = string; return string; }; protoOf(AbstractJsonLexer).f50 = function () { this.k4q_1 = null; }; protoOf(AbstractJsonLexer).g50 = function (startPos, endPos) { // Inline function 'kotlin.text.substring' call var this_0 = this.x4z(); return toString(charSequenceSubSequence(this_0, startPos, endPos)); }; protoOf(AbstractJsonLexer).m4v = function () { if (!(this.k4q_1 == null)) { return takePeeked(this); } return this.f4x(); }; protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) { var currentPosition = current; var lastPosition = startPosition; var char = charSequenceGet(source, currentPosition); var usedAppend = false; while (!(char === _Char___init__impl__6a9atx(34))) { if (char === _Char___init__impl__6a9atx(92)) { usedAppend = true; currentPosition = this.y4z(appendEscape(this, lastPosition, currentPosition)); if (currentPosition === -1) { this.j4u('Unexpected EOF', currentPosition); } lastPosition = currentPosition; } else { currentPosition = currentPosition + 1 | 0; if (currentPosition >= charSequenceLength(source)) { usedAppend = true; this.w4z(lastPosition, currentPosition); currentPosition = this.y4z(currentPosition); if (currentPosition === -1) { this.j4u('Unexpected EOF', currentPosition); } lastPosition = currentPosition; } } char = charSequenceGet(source, currentPosition); } var tmp; if (!usedAppend) { tmp = this.g50(lastPosition, currentPosition); } else { tmp = decodedString(this, lastPosition, currentPosition); } var string = tmp; this.i4q_1 = currentPosition + 1 | 0; return string; }; protoOf(AbstractJsonLexer).g4x = function () { var result = this.n4v(); if (result === 'null' ? wasUnquotedString(this) : false) { this.j4u("Unexpected 'null' value instead of string literal"); } return result; }; protoOf(AbstractJsonLexer).n4v = function () { if (!(this.k4q_1 == null)) { return takePeeked(this); } var current = this.e50(); if (current >= charSequenceLength(this.x4z()) ? true : current === -1) { this.j4u('EOF', current); } var token = charToTokenClass(charSequenceGet(this.x4z(), current)); if (token === 1) { return this.m4v(); } if (!(token === 0)) { this.j4u('Expected beginning of the string, but got ' + toString_0(charSequenceGet(this.x4z(), current))); } var usedAppend = false; while (charToTokenClass(charSequenceGet(this.x4z(), current)) === 0) { current = current + 1 | 0; if (current >= charSequenceLength(this.x4z())) { usedAppend = true; this.w4z(this.i4q_1, current); var eof = this.y4z(current); if (eof === -1) { this.i4q_1 = current; return decodedString(this, 0, 0); } else { current = eof; } } } var tmp; if (!usedAppend) { tmp = this.g50(this.i4q_1, current); } else { tmp = decodedString(this, this.i4q_1, current); } var result = tmp; this.i4q_1 = current; return result; }; protoOf(AbstractJsonLexer).w4z = function (fromIndex, toIndex) { this.l4q_1.s8(this.x4z(), fromIndex, toIndex); }; protoOf(AbstractJsonLexer).e4x = function (allowLenientStrings) { // Inline function 'kotlin.collections.mutableListOf' call var tokenStack = ArrayList_init_$Create$(); var lastToken = this.k4v(); if (!(lastToken === 8) ? !(lastToken === 6) : false) { this.n4v(); return Unit_instance; } $l$loop: while (true) { lastToken = this.k4v(); if (lastToken === 1) { if (allowLenientStrings) { this.n4v(); } else { this.f4x(); } continue $l$loop; } var tmp0_subject = lastToken; if (tmp0_subject === 8 ? true : tmp0_subject === 6) { tokenStack.j1(lastToken); } else if (tmp0_subject === 9) { if (!(last(tokenStack) === 8)) throw JsonDecodingException_0(this.i4q_1, 'found ] instead of } at path: ' + this.j4q_1, this.x4z()); removeLast(tokenStack); } else if (tmp0_subject === 7) { if (!(last(tokenStack) === 6)) throw JsonDecodingException_0(this.i4q_1, 'found } instead of ] at path: ' + this.j4q_1, this.x4z()); removeLast(tokenStack); } else if (tmp0_subject === 10) { this.j4u('Unexpected end of input due to malformed JSON during ignoring unknown keys'); } this.p4v(); if (tokenStack.u() === 0) return Unit_instance; } }; protoOf(AbstractJsonLexer).toString = function () { return "JsonReader(source='" + this.x4z() + "', currentPosition=" + this.i4q_1 + ')'; }; protoOf(AbstractJsonLexer).d4x = function (key) { var processed = this.g50(0, this.i4q_1); var lastIndexOf_0 = lastIndexOf(processed, key); this.i4u("Encountered an unknown key '" + key + "'", lastIndexOf_0, "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys."); }; protoOf(AbstractJsonLexer).i4u = function (message, position, hint) { var tmp; // Inline function 'kotlin.text.isEmpty' call if (charSequenceLength(hint) === 0) { tmp = ''; } else { tmp = '\n' + hint; } var hintMessage = tmp; throw JsonDecodingException_0(position, message + ' at path: ' + this.j4q_1.w4u() + hintMessage, this.x4z()); }; protoOf(AbstractJsonLexer).j4u = function (message, position, hint, $super) { position = position === VOID ? this.i4q_1 : position; hint = hint === VOID ? '' : hint; return $super === VOID ? this.i4u(message, position, hint) : $super.i4u.call(this, message, position, hint); }; protoOf(AbstractJsonLexer).a4s = function () { var current = this.e50(); current = this.y4z(current); if (current >= charSequenceLength(this.x4z()) ? true : current === -1) { this.j4u('EOF'); } var tmp; if (charSequenceGet(this.x4z(), current) === _Char___init__impl__6a9atx(34)) { current = current + 1 | 0; if (current === charSequenceLength(this.x4z())) { this.j4u('EOF'); } tmp = true; } else { tmp = false; } var hasQuotation = tmp; var accumulator = new Long(0, 0); var exponentAccumulator = new Long(0, 0); var isNegative = false; var isExponentPositive = false; var hasExponent = false; var start = current; $l$loop_4: while (!(current === charSequenceLength(this.x4z()))) { var ch = charSequenceGet(this.x4z(), current); if ((ch === _Char___init__impl__6a9atx(101) ? true : ch === _Char___init__impl__6a9atx(69)) ? !hasExponent : false) { if (current === start) { this.j4u('Unexpected symbol ' + toString_0(ch) + ' in numeric literal'); } isExponentPositive = true; hasExponent = true; current = current + 1 | 0; continue $l$loop_4; } if (ch === _Char___init__impl__6a9atx(45) ? hasExponent : false) { if (current === start) { this.j4u("Unexpected symbol '-' in numeric literal"); } isExponentPositive = false; current = current + 1 | 0; continue $l$loop_4; } if (ch === _Char___init__impl__6a9atx(43) ? hasExponent : false) { if (current === start) { this.j4u("Unexpected symbol '+' in numeric literal"); } isExponentPositive = true; current = current + 1 | 0; continue $l$loop_4; } if (ch === _Char___init__impl__6a9atx(45)) { if (!(current === start)) { this.j4u("Unexpected symbol '-' in numeric literal"); } isNegative = true; current = current + 1 | 0; continue $l$loop_4; } var token = charToTokenClass(ch); if (!(token === 0)) break $l$loop_4; current = current + 1 | 0; var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48)); if (!(0 <= digit ? digit <= 9 : false)) { this.j4u("Unexpected symbol '" + toString_0(ch) + "' in numeric literal"); } if (hasExponent) { // Inline function 'kotlin.Long.plus' call // Inline function 'kotlin.Long.times' call exponentAccumulator = exponentAccumulator.db(toLong(10)).pc(toLong(digit)); continue $l$loop_4; } // Inline function 'kotlin.Long.minus' call // Inline function 'kotlin.Long.times' call accumulator = accumulator.db(toLong(10)).qc(toLong(digit)); if (accumulator.c7(new Long(0, 0)) > 0) { this.j4u('Numeric value overflow'); } } var hasChars = !(current === start); if (start === current ? true : isNegative ? start === (current - 1 | 0) : false) { this.j4u('Expected numeric literal'); } if (hasQuotation) { if (!hasChars) { this.j4u('EOF'); } if (!(charSequenceGet(this.x4z(), current) === _Char___init__impl__6a9atx(34))) { this.j4u('Expected closing quotation mark'); } current = current + 1 | 0; } this.i4q_1 = current; if (hasExponent) { var doubleAccumulator = accumulator.a7() * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive); var tmp_0; Companion_getInstance_3(); if (doubleAccumulator > (new Long(-1, 2147483647)).a7()) { tmp_0 = true; } else { Companion_getInstance_3(); tmp_0 = doubleAccumulator < (new Long(0, -2147483648)).a7(); } if (tmp_0) { this.j4u('Numeric value overflow'); } // Inline function 'kotlin.math.floor' call if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) { this.j4u("Can't convert " + doubleAccumulator + ' to Long'); } accumulator = numberToLong(doubleAccumulator); } var tmp_1; if (isNegative) { tmp_1 = accumulator; } else { var tmp_2 = accumulator; Companion_getInstance_3(); if (!tmp_2.equals(new Long(0, -2147483648))) { tmp_1 = accumulator.b7(); } else { this.j4u('Numeric value overflow'); } } return tmp_1; }; protoOf(AbstractJsonLexer).n4x = function () { var current = this.e50(); if (current === charSequenceLength(this.x4z())) { this.j4u('EOF'); } var tmp; if (charSequenceGet(this.x4z(), current) === _Char___init__impl__6a9atx(34)) { current = current + 1 | 0; tmp = true; } else { tmp = false; } var hasQuotation = tmp; var result = consumeBoolean(this, current); if (hasQuotation) { if (this.i4q_1 === charSequenceLength(this.x4z())) { this.j4u('EOF'); } if (!(charSequenceGet(this.x4z(), this.i4q_1) === _Char___init__impl__6a9atx(34))) { this.j4u('Expected closing quotation mark'); } this.i4q_1 = this.i4q_1 + 1 | 0; } return result; }; function charToTokenClass(c) { var tmp; // Inline function 'kotlin.code' call if (Char__toInt_impl_vasixd(c) < 126) { var tmp_0 = CharMappings_getInstance().i50_1; // Inline function 'kotlin.code' call tmp = tmp_0[Char__toInt_impl_vasixd(c)]; } else { tmp = 0; } return tmp; } function get_TC_WHITESPACE() { return TC_WHITESPACE; } var TC_WHITESPACE; function get_TC_EOF() { return TC_EOF; } var TC_EOF; function get_STRING() { return STRING; } var STRING; function get_TC_STRING() { return TC_STRING; } var TC_STRING; function get_STRING_ESC() { return STRING_ESC; } var STRING_ESC; function get_TC_BEGIN_OBJ() { return TC_BEGIN_OBJ; } var TC_BEGIN_OBJ; function get_TC_COLON() { return TC_COLON; } var TC_COLON; function get_TC_COMMA() { return TC_COMMA; } var TC_COMMA; function get_COLON() { return COLON; } var COLON; function get_BEGIN_OBJ() { return BEGIN_OBJ; } var BEGIN_OBJ; function get_END_OBJ() { return END_OBJ; } var END_OBJ; function get_BEGIN_LIST() { return BEGIN_LIST; } var BEGIN_LIST; function get_END_LIST() { return END_LIST; } var END_LIST; function get_lenientHint() { return lenientHint; } var lenientHint; function get_specialFlowingValuesHint() { return specialFlowingValuesHint; } var specialFlowingValuesHint; function get_allowStructuredMapKeysHint() { return allowStructuredMapKeysHint; } var allowStructuredMapKeysHint; function get_ignoreUnknownKeysHint() { return ignoreUnknownKeysHint; } var ignoreUnknownKeysHint; function get_INVALID() { return INVALID; } var INVALID; function get_COMMA() { return COMMA; } var COMMA; function get_NULL() { return NULL; } var NULL; function tokenDescription(token) { 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'; } function get_TC_OTHER() { return TC_OTHER; } var TC_OTHER; function escapeToChar(c) { return c < 117 ? CharMappings_getInstance().h50_1[c] : _Char___init__impl__6a9atx(0); } function get_TC_BEGIN_LIST() { return TC_BEGIN_LIST; } var TC_BEGIN_LIST; function get_TC_END_LIST() { return TC_END_LIST; } var TC_END_LIST; function get_TC_END_OBJ() { return TC_END_OBJ; } var TC_END_OBJ; function initEscape($this) { var inductionVariable = 0; if (inductionVariable <= 31) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; initC2ESC($this, i, _Char___init__impl__6a9atx(117)); } while (inductionVariable <= 31); initC2ESC($this, 8, _Char___init__impl__6a9atx(98)); initC2ESC($this, 9, _Char___init__impl__6a9atx(116)); initC2ESC($this, 10, _Char___init__impl__6a9atx(110)); initC2ESC($this, 12, _Char___init__impl__6a9atx(102)); initC2ESC($this, 13, _Char___init__impl__6a9atx(114)); initC2ESC_0($this, _Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(47)); initC2ESC_0($this, _Char___init__impl__6a9atx(34), _Char___init__impl__6a9atx(34)); initC2ESC_0($this, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(92)); } function initCharToToken($this) { var inductionVariable = 0; if (inductionVariable <= 32) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; initC2TC($this, i, 127); } while (inductionVariable <= 32); initC2TC($this, 9, 3); initC2TC($this, 10, 3); initC2TC($this, 13, 3); initC2TC($this, 32, 3); initC2TC_0($this, _Char___init__impl__6a9atx(44), 4); initC2TC_0($this, _Char___init__impl__6a9atx(58), 5); initC2TC_0($this, _Char___init__impl__6a9atx(123), 6); initC2TC_0($this, _Char___init__impl__6a9atx(125), 7); initC2TC_0($this, _Char___init__impl__6a9atx(91), 8); initC2TC_0($this, _Char___init__impl__6a9atx(93), 9); initC2TC_0($this, _Char___init__impl__6a9atx(34), 1); initC2TC_0($this, _Char___init__impl__6a9atx(92), 2); } function initC2ESC($this, c, esc) { if (!(esc === _Char___init__impl__6a9atx(117))) { // Inline function 'kotlin.code' call var tmp$ret$0 = Char__toInt_impl_vasixd(esc); $this.h50_1[tmp$ret$0] = numberToChar(c); } } function initC2ESC_0($this, c, esc) { // Inline function 'kotlin.code' call var tmp$ret$0 = Char__toInt_impl_vasixd(c); return initC2ESC($this, tmp$ret$0, esc); } function initC2TC($this, c, cl) { $this.i50_1[c] = cl; } function initC2TC_0($this, c, cl) { // Inline function 'kotlin.code' call var tmp$ret$0 = Char__toInt_impl_vasixd(c); return initC2TC($this, tmp$ret$0, cl); } function CharMappings() { CharMappings_instance = this; this.h50_1 = charArray(117); this.i50_1 = new Int8Array(126); initEscape(this); initCharToToken(this); } var CharMappings_instance; function CharMappings_getInstance() { if (CharMappings_instance == null) new CharMappings(); return CharMappings_instance; } function StringJsonLexer(source) { AbstractJsonLexer.call(this); this.n50_1 = source; } protoOf(StringJsonLexer).x4z = function () { return this.n50_1; }; protoOf(StringJsonLexer).y4z = function (position) { return position < this.n50_1.length ? position : -1; }; protoOf(StringJsonLexer).p4v = function () { var source = this.n50_1; $l$loop: while (!(this.i4q_1 === -1) ? this.i4q_1 < source.length : false) { var tmp1 = this.i4q_1; this.i4q_1 = tmp1 + 1 | 0; var ch = charSequenceGet(source, tmp1); var tc = charToTokenClass(ch); var tmp; if (tc === get_TC_WHITESPACE()) { continue $l$loop; } else { tmp = tc; } return tmp; } return get_TC_EOF(); }; protoOf(StringJsonLexer).a4x = function () { var current = this.e50(); if (current === this.n50_1.length ? true : current === -1) return false; if (charSequenceGet(this.n50_1, current) === _Char___init__impl__6a9atx(44)) { this.i4q_1 = this.i4q_1 + 1 | 0; return true; } return false; }; protoOf(StringJsonLexer).l4v = function () { var current = this.i4q_1; if (current === -1) return false; $l$loop: while (current < this.n50_1.length) { var c = charSequenceGet(this.n50_1, current); if (((c === _Char___init__impl__6a9atx(32) ? true : c === _Char___init__impl__6a9atx(10)) ? true : c === _Char___init__impl__6a9atx(13)) ? true : c === _Char___init__impl__6a9atx(9)) { current = current + 1 | 0; continue $l$loop; } this.i4q_1 = current; return this.a50(c); } this.i4q_1 = current; return false; }; protoOf(StringJsonLexer).e50 = function () { var current = this.i4q_1; if (current === -1) return current; $l$loop: while (current < this.n50_1.length) { var c = charSequenceGet(this.n50_1, current); if (((c === _Char___init__impl__6a9atx(32) ? true : c === _Char___init__impl__6a9atx(10)) ? true : c === _Char___init__impl__6a9atx(13)) ? true : c === _Char___init__impl__6a9atx(9)) { current = current + 1 | 0; } else { break $l$loop; } } this.i4q_1 = current; return current; }; protoOf(StringJsonLexer).z4w = function (expected) { if (this.i4q_1 === -1) { this.c50(expected); } var source = this.n50_1; $l$loop: while (this.i4q_1 < source.length) { var tmp1 = this.i4q_1; this.i4q_1 = tmp1 + 1 | 0; var c = charSequenceGet(source, tmp1); if (((c === _Char___init__impl__6a9atx(32) ? true : c === _Char___init__impl__6a9atx(10)) ? true : c === _Char___init__impl__6a9atx(13)) ? true : c === _Char___init__impl__6a9atx(9)) continue $l$loop; if (c === expected) return Unit_instance; this.c50(expected); } this.i4q_1 = -1; this.c50(expected); }; protoOf(StringJsonLexer).f4x = function () { this.z4w(get_STRING()); var current = this.i4q_1; var closingQuote = indexOf(this.n50_1, _Char___init__impl__6a9atx(34), current); if (closingQuote === -1) { this.n4v(); this.d50(get_TC_STRING(), false); } var inductionVariable = current; if (inductionVariable < closingQuote) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (charSequenceGet(this.n50_1, i) === get_STRING_ESC()) { return this.consumeString2(this.n50_1, this.i4q_1, i); } } while (inductionVariable < closingQuote); this.i4q_1 = closingQuote + 1 | 0; // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call return this.n50_1.substring(current, closingQuote); }; protoOf(StringJsonLexer).h4x = function (keyToMatch, isLenient) { var positionSnapshot = this.i4q_1; try { if (!(this.p4v() === get_TC_BEGIN_OBJ())) return null; var firstKey = this.c4x(isLenient); if (!(firstKey === keyToMatch)) return null; this.f50(); if (!(this.p4v() === get_TC_COLON())) return null; return this.c4x(isLenient); }finally { this.i4q_1 = positionSnapshot; this.f50(); } }; function encodeToDynamic(_this__u8e3s4, serializer, value) { return encodeToDynamic_0(_this__u8e3s4, serializer, value); } function get_MAX_SAFE_INTEGER() { return MAX_SAFE_INTEGER; } var MAX_SAFE_INTEGER; function encodeToDynamic_0(_this__u8e3s4, serializer, value) { var tmp; var tmp_0 = serializer.a45().s46(); if (tmp_0 instanceof PrimitiveKind) { tmp = true; } else { var tmp_1 = serializer.a45().s46(); tmp = tmp_1 instanceof ENUM; } if (tmp) { var encoder = new DynamicPrimitiveEncoder(_this__u8e3s4); encoder.j4a(serializer, value); return encoder.p50_1; } var encoder_0 = new DynamicObjectEncoder(_this__u8e3s4, false); encoder_0.j4a(serializer, value); return encoder_0.s50_1; } function DynamicPrimitiveEncoder(json) { AbstractEncoder.call(this); this.o50_1 = json; this.p50_1 = null; } protoOf(DynamicPrimitiveEncoder).w4r = function () { return this.o50_1; }; protoOf(DynamicPrimitiveEncoder).d46 = function () { return this.o50_1.d46(); }; protoOf(DynamicPrimitiveEncoder).m49 = function () { this.p50_1 = null; }; protoOf(DynamicPrimitiveEncoder).r49 = function (value) { var asDouble = value.a7(); if (!this.o50_1.v4p_1.f4r_1 ? abs(value).a7() > get_MAX_SAFE_INTEGER() : false) { throw IllegalArgumentException_init_$Create$(value.toString() + " can't be deserialized to number due to a potential precision loss. " + 'Use the JsonConfiguration option isLenient to serialize anyway'); } this.l49(asDouble); }; protoOf(DynamicPrimitiveEncoder).u49 = function (value) { this.l49(toString_0(value)); }; protoOf(DynamicPrimitiveEncoder).l49 = function (value) { this.p50_1 = value; }; protoOf(DynamicPrimitiveEncoder).w49 = function (enumDescriptor, index) { this.l49(enumDescriptor.w46(index)); }; protoOf(DynamicPrimitiveEncoder).t48 = function (descriptor) { }; protoOf(DynamicPrimitiveEncoder).b4t = function (element) { this.j4a(JsonElementSerializer_getInstance(), element); }; var WriteMode_OBJ_instance_0; var WriteMode_MAP_instance_0; var WriteMode_LIST_instance_0; var WriteMode_entriesInitialized_0; function WriteMode_initEntries_0() { if (WriteMode_entriesInitialized_0) return Unit_instance; WriteMode_entriesInitialized_0 = true; WriteMode_OBJ_instance_0 = new WriteMode_0('OBJ', 0); WriteMode_MAP_instance_0 = new WriteMode_0('MAP', 1); WriteMode_LIST_instance_0 = new WriteMode_0('LIST', 2); } function _get_current__qcrdxk($this) { var tmp = $this.t50_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('current'); } } function NoOutputMark() { } var NoOutputMark_instance; function NoOutputMark_getInstance() { return NoOutputMark_instance; } function Node(writeMode, jsObject) { this.y50_1 = writeMode; this.z50_1 = jsObject; this.a51_1 = 0; } protoOf(Node).gr = function () { var tmp = this.b51_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('parent'); } }; function WriteMode_0(name, ordinal) { Enum.call(this, name, ordinal); } function enterNode($this, jsObject, writeMode) { var child = new Node(writeMode, jsObject); child.b51_1 = _get_current__qcrdxk($this); $this.t50_1 = child; } function exitNode($this) { $this.t50_1 = _get_current__qcrdxk($this).gr(); $this.w50_1 = false; } function isNotStructured($this) { return $this.s50_1 === NoOutputMark_instance; } function newChild($this, writeMode) { var tmp; switch (writeMode.ab_1) { case 0: case 1: tmp = {}; break; case 2: tmp = []; break; default: noWhenBranchMatchedException(); break; } return tmp; } function WriteMode_OBJ_getInstance_0() { WriteMode_initEntries_0(); return WriteMode_OBJ_instance_0; } function WriteMode_MAP_getInstance_0() { WriteMode_initEntries_0(); return WriteMode_MAP_instance_0; } function WriteMode_LIST_getInstance_0() { WriteMode_initEntries_0(); return WriteMode_LIST_instance_0; } function DynamicObjectEncoder(json, encodeNullAsUndefined) { AbstractEncoder.call(this); this.q50_1 = json; this.r50_1 = encodeNullAsUndefined; this.s50_1 = NoOutputMark_instance; this.u50_1 = null; this.w50_1 = false; this.x50_1 = null; } protoOf(DynamicObjectEncoder).w4r = function () { return this.q50_1; }; protoOf(DynamicObjectEncoder).d46 = function () { return this.q50_1.d46(); }; protoOf(DynamicObjectEncoder).k49 = function (descriptor, index) { _get_current__qcrdxk(this).a51_1 = index; this.v50_1 = descriptor; if (_get_current__qcrdxk(this).y50_1.equals(WriteMode_MAP_getInstance_0())) this.w50_1 = (_get_current__qcrdxk(this).a51_1 % 2 | 0) === 0; else { var tmp; if (_get_current__qcrdxk(this).y50_1.equals(WriteMode_LIST_getInstance_0())) { var tmp_0 = descriptor.s46(); tmp = tmp_0 instanceof PolymorphicKind; } else { tmp = false; } if (tmp) this.u50_1 = index.toString(); else { this.u50_1 = getJsonElementName(descriptor, this.q50_1, index); } } return true; }; protoOf(DynamicObjectEncoder).l49 = function (value) { if (this.w50_1) { this.u50_1 = toString(value); } else if (isNotStructured(this)) { this.s50_1 = value; } else { _get_current__qcrdxk(this).z50_1[this.u50_1] = value; } }; protoOf(DynamicObjectEncoder).u49 = function (value) { this.l49(toString_0(value)); }; protoOf(DynamicObjectEncoder).m49 = function () { if (this.w50_1) { this.u50_1 = null; } else { if (this.r50_1) return Unit_instance; _get_current__qcrdxk(this).z50_1[this.u50_1] = null; } }; protoOf(DynamicObjectEncoder).w49 = function (enumDescriptor, index) { this.l49(enumDescriptor.w46(index)); }; protoOf(DynamicObjectEncoder).r49 = function (value) { var asDouble = value.a7(); // Inline function 'kotlin.math.abs' call var conversionHasLossOfPrecision = Math.abs(asDouble) > get_MAX_SAFE_INTEGER(); if (!this.q50_1.v4p_1.f4r_1 ? conversionHasLossOfPrecision : false) { throw IllegalArgumentException_init_$Create$(value.toString() + " can't be serialized to number due to a potential precision loss. " + 'Use the JsonConfiguration option isLenient to serialize anyway'); } if (this.w50_1 ? conversionHasLossOfPrecision : false) { throw IllegalArgumentException_init_$Create$('Long with value ' + value.toString() + " can't be used in json as map key, because its value is larger than Number.MAX_SAFE_INTEGER"); } this.l49(asDouble); }; protoOf(DynamicObjectEncoder).s49 = function (value) { this.t49(value); }; protoOf(DynamicObjectEncoder).t49 = function (value) { if (this.w50_1) { // Inline function 'kotlin.math.floor' call var hasNonZeroFractionalPart = !(Math.floor(value) === value); if (!isFinite_0(value) ? true : hasNonZeroFractionalPart) { throw IllegalArgumentException_init_$Create$('Double with value ' + value + " can't be used in json as map key, because its value is not an integer."); } } this.l49(value); }; protoOf(DynamicObjectEncoder).k4a = function (descriptor, index, serializer, value) { if (!(value == null) ? true : this.q50_1.v4p_1.i4r_1) { protoOf(AbstractEncoder).k4a.call(this, descriptor, index, serializer, value); } }; protoOf(DynamicObjectEncoder).b4t = function (element) { this.j4a(JsonElementSerializer_getInstance(), element); }; protoOf(DynamicObjectEncoder).o4a = function (descriptor, index) { return this.q50_1.v4p_1.d4r_1; }; protoOf(DynamicObjectEncoder).j4a = function (serializer, value) { $l$block: { // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call var tmp; if (!(serializer instanceof AbstractPolymorphicSerializer)) { tmp = true; } else { tmp = this.w4r().v4p_1.l4r_1; } if (tmp) { serializer.b45(this, value); break $l$block; } var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE(); var baseClassDiscriminator = classDiscriminator(serializer.a45(), this.w4r()); var actualSerializer = findPolymorphicSerializer_0(casted, this, !(value == null) ? value : THROW_CCE()); validateIfSealed$accessor$1ad0flx(casted, actualSerializer, baseClassDiscriminator); checkKind(actualSerializer.a45().s46()); // Inline function 'kotlinx.serialization.json.internal.DynamicObjectEncoder.encodeSerializableValue.' call this.x50_1 = baseClassDiscriminator; actualSerializer.b45(this, value); } }; protoOf(DynamicObjectEncoder).s48 = function (descriptor) { if (this.w50_1) { throw IllegalArgumentException_init_$Create$('Value of type ' + descriptor.a46() + " can't be used in json as map key. " + ('It should have either primitive or enum kind, but its kind is ' + descriptor.s46() + '.')); } var newMode = this.c51(descriptor); if (this.s50_1 === NoOutputMark_instance) { this.s50_1 = newChild(this, newMode); this.t50_1 = new Node(newMode, this.s50_1); _get_current__qcrdxk(this).b51_1 = _get_current__qcrdxk(this); } else { var child = newChild(this, newMode); _get_current__qcrdxk(this).z50_1[this.u50_1] = child; enterNode(this, child, newMode); } if (!(this.x50_1 == null)) { _get_current__qcrdxk(this).z50_1[ensureNotNull(this.x50_1)] = descriptor.a46(); this.x50_1 = null; } _get_current__qcrdxk(this).a51_1 = 0; return this; }; protoOf(DynamicObjectEncoder).t48 = function (descriptor) { exitNode(this); }; protoOf(DynamicObjectEncoder).c51 = function (desc) { var tmp0_subject = desc.s46(); var tmp; if ((equals(tmp0_subject, CLASS_getInstance()) ? true : equals(tmp0_subject, OBJECT_getInstance())) ? true : equals(tmp0_subject, CONTEXTUAL_getInstance())) { tmp = WriteMode_OBJ_getInstance_0(); } else { var tmp_0; if (equals(tmp0_subject, LIST_getInstance())) { tmp_0 = true; } else { tmp_0 = tmp0_subject instanceof PolymorphicKind; } if (tmp_0) { tmp = WriteMode_LIST_getInstance_0(); } else { if (equals(tmp0_subject, MAP_getInstance())) { tmp = WriteMode_MAP_getInstance_0(); } else { var tmp_1; if (tmp0_subject instanceof PrimitiveKind) { tmp_1 = true; } else { tmp_1 = equals(tmp0_subject, ENUM_getInstance()); } if (tmp_1) { var message = 'DynamicObjectSerializer does not support serialization of singular primitive values or enum types.'; throw IllegalStateException_init_$Create$(toString(message)); } else { noWhenBranchMatchedException(); } } } } return tmp; }; function get_schemaCache(_this__u8e3s4) { return _this__u8e3s4.x4p_1; } function JsonToStringWriter() { this.z4p_1 = StringBuilder_init_$Create$_0(128); } protoOf(JsonToStringWriter).p4t = function (value) { this.z4p_1.w8(value); }; protoOf(JsonToStringWriter).j4t = function (char) { this.z4p_1.z5(char); }; protoOf(JsonToStringWriter).l4t = function (text) { this.z4p_1.y5(text); }; protoOf(JsonToStringWriter).v4t = function (text) { printQuoted(this.z4p_1, text); }; protoOf(JsonToStringWriter).az = function () { this.z4p_1.z8(); }; protoOf(JsonToStringWriter).toString = function () { return this.z4p_1.toString(); }; function createMapForCache(initialCapacity) { return HashMap_init_$Create$(initialCapacity); } //region block: post-declaration protoOf(defer$1).l46 = get_isNullable; protoOf(defer$1).r46 = get_isInline; protoOf(defer$1).p46 = get_annotations; protoOf(PolymorphismValidator).c4p = contextual; //endregion //region block: init Companion_instance_0 = new Companion(); Companion_instance_1 = new Companion_0(); Companion_instance_2 = new Companion_1(); Companion_instance_3 = new Companion_2(); Tombstone_instance = new Tombstone(); PRIMITIVE_TAG = 'primitive'; TC_WHITESPACE = 3; TC_EOF = 10; STRING = _Char___init__impl__6a9atx(34); TC_STRING = 1; STRING_ESC = _Char___init__impl__6a9atx(92); TC_BEGIN_OBJ = 6; TC_COLON = 5; TC_COMMA = 4; COLON = _Char___init__impl__6a9atx(58); BEGIN_OBJ = _Char___init__impl__6a9atx(123); END_OBJ = _Char___init__impl__6a9atx(125); BEGIN_LIST = _Char___init__impl__6a9atx(91); END_LIST = _Char___init__impl__6a9atx(93); lenientHint = "Use 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON."; specialFlowingValuesHint = "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'"; allowStructuredMapKeysHint = "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays."; ignoreUnknownKeysHint = "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys."; INVALID = _Char___init__impl__6a9atx(0); COMMA = _Char___init__impl__6a9atx(44); NULL = 'null'; TC_OTHER = 0; TC_BEGIN_LIST = 8; TC_END_LIST = 9; TC_END_OBJ = 7; MAX_SAFE_INTEGER = 9.007199254740991E15; NoOutputMark_instance = new NoOutputMark(); //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = Default_getInstance; _.$_$.b = Companion_instance_0; _.$_$.c = JsonElementSerializer_getInstance; _.$_$.d = JsonNull_getInstance; _.$_$.e = JsonObjectSerializer_getInstance; _.$_$.f = JsonArray; _.$_$.g = JsonContentPolymorphicSerializer; _.$_$.h = JsonDecoder; _.$_$.i = JsonEncoder; _.$_$.j = JsonNull; _.$_$.k = JsonObject; _.$_$.l = JsonPrimitive_2; _.$_$.m = JsonPrimitive_0; _.$_$.n = JsonPrimitive_1; _.$_$.o = JsonPrimitive; _.$_$.p = Json_0; _.$_$.q = Json; _.$_$.r = get_boolean; _.$_$.s = get_double; _.$_$.t = encodeToDynamic; _.$_$.u = get_float; _.$_$.v = get_int; _.$_$.w = get_intOrNull; _.$_$.x = get_jsonObject; _.$_$.y = get_jsonPrimitive; _.$_$.z = get_long; //endregion return _; }(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlin-kotlin-stdlib.js'))); //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json.js.map