client_plugin_logic_deb 1.8.360 → 1.8.364
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 +95 -95
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +809 -806
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2092 -2031
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +42 -15
- package/Logic_Debertz-client_plugin.js +5154 -5573
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2334 -2386
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +24597 -24359
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +13756 -14963
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1937 -1991
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5916 -5864
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +66 -62
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +4148 -4179
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +497 -481
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2660 -2656
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1805 -1793
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +262 -269
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2677 -2753
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +581 -606
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +13 -13
- package/ktor-ktor-http.js +996 -992
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2028 -2022
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/ktor-ktor-serialization-kotlinx.js +300 -316
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +138 -146
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +851 -861
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +61 -61
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/random-library-crypto-rand.js +31 -31
- package/random-library-crypto-rand.js.map +1 -1
- package/random-library-secure-random.js +10 -10
- package/random-library-secure-random.js.map +1 -1
- package/raspberry-cardgame-lib-core.js +393 -396
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +119 -119
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1167 -1194
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +39 -39
- package/uuid.js.map +1 -1
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
32
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
33
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
34
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.md;
|
|
31
|
+
var initMetadataForClass = kotlin_kotlin.$_$.mc;
|
|
32
|
+
var CoroutineImpl = kotlin_kotlin.$_$.sa;
|
|
33
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
34
|
+
var THROW_CCE = kotlin_kotlin.$_$.qh;
|
|
35
35
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
36
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
38
|
-
var VOID = kotlin_kotlin.$_$.
|
|
36
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.da;
|
|
37
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.qc;
|
|
38
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
39
39
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
40
40
|
var contentType = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
41
41
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
42
|
-
var plus = kotlin_kotlin.$_$.
|
|
43
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
44
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
+
var plus = kotlin_kotlin.$_$.r8;
|
|
43
|
+
var toMutableSet = kotlin_kotlin.$_$.u9;
|
|
44
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
45
45
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
46
46
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
47
47
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
@@ -49,39 +49,39 @@
|
|
|
49
49
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
50
50
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
51
51
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
52
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
53
|
-
var toString = kotlin_kotlin.$_$.
|
|
52
|
+
var initMetadataForObject = kotlin_kotlin.$_$.rc;
|
|
53
|
+
var toString = kotlin_kotlin.$_$.pd;
|
|
54
54
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
55
55
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
56
|
-
var Collection = kotlin_kotlin.$_$.
|
|
57
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
+
var Collection = kotlin_kotlin.$_$.i5;
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.ad;
|
|
58
58
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
59
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
59
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.ge;
|
|
60
60
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
61
61
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
62
|
-
var Unit = kotlin_kotlin.$_$.
|
|
62
|
+
var Unit = kotlin_kotlin.$_$.bi;
|
|
63
63
|
var charset = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
64
64
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
65
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
65
|
+
var ensureNotNull = kotlin_kotlin.$_$.hi;
|
|
66
66
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
69
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
67
|
+
var equals = kotlin_kotlin.$_$.fc;
|
|
68
|
+
var joinToString = kotlin_kotlin.$_$.y7;
|
|
69
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.oc;
|
|
70
70
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
71
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
72
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
71
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.k6;
|
|
72
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
73
73
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
74
|
-
var Exception = kotlin_kotlin.$_$.
|
|
75
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
76
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
74
|
+
var Exception = kotlin_kotlin.$_$.hh;
|
|
75
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.f1;
|
|
76
|
+
var captureStack = kotlin_kotlin.$_$.wb;
|
|
77
77
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
78
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
78
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.t4;
|
|
79
79
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.s;
|
|
80
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
81
|
-
var setOf = kotlin_kotlin.$_$.
|
|
82
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
83
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
84
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
80
|
+
var getKClass = kotlin_kotlin.$_$.he;
|
|
81
|
+
var setOf = kotlin_kotlin.$_$.b9;
|
|
82
|
+
var startsWith = kotlin_kotlin.$_$.wf;
|
|
83
|
+
var endsWith = kotlin_kotlin.$_$.ze;
|
|
84
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
85
85
|
//endregion
|
|
86
86
|
//region block: pre-declaration
|
|
87
87
|
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
@@ -107,61 +107,60 @@
|
|
|
107
107
|
}
|
|
108
108
|
var DefaultCommonIgnoredTypes;
|
|
109
109
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
110
|
+
this.p5b_1 = converter;
|
|
111
|
+
this.q5b_1 = contentTypeToSend;
|
|
112
|
+
this.r5b_1 = contentTypeMatcher;
|
|
113
113
|
}
|
|
114
114
|
function defaultMatcher($this, pattern) {
|
|
115
115
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
116
116
|
}
|
|
117
117
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
118
|
-
this.
|
|
118
|
+
this.s5b_1 = $pattern;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
121
|
-
return contentType.
|
|
120
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).t5b = function (contentType) {
|
|
121
|
+
return contentType.l3h(this.s5b_1);
|
|
122
122
|
};
|
|
123
123
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
124
|
-
this.
|
|
124
|
+
this.c5c_1 = $plugin;
|
|
125
125
|
CoroutineImpl.call(this, resultContinuation);
|
|
126
126
|
}
|
|
127
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
128
|
-
var tmp = this.
|
|
129
|
-
tmp.
|
|
130
|
-
tmp.
|
|
131
|
-
return tmp.
|
|
127
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).i3t = function ($this$intercept, it, $completion) {
|
|
128
|
+
var tmp = this.j3t($this$intercept, it, $completion);
|
|
129
|
+
tmp.t8_1 = Unit_instance;
|
|
130
|
+
tmp.u8_1 = null;
|
|
131
|
+
return tmp.z8();
|
|
132
132
|
};
|
|
133
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
133
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).i9 = function (p1, p2, $completion) {
|
|
134
134
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
135
|
-
return this.
|
|
135
|
+
return this.i3t(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
136
136
|
};
|
|
137
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
138
|
-
var suspendResult = this.
|
|
137
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).z8 = function () {
|
|
138
|
+
var suspendResult = this.t8_1;
|
|
139
139
|
$sm: do
|
|
140
140
|
try {
|
|
141
|
-
var tmp = this.
|
|
141
|
+
var tmp = this.r8_1;
|
|
142
142
|
switch (tmp) {
|
|
143
143
|
case 0:
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
suspendResult = this.
|
|
144
|
+
this.s8_1 = 3;
|
|
145
|
+
this.r8_1 = 1;
|
|
146
|
+
suspendResult = this.c5c_1.h5c(this.d5c_1.r3e_1, this.d5c_1.u3d(), this);
|
|
147
147
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
148
148
|
return suspendResult;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
continue $sm;
|
|
152
152
|
case 1:
|
|
153
|
-
|
|
154
|
-
var tmp_0
|
|
155
|
-
|
|
156
|
-
if (this.u4e_1 == null) {
|
|
153
|
+
var tmp0_elvis_lhs = suspendResult;
|
|
154
|
+
var tmp_0;
|
|
155
|
+
if (tmp0_elvis_lhs == null) {
|
|
157
156
|
return Unit_instance;
|
|
158
157
|
} else {
|
|
159
|
-
|
|
158
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
160
159
|
}
|
|
161
160
|
|
|
162
|
-
|
|
163
|
-
this.
|
|
164
|
-
suspendResult = this.
|
|
161
|
+
var result = tmp_0;
|
|
162
|
+
this.r8_1 = 2;
|
|
163
|
+
suspendResult = this.d5c_1.v3d(result, this);
|
|
165
164
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
166
165
|
return suspendResult;
|
|
167
166
|
}
|
|
@@ -170,91 +169,89 @@
|
|
|
170
169
|
case 2:
|
|
171
170
|
return Unit_instance;
|
|
172
171
|
case 3:
|
|
173
|
-
throw this.
|
|
172
|
+
throw this.u8_1;
|
|
174
173
|
}
|
|
175
174
|
} catch ($p) {
|
|
176
175
|
var e = $p;
|
|
177
|
-
if (this.
|
|
176
|
+
if (this.s8_1 === 3) {
|
|
178
177
|
throw e;
|
|
179
178
|
} else {
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
179
|
+
this.r8_1 = this.s8_1;
|
|
180
|
+
this.u8_1 = e;
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
183
|
while (true);
|
|
185
184
|
};
|
|
186
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
187
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
188
|
-
i.
|
|
189
|
-
i.
|
|
185
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).j3t = function ($this$intercept, it, completion) {
|
|
186
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.c5c_1, completion);
|
|
187
|
+
i.d5c_1 = $this$intercept;
|
|
188
|
+
i.e5c_1 = it;
|
|
190
189
|
return i;
|
|
191
190
|
};
|
|
192
191
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
193
192
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
194
193
|
var l = function ($this$intercept, it, $completion) {
|
|
195
|
-
return i.
|
|
194
|
+
return i.i3t($this$intercept, it, $completion);
|
|
196
195
|
};
|
|
197
196
|
l.$arity = 2;
|
|
198
197
|
return l;
|
|
199
198
|
}
|
|
200
199
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
201
|
-
this.
|
|
200
|
+
this.q5c_1 = $plugin;
|
|
202
201
|
CoroutineImpl.call(this, resultContinuation);
|
|
203
202
|
}
|
|
204
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
205
|
-
var tmp = this.
|
|
206
|
-
tmp.
|
|
207
|
-
tmp.
|
|
208
|
-
return tmp.
|
|
203
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).c3u = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
204
|
+
var tmp = this.d3u($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
205
|
+
tmp.t8_1 = Unit_instance;
|
|
206
|
+
tmp.u8_1 = null;
|
|
207
|
+
return tmp.z8();
|
|
209
208
|
};
|
|
210
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
209
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).i9 = function (p1, p2, $completion) {
|
|
211
210
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
212
|
-
return this.
|
|
211
|
+
return this.c3u(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
213
212
|
};
|
|
214
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
215
|
-
var suspendResult = this.
|
|
213
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).z8 = function () {
|
|
214
|
+
var suspendResult = this.t8_1;
|
|
216
215
|
$sm: do
|
|
217
216
|
try {
|
|
218
|
-
var tmp = this.
|
|
217
|
+
var tmp = this.r8_1;
|
|
219
218
|
switch (tmp) {
|
|
220
219
|
case 0:
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
223
|
-
|
|
224
|
-
var
|
|
225
|
-
var
|
|
226
|
-
var tmp_1;
|
|
220
|
+
this.s8_1 = 3;
|
|
221
|
+
this.t5c_1 = this.s5c_1.ne();
|
|
222
|
+
var body = this.s5c_1.oe();
|
|
223
|
+
var tmp0_elvis_lhs = contentType(this.r5c_1.r3e_1.p3t());
|
|
224
|
+
var tmp_0;
|
|
227
225
|
if (tmp0_elvis_lhs == null) {
|
|
228
|
-
this.
|
|
229
|
-
get_LOGGER().
|
|
226
|
+
this.r5c_1;
|
|
227
|
+
get_LOGGER().n3f('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
230
228
|
return Unit_instance;
|
|
231
229
|
} else {
|
|
232
|
-
|
|
230
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
233
231
|
}
|
|
234
232
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
this.
|
|
238
|
-
suspendResult = this.
|
|
233
|
+
var contentType_0 = tmp_0;
|
|
234
|
+
var charset = suitableCharset(this.r5c_1.r3e_1.v3w().t3l());
|
|
235
|
+
this.r8_1 = 1;
|
|
236
|
+
suspendResult = this.q5c_1.u5c(this.r5c_1.r3e_1.v3w().y3w(), this.t5c_1, body, contentType_0, charset, this);
|
|
239
237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
240
238
|
return suspendResult;
|
|
241
239
|
}
|
|
242
240
|
|
|
243
241
|
continue $sm;
|
|
244
242
|
case 1:
|
|
245
|
-
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
if (this.o4f_1 == null) {
|
|
243
|
+
var tmp1_elvis_lhs = suspendResult;
|
|
244
|
+
var tmp_1;
|
|
245
|
+
if (tmp1_elvis_lhs == null) {
|
|
249
246
|
return Unit_instance;
|
|
250
247
|
} else {
|
|
251
|
-
|
|
248
|
+
tmp_1 = tmp1_elvis_lhs;
|
|
252
249
|
}
|
|
253
250
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
this.
|
|
257
|
-
suspendResult = this.
|
|
251
|
+
var deserializedBody = tmp_1;
|
|
252
|
+
var result = new HttpResponseContainer(this.t5c_1, deserializedBody);
|
|
253
|
+
this.r8_1 = 2;
|
|
254
|
+
suspendResult = this.r5c_1.v3d(result, this);
|
|
258
255
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
259
256
|
return suspendResult;
|
|
260
257
|
}
|
|
@@ -263,74 +260,74 @@
|
|
|
263
260
|
case 2:
|
|
264
261
|
return Unit_instance;
|
|
265
262
|
case 3:
|
|
266
|
-
throw this.
|
|
263
|
+
throw this.u8_1;
|
|
267
264
|
}
|
|
268
265
|
} catch ($p) {
|
|
269
266
|
var e = $p;
|
|
270
|
-
if (this.
|
|
267
|
+
if (this.s8_1 === 3) {
|
|
271
268
|
throw e;
|
|
272
269
|
} else {
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
270
|
+
this.r8_1 = this.s8_1;
|
|
271
|
+
this.u8_1 = e;
|
|
275
272
|
}
|
|
276
273
|
}
|
|
277
274
|
while (true);
|
|
278
275
|
};
|
|
279
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
280
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
281
|
-
i.
|
|
282
|
-
i.
|
|
276
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).d3u = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
277
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.q5c_1, completion);
|
|
278
|
+
i.r5c_1 = $this$intercept;
|
|
279
|
+
i.s5c_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
283
280
|
return i;
|
|
284
281
|
};
|
|
285
282
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
286
283
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
287
284
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
288
|
-
return i.
|
|
285
|
+
return i.c3u($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
289
286
|
};
|
|
290
287
|
l.$arity = 2;
|
|
291
288
|
return l;
|
|
292
289
|
}
|
|
293
290
|
function Config() {
|
|
294
|
-
this.
|
|
291
|
+
this.v5c_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
295
292
|
var tmp = this;
|
|
296
293
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
297
|
-
tmp.
|
|
294
|
+
tmp.w5c_1 = ArrayList_init_$Create$();
|
|
298
295
|
}
|
|
299
|
-
protoOf(Config).
|
|
300
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
301
|
-
this.
|
|
296
|
+
protoOf(Config).k59 = function (contentType, converter, configuration) {
|
|
297
|
+
var matcher = contentType.equals(Application_getInstance().e3g_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
298
|
+
this.x5c(contentType, converter, matcher, configuration);
|
|
302
299
|
};
|
|
303
|
-
protoOf(Config).
|
|
300
|
+
protoOf(Config).x5c = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
304
301
|
// Inline function 'kotlin.apply' call
|
|
305
302
|
configuration(converter);
|
|
306
303
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
307
|
-
this.
|
|
304
|
+
this.w5c_1.j(registration);
|
|
308
305
|
};
|
|
309
306
|
function Plugin() {
|
|
310
307
|
Plugin_instance = this;
|
|
311
|
-
this.
|
|
308
|
+
this.y5c_1 = new AttributeKey('ContentNegotiation');
|
|
312
309
|
}
|
|
313
|
-
protoOf(Plugin).
|
|
314
|
-
return this.
|
|
310
|
+
protoOf(Plugin).v = function () {
|
|
311
|
+
return this.y5c_1;
|
|
315
312
|
};
|
|
316
|
-
protoOf(Plugin).
|
|
313
|
+
protoOf(Plugin).z5c = function (block) {
|
|
317
314
|
// Inline function 'kotlin.apply' call
|
|
318
315
|
var this_0 = new Config();
|
|
319
316
|
block(this_0);
|
|
320
317
|
var config = this_0;
|
|
321
|
-
return new ContentNegotiation(config.
|
|
318
|
+
return new ContentNegotiation(config.w5c_1, config.v5c_1);
|
|
322
319
|
};
|
|
323
|
-
protoOf(Plugin).
|
|
324
|
-
return this.
|
|
320
|
+
protoOf(Plugin).t3v = function (block) {
|
|
321
|
+
return this.z5c(block);
|
|
325
322
|
};
|
|
326
|
-
protoOf(Plugin).
|
|
327
|
-
var tmp = Phases_getInstance().
|
|
328
|
-
scope.
|
|
329
|
-
var tmp_0 = Phases_getInstance_0().
|
|
330
|
-
scope.
|
|
323
|
+
protoOf(Plugin).a5d = function (plugin, scope) {
|
|
324
|
+
var tmp = Phases_getInstance().e41_1;
|
|
325
|
+
scope.p3s_1.v3e(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
326
|
+
var tmp_0 = Phases_getInstance_0().o3v_1;
|
|
327
|
+
scope.q3s_1.v3e(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
331
328
|
};
|
|
332
|
-
protoOf(Plugin).
|
|
333
|
-
return this.
|
|
329
|
+
protoOf(Plugin).u3v = function (plugin, scope) {
|
|
330
|
+
return this.a5d(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
334
331
|
};
|
|
335
332
|
var Plugin_instance;
|
|
336
333
|
function Plugin_getInstance() {
|
|
@@ -339,46 +336,46 @@
|
|
|
339
336
|
return Plugin_instance;
|
|
340
337
|
}
|
|
341
338
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
342
|
-
return toString(it.
|
|
339
|
+
return toString(it.p5b_1);
|
|
343
340
|
}
|
|
344
341
|
function $convertRequestCOROUTINE$(_this__u8e3s4, request, body, resultContinuation) {
|
|
345
342
|
CoroutineImpl.call(this, resultContinuation);
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
343
|
+
this.j5d_1 = _this__u8e3s4;
|
|
344
|
+
this.k5d_1 = request;
|
|
345
|
+
this.l5d_1 = body;
|
|
349
346
|
}
|
|
350
|
-
protoOf($convertRequestCOROUTINE$).
|
|
351
|
-
var suspendResult = this.
|
|
347
|
+
protoOf($convertRequestCOROUTINE$).z8 = function () {
|
|
348
|
+
var suspendResult = this.t8_1;
|
|
352
349
|
$sm: do
|
|
353
350
|
try {
|
|
354
|
-
var tmp = this.
|
|
351
|
+
var tmp = this.r8_1;
|
|
355
352
|
switch (tmp) {
|
|
356
353
|
case 0:
|
|
357
|
-
this.
|
|
358
|
-
var _iterator__ex2g4s = this.
|
|
359
|
-
while (_iterator__ex2g4s.
|
|
360
|
-
var element = _iterator__ex2g4s.
|
|
354
|
+
this.s8_1 = 7;
|
|
355
|
+
var _iterator__ex2g4s = this.j5d_1.f5c_1.l();
|
|
356
|
+
while (_iterator__ex2g4s.m()) {
|
|
357
|
+
var element = _iterator__ex2g4s.n();
|
|
361
358
|
l$ret$1: do {
|
|
362
|
-
get_LOGGER().
|
|
363
|
-
if (this.
|
|
359
|
+
get_LOGGER().n3f('Adding Accept=' + element.q5b_1.h3h_1 + ' header for ' + this.k5d_1.o3u_1.toString());
|
|
360
|
+
if (this.k5d_1.q3u_1.u3b(HttpHeaders_getInstance().p3h_1, element.q5b_1.toString())) {
|
|
364
361
|
break l$ret$1;
|
|
365
362
|
}
|
|
366
|
-
accept(this.
|
|
363
|
+
accept(this.k5d_1, element.q5b_1);
|
|
367
364
|
}
|
|
368
365
|
while (false);
|
|
369
366
|
}
|
|
370
367
|
|
|
371
368
|
var tmp_0;
|
|
372
|
-
var tmp_1 = this.
|
|
369
|
+
var tmp_1 = this.l5d_1;
|
|
373
370
|
if (tmp_1 instanceof OutgoingContent) {
|
|
374
371
|
tmp_0 = true;
|
|
375
372
|
} else {
|
|
376
|
-
var tmp0 = this.
|
|
373
|
+
var tmp0 = this.j5d_1.g5c_1;
|
|
377
374
|
var tmp$ret$2;
|
|
378
375
|
l$ret$3: do {
|
|
379
376
|
var tmp_2;
|
|
380
377
|
if (isInterface(tmp0, Collection)) {
|
|
381
|
-
tmp_2 = tmp0.
|
|
378
|
+
tmp_2 = tmp0.q();
|
|
382
379
|
} else {
|
|
383
380
|
tmp_2 = false;
|
|
384
381
|
}
|
|
@@ -386,10 +383,10 @@
|
|
|
386
383
|
tmp$ret$2 = false;
|
|
387
384
|
break l$ret$3;
|
|
388
385
|
}
|
|
389
|
-
var _iterator__ex2g4s_0 = tmp0.
|
|
390
|
-
while (_iterator__ex2g4s_0.
|
|
391
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
392
|
-
if (element_0.
|
|
386
|
+
var _iterator__ex2g4s_0 = tmp0.l();
|
|
387
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
388
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
389
|
+
if (element_0.ea(this.l5d_1)) {
|
|
393
390
|
tmp$ret$2 = true;
|
|
394
391
|
break l$ret$3;
|
|
395
392
|
}
|
|
@@ -401,42 +398,42 @@
|
|
|
401
398
|
}
|
|
402
399
|
|
|
403
400
|
if (tmp_0) {
|
|
404
|
-
get_LOGGER().
|
|
401
|
+
get_LOGGER().n3f('Body type ' + toString(getKClassFromExpression(this.l5d_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.k5d_1.o3u_1.toString() + '.'));
|
|
405
402
|
return null;
|
|
406
403
|
}
|
|
407
404
|
|
|
408
405
|
var tmp_3 = this;
|
|
409
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
406
|
+
var tmp0_elvis_lhs = contentType_0(this.k5d_1);
|
|
410
407
|
var tmp_4;
|
|
411
408
|
if (tmp0_elvis_lhs == null) {
|
|
412
|
-
this.
|
|
413
|
-
get_LOGGER().
|
|
409
|
+
this.j5d_1;
|
|
410
|
+
get_LOGGER().n3f("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.k5d_1.o3u_1.toString() + '.');
|
|
414
411
|
return null;
|
|
415
412
|
} else {
|
|
416
413
|
tmp_4 = tmp0_elvis_lhs;
|
|
417
414
|
}
|
|
418
415
|
|
|
419
|
-
tmp_3.
|
|
420
|
-
var tmp_5 = this.
|
|
416
|
+
tmp_3.n5d_1 = tmp_4;
|
|
417
|
+
var tmp_5 = this.l5d_1;
|
|
421
418
|
if (tmp_5 instanceof Unit) {
|
|
422
|
-
get_LOGGER().
|
|
423
|
-
this.
|
|
419
|
+
get_LOGGER().n3f('Sending empty body for ' + this.k5d_1.o3u_1.toString());
|
|
420
|
+
this.k5d_1.q3u_1.b3c(HttpHeaders_getInstance().h3i_1);
|
|
424
421
|
return EmptyContent_getInstance();
|
|
425
422
|
}
|
|
426
423
|
|
|
427
424
|
var tmp_6 = this;
|
|
428
|
-
var tmp0_0 = this.
|
|
425
|
+
var tmp0_0 = this.j5d_1.f5c_1;
|
|
429
426
|
var destination = ArrayList_init_$Create$();
|
|
430
|
-
var _iterator__ex2g4s_1 = tmp0_0.
|
|
431
|
-
while (_iterator__ex2g4s_1.
|
|
432
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
433
|
-
if (element_1.
|
|
434
|
-
destination.
|
|
427
|
+
var _iterator__ex2g4s_1 = tmp0_0.l();
|
|
428
|
+
while (_iterator__ex2g4s_1.m()) {
|
|
429
|
+
var element_1 = _iterator__ex2g4s_1.n();
|
|
430
|
+
if (element_1.r5b_1.t5b(this.n5d_1)) {
|
|
431
|
+
destination.j(element_1);
|
|
435
432
|
}
|
|
436
433
|
}
|
|
437
434
|
|
|
438
435
|
var tmp_7;
|
|
439
|
-
if (!destination.
|
|
436
|
+
if (!destination.q()) {
|
|
440
437
|
tmp_7 = destination;
|
|
441
438
|
} else {
|
|
442
439
|
tmp_7 = null;
|
|
@@ -445,52 +442,49 @@
|
|
|
445
442
|
var tmp1_elvis_lhs = tmp_7;
|
|
446
443
|
var tmp_8;
|
|
447
444
|
if (tmp1_elvis_lhs == null) {
|
|
448
|
-
this.
|
|
449
|
-
get_LOGGER().
|
|
445
|
+
this.j5d_1;
|
|
446
|
+
get_LOGGER().n3f('None of the registered converters match request Content-Type=' + this.n5d_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.k5d_1.o3u_1.toString() + '.'));
|
|
450
447
|
return null;
|
|
451
448
|
} else {
|
|
452
449
|
tmp_8 = tmp1_elvis_lhs;
|
|
453
450
|
}
|
|
454
451
|
|
|
455
|
-
tmp_6.
|
|
456
|
-
if (this.
|
|
457
|
-
get_LOGGER().
|
|
452
|
+
tmp_6.m5d_1 = tmp_8;
|
|
453
|
+
if (this.k5d_1.e4h() == null) {
|
|
454
|
+
get_LOGGER().n3f('Request has unknown body type. Skipping ContentNegotiation for ' + this.k5d_1.o3u_1.toString() + '.');
|
|
458
455
|
return null;
|
|
459
456
|
}
|
|
460
457
|
|
|
461
|
-
this.
|
|
458
|
+
this.k5d_1.q3u_1.b3c(HttpHeaders_getInstance().h3i_1);
|
|
462
459
|
var tmp_9 = this;
|
|
463
|
-
tmp_9.
|
|
464
|
-
this.
|
|
460
|
+
tmp_9.r5d_1 = this.m5d_1;
|
|
461
|
+
this.r8_1 = 1;
|
|
465
462
|
continue $sm;
|
|
466
463
|
case 1:
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
469
|
-
this.l9_1 = 2;
|
|
464
|
+
this.q5d_1 = this.r5d_1.l();
|
|
465
|
+
this.r8_1 = 2;
|
|
470
466
|
continue $sm;
|
|
471
467
|
case 2:
|
|
472
|
-
if (!this.
|
|
473
|
-
this.
|
|
468
|
+
if (!this.q5d_1.m()) {
|
|
469
|
+
this.r8_1 = 5;
|
|
474
470
|
continue $sm;
|
|
475
471
|
}
|
|
476
472
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
var
|
|
483
|
-
var
|
|
484
|
-
var tmp_12
|
|
485
|
-
var this_0 = this.i4g_1;
|
|
486
|
-
var tmp_13;
|
|
473
|
+
var element_2 = this.q5d_1.n();
|
|
474
|
+
this.p5d_1 = element_2;
|
|
475
|
+
this.r8_1 = 3;
|
|
476
|
+
var tmp0_elvis_lhs_0 = charset(this.n5d_1);
|
|
477
|
+
var tmp_10 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().w33_1 : tmp0_elvis_lhs_0;
|
|
478
|
+
var tmp_11 = ensureNotNull(this.k5d_1.e4h());
|
|
479
|
+
var this_0 = this.l5d_1;
|
|
480
|
+
var tmp_12;
|
|
487
481
|
if (!equals(this_0, NullBody_instance)) {
|
|
488
|
-
|
|
482
|
+
tmp_12 = this_0;
|
|
489
483
|
} else {
|
|
490
|
-
|
|
484
|
+
tmp_12 = null;
|
|
491
485
|
}
|
|
492
486
|
|
|
493
|
-
suspendResult = this.
|
|
487
|
+
suspendResult = this.p5d_1.p5b_1.n59(this.n5d_1, tmp_10, tmp_11, tmp_12, this);
|
|
494
488
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
495
489
|
return suspendResult;
|
|
496
490
|
}
|
|
@@ -499,123 +493,122 @@
|
|
|
499
493
|
case 3:
|
|
500
494
|
var result = suspendResult;
|
|
501
495
|
if (!(result == null)) {
|
|
502
|
-
get_LOGGER().
|
|
496
|
+
get_LOGGER().n3f('Converted request body using ' + toString(this.p5d_1.p5b_1) + ' for ' + this.k5d_1.o3u_1.toString());
|
|
503
497
|
}
|
|
504
498
|
|
|
505
499
|
var result_0 = result;
|
|
506
500
|
if (!(result_0 == null)) {
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
501
|
+
this.o5d_1 = result_0;
|
|
502
|
+
this.r8_1 = 6;
|
|
509
503
|
continue $sm;
|
|
510
504
|
} else {
|
|
511
|
-
this.
|
|
505
|
+
this.r8_1 = 4;
|
|
512
506
|
continue $sm;
|
|
513
507
|
}
|
|
514
508
|
|
|
515
509
|
case 4:
|
|
516
|
-
this.
|
|
510
|
+
this.r8_1 = 2;
|
|
517
511
|
continue $sm;
|
|
518
512
|
case 5:
|
|
519
|
-
this.
|
|
513
|
+
this.o5d_1 = null;
|
|
520
514
|
if (false) {
|
|
521
|
-
this.
|
|
515
|
+
this.r8_1 = 1;
|
|
522
516
|
continue $sm;
|
|
523
517
|
}
|
|
524
518
|
|
|
525
|
-
this.
|
|
519
|
+
this.r8_1 = 6;
|
|
526
520
|
continue $sm;
|
|
527
521
|
case 6:
|
|
528
|
-
var tmp2_elvis_lhs = this.
|
|
529
|
-
var
|
|
522
|
+
var tmp2_elvis_lhs = this.o5d_1;
|
|
523
|
+
var tmp_13;
|
|
530
524
|
if (tmp2_elvis_lhs == null) {
|
|
531
|
-
var
|
|
532
|
-
throw new ContentConverterException(
|
|
525
|
+
var tmp_14 = "Can't convert " + toString(this.l5d_1) + ' with contentType ' + this.n5d_1.toString() + ' using converters ';
|
|
526
|
+
throw new ContentConverterException(tmp_14 + joinToString(this.m5d_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
533
527
|
} else {
|
|
534
|
-
|
|
528
|
+
tmp_13 = tmp2_elvis_lhs;
|
|
535
529
|
}
|
|
536
530
|
|
|
537
|
-
var serializedContent =
|
|
531
|
+
var serializedContent = tmp_13;
|
|
538
532
|
return serializedContent;
|
|
539
533
|
case 7:
|
|
540
|
-
throw this.
|
|
534
|
+
throw this.u8_1;
|
|
541
535
|
}
|
|
542
536
|
} catch ($p) {
|
|
543
537
|
var e = $p;
|
|
544
|
-
if (this.
|
|
538
|
+
if (this.s8_1 === 7) {
|
|
545
539
|
throw e;
|
|
546
540
|
} else {
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
541
|
+
this.r8_1 = this.s8_1;
|
|
542
|
+
this.u8_1 = e;
|
|
549
543
|
}
|
|
550
544
|
}
|
|
551
545
|
while (true);
|
|
552
546
|
};
|
|
553
547
|
function $convertResponseCOROUTINE$(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
554
548
|
CoroutineImpl.call(this, resultContinuation);
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
549
|
+
this.a5e_1 = _this__u8e3s4;
|
|
550
|
+
this.b5e_1 = requestUrl;
|
|
551
|
+
this.c5e_1 = info;
|
|
552
|
+
this.d5e_1 = body;
|
|
553
|
+
this.e5e_1 = responseContentType;
|
|
554
|
+
this.f5e_1 = charset;
|
|
561
555
|
}
|
|
562
|
-
protoOf($convertResponseCOROUTINE$).
|
|
563
|
-
var suspendResult = this.
|
|
556
|
+
protoOf($convertResponseCOROUTINE$).z8 = function () {
|
|
557
|
+
var suspendResult = this.t8_1;
|
|
564
558
|
$sm: do
|
|
565
559
|
try {
|
|
566
|
-
var tmp = this.
|
|
560
|
+
var tmp = this.r8_1;
|
|
567
561
|
switch (tmp) {
|
|
568
562
|
case 0:
|
|
569
|
-
this.
|
|
570
|
-
var tmp_0 = this.
|
|
563
|
+
this.s8_1 = 2;
|
|
564
|
+
var tmp_0 = this.d5e_1;
|
|
571
565
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
572
|
-
get_LOGGER().
|
|
566
|
+
get_LOGGER().n3f('Response body is already transformed. Skipping ContentNegotiation for ' + this.b5e_1.toString() + '.');
|
|
573
567
|
return null;
|
|
574
568
|
}
|
|
575
569
|
|
|
576
|
-
if (this.
|
|
577
|
-
get_LOGGER().
|
|
570
|
+
if (this.a5e_1.g5c_1.t1(this.c5e_1.i3f_1)) {
|
|
571
|
+
get_LOGGER().n3f('Response body type ' + toString(this.c5e_1.i3f_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.b5e_1.toString() + '.'));
|
|
578
572
|
return null;
|
|
579
573
|
}
|
|
580
574
|
|
|
581
|
-
var
|
|
582
|
-
var tmp0 = this.a4h_1.w4e_1;
|
|
575
|
+
var tmp0 = this.a5e_1.f5c_1;
|
|
583
576
|
var destination = ArrayList_init_$Create$();
|
|
584
|
-
var _iterator__ex2g4s = tmp0.
|
|
585
|
-
while (_iterator__ex2g4s.
|
|
586
|
-
var element = _iterator__ex2g4s.
|
|
587
|
-
if (element.
|
|
588
|
-
destination.
|
|
577
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
578
|
+
while (_iterator__ex2g4s.m()) {
|
|
579
|
+
var element = _iterator__ex2g4s.n();
|
|
580
|
+
if (element.r5b_1.t5b(this.e5e_1)) {
|
|
581
|
+
destination.j(element);
|
|
589
582
|
}
|
|
590
583
|
}
|
|
591
584
|
|
|
592
585
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
593
|
-
var _iterator__ex2g4s_0 = destination.
|
|
594
|
-
while (_iterator__ex2g4s_0.
|
|
595
|
-
var item = _iterator__ex2g4s_0.
|
|
596
|
-
destination_0.
|
|
586
|
+
var _iterator__ex2g4s_0 = destination.l();
|
|
587
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
588
|
+
var item = _iterator__ex2g4s_0.n();
|
|
589
|
+
destination_0.j(item.p5b_1);
|
|
597
590
|
}
|
|
598
591
|
|
|
599
|
-
var
|
|
600
|
-
if (!destination_0.
|
|
601
|
-
|
|
592
|
+
var tmp_1;
|
|
593
|
+
if (!destination_0.q()) {
|
|
594
|
+
tmp_1 = destination_0;
|
|
602
595
|
} else {
|
|
603
|
-
|
|
596
|
+
tmp_1 = null;
|
|
604
597
|
}
|
|
605
598
|
|
|
606
|
-
var tmp0_elvis_lhs =
|
|
607
|
-
var
|
|
599
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
600
|
+
var tmp_2;
|
|
608
601
|
if (tmp0_elvis_lhs == null) {
|
|
609
|
-
this.
|
|
610
|
-
get_LOGGER().
|
|
602
|
+
this.a5e_1;
|
|
603
|
+
get_LOGGER().n3f('None of the registered converters match response with Content-Type=' + this.e5e_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.b5e_1.toString() + '.'));
|
|
611
604
|
return null;
|
|
612
605
|
} else {
|
|
613
|
-
|
|
606
|
+
tmp_2 = tmp0_elvis_lhs;
|
|
614
607
|
}
|
|
615
608
|
|
|
616
|
-
|
|
617
|
-
this.
|
|
618
|
-
suspendResult = deserialize(
|
|
609
|
+
var suitableConverters = tmp_2;
|
|
610
|
+
this.r8_1 = 1;
|
|
611
|
+
suspendResult = deserialize(suitableConverters, this.d5e_1, this.c5e_1, this.f5e_1, this);
|
|
619
612
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
620
613
|
return suspendResult;
|
|
621
614
|
}
|
|
@@ -624,40 +617,40 @@
|
|
|
624
617
|
case 1:
|
|
625
618
|
var result = suspendResult;
|
|
626
619
|
if (!isInterface(result, ByteReadChannel)) {
|
|
627
|
-
get_LOGGER().
|
|
620
|
+
get_LOGGER().n3f('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.b5e_1.toString() + '.');
|
|
628
621
|
}
|
|
629
622
|
|
|
630
623
|
return result;
|
|
631
624
|
case 2:
|
|
632
|
-
throw this.
|
|
625
|
+
throw this.u8_1;
|
|
633
626
|
}
|
|
634
627
|
} catch ($p) {
|
|
635
628
|
var e = $p;
|
|
636
|
-
if (this.
|
|
629
|
+
if (this.s8_1 === 2) {
|
|
637
630
|
throw e;
|
|
638
631
|
} else {
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
632
|
+
this.r8_1 = this.s8_1;
|
|
633
|
+
this.u8_1 = e;
|
|
641
634
|
}
|
|
642
635
|
}
|
|
643
636
|
while (true);
|
|
644
637
|
};
|
|
645
638
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
646
639
|
Plugin_getInstance();
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
640
|
+
this.f5c_1 = registrations;
|
|
641
|
+
this.g5c_1 = ignoredTypes;
|
|
649
642
|
}
|
|
650
|
-
protoOf(ContentNegotiation).
|
|
643
|
+
protoOf(ContentNegotiation).h5c = function (request, body, $completion) {
|
|
651
644
|
var tmp = new $convertRequestCOROUTINE$(this, request, body, $completion);
|
|
652
|
-
tmp.
|
|
653
|
-
tmp.
|
|
654
|
-
return tmp.
|
|
645
|
+
tmp.t8_1 = Unit_instance;
|
|
646
|
+
tmp.u8_1 = null;
|
|
647
|
+
return tmp.z8();
|
|
655
648
|
};
|
|
656
|
-
protoOf(ContentNegotiation).
|
|
649
|
+
protoOf(ContentNegotiation).u5c = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
657
650
|
var tmp = new $convertResponseCOROUTINE$(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
658
|
-
tmp.
|
|
659
|
-
tmp.
|
|
660
|
-
return tmp.
|
|
651
|
+
tmp.t8_1 = Unit_instance;
|
|
652
|
+
tmp.u8_1 = null;
|
|
653
|
+
return tmp.z8();
|
|
661
654
|
};
|
|
662
655
|
function ContentConverterException(message) {
|
|
663
656
|
Exception_init_$Init$(message, this);
|
|
@@ -668,16 +661,16 @@
|
|
|
668
661
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
669
662
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
670
663
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
671
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
664
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().ib(), PrimitiveClasses_getInstance().eb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
672
665
|
}
|
|
673
666
|
}
|
|
674
667
|
function JsonContentTypeMatcher() {
|
|
675
668
|
}
|
|
676
|
-
protoOf(JsonContentTypeMatcher).
|
|
677
|
-
if (contentType.
|
|
669
|
+
protoOf(JsonContentTypeMatcher).t5b = function (contentType) {
|
|
670
|
+
if (contentType.l3h(Application_getInstance().e3g_1)) {
|
|
678
671
|
return true;
|
|
679
672
|
}
|
|
680
|
-
var value = contentType.
|
|
673
|
+
var value = contentType.k3h().toString();
|
|
681
674
|
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
682
675
|
};
|
|
683
676
|
var JsonContentTypeMatcher_instance;
|
|
@@ -698,7 +691,7 @@
|
|
|
698
691
|
}
|
|
699
692
|
}
|
|
700
693
|
//region block: post-declaration
|
|
701
|
-
protoOf(Config).
|
|
694
|
+
protoOf(Config).l59 = register$default;
|
|
702
695
|
//endregion
|
|
703
696
|
//region block: init
|
|
704
697
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|