game_client_logic_deb 1.8.431 → 1.8.432
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 +2 -2
- package/Kosi-Kodein-kodein-di.js +16 -16
- package/Kotlin-DateTime-library-kotlinx-datetime.js +152 -152
- package/Logic_Debertz-ai_module.js +193 -193
- package/Logic_Debertz-core.js +500 -500
- package/Logic_Debertz-engine.js +3660 -3642
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +1 -0
- package/Logic_Debertz-game_client.js +454 -454
- package/kotlin-kotlin-stdlib.js +556 -550
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2134 -2134
- package/kotlinx-io-kotlinx-io-core.js +314 -314
- package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1442 -1442
- package/ktor-ktor-client-logging.js +265 -265
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +590 -590
- package/ktor-ktor-io.js +1241 -1241
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +61 -61
- package/ktor-ktor-utils.js +483 -483
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/random-library-crypto-rand.js +1 -1
- package/random-library-secure-random.js +2 -2
- package/raspberry-cardgame-lib-core.js +7 -7
- package/raspberry-cardgame-lib-logger.js +90 -90
- package/raspberry-cardgame-lib-random.js +756 -756
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +12 -12
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
//endregion
|
|
119
119
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
120
120
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.e4n_1 = _this__u8e3s4;
|
|
122
|
+
this.f4n_1 = message;
|
|
123
123
|
}
|
|
124
124
|
protoOf($logResponseExceptionCOROUTINE$).a9 = function () {
|
|
125
125
|
var suspendResult = this.u8_1;
|
|
@@ -130,15 +130,15 @@
|
|
|
130
130
|
case 0:
|
|
131
131
|
this.t8_1 = 2;
|
|
132
132
|
this.s8_1 = 1;
|
|
133
|
-
suspendResult = this.
|
|
133
|
+
suspendResult = this.e4n_1.j4n_1.k1q(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.f4n_1;
|
|
141
|
+
this.e4n_1.g4n_1.n4n(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
142
|
return Unit_instance;
|
|
143
143
|
case 2:
|
|
144
144
|
throw this.v8_1;
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
};
|
|
157
157
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.w4n_1 = _this__u8e3s4;
|
|
160
|
+
this.x4n_1 = message;
|
|
161
161
|
}
|
|
162
162
|
protoOf($logResponseBodyCOROUTINE$).a9 = function () {
|
|
163
163
|
var suspendResult = this.u8_1;
|
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
case 0:
|
|
169
169
|
this.t8_1 = 2;
|
|
170
170
|
this.s8_1 = 1;
|
|
171
|
-
suspendResult = this.
|
|
171
|
+
suspendResult = this.w4n_1.k4n_1.k1q(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.
|
|
178
|
+
this.w4n_1.i4n_1.d8(this.x4n_1);
|
|
179
179
|
return Unit_instance;
|
|
180
180
|
case 2:
|
|
181
181
|
throw this.v8_1;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
};
|
|
194
194
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
195
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
196
|
+
this.g4o_1 = _this__u8e3s4;
|
|
197
197
|
}
|
|
198
198
|
protoOf($closeResponseLogCOROUTINE$).a9 = function () {
|
|
199
199
|
var suspendResult = this.u8_1;
|
|
@@ -203,19 +203,19 @@
|
|
|
203
203
|
switch (tmp) {
|
|
204
204
|
case 0:
|
|
205
205
|
this.t8_1 = 2;
|
|
206
|
-
if (!this.
|
|
206
|
+
if (!this.g4o_1.m4n_1.atomicfu$compareAndSet(false, true))
|
|
207
207
|
return Unit_instance;
|
|
208
208
|
this.s8_1 = 1;
|
|
209
|
-
suspendResult = this.
|
|
209
|
+
suspendResult = this.g4o_1.j4n_1.k1q(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.g4o_1.i4n_1));
|
|
217
217
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
218
|
+
this.g4o_1.g4n_1.n4n(message);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return Unit_instance;
|
|
@@ -234,57 +234,57 @@
|
|
|
234
234
|
while (true);
|
|
235
235
|
};
|
|
236
236
|
function HttpClientCallLogger(logger) {
|
|
237
|
-
this.
|
|
238
|
-
this.g4n_1 = StringBuilder_init_$Create$();
|
|
237
|
+
this.g4n_1 = logger;
|
|
239
238
|
this.h4n_1 = StringBuilder_init_$Create$();
|
|
240
|
-
this.i4n_1 =
|
|
239
|
+
this.i4n_1 = StringBuilder_init_$Create$();
|
|
241
240
|
this.j4n_1 = Job();
|
|
242
|
-
this.k4n_1 =
|
|
241
|
+
this.k4n_1 = Job();
|
|
243
242
|
this.l4n_1 = atomic$boolean$1(false);
|
|
243
|
+
this.m4n_1 = atomic$boolean$1(false);
|
|
244
244
|
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
246
|
-
var tmp0 = this.
|
|
245
|
+
protoOf(HttpClientCallLogger).h4o = function (message) {
|
|
246
|
+
var tmp0 = this.h4n_1;
|
|
247
247
|
// Inline function 'kotlin.text.trim' call
|
|
248
248
|
// Inline function 'kotlin.text.appendLine' call
|
|
249
249
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
250
250
|
// Inline function 'kotlin.text.appendLine' call
|
|
251
251
|
tmp0.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
252
252
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
254
|
-
var tmp0 = this.
|
|
253
|
+
protoOf(HttpClientCallLogger).i4o = function (message) {
|
|
254
|
+
var tmp0 = this.i4n_1;
|
|
255
255
|
// Inline function 'kotlin.text.trim' call
|
|
256
256
|
// Inline function 'kotlin.text.appendLine' call
|
|
257
257
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
258
258
|
// Inline function 'kotlin.text.appendLine' call
|
|
259
259
|
tmp0.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
260
|
-
this.
|
|
260
|
+
this.k4n_1.l1x();
|
|
261
261
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
262
|
+
protoOf(HttpClientCallLogger).j4o = function (message, $completion) {
|
|
263
263
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
264
264
|
tmp.u8_1 = Unit_instance;
|
|
265
265
|
tmp.v8_1 = null;
|
|
266
266
|
return tmp.a9();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
268
|
+
protoOf(HttpClientCallLogger).k4o = function (message, $completion) {
|
|
269
269
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
270
270
|
tmp.u8_1 = Unit_instance;
|
|
271
271
|
tmp.v8_1 = null;
|
|
272
272
|
return tmp.a9();
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
274
|
+
protoOf(HttpClientCallLogger).l4o = function () {
|
|
275
|
+
if (!this.l4n_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.h4n_1));
|
|
279
279
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
280
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
281
|
+
this.g4n_1.n4n(message);
|
|
282
282
|
}
|
|
283
283
|
}finally {
|
|
284
|
-
this.
|
|
284
|
+
this.j4n_1.l1x();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
+
protoOf(HttpClientCallLogger).m4o = function ($completion) {
|
|
288
288
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
289
289
|
tmp.u8_1 = Unit_instance;
|
|
290
290
|
tmp.v8_1 = null;
|
|
@@ -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.p4o_1 = info;
|
|
312
|
+
this.q4o_1 = headers;
|
|
313
|
+
this.r4o_1 = body;
|
|
314
314
|
}
|
|
315
315
|
function LogLevel_ALL_getInstance() {
|
|
316
316
|
LogLevel_initEntries();
|
|
@@ -330,27 +330,27 @@
|
|
|
330
330
|
}
|
|
331
331
|
function LoggedContent(originalContent, channel) {
|
|
332
332
|
ReadChannelContent.call(this);
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
333
|
+
this.t4o_1 = originalContent;
|
|
334
|
+
this.u4o_1 = channel;
|
|
335
|
+
this.v4o_1 = this.t4o_1.n3n();
|
|
336
|
+
this.w4o_1 = this.t4o_1.p3n();
|
|
337
|
+
this.x4o_1 = this.t4o_1.o3n();
|
|
338
|
+
this.y4o_1 = this.t4o_1.j3i();
|
|
339
339
|
}
|
|
340
|
-
protoOf(LoggedContent).
|
|
341
|
-
return this.u4o_1;
|
|
342
|
-
};
|
|
343
|
-
protoOf(LoggedContent).o3n = function () {
|
|
340
|
+
protoOf(LoggedContent).n3n = function () {
|
|
344
341
|
return this.v4o_1;
|
|
345
342
|
};
|
|
346
|
-
protoOf(LoggedContent).
|
|
343
|
+
protoOf(LoggedContent).p3n = function () {
|
|
347
344
|
return this.w4o_1;
|
|
348
345
|
};
|
|
349
|
-
protoOf(LoggedContent).
|
|
346
|
+
protoOf(LoggedContent).o3n = function () {
|
|
350
347
|
return this.x4o_1;
|
|
351
348
|
};
|
|
352
|
-
protoOf(LoggedContent).
|
|
353
|
-
return this.
|
|
349
|
+
protoOf(LoggedContent).j3i = function () {
|
|
350
|
+
return this.y4o_1;
|
|
351
|
+
};
|
|
352
|
+
protoOf(LoggedContent).t3n = function () {
|
|
353
|
+
return this.u4o_1;
|
|
354
354
|
};
|
|
355
355
|
function Companion() {
|
|
356
356
|
}
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
}
|
|
364
364
|
function SimpleLogger() {
|
|
365
365
|
}
|
|
366
|
-
protoOf(SimpleLogger).
|
|
366
|
+
protoOf(SimpleLogger).n4n = function (message) {
|
|
367
367
|
println('HttpClient: ' + message);
|
|
368
368
|
};
|
|
369
369
|
function get_ClientCallLogger() {
|
|
@@ -379,60 +379,60 @@
|
|
|
379
379
|
function Config() {
|
|
380
380
|
var tmp = this;
|
|
381
381
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
382
|
-
tmp.
|
|
382
|
+
tmp.z4o_1 = ArrayList_init_$Create$();
|
|
383
383
|
var tmp_0 = this;
|
|
384
384
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
385
|
-
tmp_0.
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
385
|
+
tmp_0.a4p_1 = ArrayList_init_$Create$();
|
|
386
|
+
this.b4p_1 = null;
|
|
387
|
+
this.c4p_1 = LogLevel_HEADERS_getInstance();
|
|
388
388
|
}
|
|
389
|
-
protoOf(Config).
|
|
390
|
-
this.
|
|
389
|
+
protoOf(Config).d4p = function (value) {
|
|
390
|
+
this.b4p_1 = value;
|
|
391
391
|
};
|
|
392
|
-
protoOf(Config).
|
|
393
|
-
var tmp0_elvis_lhs = this.
|
|
392
|
+
protoOf(Config).e4p = function () {
|
|
393
|
+
var tmp0_elvis_lhs = this.b4p_1;
|
|
394
394
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
395
395
|
};
|
|
396
396
|
function setupRequestLogging($this, client) {
|
|
397
|
-
var tmp = Phases_getInstance().
|
|
398
|
-
client.
|
|
397
|
+
var tmp = Phases_getInstance().a3s_1;
|
|
398
|
+
client.l3p_1.p3b(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
399
399
|
}
|
|
400
400
|
function logRequest($this, request, $completion) {
|
|
401
|
-
var tmp = request.
|
|
401
|
+
var tmp = request.l3r_1;
|
|
402
402
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
403
|
-
var logger = new HttpClientCallLogger($this.
|
|
404
|
-
request.
|
|
403
|
+
var logger = new HttpClientCallLogger($this.f4p_1);
|
|
404
|
+
request.n3r_1.n34(get_ClientCallLogger(), logger);
|
|
405
405
|
// Inline function 'kotlin.text.buildString' call
|
|
406
406
|
// Inline function 'kotlin.apply' call
|
|
407
407
|
var this_0 = StringBuilder_init_$Create$();
|
|
408
|
-
if ($this.
|
|
408
|
+
if ($this.g4p_1.p4o_1) {
|
|
409
409
|
// Inline function 'kotlin.text.appendLine' call
|
|
410
|
-
var value = 'REQUEST: ' + Url(request.
|
|
410
|
+
var value = 'REQUEST: ' + Url(request.i3r_1).toString();
|
|
411
411
|
// Inline function 'kotlin.text.appendLine' call
|
|
412
412
|
this_0.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
413
413
|
// Inline function 'kotlin.text.appendLine' call
|
|
414
|
-
var value_0 = 'METHOD: ' + request.
|
|
414
|
+
var value_0 = 'METHOD: ' + request.j3r_1.toString();
|
|
415
415
|
// Inline function 'kotlin.text.appendLine' call
|
|
416
416
|
this_0.d8(value_0).e8(_Char___init__impl__6a9atx(10));
|
|
417
417
|
}
|
|
418
|
-
if ($this.
|
|
418
|
+
if ($this.g4p_1.q4o_1) {
|
|
419
419
|
// Inline function 'kotlin.text.appendLine' call
|
|
420
420
|
var value_1 = 'COMMON HEADERS';
|
|
421
421
|
// Inline function 'kotlin.text.appendLine' call
|
|
422
422
|
this_0.d8(value_1).e8(_Char___init__impl__6a9atx(10));
|
|
423
|
-
logHeaders(this_0, request.
|
|
423
|
+
logHeaders(this_0, request.k3r_1.g38(), $this.i4p_1);
|
|
424
424
|
// Inline function 'kotlin.text.appendLine' call
|
|
425
425
|
var value_2 = 'CONTENT HEADERS';
|
|
426
426
|
// Inline function 'kotlin.text.appendLine' call
|
|
427
427
|
this_0.d8(value_2).e8(_Char___init__impl__6a9atx(10));
|
|
428
|
-
var tmp0 = $this.
|
|
428
|
+
var tmp0 = $this.i4p_1;
|
|
429
429
|
var tmp$ret$9;
|
|
430
430
|
$l$block: {
|
|
431
431
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
432
432
|
var _iterator__ex2g4s = tmp0.l();
|
|
433
433
|
while (_iterator__ex2g4s.m()) {
|
|
434
434
|
var element = _iterator__ex2g4s.n();
|
|
435
|
-
if (element.
|
|
435
|
+
if (element.k4p_1(HttpHeaders_getInstance().v3e_1)) {
|
|
436
436
|
tmp$ret$9 = element;
|
|
437
437
|
break $l$block;
|
|
438
438
|
}
|
|
@@ -440,15 +440,15 @@
|
|
|
440
440
|
tmp$ret$9 = null;
|
|
441
441
|
}
|
|
442
442
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
443
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
444
|
-
var tmp0_0 = $this.
|
|
443
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j4p_1;
|
|
444
|
+
var tmp0_0 = $this.i4p_1;
|
|
445
445
|
var tmp$ret$11;
|
|
446
446
|
$l$block_0: {
|
|
447
447
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
448
448
|
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
449
449
|
while (_iterator__ex2g4s_0.m()) {
|
|
450
450
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
451
|
-
if (element_0.
|
|
451
|
+
if (element_0.k4p_1(HttpHeaders_getInstance().y3e_1)) {
|
|
452
452
|
tmp$ret$11 = element_0;
|
|
453
453
|
break $l$block_0;
|
|
454
454
|
}
|
|
@@ -456,39 +456,39 @@
|
|
|
456
456
|
tmp$ret$11 = null;
|
|
457
457
|
}
|
|
458
458
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
459
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
460
|
-
var tmp2_safe_receiver = content.
|
|
459
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j4p_1;
|
|
460
|
+
var tmp2_safe_receiver = content.p3n();
|
|
461
461
|
if (tmp2_safe_receiver == null)
|
|
462
462
|
null;
|
|
463
463
|
else {
|
|
464
464
|
// Inline function 'kotlin.let' call
|
|
465
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
465
|
+
var tmp_0 = HttpHeaders_getInstance().v3e_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.n3n();
|
|
469
469
|
if (tmp3_safe_receiver == null)
|
|
470
470
|
null;
|
|
471
471
|
else {
|
|
472
472
|
// Inline function 'kotlin.let' call
|
|
473
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
473
|
+
var tmp_1 = HttpHeaders_getInstance().y3e_1;
|
|
474
474
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
475
475
|
}
|
|
476
|
-
logHeaders(this_0, content.
|
|
476
|
+
logHeaders(this_0, content.j3i().g38(), $this.i4p_1);
|
|
477
477
|
}
|
|
478
478
|
var message = this_0.toString();
|
|
479
479
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
480
480
|
if (charSequenceLength(message) > 0) {
|
|
481
|
-
logger.
|
|
481
|
+
logger.h4o(message);
|
|
482
482
|
}
|
|
483
483
|
var tmp_2;
|
|
484
484
|
// Inline function 'kotlin.text.isEmpty' call
|
|
485
485
|
if (charSequenceLength(message) === 0) {
|
|
486
486
|
tmp_2 = true;
|
|
487
487
|
} else {
|
|
488
|
-
tmp_2 = !$this.
|
|
488
|
+
tmp_2 = !$this.g4p_1.r4o_1;
|
|
489
489
|
}
|
|
490
490
|
if (tmp_2) {
|
|
491
|
-
logger.
|
|
491
|
+
logger.l4o();
|
|
492
492
|
return null;
|
|
493
493
|
}
|
|
494
494
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -496,62 +496,62 @@
|
|
|
496
496
|
function logRequestBody($this, content, logger, $completion) {
|
|
497
497
|
var requestLog = StringBuilder_init_$Create$();
|
|
498
498
|
// Inline function 'kotlin.text.appendLine' call
|
|
499
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
499
|
+
var value = 'BODY Content-Type: ' + toString_0(content.n3n());
|
|
500
500
|
// Inline function 'kotlin.text.appendLine' call
|
|
501
501
|
requestLog.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
502
|
-
var tmp0_safe_receiver = content.
|
|
502
|
+
var tmp0_safe_receiver = content.n3n();
|
|
503
503
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
504
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
504
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().s30_1 : tmp1_elvis_lhs;
|
|
505
505
|
var channel = ByteChannel();
|
|
506
506
|
var tmp = GlobalScope_instance;
|
|
507
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
507
|
+
var tmp_0 = Dispatchers_getInstance().b21_1;
|
|
508
508
|
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
509
|
-
tmp_1.
|
|
509
|
+
tmp_1.g1q(Logging$logRequestBody$lambda(logger, requestLog));
|
|
510
510
|
return observe(content, channel, $completion);
|
|
511
511
|
}
|
|
512
512
|
function logRequestException($this, context, cause) {
|
|
513
|
-
if ($this.
|
|
514
|
-
$this.
|
|
513
|
+
if ($this.g4p_1.p4o_1) {
|
|
514
|
+
$this.f4p_1.n4n('REQUEST ' + Url(context.i3r_1).toString() + ' failed with exception: ' + cause.toString());
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function setupResponseLogging($this, client) {
|
|
518
|
-
var tmp = Phases_getInstance_0().
|
|
519
|
-
client.
|
|
520
|
-
var tmp_0 = Phases_getInstance_1().
|
|
521
|
-
client.
|
|
522
|
-
if (!$this.
|
|
518
|
+
var tmp = Phases_getInstance_0().b3y_1;
|
|
519
|
+
client.m3p_1.p3b(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
520
|
+
var tmp_0 = Phases_getInstance_1().g3s_1;
|
|
521
|
+
client.k3p_1.p3b(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
522
|
+
if (!$this.g4p_1.r4o_1)
|
|
523
523
|
return Unit_instance;
|
|
524
524
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
525
|
-
Plugin_getInstance().
|
|
525
|
+
Plugin_getInstance().q4d(new ResponseObserver(observer), client);
|
|
526
526
|
}
|
|
527
527
|
function logResponseException($this, log, request, cause) {
|
|
528
|
-
if (!$this.
|
|
528
|
+
if (!$this.g4p_1.p4o_1)
|
|
529
529
|
return Unit_instance;
|
|
530
|
-
log.d8('RESPONSE ' + request.
|
|
530
|
+
log.d8('RESPONSE ' + request.r3t().toString() + ' failed with exception: ' + cause.toString());
|
|
531
531
|
}
|
|
532
532
|
function Companion_0() {
|
|
533
533
|
Companion_instance_0 = this;
|
|
534
|
-
this.
|
|
534
|
+
this.l4p_1 = new AttributeKey('ClientLogging');
|
|
535
535
|
}
|
|
536
536
|
protoOf(Companion_0).w = function () {
|
|
537
|
-
return this.
|
|
537
|
+
return this.l4p_1;
|
|
538
538
|
};
|
|
539
|
-
protoOf(Companion_0).
|
|
539
|
+
protoOf(Companion_0).m4p = function (block) {
|
|
540
540
|
// Inline function 'kotlin.apply' call
|
|
541
541
|
var this_0 = new Config();
|
|
542
542
|
block(this_0);
|
|
543
543
|
var config = this_0;
|
|
544
|
-
return new Logging(config.
|
|
544
|
+
return new Logging(config.e4p(), config.c4p_1, config.z4o_1, config.a4p_1);
|
|
545
545
|
};
|
|
546
|
-
protoOf(Companion_0).
|
|
547
|
-
return this.
|
|
546
|
+
protoOf(Companion_0).n3s = function (block) {
|
|
547
|
+
return this.m4p(block);
|
|
548
548
|
};
|
|
549
|
-
protoOf(Companion_0).
|
|
549
|
+
protoOf(Companion_0).n4p = function (plugin, scope) {
|
|
550
550
|
setupRequestLogging(plugin, scope);
|
|
551
551
|
setupResponseLogging(plugin, scope);
|
|
552
552
|
};
|
|
553
|
-
protoOf(Companion_0).
|
|
554
|
-
return this.
|
|
553
|
+
protoOf(Companion_0).o3s = function (plugin, scope) {
|
|
554
|
+
return this.n4p(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
555
555
|
};
|
|
556
556
|
var Companion_instance_0;
|
|
557
557
|
function Companion_getInstance_0() {
|
|
@@ -561,10 +561,10 @@
|
|
|
561
561
|
}
|
|
562
562
|
function shouldBeLogged($this, request) {
|
|
563
563
|
var tmp;
|
|
564
|
-
if ($this.
|
|
564
|
+
if ($this.h4p_1.r()) {
|
|
565
565
|
tmp = true;
|
|
566
566
|
} else {
|
|
567
|
-
var tmp0 = $this.
|
|
567
|
+
var tmp0 = $this.h4p_1;
|
|
568
568
|
var tmp$ret$0;
|
|
569
569
|
$l$block_0: {
|
|
570
570
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -593,18 +593,18 @@
|
|
|
593
593
|
return tmp;
|
|
594
594
|
}
|
|
595
595
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
596
|
-
this.
|
|
596
|
+
this.w4p_1 = this$0;
|
|
597
597
|
CoroutineImpl.call(this, resultContinuation);
|
|
598
598
|
}
|
|
599
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
600
|
-
var tmp = this.
|
|
599
|
+
protoOf(Logging$setupRequestLogging$slambda).c3q = function ($this$intercept, it, $completion) {
|
|
600
|
+
var tmp = this.d3q($this$intercept, it, $completion);
|
|
601
601
|
tmp.u8_1 = Unit_instance;
|
|
602
602
|
tmp.v8_1 = null;
|
|
603
603
|
return tmp.a9();
|
|
604
604
|
};
|
|
605
605
|
protoOf(Logging$setupRequestLogging$slambda).j9 = function (p1, p2, $completion) {
|
|
606
606
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
607
|
-
return this.
|
|
607
|
+
return this.c3q(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
608
608
|
};
|
|
609
609
|
protoOf(Logging$setupRequestLogging$slambda).a9 = function () {
|
|
610
610
|
var suspendResult = this.u8_1;
|
|
@@ -614,21 +614,21 @@
|
|
|
614
614
|
switch (tmp) {
|
|
615
615
|
case 0:
|
|
616
616
|
this.t8_1 = 8;
|
|
617
|
-
if (!shouldBeLogged(this.
|
|
618
|
-
this.
|
|
617
|
+
if (!shouldBeLogged(this.w4p_1, this.x4p_1.l3b_1)) {
|
|
618
|
+
this.x4p_1.l3b_1.n3r_1.n34(get_DisableLogging(), Unit_instance);
|
|
619
619
|
return Unit_instance;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
this.t8_1 = 2;
|
|
623
623
|
this.s8_1 = 1;
|
|
624
|
-
suspendResult = logRequest(this.
|
|
624
|
+
suspendResult = logRequest(this.w4p_1, this.x4p_1.l3b_1, this);
|
|
625
625
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
626
626
|
return suspendResult;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
continue $sm;
|
|
630
630
|
case 1:
|
|
631
|
-
this.
|
|
631
|
+
this.a4q_1 = suspendResult;
|
|
632
632
|
this.t8_1 = 8;
|
|
633
633
|
this.s8_1 = 3;
|
|
634
634
|
continue $sm;
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
if (tmp_0 instanceof Error) {
|
|
639
639
|
var _ = this.v8_1;
|
|
640
640
|
var tmp_1 = this;
|
|
641
|
-
tmp_1.
|
|
641
|
+
tmp_1.a4q_1 = null;
|
|
642
642
|
this.s8_1 = 3;
|
|
643
643
|
continue $sm;
|
|
644
644
|
} else {
|
|
@@ -647,15 +647,15 @@
|
|
|
647
647
|
|
|
648
648
|
case 3:
|
|
649
649
|
this.t8_1 = 8;
|
|
650
|
-
this.
|
|
650
|
+
this.z4p_1 = this.a4q_1;
|
|
651
651
|
this.s8_1 = 4;
|
|
652
652
|
continue $sm;
|
|
653
653
|
case 4:
|
|
654
654
|
this.t8_1 = 7;
|
|
655
655
|
this.t8_1 = 6;
|
|
656
656
|
this.s8_1 = 5;
|
|
657
|
-
var tmp0_elvis_lhs = this.
|
|
658
|
-
suspendResult = this.
|
|
657
|
+
var tmp0_elvis_lhs = this.z4p_1;
|
|
658
|
+
suspendResult = this.x4p_1.p3a(tmp0_elvis_lhs == null ? this.x4p_1.o3a() : tmp0_elvis_lhs, this);
|
|
659
659
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
660
660
|
return suspendResult;
|
|
661
661
|
}
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
var tmp_2 = this.v8_1;
|
|
671
671
|
if (tmp_2 instanceof Error) {
|
|
672
672
|
var cause = this.v8_1;
|
|
673
|
-
logRequestException(this.
|
|
673
|
+
logRequestException(this.w4p_1, this.x4p_1.l3b_1, cause);
|
|
674
674
|
throw cause;
|
|
675
675
|
} else {
|
|
676
676
|
throw this.v8_1;
|
|
@@ -697,34 +697,34 @@
|
|
|
697
697
|
}
|
|
698
698
|
while (true);
|
|
699
699
|
};
|
|
700
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
701
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
702
|
-
i.
|
|
703
|
-
i.
|
|
700
|
+
protoOf(Logging$setupRequestLogging$slambda).d3q = function ($this$intercept, it, completion) {
|
|
701
|
+
var i = new Logging$setupRequestLogging$slambda(this.w4p_1, completion);
|
|
702
|
+
i.x4p_1 = $this$intercept;
|
|
703
|
+
i.y4p_1 = it;
|
|
704
704
|
return i;
|
|
705
705
|
};
|
|
706
706
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
707
707
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
708
708
|
var l = function ($this$intercept, it, $completion) {
|
|
709
|
-
return i.
|
|
709
|
+
return i.c3q($this$intercept, it, $completion);
|
|
710
710
|
};
|
|
711
711
|
l.$arity = 2;
|
|
712
712
|
return l;
|
|
713
713
|
}
|
|
714
714
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
717
|
-
this.
|
|
715
|
+
this.j4q_1 = $channel;
|
|
716
|
+
this.k4q_1 = $charset;
|
|
717
|
+
this.l4q_1 = $requestLog;
|
|
718
718
|
CoroutineImpl.call(this, resultContinuation);
|
|
719
719
|
}
|
|
720
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
721
|
-
var tmp = this.
|
|
720
|
+
protoOf(Logging$logRequestBody$slambda).k2d = function ($this$launch, $completion) {
|
|
721
|
+
var tmp = this.l2d($this$launch, $completion);
|
|
722
722
|
tmp.u8_1 = Unit_instance;
|
|
723
723
|
tmp.v8_1 = null;
|
|
724
724
|
return tmp.a9();
|
|
725
725
|
};
|
|
726
726
|
protoOf(Logging$logRequestBody$slambda).i9 = function (p1, $completion) {
|
|
727
|
-
return this.
|
|
727
|
+
return this.k2d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
728
728
|
};
|
|
729
729
|
protoOf(Logging$logRequestBody$slambda).a9 = function () {
|
|
730
730
|
var suspendResult = this.u8_1;
|
|
@@ -734,11 +734,11 @@
|
|
|
734
734
|
switch (tmp) {
|
|
735
735
|
case 0:
|
|
736
736
|
this.t8_1 = 3;
|
|
737
|
-
var tmp0 = this.
|
|
738
|
-
this.
|
|
737
|
+
var tmp0 = this.j4q_1;
|
|
738
|
+
this.o4q_1 = this.k4q_1;
|
|
739
739
|
this.t8_1 = 2;
|
|
740
740
|
this.s8_1 = 1;
|
|
741
|
-
suspendResult = tmp0.
|
|
741
|
+
suspendResult = tmp0.g2w(VOID, this);
|
|
742
742
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
743
743
|
return suspendResult;
|
|
744
744
|
}
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
continue $sm;
|
|
747
747
|
case 1:
|
|
748
748
|
var ARGUMENT = suspendResult;
|
|
749
|
-
this.
|
|
749
|
+
this.n4q_1 = readText(ARGUMENT, this.o4q_1);
|
|
750
750
|
this.t8_1 = 3;
|
|
751
751
|
this.s8_1 = 4;
|
|
752
752
|
continue $sm;
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
if (tmp_0 instanceof Error) {
|
|
757
757
|
var cause = this.v8_1;
|
|
758
758
|
var tmp_1 = this;
|
|
759
|
-
tmp_1.
|
|
759
|
+
tmp_1.n4q_1 = null;
|
|
760
760
|
this.s8_1 = 4;
|
|
761
761
|
continue $sm;
|
|
762
762
|
} else {
|
|
@@ -767,13 +767,13 @@
|
|
|
767
767
|
throw this.v8_1;
|
|
768
768
|
case 4:
|
|
769
769
|
this.t8_1 = 3;
|
|
770
|
-
var tmp0_elvis_lhs = this.
|
|
770
|
+
var tmp0_elvis_lhs = this.n4q_1;
|
|
771
771
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
772
|
-
var tmp0_0 = this.
|
|
772
|
+
var tmp0_0 = this.l4q_1;
|
|
773
773
|
var value = 'BODY START';
|
|
774
774
|
tmp0_0.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
775
|
+
this.l4q_1.d8(text).e8(_Char___init__impl__6a9atx(10));
|
|
776
|
+
this.l4q_1.d8('BODY END');
|
|
777
777
|
return Unit_instance;
|
|
778
778
|
}
|
|
779
779
|
} catch ($p) {
|
|
@@ -787,39 +787,39 @@
|
|
|
787
787
|
}
|
|
788
788
|
while (true);
|
|
789
789
|
};
|
|
790
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
791
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
792
|
-
i.
|
|
790
|
+
protoOf(Logging$logRequestBody$slambda).l2d = function ($this$launch, completion) {
|
|
791
|
+
var i = new Logging$logRequestBody$slambda(this.j4q_1, this.k4q_1, this.l4q_1, completion);
|
|
792
|
+
i.m4q_1 = $this$launch;
|
|
793
793
|
return i;
|
|
794
794
|
};
|
|
795
795
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
796
796
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
797
797
|
var l = function ($this$launch, $completion) {
|
|
798
|
-
return i.
|
|
798
|
+
return i.k2d($this$launch, $completion);
|
|
799
799
|
};
|
|
800
800
|
l.$arity = 1;
|
|
801
801
|
return l;
|
|
802
802
|
}
|
|
803
803
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
804
804
|
return function (it) {
|
|
805
|
-
$logger.
|
|
806
|
-
$logger.
|
|
805
|
+
$logger.h4o($requestLog.toString());
|
|
806
|
+
$logger.l4o();
|
|
807
807
|
return Unit_instance;
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
810
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
811
|
-
this.
|
|
811
|
+
this.x4q_1 = this$0;
|
|
812
812
|
CoroutineImpl.call(this, resultContinuation);
|
|
813
813
|
}
|
|
814
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
815
|
-
var tmp = this.
|
|
814
|
+
protoOf(Logging$setupResponseLogging$slambda).a3z = function ($this$intercept, response, $completion) {
|
|
815
|
+
var tmp = this.b3z($this$intercept, response, $completion);
|
|
816
816
|
tmp.u8_1 = Unit_instance;
|
|
817
817
|
tmp.v8_1 = null;
|
|
818
818
|
return tmp.a9();
|
|
819
819
|
};
|
|
820
820
|
protoOf(Logging$setupResponseLogging$slambda).j9 = function (p1, p2, $completion) {
|
|
821
821
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
822
|
-
return this.
|
|
822
|
+
return this.a3z(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
823
823
|
};
|
|
824
824
|
protoOf(Logging$setupResponseLogging$slambda).a9 = function () {
|
|
825
825
|
var suspendResult = this.u8_1;
|
|
@@ -829,19 +829,19 @@
|
|
|
829
829
|
switch (tmp) {
|
|
830
830
|
case 0:
|
|
831
831
|
this.t8_1 = 10;
|
|
832
|
-
if (this.
|
|
832
|
+
if (this.x4q_1.g4p_1.equals(LogLevel_NONE_getInstance()) || this.z4q_1.m3u().x3s().m34(get_DisableLogging()))
|
|
833
833
|
return Unit_instance;
|
|
834
|
-
this.
|
|
835
|
-
this.
|
|
836
|
-
this.
|
|
834
|
+
this.a4r_1 = this.z4q_1.m3u().x3s().k34(get_ClientCallLogger());
|
|
835
|
+
this.c4r_1 = StringBuilder_init_$Create$();
|
|
836
|
+
this.b4r_1 = false;
|
|
837
837
|
this.s8_1 = 1;
|
|
838
838
|
continue $sm;
|
|
839
839
|
case 1:
|
|
840
840
|
this.t8_1 = 4;
|
|
841
841
|
this.t8_1 = 3;
|
|
842
|
-
logResponseHeader(this.
|
|
842
|
+
logResponseHeader(this.c4r_1, this.z4q_1.m3u().j3q(), this.x4q_1.g4p_1, this.x4q_1.i4p_1);
|
|
843
843
|
this.s8_1 = 2;
|
|
844
|
-
suspendResult = this.
|
|
844
|
+
suspendResult = this.y4q_1.p3a(this.y4q_1.o3a(), this);
|
|
845
845
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
846
846
|
return suspendResult;
|
|
847
847
|
}
|
|
@@ -856,8 +856,8 @@
|
|
|
856
856
|
var tmp_0 = this.v8_1;
|
|
857
857
|
if (tmp_0 instanceof Error) {
|
|
858
858
|
var cause = this.v8_1;
|
|
859
|
-
logResponseException(this.
|
|
860
|
-
this.
|
|
859
|
+
logResponseException(this.x4q_1, this.c4r_1, this.z4q_1.m3u().p3t(), cause);
|
|
860
|
+
this.b4r_1 = true;
|
|
861
861
|
throw cause;
|
|
862
862
|
} else {
|
|
863
863
|
throw this.v8_1;
|
|
@@ -865,11 +865,11 @@
|
|
|
865
865
|
|
|
866
866
|
case 4:
|
|
867
867
|
this.t8_1 = 10;
|
|
868
|
-
this.
|
|
869
|
-
this.
|
|
870
|
-
if (this.
|
|
868
|
+
this.d4r_1 = this.v8_1;
|
|
869
|
+
this.a4r_1.i4o(this.c4r_1.toString());
|
|
870
|
+
if (this.b4r_1 || !this.x4q_1.g4p_1.r4o_1) {
|
|
871
871
|
this.s8_1 = 5;
|
|
872
|
-
suspendResult = this.
|
|
872
|
+
suspendResult = this.a4r_1.m4o(this);
|
|
873
873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
874
874
|
return suspendResult;
|
|
875
875
|
}
|
|
@@ -883,13 +883,13 @@
|
|
|
883
883
|
this.s8_1 = 6;
|
|
884
884
|
continue $sm;
|
|
885
885
|
case 6:
|
|
886
|
-
throw this.
|
|
886
|
+
throw this.d4r_1;
|
|
887
887
|
case 7:
|
|
888
888
|
this.t8_1 = 10;
|
|
889
|
-
this.
|
|
890
|
-
if (this.
|
|
889
|
+
this.a4r_1.i4o(this.c4r_1.toString());
|
|
890
|
+
if (this.b4r_1 || !this.x4q_1.g4p_1.r4o_1) {
|
|
891
891
|
this.s8_1 = 8;
|
|
892
|
-
suspendResult = this.
|
|
892
|
+
suspendResult = this.a4r_1.m4o(this);
|
|
893
893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
894
894
|
return suspendResult;
|
|
895
895
|
}
|
|
@@ -918,33 +918,33 @@
|
|
|
918
918
|
}
|
|
919
919
|
while (true);
|
|
920
920
|
};
|
|
921
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
922
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
923
|
-
i.
|
|
924
|
-
i.
|
|
921
|
+
protoOf(Logging$setupResponseLogging$slambda).b3z = function ($this$intercept, response, completion) {
|
|
922
|
+
var i = new Logging$setupResponseLogging$slambda(this.x4q_1, completion);
|
|
923
|
+
i.y4q_1 = $this$intercept;
|
|
924
|
+
i.z4q_1 = response;
|
|
925
925
|
return i;
|
|
926
926
|
};
|
|
927
927
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
928
928
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
929
929
|
var l = function ($this$intercept, response, $completion) {
|
|
930
|
-
return i.
|
|
930
|
+
return i.a3z($this$intercept, response, $completion);
|
|
931
931
|
};
|
|
932
932
|
l.$arity = 2;
|
|
933
933
|
return l;
|
|
934
934
|
}
|
|
935
935
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
936
|
-
this.
|
|
936
|
+
this.m4r_1 = this$0;
|
|
937
937
|
CoroutineImpl.call(this, resultContinuation);
|
|
938
938
|
}
|
|
939
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
940
|
-
var tmp = this.
|
|
939
|
+
protoOf(Logging$setupResponseLogging$slambda_1).w3q = function ($this$intercept, it, $completion) {
|
|
940
|
+
var tmp = this.x3q($this$intercept, it, $completion);
|
|
941
941
|
tmp.u8_1 = Unit_instance;
|
|
942
942
|
tmp.v8_1 = null;
|
|
943
943
|
return tmp.a9();
|
|
944
944
|
};
|
|
945
945
|
protoOf(Logging$setupResponseLogging$slambda_1).j9 = function (p1, p2, $completion) {
|
|
946
946
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
947
|
-
return this.
|
|
947
|
+
return this.w3q(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
948
948
|
};
|
|
949
949
|
protoOf(Logging$setupResponseLogging$slambda_1).a9 = function () {
|
|
950
950
|
var suspendResult = this.u8_1;
|
|
@@ -954,13 +954,13 @@
|
|
|
954
954
|
switch (tmp) {
|
|
955
955
|
case 0:
|
|
956
956
|
this.t8_1 = 6;
|
|
957
|
-
if (this.
|
|
957
|
+
if (this.m4r_1.g4p_1.equals(LogLevel_NONE_getInstance()) || this.n4r_1.l3b_1.x3s().m34(get_DisableLogging())) {
|
|
958
958
|
return Unit_instance;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
this.t8_1 = 3;
|
|
962
962
|
this.s8_1 = 1;
|
|
963
|
-
suspendResult = this.
|
|
963
|
+
suspendResult = this.n4r_1.q3a(this);
|
|
964
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
965
|
return suspendResult;
|
|
966
966
|
}
|
|
@@ -977,12 +977,12 @@
|
|
|
977
977
|
this.t8_1 = 6;
|
|
978
978
|
var tmp_0 = this.v8_1;
|
|
979
979
|
if (tmp_0 instanceof Error) {
|
|
980
|
-
this.
|
|
980
|
+
this.p4r_1 = this.v8_1;
|
|
981
981
|
var log = StringBuilder_init_$Create$();
|
|
982
|
-
this.
|
|
983
|
-
logResponseException(this.
|
|
982
|
+
this.q4r_1 = this.n4r_1.l3b_1.x3s().k34(get_ClientCallLogger());
|
|
983
|
+
logResponseException(this.m4r_1, log, this.n4r_1.l3b_1.p3t(), this.p4r_1);
|
|
984
984
|
this.s8_1 = 4;
|
|
985
|
-
suspendResult = this.
|
|
985
|
+
suspendResult = this.q4r_1.j4o(log.toString(), this);
|
|
986
986
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
987
987
|
return suspendResult;
|
|
988
988
|
}
|
|
@@ -993,14 +993,14 @@
|
|
|
993
993
|
|
|
994
994
|
case 4:
|
|
995
995
|
this.s8_1 = 5;
|
|
996
|
-
suspendResult = this.
|
|
996
|
+
suspendResult = this.q4r_1.m4o(this);
|
|
997
997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
998
998
|
return suspendResult;
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
continue $sm;
|
|
1002
1002
|
case 5:
|
|
1003
|
-
throw this.
|
|
1003
|
+
throw this.p4r_1;
|
|
1004
1004
|
case 6:
|
|
1005
1005
|
throw this.v8_1;
|
|
1006
1006
|
}
|
|
@@ -1015,32 +1015,32 @@
|
|
|
1015
1015
|
}
|
|
1016
1016
|
while (true);
|
|
1017
1017
|
};
|
|
1018
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1019
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1020
|
-
i.
|
|
1021
|
-
i.
|
|
1018
|
+
protoOf(Logging$setupResponseLogging$slambda_1).x3q = function ($this$intercept, it, completion) {
|
|
1019
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.m4r_1, completion);
|
|
1020
|
+
i.n4r_1 = $this$intercept;
|
|
1021
|
+
i.o4r_1 = it;
|
|
1022
1022
|
return i;
|
|
1023
1023
|
};
|
|
1024
1024
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1025
1025
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1026
1026
|
var l = function ($this$intercept, it, $completion) {
|
|
1027
|
-
return i.
|
|
1027
|
+
return i.w3q($this$intercept, it, $completion);
|
|
1028
1028
|
};
|
|
1029
1029
|
l.$arity = 2;
|
|
1030
1030
|
return l;
|
|
1031
1031
|
}
|
|
1032
1032
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1033
|
-
this.
|
|
1033
|
+
this.z4r_1 = this$0;
|
|
1034
1034
|
CoroutineImpl.call(this, resultContinuation);
|
|
1035
1035
|
}
|
|
1036
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1037
|
-
var tmp = this.
|
|
1036
|
+
protoOf(Logging$setupResponseLogging$slambda_3).o40 = function (it, $completion) {
|
|
1037
|
+
var tmp = this.p40(it, $completion);
|
|
1038
1038
|
tmp.u8_1 = Unit_instance;
|
|
1039
1039
|
tmp.v8_1 = null;
|
|
1040
1040
|
return tmp.a9();
|
|
1041
1041
|
};
|
|
1042
1042
|
protoOf(Logging$setupResponseLogging$slambda_3).i9 = function (p1, $completion) {
|
|
1043
|
-
return this.
|
|
1043
|
+
return this.o40(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1044
1044
|
};
|
|
1045
1045
|
protoOf(Logging$setupResponseLogging$slambda_3).a9 = function () {
|
|
1046
1046
|
var suspendResult = this.u8_1;
|
|
@@ -1050,19 +1050,19 @@
|
|
|
1050
1050
|
switch (tmp) {
|
|
1051
1051
|
case 0:
|
|
1052
1052
|
this.t8_1 = 10;
|
|
1053
|
-
if (this.
|
|
1053
|
+
if (this.z4r_1.g4p_1.equals(LogLevel_NONE_getInstance()) || this.a4s_1.m3u().x3s().m34(get_DisableLogging())) {
|
|
1054
1054
|
return Unit_instance;
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1057
|
+
this.b4s_1 = this.a4s_1.m3u().x3s().k34(get_ClientCallLogger());
|
|
1058
|
+
this.c4s_1 = StringBuilder_init_$Create$();
|
|
1059
1059
|
this.s8_1 = 1;
|
|
1060
1060
|
continue $sm;
|
|
1061
1061
|
case 1:
|
|
1062
1062
|
this.t8_1 = 4;
|
|
1063
1063
|
this.t8_1 = 3;
|
|
1064
1064
|
this.s8_1 = 2;
|
|
1065
|
-
suspendResult = logResponseBody(this.
|
|
1065
|
+
suspendResult = logResponseBody(this.c4s_1, contentType(this.a4s_1), this.a4s_1.q1b(), this);
|
|
1066
1066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1067
1067
|
return suspendResult;
|
|
1068
1068
|
}
|
|
@@ -1086,10 +1086,10 @@
|
|
|
1086
1086
|
|
|
1087
1087
|
case 4:
|
|
1088
1088
|
this.t8_1 = 10;
|
|
1089
|
-
this.
|
|
1089
|
+
this.d4s_1 = this.v8_1;
|
|
1090
1090
|
this.s8_1 = 5;
|
|
1091
|
-
var this_0 = this.
|
|
1092
|
-
suspendResult = this.
|
|
1091
|
+
var this_0 = this.c4s_1.toString();
|
|
1092
|
+
suspendResult = this.b4s_1.k4o(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1093
1093
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1094
1094
|
return suspendResult;
|
|
1095
1095
|
}
|
|
@@ -1097,19 +1097,19 @@
|
|
|
1097
1097
|
continue $sm;
|
|
1098
1098
|
case 5:
|
|
1099
1099
|
this.s8_1 = 6;
|
|
1100
|
-
suspendResult = this.
|
|
1100
|
+
suspendResult = this.b4s_1.m4o(this);
|
|
1101
1101
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1102
1102
|
return suspendResult;
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
1105
|
continue $sm;
|
|
1106
1106
|
case 6:
|
|
1107
|
-
throw this.
|
|
1107
|
+
throw this.d4s_1;
|
|
1108
1108
|
case 7:
|
|
1109
1109
|
this.t8_1 = 10;
|
|
1110
1110
|
this.s8_1 = 8;
|
|
1111
|
-
var this_1 = this.
|
|
1112
|
-
suspendResult = this.
|
|
1111
|
+
var this_1 = this.c4s_1.toString();
|
|
1112
|
+
suspendResult = this.b4s_1.k4o(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1113
1113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1114
1114
|
return suspendResult;
|
|
1115
1115
|
}
|
|
@@ -1117,7 +1117,7 @@
|
|
|
1117
1117
|
continue $sm;
|
|
1118
1118
|
case 8:
|
|
1119
1119
|
this.s8_1 = 9;
|
|
1120
|
-
suspendResult = this.
|
|
1120
|
+
suspendResult = this.b4s_1.m4o(this);
|
|
1121
1121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1122
1122
|
return suspendResult;
|
|
1123
1123
|
}
|
|
@@ -1139,15 +1139,15 @@
|
|
|
1139
1139
|
}
|
|
1140
1140
|
while (true);
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1143
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1144
|
-
i.
|
|
1142
|
+
protoOf(Logging$setupResponseLogging$slambda_3).p40 = function (it, completion) {
|
|
1143
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.z4r_1, completion);
|
|
1144
|
+
i.a4s_1 = it;
|
|
1145
1145
|
return i;
|
|
1146
1146
|
};
|
|
1147
1147
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1148
1148
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1149
1149
|
var l = function (it, $completion) {
|
|
1150
|
-
return i.
|
|
1150
|
+
return i.o40(it, $completion);
|
|
1151
1151
|
};
|
|
1152
1152
|
l.$arity = 1;
|
|
1153
1153
|
return l;
|
|
@@ -1155,10 +1155,10 @@
|
|
|
1155
1155
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1156
1156
|
Companion_getInstance_0();
|
|
1157
1157
|
filters = filters === VOID ? emptyList() : filters;
|
|
1158
|
-
this.
|
|
1159
|
-
this.
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1158
|
+
this.f4p_1 = logger;
|
|
1159
|
+
this.g4p_1 = level;
|
|
1160
|
+
this.h4p_1 = filters;
|
|
1161
|
+
this.i4p_1 = sanitizedHeaders;
|
|
1162
1162
|
}
|
|
1163
1163
|
var properties_initialized_Logging_kt_588vu7;
|
|
1164
1164
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1189,7 +1189,7 @@
|
|
|
1189
1189
|
var _iterator__ex2g4s_0 = sanitizedHeaders.l();
|
|
1190
1190
|
while (_iterator__ex2g4s_0.m()) {
|
|
1191
1191
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1192
|
-
if (element_0.
|
|
1192
|
+
if (element_0.k4p_1(key)) {
|
|
1193
1193
|
tmp$ret$5 = element_0;
|
|
1194
1194
|
break $l$block;
|
|
1195
1195
|
}
|
|
@@ -1197,7 +1197,7 @@
|
|
|
1197
1197
|
tmp$ret$5 = null;
|
|
1198
1198
|
}
|
|
1199
1199
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1200
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1200
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j4p_1;
|
|
1201
1201
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
@@ -1209,26 +1209,26 @@
|
|
|
1209
1209
|
}
|
|
1210
1210
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1211
1211
|
// Inline function 'kotlin.with' call
|
|
1212
|
-
if (level.
|
|
1212
|
+
if (level.p4o_1) {
|
|
1213
1213
|
// Inline function 'kotlin.text.appendLine' call
|
|
1214
|
-
var value = 'RESPONSE: ' + response.
|
|
1214
|
+
var value = 'RESPONSE: ' + response.o3n().toString();
|
|
1215
1215
|
// Inline function 'kotlin.text.appendLine' call
|
|
1216
1216
|
log.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
1217
1217
|
// Inline function 'kotlin.text.appendLine' call
|
|
1218
|
-
var value_0 = 'METHOD: ' + response.
|
|
1218
|
+
var value_0 = 'METHOD: ' + response.m3u().p3t().n3u().toString();
|
|
1219
1219
|
// Inline function 'kotlin.text.appendLine' call
|
|
1220
1220
|
log.d8(value_0).e8(_Char___init__impl__6a9atx(10));
|
|
1221
1221
|
// Inline function 'kotlin.text.appendLine' call
|
|
1222
|
-
var value_1 = 'FROM: ' + response.
|
|
1222
|
+
var value_1 = 'FROM: ' + response.m3u().p3t().r3t().toString();
|
|
1223
1223
|
// Inline function 'kotlin.text.appendLine' call
|
|
1224
1224
|
log.d8(value_1).e8(_Char___init__impl__6a9atx(10));
|
|
1225
1225
|
}
|
|
1226
|
-
if (level.
|
|
1226
|
+
if (level.q4o_1) {
|
|
1227
1227
|
// Inline function 'kotlin.text.appendLine' call
|
|
1228
1228
|
var value_2 = 'COMMON HEADERS';
|
|
1229
1229
|
// Inline function 'kotlin.text.appendLine' call
|
|
1230
1230
|
log.d8(value_2).e8(_Char___init__impl__6a9atx(10));
|
|
1231
|
-
logHeaders(log, response.
|
|
1231
|
+
logHeaders(log, response.j3i().g38(), sanitizedHeaders);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
1234
|
function logResponseBody(log, contentType, content, $completion) {
|
|
@@ -1238,16 +1238,16 @@
|
|
|
1238
1238
|
return tmp.a9();
|
|
1239
1239
|
}
|
|
1240
1240
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1241
|
-
this.
|
|
1241
|
+
this.s4s_1 = function_0;
|
|
1242
1242
|
}
|
|
1243
1243
|
protoOf(sam$kotlin_Comparator$0).fc = function (a, b) {
|
|
1244
|
-
return this.
|
|
1244
|
+
return this.s4s_1(a, b);
|
|
1245
1245
|
};
|
|
1246
1246
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1247
1247
|
return this.fc(a, b);
|
|
1248
1248
|
};
|
|
1249
1249
|
protoOf(sam$kotlin_Comparator$0).b3 = function () {
|
|
1250
|
-
return this.
|
|
1250
|
+
return this.s4s_1;
|
|
1251
1251
|
};
|
|
1252
1252
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1253
1253
|
var tmp;
|
|
@@ -1275,9 +1275,9 @@
|
|
|
1275
1275
|
}
|
|
1276
1276
|
function $logResponseBodyCOROUTINE$_0(log, contentType, content, resultContinuation) {
|
|
1277
1277
|
CoroutineImpl.call(this, resultContinuation);
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1278
|
+
this.m4s_1 = log;
|
|
1279
|
+
this.n4s_1 = contentType;
|
|
1280
|
+
this.o4s_1 = content;
|
|
1281
1281
|
}
|
|
1282
1282
|
protoOf($logResponseBodyCOROUTINE$_0).a9 = function () {
|
|
1283
1283
|
var suspendResult = this.u8_1;
|
|
@@ -1287,20 +1287,20 @@
|
|
|
1287
1287
|
switch (tmp) {
|
|
1288
1288
|
case 0:
|
|
1289
1289
|
this.t8_1 = 3;
|
|
1290
|
-
this.
|
|
1291
|
-
var tmp0 = this.
|
|
1292
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
1290
|
+
this.p4s_1 = this.m4s_1;
|
|
1291
|
+
var tmp0 = this.p4s_1;
|
|
1292
|
+
var value = 'BODY Content-Type: ' + toString_0(this.n4s_1);
|
|
1293
1293
|
tmp0.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
1294
|
-
var tmp0_0 = this.
|
|
1294
|
+
var tmp0_0 = this.p4s_1;
|
|
1295
1295
|
var value_0 = 'BODY START';
|
|
1296
1296
|
tmp0_0.d8(value_0).e8(_Char___init__impl__6a9atx(10));
|
|
1297
|
-
var tmp0_1 = this.
|
|
1298
|
-
var tmp0_safe_receiver = this.
|
|
1297
|
+
var tmp0_1 = this.o4s_1;
|
|
1298
|
+
var tmp0_safe_receiver = this.n4s_1;
|
|
1299
1299
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1300
|
-
this.
|
|
1300
|
+
this.r4s_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().s30_1 : tmp1_elvis_lhs;
|
|
1301
1301
|
this.t8_1 = 2;
|
|
1302
1302
|
this.s8_1 = 1;
|
|
1303
|
-
suspendResult = tmp0_1.
|
|
1303
|
+
suspendResult = tmp0_1.g2w(VOID, this);
|
|
1304
1304
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1305
1305
|
return suspendResult;
|
|
1306
1306
|
}
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
continue $sm;
|
|
1309
1309
|
case 1:
|
|
1310
1310
|
var ARGUMENT = suspendResult;
|
|
1311
|
-
this.
|
|
1311
|
+
this.q4s_1 = readText(ARGUMENT, this.r4s_1);
|
|
1312
1312
|
this.t8_1 = 3;
|
|
1313
1313
|
this.s8_1 = 4;
|
|
1314
1314
|
continue $sm;
|
|
@@ -1318,7 +1318,7 @@
|
|
|
1318
1318
|
if (tmp_0 instanceof Error) {
|
|
1319
1319
|
var cause = this.v8_1;
|
|
1320
1320
|
var tmp_1 = this;
|
|
1321
|
-
tmp_1.
|
|
1321
|
+
tmp_1.q4s_1 = null;
|
|
1322
1322
|
this.s8_1 = 4;
|
|
1323
1323
|
continue $sm;
|
|
1324
1324
|
} else {
|
|
@@ -1329,10 +1329,10 @@
|
|
|
1329
1329
|
throw this.v8_1;
|
|
1330
1330
|
case 4:
|
|
1331
1331
|
this.t8_1 = 3;
|
|
1332
|
-
var tmp2_elvis_lhs = this.
|
|
1332
|
+
var tmp2_elvis_lhs = this.q4s_1;
|
|
1333
1333
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1334
|
+
this.p4s_1.d8(message).e8(_Char___init__impl__6a9atx(10));
|
|
1335
|
+
this.p4s_1.d8('BODY END');
|
|
1336
1336
|
return Unit_instance;
|
|
1337
1337
|
}
|
|
1338
1338
|
} catch ($p) {
|
|
@@ -1354,21 +1354,21 @@
|
|
|
1354
1354
|
}
|
|
1355
1355
|
function toReadChannel(_this__u8e3s4) {
|
|
1356
1356
|
var tmp = GlobalScope_instance;
|
|
1357
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1358
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1357
|
+
var tmp_0 = Dispatchers_getInstance().a21_1;
|
|
1358
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).t21();
|
|
1359
1359
|
}
|
|
1360
1360
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1361
|
-
this.
|
|
1361
|
+
this.m4t_1 = $this_toReadChannel;
|
|
1362
1362
|
CoroutineImpl.call(this, resultContinuation);
|
|
1363
1363
|
}
|
|
1364
|
-
protoOf(toReadChannel$slambda).
|
|
1365
|
-
var tmp = this.
|
|
1364
|
+
protoOf(toReadChannel$slambda).k3v = function ($this$writer, $completion) {
|
|
1365
|
+
var tmp = this.l3v($this$writer, $completion);
|
|
1366
1366
|
tmp.u8_1 = Unit_instance;
|
|
1367
1367
|
tmp.v8_1 = null;
|
|
1368
1368
|
return tmp.a9();
|
|
1369
1369
|
};
|
|
1370
1370
|
protoOf(toReadChannel$slambda).i9 = function (p1, $completion) {
|
|
1371
|
-
return this.
|
|
1371
|
+
return this.k3v((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1372
1372
|
};
|
|
1373
1373
|
protoOf(toReadChannel$slambda).a9 = function () {
|
|
1374
1374
|
var suspendResult = this.u8_1;
|
|
@@ -1379,7 +1379,7 @@
|
|
|
1379
1379
|
case 0:
|
|
1380
1380
|
this.t8_1 = 2;
|
|
1381
1381
|
this.s8_1 = 1;
|
|
1382
|
-
suspendResult = this.
|
|
1382
|
+
suspendResult = this.m4t_1.v3n(this.n4t_1.t21(), this);
|
|
1383
1383
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1384
1384
|
return suspendResult;
|
|
1385
1385
|
}
|
|
@@ -1401,23 +1401,23 @@
|
|
|
1401
1401
|
}
|
|
1402
1402
|
while (true);
|
|
1403
1403
|
};
|
|
1404
|
-
protoOf(toReadChannel$slambda).
|
|
1405
|
-
var i = new toReadChannel$slambda(this.
|
|
1406
|
-
i.
|
|
1404
|
+
protoOf(toReadChannel$slambda).l3v = function ($this$writer, completion) {
|
|
1405
|
+
var i = new toReadChannel$slambda(this.m4t_1, completion);
|
|
1406
|
+
i.n4t_1 = $this$writer;
|
|
1407
1407
|
return i;
|
|
1408
1408
|
};
|
|
1409
1409
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1410
1410
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1411
1411
|
var l = function ($this$writer, $completion) {
|
|
1412
|
-
return i.
|
|
1412
|
+
return i.k3v($this$writer, $completion);
|
|
1413
1413
|
};
|
|
1414
1414
|
l.$arity = 1;
|
|
1415
1415
|
return l;
|
|
1416
1416
|
}
|
|
1417
1417
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
1418
1418
|
CoroutineImpl.call(this, resultContinuation);
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1419
|
+
this.b4t_1 = _this__u8e3s4;
|
|
1420
|
+
this.c4t_1 = log;
|
|
1421
1421
|
}
|
|
1422
1422
|
protoOf($observeCOROUTINE$).a9 = function () {
|
|
1423
1423
|
var suspendResult = this.u8_1;
|
|
@@ -1427,10 +1427,10 @@
|
|
|
1427
1427
|
switch (tmp) {
|
|
1428
1428
|
case 0:
|
|
1429
1429
|
this.t8_1 = 3;
|
|
1430
|
-
var tmp0_subject = this.
|
|
1430
|
+
var tmp0_subject = this.b4t_1;
|
|
1431
1431
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
1432
1432
|
this.s8_1 = 1;
|
|
1433
|
-
suspendResult = writeFully(this.
|
|
1433
|
+
suspendResult = writeFully(this.c4t_1, this.b4t_1.q3n(), this);
|
|
1434
1434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1435
1435
|
return suspendResult;
|
|
1436
1436
|
}
|
|
@@ -1439,24 +1439,24 @@
|
|
|
1439
1439
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
1440
1440
|
var tmp_0 = this;
|
|
1441
1441
|
var responseChannel = ByteChannel();
|
|
1442
|
-
var content = this.
|
|
1443
|
-
copyToBoth(content, this.
|
|
1444
|
-
tmp_0.
|
|
1442
|
+
var content = this.b4t_1.t3n();
|
|
1443
|
+
copyToBoth(content, this.c4t_1, responseChannel);
|
|
1444
|
+
tmp_0.d4t_1 = new LoggedContent(this.b4t_1, responseChannel);
|
|
1445
1445
|
this.s8_1 = 2;
|
|
1446
1446
|
continue $sm;
|
|
1447
1447
|
} else {
|
|
1448
1448
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
1449
1449
|
var tmp_1 = this;
|
|
1450
1450
|
var responseChannel_0 = ByteChannel();
|
|
1451
|
-
var content_0 = toReadChannel(this.
|
|
1452
|
-
copyToBoth(content_0, this.
|
|
1453
|
-
tmp_1.
|
|
1451
|
+
var content_0 = toReadChannel(this.b4t_1);
|
|
1452
|
+
copyToBoth(content_0, this.c4t_1, responseChannel_0);
|
|
1453
|
+
tmp_1.d4t_1 = new LoggedContent(this.b4t_1, responseChannel_0);
|
|
1454
1454
|
this.s8_1 = 2;
|
|
1455
1455
|
continue $sm;
|
|
1456
1456
|
} else {
|
|
1457
1457
|
var tmp_2 = this;
|
|
1458
|
-
close(this.
|
|
1459
|
-
tmp_2.
|
|
1458
|
+
close(this.c4t_1);
|
|
1459
|
+
tmp_2.d4t_1 = this.b4t_1;
|
|
1460
1460
|
this.s8_1 = 2;
|
|
1461
1461
|
continue $sm;
|
|
1462
1462
|
}
|
|
@@ -1464,12 +1464,12 @@
|
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
1466
|
case 1:
|
|
1467
|
-
close(this.
|
|
1468
|
-
this.
|
|
1467
|
+
close(this.c4t_1);
|
|
1468
|
+
this.d4t_1 = this.b4t_1;
|
|
1469
1469
|
this.s8_1 = 2;
|
|
1470
1470
|
continue $sm;
|
|
1471
1471
|
case 2:
|
|
1472
|
-
return this.
|
|
1472
|
+
return this.d4t_1;
|
|
1473
1473
|
case 3:
|
|
1474
1474
|
throw this.v8_1;
|
|
1475
1475
|
}
|