game_client_logic_deb 1.8.147 → 1.8.185
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/Kosi-Kaverit-kaverit.js +80 -80
- package/Kosi-Kodein-kodein-di.js +651 -651
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +5674 -321
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +2007 -1712
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +19790 -15503
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +383 -93
- package/Logic_Debertz-game_client.js +5036 -4822
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4016 -2922
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +35 -35
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3755 -2723
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +302 -302
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2161 -2132
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1529 -1515
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +713 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +7207 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-js.js +15 -0
- package/ktor-ktor-client-js.js.map +1 -0
- package/ktor-ktor-client-logging.js +1506 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +97 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http.js +3263 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +6469 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +67 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +847 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +369 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-utils.js +2659 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +466 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/package.json +5 -2
- package/raspberry-cardgame-lib-core.js +742 -560
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +408 -0
- package/raspberry-cardgame-lib-logger.js.map +1 -0
- package/raspberry-cardgame-lib-random.js +2756 -0
- package/raspberry-cardgame-lib-random.js.map +1 -0
- package/secure-random-secure-random.js +163 -5
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +36 -36
- package/uuid.js.map +1 -1
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './ktor-ktor-io.js', './ktor-ktor-serialization.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-serialization.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof this['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof this['ktor-ktor-http'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof this['kotlinx-coroutines-core'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof this['ktor-ktor-io'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof this['ktor-ktor-serialization'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-serialization' was not found. Please, check whether 'ktor-ktor-serialization' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
|
|
24
|
+
}
|
|
25
|
+
root['ktor-ktor-serialization-kotlinx'] = factory(typeof this['ktor-ktor-serialization-kotlinx'] === 'undefined' ? {} : this['ktor-ktor-serialization-kotlinx'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-core'], this['ktor-ktor-http'], this['kotlinx-coroutines-core'], this['ktor-ktor-io'], this['ktor-ktor-serialization']);
|
|
26
|
+
}
|
|
27
|
+
}(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_serialization) {
|
|
28
|
+
'use strict';
|
|
29
|
+
//region block: imports
|
|
30
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
31
|
+
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
32
|
+
var CoroutineImpl = kotlin_kotlin.$_$.qa;
|
|
33
|
+
var protoOf = kotlin_kotlin.$_$.oc;
|
|
34
|
+
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
35
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
36
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.rb;
|
|
37
|
+
var VOID = kotlin_kotlin.$_$.f;
|
|
38
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
|
|
39
|
+
var toString = kotlin_kotlin.$_$.sc;
|
|
40
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
41
|
+
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
42
|
+
var isInterface = kotlin_kotlin.$_$.bc;
|
|
43
|
+
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.j;
|
|
44
|
+
var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2;
|
|
45
|
+
var withCharsetIfNeeded = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
46
|
+
var TextContent = kotlin_io_ktor_ktor_http.$_$.q;
|
|
47
|
+
var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
|
|
48
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
49
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nb;
|
|
50
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
51
|
+
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
52
|
+
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
53
|
+
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2;
|
|
54
|
+
var discard = kotlin_io_ktor_ktor_io.$_$.w;
|
|
55
|
+
var readBytes = kotlin_io_ktor_ktor_io.$_$.x;
|
|
56
|
+
var readText = kotlin_io_ktor_ktor_io.$_$.z;
|
|
57
|
+
var JsonConvertException = kotlin_io_ktor_ktor_serialization.$_$.e;
|
|
58
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
59
|
+
var ContentConverter = kotlin_io_ktor_ktor_serialization.$_$.d;
|
|
60
|
+
var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u2;
|
|
61
|
+
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2;
|
|
62
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
63
|
+
var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
64
|
+
var KtMap = kotlin_kotlin.$_$.w5;
|
|
65
|
+
var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
66
|
+
var KtSet = kotlin_kotlin.$_$.b6;
|
|
67
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.p7;
|
|
68
|
+
var StringCompanionObject_instance = kotlin_kotlin.$_$.z4;
|
|
69
|
+
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
70
|
+
var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
71
|
+
var isArray = kotlin_kotlin.$_$.tb;
|
|
72
|
+
var KtList = kotlin_kotlin.$_$.t5;
|
|
73
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
74
|
+
var filterNotNull = kotlin_kotlin.$_$.m7;
|
|
75
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.o6;
|
|
76
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
77
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
78
|
+
var singleOrNull = kotlin_kotlin.$_$.d9;
|
|
79
|
+
var Collection = kotlin_kotlin.$_$.n5;
|
|
80
|
+
var emptyList = kotlin_kotlin.$_$.j7;
|
|
81
|
+
//endregion
|
|
82
|
+
//region block: pre-declaration
|
|
83
|
+
initMetadataForLambda(KotlinxSerializationConverter$serializeNullable$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
84
|
+
initMetadataForCoroutine($collectCOROUTINE$2, CoroutineImpl);
|
|
85
|
+
initMetadataForLambda(KotlinxSerializationConverter$deserialize$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
86
|
+
initMetadataForCoroutine($collectCOROUTINE$3, CoroutineImpl);
|
|
87
|
+
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector], [1]);
|
|
88
|
+
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector], [1]);
|
|
89
|
+
initMetadataForClass(_no_name_provided__qut3iv, VOID, VOID, VOID, VOID, [1]);
|
|
90
|
+
initMetadataForLambda(KotlinxSerializationConverter$serializeNullable$slambda, CoroutineImpl, VOID, [1]);
|
|
91
|
+
initMetadataForClass(_no_name_provided__qut3iv_0, VOID, VOID, VOID, VOID, [1]);
|
|
92
|
+
initMetadataForLambda(KotlinxSerializationConverter$deserialize$slambda, CoroutineImpl, VOID, [1]);
|
|
93
|
+
initMetadataForCoroutine($serializeNullableCOROUTINE$0, CoroutineImpl);
|
|
94
|
+
initMetadataForCoroutine($deserializeCOROUTINE$1, CoroutineImpl);
|
|
95
|
+
initMetadataForClass(KotlinxSerializationConverter, 'KotlinxSerializationConverter', VOID, VOID, [ContentConverter], [4, 3]);
|
|
96
|
+
//endregion
|
|
97
|
+
function extensions(format) {
|
|
98
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
99
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
100
|
+
var this_0 = get_providers();
|
|
101
|
+
var destination = ArrayList_init_$Create$();
|
|
102
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
103
|
+
var tmp0_iterator = this_0.j();
|
|
104
|
+
while (tmp0_iterator.k()) {
|
|
105
|
+
var element = tmp0_iterator.l();
|
|
106
|
+
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
107
|
+
// Inline function 'io.ktor.serialization.kotlinx.extensions.<anonymous>' call
|
|
108
|
+
var tmp0_safe_receiver = element.y4m(format);
|
|
109
|
+
if (tmp0_safe_receiver == null)
|
|
110
|
+
null;
|
|
111
|
+
else {
|
|
112
|
+
// Inline function 'kotlin.let' call
|
|
113
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
114
|
+
destination.e(tmp0_safe_receiver);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return destination;
|
|
118
|
+
}
|
|
119
|
+
function serialization(_this__u8e3s4, contentType, format) {
|
|
120
|
+
_this__u8e3s4.k2o(contentType, new KotlinxSerializationConverter(format));
|
|
121
|
+
}
|
|
122
|
+
function KotlinxSerializationConverter$serializeNullable$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
123
|
+
this.h4n_1 = $$this$unsafeFlow;
|
|
124
|
+
this.i4n_1 = $contentType;
|
|
125
|
+
this.j4n_1 = $charset;
|
|
126
|
+
this.k4n_1 = $typeInfo;
|
|
127
|
+
this.l4n_1 = $value;
|
|
128
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
129
|
+
}
|
|
130
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).s2p = function (value, $completion) {
|
|
131
|
+
var tmp = this.t2p(value, $completion);
|
|
132
|
+
tmp.f9_1 = Unit_instance;
|
|
133
|
+
tmp.g9_1 = null;
|
|
134
|
+
return tmp.l9();
|
|
135
|
+
};
|
|
136
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).ga = function (p1, $completion) {
|
|
137
|
+
return this.s2p((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
138
|
+
};
|
|
139
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).l9 = function () {
|
|
140
|
+
var suspendResult = this.f9_1;
|
|
141
|
+
$sm: do
|
|
142
|
+
try {
|
|
143
|
+
var tmp = this.d9_1;
|
|
144
|
+
switch (tmp) {
|
|
145
|
+
case 0:
|
|
146
|
+
this.e9_1 = 3;
|
|
147
|
+
var tmp_0 = this;
|
|
148
|
+
tmp_0.n4n_1 = this.h4n_1;
|
|
149
|
+
var tmp_1 = this;
|
|
150
|
+
tmp_1.o4n_1 = this.m4n_1;
|
|
151
|
+
var tmp_2 = this;
|
|
152
|
+
tmp_2.p4n_1 = this.o4n_1;
|
|
153
|
+
this.d9_1 = 1;
|
|
154
|
+
suspendResult = this.p4n_1.r4n(this.i4n_1, this.j4n_1, this.k4n_1, this.l4n_1, this);
|
|
155
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
156
|
+
return suspendResult;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
continue $sm;
|
|
160
|
+
case 1:
|
|
161
|
+
this.q4n_1 = suspendResult;
|
|
162
|
+
this.d9_1 = 2;
|
|
163
|
+
suspendResult = this.n4n_1.n16(this.q4n_1, this);
|
|
164
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
165
|
+
return suspendResult;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
continue $sm;
|
|
169
|
+
case 2:
|
|
170
|
+
return Unit_instance;
|
|
171
|
+
case 3:
|
|
172
|
+
throw this.g9_1;
|
|
173
|
+
}
|
|
174
|
+
} catch ($p) {
|
|
175
|
+
var e = $p;
|
|
176
|
+
if (this.e9_1 === 3) {
|
|
177
|
+
throw e;
|
|
178
|
+
} else {
|
|
179
|
+
this.d9_1 = this.e9_1;
|
|
180
|
+
this.g9_1 = e;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
while (true);
|
|
184
|
+
};
|
|
185
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).t2p = function (value, completion) {
|
|
186
|
+
var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda(this.h4n_1, this.i4n_1, this.j4n_1, this.k4n_1, this.l4n_1, completion);
|
|
187
|
+
i.m4n_1 = value;
|
|
188
|
+
return i;
|
|
189
|
+
};
|
|
190
|
+
function KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
191
|
+
var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
|
|
192
|
+
var l = function (value, $completion) {
|
|
193
|
+
return i.s2p(value, $completion);
|
|
194
|
+
};
|
|
195
|
+
l.$arity = 1;
|
|
196
|
+
return l;
|
|
197
|
+
}
|
|
198
|
+
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
199
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
200
|
+
this.a4o_1 = _this__u8e3s4;
|
|
201
|
+
this.b4o_1 = collector;
|
|
202
|
+
}
|
|
203
|
+
protoOf($collectCOROUTINE$2).l9 = function () {
|
|
204
|
+
var suspendResult = this.f9_1;
|
|
205
|
+
$sm: do
|
|
206
|
+
try {
|
|
207
|
+
var tmp = this.d9_1;
|
|
208
|
+
switch (tmp) {
|
|
209
|
+
case 0:
|
|
210
|
+
this.e9_1 = 2;
|
|
211
|
+
var tmp_0 = this;
|
|
212
|
+
tmp_0.c4o_1 = this.b4o_1;
|
|
213
|
+
this.d9_1 = 1;
|
|
214
|
+
var tmp_1 = KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0(this.c4o_1, this.a4o_1.e4o_1, this.a4o_1.f4o_1, this.a4o_1.g4o_1, this.a4o_1.h4o_1, null);
|
|
215
|
+
suspendResult = this.a4o_1.d4o_1.w15(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
216
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
217
|
+
return suspendResult;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
continue $sm;
|
|
221
|
+
case 1:
|
|
222
|
+
return Unit_instance;
|
|
223
|
+
case 2:
|
|
224
|
+
throw this.g9_1;
|
|
225
|
+
}
|
|
226
|
+
} catch ($p) {
|
|
227
|
+
var e = $p;
|
|
228
|
+
if (this.e9_1 === 2) {
|
|
229
|
+
throw e;
|
|
230
|
+
} else {
|
|
231
|
+
this.d9_1 = this.e9_1;
|
|
232
|
+
this.g9_1 = e;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
while (true);
|
|
236
|
+
};
|
|
237
|
+
function KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
238
|
+
this.q4o_1 = $$this$unsafeFlow;
|
|
239
|
+
this.r4o_1 = $charset;
|
|
240
|
+
this.s4o_1 = $typeInfo;
|
|
241
|
+
this.t4o_1 = $content;
|
|
242
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
243
|
+
}
|
|
244
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).s2p = function (value, $completion) {
|
|
245
|
+
var tmp = this.t2p(value, $completion);
|
|
246
|
+
tmp.f9_1 = Unit_instance;
|
|
247
|
+
tmp.g9_1 = null;
|
|
248
|
+
return tmp.l9();
|
|
249
|
+
};
|
|
250
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).ga = function (p1, $completion) {
|
|
251
|
+
return this.s2p((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
252
|
+
};
|
|
253
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).l9 = function () {
|
|
254
|
+
var suspendResult = this.f9_1;
|
|
255
|
+
$sm: do
|
|
256
|
+
try {
|
|
257
|
+
var tmp = this.d9_1;
|
|
258
|
+
switch (tmp) {
|
|
259
|
+
case 0:
|
|
260
|
+
this.e9_1 = 3;
|
|
261
|
+
var tmp_0 = this;
|
|
262
|
+
tmp_0.v4o_1 = this.q4o_1;
|
|
263
|
+
var tmp_1 = this;
|
|
264
|
+
tmp_1.w4o_1 = this.u4o_1;
|
|
265
|
+
var tmp_2 = this;
|
|
266
|
+
tmp_2.x4o_1 = this.w4o_1;
|
|
267
|
+
this.d9_1 = 1;
|
|
268
|
+
suspendResult = this.x4o_1.n2o(this.r4o_1, this.s4o_1, this.t4o_1, this);
|
|
269
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
270
|
+
return suspendResult;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
continue $sm;
|
|
274
|
+
case 1:
|
|
275
|
+
this.y4o_1 = suspendResult;
|
|
276
|
+
this.d9_1 = 2;
|
|
277
|
+
suspendResult = this.v4o_1.n16(this.y4o_1, this);
|
|
278
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
279
|
+
return suspendResult;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
continue $sm;
|
|
283
|
+
case 2:
|
|
284
|
+
return Unit_instance;
|
|
285
|
+
case 3:
|
|
286
|
+
throw this.g9_1;
|
|
287
|
+
}
|
|
288
|
+
} catch ($p) {
|
|
289
|
+
var e = $p;
|
|
290
|
+
if (this.e9_1 === 3) {
|
|
291
|
+
throw e;
|
|
292
|
+
} else {
|
|
293
|
+
this.d9_1 = this.e9_1;
|
|
294
|
+
this.g9_1 = e;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
while (true);
|
|
298
|
+
};
|
|
299
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).t2p = function (value, completion) {
|
|
300
|
+
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.q4o_1, this.r4o_1, this.s4o_1, this.t4o_1, completion);
|
|
301
|
+
i.u4o_1 = value;
|
|
302
|
+
return i;
|
|
303
|
+
};
|
|
304
|
+
function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
305
|
+
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation);
|
|
306
|
+
var l = function (value, $completion) {
|
|
307
|
+
return i.s2p(value, $completion);
|
|
308
|
+
};
|
|
309
|
+
l.$arity = 1;
|
|
310
|
+
return l;
|
|
311
|
+
}
|
|
312
|
+
function $collectCOROUTINE$3(_this__u8e3s4, collector, resultContinuation) {
|
|
313
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
314
|
+
this.h4p_1 = _this__u8e3s4;
|
|
315
|
+
this.i4p_1 = collector;
|
|
316
|
+
}
|
|
317
|
+
protoOf($collectCOROUTINE$3).l9 = function () {
|
|
318
|
+
var suspendResult = this.f9_1;
|
|
319
|
+
$sm: do
|
|
320
|
+
try {
|
|
321
|
+
var tmp = this.d9_1;
|
|
322
|
+
switch (tmp) {
|
|
323
|
+
case 0:
|
|
324
|
+
this.e9_1 = 2;
|
|
325
|
+
var tmp_0 = this;
|
|
326
|
+
tmp_0.j4p_1 = this.i4p_1;
|
|
327
|
+
this.d9_1 = 1;
|
|
328
|
+
var tmp_1 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0(this.j4p_1, this.h4p_1.l4p_1, this.h4p_1.m4p_1, this.h4p_1.n4p_1, null);
|
|
329
|
+
suspendResult = this.h4p_1.k4p_1.w15(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
330
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
331
|
+
return suspendResult;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
continue $sm;
|
|
335
|
+
case 1:
|
|
336
|
+
return Unit_instance;
|
|
337
|
+
case 2:
|
|
338
|
+
throw this.g9_1;
|
|
339
|
+
}
|
|
340
|
+
} catch ($p) {
|
|
341
|
+
var e = $p;
|
|
342
|
+
if (this.e9_1 === 2) {
|
|
343
|
+
throw e;
|
|
344
|
+
} else {
|
|
345
|
+
this.d9_1 = this.e9_1;
|
|
346
|
+
this.g9_1 = e;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
while (true);
|
|
350
|
+
};
|
|
351
|
+
function serializeContent($this, serializer, format, value, contentType, charset) {
|
|
352
|
+
var tmp;
|
|
353
|
+
if (isInterface(format, StringFormat)) {
|
|
354
|
+
var content = format.a43(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
355
|
+
tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
|
|
356
|
+
} else {
|
|
357
|
+
if (isInterface(format, BinaryFormat)) {
|
|
358
|
+
var content_0 = format.d43(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
359
|
+
tmp = new ByteArrayContent(content_0, contentType);
|
|
360
|
+
} else {
|
|
361
|
+
var message = 'Unsupported format ' + toString(format);
|
|
362
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return tmp;
|
|
366
|
+
}
|
|
367
|
+
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
368
|
+
this.o4p_1 = function_0;
|
|
369
|
+
}
|
|
370
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).n16 = function (value, $completion) {
|
|
371
|
+
return this.o4p_1(value, $completion);
|
|
372
|
+
};
|
|
373
|
+
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
374
|
+
this.p4p_1 = function_0;
|
|
375
|
+
}
|
|
376
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).n16 = function (value, $completion) {
|
|
377
|
+
return this.p4p_1(value, $completion);
|
|
378
|
+
};
|
|
379
|
+
function _no_name_provided__qut3iv($this, $contentType, $charset, $typeInfo, $value) {
|
|
380
|
+
this.d4o_1 = $this;
|
|
381
|
+
this.e4o_1 = $contentType;
|
|
382
|
+
this.f4o_1 = $charset;
|
|
383
|
+
this.g4o_1 = $typeInfo;
|
|
384
|
+
this.h4o_1 = $value;
|
|
385
|
+
}
|
|
386
|
+
protoOf(_no_name_provided__qut3iv).o16 = function (collector, $completion) {
|
|
387
|
+
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
388
|
+
tmp.f9_1 = Unit_instance;
|
|
389
|
+
tmp.g9_1 = null;
|
|
390
|
+
return tmp.l9();
|
|
391
|
+
};
|
|
392
|
+
protoOf(_no_name_provided__qut3iv).w15 = function (collector, $completion) {
|
|
393
|
+
return this.o16(collector, $completion);
|
|
394
|
+
};
|
|
395
|
+
function KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation) {
|
|
396
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
397
|
+
}
|
|
398
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).z4p = function (it, $completion) {
|
|
399
|
+
var tmp = this.a4q(it, $completion);
|
|
400
|
+
tmp.f9_1 = Unit_instance;
|
|
401
|
+
tmp.g9_1 = null;
|
|
402
|
+
return tmp.l9();
|
|
403
|
+
};
|
|
404
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).ga = function (p1, $completion) {
|
|
405
|
+
return this.z4p((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
|
|
406
|
+
};
|
|
407
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).l9 = function () {
|
|
408
|
+
var suspendResult = this.f9_1;
|
|
409
|
+
$sm: do
|
|
410
|
+
try {
|
|
411
|
+
var tmp = this.d9_1;
|
|
412
|
+
if (tmp === 0) {
|
|
413
|
+
this.e9_1 = 1;
|
|
414
|
+
return !(this.y4p_1 == null);
|
|
415
|
+
} else if (tmp === 1) {
|
|
416
|
+
throw this.g9_1;
|
|
417
|
+
}
|
|
418
|
+
} catch ($p) {
|
|
419
|
+
var e = $p;
|
|
420
|
+
throw e;
|
|
421
|
+
}
|
|
422
|
+
while (true);
|
|
423
|
+
};
|
|
424
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).a4q = function (it, completion) {
|
|
425
|
+
var i = new KotlinxSerializationConverter$serializeNullable$slambda(completion);
|
|
426
|
+
i.y4p_1 = it;
|
|
427
|
+
return i;
|
|
428
|
+
};
|
|
429
|
+
function KotlinxSerializationConverter$serializeNullable$slambda_0(resultContinuation) {
|
|
430
|
+
var i = new KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation);
|
|
431
|
+
var l = function (it, $completion) {
|
|
432
|
+
return i.z4p(it, $completion);
|
|
433
|
+
};
|
|
434
|
+
l.$arity = 1;
|
|
435
|
+
return l;
|
|
436
|
+
}
|
|
437
|
+
function _no_name_provided__qut3iv_0($this, $charset, $typeInfo, $content) {
|
|
438
|
+
this.k4p_1 = $this;
|
|
439
|
+
this.l4p_1 = $charset;
|
|
440
|
+
this.m4p_1 = $typeInfo;
|
|
441
|
+
this.n4p_1 = $content;
|
|
442
|
+
}
|
|
443
|
+
protoOf(_no_name_provided__qut3iv_0).o16 = function (collector, $completion) {
|
|
444
|
+
var tmp = new $collectCOROUTINE$3(this, collector, $completion);
|
|
445
|
+
tmp.f9_1 = Unit_instance;
|
|
446
|
+
tmp.g9_1 = null;
|
|
447
|
+
return tmp.l9();
|
|
448
|
+
};
|
|
449
|
+
protoOf(_no_name_provided__qut3iv_0).w15 = function (collector, $completion) {
|
|
450
|
+
return this.o16(collector, $completion);
|
|
451
|
+
};
|
|
452
|
+
function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
|
|
453
|
+
this.j4q_1 = $content;
|
|
454
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
455
|
+
}
|
|
456
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).t2q = function (it, $completion) {
|
|
457
|
+
var tmp = this.t2p(it, $completion);
|
|
458
|
+
tmp.f9_1 = Unit_instance;
|
|
459
|
+
tmp.g9_1 = null;
|
|
460
|
+
return tmp.l9();
|
|
461
|
+
};
|
|
462
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).ga = function (p1, $completion) {
|
|
463
|
+
return this.t2q((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
464
|
+
};
|
|
465
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).l9 = function () {
|
|
466
|
+
var suspendResult = this.f9_1;
|
|
467
|
+
$sm: do
|
|
468
|
+
try {
|
|
469
|
+
var tmp = this.d9_1;
|
|
470
|
+
if (tmp === 0) {
|
|
471
|
+
this.e9_1 = 1;
|
|
472
|
+
return !(this.k4q_1 == null) || this.j4q_1.h1p();
|
|
473
|
+
} else if (tmp === 1) {
|
|
474
|
+
throw this.g9_1;
|
|
475
|
+
}
|
|
476
|
+
} catch ($p) {
|
|
477
|
+
var e = $p;
|
|
478
|
+
throw e;
|
|
479
|
+
}
|
|
480
|
+
while (true);
|
|
481
|
+
};
|
|
482
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).t2p = function (it, completion) {
|
|
483
|
+
var i = new KotlinxSerializationConverter$deserialize$slambda(this.j4q_1, completion);
|
|
484
|
+
i.k4q_1 = it;
|
|
485
|
+
return i;
|
|
486
|
+
};
|
|
487
|
+
function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
|
|
488
|
+
var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
|
|
489
|
+
var l = function (it, $completion) {
|
|
490
|
+
return i.t2q(it, $completion);
|
|
491
|
+
};
|
|
492
|
+
l.$arity = 1;
|
|
493
|
+
return l;
|
|
494
|
+
}
|
|
495
|
+
function $serializeNullableCOROUTINE$0(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
|
|
496
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
497
|
+
this.t4q_1 = _this__u8e3s4;
|
|
498
|
+
this.u4q_1 = contentType;
|
|
499
|
+
this.v4q_1 = charset;
|
|
500
|
+
this.w4q_1 = typeInfo;
|
|
501
|
+
this.x4q_1 = value;
|
|
502
|
+
}
|
|
503
|
+
protoOf($serializeNullableCOROUTINE$0).l9 = function () {
|
|
504
|
+
var suspendResult = this.f9_1;
|
|
505
|
+
$sm: do
|
|
506
|
+
try {
|
|
507
|
+
var tmp = this.d9_1;
|
|
508
|
+
switch (tmp) {
|
|
509
|
+
case 0:
|
|
510
|
+
this.e9_1 = 2;
|
|
511
|
+
this.d9_1 = 1;
|
|
512
|
+
var this_0 = asFlow(this.t4q_1.z4q_1);
|
|
513
|
+
var tmp_0 = new _no_name_provided__qut3iv(this_0, this.u4q_1, this.v4q_1, this.w4q_1, this.x4q_1);
|
|
514
|
+
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serializeNullable$slambda_0(null), this);
|
|
515
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
516
|
+
return suspendResult;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
continue $sm;
|
|
520
|
+
case 1:
|
|
521
|
+
var fromExtension = suspendResult;
|
|
522
|
+
if (!(fromExtension == null))
|
|
523
|
+
return fromExtension;
|
|
524
|
+
var tmp_1;
|
|
525
|
+
try {
|
|
526
|
+
tmp_1 = serializerForTypeInfo(this.t4q_1.y4q_1.c43(), this.w4q_1);
|
|
527
|
+
} catch ($p) {
|
|
528
|
+
var tmp_2;
|
|
529
|
+
if ($p instanceof SerializationException) {
|
|
530
|
+
var cause = $p;
|
|
531
|
+
tmp_2 = guessSerializer(this.x4q_1, this.t4q_1.y4q_1.c43());
|
|
532
|
+
} else {
|
|
533
|
+
throw $p;
|
|
534
|
+
}
|
|
535
|
+
tmp_1 = tmp_2;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
var serializer = tmp_1;
|
|
539
|
+
return serializeContent(this.t4q_1, serializer, this.t4q_1.y4q_1, this.x4q_1, this.u4q_1, this.v4q_1);
|
|
540
|
+
case 2:
|
|
541
|
+
throw this.g9_1;
|
|
542
|
+
}
|
|
543
|
+
} catch ($p) {
|
|
544
|
+
var e = $p;
|
|
545
|
+
if (this.e9_1 === 2) {
|
|
546
|
+
throw e;
|
|
547
|
+
} else {
|
|
548
|
+
this.d9_1 = this.e9_1;
|
|
549
|
+
this.g9_1 = e;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
while (true);
|
|
553
|
+
};
|
|
554
|
+
function $deserializeCOROUTINE$1(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
|
|
555
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
556
|
+
this.i4r_1 = _this__u8e3s4;
|
|
557
|
+
this.j4r_1 = charset;
|
|
558
|
+
this.k4r_1 = typeInfo;
|
|
559
|
+
this.l4r_1 = content;
|
|
560
|
+
}
|
|
561
|
+
protoOf($deserializeCOROUTINE$1).l9 = function () {
|
|
562
|
+
var suspendResult = this.f9_1;
|
|
563
|
+
$sm: do
|
|
564
|
+
try {
|
|
565
|
+
var tmp = this.d9_1;
|
|
566
|
+
switch (tmp) {
|
|
567
|
+
case 0:
|
|
568
|
+
this.e9_1 = 5;
|
|
569
|
+
this.d9_1 = 1;
|
|
570
|
+
var this_0 = asFlow(this.i4r_1.z4q_1);
|
|
571
|
+
var tmp_0 = new _no_name_provided__qut3iv_0(this_0, this.j4r_1, this.k4r_1, this.l4r_1);
|
|
572
|
+
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.l4r_1, null), this);
|
|
573
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
574
|
+
return suspendResult;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
continue $sm;
|
|
578
|
+
case 1:
|
|
579
|
+
this.m4r_1 = suspendResult;
|
|
580
|
+
var tmp_1;
|
|
581
|
+
if (!this.i4r_1.z4q_1.p()) {
|
|
582
|
+
tmp_1 = !(this.m4r_1 == null) || this.l4r_1.h1p();
|
|
583
|
+
} else {
|
|
584
|
+
tmp_1 = false;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
if (tmp_1)
|
|
588
|
+
return this.m4r_1;
|
|
589
|
+
this.n4r_1 = serializerForTypeInfo(this.i4r_1.y4q_1.c43(), this.k4r_1);
|
|
590
|
+
this.d9_1 = 2;
|
|
591
|
+
suspendResult = this.l4r_1.c1v(VOID, this);
|
|
592
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
593
|
+
return suspendResult;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
continue $sm;
|
|
597
|
+
case 2:
|
|
598
|
+
var contentPacket = suspendResult;
|
|
599
|
+
this.e9_1 = 3;
|
|
600
|
+
var tmp0_subject = this.i4r_1.y4q_1;
|
|
601
|
+
var tmp_2;
|
|
602
|
+
if (isInterface(tmp0_subject, StringFormat)) {
|
|
603
|
+
tmp_2 = this.i4r_1.y4q_1.b43(this.n4r_1, readText(contentPacket, this.j4r_1));
|
|
604
|
+
} else {
|
|
605
|
+
if (isInterface(tmp0_subject, BinaryFormat)) {
|
|
606
|
+
tmp_2 = this.i4r_1.y4q_1.e43(this.n4r_1, readBytes(contentPacket));
|
|
607
|
+
} else {
|
|
608
|
+
discard(contentPacket);
|
|
609
|
+
var message = 'Unsupported format ' + toString(this.i4r_1.y4q_1);
|
|
610
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
return tmp_2;
|
|
615
|
+
case 3:
|
|
616
|
+
this.e9_1 = 5;
|
|
617
|
+
var tmp_3 = this.g9_1;
|
|
618
|
+
if (tmp_3 instanceof Error) {
|
|
619
|
+
var cause = this.g9_1;
|
|
620
|
+
throw new JsonConvertException('Illegal input: ' + cause.message, cause);
|
|
621
|
+
} else {
|
|
622
|
+
throw this.g9_1;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
case 4:
|
|
626
|
+
this.e9_1 = 5;
|
|
627
|
+
return Unit_instance;
|
|
628
|
+
case 5:
|
|
629
|
+
throw this.g9_1;
|
|
630
|
+
}
|
|
631
|
+
} catch ($p) {
|
|
632
|
+
var e = $p;
|
|
633
|
+
if (this.e9_1 === 5) {
|
|
634
|
+
throw e;
|
|
635
|
+
} else {
|
|
636
|
+
this.d9_1 = this.e9_1;
|
|
637
|
+
this.g9_1 = e;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
while (true);
|
|
641
|
+
};
|
|
642
|
+
function KotlinxSerializationConverter(format) {
|
|
643
|
+
this.y4q_1 = format;
|
|
644
|
+
this.z4q_1 = extensions(this.y4q_1);
|
|
645
|
+
// Inline function 'kotlin.require' call
|
|
646
|
+
var tmp;
|
|
647
|
+
var tmp_0 = this.y4q_1;
|
|
648
|
+
if (isInterface(tmp_0, BinaryFormat)) {
|
|
649
|
+
tmp = true;
|
|
650
|
+
} else {
|
|
651
|
+
var tmp_1 = this.y4q_1;
|
|
652
|
+
tmp = isInterface(tmp_1, StringFormat);
|
|
653
|
+
}
|
|
654
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
655
|
+
if (!tmp) {
|
|
656
|
+
// Inline function 'io.ktor.serialization.kotlinx.KotlinxSerializationConverter.<anonymous>' call
|
|
657
|
+
var message = 'Only binary and string formats are supported, ' + toString(this.y4q_1) + ' is not supported.';
|
|
658
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
protoOf(KotlinxSerializationConverter).o4r = function (contentType, charset, typeInfo, value, $completion) {
|
|
662
|
+
return this.p4r(contentType, charset, typeInfo, value, $completion);
|
|
663
|
+
};
|
|
664
|
+
protoOf(KotlinxSerializationConverter).l2o = function (contentType, charset, typeInfo, value, $completion) {
|
|
665
|
+
return this.o4r(contentType, charset, typeInfo, value, $completion);
|
|
666
|
+
};
|
|
667
|
+
protoOf(KotlinxSerializationConverter).p4r = function (contentType, charset, typeInfo, value, $completion) {
|
|
668
|
+
var tmp = new $serializeNullableCOROUTINE$0(this, contentType, charset, typeInfo, value, $completion);
|
|
669
|
+
tmp.f9_1 = Unit_instance;
|
|
670
|
+
tmp.g9_1 = null;
|
|
671
|
+
return tmp.l9();
|
|
672
|
+
};
|
|
673
|
+
protoOf(KotlinxSerializationConverter).m2o = function (contentType, charset, typeInfo, value, $completion) {
|
|
674
|
+
return this.p4r(contentType, charset, typeInfo, value, $completion);
|
|
675
|
+
};
|
|
676
|
+
protoOf(KotlinxSerializationConverter).n2o = function (charset, typeInfo, content, $completion) {
|
|
677
|
+
var tmp = new $deserializeCOROUTINE$1(this, charset, typeInfo, content, $completion);
|
|
678
|
+
tmp.f9_1 = Unit_instance;
|
|
679
|
+
tmp.g9_1 = null;
|
|
680
|
+
return tmp.l9();
|
|
681
|
+
};
|
|
682
|
+
function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
|
|
683
|
+
var module_0 = _this__u8e3s4;
|
|
684
|
+
var tmp0_safe_receiver = typeInfo.j2b_1;
|
|
685
|
+
var tmp;
|
|
686
|
+
if (tmp0_safe_receiver == null) {
|
|
687
|
+
tmp = null;
|
|
688
|
+
} else {
|
|
689
|
+
// Inline function 'kotlin.let' call
|
|
690
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
691
|
+
// Inline function 'io.ktor.serialization.kotlinx.serializerForTypeInfo.<anonymous>' call
|
|
692
|
+
var tmp_0;
|
|
693
|
+
if (tmp0_safe_receiver.ya().p()) {
|
|
694
|
+
tmp_0 = null;
|
|
695
|
+
} else {
|
|
696
|
+
tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
|
|
697
|
+
}
|
|
698
|
+
tmp = tmp_0;
|
|
699
|
+
}
|
|
700
|
+
var tmp2_elvis_lhs = tmp;
|
|
701
|
+
var tmp_1;
|
|
702
|
+
if (tmp2_elvis_lhs == null) {
|
|
703
|
+
var tmp1_safe_receiver = module_0.h43(typeInfo.h2b_1);
|
|
704
|
+
tmp_1 = tmp1_safe_receiver == null ? null : maybeNullable(tmp1_safe_receiver, typeInfo);
|
|
705
|
+
} else {
|
|
706
|
+
tmp_1 = tmp2_elvis_lhs;
|
|
707
|
+
}
|
|
708
|
+
var tmp3_elvis_lhs = tmp_1;
|
|
709
|
+
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.h2b_1), typeInfo) : tmp3_elvis_lhs;
|
|
710
|
+
}
|
|
711
|
+
function guessSerializer(value, module_0) {
|
|
712
|
+
var tmp;
|
|
713
|
+
if (value == null) {
|
|
714
|
+
tmp = get_nullable(serializer_0(StringCompanionObject_instance));
|
|
715
|
+
} else {
|
|
716
|
+
if (!(value == null) ? isInterface(value, KtList) : false) {
|
|
717
|
+
tmp = ListSerializer(elementSerializer(value, module_0));
|
|
718
|
+
} else {
|
|
719
|
+
if (!(value == null) ? isArray(value) : false) {
|
|
720
|
+
var tmp1_safe_receiver = firstOrNull_0(value);
|
|
721
|
+
var tmp_0;
|
|
722
|
+
if (tmp1_safe_receiver == null) {
|
|
723
|
+
tmp_0 = null;
|
|
724
|
+
} else {
|
|
725
|
+
// Inline function 'kotlin.let' call
|
|
726
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
727
|
+
// Inline function 'io.ktor.serialization.kotlinx.guessSerializer.<anonymous>' call
|
|
728
|
+
tmp_0 = guessSerializer(tmp1_safe_receiver, module_0);
|
|
729
|
+
}
|
|
730
|
+
var tmp2_elvis_lhs = tmp_0;
|
|
731
|
+
tmp = tmp2_elvis_lhs == null ? ListSerializer(serializer_0(StringCompanionObject_instance)) : tmp2_elvis_lhs;
|
|
732
|
+
} else {
|
|
733
|
+
if (!(value == null) ? isInterface(value, KtSet) : false) {
|
|
734
|
+
tmp = SetSerializer(elementSerializer(value, module_0));
|
|
735
|
+
} else {
|
|
736
|
+
if (!(value == null) ? isInterface(value, KtMap) : false) {
|
|
737
|
+
var keySerializer = elementSerializer(value.i2(), module_0);
|
|
738
|
+
var valueSerializer = elementSerializer(value.j2(), module_0);
|
|
739
|
+
tmp = MapSerializer(keySerializer, valueSerializer);
|
|
740
|
+
} else {
|
|
741
|
+
var tmp3_elvis_lhs = module_0.h43(getKClassFromExpression(value));
|
|
742
|
+
tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
var tmp_1 = tmp;
|
|
749
|
+
return isInterface(tmp_1, KSerializer) ? tmp_1 : THROW_CCE();
|
|
750
|
+
}
|
|
751
|
+
function maybeNullable(_this__u8e3s4, typeInfo) {
|
|
752
|
+
var tmp;
|
|
753
|
+
var tmp0_safe_receiver = typeInfo.j2b_1;
|
|
754
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.za()) === true) {
|
|
755
|
+
tmp = get_nullable(_this__u8e3s4);
|
|
756
|
+
} else {
|
|
757
|
+
tmp = _this__u8e3s4;
|
|
758
|
+
}
|
|
759
|
+
return tmp;
|
|
760
|
+
}
|
|
761
|
+
function elementSerializer(_this__u8e3s4, module_0) {
|
|
762
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
763
|
+
// Inline function 'kotlin.collections.map' call
|
|
764
|
+
var this_0 = filterNotNull(_this__u8e3s4);
|
|
765
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
766
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
767
|
+
var tmp0_iterator = this_0.j();
|
|
768
|
+
while (tmp0_iterator.k()) {
|
|
769
|
+
var item = tmp0_iterator.l();
|
|
770
|
+
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
771
|
+
var tmp$ret$0 = guessSerializer(item, module_0);
|
|
772
|
+
destination.e(tmp$ret$0);
|
|
773
|
+
}
|
|
774
|
+
var set = HashSet_init_$Create$();
|
|
775
|
+
var list = ArrayList_init_$Create$();
|
|
776
|
+
var tmp0_iterator_0 = destination.j();
|
|
777
|
+
while (tmp0_iterator_0.k()) {
|
|
778
|
+
var e = tmp0_iterator_0.l();
|
|
779
|
+
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
780
|
+
var key = e.x41().y42();
|
|
781
|
+
if (set.e(key)) {
|
|
782
|
+
list.e(e);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
var serializers = list;
|
|
786
|
+
if (serializers.m() > 1) {
|
|
787
|
+
// Inline function 'kotlin.error' call
|
|
788
|
+
// Inline function 'kotlin.collections.map' call
|
|
789
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
790
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
|
|
791
|
+
var tmp0_iterator_1 = serializers.j();
|
|
792
|
+
while (tmp0_iterator_1.k()) {
|
|
793
|
+
var item_0 = tmp0_iterator_1.l();
|
|
794
|
+
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
795
|
+
var tmp$ret$5 = item_0.x41().y42();
|
|
796
|
+
destination_0.e(tmp$ret$5);
|
|
797
|
+
}
|
|
798
|
+
var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + toString(destination_0));
|
|
799
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
800
|
+
}
|
|
801
|
+
var tmp0_elvis_lhs = singleOrNull(serializers);
|
|
802
|
+
var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
|
|
803
|
+
if (selected.x41().k43()) {
|
|
804
|
+
return selected;
|
|
805
|
+
}
|
|
806
|
+
if (!isInterface(selected, KSerializer))
|
|
807
|
+
THROW_CCE();
|
|
808
|
+
var tmp$ret$8;
|
|
809
|
+
$l$block_0: {
|
|
810
|
+
// Inline function 'kotlin.collections.any' call
|
|
811
|
+
var tmp;
|
|
812
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
813
|
+
tmp = _this__u8e3s4.p();
|
|
814
|
+
} else {
|
|
815
|
+
tmp = false;
|
|
816
|
+
}
|
|
817
|
+
if (tmp) {
|
|
818
|
+
tmp$ret$8 = false;
|
|
819
|
+
break $l$block_0;
|
|
820
|
+
}
|
|
821
|
+
var tmp0_iterator_2 = _this__u8e3s4.j();
|
|
822
|
+
while (tmp0_iterator_2.k()) {
|
|
823
|
+
var element = tmp0_iterator_2.l();
|
|
824
|
+
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
825
|
+
if (element == null) {
|
|
826
|
+
tmp$ret$8 = true;
|
|
827
|
+
break $l$block_0;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
tmp$ret$8 = false;
|
|
831
|
+
}
|
|
832
|
+
if (tmp$ret$8) {
|
|
833
|
+
return get_nullable(selected);
|
|
834
|
+
}
|
|
835
|
+
return selected;
|
|
836
|
+
}
|
|
837
|
+
function get_providers() {
|
|
838
|
+
return emptyList();
|
|
839
|
+
}
|
|
840
|
+
//region block: exports
|
|
841
|
+
_.$_$ = _.$_$ || {};
|
|
842
|
+
_.$_$.a = serialization;
|
|
843
|
+
//endregion
|
|
844
|
+
return _;
|
|
845
|
+
}));
|
|
846
|
+
|
|
847
|
+
//# sourceMappingURL=ktor-ktor-serialization-kotlinx.js.map
|