raspberry_games_server_game_logic 1.8.450 → 1.8.453
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 +92 -92
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +823 -783
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1919 -1919
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-ai_module.js +684 -688
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-core.js +2039 -2051
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +19206 -19216
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +756 -669
- package/Logic_Debertz-game_server.js +2258 -2267
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5747 -4874
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +3322 -3271
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +1689 -428
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2253 -2252
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +1626 -1626
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +457 -395
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +6683 -3979
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +2626 -892
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +14 -14
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http-cio.js +2278 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +1274 -1134
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2598 -5514
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +332 -338
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +143 -153
- package/ktor-ktor-serialization.js.map +1 -1
- package/{ktor-ktor-client-js.js → ktor-ktor-sse.js} +2 -2
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +1708 -1141
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +123 -136
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +2 -4
- package/random-library-crypto-rand.js +15 -15
- package/random-library-crypto-rand.js.map +1 -1
- package/random-library-secure-random.js +10 -10
- package/random-library-secure-random.js.map +1 -1
- package/raspberry-cardgame-lib-core.js +365 -366
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +120 -121
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1181 -1207
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +38 -38
- package/uuid.js.map +1 -1
- /package/{ktor-ktor-client-js.js.map → kotlinx-serialization-kotlinx-serialization-json-io.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
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', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-coroutines-core.js', './kotlinx-atomicfu.js', './ktor-ktor-http.js', './ktor-ktor-utils.js', './ktor-ktor-client-core.js', './ktor-ktor-io.js', './kotlinx-io-kotlinx-io-core.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
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('./
|
|
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-utils.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-io.js'), require('./kotlinx-io-kotlinx-io-core.js'));
|
|
6
6
|
else {
|
|
7
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'.");
|
|
@@ -16,83 +16,134 @@
|
|
|
16
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 globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
20
|
+
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'.");
|
|
21
|
+
}
|
|
19
22
|
if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
|
|
20
23
|
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
24
|
}
|
|
22
25
|
if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
|
|
23
26
|
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
27
|
}
|
|
25
|
-
if (typeof globalThis['
|
|
26
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency '
|
|
28
|
+
if (typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined') {
|
|
29
|
+
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'kotlinx-io-kotlinx-io-core' was not found. Please, check whether 'kotlinx-io-kotlinx-io-core' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
27
30
|
}
|
|
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['
|
|
31
|
+
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-utils'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-io'], globalThis['kotlinx-io-kotlinx-io-core']);
|
|
29
32
|
}
|
|
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,
|
|
33
|
+
}(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) {
|
|
31
34
|
'use strict';
|
|
32
35
|
//region block: imports
|
|
33
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
34
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
35
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
37
|
-
var trim = kotlin_kotlin.$_$.
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
39
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
40
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
41
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
43
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
44
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
36
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ya;
|
|
37
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ia;
|
|
38
|
+
var THROW_CCE = kotlin_kotlin.$_$.hi;
|
|
39
|
+
var isCharSequence = kotlin_kotlin.$_$.gd;
|
|
40
|
+
var trim = kotlin_kotlin.$_$.ih;
|
|
41
|
+
var toString = kotlin_kotlin.$_$.zd;
|
|
42
|
+
var Unit_instance = kotlin_kotlin.$_$.h5;
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.wd;
|
|
44
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.xc;
|
|
45
|
+
var charSequenceLength = kotlin_kotlin.$_$.kc;
|
|
46
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
47
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
45
48
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
46
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
49
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.n2;
|
|
50
|
+
var initMetadataForClass = kotlin_kotlin.$_$.vc;
|
|
48
51
|
var VOID = kotlin_kotlin.$_$.b;
|
|
49
|
-
var Enum = kotlin_kotlin.$_$.
|
|
50
|
-
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.
|
|
51
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
52
|
-
var println = kotlin_kotlin.$_$.
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1;
|
|
65
|
-
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
66
|
-
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
67
|
-
var Plugin_getInstance = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
68
|
-
var ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
69
|
-
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
70
|
-
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
71
|
-
var Collection = kotlin_kotlin.$_$.h5;
|
|
72
|
-
var isInterface = kotlin_kotlin.$_$.zc;
|
|
52
|
+
var Enum = kotlin_kotlin.$_$.xh;
|
|
53
|
+
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.wc;
|
|
55
|
+
var println = kotlin_kotlin.$_$.cb;
|
|
56
|
+
var initMetadataForObject = kotlin_kotlin.$_$.bd;
|
|
57
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
58
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
59
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
60
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.pe;
|
|
61
|
+
var Long = kotlin_kotlin.$_$.ci;
|
|
62
|
+
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.q;
|
|
63
|
+
var NoContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
64
|
+
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.o;
|
|
65
|
+
var fromInt = kotlin_kotlin.$_$.ob;
|
|
66
|
+
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.n;
|
|
73
67
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
74
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
75
|
-
var
|
|
68
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ad;
|
|
69
|
+
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
70
|
+
var isSuspendFunction = kotlin_kotlin.$_$.nd;
|
|
71
|
+
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.w;
|
|
72
|
+
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.i;
|
|
73
|
+
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
74
|
+
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.v;
|
|
75
|
+
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
76
|
+
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
77
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
78
|
+
var isInterface = kotlin_kotlin.$_$.kd;
|
|
79
|
+
var writeFully = kotlin_io_ktor_ktor_io.$_$.l;
|
|
80
|
+
var copyTo = kotlin_io_ktor_ktor_io.$_$.b;
|
|
81
|
+
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
82
|
+
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
76
83
|
var readText = kotlin_io_ktor_ktor_io.$_$.z;
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
84
|
+
var Collection = kotlin_kotlin.$_$.j5;
|
|
85
|
+
var toString_0 = kotlin_kotlin.$_$.lj;
|
|
86
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
87
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
88
|
+
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
89
|
+
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
90
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
91
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1;
|
|
92
|
+
var Url = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
93
|
+
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
94
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
95
|
+
var joinToString = kotlin_kotlin.$_$.z7;
|
|
96
|
+
var equals = kotlin_kotlin.$_$.oc;
|
|
97
|
+
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
98
|
+
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
99
|
+
var Triple = kotlin_kotlin.$_$.ji;
|
|
100
|
+
var readAvailable = kotlin_io_ktor_ktor_io.$_$.d;
|
|
101
|
+
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
102
|
+
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
103
|
+
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
104
|
+
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
105
|
+
var charCodeAt = kotlin_kotlin.$_$.ic;
|
|
106
|
+
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
107
|
+
var add = kotlin_kotlin.$_$.eb;
|
|
108
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.gj;
|
|
109
|
+
var split = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
110
|
+
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.s;
|
|
111
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
112
|
+
var URLBuilder = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
113
|
+
var takeFrom = kotlin_io_ktor_ktor_http.$_$.r1;
|
|
114
|
+
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.x;
|
|
115
|
+
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
116
|
+
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
117
|
+
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
118
|
+
var appendAll = kotlin_io_ktor_ktor_utils.$_$.x;
|
|
119
|
+
var toLongOrNull = kotlin_kotlin.$_$.yg;
|
|
120
|
+
var contentLength = kotlin_io_ktor_ktor_http.$_$.i1;
|
|
121
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
122
|
+
var subtract = kotlin_kotlin.$_$.zb;
|
|
123
|
+
var get_request = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
124
|
+
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
125
|
+
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
126
|
+
var getKClass = kotlin_kotlin.$_$.qe;
|
|
127
|
+
var arrayOf = kotlin_kotlin.$_$.vi;
|
|
128
|
+
var createKType = kotlin_kotlin.$_$.oe;
|
|
129
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
130
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
131
|
+
var Unit = kotlin_kotlin.$_$.si;
|
|
132
|
+
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
133
|
+
var toList = kotlin_kotlin.$_$.s9;
|
|
134
|
+
var sortedWith = kotlin_kotlin.$_$.j9;
|
|
135
|
+
var FunctionAdapter = kotlin_kotlin.$_$.bc;
|
|
136
|
+
var Comparator = kotlin_kotlin.$_$.uh;
|
|
137
|
+
var hashCode = kotlin_kotlin.$_$.uc;
|
|
138
|
+
var compareValues = kotlin_kotlin.$_$.ga;
|
|
139
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.s1;
|
|
140
|
+
var WriterScope = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
141
|
+
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
142
|
+
var get = kotlin_kotlin.$_$.ua;
|
|
143
|
+
var fold = kotlin_kotlin.$_$.ta;
|
|
144
|
+
var minusKey = kotlin_kotlin.$_$.va;
|
|
145
|
+
var plus = kotlin_kotlin.$_$.xa;
|
|
146
|
+
var Element = kotlin_kotlin.$_$.wa;
|
|
96
147
|
//endregion
|
|
97
148
|
//region block: pre-declaration
|
|
98
149
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -102,193 +153,216 @@
|
|
|
102
153
|
initMetadataForClass(LogLevel, 'LogLevel', VOID, Enum);
|
|
103
154
|
initMetadataForClass(LoggedContent, 'LoggedContent', VOID, ReadChannelContent);
|
|
104
155
|
initMetadataForCompanion(Companion);
|
|
105
|
-
|
|
106
|
-
initMetadataForClass(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
initMetadataForLambda(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
initMetadataForLambda(
|
|
113
|
-
|
|
156
|
+
initMetadataForObject(SimpleLogger, 'SimpleLogger');
|
|
157
|
+
initMetadataForClass(LoggingConfig, 'LoggingConfig', LoggingConfig);
|
|
158
|
+
initMetadataForClass(LoggingFormat, 'LoggingFormat', VOID, Enum);
|
|
159
|
+
initMetadataForClass(Context, 'Context', VOID, VOID, VOID, [1, 0]);
|
|
160
|
+
initMetadataForLambda(SendHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
161
|
+
initMetadataForObject(SendHook, 'SendHook');
|
|
162
|
+
initMetadataForClass(Context_0, 'Context', VOID, VOID, VOID, [1]);
|
|
163
|
+
initMetadataForLambda(ResponseAfterEncodingHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
164
|
+
initMetadataForObject(ResponseAfterEncodingHook, 'ResponseAfterEncodingHook');
|
|
165
|
+
initMetadataForClass(Context_1, 'Context', VOID, VOID, VOID, [0]);
|
|
166
|
+
initMetadataForLambda(ResponseHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
167
|
+
initMetadataForObject(ResponseHook, 'ResponseHook');
|
|
168
|
+
initMetadataForClass(Context_2, 'Context', VOID, VOID, VOID, [0]);
|
|
169
|
+
initMetadataForLambda(ReceiveHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
170
|
+
initMetadataForObject(ReceiveHook, 'ReceiveHook');
|
|
171
|
+
initMetadataForLambda(Logging$lambda$detectIfBinary$slambda, CoroutineImpl, VOID, [1]);
|
|
172
|
+
initMetadataForLambda(Logging$lambda$logOutgoingContent$slambda, CoroutineImpl, VOID, [1]);
|
|
173
|
+
initMetadataForLambda(Logging$lambda$logRequestBody$slambda, CoroutineImpl, VOID, [1]);
|
|
174
|
+
initMetadataForLambda(Logging$lambda$slambda, CoroutineImpl, VOID, [2]);
|
|
175
|
+
initMetadataForLambda(Logging$lambda$slambda_1, CoroutineImpl, VOID, [2]);
|
|
176
|
+
initMetadataForLambda(Logging$lambda$slambda_3, CoroutineImpl, VOID, [2]);
|
|
177
|
+
initMetadataForLambda(Logging$lambda$slambda_5, CoroutineImpl, VOID, [2]);
|
|
178
|
+
initMetadataForLambda(Logging$lambda$lambda$slambda, CoroutineImpl, VOID, [1]);
|
|
179
|
+
initMetadataForCoroutine($invoke$detectIfBinaryCOROUTINE$, CoroutineImpl);
|
|
180
|
+
initMetadataForCoroutine($invoke$logRequestBodyCOROUTINE$, CoroutineImpl);
|
|
181
|
+
initMetadataForCoroutine($invoke$logOutgoingContentCOROUTINE$, CoroutineImpl);
|
|
182
|
+
initMetadataForCoroutine($invoke$logRequestOkHttpFormatCOROUTINE$, CoroutineImpl);
|
|
183
|
+
initMetadataForCoroutine($invoke$logResponseBodyCOROUTINE$, CoroutineImpl);
|
|
184
|
+
initMetadataForCoroutine($invoke$logResponseOkHttpFormatCOROUTINE$, CoroutineImpl);
|
|
114
185
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
115
186
|
initMetadataForCoroutine($logResponseBodyCOROUTINE$_0, CoroutineImpl);
|
|
187
|
+
initMetadataForCoroutine($appendResponseBodyCOROUTINE$, CoroutineImpl);
|
|
116
188
|
initMetadataForLambda(toReadChannel$slambda, CoroutineImpl, VOID, [1]);
|
|
117
189
|
initMetadataForCoroutine($observeCOROUTINE$, CoroutineImpl);
|
|
190
|
+
initMetadataForObject(MDCContextKey, 'MDCContextKey');
|
|
191
|
+
initMetadataForObject(MDCContextElement, 'MDCContextElement', VOID, VOID, [Element]);
|
|
118
192
|
//endregion
|
|
119
193
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
120
194
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
195
|
+
this.p58_1 = _this__u8e3s4;
|
|
196
|
+
this.q58_1 = message;
|
|
123
197
|
}
|
|
124
|
-
protoOf($logResponseExceptionCOROUTINE$).
|
|
125
|
-
var suspendResult = this.
|
|
198
|
+
protoOf($logResponseExceptionCOROUTINE$).m9 = function () {
|
|
199
|
+
var suspendResult = this.g9_1;
|
|
126
200
|
$sm: do
|
|
127
201
|
try {
|
|
128
|
-
var tmp = this.
|
|
202
|
+
var tmp = this.e9_1;
|
|
129
203
|
switch (tmp) {
|
|
130
204
|
case 0:
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
suspendResult = this.
|
|
205
|
+
this.f9_1 = 2;
|
|
206
|
+
this.e9_1 = 1;
|
|
207
|
+
suspendResult = this.p58_1.u58_1.n1s(this);
|
|
134
208
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
135
209
|
return suspendResult;
|
|
136
210
|
}
|
|
137
211
|
|
|
138
212
|
continue $sm;
|
|
139
213
|
case 1:
|
|
140
|
-
var this_0 = this.
|
|
141
|
-
this.
|
|
214
|
+
var this_0 = this.q58_1;
|
|
215
|
+
this.p58_1.r58_1.y58(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
216
|
return Unit_instance;
|
|
143
217
|
case 2:
|
|
144
|
-
throw this.
|
|
218
|
+
throw this.h9_1;
|
|
145
219
|
}
|
|
146
220
|
} catch ($p) {
|
|
147
221
|
var e = $p;
|
|
148
|
-
if (this.
|
|
222
|
+
if (this.f9_1 === 2) {
|
|
149
223
|
throw e;
|
|
150
224
|
} else {
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
225
|
+
this.e9_1 = this.f9_1;
|
|
226
|
+
this.h9_1 = e;
|
|
153
227
|
}
|
|
154
228
|
}
|
|
155
229
|
while (true);
|
|
156
230
|
};
|
|
157
231
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
158
232
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
233
|
+
this.h59_1 = _this__u8e3s4;
|
|
234
|
+
this.i59_1 = message;
|
|
161
235
|
}
|
|
162
|
-
protoOf($logResponseBodyCOROUTINE$).
|
|
163
|
-
var suspendResult = this.
|
|
236
|
+
protoOf($logResponseBodyCOROUTINE$).m9 = function () {
|
|
237
|
+
var suspendResult = this.g9_1;
|
|
164
238
|
$sm: do
|
|
165
239
|
try {
|
|
166
|
-
var tmp = this.
|
|
240
|
+
var tmp = this.e9_1;
|
|
167
241
|
switch (tmp) {
|
|
168
242
|
case 0:
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
suspendResult = this.
|
|
243
|
+
this.f9_1 = 2;
|
|
244
|
+
this.e9_1 = 1;
|
|
245
|
+
suspendResult = this.h59_1.v58_1.n1s(this);
|
|
172
246
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
173
247
|
return suspendResult;
|
|
174
248
|
}
|
|
175
249
|
|
|
176
250
|
continue $sm;
|
|
177
251
|
case 1:
|
|
178
|
-
this.
|
|
252
|
+
this.h59_1.t58_1.q(this.i59_1);
|
|
179
253
|
return Unit_instance;
|
|
180
254
|
case 2:
|
|
181
|
-
throw this.
|
|
255
|
+
throw this.h9_1;
|
|
182
256
|
}
|
|
183
257
|
} catch ($p) {
|
|
184
258
|
var e = $p;
|
|
185
|
-
if (this.
|
|
259
|
+
if (this.f9_1 === 2) {
|
|
186
260
|
throw e;
|
|
187
261
|
} else {
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
262
|
+
this.e9_1 = this.f9_1;
|
|
263
|
+
this.h9_1 = e;
|
|
190
264
|
}
|
|
191
265
|
}
|
|
192
266
|
while (true);
|
|
193
267
|
};
|
|
194
268
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
195
269
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
270
|
+
this.r59_1 = _this__u8e3s4;
|
|
197
271
|
}
|
|
198
|
-
protoOf($closeResponseLogCOROUTINE$).
|
|
199
|
-
var suspendResult = this.
|
|
272
|
+
protoOf($closeResponseLogCOROUTINE$).m9 = function () {
|
|
273
|
+
var suspendResult = this.g9_1;
|
|
200
274
|
$sm: do
|
|
201
275
|
try {
|
|
202
|
-
var tmp = this.
|
|
276
|
+
var tmp = this.e9_1;
|
|
203
277
|
switch (tmp) {
|
|
204
278
|
case 0:
|
|
205
|
-
this.
|
|
206
|
-
if (!this.
|
|
279
|
+
this.f9_1 = 2;
|
|
280
|
+
if (!this.r59_1.x58_1.atomicfu$compareAndSet(false, true))
|
|
207
281
|
return Unit_instance;
|
|
208
|
-
this.
|
|
209
|
-
suspendResult = this.
|
|
282
|
+
this.e9_1 = 1;
|
|
283
|
+
suspendResult = this.r59_1.u58_1.n1s(this);
|
|
210
284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
285
|
return suspendResult;
|
|
212
286
|
}
|
|
213
287
|
|
|
214
288
|
continue $sm;
|
|
215
289
|
case 1:
|
|
216
|
-
var message = toString(trim(this.
|
|
290
|
+
var message = toString(trim(this.r59_1.t58_1));
|
|
217
291
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
292
|
+
this.r59_1.r58_1.y58(message);
|
|
219
293
|
}
|
|
220
294
|
|
|
221
295
|
return Unit_instance;
|
|
222
296
|
case 2:
|
|
223
|
-
throw this.
|
|
297
|
+
throw this.h9_1;
|
|
224
298
|
}
|
|
225
299
|
} catch ($p) {
|
|
226
300
|
var e = $p;
|
|
227
|
-
if (this.
|
|
301
|
+
if (this.f9_1 === 2) {
|
|
228
302
|
throw e;
|
|
229
303
|
} else {
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
304
|
+
this.e9_1 = this.f9_1;
|
|
305
|
+
this.h9_1 = e;
|
|
232
306
|
}
|
|
233
307
|
}
|
|
234
308
|
while (true);
|
|
235
309
|
};
|
|
236
310
|
function HttpClientCallLogger(logger) {
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
244
|
-
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
246
|
-
var tmp0 = this.
|
|
311
|
+
this.r58_1 = logger;
|
|
312
|
+
this.s58_1 = StringBuilder_init_$Create$();
|
|
313
|
+
this.t58_1 = StringBuilder_init_$Create$();
|
|
314
|
+
this.u58_1 = Job();
|
|
315
|
+
this.v58_1 = Job();
|
|
316
|
+
this.w58_1 = atomic$boolean$1(false);
|
|
317
|
+
this.x58_1 = atomic$boolean$1(false);
|
|
318
|
+
}
|
|
319
|
+
protoOf(HttpClientCallLogger).s59 = function (message) {
|
|
320
|
+
var tmp0 = this.s58_1;
|
|
247
321
|
// Inline function 'kotlin.text.trim' call
|
|
248
322
|
// Inline function 'kotlin.text.appendLine' call
|
|
249
323
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
250
324
|
// Inline function 'kotlin.text.appendLine' call
|
|
251
|
-
tmp0.
|
|
325
|
+
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
252
326
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
254
|
-
var tmp0 = this.
|
|
327
|
+
protoOf(HttpClientCallLogger).t59 = function (message) {
|
|
328
|
+
var tmp0 = this.t58_1;
|
|
255
329
|
// Inline function 'kotlin.text.trim' call
|
|
256
330
|
// Inline function 'kotlin.text.appendLine' call
|
|
257
331
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
258
332
|
// Inline function 'kotlin.text.appendLine' call
|
|
259
|
-
tmp0.
|
|
260
|
-
this.
|
|
333
|
+
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
334
|
+
this.v58_1.o1z();
|
|
261
335
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
336
|
+
protoOf(HttpClientCallLogger).u59 = function (message, $completion) {
|
|
263
337
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
264
|
-
tmp.
|
|
265
|
-
tmp.
|
|
266
|
-
return tmp.
|
|
338
|
+
tmp.g9_1 = Unit_instance;
|
|
339
|
+
tmp.h9_1 = null;
|
|
340
|
+
return tmp.m9();
|
|
267
341
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
342
|
+
protoOf(HttpClientCallLogger).v59 = function (message, $completion) {
|
|
269
343
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
270
|
-
tmp.
|
|
271
|
-
tmp.
|
|
272
|
-
return tmp.
|
|
344
|
+
tmp.g9_1 = Unit_instance;
|
|
345
|
+
tmp.h9_1 = null;
|
|
346
|
+
return tmp.m9();
|
|
273
347
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
348
|
+
protoOf(HttpClientCallLogger).w59 = function () {
|
|
349
|
+
if (!this.w58_1.atomicfu$compareAndSet(false, true))
|
|
276
350
|
return Unit_instance;
|
|
277
351
|
try {
|
|
278
|
-
var message = toString(trim(this.
|
|
352
|
+
var message = toString(trim(this.s58_1));
|
|
279
353
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
354
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
355
|
+
this.r58_1.y58(message);
|
|
282
356
|
}
|
|
283
357
|
}finally {
|
|
284
|
-
this.
|
|
358
|
+
this.u58_1.o1z();
|
|
285
359
|
}
|
|
286
360
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
361
|
+
protoOf(HttpClientCallLogger).x59 = function ($completion) {
|
|
288
362
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
289
|
-
tmp.
|
|
290
|
-
tmp.
|
|
291
|
-
return tmp.
|
|
363
|
+
tmp.g9_1 = Unit_instance;
|
|
364
|
+
tmp.h9_1 = null;
|
|
365
|
+
return tmp.m9();
|
|
292
366
|
};
|
|
293
367
|
var LogLevel_ALL_instance;
|
|
294
368
|
var LogLevel_HEADERS_instance;
|
|
@@ -308,9 +382,9 @@
|
|
|
308
382
|
}
|
|
309
383
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
310
384
|
Enum.call(this, name, ordinal);
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
385
|
+
this.a5a_1 = info;
|
|
386
|
+
this.b5a_1 = headers;
|
|
387
|
+
this.c5a_1 = body;
|
|
314
388
|
}
|
|
315
389
|
function LogLevel_ALL_getInstance() {
|
|
316
390
|
LogLevel_initEntries();
|
|
@@ -320,6 +394,10 @@
|
|
|
320
394
|
LogLevel_initEntries();
|
|
321
395
|
return LogLevel_HEADERS_instance;
|
|
322
396
|
}
|
|
397
|
+
function LogLevel_BODY_getInstance() {
|
|
398
|
+
LogLevel_initEntries();
|
|
399
|
+
return LogLevel_BODY_instance;
|
|
400
|
+
}
|
|
323
401
|
function LogLevel_INFO_getInstance() {
|
|
324
402
|
LogLevel_initEntries();
|
|
325
403
|
return LogLevel_INFO_instance;
|
|
@@ -330,42 +408,46 @@
|
|
|
330
408
|
}
|
|
331
409
|
function LoggedContent(originalContent, channel) {
|
|
332
410
|
ReadChannelContent.call(this);
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
411
|
+
this.e5a_1 = originalContent;
|
|
412
|
+
this.f5a_1 = channel;
|
|
413
|
+
this.g5a_1 = this.e5a_1.b3p();
|
|
414
|
+
this.h5a_1 = this.e5a_1.d3p();
|
|
415
|
+
this.i5a_1 = this.e5a_1.c3p();
|
|
416
|
+
this.j5a_1 = this.e5a_1.n3j();
|
|
339
417
|
}
|
|
340
|
-
protoOf(LoggedContent).
|
|
341
|
-
return this.
|
|
418
|
+
protoOf(LoggedContent).b3p = function () {
|
|
419
|
+
return this.g5a_1;
|
|
342
420
|
};
|
|
343
|
-
protoOf(LoggedContent).
|
|
344
|
-
return this.
|
|
421
|
+
protoOf(LoggedContent).d3p = function () {
|
|
422
|
+
return this.h5a_1;
|
|
345
423
|
};
|
|
346
|
-
protoOf(LoggedContent).
|
|
347
|
-
return this.
|
|
424
|
+
protoOf(LoggedContent).c3p = function () {
|
|
425
|
+
return this.i5a_1;
|
|
348
426
|
};
|
|
349
427
|
protoOf(LoggedContent).n3j = function () {
|
|
350
|
-
return this.
|
|
428
|
+
return this.j5a_1;
|
|
351
429
|
};
|
|
352
|
-
protoOf(LoggedContent).
|
|
353
|
-
return this.
|
|
430
|
+
protoOf(LoggedContent).h3p = function () {
|
|
431
|
+
return this.f5a_1;
|
|
354
432
|
};
|
|
355
433
|
function Companion() {
|
|
356
434
|
}
|
|
357
435
|
var Companion_instance;
|
|
358
|
-
function
|
|
436
|
+
function Companion_getInstance_0() {
|
|
359
437
|
return Companion_instance;
|
|
360
438
|
}
|
|
361
439
|
function get_SIMPLE(_this__u8e3s4) {
|
|
362
|
-
return
|
|
440
|
+
return SimpleLogger_instance;
|
|
363
441
|
}
|
|
364
442
|
function SimpleLogger() {
|
|
365
443
|
}
|
|
366
|
-
protoOf(SimpleLogger).
|
|
444
|
+
protoOf(SimpleLogger).y58 = function (message) {
|
|
367
445
|
println('HttpClient: ' + message);
|
|
368
446
|
};
|
|
447
|
+
var SimpleLogger_instance;
|
|
448
|
+
function SimpleLogger_getInstance() {
|
|
449
|
+
return SimpleLogger_instance;
|
|
450
|
+
}
|
|
369
451
|
function get_ClientCallLogger() {
|
|
370
452
|
_init_properties_Logging_kt__66pui5();
|
|
371
453
|
return ClientCallLogger;
|
|
@@ -376,796 +458,2289 @@
|
|
|
376
458
|
return DisableLogging;
|
|
377
459
|
}
|
|
378
460
|
var DisableLogging;
|
|
379
|
-
function
|
|
461
|
+
function get_Logging() {
|
|
462
|
+
_init_properties_Logging_kt__66pui5();
|
|
463
|
+
return Logging;
|
|
464
|
+
}
|
|
465
|
+
var Logging;
|
|
466
|
+
function LoggingConfig() {
|
|
380
467
|
var tmp = this;
|
|
381
468
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
382
|
-
tmp.
|
|
469
|
+
tmp.k5a_1 = ArrayList_init_$Create$();
|
|
383
470
|
var tmp_0 = this;
|
|
384
471
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
385
|
-
tmp_0.
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
472
|
+
tmp_0.l5a_1 = ArrayList_init_$Create$();
|
|
473
|
+
this.m5a_1 = null;
|
|
474
|
+
this.n5a_1 = LoggingFormat_Default_getInstance();
|
|
475
|
+
this.o5a_1 = LogLevel_HEADERS_getInstance();
|
|
388
476
|
}
|
|
389
|
-
protoOf(
|
|
390
|
-
this.
|
|
477
|
+
protoOf(LoggingConfig).p5a = function (value) {
|
|
478
|
+
this.m5a_1 = value;
|
|
391
479
|
};
|
|
392
|
-
protoOf(
|
|
393
|
-
var tmp0_elvis_lhs = this.
|
|
480
|
+
protoOf(LoggingConfig).q5a = function () {
|
|
481
|
+
var tmp0_elvis_lhs = this.m5a_1;
|
|
394
482
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
395
483
|
};
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
484
|
+
var LoggingFormat_Default_instance;
|
|
485
|
+
var LoggingFormat_OkHttp_instance;
|
|
486
|
+
var LoggingFormat_entriesInitialized;
|
|
487
|
+
function LoggingFormat_initEntries() {
|
|
488
|
+
if (LoggingFormat_entriesInitialized)
|
|
489
|
+
return Unit_instance;
|
|
490
|
+
LoggingFormat_entriesInitialized = true;
|
|
491
|
+
LoggingFormat_Default_instance = new LoggingFormat('Default', 0);
|
|
492
|
+
LoggingFormat_OkHttp_instance = new LoggingFormat('OkHttp', 1);
|
|
399
493
|
}
|
|
400
|
-
function
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
494
|
+
function LoggingFormat(name, ordinal) {
|
|
495
|
+
Enum.call(this, name, ordinal);
|
|
496
|
+
}
|
|
497
|
+
function pathQuery(_this__u8e3s4) {
|
|
498
|
+
_init_properties_Logging_kt__66pui5();
|
|
405
499
|
// Inline function 'kotlin.text.buildString' call
|
|
406
500
|
// Inline function 'kotlin.apply' call
|
|
407
501
|
var this_0 = StringBuilder_init_$Create$();
|
|
408
|
-
if ($this.k4q_1.t4p_1) {
|
|
409
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
410
|
-
var value = 'REQUEST: ' + Url(request.m3s_1).toString();
|
|
411
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
412
|
-
this_0.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
413
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
414
|
-
var value_0 = 'METHOD: ' + request.n3s_1.toString();
|
|
415
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
416
|
-
this_0.d8(value_0).e8(_Char___init__impl__6a9atx(10));
|
|
417
|
-
}
|
|
418
|
-
if ($this.k4q_1.u4p_1) {
|
|
419
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
420
|
-
var value_1 = 'COMMON HEADERS';
|
|
421
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
422
|
-
this_0.d8(value_1).e8(_Char___init__impl__6a9atx(10));
|
|
423
|
-
logHeaders(this_0, request.o3s_1.k39(), $this.m4q_1);
|
|
424
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
425
|
-
var value_2 = 'CONTENT HEADERS';
|
|
426
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
427
|
-
this_0.d8(value_2).e8(_Char___init__impl__6a9atx(10));
|
|
428
|
-
var tmp0 = $this.m4q_1;
|
|
429
|
-
var tmp$ret$9;
|
|
430
|
-
$l$block: {
|
|
431
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
432
|
-
var _iterator__ex2g4s = tmp0.l();
|
|
433
|
-
while (_iterator__ex2g4s.m()) {
|
|
434
|
-
var element = _iterator__ex2g4s.n();
|
|
435
|
-
if (element.o4q_1(HttpHeaders_getInstance().z3f_1)) {
|
|
436
|
-
tmp$ret$9 = element;
|
|
437
|
-
break $l$block;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
tmp$ret$9 = null;
|
|
441
|
-
}
|
|
442
|
-
var tmp0_safe_receiver = tmp$ret$9;
|
|
443
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n4q_1;
|
|
444
|
-
var tmp0_0 = $this.m4q_1;
|
|
445
|
-
var tmp$ret$11;
|
|
446
|
-
$l$block_0: {
|
|
447
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
448
|
-
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
449
|
-
while (_iterator__ex2g4s_0.m()) {
|
|
450
|
-
var element_0 = _iterator__ex2g4s_0.n();
|
|
451
|
-
if (element_0.o4q_1(HttpHeaders_getInstance().c3g_1)) {
|
|
452
|
-
tmp$ret$11 = element_0;
|
|
453
|
-
break $l$block_0;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
tmp$ret$11 = null;
|
|
457
|
-
}
|
|
458
|
-
var tmp1_safe_receiver = tmp$ret$11;
|
|
459
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n4q_1;
|
|
460
|
-
var tmp2_safe_receiver = content.t3o();
|
|
461
|
-
if (tmp2_safe_receiver == null)
|
|
462
|
-
null;
|
|
463
|
-
else {
|
|
464
|
-
// Inline function 'kotlin.let' call
|
|
465
|
-
var tmp_0 = HttpHeaders_getInstance().z3f_1;
|
|
466
|
-
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
467
|
-
}
|
|
468
|
-
var tmp3_safe_receiver = content.r3o();
|
|
469
|
-
if (tmp3_safe_receiver == null)
|
|
470
|
-
null;
|
|
471
|
-
else {
|
|
472
|
-
// Inline function 'kotlin.let' call
|
|
473
|
-
var tmp_1 = HttpHeaders_getInstance().c3g_1;
|
|
474
|
-
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
475
|
-
}
|
|
476
|
-
logHeaders(this_0, content.n3j().k39(), $this.m4q_1);
|
|
477
|
-
}
|
|
478
|
-
var message = this_0.toString();
|
|
479
|
-
// Inline function 'kotlin.text.isNotEmpty' call
|
|
480
|
-
if (charSequenceLength(message) > 0) {
|
|
481
|
-
logger.l4p(message);
|
|
482
|
-
}
|
|
483
|
-
var tmp_2;
|
|
484
502
|
// Inline function 'kotlin.text.isEmpty' call
|
|
485
|
-
|
|
486
|
-
|
|
503
|
+
var this_1 = _this__u8e3s4.o3o();
|
|
504
|
+
if (charSequenceLength(this_1) === 0) {
|
|
505
|
+
this_0.q('/');
|
|
487
506
|
} else {
|
|
488
|
-
|
|
507
|
+
this_0.q(_this__u8e3s4.o3o());
|
|
489
508
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
509
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
510
|
+
var this_2 = _this__u8e3s4.r3o();
|
|
511
|
+
if (!(charSequenceLength(this_2) === 0)) {
|
|
512
|
+
this_0.q('?');
|
|
513
|
+
this_0.q(_this__u8e3s4.r3o());
|
|
493
514
|
}
|
|
494
|
-
return
|
|
495
|
-
}
|
|
496
|
-
function logRequestBody($this, content, logger, $completion) {
|
|
497
|
-
var requestLog = StringBuilder_init_$Create$();
|
|
498
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
499
|
-
var value = 'BODY Content-Type: ' + toString_0(content.r3o());
|
|
500
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
501
|
-
requestLog.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
502
|
-
var tmp0_safe_receiver = content.r3o();
|
|
503
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
504
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().w31_1 : tmp1_elvis_lhs;
|
|
505
|
-
var channel = ByteChannel();
|
|
506
|
-
var tmp = GlobalScope_instance;
|
|
507
|
-
var tmp_0 = Dispatchers_getInstance().c21_1;
|
|
508
|
-
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
509
|
-
tmp_1.h1q(Logging$logRequestBody$lambda(logger, requestLog));
|
|
510
|
-
return observe(content, channel, $completion);
|
|
515
|
+
return this_0.toString();
|
|
511
516
|
}
|
|
512
|
-
function
|
|
513
|
-
|
|
514
|
-
|
|
517
|
+
function computeRequestBodySize(content) {
|
|
518
|
+
_init_properties_Logging_kt__66pui5();
|
|
519
|
+
// Inline function 'kotlin.check' call
|
|
520
|
+
if (!(content instanceof OutgoingContent)) {
|
|
521
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
515
522
|
}
|
|
516
|
-
}
|
|
517
|
-
function setupResponseLogging($this, client) {
|
|
518
|
-
var tmp = Phases_getInstance_0().f3z_1;
|
|
519
|
-
client.q3q_1.t3c(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
520
|
-
var tmp_0 = Phases_getInstance_1().k3t_1;
|
|
521
|
-
client.o3q_1.t3c(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
522
|
-
if (!$this.k4q_1.v4p_1)
|
|
523
|
-
return Unit_instance;
|
|
524
|
-
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
525
|
-
Plugin_getInstance().u4e(new ResponseObserver(observer), client);
|
|
526
|
-
}
|
|
527
|
-
function logResponseException($this, log, request, cause) {
|
|
528
|
-
if (!$this.k4q_1.t4p_1)
|
|
529
|
-
return Unit_instance;
|
|
530
|
-
log.d8('RESPONSE ' + request.v3u().toString() + ' failed with exception: ' + cause.toString());
|
|
531
|
-
}
|
|
532
|
-
function Companion_0() {
|
|
533
|
-
Companion_instance_0 = this;
|
|
534
|
-
this.p4q_1 = new AttributeKey('ClientLogging');
|
|
535
|
-
}
|
|
536
|
-
protoOf(Companion_0).w = function () {
|
|
537
|
-
return this.p4q_1;
|
|
538
|
-
};
|
|
539
|
-
protoOf(Companion_0).q4q = function (block) {
|
|
540
|
-
// Inline function 'kotlin.apply' call
|
|
541
|
-
var this_0 = new Config();
|
|
542
|
-
block(this_0);
|
|
543
|
-
var config = this_0;
|
|
544
|
-
return new Logging(config.i4q(), config.g4q_1, config.d4q_1, config.e4q_1);
|
|
545
|
-
};
|
|
546
|
-
protoOf(Companion_0).r3t = function (block) {
|
|
547
|
-
return this.q4q(block);
|
|
548
|
-
};
|
|
549
|
-
protoOf(Companion_0).r4q = function (plugin, scope) {
|
|
550
|
-
setupRequestLogging(plugin, scope);
|
|
551
|
-
setupResponseLogging(plugin, scope);
|
|
552
|
-
};
|
|
553
|
-
protoOf(Companion_0).s3t = function (plugin, scope) {
|
|
554
|
-
return this.r4q(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
555
|
-
};
|
|
556
|
-
var Companion_instance_0;
|
|
557
|
-
function Companion_getInstance_0() {
|
|
558
|
-
if (Companion_instance_0 == null)
|
|
559
|
-
new Companion_0();
|
|
560
|
-
return Companion_instance_0;
|
|
561
|
-
}
|
|
562
|
-
function shouldBeLogged($this, request) {
|
|
563
523
|
var tmp;
|
|
564
|
-
if (
|
|
565
|
-
tmp =
|
|
524
|
+
if (content instanceof ByteArrayContent) {
|
|
525
|
+
tmp = fromInt(content.e3p().length);
|
|
566
526
|
} else {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
if (isInterface(tmp0, Collection)) {
|
|
573
|
-
tmp_0 = tmp0.r();
|
|
527
|
+
if (content instanceof ContentWrapper) {
|
|
528
|
+
tmp = computeRequestBodySize(content.n3p());
|
|
529
|
+
} else {
|
|
530
|
+
if (content instanceof NoContent) {
|
|
531
|
+
tmp = new Long(0, 0);
|
|
574
532
|
} else {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
581
|
-
var _iterator__ex2g4s = tmp0.l();
|
|
582
|
-
while (_iterator__ex2g4s.m()) {
|
|
583
|
-
var element = _iterator__ex2g4s.n();
|
|
584
|
-
if (element(request)) {
|
|
585
|
-
tmp$ret$0 = true;
|
|
586
|
-
break $l$block_0;
|
|
533
|
+
if (content instanceof ProtocolUpgrade) {
|
|
534
|
+
tmp = new Long(0, 0);
|
|
535
|
+
} else {
|
|
536
|
+
var message = 'Unable to calculate the size for type ' + getKClassFromExpression(content).o();
|
|
537
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
587
538
|
}
|
|
588
539
|
}
|
|
589
|
-
tmp$ret$0 = false;
|
|
590
540
|
}
|
|
591
|
-
tmp = tmp$ret$0;
|
|
592
541
|
}
|
|
593
542
|
return tmp;
|
|
594
543
|
}
|
|
595
|
-
function
|
|
596
|
-
this.
|
|
544
|
+
function Context(context) {
|
|
545
|
+
this.r5a_1 = context;
|
|
546
|
+
}
|
|
547
|
+
protoOf(Context).s5a = function (content, $completion) {
|
|
548
|
+
return this.r5a_1.v3a(content, $completion);
|
|
549
|
+
};
|
|
550
|
+
protoOf(Context).t5a = function ($completion) {
|
|
551
|
+
return this.r5a_1.w3a($completion);
|
|
552
|
+
};
|
|
553
|
+
function SendHook$install$slambda($handler, resultContinuation) {
|
|
554
|
+
this.c5b_1 = $handler;
|
|
597
555
|
CoroutineImpl.call(this, resultContinuation);
|
|
598
556
|
}
|
|
599
|
-
protoOf(
|
|
600
|
-
var tmp = this.
|
|
601
|
-
tmp.
|
|
602
|
-
tmp.
|
|
603
|
-
return tmp.
|
|
557
|
+
protoOf(SendHook$install$slambda).q3z = function ($this$intercept, it, $completion) {
|
|
558
|
+
var tmp = this.r3z($this$intercept, it, $completion);
|
|
559
|
+
tmp.g9_1 = Unit_instance;
|
|
560
|
+
tmp.h9_1 = null;
|
|
561
|
+
return tmp.m9();
|
|
604
562
|
};
|
|
605
|
-
protoOf(
|
|
563
|
+
protoOf(SendHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
606
564
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
607
|
-
return this.
|
|
565
|
+
return this.q3z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
608
566
|
};
|
|
609
|
-
protoOf(
|
|
610
|
-
var suspendResult = this.
|
|
567
|
+
protoOf(SendHook$install$slambda).m9 = function () {
|
|
568
|
+
var suspendResult = this.g9_1;
|
|
611
569
|
$sm: do
|
|
612
570
|
try {
|
|
613
|
-
var tmp = this.
|
|
571
|
+
var tmp = this.e9_1;
|
|
614
572
|
switch (tmp) {
|
|
615
573
|
case 0:
|
|
616
|
-
this.
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
return Unit_instance;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
this.t8_1 = 2;
|
|
623
|
-
this.s8_1 = 1;
|
|
624
|
-
suspendResult = logRequest(this.a4r_1, this.b4r_1.p3c_1, this);
|
|
574
|
+
this.f9_1 = 2;
|
|
575
|
+
this.e9_1 = 1;
|
|
576
|
+
suspendResult = this.c5b_1(new Context(this.d5b_1), this.d5b_1.r3b_1, this);
|
|
625
577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
626
578
|
return suspendResult;
|
|
627
579
|
}
|
|
628
580
|
|
|
629
581
|
continue $sm;
|
|
630
582
|
case 1:
|
|
631
|
-
this.e4r_1 = suspendResult;
|
|
632
|
-
this.t8_1 = 8;
|
|
633
|
-
this.s8_1 = 3;
|
|
634
|
-
continue $sm;
|
|
635
|
-
case 2:
|
|
636
|
-
this.t8_1 = 8;
|
|
637
|
-
var tmp_0 = this.v8_1;
|
|
638
|
-
if (tmp_0 instanceof Error) {
|
|
639
|
-
var _ = this.v8_1;
|
|
640
|
-
var tmp_1 = this;
|
|
641
|
-
tmp_1.e4r_1 = null;
|
|
642
|
-
this.s8_1 = 3;
|
|
643
|
-
continue $sm;
|
|
644
|
-
} else {
|
|
645
|
-
throw this.v8_1;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
case 3:
|
|
649
|
-
this.t8_1 = 8;
|
|
650
|
-
this.d4r_1 = this.e4r_1;
|
|
651
|
-
this.s8_1 = 4;
|
|
652
|
-
continue $sm;
|
|
653
|
-
case 4:
|
|
654
|
-
this.t8_1 = 7;
|
|
655
|
-
this.t8_1 = 6;
|
|
656
|
-
this.s8_1 = 5;
|
|
657
|
-
var tmp0_elvis_lhs = this.d4r_1;
|
|
658
|
-
suspendResult = this.b4r_1.t3b(tmp0_elvis_lhs == null ? this.b4r_1.s3b() : tmp0_elvis_lhs, this);
|
|
659
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
660
|
-
return suspendResult;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
continue $sm;
|
|
664
|
-
case 5:
|
|
665
|
-
this.t8_1 = 8;
|
|
666
|
-
this.s8_1 = 9;
|
|
667
|
-
continue $sm;
|
|
668
|
-
case 6:
|
|
669
|
-
this.t8_1 = 7;
|
|
670
|
-
var tmp_2 = this.v8_1;
|
|
671
|
-
if (tmp_2 instanceof Error) {
|
|
672
|
-
var cause = this.v8_1;
|
|
673
|
-
logRequestException(this.a4r_1, this.b4r_1.p3c_1, cause);
|
|
674
|
-
throw cause;
|
|
675
|
-
} else {
|
|
676
|
-
throw this.v8_1;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
case 7:
|
|
680
|
-
this.t8_1 = 8;
|
|
681
|
-
var t = this.v8_1;
|
|
682
|
-
throw t;
|
|
683
|
-
case 8:
|
|
684
|
-
throw this.v8_1;
|
|
685
|
-
case 9:
|
|
686
|
-
this.t8_1 = 8;
|
|
687
583
|
return Unit_instance;
|
|
584
|
+
case 2:
|
|
585
|
+
throw this.h9_1;
|
|
688
586
|
}
|
|
689
587
|
} catch ($p) {
|
|
690
588
|
var e = $p;
|
|
691
|
-
if (this.
|
|
589
|
+
if (this.f9_1 === 2) {
|
|
692
590
|
throw e;
|
|
693
591
|
} else {
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
592
|
+
this.e9_1 = this.f9_1;
|
|
593
|
+
this.h9_1 = e;
|
|
696
594
|
}
|
|
697
595
|
}
|
|
698
596
|
while (true);
|
|
699
597
|
};
|
|
700
|
-
protoOf(
|
|
701
|
-
var i = new
|
|
702
|
-
i.
|
|
703
|
-
i.
|
|
598
|
+
protoOf(SendHook$install$slambda).r3z = function ($this$intercept, it, completion) {
|
|
599
|
+
var i = new SendHook$install$slambda(this.c5b_1, completion);
|
|
600
|
+
i.d5b_1 = $this$intercept;
|
|
601
|
+
i.e5b_1 = it;
|
|
704
602
|
return i;
|
|
705
603
|
};
|
|
706
|
-
function
|
|
707
|
-
var i = new
|
|
604
|
+
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
605
|
+
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
708
606
|
var l = function ($this$intercept, it, $completion) {
|
|
709
|
-
return i.
|
|
607
|
+
return i.q3z($this$intercept, it, $completion);
|
|
710
608
|
};
|
|
711
609
|
l.$arity = 2;
|
|
712
610
|
return l;
|
|
713
611
|
}
|
|
714
|
-
function
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
612
|
+
function SendHook() {
|
|
613
|
+
}
|
|
614
|
+
protoOf(SendHook).f5b = function (client, handler) {
|
|
615
|
+
var tmp = Phases_getInstance().h41_1;
|
|
616
|
+
client.z3y_1.v3b(tmp, SendHook$install$slambda_0(handler, null));
|
|
617
|
+
};
|
|
618
|
+
protoOf(SendHook).g48 = function (client, handler) {
|
|
619
|
+
return this.f5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
620
|
+
};
|
|
621
|
+
var SendHook_instance;
|
|
622
|
+
function SendHook_getInstance() {
|
|
623
|
+
return SendHook_instance;
|
|
624
|
+
}
|
|
625
|
+
function Context_0(context) {
|
|
626
|
+
this.g5b_1 = context;
|
|
627
|
+
}
|
|
628
|
+
protoOf(Context_0).r4w = function (response, $completion) {
|
|
629
|
+
return this.g5b_1.v3a(response, $completion);
|
|
630
|
+
};
|
|
631
|
+
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
632
|
+
this.p5b_1 = $handler;
|
|
718
633
|
CoroutineImpl.call(this, resultContinuation);
|
|
719
634
|
}
|
|
720
|
-
protoOf(
|
|
721
|
-
var tmp = this.
|
|
722
|
-
tmp.
|
|
723
|
-
tmp.
|
|
724
|
-
return tmp.
|
|
635
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).s48 = function ($this$intercept, it, $completion) {
|
|
636
|
+
var tmp = this.t48($this$intercept, it, $completion);
|
|
637
|
+
tmp.g9_1 = Unit_instance;
|
|
638
|
+
tmp.h9_1 = null;
|
|
639
|
+
return tmp.m9();
|
|
725
640
|
};
|
|
726
|
-
protoOf(
|
|
727
|
-
|
|
641
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
642
|
+
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
643
|
+
return this.s48(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
728
644
|
};
|
|
729
|
-
protoOf(
|
|
730
|
-
var suspendResult = this.
|
|
645
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).m9 = function () {
|
|
646
|
+
var suspendResult = this.g9_1;
|
|
731
647
|
$sm: do
|
|
732
648
|
try {
|
|
733
|
-
var tmp = this.
|
|
649
|
+
var tmp = this.e9_1;
|
|
734
650
|
switch (tmp) {
|
|
735
651
|
case 0:
|
|
736
|
-
this.
|
|
737
|
-
|
|
738
|
-
this.
|
|
739
|
-
this.t8_1 = 2;
|
|
740
|
-
this.s8_1 = 1;
|
|
741
|
-
suspendResult = tmp0.k2x(VOID, this);
|
|
652
|
+
this.f9_1 = 2;
|
|
653
|
+
this.e9_1 = 1;
|
|
654
|
+
suspendResult = this.p5b_1(new Context_0(this.q5b_1), this.q5b_1.u3a(), this);
|
|
742
655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
743
656
|
return suspendResult;
|
|
744
657
|
}
|
|
745
658
|
|
|
746
659
|
continue $sm;
|
|
747
660
|
case 1:
|
|
748
|
-
var ARGUMENT = suspendResult;
|
|
749
|
-
this.r4r_1 = readText(ARGUMENT, this.s4r_1);
|
|
750
|
-
this.t8_1 = 3;
|
|
751
|
-
this.s8_1 = 4;
|
|
752
|
-
continue $sm;
|
|
753
|
-
case 2:
|
|
754
|
-
this.t8_1 = 3;
|
|
755
|
-
var tmp_0 = this.v8_1;
|
|
756
|
-
if (tmp_0 instanceof Error) {
|
|
757
|
-
var cause = this.v8_1;
|
|
758
|
-
var tmp_1 = this;
|
|
759
|
-
tmp_1.r4r_1 = null;
|
|
760
|
-
this.s8_1 = 4;
|
|
761
|
-
continue $sm;
|
|
762
|
-
} else {
|
|
763
|
-
throw this.v8_1;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
case 3:
|
|
767
|
-
throw this.v8_1;
|
|
768
|
-
case 4:
|
|
769
|
-
this.t8_1 = 3;
|
|
770
|
-
var tmp0_elvis_lhs = this.r4r_1;
|
|
771
|
-
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
772
|
-
var tmp0_0 = this.p4r_1;
|
|
773
|
-
var value = 'BODY START';
|
|
774
|
-
tmp0_0.d8(value).e8(_Char___init__impl__6a9atx(10));
|
|
775
|
-
this.p4r_1.d8(text).e8(_Char___init__impl__6a9atx(10));
|
|
776
|
-
this.p4r_1.d8('BODY END');
|
|
777
661
|
return Unit_instance;
|
|
662
|
+
case 2:
|
|
663
|
+
throw this.h9_1;
|
|
778
664
|
}
|
|
779
665
|
} catch ($p) {
|
|
780
666
|
var e = $p;
|
|
781
|
-
if (this.
|
|
667
|
+
if (this.f9_1 === 2) {
|
|
782
668
|
throw e;
|
|
783
669
|
} else {
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
670
|
+
this.e9_1 = this.f9_1;
|
|
671
|
+
this.h9_1 = e;
|
|
786
672
|
}
|
|
787
673
|
}
|
|
788
674
|
while (true);
|
|
789
675
|
};
|
|
790
|
-
protoOf(
|
|
791
|
-
var i = new
|
|
792
|
-
i.
|
|
676
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).t48 = function ($this$intercept, it, completion) {
|
|
677
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.p5b_1, completion);
|
|
678
|
+
i.q5b_1 = $this$intercept;
|
|
679
|
+
i.r5b_1 = it;
|
|
793
680
|
return i;
|
|
794
681
|
};
|
|
795
|
-
function
|
|
796
|
-
var i = new
|
|
797
|
-
var l = function ($this$
|
|
798
|
-
return i.
|
|
682
|
+
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
683
|
+
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
684
|
+
var l = function ($this$intercept, it, $completion) {
|
|
685
|
+
return i.s48($this$intercept, it, $completion);
|
|
799
686
|
};
|
|
800
|
-
l.$arity =
|
|
687
|
+
l.$arity = 2;
|
|
801
688
|
return l;
|
|
802
689
|
}
|
|
803
|
-
function
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
690
|
+
function ResponseAfterEncodingHook() {
|
|
691
|
+
}
|
|
692
|
+
protoOf(ResponseAfterEncodingHook).s5b = function (client, handler) {
|
|
693
|
+
var afterState = new PipelinePhase('AfterState');
|
|
694
|
+
client.a3z_1.s3b(Phases_getInstance_0().w48_1, afterState);
|
|
695
|
+
client.a3z_1.v3b(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
696
|
+
};
|
|
697
|
+
protoOf(ResponseAfterEncodingHook).g48 = function (client, handler) {
|
|
698
|
+
return this.s5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
699
|
+
};
|
|
700
|
+
var ResponseAfterEncodingHook_instance;
|
|
701
|
+
function ResponseAfterEncodingHook_getInstance() {
|
|
702
|
+
return ResponseAfterEncodingHook_instance;
|
|
809
703
|
}
|
|
810
|
-
function
|
|
811
|
-
this.
|
|
704
|
+
function Context_1(context) {
|
|
705
|
+
this.t5b_1 = context;
|
|
706
|
+
}
|
|
707
|
+
protoOf(Context_1).u5b = function ($completion) {
|
|
708
|
+
return this.t5b_1.w3a($completion);
|
|
709
|
+
};
|
|
710
|
+
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
711
|
+
this.d5c_1 = $handler;
|
|
812
712
|
CoroutineImpl.call(this, resultContinuation);
|
|
813
713
|
}
|
|
814
|
-
protoOf(
|
|
815
|
-
var tmp = this.
|
|
816
|
-
tmp.
|
|
817
|
-
tmp.
|
|
818
|
-
return tmp.
|
|
714
|
+
protoOf(ResponseHook$install$slambda).s48 = function ($this$intercept, it, $completion) {
|
|
715
|
+
var tmp = this.t48($this$intercept, it, $completion);
|
|
716
|
+
tmp.g9_1 = Unit_instance;
|
|
717
|
+
tmp.h9_1 = null;
|
|
718
|
+
return tmp.m9();
|
|
819
719
|
};
|
|
820
|
-
protoOf(
|
|
720
|
+
protoOf(ResponseHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
821
721
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
822
|
-
return this.
|
|
722
|
+
return this.s48(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
823
723
|
};
|
|
824
|
-
protoOf(
|
|
825
|
-
var suspendResult = this.
|
|
724
|
+
protoOf(ResponseHook$install$slambda).m9 = function () {
|
|
725
|
+
var suspendResult = this.g9_1;
|
|
826
726
|
$sm: do
|
|
827
727
|
try {
|
|
828
|
-
var tmp = this.
|
|
728
|
+
var tmp = this.e9_1;
|
|
829
729
|
switch (tmp) {
|
|
830
730
|
case 0:
|
|
831
|
-
this.
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
this.e4s_1 = this.d4s_1.q3v().b3u().o35(get_ClientCallLogger());
|
|
835
|
-
this.g4s_1 = StringBuilder_init_$Create$();
|
|
836
|
-
this.f4s_1 = false;
|
|
837
|
-
this.s8_1 = 1;
|
|
838
|
-
continue $sm;
|
|
839
|
-
case 1:
|
|
840
|
-
this.t8_1 = 4;
|
|
841
|
-
this.t8_1 = 3;
|
|
842
|
-
logResponseHeader(this.g4s_1, this.d4s_1.q3v().n3r(), this.b4s_1.k4q_1, this.b4s_1.m4q_1);
|
|
843
|
-
this.s8_1 = 2;
|
|
844
|
-
suspendResult = this.c4s_1.t3b(this.c4s_1.s3b(), this);
|
|
731
|
+
this.f9_1 = 2;
|
|
732
|
+
this.e9_1 = 1;
|
|
733
|
+
suspendResult = this.d5c_1(new Context_1(this.e5c_1), this.e5c_1.u3a(), this);
|
|
845
734
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
846
735
|
return suspendResult;
|
|
847
736
|
}
|
|
848
737
|
|
|
849
738
|
continue $sm;
|
|
850
|
-
case
|
|
851
|
-
this.t8_1 = 10;
|
|
852
|
-
this.s8_1 = 7;
|
|
853
|
-
continue $sm;
|
|
854
|
-
case 3:
|
|
855
|
-
this.t8_1 = 4;
|
|
856
|
-
var tmp_0 = this.v8_1;
|
|
857
|
-
if (tmp_0 instanceof Error) {
|
|
858
|
-
var cause = this.v8_1;
|
|
859
|
-
logResponseException(this.b4s_1, this.g4s_1, this.d4s_1.q3v().t3u(), cause);
|
|
860
|
-
this.f4s_1 = true;
|
|
861
|
-
throw cause;
|
|
862
|
-
} else {
|
|
863
|
-
throw this.v8_1;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
case 4:
|
|
867
|
-
this.t8_1 = 10;
|
|
868
|
-
this.h4s_1 = this.v8_1;
|
|
869
|
-
this.e4s_1.m4p(this.g4s_1.toString());
|
|
870
|
-
if (this.f4s_1 || !this.b4s_1.k4q_1.v4p_1) {
|
|
871
|
-
this.s8_1 = 5;
|
|
872
|
-
suspendResult = this.e4s_1.q4p(this);
|
|
873
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
874
|
-
return suspendResult;
|
|
875
|
-
}
|
|
876
|
-
continue $sm;
|
|
877
|
-
} else {
|
|
878
|
-
this.s8_1 = 6;
|
|
879
|
-
continue $sm;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
case 5:
|
|
883
|
-
this.s8_1 = 6;
|
|
884
|
-
continue $sm;
|
|
885
|
-
case 6:
|
|
886
|
-
throw this.h4s_1;
|
|
887
|
-
case 7:
|
|
888
|
-
this.t8_1 = 10;
|
|
889
|
-
this.e4s_1.m4p(this.g4s_1.toString());
|
|
890
|
-
if (this.f4s_1 || !this.b4s_1.k4q_1.v4p_1) {
|
|
891
|
-
this.s8_1 = 8;
|
|
892
|
-
suspendResult = this.e4s_1.q4p(this);
|
|
893
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
894
|
-
return suspendResult;
|
|
895
|
-
}
|
|
896
|
-
continue $sm;
|
|
897
|
-
} else {
|
|
898
|
-
this.s8_1 = 9;
|
|
899
|
-
continue $sm;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
case 8:
|
|
903
|
-
this.s8_1 = 9;
|
|
904
|
-
continue $sm;
|
|
905
|
-
case 9:
|
|
739
|
+
case 1:
|
|
906
740
|
return Unit_instance;
|
|
907
|
-
case
|
|
908
|
-
throw this.
|
|
741
|
+
case 2:
|
|
742
|
+
throw this.h9_1;
|
|
909
743
|
}
|
|
910
744
|
} catch ($p) {
|
|
911
745
|
var e = $p;
|
|
912
|
-
if (this.
|
|
746
|
+
if (this.f9_1 === 2) {
|
|
913
747
|
throw e;
|
|
914
748
|
} else {
|
|
915
|
-
this.
|
|
916
|
-
this.
|
|
749
|
+
this.e9_1 = this.f9_1;
|
|
750
|
+
this.h9_1 = e;
|
|
917
751
|
}
|
|
918
752
|
}
|
|
919
753
|
while (true);
|
|
920
754
|
};
|
|
921
|
-
protoOf(
|
|
922
|
-
var i = new
|
|
923
|
-
i.
|
|
924
|
-
i.
|
|
755
|
+
protoOf(ResponseHook$install$slambda).t48 = function ($this$intercept, it, completion) {
|
|
756
|
+
var i = new ResponseHook$install$slambda(this.d5c_1, completion);
|
|
757
|
+
i.e5c_1 = $this$intercept;
|
|
758
|
+
i.f5c_1 = it;
|
|
925
759
|
return i;
|
|
926
760
|
};
|
|
927
|
-
function
|
|
928
|
-
var i = new
|
|
929
|
-
var l = function ($this$intercept,
|
|
930
|
-
return i.
|
|
761
|
+
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
762
|
+
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
763
|
+
var l = function ($this$intercept, it, $completion) {
|
|
764
|
+
return i.s48($this$intercept, it, $completion);
|
|
931
765
|
};
|
|
932
766
|
l.$arity = 2;
|
|
933
767
|
return l;
|
|
934
768
|
}
|
|
935
|
-
function
|
|
936
|
-
|
|
769
|
+
function ResponseHook() {
|
|
770
|
+
}
|
|
771
|
+
protoOf(ResponseHook).g5c = function (client, handler) {
|
|
772
|
+
var tmp = Phases_getInstance_0().w48_1;
|
|
773
|
+
client.a3z_1.v3b(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
774
|
+
};
|
|
775
|
+
protoOf(ResponseHook).g48 = function (client, handler) {
|
|
776
|
+
return this.g5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
777
|
+
};
|
|
778
|
+
var ResponseHook_instance;
|
|
779
|
+
function ResponseHook_getInstance() {
|
|
780
|
+
return ResponseHook_instance;
|
|
781
|
+
}
|
|
782
|
+
function Context_2(context) {
|
|
783
|
+
this.h5c_1 = context;
|
|
784
|
+
}
|
|
785
|
+
protoOf(Context_2).i5c = function ($completion) {
|
|
786
|
+
return this.h5c_1.w3a($completion);
|
|
787
|
+
};
|
|
788
|
+
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
789
|
+
this.r5c_1 = $handler;
|
|
937
790
|
CoroutineImpl.call(this, resultContinuation);
|
|
938
791
|
}
|
|
939
|
-
protoOf(
|
|
940
|
-
var tmp = this.
|
|
941
|
-
tmp.
|
|
942
|
-
tmp.
|
|
943
|
-
return tmp.
|
|
792
|
+
protoOf(ReceiveHook$install$slambda).l40 = function ($this$intercept, it, $completion) {
|
|
793
|
+
var tmp = this.m40($this$intercept, it, $completion);
|
|
794
|
+
tmp.g9_1 = Unit_instance;
|
|
795
|
+
tmp.h9_1 = null;
|
|
796
|
+
return tmp.m9();
|
|
944
797
|
};
|
|
945
|
-
protoOf(
|
|
798
|
+
protoOf(ReceiveHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
946
799
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
947
|
-
return this.
|
|
800
|
+
return this.l40(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
948
801
|
};
|
|
949
|
-
protoOf(
|
|
950
|
-
var suspendResult = this.
|
|
802
|
+
protoOf(ReceiveHook$install$slambda).m9 = function () {
|
|
803
|
+
var suspendResult = this.g9_1;
|
|
951
804
|
$sm: do
|
|
952
805
|
try {
|
|
953
|
-
var tmp = this.
|
|
806
|
+
var tmp = this.e9_1;
|
|
954
807
|
switch (tmp) {
|
|
955
808
|
case 0:
|
|
956
|
-
this.
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
this.t8_1 = 3;
|
|
962
|
-
this.s8_1 = 1;
|
|
963
|
-
suspendResult = this.r4s_1.u3b(this);
|
|
809
|
+
this.f9_1 = 2;
|
|
810
|
+
this.e9_1 = 1;
|
|
811
|
+
suspendResult = this.r5c_1(new Context_2(this.s5c_1), this.s5c_1.r3b_1, this);
|
|
964
812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
813
|
return suspendResult;
|
|
966
814
|
}
|
|
967
815
|
|
|
968
816
|
continue $sm;
|
|
969
817
|
case 1:
|
|
970
|
-
this.t8_1 = 6;
|
|
971
|
-
this.s8_1 = 2;
|
|
972
|
-
continue $sm;
|
|
973
|
-
case 2:
|
|
974
|
-
this.t8_1 = 6;
|
|
975
818
|
return Unit_instance;
|
|
976
|
-
case
|
|
977
|
-
this.
|
|
978
|
-
var tmp_0 = this.v8_1;
|
|
979
|
-
if (tmp_0 instanceof Error) {
|
|
980
|
-
this.t4s_1 = this.v8_1;
|
|
981
|
-
var log = StringBuilder_init_$Create$();
|
|
982
|
-
this.u4s_1 = this.r4s_1.p3c_1.b3u().o35(get_ClientCallLogger());
|
|
983
|
-
logResponseException(this.q4s_1, log, this.r4s_1.p3c_1.t3u(), this.t4s_1);
|
|
984
|
-
this.s8_1 = 4;
|
|
985
|
-
suspendResult = this.u4s_1.n4p(log.toString(), this);
|
|
986
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
987
|
-
return suspendResult;
|
|
988
|
-
}
|
|
989
|
-
continue $sm;
|
|
990
|
-
} else {
|
|
991
|
-
throw this.v8_1;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
case 4:
|
|
995
|
-
this.s8_1 = 5;
|
|
996
|
-
suspendResult = this.u4s_1.q4p(this);
|
|
997
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
998
|
-
return suspendResult;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
continue $sm;
|
|
1002
|
-
case 5:
|
|
1003
|
-
throw this.t4s_1;
|
|
1004
|
-
case 6:
|
|
1005
|
-
throw this.v8_1;
|
|
819
|
+
case 2:
|
|
820
|
+
throw this.h9_1;
|
|
1006
821
|
}
|
|
1007
822
|
} catch ($p) {
|
|
1008
823
|
var e = $p;
|
|
1009
|
-
if (this.
|
|
824
|
+
if (this.f9_1 === 2) {
|
|
1010
825
|
throw e;
|
|
1011
826
|
} else {
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
827
|
+
this.e9_1 = this.f9_1;
|
|
828
|
+
this.h9_1 = e;
|
|
1014
829
|
}
|
|
1015
830
|
}
|
|
1016
831
|
while (true);
|
|
1017
832
|
};
|
|
1018
|
-
protoOf(
|
|
1019
|
-
var i = new
|
|
1020
|
-
i.
|
|
1021
|
-
i.
|
|
833
|
+
protoOf(ReceiveHook$install$slambda).m40 = function ($this$intercept, it, completion) {
|
|
834
|
+
var i = new ReceiveHook$install$slambda(this.r5c_1, completion);
|
|
835
|
+
i.s5c_1 = $this$intercept;
|
|
836
|
+
i.t5c_1 = it;
|
|
1022
837
|
return i;
|
|
1023
838
|
};
|
|
1024
|
-
function
|
|
1025
|
-
var i = new
|
|
839
|
+
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
840
|
+
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1026
841
|
var l = function ($this$intercept, it, $completion) {
|
|
1027
|
-
return i.
|
|
842
|
+
return i.l40($this$intercept, it, $completion);
|
|
1028
843
|
};
|
|
1029
844
|
l.$arity = 2;
|
|
1030
845
|
return l;
|
|
1031
846
|
}
|
|
1032
|
-
function
|
|
1033
|
-
this.d4t_1 = this$0;
|
|
1034
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
847
|
+
function ReceiveHook() {
|
|
1035
848
|
}
|
|
1036
|
-
protoOf(
|
|
1037
|
-
var tmp =
|
|
1038
|
-
tmp
|
|
1039
|
-
tmp.v8_1 = null;
|
|
1040
|
-
return tmp.a9();
|
|
849
|
+
protoOf(ReceiveHook).u5c = function (client, handler) {
|
|
850
|
+
var tmp = Phases_getInstance_1().v41_1;
|
|
851
|
+
client.y3y_1.v3b(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1041
852
|
};
|
|
1042
|
-
protoOf(
|
|
1043
|
-
return this.
|
|
853
|
+
protoOf(ReceiveHook).g48 = function (client, handler) {
|
|
854
|
+
return this.u5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1044
855
|
};
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
856
|
+
var ReceiveHook_instance;
|
|
857
|
+
function ReceiveHook_getInstance() {
|
|
858
|
+
return ReceiveHook_instance;
|
|
859
|
+
}
|
|
860
|
+
function LoggingConfig$_init_$ref_f1nb0k() {
|
|
861
|
+
var l = function () {
|
|
862
|
+
return new LoggingConfig();
|
|
863
|
+
};
|
|
864
|
+
l.callableName = '<init>';
|
|
865
|
+
return l;
|
|
866
|
+
}
|
|
867
|
+
function Logging$lambda($this$createClientPlugin) {
|
|
868
|
+
_init_properties_Logging_kt__66pui5();
|
|
869
|
+
var logger = $this$createClientPlugin.a49_1.q5a();
|
|
870
|
+
var level = $this$createClientPlugin.a49_1.o5a_1;
|
|
871
|
+
var filters = $this$createClientPlugin.a49_1.k5a_1;
|
|
872
|
+
var sanitizedHeaders = $this$createClientPlugin.a49_1.l5a_1;
|
|
873
|
+
var okHttpFormat = $this$createClientPlugin.a49_1.n5a_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
874
|
+
var tmp = SendHook_instance;
|
|
875
|
+
$this$createClientPlugin.d49(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
876
|
+
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
877
|
+
$this$createClientPlugin.d49(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
878
|
+
var tmp_1 = ResponseHook_instance;
|
|
879
|
+
$this$createClientPlugin.d49(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
880
|
+
var tmp_2 = ReceiveHook_instance;
|
|
881
|
+
$this$createClientPlugin.d49(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
882
|
+
if (okHttpFormat)
|
|
883
|
+
return Unit_instance;
|
|
884
|
+
if (!level.c5a_1)
|
|
885
|
+
return Unit_instance;
|
|
886
|
+
var tmp_3 = get_ResponseObserver();
|
|
887
|
+
var responseObserver = tmp_3.c42(Logging$lambda$lambda(level));
|
|
888
|
+
get_ResponseObserver().d42(responseObserver, $this$createClientPlugin.z48_1);
|
|
889
|
+
return Unit_instance;
|
|
890
|
+
}
|
|
891
|
+
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
892
|
+
this.d5d_1 = $channel;
|
|
893
|
+
this.e5d_1 = $firstChunk;
|
|
894
|
+
this.f5d_1 = $firstReadSize;
|
|
895
|
+
this.g5d_1 = $body;
|
|
896
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
897
|
+
}
|
|
898
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).j5d = function ($this$async, $completion) {
|
|
899
|
+
var tmp = this.g2f($this$async, $completion);
|
|
900
|
+
tmp.g9_1 = Unit_instance;
|
|
901
|
+
tmp.h9_1 = null;
|
|
902
|
+
return tmp.m9();
|
|
903
|
+
};
|
|
904
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).y9 = function (p1, $completion) {
|
|
905
|
+
return this.j5d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
906
|
+
};
|
|
907
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).m9 = function () {
|
|
908
|
+
var suspendResult = this.g9_1;
|
|
909
|
+
$sm: do
|
|
910
|
+
try {
|
|
911
|
+
var tmp = this.e9_1;
|
|
912
|
+
switch (tmp) {
|
|
913
|
+
case 0:
|
|
914
|
+
this.f9_1 = 4;
|
|
915
|
+
this.e9_1 = 1;
|
|
916
|
+
suspendResult = writeFully(this.d5d_1, this.e5d_1, 0, this.f5d_1, this);
|
|
917
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
918
|
+
return suspendResult;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
continue $sm;
|
|
922
|
+
case 1:
|
|
923
|
+
this.e9_1 = 2;
|
|
924
|
+
suspendResult = copyTo(this.g5d_1, this.d5d_1, this);
|
|
925
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
|
+
return suspendResult;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
continue $sm;
|
|
930
|
+
case 2:
|
|
931
|
+
this.i5d_1 = suspendResult;
|
|
932
|
+
this.e9_1 = 3;
|
|
933
|
+
suspendResult = this.d5d_1.k2t(this);
|
|
934
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
935
|
+
return suspendResult;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
continue $sm;
|
|
939
|
+
case 3:
|
|
940
|
+
return this.i5d_1;
|
|
941
|
+
case 4:
|
|
942
|
+
throw this.h9_1;
|
|
943
|
+
}
|
|
944
|
+
} catch ($p) {
|
|
945
|
+
var e = $p;
|
|
946
|
+
if (this.f9_1 === 4) {
|
|
947
|
+
throw e;
|
|
948
|
+
} else {
|
|
949
|
+
this.e9_1 = this.f9_1;
|
|
950
|
+
this.h9_1 = e;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
while (true);
|
|
954
|
+
};
|
|
955
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).g2f = function ($this$async, completion) {
|
|
956
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.d5d_1, this.e5d_1, this.f5d_1, this.g5d_1, completion);
|
|
957
|
+
i.h5d_1 = $this$async;
|
|
958
|
+
return i;
|
|
959
|
+
};
|
|
960
|
+
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
961
|
+
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
962
|
+
var l = function ($this$async, $completion) {
|
|
963
|
+
return i.j5d($this$async, $completion);
|
|
964
|
+
};
|
|
965
|
+
l.$arity = 1;
|
|
966
|
+
return l;
|
|
967
|
+
}
|
|
968
|
+
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
969
|
+
_init_properties_Logging_kt__66pui5();
|
|
970
|
+
return it;
|
|
971
|
+
}
|
|
972
|
+
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
973
|
+
this.s5d_1 = $content;
|
|
974
|
+
this.t5d_1 = $channel;
|
|
975
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
976
|
+
}
|
|
977
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).f2f = function ($this$launch, $completion) {
|
|
978
|
+
var tmp = this.g2f($this$launch, $completion);
|
|
979
|
+
tmp.g9_1 = Unit_instance;
|
|
980
|
+
tmp.h9_1 = null;
|
|
981
|
+
return tmp.m9();
|
|
982
|
+
};
|
|
983
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).y9 = function (p1, $completion) {
|
|
984
|
+
return this.f2f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
985
|
+
};
|
|
986
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).m9 = function () {
|
|
987
|
+
var suspendResult = this.g9_1;
|
|
988
|
+
$sm: do
|
|
989
|
+
try {
|
|
990
|
+
var tmp = this.e9_1;
|
|
991
|
+
switch (tmp) {
|
|
992
|
+
case 0:
|
|
993
|
+
this.f9_1 = 2;
|
|
994
|
+
this.e9_1 = 1;
|
|
995
|
+
suspendResult = this.s5d_1.j3p(this.t5d_1, this);
|
|
996
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
|
+
return suspendResult;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
continue $sm;
|
|
1001
|
+
case 1:
|
|
1002
|
+
this.t5d_1.n4();
|
|
1003
|
+
return Unit_instance;
|
|
1004
|
+
case 2:
|
|
1005
|
+
throw this.h9_1;
|
|
1006
|
+
}
|
|
1007
|
+
} catch ($p) {
|
|
1008
|
+
var e = $p;
|
|
1009
|
+
if (this.f9_1 === 2) {
|
|
1010
|
+
throw e;
|
|
1011
|
+
} else {
|
|
1012
|
+
this.e9_1 = this.f9_1;
|
|
1013
|
+
this.h9_1 = e;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
while (true);
|
|
1017
|
+
};
|
|
1018
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).g2f = function ($this$launch, completion) {
|
|
1019
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.s5d_1, this.t5d_1, completion);
|
|
1020
|
+
i.u5d_1 = $this$launch;
|
|
1021
|
+
return i;
|
|
1022
|
+
};
|
|
1023
|
+
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1024
|
+
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1025
|
+
var l = function ($this$launch, $completion) {
|
|
1026
|
+
return i.f2f($this$launch, $completion);
|
|
1027
|
+
};
|
|
1028
|
+
l.$arity = 1;
|
|
1029
|
+
return l;
|
|
1030
|
+
}
|
|
1031
|
+
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1032
|
+
_init_properties_Logging_kt__66pui5();
|
|
1033
|
+
return GZipEncoder_getInstance().t37(channel);
|
|
1034
|
+
}
|
|
1035
|
+
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1036
|
+
return function ($this$replaceResponse) {
|
|
1037
|
+
return $origChannel;
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1041
|
+
this.d5e_1 = $channel;
|
|
1042
|
+
this.e5e_1 = $charset;
|
|
1043
|
+
this.f5e_1 = $requestLog;
|
|
1044
|
+
this.g5e_1 = $logger;
|
|
1045
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1046
|
+
}
|
|
1047
|
+
protoOf(Logging$lambda$logRequestBody$slambda).f2f = function ($this$launch, $completion) {
|
|
1048
|
+
var tmp = this.g2f($this$launch, $completion);
|
|
1049
|
+
tmp.g9_1 = Unit_instance;
|
|
1050
|
+
tmp.h9_1 = null;
|
|
1051
|
+
return tmp.m9();
|
|
1052
|
+
};
|
|
1053
|
+
protoOf(Logging$lambda$logRequestBody$slambda).y9 = function (p1, $completion) {
|
|
1054
|
+
return this.f2f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1055
|
+
};
|
|
1056
|
+
protoOf(Logging$lambda$logRequestBody$slambda).m9 = function () {
|
|
1057
|
+
var suspendResult = this.g9_1;
|
|
1058
|
+
$sm: do
|
|
1059
|
+
try {
|
|
1060
|
+
var tmp = this.e9_1;
|
|
1061
|
+
switch (tmp) {
|
|
1062
|
+
case 0:
|
|
1063
|
+
this.f9_1 = 7;
|
|
1064
|
+
this.e9_1 = 1;
|
|
1065
|
+
continue $sm;
|
|
1066
|
+
case 1:
|
|
1067
|
+
this.f9_1 = 6;
|
|
1068
|
+
var tmp0 = this.d5e_1;
|
|
1069
|
+
this.k5e_1 = this.e5e_1;
|
|
1070
|
+
this.f9_1 = 3;
|
|
1071
|
+
this.e9_1 = 2;
|
|
1072
|
+
suspendResult = readRemaining(tmp0, this);
|
|
1073
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1074
|
+
return suspendResult;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
continue $sm;
|
|
1078
|
+
case 2:
|
|
1079
|
+
var ARGUMENT = suspendResult;
|
|
1080
|
+
this.j5e_1 = readText(ARGUMENT, this.k5e_1);
|
|
1081
|
+
this.f9_1 = 6;
|
|
1082
|
+
this.e9_1 = 4;
|
|
1083
|
+
continue $sm;
|
|
1084
|
+
case 3:
|
|
1085
|
+
this.f9_1 = 6;
|
|
1086
|
+
var tmp_0 = this.h9_1;
|
|
1087
|
+
if (tmp_0 instanceof Error) {
|
|
1088
|
+
var cause = this.h9_1;
|
|
1089
|
+
var tmp_1 = this;
|
|
1090
|
+
tmp_1.j5e_1 = null;
|
|
1091
|
+
this.e9_1 = 4;
|
|
1092
|
+
continue $sm;
|
|
1093
|
+
} else {
|
|
1094
|
+
throw this.h9_1;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
case 4:
|
|
1098
|
+
this.f9_1 = 6;
|
|
1099
|
+
var tmp0_elvis_lhs = this.j5e_1;
|
|
1100
|
+
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1101
|
+
var tmp0_0 = this.f5e_1;
|
|
1102
|
+
var value = 'BODY START';
|
|
1103
|
+
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1104
|
+
this.f5e_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1105
|
+
this.i5e_1 = this.f5e_1.q('BODY END');
|
|
1106
|
+
this.f9_1 = 7;
|
|
1107
|
+
this.e9_1 = 5;
|
|
1108
|
+
continue $sm;
|
|
1109
|
+
case 5:
|
|
1110
|
+
this.i5e_1;
|
|
1111
|
+
this.f9_1 = 7;
|
|
1112
|
+
this.g5e_1.s59(this.f5e_1.toString());
|
|
1113
|
+
this.g5e_1.w59();
|
|
1114
|
+
return Unit_instance;
|
|
1115
|
+
case 6:
|
|
1116
|
+
this.f9_1 = 7;
|
|
1117
|
+
var t = this.h9_1;
|
|
1118
|
+
this.g5e_1.s59(this.f5e_1.toString());
|
|
1119
|
+
this.g5e_1.w59();
|
|
1120
|
+
throw t;
|
|
1121
|
+
case 7:
|
|
1122
|
+
throw this.h9_1;
|
|
1123
|
+
}
|
|
1124
|
+
} catch ($p) {
|
|
1125
|
+
var e = $p;
|
|
1126
|
+
if (this.f9_1 === 7) {
|
|
1127
|
+
throw e;
|
|
1128
|
+
} else {
|
|
1129
|
+
this.e9_1 = this.f9_1;
|
|
1130
|
+
this.h9_1 = e;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
while (true);
|
|
1134
|
+
};
|
|
1135
|
+
protoOf(Logging$lambda$logRequestBody$slambda).g2f = function ($this$launch, completion) {
|
|
1136
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.d5e_1, this.e5e_1, this.f5e_1, this.g5e_1, completion);
|
|
1137
|
+
i.h5e_1 = $this$launch;
|
|
1138
|
+
return i;
|
|
1139
|
+
};
|
|
1140
|
+
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1141
|
+
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1142
|
+
var l = function ($this$launch, $completion) {
|
|
1143
|
+
return i.f2f($this$launch, $completion);
|
|
1144
|
+
};
|
|
1145
|
+
l.$arity = 1;
|
|
1146
|
+
return l;
|
|
1147
|
+
}
|
|
1148
|
+
function invoke$shouldBeLogged(filters, request) {
|
|
1149
|
+
var tmp;
|
|
1150
|
+
if (filters.r()) {
|
|
1151
|
+
tmp = true;
|
|
1152
|
+
} else {
|
|
1153
|
+
var tmp$ret$0;
|
|
1154
|
+
$l$block_0: {
|
|
1155
|
+
// Inline function 'kotlin.collections.any' call
|
|
1156
|
+
var tmp_0;
|
|
1157
|
+
if (isInterface(filters, Collection)) {
|
|
1158
|
+
tmp_0 = filters.r();
|
|
1159
|
+
} else {
|
|
1160
|
+
tmp_0 = false;
|
|
1161
|
+
}
|
|
1162
|
+
if (tmp_0) {
|
|
1163
|
+
tmp$ret$0 = false;
|
|
1164
|
+
break $l$block_0;
|
|
1165
|
+
}
|
|
1166
|
+
var _iterator__ex2g4s = filters.t();
|
|
1167
|
+
while (_iterator__ex2g4s.u()) {
|
|
1168
|
+
var element = _iterator__ex2g4s.v();
|
|
1169
|
+
if (element(request)) {
|
|
1170
|
+
tmp$ret$0 = true;
|
|
1171
|
+
break $l$block_0;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
tmp$ret$0 = false;
|
|
1175
|
+
}
|
|
1176
|
+
tmp = tmp$ret$0;
|
|
1177
|
+
}
|
|
1178
|
+
return tmp;
|
|
1179
|
+
}
|
|
1180
|
+
function invoke$isNone(level) {
|
|
1181
|
+
return level.equals(LogLevel_NONE_getInstance());
|
|
1182
|
+
}
|
|
1183
|
+
function invoke$isInfo(level) {
|
|
1184
|
+
return level.equals(LogLevel_INFO_getInstance());
|
|
1185
|
+
}
|
|
1186
|
+
function invoke$isHeaders(level) {
|
|
1187
|
+
return level.equals(LogLevel_HEADERS_getInstance());
|
|
1188
|
+
}
|
|
1189
|
+
function invoke$isBody(level) {
|
|
1190
|
+
return level.equals(LogLevel_BODY_getInstance()) || level.equals(LogLevel_ALL_getInstance());
|
|
1191
|
+
}
|
|
1192
|
+
function invoke$detectIfBinary($this_createClientPlugin, body, contentLength, contentType, headers, $completion) {
|
|
1193
|
+
var tmp = new $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, $completion);
|
|
1194
|
+
tmp.g9_1 = Unit_instance;
|
|
1195
|
+
tmp.h9_1 = null;
|
|
1196
|
+
return tmp.m9();
|
|
1197
|
+
}
|
|
1198
|
+
function invoke$logRequestBody($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion) {
|
|
1199
|
+
var tmp = new $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion);
|
|
1200
|
+
tmp.g9_1 = Unit_instance;
|
|
1201
|
+
tmp.h9_1 = null;
|
|
1202
|
+
return tmp.m9();
|
|
1203
|
+
}
|
|
1204
|
+
function invoke$logOutgoingContent($this_createClientPlugin, content, method, headers, logLines, process, $completion) {
|
|
1205
|
+
var tmp;
|
|
1206
|
+
if (process === VOID) {
|
|
1207
|
+
tmp = Logging$lambda$logOutgoingContent$lambda;
|
|
1208
|
+
} else {
|
|
1209
|
+
tmp = process;
|
|
1210
|
+
}
|
|
1211
|
+
process = tmp;
|
|
1212
|
+
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, $completion);
|
|
1213
|
+
tmp_0.g9_1 = Unit_instance;
|
|
1214
|
+
tmp_0.h9_1 = null;
|
|
1215
|
+
return tmp_0.m9();
|
|
1216
|
+
}
|
|
1217
|
+
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion) {
|
|
1218
|
+
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion);
|
|
1219
|
+
tmp.g9_1 = Unit_instance;
|
|
1220
|
+
tmp.h9_1 = null;
|
|
1221
|
+
return tmp.m9();
|
|
1222
|
+
}
|
|
1223
|
+
function invoke$logResponseBody($this_createClientPlugin, response, body, logLines, $completion) {
|
|
1224
|
+
var tmp = new $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, $completion);
|
|
1225
|
+
tmp.g9_1 = Unit_instance;
|
|
1226
|
+
tmp.h9_1 = null;
|
|
1227
|
+
return tmp.m9();
|
|
1228
|
+
}
|
|
1229
|
+
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, $completion) {
|
|
1230
|
+
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, $completion);
|
|
1231
|
+
tmp.g9_1 = Unit_instance;
|
|
1232
|
+
tmp.h9_1 = null;
|
|
1233
|
+
return tmp.m9();
|
|
1234
|
+
}
|
|
1235
|
+
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1236
|
+
var requestLog = StringBuilder_init_$Create$();
|
|
1237
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1238
|
+
var value = 'BODY Content-Type: ' + toString_0(content.b3p());
|
|
1239
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1240
|
+
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1241
|
+
var tmp0_safe_receiver = content.b3p();
|
|
1242
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1243
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().c33_1 : tmp1_elvis_lhs;
|
|
1244
|
+
var channel = new ByteChannel();
|
|
1245
|
+
var tmp = GlobalScope_instance;
|
|
1246
|
+
var tmp_0 = Dispatchers_getInstance().e23_1.gh(MDCContext());
|
|
1247
|
+
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1248
|
+
return observe(content, channel, $completion);
|
|
1249
|
+
}
|
|
1250
|
+
function invoke$logRequestException(level, logger, context, cause) {
|
|
1251
|
+
if (level.a5a_1) {
|
|
1252
|
+
logger.y58('REQUEST ' + Url(context.x40_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1256
|
+
var tmp = request.a41_1;
|
|
1257
|
+
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1258
|
+
var callLogger = new HttpClientCallLogger(logger);
|
|
1259
|
+
request.c41_1.k34(get_ClientCallLogger(), callLogger);
|
|
1260
|
+
// Inline function 'kotlin.text.buildString' call
|
|
1261
|
+
// Inline function 'kotlin.apply' call
|
|
1262
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
1263
|
+
if (level.a5a_1) {
|
|
1264
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1265
|
+
var value = 'REQUEST: ' + Url(request.x40_1).toString();
|
|
1266
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1267
|
+
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1268
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1269
|
+
var value_0 = 'METHOD: ' + request.y40_1.toString();
|
|
1270
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1271
|
+
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1272
|
+
}
|
|
1273
|
+
if (level.b5a_1) {
|
|
1274
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1275
|
+
var value_1 = 'COMMON HEADERS';
|
|
1276
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1277
|
+
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1278
|
+
logHeaders(this_0, request.z40_1.g38(), sanitizedHeaders);
|
|
1279
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1280
|
+
var value_2 = 'CONTENT HEADERS';
|
|
1281
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1282
|
+
this_0.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
1283
|
+
var tmp$ret$9;
|
|
1284
|
+
$l$block: {
|
|
1285
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1286
|
+
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1287
|
+
while (_iterator__ex2g4s.u()) {
|
|
1288
|
+
var element = _iterator__ex2g4s.v();
|
|
1289
|
+
if (element.f5i_1(HttpHeaders_getInstance().y3f_1)) {
|
|
1290
|
+
tmp$ret$9 = element;
|
|
1291
|
+
break $l$block;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
tmp$ret$9 = null;
|
|
1295
|
+
}
|
|
1296
|
+
var tmp0_safe_receiver = tmp$ret$9;
|
|
1297
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e5i_1;
|
|
1298
|
+
var tmp$ret$11;
|
|
1299
|
+
$l$block_0: {
|
|
1300
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1301
|
+
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1302
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1303
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1304
|
+
if (element_0.f5i_1(HttpHeaders_getInstance().b3g_1)) {
|
|
1305
|
+
tmp$ret$11 = element_0;
|
|
1306
|
+
break $l$block_0;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
tmp$ret$11 = null;
|
|
1310
|
+
}
|
|
1311
|
+
var tmp1_safe_receiver = tmp$ret$11;
|
|
1312
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e5i_1;
|
|
1313
|
+
var tmp2_safe_receiver = content.d3p();
|
|
1314
|
+
if (tmp2_safe_receiver == null)
|
|
1315
|
+
null;
|
|
1316
|
+
else {
|
|
1317
|
+
// Inline function 'kotlin.let' call
|
|
1318
|
+
var tmp_0 = HttpHeaders_getInstance().y3f_1;
|
|
1319
|
+
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1320
|
+
}
|
|
1321
|
+
var tmp3_safe_receiver = content.b3p();
|
|
1322
|
+
if (tmp3_safe_receiver == null)
|
|
1323
|
+
null;
|
|
1324
|
+
else {
|
|
1325
|
+
// Inline function 'kotlin.let' call
|
|
1326
|
+
var tmp_1 = HttpHeaders_getInstance().b3g_1;
|
|
1327
|
+
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1328
|
+
}
|
|
1329
|
+
logHeaders(this_0, content.n3j().g38(), sanitizedHeaders);
|
|
1330
|
+
}
|
|
1331
|
+
var message = this_0.toString();
|
|
1332
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1333
|
+
if (charSequenceLength(message) > 0) {
|
|
1334
|
+
callLogger.s59(message);
|
|
1335
|
+
}
|
|
1336
|
+
var tmp_2;
|
|
1337
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
1338
|
+
if (charSequenceLength(message) === 0) {
|
|
1339
|
+
tmp_2 = true;
|
|
1340
|
+
} else {
|
|
1341
|
+
tmp_2 = !level.c5a_1;
|
|
1342
|
+
}
|
|
1343
|
+
if (tmp_2) {
|
|
1344
|
+
callLogger.w59();
|
|
1345
|
+
return null;
|
|
1346
|
+
}
|
|
1347
|
+
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1348
|
+
}
|
|
1349
|
+
function invoke$logResponseException(level, log, request, cause) {
|
|
1350
|
+
if (!level.a5a_1)
|
|
1351
|
+
return Unit_instance;
|
|
1352
|
+
log.q('RESPONSE ' + request.o42().toString() + ' failed with exception: ' + cause.toString());
|
|
1353
|
+
}
|
|
1354
|
+
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1355
|
+
this.o5i_1 = $okHttpFormat;
|
|
1356
|
+
this.p5i_1 = $logger;
|
|
1357
|
+
this.q5i_1 = $filters;
|
|
1358
|
+
this.r5i_1 = $sanitizedHeaders;
|
|
1359
|
+
this.s5i_1 = $level;
|
|
1360
|
+
this.t5i_1 = $this_createClientPlugin;
|
|
1361
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1362
|
+
}
|
|
1363
|
+
protoOf(Logging$lambda$slambda).c5j = function ($this$on, request, $completion) {
|
|
1364
|
+
var tmp = this.d5j($this$on, request, $completion);
|
|
1365
|
+
tmp.g9_1 = Unit_instance;
|
|
1366
|
+
tmp.h9_1 = null;
|
|
1367
|
+
return tmp.m9();
|
|
1368
|
+
};
|
|
1369
|
+
protoOf(Logging$lambda$slambda).z9 = function (p1, p2, $completion) {
|
|
1370
|
+
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1371
|
+
return this.c5j(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1372
|
+
};
|
|
1373
|
+
protoOf(Logging$lambda$slambda).m9 = function () {
|
|
1374
|
+
var suspendResult = this.g9_1;
|
|
1375
|
+
$sm: do
|
|
1376
|
+
try {
|
|
1377
|
+
var tmp = this.e9_1;
|
|
1378
|
+
switch (tmp) {
|
|
1379
|
+
case 0:
|
|
1380
|
+
this.f9_1 = 16;
|
|
1381
|
+
if (!invoke$shouldBeLogged(this.q5i_1, this.v5i_1)) {
|
|
1382
|
+
this.v5i_1.c41_1.k34(get_DisableLogging(), Unit_instance);
|
|
1383
|
+
return Unit_instance;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
if (this.o5i_1) {
|
|
1387
|
+
var tmp_0 = this;
|
|
1388
|
+
tmp_0.y5i_1 = ArrayList_init_$Create$();
|
|
1389
|
+
this.e9_1 = 10;
|
|
1390
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.r5i_1, this.s5i_1, this.t5i_1, this.v5i_1, this.y5i_1, this);
|
|
1391
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1392
|
+
return suspendResult;
|
|
1393
|
+
}
|
|
1394
|
+
continue $sm;
|
|
1395
|
+
} else {
|
|
1396
|
+
this.e9_1 = 1;
|
|
1397
|
+
continue $sm;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
case 1:
|
|
1401
|
+
this.f9_1 = 3;
|
|
1402
|
+
this.e9_1 = 2;
|
|
1403
|
+
suspendResult = invoke$logRequest(this.p5i_1, this.s5i_1, this.r5i_1, this.v5i_1, this);
|
|
1404
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1405
|
+
return suspendResult;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
continue $sm;
|
|
1409
|
+
case 2:
|
|
1410
|
+
this.b5j_1 = suspendResult;
|
|
1411
|
+
this.f9_1 = 16;
|
|
1412
|
+
this.e9_1 = 4;
|
|
1413
|
+
continue $sm;
|
|
1414
|
+
case 3:
|
|
1415
|
+
this.f9_1 = 16;
|
|
1416
|
+
var tmp_1 = this.h9_1;
|
|
1417
|
+
if (tmp_1 instanceof Error) {
|
|
1418
|
+
var _unused_var__etf5q3 = this.h9_1;
|
|
1419
|
+
var tmp_2 = this;
|
|
1420
|
+
tmp_2.b5j_1 = null;
|
|
1421
|
+
this.e9_1 = 4;
|
|
1422
|
+
continue $sm;
|
|
1423
|
+
} else {
|
|
1424
|
+
throw this.h9_1;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
case 4:
|
|
1428
|
+
this.f9_1 = 16;
|
|
1429
|
+
this.a5j_1 = this.b5j_1;
|
|
1430
|
+
this.z5i_1 = Unit_instance;
|
|
1431
|
+
this.e9_1 = 5;
|
|
1432
|
+
continue $sm;
|
|
1433
|
+
case 5:
|
|
1434
|
+
this.f9_1 = 8;
|
|
1435
|
+
this.f9_1 = 7;
|
|
1436
|
+
this.e9_1 = 6;
|
|
1437
|
+
var tmp0_elvis_lhs = this.a5j_1;
|
|
1438
|
+
suspendResult = this.u5i_1.s5a(tmp0_elvis_lhs == null ? this.v5i_1.a41_1 : tmp0_elvis_lhs, this);
|
|
1439
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1440
|
+
return suspendResult;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
continue $sm;
|
|
1444
|
+
case 6:
|
|
1445
|
+
this.z5i_1 = suspendResult;
|
|
1446
|
+
this.f9_1 = 16;
|
|
1447
|
+
this.e9_1 = 9;
|
|
1448
|
+
continue $sm;
|
|
1449
|
+
case 7:
|
|
1450
|
+
this.f9_1 = 8;
|
|
1451
|
+
var tmp_3 = this.h9_1;
|
|
1452
|
+
if (tmp_3 instanceof Error) {
|
|
1453
|
+
var cause = this.h9_1;
|
|
1454
|
+
var tmp_4 = this;
|
|
1455
|
+
invoke$logRequestException(this.s5i_1, this.p5i_1, this.v5i_1, cause);
|
|
1456
|
+
throw cause;
|
|
1457
|
+
} else {
|
|
1458
|
+
throw this.h9_1;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
case 8:
|
|
1462
|
+
this.f9_1 = 16;
|
|
1463
|
+
var t = this.h9_1;
|
|
1464
|
+
throw t;
|
|
1465
|
+
case 9:
|
|
1466
|
+
this.z5i_1;
|
|
1467
|
+
this.f9_1 = 16;
|
|
1468
|
+
return Unit_instance;
|
|
1469
|
+
case 10:
|
|
1470
|
+
var content = suspendResult;
|
|
1471
|
+
if (this.y5i_1.g1() > 0) {
|
|
1472
|
+
this.p5i_1.y58(joinToString(this.y5i_1, '\n'));
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
this.f9_1 = 14;
|
|
1476
|
+
if (!(content == null)) {
|
|
1477
|
+
this.e9_1 = 12;
|
|
1478
|
+
suspendResult = this.u5i_1.s5a(content, this);
|
|
1479
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1480
|
+
return suspendResult;
|
|
1481
|
+
}
|
|
1482
|
+
continue $sm;
|
|
1483
|
+
} else {
|
|
1484
|
+
this.e9_1 = 11;
|
|
1485
|
+
suspendResult = this.u5i_1.t5a(this);
|
|
1486
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1487
|
+
return suspendResult;
|
|
1488
|
+
}
|
|
1489
|
+
continue $sm;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
case 11:
|
|
1493
|
+
this.x5i_1 = suspendResult;
|
|
1494
|
+
this.e9_1 = 13;
|
|
1495
|
+
continue $sm;
|
|
1496
|
+
case 12:
|
|
1497
|
+
this.x5i_1 = suspendResult;
|
|
1498
|
+
this.e9_1 = 13;
|
|
1499
|
+
continue $sm;
|
|
1500
|
+
case 13:
|
|
1501
|
+
this.w5i_1 = this.x5i_1;
|
|
1502
|
+
this.f9_1 = 16;
|
|
1503
|
+
this.e9_1 = 15;
|
|
1504
|
+
continue $sm;
|
|
1505
|
+
case 14:
|
|
1506
|
+
this.f9_1 = 16;
|
|
1507
|
+
var tmp_5 = this.h9_1;
|
|
1508
|
+
if (tmp_5 instanceof Error) {
|
|
1509
|
+
var cause_0 = this.h9_1;
|
|
1510
|
+
var tmp_6 = this;
|
|
1511
|
+
this.p5i_1.y58('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1512
|
+
throw cause_0;
|
|
1513
|
+
} else {
|
|
1514
|
+
throw this.h9_1;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
case 15:
|
|
1518
|
+
this.f9_1 = 16;
|
|
1519
|
+
return Unit_instance;
|
|
1520
|
+
case 16:
|
|
1521
|
+
throw this.h9_1;
|
|
1522
|
+
}
|
|
1523
|
+
} catch ($p) {
|
|
1524
|
+
var e = $p;
|
|
1525
|
+
if (this.f9_1 === 16) {
|
|
1526
|
+
throw e;
|
|
1527
|
+
} else {
|
|
1528
|
+
this.e9_1 = this.f9_1;
|
|
1529
|
+
this.h9_1 = e;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
while (true);
|
|
1533
|
+
};
|
|
1534
|
+
protoOf(Logging$lambda$slambda).d5j = function ($this$on, request, completion) {
|
|
1535
|
+
var i = new Logging$lambda$slambda(this.o5i_1, this.p5i_1, this.q5i_1, this.r5i_1, this.s5i_1, this.t5i_1, completion);
|
|
1536
|
+
i.u5i_1 = $this$on;
|
|
1537
|
+
i.v5i_1 = request;
|
|
1538
|
+
return i;
|
|
1539
|
+
};
|
|
1540
|
+
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1541
|
+
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1542
|
+
var l = function ($this$on, request, $completion) {
|
|
1543
|
+
return i.c5j($this$on, request, $completion);
|
|
1544
|
+
};
|
|
1545
|
+
l.$arity = 2;
|
|
1546
|
+
return l;
|
|
1547
|
+
}
|
|
1548
|
+
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1549
|
+
this.m5j_1 = $okHttpFormat;
|
|
1550
|
+
this.n5j_1 = $logger;
|
|
1551
|
+
this.o5j_1 = $sanitizedHeaders;
|
|
1552
|
+
this.p5j_1 = $level;
|
|
1553
|
+
this.q5j_1 = $this_createClientPlugin;
|
|
1554
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1555
|
+
}
|
|
1556
|
+
protoOf(Logging$lambda$slambda_1).u5j = function ($this$on, response, $completion) {
|
|
1557
|
+
var tmp = this.v5j($this$on, response, $completion);
|
|
1558
|
+
tmp.g9_1 = Unit_instance;
|
|
1559
|
+
tmp.h9_1 = null;
|
|
1560
|
+
return tmp.m9();
|
|
1561
|
+
};
|
|
1562
|
+
protoOf(Logging$lambda$slambda_1).z9 = function (p1, p2, $completion) {
|
|
1563
|
+
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1564
|
+
return this.u5j(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1565
|
+
};
|
|
1566
|
+
protoOf(Logging$lambda$slambda_1).m9 = function () {
|
|
1567
|
+
var suspendResult = this.g9_1;
|
|
1568
|
+
$sm: do
|
|
1569
|
+
try {
|
|
1570
|
+
var tmp = this.e9_1;
|
|
1571
|
+
switch (tmp) {
|
|
1572
|
+
case 0:
|
|
1573
|
+
this.f9_1 = 5;
|
|
1574
|
+
if (this.m5j_1) {
|
|
1575
|
+
var tmp_0 = this;
|
|
1576
|
+
tmp_0.t5j_1 = ArrayList_init_$Create$();
|
|
1577
|
+
this.e9_1 = 1;
|
|
1578
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.o5j_1, this.p5j_1, this.q5j_1, this.s5j_1, this.t5j_1, this);
|
|
1579
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1580
|
+
return suspendResult;
|
|
1581
|
+
}
|
|
1582
|
+
continue $sm;
|
|
1583
|
+
} else {
|
|
1584
|
+
this.e9_1 = 4;
|
|
1585
|
+
continue $sm;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
case 1:
|
|
1589
|
+
var newResponse = suspendResult;
|
|
1590
|
+
if (this.t5j_1.g1() > 0) {
|
|
1591
|
+
this.n5j_1.y58(joinToString(this.t5j_1, '\n'));
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
if (!equals(newResponse, this.s5j_1)) {
|
|
1595
|
+
this.e9_1 = 2;
|
|
1596
|
+
suspendResult = this.r5j_1.r4w(newResponse, this);
|
|
1597
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1598
|
+
return suspendResult;
|
|
1599
|
+
}
|
|
1600
|
+
continue $sm;
|
|
1601
|
+
} else {
|
|
1602
|
+
this.e9_1 = 3;
|
|
1603
|
+
continue $sm;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
case 2:
|
|
1607
|
+
this.e9_1 = 3;
|
|
1608
|
+
continue $sm;
|
|
1609
|
+
case 3:
|
|
1610
|
+
this.e9_1 = 4;
|
|
1611
|
+
continue $sm;
|
|
1612
|
+
case 4:
|
|
1613
|
+
return Unit_instance;
|
|
1614
|
+
case 5:
|
|
1615
|
+
throw this.h9_1;
|
|
1616
|
+
}
|
|
1617
|
+
} catch ($p) {
|
|
1618
|
+
var e = $p;
|
|
1619
|
+
if (this.f9_1 === 5) {
|
|
1620
|
+
throw e;
|
|
1621
|
+
} else {
|
|
1622
|
+
this.e9_1 = this.f9_1;
|
|
1623
|
+
this.h9_1 = e;
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
while (true);
|
|
1627
|
+
};
|
|
1628
|
+
protoOf(Logging$lambda$slambda_1).v5j = function ($this$on, response, completion) {
|
|
1629
|
+
var i = new Logging$lambda$slambda_1(this.m5j_1, this.n5j_1, this.o5j_1, this.p5j_1, this.q5j_1, completion);
|
|
1630
|
+
i.r5j_1 = $this$on;
|
|
1631
|
+
i.s5j_1 = response;
|
|
1632
|
+
return i;
|
|
1633
|
+
};
|
|
1634
|
+
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1635
|
+
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1636
|
+
var l = function ($this$on, response, $completion) {
|
|
1637
|
+
return i.u5j($this$on, response, $completion);
|
|
1638
|
+
};
|
|
1639
|
+
l.$arity = 2;
|
|
1640
|
+
return l;
|
|
1641
|
+
}
|
|
1642
|
+
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1643
|
+
this.e5k_1 = $okHttpFormat;
|
|
1644
|
+
this.f5k_1 = $level;
|
|
1645
|
+
this.g5k_1 = $sanitizedHeaders;
|
|
1646
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1647
|
+
}
|
|
1648
|
+
protoOf(Logging$lambda$slambda_3).p5k = function ($this$on, response, $completion) {
|
|
1649
|
+
var tmp = this.q5k($this$on, response, $completion);
|
|
1650
|
+
tmp.g9_1 = Unit_instance;
|
|
1651
|
+
tmp.h9_1 = null;
|
|
1652
|
+
return tmp.m9();
|
|
1653
|
+
};
|
|
1654
|
+
protoOf(Logging$lambda$slambda_3).z9 = function (p1, p2, $completion) {
|
|
1655
|
+
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1656
|
+
return this.p5k(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1657
|
+
};
|
|
1658
|
+
protoOf(Logging$lambda$slambda_3).m9 = function () {
|
|
1659
|
+
var suspendResult = this.g9_1;
|
|
1660
|
+
$sm: do
|
|
1661
|
+
try {
|
|
1662
|
+
var tmp = this.e9_1;
|
|
1663
|
+
switch (tmp) {
|
|
1664
|
+
case 0:
|
|
1665
|
+
this.f9_1 = 14;
|
|
1666
|
+
if (this.e5k_1)
|
|
1667
|
+
return Unit_instance;
|
|
1668
|
+
if (this.f5k_1.equals(LogLevel_NONE_getInstance()) || this.i5k_1.m42().g42().j34(get_DisableLogging()))
|
|
1669
|
+
return Unit_instance;
|
|
1670
|
+
this.k5k_1 = this.i5k_1.m42().g42().h34(get_ClientCallLogger());
|
|
1671
|
+
this.m5k_1 = StringBuilder_init_$Create$();
|
|
1672
|
+
this.l5k_1 = false;
|
|
1673
|
+
this.e9_1 = 1;
|
|
1674
|
+
continue $sm;
|
|
1675
|
+
case 1:
|
|
1676
|
+
this.f9_1 = 4;
|
|
1677
|
+
this.f9_1 = 3;
|
|
1678
|
+
logResponseHeader(this.m5k_1, this.i5k_1.m42().x3z(), this.f5k_1, this.g5k_1);
|
|
1679
|
+
this.e9_1 = 2;
|
|
1680
|
+
suspendResult = this.h5k_1.u5b(this);
|
|
1681
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1682
|
+
return suspendResult;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
continue $sm;
|
|
1686
|
+
case 2:
|
|
1687
|
+
this.n5k_1 = suspendResult;
|
|
1688
|
+
this.f9_1 = 14;
|
|
1689
|
+
this.e9_1 = 9;
|
|
1690
|
+
continue $sm;
|
|
1691
|
+
case 3:
|
|
1692
|
+
this.f9_1 = 4;
|
|
1693
|
+
var tmp_0 = this.h9_1;
|
|
1694
|
+
if (tmp_0 instanceof Error) {
|
|
1695
|
+
var cause = this.h9_1;
|
|
1696
|
+
var tmp_1 = this;
|
|
1697
|
+
invoke$logResponseException(this.f5k_1, this.m5k_1, this.i5k_1.m42().f42(), cause);
|
|
1698
|
+
this.l5k_1 = true;
|
|
1699
|
+
throw cause;
|
|
1700
|
+
} else {
|
|
1701
|
+
throw this.h9_1;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
case 4:
|
|
1705
|
+
this.f9_1 = 14;
|
|
1706
|
+
this.o5k_1 = this.h9_1;
|
|
1707
|
+
this.k5k_1.t59(this.m5k_1.toString());
|
|
1708
|
+
if (this.l5k_1 || !this.f5k_1.c5a_1) {
|
|
1709
|
+
this.e9_1 = 7;
|
|
1710
|
+
suspendResult = this.k5k_1.x59(this);
|
|
1711
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1712
|
+
return suspendResult;
|
|
1713
|
+
}
|
|
1714
|
+
continue $sm;
|
|
1715
|
+
} else {
|
|
1716
|
+
if (this.f5k_1.c5a_1 && get_isSaved(this.i5k_1)) {
|
|
1717
|
+
this.e9_1 = 5;
|
|
1718
|
+
suspendResult = logResponseBody(this.k5k_1, this.i5k_1, this);
|
|
1719
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1720
|
+
return suspendResult;
|
|
1721
|
+
}
|
|
1722
|
+
continue $sm;
|
|
1723
|
+
} else {
|
|
1724
|
+
this.e9_1 = 8;
|
|
1725
|
+
continue $sm;
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
case 5:
|
|
1730
|
+
this.e9_1 = 6;
|
|
1731
|
+
suspendResult = this.k5k_1.x59(this);
|
|
1732
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1733
|
+
return suspendResult;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
continue $sm;
|
|
1737
|
+
case 6:
|
|
1738
|
+
this.e9_1 = 8;
|
|
1739
|
+
continue $sm;
|
|
1740
|
+
case 7:
|
|
1741
|
+
this.e9_1 = 8;
|
|
1742
|
+
continue $sm;
|
|
1743
|
+
case 8:
|
|
1744
|
+
throw this.o5k_1;
|
|
1745
|
+
case 9:
|
|
1746
|
+
this.j5k_1 = this.n5k_1;
|
|
1747
|
+
this.f9_1 = 14;
|
|
1748
|
+
this.k5k_1.t59(this.m5k_1.toString());
|
|
1749
|
+
if (this.l5k_1 || !this.f5k_1.c5a_1) {
|
|
1750
|
+
this.e9_1 = 12;
|
|
1751
|
+
suspendResult = this.k5k_1.x59(this);
|
|
1752
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1753
|
+
return suspendResult;
|
|
1754
|
+
}
|
|
1755
|
+
continue $sm;
|
|
1756
|
+
} else {
|
|
1757
|
+
if (this.f5k_1.c5a_1 && get_isSaved(this.i5k_1)) {
|
|
1758
|
+
this.e9_1 = 10;
|
|
1759
|
+
suspendResult = logResponseBody(this.k5k_1, this.i5k_1, this);
|
|
1760
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1761
|
+
return suspendResult;
|
|
1762
|
+
}
|
|
1763
|
+
continue $sm;
|
|
1764
|
+
} else {
|
|
1765
|
+
this.e9_1 = 13;
|
|
1766
|
+
continue $sm;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
case 10:
|
|
1771
|
+
this.e9_1 = 11;
|
|
1772
|
+
suspendResult = this.k5k_1.x59(this);
|
|
1773
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1774
|
+
return suspendResult;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
continue $sm;
|
|
1778
|
+
case 11:
|
|
1779
|
+
this.e9_1 = 13;
|
|
1780
|
+
continue $sm;
|
|
1781
|
+
case 12:
|
|
1782
|
+
this.e9_1 = 13;
|
|
1783
|
+
continue $sm;
|
|
1784
|
+
case 13:
|
|
1785
|
+
return Unit_instance;
|
|
1786
|
+
case 14:
|
|
1787
|
+
throw this.h9_1;
|
|
1788
|
+
}
|
|
1789
|
+
} catch ($p) {
|
|
1790
|
+
var e = $p;
|
|
1791
|
+
if (this.f9_1 === 14) {
|
|
1792
|
+
throw e;
|
|
1793
|
+
} else {
|
|
1794
|
+
this.e9_1 = this.f9_1;
|
|
1795
|
+
this.h9_1 = e;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
while (true);
|
|
1799
|
+
};
|
|
1800
|
+
protoOf(Logging$lambda$slambda_3).q5k = function ($this$on, response, completion) {
|
|
1801
|
+
var i = new Logging$lambda$slambda_3(this.e5k_1, this.f5k_1, this.g5k_1, completion);
|
|
1802
|
+
i.h5k_1 = $this$on;
|
|
1803
|
+
i.i5k_1 = response;
|
|
1804
|
+
return i;
|
|
1805
|
+
};
|
|
1806
|
+
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1807
|
+
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1808
|
+
var l = function ($this$on, response, $completion) {
|
|
1809
|
+
return i.p5k($this$on, response, $completion);
|
|
1810
|
+
};
|
|
1811
|
+
l.$arity = 2;
|
|
1812
|
+
return l;
|
|
1813
|
+
}
|
|
1814
|
+
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1815
|
+
this.z5k_1 = $okHttpFormat;
|
|
1816
|
+
this.a5l_1 = $level;
|
|
1817
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1818
|
+
}
|
|
1819
|
+
protoOf(Logging$lambda$slambda_5).g5l = function ($this$on, call, $completion) {
|
|
1820
|
+
var tmp = this.h5l($this$on, call, $completion);
|
|
1821
|
+
tmp.g9_1 = Unit_instance;
|
|
1822
|
+
tmp.h9_1 = null;
|
|
1823
|
+
return tmp.m9();
|
|
1824
|
+
};
|
|
1825
|
+
protoOf(Logging$lambda$slambda_5).z9 = function (p1, p2, $completion) {
|
|
1826
|
+
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1827
|
+
return this.g5l(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1828
|
+
};
|
|
1829
|
+
protoOf(Logging$lambda$slambda_5).m9 = function () {
|
|
1830
|
+
var suspendResult = this.g9_1;
|
|
1831
|
+
$sm: do
|
|
1832
|
+
try {
|
|
1833
|
+
var tmp = this.e9_1;
|
|
1834
|
+
switch (tmp) {
|
|
1835
|
+
case 0:
|
|
1836
|
+
this.f9_1 = 6;
|
|
1837
|
+
if (this.z5k_1)
|
|
1838
|
+
return Unit_instance;
|
|
1839
|
+
if (this.a5l_1.equals(LogLevel_NONE_getInstance()) || this.c5l_1.g42().j34(get_DisableLogging())) {
|
|
1840
|
+
return Unit_instance;
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
this.f9_1 = 2;
|
|
1844
|
+
this.e9_1 = 1;
|
|
1845
|
+
suspendResult = this.b5l_1.i5c(this);
|
|
1846
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1847
|
+
return suspendResult;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
continue $sm;
|
|
1851
|
+
case 1:
|
|
1852
|
+
this.d5l_1 = suspendResult;
|
|
1853
|
+
this.f9_1 = 6;
|
|
1854
|
+
this.e9_1 = 5;
|
|
1855
|
+
continue $sm;
|
|
1856
|
+
case 2:
|
|
1857
|
+
this.f9_1 = 6;
|
|
1858
|
+
var tmp_0 = this.h9_1;
|
|
1859
|
+
if (tmp_0 instanceof Error) {
|
|
1860
|
+
this.e5l_1 = this.h9_1;
|
|
1861
|
+
var log = StringBuilder_init_$Create$();
|
|
1862
|
+
this.f5l_1 = this.c5l_1.g42().h34(get_ClientCallLogger());
|
|
1863
|
+
invoke$logResponseException(this.a5l_1, log, this.c5l_1.f42(), this.e5l_1);
|
|
1864
|
+
this.e9_1 = 3;
|
|
1865
|
+
suspendResult = this.f5l_1.u59(log.toString(), this);
|
|
1866
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1867
|
+
return suspendResult;
|
|
1868
|
+
}
|
|
1869
|
+
continue $sm;
|
|
1870
|
+
} else {
|
|
1871
|
+
throw this.h9_1;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
case 3:
|
|
1875
|
+
this.e9_1 = 4;
|
|
1876
|
+
suspendResult = this.f5l_1.x59(this);
|
|
1877
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1878
|
+
return suspendResult;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
continue $sm;
|
|
1882
|
+
case 4:
|
|
1883
|
+
var tmp_1 = this;
|
|
1884
|
+
throw this.e5l_1;
|
|
1885
|
+
case 5:
|
|
1886
|
+
this.f9_1 = 6;
|
|
1887
|
+
return Unit_instance;
|
|
1888
|
+
case 6:
|
|
1889
|
+
throw this.h9_1;
|
|
1890
|
+
}
|
|
1891
|
+
} catch ($p) {
|
|
1892
|
+
var e = $p;
|
|
1893
|
+
if (this.f9_1 === 6) {
|
|
1894
|
+
throw e;
|
|
1895
|
+
} else {
|
|
1896
|
+
this.e9_1 = this.f9_1;
|
|
1897
|
+
this.h9_1 = e;
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
while (true);
|
|
1901
|
+
};
|
|
1902
|
+
protoOf(Logging$lambda$slambda_5).h5l = function ($this$on, call, completion) {
|
|
1903
|
+
var i = new Logging$lambda$slambda_5(this.z5k_1, this.a5l_1, completion);
|
|
1904
|
+
i.b5l_1 = $this$on;
|
|
1905
|
+
i.c5l_1 = call;
|
|
1906
|
+
return i;
|
|
1907
|
+
};
|
|
1908
|
+
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1909
|
+
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1910
|
+
var l = function ($this$on, call, $completion) {
|
|
1911
|
+
return i.g5l($this$on, call, $completion);
|
|
1912
|
+
};
|
|
1913
|
+
l.$arity = 2;
|
|
1914
|
+
return l;
|
|
1915
|
+
}
|
|
1916
|
+
function Logging$lambda$lambda$lambda(it) {
|
|
1917
|
+
_init_properties_Logging_kt__66pui5();
|
|
1918
|
+
return !get_isSaved(it.x3z());
|
|
1919
|
+
}
|
|
1920
|
+
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1921
|
+
this.q5l_1 = $level;
|
|
1922
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1923
|
+
}
|
|
1924
|
+
protoOf(Logging$lambda$lambda$slambda).n4b = function (response, $completion) {
|
|
1925
|
+
var tmp = this.a4a(response, $completion);
|
|
1926
|
+
tmp.g9_1 = Unit_instance;
|
|
1927
|
+
tmp.h9_1 = null;
|
|
1928
|
+
return tmp.m9();
|
|
1929
|
+
};
|
|
1930
|
+
protoOf(Logging$lambda$lambda$slambda).y9 = function (p1, $completion) {
|
|
1931
|
+
return this.n4b(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1932
|
+
};
|
|
1933
|
+
protoOf(Logging$lambda$lambda$slambda).m9 = function () {
|
|
1934
|
+
var suspendResult = this.g9_1;
|
|
1935
|
+
$sm: do
|
|
1936
|
+
try {
|
|
1937
|
+
var tmp = this.e9_1;
|
|
1938
|
+
switch (tmp) {
|
|
1939
|
+
case 0:
|
|
1940
|
+
this.f9_1 = 3;
|
|
1941
|
+
if (this.q5l_1.equals(LogLevel_NONE_getInstance()) || this.r5l_1.m42().g42().j34(get_DisableLogging()))
|
|
1942
|
+
return Unit_instance;
|
|
1943
|
+
this.s5l_1 = this.r5l_1.m42().g42().h34(get_ClientCallLogger());
|
|
1944
|
+
this.e9_1 = 1;
|
|
1945
|
+
suspendResult = logResponseBody(this.s5l_1, this.r5l_1, this);
|
|
1946
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1947
|
+
return suspendResult;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
continue $sm;
|
|
1951
|
+
case 1:
|
|
1952
|
+
this.e9_1 = 2;
|
|
1953
|
+
suspendResult = this.s5l_1.x59(this);
|
|
1954
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1955
|
+
return suspendResult;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
continue $sm;
|
|
1959
|
+
case 2:
|
|
1960
|
+
return Unit_instance;
|
|
1961
|
+
case 3:
|
|
1962
|
+
throw this.h9_1;
|
|
1963
|
+
}
|
|
1964
|
+
} catch ($p) {
|
|
1965
|
+
var e = $p;
|
|
1966
|
+
if (this.f9_1 === 3) {
|
|
1967
|
+
throw e;
|
|
1968
|
+
} else {
|
|
1969
|
+
this.e9_1 = this.f9_1;
|
|
1970
|
+
this.h9_1 = e;
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
while (true);
|
|
1974
|
+
};
|
|
1975
|
+
protoOf(Logging$lambda$lambda$slambda).a4a = function (response, completion) {
|
|
1976
|
+
var i = new Logging$lambda$lambda$slambda(this.q5l_1, completion);
|
|
1977
|
+
i.r5l_1 = response;
|
|
1978
|
+
return i;
|
|
1979
|
+
};
|
|
1980
|
+
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1981
|
+
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1982
|
+
var l = function (response, $completion) {
|
|
1983
|
+
return i.n4b(response, $completion);
|
|
1984
|
+
};
|
|
1985
|
+
l.$arity = 1;
|
|
1986
|
+
return l;
|
|
1987
|
+
}
|
|
1988
|
+
function Logging$lambda$lambda($level) {
|
|
1989
|
+
return function ($this$prepare) {
|
|
1990
|
+
$this$prepare.p4w(Logging$lambda$lambda$lambda);
|
|
1991
|
+
$this$prepare.o4w(Logging$lambda$lambda$slambda_0($level, null));
|
|
1992
|
+
return Unit_instance;
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
function $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1996
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1997
|
+
this.t5e_1 = $this_createClientPlugin;
|
|
1998
|
+
this.u5e_1 = body;
|
|
1999
|
+
this.v5e_1 = contentLength;
|
|
2000
|
+
this.w5e_1 = contentType;
|
|
2001
|
+
this.x5e_1 = headers;
|
|
2002
|
+
}
|
|
2003
|
+
protoOf($invoke$detectIfBinaryCOROUTINE$).m9 = function () {
|
|
2004
|
+
var suspendResult = this.g9_1;
|
|
2005
|
+
$sm: do
|
|
2006
|
+
try {
|
|
2007
|
+
var tmp = this.e9_1;
|
|
2008
|
+
switch (tmp) {
|
|
2009
|
+
case 0:
|
|
2010
|
+
this.f9_1 = 4;
|
|
2011
|
+
if (this.x5e_1.e38(HttpHeaders_getInstance().w3f_1)) {
|
|
2012
|
+
return new Triple(true, this.v5e_1, this.u5e_1);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
var tmp_0 = this;
|
|
2016
|
+
var tmp_1;
|
|
2017
|
+
if (!(this.w5e_1 == null)) {
|
|
2018
|
+
var tmp0_elvis_lhs = charset(this.w5e_1);
|
|
2019
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().c33_1 : tmp0_elvis_lhs;
|
|
2020
|
+
} else {
|
|
2021
|
+
tmp_1 = Charsets_getInstance().c33_1;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
tmp_0.c5f_1 = tmp_1;
|
|
2025
|
+
this.a5f_1 = false;
|
|
2026
|
+
this.b5f_1 = new Int8Array(1024);
|
|
2027
|
+
this.e9_1 = 1;
|
|
2028
|
+
suspendResult = readAvailable(this.u5e_1, this.b5f_1, VOID, VOID, this);
|
|
2029
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2030
|
+
return suspendResult;
|
|
2031
|
+
}
|
|
1056
2032
|
|
|
1057
|
-
this.f4t_1 = this.e4t_1.q3v().b3u().o35(get_ClientCallLogger());
|
|
1058
|
-
this.g4t_1 = StringBuilder_init_$Create$();
|
|
1059
|
-
this.s8_1 = 1;
|
|
1060
2033
|
continue $sm;
|
|
1061
2034
|
case 1:
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
|
|
1065
|
-
|
|
2035
|
+
this.z5e_1 = suspendResult;
|
|
2036
|
+
if (this.z5e_1 < 1) {
|
|
2037
|
+
return new Triple(false, new Long(0, 0), this.u5e_1);
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
var this_0 = new Buffer();
|
|
2041
|
+
writeFully_0(this_0, this.b5f_1, 0, this.z5e_1);
|
|
2042
|
+
var buffer = this_0;
|
|
2043
|
+
var tmp_2;
|
|
2044
|
+
try {
|
|
2045
|
+
tmp_2 = decode(this.c5f_1.f33(), buffer);
|
|
2046
|
+
} catch ($p) {
|
|
2047
|
+
var tmp_3;
|
|
2048
|
+
if ($p instanceof MalformedInputException) {
|
|
2049
|
+
var _unused_var__etf5q3 = $p;
|
|
2050
|
+
this.a5f_1 = true;
|
|
2051
|
+
tmp_3 = '';
|
|
2052
|
+
} else {
|
|
2053
|
+
throw $p;
|
|
2054
|
+
}
|
|
2055
|
+
tmp_2 = tmp_3;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
var firstChunkText = tmp_2;
|
|
2059
|
+
if (!this.a5f_1) {
|
|
2060
|
+
var lastCharIndex = -1;
|
|
2061
|
+
var inductionVariable = 0;
|
|
2062
|
+
var last = firstChunkText.length;
|
|
2063
|
+
while (inductionVariable < last) {
|
|
2064
|
+
var ch = charCodeAt(firstChunkText, inductionVariable);
|
|
2065
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2066
|
+
lastCharIndex = lastCharIndex + 1 | 0;
|
|
2067
|
+
}
|
|
2068
|
+
var inductionVariable_0 = 0;
|
|
2069
|
+
var last_0 = firstChunkText.length;
|
|
2070
|
+
$l$loop: while (inductionVariable_0 < last_0) {
|
|
2071
|
+
var i = inductionVariable_0;
|
|
2072
|
+
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
2073
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2074
|
+
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2075
|
+
this.a5f_1 = true;
|
|
2076
|
+
break $l$loop;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
if (!this.a5f_1) {
|
|
2082
|
+
this.y5e_1 = new ByteChannel();
|
|
2083
|
+
this.e9_1 = 3;
|
|
2084
|
+
suspendResult = async(this.t5e_1.z48_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.y5e_1, this.b5f_1, this.z5e_1, this.u5e_1, null)).a1w(this);
|
|
2085
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2086
|
+
return suspendResult;
|
|
2087
|
+
}
|
|
2088
|
+
continue $sm;
|
|
2089
|
+
} else {
|
|
2090
|
+
this.e9_1 = 2;
|
|
2091
|
+
continue $sm;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
case 2:
|
|
2095
|
+
return new Triple(this.a5f_1, this.v5e_1, this.u5e_1);
|
|
2096
|
+
case 3:
|
|
2097
|
+
var copied = suspendResult;
|
|
2098
|
+
var tmp_4 = this.a5f_1;
|
|
2099
|
+
var other = this.z5e_1;
|
|
2100
|
+
return new Triple(tmp_4, add(copied, fromInt(other)), this.y5e_1);
|
|
2101
|
+
case 4:
|
|
2102
|
+
throw this.h9_1;
|
|
2103
|
+
}
|
|
2104
|
+
} catch ($p) {
|
|
2105
|
+
var e = $p;
|
|
2106
|
+
if (this.f9_1 === 4) {
|
|
2107
|
+
throw e;
|
|
2108
|
+
} else {
|
|
2109
|
+
this.e9_1 = this.f9_1;
|
|
2110
|
+
this.h9_1 = e;
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
while (true);
|
|
2114
|
+
};
|
|
2115
|
+
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2116
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2117
|
+
this.l5f_1 = $this_createClientPlugin;
|
|
2118
|
+
this.m5f_1 = content;
|
|
2119
|
+
this.n5f_1 = contentLength;
|
|
2120
|
+
this.o5f_1 = headers;
|
|
2121
|
+
this.p5f_1 = method;
|
|
2122
|
+
this.q5f_1 = logLines;
|
|
2123
|
+
this.r5f_1 = body;
|
|
2124
|
+
}
|
|
2125
|
+
protoOf($invoke$logRequestBodyCOROUTINE$).m9 = function () {
|
|
2126
|
+
var suspendResult = this.g9_1;
|
|
2127
|
+
$sm: do
|
|
2128
|
+
try {
|
|
2129
|
+
var tmp = this.e9_1;
|
|
2130
|
+
switch (tmp) {
|
|
2131
|
+
case 0:
|
|
2132
|
+
this.f9_1 = 4;
|
|
2133
|
+
this.e9_1 = 1;
|
|
2134
|
+
suspendResult = invoke$detectIfBinary(this.l5f_1, this.r5f_1, this.n5f_1, this.m5f_1.b3p(), this.o5f_1, this);
|
|
1066
2135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1067
2136
|
return suspendResult;
|
|
1068
2137
|
}
|
|
1069
2138
|
|
|
2139
|
+
continue $sm;
|
|
2140
|
+
case 1:
|
|
2141
|
+
var _destruct__k2r9zo = suspendResult;
|
|
2142
|
+
var isBinary = _destruct__k2r9zo.kf();
|
|
2143
|
+
this.t5f_1 = _destruct__k2r9zo.lf();
|
|
2144
|
+
var newBody = _destruct__k2r9zo.om();
|
|
2145
|
+
if (!isBinary) {
|
|
2146
|
+
var contentType = this.m5f_1.b3p();
|
|
2147
|
+
var tmp_0 = this;
|
|
2148
|
+
var tmp_1;
|
|
2149
|
+
if (!(contentType == null)) {
|
|
2150
|
+
var tmp0_elvis_lhs = charset(contentType);
|
|
2151
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().c33_1 : tmp0_elvis_lhs;
|
|
2152
|
+
} else {
|
|
2153
|
+
tmp_1 = Charsets_getInstance().c33_1;
|
|
2154
|
+
}
|
|
2155
|
+
tmp_0.u5f_1 = tmp_1;
|
|
2156
|
+
this.e9_1 = 2;
|
|
2157
|
+
suspendResult = readRemaining(newBody, this);
|
|
2158
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2159
|
+
return suspendResult;
|
|
2160
|
+
}
|
|
2161
|
+
continue $sm;
|
|
2162
|
+
} else {
|
|
2163
|
+
var tmp_2 = this;
|
|
2164
|
+
var type = 'binary';
|
|
2165
|
+
if (this.o5f_1.e38(HttpHeaders_getInstance().w3f_1)) {
|
|
2166
|
+
type = 'encoded';
|
|
2167
|
+
}
|
|
2168
|
+
var tmp_3;
|
|
2169
|
+
if (!(this.t5f_1 == null)) {
|
|
2170
|
+
tmp_3 = this.q5f_1.e1('--> END ' + this.p5f_1.w3j_1 + ' (' + type + ' ' + this.t5f_1.toString() + '-byte body omitted)');
|
|
2171
|
+
} else {
|
|
2172
|
+
tmp_3 = this.q5f_1.e1('--> END ' + this.p5f_1.w3j_1 + ' (' + type + ' body omitted)');
|
|
2173
|
+
}
|
|
2174
|
+
tmp_2.s5f_1 = tmp_3;
|
|
2175
|
+
this.e9_1 = 3;
|
|
2176
|
+
continue $sm;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
case 2:
|
|
2180
|
+
var ARGUMENT = suspendResult;
|
|
2181
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.u5f_1);
|
|
2182
|
+
this.q5f_1.e1(ARGUMENT_0);
|
|
2183
|
+
this.s5f_1 = this.q5f_1.e1('--> END ' + this.p5f_1.w3j_1 + ' (' + toString_0(this.t5f_1) + '-byte body)');
|
|
2184
|
+
this.e9_1 = 3;
|
|
2185
|
+
continue $sm;
|
|
2186
|
+
case 3:
|
|
2187
|
+
return Unit_instance;
|
|
2188
|
+
case 4:
|
|
2189
|
+
throw this.h9_1;
|
|
2190
|
+
}
|
|
2191
|
+
} catch ($p) {
|
|
2192
|
+
var e = $p;
|
|
2193
|
+
if (this.f9_1 === 4) {
|
|
2194
|
+
throw e;
|
|
2195
|
+
} else {
|
|
2196
|
+
this.e9_1 = this.f9_1;
|
|
2197
|
+
this.h9_1 = e;
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
while (true);
|
|
2201
|
+
};
|
|
2202
|
+
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2203
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2204
|
+
this.d5g_1 = $this_createClientPlugin;
|
|
2205
|
+
this.e5g_1 = content;
|
|
2206
|
+
this.f5g_1 = method;
|
|
2207
|
+
this.g5g_1 = headers;
|
|
2208
|
+
this.h5g_1 = logLines;
|
|
2209
|
+
this.i5g_1 = process;
|
|
2210
|
+
}
|
|
2211
|
+
protoOf($invoke$logOutgoingContentCOROUTINE$).m9 = function () {
|
|
2212
|
+
var suspendResult = this.g9_1;
|
|
2213
|
+
$sm: do
|
|
2214
|
+
try {
|
|
2215
|
+
var tmp = this.e9_1;
|
|
2216
|
+
switch (tmp) {
|
|
2217
|
+
case 0:
|
|
2218
|
+
this.f9_1 = 6;
|
|
2219
|
+
var tmp0_subject = this.e5g_1;
|
|
2220
|
+
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2221
|
+
var bytes = this.e5g_1.e3p();
|
|
2222
|
+
this.e9_1 = 4;
|
|
2223
|
+
suspendResult = invoke$logRequestBody(this.d5g_1, this.e5g_1, fromInt(bytes.length), this.g5g_1, this.f5g_1, this.h5g_1, ByteReadChannel(bytes), this);
|
|
2224
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2225
|
+
return suspendResult;
|
|
2226
|
+
}
|
|
2227
|
+
continue $sm;
|
|
2228
|
+
} else {
|
|
2229
|
+
if (tmp0_subject instanceof ContentWrapper) {
|
|
2230
|
+
this.e9_1 = 3;
|
|
2231
|
+
suspendResult = invoke$logOutgoingContent(this.d5g_1, this.e5g_1.n3p(), this.f5g_1, this.g5g_1, this.h5g_1, this.i5g_1, this);
|
|
2232
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2233
|
+
return suspendResult;
|
|
2234
|
+
}
|
|
2235
|
+
continue $sm;
|
|
2236
|
+
} else {
|
|
2237
|
+
if (tmp0_subject instanceof NoContent) {
|
|
2238
|
+
var tmp_0 = this;
|
|
2239
|
+
this.h5g_1.e1('--> END ' + this.f5g_1.w3j_1);
|
|
2240
|
+
tmp_0.j5g_1 = null;
|
|
2241
|
+
this.e9_1 = 5;
|
|
2242
|
+
continue $sm;
|
|
2243
|
+
} else {
|
|
2244
|
+
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2245
|
+
var tmp_1 = this;
|
|
2246
|
+
this.h5g_1.e1('--> END ' + this.f5g_1.w3j_1);
|
|
2247
|
+
tmp_1.j5g_1 = null;
|
|
2248
|
+
this.e9_1 = 5;
|
|
2249
|
+
continue $sm;
|
|
2250
|
+
} else {
|
|
2251
|
+
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2252
|
+
var _destruct__k2r9zo = split(this.e5g_1.h3p(), this.d5g_1.z48_1);
|
|
2253
|
+
this.k5g_1 = _destruct__k2r9zo.kf();
|
|
2254
|
+
var newChannel = _destruct__k2r9zo.lf();
|
|
2255
|
+
this.e9_1 = 2;
|
|
2256
|
+
suspendResult = invoke$logRequestBody(this.d5g_1, this.e5g_1, this.e5g_1.d3p(), this.g5g_1, this.f5g_1, this.h5g_1, newChannel, this);
|
|
2257
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2258
|
+
return suspendResult;
|
|
2259
|
+
}
|
|
2260
|
+
continue $sm;
|
|
2261
|
+
} else {
|
|
2262
|
+
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2263
|
+
var channel = new ByteChannel();
|
|
2264
|
+
launch(this.d5g_1.z48_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.e5g_1, channel, null));
|
|
2265
|
+
var _destruct__k2r9zo_0 = split(channel, this.d5g_1.z48_1);
|
|
2266
|
+
this.l5g_1 = _destruct__k2r9zo_0.kf();
|
|
2267
|
+
var newChannel_0 = _destruct__k2r9zo_0.lf();
|
|
2268
|
+
this.e9_1 = 1;
|
|
2269
|
+
suspendResult = invoke$logRequestBody(this.d5g_1, this.e5g_1, this.e5g_1.d3p(), this.g5g_1, this.f5g_1, this.h5g_1, newChannel_0, this);
|
|
2270
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2271
|
+
return suspendResult;
|
|
2272
|
+
}
|
|
2273
|
+
continue $sm;
|
|
2274
|
+
} else {
|
|
2275
|
+
var tmp_2 = this;
|
|
2276
|
+
noWhenBranchMatchedException();
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
break;
|
|
2285
|
+
case 1:
|
|
2286
|
+
this.j5g_1 = new LoggedContent(this.e5g_1, this.l5g_1);
|
|
2287
|
+
this.e9_1 = 5;
|
|
1070
2288
|
continue $sm;
|
|
1071
2289
|
case 2:
|
|
1072
|
-
this.
|
|
1073
|
-
this.
|
|
2290
|
+
this.j5g_1 = new LoggedContent(this.e5g_1, this.k5g_1);
|
|
2291
|
+
this.e9_1 = 5;
|
|
1074
2292
|
continue $sm;
|
|
1075
2293
|
case 3:
|
|
1076
|
-
this.
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
2294
|
+
this.j5g_1 = suspendResult;
|
|
2295
|
+
this.e9_1 = 5;
|
|
2296
|
+
continue $sm;
|
|
2297
|
+
case 4:
|
|
2298
|
+
this.j5g_1 = null;
|
|
2299
|
+
this.e9_1 = 5;
|
|
2300
|
+
continue $sm;
|
|
2301
|
+
case 5:
|
|
2302
|
+
return this.j5g_1;
|
|
2303
|
+
case 6:
|
|
2304
|
+
throw this.h9_1;
|
|
2305
|
+
}
|
|
2306
|
+
} catch ($p) {
|
|
2307
|
+
var e = $p;
|
|
2308
|
+
if (this.f9_1 === 6) {
|
|
2309
|
+
throw e;
|
|
2310
|
+
} else {
|
|
2311
|
+
this.e9_1 = this.f9_1;
|
|
2312
|
+
this.h9_1 = e;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
while (true);
|
|
2316
|
+
};
|
|
2317
|
+
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2318
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2319
|
+
this.u5g_1 = sanitizedHeaders;
|
|
2320
|
+
this.v5g_1 = level;
|
|
2321
|
+
this.w5g_1 = $this_createClientPlugin;
|
|
2322
|
+
this.x5g_1 = request;
|
|
2323
|
+
this.y5g_1 = logLines;
|
|
2324
|
+
}
|
|
2325
|
+
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).m9 = function () {
|
|
2326
|
+
var suspendResult = this.g9_1;
|
|
2327
|
+
$sm: do
|
|
2328
|
+
try {
|
|
2329
|
+
var tmp = this.e9_1;
|
|
2330
|
+
switch (tmp) {
|
|
2331
|
+
case 0:
|
|
2332
|
+
this.f9_1 = 4;
|
|
2333
|
+
if (invoke$isNone(this.v5g_1))
|
|
2334
|
+
return null;
|
|
2335
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.x5g_1.x40_1).i3f());
|
|
2336
|
+
var body = this.x5g_1.a41_1;
|
|
2337
|
+
var this_0 = new HeadersBuilder();
|
|
2338
|
+
var tmp_0;
|
|
2339
|
+
var tmp_1;
|
|
2340
|
+
var tmp_2;
|
|
2341
|
+
if (body instanceof OutgoingContent) {
|
|
2342
|
+
tmp_2 = !this.x5g_1.y40_1.equals(Companion_getInstance().o3j_1);
|
|
2343
|
+
} else {
|
|
2344
|
+
tmp_2 = false;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
if (tmp_2) {
|
|
2348
|
+
tmp_1 = !this.x5g_1.y40_1.equals(Companion_getInstance().t3j_1);
|
|
2349
|
+
} else {
|
|
2350
|
+
tmp_1 = false;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
if (tmp_1) {
|
|
2354
|
+
tmp_0 = !(body instanceof EmptyContent);
|
|
2355
|
+
} else {
|
|
2356
|
+
tmp_0 = false;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
if (tmp_0) {
|
|
2360
|
+
var tmp0_safe_receiver = body.b3p();
|
|
2361
|
+
if (tmp0_safe_receiver == null)
|
|
2362
|
+
null;
|
|
2363
|
+
else {
|
|
2364
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().b3g_1, tmp0_safe_receiver.toString());
|
|
2365
|
+
}
|
|
2366
|
+
var tmp1_safe_receiver = body.d3p();
|
|
2367
|
+
if (tmp1_safe_receiver == null)
|
|
2368
|
+
null;
|
|
2369
|
+
else {
|
|
2370
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().y3f_1, tmp1_safe_receiver.toString());
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
appendAll(this_0, this.x5g_1.z40_1);
|
|
2375
|
+
var headers = this_0.i3f();
|
|
2376
|
+
var tmp0_safe_receiver_0 = headers.k1c(HttpHeaders_getInstance().y3f_1);
|
|
2377
|
+
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2378
|
+
var tmp_3;
|
|
2379
|
+
if (this.x5g_1.y40_1.equals(Companion_getInstance().o3j_1) || this.x5g_1.y40_1.equals(Companion_getInstance().t3j_1) || ((invoke$isHeaders(this.v5g_1) || invoke$isBody(this.v5g_1)) && !(contentLength == null)) || (invoke$isHeaders(this.v5g_1) && contentLength == null) || headers.e38(HttpHeaders_getInstance().w3f_1)) {
|
|
2380
|
+
tmp_3 = '--> ' + this.x5g_1.y40_1.w3j_1 + ' ' + uri;
|
|
2381
|
+
} else {
|
|
2382
|
+
if (invoke$isInfo(this.v5g_1) && !(contentLength == null)) {
|
|
2383
|
+
tmp_3 = '--> ' + this.x5g_1.y40_1.w3j_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2384
|
+
} else {
|
|
2385
|
+
var tmp_4;
|
|
2386
|
+
if (body instanceof WriteChannelContent) {
|
|
2387
|
+
tmp_4 = true;
|
|
2388
|
+
} else {
|
|
2389
|
+
tmp_4 = body instanceof ReadChannelContent;
|
|
2390
|
+
}
|
|
2391
|
+
if (tmp_4) {
|
|
2392
|
+
tmp_3 = '--> ' + this.x5g_1.y40_1.w3j_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2393
|
+
} else {
|
|
2394
|
+
var size = computeRequestBodySize(this.x5g_1.a41_1);
|
|
2395
|
+
tmp_3 = '--> ' + this.x5g_1.y40_1.w3j_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
var startLine = tmp_3;
|
|
2401
|
+
this.y5g_1.e1(startLine);
|
|
2402
|
+
if (!invoke$isHeaders(this.v5g_1) && !invoke$isBody(this.v5g_1)) {
|
|
2403
|
+
return null;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
var _iterator__ex2g4s = headers.g38().t();
|
|
2407
|
+
while (_iterator__ex2g4s.u()) {
|
|
2408
|
+
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2409
|
+
var name = _destruct__k2r9zo.n1();
|
|
2410
|
+
var values = _destruct__k2r9zo.o1();
|
|
2411
|
+
var tmp0 = this.u5g_1;
|
|
2412
|
+
var tmp$ret$0 = Unit_instance;
|
|
2413
|
+
l$ret$1: do {
|
|
2414
|
+
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2415
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2416
|
+
var element = _iterator__ex2g4s_0.v();
|
|
2417
|
+
if (element.f5i_1(name)) {
|
|
2418
|
+
tmp$ret$0 = element;
|
|
2419
|
+
break l$ret$1;
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
tmp$ret$0 = null;
|
|
2423
|
+
}
|
|
2424
|
+
while (false);
|
|
2425
|
+
if (tmp$ret$0 == null) {
|
|
2426
|
+
this.y5g_1.e1(name + ': ' + joinToString(values, ', '));
|
|
2427
|
+
} else {
|
|
2428
|
+
this.y5g_1.e1(name + ': \u2588\u2588');
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
if (!invoke$isBody(this.v5g_1) || this.x5g_1.y40_1.equals(Companion_getInstance().o3j_1) || this.x5g_1.y40_1.equals(Companion_getInstance().t3j_1)) {
|
|
2433
|
+
this.y5g_1.e1('--> END ' + this.x5g_1.y40_1.w3j_1);
|
|
2434
|
+
return null;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
this.y5g_1.e1('');
|
|
2438
|
+
if (!(body instanceof OutgoingContent)) {
|
|
2439
|
+
this.y5g_1.e1('--> END ' + this.x5g_1.y40_1.w3j_1);
|
|
2440
|
+
return null;
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
if (this.x5g_1.z40_1.k1c(HttpHeaders_getInstance().w3f_1) === 'gzip') {
|
|
2444
|
+
this.e9_1 = 2;
|
|
2445
|
+
var tmp_5 = this.x5g_1.y40_1;
|
|
2446
|
+
suspendResult = invoke$logOutgoingContent(this.w5g_1, body, tmp_5, headers, this.y5g_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2447
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2448
|
+
return suspendResult;
|
|
2449
|
+
}
|
|
1082
2450
|
continue $sm;
|
|
1083
2451
|
} else {
|
|
1084
|
-
|
|
2452
|
+
this.e9_1 = 1;
|
|
2453
|
+
suspendResult = invoke$logOutgoingContent(this.w5g_1, body, this.x5g_1.y40_1, headers, this.y5g_1, VOID, this);
|
|
2454
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2455
|
+
return suspendResult;
|
|
2456
|
+
}
|
|
2457
|
+
continue $sm;
|
|
1085
2458
|
}
|
|
1086
2459
|
|
|
2460
|
+
case 1:
|
|
2461
|
+
this.z5g_1 = suspendResult;
|
|
2462
|
+
this.e9_1 = 3;
|
|
2463
|
+
continue $sm;
|
|
2464
|
+
case 2:
|
|
2465
|
+
this.z5g_1 = suspendResult;
|
|
2466
|
+
this.e9_1 = 3;
|
|
2467
|
+
continue $sm;
|
|
2468
|
+
case 3:
|
|
2469
|
+
var newContent = this.z5g_1;
|
|
2470
|
+
return newContent;
|
|
1087
2471
|
case 4:
|
|
1088
|
-
this.
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
2472
|
+
throw this.h9_1;
|
|
2473
|
+
}
|
|
2474
|
+
} catch ($p) {
|
|
2475
|
+
var e = $p;
|
|
2476
|
+
if (this.f9_1 === 4) {
|
|
2477
|
+
throw e;
|
|
2478
|
+
} else {
|
|
2479
|
+
this.e9_1 = this.f9_1;
|
|
2480
|
+
this.h9_1 = e;
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
while (true);
|
|
2484
|
+
};
|
|
2485
|
+
function $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2486
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2487
|
+
this.i5h_1 = $this_createClientPlugin;
|
|
2488
|
+
this.j5h_1 = response;
|
|
2489
|
+
this.k5h_1 = body;
|
|
2490
|
+
this.l5h_1 = logLines;
|
|
2491
|
+
}
|
|
2492
|
+
protoOf($invoke$logResponseBodyCOROUTINE$).m9 = function () {
|
|
2493
|
+
var suspendResult = this.g9_1;
|
|
2494
|
+
$sm: do
|
|
2495
|
+
try {
|
|
2496
|
+
var tmp = this.e9_1;
|
|
2497
|
+
switch (tmp) {
|
|
2498
|
+
case 0:
|
|
2499
|
+
this.f9_1 = 4;
|
|
2500
|
+
this.l5h_1.e1('');
|
|
2501
|
+
this.e9_1 = 1;
|
|
2502
|
+
suspendResult = invoke$detectIfBinary(this.i5h_1, this.k5h_1, contentLength(this.j5h_1), contentType(this.j5h_1), this.j5h_1.n3j(), this);
|
|
1093
2503
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1094
2504
|
return suspendResult;
|
|
1095
2505
|
}
|
|
1096
2506
|
|
|
1097
2507
|
continue $sm;
|
|
1098
|
-
case
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
2508
|
+
case 1:
|
|
2509
|
+
var _destruct__k2r9zo = suspendResult;
|
|
2510
|
+
var isBinary = _destruct__k2r9zo.kf();
|
|
2511
|
+
this.n5h_1 = _destruct__k2r9zo.lf();
|
|
2512
|
+
var newBody = _destruct__k2r9zo.om();
|
|
2513
|
+
this.o5h_1 = subtract(this.j5h_1.x42().p39_1, this.j5h_1.w42().p39_1);
|
|
2514
|
+
if (equals(this.n5h_1, new Long(0, 0))) {
|
|
2515
|
+
this.l5h_1.e1('<-- END HTTP (' + this.o5h_1.toString() + 'ms, ' + this.n5h_1.toString() + '-byte body)');
|
|
2516
|
+
return Unit_instance;
|
|
1103
2517
|
}
|
|
1104
2518
|
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
2519
|
+
if (!isBinary) {
|
|
2520
|
+
var contentType_0 = contentType(this.j5h_1);
|
|
2521
|
+
var tmp_0 = this;
|
|
2522
|
+
var tmp_1;
|
|
2523
|
+
if (!(contentType_0 == null)) {
|
|
2524
|
+
var tmp0_elvis_lhs = charset(contentType_0);
|
|
2525
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().c33_1 : tmp0_elvis_lhs;
|
|
2526
|
+
} else {
|
|
2527
|
+
tmp_1 = Charsets_getInstance().c33_1;
|
|
2528
|
+
}
|
|
2529
|
+
tmp_0.p5h_1 = tmp_1;
|
|
2530
|
+
this.e9_1 = 2;
|
|
2531
|
+
suspendResult = readRemaining(newBody, this);
|
|
2532
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2533
|
+
return suspendResult;
|
|
2534
|
+
}
|
|
2535
|
+
continue $sm;
|
|
2536
|
+
} else {
|
|
2537
|
+
var tmp_2 = this;
|
|
2538
|
+
var type = 'binary';
|
|
2539
|
+
if (this.j5h_1.n3j().e38(HttpHeaders_getInstance().w3f_1)) {
|
|
2540
|
+
type = 'encoded';
|
|
2541
|
+
}
|
|
2542
|
+
var tmp_3;
|
|
2543
|
+
if (!(this.n5h_1 == null)) {
|
|
2544
|
+
tmp_3 = this.l5h_1.e1('<-- END HTTP (' + this.o5h_1.toString() + 'ms, ' + type + ' ' + this.n5h_1.toString() + '-byte body omitted)');
|
|
2545
|
+
} else {
|
|
2546
|
+
tmp_3 = this.l5h_1.e1('<-- END HTTP (' + this.o5h_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2547
|
+
}
|
|
2548
|
+
tmp_2.m5h_1 = tmp_3;
|
|
2549
|
+
this.e9_1 = 3;
|
|
2550
|
+
continue $sm;
|
|
1115
2551
|
}
|
|
1116
2552
|
|
|
2553
|
+
case 2:
|
|
2554
|
+
var ARGUMENT = suspendResult;
|
|
2555
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.p5h_1);
|
|
2556
|
+
this.l5h_1.e1(ARGUMENT_0);
|
|
2557
|
+
this.m5h_1 = this.l5h_1.e1('<-- END HTTP (' + this.o5h_1.toString() + 'ms, ' + toString_0(this.n5h_1) + '-byte body)');
|
|
2558
|
+
this.e9_1 = 3;
|
|
1117
2559
|
continue $sm;
|
|
1118
|
-
case
|
|
1119
|
-
|
|
1120
|
-
|
|
2560
|
+
case 3:
|
|
2561
|
+
return Unit_instance;
|
|
2562
|
+
case 4:
|
|
2563
|
+
throw this.h9_1;
|
|
2564
|
+
}
|
|
2565
|
+
} catch ($p) {
|
|
2566
|
+
var e = $p;
|
|
2567
|
+
if (this.f9_1 === 4) {
|
|
2568
|
+
throw e;
|
|
2569
|
+
} else {
|
|
2570
|
+
this.e9_1 = this.f9_1;
|
|
2571
|
+
this.h9_1 = e;
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
while (true);
|
|
2575
|
+
};
|
|
2576
|
+
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2577
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2578
|
+
this.y5h_1 = sanitizedHeaders;
|
|
2579
|
+
this.z5h_1 = level;
|
|
2580
|
+
this.a5i_1 = $this_createClientPlugin;
|
|
2581
|
+
this.b5i_1 = response;
|
|
2582
|
+
this.c5i_1 = logLines;
|
|
2583
|
+
}
|
|
2584
|
+
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).m9 = function () {
|
|
2585
|
+
var suspendResult = this.g9_1;
|
|
2586
|
+
$sm: do
|
|
2587
|
+
try {
|
|
2588
|
+
var tmp = this.e9_1;
|
|
2589
|
+
switch (tmp) {
|
|
2590
|
+
case 0:
|
|
2591
|
+
this.f9_1 = 4;
|
|
2592
|
+
if (invoke$isNone(this.z5h_1))
|
|
2593
|
+
return this.b5i_1;
|
|
2594
|
+
var tmp0_safe_receiver = this.b5i_1.n3j().k1c(HttpHeaders_getInstance().y3f_1);
|
|
2595
|
+
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2596
|
+
var request = get_request(this.b5i_1);
|
|
2597
|
+
var duration = subtract(this.b5i_1.x42().p39_1, this.b5i_1.w42().p39_1);
|
|
2598
|
+
var startLine = this.b5i_1.n3j().k1c(HttpHeaders_getInstance().f3i_1) === 'chunked' && (invoke$isInfo(this.z5h_1) || invoke$isHeaders(this.z5h_1)) ? '<-- ' + this.b5i_1.c3p().toString() + ' ' + pathQuery(request.o42()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.z5h_1) && !(contentLength == null) ? '<-- ' + this.b5i_1.c3p().toString() + ' ' + pathQuery(request.o42()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.z5h_1) || (invoke$isInfo(this.z5h_1) && contentLength == null) || (invoke$isHeaders(this.z5h_1) && !(contentLength == null)) || this.b5i_1.n3j().k1c(HttpHeaders_getInstance().w3f_1) === 'gzip' ? '<-- ' + this.b5i_1.c3p().toString() + ' ' + pathQuery(request.o42()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.b5i_1.c3p().toString() + ' ' + pathQuery(request.o42()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2599
|
+
this.c5i_1.e1(startLine);
|
|
2600
|
+
if (!invoke$isHeaders(this.z5h_1) && !invoke$isBody(this.z5h_1)) {
|
|
2601
|
+
return this.b5i_1;
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
var _iterator__ex2g4s = this.b5i_1.n3j().g38().t();
|
|
2605
|
+
while (_iterator__ex2g4s.u()) {
|
|
2606
|
+
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2607
|
+
var name = _destruct__k2r9zo.n1();
|
|
2608
|
+
var values = _destruct__k2r9zo.o1();
|
|
2609
|
+
var tmp0 = this.y5h_1;
|
|
2610
|
+
var tmp$ret$0 = Unit_instance;
|
|
2611
|
+
l$ret$1: do {
|
|
2612
|
+
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2613
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2614
|
+
var element = _iterator__ex2g4s_0.v();
|
|
2615
|
+
if (element.f5i_1(name)) {
|
|
2616
|
+
tmp$ret$0 = element;
|
|
2617
|
+
break l$ret$1;
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
tmp$ret$0 = null;
|
|
2621
|
+
}
|
|
2622
|
+
while (false);
|
|
2623
|
+
if (tmp$ret$0 == null) {
|
|
2624
|
+
this.c5i_1.e1(name + ': ' + joinToString(values, ', '));
|
|
2625
|
+
} else {
|
|
2626
|
+
this.c5i_1.e1(name + ': \u2588\u2588');
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
if (!invoke$isBody(this.z5h_1)) {
|
|
2631
|
+
this.c5i_1.e1('<-- END HTTP');
|
|
2632
|
+
return this.b5i_1;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
if (!(contentLength == null) && equals(contentLength, new Long(0, 0))) {
|
|
2636
|
+
this.c5i_1.e1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2637
|
+
return this.b5i_1;
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
if (equals(contentType(this.b5i_1), Text_getInstance().w3e_1)) {
|
|
2641
|
+
this.c5i_1.e1('<-- END HTTP (streaming)');
|
|
2642
|
+
return this.b5i_1;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
if (get_isSaved(this.b5i_1)) {
|
|
2646
|
+
this.e9_1 = 3;
|
|
2647
|
+
suspendResult = invoke$logResponseBody(this.a5i_1, this.b5i_1, this.b5i_1.u42(), this.c5i_1, this);
|
|
2648
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2649
|
+
return suspendResult;
|
|
2650
|
+
}
|
|
2651
|
+
continue $sm;
|
|
2652
|
+
} else {
|
|
2653
|
+
this.e9_1 = 1;
|
|
2654
|
+
continue $sm;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
case 1:
|
|
2658
|
+
var _destruct__k2r9zo_0 = split(this.b5i_1.u42(), this.b5i_1);
|
|
2659
|
+
this.d5i_1 = _destruct__k2r9zo_0.kf();
|
|
2660
|
+
var newChannel = _destruct__k2r9zo_0.lf();
|
|
2661
|
+
this.e9_1 = 2;
|
|
2662
|
+
suspendResult = invoke$logResponseBody(this.a5i_1, this.b5i_1, newChannel, this.c5i_1, this);
|
|
1121
2663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1122
2664
|
return suspendResult;
|
|
1123
2665
|
}
|
|
1124
2666
|
|
|
1125
2667
|
continue $sm;
|
|
1126
|
-
case
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
2668
|
+
case 2:
|
|
2669
|
+
var tmp_0 = this.b5i_1.m42();
|
|
2670
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.d5i_1));
|
|
2671
|
+
return call.x3z();
|
|
2672
|
+
case 3:
|
|
2673
|
+
return this.b5i_1;
|
|
2674
|
+
case 4:
|
|
2675
|
+
throw this.h9_1;
|
|
1130
2676
|
}
|
|
1131
2677
|
} catch ($p) {
|
|
1132
2678
|
var e = $p;
|
|
1133
|
-
if (this.
|
|
2679
|
+
if (this.f9_1 === 4) {
|
|
1134
2680
|
throw e;
|
|
1135
2681
|
} else {
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
2682
|
+
this.e9_1 = this.f9_1;
|
|
2683
|
+
this.h9_1 = e;
|
|
1138
2684
|
}
|
|
1139
2685
|
}
|
|
1140
2686
|
while (true);
|
|
1141
2687
|
};
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
return i;
|
|
1146
|
-
};
|
|
1147
|
-
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1148
|
-
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1149
|
-
var l = function (it, $completion) {
|
|
1150
|
-
return i.s41(it, $completion);
|
|
1151
|
-
};
|
|
1152
|
-
l.$arity = 1;
|
|
1153
|
-
return l;
|
|
2688
|
+
function LoggingFormat_Default_getInstance() {
|
|
2689
|
+
LoggingFormat_initEntries();
|
|
2690
|
+
return LoggingFormat_Default_instance;
|
|
1154
2691
|
}
|
|
1155
|
-
function
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
this.j4q_1 = logger;
|
|
1159
|
-
this.k4q_1 = level;
|
|
1160
|
-
this.l4q_1 = filters;
|
|
1161
|
-
this.m4q_1 = sanitizedHeaders;
|
|
2692
|
+
function LoggingFormat_OkHttp_getInstance() {
|
|
2693
|
+
LoggingFormat_initEntries();
|
|
2694
|
+
return LoggingFormat_OkHttp_instance;
|
|
1162
2695
|
}
|
|
1163
2696
|
var properties_initialized_Logging_kt_588vu7;
|
|
1164
2697
|
function _init_properties_Logging_kt__66pui5() {
|
|
1165
2698
|
if (!properties_initialized_Logging_kt_588vu7) {
|
|
1166
2699
|
properties_initialized_Logging_kt_588vu7 = true;
|
|
1167
|
-
|
|
1168
|
-
|
|
2700
|
+
// Inline function 'io.ktor.util.AttributeKey' call
|
|
2701
|
+
var name = 'CallLogger';
|
|
2702
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
2703
|
+
var tmp = getKClass(HttpClientCallLogger);
|
|
2704
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
2705
|
+
var tmp_0;
|
|
2706
|
+
try {
|
|
2707
|
+
tmp_0 = createKType(getKClass(HttpClientCallLogger), arrayOf([]), false);
|
|
2708
|
+
} catch ($p) {
|
|
2709
|
+
var tmp_1;
|
|
2710
|
+
if ($p instanceof Error) {
|
|
2711
|
+
var _unused_var__etf5q3 = $p;
|
|
2712
|
+
tmp_1 = null;
|
|
2713
|
+
} else {
|
|
2714
|
+
throw $p;
|
|
2715
|
+
}
|
|
2716
|
+
tmp_0 = tmp_1;
|
|
2717
|
+
}
|
|
2718
|
+
var tmp$ret$0 = tmp_0;
|
|
2719
|
+
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
2720
|
+
ClientCallLogger = new AttributeKey(name, tmp$ret$1);
|
|
2721
|
+
// Inline function 'io.ktor.util.AttributeKey' call
|
|
2722
|
+
var name_0 = 'DisableLogging';
|
|
2723
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
2724
|
+
var tmp_2 = getKClass(Unit);
|
|
2725
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
2726
|
+
var tmp_3;
|
|
2727
|
+
try {
|
|
2728
|
+
tmp_3 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2729
|
+
} catch ($p) {
|
|
2730
|
+
var tmp_4;
|
|
2731
|
+
if ($p instanceof Error) {
|
|
2732
|
+
var _unused_var__etf5q3_0 = $p;
|
|
2733
|
+
tmp_4 = null;
|
|
2734
|
+
} else {
|
|
2735
|
+
throw $p;
|
|
2736
|
+
}
|
|
2737
|
+
tmp_3 = tmp_4;
|
|
2738
|
+
}
|
|
2739
|
+
var tmp$ret$0_0 = tmp_3;
|
|
2740
|
+
var tmp$ret$1_0 = new TypeInfo(tmp_2, tmp$ret$0_0);
|
|
2741
|
+
DisableLogging = new AttributeKey(name_0, tmp$ret$1_0);
|
|
2742
|
+
var tmp_5 = LoggingConfig$_init_$ref_f1nb0k();
|
|
2743
|
+
Logging = createClientPlugin('Logging', tmp_5, Logging$lambda);
|
|
1169
2744
|
}
|
|
1170
2745
|
}
|
|
1171
2746
|
function logHeaders(_this__u8e3s4, headers, sanitizedHeaders) {
|
|
@@ -1176,20 +2751,20 @@
|
|
|
1176
2751
|
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
1177
2752
|
var sortedHeaders = sortedWith(this_0, tmp$ret$0);
|
|
1178
2753
|
// Inline function 'kotlin.collections.forEach' call
|
|
1179
|
-
var _iterator__ex2g4s = sortedHeaders.
|
|
1180
|
-
while (_iterator__ex2g4s.
|
|
1181
|
-
var element = _iterator__ex2g4s.
|
|
2754
|
+
var _iterator__ex2g4s = sortedHeaders.t();
|
|
2755
|
+
while (_iterator__ex2g4s.u()) {
|
|
2756
|
+
var element = _iterator__ex2g4s.v();
|
|
1182
2757
|
// Inline function 'kotlin.collections.component1' call
|
|
1183
|
-
var key = element.
|
|
2758
|
+
var key = element.n1();
|
|
1184
2759
|
// Inline function 'kotlin.collections.component2' call
|
|
1185
|
-
var values = element.
|
|
2760
|
+
var values = element.o1();
|
|
1186
2761
|
var tmp$ret$5;
|
|
1187
2762
|
$l$block: {
|
|
1188
2763
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1189
|
-
var _iterator__ex2g4s_0 = sanitizedHeaders.
|
|
1190
|
-
while (_iterator__ex2g4s_0.
|
|
1191
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1192
|
-
if (element_0.
|
|
2764
|
+
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2765
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2766
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2767
|
+
if (element_0.f5i_1(key)) {
|
|
1193
2768
|
tmp$ret$5 = element_0;
|
|
1194
2769
|
break $l$block;
|
|
1195
2770
|
}
|
|
@@ -1197,7 +2772,7 @@
|
|
|
1197
2772
|
tmp$ret$5 = null;
|
|
1198
2773
|
}
|
|
1199
2774
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1200
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2775
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e5i_1;
|
|
1201
2776
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1202
2777
|
}
|
|
1203
2778
|
}
|
|
@@ -1205,56 +2780,62 @@
|
|
|
1205
2780
|
// Inline function 'kotlin.text.appendLine' call
|
|
1206
2781
|
var value_0 = '-> ' + key + ': ' + value;
|
|
1207
2782
|
// Inline function 'kotlin.text.appendLine' call
|
|
1208
|
-
_this__u8e3s4.
|
|
2783
|
+
_this__u8e3s4.f1(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1209
2784
|
}
|
|
1210
2785
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1211
2786
|
// Inline function 'kotlin.with' call
|
|
1212
|
-
if (level.
|
|
2787
|
+
if (level.a5a_1) {
|
|
1213
2788
|
// Inline function 'kotlin.text.appendLine' call
|
|
1214
|
-
var value = 'RESPONSE: ' + response.
|
|
2789
|
+
var value = 'RESPONSE: ' + response.c3p().toString();
|
|
1215
2790
|
// Inline function 'kotlin.text.appendLine' call
|
|
1216
|
-
log.
|
|
2791
|
+
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1217
2792
|
// Inline function 'kotlin.text.appendLine' call
|
|
1218
|
-
var value_0 = 'METHOD: ' + response.
|
|
2793
|
+
var value_0 = 'METHOD: ' + response.m42().f42().n42().toString();
|
|
1219
2794
|
// Inline function 'kotlin.text.appendLine' call
|
|
1220
|
-
log.
|
|
2795
|
+
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1221
2796
|
// Inline function 'kotlin.text.appendLine' call
|
|
1222
|
-
var value_1 = 'FROM: ' + response.
|
|
2797
|
+
var value_1 = 'FROM: ' + response.m42().f42().o42().toString();
|
|
1223
2798
|
// Inline function 'kotlin.text.appendLine' call
|
|
1224
|
-
log.
|
|
2799
|
+
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1225
2800
|
}
|
|
1226
|
-
if (level.
|
|
2801
|
+
if (level.b5a_1) {
|
|
1227
2802
|
// Inline function 'kotlin.text.appendLine' call
|
|
1228
2803
|
var value_2 = 'COMMON HEADERS';
|
|
1229
2804
|
// Inline function 'kotlin.text.appendLine' call
|
|
1230
|
-
log.
|
|
1231
|
-
logHeaders(log, response.n3j().
|
|
2805
|
+
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2806
|
+
logHeaders(log, response.n3j().g38(), sanitizedHeaders);
|
|
1232
2807
|
}
|
|
1233
2808
|
}
|
|
1234
|
-
function logResponseBody(
|
|
1235
|
-
var tmp = new $logResponseBodyCOROUTINE$_0(
|
|
1236
|
-
tmp.
|
|
1237
|
-
tmp.
|
|
1238
|
-
return tmp.
|
|
2809
|
+
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
2810
|
+
var tmp = new $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, $completion);
|
|
2811
|
+
tmp.g9_1 = Unit_instance;
|
|
2812
|
+
tmp.h9_1 = null;
|
|
2813
|
+
return tmp.m9();
|
|
2814
|
+
}
|
|
2815
|
+
function appendResponseBody(_this__u8e3s4, contentType, content, $completion) {
|
|
2816
|
+
var tmp = new $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, $completion);
|
|
2817
|
+
tmp.g9_1 = Unit_instance;
|
|
2818
|
+
tmp.h9_1 = null;
|
|
2819
|
+
return tmp.m9();
|
|
1239
2820
|
}
|
|
1240
2821
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1241
|
-
this.
|
|
2822
|
+
this.s5m_1 = function_0;
|
|
1242
2823
|
}
|
|
1243
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1244
|
-
return this.
|
|
2824
|
+
protoOf(sam$kotlin_Comparator$0).dd = function (a, b) {
|
|
2825
|
+
return this.s5m_1(a, b);
|
|
1245
2826
|
};
|
|
1246
2827
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1247
|
-
return this.
|
|
2828
|
+
return this.dd(a, b);
|
|
1248
2829
|
};
|
|
1249
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1250
|
-
return this.
|
|
2830
|
+
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
2831
|
+
return this.s5m_1;
|
|
1251
2832
|
};
|
|
1252
2833
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1253
2834
|
var tmp;
|
|
1254
2835
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1255
2836
|
var tmp_0;
|
|
1256
2837
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1257
|
-
tmp_0 = equals(this.
|
|
2838
|
+
tmp_0 = equals(this.s3(), other.s3());
|
|
1258
2839
|
} else {
|
|
1259
2840
|
tmp_0 = false;
|
|
1260
2841
|
}
|
|
@@ -1265,42 +2846,122 @@
|
|
|
1265
2846
|
return tmp;
|
|
1266
2847
|
};
|
|
1267
2848
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1268
|
-
return hashCode(this.
|
|
2849
|
+
return hashCode(this.s3());
|
|
1269
2850
|
};
|
|
1270
2851
|
function logHeaders$lambda(a, b) {
|
|
1271
2852
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1272
|
-
var tmp = a.
|
|
1273
|
-
var tmp$ret$1 = b.
|
|
2853
|
+
var tmp = a.n1();
|
|
2854
|
+
var tmp$ret$1 = b.n1();
|
|
1274
2855
|
return compareValues(tmp, tmp$ret$1);
|
|
1275
2856
|
}
|
|
1276
|
-
function $logResponseBodyCOROUTINE$_0(
|
|
2857
|
+
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2858
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2859
|
+
this.b5m_1 = _this__u8e3s4;
|
|
2860
|
+
this.c5m_1 = response;
|
|
2861
|
+
}
|
|
2862
|
+
protoOf($logResponseBodyCOROUTINE$_0).m9 = function () {
|
|
2863
|
+
var suspendResult = this.g9_1;
|
|
2864
|
+
$sm: do
|
|
2865
|
+
try {
|
|
2866
|
+
var tmp = this.e9_1;
|
|
2867
|
+
switch (tmp) {
|
|
2868
|
+
case 0:
|
|
2869
|
+
this.f9_1 = 8;
|
|
2870
|
+
this.d5m_1 = StringBuilder_init_$Create$();
|
|
2871
|
+
this.e9_1 = 1;
|
|
2872
|
+
continue $sm;
|
|
2873
|
+
case 1:
|
|
2874
|
+
this.f9_1 = 4;
|
|
2875
|
+
this.f9_1 = 3;
|
|
2876
|
+
this.e9_1 = 2;
|
|
2877
|
+
suspendResult = appendResponseBody(this.d5m_1, contentType(this.c5m_1), this.c5m_1.u42(), this);
|
|
2878
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2879
|
+
return suspendResult;
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
continue $sm;
|
|
2883
|
+
case 2:
|
|
2884
|
+
this.f9_1 = 8;
|
|
2885
|
+
this.e9_1 = 6;
|
|
2886
|
+
continue $sm;
|
|
2887
|
+
case 3:
|
|
2888
|
+
this.f9_1 = 4;
|
|
2889
|
+
var tmp_0 = this.h9_1;
|
|
2890
|
+
if (tmp_0 instanceof Error) {
|
|
2891
|
+
var _unused_var__etf5q3 = this.h9_1;
|
|
2892
|
+
this.f9_1 = 8;
|
|
2893
|
+
this.e9_1 = 6;
|
|
2894
|
+
continue $sm;
|
|
2895
|
+
} else {
|
|
2896
|
+
throw this.h9_1;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
case 4:
|
|
2900
|
+
this.f9_1 = 8;
|
|
2901
|
+
this.e5m_1 = this.h9_1;
|
|
2902
|
+
this.e9_1 = 5;
|
|
2903
|
+
var this_0 = this.d5m_1.toString();
|
|
2904
|
+
suspendResult = this.b5m_1.v59(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2905
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2906
|
+
return suspendResult;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
continue $sm;
|
|
2910
|
+
case 5:
|
|
2911
|
+
throw this.e5m_1;
|
|
2912
|
+
case 6:
|
|
2913
|
+
this.f9_1 = 8;
|
|
2914
|
+
this.e9_1 = 7;
|
|
2915
|
+
var this_1 = this.d5m_1.toString();
|
|
2916
|
+
suspendResult = this.b5m_1.v59(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2917
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2918
|
+
return suspendResult;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
continue $sm;
|
|
2922
|
+
case 7:
|
|
2923
|
+
return Unit_instance;
|
|
2924
|
+
case 8:
|
|
2925
|
+
throw this.h9_1;
|
|
2926
|
+
}
|
|
2927
|
+
} catch ($p) {
|
|
2928
|
+
var e = $p;
|
|
2929
|
+
if (this.f9_1 === 8) {
|
|
2930
|
+
throw e;
|
|
2931
|
+
} else {
|
|
2932
|
+
this.e9_1 = this.f9_1;
|
|
2933
|
+
this.h9_1 = e;
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
while (true);
|
|
2937
|
+
};
|
|
2938
|
+
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
1277
2939
|
CoroutineImpl.call(this, resultContinuation);
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
2940
|
+
this.n5m_1 = _this__u8e3s4;
|
|
2941
|
+
this.o5m_1 = contentType;
|
|
2942
|
+
this.p5m_1 = content;
|
|
1281
2943
|
}
|
|
1282
|
-
protoOf($
|
|
1283
|
-
var suspendResult = this.
|
|
2944
|
+
protoOf($appendResponseBodyCOROUTINE$).m9 = function () {
|
|
2945
|
+
var suspendResult = this.g9_1;
|
|
1284
2946
|
$sm: do
|
|
1285
2947
|
try {
|
|
1286
|
-
var tmp = this.
|
|
2948
|
+
var tmp = this.e9_1;
|
|
1287
2949
|
switch (tmp) {
|
|
1288
2950
|
case 0:
|
|
1289
|
-
this.
|
|
1290
|
-
|
|
1291
|
-
var
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
var tmp0_0 = this.t4t_1;
|
|
2951
|
+
this.f9_1 = 3;
|
|
2952
|
+
var tmp0 = this.n5m_1;
|
|
2953
|
+
var value = 'BODY Content-Type: ' + toString_0(this.o5m_1);
|
|
2954
|
+
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2955
|
+
var tmp0_0 = this.n5m_1;
|
|
1295
2956
|
var value_0 = 'BODY START';
|
|
1296
|
-
tmp0_0.
|
|
1297
|
-
var tmp0_1 = this.
|
|
1298
|
-
var tmp0_safe_receiver = this.
|
|
2957
|
+
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2958
|
+
var tmp0_1 = this.p5m_1;
|
|
2959
|
+
var tmp0_safe_receiver = this.o5m_1;
|
|
1299
2960
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
suspendResult = tmp0_1
|
|
2961
|
+
this.r5m_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().c33_1 : tmp1_elvis_lhs;
|
|
2962
|
+
this.f9_1 = 2;
|
|
2963
|
+
this.e9_1 = 1;
|
|
2964
|
+
suspendResult = readRemaining(tmp0_1, this);
|
|
1304
2965
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1305
2966
|
return suspendResult;
|
|
1306
2967
|
}
|
|
@@ -1308,78 +2969,78 @@
|
|
|
1308
2969
|
continue $sm;
|
|
1309
2970
|
case 1:
|
|
1310
2971
|
var ARGUMENT = suspendResult;
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
2972
|
+
this.q5m_1 = readText(ARGUMENT, this.r5m_1);
|
|
2973
|
+
this.f9_1 = 3;
|
|
2974
|
+
this.e9_1 = 4;
|
|
1314
2975
|
continue $sm;
|
|
1315
2976
|
case 2:
|
|
1316
|
-
this.
|
|
1317
|
-
var tmp_0 = this.
|
|
2977
|
+
this.f9_1 = 3;
|
|
2978
|
+
var tmp_0 = this.h9_1;
|
|
1318
2979
|
if (tmp_0 instanceof Error) {
|
|
1319
|
-
var cause = this.
|
|
2980
|
+
var cause = this.h9_1;
|
|
1320
2981
|
var tmp_1 = this;
|
|
1321
|
-
tmp_1.
|
|
1322
|
-
this.
|
|
2982
|
+
tmp_1.q5m_1 = null;
|
|
2983
|
+
this.e9_1 = 4;
|
|
1323
2984
|
continue $sm;
|
|
1324
2985
|
} else {
|
|
1325
|
-
throw this.
|
|
2986
|
+
throw this.h9_1;
|
|
1326
2987
|
}
|
|
1327
2988
|
|
|
1328
2989
|
case 3:
|
|
1329
|
-
throw this.
|
|
2990
|
+
throw this.h9_1;
|
|
1330
2991
|
case 4:
|
|
1331
|
-
this.
|
|
1332
|
-
var tmp2_elvis_lhs = this.
|
|
2992
|
+
this.f9_1 = 3;
|
|
2993
|
+
var tmp2_elvis_lhs = this.q5m_1;
|
|
1333
2994
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
2995
|
+
this.n5m_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2996
|
+
this.n5m_1.q('BODY END');
|
|
1336
2997
|
return Unit_instance;
|
|
1337
2998
|
}
|
|
1338
2999
|
} catch ($p) {
|
|
1339
3000
|
var e = $p;
|
|
1340
|
-
if (this.
|
|
3001
|
+
if (this.f9_1 === 3) {
|
|
1341
3002
|
throw e;
|
|
1342
3003
|
} else {
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
3004
|
+
this.e9_1 = this.f9_1;
|
|
3005
|
+
this.h9_1 = e;
|
|
1345
3006
|
}
|
|
1346
3007
|
}
|
|
1347
3008
|
while (true);
|
|
1348
3009
|
};
|
|
1349
3010
|
function observe(_this__u8e3s4, log, $completion) {
|
|
1350
3011
|
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
1351
|
-
tmp.
|
|
1352
|
-
tmp.
|
|
1353
|
-
return tmp.
|
|
3012
|
+
tmp.g9_1 = Unit_instance;
|
|
3013
|
+
tmp.h9_1 = null;
|
|
3014
|
+
return tmp.m9();
|
|
1354
3015
|
}
|
|
1355
3016
|
function toReadChannel(_this__u8e3s4) {
|
|
1356
3017
|
var tmp = GlobalScope_instance;
|
|
1357
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1358
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3018
|
+
var tmp_0 = Dispatchers_getInstance().e23_1;
|
|
3019
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).b31_1;
|
|
1359
3020
|
}
|
|
1360
3021
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1361
|
-
this.
|
|
3022
|
+
this.n5n_1 = $this_toReadChannel;
|
|
1362
3023
|
CoroutineImpl.call(this, resultContinuation);
|
|
1363
3024
|
}
|
|
1364
|
-
protoOf(toReadChannel$slambda).
|
|
1365
|
-
var tmp = this.
|
|
1366
|
-
tmp.
|
|
1367
|
-
tmp.
|
|
1368
|
-
return tmp.
|
|
3025
|
+
protoOf(toReadChannel$slambda).g3u = function ($this$writer, $completion) {
|
|
3026
|
+
var tmp = this.h3u($this$writer, $completion);
|
|
3027
|
+
tmp.g9_1 = Unit_instance;
|
|
3028
|
+
tmp.h9_1 = null;
|
|
3029
|
+
return tmp.m9();
|
|
1369
3030
|
};
|
|
1370
|
-
protoOf(toReadChannel$slambda).
|
|
1371
|
-
return this.
|
|
3031
|
+
protoOf(toReadChannel$slambda).y9 = function (p1, $completion) {
|
|
3032
|
+
return this.g3u(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
1372
3033
|
};
|
|
1373
|
-
protoOf(toReadChannel$slambda).
|
|
1374
|
-
var suspendResult = this.
|
|
3034
|
+
protoOf(toReadChannel$slambda).m9 = function () {
|
|
3035
|
+
var suspendResult = this.g9_1;
|
|
1375
3036
|
$sm: do
|
|
1376
3037
|
try {
|
|
1377
|
-
var tmp = this.
|
|
3038
|
+
var tmp = this.e9_1;
|
|
1378
3039
|
switch (tmp) {
|
|
1379
3040
|
case 0:
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
suspendResult = this.
|
|
3041
|
+
this.f9_1 = 2;
|
|
3042
|
+
this.e9_1 = 1;
|
|
3043
|
+
suspendResult = this.n5n_1.j3p(this.o5n_1.d31_1, this);
|
|
1383
3044
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1384
3045
|
return suspendResult;
|
|
1385
3046
|
}
|
|
@@ -1388,49 +3049,49 @@
|
|
|
1388
3049
|
case 1:
|
|
1389
3050
|
return Unit_instance;
|
|
1390
3051
|
case 2:
|
|
1391
|
-
throw this.
|
|
3052
|
+
throw this.h9_1;
|
|
1392
3053
|
}
|
|
1393
3054
|
} catch ($p) {
|
|
1394
3055
|
var e = $p;
|
|
1395
|
-
if (this.
|
|
3056
|
+
if (this.f9_1 === 2) {
|
|
1396
3057
|
throw e;
|
|
1397
3058
|
} else {
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
3059
|
+
this.e9_1 = this.f9_1;
|
|
3060
|
+
this.h9_1 = e;
|
|
1400
3061
|
}
|
|
1401
3062
|
}
|
|
1402
3063
|
while (true);
|
|
1403
3064
|
};
|
|
1404
|
-
protoOf(toReadChannel$slambda).
|
|
1405
|
-
var i = new toReadChannel$slambda(this.
|
|
1406
|
-
i.
|
|
3065
|
+
protoOf(toReadChannel$slambda).h3u = function ($this$writer, completion) {
|
|
3066
|
+
var i = new toReadChannel$slambda(this.n5n_1, completion);
|
|
3067
|
+
i.o5n_1 = $this$writer;
|
|
1407
3068
|
return i;
|
|
1408
3069
|
};
|
|
1409
3070
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1410
3071
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1411
3072
|
var l = function ($this$writer, $completion) {
|
|
1412
|
-
return i.
|
|
3073
|
+
return i.g3u($this$writer, $completion);
|
|
1413
3074
|
};
|
|
1414
3075
|
l.$arity = 1;
|
|
1415
3076
|
return l;
|
|
1416
3077
|
}
|
|
1417
3078
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
1418
3079
|
CoroutineImpl.call(this, resultContinuation);
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
3080
|
+
this.b5n_1 = _this__u8e3s4;
|
|
3081
|
+
this.c5n_1 = log;
|
|
1421
3082
|
}
|
|
1422
|
-
protoOf($observeCOROUTINE$).
|
|
1423
|
-
var suspendResult = this.
|
|
3083
|
+
protoOf($observeCOROUTINE$).m9 = function () {
|
|
3084
|
+
var suspendResult = this.g9_1;
|
|
1424
3085
|
$sm: do
|
|
1425
3086
|
try {
|
|
1426
|
-
var tmp = this.
|
|
3087
|
+
var tmp = this.e9_1;
|
|
1427
3088
|
switch (tmp) {
|
|
1428
3089
|
case 0:
|
|
1429
|
-
this.
|
|
1430
|
-
var tmp0_subject = this.
|
|
3090
|
+
this.f9_1 = 6;
|
|
3091
|
+
var tmp0_subject = this.b5n_1;
|
|
1431
3092
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
1432
|
-
this.
|
|
1433
|
-
suspendResult = writeFully(this.
|
|
3093
|
+
this.e9_1 = 3;
|
|
3094
|
+
suspendResult = writeFully(this.c5n_1, this.b5n_1.e3p(), VOID, VOID, this);
|
|
1434
3095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1435
3096
|
return suspendResult;
|
|
1436
3097
|
}
|
|
@@ -1438,57 +3099,130 @@
|
|
|
1438
3099
|
} else {
|
|
1439
3100
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
1440
3101
|
var tmp_0 = this;
|
|
1441
|
-
var responseChannel = ByteChannel();
|
|
1442
|
-
var content = this.
|
|
1443
|
-
copyToBoth(content, this.
|
|
1444
|
-
tmp_0.
|
|
1445
|
-
this.
|
|
3102
|
+
var responseChannel = new ByteChannel();
|
|
3103
|
+
var content = this.b5n_1.h3p();
|
|
3104
|
+
copyToBoth(content, this.c5n_1, responseChannel);
|
|
3105
|
+
tmp_0.d5n_1 = new LoggedContent(this.b5n_1, responseChannel);
|
|
3106
|
+
this.e9_1 = 5;
|
|
1446
3107
|
continue $sm;
|
|
1447
3108
|
} else {
|
|
1448
3109
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
1449
3110
|
var tmp_1 = this;
|
|
1450
|
-
var responseChannel_0 = ByteChannel();
|
|
1451
|
-
var content_0 = toReadChannel(this.
|
|
1452
|
-
copyToBoth(content_0, this.
|
|
1453
|
-
tmp_1.
|
|
1454
|
-
this.
|
|
3111
|
+
var responseChannel_0 = new ByteChannel();
|
|
3112
|
+
var content_0 = toReadChannel(this.b5n_1);
|
|
3113
|
+
copyToBoth(content_0, this.c5n_1, responseChannel_0);
|
|
3114
|
+
tmp_1.d5n_1 = new LoggedContent(this.b5n_1, responseChannel_0);
|
|
3115
|
+
this.e9_1 = 5;
|
|
1455
3116
|
continue $sm;
|
|
1456
3117
|
} else {
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
3118
|
+
if (tmp0_subject instanceof ContentWrapper) {
|
|
3119
|
+
this.e5n_1 = this.b5n_1;
|
|
3120
|
+
this.e9_1 = 2;
|
|
3121
|
+
suspendResult = observe(this.b5n_1.n3p(), this.c5n_1, this);
|
|
3122
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3123
|
+
return suspendResult;
|
|
3124
|
+
}
|
|
3125
|
+
continue $sm;
|
|
3126
|
+
} else {
|
|
3127
|
+
var tmp_2;
|
|
3128
|
+
if (tmp0_subject instanceof NoContent) {
|
|
3129
|
+
tmp_2 = true;
|
|
3130
|
+
} else {
|
|
3131
|
+
tmp_2 = tmp0_subject instanceof ProtocolUpgrade;
|
|
3132
|
+
}
|
|
3133
|
+
if (tmp_2) {
|
|
3134
|
+
this.e9_1 = 1;
|
|
3135
|
+
suspendResult = this.c5n_1.k2t(this);
|
|
3136
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3137
|
+
return suspendResult;
|
|
3138
|
+
}
|
|
3139
|
+
continue $sm;
|
|
3140
|
+
} else {
|
|
3141
|
+
var tmp_3 = this;
|
|
3142
|
+
noWhenBranchMatchedException();
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
1462
3145
|
}
|
|
1463
3146
|
}
|
|
1464
3147
|
}
|
|
1465
3148
|
|
|
3149
|
+
break;
|
|
1466
3150
|
case 1:
|
|
1467
|
-
|
|
1468
|
-
this.
|
|
1469
|
-
this.s8_1 = 2;
|
|
3151
|
+
this.d5n_1 = this.b5n_1;
|
|
3152
|
+
this.e9_1 = 5;
|
|
1470
3153
|
continue $sm;
|
|
1471
3154
|
case 2:
|
|
1472
|
-
|
|
3155
|
+
var ARGUMENT = suspendResult;
|
|
3156
|
+
this.d5n_1 = this.e5n_1.o3p(ARGUMENT);
|
|
3157
|
+
this.e9_1 = 5;
|
|
3158
|
+
continue $sm;
|
|
1473
3159
|
case 3:
|
|
1474
|
-
|
|
3160
|
+
this.e9_1 = 4;
|
|
3161
|
+
suspendResult = this.c5n_1.k2t(this);
|
|
3162
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3163
|
+
return suspendResult;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
continue $sm;
|
|
3167
|
+
case 4:
|
|
3168
|
+
this.d5n_1 = this.b5n_1;
|
|
3169
|
+
this.e9_1 = 5;
|
|
3170
|
+
continue $sm;
|
|
3171
|
+
case 5:
|
|
3172
|
+
return this.d5n_1;
|
|
3173
|
+
case 6:
|
|
3174
|
+
throw this.h9_1;
|
|
1475
3175
|
}
|
|
1476
3176
|
} catch ($p) {
|
|
1477
3177
|
var e = $p;
|
|
1478
|
-
if (this.
|
|
3178
|
+
if (this.f9_1 === 6) {
|
|
1479
3179
|
throw e;
|
|
1480
3180
|
} else {
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
3181
|
+
this.e9_1 = this.f9_1;
|
|
3182
|
+
this.h9_1 = e;
|
|
1483
3183
|
}
|
|
1484
3184
|
}
|
|
1485
3185
|
while (true);
|
|
1486
3186
|
};
|
|
3187
|
+
function MDCContext() {
|
|
3188
|
+
return MDCContextElement_instance;
|
|
3189
|
+
}
|
|
3190
|
+
function MDCContextKey() {
|
|
3191
|
+
}
|
|
3192
|
+
var MDCContextKey_instance;
|
|
3193
|
+
function MDCContextKey_getInstance() {
|
|
3194
|
+
return MDCContextKey_instance;
|
|
3195
|
+
}
|
|
3196
|
+
function MDCContextElement() {
|
|
3197
|
+
}
|
|
3198
|
+
protoOf(MDCContextElement).n1 = function () {
|
|
3199
|
+
return MDCContextKey_instance;
|
|
3200
|
+
};
|
|
3201
|
+
protoOf(MDCContextElement).toString = function () {
|
|
3202
|
+
return 'MDCContext';
|
|
3203
|
+
};
|
|
3204
|
+
var MDCContextElement_instance;
|
|
3205
|
+
function MDCContextElement_getInstance() {
|
|
3206
|
+
return MDCContextElement_instance;
|
|
3207
|
+
}
|
|
1487
3208
|
function get_DEFAULT(_this__u8e3s4) {
|
|
1488
3209
|
return get_SIMPLE(_this__u8e3s4);
|
|
1489
3210
|
}
|
|
3211
|
+
//region block: post-declaration
|
|
3212
|
+
protoOf(MDCContextElement).r9 = get;
|
|
3213
|
+
protoOf(MDCContextElement).fh = fold;
|
|
3214
|
+
protoOf(MDCContextElement).eh = minusKey;
|
|
3215
|
+
protoOf(MDCContextElement).gh = plus;
|
|
3216
|
+
//endregion
|
|
1490
3217
|
//region block: init
|
|
1491
3218
|
Companion_instance = new Companion();
|
|
3219
|
+
SimpleLogger_instance = new SimpleLogger();
|
|
3220
|
+
SendHook_instance = new SendHook();
|
|
3221
|
+
ResponseAfterEncodingHook_instance = new ResponseAfterEncodingHook();
|
|
3222
|
+
ResponseHook_instance = new ResponseHook();
|
|
3223
|
+
ReceiveHook_instance = new ReceiveHook();
|
|
3224
|
+
MDCContextKey_instance = new MDCContextKey();
|
|
3225
|
+
MDCContextElement_instance = new MDCContextElement();
|
|
1492
3226
|
//endregion
|
|
1493
3227
|
//region block: exports
|
|
1494
3228
|
_.$_$ = _.$_$ || {};
|
|
@@ -1496,8 +3230,8 @@
|
|
|
1496
3230
|
_.$_$.b = LogLevel_INFO_getInstance;
|
|
1497
3231
|
_.$_$.c = LogLevel_NONE_getInstance;
|
|
1498
3232
|
_.$_$.d = Companion_instance;
|
|
1499
|
-
_.$_$.e =
|
|
1500
|
-
_.$_$.f =
|
|
3233
|
+
_.$_$.e = get_DEFAULT;
|
|
3234
|
+
_.$_$.f = get_Logging;
|
|
1501
3235
|
//endregion
|
|
1502
3236
|
return _;
|
|
1503
3237
|
}));
|