@flock/wirespec 0.0.1

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 (55) hide show
  1. package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +1601 -0
  2. package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.map +1 -0
  3. package/kotlin/arrow-arrow-annotations.js +15 -0
  4. package/kotlin/arrow-arrow-annotations.js.map +1 -0
  5. package/kotlin/arrow-arrow-atomic.js +57 -0
  6. package/kotlin/arrow-arrow-atomic.js.map +1 -0
  7. package/kotlin/arrow-arrow-continuations.js +31 -0
  8. package/kotlin/arrow-arrow-continuations.js.map +1 -0
  9. package/kotlin/arrow-arrow-core.js +357 -0
  10. package/kotlin/arrow-arrow-core.js.map +1 -0
  11. package/kotlin/kotlin-kotlin-stdlib-js-ir.js +11509 -0
  12. package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
  13. package/kotlin/kotlin-openapi-bindings.js +12060 -0
  14. package/kotlin/kotlin-openapi-bindings.js.map +1 -0
  15. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +5362 -0
  16. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -0
  17. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +4421 -0
  18. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -0
  19. package/kotlin/wirespec-bin.js +3 -0
  20. package/kotlin/wirespec-cli.js +1069 -0
  21. package/kotlin/wirespec-cli.js.map +1 -0
  22. package/kotlin/wirespec-core.js +4687 -0
  23. package/kotlin/wirespec-core.js.map +1 -0
  24. package/kotlin/wirespec-lib.js +620 -0
  25. package/kotlin/wirespec-lib.js.map +1 -0
  26. package/kotlin/wirespec-openapi.js +2614 -0
  27. package/kotlin/wirespec-openapi.js.map +1 -0
  28. package/package.json +17 -0
  29. package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -0
  30. package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.map.hash +1 -0
  31. package/sync-hashes/arrow-arrow-annotations.js.hash +1 -0
  32. package/sync-hashes/arrow-arrow-annotations.js.map.hash +1 -0
  33. package/sync-hashes/arrow-arrow-atomic.js.hash +1 -0
  34. package/sync-hashes/arrow-arrow-atomic.js.map.hash +1 -0
  35. package/sync-hashes/arrow-arrow-continuations.js.hash +1 -0
  36. package/sync-hashes/arrow-arrow-continuations.js.map.hash +1 -0
  37. package/sync-hashes/arrow-arrow-core.js.hash +1 -0
  38. package/sync-hashes/arrow-arrow-core.js.map.hash +1 -0
  39. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -0
  40. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -0
  41. package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -0
  42. package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -0
  43. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -0
  44. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -0
  45. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -0
  46. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -0
  47. package/sync-hashes/wirespec-bin.js.hash +1 -0
  48. package/sync-hashes/wirespec-cli.js.hash +1 -0
  49. package/sync-hashes/wirespec-cli.js.map.hash +1 -0
  50. package/sync-hashes/wirespec-core.js.hash +1 -0
  51. package/sync-hashes/wirespec-core.js.map.hash +1 -0
  52. package/sync-hashes/wirespec-lib.js.hash +1 -0
  53. package/sync-hashes/wirespec-lib.js.map.hash +1 -0
  54. package/sync-hashes/wirespec-openapi.js.hash +1 -0
  55. package/sync-hashes/wirespec-openapi.js.map.hash +1 -0
