game_client_logic_deb 1.8.342 → 1.8.345
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 +105 -117
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +935 -945
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +4622 -3643
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1828 -1855
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18031 -18544
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +897 -163
- package/Logic_Debertz-game_client.js +5644 -5279
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4832 -4536
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -26
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3156 -3339
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +459 -523
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2372 -2414
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1963 -1977
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +194 -194
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +1902 -1937
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-js.js.map +1 -1
- package/ktor-ktor-client-logging.js +393 -399
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +12 -15
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +964 -1154
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1715 -1825
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +238 -243
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +100 -96
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +655 -689
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websocket-serialization.js.map +1 -1
- package/ktor-ktor-websockets.js +71 -77
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -2
- package/raspberry-cardgame-lib-core.js +331 -365
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +148 -119
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +922 -989
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +36 -35
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +35 -39
- package/uuid.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
|
@@ -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.$_$.
|
|
43
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
33
|
+
var CoroutineImpl = kotlin_kotlin.$_$.pa;
|
|
34
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.aa;
|
|
35
|
+
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
36
|
+
var isCharSequence = kotlin_kotlin.$_$.xb;
|
|
37
|
+
var trim = kotlin_kotlin.$_$.qf;
|
|
38
|
+
var toString = kotlin_kotlin.$_$.tc;
|
|
39
|
+
var Unit_instance = kotlin_kotlin.$_$.h5;
|
|
40
|
+
var protoOf = kotlin_kotlin.$_$.oc;
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.cb;
|
|
43
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
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.$_$.n2;
|
|
47
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nb;
|
|
48
48
|
var VOID = kotlin_kotlin.$_$.f;
|
|
49
|
-
var Enum = kotlin_kotlin.$_$.
|
|
49
|
+
var Enum = kotlin_kotlin.$_$.dg;
|
|
50
50
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.n;
|
|
51
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
52
|
-
var println = kotlin_kotlin.$_$.
|
|
53
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
51
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ob;
|
|
52
|
+
var println = kotlin_kotlin.$_$.sa;
|
|
53
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
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.$_$.sh;
|
|
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.$_$.j5;
|
|
72
|
+
var isInterface = kotlin_kotlin.$_$.bc;
|
|
73
73
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
74
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
74
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.rb;
|
|
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.$_$.f7;
|
|
81
|
+
var toList = kotlin_kotlin.$_$.l9;
|
|
82
|
+
var sortedWith = kotlin_kotlin.$_$.d9;
|
|
83
|
+
var joinToString = kotlin_kotlin.$_$.x7;
|
|
84
|
+
var equals = kotlin_kotlin.$_$.gb;
|
|
85
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ta;
|
|
86
|
+
var Comparator = kotlin_kotlin.$_$.ag;
|
|
87
|
+
var hashCode = kotlin_kotlin.$_$.mb;
|
|
88
|
+
var compareValues = kotlin_kotlin.$_$.y9;
|
|
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;
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.k;
|
|
96
96
|
//endregion
|
|
97
97
|
//region block: pre-declaration
|
|
98
|
-
initMetadataForCoroutine($logResponseExceptionCOROUTINE
|
|
99
|
-
initMetadataForCoroutine($logResponseBodyCOROUTINE
|
|
100
|
-
initMetadataForCoroutine($closeResponseLogCOROUTINE
|
|
98
|
+
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
99
|
+
initMetadataForCoroutine($logResponseBodyCOROUTINE$, CoroutineImpl);
|
|
100
|
+
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
101
101
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
102
102
|
initMetadataForClass(LogLevel, 'LogLevel', VOID, Enum);
|
|
103
103
|
initMetadataForClass(LoggedContent, 'LoggedContent', VOID, ReadChannelContent);
|
|
@@ -112,16 +112,16 @@
|
|
|
112
112
|
initMetadataForLambda(Logging$setupResponseLogging$slambda_3, CoroutineImpl, VOID, [1]);
|
|
113
113
|
initMetadataForClass(Logging, 'Logging', VOID, VOID, VOID, [1, 2]);
|
|
114
114
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
115
|
-
initMetadataForCoroutine($logResponseBodyCOROUTINE$
|
|
115
|
+
initMetadataForCoroutine($logResponseBodyCOROUTINE$_0, CoroutineImpl);
|
|
116
116
|
initMetadataForLambda(toReadChannel$slambda, CoroutineImpl, VOID, [1]);
|
|
117
|
-
initMetadataForCoroutine($observeCOROUTINE
|
|
117
|
+
initMetadataForCoroutine($observeCOROUTINE$, CoroutineImpl);
|
|
118
118
|
//endregion
|
|
119
|
-
function $logResponseExceptionCOROUTINE$
|
|
119
|
+
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
120
120
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.w3w_1 = _this__u8e3s4;
|
|
122
|
+
this.x3w_1 = message;
|
|
123
123
|
}
|
|
124
|
-
protoOf($logResponseExceptionCOROUTINE$
|
|
124
|
+
protoOf($logResponseExceptionCOROUTINE$).r9 = function () {
|
|
125
125
|
var suspendResult = this.l9_1;
|
|
126
126
|
$sm: do
|
|
127
127
|
try {
|
|
@@ -130,15 +130,15 @@
|
|
|
130
130
|
case 0:
|
|
131
131
|
this.k9_1 = 2;
|
|
132
132
|
this.j9_1 = 1;
|
|
133
|
-
suspendResult = this.
|
|
133
|
+
suspendResult = this.w3w_1.b3x_1.lr(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.x3w_1;
|
|
141
|
+
this.w3w_1.y3w_1.f3x(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
142
|
return Unit_instance;
|
|
143
143
|
case 2:
|
|
144
144
|
throw this.m9_1;
|
|
@@ -154,12 +154,12 @@
|
|
|
154
154
|
}
|
|
155
155
|
while (true);
|
|
156
156
|
};
|
|
157
|
-
function $logResponseBodyCOROUTINE$
|
|
157
|
+
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.o3x_1 = _this__u8e3s4;
|
|
160
|
+
this.p3x_1 = message;
|
|
161
161
|
}
|
|
162
|
-
protoOf($logResponseBodyCOROUTINE$
|
|
162
|
+
protoOf($logResponseBodyCOROUTINE$).r9 = function () {
|
|
163
163
|
var suspendResult = this.l9_1;
|
|
164
164
|
$sm: do
|
|
165
165
|
try {
|
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
case 0:
|
|
169
169
|
this.k9_1 = 2;
|
|
170
170
|
this.j9_1 = 1;
|
|
171
|
-
suspendResult = this.
|
|
171
|
+
suspendResult = this.o3x_1.c3x_1.lr(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.o3x_1.a3x_1.u8(this.p3x_1);
|
|
179
179
|
return Unit_instance;
|
|
180
180
|
case 2:
|
|
181
181
|
throw this.m9_1;
|
|
@@ -191,11 +191,11 @@
|
|
|
191
191
|
}
|
|
192
192
|
while (true);
|
|
193
193
|
};
|
|
194
|
-
function $closeResponseLogCOROUTINE$
|
|
194
|
+
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
195
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
196
|
+
this.y3x_1 = _this__u8e3s4;
|
|
197
197
|
}
|
|
198
|
-
protoOf($closeResponseLogCOROUTINE$
|
|
198
|
+
protoOf($closeResponseLogCOROUTINE$).r9 = function () {
|
|
199
199
|
var suspendResult = this.l9_1;
|
|
200
200
|
$sm: do
|
|
201
201
|
try {
|
|
@@ -203,19 +203,19 @@
|
|
|
203
203
|
switch (tmp) {
|
|
204
204
|
case 0:
|
|
205
205
|
this.k9_1 = 2;
|
|
206
|
-
if (!this.
|
|
206
|
+
if (!this.y3x_1.e3x_1.atomicfu$compareAndSet(false, true))
|
|
207
207
|
return Unit_instance;
|
|
208
208
|
this.j9_1 = 1;
|
|
209
|
-
suspendResult = this.
|
|
209
|
+
suspendResult = this.y3x_1.b3x_1.lr(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.y3x_1.a3x_1));
|
|
217
217
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
218
|
+
this.y3x_1.y3w_1.f3x(message);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return Unit_instance;
|
|
@@ -234,58 +234,58 @@
|
|
|
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.y3w_1 = logger;
|
|
238
|
+
this.z3w_1 = StringBuilder_init_$Create$();
|
|
239
|
+
this.a3x_1 = StringBuilder_init_$Create$();
|
|
240
|
+
this.b3x_1 = Job();
|
|
241
|
+
this.c3x_1 = Job();
|
|
242
|
+
this.d3x_1 = atomic$boolean$1(false);
|
|
243
|
+
this.e3x_1 = atomic$boolean$1(false);
|
|
244
244
|
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
246
|
-
|
|
247
|
-
var this_0 = this.z3t_1;
|
|
245
|
+
protoOf(HttpClientCallLogger).z3x = function (message) {
|
|
246
|
+
var tmp0 = this.z3w_1;
|
|
248
247
|
// Inline function 'kotlin.text.trim' call
|
|
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.u8(value).v8(_Char___init__impl__6a9atx(10));
|
|
252
252
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
254
|
-
|
|
255
|
-
var this_0 = this.a3u_1;
|
|
253
|
+
protoOf(HttpClientCallLogger).a3y = function (message) {
|
|
254
|
+
var tmp0 = this.a3x_1;
|
|
256
255
|
// Inline function 'kotlin.text.trim' call
|
|
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
|
-
|
|
260
|
-
this.
|
|
259
|
+
tmp0.u8(value).v8(_Char___init__impl__6a9atx(10));
|
|
260
|
+
this.c3x_1.my();
|
|
261
261
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
263
|
-
var tmp = new $logResponseExceptionCOROUTINE$
|
|
262
|
+
protoOf(HttpClientCallLogger).b3y = function (message, $completion) {
|
|
263
|
+
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
264
264
|
tmp.l9_1 = Unit_instance;
|
|
265
265
|
tmp.m9_1 = null;
|
|
266
266
|
return tmp.r9();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
269
|
-
var tmp = new $logResponseBodyCOROUTINE$
|
|
268
|
+
protoOf(HttpClientCallLogger).c3y = function (message, $completion) {
|
|
269
|
+
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
270
270
|
tmp.l9_1 = Unit_instance;
|
|
271
271
|
tmp.m9_1 = null;
|
|
272
272
|
return tmp.r9();
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
274
|
+
protoOf(HttpClientCallLogger).d3y = function () {
|
|
275
|
+
if (!this.d3x_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.z3w_1));
|
|
279
279
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
280
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
281
|
+
this.y3w_1.f3x(message);
|
|
282
282
|
}
|
|
283
283
|
}finally {
|
|
284
|
-
this.
|
|
284
|
+
this.b3x_1.my();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
288
|
-
var tmp = new $closeResponseLogCOROUTINE$
|
|
287
|
+
protoOf(HttpClientCallLogger).e3y = function ($completion) {
|
|
288
|
+
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
289
289
|
tmp.l9_1 = Unit_instance;
|
|
290
290
|
tmp.m9_1 = null;
|
|
291
291
|
return tmp.r9();
|
|
@@ -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.h3y_1 = info;
|
|
312
|
+
this.i3y_1 = headers;
|
|
313
|
+
this.j3y_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.l3y_1 = originalContent;
|
|
330
|
+
this.m3y_1 = channel;
|
|
331
|
+
this.n3y_1 = this.l3y_1.t2q();
|
|
332
|
+
this.o3y_1 = this.l3y_1.v2q();
|
|
333
|
+
this.p3y_1 = this.l3y_1.u2q();
|
|
334
|
+
this.q3y_1 = this.l3y_1.p2l();
|
|
335
335
|
}
|
|
336
|
-
protoOf(LoggedContent).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(LoggedContent).t2q = function () {
|
|
337
|
+
return this.n3y_1;
|
|
338
338
|
};
|
|
339
|
-
protoOf(LoggedContent).
|
|
340
|
-
return this.
|
|
339
|
+
protoOf(LoggedContent).v2q = function () {
|
|
340
|
+
return this.o3y_1;
|
|
341
341
|
};
|
|
342
|
-
protoOf(LoggedContent).
|
|
343
|
-
return this.
|
|
342
|
+
protoOf(LoggedContent).u2q = function () {
|
|
343
|
+
return this.p3y_1;
|
|
344
344
|
};
|
|
345
|
-
protoOf(LoggedContent).
|
|
346
|
-
return this.
|
|
345
|
+
protoOf(LoggedContent).p2l = function () {
|
|
346
|
+
return this.q3y_1;
|
|
347
347
|
};
|
|
348
|
-
protoOf(LoggedContent).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(LoggedContent).z2q = function () {
|
|
349
|
+
return this.m3y_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).f3x = function (message) {
|
|
363
363
|
println('HttpClient: ' + message);
|
|
364
364
|
};
|
|
365
365
|
function get_ClientCallLogger() {
|
|
@@ -375,63 +375,60 @@
|
|
|
375
375
|
function Config() {
|
|
376
376
|
var tmp = this;
|
|
377
377
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
378
|
-
tmp.
|
|
378
|
+
tmp.r3y_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.s3y_1 = ArrayList_init_$Create$();
|
|
382
|
+
this.t3y_1 = null;
|
|
383
|
+
this.u3y_1 = LogLevel_HEADERS_getInstance();
|
|
384
384
|
}
|
|
385
|
-
protoOf(Config).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(Config).v3y = function (value) {
|
|
386
|
+
this.t3y_1 = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(Config).
|
|
389
|
-
var tmp0_elvis_lhs = this.
|
|
388
|
+
protoOf(Config).w3y = function () {
|
|
389
|
+
var tmp0_elvis_lhs = this.t3y_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().w2x_1;
|
|
394
|
+
client.g2v_1.v2e(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
395
395
|
}
|
|
396
396
|
function logRequest($this, request, $completion) {
|
|
397
|
-
var tmp = request.
|
|
397
|
+
var tmp = request.h2x_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.x3y_1);
|
|
400
|
+
request.j2x_1.l27(get_ClientCallLogger(), logger);
|
|
401
401
|
// Inline function 'kotlin.text.buildString' call
|
|
402
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
403
402
|
// Inline function 'kotlin.apply' call
|
|
404
403
|
var this_0 = StringBuilder_init_$Create$();
|
|
405
|
-
|
|
406
|
-
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>' call
|
|
407
|
-
if ($this.y3v_1.h3v_1) {
|
|
404
|
+
if ($this.y3y_1.h3y_1) {
|
|
408
405
|
// Inline function 'kotlin.text.appendLine' call
|
|
409
|
-
var value = 'REQUEST: ' + Url(request.
|
|
406
|
+
var value = 'REQUEST: ' + Url(request.e2x_1).toString();
|
|
410
407
|
// Inline function 'kotlin.text.appendLine' call
|
|
411
|
-
this_0.
|
|
408
|
+
this_0.u8(value).v8(_Char___init__impl__6a9atx(10));
|
|
412
409
|
// Inline function 'kotlin.text.appendLine' call
|
|
413
|
-
var value_0 = 'METHOD: ' + request.
|
|
410
|
+
var value_0 = 'METHOD: ' + request.f2x_1.toString();
|
|
414
411
|
// Inline function 'kotlin.text.appendLine' call
|
|
415
|
-
this_0.
|
|
412
|
+
this_0.u8(value_0).v8(_Char___init__impl__6a9atx(10));
|
|
416
413
|
}
|
|
417
|
-
if ($this.
|
|
414
|
+
if ($this.y3y_1.i3y_1) {
|
|
418
415
|
// Inline function 'kotlin.text.appendLine' call
|
|
419
416
|
var value_1 = 'COMMON HEADERS';
|
|
420
417
|
// Inline function 'kotlin.text.appendLine' call
|
|
421
|
-
this_0.
|
|
422
|
-
logHeaders(this_0, request.
|
|
418
|
+
this_0.u8(value_1).v8(_Char___init__impl__6a9atx(10));
|
|
419
|
+
logHeaders(this_0, request.g2x_1.o2b(), $this.a3z_1);
|
|
423
420
|
// Inline function 'kotlin.text.appendLine' call
|
|
424
421
|
var value_2 = 'CONTENT HEADERS';
|
|
425
422
|
// Inline function 'kotlin.text.appendLine' call
|
|
426
|
-
this_0.
|
|
423
|
+
this_0.u8(value_2).v8(_Char___init__impl__6a9atx(10));
|
|
424
|
+
var tmp0 = $this.a3z_1;
|
|
427
425
|
var tmp$ret$9;
|
|
428
426
|
$l$block: {
|
|
429
427
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
430
|
-
var
|
|
431
|
-
while (
|
|
432
|
-
var element =
|
|
433
|
-
|
|
434
|
-
if (element.c3w_1(HttpHeaders_getInstance().w2f_1)) {
|
|
428
|
+
var _iterator__ex2g4s = tmp0.j();
|
|
429
|
+
while (_iterator__ex2g4s.k()) {
|
|
430
|
+
var element = _iterator__ex2g4s.l();
|
|
431
|
+
if (element.c3z_1(HttpHeaders_getInstance().b2i_1)) {
|
|
435
432
|
tmp$ret$9 = element;
|
|
436
433
|
break $l$block;
|
|
437
434
|
}
|
|
@@ -439,15 +436,15 @@
|
|
|
439
436
|
tmp$ret$9 = null;
|
|
440
437
|
}
|
|
441
438
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
442
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
439
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3z_1;
|
|
440
|
+
var tmp0_0 = $this.a3z_1;
|
|
443
441
|
var tmp$ret$11;
|
|
444
442
|
$l$block_0: {
|
|
445
443
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
446
|
-
var
|
|
447
|
-
while (
|
|
448
|
-
var element_0 =
|
|
449
|
-
|
|
450
|
-
if (element_0.c3w_1(HttpHeaders_getInstance().z2f_1)) {
|
|
444
|
+
var _iterator__ex2g4s_0 = tmp0_0.j();
|
|
445
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
446
|
+
var element_0 = _iterator__ex2g4s_0.l();
|
|
447
|
+
if (element_0.c3z_1(HttpHeaders_getInstance().e2i_1)) {
|
|
451
448
|
tmp$ret$11 = element_0;
|
|
452
449
|
break $l$block_0;
|
|
453
450
|
}
|
|
@@ -455,41 +452,39 @@
|
|
|
455
452
|
tmp$ret$11 = null;
|
|
456
453
|
}
|
|
457
454
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
458
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
459
|
-
var tmp2_safe_receiver = content.
|
|
455
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b3z_1;
|
|
456
|
+
var tmp2_safe_receiver = content.v2q();
|
|
460
457
|
if (tmp2_safe_receiver == null)
|
|
461
458
|
null;
|
|
462
459
|
else {
|
|
463
460
|
// Inline function 'kotlin.let' call
|
|
464
|
-
|
|
465
|
-
var tmp_0 = HttpHeaders_getInstance().w2f_1;
|
|
461
|
+
var tmp_0 = HttpHeaders_getInstance().b2i_1;
|
|
466
462
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
467
463
|
}
|
|
468
|
-
var tmp3_safe_receiver = content.
|
|
464
|
+
var tmp3_safe_receiver = content.t2q();
|
|
469
465
|
if (tmp3_safe_receiver == null)
|
|
470
466
|
null;
|
|
471
467
|
else {
|
|
472
468
|
// Inline function 'kotlin.let' call
|
|
473
|
-
|
|
474
|
-
var tmp_1 = HttpHeaders_getInstance().z2f_1;
|
|
469
|
+
var tmp_1 = HttpHeaders_getInstance().e2i_1;
|
|
475
470
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
476
471
|
}
|
|
477
|
-
logHeaders(this_0, content.
|
|
472
|
+
logHeaders(this_0, content.p2l().o2b(), $this.a3z_1);
|
|
478
473
|
}
|
|
479
474
|
var message = this_0.toString();
|
|
480
475
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
481
476
|
if (charSequenceLength(message) > 0) {
|
|
482
|
-
logger.
|
|
477
|
+
logger.z3x(message);
|
|
483
478
|
}
|
|
484
479
|
var tmp_2;
|
|
485
480
|
// Inline function 'kotlin.text.isEmpty' call
|
|
486
481
|
if (charSequenceLength(message) === 0) {
|
|
487
482
|
tmp_2 = true;
|
|
488
483
|
} else {
|
|
489
|
-
tmp_2 = !$this.
|
|
484
|
+
tmp_2 = !$this.y3y_1.j3y_1;
|
|
490
485
|
}
|
|
491
486
|
if (tmp_2) {
|
|
492
|
-
logger.
|
|
487
|
+
logger.d3y();
|
|
493
488
|
return null;
|
|
494
489
|
}
|
|
495
490
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -497,63 +492,62 @@
|
|
|
497
492
|
function logRequestBody($this, content, logger, $completion) {
|
|
498
493
|
var requestLog = StringBuilder_init_$Create$();
|
|
499
494
|
// Inline function 'kotlin.text.appendLine' call
|
|
500
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
495
|
+
var value = 'BODY Content-Type: ' + toString_0(content.t2q());
|
|
501
496
|
// Inline function 'kotlin.text.appendLine' call
|
|
502
|
-
requestLog.
|
|
503
|
-
var tmp0_safe_receiver = content.
|
|
497
|
+
requestLog.u8(value).v8(_Char___init__impl__6a9atx(10));
|
|
498
|
+
var tmp0_safe_receiver = content.t2q();
|
|
504
499
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
505
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
500
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().p23_1 : tmp1_elvis_lhs;
|
|
506
501
|
var channel = ByteChannel();
|
|
507
502
|
var tmp = GlobalScope_instance;
|
|
508
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
503
|
+
var tmp_0 = Dispatchers_getInstance().c12_1;
|
|
509
504
|
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
510
|
-
tmp_1.
|
|
505
|
+
tmp_1.hr(Logging$logRequestBody$lambda(logger, requestLog));
|
|
511
506
|
return observe(content, channel, $completion);
|
|
512
507
|
}
|
|
513
508
|
function logRequestException($this, context, cause) {
|
|
514
|
-
if ($this.
|
|
515
|
-
$this.
|
|
509
|
+
if ($this.y3y_1.h3y_1) {
|
|
510
|
+
$this.x3y_1.f3x('REQUEST ' + Url(context.e2x_1).toString() + ' failed with exception: ' + cause.toString());
|
|
516
511
|
}
|
|
517
512
|
}
|
|
518
513
|
function setupResponseLogging($this, client) {
|
|
519
|
-
var tmp = Phases_getInstance_0().
|
|
520
|
-
client.
|
|
521
|
-
var tmp_0 = Phases_getInstance_1().
|
|
522
|
-
client.
|
|
523
|
-
if (!$this.
|
|
514
|
+
var tmp = Phases_getInstance_0().h34_1;
|
|
515
|
+
client.h2v_1.v2e(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
516
|
+
var tmp_0 = Phases_getInstance_1().c2y_1;
|
|
517
|
+
client.f2v_1.v2e(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
518
|
+
if (!$this.y3y_1.j3y_1)
|
|
524
519
|
return Unit_instance;
|
|
525
520
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
526
|
-
Plugin_getInstance().
|
|
521
|
+
Plugin_getInstance().j3m(new ResponseObserver(observer), client);
|
|
527
522
|
}
|
|
528
523
|
function logResponseException($this, log, request, cause) {
|
|
529
|
-
if (!$this.
|
|
524
|
+
if (!$this.y3y_1.h3y_1)
|
|
530
525
|
return Unit_instance;
|
|
531
|
-
log.
|
|
526
|
+
log.u8('RESPONSE ' + request.r2z().toString() + ' failed with exception: ' + cause.toString());
|
|
532
527
|
}
|
|
533
528
|
function Companion_0() {
|
|
534
529
|
Companion_instance_0 = this;
|
|
535
|
-
this.
|
|
530
|
+
this.d3z_1 = new AttributeKey('ClientLogging');
|
|
536
531
|
}
|
|
537
532
|
protoOf(Companion_0).t = function () {
|
|
538
|
-
return this.
|
|
533
|
+
return this.d3z_1;
|
|
539
534
|
};
|
|
540
|
-
protoOf(Companion_0).
|
|
535
|
+
protoOf(Companion_0).e3z = function (block) {
|
|
541
536
|
// Inline function 'kotlin.apply' call
|
|
542
537
|
var this_0 = new Config();
|
|
543
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
544
538
|
block(this_0);
|
|
545
539
|
var config = this_0;
|
|
546
|
-
return new Logging(config.
|
|
540
|
+
return new Logging(config.w3y(), config.u3y_1, config.r3y_1, config.s3y_1);
|
|
547
541
|
};
|
|
548
|
-
protoOf(Companion_0).
|
|
549
|
-
return this.
|
|
542
|
+
protoOf(Companion_0).j2y = function (block) {
|
|
543
|
+
return this.e3z(block);
|
|
550
544
|
};
|
|
551
|
-
protoOf(Companion_0).
|
|
545
|
+
protoOf(Companion_0).f3z = function (plugin, scope) {
|
|
552
546
|
setupRequestLogging(plugin, scope);
|
|
553
547
|
setupResponseLogging(plugin, scope);
|
|
554
548
|
};
|
|
555
|
-
protoOf(Companion_0).
|
|
556
|
-
return this.
|
|
549
|
+
protoOf(Companion_0).k2y = function (plugin, scope) {
|
|
550
|
+
return this.f3z(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
557
551
|
};
|
|
558
552
|
var Companion_instance_0;
|
|
559
553
|
function Companion_getInstance_0() {
|
|
@@ -563,16 +557,16 @@
|
|
|
563
557
|
}
|
|
564
558
|
function shouldBeLogged($this, request) {
|
|
565
559
|
var tmp;
|
|
566
|
-
if ($this.
|
|
560
|
+
if ($this.z3y_1.p()) {
|
|
567
561
|
tmp = true;
|
|
568
562
|
} else {
|
|
563
|
+
var tmp0 = $this.z3y_1;
|
|
569
564
|
var tmp$ret$0;
|
|
570
565
|
$l$block_0: {
|
|
571
566
|
// Inline function 'kotlin.collections.any' call
|
|
572
|
-
var this_0 = $this.z3v_1;
|
|
573
567
|
var tmp_0;
|
|
574
|
-
if (isInterface(
|
|
575
|
-
tmp_0 =
|
|
568
|
+
if (isInterface(tmp0, Collection)) {
|
|
569
|
+
tmp_0 = tmp0.p();
|
|
576
570
|
} else {
|
|
577
571
|
tmp_0 = false;
|
|
578
572
|
}
|
|
@@ -580,10 +574,9 @@
|
|
|
580
574
|
tmp$ret$0 = false;
|
|
581
575
|
break $l$block_0;
|
|
582
576
|
}
|
|
583
|
-
var
|
|
584
|
-
while (
|
|
585
|
-
var element =
|
|
586
|
-
// Inline function 'io.ktor.client.plugins.logging.Logging.shouldBeLogged.<anonymous>' call
|
|
577
|
+
var _iterator__ex2g4s = tmp0.j();
|
|
578
|
+
while (_iterator__ex2g4s.k()) {
|
|
579
|
+
var element = _iterator__ex2g4s.l();
|
|
587
580
|
if (element(request)) {
|
|
588
581
|
tmp$ret$0 = true;
|
|
589
582
|
break $l$block_0;
|
|
@@ -596,18 +589,18 @@
|
|
|
596
589
|
return tmp;
|
|
597
590
|
}
|
|
598
591
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
599
|
-
this.
|
|
592
|
+
this.o3z_1 = this$0;
|
|
600
593
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
594
|
}
|
|
602
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
603
|
-
var tmp = this.
|
|
595
|
+
protoOf(Logging$setupRequestLogging$slambda).y2v = function ($this$intercept, it, $completion) {
|
|
596
|
+
var tmp = this.z2v($this$intercept, it, $completion);
|
|
604
597
|
tmp.l9_1 = Unit_instance;
|
|
605
598
|
tmp.m9_1 = null;
|
|
606
599
|
return tmp.r9();
|
|
607
600
|
};
|
|
608
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
601
|
+
protoOf(Logging$setupRequestLogging$slambda).aa = function (p1, p2, $completion) {
|
|
609
602
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
610
|
-
return this.
|
|
603
|
+
return this.y2v(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
611
604
|
};
|
|
612
605
|
protoOf(Logging$setupRequestLogging$slambda).r9 = function () {
|
|
613
606
|
var suspendResult = this.l9_1;
|
|
@@ -617,21 +610,21 @@
|
|
|
617
610
|
switch (tmp) {
|
|
618
611
|
case 0:
|
|
619
612
|
this.k9_1 = 8;
|
|
620
|
-
if (!shouldBeLogged(this.
|
|
621
|
-
this.
|
|
613
|
+
if (!shouldBeLogged(this.o3z_1, this.p3z_1.r2e_1)) {
|
|
614
|
+
this.p3z_1.r2e_1.j2x_1.l27(get_DisableLogging(), Unit_instance);
|
|
622
615
|
return Unit_instance;
|
|
623
616
|
}
|
|
624
617
|
|
|
625
618
|
this.k9_1 = 2;
|
|
626
619
|
this.j9_1 = 1;
|
|
627
|
-
suspendResult = logRequest(this.
|
|
620
|
+
suspendResult = logRequest(this.o3z_1, this.p3z_1.r2e_1, this);
|
|
628
621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
629
622
|
return suspendResult;
|
|
630
623
|
}
|
|
631
624
|
|
|
632
625
|
continue $sm;
|
|
633
626
|
case 1:
|
|
634
|
-
this.
|
|
627
|
+
this.r3z_1 = suspendResult;
|
|
635
628
|
this.k9_1 = 8;
|
|
636
629
|
this.j9_1 = 3;
|
|
637
630
|
continue $sm;
|
|
@@ -639,9 +632,9 @@
|
|
|
639
632
|
this.k9_1 = 8;
|
|
640
633
|
var tmp_0 = this.m9_1;
|
|
641
634
|
if (tmp_0 instanceof Error) {
|
|
642
|
-
this.
|
|
635
|
+
this.s3z_1 = this.m9_1;
|
|
643
636
|
var tmp_1 = this;
|
|
644
|
-
tmp_1.
|
|
637
|
+
tmp_1.r3z_1 = null;
|
|
645
638
|
this.j9_1 = 3;
|
|
646
639
|
continue $sm;
|
|
647
640
|
} else {
|
|
@@ -650,15 +643,15 @@
|
|
|
650
643
|
|
|
651
644
|
case 3:
|
|
652
645
|
this.k9_1 = 8;
|
|
653
|
-
this.
|
|
646
|
+
this.t3z_1 = this.r3z_1;
|
|
654
647
|
this.j9_1 = 4;
|
|
655
648
|
continue $sm;
|
|
656
649
|
case 4:
|
|
657
650
|
this.k9_1 = 7;
|
|
658
651
|
this.k9_1 = 6;
|
|
659
652
|
this.j9_1 = 5;
|
|
660
|
-
var tmp0_elvis_lhs = this.
|
|
661
|
-
suspendResult = this.
|
|
653
|
+
var tmp0_elvis_lhs = this.t3z_1;
|
|
654
|
+
suspendResult = this.p3z_1.v2d(tmp0_elvis_lhs == null ? this.p3z_1.u2d() : tmp0_elvis_lhs, this);
|
|
662
655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
663
656
|
return suspendResult;
|
|
664
657
|
}
|
|
@@ -666,7 +659,7 @@
|
|
|
666
659
|
continue $sm;
|
|
667
660
|
case 5:
|
|
668
661
|
var tmp_2 = this;
|
|
669
|
-
tmp_2.
|
|
662
|
+
tmp_2.u3z_1 = Unit_instance;
|
|
670
663
|
this.k9_1 = 8;
|
|
671
664
|
this.j9_1 = 9;
|
|
672
665
|
continue $sm;
|
|
@@ -676,7 +669,7 @@
|
|
|
676
669
|
if (tmp_3 instanceof Error) {
|
|
677
670
|
var cause = this.m9_1;
|
|
678
671
|
var tmp_4 = this;
|
|
679
|
-
logRequestException(this.
|
|
672
|
+
logRequestException(this.o3z_1, this.p3z_1.r2e_1, cause);
|
|
680
673
|
throw cause;
|
|
681
674
|
} else {
|
|
682
675
|
throw this.m9_1;
|
|
@@ -703,34 +696,34 @@
|
|
|
703
696
|
}
|
|
704
697
|
while (true);
|
|
705
698
|
};
|
|
706
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
707
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
708
|
-
i.
|
|
709
|
-
i.
|
|
699
|
+
protoOf(Logging$setupRequestLogging$slambda).z2v = function ($this$intercept, it, completion) {
|
|
700
|
+
var i = new Logging$setupRequestLogging$slambda(this.o3z_1, completion);
|
|
701
|
+
i.p3z_1 = $this$intercept;
|
|
702
|
+
i.q3z_1 = it;
|
|
710
703
|
return i;
|
|
711
704
|
};
|
|
712
705
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
713
706
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
714
707
|
var l = function ($this$intercept, it, $completion) {
|
|
715
|
-
return i.
|
|
708
|
+
return i.y2v($this$intercept, it, $completion);
|
|
716
709
|
};
|
|
717
710
|
l.$arity = 2;
|
|
718
711
|
return l;
|
|
719
712
|
}
|
|
720
713
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
723
|
-
this.
|
|
714
|
+
this.d40_1 = $channel;
|
|
715
|
+
this.e40_1 = $charset;
|
|
716
|
+
this.f40_1 = $requestLog;
|
|
724
717
|
CoroutineImpl.call(this, resultContinuation);
|
|
725
718
|
}
|
|
726
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
727
|
-
var tmp = this.
|
|
719
|
+
protoOf(Logging$logRequestBody$slambda).o1f = function ($this$launch, $completion) {
|
|
720
|
+
var tmp = this.p1f($this$launch, $completion);
|
|
728
721
|
tmp.l9_1 = Unit_instance;
|
|
729
722
|
tmp.m9_1 = null;
|
|
730
723
|
return tmp.r9();
|
|
731
724
|
};
|
|
732
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
733
|
-
return this.
|
|
725
|
+
protoOf(Logging$logRequestBody$slambda).z9 = function (p1, $completion) {
|
|
726
|
+
return this.o1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
734
727
|
};
|
|
735
728
|
protoOf(Logging$logRequestBody$slambda).r9 = function () {
|
|
736
729
|
var suspendResult = this.l9_1;
|
|
@@ -741,12 +734,14 @@
|
|
|
741
734
|
case 0:
|
|
742
735
|
this.k9_1 = 3;
|
|
743
736
|
var tmp_0 = this;
|
|
744
|
-
tmp_0.
|
|
737
|
+
tmp_0.h40_1 = this.d40_1;
|
|
745
738
|
var tmp_1 = this;
|
|
746
|
-
tmp_1.
|
|
739
|
+
tmp_1.i40_1 = this.e40_1;
|
|
740
|
+
this.j40_1 = this.h40_1;
|
|
741
|
+
this.k40_1 = this.i40_1;
|
|
747
742
|
this.k9_1 = 2;
|
|
748
743
|
this.j9_1 = 1;
|
|
749
|
-
suspendResult = this.
|
|
744
|
+
suspendResult = this.j40_1.a1z(VOID, this);
|
|
750
745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
751
746
|
return suspendResult;
|
|
752
747
|
}
|
|
@@ -754,7 +749,7 @@
|
|
|
754
749
|
continue $sm;
|
|
755
750
|
case 1:
|
|
756
751
|
var ARGUMENT = suspendResult;
|
|
757
|
-
this.
|
|
752
|
+
this.l40_1 = readText(ARGUMENT, this.k40_1);
|
|
758
753
|
this.k9_1 = 3;
|
|
759
754
|
this.j9_1 = 4;
|
|
760
755
|
continue $sm;
|
|
@@ -764,7 +759,7 @@
|
|
|
764
759
|
if (tmp_2 instanceof Error) {
|
|
765
760
|
var cause = this.m9_1;
|
|
766
761
|
var tmp_3 = this;
|
|
767
|
-
tmp_3.
|
|
762
|
+
tmp_3.l40_1 = null;
|
|
768
763
|
this.j9_1 = 4;
|
|
769
764
|
continue $sm;
|
|
770
765
|
} else {
|
|
@@ -775,13 +770,13 @@
|
|
|
775
770
|
throw this.m9_1;
|
|
776
771
|
case 4:
|
|
777
772
|
this.k9_1 = 3;
|
|
778
|
-
var tmp0_elvis_lhs = this.
|
|
773
|
+
var tmp0_elvis_lhs = this.l40_1;
|
|
779
774
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
780
|
-
var
|
|
775
|
+
var tmp0 = this.f40_1;
|
|
781
776
|
var value = 'BODY START';
|
|
782
|
-
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
777
|
+
tmp0.u8(value).v8(_Char___init__impl__6a9atx(10));
|
|
778
|
+
this.f40_1.u8(text).v8(_Char___init__impl__6a9atx(10));
|
|
779
|
+
this.f40_1.u8('BODY END');
|
|
785
780
|
return Unit_instance;
|
|
786
781
|
}
|
|
787
782
|
} catch ($p) {
|
|
@@ -795,39 +790,39 @@
|
|
|
795
790
|
}
|
|
796
791
|
while (true);
|
|
797
792
|
};
|
|
798
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
799
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
800
|
-
i.
|
|
793
|
+
protoOf(Logging$logRequestBody$slambda).p1f = function ($this$launch, completion) {
|
|
794
|
+
var i = new Logging$logRequestBody$slambda(this.d40_1, this.e40_1, this.f40_1, completion);
|
|
795
|
+
i.g40_1 = $this$launch;
|
|
801
796
|
return i;
|
|
802
797
|
};
|
|
803
798
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
804
799
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
805
800
|
var l = function ($this$launch, $completion) {
|
|
806
|
-
return i.
|
|
801
|
+
return i.o1f($this$launch, $completion);
|
|
807
802
|
};
|
|
808
803
|
l.$arity = 1;
|
|
809
804
|
return l;
|
|
810
805
|
}
|
|
811
806
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
812
807
|
return function (it) {
|
|
813
|
-
$logger.
|
|
814
|
-
$logger.
|
|
808
|
+
$logger.z3x($requestLog.toString());
|
|
809
|
+
$logger.d3y();
|
|
815
810
|
return Unit_instance;
|
|
816
811
|
};
|
|
817
812
|
}
|
|
818
813
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
819
|
-
this.
|
|
814
|
+
this.u40_1 = this$0;
|
|
820
815
|
CoroutineImpl.call(this, resultContinuation);
|
|
821
816
|
}
|
|
822
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
823
|
-
var tmp = this.
|
|
817
|
+
protoOf(Logging$setupResponseLogging$slambda).k35 = function ($this$intercept, response, $completion) {
|
|
818
|
+
var tmp = this.l35($this$intercept, response, $completion);
|
|
824
819
|
tmp.l9_1 = Unit_instance;
|
|
825
820
|
tmp.m9_1 = null;
|
|
826
821
|
return tmp.r9();
|
|
827
822
|
};
|
|
828
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
823
|
+
protoOf(Logging$setupResponseLogging$slambda).aa = function (p1, p2, $completion) {
|
|
829
824
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
830
|
-
return this.
|
|
825
|
+
return this.k35(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
831
826
|
};
|
|
832
827
|
protoOf(Logging$setupResponseLogging$slambda).r9 = function () {
|
|
833
828
|
var suspendResult = this.l9_1;
|
|
@@ -837,19 +832,19 @@
|
|
|
837
832
|
switch (tmp) {
|
|
838
833
|
case 0:
|
|
839
834
|
this.k9_1 = 10;
|
|
840
|
-
if (this.
|
|
835
|
+
if (this.u40_1.y3y_1.equals(LogLevel_NONE_getInstance()) || this.w40_1.m30().t2y().k27(get_DisableLogging()))
|
|
841
836
|
return Unit_instance;
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
837
|
+
this.x40_1 = this.w40_1.m30().t2y().i27(get_ClientCallLogger());
|
|
838
|
+
this.y40_1 = StringBuilder_init_$Create$();
|
|
839
|
+
this.z40_1 = false;
|
|
845
840
|
this.j9_1 = 1;
|
|
846
841
|
continue $sm;
|
|
847
842
|
case 1:
|
|
848
843
|
this.k9_1 = 4;
|
|
849
844
|
this.k9_1 = 3;
|
|
850
|
-
logResponseHeader(this.
|
|
845
|
+
logResponseHeader(this.y40_1, this.w40_1.m30().f2w(), this.u40_1.y3y_1, this.u40_1.a3z_1);
|
|
851
846
|
this.j9_1 = 2;
|
|
852
|
-
suspendResult = this.
|
|
847
|
+
suspendResult = this.v40_1.v2d(this.v40_1.u2d(), this);
|
|
853
848
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
854
849
|
return suspendResult;
|
|
855
850
|
}
|
|
@@ -857,7 +852,7 @@
|
|
|
857
852
|
continue $sm;
|
|
858
853
|
case 2:
|
|
859
854
|
var tmp_0 = this;
|
|
860
|
-
tmp_0.
|
|
855
|
+
tmp_0.a41_1 = Unit_instance;
|
|
861
856
|
this.k9_1 = 10;
|
|
862
857
|
this.j9_1 = 7;
|
|
863
858
|
continue $sm;
|
|
@@ -865,22 +860,22 @@
|
|
|
865
860
|
this.k9_1 = 4;
|
|
866
861
|
var tmp_1 = this.m9_1;
|
|
867
862
|
if (tmp_1 instanceof Error) {
|
|
868
|
-
this.
|
|
863
|
+
this.b41_1 = this.m9_1;
|
|
869
864
|
var tmp_2 = this;
|
|
870
|
-
logResponseException(this.
|
|
871
|
-
this.
|
|
872
|
-
throw this.
|
|
865
|
+
logResponseException(this.u40_1, this.y40_1, this.w40_1.m30().o2z(), this.b41_1);
|
|
866
|
+
this.z40_1 = true;
|
|
867
|
+
throw this.b41_1;
|
|
873
868
|
} else {
|
|
874
869
|
throw this.m9_1;
|
|
875
870
|
}
|
|
876
871
|
|
|
877
872
|
case 4:
|
|
878
873
|
this.k9_1 = 10;
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
881
|
-
if (this.
|
|
874
|
+
this.c41_1 = this.m9_1;
|
|
875
|
+
this.x40_1.a3y(this.y40_1.toString());
|
|
876
|
+
if (this.z40_1 || !this.u40_1.y3y_1.j3y_1) {
|
|
882
877
|
this.j9_1 = 5;
|
|
883
|
-
suspendResult = this.
|
|
878
|
+
suspendResult = this.x40_1.e3y(this);
|
|
884
879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
885
880
|
return suspendResult;
|
|
886
881
|
}
|
|
@@ -894,13 +889,13 @@
|
|
|
894
889
|
this.j9_1 = 6;
|
|
895
890
|
continue $sm;
|
|
896
891
|
case 6:
|
|
897
|
-
throw this.
|
|
892
|
+
throw this.c41_1;
|
|
898
893
|
case 7:
|
|
899
894
|
this.k9_1 = 10;
|
|
900
|
-
this.
|
|
901
|
-
if (this.
|
|
895
|
+
this.x40_1.a3y(this.y40_1.toString());
|
|
896
|
+
if (this.z40_1 || !this.u40_1.y3y_1.j3y_1) {
|
|
902
897
|
this.j9_1 = 8;
|
|
903
|
-
suspendResult = this.
|
|
898
|
+
suspendResult = this.x40_1.e3y(this);
|
|
904
899
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
905
900
|
return suspendResult;
|
|
906
901
|
}
|
|
@@ -929,33 +924,33 @@
|
|
|
929
924
|
}
|
|
930
925
|
while (true);
|
|
931
926
|
};
|
|
932
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
933
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
934
|
-
i.
|
|
935
|
-
i.
|
|
927
|
+
protoOf(Logging$setupResponseLogging$slambda).l35 = function ($this$intercept, response, completion) {
|
|
928
|
+
var i = new Logging$setupResponseLogging$slambda(this.u40_1, completion);
|
|
929
|
+
i.v40_1 = $this$intercept;
|
|
930
|
+
i.w40_1 = response;
|
|
936
931
|
return i;
|
|
937
932
|
};
|
|
938
933
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
939
934
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
940
935
|
var l = function ($this$intercept, response, $completion) {
|
|
941
|
-
return i.
|
|
936
|
+
return i.k35($this$intercept, response, $completion);
|
|
942
937
|
};
|
|
943
938
|
l.$arity = 2;
|
|
944
939
|
return l;
|
|
945
940
|
}
|
|
946
941
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
947
|
-
this.
|
|
942
|
+
this.l41_1 = this$0;
|
|
948
943
|
CoroutineImpl.call(this, resultContinuation);
|
|
949
944
|
}
|
|
950
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
951
|
-
var tmp = this.
|
|
945
|
+
protoOf(Logging$setupResponseLogging$slambda_1).s2w = function ($this$intercept, it, $completion) {
|
|
946
|
+
var tmp = this.t2w($this$intercept, it, $completion);
|
|
952
947
|
tmp.l9_1 = Unit_instance;
|
|
953
948
|
tmp.m9_1 = null;
|
|
954
949
|
return tmp.r9();
|
|
955
950
|
};
|
|
956
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
951
|
+
protoOf(Logging$setupResponseLogging$slambda_1).aa = function (p1, p2, $completion) {
|
|
957
952
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
958
|
-
return this.
|
|
953
|
+
return this.s2w(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
959
954
|
};
|
|
960
955
|
protoOf(Logging$setupResponseLogging$slambda_1).r9 = function () {
|
|
961
956
|
var suspendResult = this.l9_1;
|
|
@@ -965,13 +960,13 @@
|
|
|
965
960
|
switch (tmp) {
|
|
966
961
|
case 0:
|
|
967
962
|
this.k9_1 = 6;
|
|
968
|
-
if (this.
|
|
963
|
+
if (this.l41_1.y3y_1.equals(LogLevel_NONE_getInstance()) || this.m41_1.r2e_1.t2y().k27(get_DisableLogging())) {
|
|
969
964
|
return Unit_instance;
|
|
970
965
|
}
|
|
971
966
|
|
|
972
967
|
this.k9_1 = 3;
|
|
973
968
|
this.j9_1 = 1;
|
|
974
|
-
suspendResult = this.
|
|
969
|
+
suspendResult = this.m41_1.w2d(this);
|
|
975
970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
976
971
|
return suspendResult;
|
|
977
972
|
}
|
|
@@ -988,12 +983,12 @@
|
|
|
988
983
|
this.k9_1 = 6;
|
|
989
984
|
var tmp_0 = this.m9_1;
|
|
990
985
|
if (tmp_0 instanceof Error) {
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
994
|
-
logResponseException(this.
|
|
986
|
+
this.o41_1 = this.m9_1;
|
|
987
|
+
this.p41_1 = StringBuilder_init_$Create$();
|
|
988
|
+
this.q41_1 = this.m41_1.r2e_1.t2y().i27(get_ClientCallLogger());
|
|
989
|
+
logResponseException(this.l41_1, this.p41_1, this.m41_1.r2e_1.o2z(), this.o41_1);
|
|
995
990
|
this.j9_1 = 4;
|
|
996
|
-
suspendResult = this.
|
|
991
|
+
suspendResult = this.q41_1.b3y(this.p41_1.toString(), this);
|
|
997
992
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
998
993
|
return suspendResult;
|
|
999
994
|
}
|
|
@@ -1004,14 +999,14 @@
|
|
|
1004
999
|
|
|
1005
1000
|
case 4:
|
|
1006
1001
|
this.j9_1 = 5;
|
|
1007
|
-
suspendResult = this.
|
|
1002
|
+
suspendResult = this.q41_1.e3y(this);
|
|
1008
1003
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1009
1004
|
return suspendResult;
|
|
1010
1005
|
}
|
|
1011
1006
|
|
|
1012
1007
|
continue $sm;
|
|
1013
1008
|
case 5:
|
|
1014
|
-
throw this.
|
|
1009
|
+
throw this.o41_1;
|
|
1015
1010
|
case 6:
|
|
1016
1011
|
throw this.m9_1;
|
|
1017
1012
|
}
|
|
@@ -1026,32 +1021,32 @@
|
|
|
1026
1021
|
}
|
|
1027
1022
|
while (true);
|
|
1028
1023
|
};
|
|
1029
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1030
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1031
|
-
i.
|
|
1032
|
-
i.
|
|
1024
|
+
protoOf(Logging$setupResponseLogging$slambda_1).t2w = function ($this$intercept, it, completion) {
|
|
1025
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.l41_1, completion);
|
|
1026
|
+
i.m41_1 = $this$intercept;
|
|
1027
|
+
i.n41_1 = it;
|
|
1033
1028
|
return i;
|
|
1034
1029
|
};
|
|
1035
1030
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1036
1031
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1037
1032
|
var l = function ($this$intercept, it, $completion) {
|
|
1038
|
-
return i.
|
|
1033
|
+
return i.s2w($this$intercept, it, $completion);
|
|
1039
1034
|
};
|
|
1040
1035
|
l.$arity = 2;
|
|
1041
1036
|
return l;
|
|
1042
1037
|
}
|
|
1043
1038
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1044
|
-
this.
|
|
1039
|
+
this.z41_1 = this$0;
|
|
1045
1040
|
CoroutineImpl.call(this, resultContinuation);
|
|
1046
1041
|
}
|
|
1047
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1048
|
-
var tmp = this.
|
|
1042
|
+
protoOf(Logging$setupResponseLogging$slambda_3).c37 = function (it, $completion) {
|
|
1043
|
+
var tmp = this.d37(it, $completion);
|
|
1049
1044
|
tmp.l9_1 = Unit_instance;
|
|
1050
1045
|
tmp.m9_1 = null;
|
|
1051
1046
|
return tmp.r9();
|
|
1052
1047
|
};
|
|
1053
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1054
|
-
return this.
|
|
1048
|
+
protoOf(Logging$setupResponseLogging$slambda_3).z9 = function (p1, $completion) {
|
|
1049
|
+
return this.c37(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1055
1050
|
};
|
|
1056
1051
|
protoOf(Logging$setupResponseLogging$slambda_3).r9 = function () {
|
|
1057
1052
|
var suspendResult = this.l9_1;
|
|
@@ -1061,26 +1056,26 @@
|
|
|
1061
1056
|
switch (tmp) {
|
|
1062
1057
|
case 0:
|
|
1063
1058
|
this.k9_1 = 10;
|
|
1064
|
-
if (this.
|
|
1059
|
+
if (this.z41_1.y3y_1.equals(LogLevel_NONE_getInstance()) || this.a42_1.m30().t2y().k27(get_DisableLogging())) {
|
|
1065
1060
|
return Unit_instance;
|
|
1066
1061
|
}
|
|
1067
1062
|
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1063
|
+
this.b42_1 = this.a42_1.m30().t2y().i27(get_ClientCallLogger());
|
|
1064
|
+
this.c42_1 = StringBuilder_init_$Create$();
|
|
1070
1065
|
this.j9_1 = 1;
|
|
1071
1066
|
continue $sm;
|
|
1072
1067
|
case 1:
|
|
1073
1068
|
this.k9_1 = 4;
|
|
1074
1069
|
this.k9_1 = 3;
|
|
1075
1070
|
this.j9_1 = 2;
|
|
1076
|
-
suspendResult = logResponseBody(this.
|
|
1071
|
+
suspendResult = logResponseBody(this.c42_1, contentType(this.a42_1), this.a42_1.p2z(), this);
|
|
1077
1072
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1078
1073
|
return suspendResult;
|
|
1079
1074
|
}
|
|
1080
1075
|
|
|
1081
1076
|
continue $sm;
|
|
1082
1077
|
case 2:
|
|
1083
|
-
this.
|
|
1078
|
+
this.d42_1 = suspendResult;
|
|
1084
1079
|
this.k9_1 = 10;
|
|
1085
1080
|
this.j9_1 = 7;
|
|
1086
1081
|
continue $sm;
|
|
@@ -1088,9 +1083,9 @@
|
|
|
1088
1083
|
this.k9_1 = 4;
|
|
1089
1084
|
var tmp_0 = this.m9_1;
|
|
1090
1085
|
if (tmp_0 instanceof Error) {
|
|
1091
|
-
this.
|
|
1086
|
+
this.e42_1 = this.m9_1;
|
|
1092
1087
|
var tmp_1 = this;
|
|
1093
|
-
tmp_1.
|
|
1088
|
+
tmp_1.d42_1 = Unit_instance;
|
|
1094
1089
|
this.k9_1 = 10;
|
|
1095
1090
|
this.j9_1 = 7;
|
|
1096
1091
|
continue $sm;
|
|
@@ -1100,10 +1095,10 @@
|
|
|
1100
1095
|
|
|
1101
1096
|
case 4:
|
|
1102
1097
|
this.k9_1 = 10;
|
|
1103
|
-
this.
|
|
1098
|
+
this.f42_1 = this.m9_1;
|
|
1104
1099
|
this.j9_1 = 5;
|
|
1105
|
-
var this_0 = this.
|
|
1106
|
-
suspendResult = this.
|
|
1100
|
+
var this_0 = this.c42_1.toString();
|
|
1101
|
+
suspendResult = this.b42_1.c3y(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1107
1102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1108
1103
|
return suspendResult;
|
|
1109
1104
|
}
|
|
@@ -1111,19 +1106,19 @@
|
|
|
1111
1106
|
continue $sm;
|
|
1112
1107
|
case 5:
|
|
1113
1108
|
this.j9_1 = 6;
|
|
1114
|
-
suspendResult = this.
|
|
1109
|
+
suspendResult = this.b42_1.e3y(this);
|
|
1115
1110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1116
1111
|
return suspendResult;
|
|
1117
1112
|
}
|
|
1118
1113
|
|
|
1119
1114
|
continue $sm;
|
|
1120
1115
|
case 6:
|
|
1121
|
-
throw this.
|
|
1116
|
+
throw this.f42_1;
|
|
1122
1117
|
case 7:
|
|
1123
1118
|
this.k9_1 = 10;
|
|
1124
1119
|
this.j9_1 = 8;
|
|
1125
|
-
var this_1 = this.
|
|
1126
|
-
suspendResult = this.
|
|
1120
|
+
var this_1 = this.c42_1.toString();
|
|
1121
|
+
suspendResult = this.b42_1.c3y(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1127
1122
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1128
1123
|
return suspendResult;
|
|
1129
1124
|
}
|
|
@@ -1131,7 +1126,7 @@
|
|
|
1131
1126
|
continue $sm;
|
|
1132
1127
|
case 8:
|
|
1133
1128
|
this.j9_1 = 9;
|
|
1134
|
-
suspendResult = this.
|
|
1129
|
+
suspendResult = this.b42_1.e3y(this);
|
|
1135
1130
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1136
1131
|
return suspendResult;
|
|
1137
1132
|
}
|
|
@@ -1153,15 +1148,15 @@
|
|
|
1153
1148
|
}
|
|
1154
1149
|
while (true);
|
|
1155
1150
|
};
|
|
1156
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1157
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1158
|
-
i.
|
|
1151
|
+
protoOf(Logging$setupResponseLogging$slambda_3).d37 = function (it, completion) {
|
|
1152
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.z41_1, completion);
|
|
1153
|
+
i.a42_1 = it;
|
|
1159
1154
|
return i;
|
|
1160
1155
|
};
|
|
1161
1156
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1162
1157
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1163
1158
|
var l = function (it, $completion) {
|
|
1164
|
-
return i.
|
|
1159
|
+
return i.c37(it, $completion);
|
|
1165
1160
|
};
|
|
1166
1161
|
l.$arity = 1;
|
|
1167
1162
|
return l;
|
|
@@ -1169,10 +1164,10 @@
|
|
|
1169
1164
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1170
1165
|
Companion_getInstance_0();
|
|
1171
1166
|
filters = filters === VOID ? emptyList() : filters;
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1167
|
+
this.x3y_1 = logger;
|
|
1168
|
+
this.y3y_1 = level;
|
|
1169
|
+
this.z3y_1 = filters;
|
|
1170
|
+
this.a3z_1 = sanitizedHeaders;
|
|
1176
1171
|
}
|
|
1177
1172
|
var properties_initialized_Logging_kt_588vu7;
|
|
1178
1173
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1190,10 +1185,9 @@
|
|
|
1190
1185
|
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
1191
1186
|
var sortedHeaders = sortedWith(this_0, tmp$ret$0);
|
|
1192
1187
|
// Inline function 'kotlin.collections.forEach' call
|
|
1193
|
-
var
|
|
1194
|
-
while (
|
|
1195
|
-
var element =
|
|
1196
|
-
// Inline function 'io.ktor.client.plugins.logging.logHeaders.<anonymous>' call
|
|
1188
|
+
var _iterator__ex2g4s = sortedHeaders.j();
|
|
1189
|
+
while (_iterator__ex2g4s.k()) {
|
|
1190
|
+
var element = _iterator__ex2g4s.l();
|
|
1197
1191
|
// Inline function 'kotlin.collections.component1' call
|
|
1198
1192
|
var key = element.t();
|
|
1199
1193
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1201,11 +1195,10 @@
|
|
|
1201
1195
|
var tmp$ret$5;
|
|
1202
1196
|
$l$block: {
|
|
1203
1197
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1204
|
-
var
|
|
1205
|
-
while (
|
|
1206
|
-
var element_0 =
|
|
1207
|
-
|
|
1208
|
-
if (element_0.c3w_1(key)) {
|
|
1198
|
+
var _iterator__ex2g4s_0 = sanitizedHeaders.j();
|
|
1199
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
1200
|
+
var element_0 = _iterator__ex2g4s_0.l();
|
|
1201
|
+
if (element_0.c3z_1(key)) {
|
|
1209
1202
|
tmp$ret$5 = element_0;
|
|
1210
1203
|
break $l$block;
|
|
1211
1204
|
}
|
|
@@ -1213,7 +1206,7 @@
|
|
|
1213
1206
|
tmp$ret$5 = null;
|
|
1214
1207
|
}
|
|
1215
1208
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1216
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1209
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3z_1;
|
|
1217
1210
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1218
1211
|
}
|
|
1219
1212
|
}
|
|
@@ -1221,57 +1214,56 @@
|
|
|
1221
1214
|
// Inline function 'kotlin.text.appendLine' call
|
|
1222
1215
|
var value_0 = '-> ' + key + ': ' + value;
|
|
1223
1216
|
// Inline function 'kotlin.text.appendLine' call
|
|
1224
|
-
_this__u8e3s4.f(value_0).
|
|
1217
|
+
_this__u8e3s4.f(value_0).v8(_Char___init__impl__6a9atx(10));
|
|
1225
1218
|
}
|
|
1226
1219
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1227
1220
|
// Inline function 'kotlin.with' call
|
|
1228
|
-
|
|
1229
|
-
if (level.h3v_1) {
|
|
1221
|
+
if (level.h3y_1) {
|
|
1230
1222
|
// Inline function 'kotlin.text.appendLine' call
|
|
1231
|
-
var value = 'RESPONSE: ' + response.
|
|
1223
|
+
var value = 'RESPONSE: ' + response.u2q().toString();
|
|
1232
1224
|
// Inline function 'kotlin.text.appendLine' call
|
|
1233
|
-
log.
|
|
1225
|
+
log.u8(value).v8(_Char___init__impl__6a9atx(10));
|
|
1234
1226
|
// Inline function 'kotlin.text.appendLine' call
|
|
1235
|
-
var value_0 = 'METHOD: ' + response.
|
|
1227
|
+
var value_0 = 'METHOD: ' + response.m30().o2z().n30().toString();
|
|
1236
1228
|
// Inline function 'kotlin.text.appendLine' call
|
|
1237
|
-
log.
|
|
1229
|
+
log.u8(value_0).v8(_Char___init__impl__6a9atx(10));
|
|
1238
1230
|
// Inline function 'kotlin.text.appendLine' call
|
|
1239
|
-
var value_1 = 'FROM: ' + response.
|
|
1231
|
+
var value_1 = 'FROM: ' + response.m30().o2z().r2z().toString();
|
|
1240
1232
|
// Inline function 'kotlin.text.appendLine' call
|
|
1241
|
-
log.
|
|
1233
|
+
log.u8(value_1).v8(_Char___init__impl__6a9atx(10));
|
|
1242
1234
|
}
|
|
1243
|
-
if (level.
|
|
1235
|
+
if (level.i3y_1) {
|
|
1244
1236
|
// Inline function 'kotlin.text.appendLine' call
|
|
1245
1237
|
var value_2 = 'COMMON HEADERS';
|
|
1246
1238
|
// Inline function 'kotlin.text.appendLine' call
|
|
1247
|
-
log.
|
|
1248
|
-
logHeaders(log, response.
|
|
1239
|
+
log.u8(value_2).v8(_Char___init__impl__6a9atx(10));
|
|
1240
|
+
logHeaders(log, response.p2l().o2b(), sanitizedHeaders);
|
|
1249
1241
|
}
|
|
1250
1242
|
}
|
|
1251
1243
|
function logResponseBody(log, contentType, content, $completion) {
|
|
1252
|
-
var tmp = new $logResponseBodyCOROUTINE$
|
|
1244
|
+
var tmp = new $logResponseBodyCOROUTINE$_0(log, contentType, content, $completion);
|
|
1253
1245
|
tmp.l9_1 = Unit_instance;
|
|
1254
1246
|
tmp.m9_1 = null;
|
|
1255
1247
|
return tmp.r9();
|
|
1256
1248
|
}
|
|
1257
1249
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1258
|
-
this.
|
|
1250
|
+
this.a43_1 = function_0;
|
|
1259
1251
|
}
|
|
1260
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1261
|
-
return this.
|
|
1252
|
+
protoOf(sam$kotlin_Comparator$0).xc = function (a, b) {
|
|
1253
|
+
return this.a43_1(a, b);
|
|
1262
1254
|
};
|
|
1263
1255
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1264
|
-
return this.
|
|
1256
|
+
return this.xc(a, b);
|
|
1265
1257
|
};
|
|
1266
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1267
|
-
return this.
|
|
1258
|
+
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
1259
|
+
return this.a43_1;
|
|
1268
1260
|
};
|
|
1269
1261
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1270
1262
|
var tmp;
|
|
1271
1263
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1272
1264
|
var tmp_0;
|
|
1273
1265
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1274
|
-
tmp_0 = equals(this.
|
|
1266
|
+
tmp_0 = equals(this.q3(), other.q3());
|
|
1275
1267
|
} else {
|
|
1276
1268
|
tmp_0 = false;
|
|
1277
1269
|
}
|
|
@@ -1282,49 +1274,51 @@
|
|
|
1282
1274
|
return tmp;
|
|
1283
1275
|
};
|
|
1284
1276
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1285
|
-
return hashCode(this.
|
|
1277
|
+
return hashCode(this.q3());
|
|
1286
1278
|
};
|
|
1287
1279
|
function logHeaders$lambda(a, b) {
|
|
1288
1280
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1289
|
-
// Inline function 'io.ktor.client.plugins.logging.logHeaders.<anonymous>' call
|
|
1290
1281
|
var tmp = a.t();
|
|
1291
|
-
// Inline function 'io.ktor.client.plugins.logging.logHeaders.<anonymous>' call
|
|
1292
1282
|
var tmp$ret$1 = b.t();
|
|
1293
1283
|
return compareValues(tmp, tmp$ret$1);
|
|
1294
1284
|
}
|
|
1295
|
-
function $logResponseBodyCOROUTINE$
|
|
1285
|
+
function $logResponseBodyCOROUTINE$_0(log, contentType, content, resultContinuation) {
|
|
1296
1286
|
CoroutineImpl.call(this, resultContinuation);
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1287
|
+
this.o42_1 = log;
|
|
1288
|
+
this.p42_1 = contentType;
|
|
1289
|
+
this.q42_1 = content;
|
|
1300
1290
|
}
|
|
1301
|
-
protoOf($logResponseBodyCOROUTINE$
|
|
1291
|
+
protoOf($logResponseBodyCOROUTINE$_0).r9 = function () {
|
|
1302
1292
|
var suspendResult = this.l9_1;
|
|
1303
1293
|
$sm: do
|
|
1304
1294
|
try {
|
|
1305
1295
|
var tmp = this.j9_1;
|
|
1306
1296
|
switch (tmp) {
|
|
1307
1297
|
case 0:
|
|
1308
|
-
this.k9_1 =
|
|
1298
|
+
this.k9_1 = 3;
|
|
1309
1299
|
var tmp_0 = this;
|
|
1310
|
-
tmp_0.
|
|
1300
|
+
tmp_0.r42_1 = this.o42_1;
|
|
1301
|
+
this.s42_1 = this.r42_1;
|
|
1311
1302
|
var tmp_1 = this;
|
|
1312
|
-
tmp_1.
|
|
1313
|
-
|
|
1314
|
-
var
|
|
1315
|
-
|
|
1316
|
-
|
|
1303
|
+
tmp_1.t42_1 = this.s42_1;
|
|
1304
|
+
this.u42_1 = this.t42_1;
|
|
1305
|
+
var tmp0 = this.u42_1;
|
|
1306
|
+
var value = 'BODY Content-Type: ' + toString_0(this.p42_1);
|
|
1307
|
+
tmp0.u8(value).v8(_Char___init__impl__6a9atx(10));
|
|
1308
|
+
var tmp0_0 = this.u42_1;
|
|
1317
1309
|
var value_0 = 'BODY START';
|
|
1318
|
-
|
|
1310
|
+
tmp0_0.u8(value_0).v8(_Char___init__impl__6a9atx(10));
|
|
1319
1311
|
var tmp_2 = this;
|
|
1320
|
-
tmp_2.
|
|
1312
|
+
tmp_2.v42_1 = this.q42_1;
|
|
1321
1313
|
var tmp_3 = this;
|
|
1322
|
-
var tmp0_safe_receiver = this.
|
|
1314
|
+
var tmp0_safe_receiver = this.p42_1;
|
|
1323
1315
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1324
|
-
tmp_3.
|
|
1316
|
+
tmp_3.w42_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().p23_1 : tmp1_elvis_lhs;
|
|
1317
|
+
this.x42_1 = this.v42_1;
|
|
1318
|
+
this.y42_1 = this.w42_1;
|
|
1325
1319
|
this.k9_1 = 2;
|
|
1326
1320
|
this.j9_1 = 1;
|
|
1327
|
-
suspendResult = this.
|
|
1321
|
+
suspendResult = this.x42_1.a1z(VOID, this);
|
|
1328
1322
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1329
1323
|
return suspendResult;
|
|
1330
1324
|
}
|
|
@@ -1332,36 +1326,36 @@
|
|
|
1332
1326
|
continue $sm;
|
|
1333
1327
|
case 1:
|
|
1334
1328
|
var ARGUMENT = suspendResult;
|
|
1335
|
-
this.
|
|
1336
|
-
this.k9_1 =
|
|
1337
|
-
this.j9_1 =
|
|
1329
|
+
this.z42_1 = readText(ARGUMENT, this.y42_1);
|
|
1330
|
+
this.k9_1 = 3;
|
|
1331
|
+
this.j9_1 = 4;
|
|
1338
1332
|
continue $sm;
|
|
1339
1333
|
case 2:
|
|
1340
|
-
this.k9_1 =
|
|
1334
|
+
this.k9_1 = 3;
|
|
1341
1335
|
var tmp_4 = this.m9_1;
|
|
1342
1336
|
if (tmp_4 instanceof Error) {
|
|
1343
1337
|
var cause = this.m9_1;
|
|
1344
1338
|
var tmp_5 = this;
|
|
1345
|
-
tmp_5.
|
|
1346
|
-
this.j9_1 =
|
|
1339
|
+
tmp_5.z42_1 = null;
|
|
1340
|
+
this.j9_1 = 4;
|
|
1347
1341
|
continue $sm;
|
|
1348
1342
|
} else {
|
|
1349
1343
|
throw this.m9_1;
|
|
1350
1344
|
}
|
|
1351
1345
|
|
|
1352
1346
|
case 3:
|
|
1353
|
-
this.
|
|
1354
|
-
|
|
1347
|
+
throw this.m9_1;
|
|
1348
|
+
case 4:
|
|
1349
|
+
this.k9_1 = 3;
|
|
1350
|
+
var tmp2_elvis_lhs = this.z42_1;
|
|
1355
1351
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1352
|
+
this.u42_1.u8(message).v8(_Char___init__impl__6a9atx(10));
|
|
1353
|
+
this.u42_1.u8('BODY END');
|
|
1358
1354
|
return Unit_instance;
|
|
1359
|
-
case 4:
|
|
1360
|
-
throw this.m9_1;
|
|
1361
1355
|
}
|
|
1362
1356
|
} catch ($p) {
|
|
1363
1357
|
var e = $p;
|
|
1364
|
-
if (this.k9_1 ===
|
|
1358
|
+
if (this.k9_1 === 3) {
|
|
1365
1359
|
throw e;
|
|
1366
1360
|
} else {
|
|
1367
1361
|
this.j9_1 = this.k9_1;
|
|
@@ -1371,28 +1365,28 @@
|
|
|
1371
1365
|
while (true);
|
|
1372
1366
|
};
|
|
1373
1367
|
function observe(_this__u8e3s4, log, $completion) {
|
|
1374
|
-
var tmp = new $observeCOROUTINE$
|
|
1368
|
+
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
1375
1369
|
tmp.l9_1 = Unit_instance;
|
|
1376
1370
|
tmp.m9_1 = null;
|
|
1377
1371
|
return tmp.r9();
|
|
1378
1372
|
}
|
|
1379
1373
|
function toReadChannel(_this__u8e3s4) {
|
|
1380
1374
|
var tmp = GlobalScope_instance;
|
|
1381
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1382
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1375
|
+
var tmp_0 = Dispatchers_getInstance().b12_1;
|
|
1376
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).s12();
|
|
1383
1377
|
}
|
|
1384
1378
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1385
|
-
this.
|
|
1379
|
+
this.v43_1 = $this_toReadChannel;
|
|
1386
1380
|
CoroutineImpl.call(this, resultContinuation);
|
|
1387
1381
|
}
|
|
1388
|
-
protoOf(toReadChannel$slambda).
|
|
1389
|
-
var tmp = this.
|
|
1382
|
+
protoOf(toReadChannel$slambda).k31 = function ($this$writer, $completion) {
|
|
1383
|
+
var tmp = this.l31($this$writer, $completion);
|
|
1390
1384
|
tmp.l9_1 = Unit_instance;
|
|
1391
1385
|
tmp.m9_1 = null;
|
|
1392
1386
|
return tmp.r9();
|
|
1393
1387
|
};
|
|
1394
|
-
protoOf(toReadChannel$slambda).
|
|
1395
|
-
return this.
|
|
1388
|
+
protoOf(toReadChannel$slambda).z9 = function (p1, $completion) {
|
|
1389
|
+
return this.k31((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1396
1390
|
};
|
|
1397
1391
|
protoOf(toReadChannel$slambda).r9 = function () {
|
|
1398
1392
|
var suspendResult = this.l9_1;
|
|
@@ -1403,7 +1397,7 @@
|
|
|
1403
1397
|
case 0:
|
|
1404
1398
|
this.k9_1 = 2;
|
|
1405
1399
|
this.j9_1 = 1;
|
|
1406
|
-
suspendResult = this.
|
|
1400
|
+
suspendResult = this.v43_1.b2r(this.w43_1.s12(), this);
|
|
1407
1401
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1408
1402
|
return suspendResult;
|
|
1409
1403
|
}
|
|
@@ -1425,25 +1419,25 @@
|
|
|
1425
1419
|
}
|
|
1426
1420
|
while (true);
|
|
1427
1421
|
};
|
|
1428
|
-
protoOf(toReadChannel$slambda).
|
|
1429
|
-
var i = new toReadChannel$slambda(this.
|
|
1430
|
-
i.
|
|
1422
|
+
protoOf(toReadChannel$slambda).l31 = function ($this$writer, completion) {
|
|
1423
|
+
var i = new toReadChannel$slambda(this.v43_1, completion);
|
|
1424
|
+
i.w43_1 = $this$writer;
|
|
1431
1425
|
return i;
|
|
1432
1426
|
};
|
|
1433
1427
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1434
1428
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1435
1429
|
var l = function ($this$writer, $completion) {
|
|
1436
|
-
return i.
|
|
1430
|
+
return i.k31($this$writer, $completion);
|
|
1437
1431
|
};
|
|
1438
1432
|
l.$arity = 1;
|
|
1439
1433
|
return l;
|
|
1440
1434
|
}
|
|
1441
|
-
function $observeCOROUTINE$
|
|
1435
|
+
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
1442
1436
|
CoroutineImpl.call(this, resultContinuation);
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1437
|
+
this.j43_1 = _this__u8e3s4;
|
|
1438
|
+
this.k43_1 = log;
|
|
1445
1439
|
}
|
|
1446
|
-
protoOf($observeCOROUTINE$
|
|
1440
|
+
protoOf($observeCOROUTINE$).r9 = function () {
|
|
1447
1441
|
var suspendResult = this.l9_1;
|
|
1448
1442
|
$sm: do
|
|
1449
1443
|
try {
|
|
@@ -1451,39 +1445,39 @@
|
|
|
1451
1445
|
switch (tmp) {
|
|
1452
1446
|
case 0:
|
|
1453
1447
|
this.k9_1 = 3;
|
|
1454
|
-
this.
|
|
1455
|
-
var tmp_0 = this.
|
|
1448
|
+
this.l43_1 = this.j43_1;
|
|
1449
|
+
var tmp_0 = this.l43_1;
|
|
1456
1450
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
1457
1451
|
this.j9_1 = 1;
|
|
1458
|
-
suspendResult = writeFully(this.
|
|
1452
|
+
suspendResult = writeFully(this.k43_1, this.j43_1.w2q(), this);
|
|
1459
1453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1460
1454
|
return suspendResult;
|
|
1461
1455
|
}
|
|
1462
1456
|
continue $sm;
|
|
1463
1457
|
} else {
|
|
1464
|
-
var tmp_1 = this.
|
|
1458
|
+
var tmp_1 = this.l43_1;
|
|
1465
1459
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
1466
1460
|
var tmp_2 = this;
|
|
1467
1461
|
var responseChannel = ByteChannel();
|
|
1468
|
-
var content = this.
|
|
1469
|
-
copyToBoth(content, this.
|
|
1470
|
-
tmp_2.
|
|
1462
|
+
var content = this.j43_1.z2q();
|
|
1463
|
+
copyToBoth(content, this.k43_1, responseChannel);
|
|
1464
|
+
tmp_2.m43_1 = new LoggedContent(this.j43_1, responseChannel);
|
|
1471
1465
|
this.j9_1 = 2;
|
|
1472
1466
|
continue $sm;
|
|
1473
1467
|
} else {
|
|
1474
|
-
var tmp_3 = this.
|
|
1468
|
+
var tmp_3 = this.l43_1;
|
|
1475
1469
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
1476
1470
|
var tmp_4 = this;
|
|
1477
1471
|
var responseChannel_0 = ByteChannel();
|
|
1478
|
-
var content_0 = toReadChannel(this.
|
|
1479
|
-
copyToBoth(content_0, this.
|
|
1480
|
-
tmp_4.
|
|
1472
|
+
var content_0 = toReadChannel(this.j43_1);
|
|
1473
|
+
copyToBoth(content_0, this.k43_1, responseChannel_0);
|
|
1474
|
+
tmp_4.m43_1 = new LoggedContent(this.j43_1, responseChannel_0);
|
|
1481
1475
|
this.j9_1 = 2;
|
|
1482
1476
|
continue $sm;
|
|
1483
1477
|
} else {
|
|
1484
1478
|
var tmp_5 = this;
|
|
1485
|
-
close(this.
|
|
1486
|
-
tmp_5.
|
|
1479
|
+
close(this.k43_1);
|
|
1480
|
+
tmp_5.m43_1 = this.j43_1;
|
|
1487
1481
|
this.j9_1 = 2;
|
|
1488
1482
|
continue $sm;
|
|
1489
1483
|
}
|
|
@@ -1491,12 +1485,12 @@
|
|
|
1491
1485
|
}
|
|
1492
1486
|
|
|
1493
1487
|
case 1:
|
|
1494
|
-
close(this.
|
|
1495
|
-
this.
|
|
1488
|
+
close(this.k43_1);
|
|
1489
|
+
this.m43_1 = this.j43_1;
|
|
1496
1490
|
this.j9_1 = 2;
|
|
1497
1491
|
continue $sm;
|
|
1498
1492
|
case 2:
|
|
1499
|
-
return this.
|
|
1493
|
+
return this.m43_1;
|
|
1500
1494
|
case 3:
|
|
1501
1495
|
throw this.m9_1;
|
|
1502
1496
|
}
|