@doordeck/doordeck-headless-sdk 0.185.0 → 0.186.0
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/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +43 -43
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +798 -674
- package/kotlin/doordeck-sdk.js +12518 -12528
- package/kotlin/kotlin-kotlin-stdlib.js +3965 -3522
- package/kotlin/kotlinx-atomicfu.js +22 -22
- package/kotlin/kotlinx-coroutines-core.js +2333 -2338
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +59 -59
- package/kotlin/kotlinx-io-kotlinx-io-core.js +532 -532
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1980 -1979
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1589 -1589
- package/kotlin/ktor-ktor-client-auth.js +471 -473
- package/kotlin/ktor-ktor-client-content-negotiation.js +244 -245
- package/kotlin/ktor-ktor-client-core.js +3207 -3212
- package/kotlin/ktor-ktor-client-logging.js +1319 -1319
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +575 -575
- package/kotlin/ktor-ktor-http.js +950 -950
- package/kotlin/ktor-ktor-io.js +1120 -1124
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +272 -272
- package/kotlin/ktor-ktor-serialization.js +122 -122
- package/kotlin/ktor-ktor-utils.js +977 -977
- package/kotlin/ktor-ktor-websockets.js +61 -61
- package/package.json +4 -4
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
6
6
|
var CoroutineImpl = kotlin_kotlin.$_$.j9;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.cc;
|
|
8
|
+
var THROW_CCE = kotlin_kotlin.$_$.bg;
|
|
9
9
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.jb;
|
|
11
11
|
var VOID = kotlin_kotlin.$_$.b;
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var toString = kotlin_kotlin.$_$.
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.gb;
|
|
13
|
+
var toString = kotlin_kotlin.$_$.fc;
|
|
14
14
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
15
15
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
16
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
16
|
+
var isInterface = kotlin_kotlin.$_$.tb;
|
|
17
17
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.m;
|
|
18
18
|
var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2;
|
|
19
19
|
var withCharsetIfNeeded = kotlin_io_ktor_ktor_http.$_$.y1;
|
|
20
20
|
var TextContent = kotlin_io_ktor_ktor_http.$_$.w;
|
|
21
21
|
var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
|
|
22
|
-
var equals = kotlin_kotlin.$_$.
|
|
23
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
22
|
+
var equals = kotlin_kotlin.$_$.xa;
|
|
23
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ka;
|
|
24
24
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
|
|
25
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
25
|
+
var hashCode = kotlin_kotlin.$_$.db;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.eb;
|
|
27
27
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
28
28
|
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
|
|
29
29
|
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
37
37
|
var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v2;
|
|
38
38
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2;
|
|
39
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.sc;
|
|
40
40
|
var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
41
41
|
var KtMap = kotlin_kotlin.$_$.l5;
|
|
42
42
|
var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
var StringCompanionObject_instance = kotlin_kotlin.$_$.n4;
|
|
46
46
|
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
47
47
|
var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
48
|
-
var isArray = kotlin_kotlin.$_$.
|
|
48
|
+
var isArray = kotlin_kotlin.$_$.lb;
|
|
49
49
|
var KtList = kotlin_kotlin.$_$.i5;
|
|
50
50
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
51
51
|
var filterNotNull = kotlin_kotlin.$_$.u6;
|
|
@@ -77,52 +77,52 @@
|
|
|
77
77
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
78
78
|
var destination = ArrayList_init_$Create$();
|
|
79
79
|
// Inline function 'kotlin.collections.forEach' call
|
|
80
|
-
var _iterator__ex2g4s = tmp0.
|
|
81
|
-
while (_iterator__ex2g4s.
|
|
82
|
-
var element = _iterator__ex2g4s.
|
|
83
|
-
var tmp0_safe_receiver = element.
|
|
80
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
81
|
+
while (_iterator__ex2g4s.u()) {
|
|
82
|
+
var element = _iterator__ex2g4s.v();
|
|
83
|
+
var tmp0_safe_receiver = element.d5o(format);
|
|
84
84
|
if (tmp0_safe_receiver == null)
|
|
85
85
|
null;
|
|
86
86
|
else {
|
|
87
87
|
// Inline function 'kotlin.let' call
|
|
88
|
-
destination.
|
|
88
|
+
destination.j1(tmp0_safe_receiver);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
return destination;
|
|
92
92
|
}
|
|
93
93
|
function serialization(_this__u8e3s4, contentType, format) {
|
|
94
|
-
_this__u8e3s4.
|
|
94
|
+
_this__u8e3s4.c3b(contentType, new KotlinxSerializationConverter(format));
|
|
95
95
|
}
|
|
96
96
|
function KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
97
|
+
this.m5o_1 = $$this$unsafeFlow;
|
|
98
|
+
this.n5o_1 = $contentType;
|
|
99
|
+
this.o5o_1 = $charset;
|
|
100
|
+
this.p5o_1 = $typeInfo;
|
|
101
|
+
this.q5o_1 = $value;
|
|
102
102
|
CoroutineImpl.call(this, resultContinuation);
|
|
103
103
|
}
|
|
104
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
105
|
-
var tmp = this.
|
|
106
|
-
tmp.
|
|
107
|
-
tmp.
|
|
108
|
-
return tmp.
|
|
104
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).s3b = function (value, $completion) {
|
|
105
|
+
var tmp = this.t3b(value, $completion);
|
|
106
|
+
tmp.f9_1 = Unit_instance;
|
|
107
|
+
tmp.g9_1 = null;
|
|
108
|
+
return tmp.l9();
|
|
109
109
|
};
|
|
110
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
111
|
-
return this.
|
|
110
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).x9 = function (p1, $completion) {
|
|
111
|
+
return this.s3b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
112
112
|
};
|
|
113
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
114
|
-
var suspendResult = this.
|
|
113
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).l9 = function () {
|
|
114
|
+
var suspendResult = this.f9_1;
|
|
115
115
|
$sm: do
|
|
116
116
|
try {
|
|
117
|
-
var tmp = this.
|
|
117
|
+
var tmp = this.d9_1;
|
|
118
118
|
switch (tmp) {
|
|
119
119
|
case 0:
|
|
120
|
-
this.
|
|
121
|
-
var tmp0 = this.
|
|
122
|
-
var tmp2 = this.
|
|
123
|
-
this.
|
|
124
|
-
this.
|
|
125
|
-
suspendResult = tmp2.
|
|
120
|
+
this.e9_1 = 3;
|
|
121
|
+
var tmp0 = this.m5o_1;
|
|
122
|
+
var tmp2 = this.r5o_1;
|
|
123
|
+
this.s5o_1 = tmp0;
|
|
124
|
+
this.d9_1 = 1;
|
|
125
|
+
suspendResult = tmp2.w5c(this.n5o_1, this.o5o_1, this.p5o_1, this.q5o_1, this);
|
|
126
126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
127
127
|
return suspendResult;
|
|
128
128
|
}
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
continue $sm;
|
|
131
131
|
case 1:
|
|
132
132
|
var ARGUMENT = suspendResult;
|
|
133
|
-
this.
|
|
134
|
-
suspendResult = this.
|
|
133
|
+
this.d9_1 = 2;
|
|
134
|
+
suspendResult = this.s5o_1.s1b(ARGUMENT, this);
|
|
135
135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
136
136
|
return suspendResult;
|
|
137
137
|
}
|
|
@@ -140,49 +140,49 @@
|
|
|
140
140
|
case 2:
|
|
141
141
|
return Unit_instance;
|
|
142
142
|
case 3:
|
|
143
|
-
throw this.
|
|
143
|
+
throw this.g9_1;
|
|
144
144
|
}
|
|
145
145
|
} catch ($p) {
|
|
146
146
|
var e = $p;
|
|
147
|
-
if (this.
|
|
147
|
+
if (this.e9_1 === 3) {
|
|
148
148
|
throw e;
|
|
149
149
|
} else {
|
|
150
|
-
this.
|
|
151
|
-
this.
|
|
150
|
+
this.d9_1 = this.e9_1;
|
|
151
|
+
this.g9_1 = e;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
while (true);
|
|
155
155
|
};
|
|
156
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
157
|
-
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.
|
|
158
|
-
i.
|
|
156
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).t3b = function (value, completion) {
|
|
157
|
+
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.m5o_1, this.n5o_1, this.o5o_1, this.p5o_1, this.q5o_1, completion);
|
|
158
|
+
i.r5o_1 = value;
|
|
159
159
|
return i;
|
|
160
160
|
};
|
|
161
161
|
function KotlinxSerializationConverter$serialize$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
162
162
|
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
|
|
163
163
|
var l = function (value, $completion) {
|
|
164
|
-
return i.
|
|
164
|
+
return i.s3b(value, $completion);
|
|
165
165
|
};
|
|
166
166
|
l.$arity = 1;
|
|
167
167
|
return l;
|
|
168
168
|
}
|
|
169
169
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
170
170
|
CoroutineImpl.call(this, resultContinuation);
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
171
|
+
this.b5p_1 = _this__u8e3s4;
|
|
172
|
+
this.c5p_1 = collector;
|
|
173
173
|
}
|
|
174
|
-
protoOf($collectCOROUTINE$).
|
|
175
|
-
var suspendResult = this.
|
|
174
|
+
protoOf($collectCOROUTINE$).l9 = function () {
|
|
175
|
+
var suspendResult = this.f9_1;
|
|
176
176
|
$sm: do
|
|
177
177
|
try {
|
|
178
|
-
var tmp = this.
|
|
178
|
+
var tmp = this.d9_1;
|
|
179
179
|
switch (tmp) {
|
|
180
180
|
case 0:
|
|
181
|
-
this.
|
|
182
|
-
var $this$unsafeFlow = this.
|
|
183
|
-
this.
|
|
184
|
-
var tmp_0 = KotlinxSerializationConverter$serialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
185
|
-
suspendResult = this.
|
|
181
|
+
this.e9_1 = 2;
|
|
182
|
+
var $this$unsafeFlow = this.c5p_1;
|
|
183
|
+
this.d9_1 = 1;
|
|
184
|
+
var tmp_0 = KotlinxSerializationConverter$serialize$o$collect$slambda_0($this$unsafeFlow, this.b5p_1.e5p_1, this.b5p_1.f5p_1, this.b5p_1.g5p_1, this.b5p_1.h5p_1, null);
|
|
185
|
+
suspendResult = this.b5p_1.d5p_1.u1b(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
186
186
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
187
187
|
return suspendResult;
|
|
188
188
|
}
|
|
@@ -191,48 +191,48 @@
|
|
|
191
191
|
case 1:
|
|
192
192
|
return Unit_instance;
|
|
193
193
|
case 2:
|
|
194
|
-
throw this.
|
|
194
|
+
throw this.g9_1;
|
|
195
195
|
}
|
|
196
196
|
} catch ($p) {
|
|
197
197
|
var e = $p;
|
|
198
|
-
if (this.
|
|
198
|
+
if (this.e9_1 === 2) {
|
|
199
199
|
throw e;
|
|
200
200
|
} else {
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
201
|
+
this.d9_1 = this.e9_1;
|
|
202
|
+
this.g9_1 = e;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
while (true);
|
|
206
206
|
};
|
|
207
207
|
function KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
208
|
+
this.q5p_1 = $$this$unsafeFlow;
|
|
209
|
+
this.r5p_1 = $charset;
|
|
210
|
+
this.s5p_1 = $typeInfo;
|
|
211
|
+
this.t5p_1 = $content;
|
|
212
212
|
CoroutineImpl.call(this, resultContinuation);
|
|
213
213
|
}
|
|
214
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
215
|
-
var tmp = this.
|
|
216
|
-
tmp.
|
|
217
|
-
tmp.
|
|
218
|
-
return tmp.
|
|
214
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).s3b = function (value, $completion) {
|
|
215
|
+
var tmp = this.t3b(value, $completion);
|
|
216
|
+
tmp.f9_1 = Unit_instance;
|
|
217
|
+
tmp.g9_1 = null;
|
|
218
|
+
return tmp.l9();
|
|
219
219
|
};
|
|
220
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
221
|
-
return this.
|
|
220
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).x9 = function (p1, $completion) {
|
|
221
|
+
return this.s3b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
222
222
|
};
|
|
223
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
224
|
-
var suspendResult = this.
|
|
223
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).l9 = function () {
|
|
224
|
+
var suspendResult = this.f9_1;
|
|
225
225
|
$sm: do
|
|
226
226
|
try {
|
|
227
|
-
var tmp = this.
|
|
227
|
+
var tmp = this.d9_1;
|
|
228
228
|
switch (tmp) {
|
|
229
229
|
case 0:
|
|
230
|
-
this.
|
|
231
|
-
var tmp0 = this.
|
|
232
|
-
var tmp2 = this.
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
235
|
-
suspendResult = tmp2.
|
|
230
|
+
this.e9_1 = 3;
|
|
231
|
+
var tmp0 = this.q5p_1;
|
|
232
|
+
var tmp2 = this.u5p_1;
|
|
233
|
+
this.v5p_1 = tmp0;
|
|
234
|
+
this.d9_1 = 1;
|
|
235
|
+
suspendResult = tmp2.u3b(this.r5p_1, this.s5p_1, this.t5p_1, this);
|
|
236
236
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
237
237
|
return suspendResult;
|
|
238
238
|
}
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
continue $sm;
|
|
241
241
|
case 1:
|
|
242
242
|
var ARGUMENT = suspendResult;
|
|
243
|
-
this.
|
|
244
|
-
suspendResult = this.
|
|
243
|
+
this.d9_1 = 2;
|
|
244
|
+
suspendResult = this.v5p_1.s1b(ARGUMENT, this);
|
|
245
245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
246
246
|
return suspendResult;
|
|
247
247
|
}
|
|
@@ -250,49 +250,49 @@
|
|
|
250
250
|
case 2:
|
|
251
251
|
return Unit_instance;
|
|
252
252
|
case 3:
|
|
253
|
-
throw this.
|
|
253
|
+
throw this.g9_1;
|
|
254
254
|
}
|
|
255
255
|
} catch ($p) {
|
|
256
256
|
var e = $p;
|
|
257
|
-
if (this.
|
|
257
|
+
if (this.e9_1 === 3) {
|
|
258
258
|
throw e;
|
|
259
259
|
} else {
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
260
|
+
this.d9_1 = this.e9_1;
|
|
261
|
+
this.g9_1 = e;
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
while (true);
|
|
265
265
|
};
|
|
266
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
267
|
-
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.
|
|
268
|
-
i.
|
|
266
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).t3b = function (value, completion) {
|
|
267
|
+
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.q5p_1, this.r5p_1, this.s5p_1, this.t5p_1, completion);
|
|
268
|
+
i.u5p_1 = value;
|
|
269
269
|
return i;
|
|
270
270
|
};
|
|
271
271
|
function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
272
272
|
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation);
|
|
273
273
|
var l = function (value, $completion) {
|
|
274
|
-
return i.
|
|
274
|
+
return i.s3b(value, $completion);
|
|
275
275
|
};
|
|
276
276
|
l.$arity = 1;
|
|
277
277
|
return l;
|
|
278
278
|
}
|
|
279
279
|
function $collectCOROUTINE$_0(_this__u8e3s4, collector, resultContinuation) {
|
|
280
280
|
CoroutineImpl.call(this, resultContinuation);
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
281
|
+
this.e5q_1 = _this__u8e3s4;
|
|
282
|
+
this.f5q_1 = collector;
|
|
283
283
|
}
|
|
284
|
-
protoOf($collectCOROUTINE$_0).
|
|
285
|
-
var suspendResult = this.
|
|
284
|
+
protoOf($collectCOROUTINE$_0).l9 = function () {
|
|
285
|
+
var suspendResult = this.f9_1;
|
|
286
286
|
$sm: do
|
|
287
287
|
try {
|
|
288
|
-
var tmp = this.
|
|
288
|
+
var tmp = this.d9_1;
|
|
289
289
|
switch (tmp) {
|
|
290
290
|
case 0:
|
|
291
|
-
this.
|
|
292
|
-
var $this$unsafeFlow = this.
|
|
293
|
-
this.
|
|
294
|
-
var tmp_0 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
295
|
-
suspendResult = this.
|
|
291
|
+
this.e9_1 = 2;
|
|
292
|
+
var $this$unsafeFlow = this.f5q_1;
|
|
293
|
+
this.d9_1 = 1;
|
|
294
|
+
var tmp_0 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0($this$unsafeFlow, this.e5q_1.h5q_1, this.e5q_1.i5q_1, this.e5q_1.j5q_1, null);
|
|
295
|
+
suspendResult = this.e5q_1.g5q_1.u1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
296
296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
297
297
|
return suspendResult;
|
|
298
298
|
}
|
|
@@ -301,15 +301,15 @@
|
|
|
301
301
|
case 1:
|
|
302
302
|
return Unit_instance;
|
|
303
303
|
case 2:
|
|
304
|
-
throw this.
|
|
304
|
+
throw this.g9_1;
|
|
305
305
|
}
|
|
306
306
|
} catch ($p) {
|
|
307
307
|
var e = $p;
|
|
308
|
-
if (this.
|
|
308
|
+
if (this.e9_1 === 2) {
|
|
309
309
|
throw e;
|
|
310
310
|
} else {
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
311
|
+
this.d9_1 = this.e9_1;
|
|
312
|
+
this.g9_1 = e;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
while (true);
|
|
@@ -317,11 +317,11 @@
|
|
|
317
317
|
function serializeContent($this, serializer, format, value, contentType, charset) {
|
|
318
318
|
var tmp;
|
|
319
319
|
if (isInterface(format, StringFormat)) {
|
|
320
|
-
var content = format.
|
|
320
|
+
var content = format.z1x(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
321
321
|
tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
|
|
322
322
|
} else {
|
|
323
323
|
if (isInterface(format, BinaryFormat)) {
|
|
324
|
-
var content_0 = format.
|
|
324
|
+
var content_0 = format.b1y(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
325
325
|
tmp = new ByteArrayContent(content_0, contentType);
|
|
326
326
|
} else {
|
|
327
327
|
var message = 'Unsupported format ' + toString(format);
|
|
@@ -331,20 +331,20 @@
|
|
|
331
331
|
return tmp;
|
|
332
332
|
}
|
|
333
333
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
334
|
-
this.
|
|
334
|
+
this.k5q_1 = function_0;
|
|
335
335
|
}
|
|
336
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s1b = function (value, $completion) {
|
|
337
|
+
return this.k5q_1(value, $completion);
|
|
338
338
|
};
|
|
339
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
340
|
-
return this.
|
|
339
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t3 = function () {
|
|
340
|
+
return this.k5q_1;
|
|
341
341
|
};
|
|
342
342
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
343
343
|
var tmp;
|
|
344
344
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
345
345
|
var tmp_0;
|
|
346
346
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
347
|
-
tmp_0 = equals(this.
|
|
347
|
+
tmp_0 = equals(this.t3(), other.t3());
|
|
348
348
|
} else {
|
|
349
349
|
tmp_0 = false;
|
|
350
350
|
}
|
|
@@ -355,23 +355,23 @@
|
|
|
355
355
|
return tmp;
|
|
356
356
|
};
|
|
357
357
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
358
|
-
return hashCode(this.
|
|
358
|
+
return hashCode(this.t3());
|
|
359
359
|
};
|
|
360
360
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
361
|
-
this.
|
|
361
|
+
this.l5q_1 = function_0;
|
|
362
362
|
}
|
|
363
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
364
|
-
return this.
|
|
363
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).s1b = function (value, $completion) {
|
|
364
|
+
return this.l5q_1(value, $completion);
|
|
365
365
|
};
|
|
366
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
367
|
-
return this.
|
|
366
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).t3 = function () {
|
|
367
|
+
return this.l5q_1;
|
|
368
368
|
};
|
|
369
369
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
370
370
|
var tmp;
|
|
371
371
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
372
372
|
var tmp_0;
|
|
373
373
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
374
|
-
tmp_0 = equals(this.
|
|
374
|
+
tmp_0 = equals(this.t3(), other.t3());
|
|
375
375
|
} else {
|
|
376
376
|
tmp_0 = false;
|
|
377
377
|
}
|
|
@@ -382,46 +382,46 @@
|
|
|
382
382
|
return tmp;
|
|
383
383
|
};
|
|
384
384
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
|
|
385
|
-
return hashCode(this.
|
|
385
|
+
return hashCode(this.t3());
|
|
386
386
|
};
|
|
387
387
|
function KotlinxSerializationConverter$serialize$$inlined$map$1($this, $contentType, $charset, $typeInfo, $value) {
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
388
|
+
this.d5p_1 = $this;
|
|
389
|
+
this.e5p_1 = $contentType;
|
|
390
|
+
this.f5p_1 = $charset;
|
|
391
|
+
this.g5p_1 = $typeInfo;
|
|
392
|
+
this.h5p_1 = $value;
|
|
393
393
|
}
|
|
394
|
-
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).
|
|
394
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).t1b = function (collector, $completion) {
|
|
395
395
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
396
|
-
tmp.
|
|
397
|
-
tmp.
|
|
398
|
-
return tmp.
|
|
396
|
+
tmp.f9_1 = Unit_instance;
|
|
397
|
+
tmp.g9_1 = null;
|
|
398
|
+
return tmp.l9();
|
|
399
399
|
};
|
|
400
|
-
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).
|
|
401
|
-
return this.
|
|
400
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).u1b = function (collector, $completion) {
|
|
401
|
+
return this.t1b(collector, $completion);
|
|
402
402
|
};
|
|
403
403
|
function KotlinxSerializationConverter$serialize$slambda(resultContinuation) {
|
|
404
404
|
CoroutineImpl.call(this, resultContinuation);
|
|
405
405
|
}
|
|
406
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
407
|
-
var tmp = this.
|
|
408
|
-
tmp.
|
|
409
|
-
tmp.
|
|
410
|
-
return tmp.
|
|
406
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).v5q = function (it, $completion) {
|
|
407
|
+
var tmp = this.w5q(it, $completion);
|
|
408
|
+
tmp.f9_1 = Unit_instance;
|
|
409
|
+
tmp.g9_1 = null;
|
|
410
|
+
return tmp.l9();
|
|
411
411
|
};
|
|
412
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
413
|
-
return this.
|
|
412
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).x9 = function (p1, $completion) {
|
|
413
|
+
return this.v5q((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
|
|
414
414
|
};
|
|
415
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
416
|
-
var suspendResult = this.
|
|
415
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).l9 = function () {
|
|
416
|
+
var suspendResult = this.f9_1;
|
|
417
417
|
$sm: do
|
|
418
418
|
try {
|
|
419
|
-
var tmp = this.
|
|
419
|
+
var tmp = this.d9_1;
|
|
420
420
|
if (tmp === 0) {
|
|
421
|
-
this.
|
|
422
|
-
return !(this.
|
|
421
|
+
this.e9_1 = 1;
|
|
422
|
+
return !(this.u5q_1 == null);
|
|
423
423
|
} else if (tmp === 1) {
|
|
424
|
-
throw this.
|
|
424
|
+
throw this.g9_1;
|
|
425
425
|
}
|
|
426
426
|
} catch ($p) {
|
|
427
427
|
var e = $p;
|
|
@@ -429,57 +429,57 @@
|
|
|
429
429
|
}
|
|
430
430
|
while (true);
|
|
431
431
|
};
|
|
432
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
432
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).w5q = function (it, completion) {
|
|
433
433
|
var i = new KotlinxSerializationConverter$serialize$slambda(completion);
|
|
434
|
-
i.
|
|
434
|
+
i.u5q_1 = it;
|
|
435
435
|
return i;
|
|
436
436
|
};
|
|
437
437
|
function KotlinxSerializationConverter$serialize$slambda_0(resultContinuation) {
|
|
438
438
|
var i = new KotlinxSerializationConverter$serialize$slambda(resultContinuation);
|
|
439
439
|
var l = function (it, $completion) {
|
|
440
|
-
return i.
|
|
440
|
+
return i.v5q(it, $completion);
|
|
441
441
|
};
|
|
442
442
|
l.$arity = 1;
|
|
443
443
|
return l;
|
|
444
444
|
}
|
|
445
445
|
function KotlinxSerializationConverter$deserialize$$inlined$map$1($this, $charset, $typeInfo, $content) {
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
446
|
+
this.g5q_1 = $this;
|
|
447
|
+
this.h5q_1 = $charset;
|
|
448
|
+
this.i5q_1 = $typeInfo;
|
|
449
|
+
this.j5q_1 = $content;
|
|
450
450
|
}
|
|
451
|
-
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).
|
|
451
|
+
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).t1b = function (collector, $completion) {
|
|
452
452
|
var tmp = new $collectCOROUTINE$_0(this, collector, $completion);
|
|
453
|
-
tmp.
|
|
454
|
-
tmp.
|
|
455
|
-
return tmp.
|
|
453
|
+
tmp.f9_1 = Unit_instance;
|
|
454
|
+
tmp.g9_1 = null;
|
|
455
|
+
return tmp.l9();
|
|
456
456
|
};
|
|
457
|
-
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).
|
|
458
|
-
return this.
|
|
457
|
+
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).u1b = function (collector, $completion) {
|
|
458
|
+
return this.t1b(collector, $completion);
|
|
459
459
|
};
|
|
460
460
|
function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
|
|
461
|
-
this.
|
|
461
|
+
this.f5r_1 = $content;
|
|
462
462
|
CoroutineImpl.call(this, resultContinuation);
|
|
463
463
|
}
|
|
464
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
465
|
-
var tmp = this.
|
|
466
|
-
tmp.
|
|
467
|
-
tmp.
|
|
468
|
-
return tmp.
|
|
464
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).t3c = function (it, $completion) {
|
|
465
|
+
var tmp = this.t3b(it, $completion);
|
|
466
|
+
tmp.f9_1 = Unit_instance;
|
|
467
|
+
tmp.g9_1 = null;
|
|
468
|
+
return tmp.l9();
|
|
469
469
|
};
|
|
470
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
471
|
-
return this.
|
|
470
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).x9 = function (p1, $completion) {
|
|
471
|
+
return this.t3c((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
472
472
|
};
|
|
473
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
474
|
-
var suspendResult = this.
|
|
473
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).l9 = function () {
|
|
474
|
+
var suspendResult = this.f9_1;
|
|
475
475
|
$sm: do
|
|
476
476
|
try {
|
|
477
|
-
var tmp = this.
|
|
477
|
+
var tmp = this.d9_1;
|
|
478
478
|
if (tmp === 0) {
|
|
479
|
-
this.
|
|
480
|
-
return !(this.
|
|
479
|
+
this.e9_1 = 1;
|
|
480
|
+
return !(this.g5r_1 == null) || this.f5r_1.w1l();
|
|
481
481
|
} else if (tmp === 1) {
|
|
482
|
-
throw this.
|
|
482
|
+
throw this.g9_1;
|
|
483
483
|
}
|
|
484
484
|
} catch ($p) {
|
|
485
485
|
var e = $p;
|
|
@@ -487,38 +487,38 @@
|
|
|
487
487
|
}
|
|
488
488
|
while (true);
|
|
489
489
|
};
|
|
490
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
491
|
-
var i = new KotlinxSerializationConverter$deserialize$slambda(this.
|
|
492
|
-
i.
|
|
490
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).t3b = function (it, completion) {
|
|
491
|
+
var i = new KotlinxSerializationConverter$deserialize$slambda(this.f5r_1, completion);
|
|
492
|
+
i.g5r_1 = it;
|
|
493
493
|
return i;
|
|
494
494
|
};
|
|
495
495
|
function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
|
|
496
496
|
var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
|
|
497
497
|
var l = function (it, $completion) {
|
|
498
|
-
return i.
|
|
498
|
+
return i.t3c(it, $completion);
|
|
499
499
|
};
|
|
500
500
|
l.$arity = 1;
|
|
501
501
|
return l;
|
|
502
502
|
}
|
|
503
503
|
function $serializeCOROUTINE$(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
|
|
504
504
|
CoroutineImpl.call(this, resultContinuation);
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
505
|
+
this.p5r_1 = _this__u8e3s4;
|
|
506
|
+
this.q5r_1 = contentType;
|
|
507
|
+
this.r5r_1 = charset;
|
|
508
|
+
this.s5r_1 = typeInfo;
|
|
509
|
+
this.t5r_1 = value;
|
|
510
510
|
}
|
|
511
|
-
protoOf($serializeCOROUTINE$).
|
|
512
|
-
var suspendResult = this.
|
|
511
|
+
protoOf($serializeCOROUTINE$).l9 = function () {
|
|
512
|
+
var suspendResult = this.f9_1;
|
|
513
513
|
$sm: do
|
|
514
514
|
try {
|
|
515
|
-
var tmp = this.
|
|
515
|
+
var tmp = this.d9_1;
|
|
516
516
|
switch (tmp) {
|
|
517
517
|
case 0:
|
|
518
|
-
this.
|
|
519
|
-
this.
|
|
520
|
-
var this_0 = asFlow(this.
|
|
521
|
-
var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.
|
|
518
|
+
this.e9_1 = 2;
|
|
519
|
+
this.d9_1 = 1;
|
|
520
|
+
var this_0 = asFlow(this.p5r_1.v5r_1);
|
|
521
|
+
var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.q5r_1, this.r5r_1, this.s5r_1, this.t5r_1);
|
|
522
522
|
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serialize$slambda_0(null), this);
|
|
523
523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
524
524
|
return suspendResult;
|
|
@@ -531,12 +531,12 @@
|
|
|
531
531
|
return fromExtension;
|
|
532
532
|
var tmp_1;
|
|
533
533
|
try {
|
|
534
|
-
tmp_1 = serializerForTypeInfo(this.
|
|
534
|
+
tmp_1 = serializerForTypeInfo(this.p5r_1.u5r_1.y20(), this.s5r_1);
|
|
535
535
|
} catch ($p) {
|
|
536
536
|
var tmp_2;
|
|
537
537
|
if ($p instanceof SerializationException) {
|
|
538
538
|
var cause = $p;
|
|
539
|
-
tmp_2 = guessSerializer(this.
|
|
539
|
+
tmp_2 = guessSerializer(this.t5r_1, this.p5r_1.u5r_1.y20());
|
|
540
540
|
} else {
|
|
541
541
|
throw $p;
|
|
542
542
|
}
|
|
@@ -544,40 +544,40 @@
|
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
var serializer = tmp_1;
|
|
547
|
-
return serializeContent(this.
|
|
547
|
+
return serializeContent(this.p5r_1, serializer, this.p5r_1.u5r_1, this.t5r_1, this.q5r_1, this.r5r_1);
|
|
548
548
|
case 2:
|
|
549
|
-
throw this.
|
|
549
|
+
throw this.g9_1;
|
|
550
550
|
}
|
|
551
551
|
} catch ($p) {
|
|
552
552
|
var e = $p;
|
|
553
|
-
if (this.
|
|
553
|
+
if (this.e9_1 === 2) {
|
|
554
554
|
throw e;
|
|
555
555
|
} else {
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
556
|
+
this.d9_1 = this.e9_1;
|
|
557
|
+
this.g9_1 = e;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
while (true);
|
|
561
561
|
};
|
|
562
562
|
function $deserializeCOROUTINE$(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
|
|
563
563
|
CoroutineImpl.call(this, resultContinuation);
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
566
|
-
this.
|
|
567
|
-
this.
|
|
564
|
+
this.e5s_1 = _this__u8e3s4;
|
|
565
|
+
this.f5s_1 = charset;
|
|
566
|
+
this.g5s_1 = typeInfo;
|
|
567
|
+
this.h5s_1 = content;
|
|
568
568
|
}
|
|
569
|
-
protoOf($deserializeCOROUTINE$).
|
|
570
|
-
var suspendResult = this.
|
|
569
|
+
protoOf($deserializeCOROUTINE$).l9 = function () {
|
|
570
|
+
var suspendResult = this.f9_1;
|
|
571
571
|
$sm: do
|
|
572
572
|
try {
|
|
573
|
-
var tmp = this.
|
|
573
|
+
var tmp = this.d9_1;
|
|
574
574
|
switch (tmp) {
|
|
575
575
|
case 0:
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
var this_0 = asFlow(this.
|
|
579
|
-
var tmp_0 = new KotlinxSerializationConverter$deserialize$$inlined$map$1(this_0, this.
|
|
580
|
-
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.
|
|
576
|
+
this.e9_1 = 4;
|
|
577
|
+
this.d9_1 = 1;
|
|
578
|
+
var this_0 = asFlow(this.e5s_1.v5r_1);
|
|
579
|
+
var tmp_0 = new KotlinxSerializationConverter$deserialize$$inlined$map$1(this_0, this.f5s_1, this.g5s_1, this.h5s_1);
|
|
580
|
+
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.h5s_1, null), this);
|
|
581
581
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
582
582
|
return suspendResult;
|
|
583
583
|
}
|
|
@@ -586,17 +586,17 @@
|
|
|
586
586
|
case 1:
|
|
587
587
|
var fromExtension = suspendResult;
|
|
588
588
|
var tmp_1;
|
|
589
|
-
if (!this.
|
|
590
|
-
tmp_1 = !(fromExtension == null) || this.
|
|
589
|
+
if (!this.e5s_1.v5r_1.r()) {
|
|
590
|
+
tmp_1 = !(fromExtension == null) || this.h5s_1.w1l();
|
|
591
591
|
} else {
|
|
592
592
|
tmp_1 = false;
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
if (tmp_1)
|
|
596
596
|
return fromExtension;
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
suspendResult = readRemaining(this.
|
|
597
|
+
this.i5s_1 = serializerForTypeInfo(this.e5s_1.u5r_1.y20(), this.g5s_1);
|
|
598
|
+
this.d9_1 = 2;
|
|
599
|
+
suspendResult = readRemaining(this.h5s_1, this);
|
|
600
600
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
601
601
|
return suspendResult;
|
|
602
602
|
}
|
|
@@ -604,88 +604,88 @@
|
|
|
604
604
|
continue $sm;
|
|
605
605
|
case 2:
|
|
606
606
|
var contentPacket = suspendResult;
|
|
607
|
-
this.
|
|
608
|
-
var tmp0_subject = this.
|
|
607
|
+
this.e9_1 = 3;
|
|
608
|
+
var tmp0_subject = this.e5s_1.u5r_1;
|
|
609
609
|
var tmp_2;
|
|
610
610
|
if (isInterface(tmp0_subject, StringFormat)) {
|
|
611
|
-
tmp_2 = this.
|
|
611
|
+
tmp_2 = this.e5s_1.u5r_1.a1y(this.i5s_1, readText(contentPacket, this.f5s_1));
|
|
612
612
|
} else {
|
|
613
613
|
if (isInterface(tmp0_subject, BinaryFormat)) {
|
|
614
|
-
tmp_2 = this.
|
|
614
|
+
tmp_2 = this.e5s_1.u5r_1.c1y(this.i5s_1, readByteArray(contentPacket));
|
|
615
615
|
} else {
|
|
616
616
|
discard(contentPacket);
|
|
617
|
-
var message = 'Unsupported format ' + toString(this.
|
|
617
|
+
var message = 'Unsupported format ' + toString(this.e5s_1.u5r_1);
|
|
618
618
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
return tmp_2;
|
|
623
623
|
case 3:
|
|
624
|
-
this.
|
|
625
|
-
var tmp_3 = this.
|
|
624
|
+
this.e9_1 = 4;
|
|
625
|
+
var tmp_3 = this.g9_1;
|
|
626
626
|
if (tmp_3 instanceof Error) {
|
|
627
|
-
var cause = this.
|
|
627
|
+
var cause = this.g9_1;
|
|
628
628
|
throw new JsonConvertException('Illegal input: ' + cause.message, cause);
|
|
629
629
|
} else {
|
|
630
|
-
throw this.
|
|
630
|
+
throw this.g9_1;
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
case 4:
|
|
634
|
-
throw this.
|
|
634
|
+
throw this.g9_1;
|
|
635
635
|
}
|
|
636
636
|
} catch ($p) {
|
|
637
637
|
var e = $p;
|
|
638
|
-
if (this.
|
|
638
|
+
if (this.e9_1 === 4) {
|
|
639
639
|
throw e;
|
|
640
640
|
} else {
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
641
|
+
this.d9_1 = this.e9_1;
|
|
642
|
+
this.g9_1 = e;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
while (true);
|
|
646
646
|
};
|
|
647
647
|
function KotlinxSerializationConverter(format) {
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
648
|
+
this.u5r_1 = format;
|
|
649
|
+
this.v5r_1 = extensions(this.u5r_1);
|
|
650
650
|
var tmp;
|
|
651
|
-
var tmp_0 = this.
|
|
651
|
+
var tmp_0 = this.u5r_1;
|
|
652
652
|
if (isInterface(tmp_0, BinaryFormat)) {
|
|
653
653
|
tmp = true;
|
|
654
654
|
} else {
|
|
655
|
-
var tmp_1 = this.
|
|
655
|
+
var tmp_1 = this.u5r_1;
|
|
656
656
|
tmp = isInterface(tmp_1, StringFormat);
|
|
657
657
|
}
|
|
658
658
|
// Inline function 'kotlin.require' call
|
|
659
659
|
if (!tmp) {
|
|
660
|
-
var message = 'Only binary and string formats are supported, ' + toString(this.
|
|
660
|
+
var message = 'Only binary and string formats are supported, ' + toString(this.u5r_1) + ' is not supported.';
|
|
661
661
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
protoOf(KotlinxSerializationConverter).
|
|
664
|
+
protoOf(KotlinxSerializationConverter).j5s = function (contentType, charset, typeInfo, value, $completion) {
|
|
665
665
|
var tmp = new $serializeCOROUTINE$(this, contentType, charset, typeInfo, value, $completion);
|
|
666
|
-
tmp.
|
|
667
|
-
tmp.
|
|
668
|
-
return tmp.
|
|
666
|
+
tmp.f9_1 = Unit_instance;
|
|
667
|
+
tmp.g9_1 = null;
|
|
668
|
+
return tmp.l9();
|
|
669
669
|
};
|
|
670
|
-
protoOf(KotlinxSerializationConverter).
|
|
671
|
-
return this.
|
|
670
|
+
protoOf(KotlinxSerializationConverter).w5c = function (contentType, charset, typeInfo, value, $completion) {
|
|
671
|
+
return this.j5s(contentType, charset, typeInfo, value, $completion);
|
|
672
672
|
};
|
|
673
|
-
protoOf(KotlinxSerializationConverter).
|
|
673
|
+
protoOf(KotlinxSerializationConverter).u3b = function (charset, typeInfo, content, $completion) {
|
|
674
674
|
var tmp = new $deserializeCOROUTINE$(this, charset, typeInfo, content, $completion);
|
|
675
|
-
tmp.
|
|
676
|
-
tmp.
|
|
677
|
-
return tmp.
|
|
675
|
+
tmp.f9_1 = Unit_instance;
|
|
676
|
+
tmp.g9_1 = null;
|
|
677
|
+
return tmp.l9();
|
|
678
678
|
};
|
|
679
679
|
function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
|
|
680
680
|
var module_0 = _this__u8e3s4;
|
|
681
|
-
var tmp0_safe_receiver = typeInfo.
|
|
681
|
+
var tmp0_safe_receiver = typeInfo.s2p_1;
|
|
682
682
|
var tmp;
|
|
683
683
|
if (tmp0_safe_receiver == null) {
|
|
684
684
|
tmp = null;
|
|
685
685
|
} else {
|
|
686
686
|
// Inline function 'kotlin.let' call
|
|
687
687
|
var tmp_0;
|
|
688
|
-
if (tmp0_safe_receiver.
|
|
688
|
+
if (tmp0_safe_receiver.k().r()) {
|
|
689
689
|
tmp_0 = null;
|
|
690
690
|
} else {
|
|
691
691
|
tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
|
|
@@ -695,13 +695,13 @@
|
|
|
695
695
|
var tmp1_elvis_lhs = tmp;
|
|
696
696
|
var tmp_1;
|
|
697
697
|
if (tmp1_elvis_lhs == null) {
|
|
698
|
-
var tmp2_safe_receiver = module_0.
|
|
698
|
+
var tmp2_safe_receiver = module_0.f1y(typeInfo.r2p_1);
|
|
699
699
|
tmp_1 = tmp2_safe_receiver == null ? null : maybeNullable(tmp2_safe_receiver, typeInfo);
|
|
700
700
|
} else {
|
|
701
701
|
tmp_1 = tmp1_elvis_lhs;
|
|
702
702
|
}
|
|
703
703
|
var tmp3_elvis_lhs = tmp_1;
|
|
704
|
-
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.
|
|
704
|
+
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.r2p_1), typeInfo) : tmp3_elvis_lhs;
|
|
705
705
|
}
|
|
706
706
|
function guessSerializer(value, module_0) {
|
|
707
707
|
var tmp;
|
|
@@ -727,11 +727,11 @@
|
|
|
727
727
|
tmp = SetSerializer(elementSerializer(value, module_0));
|
|
728
728
|
} else {
|
|
729
729
|
if (isInterface(value, KtMap)) {
|
|
730
|
-
var keySerializer = elementSerializer(value.
|
|
731
|
-
var valueSerializer = elementSerializer(value.
|
|
730
|
+
var keySerializer = elementSerializer(value.b3(), module_0);
|
|
731
|
+
var valueSerializer = elementSerializer(value.c3(), module_0);
|
|
732
732
|
tmp = MapSerializer(keySerializer, valueSerializer);
|
|
733
733
|
} else {
|
|
734
|
-
var tmp3_elvis_lhs = module_0.
|
|
734
|
+
var tmp3_elvis_lhs = module_0.f1y(getKClassFromExpression(value));
|
|
735
735
|
tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
|
|
736
736
|
}
|
|
737
737
|
}
|
|
@@ -743,8 +743,8 @@
|
|
|
743
743
|
}
|
|
744
744
|
function maybeNullable(_this__u8e3s4, typeInfo) {
|
|
745
745
|
var tmp;
|
|
746
|
-
var tmp0_safe_receiver = typeInfo.
|
|
747
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
746
|
+
var tmp0_safe_receiver = typeInfo.s2p_1;
|
|
747
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
|
|
748
748
|
tmp = get_nullable(_this__u8e3s4);
|
|
749
749
|
} else {
|
|
750
750
|
tmp = _this__u8e3s4;
|
|
@@ -756,33 +756,33 @@
|
|
|
756
756
|
var this_0 = filterNotNull(_this__u8e3s4);
|
|
757
757
|
// Inline function 'kotlin.collections.mapTo' call
|
|
758
758
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
759
|
-
var _iterator__ex2g4s = this_0.
|
|
760
|
-
while (_iterator__ex2g4s.
|
|
761
|
-
var item = _iterator__ex2g4s.
|
|
759
|
+
var _iterator__ex2g4s = this_0.t();
|
|
760
|
+
while (_iterator__ex2g4s.u()) {
|
|
761
|
+
var item = _iterator__ex2g4s.v();
|
|
762
762
|
var tmp$ret$0 = guessSerializer(item, module_0);
|
|
763
|
-
destination.
|
|
763
|
+
destination.j1(tmp$ret$0);
|
|
764
764
|
}
|
|
765
765
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
766
766
|
var set = HashSet_init_$Create$();
|
|
767
767
|
var list = ArrayList_init_$Create$();
|
|
768
|
-
var _iterator__ex2g4s_0 = destination.
|
|
769
|
-
while (_iterator__ex2g4s_0.
|
|
770
|
-
var e = _iterator__ex2g4s_0.
|
|
771
|
-
var key = e.
|
|
772
|
-
if (set.
|
|
773
|
-
list.
|
|
768
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
769
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
770
|
+
var e = _iterator__ex2g4s_0.v();
|
|
771
|
+
var key = e.w1w().x1x();
|
|
772
|
+
if (set.j1(key)) {
|
|
773
|
+
list.j1(e);
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
var serializers = list;
|
|
777
|
-
if (serializers.
|
|
777
|
+
if (serializers.l1() > 1) {
|
|
778
778
|
// Inline function 'kotlin.collections.map' call
|
|
779
779
|
// Inline function 'kotlin.collections.mapTo' call
|
|
780
780
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
|
|
781
|
-
var _iterator__ex2g4s_1 = serializers.
|
|
782
|
-
while (_iterator__ex2g4s_1.
|
|
783
|
-
var item_0 = _iterator__ex2g4s_1.
|
|
784
|
-
var tmp$ret$5 = item_0.
|
|
785
|
-
destination_0.
|
|
781
|
+
var _iterator__ex2g4s_1 = serializers.t();
|
|
782
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
783
|
+
var item_0 = _iterator__ex2g4s_1.v();
|
|
784
|
+
var tmp$ret$5 = item_0.w1w().x1x();
|
|
785
|
+
destination_0.j1(tmp$ret$5);
|
|
786
786
|
}
|
|
787
787
|
// Inline function 'kotlin.error' call
|
|
788
788
|
var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + toString(destination_0));
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
}
|
|
791
791
|
var tmp0_elvis_lhs = singleOrNull(serializers);
|
|
792
792
|
var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
|
|
793
|
-
if (selected.
|
|
793
|
+
if (selected.w1w().j1y()) {
|
|
794
794
|
return selected;
|
|
795
795
|
}
|
|
796
796
|
if (!isInterface(selected, KSerializer))
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
// Inline function 'kotlin.collections.any' call
|
|
801
801
|
var tmp;
|
|
802
802
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
803
|
-
tmp = _this__u8e3s4.
|
|
803
|
+
tmp = _this__u8e3s4.r();
|
|
804
804
|
} else {
|
|
805
805
|
tmp = false;
|
|
806
806
|
}
|
|
@@ -808,9 +808,9 @@
|
|
|
808
808
|
tmp$ret$8 = false;
|
|
809
809
|
break $l$block_0;
|
|
810
810
|
}
|
|
811
|
-
var _iterator__ex2g4s_2 = _this__u8e3s4.
|
|
812
|
-
while (_iterator__ex2g4s_2.
|
|
813
|
-
var element = _iterator__ex2g4s_2.
|
|
811
|
+
var _iterator__ex2g4s_2 = _this__u8e3s4.t();
|
|
812
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
813
|
+
var element = _iterator__ex2g4s_2.v();
|
|
814
814
|
if (element == null) {
|
|
815
815
|
tmp$ret$8 = true;
|
|
816
816
|
break $l$block_0;
|