@doordeck/doordeck-headless-sdk 0.143.0 → 0.144.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +59 -59
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +47 -47
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +59 -59
- package/kotlin/doordeck-sdk.js +13232 -13151
- package/kotlin/kotlin-kotlin-stdlib.js +2489 -2263
- package/kotlin/kotlinx-atomicfu.js +24 -24
- package/kotlin/kotlinx-coroutines-core.js +2369 -2369
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +49 -49
- package/kotlin/kotlinx-io-kotlinx-io-core.js +498 -498
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1889 -1889
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1557 -1557
- package/kotlin/ktor-ktor-client-auth.js +471 -471
- package/kotlin/ktor-ktor-client-content-negotiation.js +215 -215
- package/kotlin/ktor-ktor-client-core.js +3032 -3032
- package/kotlin/ktor-ktor-client-logging.js +1193 -1193
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +546 -546
- package/kotlin/ktor-ktor-http.js +845 -845
- package/kotlin/ktor-ktor-io.js +1121 -1121
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +269 -269
- package/kotlin/ktor-ktor-serialization.js +128 -128
- package/kotlin/ktor-ktor-utils.js +918 -905
- package/kotlin/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_io_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
5
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
6
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
7
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
8
|
-
var trim = kotlin_kotlin.$_$.
|
|
9
|
-
var toString = kotlin_kotlin.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.n9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.x8;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.ff;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.wa;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.je;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.pb;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.lb;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.na;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.aa;
|
|
14
14
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
15
15
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
17
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.l2;
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.la;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.h;
|
|
20
|
-
var Enum = kotlin_kotlin.$_$.
|
|
20
|
+
var Enum = kotlin_kotlin.$_$.ve;
|
|
21
21
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
22
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
23
|
-
var println = kotlin_kotlin.$_$.
|
|
22
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ma;
|
|
23
|
+
var println = kotlin_kotlin.$_$.q9;
|
|
24
24
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
25
25
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
26
26
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
27
27
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
28
|
-
var Long = kotlin_kotlin.$_$.
|
|
28
|
+
var Long = kotlin_kotlin.$_$.af;
|
|
29
29
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.s;
|
|
30
30
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
31
31
|
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.q;
|
|
32
|
-
var toLong = kotlin_kotlin.$_$.
|
|
32
|
+
var toLong = kotlin_kotlin.$_$.nb;
|
|
33
33
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
34
34
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
35
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
35
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.qa;
|
|
36
36
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
37
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
38
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
37
|
+
var isSuspendFunction = kotlin_kotlin.$_$.db;
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ra;
|
|
39
39
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
40
40
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
41
41
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
44
44
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
45
45
|
var Collection = kotlin_kotlin.$_$.h5;
|
|
46
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
47
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.ab;
|
|
47
|
+
var toString_0 = kotlin_kotlin.$_$.ig;
|
|
48
48
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
49
49
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
50
50
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
var Url = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
55
55
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
56
56
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
57
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
58
|
-
var equals = kotlin_kotlin.$_$.
|
|
57
|
+
var joinToString = kotlin_kotlin.$_$.j7;
|
|
58
|
+
var equals = kotlin_kotlin.$_$.ea;
|
|
59
59
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.x;
|
|
60
60
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
61
61
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
65
65
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
66
66
|
var readText = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
67
|
-
var Triple = kotlin_kotlin.$_$.
|
|
67
|
+
var Triple = kotlin_kotlin.$_$.hf;
|
|
68
68
|
var readAvailable = kotlin_io_ktor_ktor_io.$_$.d;
|
|
69
69
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
70
70
|
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
71
71
|
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
72
72
|
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
73
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
73
|
+
var charCodeAt = kotlin_kotlin.$_$.y9;
|
|
74
74
|
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
75
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
75
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg;
|
|
76
76
|
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
77
77
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
78
78
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
@@ -83,33 +83,33 @@
|
|
|
83
83
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
84
84
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.a1;
|
|
85
85
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
86
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
86
|
+
var toLongOrNull = kotlin_kotlin.$_$.zd;
|
|
87
87
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
88
88
|
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
89
89
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
90
90
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
91
91
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
92
92
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
93
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
93
|
+
var arrayOf = kotlin_kotlin.$_$.tf;
|
|
94
94
|
var createKType = kotlin_kotlin.$_$.c;
|
|
95
95
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
96
96
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
97
|
-
var Unit = kotlin_kotlin.$_$.
|
|
97
|
+
var Unit = kotlin_kotlin.$_$.qf;
|
|
98
98
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
99
|
-
var toList = kotlin_kotlin.$_$.
|
|
100
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
101
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
102
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
103
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
104
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
99
|
+
var toList = kotlin_kotlin.$_$.k8;
|
|
100
|
+
var sortedWith = kotlin_kotlin.$_$.f8;
|
|
101
|
+
var FunctionAdapter = kotlin_kotlin.$_$.r9;
|
|
102
|
+
var Comparator = kotlin_kotlin.$_$.se;
|
|
103
|
+
var hashCode = kotlin_kotlin.$_$.ka;
|
|
104
|
+
var compareValues = kotlin_kotlin.$_$.v8;
|
|
105
105
|
var writer = kotlin_io_ktor_ktor_io.$_$.s1;
|
|
106
106
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
107
107
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
108
|
-
var get = kotlin_kotlin.$_$.
|
|
109
|
-
var fold = kotlin_kotlin.$_$.
|
|
110
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
111
|
-
var plus = kotlin_kotlin.$_$.
|
|
112
|
-
var Element = kotlin_kotlin.$_$.
|
|
108
|
+
var get = kotlin_kotlin.$_$.j9;
|
|
109
|
+
var fold = kotlin_kotlin.$_$.i9;
|
|
110
|
+
var minusKey = kotlin_kotlin.$_$.k9;
|
|
111
|
+
var plus = kotlin_kotlin.$_$.m9;
|
|
112
|
+
var Element = kotlin_kotlin.$_$.l9;
|
|
113
113
|
//endregion
|
|
114
114
|
//region block: pre-declaration
|
|
115
115
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -158,177 +158,177 @@
|
|
|
158
158
|
//endregion
|
|
159
159
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
160
160
|
CoroutineImpl.call(this, resultContinuation);
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
161
|
+
this.x50_1 = _this__u8e3s4;
|
|
162
|
+
this.y50_1 = message;
|
|
163
163
|
}
|
|
164
|
-
protoOf($logResponseExceptionCOROUTINE$).
|
|
165
|
-
var suspendResult = this.
|
|
164
|
+
protoOf($logResponseExceptionCOROUTINE$).v9 = function () {
|
|
165
|
+
var suspendResult = this.p9_1;
|
|
166
166
|
$sm: do
|
|
167
167
|
try {
|
|
168
|
-
var tmp = this.
|
|
168
|
+
var tmp = this.n9_1;
|
|
169
169
|
switch (tmp) {
|
|
170
170
|
case 0:
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
173
|
-
suspendResult = this.
|
|
171
|
+
this.o9_1 = 2;
|
|
172
|
+
this.n9_1 = 1;
|
|
173
|
+
suspendResult = this.x50_1.c51_1.py(this);
|
|
174
174
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
175
175
|
return suspendResult;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
continue $sm;
|
|
179
179
|
case 1:
|
|
180
|
-
var this_0 = this.
|
|
181
|
-
this.
|
|
180
|
+
var this_0 = this.y50_1;
|
|
181
|
+
this.x50_1.z50_1.g51(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
182
182
|
return Unit_instance;
|
|
183
183
|
case 2:
|
|
184
|
-
throw this.
|
|
184
|
+
throw this.q9_1;
|
|
185
185
|
}
|
|
186
186
|
} catch ($p) {
|
|
187
187
|
var e = $p;
|
|
188
|
-
if (this.
|
|
188
|
+
if (this.o9_1 === 2) {
|
|
189
189
|
throw e;
|
|
190
190
|
} else {
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
191
|
+
this.n9_1 = this.o9_1;
|
|
192
|
+
this.q9_1 = e;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
while (true);
|
|
196
196
|
};
|
|
197
197
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
198
198
|
CoroutineImpl.call(this, resultContinuation);
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
199
|
+
this.p51_1 = _this__u8e3s4;
|
|
200
|
+
this.q51_1 = message;
|
|
201
201
|
}
|
|
202
|
-
protoOf($logResponseBodyCOROUTINE$).
|
|
203
|
-
var suspendResult = this.
|
|
202
|
+
protoOf($logResponseBodyCOROUTINE$).v9 = function () {
|
|
203
|
+
var suspendResult = this.p9_1;
|
|
204
204
|
$sm: do
|
|
205
205
|
try {
|
|
206
|
-
var tmp = this.
|
|
206
|
+
var tmp = this.n9_1;
|
|
207
207
|
switch (tmp) {
|
|
208
208
|
case 0:
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
211
|
-
suspendResult = this.
|
|
209
|
+
this.o9_1 = 2;
|
|
210
|
+
this.n9_1 = 1;
|
|
211
|
+
suspendResult = this.p51_1.d51_1.py(this);
|
|
212
212
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
213
213
|
return suspendResult;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
continue $sm;
|
|
217
217
|
case 1:
|
|
218
|
-
this.
|
|
218
|
+
this.p51_1.b51_1.y8(this.q51_1);
|
|
219
219
|
return Unit_instance;
|
|
220
220
|
case 2:
|
|
221
|
-
throw this.
|
|
221
|
+
throw this.q9_1;
|
|
222
222
|
}
|
|
223
223
|
} catch ($p) {
|
|
224
224
|
var e = $p;
|
|
225
|
-
if (this.
|
|
225
|
+
if (this.o9_1 === 2) {
|
|
226
226
|
throw e;
|
|
227
227
|
} else {
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
228
|
+
this.n9_1 = this.o9_1;
|
|
229
|
+
this.q9_1 = e;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
while (true);
|
|
233
233
|
};
|
|
234
234
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
235
235
|
CoroutineImpl.call(this, resultContinuation);
|
|
236
|
-
this.
|
|
236
|
+
this.z51_1 = _this__u8e3s4;
|
|
237
237
|
}
|
|
238
|
-
protoOf($closeResponseLogCOROUTINE$).
|
|
239
|
-
var suspendResult = this.
|
|
238
|
+
protoOf($closeResponseLogCOROUTINE$).v9 = function () {
|
|
239
|
+
var suspendResult = this.p9_1;
|
|
240
240
|
$sm: do
|
|
241
241
|
try {
|
|
242
|
-
var tmp = this.
|
|
242
|
+
var tmp = this.n9_1;
|
|
243
243
|
switch (tmp) {
|
|
244
244
|
case 0:
|
|
245
|
-
this.
|
|
246
|
-
if (!this.
|
|
245
|
+
this.o9_1 = 2;
|
|
246
|
+
if (!this.z51_1.f51_1.atomicfu$compareAndSet(false, true))
|
|
247
247
|
return Unit_instance;
|
|
248
|
-
this.
|
|
249
|
-
suspendResult = this.
|
|
248
|
+
this.n9_1 = 1;
|
|
249
|
+
suspendResult = this.z51_1.c51_1.py(this);
|
|
250
250
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
251
251
|
return suspendResult;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
continue $sm;
|
|
255
255
|
case 1:
|
|
256
|
-
var message = toString(trim(this.
|
|
256
|
+
var message = toString(trim(this.z51_1.b51_1));
|
|
257
257
|
if (charSequenceLength(message) > 0) {
|
|
258
|
-
this.
|
|
258
|
+
this.z51_1.z50_1.g51(message);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
return Unit_instance;
|
|
262
262
|
case 2:
|
|
263
|
-
throw this.
|
|
263
|
+
throw this.q9_1;
|
|
264
264
|
}
|
|
265
265
|
} catch ($p) {
|
|
266
266
|
var e = $p;
|
|
267
|
-
if (this.
|
|
267
|
+
if (this.o9_1 === 2) {
|
|
268
268
|
throw e;
|
|
269
269
|
} else {
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
270
|
+
this.n9_1 = this.o9_1;
|
|
271
|
+
this.q9_1 = e;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
while (true);
|
|
275
275
|
};
|
|
276
276
|
function HttpClientCallLogger(logger) {
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
}
|
|
285
|
-
protoOf(HttpClientCallLogger).
|
|
286
|
-
var tmp0 = this.
|
|
277
|
+
this.z50_1 = logger;
|
|
278
|
+
this.a51_1 = StringBuilder_init_$Create$();
|
|
279
|
+
this.b51_1 = StringBuilder_init_$Create$();
|
|
280
|
+
this.c51_1 = Job();
|
|
281
|
+
this.d51_1 = Job();
|
|
282
|
+
this.e51_1 = atomic$boolean$1(false);
|
|
283
|
+
this.f51_1 = atomic$boolean$1(false);
|
|
284
|
+
}
|
|
285
|
+
protoOf(HttpClientCallLogger).a52 = function (message) {
|
|
286
|
+
var tmp0 = this.a51_1;
|
|
287
287
|
// Inline function 'kotlin.text.trim' call
|
|
288
288
|
// Inline function 'kotlin.text.appendLine' call
|
|
289
289
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
290
290
|
// Inline function 'kotlin.text.appendLine' call
|
|
291
|
-
tmp0.
|
|
291
|
+
tmp0.y8(value).z8(_Char___init__impl__6a9atx(10));
|
|
292
292
|
};
|
|
293
|
-
protoOf(HttpClientCallLogger).
|
|
294
|
-
var tmp0 = this.
|
|
293
|
+
protoOf(HttpClientCallLogger).b52 = function (message) {
|
|
294
|
+
var tmp0 = this.b51_1;
|
|
295
295
|
// Inline function 'kotlin.text.trim' call
|
|
296
296
|
// Inline function 'kotlin.text.appendLine' call
|
|
297
297
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
298
298
|
// Inline function 'kotlin.text.appendLine' call
|
|
299
|
-
tmp0.
|
|
300
|
-
this.
|
|
299
|
+
tmp0.y8(value).z8(_Char___init__impl__6a9atx(10));
|
|
300
|
+
this.d51_1.oy();
|
|
301
301
|
};
|
|
302
|
-
protoOf(HttpClientCallLogger).
|
|
302
|
+
protoOf(HttpClientCallLogger).c52 = function (message, $completion) {
|
|
303
303
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
304
|
-
tmp.
|
|
305
|
-
tmp.
|
|
306
|
-
return tmp.
|
|
304
|
+
tmp.p9_1 = Unit_instance;
|
|
305
|
+
tmp.q9_1 = null;
|
|
306
|
+
return tmp.v9();
|
|
307
307
|
};
|
|
308
|
-
protoOf(HttpClientCallLogger).
|
|
308
|
+
protoOf(HttpClientCallLogger).d52 = function (message, $completion) {
|
|
309
309
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
310
|
-
tmp.
|
|
311
|
-
tmp.
|
|
312
|
-
return tmp.
|
|
310
|
+
tmp.p9_1 = Unit_instance;
|
|
311
|
+
tmp.q9_1 = null;
|
|
312
|
+
return tmp.v9();
|
|
313
313
|
};
|
|
314
|
-
protoOf(HttpClientCallLogger).
|
|
315
|
-
if (!this.
|
|
314
|
+
protoOf(HttpClientCallLogger).e52 = function () {
|
|
315
|
+
if (!this.e51_1.atomicfu$compareAndSet(false, true))
|
|
316
316
|
return Unit_instance;
|
|
317
317
|
try {
|
|
318
|
-
var message = toString(trim(this.
|
|
318
|
+
var message = toString(trim(this.a51_1));
|
|
319
319
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
320
320
|
if (charSequenceLength(message) > 0) {
|
|
321
|
-
this.
|
|
321
|
+
this.z50_1.g51(message);
|
|
322
322
|
}
|
|
323
323
|
}finally {
|
|
324
|
-
this.
|
|
324
|
+
this.c51_1.oy();
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
|
-
protoOf(HttpClientCallLogger).
|
|
327
|
+
protoOf(HttpClientCallLogger).f52 = function ($completion) {
|
|
328
328
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
329
|
-
tmp.
|
|
330
|
-
tmp.
|
|
331
|
-
return tmp.
|
|
329
|
+
tmp.p9_1 = Unit_instance;
|
|
330
|
+
tmp.q9_1 = null;
|
|
331
|
+
return tmp.v9();
|
|
332
332
|
};
|
|
333
333
|
var LogLevel_ALL_instance;
|
|
334
334
|
var LogLevel_HEADERS_instance;
|
|
@@ -348,9 +348,9 @@
|
|
|
348
348
|
}
|
|
349
349
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
350
350
|
Enum.call(this, name, ordinal);
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
351
|
+
this.i52_1 = info;
|
|
352
|
+
this.j52_1 = headers;
|
|
353
|
+
this.k52_1 = body;
|
|
354
354
|
}
|
|
355
355
|
function LogLevel_ALL_getInstance() {
|
|
356
356
|
LogLevel_initEntries();
|
|
@@ -374,27 +374,27 @@
|
|
|
374
374
|
}
|
|
375
375
|
function LoggedContent(originalContent, channel) {
|
|
376
376
|
ReadChannelContent.call(this);
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
377
|
+
this.m52_1 = originalContent;
|
|
378
|
+
this.n52_1 = channel;
|
|
379
|
+
this.o52_1 = this.m52_1.u36();
|
|
380
|
+
this.p52_1 = this.m52_1.w36();
|
|
381
|
+
this.q52_1 = this.m52_1.v36();
|
|
382
|
+
this.r52_1 = this.m52_1.z30();
|
|
383
383
|
}
|
|
384
|
-
protoOf(LoggedContent).
|
|
385
|
-
return this.
|
|
384
|
+
protoOf(LoggedContent).u36 = function () {
|
|
385
|
+
return this.o52_1;
|
|
386
386
|
};
|
|
387
|
-
protoOf(LoggedContent).
|
|
388
|
-
return this.
|
|
387
|
+
protoOf(LoggedContent).w36 = function () {
|
|
388
|
+
return this.p52_1;
|
|
389
389
|
};
|
|
390
|
-
protoOf(LoggedContent).
|
|
391
|
-
return this.
|
|
390
|
+
protoOf(LoggedContent).v36 = function () {
|
|
391
|
+
return this.q52_1;
|
|
392
392
|
};
|
|
393
|
-
protoOf(LoggedContent).
|
|
394
|
-
return this.
|
|
393
|
+
protoOf(LoggedContent).z30 = function () {
|
|
394
|
+
return this.r52_1;
|
|
395
395
|
};
|
|
396
|
-
protoOf(LoggedContent).
|
|
397
|
-
return this.
|
|
396
|
+
protoOf(LoggedContent).a37 = function () {
|
|
397
|
+
return this.n52_1;
|
|
398
398
|
};
|
|
399
399
|
function Companion() {
|
|
400
400
|
}
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
}
|
|
408
408
|
function SimpleLogger() {
|
|
409
409
|
}
|
|
410
|
-
protoOf(SimpleLogger).
|
|
410
|
+
protoOf(SimpleLogger).g51 = function (message) {
|
|
411
411
|
println('HttpClient: ' + message);
|
|
412
412
|
};
|
|
413
413
|
function get_ClientCallLogger() {
|
|
@@ -428,19 +428,19 @@
|
|
|
428
428
|
function LoggingConfig() {
|
|
429
429
|
var tmp = this;
|
|
430
430
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
431
|
-
tmp.
|
|
431
|
+
tmp.s52_1 = ArrayList_init_$Create$();
|
|
432
432
|
var tmp_0 = this;
|
|
433
433
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
434
|
-
tmp_0.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
434
|
+
tmp_0.t52_1 = ArrayList_init_$Create$();
|
|
435
|
+
this.u52_1 = null;
|
|
436
|
+
this.v52_1 = LoggingFormat_Default_getInstance();
|
|
437
|
+
this.w52_1 = LogLevel_HEADERS_getInstance();
|
|
438
438
|
}
|
|
439
|
-
protoOf(LoggingConfig).
|
|
440
|
-
this.
|
|
439
|
+
protoOf(LoggingConfig).x52 = function (value) {
|
|
440
|
+
this.u52_1 = value;
|
|
441
441
|
};
|
|
442
|
-
protoOf(LoggingConfig).
|
|
443
|
-
var tmp0_elvis_lhs = this.
|
|
442
|
+
protoOf(LoggingConfig).y52 = function () {
|
|
443
|
+
var tmp0_elvis_lhs = this.u52_1;
|
|
444
444
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
445
445
|
};
|
|
446
446
|
var LoggingFormat_Default_instance;
|
|
@@ -462,17 +462,17 @@
|
|
|
462
462
|
// Inline function 'kotlin.apply' call
|
|
463
463
|
var this_0 = StringBuilder_init_$Create$();
|
|
464
464
|
// Inline function 'kotlin.text.isEmpty' call
|
|
465
|
-
var this_1 = _this__u8e3s4.
|
|
465
|
+
var this_1 = _this__u8e3s4.z35();
|
|
466
466
|
if (charSequenceLength(this_1) === 0) {
|
|
467
|
-
this_0.
|
|
467
|
+
this_0.y8('/');
|
|
468
468
|
} else {
|
|
469
|
-
this_0.
|
|
469
|
+
this_0.y8(_this__u8e3s4.z35());
|
|
470
470
|
}
|
|
471
471
|
// Inline function 'kotlin.text.isEmpty' call
|
|
472
|
-
var this_2 = _this__u8e3s4.
|
|
472
|
+
var this_2 = _this__u8e3s4.c36();
|
|
473
473
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
474
|
-
this_0.
|
|
475
|
-
this_0.
|
|
474
|
+
this_0.y8('?');
|
|
475
|
+
this_0.y8(_this__u8e3s4.c36());
|
|
476
476
|
}
|
|
477
477
|
return this_0.toString();
|
|
478
478
|
}
|
|
@@ -484,10 +484,10 @@
|
|
|
484
484
|
}
|
|
485
485
|
var tmp;
|
|
486
486
|
if (content instanceof ByteArrayContent) {
|
|
487
|
-
tmp = toLong(content.
|
|
487
|
+
tmp = toLong(content.x36().length);
|
|
488
488
|
} else {
|
|
489
489
|
if (content instanceof ContentWrapper) {
|
|
490
|
-
tmp = computeRequestBodySize(content.
|
|
490
|
+
tmp = computeRequestBodySize(content.g37());
|
|
491
491
|
} else {
|
|
492
492
|
if (content instanceof NoContent) {
|
|
493
493
|
tmp = new Long(0, 0);
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
if (content instanceof ProtocolUpgrade) {
|
|
496
496
|
tmp = new Long(0, 0);
|
|
497
497
|
} else {
|
|
498
|
-
var message = 'Unable to calculate the size for type ' + getKClassFromExpression(content).
|
|
498
|
+
var message = 'Unable to calculate the size for type ' + getKClassFromExpression(content).rb();
|
|
499
499
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
500
500
|
}
|
|
501
501
|
}
|
|
@@ -504,38 +504,38 @@
|
|
|
504
504
|
return tmp;
|
|
505
505
|
}
|
|
506
506
|
function Context(context) {
|
|
507
|
-
this.
|
|
507
|
+
this.z52_1 = context;
|
|
508
508
|
}
|
|
509
|
-
protoOf(Context).
|
|
510
|
-
return this.
|
|
509
|
+
protoOf(Context).a53 = function (content, $completion) {
|
|
510
|
+
return this.z52_1.e2s(content, $completion);
|
|
511
511
|
};
|
|
512
|
-
protoOf(Context).
|
|
513
|
-
return this.
|
|
512
|
+
protoOf(Context).b53 = function ($completion) {
|
|
513
|
+
return this.z52_1.f2s($completion);
|
|
514
514
|
};
|
|
515
515
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
516
|
-
this.
|
|
516
|
+
this.k53_1 = $handler;
|
|
517
517
|
CoroutineImpl.call(this, resultContinuation);
|
|
518
518
|
}
|
|
519
|
-
protoOf(SendHook$install$slambda).
|
|
520
|
-
var tmp = this.
|
|
521
|
-
tmp.
|
|
522
|
-
tmp.
|
|
523
|
-
return tmp.
|
|
519
|
+
protoOf(SendHook$install$slambda).k3i = function ($this$intercept, it, $completion) {
|
|
520
|
+
var tmp = this.l3i($this$intercept, it, $completion);
|
|
521
|
+
tmp.p9_1 = Unit_instance;
|
|
522
|
+
tmp.q9_1 = null;
|
|
523
|
+
return tmp.v9();
|
|
524
524
|
};
|
|
525
|
-
protoOf(SendHook$install$slambda).
|
|
525
|
+
protoOf(SendHook$install$slambda).ka = function (p1, p2, $completion) {
|
|
526
526
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
527
|
-
return this.
|
|
527
|
+
return this.k3i(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
528
528
|
};
|
|
529
|
-
protoOf(SendHook$install$slambda).
|
|
530
|
-
var suspendResult = this.
|
|
529
|
+
protoOf(SendHook$install$slambda).v9 = function () {
|
|
530
|
+
var suspendResult = this.p9_1;
|
|
531
531
|
$sm: do
|
|
532
532
|
try {
|
|
533
|
-
var tmp = this.
|
|
533
|
+
var tmp = this.n9_1;
|
|
534
534
|
switch (tmp) {
|
|
535
535
|
case 0:
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
suspendResult = this.
|
|
536
|
+
this.o9_1 = 2;
|
|
537
|
+
this.n9_1 = 1;
|
|
538
|
+
suspendResult = this.k53_1(new Context(this.l53_1), this.l53_1.a2t_1, this);
|
|
539
539
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
540
540
|
return suspendResult;
|
|
541
541
|
}
|
|
@@ -544,76 +544,76 @@
|
|
|
544
544
|
case 1:
|
|
545
545
|
return Unit_instance;
|
|
546
546
|
case 2:
|
|
547
|
-
throw this.
|
|
547
|
+
throw this.q9_1;
|
|
548
548
|
}
|
|
549
549
|
} catch ($p) {
|
|
550
550
|
var e = $p;
|
|
551
|
-
if (this.
|
|
551
|
+
if (this.o9_1 === 2) {
|
|
552
552
|
throw e;
|
|
553
553
|
} else {
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
554
|
+
this.n9_1 = this.o9_1;
|
|
555
|
+
this.q9_1 = e;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
while (true);
|
|
559
559
|
};
|
|
560
|
-
protoOf(SendHook$install$slambda).
|
|
561
|
-
var i = new SendHook$install$slambda(this.
|
|
562
|
-
i.
|
|
563
|
-
i.
|
|
560
|
+
protoOf(SendHook$install$slambda).l3i = function ($this$intercept, it, completion) {
|
|
561
|
+
var i = new SendHook$install$slambda(this.k53_1, completion);
|
|
562
|
+
i.l53_1 = $this$intercept;
|
|
563
|
+
i.m53_1 = it;
|
|
564
564
|
return i;
|
|
565
565
|
};
|
|
566
566
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
567
567
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
568
568
|
var l = function ($this$intercept, it, $completion) {
|
|
569
|
-
return i.
|
|
569
|
+
return i.k3i($this$intercept, it, $completion);
|
|
570
570
|
};
|
|
571
571
|
l.$arity = 2;
|
|
572
572
|
return l;
|
|
573
573
|
}
|
|
574
574
|
function SendHook() {
|
|
575
575
|
}
|
|
576
|
-
protoOf(SendHook).
|
|
577
|
-
var tmp = Phases_getInstance().
|
|
578
|
-
client.
|
|
576
|
+
protoOf(SendHook).n53 = function (client, handler) {
|
|
577
|
+
var tmp = Phases_getInstance().b3k_1;
|
|
578
|
+
client.s3h_1.e2t(tmp, SendHook$install$slambda_0(handler, null));
|
|
579
579
|
};
|
|
580
|
-
protoOf(SendHook).
|
|
581
|
-
return this.
|
|
580
|
+
protoOf(SendHook).l3r = function (client, handler) {
|
|
581
|
+
return this.n53(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
582
582
|
};
|
|
583
583
|
var SendHook_instance;
|
|
584
584
|
function SendHook_getInstance() {
|
|
585
585
|
return SendHook_instance;
|
|
586
586
|
}
|
|
587
587
|
function Context_0(context) {
|
|
588
|
-
this.
|
|
588
|
+
this.o53_1 = context;
|
|
589
589
|
}
|
|
590
|
-
protoOf(Context_0).
|
|
591
|
-
return this.
|
|
590
|
+
protoOf(Context_0).a4f = function (response, $completion) {
|
|
591
|
+
return this.o53_1.e2s(response, $completion);
|
|
592
592
|
};
|
|
593
593
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
594
|
-
this.
|
|
594
|
+
this.x53_1 = $handler;
|
|
595
595
|
CoroutineImpl.call(this, resultContinuation);
|
|
596
596
|
}
|
|
597
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
598
|
-
var tmp = this.
|
|
599
|
-
tmp.
|
|
600
|
-
tmp.
|
|
601
|
-
return tmp.
|
|
597
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).y3r = function ($this$intercept, it, $completion) {
|
|
598
|
+
var tmp = this.z3r($this$intercept, it, $completion);
|
|
599
|
+
tmp.p9_1 = Unit_instance;
|
|
600
|
+
tmp.q9_1 = null;
|
|
601
|
+
return tmp.v9();
|
|
602
602
|
};
|
|
603
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
603
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).ka = function (p1, p2, $completion) {
|
|
604
604
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
605
|
-
return this.
|
|
605
|
+
return this.y3r(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
606
606
|
};
|
|
607
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
608
|
-
var suspendResult = this.
|
|
607
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).v9 = function () {
|
|
608
|
+
var suspendResult = this.p9_1;
|
|
609
609
|
$sm: do
|
|
610
610
|
try {
|
|
611
|
-
var tmp = this.
|
|
611
|
+
var tmp = this.n9_1;
|
|
612
612
|
switch (tmp) {
|
|
613
613
|
case 0:
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
suspendResult = this.
|
|
614
|
+
this.o9_1 = 2;
|
|
615
|
+
this.n9_1 = 1;
|
|
616
|
+
suspendResult = this.x53_1(new Context_0(this.y53_1), this.y53_1.d2s(), this);
|
|
617
617
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
618
618
|
return suspendResult;
|
|
619
619
|
}
|
|
@@ -622,77 +622,77 @@
|
|
|
622
622
|
case 1:
|
|
623
623
|
return Unit_instance;
|
|
624
624
|
case 2:
|
|
625
|
-
throw this.
|
|
625
|
+
throw this.q9_1;
|
|
626
626
|
}
|
|
627
627
|
} catch ($p) {
|
|
628
628
|
var e = $p;
|
|
629
|
-
if (this.
|
|
629
|
+
if (this.o9_1 === 2) {
|
|
630
630
|
throw e;
|
|
631
631
|
} else {
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
632
|
+
this.n9_1 = this.o9_1;
|
|
633
|
+
this.q9_1 = e;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
while (true);
|
|
637
637
|
};
|
|
638
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
639
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
640
|
-
i.
|
|
641
|
-
i.
|
|
638
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).z3r = function ($this$intercept, it, completion) {
|
|
639
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.x53_1, completion);
|
|
640
|
+
i.y53_1 = $this$intercept;
|
|
641
|
+
i.z53_1 = it;
|
|
642
642
|
return i;
|
|
643
643
|
};
|
|
644
644
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
645
645
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
646
646
|
var l = function ($this$intercept, it, $completion) {
|
|
647
|
-
return i.
|
|
647
|
+
return i.y3r($this$intercept, it, $completion);
|
|
648
648
|
};
|
|
649
649
|
l.$arity = 2;
|
|
650
650
|
return l;
|
|
651
651
|
}
|
|
652
652
|
function ResponseAfterEncodingHook() {
|
|
653
653
|
}
|
|
654
|
-
protoOf(ResponseAfterEncodingHook).
|
|
654
|
+
protoOf(ResponseAfterEncodingHook).a54 = function (client, handler) {
|
|
655
655
|
var afterState = new PipelinePhase('AfterState');
|
|
656
|
-
client.
|
|
657
|
-
client.
|
|
656
|
+
client.t3h_1.b2t(Phases_getInstance_0().c3s_1, afterState);
|
|
657
|
+
client.t3h_1.e2t(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
658
658
|
};
|
|
659
|
-
protoOf(ResponseAfterEncodingHook).
|
|
660
|
-
return this.
|
|
659
|
+
protoOf(ResponseAfterEncodingHook).l3r = function (client, handler) {
|
|
660
|
+
return this.a54(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
661
661
|
};
|
|
662
662
|
var ResponseAfterEncodingHook_instance;
|
|
663
663
|
function ResponseAfterEncodingHook_getInstance() {
|
|
664
664
|
return ResponseAfterEncodingHook_instance;
|
|
665
665
|
}
|
|
666
666
|
function Context_1(context) {
|
|
667
|
-
this.
|
|
667
|
+
this.b54_1 = context;
|
|
668
668
|
}
|
|
669
|
-
protoOf(Context_1).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(Context_1).c54 = function ($completion) {
|
|
670
|
+
return this.b54_1.f2s($completion);
|
|
671
671
|
};
|
|
672
672
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
673
|
-
this.
|
|
673
|
+
this.l54_1 = $handler;
|
|
674
674
|
CoroutineImpl.call(this, resultContinuation);
|
|
675
675
|
}
|
|
676
|
-
protoOf(ResponseHook$install$slambda).
|
|
677
|
-
var tmp = this.
|
|
678
|
-
tmp.
|
|
679
|
-
tmp.
|
|
680
|
-
return tmp.
|
|
676
|
+
protoOf(ResponseHook$install$slambda).y3r = function ($this$intercept, it, $completion) {
|
|
677
|
+
var tmp = this.z3r($this$intercept, it, $completion);
|
|
678
|
+
tmp.p9_1 = Unit_instance;
|
|
679
|
+
tmp.q9_1 = null;
|
|
680
|
+
return tmp.v9();
|
|
681
681
|
};
|
|
682
|
-
protoOf(ResponseHook$install$slambda).
|
|
682
|
+
protoOf(ResponseHook$install$slambda).ka = function (p1, p2, $completion) {
|
|
683
683
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
684
|
-
return this.
|
|
684
|
+
return this.y3r(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
685
685
|
};
|
|
686
|
-
protoOf(ResponseHook$install$slambda).
|
|
687
|
-
var suspendResult = this.
|
|
686
|
+
protoOf(ResponseHook$install$slambda).v9 = function () {
|
|
687
|
+
var suspendResult = this.p9_1;
|
|
688
688
|
$sm: do
|
|
689
689
|
try {
|
|
690
|
-
var tmp = this.
|
|
690
|
+
var tmp = this.n9_1;
|
|
691
691
|
switch (tmp) {
|
|
692
692
|
case 0:
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
suspendResult = this.
|
|
693
|
+
this.o9_1 = 2;
|
|
694
|
+
this.n9_1 = 1;
|
|
695
|
+
suspendResult = this.l54_1(new Context_1(this.m54_1), this.m54_1.d2s(), this);
|
|
696
696
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
697
697
|
return suspendResult;
|
|
698
698
|
}
|
|
@@ -701,76 +701,76 @@
|
|
|
701
701
|
case 1:
|
|
702
702
|
return Unit_instance;
|
|
703
703
|
case 2:
|
|
704
|
-
throw this.
|
|
704
|
+
throw this.q9_1;
|
|
705
705
|
}
|
|
706
706
|
} catch ($p) {
|
|
707
707
|
var e = $p;
|
|
708
|
-
if (this.
|
|
708
|
+
if (this.o9_1 === 2) {
|
|
709
709
|
throw e;
|
|
710
710
|
} else {
|
|
711
|
-
this.
|
|
712
|
-
this.
|
|
711
|
+
this.n9_1 = this.o9_1;
|
|
712
|
+
this.q9_1 = e;
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
715
|
while (true);
|
|
716
716
|
};
|
|
717
|
-
protoOf(ResponseHook$install$slambda).
|
|
718
|
-
var i = new ResponseHook$install$slambda(this.
|
|
719
|
-
i.
|
|
720
|
-
i.
|
|
717
|
+
protoOf(ResponseHook$install$slambda).z3r = function ($this$intercept, it, completion) {
|
|
718
|
+
var i = new ResponseHook$install$slambda(this.l54_1, completion);
|
|
719
|
+
i.m54_1 = $this$intercept;
|
|
720
|
+
i.n54_1 = it;
|
|
721
721
|
return i;
|
|
722
722
|
};
|
|
723
723
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
724
724
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
725
725
|
var l = function ($this$intercept, it, $completion) {
|
|
726
|
-
return i.
|
|
726
|
+
return i.y3r($this$intercept, it, $completion);
|
|
727
727
|
};
|
|
728
728
|
l.$arity = 2;
|
|
729
729
|
return l;
|
|
730
730
|
}
|
|
731
731
|
function ResponseHook() {
|
|
732
732
|
}
|
|
733
|
-
protoOf(ResponseHook).
|
|
734
|
-
var tmp = Phases_getInstance_0().
|
|
735
|
-
client.
|
|
733
|
+
protoOf(ResponseHook).o54 = function (client, handler) {
|
|
734
|
+
var tmp = Phases_getInstance_0().c3s_1;
|
|
735
|
+
client.t3h_1.e2t(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
736
736
|
};
|
|
737
|
-
protoOf(ResponseHook).
|
|
738
|
-
return this.
|
|
737
|
+
protoOf(ResponseHook).l3r = function (client, handler) {
|
|
738
|
+
return this.o54(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
739
739
|
};
|
|
740
740
|
var ResponseHook_instance;
|
|
741
741
|
function ResponseHook_getInstance() {
|
|
742
742
|
return ResponseHook_instance;
|
|
743
743
|
}
|
|
744
744
|
function Context_2(context) {
|
|
745
|
-
this.
|
|
745
|
+
this.p54_1 = context;
|
|
746
746
|
}
|
|
747
|
-
protoOf(Context_2).
|
|
748
|
-
return this.
|
|
747
|
+
protoOf(Context_2).q54 = function ($completion) {
|
|
748
|
+
return this.p54_1.f2s($completion);
|
|
749
749
|
};
|
|
750
750
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
751
|
-
this.
|
|
751
|
+
this.z54_1 = $handler;
|
|
752
752
|
CoroutineImpl.call(this, resultContinuation);
|
|
753
753
|
}
|
|
754
|
-
protoOf(ReceiveHook$install$slambda).
|
|
755
|
-
var tmp = this.
|
|
756
|
-
tmp.
|
|
757
|
-
tmp.
|
|
758
|
-
return tmp.
|
|
754
|
+
protoOf(ReceiveHook$install$slambda).f3j = function ($this$intercept, it, $completion) {
|
|
755
|
+
var tmp = this.g3j($this$intercept, it, $completion);
|
|
756
|
+
tmp.p9_1 = Unit_instance;
|
|
757
|
+
tmp.q9_1 = null;
|
|
758
|
+
return tmp.v9();
|
|
759
759
|
};
|
|
760
|
-
protoOf(ReceiveHook$install$slambda).
|
|
760
|
+
protoOf(ReceiveHook$install$slambda).ka = function (p1, p2, $completion) {
|
|
761
761
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
762
|
-
return this.
|
|
762
|
+
return this.f3j(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
763
763
|
};
|
|
764
|
-
protoOf(ReceiveHook$install$slambda).
|
|
765
|
-
var suspendResult = this.
|
|
764
|
+
protoOf(ReceiveHook$install$slambda).v9 = function () {
|
|
765
|
+
var suspendResult = this.p9_1;
|
|
766
766
|
$sm: do
|
|
767
767
|
try {
|
|
768
|
-
var tmp = this.
|
|
768
|
+
var tmp = this.n9_1;
|
|
769
769
|
switch (tmp) {
|
|
770
770
|
case 0:
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
773
|
-
suspendResult = this.
|
|
771
|
+
this.o9_1 = 2;
|
|
772
|
+
this.n9_1 = 1;
|
|
773
|
+
suspendResult = this.z54_1(new Context_2(this.a55_1), this.a55_1.a2t_1, this);
|
|
774
774
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
775
775
|
return suspendResult;
|
|
776
776
|
}
|
|
@@ -779,41 +779,41 @@
|
|
|
779
779
|
case 1:
|
|
780
780
|
return Unit_instance;
|
|
781
781
|
case 2:
|
|
782
|
-
throw this.
|
|
782
|
+
throw this.q9_1;
|
|
783
783
|
}
|
|
784
784
|
} catch ($p) {
|
|
785
785
|
var e = $p;
|
|
786
|
-
if (this.
|
|
786
|
+
if (this.o9_1 === 2) {
|
|
787
787
|
throw e;
|
|
788
788
|
} else {
|
|
789
|
-
this.
|
|
790
|
-
this.
|
|
789
|
+
this.n9_1 = this.o9_1;
|
|
790
|
+
this.q9_1 = e;
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
while (true);
|
|
794
794
|
};
|
|
795
|
-
protoOf(ReceiveHook$install$slambda).
|
|
796
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
797
|
-
i.
|
|
798
|
-
i.
|
|
795
|
+
protoOf(ReceiveHook$install$slambda).g3j = function ($this$intercept, it, completion) {
|
|
796
|
+
var i = new ReceiveHook$install$slambda(this.z54_1, completion);
|
|
797
|
+
i.a55_1 = $this$intercept;
|
|
798
|
+
i.b55_1 = it;
|
|
799
799
|
return i;
|
|
800
800
|
};
|
|
801
801
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
802
802
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
803
803
|
var l = function ($this$intercept, it, $completion) {
|
|
804
|
-
return i.
|
|
804
|
+
return i.f3j($this$intercept, it, $completion);
|
|
805
805
|
};
|
|
806
806
|
l.$arity = 2;
|
|
807
807
|
return l;
|
|
808
808
|
}
|
|
809
809
|
function ReceiveHook() {
|
|
810
810
|
}
|
|
811
|
-
protoOf(ReceiveHook).
|
|
812
|
-
var tmp = Phases_getInstance_1().
|
|
813
|
-
client.
|
|
811
|
+
protoOf(ReceiveHook).c55 = function (client, handler) {
|
|
812
|
+
var tmp = Phases_getInstance_1().p3k_1;
|
|
813
|
+
client.r3h_1.e2t(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
814
814
|
};
|
|
815
|
-
protoOf(ReceiveHook).
|
|
816
|
-
return this.
|
|
815
|
+
protoOf(ReceiveHook).l3r = function (client, handler) {
|
|
816
|
+
return this.c55(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
817
817
|
};
|
|
818
818
|
var ReceiveHook_instance;
|
|
819
819
|
function ReceiveHook_getInstance() {
|
|
@@ -828,26 +828,26 @@
|
|
|
828
828
|
}
|
|
829
829
|
function Logging$lambda($this$createClientPlugin) {
|
|
830
830
|
_init_properties_Logging_kt__66pui5();
|
|
831
|
-
var logger = $this$createClientPlugin.
|
|
832
|
-
var level = $this$createClientPlugin.
|
|
833
|
-
var filters = $this$createClientPlugin.
|
|
834
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
835
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
831
|
+
var logger = $this$createClientPlugin.g3s_1.y52();
|
|
832
|
+
var level = $this$createClientPlugin.g3s_1.w52_1;
|
|
833
|
+
var filters = $this$createClientPlugin.g3s_1.s52_1;
|
|
834
|
+
var sanitizedHeaders = $this$createClientPlugin.g3s_1.t52_1;
|
|
835
|
+
var okHttpFormat = $this$createClientPlugin.g3s_1.v52_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
836
836
|
var tmp = SendHook_instance;
|
|
837
|
-
$this$createClientPlugin.
|
|
837
|
+
$this$createClientPlugin.j3s(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
838
838
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
839
|
-
$this$createClientPlugin.
|
|
839
|
+
$this$createClientPlugin.j3s(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
840
840
|
var tmp_1 = ResponseHook_instance;
|
|
841
|
-
$this$createClientPlugin.
|
|
841
|
+
$this$createClientPlugin.j3s(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
842
842
|
var tmp_2 = ReceiveHook_instance;
|
|
843
|
-
$this$createClientPlugin.
|
|
843
|
+
$this$createClientPlugin.j3s(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
844
844
|
if (okHttpFormat)
|
|
845
845
|
return Unit_instance;
|
|
846
|
-
if (!level.
|
|
846
|
+
if (!level.k52_1)
|
|
847
847
|
return Unit_instance;
|
|
848
848
|
var tmp_3 = get_ResponseObserver();
|
|
849
|
-
var responseObserver = tmp_3.
|
|
850
|
-
get_ResponseObserver().
|
|
849
|
+
var responseObserver = tmp_3.w3k(Logging$lambda$lambda(level));
|
|
850
|
+
get_ResponseObserver().x3k(responseObserver, $this$createClientPlugin.f3s_1);
|
|
851
851
|
return Unit_instance;
|
|
852
852
|
}
|
|
853
853
|
function invoke$shouldBeLogged(filters, request) {
|
|
@@ -896,15 +896,15 @@
|
|
|
896
896
|
}
|
|
897
897
|
function invoke$detectIfBinary($this_createClientPlugin, body, contentLength, contentType, headers, $completion) {
|
|
898
898
|
var tmp = new $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, $completion);
|
|
899
|
-
tmp.
|
|
900
|
-
tmp.
|
|
901
|
-
return tmp.
|
|
899
|
+
tmp.p9_1 = Unit_instance;
|
|
900
|
+
tmp.q9_1 = null;
|
|
901
|
+
return tmp.v9();
|
|
902
902
|
}
|
|
903
903
|
function invoke$logRequestBody($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion) {
|
|
904
904
|
var tmp = new $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion);
|
|
905
|
-
tmp.
|
|
906
|
-
tmp.
|
|
907
|
-
return tmp.
|
|
905
|
+
tmp.p9_1 = Unit_instance;
|
|
906
|
+
tmp.q9_1 = null;
|
|
907
|
+
return tmp.v9();
|
|
908
908
|
}
|
|
909
909
|
function invoke$logOutgoingContent($this_createClientPlugin, content, method, headers, logLines, process, $completion) {
|
|
910
910
|
var tmp;
|
|
@@ -915,83 +915,83 @@
|
|
|
915
915
|
}
|
|
916
916
|
process = tmp;
|
|
917
917
|
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, $completion);
|
|
918
|
-
tmp_0.
|
|
919
|
-
tmp_0.
|
|
920
|
-
return tmp_0.
|
|
918
|
+
tmp_0.p9_1 = Unit_instance;
|
|
919
|
+
tmp_0.q9_1 = null;
|
|
920
|
+
return tmp_0.v9();
|
|
921
921
|
}
|
|
922
922
|
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion) {
|
|
923
923
|
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion);
|
|
924
|
-
tmp.
|
|
925
|
-
tmp.
|
|
926
|
-
return tmp.
|
|
924
|
+
tmp.p9_1 = Unit_instance;
|
|
925
|
+
tmp.q9_1 = null;
|
|
926
|
+
return tmp.v9();
|
|
927
927
|
}
|
|
928
928
|
function invoke$logResponseBody($this_createClientPlugin, response, body, logLines, $completion) {
|
|
929
929
|
var tmp = new $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, $completion);
|
|
930
|
-
tmp.
|
|
931
|
-
tmp.
|
|
932
|
-
return tmp.
|
|
930
|
+
tmp.p9_1 = Unit_instance;
|
|
931
|
+
tmp.q9_1 = null;
|
|
932
|
+
return tmp.v9();
|
|
933
933
|
}
|
|
934
934
|
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, $completion) {
|
|
935
935
|
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, $completion);
|
|
936
|
-
tmp.
|
|
937
|
-
tmp.
|
|
938
|
-
return tmp.
|
|
936
|
+
tmp.p9_1 = Unit_instance;
|
|
937
|
+
tmp.q9_1 = null;
|
|
938
|
+
return tmp.v9();
|
|
939
939
|
}
|
|
940
940
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
941
941
|
var requestLog = StringBuilder_init_$Create$();
|
|
942
942
|
// Inline function 'kotlin.text.appendLine' call
|
|
943
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
943
|
+
var value = 'BODY Content-Type: ' + toString_0(content.u36());
|
|
944
944
|
// Inline function 'kotlin.text.appendLine' call
|
|
945
|
-
requestLog.
|
|
946
|
-
var tmp0_safe_receiver = content.
|
|
945
|
+
requestLog.y8(value).z8(_Char___init__impl__6a9atx(10));
|
|
946
|
+
var tmp0_safe_receiver = content.u36();
|
|
947
947
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
948
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
948
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().l1z_1 : tmp1_elvis_lhs;
|
|
949
949
|
var channel = new ByteChannel();
|
|
950
950
|
var tmp = GlobalScope_instance;
|
|
951
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
951
|
+
var tmp_0 = Dispatchers_getInstance().o12_1.bi(MDCContext());
|
|
952
952
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
953
953
|
return observe(content, channel, $completion);
|
|
954
954
|
}
|
|
955
955
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
956
|
-
if (level.
|
|
957
|
-
logger.
|
|
956
|
+
if (level.i52_1) {
|
|
957
|
+
logger.g51('REQUEST ' + Url(context.r3j_1).toString() + ' failed with exception: ' + cause.toString());
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
961
|
-
var tmp = request.
|
|
961
|
+
var tmp = request.u3j_1;
|
|
962
962
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
963
963
|
var callLogger = new HttpClientCallLogger(logger);
|
|
964
|
-
request.
|
|
964
|
+
request.w3j_1.j2l(get_ClientCallLogger(), callLogger);
|
|
965
965
|
// Inline function 'kotlin.text.buildString' call
|
|
966
966
|
// Inline function 'kotlin.apply' call
|
|
967
967
|
var this_0 = StringBuilder_init_$Create$();
|
|
968
|
-
if (level.
|
|
968
|
+
if (level.i52_1) {
|
|
969
969
|
// Inline function 'kotlin.text.appendLine' call
|
|
970
|
-
var value = 'REQUEST: ' + Url(request.
|
|
970
|
+
var value = 'REQUEST: ' + Url(request.r3j_1).toString();
|
|
971
971
|
// Inline function 'kotlin.text.appendLine' call
|
|
972
|
-
this_0.
|
|
972
|
+
this_0.y8(value).z8(_Char___init__impl__6a9atx(10));
|
|
973
973
|
// Inline function 'kotlin.text.appendLine' call
|
|
974
|
-
var value_0 = 'METHOD: ' + request.
|
|
974
|
+
var value_0 = 'METHOD: ' + request.s3j_1.toString();
|
|
975
975
|
// Inline function 'kotlin.text.appendLine' call
|
|
976
|
-
this_0.
|
|
976
|
+
this_0.y8(value_0).z8(_Char___init__impl__6a9atx(10));
|
|
977
977
|
}
|
|
978
|
-
if (level.
|
|
978
|
+
if (level.j52_1) {
|
|
979
979
|
// Inline function 'kotlin.text.appendLine' call
|
|
980
980
|
var value_1 = 'COMMON HEADERS';
|
|
981
981
|
// Inline function 'kotlin.text.appendLine' call
|
|
982
|
-
this_0.
|
|
983
|
-
logHeaders(this_0, request.
|
|
982
|
+
this_0.y8(value_1).z8(_Char___init__impl__6a9atx(10));
|
|
983
|
+
logHeaders(this_0, request.t3j_1.p2p(), sanitizedHeaders);
|
|
984
984
|
// Inline function 'kotlin.text.appendLine' call
|
|
985
985
|
var value_2 = 'CONTENT HEADERS';
|
|
986
986
|
// Inline function 'kotlin.text.appendLine' call
|
|
987
|
-
this_0.
|
|
987
|
+
this_0.y8(value_2).z8(_Char___init__impl__6a9atx(10));
|
|
988
988
|
var tmp$ret$9;
|
|
989
989
|
$l$block: {
|
|
990
990
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
991
991
|
var _iterator__ex2g4s = sanitizedHeaders.p();
|
|
992
992
|
while (_iterator__ex2g4s.q()) {
|
|
993
993
|
var element = _iterator__ex2g4s.r();
|
|
994
|
-
if (element.
|
|
994
|
+
if (element.z59_1(HttpHeaders_getInstance().l2x_1)) {
|
|
995
995
|
tmp$ret$9 = element;
|
|
996
996
|
break $l$block;
|
|
997
997
|
}
|
|
@@ -999,14 +999,14 @@
|
|
|
999
999
|
tmp$ret$9 = null;
|
|
1000
1000
|
}
|
|
1001
1001
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1002
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1002
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y59_1;
|
|
1003
1003
|
var tmp$ret$11;
|
|
1004
1004
|
$l$block_0: {
|
|
1005
1005
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1006
1006
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
1007
1007
|
while (_iterator__ex2g4s_0.q()) {
|
|
1008
1008
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
1009
|
-
if (element_0.
|
|
1009
|
+
if (element_0.z59_1(HttpHeaders_getInstance().o2x_1)) {
|
|
1010
1010
|
tmp$ret$11 = element_0;
|
|
1011
1011
|
break $l$block_0;
|
|
1012
1012
|
}
|
|
@@ -1014,180 +1014,180 @@
|
|
|
1014
1014
|
tmp$ret$11 = null;
|
|
1015
1015
|
}
|
|
1016
1016
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1017
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1018
|
-
var tmp2_safe_receiver = content.
|
|
1017
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y59_1;
|
|
1018
|
+
var tmp2_safe_receiver = content.w36();
|
|
1019
1019
|
if (tmp2_safe_receiver == null)
|
|
1020
1020
|
null;
|
|
1021
1021
|
else {
|
|
1022
1022
|
// Inline function 'kotlin.let' call
|
|
1023
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1023
|
+
var tmp_0 = HttpHeaders_getInstance().l2x_1;
|
|
1024
1024
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1025
1025
|
}
|
|
1026
|
-
var tmp3_safe_receiver = content.
|
|
1026
|
+
var tmp3_safe_receiver = content.u36();
|
|
1027
1027
|
if (tmp3_safe_receiver == null)
|
|
1028
1028
|
null;
|
|
1029
1029
|
else {
|
|
1030
1030
|
// Inline function 'kotlin.let' call
|
|
1031
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1031
|
+
var tmp_1 = HttpHeaders_getInstance().o2x_1;
|
|
1032
1032
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1033
1033
|
}
|
|
1034
|
-
logHeaders(this_0, content.
|
|
1034
|
+
logHeaders(this_0, content.z30().p2p(), sanitizedHeaders);
|
|
1035
1035
|
}
|
|
1036
1036
|
var message = this_0.toString();
|
|
1037
1037
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1038
1038
|
if (charSequenceLength(message) > 0) {
|
|
1039
|
-
callLogger.
|
|
1039
|
+
callLogger.a52(message);
|
|
1040
1040
|
}
|
|
1041
1041
|
var tmp_2;
|
|
1042
1042
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1043
1043
|
if (charSequenceLength(message) === 0) {
|
|
1044
1044
|
tmp_2 = true;
|
|
1045
1045
|
} else {
|
|
1046
|
-
tmp_2 = !level.
|
|
1046
|
+
tmp_2 = !level.k52_1;
|
|
1047
1047
|
}
|
|
1048
1048
|
if (tmp_2) {
|
|
1049
|
-
callLogger.
|
|
1049
|
+
callLogger.e52();
|
|
1050
1050
|
return null;
|
|
1051
1051
|
}
|
|
1052
1052
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1053
1053
|
}
|
|
1054
1054
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1055
|
-
if (!level.
|
|
1055
|
+
if (!level.i52_1)
|
|
1056
1056
|
return Unit_instance;
|
|
1057
|
-
log.
|
|
1057
|
+
log.y8('RESPONSE ' + request.i3l().toString() + ' failed with exception: ' + cause.toString());
|
|
1058
1058
|
}
|
|
1059
1059
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1060
|
+
this.i5a_1 = $okHttpFormat;
|
|
1061
|
+
this.j5a_1 = $logger;
|
|
1062
|
+
this.k5a_1 = $filters;
|
|
1063
|
+
this.l5a_1 = $sanitizedHeaders;
|
|
1064
|
+
this.m5a_1 = $level;
|
|
1065
|
+
this.n5a_1 = $this_createClientPlugin;
|
|
1066
1066
|
CoroutineImpl.call(this, resultContinuation);
|
|
1067
1067
|
}
|
|
1068
|
-
protoOf(Logging$lambda$slambda).
|
|
1069
|
-
var tmp = this.
|
|
1070
|
-
tmp.
|
|
1071
|
-
tmp.
|
|
1072
|
-
return tmp.
|
|
1068
|
+
protoOf(Logging$lambda$slambda).b5b = function ($this$on, request, $completion) {
|
|
1069
|
+
var tmp = this.c5b($this$on, request, $completion);
|
|
1070
|
+
tmp.p9_1 = Unit_instance;
|
|
1071
|
+
tmp.q9_1 = null;
|
|
1072
|
+
return tmp.v9();
|
|
1073
1073
|
};
|
|
1074
|
-
protoOf(Logging$lambda$slambda).
|
|
1074
|
+
protoOf(Logging$lambda$slambda).ka = function (p1, p2, $completion) {
|
|
1075
1075
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1076
|
-
return this.
|
|
1076
|
+
return this.b5b(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1077
1077
|
};
|
|
1078
|
-
protoOf(Logging$lambda$slambda).
|
|
1079
|
-
var suspendResult = this.
|
|
1078
|
+
protoOf(Logging$lambda$slambda).v9 = function () {
|
|
1079
|
+
var suspendResult = this.p9_1;
|
|
1080
1080
|
$sm: do
|
|
1081
1081
|
try {
|
|
1082
|
-
var tmp = this.
|
|
1082
|
+
var tmp = this.n9_1;
|
|
1083
1083
|
switch (tmp) {
|
|
1084
1084
|
case 0:
|
|
1085
|
-
this.
|
|
1086
|
-
if (!invoke$shouldBeLogged(this.
|
|
1087
|
-
this.
|
|
1085
|
+
this.o9_1 = 16;
|
|
1086
|
+
if (!invoke$shouldBeLogged(this.k5a_1, this.p5a_1)) {
|
|
1087
|
+
this.p5a_1.w3j_1.j2l(get_DisableLogging(), Unit_instance);
|
|
1088
1088
|
return Unit_instance;
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
|
-
if (this.
|
|
1091
|
+
if (this.i5a_1) {
|
|
1092
1092
|
var tmp_0 = this;
|
|
1093
|
-
tmp_0.
|
|
1094
|
-
this.
|
|
1095
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1093
|
+
tmp_0.q5a_1 = ArrayList_init_$Create$();
|
|
1094
|
+
this.n9_1 = 10;
|
|
1095
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.l5a_1, this.m5a_1, this.n5a_1, this.p5a_1, this.q5a_1, this);
|
|
1096
1096
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1097
1097
|
return suspendResult;
|
|
1098
1098
|
}
|
|
1099
1099
|
continue $sm;
|
|
1100
1100
|
} else {
|
|
1101
|
-
this.
|
|
1101
|
+
this.n9_1 = 1;
|
|
1102
1102
|
continue $sm;
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
1105
|
case 1:
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1108
|
-
suspendResult = invoke$logRequest(this.
|
|
1106
|
+
this.o9_1 = 3;
|
|
1107
|
+
this.n9_1 = 2;
|
|
1108
|
+
suspendResult = invoke$logRequest(this.j5a_1, this.m5a_1, this.l5a_1, this.p5a_1, this);
|
|
1109
1109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1110
1110
|
return suspendResult;
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
continue $sm;
|
|
1114
1114
|
case 2:
|
|
1115
|
-
this.
|
|
1116
|
-
this.
|
|
1117
|
-
this.
|
|
1115
|
+
this.r5a_1 = suspendResult;
|
|
1116
|
+
this.o9_1 = 16;
|
|
1117
|
+
this.n9_1 = 4;
|
|
1118
1118
|
continue $sm;
|
|
1119
1119
|
case 3:
|
|
1120
|
-
this.
|
|
1121
|
-
var tmp_1 = this.
|
|
1120
|
+
this.o9_1 = 16;
|
|
1121
|
+
var tmp_1 = this.q9_1;
|
|
1122
1122
|
if (tmp_1 instanceof Error) {
|
|
1123
|
-
this.
|
|
1123
|
+
this.s5a_1 = this.q9_1;
|
|
1124
1124
|
var tmp_2 = this;
|
|
1125
|
-
tmp_2.
|
|
1126
|
-
this.
|
|
1125
|
+
tmp_2.r5a_1 = null;
|
|
1126
|
+
this.n9_1 = 4;
|
|
1127
1127
|
continue $sm;
|
|
1128
1128
|
} else {
|
|
1129
|
-
throw this.
|
|
1129
|
+
throw this.q9_1;
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
1132
|
case 4:
|
|
1133
|
-
this.
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1133
|
+
this.o9_1 = 16;
|
|
1134
|
+
this.t5a_1 = this.r5a_1;
|
|
1135
|
+
this.u5a_1 = Unit_instance;
|
|
1136
|
+
this.n9_1 = 5;
|
|
1137
1137
|
continue $sm;
|
|
1138
1138
|
case 5:
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
var tmp0_elvis_lhs = this.
|
|
1143
|
-
suspendResult = this.
|
|
1139
|
+
this.o9_1 = 8;
|
|
1140
|
+
this.o9_1 = 7;
|
|
1141
|
+
this.n9_1 = 6;
|
|
1142
|
+
var tmp0_elvis_lhs = this.t5a_1;
|
|
1143
|
+
suspendResult = this.o5a_1.a53(tmp0_elvis_lhs == null ? this.p5a_1.u3j_1 : tmp0_elvis_lhs, this);
|
|
1144
1144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1145
1145
|
return suspendResult;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
1148
|
continue $sm;
|
|
1149
1149
|
case 6:
|
|
1150
|
-
this.
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1150
|
+
this.u5a_1 = suspendResult;
|
|
1151
|
+
this.o9_1 = 16;
|
|
1152
|
+
this.n9_1 = 9;
|
|
1153
1153
|
continue $sm;
|
|
1154
1154
|
case 7:
|
|
1155
|
-
this.
|
|
1156
|
-
var tmp_3 = this.
|
|
1155
|
+
this.o9_1 = 8;
|
|
1156
|
+
var tmp_3 = this.q9_1;
|
|
1157
1157
|
if (tmp_3 instanceof Error) {
|
|
1158
|
-
this.
|
|
1158
|
+
this.v5a_1 = this.q9_1;
|
|
1159
1159
|
var tmp_4 = this;
|
|
1160
|
-
invoke$logRequestException(this.
|
|
1161
|
-
throw this.
|
|
1160
|
+
invoke$logRequestException(this.m5a_1, this.j5a_1, this.p5a_1, this.v5a_1);
|
|
1161
|
+
throw this.v5a_1;
|
|
1162
1162
|
} else {
|
|
1163
|
-
throw this.
|
|
1163
|
+
throw this.q9_1;
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
1166
|
case 8:
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
throw this.
|
|
1167
|
+
this.o9_1 = 16;
|
|
1168
|
+
this.w5a_1 = this.q9_1;
|
|
1169
|
+
throw this.w5a_1;
|
|
1170
1170
|
case 9:
|
|
1171
|
-
this.
|
|
1172
|
-
this.
|
|
1171
|
+
this.x5a_1 = this.u5a_1;
|
|
1172
|
+
this.o9_1 = 16;
|
|
1173
1173
|
return Unit_instance;
|
|
1174
1174
|
case 10:
|
|
1175
|
-
this.
|
|
1176
|
-
if (this.
|
|
1177
|
-
this.
|
|
1175
|
+
this.y5a_1 = suspendResult;
|
|
1176
|
+
if (this.q5a_1.s() > 0) {
|
|
1177
|
+
this.j5a_1.g51(joinToString(this.q5a_1, '\n'));
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
|
-
this.
|
|
1181
|
-
if (!(this.
|
|
1182
|
-
this.
|
|
1183
|
-
suspendResult = this.
|
|
1180
|
+
this.o9_1 = 14;
|
|
1181
|
+
if (!(this.y5a_1 == null)) {
|
|
1182
|
+
this.n9_1 = 12;
|
|
1183
|
+
suspendResult = this.o5a_1.a53(this.y5a_1, this);
|
|
1184
1184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1185
1185
|
return suspendResult;
|
|
1186
1186
|
}
|
|
1187
1187
|
continue $sm;
|
|
1188
1188
|
} else {
|
|
1189
|
-
this.
|
|
1190
|
-
suspendResult = this.
|
|
1189
|
+
this.n9_1 = 11;
|
|
1190
|
+
suspendResult = this.o5a_1.b53(this);
|
|
1191
1191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1192
1192
|
return suspendResult;
|
|
1193
1193
|
}
|
|
@@ -1195,390 +1195,390 @@
|
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
case 11:
|
|
1198
|
-
this.
|
|
1199
|
-
this.
|
|
1198
|
+
this.a5b_1 = suspendResult;
|
|
1199
|
+
this.n9_1 = 13;
|
|
1200
1200
|
continue $sm;
|
|
1201
1201
|
case 12:
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1202
|
+
this.a5b_1 = suspendResult;
|
|
1203
|
+
this.n9_1 = 13;
|
|
1204
1204
|
continue $sm;
|
|
1205
1205
|
case 13:
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1208
|
-
this.
|
|
1206
|
+
this.z5a_1 = this.a5b_1;
|
|
1207
|
+
this.o9_1 = 16;
|
|
1208
|
+
this.n9_1 = 15;
|
|
1209
1209
|
continue $sm;
|
|
1210
1210
|
case 14:
|
|
1211
|
-
this.
|
|
1212
|
-
var tmp_5 = this.
|
|
1211
|
+
this.o9_1 = 16;
|
|
1212
|
+
var tmp_5 = this.q9_1;
|
|
1213
1213
|
if (tmp_5 instanceof Error) {
|
|
1214
|
-
var cause = this.
|
|
1214
|
+
var cause = this.q9_1;
|
|
1215
1215
|
var tmp_6 = this;
|
|
1216
|
-
this.
|
|
1216
|
+
this.j5a_1.g51('<-- HTTP FAILED: ' + cause.toString());
|
|
1217
1217
|
throw cause;
|
|
1218
1218
|
} else {
|
|
1219
|
-
throw this.
|
|
1219
|
+
throw this.q9_1;
|
|
1220
1220
|
}
|
|
1221
1221
|
|
|
1222
1222
|
case 15:
|
|
1223
|
-
this.
|
|
1223
|
+
this.o9_1 = 16;
|
|
1224
1224
|
return Unit_instance;
|
|
1225
1225
|
case 16:
|
|
1226
|
-
throw this.
|
|
1226
|
+
throw this.q9_1;
|
|
1227
1227
|
}
|
|
1228
1228
|
} catch ($p) {
|
|
1229
1229
|
var e = $p;
|
|
1230
|
-
if (this.
|
|
1230
|
+
if (this.o9_1 === 16) {
|
|
1231
1231
|
throw e;
|
|
1232
1232
|
} else {
|
|
1233
|
-
this.
|
|
1234
|
-
this.
|
|
1233
|
+
this.n9_1 = this.o9_1;
|
|
1234
|
+
this.q9_1 = e;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
while (true);
|
|
1238
1238
|
};
|
|
1239
|
-
protoOf(Logging$lambda$slambda).
|
|
1240
|
-
var i = new Logging$lambda$slambda(this.
|
|
1241
|
-
i.
|
|
1242
|
-
i.
|
|
1239
|
+
protoOf(Logging$lambda$slambda).c5b = function ($this$on, request, completion) {
|
|
1240
|
+
var i = new Logging$lambda$slambda(this.i5a_1, this.j5a_1, this.k5a_1, this.l5a_1, this.m5a_1, this.n5a_1, completion);
|
|
1241
|
+
i.o5a_1 = $this$on;
|
|
1242
|
+
i.p5a_1 = request;
|
|
1243
1243
|
return i;
|
|
1244
1244
|
};
|
|
1245
1245
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1246
1246
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1247
1247
|
var l = function ($this$on, request, $completion) {
|
|
1248
|
-
return i.
|
|
1248
|
+
return i.b5b($this$on, request, $completion);
|
|
1249
1249
|
};
|
|
1250
1250
|
l.$arity = 2;
|
|
1251
1251
|
return l;
|
|
1252
1252
|
}
|
|
1253
1253
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1254
|
+
this.l5b_1 = $okHttpFormat;
|
|
1255
|
+
this.m5b_1 = $logger;
|
|
1256
|
+
this.n5b_1 = $sanitizedHeaders;
|
|
1257
|
+
this.o5b_1 = $level;
|
|
1258
|
+
this.p5b_1 = $this_createClientPlugin;
|
|
1259
1259
|
CoroutineImpl.call(this, resultContinuation);
|
|
1260
1260
|
}
|
|
1261
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1262
|
-
var tmp = this.
|
|
1263
|
-
tmp.
|
|
1264
|
-
tmp.
|
|
1265
|
-
return tmp.
|
|
1261
|
+
protoOf(Logging$lambda$slambda_1).u5b = function ($this$on, response, $completion) {
|
|
1262
|
+
var tmp = this.v5b($this$on, response, $completion);
|
|
1263
|
+
tmp.p9_1 = Unit_instance;
|
|
1264
|
+
tmp.q9_1 = null;
|
|
1265
|
+
return tmp.v9();
|
|
1266
1266
|
};
|
|
1267
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1267
|
+
protoOf(Logging$lambda$slambda_1).ka = function (p1, p2, $completion) {
|
|
1268
1268
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1269
|
-
return this.
|
|
1269
|
+
return this.u5b(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1270
1270
|
};
|
|
1271
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1272
|
-
var suspendResult = this.
|
|
1271
|
+
protoOf(Logging$lambda$slambda_1).v9 = function () {
|
|
1272
|
+
var suspendResult = this.p9_1;
|
|
1273
1273
|
$sm: do
|
|
1274
1274
|
try {
|
|
1275
|
-
var tmp = this.
|
|
1275
|
+
var tmp = this.n9_1;
|
|
1276
1276
|
switch (tmp) {
|
|
1277
1277
|
case 0:
|
|
1278
|
-
this.
|
|
1279
|
-
if (this.
|
|
1278
|
+
this.o9_1 = 5;
|
|
1279
|
+
if (this.l5b_1) {
|
|
1280
1280
|
var tmp_0 = this;
|
|
1281
|
-
tmp_0.
|
|
1282
|
-
this.
|
|
1283
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1281
|
+
tmp_0.s5b_1 = ArrayList_init_$Create$();
|
|
1282
|
+
this.n9_1 = 1;
|
|
1283
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.n5b_1, this.o5b_1, this.p5b_1, this.r5b_1, this.s5b_1, this);
|
|
1284
1284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1285
1285
|
return suspendResult;
|
|
1286
1286
|
}
|
|
1287
1287
|
continue $sm;
|
|
1288
1288
|
} else {
|
|
1289
|
-
this.
|
|
1289
|
+
this.n9_1 = 4;
|
|
1290
1290
|
continue $sm;
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
1293
|
case 1:
|
|
1294
|
-
this.
|
|
1295
|
-
if (this.
|
|
1296
|
-
this.
|
|
1294
|
+
this.t5b_1 = suspendResult;
|
|
1295
|
+
if (this.s5b_1.s() > 0) {
|
|
1296
|
+
this.m5b_1.g51(joinToString(this.s5b_1, '\n'));
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
|
-
if (!equals(this.
|
|
1300
|
-
this.
|
|
1301
|
-
suspendResult = this.
|
|
1299
|
+
if (!equals(this.t5b_1, this.r5b_1)) {
|
|
1300
|
+
this.n9_1 = 2;
|
|
1301
|
+
suspendResult = this.q5b_1.a4f(this.t5b_1, this);
|
|
1302
1302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1303
1303
|
return suspendResult;
|
|
1304
1304
|
}
|
|
1305
1305
|
continue $sm;
|
|
1306
1306
|
} else {
|
|
1307
|
-
this.
|
|
1307
|
+
this.n9_1 = 3;
|
|
1308
1308
|
continue $sm;
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
1311
|
case 2:
|
|
1312
|
-
this.
|
|
1312
|
+
this.n9_1 = 3;
|
|
1313
1313
|
continue $sm;
|
|
1314
1314
|
case 3:
|
|
1315
|
-
this.
|
|
1315
|
+
this.n9_1 = 4;
|
|
1316
1316
|
continue $sm;
|
|
1317
1317
|
case 4:
|
|
1318
1318
|
return Unit_instance;
|
|
1319
1319
|
case 5:
|
|
1320
|
-
throw this.
|
|
1320
|
+
throw this.q9_1;
|
|
1321
1321
|
}
|
|
1322
1322
|
} catch ($p) {
|
|
1323
1323
|
var e = $p;
|
|
1324
|
-
if (this.
|
|
1324
|
+
if (this.o9_1 === 5) {
|
|
1325
1325
|
throw e;
|
|
1326
1326
|
} else {
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1327
|
+
this.n9_1 = this.o9_1;
|
|
1328
|
+
this.q9_1 = e;
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
while (true);
|
|
1332
1332
|
};
|
|
1333
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1334
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1335
|
-
i.
|
|
1336
|
-
i.
|
|
1333
|
+
protoOf(Logging$lambda$slambda_1).v5b = function ($this$on, response, completion) {
|
|
1334
|
+
var i = new Logging$lambda$slambda_1(this.l5b_1, this.m5b_1, this.n5b_1, this.o5b_1, this.p5b_1, completion);
|
|
1335
|
+
i.q5b_1 = $this$on;
|
|
1336
|
+
i.r5b_1 = response;
|
|
1337
1337
|
return i;
|
|
1338
1338
|
};
|
|
1339
1339
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1340
1340
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1341
1341
|
var l = function ($this$on, response, $completion) {
|
|
1342
|
-
return i.
|
|
1342
|
+
return i.u5b($this$on, response, $completion);
|
|
1343
1343
|
};
|
|
1344
1344
|
l.$arity = 2;
|
|
1345
1345
|
return l;
|
|
1346
1346
|
}
|
|
1347
1347
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1348
|
+
this.e5c_1 = $okHttpFormat;
|
|
1349
|
+
this.f5c_1 = $level;
|
|
1350
|
+
this.g5c_1 = $sanitizedHeaders;
|
|
1351
1351
|
CoroutineImpl.call(this, resultContinuation);
|
|
1352
1352
|
}
|
|
1353
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1354
|
-
var tmp = this.
|
|
1355
|
-
tmp.
|
|
1356
|
-
tmp.
|
|
1357
|
-
return tmp.
|
|
1353
|
+
protoOf(Logging$lambda$slambda_3).q5c = function ($this$on, response, $completion) {
|
|
1354
|
+
var tmp = this.r5c($this$on, response, $completion);
|
|
1355
|
+
tmp.p9_1 = Unit_instance;
|
|
1356
|
+
tmp.q9_1 = null;
|
|
1357
|
+
return tmp.v9();
|
|
1358
1358
|
};
|
|
1359
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1359
|
+
protoOf(Logging$lambda$slambda_3).ka = function (p1, p2, $completion) {
|
|
1360
1360
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1361
|
-
return this.
|
|
1361
|
+
return this.q5c(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1362
1362
|
};
|
|
1363
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1364
|
-
var suspendResult = this.
|
|
1363
|
+
protoOf(Logging$lambda$slambda_3).v9 = function () {
|
|
1364
|
+
var suspendResult = this.p9_1;
|
|
1365
1365
|
$sm: do
|
|
1366
1366
|
try {
|
|
1367
|
-
var tmp = this.
|
|
1367
|
+
var tmp = this.n9_1;
|
|
1368
1368
|
switch (tmp) {
|
|
1369
1369
|
case 0:
|
|
1370
|
-
this.
|
|
1371
|
-
if (this.
|
|
1370
|
+
this.o9_1 = 14;
|
|
1371
|
+
if (this.e5c_1)
|
|
1372
1372
|
return Unit_instance;
|
|
1373
|
-
if (this.
|
|
1373
|
+
if (this.f5c_1.equals(LogLevel_NONE_getInstance()) || this.i5c_1.g3l().a3l().i2l(get_DisableLogging()))
|
|
1374
1374
|
return Unit_instance;
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1375
|
+
this.j5c_1 = this.i5c_1.g3l().a3l().g2l(get_ClientCallLogger());
|
|
1376
|
+
this.k5c_1 = StringBuilder_init_$Create$();
|
|
1377
|
+
this.l5c_1 = false;
|
|
1378
|
+
this.n9_1 = 1;
|
|
1379
1379
|
continue $sm;
|
|
1380
1380
|
case 1:
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
logResponseHeader(this.
|
|
1384
|
-
this.
|
|
1385
|
-
suspendResult = this.
|
|
1381
|
+
this.o9_1 = 4;
|
|
1382
|
+
this.o9_1 = 3;
|
|
1383
|
+
logResponseHeader(this.k5c_1, this.i5c_1.g3l().r3i(), this.f5c_1, this.g5c_1);
|
|
1384
|
+
this.n9_1 = 2;
|
|
1385
|
+
suspendResult = this.h5c_1.c54(this);
|
|
1386
1386
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1387
1387
|
return suspendResult;
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
1390
|
continue $sm;
|
|
1391
1391
|
case 2:
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1392
|
+
this.m5c_1 = suspendResult;
|
|
1393
|
+
this.o9_1 = 14;
|
|
1394
|
+
this.n9_1 = 9;
|
|
1395
1395
|
continue $sm;
|
|
1396
1396
|
case 3:
|
|
1397
|
-
this.
|
|
1398
|
-
var tmp_0 = this.
|
|
1397
|
+
this.o9_1 = 4;
|
|
1398
|
+
var tmp_0 = this.q9_1;
|
|
1399
1399
|
if (tmp_0 instanceof Error) {
|
|
1400
|
-
this.
|
|
1400
|
+
this.n5c_1 = this.q9_1;
|
|
1401
1401
|
var tmp_1 = this;
|
|
1402
|
-
invoke$logResponseException(this.
|
|
1403
|
-
this.
|
|
1404
|
-
throw this.
|
|
1402
|
+
invoke$logResponseException(this.f5c_1, this.k5c_1, this.i5c_1.g3l().z3k(), this.n5c_1);
|
|
1403
|
+
this.l5c_1 = true;
|
|
1404
|
+
throw this.n5c_1;
|
|
1405
1405
|
} else {
|
|
1406
|
-
throw this.
|
|
1406
|
+
throw this.q9_1;
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
1409
|
case 4:
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
if (this.
|
|
1414
|
-
this.
|
|
1415
|
-
suspendResult = this.
|
|
1410
|
+
this.o9_1 = 14;
|
|
1411
|
+
this.o5c_1 = this.q9_1;
|
|
1412
|
+
this.j5c_1.b52(this.k5c_1.toString());
|
|
1413
|
+
if (this.l5c_1 || !this.f5c_1.k52_1) {
|
|
1414
|
+
this.n9_1 = 7;
|
|
1415
|
+
suspendResult = this.j5c_1.f52(this);
|
|
1416
1416
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1417
1417
|
return suspendResult;
|
|
1418
1418
|
}
|
|
1419
1419
|
continue $sm;
|
|
1420
1420
|
} else {
|
|
1421
|
-
if (this.
|
|
1422
|
-
this.
|
|
1423
|
-
suspendResult = logResponseBody(this.
|
|
1421
|
+
if (this.f5c_1.k52_1 && get_isSaved(this.i5c_1)) {
|
|
1422
|
+
this.n9_1 = 5;
|
|
1423
|
+
suspendResult = logResponseBody(this.j5c_1, this.i5c_1, this);
|
|
1424
1424
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1425
1425
|
return suspendResult;
|
|
1426
1426
|
}
|
|
1427
1427
|
continue $sm;
|
|
1428
1428
|
} else {
|
|
1429
|
-
this.
|
|
1429
|
+
this.n9_1 = 8;
|
|
1430
1430
|
continue $sm;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
case 5:
|
|
1435
|
-
this.
|
|
1436
|
-
suspendResult = this.
|
|
1435
|
+
this.n9_1 = 6;
|
|
1436
|
+
suspendResult = this.j5c_1.f52(this);
|
|
1437
1437
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1438
1438
|
return suspendResult;
|
|
1439
1439
|
}
|
|
1440
1440
|
|
|
1441
1441
|
continue $sm;
|
|
1442
1442
|
case 6:
|
|
1443
|
-
this.
|
|
1443
|
+
this.n9_1 = 8;
|
|
1444
1444
|
continue $sm;
|
|
1445
1445
|
case 7:
|
|
1446
|
-
this.
|
|
1446
|
+
this.n9_1 = 8;
|
|
1447
1447
|
continue $sm;
|
|
1448
1448
|
case 8:
|
|
1449
|
-
throw this.
|
|
1449
|
+
throw this.o5c_1;
|
|
1450
1450
|
case 9:
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
if (this.
|
|
1455
|
-
this.
|
|
1456
|
-
suspendResult = this.
|
|
1451
|
+
this.p5c_1 = this.m5c_1;
|
|
1452
|
+
this.o9_1 = 14;
|
|
1453
|
+
this.j5c_1.b52(this.k5c_1.toString());
|
|
1454
|
+
if (this.l5c_1 || !this.f5c_1.k52_1) {
|
|
1455
|
+
this.n9_1 = 12;
|
|
1456
|
+
suspendResult = this.j5c_1.f52(this);
|
|
1457
1457
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1458
1458
|
return suspendResult;
|
|
1459
1459
|
}
|
|
1460
1460
|
continue $sm;
|
|
1461
1461
|
} else {
|
|
1462
|
-
if (this.
|
|
1463
|
-
this.
|
|
1464
|
-
suspendResult = logResponseBody(this.
|
|
1462
|
+
if (this.f5c_1.k52_1 && get_isSaved(this.i5c_1)) {
|
|
1463
|
+
this.n9_1 = 10;
|
|
1464
|
+
suspendResult = logResponseBody(this.j5c_1, this.i5c_1, this);
|
|
1465
1465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1466
1466
|
return suspendResult;
|
|
1467
1467
|
}
|
|
1468
1468
|
continue $sm;
|
|
1469
1469
|
} else {
|
|
1470
|
-
this.
|
|
1470
|
+
this.n9_1 = 13;
|
|
1471
1471
|
continue $sm;
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
1475
|
case 10:
|
|
1476
|
-
this.
|
|
1477
|
-
suspendResult = this.
|
|
1476
|
+
this.n9_1 = 11;
|
|
1477
|
+
suspendResult = this.j5c_1.f52(this);
|
|
1478
1478
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1479
1479
|
return suspendResult;
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
1482
|
continue $sm;
|
|
1483
1483
|
case 11:
|
|
1484
|
-
this.
|
|
1484
|
+
this.n9_1 = 13;
|
|
1485
1485
|
continue $sm;
|
|
1486
1486
|
case 12:
|
|
1487
|
-
this.
|
|
1487
|
+
this.n9_1 = 13;
|
|
1488
1488
|
continue $sm;
|
|
1489
1489
|
case 13:
|
|
1490
1490
|
return Unit_instance;
|
|
1491
1491
|
case 14:
|
|
1492
|
-
throw this.
|
|
1492
|
+
throw this.q9_1;
|
|
1493
1493
|
}
|
|
1494
1494
|
} catch ($p) {
|
|
1495
1495
|
var e = $p;
|
|
1496
|
-
if (this.
|
|
1496
|
+
if (this.o9_1 === 14) {
|
|
1497
1497
|
throw e;
|
|
1498
1498
|
} else {
|
|
1499
|
-
this.
|
|
1500
|
-
this.
|
|
1499
|
+
this.n9_1 = this.o9_1;
|
|
1500
|
+
this.q9_1 = e;
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
1503
|
while (true);
|
|
1504
1504
|
};
|
|
1505
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1506
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1507
|
-
i.
|
|
1508
|
-
i.
|
|
1505
|
+
protoOf(Logging$lambda$slambda_3).r5c = function ($this$on, response, completion) {
|
|
1506
|
+
var i = new Logging$lambda$slambda_3(this.e5c_1, this.f5c_1, this.g5c_1, completion);
|
|
1507
|
+
i.h5c_1 = $this$on;
|
|
1508
|
+
i.i5c_1 = response;
|
|
1509
1509
|
return i;
|
|
1510
1510
|
};
|
|
1511
1511
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1512
1512
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1513
1513
|
var l = function ($this$on, response, $completion) {
|
|
1514
|
-
return i.
|
|
1514
|
+
return i.q5c($this$on, response, $completion);
|
|
1515
1515
|
};
|
|
1516
1516
|
l.$arity = 2;
|
|
1517
1517
|
return l;
|
|
1518
1518
|
}
|
|
1519
1519
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1520
|
-
this.
|
|
1521
|
-
this.
|
|
1520
|
+
this.a5d_1 = $okHttpFormat;
|
|
1521
|
+
this.b5d_1 = $level;
|
|
1522
1522
|
CoroutineImpl.call(this, resultContinuation);
|
|
1523
1523
|
}
|
|
1524
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1525
|
-
var tmp = this.
|
|
1526
|
-
tmp.
|
|
1527
|
-
tmp.
|
|
1528
|
-
return tmp.
|
|
1524
|
+
protoOf(Logging$lambda$slambda_5).i5d = function ($this$on, call, $completion) {
|
|
1525
|
+
var tmp = this.j5d($this$on, call, $completion);
|
|
1526
|
+
tmp.p9_1 = Unit_instance;
|
|
1527
|
+
tmp.q9_1 = null;
|
|
1528
|
+
return tmp.v9();
|
|
1529
1529
|
};
|
|
1530
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1530
|
+
protoOf(Logging$lambda$slambda_5).ka = function (p1, p2, $completion) {
|
|
1531
1531
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1532
|
-
return this.
|
|
1532
|
+
return this.i5d(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1533
1533
|
};
|
|
1534
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1535
|
-
var suspendResult = this.
|
|
1534
|
+
protoOf(Logging$lambda$slambda_5).v9 = function () {
|
|
1535
|
+
var suspendResult = this.p9_1;
|
|
1536
1536
|
$sm: do
|
|
1537
1537
|
try {
|
|
1538
|
-
var tmp = this.
|
|
1538
|
+
var tmp = this.n9_1;
|
|
1539
1539
|
switch (tmp) {
|
|
1540
1540
|
case 0:
|
|
1541
|
-
this.
|
|
1542
|
-
if (this.
|
|
1541
|
+
this.o9_1 = 6;
|
|
1542
|
+
if (this.a5d_1)
|
|
1543
1543
|
return Unit_instance;
|
|
1544
|
-
if (this.
|
|
1544
|
+
if (this.b5d_1.equals(LogLevel_NONE_getInstance()) || this.d5d_1.a3l().i2l(get_DisableLogging())) {
|
|
1545
1545
|
return Unit_instance;
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
|
-
this.
|
|
1549
|
-
this.
|
|
1550
|
-
suspendResult = this.
|
|
1548
|
+
this.o9_1 = 2;
|
|
1549
|
+
this.n9_1 = 1;
|
|
1550
|
+
suspendResult = this.c5d_1.q54(this);
|
|
1551
1551
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1552
1552
|
return suspendResult;
|
|
1553
1553
|
}
|
|
1554
1554
|
|
|
1555
1555
|
continue $sm;
|
|
1556
1556
|
case 1:
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1557
|
+
this.e5d_1 = suspendResult;
|
|
1558
|
+
this.o9_1 = 6;
|
|
1559
|
+
this.n9_1 = 5;
|
|
1560
1560
|
continue $sm;
|
|
1561
1561
|
case 2:
|
|
1562
|
-
this.
|
|
1563
|
-
var tmp_0 = this.
|
|
1562
|
+
this.o9_1 = 6;
|
|
1563
|
+
var tmp_0 = this.q9_1;
|
|
1564
1564
|
if (tmp_0 instanceof Error) {
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
invoke$logResponseException(this.
|
|
1569
|
-
this.
|
|
1570
|
-
suspendResult = this.
|
|
1565
|
+
this.f5d_1 = this.q9_1;
|
|
1566
|
+
this.g5d_1 = StringBuilder_init_$Create$();
|
|
1567
|
+
this.h5d_1 = this.d5d_1.a3l().g2l(get_ClientCallLogger());
|
|
1568
|
+
invoke$logResponseException(this.b5d_1, this.g5d_1, this.d5d_1.z3k(), this.f5d_1);
|
|
1569
|
+
this.n9_1 = 3;
|
|
1570
|
+
suspendResult = this.h5d_1.c52(this.g5d_1.toString(), this);
|
|
1571
1571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1572
1572
|
return suspendResult;
|
|
1573
1573
|
}
|
|
1574
1574
|
continue $sm;
|
|
1575
1575
|
} else {
|
|
1576
|
-
throw this.
|
|
1576
|
+
throw this.q9_1;
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
1579
|
case 3:
|
|
1580
|
-
this.
|
|
1581
|
-
suspendResult = this.
|
|
1580
|
+
this.n9_1 = 4;
|
|
1581
|
+
suspendResult = this.h5d_1.f52(this);
|
|
1582
1582
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1583
1583
|
return suspendResult;
|
|
1584
1584
|
}
|
|
@@ -1586,76 +1586,76 @@
|
|
|
1586
1586
|
continue $sm;
|
|
1587
1587
|
case 4:
|
|
1588
1588
|
var tmp_1 = this;
|
|
1589
|
-
throw this.
|
|
1589
|
+
throw this.f5d_1;
|
|
1590
1590
|
case 5:
|
|
1591
|
-
this.
|
|
1591
|
+
this.o9_1 = 6;
|
|
1592
1592
|
return Unit_instance;
|
|
1593
1593
|
case 6:
|
|
1594
|
-
throw this.
|
|
1594
|
+
throw this.q9_1;
|
|
1595
1595
|
}
|
|
1596
1596
|
} catch ($p) {
|
|
1597
1597
|
var e = $p;
|
|
1598
|
-
if (this.
|
|
1598
|
+
if (this.o9_1 === 6) {
|
|
1599
1599
|
throw e;
|
|
1600
1600
|
} else {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1601
|
+
this.n9_1 = this.o9_1;
|
|
1602
|
+
this.q9_1 = e;
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
1605
|
while (true);
|
|
1606
1606
|
};
|
|
1607
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1608
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1609
|
-
i.
|
|
1610
|
-
i.
|
|
1607
|
+
protoOf(Logging$lambda$slambda_5).j5d = function ($this$on, call, completion) {
|
|
1608
|
+
var i = new Logging$lambda$slambda_5(this.a5d_1, this.b5d_1, completion);
|
|
1609
|
+
i.c5d_1 = $this$on;
|
|
1610
|
+
i.d5d_1 = call;
|
|
1611
1611
|
return i;
|
|
1612
1612
|
};
|
|
1613
1613
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1614
1614
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1615
1615
|
var l = function ($this$on, call, $completion) {
|
|
1616
|
-
return i.
|
|
1616
|
+
return i.i5d($this$on, call, $completion);
|
|
1617
1617
|
};
|
|
1618
1618
|
l.$arity = 2;
|
|
1619
1619
|
return l;
|
|
1620
1620
|
}
|
|
1621
1621
|
function Logging$lambda$lambda$lambda(it) {
|
|
1622
1622
|
_init_properties_Logging_kt__66pui5();
|
|
1623
|
-
return !get_isSaved(it.
|
|
1623
|
+
return !get_isSaved(it.r3i());
|
|
1624
1624
|
}
|
|
1625
1625
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1626
|
-
this.
|
|
1626
|
+
this.s5d_1 = $level;
|
|
1627
1627
|
CoroutineImpl.call(this, resultContinuation);
|
|
1628
1628
|
}
|
|
1629
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1630
|
-
var tmp = this.
|
|
1631
|
-
tmp.
|
|
1632
|
-
tmp.
|
|
1633
|
-
return tmp.
|
|
1629
|
+
protoOf(Logging$lambda$lambda$slambda).x3u = function (response, $completion) {
|
|
1630
|
+
var tmp = this.g3t(response, $completion);
|
|
1631
|
+
tmp.p9_1 = Unit_instance;
|
|
1632
|
+
tmp.q9_1 = null;
|
|
1633
|
+
return tmp.v9();
|
|
1634
1634
|
};
|
|
1635
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1636
|
-
return this.
|
|
1635
|
+
protoOf(Logging$lambda$lambda$slambda).ja = function (p1, $completion) {
|
|
1636
|
+
return this.x3u(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1637
1637
|
};
|
|
1638
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1639
|
-
var suspendResult = this.
|
|
1638
|
+
protoOf(Logging$lambda$lambda$slambda).v9 = function () {
|
|
1639
|
+
var suspendResult = this.p9_1;
|
|
1640
1640
|
$sm: do
|
|
1641
1641
|
try {
|
|
1642
|
-
var tmp = this.
|
|
1642
|
+
var tmp = this.n9_1;
|
|
1643
1643
|
switch (tmp) {
|
|
1644
1644
|
case 0:
|
|
1645
|
-
this.
|
|
1646
|
-
if (this.
|
|
1645
|
+
this.o9_1 = 3;
|
|
1646
|
+
if (this.s5d_1.equals(LogLevel_NONE_getInstance()) || this.t5d_1.g3l().a3l().i2l(get_DisableLogging()))
|
|
1647
1647
|
return Unit_instance;
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
suspendResult = logResponseBody(this.
|
|
1648
|
+
this.u5d_1 = this.t5d_1.g3l().a3l().g2l(get_ClientCallLogger());
|
|
1649
|
+
this.n9_1 = 1;
|
|
1650
|
+
suspendResult = logResponseBody(this.u5d_1, this.t5d_1, this);
|
|
1651
1651
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1652
1652
|
return suspendResult;
|
|
1653
1653
|
}
|
|
1654
1654
|
|
|
1655
1655
|
continue $sm;
|
|
1656
1656
|
case 1:
|
|
1657
|
-
this.
|
|
1658
|
-
suspendResult = this.
|
|
1657
|
+
this.n9_1 = 2;
|
|
1658
|
+
suspendResult = this.u5d_1.f52(this);
|
|
1659
1659
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1660
1660
|
return suspendResult;
|
|
1661
1661
|
}
|
|
@@ -1664,112 +1664,112 @@
|
|
|
1664
1664
|
case 2:
|
|
1665
1665
|
return Unit_instance;
|
|
1666
1666
|
case 3:
|
|
1667
|
-
throw this.
|
|
1667
|
+
throw this.q9_1;
|
|
1668
1668
|
}
|
|
1669
1669
|
} catch ($p) {
|
|
1670
1670
|
var e = $p;
|
|
1671
|
-
if (this.
|
|
1671
|
+
if (this.o9_1 === 3) {
|
|
1672
1672
|
throw e;
|
|
1673
1673
|
} else {
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1674
|
+
this.n9_1 = this.o9_1;
|
|
1675
|
+
this.q9_1 = e;
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
while (true);
|
|
1679
1679
|
};
|
|
1680
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1681
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
1682
|
-
i.
|
|
1680
|
+
protoOf(Logging$lambda$lambda$slambda).g3t = function (response, completion) {
|
|
1681
|
+
var i = new Logging$lambda$lambda$slambda(this.s5d_1, completion);
|
|
1682
|
+
i.t5d_1 = response;
|
|
1683
1683
|
return i;
|
|
1684
1684
|
};
|
|
1685
1685
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1686
1686
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1687
1687
|
var l = function (response, $completion) {
|
|
1688
|
-
return i.
|
|
1688
|
+
return i.x3u(response, $completion);
|
|
1689
1689
|
};
|
|
1690
1690
|
l.$arity = 1;
|
|
1691
1691
|
return l;
|
|
1692
1692
|
}
|
|
1693
1693
|
function Logging$lambda$lambda($level) {
|
|
1694
1694
|
return function ($this$prepare) {
|
|
1695
|
-
$this$prepare.
|
|
1696
|
-
$this$prepare.
|
|
1695
|
+
$this$prepare.y4e(Logging$lambda$lambda$lambda);
|
|
1696
|
+
$this$prepare.x4e(Logging$lambda$lambda$slambda_0($level, null));
|
|
1697
1697
|
return Unit_instance;
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
1700
|
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1701
|
+
this.d5e_1 = $channel;
|
|
1702
|
+
this.e5e_1 = $firstChunk;
|
|
1703
|
+
this.f5e_1 = $firstReadSize;
|
|
1704
|
+
this.g5e_1 = $body;
|
|
1705
1705
|
CoroutineImpl.call(this, resultContinuation);
|
|
1706
1706
|
}
|
|
1707
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1708
|
-
var tmp = this.
|
|
1709
|
-
tmp.
|
|
1710
|
-
tmp.
|
|
1711
|
-
return tmp.
|
|
1707
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).j5e = function ($this$async, $completion) {
|
|
1708
|
+
var tmp = this.r1y($this$async, $completion);
|
|
1709
|
+
tmp.p9_1 = Unit_instance;
|
|
1710
|
+
tmp.q9_1 = null;
|
|
1711
|
+
return tmp.v9();
|
|
1712
1712
|
};
|
|
1713
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1714
|
-
return this.
|
|
1713
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).ja = function (p1, $completion) {
|
|
1714
|
+
return this.j5e((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1715
1715
|
};
|
|
1716
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1717
|
-
var suspendResult = this.
|
|
1716
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).v9 = function () {
|
|
1717
|
+
var suspendResult = this.p9_1;
|
|
1718
1718
|
$sm: do
|
|
1719
1719
|
try {
|
|
1720
|
-
var tmp = this.
|
|
1720
|
+
var tmp = this.n9_1;
|
|
1721
1721
|
switch (tmp) {
|
|
1722
1722
|
case 0:
|
|
1723
|
-
this.
|
|
1724
|
-
this.
|
|
1725
|
-
suspendResult = writeFully(this.
|
|
1723
|
+
this.o9_1 = 4;
|
|
1724
|
+
this.n9_1 = 1;
|
|
1725
|
+
suspendResult = writeFully(this.d5e_1, this.e5e_1, 0, this.f5e_1, this);
|
|
1726
1726
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1727
1727
|
return suspendResult;
|
|
1728
1728
|
}
|
|
1729
1729
|
|
|
1730
1730
|
continue $sm;
|
|
1731
1731
|
case 1:
|
|
1732
|
-
this.
|
|
1733
|
-
suspendResult = copyTo(this.
|
|
1732
|
+
this.n9_1 = 2;
|
|
1733
|
+
suspendResult = copyTo(this.g5e_1, this.d5e_1, this);
|
|
1734
1734
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1735
1735
|
return suspendResult;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
1738
|
continue $sm;
|
|
1739
1739
|
case 2:
|
|
1740
|
-
this.
|
|
1741
|
-
this.
|
|
1742
|
-
suspendResult = this.
|
|
1740
|
+
this.i5e_1 = suspendResult;
|
|
1741
|
+
this.n9_1 = 3;
|
|
1742
|
+
suspendResult = this.d5e_1.u1o(this);
|
|
1743
1743
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1744
1744
|
return suspendResult;
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
continue $sm;
|
|
1748
1748
|
case 3:
|
|
1749
|
-
return this.
|
|
1749
|
+
return this.i5e_1;
|
|
1750
1750
|
case 4:
|
|
1751
|
-
throw this.
|
|
1751
|
+
throw this.q9_1;
|
|
1752
1752
|
}
|
|
1753
1753
|
} catch ($p) {
|
|
1754
1754
|
var e = $p;
|
|
1755
|
-
if (this.
|
|
1755
|
+
if (this.o9_1 === 4) {
|
|
1756
1756
|
throw e;
|
|
1757
1757
|
} else {
|
|
1758
|
-
this.
|
|
1759
|
-
this.
|
|
1758
|
+
this.n9_1 = this.o9_1;
|
|
1759
|
+
this.q9_1 = e;
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
while (true);
|
|
1763
1763
|
};
|
|
1764
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1765
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.
|
|
1766
|
-
i.
|
|
1764
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).r1y = function ($this$async, completion) {
|
|
1765
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.d5e_1, this.e5e_1, this.f5e_1, this.g5e_1, completion);
|
|
1766
|
+
i.h5e_1 = $this$async;
|
|
1767
1767
|
return i;
|
|
1768
1768
|
};
|
|
1769
1769
|
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1770
1770
|
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
1771
1771
|
var l = function ($this$async, $completion) {
|
|
1772
|
-
return i.
|
|
1772
|
+
return i.j5e($this$async, $completion);
|
|
1773
1773
|
};
|
|
1774
1774
|
l.$arity = 1;
|
|
1775
1775
|
return l;
|
|
@@ -1779,67 +1779,67 @@
|
|
|
1779
1779
|
return it;
|
|
1780
1780
|
}
|
|
1781
1781
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1782
|
+
this.s5e_1 = $content;
|
|
1783
|
+
this.t5e_1 = $channel;
|
|
1784
1784
|
CoroutineImpl.call(this, resultContinuation);
|
|
1785
1785
|
}
|
|
1786
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1787
|
-
var tmp = this.
|
|
1788
|
-
tmp.
|
|
1789
|
-
tmp.
|
|
1790
|
-
return tmp.
|
|
1786
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).q1y = function ($this$launch, $completion) {
|
|
1787
|
+
var tmp = this.r1y($this$launch, $completion);
|
|
1788
|
+
tmp.p9_1 = Unit_instance;
|
|
1789
|
+
tmp.q9_1 = null;
|
|
1790
|
+
return tmp.v9();
|
|
1791
1791
|
};
|
|
1792
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1793
|
-
return this.
|
|
1792
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).ja = function (p1, $completion) {
|
|
1793
|
+
return this.q1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1794
1794
|
};
|
|
1795
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1796
|
-
var suspendResult = this.
|
|
1795
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).v9 = function () {
|
|
1796
|
+
var suspendResult = this.p9_1;
|
|
1797
1797
|
$sm: do
|
|
1798
1798
|
try {
|
|
1799
|
-
var tmp = this.
|
|
1799
|
+
var tmp = this.n9_1;
|
|
1800
1800
|
switch (tmp) {
|
|
1801
1801
|
case 0:
|
|
1802
|
-
this.
|
|
1803
|
-
this.
|
|
1804
|
-
suspendResult = this.
|
|
1802
|
+
this.o9_1 = 2;
|
|
1803
|
+
this.n9_1 = 1;
|
|
1804
|
+
suspendResult = this.s5e_1.c37(this.t5e_1, this);
|
|
1805
1805
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1806
1806
|
return suspendResult;
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
1809
1809
|
continue $sm;
|
|
1810
1810
|
case 1:
|
|
1811
|
-
this.
|
|
1811
|
+
this.t5e_1.u4();
|
|
1812
1812
|
return Unit_instance;
|
|
1813
1813
|
case 2:
|
|
1814
|
-
throw this.
|
|
1814
|
+
throw this.q9_1;
|
|
1815
1815
|
}
|
|
1816
1816
|
} catch ($p) {
|
|
1817
1817
|
var e = $p;
|
|
1818
|
-
if (this.
|
|
1818
|
+
if (this.o9_1 === 2) {
|
|
1819
1819
|
throw e;
|
|
1820
1820
|
} else {
|
|
1821
|
-
this.
|
|
1822
|
-
this.
|
|
1821
|
+
this.n9_1 = this.o9_1;
|
|
1822
|
+
this.q9_1 = e;
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
1825
|
while (true);
|
|
1826
1826
|
};
|
|
1827
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1828
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1829
|
-
i.
|
|
1827
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).r1y = function ($this$launch, completion) {
|
|
1828
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.s5e_1, this.t5e_1, completion);
|
|
1829
|
+
i.u5e_1 = $this$launch;
|
|
1830
1830
|
return i;
|
|
1831
1831
|
};
|
|
1832
1832
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1833
1833
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1834
1834
|
var l = function ($this$launch, $completion) {
|
|
1835
|
-
return i.
|
|
1835
|
+
return i.q1y($this$launch, $completion);
|
|
1836
1836
|
};
|
|
1837
1837
|
l.$arity = 1;
|
|
1838
1838
|
return l;
|
|
1839
1839
|
}
|
|
1840
1840
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1841
1841
|
_init_properties_Logging_kt__66pui5();
|
|
1842
|
-
return GZipEncoder_getInstance().
|
|
1842
|
+
return GZipEncoder_getInstance().a2p(channel);
|
|
1843
1843
|
}
|
|
1844
1844
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1845
1845
|
return function ($this$replaceResponse) {
|
|
@@ -1847,42 +1847,42 @@
|
|
|
1847
1847
|
};
|
|
1848
1848
|
}
|
|
1849
1849
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1850
|
-
this.
|
|
1851
|
-
this.
|
|
1852
|
-
this.
|
|
1853
|
-
this.
|
|
1850
|
+
this.d5f_1 = $channel;
|
|
1851
|
+
this.e5f_1 = $charset;
|
|
1852
|
+
this.f5f_1 = $requestLog;
|
|
1853
|
+
this.g5f_1 = $logger;
|
|
1854
1854
|
CoroutineImpl.call(this, resultContinuation);
|
|
1855
1855
|
}
|
|
1856
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1857
|
-
var tmp = this.
|
|
1858
|
-
tmp.
|
|
1859
|
-
tmp.
|
|
1860
|
-
return tmp.
|
|
1856
|
+
protoOf(Logging$lambda$logRequestBody$slambda).q1y = function ($this$launch, $completion) {
|
|
1857
|
+
var tmp = this.r1y($this$launch, $completion);
|
|
1858
|
+
tmp.p9_1 = Unit_instance;
|
|
1859
|
+
tmp.q9_1 = null;
|
|
1860
|
+
return tmp.v9();
|
|
1861
1861
|
};
|
|
1862
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1863
|
-
return this.
|
|
1862
|
+
protoOf(Logging$lambda$logRequestBody$slambda).ja = function (p1, $completion) {
|
|
1863
|
+
return this.q1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1864
1864
|
};
|
|
1865
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1866
|
-
var suspendResult = this.
|
|
1865
|
+
protoOf(Logging$lambda$logRequestBody$slambda).v9 = function () {
|
|
1866
|
+
var suspendResult = this.p9_1;
|
|
1867
1867
|
$sm: do
|
|
1868
1868
|
try {
|
|
1869
|
-
var tmp = this.
|
|
1869
|
+
var tmp = this.n9_1;
|
|
1870
1870
|
switch (tmp) {
|
|
1871
1871
|
case 0:
|
|
1872
|
-
this.
|
|
1873
|
-
this.
|
|
1872
|
+
this.o9_1 = 7;
|
|
1873
|
+
this.n9_1 = 1;
|
|
1874
1874
|
continue $sm;
|
|
1875
1875
|
case 1:
|
|
1876
|
-
this.
|
|
1876
|
+
this.o9_1 = 6;
|
|
1877
1877
|
var tmp_0 = this;
|
|
1878
|
-
tmp_0.
|
|
1878
|
+
tmp_0.j5f_1 = this.d5f_1;
|
|
1879
1879
|
var tmp_1 = this;
|
|
1880
|
-
tmp_1.
|
|
1881
|
-
this.
|
|
1882
|
-
this.
|
|
1883
|
-
this.
|
|
1884
|
-
this.
|
|
1885
|
-
suspendResult = readRemaining(this.
|
|
1880
|
+
tmp_1.k5f_1 = this.e5f_1;
|
|
1881
|
+
this.l5f_1 = this.j5f_1;
|
|
1882
|
+
this.m5f_1 = this.k5f_1;
|
|
1883
|
+
this.o9_1 = 3;
|
|
1884
|
+
this.n9_1 = 2;
|
|
1885
|
+
suspendResult = readRemaining(this.l5f_1, this);
|
|
1886
1886
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1887
1887
|
return suspendResult;
|
|
1888
1888
|
}
|
|
@@ -1890,132 +1890,132 @@
|
|
|
1890
1890
|
continue $sm;
|
|
1891
1891
|
case 2:
|
|
1892
1892
|
var ARGUMENT = suspendResult;
|
|
1893
|
-
this.
|
|
1894
|
-
this.
|
|
1895
|
-
this.
|
|
1893
|
+
this.n5f_1 = readText(ARGUMENT, this.m5f_1);
|
|
1894
|
+
this.o9_1 = 6;
|
|
1895
|
+
this.n9_1 = 4;
|
|
1896
1896
|
continue $sm;
|
|
1897
1897
|
case 3:
|
|
1898
|
-
this.
|
|
1899
|
-
var tmp_2 = this.
|
|
1898
|
+
this.o9_1 = 6;
|
|
1899
|
+
var tmp_2 = this.q9_1;
|
|
1900
1900
|
if (tmp_2 instanceof Error) {
|
|
1901
|
-
var cause = this.
|
|
1901
|
+
var cause = this.q9_1;
|
|
1902
1902
|
var tmp_3 = this;
|
|
1903
|
-
tmp_3.
|
|
1904
|
-
this.
|
|
1903
|
+
tmp_3.n5f_1 = null;
|
|
1904
|
+
this.n9_1 = 4;
|
|
1905
1905
|
continue $sm;
|
|
1906
1906
|
} else {
|
|
1907
|
-
throw this.
|
|
1907
|
+
throw this.q9_1;
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
1910
|
case 4:
|
|
1911
|
-
this.
|
|
1912
|
-
var tmp0_elvis_lhs = this.
|
|
1911
|
+
this.o9_1 = 6;
|
|
1912
|
+
var tmp0_elvis_lhs = this.n5f_1;
|
|
1913
1913
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1914
|
-
var tmp0 = this.
|
|
1914
|
+
var tmp0 = this.f5f_1;
|
|
1915
1915
|
var value = 'BODY START';
|
|
1916
|
-
tmp0.
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1916
|
+
tmp0.y8(value).z8(_Char___init__impl__6a9atx(10));
|
|
1917
|
+
this.f5f_1.y8(text).z8(_Char___init__impl__6a9atx(10));
|
|
1918
|
+
this.i5f_1 = this.f5f_1.y8('BODY END');
|
|
1919
|
+
this.o9_1 = 7;
|
|
1920
|
+
this.n9_1 = 5;
|
|
1921
1921
|
continue $sm;
|
|
1922
1922
|
case 5:
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1923
|
+
this.i5f_1;
|
|
1924
|
+
this.o9_1 = 7;
|
|
1925
|
+
this.g5f_1.a52(this.f5f_1.toString());
|
|
1926
|
+
this.g5f_1.e52();
|
|
1927
1927
|
return Unit_instance;
|
|
1928
1928
|
case 6:
|
|
1929
|
-
this.
|
|
1930
|
-
var t = this.
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1929
|
+
this.o9_1 = 7;
|
|
1930
|
+
var t = this.q9_1;
|
|
1931
|
+
this.g5f_1.a52(this.f5f_1.toString());
|
|
1932
|
+
this.g5f_1.e52();
|
|
1933
1933
|
throw t;
|
|
1934
1934
|
case 7:
|
|
1935
|
-
throw this.
|
|
1935
|
+
throw this.q9_1;
|
|
1936
1936
|
}
|
|
1937
1937
|
} catch ($p) {
|
|
1938
1938
|
var e = $p;
|
|
1939
|
-
if (this.
|
|
1939
|
+
if (this.o9_1 === 7) {
|
|
1940
1940
|
throw e;
|
|
1941
1941
|
} else {
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1942
|
+
this.n9_1 = this.o9_1;
|
|
1943
|
+
this.q9_1 = e;
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
1946
|
while (true);
|
|
1947
1947
|
};
|
|
1948
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1949
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1950
|
-
i.
|
|
1948
|
+
protoOf(Logging$lambda$logRequestBody$slambda).r1y = function ($this$launch, completion) {
|
|
1949
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.d5f_1, this.e5f_1, this.f5f_1, this.g5f_1, completion);
|
|
1950
|
+
i.h5f_1 = $this$launch;
|
|
1951
1951
|
return i;
|
|
1952
1952
|
};
|
|
1953
1953
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1954
1954
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1955
1955
|
var l = function ($this$launch, $completion) {
|
|
1956
|
-
return i.
|
|
1956
|
+
return i.q1y($this$launch, $completion);
|
|
1957
1957
|
};
|
|
1958
1958
|
l.$arity = 1;
|
|
1959
1959
|
return l;
|
|
1960
1960
|
}
|
|
1961
1961
|
function $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1962
1962
|
CoroutineImpl.call(this, resultContinuation);
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1968
|
-
}
|
|
1969
|
-
protoOf($invoke$detectIfBinaryCOROUTINE$).
|
|
1970
|
-
var suspendResult = this.
|
|
1963
|
+
this.l55_1 = $this_createClientPlugin;
|
|
1964
|
+
this.m55_1 = body;
|
|
1965
|
+
this.n55_1 = contentLength;
|
|
1966
|
+
this.o55_1 = contentType;
|
|
1967
|
+
this.p55_1 = headers;
|
|
1968
|
+
}
|
|
1969
|
+
protoOf($invoke$detectIfBinaryCOROUTINE$).v9 = function () {
|
|
1970
|
+
var suspendResult = this.p9_1;
|
|
1971
1971
|
$sm: do
|
|
1972
1972
|
try {
|
|
1973
|
-
var tmp = this.
|
|
1973
|
+
var tmp = this.n9_1;
|
|
1974
1974
|
switch (tmp) {
|
|
1975
1975
|
case 0:
|
|
1976
|
-
this.
|
|
1977
|
-
if (this.
|
|
1978
|
-
return new Triple(true, this.
|
|
1976
|
+
this.o9_1 = 4;
|
|
1977
|
+
if (this.p55_1.q2p(HttpHeaders_getInstance().j2x_1)) {
|
|
1978
|
+
return new Triple(true, this.n55_1, this.m55_1);
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
1981
|
var tmp_0 = this;
|
|
1982
1982
|
var tmp_1;
|
|
1983
|
-
if (!(this.
|
|
1984
|
-
var tmp0_elvis_lhs = charset(this.
|
|
1985
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
1983
|
+
if (!(this.o55_1 == null)) {
|
|
1984
|
+
var tmp0_elvis_lhs = charset(this.o55_1);
|
|
1985
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().l1z_1 : tmp0_elvis_lhs;
|
|
1986
1986
|
} else {
|
|
1987
|
-
tmp_1 = Charsets_getInstance().
|
|
1987
|
+
tmp_1 = Charsets_getInstance().l1z_1;
|
|
1988
1988
|
}
|
|
1989
1989
|
|
|
1990
|
-
tmp_0.
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1993
|
-
this.
|
|
1994
|
-
suspendResult = readAvailable(this.
|
|
1990
|
+
tmp_0.q55_1 = tmp_1;
|
|
1991
|
+
this.r55_1 = false;
|
|
1992
|
+
this.s55_1 = new Int8Array(1024);
|
|
1993
|
+
this.n9_1 = 1;
|
|
1994
|
+
suspendResult = readAvailable(this.m55_1, this.s55_1, VOID, VOID, this);
|
|
1995
1995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1996
1996
|
return suspendResult;
|
|
1997
1997
|
}
|
|
1998
1998
|
|
|
1999
1999
|
continue $sm;
|
|
2000
2000
|
case 1:
|
|
2001
|
-
this.
|
|
2002
|
-
if (this.
|
|
2003
|
-
return new Triple(false, new Long(0, 0), this.
|
|
2001
|
+
this.t55_1 = suspendResult;
|
|
2002
|
+
if (this.t55_1 < 1) {
|
|
2003
|
+
return new Triple(false, new Long(0, 0), this.m55_1);
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
2006
|
var tmp_2 = this;
|
|
2007
2007
|
var this_0 = new Buffer();
|
|
2008
|
-
writeFully_0(this_0, this.
|
|
2009
|
-
tmp_2.
|
|
2008
|
+
writeFully_0(this_0, this.s55_1, 0, this.t55_1);
|
|
2009
|
+
tmp_2.u55_1 = this_0;
|
|
2010
2010
|
var tmp_3 = this;
|
|
2011
2011
|
var tmp_4;
|
|
2012
2012
|
try {
|
|
2013
|
-
tmp_4 = decode(this.
|
|
2013
|
+
tmp_4 = decode(this.q55_1.p1z(), this.u55_1);
|
|
2014
2014
|
} catch ($p) {
|
|
2015
2015
|
var tmp_5;
|
|
2016
2016
|
if ($p instanceof MalformedInputException) {
|
|
2017
2017
|
var _unused_var__etf5q3 = $p;
|
|
2018
|
-
this.
|
|
2018
|
+
this.r55_1 = true;
|
|
2019
2019
|
tmp_5 = '';
|
|
2020
2020
|
} else {
|
|
2021
2021
|
throw $p;
|
|
@@ -2023,10 +2023,10 @@
|
|
|
2023
2023
|
tmp_4 = tmp_5;
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
-
tmp_3.
|
|
2027
|
-
if (!this.
|
|
2026
|
+
tmp_3.v55_1 = tmp_4;
|
|
2027
|
+
if (!this.r55_1) {
|
|
2028
2028
|
var lastCharIndex = -1;
|
|
2029
|
-
var indexedObject = this.
|
|
2029
|
+
var indexedObject = this.v55_1;
|
|
2030
2030
|
var inductionVariable = 0;
|
|
2031
2031
|
var last = indexedObject.length;
|
|
2032
2032
|
while (inductionVariable < last) {
|
|
@@ -2034,7 +2034,7 @@
|
|
|
2034
2034
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2035
2035
|
lastCharIndex = lastCharIndex + 1 | 0;
|
|
2036
2036
|
}
|
|
2037
|
-
var indexedObject_0 = this.
|
|
2037
|
+
var indexedObject_0 = this.v55_1;
|
|
2038
2038
|
var inductionVariable_0 = 0;
|
|
2039
2039
|
var last_0 = indexedObject_0.length;
|
|
2040
2040
|
$l$loop: while (inductionVariable_0 < last_0) {
|
|
@@ -2042,89 +2042,89 @@
|
|
|
2042
2042
|
var ch_0 = charCodeAt(indexedObject_0, inductionVariable_0);
|
|
2043
2043
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2044
2044
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2045
|
-
this.
|
|
2045
|
+
this.r55_1 = true;
|
|
2046
2046
|
break $l$loop;
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
|
-
if (!this.
|
|
2052
|
-
this.
|
|
2053
|
-
this.
|
|
2054
|
-
suspendResult = async(this.
|
|
2051
|
+
if (!this.r55_1) {
|
|
2052
|
+
this.w55_1 = new ByteChannel();
|
|
2053
|
+
this.n9_1 = 3;
|
|
2054
|
+
suspendResult = async(this.l55_1.f3s_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.w55_1, this.s55_1, this.t55_1, this.m55_1, null)).lv(this);
|
|
2055
2055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2056
2056
|
return suspendResult;
|
|
2057
2057
|
}
|
|
2058
2058
|
continue $sm;
|
|
2059
2059
|
} else {
|
|
2060
|
-
this.
|
|
2060
|
+
this.n9_1 = 2;
|
|
2061
2061
|
continue $sm;
|
|
2062
2062
|
}
|
|
2063
2063
|
|
|
2064
2064
|
case 2:
|
|
2065
|
-
return new Triple(this.
|
|
2065
|
+
return new Triple(this.r55_1, this.n55_1, this.m55_1);
|
|
2066
2066
|
case 3:
|
|
2067
2067
|
var copied = suspendResult;
|
|
2068
|
-
var tmp_6 = this.
|
|
2069
|
-
var other = this.
|
|
2070
|
-
return new Triple(tmp_6, copied.
|
|
2068
|
+
var tmp_6 = this.r55_1;
|
|
2069
|
+
var other = this.t55_1;
|
|
2070
|
+
return new Triple(tmp_6, copied.c3(toLong(other)), this.w55_1);
|
|
2071
2071
|
case 4:
|
|
2072
|
-
throw this.
|
|
2072
|
+
throw this.q9_1;
|
|
2073
2073
|
}
|
|
2074
2074
|
} catch ($p) {
|
|
2075
2075
|
var e = $p;
|
|
2076
|
-
if (this.
|
|
2076
|
+
if (this.o9_1 === 4) {
|
|
2077
2077
|
throw e;
|
|
2078
2078
|
} else {
|
|
2079
|
-
this.
|
|
2080
|
-
this.
|
|
2079
|
+
this.n9_1 = this.o9_1;
|
|
2080
|
+
this.q9_1 = e;
|
|
2081
2081
|
}
|
|
2082
2082
|
}
|
|
2083
2083
|
while (true);
|
|
2084
2084
|
};
|
|
2085
2085
|
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2086
2086
|
CoroutineImpl.call(this, resultContinuation);
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2093
|
-
this.
|
|
2094
|
-
}
|
|
2095
|
-
protoOf($invoke$logRequestBodyCOROUTINE$).
|
|
2096
|
-
var suspendResult = this.
|
|
2087
|
+
this.f56_1 = $this_createClientPlugin;
|
|
2088
|
+
this.g56_1 = content;
|
|
2089
|
+
this.h56_1 = contentLength;
|
|
2090
|
+
this.i56_1 = headers;
|
|
2091
|
+
this.j56_1 = method;
|
|
2092
|
+
this.k56_1 = logLines;
|
|
2093
|
+
this.l56_1 = body;
|
|
2094
|
+
}
|
|
2095
|
+
protoOf($invoke$logRequestBodyCOROUTINE$).v9 = function () {
|
|
2096
|
+
var suspendResult = this.p9_1;
|
|
2097
2097
|
$sm: do
|
|
2098
2098
|
try {
|
|
2099
|
-
var tmp = this.
|
|
2099
|
+
var tmp = this.n9_1;
|
|
2100
2100
|
switch (tmp) {
|
|
2101
2101
|
case 0:
|
|
2102
|
-
this.
|
|
2103
|
-
this.
|
|
2104
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2102
|
+
this.o9_1 = 4;
|
|
2103
|
+
this.n9_1 = 1;
|
|
2104
|
+
suspendResult = invoke$detectIfBinary(this.f56_1, this.l56_1, this.h56_1, this.g56_1.u36(), this.i56_1, this);
|
|
2105
2105
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2106
2106
|
return suspendResult;
|
|
2107
2107
|
}
|
|
2108
2108
|
|
|
2109
2109
|
continue $sm;
|
|
2110
2110
|
case 1:
|
|
2111
|
-
this.
|
|
2112
|
-
this.
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2115
|
-
if (!this.
|
|
2116
|
-
this.
|
|
2111
|
+
this.m56_1 = suspendResult;
|
|
2112
|
+
this.n56_1 = this.m56_1.dh();
|
|
2113
|
+
this.o56_1 = this.m56_1.eh();
|
|
2114
|
+
this.p56_1 = this.m56_1.an();
|
|
2115
|
+
if (!this.n56_1) {
|
|
2116
|
+
this.r56_1 = this.g56_1.u36();
|
|
2117
2117
|
var tmp_0 = this;
|
|
2118
2118
|
var tmp_1;
|
|
2119
|
-
if (!(this.
|
|
2120
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2121
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2119
|
+
if (!(this.r56_1 == null)) {
|
|
2120
|
+
var tmp0_elvis_lhs = charset(this.r56_1);
|
|
2121
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().l1z_1 : tmp0_elvis_lhs;
|
|
2122
2122
|
} else {
|
|
2123
|
-
tmp_1 = Charsets_getInstance().
|
|
2123
|
+
tmp_1 = Charsets_getInstance().l1z_1;
|
|
2124
2124
|
}
|
|
2125
|
-
tmp_0.
|
|
2126
|
-
this.
|
|
2127
|
-
suspendResult = readRemaining(this.
|
|
2125
|
+
tmp_0.s56_1 = tmp_1;
|
|
2126
|
+
this.n9_1 = 2;
|
|
2127
|
+
suspendResult = readRemaining(this.p56_1, this);
|
|
2128
2128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2129
2129
|
return suspendResult;
|
|
2130
2130
|
}
|
|
@@ -2132,117 +2132,117 @@
|
|
|
2132
2132
|
} else {
|
|
2133
2133
|
var tmp_2 = this;
|
|
2134
2134
|
var type = 'binary';
|
|
2135
|
-
if (this.
|
|
2135
|
+
if (this.i56_1.q2p(HttpHeaders_getInstance().j2x_1)) {
|
|
2136
2136
|
type = 'encoded';
|
|
2137
2137
|
}
|
|
2138
2138
|
var tmp_3;
|
|
2139
|
-
if (!(this.
|
|
2140
|
-
tmp_3 = this.
|
|
2139
|
+
if (!(this.o56_1 == null)) {
|
|
2140
|
+
tmp_3 = this.k56_1.k('--> END ' + this.j56_1.i31_1 + ' (' + type + ' ' + toString_0(this.o56_1) + '-byte body omitted)');
|
|
2141
2141
|
} else {
|
|
2142
|
-
tmp_3 = this.
|
|
2142
|
+
tmp_3 = this.k56_1.k('--> END ' + this.j56_1.i31_1 + ' (' + type + ' body omitted)');
|
|
2143
2143
|
}
|
|
2144
|
-
tmp_2.
|
|
2145
|
-
this.
|
|
2144
|
+
tmp_2.q56_1 = tmp_3;
|
|
2145
|
+
this.n9_1 = 3;
|
|
2146
2146
|
continue $sm;
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
2149
|
case 2:
|
|
2150
2150
|
var ARGUMENT = suspendResult;
|
|
2151
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2152
|
-
this.
|
|
2153
|
-
this.
|
|
2154
|
-
this.
|
|
2151
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.s56_1);
|
|
2152
|
+
this.k56_1.k(ARGUMENT_0);
|
|
2153
|
+
this.q56_1 = this.k56_1.k('--> END ' + this.j56_1.i31_1 + ' (' + toString_0(this.o56_1) + '-byte body)');
|
|
2154
|
+
this.n9_1 = 3;
|
|
2155
2155
|
continue $sm;
|
|
2156
2156
|
case 3:
|
|
2157
2157
|
return Unit_instance;
|
|
2158
2158
|
case 4:
|
|
2159
|
-
throw this.
|
|
2159
|
+
throw this.q9_1;
|
|
2160
2160
|
}
|
|
2161
2161
|
} catch ($p) {
|
|
2162
2162
|
var e = $p;
|
|
2163
|
-
if (this.
|
|
2163
|
+
if (this.o9_1 === 4) {
|
|
2164
2164
|
throw e;
|
|
2165
2165
|
} else {
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2166
|
+
this.n9_1 = this.o9_1;
|
|
2167
|
+
this.q9_1 = e;
|
|
2168
2168
|
}
|
|
2169
2169
|
}
|
|
2170
2170
|
while (true);
|
|
2171
2171
|
};
|
|
2172
2172
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2173
2173
|
CoroutineImpl.call(this, resultContinuation);
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2177
|
-
this.
|
|
2178
|
-
this.
|
|
2179
|
-
this.
|
|
2180
|
-
}
|
|
2181
|
-
protoOf($invoke$logOutgoingContentCOROUTINE$).
|
|
2182
|
-
var suspendResult = this.
|
|
2174
|
+
this.b57_1 = $this_createClientPlugin;
|
|
2175
|
+
this.c57_1 = content;
|
|
2176
|
+
this.d57_1 = method;
|
|
2177
|
+
this.e57_1 = headers;
|
|
2178
|
+
this.f57_1 = logLines;
|
|
2179
|
+
this.g57_1 = process;
|
|
2180
|
+
}
|
|
2181
|
+
protoOf($invoke$logOutgoingContentCOROUTINE$).v9 = function () {
|
|
2182
|
+
var suspendResult = this.p9_1;
|
|
2183
2183
|
$sm: do
|
|
2184
2184
|
try {
|
|
2185
|
-
var tmp = this.
|
|
2185
|
+
var tmp = this.n9_1;
|
|
2186
2186
|
switch (tmp) {
|
|
2187
2187
|
case 0:
|
|
2188
|
-
this.
|
|
2189
|
-
this.
|
|
2190
|
-
var tmp_0 = this.
|
|
2188
|
+
this.o9_1 = 6;
|
|
2189
|
+
this.h57_1 = this.c57_1;
|
|
2190
|
+
var tmp_0 = this.h57_1;
|
|
2191
2191
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
2192
|
-
this.
|
|
2193
|
-
this.
|
|
2194
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2192
|
+
this.j57_1 = this.c57_1.x36();
|
|
2193
|
+
this.n9_1 = 4;
|
|
2194
|
+
suspendResult = invoke$logRequestBody(this.b57_1, this.c57_1, toLong(this.j57_1.length), this.e57_1, this.d57_1, this.f57_1, ByteReadChannel(this.j57_1), this);
|
|
2195
2195
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2196
2196
|
return suspendResult;
|
|
2197
2197
|
}
|
|
2198
2198
|
continue $sm;
|
|
2199
2199
|
} else {
|
|
2200
|
-
var tmp_1 = this.
|
|
2200
|
+
var tmp_1 = this.h57_1;
|
|
2201
2201
|
if (tmp_1 instanceof ContentWrapper) {
|
|
2202
|
-
this.
|
|
2203
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2202
|
+
this.n9_1 = 3;
|
|
2203
|
+
suspendResult = invoke$logOutgoingContent(this.b57_1, this.c57_1.g37(), this.d57_1, this.e57_1, this.f57_1, this.g57_1, this);
|
|
2204
2204
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2205
2205
|
return suspendResult;
|
|
2206
2206
|
}
|
|
2207
2207
|
continue $sm;
|
|
2208
2208
|
} else {
|
|
2209
|
-
var tmp_2 = this.
|
|
2209
|
+
var tmp_2 = this.h57_1;
|
|
2210
2210
|
if (tmp_2 instanceof NoContent) {
|
|
2211
2211
|
var tmp_3 = this;
|
|
2212
|
-
this.
|
|
2213
|
-
tmp_3.
|
|
2214
|
-
this.
|
|
2212
|
+
this.f57_1.k('--> END ' + this.d57_1.i31_1);
|
|
2213
|
+
tmp_3.i57_1 = null;
|
|
2214
|
+
this.n9_1 = 5;
|
|
2215
2215
|
continue $sm;
|
|
2216
2216
|
} else {
|
|
2217
|
-
var tmp_4 = this.
|
|
2217
|
+
var tmp_4 = this.h57_1;
|
|
2218
2218
|
if (tmp_4 instanceof ProtocolUpgrade) {
|
|
2219
2219
|
var tmp_5 = this;
|
|
2220
|
-
this.
|
|
2221
|
-
tmp_5.
|
|
2222
|
-
this.
|
|
2220
|
+
this.f57_1.k('--> END ' + this.d57_1.i31_1);
|
|
2221
|
+
tmp_5.i57_1 = null;
|
|
2222
|
+
this.n9_1 = 5;
|
|
2223
2223
|
continue $sm;
|
|
2224
2224
|
} else {
|
|
2225
|
-
var tmp_6 = this.
|
|
2225
|
+
var tmp_6 = this.h57_1;
|
|
2226
2226
|
if (tmp_6 instanceof ReadChannelContent) {
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2229
|
-
this.
|
|
2230
|
-
this.
|
|
2231
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2227
|
+
this.k57_1 = split(this.c57_1.a37(), this.b57_1.f3s_1);
|
|
2228
|
+
this.l57_1 = this.k57_1.dh();
|
|
2229
|
+
this.m57_1 = this.k57_1.eh();
|
|
2230
|
+
this.n9_1 = 2;
|
|
2231
|
+
suspendResult = invoke$logRequestBody(this.b57_1, this.c57_1, this.c57_1.w36(), this.e57_1, this.d57_1, this.f57_1, this.m57_1, this);
|
|
2232
2232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2233
2233
|
return suspendResult;
|
|
2234
2234
|
}
|
|
2235
2235
|
continue $sm;
|
|
2236
2236
|
} else {
|
|
2237
|
-
var tmp_7 = this.
|
|
2237
|
+
var tmp_7 = this.h57_1;
|
|
2238
2238
|
if (tmp_7 instanceof WriteChannelContent) {
|
|
2239
|
-
this.
|
|
2240
|
-
launch(this.
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2245
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2239
|
+
this.n57_1 = new ByteChannel();
|
|
2240
|
+
launch(this.b57_1.f3s_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.c57_1, this.n57_1, null));
|
|
2241
|
+
this.o57_1 = split(this.n57_1, this.b57_1.f3s_1);
|
|
2242
|
+
this.p57_1 = this.o57_1.dh();
|
|
2243
|
+
this.q57_1 = this.o57_1.eh();
|
|
2244
|
+
this.n9_1 = 1;
|
|
2245
|
+
suspendResult = invoke$logRequestBody(this.b57_1, this.c57_1, this.c57_1.w36(), this.e57_1, this.d57_1, this.f57_1, this.q57_1, this);
|
|
2246
2246
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2247
2247
|
return suspendResult;
|
|
2248
2248
|
}
|
|
@@ -2259,145 +2259,145 @@
|
|
|
2259
2259
|
|
|
2260
2260
|
break;
|
|
2261
2261
|
case 1:
|
|
2262
|
-
this.
|
|
2263
|
-
this.
|
|
2262
|
+
this.i57_1 = new LoggedContent(this.c57_1, this.p57_1);
|
|
2263
|
+
this.n9_1 = 5;
|
|
2264
2264
|
continue $sm;
|
|
2265
2265
|
case 2:
|
|
2266
|
-
this.
|
|
2267
|
-
this.
|
|
2266
|
+
this.i57_1 = new LoggedContent(this.c57_1, this.l57_1);
|
|
2267
|
+
this.n9_1 = 5;
|
|
2268
2268
|
continue $sm;
|
|
2269
2269
|
case 3:
|
|
2270
|
-
this.
|
|
2271
|
-
this.
|
|
2270
|
+
this.i57_1 = suspendResult;
|
|
2271
|
+
this.n9_1 = 5;
|
|
2272
2272
|
continue $sm;
|
|
2273
2273
|
case 4:
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2274
|
+
this.i57_1 = null;
|
|
2275
|
+
this.n9_1 = 5;
|
|
2276
2276
|
continue $sm;
|
|
2277
2277
|
case 5:
|
|
2278
|
-
return this.
|
|
2278
|
+
return this.i57_1;
|
|
2279
2279
|
case 6:
|
|
2280
|
-
throw this.
|
|
2280
|
+
throw this.q9_1;
|
|
2281
2281
|
}
|
|
2282
2282
|
} catch ($p) {
|
|
2283
2283
|
var e = $p;
|
|
2284
|
-
if (this.
|
|
2284
|
+
if (this.o9_1 === 6) {
|
|
2285
2285
|
throw e;
|
|
2286
2286
|
} else {
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2287
|
+
this.n9_1 = this.o9_1;
|
|
2288
|
+
this.q9_1 = e;
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
2291
|
while (true);
|
|
2292
2292
|
};
|
|
2293
2293
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2294
2294
|
CoroutineImpl.call(this, resultContinuation);
|
|
2295
|
-
this.
|
|
2296
|
-
this.
|
|
2297
|
-
this.
|
|
2298
|
-
this.
|
|
2299
|
-
this.
|
|
2300
|
-
}
|
|
2301
|
-
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).
|
|
2302
|
-
var suspendResult = this.
|
|
2295
|
+
this.z57_1 = sanitizedHeaders;
|
|
2296
|
+
this.a58_1 = level;
|
|
2297
|
+
this.b58_1 = $this_createClientPlugin;
|
|
2298
|
+
this.c58_1 = request;
|
|
2299
|
+
this.d58_1 = logLines;
|
|
2300
|
+
}
|
|
2301
|
+
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).v9 = function () {
|
|
2302
|
+
var suspendResult = this.p9_1;
|
|
2303
2303
|
$sm: do
|
|
2304
2304
|
try {
|
|
2305
|
-
var tmp = this.
|
|
2305
|
+
var tmp = this.n9_1;
|
|
2306
2306
|
switch (tmp) {
|
|
2307
2307
|
case 0:
|
|
2308
|
-
this.
|
|
2309
|
-
if (invoke$isNone(this.
|
|
2308
|
+
this.o9_1 = 4;
|
|
2309
|
+
if (invoke$isNone(this.a58_1))
|
|
2310
2310
|
return null;
|
|
2311
|
-
this.
|
|
2312
|
-
this.
|
|
2311
|
+
this.e58_1 = pathQuery(takeFrom(new URLBuilder(), this.c58_1.r3j_1).v2w());
|
|
2312
|
+
this.f58_1 = this.c58_1.u3j_1;
|
|
2313
2313
|
var tmp_0 = this;
|
|
2314
2314
|
var this_0 = new HeadersBuilder();
|
|
2315
2315
|
var tmp_1;
|
|
2316
2316
|
var tmp_2;
|
|
2317
2317
|
var tmp_3;
|
|
2318
|
-
var tmp_4 = this.
|
|
2318
|
+
var tmp_4 = this.f58_1;
|
|
2319
2319
|
if (tmp_4 instanceof OutgoingContent) {
|
|
2320
|
-
tmp_3 = !this.
|
|
2320
|
+
tmp_3 = !this.c58_1.s3j_1.equals(Companion_getInstance().a31_1);
|
|
2321
2321
|
} else {
|
|
2322
2322
|
tmp_3 = false;
|
|
2323
2323
|
}
|
|
2324
2324
|
|
|
2325
2325
|
if (tmp_3) {
|
|
2326
|
-
tmp_2 = !this.
|
|
2326
|
+
tmp_2 = !this.c58_1.s3j_1.equals(Companion_getInstance().f31_1);
|
|
2327
2327
|
} else {
|
|
2328
2328
|
tmp_2 = false;
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
2331
2331
|
if (tmp_2) {
|
|
2332
|
-
var tmp_5 = this.
|
|
2332
|
+
var tmp_5 = this.f58_1;
|
|
2333
2333
|
tmp_1 = !(tmp_5 instanceof EmptyContent);
|
|
2334
2334
|
} else {
|
|
2335
2335
|
tmp_1 = false;
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
2338
|
if (tmp_1) {
|
|
2339
|
-
var tmp0_safe_receiver = this.
|
|
2339
|
+
var tmp0_safe_receiver = this.f58_1.u36();
|
|
2340
2340
|
if (tmp0_safe_receiver == null)
|
|
2341
2341
|
null;
|
|
2342
2342
|
else {
|
|
2343
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2343
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().o2x_1, tmp0_safe_receiver.toString());
|
|
2344
2344
|
}
|
|
2345
|
-
var tmp1_safe_receiver = this.
|
|
2345
|
+
var tmp1_safe_receiver = this.f58_1.w36();
|
|
2346
2346
|
if (tmp1_safe_receiver == null)
|
|
2347
2347
|
null;
|
|
2348
2348
|
else {
|
|
2349
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2349
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().l2x_1, tmp1_safe_receiver.toString());
|
|
2350
2350
|
}
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
|
-
appendAll(this_0, this.
|
|
2354
|
-
tmp_0.
|
|
2353
|
+
appendAll(this_0, this.c58_1.t3j_1);
|
|
2354
|
+
tmp_0.g58_1 = this_0.v2w();
|
|
2355
2355
|
var tmp_6 = this;
|
|
2356
|
-
var tmp0_safe_receiver_0 = this.
|
|
2357
|
-
tmp_6.
|
|
2356
|
+
var tmp0_safe_receiver_0 = this.g58_1.f2o(HttpHeaders_getInstance().l2x_1);
|
|
2357
|
+
tmp_6.h58_1 = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2358
2358
|
var tmp_7 = this;
|
|
2359
2359
|
var tmp_8;
|
|
2360
|
-
if (this.
|
|
2361
|
-
tmp_8 = '--> ' + this.
|
|
2360
|
+
if (this.c58_1.s3j_1.equals(Companion_getInstance().a31_1) || this.c58_1.s3j_1.equals(Companion_getInstance().f31_1) || ((invoke$isHeaders(this.a58_1) || invoke$isBody(this.a58_1)) && !(this.h58_1 == null)) || (invoke$isHeaders(this.a58_1) && this.h58_1 == null) || this.g58_1.q2p(HttpHeaders_getInstance().j2x_1)) {
|
|
2361
|
+
tmp_8 = '--> ' + this.c58_1.s3j_1.i31_1 + ' ' + this.e58_1;
|
|
2362
2362
|
} else {
|
|
2363
|
-
if (invoke$isInfo(this.
|
|
2364
|
-
tmp_8 = '--> ' + this.
|
|
2363
|
+
if (invoke$isInfo(this.a58_1) && !(this.h58_1 == null)) {
|
|
2364
|
+
tmp_8 = '--> ' + this.c58_1.s3j_1.i31_1 + ' ' + this.e58_1 + ' (' + toString_0(this.h58_1) + '-byte body)';
|
|
2365
2365
|
} else {
|
|
2366
2366
|
var tmp_9;
|
|
2367
|
-
var tmp_10 = this.
|
|
2367
|
+
var tmp_10 = this.f58_1;
|
|
2368
2368
|
if (tmp_10 instanceof WriteChannelContent) {
|
|
2369
2369
|
tmp_9 = true;
|
|
2370
2370
|
} else {
|
|
2371
|
-
var tmp_11 = this.
|
|
2371
|
+
var tmp_11 = this.f58_1;
|
|
2372
2372
|
tmp_9 = tmp_11 instanceof ReadChannelContent;
|
|
2373
2373
|
}
|
|
2374
2374
|
if (tmp_9) {
|
|
2375
|
-
tmp_8 = '--> ' + this.
|
|
2375
|
+
tmp_8 = '--> ' + this.c58_1.s3j_1.i31_1 + ' ' + this.e58_1 + ' (unknown-byte body)';
|
|
2376
2376
|
} else {
|
|
2377
|
-
var size = computeRequestBodySize(this.
|
|
2378
|
-
tmp_8 = '--> ' + this.
|
|
2377
|
+
var size = computeRequestBodySize(this.c58_1.u3j_1);
|
|
2378
|
+
tmp_8 = '--> ' + this.c58_1.s3j_1.i31_1 + ' ' + this.e58_1 + ' (' + size.toString() + '-byte body)';
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
|
-
tmp_7.
|
|
2384
|
-
this.
|
|
2385
|
-
if (!invoke$isHeaders(this.
|
|
2383
|
+
tmp_7.i58_1 = tmp_8;
|
|
2384
|
+
this.d58_1.k(this.i58_1);
|
|
2385
|
+
if (!invoke$isHeaders(this.a58_1) && !invoke$isBody(this.a58_1)) {
|
|
2386
2386
|
return null;
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
|
-
var _iterator__ex2g4s = this.
|
|
2389
|
+
var _iterator__ex2g4s = this.g58_1.p2p().p();
|
|
2390
2390
|
while (_iterator__ex2g4s.q()) {
|
|
2391
2391
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2392
2392
|
var name = _destruct__k2r9zo.x();
|
|
2393
2393
|
var values = _destruct__k2r9zo.y();
|
|
2394
|
-
var tmp0 = this.
|
|
2394
|
+
var tmp0 = this.z57_1;
|
|
2395
2395
|
var tmp$ret$0 = Unit_instance;
|
|
2396
2396
|
l$ret$1: do {
|
|
2397
2397
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2398
2398
|
while (_iterator__ex2g4s_0.q()) {
|
|
2399
2399
|
var element = _iterator__ex2g4s_0.r();
|
|
2400
|
-
if (element.
|
|
2400
|
+
if (element.z59_1(name)) {
|
|
2401
2401
|
tmp$ret$0 = element;
|
|
2402
2402
|
break l$ret$1;
|
|
2403
2403
|
}
|
|
@@ -2406,35 +2406,35 @@
|
|
|
2406
2406
|
}
|
|
2407
2407
|
while (false);
|
|
2408
2408
|
if (tmp$ret$0 == null) {
|
|
2409
|
-
this.
|
|
2409
|
+
this.d58_1.k(name + ': ' + joinToString(values, ', '));
|
|
2410
2410
|
} else {
|
|
2411
|
-
this.
|
|
2411
|
+
this.d58_1.k(name + ': \u2588\u2588');
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
2414
|
|
|
2415
|
-
if (!invoke$isBody(this.
|
|
2416
|
-
this.
|
|
2415
|
+
if (!invoke$isBody(this.a58_1) || this.c58_1.s3j_1.equals(Companion_getInstance().a31_1) || this.c58_1.s3j_1.equals(Companion_getInstance().f31_1)) {
|
|
2416
|
+
this.d58_1.k('--> END ' + this.c58_1.s3j_1.i31_1);
|
|
2417
2417
|
return null;
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
|
-
this.
|
|
2421
|
-
var tmp_12 = this.
|
|
2420
|
+
this.d58_1.k('');
|
|
2421
|
+
var tmp_12 = this.f58_1;
|
|
2422
2422
|
if (!(tmp_12 instanceof OutgoingContent)) {
|
|
2423
|
-
this.
|
|
2423
|
+
this.d58_1.k('--> END ' + this.c58_1.s3j_1.i31_1);
|
|
2424
2424
|
return null;
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
|
-
if (this.
|
|
2428
|
-
this.
|
|
2429
|
-
var tmp_13 = this.
|
|
2430
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2427
|
+
if (this.c58_1.t3j_1.f2o(HttpHeaders_getInstance().j2x_1) === 'gzip') {
|
|
2428
|
+
this.n9_1 = 2;
|
|
2429
|
+
var tmp_13 = this.c58_1.s3j_1;
|
|
2430
|
+
suspendResult = invoke$logOutgoingContent(this.b58_1, this.f58_1, tmp_13, this.g58_1, this.d58_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2431
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2432
2432
|
return suspendResult;
|
|
2433
2433
|
}
|
|
2434
2434
|
continue $sm;
|
|
2435
2435
|
} else {
|
|
2436
|
-
this.
|
|
2437
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2436
|
+
this.n9_1 = 1;
|
|
2437
|
+
suspendResult = invoke$logOutgoingContent(this.b58_1, this.f58_1, this.c58_1.s3j_1, this.g58_1, this.d58_1, VOID, this);
|
|
2438
2438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2439
2439
|
return suspendResult;
|
|
2440
2440
|
}
|
|
@@ -2442,77 +2442,77 @@
|
|
|
2442
2442
|
}
|
|
2443
2443
|
|
|
2444
2444
|
case 1:
|
|
2445
|
-
this.
|
|
2446
|
-
this.
|
|
2445
|
+
this.j58_1 = suspendResult;
|
|
2446
|
+
this.n9_1 = 3;
|
|
2447
2447
|
continue $sm;
|
|
2448
2448
|
case 2:
|
|
2449
|
-
this.
|
|
2450
|
-
this.
|
|
2449
|
+
this.j58_1 = suspendResult;
|
|
2450
|
+
this.n9_1 = 3;
|
|
2451
2451
|
continue $sm;
|
|
2452
2452
|
case 3:
|
|
2453
|
-
var newContent = this.
|
|
2453
|
+
var newContent = this.j58_1;
|
|
2454
2454
|
return newContent;
|
|
2455
2455
|
case 4:
|
|
2456
|
-
throw this.
|
|
2456
|
+
throw this.q9_1;
|
|
2457
2457
|
}
|
|
2458
2458
|
} catch ($p) {
|
|
2459
2459
|
var e = $p;
|
|
2460
|
-
if (this.
|
|
2460
|
+
if (this.o9_1 === 4) {
|
|
2461
2461
|
throw e;
|
|
2462
2462
|
} else {
|
|
2463
|
-
this.
|
|
2464
|
-
this.
|
|
2463
|
+
this.n9_1 = this.o9_1;
|
|
2464
|
+
this.q9_1 = e;
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
2467
|
while (true);
|
|
2468
2468
|
};
|
|
2469
2469
|
function $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2470
2470
|
CoroutineImpl.call(this, resultContinuation);
|
|
2471
|
-
this.
|
|
2472
|
-
this.
|
|
2473
|
-
this.
|
|
2474
|
-
this.
|
|
2471
|
+
this.s58_1 = $this_createClientPlugin;
|
|
2472
|
+
this.t58_1 = response;
|
|
2473
|
+
this.u58_1 = body;
|
|
2474
|
+
this.v58_1 = logLines;
|
|
2475
2475
|
}
|
|
2476
|
-
protoOf($invoke$logResponseBodyCOROUTINE$).
|
|
2477
|
-
var suspendResult = this.
|
|
2476
|
+
protoOf($invoke$logResponseBodyCOROUTINE$).v9 = function () {
|
|
2477
|
+
var suspendResult = this.p9_1;
|
|
2478
2478
|
$sm: do
|
|
2479
2479
|
try {
|
|
2480
|
-
var tmp = this.
|
|
2480
|
+
var tmp = this.n9_1;
|
|
2481
2481
|
switch (tmp) {
|
|
2482
2482
|
case 0:
|
|
2483
|
-
this.
|
|
2484
|
-
this.
|
|
2485
|
-
this.
|
|
2486
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2483
|
+
this.o9_1 = 4;
|
|
2484
|
+
this.v58_1.k('');
|
|
2485
|
+
this.n9_1 = 1;
|
|
2486
|
+
suspendResult = invoke$detectIfBinary(this.s58_1, this.u58_1, contentLength(this.t58_1), contentType(this.t58_1), this.t58_1.z30(), this);
|
|
2487
2487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2488
2488
|
return suspendResult;
|
|
2489
2489
|
}
|
|
2490
2490
|
|
|
2491
2491
|
continue $sm;
|
|
2492
2492
|
case 1:
|
|
2493
|
-
this.
|
|
2494
|
-
this.
|
|
2495
|
-
this.
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
if (equals(this.
|
|
2499
|
-
this.
|
|
2493
|
+
this.w58_1 = suspendResult;
|
|
2494
|
+
this.x58_1 = this.w58_1.dh();
|
|
2495
|
+
this.y58_1 = this.w58_1.eh();
|
|
2496
|
+
this.z58_1 = this.w58_1.an();
|
|
2497
|
+
this.a59_1 = this.t58_1.r3l().x2q_1.d3(this.t58_1.q3l().x2q_1);
|
|
2498
|
+
if (equals(this.y58_1, new Long(0, 0))) {
|
|
2499
|
+
this.v58_1.k('<-- END HTTP (' + this.a59_1.toString() + 'ms, ' + toString_0(this.y58_1) + '-byte body)');
|
|
2500
2500
|
return Unit_instance;
|
|
2501
2501
|
}
|
|
2502
2502
|
|
|
2503
|
-
if (!this.
|
|
2504
|
-
this.
|
|
2503
|
+
if (!this.x58_1) {
|
|
2504
|
+
this.c59_1 = contentType(this.t58_1);
|
|
2505
2505
|
var tmp_0 = this;
|
|
2506
2506
|
var tmp_1;
|
|
2507
|
-
if (!(this.
|
|
2508
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2509
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2507
|
+
if (!(this.c59_1 == null)) {
|
|
2508
|
+
var tmp0_elvis_lhs = charset(this.c59_1);
|
|
2509
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().l1z_1 : tmp0_elvis_lhs;
|
|
2510
2510
|
} else {
|
|
2511
|
-
tmp_1 = Charsets_getInstance().
|
|
2511
|
+
tmp_1 = Charsets_getInstance().l1z_1;
|
|
2512
2512
|
}
|
|
2513
|
-
tmp_0.
|
|
2514
|
-
this.
|
|
2515
|
-
suspendResult = readRemaining(this.
|
|
2513
|
+
tmp_0.d59_1 = tmp_1;
|
|
2514
|
+
this.n9_1 = 2;
|
|
2515
|
+
suspendResult = readRemaining(this.z58_1, this);
|
|
2516
2516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2517
2517
|
return suspendResult;
|
|
2518
2518
|
}
|
|
@@ -2520,84 +2520,84 @@
|
|
|
2520
2520
|
} else {
|
|
2521
2521
|
var tmp_2 = this;
|
|
2522
2522
|
var type = 'binary';
|
|
2523
|
-
if (this.
|
|
2523
|
+
if (this.t58_1.z30().q2p(HttpHeaders_getInstance().j2x_1)) {
|
|
2524
2524
|
type = 'encoded';
|
|
2525
2525
|
}
|
|
2526
2526
|
var tmp_3;
|
|
2527
|
-
if (!(this.
|
|
2528
|
-
tmp_3 = this.
|
|
2527
|
+
if (!(this.y58_1 == null)) {
|
|
2528
|
+
tmp_3 = this.v58_1.k('<-- END HTTP (' + this.a59_1.toString() + 'ms, ' + type + ' ' + toString_0(this.y58_1) + '-byte body omitted)');
|
|
2529
2529
|
} else {
|
|
2530
|
-
tmp_3 = this.
|
|
2530
|
+
tmp_3 = this.v58_1.k('<-- END HTTP (' + this.a59_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2531
2531
|
}
|
|
2532
|
-
tmp_2.
|
|
2533
|
-
this.
|
|
2532
|
+
tmp_2.b59_1 = tmp_3;
|
|
2533
|
+
this.n9_1 = 3;
|
|
2534
2534
|
continue $sm;
|
|
2535
2535
|
}
|
|
2536
2536
|
|
|
2537
2537
|
case 2:
|
|
2538
2538
|
var ARGUMENT = suspendResult;
|
|
2539
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2540
|
-
this.
|
|
2541
|
-
this.
|
|
2542
|
-
this.
|
|
2539
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.d59_1);
|
|
2540
|
+
this.v58_1.k(ARGUMENT_0);
|
|
2541
|
+
this.b59_1 = this.v58_1.k('<-- END HTTP (' + this.a59_1.toString() + 'ms, ' + toString_0(this.y58_1) + '-byte body)');
|
|
2542
|
+
this.n9_1 = 3;
|
|
2543
2543
|
continue $sm;
|
|
2544
2544
|
case 3:
|
|
2545
2545
|
return Unit_instance;
|
|
2546
2546
|
case 4:
|
|
2547
|
-
throw this.
|
|
2547
|
+
throw this.q9_1;
|
|
2548
2548
|
}
|
|
2549
2549
|
} catch ($p) {
|
|
2550
2550
|
var e = $p;
|
|
2551
|
-
if (this.
|
|
2551
|
+
if (this.o9_1 === 4) {
|
|
2552
2552
|
throw e;
|
|
2553
2553
|
} else {
|
|
2554
|
-
this.
|
|
2555
|
-
this.
|
|
2554
|
+
this.n9_1 = this.o9_1;
|
|
2555
|
+
this.q9_1 = e;
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
2558
|
while (true);
|
|
2559
2559
|
};
|
|
2560
2560
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2561
2561
|
CoroutineImpl.call(this, resultContinuation);
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2566
|
-
this.
|
|
2567
|
-
}
|
|
2568
|
-
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).
|
|
2569
|
-
var suspendResult = this.
|
|
2562
|
+
this.m59_1 = sanitizedHeaders;
|
|
2563
|
+
this.n59_1 = level;
|
|
2564
|
+
this.o59_1 = $this_createClientPlugin;
|
|
2565
|
+
this.p59_1 = response;
|
|
2566
|
+
this.q59_1 = logLines;
|
|
2567
|
+
}
|
|
2568
|
+
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).v9 = function () {
|
|
2569
|
+
var suspendResult = this.p9_1;
|
|
2570
2570
|
$sm: do
|
|
2571
2571
|
try {
|
|
2572
|
-
var tmp = this.
|
|
2572
|
+
var tmp = this.n9_1;
|
|
2573
2573
|
switch (tmp) {
|
|
2574
2574
|
case 0:
|
|
2575
|
-
this.
|
|
2576
|
-
if (invoke$isNone(this.
|
|
2577
|
-
return this.
|
|
2575
|
+
this.o9_1 = 4;
|
|
2576
|
+
if (invoke$isNone(this.n59_1))
|
|
2577
|
+
return this.p59_1;
|
|
2578
2578
|
var tmp_0 = this;
|
|
2579
|
-
var tmp0_safe_receiver = this.
|
|
2580
|
-
tmp_0.
|
|
2581
|
-
this.
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2585
|
-
if (!invoke$isHeaders(this.
|
|
2586
|
-
return this.
|
|
2579
|
+
var tmp0_safe_receiver = this.p59_1.z30().f2o(HttpHeaders_getInstance().l2x_1);
|
|
2580
|
+
tmp_0.r59_1 = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2581
|
+
this.s59_1 = get_request(this.p59_1);
|
|
2582
|
+
this.t59_1 = this.p59_1.r3l().x2q_1.d3(this.p59_1.q3l().x2q_1);
|
|
2583
|
+
this.u59_1 = this.p59_1.z30().f2o(HttpHeaders_getInstance().s2z_1) === 'chunked' && (invoke$isInfo(this.n59_1) || invoke$isHeaders(this.n59_1)) ? '<-- ' + this.p59_1.v36().toString() + ' ' + pathQuery(this.s59_1.i3l()) + ' (' + this.t59_1.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.n59_1) && !(this.r59_1 == null) ? '<-- ' + this.p59_1.v36().toString() + ' ' + pathQuery(this.s59_1.i3l()) + ' (' + this.t59_1.toString() + 'ms, ' + toString_0(this.r59_1) + '-byte body)' : invoke$isBody(this.n59_1) || (invoke$isInfo(this.n59_1) && this.r59_1 == null) || (invoke$isHeaders(this.n59_1) && !(this.r59_1 == null)) || this.p59_1.z30().f2o(HttpHeaders_getInstance().j2x_1) === 'gzip' ? '<-- ' + this.p59_1.v36().toString() + ' ' + pathQuery(this.s59_1.i3l()) + ' (' + this.t59_1.toString() + 'ms)' : '<-- ' + this.p59_1.v36().toString() + ' ' + pathQuery(this.s59_1.i3l()) + ' (' + this.t59_1.toString() + 'ms, unknown-byte body)';
|
|
2584
|
+
this.q59_1.k(this.u59_1);
|
|
2585
|
+
if (!invoke$isHeaders(this.n59_1) && !invoke$isBody(this.n59_1)) {
|
|
2586
|
+
return this.p59_1;
|
|
2587
2587
|
}
|
|
2588
2588
|
|
|
2589
|
-
var _iterator__ex2g4s = this.
|
|
2589
|
+
var _iterator__ex2g4s = this.p59_1.z30().p2p().p();
|
|
2590
2590
|
while (_iterator__ex2g4s.q()) {
|
|
2591
2591
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2592
2592
|
var name = _destruct__k2r9zo.x();
|
|
2593
2593
|
var values = _destruct__k2r9zo.y();
|
|
2594
|
-
var tmp0 = this.
|
|
2594
|
+
var tmp0 = this.m59_1;
|
|
2595
2595
|
var tmp$ret$0 = Unit_instance;
|
|
2596
2596
|
l$ret$1: do {
|
|
2597
2597
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2598
2598
|
while (_iterator__ex2g4s_0.q()) {
|
|
2599
2599
|
var element = _iterator__ex2g4s_0.r();
|
|
2600
|
-
if (element.
|
|
2600
|
+
if (element.z59_1(name)) {
|
|
2601
2601
|
tmp$ret$0 = element;
|
|
2602
2602
|
break l$ret$1;
|
|
2603
2603
|
}
|
|
@@ -2606,66 +2606,66 @@
|
|
|
2606
2606
|
}
|
|
2607
2607
|
while (false);
|
|
2608
2608
|
if (tmp$ret$0 == null) {
|
|
2609
|
-
this.
|
|
2609
|
+
this.q59_1.k(name + ': ' + joinToString(values, ', '));
|
|
2610
2610
|
} else {
|
|
2611
|
-
this.
|
|
2611
|
+
this.q59_1.k(name + ': \u2588\u2588');
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
2614
|
|
|
2615
|
-
if (!invoke$isBody(this.
|
|
2616
|
-
this.
|
|
2617
|
-
return this.
|
|
2615
|
+
if (!invoke$isBody(this.n59_1)) {
|
|
2616
|
+
this.q59_1.k('<-- END HTTP');
|
|
2617
|
+
return this.p59_1;
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
|
-
if (!(this.
|
|
2621
|
-
this.
|
|
2622
|
-
return this.
|
|
2620
|
+
if (!(this.r59_1 == null) && equals(this.r59_1, new Long(0, 0))) {
|
|
2621
|
+
this.q59_1.k('<-- END HTTP (' + this.t59_1.toString() + 'ms, ' + toString_0(this.r59_1) + '-byte body)');
|
|
2622
|
+
return this.p59_1;
|
|
2623
2623
|
}
|
|
2624
2624
|
|
|
2625
|
-
if (equals(contentType(this.
|
|
2626
|
-
this.
|
|
2627
|
-
return this.
|
|
2625
|
+
if (equals(contentType(this.p59_1), Text_getInstance().j2w_1)) {
|
|
2626
|
+
this.q59_1.k('<-- END HTTP (streaming)');
|
|
2627
|
+
return this.p59_1;
|
|
2628
2628
|
}
|
|
2629
2629
|
|
|
2630
|
-
if (get_isSaved(this.
|
|
2631
|
-
this.
|
|
2632
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2630
|
+
if (get_isSaved(this.p59_1)) {
|
|
2631
|
+
this.n9_1 = 3;
|
|
2632
|
+
suspendResult = invoke$logResponseBody(this.o59_1, this.p59_1, this.p59_1.o3l(), this.q59_1, this);
|
|
2633
2633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2634
2634
|
return suspendResult;
|
|
2635
2635
|
}
|
|
2636
2636
|
continue $sm;
|
|
2637
2637
|
} else {
|
|
2638
|
-
this.
|
|
2638
|
+
this.n9_1 = 1;
|
|
2639
2639
|
continue $sm;
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
2642
|
case 1:
|
|
2643
|
-
this.
|
|
2644
|
-
this.
|
|
2645
|
-
this.
|
|
2646
|
-
this.
|
|
2647
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2643
|
+
this.v59_1 = split(this.p59_1.o3l(), this.p59_1);
|
|
2644
|
+
this.w59_1 = this.v59_1.dh();
|
|
2645
|
+
this.x59_1 = this.v59_1.eh();
|
|
2646
|
+
this.n9_1 = 2;
|
|
2647
|
+
suspendResult = invoke$logResponseBody(this.o59_1, this.p59_1, this.x59_1, this.q59_1, this);
|
|
2648
2648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2649
2649
|
return suspendResult;
|
|
2650
2650
|
}
|
|
2651
2651
|
|
|
2652
2652
|
continue $sm;
|
|
2653
2653
|
case 2:
|
|
2654
|
-
var tmp_1 = this.
|
|
2655
|
-
var call = replaceResponse(tmp_1, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2656
|
-
return call.
|
|
2654
|
+
var tmp_1 = this.p59_1.g3l();
|
|
2655
|
+
var call = replaceResponse(tmp_1, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.w59_1));
|
|
2656
|
+
return call.r3i();
|
|
2657
2657
|
case 3:
|
|
2658
|
-
return this.
|
|
2658
|
+
return this.p59_1;
|
|
2659
2659
|
case 4:
|
|
2660
|
-
throw this.
|
|
2660
|
+
throw this.q9_1;
|
|
2661
2661
|
}
|
|
2662
2662
|
} catch ($p) {
|
|
2663
2663
|
var e = $p;
|
|
2664
|
-
if (this.
|
|
2664
|
+
if (this.o9_1 === 4) {
|
|
2665
2665
|
throw e;
|
|
2666
2666
|
} else {
|
|
2667
|
-
this.
|
|
2668
|
-
this.
|
|
2667
|
+
this.n9_1 = this.o9_1;
|
|
2668
|
+
this.q9_1 = e;
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
2671
|
while (true);
|
|
@@ -2749,7 +2749,7 @@
|
|
|
2749
2749
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
2750
2750
|
while (_iterator__ex2g4s_0.q()) {
|
|
2751
2751
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
2752
|
-
if (element_0.
|
|
2752
|
+
if (element_0.z59_1(key)) {
|
|
2753
2753
|
tmp$ret$5 = element_0;
|
|
2754
2754
|
break $l$block;
|
|
2755
2755
|
}
|
|
@@ -2757,7 +2757,7 @@
|
|
|
2757
2757
|
tmp$ret$5 = null;
|
|
2758
2758
|
}
|
|
2759
2759
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2760
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2760
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y59_1;
|
|
2761
2761
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
@@ -2765,62 +2765,62 @@
|
|
|
2765
2765
|
// Inline function 'kotlin.text.appendLine' call
|
|
2766
2766
|
var value_0 = '-> ' + key + ': ' + value;
|
|
2767
2767
|
// Inline function 'kotlin.text.appendLine' call
|
|
2768
|
-
_this__u8e3s4.l(value_0).
|
|
2768
|
+
_this__u8e3s4.l(value_0).z8(_Char___init__impl__6a9atx(10));
|
|
2769
2769
|
}
|
|
2770
2770
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2771
2771
|
// Inline function 'kotlin.with' call
|
|
2772
|
-
if (level.
|
|
2772
|
+
if (level.i52_1) {
|
|
2773
2773
|
// Inline function 'kotlin.text.appendLine' call
|
|
2774
|
-
var value = 'RESPONSE: ' + response.
|
|
2774
|
+
var value = 'RESPONSE: ' + response.v36().toString();
|
|
2775
2775
|
// Inline function 'kotlin.text.appendLine' call
|
|
2776
|
-
log.
|
|
2776
|
+
log.y8(value).z8(_Char___init__impl__6a9atx(10));
|
|
2777
2777
|
// Inline function 'kotlin.text.appendLine' call
|
|
2778
|
-
var value_0 = 'METHOD: ' + response.
|
|
2778
|
+
var value_0 = 'METHOD: ' + response.g3l().z3k().h3l().toString();
|
|
2779
2779
|
// Inline function 'kotlin.text.appendLine' call
|
|
2780
|
-
log.
|
|
2780
|
+
log.y8(value_0).z8(_Char___init__impl__6a9atx(10));
|
|
2781
2781
|
// Inline function 'kotlin.text.appendLine' call
|
|
2782
|
-
var value_1 = 'FROM: ' + response.
|
|
2782
|
+
var value_1 = 'FROM: ' + response.g3l().z3k().i3l().toString();
|
|
2783
2783
|
// Inline function 'kotlin.text.appendLine' call
|
|
2784
|
-
log.
|
|
2784
|
+
log.y8(value_1).z8(_Char___init__impl__6a9atx(10));
|
|
2785
2785
|
}
|
|
2786
|
-
if (level.
|
|
2786
|
+
if (level.j52_1) {
|
|
2787
2787
|
// Inline function 'kotlin.text.appendLine' call
|
|
2788
2788
|
var value_2 = 'COMMON HEADERS';
|
|
2789
2789
|
// Inline function 'kotlin.text.appendLine' call
|
|
2790
|
-
log.
|
|
2791
|
-
logHeaders(log, response.
|
|
2790
|
+
log.y8(value_2).z8(_Char___init__impl__6a9atx(10));
|
|
2791
|
+
logHeaders(log, response.z30().p2p(), sanitizedHeaders);
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
2794
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
2795
2795
|
var tmp = new $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, $completion);
|
|
2796
|
-
tmp.
|
|
2797
|
-
tmp.
|
|
2798
|
-
return tmp.
|
|
2796
|
+
tmp.p9_1 = Unit_instance;
|
|
2797
|
+
tmp.q9_1 = null;
|
|
2798
|
+
return tmp.v9();
|
|
2799
2799
|
}
|
|
2800
2800
|
function appendResponseBody(_this__u8e3s4, contentType, content, $completion) {
|
|
2801
2801
|
var tmp = new $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, $completion);
|
|
2802
|
-
tmp.
|
|
2803
|
-
tmp.
|
|
2804
|
-
return tmp.
|
|
2802
|
+
tmp.p9_1 = Unit_instance;
|
|
2803
|
+
tmp.q9_1 = null;
|
|
2804
|
+
return tmp.v9();
|
|
2805
2805
|
}
|
|
2806
2806
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2807
|
-
this.
|
|
2807
|
+
this.s5g_1 = function_0;
|
|
2808
2808
|
}
|
|
2809
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
2810
|
-
return this.
|
|
2809
|
+
protoOf(sam$kotlin_Comparator$0).ue = function (a, b) {
|
|
2810
|
+
return this.s5g_1(a, b);
|
|
2811
2811
|
};
|
|
2812
2812
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2813
|
-
return this.
|
|
2813
|
+
return this.ue(a, b);
|
|
2814
2814
|
};
|
|
2815
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
2816
|
-
return this.
|
|
2815
|
+
protoOf(sam$kotlin_Comparator$0).w3 = function () {
|
|
2816
|
+
return this.s5g_1;
|
|
2817
2817
|
};
|
|
2818
2818
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2819
2819
|
var tmp;
|
|
2820
2820
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
2821
2821
|
var tmp_0;
|
|
2822
2822
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
2823
|
-
tmp_0 = equals(this.
|
|
2823
|
+
tmp_0 = equals(this.w3(), other.w3());
|
|
2824
2824
|
} else {
|
|
2825
2825
|
tmp_0 = false;
|
|
2826
2826
|
}
|
|
@@ -2831,7 +2831,7 @@
|
|
|
2831
2831
|
return tmp;
|
|
2832
2832
|
};
|
|
2833
2833
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
2834
|
-
return hashCode(this.
|
|
2834
|
+
return hashCode(this.w3());
|
|
2835
2835
|
};
|
|
2836
2836
|
function logHeaders$lambda(a, b) {
|
|
2837
2837
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
@@ -2841,67 +2841,67 @@
|
|
|
2841
2841
|
}
|
|
2842
2842
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2843
2843
|
CoroutineImpl.call(this, resultContinuation);
|
|
2844
|
-
this.
|
|
2845
|
-
this.
|
|
2844
|
+
this.w5f_1 = _this__u8e3s4;
|
|
2845
|
+
this.x5f_1 = response;
|
|
2846
2846
|
}
|
|
2847
|
-
protoOf($logResponseBodyCOROUTINE$_0).
|
|
2848
|
-
var suspendResult = this.
|
|
2847
|
+
protoOf($logResponseBodyCOROUTINE$_0).v9 = function () {
|
|
2848
|
+
var suspendResult = this.p9_1;
|
|
2849
2849
|
$sm: do
|
|
2850
2850
|
try {
|
|
2851
|
-
var tmp = this.
|
|
2851
|
+
var tmp = this.n9_1;
|
|
2852
2852
|
switch (tmp) {
|
|
2853
2853
|
case 0:
|
|
2854
|
-
this.
|
|
2855
|
-
this.
|
|
2856
|
-
this.
|
|
2854
|
+
this.o9_1 = 8;
|
|
2855
|
+
this.y5f_1 = StringBuilder_init_$Create$();
|
|
2856
|
+
this.n9_1 = 1;
|
|
2857
2857
|
continue $sm;
|
|
2858
2858
|
case 1:
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2861
|
-
this.
|
|
2862
|
-
suspendResult = appendResponseBody(this.
|
|
2859
|
+
this.o9_1 = 4;
|
|
2860
|
+
this.o9_1 = 3;
|
|
2861
|
+
this.n9_1 = 2;
|
|
2862
|
+
suspendResult = appendResponseBody(this.y5f_1, contentType(this.x5f_1), this.x5f_1.o3l(), this);
|
|
2863
2863
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2864
2864
|
return suspendResult;
|
|
2865
2865
|
}
|
|
2866
2866
|
|
|
2867
2867
|
continue $sm;
|
|
2868
2868
|
case 2:
|
|
2869
|
-
this.
|
|
2870
|
-
this.
|
|
2871
|
-
this.
|
|
2869
|
+
this.z5f_1 = suspendResult;
|
|
2870
|
+
this.o9_1 = 8;
|
|
2871
|
+
this.n9_1 = 6;
|
|
2872
2872
|
continue $sm;
|
|
2873
2873
|
case 3:
|
|
2874
|
-
this.
|
|
2875
|
-
var tmp_0 = this.
|
|
2874
|
+
this.o9_1 = 4;
|
|
2875
|
+
var tmp_0 = this.q9_1;
|
|
2876
2876
|
if (tmp_0 instanceof Error) {
|
|
2877
|
-
this.
|
|
2877
|
+
this.a5g_1 = this.q9_1;
|
|
2878
2878
|
var tmp_1 = this;
|
|
2879
|
-
tmp_1.
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2879
|
+
tmp_1.z5f_1 = Unit_instance;
|
|
2880
|
+
this.o9_1 = 8;
|
|
2881
|
+
this.n9_1 = 6;
|
|
2882
2882
|
continue $sm;
|
|
2883
2883
|
} else {
|
|
2884
|
-
throw this.
|
|
2884
|
+
throw this.q9_1;
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
2887
|
case 4:
|
|
2888
|
-
this.
|
|
2889
|
-
this.
|
|
2890
|
-
this.
|
|
2891
|
-
var this_0 = this.
|
|
2892
|
-
suspendResult = this.
|
|
2888
|
+
this.o9_1 = 8;
|
|
2889
|
+
this.b5g_1 = this.q9_1;
|
|
2890
|
+
this.n9_1 = 5;
|
|
2891
|
+
var this_0 = this.y5f_1.toString();
|
|
2892
|
+
suspendResult = this.w5f_1.d52(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2893
2893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2894
2894
|
return suspendResult;
|
|
2895
2895
|
}
|
|
2896
2896
|
|
|
2897
2897
|
continue $sm;
|
|
2898
2898
|
case 5:
|
|
2899
|
-
throw this.
|
|
2899
|
+
throw this.b5g_1;
|
|
2900
2900
|
case 6:
|
|
2901
|
-
this.
|
|
2902
|
-
this.
|
|
2903
|
-
var this_1 = this.
|
|
2904
|
-
suspendResult = this.
|
|
2901
|
+
this.o9_1 = 8;
|
|
2902
|
+
this.n9_1 = 7;
|
|
2903
|
+
var this_1 = this.y5f_1.toString();
|
|
2904
|
+
suspendResult = this.w5f_1.d52(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2905
2905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2906
2906
|
return suspendResult;
|
|
2907
2907
|
}
|
|
@@ -2910,50 +2910,50 @@
|
|
|
2910
2910
|
case 7:
|
|
2911
2911
|
return Unit_instance;
|
|
2912
2912
|
case 8:
|
|
2913
|
-
throw this.
|
|
2913
|
+
throw this.q9_1;
|
|
2914
2914
|
}
|
|
2915
2915
|
} catch ($p) {
|
|
2916
2916
|
var e = $p;
|
|
2917
|
-
if (this.
|
|
2917
|
+
if (this.o9_1 === 8) {
|
|
2918
2918
|
throw e;
|
|
2919
2919
|
} else {
|
|
2920
|
-
this.
|
|
2921
|
-
this.
|
|
2920
|
+
this.n9_1 = this.o9_1;
|
|
2921
|
+
this.q9_1 = e;
|
|
2922
2922
|
}
|
|
2923
2923
|
}
|
|
2924
2924
|
while (true);
|
|
2925
2925
|
};
|
|
2926
2926
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2927
2927
|
CoroutineImpl.call(this, resultContinuation);
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2928
|
+
this.k5g_1 = _this__u8e3s4;
|
|
2929
|
+
this.l5g_1 = contentType;
|
|
2930
|
+
this.m5g_1 = content;
|
|
2931
2931
|
}
|
|
2932
|
-
protoOf($appendResponseBodyCOROUTINE$).
|
|
2933
|
-
var suspendResult = this.
|
|
2932
|
+
protoOf($appendResponseBodyCOROUTINE$).v9 = function () {
|
|
2933
|
+
var suspendResult = this.p9_1;
|
|
2934
2934
|
$sm: do
|
|
2935
2935
|
try {
|
|
2936
|
-
var tmp = this.
|
|
2936
|
+
var tmp = this.n9_1;
|
|
2937
2937
|
switch (tmp) {
|
|
2938
2938
|
case 0:
|
|
2939
|
-
this.
|
|
2940
|
-
var tmp0 = this.
|
|
2941
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2942
|
-
tmp0.
|
|
2943
|
-
var tmp0_0 = this.
|
|
2939
|
+
this.o9_1 = 3;
|
|
2940
|
+
var tmp0 = this.k5g_1;
|
|
2941
|
+
var value = 'BODY Content-Type: ' + toString_0(this.l5g_1);
|
|
2942
|
+
tmp0.y8(value).z8(_Char___init__impl__6a9atx(10));
|
|
2943
|
+
var tmp0_0 = this.k5g_1;
|
|
2944
2944
|
var value_0 = 'BODY START';
|
|
2945
|
-
tmp0_0.
|
|
2945
|
+
tmp0_0.y8(value_0).z8(_Char___init__impl__6a9atx(10));
|
|
2946
2946
|
var tmp_0 = this;
|
|
2947
|
-
tmp_0.
|
|
2947
|
+
tmp_0.n5g_1 = this.m5g_1;
|
|
2948
2948
|
var tmp_1 = this;
|
|
2949
|
-
var tmp0_safe_receiver = this.
|
|
2949
|
+
var tmp0_safe_receiver = this.l5g_1;
|
|
2950
2950
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2951
|
-
tmp_1.
|
|
2952
|
-
this.
|
|
2953
|
-
this.
|
|
2954
|
-
this.
|
|
2955
|
-
this.
|
|
2956
|
-
suspendResult = readRemaining(this.
|
|
2951
|
+
tmp_1.o5g_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().l1z_1 : tmp1_elvis_lhs;
|
|
2952
|
+
this.p5g_1 = this.n5g_1;
|
|
2953
|
+
this.q5g_1 = this.o5g_1;
|
|
2954
|
+
this.o9_1 = 2;
|
|
2955
|
+
this.n9_1 = 1;
|
|
2956
|
+
suspendResult = readRemaining(this.p5g_1, this);
|
|
2957
2957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2958
2958
|
return suspendResult;
|
|
2959
2959
|
}
|
|
@@ -2961,78 +2961,78 @@
|
|
|
2961
2961
|
continue $sm;
|
|
2962
2962
|
case 1:
|
|
2963
2963
|
var ARGUMENT = suspendResult;
|
|
2964
|
-
this.
|
|
2965
|
-
this.
|
|
2966
|
-
this.
|
|
2964
|
+
this.r5g_1 = readText(ARGUMENT, this.q5g_1);
|
|
2965
|
+
this.o9_1 = 3;
|
|
2966
|
+
this.n9_1 = 4;
|
|
2967
2967
|
continue $sm;
|
|
2968
2968
|
case 2:
|
|
2969
|
-
this.
|
|
2970
|
-
var tmp_2 = this.
|
|
2969
|
+
this.o9_1 = 3;
|
|
2970
|
+
var tmp_2 = this.q9_1;
|
|
2971
2971
|
if (tmp_2 instanceof Error) {
|
|
2972
|
-
var cause = this.
|
|
2972
|
+
var cause = this.q9_1;
|
|
2973
2973
|
var tmp_3 = this;
|
|
2974
|
-
tmp_3.
|
|
2975
|
-
this.
|
|
2974
|
+
tmp_3.r5g_1 = null;
|
|
2975
|
+
this.n9_1 = 4;
|
|
2976
2976
|
continue $sm;
|
|
2977
2977
|
} else {
|
|
2978
|
-
throw this.
|
|
2978
|
+
throw this.q9_1;
|
|
2979
2979
|
}
|
|
2980
2980
|
|
|
2981
2981
|
case 3:
|
|
2982
|
-
throw this.
|
|
2982
|
+
throw this.q9_1;
|
|
2983
2983
|
case 4:
|
|
2984
|
-
this.
|
|
2985
|
-
var tmp2_elvis_lhs = this.
|
|
2984
|
+
this.o9_1 = 3;
|
|
2985
|
+
var tmp2_elvis_lhs = this.r5g_1;
|
|
2986
2986
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2987
|
-
this.
|
|
2988
|
-
this.
|
|
2987
|
+
this.k5g_1.y8(message).z8(_Char___init__impl__6a9atx(10));
|
|
2988
|
+
this.k5g_1.y8('BODY END');
|
|
2989
2989
|
return Unit_instance;
|
|
2990
2990
|
}
|
|
2991
2991
|
} catch ($p) {
|
|
2992
2992
|
var e = $p;
|
|
2993
|
-
if (this.
|
|
2993
|
+
if (this.o9_1 === 3) {
|
|
2994
2994
|
throw e;
|
|
2995
2995
|
} else {
|
|
2996
|
-
this.
|
|
2997
|
-
this.
|
|
2996
|
+
this.n9_1 = this.o9_1;
|
|
2997
|
+
this.q9_1 = e;
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
3000
|
while (true);
|
|
3001
3001
|
};
|
|
3002
3002
|
function observe(_this__u8e3s4, log, $completion) {
|
|
3003
3003
|
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
3004
|
-
tmp.
|
|
3005
|
-
tmp.
|
|
3006
|
-
return tmp.
|
|
3004
|
+
tmp.p9_1 = Unit_instance;
|
|
3005
|
+
tmp.q9_1 = null;
|
|
3006
|
+
return tmp.v9();
|
|
3007
3007
|
}
|
|
3008
3008
|
function toReadChannel(_this__u8e3s4) {
|
|
3009
3009
|
var tmp = GlobalScope_instance;
|
|
3010
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
3011
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3010
|
+
var tmp_0 = Dispatchers_getInstance().o12_1;
|
|
3011
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).w1w_1;
|
|
3012
3012
|
}
|
|
3013
3013
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3014
|
-
this.
|
|
3014
|
+
this.p5h_1 = $this_toReadChannel;
|
|
3015
3015
|
CoroutineImpl.call(this, resultContinuation);
|
|
3016
3016
|
}
|
|
3017
|
-
protoOf(toReadChannel$slambda).
|
|
3018
|
-
var tmp = this.
|
|
3019
|
-
tmp.
|
|
3020
|
-
tmp.
|
|
3021
|
-
return tmp.
|
|
3017
|
+
protoOf(toReadChannel$slambda).c3c = function ($this$writer, $completion) {
|
|
3018
|
+
var tmp = this.d3c($this$writer, $completion);
|
|
3019
|
+
tmp.p9_1 = Unit_instance;
|
|
3020
|
+
tmp.q9_1 = null;
|
|
3021
|
+
return tmp.v9();
|
|
3022
3022
|
};
|
|
3023
|
-
protoOf(toReadChannel$slambda).
|
|
3024
|
-
return this.
|
|
3023
|
+
protoOf(toReadChannel$slambda).ja = function (p1, $completion) {
|
|
3024
|
+
return this.c3c(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3025
3025
|
};
|
|
3026
|
-
protoOf(toReadChannel$slambda).
|
|
3027
|
-
var suspendResult = this.
|
|
3026
|
+
protoOf(toReadChannel$slambda).v9 = function () {
|
|
3027
|
+
var suspendResult = this.p9_1;
|
|
3028
3028
|
$sm: do
|
|
3029
3029
|
try {
|
|
3030
|
-
var tmp = this.
|
|
3030
|
+
var tmp = this.n9_1;
|
|
3031
3031
|
switch (tmp) {
|
|
3032
3032
|
case 0:
|
|
3033
|
-
this.
|
|
3034
|
-
this.
|
|
3035
|
-
suspendResult = this.
|
|
3033
|
+
this.o9_1 = 2;
|
|
3034
|
+
this.n9_1 = 1;
|
|
3035
|
+
suspendResult = this.p5h_1.c37(this.q5h_1.y1w_1, this);
|
|
3036
3036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3037
3037
|
return suspendResult;
|
|
3038
3038
|
}
|
|
@@ -3041,96 +3041,96 @@
|
|
|
3041
3041
|
case 1:
|
|
3042
3042
|
return Unit_instance;
|
|
3043
3043
|
case 2:
|
|
3044
|
-
throw this.
|
|
3044
|
+
throw this.q9_1;
|
|
3045
3045
|
}
|
|
3046
3046
|
} catch ($p) {
|
|
3047
3047
|
var e = $p;
|
|
3048
|
-
if (this.
|
|
3048
|
+
if (this.o9_1 === 2) {
|
|
3049
3049
|
throw e;
|
|
3050
3050
|
} else {
|
|
3051
|
-
this.
|
|
3052
|
-
this.
|
|
3051
|
+
this.n9_1 = this.o9_1;
|
|
3052
|
+
this.q9_1 = e;
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
3055
3055
|
while (true);
|
|
3056
3056
|
};
|
|
3057
|
-
protoOf(toReadChannel$slambda).
|
|
3058
|
-
var i = new toReadChannel$slambda(this.
|
|
3059
|
-
i.
|
|
3057
|
+
protoOf(toReadChannel$slambda).d3c = function ($this$writer, completion) {
|
|
3058
|
+
var i = new toReadChannel$slambda(this.p5h_1, completion);
|
|
3059
|
+
i.q5h_1 = $this$writer;
|
|
3060
3060
|
return i;
|
|
3061
3061
|
};
|
|
3062
3062
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3063
3063
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3064
3064
|
var l = function ($this$writer, $completion) {
|
|
3065
|
-
return i.
|
|
3065
|
+
return i.c3c($this$writer, $completion);
|
|
3066
3066
|
};
|
|
3067
3067
|
l.$arity = 1;
|
|
3068
3068
|
return l;
|
|
3069
3069
|
}
|
|
3070
3070
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3071
3071
|
CoroutineImpl.call(this, resultContinuation);
|
|
3072
|
-
this.
|
|
3073
|
-
this.
|
|
3072
|
+
this.b5h_1 = _this__u8e3s4;
|
|
3073
|
+
this.c5h_1 = log;
|
|
3074
3074
|
}
|
|
3075
|
-
protoOf($observeCOROUTINE$).
|
|
3076
|
-
var suspendResult = this.
|
|
3075
|
+
protoOf($observeCOROUTINE$).v9 = function () {
|
|
3076
|
+
var suspendResult = this.p9_1;
|
|
3077
3077
|
$sm: do
|
|
3078
3078
|
try {
|
|
3079
|
-
var tmp = this.
|
|
3079
|
+
var tmp = this.n9_1;
|
|
3080
3080
|
switch (tmp) {
|
|
3081
3081
|
case 0:
|
|
3082
|
-
this.
|
|
3083
|
-
this.
|
|
3084
|
-
var tmp_0 = this.
|
|
3082
|
+
this.o9_1 = 6;
|
|
3083
|
+
this.d5h_1 = this.b5h_1;
|
|
3084
|
+
var tmp_0 = this.d5h_1;
|
|
3085
3085
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
3086
|
-
this.
|
|
3087
|
-
suspendResult = writeFully(this.
|
|
3086
|
+
this.n9_1 = 3;
|
|
3087
|
+
suspendResult = writeFully(this.c5h_1, this.b5h_1.x36(), VOID, VOID, this);
|
|
3088
3088
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3089
3089
|
return suspendResult;
|
|
3090
3090
|
}
|
|
3091
3091
|
continue $sm;
|
|
3092
3092
|
} else {
|
|
3093
|
-
var tmp_1 = this.
|
|
3093
|
+
var tmp_1 = this.d5h_1;
|
|
3094
3094
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
3095
3095
|
var tmp_2 = this;
|
|
3096
3096
|
var responseChannel = new ByteChannel();
|
|
3097
|
-
var content = this.
|
|
3098
|
-
copyToBoth(content, this.
|
|
3099
|
-
tmp_2.
|
|
3100
|
-
this.
|
|
3097
|
+
var content = this.b5h_1.a37();
|
|
3098
|
+
copyToBoth(content, this.c5h_1, responseChannel);
|
|
3099
|
+
tmp_2.e5h_1 = new LoggedContent(this.b5h_1, responseChannel);
|
|
3100
|
+
this.n9_1 = 5;
|
|
3101
3101
|
continue $sm;
|
|
3102
3102
|
} else {
|
|
3103
|
-
var tmp_3 = this.
|
|
3103
|
+
var tmp_3 = this.d5h_1;
|
|
3104
3104
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
3105
3105
|
var tmp_4 = this;
|
|
3106
3106
|
var responseChannel_0 = new ByteChannel();
|
|
3107
|
-
var content_0 = toReadChannel(this.
|
|
3108
|
-
copyToBoth(content_0, this.
|
|
3109
|
-
tmp_4.
|
|
3110
|
-
this.
|
|
3107
|
+
var content_0 = toReadChannel(this.b5h_1);
|
|
3108
|
+
copyToBoth(content_0, this.c5h_1, responseChannel_0);
|
|
3109
|
+
tmp_4.e5h_1 = new LoggedContent(this.b5h_1, responseChannel_0);
|
|
3110
|
+
this.n9_1 = 5;
|
|
3111
3111
|
continue $sm;
|
|
3112
3112
|
} else {
|
|
3113
|
-
var tmp_5 = this.
|
|
3113
|
+
var tmp_5 = this.d5h_1;
|
|
3114
3114
|
if (tmp_5 instanceof ContentWrapper) {
|
|
3115
|
-
this.
|
|
3116
|
-
this.
|
|
3117
|
-
suspendResult = observe(this.
|
|
3115
|
+
this.f5h_1 = this.b5h_1;
|
|
3116
|
+
this.n9_1 = 2;
|
|
3117
|
+
suspendResult = observe(this.b5h_1.g37(), this.c5h_1, this);
|
|
3118
3118
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3119
3119
|
return suspendResult;
|
|
3120
3120
|
}
|
|
3121
3121
|
continue $sm;
|
|
3122
3122
|
} else {
|
|
3123
3123
|
var tmp_6;
|
|
3124
|
-
var tmp_7 = this.
|
|
3124
|
+
var tmp_7 = this.d5h_1;
|
|
3125
3125
|
if (tmp_7 instanceof NoContent) {
|
|
3126
3126
|
tmp_6 = true;
|
|
3127
3127
|
} else {
|
|
3128
|
-
var tmp_8 = this.
|
|
3128
|
+
var tmp_8 = this.d5h_1;
|
|
3129
3129
|
tmp_6 = tmp_8 instanceof ProtocolUpgrade;
|
|
3130
3130
|
}
|
|
3131
3131
|
if (tmp_6) {
|
|
3132
|
-
this.
|
|
3133
|
-
suspendResult = this.
|
|
3132
|
+
this.n9_1 = 1;
|
|
3133
|
+
suspendResult = this.c5h_1.u1o(this);
|
|
3134
3134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3135
3135
|
return suspendResult;
|
|
3136
3136
|
}
|
|
@@ -3146,38 +3146,38 @@
|
|
|
3146
3146
|
|
|
3147
3147
|
break;
|
|
3148
3148
|
case 1:
|
|
3149
|
-
this.
|
|
3150
|
-
this.
|
|
3149
|
+
this.e5h_1 = this.b5h_1;
|
|
3150
|
+
this.n9_1 = 5;
|
|
3151
3151
|
continue $sm;
|
|
3152
3152
|
case 2:
|
|
3153
|
-
this.
|
|
3154
|
-
this.
|
|
3155
|
-
this.
|
|
3153
|
+
this.g5h_1 = suspendResult;
|
|
3154
|
+
this.e5h_1 = this.f5h_1.h37(this.g5h_1);
|
|
3155
|
+
this.n9_1 = 5;
|
|
3156
3156
|
continue $sm;
|
|
3157
3157
|
case 3:
|
|
3158
|
-
this.
|
|
3159
|
-
suspendResult = this.
|
|
3158
|
+
this.n9_1 = 4;
|
|
3159
|
+
suspendResult = this.c5h_1.u1o(this);
|
|
3160
3160
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3161
3161
|
return suspendResult;
|
|
3162
3162
|
}
|
|
3163
3163
|
|
|
3164
3164
|
continue $sm;
|
|
3165
3165
|
case 4:
|
|
3166
|
-
this.
|
|
3167
|
-
this.
|
|
3166
|
+
this.e5h_1 = this.b5h_1;
|
|
3167
|
+
this.n9_1 = 5;
|
|
3168
3168
|
continue $sm;
|
|
3169
3169
|
case 5:
|
|
3170
|
-
return this.
|
|
3170
|
+
return this.e5h_1;
|
|
3171
3171
|
case 6:
|
|
3172
|
-
throw this.
|
|
3172
|
+
throw this.q9_1;
|
|
3173
3173
|
}
|
|
3174
3174
|
} catch ($p) {
|
|
3175
3175
|
var e = $p;
|
|
3176
|
-
if (this.
|
|
3176
|
+
if (this.o9_1 === 6) {
|
|
3177
3177
|
throw e;
|
|
3178
3178
|
} else {
|
|
3179
|
-
this.
|
|
3180
|
-
this.
|
|
3179
|
+
this.n9_1 = this.o9_1;
|
|
3180
|
+
this.q9_1 = e;
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
3183
|
while (true);
|
|
@@ -3207,10 +3207,10 @@
|
|
|
3207
3207
|
return get_SIMPLE(_this__u8e3s4);
|
|
3208
3208
|
}
|
|
3209
3209
|
//region block: post-declaration
|
|
3210
|
-
protoOf(MDCContextElement).
|
|
3211
|
-
protoOf(MDCContextElement).
|
|
3212
|
-
protoOf(MDCContextElement).
|
|
3213
|
-
protoOf(MDCContextElement).
|
|
3210
|
+
protoOf(MDCContextElement).aa = get;
|
|
3211
|
+
protoOf(MDCContextElement).ai = fold;
|
|
3212
|
+
protoOf(MDCContextElement).zh = minusKey;
|
|
3213
|
+
protoOf(MDCContextElement).bi = plus;
|
|
3214
3214
|
//endregion
|
|
3215
3215
|
//region block: init
|
|
3216
3216
|
Companion_instance = new Companion();
|