raspberry_games_server_game_logic 1.8.450 → 1.8.453

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/Kosi-Kaverit-kaverit.js +92 -92
  2. package/Kosi-Kaverit-kaverit.js.map +1 -1
  3. package/Kosi-Kodein-kodein-di.js +823 -783
  4. package/Kosi-Kodein-kodein-di.js.map +1 -1
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +1919 -1919
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  7. package/Logic_Debertz-ai_module.js +684 -688
  8. package/Logic_Debertz-ai_module.js.map +1 -1
  9. package/Logic_Debertz-core.js +2039 -2051
  10. package/Logic_Debertz-core.js.map +1 -1
  11. package/Logic_Debertz-engine.js +19206 -19216
  12. package/Logic_Debertz-engine.js.map +1 -1
  13. package/Logic_Debertz-game_server.d.ts +756 -669
  14. package/Logic_Debertz-game_server.js +2258 -2267
  15. package/Logic_Debertz-game_server.js.map +1 -1
  16. package/error-library-error.js +7 -7
  17. package/kotlin-kotlin-stdlib.js +5747 -4874
  18. package/kotlin-kotlin-stdlib.js.map +1 -1
  19. package/kotlinx-atomicfu.js +22 -22
  20. package/kotlinx-coroutines-core.js +3322 -3271
  21. package/kotlinx-coroutines-core.js.map +1 -1
  22. package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
  23. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
  24. package/kotlinx-io-kotlinx-io-core.js +1689 -428
  25. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  26. package/kotlinx-serialization-kotlinx-serialization-core.js +2253 -2252
  27. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  28. package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
  29. package/kotlinx-serialization-kotlinx-serialization-json.js +1626 -1626
  30. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  31. package/ktor-ktor-client-content-negotiation.js +457 -395
  32. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  33. package/ktor-ktor-client-core.js +6683 -3979
  34. package/ktor-ktor-client-core.js.map +1 -1
  35. package/ktor-ktor-client-logging.js +2626 -892
  36. package/ktor-ktor-client-logging.js.map +1 -1
  37. package/ktor-ktor-events.js +14 -14
  38. package/ktor-ktor-events.js.map +1 -1
  39. package/ktor-ktor-http-cio.js +2278 -0
  40. package/ktor-ktor-http-cio.js.map +1 -0
  41. package/ktor-ktor-http.js +1274 -1134
  42. package/ktor-ktor-http.js.map +1 -1
  43. package/ktor-ktor-io.js +2598 -5514
  44. package/ktor-ktor-io.js.map +1 -1
  45. package/ktor-ktor-serialization-kotlinx-json.js +8 -8
  46. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  47. package/ktor-ktor-serialization-kotlinx.js +332 -338
  48. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  49. package/ktor-ktor-serialization.js +143 -153
  50. package/ktor-ktor-serialization.js.map +1 -1
  51. package/{ktor-ktor-client-js.js → ktor-ktor-sse.js} +2 -2
  52. package/ktor-ktor-sse.js.map +1 -0
  53. package/ktor-ktor-utils.js +1708 -1141
  54. package/ktor-ktor-utils.js.map +1 -1
  55. package/ktor-ktor-websockets.js +123 -136
  56. package/ktor-ktor-websockets.js.map +1 -1
  57. package/package.json +2 -4
  58. package/random-library-crypto-rand.js +15 -15
  59. package/random-library-crypto-rand.js.map +1 -1
  60. package/random-library-secure-random.js +10 -10
  61. package/random-library-secure-random.js.map +1 -1
  62. package/raspberry-cardgame-lib-core.js +365 -366
  63. package/raspberry-cardgame-lib-core.js.map +1 -1
  64. package/raspberry-cardgame-lib-logger.js +120 -121
  65. package/raspberry-cardgame-lib-logger.js.map +1 -1
  66. package/raspberry-cardgame-lib-random.js +1181 -1207
  67. package/raspberry-cardgame-lib-random.js.map +1 -1
  68. package/uuid.js +38 -38
  69. package/uuid.js.map +1 -1
  70. /package/{ktor-ktor-client-js.js.map → kotlinx-serialization-kotlinx-serialization-json-io.js.map} +0 -0
@@ -1,18 +1,12 @@
1
1
  (function (factory) {
2
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);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-http.js', './ktor-ktor-serialization.js', './ktor-ktor-io.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js'], factory);
4
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'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-serialization.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'));
6
6
  else {
7
7
  if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
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
9
  }
10
- if (typeof globalThis['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 globalThis['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
10
  if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
17
11
  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
12
  }
@@ -22,78 +16,92 @@
22
16
  if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
23
17
  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
18
  }
25
- globalThis['ktor-ktor-client-content-negotiation'] = factory(typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined' ? {} : globalThis['ktor-ktor-client-content-negotiation'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-serialization'], globalThis['ktor-ktor-io']);
19
+ if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
20
+ 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'.");
21
+ }
22
+ if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
23
+ 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'.");
24
+ }
25
+ globalThis['ktor-ktor-client-content-negotiation'] = factory(typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined' ? {} : globalThis['ktor-ktor-client-content-negotiation'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-serialization'], globalThis['ktor-ktor-io'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils']);
26
26
  }
