client_plugin_logic_deb 1.6.20 → 1.8.209

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/{KosiTypeSystem-kaverit.js → Kosi-Kaverit-kaverit.js} +143 -144
  2. package/Kosi-Kaverit-kaverit.js.map +1 -0
  3. package/{Kodein-kodein-di.js → Kosi-Kodein-kodein-di.js} +974 -943
  4. package/Kosi-Kodein-kodein-di.js.map +1 -0
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +6124 -0
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  7. package/Logic_Debertz-client_plugin.d.ts +1393 -476
  8. package/Logic_Debertz-client_plugin.js +7065 -6714
  9. package/Logic_Debertz-client_plugin.js.map +1 -1
  10. package/Logic_Debertz-core.js +5947 -5111
  11. package/Logic_Debertz-core.js.map +1 -1
  12. package/Logic_Debertz-engine.js +45974 -29394
  13. package/Logic_Debertz-engine.js.map +1 -1
  14. package/Logic_Debertz-game_client.js +18434 -17373
  15. package/Logic_Debertz-game_client.js.map +1 -1
  16. package/Logic_Debertz-game_server.js +3066 -2683
  17. package/Logic_Debertz-game_server.js.map +1 -1
  18. package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +12959 -10747
  19. package/kotlin-kotlin-stdlib.js.map +1 -0
  20. package/kotlin-kotlinx-atomicfu-runtime.js +1 -1
  21. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +1 -1
  22. package/{88b0986a7186d029-atomicfu-js-ir.js → kotlinx-atomicfu.js} +71 -56
  23. package/kotlinx-atomicfu.js.map +1 -0
  24. package/{kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js → kotlinx-coroutines-core.js} +5223 -5784
  25. package/kotlinx-coroutines-core.js.map +1 -0
  26. package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
  27. package/kotlinx-io-kotlinx-io-core.js +1156 -0
  28. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  29. package/kotlinx-serialization-kotlinx-serialization-core.js +6250 -0
  30. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  31. package/kotlinx-serialization-kotlinx-serialization-json.js +4748 -0
  32. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  33. package/{kotlinx-serialization-kotlinx-serialization-protobuf-js-ir.js → kotlinx-serialization-kotlinx-serialization-protobuf.js} +3 -3
  34. package/kotlinx-serialization-kotlinx-serialization-protobuf.js.map +1 -0
  35. package/ktor-ktor-client-content-negotiation.js +713 -0
  36. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  37. package/ktor-ktor-client-core.js +7207 -0
  38. package/ktor-ktor-client-core.js.map +1 -0
  39. package/ktor-ktor-client-js.js +15 -0
  40. package/ktor-ktor-client-js.js.map +1 -0
  41. package/ktor-ktor-client-logging.js +1506 -0
  42. package/ktor-ktor-client-logging.js.map +1 -0
  43. package/ktor-ktor-events.js +97 -0
  44. package/ktor-ktor-events.js.map +1 -0
  45. package/ktor-ktor-http.js +3263 -0
  46. package/ktor-ktor-http.js.map +1 -0
  47. package/ktor-ktor-io.js +6472 -0
  48. package/ktor-ktor-io.js.map +1 -0
  49. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  50. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  51. package/ktor-ktor-serialization-kotlinx.js +848 -0
  52. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  53. package/ktor-ktor-serialization.js +370 -0
  54. package/ktor-ktor-serialization.js.map +1 -0
  55. package/ktor-ktor-utils.js +2659 -0
  56. package/ktor-ktor-utils.js.map +1 -0
  57. package/ktor-ktor-websocket-serialization.js +15 -0
  58. package/ktor-ktor-websocket-serialization.js.map +1 -0
  59. package/ktor-ktor-websockets.js +466 -0
  60. package/ktor-ktor-websockets.js.map +1 -0
  61. package/package.json +5 -2
  62. package/raspberry-cardgame-lib-core.js +1421 -0
  63. package/raspberry-cardgame-lib-core.js.map +1 -0
  64. package/raspberry-cardgame-lib-logger.js +423 -0
  65. package/raspberry-cardgame-lib-logger.js.map +1 -0
  66. package/raspberry-cardgame-lib-random.js +3066 -0
  67. package/raspberry-cardgame-lib-random.js.map +1 -0
  68. package/secure-random-secure-random.js +173 -0
  69. package/secure-random-secure-random.js.map +1 -0
  70. package/{uuid-js-ir.js → uuid.js} +57 -71
  71. package/uuid.js.map +1 -0
  72. package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
  73. package/Kodein-kodein-di.js.map +0 -1
  74. package/KosiTypeSystem-kaverit.js.map +0 -1
  75. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +0 -380
  76. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +0 -1
  77. package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
  78. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +0 -6184
  79. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
  80. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -4741
  81. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
  82. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
  83. package/uuid-js-ir.js.map +0 -1
  84. /package/{kotlinx-serialization-kotlinx-serialization-protobuf-js-ir.js.map → kotlinx-io-kotlinx-io-bytestring.js.map} +0 -0
