game_client_logic_deb 1.8.147 → 1.8.185
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 +80 -80
- package/Kosi-Kodein-kodein-di.js +651 -651
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +5674 -321
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +2007 -1712
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +19790 -15503
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +383 -93
- package/Logic_Debertz-game_client.js +5036 -4822
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4016 -2922
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +35 -35
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3755 -2723
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +302 -302
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2161 -2132
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1529 -1515
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +713 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +7207 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-js.js +15 -0
- package/ktor-ktor-client-js.js.map +1 -0
- package/ktor-ktor-client-logging.js +1506 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +97 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http.js +3263 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +6469 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +67 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +847 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +369 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-utils.js +2659 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +466 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/package.json +5 -2
- package/raspberry-cardgame-lib-core.js +742 -560
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +408 -0
- package/raspberry-cardgame-lib-logger.js.map +1 -0
- package/raspberry-cardgame-lib-random.js +2756 -0
- package/raspberry-cardgame-lib-random.js.map +1 -0
- package/secure-random-secure-random.js +163 -5
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +36 -36
- package/uuid.js.map +1 -1
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-utils.js', './ktor-ktor-client-core.js', './ktor-ktor-http.js', './ktor-ktor-serialization.js', './ktor-ktor-io.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.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'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof this['ktor-ktor-utils'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof this['ktor-ktor-client-core'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof this['ktor-ktor-http'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof this['ktor-ktor-serialization'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-serialization' was not found. Please, check whether 'ktor-ktor-serialization' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof this['ktor-ktor-io'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
24
|
+
}
|
|
25
|
+
root['ktor-ktor-client-content-negotiation'] = factory(typeof this['ktor-ktor-client-content-negotiation'] === 'undefined' ? {} : this['ktor-ktor-client-content-negotiation'], this['kotlin-kotlin-stdlib'], this['ktor-ktor-utils'], this['ktor-ktor-client-core'], this['ktor-ktor-http'], this['ktor-ktor-serialization'], this['ktor-ktor-io']);
|
|
26
|
+
}
|
|
27
|
+
}(globalThis, 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) {
|
|
28
|
+
'use strict';
|
|
29
|
+
//region block: imports
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.oc;
|
|
31
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nb;
|
|
32
|
+
var CoroutineImpl = kotlin_kotlin.$_$.qa;
|
|
33
|
+
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
34
|
+
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
35
|
+
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
36
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
37
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.rb;
|
|
38
|
+
var VOID = kotlin_kotlin.$_$.f;
|
|
39
|
+
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
40
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
41
|
+
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
42
|
+
var plus = kotlin_kotlin.$_$.t8;
|
|
43
|
+
var toMutableSet = kotlin_kotlin.$_$.u9;
|
|
44
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
45
|
+
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
46
|
+
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
47
|
+
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
48
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
49
|
+
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
50
|
+
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
51
|
+
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
52
|
+
var initMetadataForObject = kotlin_kotlin.$_$.sb;
|
|
53
|
+
var toString = kotlin_kotlin.$_$.sc;
|
|
54
|
+
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
55
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
56
|
+
var Collection = kotlin_kotlin.$_$.n5;
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.bc;
|
|
58
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
59
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
60
|
+
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
61
|
+
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
62
|
+
var Unit = kotlin_kotlin.$_$.zg;
|
|
63
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
64
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
65
|
+
var ensureNotNull = kotlin_kotlin.$_$.fh;
|
|
66
|
+
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
67
|
+
var equals = kotlin_kotlin.$_$.fb;
|
|
68
|
+
var joinToString = kotlin_kotlin.$_$.b8;
|
|
69
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
|
|
70
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
71
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.o6;
|
|
72
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
73
|
+
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
74
|
+
var Exception = kotlin_kotlin.$_$.fg;
|
|
75
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.k1;
|
|
76
|
+
var captureStack = kotlin_kotlin.$_$.xa;
|
|
77
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
78
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.b5;
|
|
79
|
+
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.s;
|
|
80
|
+
var getKClass = kotlin_kotlin.$_$.e;
|
|
81
|
+
var setOf = kotlin_kotlin.$_$.c9;
|
|
82
|
+
var startsWith = kotlin_kotlin.$_$.we;
|
|
83
|
+
var endsWith = kotlin_kotlin.$_$.xd;
|
|
84
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
85
|
+
//endregion
|
|
86
|
+
//region block: pre-declaration
|
|
87
|
+
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
88
|
+
initMetadataForClass(ContentNegotiation$Config$defaultMatcher$1);
|
|
89
|
+
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda, CoroutineImpl, VOID, [2]);
|
|
90
|
+
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda_1, CoroutineImpl, VOID, [2]);
|
|
91
|
+
initMetadataForClass(Config, 'Config', Config, VOID, [Configuration]);
|
|
92
|
+
initMetadataForObject(Plugin, 'Plugin', VOID, VOID, [HttpClientPlugin]);
|
|
93
|
+
initMetadataForCoroutine($convertRequestCOROUTINE$0, CoroutineImpl);
|
|
94
|
+
initMetadataForCoroutine($convertResponseCOROUTINE$1, CoroutineImpl);
|
|
95
|
+
initMetadataForClass(ContentNegotiation, 'ContentNegotiation', VOID, VOID, VOID, [2, 5]);
|
|
96
|
+
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
97
|
+
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
98
|
+
//endregion
|
|
99
|
+
function get_LOGGER() {
|
|
100
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
101
|
+
return LOGGER;
|
|
102
|
+
}
|
|
103
|
+
var LOGGER;
|
|
104
|
+
function get_DefaultCommonIgnoredTypes() {
|
|
105
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
106
|
+
return DefaultCommonIgnoredTypes;
|
|
107
|
+
}
|
|
108
|
+
var DefaultCommonIgnoredTypes;
|
|
109
|
+
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
+
this.w3y_1 = converter;
|
|
111
|
+
this.x3y_1 = contentTypeToSend;
|
|
112
|
+
this.y3y_1 = contentTypeMatcher;
|
|
113
|
+
}
|
|
114
|
+
function defaultMatcher($this, pattern) {
|
|
115
|
+
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
116
|
+
}
|
|
117
|
+
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
118
|
+
this.z3y_1 = $pattern;
|
|
119
|
+
}
|
|
120
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).a3z = function (contentType) {
|
|
121
|
+
return contentType.h2d(this.z3y_1);
|
|
122
|
+
};
|
|
123
|
+
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
124
|
+
this.j3z_1 = $plugin;
|
|
125
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
126
|
+
}
|
|
127
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).u2r = function ($this$intercept, it, $completion) {
|
|
128
|
+
var tmp = this.v2r($this$intercept, it, $completion);
|
|
129
|
+
tmp.f9_1 = Unit_instance;
|
|
130
|
+
tmp.g9_1 = null;
|
|
131
|
+
return tmp.l9();
|
|
132
|
+
};
|
|
133
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).wi = function (p1, p2, $completion) {
|
|
134
|
+
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
135
|
+
return this.u2r(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
136
|
+
};
|
|
137
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).l9 = function () {
|
|
138
|
+
var suspendResult = this.f9_1;
|
|
139
|
+
$sm: do
|
|
140
|
+
try {
|
|
141
|
+
var tmp = this.d9_1;
|
|
142
|
+
switch (tmp) {
|
|
143
|
+
case 0:
|
|
144
|
+
this.e9_1 = 3;
|
|
145
|
+
this.d9_1 = 1;
|
|
146
|
+
suspendResult = this.j3z_1.q3z(this.k3z_1.q2a_1, this.k3z_1.t29(), this);
|
|
147
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
148
|
+
return suspendResult;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
continue $sm;
|
|
152
|
+
case 1:
|
|
153
|
+
this.m3z_1 = suspendResult;
|
|
154
|
+
var tmp_0 = this;
|
|
155
|
+
var tmp_1;
|
|
156
|
+
if (this.m3z_1 == null) {
|
|
157
|
+
return Unit_instance;
|
|
158
|
+
} else {
|
|
159
|
+
tmp_1 = this.m3z_1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
tmp_0.n3z_1 = tmp_1;
|
|
163
|
+
this.d9_1 = 2;
|
|
164
|
+
suspendResult = this.k3z_1.u29(this.n3z_1, this);
|
|
165
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
166
|
+
return suspendResult;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
continue $sm;
|
|
170
|
+
case 2:
|
|
171
|
+
return Unit_instance;
|
|
172
|
+
case 3:
|
|
173
|
+
throw this.g9_1;
|
|
174
|
+
}
|
|
175
|
+
} catch ($p) {
|
|
176
|
+
var e = $p;
|
|
177
|
+
if (this.e9_1 === 3) {
|
|
178
|
+
throw e;
|
|
179
|
+
} else {
|
|
180
|
+
this.d9_1 = this.e9_1;
|
|
181
|
+
this.g9_1 = e;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
while (true);
|
|
185
|
+
};
|
|
186
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).v2r = function ($this$intercept, it, completion) {
|
|
187
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.j3z_1, completion);
|
|
188
|
+
i.k3z_1 = $this$intercept;
|
|
189
|
+
i.l3z_1 = it;
|
|
190
|
+
return i;
|
|
191
|
+
};
|
|
192
|
+
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
193
|
+
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
194
|
+
var l = function ($this$intercept, it, $completion) {
|
|
195
|
+
return i.u2r($this$intercept, it, $completion);
|
|
196
|
+
};
|
|
197
|
+
l.$arity = 2;
|
|
198
|
+
return l;
|
|
199
|
+
}
|
|
200
|
+
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
201
|
+
this.z3z_1 = $plugin;
|
|
202
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
203
|
+
}
|
|
204
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).o2s = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
205
|
+
var tmp = this.p2s($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
206
|
+
tmp.f9_1 = Unit_instance;
|
|
207
|
+
tmp.g9_1 = null;
|
|
208
|
+
return tmp.l9();
|
|
209
|
+
};
|
|
210
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).wi = function (p1, p2, $completion) {
|
|
211
|
+
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
212
|
+
return this.o2s(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
213
|
+
};
|
|
214
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).l9 = function () {
|
|
215
|
+
var suspendResult = this.f9_1;
|
|
216
|
+
$sm: do
|
|
217
|
+
try {
|
|
218
|
+
var tmp = this.d9_1;
|
|
219
|
+
switch (tmp) {
|
|
220
|
+
case 0:
|
|
221
|
+
this.e9_1 = 3;
|
|
222
|
+
this.c40_1 = this.b40_1.me();
|
|
223
|
+
this.d40_1 = this.b40_1.ne();
|
|
224
|
+
var tmp_0 = this;
|
|
225
|
+
var tmp0_elvis_lhs = contentType(this.a40_1.q2a_1.b2s());
|
|
226
|
+
var tmp_1;
|
|
227
|
+
if (tmp0_elvis_lhs == null) {
|
|
228
|
+
this.a40_1;
|
|
229
|
+
get_LOGGER().m2b('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
230
|
+
return Unit_instance;
|
|
231
|
+
} else {
|
|
232
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
tmp_0.e40_1 = tmp_1;
|
|
236
|
+
this.f40_1 = suitableCharset(this.a40_1.q2a_1.k2v().p2h());
|
|
237
|
+
this.d9_1 = 1;
|
|
238
|
+
suspendResult = this.z3z_1.j40(this.a40_1.q2a_1.k2v().n2v(), this.c40_1, this.d40_1, this.e40_1, this.f40_1, this);
|
|
239
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
240
|
+
return suspendResult;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
continue $sm;
|
|
244
|
+
case 1:
|
|
245
|
+
this.g40_1 = suspendResult;
|
|
246
|
+
var tmp_2 = this;
|
|
247
|
+
var tmp_3;
|
|
248
|
+
if (this.g40_1 == null) {
|
|
249
|
+
return Unit_instance;
|
|
250
|
+
} else {
|
|
251
|
+
tmp_3 = this.g40_1;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
tmp_2.h40_1 = tmp_3;
|
|
255
|
+
this.i40_1 = new HttpResponseContainer(this.c40_1, this.h40_1);
|
|
256
|
+
this.d9_1 = 2;
|
|
257
|
+
suspendResult = this.a40_1.u29(this.i40_1, this);
|
|
258
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
259
|
+
return suspendResult;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
continue $sm;
|
|
263
|
+
case 2:
|
|
264
|
+
return Unit_instance;
|
|
265
|
+
case 3:
|
|
266
|
+
throw this.g9_1;
|
|
267
|
+
}
|
|
268
|
+
} catch ($p) {
|
|
269
|
+
var e = $p;
|
|
270
|
+
if (this.e9_1 === 3) {
|
|
271
|
+
throw e;
|
|
272
|
+
} else {
|
|
273
|
+
this.d9_1 = this.e9_1;
|
|
274
|
+
this.g9_1 = e;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
while (true);
|
|
278
|
+
};
|
|
279
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).p2s = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
280
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.z3z_1, completion);
|
|
281
|
+
i.a40_1 = $this$intercept;
|
|
282
|
+
i.b40_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
283
|
+
return i;
|
|
284
|
+
};
|
|
285
|
+
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
286
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
287
|
+
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
288
|
+
return i.o2s($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
289
|
+
};
|
|
290
|
+
l.$arity = 2;
|
|
291
|
+
return l;
|
|
292
|
+
}
|
|
293
|
+
function Config() {
|
|
294
|
+
this.k40_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
295
|
+
var tmp = this;
|
|
296
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
297
|
+
tmp.l40_1 = ArrayList_init_$Create$();
|
|
298
|
+
}
|
|
299
|
+
protoOf(Config).j2o = function (contentType, converter, configuration) {
|
|
300
|
+
var matcher = contentType.equals(Application_getInstance().a2c_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
301
|
+
this.m40(contentType, converter, matcher, configuration);
|
|
302
|
+
};
|
|
303
|
+
protoOf(Config).m40 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
304
|
+
// Inline function 'kotlin.apply' call
|
|
305
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
306
|
+
configuration(converter);
|
|
307
|
+
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
308
|
+
this.l40_1.e(registration);
|
|
309
|
+
};
|
|
310
|
+
function Plugin() {
|
|
311
|
+
Plugin_instance = this;
|
|
312
|
+
this.n40_1 = new AttributeKey('ContentNegotiation');
|
|
313
|
+
}
|
|
314
|
+
protoOf(Plugin).t = function () {
|
|
315
|
+
return this.n40_1;
|
|
316
|
+
};
|
|
317
|
+
protoOf(Plugin).o40 = function (block) {
|
|
318
|
+
// Inline function 'kotlin.apply' call
|
|
319
|
+
var this_0 = new Config();
|
|
320
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
321
|
+
block(this_0);
|
|
322
|
+
var config = this_0;
|
|
323
|
+
return new ContentNegotiation(config.l40_1, config.k40_1);
|
|
324
|
+
};
|
|
325
|
+
protoOf(Plugin).f2u = function (block) {
|
|
326
|
+
return this.o40(block);
|
|
327
|
+
};
|
|
328
|
+
protoOf(Plugin).p40 = function (plugin, scope) {
|
|
329
|
+
var tmp = Phases_getInstance().z2z_1;
|
|
330
|
+
scope.a2r_1.u2a(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
331
|
+
var tmp_0 = Phases_getInstance_0().a2u_1;
|
|
332
|
+
scope.b2r_1.u2a(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
333
|
+
};
|
|
334
|
+
protoOf(Plugin).g2u = function (plugin, scope) {
|
|
335
|
+
return this.p40(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
336
|
+
};
|
|
337
|
+
var Plugin_instance;
|
|
338
|
+
function Plugin_getInstance() {
|
|
339
|
+
if (Plugin_instance == null)
|
|
340
|
+
new Plugin();
|
|
341
|
+
return Plugin_instance;
|
|
342
|
+
}
|
|
343
|
+
function ContentNegotiation$convertRequest$lambda(it) {
|
|
344
|
+
return toString(it.w3y_1);
|
|
345
|
+
}
|
|
346
|
+
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
347
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
348
|
+
this.y40_1 = _this__u8e3s4;
|
|
349
|
+
this.z40_1 = request;
|
|
350
|
+
this.a41_1 = body;
|
|
351
|
+
}
|
|
352
|
+
protoOf($convertRequestCOROUTINE$0).l9 = function () {
|
|
353
|
+
var suspendResult = this.f9_1;
|
|
354
|
+
$sm: do
|
|
355
|
+
try {
|
|
356
|
+
var tmp = this.d9_1;
|
|
357
|
+
switch (tmp) {
|
|
358
|
+
case 0:
|
|
359
|
+
this.e9_1 = 7;
|
|
360
|
+
var tmp0_iterator = this.y40_1.o3z_1.j();
|
|
361
|
+
while (tmp0_iterator.k()) {
|
|
362
|
+
var element = tmp0_iterator.l();
|
|
363
|
+
l$ret$1: do {
|
|
364
|
+
get_LOGGER().m2b('Adding Accept=' + element.x3y_1.d2d_1 + ' header for ' + this.z40_1.a2t_1.toString());
|
|
365
|
+
if (this.z40_1.c2t_1.v27(HttpHeaders_getInstance().m2d_1, element.x3y_1.toString())) {
|
|
366
|
+
break l$ret$1;
|
|
367
|
+
}
|
|
368
|
+
accept(this.z40_1, element.x3y_1);
|
|
369
|
+
}
|
|
370
|
+
while (false);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
var tmp_0;
|
|
374
|
+
var tmp_1 = this.a41_1;
|
|
375
|
+
if (tmp_1 instanceof OutgoingContent) {
|
|
376
|
+
tmp_0 = true;
|
|
377
|
+
} else {
|
|
378
|
+
var tmp$ret$2;
|
|
379
|
+
l$ret$3: do {
|
|
380
|
+
var this_0 = this.y40_1.p3z_1;
|
|
381
|
+
var tmp_2;
|
|
382
|
+
if (isInterface(this_0, Collection)) {
|
|
383
|
+
tmp_2 = this_0.p();
|
|
384
|
+
} else {
|
|
385
|
+
tmp_2 = false;
|
|
386
|
+
}
|
|
387
|
+
if (tmp_2) {
|
|
388
|
+
tmp$ret$2 = false;
|
|
389
|
+
break l$ret$3;
|
|
390
|
+
}
|
|
391
|
+
var tmp0_iterator_0 = this_0.j();
|
|
392
|
+
while (tmp0_iterator_0.k()) {
|
|
393
|
+
var element_0 = tmp0_iterator_0.l();
|
|
394
|
+
if (element_0.ka(this.a41_1)) {
|
|
395
|
+
tmp$ret$2 = true;
|
|
396
|
+
break l$ret$3;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
tmp$ret$2 = false;
|
|
400
|
+
}
|
|
401
|
+
while (false);
|
|
402
|
+
tmp_0 = tmp$ret$2;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (tmp_0) {
|
|
406
|
+
get_LOGGER().m2b('Body type ' + toString(getKClassFromExpression(this.a41_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.z40_1.a2t_1.toString() + '.'));
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
var tmp_3 = this;
|
|
411
|
+
var tmp0_elvis_lhs = contentType_0(this.z40_1);
|
|
412
|
+
var tmp_4;
|
|
413
|
+
if (tmp0_elvis_lhs == null) {
|
|
414
|
+
this.y40_1;
|
|
415
|
+
get_LOGGER().m2b("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.z40_1.a2t_1.toString() + '.');
|
|
416
|
+
return null;
|
|
417
|
+
} else {
|
|
418
|
+
tmp_4 = tmp0_elvis_lhs;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
tmp_3.b41_1 = tmp_4;
|
|
422
|
+
var tmp_5 = this.a41_1;
|
|
423
|
+
if (tmp_5 instanceof Unit) {
|
|
424
|
+
get_LOGGER().m2b('Sending empty body for ' + this.z40_1.a2t_1.toString());
|
|
425
|
+
this.z40_1.c2t_1.a28(HttpHeaders_getInstance().e2e_1);
|
|
426
|
+
return EmptyContent_getInstance();
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
var tmp_6 = this;
|
|
430
|
+
var this_1 = this.y40_1.o3z_1;
|
|
431
|
+
var destination = ArrayList_init_$Create$();
|
|
432
|
+
var tmp0_iterator_1 = this_1.j();
|
|
433
|
+
while (tmp0_iterator_1.k()) {
|
|
434
|
+
var element_1 = tmp0_iterator_1.l();
|
|
435
|
+
if (element_1.y3y_1.a3z(this.b41_1)) {
|
|
436
|
+
destination.e(element_1);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
var tmp_7;
|
|
441
|
+
if (!destination.p()) {
|
|
442
|
+
tmp_7 = destination;
|
|
443
|
+
} else {
|
|
444
|
+
tmp_7 = null;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
var tmp1_elvis_lhs = tmp_7;
|
|
448
|
+
var tmp_8;
|
|
449
|
+
if (tmp1_elvis_lhs == null) {
|
|
450
|
+
this.y40_1;
|
|
451
|
+
get_LOGGER().m2b('None of the registered converters match request Content-Type=' + this.b41_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.z40_1.a2t_1.toString() + '.'));
|
|
452
|
+
return null;
|
|
453
|
+
} else {
|
|
454
|
+
tmp_8 = tmp1_elvis_lhs;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
tmp_6.c41_1 = tmp_8;
|
|
458
|
+
if (this.z40_1.d3i() == null) {
|
|
459
|
+
get_LOGGER().m2b('Request has unknown body type. Skipping ContentNegotiation for ' + this.z40_1.a2t_1.toString() + '.');
|
|
460
|
+
return null;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
this.z40_1.c2t_1.a28(HttpHeaders_getInstance().e2e_1);
|
|
464
|
+
this.d9_1 = 1;
|
|
465
|
+
continue $sm;
|
|
466
|
+
case 1:
|
|
467
|
+
var tmp_9 = this;
|
|
468
|
+
tmp_9.e41_1 = this.c41_1;
|
|
469
|
+
this.f41_1 = this.e41_1.j();
|
|
470
|
+
this.d9_1 = 2;
|
|
471
|
+
continue $sm;
|
|
472
|
+
case 2:
|
|
473
|
+
if (!this.f41_1.k()) {
|
|
474
|
+
this.d9_1 = 5;
|
|
475
|
+
continue $sm;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
this.g41_1 = this.f41_1.l();
|
|
479
|
+
var tmp_10 = this;
|
|
480
|
+
tmp_10.h41_1 = this.g41_1;
|
|
481
|
+
this.d9_1 = 3;
|
|
482
|
+
var tmp0_elvis_lhs_0 = charset(this.b41_1);
|
|
483
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().r1z_1 : tmp0_elvis_lhs_0;
|
|
484
|
+
var tmp_12 = ensureNotNull(this.z40_1.d3i());
|
|
485
|
+
var this_2 = this.a41_1;
|
|
486
|
+
var tmp_13;
|
|
487
|
+
if (!equals(this_2, NullBody_instance)) {
|
|
488
|
+
tmp_13 = this_2;
|
|
489
|
+
} else {
|
|
490
|
+
tmp_13 = null;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
suspendResult = this.h41_1.w3y_1.m2o(this.b41_1, tmp_11, tmp_12, tmp_13, this);
|
|
494
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
495
|
+
return suspendResult;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
continue $sm;
|
|
499
|
+
case 3:
|
|
500
|
+
var result = suspendResult;
|
|
501
|
+
if (!(result == null)) {
|
|
502
|
+
get_LOGGER().m2b('Converted request body using ' + toString(this.h41_1.w3y_1) + ' for ' + this.z40_1.a2t_1.toString());
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
var result_0 = result;
|
|
506
|
+
if (!(result_0 == null)) {
|
|
507
|
+
this.d41_1 = result_0;
|
|
508
|
+
this.d9_1 = 6;
|
|
509
|
+
continue $sm;
|
|
510
|
+
} else {
|
|
511
|
+
this.d9_1 = 4;
|
|
512
|
+
continue $sm;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
case 4:
|
|
516
|
+
this.d9_1 = 2;
|
|
517
|
+
continue $sm;
|
|
518
|
+
case 5:
|
|
519
|
+
this.d41_1 = null;
|
|
520
|
+
if (false) {
|
|
521
|
+
this.d9_1 = 1;
|
|
522
|
+
continue $sm;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
this.d9_1 = 6;
|
|
526
|
+
continue $sm;
|
|
527
|
+
case 6:
|
|
528
|
+
var tmp2_elvis_lhs = this.d41_1;
|
|
529
|
+
var tmp_14;
|
|
530
|
+
if (tmp2_elvis_lhs == null) {
|
|
531
|
+
var tmp_15 = "Can't convert " + toString(this.a41_1) + ' with contentType ' + this.b41_1.toString() + ' using converters ';
|
|
532
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.c41_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
533
|
+
} else {
|
|
534
|
+
tmp_14 = tmp2_elvis_lhs;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
var serializedContent = tmp_14;
|
|
538
|
+
return serializedContent;
|
|
539
|
+
case 7:
|
|
540
|
+
throw this.g9_1;
|
|
541
|
+
}
|
|
542
|
+
} catch ($p) {
|
|
543
|
+
var e = $p;
|
|
544
|
+
if (this.e9_1 === 7) {
|
|
545
|
+
throw e;
|
|
546
|
+
} else {
|
|
547
|
+
this.d9_1 = this.e9_1;
|
|
548
|
+
this.g9_1 = e;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
while (true);
|
|
552
|
+
};
|
|
553
|
+
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
554
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
555
|
+
this.q41_1 = _this__u8e3s4;
|
|
556
|
+
this.r41_1 = requestUrl;
|
|
557
|
+
this.s41_1 = info;
|
|
558
|
+
this.t41_1 = body;
|
|
559
|
+
this.u41_1 = responseContentType;
|
|
560
|
+
this.v41_1 = charset;
|
|
561
|
+
}
|
|
562
|
+
protoOf($convertResponseCOROUTINE$1).l9 = function () {
|
|
563
|
+
var suspendResult = this.f9_1;
|
|
564
|
+
$sm: do
|
|
565
|
+
try {
|
|
566
|
+
var tmp = this.d9_1;
|
|
567
|
+
switch (tmp) {
|
|
568
|
+
case 0:
|
|
569
|
+
this.e9_1 = 2;
|
|
570
|
+
var tmp_0 = this.t41_1;
|
|
571
|
+
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
572
|
+
get_LOGGER().m2b('Response body is already transformed. Skipping ContentNegotiation for ' + this.r41_1.toString() + '.');
|
|
573
|
+
return null;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
if (this.q41_1.p3z_1.s1(this.s41_1.h2b_1)) {
|
|
577
|
+
get_LOGGER().m2b('Response body type ' + toString(this.s41_1.h2b_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.r41_1.toString() + '.'));
|
|
578
|
+
return null;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
var tmp_1 = this;
|
|
582
|
+
var this_0 = this.q41_1.o3z_1;
|
|
583
|
+
var destination = ArrayList_init_$Create$();
|
|
584
|
+
var tmp0_iterator = this_0.j();
|
|
585
|
+
while (tmp0_iterator.k()) {
|
|
586
|
+
var element = tmp0_iterator.l();
|
|
587
|
+
if (element.y3y_1.a3z(this.u41_1)) {
|
|
588
|
+
destination.e(element);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
593
|
+
var tmp0_iterator_0 = destination.j();
|
|
594
|
+
while (tmp0_iterator_0.k()) {
|
|
595
|
+
var item = tmp0_iterator_0.l();
|
|
596
|
+
destination_0.e(item.w3y_1);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
var tmp_2;
|
|
600
|
+
if (!destination_0.p()) {
|
|
601
|
+
tmp_2 = destination_0;
|
|
602
|
+
} else {
|
|
603
|
+
tmp_2 = null;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
var tmp0_elvis_lhs = tmp_2;
|
|
607
|
+
var tmp_3;
|
|
608
|
+
if (tmp0_elvis_lhs == null) {
|
|
609
|
+
this.q41_1;
|
|
610
|
+
get_LOGGER().m2b('None of the registered converters match response with Content-Type=' + this.u41_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.r41_1.toString() + '.'));
|
|
611
|
+
return null;
|
|
612
|
+
} else {
|
|
613
|
+
tmp_3 = tmp0_elvis_lhs;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
tmp_1.w41_1 = tmp_3;
|
|
617
|
+
this.d9_1 = 1;
|
|
618
|
+
suspendResult = deserialize(this.w41_1, this.t41_1, this.s41_1, this.v41_1, this);
|
|
619
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
620
|
+
return suspendResult;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
continue $sm;
|
|
624
|
+
case 1:
|
|
625
|
+
var result = suspendResult;
|
|
626
|
+
if (!isInterface(result, ByteReadChannel)) {
|
|
627
|
+
get_LOGGER().m2b('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.r41_1.toString() + '.');
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
return result;
|
|
631
|
+
case 2:
|
|
632
|
+
throw this.g9_1;
|
|
633
|
+
}
|
|
634
|
+
} catch ($p) {
|
|
635
|
+
var e = $p;
|
|
636
|
+
if (this.e9_1 === 2) {
|
|
637
|
+
throw e;
|
|
638
|
+
} else {
|
|
639
|
+
this.d9_1 = this.e9_1;
|
|
640
|
+
this.g9_1 = e;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
while (true);
|
|
644
|
+
};
|
|
645
|
+
function ContentNegotiation(registrations, ignoredTypes) {
|
|
646
|
+
Plugin_getInstance();
|
|
647
|
+
this.o3z_1 = registrations;
|
|
648
|
+
this.p3z_1 = ignoredTypes;
|
|
649
|
+
}
|
|
650
|
+
protoOf(ContentNegotiation).q3z = function (request, body, $completion) {
|
|
651
|
+
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
652
|
+
tmp.f9_1 = Unit_instance;
|
|
653
|
+
tmp.g9_1 = null;
|
|
654
|
+
return tmp.l9();
|
|
655
|
+
};
|
|
656
|
+
protoOf(ContentNegotiation).j40 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
657
|
+
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
658
|
+
tmp.f9_1 = Unit_instance;
|
|
659
|
+
tmp.g9_1 = null;
|
|
660
|
+
return tmp.l9();
|
|
661
|
+
};
|
|
662
|
+
function ContentConverterException(message) {
|
|
663
|
+
Exception_init_$Init$(message, this);
|
|
664
|
+
captureStack(this, ContentConverterException);
|
|
665
|
+
}
|
|
666
|
+
var properties_initialized_ContentNegotiation_kt_1ayduy;
|
|
667
|
+
function _init_properties_ContentNegotiation_kt__o183go() {
|
|
668
|
+
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
669
|
+
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
670
|
+
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
671
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().ob(), PrimitiveClasses_getInstance().kb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
function JsonContentTypeMatcher() {
|
|
675
|
+
}
|
|
676
|
+
protoOf(JsonContentTypeMatcher).a3z = function (contentType) {
|
|
677
|
+
if (contentType.h2d(Application_getInstance().a2c_1)) {
|
|
678
|
+
return true;
|
|
679
|
+
}
|
|
680
|
+
var value = contentType.g2d().toString();
|
|
681
|
+
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
682
|
+
};
|
|
683
|
+
var JsonContentTypeMatcher_instance;
|
|
684
|
+
function JsonContentTypeMatcher_getInstance() {
|
|
685
|
+
return JsonContentTypeMatcher_instance;
|
|
686
|
+
}
|
|
687
|
+
function get_DefaultIgnoredTypes() {
|
|
688
|
+
_init_properties_DefaultIgnoredTypesJs_kt__rjtdk1();
|
|
689
|
+
return DefaultIgnoredTypes;
|
|
690
|
+
}
|
|
691
|
+
var DefaultIgnoredTypes;
|
|
692
|
+
var properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt;
|
|
693
|
+
function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
|
|
694
|
+
if (!properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
|
|
695
|
+
properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt = true;
|
|
696
|
+
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
697
|
+
DefaultIgnoredTypes = LinkedHashSet_init_$Create$();
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
//region block: post-declaration
|
|
701
|
+
protoOf(Config).k2o = register$default;
|
|
702
|
+
//endregion
|
|
703
|
+
//region block: init
|
|
704
|
+
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|
|
705
|
+
//endregion
|
|
706
|
+
//region block: exports
|
|
707
|
+
_.$_$ = _.$_$ || {};
|
|
708
|
+
_.$_$.a = Plugin_getInstance;
|
|
709
|
+
//endregion
|
|
710
|
+
return _;
|
|
711
|
+
}));
|
|
712
|
+
|
|
713
|
+
//# sourceMappingURL=ktor-ktor-client-content-negotiation.js.map
|