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