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