27
- }(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) {
27
+ }(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
28
28
  'use strict';
29
29
  //region block: imports
30
- var protoOf = kotlin_kotlin.$_$.ld;
31
- var initMetadataForClass = kotlin_kotlin.$_$.lc;
32
- var CoroutineImpl = kotlin_kotlin.$_$.ra;
33
- var Unit_instance = kotlin_kotlin.$_$.f5;
34
- var THROW_CCE = kotlin_kotlin.$_$.oh;
35
- var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
36
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
37
- var initMetadataForLambda = kotlin_kotlin.$_$.pc;
38
- var VOID = kotlin_kotlin.$_$.b;
39
- var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.q;
40
- var contentType = kotlin_io_ktor_ktor_http.$_$.f1;
41
- var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
42
- var plus = kotlin_kotlin.$_$.p8;
43
- var toMutableSet = kotlin_kotlin.$_$.t9;
44
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
30
+ var protoOf = kotlin_kotlin.$_$.wd;
31
+ var initMetadataForClass = kotlin_kotlin.$_$.vc;
32
+ var plus = kotlin_kotlin.$_$.t8;
33
+ var toMutableSet = kotlin_kotlin.$_$.z9;
34
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
45
35
  var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
46
36
  var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
37
+ var Unit_instance = kotlin_kotlin.$_$.h5;
47
38
  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.$_$.qc;
53
- var toString = kotlin_kotlin.$_$.od;
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.$_$.h5;
57
- var isInterface = kotlin_kotlin.$_$.zc;
58
- var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
59
- var getKClassFromExpression = kotlin_kotlin.$_$.fe;
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.$_$.zh;
63
- var charset = kotlin_io_ktor_ktor_http.$_$.b1;
64
- var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
65
- var ensureNotNull = kotlin_kotlin.$_$.fi;
39
+ var VOID = kotlin_kotlin.$_$.b;
40
+ var Exception = kotlin_kotlin.$_$.zh;
41
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
42
+ var captureStack = kotlin_kotlin.$_$.fc;
43
+ var toString = kotlin_kotlin.$_$.zd;
44
+ var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
45
+ var CoroutineImpl = kotlin_kotlin.$_$.ya;
46
+ var THROW_CCE = kotlin_kotlin.$_$.hi;
47
+ var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.h;
48
+ var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
49
+ var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
50
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ia;
51
+ var initMetadataForLambda = kotlin_kotlin.$_$.ad;
52
+ var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.i;
53
+ var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.w;
54
+ var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.k1;
55
+ var isInterface = kotlin_kotlin.$_$.kd;
56
+ var contentType = kotlin_io_ktor_ktor_http.$_$.l1;
57
+ var get_request = kotlin_io_ktor_ktor_client_core.$_$.y;
58
+ var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.e;
59
+ var Collection = kotlin_kotlin.$_$.j5;
60
+ var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
61
+ var emptyList = kotlin_kotlin.$_$.g7;
62
+ var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
63
+ var accept = kotlin_io_ktor_ktor_client_core.$_$.r;
64
+ var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
65
+ var getKClassFromExpression = kotlin_kotlin.$_$.pe;
66
+ var contentType_0 = kotlin_io_ktor_ktor_http.$_$.j1;
67
+ var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
68
+ var Unit = kotlin_kotlin.$_$.si;
69
+ var charset = kotlin_io_ktor_ktor_http.$_$.h1;
70
+ var ensureNotNull = kotlin_kotlin.$_$.zi;
66
71
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
67
- var equals = kotlin_kotlin.$_$.ec;
68
- var joinToString = kotlin_kotlin.$_$.v7;
69
- var initMetadataForCoroutine = kotlin_kotlin.$_$.nc;
70
- var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.h1;
71
- var collectionSizeOrDefault = kotlin_kotlin.$_$.i6;
72
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
72
+ var equals = kotlin_kotlin.$_$.oc;
73
+ var joinToString = kotlin_kotlin.$_$.z7;
74
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.xc;
75
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.k6;
76
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
73
77
  var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
74
- var Exception = kotlin_kotlin.$_$.gh;
75
- var Exception_init_$Init$ = kotlin_kotlin.$_$.f1;
76
- var captureStack = kotlin_kotlin.$_$.vb;
77
- var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.g;
78
- var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.s4;
79
- var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.s;
80
- var getKClass = kotlin_kotlin.$_$.ge;
81
- var setOf = kotlin_kotlin.$_$.b9;
82
- var startsWith = kotlin_kotlin.$_$.vf;
83
- var endsWith = kotlin_kotlin.$_$.ye;
84
- var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.s;
78
+ var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
79
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.u4;
80
+ var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.y;
81
+ var getKClass = kotlin_kotlin.$_$.qe;
82
+ var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.m;
83
+ var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.l;
84
+ var setOf = kotlin_kotlin.$_$.f9;
85
+ var KtList = kotlin_kotlin.$_$.p5;
86
+ var ContentType = kotlin_io_ktor_ktor_http.$_$.w;
87
+ var arrayOf = kotlin_kotlin.$_$.vi;
88
+ var createKType = kotlin_kotlin.$_$.oe;
89
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.me;
90
+ var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
91
+ var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
92
+ var endsWith = kotlin_kotlin.$_$.of;
93
+ var initMetadataForObject = kotlin_kotlin.$_$.bd;
94
+ var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.t;
85
95
  //endregion
86
96
  //region block: pre-declaration
87
97
  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$, CoroutineImpl);
94
- initMetadataForCoroutine($convertResponseCOROUTINE$, CoroutineImpl);
95
- initMetadataForClass(ContentNegotiation, 'ContentNegotiation', VOID, VOID, VOID, [2, 5]);
98
+ initMetadataForClass(ContentNegotiationConfig$defaultMatcher$1);
99
+ initMetadataForClass(ContentNegotiationConfig, 'ContentNegotiationConfig', ContentNegotiationConfig, VOID, [Configuration]);
96
100
  initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
101
+ initMetadataForLambda(ContentNegotiation$lambda$slambda, CoroutineImpl, VOID, [4]);
102
+ initMetadataForLambda(ContentNegotiation$lambda$slambda_1, CoroutineImpl, VOID, [4]);
103
+ initMetadataForCoroutine($invoke$convertRequestCOROUTINE$, CoroutineImpl);
104
+ initMetadataForCoroutine($invoke$convertResponseCOROUTINE$, CoroutineImpl);
97
105
  initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
98
106
  //endregion
99
107
  function get_LOGGER() {
@@ -106,385 +114,435 @@
106
114
  return DefaultCommonIgnoredTypes;
107
115
  }
108
116
  var DefaultCommonIgnoredTypes;
117
+ function get_ExcludedContentTypes() {
118
+ _init_properties_ContentNegotiation_kt__o183go();
119
+ return ExcludedContentTypes;
120
+ }
121
+ var ExcludedContentTypes;
122
+ function get_ContentNegotiation() {
123
+ _init_properties_ContentNegotiation_kt__o183go();
124
+ return ContentNegotiation;
125
+ }
126
+ var ContentNegotiation;
109
127
  function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
110
- this.x4w_1 = converter;
111
- this.y4w_1 = contentTypeToSend;
112
- this.z4w_1 = contentTypeMatcher;
128
+ this.p5n_1 = converter;
129
+ this.q5n_1 = contentTypeToSend;
130
+ this.r5n_1 = contentTypeMatcher;
113
131
  }
114
132
  function defaultMatcher($this, pattern) {
115
- return new ContentNegotiation$Config$defaultMatcher$1(pattern);
133
+ return new ContentNegotiationConfig$defaultMatcher$1(pattern);
116
134
  }