@@ -0,0 +1,4421 @@
1
+ (function (root, factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlinx-serialization-kotlinx-serialization-core-js-ir.js', './kotlin-kotlin-stdlib-js-ir.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core-js-ir.js'), require('./kotlin-kotlin-stdlib-js-ir.js'));
6
+ else {
7
+ if (typeof this['kotlinx-serialization-kotlinx-serialization-core-js-ir'] === 'undefined') {
8
+ throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-json-js-ir'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core-js-ir' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-json-js-ir'.");
9
+ }
10
+ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
11
+ throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-json-js-ir'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-json-js-ir'.");
12
+ }
13
+ root['kotlinx-serialization-kotlinx-serialization-json-js-ir'] = factory(typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined' ? {} : this['kotlinx-serialization-kotlinx-serialization-json-js-ir'], this['kotlinx-serialization-kotlinx-serialization-core-js-ir'], this['kotlin-kotlin-stdlib-js-ir']);
14
+ }
15
+ }(this, 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.$_$.e2;
20
+ var protoOf = kotlin_kotlin.$_$.t7;
21
+ var objectMeta = kotlin_kotlin.$_$.s7;
22
+ var VOID = kotlin_kotlin.$_$.ya;
23
+ var setMetadataFor = kotlin_kotlin.$_$.u7;
24
+ var classMeta = kotlin_kotlin.$_$.q6;
25
+ var Unit_getInstance = kotlin_kotlin.$_$.i3;
26
+ var toString = kotlin_kotlin.$_$.y7;
27
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
28
+ var charSequenceGet = kotlin_kotlin.$_$.n6;
29
+ var Char = kotlin_kotlin.$_$.m9;
30
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
31
+ var equals = kotlin_kotlin.$_$.s6;
32
+ var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
33
+ var CompositeDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
34
+ var interfaceMeta = kotlin_kotlin.$_$.z6;
35
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.w;
36
+ var THROW_CCE = kotlin_kotlin.$_$.y9;
37
+ var hashCode = kotlin_kotlin.$_$.y6;
38
+ var joinToString = kotlin_kotlin.$_$.a5;
39
+ var Map = kotlin_kotlin.$_$.u3;
40
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
41
+ var List = kotlin_kotlin.$_$.s3;
42
+ var getKClassFromExpression = kotlin_kotlin.$_$.c;
43
+ var getStringHashCode = kotlin_kotlin.$_$.x6;
44
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
45
+ var lazy = kotlin_kotlin.$_$.ra;
46
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
47
+ var toInt = kotlin_kotlin.$_$.c9;
48
+ var toLong = kotlin_kotlin.$_$.d9;
49
+ var toDouble = kotlin_kotlin.$_$.a9;
50
+ var StringCompanionObject_getInstance = kotlin_kotlin.$_$.y2;
51
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
52
+ var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
53
+ var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
54
+ var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
55
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
56
+ var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
57
+ var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
58
+ var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
59
+ var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
60
+ var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
61
+ var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1;
62
+ var isInterface = kotlin_kotlin.$_$.i7;
63
+ var lazy_0 = kotlin_kotlin.$_$.sa;
64
+ var get_isNullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1;
65
+ var get_isInline = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
66
+ var get_annotations = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b1;
67
+ var KProperty1 = kotlin_kotlin.$_$.f8;
68
+ var getPropertyCallableRef = kotlin_kotlin.$_$.w6;
69
+ var ElementMarker = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
70
+ var captureStack = kotlin_kotlin.$_$.k6;
71
+ var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2;
72
+ var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
73
+ var charSequenceLength = kotlin_kotlin.$_$.o6;
74
+ var charSequenceSubSequence = kotlin_kotlin.$_$.p6;
75
+ var coerceAtLeast = kotlin_kotlin.$_$.z7;
76
+ var coerceAtMost = kotlin_kotlin.$_$.a8;
77
+ var Companion_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
78
+ var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
79
+ var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
80
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
81
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
82
+ var singleOrNull = kotlin_kotlin.$_$.t5;
83
+ var arrayIterator = kotlin_kotlin.$_$.i6;
84
+ var emptyMap = kotlin_kotlin.$_$.s4;
85
+ var getValue = kotlin_kotlin.$_$.x4;
86
+ var copyOf = kotlin_kotlin.$_$.n4;
87
+ var copyOf_0 = kotlin_kotlin.$_$.o4;
88
+ var fillArrayVal = kotlin_kotlin.$_$.t6;
89
+ var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
90
+ var DeepRecursiveFunction = kotlin_kotlin.$_$.n9;
91
+ var invoke = kotlin_kotlin.$_$.oa;
92
+ var CoroutineImpl = kotlin_kotlin.$_$.g6;
93
+ var DeepRecursiveScope = kotlin_kotlin.$_$.o9;
94
+ var Unit = kotlin_kotlin.$_$.ja;
95
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f6;
96
+ var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
97
+ var getKClass = kotlin_kotlin.$_$.d;
98
+ var DeserializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
99
+ var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
100
+ var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
101
+ var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
102
+ var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
103
+ var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
104
+ var contextual = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
105
+ var SerializersModuleCollector = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
106
+ var isObject = kotlin_kotlin.$_$.k7;
107
+ var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
108
+ var plus = kotlin_kotlin.$_$.ua;
109
+ var MissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
110
+ var decodeSerializableElement$default = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
111
+ var toLong_0 = kotlin_kotlin.$_$.w7;
112
+ var IllegalArgumentException = kotlin_kotlin.$_$.r9;
113
+ var isFinite = kotlin_kotlin.$_$.qa;
114
+ var isFinite_0 = kotlin_kotlin.$_$.pa;
115
+ var decodeSequentially = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
116
+ var decodeCollectionSize = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
117
+ var toUInt = kotlin_kotlin.$_$.f9;
118
+ var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.y1;
119
+ var toULong = kotlin_kotlin.$_$.g9;
120
+ var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.f2;
121
+ var toUByte = kotlin_kotlin.$_$.e9;
122
+ var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.r1;
123
+ var toUShort = kotlin_kotlin.$_$.h9;
124
+ var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.m2;
125
+ var decodeSerializableValue = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1;
126
+ var Companion_getInstance_0 = kotlin_kotlin.$_$.f3;
127
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
128
+ var Companion_getInstance_1 = kotlin_kotlin.$_$.g3;
129
+ var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
130
+ var Companion_getInstance_2 = kotlin_kotlin.$_$.e3;
131
+ var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
132
+ var Companion_getInstance_3 = kotlin_kotlin.$_$.h3;
133
+ var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
134
+ var setOf = kotlin_kotlin.$_$.s5;
135
+ var numberToChar = kotlin_kotlin.$_$.q7;
136
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.k1;
137
+ var equals_0 = kotlin_kotlin.$_$.o8;
138
+ var toByte = kotlin_kotlin.$_$.v7;
139
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.ta;
140
+ var NamedValueDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
141
+ var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.z;
142
+ var ByteCompanionObject_getInstance = kotlin_kotlin.$_$.t2;
143
+ var ShortCompanionObject_getInstance = kotlin_kotlin.$_$.x2;
144
+ var toShort = kotlin_kotlin.$_$.x7;
145
+ var single = kotlin_kotlin.$_$.u8;
146
+ var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
147
+ var emptySet = kotlin_kotlin.$_$.t4;
148
+ var plus_0 = kotlin_kotlin.$_$.n5;
149
+ var toList = kotlin_kotlin.$_$.y5;
150
+ var Enum = kotlin_kotlin.$_$.p9;
151
+ var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
152
+ var ensureNotNull = kotlin_kotlin.$_$.na;
153
+ var toString_0 = kotlin_kotlin.$_$.l1;
154
+ var last = kotlin_kotlin.$_$.f5;
155
+ var removeLast = kotlin_kotlin.$_$.r5;
156
+ var lastIndexOf = kotlin_kotlin.$_$.s8;
157
+ var Long = kotlin_kotlin.$_$.t9;
158
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.j1;
159
+ var Companion_getInstance_4 = kotlin_kotlin.$_$.c3;
160
+ var charArray = kotlin_kotlin.$_$.m6;
161
+ var indexOf = kotlin_kotlin.$_$.p8;
162
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.i;
163
+ //endregion
164
+ //region block: pre-declaration
165
+ setMetadataFor(Json, 'Json', classMeta);
166
+ setMetadataFor(Default, 'Default', objectMeta, Json);
167
+ setMetadataFor(JsonBuilder, 'JsonBuilder', classMeta);
168
+ setMetadataFor(JsonImpl, 'JsonImpl', classMeta, Json);
169
+ setMetadataFor(JsonClassDiscriminator, 'JsonClassDiscriminator', classMeta);
170
+ setMetadataFor(JsonNames, 'JsonNames', classMeta);
171
+ setMetadataFor(JsonConfiguration, 'JsonConfiguration', classMeta);
172
+ setMetadataFor(JsonDecoder, 'JsonDecoder', interfaceMeta, VOID, [Decoder, CompositeDecoder]);
173
+ setMetadataFor(Companion, 'Companion', objectMeta);
174
+ setMetadataFor(JsonElement, 'JsonElement', classMeta, VOID, VOID, VOID, {0: JsonElementSerializer_getInstance});
175
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
176
+ setMetadataFor(JsonObject, 'JsonObject', classMeta, JsonElement, [JsonElement, Map], VOID, {0: JsonObjectSerializer_getInstance});
177
+ setMetadataFor(Companion_1, 'Companion', objectMeta);
178
+ setMetadataFor(JsonPrimitive, 'JsonPrimitive', classMeta, JsonElement, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance});
179
+ setMetadataFor(Companion_2, 'Companion', objectMeta);
180
+ setMetadataFor(JsonArray, 'JsonArray', classMeta, JsonElement, [JsonElement, List], VOID, {0: JsonArraySerializer_getInstance});
181
+ setMetadataFor(JsonLiteral, 'JsonLiteral', classMeta, JsonPrimitive);
182
+ setMetadataFor(JsonNull, 'JsonNull', objectMeta, JsonPrimitive, [JsonPrimitive, SerializerFactory], VOID, {0: JsonNull_getInstance});
183
+ setMetadataFor(JsonElementSerializer, 'JsonElementSerializer', objectMeta, VOID, [KSerializer]);
184
+ setMetadataFor(JsonObjectDescriptor, 'JsonObjectDescriptor', objectMeta, VOID, [SerialDescriptor]);
185
+ setMetadataFor(JsonObjectSerializer, 'JsonObjectSerializer', objectMeta, VOID, [KSerializer]);
186
+ setMetadataFor(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', objectMeta, VOID, [KSerializer]);
187
+ setMetadataFor(JsonArrayDescriptor, 'JsonArrayDescriptor', objectMeta, VOID, [SerialDescriptor]);
188
+ setMetadataFor(JsonArraySerializer, 'JsonArraySerializer', objectMeta, VOID, [KSerializer]);
189
+ setMetadataFor(JsonNullSerializer, 'JsonNullSerializer', objectMeta, VOID, [KSerializer]);
190
+ setMetadataFor(JsonLiteralSerializer, 'JsonLiteralSerializer', objectMeta, VOID, [KSerializer]);
191
+ setMetadataFor(defer$1, VOID, classMeta, VOID, [SerialDescriptor]);
192
+ setMetadataFor(JsonElementMarker, 'JsonElementMarker', classMeta);
193
+ setMetadataFor(JsonException, 'JsonException', classMeta, SerializationException);
194
+ setMetadataFor(JsonDecodingException, 'JsonDecodingException', classMeta, JsonException);
195
+ setMetadataFor(JsonEncodingException, 'JsonEncodingException', classMeta, JsonException);
196
+ setMetadataFor(Tombstone, 'Tombstone', objectMeta);
197
+ setMetadataFor(JsonPath, 'JsonPath', classMeta);
198
+ setMetadataFor(JsonTreeReader$readDeepRecursive$slambda, 'JsonTreeReader$readDeepRecursive$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [2]);
199
+ setMetadataFor($readObjectCOROUTINE$0, '$readObjectCOROUTINE$0', classMeta, CoroutineImpl);
200
+ setMetadataFor(JsonTreeReader, 'JsonTreeReader', classMeta, VOID, VOID, VOID, VOID, [0]);
201
+ setMetadataFor(PolymorphismValidator, 'PolymorphismValidator', classMeta, VOID, [SerializersModuleCollector]);
202
+ setMetadataFor(Key, 'Key', classMeta);
203
+ setMetadataFor(DescriptorSchemaCache, 'DescriptorSchemaCache', classMeta);
204
+ setMetadataFor(DiscriminatorHolder, 'DiscriminatorHolder', classMeta);
205
+ setMetadataFor(StreamingJsonDecoder, 'StreamingJsonDecoder', classMeta, AbstractDecoder, [JsonDecoder, AbstractDecoder]);
206
+ setMetadataFor(JsonDecoderForUnsignedTypes, 'JsonDecoderForUnsignedTypes', classMeta, AbstractDecoder);
207
+ setMetadataFor(AbstractJsonTreeDecoder, 'AbstractJsonTreeDecoder', classMeta, NamedValueDecoder, [NamedValueDecoder, JsonDecoder]);
208
+ setMetadataFor(JsonTreeDecoder, 'JsonTreeDecoder', classMeta, AbstractJsonTreeDecoder);
209
+ setMetadataFor(JsonTreeListDecoder, 'JsonTreeListDecoder', classMeta, AbstractJsonTreeDecoder);
210
+ setMetadataFor(JsonPrimitiveDecoder, 'JsonPrimitiveDecoder', classMeta, AbstractJsonTreeDecoder);
211
+ setMetadataFor(JsonTreeMapDecoder, 'JsonTreeMapDecoder', classMeta, JsonTreeDecoder);
212
+ setMetadataFor(WriteMode, 'WriteMode', classMeta, Enum);
213
+ setMetadataFor(AbstractJsonLexer, 'AbstractJsonLexer', classMeta);
214
+ setMetadataFor(CharMappings, 'CharMappings', objectMeta);
215
+ setMetadataFor(StringJsonLexer, 'StringJsonLexer', classMeta, AbstractJsonLexer);
216
+ //endregion
217
+ function Default() {
218
+ Default_instance = this;
219
+ Json.call(this, new JsonConfiguration(), EmptySerializersModule());
220
+ }
221
+ var Default_instance;
222
+ function Default_getInstance() {
223
+ if (Default_instance == null)
224
+ new Default();
225
+ return Default_instance;
226
+ }
227
+ function Json(configuration, serializersModule) {
228
+ Default_getInstance();
229
+ this.g11_1 = configuration;
230
+ this.h11_1 = serializersModule;
231
+ this.i11_1 = new DescriptorSchemaCache();
232
+ }
233
+ protoOf(Json).wo = function () {
234
+ return this.h11_1;
235
+ };
236
+ protoOf(Json).j11 = function (deserializer, string) {
237
+ var lexer = new StringJsonLexer(string);
238
+ var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.jl(), null);
239
+ var result = input.go(deserializer);
240
+ lexer.x11();
241
+ return result;
242
+ };
243
+ protoOf(Json).k11 = function (deserializer, element) {
244
+ return readJson(this, element, deserializer);
245
+ };
246
+ function Json_0(from, builderAction) {
247
+ from = from === VOID ? Default_getInstance() : from;
248
+ var builder = new JsonBuilder(from);
249
+ builderAction(builder);
250
+ var conf = builder.cs();
251
+ return new JsonImpl(conf, builder.l12_1);
252
+ }
253
+ function JsonBuilder(json) {
254
+ this.y11_1 = json.g11_1.m12_1;
255
+ this.z11_1 = json.g11_1.r12_1;
256
+ this.a12_1 = json.g11_1.n12_1;
257
+ this.b12_1 = json.g11_1.o12_1;
258
+ this.c12_1 = json.g11_1.p12_1;
259
+ this.d12_1 = json.g11_1.q12_1;
260
+ this.e12_1 = json.g11_1.s12_1;
261
+ this.f12_1 = json.g11_1.t12_1;
262
+ this.g12_1 = json.g11_1.u12_1;
263
+ this.h12_1 = json.g11_1.v12_1;
264
+ this.i12_1 = json.g11_1.w12_1;
265
+ this.j12_1 = json.g11_1.x12_1;
266
+ this.k12_1 = json.g11_1.y12_1;
267
+ this.l12_1 = json.wo();
268
+ }
269
+ protoOf(JsonBuilder).cs = function () {
270
+ if (this.g12_1) {
271
+ // Inline function 'kotlin.require' call
272
+ var tmp0_require = this.h12_1 === 'type';
273
+ // Inline function 'kotlin.contracts.contract' call
274
+ if (!tmp0_require) {
275
+ var tmp$ret$0;
276
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
277
+ tmp$ret$0 = 'Class discriminator should not be specified when array polymorphism is specified';
278
+ var message = tmp$ret$0;
279
+ throw IllegalArgumentException_init_$Create$(toString(message));
280
+ }
281
+ }
282
+ if (!this.d12_1) {
283
+ // Inline function 'kotlin.require' call
284
+ var tmp1_require = this.e12_1 === ' ';
285
+ // Inline function 'kotlin.contracts.contract' call
286
+ if (!tmp1_require) {
287
+ var tmp$ret$1;
288
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
289
+ tmp$ret$1 = 'Indent should not be specified when default printing mode is used';
290
+ var message_0 = tmp$ret$1;
291
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
292
+ }
293
+ } else if (!(this.e12_1 === ' ')) {
294
+ var tmp$ret$3;
295
+ $l$block: {
296
+ // Inline function 'kotlin.text.all' call
297
+ var tmp2_all = this.e12_1;
298
+ var indexedObject = tmp2_all;
299
+ var inductionVariable = 0;
300
+ var last = indexedObject.length;
301
+ while (inductionVariable < last) {
302
+ var element = charSequenceGet(indexedObject, inductionVariable);
303
+ inductionVariable = inductionVariable + 1 | 0;
304
+ var tmp$ret$2;
305
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
306
+ tmp$ret$2 = ((equals(new Char(element), new Char(_Char___init__impl__6a9atx(32))) ? true : equals(new Char(element), new Char(_Char___init__impl__6a9atx(9)))) ? true : equals(new Char(element), new Char(_Char___init__impl__6a9atx(13)))) ? true : equals(new Char(element), new Char(_Char___init__impl__6a9atx(10)));
307
+ if (!tmp$ret$2) {
308
+ tmp$ret$3 = false;
309
+ break $l$block;
310
+ }
311
+ }
312
+ tmp$ret$3 = true;
313
+ }
314
+ var allWhitespaces = tmp$ret$3;
315
+ // Inline function 'kotlin.require' call
316
+ // Inline function 'kotlin.contracts.contract' call
317
+ if (!allWhitespaces) {
318
+ var tmp$ret$4;
319
+ // Inline function 'kotlinx.serialization.json.JsonBuilder.build.<anonymous>' call
320
+ tmp$ret$4 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.e12_1;
321
+ var message_1 = tmp$ret$4;
322
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
323
+ }
324
+ }
325
+ return new JsonConfiguration(this.y11_1, this.a12_1, this.b12_1, this.c12_1, this.d12_1, this.z11_1, this.e12_1, this.f12_1, this.g12_1, this.h12_1, this.i12_1, this.j12_1, this.k12_1);
326
+ };
327
+ function validateConfiguration($this) {
328
+ if (equals($this.wo(), EmptySerializersModule()))
329
+ return Unit_getInstance();
330
+ var collector = new PolymorphismValidator($this.g11_1.u12_1, $this.g11_1.v12_1);
331
+ $this.wo().p10(collector);
332
+ }
333
+ function JsonImpl(configuration, module_0) {
334
+ Json.call(this, configuration, module_0);
335
+ validateConfiguration(this);
336
+ }
337
+ function JsonClassDiscriminator() {
338
+ }
339
+ function JsonNames() {
340
+ }
341
+ function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy) {
342
+ encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults;
343
+ ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys;
344
+ isLenient = isLenient === VOID ? false : isLenient;
345
+ allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys;
346
+ prettyPrint = prettyPrint === VOID ? false : prettyPrint;
347
+ explicitNulls = explicitNulls === VOID ? true : explicitNulls;
348
+ prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent;
349
+ coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues;
350
+ useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism;
351
+ classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator;
352
+ allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
353
+ useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
354
+ namingStrategy = namingStrategy === VOID ? null : namingStrategy;
355
+ this.m12_1 = encodeDefaults;
356
+ this.n12_1 = ignoreUnknownKeys;
357
+ this.o12_1 = isLenient;
358
+ this.p12_1 = allowStructuredMapKeys;
359
+ this.q12_1 = prettyPrint;
360
+ this.r12_1 = explicitNulls;
361
+ this.s12_1 = prettyPrintIndent;
362
+ this.t12_1 = coerceInputValues;
363
+ this.u12_1 = useArrayPolymorphism;
364
+ this.v12_1 = classDiscriminator;
365
+ this.w12_1 = allowSpecialFloatingPointValues;
366
+ this.x12_1 = useAlternativeNames;
367
+ this.y12_1 = namingStrategy;
368
+ }
369
+ protoOf(JsonConfiguration).toString = function () {
370
+ return 'JsonConfiguration(encodeDefaults=' + this.m12_1 + ', ignoreUnknownKeys=' + this.n12_1 + ', isLenient=' + this.o12_1 + ', ' + ('allowStructuredMapKeys=' + this.p12_1 + ', prettyPrint=' + this.q12_1 + ', explicitNulls=' + this.r12_1 + ', ') + ("prettyPrintIndent='" + this.s12_1 + "', coerceInputValues=" + this.t12_1 + ', useArrayPolymorphism=' + this.u12_1 + ', ') + ("classDiscriminator='" + this.v12_1 + "', allowSpecialFloatingPointValues=" + this.w12_1 + ', useAlternativeNames=' + this.x12_1 + ', ') + ('namingStrategy=' + this.y12_1 + ')');
371
+ };
372
+ function JsonDecoder() {
373
+ }
374
+ var jsonUnquotedLiteralDescriptor;
375
+ function Companion() {
376
+ Companion_instance = this;
377
+ }
378
+ var Companion_instance;
379
+ function Companion_getInstance_5() {
380
+ if (Companion_instance == null)
381
+ new Companion();
382
+ return Companion_instance;
383
+ }
384
+ function JsonElement() {
385
+ Companion_getInstance_5();
386
+ }
387
+ function Companion_0() {
388
+ Companion_instance_0 = this;
389
+ }
390
+ var Companion_instance_0;
391
+ function Companion_getInstance_6() {
392
+ if (Companion_instance_0 == null)
393
+ new Companion_0();
394
+ return Companion_instance_0;
395
+ }
396
+ function JsonObject$toString$lambda(_name_for_destructuring_parameter_0__wldtmu) {
397
+ var tmp$ret$0;
398
+ // Inline function 'kotlin.collections.component1' call
399
+ tmp$ret$0 = _name_for_destructuring_parameter_0__wldtmu.v();
400
+ var k = tmp$ret$0;
401
+ var tmp$ret$1;
402
+ // Inline function 'kotlin.collections.component2' call
403
+ tmp$ret$1 = _name_for_destructuring_parameter_0__wldtmu.w();
404
+ var v = tmp$ret$1;
405
+ var tmp$ret$3;
406
+ // Inline function 'kotlin.text.buildString' call
407
+ // Inline function 'kotlin.contracts.contract' call
408
+ var tmp$ret$2;
409
+ // Inline function 'kotlin.apply' call
410
+ var tmp0_apply = StringBuilder_init_$Create$();
411
+ // Inline function 'kotlin.contracts.contract' call
412
+ // Inline function 'kotlinx.serialization.json.JsonObject.toString.<anonymous>.<anonymous>' call
413
+ printQuoted(tmp0_apply, k);
414
+ tmp0_apply.x4(_Char___init__impl__6a9atx(58));
415
+ tmp0_apply.x5(v);
416
+ tmp$ret$2 = tmp0_apply;
417
+ tmp$ret$3 = tmp$ret$2.toString();
418
+ return tmp$ret$3;
419
+ }
420
+ function JsonObject(content) {
421
+ Companion_getInstance_6();
422
+ JsonElement.call(this);
423
+ this.b13_1 = content;
424
+ }
425
+ protoOf(JsonObject).u = function () {
426
+ return this.b13_1.u();
427
+ };
428
+ protoOf(JsonObject).n2 = function () {
429
+ return this.b13_1.n2();
430
+ };
431
+ protoOf(JsonObject).f = function () {
432
+ return this.b13_1.f();
433
+ };
434
+ protoOf(JsonObject).c13 = function (key) {
435
+ return this.b13_1.i2(key);
436
+ };
437
+ protoOf(JsonObject).i2 = function (key) {
438
+ if (!(!(key == null) ? typeof key === 'string' : false))
439
+ return false;
440
+ return this.c13((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
441
+ };
442
+ protoOf(JsonObject).d13 = function (key) {
443
+ return this.b13_1.m2(key);
444
+ };
445
+ protoOf(JsonObject).m2 = function (key) {
446
+ if (!(!(key == null) ? typeof key === 'string' : false))
447
+ return null;
448
+ return this.d13((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
449
+ };
450
+ protoOf(JsonObject).g = function () {
451
+ return this.b13_1.g();
452
+ };
453
+ protoOf(JsonObject).equals = function (other) {
454
+ return equals(this.b13_1, other);
455
+ };
456
+ protoOf(JsonObject).hashCode = function () {
457
+ return hashCode(this.b13_1);
458
+ };
459
+ protoOf(JsonObject).toString = function () {
460
+ var tmp = this.b13_1.u();
461
+ return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
462
+ };
463
+ function get_jsonObject(_this__u8e3s4) {
464
+ _init_properties_JsonElement_kt__7cbdc2();
465
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonObject ? _this__u8e3s4 : null;
466
+ var tmp;
467
+ if (tmp0_elvis_lhs == null) {
468
+ error(_this__u8e3s4, 'JsonObject');
469
+ } else {
470
+ tmp = tmp0_elvis_lhs;
471
+ }
472
+ return tmp;
473
+ }
474
+ function Companion_1() {
475
+ Companion_instance_1 = this;
476
+ }
477
+ var Companion_instance_1;
478
+ function Companion_getInstance_7() {
479
+ if (Companion_instance_1 == null)
480
+ new Companion_1();
481
+ return Companion_instance_1;
482
+ }
483
+ function JsonPrimitive() {
484
+ Companion_getInstance_7();
485
+ JsonElement.call(this);
486
+ }
487
+ protoOf(JsonPrimitive).toString = function () {
488
+ return this.e13();
489
+ };
490
+ function get_boolean(_this__u8e3s4) {
491
+ _init_properties_JsonElement_kt__7cbdc2();
492
+ var tmp0_elvis_lhs = toBooleanStrictOrNull(_this__u8e3s4.e13());
493
+ var tmp;
494
+ if (tmp0_elvis_lhs == null) {
495
+ throw IllegalStateException_init_$Create$('' + _this__u8e3s4 + ' does not represent a Boolean');
496
+ } else {
497
+ tmp = tmp0_elvis_lhs;
498
+ }
499
+ return tmp;
500
+ }
501
+ function Companion_2() {
502
+ Companion_instance_2 = this;
503
+ }
504
+ var Companion_instance_2;
505
+ function Companion_getInstance_8() {
506
+ if (Companion_instance_2 == null)
507
+ new Companion_2();
508
+ return Companion_instance_2;
509
+ }
510
+ function JsonArray(content) {
511
+ Companion_getInstance_8();
512
+ JsonElement.call(this);
513
+ this.f13_1 = content;
514
+ }
515
+ protoOf(JsonArray).f = function () {
516
+ return this.f13_1.f();
517
+ };
518
+ protoOf(JsonArray).g13 = function (element) {
519
+ return this.f13_1.i1(element);
520
+ };
521
+ protoOf(JsonArray).i1 = function (element) {
522
+ if (!(element instanceof JsonElement))
523
+ return false;
524
+ return this.g13(element instanceof JsonElement ? element : THROW_CCE());
525
+ };
526
+ protoOf(JsonArray).h13 = function (elements) {
527
+ return this.f13_1.j1(elements);
528
+ };
529
+ protoOf(JsonArray).j1 = function (elements) {
530
+ return this.h13(elements);
531
+ };
532
+ protoOf(JsonArray).h = function (index) {
533
+ return this.f13_1.h(index);
534
+ };
535
+ protoOf(JsonArray).g = function () {
536
+ return this.f13_1.g();
537
+ };
538
+ protoOf(JsonArray).c = function () {
539
+ return this.f13_1.c();
540
+ };
541
+ protoOf(JsonArray).p1 = function () {
542
+ return this.f13_1.p1();
543
+ };
544
+ protoOf(JsonArray).i = function (index) {
545
+ return this.f13_1.i(index);
546
+ };
547
+ protoOf(JsonArray).s = function (fromIndex, toIndex) {
548
+ return this.f13_1.s(fromIndex, toIndex);
549
+ };
550
+ protoOf(JsonArray).equals = function (other) {
551
+ return equals(this.f13_1, other);
552
+ };
553
+ protoOf(JsonArray).hashCode = function () {
554
+ return hashCode(this.f13_1);
555
+ };
556
+ protoOf(JsonArray).toString = function () {
557
+ return joinToString(this.f13_1, ',', '[', ']');
558
+ };
559
+ function error(_this__u8e3s4, element) {
560
+ _init_properties_JsonElement_kt__7cbdc2();
561
+ throw IllegalArgumentException_init_$Create$('Element ' + getKClassFromExpression(_this__u8e3s4) + ' is not a ' + element);
562
+ }
563
+ function JsonLiteral(body, isString, coerceToInlineType) {
564
+ coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
565
+ JsonPrimitive.call(this);
566
+ this.i13_1 = isString;
567
+ this.j13_1 = coerceToInlineType;
568
+ this.k13_1 = toString(body);
569
+ if (!(this.j13_1 == null)) {
570
+ // Inline function 'kotlin.require' call
571
+ var tmp0_require = this.j13_1.nm();
572
+ // Inline function 'kotlin.contracts.contract' call
573
+ // Inline function 'kotlin.require' call
574
+ // Inline function 'kotlin.contracts.contract' call
575
+ if (!tmp0_require) {
576
+ var tmp$ret$0;
577
+ // Inline function 'kotlin.require.<anonymous>' call
578
+ tmp$ret$0 = 'Failed requirement.';
579
+ var message = tmp$ret$0;
580
+ throw IllegalArgumentException_init_$Create$(toString(message));
581
+ }
582
+ }
583
+ }
584
+ protoOf(JsonLiteral).e13 = function () {
585
+ return this.k13_1;
586
+ };
587
+ protoOf(JsonLiteral).toString = function () {
588
+ var tmp;
589
+ if (this.i13_1) {
590
+ var tmp$ret$1;
591
+ // Inline function 'kotlin.text.buildString' call
592
+ // Inline function 'kotlin.contracts.contract' call
593
+ var tmp$ret$0;
594
+ // Inline function 'kotlin.apply' call
595
+ var tmp0_apply = StringBuilder_init_$Create$();
596
+ // Inline function 'kotlin.contracts.contract' call
597
+ // Inline function 'kotlinx.serialization.json.JsonLiteral.toString.<anonymous>' call
598
+ printQuoted(tmp0_apply, this.k13_1);
599
+ tmp$ret$0 = tmp0_apply;
600
+ tmp$ret$1 = tmp$ret$0.toString();
601
+ tmp = tmp$ret$1;
602
+ } else {
603
+ tmp = this.k13_1;
604
+ }
605
+ return tmp;
606
+ };
607
+ protoOf(JsonLiteral).equals = function (other) {
608
+ if (this === other)
609
+ return true;
610
+ if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
611
+ return false;
612
+ if (other instanceof JsonLiteral)
613
+ other;
614
+ else
615
+ THROW_CCE();
616
+ if (!(this.i13_1 === other.i13_1))
617
+ return false;
618
+ if (!(this.k13_1 === other.k13_1))
619
+ return false;
620
+ return true;
621
+ };
622
+ protoOf(JsonLiteral).hashCode = function () {
623
+ var result = this.i13_1 | 0;
624
+ result = imul(31, result) + getStringHashCode(this.k13_1) | 0;
625
+ return result;
626
+ };
627
+ function JsonNull$$cachedSerializer$delegate$_anonymous__7w2ks1() {
628
+ return JsonNullSerializer_getInstance();
629
+ }
630
+ function JsonNull() {
631
+ JsonNull_instance = this;
632
+ JsonPrimitive.call(this);
633
+ this.l13_1 = 'null';
634
+ var tmp = this;
635
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
636
+ tmp.m13_1 = lazy(tmp_0, JsonNull$$cachedSerializer$delegate$_anonymous__7w2ks1);
637
+ }
638
+ protoOf(JsonNull).e13 = function () {
639
+ return this.l13_1;
640
+ };
641
+ protoOf(JsonNull).n13 = function () {
642
+ return this.m13_1.w();
643
+ };
644
+ protoOf(JsonNull).ru = function (typeParamsSerializers) {
645
+ return this.n13();
646
+ };
647
+ var JsonNull_instance;
648
+ function JsonNull_getInstance() {
649
+ if (JsonNull_instance == null)
650
+ new JsonNull();
651
+ return JsonNull_instance;
652
+ }
653
+ function get_booleanOrNull(_this__u8e3s4) {
654
+ _init_properties_JsonElement_kt__7cbdc2();
655
+ return toBooleanStrictOrNull(_this__u8e3s4.e13());
656
+ }
657
+ function JsonPrimitive_0(value) {
658
+ _init_properties_JsonElement_kt__7cbdc2();
659
+ if (value == null)
660
+ return JsonNull_getInstance();
661
+ return new JsonLiteral(value, true);
662
+ }
663
+ function get_int(_this__u8e3s4) {
664
+ _init_properties_JsonElement_kt__7cbdc2();
665
+ return toInt(_this__u8e3s4.e13());
666
+ }
667
+ function get_long(_this__u8e3s4) {
668
+ _init_properties_JsonElement_kt__7cbdc2();
669
+ return toLong(_this__u8e3s4.e13());
670
+ }
671
+ function get_float(_this__u8e3s4) {
672
+ _init_properties_JsonElement_kt__7cbdc2();
673
+ var tmp$ret$2;
674
+ // Inline function 'kotlin.text.toFloat' call
675
+ var tmp1_toFloat = _this__u8e3s4.e13();
676
+ var tmp$ret$1;
677
+ // Inline function 'kotlin.js.unsafeCast' call
678
+ var tmp0_unsafeCast = toDouble(tmp1_toFloat);
679
+ var tmp$ret$0;
680
+ // Inline function 'kotlin.js.asDynamic' call
681
+ tmp$ret$0 = tmp0_unsafeCast;
682
+ tmp$ret$1 = tmp$ret$0;
683
+ tmp$ret$2 = tmp$ret$1;
684
+ return tmp$ret$2;
685
+ }
686
+ function get_double(_this__u8e3s4) {
687
+ _init_properties_JsonElement_kt__7cbdc2();
688
+ return toDouble(_this__u8e3s4.e13());
689
+ }
690
+ function get_contentOrNull(_this__u8e3s4) {
691
+ _init_properties_JsonElement_kt__7cbdc2();
692
+ var tmp;
693
+ if (_this__u8e3s4 instanceof JsonNull) {
694
+ tmp = null;
695
+ } else {
696
+ tmp = _this__u8e3s4.e13();
697
+ }
698
+ return tmp;
699
+ }
700
+ function get_jsonPrimitive(_this__u8e3s4) {
701
+ _init_properties_JsonElement_kt__7cbdc2();
702
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonPrimitive ? _this__u8e3s4 : null;
703
+ var tmp;
704
+ if (tmp0_elvis_lhs == null) {
705
+ error(_this__u8e3s4, 'JsonPrimitive');
706
+ } else {
707
+ tmp = tmp0_elvis_lhs;
708
+ }
709
+ return tmp;
710
+ }
711
+ var properties_initialized_JsonElement_kt_abxy8s;
712
+ function _init_properties_JsonElement_kt__7cbdc2() {
713
+ if (properties_initialized_JsonElement_kt_abxy8s) {
714
+ } else {
715
+ properties_initialized_JsonElement_kt_abxy8s = true;
716
+ jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_getInstance()));
717
+ }
718
+ }
719
+ function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
720
+ $this$buildSerialDescriptor.tl('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
721
+ $this$buildSerialDescriptor.tl('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0));
722
+ $this$buildSerialDescriptor.tl('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1));
723
+ $this$buildSerialDescriptor.tl('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2));
724
+ $this$buildSerialDescriptor.tl('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3));
725
+ return Unit_getInstance();
726
+ }
727
+ function JsonElementSerializer$descriptor$lambda$lambda() {
728
+ return JsonPrimitiveSerializer_getInstance().o13_1;
729
+ }
730
+ function JsonElementSerializer$descriptor$lambda$lambda_0() {
731
+ return JsonNullSerializer_getInstance().p13_1;
732
+ }
733
+ function JsonElementSerializer$descriptor$lambda$lambda_1() {
734
+ return JsonLiteralSerializer_getInstance().q13_1;
735
+ }
736
+ function JsonElementSerializer$descriptor$lambda$lambda_2() {
737
+ return JsonObjectSerializer_getInstance().r13_1;
738
+ }
739
+ function JsonElementSerializer$descriptor$lambda$lambda_3() {
740
+ return JsonArraySerializer_getInstance().s13_1;
741
+ }
742
+ function JsonElementSerializer() {
743
+ JsonElementSerializer_instance = this;
744
+ var tmp = this;
745
+ var tmp_0 = SEALED_getInstance();
746
+ tmp.t13_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
747
+ }
748
+ protoOf(JsonElementSerializer).jl = function () {
749
+ return this.t13_1;
750
+ };
751
+ protoOf(JsonElementSerializer).kl = function (decoder) {
752
+ var input = asJsonDecoder(decoder);
753
+ return input.a13();
754
+ };
755
+ var JsonElementSerializer_instance;
756
+ function JsonElementSerializer_getInstance() {
757
+ if (JsonElementSerializer_instance == null)
758
+ new JsonElementSerializer();
759
+ return JsonElementSerializer_instance;
760
+ }
761
+ function JsonObjectDescriptor() {
762
+ JsonObjectDescriptor_instance = this;
763
+ this.u13_1 = MapSerializer(serializer(StringCompanionObject_getInstance()), JsonElementSerializer_getInstance()).jl();
764
+ this.v13_1 = 'kotlinx.serialization.json.JsonObject';
765
+ }
766
+ protoOf(JsonObjectDescriptor).lm = function () {
767
+ return this.u13_1.lm();
768
+ };
769
+ protoOf(JsonObjectDescriptor).mm = function () {
770
+ return this.u13_1.mm();
771
+ };
772
+ protoOf(JsonObjectDescriptor).nm = function () {
773
+ return this.u13_1.nm();
774
+ };
775
+ protoOf(JsonObjectDescriptor).gm = function () {
776
+ return this.u13_1.gm();
777
+ };
778
+ protoOf(JsonObjectDescriptor).om = function () {
779
+ return this.u13_1.om();
780
+ };
781
+ protoOf(JsonObjectDescriptor).pm = function (index) {
782
+ return this.u13_1.pm(index);
783
+ };
784
+ protoOf(JsonObjectDescriptor).qm = function (index) {
785
+ return this.u13_1.qm(index);
786
+ };
787
+ protoOf(JsonObjectDescriptor).rm = function (name) {
788
+ return this.u13_1.rm(name);
789
+ };
790
+ protoOf(JsonObjectDescriptor).sm = function (index) {
791
+ return this.u13_1.sm(index);
792
+ };
793
+ protoOf(JsonObjectDescriptor).tm = function (index) {
794
+ return this.u13_1.tm(index);
795
+ };
796
+ protoOf(JsonObjectDescriptor).km = function () {
797
+ return this.v13_1;
798
+ };
799
+ var JsonObjectDescriptor_instance;
800
+ function JsonObjectDescriptor_getInstance() {
801
+ if (JsonObjectDescriptor_instance == null)
802
+ new JsonObjectDescriptor();
803
+ return JsonObjectDescriptor_instance;
804
+ }
805
+ function JsonObjectSerializer() {
806
+ JsonObjectSerializer_instance = this;
807
+ this.r13_1 = JsonObjectDescriptor_getInstance();
808
+ }
809
+ protoOf(JsonObjectSerializer).jl = function () {
810
+ return this.r13_1;
811
+ };
812
+ protoOf(JsonObjectSerializer).kl = function (decoder) {
813
+ verify(decoder);
814
+ return new JsonObject(MapSerializer(serializer(StringCompanionObject_getInstance()), JsonElementSerializer_getInstance()).kl(decoder));
815
+ };
816
+ var JsonObjectSerializer_instance;
817
+ function JsonObjectSerializer_getInstance() {
818
+ if (JsonObjectSerializer_instance == null)
819
+ new JsonObjectSerializer();
820
+ return JsonObjectSerializer_instance;
821
+ }
822
+ function JsonPrimitiveSerializer() {
823
+ JsonPrimitiveSerializer_instance = this;
824
+ this.o13_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
825
+ }
826
+ protoOf(JsonPrimitiveSerializer).jl = function () {
827
+ return this.o13_1;
828
+ };
829
+ protoOf(JsonPrimitiveSerializer).kl = function (decoder) {
830
+ var result = asJsonDecoder(decoder).a13();
831
+ if (!(result instanceof JsonPrimitive))
832
+ throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + getKClassFromExpression(result), toString(result));
833
+ return result;
834
+ };
835
+ var JsonPrimitiveSerializer_instance;
836
+ function JsonPrimitiveSerializer_getInstance() {
837
+ if (JsonPrimitiveSerializer_instance == null)
838
+ new JsonPrimitiveSerializer();
839
+ return JsonPrimitiveSerializer_instance;
840
+ }
841
+ function JsonArrayDescriptor() {
842
+ JsonArrayDescriptor_instance = this;
843
+ this.w13_1 = ListSerializer(JsonElementSerializer_getInstance()).jl();
844
+ this.x13_1 = 'kotlinx.serialization.json.JsonArray';
845
+ }
846
+ protoOf(JsonArrayDescriptor).lm = function () {
847
+ return this.w13_1.lm();
848
+ };
849
+ protoOf(JsonArrayDescriptor).mm = function () {
850
+ return this.w13_1.mm();
851
+ };
852
+ protoOf(JsonArrayDescriptor).nm = function () {
853
+ return this.w13_1.nm();
854
+ };
855
+ protoOf(JsonArrayDescriptor).gm = function () {
856
+ return this.w13_1.gm();
857
+ };
858
+ protoOf(JsonArrayDescriptor).om = function () {
859
+ return this.w13_1.om();
860
+ };
861
+ protoOf(JsonArrayDescriptor).pm = function (index) {
862
+ return this.w13_1.pm(index);
863
+ };
864
+ protoOf(JsonArrayDescriptor).qm = function (index) {
865
+ return this.w13_1.qm(index);
866
+ };
867
+ protoOf(JsonArrayDescriptor).rm = function (name) {
868
+ return this.w13_1.rm(name);
869
+ };
870
+ protoOf(JsonArrayDescriptor).sm = function (index) {
871
+ return this.w13_1.sm(index);
872
+ };
873
+ protoOf(JsonArrayDescriptor).tm = function (index) {
874
+ return this.w13_1.tm(index);
875
+ };
876
+ protoOf(JsonArrayDescriptor).km = function () {
877
+ return this.x13_1;
878
+ };
879
+ var JsonArrayDescriptor_instance;
880
+ function JsonArrayDescriptor_getInstance() {
881
+ if (JsonArrayDescriptor_instance == null)
882
+ new JsonArrayDescriptor();
883
+ return JsonArrayDescriptor_instance;
884
+ }
885
+ function JsonArraySerializer() {
886
+ JsonArraySerializer_instance = this;
887
+ this.s13_1 = JsonArrayDescriptor_getInstance();
888
+ }
889
+ protoOf(JsonArraySerializer).jl = function () {
890
+ return this.s13_1;
891
+ };
892
+ protoOf(JsonArraySerializer).kl = function (decoder) {
893
+ verify(decoder);
894
+ return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).kl(decoder));
895
+ };
896
+ var JsonArraySerializer_instance;
897
+ function JsonArraySerializer_getInstance() {
898
+ if (JsonArraySerializer_instance == null)
899
+ new JsonArraySerializer();
900
+ return JsonArraySerializer_instance;
901
+ }
902
+ function JsonNullSerializer() {
903
+ JsonNullSerializer_instance = this;
904
+ this.p13_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
905
+ }
906
+ protoOf(JsonNullSerializer).jl = function () {
907
+ return this.p13_1;
908
+ };
909
+ protoOf(JsonNullSerializer).kl = function (decoder) {
910
+ verify(decoder);
911
+ if (decoder.sn()) {
912
+ throw new JsonDecodingException("Expected 'null' literal");
913
+ }
914
+ decoder.tn();
915
+ return JsonNull_getInstance();
916
+ };
917
+ var JsonNullSerializer_instance;
918
+ function JsonNullSerializer_getInstance() {
919
+ if (JsonNullSerializer_instance == null)
920
+ new JsonNullSerializer();
921
+ return JsonNullSerializer_instance;
922
+ }
923
+ function defer(deferred) {
924
+ return new defer$1(deferred);
925
+ }
926
+ function JsonLiteralSerializer() {
927
+ JsonLiteralSerializer_instance = this;
928
+ this.q13_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
929
+ }
930
+ protoOf(JsonLiteralSerializer).jl = function () {
931
+ return this.q13_1;
932
+ };
933
+ protoOf(JsonLiteralSerializer).kl = function (decoder) {
934
+ var result = asJsonDecoder(decoder).a13();
935
+ if (!(result instanceof JsonLiteral))
936
+ throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + getKClassFromExpression(result), toString(result));
937
+ return result;
938
+ };
939
+ var JsonLiteralSerializer_instance;
940
+ function JsonLiteralSerializer_getInstance() {
941
+ if (JsonLiteralSerializer_instance == null)
942
+ new JsonLiteralSerializer();
943
+ return JsonLiteralSerializer_instance;
944
+ }
945
+ function asJsonDecoder(_this__u8e3s4) {
946
+ var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonDecoder) ? _this__u8e3s4 : null;
947
+ var tmp;
948
+ if (tmp0_elvis_lhs == null) {
949
+ throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Decoder to be JsonDecoder, got ' + getKClassFromExpression(_this__u8e3s4)));
950
+ } else {
951
+ tmp = tmp0_elvis_lhs;
952
+ }
953
+ return tmp;
954
+ }
955
+ function verify(decoder) {
956
+ asJsonDecoder(decoder);
957
+ }
958
+ function _get_original__l7ku1m($this) {
959
+ var tmp$ret$0;
960
+ // Inline function 'kotlin.getValue' call
961
+ var tmp0_getValue = original$factory();
962
+ tmp$ret$0 = $this.y13_1.w();
963
+ return tmp$ret$0;
964
+ }
965
+ function defer$1($deferred) {
966
+ this.y13_1 = lazy_0($deferred);
967
+ }
968
+ protoOf(defer$1).km = function () {
969
+ return _get_original__l7ku1m(this).km();
970
+ };
971
+ protoOf(defer$1).om = function () {
972
+ return _get_original__l7ku1m(this).om();
973
+ };
974
+ protoOf(defer$1).mm = function () {
975
+ return _get_original__l7ku1m(this).mm();
976
+ };
977
+ protoOf(defer$1).sm = function (index) {
978
+ return _get_original__l7ku1m(this).sm(index);
979
+ };
980
+ protoOf(defer$1).rm = function (name) {
981
+ return _get_original__l7ku1m(this).rm(name);
982
+ };
983
+ protoOf(defer$1).pm = function (index) {
984
+ return _get_original__l7ku1m(this).pm(index);
985
+ };
986
+ protoOf(defer$1).qm = function (index) {
987
+ return _get_original__l7ku1m(this).qm(index);
988
+ };
989
+ protoOf(defer$1).tm = function (index) {
990
+ return _get_original__l7ku1m(this).tm(index);
991
+ };
992
+ function original$factory() {
993
+ return getPropertyCallableRef('original', 1, KProperty1, function (receiver) {
994
+ return _get_original__l7ku1m(receiver);
995
+ }, null);
996
+ }
997
+ function readIfAbsent($this, descriptor, index) {
998
+ $this.a14_1 = !descriptor.tm(index) ? descriptor.qm(index).gm() : false;
999
+ return $this.a14_1;
1000
+ }
1001
+ function JsonElementMarker$readIfAbsent$ref($boundThis) {
1002
+ var l = function (p0, p1) {
1003
+ return readIfAbsent($boundThis, p0, p1);
1004
+ };
1005
+ l.callableName = 'readIfAbsent';
1006
+ return l;
1007
+ }
1008
+ function JsonElementMarker(descriptor) {
1009
+ var tmp = this;
1010
+ tmp.z13_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
1011
+ this.a14_1 = false;
1012
+ }
1013
+ protoOf(JsonElementMarker).ks = function (index) {
1014
+ this.z13_1.ks(index);
1015
+ };
1016
+ protoOf(JsonElementMarker).ls = function () {
1017
+ return this.z13_1.ls();
1018
+ };
1019
+ function JsonDecodingException(message) {
1020
+ JsonException.call(this, message);
1021
+ captureStack(this, JsonDecodingException);
1022
+ }
1023
+ function JsonDecodingException_0(offset, message, input) {
1024
+ return JsonDecodingException_1(offset, message + '\nJSON input: ' + minify(input, offset));
1025
+ }
1026
+ function JsonException(message) {
1027
+ SerializationException_init_$Init$(message, this);
1028
+ captureStack(this, JsonException);
1029
+ }
1030
+ function JsonDecodingException_1(offset, message) {
1031
+ return new JsonDecodingException(offset >= 0 ? 'Unexpected JSON token at offset ' + offset + ': ' + message : message);
1032
+ }
1033
+ function minify(_this__u8e3s4, offset) {
1034
+ offset = offset === VOID ? -1 : offset;
1035
+ if (charSequenceLength(_this__u8e3s4) < 200)
1036
+ return _this__u8e3s4;
1037
+ if (offset === -1) {
1038
+ var start = charSequenceLength(_this__u8e3s4) - 60 | 0;
1039
+ if (start <= 0)
1040
+ return _this__u8e3s4;
1041
+ var tmp$ret$0;
1042
+ // Inline function 'kotlin.text.substring' call
1043
+ var tmp0_substring = charSequenceLength(_this__u8e3s4);
1044
+ tmp$ret$0 = toString(charSequenceSubSequence(_this__u8e3s4, start, tmp0_substring));
1045
+ return '.....' + tmp$ret$0;
1046
+ }
1047
+ var start_0 = offset - 30 | 0;
1048
+ var end = offset + 30 | 0;
1049
+ var prefix = start_0 <= 0 ? '' : '.....';
1050
+ var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
1051
+ var tmp$ret$1;
1052
+ // Inline function 'kotlin.text.substring' call
1053
+ var tmp1_substring = coerceAtLeast(start_0, 0);
1054
+ var tmp2_substring = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
1055
+ tmp$ret$1 = toString(charSequenceSubSequence(_this__u8e3s4, tmp1_substring, tmp2_substring));
1056
+ return prefix + tmp$ret$1 + suffix;
1057
+ }
1058
+ function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
1059
+ _this__u8e3s4.b14('Unexpected special floating-point value ' + toString(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, get_specialFlowingValuesHint());
1060
+ }
1061
+ function JsonEncodingException(message) {
1062
+ JsonException.call(this, message);
1063
+ captureStack(this, JsonEncodingException);
1064
+ }
1065
+ function InvalidKeyKindException(keyDescriptor) {
1066
+ return new JsonEncodingException("Value of type '" + keyDescriptor.km() + "' 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.om() + "'.\n") + get_allowStructuredMapKeysHint());
1067
+ }
1068
+ function InvalidFloatingPointDecoded(value, key, output) {
1069
+ return JsonDecodingException_1(-1, unexpectedFpErrorMessage(value, key, output));
1070
+ }
1071
+ function UnknownKeyException(key, input) {
1072
+ return JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "'.\n" + (get_ignoreUnknownKeysHint() + '\n') + ('Current input: ' + minify(input)));
1073
+ }
1074
+ function unexpectedFpErrorMessage(value, key, output) {
1075
+ return 'Unexpected special floating-point value ' + toString(value) + ' with key ' + key + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + (get_specialFlowingValuesHint() + '\n') + ('Current output: ' + minify(output));
1076
+ }
1077
+ function get_JsonDeserializationNamesKey() {
1078
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1079
+ return JsonDeserializationNamesKey;
1080
+ }
1081
+ var JsonDeserializationNamesKey;
1082
+ var JsonSerializationNamesKey;
1083
+ function getJsonNameIndex(_this__u8e3s4, json, name) {
1084
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1085
+ var strategy = namingStrategy(_this__u8e3s4, json);
1086
+ if (!(strategy == null))
1087
+ return getJsonNameIndex$getJsonNameIndexSlowPath(json, _this__u8e3s4, name);
1088
+ var index = _this__u8e3s4.rm(name);
1089
+ Companion_getInstance();
1090
+ if (!(index === -3))
1091
+ return index;
1092
+ if (!json.g11_1.x12_1)
1093
+ return index;
1094
+ return getJsonNameIndex$getJsonNameIndexSlowPath(json, _this__u8e3s4, name);
1095
+ }
1096
+ function getJsonNameIndexOrThrow(_this__u8e3s4, json, name, suffix) {
1097
+ suffix = suffix === VOID ? '' : suffix;
1098
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1099
+ var index = getJsonNameIndex(_this__u8e3s4, json, name);
1100
+ Companion_getInstance();
1101
+ if (index === -3)
1102
+ throw SerializationException_init_$Create$(_this__u8e3s4.km() + " does not contain element with name '" + name + "'" + suffix);
1103
+ return index;
1104
+ }
1105
+ function namingStrategy(_this__u8e3s4, json) {
1106
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1107
+ return equals(_this__u8e3s4.om(), CLASS_getInstance()) ? json.g11_1.y12_1 : null;
1108
+ }
1109
+ function deserializationNamesMap(_this__u8e3s4, descriptor) {
1110
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1111
+ var tmp = get_schemaCache(_this__u8e3s4);
1112
+ var tmp_0 = get_JsonDeserializationNamesKey();
1113
+ return tmp.d14(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
1114
+ }
1115
+ function buildDeserializationNamesMap(_this__u8e3s4, json) {
1116
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1117
+ var tmp$ret$0;
1118
+ // Inline function 'kotlin.collections.mutableMapOf' call
1119
+ tmp$ret$0 = LinkedHashMap_init_$Create$();
1120
+ var builder = tmp$ret$0;
1121
+ var strategy = namingStrategy(_this__u8e3s4, json);
1122
+ var inductionVariable = 0;
1123
+ var last = _this__u8e3s4.mm();
1124
+ if (inductionVariable < last)
1125
+ do {
1126
+ var i = inductionVariable;
1127
+ inductionVariable = inductionVariable + 1 | 0;
1128
+ var tmp$ret$2;
1129
+ // Inline function 'kotlin.collections.filterIsInstance' call
1130
+ var tmp1_filterIsInstance = _this__u8e3s4.pm(i);
1131
+ var tmp$ret$1;
1132
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
1133
+ var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
1134
+ var tmp0_iterator = tmp1_filterIsInstance.c();
1135
+ while (tmp0_iterator.d()) {
1136
+ var element = tmp0_iterator.e();
1137
+ if (element instanceof JsonNames) {
1138
+ tmp0_filterIsInstanceTo.a(element);
1139
+ }
1140
+ }
1141
+ tmp$ret$1 = tmp0_filterIsInstanceTo;
1142
+ tmp$ret$2 = tmp$ret$1;
1143
+ var tmp1_safe_receiver = singleOrNull(tmp$ret$2);
1144
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e14_1;
1145
+ if (tmp2_safe_receiver == null)
1146
+ null;
1147
+ else {
1148
+ // Inline function 'kotlin.collections.forEach' call
1149
+ var tmp0_iterator_0 = arrayIterator(tmp2_safe_receiver);
1150
+ while (tmp0_iterator_0.d()) {
1151
+ var element_0 = tmp0_iterator_0.e();
1152
+ // Inline function 'kotlinx.serialization.json.internal.buildDeserializationNamesMap.<anonymous>' call
1153
+ buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, element_0, i);
1154
+ }
1155
+ }
1156
+ var tmp3_safe_receiver = strategy;
1157
+ if (tmp3_safe_receiver == null)
1158
+ null;
1159
+ else {
1160
+ var tmp$ret$3;
1161
+ // Inline function 'kotlin.let' call
1162
+ // Inline function 'kotlin.contracts.contract' call
1163
+ buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, tmp3_safe_receiver.f14(_this__u8e3s4, i, _this__u8e3s4.sm(i)), i);
1164
+ tmp$ret$3 = Unit_getInstance();
1165
+ }
1166
+ }
1167
+ while (inductionVariable < last);
1168
+ var tmp$ret$5;
1169
+ // Inline function 'kotlin.collections.ifEmpty' call
1170
+ var tmp;
1171
+ if (builder.g()) {
1172
+ var tmp$ret$4;
1173
+ // Inline function 'kotlinx.serialization.json.internal.buildDeserializationNamesMap.<anonymous>' call
1174
+ tmp$ret$4 = emptyMap();
1175
+ tmp = tmp$ret$4;
1176
+ } else {
1177
+ tmp = builder;
1178
+ }
1179
+ tmp$ret$5 = tmp;
1180
+ return tmp$ret$5;
1181
+ }
1182
+ function getJsonNameIndex$getJsonNameIndexSlowPath($json, $this_getJsonNameIndex, $name) {
1183
+ var tmp0_elvis_lhs = deserializationNamesMap($json, $this_getJsonNameIndex).m2($name);
1184
+ var tmp;
1185
+ if (tmp0_elvis_lhs == null) {
1186
+ Companion_getInstance();
1187
+ tmp = -3;
1188
+ } else {
1189
+ tmp = tmp0_elvis_lhs;
1190
+ }
1191
+ return tmp;
1192
+ }
1193
+ function buildDeserializationNamesMap$putOrThrow(_this__u8e3s4, $this_buildDeserializationNamesMap, name, index) {
1194
+ var tmp$ret$1;
1195
+ // Inline function 'kotlin.collections.contains' call
1196
+ var tmp$ret$0;
1197
+ // Inline function 'kotlin.collections.containsKey' call
1198
+ tmp$ret$0 = (isInterface(_this__u8e3s4, Map) ? _this__u8e3s4 : THROW_CCE()).i2(name);
1199
+ tmp$ret$1 = tmp$ret$0;
1200
+ if (tmp$ret$1) {
1201
+ throw new JsonException("The suggested name '" + name + "' for property " + $this_buildDeserializationNamesMap.sm(index) + ' is already one of the names for property ' + ($this_buildDeserializationNamesMap.sm(getValue(_this__u8e3s4, name)) + ' in ' + $this_buildDeserializationNamesMap));
1202
+ }
1203
+ // Inline function 'kotlin.collections.set' call
1204
+ _this__u8e3s4.k3(name, index);
1205
+ }
1206
+ function deserializationNamesMap$lambda($descriptor, $this_deserializationNamesMap) {
1207
+ return function () {
1208
+ return buildDeserializationNamesMap($descriptor, $this_deserializationNamesMap);
1209
+ };
1210
+ }
1211
+ var properties_initialized_JsonNamesMap_kt_ljpf42;
1212
+ function _init_properties_JsonNamesMap_kt__cbbp0k() {
1213
+ if (properties_initialized_JsonNamesMap_kt_ljpf42) {
1214
+ } else {
1215
+ properties_initialized_JsonNamesMap_kt_ljpf42 = true;
1216
+ JsonDeserializationNamesKey = new Key();
1217
+ JsonSerializationNamesKey = new Key();
1218
+ }
1219
+ }
1220
+ function Tombstone() {
1221
+ Tombstone_instance = this;
1222
+ }
1223
+ var Tombstone_instance;
1224
+ function Tombstone_getInstance() {
1225
+ if (Tombstone_instance == null)
1226
+ new Tombstone();
1227
+ return Tombstone_instance;
1228
+ }
1229
+ function resize($this) {
1230
+ var newSize = imul($this.i14_1, 2);
1231
+ $this.g14_1 = copyOf($this.g14_1, newSize);
1232
+ $this.h14_1 = copyOf_0($this.h14_1, newSize);
1233
+ }
1234
+ function JsonPath() {
1235
+ var tmp = this;
1236
+ var tmp$ret$0;
1237
+ // Inline function 'kotlin.arrayOfNulls' call
1238
+ tmp$ret$0 = fillArrayVal(Array(8), null);
1239
+ tmp.g14_1 = tmp$ret$0;
1240
+ var tmp_0 = this;
1241
+ var tmp_1 = 0;
1242
+ var tmp_2 = 8;
1243
+ var tmp_3 = new Int32Array(tmp_2);
1244
+ while (tmp_1 < tmp_2) {
1245
+ var tmp_4 = tmp_1;
1246
+ var tmp$ret$1;
1247
+ // Inline function 'kotlinx.serialization.json.internal.JsonPath.indicies.<anonymous>' call
1248
+ tmp$ret$1 = -1;
1249
+ tmp_3[tmp_4] = tmp$ret$1;
1250
+ tmp_1 = tmp_1 + 1 | 0;
1251
+ }
1252
+ tmp_0.h14_1 = tmp_3;
1253
+ this.i14_1 = -1;
1254
+ }
1255
+ protoOf(JsonPath).j14 = function (sd) {
1256
+ var tmp0_this = this;
1257
+ tmp0_this.i14_1 = tmp0_this.i14_1 + 1 | 0;
1258
+ var depth = tmp0_this.i14_1;
1259
+ if (depth === this.g14_1.length) {
1260
+ resize(this);
1261
+ }
1262
+ this.g14_1[depth] = sd;
1263
+ };
1264
+ protoOf(JsonPath).k14 = function (index) {
1265
+ this.h14_1[this.i14_1] = index;
1266
+ };
1267
+ protoOf(JsonPath).l14 = function (key) {
1268
+ var tmp;
1269
+ if (!(this.h14_1[this.i14_1] === -2)) {
1270
+ var tmp0_this = this;
1271
+ tmp0_this.i14_1 = tmp0_this.i14_1 + 1 | 0;
1272
+ tmp = tmp0_this.i14_1 === this.g14_1.length;
1273
+ } else {
1274
+ tmp = false;
1275
+ }
1276
+ if (tmp) {
1277
+ resize(this);
1278
+ }
1279
+ this.g14_1[this.i14_1] = key;
1280
+ this.h14_1[this.i14_1] = -2;
1281
+ };
1282
+ protoOf(JsonPath).m14 = function () {
1283
+ if (this.h14_1[this.i14_1] === -2) {
1284
+ this.g14_1[this.i14_1] = Tombstone_getInstance();
1285
+ }
1286
+ };
1287
+ protoOf(JsonPath).n14 = function () {
1288
+ var depth = this.i14_1;
1289
+ if (this.h14_1[depth] === -2) {
1290
+ this.h14_1[depth] = -1;
1291
+ var tmp0_this = this;
1292
+ var tmp1 = tmp0_this.i14_1;
1293
+ tmp0_this.i14_1 = tmp1 - 1 | 0;
1294
+ }
1295
+ if (!(this.i14_1 === -1)) {
1296
+ var tmp2_this = this;
1297
+ var tmp3 = tmp2_this.i14_1;
1298
+ tmp2_this.i14_1 = tmp3 - 1 | 0;
1299
+ }
1300
+ };
1301
+ protoOf(JsonPath).o14 = function () {
1302
+ var tmp$ret$1;
1303
+ // Inline function 'kotlin.text.buildString' call
1304
+ // Inline function 'kotlin.contracts.contract' call
1305
+ var tmp$ret$0;
1306
+ // Inline function 'kotlin.apply' call
1307
+ var tmp0_apply = StringBuilder_init_$Create$();
1308
+ // Inline function 'kotlin.contracts.contract' call
1309
+ // Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath.<anonymous>' call
1310
+ tmp0_apply.y5('$');
1311
+ // Inline function 'kotlin.repeat' call
1312
+ var tmp0_repeat = this.i14_1 + 1 | 0;
1313
+ // Inline function 'kotlin.contracts.contract' call
1314
+ var inductionVariable = 0;
1315
+ if (inductionVariable < tmp0_repeat)
1316
+ do {
1317
+ var index = inductionVariable;
1318
+ inductionVariable = inductionVariable + 1 | 0;
1319
+ // Inline function 'kotlinx.serialization.json.internal.JsonPath.getPath.<anonymous>.<anonymous>' call
1320
+ var element = this.g14_1[index];
1321
+ if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
1322
+ if (equals(element.om(), LIST_getInstance())) {
1323
+ if (!(this.h14_1[index] === -1)) {
1324
+ tmp0_apply.y5('[');
1325
+ tmp0_apply.x5(this.h14_1[index]);
1326
+ tmp0_apply.y5(']');
1327
+ }
1328
+ } else {
1329
+ var idx = this.h14_1[index];
1330
+ if (idx >= 0) {
1331
+ tmp0_apply.y5('.');
1332
+ tmp0_apply.y5(element.sm(idx));
1333
+ }
1334
+ }
1335
+ } else {
1336
+ if (!(element === Tombstone_getInstance())) {
1337
+ tmp0_apply.y5('[');
1338
+ tmp0_apply.y5("'");
1339
+ tmp0_apply.x5(element);
1340
+ tmp0_apply.y5("'");
1341
+ tmp0_apply.y5(']');
1342
+ }
1343
+ }
1344
+ }
1345
+ while (inductionVariable < tmp0_repeat);
1346
+ tmp$ret$0 = tmp0_apply;
1347
+ tmp$ret$1 = tmp$ret$0.toString();
1348
+ return tmp$ret$1;
1349
+ };
1350
+ protoOf(JsonPath).toString = function () {
1351
+ return this.o14();
1352
+ };
1353
+ function readObject($this) {
1354
+ var tmp$ret$2;
1355
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
1356
+ var lastToken = $this.p14_1.s14(get_TC_BEGIN_OBJ());
1357
+ if ($this.p14_1.t14() === get_TC_COMMA()) {
1358
+ $this.p14_1.b14('Unexpected leading comma');
1359
+ }
1360
+ var tmp$ret$0;
1361
+ // Inline function 'kotlin.collections.linkedMapOf' call
1362
+ tmp$ret$0 = LinkedHashMap_init_$Create$();
1363
+ var result = tmp$ret$0;
1364
+ $l$loop: while ($this.p14_1.u14()) {
1365
+ var key = $this.q14_1 ? $this.p14_1.w14() : $this.p14_1.v14();
1366
+ $this.p14_1.s14(get_TC_COLON());
1367
+ var tmp$ret$1;
1368
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObject.<anonymous>' call
1369
+ tmp$ret$1 = $this.x14();
1370
+ var element = tmp$ret$1;
1371
+ // Inline function 'kotlin.collections.set' call
1372
+ result.k3(key, element);
1373
+ lastToken = $this.p14_1.y14();
1374
+ var tmp0_subject = lastToken;
1375
+ if (tmp0_subject === get_TC_COMMA())
1376
+ ;
1377
+ else if (tmp0_subject === get_TC_END_OBJ())
1378
+ break $l$loop;
1379
+ else {
1380
+ $this.p14_1.b14('Expected end of the object or comma');
1381
+ }
1382
+ }
1383
+ if (lastToken === get_TC_BEGIN_OBJ()) {
1384
+ $this.p14_1.s14(get_TC_END_OBJ());
1385
+ } else if (lastToken === get_TC_COMMA()) {
1386
+ $this.p14_1.b14('Unexpected trailing comma');
1387
+ }
1388
+ tmp$ret$2 = new JsonObject(result);
1389
+ return tmp$ret$2;
1390
+ }
1391
+ function readObject_0(_this__u8e3s4, $this, $completion) {
1392
+ var tmp = new $readObjectCOROUTINE$0($this, _this__u8e3s4, $completion);
1393
+ tmp.vf_1 = Unit_getInstance();
1394
+ tmp.wf_1 = null;
1395
+ return tmp.bg();
1396
+ }
1397
+ function readArray($this) {
1398
+ var lastToken = $this.p14_1.y14();
1399
+ if ($this.p14_1.t14() === get_TC_COMMA()) {
1400
+ $this.p14_1.b14('Unexpected leading comma');
1401
+ }
1402
+ var tmp$ret$0;
1403
+ // Inline function 'kotlin.collections.arrayListOf' call
1404
+ tmp$ret$0 = ArrayList_init_$Create$();
1405
+ var result = tmp$ret$0;
1406
+ while ($this.p14_1.u14()) {
1407
+ var element = $this.x14();
1408
+ result.a(element);
1409
+ lastToken = $this.p14_1.y14();
1410
+ if (!(lastToken === get_TC_COMMA())) {
1411
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
1412
+ var tmp0_require = $this.p14_1;
1413
+ var tmp1_require = lastToken === get_TC_END_LIST();
1414
+ var tmp2_require = tmp0_require.t11_1;
1415
+ if (!tmp1_require) {
1416
+ var tmp$ret$1;
1417
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readArray.<anonymous>' call
1418
+ tmp$ret$1 = 'Expected end of the array or comma';
1419
+ tmp0_require.b14(tmp$ret$1, tmp2_require);
1420
+ }
1421
+ }
1422
+ }
1423
+ if (lastToken === get_TC_BEGIN_LIST()) {
1424
+ $this.p14_1.s14(get_TC_END_LIST());
1425
+ } else if (lastToken === get_TC_COMMA()) {
1426
+ $this.p14_1.b14('Unexpected trailing comma');
1427
+ }
1428
+ return new JsonArray(result);
1429
+ }
1430
+ function readValue($this, isString) {
1431
+ var tmp;
1432
+ if ($this.q14_1 ? true : !isString) {
1433
+ tmp = $this.p14_1.w14();
1434
+ } else {
1435
+ tmp = $this.p14_1.v14();
1436
+ }
1437
+ var string = tmp;
1438
+ if (!isString ? string === get_NULL() : false)
1439
+ return JsonNull_getInstance();
1440
+ return new JsonLiteral(string, isString);
1441
+ }
1442
+ function readDeepRecursive($this) {
1443
+ return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_getInstance());
1444
+ }
1445
+ function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
1446
+ this.u15_1 = this$0;
1447
+ CoroutineImpl.call(this, resultContinuation);
1448
+ }
1449
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).z15 = function ($this$$receiver, it, $completion) {
1450
+ var tmp = this.a16($this$$receiver, it, $completion);
1451
+ tmp.vf_1 = Unit_getInstance();
1452
+ tmp.wf_1 = null;
1453
+ return tmp.bg();
1454
+ };
1455
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).m6 = function (p1, p2, $completion) {
1456
+ var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
1457
+ return this.z15(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
1458
+ };
1459
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).bg = function () {
1460
+ var suspendResult = this.vf_1;
1461
+ $sm: do
1462
+ try {
1463
+ var tmp = this.tf_1;
1464
+ switch (tmp) {
1465
+ case 0:
1466
+ this.uf_1 = 3;
1467
+ this.x15_1 = this.u15_1.p14_1.t14();
1468
+ if (this.x15_1 === get_TC_STRING()) {
1469
+ this.y15_1 = readValue(this.u15_1, true);
1470
+ this.tf_1 = 2;
1471
+ continue $sm;
1472
+ } else {
1473
+ if (this.x15_1 === get_TC_OTHER()) {
1474
+ this.y15_1 = readValue(this.u15_1, false);
1475
+ this.tf_1 = 2;
1476
+ continue $sm;
1477
+ } else {
1478
+ if (this.x15_1 === get_TC_BEGIN_OBJ()) {
1479
+ this.tf_1 = 1;
1480
+ suspendResult = readObject_0(this.v15_1, this.u15_1, this);
1481
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1482
+ return suspendResult;
1483
+ }
1484
+ continue $sm;
1485
+ } else {
1486
+ if (this.x15_1 === get_TC_BEGIN_LIST()) {
1487
+ this.y15_1 = readArray(this.u15_1);
1488
+ this.tf_1 = 2;
1489
+ continue $sm;
1490
+ } else {
1491
+ var tmp_0 = this;
1492
+ this.u15_1.p14_1.b14("Can't begin reading element, unexpected token");
1493
+ }
1494
+ }
1495
+ }
1496
+ }
1497
+
1498
+ break;
1499
+ case 1:
1500
+ this.y15_1 = suspendResult;
1501
+ this.tf_1 = 2;
1502
+ continue $sm;
1503
+ case 2:
1504
+ return this.y15_1;
1505
+ case 3:
1506
+ throw this.wf_1;
1507
+ }
1508
+ } catch ($p) {
1509
+ var e = $p;
1510
+ if (this.uf_1 === 3) {
1511
+ throw e;
1512
+ } else {
1513
+ this.tf_1 = this.uf_1;
1514
+ this.wf_1 = e;
1515
+ }
1516
+ }
1517
+ while (true);
1518
+ };
1519
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).a16 = function ($this$$receiver, it, completion) {
1520
+ var i = new JsonTreeReader$readDeepRecursive$slambda(this.u15_1, completion);
1521
+ i.v15_1 = $this$$receiver;
1522
+ i.w15_1 = it;
1523
+ return i;
1524
+ };
1525
+ function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
1526
+ var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
1527
+ var l = function ($this$$receiver, it, $completion) {
1528
+ return i.z15($this$$receiver, it, $completion);
1529
+ };
1530
+ l.$arity = 2;
1531
+ return l;
1532
+ }
1533
+ function $readObjectCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
1534
+ CoroutineImpl.call(this, resultContinuation);
1535
+ this.h15_1 = _this__u8e3s4;
1536
+ this.i15_1 = _this__u8e3s4_0;
1537
+ }
1538
+ protoOf($readObjectCOROUTINE$0).bg = function () {
1539
+ var suspendResult = this.vf_1;
1540
+ $sm: do
1541
+ try {
1542
+ var tmp = this.tf_1;
1543
+ switch (tmp) {
1544
+ case 0:
1545
+ this.uf_1 = 5;
1546
+ this.j15_1 = this.h15_1.p14_1.s14(get_TC_BEGIN_OBJ());
1547
+ if (this.h15_1.p14_1.t14() === get_TC_COMMA()) {
1548
+ this.h15_1.p14_1.b14('Unexpected leading comma');
1549
+ }
1550
+
1551
+ var tmp_0 = this;
1552
+ tmp_0.k15_1 = LinkedHashMap_init_$Create$();
1553
+ this.tf_1 = 1;
1554
+ continue $sm;
1555
+ case 1:
1556
+ if (!this.h15_1.p14_1.u14()) {
1557
+ this.tf_1 = 4;
1558
+ continue $sm;
1559
+ }
1560
+
1561
+ this.l15_1 = this.h15_1.q14_1 ? this.h15_1.p14_1.w14() : this.h15_1.p14_1.v14();
1562
+ this.h15_1.p14_1.s14(get_TC_COLON());
1563
+ ;
1564
+ this.tf_1 = 2;
1565
+ suspendResult = this.i15_1.e6(Unit_getInstance(), this);
1566
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1567
+ return suspendResult;
1568
+ }
1569
+
1570
+ continue $sm;
1571
+ case 2:
1572
+ var element = suspendResult;
1573
+ this.k15_1.k3(this.l15_1, element);
1574
+ ;
1575
+ this.j15_1 = this.h15_1.p14_1.y14();
1576
+ var tmp0_subject = this.j15_1;
1577
+ if (tmp0_subject === get_TC_COMMA()) {
1578
+ this.tf_1 = 3;
1579
+ continue $sm;
1580
+ } else {
1581
+ if (tmp0_subject === get_TC_END_OBJ()) {
1582
+ this.tf_1 = 4;
1583
+ continue $sm;
1584
+ } else {
1585
+ this.h15_1.p14_1.b14('Expected end of the object or comma');
1586
+ }
1587
+ }
1588
+
1589
+ break;
1590
+ case 3:
1591
+ this.tf_1 = 1;
1592
+ continue $sm;
1593
+ case 4:
1594
+ if (this.j15_1 === get_TC_BEGIN_OBJ()) {
1595
+ this.h15_1.p14_1.s14(get_TC_END_OBJ());
1596
+ } else if (this.j15_1 === get_TC_COMMA()) {
1597
+ this.h15_1.p14_1.b14('Unexpected trailing comma');
1598
+ }
1599
+
1600
+ return new JsonObject(this.k15_1);
1601
+ case 5:
1602
+ throw this.wf_1;
1603
+ }
1604
+ } catch ($p) {
1605
+ var e = $p;
1606
+ if (this.uf_1 === 5) {
1607
+ throw e;
1608
+ } else {
1609
+ this.tf_1 = this.uf_1;
1610
+ this.wf_1 = e;
1611
+ }
1612
+ }
1613
+ while (true);
1614
+ };
1615
+ function JsonTreeReader(configuration, lexer) {
1616
+ this.p14_1 = lexer;
1617
+ this.q14_1 = configuration.o12_1;
1618
+ this.r14_1 = 0;
1619
+ }
1620
+ protoOf(JsonTreeReader).x14 = function () {
1621
+ var token = this.p14_1.t14();
1622
+ var tmp;
1623
+ if (token === get_TC_STRING()) {
1624
+ tmp = readValue(this, true);
1625
+ } else if (token === get_TC_OTHER()) {
1626
+ tmp = readValue(this, false);
1627
+ } else if (token === get_TC_BEGIN_OBJ()) {
1628
+ var tmp_0;
1629
+ var tmp0_this = this;
1630
+ tmp0_this.r14_1 = tmp0_this.r14_1 + 1 | 0;
1631
+ if (tmp0_this.r14_1 === 200) {
1632
+ tmp_0 = readDeepRecursive(this);
1633
+ } else {
1634
+ tmp_0 = readObject(this);
1635
+ }
1636
+ var result = tmp_0;
1637
+ var tmp1_this = this;
1638
+ tmp1_this.r14_1 = tmp1_this.r14_1 - 1 | 0;
1639
+ tmp = result;
1640
+ } else if (token === get_TC_BEGIN_LIST()) {
1641
+ tmp = readArray(this);
1642
+ } else {
1643
+ this.p14_1.b14('Cannot begin reading element, unexpected token: ' + token);
1644
+ }
1645
+ return tmp;
1646
+ };
1647
+ function classDiscriminator(_this__u8e3s4, json) {
1648
+ var tmp0_iterator = _this__u8e3s4.lm().c();
1649
+ while (tmp0_iterator.d()) {
1650
+ var annotation = tmp0_iterator.e();
1651
+ if (annotation instanceof JsonClassDiscriminator)
1652
+ return annotation.b16_1;
1653
+ }
1654
+ return json.g11_1.v12_1;
1655
+ }
1656
+ function decodeSerializableValuePolymorphic(_this__u8e3s4, deserializer) {
1657
+ var tmp;
1658
+ if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
1659
+ tmp = true;
1660
+ } else {
1661
+ tmp = _this__u8e3s4.z12().g11_1.u12_1;
1662
+ }
1663
+ if (tmp) {
1664
+ return deserializer.kl(_this__u8e3s4);
1665
+ }
1666
+ var discriminator = classDiscriminator(deserializer.jl(), _this__u8e3s4.z12());
1667
+ var tmp$ret$0;
1668
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
1669
+ var tmp0_cast = _this__u8e3s4.a13();
1670
+ var tmp1_cast = deserializer.jl();
1671
+ if (!(tmp0_cast instanceof JsonObject)) {
1672
+ throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + tmp1_cast.km() + ', but had ' + getKClassFromExpression(tmp0_cast));
1673
+ }
1674
+ tmp$ret$0 = tmp0_cast;
1675
+ var jsonTree = tmp$ret$0;
1676
+ var tmp0_safe_receiver = jsonTree.d13(discriminator);
1677
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
1678
+ var type = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e13();
1679
+ var tmp2_elvis_lhs = deserializer.yl(_this__u8e3s4, type);
1680
+ var tmp_0;
1681
+ if (tmp2_elvis_lhs == null) {
1682
+ throwSerializerNotFound(type, jsonTree);
1683
+ } else {
1684
+ tmp_0 = tmp2_elvis_lhs;
1685
+ }
1686
+ var actualSerializer = tmp_0;
1687
+ var tmp_1 = _this__u8e3s4.z12();
1688
+ return readPolymorphicJson(tmp_1, discriminator, jsonTree, isInterface(actualSerializer, DeserializationStrategy) ? actualSerializer : THROW_CCE());
1689
+ }
1690
+ function throwSerializerNotFound(type, jsonTree) {
1691
+ var suffix = type == null ? "missing class discriminator ('null')" : "class discriminator '" + type + "'";
1692
+ throw JsonDecodingException_0(-1, 'Polymorphic serializer was not found for ' + suffix, jsonTree.toString());
1693
+ }
1694
+ function checkKind($this, descriptor, actualClass) {
1695
+ var kind = descriptor.om();
1696
+ var tmp;
1697
+ if (kind instanceof PolymorphicKind) {
1698
+ tmp = true;
1699
+ } else {
1700
+ tmp = equals(kind, CONTEXTUAL_getInstance());
1701
+ }
1702
+ if (tmp) {
1703
+ throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.fc() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind + ' is not concrete. To work with multiple hierarchies, register it as a base class.'));
1704
+ }
1705
+ if ($this.c16_1)
1706
+ return Unit_getInstance();
1707
+ var tmp_0;
1708
+ var tmp_1;
1709
+ if (equals(kind, LIST_getInstance()) ? true : equals(kind, MAP_getInstance())) {
1710
+ tmp_1 = true;
1711
+ } else {
1712
+ tmp_1 = kind instanceof PrimitiveKind;
1713
+ }
1714
+ if (tmp_1) {
1715
+ tmp_0 = true;
1716
+ } else {
1717
+ tmp_0 = kind instanceof ENUM;
1718
+ }
1719
+ if (tmp_0) {
1720
+ throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.fc() + ' of kind ' + kind + ' cannot be serialized polymorphically with class discriminator.');
1721
+ }
1722
+ }
1723
+ function checkDiscriminatorCollisions($this, descriptor, actualClass) {
1724
+ var inductionVariable = 0;
1725
+ var last = descriptor.mm();
1726
+ if (inductionVariable < last)
1727
+ do {
1728
+ var i = inductionVariable;
1729
+ inductionVariable = inductionVariable + 1 | 0;
1730
+ var name = descriptor.sm(i);
1731
+ if (name === $this.d16_1) {
1732
+ throw IllegalArgumentException_init_$Create$('Polymorphic serializer for ' + actualClass + " has property '" + name + "' that conflicts " + 'with JSON class discriminator. You can either change class discriminator in JsonConfiguration, ' + 'rename property with @SerialName annotation ' + 'or fall back to array polymorphism');
1733
+ }
1734
+ }
1735
+ while (inductionVariable < last);
1736
+ }
1737
+ function PolymorphismValidator(useArrayPolymorphism, discriminator) {
1738
+ this.c16_1 = useArrayPolymorphism;
1739
+ this.d16_1 = discriminator;
1740
+ }
1741
+ protoOf(PolymorphismValidator).x10 = function (kClass, provider) {
1742
+ };
1743
+ protoOf(PolymorphismValidator).a11 = function (baseClass, actualClass, actualSerializer) {
1744
+ var descriptor = actualSerializer.jl();
1745
+ checkKind(this, descriptor, actualClass);
1746
+ if (!this.c16_1) {
1747
+ checkDiscriminatorCollisions(this, descriptor, actualClass);
1748
+ }
1749
+ };
1750
+ protoOf(PolymorphismValidator).b11 = function (baseClass, defaultSerializerProvider) {
1751
+ };
1752
+ protoOf(PolymorphismValidator).c11 = function (baseClass, defaultDeserializerProvider) {
1753
+ };
1754
+ function Key() {
1755
+ }
1756
+ function DescriptorSchemaCache() {
1757
+ this.c14_1 = createMapForCache(16);
1758
+ }
1759
+ protoOf(DescriptorSchemaCache).e16 = function (descriptor, key, value) {
1760
+ // Inline function 'kotlin.collections.set' call
1761
+ var tmp$ret$1;
1762
+ // Inline function 'kotlin.collections.getOrPut' call
1763
+ var tmp0_getOrPut = this.c14_1;
1764
+ var value_0 = tmp0_getOrPut.m2(descriptor);
1765
+ var tmp;
1766
+ if (value_0 == null) {
1767
+ var tmp$ret$0;
1768
+ // Inline function 'kotlinx.serialization.json.internal.DescriptorSchemaCache.set.<anonymous>' call
1769
+ tmp$ret$0 = createMapForCache(2);
1770
+ var answer = tmp$ret$0;
1771
+ tmp0_getOrPut.k3(descriptor, answer);
1772
+ tmp = answer;
1773
+ } else {
1774
+ tmp = value_0;
1775
+ }
1776
+ tmp$ret$1 = tmp;
1777
+ var tmp1_set = tmp$ret$1;
1778
+ var tmp2_set = key instanceof Key ? key : THROW_CCE();
1779
+ var tmp3_set = isObject(value) ? value : THROW_CCE();
1780
+ tmp1_set.k3(tmp2_set, tmp3_set);
1781
+ };
1782
+ protoOf(DescriptorSchemaCache).d14 = function (descriptor, key, defaultValue) {
1783
+ var tmp0_safe_receiver = this.f16(descriptor, key);
1784
+ if (tmp0_safe_receiver == null)
1785
+ null;
1786
+ else {
1787
+ var tmp$ret$0;
1788
+ // Inline function 'kotlin.let' call
1789
+ // Inline function 'kotlin.contracts.contract' call
1790
+ return tmp0_safe_receiver;
1791
+ }
1792
+ var value = defaultValue();
1793
+ this.e16(descriptor, key, value);
1794
+ return value;
1795
+ };
1796
+ protoOf(DescriptorSchemaCache).f16 = function (descriptor, key) {
1797
+ var tmp0_safe_receiver = this.c14_1.m2(descriptor);
1798
+ var tmp;
1799
+ if (tmp0_safe_receiver == null) {
1800
+ tmp = null;
1801
+ } else {
1802
+ tmp = tmp0_safe_receiver.m2(key instanceof Key ? key : THROW_CCE());
1803
+ }
1804
+ var tmp_0 = tmp;
1805
+ return isObject(tmp_0) ? tmp_0 : null;
1806
+ };
1807
+ function DiscriminatorHolder(discriminatorToSkip) {
1808
+ this.g16_1 = discriminatorToSkip;
1809
+ }
1810
+ function trySkip(_this__u8e3s4, $this, unknownKey) {
1811
+ if (_this__u8e3s4 == null)
1812
+ return false;
1813
+ if (_this__u8e3s4.g16_1 === unknownKey) {
1814
+ _this__u8e3s4.g16_1 = null;
1815
+ return true;
1816
+ }
1817
+ return false;
1818
+ }
1819
+ function skipLeftoverElements($this, descriptor) {
1820
+ $l$loop: while (true) {
1821
+ var tmp = $this.yo(descriptor);
1822
+ Companion_getInstance();
1823
+ if (!!(tmp === -1)) {
1824
+ break $l$loop;
1825
+ }
1826
+ }
1827
+ }
1828
+ function checkLeadingComma($this) {
1829
+ if ($this.n11_1.t14() === get_TC_COMMA()) {
1830
+ $this.n11_1.b14('Unexpected leading comma');
1831
+ }
1832
+ }
1833
+ function decodeMapIndex($this) {
1834
+ var hasComma = false;
1835
+ var decodingKey = !(($this.p11_1 % 2 | 0) === 0);
1836
+ if (decodingKey) {
1837
+ if (!($this.p11_1 === -1)) {
1838
+ hasComma = $this.n11_1.i16();
1839
+ }
1840
+ } else {
1841
+ $this.n11_1.h16(get_COLON());
1842
+ }
1843
+ var tmp;
1844
+ if ($this.n11_1.u14()) {
1845
+ if (decodingKey) {
1846
+ if ($this.p11_1 === -1) {
1847
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
1848
+ var tmp0_require = $this.n11_1;
1849
+ var tmp1_require = !hasComma;
1850
+ var tmp2_require = tmp0_require.t11_1;
1851
+ if (!tmp1_require) {
1852
+ var tmp$ret$0;
1853
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
1854
+ tmp$ret$0 = 'Unexpected trailing comma';
1855
+ tmp0_require.b14(tmp$ret$0, tmp2_require);
1856
+ }
1857
+ } else {
1858
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
1859
+ var tmp3_require = $this.n11_1;
1860
+ var tmp4_require = hasComma;
1861
+ var tmp5_require = tmp3_require.t11_1;
1862
+ if (!tmp4_require) {
1863
+ var tmp$ret$1;
1864
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeMapIndex.<anonymous>' call
1865
+ tmp$ret$1 = 'Expected comma after the key-value pair';
1866
+ tmp3_require.b14(tmp$ret$1, tmp5_require);
1867
+ }
1868
+ }
1869
+ }
1870
+ var tmp0_this = $this;
1871
+ tmp0_this.p11_1 = tmp0_this.p11_1 + 1 | 0;
1872
+ tmp = tmp0_this.p11_1;
1873
+ } else {
1874
+ if (hasComma) {
1875
+ $this.n11_1.b14("Expected '}', but had ',' instead");
1876
+ }
1877
+ Companion_getInstance();
1878
+ tmp = -1;
1879
+ }
1880
+ return tmp;
1881
+ }
1882
+ function coerceInputValue($this, descriptor, index) {
1883
+ var tmp$ret$1;
1884
+ $l$block_2: {
1885
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
1886
+ var tmp0_tryCoerceValue = $this.l11_1;
1887
+ var tmp1_tryCoerceValue = descriptor.qm(index);
1888
+ var tmp;
1889
+ if (!tmp1_tryCoerceValue.gm()) {
1890
+ var tmp$ret$0;
1891
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
1892
+ tmp$ret$0 = $this.n11_1.j16(true);
1893
+ tmp = tmp$ret$0;
1894
+ } else {
1895
+ tmp = false;
1896
+ }
1897
+ if (tmp) {
1898
+ tmp$ret$1 = true;
1899
+ break $l$block_2;
1900
+ }
1901
+ if (equals(tmp1_tryCoerceValue.om(), ENUM_getInstance())) {
1902
+ var tmp_0;
1903
+ if (tmp1_tryCoerceValue.gm()) {
1904
+ var tmp$ret$2;
1905
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
1906
+ tmp$ret$2 = $this.n11_1.j16(false);
1907
+ tmp_0 = tmp$ret$2;
1908
+ } else {
1909
+ tmp_0 = false;
1910
+ }
1911
+ if (tmp_0) {
1912
+ tmp$ret$1 = false;
1913
+ break $l$block_2;
1914
+ }
1915
+ var tmp$ret$3;
1916
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
1917
+ tmp$ret$3 = $this.n11_1.k16($this.r11_1.o12_1);
1918
+ var tmp0_elvis_lhs = tmp$ret$3;
1919
+ var tmp_1;
1920
+ if (tmp0_elvis_lhs == null) {
1921
+ tmp$ret$1 = false;
1922
+ break $l$block_2;
1923
+ } else {
1924
+ tmp_1 = tmp0_elvis_lhs;
1925
+ }
1926
+ var enumValue = tmp_1;
1927
+ var enumIndex = getJsonNameIndex(tmp1_tryCoerceValue, tmp0_tryCoerceValue, enumValue);
1928
+ Companion_getInstance();
1929
+ if (enumIndex === -3) {
1930
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.coerceInputValue.<anonymous>' call
1931
+ $this.n11_1.v14();
1932
+ tmp$ret$1 = true;
1933
+ break $l$block_2;
1934
+ }
1935
+ }
1936
+ tmp$ret$1 = false;
1937
+ }
1938
+ return tmp$ret$1;
1939
+ }
1940
+ function decodeObjectIndex($this, descriptor) {
1941
+ var hasComma = $this.n11_1.i16();
1942
+ while ($this.n11_1.u14()) {
1943
+ hasComma = false;
1944
+ var key = decodeStringKey($this);
1945
+ $this.n11_1.h16(get_COLON());
1946
+ var index = getJsonNameIndex(descriptor, $this.l11_1, key);
1947
+ var tmp;
1948
+ Companion_getInstance();
1949
+ if (!(index === -3)) {
1950
+ var tmp_0;
1951
+ if ($this.r11_1.t12_1 ? coerceInputValue($this, descriptor, index) : false) {
1952
+ hasComma = $this.n11_1.i16();
1953
+ tmp_0 = false;
1954
+ } else {
1955
+ var tmp0_safe_receiver = $this.s11_1;
1956
+ if (tmp0_safe_receiver == null)
1957
+ null;
1958
+ else {
1959
+ tmp0_safe_receiver.ks(index);
1960
+ }
1961
+ return index;
1962
+ }
1963
+ tmp = tmp_0;
1964
+ } else {
1965
+ tmp = true;
1966
+ }
1967
+ var isUnknown = tmp;
1968
+ if (isUnknown) {
1969
+ hasComma = handleUnknown($this, key);
1970
+ }
1971
+ }
1972
+ if (hasComma) {
1973
+ $this.n11_1.b14('Unexpected trailing comma');
1974
+ }
1975
+ var tmp1_safe_receiver = $this.s11_1;
1976
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ls();
1977
+ var tmp_1;
1978
+ if (tmp2_elvis_lhs == null) {
1979
+ Companion_getInstance();
1980
+ tmp_1 = -1;
1981
+ } else {
1982
+ tmp_1 = tmp2_elvis_lhs;
1983
+ }
1984
+ return tmp_1;
1985
+ }
1986
+ function handleUnknown($this, key) {
1987
+ if ($this.r11_1.n12_1 ? true : trySkip($this.q11_1, $this, key)) {
1988
+ $this.n11_1.m16($this.r11_1.o12_1);
1989
+ } else {
1990
+ $this.n11_1.l16(key);
1991
+ }
1992
+ return $this.n11_1.i16();
1993
+ }
1994
+ function decodeListIndex($this) {
1995
+ var hasComma = $this.n11_1.i16();
1996
+ var tmp;
1997
+ if ($this.n11_1.u14()) {
1998
+ if (!($this.p11_1 === -1) ? !hasComma : false) {
1999
+ $this.n11_1.b14('Expected end of the array or comma');
2000
+ }
2001
+ var tmp0_this = $this;
2002
+ tmp0_this.p11_1 = tmp0_this.p11_1 + 1 | 0;
2003
+ tmp = tmp0_this.p11_1;
2004
+ } else {
2005
+ if (hasComma) {
2006
+ $this.n11_1.b14('Unexpected trailing comma');
2007
+ }
2008
+ Companion_getInstance();
2009
+ tmp = -1;
2010
+ }
2011
+ return tmp;
2012
+ }
2013
+ function decodeStringKey($this) {
2014
+ var tmp;
2015
+ if ($this.r11_1.o12_1) {
2016
+ tmp = $this.n11_1.o16();
2017
+ } else {
2018
+ tmp = $this.n11_1.n16();
2019
+ }
2020
+ return tmp;
2021
+ }
2022
+ function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
2023
+ AbstractDecoder.call(this);
2024
+ this.l11_1 = json;
2025
+ this.m11_1 = mode;
2026
+ this.n11_1 = lexer;
2027
+ this.o11_1 = this.l11_1.wo();
2028
+ this.p11_1 = -1;
2029
+ this.q11_1 = discriminatorHolder;
2030
+ this.r11_1 = this.l11_1.g11_1;
2031
+ this.s11_1 = this.r11_1.r12_1 ? null : new JsonElementMarker(descriptor);
2032
+ }
2033
+ protoOf(StreamingJsonDecoder).z12 = function () {
2034
+ return this.l11_1;
2035
+ };
2036
+ protoOf(StreamingJsonDecoder).wo = function () {
2037
+ return this.o11_1;
2038
+ };
2039
+ protoOf(StreamingJsonDecoder).a13 = function () {
2040
+ return (new JsonTreeReader(this.l11_1.g11_1, this.n11_1)).x14();
2041
+ };
2042
+ protoOf(StreamingJsonDecoder).go = function (deserializer) {
2043
+ try {
2044
+ var tmp;
2045
+ if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
2046
+ tmp = true;
2047
+ } else {
2048
+ tmp = this.l11_1.g11_1.u12_1;
2049
+ }
2050
+ if (tmp) {
2051
+ return deserializer.kl(this);
2052
+ }
2053
+ var discriminator = classDiscriminator(deserializer.jl(), this.l11_1);
2054
+ var type = this.n11_1.p16(discriminator, this.r11_1.o12_1);
2055
+ var actualSerializer = null;
2056
+ if (!(type == null)) {
2057
+ actualSerializer = deserializer.yl(this, type);
2058
+ }
2059
+ if (actualSerializer == null) {
2060
+ return decodeSerializableValuePolymorphic(this, isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE());
2061
+ }
2062
+ this.q11_1 = new DiscriminatorHolder(discriminator);
2063
+ var tmp_0 = actualSerializer.kl(this);
2064
+ var result = isObject(tmp_0) ? tmp_0 : THROW_CCE();
2065
+ return result;
2066
+ } catch ($p) {
2067
+ if ($p instanceof MissingFieldException) {
2068
+ var e = $p;
2069
+ throw new MissingFieldException(e.zl_1, plus(e.message, ' at path: ') + this.n11_1.u11_1.o14(), e);
2070
+ } else {
2071
+ throw $p;
2072
+ }
2073
+ }
2074
+ };
2075
+ protoOf(StreamingJsonDecoder).ho = function (descriptor) {
2076
+ var newMode = switchMode(this.l11_1, descriptor);
2077
+ this.n11_1.u11_1.j14(descriptor);
2078
+ this.n11_1.h16(newMode.s16_1);
2079
+ checkLeadingComma(this);
2080
+ var tmp0_subject = newMode;
2081
+ var tmp0 = tmp0_subject.q4_1;
2082
+ var tmp;
2083
+ switch (tmp0) {
2084
+ case 1:
2085
+ case 2:
2086
+ case 3:
2087
+ tmp = new StreamingJsonDecoder(this.l11_1, newMode, this.n11_1, descriptor, this.q11_1);
2088
+ break;
2089
+ default:
2090
+ var tmp_0;
2091
+ if (this.m11_1.equals(newMode) ? this.l11_1.g11_1.r12_1 : false) {
2092
+ tmp_0 = this;
2093
+ } else {
2094
+ tmp_0 = new StreamingJsonDecoder(this.l11_1, newMode, this.n11_1, descriptor, this.q11_1);
2095
+ }
2096
+
2097
+ tmp = tmp_0;
2098
+ break;
2099
+ }
2100
+ return tmp;
2101
+ };
2102
+ protoOf(StreamingJsonDecoder).io = function (descriptor) {
2103
+ if (this.l11_1.g11_1.n12_1 ? descriptor.mm() === 0 : false) {
2104
+ skipLeftoverElements(this, descriptor);
2105
+ }
2106
+ this.n11_1.h16(this.m11_1.t16_1);
2107
+ this.n11_1.u11_1.n14();
2108
+ };
2109
+ protoOf(StreamingJsonDecoder).sn = function () {
2110
+ var tmp;
2111
+ var tmp0_safe_receiver = this.s11_1;
2112
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a14_1;
2113
+ if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
2114
+ tmp = !this.n11_1.u16();
2115
+ } else {
2116
+ tmp = false;
2117
+ }
2118
+ return tmp;
2119
+ };
2120
+ protoOf(StreamingJsonDecoder).tn = function () {
2121
+ return null;
2122
+ };
2123
+ protoOf(StreamingJsonDecoder).to = function (descriptor, index, deserializer, previousValue) {
2124
+ var isMapKey = this.m11_1.equals(WriteMode_MAP_getInstance()) ? (index & 1) === 0 : false;
2125
+ if (isMapKey) {
2126
+ this.n11_1.u11_1.m14();
2127
+ }
2128
+ var value = protoOf(AbstractDecoder).to.call(this, descriptor, index, deserializer, previousValue);
2129
+ if (isMapKey) {
2130
+ this.n11_1.u11_1.l14(value);
2131
+ }
2132
+ return value;
2133
+ };
2134
+ protoOf(StreamingJsonDecoder).yo = function (descriptor) {
2135
+ var tmp0_subject = this.m11_1;
2136
+ var tmp0 = tmp0_subject.q4_1;
2137
+ {
2138
+ var index;
2139
+ switch (tmp0) {
2140
+ case 0:
2141
+ index = decodeObjectIndex(this, descriptor);
2142
+ break;
2143
+ case 2:
2144
+ index = decodeMapIndex(this);
2145
+ break;
2146
+ default:
2147
+ index = decodeListIndex(this);
2148
+ break;
2149
+ }
2150
+ }
2151
+ if (!this.m11_1.equals(WriteMode_MAP_getInstance())) {
2152
+ this.n11_1.u11_1.k14(index);
2153
+ }
2154
+ return index;
2155
+ };
2156
+ protoOf(StreamingJsonDecoder).un = function () {
2157
+ var tmp;
2158
+ if (this.r11_1.o12_1) {
2159
+ tmp = this.n11_1.w16();
2160
+ } else {
2161
+ tmp = this.n11_1.v16();
2162
+ }
2163
+ return tmp;
2164
+ };
2165
+ protoOf(StreamingJsonDecoder).vn = function () {
2166
+ var value = this.n11_1.x16();
2167
+ if (!value.equals(toLong_0(value.kf()))) {
2168
+ this.n11_1.b14("Failed to parse byte for input '" + toString(value) + "'");
2169
+ }
2170
+ return value.kf();
2171
+ };
2172
+ protoOf(StreamingJsonDecoder).wn = function () {
2173
+ var value = this.n11_1.x16();
2174
+ if (!value.equals(toLong_0(value.lf()))) {
2175
+ this.n11_1.b14("Failed to parse short for input '" + toString(value) + "'");
2176
+ }
2177
+ return value.lf();
2178
+ };
2179
+ protoOf(StreamingJsonDecoder).xn = function () {
2180
+ var value = this.n11_1.x16();
2181
+ if (!value.equals(toLong_0(value.p5()))) {
2182
+ this.n11_1.b14("Failed to parse int for input '" + toString(value) + "'");
2183
+ }
2184
+ return value.p5();
2185
+ };
2186
+ protoOf(StreamingJsonDecoder).yn = function () {
2187
+ return this.n11_1.x16();
2188
+ };
2189
+ protoOf(StreamingJsonDecoder).zn = function () {
2190
+ var tmp$ret$4;
2191
+ $l$block: {
2192
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2193
+ var tmp0_parseString = this.n11_1;
2194
+ var input = tmp0_parseString.w14();
2195
+ try {
2196
+ var tmp$ret$3;
2197
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeFloat.<anonymous>' call
2198
+ var tmp$ret$2;
2199
+ // Inline function 'kotlin.text.toFloat' call
2200
+ var tmp$ret$1;
2201
+ // Inline function 'kotlin.js.unsafeCast' call
2202
+ var tmp0_unsafeCast = toDouble(input);
2203
+ var tmp$ret$0;
2204
+ // Inline function 'kotlin.js.asDynamic' call
2205
+ tmp$ret$0 = tmp0_unsafeCast;
2206
+ tmp$ret$1 = tmp$ret$0;
2207
+ tmp$ret$2 = tmp$ret$1;
2208
+ tmp$ret$3 = tmp$ret$2;
2209
+ tmp$ret$4 = tmp$ret$3;
2210
+ break $l$block;
2211
+ } catch ($p) {
2212
+ if ($p instanceof IllegalArgumentException) {
2213
+ var e = $p;
2214
+ tmp0_parseString.b14("Failed to parse type 'float' for input '" + input + "'");
2215
+ } else {
2216
+ throw $p;
2217
+ }
2218
+ }
2219
+ }
2220
+ var result = tmp$ret$4;
2221
+ var specialFp = this.l11_1.g11_1.w12_1;
2222
+ if (specialFp ? true : isFinite(result))
2223
+ return result;
2224
+ throwInvalidFloatingPointDecoded(this.n11_1, result);
2225
+ };
2226
+ protoOf(StreamingJsonDecoder).ao = function () {
2227
+ var tmp$ret$1;
2228
+ $l$block: {
2229
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2230
+ var tmp0_parseString = this.n11_1;
2231
+ var input = tmp0_parseString.w14();
2232
+ try {
2233
+ var tmp$ret$0;
2234
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeDouble.<anonymous>' call
2235
+ tmp$ret$0 = toDouble(input);
2236
+ tmp$ret$1 = tmp$ret$0;
2237
+ break $l$block;
2238
+ } catch ($p) {
2239
+ if ($p instanceof IllegalArgumentException) {
2240
+ var e = $p;
2241
+ tmp0_parseString.b14("Failed to parse type 'double' for input '" + input + "'");
2242
+ } else {
2243
+ throw $p;
2244
+ }
2245
+ }
2246
+ }
2247
+ var result = tmp$ret$1;
2248
+ var specialFp = this.l11_1.g11_1.w12_1;
2249
+ if (specialFp ? true : isFinite_0(result))
2250
+ return result;
2251
+ throwInvalidFloatingPointDecoded(this.n11_1, result);
2252
+ };
2253
+ protoOf(StreamingJsonDecoder).bo = function () {
2254
+ var string = this.n11_1.w14();
2255
+ if (!(string.length === 1)) {
2256
+ this.n11_1.b14("Expected single char, but got '" + string + "'");
2257
+ }
2258
+ return charSequenceGet(string, 0);
2259
+ };
2260
+ protoOf(StreamingJsonDecoder).co = function () {
2261
+ var tmp;
2262
+ if (this.r11_1.o12_1) {
2263
+ tmp = this.n11_1.o16();
2264
+ } else {
2265
+ tmp = this.n11_1.v14();
2266
+ }
2267
+ return tmp;
2268
+ };
2269
+ protoOf(StreamingJsonDecoder).eo = function (descriptor) {
2270
+ return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.n11_1, this.l11_1) : protoOf(AbstractDecoder).eo.call(this, descriptor);
2271
+ };
2272
+ protoOf(StreamingJsonDecoder).do = function (enumDescriptor) {
2273
+ return getJsonNameIndexOrThrow(enumDescriptor, this.l11_1, this.co(), ' at path ' + this.n11_1.u11_1.o14());
2274
+ };
2275
+ function JsonDecoderForUnsignedTypes(lexer, json) {
2276
+ AbstractDecoder.call(this);
2277
+ this.y16_1 = lexer;
2278
+ this.z16_1 = json.wo();
2279
+ }
2280
+ protoOf(JsonDecoderForUnsignedTypes).wo = function () {
2281
+ return this.z16_1;
2282
+ };
2283
+ protoOf(JsonDecoderForUnsignedTypes).yo = function (descriptor) {
2284
+ throw IllegalStateException_init_$Create$('unsupported');
2285
+ };
2286
+ protoOf(JsonDecoderForUnsignedTypes).xn = function () {
2287
+ var tmp$ret$2;
2288
+ $l$block: {
2289
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2290
+ var tmp0_parseString = this.y16_1;
2291
+ var input = tmp0_parseString.w14();
2292
+ try {
2293
+ var tmp$ret$1;
2294
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeInt.<anonymous>' call
2295
+ var tmp$ret$0;
2296
+ // Inline function 'kotlin.UInt.toInt' call
2297
+ var tmp0_toInt = toUInt(input);
2298
+ tmp$ret$0 = _UInt___get_data__impl__f0vqqw(tmp0_toInt);
2299
+ tmp$ret$1 = tmp$ret$0;
2300
+ tmp$ret$2 = tmp$ret$1;
2301
+ break $l$block;
2302
+ } catch ($p) {
2303
+ if ($p instanceof IllegalArgumentException) {
2304
+ var e = $p;
2305
+ tmp0_parseString.b14("Failed to parse type 'UInt' for input '" + input + "'");
2306
+ } else {
2307
+ throw $p;
2308
+ }
2309
+ }
2310
+ }
2311
+ return tmp$ret$2;
2312
+ };
2313
+ protoOf(JsonDecoderForUnsignedTypes).yn = function () {
2314
+ var tmp$ret$2;
2315
+ $l$block: {
2316
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2317
+ var tmp0_parseString = this.y16_1;
2318
+ var input = tmp0_parseString.w14();
2319
+ try {
2320
+ var tmp$ret$1;
2321
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeLong.<anonymous>' call
2322
+ var tmp$ret$0;
2323
+ // Inline function 'kotlin.ULong.toLong' call
2324
+ var tmp0_toLong = toULong(input);
2325
+ tmp$ret$0 = _ULong___get_data__impl__fggpzb(tmp0_toLong);
2326
+ tmp$ret$1 = tmp$ret$0;
2327
+ tmp$ret$2 = tmp$ret$1;
2328
+ break $l$block;
2329
+ } catch ($p) {
2330
+ if ($p instanceof IllegalArgumentException) {
2331
+ var e = $p;
2332
+ tmp0_parseString.b14("Failed to parse type 'ULong' for input '" + input + "'");
2333
+ } else {
2334
+ throw $p;
2335
+ }
2336
+ }
2337
+ }
2338
+ return tmp$ret$2;
2339
+ };
2340
+ protoOf(JsonDecoderForUnsignedTypes).vn = function () {
2341
+ var tmp$ret$2;
2342
+ $l$block: {
2343
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2344
+ var tmp0_parseString = this.y16_1;
2345
+ var input = tmp0_parseString.w14();
2346
+ try {
2347
+ var tmp$ret$1;
2348
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeByte.<anonymous>' call
2349
+ var tmp$ret$0;
2350
+ // Inline function 'kotlin.UByte.toByte' call
2351
+ var tmp0_toByte = toUByte(input);
2352
+ tmp$ret$0 = _UByte___get_data__impl__jof9qr(tmp0_toByte);
2353
+ tmp$ret$1 = tmp$ret$0;
2354
+ tmp$ret$2 = tmp$ret$1;
2355
+ break $l$block;
2356
+ } catch ($p) {
2357
+ if ($p instanceof IllegalArgumentException) {
2358
+ var e = $p;
2359
+ tmp0_parseString.b14("Failed to parse type 'UByte' for input '" + input + "'");
2360
+ } else {
2361
+ throw $p;
2362
+ }
2363
+ }
2364
+ }
2365
+ return tmp$ret$2;
2366
+ };
2367
+ protoOf(JsonDecoderForUnsignedTypes).wn = function () {
2368
+ var tmp$ret$2;
2369
+ $l$block: {
2370
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2371
+ var tmp0_parseString = this.y16_1;
2372
+ var input = tmp0_parseString.w14();
2373
+ try {
2374
+ var tmp$ret$1;
2375
+ // Inline function 'kotlinx.serialization.json.internal.JsonDecoderForUnsignedTypes.decodeShort.<anonymous>' call
2376
+ var tmp$ret$0;
2377
+ // Inline function 'kotlin.UShort.toShort' call
2378
+ var tmp0_toShort = toUShort(input);
2379
+ tmp$ret$0 = _UShort___get_data__impl__g0245(tmp0_toShort);
2380
+ tmp$ret$1 = tmp$ret$0;
2381
+ tmp$ret$2 = tmp$ret$1;
2382
+ break $l$block;
2383
+ } catch ($p) {
2384
+ if ($p instanceof IllegalArgumentException) {
2385
+ var e = $p;
2386
+ tmp0_parseString.b14("Failed to parse type 'UShort' for input '" + input + "'");
2387
+ } else {
2388
+ throw $p;
2389
+ }
2390
+ }
2391
+ }
2392
+ return tmp$ret$2;
2393
+ };
2394
+ function get_unsignedNumberDescriptors() {
2395
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2396
+ return unsignedNumberDescriptors;
2397
+ }
2398
+ var unsignedNumberDescriptors;
2399
+ function get_isUnsignedNumber(_this__u8e3s4) {
2400
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2401
+ return _this__u8e3s4.nm() ? get_unsignedNumberDescriptors().i1(_this__u8e3s4) : false;
2402
+ }
2403
+ var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
2404
+ function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
2405
+ if (properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
2406
+ } else {
2407
+ properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
2408
+ unsignedNumberDescriptors = setOf([serializer_0(Companion_getInstance_0()).jl(), serializer_1(Companion_getInstance_1()).jl(), serializer_2(Companion_getInstance_2()).jl(), serializer_3(Companion_getInstance_3()).jl()]);
2409
+ }
2410
+ }
2411
+ function get_ESCAPE_STRINGS() {
2412
+ _init_properties_StringOps_kt__fcy1db();
2413
+ return ESCAPE_STRINGS;
2414
+ }
2415
+ var ESCAPE_STRINGS;
2416
+ var ESCAPE_MARKERS;
2417
+ function toHexChar(i) {
2418
+ _init_properties_StringOps_kt__fcy1db();
2419
+ var d = i & 15;
2420
+ var tmp;
2421
+ if (d < 10) {
2422
+ var tmp$ret$0;
2423
+ // Inline function 'kotlin.code' call
2424
+ tmp$ret$0 = 48;
2425
+ tmp = numberToChar(d + tmp$ret$0 | 0);
2426
+ } else {
2427
+ var tmp_0 = d - 10 | 0;
2428
+ var tmp$ret$1;
2429
+ // Inline function 'kotlin.code' call
2430
+ tmp$ret$1 = 97;
2431
+ tmp = numberToChar(tmp_0 + tmp$ret$1 | 0);
2432
+ }
2433
+ return tmp;
2434
+ }
2435
+ function printQuoted(_this__u8e3s4, value) {
2436
+ _init_properties_StringOps_kt__fcy1db();
2437
+ _this__u8e3s4.x4(get_STRING());
2438
+ var lastPos = 0;
2439
+ var inductionVariable = 0;
2440
+ var last = charSequenceLength(value) - 1 | 0;
2441
+ if (inductionVariable <= last)
2442
+ do {
2443
+ var i = inductionVariable;
2444
+ inductionVariable = inductionVariable + 1 | 0;
2445
+ var tmp$ret$0;
2446
+ // Inline function 'kotlin.code' call
2447
+ var tmp0__get_code__88qj9g = charSequenceGet(value, i);
2448
+ tmp$ret$0 = Char__toInt_impl_vasixd(tmp0__get_code__88qj9g);
2449
+ var c = tmp$ret$0;
2450
+ if (c < get_ESCAPE_STRINGS().length ? !(get_ESCAPE_STRINGS()[c] == null) : false) {
2451
+ _this__u8e3s4.od(value, lastPos, i);
2452
+ _this__u8e3s4.y5(get_ESCAPE_STRINGS()[c]);
2453
+ lastPos = i + 1 | 0;
2454
+ }
2455
+ }
2456
+ while (inductionVariable <= last);
2457
+ if (!(lastPos === 0)) {
2458
+ _this__u8e3s4.od(value, lastPos, value.length);
2459
+ } else {
2460
+ _this__u8e3s4.y5(value);
2461
+ }
2462
+ _this__u8e3s4.x4(get_STRING());
2463
+ }
2464
+ function toBooleanStrictOrNull(_this__u8e3s4) {
2465
+ _init_properties_StringOps_kt__fcy1db();
2466
+ return equals_0(_this__u8e3s4, 'true', true) ? true : equals_0(_this__u8e3s4, 'false', true) ? false : null;
2467
+ }
2468
+ var properties_initialized_StringOps_kt_wzaea7;
2469
+ function _init_properties_StringOps_kt__fcy1db() {
2470
+ if (properties_initialized_StringOps_kt_wzaea7) {
2471
+ } else {
2472
+ properties_initialized_StringOps_kt_wzaea7 = true;
2473
+ var tmp$ret$7;
2474
+ // Inline function 'kotlin.apply' call
2475
+ var tmp$ret$0;
2476
+ // Inline function 'kotlin.arrayOfNulls' call
2477
+ tmp$ret$0 = fillArrayVal(Array(93), null);
2478
+ var tmp0_apply = tmp$ret$0;
2479
+ // Inline function 'kotlin.contracts.contract' call
2480
+ // Inline function 'kotlinx.serialization.json.internal.ESCAPE_STRINGS.<anonymous>' call
2481
+ var inductionVariable = 0;
2482
+ if (inductionVariable <= 31)
2483
+ do {
2484
+ var c = inductionVariable;
2485
+ inductionVariable = inductionVariable + 1 | 0;
2486
+ var c1 = toHexChar(c >> 12);
2487
+ var c2 = toHexChar(c >> 8);
2488
+ var c3 = toHexChar(c >> 4);
2489
+ var c4 = toHexChar(c);
2490
+ tmp0_apply[c] = '\\u' + new Char(c1) + new Char(c2) + new Char(c3) + new Char(c4);
2491
+ }
2492
+ while (inductionVariable <= 31);
2493
+ var tmp$ret$1;
2494
+ // Inline function 'kotlin.code' call
2495
+ tmp$ret$1 = 34;
2496
+ tmp0_apply[tmp$ret$1] = '\\"';
2497
+ var tmp$ret$2;
2498
+ // Inline function 'kotlin.code' call
2499
+ tmp$ret$2 = 92;
2500
+ tmp0_apply[tmp$ret$2] = '\\\\';
2501
+ var tmp$ret$3;
2502
+ // Inline function 'kotlin.code' call
2503
+ tmp$ret$3 = 9;
2504
+ tmp0_apply[tmp$ret$3] = '\\t';
2505
+ var tmp$ret$4;
2506
+ // Inline function 'kotlin.code' call
2507
+ tmp$ret$4 = 8;
2508
+ tmp0_apply[tmp$ret$4] = '\\b';
2509
+ var tmp$ret$5;
2510
+ // Inline function 'kotlin.code' call
2511
+ tmp$ret$5 = 10;
2512
+ tmp0_apply[tmp$ret$5] = '\\n';
2513
+ var tmp$ret$6;
2514
+ // Inline function 'kotlin.code' call
2515
+ tmp$ret$6 = 13;
2516
+ tmp0_apply[tmp$ret$6] = '\\r';
2517
+ tmp0_apply[12] = '\\f';
2518
+ tmp$ret$7 = tmp0_apply;
2519
+ ESCAPE_STRINGS = tmp$ret$7;
2520
+ var tmp$ret$13;
2521
+ // Inline function 'kotlin.apply' call
2522
+ var tmp0_apply_0 = new Int8Array(93);
2523
+ // Inline function 'kotlin.contracts.contract' call
2524
+ // Inline function 'kotlinx.serialization.json.internal.ESCAPE_MARKERS.<anonymous>' call
2525
+ var inductionVariable_0 = 0;
2526
+ if (inductionVariable_0 <= 31)
2527
+ do {
2528
+ var c_0 = inductionVariable_0;
2529
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
2530
+ tmp0_apply_0[c_0] = 1;
2531
+ }
2532
+ while (inductionVariable_0 <= 31);
2533
+ var tmp$ret$0_0;
2534
+ // Inline function 'kotlin.code' call
2535
+ tmp$ret$0_0 = 34;
2536
+ var tmp = tmp$ret$0_0;
2537
+ var tmp$ret$1_0;
2538
+ // Inline function 'kotlin.code' call
2539
+ tmp$ret$1_0 = 34;
2540
+ tmp0_apply_0[tmp] = toByte(tmp$ret$1_0);
2541
+ var tmp$ret$2_0;
2542
+ // Inline function 'kotlin.code' call
2543
+ tmp$ret$2_0 = 92;
2544
+ var tmp_0 = tmp$ret$2_0;
2545
+ var tmp$ret$3_0;
2546
+ // Inline function 'kotlin.code' call
2547
+ tmp$ret$3_0 = 92;
2548
+ tmp0_apply_0[tmp_0] = toByte(tmp$ret$3_0);
2549
+ var tmp$ret$4_0;
2550
+ // Inline function 'kotlin.code' call
2551
+ tmp$ret$4_0 = 9;
2552
+ var tmp_1 = tmp$ret$4_0;
2553
+ var tmp$ret$5_0;
2554
+ // Inline function 'kotlin.code' call
2555
+ tmp$ret$5_0 = 116;
2556
+ tmp0_apply_0[tmp_1] = toByte(tmp$ret$5_0);
2557
+ var tmp$ret$6_0;
2558
+ // Inline function 'kotlin.code' call
2559
+ tmp$ret$6_0 = 8;
2560
+ var tmp_2 = tmp$ret$6_0;
2561
+ var tmp$ret$7_0;
2562
+ // Inline function 'kotlin.code' call
2563
+ tmp$ret$7_0 = 98;
2564
+ tmp0_apply_0[tmp_2] = toByte(tmp$ret$7_0);
2565
+ var tmp$ret$8;
2566
+ // Inline function 'kotlin.code' call
2567
+ tmp$ret$8 = 10;
2568
+ var tmp_3 = tmp$ret$8;
2569
+ var tmp$ret$9;
2570
+ // Inline function 'kotlin.code' call
2571
+ tmp$ret$9 = 110;
2572
+ tmp0_apply_0[tmp_3] = toByte(tmp$ret$9);
2573
+ var tmp$ret$10;
2574
+ // Inline function 'kotlin.code' call
2575
+ tmp$ret$10 = 13;
2576
+ var tmp_4 = tmp$ret$10;
2577
+ var tmp$ret$11;
2578
+ // Inline function 'kotlin.code' call
2579
+ tmp$ret$11 = 114;
2580
+ tmp0_apply_0[tmp_4] = toByte(tmp$ret$11);
2581
+ var tmp$ret$12;
2582
+ // Inline function 'kotlin.code' call
2583
+ tmp$ret$12 = 102;
2584
+ tmp0_apply_0[12] = toByte(tmp$ret$12);
2585
+ tmp$ret$13 = tmp0_apply_0;
2586
+ ESCAPE_MARKERS = tmp$ret$13;
2587
+ }
2588
+ }
2589
+ function readJson(_this__u8e3s4, element, deserializer) {
2590
+ var tmp0_subject = element;
2591
+ var tmp;
2592
+ if (tmp0_subject instanceof JsonObject) {
2593
+ tmp = new JsonTreeDecoder(_this__u8e3s4, element);
2594
+ } else {
2595
+ if (tmp0_subject instanceof JsonArray) {
2596
+ tmp = new JsonTreeListDecoder(_this__u8e3s4, element);
2597
+ } else {
2598
+ var tmp_0;
2599
+ if (tmp0_subject instanceof JsonLiteral) {
2600
+ tmp_0 = true;
2601
+ } else {
2602
+ tmp_0 = equals(tmp0_subject, JsonNull_getInstance());
2603
+ }
2604
+ if (tmp_0) {
2605
+ tmp = new JsonPrimitiveDecoder(_this__u8e3s4, element instanceof JsonPrimitive ? element : THROW_CCE());
2606
+ } else {
2607
+ noWhenBranchMatchedException();
2608
+ }
2609
+ }
2610
+ }
2611
+ var input = tmp;
2612
+ return input.go(deserializer);
2613
+ }
2614
+ function currentObject($this) {
2615
+ var tmp0_safe_receiver = $this.bz();
2616
+ var tmp;
2617
+ if (tmp0_safe_receiver == null) {
2618
+ tmp = null;
2619
+ } else {
2620
+ var tmp$ret$1;
2621
+ // Inline function 'kotlin.let' call
2622
+ // Inline function 'kotlin.contracts.contract' call
2623
+ var tmp$ret$0;
2624
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.currentObject.<anonymous>' call
2625
+ tmp$ret$0 = $this.f17(tmp0_safe_receiver);
2626
+ tmp$ret$1 = tmp$ret$0;
2627
+ tmp = tmp$ret$1;
2628
+ }
2629
+ var tmp1_elvis_lhs = tmp;
2630
+ return tmp1_elvis_lhs == null ? $this.w() : tmp1_elvis_lhs;
2631
+ }
2632
+ function unparsedPrimitive($this, primitive) {
2633
+ throw JsonDecodingException_0(-1, "Failed to parse '" + primitive + "'", toString(currentObject($this)));
2634
+ }
2635
+ function asLiteral(_this__u8e3s4, $this, type) {
2636
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonLiteral ? _this__u8e3s4 : null;
2637
+ var tmp;
2638
+ if (tmp0_elvis_lhs == null) {
2639
+ throw JsonDecodingException_1(-1, "Unexpected 'null' when " + type + ' was expected');
2640
+ } else {
2641
+ tmp = tmp0_elvis_lhs;
2642
+ }
2643
+ return tmp;
2644
+ }
2645
+ function AbstractJsonTreeDecoder(json, value) {
2646
+ NamedValueDecoder.call(this);
2647
+ this.c17_1 = json;
2648
+ this.d17_1 = value;
2649
+ this.e17_1 = this.z12().g11_1;
2650
+ }
2651
+ protoOf(AbstractJsonTreeDecoder).z12 = function () {
2652
+ return this.c17_1;
2653
+ };
2654
+ protoOf(AbstractJsonTreeDecoder).w = function () {
2655
+ return this.d17_1;
2656
+ };
2657
+ protoOf(AbstractJsonTreeDecoder).wo = function () {
2658
+ return this.z12().wo();
2659
+ };
2660
+ protoOf(AbstractJsonTreeDecoder).a13 = function () {
2661
+ return currentObject(this);
2662
+ };
2663
+ protoOf(AbstractJsonTreeDecoder).go = function (deserializer) {
2664
+ return decodeSerializableValuePolymorphic(this, deserializer);
2665
+ };
2666
+ protoOf(AbstractJsonTreeDecoder).cz = function (parentName, childName) {
2667
+ return childName;
2668
+ };
2669
+ protoOf(AbstractJsonTreeDecoder).ho = function (descriptor) {
2670
+ var currentObject_0 = currentObject(this);
2671
+ var tmp0_subject = descriptor.om();
2672
+ var tmp;
2673
+ var tmp_0;
2674
+ if (equals(tmp0_subject, LIST_getInstance())) {
2675
+ tmp_0 = true;
2676
+ } else {
2677
+ tmp_0 = tmp0_subject instanceof PolymorphicKind;
2678
+ }
2679
+ if (tmp_0) {
2680
+ var tmp_1 = this.z12();
2681
+ var tmp$ret$0;
2682
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
2683
+ if (!(currentObject_0 instanceof JsonArray)) {
2684
+ throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.km() + ', but had ' + getKClassFromExpression(currentObject_0));
2685
+ }
2686
+ tmp$ret$0 = currentObject_0;
2687
+ tmp = new JsonTreeListDecoder(tmp_1, tmp$ret$0);
2688
+ } else {
2689
+ if (equals(tmp0_subject, MAP_getInstance())) {
2690
+ var tmp$ret$5;
2691
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
2692
+ var tmp0_selectMapMode = this.z12();
2693
+ var keyDescriptor = carrierDescriptor(descriptor.qm(0), tmp0_selectMapMode.wo());
2694
+ var keyKind = keyDescriptor.om();
2695
+ var tmp_2;
2696
+ var tmp_3;
2697
+ if (keyKind instanceof PrimitiveKind) {
2698
+ tmp_3 = true;
2699
+ } else {
2700
+ tmp_3 = equals(keyKind, ENUM_getInstance());
2701
+ }
2702
+ if (tmp_3) {
2703
+ var tmp$ret$2;
2704
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.<anonymous>' call
2705
+ var tmp_4 = this.z12();
2706
+ var tmp$ret$1;
2707
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
2708
+ if (!(currentObject_0 instanceof JsonObject)) {
2709
+ throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.km() + ', but had ' + getKClassFromExpression(currentObject_0));
2710
+ }
2711
+ tmp$ret$1 = currentObject_0;
2712
+ tmp$ret$2 = new JsonTreeMapDecoder(tmp_4, tmp$ret$1);
2713
+ tmp_2 = tmp$ret$2;
2714
+ } else {
2715
+ if (tmp0_selectMapMode.g11_1.p12_1) {
2716
+ var tmp$ret$4;
2717
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.beginStructure.<anonymous>' call
2718
+ var tmp_5 = this.z12();
2719
+ var tmp$ret$3;
2720
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
2721
+ if (!(currentObject_0 instanceof JsonArray)) {
2722
+ throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonArray) + ' as the serialized body of ' + descriptor.km() + ', but had ' + getKClassFromExpression(currentObject_0));
2723
+ }
2724
+ tmp$ret$3 = currentObject_0;
2725
+ tmp$ret$4 = new JsonTreeListDecoder(tmp_5, tmp$ret$3);
2726
+ tmp_2 = tmp$ret$4;
2727
+ } else {
2728
+ throw InvalidKeyKindException(keyDescriptor);
2729
+ }
2730
+ }
2731
+ tmp$ret$5 = tmp_2;
2732
+ tmp = tmp$ret$5;
2733
+ } else {
2734
+ var tmp_6 = this.z12();
2735
+ var tmp$ret$6;
2736
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
2737
+ if (!(currentObject_0 instanceof JsonObject)) {
2738
+ throw JsonDecodingException_1(-1, 'Expected ' + getKClass(JsonObject) + ' as the serialized body of ' + descriptor.km() + ', but had ' + getKClassFromExpression(currentObject_0));
2739
+ }
2740
+ tmp$ret$6 = currentObject_0;
2741
+ tmp = new JsonTreeDecoder(tmp_6, tmp$ret$6);
2742
+ }
2743
+ }
2744
+ return tmp;
2745
+ };
2746
+ protoOf(AbstractJsonTreeDecoder).io = function (descriptor) {
2747
+ };
2748
+ protoOf(AbstractJsonTreeDecoder).sn = function () {
2749
+ var tmp = currentObject(this);
2750
+ return !(tmp instanceof JsonNull);
2751
+ };
2752
+ protoOf(AbstractJsonTreeDecoder).g17 = function (tag) {
2753
+ var currentElement = this.f17(tag);
2754
+ var tmp0_elvis_lhs = currentElement instanceof JsonPrimitive ? currentElement : null;
2755
+ var tmp;
2756
+ if (tmp0_elvis_lhs == null) {
2757
+ throw JsonDecodingException_0(-1, 'Expected JsonPrimitive at ' + tag + ', found ' + currentElement, toString(currentObject(this)));
2758
+ } else {
2759
+ tmp = tmp0_elvis_lhs;
2760
+ }
2761
+ return tmp;
2762
+ };
2763
+ protoOf(AbstractJsonTreeDecoder).h17 = function (tag, enumDescriptor) {
2764
+ return getJsonNameIndexOrThrow(enumDescriptor, this.z12(), this.g17(tag).e13());
2765
+ };
2766
+ protoOf(AbstractJsonTreeDecoder).oz = function (tag, enumDescriptor) {
2767
+ return this.h17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
2768
+ };
2769
+ protoOf(AbstractJsonTreeDecoder).i17 = function (tag) {
2770
+ return !(this.f17(tag) === JsonNull_getInstance());
2771
+ };
2772
+ protoOf(AbstractJsonTreeDecoder).ez = function (tag) {
2773
+ return this.i17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
2774
+ };
2775
+ protoOf(AbstractJsonTreeDecoder).j17 = function (tag) {
2776
+ var value = this.g17(tag);
2777
+ if (!this.z12().g11_1.o12_1) {
2778
+ var literal = asLiteral(value, this, 'boolean');
2779
+ if (literal.i13_1)
2780
+ throw JsonDecodingException_0(-1, "Boolean literal for key '" + tag + "' should be unquoted.\n" + get_lenientHint(), toString(currentObject(this)));
2781
+ }
2782
+ var tmp$ret$1;
2783
+ $l$block: {
2784
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
2785
+ try {
2786
+ var tmp$ret$0;
2787
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedBoolean.<anonymous>' call
2788
+ var tmp0_elvis_lhs = get_booleanOrNull(value);
2789
+ var tmp;
2790
+ if (tmp0_elvis_lhs == null) {
2791
+ throw IllegalArgumentException_init_$Create$_0();
2792
+ } else {
2793
+ tmp = tmp0_elvis_lhs;
2794
+ }
2795
+ tmp$ret$0 = tmp;
2796
+ var tmp0_elvis_lhs_0 = tmp$ret$0;
2797
+ var tmp_0;
2798
+ if (tmp0_elvis_lhs_0 == null) {
2799
+ unparsedPrimitive(this, 'boolean');
2800
+ } else {
2801
+ tmp_0 = tmp0_elvis_lhs_0;
2802
+ }
2803
+ tmp$ret$1 = tmp_0;
2804
+ break $l$block;
2805
+ } catch ($p) {
2806
+ if ($p instanceof IllegalArgumentException) {
2807
+ var e = $p;
2808
+ unparsedPrimitive(this, 'boolean');
2809
+ } else {
2810
+ throw $p;
2811
+ }
2812
+ }
2813
+ }
2814
+ return tmp$ret$1;
2815
+ };
2816
+ protoOf(AbstractJsonTreeDecoder).fz = function (tag) {
2817
+ return this.j17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
2818
+ };
2819
+ protoOf(AbstractJsonTreeDecoder).k17 = function (tag) {
2820
+ var tmp$ret$1;
2821
+ $l$block: {
2822
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
2823
+ var tmp0_primitive = this.g17(tag);
2824
+ try {
2825
+ var tmp$ret$0;
2826
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedByte.<anonymous>' call
2827
+ var result = get_int(tmp0_primitive);
2828
+ var tmp;
2829
+ var containsLower = ByteCompanionObject_getInstance().MIN_VALUE;
2830
+ if (result <= ByteCompanionObject_getInstance().MAX_VALUE ? containsLower <= result : false) {
2831
+ tmp = toByte(result);
2832
+ } else {
2833
+ tmp = null;
2834
+ }
2835
+ tmp$ret$0 = tmp;
2836
+ var tmp0_elvis_lhs = tmp$ret$0;
2837
+ var tmp_0;
2838
+ if (tmp0_elvis_lhs == null) {
2839
+ unparsedPrimitive(this, 'byte');
2840
+ } else {
2841
+ tmp_0 = tmp0_elvis_lhs;
2842
+ }
2843
+ tmp$ret$1 = tmp_0;
2844
+ break $l$block;
2845
+ } catch ($p) {
2846
+ if ($p instanceof IllegalArgumentException) {
2847
+ var e = $p;
2848
+ unparsedPrimitive(this, 'byte');
2849
+ } else {
2850
+ throw $p;
2851
+ }
2852
+ }
2853
+ }
2854
+ return tmp$ret$1;
2855
+ };
2856
+ protoOf(AbstractJsonTreeDecoder).gz = function (tag) {
2857
+ return this.k17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
2858
+ };
2859
+ protoOf(AbstractJsonTreeDecoder).l17 = function (tag) {
2860
+ var tmp$ret$1;
2861
+ $l$block: {
2862
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
2863
+ var tmp0_primitive = this.g17(tag);
2864
+ try {
2865
+ var tmp$ret$0;
2866
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedShort.<anonymous>' call
2867
+ var result = get_int(tmp0_primitive);
2868
+ var tmp;
2869
+ var containsLower = ShortCompanionObject_getInstance().MIN_VALUE;
2870
+ if (result <= ShortCompanionObject_getInstance().MAX_VALUE ? containsLower <= result : false) {
2871
+ tmp = toShort(result);
2872
+ } else {
2873
+ tmp = null;
2874
+ }
2875
+ tmp$ret$0 = tmp;
2876
+ var tmp0_elvis_lhs = tmp$ret$0;
2877
+ var tmp_0;
2878
+ if (tmp0_elvis_lhs == null) {
2879
+ unparsedPrimitive(this, 'short');
2880
+ } else {
2881
+ tmp_0 = tmp0_elvis_lhs;
2882
+ }
2883
+ tmp$ret$1 = tmp_0;
2884
+ break $l$block;
2885
+ } catch ($p) {
2886
+ if ($p instanceof IllegalArgumentException) {
2887
+ var e = $p;
2888
+ unparsedPrimitive(this, 'short');
2889
+ } else {
2890
+ throw $p;
2891
+ }
2892
+ }
2893
+ }
2894
+ return tmp$ret$1;
2895
+ };
2896
+ protoOf(AbstractJsonTreeDecoder).hz = function (tag) {
2897
+ return this.l17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
2898
+ };
2899
+ protoOf(AbstractJsonTreeDecoder).m17 = function (tag) {
2900
+ var tmp$ret$1;
2901
+ $l$block: {
2902
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
2903
+ var tmp0_primitive = this.g17(tag);
2904
+ try {
2905
+ var tmp$ret$0;
2906
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedInt.<anonymous>' call
2907
+ tmp$ret$0 = get_int(tmp0_primitive);
2908
+ var tmp0_elvis_lhs = tmp$ret$0;
2909
+ var tmp;
2910
+ if (tmp0_elvis_lhs == null) {
2911
+ unparsedPrimitive(this, 'int');
2912
+ } else {
2913
+ tmp = tmp0_elvis_lhs;
2914
+ }
2915
+ tmp$ret$1 = tmp;
2916
+ break $l$block;
2917
+ } catch ($p) {
2918
+ if ($p instanceof IllegalArgumentException) {
2919
+ var e = $p;
2920
+ unparsedPrimitive(this, 'int');
2921
+ } else {
2922
+ throw $p;
2923
+ }
2924
+ }
2925
+ }
2926
+ return tmp$ret$1;
2927
+ };
2928
+ protoOf(AbstractJsonTreeDecoder).iz = function (tag) {
2929
+ return this.m17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
2930
+ };
2931
+ protoOf(AbstractJsonTreeDecoder).n17 = function (tag) {
2932
+ var tmp$ret$1;
2933
+ $l$block: {
2934
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
2935
+ var tmp0_primitive = this.g17(tag);
2936
+ try {
2937
+ var tmp$ret$0;
2938
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedLong.<anonymous>' call
2939
+ tmp$ret$0 = get_long(tmp0_primitive);
2940
+ var tmp0_elvis_lhs = tmp$ret$0;
2941
+ var tmp;
2942
+ if (tmp0_elvis_lhs == null) {
2943
+ unparsedPrimitive(this, 'long');
2944
+ } else {
2945
+ tmp = tmp0_elvis_lhs;
2946
+ }
2947
+ tmp$ret$1 = tmp;
2948
+ break $l$block;
2949
+ } catch ($p) {
2950
+ if ($p instanceof IllegalArgumentException) {
2951
+ var e = $p;
2952
+ unparsedPrimitive(this, 'long');
2953
+ } else {
2954
+ throw $p;
2955
+ }
2956
+ }
2957
+ }
2958
+ return tmp$ret$1;
2959
+ };
2960
+ protoOf(AbstractJsonTreeDecoder).jz = function (tag) {
2961
+ return this.n17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
2962
+ };
2963
+ protoOf(AbstractJsonTreeDecoder).o17 = function (tag) {
2964
+ var tmp$ret$1;
2965
+ $l$block: {
2966
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
2967
+ var tmp0_primitive = this.g17(tag);
2968
+ try {
2969
+ var tmp$ret$0;
2970
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedFloat.<anonymous>' call
2971
+ tmp$ret$0 = get_float(tmp0_primitive);
2972
+ var tmp0_elvis_lhs = tmp$ret$0;
2973
+ var tmp;
2974
+ if (tmp0_elvis_lhs == null) {
2975
+ unparsedPrimitive(this, 'float');
2976
+ } else {
2977
+ tmp = tmp0_elvis_lhs;
2978
+ }
2979
+ tmp$ret$1 = tmp;
2980
+ break $l$block;
2981
+ } catch ($p) {
2982
+ if ($p instanceof IllegalArgumentException) {
2983
+ var e = $p;
2984
+ unparsedPrimitive(this, 'float');
2985
+ } else {
2986
+ throw $p;
2987
+ }
2988
+ }
2989
+ }
2990
+ var result = tmp$ret$1;
2991
+ var specialFp = this.z12().g11_1.w12_1;
2992
+ if (specialFp ? true : isFinite(result))
2993
+ return result;
2994
+ throw InvalidFloatingPointDecoded(result, tag, toString(currentObject(this)));
2995
+ };
2996
+ protoOf(AbstractJsonTreeDecoder).kz = function (tag) {
2997
+ return this.o17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
2998
+ };
2999
+ protoOf(AbstractJsonTreeDecoder).p17 = function (tag) {
3000
+ var tmp$ret$1;
3001
+ $l$block: {
3002
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3003
+ var tmp0_primitive = this.g17(tag);
3004
+ try {
3005
+ var tmp$ret$0;
3006
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedDouble.<anonymous>' call
3007
+ tmp$ret$0 = get_double(tmp0_primitive);
3008
+ var tmp0_elvis_lhs = tmp$ret$0;
3009
+ var tmp;
3010
+ if (tmp0_elvis_lhs == null) {
3011
+ unparsedPrimitive(this, 'double');
3012
+ } else {
3013
+ tmp = tmp0_elvis_lhs;
3014
+ }
3015
+ tmp$ret$1 = tmp;
3016
+ break $l$block;
3017
+ } catch ($p) {
3018
+ if ($p instanceof IllegalArgumentException) {
3019
+ var e = $p;
3020
+ unparsedPrimitive(this, 'double');
3021
+ } else {
3022
+ throw $p;
3023
+ }
3024
+ }
3025
+ }
3026
+ var result = tmp$ret$1;
3027
+ var specialFp = this.z12().g11_1.w12_1;
3028
+ if (specialFp ? true : isFinite_0(result))
3029
+ return result;
3030
+ throw InvalidFloatingPointDecoded(result, tag, toString(currentObject(this)));
3031
+ };
3032
+ protoOf(AbstractJsonTreeDecoder).lz = function (tag) {
3033
+ return this.p17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3034
+ };
3035
+ protoOf(AbstractJsonTreeDecoder).q17 = function (tag) {
3036
+ var tmp$ret$1;
3037
+ $l$block: {
3038
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.primitive' call
3039
+ var tmp0_primitive = this.g17(tag);
3040
+ try {
3041
+ var tmp$ret$0;
3042
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeTaggedChar.<anonymous>' call
3043
+ tmp$ret$0 = single(tmp0_primitive.e13());
3044
+ var tmp0_elvis_lhs = tmp$ret$0;
3045
+ var tmp;
3046
+ var tmp_0 = tmp0_elvis_lhs;
3047
+ if ((tmp_0 == null ? null : new Char(tmp_0)) == null) {
3048
+ unparsedPrimitive(this, 'char');
3049
+ } else {
3050
+ tmp = tmp0_elvis_lhs;
3051
+ }
3052
+ tmp$ret$1 = tmp;
3053
+ break $l$block;
3054
+ } catch ($p) {
3055
+ if ($p instanceof IllegalArgumentException) {
3056
+ var e = $p;
3057
+ unparsedPrimitive(this, 'char');
3058
+ } else {
3059
+ throw $p;
3060
+ }
3061
+ }
3062
+ }
3063
+ return tmp$ret$1;
3064
+ };
3065
+ protoOf(AbstractJsonTreeDecoder).mz = function (tag) {
3066
+ return this.q17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3067
+ };
3068
+ protoOf(AbstractJsonTreeDecoder).r17 = function (tag) {
3069
+ var value = this.g17(tag);
3070
+ if (!this.z12().g11_1.o12_1) {
3071
+ var literal = asLiteral(value, this, 'string');
3072
+ if (!literal.i13_1)
3073
+ throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted.\n" + get_lenientHint(), toString(currentObject(this)));
3074
+ }
3075
+ if (value instanceof JsonNull)
3076
+ throw JsonDecodingException_0(-1, "Unexpected 'null' value instead of string literal", toString(currentObject(this)));
3077
+ return value.e13();
3078
+ };
3079
+ protoOf(AbstractJsonTreeDecoder).nz = function (tag) {
3080
+ return this.r17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3081
+ };
3082
+ protoOf(AbstractJsonTreeDecoder).s17 = function (tag, inlineDescriptor) {
3083
+ return get_isUnsignedNumber(inlineDescriptor) ? new JsonDecoderForUnsignedTypes(new StringJsonLexer(this.g17(tag).e13()), this.z12()) : protoOf(NamedValueDecoder).pz.call(this, tag, inlineDescriptor);
3084
+ };
3085
+ protoOf(AbstractJsonTreeDecoder).pz = function (tag, inlineDescriptor) {
3086
+ return this.s17((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
3087
+ };
3088
+ function coerceInputValue_0($this, descriptor, index, tag) {
3089
+ var tmp$ret$1;
3090
+ $l$block_2: {
3091
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
3092
+ var tmp0_tryCoerceValue = $this.z12();
3093
+ var tmp1_tryCoerceValue = descriptor.qm(index);
3094
+ var tmp;
3095
+ if (!tmp1_tryCoerceValue.gm()) {
3096
+ var tmp$ret$0;
3097
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
3098
+ var tmp_0 = $this.f17(tag);
3099
+ tmp$ret$0 = tmp_0 instanceof JsonNull;
3100
+ tmp = tmp$ret$0;
3101
+ } else {
3102
+ tmp = false;
3103
+ }
3104
+ if (tmp) {
3105
+ tmp$ret$1 = true;
3106
+ break $l$block_2;
3107
+ }
3108
+ if (equals(tmp1_tryCoerceValue.om(), ENUM_getInstance())) {
3109
+ var tmp_1;
3110
+ if (tmp1_tryCoerceValue.gm()) {
3111
+ var tmp$ret$2;
3112
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
3113
+ var tmp_2 = $this.f17(tag);
3114
+ tmp$ret$2 = tmp_2 instanceof JsonNull;
3115
+ tmp_1 = tmp$ret$2;
3116
+ } else {
3117
+ tmp_1 = false;
3118
+ }
3119
+ if (tmp_1) {
3120
+ tmp$ret$1 = false;
3121
+ break $l$block_2;
3122
+ }
3123
+ var tmp$ret$3;
3124
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.coerceInputValue.<anonymous>' call
3125
+ var tmp_3 = $this.f17(tag);
3126
+ var tmp0_safe_receiver = tmp_3 instanceof JsonPrimitive ? tmp_3 : null;
3127
+ tmp$ret$3 = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
3128
+ var tmp0_elvis_lhs = tmp$ret$3;
3129
+ var tmp_4;
3130
+ if (tmp0_elvis_lhs == null) {
3131
+ tmp$ret$1 = false;
3132
+ break $l$block_2;
3133
+ } else {
3134
+ tmp_4 = tmp0_elvis_lhs;
3135
+ }
3136
+ var enumValue = tmp_4;
3137
+ var enumIndex = getJsonNameIndex(tmp1_tryCoerceValue, tmp0_tryCoerceValue, enumValue);
3138
+ Companion_getInstance();
3139
+ if (enumIndex === -3) {
3140
+ var tmp$ret$4;
3141
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue.<anonymous>' call
3142
+ tmp$ret$4 = Unit_getInstance();
3143
+ tmp$ret$1 = true;
3144
+ break $l$block_2;
3145
+ }
3146
+ }
3147
+ tmp$ret$1 = false;
3148
+ }
3149
+ return tmp$ret$1;
3150
+ }
3151
+ function absenceIsNull($this, descriptor, index) {
3152
+ $this.c18_1 = (!$this.z12().g11_1.r12_1 ? !descriptor.tm(index) : false) ? descriptor.qm(index).gm() : false;
3153
+ return $this.c18_1;
3154
+ }
3155
+ function JsonTreeDecoder(json, value, polyDiscriminator, polyDescriptor) {
3156
+ polyDiscriminator = polyDiscriminator === VOID ? null : polyDiscriminator;
3157
+ polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
3158
+ AbstractJsonTreeDecoder.call(this, json, value);
3159
+ this.y17_1 = value;
3160
+ this.z17_1 = polyDiscriminator;
3161
+ this.a18_1 = polyDescriptor;
3162
+ this.b18_1 = 0;
3163
+ this.c18_1 = false;
3164
+ }
3165
+ protoOf(JsonTreeDecoder).w = function () {
3166
+ return this.y17_1;
3167
+ };
3168
+ protoOf(JsonTreeDecoder).yo = function (descriptor) {
3169
+ while (this.b18_1 < descriptor.mm()) {
3170
+ var tmp0_this = this;
3171
+ var tmp1 = tmp0_this.b18_1;
3172
+ tmp0_this.b18_1 = tmp1 + 1 | 0;
3173
+ var name = this.wy(descriptor, tmp1);
3174
+ var index = this.b18_1 - 1 | 0;
3175
+ this.c18_1 = false;
3176
+ var tmp;
3177
+ var tmp_0;
3178
+ var tmp$ret$1;
3179
+ // Inline function 'kotlin.collections.contains' call
3180
+ var tmp0_contains = this.w();
3181
+ var tmp$ret$0;
3182
+ // Inline function 'kotlin.collections.containsKey' call
3183
+ tmp$ret$0 = (isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).i2(name);
3184
+ tmp$ret$1 = tmp$ret$0;
3185
+ if (tmp$ret$1) {
3186
+ tmp_0 = true;
3187
+ } else {
3188
+ tmp_0 = absenceIsNull(this, descriptor, index);
3189
+ }
3190
+ if (tmp_0) {
3191
+ tmp = !this.e17_1.t12_1 ? true : !coerceInputValue_0(this, descriptor, index, name);
3192
+ } else {
3193
+ tmp = false;
3194
+ }
3195
+ if (tmp) {
3196
+ return index;
3197
+ }
3198
+ }
3199
+ Companion_getInstance();
3200
+ return -1;
3201
+ };
3202
+ protoOf(JsonTreeDecoder).sn = function () {
3203
+ return !this.c18_1 ? protoOf(AbstractJsonTreeDecoder).sn.call(this) : false;
3204
+ };
3205
+ protoOf(JsonTreeDecoder).xy = function (descriptor, index) {
3206
+ var strategy = namingStrategy(descriptor, this.z12());
3207
+ var baseName = descriptor.sm(index);
3208
+ if (strategy == null) {
3209
+ if (!this.e17_1.x12_1)
3210
+ return baseName;
3211
+ if (this.w().n2().i1(baseName))
3212
+ return baseName;
3213
+ }
3214
+ var deserializationNamesMap_0 = deserializationNamesMap(this.z12(), descriptor);
3215
+ var tmp$ret$2;
3216
+ // Inline function 'kotlin.collections.find' call
3217
+ var tmp0_find = this.w().n2();
3218
+ var tmp$ret$1;
3219
+ $l$block: {
3220
+ // Inline function 'kotlin.collections.firstOrNull' call
3221
+ var tmp0_iterator = tmp0_find.c();
3222
+ while (tmp0_iterator.d()) {
3223
+ var element = tmp0_iterator.e();
3224
+ var tmp$ret$0;
3225
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeDecoder.elementName.<anonymous>' call
3226
+ tmp$ret$0 = deserializationNamesMap_0.m2(element) === index;
3227
+ if (tmp$ret$0) {
3228
+ tmp$ret$1 = element;
3229
+ break $l$block;
3230
+ }
3231
+ }
3232
+ tmp$ret$1 = null;
3233
+ }
3234
+ tmp$ret$2 = tmp$ret$1;
3235
+ var tmp0_safe_receiver = tmp$ret$2;
3236
+ if (tmp0_safe_receiver == null)
3237
+ null;
3238
+ else {
3239
+ var tmp$ret$3;
3240
+ // Inline function 'kotlin.let' call
3241
+ // Inline function 'kotlin.contracts.contract' call
3242
+ return tmp0_safe_receiver;
3243
+ }
3244
+ var tmp1_safe_receiver = strategy;
3245
+ var fallbackName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f14(descriptor, index, baseName);
3246
+ var tmp2_elvis_lhs = fallbackName;
3247
+ return tmp2_elvis_lhs == null ? baseName : tmp2_elvis_lhs;
3248
+ };
3249
+ protoOf(JsonTreeDecoder).f17 = function (tag) {
3250
+ return getValue(this.w(), tag);
3251
+ };
3252
+ protoOf(JsonTreeDecoder).ho = function (descriptor) {
3253
+ if (descriptor === this.a18_1)
3254
+ return this;
3255
+ return protoOf(AbstractJsonTreeDecoder).ho.call(this, descriptor);
3256
+ };
3257
+ protoOf(JsonTreeDecoder).io = function (descriptor) {
3258
+ var tmp;
3259
+ if (this.e17_1.n12_1) {
3260
+ tmp = true;
3261
+ } else {
3262
+ var tmp_0 = descriptor.om();
3263
+ tmp = tmp_0 instanceof PolymorphicKind;
3264
+ }
3265
+ if (tmp)
3266
+ return Unit_getInstance();
3267
+ var strategy = namingStrategy(descriptor, this.z12());
3268
+ var tmp_1;
3269
+ if (strategy == null ? !this.e17_1.x12_1 : false) {
3270
+ tmp_1 = jsonCachedSerialNames(descriptor);
3271
+ } else if (!(strategy == null)) {
3272
+ tmp_1 = deserializationNamesMap(this.z12(), descriptor).n2();
3273
+ } else {
3274
+ var tmp_2 = jsonCachedSerialNames(descriptor);
3275
+ var tmp$ret$0;
3276
+ // Inline function 'kotlin.collections.orEmpty' call
3277
+ var tmp0_safe_receiver = get_schemaCache(this.z12()).f16(descriptor, get_JsonDeserializationNamesKey());
3278
+ var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2();
3279
+ var tmp0_elvis_lhs = tmp0_orEmpty;
3280
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
3281
+ tmp_1 = plus_0(tmp_2, tmp$ret$0);
3282
+ }
3283
+ var names = tmp_1;
3284
+ var tmp1_iterator = this.w().n2().c();
3285
+ while (tmp1_iterator.d()) {
3286
+ var key = tmp1_iterator.e();
3287
+ if (!names.i1(key) ? !(key === this.z17_1) : false) {
3288
+ throw UnknownKeyException(key, this.w().toString());
3289
+ }
3290
+ }
3291
+ };
3292
+ function JsonTreeListDecoder(json, value) {
3293
+ AbstractJsonTreeDecoder.call(this, json, value);
3294
+ this.i18_1 = value;
3295
+ this.j18_1 = this.i18_1.f();
3296
+ this.k18_1 = -1;
3297
+ }
3298
+ protoOf(JsonTreeListDecoder).w = function () {
3299
+ return this.i18_1;
3300
+ };
3301
+ protoOf(JsonTreeListDecoder).xy = function (descriptor, index) {
3302
+ return index.toString();
3303
+ };
3304
+ protoOf(JsonTreeListDecoder).f17 = function (tag) {
3305
+ return this.i18_1.h(toInt(tag));
3306
+ };
3307
+ protoOf(JsonTreeListDecoder).yo = function (descriptor) {
3308
+ while (this.k18_1 < (this.j18_1 - 1 | 0)) {
3309
+ var tmp0_this = this;
3310
+ var tmp1 = tmp0_this.k18_1;
3311
+ tmp0_this.k18_1 = tmp1 + 1 | 0;
3312
+ return this.k18_1;
3313
+ }
3314
+ Companion_getInstance();
3315
+ return -1;
3316
+ };
3317
+ function JsonPrimitiveDecoder(json, value) {
3318
+ AbstractJsonTreeDecoder.call(this, json, value);
3319
+ this.q18_1 = value;
3320
+ this.qz(get_PRIMITIVE_TAG());
3321
+ }
3322
+ protoOf(JsonPrimitiveDecoder).w = function () {
3323
+ return this.q18_1;
3324
+ };
3325
+ protoOf(JsonPrimitiveDecoder).yo = function (descriptor) {
3326
+ return 0;
3327
+ };
3328
+ protoOf(JsonPrimitiveDecoder).f17 = function (tag) {
3329
+ // Inline function 'kotlin.require' call
3330
+ var tmp0_require = tag === get_PRIMITIVE_TAG();
3331
+ // Inline function 'kotlin.contracts.contract' call
3332
+ if (!tmp0_require) {
3333
+ var tmp$ret$0;
3334
+ // Inline function 'kotlinx.serialization.json.internal.JsonPrimitiveDecoder.currentElement.<anonymous>' call
3335
+ tmp$ret$0 = "This input can only handle primitives with '" + get_PRIMITIVE_TAG() + "' tag";
3336
+ var message = tmp$ret$0;
3337
+ throw IllegalArgumentException_init_$Create$(toString(message));
3338
+ }
3339
+ return this.q18_1;
3340
+ };
3341
+ function JsonTreeMapDecoder(json, value) {
3342
+ JsonTreeDecoder.call(this, json, value);
3343
+ this.b19_1 = value;
3344
+ this.c19_1 = toList(this.b19_1.n2());
3345
+ this.d19_1 = imul(this.c19_1.f(), 2);
3346
+ this.e19_1 = -1;
3347
+ }
3348
+ protoOf(JsonTreeMapDecoder).w = function () {
3349
+ return this.b19_1;
3350
+ };
3351
+ protoOf(JsonTreeMapDecoder).xy = function (descriptor, index) {
3352
+ var i = index / 2 | 0;
3353
+ return this.c19_1.h(i);
3354
+ };
3355
+ protoOf(JsonTreeMapDecoder).yo = function (descriptor) {
3356
+ while (this.e19_1 < (this.d19_1 - 1 | 0)) {
3357
+ var tmp0_this = this;
3358
+ var tmp1 = tmp0_this.e19_1;
3359
+ tmp0_this.e19_1 = tmp1 + 1 | 0;
3360
+ return this.e19_1;
3361
+ }
3362
+ Companion_getInstance();
3363
+ return -1;
3364
+ };
3365
+ protoOf(JsonTreeMapDecoder).f17 = function (tag) {
3366
+ return (this.e19_1 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.b19_1, tag);
3367
+ };
3368
+ protoOf(JsonTreeMapDecoder).io = function (descriptor) {
3369
+ };
3370
+ function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) {
3371
+ return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.jl())).go(deserializer);
3372
+ }
3373
+ function get_PRIMITIVE_TAG() {
3374
+ return PRIMITIVE_TAG;
3375
+ }
3376
+ var PRIMITIVE_TAG;
3377
+ var WriteMode_OBJ_instance;
3378
+ var WriteMode_LIST_instance;
3379
+ var WriteMode_MAP_instance;
3380
+ var WriteMode_POLY_OBJ_instance;
3381
+ var WriteMode_entriesInitialized;
3382
+ function WriteMode_initEntries() {
3383
+ if (WriteMode_entriesInitialized)
3384
+ return Unit_getInstance();
3385
+ WriteMode_entriesInitialized = true;
3386
+ WriteMode_OBJ_instance = new WriteMode('OBJ', 0, get_BEGIN_OBJ(), get_END_OBJ());
3387
+ WriteMode_LIST_instance = new WriteMode('LIST', 1, get_BEGIN_LIST(), get_END_LIST());
3388
+ WriteMode_MAP_instance = new WriteMode('MAP', 2, get_BEGIN_OBJ(), get_END_OBJ());
3389
+ WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, get_BEGIN_LIST(), get_END_LIST());
3390
+ }
3391
+ function WriteMode(name, ordinal, begin, end) {
3392
+ Enum.call(this, name, ordinal);
3393
+ this.s16_1 = begin;
3394
+ this.t16_1 = end;
3395
+ }
3396
+ function switchMode(_this__u8e3s4, desc) {
3397
+ var tmp0_subject = desc.om();
3398
+ var tmp;
3399
+ if (tmp0_subject instanceof PolymorphicKind) {
3400
+ tmp = WriteMode_POLY_OBJ_getInstance();
3401
+ } else {
3402
+ if (equals(tmp0_subject, LIST_getInstance())) {
3403
+ tmp = WriteMode_LIST_getInstance();
3404
+ } else {
3405
+ if (equals(tmp0_subject, MAP_getInstance())) {
3406
+ var tmp$ret$2;
3407
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
3408
+ var keyDescriptor = carrierDescriptor(desc.qm(0), _this__u8e3s4.wo());
3409
+ var keyKind = keyDescriptor.om();
3410
+ var tmp_0;
3411
+ var tmp_1;
3412
+ if (keyKind instanceof PrimitiveKind) {
3413
+ tmp_1 = true;
3414
+ } else {
3415
+ tmp_1 = equals(keyKind, ENUM_getInstance());
3416
+ }
3417
+ if (tmp_1) {
3418
+ var tmp$ret$0;
3419
+ // Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
3420
+ tmp$ret$0 = WriteMode_MAP_getInstance();
3421
+ tmp_0 = tmp$ret$0;
3422
+ } else {
3423
+ if (_this__u8e3s4.g11_1.p12_1) {
3424
+ var tmp$ret$1;
3425
+ // Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
3426
+ tmp$ret$1 = WriteMode_LIST_getInstance();
3427
+ tmp_0 = tmp$ret$1;
3428
+ } else {
3429
+ throw InvalidKeyKindException(keyDescriptor);
3430
+ }
3431
+ }
3432
+ tmp$ret$2 = tmp_0;
3433
+ tmp = tmp$ret$2;
3434
+ } else {
3435
+ tmp = WriteMode_OBJ_getInstance();
3436
+ }
3437
+ }
3438
+ }
3439
+ return tmp;
3440
+ }
3441
+ function carrierDescriptor(_this__u8e3s4, module_0) {
3442
+ var tmp;
3443
+ if (equals(_this__u8e3s4.om(), CONTEXTUAL_getInstance())) {
3444
+ var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
3445
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
3446
+ tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
3447
+ } else if (_this__u8e3s4.nm()) {
3448
+ tmp = carrierDescriptor(_this__u8e3s4.qm(0), module_0);
3449
+ } else {
3450
+ tmp = _this__u8e3s4;
3451
+ }
3452
+ return tmp;
3453
+ }
3454
+ function WriteMode_OBJ_getInstance() {
3455
+ WriteMode_initEntries();
3456
+ return WriteMode_OBJ_instance;
3457
+ }
3458
+ function WriteMode_LIST_getInstance() {
3459
+ WriteMode_initEntries();
3460
+ return WriteMode_LIST_instance;
3461
+ }
3462
+ function WriteMode_MAP_getInstance() {
3463
+ WriteMode_initEntries();
3464
+ return WriteMode_MAP_instance;
3465
+ }
3466
+ function WriteMode_POLY_OBJ_getInstance() {
3467
+ WriteMode_initEntries();
3468
+ return WriteMode_POLY_OBJ_instance;
3469
+ }
3470
+ function get_STRING() {
3471
+ return STRING;
3472
+ }
3473
+ var STRING;
3474
+ function appendEscape($this, lastPosition, current) {
3475
+ $this.f19(lastPosition, current);
3476
+ return appendEsc($this, current + 1 | 0);
3477
+ }
3478
+ function decodedString($this, lastPosition, currentPosition) {
3479
+ $this.f19(lastPosition, currentPosition);
3480
+ var result = $this.w11_1.toString();
3481
+ $this.w11_1.pd(0);
3482
+ return result;
3483
+ }
3484
+ function takePeeked($this) {
3485
+ var tmp$ret$0;
3486
+ // Inline function 'kotlin.also' call
3487
+ var tmp0_also = ensureNotNull($this.v11_1);
3488
+ // Inline function 'kotlin.contracts.contract' call
3489
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.takePeeked.<anonymous>' call
3490
+ $this.v11_1 = null;
3491
+ tmp$ret$0 = tmp0_also;
3492
+ return tmp$ret$0;
3493
+ }
3494
+ function wasUnquotedString($this) {
3495
+ return !equals(new Char(charSequenceGet($this.g19(), $this.t11_1 - 1 | 0)), new Char(_Char___init__impl__6a9atx(34)));
3496
+ }
3497
+ function appendEsc($this, startPosition) {
3498
+ var currentPosition = startPosition;
3499
+ currentPosition = $this.h19(currentPosition);
3500
+ if (currentPosition === -1) {
3501
+ $this.b14('Expected escape sequence to continue, got EOF');
3502
+ }
3503
+ var tmp = $this.g19();
3504
+ var tmp0 = currentPosition;
3505
+ currentPosition = tmp0 + 1 | 0;
3506
+ var currentChar = charSequenceGet(tmp, tmp0);
3507
+ if (equals(new Char(currentChar), new Char(_Char___init__impl__6a9atx(117)))) {
3508
+ return appendHex($this, $this.g19(), currentPosition);
3509
+ }
3510
+ var tmp$ret$0;
3511
+ // Inline function 'kotlin.code' call
3512
+ tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
3513
+ var c = escapeToChar(tmp$ret$0);
3514
+ if (equals(new Char(c), new Char(_Char___init__impl__6a9atx(0)))) {
3515
+ $this.b14("Invalid escaped char '" + new Char(currentChar) + "'");
3516
+ }
3517
+ $this.w11_1.x4(c);
3518
+ return currentPosition;
3519
+ }
3520
+ function appendHex($this, source, startPos) {
3521
+ if ((startPos + 4 | 0) >= charSequenceLength(source)) {
3522
+ $this.t11_1 = startPos;
3523
+ $this.i19();
3524
+ if (($this.t11_1 + 4 | 0) >= charSequenceLength(source)) {
3525
+ $this.b14('Unexpected EOF during unicode escape');
3526
+ }
3527
+ return appendHex($this, source, $this.t11_1);
3528
+ }
3529
+ $this.w11_1.x4(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));
3530
+ return startPos + 4 | 0;
3531
+ }
3532
+ function fromHexChar($this, source, currentPosition) {
3533
+ var character = charSequenceGet(source, currentPosition);
3534
+ var tmp;
3535
+ if (_Char___init__impl__6a9atx(48) <= character ? character <= _Char___init__impl__6a9atx(57) : false) {
3536
+ var tmp$ret$0;
3537
+ // Inline function 'kotlin.code' call
3538
+ tmp$ret$0 = Char__toInt_impl_vasixd(character);
3539
+ var tmp_0 = tmp$ret$0;
3540
+ var tmp$ret$1;
3541
+ // Inline function 'kotlin.code' call
3542
+ tmp$ret$1 = 48;
3543
+ tmp = tmp_0 - tmp$ret$1 | 0;
3544
+ } else if (_Char___init__impl__6a9atx(97) <= character ? character <= _Char___init__impl__6a9atx(102) : false) {
3545
+ var tmp$ret$2;
3546
+ // Inline function 'kotlin.code' call
3547
+ tmp$ret$2 = Char__toInt_impl_vasixd(character);
3548
+ var tmp_1 = tmp$ret$2;
3549
+ var tmp$ret$3;
3550
+ // Inline function 'kotlin.code' call
3551
+ tmp$ret$3 = 97;
3552
+ tmp = (tmp_1 - tmp$ret$3 | 0) + 10 | 0;
3553
+ } else if (_Char___init__impl__6a9atx(65) <= character ? character <= _Char___init__impl__6a9atx(70) : false) {
3554
+ var tmp$ret$4;
3555
+ // Inline function 'kotlin.code' call
3556
+ tmp$ret$4 = Char__toInt_impl_vasixd(character);
3557
+ var tmp_2 = tmp$ret$4;
3558
+ var tmp$ret$5;
3559
+ // Inline function 'kotlin.code' call
3560
+ tmp$ret$5 = 65;
3561
+ tmp = (tmp_2 - tmp$ret$5 | 0) + 10 | 0;
3562
+ } else {
3563
+ $this.b14("Invalid toHexChar char '" + new Char(character) + "' in unicode escape");
3564
+ }
3565
+ return tmp;
3566
+ }
3567
+ function consumeBoolean($this, start) {
3568
+ var current = $this.h19(start);
3569
+ if (current >= charSequenceLength($this.g19()) ? true : current === -1) {
3570
+ $this.b14('EOF');
3571
+ }
3572
+ var tmp$ret$0;
3573
+ // Inline function 'kotlin.code' call
3574
+ var tmp = $this.g19();
3575
+ var tmp0 = current;
3576
+ current = tmp0 + 1 | 0;
3577
+ var tmp0__get_code__88qj9g = charSequenceGet(tmp, tmp0);
3578
+ tmp$ret$0 = Char__toInt_impl_vasixd(tmp0__get_code__88qj9g);
3579
+ var tmp1_subject = tmp$ret$0 | 32;
3580
+ var tmp_0;
3581
+ var tmp$ret$1;
3582
+ // Inline function 'kotlin.code' call
3583
+ tmp$ret$1 = 116;
3584
+ if (tmp1_subject === tmp$ret$1) {
3585
+ consumeBooleanLiteral($this, 'rue', current);
3586
+ tmp_0 = true;
3587
+ } else {
3588
+ var tmp$ret$2;
3589
+ // Inline function 'kotlin.code' call
3590
+ tmp$ret$2 = 102;
3591
+ if (tmp1_subject === tmp$ret$2) {
3592
+ consumeBooleanLiteral($this, 'alse', current);
3593
+ tmp_0 = false;
3594
+ } else {
3595
+ $this.b14("Expected valid boolean literal prefix, but had '" + $this.w14() + "'");
3596
+ }
3597
+ }
3598
+ return tmp_0;
3599
+ }
3600
+ function consumeBooleanLiteral($this, literalSuffix, current) {
3601
+ if ((charSequenceLength($this.g19()) - current | 0) < literalSuffix.length) {
3602
+ $this.b14('Unexpected end of boolean literal');
3603
+ }
3604
+ var inductionVariable = 0;
3605
+ var last = charSequenceLength(literalSuffix) - 1 | 0;
3606
+ if (inductionVariable <= last)
3607
+ do {
3608
+ var i = inductionVariable;
3609
+ inductionVariable = inductionVariable + 1 | 0;
3610
+ var expected = charSequenceGet(literalSuffix, i);
3611
+ var actual = charSequenceGet($this.g19(), current + i | 0);
3612
+ var tmp$ret$0;
3613
+ // Inline function 'kotlin.code' call
3614
+ tmp$ret$0 = Char__toInt_impl_vasixd(expected);
3615
+ var tmp = tmp$ret$0;
3616
+ var tmp$ret$1;
3617
+ // Inline function 'kotlin.code' call
3618
+ tmp$ret$1 = Char__toInt_impl_vasixd(actual);
3619
+ if (!(tmp === (tmp$ret$1 | 32))) {
3620
+ $this.b14("Expected valid boolean literal prefix, but had '" + $this.w14() + "'");
3621
+ }
3622
+ }
3623
+ while (inductionVariable <= last);
3624
+ $this.t11_1 = current + literalSuffix.length | 0;
3625
+ }
3626
+ function AbstractJsonLexer() {
3627
+ this.t11_1 = 0;
3628
+ this.u11_1 = new JsonPath();
3629
+ this.v11_1 = null;
3630
+ this.w11_1 = StringBuilder_init_$Create$();
3631
+ }
3632
+ protoOf(AbstractJsonLexer).i19 = function () {
3633
+ };
3634
+ protoOf(AbstractJsonLexer).j19 = function (c) {
3635
+ var tmp0_subject = c;
3636
+ return (((equals(new Char(tmp0_subject), new Char(_Char___init__impl__6a9atx(125))) ? true : equals(new Char(tmp0_subject), new Char(_Char___init__impl__6a9atx(93)))) ? true : equals(new Char(tmp0_subject), new Char(_Char___init__impl__6a9atx(58)))) ? true : equals(new Char(tmp0_subject), new Char(_Char___init__impl__6a9atx(44)))) ? false : true;
3637
+ };
3638
+ protoOf(AbstractJsonLexer).x11 = function () {
3639
+ var nextToken = this.y14();
3640
+ if (!(nextToken === 10)) {
3641
+ this.b14('Expected EOF after parsing, but had ' + new Char(charSequenceGet(this.g19(), this.t11_1 - 1 | 0)) + ' instead');
3642
+ }
3643
+ };
3644
+ protoOf(AbstractJsonLexer).s14 = function (expected) {
3645
+ var token = this.y14();
3646
+ if (!(token === expected)) {
3647
+ this.k19(expected);
3648
+ }
3649
+ return token;
3650
+ };
3651
+ protoOf(AbstractJsonLexer).h16 = function (expected) {
3652
+ this.i19();
3653
+ var source = this.g19();
3654
+ var cpos = this.t11_1;
3655
+ $l$loop_0: while (true) {
3656
+ cpos = this.h19(cpos);
3657
+ if (cpos === -1)
3658
+ break $l$loop_0;
3659
+ var tmp0 = cpos;
3660
+ cpos = tmp0 + 1 | 0;
3661
+ var c = charSequenceGet(source, tmp0);
3662
+ if (((equals(new Char(c), new Char(_Char___init__impl__6a9atx(32))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(10)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(13)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(9))))
3663
+ continue $l$loop_0;
3664
+ this.t11_1 = cpos;
3665
+ if (equals(new Char(c), new Char(expected)))
3666
+ return Unit_getInstance();
3667
+ this.l19(expected);
3668
+ }
3669
+ this.t11_1 = cpos;
3670
+ this.l19(expected);
3671
+ };
3672
+ protoOf(AbstractJsonLexer).l19 = function (expected) {
3673
+ var tmp0_this = this;
3674
+ tmp0_this.t11_1 = tmp0_this.t11_1 - 1 | 0;
3675
+ if ((this.t11_1 >= 0 ? equals(new Char(expected), new Char(_Char___init__impl__6a9atx(34))) : false) ? this.w14() === 'null' : false) {
3676
+ this.m19("Expected string literal but 'null' literal was found", this.t11_1 - 4 | 0, "Use 'coerceInputValues = true' in 'Json {}` builder to coerce nulls to default values.");
3677
+ }
3678
+ this.k19(charToTokenClass(expected));
3679
+ };
3680
+ protoOf(AbstractJsonLexer).k19 = function (expectedToken) {
3681
+ var tmp0_subject = expectedToken;
3682
+ var expected = tmp0_subject === 1 ? "quotation mark '\"'" : tmp0_subject === 4 ? "comma ','" : tmp0_subject === 5 ? "colon ':'" : tmp0_subject === 6 ? "start of the object '{'" : tmp0_subject === 7 ? "end of the object '}'" : tmp0_subject === 8 ? "start of the array '['" : tmp0_subject === 9 ? "end of the array ']'" : 'valid token';
3683
+ var s = (this.t11_1 === charSequenceLength(this.g19()) ? true : this.t11_1 <= 0) ? 'EOF' : toString_0(charSequenceGet(this.g19(), this.t11_1 - 1 | 0));
3684
+ this.b14('Expected ' + expected + ", but had '" + s + "' instead", this.t11_1 - 1 | 0);
3685
+ };
3686
+ protoOf(AbstractJsonLexer).t14 = function () {
3687
+ var source = this.g19();
3688
+ var cpos = this.t11_1;
3689
+ $l$loop_0: while (true) {
3690
+ cpos = this.h19(cpos);
3691
+ if (cpos === -1)
3692
+ break $l$loop_0;
3693
+ var ch = charSequenceGet(source, cpos);
3694
+ if (((equals(new Char(ch), new Char(_Char___init__impl__6a9atx(32))) ? true : equals(new Char(ch), new Char(_Char___init__impl__6a9atx(10)))) ? true : equals(new Char(ch), new Char(_Char___init__impl__6a9atx(13)))) ? true : equals(new Char(ch), new Char(_Char___init__impl__6a9atx(9)))) {
3695
+ cpos = cpos + 1 | 0;
3696
+ continue $l$loop_0;
3697
+ }
3698
+ this.t11_1 = cpos;
3699
+ return charToTokenClass(ch);
3700
+ }
3701
+ this.t11_1 = cpos;
3702
+ return 10;
3703
+ };
3704
+ protoOf(AbstractJsonLexer).j16 = function (doConsume) {
3705
+ var current = this.n19();
3706
+ current = this.h19(current);
3707
+ var len = charSequenceLength(this.g19()) - current | 0;
3708
+ if (len < 4 ? true : current === -1)
3709
+ return false;
3710
+ var inductionVariable = 0;
3711
+ if (inductionVariable <= 3)
3712
+ do {
3713
+ var i = inductionVariable;
3714
+ inductionVariable = inductionVariable + 1 | 0;
3715
+ if (!equals(new Char(charSequenceGet('null', i)), new Char(charSequenceGet(this.g19(), current + i | 0))))
3716
+ return false;
3717
+ }
3718
+ while (inductionVariable <= 3);
3719
+ if (len > 4 ? charToTokenClass(charSequenceGet(this.g19(), current + 4 | 0)) === 0 : false)
3720
+ return false;
3721
+ if (doConsume) {
3722
+ this.t11_1 = current + 4 | 0;
3723
+ }
3724
+ return true;
3725
+ };
3726
+ protoOf(AbstractJsonLexer).u16 = function (doConsume, $super) {
3727
+ doConsume = doConsume === VOID ? true : doConsume;
3728
+ return $super === VOID ? this.j16(doConsume) : $super.j16.call(this, doConsume);
3729
+ };
3730
+ protoOf(AbstractJsonLexer).n19 = function () {
3731
+ var current = this.t11_1;
3732
+ $l$loop_0: while (true) {
3733
+ current = this.h19(current);
3734
+ if (current === -1)
3735
+ break $l$loop_0;
3736
+ var c = charSequenceGet(this.g19(), current);
3737
+ if (((equals(new Char(c), new Char(_Char___init__impl__6a9atx(32))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(10)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(13)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(9)))) {
3738
+ current = current + 1 | 0;
3739
+ } else {
3740
+ break $l$loop_0;
3741
+ }
3742
+ }
3743
+ this.t11_1 = current;
3744
+ return current;
3745
+ };
3746
+ protoOf(AbstractJsonLexer).k16 = function (isLenient) {
3747
+ var token = this.t14();
3748
+ var tmp;
3749
+ if (isLenient) {
3750
+ if (!(token === 1) ? !(token === 0) : false)
3751
+ return null;
3752
+ tmp = this.w14();
3753
+ } else {
3754
+ if (!(token === 1))
3755
+ return null;
3756
+ tmp = this.v14();
3757
+ }
3758
+ var string = tmp;
3759
+ this.v11_1 = string;
3760
+ return string;
3761
+ };
3762
+ protoOf(AbstractJsonLexer).o19 = function (startPos, endPos) {
3763
+ var tmp$ret$0;
3764
+ // Inline function 'kotlin.text.substring' call
3765
+ var tmp0_substring = this.g19();
3766
+ tmp$ret$0 = toString(charSequenceSubSequence(tmp0_substring, startPos, endPos));
3767
+ return tmp$ret$0;
3768
+ };
3769
+ protoOf(AbstractJsonLexer).v14 = function () {
3770
+ if (!(this.v11_1 == null)) {
3771
+ return takePeeked(this);
3772
+ }
3773
+ return this.n16();
3774
+ };
3775
+ protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) {
3776
+ var currentPosition = current;
3777
+ var lastPosition = startPosition;
3778
+ var char = charSequenceGet(source, currentPosition);
3779
+ var usedAppend = false;
3780
+ while (!equals(new Char(char), new Char(_Char___init__impl__6a9atx(34)))) {
3781
+ if (equals(new Char(char), new Char(_Char___init__impl__6a9atx(92)))) {
3782
+ usedAppend = true;
3783
+ currentPosition = this.h19(appendEscape(this, lastPosition, currentPosition));
3784
+ if (currentPosition === -1) {
3785
+ this.b14('EOF', currentPosition);
3786
+ }
3787
+ lastPosition = currentPosition;
3788
+ } else {
3789
+ currentPosition = currentPosition + 1 | 0;
3790
+ if (currentPosition >= charSequenceLength(source)) {
3791
+ usedAppend = true;
3792
+ this.f19(lastPosition, currentPosition);
3793
+ currentPosition = this.h19(currentPosition);
3794
+ if (currentPosition === -1) {
3795
+ this.b14('EOF', currentPosition);
3796
+ }
3797
+ lastPosition = currentPosition;
3798
+ }
3799
+ }
3800
+ char = charSequenceGet(source, currentPosition);
3801
+ }
3802
+ var tmp;
3803
+ if (!usedAppend) {
3804
+ tmp = this.o19(lastPosition, currentPosition);
3805
+ } else {
3806
+ tmp = decodedString(this, lastPosition, currentPosition);
3807
+ }
3808
+ var string = tmp;
3809
+ this.t11_1 = currentPosition + 1 | 0;
3810
+ return string;
3811
+ };
3812
+ protoOf(AbstractJsonLexer).o16 = function () {
3813
+ var result = this.w14();
3814
+ if (result === 'null' ? wasUnquotedString(this) : false) {
3815
+ this.b14("Unexpected 'null' value instead of string literal");
3816
+ }
3817
+ return result;
3818
+ };
3819
+ protoOf(AbstractJsonLexer).w14 = function () {
3820
+ if (!(this.v11_1 == null)) {
3821
+ return takePeeked(this);
3822
+ }
3823
+ var current = this.n19();
3824
+ if (current >= charSequenceLength(this.g19()) ? true : current === -1) {
3825
+ this.b14('EOF', current);
3826
+ }
3827
+ var token = charToTokenClass(charSequenceGet(this.g19(), current));
3828
+ if (token === 1) {
3829
+ return this.v14();
3830
+ }
3831
+ if (!(token === 0)) {
3832
+ this.b14('Expected beginning of the string, but got ' + new Char(charSequenceGet(this.g19(), current)));
3833
+ }
3834
+ var usedAppend = false;
3835
+ while (charToTokenClass(charSequenceGet(this.g19(), current)) === 0) {
3836
+ current = current + 1 | 0;
3837
+ if (current >= charSequenceLength(this.g19())) {
3838
+ usedAppend = true;
3839
+ this.f19(this.t11_1, current);
3840
+ var eof = this.h19(current);
3841
+ if (eof === -1) {
3842
+ this.t11_1 = current;
3843
+ return decodedString(this, 0, 0);
3844
+ } else {
3845
+ current = eof;
3846
+ }
3847
+ }
3848
+ }
3849
+ var tmp;
3850
+ if (!usedAppend) {
3851
+ tmp = this.o19(this.t11_1, current);
3852
+ } else {
3853
+ tmp = decodedString(this, this.t11_1, current);
3854
+ }
3855
+ var result = tmp;
3856
+ this.t11_1 = current;
3857
+ return result;
3858
+ };
3859
+ protoOf(AbstractJsonLexer).f19 = function (fromIndex, toIndex) {
3860
+ this.w11_1.od(this.g19(), fromIndex, toIndex);
3861
+ };
3862
+ protoOf(AbstractJsonLexer).m16 = function (allowLenientStrings) {
3863
+ var tmp$ret$0;
3864
+ // Inline function 'kotlin.collections.mutableListOf' call
3865
+ tmp$ret$0 = ArrayList_init_$Create$();
3866
+ var tokenStack = tmp$ret$0;
3867
+ var lastToken = this.t14();
3868
+ if (!(lastToken === 8) ? !(lastToken === 6) : false) {
3869
+ this.w14();
3870
+ return Unit_getInstance();
3871
+ }
3872
+ $l$loop: while (true) {
3873
+ lastToken = this.t14();
3874
+ if (lastToken === 1) {
3875
+ if (allowLenientStrings) {
3876
+ this.w14();
3877
+ } else {
3878
+ this.n16();
3879
+ }
3880
+ continue $l$loop;
3881
+ }
3882
+ var tmp0_subject = lastToken;
3883
+ if (tmp0_subject === 8 ? true : tmp0_subject === 6) {
3884
+ tokenStack.a(lastToken);
3885
+ } else if (tmp0_subject === 9) {
3886
+ if (!(last(tokenStack) === 8))
3887
+ throw JsonDecodingException_0(this.t11_1, 'found ] instead of } at path: ' + this.u11_1, this.g19());
3888
+ removeLast(tokenStack);
3889
+ } else if (tmp0_subject === 7) {
3890
+ if (!(last(tokenStack) === 6))
3891
+ throw JsonDecodingException_0(this.t11_1, 'found } instead of ] at path: ' + this.u11_1, this.g19());
3892
+ removeLast(tokenStack);
3893
+ } else if (tmp0_subject === 10) {
3894
+ this.b14('Unexpected end of input due to malformed JSON during ignoring unknown keys');
3895
+ }
3896
+ this.y14();
3897
+ if (tokenStack.f() === 0)
3898
+ return Unit_getInstance();
3899
+ }
3900
+ };
3901
+ protoOf(AbstractJsonLexer).toString = function () {
3902
+ return "JsonReader(source='" + this.g19() + "', currentPosition=" + this.t11_1 + ')';
3903
+ };
3904
+ protoOf(AbstractJsonLexer).l16 = function (key) {
3905
+ var processed = this.o19(0, this.t11_1);
3906
+ var lastIndexOf_0 = lastIndexOf(processed, key);
3907
+ this.m19("Encountered an unknown key '" + key + "'", lastIndexOf_0, "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.");
3908
+ };
3909
+ protoOf(AbstractJsonLexer).m19 = function (message, position, hint) {
3910
+ var tmp;
3911
+ var tmp$ret$0;
3912
+ // Inline function 'kotlin.text.isEmpty' call
3913
+ tmp$ret$0 = charSequenceLength(hint) === 0;
3914
+ if (tmp$ret$0) {
3915
+ tmp = '';
3916
+ } else {
3917
+ tmp = '\n' + hint;
3918
+ }
3919
+ var hintMessage = tmp;
3920
+ throw JsonDecodingException_0(position, message + ' at path: ' + this.u11_1.o14() + hintMessage, this.g19());
3921
+ };
3922
+ protoOf(AbstractJsonLexer).b14 = function (message, position, hint, $super) {
3923
+ position = position === VOID ? this.t11_1 : position;
3924
+ hint = hint === VOID ? '' : hint;
3925
+ return $super === VOID ? this.m19(message, position, hint) : $super.m19.call(this, message, position, hint);
3926
+ };
3927
+ protoOf(AbstractJsonLexer).x16 = function () {
3928
+ var current = this.n19();
3929
+ current = this.h19(current);
3930
+ if (current >= charSequenceLength(this.g19()) ? true : current === -1) {
3931
+ this.b14('EOF');
3932
+ }
3933
+ var tmp;
3934
+ if (equals(new Char(charSequenceGet(this.g19(), current)), new Char(_Char___init__impl__6a9atx(34)))) {
3935
+ current = current + 1 | 0;
3936
+ if (current === charSequenceLength(this.g19())) {
3937
+ this.b14('EOF');
3938
+ }
3939
+ tmp = true;
3940
+ } else {
3941
+ tmp = false;
3942
+ }
3943
+ var hasQuotation = tmp;
3944
+ var accumulator = new Long(0, 0);
3945
+ var isNegative = false;
3946
+ var start = current;
3947
+ var hasChars = true;
3948
+ $l$loop_0: while (hasChars) {
3949
+ var ch = charSequenceGet(this.g19(), current);
3950
+ if (equals(new Char(ch), new Char(_Char___init__impl__6a9atx(45)))) {
3951
+ if (!(current === start)) {
3952
+ this.b14("Unexpected symbol '-' in numeric literal");
3953
+ }
3954
+ isNegative = true;
3955
+ current = current + 1 | 0;
3956
+ continue $l$loop_0;
3957
+ }
3958
+ var token = charToTokenClass(ch);
3959
+ if (!(token === 0))
3960
+ break $l$loop_0;
3961
+ current = current + 1 | 0;
3962
+ hasChars = !(current === charSequenceLength(this.g19()));
3963
+ var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
3964
+ if (!(0 <= digit ? digit <= 9 : false)) {
3965
+ this.b14("Unexpected symbol '" + new Char(ch) + "' in numeric literal");
3966
+ }
3967
+ var tmp$ret$1;
3968
+ // Inline function 'kotlin.Long.minus' call
3969
+ var tmp$ret$0;
3970
+ // Inline function 'kotlin.Long.times' call
3971
+ var tmp0_times = accumulator;
3972
+ tmp$ret$0 = tmp0_times.a5(new Long(10, 0));
3973
+ var tmp1_minus = tmp$ret$0;
3974
+ tmp$ret$1 = tmp1_minus.c5(toLong_0(digit));
3975
+ accumulator = tmp$ret$1;
3976
+ if (accumulator.e1(new Long(0, 0)) > 0) {
3977
+ this.b14('Numeric value overflow');
3978
+ }
3979
+ }
3980
+ if (start === current ? true : isNegative ? start === (current - 1 | 0) : false) {
3981
+ this.b14('Expected numeric literal');
3982
+ }
3983
+ if (hasQuotation) {
3984
+ if (!hasChars) {
3985
+ this.b14('EOF');
3986
+ }
3987
+ if (!equals(new Char(charSequenceGet(this.g19(), current)), new Char(_Char___init__impl__6a9atx(34)))) {
3988
+ this.b14('Expected closing quotation mark');
3989
+ }
3990
+ current = current + 1 | 0;
3991
+ }
3992
+ this.t11_1 = current;
3993
+ var tmp_0;
3994
+ if (isNegative) {
3995
+ tmp_0 = accumulator;
3996
+ } else {
3997
+ var tmp_1 = accumulator;
3998
+ Companion_getInstance_4();
3999
+ if (!tmp_1.equals(new Long(0, -2147483648))) {
4000
+ tmp_0 = accumulator.y4();
4001
+ } else {
4002
+ this.b14('Numeric value overflow');
4003
+ }
4004
+ }
4005
+ return tmp_0;
4006
+ };
4007
+ protoOf(AbstractJsonLexer).v16 = function () {
4008
+ return consumeBoolean(this, this.n19());
4009
+ };
4010
+ protoOf(AbstractJsonLexer).w16 = function () {
4011
+ var current = this.n19();
4012
+ if (current === charSequenceLength(this.g19())) {
4013
+ this.b14('EOF');
4014
+ }
4015
+ var tmp;
4016
+ if (equals(new Char(charSequenceGet(this.g19(), current)), new Char(_Char___init__impl__6a9atx(34)))) {
4017
+ current = current + 1 | 0;
4018
+ tmp = true;
4019
+ } else {
4020
+ tmp = false;
4021
+ }
4022
+ var hasQuotation = tmp;
4023
+ var result = consumeBoolean(this, current);
4024
+ if (hasQuotation) {
4025
+ if (this.t11_1 === charSequenceLength(this.g19())) {
4026
+ this.b14('EOF');
4027
+ }
4028
+ if (!equals(new Char(charSequenceGet(this.g19(), this.t11_1)), new Char(_Char___init__impl__6a9atx(34)))) {
4029
+ this.b14('Expected closing quotation mark');
4030
+ }
4031
+ var tmp0_this = this;
4032
+ tmp0_this.t11_1 = tmp0_this.t11_1 + 1 | 0;
4033
+ }
4034
+ return result;
4035
+ };
4036
+ function charToTokenClass(c) {
4037
+ var tmp;
4038
+ var tmp$ret$0;
4039
+ // Inline function 'kotlin.code' call
4040
+ tmp$ret$0 = Char__toInt_impl_vasixd(c);
4041
+ if (tmp$ret$0 < 126) {
4042
+ var tmp_0 = CharMappings_getInstance().q19_1;
4043
+ var tmp$ret$1;
4044
+ // Inline function 'kotlin.code' call
4045
+ tmp$ret$1 = Char__toInt_impl_vasixd(c);
4046
+ tmp = tmp_0[tmp$ret$1];
4047
+ } else {
4048
+ tmp = 0;
4049
+ }
4050
+ return tmp;
4051
+ }
4052
+ function get_TC_WHITESPACE() {
4053
+ return TC_WHITESPACE;
4054
+ }
4055
+ var TC_WHITESPACE;
4056
+ function get_TC_EOF() {
4057
+ return TC_EOF;
4058
+ }
4059
+ var TC_EOF;
4060
+ function get_TC_STRING() {
4061
+ return TC_STRING;
4062
+ }
4063
+ var TC_STRING;
4064
+ function get_STRING_ESC() {
4065
+ return STRING_ESC;
4066
+ }
4067
+ var STRING_ESC;
4068
+ function get_TC_BEGIN_OBJ() {
4069
+ return TC_BEGIN_OBJ;
4070
+ }
4071
+ var TC_BEGIN_OBJ;
4072
+ function get_TC_COLON() {
4073
+ return TC_COLON;
4074
+ }
4075
+ var TC_COLON;
4076
+ function get_TC_COMMA() {
4077
+ return TC_COMMA;
4078
+ }
4079
+ var TC_COMMA;
4080
+ function get_COLON() {
4081
+ return COLON;
4082
+ }
4083
+ var COLON;
4084
+ function get_BEGIN_OBJ() {
4085
+ return BEGIN_OBJ;
4086
+ }
4087
+ var BEGIN_OBJ;
4088
+ function get_END_OBJ() {
4089
+ return END_OBJ;
4090
+ }
4091
+ var END_OBJ;
4092
+ function get_BEGIN_LIST() {
4093
+ return BEGIN_LIST;
4094
+ }
4095
+ var BEGIN_LIST;
4096
+ function get_END_LIST() {
4097
+ return END_LIST;
4098
+ }
4099
+ var END_LIST;
4100
+ function get_lenientHint() {
4101
+ return lenientHint;
4102
+ }
4103
+ var lenientHint;
4104
+ function get_NULL() {
4105
+ return NULL;
4106
+ }
4107
+ var NULL;
4108
+ function get_TC_END_OBJ() {
4109
+ return TC_END_OBJ;
4110
+ }
4111
+ var TC_END_OBJ;
4112
+ function get_TC_BEGIN_LIST() {
4113
+ return TC_BEGIN_LIST;
4114
+ }
4115
+ var TC_BEGIN_LIST;
4116
+ function get_TC_END_LIST() {
4117
+ return TC_END_LIST;
4118
+ }
4119
+ var TC_END_LIST;
4120
+ function get_TC_OTHER() {
4121
+ return TC_OTHER;
4122
+ }
4123
+ var TC_OTHER;
4124
+ function escapeToChar(c) {
4125
+ return c < 117 ? CharMappings_getInstance().p19_1[c] : _Char___init__impl__6a9atx(0);
4126
+ }
4127
+ function get_ignoreUnknownKeysHint() {
4128
+ return ignoreUnknownKeysHint;
4129
+ }
4130
+ var ignoreUnknownKeysHint;
4131
+ function initEscape($this) {
4132
+ var inductionVariable = 0;
4133
+ if (inductionVariable <= 31)
4134
+ do {
4135
+ var i = inductionVariable;
4136
+ inductionVariable = inductionVariable + 1 | 0;
4137
+ initC2ESC($this, i, _Char___init__impl__6a9atx(117));
4138
+ }
4139
+ while (inductionVariable <= 31);
4140
+ initC2ESC($this, 8, _Char___init__impl__6a9atx(98));
4141
+ initC2ESC($this, 9, _Char___init__impl__6a9atx(116));
4142
+ initC2ESC($this, 10, _Char___init__impl__6a9atx(110));
4143
+ initC2ESC($this, 12, _Char___init__impl__6a9atx(102));
4144
+ initC2ESC($this, 13, _Char___init__impl__6a9atx(114));
4145
+ initC2ESC_0($this, _Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(47));
4146
+ initC2ESC_0($this, _Char___init__impl__6a9atx(34), _Char___init__impl__6a9atx(34));
4147
+ initC2ESC_0($this, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(92));
4148
+ }
4149
+ function initCharToToken($this) {
4150
+ var inductionVariable = 0;
4151
+ if (inductionVariable <= 32)
4152
+ do {
4153
+ var i = inductionVariable;
4154
+ inductionVariable = inductionVariable + 1 | 0;
4155
+ initC2TC($this, i, 127);
4156
+ }
4157
+ while (inductionVariable <= 32);
4158
+ initC2TC($this, 9, 3);
4159
+ initC2TC($this, 10, 3);
4160
+ initC2TC($this, 13, 3);
4161
+ initC2TC($this, 32, 3);
4162
+ initC2TC_0($this, _Char___init__impl__6a9atx(44), 4);
4163
+ initC2TC_0($this, _Char___init__impl__6a9atx(58), 5);
4164
+ initC2TC_0($this, _Char___init__impl__6a9atx(123), 6);
4165
+ initC2TC_0($this, _Char___init__impl__6a9atx(125), 7);
4166
+ initC2TC_0($this, _Char___init__impl__6a9atx(91), 8);
4167
+ initC2TC_0($this, _Char___init__impl__6a9atx(93), 9);
4168
+ initC2TC_0($this, _Char___init__impl__6a9atx(34), 1);
4169
+ initC2TC_0($this, _Char___init__impl__6a9atx(92), 2);
4170
+ }
4171
+ function initC2ESC($this, c, esc) {
4172
+ if (!equals(new Char(esc), new Char(_Char___init__impl__6a9atx(117)))) {
4173
+ var tmp$ret$0;
4174
+ // Inline function 'kotlin.code' call
4175
+ tmp$ret$0 = Char__toInt_impl_vasixd(esc);
4176
+ $this.p19_1[tmp$ret$0] = numberToChar(c);
4177
+ }
4178
+ }
4179
+ function initC2ESC_0($this, c, esc) {
4180
+ var tmp$ret$0;
4181
+ // Inline function 'kotlin.code' call
4182
+ tmp$ret$0 = Char__toInt_impl_vasixd(c);
4183
+ return initC2ESC($this, tmp$ret$0, esc);
4184
+ }
4185
+ function initC2TC($this, c, cl) {
4186
+ $this.q19_1[c] = cl;
4187
+ }
4188
+ function initC2TC_0($this, c, cl) {
4189
+ var tmp$ret$0;
4190
+ // Inline function 'kotlin.code' call
4191
+ tmp$ret$0 = Char__toInt_impl_vasixd(c);
4192
+ return initC2TC($this, tmp$ret$0, cl);
4193
+ }
4194
+ function CharMappings() {
4195
+ CharMappings_instance = this;
4196
+ this.p19_1 = charArray(117);
4197
+ this.q19_1 = new Int8Array(126);
4198
+ initEscape(this);
4199
+ initCharToToken(this);
4200
+ }
4201
+ var CharMappings_instance;
4202
+ function CharMappings_getInstance() {
4203
+ if (CharMappings_instance == null)
4204
+ new CharMappings();
4205
+ return CharMappings_instance;
4206
+ }
4207
+ function get_specialFlowingValuesHint() {
4208
+ return specialFlowingValuesHint;
4209
+ }
4210
+ var specialFlowingValuesHint;
4211
+ function get_allowStructuredMapKeysHint() {
4212
+ return allowStructuredMapKeysHint;
4213
+ }
4214
+ var allowStructuredMapKeysHint;
4215
+ function StringJsonLexer(source) {
4216
+ AbstractJsonLexer.call(this);
4217
+ this.v19_1 = source;
4218
+ }
4219
+ protoOf(StringJsonLexer).g19 = function () {
4220
+ return this.v19_1;
4221
+ };
4222
+ protoOf(StringJsonLexer).h19 = function (position) {
4223
+ return position < this.v19_1.length ? position : -1;
4224
+ };
4225
+ protoOf(StringJsonLexer).y14 = function () {
4226
+ var source = this.v19_1;
4227
+ $l$loop: while (!(this.t11_1 === -1) ? this.t11_1 < source.length : false) {
4228
+ var tmp0_this = this;
4229
+ var tmp1 = tmp0_this.t11_1;
4230
+ tmp0_this.t11_1 = tmp1 + 1 | 0;
4231
+ var ch = charSequenceGet(source, tmp1);
4232
+ var tc = charToTokenClass(ch);
4233
+ var tmp;
4234
+ if (tc === get_TC_WHITESPACE()) {
4235
+ continue $l$loop;
4236
+ } else {
4237
+ tmp = tc;
4238
+ }
4239
+ return tmp;
4240
+ }
4241
+ return get_TC_EOF();
4242
+ };
4243
+ protoOf(StringJsonLexer).i16 = function () {
4244
+ var current = this.n19();
4245
+ if (current === this.v19_1.length ? true : current === -1)
4246
+ return false;
4247
+ if (equals(new Char(charSequenceGet(this.v19_1, current)), new Char(_Char___init__impl__6a9atx(44)))) {
4248
+ var tmp0_this = this;
4249
+ tmp0_this.t11_1 = tmp0_this.t11_1 + 1 | 0;
4250
+ return true;
4251
+ }
4252
+ return false;
4253
+ };
4254
+ protoOf(StringJsonLexer).u14 = function () {
4255
+ var current = this.t11_1;
4256
+ if (current === -1)
4257
+ return false;
4258
+ $l$loop: while (current < this.v19_1.length) {
4259
+ var c = charSequenceGet(this.v19_1, current);
4260
+ if (((equals(new Char(c), new Char(_Char___init__impl__6a9atx(32))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(10)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(13)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(9)))) {
4261
+ current = current + 1 | 0;
4262
+ continue $l$loop;
4263
+ }
4264
+ this.t11_1 = current;
4265
+ return this.j19(c);
4266
+ }
4267
+ this.t11_1 = current;
4268
+ return false;
4269
+ };
4270
+ protoOf(StringJsonLexer).n19 = function () {
4271
+ var current = this.t11_1;
4272
+ if (current === -1)
4273
+ return current;
4274
+ $l$loop: while (current < this.v19_1.length) {
4275
+ var c = charSequenceGet(this.v19_1, current);
4276
+ if (((equals(new Char(c), new Char(_Char___init__impl__6a9atx(32))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(10)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(13)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(9)))) {
4277
+ current = current + 1 | 0;
4278
+ } else {
4279
+ break $l$loop;
4280
+ }
4281
+ }
4282
+ this.t11_1 = current;
4283
+ return current;
4284
+ };
4285
+ protoOf(StringJsonLexer).h16 = function (expected) {
4286
+ if (this.t11_1 === -1) {
4287
+ this.l19(expected);
4288
+ }
4289
+ var source = this.v19_1;
4290
+ $l$loop: while (this.t11_1 < source.length) {
4291
+ var tmp0_this = this;
4292
+ var tmp1 = tmp0_this.t11_1;
4293
+ tmp0_this.t11_1 = tmp1 + 1 | 0;
4294
+ var c = charSequenceGet(source, tmp1);
4295
+ if (((equals(new Char(c), new Char(_Char___init__impl__6a9atx(32))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(10)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(13)))) ? true : equals(new Char(c), new Char(_Char___init__impl__6a9atx(9))))
4296
+ continue $l$loop;
4297
+ if (equals(new Char(c), new Char(expected)))
4298
+ return Unit_getInstance();
4299
+ this.l19(expected);
4300
+ }
4301
+ this.l19(expected);
4302
+ };
4303
+ protoOf(StringJsonLexer).n16 = function () {
4304
+ this.h16(get_STRING());
4305
+ var current = this.t11_1;
4306
+ var closingQuote = indexOf(this.v19_1, _Char___init__impl__6a9atx(34), current);
4307
+ if (closingQuote === -1) {
4308
+ this.k19(get_TC_STRING());
4309
+ }
4310
+ var inductionVariable = current;
4311
+ if (inductionVariable < closingQuote)
4312
+ do {
4313
+ var i = inductionVariable;
4314
+ inductionVariable = inductionVariable + 1 | 0;
4315
+ if (equals(new Char(charSequenceGet(this.v19_1, i)), new Char(get_STRING_ESC()))) {
4316
+ return this.consumeString2(this.v19_1, this.t11_1, i);
4317
+ }
4318
+ }
4319
+ while (inductionVariable < closingQuote);
4320
+ this.t11_1 = closingQuote + 1 | 0;
4321
+ var tmp$ret$1;
4322
+ // Inline function 'kotlin.text.substring' call
4323
+ var tmp0_substring = this.v19_1;
4324
+ var tmp$ret$0;
4325
+ // Inline function 'kotlin.js.asDynamic' call
4326
+ tmp$ret$0 = tmp0_substring;
4327
+ tmp$ret$1 = tmp$ret$0.substring(current, closingQuote);
4328
+ return tmp$ret$1;
4329
+ };
4330
+ protoOf(StringJsonLexer).p16 = function (keyToMatch, isLenient) {
4331
+ var positionSnapshot = this.t11_1;
4332
+ try {
4333
+ if (!(this.y14() === get_TC_BEGIN_OBJ()))
4334
+ return null;
4335
+ var firstKey = isLenient ? this.n16() : this.o16();
4336
+ if (firstKey === keyToMatch) {
4337
+ if (!(this.y14() === get_TC_COLON()))
4338
+ return null;
4339
+ var result = isLenient ? this.v14() : this.o16();
4340
+ return result;
4341
+ }
4342
+ return null;
4343
+ }finally {
4344
+ this.t11_1 = positionSnapshot;
4345
+ }
4346
+ };
4347
+ function get_schemaCache(_this__u8e3s4) {
4348
+ return _this__u8e3s4.i11_1;
4349
+ }
4350
+ function createMapForCache(initialCapacity) {
4351
+ return HashMap_init_$Create$(initialCapacity);
4352
+ }
4353
+ //region block: post-declaration
4354
+ protoOf(defer$1).gm = get_isNullable;
4355
+ protoOf(defer$1).nm = get_isInline;
4356
+ protoOf(defer$1).lm = get_annotations;
4357
+ protoOf(PolymorphismValidator).z10 = contextual;
4358
+ protoOf(StreamingJsonDecoder).uo = decodeSerializableElement$default;
4359
+ protoOf(StreamingJsonDecoder).xo = decodeSequentially;
4360
+ protoOf(StreamingJsonDecoder).zo = decodeCollectionSize;
4361
+ protoOf(JsonDecoderForUnsignedTypes).go = decodeSerializableValue;
4362
+ protoOf(JsonDecoderForUnsignedTypes).uo = decodeSerializableElement$default;
4363
+ protoOf(JsonDecoderForUnsignedTypes).xo = decodeSequentially;
4364
+ protoOf(JsonDecoderForUnsignedTypes).zo = decodeCollectionSize;
4365
+ protoOf(AbstractJsonTreeDecoder).uo = decodeSerializableElement$default;
4366
+ protoOf(AbstractJsonTreeDecoder).xo = decodeSequentially;
4367
+ protoOf(AbstractJsonTreeDecoder).zo = decodeCollectionSize;
4368
+ protoOf(JsonTreeDecoder).uo = decodeSerializableElement$default;
4369
+ protoOf(JsonTreeDecoder).xo = decodeSequentially;
4370
+ protoOf(JsonTreeDecoder).zo = decodeCollectionSize;
4371
+ protoOf(JsonTreeListDecoder).uo = decodeSerializableElement$default;
4372
+ protoOf(JsonTreeListDecoder).xo = decodeSequentially;
4373
+ protoOf(JsonTreeListDecoder).zo = decodeCollectionSize;
4374
+ protoOf(JsonPrimitiveDecoder).uo = decodeSerializableElement$default;
4375
+ protoOf(JsonPrimitiveDecoder).xo = decodeSequentially;
4376
+ protoOf(JsonPrimitiveDecoder).zo = decodeCollectionSize;
4377
+ protoOf(JsonTreeMapDecoder).uo = decodeSerializableElement$default;
4378
+ protoOf(JsonTreeMapDecoder).xo = decodeSequentially;
4379
+ protoOf(JsonTreeMapDecoder).zo = decodeCollectionSize;
4380
+ //endregion
4381
+ //region block: init
4382
+ PRIMITIVE_TAG = 'primitive';
4383
+ STRING = _Char___init__impl__6a9atx(34);
4384
+ TC_WHITESPACE = 3;
4385
+ TC_EOF = 10;
4386
+ TC_STRING = 1;
4387
+ STRING_ESC = _Char___init__impl__6a9atx(92);
4388
+ TC_BEGIN_OBJ = 6;
4389
+ TC_COLON = 5;
4390
+ TC_COMMA = 4;
4391
+ COLON = _Char___init__impl__6a9atx(58);
4392
+ BEGIN_OBJ = _Char___init__impl__6a9atx(123);
4393
+ END_OBJ = _Char___init__impl__6a9atx(125);
4394
+ BEGIN_LIST = _Char___init__impl__6a9atx(91);
4395
+ END_LIST = _Char___init__impl__6a9atx(93);
4396
+ lenientHint = "Use 'isLenient = true' in 'Json {}` builder to accept non-compliant JSON.";
4397
+ NULL = 'null';
4398
+ TC_END_OBJ = 7;
4399
+ TC_BEGIN_LIST = 8;
4400
+ TC_END_LIST = 9;
4401
+ TC_OTHER = 0;
4402
+ ignoreUnknownKeysHint = "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.";
4403
+ specialFlowingValuesHint = "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'";
4404
+ allowStructuredMapKeysHint = "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.";
4405
+ //endregion
4406
+ //region block: exports
4407
+ _.$_$ = _.$_$ || {};
4408
+ _.$_$.a = JsonElementSerializer_getInstance;
4409
+ _.$_$.b = JsonArray;
4410
+ _.$_$.c = JsonDecoder;
4411
+ _.$_$.d = JsonElement;
4412
+ _.$_$.e = JsonObject;
4413
+ _.$_$.f = JsonPrimitive;
4414
+ _.$_$.g = Json_0;
4415
+ _.$_$.h = get_boolean;
4416
+ _.$_$.i = get_jsonObject;
4417
+ //endregion
4418
+ return _;
4419
+ }));
4420
+
4421
+ //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map