(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.$_$.b3;
  var protoOf = kotlin_kotlin.$_$.wc;
  var objectMeta = kotlin_kotlin.$_$.vc;
  var setMetadataFor = kotlin_kotlin.$_$.xc;
  var Unit_instance = kotlin_kotlin.$_$.m5;
  var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n3;
  var classMeta = kotlin_kotlin.$_$.lb;
  var VOID = kotlin_kotlin.$_$.f;
  var toString = kotlin_kotlin.$_$.bd;
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1;
  var charSequenceLength = kotlin_kotlin.$_$.jb;
  var charSequenceGet = kotlin_kotlin.$_$.ib;
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2;
  var equals = kotlin_kotlin.$_$.ob;
  var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
  var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
  var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
  var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r3;
  var THROW_CCE = kotlin_kotlin.$_$.hi;
  var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3;
  var isInterface = kotlin_kotlin.$_$.gc;
  var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
  var CompositeDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
  var interfaceMeta = kotlin_kotlin.$_$.xb;
  var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
  var hashCode = kotlin_kotlin.$_$.wb;
  var joinToString = kotlin_kotlin.$_$.a8;
  var Map = kotlin_kotlin.$_$.y5;
  var IntCompanionObject_instance = kotlin_kotlin.$_$.y4;
  var numberRangeToNumber = kotlin_kotlin.$_$.oc;
  var ClosedRange = kotlin_kotlin.$_$.gd;
  var contains = kotlin_kotlin.$_$.nd;
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i;
  var lazy = kotlin_kotlin.$_$.ej;
  var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v2;
  var List = kotlin_kotlin.$_$.w5;
  var getBooleanHashCode = kotlin_kotlin.$_$.rb;
  var getStringHashCode = kotlin_kotlin.$_$.vb;
  var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.j2;
  var toDouble = kotlin_kotlin.$_$.rg;
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
  var StringCompanionObject_instance = kotlin_kotlin.$_$.a5;
  var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b1;
  var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
  var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
  var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
  var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
  var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
  var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
  var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
  var toLongOrNull = kotlin_kotlin.$_$.wg;
  var toULongOrNull = kotlin_kotlin.$_$.dh;
  var ULong = kotlin_kotlin.$_$.qi;
  var Companion_getInstance = kotlin_kotlin.$_$.k5;
  var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
  var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.b4;
  var toDoubleOrNull = kotlin_kotlin.$_$.qg;
  var toBooleanStrictOrNull = kotlin_kotlin.$_$.mg;
  var lazy_0 = kotlin_kotlin.$_$.fj;
  var get_isNullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
  var get_isInline = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
  var get_annotations = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1;
  var KProperty1 = kotlin_kotlin.$_$.vd;
  var getPropertyCallableRef = kotlin_kotlin.$_$.ub;
  var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2;
  var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
  var toLong = kotlin_kotlin.$_$.zc;
  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.$_$.o2;
  var captureStack = kotlin_kotlin.$_$.fb;
  var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l3;
  var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
  var charSequenceSubSequence = kotlin_kotlin.$_$.kb;
  var coerceAtLeast = kotlin_kotlin.$_$.jd;
  var coerceAtMost = kotlin_kotlin.$_$.ld;
  var Companion_instance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
  var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
  var singleOrNull = kotlin_kotlin.$_$.m9;
  var emptyMap = kotlin_kotlin.$_$.j7;
  var getValue = kotlin_kotlin.$_$.u7;
  var fillArrayVal = kotlin_kotlin.$_$.qb;
  var copyOf = kotlin_kotlin.$_$.c7;
  var copyOf_0 = kotlin_kotlin.$_$.d7;
  var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
  var DeepRecursiveFunction = kotlin_kotlin.$_$.sh;
  var invoke = kotlin_kotlin.$_$.aj;
  var CoroutineImpl = kotlin_kotlin.$_$.va;
  var DeepRecursiveScope = kotlin_kotlin.$_$.th;
  var Unit = kotlin_kotlin.$_$.ti;
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha;
  var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m2;
  var getKClass = kotlin_kotlin.$_$.e;
  var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3;
  var ensureNotNull = kotlin_kotlin.$_$.zi;
  var DeserializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h3;
  var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k3;
  var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2;
  var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
  var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
  var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
  var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
  var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
  var contextual = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d3;
  var SerializersModuleCollector = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e3;
  var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
  var substringBefore = kotlin_kotlin.$_$.jg;
  var removeSuffix = kotlin_kotlin.$_$.sf;
  var substringAfter = kotlin_kotlin.$_$.eg;
  var contains_0 = kotlin_kotlin.$_$.qe;
  var plus = kotlin_kotlin.$_$.hj;
  var MissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j3;
  var IllegalArgumentException = kotlin_kotlin.$_$.xh;
  var isFinite = kotlin_kotlin.$_$.cj;
  var isFinite_0 = kotlin_kotlin.$_$.bj;
  var toUInt = kotlin_kotlin.$_$.ch;
  var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.s3;
  var toULong = kotlin_kotlin.$_$.eh;
  var toUByte = kotlin_kotlin.$_$.bh;
  var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.i3;
  var toUShort = kotlin_kotlin.$_$.fh;
  var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.k4;
  var objectCreate = kotlin_kotlin.$_$.uc;
  var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
  var findPolymorphicSerializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p3;
  var toString_0 = kotlin_kotlin.$_$.c3;
  var Companion_getInstance_0 = kotlin_kotlin.$_$.j5;
  var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1;
  var Companion_getInstance_1 = kotlin_kotlin.$_$.i5;
  var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
  var Companion_getInstance_2 = kotlin_kotlin.$_$.l5;
  var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
  var setOf = kotlin_kotlin.$_$.k9;
  var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.b3;
  var numberToChar = kotlin_kotlin.$_$.qc;
  var equals_0 = kotlin_kotlin.$_$.ye;
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.gj;
  var NamedValueDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t2;
  var ByteCompanionObject_instance = kotlin_kotlin.$_$.v4;
  var toByte = kotlin_kotlin.$_$.yc;
  var ShortCompanionObject_instance = kotlin_kotlin.$_$.z4;
  var toShort = kotlin_kotlin.$_$.ad;
  var single = kotlin_kotlin.$_$.xf;
  var Char = kotlin_kotlin.$_$.ph;
  var emptySet = kotlin_kotlin.$_$.k7;
  var plus_0 = kotlin_kotlin.$_$.v8;
  var toInt = kotlin_kotlin.$_$.ug;
  var toList = kotlin_kotlin.$_$.t9;
  var enumEntries = kotlin_kotlin.$_$.za;
  var Enum = kotlin_kotlin.$_$.uh;
  var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
  var last = kotlin_kotlin.$_$.h8;
  var removeLast = kotlin_kotlin.$_$.f9;
  var lastIndexOf = kotlin_kotlin.$_$.of;
  var Long = kotlin_kotlin.$_$.ai;
  var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.x2;
  var Companion_getInstance_3 = kotlin_kotlin.$_$.g5;
  var numberToLong = kotlin_kotlin.$_$.tc;
  var charArray = kotlin_kotlin.$_$.hb;
  var indexOf = kotlin_kotlin.$_$.df;
  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(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.l4p_1 = configuration;
    this.m4p_1 = serializersModule;
    this.n4p_1 = new DescriptorSchemaCache();
  }
  protoOf(Json).t45 = function () {
    return this.m4p_1;
  };
  protoOf(Json).r45 = function (serializer, value) {
    var result = new JsonToStringWriter();
    try {
      encodeByWriter(this, result, serializer, value);
      return result.toString();
    }finally {
      result.qy();
    }
  };
  protoOf(Json).s45 = function (deserializer, string) {
    var lexer = new StringJsonLexer(string);
    var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.q44(), null);
    var result = input.h48(deserializer);
    lexer.c4q();
    return result;
  };
  protoOf(Json).o4p = 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.s4q_1);
  }
  function JsonBuilder(json) {
    this.d4q_1 = json.l4p_1.t4q_1;
    this.e4q_1 = json.l4p_1.y4q_1;
    this.f4q_1 = json.l4p_1.u4q_1;
    this.g4q_1 = json.l4p_1.v4q_1;
    this.h4q_1 = json.l4p_1.w4q_1;
    this.i4q_1 = json.l4p_1.x4q_1;
    this.j4q_1 = json.l4p_1.z4q_1;
    this.k4q_1 = json.l4p_1.a4r_1;
    this.l4q_1 = json.l4p_1.b4r_1;
    this.m4q_1 = json.l4p_1.c4r_1;
    this.n4q_1 = json.l4p_1.d4r_1;
    this.o4q_1 = json.l4p_1.e4r_1;
    this.p4q_1 = json.l4p_1.f4r_1;
    this.q4q_1 = json.l4p_1.g4r_1;
    this.r4q_1 = json.l4p_1.h4r_1;
    this.s4q_1 = json.t45();
  }
  protoOf(JsonBuilder).f3 = function () {
    if (this.l4q_1) {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(this.m4q_1 === 'type')) {
        // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
        var message = 'Class discriminator should not be specified when array polymorphism is specified';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
    }
    if (!this.i4q_1) {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(this.j4q_1 === '    ')) {
        // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' 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.j4q_1 === '    ')) {
      var tmp$ret$3;
      $l$block: {
        // Inline function 'kotlin.text.all' call
        var indexedObject = this.j4q_1;
        var inductionVariable = 0;
        while (inductionVariable < charSequenceLength(indexedObject)) {
          var element = charSequenceGet(indexedObject, inductionVariable);
          inductionVariable = inductionVariable + 1 | 0;
          // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' 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.<anonymous>' call
        var message_1 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.j4q_1;
        throw IllegalArgumentException_init_$Create$(toString(message_1));
      }
    }
    return new JsonConfiguration(this.d4q_1, this.f4q_1, this.g4q_1, this.h4q_1, this.i4q_1, this.e4q_1, this.j4q_1, this.k4q_1, this.l4q_1, this.m4q_1, this.n4q_1, this.o4q_1, this.p4q_1, this.q4q_1, this.r4q_1);
  };
  function validateConfiguration($this) {
    if (equals($this.t45(), EmptySerializersModule()))
      return Unit_instance;
    var collector = new PolymorphismValidator($this.l4p_1.b4r_1, $this.l4p_1.c4r_1);
    $this.t45().n4o(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.t4q_1 = encodeDefaults;
    this.u4q_1 = ignoreUnknownKeys;
    this.v4q_1 = isLenient;
    this.w4q_1 = allowStructuredMapKeys;
    this.x4q_1 = prettyPrint;
    this.y4q_1 = explicitNulls;
    this.z4q_1 = prettyPrintIndent;
    this.a4r_1 = coerceInputValues;
    this.b4r_1 = useArrayPolymorphism;
    this.c4r_1 = classDiscriminator;
    this.d4r_1 = allowSpecialFloatingPointValues;
    this.e4r_1 = useAlternativeNames;
    this.f4r_1 = namingStrategy;
    this.g4r_1 = decodeEnumsCaseInsensitive;
    this.h4r_1 = allowTrailingComma;
  }
  protoOf(JsonConfiguration).toString = function () {
    return 'JsonConfiguration(encodeDefaults=' + this.t4q_1 + ', ignoreUnknownKeys=' + this.u4q_1 + ', isLenient=' + this.v4q_1 + ', ' + ('allowStructuredMapKeys=' + this.w4q_1 + ', prettyPrint=' + this.x4q_1 + ', explicitNulls=' + this.y4q_1 + ', ') + ("prettyPrintIndent='" + this.z4q_1 + "', coerceInputValues=" + this.a4r_1 + ', useArrayPolymorphism=' + this.b4r_1 + ', ') + ("classDiscriminator='" + this.c4r_1 + "', allowSpecialFloatingPointValues=" + this.d4r_1 + ', useAlternativeNames=' + this.e4r_1 + ', ') + ('namingStrategy=' + this.f4r_1 + ', decodeEnumsCaseInsensitive=' + this.g4r_1 + ', allowTrailingComma=' + this.h4r_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.i4r_1 = baseClass;
    this.j4r_1 = buildSerialDescriptor('JsonContentPolymorphicSerializer<' + this.i4r_1.f7() + '>', SEALED_getInstance(), []);
  }
  protoOf(JsonContentPolymorphicSerializer).q44 = function () {
    return this.j4r_1;
  };
  protoOf(JsonContentPolymorphicSerializer).g45 = function (encoder, value) {
    var tmp0_elvis_lhs = encoder.t45().i4a(this.i4r_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.i4r_1);
    } else {
      tmp = tmp1_elvis_lhs;
    }
    var actualSerializer = tmp;
    (isInterface(actualSerializer, KSerializer) ? actualSerializer : THROW_CCE()).r44(encoder, value);
  };
  protoOf(JsonContentPolymorphicSerializer).r44 = function (encoder, value) {
    return this.g45(encoder, !(value == null) ? value : THROW_CCE());
  };
  protoOf(JsonContentPolymorphicSerializer).s44 = function (decoder) {
    var input = asJsonDecoder(decoder);
    var tree = input.k4r();
    var tmp = this.l4r(tree);
    var actualSerializer = isInterface(tmp, KSerializer) ? tmp : THROW_CCE();
    return input.m4r().o4p(actualSerializer, tree);
  };
  function JsonDecoder() {
  }
  function get_jsonUnquotedLiteralDescriptor() {
    _init_properties_JsonElement_kt__7cbdc2();
    return jsonUnquotedLiteralDescriptor;
  }
  var jsonUnquotedLiteralDescriptor;
  function Companion() {
  }
  protoOf(Companion).n4r = 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.g3b();
  };
  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.<anonymous>.<anonymous>' 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.o4r_1 = content;
  }
  protoOf(JsonObject).q2 = function () {
    return this.o4r_1.q2();
  };
  protoOf(JsonObject).o2 = function () {
    return this.o4r_1.o2();
  };
  protoOf(JsonObject).u = function () {
    return this.o4r_1.u();
  };
  protoOf(JsonObject).p2 = function () {
    return this.o4r_1.p2();
  };
  protoOf(JsonObject).m2m = function (key) {
    return this.o4r_1.r(key);
  };
  protoOf(JsonObject).r = function (key) {
    if (!(!(key == null) ? typeof key === 'string' : false))
      return false;
    return this.m2m((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
  };
  protoOf(JsonObject).ba = function (key) {
    return this.o4r_1.q(key);
  };
  protoOf(JsonObject).q = function (key) {
    if (!(!(key == null) ? typeof key === 'string' : false))
      return null;
    return this.ba((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
  };
  protoOf(JsonObject).c1 = function () {
    return this.o4r_1.c1();
  };
  protoOf(JsonObject).equals = function (other) {
    return equals(this.o4r_1, other);
  };
  protoOf(JsonObject).hashCode = function () {
    return hashCode(this.o4r_1);
  };
  protoOf(JsonObject).toString = function () {
    var tmp = this.o4r_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.<get-intOrNull>.<anonymous>' call
      tmp = (new StringJsonLexer(_this__u8e3s4.g3b())).p4r();
    } 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.mb();
  }
  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.r4r_1.t2();
  }
  function JsonNull$_anonymous__enib48() {
    return JsonNullSerializer_getInstance();
  }
  function JsonNull() {
    JsonNull_instance = this;
    JsonPrimitive.call(this);
    this.q4r_1 = 'null';
    var tmp = this;
    var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
    tmp.r4r_1 = lazy(tmp_0, JsonNull$_anonymous__enib48);
  }
  protoOf(JsonNull).g3b = function () {
    return this.q4r_1;
  };
  protoOf(JsonNull).n4r = function () {
    return _get_$cachedSerializer__te6jhj(this);
  };
  protoOf(JsonNull).v4g = function (typeParamsSerializers) {
    return this.n4r();
  };
  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.s4r_1 = content;
  }
  protoOf(JsonArray).u = function () {
    return this.s4r_1.u();
  };
  protoOf(JsonArray).t4r = function (element) {
    return this.s4r_1.a1(element);
  };
  protoOf(JsonArray).a1 = function (element) {
    if (!(element instanceof JsonElement))
      return false;
    return this.t4r(element instanceof JsonElement ? element : THROW_CCE());
  };
  protoOf(JsonArray).u4r = function (elements) {
    return this.s4r_1.b1(elements);
  };
  protoOf(JsonArray).b1 = function (elements) {
    return this.u4r(elements);
  };
  protoOf(JsonArray).v = function (index) {
    return this.s4r_1.v(index);
  };
  protoOf(JsonArray).v4r = function (element) {
    return this.s4r_1.x(element);
  };
  protoOf(JsonArray).x = function (element) {
    if (!(element instanceof JsonElement))
      return -1;
    return this.v4r(element instanceof JsonElement ? element : THROW_CCE());
  };
  protoOf(JsonArray).c1 = function () {
    return this.s4r_1.c1();
  };
  protoOf(JsonArray).w = function () {
    return this.s4r_1.w();
  };
  protoOf(JsonArray).y = function () {
    return this.s4r_1.y();
  };
  protoOf(JsonArray).z = function (fromIndex, toIndex) {
    return this.s4r_1.z(fromIndex, toIndex);
  };
  protoOf(JsonArray).equals = function (other) {
    return equals(this.s4r_1, other);
  };
  protoOf(JsonArray).hashCode = function () {
    return hashCode(this.s4r_1);
  };
  protoOf(JsonArray).toString = function () {
    return joinToString(this.s4r_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.w4r_1 = isString;
    this.x4r_1 = coerceToInlineType;
    this.y4r_1 = toString(body);
    if (!(this.x4r_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.x4r_1.h46()) {
        // Inline function 'kotlin.require.<anonymous>' call
        var message = 'Failed requirement.';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
    }
  }
  protoOf(JsonLiteral).g3b = function () {
    return this.y4r_1;
  };
  protoOf(JsonLiteral).toString = function () {
    var tmp;
    if (this.w4r_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.<anonymous>' call
      printQuoted(this_0, this.y4r_1);
      tmp = this_0.toString();
    } else {
      tmp = this.y4r_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.w4r_1 === other.w4r_1))
      return false;
    if (!(this.y4r_1 === other.y4r_1))
      return false;
    return true;
  };
  protoOf(JsonLiteral).hashCode = function () {
    var result = getBooleanHashCode(this.w4r_1);
    result = imul(31, result) + getStringHashCode(this.y4r_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.g3b());
  }
  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.<get-int>.<anonymous>' call
      tmp = (new StringJsonLexer(_this__u8e3s4.g3b())).p4r();
    } 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.g3b() + ' is not an Int');
    return result.mb();
  }
  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.<get-long>.<anonymous>' call
      tmp = (new StringJsonLexer(_this__u8e3s4.g3b())).p4r();
    } 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.g3b();
    // 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.g3b());
  }
  function get_contentOrNull(_this__u8e3s4) {
    _init_properties_JsonElement_kt__7cbdc2();
    var tmp;
    if (_this__u8e3s4 instanceof JsonNull) {
      tmp = null;
    } else {
      tmp = _this__u8e3s4.g3b();
    }
    return tmp;
  }
  function get_boolean(_this__u8e3s4) {
    _init_properties_JsonElement_kt__7cbdc2();
    var tmp0_elvis_lhs = toBooleanStrictOrNull_0(_this__u8e3s4.g3b());
    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.b45('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
    $this$buildSerialDescriptor.b45('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0));
    $this$buildSerialDescriptor.b45('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1));
    $this$buildSerialDescriptor.b45('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2));
    $this$buildSerialDescriptor.b45('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3));
    return Unit_instance;
  }
  function JsonElementSerializer$descriptor$lambda$lambda() {
    return JsonPrimitiveSerializer_getInstance().z4r_1;
  }
  function JsonElementSerializer$descriptor$lambda$lambda_0() {
    return JsonNullSerializer_getInstance().a4s_1;
  }
  function JsonElementSerializer$descriptor$lambda$lambda_1() {
    return JsonLiteralSerializer_getInstance().b4s_1;
  }
  function JsonElementSerializer$descriptor$lambda$lambda_2() {
    return JsonObjectSerializer_getInstance().c4s_1;
  }
  function JsonElementSerializer$descriptor$lambda$lambda_3() {
    return JsonArraySerializer_getInstance().d4s_1;
  }
  function JsonElementSerializer() {
    JsonElementSerializer_instance = this;
    var tmp = this;
    var tmp_0 = SEALED_getInstance();
    tmp.e4s_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
  }
  protoOf(JsonElementSerializer).q44 = function () {
    return this.e4s_1;
  };
  protoOf(JsonElementSerializer).f4s = function (encoder, value) {
    verify(encoder);
    if (value instanceof JsonPrimitive) {
      encoder.z49(JsonPrimitiveSerializer_getInstance(), value);
    } else {
      if (value instanceof JsonObject) {
        encoder.z49(JsonObjectSerializer_getInstance(), value);
      } else {
        if (value instanceof JsonArray) {
          encoder.z49(JsonArraySerializer_getInstance(), value);
        }
      }
    }
  };
  protoOf(JsonElementSerializer).r44 = function (encoder, value) {
    return this.f4s(encoder, value instanceof JsonElement ? value : THROW_CCE());
  };
  protoOf(JsonElementSerializer).s44 = function (decoder) {
    var input = asJsonDecoder(decoder);
    return input.k4r();
  };
  var JsonElementSerializer_instance;
  function JsonElementSerializer_getInstance() {
    if (JsonElementSerializer_instance == null)
      new JsonElementSerializer();
    return JsonElementSerializer_instance;
  }
  function JsonPrimitiveSerializer() {
    JsonPrimitiveSerializer_instance = this;
    this.z4r_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
  }
  protoOf(JsonPrimitiveSerializer).q44 = function () {
    return this.z4r_1;
  };
  protoOf(JsonPrimitiveSerializer).g4s = function (encoder, value) {
    verify(encoder);
    var tmp;
    if (value instanceof JsonNull) {
      encoder.z49(JsonNullSerializer_getInstance(), JsonNull_getInstance());
      tmp = Unit_instance;
    } else {
      var tmp_0 = JsonLiteralSerializer_getInstance();
      encoder.z49(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE());
      tmp = Unit_instance;
    }
    return tmp;
  };
  protoOf(JsonPrimitiveSerializer).r44 = function (encoder, value) {
    return this.g4s(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
  };
  protoOf(JsonPrimitiveSerializer).s44 = function (decoder) {
    var result = asJsonDecoder(decoder).k4r();
    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.h4s_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).q44();
    this.i4s_1 = 'kotlinx.serialization.json.JsonObject';
  }
  protoOf(JsonObjectDescriptor).f46 = function () {
    return this.h4s_1.f46();
  };
  protoOf(JsonObjectDescriptor).g46 = function () {
    return this.h4s_1.g46();
  };
  protoOf(JsonObjectDescriptor).h46 = function () {
    return this.h4s_1.h46();
  };
  protoOf(JsonObjectDescriptor).b46 = function () {
    return this.h4s_1.b46();
  };
  protoOf(JsonObjectDescriptor).i46 = function () {
    return this.h4s_1.i46();
  };
  protoOf(JsonObjectDescriptor).j46 = function (index) {
    return this.h4s_1.j46(index);
  };
  protoOf(JsonObjectDescriptor).k46 = function (index) {
    return this.h4s_1.k46(index);
  };
  protoOf(JsonObjectDescriptor).l46 = function (name) {
    return this.h4s_1.l46(name);
  };
  protoOf(JsonObjectDescriptor).m46 = function (index) {
    return this.h4s_1.m46(index);
  };
  protoOf(JsonObjectDescriptor).n46 = function (index) {
    return this.h4s_1.n46(index);
  };
  protoOf(JsonObjectDescriptor).q45 = function () {
    return this.i4s_1;
  };
  var JsonObjectDescriptor_instance;
  function JsonObjectDescriptor_getInstance() {
    if (JsonObjectDescriptor_instance == null)
      new JsonObjectDescriptor();
    return JsonObjectDescriptor_instance;
  }
  function JsonObjectSerializer() {
    JsonObjectSerializer_instance = this;
    this.c4s_1 = JsonObjectDescriptor_getInstance();
  }
  protoOf(JsonObjectSerializer).q44 = function () {
    return this.c4s_1;
  };
  protoOf(JsonObjectSerializer).j4s = function (encoder, value) {
    verify(encoder);
    MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).r44(encoder, value);
  };
  protoOf(JsonObjectSerializer).r44 = function (encoder, value) {
    return this.j4s(encoder, value instanceof JsonObject ? value : THROW_CCE());
  };
  protoOf(JsonObjectSerializer).s44 = function (decoder) {
    verify_0(decoder);
    return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).s44(decoder));
  };
  var JsonObjectSerializer_instance;
  function JsonObjectSerializer_getInstance() {
    if (JsonObjectSerializer_instance == null)
      new JsonObjectSerializer();
    return JsonObjectSerializer_instance;
  }
  function JsonNullSerializer() {
    JsonNullSerializer_instance = this;
    this.a4s_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
  }
  protoOf(JsonNullSerializer).q44 = function () {
    return this.a4s_1;
  };
  protoOf(JsonNullSerializer).k4s = function (encoder, value) {
    verify(encoder);
    encoder.c49();
  };
  protoOf(JsonNullSerializer).r44 = function (encoder, value) {
    return this.k4s(encoder, value instanceof JsonNull ? value : THROW_CCE());
  };
  protoOf(JsonNullSerializer).s44 = function (decoder) {
    verify_0(decoder);
    if (decoder.t47()) {
      throw new JsonDecodingException("Expected 'null' literal");
    }
    decoder.u47();
    return JsonNull_getInstance();
  };
  var JsonNullSerializer_instance;
  function JsonNullSerializer_getInstance() {
    if (JsonNullSerializer_instance == null)
      new JsonNullSerializer();
    return JsonNullSerializer_instance;
  }
  function JsonArrayDescriptor() {
    JsonArrayDescriptor_instance = this;
    this.l4s_1 = ListSerializer(JsonElementSerializer_getInstance()).q44();
    this.m4s_1 = 'kotlinx.serialization.json.JsonArray';
  }
  protoOf(JsonArrayDescriptor).f46 = function () {
    return this.l4s_1.f46();
  };
  protoOf(JsonArrayDescriptor).g46 = function () {
    return this.l4s_1.g46();
  };
  protoOf(JsonArrayDescriptor).h46 = function () {
    return this.l4s_1.h46();
  };
  protoOf(JsonArrayDescriptor).b46 = function () {
    return this.l4s_1.b46();
  };
  protoOf(JsonArrayDescriptor).i46 = function () {
    return this.l4s_1.i46();
  };
  protoOf(JsonArrayDescriptor).j46 = function (index) {
    return this.l4s_1.j46(index);
  };
  protoOf(JsonArrayDescriptor).k46 = function (index) {
    return this.l4s_1.k46(index);
  };
  protoOf(JsonArrayDescriptor).l46 = function (name) {
    return this.l4s_1.l46(name);
  };
  protoOf(JsonArrayDescriptor).m46 = function (index) {
    return this.l4s_1.m46(index);
  };
  protoOf(JsonArrayDescriptor).n46 = function (index) {
    return this.l4s_1.n46(index);
  };
  protoOf(JsonArrayDescriptor).q45 = function () {
    return this.m4s_1;
  };
  var JsonArrayDescriptor_instance;
  function JsonArrayDescriptor_getInstance() {
    if (JsonArrayDescriptor_instance == null)
      new JsonArrayDescriptor();
    return JsonArrayDescriptor_instance;
  }
  function JsonArraySerializer() {
    JsonArraySerializer_instance = this;
    this.d4s_1 = JsonArrayDescriptor_getInstance();
  }
  protoOf(JsonArraySerializer).q44 = function () {
    return this.d4s_1;
  };
  protoOf(JsonArraySerializer).n4s = function (encoder, value) {
    verify(encoder);
    ListSerializer(JsonElementSerializer_getInstance()).r44(encoder, value);
  };
  protoOf(JsonArraySerializer).r44 = function (encoder, value) {
    return this.n4s(encoder, value instanceof JsonArray ? value : THROW_CCE());
  };
  protoOf(JsonArraySerializer).s44 = function (decoder) {
    verify_0(decoder);
    return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).s44(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.b4s_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
  }
  protoOf(JsonLiteralSerializer).q44 = function () {
    return this.b4s_1;
  };
  protoOf(JsonLiteralSerializer).o4s = function (encoder, value) {
    verify(encoder);
    if (value.w4r_1) {
      return encoder.l49(value.y4r_1);
    }
    if (!(value.x4r_1 == null)) {
      return encoder.n49(value.x4r_1).l49(value.y4r_1);
    }
    var tmp0_safe_receiver = toLongOrNull(value.y4r_1);
    if (tmp0_safe_receiver == null)
      null;
    else {
      // Inline function 'kotlin.let' call
      // Inline function 'kotlin.contracts.contract' call
      return encoder.h49(tmp0_safe_receiver);
    }
    var tmp1_safe_receiver = toULongOrNull(value.y4r_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)).vo_1;
      var tmp_1 = encoder.n49(serializer_0(Companion_getInstance()).q44());
      // Inline function 'kotlin.ULong.toLong' call
      var tmp$ret$1 = _ULong___get_data__impl__fggpzb(it);
      tmp_1.h49(tmp$ret$1);
      return Unit_instance;
    }
    var tmp2_safe_receiver = toDoubleOrNull(value.y4r_1);
    if (tmp2_safe_receiver == null)
      null;
    else {
      // Inline function 'kotlin.let' call
      // Inline function 'kotlin.contracts.contract' call
      return encoder.j49(tmp2_safe_receiver);
    }
    var tmp3_safe_receiver = toBooleanStrictOrNull(value.y4r_1);
    if (tmp3_safe_receiver == null)
      null;
    else {
      // Inline function 'kotlin.let' call
      // Inline function 'kotlin.contracts.contract' call
      return encoder.d49(tmp3_safe_receiver);
    }
    encoder.l49(value.y4r_1);
  };
  protoOf(JsonLiteralSerializer).r44 = function (encoder, value) {
    return this.o4s(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
  };
  protoOf(JsonLiteralSerializer).s44 = function (decoder) {
    var result = asJsonDecoder(decoder).k4r();
    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.p4s_1;
    original$factory();
    return this_0.t2();
  }
  function defer$1($deferred) {
    this.p4s_1 = lazy_0($deferred);
  }
  protoOf(defer$1).q45 = function () {
    return _get_original__l7ku1m(this).q45();
  };
  protoOf(defer$1).i46 = function () {
    return _get_original__l7ku1m(this).i46();
  };
  protoOf(defer$1).g46 = function () {
    return _get_original__l7ku1m(this).g46();
  };
  protoOf(defer$1).m46 = function (index) {
    return _get_original__l7ku1m(this).m46(index);
  };
  protoOf(defer$1).l46 = function (name) {
    return _get_original__l7ku1m(this).l46(name);
  };
  protoOf(defer$1).j46 = function (index) {
    return _get_original__l7ku1m(this).j46(index);
  };
  protoOf(defer$1).k46 = function (index) {
    return _get_original__l7ku1m(this).k46(index);
  };
  protoOf(defer$1).n46 = function (index) {
    return _get_original__l7ku1m(this).n46(index);
  };
  function original$factory() {
    return getPropertyCallableRef('original', 1, KProperty1, function (receiver) {
      return _get_original__l7ku1m(receiver);
    }, null);
  }
  function JsonEncoder() {
  }
  function Composer(writer) {
    this.q4s_1 = writer;
    this.r4s_1 = true;
  }
  protoOf(Composer).s4s = function () {
    this.r4s_1 = true;
  };
  protoOf(Composer).t4s = function () {
    return Unit_instance;
  };
  protoOf(Composer).u4s = function () {
    this.r4s_1 = false;
  };
  protoOf(Composer).v4s = function () {
    return Unit_instance;
  };
  protoOf(Composer).w4s = function (v) {
    return this.q4s_1.x4s(v);
  };
  protoOf(Composer).y4s = function (v) {
    return this.q4s_1.z4s(v);
  };
  protoOf(Composer).a4t = function (v) {
    return this.q4s_1.z4s(v.toString());
  };
  protoOf(Composer).b4t = function (v) {
    return this.q4s_1.z4s(v.toString());
  };
  protoOf(Composer).c4t = function (v) {
    return this.q4s_1.d4t(toLong(v));
  };
  protoOf(Composer).e4t = function (v) {
    return this.q4s_1.d4t(toLong(v));
  };
  protoOf(Composer).f4t = function (v) {
    return this.q4s_1.d4t(toLong(v));
  };
  protoOf(Composer).g4t = function (v) {
    return this.q4s_1.d4t(v);
  };
  protoOf(Composer).h4t = function (v) {
    return this.q4s_1.z4s(v.toString());
  };
  protoOf(Composer).i4t = function (value) {
    return this.q4s_1.j4t(value);
  };
  function Composer_0(sb, json) {
    return json.l4p_1.x4q_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
  }
  function ComposerForUnsignedNumbers(writer, forceQuoting) {
    Composer.call(this, writer);
    this.m4t_1 = forceQuoting;
  }
  protoOf(ComposerForUnsignedNumbers).f4t = function (v) {
    if (this.m4t_1) {
      // Inline function 'kotlin.toUInt' call
      var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
      this.i4t(UInt__toString_impl_dbgl21(tmp$ret$0));
    } else {
      // Inline function 'kotlin.toUInt' call
      var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
      this.y4s(UInt__toString_impl_dbgl21(tmp$ret$1));
    }
  };
  protoOf(ComposerForUnsignedNumbers).g4t = function (v) {
    if (this.m4t_1) {
      // Inline function 'kotlin.toULong' call
      var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
      this.i4t(ULong__toString_impl_f9au7k(tmp$ret$0));
    } else {
      // Inline function 'kotlin.toULong' call
      var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
      this.y4s(ULong__toString_impl_f9au7k(tmp$ret$1));
    }
  };
  protoOf(ComposerForUnsignedNumbers).c4t = function (v) {
    if (this.m4t_1) {
      // Inline function 'kotlin.toUByte' call
      var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
      this.i4t(UByte__toString_impl_v72jg(tmp$ret$0));
    } else {
      // Inline function 'kotlin.toUByte' call
      var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
      this.y4s(UByte__toString_impl_v72jg(tmp$ret$1));
    }
  };
  protoOf(ComposerForUnsignedNumbers).e4t = function (v) {
    if (this.m4t_1) {
      // Inline function 'kotlin.toUShort' call
      var tmp$ret$0 = _UShort___init__impl__jigrne(v);
      this.i4t(UShort__toString_impl_edaoee(tmp$ret$0));
    } else {
      // Inline function 'kotlin.toUShort' call
      var tmp$ret$1 = _UShort___init__impl__jigrne(v);
      this.y4s(UShort__toString_impl_edaoee(tmp$ret$1));
    }
  };
  function ComposerForUnquotedLiterals(writer, forceQuoting) {
    Composer.call(this, writer);
    this.p4t_1 = forceQuoting;
  }
  protoOf(ComposerForUnquotedLiterals).i4t = function (value) {
    if (this.p4t_1) {
      protoOf(Composer).i4t.call(this, value);
    } else {
      protoOf(Composer).y4s.call(this, value);
    }
  };
  function ComposerWithPrettyPrint(writer, json) {
    Composer.call(this, writer);
    this.s4t_1 = json;
    this.t4t_1 = 0;
  }
  protoOf(ComposerWithPrettyPrint).s4s = function () {
    this.r4s_1 = true;
    this.t4t_1 = this.t4t_1 + 1 | 0;
  };
  protoOf(ComposerWithPrettyPrint).t4s = function () {
    this.t4t_1 = this.t4t_1 - 1 | 0;
  };
  protoOf(ComposerWithPrettyPrint).u4s = function () {
    this.r4s_1 = false;
    this.y4s('\n');
    // Inline function 'kotlin.repeat' call
    var times = this.t4t_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.<anonymous>' call
        this.y4s(this.s4t_1.l4p_1.z4q_1);
      }
       while (inductionVariable < times);
  };
  protoOf(ComposerWithPrettyPrint).v4s = function () {
    this.w4s(_Char___init__impl__6a9atx(32));
  };
  function readIfAbsent($this, descriptor, index) {
    $this.v4t_1 = !descriptor.n46(index) ? descriptor.k46(index).b46() : false;
    return $this.v4t_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.u4t_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
    this.v4t_1 = false;
  }
  protoOf(JsonElementMarker).l4e = function (index) {
    this.u4t_1.l4e(index);
  };
  protoOf(JsonElementMarker).m4e = function () {
    return this.u4t_1.m4e();
  };
  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.w4t('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.y4p_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.x4t('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.q45() + "' 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.i46() + "'.\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.l46(name);
    if (!(index === -3))
      return index;
    if (!json.l4p_1.e4r_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.q45() + " 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.m46(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
  }
  function namingStrategy(_this__u8e3s4, json) {
    _init_properties_JsonNamesMap_kt__cbbp0k();
    return equals(_this__u8e3s4.i46(), CLASS_getInstance()) ? json.l4p_1.f4r_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.z4t(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
  }
  function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
    _init_properties_JsonNamesMap_kt__cbbp0k();
    return _this__u8e3s4.l4p_1.g4r_1 ? equals(descriptor.i46(), 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.z4t(_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.g46();
    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.j46(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.i1(element);
          }
        }
        var tmp1_safe_receiver = singleOrNull(destination);
        var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a4u_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.<anonymous>' 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.m46(i).toLowerCase();
        } else if (!(strategyForClasses == null)) {
          tmp_0 = strategyForClasses.b4u(_this__u8e3s4, i, _this__u8e3s4.m46(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.c1()) {
      // Inline function 'kotlinx.serialization.json.internal.buildDeserializationNamesMap.<anonymous>' 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.i46(), 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.m46(index) + ' is already one of the names for ' + entity + ' ' + ($this_buildDeserializationNamesMap.m46(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.g46();
      // 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.m46(tmp_2);
        tmp_1[tmp_2] = $strategy.b4u($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.e4u_1, 2);
    $this.c4u_1 = copyOf($this.c4u_1, newSize);
    $this.d4u_1 = copyOf_0($this.d4u_1, newSize);
  }
  function JsonPath() {
    var tmp = this;
    // Inline function 'kotlin.arrayOfNulls' call
    tmp.c4u_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.d4u_1 = tmp_2;
    this.e4u_1 = -1;
  }
  protoOf(JsonPath).f4u = function (sd) {
    this.e4u_1 = this.e4u_1 + 1 | 0;
    var depth = this.e4u_1;
    if (depth === this.c4u_1.length) {
      resize(this);
    }
    this.c4u_1[depth] = sd;
  };
  protoOf(JsonPath).g4u = function (index) {
    this.d4u_1[this.e4u_1] = index;
  };
  protoOf(JsonPath).h4u = function (key) {
    var tmp;
    if (!(this.d4u_1[this.e4u_1] === -2)) {
      this.e4u_1 = this.e4u_1 + 1 | 0;
      tmp = this.e4u_1 === this.c4u_1.length;
    } else {
      tmp = false;
    }
    if (tmp) {
      resize(this);
    }
    this.c4u_1[this.e4u_1] = key;
    this.d4u_1[this.e4u_1] = -2;
  };
  protoOf(JsonPath).i4u = function () {
    if (this.d4u_1[this.e4u_1] === -2) {
      this.c4u_1[this.e4u_1] = Tombstone_instance;
    }
  };
  protoOf(JsonPath).j4u = function () {
    var depth = this.e4u_1;
    if (this.d4u_1[depth] === -2) {
      this.d4u_1[depth] = -1;
      this.e4u_1 = this.e4u_1 - 1 | 0;
    }
    if (!(this.e4u_1 === -1)) {
      this.e4u_1 = this.e4u_1 - 1 | 0;
    }
  };
  protoOf(JsonPath).k4u = 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.<anonymous>' call
    this_0.y5('$');
    // Inline function 'kotlin.repeat' call
    var times = this.e4u_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.<anonymous>.<anonymous>' call
        var element = this.c4u_1[index];
        if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
          if (equals(element.i46(), LIST_getInstance())) {
            if (!(this.d4u_1[index] === -1)) {
              this_0.y5('[');
              this_0.v8(this.d4u_1[index]);
              this_0.y5(']');
            }
          } else {
            var idx = this.d4u_1[index];
            if (idx >= 0) {
              this_0.y5('.');
              this_0.y5(element.m46(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.k4u();
  };
  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.z49(serializer, value);
  }
  function readObject($this) {
    // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
    var lastToken = $this.t4u_1.x4u(get_TC_BEGIN_OBJ());
    if ($this.t4u_1.y4u() === get_TC_COMMA()) {
      $this.t4u_1.x4t('Unexpected leading comma');
    }
    // Inline function 'kotlin.collections.linkedMapOf' call
    var result = LinkedHashMap_init_$Create$();
    $l$loop: while ($this.t4u_1.z4u()) {
      var key = $this.u4u_1 ? $this.t4u_1.b4v() : $this.t4u_1.a4v();
      $this.t4u_1.x4u(get_TC_COLON());
      // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObject.<anonymous>' call
      var element = $this.c4v();
      // Inline function 'kotlin.collections.set' call
      result.s(key, element);
      lastToken = $this.t4u_1.d4v();
      var tmp0_subject = lastToken;
      if (tmp0_subject !== get_TC_COMMA())
        if (tmp0_subject === get_TC_END_OBJ())
          break $l$loop;
        else {
          $this.t4u_1.x4t('Expected end of the object or comma');
        }
    }
    if (lastToken === get_TC_BEGIN_OBJ()) {
      $this.t4u_1.x4u(get_TC_END_OBJ());
    } else if (lastToken === get_TC_COMMA()) {
      if (!$this.v4u_1) {
        invalidTrailingComma($this.t4u_1);
      }
      $this.t4u_1.x4u(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.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  }
  function readArray($this) {
    var lastToken = $this.t4u_1.d4v();
    if ($this.t4u_1.y4u() === get_TC_COMMA()) {
      $this.t4u_1.x4t('Unexpected leading comma');
    }
    // Inline function 'kotlin.collections.arrayListOf' call
    var result = ArrayList_init_$Create$();
    while ($this.t4u_1.z4u()) {
      var element = $this.c4v();
      result.i1(element);
      lastToken = $this.t4u_1.d4v();
      if (!(lastToken === get_TC_COMMA())) {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
        var this_0 = $this.t4u_1;
        var condition = lastToken === get_TC_END_LIST();
        var position = this_0.y4p_1;
        if (!condition) {
          // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readArray.<anonymous>' call
          var tmp$ret$1 = 'Expected end of the array or comma';
          this_0.x4t(tmp$ret$1, position);
        }
      }
    }
    if (lastToken === get_TC_BEGIN_LIST()) {
      $this.t4u_1.x4u(get_TC_END_LIST());
    } else if (lastToken === get_TC_COMMA()) {
      if (!$this.v4u_1) {
        invalidTrailingComma($this.t4u_1, 'array');
      }
      $this.t4u_1.x4u(get_TC_END_LIST());
    }
    return new JsonArray(result);
  }
  function readValue($this, isString) {
    var tmp;
    if ($this.u4u_1 ? true : !isString) {
      tmp = $this.t4u_1.b4v();
    } else {
      tmp = $this.t4u_1.a4v();
    }
    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.a4w_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(JsonTreeReader$readDeepRecursive$slambda).f4w = function ($this$$receiver, it, $completion) {
    var tmp = this.g4w($this$$receiver, it, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(JsonTreeReader$readDeepRecursive$slambda).um = function (p1, p2, $completion) {
    var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
    return this.f4w(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
  };
  protoOf(JsonTreeReader$readDeepRecursive$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 3;
            this.d4w_1 = this.a4w_1.t4u_1.y4u();
            if (this.d4w_1 === get_TC_STRING()) {
              this.e4w_1 = readValue(this.a4w_1, true);
              this.hd_1 = 2;
              continue $sm;
            } else {
              if (this.d4w_1 === get_TC_OTHER()) {
                this.e4w_1 = readValue(this.a4w_1, false);
                this.hd_1 = 2;
                continue $sm;
              } else {
                if (this.d4w_1 === get_TC_BEGIN_OBJ()) {
                  this.hd_1 = 1;
                  suspendResult = readObject_0(this.b4w_1, this.a4w_1, this);
                  if (suspendResult === get_COROUTINE_SUSPENDED()) {
                    return suspendResult;
                  }
                  continue $sm;
                } else {
                  if (this.d4w_1 === get_TC_BEGIN_LIST()) {
                    this.e4w_1 = readArray(this.a4w_1);
                    this.hd_1 = 2;
                    continue $sm;
                  } else {
                    var tmp_0 = this;
                    this.a4w_1.t4u_1.x4t("Can't begin reading element, unexpected token");
                  }
                }
              }
            }

            break;
          case 1:
            this.e4w_1 = suspendResult;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            return this.e4w_1;
          case 3:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 3) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(JsonTreeReader$readDeepRecursive$slambda).g4w = function ($this$$receiver, it, completion) {
    var i = new JsonTreeReader$readDeepRecursive$slambda(this.a4w_1, completion);
    i.b4w_1 = $this$$receiver;
    i.c4w_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.f4w($this$$receiver, it, $completion);
    };
    l.$arity = 2;
    return l;
  }
  function $readObjectCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.m4v_1 = _this__u8e3s4;
    this.n4v_1 = _this__u8e3s4_0;
  }
  protoOf($readObjectCOROUTINE$0).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            var tmp_0 = this;
            tmp_0.o4v_1 = this.m4v_1;
            this.p4v_1 = this.o4v_1.t4u_1.x4u(get_TC_BEGIN_OBJ());
            if (this.o4v_1.t4u_1.y4u() === get_TC_COMMA()) {
              this.o4v_1.t4u_1.x4t('Unexpected leading comma');
            }

            var tmp_1 = this;
            tmp_1.q4v_1 = LinkedHashMap_init_$Create$();
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.o4v_1.t4u_1.z4u()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.r4v_1 = this.o4v_1.u4u_1 ? this.o4v_1.t4u_1.b4v() : this.o4v_1.t4u_1.a4v();
            this.o4v_1.t4u_1.x4u(get_TC_COLON());
            this.hd_1 = 2;
            suspendResult = this.n4v_1.mm(Unit_instance, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            var element = suspendResult;
            var this_0 = this.q4v_1;
            var key = this.r4v_1;
            this_0.s(key, element);
            this.p4v_1 = this.o4v_1.t4u_1.d4v();
            var tmp0_subject = this.p4v_1;
            if (tmp0_subject === get_TC_COMMA()) {
              this.hd_1 = 3;
              continue $sm;
            } else {
              if (tmp0_subject === get_TC_END_OBJ()) {
                this.hd_1 = 4;
                continue $sm;
              } else {
                this.o4v_1.t4u_1.x4t('Expected end of the object or comma');
              }
            }

            break;
          case 3:
            this.hd_1 = 1;
            continue $sm;
          case 4:
            if (this.p4v_1 === get_TC_BEGIN_OBJ()) {
              this.o4v_1.t4u_1.x4u(get_TC_END_OBJ());
            } else if (this.p4v_1 === get_TC_COMMA()) {
              if (!this.o4v_1.v4u_1) {
                invalidTrailingComma(this.o4v_1.t4u_1);
              }
              this.o4v_1.t4u_1.x4u(get_TC_END_OBJ());
            }

            return new JsonObject(this.q4v_1);
          case 5:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 5) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function JsonTreeReader(configuration, lexer) {
    this.t4u_1 = lexer;
    this.u4u_1 = configuration.v4q_1;
    this.v4u_1 = configuration.h4r_1;
    this.w4u_1 = 0;
  }
  protoOf(JsonTreeReader).c4v = function () {
    var token = this.t4u_1.y4u();
    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.w4u_1 = this.w4u_1 + 1 | 0;
      if (this.w4u_1 === 200) {
        tmp_0 = readDeepRecursive(this);
      } else {
        tmp_0 = readObject(this);
      }
      var result = tmp_0;
      this.w4u_1 = this.w4u_1 - 1 | 0;
      tmp = result;
    } else if (token === get_TC_BEGIN_LIST()) {
      tmp = readArray(this);
    } else {
      this.t4u_1.x4t('Cannot read Json element because of unexpected ' + tokenDescription(token));
    }
    return tmp;
  };
  function classDiscriminator(_this__u8e3s4, json) {
    var tmp0_iterator = _this__u8e3s4.f46().w();
    while (tmp0_iterator.f()) {
      var annotation = tmp0_iterator.e();
      if (annotation instanceof JsonClassDiscriminator)
        return annotation.h4w_1;
    }
    return json.l4p_1.c4r_1;
  }
  function decodeSerializableValuePolymorphic(_this__u8e3s4, deserializer) {
    var tmp;
    if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
      tmp = true;
    } else {
      tmp = _this__u8e3s4.m4r().l4p_1.b4r_1;
    }
    if (tmp) {
      return deserializer.s44(_this__u8e3s4);
    }
    var discriminator = classDiscriminator(deserializer.q44(), _this__u8e3s4.m4r());
    // Inline function 'kotlinx.serialization.json.internal.cast' call
    var value = _this__u8e3s4.k4r();
    var descriptor = deserializer.q44();
    if (!(value instanceof JsonObject)) {
      throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.q45() + ', but had ' + getKClassFromExpression(value));
    }
    var jsonTree = value;
    var tmp0_safe_receiver = jsonTree.ba(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.m4r(), discriminator, jsonTree, actualSerializer);
  }
  function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
    if (!(serializer instanceof SealedClassSerializer))
      return Unit_instance;
    if (jsonCachedSerialNames(actualSerializer.q44()).a1(classDiscriminator)) {
      var baseName = serializer.q44().q45();
      var actualName = actualSerializer.q44().q45();
      // 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$1rk9rdt(serializer, actualSerializer, classDiscriminator) {
    return validateIfSealed(serializer, actualSerializer, classDiscriminator);
  }
  function checkKind_0($this, descriptor, actualClass) {
    var kind = descriptor.i46();
    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.i4w_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.g46();
    if (inductionVariable < last)
      do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        var name = descriptor.m46(i);
        if (name === $this.j4w_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.i4w_1 = useArrayPolymorphism;
    this.j4w_1 = discriminator;
  }
  protoOf(PolymorphismValidator).q4o = function (kClass, provider) {
  };
  protoOf(PolymorphismValidator).t4o = function (baseClass, actualClass, actualSerializer) {
    var descriptor = actualSerializer.q44();
    checkKind_0(this, descriptor, actualClass);
    if (!this.i4w_1) {
      checkDiscriminatorCollisions(this, descriptor, actualClass);
    }
  };
  protoOf(PolymorphismValidator).u4o = function (baseClass, defaultSerializerProvider) {
  };
  protoOf(PolymorphismValidator).v4o = function (baseClass, defaultDeserializerProvider) {
  };
  function Key() {
  }
  function DescriptorSchemaCache() {
    this.y4t_1 = createMapForCache(16);
  }
  protoOf(DescriptorSchemaCache).k4w = function (descriptor, key, value) {
    // Inline function 'kotlin.collections.set' call
    // Inline function 'kotlin.collections.getOrPut' call
    var this_0 = this.y4t_1;
    var value_0 = this_0.q(descriptor);
    var tmp;
    if (value_0 == null) {
      // Inline function 'kotlinx.serialization.json.internal.DescriptorSchemaCache.set.<anonymous>' 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).z4t = function (descriptor, key, defaultValue) {
    var tmp0_safe_receiver = this.l4w(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.k4w(descriptor, key, value);
    return value;
  };
  protoOf(DescriptorSchemaCache).l4w = function (descriptor, key) {
    var tmp0_safe_receiver = this.y4t_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.m4w_1 = discriminatorToSkip;
  }
  function trySkip(_this__u8e3s4, $this, unknownKey) {
    if (_this__u8e3s4 == null)
      return false;
    if (_this__u8e3s4.m4w_1 === unknownKey) {
      _this__u8e3s4.m4w_1 = null;
      return true;
    }
    return false;
  }
  function skipLeftoverElements($this, descriptor) {
    $l$loop: while (true) {
      var tmp = $this.y48(descriptor);
      if (!!(tmp === -1)) {
        break $l$loop;
      }
    }
  }
  function checkLeadingComma($this) {
    if ($this.s4p_1.y4u() === get_TC_COMMA()) {
      $this.s4p_1.x4t('Unexpected leading comma');
    }
  }
  function decodeMapIndex($this) {
    var hasComma = false;
    var decodingKey = !(($this.u4p_1 % 2 | 0) === 0);
    if (decodingKey) {
      if (!($this.u4p_1 === -1)) {
        hasComma = $this.s4p_1.o4w();
      }
    } else {
      $this.s4p_1.n4w(get_COLON());
    }
    var tmp;
    if ($this.s4p_1.z4u()) {
      if (decodingKey) {
        if ($this.u4p_1 === -1) {
          // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
          var this_0 = $this.s4p_1;
          var condition = !hasComma;
          var position = this_0.y4p_1;
          if (!condition) {
            // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
            var tmp$ret$0 = 'Unexpected leading comma';
            this_0.x4t(tmp$ret$0, position);
          }
        } else {
          // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
          var this_1 = $this.s4p_1;
          var condition_0 = hasComma;
          var position_0 = this_1.y4p_1;
          if (!condition_0) {
            // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
            var tmp$ret$1 = 'Expected comma after the key-value pair';
            this_1.x4t(tmp$ret$1, position_0);
          }
        }
      }
      $this.u4p_1 = $this.u4p_1 + 1 | 0;
      tmp = $this.u4p_1;
    } else {
      if (hasComma ? !$this.q4p_1.l4p_1.h4r_1 : false) {
        invalidTrailingComma($this.s4p_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.q4p_1;
      var elementDescriptor = descriptor.k46(index);
      var tmp;
      if (!elementDescriptor.b46()) {
        // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
        tmp = $this.s4p_1.p4w(true);
      } else {
        tmp = false;
      }
      if (tmp) {
        tmp$ret$1 = true;
        break $l$block_2;
      }
      if (equals(elementDescriptor.i46(), ENUM_getInstance())) {
        var tmp_0;
        if (elementDescriptor.b46()) {
          // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
          tmp_0 = $this.s4p_1.p4w(false);
        } else {
          tmp_0 = false;
        }
        if (tmp_0) {
          tmp$ret$1 = false;
          break $l$block_2;
        }
        // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
        var tmp0_elvis_lhs = $this.s4p_1.q4w($this.w4p_1.v4q_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.<anonymous>' call
          $this.s4p_1.a4v();
          tmp$ret$1 = true;
          break $l$block_2;
        }
      }
      tmp$ret$1 = false;
    }
    return tmp$ret$1;
  }
  function decodeObjectIndex($this, descriptor) {
    var hasComma = $this.s4p_1.o4w();
    while ($this.s4p_1.z4u()) {
      hasComma = false;
      var key = decodeStringKey($this);
      $this.s4p_1.n4w(get_COLON());
      var index = getJsonNameIndex(descriptor, $this.q4p_1, key);
      var tmp;
      if (!(index === -3)) {
        var tmp_0;
        if ($this.w4p_1.a4r_1 ? coerceInputValue($this, descriptor, index) : false) {
          hasComma = $this.s4p_1.o4w();
          tmp_0 = false;
        } else {
          var tmp0_safe_receiver = $this.x4p_1;
          if (tmp0_safe_receiver == null)
            null;
          else {
            tmp0_safe_receiver.l4e(index);
          }
          return index;
        }
        tmp = tmp_0;
      } else {
        tmp = true;
      }
      var isUnknown = tmp;
      if (isUnknown) {
        hasComma = handleUnknown($this, key);
      }
    }
    if (hasComma ? !$this.q4p_1.l4p_1.h4r_1 : false) {
      invalidTrailingComma($this.s4p_1);
    }
    var tmp1_safe_receiver = $this.x4p_1;
    var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m4e();
    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.w4p_1.u4q_1 ? true : trySkip($this.v4p_1, $this, key)) {
      $this.s4p_1.s4w($this.w4p_1.v4q_1);
    } else {
      $this.s4p_1.r4w(key);
    }
    return $this.s4p_1.o4w();
  }
  function decodeListIndex($this) {
    var hasComma = $this.s4p_1.o4w();
    var tmp;
    if ($this.s4p_1.z4u()) {
      if (!($this.u4p_1 === -1) ? !hasComma : false) {
        $this.s4p_1.x4t('Expected end of the array or comma');
      }
      $this.u4p_1 = $this.u4p_1 + 1 | 0;
      tmp = $this.u4p_1;
    } else {
      if (hasComma ? !$this.q4p_1.l4p_1.h4r_1 : false) {
        invalidTrailingComma($this.s4p_1, 'array');
      }
      tmp = -1;
    }
    return tmp;
  }
  function decodeStringKey($this) {
    var tmp;
    if ($this.w4p_1.v4q_1) {
      tmp = $this.s4p_1.u4w();
    } else {
      tmp = $this.s4p_1.t4w();
    }
    return tmp;
  }
  function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
    AbstractDecoder.call(this);
    this.q4p_1 = json;
    this.r4p_1 = mode;
    this.s4p_1 = lexer;
    this.t4p_1 = this.q4p_1.t45();
    this.u4p_1 = -1;
    this.v4p_1 = discriminatorHolder;
    this.w4p_1 = this.q4p_1.l4p_1;
    this.x4p_1 = this.w4p_1.y4q_1 ? null : new JsonElementMarker(descriptor);
  }
  protoOf(StreamingJsonDecoder).m4r = function () {
    return this.q4p_1;
  };
  protoOf(StreamingJsonDecoder).t45 = function () {
    return this.t4p_1;
  };
  protoOf(StreamingJsonDecoder).k4r = function () {
    return (new JsonTreeReader(this.q4p_1.l4p_1, this.s4p_1)).c4v();
  };
  protoOf(StreamingJsonDecoder).h48 = function (deserializer) {
    try {
      var tmp;
      if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
        tmp = true;
      } else {
        tmp = this.q4p_1.l4p_1.b4r_1;
      }
      if (tmp) {
        return deserializer.s44(this);
      }
      var discriminator = classDiscriminator(deserializer.q44(), this.q4p_1);
      var tmp0_elvis_lhs = this.s4p_1.v4w(discriminator, this.w4p_1.v4q_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.s4p_1.x4t(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.v4p_1 = new DiscriminatorHolder(discriminator);
      return actualSerializer.s44(this);
    } catch ($p) {
      if ($p instanceof MissingFieldException) {
        var e = $p;
        if (contains_0(ensureNotNull(e.message), 'at path'))
          throw e;
        throw new MissingFieldException(e.w45_1, plus(e.message, ' at path: ') + this.s4p_1.z4p_1.k4u(), e);
      } else {
        throw $p;
      }
    }
  };
  protoOf(StreamingJsonDecoder).i48 = function (descriptor) {
    var newMode = switchMode(this.q4p_1, descriptor);
    this.s4p_1.z4p_1.f4u(descriptor);
    this.s4p_1.n4w(newMode.y4w_1);
    checkLeadingComma(this);
    var tmp;
    switch (newMode.za_1) {
      case 1:
      case 2:
      case 3:
        tmp = new StreamingJsonDecoder(this.q4p_1, newMode, this.s4p_1, descriptor, this.v4p_1);
        break;
      default:
        var tmp_0;
        if (this.r4p_1.equals(newMode) ? this.q4p_1.l4p_1.y4q_1 : false) {
          tmp_0 = this;
        } else {
          tmp_0 = new StreamingJsonDecoder(this.q4p_1, newMode, this.s4p_1, descriptor, this.v4p_1);
        }

        tmp = tmp_0;
        break;
    }
    return tmp;
  };
  protoOf(StreamingJsonDecoder).j48 = function (descriptor) {
    if (this.q4p_1.l4p_1.u4q_1 ? descriptor.g46() === 0 : false) {
      skipLeftoverElements(this, descriptor);
    }
    if (this.s4p_1.o4w() ? !this.q4p_1.l4p_1.h4r_1 : false) {
      invalidTrailingComma(this.s4p_1, '');
    }
    this.s4p_1.n4w(this.r4p_1.z4w_1);
    this.s4p_1.z4p_1.j4u();
  };
  protoOf(StreamingJsonDecoder).t47 = function () {
    var tmp;
    var tmp0_safe_receiver = this.x4p_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v4t_1;
    if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
      tmp = !this.s4p_1.a4x();
    } else {
      tmp = false;
    }
    return tmp;
  };
  protoOf(StreamingJsonDecoder).u47 = function () {
    return null;
  };
  protoOf(StreamingJsonDecoder).u48 = function (descriptor, index, deserializer, previousValue) {
    var isMapKey = this.r4p_1.equals(WriteMode_MAP_getInstance()) ? (index & 1) === 0 : false;
    if (isMapKey) {
      this.s4p_1.z4p_1.i4u();
    }
    var value = protoOf(AbstractDecoder).u48.call(this, descriptor, index, deserializer, previousValue);
    if (isMapKey) {
      this.s4p_1.z4p_1.h4u(value);
    }
    return value;
  };
  protoOf(StreamingJsonDecoder).y48 = function (descriptor) {
    var index;
    switch (this.r4p_1.za_1) {
      case 0:
        index = decodeObjectIndex(this, descriptor);
        break;
      case 2:
        index = decodeMapIndex(this);
        break;
      default:
        index = decodeListIndex(this);
        break;
    }
    if (!this.r4p_1.equals(WriteMode_MAP_getInstance())) {
      this.s4p_1.z4p_1.g4u(index);
    }
    return index;
  };
  protoOf(StreamingJsonDecoder).v47 = function () {
    return this.s4p_1.b4x();
  };
  protoOf(StreamingJsonDecoder).w47 = function () {
    var value = this.s4p_1.p4r();
    if (!value.equals(toLong(value.xc()))) {
      this.s4p_1.x4t("Failed to parse byte for input '" + value.toString() + "'");
    }
    return value.xc();
  };
  protoOf(StreamingJsonDecoder).x47 = function () {
    var value = this.s4p_1.p4r();
    if (!value.equals(toLong(value.yc()))) {
      this.s4p_1.x4t("Failed to parse short for input '" + value.toString() + "'");
    }
    return value.yc();
  };
  protoOf(StreamingJsonDecoder).y47 = function () {
    var value = this.s4p_1.p4r();
    if (!value.equals(toLong(value.mb()))) {
      this.s4p_1.x4t("Failed to parse int for input '" + value.toString() + "'");
    }
    return value.mb();
  };
  protoOf(StreamingJsonDecoder).z47 = function () {
    return this.s4p_1.p4r();
  };
  protoOf(StreamingJsonDecoder).a48 = function () {
    var tmp$ret$4;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.parseString' call
      var this_0 = this.s4p_1;
      var input = this_0.b4v();
      try {
        // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeFloat.<anonymous>' 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.x4t("Failed to parse type '" + 'float' + "' for input '" + input + "'");
        } else {
          throw $p;
        }
      }
    }
    var result = tmp$ret$4;
    var specialFp = this.q4p_1.l4p_1.d4r_1;
    if (specialFp ? true : isFinite(result))
      return result;
    throwInvalidFloatingPointDecoded(this.s4p_1, result);
  };
  protoOf(StreamingJsonDecoder).b48 = function () {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.parseString' call
      var this_0 = this.s4p_1;
      var input = this_0.b4v();
      try {
        // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeDouble.<anonymous>' call
        tmp$ret$1 = toDouble(input);
        break $l$block;
      } catch ($p) {
        if ($p instanceof IllegalArgumentException) {
          var e = $p;
          this_0.x4t("Failed to parse type '" + 'double' + "' for input '" + input + "'");
        } else {
          throw $p;
        }
      }
    }
    var result = tmp$ret$1;
    var specialFp = this.q4p_1.l4p_1.d4r_1;
    if (specialFp ? true : isFinite_0(result))
      return result;
    throwInvalidFloatingPointDecoded(this.s4p_1, result);
  };
  protoOf(StreamingJsonDecoder).c48 = function () {
    var string = this.s4p_1.b4v();
    if (!(string.length === 1)) {
      this.s4p_1.x4t("Expected single char, but got '" + string + "'");
    }
    return charSequenceGet(string, 0);
  };
  protoOf(StreamingJsonDecoder).d48 = function () {
    var tmp;
    if (this.w4p_1.v4q_1) {
      tmp = this.s4p_1.u4w();
    } else {
      tmp = this.s4p_1.a4v();
    }
    return tmp;
  };
  protoOf(StreamingJsonDecoder).f48 = function (descriptor) {
    return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.s4p_1, this.q4p_1) : protoOf(AbstractDecoder).f48.call(this, descriptor);
  };
  protoOf(StreamingJsonDecoder).e48 = function (enumDescriptor) {
    return getJsonNameIndexOrThrow(enumDescriptor, this.q4p_1, this.d48(), ' at path ' + this.s4p_1.z4p_1.k4u());
  };
  function JsonDecoderForUnsignedTypes(lexer, json) {
    AbstractDecoder.call(this);
    this.c4x_1 = lexer;
    this.d4x_1 = json.t45();
  }
  protoOf(JsonDecoderForUnsignedTypes).t45 = function () {
    return this.d4x_1;
  };
  protoOf(JsonDecoderForUnsignedTypes).y48 = function (descriptor) {
    var message = 'unsupported';
    throw IllegalStateException_init_$Create$(toString(message));
  };
  protoOf(JsonDecoderForUnsignedTypes).y47 = function () {
    var tmp$ret$2;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.parseString' call
      var this_0 = this.c4x_1;
      var input = this_0.b4v();
      try {
        // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeInt.<anonymous>' 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.x4t("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
        } else {
          throw $p;
        }
      }
    }
    return tmp$ret$2;
  };
  protoOf(JsonDecoderForUnsignedTypes).z47 = function () {
    var tmp$ret$2;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.parseString' call
      var this_0 = this.c4x_1;
      var input = this_0.b4v();
      try {
        // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeLong.<anonymous>' 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.x4t("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
        } else {
          throw $p;
        }
      }
    }
    return tmp$ret$2;
  };
  protoOf(JsonDecoderForUnsignedTypes).w47 = function () {
    var tmp$ret$2;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.parseString' call
      var this_0 = this.c4x_1;
      var input = this_0.b4v();
      try {
        // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeByte.<anonymous>' 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.x4t("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
        } else {
          throw $p;
        }
      }
    }
    return tmp$ret$2;
  };
  protoOf(JsonDecoderForUnsignedTypes).x47 = function () {
    var tmp$ret$2;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.parseString' call
      var this_0 = this.c4x_1;
      var input = this_0.b4v();
      try {
        // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeShort.<anonymous>' 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.x4t("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.l4u_1.u4s();
    $this.l49(ensureNotNull($this.s4u_1));
    $this.l4u_1.w4s(get_COLON());
    $this.l4u_1.v4s();
    $this.l49(descriptor.q45());
  }
  function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
    AbstractEncoder.call(this);
    this.l4u_1 = composer;
    this.m4u_1 = json;
    this.n4u_1 = mode;
    this.o4u_1 = modeReuseCache;
    this.p4u_1 = this.m4u_1.t45();
    this.q4u_1 = this.m4u_1.l4p_1;
    this.r4u_1 = false;
    this.s4u_1 = null;
    var i = this.n4u_1.za_1;
    if (!(this.o4u_1 == null)) {
      if (!(this.o4u_1[i] === null) ? true : !(this.o4u_1[i] === this)) {
        this.o4u_1[i] = this;
      }
    }
  }
  protoOf(StreamingJsonEncoder).m4r = function () {
    return this.m4u_1;
  };
  protoOf(StreamingJsonEncoder).t45 = function () {
    return this.p4u_1;
  };
  protoOf(StreamingJsonEncoder).e4a = function (descriptor, index) {
    return this.q4u_1.t4q_1;
  };
  protoOf(StreamingJsonEncoder).z49 = function (serializer, value) {
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
      var tmp;
      if (!(serializer instanceof AbstractPolymorphicSerializer)) {
        tmp = true;
      } else {
        tmp = this.m4r().l4p_1.b4r_1;
      }
      if (tmp) {
        serializer.r44(this, value);
        break $l$block;
      }
      var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
      var baseClassDiscriminator = classDiscriminator(serializer.q44(), this.m4r());
      var actualSerializer = findPolymorphicSerializer_0(casted, this, !(value == null) ? value : THROW_CCE());
      validateIfSealed$accessor$1rk9rdt(casted, actualSerializer, baseClassDiscriminator);
      checkKind(actualSerializer.q44().i46());
      // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue.<anonymous>' call
      this.s4u_1 = baseClassDiscriminator;
      actualSerializer.r44(this, value);
    }
  };
  protoOf(StreamingJsonEncoder).i48 = function (descriptor) {
    var newMode = switchMode(this.m4u_1, descriptor);
    if (!(newMode.y4w_1 === get_INVALID())) {
      this.l4u_1.w4s(newMode.y4w_1);
      this.l4u_1.s4s();
    }
    if (!(this.s4u_1 == null)) {
      encodeTypeInfo(this, descriptor);
      this.s4u_1 = null;
    }
    if (this.n4u_1.equals(newMode)) {
      return this;
    }
    var tmp0_safe_receiver = this.o4u_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver[newMode.za_1];
    return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.l4u_1, this.m4u_1, newMode, this.o4u_1) : tmp1_elvis_lhs;
  };
  protoOf(StreamingJsonEncoder).j48 = function (descriptor) {
    if (!(this.n4u_1.z4w_1 === get_INVALID())) {
      this.l4u_1.t4s();
      this.l4u_1.u4s();
      this.l4u_1.w4s(this.n4u_1.z4w_1);
    }
  };
  protoOf(StreamingJsonEncoder).a49 = function (descriptor, index) {
    switch (this.n4u_1.za_1) {
      case 1:
        if (!this.l4u_1.r4s_1) {
          this.l4u_1.w4s(get_COMMA());
        }

        this.l4u_1.u4s();
        break;
      case 2:
        if (!this.l4u_1.r4s_1) {
          var tmp = this;
          var tmp_0;
          if ((index % 2 | 0) === 0) {
            this.l4u_1.w4s(get_COMMA());
            this.l4u_1.u4s();
            tmp_0 = true;
          } else {
            this.l4u_1.w4s(get_COLON());
            this.l4u_1.v4s();
            tmp_0 = false;
          }
          tmp.r4u_1 = tmp_0;
        } else {
          this.r4u_1 = true;
          this.l4u_1.u4s();
        }

        break;
      case 3:
        if (index === 0)
          this.r4u_1 = true;
        if (index === 1) {
          this.l4u_1.w4s(get_COMMA());
          this.l4u_1.v4s();
          this.r4u_1 = false;
        }

        break;
      default:
        if (!this.l4u_1.r4s_1) {
          this.l4u_1.w4s(get_COMMA());
        }

        this.l4u_1.u4s();
        this.l49(getJsonElementName(descriptor, this.m4u_1, index));
        this.l4u_1.w4s(get_COLON());
        this.l4u_1.v4s();
        break;
    }
    return true;
  };
  protoOf(StreamingJsonEncoder).a4a = function (descriptor, index, serializer, value) {
    if (!(value == null) ? true : this.q4u_1.y4q_1) {
      protoOf(AbstractEncoder).a4a.call(this, descriptor, index, serializer, value);
    }
  };
  protoOf(StreamingJsonEncoder).n49 = function (descriptor) {
    var tmp;
    if (get_isUnsignedNumber(descriptor)) {
      // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
      var tmp_0;
      var tmp_1 = this.l4u_1;
      if (tmp_1 instanceof ComposerForUnsignedNumbers) {
        tmp_0 = this.l4u_1;
      } else {
        tmp_0 = new ComposerForUnsignedNumbers(this.l4u_1.q4s_1, this.r4u_1);
      }
      var tmp$ret$1 = tmp_0;
      tmp = new StreamingJsonEncoder(tmp$ret$1, this.m4u_1, this.n4u_1, null);
    } else if (get_isUnquotedLiteral(descriptor)) {
      // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
      var tmp_2;
      var tmp_3 = this.l4u_1;
      if (tmp_3 instanceof ComposerForUnquotedLiterals) {
        tmp_2 = this.l4u_1;
      } else {
        tmp_2 = new ComposerForUnquotedLiterals(this.l4u_1.q4s_1, this.r4u_1);
      }
      var tmp$ret$3 = tmp_2;
      tmp = new StreamingJsonEncoder(tmp$ret$3, this.m4u_1, this.n4u_1, null);
    } else {
      tmp = protoOf(AbstractEncoder).n49.call(this, descriptor);
    }
    return tmp;
  };
  protoOf(StreamingJsonEncoder).c49 = function () {
    this.l4u_1.y4s(get_NULL());
  };
  protoOf(StreamingJsonEncoder).d49 = function (value) {
    if (this.r4u_1) {
      this.l49(value.toString());
    } else {
      this.l4u_1.h4t(value);
    }
  };
  protoOf(StreamingJsonEncoder).e49 = function (value) {
    if (this.r4u_1) {
      this.l49(value.toString());
    } else {
      this.l4u_1.c4t(value);
    }
  };
  protoOf(StreamingJsonEncoder).f49 = function (value) {
    if (this.r4u_1) {
      this.l49(value.toString());
    } else {
      this.l4u_1.e4t(value);
    }
  };
  protoOf(StreamingJsonEncoder).g49 = function (value) {
    if (this.r4u_1) {
      this.l49(value.toString());
    } else {
      this.l4u_1.f4t(value);
    }
  };
  protoOf(StreamingJsonEncoder).h49 = function (value) {
    if (this.r4u_1) {
      this.l49(value.toString());
    } else {
      this.l4u_1.g4t(value);
    }
  };
  protoOf(StreamingJsonEncoder).i49 = function (value) {
    if (this.r4u_1) {
      this.l49(value.toString());
    } else {
      this.l4u_1.a4t(value);
    }
    if (!this.q4u_1.d4r_1 ? !isFinite(value) : false) {
      throw InvalidFloatingPointEncoded(value, toString(this.l4u_1.q4s_1));
    }
  };
  protoOf(StreamingJsonEncoder).j49 = function (value) {
    if (this.r4u_1) {
      this.l49(value.toString());
    } else {
      this.l4u_1.b4t(value);
    }
    if (!this.q4u_1.d4r_1 ? !isFinite_0(value) : false) {
      throw InvalidFloatingPointEncoded(value, toString(this.l4u_1.q4s_1));
    }
  };
  protoOf(StreamingJsonEncoder).k49 = function (value) {
    this.l49(toString_0(value));
  };
  protoOf(StreamingJsonEncoder).l49 = function (value) {
    return this.l4u_1.i4t(value);
  };
  protoOf(StreamingJsonEncoder).m49 = function (enumDescriptor, index) {
    this.l49(enumDescriptor.m46(index));
  };
  function get_isUnsignedNumber(_this__u8e3s4) {
    _init_properties_StreamingJsonEncoder_kt__pn1bsi();
    return _this__u8e3s4.h46() ? get_unsignedNumberDescriptors().a1(_this__u8e3s4) : false;
  }
  function get_isUnquotedLiteral(_this__u8e3s4) {
    _init_properties_StreamingJsonEncoder_kt__pn1bsi();
    return _this__u8e3s4.h46() ? 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()).q44(), serializer_0(Companion_getInstance()).q44(), serializer_2(Companion_getInstance_1()).q44(), serializer_3(Companion_getInstance_2()).q44()]);
    }
  }
  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.<anonymous>' 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.<anonymous>' 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.h48(deserializer);
  }
  function unparsedPrimitive($this, primitive) {
    throw JsonDecodingException_0(-1, "Failed to parse literal as '" + primitive + "' value", toString($this.j4x()));
  }
  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.g4x_1 = json;
    this.h4x_1 = value;
    this.i4x_1 = this.m4r().l4p_1;
  }
  protoOf(AbstractJsonTreeDecoder).m4r = function () {
    return this.g4x_1;
  };
  protoOf(AbstractJsonTreeDecoder).t2 = function () {
    return this.h4x_1;
  };
  protoOf(AbstractJsonTreeDecoder).t45 = function () {
    return this.m4r().t45();
  };
  protoOf(AbstractJsonTreeDecoder).j4x = function () {
    var tmp0_safe_receiver = this.n4m();
    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.<anonymous>' call
      tmp = this.k4x(tmp0_safe_receiver);
    }
    var tmp1_elvis_lhs = tmp;
    return tmp1_elvis_lhs == null ? this.t2() : tmp1_elvis_lhs;
  };
  protoOf(AbstractJsonTreeDecoder).k4r = function () {
    return this.j4x();
  };
  protoOf(AbstractJsonTreeDecoder).h48 = function (deserializer) {
    return decodeSerializableValuePolymorphic(this, deserializer);
  };
  protoOf(AbstractJsonTreeDecoder).o4m = function (parentName, childName) {
    return childName;
  };
  protoOf(AbstractJsonTreeDecoder).i48 = function (descriptor) {
    var currentObject = this.j4x();
    var tmp0_subject = descriptor.i46();
    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.m4r();
      // 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.q45() + ', 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.m4r();
        var keyDescriptor = carrierDescriptor(descriptor.k46(0), this_0.t45());
        var keyKind = keyDescriptor.i46();
        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.<anonymous>' call
          var tmp_4 = this.m4r();
          // 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.q45() + ', but had ' + getKClassFromExpression(currentObject));
          }
          tmp_2 = new JsonTreeMapDecoder(tmp_4, currentObject);
        } else {
          if (this_0.l4p_1.w4q_1) {
            // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.<anonymous>' call
            var tmp_5 = this.m4r();
            // 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.q45() + ', but had ' + getKClassFromExpression(currentObject));
            }
            tmp_2 = new JsonTreeListDecoder(tmp_5, currentObject);
          } else {
            throw InvalidKeyKindException(keyDescriptor);
          }
        }
        tmp = tmp_2;
      } else {
        var tmp_6 = this.m4r();
        // 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.q45() + ', but had ' + getKClassFromExpression(currentObject));
        }
        tmp = new JsonTreeDecoder(tmp_6, currentObject);
      }
    }
    return tmp;
  };
  protoOf(AbstractJsonTreeDecoder).j48 = function (descriptor) {
  };
  protoOf(AbstractJsonTreeDecoder).t47 = function () {
    var tmp = this.j4x();
    return !(tmp instanceof JsonNull);
  };
  protoOf(AbstractJsonTreeDecoder).l4x = function (tag) {
    var currentElement = this.k4x(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.j4x()));
    } else {
      tmp = tmp0_elvis_lhs;
    }
    return tmp;
  };
  protoOf(AbstractJsonTreeDecoder).m4x = function (tag, enumDescriptor) {
    return getJsonNameIndexOrThrow(enumDescriptor, this.m4r(), this.l4x(tag).g3b());
  };
  protoOf(AbstractJsonTreeDecoder).a4n = function (tag, enumDescriptor) {
    return this.m4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
  };
  protoOf(AbstractJsonTreeDecoder).n4x = function (tag) {
    return !(this.k4x(tag) === JsonNull_getInstance());
  };
  protoOf(AbstractJsonTreeDecoder).q4m = function (tag) {
    return this.n4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).o4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(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).r4m = function (tag) {
    return this.o4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).p4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(tag);
      try {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedByte.<anonymous>' 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).s4m = function (tag) {
    return this.p4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).q4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(tag);
      try {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedShort.<anonymous>' 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).t4m = function (tag) {
    return this.q4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).r4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(tag);
      try {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedInt.<anonymous>' 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).u4m = function (tag) {
    return this.r4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).s4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(tag);
      try {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedLong.<anonymous>' 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).v4m = function (tag) {
    return this.s4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).t4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(tag);
      try {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedFloat.<anonymous>' 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.m4r().l4p_1.d4r_1;
    if (specialFp ? true : isFinite(result))
      return result;
    throw InvalidFloatingPointDecoded(result, tag, toString(this.j4x()));
  };
  protoOf(AbstractJsonTreeDecoder).w4m = function (tag) {
    return this.t4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).u4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(tag);
      try {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedDouble.<anonymous>' 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.m4r().l4p_1.d4r_1;
    if (specialFp ? true : isFinite_0(result))
      return result;
    throw InvalidFloatingPointDecoded(result, tag, toString(this.j4x()));
  };
  protoOf(AbstractJsonTreeDecoder).x4m = function (tag) {
    return this.u4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).v4x = function (tag) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
      var this_0 = this.l4x(tag);
      try {
        // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedChar.<anonymous>' call
        var tmp0_elvis_lhs = single(this_0.g3b());
        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).y4m = function (tag) {
    return this.v4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).w4x = function (tag) {
    var value = this.l4x(tag);
    if (!this.m4r().l4p_1.v4q_1) {
      var literal = asLiteral(value, this, 'string');
      if (!literal.w4r_1)
        throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted.\n" + get_lenientHint(), toString(this.j4x()));
    }
    if (value instanceof JsonNull)
      throw JsonDecodingException_0(-1, "Unexpected 'null' value instead of string literal", toString(this.j4x()));
    return value.g3b();
  };
  protoOf(AbstractJsonTreeDecoder).z4m = function (tag) {
    return this.w4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
  };
  protoOf(AbstractJsonTreeDecoder).x4x = function (tag, inlineDescriptor) {
    return get_isUnsignedNumber(inlineDescriptor) ? new JsonDecoderForUnsignedTypes(new StringJsonLexer(this.l4x(tag).g3b()), this.m4r()) : protoOf(NamedValueDecoder).b4n.call(this, tag, inlineDescriptor);
  };
  protoOf(AbstractJsonTreeDecoder).b4n = function (tag, inlineDescriptor) {
    return this.x4x((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
  };
  protoOf(AbstractJsonTreeDecoder).f48 = function (descriptor) {
    return !(this.n4m() == null) ? protoOf(NamedValueDecoder).f48.call(this, descriptor) : (new JsonPrimitiveDecoder(this.m4r(), this.t2())).f48(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.m4r();
      var elementDescriptor = descriptor.k46(index);
      var tmp;
      if (!elementDescriptor.b46()) {
        // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
        var tmp_0 = $this.k4x(tag);
        tmp = tmp_0 instanceof JsonNull;
      } else {
        tmp = false;
      }
      if (tmp) {
        tmp$ret$1 = true;
        break $l$block_2;
      }
      if (equals(elementDescriptor.i46(), ENUM_getInstance())) {
        var tmp_1;
        if (elementDescriptor.b46()) {
          // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
          var tmp_2 = $this.k4x(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.<anonymous>' call
        var tmp_3 = $this.k4x(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.<anonymous>' call
          tmp$ret$1 = true;
          break $l$block_2;
        }
      }
      tmp$ret$1 = false;
    }
    return tmp$ret$1;
  }
  function absenceIsNull($this, descriptor, index) {
    $this.h4y_1 = (!$this.m4r().l4p_1.y4q_1 ? !descriptor.n46(index) : false) ? descriptor.k46(index).b46() : false;
    return $this.h4y_1;
  }
  function JsonTreeDecoder(json, value, polyDiscriminator, polyDescriptor) {
    polyDiscriminator = polyDiscriminator === VOID ? null : polyDiscriminator;
    polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
    AbstractJsonTreeDecoder.call(this, json, value);
    this.d4y_1 = value;
    this.e4y_1 = polyDiscriminator;
    this.f4y_1 = polyDescriptor;
    this.g4y_1 = 0;
    this.h4y_1 = false;
  }
  protoOf(JsonTreeDecoder).t2 = function () {
    return this.d4y_1;
  };
  protoOf(JsonTreeDecoder).y48 = function (descriptor) {
    while (this.g4y_1 < descriptor.g46()) {
      var tmp1 = this.g4y_1;
      this.g4y_1 = tmp1 + 1 | 0;
      var name = this.i4m(descriptor, tmp1);
      var index = this.g4y_1 - 1 | 0;
      this.h4y_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.i4x_1.a4r_1 ? true : !coerceInputValue_0(this, descriptor, index, name);
      } else {
        tmp = false;
      }
      if (tmp) {
        return index;
      }
    }
    return -1;
  };
  protoOf(JsonTreeDecoder).t47 = function () {
    return !this.h4y_1 ? protoOf(AbstractJsonTreeDecoder).t47.call(this) : false;
  };
  protoOf(JsonTreeDecoder).j4m = function (descriptor, index) {
    var strategy = namingStrategy(descriptor, this.m4r());
    var baseName = descriptor.m46(index);
    if (strategy == null) {
      if (!this.i4x_1.e4r_1)
        return baseName;
      if (this.t2().o2().a1(baseName))
        return baseName;
    }
    var deserializationNamesMap_0 = deserializationNamesMap(this.m4r(), 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.<anonymous>' 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.b4u(descriptor, index, baseName);
    return fallbackName == null ? baseName : fallbackName;
  };
  protoOf(JsonTreeDecoder).k4x = function (tag) {
    return getValue(this.t2(), tag);
  };
  protoOf(JsonTreeDecoder).i48 = function (descriptor) {
    if (descriptor === this.f4y_1) {
      var tmp = this.m4r();
      // Inline function 'kotlinx.serialization.json.internal.cast' call
      var value = this.j4x();
      var descriptor_0 = this.f4y_1;
      if (!(value instanceof JsonObject)) {
        throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor_0.q45() + ', but had ' + getKClassFromExpression(value));
      }
      return new JsonTreeDecoder(tmp, value, this.e4y_1, this.f4y_1);
    }
    return protoOf(AbstractJsonTreeDecoder).i48.call(this, descriptor);
  };
  protoOf(JsonTreeDecoder).j48 = function (descriptor) {
    var tmp;
    if (this.i4x_1.u4q_1) {
      tmp = true;
    } else {
      var tmp_0 = descriptor.i46();
      tmp = tmp_0 instanceof PolymorphicKind;
    }
    if (tmp)
      return Unit_instance;
    var strategy = namingStrategy(descriptor, this.m4r());
    var tmp_1;
    if (strategy == null ? !this.i4x_1.e4r_1 : false) {
      tmp_1 = jsonCachedSerialNames(descriptor);
    } else if (!(strategy == null)) {
      tmp_1 = deserializationNamesMap(this.m4r(), descriptor).o2();
    } else {
      var tmp_2 = jsonCachedSerialNames(descriptor);
      // Inline function 'kotlin.collections.orEmpty' call
      var tmp0_safe_receiver = get_schemaCache(this.m4r()).l4w(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.a1(key) ? !(key === this.e4y_1) : false) {
        throw UnknownKeyException(key, this.t2().toString());
      }
    }
  };
  function JsonTreeListDecoder(json, value) {
    AbstractJsonTreeDecoder.call(this, json, value);
    this.n4y_1 = value;
    this.o4y_1 = this.n4y_1.u();
    this.p4y_1 = -1;
  }
  protoOf(JsonTreeListDecoder).t2 = function () {
    return this.n4y_1;
  };
  protoOf(JsonTreeListDecoder).j4m = function (descriptor, index) {
    return index.toString();
  };
  protoOf(JsonTreeListDecoder).k4x = function (tag) {
    return this.n4y_1.v(toInt(tag));
  };
  protoOf(JsonTreeListDecoder).y48 = function (descriptor) {
    while (this.p4y_1 < (this.o4y_1 - 1 | 0)) {
      this.p4y_1 = this.p4y_1 + 1 | 0;
      return this.p4y_1;
    }
    return -1;
  };
  function JsonPrimitiveDecoder(json, value) {
    AbstractJsonTreeDecoder.call(this, json, value);
    this.v4y_1 = value;
    this.c4n(get_PRIMITIVE_TAG());
  }
  protoOf(JsonPrimitiveDecoder).t2 = function () {
    return this.v4y_1;
  };
  protoOf(JsonPrimitiveDecoder).y48 = function (descriptor) {
    return 0;
  };
  protoOf(JsonPrimitiveDecoder).k4x = 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.<anonymous>' call
      var message = "This input can only handle primitives with '" + get_PRIMITIVE_TAG() + "' tag";
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    return this.v4y_1;
  };
  function JsonTreeMapDecoder(json, value) {
    JsonTreeDecoder.call(this, json, value);
    this.g4z_1 = value;
    this.h4z_1 = toList(this.g4z_1.o2());
    this.i4z_1 = imul(this.h4z_1.u(), 2);
    this.j4z_1 = -1;
  }
  protoOf(JsonTreeMapDecoder).t2 = function () {
    return this.g4z_1;
  };
  protoOf(JsonTreeMapDecoder).j4m = function (descriptor, index) {
    var i = index / 2 | 0;
    return this.h4z_1.v(i);
  };
  protoOf(JsonTreeMapDecoder).y48 = function (descriptor) {
    while (this.j4z_1 < (this.i4z_1 - 1 | 0)) {
      this.j4z_1 = this.j4z_1 + 1 | 0;
      return this.j4z_1;
    }
    return -1;
  };
  protoOf(JsonTreeMapDecoder).k4x = function (tag) {
    return (this.j4z_1 % 2 | 0) === 0 ? JsonPrimitive_2(tag) : getValue(this.g4z_1, tag);
  };
  protoOf(JsonTreeMapDecoder).j48 = function (descriptor) {
  };
  function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) {
    return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.q44())).h48(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.y4w_1 = begin;
    this.z4w_1 = end;
  }
  function switchMode(_this__u8e3s4, desc) {
    var tmp0_subject = desc.i46();
    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.k46(0), _this__u8e3s4.t45());
          var keyKind = keyDescriptor.i46();
          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.<anonymous>' call
            tmp_0 = WriteMode_MAP_getInstance();
          } else {
            if (_this__u8e3s4.l4p_1.w4q_1) {
              // Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' 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.i46(), 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.h46()) {
      tmp = carrierDescriptor(_this__u8e3s4.k46(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.k4z(lastPosition, current);
    return appendEsc($this, current + 1 | 0);
  }
  function decodedString($this, lastPosition, currentPosition) {
    $this.k4z(lastPosition, currentPosition);
    var result = $this.b4q_1.toString();
    $this.b4q_1.y8(0);
    return result;
  }
  function takePeeked($this) {
    // Inline function 'kotlin.also' call
    var this_0 = ensureNotNull($this.a4q_1);
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.takePeeked.<anonymous>' call
    $this.a4q_1 = null;
    return this_0;
  }
  function wasUnquotedString($this) {
    return !(charSequenceGet($this.l4z(), $this.y4p_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
  }
  function appendEsc($this, startPosition) {
    var currentPosition = startPosition;
    currentPosition = $this.m4z(currentPosition);
    if (currentPosition === -1) {
      $this.x4t('Expected escape sequence to continue, got EOF');
    }
    var tmp = $this.l4z();
    var tmp0 = currentPosition;
    currentPosition = tmp0 + 1 | 0;
    var currentChar = charSequenceGet(tmp, tmp0);
    if (currentChar === _Char___init__impl__6a9atx(117)) {
      return appendHex($this, $this.l4z(), 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.x4t("Invalid escaped char '" + toString_0(currentChar) + "'");
    }
    $this.b4q_1.z5(c);
    return currentPosition;
  }
  function appendHex($this, source, startPos) {
    if ((startPos + 4 | 0) >= charSequenceLength(source)) {
      $this.y4p_1 = startPos;
      $this.n4z();
      if (($this.y4p_1 + 4 | 0) >= charSequenceLength(source)) {
        $this.x4t('Unexpected EOF during unicode escape');
      }
      return appendHex($this, source, $this.y4p_1);
    }
    $this.b4q_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.x4t("Invalid toHexChar char '" + toString_0(character) + "' in unicode escape");
    }
    return tmp;
  }
  function consumeBoolean($this, start) {
    var current = $this.m4z(start);
    if (current >= charSequenceLength($this.l4z()) ? true : current === -1) {
      $this.x4t('EOF');
    }
    // Inline function 'kotlin.code' call
    var tmp = $this.l4z();
    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.x4t("Expected valid boolean literal prefix, but had '" + $this.b4v() + "'");
      }
    }
    return tmp_0;
  }
  function consumeBooleanLiteral($this, literalSuffix, current) {
    if ((charSequenceLength($this.l4z()) - current | 0) < literalSuffix.length) {
      $this.x4t('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.l4z(), 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.x4t("Expected valid boolean literal prefix, but had '" + $this.b4v() + "'");
        }
      }
       while (inductionVariable <= last);
    $this.y4p_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.y4p_1 = 0;
    this.z4p_1 = new JsonPath();
    this.a4q_1 = null;
    this.b4q_1 = StringBuilder_init_$Create$();
  }
  protoOf(AbstractJsonLexer).n4z = function () {
  };
  protoOf(AbstractJsonLexer).o4z = 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).c4q = function () {
    var nextToken = this.d4v();
    if (!(nextToken === 10)) {
      this.x4t('Expected EOF after parsing, but had ' + toString_0(charSequenceGet(this.l4z(), this.y4p_1 - 1 | 0)) + ' instead');
    }
  };
  protoOf(AbstractJsonLexer).x4u = function (expected) {
    var token = this.d4v();
    if (!(token === expected)) {
      this.p4z(expected);
    }
    return token;
  };
  protoOf(AbstractJsonLexer).n4w = function (expected) {
    this.n4z();
    var source = this.l4z();
    var cpos = this.y4p_1;
    $l$loop_0: while (true) {
      cpos = this.m4z(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.y4p_1 = cpos;
      if (c === expected)
        return Unit_instance;
      this.q4z(expected);
    }
    this.y4p_1 = cpos;
    this.q4z(expected);
  };
  protoOf(AbstractJsonLexer).q4z = function (expected) {
    if (this.y4p_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.y4p_1;
        try {
          // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken.<anonymous>' call
          this.y4p_1 = this.y4p_1 - 1 | 0;
          tmp$ret$1 = this.b4v();
          break $l$block;
        }finally {
          this.y4p_1 = snapshot;
        }
      }
      var inputLiteral = tmp$ret$1;
      if (inputLiteral === 'null') {
        this.w4t("Expected string literal but 'null' literal was found", this.y4p_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls to default values.");
      }
    }
    this.p4z(charToTokenClass(expected));
  };
  protoOf(AbstractJsonLexer).r4z = function (expectedToken, wasConsumed) {
    var expected = tokenDescription(expectedToken);
    var position = wasConsumed ? this.y4p_1 - 1 | 0 : this.y4p_1;
    var s = (this.y4p_1 === charSequenceLength(this.l4z()) ? true : position < 0) ? 'EOF' : toString_0(charSequenceGet(this.l4z(), position));
    this.x4t('Expected ' + expected + ", but had '" + s + "' instead", position);
  };
  protoOf(AbstractJsonLexer).p4z = function (expectedToken, wasConsumed, $super) {
    wasConsumed = wasConsumed === VOID ? true : wasConsumed;
    return $super === VOID ? this.r4z(expectedToken, wasConsumed) : $super.r4z.call(this, expectedToken, wasConsumed);
  };
  protoOf(AbstractJsonLexer).y4u = function () {
    var source = this.l4z();
    var cpos = this.y4p_1;
    $l$loop_0: while (true) {
      cpos = this.m4z(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.y4p_1 = cpos;
      return charToTokenClass(ch);
    }
    this.y4p_1 = cpos;
    return 10;
  };
  protoOf(AbstractJsonLexer).p4w = function (doConsume) {
    var current = this.s4z();
    current = this.m4z(current);
    var len = charSequenceLength(this.l4z()) - 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.l4z(), current + i | 0)))
          return false;
      }
       while (inductionVariable <= 3);
    if (len > 4 ? charToTokenClass(charSequenceGet(this.l4z(), current + 4 | 0)) === 0 : false)
      return false;
    if (doConsume) {
      this.y4p_1 = current + 4 | 0;
    }
    return true;
  };
  protoOf(AbstractJsonLexer).a4x = function (doConsume, $super) {
    doConsume = doConsume === VOID ? true : doConsume;
    return $super === VOID ? this.p4w(doConsume) : $super.p4w.call(this, doConsume);
  };
  protoOf(AbstractJsonLexer).s4z = function () {
    var current = this.y4p_1;
    $l$loop_0: while (true) {
      current = this.m4z(current);
      if (current === -1)
        break $l$loop_0;
      var c = charSequenceGet(this.l4z(), 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.y4p_1 = current;
    return current;
  };
  protoOf(AbstractJsonLexer).q4w = function (isLenient) {
    var token = this.y4u();
    var tmp;
    if (isLenient) {
      if (!(token === 1) ? !(token === 0) : false)
        return null;
      tmp = this.b4v();
    } else {
      if (!(token === 1))
        return null;
      tmp = this.a4v();
    }
    var string = tmp;
    this.a4q_1 = string;
    return string;
  };
  protoOf(AbstractJsonLexer).t4z = function () {
    this.a4q_1 = null;
  };
  protoOf(AbstractJsonLexer).u4z = function (startPos, endPos) {
    // Inline function 'kotlin.text.substring' call
    var this_0 = this.l4z();
    return toString(charSequenceSubSequence(this_0, startPos, endPos));
  };
  protoOf(AbstractJsonLexer).a4v = function () {
    if (!(this.a4q_1 == null)) {
      return takePeeked(this);
    }
    return this.t4w();
  };
  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.m4z(appendEscape(this, lastPosition, currentPosition));
        if (currentPosition === -1) {
          this.x4t('Unexpected EOF', currentPosition);
        }
        lastPosition = currentPosition;
      } else {
        currentPosition = currentPosition + 1 | 0;
        if (currentPosition >= charSequenceLength(source)) {
          usedAppend = true;
          this.k4z(lastPosition, currentPosition);
          currentPosition = this.m4z(currentPosition);
          if (currentPosition === -1) {
            this.x4t('Unexpected EOF', currentPosition);
          }
          lastPosition = currentPosition;
        }
      }
      char = charSequenceGet(source, currentPosition);
    }
    var tmp;
    if (!usedAppend) {
      tmp = this.u4z(lastPosition, currentPosition);
    } else {
      tmp = decodedString(this, lastPosition, currentPosition);
    }
    var string = tmp;
    this.y4p_1 = currentPosition + 1 | 0;
    return string;
  };
  protoOf(AbstractJsonLexer).u4w = function () {
    var result = this.b4v();
    if (result === 'null' ? wasUnquotedString(this) : false) {
      this.x4t("Unexpected 'null' value instead of string literal");
    }
    return result;
  };
  protoOf(AbstractJsonLexer).b4v = function () {
    if (!(this.a4q_1 == null)) {
      return takePeeked(this);
    }
    var current = this.s4z();
    if (current >= charSequenceLength(this.l4z()) ? true : current === -1) {
      this.x4t('EOF', current);
    }
    var token = charToTokenClass(charSequenceGet(this.l4z(), current));
    if (token === 1) {
      return this.a4v();
    }
    if (!(token === 0)) {
      this.x4t('Expected beginning of the string, but got ' + toString_0(charSequenceGet(this.l4z(), current)));
    }
    var usedAppend = false;
    while (charToTokenClass(charSequenceGet(this.l4z(), current)) === 0) {
      current = current + 1 | 0;
      if (current >= charSequenceLength(this.l4z())) {
        usedAppend = true;
        this.k4z(this.y4p_1, current);
        var eof = this.m4z(current);
        if (eof === -1) {
          this.y4p_1 = current;
          return decodedString(this, 0, 0);
        } else {
          current = eof;
        }
      }
    }
    var tmp;
    if (!usedAppend) {
      tmp = this.u4z(this.y4p_1, current);
    } else {
      tmp = decodedString(this, this.y4p_1, current);
    }
    var result = tmp;
    this.y4p_1 = current;
    return result;
  };
  protoOf(AbstractJsonLexer).k4z = function (fromIndex, toIndex) {
    this.b4q_1.s8(this.l4z(), fromIndex, toIndex);
  };
  protoOf(AbstractJsonLexer).s4w = function (allowLenientStrings) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var tokenStack = ArrayList_init_$Create$();
    var lastToken = this.y4u();
    if (!(lastToken === 8) ? !(lastToken === 6) : false) {
      this.b4v();
      return Unit_instance;
    }
    $l$loop: while (true) {
      lastToken = this.y4u();
      if (lastToken === 1) {
        if (allowLenientStrings) {
          this.b4v();
        } else {
          this.t4w();
        }
        continue $l$loop;
      }
      var tmp0_subject = lastToken;
      if (tmp0_subject === 8 ? true : tmp0_subject === 6) {
        tokenStack.i1(lastToken);
      } else if (tmp0_subject === 9) {
        if (!(last(tokenStack) === 8))
          throw JsonDecodingException_0(this.y4p_1, 'found ] instead of } at path: ' + this.z4p_1, this.l4z());
        removeLast(tokenStack);
      } else if (tmp0_subject === 7) {
        if (!(last(tokenStack) === 6))
          throw JsonDecodingException_0(this.y4p_1, 'found } instead of ] at path: ' + this.z4p_1, this.l4z());
        removeLast(tokenStack);
      } else if (tmp0_subject === 10) {
        this.x4t('Unexpected end of input due to malformed JSON during ignoring unknown keys');
      }
      this.d4v();
      if (tokenStack.u() === 0)
        return Unit_instance;
    }
  };
  protoOf(AbstractJsonLexer).toString = function () {
    return "JsonReader(source='" + this.l4z() + "', currentPosition=" + this.y4p_1 + ')';
  };
  protoOf(AbstractJsonLexer).r4w = function (key) {
    var processed = this.u4z(0, this.y4p_1);
    var lastIndexOf_0 = lastIndexOf(processed, key);
    this.w4t("Encountered an unknown key '" + key + "'", lastIndexOf_0, "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.");
  };
  protoOf(AbstractJsonLexer).w4t = 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.z4p_1.k4u() + hintMessage, this.l4z());
  };
  protoOf(AbstractJsonLexer).x4t = function (message, position, hint, $super) {
    position = position === VOID ? this.y4p_1 : position;
    hint = hint === VOID ? '' : hint;
    return $super === VOID ? this.w4t(message, position, hint) : $super.w4t.call(this, message, position, hint);
  };
  protoOf(AbstractJsonLexer).p4r = function () {
    var current = this.s4z();
    current = this.m4z(current);
    if (current >= charSequenceLength(this.l4z()) ? true : current === -1) {
      this.x4t('EOF');
    }
    var tmp;
    if (charSequenceGet(this.l4z(), current) === _Char___init__impl__6a9atx(34)) {
      current = current + 1 | 0;
      if (current === charSequenceLength(this.l4z())) {
        this.x4t('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.l4z()))) {
      var ch = charSequenceGet(this.l4z(), current);
      if ((ch === _Char___init__impl__6a9atx(101) ? true : ch === _Char___init__impl__6a9atx(69)) ? !hasExponent : false) {
        if (current === start) {
          this.x4t('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.x4t("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.x4t("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.x4t("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.x4t("Unexpected symbol '" + toString_0(ch) + "' in numeric literal");
      }
      if (hasExponent) {
        // Inline function 'kotlin.Long.plus' call
        // Inline function 'kotlin.Long.times' call
        exponentAccumulator = exponentAccumulator.cb(toLong(10)).lc(toLong(digit));
        continue $l$loop_4;
      }
      // Inline function 'kotlin.Long.minus' call
      // Inline function 'kotlin.Long.times' call
      accumulator = accumulator.cb(toLong(10)).mc(toLong(digit));
      if (accumulator.c7(new Long(0, 0)) > 0) {
        this.x4t('Numeric value overflow');
      }
    }
    var hasChars = !(current === start);
    if (start === current ? true : isNegative ? start === (current - 1 | 0) : false) {
      this.x4t('Expected numeric literal');
    }
    if (hasQuotation) {
      if (!hasChars) {
        this.x4t('EOF');
      }
      if (!(charSequenceGet(this.l4z(), current) === _Char___init__impl__6a9atx(34))) {
        this.x4t('Expected closing quotation mark');
      }
      current = current + 1 | 0;
    }
    this.y4p_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.x4t('Numeric value overflow');
      }
      // Inline function 'kotlin.math.floor' call
      if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
        this.x4t("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.x4t('Numeric value overflow');
      }
    }
    return tmp_1;
  };
  protoOf(AbstractJsonLexer).b4x = function () {
    var current = this.s4z();
    if (current === charSequenceLength(this.l4z())) {
      this.x4t('EOF');
    }
    var tmp;
    if (charSequenceGet(this.l4z(), 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.y4p_1 === charSequenceLength(this.l4z())) {
        this.x4t('EOF');
      }
      if (!(charSequenceGet(this.l4z(), this.y4p_1) === _Char___init__impl__6a9atx(34))) {
        this.x4t('Expected closing quotation mark');
      }
      this.y4p_1 = this.y4p_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().w4z_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().v4z_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.v4z_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.w4z_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.v4z_1 = charArray(117);
    this.w4z_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.b50_1 = source;
  }
  protoOf(StringJsonLexer).l4z = function () {
    return this.b50_1;
  };
  protoOf(StringJsonLexer).m4z = function (position) {
    return position < this.b50_1.length ? position : -1;
  };
  protoOf(StringJsonLexer).d4v = function () {
    var source = this.b50_1;
    $l$loop: while (!(this.y4p_1 === -1) ? this.y4p_1 < source.length : false) {
      var tmp1 = this.y4p_1;
      this.y4p_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).o4w = function () {
    var current = this.s4z();
    if (current === this.b50_1.length ? true : current === -1)
      return false;
    if (charSequenceGet(this.b50_1, current) === _Char___init__impl__6a9atx(44)) {
      this.y4p_1 = this.y4p_1 + 1 | 0;
      return true;
    }
    return false;
  };
  protoOf(StringJsonLexer).z4u = function () {
    var current = this.y4p_1;
    if (current === -1)
      return false;
    $l$loop: while (current < this.b50_1.length) {
      var c = charSequenceGet(this.b50_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.y4p_1 = current;
      return this.o4z(c);
    }
    this.y4p_1 = current;
    return false;
  };
  protoOf(StringJsonLexer).s4z = function () {
    var current = this.y4p_1;
    if (current === -1)
      return current;
    $l$loop: while (current < this.b50_1.length) {
      var c = charSequenceGet(this.b50_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.y4p_1 = current;
    return current;
  };
  protoOf(StringJsonLexer).n4w = function (expected) {
    if (this.y4p_1 === -1) {
      this.q4z(expected);
    }
    var source = this.b50_1;
    $l$loop: while (this.y4p_1 < source.length) {
      var tmp1 = this.y4p_1;
      this.y4p_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.q4z(expected);
    }
    this.y4p_1 = -1;
    this.q4z(expected);
  };
  protoOf(StringJsonLexer).t4w = function () {
    this.n4w(get_STRING());
    var current = this.y4p_1;
    var closingQuote = indexOf(this.b50_1, _Char___init__impl__6a9atx(34), current);
    if (closingQuote === -1) {
      this.b4v();
      this.r4z(get_TC_STRING(), false);
    }
    var inductionVariable = current;
    if (inductionVariable < closingQuote)
      do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        if (charSequenceGet(this.b50_1, i) === get_STRING_ESC()) {
          return this.consumeString2(this.b50_1, this.y4p_1, i);
        }
      }
       while (inductionVariable < closingQuote);
    this.y4p_1 = closingQuote + 1 | 0;
    // Inline function 'kotlin.text.substring' call
    // Inline function 'kotlin.js.asDynamic' call
    return this.b50_1.substring(current, closingQuote);
  };
  protoOf(StringJsonLexer).v4w = function (keyToMatch, isLenient) {
    var positionSnapshot = this.y4p_1;
    try {
      if (!(this.d4v() === get_TC_BEGIN_OBJ()))
        return null;
      var firstKey = this.q4w(isLenient);
      if (!(firstKey === keyToMatch))
        return null;
      this.t4z();
      if (!(this.d4v() === get_TC_COLON()))
        return null;
      return this.q4w(isLenient);
    }finally {
      this.y4p_1 = positionSnapshot;
      this.t4z();
    }
  };
  function get_schemaCache(_this__u8e3s4) {
    return _this__u8e3s4.n4p_1;
  }
  function JsonToStringWriter() {
    this.p4p_1 = StringBuilder_init_$Create$_0(128);
  }
  protoOf(JsonToStringWriter).d4t = function (value) {
    this.p4p_1.w8(value);
  };
  protoOf(JsonToStringWriter).x4s = function (char) {
    this.p4p_1.z5(char);
  };
  protoOf(JsonToStringWriter).z4s = function (text) {
    this.p4p_1.y5(text);
  };
  protoOf(JsonToStringWriter).j4t = function (text) {
    printQuoted(this.p4p_1, text);
  };
  protoOf(JsonToStringWriter).qy = function () {
    this.p4p_1.z8();
  };
  protoOf(JsonToStringWriter).toString = function () {
    return this.p4p_1.toString();
  };
  function createMapForCache(initialCapacity) {
    return HashMap_init_$Create$(initialCapacity);
  }
  //region block: post-declaration
  protoOf(defer$1).b46 = get_isNullable;
  protoOf(defer$1).h46 = get_isInline;
  protoOf(defer$1).f46 = get_annotations;
  protoOf(PolymorphismValidator).s4o = 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;
  //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 = JsonNull;
  _.$_$.j = JsonObject;
  _.$_$.k = JsonPrimitive_2;
  _.$_$.l = JsonPrimitive_0;
  _.$_$.m = JsonPrimitive_1;
  _.$_$.n = Json_0;
  _.$_$.o = Json;
  _.$_$.p = get_boolean;
  _.$_$.q = get_double;
  _.$_$.r = get_float;
  _.$_$.s = get_int;
  _.$_$.t = get_intOrNull;
  _.$_$.u = get_jsonObject;
  _.$_$.v = get_jsonPrimitive;
  _.$_$.w = 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