@@ -0,0 +1,4748 @@
1
+ (function (root, factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlin-kotlin-stdlib.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlin-kotlin-stdlib.js'));
6
+ else {
7
+ if (typeof this['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
8
+ throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-json'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-json'.");
9
+ }
10
+ if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
11
+ throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-json'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-json'.");
12
+ }
13
+ root['kotlinx-serialization-kotlinx-serialization-json'] = factory(typeof this['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined' ? {} : this['kotlinx-serialization-kotlinx-serialization-json'], this['kotlinx-serialization-kotlinx-serialization-core'], this['kotlin-kotlin-stdlib']);
14
+ }
15
+ }(globalThis, function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_kotlin) {
16
+ 'use strict';
17
+ //region block: imports
18
+ var imul = Math.imul;
19
+ var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
20
+ var protoOf = kotlin_kotlin.$_$.qc;
21
+ var initMetadataForObject = kotlin_kotlin.$_$.ub;
22
+ var VOID = kotlin_kotlin.$_$.f;
23
+ var Unit_instance = kotlin_kotlin.$_$.n5;
24
+ var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
25
+ var initMetadataForClass = kotlin_kotlin.$_$.pb;
26
+ var toString = kotlin_kotlin.$_$.uc;
27
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r1;
28
+ var charSequenceLength = kotlin_kotlin.$_$.db;
29
+ var charSequenceGet = kotlin_kotlin.$_$.cb;
30
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
31
+ var equals = kotlin_kotlin.$_$.hb;
32
+ var toString_0 = kotlin_kotlin.$_$.uh;
33
+ var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
34
+ var CompositeDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1;
35
+ var initMetadataForInterface = kotlin_kotlin.$_$.sb;
36
+ var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
37
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
38
+ var THROW_CCE = kotlin_kotlin.$_$.qg;
39
+ var hashCode = kotlin_kotlin.$_$.ob;
40
+ var joinToString = kotlin_kotlin.$_$.d8;
41
+ var asJsReadonlyMapView = kotlin_kotlin.$_$.x5;
42
+ var KtMap = kotlin_kotlin.$_$.y5;
43
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.k;
44
+ var lazy = kotlin_kotlin.$_$.mh;
45
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
46
+ var getKClassFromExpression = kotlin_kotlin.$_$.d;
47
+ var getBooleanHashCode = kotlin_kotlin.$_$.kb;
48
+ var getStringHashCode = kotlin_kotlin.$_$.nb;
49
+ var asJsReadonlyArrayView = kotlin_kotlin.$_$.u5;
50
+ var KtList = kotlin_kotlin.$_$.v5;
51
+ var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.d2;
52
+ var numberRangeToNumber = kotlin_kotlin.$_$.kc;
53
+ var ClosedRange = kotlin_kotlin.$_$.yc;
54
+ var isInterface = kotlin_kotlin.$_$.dc;
55
+ var contains = kotlin_kotlin.$_$.dd;
56
+ var toDouble = kotlin_kotlin.$_$.hf;
57
+ var StringCompanionObject_instance = kotlin_kotlin.$_$.b5;
58
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
59
+ var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
60
+ var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
61
+ var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
62
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
63
+ var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
64
+ var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
65
+ var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
66
+ var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
67
+ var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
68
+ var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
69
+ var toLongOrNull = kotlin_kotlin.$_$.kf;
70
+ var toULongOrNull = kotlin_kotlin.$_$.pf;
71
+ var ULong = kotlin_kotlin.$_$.yg;
72
+ var Companion_getInstance = kotlin_kotlin.$_$.l5;
73
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
74
+ var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.c4;
75
+ var toDoubleOrNull = kotlin_kotlin.$_$.gf;
76
+ var toBooleanStrictOrNull = kotlin_kotlin.$_$.ff;
77
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.v1;
78
+ var lazy_0 = kotlin_kotlin.$_$.nh;
79
+ var get_isNullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
80
+ var get_isInline = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
81
+ var get_annotations = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
82
+ var KProperty1 = kotlin_kotlin.$_$.ld;
83
+ var getPropertyCallableRef = kotlin_kotlin.$_$.mb;
84
+ var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
85
+ var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
86
+ var toLong = kotlin_kotlin.$_$.sc;
87
+ var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.s3;
88
+ var UInt__toString_impl_dbgl21 = kotlin_kotlin.$_$.u3;
89
+ var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.b4;
90
+ var ULong__toString_impl_f9au7k = kotlin_kotlin.$_$.d4;
91
+ var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.j3;
92
+ var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.l3;
93
+ var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.k4;
94
+ var UShort__toString_impl_edaoee = kotlin_kotlin.$_$.m4;
95
+ var ElementMarker = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
96
+ var captureStack = kotlin_kotlin.$_$.za;
97
+ var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
98
+ var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
99
+ var charSequenceSubSequence = kotlin_kotlin.$_$.eb;
100
+ var coerceAtLeast = kotlin_kotlin.$_$.zc;
101
+ var coerceAtMost = kotlin_kotlin.$_$.bd;
102
+ var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
103
+ var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
104
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
105
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
106
+ var singleOrNull = kotlin_kotlin.$_$.f9;
107
+ var emptyMap = kotlin_kotlin.$_$.m7;
108
+ var getValue = kotlin_kotlin.$_$.y7;
109
+ var fillArrayVal = kotlin_kotlin.$_$.jb;
110
+ var copyOf = kotlin_kotlin.$_$.e7;
111
+ var copyOf_0 = kotlin_kotlin.$_$.f7;
112
+ var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
113
+ var DeepRecursiveFunction = kotlin_kotlin.$_$.dg;
114
+ var invoke = kotlin_kotlin.$_$.ih;
115
+ var CoroutineImpl = kotlin_kotlin.$_$.sa;
116
+ var DeepRecursiveScope = kotlin_kotlin.$_$.eg;
117
+ var Unit = kotlin_kotlin.$_$.bh;
118
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ea;
119
+ var initMetadataForLambda = kotlin_kotlin.$_$.tb;
120
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
121
+ var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
122
+ var getKClass = kotlin_kotlin.$_$.e;
123
+ var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t2;
124
+ var ensureNotNull = kotlin_kotlin.$_$.hh;
125
+ var DeserializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
126
+ var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2;
127
+ var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
128
+ var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
129
+ var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
130
+ var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1;
131
+ var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
132
+ var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
133
+ var contextual = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2;
134
+ var SerializersModuleCollector = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2;
135
+ var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
136
+ var substringBefore = kotlin_kotlin.$_$.cf;
137
+ var removeSuffix = kotlin_kotlin.$_$.re;
138
+ var substringAfter = kotlin_kotlin.$_$.bf;
139
+ var contains_0 = kotlin_kotlin.$_$.ud;
140
+ var plus = kotlin_kotlin.$_$.ph;
141
+ var MissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2;
142
+ var IllegalArgumentException = kotlin_kotlin.$_$.ig;
143
+ var isFinite = kotlin_kotlin.$_$.kh;
144
+ var isFinite_0 = kotlin_kotlin.$_$.jh;
145
+ var toUInt = kotlin_kotlin.$_$.of;
146
+ var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.t3;
147
+ var toULong = kotlin_kotlin.$_$.qf;
148
+ var toUByte = kotlin_kotlin.$_$.nf;
149
+ var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.k3;
150
+ var toUShort = kotlin_kotlin.$_$.rf;
151
+ var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.l4;
152
+ var objectCreate = kotlin_kotlin.$_$.pc;
153
+ var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
154
+ var findPolymorphicSerializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u2;
155
+ var toString_1 = kotlin_kotlin.$_$.d3;
156
+ var Companion_getInstance_0 = kotlin_kotlin.$_$.k5;
157
+ var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1;
158
+ var Companion_getInstance_1 = kotlin_kotlin.$_$.j5;
159
+ var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b1;
160
+ var Companion_getInstance_2 = kotlin_kotlin.$_$.m5;
161
+ var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
162
+ var setOf = kotlin_kotlin.$_$.e9;
163
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.c3;
164
+ var numberToChar = kotlin_kotlin.$_$.mc;
165
+ var equals_0 = kotlin_kotlin.$_$.ae;
166
+ var NamedValueDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
167
+ var toByte = kotlin_kotlin.$_$.rc;
168
+ var toShort = kotlin_kotlin.$_$.tc;
169
+ var single = kotlin_kotlin.$_$.ve;
170
+ var Char = kotlin_kotlin.$_$.ag;
171
+ var emptySet = kotlin_kotlin.$_$.n7;
172
+ var plus_0 = kotlin_kotlin.$_$.v8;
173
+ var toInt = kotlin_kotlin.$_$.jf;
174
+ var toList = kotlin_kotlin.$_$.q9;
175
+ var enumEntries = kotlin_kotlin.$_$.ua;
176
+ var Enum = kotlin_kotlin.$_$.fg;
177
+ var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1;
178
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.oh;
179
+ var last = kotlin_kotlin.$_$.j8;
180
+ var removeLast = kotlin_kotlin.$_$.b9;
181
+ var lastIndexOf = kotlin_kotlin.$_$.ne;
182
+ var Long = kotlin_kotlin.$_$.kg;
183
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.y2;
184
+ var numberToLong = kotlin_kotlin.$_$.oc;
185
+ var charArray = kotlin_kotlin.$_$.bb;
186
+ var indexOf = kotlin_kotlin.$_$.ee;
187
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.e1;
188
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.p;
189
+ //endregion
190
+ //region block: pre-declaration
191
+ initMetadataForClass(Json, 'Json', VOID, VOID, [StringFormat]);
192
+ initMetadataForObject(Default, 'Default', VOID, Json);
193
+ initMetadataForClass(JsonBuilder, 'JsonBuilder');
194
+ initMetadataForClass(JsonImpl, 'JsonImpl', VOID, Json);
195
+ initMetadataForClass(JsonClassDiscriminator, 'JsonClassDiscriminator');
196
+ initMetadataForClass(JsonNames, 'JsonNames');
197
+ initMetadataForClass(JsonConfiguration, 'JsonConfiguration');
198
+ initMetadataForInterface(JsonDecoder, 'JsonDecoder', VOID, VOID, [Decoder, CompositeDecoder]);
199
+ initMetadataForCompanion(Companion);
200
+ initMetadataForClass(JsonElement, 'JsonElement', VOID, VOID, VOID, VOID, VOID, {0: JsonElementSerializer_getInstance});
201
+ initMetadataForCompanion(Companion_0);
202
+ initMetadataForClass(JsonObject, 'JsonObject', VOID, JsonElement, [JsonElement, KtMap], VOID, VOID, {0: JsonObjectSerializer_getInstance});
203
+ initMetadataForClass(JsonPrimitive, 'JsonPrimitive', VOID, JsonElement, VOID, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance});
204
+ initMetadataForObject(JsonNull, 'JsonNull', VOID, JsonPrimitive, [JsonPrimitive, SerializerFactory], VOID, VOID, {0: JsonNull_getInstance});
205
+ initMetadataForCompanion(Companion_1);
206
+ initMetadataForClass(JsonLiteral, 'JsonLiteral', VOID, JsonPrimitive);
207
+ initMetadataForCompanion(Companion_2);
208
+ initMetadataForClass(JsonArray, 'JsonArray', VOID, JsonElement, [JsonElement, KtList], VOID, VOID, {0: JsonArraySerializer_getInstance});
209
+ initMetadataForObject(JsonElementSerializer, 'JsonElementSerializer', VOID, VOID, [KSerializer]);
210
+ initMetadataForObject(JsonObjectDescriptor, 'JsonObjectDescriptor', VOID, VOID, [SerialDescriptor]);
211
+ initMetadataForObject(JsonObjectSerializer, 'JsonObjectSerializer', VOID, VOID, [KSerializer]);
212
+ initMetadataForObject(JsonArrayDescriptor, 'JsonArrayDescriptor', VOID, VOID, [SerialDescriptor]);
213
+ initMetadataForObject(JsonArraySerializer, 'JsonArraySerializer', VOID, VOID, [KSerializer]);
214
+ initMetadataForObject(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', VOID, VOID, [KSerializer]);
215
+ initMetadataForObject(JsonNullSerializer, 'JsonNullSerializer', VOID, VOID, [KSerializer]);
216
+ initMetadataForObject(JsonLiteralSerializer, 'JsonLiteralSerializer', VOID, VOID, [KSerializer]);
217
+ initMetadataForClass(defer$1, VOID, VOID, VOID, [SerialDescriptor]);
218
+ initMetadataForInterface(JsonEncoder, 'JsonEncoder', VOID, VOID, [Encoder, CompositeEncoder]);
219
+ initMetadataForClass(Composer, 'Composer');
220
+ initMetadataForClass(ComposerForUnsignedNumbers, 'ComposerForUnsignedNumbers', VOID, Composer);
221
+ initMetadataForClass(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals', VOID, Composer);
222
+ initMetadataForClass(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint', VOID, Composer);
223
+ initMetadataForClass(JsonElementMarker, 'JsonElementMarker');
224
+ initMetadataForClass(JsonException, 'JsonException', VOID, SerializationException);
225
+ initMetadataForClass(JsonEncodingException, 'JsonEncodingException', VOID, JsonException);
226
+ initMetadataForClass(JsonDecodingException, 'JsonDecodingException', VOID, JsonException);
227
+ initMetadataForObject(Tombstone, 'Tombstone');
228
+ initMetadataForClass(JsonPath, 'JsonPath', JsonPath);
229
+ initMetadataForLambda(JsonTreeReader$readDeepRecursive$slambda, CoroutineImpl, VOID, [2]);
230
+ initMetadataForCoroutine($readObjectCOROUTINE$0, CoroutineImpl);
231
+ initMetadataForClass(JsonTreeReader, 'JsonTreeReader', VOID, VOID, VOID, [0]);
232
+ initMetadataForClass(PolymorphismValidator, 'PolymorphismValidator', VOID, VOID, [SerializersModuleCollector]);
233
+ initMetadataForClass(Key, 'Key', Key);
234
+ initMetadataForClass(DescriptorSchemaCache, 'DescriptorSchemaCache', DescriptorSchemaCache);
235
+ initMetadataForClass(DiscriminatorHolder, 'DiscriminatorHolder');
236
+ initMetadataForClass(StreamingJsonDecoder, 'StreamingJsonDecoder', VOID, AbstractDecoder, [JsonDecoder, AbstractDecoder]);
237
+ initMetadataForClass(JsonDecoderForUnsignedTypes, 'JsonDecoderForUnsignedTypes', VOID, AbstractDecoder);
238
+ initMetadataForClass(StreamingJsonEncoder, 'StreamingJsonEncoder', VOID, AbstractEncoder, [JsonEncoder, AbstractEncoder]);
239
+ initMetadataForClass(AbstractJsonTreeDecoder, 'AbstractJsonTreeDecoder', VOID, NamedValueDecoder, [NamedValueDecoder, JsonDecoder]);
240
+ initMetadataForClass(JsonTreeDecoder, 'JsonTreeDecoder', VOID, AbstractJsonTreeDecoder);
241
+ initMetadataForClass(JsonTreeListDecoder, 'JsonTreeListDecoder', VOID, AbstractJsonTreeDecoder);
242
+ initMetadataForClass(JsonPrimitiveDecoder, 'JsonPrimitiveDecoder', VOID, AbstractJsonTreeDecoder);
243
+ initMetadataForClass(JsonTreeMapDecoder, 'JsonTreeMapDecoder', VOID, JsonTreeDecoder);
244
+ initMetadataForClass(WriteMode, 'WriteMode', VOID, Enum);
245
+ initMetadataForClass(AbstractJsonLexer, 'AbstractJsonLexer');
246
+ initMetadataForObject(CharMappings, 'CharMappings');
247
+ initMetadataForClass(StringJsonLexer, 'StringJsonLexer', VOID, AbstractJsonLexer);
248
+ initMetadataForClass(JsonToStringWriter, 'JsonToStringWriter', JsonToStringWriter);
249
+ //endregion
250
+ function Default() {
251
+ Default_instance = this;
252
+ Json.call(this, new JsonConfiguration(), EmptySerializersModule());
253
+ }
254
+ var Default_instance;
255
+ function Default_getInstance() {
256
+ if (Default_instance == null)
257
+ new Default();
258
+ return Default_instance;
259
+ }
260
+ function Json(configuration, serializersModule) {
261
+ Default_getInstance();
262
+ this.r4w_1 = configuration;
263
+ this.s4w_1 = serializersModule;
264
+ this.t4w_1 = new DescriptorSchemaCache();
265
+ }
266
+ protoOf(Json).d48 = function () {
267
+ return this.s4w_1;
268
+ };
269
+ protoOf(Json).b48 = function (serializer, value) {
270
+ var result = new JsonToStringWriter();
271
+ try {
272
+ encodeByWriter(this, result, serializer, value);
273
+ return result.toString();
274
+ }finally {
275
+ result.c1p();
276
+ }
277
+ };
278
+ protoOf(Json).c48 = function (deserializer, string) {
279
+ var lexer = new StringJsonLexer(string);
280
+ var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.y46(), null);
281
+ var result = input.k4a(deserializer);
282
+ lexer.h4x();
283
+ return result;
284
+ };
285
+ function Json_0(from, builderAction) {
286
+ from = from === VOID ? Default_getInstance() : from;
287
+ var builder = new JsonBuilder(from);
288
+ builderAction(builder);
289
+ var conf = builder.y4x();
290
+ return new JsonImpl(conf, builder.x4x_1);
291
+ }
292
+ function JsonBuilder(json) {
293
+ this.i4x_1 = json.r4w_1.z4x_1;
294
+ this.j4x_1 = json.r4w_1.e4y_1;
295
+ this.k4x_1 = json.r4w_1.a4y_1;
296
+ this.l4x_1 = json.r4w_1.b4y_1;
297
+ this.m4x_1 = json.r4w_1.c4y_1;
298
+ this.n4x_1 = json.r4w_1.d4y_1;
299
+ this.o4x_1 = json.r4w_1.f4y_1;
300
+ this.p4x_1 = json.r4w_1.g4y_1;
301
+ this.q4x_1 = json.r4w_1.h4y_1;
302
+ this.r4x_1 = json.r4w_1.i4y_1;
303
+ this.s4x_1 = json.r4w_1.j4y_1;
304
+ this.t4x_1 = json.r4w_1.k4y_1;
305
+ this.u4x_1 = json.r4w_1.l4y_1;
306
+ this.v4x_1 = json.r4w_1.m4y_1;
307
+ this.w4x_1 = json.r4w_1.n4y_1;
308
+ this.x4x_1 = json.d48();
309
+ }
310
+ protoOf(JsonBuilder).y4x = function () {
311
+ if (this.q4x_1) {
312
+ // Inline function 'kotlin.require' call
313
+ // Inline function 'kotlin.contracts.contract' call
314
+ if (!(this.r4x_1 === 'type')) {
315
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
316
+ var message = 'Class discriminator should not be specified when array polymorphism is specified';
317
+ throw IllegalArgumentException_init_$Create$(toString(message));
318
+ }
319
+ }
320
+ if (!this.n4x_1) {
321
+ // Inline function 'kotlin.require' call
322
+ // Inline function 'kotlin.contracts.contract' call
323
+ if (!(this.o4x_1 === ' ')) {
324
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
325
+ var message_0 = 'Indent should not be specified when default printing mode is used';
326
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
327
+ }
328
+ } else if (!(this.o4x_1 === ' ')) {
329
+ var tmp$ret$3;
330
+ $l$block: {
331
+ // Inline function 'kotlin.text.all' call
332
+ var indexedObject = this.o4x_1;
333
+ var inductionVariable = 0;
334
+ while (inductionVariable < charSequenceLength(indexedObject)) {
335
+ var element = charSequenceGet(indexedObject, inductionVariable);
336
+ inductionVariable = inductionVariable + 1 | 0;
337
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
338
+ if (!(element === _Char___init__impl__6a9atx(32) || element === _Char___init__impl__6a9atx(9) || element === _Char___init__impl__6a9atx(13) || element === _Char___init__impl__6a9atx(10))) {
339
+ tmp$ret$3 = false;
340
+ break $l$block;
341
+ }
342
+ }
343
+ tmp$ret$3 = true;
344
+ }
345
+ var allWhitespaces = tmp$ret$3;
346
+ // Inline function 'kotlin.require' call
347
+ // Inline function 'kotlin.contracts.contract' call
348
+ if (!allWhitespaces) {
349
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
350
+ var message_1 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.o4x_1;
351
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
352
+ }
353
+ }
354
+ return new JsonConfiguration(this.i4x_1, this.k4x_1, this.l4x_1, this.m4x_1, this.n4x_1, this.j4x_1, this.o4x_1, this.p4x_1, this.q4x_1, this.r4x_1, this.s4x_1, this.t4x_1, this.u4x_1, this.v4x_1, this.w4x_1);
355
+ };
356
+ function validateConfiguration($this) {
357
+ if (equals($this.d48(), EmptySerializersModule()))
358
+ return Unit_instance;
359
+ var collector = new PolymorphismValidator($this.r4w_1.h4y_1, $this.r4w_1.i4y_1);
360
+ $this.d48().e4r(collector);
361
+ }
362
+ function JsonImpl(configuration, module_0) {
363
+ Json.call(this, configuration, module_0);
364
+ validateConfiguration(this);
365
+ }
366
+ function JsonClassDiscriminator() {
367
+ }
368
+ function JsonNames() {
369
+ }
370
+ function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy, decodeEnumsCaseInsensitive, allowTrailingComma) {
371
+ encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults;
372
+ ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys;
373
+ isLenient = isLenient === VOID ? false : isLenient;
374
+ allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys;
375
+ prettyPrint = prettyPrint === VOID ? false : prettyPrint;
376
+ explicitNulls = explicitNulls === VOID ? true : explicitNulls;
377
+ prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent;
378
+ coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues;
379
+ useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism;
380
+ classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator;
381
+ allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
382
+ useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
383
+ namingStrategy = namingStrategy === VOID ? null : namingStrategy;
384
+ decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive;
385
+ allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
386
+ this.z4x_1 = encodeDefaults;
387
+ this.a4y_1 = ignoreUnknownKeys;
388
+ this.b4y_1 = isLenient;
389
+ this.c4y_1 = allowStructuredMapKeys;
390
+ this.d4y_1 = prettyPrint;
391
+ this.e4y_1 = explicitNulls;
392
+ this.f4y_1 = prettyPrintIndent;
393
+ this.g4y_1 = coerceInputValues;
394
+ this.h4y_1 = useArrayPolymorphism;
395
+ this.i4y_1 = classDiscriminator;
396
+ this.j4y_1 = allowSpecialFloatingPointValues;
397
+ this.k4y_1 = useAlternativeNames;
398
+ this.l4y_1 = namingStrategy;
399
+ this.m4y_1 = decodeEnumsCaseInsensitive;
400
+ this.n4y_1 = allowTrailingComma;
401
+ }
402
+ protoOf(JsonConfiguration).toString = function () {
403
+ return 'JsonConfiguration(encodeDefaults=' + this.z4x_1 + ', ignoreUnknownKeys=' + this.a4y_1 + ', isLenient=' + this.b4y_1 + ', ' + ('allowStructuredMapKeys=' + this.c4y_1 + ', prettyPrint=' + this.d4y_1 + ', explicitNulls=' + this.e4y_1 + ', ') + ("prettyPrintIndent='" + this.f4y_1 + "', coerceInputValues=" + this.g4y_1 + ', useArrayPolymorphism=' + this.h4y_1 + ', ') + ("classDiscriminator='" + this.i4y_1 + "', allowSpecialFloatingPointValues=" + this.j4y_1 + ', useAlternativeNames=' + this.k4y_1 + ', ') + ('namingStrategy=' + toString_0(this.l4y_1) + ', decodeEnumsCaseInsensitive=' + this.m4y_1 + ', allowTrailingComma=' + this.n4y_1 + ')');
404
+ };
405
+ function JsonDecoder() {
406
+ }
407
+ function get_jsonUnquotedLiteralDescriptor() {
408
+ _init_properties_JsonElement_kt__7cbdc2();
409
+ return jsonUnquotedLiteralDescriptor;
410
+ }
411
+ var jsonUnquotedLiteralDescriptor;
412
+ function Companion() {
413
+ }
414
+ var Companion_instance;
415
+ function Companion_getInstance_3() {
416
+ return Companion_instance;
417
+ }
418
+ function JsonElement() {
419
+ }
420
+ function Companion_0() {
421
+ }
422
+ var Companion_instance_0;
423
+ function Companion_getInstance_4() {
424
+ return Companion_instance_0;
425
+ }
426
+ function JsonObject$toString$lambda(_name_for_destructuring_parameter_0__wldtmu) {
427
+ // Inline function 'kotlin.collections.component1' call
428
+ var k = _name_for_destructuring_parameter_0__wldtmu.t();
429
+ // Inline function 'kotlin.collections.component2' call
430
+ var v = _name_for_destructuring_parameter_0__wldtmu.u();
431
+ // Inline function 'kotlin.text.buildString' call
432
+ // Inline function 'kotlin.contracts.contract' call
433
+ // Inline function 'kotlin.apply' call
434
+ var this_0 = StringBuilder_init_$Create$();
435
+ // Inline function 'kotlin.contracts.contract' call
436
+ // Inline function 'kotlinx.serialization.json.JsonObject.toString.<anonymous>.<anonymous>' call
437
+ printQuoted(this_0, k);
438
+ this_0.j8(_Char___init__impl__6a9atx(58));
439
+ this_0.h8(v);
440
+ return this_0.toString();
441
+ }
442
+ function JsonObject(content) {
443
+ JsonElement.call(this);
444
+ this.q4y_1 = content;
445
+ }
446
+ protoOf(JsonObject).s = function () {
447
+ return this.q4y_1.s();
448
+ };
449
+ protoOf(JsonObject).i2 = function () {
450
+ return this.q4y_1.i2();
451
+ };
452
+ protoOf(JsonObject).m = function () {
453
+ return this.q4y_1.m();
454
+ };
455
+ protoOf(JsonObject).j2 = function () {
456
+ return this.q4y_1.j2();
457
+ };
458
+ protoOf(JsonObject).l2b = function (key) {
459
+ return this.q4y_1.f2(key);
460
+ };
461
+ protoOf(JsonObject).f2 = function (key) {
462
+ if (!(!(key == null) ? typeof key === 'string' : false))
463
+ return false;
464
+ return this.l2b((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
465
+ };
466
+ protoOf(JsonObject).r4y = function (value) {
467
+ return this.q4y_1.g2(value);
468
+ };
469
+ protoOf(JsonObject).g2 = function (value) {
470
+ if (!(value instanceof JsonElement))
471
+ return false;
472
+ return this.r4y(value instanceof JsonElement ? value : THROW_CCE());
473
+ };
474
+ protoOf(JsonObject).n2b = function (key) {
475
+ return this.q4y_1.h2(key);
476
+ };
477
+ protoOf(JsonObject).h2 = function (key) {
478
+ if (!(!(key == null) ? typeof key === 'string' : false))
479
+ return null;
480
+ return this.n2b((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
481
+ };
482
+ protoOf(JsonObject).p = function () {
483
+ return this.q4y_1.p();
484
+ };
485
+ protoOf(JsonObject).equals = function (other) {
486
+ return equals(this.q4y_1, other);
487
+ };
488
+ protoOf(JsonObject).hashCode = function () {
489
+ return hashCode(this.q4y_1);
490
+ };
491
+ protoOf(JsonObject).toString = function () {
492
+ var tmp = this.q4y_1.s();
493
+ return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
494
+ };
495
+ function _get_$cachedSerializer__te6jhj($this) {
496
+ return $this.t4y_1.u();
497
+ }
498
+ function JsonNull$_anonymous__enib48() {
499
+ return JsonNullSerializer_getInstance();
500
+ }
501
+ function JsonNull() {
502
+ JsonNull_instance = this;
503
+ JsonPrimitive.call(this);
504
+ this.s4y_1 = 'null';
505
+ var tmp = this;
506
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
507
+ tmp.t4y_1 = lazy(tmp_0, JsonNull$_anonymous__enib48);
508
+ }
509
+ protoOf(JsonNull).m30 = function () {
510
+ return this.s4y_1;
511
+ };
512
+ protoOf(JsonNull).u4y = function () {
513
+ return _get_$cachedSerializer__te6jhj(this);
514
+ };
515
+ protoOf(JsonNull).x4i = function (typeParamsSerializers) {
516
+ return this.u4y();
517
+ };
518
+ var JsonNull_instance;
519
+ function JsonNull_getInstance() {
520
+ if (JsonNull_instance == null)
521
+ new JsonNull();
522
+ return JsonNull_instance;
523
+ }
524
+ function Companion_1() {
525
+ }
526
+ var Companion_instance_1;
527
+ function Companion_getInstance_5() {
528
+ return Companion_instance_1;
529
+ }
530
+ function JsonPrimitive() {
531
+ JsonElement.call(this);
532
+ }
533
+ protoOf(JsonPrimitive).toString = function () {
534
+ return this.m30();
535
+ };
536
+ function JsonPrimitive_0(value) {
537
+ _init_properties_JsonElement_kt__7cbdc2();
538
+ if (value == null)
539
+ return JsonNull_getInstance();
540
+ return new JsonLiteral(value, true);
541
+ }
542
+ function JsonLiteral(body, isString, coerceToInlineType) {
543
+ coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
544
+ JsonPrimitive.call(this);
545
+ this.v4y_1 = isString;
546
+ this.w4y_1 = coerceToInlineType;
547
+ this.x4y_1 = toString(body);
548
+ if (!(this.w4y_1 == null)) {
549
+ // Inline function 'kotlin.require' call
550
+ // Inline function 'kotlin.contracts.contract' call
551
+ // Inline function 'kotlin.require' call
552
+ // Inline function 'kotlin.contracts.contract' call
553
+ if (!this.w4y_1.r48()) {
554
+ // Inline function 'kotlin.require.<anonymous>' call
555
+ var message = 'Failed requirement.';
556
+ throw IllegalArgumentException_init_$Create$(toString(message));
557
+ }
558
+ }
559
+ }
560
+ protoOf(JsonLiteral).m30 = function () {
561
+ return this.x4y_1;
562
+ };
563
+ protoOf(JsonLiteral).toString = function () {
564
+ var tmp;
565
+ if (this.v4y_1) {
566
+ // Inline function 'kotlin.text.buildString' call
567
+ // Inline function 'kotlin.contracts.contract' call
568
+ // Inline function 'kotlin.apply' call
569
+ var this_0 = StringBuilder_init_$Create$();
570
+ // Inline function 'kotlin.contracts.contract' call
571
+ // Inline function 'kotlinx.serialization.json.JsonLiteral.toString.<anonymous>' call
572
+ printQuoted(this_0, this.x4y_1);
573
+ tmp = this_0.toString();
574
+ } else {
575
+ tmp = this.x4y_1;
576
+ }
577
+ return tmp;
578
+ };
579
+ protoOf(JsonLiteral).equals = function (other) {
580
+ if (this === other)
581
+ return true;
582
+ if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
583
+ return false;
584
+ if (!(other instanceof JsonLiteral))
585
+ THROW_CCE();
586
+ if (!(this.v4y_1 === other.v4y_1))
587
+ return false;
588
+ if (!(this.x4y_1 === other.x4y_1))
589
+ return false;
590
+ return true;
591
+ };
592
+ protoOf(JsonLiteral).hashCode = function () {
593
+ var result = getBooleanHashCode(this.v4y_1);
594
+ result = imul(31, result) + getStringHashCode(this.x4y_1) | 0;
595
+ return result;
596
+ };
597
+ function Companion_2() {
598
+ }
599
+ var Companion_instance_2;
600
+ function Companion_getInstance_6() {
601
+ return Companion_instance_2;
602
+ }
603
+ function JsonArray(content) {
604
+ JsonElement.call(this);
605
+ this.y4y_1 = content;
606
+ }
607
+ protoOf(JsonArray).m = function () {
608
+ return this.y4y_1.m();
609
+ };
610
+ protoOf(JsonArray).z4y = function (element) {
611
+ return this.y4y_1.s1(element);
612
+ };
613
+ protoOf(JsonArray).s1 = function (element) {
614
+ if (!(element instanceof JsonElement))
615
+ return false;
616
+ return this.z4y(element instanceof JsonElement ? element : THROW_CCE());
617
+ };
618
+ protoOf(JsonArray).a4z = function (elements) {
619
+ return this.y4y_1.t1(elements);
620
+ };
621
+ protoOf(JsonArray).t1 = function (elements) {
622
+ return this.a4z(elements);
623
+ };
624
+ protoOf(JsonArray).o = function (index) {
625
+ return this.y4y_1.o(index);
626
+ };
627
+ protoOf(JsonArray).b4z = function (element) {
628
+ return this.y4y_1.u1(element);
629
+ };
630
+ protoOf(JsonArray).u1 = function (element) {
631
+ if (!(element instanceof JsonElement))
632
+ return -1;
633
+ return this.b4z(element instanceof JsonElement ? element : THROW_CCE());
634
+ };
635
+ protoOf(JsonArray).p = function () {
636
+ return this.y4y_1.p();
637
+ };
638
+ protoOf(JsonArray).j = function () {
639
+ return this.y4y_1.j();
640
+ };
641
+ protoOf(JsonArray).c4z = function (element) {
642
+ return this.y4y_1.v1(element);
643
+ };
644
+ protoOf(JsonArray).v1 = function (element) {
645
+ if (!(element instanceof JsonElement))
646
+ return -1;
647
+ return this.c4z(element instanceof JsonElement ? element : THROW_CCE());
648
+ };
649
+ protoOf(JsonArray).w1 = function () {
650
+ return this.y4y_1.w1();
651
+ };
652
+ protoOf(JsonArray).q = function (index) {
653
+ return this.y4y_1.q(index);
654
+ };
655
+ protoOf(JsonArray).x1 = function (fromIndex, toIndex) {
656
+ return this.y4y_1.x1(fromIndex, toIndex);
657
+ };
658
+ protoOf(JsonArray).equals = function (other) {
659
+ return equals(this.y4y_1, other);
660
+ };
661
+ protoOf(JsonArray).hashCode = function () {
662
+ return hashCode(this.y4y_1);
663
+ };
664
+ protoOf(JsonArray).toString = function () {
665
+ return joinToString(this.y4y_1, ',', '[', ']');
666
+ };
667
+ function get_booleanOrNull(_this__u8e3s4) {
668
+ _init_properties_JsonElement_kt__7cbdc2();
669
+ return toBooleanStrictOrNull_0(_this__u8e3s4.m30());
670
+ }
671
+ function get_int(_this__u8e3s4) {
672
+ _init_properties_JsonElement_kt__7cbdc2();
673
+ // Inline function 'kotlinx.serialization.json.mapExceptions' call
674
+ var tmp;
675
+ try {
676
+ // Inline function 'kotlinx.serialization.json.<get-int>.<anonymous>' call
677
+ tmp = (new StringJsonLexer(_this__u8e3s4.m30())).d4z();
678
+ } catch ($p) {
679
+ var tmp_0;
680
+ if ($p instanceof JsonDecodingException) {
681
+ var e = $p;
682
+ throw NumberFormatException_init_$Create$(e.message);
683
+ } else {
684
+ throw $p;
685
+ }
686
+ }
687
+ var result = tmp;
688
+ // Inline function 'kotlin.ranges.contains' call
689
+ var this_0 = numberRangeToNumber(-2147483648, 2147483647);
690
+ if (!contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), result))
691
+ throw NumberFormatException_init_$Create$(_this__u8e3s4.m30() + ' is not an Int');
692
+ return result.e1();
693
+ }
694
+ function get_long(_this__u8e3s4) {
695
+ _init_properties_JsonElement_kt__7cbdc2();
696
+ // Inline function 'kotlinx.serialization.json.mapExceptions' call
697
+ var tmp;
698
+ try {
699
+ // Inline function 'kotlinx.serialization.json.<get-long>.<anonymous>' call
700
+ tmp = (new StringJsonLexer(_this__u8e3s4.m30())).d4z();
701
+ } catch ($p) {
702
+ var tmp_0;
703
+ if ($p instanceof JsonDecodingException) {
704
+ var e = $p;
705
+ throw NumberFormatException_init_$Create$(e.message);
706
+ } else {
707
+ throw $p;
708
+ }
709
+ }
710
+ return tmp;
711
+ }
712
+ function get_float(_this__u8e3s4) {
713
+ _init_properties_JsonElement_kt__7cbdc2();
714
+ // Inline function 'kotlin.text.toFloat' call
715
+ var this_0 = _this__u8e3s4.m30();
716
+ // Inline function 'kotlin.js.unsafeCast' call
717
+ // Inline function 'kotlin.js.asDynamic' call
718
+ return toDouble(this_0);
719
+ }
720
+ function get_double(_this__u8e3s4) {
721
+ _init_properties_JsonElement_kt__7cbdc2();
722
+ return toDouble(_this__u8e3s4.m30());
723
+ }
724
+ function get_contentOrNull(_this__u8e3s4) {
725
+ _init_properties_JsonElement_kt__7cbdc2();
726
+ var tmp;
727
+ if (_this__u8e3s4 instanceof JsonNull) {
728
+ tmp = null;
729
+ } else {
730
+ tmp = _this__u8e3s4.m30();
731
+ }
732
+ return tmp;
733
+ }
734
+ function get_jsonPrimitive(_this__u8e3s4) {
735
+ _init_properties_JsonElement_kt__7cbdc2();
736
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonPrimitive ? _this__u8e3s4 : null;
737
+ var tmp;
738
+ if (tmp0_elvis_lhs == null) {
739
+ error(_this__u8e3s4, 'JsonPrimitive');
740
+ } else {
741
+ tmp = tmp0_elvis_lhs;
742
+ }
743
+ return tmp;
744
+ }
745
+ function error(_this__u8e3s4, element) {
746
+ _init_properties_JsonElement_kt__7cbdc2();
747
+ throw IllegalArgumentException_init_$Create$('Element ' + toString(getKClassFromExpression(_this__u8e3s4)) + ' is not a ' + element);
748
+ }
749
+ function get_jsonObject(_this__u8e3s4) {
750
+ _init_properties_JsonElement_kt__7cbdc2();
751
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonObject ? _this__u8e3s4 : null;
752
+ var tmp;
753
+ if (tmp0_elvis_lhs == null) {
754
+ error(_this__u8e3s4, 'JsonObject');
755
+ } else {
756
+ tmp = tmp0_elvis_lhs;
757
+ }
758
+ return tmp;
759
+ }
760
+ var properties_initialized_JsonElement_kt_abxy8s;
761
+ function _init_properties_JsonElement_kt__7cbdc2() {
762
+ if (!properties_initialized_JsonElement_kt_abxy8s) {
763
+ properties_initialized_JsonElement_kt_abxy8s = true;
764
+ jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_instance));
765
+ }
766
+ }
767
+ function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
768
+ $this$buildSerialDescriptor.m47('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
769
+ $this$buildSerialDescriptor.m47('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0));
770
+ $this$buildSerialDescriptor.m47('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1));
771
+ $this$buildSerialDescriptor.m47('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2));
772
+ $this$buildSerialDescriptor.m47('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3));
773
+ return Unit_instance;
774
+ }
775
+ function JsonElementSerializer$descriptor$lambda$lambda() {
776
+ return JsonPrimitiveSerializer_getInstance().e4z_1;
777
+ }
778
+ function JsonElementSerializer$descriptor$lambda$lambda_0() {
779
+ return JsonNullSerializer_getInstance().f4z_1;
780
+ }
781
+ function JsonElementSerializer$descriptor$lambda$lambda_1() {
782
+ return JsonLiteralSerializer_getInstance().g4z_1;
783
+ }
784
+ function JsonElementSerializer$descriptor$lambda$lambda_2() {
785
+ return JsonObjectSerializer_getInstance().h4z_1;
786
+ }
787
+ function JsonElementSerializer$descriptor$lambda$lambda_3() {
788
+ return JsonArraySerializer_getInstance().i4z_1;
789
+ }
790
+ function JsonElementSerializer() {
791
+ JsonElementSerializer_instance = this;
792
+ var tmp = this;
793
+ var tmp_0 = SEALED_getInstance();
794
+ tmp.j4z_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
795
+ }
796
+ protoOf(JsonElementSerializer).y46 = function () {
797
+ return this.j4z_1;
798
+ };
799
+ protoOf(JsonElementSerializer).k4z = function (encoder, value) {
800
+ verify(encoder);
801
+ if (value instanceof JsonPrimitive) {
802
+ encoder.c4c(JsonPrimitiveSerializer_getInstance(), value);
803
+ } else {
804
+ if (value instanceof JsonObject) {
805
+ encoder.c4c(JsonObjectSerializer_getInstance(), value);
806
+ } else {
807
+ if (value instanceof JsonArray) {
808
+ encoder.c4c(JsonArraySerializer_getInstance(), value);
809
+ }
810
+ }
811
+ }
812
+ };
813
+ protoOf(JsonElementSerializer).z46 = function (encoder, value) {
814
+ return this.k4z(encoder, value instanceof JsonElement ? value : THROW_CCE());
815
+ };
816
+ protoOf(JsonElementSerializer).a47 = function (decoder) {
817
+ var input = asJsonDecoder(decoder);
818
+ return input.p4y();
819
+ };
820
+ var JsonElementSerializer_instance;
821
+ function JsonElementSerializer_getInstance() {
822
+ if (JsonElementSerializer_instance == null)
823
+ new JsonElementSerializer();
824
+ return JsonElementSerializer_instance;
825
+ }
826
+ function JsonObjectDescriptor() {
827
+ JsonObjectDescriptor_instance = this;
828
+ this.l4z_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).y46();
829
+ this.m4z_1 = 'kotlinx.serialization.json.JsonObject';
830
+ }
831
+ protoOf(JsonObjectDescriptor).p48 = function () {
832
+ return this.l4z_1.p48();
833
+ };
834
+ protoOf(JsonObjectDescriptor).q48 = function () {
835
+ return this.l4z_1.q48();
836
+ };
837
+ protoOf(JsonObjectDescriptor).r48 = function () {
838
+ return this.l4z_1.r48();
839
+ };
840
+ protoOf(JsonObjectDescriptor).l48 = function () {
841
+ return this.l4z_1.l48();
842
+ };
843
+ protoOf(JsonObjectDescriptor).s48 = function () {
844
+ return this.l4z_1.s48();
845
+ };
846
+ protoOf(JsonObjectDescriptor).t48 = function (index) {
847
+ return this.l4z_1.t48(index);
848
+ };
849
+ protoOf(JsonObjectDescriptor).u48 = function (index) {
850
+ return this.l4z_1.u48(index);
851
+ };
852
+ protoOf(JsonObjectDescriptor).v48 = function (name) {
853
+ return this.l4z_1.v48(name);
854
+ };
855
+ protoOf(JsonObjectDescriptor).w48 = function (index) {
856
+ return this.l4z_1.w48(index);
857
+ };
858
+ protoOf(JsonObjectDescriptor).x48 = function (index) {
859
+ return this.l4z_1.x48(index);
860
+ };
861
+ protoOf(JsonObjectDescriptor).z47 = function () {
862
+ return this.m4z_1;
863
+ };
864
+ var JsonObjectDescriptor_instance;
865
+ function JsonObjectDescriptor_getInstance() {
866
+ if (JsonObjectDescriptor_instance == null)
867
+ new JsonObjectDescriptor();
868
+ return JsonObjectDescriptor_instance;
869
+ }
870
+ function JsonObjectSerializer() {
871
+ JsonObjectSerializer_instance = this;
872
+ this.h4z_1 = JsonObjectDescriptor_getInstance();
873
+ }
874
+ protoOf(JsonObjectSerializer).y46 = function () {
875
+ return this.h4z_1;
876
+ };
877
+ protoOf(JsonObjectSerializer).n4z = function (encoder, value) {
878
+ verify(encoder);
879
+ MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).z46(encoder, value);
880
+ };
881
+ protoOf(JsonObjectSerializer).z46 = function (encoder, value) {
882
+ return this.n4z(encoder, value instanceof JsonObject ? value : THROW_CCE());
883
+ };
884
+ protoOf(JsonObjectSerializer).a47 = function (decoder) {
885
+ verify_0(decoder);
886
+ return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).a47(decoder));
887
+ };
888
+ var JsonObjectSerializer_instance;
889
+ function JsonObjectSerializer_getInstance() {
890
+ if (JsonObjectSerializer_instance == null)
891
+ new JsonObjectSerializer();
892
+ return JsonObjectSerializer_instance;
893
+ }
894
+ function JsonArrayDescriptor() {
895
+ JsonArrayDescriptor_instance = this;
896
+ this.o4z_1 = ListSerializer(JsonElementSerializer_getInstance()).y46();
897
+ this.p4z_1 = 'kotlinx.serialization.json.JsonArray';
898
+ }
899
+ protoOf(JsonArrayDescriptor).p48 = function () {
900
+ return this.o4z_1.p48();
901
+ };
902
+ protoOf(JsonArrayDescriptor).q48 = function () {
903
+ return this.o4z_1.q48();
904
+ };
905
+ protoOf(JsonArrayDescriptor).r48 = function () {
906
+ return this.o4z_1.r48();
907
+ };
908
+ protoOf(JsonArrayDescriptor).l48 = function () {
909
+ return this.o4z_1.l48();
910
+ };
911
+ protoOf(JsonArrayDescriptor).s48 = function () {
912
+ return this.o4z_1.s48();
913
+ };
914
+ protoOf(JsonArrayDescriptor).t48 = function (index) {
915
+ return this.o4z_1.t48(index);
916
+ };
917
+ protoOf(JsonArrayDescriptor).u48 = function (index) {
918
+ return this.o4z_1.u48(index);
919
+ };
920
+ protoOf(JsonArrayDescriptor).v48 = function (name) {
921
+ return this.o4z_1.v48(name);
922
+ };
923
+ protoOf(JsonArrayDescriptor).w48 = function (index) {
924
+ return this.o4z_1.w48(index);
925
+ };
926
+ protoOf(JsonArrayDescriptor).x48 = function (index) {
927
+ return this.o4z_1.x48(index);
928
+ };
929
+ protoOf(JsonArrayDescriptor).z47 = function () {
930
+ return this.p4z_1;
931
+ };
932
+ var JsonArrayDescriptor_instance;
933
+ function JsonArrayDescriptor_getInstance() {
934
+ if (JsonArrayDescriptor_instance == null)
935
+ new JsonArrayDescriptor();
936
+ return JsonArrayDescriptor_instance;
937
+ }
938
+ function JsonArraySerializer() {
939
+ JsonArraySerializer_instance = this;
940
+ this.i4z_1 = JsonArrayDescriptor_getInstance();
941
+ }
942
+ protoOf(JsonArraySerializer).y46 = function () {
943
+ return this.i4z_1;
944
+ };
945
+ protoOf(JsonArraySerializer).q4z = function (encoder, value) {
946
+ verify(encoder);
947
+ ListSerializer(JsonElementSerializer_getInstance()).z46(encoder, value);
948
+ };
949
+ protoOf(JsonArraySerializer).z46 = function (encoder, value) {
950
+ return this.q4z(encoder, value instanceof JsonArray ? value : THROW_CCE());
951
+ };
952
+ protoOf(JsonArraySerializer).a47 = function (decoder) {
953
+ verify_0(decoder);
954
+ return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).a47(decoder));
955
+ };
956
+ var JsonArraySerializer_instance;
957
+ function JsonArraySerializer_getInstance() {
958
+ if (JsonArraySerializer_instance == null)
959
+ new JsonArraySerializer();
960
+ return JsonArraySerializer_instance;
961
+ }
962
+ function defer(deferred) {
963
+ return new defer$1(deferred);
964
+ }
965
+ function JsonPrimitiveSerializer() {
966
+ JsonPrimitiveSerializer_instance = this;
967
+ this.e4z_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
968
+ }
969
+ protoOf(JsonPrimitiveSerializer).y46 = function () {
970
+ return this.e4z_1;
971
+ };
972
+ protoOf(JsonPrimitiveSerializer).r4z = function (encoder, value) {
973
+ verify(encoder);
974
+ var tmp;
975
+ if (value instanceof JsonNull) {
976
+ encoder.c4c(JsonNullSerializer_getInstance(), JsonNull_getInstance());
977
+ tmp = Unit_instance;
978
+ } else {
979
+ var tmp_0 = JsonLiteralSerializer_getInstance();
980
+ encoder.c4c(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE());
981
+ tmp = Unit_instance;
982
+ }
983
+ return tmp;
984
+ };
985
+ protoOf(JsonPrimitiveSerializer).z46 = function (encoder, value) {
986
+ return this.r4z(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
987
+ };
988
+ protoOf(JsonPrimitiveSerializer).a47 = function (decoder) {
989
+ var result = asJsonDecoder(decoder).p4y();
990
+ if (!(result instanceof JsonPrimitive))
991
+ throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
992
+ return result;
993
+ };
994
+ var JsonPrimitiveSerializer_instance;
995
+ function JsonPrimitiveSerializer_getInstance() {
996
+ if (JsonPrimitiveSerializer_instance == null)
997
+ new JsonPrimitiveSerializer();
998
+ return JsonPrimitiveSerializer_instance;
999
+ }
1000
+ function JsonNullSerializer() {
1001
+ JsonNullSerializer_instance = this;
1002
+ this.f4z_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
1003
+ }
1004
+ protoOf(JsonNullSerializer).y46 = function () {
1005
+ return this.f4z_1;
1006
+ };
1007
+ protoOf(JsonNullSerializer).s4z = function (encoder, value) {
1008
+ verify(encoder);
1009
+ encoder.f4b();
1010
+ };
1011
+ protoOf(JsonNullSerializer).z46 = function (encoder, value) {
1012
+ return this.s4z(encoder, value instanceof JsonNull ? value : THROW_CCE());
1013
+ };
1014
+ protoOf(JsonNullSerializer).a47 = function (decoder) {
1015
+ verify_0(decoder);
1016
+ if (decoder.w49()) {
1017
+ throw new JsonDecodingException("Expected 'null' literal");
1018
+ }
1019
+ decoder.x49();
1020
+ return JsonNull_getInstance();
1021
+ };
1022
+ var JsonNullSerializer_instance;
1023
+ function JsonNullSerializer_getInstance() {
1024
+ if (JsonNullSerializer_instance == null)
1025
+ new JsonNullSerializer();
1026
+ return JsonNullSerializer_instance;
1027
+ }
1028
+ function JsonLiteralSerializer() {
1029
+ JsonLiteralSerializer_instance = this;
1030
+ this.g4z_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
1031
+ }
1032
+ protoOf(JsonLiteralSerializer).y46 = function () {
1033
+ return this.g4z_1;
1034
+ };
1035
+ protoOf(JsonLiteralSerializer).t4z = function (encoder, value) {
1036
+ verify(encoder);
1037
+ if (value.v4y_1) {
1038
+ return encoder.o4b(value.x4y_1);
1039
+ }
1040
+ if (!(value.w4y_1 == null)) {
1041
+ return encoder.q4b(value.w4y_1).o4b(value.x4y_1);
1042
+ }
1043
+ var tmp0_safe_receiver = toLongOrNull(value.x4y_1);
1044
+ if (tmp0_safe_receiver == null)
1045
+ null;
1046
+ else {
1047
+ // Inline function 'kotlin.let' call
1048
+ // Inline function 'kotlin.contracts.contract' call
1049
+ return encoder.k4b(tmp0_safe_receiver);
1050
+ }
1051
+ var tmp1_safe_receiver = toULongOrNull(value.x4y_1);
1052
+ var tmp = tmp1_safe_receiver;
1053
+ if ((tmp == null ? null : new ULong(tmp)) == null)
1054
+ null;
1055
+ else {
1056
+ // Inline function 'kotlin.let' call
1057
+ var tmp_0 = tmp1_safe_receiver;
1058
+ // Inline function 'kotlin.contracts.contract' call
1059
+ var it = (tmp_0 == null ? null : new ULong(tmp_0)).mk_1;
1060
+ var tmp_1 = encoder.q4b(serializer_0(Companion_getInstance()).y46());
1061
+ // Inline function 'kotlin.ULong.toLong' call
1062
+ var tmp$ret$1 = _ULong___get_data__impl__fggpzb(it);
1063
+ tmp_1.k4b(tmp$ret$1);
1064
+ return Unit_instance;
1065
+ }
1066
+ var tmp2_safe_receiver = toDoubleOrNull(value.x4y_1);
1067
+ if (tmp2_safe_receiver == null)
1068
+ null;
1069
+ else {
1070
+ // Inline function 'kotlin.let' call
1071
+ // Inline function 'kotlin.contracts.contract' call
1072
+ return encoder.m4b(tmp2_safe_receiver);
1073
+ }
1074
+ var tmp3_safe_receiver = toBooleanStrictOrNull(value.x4y_1);
1075
+ if (tmp3_safe_receiver == null)
1076
+ null;
1077
+ else {
1078
+ // Inline function 'kotlin.let' call
1079
+ // Inline function 'kotlin.contracts.contract' call
1080
+ return encoder.g4b(tmp3_safe_receiver);
1081
+ }
1082
+ encoder.o4b(value.x4y_1);
1083
+ };
1084
+ protoOf(JsonLiteralSerializer).z46 = function (encoder, value) {
1085
+ return this.t4z(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
1086
+ };
1087
+ protoOf(JsonLiteralSerializer).a47 = function (decoder) {
1088
+ var result = asJsonDecoder(decoder).p4y();
1089
+ if (!(result instanceof JsonLiteral))
1090
+ throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString(getKClassFromExpression(result)), toString(result));
1091
+ return result;
1092
+ };
1093
+ var JsonLiteralSerializer_instance;
1094
+ function JsonLiteralSerializer_getInstance() {
1095
+ if (JsonLiteralSerializer_instance == null)
1096
+ new JsonLiteralSerializer();
1097
+ return JsonLiteralSerializer_instance;
1098
+ }
1099
+ function verify(encoder) {
1100
+ asJsonEncoder(encoder);
1101
+ }
1102
+ function asJsonDecoder(_this__u8e3s4) {
1103
+ var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonDecoder) ? _this__u8e3s4 : null;
1104
+ var tmp;
1105
+ if (tmp0_elvis_lhs == null) {
1106
+ throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Decoder to be JsonDecoder, got ' + toString(getKClassFromExpression(_this__u8e3s4))));
1107
+ } else {
1108
+ tmp = tmp0_elvis_lhs;
1109
+ }
1110
+ return tmp;
1111
+ }
1112
+ function verify_0(decoder) {
1113
+ asJsonDecoder(decoder);
1114
+ }
1115
+ function asJsonEncoder(_this__u8e3s4) {
1116
+ var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonEncoder) ? _this__u8e3s4 : null;
1117
+ var tmp;
1118
+ if (tmp0_elvis_lhs == null) {
1119
+ throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Encoder to be JsonEncoder, got ' + toString(getKClassFromExpression(_this__u8e3s4))));
1120
+ } else {
1121
+ tmp = tmp0_elvis_lhs;
1122
+ }
1123
+ return tmp;
1124
+ }
1125
+ function _get_original__l7ku1m($this) {
1126
+ // Inline function 'kotlin.getValue' call
1127
+ var this_0 = $this.u4z_1;
1128
+ original$factory();
1129
+ return this_0.u();
1130
+ }
1131
+ function defer$1($deferred) {
1132
+ this.u4z_1 = lazy_0($deferred);
1133
+ }
1134
+ protoOf(defer$1).z47 = function () {
1135
+ return _get_original__l7ku1m(this).z47();
1136
+ };
1137
+ protoOf(defer$1).s48 = function () {
1138
+ return _get_original__l7ku1m(this).s48();
1139
+ };
1140
+ protoOf(defer$1).q48 = function () {
1141
+ return _get_original__l7ku1m(this).q48();
1142
+ };
1143
+ protoOf(defer$1).w48 = function (index) {
1144
+ return _get_original__l7ku1m(this).w48(index);
1145
+ };
1146
+ protoOf(defer$1).v48 = function (name) {
1147
+ return _get_original__l7ku1m(this).v48(name);
1148
+ };
1149
+ protoOf(defer$1).t48 = function (index) {
1150
+ return _get_original__l7ku1m(this).t48(index);
1151
+ };
1152
+ protoOf(defer$1).u48 = function (index) {
1153
+ return _get_original__l7ku1m(this).u48(index);
1154
+ };
1155
+ protoOf(defer$1).x48 = function (index) {
1156
+ return _get_original__l7ku1m(this).x48(index);
1157
+ };
1158
+ function original$factory() {
1159
+ return getPropertyCallableRef('original', 1, KProperty1, function (receiver) {
1160
+ return _get_original__l7ku1m(receiver);
1161
+ }, null);
1162
+ }
1163
+ function JsonEncoder() {
1164
+ }
1165
+ function Composer(writer) {
1166
+ this.v4z_1 = writer;
1167
+ this.w4z_1 = true;
1168
+ }
1169
+ protoOf(Composer).x4z = function () {
1170
+ this.w4z_1 = true;
1171
+ };
1172
+ protoOf(Composer).y4z = function () {
1173
+ return Unit_instance;
1174
+ };
1175
+ protoOf(Composer).z4z = function () {
1176
+ this.w4z_1 = false;
1177
+ };
1178
+ protoOf(Composer).a50 = function () {
1179
+ return Unit_instance;
1180
+ };
1181
+ protoOf(Composer).b50 = function (v) {
1182
+ return this.v4z_1.c50(v);
1183
+ };
1184
+ protoOf(Composer).d50 = function (v) {
1185
+ return this.v4z_1.e50(v);
1186
+ };
1187
+ protoOf(Composer).f50 = function (v) {
1188
+ return this.v4z_1.e50(v.toString());
1189
+ };
1190
+ protoOf(Composer).g50 = function (v) {
1191
+ return this.v4z_1.e50(v.toString());
1192
+ };
1193
+ protoOf(Composer).h50 = function (v) {
1194
+ return this.v4z_1.i50(toLong(v));
1195
+ };
1196
+ protoOf(Composer).j50 = function (v) {
1197
+ return this.v4z_1.i50(toLong(v));
1198
+ };
1199
+ protoOf(Composer).k50 = function (v) {
1200
+ return this.v4z_1.i50(toLong(v));
1201
+ };
1202
+ protoOf(Composer).l50 = function (v) {
1203
+ return this.v4z_1.i50(v);
1204
+ };
1205
+ protoOf(Composer).m50 = function (v) {
1206
+ return this.v4z_1.e50(v.toString());
1207
+ };
1208
+ protoOf(Composer).n50 = function (value) {
1209
+ return this.v4z_1.o50(value);
1210
+ };
1211
+ function Composer_0(sb, json) {
1212
+ return json.r4w_1.d4y_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
1213
+ }
1214
+ function ComposerForUnsignedNumbers(writer, forceQuoting) {
1215
+ Composer.call(this, writer);
1216
+ this.r50_1 = forceQuoting;
1217
+ }
1218
+ protoOf(ComposerForUnsignedNumbers).k50 = function (v) {
1219
+ if (this.r50_1) {
1220
+ // Inline function 'kotlin.toUInt' call
1221
+ var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
1222
+ this.n50(UInt__toString_impl_dbgl21(tmp$ret$0));
1223
+ } else {
1224
+ // Inline function 'kotlin.toUInt' call
1225
+ var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
1226
+ this.d50(UInt__toString_impl_dbgl21(tmp$ret$1));
1227
+ }
1228
+ };
1229
+ protoOf(ComposerForUnsignedNumbers).l50 = function (v) {
1230
+ if (this.r50_1) {
1231
+ // Inline function 'kotlin.toULong' call
1232
+ var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
1233
+ this.n50(ULong__toString_impl_f9au7k(tmp$ret$0));
1234
+ } else {
1235
+ // Inline function 'kotlin.toULong' call
1236
+ var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
1237
+ this.d50(ULong__toString_impl_f9au7k(tmp$ret$1));
1238
+ }
1239
+ };
1240
+ protoOf(ComposerForUnsignedNumbers).h50 = function (v) {
1241
+ if (this.r50_1) {
1242
+ // Inline function 'kotlin.toUByte' call
1243
+ var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
1244
+ this.n50(UByte__toString_impl_v72jg(tmp$ret$0));
1245
+ } else {
1246
+ // Inline function 'kotlin.toUByte' call
1247
+ var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
1248
+ this.d50(UByte__toString_impl_v72jg(tmp$ret$1));
1249
+ }
1250
+ };
1251
+ protoOf(ComposerForUnsignedNumbers).j50 = function (v) {
1252
+ if (this.r50_1) {
1253
+ // Inline function 'kotlin.toUShort' call
1254
+ var tmp$ret$0 = _UShort___init__impl__jigrne(v);
1255
+ this.n50(UShort__toString_impl_edaoee(tmp$ret$0));
1256
+ } else {
1257
+ // Inline function 'kotlin.toUShort' call
1258
+ var tmp$ret$1 = _UShort___init__impl__jigrne(v);
1259
+ this.d50(UShort__toString_impl_edaoee(tmp$ret$1));
1260
+ }
1261
+ };
1262
+ function ComposerForUnquotedLiterals(writer, forceQuoting) {
1263
+ Composer.call(this, writer);
1264
+ this.u50_1 = forceQuoting;
1265
+ }
1266
+ protoOf(ComposerForUnquotedLiterals).n50 = function (value) {
1267
+ if (this.u50_1) {
1268
+ protoOf(Composer).n50.call(this, value);
1269
+ } else {
1270
+ protoOf(Composer).d50.call(this, value);
1271
+ }
1272
+ };
1273
+ function ComposerWithPrettyPrint(writer, json) {
1274
+ Composer.call(this, writer);
1275
+ this.x50_1 = json;
1276
+ this.y50_1 = 0;
1277
+ }
1278
+ protoOf(ComposerWithPrettyPrint).x4z = function () {
1279
+ this.w4z_1 = true;
1280
+ this.y50_1 = this.y50_1 + 1 | 0;
1281
+ };
1282
+ protoOf(ComposerWithPrettyPrint).y4z = function () {
1283
+ this.y50_1 = this.y50_1 - 1 | 0;
1284
+ };
1285
+ protoOf(ComposerWithPrettyPrint).z4z = function () {
1286
+ this.w4z_1 = false;
1287
+ this.d50('\n');
1288
+ // Inline function 'kotlin.repeat' call
1289
+ var times = this.y50_1;
1290
+ // Inline function 'kotlin.contracts.contract' call
1291
+ var inductionVariable = 0;
1292
+ if (inductionVariable < times)
1293
+ do {
1294
+ var index = inductionVariable;
1295
+ inductionVariable = inductionVariable + 1 | 0;
1296
+ // Inline function 'kotlinx.serialization.json.internal.ComposerWithPrettyPrint.nextItem.<anonymous>' call
1297
+ this.d50(this.x50_1.r4w_1.f4y_1);
1298
+ }
1299
+ while (inductionVariable < times);
1300
+ };
1301
+ protoOf(ComposerWithPrettyPrint).a50 = function () {
1302
+ this.b50(_Char___init__impl__6a9atx(32));
1303
+ };
1304
+ function readIfAbsent($this, descriptor, index) {
1305
+ $this.a51_1 = (!descriptor.x48(index) && descriptor.u48(index).l48());
1306
+ return $this.a51_1;
1307
+ }
1308
+ function JsonElementMarker$readIfAbsent$ref($boundThis) {
1309
+ var l = function (p0, p1) {
1310
+ return readIfAbsent($boundThis, p0, p1);
1311
+ };
1312
+ l.callableName = 'readIfAbsent';
1313
+ return l;
1314
+ }
1315
+ function JsonElementMarker(descriptor) {
1316
+ var tmp = this;
1317
+ tmp.z50_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
1318
+ this.a51_1 = false;
1319
+ }
1320
+ protoOf(JsonElementMarker).b51 = function (index) {
1321
+ this.z50_1.n4g(index);
1322
+ };
1323
+ protoOf(JsonElementMarker).c51 = function () {
1324
+ return this.z50_1.o4g();
1325
+ };
1326
+ function invalidTrailingComma(_this__u8e3s4, entity) {
1327
+ entity = entity === VOID ? 'object' : entity;
1328
+ _this__u8e3s4.d51('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.d4x_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingCommas = true' in 'Json {}' builder to support them.");
1329
+ }
1330
+ function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
1331
+ _this__u8e3s4.e51('Unexpected special floating-point value ' + toString(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
1332
+ }
1333
+ function JsonEncodingException(message) {
1334
+ JsonException.call(this, message);
1335
+ captureStack(this, JsonEncodingException);
1336
+ }
1337
+ function InvalidKeyKindException(keyDescriptor) {
1338
+ return new JsonEncodingException("Value of type '" + keyDescriptor.z47() + "' 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.s48().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
1339
+ }
1340
+ function JsonDecodingException(message) {
1341
+ JsonException.call(this, message);
1342
+ captureStack(this, JsonDecodingException);
1343
+ }
1344
+ function JsonDecodingException_0(offset, message, input) {
1345
+ return JsonDecodingException_1(offset, message + '\nJSON input: ' + toString(minify(input, offset)));
1346
+ }
1347
+ function InvalidFloatingPointDecoded(value, key, output) {
1348
+ return JsonDecodingException_1(-1, unexpectedFpErrorMessage(value, key, output));
1349
+ }
1350
+ function JsonDecodingException_1(offset, message) {
1351
+ return new JsonDecodingException(offset >= 0 ? 'Unexpected JSON token at offset ' + offset + ': ' + message : message);
1352
+ }
1353
+ function UnknownKeyException(key, input) {
1354
+ return JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "'.\n" + "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.\n" + ('Current input: ' + toString(minify(input))));
1355
+ }
1356
+ function InvalidFloatingPointEncoded(value, output) {
1357
+ return new JsonEncodingException('Unexpected special floating-point value ' + toString(value) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output))));
1358
+ }
1359
+ function JsonException(message) {
1360
+ SerializationException_init_$Init$(message, this);
1361
+ captureStack(this, JsonException);
1362
+ }
1363
+ function unexpectedFpErrorMessage(value, key, output) {
1364
+ return 'Unexpected special floating-point value ' + toString(value) + ' with key ' + key + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output)));
1365
+ }
1366
+ function minify(_this__u8e3s4, offset) {
1367
+ offset = offset === VOID ? -1 : offset;
1368
+ if (charSequenceLength(_this__u8e3s4) < 200)
1369
+ return _this__u8e3s4;
1370
+ if (offset === -1) {
1371
+ var start = charSequenceLength(_this__u8e3s4) - 60 | 0;
1372
+ if (start <= 0)
1373
+ return _this__u8e3s4;
1374
+ // Inline function 'kotlin.text.substring' call
1375
+ var endIndex = charSequenceLength(_this__u8e3s4);
1376
+ return '.....' + toString(charSequenceSubSequence(_this__u8e3s4, start, endIndex));
1377
+ }
1378
+ var start_0 = offset - 30 | 0;
1379
+ var end = offset + 30 | 0;
1380
+ var prefix = start_0 <= 0 ? '' : '.....';
1381
+ var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
1382
+ // Inline function 'kotlin.text.substring' call
1383
+ var startIndex = coerceAtLeast(start_0, 0);
1384
+ var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
1385
+ return prefix + toString(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex_0)) + suffix;
1386
+ }
1387
+ function get_JsonDeserializationNamesKey() {
1388
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1389
+ return JsonDeserializationNamesKey;
1390
+ }
1391
+ var JsonDeserializationNamesKey;
1392
+ function get_JsonSerializationNamesKey() {
1393
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1394
+ return JsonSerializationNamesKey;
1395
+ }
1396
+ var JsonSerializationNamesKey;
1397
+ function getJsonNameIndex(_this__u8e3s4, json, name) {
1398
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1399
+ if (decodeCaseInsensitive(json, _this__u8e3s4)) {
1400
+ // Inline function 'kotlin.text.lowercase' call
1401
+ // Inline function 'kotlin.js.asDynamic' call
1402
+ var tmp$ret$1 = name.toLowerCase();
1403
+ return getJsonNameIndexSlowPath(_this__u8e3s4, json, tmp$ret$1);
1404
+ }
1405
+ var strategy = namingStrategy(_this__u8e3s4, json);
1406
+ if (!(strategy == null))
1407
+ return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
1408
+ var index = _this__u8e3s4.v48(name);
1409
+ if (!(index === -3))
1410
+ return index;
1411
+ if (!json.r4w_1.k4y_1)
1412
+ return index;
1413
+ return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
1414
+ }
1415
+ function getJsonNameIndexOrThrow(_this__u8e3s4, json, name, suffix) {
1416
+ suffix = suffix === VOID ? '' : suffix;
1417
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1418
+ var index = getJsonNameIndex(_this__u8e3s4, json, name);
1419
+ if (index === -3)
1420
+ throw SerializationException_init_$Create$(_this__u8e3s4.z47() + " does not contain element with name '" + name + "'" + suffix);
1421
+ return index;
1422
+ }
1423
+ function getJsonElementName(_this__u8e3s4, json, index) {
1424
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1425
+ var strategy = namingStrategy(_this__u8e3s4, json);
1426
+ return strategy == null ? _this__u8e3s4.w48(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
1427
+ }
1428
+ function namingStrategy(_this__u8e3s4, json) {
1429
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1430
+ return equals(_this__u8e3s4.s48(), CLASS_getInstance()) ? json.r4w_1.l4y_1 : null;
1431
+ }
1432
+ function deserializationNamesMap(_this__u8e3s4, descriptor) {
1433
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1434
+ var tmp = get_schemaCache(_this__u8e3s4);
1435
+ var tmp_0 = get_JsonDeserializationNamesKey();
1436
+ return tmp.g51(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
1437
+ }
1438
+ function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
1439
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1440
+ return _this__u8e3s4.r4w_1.m4y_1 && equals(descriptor.s48(), ENUM_getInstance());
1441
+ }
1442
+ function getJsonNameIndexSlowPath(_this__u8e3s4, json, name) {
1443
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1444
+ var tmp0_elvis_lhs = deserializationNamesMap(json, _this__u8e3s4).h2(name);
1445
+ return tmp0_elvis_lhs == null ? -3 : tmp0_elvis_lhs;
1446
+ }
1447
+ function serializationNamesIndices(_this__u8e3s4, json, strategy) {
1448
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1449
+ var tmp = get_schemaCache(json);
1450
+ var tmp_0 = get_JsonSerializationNamesKey();
1451
+ return tmp.g51(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
1452
+ }
1453
+ function buildDeserializationNamesMap(_this__u8e3s4, json) {
1454
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1455
+ // Inline function 'kotlin.collections.mutableMapOf' call
1456
+ var builder = LinkedHashMap_init_$Create$();
1457
+ var useLowercaseEnums = decodeCaseInsensitive(json, _this__u8e3s4);
1458
+ var strategyForClasses = namingStrategy(_this__u8e3s4, json);
1459
+ var inductionVariable = 0;
1460
+ var last = _this__u8e3s4.q48();
1461
+ if (inductionVariable < last)
1462
+ do {
1463
+ var i = inductionVariable;
1464
+ inductionVariable = inductionVariable + 1 | 0;
1465
+ // Inline function 'kotlin.collections.filterIsInstance' call
1466
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
1467
+ var this_0 = _this__u8e3s4.t48(i);
1468
+ var destination = ArrayList_init_$Create$();
1469
+ var tmp0_iterator = this_0.j();
1470
+ while (tmp0_iterator.k()) {
1471
+ var element = tmp0_iterator.l();
1472
+ if (element instanceof JsonNames) {
1473
+ destination.e(element);
1474
+ }
1475
+ }
1476
+ var tmp1_safe_receiver = singleOrNull(destination);
1477
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h51_1;
1478
+ if (tmp2_safe_receiver == null)
1479
+ null;
1480
+ else {
1481
+ // Inline function 'kotlin.collections.forEach' call
1482
+ var inductionVariable_0 = 0;
1483
+ var last_0 = tmp2_safe_receiver.length;
1484
+ while (inductionVariable_0 < last_0) {
1485
+ var element_0 = tmp2_safe_receiver[inductionVariable_0];
1486
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1487
+ // Inline function 'kotlinx.serialization.json.internal.buildDeserializationNamesMap.<anonymous>' call
1488
+ var tmp;
1489
+ if (useLowercaseEnums) {
1490
+ // Inline function 'kotlin.text.lowercase' call
1491
+ // Inline function 'kotlin.js.asDynamic' call
1492
+ tmp = element_0.toLowerCase();
1493
+ } else {
1494
+ tmp = element_0;
1495
+ }
1496
+ buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, tmp, i);
1497
+ }
1498
+ }
1499
+ var tmp_0;
1500
+ if (useLowercaseEnums) {
1501
+ // Inline function 'kotlin.text.lowercase' call
1502
+ // Inline function 'kotlin.js.asDynamic' call
1503
+ tmp_0 = _this__u8e3s4.w48(i).toLowerCase();
1504
+ } else if (!(strategyForClasses == null)) {
1505
+ tmp_0 = strategyForClasses.i51(_this__u8e3s4, i, _this__u8e3s4.w48(i));
1506
+ } else {
1507
+ tmp_0 = null;
1508
+ }
1509
+ var nameToPut = tmp_0;
1510
+ if (nameToPut == null)
1511
+ null;
1512
+ else {
1513
+ // Inline function 'kotlin.let' call
1514
+ // Inline function 'kotlin.contracts.contract' call
1515
+ buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, nameToPut, i);
1516
+ }
1517
+ }
1518
+ while (inductionVariable < last);
1519
+ // Inline function 'kotlin.collections.ifEmpty' call
1520
+ // Inline function 'kotlin.contracts.contract' call
1521
+ var tmp_1;
1522
+ if (builder.p()) {
1523
+ // Inline function 'kotlinx.serialization.json.internal.buildDeserializationNamesMap.<anonymous>' call
1524
+ tmp_1 = emptyMap();
1525
+ } else {
1526
+ tmp_1 = builder;
1527
+ }
1528
+ return tmp_1;
1529
+ }
1530
+ function buildDeserializationNamesMap$putOrThrow(_this__u8e3s4, $this_buildDeserializationNamesMap, name, index) {
1531
+ var entity = equals($this_buildDeserializationNamesMap.s48(), ENUM_getInstance()) ? 'enum value' : 'property';
1532
+ // Inline function 'kotlin.collections.contains' call
1533
+ // Inline function 'kotlin.collections.containsKey' call
1534
+ if ((isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).f2(name)) {
1535
+ throw new JsonException("The suggested name '" + name + "' for " + entity + ' ' + $this_buildDeserializationNamesMap.w48(index) + ' is already one of the names for ' + entity + ' ' + ($this_buildDeserializationNamesMap.w48(getValue(_this__u8e3s4, name)) + ' in ' + toString($this_buildDeserializationNamesMap)));
1536
+ }
1537
+ // Inline function 'kotlin.collections.set' call
1538
+ _this__u8e3s4.k2(name, index);
1539
+ }
1540
+ function deserializationNamesMap$lambda($descriptor, $this_deserializationNamesMap) {
1541
+ return function () {
1542
+ return buildDeserializationNamesMap($descriptor, $this_deserializationNamesMap);
1543
+ };
1544
+ }
1545
+ function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
1546
+ return function () {
1547
+ var tmp = 0;
1548
+ var tmp_0 = $this_serializationNamesIndices.q48();
1549
+ // Inline function 'kotlin.arrayOfNulls' call
1550
+ var tmp_1 = fillArrayVal(Array(tmp_0), null);
1551
+ while (tmp < tmp_0) {
1552
+ var tmp_2 = tmp;
1553
+ var baseName = $this_serializationNamesIndices.w48(tmp_2);
1554
+ tmp_1[tmp_2] = $strategy.i51($this_serializationNamesIndices, tmp_2, baseName);
1555
+ tmp = tmp + 1 | 0;
1556
+ }
1557
+ return tmp_1;
1558
+ };
1559
+ }
1560
+ var properties_initialized_JsonNamesMap_kt_ljpf42;
1561
+ function _init_properties_JsonNamesMap_kt__cbbp0k() {
1562
+ if (!properties_initialized_JsonNamesMap_kt_ljpf42) {
1563
+ properties_initialized_JsonNamesMap_kt_ljpf42 = true;
1564
+ JsonDeserializationNamesKey = new Key();
1565
+ JsonSerializationNamesKey = new Key();
1566
+ }
1567
+ }
1568
+ function Tombstone() {
1569
+ }
1570
+ var Tombstone_instance;
1571
+ function Tombstone_getInstance() {
1572
+ return Tombstone_instance;
1573
+ }
1574
+ function resize($this) {
1575
+ var newSize = imul($this.l51_1, 2);
1576
+ $this.j51_1 = copyOf($this.j51_1, newSize);
1577
+ $this.k51_1 = copyOf_0($this.k51_1, newSize);
1578
+ }
1579
+ function JsonPath() {
1580
+ var tmp = this;
1581
+ // Inline function 'kotlin.arrayOfNulls' call
1582
+ tmp.j51_1 = fillArrayVal(Array(8), null);
1583
+ var tmp_0 = this;
1584
+ var tmp_1 = 0;
1585
+ var tmp_2 = new Int32Array(8);
1586
+ while (tmp_1 < 8) {
1587
+ tmp_2[tmp_1] = -1;
1588
+ tmp_1 = tmp_1 + 1 | 0;
1589
+ }
1590
+ tmp_0.k51_1 = tmp_2;
1591
+ this.l51_1 = -1;
1592
+ }
1593
+ protoOf(JsonPath).m51 = function (sd) {
1594
+ this.l51_1 = this.l51_1 + 1 | 0;
1595
+ var depth = this.l51_1;
1596
+ if (depth === this.j51_1.length) {
1597
+ resize(this);
1598
+ }
1599
+ this.j51_1[depth] = sd;
1600
+ };
1601
+ protoOf(JsonPath).n51 = function (index) {
1602
+ this.k51_1[this.l51_1] = index;
1603
+ };
1604
+ protoOf(JsonPath).o51 = function (key) {
1605
+ var tmp;
1606
+ if (!(this.k51_1[this.l51_1] === -2)) {
1607
+ this.l51_1 = this.l51_1 + 1 | 0;
1608
+ tmp = this.l51_1 === this.j51_1.length;
1609
+ } else {
1610
+ tmp = false;
1611
+ }
1612
+ if (tmp) {
1613
+ resize(this);
1614
+ }
1615
+ this.j51_1[this.l51_1] = key;
1616
+ this.k51_1[this.l51_1] = -2;
1617
+ };
1618
+ protoOf(JsonPath).p51 = function () {
1619
+ if (this.k51_1[this.l51_1] === -2) {
1620
+ this.j51_1[this.l51_1] = Tombstone_instance;
1621
+ }
1622
+ };
1623
+ protoOf(JsonPath).q51 = function () {
1624
+ var depth = this.l51_1;
1625
+ if (this.k51_1[depth] === -2) {
1626
+ this.k51_1[depth] = -1;
1627
+ this.l51_1 = this.l51_1 - 1 | 0;
1628
+ }
1629
+ if (!(this.l51_1 === -1)) {
1630
+ this.l51_1 = this.l51_1 - 1 | 0;
1631
+ }
1632
+ };
1633
+ protoOf(JsonPath).r51 = function () {
1634
+ // Inline function 'kotlin.text.buildString' call
1635
+ // Inline function 'kotlin.contracts.contract' call
1636
+ // Inline function 'kotlin.apply' call
1637
+ var this_0 = StringBuilder_init_$Create$();
1638
+ // Inline function 'kotlin.contracts.contract' call
1639
+ // Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath.<anonymous>' call
1640
+ this_0.i8('$');
1641
+ // Inline function 'kotlin.repeat' call
1642
+ var times = this.l51_1 + 1 | 0;
1643
+ // Inline function 'kotlin.contracts.contract' call
1644
+ var inductionVariable = 0;
1645
+ if (inductionVariable < times)
1646
+ do {
1647
+ var index = inductionVariable;
1648
+ inductionVariable = inductionVariable + 1 | 0;
1649
+ // Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath.<anonymous>.<anonymous>' call
1650
+ var element = this.j51_1[index];
1651
+ if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
1652
+ if (equals(element.s48(), LIST_getInstance())) {
1653
+ if (!(this.k51_1[index] === -1)) {
1654
+ this_0.i8('[');
1655
+ this_0.wb(this.k51_1[index]);
1656
+ this_0.i8(']');
1657
+ }
1658
+ } else {
1659
+ var idx = this.k51_1[index];
1660
+ if (idx >= 0) {
1661
+ this_0.i8('.');
1662
+ this_0.i8(element.w48(idx));
1663
+ }
1664
+ }
1665
+ } else {
1666
+ if (!(element === Tombstone_instance)) {
1667
+ this_0.i8('[');
1668
+ this_0.i8("'");
1669
+ this_0.h8(element);
1670
+ this_0.i8("'");
1671
+ this_0.i8(']');
1672
+ }
1673
+ }
1674
+ }
1675
+ while (inductionVariable < times);
1676
+ return this_0.toString();
1677
+ };
1678
+ protoOf(JsonPath).toString = function () {
1679
+ return this.r51();
1680
+ };
1681
+ function encodeByWriter(json, writer, serializer, value) {
1682
+ var tmp = WriteMode_OBJ_getInstance();
1683
+ // Inline function 'kotlin.arrayOfNulls' call
1684
+ var size = get_entries().m();
1685
+ var tmp$ret$0 = fillArrayVal(Array(size), null);
1686
+ var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0);
1687
+ encoder.c4c(serializer, value);
1688
+ }
1689
+ function readObject($this) {
1690
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
1691
+ var lastToken = $this.a52_1.e52(6);
1692
+ if ($this.a52_1.f52() === 4) {
1693
+ $this.a52_1.e51('Unexpected leading comma');
1694
+ }
1695
+ // Inline function 'kotlin.collections.linkedMapOf' call
1696
+ var result = LinkedHashMap_init_$Create$();
1697
+ $l$loop: while ($this.a52_1.g52()) {
1698
+ var key = $this.b52_1 ? $this.a52_1.i52() : $this.a52_1.h52();
1699
+ $this.a52_1.e52(5);
1700
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObject.<anonymous>' call
1701
+ var element = $this.j52();
1702
+ // Inline function 'kotlin.collections.set' call
1703
+ result.k2(key, element);
1704
+ lastToken = $this.a52_1.k52();
1705
+ var tmp0_subject = lastToken;
1706
+ if (tmp0_subject !== 4)
1707
+ if (tmp0_subject === 7)
1708
+ break $l$loop;
1709
+ else {
1710
+ $this.a52_1.e51('Expected end of the object or comma');
1711
+ }
1712
+ }
1713
+ if (lastToken === 6) {
1714
+ $this.a52_1.e52(7);
1715
+ } else if (lastToken === 4) {
1716
+ if (!$this.c52_1) {
1717
+ invalidTrailingComma($this.a52_1);
1718
+ }
1719
+ $this.a52_1.e52(7);
1720
+ }
1721
+ return new JsonObject(result);
1722
+ }
1723
+ function readObject_0(_this__u8e3s4, $this, $completion) {
1724
+ var tmp = new $readObjectCOROUTINE$0($this, _this__u8e3s4, $completion);
1725
+ tmp.f9_1 = Unit_instance;
1726
+ tmp.g9_1 = null;
1727
+ return tmp.l9();
1728
+ }
1729
+ function readArray($this) {
1730
+ var lastToken = $this.a52_1.k52();
1731
+ if ($this.a52_1.f52() === 4) {
1732
+ $this.a52_1.e51('Unexpected leading comma');
1733
+ }
1734
+ // Inline function 'kotlin.collections.arrayListOf' call
1735
+ var result = ArrayList_init_$Create$();
1736
+ while ($this.a52_1.g52()) {
1737
+ var element = $this.j52();
1738
+ result.e(element);
1739
+ lastToken = $this.a52_1.k52();
1740
+ if (!(lastToken === 4)) {
1741
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
1742
+ var this_0 = $this.a52_1;
1743
+ var condition = lastToken === 9;
1744
+ var position = this_0.d4x_1;
1745
+ if (!condition) {
1746
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readArray.<anonymous>' call
1747
+ var tmp$ret$1 = 'Expected end of the array or comma';
1748
+ this_0.e51(tmp$ret$1, position);
1749
+ }
1750
+ }
1751
+ }
1752
+ if (lastToken === 8) {
1753
+ $this.a52_1.e52(9);
1754
+ } else if (lastToken === 4) {
1755
+ if (!$this.c52_1) {
1756
+ invalidTrailingComma($this.a52_1, 'array');
1757
+ }
1758
+ $this.a52_1.e52(9);
1759
+ }
1760
+ return new JsonArray(result);
1761
+ }
1762
+ function readValue($this, isString) {
1763
+ var tmp;
1764
+ if ($this.b52_1 || !isString) {
1765
+ tmp = $this.a52_1.i52();
1766
+ } else {
1767
+ tmp = $this.a52_1.h52();
1768
+ }
1769
+ var string = tmp;
1770
+ if (!isString && string === 'null')
1771
+ return JsonNull_getInstance();
1772
+ return new JsonLiteral(string, isString);
1773
+ }
1774
+ function readDeepRecursive($this) {
1775
+ return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
1776
+ }
1777
+ function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
1778
+ this.h53_1 = this$0;
1779
+ CoroutineImpl.call(this, resultContinuation);
1780
+ }
1781
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).m53 = function ($this$$receiver, it, $completion) {
1782
+ var tmp = this.n53($this$$receiver, it, $completion);
1783
+ tmp.f9_1 = Unit_instance;
1784
+ tmp.g9_1 = null;
1785
+ return tmp.l9();
1786
+ };
1787
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).yi = function (p1, p2, $completion) {
1788
+ var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
1789
+ return this.m53(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
1790
+ };
1791
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).l9 = function () {
1792
+ var suspendResult = this.f9_1;
1793
+ $sm: do
1794
+ try {
1795
+ var tmp = this.d9_1;
1796
+ switch (tmp) {
1797
+ case 0:
1798
+ this.e9_1 = 3;
1799
+ this.k53_1 = this.h53_1.a52_1.f52();
1800
+ if (this.k53_1 === 1) {
1801
+ this.l53_1 = readValue(this.h53_1, true);
1802
+ this.d9_1 = 2;
1803
+ continue $sm;
1804
+ } else {
1805
+ if (this.k53_1 === 0) {
1806
+ this.l53_1 = readValue(this.h53_1, false);
1807
+ this.d9_1 = 2;
1808
+ continue $sm;
1809
+ } else {
1810
+ if (this.k53_1 === 6) {
1811
+ this.d9_1 = 1;
1812
+ suspendResult = readObject_0(this.i53_1, this.h53_1, this);
1813
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1814
+ return suspendResult;
1815
+ }
1816
+ continue $sm;
1817
+ } else {
1818
+ if (this.k53_1 === 8) {
1819
+ this.l53_1 = readArray(this.h53_1);
1820
+ this.d9_1 = 2;
1821
+ continue $sm;
1822
+ } else {
1823
+ var tmp_0 = this;
1824
+ this.h53_1.a52_1.e51("Can't begin reading element, unexpected token");
1825
+ }
1826
+ }
1827
+ }
1828
+ }
1829
+
1830
+ break;
1831
+ case 1:
1832
+ this.l53_1 = suspendResult;
1833
+ this.d9_1 = 2;
1834
+ continue $sm;
1835
+ case 2:
1836
+ return this.l53_1;
1837
+ case 3:
1838
+ throw this.g9_1;
1839
+ }
1840
+ } catch ($p) {
1841
+ var e = $p;
1842
+ if (this.e9_1 === 3) {
1843
+ throw e;
1844
+ } else {
1845
+ this.d9_1 = this.e9_1;
1846
+ this.g9_1 = e;
1847
+ }
1848
+ }
1849
+ while (true);
1850
+ };
1851
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).n53 = function ($this$$receiver, it, completion) {
1852
+ var i = new JsonTreeReader$readDeepRecursive$slambda(this.h53_1, completion);
1853
+ i.i53_1 = $this$$receiver;
1854
+ i.j53_1 = it;
1855
+ return i;
1856
+ };
1857
+ function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
1858
+ var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
1859
+ var l = function ($this$$receiver, it, $completion) {
1860
+ return i.m53($this$$receiver, it, $completion);
1861
+ };
1862
+ l.$arity = 2;
1863
+ return l;
1864
+ }
1865
+ function $readObjectCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
1866
+ CoroutineImpl.call(this, resultContinuation);
1867
+ this.t52_1 = _this__u8e3s4;
1868
+ this.u52_1 = _this__u8e3s4_0;
1869
+ }
1870
+ protoOf($readObjectCOROUTINE$0).l9 = function () {
1871
+ var suspendResult = this.f9_1;
1872
+ $sm: do
1873
+ try {
1874
+ var tmp = this.d9_1;
1875
+ switch (tmp) {
1876
+ case 0:
1877
+ this.e9_1 = 5;
1878
+ var tmp_0 = this;
1879
+ tmp_0.v52_1 = this.t52_1;
1880
+ this.w52_1 = this.v52_1.a52_1.e52(6);
1881
+ if (this.v52_1.a52_1.f52() === 4) {
1882
+ this.v52_1.a52_1.e51('Unexpected leading comma');
1883
+ }
1884
+
1885
+ var tmp_1 = this;
1886
+ tmp_1.x52_1 = LinkedHashMap_init_$Create$();
1887
+ this.d9_1 = 1;
1888
+ continue $sm;
1889
+ case 1:
1890
+ if (!this.v52_1.a52_1.g52()) {
1891
+ this.d9_1 = 4;
1892
+ continue $sm;
1893
+ }
1894
+
1895
+ this.y52_1 = this.v52_1.b52_1 ? this.v52_1.a52_1.i52() : this.v52_1.a52_1.h52();
1896
+ this.v52_1.a52_1.e52(5);
1897
+ this.d9_1 = 2;
1898
+ suspendResult = this.u52_1.qi(Unit_instance, this);
1899
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1900
+ return suspendResult;
1901
+ }
1902
+
1903
+ continue $sm;
1904
+ case 2:
1905
+ var element = suspendResult;
1906
+ var this_0 = this.x52_1;
1907
+ var key = this.y52_1;
1908
+ this_0.k2(key, element);
1909
+ this.w52_1 = this.v52_1.a52_1.k52();
1910
+ var tmp0_subject = this.w52_1;
1911
+ if (tmp0_subject === 4) {
1912
+ this.d9_1 = 3;
1913
+ continue $sm;
1914
+ } else {
1915
+ if (tmp0_subject === 7) {
1916
+ this.d9_1 = 4;
1917
+ continue $sm;
1918
+ } else {
1919
+ this.v52_1.a52_1.e51('Expected end of the object or comma');
1920
+ }
1921
+ }
1922
+
1923
+ break;
1924
+ case 3:
1925
+ this.d9_1 = 1;
1926
+ continue $sm;
1927
+ case 4:
1928
+ if (this.w52_1 === 6) {
1929
+ this.v52_1.a52_1.e52(7);
1930
+ } else if (this.w52_1 === 4) {
1931
+ if (!this.v52_1.c52_1) {
1932
+ invalidTrailingComma(this.v52_1.a52_1);
1933
+ }
1934
+ this.v52_1.a52_1.e52(7);
1935
+ }
1936
+
1937
+ return new JsonObject(this.x52_1);
1938
+ case 5:
1939
+ throw this.g9_1;
1940
+ }
1941
+ } catch ($p) {
1942
+ var e = $p;
1943
+ if (this.e9_1 === 5) {
1944
+ throw e;
1945
+ } else {
1946
+ this.d9_1 = this.e9_1;
1947
+ this.g9_1 = e;
1948
+ }
1949
+ }
1950
+ while (true);
1951
+ };
1952
+ function JsonTreeReader(configuration, lexer) {
1953
+ this.a52_1 = lexer;
1954
+ this.b52_1 = configuration.b4y_1;
1955
+ this.c52_1 = configuration.n4y_1;
1956
+ this.d52_1 = 0;
1957
+ }
1958
+ protoOf(JsonTreeReader).j52 = function () {
1959
+ var token = this.a52_1.f52();
1960
+ var tmp;
1961
+ if (token === 1) {
1962
+ tmp = readValue(this, true);
1963
+ } else if (token === 0) {
1964
+ tmp = readValue(this, false);
1965
+ } else if (token === 6) {
1966
+ var tmp_0;
1967
+ this.d52_1 = this.d52_1 + 1 | 0;
1968
+ if (this.d52_1 === 200) {
1969
+ tmp_0 = readDeepRecursive(this);
1970
+ } else {
1971
+ tmp_0 = readObject(this);
1972
+ }
1973
+ var result = tmp_0;
1974
+ this.d52_1 = this.d52_1 - 1 | 0;
1975
+ tmp = result;
1976
+ } else if (token === 8) {
1977
+ tmp = readArray(this);
1978
+ } else {
1979
+ this.a52_1.e51('Cannot read Json element because of unexpected ' + tokenDescription(token));
1980
+ }
1981
+ return tmp;
1982
+ };
1983
+ function classDiscriminator(_this__u8e3s4, json) {
1984
+ var tmp0_iterator = _this__u8e3s4.p48().j();
1985
+ while (tmp0_iterator.k()) {
1986
+ var annotation = tmp0_iterator.l();
1987
+ if (annotation instanceof JsonClassDiscriminator)
1988
+ return annotation.o53_1;
1989
+ }
1990
+ return json.r4w_1.i4y_1;
1991
+ }
1992
+ function decodeSerializableValuePolymorphic(_this__u8e3s4, deserializer) {
1993
+ var tmp;
1994
+ if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
1995
+ tmp = true;
1996
+ } else {
1997
+ tmp = _this__u8e3s4.o4y().r4w_1.h4y_1;
1998
+ }
1999
+ if (tmp) {
2000
+ return deserializer.a47(_this__u8e3s4);
2001
+ }
2002
+ var discriminator = classDiscriminator(deserializer.y46(), _this__u8e3s4.o4y());
2003
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
2004
+ var value = _this__u8e3s4.p4y();
2005
+ var descriptor = deserializer.y46();
2006
+ if (!(value instanceof JsonObject)) {
2007
+ throw JsonDecodingException_1(-1, 'Expected ' + toString(getKClass(JsonObject)) + ' as the serialized body of ' + descriptor.z47() + ', but had ' + toString(getKClassFromExpression(value)));
2008
+ }
2009
+ var jsonTree = value;
2010
+ var tmp0_safe_receiver = jsonTree.n2b(discriminator);
2011
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
2012
+ var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
2013
+ var tmp_0;
2014
+ try {
2015
+ tmp_0 = findPolymorphicSerializer(deserializer, _this__u8e3s4, type);
2016
+ } catch ($p) {
2017
+ var tmp_1;
2018
+ if ($p instanceof SerializationException) {
2019
+ var it = $p;
2020
+ throw JsonDecodingException_0(-1, ensureNotNull(it.message), jsonTree.toString());
2021
+ } else {
2022
+ throw $p;
2023
+ }
2024
+ }
2025
+ var tmp_2 = tmp_0;
2026
+ var actualSerializer = isInterface(tmp_2, DeserializationStrategy) ? tmp_2 : THROW_CCE();
2027
+ return readPolymorphicJson(_this__u8e3s4.o4y(), discriminator, jsonTree, actualSerializer);
2028
+ }
2029
+ function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
2030
+ if (!(serializer instanceof SealedClassSerializer))
2031
+ return Unit_instance;
2032
+ if (jsonCachedSerialNames(actualSerializer.y46()).s1(classDiscriminator)) {
2033
+ var baseName = serializer.y46().z47();
2034
+ var actualName = actualSerializer.y46().z47();
2035
+ // Inline function 'kotlin.error' call
2036
+ 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';
2037
+ throw IllegalStateException_init_$Create$(toString(message));
2038
+ }
2039
+ }
2040
+ function checkKind(kind) {
2041
+ if (kind instanceof ENUM) {
2042
+ // Inline function 'kotlin.error' call
2043
+ var message = "Enums cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
2044
+ throw IllegalStateException_init_$Create$(toString(message));
2045
+ }
2046
+ if (kind instanceof PrimitiveKind) {
2047
+ // Inline function 'kotlin.error' call
2048
+ var message_0 = "Primitives cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
2049
+ throw IllegalStateException_init_$Create$(toString(message_0));
2050
+ }
2051
+ if (kind instanceof PolymorphicKind) {
2052
+ // Inline function 'kotlin.error' call
2053
+ var message_1 = 'Actual serializer for polymorphic cannot be polymorphic itself';
2054
+ throw IllegalStateException_init_$Create$(toString(message_1));
2055
+ }
2056
+ }
2057
+ function validateIfSealed$accessor$1ad0flx(serializer, actualSerializer, classDiscriminator) {
2058
+ return validateIfSealed(serializer, actualSerializer, classDiscriminator);
2059
+ }
2060
+ function checkKind_0($this, descriptor, actualClass) {
2061
+ var kind = descriptor.s48();
2062
+ var tmp;
2063
+ if (kind instanceof PolymorphicKind) {
2064
+ tmp = true;
2065
+ } else {
2066
+ tmp = equals(kind, CONTEXTUAL_getInstance());
2067
+ }
2068
+ if (tmp) {
2069
+ throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.ja() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind.toString() + ' is not concrete. To work with multiple hierarchies, register it as a base class.'));
2070
+ }
2071
+ if ($this.p53_1)
2072
+ return Unit_instance;
2073
+ var tmp_0;
2074
+ var tmp_1;
2075
+ if (equals(kind, LIST_getInstance()) || equals(kind, MAP_getInstance())) {
2076
+ tmp_1 = true;
2077
+ } else {
2078
+ tmp_1 = kind instanceof PrimitiveKind;
2079
+ }
2080
+ if (tmp_1) {
2081
+ tmp_0 = true;
2082
+ } else {
2083
+ tmp_0 = kind instanceof ENUM;
2084
+ }
2085
+ if (tmp_0) {
2086
+ throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.ja() + ' of kind ' + kind.toString() + ' cannot be serialized polymorphically with class discriminator.');
2087
+ }
2088
+ }
2089
+ function checkDiscriminatorCollisions($this, descriptor, actualClass) {
2090
+ var inductionVariable = 0;
2091
+ var last = descriptor.q48();
2092
+ if (inductionVariable < last)
2093
+ do {
2094
+ var i = inductionVariable;
2095
+ inductionVariable = inductionVariable + 1 | 0;
2096
+ var name = descriptor.w48(i);
2097
+ if (name === $this.q53_1) {
2098
+ throw IllegalArgumentException_init_$Create$('Polymorphic serializer for ' + toString(actualClass) + " has property '" + name + "' that conflicts " + 'with JSON class discriminator. You can either change class discriminator in JsonConfiguration, ' + 'rename property with @SerialName annotation ' + 'or fall back to array polymorphism');
2099
+ }
2100
+ }
2101
+ while (inductionVariable < last);
2102
+ }
2103
+ function PolymorphismValidator(useArrayPolymorphism, discriminator) {
2104
+ this.p53_1 = useArrayPolymorphism;
2105
+ this.q53_1 = discriminator;
2106
+ }
2107
+ protoOf(PolymorphismValidator).m4r = function (kClass, provider) {
2108
+ };
2109
+ protoOf(PolymorphismValidator).p4r = function (baseClass, actualClass, actualSerializer) {
2110
+ var descriptor = actualSerializer.y46();
2111
+ checkKind_0(this, descriptor, actualClass);
2112
+ if (!this.p53_1) {
2113
+ checkDiscriminatorCollisions(this, descriptor, actualClass);
2114
+ }
2115
+ };
2116
+ protoOf(PolymorphismValidator).q4r = function (baseClass, defaultSerializerProvider) {
2117
+ };
2118
+ protoOf(PolymorphismValidator).r4r = function (baseClass, defaultDeserializerProvider) {
2119
+ };
2120
+ function Key() {
2121
+ }
2122
+ function DescriptorSchemaCache() {
2123
+ this.f51_1 = createMapForCache(16);
2124
+ }
2125
+ protoOf(DescriptorSchemaCache).r53 = function (descriptor, key, value) {
2126
+ // Inline function 'kotlin.collections.set' call
2127
+ // Inline function 'kotlin.collections.getOrPut' call
2128
+ var this_0 = this.f51_1;
2129
+ var value_0 = this_0.h2(descriptor);
2130
+ var tmp;
2131
+ if (value_0 == null) {
2132
+ // Inline function 'kotlinx.serialization.json.internal.DescriptorSchemaCache.set.<anonymous>' call
2133
+ var answer = createMapForCache(2);
2134
+ this_0.k2(descriptor, answer);
2135
+ tmp = answer;
2136
+ } else {
2137
+ tmp = value_0;
2138
+ }
2139
+ var this_1 = tmp;
2140
+ var key_0 = key instanceof Key ? key : THROW_CCE();
2141
+ var value_1 = !(value == null) ? value : THROW_CCE();
2142
+ this_1.k2(key_0, value_1);
2143
+ };
2144
+ protoOf(DescriptorSchemaCache).g51 = function (descriptor, key, defaultValue) {
2145
+ var tmp0_safe_receiver = this.s53(descriptor, key);
2146
+ if (tmp0_safe_receiver == null)
2147
+ null;
2148
+ else {
2149
+ // Inline function 'kotlin.let' call
2150
+ // Inline function 'kotlin.contracts.contract' call
2151
+ return tmp0_safe_receiver;
2152
+ }
2153
+ var value = defaultValue();
2154
+ this.r53(descriptor, key, value);
2155
+ return value;
2156
+ };
2157
+ protoOf(DescriptorSchemaCache).s53 = function (descriptor, key) {
2158
+ var tmp0_safe_receiver = this.f51_1.h2(descriptor);
2159
+ var tmp;
2160
+ if (tmp0_safe_receiver == null) {
2161
+ tmp = null;
2162
+ } else {
2163
+ tmp = tmp0_safe_receiver.h2(key instanceof Key ? key : THROW_CCE());
2164
+ }
2165
+ var tmp_0 = tmp;
2166
+ return !(tmp_0 == null) ? tmp_0 : null;
2167
+ };
2168
+ function DiscriminatorHolder(discriminatorToSkip) {
2169
+ this.t53_1 = discriminatorToSkip;
2170
+ }
2171
+ function trySkip(_this__u8e3s4, $this, unknownKey) {
2172
+ if (_this__u8e3s4 == null)
2173
+ return false;
2174
+ if (_this__u8e3s4.t53_1 === unknownKey) {
2175
+ _this__u8e3s4.t53_1 = null;
2176
+ return true;
2177
+ }
2178
+ return false;
2179
+ }
2180
+ function skipLeftoverElements($this, descriptor) {
2181
+ while (!($this.b4b(descriptor) === -1)) {
2182
+ }
2183
+ }
2184
+ function checkLeadingComma($this) {
2185
+ if ($this.x4w_1.f52() === 4) {
2186
+ $this.x4w_1.e51('Unexpected leading comma');
2187
+ }
2188
+ }
2189
+ function decodeMapIndex($this) {
2190
+ var hasComma = false;
2191
+ var decodingKey = !(($this.z4w_1 % 2 | 0) === 0);
2192
+ if (decodingKey) {
2193
+ if (!($this.z4w_1 === -1)) {
2194
+ hasComma = $this.x4w_1.v53();
2195
+ }
2196
+ } else {
2197
+ $this.x4w_1.u53(_Char___init__impl__6a9atx(58));
2198
+ }
2199
+ var tmp;
2200
+ if ($this.x4w_1.g52()) {
2201
+ if (decodingKey) {
2202
+ if ($this.z4w_1 === -1) {
2203
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
2204
+ var this_0 = $this.x4w_1;
2205
+ var condition = !hasComma;
2206
+ var position = this_0.d4x_1;
2207
+ if (!condition) {
2208
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
2209
+ var tmp$ret$0 = 'Unexpected leading comma';
2210
+ this_0.e51(tmp$ret$0, position);
2211
+ }
2212
+ } else {
2213
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
2214
+ var this_1 = $this.x4w_1;
2215
+ var condition_0 = hasComma;
2216
+ var position_0 = this_1.d4x_1;
2217
+ if (!condition_0) {
2218
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
2219
+ var tmp$ret$1 = 'Expected comma after the key-value pair';
2220
+ this_1.e51(tmp$ret$1, position_0);
2221
+ }
2222
+ }
2223
+ }
2224
+ $this.z4w_1 = $this.z4w_1 + 1 | 0;
2225
+ tmp = $this.z4w_1;
2226
+ } else {
2227
+ if (hasComma && !$this.v4w_1.r4w_1.n4y_1) {
2228
+ invalidTrailingComma($this.x4w_1);
2229
+ }
2230
+ tmp = -1;
2231
+ }
2232
+ return tmp;
2233
+ }
2234
+ function coerceInputValue($this, descriptor, index) {
2235
+ var tmp$ret$1;
2236
+ $l$block_2: {
2237
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
2238
+ var this_0 = $this.v4w_1;
2239
+ var elementDescriptor = descriptor.u48(index);
2240
+ var tmp;
2241
+ if (!elementDescriptor.l48()) {
2242
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
2243
+ tmp = $this.x4w_1.w53(true);
2244
+ } else {
2245
+ tmp = false;
2246
+ }
2247
+ if (tmp) {
2248
+ tmp$ret$1 = true;
2249
+ break $l$block_2;
2250
+ }
2251
+ if (equals(elementDescriptor.s48(), ENUM_getInstance())) {
2252
+ var tmp_0;
2253
+ if (elementDescriptor.l48()) {
2254
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
2255
+ tmp_0 = $this.x4w_1.w53(false);
2256
+ } else {
2257
+ tmp_0 = false;
2258
+ }
2259
+ if (tmp_0) {
2260
+ tmp$ret$1 = false;
2261
+ break $l$block_2;
2262
+ }
2263
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
2264
+ var tmp0_elvis_lhs = $this.x4w_1.x53($this.b4x_1.b4y_1);
2265
+ var tmp_1;
2266
+ if (tmp0_elvis_lhs == null) {
2267
+ tmp$ret$1 = false;
2268
+ break $l$block_2;
2269
+ } else {
2270
+ tmp_1 = tmp0_elvis_lhs;
2271
+ }
2272
+ var enumValue = tmp_1;
2273
+ var enumIndex = getJsonNameIndex(elementDescriptor, this_0, enumValue);
2274
+ if (enumIndex === -3) {
2275
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
2276
+ $this.x4w_1.h52();
2277
+ tmp$ret$1 = true;
2278
+ break $l$block_2;
2279
+ }
2280
+ }
2281
+ tmp$ret$1 = false;
2282
+ }
2283
+ return tmp$ret$1;
2284
+ }
2285
+ function decodeObjectIndex($this, descriptor) {
2286
+ var hasComma = $this.x4w_1.v53();
2287
+ while ($this.x4w_1.g52()) {
2288
+ hasComma = false;
2289
+ var key = decodeStringKey($this);
2290
+ $this.x4w_1.u53(_Char___init__impl__6a9atx(58));
2291
+ var index = getJsonNameIndex(descriptor, $this.v4w_1, key);
2292
+ var tmp;
2293
+ if (!(index === -3)) {
2294
+ var tmp_0;
2295
+ if ($this.b4x_1.g4y_1 && coerceInputValue($this, descriptor, index)) {
2296
+ hasComma = $this.x4w_1.v53();
2297
+ tmp_0 = false;
2298
+ } else {
2299
+ var tmp0_safe_receiver = $this.c4x_1;
2300
+ if (tmp0_safe_receiver == null)
2301
+ null;
2302
+ else {
2303
+ tmp0_safe_receiver.b51(index);
2304
+ }
2305
+ return index;
2306
+ }
2307
+ tmp = tmp_0;
2308
+ } else {
2309
+ tmp = true;
2310
+ }
2311
+ var isUnknown = tmp;
2312
+ if (isUnknown) {
2313
+ hasComma = handleUnknown($this, key);
2314
+ }
2315
+ }
2316
+ if (hasComma && !$this.v4w_1.r4w_1.n4y_1) {
2317
+ invalidTrailingComma($this.x4w_1);
2318
+ }
2319
+ var tmp1_safe_receiver = $this.c4x_1;
2320
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c51();
2321
+ return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
2322
+ }
2323
+ function handleUnknown($this, key) {
2324
+ if ($this.b4x_1.a4y_1 || trySkip($this.a4x_1, $this, key)) {
2325
+ $this.x4w_1.z53($this.b4x_1.b4y_1);
2326
+ } else {
2327
+ $this.x4w_1.y53(key);
2328
+ }
2329
+ return $this.x4w_1.v53();
2330
+ }
2331
+ function decodeListIndex($this) {
2332
+ var hasComma = $this.x4w_1.v53();
2333
+ var tmp;
2334
+ if ($this.x4w_1.g52()) {
2335
+ if (!($this.z4w_1 === -1) && !hasComma) {
2336
+ $this.x4w_1.e51('Expected end of the array or comma');
2337
+ }
2338
+ $this.z4w_1 = $this.z4w_1 + 1 | 0;
2339
+ tmp = $this.z4w_1;
2340
+ } else {
2341
+ if (hasComma && !$this.v4w_1.r4w_1.n4y_1) {
2342
+ invalidTrailingComma($this.x4w_1, 'array');
2343
+ }
2344
+ tmp = -1;
2345
+ }
2346
+ return tmp;
2347
+ }
2348
+ function decodeStringKey($this) {
2349
+ var tmp;
2350
+ if ($this.b4x_1.b4y_1) {
2351
+ tmp = $this.x4w_1.b54();
2352
+ } else {
2353
+ tmp = $this.x4w_1.a54();
2354
+ }
2355
+ return tmp;
2356
+ }
2357
+ function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
2358
+ AbstractDecoder.call(this);
2359
+ this.v4w_1 = json;
2360
+ this.w4w_1 = mode;
2361
+ this.x4w_1 = lexer;
2362
+ this.y4w_1 = this.v4w_1.d48();
2363
+ this.z4w_1 = -1;
2364
+ this.a4x_1 = discriminatorHolder;
2365
+ this.b4x_1 = this.v4w_1.r4w_1;
2366
+ this.c4x_1 = this.b4x_1.e4y_1 ? null : new JsonElementMarker(descriptor);
2367
+ }
2368
+ protoOf(StreamingJsonDecoder).o4y = function () {
2369
+ return this.v4w_1;
2370
+ };
2371
+ protoOf(StreamingJsonDecoder).d48 = function () {
2372
+ return this.y4w_1;
2373
+ };
2374
+ protoOf(StreamingJsonDecoder).p4y = function () {
2375
+ return (new JsonTreeReader(this.v4w_1.r4w_1, this.x4w_1)).j52();
2376
+ };
2377
+ protoOf(StreamingJsonDecoder).k4a = function (deserializer) {
2378
+ try {
2379
+ var tmp;
2380
+ if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
2381
+ tmp = true;
2382
+ } else {
2383
+ tmp = this.v4w_1.r4w_1.h4y_1;
2384
+ }
2385
+ if (tmp) {
2386
+ return deserializer.a47(this);
2387
+ }
2388
+ var discriminator = classDiscriminator(deserializer.y46(), this.v4w_1);
2389
+ var tmp0_elvis_lhs = this.x4w_1.c54(discriminator, this.b4x_1.b4y_1);
2390
+ var tmp_0;
2391
+ if (tmp0_elvis_lhs == null) {
2392
+ return decodeSerializableValuePolymorphic(this, isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE());
2393
+ } else {
2394
+ tmp_0 = tmp0_elvis_lhs;
2395
+ }
2396
+ var type = tmp_0;
2397
+ var tmp_1;
2398
+ try {
2399
+ tmp_1 = findPolymorphicSerializer(deserializer, this, type);
2400
+ } catch ($p) {
2401
+ var tmp_2;
2402
+ if ($p instanceof SerializationException) {
2403
+ var it = $p;
2404
+ var message = removeSuffix(substringBefore(ensureNotNull(it.message), _Char___init__impl__6a9atx(10)), '.');
2405
+ var hint = substringAfter(ensureNotNull(it.message), _Char___init__impl__6a9atx(10), '');
2406
+ this.x4w_1.e51(message, VOID, hint);
2407
+ } else {
2408
+ throw $p;
2409
+ }
2410
+ tmp_1 = tmp_2;
2411
+ }
2412
+ var tmp_3 = tmp_1;
2413
+ var actualSerializer = isInterface(tmp_3, DeserializationStrategy) ? tmp_3 : THROW_CCE();
2414
+ this.a4x_1 = new DiscriminatorHolder(discriminator);
2415
+ return actualSerializer.a47(this);
2416
+ } catch ($p) {
2417
+ if ($p instanceof MissingFieldException) {
2418
+ var e = $p;
2419
+ if (contains_0(ensureNotNull(e.message), 'at path'))
2420
+ throw e;
2421
+ throw new MissingFieldException(e.g48_1, plus(e.message, ' at path: ') + this.x4w_1.e4x_1.r51(), e);
2422
+ } else {
2423
+ throw $p;
2424
+ }
2425
+ }
2426
+ };
2427
+ protoOf(StreamingJsonDecoder).l4a = function (descriptor) {
2428
+ var newMode = switchMode(this.v4w_1, descriptor);
2429
+ this.x4w_1.e4x_1.m51(descriptor);
2430
+ this.x4w_1.u53(newMode.f54_1);
2431
+ checkLeadingComma(this);
2432
+ var tmp;
2433
+ switch (newMode.o2_1) {
2434
+ case 1:
2435
+ case 2:
2436
+ case 3:
2437
+ tmp = new StreamingJsonDecoder(this.v4w_1, newMode, this.x4w_1, descriptor, this.a4x_1);
2438
+ break;
2439
+ default:
2440
+ var tmp_0;
2441
+ if (this.w4w_1.equals(newMode) && this.v4w_1.r4w_1.e4y_1) {
2442
+ tmp_0 = this;
2443
+ } else {
2444
+ tmp_0 = new StreamingJsonDecoder(this.v4w_1, newMode, this.x4w_1, descriptor, this.a4x_1);
2445
+ }
2446
+
2447
+ tmp = tmp_0;
2448
+ break;
2449
+ }
2450
+ return tmp;
2451
+ };
2452
+ protoOf(StreamingJsonDecoder).m4a = function (descriptor) {
2453
+ if (this.v4w_1.r4w_1.a4y_1 && descriptor.q48() === 0) {
2454
+ skipLeftoverElements(this, descriptor);
2455
+ }
2456
+ if (this.x4w_1.v53() && !this.v4w_1.r4w_1.n4y_1) {
2457
+ invalidTrailingComma(this.x4w_1, '');
2458
+ }
2459
+ this.x4w_1.u53(this.w4w_1.g54_1);
2460
+ this.x4w_1.e4x_1.q51();
2461
+ };
2462
+ protoOf(StreamingJsonDecoder).w49 = function () {
2463
+ var tmp;
2464
+ var tmp0_safe_receiver = this.c4x_1;
2465
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a51_1;
2466
+ if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
2467
+ tmp = !this.x4w_1.h54();
2468
+ } else {
2469
+ tmp = false;
2470
+ }
2471
+ return tmp;
2472
+ };
2473
+ protoOf(StreamingJsonDecoder).x49 = function () {
2474
+ return null;
2475
+ };
2476
+ protoOf(StreamingJsonDecoder).x4a = function (descriptor, index, deserializer, previousValue) {
2477
+ var isMapKey = this.w4w_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
2478
+ if (isMapKey) {
2479
+ this.x4w_1.e4x_1.p51();
2480
+ }
2481
+ var value = protoOf(AbstractDecoder).x4a.call(this, descriptor, index, deserializer, previousValue);
2482
+ if (isMapKey) {
2483
+ this.x4w_1.e4x_1.o51(value);
2484
+ }
2485
+ return value;
2486
+ };
2487
+ protoOf(StreamingJsonDecoder).b4b = function (descriptor) {
2488
+ var index;
2489
+ switch (this.w4w_1.o2_1) {
2490
+ case 0:
2491
+ index = decodeObjectIndex(this, descriptor);
2492
+ break;
2493
+ case 2:
2494
+ index = decodeMapIndex(this);
2495
+ break;
2496
+ default:
2497
+ index = decodeListIndex(this);
2498
+ break;
2499
+ }
2500
+ if (!this.w4w_1.equals(WriteMode_MAP_getInstance())) {
2501
+ this.x4w_1.e4x_1.n51(index);
2502
+ }
2503
+ return index;
2504
+ };
2505
+ protoOf(StreamingJsonDecoder).y49 = function () {
2506
+ return this.x4w_1.i54();
2507
+ };
2508
+ protoOf(StreamingJsonDecoder).z49 = function () {
2509
+ var value = this.x4w_1.d4z();
2510
+ if (!value.equals(toLong(value.l3()))) {
2511
+ this.x4w_1.e51("Failed to parse byte for input '" + value.toString() + "'");
2512
+ }
2513
+ return value.l3();
2514
+ };
2515
+ protoOf(StreamingJsonDecoder).a4a = function () {
2516
+ var value = this.x4w_1.d4z();
2517
+ if (!value.equals(toLong(value.m3()))) {
2518
+ this.x4w_1.e51("Failed to parse short for input '" + value.toString() + "'");
2519
+ }
2520
+ return value.m3();
2521
+ };
2522
+ protoOf(StreamingJsonDecoder).b4a = function () {
2523
+ var value = this.x4w_1.d4z();
2524
+ if (!value.equals(toLong(value.e1()))) {
2525
+ this.x4w_1.e51("Failed to parse int for input '" + value.toString() + "'");
2526
+ }
2527
+ return value.e1();
2528
+ };
2529
+ protoOf(StreamingJsonDecoder).c4a = function () {
2530
+ return this.x4w_1.d4z();
2531
+ };
2532
+ protoOf(StreamingJsonDecoder).d4a = function () {
2533
+ var tmp$ret$4;
2534
+ $l$block: {
2535
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2536
+ var this_0 = this.x4w_1;
2537
+ var input = this_0.i52();
2538
+ try {
2539
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeFloat.<anonymous>' call
2540
+ // Inline function 'kotlin.text.toFloat' call
2541
+ // Inline function 'kotlin.js.unsafeCast' call
2542
+ // Inline function 'kotlin.js.asDynamic' call
2543
+ tmp$ret$4 = toDouble(input);
2544
+ break $l$block;
2545
+ } catch ($p) {
2546
+ if ($p instanceof IllegalArgumentException) {
2547
+ var e = $p;
2548
+ this_0.e51("Failed to parse type '" + 'float' + "' for input '" + input + "'");
2549
+ } else {
2550
+ throw $p;
2551
+ }
2552
+ }
2553
+ }
2554
+ var result = tmp$ret$4;
2555
+ var specialFp = this.v4w_1.r4w_1.j4y_1;
2556
+ if (specialFp || isFinite(result))
2557
+ return result;
2558
+ throwInvalidFloatingPointDecoded(this.x4w_1, result);
2559
+ };
2560
+ protoOf(StreamingJsonDecoder).e4a = function () {
2561
+ var tmp$ret$1;
2562
+ $l$block: {
2563
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2564
+ var this_0 = this.x4w_1;
2565
+ var input = this_0.i52();
2566
+ try {
2567
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeDouble.<anonymous>' call
2568
+ tmp$ret$1 = toDouble(input);
2569
+ break $l$block;
2570
+ } catch ($p) {
2571
+ if ($p instanceof IllegalArgumentException) {
2572
+ var e = $p;
2573
+ this_0.e51("Failed to parse type '" + 'double' + "' for input '" + input + "'");
2574
+ } else {
2575
+ throw $p;
2576
+ }
2577
+ }
2578
+ }
2579
+ var result = tmp$ret$1;
2580
+ var specialFp = this.v4w_1.r4w_1.j4y_1;
2581
+ if (specialFp || isFinite_0(result))
2582
+ return result;
2583
+ throwInvalidFloatingPointDecoded(this.x4w_1, result);
2584
+ };
2585
+ protoOf(StreamingJsonDecoder).f4a = function () {
2586
+ var string = this.x4w_1.i52();
2587
+ if (!(string.length === 1)) {
2588
+ this.x4w_1.e51("Expected single char, but got '" + string + "'");
2589
+ }
2590
+ return charSequenceGet(string, 0);
2591
+ };
2592
+ protoOf(StreamingJsonDecoder).g4a = function () {
2593
+ var tmp;
2594
+ if (this.b4x_1.b4y_1) {
2595
+ tmp = this.x4w_1.b54();
2596
+ } else {
2597
+ tmp = this.x4w_1.h52();
2598
+ }
2599
+ return tmp;
2600
+ };
2601
+ protoOf(StreamingJsonDecoder).i4a = function (descriptor) {
2602
+ return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.x4w_1, this.v4w_1) : protoOf(AbstractDecoder).i4a.call(this, descriptor);
2603
+ };
2604
+ protoOf(StreamingJsonDecoder).h4a = function (enumDescriptor) {
2605
+ return getJsonNameIndexOrThrow(enumDescriptor, this.v4w_1, this.g4a(), ' at path ' + this.x4w_1.e4x_1.r51());
2606
+ };
2607
+ function JsonDecoderForUnsignedTypes(lexer, json) {
2608
+ AbstractDecoder.call(this);
2609
+ this.j54_1 = lexer;
2610
+ this.k54_1 = json.d48();
2611
+ }
2612
+ protoOf(JsonDecoderForUnsignedTypes).d48 = function () {
2613
+ return this.k54_1;
2614
+ };
2615
+ protoOf(JsonDecoderForUnsignedTypes).b4b = function (descriptor) {
2616
+ var message = 'unsupported';
2617
+ throw IllegalStateException_init_$Create$(toString(message));
2618
+ };
2619
+ protoOf(JsonDecoderForUnsignedTypes).b4a = function () {
2620
+ var tmp$ret$2;
2621
+ $l$block: {
2622
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2623
+ var this_0 = this.j54_1;
2624
+ var input = this_0.i52();
2625
+ try {
2626
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeInt.<anonymous>' call
2627
+ // Inline function 'kotlin.UInt.toInt' call
2628
+ var this_1 = toUInt(input);
2629
+ tmp$ret$2 = _UInt___get_data__impl__f0vqqw(this_1);
2630
+ break $l$block;
2631
+ } catch ($p) {
2632
+ if ($p instanceof IllegalArgumentException) {
2633
+ var e = $p;
2634
+ this_0.e51("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
2635
+ } else {
2636
+ throw $p;
2637
+ }
2638
+ }
2639
+ }
2640
+ return tmp$ret$2;
2641
+ };
2642
+ protoOf(JsonDecoderForUnsignedTypes).c4a = function () {
2643
+ var tmp$ret$2;
2644
+ $l$block: {
2645
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2646
+ var this_0 = this.j54_1;
2647
+ var input = this_0.i52();
2648
+ try {
2649
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeLong.<anonymous>' call
2650
+ // Inline function 'kotlin.ULong.toLong' call
2651
+ var this_1 = toULong(input);
2652
+ tmp$ret$2 = _ULong___get_data__impl__fggpzb(this_1);
2653
+ break $l$block;
2654
+ } catch ($p) {
2655
+ if ($p instanceof IllegalArgumentException) {
2656
+ var e = $p;
2657
+ this_0.e51("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
2658
+ } else {
2659
+ throw $p;
2660
+ }
2661
+ }
2662
+ }
2663
+ return tmp$ret$2;
2664
+ };
2665
+ protoOf(JsonDecoderForUnsignedTypes).z49 = function () {
2666
+ var tmp$ret$2;
2667
+ $l$block: {
2668
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2669
+ var this_0 = this.j54_1;
2670
+ var input = this_0.i52();
2671
+ try {
2672
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeByte.<anonymous>' call
2673
+ // Inline function 'kotlin.UByte.toByte' call
2674
+ var this_1 = toUByte(input);
2675
+ tmp$ret$2 = _UByte___get_data__impl__jof9qr(this_1);
2676
+ break $l$block;
2677
+ } catch ($p) {
2678
+ if ($p instanceof IllegalArgumentException) {
2679
+ var e = $p;
2680
+ this_0.e51("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
2681
+ } else {
2682
+ throw $p;
2683
+ }
2684
+ }
2685
+ }
2686
+ return tmp$ret$2;
2687
+ };
2688
+ protoOf(JsonDecoderForUnsignedTypes).a4a = function () {
2689
+ var tmp$ret$2;
2690
+ $l$block: {
2691
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2692
+ var this_0 = this.j54_1;
2693
+ var input = this_0.i52();
2694
+ try {
2695
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeShort.<anonymous>' call
2696
+ // Inline function 'kotlin.UShort.toShort' call
2697
+ var this_1 = toUShort(input);
2698
+ tmp$ret$2 = _UShort___get_data__impl__g0245(this_1);
2699
+ break $l$block;
2700
+ } catch ($p) {
2701
+ if ($p instanceof IllegalArgumentException) {
2702
+ var e = $p;
2703
+ this_0.e51("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
2704
+ } else {
2705
+ throw $p;
2706
+ }
2707
+ }
2708
+ }
2709
+ return tmp$ret$2;
2710
+ };
2711
+ function get_unsignedNumberDescriptors() {
2712
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2713
+ return unsignedNumberDescriptors;
2714
+ }
2715
+ var unsignedNumberDescriptors;
2716
+ function StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, $this) {
2717
+ StreamingJsonEncoder.call($this, Composer_0(output, json), json, mode, modeReuseCache);
2718
+ return $this;
2719
+ }
2720
+ function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache) {
2721
+ return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
2722
+ }
2723
+ function encodeTypeInfo($this, descriptor) {
2724
+ $this.s51_1.z4z();
2725
+ $this.o4b(ensureNotNull($this.z51_1));
2726
+ $this.s51_1.b50(_Char___init__impl__6a9atx(58));
2727
+ $this.s51_1.a50();
2728
+ $this.o4b(descriptor.z47());
2729
+ }
2730
+ function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
2731
+ AbstractEncoder.call(this);
2732
+ this.s51_1 = composer;
2733
+ this.t51_1 = json;
2734
+ this.u51_1 = mode;
2735
+ this.v51_1 = modeReuseCache;
2736
+ this.w51_1 = this.t51_1.d48();
2737
+ this.x51_1 = this.t51_1.r4w_1;
2738
+ this.y51_1 = false;
2739
+ this.z51_1 = null;
2740
+ var i = this.u51_1.o2_1;
2741
+ if (!(this.v51_1 == null)) {
2742
+ if (!(this.v51_1[i] === null) || !(this.v51_1[i] === this)) {
2743
+ this.v51_1[i] = this;
2744
+ }
2745
+ }
2746
+ }
2747
+ protoOf(StreamingJsonEncoder).o4y = function () {
2748
+ return this.t51_1;
2749
+ };
2750
+ protoOf(StreamingJsonEncoder).d48 = function () {
2751
+ return this.w51_1;
2752
+ };
2753
+ protoOf(StreamingJsonEncoder).h4c = function (descriptor, index) {
2754
+ return this.x51_1.z4x_1;
2755
+ };
2756
+ protoOf(StreamingJsonEncoder).c4c = function (serializer, value) {
2757
+ $l$block: {
2758
+ // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
2759
+ var tmp;
2760
+ if (!(serializer instanceof AbstractPolymorphicSerializer)) {
2761
+ tmp = true;
2762
+ } else {
2763
+ tmp = this.o4y().r4w_1.h4y_1;
2764
+ }
2765
+ if (tmp) {
2766
+ serializer.z46(this, value);
2767
+ break $l$block;
2768
+ }
2769
+ var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
2770
+ var baseClassDiscriminator = classDiscriminator(serializer.y46(), this.o4y());
2771
+ var actualSerializer = findPolymorphicSerializer_0(casted, this, !(value == null) ? value : THROW_CCE());
2772
+ validateIfSealed$accessor$1ad0flx(casted, actualSerializer, baseClassDiscriminator);
2773
+ checkKind(actualSerializer.y46().s48());
2774
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue.<anonymous>' call
2775
+ this.z51_1 = baseClassDiscriminator;
2776
+ actualSerializer.z46(this, value);
2777
+ }
2778
+ };
2779
+ protoOf(StreamingJsonEncoder).l4a = function (descriptor) {
2780
+ var newMode = switchMode(this.t51_1, descriptor);
2781
+ if (!(newMode.f54_1 === _Char___init__impl__6a9atx(0))) {
2782
+ this.s51_1.b50(newMode.f54_1);
2783
+ this.s51_1.x4z();
2784
+ }
2785
+ if (!(this.z51_1 == null)) {
2786
+ encodeTypeInfo(this, descriptor);
2787
+ this.z51_1 = null;
2788
+ }
2789
+ if (this.u51_1.equals(newMode)) {
2790
+ return this;
2791
+ }
2792
+ var tmp0_safe_receiver = this.v51_1;
2793
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver[newMode.o2_1];
2794
+ return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.s51_1, this.t51_1, newMode, this.v51_1) : tmp1_elvis_lhs;
2795
+ };
2796
+ protoOf(StreamingJsonEncoder).m4a = function (descriptor) {
2797
+ if (!(this.u51_1.g54_1 === _Char___init__impl__6a9atx(0))) {
2798
+ this.s51_1.y4z();
2799
+ this.s51_1.z4z();
2800
+ this.s51_1.b50(this.u51_1.g54_1);
2801
+ }
2802
+ };
2803
+ protoOf(StreamingJsonEncoder).d4b = function (descriptor, index) {
2804
+ switch (this.u51_1.o2_1) {
2805
+ case 1:
2806
+ if (!this.s51_1.w4z_1) {
2807
+ this.s51_1.b50(_Char___init__impl__6a9atx(44));
2808
+ }
2809
+
2810
+ this.s51_1.z4z();
2811
+ break;
2812
+ case 2:
2813
+ if (!this.s51_1.w4z_1) {
2814
+ var tmp = this;
2815
+ var tmp_0;
2816
+ if ((index % 2 | 0) === 0) {
2817
+ this.s51_1.b50(_Char___init__impl__6a9atx(44));
2818
+ this.s51_1.z4z();
2819
+ tmp_0 = true;
2820
+ } else {
2821
+ this.s51_1.b50(_Char___init__impl__6a9atx(58));
2822
+ this.s51_1.a50();
2823
+ tmp_0 = false;
2824
+ }
2825
+ tmp.y51_1 = tmp_0;
2826
+ } else {
2827
+ this.y51_1 = true;
2828
+ this.s51_1.z4z();
2829
+ }
2830
+
2831
+ break;
2832
+ case 3:
2833
+ if (index === 0)
2834
+ this.y51_1 = true;
2835
+ if (index === 1) {
2836
+ this.s51_1.b50(_Char___init__impl__6a9atx(44));
2837
+ this.s51_1.a50();
2838
+ this.y51_1 = false;
2839
+ }
2840
+
2841
+ break;
2842
+ default:
2843
+ if (!this.s51_1.w4z_1) {
2844
+ this.s51_1.b50(_Char___init__impl__6a9atx(44));
2845
+ }
2846
+
2847
+ this.s51_1.z4z();
2848
+ this.o4b(getJsonElementName(descriptor, this.t51_1, index));
2849
+ this.s51_1.b50(_Char___init__impl__6a9atx(58));
2850
+ this.s51_1.a50();
2851
+ break;
2852
+ }
2853
+ return true;
2854
+ };
2855
+ protoOf(StreamingJsonEncoder).d4c = function (descriptor, index, serializer, value) {
2856
+ if (!(value == null) || this.x51_1.e4y_1) {
2857
+ protoOf(AbstractEncoder).d4c.call(this, descriptor, index, serializer, value);
2858
+ }
2859
+ };
2860
+ protoOf(StreamingJsonEncoder).q4b = function (descriptor) {
2861
+ var tmp;
2862
+ if (get_isUnsignedNumber(descriptor)) {
2863
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
2864
+ var tmp_0;
2865
+ var tmp_1 = this.s51_1;
2866
+ if (tmp_1 instanceof ComposerForUnsignedNumbers) {
2867
+ tmp_0 = this.s51_1;
2868
+ } else {
2869
+ tmp_0 = new ComposerForUnsignedNumbers(this.s51_1.v4z_1, this.y51_1);
2870
+ }
2871
+ var tmp$ret$1 = tmp_0;
2872
+ tmp = new StreamingJsonEncoder(tmp$ret$1, this.t51_1, this.u51_1, null);
2873
+ } else if (get_isUnquotedLiteral(descriptor)) {
2874
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
2875
+ var tmp_2;
2876
+ var tmp_3 = this.s51_1;
2877
+ if (tmp_3 instanceof ComposerForUnquotedLiterals) {
2878
+ tmp_2 = this.s51_1;
2879
+ } else {
2880
+ tmp_2 = new ComposerForUnquotedLiterals(this.s51_1.v4z_1, this.y51_1);
2881
+ }
2882
+ var tmp$ret$3 = tmp_2;
2883
+ tmp = new StreamingJsonEncoder(tmp$ret$3, this.t51_1, this.u51_1, null);
2884
+ } else {
2885
+ tmp = protoOf(AbstractEncoder).q4b.call(this, descriptor);
2886
+ }
2887
+ return tmp;
2888
+ };
2889
+ protoOf(StreamingJsonEncoder).f4b = function () {
2890
+ this.s51_1.d50('null');
2891
+ };
2892
+ protoOf(StreamingJsonEncoder).g4b = function (value) {
2893
+ if (this.y51_1) {
2894
+ this.o4b(value.toString());
2895
+ } else {
2896
+ this.s51_1.m50(value);
2897
+ }
2898
+ };
2899
+ protoOf(StreamingJsonEncoder).h4b = function (value) {
2900
+ if (this.y51_1) {
2901
+ this.o4b(value.toString());
2902
+ } else {
2903
+ this.s51_1.h50(value);
2904
+ }
2905
+ };
2906
+ protoOf(StreamingJsonEncoder).i4b = function (value) {
2907
+ if (this.y51_1) {
2908
+ this.o4b(value.toString());
2909
+ } else {
2910
+ this.s51_1.j50(value);
2911
+ }
2912
+ };
2913
+ protoOf(StreamingJsonEncoder).j4b = function (value) {
2914
+ if (this.y51_1) {
2915
+ this.o4b(value.toString());
2916
+ } else {
2917
+ this.s51_1.k50(value);
2918
+ }
2919
+ };
2920
+ protoOf(StreamingJsonEncoder).k4b = function (value) {
2921
+ if (this.y51_1) {
2922
+ this.o4b(value.toString());
2923
+ } else {
2924
+ this.s51_1.l50(value);
2925
+ }
2926
+ };
2927
+ protoOf(StreamingJsonEncoder).l4b = function (value) {
2928
+ if (this.y51_1) {
2929
+ this.o4b(value.toString());
2930
+ } else {
2931
+ this.s51_1.f50(value);
2932
+ }
2933
+ if (!this.x51_1.j4y_1 && !isFinite(value)) {
2934
+ throw InvalidFloatingPointEncoded(value, toString(this.s51_1.v4z_1));
2935
+ }
2936
+ };
2937
+ protoOf(StreamingJsonEncoder).m4b = function (value) {
2938
+ if (this.y51_1) {
2939
+ this.o4b(value.toString());
2940
+ } else {
2941
+ this.s51_1.g50(value);
2942
+ }
2943
+ if (!this.x51_1.j4y_1 && !isFinite_0(value)) {
2944
+ throw InvalidFloatingPointEncoded(value, toString(this.s51_1.v4z_1));
2945
+ }
2946
+ };
2947
+ protoOf(StreamingJsonEncoder).n4b = function (value) {
2948
+ this.o4b(toString_1(value));
2949
+ };
2950
+ protoOf(StreamingJsonEncoder).o4b = function (value) {
2951
+ return this.s51_1.n50(value);
2952
+ };
2953
+ protoOf(StreamingJsonEncoder).p4b = function (enumDescriptor, index) {
2954
+ this.o4b(enumDescriptor.w48(index));
2955
+ };
2956
+ function get_isUnsignedNumber(_this__u8e3s4) {
2957
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2958
+ return _this__u8e3s4.r48() && get_unsignedNumberDescriptors().s1(_this__u8e3s4);
2959
+ }
2960
+ function get_isUnquotedLiteral(_this__u8e3s4) {
2961
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2962
+ return _this__u8e3s4.r48() && equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor());
2963
+ }
2964
+ var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
2965
+ function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
2966
+ if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
2967
+ properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
2968
+ unsignedNumberDescriptors = setOf([serializer_1(Companion_getInstance_0()).y46(), serializer_0(Companion_getInstance()).y46(), serializer_2(Companion_getInstance_1()).y46(), serializer_3(Companion_getInstance_2()).y46()]);
2969
+ }
2970
+ }
2971
+ function get_ESCAPE_STRINGS() {
2972
+ _init_properties_StringOps_kt__fcy1db();
2973
+ return ESCAPE_STRINGS;
2974
+ }
2975
+ var ESCAPE_STRINGS;
2976
+ var ESCAPE_MARKERS;
2977
+ function toHexChar(i) {
2978
+ _init_properties_StringOps_kt__fcy1db();
2979
+ var d = i & 15;
2980
+ var tmp;
2981
+ if (d < 10) {
2982
+ // Inline function 'kotlin.code' call
2983
+ var this_0 = _Char___init__impl__6a9atx(48);
2984
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
2985
+ tmp = numberToChar(d + tmp$ret$0 | 0);
2986
+ } else {
2987
+ var tmp_0 = d - 10 | 0;
2988
+ // Inline function 'kotlin.code' call
2989
+ var this_1 = _Char___init__impl__6a9atx(97);
2990
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_1);
2991
+ tmp = numberToChar(tmp_0 + tmp$ret$1 | 0);
2992
+ }
2993
+ return tmp;
2994
+ }
2995
+ function printQuoted(_this__u8e3s4, value) {
2996
+ _init_properties_StringOps_kt__fcy1db();
2997
+ _this__u8e3s4.j8(_Char___init__impl__6a9atx(34));
2998
+ var lastPos = 0;
2999
+ var inductionVariable = 0;
3000
+ var last = charSequenceLength(value) - 1 | 0;
3001
+ if (inductionVariable <= last)
3002
+ do {
3003
+ var i = inductionVariable;
3004
+ inductionVariable = inductionVariable + 1 | 0;
3005
+ // Inline function 'kotlin.code' call
3006
+ var this_0 = charSequenceGet(value, i);
3007
+ var c = Char__toInt_impl_vasixd(this_0);
3008
+ if (c < get_ESCAPE_STRINGS().length && !(get_ESCAPE_STRINGS()[c] == null)) {
3009
+ _this__u8e3s4.ub(value, lastPos, i);
3010
+ _this__u8e3s4.i8(get_ESCAPE_STRINGS()[c]);
3011
+ lastPos = i + 1 | 0;
3012
+ }
3013
+ }
3014
+ while (inductionVariable <= last);
3015
+ if (!(lastPos === 0)) {
3016
+ _this__u8e3s4.ub(value, lastPos, value.length);
3017
+ } else {
3018
+ _this__u8e3s4.i8(value);
3019
+ }
3020
+ _this__u8e3s4.j8(_Char___init__impl__6a9atx(34));
3021
+ }
3022
+ function toBooleanStrictOrNull_0(_this__u8e3s4) {
3023
+ _init_properties_StringOps_kt__fcy1db();
3024
+ return equals_0(_this__u8e3s4, 'true', true) ? true : equals_0(_this__u8e3s4, 'false', true) ? false : null;
3025
+ }
3026
+ var properties_initialized_StringOps_kt_wzaea7;
3027
+ function _init_properties_StringOps_kt__fcy1db() {
3028
+ if (!properties_initialized_StringOps_kt_wzaea7) {
3029
+ properties_initialized_StringOps_kt_wzaea7 = true;
3030
+ // Inline function 'kotlin.apply' call
3031
+ // Inline function 'kotlin.arrayOfNulls' call
3032
+ var this_0 = fillArrayVal(Array(93), null);
3033
+ // Inline function 'kotlin.contracts.contract' call
3034
+ // Inline function 'kotlinx.serialization.json.internal.ESCAPE_STRINGS.<anonymous>' call
3035
+ var inductionVariable = 0;
3036
+ if (inductionVariable <= 31)
3037
+ do {
3038
+ var c = inductionVariable;
3039
+ inductionVariable = inductionVariable + 1 | 0;
3040
+ var c1 = toHexChar(c >> 12);
3041
+ var c2 = toHexChar(c >> 8);
3042
+ var c3 = toHexChar(c >> 4);
3043
+ var c4 = toHexChar(c);
3044
+ this_0[c] = '\\u' + toString_1(c1) + toString_1(c2) + toString_1(c3) + toString_1(c4);
3045
+ }
3046
+ while (inductionVariable <= 31);
3047
+ // Inline function 'kotlin.code' call
3048
+ var this_1 = _Char___init__impl__6a9atx(34);
3049
+ this_0[Char__toInt_impl_vasixd(this_1)] = '\\"';
3050
+ // Inline function 'kotlin.code' call
3051
+ var this_2 = _Char___init__impl__6a9atx(92);
3052
+ this_0[Char__toInt_impl_vasixd(this_2)] = '\\\\';
3053
+ // Inline function 'kotlin.code' call
3054
+ var this_3 = _Char___init__impl__6a9atx(9);
3055
+ this_0[Char__toInt_impl_vasixd(this_3)] = '\\t';
3056
+ // Inline function 'kotlin.code' call
3057
+ var this_4 = _Char___init__impl__6a9atx(8);
3058
+ this_0[Char__toInt_impl_vasixd(this_4)] = '\\b';
3059
+ // Inline function 'kotlin.code' call
3060
+ var this_5 = _Char___init__impl__6a9atx(10);
3061
+ this_0[Char__toInt_impl_vasixd(this_5)] = '\\n';
3062
+ // Inline function 'kotlin.code' call
3063
+ var this_6 = _Char___init__impl__6a9atx(13);
3064
+ this_0[Char__toInt_impl_vasixd(this_6)] = '\\r';
3065
+ this_0[12] = '\\f';
3066
+ ESCAPE_STRINGS = this_0;
3067
+ // Inline function 'kotlin.apply' call
3068
+ var this_7 = new Int8Array(93);
3069
+ // Inline function 'kotlin.contracts.contract' call
3070
+ // Inline function 'kotlinx.serialization.json.internal.ESCAPE_MARKERS.<anonymous>' call
3071
+ var inductionVariable_0 = 0;
3072
+ if (inductionVariable_0 <= 31)
3073
+ do {
3074
+ var c_0 = inductionVariable_0;
3075
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
3076
+ this_7[c_0] = 1;
3077
+ }
3078
+ while (inductionVariable_0 <= 31);
3079
+ // Inline function 'kotlin.code' call
3080
+ var this_8 = _Char___init__impl__6a9atx(34);
3081
+ this_7[Char__toInt_impl_vasixd(this_8)] = 34;
3082
+ // Inline function 'kotlin.code' call
3083
+ var this_9 = _Char___init__impl__6a9atx(92);
3084
+ this_7[Char__toInt_impl_vasixd(this_9)] = 92;
3085
+ // Inline function 'kotlin.code' call
3086
+ var this_10 = _Char___init__impl__6a9atx(9);
3087
+ this_7[Char__toInt_impl_vasixd(this_10)] = 116;
3088
+ // Inline function 'kotlin.code' call
3089
+ var this_11 = _Char___init__impl__6a9atx(8);
3090
+ this_7[Char__toInt_impl_vasixd(this_11)] = 98;
3091
+ // Inline function 'kotlin.code' call
3092
+ var this_12 = _Char___init__impl__6a9atx(10);
3093
+ this_7[Char__toInt_impl_vasixd(this_12)] = 110;
3094
+ // Inline function 'kotlin.code' call
3095
+ var this_13 = _Char___init__impl__6a9atx(13);
3096
+ this_7[Char__toInt_impl_vasixd(this_13)] = 114;
3097
+ this_7[12] = 102;
3098
+ ESCAPE_MARKERS = this_7;
3099
+ }
3100
+ }
3101
+ function unparsedPrimitive($this, primitive) {
3102
+ throw JsonDecodingException_0(-1, "Failed to parse literal as '" + primitive + "' value", toString($this.q54()));
3103
+ }
3104
+ function asLiteral(_this__u8e3s4, $this, type) {
3105
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonLiteral ? _this__u8e3s4 : null;
3106
+ var tmp;
3107
+ if (tmp0_elvis_lhs == null) {
3108
+ throw JsonDecodingException_1(-1, "Unexpected 'null' literal when non-nullable " + type + ' was expected');
3109
+ } else {
3110
+ tmp = tmp0_elvis_lhs;
3111
+ }
3112
+ return tmp;
3113
+ }
3114
+ function AbstractJsonTreeDecoder(json, value) {
3115
+ NamedValueDecoder.call(this);
3116
+ this.n54_1 = json;
3117
+ this.o54_1 = value;
3118
+ this.p54_1 = this.o4y().r4w_1;
3119
+ }
3120
+ protoOf(AbstractJsonTreeDecoder).o4y = function () {
3121
+ return this.n54_1;
3122
+ };
3123
+ protoOf(AbstractJsonTreeDecoder).u = function () {
3124
+ return this.o54_1;
3125
+ };
3126
+ protoOf(AbstractJsonTreeDecoder).d48 = function () {
3127
+ return this.o4y().d48();
3128
+ };
3129
+ protoOf(AbstractJsonTreeDecoder).q54 = function () {
3130
+ var tmp0_safe_receiver = this.p4o();
3131
+ var tmp;
3132
+ if (tmp0_safe_receiver == null) {
3133
+ tmp = null;
3134
+ } else {
3135
+ // Inline function 'kotlin.let' call
3136
+ // Inline function 'kotlin.contracts.contract' call
3137
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.currentObject.<anonymous>' call
3138
+ tmp = this.r54(tmp0_safe_receiver);
3139
+ }
3140
+ var tmp1_elvis_lhs = tmp;
3141
+ return tmp1_elvis_lhs == null ? this.u() : tmp1_elvis_lhs;
3142
+ };
3143
+ protoOf(AbstractJsonTreeDecoder).p4y = function () {
3144
+ return this.q54();
3145
+ };
3146
+ protoOf(AbstractJsonTreeDecoder).k4a = function (deserializer) {
3147
+ return decodeSerializableValuePolymorphic(this, deserializer);
3148
+ };
3149
+ protoOf(AbstractJsonTreeDecoder).q4o = function (parentName, childName) {
3150
+ return childName;
3151
+ };
3152
+ protoOf(AbstractJsonTreeDecoder).l4a = function (descriptor) {
3153
+ var currentObject = this.q54();
3154
+ var tmp0_subject = descriptor.s48();
3155
+ var tmp;
3156
+ var tmp_0;
3157
+ if (equals(tmp0_subject, LIST_getInstance())) {
3158
+ tmp_0 = true;
3159
+ } else {
3160
+ tmp_0 = tmp0_subject instanceof PolymorphicKind;
3161
+ }
3162
+ if (tmp_0) {
3163
+ var tmp_1 = this.o4y();
3164
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3165
+ if (!(currentObject instanceof JsonArray)) {
3166
+ throw JsonDecodingException_1(-1, 'Expected ' + toString(getKClass(JsonArray)) + ' as the serialized body of ' + descriptor.z47() + ', but had ' + toString(getKClassFromExpression(currentObject)));
3167
+ }
3168
+ tmp = new JsonTreeListDecoder(tmp_1, currentObject);
3169
+ } else {
3170
+ if (equals(tmp0_subject, MAP_getInstance())) {
3171
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
3172
+ var this_0 = this.o4y();
3173
+ var keyDescriptor = carrierDescriptor(descriptor.u48(0), this_0.d48());
3174
+ var keyKind = keyDescriptor.s48();
3175
+ var tmp_2;
3176
+ var tmp_3;
3177
+ if (keyKind instanceof PrimitiveKind) {
3178
+ tmp_3 = true;
3179
+ } else {
3180
+ tmp_3 = equals(keyKind, ENUM_getInstance());
3181
+ }
3182
+ if (tmp_3) {
3183
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.<anonymous>' call
3184
+ var tmp_4 = this.o4y();
3185
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3186
+ if (!(currentObject instanceof JsonObject)) {
3187
+ throw JsonDecodingException_1(-1, 'Expected ' + toString(getKClass(JsonObject)) + ' as the serialized body of ' + descriptor.z47() + ', but had ' + toString(getKClassFromExpression(currentObject)));
3188
+ }
3189
+ tmp_2 = new JsonTreeMapDecoder(tmp_4, currentObject);
3190
+ } else {
3191
+ if (this_0.r4w_1.c4y_1) {
3192
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.<anonymous>' call
3193
+ var tmp_5 = this.o4y();
3194
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3195
+ if (!(currentObject instanceof JsonArray)) {
3196
+ throw JsonDecodingException_1(-1, 'Expected ' + toString(getKClass(JsonArray)) + ' as the serialized body of ' + descriptor.z47() + ', but had ' + toString(getKClassFromExpression(currentObject)));
3197
+ }
3198
+ tmp_2 = new JsonTreeListDecoder(tmp_5, currentObject);
3199
+ } else {
3200
+ throw InvalidKeyKindException(keyDescriptor);
3201
+ }
3202
+ }
3203
+ tmp = tmp_2;
3204
+ } else {
3205
+ var tmp_6 = this.o4y();
3206
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3207
+ if (!(currentObject instanceof JsonObject)) {
3208
+ throw JsonDecodingException_1(-1, 'Expected ' + toString(getKClass(JsonObject)) + ' as the serialized body of ' + descriptor.z47() + ', but had ' + toString(getKClassFromExpression(currentObject)));
3209
+ }
3210
+ tmp = new JsonTreeDecoder(tmp_6, currentObject);
3211
+ }
3212
+ }
3213
+ return tmp;
3214
+ };
3215
+ protoOf(AbstractJsonTreeDecoder).m4a = function (descriptor) {
3216
+ };
3217
+ protoOf(AbstractJsonTreeDecoder).w49 = function () {
3218
+ var tmp = this.q54();
3219
+ return !(tmp instanceof JsonNull);
3220
+ };
3221
+ protoOf(AbstractJsonTreeDecoder).s54 = function (tag) {
3222
+ var currentElement = this.r54(tag);
3223
+ var tmp0_elvis_lhs = currentElement instanceof JsonPrimitive ? currentElement : null;
3224
+ var tmp;
3225
+ if (tmp0_elvis_lhs == null) {
3226
+ throw JsonDecodingException_0(-1, 'Expected JsonPrimitive at ' + tag + ', found ' + toString(currentElement), toString(this.q54()));
3227
+ } else {
3228
+ tmp = tmp0_elvis_lhs;
3229
+ }
3230
+ return tmp;
3231
+ };
3232
+ protoOf(AbstractJsonTreeDecoder).t54 = function (tag, enumDescriptor) {
3233
+ return getJsonNameIndexOrThrow(enumDescriptor, this.o4y(), this.s54(tag).m30());
3234
+ };
3235
+ protoOf(AbstractJsonTreeDecoder).c4p = function (tag, enumDescriptor) {
3236
+ return this.t54((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
3237
+ };
3238
+ protoOf(AbstractJsonTreeDecoder).u54 = function (tag) {
3239
+ return !(this.r54(tag) === JsonNull_getInstance());
3240
+ };
3241
+ protoOf(AbstractJsonTreeDecoder).s4o = function (tag) {
3242
+ return this.u54((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3243
+ };
3244
+ protoOf(AbstractJsonTreeDecoder).v54 = function (tag) {
3245
+ var tmp$ret$1;
3246
+ $l$block: {
3247
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3248
+ var this_0 = this.s54(tag);
3249
+ try {
3250
+ var tmp0_elvis_lhs = get_booleanOrNull(this_0);
3251
+ var tmp;
3252
+ if (tmp0_elvis_lhs == null) {
3253
+ unparsedPrimitive(this, 'boolean');
3254
+ } else {
3255
+ tmp = tmp0_elvis_lhs;
3256
+ }
3257
+ tmp$ret$1 = tmp;
3258
+ break $l$block;
3259
+ } catch ($p) {
3260
+ if ($p instanceof IllegalArgumentException) {
3261
+ var e = $p;
3262
+ unparsedPrimitive(this, 'boolean');
3263
+ } else {
3264
+ throw $p;
3265
+ }
3266
+ }
3267
+ }
3268
+ return tmp$ret$1;
3269
+ };
3270
+ protoOf(AbstractJsonTreeDecoder).t4o = function (tag) {
3271
+ return this.v54((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3272
+ };
3273
+ protoOf(AbstractJsonTreeDecoder).w54 = function (tag) {
3274
+ var tmp$ret$1;
3275
+ $l$block: {
3276
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3277
+ var this_0 = this.s54(tag);
3278
+ try {
3279
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedByte.<anonymous>' call
3280
+ var result = get_int(this_0);
3281
+ var tmp0_elvis_lhs = (-128 <= result ? result <= 127 : false) ? toByte(result) : null;
3282
+ var tmp;
3283
+ if (tmp0_elvis_lhs == null) {
3284
+ unparsedPrimitive(this, 'byte');
3285
+ } else {
3286
+ tmp = tmp0_elvis_lhs;
3287
+ }
3288
+ tmp$ret$1 = tmp;
3289
+ break $l$block;
3290
+ } catch ($p) {
3291
+ if ($p instanceof IllegalArgumentException) {
3292
+ var e = $p;
3293
+ unparsedPrimitive(this, 'byte');
3294
+ } else {
3295
+ throw $p;
3296
+ }
3297
+ }
3298
+ }
3299
+ return tmp$ret$1;
3300
+ };
3301
+ protoOf(AbstractJsonTreeDecoder).u4o = function (tag) {
3302
+ return this.w54((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3303
+ };
3304
+ protoOf(AbstractJsonTreeDecoder).x54 = function (tag) {
3305
+ var tmp$ret$1;
3306
+ $l$block: {
3307
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3308
+ var this_0 = this.s54(tag);
3309
+ try {
3310
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedShort.<anonymous>' call
3311
+ var result = get_int(this_0);
3312
+ var tmp0_elvis_lhs = (-32768 <= result ? result <= 32767 : false) ? toShort(result) : null;
3313
+ var tmp;
3314
+ if (tmp0_elvis_lhs == null) {
3315
+ unparsedPrimitive(this, 'short');
3316
+ } else {
3317
+ tmp = tmp0_elvis_lhs;
3318
+ }
3319
+ tmp$ret$1 = tmp;
3320
+ break $l$block;
3321
+ } catch ($p) {
3322
+ if ($p instanceof IllegalArgumentException) {
3323
+ var e = $p;
3324
+ unparsedPrimitive(this, 'short');
3325
+ } else {
3326
+ throw $p;
3327
+ }
3328
+ }
3329
+ }
3330
+ return tmp$ret$1;
3331
+ };
3332
+ protoOf(AbstractJsonTreeDecoder).v4o = function (tag) {
3333
+ return this.x54((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3334
+ };
3335
+ protoOf(AbstractJsonTreeDecoder).y54 = function (tag) {
3336
+ var tmp$ret$1;
3337
+ $l$block: {
3338
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3339
+ var this_0 = this.s54(tag);
3340
+ try {
3341
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedInt.<anonymous>' call
3342
+ var tmp0_elvis_lhs = get_int(this_0);
3343
+ var tmp;
3344
+ if (tmp0_elvis_lhs == null) {
3345
+ unparsedPrimitive(this, 'int');
3346
+ } else {
3347
+ tmp = tmp0_elvis_lhs;
3348
+ }
3349
+ tmp$ret$1 = tmp;
3350
+ break $l$block;
3351
+ } catch ($p) {
3352
+ if ($p instanceof IllegalArgumentException) {
3353
+ var e = $p;
3354
+ unparsedPrimitive(this, 'int');
3355
+ } else {
3356
+ throw $p;
3357
+ }
3358
+ }
3359
+ }
3360
+ return tmp$ret$1;
3361
+ };
3362
+ protoOf(AbstractJsonTreeDecoder).w4o = function (tag) {
3363
+ return this.y54((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3364
+ };
3365
+ protoOf(AbstractJsonTreeDecoder).z54 = function (tag) {
3366
+ var tmp$ret$1;
3367
+ $l$block: {
3368
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3369
+ var this_0 = this.s54(tag);
3370
+ try {
3371
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedLong.<anonymous>' call
3372
+ var tmp0_elvis_lhs = get_long(this_0);
3373
+ var tmp;
3374
+ if (tmp0_elvis_lhs == null) {
3375
+ unparsedPrimitive(this, 'long');
3376
+ } else {
3377
+ tmp = tmp0_elvis_lhs;
3378
+ }
3379
+ tmp$ret$1 = tmp;
3380
+ break $l$block;
3381
+ } catch ($p) {
3382
+ if ($p instanceof IllegalArgumentException) {
3383
+ var e = $p;
3384
+ unparsedPrimitive(this, 'long');
3385
+ } else {
3386
+ throw $p;
3387
+ }
3388
+ }
3389
+ }
3390
+ return tmp$ret$1;
3391
+ };
3392
+ protoOf(AbstractJsonTreeDecoder).x4o = function (tag) {
3393
+ return this.z54((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3394
+ };
3395
+ protoOf(AbstractJsonTreeDecoder).a55 = function (tag) {
3396
+ var tmp$ret$1;
3397
+ $l$block: {
3398
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3399
+ var this_0 = this.s54(tag);
3400
+ try {
3401
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedFloat.<anonymous>' call
3402
+ var tmp0_elvis_lhs = get_float(this_0);
3403
+ var tmp;
3404
+ if (tmp0_elvis_lhs == null) {
3405
+ unparsedPrimitive(this, 'float');
3406
+ } else {
3407
+ tmp = tmp0_elvis_lhs;
3408
+ }
3409
+ tmp$ret$1 = tmp;
3410
+ break $l$block;
3411
+ } catch ($p) {
3412
+ if ($p instanceof IllegalArgumentException) {
3413
+ var e = $p;
3414
+ unparsedPrimitive(this, 'float');
3415
+ } else {
3416
+ throw $p;
3417
+ }
3418
+ }
3419
+ }
3420
+ var result = tmp$ret$1;
3421
+ var specialFp = this.o4y().r4w_1.j4y_1;
3422
+ if (specialFp || isFinite(result))
3423
+ return result;
3424
+ throw InvalidFloatingPointDecoded(result, tag, toString(this.q54()));
3425
+ };
3426
+ protoOf(AbstractJsonTreeDecoder).y4o = function (tag) {
3427
+ return this.a55((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3428
+ };
3429
+ protoOf(AbstractJsonTreeDecoder).b55 = function (tag) {
3430
+ var tmp$ret$1;
3431
+ $l$block: {
3432
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3433
+ var this_0 = this.s54(tag);
3434
+ try {
3435
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedDouble.<anonymous>' call
3436
+ var tmp0_elvis_lhs = get_double(this_0);
3437
+ var tmp;
3438
+ if (tmp0_elvis_lhs == null) {
3439
+ unparsedPrimitive(this, 'double');
3440
+ } else {
3441
+ tmp = tmp0_elvis_lhs;
3442
+ }
3443
+ tmp$ret$1 = tmp;
3444
+ break $l$block;
3445
+ } catch ($p) {
3446
+ if ($p instanceof IllegalArgumentException) {
3447
+ var e = $p;
3448
+ unparsedPrimitive(this, 'double');
3449
+ } else {
3450
+ throw $p;
3451
+ }
3452
+ }
3453
+ }
3454
+ var result = tmp$ret$1;
3455
+ var specialFp = this.o4y().r4w_1.j4y_1;
3456
+ if (specialFp || isFinite_0(result))
3457
+ return result;
3458
+ throw InvalidFloatingPointDecoded(result, tag, toString(this.q54()));
3459
+ };
3460
+ protoOf(AbstractJsonTreeDecoder).z4o = function (tag) {
3461
+ return this.b55((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3462
+ };
3463
+ protoOf(AbstractJsonTreeDecoder).c55 = function (tag) {
3464
+ var tmp$ret$1;
3465
+ $l$block: {
3466
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3467
+ var this_0 = this.s54(tag);
3468
+ try {
3469
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedChar.<anonymous>' call
3470
+ var tmp0_elvis_lhs = new Char(single(this_0.m30()));
3471
+ var tmp;
3472
+ if (tmp0_elvis_lhs == null) {
3473
+ unparsedPrimitive(this, 'char');
3474
+ } else {
3475
+ tmp = tmp0_elvis_lhs;
3476
+ }
3477
+ tmp$ret$1 = tmp.g1_1;
3478
+ break $l$block;
3479
+ } catch ($p) {
3480
+ if ($p instanceof IllegalArgumentException) {
3481
+ var e = $p;
3482
+ unparsedPrimitive(this, 'char');
3483
+ } else {
3484
+ throw $p;
3485
+ }
3486
+ }
3487
+ }
3488
+ return tmp$ret$1;
3489
+ };
3490
+ protoOf(AbstractJsonTreeDecoder).a4p = function (tag) {
3491
+ return this.c55((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3492
+ };
3493
+ protoOf(AbstractJsonTreeDecoder).d55 = function (tag) {
3494
+ var value = this.s54(tag);
3495
+ if (!this.o4y().r4w_1.b4y_1) {
3496
+ var literal = asLiteral(value, this, 'string');
3497
+ if (!literal.v4y_1)
3498
+ throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted.\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.q54()));
3499
+ }
3500
+ if (value instanceof JsonNull)
3501
+ throw JsonDecodingException_0(-1, "Unexpected 'null' value instead of string literal", toString(this.q54()));
3502
+ return value.m30();
3503
+ };
3504
+ protoOf(AbstractJsonTreeDecoder).b4p = function (tag) {
3505
+ return this.d55((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3506
+ };
3507
+ protoOf(AbstractJsonTreeDecoder).e55 = function (tag, inlineDescriptor) {
3508
+ return get_isUnsignedNumber(inlineDescriptor) ? new JsonDecoderForUnsignedTypes(new StringJsonLexer(this.s54(tag).m30()), this.o4y()) : protoOf(NamedValueDecoder).d4p.call(this, tag, inlineDescriptor);
3509
+ };
3510
+ protoOf(AbstractJsonTreeDecoder).d4p = function (tag, inlineDescriptor) {
3511
+ return this.e55((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
3512
+ };
3513
+ protoOf(AbstractJsonTreeDecoder).i4a = function (descriptor) {
3514
+ return !(this.p4o() == null) ? protoOf(NamedValueDecoder).i4a.call(this, descriptor) : (new JsonPrimitiveDecoder(this.o4y(), this.u())).i4a(descriptor);
3515
+ };
3516
+ function coerceInputValue_0($this, descriptor, index, tag) {
3517
+ var tmp$ret$1;
3518
+ $l$block_2: {
3519
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
3520
+ var this_0 = $this.o4y();
3521
+ var elementDescriptor = descriptor.u48(index);
3522
+ var tmp;
3523
+ if (!elementDescriptor.l48()) {
3524
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
3525
+ var tmp_0 = $this.r54(tag);
3526
+ tmp = tmp_0 instanceof JsonNull;
3527
+ } else {
3528
+ tmp = false;
3529
+ }
3530
+ if (tmp) {
3531
+ tmp$ret$1 = true;
3532
+ break $l$block_2;
3533
+ }
3534
+ if (equals(elementDescriptor.s48(), ENUM_getInstance())) {
3535
+ var tmp_1;
3536
+ if (elementDescriptor.l48()) {
3537
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
3538
+ var tmp_2 = $this.r54(tag);
3539
+ tmp_1 = tmp_2 instanceof JsonNull;
3540
+ } else {
3541
+ tmp_1 = false;
3542
+ }
3543
+ if (tmp_1) {
3544
+ tmp$ret$1 = false;
3545
+ break $l$block_2;
3546
+ }
3547
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
3548
+ var tmp_3 = $this.r54(tag);
3549
+ var tmp0_safe_receiver = tmp_3 instanceof JsonPrimitive ? tmp_3 : null;
3550
+ var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
3551
+ var tmp_4;
3552
+ if (tmp0_elvis_lhs == null) {
3553
+ tmp$ret$1 = false;
3554
+ break $l$block_2;
3555
+ } else {
3556
+ tmp_4 = tmp0_elvis_lhs;
3557
+ }
3558
+ var enumValue = tmp_4;
3559
+ var enumIndex = getJsonNameIndex(elementDescriptor, this_0, enumValue);
3560
+ if (enumIndex === -3) {
3561
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue.<anonymous>' call
3562
+ tmp$ret$1 = true;
3563
+ break $l$block_2;
3564
+ }
3565
+ }
3566
+ tmp$ret$1 = false;
3567
+ }
3568
+ return tmp$ret$1;
3569
+ }
3570
+ function absenceIsNull($this, descriptor, index) {
3571
+ $this.o55_1 = (!$this.o4y().r4w_1.e4y_1 && !descriptor.x48(index) && descriptor.u48(index).l48());
3572
+ return $this.o55_1;
3573
+ }
3574
+ function JsonTreeDecoder(json, value, polyDiscriminator, polyDescriptor) {
3575
+ polyDiscriminator = polyDiscriminator === VOID ? null : polyDiscriminator;
3576
+ polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
3577
+ AbstractJsonTreeDecoder.call(this, json, value);
3578
+ this.k55_1 = value;
3579
+ this.l55_1 = polyDiscriminator;
3580
+ this.m55_1 = polyDescriptor;
3581
+ this.n55_1 = 0;
3582
+ this.o55_1 = false;
3583
+ }
3584
+ protoOf(JsonTreeDecoder).u = function () {
3585
+ return this.k55_1;
3586
+ };
3587
+ protoOf(JsonTreeDecoder).b4b = function (descriptor) {
3588
+ while (this.n55_1 < descriptor.q48()) {
3589
+ var tmp1 = this.n55_1;
3590
+ this.n55_1 = tmp1 + 1 | 0;
3591
+ var name = this.k4o(descriptor, tmp1);
3592
+ var index = this.n55_1 - 1 | 0;
3593
+ this.o55_1 = false;
3594
+ var tmp;
3595
+ var tmp_0;
3596
+ // Inline function 'kotlin.collections.contains' call
3597
+ // Inline function 'kotlin.collections.containsKey' call
3598
+ var this_0 = this.u();
3599
+ if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2(name)) {
3600
+ tmp_0 = true;
3601
+ } else {
3602
+ tmp_0 = absenceIsNull(this, descriptor, index);
3603
+ }
3604
+ if (tmp_0) {
3605
+ tmp = !this.p54_1.g4y_1 || !coerceInputValue_0(this, descriptor, index, name);
3606
+ } else {
3607
+ tmp = false;
3608
+ }
3609
+ if (tmp) {
3610
+ return index;
3611
+ }
3612
+ }
3613
+ return -1;
3614
+ };
3615
+ protoOf(JsonTreeDecoder).w49 = function () {
3616
+ return !this.o55_1 && protoOf(AbstractJsonTreeDecoder).w49.call(this);
3617
+ };
3618
+ protoOf(JsonTreeDecoder).l4o = function (descriptor, index) {
3619
+ var strategy = namingStrategy(descriptor, this.o4y());
3620
+ var baseName = descriptor.w48(index);
3621
+ if (strategy == null) {
3622
+ if (!this.p54_1.k4y_1)
3623
+ return baseName;
3624
+ if (this.u().i2().s1(baseName))
3625
+ return baseName;
3626
+ }
3627
+ var deserializationNamesMap_0 = deserializationNamesMap(this.o4y(), descriptor);
3628
+ // Inline function 'kotlin.collections.find' call
3629
+ var this_0 = this.u().i2();
3630
+ var tmp$ret$1;
3631
+ $l$block: {
3632
+ // Inline function 'kotlin.collections.firstOrNull' call
3633
+ var tmp0_iterator = this_0.j();
3634
+ while (tmp0_iterator.k()) {
3635
+ var element = tmp0_iterator.l();
3636
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.elementName.<anonymous>' call
3637
+ if (deserializationNamesMap_0.h2(element) === index) {
3638
+ tmp$ret$1 = element;
3639
+ break $l$block;
3640
+ }
3641
+ }
3642
+ tmp$ret$1 = null;
3643
+ }
3644
+ var tmp0_safe_receiver = tmp$ret$1;
3645
+ if (tmp0_safe_receiver == null)
3646
+ null;
3647
+ else {
3648
+ // Inline function 'kotlin.let' call
3649
+ // Inline function 'kotlin.contracts.contract' call
3650
+ return tmp0_safe_receiver;
3651
+ }
3652
+ var fallbackName = strategy == null ? null : strategy.i51(descriptor, index, baseName);
3653
+ return fallbackName == null ? baseName : fallbackName;
3654
+ };
3655
+ protoOf(JsonTreeDecoder).r54 = function (tag) {
3656
+ return getValue(this.u(), tag);
3657
+ };
3658
+ protoOf(JsonTreeDecoder).l4a = function (descriptor) {
3659
+ if (descriptor === this.m55_1) {
3660
+ var tmp = this.o4y();
3661
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3662
+ var value = this.q54();
3663
+ var descriptor_0 = this.m55_1;
3664
+ if (!(value instanceof JsonObject)) {
3665
+ throw JsonDecodingException_1(-1, 'Expected ' + toString(getKClass(JsonObject)) + ' as the serialized body of ' + descriptor_0.z47() + ', but had ' + toString(getKClassFromExpression(value)));
3666
+ }
3667
+ return new JsonTreeDecoder(tmp, value, this.l55_1, this.m55_1);
3668
+ }
3669
+ return protoOf(AbstractJsonTreeDecoder).l4a.call(this, descriptor);
3670
+ };
3671
+ protoOf(JsonTreeDecoder).m4a = function (descriptor) {
3672
+ var tmp;
3673
+ if (this.p54_1.a4y_1) {
3674
+ tmp = true;
3675
+ } else {
3676
+ var tmp_0 = descriptor.s48();
3677
+ tmp = tmp_0 instanceof PolymorphicKind;
3678
+ }
3679
+ if (tmp)
3680
+ return Unit_instance;
3681
+ var strategy = namingStrategy(descriptor, this.o4y());
3682
+ var tmp_1;
3683
+ if (strategy == null && !this.p54_1.k4y_1) {
3684
+ tmp_1 = jsonCachedSerialNames(descriptor);
3685
+ } else if (!(strategy == null)) {
3686
+ tmp_1 = deserializationNamesMap(this.o4y(), descriptor).i2();
3687
+ } else {
3688
+ var tmp_2 = jsonCachedSerialNames(descriptor);
3689
+ // Inline function 'kotlin.collections.orEmpty' call
3690
+ var tmp0_safe_receiver = get_schemaCache(this.o4y()).s53(descriptor, get_JsonDeserializationNamesKey());
3691
+ var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i2();
3692
+ var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
3693
+ tmp_1 = plus_0(tmp_2, tmp$ret$0);
3694
+ }
3695
+ var names = tmp_1;
3696
+ var tmp1_iterator = this.u().i2().j();
3697
+ while (tmp1_iterator.k()) {
3698
+ var key = tmp1_iterator.l();
3699
+ if (!names.s1(key) && !(key === this.l55_1)) {
3700
+ throw UnknownKeyException(key, this.u().toString());
3701
+ }
3702
+ }
3703
+ };
3704
+ function JsonTreeListDecoder(json, value) {
3705
+ AbstractJsonTreeDecoder.call(this, json, value);
3706
+ this.u55_1 = value;
3707
+ this.v55_1 = this.u55_1.m();
3708
+ this.w55_1 = -1;
3709
+ }
3710
+ protoOf(JsonTreeListDecoder).u = function () {
3711
+ return this.u55_1;
3712
+ };
3713
+ protoOf(JsonTreeListDecoder).l4o = function (descriptor, index) {
3714
+ return index.toString();
3715
+ };
3716
+ protoOf(JsonTreeListDecoder).r54 = function (tag) {
3717
+ return this.u55_1.o(toInt(tag));
3718
+ };
3719
+ protoOf(JsonTreeListDecoder).b4b = function (descriptor) {
3720
+ while (this.w55_1 < (this.v55_1 - 1 | 0)) {
3721
+ this.w55_1 = this.w55_1 + 1 | 0;
3722
+ return this.w55_1;
3723
+ }
3724
+ return -1;
3725
+ };
3726
+ function JsonPrimitiveDecoder(json, value) {
3727
+ AbstractJsonTreeDecoder.call(this, json, value);
3728
+ this.c56_1 = value;
3729
+ this.e4p('primitive');
3730
+ }
3731
+ protoOf(JsonPrimitiveDecoder).u = function () {
3732
+ return this.c56_1;
3733
+ };
3734
+ protoOf(JsonPrimitiveDecoder).b4b = function (descriptor) {
3735
+ return 0;
3736
+ };
3737
+ protoOf(JsonPrimitiveDecoder).r54 = function (tag) {
3738
+ // Inline function 'kotlin.require' call
3739
+ // Inline function 'kotlin.contracts.contract' call
3740
+ if (!(tag === 'primitive')) {
3741
+ // Inline function 'kotlinx.serialization.json.internal.JsonPrimitiveDecoder.currentElement.<anonymous>' call
3742
+ var message = "This input can only handle primitives with 'primitive' tag";
3743
+ throw IllegalArgumentException_init_$Create$(toString(message));
3744
+ }
3745
+ return this.c56_1;
3746
+ };
3747
+ function JsonTreeMapDecoder(json, value) {
3748
+ JsonTreeDecoder.call(this, json, value);
3749
+ this.n56_1 = value;
3750
+ this.o56_1 = toList(this.n56_1.i2());
3751
+ this.p56_1 = imul(this.o56_1.m(), 2);
3752
+ this.q56_1 = -1;
3753
+ }
3754
+ protoOf(JsonTreeMapDecoder).u = function () {
3755
+ return this.n56_1;
3756
+ };
3757
+ protoOf(JsonTreeMapDecoder).l4o = function (descriptor, index) {
3758
+ var i = index / 2 | 0;
3759
+ return this.o56_1.o(i);
3760
+ };
3761
+ protoOf(JsonTreeMapDecoder).b4b = function (descriptor) {
3762
+ while (this.q56_1 < (this.p56_1 - 1 | 0)) {
3763
+ this.q56_1 = this.q56_1 + 1 | 0;
3764
+ return this.q56_1;
3765
+ }
3766
+ return -1;
3767
+ };
3768
+ protoOf(JsonTreeMapDecoder).r54 = function (tag) {
3769
+ return (this.q56_1 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.n56_1, tag);
3770
+ };
3771
+ protoOf(JsonTreeMapDecoder).m4a = function (descriptor) {
3772
+ };
3773
+ function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) {
3774
+ return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.y46())).k4a(deserializer);
3775
+ }
3776
+ var WriteMode_OBJ_instance;
3777
+ var WriteMode_LIST_instance;
3778
+ var WriteMode_MAP_instance;
3779
+ var WriteMode_POLY_OBJ_instance;
3780
+ function values() {
3781
+ return [WriteMode_OBJ_getInstance(), WriteMode_LIST_getInstance(), WriteMode_MAP_getInstance(), WriteMode_POLY_OBJ_getInstance()];
3782
+ }
3783
+ function get_entries() {
3784
+ if ($ENTRIES == null)
3785
+ $ENTRIES = enumEntries(values());
3786
+ return $ENTRIES;
3787
+ }
3788
+ var WriteMode_entriesInitialized;
3789
+ function WriteMode_initEntries() {
3790
+ if (WriteMode_entriesInitialized)
3791
+ return Unit_instance;
3792
+ WriteMode_entriesInitialized = true;
3793
+ WriteMode_OBJ_instance = new WriteMode('OBJ', 0, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
3794
+ WriteMode_LIST_instance = new WriteMode('LIST', 1, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
3795
+ WriteMode_MAP_instance = new WriteMode('MAP', 2, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
3796
+ WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
3797
+ }
3798
+ var $ENTRIES;
3799
+ function WriteMode(name, ordinal, begin, end) {
3800
+ Enum.call(this, name, ordinal);
3801
+ this.f54_1 = begin;
3802
+ this.g54_1 = end;
3803
+ }
3804
+ function switchMode(_this__u8e3s4, desc) {
3805
+ var tmp0_subject = desc.s48();
3806
+ var tmp;
3807
+ if (tmp0_subject instanceof PolymorphicKind) {
3808
+ tmp = WriteMode_POLY_OBJ_getInstance();
3809
+ } else {
3810
+ if (equals(tmp0_subject, LIST_getInstance())) {
3811
+ tmp = WriteMode_LIST_getInstance();
3812
+ } else {
3813
+ if (equals(tmp0_subject, MAP_getInstance())) {
3814
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
3815
+ var keyDescriptor = carrierDescriptor(desc.u48(0), _this__u8e3s4.d48());
3816
+ var keyKind = keyDescriptor.s48();
3817
+ var tmp_0;
3818
+ var tmp_1;
3819
+ if (keyKind instanceof PrimitiveKind) {
3820
+ tmp_1 = true;
3821
+ } else {
3822
+ tmp_1 = equals(keyKind, ENUM_getInstance());
3823
+ }
3824
+ if (tmp_1) {
3825
+ // Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
3826
+ tmp_0 = WriteMode_MAP_getInstance();
3827
+ } else {
3828
+ if (_this__u8e3s4.r4w_1.c4y_1) {
3829
+ // Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
3830
+ tmp_0 = WriteMode_LIST_getInstance();
3831
+ } else {
3832
+ throw InvalidKeyKindException(keyDescriptor);
3833
+ }
3834
+ }
3835
+ tmp = tmp_0;
3836
+ } else {
3837
+ tmp = WriteMode_OBJ_getInstance();
3838
+ }
3839
+ }
3840
+ }
3841
+ return tmp;
3842
+ }
3843
+ function carrierDescriptor(_this__u8e3s4, module_0) {
3844
+ var tmp;
3845
+ if (equals(_this__u8e3s4.s48(), CONTEXTUAL_getInstance())) {
3846
+ var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
3847
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
3848
+ tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
3849
+ } else if (_this__u8e3s4.r48()) {
3850
+ tmp = carrierDescriptor(_this__u8e3s4.u48(0), module_0);
3851
+ } else {
3852
+ tmp = _this__u8e3s4;
3853
+ }
3854
+ return tmp;
3855
+ }
3856
+ function WriteMode_OBJ_getInstance() {
3857
+ WriteMode_initEntries();
3858
+ return WriteMode_OBJ_instance;
3859
+ }
3860
+ function WriteMode_LIST_getInstance() {
3861
+ WriteMode_initEntries();
3862
+ return WriteMode_LIST_instance;
3863
+ }
3864
+ function WriteMode_MAP_getInstance() {
3865
+ WriteMode_initEntries();
3866
+ return WriteMode_MAP_instance;
3867
+ }
3868
+ function WriteMode_POLY_OBJ_getInstance() {
3869
+ WriteMode_initEntries();
3870
+ return WriteMode_POLY_OBJ_instance;
3871
+ }
3872
+ function appendEscape($this, lastPosition, current) {
3873
+ $this.r56(lastPosition, current);
3874
+ return appendEsc($this, current + 1 | 0);
3875
+ }
3876
+ function decodedString($this, lastPosition, currentPosition) {
3877
+ $this.r56(lastPosition, currentPosition);
3878
+ var result = $this.g4x_1.toString();
3879
+ $this.g4x_1.zb(0);
3880
+ return result;
3881
+ }
3882
+ function takePeeked($this) {
3883
+ // Inline function 'kotlin.also' call
3884
+ var this_0 = ensureNotNull($this.f4x_1);
3885
+ // Inline function 'kotlin.contracts.contract' call
3886
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.takePeeked.<anonymous>' call
3887
+ $this.f4x_1 = null;
3888
+ return this_0;
3889
+ }
3890
+ function wasUnquotedString($this) {
3891
+ return !(charSequenceGet($this.s56(), $this.d4x_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
3892
+ }
3893
+ function appendEsc($this, startPosition) {
3894
+ var currentPosition = startPosition;
3895
+ currentPosition = $this.t56(currentPosition);
3896
+ if (currentPosition === -1) {
3897
+ $this.e51('Expected escape sequence to continue, got EOF');
3898
+ }
3899
+ var tmp = $this.s56();
3900
+ var tmp0 = currentPosition;
3901
+ currentPosition = tmp0 + 1 | 0;
3902
+ var currentChar = charSequenceGet(tmp, tmp0);
3903
+ if (currentChar === _Char___init__impl__6a9atx(117)) {
3904
+ return appendHex($this, $this.s56(), currentPosition);
3905
+ }
3906
+ // Inline function 'kotlin.code' call
3907
+ var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
3908
+ var c = escapeToChar(tmp$ret$0);
3909
+ if (c === _Char___init__impl__6a9atx(0)) {
3910
+ $this.e51("Invalid escaped char '" + toString_1(currentChar) + "'");
3911
+ }
3912
+ $this.g4x_1.j8(c);
3913
+ return currentPosition;
3914
+ }
3915
+ function appendHex($this, source, startPos) {
3916
+ if ((startPos + 4 | 0) >= charSequenceLength(source)) {
3917
+ $this.d4x_1 = startPos;
3918
+ $this.u56();
3919
+ if (($this.d4x_1 + 4 | 0) >= charSequenceLength(source)) {
3920
+ $this.e51('Unexpected EOF during unicode escape');
3921
+ }
3922
+ return appendHex($this, source, $this.d4x_1);
3923
+ }
3924
+ $this.g4x_1.j8(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));
3925
+ return startPos + 4 | 0;
3926
+ }
3927
+ function fromHexChar($this, source, currentPosition) {
3928
+ var character = charSequenceGet(source, currentPosition);
3929
+ var tmp;
3930
+ if (_Char___init__impl__6a9atx(48) <= character ? character <= _Char___init__impl__6a9atx(57) : false) {
3931
+ // Inline function 'kotlin.code' call
3932
+ var tmp_0 = Char__toInt_impl_vasixd(character);
3933
+ // Inline function 'kotlin.code' call
3934
+ var this_0 = _Char___init__impl__6a9atx(48);
3935
+ tmp = tmp_0 - Char__toInt_impl_vasixd(this_0) | 0;
3936
+ } else if (_Char___init__impl__6a9atx(97) <= character ? character <= _Char___init__impl__6a9atx(102) : false) {
3937
+ // Inline function 'kotlin.code' call
3938
+ var tmp_1 = Char__toInt_impl_vasixd(character);
3939
+ // Inline function 'kotlin.code' call
3940
+ var this_1 = _Char___init__impl__6a9atx(97);
3941
+ tmp = (tmp_1 - Char__toInt_impl_vasixd(this_1) | 0) + 10 | 0;
3942
+ } else if (_Char___init__impl__6a9atx(65) <= character ? character <= _Char___init__impl__6a9atx(70) : false) {
3943
+ // Inline function 'kotlin.code' call
3944
+ var tmp_2 = Char__toInt_impl_vasixd(character);
3945
+ // Inline function 'kotlin.code' call
3946
+ var this_2 = _Char___init__impl__6a9atx(65);
3947
+ tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
3948
+ } else {
3949
+ $this.e51("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
3950
+ }
3951
+ return tmp;
3952
+ }
3953
+ function consumeBoolean2($this, start) {
3954
+ var current = $this.t56(start);
3955
+ if (current >= charSequenceLength($this.s56()) || current === -1) {
3956
+ $this.e51('EOF');
3957
+ }
3958
+ // Inline function 'kotlin.code' call
3959
+ var tmp = $this.s56();
3960
+ var tmp0 = current;
3961
+ current = tmp0 + 1 | 0;
3962
+ var this_0 = charSequenceGet(tmp, tmp0);
3963
+ var tmp1_subject = Char__toInt_impl_vasixd(this_0) | 32;
3964
+ var tmp_0;
3965
+ // Inline function 'kotlin.code' call
3966
+ var this_1 = _Char___init__impl__6a9atx(116);
3967
+ if (tmp1_subject === Char__toInt_impl_vasixd(this_1)) {
3968
+ consumeBooleanLiteral($this, 'rue', current);
3969
+ tmp_0 = true;
3970
+ } else {
3971
+ // Inline function 'kotlin.code' call
3972
+ var this_2 = _Char___init__impl__6a9atx(102);
3973
+ if (tmp1_subject === Char__toInt_impl_vasixd(this_2)) {
3974
+ consumeBooleanLiteral($this, 'alse', current);
3975
+ tmp_0 = false;
3976
+ } else {
3977
+ $this.e51("Expected valid boolean literal prefix, but had '" + $this.i52() + "'");
3978
+ }
3979
+ }
3980
+ return tmp_0;
3981
+ }
3982
+ function consumeBooleanLiteral($this, literalSuffix, current) {
3983
+ if ((charSequenceLength($this.s56()) - current | 0) < literalSuffix.length) {
3984
+ $this.e51('Unexpected end of boolean literal');
3985
+ }
3986
+ var inductionVariable = 0;
3987
+ var last = charSequenceLength(literalSuffix) - 1 | 0;
3988
+ if (inductionVariable <= last)
3989
+ do {
3990
+ var i = inductionVariable;
3991
+ inductionVariable = inductionVariable + 1 | 0;
3992
+ var expected = charSequenceGet(literalSuffix, i);
3993
+ var actual = charSequenceGet($this.s56(), current + i | 0);
3994
+ // Inline function 'kotlin.code' call
3995
+ var tmp = Char__toInt_impl_vasixd(expected);
3996
+ // Inline function 'kotlin.code' call
3997
+ if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
3998
+ $this.e51("Expected valid boolean literal prefix, but had '" + $this.i52() + "'");
3999
+ }
4000
+ }
4001
+ while (inductionVariable <= last);
4002
+ $this.d4x_1 = current + literalSuffix.length | 0;
4003
+ }
4004
+ function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive) {
4005
+ var tmp;
4006
+ switch (isExponentPositive) {
4007
+ case false:
4008
+ // Inline function 'kotlin.math.pow' call
4009
+
4010
+ var x = -exponentAccumulator.o3();
4011
+ tmp = Math.pow(10.0, x);
4012
+ break;
4013
+ case true:
4014
+ // Inline function 'kotlin.math.pow' call
4015
+
4016
+ var x_0 = exponentAccumulator.o3();
4017
+ tmp = Math.pow(10.0, x_0);
4018
+ break;
4019
+ default:
4020
+ noWhenBranchMatchedException();
4021
+ break;
4022
+ }
4023
+ return tmp;
4024
+ }
4025
+ function AbstractJsonLexer() {
4026
+ this.d4x_1 = 0;
4027
+ this.e4x_1 = new JsonPath();
4028
+ this.f4x_1 = null;
4029
+ this.g4x_1 = StringBuilder_init_$Create$();
4030
+ }
4031
+ protoOf(AbstractJsonLexer).u56 = function () {
4032
+ };
4033
+ protoOf(AbstractJsonLexer).v56 = function (c) {
4034
+ 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;
4035
+ };
4036
+ protoOf(AbstractJsonLexer).h4x = function () {
4037
+ var nextToken = this.k52();
4038
+ if (!(nextToken === 10)) {
4039
+ this.e51('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.s56(), this.d4x_1 - 1 | 0)) + ' instead');
4040
+ }
4041
+ };
4042
+ protoOf(AbstractJsonLexer).e52 = function (expected) {
4043
+ var token = this.k52();
4044
+ if (!(token === expected)) {
4045
+ this.w56(expected);
4046
+ }
4047
+ return token;
4048
+ };
4049
+ protoOf(AbstractJsonLexer).u53 = function (expected) {
4050
+ this.u56();
4051
+ var source = this.s56();
4052
+ var cpos = this.d4x_1;
4053
+ $l$loop_0: while (true) {
4054
+ cpos = this.t56(cpos);
4055
+ if (cpos === -1)
4056
+ break $l$loop_0;
4057
+ var tmp0 = cpos;
4058
+ cpos = tmp0 + 1 | 0;
4059
+ var c = charSequenceGet(source, tmp0);
4060
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9))
4061
+ continue $l$loop_0;
4062
+ this.d4x_1 = cpos;
4063
+ if (c === expected)
4064
+ return Unit_instance;
4065
+ this.x56(expected);
4066
+ }
4067
+ this.d4x_1 = cpos;
4068
+ this.x56(expected);
4069
+ };
4070
+ protoOf(AbstractJsonLexer).x56 = function (expected) {
4071
+ if (this.d4x_1 > 0 && expected === _Char___init__impl__6a9atx(34)) {
4072
+ var tmp$ret$1;
4073
+ $l$block: {
4074
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.withPositionRollback' call
4075
+ var snapshot = this.d4x_1;
4076
+ try {
4077
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken.<anonymous>' call
4078
+ this.d4x_1 = this.d4x_1 - 1 | 0;
4079
+ tmp$ret$1 = this.i52();
4080
+ break $l$block;
4081
+ }finally {
4082
+ this.d4x_1 = snapshot;
4083
+ }
4084
+ }
4085
+ var inputLiteral = tmp$ret$1;
4086
+ if (inputLiteral === 'null') {
4087
+ this.d51("Expected string literal but 'null' literal was found", this.d4x_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls to default values.");
4088
+ }
4089
+ }
4090
+ this.w56(charToTokenClass(expected));
4091
+ };
4092
+ protoOf(AbstractJsonLexer).y56 = function (expectedToken, wasConsumed) {
4093
+ var expected = tokenDescription(expectedToken);
4094
+ var position = wasConsumed ? this.d4x_1 - 1 | 0 : this.d4x_1;
4095
+ var s = this.d4x_1 === charSequenceLength(this.s56()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.s56(), position));
4096
+ this.e51('Expected ' + expected + ", but had '" + s + "' instead", position);
4097
+ };
4098
+ protoOf(AbstractJsonLexer).w56 = function (expectedToken, wasConsumed, $super) {
4099
+ wasConsumed = wasConsumed === VOID ? true : wasConsumed;
4100
+ return $super === VOID ? this.y56(expectedToken, wasConsumed) : $super.y56.call(this, expectedToken, wasConsumed);
4101
+ };
4102
+ protoOf(AbstractJsonLexer).f52 = function () {
4103
+ var source = this.s56();
4104
+ var cpos = this.d4x_1;
4105
+ $l$loop_0: while (true) {
4106
+ cpos = this.t56(cpos);
4107
+ if (cpos === -1)
4108
+ break $l$loop_0;
4109
+ var ch = charSequenceGet(source, cpos);
4110
+ if (ch === _Char___init__impl__6a9atx(32) || ch === _Char___init__impl__6a9atx(10) || ch === _Char___init__impl__6a9atx(13) || ch === _Char___init__impl__6a9atx(9)) {
4111
+ cpos = cpos + 1 | 0;
4112
+ continue $l$loop_0;
4113
+ }
4114
+ this.d4x_1 = cpos;
4115
+ return charToTokenClass(ch);
4116
+ }
4117
+ this.d4x_1 = cpos;
4118
+ return 10;
4119
+ };
4120
+ protoOf(AbstractJsonLexer).w53 = function (doConsume) {
4121
+ var current = this.z56();
4122
+ current = this.t56(current);
4123
+ var len = charSequenceLength(this.s56()) - current | 0;
4124
+ if (len < 4 || current === -1)
4125
+ return false;
4126
+ var inductionVariable = 0;
4127
+ if (inductionVariable <= 3)
4128
+ do {
4129
+ var i = inductionVariable;
4130
+ inductionVariable = inductionVariable + 1 | 0;
4131
+ if (!(charSequenceGet('null', i) === charSequenceGet(this.s56(), current + i | 0)))
4132
+ return false;
4133
+ }
4134
+ while (inductionVariable <= 3);
4135
+ if (len > 4 && charToTokenClass(charSequenceGet(this.s56(), current + 4 | 0)) === 0)
4136
+ return false;
4137
+ if (doConsume) {
4138
+ this.d4x_1 = current + 4 | 0;
4139
+ }
4140
+ return true;
4141
+ };
4142
+ protoOf(AbstractJsonLexer).h54 = function (doConsume, $super) {
4143
+ doConsume = doConsume === VOID ? true : doConsume;
4144
+ return $super === VOID ? this.w53(doConsume) : $super.w53.call(this, doConsume);
4145
+ };
4146
+ protoOf(AbstractJsonLexer).z56 = function () {
4147
+ var current = this.d4x_1;
4148
+ $l$loop_0: while (true) {
4149
+ current = this.t56(current);
4150
+ if (current === -1)
4151
+ break $l$loop_0;
4152
+ var c = charSequenceGet(this.s56(), current);
4153
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9)) {
4154
+ current = current + 1 | 0;
4155
+ } else {
4156
+ break $l$loop_0;
4157
+ }
4158
+ }
4159
+ this.d4x_1 = current;
4160
+ return current;
4161
+ };
4162
+ protoOf(AbstractJsonLexer).x53 = function (isLenient) {
4163
+ var token = this.f52();
4164
+ var tmp;
4165
+ if (isLenient) {
4166
+ if (!(token === 1) && !(token === 0))
4167
+ return null;
4168
+ tmp = this.i52();
4169
+ } else {
4170
+ if (!(token === 1))
4171
+ return null;
4172
+ tmp = this.h52();
4173
+ }
4174
+ var string = tmp;
4175
+ this.f4x_1 = string;
4176
+ return string;
4177
+ };
4178
+ protoOf(AbstractJsonLexer).a57 = function () {
4179
+ this.f4x_1 = null;
4180
+ };
4181
+ protoOf(AbstractJsonLexer).b57 = function (startPos, endPos) {
4182
+ // Inline function 'kotlin.text.substring' call
4183
+ var this_0 = this.s56();
4184
+ return toString(charSequenceSubSequence(this_0, startPos, endPos));
4185
+ };
4186
+ protoOf(AbstractJsonLexer).h52 = function () {
4187
+ if (!(this.f4x_1 == null)) {
4188
+ return takePeeked(this);
4189
+ }
4190
+ return this.a54();
4191
+ };
4192
+ protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) {
4193
+ var currentPosition = current;
4194
+ var lastPosition = startPosition;
4195
+ var char = charSequenceGet(source, currentPosition);
4196
+ var usedAppend = false;
4197
+ while (!(char === _Char___init__impl__6a9atx(34))) {
4198
+ if (char === _Char___init__impl__6a9atx(92)) {
4199
+ usedAppend = true;
4200
+ currentPosition = this.t56(appendEscape(this, lastPosition, currentPosition));
4201
+ if (currentPosition === -1) {
4202
+ this.e51('Unexpected EOF', currentPosition);
4203
+ }
4204
+ lastPosition = currentPosition;
4205
+ } else {
4206
+ currentPosition = currentPosition + 1 | 0;
4207
+ if (currentPosition >= charSequenceLength(source)) {
4208
+ usedAppend = true;
4209
+ this.r56(lastPosition, currentPosition);
4210
+ currentPosition = this.t56(currentPosition);
4211
+ if (currentPosition === -1) {
4212
+ this.e51('Unexpected EOF', currentPosition);
4213
+ }
4214
+ lastPosition = currentPosition;
4215
+ }
4216
+ }
4217
+ char = charSequenceGet(source, currentPosition);
4218
+ }
4219
+ var tmp;
4220
+ if (!usedAppend) {
4221
+ tmp = this.b57(lastPosition, currentPosition);
4222
+ } else {
4223
+ tmp = decodedString(this, lastPosition, currentPosition);
4224
+ }
4225
+ var string = tmp;
4226
+ this.d4x_1 = currentPosition + 1 | 0;
4227
+ return string;
4228
+ };
4229
+ protoOf(AbstractJsonLexer).b54 = function () {
4230
+ var result = this.i52();
4231
+ if (result === 'null' && wasUnquotedString(this)) {
4232
+ this.e51("Unexpected 'null' value instead of string literal");
4233
+ }
4234
+ return result;
4235
+ };
4236
+ protoOf(AbstractJsonLexer).i52 = function () {
4237
+ if (!(this.f4x_1 == null)) {
4238
+ return takePeeked(this);
4239
+ }
4240
+ var current = this.z56();
4241
+ if (current >= charSequenceLength(this.s56()) || current === -1) {
4242
+ this.e51('EOF', current);
4243
+ }
4244
+ var token = charToTokenClass(charSequenceGet(this.s56(), current));
4245
+ if (token === 1) {
4246
+ return this.h52();
4247
+ }
4248
+ if (!(token === 0)) {
4249
+ this.e51('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.s56(), current)));
4250
+ }
4251
+ var usedAppend = false;
4252
+ while (charToTokenClass(charSequenceGet(this.s56(), current)) === 0) {
4253
+ current = current + 1 | 0;
4254
+ if (current >= charSequenceLength(this.s56())) {
4255
+ usedAppend = true;
4256
+ this.r56(this.d4x_1, current);
4257
+ var eof = this.t56(current);
4258
+ if (eof === -1) {
4259
+ this.d4x_1 = current;
4260
+ return decodedString(this, 0, 0);
4261
+ } else {
4262
+ current = eof;
4263
+ }
4264
+ }
4265
+ }
4266
+ var tmp;
4267
+ if (!usedAppend) {
4268
+ tmp = this.b57(this.d4x_1, current);
4269
+ } else {
4270
+ tmp = decodedString(this, this.d4x_1, current);
4271
+ }
4272
+ var result = tmp;
4273
+ this.d4x_1 = current;
4274
+ return result;
4275
+ };
4276
+ protoOf(AbstractJsonLexer).r56 = function (fromIndex, toIndex) {
4277
+ this.g4x_1.ub(this.s56(), fromIndex, toIndex);
4278
+ };
4279
+ protoOf(AbstractJsonLexer).z53 = function (allowLenientStrings) {
4280
+ // Inline function 'kotlin.collections.mutableListOf' call
4281
+ var tokenStack = ArrayList_init_$Create$();
4282
+ var lastToken = this.f52();
4283
+ if (!(lastToken === 8) && !(lastToken === 6)) {
4284
+ this.i52();
4285
+ return Unit_instance;
4286
+ }
4287
+ $l$loop: while (true) {
4288
+ lastToken = this.f52();
4289
+ if (lastToken === 1) {
4290
+ if (allowLenientStrings) {
4291
+ this.i52();
4292
+ } else {
4293
+ this.a54();
4294
+ }
4295
+ continue $l$loop;
4296
+ }
4297
+ var tmp0_subject = lastToken;
4298
+ if (tmp0_subject === 8 ? true : tmp0_subject === 6) {
4299
+ tokenStack.e(lastToken);
4300
+ } else if (tmp0_subject === 9) {
4301
+ if (!(last(tokenStack) === 8))
4302
+ throw JsonDecodingException_0(this.d4x_1, 'found ] instead of } at path: ' + this.e4x_1.toString(), this.s56());
4303
+ removeLast(tokenStack);
4304
+ } else if (tmp0_subject === 7) {
4305
+ if (!(last(tokenStack) === 6))
4306
+ throw JsonDecodingException_0(this.d4x_1, 'found } instead of ] at path: ' + this.e4x_1.toString(), this.s56());
4307
+ removeLast(tokenStack);
4308
+ } else if (tmp0_subject === 10) {
4309
+ this.e51('Unexpected end of input due to malformed JSON during ignoring unknown keys');
4310
+ }
4311
+ this.k52();
4312
+ if (tokenStack.m() === 0)
4313
+ return Unit_instance;
4314
+ }
4315
+ };
4316
+ protoOf(AbstractJsonLexer).toString = function () {
4317
+ return "JsonReader(source='" + toString(this.s56()) + "', currentPosition=" + this.d4x_1 + ')';
4318
+ };
4319
+ protoOf(AbstractJsonLexer).y53 = function (key) {
4320
+ var processed = this.b57(0, this.d4x_1);
4321
+ var lastIndexOf_0 = lastIndexOf(processed, key);
4322
+ this.d51("Encountered an unknown key '" + key + "'", lastIndexOf_0, "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.");
4323
+ };
4324
+ protoOf(AbstractJsonLexer).d51 = function (message, position, hint) {
4325
+ var tmp;
4326
+ // Inline function 'kotlin.text.isEmpty' call
4327
+ if (charSequenceLength(hint) === 0) {
4328
+ tmp = '';
4329
+ } else {
4330
+ tmp = '\n' + hint;
4331
+ }
4332
+ var hintMessage = tmp;
4333
+ throw JsonDecodingException_0(position, message + ' at path: ' + this.e4x_1.r51() + hintMessage, this.s56());
4334
+ };
4335
+ protoOf(AbstractJsonLexer).e51 = function (message, position, hint, $super) {
4336
+ position = position === VOID ? this.d4x_1 : position;
4337
+ hint = hint === VOID ? '' : hint;
4338
+ return $super === VOID ? this.d51(message, position, hint) : $super.d51.call(this, message, position, hint);
4339
+ };
4340
+ protoOf(AbstractJsonLexer).d4z = function () {
4341
+ var current = this.z56();
4342
+ current = this.t56(current);
4343
+ if (current >= charSequenceLength(this.s56()) || current === -1) {
4344
+ this.e51('EOF');
4345
+ }
4346
+ var tmp;
4347
+ if (charSequenceGet(this.s56(), current) === _Char___init__impl__6a9atx(34)) {
4348
+ current = current + 1 | 0;
4349
+ if (current === charSequenceLength(this.s56())) {
4350
+ this.e51('EOF');
4351
+ }
4352
+ tmp = true;
4353
+ } else {
4354
+ tmp = false;
4355
+ }
4356
+ var hasQuotation = tmp;
4357
+ var accumulator = new Long(0, 0);
4358
+ var exponentAccumulator = new Long(0, 0);
4359
+ var isNegative = false;
4360
+ var isExponentPositive = false;
4361
+ var hasExponent = false;
4362
+ var start = current;
4363
+ $l$loop_4: while (!(current === charSequenceLength(this.s56()))) {
4364
+ var ch = charSequenceGet(this.s56(), current);
4365
+ if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
4366
+ if (current === start) {
4367
+ this.e51('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
4368
+ }
4369
+ isExponentPositive = true;
4370
+ hasExponent = true;
4371
+ current = current + 1 | 0;
4372
+ continue $l$loop_4;
4373
+ }
4374
+ if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
4375
+ if (current === start) {
4376
+ this.e51("Unexpected symbol '-' in numeric literal");
4377
+ }
4378
+ isExponentPositive = false;
4379
+ current = current + 1 | 0;
4380
+ continue $l$loop_4;
4381
+ }
4382
+ if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
4383
+ if (current === start) {
4384
+ this.e51("Unexpected symbol '+' in numeric literal");
4385
+ }
4386
+ isExponentPositive = true;
4387
+ current = current + 1 | 0;
4388
+ continue $l$loop_4;
4389
+ }
4390
+ if (ch === _Char___init__impl__6a9atx(45)) {
4391
+ if (!(current === start)) {
4392
+ this.e51("Unexpected symbol '-' in numeric literal");
4393
+ }
4394
+ isNegative = true;
4395
+ current = current + 1 | 0;
4396
+ continue $l$loop_4;
4397
+ }
4398
+ var token = charToTokenClass(ch);
4399
+ if (!(token === 0))
4400
+ break $l$loop_4;
4401
+ current = current + 1 | 0;
4402
+ var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
4403
+ if (!(0 <= digit ? digit <= 9 : false)) {
4404
+ this.e51("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
4405
+ }
4406
+ if (hasExponent) {
4407
+ // Inline function 'kotlin.Long.plus' call
4408
+ // Inline function 'kotlin.Long.times' call
4409
+ exponentAccumulator = exponentAccumulator.y2(toLong(10)).w2(toLong(digit));
4410
+ continue $l$loop_4;
4411
+ }
4412
+ // Inline function 'kotlin.Long.minus' call
4413
+ // Inline function 'kotlin.Long.times' call
4414
+ accumulator = accumulator.y2(toLong(10)).x2(toLong(digit));
4415
+ if (accumulator.z(new Long(0, 0)) > 0) {
4416
+ this.e51('Numeric value overflow');
4417
+ }
4418
+ }
4419
+ var hasChars = !(current === start);
4420
+ if (start === current || (isNegative && start === (current - 1 | 0))) {
4421
+ this.e51('Expected numeric literal');
4422
+ }
4423
+ if (hasQuotation) {
4424
+ if (!hasChars) {
4425
+ this.e51('EOF');
4426
+ }
4427
+ if (!(charSequenceGet(this.s56(), current) === _Char___init__impl__6a9atx(34))) {
4428
+ this.e51('Expected closing quotation mark');
4429
+ }
4430
+ current = current + 1 | 0;
4431
+ }
4432
+ this.d4x_1 = current;
4433
+ if (hasExponent) {
4434
+ var doubleAccumulator = accumulator.o3() * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
4435
+ if (doubleAccumulator > (new Long(-1, 2147483647)).o3() || doubleAccumulator < (new Long(0, -2147483648)).o3()) {
4436
+ this.e51('Numeric value overflow');
4437
+ }
4438
+ // Inline function 'kotlin.math.floor' call
4439
+ if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
4440
+ this.e51("Can't convert " + doubleAccumulator + ' to Long');
4441
+ }
4442
+ accumulator = numberToLong(doubleAccumulator);
4443
+ }
4444
+ var tmp_0;
4445
+ if (isNegative) {
4446
+ tmp_0 = accumulator;
4447
+ } else if (!accumulator.equals(new Long(0, -2147483648))) {
4448
+ tmp_0 = accumulator.d3();
4449
+ } else {
4450
+ this.e51('Numeric value overflow');
4451
+ }
4452
+ return tmp_0;
4453
+ };
4454
+ protoOf(AbstractJsonLexer).i54 = function () {
4455
+ var current = this.z56();
4456
+ if (current === charSequenceLength(this.s56())) {
4457
+ this.e51('EOF');
4458
+ }
4459
+ var tmp;
4460
+ if (charSequenceGet(this.s56(), current) === _Char___init__impl__6a9atx(34)) {
4461
+ current = current + 1 | 0;
4462
+ tmp = true;
4463
+ } else {
4464
+ tmp = false;
4465
+ }
4466
+ var hasQuotation = tmp;
4467
+ var result = consumeBoolean2(this, current);
4468
+ if (hasQuotation) {
4469
+ if (this.d4x_1 === charSequenceLength(this.s56())) {
4470
+ this.e51('EOF');
4471
+ }
4472
+ if (!(charSequenceGet(this.s56(), this.d4x_1) === _Char___init__impl__6a9atx(34))) {
4473
+ this.e51('Expected closing quotation mark');
4474
+ }
4475
+ this.d4x_1 = this.d4x_1 + 1 | 0;
4476
+ }
4477
+ return result;
4478
+ };
4479
+ function charToTokenClass(c) {
4480
+ var tmp;
4481
+ // Inline function 'kotlin.code' call
4482
+ if (Char__toInt_impl_vasixd(c) < 126) {
4483
+ var tmp_0 = CharMappings_getInstance().d57_1;
4484
+ // Inline function 'kotlin.code' call
4485
+ tmp = tmp_0[Char__toInt_impl_vasixd(c)];
4486
+ } else {
4487
+ tmp = 0;
4488
+ }
4489
+ return tmp;
4490
+ }
4491
+ function tokenDescription(token) {
4492
+ 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';
4493
+ }
4494
+ function escapeToChar(c) {
4495
+ return c < 117 ? CharMappings_getInstance().c57_1[c] : _Char___init__impl__6a9atx(0);
4496
+ }
4497
+ function initEscape($this) {
4498
+ var inductionVariable = 0;
4499
+ if (inductionVariable <= 31)
4500
+ do {
4501
+ var i = inductionVariable;
4502
+ inductionVariable = inductionVariable + 1 | 0;
4503
+ initC2ESC($this, i, _Char___init__impl__6a9atx(117));
4504
+ }
4505
+ while (inductionVariable <= 31);
4506
+ initC2ESC($this, 8, _Char___init__impl__6a9atx(98));
4507
+ initC2ESC($this, 9, _Char___init__impl__6a9atx(116));
4508
+ initC2ESC($this, 10, _Char___init__impl__6a9atx(110));
4509
+ initC2ESC($this, 12, _Char___init__impl__6a9atx(102));
4510
+ initC2ESC($this, 13, _Char___init__impl__6a9atx(114));
4511
+ initC2ESC_0($this, _Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(47));
4512
+ initC2ESC_0($this, _Char___init__impl__6a9atx(34), _Char___init__impl__6a9atx(34));
4513
+ initC2ESC_0($this, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(92));
4514
+ }
4515
+ function initCharToToken($this) {
4516
+ var inductionVariable = 0;
4517
+ if (inductionVariable <= 32)
4518
+ do {
4519
+ var i = inductionVariable;
4520
+ inductionVariable = inductionVariable + 1 | 0;
4521
+ initC2TC($this, i, 127);
4522
+ }
4523
+ while (inductionVariable <= 32);
4524
+ initC2TC($this, 9, 3);
4525
+ initC2TC($this, 10, 3);
4526
+ initC2TC($this, 13, 3);
4527
+ initC2TC($this, 32, 3);
4528
+ initC2TC_0($this, _Char___init__impl__6a9atx(44), 4);
4529
+ initC2TC_0($this, _Char___init__impl__6a9atx(58), 5);
4530
+ initC2TC_0($this, _Char___init__impl__6a9atx(123), 6);
4531
+ initC2TC_0($this, _Char___init__impl__6a9atx(125), 7);
4532
+ initC2TC_0($this, _Char___init__impl__6a9atx(91), 8);
4533
+ initC2TC_0($this, _Char___init__impl__6a9atx(93), 9);
4534
+ initC2TC_0($this, _Char___init__impl__6a9atx(34), 1);
4535
+ initC2TC_0($this, _Char___init__impl__6a9atx(92), 2);
4536
+ }
4537
+ function initC2ESC($this, c, esc) {
4538
+ if (!(esc === _Char___init__impl__6a9atx(117))) {
4539
+ // Inline function 'kotlin.code' call
4540
+ var tmp$ret$0 = Char__toInt_impl_vasixd(esc);
4541
+ $this.c57_1[tmp$ret$0] = numberToChar(c);
4542
+ }
4543
+ }
4544
+ function initC2ESC_0($this, c, esc) {
4545
+ // Inline function 'kotlin.code' call
4546
+ var tmp$ret$0 = Char__toInt_impl_vasixd(c);
4547
+ return initC2ESC($this, tmp$ret$0, esc);
4548
+ }
4549
+ function initC2TC($this, c, cl) {
4550
+ $this.d57_1[c] = cl;
4551
+ }
4552
+ function initC2TC_0($this, c, cl) {
4553
+ // Inline function 'kotlin.code' call
4554
+ var tmp$ret$0 = Char__toInt_impl_vasixd(c);
4555
+ return initC2TC($this, tmp$ret$0, cl);
4556
+ }
4557
+ function CharMappings() {
4558
+ CharMappings_instance = this;
4559
+ this.c57_1 = charArray(117);
4560
+ this.d57_1 = new Int8Array(126);
4561
+ initEscape(this);
4562
+ initCharToToken(this);
4563
+ }
4564
+ var CharMappings_instance;
4565
+ function CharMappings_getInstance() {
4566
+ if (CharMappings_instance == null)
4567
+ new CharMappings();
4568
+ return CharMappings_instance;
4569
+ }
4570
+ function StringJsonLexer(source) {
4571
+ AbstractJsonLexer.call(this);
4572
+ this.i57_1 = source;
4573
+ }
4574
+ protoOf(StringJsonLexer).s56 = function () {
4575
+ return this.i57_1;
4576
+ };
4577
+ protoOf(StringJsonLexer).t56 = function (position) {
4578
+ return position < this.i57_1.length ? position : -1;
4579
+ };
4580
+ protoOf(StringJsonLexer).k52 = function () {
4581
+ var source = this.i57_1;
4582
+ $l$loop: while (!(this.d4x_1 === -1) && this.d4x_1 < source.length) {
4583
+ var tmp1 = this.d4x_1;
4584
+ this.d4x_1 = tmp1 + 1 | 0;
4585
+ var ch = charSequenceGet(source, tmp1);
4586
+ var tc = charToTokenClass(ch);
4587
+ var tmp;
4588
+ if (tc === 3) {
4589
+ continue $l$loop;
4590
+ } else {
4591
+ tmp = tc;
4592
+ }
4593
+ return tmp;
4594
+ }
4595
+ return 10;
4596
+ };
4597
+ protoOf(StringJsonLexer).v53 = function () {
4598
+ var current = this.z56();
4599
+ if (current === this.i57_1.length || current === -1)
4600
+ return false;
4601
+ if (charSequenceGet(this.i57_1, current) === _Char___init__impl__6a9atx(44)) {
4602
+ this.d4x_1 = this.d4x_1 + 1 | 0;
4603
+ return true;
4604
+ }
4605
+ return false;
4606
+ };
4607
+ protoOf(StringJsonLexer).g52 = function () {
4608
+ var current = this.d4x_1;
4609
+ if (current === -1)
4610
+ return false;
4611
+ $l$loop: while (current < this.i57_1.length) {
4612
+ var c = charSequenceGet(this.i57_1, current);
4613
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9)) {
4614
+ current = current + 1 | 0;
4615
+ continue $l$loop;
4616
+ }
4617
+ this.d4x_1 = current;
4618
+ return this.v56(c);
4619
+ }
4620
+ this.d4x_1 = current;
4621
+ return false;
4622
+ };
4623
+ protoOf(StringJsonLexer).z56 = function () {
4624
+ var current = this.d4x_1;
4625
+ if (current === -1)
4626
+ return current;
4627
+ $l$loop: while (current < this.i57_1.length) {
4628
+ var c = charSequenceGet(this.i57_1, current);
4629
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9)) {
4630
+ current = current + 1 | 0;
4631
+ } else {
4632
+ break $l$loop;
4633
+ }
4634
+ }
4635
+ this.d4x_1 = current;
4636
+ return current;
4637
+ };
4638
+ protoOf(StringJsonLexer).u53 = function (expected) {
4639
+ if (this.d4x_1 === -1) {
4640
+ this.x56(expected);
4641
+ }
4642
+ var source = this.i57_1;
4643
+ $l$loop: while (this.d4x_1 < source.length) {
4644
+ var tmp1 = this.d4x_1;
4645
+ this.d4x_1 = tmp1 + 1 | 0;
4646
+ var c = charSequenceGet(source, tmp1);
4647
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9))
4648
+ continue $l$loop;
4649
+ if (c === expected)
4650
+ return Unit_instance;
4651
+ this.x56(expected);
4652
+ }
4653
+ this.d4x_1 = -1;
4654
+ this.x56(expected);
4655
+ };
4656
+ protoOf(StringJsonLexer).a54 = function () {
4657
+ this.u53(_Char___init__impl__6a9atx(34));
4658
+ var current = this.d4x_1;
4659
+ var closingQuote = indexOf(this.i57_1, _Char___init__impl__6a9atx(34), current);
4660
+ if (closingQuote === -1) {
4661
+ this.i52();
4662
+ this.y56(1, false);
4663
+ }
4664
+ var inductionVariable = current;
4665
+ if (inductionVariable < closingQuote)
4666
+ do {
4667
+ var i = inductionVariable;
4668
+ inductionVariable = inductionVariable + 1 | 0;
4669
+ if (charSequenceGet(this.i57_1, i) === _Char___init__impl__6a9atx(92)) {
4670
+ return this.consumeString2(this.i57_1, this.d4x_1, i);
4671
+ }
4672
+ }
4673
+ while (inductionVariable < closingQuote);
4674
+ this.d4x_1 = closingQuote + 1 | 0;
4675
+ // Inline function 'kotlin.text.substring' call
4676
+ // Inline function 'kotlin.js.asDynamic' call
4677
+ return this.i57_1.substring(current, closingQuote);
4678
+ };
4679
+ protoOf(StringJsonLexer).c54 = function (keyToMatch, isLenient) {
4680
+ var positionSnapshot = this.d4x_1;
4681
+ try {
4682
+ if (!(this.k52() === 6))
4683
+ return null;
4684
+ var firstKey = this.x53(isLenient);
4685
+ if (!(firstKey === keyToMatch))
4686
+ return null;
4687
+ this.a57();
4688
+ if (!(this.k52() === 5))
4689
+ return null;
4690
+ return this.x53(isLenient);
4691
+ }finally {
4692
+ this.d4x_1 = positionSnapshot;
4693
+ this.a57();
4694
+ }
4695
+ };
4696
+ function get_schemaCache(_this__u8e3s4) {
4697
+ return _this__u8e3s4.t4w_1;
4698
+ }
4699
+ function JsonToStringWriter() {
4700
+ this.u4w_1 = StringBuilder_init_$Create$_0(128);
4701
+ }
4702
+ protoOf(JsonToStringWriter).i50 = function (value) {
4703
+ this.u4w_1.xb(value);
4704
+ };
4705
+ protoOf(JsonToStringWriter).c50 = function (char) {
4706
+ this.u4w_1.j8(char);
4707
+ };
4708
+ protoOf(JsonToStringWriter).e50 = function (text) {
4709
+ this.u4w_1.i8(text);
4710
+ };
4711
+ protoOf(JsonToStringWriter).o50 = function (text) {
4712
+ printQuoted(this.u4w_1, text);
4713
+ };
4714
+ protoOf(JsonToStringWriter).c1p = function () {
4715
+ this.u4w_1.ac();
4716
+ };
4717
+ protoOf(JsonToStringWriter).toString = function () {
4718
+ return this.u4w_1.toString();
4719
+ };
4720
+ function createMapForCache(initialCapacity) {
4721
+ return HashMap_init_$Create$(initialCapacity);
4722
+ }
4723
+ //region block: post-declaration
4724
+ protoOf(JsonObject).asJsReadonlyMapView = asJsReadonlyMapView;
4725
+ protoOf(JsonArray).asJsReadonlyArrayView = asJsReadonlyArrayView;
4726
+ protoOf(defer$1).l48 = get_isNullable;
4727
+ protoOf(defer$1).r48 = get_isInline;
4728
+ protoOf(defer$1).p48 = get_annotations;
4729
+ protoOf(PolymorphismValidator).o4r = contextual;
4730
+ //endregion
4731
+ //region block: init
4732
+ Companion_instance = new Companion();
4733
+ Companion_instance_0 = new Companion_0();
4734
+ Companion_instance_1 = new Companion_1();
4735
+ Companion_instance_2 = new Companion_2();
4736
+ Tombstone_instance = new Tombstone();
4737
+ //endregion
4738
+ //region block: exports
4739
+ _.$_$ = _.$_$ || {};
4740
+ _.$_$.a = JsonObject;
4741
+ _.$_$.b = Json_0;
4742
+ _.$_$.c = Json;
4743
+ _.$_$.d = get_jsonObject;
4744
+ //endregion
4745
+ return _;
4746
+ }));
4747
+
4748
+ //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json.js.map