117
- function ContentNegotiation$Config$defaultMatcher$1($pattern) {
118
- this.a4x_1 = $pattern;
135
+ function ContentNegotiationConfig$defaultMatcher$1($pattern) {
136
+ this.s5n_1 = $pattern;
137
+ }
138
+ protoOf(ContentNegotiationConfig$defaultMatcher$1).t5n = function (contentType) {
139
+ return contentType.d3f(this.s5n_1);
140
+ };
141
+ function ContentNegotiationConfig() {
142
+ this.u5n_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
143
+ var tmp = this;
144
+ // Inline function 'kotlin.collections.mutableListOf' call
145
+ tmp.v5n_1 = ArrayList_init_$Create$();
146
+ this.w5n_1 = null;
119
147
  }
120
- protoOf(ContentNegotiation$Config$defaultMatcher$1).b4x = function (contentType) {
121
- return contentType.f3f(this.a4x_1);
148
+ protoOf(ContentNegotiationConfig).a3x = function (contentType, converter, configuration) {
149
+ var matcher = contentType.d3f(Application_getInstance().j3d_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
150
+ this.x5n(contentType, converter, matcher, configuration);
122
151
  };
123
- function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
124
- this.k4x_1 = $plugin;
152
+ protoOf(ContentNegotiationConfig).x5n = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
153
+ // Inline function 'kotlin.apply' call
154
+ configuration(converter);
155
+ var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
156
+ this.v5n_1.e1(registration);
157
+ };
158
+ function ContentConverterException(message) {
159
+ Exception_init_$Init$(message, this);
160
+ captureStack(this, ContentConverterException);
161
+ }
162
+ function ContentNegotiationConfig$_init_$ref_1ne3ob() {
163
+ var l = function () {
164
+ return new ContentNegotiationConfig();
165
+ };
166
+ l.callableName = '<init>';
167
+ return l;
168
+ }
169
+ function ContentNegotiation$lambda($this$createClientPlugin) {
170
+ _init_properties_ContentNegotiation_kt__o183go();
171
+ var registrations = $this$createClientPlugin.a49_1.v5n_1;
172
+ var ignoredTypes = $this$createClientPlugin.a49_1.u5n_1;
173
+ $this$createClientPlugin.g4t(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
174
+ $this$createClientPlugin.f4i(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
175
+ return Unit_instance;
176
+ }
177
+ function ContentNegotiation$lambda$convertRequest$lambda(it) {
178
+ _init_properties_ContentNegotiation_kt__o183go();
179
+ return toString(it.p5n_1);
180
+ }
181
+ function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
182
+ var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
183
+ tmp.g9_1 = Unit_instance;
184
+ tmp.h9_1 = null;
185
+ return tmp.m9();
186
+ }
187
+ function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
188
+ charset = charset === VOID ? Charsets_getInstance().c33_1 : charset;
189
+ var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
190
+ tmp.g9_1 = Unit_instance;
191
+ tmp.h9_1 = null;
192
+ return tmp.m9();
193
+ }
194
+ function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
195
+ this.p5p_1 = $registrations;
196
+ this.q5p_1 = $this_createClientPlugin;
197
+ this.r5p_1 = $ignoredTypes;
125
198
  CoroutineImpl.call(this, resultContinuation);
126
199
  }
127
- protoOf(ContentNegotiation$Plugin$install$slambda).g3r = function ($this$intercept, it, $completion) {
128
- var tmp = this.h3r($this$intercept, it, $completion);
129
- tmp.u8_1 = Unit_instance;
130
- tmp.v8_1 = null;
131
- return tmp.a9();
200
+ protoOf(ContentNegotiation$lambda$slambda).w5p = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
201
+ var tmp = this.x5p($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
202
+ tmp.g9_1 = Unit_instance;
203
+ tmp.h9_1 = null;
204
+ return tmp.m9();
132
205
  };
133
- protoOf(ContentNegotiation$Plugin$install$slambda).j9 = function (p1, p2, $completion) {
134
- var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
135
- return this.g3r(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
206
+ protoOf(ContentNegotiation$lambda$slambda).k4j = function (p1, p2, p3, p4, $completion) {
207
+ var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
208
+ var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
209
+ var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
210
+ return this.w5p(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
136
211
  };
137
- protoOf(ContentNegotiation$Plugin$install$slambda).a9 = function () {
138
- var suspendResult = this.u8_1;
212
+ protoOf(ContentNegotiation$lambda$slambda).m9 = function () {
213
+ var suspendResult = this.g9_1;
139
214
  $sm: do
140
215
  try {
141
- var tmp = this.s8_1;
216
+ var tmp = this.e9_1;
142
217
  switch (tmp) {
143
218
  case 0:
144
- this.t8_1 = 3;
145
- this.s8_1 = 1;
146
- suspendResult = this.k4x_1.p4x(this.l4x_1.p3c_1, this.l4x_1.s3b(), this);
219
+ this.f9_1 = 2;
220
+ this.e9_1 = 1;
221
+ suspendResult = invoke$convertRequest(this.p5p_1, this.q5p_1, this.r5p_1, this.t5p_1, this.u5p_1, this);
147
222
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
148
223
  return suspendResult;
149
224
  }
150
225
 
151
226
  continue $sm;
152
227
  case 1:
153
- var tmp0_elvis_lhs = suspendResult;
154
- var tmp_0;
155
- if (tmp0_elvis_lhs == null) {
156
- return Unit_instance;
157
- } else {
158
- tmp_0 = tmp0_elvis_lhs;
159
- }
160
-
161
- var result = tmp_0;
162
- this.s8_1 = 2;
163
- suspendResult = this.l4x_1.t3b(result, this);
164
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
165
- return suspendResult;
166
- }
167
-
168
- continue $sm;
228
+ return suspendResult;
169
229
  case 2:
170
- return Unit_instance;
171
- case 3:
172
- throw this.v8_1;
230
+ throw this.h9_1;
173
231
  }
174
232
  } catch ($p) {
175
233
  var e = $p;
176
- if (this.t8_1 === 3) {
234
+ if (this.f9_1 === 2) {
177
235
  throw e;
178
236
  } else {
179
- this.s8_1 = this.t8_1;
180
- this.v8_1 = e;
237
+ this.e9_1 = this.f9_1;
238
+ this.h9_1 = e;
181
239
  }
182
240
  }
183
241
  while (true);
184
242
  };
185
- protoOf(ContentNegotiation$Plugin$install$slambda).h3r = function ($this$intercept, it, completion) {
186
- var i = new ContentNegotiation$Plugin$install$slambda(this.k4x_1, completion);
187
- i.l4x_1 = $this$intercept;
188
- i.m4x_1 = it;
243
+ protoOf(ContentNegotiation$lambda$slambda).x5p = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
244
+ var i = new ContentNegotiation$lambda$slambda(this.p5p_1, this.q5p_1, this.r5p_1, completion);
245
+ i.s5p_1 = $this$transformRequestBody;
246
+ i.t5p_1 = request;
247
+ i.u5p_1 = body;
248
+ i.v5p_1 = _unused_var__etf5q3;
189
249
  return i;
190
250
  };
191
- function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
192
- var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
193
- var l = function ($this$intercept, it, $completion) {
194
- return i.g3r($this$intercept, it, $completion);
251
+ function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
252
+ var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
253
+ var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
254
+ return i.w5p($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
195
255
  };
196
- l.$arity = 2;
256
+ l.$arity = 4;
197
257
  return l;
198
258
  }
199
- function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
200
- this.y4x_1 = $plugin;
259
+ function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
260
+ this.g5q_1 = $ignoredTypes;
261
+ this.h5q_1 = $registrations;
262
+ this.i5q_1 = $this_createClientPlugin;
201
263
  CoroutineImpl.call(this, resultContinuation);
202
264
  }
203
- protoOf(ContentNegotiation$Plugin$install$slambda_1).a3s = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
204
- var tmp = this.b3s($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
205
- tmp.u8_1 = Unit_instance;
206
- tmp.v8_1 = null;
207
- return tmp.a9();
265
+ protoOf(ContentNegotiation$lambda$slambda_1).i4j = function ($this$transformResponseBody, response, body, info, $completion) {
266
+ var tmp = this.j4j($this$transformResponseBody, response, body, info, $completion);
267
+ tmp.g9_1 = Unit_instance;
268
+ tmp.h9_1 = null;
269
+ return tmp.m9();
208
270
  };
209
- protoOf(ContentNegotiation$Plugin$install$slambda_1).j9 = function (p1, p2, $completion) {
210
- var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
211
- return this.a3s(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
271
+ protoOf(ContentNegotiation$lambda$slambda_1).k4j = function (p1, p2, p3, p4, $completion) {
272
+ var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
273
+ var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
274
+ var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
275
+ return this.i4j(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
212
276
  };
213
- protoOf(ContentNegotiation$Plugin$install$slambda_1).a9 = function () {
214
- var suspendResult = this.u8_1;
277
+ protoOf(ContentNegotiation$lambda$slambda_1).m9 = function () {
278
+ var suspendResult = this.g9_1;
215
279
  $sm: do
216
280
  try {
217
- var tmp = this.s8_1;
281
+ var tmp = this.e9_1;
218
282
  switch (tmp) {
219
283
  case 0:
220
- this.t8_1 = 3;
221
- this.b4y_1 = this.a4y_1.oe();
222
- var body = this.a4y_1.pe();
223
- var tmp0_elvis_lhs = contentType(this.z4x_1.p3c_1.n3r());
284
+ this.f9_1 = 2;
285
+ var tmp0_elvis_lhs = contentType(this.k5q_1);
224
286
  var tmp_0;
225
287
  if (tmp0_elvis_lhs == null) {
226
- this.z4x_1;
227
- get_LOGGER().l3d('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
228
- return Unit_instance;
288
+ return null;
229
289
  } else {
230
290
  tmp_0 = tmp0_elvis_lhs;
231
291
  }
232
292
 
233
293
  var contentType_0 = tmp_0;
234
- var charset = suitableCharset(this.z4x_1.p3c_1.t3u().n3j());
235
- this.s8_1 = 1;
236
- suspendResult = this.y4x_1.c4y(this.z4x_1.p3c_1.t3u().v3u(), this.b4y_1, body, contentType_0, charset, this);
294
+ var charset = suitableCharset(get_request(this.k5q_1).n3j());
295
+ this.e9_1 = 1;
296
+ suspendResult = invoke$convertResponse(this.g5q_1, this.h5q_1, this.i5q_1, get_request(this.k5q_1).o42(), this.m5q_1, this.l5q_1, contentType_0, charset, this);
237
297
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
238
298
  return suspendResult;
239
299
  }
240
300
 
241
301
  continue $sm;
242
302
  case 1:
243
- var tmp1_elvis_lhs = suspendResult;
244
- var tmp_1;
245
- if (tmp1_elvis_lhs == null) {
246
- return Unit_instance;
247
- } else {
248
- tmp_1 = tmp1_elvis_lhs;
249
- }
250
-
251
- var deserializedBody = tmp_1;
252
- var result = new HttpResponseContainer(this.b4y_1, deserializedBody);
253
- this.s8_1 = 2;
254
- suspendResult = this.z4x_1.t3b(result, this);
255
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
256
- return suspendResult;
257
- }
258
-
259
- continue $sm;
303
+ return suspendResult;
260
304
  case 2:
261
- return Unit_instance;
262
- case 3:
263
- throw this.v8_1;
305
+ throw this.h9_1;
264
306
  }
265
307
  } catch ($p) {
266
308
  var e = $p;
267
- if (this.t8_1 === 3) {
309
+ if (this.f9_1 === 2) {
268
310
  throw e;
269
311
  } else {
270
- this.s8_1 = this.t8_1;
271
- this.v8_1 = e;
312
+ this.e9_1 = this.f9_1;
313
+ this.h9_1 = e;
272
314
  }
273
315
  }
274
316
  while (true);
275
317
  };
276
- protoOf(ContentNegotiation$Plugin$install$slambda_1).b3s = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
277
- var i = new ContentNegotiation$Plugin$install$slambda_1(this.y4x_1, completion);
278
- i.z4x_1 = $this$intercept;
279
- i.a4y_1 = _name_for_destructuring_parameter_0__wldtmu;
318
+ protoOf(ContentNegotiation$lambda$slambda_1).j4j = function ($this$transformResponseBody, response, body, info, completion) {
319
+ var i = new ContentNegotiation$lambda$slambda_1(this.g5q_1, this.h5q_1, this.i5q_1, completion);
320
+ i.j5q_1 = $this$transformResponseBody;
321
+ i.k5q_1 = response;
322
+ i.l5q_1 = body;
323
+ i.m5q_1 = info;
280
324
  return i;
281
325
  };
282
- function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
283
- var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
284
- var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
285
- return i.a3s($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
326
+ function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
327
+ var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
328
+ var l = function ($this$transformResponseBody, response, body, info, $completion) {
329
+ return i.i4j($this$transformResponseBody, response, body, info, $completion);
286
330
  };
287
- l.$arity = 2;
331
+ l.$arity = 4;
288
332
  return l;
289
333
  }
290
- function Config() {
291
- this.d4y_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
292
- var tmp = this;
293
- // Inline function 'kotlin.collections.mutableListOf' call
294
- tmp.e4y_1 = ArrayList_init_$Create$();
295
- }
296
- protoOf(Config).s4u = function (contentType, converter, configuration) {
297
- var matcher = contentType.equals(Application_getInstance().y3d_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
298
- this.f4y(contentType, converter, matcher, configuration);
299
- };
300
- protoOf(Config).f4y = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
301
- // Inline function 'kotlin.apply' call
302
- configuration(converter);
303
- var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
304
- this.e4y_1.j(registration);
305
- };
306
- function Plugin() {
307
- Plugin_instance = this;
308
- this.g4y_1 = new AttributeKey('ContentNegotiation');
309
- }
310
- protoOf(Plugin).w = function () {
311
- return this.g4y_1;
312
- };
313
- protoOf(Plugin).h4y = function (block) {
314
- // Inline function 'kotlin.apply' call
315
- var this_0 = new Config();
316
- block(this_0);
317
- var config = this_0;
318
- return new ContentNegotiation(config.e4y_1, config.d4y_1);
319
- };
320
- protoOf(Plugin).r3t = function (block) {
321
- return this.h4y(block);
322
- };
323
- protoOf(Plugin).i4y = function (plugin, scope) {
324
- var tmp = Phases_getInstance().b3z_1;
325
- scope.n3q_1.t3c(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
326
- var tmp_0 = Phases_getInstance_0().m3t_1;
327
- scope.o3q_1.t3c(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
328
- };
329
- protoOf(Plugin).s3t = function (plugin, scope) {
330
- return this.i4y(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
331
- };
332
- var Plugin_instance;
333
- function Plugin_getInstance() {
334
- if (Plugin_instance == null)
335
- new Plugin();
336
- return Plugin_instance;
337
- }
338
- function ContentNegotiation$convertRequest$lambda(it) {
339
- return toString(it.x4w_1);
340
- }
341
- function $convertRequestCOROUTINE$(_this__u8e3s4, request, body, resultContinuation) {
334
+ function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
342
335
  CoroutineImpl.call(this, resultContinuation);
343
- this.r4y_1 = _this__u8e3s4;
344
- this.s4y_1 = request;
345
- this.t4y_1 = body;
336
+ this.g5o_1 = registrations;
337
+ this.h5o_1 = $this_createClientPlugin;
338
+ this.i5o_1 = ignoredTypes;
339
+ this.j5o_1 = request;
340
+ this.k5o_1 = body;
346
341
  }
347
- protoOf($convertRequestCOROUTINE$).a9 = function () {
348
- var suspendResult = this.u8_1;
342
+ protoOf($invoke$convertRequestCOROUTINE$).m9 = function () {
343
+ var suspendResult = this.g9_1;
349
344
  $sm: do
350
345
  try {
351
- var tmp = this.s8_1;
346
+ var tmp = this.e9_1;
352
347
  switch (tmp) {
353
348
  case 0:
354
- this.t8_1 = 7;
355
- var _iterator__ex2g4s = this.r4y_1.n4x_1.l();
356
- while (_iterator__ex2g4s.m()) {
357
- var element = _iterator__ex2g4s.n();
358
- l$ret$1: do {
359
- get_LOGGER().l3d('Adding Accept=' + element.y4w_1.b3f_1 + ' header for ' + this.s4y_1.m3s_1.toString());
360
- if (this.s4y_1.o3s_1.u39(HttpHeaders_getInstance().k3f_1, element.y4w_1.toString())) {
361
- break l$ret$1;
349
+ this.f9_1 = 7;
350
+ var tmp_0;
351
+ if (this.j5o_1.c41_1.j34(get_ExcludedContentTypes())) {
352
+ var excluded = this.j5o_1.c41_1.h34(get_ExcludedContentTypes());
353
+ var tmp0 = this.g5o_1;
354
+ var destination = ArrayList_init_$Create$();
355
+ var _iterator__ex2g4s = tmp0.t();
356
+ while (_iterator__ex2g4s.u()) {
357
+ var element = _iterator__ex2g4s.v();
358
+ var tmp$ret$0;
359
+ l$ret$1: do {
360
+ var tmp_1;
361
+ if (isInterface(excluded, Collection)) {
362
+ tmp_1 = excluded.r();
363
+ } else {
364
+ tmp_1 = false;
365
+ }
366
+ if (tmp_1) {
367
+ tmp$ret$0 = true;
368
+ break l$ret$1;
369
+ }
370
+ var _iterator__ex2g4s_0 = excluded.t();
371
+ while (_iterator__ex2g4s_0.u()) {
372
+ var element_0 = _iterator__ex2g4s_0.v();
373
+ if (element.q5n_1.d3f(element_0)) {
374
+ tmp$ret$0 = false;
375
+ break l$ret$1;
376
+ }
377
+ }
378
+ tmp$ret$0 = true;
379
+ }
380
+ while (false);
381
+ if (tmp$ret$0) {
382
+ destination.e1(element);
362
383
  }
363
- accept(this.s4y_1, element.y4w_1);
364
384
  }
365
- while (false);
385
+ tmp_0 = destination;
386
+ } else {
387
+ tmp_0 = this.g5o_1;
366
388
  }
367
389
 
368
- var tmp_0;
369
- var tmp_1 = this.t4y_1;
370
- if (tmp_1 instanceof OutgoingContent) {
371
- tmp_0 = true;
372
- } else {
373
- var tmp0 = this.r4y_1.o4x_1;
390
+ var requestRegistrations = tmp_0;
391
+ var tmp0_elvis_lhs = this.j5o_1.z40_1.j38(HttpHeaders_getInstance().j3f_1);
392
+ var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
393
+ var _iterator__ex2g4s_1 = requestRegistrations.t();
394
+ while (_iterator__ex2g4s_1.u()) {
395
+ var element_1 = _iterator__ex2g4s_1.v();
374
396
  var tmp$ret$2;
375
397
  l$ret$3: do {
376
398
  var tmp_2;
377
- if (isInterface(tmp0, Collection)) {
378
- tmp_2 = tmp0.r();
399
+ if (isInterface(acceptHeaders, Collection)) {
400
+ tmp_2 = acceptHeaders.r();
379
401
  } else {
380
402
  tmp_2 = false;
381
403
  }
382
404
  if (tmp_2) {
383
- tmp$ret$2 = false;
405
+ tmp$ret$2 = true;
384
406
  break l$ret$3;
385
407
  }
386
- var _iterator__ex2g4s_0 = tmp0.l();
387
- while (_iterator__ex2g4s_0.m()) {
388
- var element_0 = _iterator__ex2g4s_0.n();
389
- if (element_0.fa(this.t4y_1)) {
390
- tmp$ret$2 = true;
408
+ var _iterator__ex2g4s_2 = acceptHeaders.t();
409
+ while (_iterator__ex2g4s_2.u()) {
410
+ var element_2 = _iterator__ex2g4s_2.v();
411
+ if (Companion_getInstance().rm(element_2).d3f(element_1.q5n_1)) {
412
+ tmp$ret$2 = false;
391
413
  break l$ret$3;
392
414
  }
393
415
  }
394
- tmp$ret$2 = false;
416
+ tmp$ret$2 = true;
395
417
  }
396
418
  while (false);
397
- tmp_0 = tmp$ret$2;
419
+ if (tmp$ret$2) {
420
+ var qValue = this.h5o_1.a49_1.w5n_1;
421
+ var contentTypeToSend = qValue == null ? element_1.q5n_1 : element_1.q5n_1.b3f('q', qValue.toString());
422
+ get_LOGGER().r3c('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.j5o_1.x40_1.toString());
423
+ accept(this.j5o_1, contentTypeToSend);
424
+ }
398
425
  }
399
426
 
400
- if (tmp_0) {
401
- get_LOGGER().l3d('Body type ' + toString(getKClassFromExpression(this.t4y_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.s4y_1.m3s_1.toString() + '.'));
427
+ var tmp_3;
428
+ var tmp_4 = this.k5o_1;
429
+ if (tmp_4 instanceof OutgoingContent) {
430
+ tmp_3 = true;
431
+ } else {
432
+ var tmp0_0 = this.i5o_1;
433
+ var tmp$ret$4;
434
+ l$ret$5: do {
435
+ var tmp_5;
436
+ if (isInterface(tmp0_0, Collection)) {
437
+ tmp_5 = tmp0_0.r();
438
+ } else {
439
+ tmp_5 = false;
440
+ }
441
+ if (tmp_5) {
442
+ tmp$ret$4 = false;
443
+ break l$ret$5;
444
+ }
445
+ var _iterator__ex2g4s_3 = tmp0_0.t();
446
+ while (_iterator__ex2g4s_3.u()) {
447
+ var element_3 = _iterator__ex2g4s_3.v();
448
+ if (element_3.fb(this.k5o_1)) {
449
+ tmp$ret$4 = true;
450
+ break l$ret$5;
451
+ }
452
+ }
453
+ tmp$ret$4 = false;
454
+ }
455
+ while (false);
456
+ tmp_3 = tmp$ret$4;
457
+ }
458
+
459
+ if (tmp_3) {
460
+ get_LOGGER().r3c('Body type ' + toString(getKClassFromExpression(this.k5o_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.j5o_1.x40_1.toString() + '.'));
402
461
  return null;
403
462
  }
404
463
 
405
- var tmp_3 = this;
406
- var tmp0_elvis_lhs = contentType_0(this.s4y_1);
407
- var tmp_4;
408
- if (tmp0_elvis_lhs == null) {
409
- this.r4y_1;
410
- get_LOGGER().l3d("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.s4y_1.m3s_1.toString() + '.');
464
+ var tmp_6 = this;
465
+ var tmp0_elvis_lhs_0 = contentType_0(this.j5o_1);
466
+ var tmp_7;
467
+ if (tmp0_elvis_lhs_0 == null) {
468
+ this.h5o_1;
469
+ get_LOGGER().r3c("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.j5o_1.x40_1.toString() + '.');
411
470
  return null;
412
471
  } else {
413
- tmp_4 = tmp0_elvis_lhs;
472
+ tmp_7 = tmp0_elvis_lhs_0;
414
473
  }
415
474
 
416
- tmp_3.v4y_1 = tmp_4;
417
- var tmp_5 = this.t4y_1;
418
- if (tmp_5 instanceof Unit) {
419
- get_LOGGER().l3d('Sending empty body for ' + this.s4y_1.m3s_1.toString());
420
- this.s4y_1.o3s_1.z39(HttpHeaders_getInstance().c3g_1);
475
+ tmp_6.m5o_1 = tmp_7;
476
+ var tmp_8 = this.k5o_1;
477
+ if (tmp_8 instanceof Unit) {
478
+ get_LOGGER().r3c('Sending empty body for ' + this.j5o_1.x40_1.toString());
479
+ this.j5o_1.z40_1.t38(HttpHeaders_getInstance().b3g_1);
421
480
  return EmptyContent_getInstance();
422
481
  }
423
482
 
424
- var tmp_6 = this;
425
- var tmp0_0 = this.r4y_1.n4x_1;
426
- var destination = ArrayList_init_$Create$();
427
- var _iterator__ex2g4s_1 = tmp0_0.l();
428
- while (_iterator__ex2g4s_1.m()) {
429
- var element_1 = _iterator__ex2g4s_1.n();
430
- if (element_1.z4w_1.b4x(this.v4y_1)) {
431
- destination.j(element_1);
483
+ var tmp_9 = this;
484
+ var tmp0_1 = this.g5o_1;
485
+ var destination_0 = ArrayList_init_$Create$();
486
+ var _iterator__ex2g4s_4 = tmp0_1.t();
487
+ while (_iterator__ex2g4s_4.u()) {
488
+ var element_4 = _iterator__ex2g4s_4.v();
489
+ if (element_4.r5n_1.t5n(this.m5o_1)) {
490
+ destination_0.e1(element_4);
432
491
  }
433
492
  }
434
493
 
435
- var tmp_7;
436
- if (!destination.r()) {
437
- tmp_7 = destination;
494
+ var tmp_10;
495
+ if (!destination_0.r()) {
496
+ tmp_10 = destination_0;
438
497
  } else {
439
- tmp_7 = null;
498
+ tmp_10 = null;
440
499
  }
441
500
 
442
- var tmp1_elvis_lhs = tmp_7;
443
- var tmp_8;
501
+ var tmp1_elvis_lhs = tmp_10;
502
+ var tmp_11;
444
503
  if (tmp1_elvis_lhs == null) {
445
- this.r4y_1;
446
- get_LOGGER().l3d('None of the registered converters match request Content-Type=' + this.v4y_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.s4y_1.m3s_1.toString() + '.'));
504
+ this.h5o_1;
505
+ get_LOGGER().r3c('None of the registered converters match request Content-Type=' + this.m5o_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.j5o_1.x40_1.toString() + '.'));
447
506
  return null;
448
507
  } else {
449
- tmp_8 = tmp1_elvis_lhs;
508
+ tmp_11 = tmp1_elvis_lhs;
450
509
  }
451
510
 
452
- tmp_6.u4y_1 = tmp_8;
453
- if (this.s4y_1.b4f() == null) {
454
- get_LOGGER().l3d('Request has unknown body type. Skipping ContentNegotiation for ' + this.s4y_1.m3s_1.toString() + '.');
511
+ tmp_9.l5o_1 = tmp_11;
512
+ if (this.j5o_1.o4v() == null) {
513
+ get_LOGGER().r3c('Request has unknown body type. Skipping ContentNegotiation for ' + this.j5o_1.x40_1.toString() + '.');
455
514
  return null;
456
515
  }
457
516
 
458
- this.s4y_1.o3s_1.z39(HttpHeaders_getInstance().c3g_1);
459
- var tmp_9 = this;
460
- tmp_9.z4y_1 = this.u4y_1;
461
- this.s8_1 = 1;
517
+ this.j5o_1.z40_1.t38(HttpHeaders_getInstance().b3g_1);
518
+ this.q5o_1 = this.l5o_1;
519
+ this.e9_1 = 1;
462
520
  continue $sm;
463
521
  case 1:
464
- this.y4y_1 = this.z4y_1.l();
465
- this.s8_1 = 2;
522
+ this.p5o_1 = this.q5o_1.t();
523
+ this.e9_1 = 2;
466
524
  continue $sm;
467
525
  case 2:
468
- if (!this.y4y_1.m()) {
469
- this.s8_1 = 5;
526
+ if (!this.p5o_1.u()) {
527
+ this.e9_1 = 5;
470
528
  continue $sm;
471
529
  }
472
530
 
473
- var element_2 = this.y4y_1.n();
474
- this.x4y_1 = element_2;
475
- this.s8_1 = 3;
476
- var tmp0_elvis_lhs_0 = charset(this.v4y_1);
477
- var tmp_10 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().w31_1 : tmp0_elvis_lhs_0;
478
- var tmp_11 = ensureNotNull(this.s4y_1.b4f());
479
- var this_0 = this.t4y_1;
480
- var tmp_12;
531
+ var element_5 = this.p5o_1.v();
532
+ this.o5o_1 = element_5;
533
+ this.e9_1 = 3;
534
+ var tmp0_elvis_lhs_1 = charset(this.m5o_1);
535
+ var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().c33_1 : tmp0_elvis_lhs_1;
536
+ var tmp_13 = ensureNotNull(this.j5o_1.o4v());
537
+ var this_0 = this.k5o_1;
538
+ var tmp_14;
481
539
  if (!equals(this_0, NullBody_instance)) {
482
- tmp_12 = this_0;
540
+ tmp_14 = this_0;
483
541
  } else {
484
- tmp_12 = null;
542
+ tmp_14 = null;
485
543
  }
486
544
 
487
- suspendResult = this.x4y_1.x4w_1.v4u(this.v4y_1, tmp_10, tmp_11, tmp_12, this);
545
+ suspendResult = this.o5o_1.p5n_1.n5q(this.m5o_1, tmp_12, tmp_13, tmp_14, this);
488
546
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
489
547
  return suspendResult;
490
548
  }
@@ -493,100 +551,102 @@
493
551
  case 3:
494
552
  var result = suspendResult;
495
553
  if (!(result == null)) {
496
- get_LOGGER().l3d('Converted request body using ' + toString(this.x4y_1.x4w_1) + ' for ' + this.s4y_1.m3s_1.toString());
554
+ get_LOGGER().r3c('Converted request body using ' + toString(this.o5o_1.p5n_1) + ' for ' + this.j5o_1.x40_1.toString());
497
555
  }
498
556
 
499
557
  var result_0 = result;
500
558
  if (!(result_0 == null)) {
501
- this.w4y_1 = result_0;
502
- this.s8_1 = 6;
559
+ this.n5o_1 = result_0;
560
+ this.e9_1 = 6;
503
561
  continue $sm;
504
562
  } else {
505
- this.s8_1 = 4;
563
+ this.e9_1 = 4;
506
564
  continue $sm;
507
565
  }
508
566
 
509
567
  case 4:
510
- this.s8_1 = 2;
568
+ this.e9_1 = 2;
511
569
  continue $sm;
512
570
  case 5:
513
- this.w4y_1 = null;
571
+ this.n5o_1 = null;
514
572
  if (false) {
515
- this.s8_1 = 1;
573
+ this.e9_1 = 1;
516
574
  continue $sm;
517
575
  }
518
576
 
519
- this.s8_1 = 6;
577
+ this.e9_1 = 6;
520
578
  continue $sm;
521
579
  case 6:
522
- var tmp2_elvis_lhs = this.w4y_1;
523
- var tmp_13;
580
+ var tmp2_elvis_lhs = this.n5o_1;
581
+ var tmp_15;
524
582
  if (tmp2_elvis_lhs == null) {
525
- var tmp_14 = "Can't convert " + toString(this.t4y_1) + ' with contentType ' + this.v4y_1.toString() + ' using converters ';
526
- throw new ContentConverterException(tmp_14 + joinToString(this.u4y_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
583
+ var tmp_16 = "Can't convert " + toString(this.k5o_1) + ' with contentType ' + this.m5o_1.toString() + ' using converters ';
584
+ throw new ContentConverterException(tmp_16 + joinToString(this.l5o_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
527
585
  } else {
528
- tmp_13 = tmp2_elvis_lhs;
586
+ tmp_15 = tmp2_elvis_lhs;
529
587
  }
530
588
 
531
- var serializedContent = tmp_13;
589
+ var serializedContent = tmp_15;
532
590
  return serializedContent;
533
591
  case 7:
534
- throw this.v8_1;
592
+ throw this.h9_1;
535
593
  }
536
594
  } catch ($p) {
537
595
  var e = $p;
538
- if (this.t8_1 === 7) {
596
+ if (this.f9_1 === 7) {
539
597
  throw e;
540
598
  } else {
541
- this.s8_1 = this.t8_1;
542
- this.v8_1 = e;
599
+ this.e9_1 = this.f9_1;
600
+ this.h9_1 = e;
543
601
  }
544
602
  }
545
603
  while (true);
546
604
  };
547
- function $convertResponseCOROUTINE$(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
605
+ function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
548
606
  CoroutineImpl.call(this, resultContinuation);
549
- this.i4z_1 = _this__u8e3s4;
550
- this.j4z_1 = requestUrl;
551
- this.k4z_1 = info;
552
- this.l4z_1 = body;
553
- this.m4z_1 = responseContentType;
554
- this.n4z_1 = charset;
607
+ this.z5o_1 = ignoredTypes;
608
+ this.a5p_1 = registrations;
609
+ this.b5p_1 = $this_createClientPlugin;
610
+ this.c5p_1 = requestUrl;
611
+ this.d5p_1 = info;
612
+ this.e5p_1 = body;
613
+ this.f5p_1 = responseContentType;
614
+ this.g5p_1 = charset;
555
615
  }
556
- protoOf($convertResponseCOROUTINE$).a9 = function () {
557
- var suspendResult = this.u8_1;
616
+ protoOf($invoke$convertResponseCOROUTINE$).m9 = function () {
617
+ var suspendResult = this.g9_1;
558
618
  $sm: do
559
619
  try {
560
- var tmp = this.s8_1;
620
+ var tmp = this.e9_1;
561
621
  switch (tmp) {
562
622
  case 0:
563
- this.t8_1 = 2;
564
- var tmp_0 = this.l4z_1;
623
+ this.f9_1 = 2;
624
+ var tmp_0 = this.e5p_1;
565
625
  if (!isInterface(tmp_0, ByteReadChannel)) {
566
- get_LOGGER().l3d('Response body is already transformed. Skipping ContentNegotiation for ' + this.j4z_1.toString() + '.');
626
+ get_LOGGER().r3c('Response body is already transformed. Skipping ContentNegotiation for ' + this.c5p_1.toString() + '.');
567
627
  return null;
568
628
  }
569
629
 
570
- if (this.i4z_1.o4x_1.u1(this.k4z_1.g3d_1)) {
571
- get_LOGGER().l3d('Response body type ' + toString(this.k4z_1.g3d_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.j4z_1.toString() + '.'));
630
+ if (this.z5o_1.m2(this.d5p_1.i3c_1)) {
631
+ get_LOGGER().r3c('Response body type ' + toString(this.d5p_1.i3c_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.c5p_1.toString() + '.'));
572
632
  return null;
573
633
  }
574
634
 
575
- var tmp0 = this.i4z_1.n4x_1;
635
+ var tmp0 = this.a5p_1;
576
636
  var destination = ArrayList_init_$Create$();
577
- var _iterator__ex2g4s = tmp0.l();
578
- while (_iterator__ex2g4s.m()) {
579
- var element = _iterator__ex2g4s.n();
580
- if (element.z4w_1.b4x(this.m4z_1)) {
581
- destination.j(element);
637
+ var _iterator__ex2g4s = tmp0.t();
638
+ while (_iterator__ex2g4s.u()) {
639
+ var element = _iterator__ex2g4s.v();
640
+ if (element.r5n_1.t5n(this.f5p_1)) {
641
+ destination.e1(element);
582
642
  }
583
643
  }
584
644
 
585
645
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
586
- var _iterator__ex2g4s_0 = destination.l();
587
- while (_iterator__ex2g4s_0.m()) {
588
- var item = _iterator__ex2g4s_0.n();
589
- destination_0.j(item.x4w_1);
646
+ var _iterator__ex2g4s_0 = destination.t();
647
+ while (_iterator__ex2g4s_0.u()) {
648
+ var item = _iterator__ex2g4s_0.v();
649
+ destination_0.e1(item.p5n_1);
590
650
  }
591
651
 
592
652
  var tmp_1;
@@ -599,16 +659,16 @@
599
659
  var tmp0_elvis_lhs = tmp_1;
600
660
  var tmp_2;
601
661
  if (tmp0_elvis_lhs == null) {
602
- this.i4z_1;
603
- get_LOGGER().l3d('None of the registered converters match response with Content-Type=' + this.m4z_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.j4z_1.toString() + '.'));
662
+ this.b5p_1;
663
+ get_LOGGER().r3c('None of the registered converters match response with Content-Type=' + this.f5p_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.c5p_1.toString() + '.'));
604
664
  return null;
605
665
  } else {
606
666
  tmp_2 = tmp0_elvis_lhs;
607
667
  }
608
668
 
609
669
  var suitableConverters = tmp_2;
610
- this.s8_1 = 1;
611
- suspendResult = deserialize(suitableConverters, this.l4z_1, this.k4z_1, this.n4z_1, this);
670
+ this.e9_1 = 1;
671
+ suspendResult = deserialize(suitableConverters, this.e5p_1, this.d5p_1, this.g5p_1, this);
612
672
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
613
673
  return suspendResult;
614
674
  }
@@ -617,61 +677,63 @@
617
677
  case 1:
618
678
  var result = suspendResult;
619
679
  if (!isInterface(result, ByteReadChannel)) {
620
- get_LOGGER().l3d('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.j4z_1.toString() + '.');
680
+ get_LOGGER().r3c('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.c5p_1.toString() + '.');
621
681
  }
622
682
 
623
683
  return result;
624
684
  case 2:
625
- throw this.v8_1;
685
+ throw this.h9_1;
626
686
  }
627
687
  } catch ($p) {
628
688
  var e = $p;
629
- if (this.t8_1 === 2) {
689
+ if (this.f9_1 === 2) {
630
690
  throw e;
631
691
  } else {
632
- this.s8_1 = this.t8_1;
633
- this.v8_1 = e;
692
+ this.e9_1 = this.f9_1;
693
+ this.h9_1 = e;
634
694
  }
635
695
  }
636
696
  while (true);
637
697
  };
638
- function ContentNegotiation(registrations, ignoredTypes) {
639
- Plugin_getInstance();
640
- this.n4x_1 = registrations;
641
- this.o4x_1 = ignoredTypes;
642
- }
643
- protoOf(ContentNegotiation).p4x = function (request, body, $completion) {
644
- var tmp = new $convertRequestCOROUTINE$(this, request, body, $completion);
645
- tmp.u8_1 = Unit_instance;
646
- tmp.v8_1 = null;
647
- return tmp.a9();
648
- };
649
- protoOf(ContentNegotiation).c4y = function (requestUrl, info, body, responseContentType, charset, $completion) {
650
- var tmp = new $convertResponseCOROUTINE$(this, requestUrl, info, body, responseContentType, charset, $completion);
651
- tmp.u8_1 = Unit_instance;
652
- tmp.v8_1 = null;
653
- return tmp.a9();
654
- };
655
- function ContentConverterException(message) {
656
- Exception_init_$Init$(message, this);
657
- captureStack(this, ContentConverterException);
658
- }
659
698
  var properties_initialized_ContentNegotiation_kt_1ayduy;
660
699
  function _init_properties_ContentNegotiation_kt__o183go() {
661
700
  if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
662
701
  properties_initialized_ContentNegotiation_kt_1ayduy = true;
663
702
  LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
664
- DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().jb(), PrimitiveClasses_getInstance().fb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
703
+ DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().jc(), PrimitiveClasses_getInstance().fc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
704
+ // Inline function 'io.ktor.util.AttributeKey' call
705
+ var name = 'ExcludedContentTypesAttr';
706
+ // Inline function 'io.ktor.util.reflect.typeInfo' call
707
+ var tmp = getKClass(KtList);
708
+ // Inline function 'io.ktor.util.reflect.typeOfOrNull' call
709
+ var tmp_0;
710
+ try {
711
+ tmp_0 = createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ContentType), arrayOf([]), false))]), false);
712
+ } catch ($p) {
713
+ var tmp_1;
714
+ if ($p instanceof Error) {
715
+ var _unused_var__etf5q3 = $p;
716
+ tmp_1 = null;
717
+ } else {
718
+ throw $p;
719
+ }
720
+ tmp_0 = tmp_1;
721
+ }
722
+ var tmp$ret$0 = tmp_0;
723
+ var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
724
+ ExcludedContentTypes = new AttributeKey(name, tmp$ret$1);
725
+ var tmp_2 = ContentNegotiationConfig$_init_$ref_1ne3ob();
726
+ ContentNegotiation = createClientPlugin('ContentNegotiation', tmp_2, ContentNegotiation$lambda);
665
727
  }
666
728
  }
667
729
  function JsonContentTypeMatcher() {
668
730
  }
669
- protoOf(JsonContentTypeMatcher).b4x = function (contentType) {
670
- if (contentType.f3f(Application_getInstance().y3d_1)) {
731
+ protoOf(JsonContentTypeMatcher).t5n = function (contentType) {
732
+ if (contentType.d3f(Application_getInstance().j3d_1)) {
671
733
  return true;
672
734
  }
673
- var value = contentType.e3f().toString();
674
- return startsWith(value, 'application/') && endsWith(value, '+json');
735
+ var value = contentType.c3f().toString();
736
+ return Application_getInstance().d3e(value) && endsWith(value, '+json', true);
675
737
  };
676
738
  var JsonContentTypeMatcher_instance;
677
739
  function JsonContentTypeMatcher_getInstance() {
@@ -691,14 +753,14 @@
691
753
  }
692
754
  }
693
755
  //region block: post-declaration
694
- protoOf(Config).t4u = register$default;
756
+ protoOf(ContentNegotiationConfig).b3x = register$default;
695
757
  //endregion
696
758
  //region block: init
697
759
  JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
698
760
  //endregion
699
761
  //region block: exports
700
762
  _.$_$ = _.$_$ || {};
701
- _.$_$.a = Plugin_getInstance;
763
+ _.$_$.a = get_ContentNegotiation;
702
764
  //endregion
703
765
  return _;
704
766
  }));