mrs-toolbox-cli 0.0.119 → 0.0.128
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/88b0986a7186d029-atomicfu-js-ir.js +32 -33
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -626
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/clikt-clikt.js +2063 -2080
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +563 -455
- package/colormath-root-colormath.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js +8144 -10110
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +9747 -9277
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +62 -62
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-node.js +12 -2
- package/kotlin-node.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2509 -2492
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +2346 -2152
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3151 -2091
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +261 -260
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2777 -2786
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +17 -18
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +921 -923
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1738 -1760
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/ktor-ktor-serialization-kotlinx.js +303 -305
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +135 -134
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +641 -637
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +73 -73
- package/ktor-ktor-websockets.js.map +1 -1
- package/markdown.js +2346 -2358
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +2536 -2631
- package/mordant-mordant.js.map +1 -1
- package/mrs-toolbox-cli.d.ts +257 -856
- package/mrs-toolbox-cli.js +125 -209
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +2 -2
- package/static/demo.test.ts.txt +1 -1
- package/static/mrscconfig.json +0 -1
- package/toolbox.js +11653 -8922
- package/toolbox.js.map +1 -1
|
@@ -1,73 +1,74 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
10
|
-
var THROW_CCE = kotlin_kotlin.$_$.pg;
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.kc;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
6
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ja;
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.i5;
|
|
8
|
+
var THROW_CCE = kotlin_kotlin.$_$.tg;
|
|
11
9
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
12
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
13
|
-
var
|
|
10
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v9;
|
|
11
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ob;
|
|
12
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
13
|
+
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
14
14
|
var contentType = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
15
15
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
16
|
-
var plus = kotlin_kotlin.$_$.
|
|
17
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
18
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
16
|
+
var plus = kotlin_kotlin.$_$.k8;
|
|
17
|
+
var toMutableSet = kotlin_kotlin.$_$.j9;
|
|
18
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
19
19
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
20
20
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
21
21
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
22
22
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
23
|
-
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.
|
|
24
|
-
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.
|
|
25
|
-
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.
|
|
26
|
-
var
|
|
27
|
-
var toString = kotlin_kotlin.$_$.
|
|
28
|
-
var accept = kotlin_io_ktor_ktor_client_core.$_$.
|
|
29
|
-
var Collection = kotlin_kotlin.$_$.
|
|
30
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
23
|
+
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
24
|
+
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
25
|
+
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
26
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pb;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.pc;
|
|
28
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
29
|
+
var Collection = kotlin_kotlin.$_$.k5;
|
|
30
|
+
var isInterface = kotlin_kotlin.$_$.yb;
|
|
31
31
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
|
|
32
32
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
33
33
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.z;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
35
|
-
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.
|
|
36
|
-
var Unit = kotlin_kotlin.$_$.
|
|
35
|
+
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
36
|
+
var Unit = kotlin_kotlin.$_$.eh;
|
|
37
37
|
var charset = kotlin_io_ktor_ktor_http.$_$.x;
|
|
38
38
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.f;
|
|
39
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
39
|
+
var ensureNotNull = kotlin_kotlin.$_$.kh;
|
|
40
40
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
41
|
-
var equals = kotlin_kotlin.$_$.
|
|
42
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
41
|
+
var equals = kotlin_kotlin.$_$.bb;
|
|
42
|
+
var joinToString = kotlin_kotlin.$_$.n7;
|
|
43
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
|
|
43
44
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
44
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
45
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
45
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.e6;
|
|
46
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
46
47
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
47
|
-
var Exception = kotlin_kotlin.$_$.
|
|
48
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
49
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
48
|
+
var Exception = kotlin_kotlin.$_$.kg;
|
|
49
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.n1;
|
|
50
|
+
var captureStack = kotlin_kotlin.$_$.ta;
|
|
50
51
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
51
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
52
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.y4;
|
|
52
53
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.r;
|
|
53
54
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
54
|
-
var setOf = kotlin_kotlin.$_$.
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
+
var setOf = kotlin_kotlin.$_$.s8;
|
|
56
|
+
var startsWith = kotlin_kotlin.$_$.cf;
|
|
57
|
+
var endsWith = kotlin_kotlin.$_$.yd;
|
|
58
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
58
59
|
//endregion
|
|
59
60
|
//region block: pre-declaration
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
61
|
+
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
62
|
+
initMetadataForClass(ContentNegotiation$Config$defaultMatcher$1);
|
|
63
|
+
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda, CoroutineImpl, VOID, [2]);
|
|
64
|
+
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda_1, CoroutineImpl, VOID, [2]);
|
|
65
|
+
initMetadataForClass(Config, 'Config', Config, VOID, [Configuration]);
|
|
66
|
+
initMetadataForObject(Plugin, 'Plugin', VOID, VOID, [HttpClientPlugin]);
|
|
67
|
+
initMetadataForCoroutine($convertRequestCOROUTINE$0, CoroutineImpl);
|
|
68
|
+
initMetadataForCoroutine($convertResponseCOROUTINE$1, CoroutineImpl);
|
|
69
|
+
initMetadataForClass(ContentNegotiation, 'ContentNegotiation', VOID, VOID, VOID, [2, 5]);
|
|
70
|
+
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
71
|
+
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
71
72
|
//endregion
|
|
72
73
|
function get_LOGGER() {
|
|
73
74
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
@@ -80,61 +81,61 @@
|
|
|
80
81
|
}
|
|
81
82
|
var DefaultCommonIgnoredTypes;
|
|
82
83
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
84
|
+
this.e50_1 = converter;
|
|
85
|
+
this.f50_1 = contentTypeToSend;
|
|
86
|
+
this.g50_1 = contentTypeMatcher;
|
|
86
87
|
}
|
|
87
88
|
function defaultMatcher($this, pattern) {
|
|
88
89
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
89
90
|
}
|
|
90
91
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
91
|
-
this.
|
|
92
|
+
this.h50_1 = $pattern;
|
|
92
93
|
}
|
|
93
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
94
|
-
return contentType.
|
|
94
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).i50 = function (contentType) {
|
|
95
|
+
return contentType.e1y(this.h50_1);
|
|
95
96
|
};
|
|
96
97
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
97
|
-
this.
|
|
98
|
+
this.r50_1 = $plugin;
|
|
98
99
|
CoroutineImpl.call(this, resultContinuation);
|
|
99
100
|
}
|
|
100
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
101
|
-
var tmp = this.
|
|
102
|
-
tmp.
|
|
103
|
-
tmp.
|
|
104
|
-
return tmp.
|
|
101
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).f40 = function ($this$intercept, it, $completion) {
|
|
102
|
+
var tmp = this.g40($this$intercept, it, $completion);
|
|
103
|
+
tmp.l9_1 = Unit_instance;
|
|
104
|
+
tmp.m9_1 = null;
|
|
105
|
+
return tmp.r9();
|
|
105
106
|
};
|
|
106
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
107
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).fk = function (p1, p2, $completion) {
|
|
107
108
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
108
|
-
return this.
|
|
109
|
+
return this.f40(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
109
110
|
};
|
|
110
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
111
|
-
var suspendResult = this.
|
|
111
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).r9 = function () {
|
|
112
|
+
var suspendResult = this.l9_1;
|
|
112
113
|
$sm: do
|
|
113
114
|
try {
|
|
114
|
-
var tmp = this.
|
|
115
|
+
var tmp = this.j9_1;
|
|
115
116
|
switch (tmp) {
|
|
116
117
|
case 0:
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
suspendResult = this.
|
|
118
|
+
this.k9_1 = 3;
|
|
119
|
+
this.j9_1 = 1;
|
|
120
|
+
suspendResult = this.r50_1.y50(this.s50_1.o1v_1, this.s50_1.r1u(), this);
|
|
120
121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
121
122
|
return suspendResult;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
continue $sm;
|
|
125
126
|
case 1:
|
|
126
|
-
this.
|
|
127
|
+
this.u50_1 = suspendResult;
|
|
127
128
|
var tmp_0 = this;
|
|
128
129
|
var tmp_1;
|
|
129
|
-
if (this.
|
|
130
|
+
if (this.u50_1 == null) {
|
|
130
131
|
return Unit_instance;
|
|
131
132
|
} else {
|
|
132
|
-
tmp_1 = this.
|
|
133
|
+
tmp_1 = this.u50_1;
|
|
133
134
|
}
|
|
134
135
|
|
|
135
|
-
tmp_0.
|
|
136
|
-
this.
|
|
137
|
-
suspendResult = this.
|
|
136
|
+
tmp_0.v50_1 = tmp_1;
|
|
137
|
+
this.j9_1 = 2;
|
|
138
|
+
suspendResult = this.s50_1.s1u(this.v50_1, this);
|
|
138
139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
139
140
|
return suspendResult;
|
|
140
141
|
}
|
|
@@ -143,91 +144,91 @@
|
|
|
143
144
|
case 2:
|
|
144
145
|
return Unit_instance;
|
|
145
146
|
case 3:
|
|
146
|
-
throw this.
|
|
147
|
+
throw this.m9_1;
|
|
147
148
|
}
|
|
148
149
|
} catch ($p) {
|
|
149
150
|
var e = $p;
|
|
150
|
-
if (this.
|
|
151
|
+
if (this.k9_1 === 3) {
|
|
151
152
|
throw e;
|
|
152
153
|
} else {
|
|
153
|
-
this.
|
|
154
|
-
this.
|
|
154
|
+
this.j9_1 = this.k9_1;
|
|
155
|
+
this.m9_1 = e;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
while (true);
|
|
158
159
|
};
|
|
159
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
160
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
161
|
-
i.
|
|
162
|
-
i.
|
|
160
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).g40 = function ($this$intercept, it, completion) {
|
|
161
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.r50_1, completion);
|
|
162
|
+
i.s50_1 = $this$intercept;
|
|
163
|
+
i.t50_1 = it;
|
|
163
164
|
return i;
|
|
164
165
|
};
|
|
165
166
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
166
167
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
167
168
|
var l = function ($this$intercept, it, $completion) {
|
|
168
|
-
return i.
|
|
169
|
+
return i.f40($this$intercept, it, $completion);
|
|
169
170
|
};
|
|
170
171
|
l.$arity = 2;
|
|
171
172
|
return l;
|
|
172
173
|
}
|
|
173
174
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
174
|
-
this.
|
|
175
|
+
this.h51_1 = $plugin;
|
|
175
176
|
CoroutineImpl.call(this, resultContinuation);
|
|
176
177
|
}
|
|
177
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
178
|
-
var tmp = this.
|
|
179
|
-
tmp.
|
|
180
|
-
tmp.
|
|
181
|
-
return tmp.
|
|
178
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).z40 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
179
|
+
var tmp = this.a41($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
180
|
+
tmp.l9_1 = Unit_instance;
|
|
181
|
+
tmp.m9_1 = null;
|
|
182
|
+
return tmp.r9();
|
|
182
183
|
};
|
|
183
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
184
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).fk = function (p1, p2, $completion) {
|
|
184
185
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
185
|
-
return this.
|
|
186
|
+
return this.z40(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
186
187
|
};
|
|
187
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
188
|
-
var suspendResult = this.
|
|
188
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).r9 = function () {
|
|
189
|
+
var suspendResult = this.l9_1;
|
|
189
190
|
$sm: do
|
|
190
191
|
try {
|
|
191
|
-
var tmp = this.
|
|
192
|
+
var tmp = this.j9_1;
|
|
192
193
|
switch (tmp) {
|
|
193
194
|
case 0:
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
195
|
+
this.k9_1 = 3;
|
|
196
|
+
this.k51_1 = this.j51_1.xf();
|
|
197
|
+
this.l51_1 = this.j51_1.yf();
|
|
197
198
|
var tmp_0 = this;
|
|
198
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
199
|
+
var tmp0_elvis_lhs = contentType(this.i51_1.o1v_1.m40());
|
|
199
200
|
var tmp_1;
|
|
200
201
|
if (tmp0_elvis_lhs == null) {
|
|
201
|
-
this.
|
|
202
|
-
get_LOGGER().
|
|
202
|
+
this.i51_1;
|
|
203
|
+
get_LOGGER().j1w('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
203
204
|
return Unit_instance;
|
|
204
205
|
} else {
|
|
205
206
|
tmp_1 = tmp0_elvis_lhs;
|
|
206
207
|
}
|
|
207
208
|
|
|
208
|
-
tmp_0.
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
211
|
-
suspendResult = this.
|
|
209
|
+
tmp_0.m51_1 = tmp_1;
|
|
210
|
+
this.n51_1 = suitableCharset(this.i51_1.o1v_1.v43().m22());
|
|
211
|
+
this.j9_1 = 1;
|
|
212
|
+
suspendResult = this.h51_1.r51(this.i51_1.o1v_1.v43().f3n(), this.k51_1, this.l51_1, this.m51_1, this.n51_1, this);
|
|
212
213
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
213
214
|
return suspendResult;
|
|
214
215
|
}
|
|
215
216
|
|
|
216
217
|
continue $sm;
|
|
217
218
|
case 1:
|
|
218
|
-
this.
|
|
219
|
+
this.o51_1 = suspendResult;
|
|
219
220
|
var tmp_2 = this;
|
|
220
221
|
var tmp_3;
|
|
221
|
-
if (this.
|
|
222
|
+
if (this.o51_1 == null) {
|
|
222
223
|
return Unit_instance;
|
|
223
224
|
} else {
|
|
224
|
-
tmp_3 = this.
|
|
225
|
+
tmp_3 = this.o51_1;
|
|
225
226
|
}
|
|
226
227
|
|
|
227
|
-
tmp_2.
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
-
suspendResult = this.
|
|
228
|
+
tmp_2.p51_1 = tmp_3;
|
|
229
|
+
this.q51_1 = new HttpResponseContainer(this.k51_1, this.p51_1);
|
|
230
|
+
this.j9_1 = 2;
|
|
231
|
+
suspendResult = this.i51_1.s1u(this.q51_1, this);
|
|
231
232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
232
233
|
return suspendResult;
|
|
233
234
|
}
|
|
@@ -236,76 +237,76 @@
|
|
|
236
237
|
case 2:
|
|
237
238
|
return Unit_instance;
|
|
238
239
|
case 3:
|
|
239
|
-
throw this.
|
|
240
|
+
throw this.m9_1;
|
|
240
241
|
}
|
|
241
242
|
} catch ($p) {
|
|
242
243
|
var e = $p;
|
|
243
|
-
if (this.
|
|
244
|
+
if (this.k9_1 === 3) {
|
|
244
245
|
throw e;
|
|
245
246
|
} else {
|
|
246
|
-
this.
|
|
247
|
-
this.
|
|
247
|
+
this.j9_1 = this.k9_1;
|
|
248
|
+
this.m9_1 = e;
|
|
248
249
|
}
|
|
249
250
|
}
|
|
250
251
|
while (true);
|
|
251
252
|
};
|
|
252
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
253
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
254
|
-
i.
|
|
255
|
-
i.
|
|
253
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).a41 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
254
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.h51_1, completion);
|
|
255
|
+
i.i51_1 = $this$intercept;
|
|
256
|
+
i.j51_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
256
257
|
return i;
|
|
257
258
|
};
|
|
258
259
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
259
260
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
260
261
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
261
|
-
return i.
|
|
262
|
+
return i.z40($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
262
263
|
};
|
|
263
264
|
l.$arity = 2;
|
|
264
265
|
return l;
|
|
265
266
|
}
|
|
266
267
|
function Config() {
|
|
267
|
-
this.
|
|
268
|
+
this.s51_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
268
269
|
var tmp = this;
|
|
269
270
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
270
|
-
tmp.
|
|
271
|
+
tmp.t51_1 = ArrayList_init_$Create$();
|
|
271
272
|
}
|
|
272
|
-
protoOf(Config).
|
|
273
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
274
|
-
this.
|
|
273
|
+
protoOf(Config).y28 = function (contentType, converter, configuration) {
|
|
274
|
+
var matcher = contentType.equals(Application_getInstance().x1w_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
275
|
+
this.u51(contentType, converter, matcher, configuration);
|
|
275
276
|
};
|
|
276
|
-
protoOf(Config).
|
|
277
|
+
protoOf(Config).u51 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
277
278
|
// Inline function 'kotlin.apply' call
|
|
278
279
|
// Inline function 'kotlin.contracts.contract' call
|
|
279
280
|
configuration(converter);
|
|
280
281
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
281
|
-
this.
|
|
282
|
+
this.t51_1.e(registration);
|
|
282
283
|
};
|
|
283
284
|
function Plugin() {
|
|
284
285
|
Plugin_instance = this;
|
|
285
|
-
this.
|
|
286
|
+
this.v51_1 = new AttributeKey('ContentNegotiation');
|
|
286
287
|
}
|
|
287
|
-
protoOf(Plugin).
|
|
288
|
-
return this.
|
|
288
|
+
protoOf(Plugin).a1 = function () {
|
|
289
|
+
return this.v51_1;
|
|
289
290
|
};
|
|
290
|
-
protoOf(Plugin).
|
|
291
|
+
protoOf(Plugin).w51 = function (block) {
|
|
291
292
|
// Inline function 'kotlin.apply' call
|
|
292
293
|
var this_0 = new Config();
|
|
293
294
|
// Inline function 'kotlin.contracts.contract' call
|
|
294
295
|
block(this_0);
|
|
295
296
|
var config = this_0;
|
|
296
|
-
return new ContentNegotiation(config.
|
|
297
|
+
return new ContentNegotiation(config.t51_1, config.s51_1);
|
|
297
298
|
};
|
|
298
|
-
protoOf(Plugin).
|
|
299
|
-
return this.
|
|
299
|
+
protoOf(Plugin).q42 = function (block) {
|
|
300
|
+
return this.w51(block);
|
|
300
301
|
};
|
|
301
|
-
protoOf(Plugin).
|
|
302
|
-
var tmp = Phases_getInstance().
|
|
303
|
-
scope.
|
|
304
|
-
var tmp_0 = Phases_getInstance_0().
|
|
305
|
-
scope.
|
|
302
|
+
protoOf(Plugin).x51 = function (plugin, scope) {
|
|
303
|
+
var tmp = Phases_getInstance().h48_1;
|
|
304
|
+
scope.l3z_1.s1v(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
305
|
+
var tmp_0 = Phases_getInstance_0().l42_1;
|
|
306
|
+
scope.m3z_1.s1v(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
306
307
|
};
|
|
307
|
-
protoOf(Plugin).
|
|
308
|
-
return this.
|
|
308
|
+
protoOf(Plugin).r42 = function (plugin, scope) {
|
|
309
|
+
return this.x51(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
309
310
|
};
|
|
310
311
|
var Plugin_instance;
|
|
311
312
|
function Plugin_getInstance() {
|
|
@@ -314,40 +315,40 @@
|
|
|
314
315
|
return Plugin_instance;
|
|
315
316
|
}
|
|
316
317
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
317
|
-
return toString(it.
|
|
318
|
+
return toString(it.e50_1);
|
|
318
319
|
}
|
|
319
320
|
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
320
321
|
CoroutineImpl.call(this, resultContinuation);
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
322
|
+
this.g52_1 = _this__u8e3s4;
|
|
323
|
+
this.h52_1 = request;
|
|
324
|
+
this.i52_1 = body;
|
|
324
325
|
}
|
|
325
|
-
protoOf($convertRequestCOROUTINE$0).
|
|
326
|
-
var suspendResult = this.
|
|
326
|
+
protoOf($convertRequestCOROUTINE$0).r9 = function () {
|
|
327
|
+
var suspendResult = this.l9_1;
|
|
327
328
|
$sm: do
|
|
328
329
|
try {
|
|
329
|
-
var tmp = this.
|
|
330
|
+
var tmp = this.j9_1;
|
|
330
331
|
switch (tmp) {
|
|
331
332
|
case 0:
|
|
332
|
-
this.
|
|
333
|
-
var tmp0_iterator = this.
|
|
334
|
-
while (tmp0_iterator.
|
|
335
|
-
var element = tmp0_iterator.
|
|
336
|
-
get_LOGGER().
|
|
337
|
-
accept(this.
|
|
333
|
+
this.k9_1 = 7;
|
|
334
|
+
var tmp0_iterator = this.g52_1.w50_1.k();
|
|
335
|
+
while (tmp0_iterator.l()) {
|
|
336
|
+
var element = tmp0_iterator.m();
|
|
337
|
+
get_LOGGER().j1w('Adding Accept=' + element.f50_1.a1y_1 + ' header for ' + this.h52_1.l41_1.toString());
|
|
338
|
+
accept(this.h52_1, element.f50_1);
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
var tmp_0;
|
|
341
|
-
var tmp_1 = this.
|
|
342
|
+
var tmp_1 = this.i52_1;
|
|
342
343
|
if (tmp_1 instanceof OutgoingContent) {
|
|
343
344
|
tmp_0 = true;
|
|
344
345
|
} else {
|
|
345
346
|
var tmp$ret$0;
|
|
346
347
|
l$ret$1: do {
|
|
347
|
-
var this_0 = this.
|
|
348
|
+
var this_0 = this.g52_1.x50_1;
|
|
348
349
|
var tmp_2;
|
|
349
350
|
if (isInterface(this_0, Collection)) {
|
|
350
|
-
tmp_2 = this_0.
|
|
351
|
+
tmp_2 = this_0.q();
|
|
351
352
|
} else {
|
|
352
353
|
tmp_2 = false;
|
|
353
354
|
}
|
|
@@ -355,10 +356,10 @@
|
|
|
355
356
|
tmp$ret$0 = false;
|
|
356
357
|
break l$ret$1;
|
|
357
358
|
}
|
|
358
|
-
var tmp0_iterator_0 = this_0.
|
|
359
|
-
while (tmp0_iterator_0.
|
|
360
|
-
var element_0 = tmp0_iterator_0.
|
|
361
|
-
if (element_0.
|
|
359
|
+
var tmp0_iterator_0 = this_0.k();
|
|
360
|
+
while (tmp0_iterator_0.l()) {
|
|
361
|
+
var element_0 = tmp0_iterator_0.m();
|
|
362
|
+
if (element_0.oa(this.i52_1)) {
|
|
362
363
|
tmp$ret$0 = true;
|
|
363
364
|
break l$ret$1;
|
|
364
365
|
}
|
|
@@ -370,42 +371,42 @@
|
|
|
370
371
|
}
|
|
371
372
|
|
|
372
373
|
if (tmp_0) {
|
|
373
|
-
get_LOGGER().
|
|
374
|
+
get_LOGGER().j1w('Body type ' + toString(getKClassFromExpression(this.i52_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.h52_1.l41_1.toString() + '.'));
|
|
374
375
|
return null;
|
|
375
376
|
}
|
|
376
377
|
|
|
377
378
|
var tmp_3 = this;
|
|
378
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
379
|
+
var tmp0_elvis_lhs = contentType_0(this.h52_1);
|
|
379
380
|
var tmp_4;
|
|
380
381
|
if (tmp0_elvis_lhs == null) {
|
|
381
|
-
this.
|
|
382
|
-
get_LOGGER().
|
|
382
|
+
this.g52_1;
|
|
383
|
+
get_LOGGER().j1w("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.h52_1.l41_1.toString() + '.');
|
|
383
384
|
return null;
|
|
384
385
|
} else {
|
|
385
386
|
tmp_4 = tmp0_elvis_lhs;
|
|
386
387
|
}
|
|
387
388
|
|
|
388
|
-
tmp_3.
|
|
389
|
-
var tmp_5 = this.
|
|
389
|
+
tmp_3.j52_1 = tmp_4;
|
|
390
|
+
var tmp_5 = this.i52_1;
|
|
390
391
|
if (tmp_5 instanceof Unit) {
|
|
391
|
-
get_LOGGER().
|
|
392
|
-
this.
|
|
392
|
+
get_LOGGER().j1w('Sending empty body for ' + this.h52_1.l41_1.toString());
|
|
393
|
+
this.h52_1.n41_1.c1t(HttpHeaders_getInstance().b1z_1);
|
|
393
394
|
return EmptyContent_getInstance();
|
|
394
395
|
}
|
|
395
396
|
|
|
396
397
|
var tmp_6 = this;
|
|
397
|
-
var this_1 = this.
|
|
398
|
+
var this_1 = this.g52_1.w50_1;
|
|
398
399
|
var destination = ArrayList_init_$Create$();
|
|
399
|
-
var tmp0_iterator_1 = this_1.
|
|
400
|
-
while (tmp0_iterator_1.
|
|
401
|
-
var element_1 = tmp0_iterator_1.
|
|
402
|
-
if (element_1.
|
|
403
|
-
destination.
|
|
400
|
+
var tmp0_iterator_1 = this_1.k();
|
|
401
|
+
while (tmp0_iterator_1.l()) {
|
|
402
|
+
var element_1 = tmp0_iterator_1.m();
|
|
403
|
+
if (element_1.g50_1.i50(this.j52_1)) {
|
|
404
|
+
destination.e(element_1);
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
407
|
|
|
407
408
|
var tmp_7;
|
|
408
|
-
if (!destination.
|
|
409
|
+
if (!destination.q()) {
|
|
409
410
|
tmp_7 = destination;
|
|
410
411
|
} else {
|
|
411
412
|
tmp_7 = null;
|
|
@@ -414,42 +415,42 @@
|
|
|
414
415
|
var tmp1_elvis_lhs = tmp_7;
|
|
415
416
|
var tmp_8;
|
|
416
417
|
if (tmp1_elvis_lhs == null) {
|
|
417
|
-
this.
|
|
418
|
-
get_LOGGER().
|
|
418
|
+
this.g52_1;
|
|
419
|
+
get_LOGGER().j1w('None of the registered converters match request Content-Type=' + this.j52_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.h52_1.l41_1.toString() + '.'));
|
|
419
420
|
return null;
|
|
420
421
|
} else {
|
|
421
422
|
tmp_8 = tmp1_elvis_lhs;
|
|
422
423
|
}
|
|
423
424
|
|
|
424
|
-
tmp_6.
|
|
425
|
-
if (this.
|
|
426
|
-
get_LOGGER().
|
|
425
|
+
tmp_6.k52_1 = tmp_8;
|
|
426
|
+
if (this.h52_1.p4q() == null) {
|
|
427
|
+
get_LOGGER().j1w('Request has unknown body type. Skipping ContentNegotiation for ' + this.h52_1.l41_1.toString() + '.');
|
|
427
428
|
return null;
|
|
428
429
|
}
|
|
429
430
|
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
431
|
+
this.h52_1.n41_1.c1t(HttpHeaders_getInstance().b1z_1);
|
|
432
|
+
this.j9_1 = 1;
|
|
432
433
|
continue $sm;
|
|
433
434
|
case 1:
|
|
434
435
|
var tmp_9 = this;
|
|
435
|
-
tmp_9.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
436
|
+
tmp_9.m52_1 = this.k52_1;
|
|
437
|
+
this.n52_1 = this.m52_1.k();
|
|
438
|
+
this.j9_1 = 2;
|
|
438
439
|
continue $sm;
|
|
439
440
|
case 2:
|
|
440
|
-
if (!this.
|
|
441
|
-
this.
|
|
441
|
+
if (!this.n52_1.l()) {
|
|
442
|
+
this.j9_1 = 5;
|
|
442
443
|
continue $sm;
|
|
443
444
|
}
|
|
444
445
|
|
|
445
|
-
this.
|
|
446
|
+
this.o52_1 = this.n52_1.m();
|
|
446
447
|
var tmp_10 = this;
|
|
447
|
-
tmp_10.
|
|
448
|
-
this.
|
|
449
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
450
|
-
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().
|
|
451
|
-
var tmp_12 = ensureNotNull(this.
|
|
452
|
-
var this_2 = this.
|
|
448
|
+
tmp_10.p52_1 = this.o52_1;
|
|
449
|
+
this.j9_1 = 3;
|
|
450
|
+
var tmp0_elvis_lhs_0 = charset(this.j52_1);
|
|
451
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().b1n_1 : tmp0_elvis_lhs_0;
|
|
452
|
+
var tmp_12 = ensureNotNull(this.h52_1.p4q());
|
|
453
|
+
var this_2 = this.i52_1;
|
|
453
454
|
var tmp_13;
|
|
454
455
|
if (!equals(this_2, NullBody_instance)) {
|
|
455
456
|
tmp_13 = this_2;
|
|
@@ -457,7 +458,7 @@
|
|
|
457
458
|
tmp_13 = null;
|
|
458
459
|
}
|
|
459
460
|
|
|
460
|
-
suspendResult = this.
|
|
461
|
+
suspendResult = this.p52_1.e50_1.b29(this.j52_1, tmp_11, tmp_12, tmp_13, this);
|
|
461
462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
462
463
|
return suspendResult;
|
|
463
464
|
}
|
|
@@ -466,37 +467,37 @@
|
|
|
466
467
|
case 3:
|
|
467
468
|
var result = suspendResult;
|
|
468
469
|
if (!(result == null)) {
|
|
469
|
-
get_LOGGER().
|
|
470
|
+
get_LOGGER().j1w('Converted request body using ' + toString(this.p52_1.e50_1) + ' for ' + this.h52_1.l41_1.toString());
|
|
470
471
|
}
|
|
471
472
|
|
|
472
473
|
var result_0 = result;
|
|
473
474
|
if (!(result_0 == null)) {
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
475
|
+
this.l52_1 = result_0;
|
|
476
|
+
this.j9_1 = 6;
|
|
476
477
|
continue $sm;
|
|
477
478
|
} else {
|
|
478
|
-
this.
|
|
479
|
+
this.j9_1 = 4;
|
|
479
480
|
continue $sm;
|
|
480
481
|
}
|
|
481
482
|
|
|
482
483
|
case 4:
|
|
483
|
-
this.
|
|
484
|
+
this.j9_1 = 2;
|
|
484
485
|
continue $sm;
|
|
485
486
|
case 5:
|
|
486
|
-
this.
|
|
487
|
+
this.l52_1 = null;
|
|
487
488
|
if (false) {
|
|
488
|
-
this.
|
|
489
|
+
this.j9_1 = 1;
|
|
489
490
|
continue $sm;
|
|
490
491
|
}
|
|
491
492
|
|
|
492
|
-
this.
|
|
493
|
+
this.j9_1 = 6;
|
|
493
494
|
continue $sm;
|
|
494
495
|
case 6:
|
|
495
|
-
var tmp2_elvis_lhs = this.
|
|
496
|
+
var tmp2_elvis_lhs = this.l52_1;
|
|
496
497
|
var tmp_14;
|
|
497
498
|
if (tmp2_elvis_lhs == null) {
|
|
498
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
499
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
499
|
+
var tmp_15 = "Can't convert " + toString(this.i52_1) + ' with contentType ' + this.j52_1.toString() + ' using converters ';
|
|
500
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.k52_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
500
501
|
} else {
|
|
501
502
|
tmp_14 = tmp2_elvis_lhs;
|
|
502
503
|
}
|
|
@@ -504,67 +505,67 @@
|
|
|
504
505
|
var serializedContent = tmp_14;
|
|
505
506
|
return serializedContent;
|
|
506
507
|
case 7:
|
|
507
|
-
throw this.
|
|
508
|
+
throw this.m9_1;
|
|
508
509
|
}
|
|
509
510
|
} catch ($p) {
|
|
510
511
|
var e = $p;
|
|
511
|
-
if (this.
|
|
512
|
+
if (this.k9_1 === 7) {
|
|
512
513
|
throw e;
|
|
513
514
|
} else {
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
515
|
+
this.j9_1 = this.k9_1;
|
|
516
|
+
this.m9_1 = e;
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
519
|
while (true);
|
|
519
520
|
};
|
|
520
521
|
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
521
522
|
CoroutineImpl.call(this, resultContinuation);
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
523
|
+
this.y52_1 = _this__u8e3s4;
|
|
524
|
+
this.z52_1 = requestUrl;
|
|
525
|
+
this.a53_1 = info;
|
|
526
|
+
this.b53_1 = body;
|
|
527
|
+
this.c53_1 = responseContentType;
|
|
528
|
+
this.d53_1 = charset;
|
|
528
529
|
}
|
|
529
|
-
protoOf($convertResponseCOROUTINE$1).
|
|
530
|
-
var suspendResult = this.
|
|
530
|
+
protoOf($convertResponseCOROUTINE$1).r9 = function () {
|
|
531
|
+
var suspendResult = this.l9_1;
|
|
531
532
|
$sm: do
|
|
532
533
|
try {
|
|
533
|
-
var tmp = this.
|
|
534
|
+
var tmp = this.j9_1;
|
|
534
535
|
switch (tmp) {
|
|
535
536
|
case 0:
|
|
536
|
-
this.
|
|
537
|
-
var tmp_0 = this.
|
|
537
|
+
this.k9_1 = 2;
|
|
538
|
+
var tmp_0 = this.b53_1;
|
|
538
539
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
539
|
-
get_LOGGER().
|
|
540
|
+
get_LOGGER().j1w('Response body is already transformed. Skipping ContentNegotiation for ' + this.z52_1.toString() + '.');
|
|
540
541
|
return null;
|
|
541
542
|
}
|
|
542
543
|
|
|
543
|
-
if (this.
|
|
544
|
-
get_LOGGER().
|
|
544
|
+
if (this.y52_1.x50_1.o1(this.a53_1.f1w_1)) {
|
|
545
|
+
get_LOGGER().j1w('Response body type ' + toString(this.a53_1.f1w_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.z52_1.toString() + '.'));
|
|
545
546
|
return null;
|
|
546
547
|
}
|
|
547
548
|
|
|
548
549
|
var tmp_1 = this;
|
|
549
|
-
var this_0 = this.
|
|
550
|
+
var this_0 = this.y52_1.w50_1;
|
|
550
551
|
var destination = ArrayList_init_$Create$();
|
|
551
|
-
var tmp0_iterator = this_0.
|
|
552
|
-
while (tmp0_iterator.
|
|
553
|
-
var element = tmp0_iterator.
|
|
554
|
-
if (element.
|
|
555
|
-
destination.
|
|
552
|
+
var tmp0_iterator = this_0.k();
|
|
553
|
+
while (tmp0_iterator.l()) {
|
|
554
|
+
var element = tmp0_iterator.m();
|
|
555
|
+
if (element.g50_1.i50(this.c53_1)) {
|
|
556
|
+
destination.e(element);
|
|
556
557
|
}
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
560
|
-
var tmp0_iterator_0 = destination.
|
|
561
|
-
while (tmp0_iterator_0.
|
|
562
|
-
var item = tmp0_iterator_0.
|
|
563
|
-
destination_0.
|
|
561
|
+
var tmp0_iterator_0 = destination.k();
|
|
562
|
+
while (tmp0_iterator_0.l()) {
|
|
563
|
+
var item = tmp0_iterator_0.m();
|
|
564
|
+
destination_0.e(item.e50_1);
|
|
564
565
|
}
|
|
565
566
|
|
|
566
567
|
var tmp_2;
|
|
567
|
-
if (!destination_0.
|
|
568
|
+
if (!destination_0.q()) {
|
|
568
569
|
tmp_2 = destination_0;
|
|
569
570
|
} else {
|
|
570
571
|
tmp_2 = null;
|
|
@@ -573,16 +574,16 @@
|
|
|
573
574
|
var tmp0_elvis_lhs = tmp_2;
|
|
574
575
|
var tmp_3;
|
|
575
576
|
if (tmp0_elvis_lhs == null) {
|
|
576
|
-
this.
|
|
577
|
-
get_LOGGER().
|
|
577
|
+
this.y52_1;
|
|
578
|
+
get_LOGGER().j1w('None of the registered converters match response with Content-Type=' + this.c53_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.z52_1.toString() + '.'));
|
|
578
579
|
return null;
|
|
579
580
|
} else {
|
|
580
581
|
tmp_3 = tmp0_elvis_lhs;
|
|
581
582
|
}
|
|
582
583
|
|
|
583
|
-
tmp_1.
|
|
584
|
-
this.
|
|
585
|
-
suspendResult = deserialize(this.
|
|
584
|
+
tmp_1.e53_1 = tmp_3;
|
|
585
|
+
this.j9_1 = 1;
|
|
586
|
+
suspendResult = deserialize(this.e53_1, this.b53_1, this.a53_1, this.d53_1, this);
|
|
586
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
587
588
|
return suspendResult;
|
|
588
589
|
}
|
|
@@ -591,40 +592,40 @@
|
|
|
591
592
|
case 1:
|
|
592
593
|
var result = suspendResult;
|
|
593
594
|
if (!isInterface(result, ByteReadChannel)) {
|
|
594
|
-
get_LOGGER().
|
|
595
|
+
get_LOGGER().j1w('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.z52_1.toString() + '.');
|
|
595
596
|
}
|
|
596
597
|
|
|
597
598
|
return result;
|
|
598
599
|
case 2:
|
|
599
|
-
throw this.
|
|
600
|
+
throw this.m9_1;
|
|
600
601
|
}
|
|
601
602
|
} catch ($p) {
|
|
602
603
|
var e = $p;
|
|
603
|
-
if (this.
|
|
604
|
+
if (this.k9_1 === 2) {
|
|
604
605
|
throw e;
|
|
605
606
|
} else {
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
607
|
+
this.j9_1 = this.k9_1;
|
|
608
|
+
this.m9_1 = e;
|
|
608
609
|
}
|
|
609
610
|
}
|
|
610
611
|
while (true);
|
|
611
612
|
};
|
|
612
613
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
613
614
|
Plugin_getInstance();
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
615
|
+
this.w50_1 = registrations;
|
|
616
|
+
this.x50_1 = ignoredTypes;
|
|
616
617
|
}
|
|
617
|
-
protoOf(ContentNegotiation).
|
|
618
|
+
protoOf(ContentNegotiation).y50 = function (request, body, $completion) {
|
|
618
619
|
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
619
|
-
tmp.
|
|
620
|
-
tmp.
|
|
621
|
-
return tmp.
|
|
620
|
+
tmp.l9_1 = Unit_instance;
|
|
621
|
+
tmp.m9_1 = null;
|
|
622
|
+
return tmp.r9();
|
|
622
623
|
};
|
|
623
|
-
protoOf(ContentNegotiation).
|
|
624
|
+
protoOf(ContentNegotiation).r51 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
624
625
|
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
625
|
-
tmp.
|
|
626
|
-
tmp.
|
|
627
|
-
return tmp.
|
|
626
|
+
tmp.l9_1 = Unit_instance;
|
|
627
|
+
tmp.m9_1 = null;
|
|
628
|
+
return tmp.r9();
|
|
628
629
|
};
|
|
629
630
|
function ContentConverterException(message) {
|
|
630
631
|
Exception_init_$Init$(message, this);
|
|
@@ -635,17 +636,17 @@
|
|
|
635
636
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
636
637
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
637
638
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
638
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
639
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().sb(), PrimitiveClasses_getInstance().ob(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
639
640
|
}
|
|
640
641
|
}
|
|
641
642
|
function JsonContentTypeMatcher() {
|
|
642
643
|
}
|
|
643
|
-
protoOf(JsonContentTypeMatcher).
|
|
644
|
-
if (contentType.
|
|
644
|
+
protoOf(JsonContentTypeMatcher).i50 = function (contentType) {
|
|
645
|
+
if (contentType.e1y(Application_getInstance().x1w_1)) {
|
|
645
646
|
return true;
|
|
646
647
|
}
|
|
647
|
-
var value = contentType.
|
|
648
|
-
return startsWith(value, 'application/')
|
|
648
|
+
var value = contentType.d1y().toString();
|
|
649
|
+
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
649
650
|
};
|
|
650
651
|
var JsonContentTypeMatcher_instance;
|
|
651
652
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -665,7 +666,7 @@
|
|
|
665
666
|
}
|
|
666
667
|
}
|
|
667
668
|
//region block: post-declaration
|
|
668
|
-
protoOf(Config).
|
|
669
|
+
protoOf(Config).z28 = register$default;
|
|
669
670
|
//endregion
|
|
670
671
|
//region block: init
|
|
671
672
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|