game_client_logic_deb 1.8.310 → 1.8.318
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 +78 -78
- package/Kosi-Kodein-kodein-di.js +647 -647
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1507 -1507
- package/Logic_Debertz-core.js +2256 -2206
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +15455 -15298
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +21 -15
- package/Logic_Debertz-game_client.js +5437 -4793
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2877 -2635
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +2852 -2852
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +362 -362
- package/kotlinx-serialization-kotlinx-serialization-core.js +2038 -2038
- package/kotlinx-serialization-kotlinx-serialization-json.js +1569 -1569
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2528 -2528
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +762 -762
- package/ktor-ktor-io.js +1659 -1659
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +271 -271
- package/ktor-ktor-serialization.js +130 -130
- package/ktor-ktor-utils.js +741 -741
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +341 -318
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +993 -978
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +18 -18
- package/uuid.js +33 -33
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_utils) {
|
|
31
31
|
'use strict';
|
|
32
32
|
//region block: imports
|
|
33
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
34
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
35
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
37
|
-
var trim = kotlin_kotlin.$_$.
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
39
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
40
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
41
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
33
|
+
var CoroutineImpl = kotlin_kotlin.$_$.xa;
|
|
34
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ia;
|
|
35
|
+
var THROW_CCE = kotlin_kotlin.$_$.ug;
|
|
36
|
+
var isCharSequence = kotlin_kotlin.$_$.fc;
|
|
37
|
+
var trim = kotlin_kotlin.$_$.xf;
|
|
38
|
+
var toString = kotlin_kotlin.$_$.ad;
|
|
39
|
+
var Unit_instance = kotlin_kotlin.$_$.q5;
|
|
40
|
+
var protoOf = kotlin_kotlin.$_$.wc;
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.xb;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.jb;
|
|
43
43
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
44
44
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
45
45
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
46
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
46
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.y2;
|
|
47
|
+
var initMetadataForClass = kotlin_kotlin.$_$.vb;
|
|
48
48
|
var VOID = kotlin_kotlin.$_$.f;
|
|
49
|
-
var Enum = kotlin_kotlin.$_$.
|
|
49
|
+
var Enum = kotlin_kotlin.$_$.jg;
|
|
50
50
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.n;
|
|
51
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
52
|
-
var println = kotlin_kotlin.$_$.
|
|
51
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.wb;
|
|
52
|
+
var println = kotlin_kotlin.$_$.ab;
|
|
53
53
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
54
54
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
55
55
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
56
56
|
var Url = kotlin_io_ktor_ktor_http.$_$.x;
|
|
57
57
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
58
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
58
|
+
var toString_0 = kotlin_kotlin.$_$.yh;
|
|
59
59
|
var charset = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
60
60
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
61
61
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
@@ -68,24 +68,24 @@
|
|
|
68
68
|
var ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
69
69
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
70
70
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
71
|
-
var Collection = kotlin_kotlin.$_$.
|
|
72
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
71
|
+
var Collection = kotlin_kotlin.$_$.s5;
|
|
72
|
+
var isInterface = kotlin_kotlin.$_$.jc;
|
|
73
73
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
74
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
74
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.zb;
|
|
75
75
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
76
76
|
var readText = kotlin_io_ktor_ktor_io.$_$.z;
|
|
77
77
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
78
78
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
79
79
|
var contentType = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
80
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
81
|
-
var toList = kotlin_kotlin.$_$.
|
|
82
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
83
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
84
|
-
var equals = kotlin_kotlin.$_$.
|
|
85
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
86
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
87
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
88
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
80
|
+
var emptyList = kotlin_kotlin.$_$.o7;
|
|
81
|
+
var toList = kotlin_kotlin.$_$.u9;
|
|
82
|
+
var sortedWith = kotlin_kotlin.$_$.m9;
|
|
83
|
+
var joinToString = kotlin_kotlin.$_$.g8;
|
|
84
|
+
var equals = kotlin_kotlin.$_$.nb;
|
|
85
|
+
var FunctionAdapter = kotlin_kotlin.$_$.bb;
|
|
86
|
+
var Comparator = kotlin_kotlin.$_$.gg;
|
|
87
|
+
var hashCode = kotlin_kotlin.$_$.ub;
|
|
88
|
+
var compareValues = kotlin_kotlin.$_$.ga;
|
|
89
89
|
var writer = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
90
90
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
91
91
|
var close = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
@@ -118,177 +118,177 @@
|
|
|
118
118
|
//endregion
|
|
119
119
|
function $logResponseExceptionCOROUTINE$0(_this__u8e3s4, message, resultContinuation) {
|
|
120
120
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.w3t_1 = _this__u8e3s4;
|
|
122
|
+
this.x3t_1 = message;
|
|
123
123
|
}
|
|
124
|
-
protoOf($logResponseExceptionCOROUTINE$0).
|
|
125
|
-
var suspendResult = this.
|
|
124
|
+
protoOf($logResponseExceptionCOROUTINE$0).r9 = function () {
|
|
125
|
+
var suspendResult = this.l9_1;
|
|
126
126
|
$sm: do
|
|
127
127
|
try {
|
|
128
|
-
var tmp = this.
|
|
128
|
+
var tmp = this.j9_1;
|
|
129
129
|
switch (tmp) {
|
|
130
130
|
case 0:
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
suspendResult = this.
|
|
131
|
+
this.k9_1 = 2;
|
|
132
|
+
this.j9_1 = 1;
|
|
133
|
+
suspendResult = this.w3t_1.b3u_1.fq(this);
|
|
134
134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
135
135
|
return suspendResult;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
continue $sm;
|
|
139
139
|
case 1:
|
|
140
|
-
var this_0 = this.
|
|
141
|
-
this.
|
|
140
|
+
var this_0 = this.x3t_1;
|
|
141
|
+
this.w3t_1.y3t_1.f3u(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
142
|
return Unit_instance;
|
|
143
143
|
case 2:
|
|
144
|
-
throw this.
|
|
144
|
+
throw this.m9_1;
|
|
145
145
|
}
|
|
146
146
|
} catch ($p) {
|
|
147
147
|
var e = $p;
|
|
148
|
-
if (this.
|
|
148
|
+
if (this.k9_1 === 2) {
|
|
149
149
|
throw e;
|
|
150
150
|
} else {
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
151
|
+
this.j9_1 = this.k9_1;
|
|
152
|
+
this.m9_1 = e;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
while (true);
|
|
156
156
|
};
|
|
157
157
|
function $logResponseBodyCOROUTINE$1(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.o3u_1 = _this__u8e3s4;
|
|
160
|
+
this.p3u_1 = message;
|
|
161
161
|
}
|
|
162
|
-
protoOf($logResponseBodyCOROUTINE$1).
|
|
163
|
-
var suspendResult = this.
|
|
162
|
+
protoOf($logResponseBodyCOROUTINE$1).r9 = function () {
|
|
163
|
+
var suspendResult = this.l9_1;
|
|
164
164
|
$sm: do
|
|
165
165
|
try {
|
|
166
|
-
var tmp = this.
|
|
166
|
+
var tmp = this.j9_1;
|
|
167
167
|
switch (tmp) {
|
|
168
168
|
case 0:
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
suspendResult = this.
|
|
169
|
+
this.k9_1 = 2;
|
|
170
|
+
this.j9_1 = 1;
|
|
171
|
+
suspendResult = this.o3u_1.c3u_1.fq(this);
|
|
172
172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
173
173
|
return suspendResult;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
continue $sm;
|
|
177
177
|
case 1:
|
|
178
|
-
this.a3u_1.
|
|
178
|
+
this.o3u_1.a3u_1.s8(this.p3u_1);
|
|
179
179
|
return Unit_instance;
|
|
180
180
|
case 2:
|
|
181
|
-
throw this.
|
|
181
|
+
throw this.m9_1;
|
|
182
182
|
}
|
|
183
183
|
} catch ($p) {
|
|
184
184
|
var e = $p;
|
|
185
|
-
if (this.
|
|
185
|
+
if (this.k9_1 === 2) {
|
|
186
186
|
throw e;
|
|
187
187
|
} else {
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
188
|
+
this.j9_1 = this.k9_1;
|
|
189
|
+
this.m9_1 = e;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
while (true);
|
|
193
193
|
};
|
|
194
194
|
function $closeResponseLogCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
195
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
196
|
+
this.y3u_1 = _this__u8e3s4;
|
|
197
197
|
}
|
|
198
|
-
protoOf($closeResponseLogCOROUTINE$2).
|
|
199
|
-
var suspendResult = this.
|
|
198
|
+
protoOf($closeResponseLogCOROUTINE$2).r9 = function () {
|
|
199
|
+
var suspendResult = this.l9_1;
|
|
200
200
|
$sm: do
|
|
201
201
|
try {
|
|
202
|
-
var tmp = this.
|
|
202
|
+
var tmp = this.j9_1;
|
|
203
203
|
switch (tmp) {
|
|
204
204
|
case 0:
|
|
205
|
-
this.
|
|
206
|
-
if (!this.
|
|
205
|
+
this.k9_1 = 2;
|
|
206
|
+
if (!this.y3u_1.e3u_1.atomicfu$compareAndSet(false, true))
|
|
207
207
|
return Unit_instance;
|
|
208
|
-
this.
|
|
209
|
-
suspendResult = this.
|
|
208
|
+
this.j9_1 = 1;
|
|
209
|
+
suspendResult = this.y3u_1.b3u_1.fq(this);
|
|
210
210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
211
|
return suspendResult;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
continue $sm;
|
|
215
215
|
case 1:
|
|
216
|
-
var message = toString(trim(this.
|
|
216
|
+
var message = toString(trim(this.y3u_1.a3u_1));
|
|
217
217
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
218
|
+
this.y3u_1.y3t_1.f3u(message);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return Unit_instance;
|
|
222
222
|
case 2:
|
|
223
|
-
throw this.
|
|
223
|
+
throw this.m9_1;
|
|
224
224
|
}
|
|
225
225
|
} catch ($p) {
|
|
226
226
|
var e = $p;
|
|
227
|
-
if (this.
|
|
227
|
+
if (this.k9_1 === 2) {
|
|
228
228
|
throw e;
|
|
229
229
|
} else {
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
230
|
+
this.j9_1 = this.k9_1;
|
|
231
|
+
this.m9_1 = e;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
while (true);
|
|
235
235
|
};
|
|
236
236
|
function HttpClientCallLogger(logger) {
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
237
|
+
this.y3t_1 = logger;
|
|
238
|
+
this.z3t_1 = StringBuilder_init_$Create$();
|
|
239
|
+
this.a3u_1 = StringBuilder_init_$Create$();
|
|
240
|
+
this.b3u_1 = Job();
|
|
241
|
+
this.c3u_1 = Job();
|
|
242
|
+
this.d3u_1 = atomic$boolean$1(false);
|
|
243
|
+
this.e3u_1 = atomic$boolean$1(false);
|
|
244
244
|
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
245
|
+
protoOf(HttpClientCallLogger).z3u = function (message) {
|
|
246
246
|
// Inline function 'kotlin.text.appendLine' call
|
|
247
|
-
var this_0 = this.
|
|
247
|
+
var this_0 = this.z3t_1;
|
|
248
248
|
// Inline function 'kotlin.text.trim' call
|
|
249
249
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
250
250
|
// Inline function 'kotlin.text.appendLine' call
|
|
251
|
-
this_0.
|
|
251
|
+
this_0.s8(value).t8(_Char___init__impl__6a9atx(10));
|
|
252
252
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
253
|
+
protoOf(HttpClientCallLogger).a3v = function (message) {
|
|
254
254
|
// Inline function 'kotlin.text.appendLine' call
|
|
255
|
-
var this_0 = this.
|
|
255
|
+
var this_0 = this.a3u_1;
|
|
256
256
|
// Inline function 'kotlin.text.trim' call
|
|
257
257
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
258
258
|
// Inline function 'kotlin.text.appendLine' call
|
|
259
|
-
this_0.
|
|
260
|
-
this.
|
|
259
|
+
this_0.s8(value).t8(_Char___init__impl__6a9atx(10));
|
|
260
|
+
this.c3u_1.fx();
|
|
261
261
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
262
|
+
protoOf(HttpClientCallLogger).b3v = function (message, $completion) {
|
|
263
263
|
var tmp = new $logResponseExceptionCOROUTINE$0(this, message, $completion);
|
|
264
|
-
tmp.
|
|
265
|
-
tmp.
|
|
266
|
-
return tmp.
|
|
264
|
+
tmp.l9_1 = Unit_instance;
|
|
265
|
+
tmp.m9_1 = null;
|
|
266
|
+
return tmp.r9();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
268
|
+
protoOf(HttpClientCallLogger).c3v = function (message, $completion) {
|
|
269
269
|
var tmp = new $logResponseBodyCOROUTINE$1(this, message, $completion);
|
|
270
|
-
tmp.
|
|
271
|
-
tmp.
|
|
272
|
-
return tmp.
|
|
270
|
+
tmp.l9_1 = Unit_instance;
|
|
271
|
+
tmp.m9_1 = null;
|
|
272
|
+
return tmp.r9();
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
274
|
+
protoOf(HttpClientCallLogger).d3v = function () {
|
|
275
|
+
if (!this.d3u_1.atomicfu$compareAndSet(false, true))
|
|
276
276
|
return Unit_instance;
|
|
277
277
|
try {
|
|
278
|
-
var message = toString(trim(this.
|
|
278
|
+
var message = toString(trim(this.z3t_1));
|
|
279
279
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
280
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
281
|
+
this.y3t_1.f3u(message);
|
|
282
282
|
}
|
|
283
283
|
}finally {
|
|
284
|
-
this.
|
|
284
|
+
this.b3u_1.fx();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
+
protoOf(HttpClientCallLogger).e3v = function ($completion) {
|
|
288
288
|
var tmp = new $closeResponseLogCOROUTINE$2(this, $completion);
|
|
289
|
-
tmp.
|
|
290
|
-
tmp.
|
|
291
|
-
return tmp.
|
|
289
|
+
tmp.l9_1 = Unit_instance;
|
|
290
|
+
tmp.m9_1 = null;
|
|
291
|
+
return tmp.r9();
|
|
292
292
|
};
|
|
293
293
|
var LogLevel_ALL_instance;
|
|
294
294
|
var LogLevel_HEADERS_instance;
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
}
|
|
309
309
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
310
310
|
Enum.call(this, name, ordinal);
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
311
|
+
this.h3v_1 = info;
|
|
312
|
+
this.i3v_1 = headers;
|
|
313
|
+
this.j3v_1 = body;
|
|
314
314
|
}
|
|
315
315
|
function LogLevel_ALL_getInstance() {
|
|
316
316
|
LogLevel_initEntries();
|
|
@@ -326,27 +326,27 @@
|
|
|
326
326
|
}
|
|
327
327
|
function LoggedContent(originalContent, channel) {
|
|
328
328
|
ReadChannelContent.call(this);
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
329
|
+
this.l3v_1 = originalContent;
|
|
330
|
+
this.m3v_1 = channel;
|
|
331
|
+
this.n3v_1 = this.l3v_1.o2o();
|
|
332
|
+
this.o3v_1 = this.l3v_1.q2o();
|
|
333
|
+
this.p3v_1 = this.l3v_1.p2o();
|
|
334
|
+
this.q3v_1 = this.l3v_1.k2j();
|
|
335
335
|
}
|
|
336
|
-
protoOf(LoggedContent).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(LoggedContent).o2o = function () {
|
|
337
|
+
return this.n3v_1;
|
|
338
338
|
};
|
|
339
|
-
protoOf(LoggedContent).
|
|
340
|
-
return this.
|
|
339
|
+
protoOf(LoggedContent).q2o = function () {
|
|
340
|
+
return this.o3v_1;
|
|
341
341
|
};
|
|
342
|
-
protoOf(LoggedContent).
|
|
343
|
-
return this.
|
|
342
|
+
protoOf(LoggedContent).p2o = function () {
|
|
343
|
+
return this.p3v_1;
|
|
344
344
|
};
|
|
345
|
-
protoOf(LoggedContent).
|
|
346
|
-
return this.
|
|
345
|
+
protoOf(LoggedContent).k2j = function () {
|
|
346
|
+
return this.q3v_1;
|
|
347
347
|
};
|
|
348
|
-
protoOf(LoggedContent).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(LoggedContent).u2o = function () {
|
|
349
|
+
return this.m3v_1;
|
|
350
350
|
};
|
|
351
351
|
function Companion() {
|
|
352
352
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
}
|
|
360
360
|
function SimpleLogger() {
|
|
361
361
|
}
|
|
362
|
-
protoOf(SimpleLogger).
|
|
362
|
+
protoOf(SimpleLogger).f3u = function (message) {
|
|
363
363
|
println('HttpClient: ' + message);
|
|
364
364
|
};
|
|
365
365
|
function get_ClientCallLogger() {
|
|
@@ -375,63 +375,63 @@
|
|
|
375
375
|
function Config() {
|
|
376
376
|
var tmp = this;
|
|
377
377
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
378
|
-
tmp.
|
|
378
|
+
tmp.r3v_1 = ArrayList_init_$Create$();
|
|
379
379
|
var tmp_0 = this;
|
|
380
380
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
381
|
-
tmp_0.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
381
|
+
tmp_0.s3v_1 = ArrayList_init_$Create$();
|
|
382
|
+
this.t3v_1 = null;
|
|
383
|
+
this.u3v_1 = LogLevel_HEADERS_getInstance();
|
|
384
384
|
}
|
|
385
|
-
protoOf(Config).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(Config).v3v = function (value) {
|
|
386
|
+
this.t3v_1 = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(Config).
|
|
389
|
-
var tmp0_elvis_lhs = this.
|
|
388
|
+
protoOf(Config).w3v = function () {
|
|
389
|
+
var tmp0_elvis_lhs = this.t3v_1;
|
|
390
390
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
391
391
|
};
|
|
392
392
|
function setupRequestLogging($this, client) {
|
|
393
|
-
var tmp = Phases_getInstance().
|
|
394
|
-
client.
|
|
393
|
+
var tmp = Phases_getInstance().n2v_1;
|
|
394
|
+
client.x2s_1.q2c(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
395
395
|
}
|
|
396
396
|
function logRequest($this, request, $completion) {
|
|
397
|
-
var tmp = request.
|
|
397
|
+
var tmp = request.y2u_1;
|
|
398
398
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
399
|
-
var logger = new HttpClientCallLogger($this.
|
|
400
|
-
request.
|
|
399
|
+
var logger = new HttpClientCallLogger($this.x3v_1);
|
|
400
|
+
request.a2v_1.i25(get_ClientCallLogger(), logger);
|
|
401
401
|
// Inline function 'kotlin.text.buildString' call
|
|
402
402
|
// Inline function 'kotlin.contracts.contract' call
|
|
403
403
|
// Inline function 'kotlin.apply' call
|
|
404
404
|
var this_0 = StringBuilder_init_$Create$();
|
|
405
405
|
// Inline function 'kotlin.contracts.contract' call
|
|
406
406
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>' call
|
|
407
|
-
if ($this.
|
|
407
|
+
if ($this.y3v_1.h3v_1) {
|
|
408
408
|
// Inline function 'kotlin.text.appendLine' call
|
|
409
|
-
var value = 'REQUEST: ' + Url(request.
|
|
409
|
+
var value = 'REQUEST: ' + Url(request.v2u_1).toString();
|
|
410
410
|
// Inline function 'kotlin.text.appendLine' call
|
|
411
|
-
this_0.
|
|
411
|
+
this_0.s8(value).t8(_Char___init__impl__6a9atx(10));
|
|
412
412
|
// Inline function 'kotlin.text.appendLine' call
|
|
413
|
-
var value_0 = 'METHOD: ' + request.
|
|
413
|
+
var value_0 = 'METHOD: ' + request.w2u_1.toString();
|
|
414
414
|
// Inline function 'kotlin.text.appendLine' call
|
|
415
|
-
this_0.
|
|
415
|
+
this_0.s8(value_0).t8(_Char___init__impl__6a9atx(10));
|
|
416
416
|
}
|
|
417
|
-
if ($this.
|
|
417
|
+
if ($this.y3v_1.i3v_1) {
|
|
418
418
|
// Inline function 'kotlin.text.appendLine' call
|
|
419
419
|
var value_1 = 'COMMON HEADERS';
|
|
420
420
|
// Inline function 'kotlin.text.appendLine' call
|
|
421
|
-
this_0.
|
|
422
|
-
logHeaders(this_0, request.
|
|
421
|
+
this_0.s8(value_1).t8(_Char___init__impl__6a9atx(10));
|
|
422
|
+
logHeaders(this_0, request.x2u_1.j29(), $this.a3w_1);
|
|
423
423
|
// Inline function 'kotlin.text.appendLine' call
|
|
424
424
|
var value_2 = 'CONTENT HEADERS';
|
|
425
425
|
// Inline function 'kotlin.text.appendLine' call
|
|
426
|
-
this_0.
|
|
426
|
+
this_0.s8(value_2).t8(_Char___init__impl__6a9atx(10));
|
|
427
427
|
var tmp$ret$9;
|
|
428
428
|
$l$block: {
|
|
429
429
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
430
|
-
var tmp0_iterator = $this.
|
|
430
|
+
var tmp0_iterator = $this.a3w_1.j();
|
|
431
431
|
while (tmp0_iterator.k()) {
|
|
432
432
|
var element = tmp0_iterator.l();
|
|
433
433
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>.<anonymous>' call
|
|
434
|
-
if (element.
|
|
434
|
+
if (element.c3w_1(HttpHeaders_getInstance().w2f_1)) {
|
|
435
435
|
tmp$ret$9 = element;
|
|
436
436
|
break $l$block;
|
|
437
437
|
}
|
|
@@ -439,15 +439,15 @@
|
|
|
439
439
|
tmp$ret$9 = null;
|
|
440
440
|
}
|
|
441
441
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
442
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
442
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3w_1;
|
|
443
443
|
var tmp$ret$11;
|
|
444
444
|
$l$block_0: {
|
|
445
445
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
446
|
-
var tmp0_iterator_0 = $this.
|
|
446
|
+
var tmp0_iterator_0 = $this.a3w_1.j();
|
|
447
447
|
while (tmp0_iterator_0.k()) {
|
|
448
448
|
var element_0 = tmp0_iterator_0.l();
|
|
449
449
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>.<anonymous>' call
|
|
450
|
-
if (element_0.
|
|
450
|
+
if (element_0.c3w_1(HttpHeaders_getInstance().z2f_1)) {
|
|
451
451
|
tmp$ret$11 = element_0;
|
|
452
452
|
break $l$block_0;
|
|
453
453
|
}
|
|
@@ -455,41 +455,41 @@
|
|
|
455
455
|
tmp$ret$11 = null;
|
|
456
456
|
}
|
|
457
457
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
458
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
459
|
-
var tmp2_safe_receiver = content.
|
|
458
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b3w_1;
|
|
459
|
+
var tmp2_safe_receiver = content.q2o();
|
|
460
460
|
if (tmp2_safe_receiver == null)
|
|
461
461
|
null;
|
|
462
462
|
else {
|
|
463
463
|
// Inline function 'kotlin.let' call
|
|
464
464
|
// Inline function 'kotlin.contracts.contract' call
|
|
465
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
465
|
+
var tmp_0 = HttpHeaders_getInstance().w2f_1;
|
|
466
466
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
467
467
|
}
|
|
468
|
-
var tmp3_safe_receiver = content.
|
|
468
|
+
var tmp3_safe_receiver = content.o2o();
|
|
469
469
|
if (tmp3_safe_receiver == null)
|
|
470
470
|
null;
|
|
471
471
|
else {
|
|
472
472
|
// Inline function 'kotlin.let' call
|
|
473
473
|
// Inline function 'kotlin.contracts.contract' call
|
|
474
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
474
|
+
var tmp_1 = HttpHeaders_getInstance().z2f_1;
|
|
475
475
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
476
476
|
}
|
|
477
|
-
logHeaders(this_0, content.
|
|
477
|
+
logHeaders(this_0, content.k2j().j29(), $this.a3w_1);
|
|
478
478
|
}
|
|
479
479
|
var message = this_0.toString();
|
|
480
480
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
481
481
|
if (charSequenceLength(message) > 0) {
|
|
482
|
-
logger.
|
|
482
|
+
logger.z3u(message);
|
|
483
483
|
}
|
|
484
484
|
var tmp_2;
|
|
485
485
|
// Inline function 'kotlin.text.isEmpty' call
|
|
486
486
|
if (charSequenceLength(message) === 0) {
|
|
487
487
|
tmp_2 = true;
|
|
488
488
|
} else {
|
|
489
|
-
tmp_2 = !$this.
|
|
489
|
+
tmp_2 = !$this.y3v_1.j3v_1;
|
|
490
490
|
}
|
|
491
491
|
if (tmp_2) {
|
|
492
|
-
logger.
|
|
492
|
+
logger.d3v();
|
|
493
493
|
return null;
|
|
494
494
|
}
|
|
495
495
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -497,63 +497,63 @@
|
|
|
497
497
|
function logRequestBody($this, content, logger, $completion) {
|
|
498
498
|
var requestLog = StringBuilder_init_$Create$();
|
|
499
499
|
// Inline function 'kotlin.text.appendLine' call
|
|
500
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
500
|
+
var value = 'BODY Content-Type: ' + toString_0(content.o2o());
|
|
501
501
|
// Inline function 'kotlin.text.appendLine' call
|
|
502
|
-
requestLog.
|
|
503
|
-
var tmp0_safe_receiver = content.
|
|
502
|
+
requestLog.s8(value).t8(_Char___init__impl__6a9atx(10));
|
|
503
|
+
var tmp0_safe_receiver = content.o2o();
|
|
504
504
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
505
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
505
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().m21_1 : tmp1_elvis_lhs;
|
|
506
506
|
var channel = ByteChannel();
|
|
507
507
|
var tmp = GlobalScope_instance;
|
|
508
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
508
|
+
var tmp_0 = Dispatchers_getInstance().u10_1;
|
|
509
509
|
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
510
|
-
tmp_1.
|
|
510
|
+
tmp_1.bq(Logging$logRequestBody$lambda(logger, requestLog));
|
|
511
511
|
return observe(content, channel, $completion);
|
|
512
512
|
}
|
|
513
513
|
function logRequestException($this, context, cause) {
|
|
514
|
-
if ($this.
|
|
515
|
-
$this.
|
|
514
|
+
if ($this.y3v_1.h3v_1) {
|
|
515
|
+
$this.x3v_1.f3u('REQUEST ' + Url(context.v2u_1).toString() + ' failed with exception: ' + cause.toString());
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
function setupResponseLogging($this, client) {
|
|
519
|
-
var tmp = Phases_getInstance_0().
|
|
520
|
-
client.
|
|
521
|
-
var tmp_0 = Phases_getInstance_1().
|
|
522
|
-
client.
|
|
523
|
-
if (!$this.
|
|
519
|
+
var tmp = Phases_getInstance_0().y31_1;
|
|
520
|
+
client.y2s_1.q2c(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
521
|
+
var tmp_0 = Phases_getInstance_1().t2v_1;
|
|
522
|
+
client.w2s_1.q2c(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
523
|
+
if (!$this.y3v_1.j3v_1)
|
|
524
524
|
return Unit_instance;
|
|
525
525
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
526
|
-
Plugin_getInstance().
|
|
526
|
+
Plugin_getInstance().r3j(new ResponseObserver(observer), client);
|
|
527
527
|
}
|
|
528
528
|
function logResponseException($this, log, request, cause) {
|
|
529
|
-
if (!$this.
|
|
529
|
+
if (!$this.y3v_1.h3v_1)
|
|
530
530
|
return Unit_instance;
|
|
531
|
-
log.
|
|
531
|
+
log.s8('RESPONSE ' + request.i2x().toString() + ' failed with exception: ' + cause.toString());
|
|
532
532
|
}
|
|
533
533
|
function Companion_0() {
|
|
534
534
|
Companion_instance_0 = this;
|
|
535
|
-
this.
|
|
535
|
+
this.d3w_1 = new AttributeKey('ClientLogging');
|
|
536
536
|
}
|
|
537
537
|
protoOf(Companion_0).t = function () {
|
|
538
|
-
return this.
|
|
538
|
+
return this.d3w_1;
|
|
539
539
|
};
|
|
540
|
-
protoOf(Companion_0).
|
|
540
|
+
protoOf(Companion_0).e3w = function (block) {
|
|
541
541
|
// Inline function 'kotlin.apply' call
|
|
542
542
|
var this_0 = new Config();
|
|
543
543
|
// Inline function 'kotlin.contracts.contract' call
|
|
544
544
|
block(this_0);
|
|
545
545
|
var config = this_0;
|
|
546
|
-
return new Logging(config.
|
|
546
|
+
return new Logging(config.w3v(), config.u3v_1, config.r3v_1, config.s3v_1);
|
|
547
547
|
};
|
|
548
|
-
protoOf(Companion_0).
|
|
549
|
-
return this.
|
|
548
|
+
protoOf(Companion_0).a2w = function (block) {
|
|
549
|
+
return this.e3w(block);
|
|
550
550
|
};
|
|
551
|
-
protoOf(Companion_0).
|
|
551
|
+
protoOf(Companion_0).f3w = function (plugin, scope) {
|
|
552
552
|
setupRequestLogging(plugin, scope);
|
|
553
553
|
setupResponseLogging(plugin, scope);
|
|
554
554
|
};
|
|
555
|
-
protoOf(Companion_0).
|
|
556
|
-
return this.
|
|
555
|
+
protoOf(Companion_0).b2w = function (plugin, scope) {
|
|
556
|
+
return this.f3w(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
557
557
|
};
|
|
558
558
|
var Companion_instance_0;
|
|
559
559
|
function Companion_getInstance_0() {
|
|
@@ -563,13 +563,13 @@
|
|
|
563
563
|
}
|
|
564
564
|
function shouldBeLogged($this, request) {
|
|
565
565
|
var tmp;
|
|
566
|
-
if ($this.
|
|
566
|
+
if ($this.z3v_1.p()) {
|
|
567
567
|
tmp = true;
|
|
568
568
|
} else {
|
|
569
569
|
var tmp$ret$0;
|
|
570
570
|
$l$block_0: {
|
|
571
571
|
// Inline function 'kotlin.collections.any' call
|
|
572
|
-
var this_0 = $this.
|
|
572
|
+
var this_0 = $this.z3v_1;
|
|
573
573
|
var tmp_0;
|
|
574
574
|
if (isInterface(this_0, Collection)) {
|
|
575
575
|
tmp_0 = this_0.p();
|
|
@@ -596,69 +596,69 @@
|
|
|
596
596
|
return tmp;
|
|
597
597
|
}
|
|
598
598
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
599
|
-
this.
|
|
599
|
+
this.o3w_1 = this$0;
|
|
600
600
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
601
|
}
|
|
602
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
603
|
-
var tmp = this.
|
|
604
|
-
tmp.
|
|
605
|
-
tmp.
|
|
606
|
-
return tmp.
|
|
602
|
+
protoOf(Logging$setupRequestLogging$slambda).p2t = function ($this$intercept, it, $completion) {
|
|
603
|
+
var tmp = this.q2t($this$intercept, it, $completion);
|
|
604
|
+
tmp.l9_1 = Unit_instance;
|
|
605
|
+
tmp.m9_1 = null;
|
|
606
|
+
return tmp.r9();
|
|
607
607
|
};
|
|
608
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
608
|
+
protoOf(Logging$setupRequestLogging$slambda).ca = function (p1, p2, $completion) {
|
|
609
609
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
610
|
-
return this.
|
|
610
|
+
return this.p2t(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
611
611
|
};
|
|
612
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
613
|
-
var suspendResult = this.
|
|
612
|
+
protoOf(Logging$setupRequestLogging$slambda).r9 = function () {
|
|
613
|
+
var suspendResult = this.l9_1;
|
|
614
614
|
$sm: do
|
|
615
615
|
try {
|
|
616
|
-
var tmp = this.
|
|
616
|
+
var tmp = this.j9_1;
|
|
617
617
|
switch (tmp) {
|
|
618
618
|
case 0:
|
|
619
|
-
this.
|
|
620
|
-
if (!shouldBeLogged(this.
|
|
621
|
-
this.
|
|
619
|
+
this.k9_1 = 8;
|
|
620
|
+
if (!shouldBeLogged(this.o3w_1, this.p3w_1.m2c_1)) {
|
|
621
|
+
this.p3w_1.m2c_1.a2v_1.i25(get_DisableLogging(), Unit_instance);
|
|
622
622
|
return Unit_instance;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
suspendResult = logRequest(this.
|
|
625
|
+
this.k9_1 = 2;
|
|
626
|
+
this.j9_1 = 1;
|
|
627
|
+
suspendResult = logRequest(this.o3w_1, this.p3w_1.m2c_1, this);
|
|
628
628
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
629
629
|
return suspendResult;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
continue $sm;
|
|
633
633
|
case 1:
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
634
|
+
this.r3w_1 = suspendResult;
|
|
635
|
+
this.k9_1 = 8;
|
|
636
|
+
this.j9_1 = 3;
|
|
637
637
|
continue $sm;
|
|
638
638
|
case 2:
|
|
639
|
-
this.
|
|
640
|
-
var tmp_0 = this.
|
|
639
|
+
this.k9_1 = 8;
|
|
640
|
+
var tmp_0 = this.m9_1;
|
|
641
641
|
if (tmp_0 instanceof Error) {
|
|
642
|
-
this.
|
|
642
|
+
this.s3w_1 = this.m9_1;
|
|
643
643
|
var tmp_1 = this;
|
|
644
|
-
tmp_1.
|
|
645
|
-
this.
|
|
644
|
+
tmp_1.r3w_1 = null;
|
|
645
|
+
this.j9_1 = 3;
|
|
646
646
|
continue $sm;
|
|
647
647
|
} else {
|
|
648
|
-
throw this.
|
|
648
|
+
throw this.m9_1;
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
case 3:
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
652
|
+
this.k9_1 = 8;
|
|
653
|
+
this.t3w_1 = this.r3w_1;
|
|
654
|
+
this.j9_1 = 4;
|
|
655
655
|
continue $sm;
|
|
656
656
|
case 4:
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
var tmp0_elvis_lhs = this.
|
|
661
|
-
suspendResult = this.
|
|
657
|
+
this.k9_1 = 7;
|
|
658
|
+
this.k9_1 = 6;
|
|
659
|
+
this.j9_1 = 5;
|
|
660
|
+
var tmp0_elvis_lhs = this.t3w_1;
|
|
661
|
+
suspendResult = this.p3w_1.q2b(tmp0_elvis_lhs == null ? this.p3w_1.p2b() : tmp0_elvis_lhs, this);
|
|
662
662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
663
663
|
return suspendResult;
|
|
664
664
|
}
|
|
@@ -666,87 +666,87 @@
|
|
|
666
666
|
continue $sm;
|
|
667
667
|
case 5:
|
|
668
668
|
var tmp_2 = this;
|
|
669
|
-
tmp_2.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
669
|
+
tmp_2.u3w_1 = Unit_instance;
|
|
670
|
+
this.k9_1 = 8;
|
|
671
|
+
this.j9_1 = 9;
|
|
672
672
|
continue $sm;
|
|
673
673
|
case 6:
|
|
674
|
-
this.
|
|
675
|
-
var tmp_3 = this.
|
|
674
|
+
this.k9_1 = 7;
|
|
675
|
+
var tmp_3 = this.m9_1;
|
|
676
676
|
if (tmp_3 instanceof Error) {
|
|
677
|
-
var cause = this.
|
|
677
|
+
var cause = this.m9_1;
|
|
678
678
|
var tmp_4 = this;
|
|
679
|
-
logRequestException(this.
|
|
679
|
+
logRequestException(this.o3w_1, this.p3w_1.m2c_1, cause);
|
|
680
680
|
throw cause;
|
|
681
681
|
} else {
|
|
682
|
-
throw this.
|
|
682
|
+
throw this.m9_1;
|
|
683
683
|
}
|
|
684
684
|
|
|
685
685
|
case 7:
|
|
686
|
-
this.
|
|
687
|
-
var t = this.
|
|
686
|
+
this.k9_1 = 8;
|
|
687
|
+
var t = this.m9_1;
|
|
688
688
|
throw t;
|
|
689
689
|
case 8:
|
|
690
|
-
throw this.
|
|
690
|
+
throw this.m9_1;
|
|
691
691
|
case 9:
|
|
692
|
-
this.
|
|
692
|
+
this.k9_1 = 8;
|
|
693
693
|
return Unit_instance;
|
|
694
694
|
}
|
|
695
695
|
} catch ($p) {
|
|
696
696
|
var e = $p;
|
|
697
|
-
if (this.
|
|
697
|
+
if (this.k9_1 === 8) {
|
|
698
698
|
throw e;
|
|
699
699
|
} else {
|
|
700
|
-
this.
|
|
701
|
-
this.
|
|
700
|
+
this.j9_1 = this.k9_1;
|
|
701
|
+
this.m9_1 = e;
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
while (true);
|
|
705
705
|
};
|
|
706
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
707
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
708
|
-
i.
|
|
709
|
-
i.
|
|
706
|
+
protoOf(Logging$setupRequestLogging$slambda).q2t = function ($this$intercept, it, completion) {
|
|
707
|
+
var i = new Logging$setupRequestLogging$slambda(this.o3w_1, completion);
|
|
708
|
+
i.p3w_1 = $this$intercept;
|
|
709
|
+
i.q3w_1 = it;
|
|
710
710
|
return i;
|
|
711
711
|
};
|
|
712
712
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
713
713
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
714
714
|
var l = function ($this$intercept, it, $completion) {
|
|
715
|
-
return i.
|
|
715
|
+
return i.p2t($this$intercept, it, $completion);
|
|
716
716
|
};
|
|
717
717
|
l.$arity = 2;
|
|
718
718
|
return l;
|
|
719
719
|
}
|
|
720
720
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
723
|
-
this.
|
|
721
|
+
this.d3x_1 = $channel;
|
|
722
|
+
this.e3x_1 = $charset;
|
|
723
|
+
this.f3x_1 = $requestLog;
|
|
724
724
|
CoroutineImpl.call(this, resultContinuation);
|
|
725
725
|
}
|
|
726
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
727
|
-
var tmp = this.
|
|
728
|
-
tmp.
|
|
729
|
-
tmp.
|
|
730
|
-
return tmp.
|
|
726
|
+
protoOf(Logging$logRequestBody$slambda).r1d = function ($this$launch, $completion) {
|
|
727
|
+
var tmp = this.s1d($this$launch, $completion);
|
|
728
|
+
tmp.l9_1 = Unit_instance;
|
|
729
|
+
tmp.m9_1 = null;
|
|
730
|
+
return tmp.r9();
|
|
731
731
|
};
|
|
732
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
733
|
-
return this.
|
|
732
|
+
protoOf(Logging$logRequestBody$slambda).ba = function (p1, $completion) {
|
|
733
|
+
return this.r1d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
734
734
|
};
|
|
735
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
736
|
-
var suspendResult = this.
|
|
735
|
+
protoOf(Logging$logRequestBody$slambda).r9 = function () {
|
|
736
|
+
var suspendResult = this.l9_1;
|
|
737
737
|
$sm: do
|
|
738
738
|
try {
|
|
739
|
-
var tmp = this.
|
|
739
|
+
var tmp = this.j9_1;
|
|
740
740
|
switch (tmp) {
|
|
741
741
|
case 0:
|
|
742
|
-
this.
|
|
742
|
+
this.k9_1 = 3;
|
|
743
743
|
var tmp_0 = this;
|
|
744
|
-
tmp_0.
|
|
744
|
+
tmp_0.h3x_1 = this.d3x_1;
|
|
745
745
|
var tmp_1 = this;
|
|
746
|
-
tmp_1.
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
749
|
-
suspendResult = this.
|
|
746
|
+
tmp_1.i3x_1 = this.e3x_1;
|
|
747
|
+
this.k9_1 = 2;
|
|
748
|
+
this.j9_1 = 1;
|
|
749
|
+
suspendResult = this.h3x_1.x1w(VOID, this);
|
|
750
750
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
751
751
|
return suspendResult;
|
|
752
752
|
}
|
|
@@ -754,102 +754,102 @@
|
|
|
754
754
|
continue $sm;
|
|
755
755
|
case 1:
|
|
756
756
|
var ARGUMENT = suspendResult;
|
|
757
|
-
this.
|
|
758
|
-
this.
|
|
759
|
-
this.
|
|
757
|
+
this.j3x_1 = readText(ARGUMENT, this.i3x_1);
|
|
758
|
+
this.k9_1 = 3;
|
|
759
|
+
this.j9_1 = 4;
|
|
760
760
|
continue $sm;
|
|
761
761
|
case 2:
|
|
762
|
-
this.
|
|
763
|
-
var tmp_2 = this.
|
|
762
|
+
this.k9_1 = 3;
|
|
763
|
+
var tmp_2 = this.m9_1;
|
|
764
764
|
if (tmp_2 instanceof Error) {
|
|
765
|
-
var cause = this.
|
|
765
|
+
var cause = this.m9_1;
|
|
766
766
|
var tmp_3 = this;
|
|
767
|
-
tmp_3.
|
|
768
|
-
this.
|
|
767
|
+
tmp_3.j3x_1 = null;
|
|
768
|
+
this.j9_1 = 4;
|
|
769
769
|
continue $sm;
|
|
770
770
|
} else {
|
|
771
|
-
throw this.
|
|
771
|
+
throw this.m9_1;
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
case 3:
|
|
775
|
-
throw this.
|
|
775
|
+
throw this.m9_1;
|
|
776
776
|
case 4:
|
|
777
|
-
this.
|
|
778
|
-
var tmp0_elvis_lhs = this.
|
|
777
|
+
this.k9_1 = 3;
|
|
778
|
+
var tmp0_elvis_lhs = this.j3x_1;
|
|
779
779
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
780
|
-
var this_0 = this.
|
|
780
|
+
var this_0 = this.f3x_1;
|
|
781
781
|
var value = 'BODY START';
|
|
782
|
-
this_0.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
782
|
+
this_0.s8(value).t8(_Char___init__impl__6a9atx(10));
|
|
783
|
+
this.f3x_1.s8(text).t8(_Char___init__impl__6a9atx(10));
|
|
784
|
+
this.f3x_1.s8('BODY END');
|
|
785
785
|
return Unit_instance;
|
|
786
786
|
}
|
|
787
787
|
} catch ($p) {
|
|
788
788
|
var e = $p;
|
|
789
|
-
if (this.
|
|
789
|
+
if (this.k9_1 === 3) {
|
|
790
790
|
throw e;
|
|
791
791
|
} else {
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
792
|
+
this.j9_1 = this.k9_1;
|
|
793
|
+
this.m9_1 = e;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
while (true);
|
|
797
797
|
};
|
|
798
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
799
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
800
|
-
i.
|
|
798
|
+
protoOf(Logging$logRequestBody$slambda).s1d = function ($this$launch, completion) {
|
|
799
|
+
var i = new Logging$logRequestBody$slambda(this.d3x_1, this.e3x_1, this.f3x_1, completion);
|
|
800
|
+
i.g3x_1 = $this$launch;
|
|
801
801
|
return i;
|
|
802
802
|
};
|
|
803
803
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
804
804
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
805
805
|
var l = function ($this$launch, $completion) {
|
|
806
|
-
return i.
|
|
806
|
+
return i.r1d($this$launch, $completion);
|
|
807
807
|
};
|
|
808
808
|
l.$arity = 1;
|
|
809
809
|
return l;
|
|
810
810
|
}
|
|
811
811
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
812
812
|
return function (it) {
|
|
813
|
-
$logger.
|
|
814
|
-
$logger.
|
|
813
|
+
$logger.z3u($requestLog.toString());
|
|
814
|
+
$logger.d3v();
|
|
815
815
|
return Unit_instance;
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
819
|
-
this.
|
|
819
|
+
this.s3x_1 = this$0;
|
|
820
820
|
CoroutineImpl.call(this, resultContinuation);
|
|
821
821
|
}
|
|
822
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
823
|
-
var tmp = this.
|
|
824
|
-
tmp.
|
|
825
|
-
tmp.
|
|
826
|
-
return tmp.
|
|
822
|
+
protoOf(Logging$setupResponseLogging$slambda).b33 = function ($this$intercept, response, $completion) {
|
|
823
|
+
var tmp = this.c33($this$intercept, response, $completion);
|
|
824
|
+
tmp.l9_1 = Unit_instance;
|
|
825
|
+
tmp.m9_1 = null;
|
|
826
|
+
return tmp.r9();
|
|
827
827
|
};
|
|
828
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
828
|
+
protoOf(Logging$setupResponseLogging$slambda).ca = function (p1, p2, $completion) {
|
|
829
829
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
830
|
-
return this.
|
|
830
|
+
return this.b33(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
831
831
|
};
|
|
832
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
833
|
-
var suspendResult = this.
|
|
832
|
+
protoOf(Logging$setupResponseLogging$slambda).r9 = function () {
|
|
833
|
+
var suspendResult = this.l9_1;
|
|
834
834
|
$sm: do
|
|
835
835
|
try {
|
|
836
|
-
var tmp = this.
|
|
836
|
+
var tmp = this.j9_1;
|
|
837
837
|
switch (tmp) {
|
|
838
838
|
case 0:
|
|
839
|
-
this.
|
|
840
|
-
if (this.
|
|
839
|
+
this.k9_1 = 10;
|
|
840
|
+
if (this.s3x_1.y3v_1.equals(LogLevel_NONE_getInstance()) || this.u3x_1.d2y().k2w().h25(get_DisableLogging()))
|
|
841
841
|
return Unit_instance;
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
842
|
+
this.v3x_1 = this.u3x_1.d2y().k2w().f25(get_ClientCallLogger());
|
|
843
|
+
this.w3x_1 = StringBuilder_init_$Create$();
|
|
844
|
+
this.x3x_1 = false;
|
|
845
|
+
this.j9_1 = 1;
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 1:
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
850
|
-
logResponseHeader(this.
|
|
851
|
-
this.
|
|
852
|
-
suspendResult = this.
|
|
848
|
+
this.k9_1 = 4;
|
|
849
|
+
this.k9_1 = 3;
|
|
850
|
+
logResponseHeader(this.w3x_1, this.u3x_1.d2y().w2t(), this.s3x_1.y3v_1, this.s3x_1.a3w_1);
|
|
851
|
+
this.j9_1 = 2;
|
|
852
|
+
suspendResult = this.t3x_1.q2b(this.t3x_1.p2b(), this);
|
|
853
853
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
854
854
|
return suspendResult;
|
|
855
855
|
}
|
|
@@ -857,281 +857,281 @@
|
|
|
857
857
|
continue $sm;
|
|
858
858
|
case 2:
|
|
859
859
|
var tmp_0 = this;
|
|
860
|
-
tmp_0.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
860
|
+
tmp_0.y3x_1 = Unit_instance;
|
|
861
|
+
this.k9_1 = 10;
|
|
862
|
+
this.j9_1 = 7;
|
|
863
863
|
continue $sm;
|
|
864
864
|
case 3:
|
|
865
|
-
this.
|
|
866
|
-
var tmp_1 = this.
|
|
865
|
+
this.k9_1 = 4;
|
|
866
|
+
var tmp_1 = this.m9_1;
|
|
867
867
|
if (tmp_1 instanceof Error) {
|
|
868
|
-
this.
|
|
868
|
+
this.z3x_1 = this.m9_1;
|
|
869
869
|
var tmp_2 = this;
|
|
870
|
-
logResponseException(this.
|
|
871
|
-
this.
|
|
872
|
-
throw this.
|
|
870
|
+
logResponseException(this.s3x_1, this.w3x_1, this.u3x_1.d2y().f2x(), this.z3x_1);
|
|
871
|
+
this.x3x_1 = true;
|
|
872
|
+
throw this.z3x_1;
|
|
873
873
|
} else {
|
|
874
|
-
throw this.
|
|
874
|
+
throw this.m9_1;
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
case 4:
|
|
878
|
-
this.
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
881
|
-
if (this.
|
|
882
|
-
this.
|
|
883
|
-
suspendResult = this.
|
|
878
|
+
this.k9_1 = 10;
|
|
879
|
+
this.a3y_1 = this.m9_1;
|
|
880
|
+
this.v3x_1.a3v(this.w3x_1.toString());
|
|
881
|
+
if (this.x3x_1 || !this.s3x_1.y3v_1.j3v_1) {
|
|
882
|
+
this.j9_1 = 5;
|
|
883
|
+
suspendResult = this.v3x_1.e3v(this);
|
|
884
884
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
885
885
|
return suspendResult;
|
|
886
886
|
}
|
|
887
887
|
continue $sm;
|
|
888
888
|
} else {
|
|
889
|
-
this.
|
|
889
|
+
this.j9_1 = 6;
|
|
890
890
|
continue $sm;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
case 5:
|
|
894
|
-
this.
|
|
894
|
+
this.j9_1 = 6;
|
|
895
895
|
continue $sm;
|
|
896
896
|
case 6:
|
|
897
|
-
throw this.
|
|
897
|
+
throw this.a3y_1;
|
|
898
898
|
case 7:
|
|
899
|
-
this.
|
|
900
|
-
this.
|
|
901
|
-
if (this.
|
|
902
|
-
this.
|
|
903
|
-
suspendResult = this.
|
|
899
|
+
this.k9_1 = 10;
|
|
900
|
+
this.v3x_1.a3v(this.w3x_1.toString());
|
|
901
|
+
if (this.x3x_1 || !this.s3x_1.y3v_1.j3v_1) {
|
|
902
|
+
this.j9_1 = 8;
|
|
903
|
+
suspendResult = this.v3x_1.e3v(this);
|
|
904
904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
905
905
|
return suspendResult;
|
|
906
906
|
}
|
|
907
907
|
continue $sm;
|
|
908
908
|
} else {
|
|
909
|
-
this.
|
|
909
|
+
this.j9_1 = 9;
|
|
910
910
|
continue $sm;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
913
|
case 8:
|
|
914
|
-
this.
|
|
914
|
+
this.j9_1 = 9;
|
|
915
915
|
continue $sm;
|
|
916
916
|
case 9:
|
|
917
917
|
return Unit_instance;
|
|
918
918
|
case 10:
|
|
919
|
-
throw this.
|
|
919
|
+
throw this.m9_1;
|
|
920
920
|
}
|
|
921
921
|
} catch ($p) {
|
|
922
922
|
var e = $p;
|
|
923
|
-
if (this.
|
|
923
|
+
if (this.k9_1 === 10) {
|
|
924
924
|
throw e;
|
|
925
925
|
} else {
|
|
926
|
-
this.
|
|
927
|
-
this.
|
|
926
|
+
this.j9_1 = this.k9_1;
|
|
927
|
+
this.m9_1 = e;
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
while (true);
|
|
931
931
|
};
|
|
932
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
933
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
934
|
-
i.
|
|
935
|
-
i.
|
|
932
|
+
protoOf(Logging$setupResponseLogging$slambda).c33 = function ($this$intercept, response, completion) {
|
|
933
|
+
var i = new Logging$setupResponseLogging$slambda(this.s3x_1, completion);
|
|
934
|
+
i.t3x_1 = $this$intercept;
|
|
935
|
+
i.u3x_1 = response;
|
|
936
936
|
return i;
|
|
937
937
|
};
|
|
938
938
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
939
939
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
940
940
|
var l = function ($this$intercept, response, $completion) {
|
|
941
|
-
return i.
|
|
941
|
+
return i.b33($this$intercept, response, $completion);
|
|
942
942
|
};
|
|
943
943
|
l.$arity = 2;
|
|
944
944
|
return l;
|
|
945
945
|
}
|
|
946
946
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
947
|
-
this.
|
|
947
|
+
this.j3y_1 = this$0;
|
|
948
948
|
CoroutineImpl.call(this, resultContinuation);
|
|
949
949
|
}
|
|
950
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
951
|
-
var tmp = this.
|
|
952
|
-
tmp.
|
|
953
|
-
tmp.
|
|
954
|
-
return tmp.
|
|
950
|
+
protoOf(Logging$setupResponseLogging$slambda_1).j2u = function ($this$intercept, it, $completion) {
|
|
951
|
+
var tmp = this.k2u($this$intercept, it, $completion);
|
|
952
|
+
tmp.l9_1 = Unit_instance;
|
|
953
|
+
tmp.m9_1 = null;
|
|
954
|
+
return tmp.r9();
|
|
955
955
|
};
|
|
956
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
956
|
+
protoOf(Logging$setupResponseLogging$slambda_1).ca = function (p1, p2, $completion) {
|
|
957
957
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
958
|
-
return this.
|
|
958
|
+
return this.j2u(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
959
959
|
};
|
|
960
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
961
|
-
var suspendResult = this.
|
|
960
|
+
protoOf(Logging$setupResponseLogging$slambda_1).r9 = function () {
|
|
961
|
+
var suspendResult = this.l9_1;
|
|
962
962
|
$sm: do
|
|
963
963
|
try {
|
|
964
|
-
var tmp = this.
|
|
964
|
+
var tmp = this.j9_1;
|
|
965
965
|
switch (tmp) {
|
|
966
966
|
case 0:
|
|
967
|
-
this.
|
|
968
|
-
if (this.
|
|
967
|
+
this.k9_1 = 6;
|
|
968
|
+
if (this.j3y_1.y3v_1.equals(LogLevel_NONE_getInstance()) || this.k3y_1.m2c_1.k2w().h25(get_DisableLogging())) {
|
|
969
969
|
return Unit_instance;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
974
|
-
suspendResult = this.
|
|
972
|
+
this.k9_1 = 3;
|
|
973
|
+
this.j9_1 = 1;
|
|
974
|
+
suspendResult = this.k3y_1.r2b(this);
|
|
975
975
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
976
976
|
return suspendResult;
|
|
977
977
|
}
|
|
978
978
|
|
|
979
979
|
continue $sm;
|
|
980
980
|
case 1:
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
981
|
+
this.k9_1 = 6;
|
|
982
|
+
this.j9_1 = 2;
|
|
983
983
|
continue $sm;
|
|
984
984
|
case 2:
|
|
985
|
-
this.
|
|
985
|
+
this.k9_1 = 6;
|
|
986
986
|
return Unit_instance;
|
|
987
987
|
case 3:
|
|
988
|
-
this.
|
|
989
|
-
var tmp_0 = this.
|
|
988
|
+
this.k9_1 = 6;
|
|
989
|
+
var tmp_0 = this.m9_1;
|
|
990
990
|
if (tmp_0 instanceof Error) {
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
994
|
-
logResponseException(this.
|
|
995
|
-
this.
|
|
996
|
-
suspendResult = this.
|
|
991
|
+
this.m3y_1 = this.m9_1;
|
|
992
|
+
this.n3y_1 = StringBuilder_init_$Create$();
|
|
993
|
+
this.o3y_1 = this.k3y_1.m2c_1.k2w().f25(get_ClientCallLogger());
|
|
994
|
+
logResponseException(this.j3y_1, this.n3y_1, this.k3y_1.m2c_1.f2x(), this.m3y_1);
|
|
995
|
+
this.j9_1 = 4;
|
|
996
|
+
suspendResult = this.o3y_1.b3v(this.n3y_1.toString(), this);
|
|
997
997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
998
998
|
return suspendResult;
|
|
999
999
|
}
|
|
1000
1000
|
continue $sm;
|
|
1001
1001
|
} else {
|
|
1002
|
-
throw this.
|
|
1002
|
+
throw this.m9_1;
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
1005
|
case 4:
|
|
1006
|
-
this.
|
|
1007
|
-
suspendResult = this.
|
|
1006
|
+
this.j9_1 = 5;
|
|
1007
|
+
suspendResult = this.o3y_1.e3v(this);
|
|
1008
1008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1009
1009
|
return suspendResult;
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
1012
|
continue $sm;
|
|
1013
1013
|
case 5:
|
|
1014
|
-
throw this.
|
|
1014
|
+
throw this.m3y_1;
|
|
1015
1015
|
case 6:
|
|
1016
|
-
throw this.
|
|
1016
|
+
throw this.m9_1;
|
|
1017
1017
|
}
|
|
1018
1018
|
} catch ($p) {
|
|
1019
1019
|
var e = $p;
|
|
1020
|
-
if (this.
|
|
1020
|
+
if (this.k9_1 === 6) {
|
|
1021
1021
|
throw e;
|
|
1022
1022
|
} else {
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1023
|
+
this.j9_1 = this.k9_1;
|
|
1024
|
+
this.m9_1 = e;
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
while (true);
|
|
1028
1028
|
};
|
|
1029
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1030
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1031
|
-
i.
|
|
1032
|
-
i.
|
|
1029
|
+
protoOf(Logging$setupResponseLogging$slambda_1).k2u = function ($this$intercept, it, completion) {
|
|
1030
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.j3y_1, completion);
|
|
1031
|
+
i.k3y_1 = $this$intercept;
|
|
1032
|
+
i.l3y_1 = it;
|
|
1033
1033
|
return i;
|
|
1034
1034
|
};
|
|
1035
1035
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1036
1036
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1037
1037
|
var l = function ($this$intercept, it, $completion) {
|
|
1038
|
-
return i.
|
|
1038
|
+
return i.j2u($this$intercept, it, $completion);
|
|
1039
1039
|
};
|
|
1040
1040
|
l.$arity = 2;
|
|
1041
1041
|
return l;
|
|
1042
1042
|
}
|
|
1043
1043
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1044
|
-
this.
|
|
1044
|
+
this.x3y_1 = this$0;
|
|
1045
1045
|
CoroutineImpl.call(this, resultContinuation);
|
|
1046
1046
|
}
|
|
1047
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1048
|
-
var tmp = this.
|
|
1049
|
-
tmp.
|
|
1050
|
-
tmp.
|
|
1051
|
-
return tmp.
|
|
1047
|
+
protoOf(Logging$setupResponseLogging$slambda_3).t34 = function (it, $completion) {
|
|
1048
|
+
var tmp = this.u34(it, $completion);
|
|
1049
|
+
tmp.l9_1 = Unit_instance;
|
|
1050
|
+
tmp.m9_1 = null;
|
|
1051
|
+
return tmp.r9();
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1054
|
-
return this.
|
|
1053
|
+
protoOf(Logging$setupResponseLogging$slambda_3).ba = function (p1, $completion) {
|
|
1054
|
+
return this.t34(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1055
1055
|
};
|
|
1056
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1057
|
-
var suspendResult = this.
|
|
1056
|
+
protoOf(Logging$setupResponseLogging$slambda_3).r9 = function () {
|
|
1057
|
+
var suspendResult = this.l9_1;
|
|
1058
1058
|
$sm: do
|
|
1059
1059
|
try {
|
|
1060
|
-
var tmp = this.
|
|
1060
|
+
var tmp = this.j9_1;
|
|
1061
1061
|
switch (tmp) {
|
|
1062
1062
|
case 0:
|
|
1063
|
-
this.
|
|
1064
|
-
if (this.
|
|
1063
|
+
this.k9_1 = 10;
|
|
1064
|
+
if (this.x3y_1.y3v_1.equals(LogLevel_NONE_getInstance()) || this.y3y_1.d2y().k2w().h25(get_DisableLogging())) {
|
|
1065
1065
|
return Unit_instance;
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1068
|
+
this.z3y_1 = this.y3y_1.d2y().k2w().f25(get_ClientCallLogger());
|
|
1069
|
+
this.a3z_1 = StringBuilder_init_$Create$();
|
|
1070
|
+
this.j9_1 = 1;
|
|
1071
1071
|
continue $sm;
|
|
1072
1072
|
case 1:
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1076
|
-
suspendResult = logResponseBody(this.
|
|
1073
|
+
this.k9_1 = 4;
|
|
1074
|
+
this.k9_1 = 3;
|
|
1075
|
+
this.j9_1 = 2;
|
|
1076
|
+
suspendResult = logResponseBody(this.a3z_1, contentType(this.y3y_1), this.y3y_1.g2x(), this);
|
|
1077
1077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1078
1078
|
return suspendResult;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
1081
|
continue $sm;
|
|
1082
1082
|
case 2:
|
|
1083
|
-
this.
|
|
1084
|
-
this.
|
|
1085
|
-
this.
|
|
1083
|
+
this.b3z_1 = suspendResult;
|
|
1084
|
+
this.k9_1 = 10;
|
|
1085
|
+
this.j9_1 = 7;
|
|
1086
1086
|
continue $sm;
|
|
1087
1087
|
case 3:
|
|
1088
|
-
this.
|
|
1089
|
-
var tmp_0 = this.
|
|
1088
|
+
this.k9_1 = 4;
|
|
1089
|
+
var tmp_0 = this.m9_1;
|
|
1090
1090
|
if (tmp_0 instanceof Error) {
|
|
1091
|
-
this.
|
|
1091
|
+
this.c3z_1 = this.m9_1;
|
|
1092
1092
|
var tmp_1 = this;
|
|
1093
|
-
tmp_1.
|
|
1094
|
-
this.
|
|
1095
|
-
this.
|
|
1093
|
+
tmp_1.b3z_1 = Unit_instance;
|
|
1094
|
+
this.k9_1 = 10;
|
|
1095
|
+
this.j9_1 = 7;
|
|
1096
1096
|
continue $sm;
|
|
1097
1097
|
} else {
|
|
1098
|
-
throw this.
|
|
1098
|
+
throw this.m9_1;
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
1101
|
case 4:
|
|
1102
|
-
this.
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1105
|
-
var this_0 = this.
|
|
1106
|
-
suspendResult = this.
|
|
1102
|
+
this.k9_1 = 10;
|
|
1103
|
+
this.d3z_1 = this.m9_1;
|
|
1104
|
+
this.j9_1 = 5;
|
|
1105
|
+
var this_0 = this.a3z_1.toString();
|
|
1106
|
+
suspendResult = this.z3y_1.c3v(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1107
1107
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1108
1108
|
return suspendResult;
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
1111
|
continue $sm;
|
|
1112
1112
|
case 5:
|
|
1113
|
-
this.
|
|
1114
|
-
suspendResult = this.
|
|
1113
|
+
this.j9_1 = 6;
|
|
1114
|
+
suspendResult = this.z3y_1.e3v(this);
|
|
1115
1115
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1116
1116
|
return suspendResult;
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
continue $sm;
|
|
1120
1120
|
case 6:
|
|
1121
|
-
throw this.
|
|
1121
|
+
throw this.d3z_1;
|
|
1122
1122
|
case 7:
|
|
1123
|
-
this.
|
|
1124
|
-
this.
|
|
1125
|
-
var this_1 = this.
|
|
1126
|
-
suspendResult = this.
|
|
1123
|
+
this.k9_1 = 10;
|
|
1124
|
+
this.j9_1 = 8;
|
|
1125
|
+
var this_1 = this.a3z_1.toString();
|
|
1126
|
+
suspendResult = this.z3y_1.c3v(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1127
1127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1128
1128
|
return suspendResult;
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
1131
|
continue $sm;
|
|
1132
1132
|
case 8:
|
|
1133
|
-
this.
|
|
1134
|
-
suspendResult = this.
|
|
1133
|
+
this.j9_1 = 9;
|
|
1134
|
+
suspendResult = this.z3y_1.e3v(this);
|
|
1135
1135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1136
1136
|
return suspendResult;
|
|
1137
1137
|
}
|
|
@@ -1140,28 +1140,28 @@
|
|
|
1140
1140
|
case 9:
|
|
1141
1141
|
return Unit_instance;
|
|
1142
1142
|
case 10:
|
|
1143
|
-
throw this.
|
|
1143
|
+
throw this.m9_1;
|
|
1144
1144
|
}
|
|
1145
1145
|
} catch ($p) {
|
|
1146
1146
|
var e = $p;
|
|
1147
|
-
if (this.
|
|
1147
|
+
if (this.k9_1 === 10) {
|
|
1148
1148
|
throw e;
|
|
1149
1149
|
} else {
|
|
1150
|
-
this.
|
|
1151
|
-
this.
|
|
1150
|
+
this.j9_1 = this.k9_1;
|
|
1151
|
+
this.m9_1 = e;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
1154
|
while (true);
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1157
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1158
|
-
i.
|
|
1156
|
+
protoOf(Logging$setupResponseLogging$slambda_3).u34 = function (it, completion) {
|
|
1157
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.x3y_1, completion);
|
|
1158
|
+
i.y3y_1 = it;
|
|
1159
1159
|
return i;
|
|
1160
1160
|
};
|
|
1161
1161
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1162
1162
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1163
1163
|
var l = function (it, $completion) {
|
|
1164
|
-
return i.
|
|
1164
|
+
return i.t34(it, $completion);
|
|
1165
1165
|
};
|
|
1166
1166
|
l.$arity = 1;
|
|
1167
1167
|
return l;
|
|
@@ -1169,10 +1169,10 @@
|
|
|
1169
1169
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1170
1170
|
Companion_getInstance_0();
|
|
1171
1171
|
filters = filters === VOID ? emptyList() : filters;
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1172
|
+
this.x3v_1 = logger;
|
|
1173
|
+
this.y3v_1 = level;
|
|
1174
|
+
this.z3v_1 = filters;
|
|
1175
|
+
this.a3w_1 = sanitizedHeaders;
|
|
1176
1176
|
}
|
|
1177
1177
|
var properties_initialized_Logging_kt_588vu7;
|
|
1178
1178
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
while (tmp0_iterator_0.k()) {
|
|
1206
1206
|
var element_0 = tmp0_iterator_0.l();
|
|
1207
1207
|
// Inline function 'io.ktor.client.plugins.logging.logHeaders.<anonymous>.<anonymous>' call
|
|
1208
|
-
if (element_0.
|
|
1208
|
+
if (element_0.c3w_1(key)) {
|
|
1209
1209
|
tmp$ret$5 = element_0;
|
|
1210
1210
|
break $l$block;
|
|
1211
1211
|
}
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
tmp$ret$5 = null;
|
|
1214
1214
|
}
|
|
1215
1215
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1216
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1216
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3w_1;
|
|
1217
1217
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
@@ -1221,57 +1221,57 @@
|
|
|
1221
1221
|
// Inline function 'kotlin.text.appendLine' call
|
|
1222
1222
|
var value_0 = '-> ' + key + ': ' + value;
|
|
1223
1223
|
// Inline function 'kotlin.text.appendLine' call
|
|
1224
|
-
_this__u8e3s4.f(value_0).
|
|
1224
|
+
_this__u8e3s4.f(value_0).t8(_Char___init__impl__6a9atx(10));
|
|
1225
1225
|
}
|
|
1226
1226
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1227
1227
|
// Inline function 'kotlin.with' call
|
|
1228
1228
|
// Inline function 'kotlin.contracts.contract' call
|
|
1229
|
-
if (level.
|
|
1229
|
+
if (level.h3v_1) {
|
|
1230
1230
|
// Inline function 'kotlin.text.appendLine' call
|
|
1231
|
-
var value = 'RESPONSE: ' + response.
|
|
1231
|
+
var value = 'RESPONSE: ' + response.p2o().toString();
|
|
1232
1232
|
// Inline function 'kotlin.text.appendLine' call
|
|
1233
|
-
log.
|
|
1233
|
+
log.s8(value).t8(_Char___init__impl__6a9atx(10));
|
|
1234
1234
|
// Inline function 'kotlin.text.appendLine' call
|
|
1235
|
-
var value_0 = 'METHOD: ' + response.
|
|
1235
|
+
var value_0 = 'METHOD: ' + response.d2y().f2x().e2y().toString();
|
|
1236
1236
|
// Inline function 'kotlin.text.appendLine' call
|
|
1237
|
-
log.
|
|
1237
|
+
log.s8(value_0).t8(_Char___init__impl__6a9atx(10));
|
|
1238
1238
|
// Inline function 'kotlin.text.appendLine' call
|
|
1239
|
-
var value_1 = 'FROM: ' + response.
|
|
1239
|
+
var value_1 = 'FROM: ' + response.d2y().f2x().i2x().toString();
|
|
1240
1240
|
// Inline function 'kotlin.text.appendLine' call
|
|
1241
|
-
log.
|
|
1241
|
+
log.s8(value_1).t8(_Char___init__impl__6a9atx(10));
|
|
1242
1242
|
}
|
|
1243
|
-
if (level.
|
|
1243
|
+
if (level.i3v_1) {
|
|
1244
1244
|
// Inline function 'kotlin.text.appendLine' call
|
|
1245
1245
|
var value_2 = 'COMMON HEADERS';
|
|
1246
1246
|
// Inline function 'kotlin.text.appendLine' call
|
|
1247
|
-
log.
|
|
1248
|
-
logHeaders(log, response.
|
|
1247
|
+
log.s8(value_2).t8(_Char___init__impl__6a9atx(10));
|
|
1248
|
+
logHeaders(log, response.k2j().j29(), sanitizedHeaders);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
function logResponseBody(log, contentType, content, $completion) {
|
|
1252
1252
|
var tmp = new $logResponseBodyCOROUTINE$4(log, contentType, content, $completion);
|
|
1253
|
-
tmp.
|
|
1254
|
-
tmp.
|
|
1255
|
-
return tmp.
|
|
1253
|
+
tmp.l9_1 = Unit_instance;
|
|
1254
|
+
tmp.m9_1 = null;
|
|
1255
|
+
return tmp.r9();
|
|
1256
1256
|
}
|
|
1257
1257
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1258
|
-
this.
|
|
1258
|
+
this.u3z_1 = function_0;
|
|
1259
1259
|
}
|
|
1260
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1261
|
-
return this.
|
|
1260
|
+
protoOf(sam$kotlin_Comparator$0).rc = function (a, b) {
|
|
1261
|
+
return this.u3z_1(a, b);
|
|
1262
1262
|
};
|
|
1263
1263
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1264
|
-
return this.
|
|
1264
|
+
return this.rc(a, b);
|
|
1265
1265
|
};
|
|
1266
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1267
|
-
return this.
|
|
1266
|
+
protoOf(sam$kotlin_Comparator$0).t3 = function () {
|
|
1267
|
+
return this.u3z_1;
|
|
1268
1268
|
};
|
|
1269
1269
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1270
1270
|
var tmp;
|
|
1271
1271
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1272
1272
|
var tmp_0;
|
|
1273
1273
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1274
|
-
tmp_0 = equals(this.
|
|
1274
|
+
tmp_0 = equals(this.t3(), other.t3());
|
|
1275
1275
|
} else {
|
|
1276
1276
|
tmp_0 = false;
|
|
1277
1277
|
}
|
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
return tmp;
|
|
1283
1283
|
};
|
|
1284
1284
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1285
|
-
return hashCode(this.
|
|
1285
|
+
return hashCode(this.t3());
|
|
1286
1286
|
};
|
|
1287
1287
|
function logHeaders$lambda(a, b) {
|
|
1288
1288
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
@@ -1294,37 +1294,37 @@
|
|
|
1294
1294
|
}
|
|
1295
1295
|
function $logResponseBodyCOROUTINE$4(log, contentType, content, resultContinuation) {
|
|
1296
1296
|
CoroutineImpl.call(this, resultContinuation);
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1297
|
+
this.m3z_1 = log;
|
|
1298
|
+
this.n3z_1 = contentType;
|
|
1299
|
+
this.o3z_1 = content;
|
|
1300
1300
|
}
|
|
1301
|
-
protoOf($logResponseBodyCOROUTINE$4).
|
|
1302
|
-
var suspendResult = this.
|
|
1301
|
+
protoOf($logResponseBodyCOROUTINE$4).r9 = function () {
|
|
1302
|
+
var suspendResult = this.l9_1;
|
|
1303
1303
|
$sm: do
|
|
1304
1304
|
try {
|
|
1305
|
-
var tmp = this.
|
|
1305
|
+
var tmp = this.j9_1;
|
|
1306
1306
|
switch (tmp) {
|
|
1307
1307
|
case 0:
|
|
1308
|
-
this.
|
|
1308
|
+
this.k9_1 = 4;
|
|
1309
1309
|
var tmp_0 = this;
|
|
1310
|
-
tmp_0.
|
|
1310
|
+
tmp_0.p3z_1 = this.m3z_1;
|
|
1311
1311
|
var tmp_1 = this;
|
|
1312
|
-
tmp_1.
|
|
1313
|
-
var this_0 = this.
|
|
1314
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
1315
|
-
this_0.
|
|
1316
|
-
var this_1 = this.
|
|
1312
|
+
tmp_1.q3z_1 = this.p3z_1;
|
|
1313
|
+
var this_0 = this.q3z_1;
|
|
1314
|
+
var value = 'BODY Content-Type: ' + toString_0(this.n3z_1);
|
|
1315
|
+
this_0.s8(value).t8(_Char___init__impl__6a9atx(10));
|
|
1316
|
+
var this_1 = this.q3z_1;
|
|
1317
1317
|
var value_0 = 'BODY START';
|
|
1318
|
-
this_1.
|
|
1318
|
+
this_1.s8(value_0).t8(_Char___init__impl__6a9atx(10));
|
|
1319
1319
|
var tmp_2 = this;
|
|
1320
|
-
tmp_2.
|
|
1320
|
+
tmp_2.r3z_1 = this.o3z_1;
|
|
1321
1321
|
var tmp_3 = this;
|
|
1322
|
-
var tmp0_safe_receiver = this.
|
|
1322
|
+
var tmp0_safe_receiver = this.n3z_1;
|
|
1323
1323
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1324
|
-
tmp_3.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
suspendResult = this.
|
|
1324
|
+
tmp_3.s3z_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().m21_1 : tmp1_elvis_lhs;
|
|
1325
|
+
this.k9_1 = 2;
|
|
1326
|
+
this.j9_1 = 1;
|
|
1327
|
+
suspendResult = this.r3z_1.x1w(VOID, this);
|
|
1328
1328
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1329
1329
|
return suspendResult;
|
|
1330
1330
|
}
|
|
@@ -1332,78 +1332,78 @@
|
|
|
1332
1332
|
continue $sm;
|
|
1333
1333
|
case 1:
|
|
1334
1334
|
var ARGUMENT = suspendResult;
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1335
|
+
this.t3z_1 = readText(ARGUMENT, this.s3z_1);
|
|
1336
|
+
this.k9_1 = 4;
|
|
1337
|
+
this.j9_1 = 3;
|
|
1338
1338
|
continue $sm;
|
|
1339
1339
|
case 2:
|
|
1340
|
-
this.
|
|
1341
|
-
var tmp_4 = this.
|
|
1340
|
+
this.k9_1 = 4;
|
|
1341
|
+
var tmp_4 = this.m9_1;
|
|
1342
1342
|
if (tmp_4 instanceof Error) {
|
|
1343
|
-
var cause = this.
|
|
1343
|
+
var cause = this.m9_1;
|
|
1344
1344
|
var tmp_5 = this;
|
|
1345
|
-
tmp_5.
|
|
1346
|
-
this.
|
|
1345
|
+
tmp_5.t3z_1 = null;
|
|
1346
|
+
this.j9_1 = 3;
|
|
1347
1347
|
continue $sm;
|
|
1348
1348
|
} else {
|
|
1349
|
-
throw this.
|
|
1349
|
+
throw this.m9_1;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
case 3:
|
|
1353
|
-
this.
|
|
1354
|
-
var tmp2_elvis_lhs = this.
|
|
1353
|
+
this.k9_1 = 4;
|
|
1354
|
+
var tmp2_elvis_lhs = this.t3z_1;
|
|
1355
1355
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1356
|
+
this.q3z_1.s8(message).t8(_Char___init__impl__6a9atx(10));
|
|
1357
|
+
this.q3z_1.s8('BODY END');
|
|
1358
1358
|
return Unit_instance;
|
|
1359
1359
|
case 4:
|
|
1360
|
-
throw this.
|
|
1360
|
+
throw this.m9_1;
|
|
1361
1361
|
}
|
|
1362
1362
|
} catch ($p) {
|
|
1363
1363
|
var e = $p;
|
|
1364
|
-
if (this.
|
|
1364
|
+
if (this.k9_1 === 4) {
|
|
1365
1365
|
throw e;
|
|
1366
1366
|
} else {
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1367
|
+
this.j9_1 = this.k9_1;
|
|
1368
|
+
this.m9_1 = e;
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
1371
|
while (true);
|
|
1372
1372
|
};
|
|
1373
1373
|
function observe(_this__u8e3s4, log, $completion) {
|
|
1374
1374
|
var tmp = new $observeCOROUTINE$5(_this__u8e3s4, log, $completion);
|
|
1375
|
-
tmp.
|
|
1376
|
-
tmp.
|
|
1377
|
-
return tmp.
|
|
1375
|
+
tmp.l9_1 = Unit_instance;
|
|
1376
|
+
tmp.m9_1 = null;
|
|
1377
|
+
return tmp.r9();
|
|
1378
1378
|
}
|
|
1379
1379
|
function toReadChannel(_this__u8e3s4) {
|
|
1380
1380
|
var tmp = GlobalScope_instance;
|
|
1381
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1382
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1381
|
+
var tmp_0 = Dispatchers_getInstance().t10_1;
|
|
1382
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).k11();
|
|
1383
1383
|
}
|
|
1384
1384
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1385
|
-
this.
|
|
1385
|
+
this.p40_1 = $this_toReadChannel;
|
|
1386
1386
|
CoroutineImpl.call(this, resultContinuation);
|
|
1387
1387
|
}
|
|
1388
|
-
protoOf(toReadChannel$slambda).
|
|
1389
|
-
var tmp = this.
|
|
1390
|
-
tmp.
|
|
1391
|
-
tmp.
|
|
1392
|
-
return tmp.
|
|
1388
|
+
protoOf(toReadChannel$slambda).b2z = function ($this$writer, $completion) {
|
|
1389
|
+
var tmp = this.c2z($this$writer, $completion);
|
|
1390
|
+
tmp.l9_1 = Unit_instance;
|
|
1391
|
+
tmp.m9_1 = null;
|
|
1392
|
+
return tmp.r9();
|
|
1393
1393
|
};
|
|
1394
|
-
protoOf(toReadChannel$slambda).
|
|
1395
|
-
return this.
|
|
1394
|
+
protoOf(toReadChannel$slambda).ba = function (p1, $completion) {
|
|
1395
|
+
return this.b2z((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1396
1396
|
};
|
|
1397
|
-
protoOf(toReadChannel$slambda).
|
|
1398
|
-
var suspendResult = this.
|
|
1397
|
+
protoOf(toReadChannel$slambda).r9 = function () {
|
|
1398
|
+
var suspendResult = this.l9_1;
|
|
1399
1399
|
$sm: do
|
|
1400
1400
|
try {
|
|
1401
|
-
var tmp = this.
|
|
1401
|
+
var tmp = this.j9_1;
|
|
1402
1402
|
switch (tmp) {
|
|
1403
1403
|
case 0:
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
suspendResult = this.
|
|
1404
|
+
this.k9_1 = 2;
|
|
1405
|
+
this.j9_1 = 1;
|
|
1406
|
+
suspendResult = this.p40_1.w2o(this.q40_1.k11(), this);
|
|
1407
1407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1408
1408
|
return suspendResult;
|
|
1409
1409
|
}
|
|
@@ -1412,101 +1412,101 @@
|
|
|
1412
1412
|
case 1:
|
|
1413
1413
|
return Unit_instance;
|
|
1414
1414
|
case 2:
|
|
1415
|
-
throw this.
|
|
1415
|
+
throw this.m9_1;
|
|
1416
1416
|
}
|
|
1417
1417
|
} catch ($p) {
|
|
1418
1418
|
var e = $p;
|
|
1419
|
-
if (this.
|
|
1419
|
+
if (this.k9_1 === 2) {
|
|
1420
1420
|
throw e;
|
|
1421
1421
|
} else {
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1422
|
+
this.j9_1 = this.k9_1;
|
|
1423
|
+
this.m9_1 = e;
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
1426
|
while (true);
|
|
1427
1427
|
};
|
|
1428
|
-
protoOf(toReadChannel$slambda).
|
|
1429
|
-
var i = new toReadChannel$slambda(this.
|
|
1430
|
-
i.
|
|
1428
|
+
protoOf(toReadChannel$slambda).c2z = function ($this$writer, completion) {
|
|
1429
|
+
var i = new toReadChannel$slambda(this.p40_1, completion);
|
|
1430
|
+
i.q40_1 = $this$writer;
|
|
1431
1431
|
return i;
|
|
1432
1432
|
};
|
|
1433
1433
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1434
1434
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1435
1435
|
var l = function ($this$writer, $completion) {
|
|
1436
|
-
return i.
|
|
1436
|
+
return i.b2z($this$writer, $completion);
|
|
1437
1437
|
};
|
|
1438
1438
|
l.$arity = 1;
|
|
1439
1439
|
return l;
|
|
1440
1440
|
}
|
|
1441
1441
|
function $observeCOROUTINE$5(_this__u8e3s4, log, resultContinuation) {
|
|
1442
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1443
|
+
this.d40_1 = _this__u8e3s4;
|
|
1444
|
+
this.e40_1 = log;
|
|
1445
1445
|
}
|
|
1446
|
-
protoOf($observeCOROUTINE$5).
|
|
1447
|
-
var suspendResult = this.
|
|
1446
|
+
protoOf($observeCOROUTINE$5).r9 = function () {
|
|
1447
|
+
var suspendResult = this.l9_1;
|
|
1448
1448
|
$sm: do
|
|
1449
1449
|
try {
|
|
1450
|
-
var tmp = this.
|
|
1450
|
+
var tmp = this.j9_1;
|
|
1451
1451
|
switch (tmp) {
|
|
1452
1452
|
case 0:
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
var tmp_0 = this.
|
|
1453
|
+
this.k9_1 = 3;
|
|
1454
|
+
this.f40_1 = this.d40_1;
|
|
1455
|
+
var tmp_0 = this.f40_1;
|
|
1456
1456
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
1457
|
-
this.
|
|
1458
|
-
suspendResult = writeFully(this.
|
|
1457
|
+
this.j9_1 = 1;
|
|
1458
|
+
suspendResult = writeFully(this.e40_1, this.d40_1.r2o(), this);
|
|
1459
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1460
1460
|
return suspendResult;
|
|
1461
1461
|
}
|
|
1462
1462
|
continue $sm;
|
|
1463
1463
|
} else {
|
|
1464
|
-
var tmp_1 = this.
|
|
1464
|
+
var tmp_1 = this.f40_1;
|
|
1465
1465
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
1466
1466
|
var tmp_2 = this;
|
|
1467
1467
|
var responseChannel = ByteChannel();
|
|
1468
|
-
var content = this.
|
|
1469
|
-
copyToBoth(content, this.
|
|
1470
|
-
tmp_2.
|
|
1471
|
-
this.
|
|
1468
|
+
var content = this.d40_1.u2o();
|
|
1469
|
+
copyToBoth(content, this.e40_1, responseChannel);
|
|
1470
|
+
tmp_2.g40_1 = new LoggedContent(this.d40_1, responseChannel);
|
|
1471
|
+
this.j9_1 = 2;
|
|
1472
1472
|
continue $sm;
|
|
1473
1473
|
} else {
|
|
1474
|
-
var tmp_3 = this.
|
|
1474
|
+
var tmp_3 = this.f40_1;
|
|
1475
1475
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
1476
1476
|
var tmp_4 = this;
|
|
1477
1477
|
var responseChannel_0 = ByteChannel();
|
|
1478
|
-
var content_0 = toReadChannel(this.
|
|
1479
|
-
copyToBoth(content_0, this.
|
|
1480
|
-
tmp_4.
|
|
1481
|
-
this.
|
|
1478
|
+
var content_0 = toReadChannel(this.d40_1);
|
|
1479
|
+
copyToBoth(content_0, this.e40_1, responseChannel_0);
|
|
1480
|
+
tmp_4.g40_1 = new LoggedContent(this.d40_1, responseChannel_0);
|
|
1481
|
+
this.j9_1 = 2;
|
|
1482
1482
|
continue $sm;
|
|
1483
1483
|
} else {
|
|
1484
1484
|
var tmp_5 = this;
|
|
1485
|
-
close(this.
|
|
1486
|
-
tmp_5.
|
|
1487
|
-
this.
|
|
1485
|
+
close(this.e40_1);
|
|
1486
|
+
tmp_5.g40_1 = this.d40_1;
|
|
1487
|
+
this.j9_1 = 2;
|
|
1488
1488
|
continue $sm;
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
1493
1493
|
case 1:
|
|
1494
|
-
close(this.
|
|
1495
|
-
this.
|
|
1496
|
-
this.
|
|
1494
|
+
close(this.e40_1);
|
|
1495
|
+
this.g40_1 = this.d40_1;
|
|
1496
|
+
this.j9_1 = 2;
|
|
1497
1497
|
continue $sm;
|
|
1498
1498
|
case 2:
|
|
1499
|
-
return this.
|
|
1499
|
+
return this.g40_1;
|
|
1500
1500
|
case 3:
|
|
1501
|
-
throw this.
|
|
1501
|
+
throw this.m9_1;
|
|
1502
1502
|
}
|
|
1503
1503
|
} catch ($p) {
|
|
1504
1504
|
var e = $p;
|
|
1505
|
-
if (this.
|
|
1505
|
+
if (this.k9_1 === 3) {
|
|
1506
1506
|
throw e;
|
|
1507
1507
|
} else {
|
|
1508
|
-
this.
|
|
1509
|
-
this.
|
|
1508
|
+
this.j9_1 = this.k9_1;
|
|
1509
|
+
this.m9_1 = e;
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
while (true);
|