mrs-toolbox-cli 0.0.1
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 +268 -0
- package/88b0986a7186d029-atomicfu-js-ir.js.hash +1 -0
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -0
- package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +8 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.hash +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map.hash +1 -0
- package/clikt-clikt-js-ir.js +7044 -0
- package/clikt-clikt-js-ir.js.hash +1 -0
- package/clikt-clikt-js-ir.js.map +1 -0
- package/clikt-clikt-js-ir.js.map.hash +1 -0
- package/com.mrs.platform.configuration.dto.js +17100 -0
- package/com.mrs.platform.configuration.dto.js.hash +1 -0
- package/com.mrs.platform.configuration.dto.js.map +1 -0
- package/com.mrs.platform.configuration.dto.js.map.hash +1 -0
- package/kotlin-js.js +8 -0
- package/kotlin-js.js.hash +1 -0
- package/kotlin-js.js.map +1 -0
- package/kotlin-js.js.map.hash +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js +15789 -0
- package/kotlin-kotlin-stdlib-js-ir.js.hash +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +8 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.hash +1 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map.hash +1 -0
- package/kotlin-logging-js-ir.js +274 -0
- package/kotlin-logging-js-ir.js.hash +1 -0
- package/kotlin-logging-js-ir.js.map +1 -0
- package/kotlin-logging-js-ir.js.map.hash +1 -0
- package/kotlin-node.js +20 -0
- package/kotlin-node.js.hash +1 -0
- package/kotlin-node.js.map +1 -0
- package/kotlin-node.js.map.hash +1 -0
- package/kotlin-web.js +8 -0
- package/kotlin-web.js.hash +1 -0
- package/kotlin-web.js.map +1 -0
- package/kotlin-web.js.map.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +6431 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +5102 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +8964 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +1 -0
- package/ktor-ktor-client-content-negotiation.js +690 -0
- package/ktor-ktor-client-content-negotiation.js.hash +1 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js.map.hash +1 -0
- package/ktor-ktor-client-core.js +7572 -0
- package/ktor-ktor-client-core.js.hash +1 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-core.js.map.hash +1 -0
- package/ktor-ktor-events.js +88 -0
- package/ktor-ktor-events.js.hash +1 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-events.js.map.hash +1 -0
- package/ktor-ktor-http.js +3651 -0
- package/ktor-ktor-http.js.hash +1 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-http.js.map.hash +1 -0
- package/ktor-ktor-io.js +7053 -0
- package/ktor-ktor-io.js.hash +1 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-io.js.map.hash +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +48 -0
- package/ktor-ktor-serialization-kotlinx-json.js.hash +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map.hash +1 -0
- package/ktor-ktor-serialization-kotlinx.js +845 -0
- package/ktor-ktor-serialization-kotlinx.js.hash +1 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js.map.hash +1 -0
- package/ktor-ktor-serialization.js +345 -0
- package/ktor-ktor-serialization.js.hash +1 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-serialization.js.map.hash +1 -0
- package/ktor-ktor-utils.js +2159 -0
- package/ktor-ktor-utils.js.hash +1 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-utils.js.map.hash +1 -0
- package/ktor-ktor-websocket-serialization.js +8 -0
- package/ktor-ktor-websocket-serialization.js.hash +1 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js.map.hash +1 -0
- package/ktor-ktor-websockets.js +466 -0
- package/ktor-ktor-websockets.js.hash +1 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/ktor-ktor-websockets.js.map.hash +1 -0
- package/mrs-toolbox-cli.d.ts +2587 -0
- package/mrs-toolbox-cli.d.ts.hash +1 -0
- package/mrs-toolbox-cli.js +389 -0
- package/mrs-toolbox-cli.js.hash +1 -0
- package/mrs-toolbox-cli.js.map +1 -0
- package/mrs-toolbox-cli.js.map.hash +1 -0
- package/package.json +25 -0
- package/static/access.query.txt +0 -0
- package/static/access.query.txt.hash +1 -0
- package/static/demo.test.ts.txt +26 -0
- package/static/demo.test.ts.txt.hash +1 -0
- package/static/git.ignore +5 -0
- package/static/git.ignore.hash +1 -0
- package/static/graph.query.txt +0 -0
- package/static/graph.query.txt.hash +1 -0
- package/static/hook.ts.txt +7 -0
- package/static/hook.ts.txt.hash +1 -0
- package/static/mrscconfig.json +15 -0
- package/static/mrscconfig.json.hash +1 -0
- package/static/readme.md +50 -0
- package/static/readme.md.hash +1 -0
- package/static/tsconfig.json.txt +8 -0
- package/static/tsconfig.json.txt.hash +1 -0
- package/toolbox.js +15864 -0
- package/toolbox.js.hash +1 -0
- package/toolbox.js.map +1 -0
- package/toolbox.js.map.hash +1 -0
|
@@ -0,0 +1,690 @@
|
|
|
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
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.ua;
|
|
5
|
+
var classMeta = kotlin_kotlin.$_$.o9;
|
|
6
|
+
var VOID = kotlin_kotlin.$_$.tf;
|
|
7
|
+
var setMetadataFor = kotlin_kotlin.$_$.va;
|
|
8
|
+
var CoroutineImpl = kotlin_kotlin.$_$.c9;
|
|
9
|
+
var Unit_getInstance = kotlin_kotlin.$_$.v4;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.pe;
|
|
11
|
+
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
12
|
+
var isObject = kotlin_kotlin.$_$.ia;
|
|
13
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o8;
|
|
14
|
+
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
15
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
16
|
+
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
17
|
+
var plus = kotlin_kotlin.$_$.j7;
|
|
18
|
+
var toMutableSet = kotlin_kotlin.$_$.f8;
|
|
19
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
20
|
+
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
21
|
+
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
22
|
+
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
23
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
24
|
+
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
25
|
+
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
26
|
+
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
27
|
+
var objectMeta = kotlin_kotlin.$_$.ta;
|
|
28
|
+
var toString = kotlin_kotlin.$_$.za;
|
|
29
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
30
|
+
var Collection = kotlin_kotlin.$_$.x4;
|
|
31
|
+
var isInterface = kotlin_kotlin.$_$.ga;
|
|
32
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
|
|
33
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
34
|
+
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.z;
|
|
35
|
+
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
36
|
+
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
37
|
+
var Unit = kotlin_kotlin.$_$.af;
|
|
38
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.x;
|
|
39
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.f;
|
|
40
|
+
var ensureNotNull = kotlin_kotlin.$_$.gf;
|
|
41
|
+
var NullBody_getInstance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
42
|
+
var equals = kotlin_kotlin.$_$.r9;
|
|
43
|
+
var joinToString = kotlin_kotlin.$_$.s6;
|
|
44
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
45
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.p5;
|
|
46
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
47
|
+
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
48
|
+
var Exception = kotlin_kotlin.$_$.ge;
|
|
49
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
50
|
+
var captureStack = kotlin_kotlin.$_$.i9;
|
|
51
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
52
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.m4;
|
|
53
|
+
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.r;
|
|
54
|
+
var getKClass = kotlin_kotlin.$_$.e;
|
|
55
|
+
var setOf = kotlin_kotlin.$_$.r7;
|
|
56
|
+
var endsWith = kotlin_kotlin.$_$.ac;
|
|
57
|
+
var startsWith = kotlin_kotlin.$_$.ad;
|
|
58
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
59
|
+
//endregion
|
|
60
|
+
//region block: pre-declaration
|
|
61
|
+
setMetadataFor(ConverterRegistration, 'ConverterRegistration', classMeta);
|
|
62
|
+
setMetadataFor(ContentNegotiation$Config$defaultMatcher$1, VOID, classMeta);
|
|
63
|
+
setMetadataFor(ContentNegotiation$Plugin$install$slambda, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [2]);
|
|
64
|
+
setMetadataFor(ContentNegotiation$Plugin$install$slambda_1, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [2]);
|
|
65
|
+
setMetadataFor(Config, 'Config', classMeta, VOID, [Configuration]);
|
|
66
|
+
setMetadataFor(Plugin, 'Plugin', objectMeta, VOID, [HttpClientPlugin]);
|
|
67
|
+
setMetadataFor($convertRequestCOROUTINE$0, '$convertRequestCOROUTINE$0', classMeta, CoroutineImpl);
|
|
68
|
+
setMetadataFor($convertResponseCOROUTINE$1, '$convertResponseCOROUTINE$1', classMeta, CoroutineImpl);
|
|
69
|
+
setMetadataFor(ContentNegotiation, 'ContentNegotiation', classMeta, VOID, VOID, VOID, VOID, [2, 5]);
|
|
70
|
+
setMetadataFor(ContentConverterException, 'ContentConverterException', classMeta, Exception);
|
|
71
|
+
setMetadataFor(JsonContentTypeMatcher, 'JsonContentTypeMatcher', objectMeta);
|
|
72
|
+
//endregion
|
|
73
|
+
function get_LOGGER() {
|
|
74
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
75
|
+
return LOGGER;
|
|
76
|
+
}
|
|
77
|
+
var LOGGER;
|
|
78
|
+
function get_DefaultCommonIgnoredTypes() {
|
|
79
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
80
|
+
return DefaultCommonIgnoredTypes;
|
|
81
|
+
}
|
|
82
|
+
var DefaultCommonIgnoredTypes;
|
|
83
|
+
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
84
|
+
this.t35_1 = converter;
|
|
85
|
+
this.u35_1 = contentTypeToSend;
|
|
86
|
+
this.v35_1 = contentTypeMatcher;
|
|
87
|
+
}
|
|
88
|
+
function defaultMatcher($this, pattern) {
|
|
89
|
+
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
90
|
+
}
|
|
91
|
+
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
92
|
+
this.w35_1 = $pattern;
|
|
93
|
+
}
|
|
94
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).x35 = function (contentType) {
|
|
95
|
+
return contentType.u1r(this.w35_1);
|
|
96
|
+
};
|
|
97
|
+
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
98
|
+
this.g36_1 = $plugin;
|
|
99
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
100
|
+
}
|
|
101
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).d26 = function ($this$intercept, it, $completion) {
|
|
102
|
+
var tmp = this.e26($this$intercept, it, $completion);
|
|
103
|
+
tmp.lk_1 = Unit_getInstance();
|
|
104
|
+
tmp.mk_1 = null;
|
|
105
|
+
return tmp.sk();
|
|
106
|
+
};
|
|
107
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).ca = function (p1, p2, $completion) {
|
|
108
|
+
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
109
|
+
return this.d26(tmp, isObject(p2) ? p2 : THROW_CCE(), $completion);
|
|
110
|
+
};
|
|
111
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).sk = function () {
|
|
112
|
+
var suspendResult = this.lk_1;
|
|
113
|
+
$sm: do
|
|
114
|
+
try {
|
|
115
|
+
var tmp = this.jk_1;
|
|
116
|
+
switch (tmp) {
|
|
117
|
+
case 0:
|
|
118
|
+
this.kk_1 = 3;
|
|
119
|
+
this.jk_1 = 1;
|
|
120
|
+
suspendResult = this.g36_1.n36(this.h36_1.e1p_1, this.h36_1.h1o(), this);
|
|
121
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
122
|
+
return suspendResult;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
continue $sm;
|
|
126
|
+
case 1:
|
|
127
|
+
this.j36_1 = suspendResult;
|
|
128
|
+
var tmp_0 = this;
|
|
129
|
+
var tmp_1;
|
|
130
|
+
if (this.j36_1 == null) {
|
|
131
|
+
return Unit_getInstance();
|
|
132
|
+
} else {
|
|
133
|
+
tmp_1 = this.j36_1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
tmp_0.k36_1 = tmp_1;
|
|
137
|
+
this.jk_1 = 2;
|
|
138
|
+
suspendResult = this.h36_1.i1o(this.k36_1, this);
|
|
139
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
140
|
+
return suspendResult;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
continue $sm;
|
|
144
|
+
case 2:
|
|
145
|
+
;
|
|
146
|
+
return Unit_getInstance();
|
|
147
|
+
case 3:
|
|
148
|
+
throw this.mk_1;
|
|
149
|
+
}
|
|
150
|
+
} catch ($p) {
|
|
151
|
+
var e = $p;
|
|
152
|
+
if (this.kk_1 === 3) {
|
|
153
|
+
throw e;
|
|
154
|
+
} else {
|
|
155
|
+
this.jk_1 = this.kk_1;
|
|
156
|
+
this.mk_1 = e;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
while (true);
|
|
160
|
+
};
|
|
161
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).e26 = function ($this$intercept, it, completion) {
|
|
162
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.g36_1, completion);
|
|
163
|
+
i.h36_1 = $this$intercept;
|
|
164
|
+
i.i36_1 = it;
|
|
165
|
+
return i;
|
|
166
|
+
};
|
|
167
|
+
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
168
|
+
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
169
|
+
var l = function ($this$intercept, it, $completion) {
|
|
170
|
+
return i.d26($this$intercept, it, $completion);
|
|
171
|
+
};
|
|
172
|
+
l.$arity = 2;
|
|
173
|
+
return l;
|
|
174
|
+
}
|
|
175
|
+
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
176
|
+
this.w36_1 = $plugin;
|
|
177
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
178
|
+
}
|
|
179
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).x26 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
180
|
+
var tmp = this.y26($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
181
|
+
tmp.lk_1 = Unit_getInstance();
|
|
182
|
+
tmp.mk_1 = null;
|
|
183
|
+
return tmp.sk();
|
|
184
|
+
};
|
|
185
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).ca = function (p1, p2, $completion) {
|
|
186
|
+
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
187
|
+
return this.x26(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
188
|
+
};
|
|
189
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).sk = function () {
|
|
190
|
+
var suspendResult = this.lk_1;
|
|
191
|
+
$sm: do
|
|
192
|
+
try {
|
|
193
|
+
var tmp = this.jk_1;
|
|
194
|
+
switch (tmp) {
|
|
195
|
+
case 0:
|
|
196
|
+
this.kk_1 = 3;
|
|
197
|
+
this.z36_1 = this.y36_1.q4();
|
|
198
|
+
this.a37_1 = this.y36_1.r4();
|
|
199
|
+
var tmp_0 = this;
|
|
200
|
+
var tmp0_elvis_lhs = contentType(this.x36_1.e1p_1.k26());
|
|
201
|
+
var tmp_1;
|
|
202
|
+
if (tmp0_elvis_lhs == null) {
|
|
203
|
+
get_LOGGER().z1p('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
204
|
+
return Unit_getInstance();
|
|
205
|
+
} else {
|
|
206
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
tmp_0.b37_1 = tmp_1;
|
|
210
|
+
this.c37_1 = suitableCharset(this.x36_1.e1p_1.t29().c1w());
|
|
211
|
+
this.jk_1 = 1;
|
|
212
|
+
suspendResult = this.w36_1.g37(this.x36_1.e1p_1.t29().w29(), this.z36_1, this.a37_1, this.b37_1, this.c37_1, this);
|
|
213
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
|
+
return suspendResult;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
continue $sm;
|
|
218
|
+
case 1:
|
|
219
|
+
this.d37_1 = suspendResult;
|
|
220
|
+
var tmp_2 = this;
|
|
221
|
+
var tmp_3;
|
|
222
|
+
if (this.d37_1 == null) {
|
|
223
|
+
return Unit_getInstance();
|
|
224
|
+
} else {
|
|
225
|
+
tmp_3 = this.d37_1;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
tmp_2.e37_1 = tmp_3;
|
|
229
|
+
this.f37_1 = new HttpResponseContainer(this.z36_1, this.e37_1);
|
|
230
|
+
this.jk_1 = 2;
|
|
231
|
+
suspendResult = this.x36_1.i1o(this.f37_1, this);
|
|
232
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
233
|
+
return suspendResult;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
continue $sm;
|
|
237
|
+
case 2:
|
|
238
|
+
;
|
|
239
|
+
return Unit_getInstance();
|
|
240
|
+
case 3:
|
|
241
|
+
throw this.mk_1;
|
|
242
|
+
}
|
|
243
|
+
} catch ($p) {
|
|
244
|
+
var e = $p;
|
|
245
|
+
if (this.kk_1 === 3) {
|
|
246
|
+
throw e;
|
|
247
|
+
} else {
|
|
248
|
+
this.jk_1 = this.kk_1;
|
|
249
|
+
this.mk_1 = e;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
while (true);
|
|
253
|
+
};
|
|
254
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).y26 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
255
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.w36_1, completion);
|
|
256
|
+
i.x36_1 = $this$intercept;
|
|
257
|
+
i.y36_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
258
|
+
return i;
|
|
259
|
+
};
|
|
260
|
+
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
261
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
262
|
+
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
263
|
+
return i.x26($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
264
|
+
};
|
|
265
|
+
l.$arity = 2;
|
|
266
|
+
return l;
|
|
267
|
+
}
|
|
268
|
+
function Config() {
|
|
269
|
+
this.h37_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
270
|
+
var tmp = this;
|
|
271
|
+
var tmp$ret$0;
|
|
272
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
273
|
+
tmp$ret$0 = ArrayList_init_$Create$();
|
|
274
|
+
tmp.i37_1 = tmp$ret$0;
|
|
275
|
+
}
|
|
276
|
+
protoOf(Config).u22 = function (contentType, converter, configuration) {
|
|
277
|
+
var tmp0_subject = contentType;
|
|
278
|
+
var matcher = tmp0_subject.equals(Application_getInstance().n1q_1) ? JsonContentTypeMatcher_getInstance() : defaultMatcher(this, contentType);
|
|
279
|
+
this.j37(contentType, converter, matcher, configuration);
|
|
280
|
+
};
|
|
281
|
+
protoOf(Config).j37 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
282
|
+
var tmp$ret$0;
|
|
283
|
+
// Inline function 'kotlin.apply' call
|
|
284
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
285
|
+
configuration(converter);
|
|
286
|
+
tmp$ret$0 = converter;
|
|
287
|
+
var registration = new ConverterRegistration(tmp$ret$0, contentTypeToSend, contentTypeMatcher);
|
|
288
|
+
this.i37_1.a(registration);
|
|
289
|
+
};
|
|
290
|
+
function Plugin() {
|
|
291
|
+
Plugin_instance = this;
|
|
292
|
+
this.k37_1 = new AttributeKey('ContentNegotiation');
|
|
293
|
+
}
|
|
294
|
+
protoOf(Plugin).x = function () {
|
|
295
|
+
return this.k37_1;
|
|
296
|
+
};
|
|
297
|
+
protoOf(Plugin).l37 = function (block) {
|
|
298
|
+
var tmp$ret$0;
|
|
299
|
+
// Inline function 'kotlin.apply' call
|
|
300
|
+
var tmp0_apply = new Config();
|
|
301
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
302
|
+
block(tmp0_apply);
|
|
303
|
+
tmp$ret$0 = tmp0_apply;
|
|
304
|
+
var config = tmp$ret$0;
|
|
305
|
+
return new ContentNegotiation(config.i37_1, config.h37_1);
|
|
306
|
+
};
|
|
307
|
+
protoOf(Plugin).o28 = function (block) {
|
|
308
|
+
return this.l37(block);
|
|
309
|
+
};
|
|
310
|
+
protoOf(Plugin).m37 = function (plugin, scope) {
|
|
311
|
+
var tmp = Phases_getInstance().i2e_1;
|
|
312
|
+
scope.j25_1.i1p(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
313
|
+
var tmp_0 = Phases_getInstance_0().j28_1;
|
|
314
|
+
scope.k25_1.i1p(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
315
|
+
};
|
|
316
|
+
protoOf(Plugin).p28 = function (plugin, scope) {
|
|
317
|
+
return this.m37(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
318
|
+
};
|
|
319
|
+
var Plugin_instance;
|
|
320
|
+
function Plugin_getInstance() {
|
|
321
|
+
if (Plugin_instance == null)
|
|
322
|
+
new Plugin();
|
|
323
|
+
return Plugin_instance;
|
|
324
|
+
}
|
|
325
|
+
function ContentNegotiation$convertRequest$lambda(it) {
|
|
326
|
+
return toString(it.t35_1);
|
|
327
|
+
}
|
|
328
|
+
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
329
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
330
|
+
this.v37_1 = _this__u8e3s4;
|
|
331
|
+
this.w37_1 = request;
|
|
332
|
+
this.x37_1 = body;
|
|
333
|
+
}
|
|
334
|
+
protoOf($convertRequestCOROUTINE$0).sk = function () {
|
|
335
|
+
var suspendResult = this.lk_1;
|
|
336
|
+
$sm: do
|
|
337
|
+
try {
|
|
338
|
+
var tmp = this.jk_1;
|
|
339
|
+
switch (tmp) {
|
|
340
|
+
case 0:
|
|
341
|
+
this.kk_1 = 7;
|
|
342
|
+
var tmp0_forEach = this.v37_1.l36_1;
|
|
343
|
+
var tmp0_iterator = tmp0_forEach.f();
|
|
344
|
+
while (tmp0_iterator.g()) {
|
|
345
|
+
var element = tmp0_iterator.h();
|
|
346
|
+
get_LOGGER().z1p('Adding Accept=' + element.u35_1.q1r_1 + ' header for ' + this.w37_1.j27_1);
|
|
347
|
+
accept(this.w37_1, element.u35_1);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
var tmp_0;
|
|
351
|
+
var tmp_1 = this.x37_1;
|
|
352
|
+
if (tmp_1 instanceof OutgoingContent) {
|
|
353
|
+
tmp_0 = true;
|
|
354
|
+
} else {
|
|
355
|
+
var tmp$ret$0;
|
|
356
|
+
l$ret$1: do {
|
|
357
|
+
var tmp1_any = this.v37_1.m36_1;
|
|
358
|
+
var tmp_2;
|
|
359
|
+
if (isInterface(tmp1_any, Collection)) {
|
|
360
|
+
tmp_2 = tmp1_any.l();
|
|
361
|
+
} else {
|
|
362
|
+
tmp_2 = false;
|
|
363
|
+
}
|
|
364
|
+
if (tmp_2) {
|
|
365
|
+
tmp$ret$0 = false;
|
|
366
|
+
break l$ret$1;
|
|
367
|
+
}
|
|
368
|
+
var tmp0_iterator_0 = tmp1_any.f();
|
|
369
|
+
while (tmp0_iterator_0.g()) {
|
|
370
|
+
var element_0 = tmp0_iterator_0.h();
|
|
371
|
+
if (element_0.xf(this.x37_1)) {
|
|
372
|
+
tmp$ret$0 = true;
|
|
373
|
+
break l$ret$1;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
tmp$ret$0 = false;
|
|
377
|
+
}
|
|
378
|
+
while (false);
|
|
379
|
+
tmp_0 = tmp$ret$0;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if (tmp_0) {
|
|
383
|
+
get_LOGGER().z1p('Body type ' + getKClassFromExpression(this.x37_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.w37_1.j27_1 + '.'));
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
var tmp_3 = this;
|
|
388
|
+
var tmp0_elvis_lhs = contentType_0(this.w37_1);
|
|
389
|
+
var tmp_4;
|
|
390
|
+
if (tmp0_elvis_lhs == null) {
|
|
391
|
+
get_LOGGER().z1p("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.w37_1.j27_1 + '.');
|
|
392
|
+
return null;
|
|
393
|
+
} else {
|
|
394
|
+
tmp_4 = tmp0_elvis_lhs;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
tmp_3.y37_1 = tmp_4;
|
|
398
|
+
var tmp_5 = this.x37_1;
|
|
399
|
+
if (tmp_5 instanceof Unit) {
|
|
400
|
+
get_LOGGER().z1p('Sending empty body for ' + this.w37_1.j27_1);
|
|
401
|
+
this.w37_1.l27_1.t1m(HttpHeaders_getInstance().r1s_1);
|
|
402
|
+
return EmptyContent_getInstance();
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
var tmp_6 = this;
|
|
406
|
+
var tmp3_filter = this.v37_1.l36_1;
|
|
407
|
+
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
408
|
+
var tmp0_iterator_1 = tmp3_filter.f();
|
|
409
|
+
while (tmp0_iterator_1.g()) {
|
|
410
|
+
var element_1 = tmp0_iterator_1.h();
|
|
411
|
+
if (element_1.v35_1.x35(this.y37_1)) {
|
|
412
|
+
tmp2_filterTo.a(element_1);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
var tmp4_takeIf = tmp2_filterTo;
|
|
417
|
+
var tmp_7;
|
|
418
|
+
if (!tmp4_takeIf.l()) {
|
|
419
|
+
tmp_7 = tmp4_takeIf;
|
|
420
|
+
} else {
|
|
421
|
+
tmp_7 = null;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
var tmp1_elvis_lhs = tmp_7;
|
|
425
|
+
var tmp_8;
|
|
426
|
+
if (tmp1_elvis_lhs == null) {
|
|
427
|
+
get_LOGGER().z1p('None of the registered converters match request Content-Type=' + this.y37_1 + '. ' + ('Skipping ContentNegotiation for ' + this.w37_1.j27_1 + '.'));
|
|
428
|
+
return null;
|
|
429
|
+
} else {
|
|
430
|
+
tmp_8 = tmp1_elvis_lhs;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
tmp_6.z37_1 = tmp_8;
|
|
434
|
+
if (this.w37_1.k2w() == null) {
|
|
435
|
+
get_LOGGER().z1p('Request has unknown body type. Skipping ContentNegotiation for ' + this.w37_1.j27_1 + '.');
|
|
436
|
+
return null;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
this.w37_1.l27_1.t1m(HttpHeaders_getInstance().r1s_1);
|
|
440
|
+
this.jk_1 = 1;
|
|
441
|
+
continue $sm;
|
|
442
|
+
case 1:
|
|
443
|
+
this.b38_1 = this.z37_1.f();
|
|
444
|
+
this.jk_1 = 2;
|
|
445
|
+
continue $sm;
|
|
446
|
+
case 2:
|
|
447
|
+
if (!this.b38_1.g()) {
|
|
448
|
+
this.jk_1 = 5;
|
|
449
|
+
continue $sm;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
this.c38_1 = this.b38_1.h();
|
|
453
|
+
this.jk_1 = 3;
|
|
454
|
+
var tmp0_elvis_lhs_0 = charset(this.y37_1);
|
|
455
|
+
var tmp_9 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().r1g_1 : tmp0_elvis_lhs_0;
|
|
456
|
+
var tmp_10 = ensureNotNull(this.w37_1.k2w());
|
|
457
|
+
var tmp_11;
|
|
458
|
+
if (!equals(this.x37_1, NullBody_getInstance())) {
|
|
459
|
+
tmp_11 = this.x37_1;
|
|
460
|
+
} else {
|
|
461
|
+
tmp_11 = null;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
suspendResult = this.c38_1.t35_1.x22(this.y37_1, tmp_9, tmp_10, tmp_11, this);
|
|
465
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
466
|
+
return suspendResult;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
continue $sm;
|
|
470
|
+
case 3:
|
|
471
|
+
var result = suspendResult;
|
|
472
|
+
if (!(result == null)) {
|
|
473
|
+
get_LOGGER().z1p('Converted request body using ' + this.c38_1.t35_1 + ' for ' + this.w37_1.j27_1);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
var result_0 = result;
|
|
477
|
+
if (!(result_0 == null)) {
|
|
478
|
+
this.a38_1 = result_0;
|
|
479
|
+
this.jk_1 = 6;
|
|
480
|
+
continue $sm;
|
|
481
|
+
} else {
|
|
482
|
+
this.jk_1 = 4;
|
|
483
|
+
continue $sm;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
break;
|
|
487
|
+
case 4:
|
|
488
|
+
this.jk_1 = 2;
|
|
489
|
+
continue $sm;
|
|
490
|
+
case 5:
|
|
491
|
+
this.a38_1 = null;
|
|
492
|
+
if (false) {
|
|
493
|
+
this.jk_1 = 1;
|
|
494
|
+
continue $sm;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
this.jk_1 = 6;
|
|
498
|
+
continue $sm;
|
|
499
|
+
case 6:
|
|
500
|
+
var tmp2_elvis_lhs = this.a38_1;
|
|
501
|
+
var tmp_12;
|
|
502
|
+
if (tmp2_elvis_lhs == null) {
|
|
503
|
+
var tmp_13 = "Can't convert " + toString(this.x37_1) + ' with contentType ' + this.y37_1 + ' using converters ';
|
|
504
|
+
throw new ContentConverterException(tmp_13 + joinToString(this.z37_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
505
|
+
} else {
|
|
506
|
+
tmp_12 = tmp2_elvis_lhs;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
var serializedContent = tmp_12;
|
|
510
|
+
return serializedContent;
|
|
511
|
+
case 7:
|
|
512
|
+
throw this.mk_1;
|
|
513
|
+
}
|
|
514
|
+
} catch ($p) {
|
|
515
|
+
var e = $p;
|
|
516
|
+
if (this.kk_1 === 7) {
|
|
517
|
+
throw e;
|
|
518
|
+
} else {
|
|
519
|
+
this.jk_1 = this.kk_1;
|
|
520
|
+
this.mk_1 = e;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
while (true);
|
|
524
|
+
};
|
|
525
|
+
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
526
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
527
|
+
this.l38_1 = _this__u8e3s4;
|
|
528
|
+
this.m38_1 = requestUrl;
|
|
529
|
+
this.n38_1 = info;
|
|
530
|
+
this.o38_1 = body;
|
|
531
|
+
this.p38_1 = responseContentType;
|
|
532
|
+
this.q38_1 = charset;
|
|
533
|
+
}
|
|
534
|
+
protoOf($convertResponseCOROUTINE$1).sk = function () {
|
|
535
|
+
var suspendResult = this.lk_1;
|
|
536
|
+
$sm: do
|
|
537
|
+
try {
|
|
538
|
+
var tmp = this.jk_1;
|
|
539
|
+
switch (tmp) {
|
|
540
|
+
case 0:
|
|
541
|
+
this.kk_1 = 2;
|
|
542
|
+
var tmp_0 = this.o38_1;
|
|
543
|
+
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
544
|
+
get_LOGGER().z1p('Response body is already transformed. Skipping ContentNegotiation for ' + this.m38_1 + '.');
|
|
545
|
+
return null;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (this.l38_1.m36_1.m(this.n38_1.v1p_1)) {
|
|
549
|
+
get_LOGGER().z1p('Response body type ' + this.n38_1.v1p_1 + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.m38_1 + '.'));
|
|
550
|
+
return null;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
var tmp_1 = this;
|
|
554
|
+
var tmp1_filter = this.l38_1.l36_1;
|
|
555
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
556
|
+
var tmp0_iterator = tmp1_filter.f();
|
|
557
|
+
while (tmp0_iterator.g()) {
|
|
558
|
+
var element = tmp0_iterator.h();
|
|
559
|
+
if (element.v35_1.x35(this.p38_1)) {
|
|
560
|
+
tmp0_filterTo.a(element);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
var tmp3_map = tmp0_filterTo;
|
|
565
|
+
var tmp2_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
566
|
+
var tmp0_iterator_0 = tmp3_map.f();
|
|
567
|
+
while (tmp0_iterator_0.g()) {
|
|
568
|
+
var item = tmp0_iterator_0.h();
|
|
569
|
+
tmp2_mapTo.a(item.t35_1);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
var tmp4_takeIf = tmp2_mapTo;
|
|
573
|
+
var tmp_2;
|
|
574
|
+
if (!tmp4_takeIf.l()) {
|
|
575
|
+
tmp_2 = tmp4_takeIf;
|
|
576
|
+
} else {
|
|
577
|
+
tmp_2 = null;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
var tmp0_elvis_lhs = tmp_2;
|
|
581
|
+
var tmp_3;
|
|
582
|
+
if (tmp0_elvis_lhs == null) {
|
|
583
|
+
get_LOGGER().z1p('None of the registered converters match response with Content-Type=' + this.p38_1 + '. ' + ('Skipping ContentNegotiation for ' + this.m38_1 + '.'));
|
|
584
|
+
return null;
|
|
585
|
+
} else {
|
|
586
|
+
tmp_3 = tmp0_elvis_lhs;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
tmp_1.r38_1 = tmp_3;
|
|
590
|
+
this.jk_1 = 1;
|
|
591
|
+
suspendResult = deserialize(this.r38_1, this.o38_1, this.n38_1, this.q38_1, this);
|
|
592
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
593
|
+
return suspendResult;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
continue $sm;
|
|
597
|
+
case 1:
|
|
598
|
+
var result = suspendResult;
|
|
599
|
+
if (!isInterface(result, ByteReadChannel)) {
|
|
600
|
+
get_LOGGER().z1p('Response body was converted to ' + getKClassFromExpression(result) + ' for ' + this.m38_1 + '.');
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
return result;
|
|
604
|
+
case 2:
|
|
605
|
+
throw this.mk_1;
|
|
606
|
+
}
|
|
607
|
+
} catch ($p) {
|
|
608
|
+
var e = $p;
|
|
609
|
+
if (this.kk_1 === 2) {
|
|
610
|
+
throw e;
|
|
611
|
+
} else {
|
|
612
|
+
this.jk_1 = this.kk_1;
|
|
613
|
+
this.mk_1 = e;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
while (true);
|
|
617
|
+
};
|
|
618
|
+
function ContentNegotiation(registrations, ignoredTypes) {
|
|
619
|
+
Plugin_getInstance();
|
|
620
|
+
this.l36_1 = registrations;
|
|
621
|
+
this.m36_1 = ignoredTypes;
|
|
622
|
+
}
|
|
623
|
+
protoOf(ContentNegotiation).n36 = function (request, body, $completion) {
|
|
624
|
+
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
625
|
+
tmp.lk_1 = Unit_getInstance();
|
|
626
|
+
tmp.mk_1 = null;
|
|
627
|
+
return tmp.sk();
|
|
628
|
+
};
|
|
629
|
+
protoOf(ContentNegotiation).g37 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
630
|
+
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
631
|
+
tmp.lk_1 = Unit_getInstance();
|
|
632
|
+
tmp.mk_1 = null;
|
|
633
|
+
return tmp.sk();
|
|
634
|
+
};
|
|
635
|
+
function ContentConverterException(message) {
|
|
636
|
+
Exception_init_$Init$(message, this);
|
|
637
|
+
captureStack(this, ContentConverterException);
|
|
638
|
+
}
|
|
639
|
+
var properties_initialized_ContentNegotiation_kt_1ayduy;
|
|
640
|
+
function _init_properties_ContentNegotiation_kt__o183go() {
|
|
641
|
+
if (properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
642
|
+
} else {
|
|
643
|
+
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
644
|
+
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
645
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().zg(), PrimitiveClasses_getInstance().vg(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
function JsonContentTypeMatcher() {
|
|
649
|
+
JsonContentTypeMatcher_instance = this;
|
|
650
|
+
}
|
|
651
|
+
protoOf(JsonContentTypeMatcher).x35 = function (contentType) {
|
|
652
|
+
if (contentType.u1r(Application_getInstance().n1q_1)) {
|
|
653
|
+
return true;
|
|
654
|
+
}
|
|
655
|
+
var value = contentType.t1r().toString();
|
|
656
|
+
return startsWith(value, 'application/') ? endsWith(value, '+json') : false;
|
|
657
|
+
};
|
|
658
|
+
var JsonContentTypeMatcher_instance;
|
|
659
|
+
function JsonContentTypeMatcher_getInstance() {
|
|
660
|
+
if (JsonContentTypeMatcher_instance == null)
|
|
661
|
+
new JsonContentTypeMatcher();
|
|
662
|
+
return JsonContentTypeMatcher_instance;
|
|
663
|
+
}
|
|
664
|
+
function get_DefaultIgnoredTypes() {
|
|
665
|
+
_init_properties_DefaultIgnoredTypesJs_kt__rjtdk1();
|
|
666
|
+
return DefaultIgnoredTypes;
|
|
667
|
+
}
|
|
668
|
+
var DefaultIgnoredTypes;
|
|
669
|
+
var properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt;
|
|
670
|
+
function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
|
|
671
|
+
if (properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
|
|
672
|
+
} else {
|
|
673
|
+
properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt = true;
|
|
674
|
+
var tmp$ret$0;
|
|
675
|
+
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
676
|
+
tmp$ret$0 = LinkedHashSet_init_$Create$();
|
|
677
|
+
DefaultIgnoredTypes = tmp$ret$0;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
//region block: post-declaration
|
|
681
|
+
protoOf(Config).v22 = register$default;
|
|
682
|
+
//endregion
|
|
683
|
+
//region block: exports
|
|
684
|
+
_.$_$ = _.$_$ || {};
|
|
685
|
+
_.$_$.a = Plugin_getInstance;
|
|
686
|
+
//endregion
|
|
687
|
+
return _;
|
|
688
|
+
}(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-serialization.js'), require('./ktor-ktor-io.js')));
|
|
689
|
+
|
|
690
|
+
//# sourceMappingURL=ktor-ktor-client-content-negotiation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8751bb35b76fe75c5daed096f46f33d2
|