game_client_logic_deb 1.8.181 → 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.
Files changed (56) hide show
  1. package/Kosi-Kaverit-kaverit.js +80 -80
  2. package/Kosi-Kodein-kodein-di.js +632 -632
  3. package/Kosi-Kodein-kodein-di.js.map +1 -1
  4. package/Kotlin-DateTime-library-kotlinx-datetime.js +1534 -1534
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  6. package/Logic_Debertz-core.js +1755 -1600
  7. package/Logic_Debertz-core.js.map +1 -1
  8. package/Logic_Debertz-engine.js +12580 -12423
  9. package/Logic_Debertz-engine.js.map +1 -1
  10. package/Logic_Debertz-game_client.d.ts +78 -32
  11. package/Logic_Debertz-game_client.js +4492 -4490
  12. package/Logic_Debertz-game_client.js.map +1 -1
  13. package/kotlin-kotlin-stdlib.js +3063 -2305
  14. package/kotlin-kotlin-stdlib.js.map +1 -1
  15. package/kotlinx-atomicfu.js +25 -25
  16. package/kotlinx-coroutines-core.js +3708 -2676
  17. package/kotlinx-coroutines-core.js.map +1 -1
  18. package/kotlinx-io-kotlinx-io-core.js +297 -297
  19. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  20. package/kotlinx-serialization-kotlinx-serialization-core.js +2154 -2126
  21. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  22. package/kotlinx-serialization-kotlinx-serialization-json.js +1512 -1498
  23. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  24. package/ktor-ktor-client-content-negotiation.js +703 -5
  25. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  26. package/ktor-ktor-client-core.js +7197 -5
  27. package/ktor-ktor-client-core.js.map +1 -1
  28. package/ktor-ktor-client-logging.js +1460 -11
  29. package/ktor-ktor-client-logging.js.map +1 -1
  30. package/ktor-ktor-events.js +87 -5
  31. package/ktor-ktor-events.js.map +1 -1
  32. package/ktor-ktor-http.js +3253 -5
  33. package/ktor-ktor-http.js.map +1 -1
  34. package/ktor-ktor-io.js +6455 -5
  35. package/ktor-ktor-io.js.map +1 -1
  36. package/ktor-ktor-serialization-kotlinx-json.js +57 -5
  37. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  38. package/ktor-ktor-serialization-kotlinx.js +837 -5
  39. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  40. package/ktor-ktor-serialization.js +359 -5
  41. package/ktor-ktor-serialization.js.map +1 -1
  42. package/ktor-ktor-utils.js +2645 -5
  43. package/ktor-ktor-utils.js.map +1 -1
  44. package/ktor-ktor-websockets.js +456 -5
  45. package/ktor-ktor-websockets.js.map +1 -1
  46. package/package.json +1 -1
  47. package/raspberry-cardgame-lib-core.js +666 -168
  48. package/raspberry-cardgame-lib-core.js.map +1 -1
  49. package/raspberry-cardgame-lib-logger.js +107 -106
  50. package/raspberry-cardgame-lib-logger.js.map +1 -1
  51. package/raspberry-cardgame-lib-random.js +2492 -139
  52. package/raspberry-cardgame-lib-random.js.map +1 -1
  53. package/secure-random-secure-random.js +163 -5
  54. package/secure-random-secure-random.js.map +1 -1
  55. package/uuid.js +36 -36
  56. package/uuid.js.map +1 -1
@@ -1,63 +1,305 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-client-logging.js', './kotlinx-serialization-kotlinx-serialization-json.js'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './secure-random-secure-random.js', './raspberry-cardgame-lib-logger.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-client-logging.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./secure-random-secure-random.js'), require('./raspberry-cardgame-lib-logger.js'));
6
6
  else {
7
7
  if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
8
8
  throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-random'.");
9
9
  }
10
- if (typeof this['ktor-ktor-client-logging'] === 'undefined') {
11
- throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-logging' was not found. Please, check whether 'ktor-ktor-client-logging' is loaded prior to 'raspberry-cardgame-lib-random'.");
10
+ if (typeof this['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
11
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
12
12
  }
13
13
  if (typeof this['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
14
14
  throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'raspberry-cardgame-lib-random'.");
15
15
  }
16
- root['raspberry-cardgame-lib-random'] = factory(typeof this['raspberry-cardgame-lib-random'] === 'undefined' ? {} : this['raspberry-cardgame-lib-random'], this['kotlin-kotlin-stdlib'], this['ktor-ktor-client-logging'], this['kotlinx-serialization-kotlinx-serialization-json']);
16
+ if (typeof this['ktor-ktor-client-core'] === 'undefined') {
17
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
18
+ }
19
+ if (typeof this['ktor-ktor-utils'] === 'undefined') {
20
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'raspberry-cardgame-lib-random'.");
21
+ }
22
+ if (typeof this['ktor-ktor-http'] === 'undefined') {
23
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'raspberry-cardgame-lib-random'.");
24
+ }
25
+ if (typeof this['kotlinx-coroutines-core'] === 'undefined') {
26
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
27
+ }
28
+ if (typeof uuid === 'undefined') {
29
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'uuid' was not found. Please, check whether 'uuid' is loaded prior to 'raspberry-cardgame-lib-random'.");
30
+ }
31
+ if (typeof this['ktor-ktor-client-logging'] === 'undefined') {
32
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-logging' was not found. Please, check whether 'ktor-ktor-client-logging' is loaded prior to 'raspberry-cardgame-lib-random'.");
33
+ }
34
+ if (typeof this['ktor-ktor-serialization-kotlinx-json'] === 'undefined') {
35
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-serialization-kotlinx-json' was not found. Please, check whether 'ktor-ktor-serialization-kotlinx-json' is loaded prior to 'raspberry-cardgame-lib-random'.");
36
+ }
37
+ if (typeof this['ktor-ktor-client-content-negotiation'] === 'undefined') {
38
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-content-negotiation' was not found. Please, check whether 'ktor-ktor-client-content-negotiation' is loaded prior to 'raspberry-cardgame-lib-random'.");
39
+ }
40
+ if (typeof this['secure-random-secure-random'] === 'undefined') {
41
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'secure-random-secure-random' was not found. Please, check whether 'secure-random-secure-random' is loaded prior to 'raspberry-cardgame-lib-random'.");
42
+ }
43
+ if (typeof this['raspberry-cardgame-lib-logger'] === 'undefined') {
44
+ throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'raspberry-cardgame-lib-random'.");
45
+ }
46
+ root['raspberry-cardgame-lib-random'] = factory(typeof this['raspberry-cardgame-lib-random'] === 'undefined' ? {} : this['raspberry-cardgame-lib-random'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-core'], this['kotlinx-serialization-kotlinx-serialization-json'], this['ktor-ktor-client-core'], this['ktor-ktor-utils'], this['ktor-ktor-http'], this['kotlinx-coroutines-core'], uuid, this['ktor-ktor-client-logging'], this['ktor-ktor-serialization-kotlinx-json'], this['ktor-ktor-client-content-negotiation'], this['secure-random-secure-random'], this['raspberry-cardgame-lib-logger']);
17
47
  }
18
- }(globalThis, function (_, kotlin_kotlin, kotlin_io_ktor_ktor_client_logging, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
48
+ }(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_io_ktor_ktor_client_logging, kotlin_io_ktor_ktor_serialization_kotlinx_json, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_org_kotlincrypto_secure_random, kotlin_io_raspberryapps_cardgame_logger) {
19
49
  'use strict';
20
50
  //region block: imports
21
51
  var imul = Math.imul;
22
- var toString = kotlin_kotlin.$_$.ub;
23
- var protoOf = kotlin_kotlin.$_$.qb;
24
- var hashCode = kotlin_kotlin.$_$.sa;
25
- var getStringHashCode = kotlin_kotlin.$_$.ra;
26
- var THROW_CCE = kotlin_kotlin.$_$.we;
27
- var equals = kotlin_kotlin.$_$.ma;
28
- var initMetadataForClass = kotlin_kotlin.$_$.ta;
29
- var listOf = kotlin_kotlin.$_$.x7;
30
- var plus = kotlin_kotlin.$_$.i8;
52
+ var clz32 = Math.clz32;
53
+ var protoOf = kotlin_kotlin.$_$.oc;
54
+ var initMetadataForCompanion = kotlin_kotlin.$_$.ob;
55
+ var RuntimeException = kotlin_kotlin.$_$.ng;
31
56
  var VOID = kotlin_kotlin.$_$.f;
32
- var initMetadataForCompanion = kotlin_kotlin.$_$.ua;
33
- var emptyList = kotlin_kotlin.$_$.w6;
34
- var defineProp = kotlin_kotlin.$_$.la;
35
- var initMetadataForInterface = kotlin_kotlin.$_$.wa;
36
- var Unit_instance = kotlin_kotlin.$_$.b5;
37
- var Long = kotlin_kotlin.$_$.qe;
57
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.h2;
58
+ var captureStack = kotlin_kotlin.$_$.xa;
59
+ var initMetadataForClass = kotlin_kotlin.$_$.nb;
60
+ var getStringHashCode = kotlin_kotlin.$_$.lb;
61
+ var THROW_CCE = kotlin_kotlin.$_$.og;
62
+ var toString = kotlin_kotlin.$_$.sc;
63
+ var hashCode = kotlin_kotlin.$_$.mb;
64
+ var equals = kotlin_kotlin.$_$.fb;
65
+ var listOf = kotlin_kotlin.$_$.l8;
66
+ var plus = kotlin_kotlin.$_$.w8;
67
+ var emptyList = kotlin_kotlin.$_$.j7;
68
+ var defineProp = kotlin_kotlin.$_$.eb;
69
+ var toLong = kotlin_kotlin.$_$.qc;
70
+ var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
71
+ var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
72
+ var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
73
+ var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
74
+ var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
75
+ var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
76
+ var initMetadataForObject = kotlin_kotlin.$_$.sb;
77
+ var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
78
+ var Unit_instance = kotlin_kotlin.$_$.l5;
79
+ var objectCreate = kotlin_kotlin.$_$.nc;
80
+ var toString_0 = kotlin_kotlin.$_$.rh;
81
+ var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
82
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
83
+ var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
84
+ var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
85
+ var getBooleanHashCode = kotlin_kotlin.$_$.ib;
86
+ var initMetadataForInterface = kotlin_kotlin.$_$.qb;
87
+ var getValue = kotlin_kotlin.$_$.w7;
88
+ var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
89
+ var CoroutineImpl = kotlin_kotlin.$_$.qa;
90
+ var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
91
+ var url = kotlin_io_ktor_ktor_client_core.$_$.o;
92
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
93
+ var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
94
+ var getKClass = kotlin_kotlin.$_$.e;
95
+ var arrayOf = kotlin_kotlin.$_$.ch;
96
+ var createKType = kotlin_kotlin.$_$.b;
97
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
98
+ var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
99
+ var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
100
+ var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
101
+ var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
102
+ var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
103
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
104
+ var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
105
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
106
+ var KtMap = kotlin_kotlin.$_$.w5;
107
+ var isInterface = kotlin_kotlin.$_$.bc;
108
+ var emptyMap = kotlin_kotlin.$_$.k7;
109
+ var toMutableMap = kotlin_kotlin.$_$.t9;
110
+ var toMap = kotlin_kotlin.$_$.q9;
111
+ var get_lastIndex = kotlin_kotlin.$_$.e8;
112
+ var to = kotlin_kotlin.$_$.sh;
113
+ var mapOf = kotlin_kotlin.$_$.o8;
114
+ var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
115
+ var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
116
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
117
+ var initMetadataForLambda = kotlin_kotlin.$_$.rb;
118
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
119
+ var firstOrNull = kotlin_kotlin.$_$.o7;
120
+ var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
121
+ var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
122
+ var KtMutableMap = kotlin_kotlin.$_$.y5;
123
+ var header = kotlin_io_ktor_ktor_client_core.$_$.n;
124
+ var Companion_instance = kotlin_io_ktor_ktor_client_logging.$_$.b;
125
+ var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.d;
126
+ var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
127
+ var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.k;
128
+ var Companion_getInstance_0 = kotlin_io_ktor_ktor_client_logging.$_$.c;
129
+ var Plugin_getInstance = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
130
+ var Long = kotlin_kotlin.$_$.ig;
38
131
  var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
39
- var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
132
+ var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
133
+ var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
134
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r1;
135
+ var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
136
+ var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
137
+ var Default_getInstance = kotlin_kotlin.$_$.a5;
138
+ var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
139
+ var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
140
+ var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
40
141
  //endregion
41
142
  //region block: pre-declaration
143
+ initMetadataForCompanion(Companion);
144
+ initMetadataForClass(RandomException, 'RandomException', VOID, RuntimeException);
145
+ initMetadataForClass(CardDecksRequestUserData, 'CardDecksRequestUserData');
42
146
  initMetadataForClass(CardDeckRequestUserData, 'CardDeckRequestUserData');
43
147
  initMetadataForClass(UserInfoData, 'UserInfoData');
44
- initMetadataForCompanion(Companion);
148
+ initMetadataForClass(CardDeckResult, 'CardDeckResult');
149
+ initMetadataForCompanion(Companion_0);
45
150
  initMetadataForClass(GameCardDecksRecord, 'GameCardDecksRecord');
46
151
  initMetadataForClass(GameCardDeckData, 'GameCardDeckData');
47
- initMetadataForClass(RandomOrgConfig, 'RandomOrgConfig', RandomOrgConfig);
48
- initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [5]);
49
152
  initMetadataForClass(HttpConfig, 'HttpConfig');
153
+ initMetadataForClass(RandomOrgConfig, 'RandomOrgConfig', RandomOrgConfig);
154
+ initMetadataForCompanion(Companion_1);
155
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
156
+ initMetadataForClass(ErrorResponseDto, 'ErrorResponseDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
157
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
158
+ initMetadataForClass(ErrorDto, 'ErrorDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
159
+ initMetadataForCompanion(Companion_2, VOID, [SerializerFactory]);
160
+ initMetadataForClass($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
161
+ initMetadataForClass(RandomRequestDto, 'RandomRequestDto', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_4});
162
+ initMetadataForCompanion(Companion_3);
163
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
164
+ initMetadataForClass(RandomIntegerSequencesParamsDto, 'RandomIntegerSequencesParamsDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
165
+ initMetadataForCompanion(Companion_4);
166
+ initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
167
+ initMetadataForClass(CardDecksUserDataDto, 'CardDecksUserDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
168
+ initMetadataForCompanion(Companion_5, VOID, [SerializerFactory]);
169
+ initMetadataForClass($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
170
+ initMetadataForClass(RandomResponseDto, 'RandomResponseDto', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_7});
171
+ initMetadataForCompanion(Companion_6);
172
+ initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
173
+ initMetadataForClass(IntegerSequencesResultDto, 'IntegerSequencesResultDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
174
+ initMetadataForCompanion(Companion_7);
175
+ initMetadataForObject($serializer_6, '$serializer', VOID, VOID, [GeneratedSerializer]);
176
+ initMetadataForClass(IntegerSequencesDataDto, 'IntegerSequencesDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_4});
177
+ initMetadataForInterface(RandomOrgApiService, 'RandomOrgApiService', VOID, VOID, VOID, [5, 6]);
178
+ initMetadataForCompanion(Companion_8);
179
+ initMetadataForCoroutine($getRandomCardDecksCOROUTINE$1, CoroutineImpl);
180
+ initMetadataForCoroutine($throwIfErrorCOROUTINE$2, CoroutineImpl);
181
+ initMetadataForClass(RandomOrgApiServiceImpl, 'RandomOrgApiServiceImpl', VOID, VOID, [RandomOrgApiService], [5, 6, 2]);
182
+ function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion, $super) {
183
+ min = min === VOID ? 0 : min;
184
+ max = max === VOID ? 51 : max;
185
+ cardsCount = cardsCount === VOID ? 52 : cardsCount;
186
+ signed = signed === VOID ? false : signed;
187
+ return $super === VOID ? this.j5n(minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) : $super.j5n.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
188
+ }
189
+ initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [6]);
190
+ initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
191
+ initMetadataForCompanion(Companion_9);
192
+ initMetadataForLambda(RandomPoolProviderImpl$generateCardDecks$slambda, CoroutineImpl, VOID, [1]);
193
+ initMetadataForCoroutine($getCardDeckCOROUTINE$3, CoroutineImpl);
194
+ initMetadataForCoroutine($getPreparedRandomPoolValueCOROUTINE$4, CoroutineImpl);
195
+ initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [6, 4]);
196
+ initMetadataForClass(ApiCommonConfigs$setupLogging$1$1);
197
+ initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
198
+ initMetadataForClass(HttpParams, 'HttpParams');
199
+ function shuffle(list) {
200
+ var inductionVariable = get_lastIndex(list);
201
+ if (1 <= inductionVariable)
202
+ do {
203
+ var i = inductionVariable;
204
+ inductionVariable = inductionVariable + -1 | 0;
205
+ var j = this.u5q(0, i + 1 | 0);
206
+ list.c2(j, list.c2(i, list.o(j)));
207
+ }
208
+ while (1 <= inductionVariable);
209
+ return list;
210
+ }
211
+ initMetadataForInterface(CustomRandom, 'CustomRandom');
212
+ initMetadataForClass(SecureRandom_0, 'SecureRandom', SecureRandom_0, VOID, [CustomRandom]);
213
+ initMetadataForObject(HttpFactory, 'HttpFactory');
50
214
  //endregion
215
+ function Companion() {
216
+ this.t5i_1 = 100001;
217
+ }
218
+ var Companion_instance_0;
219
+ function Companion_getInstance_1() {
220
+ return Companion_instance_0;
221
+ }
222
+ function RandomException(code, message, cause) {
223
+ code = code === VOID ? null : code;
224
+ cause = cause === VOID ? null : cause;
225
+ RuntimeException_init_$Init$(message, cause, this);
226
+ captureStack(this, RandomException);
227
+ this.u5i_1 = code;
228
+ }
229
+ function CardDecksRequestUserData(id, count) {
230
+ this.id = id;
231
+ this.count = count;
232
+ }
233
+ protoOf(CardDecksRequestUserData).o5h = function () {
234
+ return this.id;
235
+ };
236
+ protoOf(CardDecksRequestUserData).v5i = function () {
237
+ return this.count;
238
+ };
239
+ protoOf(CardDecksRequestUserData).me = function () {
240
+ return this.id;
241
+ };
242
+ protoOf(CardDecksRequestUserData).ne = function () {
243
+ return this.count;
244
+ };
245
+ protoOf(CardDecksRequestUserData).w5i = function (id, count) {
246
+ return new CardDecksRequestUserData(id, count);
247
+ };
248
+ protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
249
+ id = id === VOID ? this.id : id;
250
+ count = count === VOID ? this.count : count;
251
+ return this.w5i(id, count);
252
+ };
253
+ protoOf(CardDecksRequestUserData).toString = function () {
254
+ return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
255
+ };
256
+ protoOf(CardDecksRequestUserData).hashCode = function () {
257
+ var result = getStringHashCode(this.id);
258
+ result = imul(result, 31) + this.count | 0;
259
+ return result;
260
+ };
261
+ protoOf(CardDecksRequestUserData).equals = function (other) {
262
+ if (this === other)
263
+ return true;
264
+ if (!(other instanceof CardDecksRequestUserData))
265
+ return false;
266
+ var tmp0_other_with_cast = other instanceof CardDecksRequestUserData ? other : THROW_CCE();
267
+ if (!(this.id === tmp0_other_with_cast.id))
268
+ return false;
269
+ if (!(this.count === tmp0_other_with_cast.count))
270
+ return false;
271
+ return true;
272
+ };
51
273
  function CardDeckRequestUserData(players, gameId) {
52
- this.u2s_1 = players;
53
- this.v2s_1 = gameId;
274
+ this.players = players;
275
+ this.gameId = gameId;
54
276
  }
277
+ protoOf(CardDeckRequestUserData).x5i = function () {
278
+ return this.players;
279
+ };
280
+ protoOf(CardDeckRequestUserData).y5i = function () {
281
+ return this.gameId;
282
+ };
283
+ protoOf(CardDeckRequestUserData).me = function () {
284
+ return this.players;
285
+ };
286
+ protoOf(CardDeckRequestUserData).ne = function () {
287
+ return this.gameId;
288
+ };
289
+ protoOf(CardDeckRequestUserData).z5i = function (players, gameId) {
290
+ return new CardDeckRequestUserData(players, gameId);
291
+ };
292
+ protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
293
+ players = players === VOID ? this.players : players;
294
+ gameId = gameId === VOID ? this.gameId : gameId;
295
+ return this.z5i(players, gameId);
296
+ };
55
297
  protoOf(CardDeckRequestUserData).toString = function () {
56
- return 'CardDeckRequestUserData(players=' + toString(this.u2s_1) + ', gameId=' + this.v2s_1 + ')';
298
+ return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
57
299
  };
58
300
  protoOf(CardDeckRequestUserData).hashCode = function () {
59
- var result = hashCode(this.u2s_1);
60
- result = imul(result, 31) + getStringHashCode(this.v2s_1) | 0;
301
+ var result = hashCode(this.players);
302
+ result = imul(result, 31) + getStringHashCode(this.gameId) | 0;
61
303
  return result;
62
304
  };
63
305
  protoOf(CardDeckRequestUserData).equals = function (other) {
@@ -66,22 +308,42 @@
66
308
  if (!(other instanceof CardDeckRequestUserData))
67
309
  return false;
68
310
  var tmp0_other_with_cast = other instanceof CardDeckRequestUserData ? other : THROW_CCE();
69
- if (!equals(this.u2s_1, tmp0_other_with_cast.u2s_1))
311
+ if (!equals(this.players, tmp0_other_with_cast.players))
70
312
  return false;
71
- if (!(this.v2s_1 === tmp0_other_with_cast.v2s_1))
313
+ if (!(this.gameId === tmp0_other_with_cast.gameId))
72
314
  return false;
73
315
  return true;
74
316
  };
75
317
  function UserInfoData(id, name) {
76
- this.w2s_1 = id;
77
- this.x2s_1 = name;
318
+ this.id = id;
319
+ this.name = name;
78
320
  }
321
+ protoOf(UserInfoData).o5h = function () {
322
+ return this.id;
323
+ };
324
+ protoOf(UserInfoData).p2 = function () {
325
+ return this.name;
326
+ };
327
+ protoOf(UserInfoData).me = function () {
328
+ return this.id;
329
+ };
330
+ protoOf(UserInfoData).ne = function () {
331
+ return this.name;
332
+ };
333
+ protoOf(UserInfoData).a5j = function (id, name) {
334
+ return new UserInfoData(id, name);
335
+ };
336
+ protoOf(UserInfoData).copy = function (id, name, $super) {
337
+ id = id === VOID ? this.id : id;
338
+ name = name === VOID ? this.name : name;
339
+ return this.a5j(id, name);
340
+ };
79
341
  protoOf(UserInfoData).toString = function () {
80
- return 'UserInfoData(id=' + this.w2s_1 + ', name=' + this.x2s_1 + ')';
342
+ return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
81
343
  };
82
344
  protoOf(UserInfoData).hashCode = function () {
83
- var result = getStringHashCode(this.w2s_1);
84
- result = imul(result, 31) + getStringHashCode(this.x2s_1) | 0;
345
+ var result = getStringHashCode(this.id);
346
+ result = imul(result, 31) + getStringHashCode(this.name) | 0;
85
347
  return result;
86
348
  };
87
349
  protoOf(UserInfoData).equals = function (other) {
@@ -90,62 +352,103 @@
90
352
  if (!(other instanceof UserInfoData))
91
353
  return false;
92
354
  var tmp0_other_with_cast = other instanceof UserInfoData ? other : THROW_CCE();
93
- if (!(this.w2s_1 === tmp0_other_with_cast.w2s_1))
355
+ if (!(this.id === tmp0_other_with_cast.id))
94
356
  return false;
95
- if (!(this.x2s_1 === tmp0_other_with_cast.x2s_1))
357
+ if (!(this.name === tmp0_other_with_cast.name))
96
358
  return false;
97
359
  return true;
98
360
  };
99
- function Companion() {
361
+ function CardDeckResult(cardDecks, responseText, id, signature) {
362
+ this.b5j_1 = cardDecks;
363
+ this.c5j_1 = responseText;
364
+ this.d5j_1 = id;
365
+ this.e5j_1 = signature;
366
+ }
367
+ protoOf(CardDeckResult).toString = function () {
368
+ return 'CardDeckResult(cardDecks=' + toString(this.b5j_1) + ', responseText=' + this.c5j_1 + ', id=' + this.d5j_1 + ', signature=' + this.e5j_1 + ')';
369
+ };
370
+ protoOf(CardDeckResult).hashCode = function () {
371
+ var result = hashCode(this.b5j_1);
372
+ result = imul(result, 31) + getStringHashCode(this.c5j_1) | 0;
373
+ result = imul(result, 31) + getStringHashCode(this.d5j_1) | 0;
374
+ result = imul(result, 31) + (this.e5j_1 == null ? 0 : getStringHashCode(this.e5j_1)) | 0;
375
+ return result;
376
+ };
377
+ protoOf(CardDeckResult).equals = function (other) {
378
+ if (this === other)
379
+ return true;
380
+ if (!(other instanceof CardDeckResult))
381
+ return false;
382
+ var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
383
+ if (!equals(this.b5j_1, tmp0_other_with_cast.b5j_1))
384
+ return false;
385
+ if (!(this.c5j_1 === tmp0_other_with_cast.c5j_1))
386
+ return false;
387
+ if (!(this.d5j_1 === tmp0_other_with_cast.d5j_1))
388
+ return false;
389
+ if (!(this.e5j_1 == tmp0_other_with_cast.e5j_1))
390
+ return false;
391
+ return true;
392
+ };
393
+ function Companion_0() {
100
394
  }
101
- protoOf(Companion).firstRound = function (signature, newCardDeckData, userData) {
102
- return new GameCardDecksRecord(signature, userData, listOf(newCardDeckData));
395
+ protoOf(Companion_0).firstRound = function (id, signature, newCardDeckData, userData) {
396
+ return new GameCardDecksRecord(id, signature, userData, listOf(newCardDeckData));
103
397
  };
104
- protoOf(Companion).newRound = function (gameCardDecksRecord, newCardDeckData) {
105
- return gameCardDecksRecord.copy(VOID, VOID, plus(gameCardDecksRecord.rounds, newCardDeckData));
398
+ protoOf(Companion_0).newRound = function (gameCardDecksRecord, newCardDeckData) {
399
+ return gameCardDecksRecord.copy(VOID, VOID, VOID, plus(gameCardDecksRecord.rounds, newCardDeckData));
106
400
  };
107
- var Companion_instance;
108
- function Companion_getInstance() {
109
- return Companion_instance;
401
+ var Companion_instance_1;
402
+ function Companion_getInstance_2() {
403
+ return Companion_instance_1;
110
404
  }
111
- function GameCardDecksRecord(signature, userData, rounds) {
405
+ function GameCardDecksRecord(id, signature, userData, rounds) {
112
406
  rounds = rounds === VOID ? emptyList() : rounds;
407
+ this.id = id;
113
408
  this.signature = signature;
114
409
  this.userData = userData;
115
410
  this.rounds = rounds;
116
411
  }
117
- protoOf(GameCardDecksRecord).y2s = function () {
412
+ protoOf(GameCardDecksRecord).o5h = function () {
413
+ return this.id;
414
+ };
415
+ protoOf(GameCardDecksRecord).f5j = function () {
118
416
  return this.signature;
119
417
  };
120
- protoOf(GameCardDecksRecord).z2s = function () {
418
+ protoOf(GameCardDecksRecord).g5j = function () {
121
419
  return this.userData;
122
420
  };
123
- protoOf(GameCardDecksRecord).a2t = function () {
421
+ protoOf(GameCardDecksRecord).h5j = function () {
124
422
  return this.rounds;
125
423
  };
126
- protoOf(GameCardDecksRecord).fe = function () {
424
+ protoOf(GameCardDecksRecord).me = function () {
425
+ return this.id;
426
+ };
427
+ protoOf(GameCardDecksRecord).ne = function () {
127
428
  return this.signature;
128
429
  };
129
- protoOf(GameCardDecksRecord).ge = function () {
430
+ protoOf(GameCardDecksRecord).fj = function () {
130
431
  return this.userData;
131
432
  };
132
- protoOf(GameCardDecksRecord).yi = function () {
433
+ protoOf(GameCardDecksRecord).i5j = function () {
133
434
  return this.rounds;
134
435
  };
135
- protoOf(GameCardDecksRecord).b2t = function (signature, userData, rounds) {
136
- return new GameCardDecksRecord(signature, userData, rounds);
436
+ protoOf(GameCardDecksRecord).j5j = function (id, signature, userData, rounds) {
437
+ return new GameCardDecksRecord(id, signature, userData, rounds);
137
438
  };
138
- protoOf(GameCardDecksRecord).copy = function (signature, userData, rounds, $super) {
439
+ protoOf(GameCardDecksRecord).copy = function (id, signature, userData, rounds, $super) {
440
+ id = id === VOID ? this.id : id;
139
441
  signature = signature === VOID ? this.signature : signature;
140
442
  userData = userData === VOID ? this.userData : userData;
141
443
  rounds = rounds === VOID ? this.rounds : rounds;
142
- return this.b2t(signature, userData, rounds);
444
+ return this.j5j(id, signature, userData, rounds);
143
445
  };
144
446
  protoOf(GameCardDecksRecord).toString = function () {
145
- return 'GameCardDecksRecord(signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
447
+ return 'GameCardDecksRecord(id=' + this.id + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
146
448
  };
147
449
  protoOf(GameCardDecksRecord).hashCode = function () {
148
- var result = getStringHashCode(this.signature);
450
+ var result = getStringHashCode(this.id);
451
+ result = imul(result, 31) + (this.signature == null ? 0 : getStringHashCode(this.signature)) | 0;
149
452
  result = imul(result, 31) + this.userData.hashCode() | 0;
150
453
  result = imul(result, 31) + hashCode(this.rounds) | 0;
151
454
  return result;
@@ -156,7 +459,9 @@
156
459
  if (!(other instanceof GameCardDecksRecord))
157
460
  return false;
158
461
  var tmp0_other_with_cast = other instanceof GameCardDecksRecord ? other : THROW_CCE();
159
- if (!(this.signature === tmp0_other_with_cast.signature))
462
+ if (!(this.id === tmp0_other_with_cast.id))
463
+ return false;
464
+ if (!(this.signature == tmp0_other_with_cast.signature))
160
465
  return false;
161
466
  if (!this.userData.equals(tmp0_other_with_cast.userData))
162
467
  return false;
@@ -168,25 +473,25 @@
168
473
  this.cardDeckIndex = cardDeckIndex;
169
474
  this.cards = cards;
170
475
  }
171
- protoOf(GameCardDeckData).c2t = function () {
476
+ protoOf(GameCardDeckData).k5j = function () {
172
477
  return this.cardDeckIndex;
173
478
  };
174
- protoOf(GameCardDeckData).d2t = function () {
479
+ protoOf(GameCardDeckData).l5j = function () {
175
480
  return this.cards;
176
481
  };
177
- protoOf(GameCardDeckData).fe = function () {
482
+ protoOf(GameCardDeckData).me = function () {
178
483
  return this.cardDeckIndex;
179
484
  };
180
- protoOf(GameCardDeckData).ge = function () {
485
+ protoOf(GameCardDeckData).ne = function () {
181
486
  return this.cards;
182
487
  };
183
- protoOf(GameCardDeckData).e2t = function (cardDeckIndex, cards) {
488
+ protoOf(GameCardDeckData).m5j = function (cardDeckIndex, cards) {
184
489
  return new GameCardDeckData(cardDeckIndex, cards);
185
490
  };
186
491
  protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
187
492
  cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
188
493
  cards = cards === VOID ? this.cards : cards;
189
- return this.e2t(cardDeckIndex, cards);
494
+ return this.m5j(cardDeckIndex, cards);
190
495
  };
191
496
  protoOf(GameCardDeckData).toString = function () {
192
497
  return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
@@ -208,6 +513,54 @@
208
513
  return false;
209
514
  return true;
210
515
  };
516
+ function HttpConfig(baseUrl, timeoutMillis) {
517
+ timeoutMillis = timeoutMillis === VOID ? 30000 : timeoutMillis;
518
+ this.baseUrl = baseUrl;
519
+ this.timeoutMillis = timeoutMillis;
520
+ }
521
+ protoOf(HttpConfig).n5j = function () {
522
+ return this.baseUrl;
523
+ };
524
+ protoOf(HttpConfig).o5j = function () {
525
+ return this.timeoutMillis;
526
+ };
527
+ protoOf(HttpConfig).me = function () {
528
+ return this.baseUrl;
529
+ };
530
+ protoOf(HttpConfig).ne = function () {
531
+ return this.timeoutMillis;
532
+ };
533
+ protoOf(HttpConfig).w5i = function (baseUrl, timeoutMillis) {
534
+ return new HttpConfig(baseUrl, timeoutMillis);
535
+ };
536
+ protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
537
+ baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
538
+ timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
539
+ return this.w5i(baseUrl, timeoutMillis);
540
+ };
541
+ protoOf(HttpConfig).toString = function () {
542
+ return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
543
+ };
544
+ protoOf(HttpConfig).hashCode = function () {
545
+ var result = getStringHashCode(this.baseUrl);
546
+ result = imul(result, 31) + this.timeoutMillis | 0;
547
+ return result;
548
+ };
549
+ protoOf(HttpConfig).equals = function (other) {
550
+ if (this === other)
551
+ return true;
552
+ if (!(other instanceof HttpConfig))
553
+ return false;
554
+ var tmp0_other_with_cast = other instanceof HttpConfig ? other : THROW_CCE();
555
+ if (!(this.baseUrl === tmp0_other_with_cast.baseUrl))
556
+ return false;
557
+ if (!(this.timeoutMillis === tmp0_other_with_cast.timeoutMillis))
558
+ return false;
559
+ return true;
560
+ };
561
+ function mapToParams(_this__u8e3s4) {
562
+ return new HttpParams(_this__u8e3s4.baseUrl, toLong(_this__u8e3s4.timeoutMillis));
563
+ }
211
564
  function RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig) {
212
565
  apiKey = apiKey === VOID ? '68b344df-e962-4bf7-b77e-eea466b7f90a' : apiKey;
213
566
  poolSize = poolSize === VOID ? 100 : poolSize;
@@ -218,31 +571,31 @@
218
571
  this.thresholdForUsedPool = thresholdForUsedPool;
219
572
  this.httpConfig = httpConfig;
220
573
  }
221
- protoOf(RandomOrgConfig).f2t = function () {
574
+ protoOf(RandomOrgConfig).p5j = function () {
222
575
  return this.apiKey;
223
576
  };
224
- protoOf(RandomOrgConfig).g2t = function () {
577
+ protoOf(RandomOrgConfig).q5j = function () {
225
578
  return this.poolSize;
226
579
  };
227
- protoOf(RandomOrgConfig).h2t = function () {
580
+ protoOf(RandomOrgConfig).r5j = function () {
228
581
  return this.thresholdForUsedPool;
229
582
  };
230
- protoOf(RandomOrgConfig).i2t = function () {
583
+ protoOf(RandomOrgConfig).s5j = function () {
231
584
  return this.httpConfig;
232
585
  };
233
- protoOf(RandomOrgConfig).fe = function () {
586
+ protoOf(RandomOrgConfig).me = function () {
234
587
  return this.apiKey;
235
588
  };
236
- protoOf(RandomOrgConfig).ge = function () {
589
+ protoOf(RandomOrgConfig).ne = function () {
237
590
  return this.poolSize;
238
591
  };
239
- protoOf(RandomOrgConfig).yi = function () {
592
+ protoOf(RandomOrgConfig).fj = function () {
240
593
  return this.thresholdForUsedPool;
241
594
  };
242
- protoOf(RandomOrgConfig).j2t = function () {
595
+ protoOf(RandomOrgConfig).i5j = function () {
243
596
  return this.httpConfig;
244
597
  };
245
- protoOf(RandomOrgConfig).k2t = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
598
+ protoOf(RandomOrgConfig).t5j = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
246
599
  return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
247
600
  };
248
601
  protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
@@ -250,7 +603,7 @@
250
603
  poolSize = poolSize === VOID ? this.poolSize : poolSize;
251
604
  thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
252
605
  httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
253
- return this.k2t(apiKey, poolSize, thresholdForUsedPool, httpConfig);
606
+ return this.t5j(apiKey, poolSize, thresholdForUsedPool, httpConfig);
254
607
  };
255
608
  protoOf(RandomOrgConfig).toString = function () {
256
609
  return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
@@ -278,95 +631,2087 @@
278
631
  return false;
279
632
  return true;
280
633
  };
634
+ function Companion_1() {
635
+ }
636
+ var Companion_instance_2;
637
+ function Companion_getInstance_3() {
638
+ return Companion_instance_2;
639
+ }
640
+ function $serializer() {
641
+ $serializer_instance = this;
642
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
643
+ tmp0_serialDesc.w4c('jsonrpc', false);
644
+ tmp0_serialDesc.w4c('error', false);
645
+ this.u5j_1 = tmp0_serialDesc;
646
+ }
647
+ protoOf($serializer).v5j = function (encoder, value) {
648
+ var tmp0_desc = this.u5j_1;
649
+ var tmp1_output = encoder.k45(tmp0_desc);
650
+ tmp1_output.y46(tmp0_desc, 0, value.w5j_1);
651
+ tmp1_output.c47(tmp0_desc, 1, $serializer_getInstance_0(), value.x5j_1);
652
+ tmp1_output.l45(tmp0_desc);
653
+ };
654
+ protoOf($serializer).y41 = function (encoder, value) {
655
+ return this.v5j(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
656
+ };
657
+ protoOf($serializer).z41 = function (decoder) {
658
+ var tmp0_desc = this.u5j_1;
659
+ var tmp1_flag = true;
660
+ var tmp2_index = 0;
661
+ var tmp3_bitMask0 = 0;
662
+ var tmp4_local0 = null;
663
+ var tmp5_local1 = null;
664
+ var tmp6_input = decoder.k45(tmp0_desc);
665
+ if (tmp6_input.z45()) {
666
+ tmp4_local0 = tmp6_input.u45(tmp0_desc, 0);
667
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
668
+ tmp5_local1 = tmp6_input.y45(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
669
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
670
+ } else
671
+ while (tmp1_flag) {
672
+ tmp2_index = tmp6_input.a46(tmp0_desc);
673
+ switch (tmp2_index) {
674
+ case -1:
675
+ tmp1_flag = false;
676
+ break;
677
+ case 0:
678
+ tmp4_local0 = tmp6_input.u45(tmp0_desc, 0);
679
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
680
+ break;
681
+ case 1:
682
+ tmp5_local1 = tmp6_input.y45(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
683
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
684
+ break;
685
+ default:
686
+ throw UnknownFieldException_init_$Create$(tmp2_index);
687
+ }
688
+ }
689
+ tmp6_input.l45(tmp0_desc);
690
+ return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
691
+ };
692
+ protoOf($serializer).x41 = function () {
693
+ return this.u5j_1;
694
+ };
695
+ protoOf($serializer).l4d = function () {
696
+ // Inline function 'kotlin.arrayOf' call
697
+ // Inline function 'kotlin.js.unsafeCast' call
698
+ // Inline function 'kotlin.js.asDynamic' call
699
+ return [StringSerializer_getInstance(), get_nullable($serializer_getInstance_0())];
700
+ };
701
+ var $serializer_instance;
702
+ function $serializer_getInstance() {
703
+ if ($serializer_instance == null)
704
+ new $serializer();
705
+ return $serializer_instance;
706
+ }
707
+ function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
708
+ if (!(3 === (3 & seen0))) {
709
+ throwMissingFieldException(seen0, 3, $serializer_getInstance().u5j_1);
710
+ }
711
+ $this.w5j_1 = jsonrpc;
712
+ $this.x5j_1 = error;
713
+ return $this;
714
+ }
715
+ function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
716
+ return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
717
+ }
718
+ function ErrorResponseDto(jsonrpc, error) {
719
+ this.w5j_1 = jsonrpc;
720
+ this.x5j_1 = error;
721
+ }
722
+ protoOf(ErrorResponseDto).toString = function () {
723
+ return 'ErrorResponseDto(jsonrpc=' + this.w5j_1 + ', error=' + toString_0(this.x5j_1) + ')';
724
+ };
725
+ protoOf(ErrorResponseDto).hashCode = function () {
726
+ var result = getStringHashCode(this.w5j_1);
727
+ result = imul(result, 31) + (this.x5j_1 == null ? 0 : this.x5j_1.hashCode()) | 0;
728
+ return result;
729
+ };
730
+ protoOf(ErrorResponseDto).equals = function (other) {
731
+ if (this === other)
732
+ return true;
733
+ if (!(other instanceof ErrorResponseDto))
734
+ return false;
735
+ var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
736
+ if (!(this.w5j_1 === tmp0_other_with_cast.w5j_1))
737
+ return false;
738
+ if (!equals(this.x5j_1, tmp0_other_with_cast.x5j_1))
739
+ return false;
740
+ return true;
741
+ };
742
+ function $serializer_0() {
743
+ $serializer_instance_0 = this;
744
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
745
+ tmp0_serialDesc.w4c('code', false);
746
+ tmp0_serialDesc.w4c('message', false);
747
+ this.y5j_1 = tmp0_serialDesc;
748
+ }
749
+ protoOf($serializer_0).z5j = function (encoder, value) {
750
+ var tmp0_desc = this.y5j_1;
751
+ var tmp1_output = encoder.k45(tmp0_desc);
752
+ tmp1_output.c47(tmp0_desc, 0, IntSerializer_getInstance(), value.a5k_1);
753
+ tmp1_output.c47(tmp0_desc, 1, StringSerializer_getInstance(), value.b5k_1);
754
+ tmp1_output.l45(tmp0_desc);
755
+ };
756
+ protoOf($serializer_0).y41 = function (encoder, value) {
757
+ return this.z5j(encoder, value instanceof ErrorDto ? value : THROW_CCE());
758
+ };
759
+ protoOf($serializer_0).z41 = function (decoder) {
760
+ var tmp0_desc = this.y5j_1;
761
+ var tmp1_flag = true;
762
+ var tmp2_index = 0;
763
+ var tmp3_bitMask0 = 0;
764
+ var tmp4_local0 = null;
765
+ var tmp5_local1 = null;
766
+ var tmp6_input = decoder.k45(tmp0_desc);
767
+ if (tmp6_input.z45()) {
768
+ tmp4_local0 = tmp6_input.y45(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
769
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
770
+ tmp5_local1 = tmp6_input.y45(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
771
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
772
+ } else
773
+ while (tmp1_flag) {
774
+ tmp2_index = tmp6_input.a46(tmp0_desc);
775
+ switch (tmp2_index) {
776
+ case -1:
777
+ tmp1_flag = false;
778
+ break;
779
+ case 0:
780
+ tmp4_local0 = tmp6_input.y45(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
781
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
782
+ break;
783
+ case 1:
784
+ tmp5_local1 = tmp6_input.y45(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
785
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
786
+ break;
787
+ default:
788
+ throw UnknownFieldException_init_$Create$(tmp2_index);
789
+ }
790
+ }
791
+ tmp6_input.l45(tmp0_desc);
792
+ return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
793
+ };
794
+ protoOf($serializer_0).x41 = function () {
795
+ return this.y5j_1;
796
+ };
797
+ protoOf($serializer_0).l4d = function () {
798
+ // Inline function 'kotlin.arrayOf' call
799
+ // Inline function 'kotlin.js.unsafeCast' call
800
+ // Inline function 'kotlin.js.asDynamic' call
801
+ return [get_nullable(IntSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
802
+ };
803
+ var $serializer_instance_0;
804
+ function $serializer_getInstance_0() {
805
+ if ($serializer_instance_0 == null)
806
+ new $serializer_0();
807
+ return $serializer_instance_0;
808
+ }
809
+ function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
810
+ if (!(3 === (3 & seen0))) {
811
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_0().y5j_1);
812
+ }
813
+ $this.a5k_1 = code;
814
+ $this.b5k_1 = message;
815
+ return $this;
816
+ }
817
+ function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
818
+ return ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, objectCreate(protoOf(ErrorDto)));
819
+ }
820
+ function ErrorDto() {
821
+ }
822
+ protoOf(ErrorDto).toString = function () {
823
+ return 'ErrorDto(code=' + this.a5k_1 + ', message=' + this.b5k_1 + ')';
824
+ };
825
+ protoOf(ErrorDto).hashCode = function () {
826
+ var result = this.a5k_1 == null ? 0 : this.a5k_1;
827
+ result = imul(result, 31) + (this.b5k_1 == null ? 0 : getStringHashCode(this.b5k_1)) | 0;
828
+ return result;
829
+ };
830
+ protoOf(ErrorDto).equals = function (other) {
831
+ if (this === other)
832
+ return true;
833
+ if (!(other instanceof ErrorDto))
834
+ return false;
835
+ var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
836
+ if (!(this.a5k_1 == tmp0_other_with_cast.a5k_1))
837
+ return false;
838
+ if (!(this.b5k_1 == tmp0_other_with_cast.b5k_1))
839
+ return false;
840
+ return true;
841
+ };
842
+ function $serializer_init_$Init$(typeSerial0, $this) {
843
+ $serializer_1.call($this);
844
+ $this.d5k_1 = typeSerial0;
845
+ return $this;
846
+ }
847
+ function $serializer_init_$Create$(typeSerial0) {
848
+ return $serializer_init_$Init$(typeSerial0, objectCreate(protoOf($serializer_1)));
849
+ }
850
+ function Companion_2() {
851
+ Companion_instance_3 = this;
852
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
853
+ tmp0_serialDesc.w4c('jsonrpc', false);
854
+ tmp0_serialDesc.w4c('method', false);
855
+ tmp0_serialDesc.w4c('params', false);
856
+ tmp0_serialDesc.w4c('id', false);
857
+ this.e5k_1 = tmp0_serialDesc;
858
+ }
859
+ protoOf(Companion_2).f5k = function (typeSerial0) {
860
+ return $serializer_init_$Create$(typeSerial0);
861
+ };
862
+ protoOf(Companion_2).w4d = function (typeParamsSerializers) {
863
+ return this.f5k(typeParamsSerializers[0]);
864
+ };
865
+ var Companion_instance_3;
866
+ function Companion_getInstance_4() {
867
+ if (Companion_instance_3 == null)
868
+ new Companion_2();
869
+ return Companion_instance_3;
870
+ }
871
+ function $serializer_1() {
872
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
873
+ tmp0_serialDesc.w4c('jsonrpc', false);
874
+ tmp0_serialDesc.w4c('method', false);
875
+ tmp0_serialDesc.w4c('params', false);
876
+ tmp0_serialDesc.w4c('id', false);
877
+ this.c5k_1 = tmp0_serialDesc;
878
+ }
879
+ protoOf($serializer_1).g5k = function (encoder, value) {
880
+ var tmp0_desc = this.c5k_1;
881
+ var tmp1_output = encoder.k45(tmp0_desc);
882
+ tmp1_output.y46(tmp0_desc, 0, value.h5k_1);
883
+ tmp1_output.y46(tmp0_desc, 1, value.i5k_1);
884
+ tmp1_output.a47(tmp0_desc, 2, this.d5k_1, value.j5k_1);
885
+ tmp1_output.y46(tmp0_desc, 3, value.k5k_1);
886
+ tmp1_output.l45(tmp0_desc);
887
+ };
888
+ protoOf($serializer_1).y41 = function (encoder, value) {
889
+ return this.g5k(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
890
+ };
891
+ protoOf($serializer_1).z41 = function (decoder) {
892
+ var tmp0_desc = this.c5k_1;
893
+ var tmp1_flag = true;
894
+ var tmp2_index = 0;
895
+ var tmp3_bitMask0 = 0;
896
+ var tmp4_local0 = null;
897
+ var tmp5_local1 = null;
898
+ var tmp6_local2 = null;
899
+ var tmp7_local3 = null;
900
+ var tmp8_input = decoder.k45(tmp0_desc);
901
+ if (tmp8_input.z45()) {
902
+ tmp4_local0 = tmp8_input.u45(tmp0_desc, 0);
903
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
904
+ tmp5_local1 = tmp8_input.u45(tmp0_desc, 1);
905
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
906
+ tmp6_local2 = tmp8_input.w45(tmp0_desc, 2, this.d5k_1, tmp6_local2);
907
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
908
+ tmp7_local3 = tmp8_input.u45(tmp0_desc, 3);
909
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
910
+ } else
911
+ while (tmp1_flag) {
912
+ tmp2_index = tmp8_input.a46(tmp0_desc);
913
+ switch (tmp2_index) {
914
+ case -1:
915
+ tmp1_flag = false;
916
+ break;
917
+ case 0:
918
+ tmp4_local0 = tmp8_input.u45(tmp0_desc, 0);
919
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
920
+ break;
921
+ case 1:
922
+ tmp5_local1 = tmp8_input.u45(tmp0_desc, 1);
923
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
924
+ break;
925
+ case 2:
926
+ tmp6_local2 = tmp8_input.w45(tmp0_desc, 2, this.d5k_1, tmp6_local2);
927
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
928
+ break;
929
+ case 3:
930
+ tmp7_local3 = tmp8_input.u45(tmp0_desc, 3);
931
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
932
+ break;
933
+ default:
934
+ throw UnknownFieldException_init_$Create$(tmp2_index);
935
+ }
936
+ }
937
+ tmp8_input.l45(tmp0_desc);
938
+ return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
939
+ };
940
+ protoOf($serializer_1).x41 = function () {
941
+ return this.c5k_1;
942
+ };
943
+ protoOf($serializer_1).l4d = function () {
944
+ // Inline function 'kotlin.arrayOf' call
945
+ // Inline function 'kotlin.js.unsafeCast' call
946
+ // Inline function 'kotlin.js.asDynamic' call
947
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.d5k_1, StringSerializer_getInstance()];
948
+ };
949
+ protoOf($serializer_1).m4d = function () {
950
+ // Inline function 'kotlin.arrayOf' call
951
+ // Inline function 'kotlin.js.unsafeCast' call
952
+ // Inline function 'kotlin.js.asDynamic' call
953
+ return [this.d5k_1];
954
+ };
955
+ function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
956
+ if (!(15 === (15 & seen0))) {
957
+ throwMissingFieldException(seen0, 15, Companion_getInstance_4().e5k_1);
958
+ }
959
+ $this.h5k_1 = jsonrpc;
960
+ $this.i5k_1 = method;
961
+ $this.j5k_1 = params;
962
+ $this.k5k_1 = id;
963
+ return $this;
964
+ }
965
+ function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
966
+ return RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, objectCreate(protoOf(RandomRequestDto)));
967
+ }
968
+ function RandomRequestDto(jsonrpc, method, params, id) {
969
+ Companion_getInstance_4();
970
+ this.h5k_1 = jsonrpc;
971
+ this.i5k_1 = method;
972
+ this.j5k_1 = params;
973
+ this.k5k_1 = id;
974
+ }
975
+ protoOf(RandomRequestDto).toString = function () {
976
+ return 'RandomRequestDto(jsonrpc=' + this.h5k_1 + ', method=' + this.i5k_1 + ', params=' + toString(this.j5k_1) + ', id=' + this.k5k_1 + ')';
977
+ };
978
+ protoOf(RandomRequestDto).hashCode = function () {
979
+ var result = getStringHashCode(this.h5k_1);
980
+ result = imul(result, 31) + getStringHashCode(this.i5k_1) | 0;
981
+ result = imul(result, 31) + hashCode(this.j5k_1) | 0;
982
+ result = imul(result, 31) + getStringHashCode(this.k5k_1) | 0;
983
+ return result;
984
+ };
985
+ protoOf(RandomRequestDto).equals = function (other) {
986
+ if (this === other)
987
+ return true;
988
+ if (!(other instanceof RandomRequestDto))
989
+ return false;
990
+ var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
991
+ if (!(this.h5k_1 === tmp0_other_with_cast.h5k_1))
992
+ return false;
993
+ if (!(this.i5k_1 === tmp0_other_with_cast.i5k_1))
994
+ return false;
995
+ if (!equals(this.j5k_1, tmp0_other_with_cast.j5k_1))
996
+ return false;
997
+ if (!(this.k5k_1 === tmp0_other_with_cast.k5k_1))
998
+ return false;
999
+ return true;
1000
+ };
1001
+ function Companion_3() {
1002
+ Companion_instance_4 = this;
1003
+ var tmp = this;
1004
+ // Inline function 'kotlin.arrayOf' call
1005
+ // Inline function 'kotlin.js.unsafeCast' call
1006
+ // Inline function 'kotlin.js.asDynamic' call
1007
+ tmp.l5k_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
1008
+ }
1009
+ var Companion_instance_4;
1010
+ function Companion_getInstance_5() {
1011
+ if (Companion_instance_4 == null)
1012
+ new Companion_3();
1013
+ return Companion_instance_4;
1014
+ }
1015
+ function $serializer_2() {
1016
+ $serializer_instance_1 = this;
1017
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
1018
+ tmp0_serialDesc.w4c('apiKey', false);
1019
+ tmp0_serialDesc.w4c('n', false);
1020
+ tmp0_serialDesc.w4c('length', false);
1021
+ tmp0_serialDesc.w4c('min', false);
1022
+ tmp0_serialDesc.w4c('max', false);
1023
+ tmp0_serialDesc.w4c('replacement', false);
1024
+ tmp0_serialDesc.w4c('ticketId', false);
1025
+ tmp0_serialDesc.w4c('userData', false);
1026
+ this.m5k_1 = tmp0_serialDesc;
1027
+ }
1028
+ protoOf($serializer_2).n5k = function (encoder, value) {
1029
+ var tmp0_desc = this.m5k_1;
1030
+ var tmp1_output = encoder.k45(tmp0_desc);
1031
+ var tmp2_cached = Companion_getInstance_5().l5k_1;
1032
+ tmp1_output.y46(tmp0_desc, 0, value.o5k_1);
1033
+ tmp1_output.t46(tmp0_desc, 1, value.p5k_1);
1034
+ tmp1_output.a47(tmp0_desc, 2, tmp2_cached[2], value.q5k_1);
1035
+ tmp1_output.t46(tmp0_desc, 3, value.r5k_1);
1036
+ tmp1_output.t46(tmp0_desc, 4, value.s5k_1);
1037
+ tmp1_output.q46(tmp0_desc, 5, value.t5k_1);
1038
+ tmp1_output.c47(tmp0_desc, 6, StringSerializer_getInstance(), value.u5k_1);
1039
+ tmp1_output.c47(tmp0_desc, 7, $serializer_getInstance_2(), value.v5k_1);
1040
+ tmp1_output.l45(tmp0_desc);
1041
+ };
1042
+ protoOf($serializer_2).y41 = function (encoder, value) {
1043
+ return this.n5k(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
1044
+ };
1045
+ protoOf($serializer_2).z41 = function (decoder) {
1046
+ var tmp0_desc = this.m5k_1;
1047
+ var tmp1_flag = true;
1048
+ var tmp2_index = 0;
1049
+ var tmp3_bitMask0 = 0;
1050
+ var tmp4_local0 = null;
1051
+ var tmp5_local1 = 0;
1052
+ var tmp6_local2 = null;
1053
+ var tmp7_local3 = 0;
1054
+ var tmp8_local4 = 0;
1055
+ var tmp9_local5 = false;
1056
+ var tmp10_local6 = null;
1057
+ var tmp11_local7 = null;
1058
+ var tmp12_input = decoder.k45(tmp0_desc);
1059
+ var tmp13_cached = Companion_getInstance_5().l5k_1;
1060
+ if (tmp12_input.z45()) {
1061
+ tmp4_local0 = tmp12_input.u45(tmp0_desc, 0);
1062
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1063
+ tmp5_local1 = tmp12_input.p45(tmp0_desc, 1);
1064
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1065
+ tmp6_local2 = tmp12_input.w45(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
1066
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1067
+ tmp7_local3 = tmp12_input.p45(tmp0_desc, 3);
1068
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1069
+ tmp8_local4 = tmp12_input.p45(tmp0_desc, 4);
1070
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1071
+ tmp9_local5 = tmp12_input.m45(tmp0_desc, 5);
1072
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1073
+ tmp10_local6 = tmp12_input.y45(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
1074
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
1075
+ tmp11_local7 = tmp12_input.y45(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
1076
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
1077
+ } else
1078
+ while (tmp1_flag) {
1079
+ tmp2_index = tmp12_input.a46(tmp0_desc);
1080
+ switch (tmp2_index) {
1081
+ case -1:
1082
+ tmp1_flag = false;
1083
+ break;
1084
+ case 0:
1085
+ tmp4_local0 = tmp12_input.u45(tmp0_desc, 0);
1086
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1087
+ break;
1088
+ case 1:
1089
+ tmp5_local1 = tmp12_input.p45(tmp0_desc, 1);
1090
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1091
+ break;
1092
+ case 2:
1093
+ tmp6_local2 = tmp12_input.w45(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
1094
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1095
+ break;
1096
+ case 3:
1097
+ tmp7_local3 = tmp12_input.p45(tmp0_desc, 3);
1098
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1099
+ break;
1100
+ case 4:
1101
+ tmp8_local4 = tmp12_input.p45(tmp0_desc, 4);
1102
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1103
+ break;
1104
+ case 5:
1105
+ tmp9_local5 = tmp12_input.m45(tmp0_desc, 5);
1106
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1107
+ break;
1108
+ case 6:
1109
+ tmp10_local6 = tmp12_input.y45(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
1110
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
1111
+ break;
1112
+ case 7:
1113
+ tmp11_local7 = tmp12_input.y45(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
1114
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
1115
+ break;
1116
+ default:
1117
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1118
+ }
1119
+ }
1120
+ tmp12_input.l45(tmp0_desc);
1121
+ return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
1122
+ };
1123
+ protoOf($serializer_2).x41 = function () {
1124
+ return this.m5k_1;
1125
+ };
1126
+ protoOf($serializer_2).l4d = function () {
1127
+ var tmp0_cached = Companion_getInstance_5().l5k_1;
1128
+ // Inline function 'kotlin.arrayOf' call
1129
+ // Inline function 'kotlin.js.unsafeCast' call
1130
+ // Inline function 'kotlin.js.asDynamic' call
1131
+ return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2], IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
1132
+ };
1133
+ var $serializer_instance_1;
1134
+ function $serializer_getInstance_1() {
1135
+ if ($serializer_instance_1 == null)
1136
+ new $serializer_2();
1137
+ return $serializer_instance_1;
1138
+ }
1139
+ function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
1140
+ if (!(255 === (255 & seen0))) {
1141
+ throwMissingFieldException(seen0, 255, $serializer_getInstance_1().m5k_1);
1142
+ }
1143
+ $this.o5k_1 = apiKey;
1144
+ $this.p5k_1 = n;
1145
+ $this.q5k_1 = length;
1146
+ $this.r5k_1 = min;
1147
+ $this.s5k_1 = max;
1148
+ $this.t5k_1 = replacement;
1149
+ $this.u5k_1 = ticketId;
1150
+ $this.v5k_1 = userData;
1151
+ return $this;
1152
+ }
1153
+ function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
1154
+ return RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, objectCreate(protoOf(RandomIntegerSequencesParamsDto)));
1155
+ }
1156
+ function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
1157
+ Companion_getInstance_5();
1158
+ this.o5k_1 = apiKey;
1159
+ this.p5k_1 = n;
1160
+ this.q5k_1 = length;
1161
+ this.r5k_1 = min;
1162
+ this.s5k_1 = max;
1163
+ this.t5k_1 = replacement;
1164
+ this.u5k_1 = ticketId;
1165
+ this.v5k_1 = userData;
1166
+ }
1167
+ protoOf(RandomIntegerSequencesParamsDto).toString = function () {
1168
+ return 'RandomIntegerSequencesParamsDto(apiKey=' + this.o5k_1 + ', n=' + this.p5k_1 + ', length=' + toString(this.q5k_1) + ', min=' + this.r5k_1 + ', max=' + this.s5k_1 + ', replacement=' + this.t5k_1 + ', ticketId=' + this.u5k_1 + ', userData=' + toString_0(this.v5k_1) + ')';
1169
+ };
1170
+ protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
1171
+ var result = getStringHashCode(this.o5k_1);
1172
+ result = imul(result, 31) + this.p5k_1 | 0;
1173
+ result = imul(result, 31) + hashCode(this.q5k_1) | 0;
1174
+ result = imul(result, 31) + this.r5k_1 | 0;
1175
+ result = imul(result, 31) + this.s5k_1 | 0;
1176
+ result = imul(result, 31) + getBooleanHashCode(this.t5k_1) | 0;
1177
+ result = imul(result, 31) + (this.u5k_1 == null ? 0 : getStringHashCode(this.u5k_1)) | 0;
1178
+ result = imul(result, 31) + (this.v5k_1 == null ? 0 : this.v5k_1.hashCode()) | 0;
1179
+ return result;
1180
+ };
1181
+ protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
1182
+ if (this === other)
1183
+ return true;
1184
+ if (!(other instanceof RandomIntegerSequencesParamsDto))
1185
+ return false;
1186
+ var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
1187
+ if (!(this.o5k_1 === tmp0_other_with_cast.o5k_1))
1188
+ return false;
1189
+ if (!(this.p5k_1 === tmp0_other_with_cast.p5k_1))
1190
+ return false;
1191
+ if (!equals(this.q5k_1, tmp0_other_with_cast.q5k_1))
1192
+ return false;
1193
+ if (!(this.r5k_1 === tmp0_other_with_cast.r5k_1))
1194
+ return false;
1195
+ if (!(this.s5k_1 === tmp0_other_with_cast.s5k_1))
1196
+ return false;
1197
+ if (!(this.t5k_1 === tmp0_other_with_cast.t5k_1))
1198
+ return false;
1199
+ if (!(this.u5k_1 == tmp0_other_with_cast.u5k_1))
1200
+ return false;
1201
+ if (!equals(this.v5k_1, tmp0_other_with_cast.v5k_1))
1202
+ return false;
1203
+ return true;
1204
+ };
1205
+ function Companion_4() {
1206
+ }
1207
+ var Companion_instance_5;
1208
+ function Companion_getInstance_6() {
1209
+ return Companion_instance_5;
1210
+ }
1211
+ function $serializer_3() {
1212
+ $serializer_instance_2 = this;
1213
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
1214
+ tmp0_serialDesc.w4c('id', false);
1215
+ tmp0_serialDesc.w4c('count', false);
1216
+ this.w5k_1 = tmp0_serialDesc;
1217
+ }
1218
+ protoOf($serializer_3).x5k = function (encoder, value) {
1219
+ var tmp0_desc = this.w5k_1;
1220
+ var tmp1_output = encoder.k45(tmp0_desc);
1221
+ tmp1_output.y46(tmp0_desc, 0, value.y5k_1);
1222
+ tmp1_output.t46(tmp0_desc, 1, value.z5k_1);
1223
+ tmp1_output.l45(tmp0_desc);
1224
+ };
1225
+ protoOf($serializer_3).y41 = function (encoder, value) {
1226
+ return this.x5k(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
1227
+ };
1228
+ protoOf($serializer_3).z41 = function (decoder) {
1229
+ var tmp0_desc = this.w5k_1;
1230
+ var tmp1_flag = true;
1231
+ var tmp2_index = 0;
1232
+ var tmp3_bitMask0 = 0;
1233
+ var tmp4_local0 = null;
1234
+ var tmp5_local1 = 0;
1235
+ var tmp6_input = decoder.k45(tmp0_desc);
1236
+ if (tmp6_input.z45()) {
1237
+ tmp4_local0 = tmp6_input.u45(tmp0_desc, 0);
1238
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1239
+ tmp5_local1 = tmp6_input.p45(tmp0_desc, 1);
1240
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1241
+ } else
1242
+ while (tmp1_flag) {
1243
+ tmp2_index = tmp6_input.a46(tmp0_desc);
1244
+ switch (tmp2_index) {
1245
+ case -1:
1246
+ tmp1_flag = false;
1247
+ break;
1248
+ case 0:
1249
+ tmp4_local0 = tmp6_input.u45(tmp0_desc, 0);
1250
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1251
+ break;
1252
+ case 1:
1253
+ tmp5_local1 = tmp6_input.p45(tmp0_desc, 1);
1254
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1255
+ break;
1256
+ default:
1257
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1258
+ }
1259
+ }
1260
+ tmp6_input.l45(tmp0_desc);
1261
+ return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1262
+ };
1263
+ protoOf($serializer_3).x41 = function () {
1264
+ return this.w5k_1;
1265
+ };
1266
+ protoOf($serializer_3).l4d = function () {
1267
+ // Inline function 'kotlin.arrayOf' call
1268
+ // Inline function 'kotlin.js.unsafeCast' call
1269
+ // Inline function 'kotlin.js.asDynamic' call
1270
+ return [StringSerializer_getInstance(), IntSerializer_getInstance()];
1271
+ };
1272
+ var $serializer_instance_2;
1273
+ function $serializer_getInstance_2() {
1274
+ if ($serializer_instance_2 == null)
1275
+ new $serializer_3();
1276
+ return $serializer_instance_2;
1277
+ }
1278
+ function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
1279
+ if (!(3 === (3 & seen0))) {
1280
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_2().w5k_1);
1281
+ }
1282
+ $this.y5k_1 = id;
1283
+ $this.z5k_1 = count;
1284
+ return $this;
1285
+ }
1286
+ function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
1287
+ return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
1288
+ }
1289
+ function CardDecksUserDataDto(id, count) {
1290
+ this.y5k_1 = id;
1291
+ this.z5k_1 = count;
1292
+ }
1293
+ protoOf(CardDecksUserDataDto).toString = function () {
1294
+ return 'CardDecksUserDataDto(id=' + this.y5k_1 + ', count=' + this.z5k_1 + ')';
1295
+ };
1296
+ protoOf(CardDecksUserDataDto).hashCode = function () {
1297
+ var result = getStringHashCode(this.y5k_1);
1298
+ result = imul(result, 31) + this.z5k_1 | 0;
1299
+ return result;
1300
+ };
1301
+ protoOf(CardDecksUserDataDto).equals = function (other) {
1302
+ if (this === other)
1303
+ return true;
1304
+ if (!(other instanceof CardDecksUserDataDto))
1305
+ return false;
1306
+ var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
1307
+ if (!(this.y5k_1 === tmp0_other_with_cast.y5k_1))
1308
+ return false;
1309
+ if (!(this.z5k_1 === tmp0_other_with_cast.z5k_1))
1310
+ return false;
1311
+ return true;
1312
+ };
1313
+ function $serializer_init_$Init$_0(typeSerial0, $this) {
1314
+ $serializer_4.call($this);
1315
+ $this.b5l_1 = typeSerial0;
1316
+ return $this;
1317
+ }
1318
+ function $serializer_init_$Create$_0(typeSerial0) {
1319
+ return $serializer_init_$Init$_0(typeSerial0, objectCreate(protoOf($serializer_4)));
1320
+ }
1321
+ function Companion_5() {
1322
+ Companion_instance_6 = this;
1323
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
1324
+ tmp0_serialDesc.w4c('jsonrpc', false);
1325
+ tmp0_serialDesc.w4c('result', false);
1326
+ tmp0_serialDesc.w4c('id', false);
1327
+ this.c5l_1 = tmp0_serialDesc;
1328
+ }
1329
+ protoOf(Companion_5).f5k = function (typeSerial0) {
1330
+ return $serializer_init_$Create$_0(typeSerial0);
1331
+ };
1332
+ protoOf(Companion_5).w4d = function (typeParamsSerializers) {
1333
+ return this.f5k(typeParamsSerializers[0]);
1334
+ };
1335
+ var Companion_instance_6;
1336
+ function Companion_getInstance_7() {
1337
+ if (Companion_instance_6 == null)
1338
+ new Companion_5();
1339
+ return Companion_instance_6;
1340
+ }
1341
+ function $serializer_4() {
1342
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
1343
+ tmp0_serialDesc.w4c('jsonrpc', false);
1344
+ tmp0_serialDesc.w4c('result', false);
1345
+ tmp0_serialDesc.w4c('id', false);
1346
+ this.a5l_1 = tmp0_serialDesc;
1347
+ }
1348
+ protoOf($serializer_4).d5l = function (encoder, value) {
1349
+ var tmp0_desc = this.a5l_1;
1350
+ var tmp1_output = encoder.k45(tmp0_desc);
1351
+ tmp1_output.y46(tmp0_desc, 0, value.e5l_1);
1352
+ tmp1_output.a47(tmp0_desc, 1, this.b5l_1, value.f5l_1);
1353
+ tmp1_output.y46(tmp0_desc, 2, value.g5l_1);
1354
+ tmp1_output.l45(tmp0_desc);
1355
+ };
1356
+ protoOf($serializer_4).y41 = function (encoder, value) {
1357
+ return this.d5l(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
1358
+ };
1359
+ protoOf($serializer_4).z41 = function (decoder) {
1360
+ var tmp0_desc = this.a5l_1;
1361
+ var tmp1_flag = true;
1362
+ var tmp2_index = 0;
1363
+ var tmp3_bitMask0 = 0;
1364
+ var tmp4_local0 = null;
1365
+ var tmp5_local1 = null;
1366
+ var tmp6_local2 = null;
1367
+ var tmp7_input = decoder.k45(tmp0_desc);
1368
+ if (tmp7_input.z45()) {
1369
+ tmp4_local0 = tmp7_input.u45(tmp0_desc, 0);
1370
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1371
+ tmp5_local1 = tmp7_input.w45(tmp0_desc, 1, this.b5l_1, tmp5_local1);
1372
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1373
+ tmp6_local2 = tmp7_input.u45(tmp0_desc, 2);
1374
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1375
+ } else
1376
+ while (tmp1_flag) {
1377
+ tmp2_index = tmp7_input.a46(tmp0_desc);
1378
+ switch (tmp2_index) {
1379
+ case -1:
1380
+ tmp1_flag = false;
1381
+ break;
1382
+ case 0:
1383
+ tmp4_local0 = tmp7_input.u45(tmp0_desc, 0);
1384
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1385
+ break;
1386
+ case 1:
1387
+ tmp5_local1 = tmp7_input.w45(tmp0_desc, 1, this.b5l_1, tmp5_local1);
1388
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1389
+ break;
1390
+ case 2:
1391
+ tmp6_local2 = tmp7_input.u45(tmp0_desc, 2);
1392
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1393
+ break;
1394
+ default:
1395
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1396
+ }
1397
+ }
1398
+ tmp7_input.l45(tmp0_desc);
1399
+ return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
1400
+ };
1401
+ protoOf($serializer_4).x41 = function () {
1402
+ return this.a5l_1;
1403
+ };
1404
+ protoOf($serializer_4).l4d = function () {
1405
+ // Inline function 'kotlin.arrayOf' call
1406
+ // Inline function 'kotlin.js.unsafeCast' call
1407
+ // Inline function 'kotlin.js.asDynamic' call
1408
+ return [StringSerializer_getInstance(), this.b5l_1, StringSerializer_getInstance()];
1409
+ };
1410
+ protoOf($serializer_4).m4d = function () {
1411
+ // Inline function 'kotlin.arrayOf' call
1412
+ // Inline function 'kotlin.js.unsafeCast' call
1413
+ // Inline function 'kotlin.js.asDynamic' call
1414
+ return [this.b5l_1];
1415
+ };
1416
+ function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
1417
+ if (!(7 === (7 & seen0))) {
1418
+ throwMissingFieldException(seen0, 7, Companion_getInstance_7().c5l_1);
1419
+ }
1420
+ $this.e5l_1 = jsonrpc;
1421
+ $this.f5l_1 = result;
1422
+ $this.g5l_1 = id;
1423
+ return $this;
1424
+ }
1425
+ function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
1426
+ return RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, objectCreate(protoOf(RandomResponseDto)));
1427
+ }
1428
+ function RandomResponseDto(jsonrpc, result, id) {
1429
+ Companion_getInstance_7();
1430
+ this.e5l_1 = jsonrpc;
1431
+ this.f5l_1 = result;
1432
+ this.g5l_1 = id;
1433
+ }
1434
+ protoOf(RandomResponseDto).toString = function () {
1435
+ return 'RandomResponseDto(jsonrpc=' + this.e5l_1 + ', result=' + toString(this.f5l_1) + ', id=' + this.g5l_1 + ')';
1436
+ };
1437
+ protoOf(RandomResponseDto).hashCode = function () {
1438
+ var result = getStringHashCode(this.e5l_1);
1439
+ result = imul(result, 31) + hashCode(this.f5l_1) | 0;
1440
+ result = imul(result, 31) + getStringHashCode(this.g5l_1) | 0;
1441
+ return result;
1442
+ };
1443
+ protoOf(RandomResponseDto).equals = function (other) {
1444
+ if (this === other)
1445
+ return true;
1446
+ if (!(other instanceof RandomResponseDto))
1447
+ return false;
1448
+ var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
1449
+ if (!(this.e5l_1 === tmp0_other_with_cast.e5l_1))
1450
+ return false;
1451
+ if (!equals(this.f5l_1, tmp0_other_with_cast.f5l_1))
1452
+ return false;
1453
+ if (!(this.g5l_1 === tmp0_other_with_cast.g5l_1))
1454
+ return false;
1455
+ return true;
1456
+ };
1457
+ function Companion_6() {
1458
+ }
1459
+ var Companion_instance_7;
1460
+ function Companion_getInstance_8() {
1461
+ return Companion_instance_7;
1462
+ }
1463
+ function $serializer_5() {
1464
+ $serializer_instance_3 = this;
1465
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
1466
+ tmp0_serialDesc.w4c('random', false);
1467
+ tmp0_serialDesc.w4c('signature', false);
1468
+ tmp0_serialDesc.w4c('bitsUsed', false);
1469
+ tmp0_serialDesc.w4c('bitsLeft', false);
1470
+ tmp0_serialDesc.w4c('requestsLeft', false);
1471
+ tmp0_serialDesc.w4c('advisoryDelay', false);
1472
+ this.h5l_1 = tmp0_serialDesc;
1473
+ }
1474
+ protoOf($serializer_5).i5l = function (encoder, value) {
1475
+ var tmp0_desc = this.h5l_1;
1476
+ var tmp1_output = encoder.k45(tmp0_desc);
1477
+ tmp1_output.a47(tmp0_desc, 0, $serializer_getInstance_4(), value.j5l_1);
1478
+ tmp1_output.c47(tmp0_desc, 1, StringSerializer_getInstance(), value.k5l_1);
1479
+ tmp1_output.c47(tmp0_desc, 2, IntSerializer_getInstance(), value.l5l_1);
1480
+ tmp1_output.c47(tmp0_desc, 3, IntSerializer_getInstance(), value.m5l_1);
1481
+ tmp1_output.c47(tmp0_desc, 4, IntSerializer_getInstance(), value.n5l_1);
1482
+ tmp1_output.c47(tmp0_desc, 5, IntSerializer_getInstance(), value.o5l_1);
1483
+ tmp1_output.l45(tmp0_desc);
1484
+ };
1485
+ protoOf($serializer_5).y41 = function (encoder, value) {
1486
+ return this.i5l(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
1487
+ };
1488
+ protoOf($serializer_5).z41 = function (decoder) {
1489
+ var tmp0_desc = this.h5l_1;
1490
+ var tmp1_flag = true;
1491
+ var tmp2_index = 0;
1492
+ var tmp3_bitMask0 = 0;
1493
+ var tmp4_local0 = null;
1494
+ var tmp5_local1 = null;
1495
+ var tmp6_local2 = null;
1496
+ var tmp7_local3 = null;
1497
+ var tmp8_local4 = null;
1498
+ var tmp9_local5 = null;
1499
+ var tmp10_input = decoder.k45(tmp0_desc);
1500
+ if (tmp10_input.z45()) {
1501
+ tmp4_local0 = tmp10_input.w45(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
1502
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1503
+ tmp5_local1 = tmp10_input.y45(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
1504
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1505
+ tmp6_local2 = tmp10_input.y45(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1506
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1507
+ tmp7_local3 = tmp10_input.y45(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1508
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1509
+ tmp8_local4 = tmp10_input.y45(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
1510
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1511
+ tmp9_local5 = tmp10_input.y45(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
1512
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1513
+ } else
1514
+ while (tmp1_flag) {
1515
+ tmp2_index = tmp10_input.a46(tmp0_desc);
1516
+ switch (tmp2_index) {
1517
+ case -1:
1518
+ tmp1_flag = false;
1519
+ break;
1520
+ case 0:
1521
+ tmp4_local0 = tmp10_input.w45(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
1522
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1523
+ break;
1524
+ case 1:
1525
+ tmp5_local1 = tmp10_input.y45(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
1526
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1527
+ break;
1528
+ case 2:
1529
+ tmp6_local2 = tmp10_input.y45(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
1530
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1531
+ break;
1532
+ case 3:
1533
+ tmp7_local3 = tmp10_input.y45(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
1534
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1535
+ break;
1536
+ case 4:
1537
+ tmp8_local4 = tmp10_input.y45(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
1538
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1539
+ break;
1540
+ case 5:
1541
+ tmp9_local5 = tmp10_input.y45(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
1542
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1543
+ break;
1544
+ default:
1545
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1546
+ }
1547
+ }
1548
+ tmp10_input.l45(tmp0_desc);
1549
+ return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
1550
+ };
1551
+ protoOf($serializer_5).x41 = function () {
1552
+ return this.h5l_1;
1553
+ };
1554
+ protoOf($serializer_5).l4d = function () {
1555
+ // Inline function 'kotlin.arrayOf' call
1556
+ // Inline function 'kotlin.js.unsafeCast' call
1557
+ // Inline function 'kotlin.js.asDynamic' call
1558
+ return [$serializer_getInstance_4(), get_nullable(StringSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance())];
1559
+ };
1560
+ var $serializer_instance_3;
1561
+ function $serializer_getInstance_3() {
1562
+ if ($serializer_instance_3 == null)
1563
+ new $serializer_5();
1564
+ return $serializer_instance_3;
1565
+ }
1566
+ function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
1567
+ if (!(63 === (63 & seen0))) {
1568
+ throwMissingFieldException(seen0, 63, $serializer_getInstance_3().h5l_1);
1569
+ }
1570
+ $this.j5l_1 = random;
1571
+ $this.k5l_1 = signature;
1572
+ $this.l5l_1 = bitsUsed;
1573
+ $this.m5l_1 = bitsLeft;
1574
+ $this.n5l_1 = requestsLeft;
1575
+ $this.o5l_1 = advisoryDelay;
1576
+ return $this;
1577
+ }
1578
+ function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
1579
+ return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
1580
+ }
1581
+ function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
1582
+ this.j5l_1 = random;
1583
+ this.k5l_1 = signature;
1584
+ this.l5l_1 = bitsUsed;
1585
+ this.m5l_1 = bitsLeft;
1586
+ this.n5l_1 = requestsLeft;
1587
+ this.o5l_1 = advisoryDelay;
1588
+ }
1589
+ protoOf(IntegerSequencesResultDto).toString = function () {
1590
+ return 'IntegerSequencesResultDto(random=' + this.j5l_1.toString() + ', signature=' + this.k5l_1 + ', bitsUsed=' + this.l5l_1 + ', bitsLeft=' + this.m5l_1 + ', requestsLeft=' + this.n5l_1 + ', advisoryDelay=' + this.o5l_1 + ')';
1591
+ };
1592
+ protoOf(IntegerSequencesResultDto).hashCode = function () {
1593
+ var result = this.j5l_1.hashCode();
1594
+ result = imul(result, 31) + (this.k5l_1 == null ? 0 : getStringHashCode(this.k5l_1)) | 0;
1595
+ result = imul(result, 31) + (this.l5l_1 == null ? 0 : this.l5l_1) | 0;
1596
+ result = imul(result, 31) + (this.m5l_1 == null ? 0 : this.m5l_1) | 0;
1597
+ result = imul(result, 31) + (this.n5l_1 == null ? 0 : this.n5l_1) | 0;
1598
+ result = imul(result, 31) + (this.o5l_1 == null ? 0 : this.o5l_1) | 0;
1599
+ return result;
1600
+ };
1601
+ protoOf(IntegerSequencesResultDto).equals = function (other) {
1602
+ if (this === other)
1603
+ return true;
1604
+ if (!(other instanceof IntegerSequencesResultDto))
1605
+ return false;
1606
+ var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
1607
+ if (!this.j5l_1.equals(tmp0_other_with_cast.j5l_1))
1608
+ return false;
1609
+ if (!(this.k5l_1 == tmp0_other_with_cast.k5l_1))
1610
+ return false;
1611
+ if (!(this.l5l_1 == tmp0_other_with_cast.l5l_1))
1612
+ return false;
1613
+ if (!(this.m5l_1 == tmp0_other_with_cast.m5l_1))
1614
+ return false;
1615
+ if (!(this.n5l_1 == tmp0_other_with_cast.n5l_1))
1616
+ return false;
1617
+ if (!(this.o5l_1 == tmp0_other_with_cast.o5l_1))
1618
+ return false;
1619
+ return true;
1620
+ };
1621
+ function Companion_7() {
1622
+ Companion_instance_8 = this;
1623
+ var tmp = this;
1624
+ // Inline function 'kotlin.arrayOf' call
1625
+ // Inline function 'kotlin.js.unsafeCast' call
1626
+ // Inline function 'kotlin.js.asDynamic' call
1627
+ tmp.p5l_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
1628
+ }
1629
+ var Companion_instance_8;
1630
+ function Companion_getInstance_9() {
1631
+ if (Companion_instance_8 == null)
1632
+ new Companion_7();
1633
+ return Companion_instance_8;
1634
+ }
1635
+ function $serializer_6() {
1636
+ $serializer_instance_4 = this;
1637
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
1638
+ tmp0_serialDesc.w4c('data', false);
1639
+ tmp0_serialDesc.w4c('completionTime', false);
1640
+ tmp0_serialDesc.w4c('ticketId', false);
1641
+ this.q5l_1 = tmp0_serialDesc;
1642
+ }
1643
+ protoOf($serializer_6).r5l = function (encoder, value) {
1644
+ var tmp0_desc = this.q5l_1;
1645
+ var tmp1_output = encoder.k45(tmp0_desc);
1646
+ var tmp2_cached = Companion_getInstance_9().p5l_1;
1647
+ tmp1_output.a47(tmp0_desc, 0, tmp2_cached[0], value.s5l_1);
1648
+ tmp1_output.y46(tmp0_desc, 1, value.t5l_1);
1649
+ tmp1_output.c47(tmp0_desc, 2, StringSerializer_getInstance(), value.u5l_1);
1650
+ tmp1_output.l45(tmp0_desc);
1651
+ };
1652
+ protoOf($serializer_6).y41 = function (encoder, value) {
1653
+ return this.r5l(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
1654
+ };
1655
+ protoOf($serializer_6).z41 = function (decoder) {
1656
+ var tmp0_desc = this.q5l_1;
1657
+ var tmp1_flag = true;
1658
+ var tmp2_index = 0;
1659
+ var tmp3_bitMask0 = 0;
1660
+ var tmp4_local0 = null;
1661
+ var tmp5_local1 = null;
1662
+ var tmp6_local2 = null;
1663
+ var tmp7_input = decoder.k45(tmp0_desc);
1664
+ var tmp8_cached = Companion_getInstance_9().p5l_1;
1665
+ if (tmp7_input.z45()) {
1666
+ tmp4_local0 = tmp7_input.w45(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
1667
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1668
+ tmp5_local1 = tmp7_input.u45(tmp0_desc, 1);
1669
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1670
+ tmp6_local2 = tmp7_input.y45(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1671
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1672
+ } else
1673
+ while (tmp1_flag) {
1674
+ tmp2_index = tmp7_input.a46(tmp0_desc);
1675
+ switch (tmp2_index) {
1676
+ case -1:
1677
+ tmp1_flag = false;
1678
+ break;
1679
+ case 0:
1680
+ tmp4_local0 = tmp7_input.w45(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
1681
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1682
+ break;
1683
+ case 1:
1684
+ tmp5_local1 = tmp7_input.u45(tmp0_desc, 1);
1685
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1686
+ break;
1687
+ case 2:
1688
+ tmp6_local2 = tmp7_input.y45(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1689
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1690
+ break;
1691
+ default:
1692
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1693
+ }
1694
+ }
1695
+ tmp7_input.l45(tmp0_desc);
1696
+ return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
1697
+ };
1698
+ protoOf($serializer_6).x41 = function () {
1699
+ return this.q5l_1;
1700
+ };
1701
+ protoOf($serializer_6).l4d = function () {
1702
+ // Inline function 'kotlin.arrayOf' call
1703
+ // Inline function 'kotlin.js.unsafeCast' call
1704
+ // Inline function 'kotlin.js.asDynamic' call
1705
+ return [Companion_getInstance_9().p5l_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
1706
+ };
1707
+ var $serializer_instance_4;
1708
+ function $serializer_getInstance_4() {
1709
+ if ($serializer_instance_4 == null)
1710
+ new $serializer_6();
1711
+ return $serializer_instance_4;
1712
+ }
1713
+ function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
1714
+ if (!(7 === (7 & seen0))) {
1715
+ throwMissingFieldException(seen0, 7, $serializer_getInstance_4().q5l_1);
1716
+ }
1717
+ $this.s5l_1 = data;
1718
+ $this.t5l_1 = completionTime;
1719
+ $this.u5l_1 = ticketId;
1720
+ return $this;
1721
+ }
1722
+ function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
1723
+ return IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesDataDto)));
1724
+ }
1725
+ function IntegerSequencesDataDto() {
1726
+ }
1727
+ protoOf(IntegerSequencesDataDto).toString = function () {
1728
+ return 'IntegerSequencesDataDto(data=' + toString(this.s5l_1) + ', completionTime=' + this.t5l_1 + ', ticketId=' + this.u5l_1 + ')';
1729
+ };
1730
+ protoOf(IntegerSequencesDataDto).hashCode = function () {
1731
+ var result = hashCode(this.s5l_1);
1732
+ result = imul(result, 31) + getStringHashCode(this.t5l_1) | 0;
1733
+ result = imul(result, 31) + (this.u5l_1 == null ? 0 : getStringHashCode(this.u5l_1)) | 0;
1734
+ return result;
1735
+ };
1736
+ protoOf(IntegerSequencesDataDto).equals = function (other) {
1737
+ if (this === other)
1738
+ return true;
1739
+ if (!(other instanceof IntegerSequencesDataDto))
1740
+ return false;
1741
+ var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
1742
+ if (!equals(this.s5l_1, tmp0_other_with_cast.s5l_1))
1743
+ return false;
1744
+ if (!(this.t5l_1 === tmp0_other_with_cast.t5l_1))
1745
+ return false;
1746
+ if (!(this.u5l_1 == tmp0_other_with_cast.u5l_1))
1747
+ return false;
1748
+ return true;
1749
+ };
1750
+ function mapToDto(_this__u8e3s4) {
1751
+ return new CardDecksUserDataDto(_this__u8e3s4.id, _this__u8e3s4.count);
1752
+ }
1753
+ function RandomOrgApiService() {
1754
+ }
1755
+ function throwIfError($this, bodyAsJson, response, $completion) {
1756
+ var tmp = new $throwIfErrorCOROUTINE$2($this, bodyAsJson, response, $completion);
1757
+ tmp.f9_1 = Unit_instance;
1758
+ tmp.g9_1 = null;
1759
+ return tmp.l9();
1760
+ }
1761
+ function extractRandomResult($this, bodyAsJson) {
1762
+ return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
1763
+ }
1764
+ function Companion_8() {
1765
+ this.i5m_1 = 52;
1766
+ }
1767
+ var Companion_instance_9;
1768
+ function Companion_getInstance_10() {
1769
+ return Companion_instance_9;
1770
+ }
1771
+ function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
1772
+ CoroutineImpl.call(this, resultContinuation);
1773
+ this.r5m_1 = _this__u8e3s4;
1774
+ this.s5m_1 = min;
1775
+ this.t5m_1 = max;
1776
+ this.u5m_1 = decksCount;
1777
+ this.v5m_1 = cardsCount;
1778
+ this.w5m_1 = userData;
1779
+ this.x5m_1 = signed;
1780
+ }
1781
+ protoOf($getRandomCardDecksCOROUTINE$1).l9 = function () {
1782
+ var suspendResult = this.f9_1;
1783
+ $sm: do
1784
+ try {
1785
+ var tmp = this.d9_1;
1786
+ switch (tmp) {
1787
+ case 0:
1788
+ this.e9_1 = 6;
1789
+ this.e9_1 = 5;
1790
+ var tmp_0 = this;
1791
+ tmp_0.y5m_1 = this.r5m_1.h5n_1;
1792
+ var tmp_1 = this;
1793
+ tmp_1.z5m_1 = this.y5m_1;
1794
+ var tmp_2 = this;
1795
+ var this_0 = new HttpRequestBuilder();
1796
+ url(this_0, '/json-rpc/4/invoke');
1797
+ var tmp11_id = this.w5m_1.id;
1798
+ var tmp12_method = this.x5m_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
1799
+ var tmp8_apiKey = this.r5m_1.i5n_1;
1800
+ var size = this.u5m_1;
1801
+ var list = ArrayList_init_$Create$(size);
1802
+ var inductionVariable = 0;
1803
+ if (inductionVariable < size)
1804
+ do {
1805
+ var index = inductionVariable;
1806
+ inductionVariable = inductionVariable + 1 | 0;
1807
+ list.e(this.v5m_1);
1808
+ }
1809
+ while (inductionVariable < size);
1810
+ var tmp10_userData = this.x5m_1 ? mapToDto(this.w5m_1) : null;
1811
+ var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.u5m_1, list, this.s5m_1, this.t5m_1, false, null, tmp10_userData);
1812
+ var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
1813
+ if (body == null) {
1814
+ this_0.d2t_1 = NullBody_instance;
1815
+ var tmp_3 = JsType_instance;
1816
+ var tmp_4 = getKClass(RandomRequestDto);
1817
+ var tmp_5;
1818
+ try {
1819
+ tmp_5 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
1820
+ } catch ($p) {
1821
+ var tmp_6;
1822
+ if ($p instanceof Error) {
1823
+ var cause = $p;
1824
+ tmp_6 = null;
1825
+ } else {
1826
+ throw $p;
1827
+ }
1828
+ tmp_5 = tmp_6;
1829
+ }
1830
+ this_0.z2y(typeInfoImpl(tmp_3, tmp_4, tmp_5));
1831
+ } else {
1832
+ if (body instanceof OutgoingContent) {
1833
+ this_0.d2t_1 = body;
1834
+ this_0.z2y(null);
1835
+ } else {
1836
+ this_0.d2t_1 = body;
1837
+ var tmp_7 = JsType_instance;
1838
+ var tmp_8 = getKClass(RandomRequestDto);
1839
+ var tmp_9;
1840
+ try {
1841
+ tmp_9 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
1842
+ } catch ($p) {
1843
+ var tmp_10;
1844
+ if ($p instanceof Error) {
1845
+ var cause_0 = $p;
1846
+ tmp_10 = null;
1847
+ } else {
1848
+ throw $p;
1849
+ }
1850
+ tmp_9 = tmp_10;
1851
+ }
1852
+ this_0.z2y(typeInfoImpl(tmp_7, tmp_8, tmp_9));
1853
+ }
1854
+ }
1855
+
1856
+ tmp_2.a5n_1 = this_0;
1857
+ this.a5n_1.b2t_1 = Companion_getInstance().r2h_1;
1858
+ var tmp_11 = this;
1859
+ tmp_11.b5n_1 = this.z5m_1;
1860
+ var tmp_12 = this;
1861
+ tmp_12.c5n_1 = this.a5n_1;
1862
+ this.d9_1 = 1;
1863
+ suspendResult = (new HttpStatement(this.c5n_1, this.b5n_1)).j3m(this);
1864
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1865
+ return suspendResult;
1866
+ }
1867
+
1868
+ continue $sm;
1869
+ case 1:
1870
+ this.d5n_1 = suspendResult;
1871
+ var tmp_13 = this;
1872
+ tmp_13.e5n_1 = this.d5n_1;
1873
+ this.d9_1 = 2;
1874
+ var tmp_14 = this.e5n_1.i2w();
1875
+ var tmp_15 = JsType_instance;
1876
+ var tmp_16 = getKClass(JsonObject);
1877
+ var tmp_17;
1878
+ try {
1879
+ tmp_17 = createKType(getKClass(JsonObject), arrayOf([]), false);
1880
+ } catch ($p) {
1881
+ var tmp_18;
1882
+ if ($p instanceof Error) {
1883
+ var cause_1 = $p;
1884
+ tmp_18 = null;
1885
+ } else {
1886
+ throw $p;
1887
+ }
1888
+ tmp_17 = tmp_18;
1889
+ }
1890
+
1891
+ suspendResult = tmp_14.m2v(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
1892
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1893
+ return suspendResult;
1894
+ }
1895
+
1896
+ continue $sm;
1897
+ case 2:
1898
+ var tmp_19 = this;
1899
+ tmp_19.f5n_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
1900
+ this.d9_1 = 3;
1901
+ suspendResult = throwIfError(this.r5m_1, this.f5n_1, this.d5n_1, this);
1902
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1903
+ return suspendResult;
1904
+ }
1905
+
1906
+ continue $sm;
1907
+ case 3:
1908
+ var tmp_20 = this;
1909
+ tmp_20.g5n_1 = this.d5n_1;
1910
+ this.d9_1 = 4;
1911
+ var tmp_21 = this.g5n_1.i2w();
1912
+ var tmp_22 = JsType_instance;
1913
+ var tmp_23 = getKClass(RandomResponseDto);
1914
+ var tmp_24;
1915
+ try {
1916
+ tmp_24 = createKType(getKClass(RandomResponseDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(IntegerSequencesResultDto), arrayOf([]), false))]), false);
1917
+ } catch ($p) {
1918
+ var tmp_25;
1919
+ if ($p instanceof Error) {
1920
+ var cause_2 = $p;
1921
+ tmp_25 = null;
1922
+ } else {
1923
+ throw $p;
1924
+ }
1925
+ tmp_24 = tmp_25;
1926
+ }
1927
+
1928
+ suspendResult = tmp_21.m2v(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
1929
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1930
+ return suspendResult;
1931
+ }
1932
+
1933
+ continue $sm;
1934
+ case 4:
1935
+ var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
1936
+ var randomJson = extractRandomResult(this.r5m_1, this.f5n_1);
1937
+ var tmp14_cardDecks = responseDto.f5l_1.j5l_1.s5l_1;
1938
+ var tmp15_signature = responseDto.f5l_1.k5l_1;
1939
+ var tmp16_id = responseDto.g5l_1;
1940
+ return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
1941
+ case 5:
1942
+ this.e9_1 = 6;
1943
+ var tmp_26 = this.g9_1;
1944
+ if (tmp_26 instanceof Error) {
1945
+ var error = this.g9_1;
1946
+ if (error instanceof RandomException)
1947
+ throw error;
1948
+ else {
1949
+ throw new RandomException(100001, '[getRandomCardDeck] error', error);
1950
+ }
1951
+ } else {
1952
+ throw this.g9_1;
1953
+ }
1954
+
1955
+ case 6:
1956
+ throw this.g9_1;
1957
+ }
1958
+ } catch ($p) {
1959
+ var e = $p;
1960
+ if (this.e9_1 === 6) {
1961
+ throw e;
1962
+ } else {
1963
+ this.d9_1 = this.e9_1;
1964
+ this.g9_1 = e;
1965
+ }
1966
+ }
1967
+ while (true);
1968
+ };
1969
+ function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
1970
+ CoroutineImpl.call(this, resultContinuation);
1971
+ this.e5m_1 = _this__u8e3s4;
1972
+ this.f5m_1 = bodyAsJson;
1973
+ this.g5m_1 = response;
1974
+ }
1975
+ protoOf($throwIfErrorCOROUTINE$2).l9 = function () {
1976
+ var suspendResult = this.f9_1;
1977
+ $sm: do
1978
+ try {
1979
+ var tmp = this.d9_1;
1980
+ switch (tmp) {
1981
+ case 0:
1982
+ this.e9_1 = 3;
1983
+ var this_0 = this.f5m_1;
1984
+ if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
1985
+ var tmp_0 = this;
1986
+ tmp_0.h5m_1 = this.g5m_1;
1987
+ this.d9_1 = 2;
1988
+ var tmp_1 = this.h5m_1.i2w();
1989
+ var tmp_2 = JsType_instance;
1990
+ var tmp_3 = getKClass(ErrorResponseDto);
1991
+ var tmp_4;
1992
+ try {
1993
+ tmp_4 = createKType(getKClass(ErrorResponseDto), arrayOf([]), false);
1994
+ } catch ($p) {
1995
+ var tmp_5;
1996
+ if ($p instanceof Error) {
1997
+ var cause = $p;
1998
+ tmp_5 = null;
1999
+ } else {
2000
+ throw $p;
2001
+ }
2002
+ tmp_4 = tmp_5;
2003
+ }
2004
+ suspendResult = tmp_1.m2v(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
2005
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2006
+ return suspendResult;
2007
+ }
2008
+ continue $sm;
2009
+ } else {
2010
+ this.d9_1 = 1;
2011
+ continue $sm;
2012
+ }
2013
+
2014
+ case 1:
2015
+ return Unit_instance;
2016
+ case 2:
2017
+ var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
2018
+ var tmp18_safe_receiver = errorResponseDto.x5j_1;
2019
+ var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.a5k_1;
2020
+ var tmp19_safe_receiver = errorResponseDto.x5j_1;
2021
+ throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.b5k_1);
2022
+ case 3:
2023
+ throw this.g9_1;
2024
+ }
2025
+ } catch ($p) {
2026
+ var e = $p;
2027
+ if (this.e9_1 === 3) {
2028
+ throw e;
2029
+ } else {
2030
+ this.d9_1 = this.e9_1;
2031
+ this.g9_1 = e;
2032
+ }
2033
+ }
2034
+ while (true);
2035
+ };
2036
+ function RandomOrgApiServiceImpl(client, apiKey) {
2037
+ this.h5n_1 = client;
2038
+ this.i5n_1 = apiKey;
2039
+ }
2040
+ protoOf(RandomOrgApiServiceImpl).v5l = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
2041
+ var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
2042
+ tmp.f9_1 = Unit_instance;
2043
+ tmp.g9_1 = null;
2044
+ return tmp.l9();
2045
+ };
281
2046
  function RandomPoolProvider() {
282
2047
  }
283
- function HttpConfig$_init_$lambda_vwazmp($this$Json) {
284
- $this$Json.o22_1 = true;
285
- $this$Json.m22_1 = true;
286
- $this$Json.l22_1 = true;
287
- $this$Json.k22_1 = false;
288
- return Unit_instance;
2048
+ function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
2049
+ usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
2050
+ reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
2051
+ isUsed = isUsed === VOID ? false : isUsed;
2052
+ this.m5n_1 = randomResult;
2053
+ this.n5n_1 = usedByGames;
2054
+ this.o5n_1 = reservedCardDecks;
2055
+ this.p5n_1 = isUsed;
289
2056
  }
290
- function HttpConfig(baseUrl, timeoutMillis, loggingLevel, json) {
291
- timeoutMillis = timeoutMillis === VOID ? new Long(30000, 0) : timeoutMillis;
292
- loggingLevel = loggingLevel === VOID ? LogLevel_ALL_getInstance() : loggingLevel;
2057
+ protoOf(RandomPoolValue).q5n = function () {
2058
+ return this.m5n_1.b5j_1.m();
2059
+ };
2060
+ protoOf(RandomPoolValue).r5n = function (minRoundsCount) {
2061
+ if (this.p5n_1) {
2062
+ return false;
2063
+ }
2064
+ var availableCount = this.q5n() - this.o5n_1 | 0;
2065
+ return availableCount >= minRoundsCount;
2066
+ };
2067
+ protoOf(RandomPoolValue).s5n = function (gameId, reservedCardDecks, thresholdForUsedPool) {
2068
+ var lastReservedCardDeckIndex = this.o5n_1 - 1 | 0;
2069
+ // Inline function 'kotlin.apply' call
2070
+ var this_0 = toMutableMap(this.n5n_1);
2071
+ // Inline function 'kotlin.contracts.contract' call
2072
+ // Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
2073
+ this_0.k2(gameId, lastReservedCardDeckIndex + 1 | 0);
2074
+ var newNewUsedBy = toMap(this_0);
2075
+ var newReservedCardDecks = this.o5n_1 + reservedCardDecks | 0;
2076
+ return this.t5n(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.q5n());
2077
+ };
2078
+ protoOf(RandomPoolValue).u5n = function (gameId) {
2079
+ var currentCardDeckIndex = getValue(this.n5n_1, gameId);
293
2080
  var tmp;
294
- if (json === VOID) {
295
- tmp = Json(VOID, HttpConfig$_init_$lambda_vwazmp);
2081
+ if (currentCardDeckIndex === get_lastIndex(this.m5n_1.b5j_1)) {
2082
+ tmp = 0;
296
2083
  } else {
297
- tmp = json;
2084
+ tmp = currentCardDeckIndex + 1 | 0;
298
2085
  }
299
- json = tmp;
300
- this.baseUrl = baseUrl;
301
- this.timeoutMillis = timeoutMillis;
302
- this.loggingLevel = loggingLevel;
303
- this.json = json;
2086
+ var newCardDeckIndex = tmp;
2087
+ // Inline function 'kotlin.apply' call
2088
+ var this_0 = toMutableMap(this.n5n_1);
2089
+ // Inline function 'kotlin.contracts.contract' call
2090
+ // Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
2091
+ this_0.k2(gameId, newCardDeckIndex);
2092
+ var newNewUsedBy = toMap(this_0);
2093
+ return this.t5n(VOID, newNewUsedBy);
2094
+ };
2095
+ protoOf(RandomPoolValue).v5n = function (gameId, reservedCardDecks) {
2096
+ return this.t5n(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
2097
+ };
2098
+ protoOf(RandomPoolValue).w5n = function (gameId) {
2099
+ var index = getValue(this.n5n_1, gameId);
2100
+ return new GameCardDeckData(index, this.m5n_1.b5j_1.o(index));
2101
+ };
2102
+ protoOf(RandomPoolValue).x5n = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
2103
+ return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
2104
+ };
2105
+ protoOf(RandomPoolValue).t5n = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
2106
+ randomResult = randomResult === VOID ? this.m5n_1 : randomResult;
2107
+ usedByGames = usedByGames === VOID ? this.n5n_1 : usedByGames;
2108
+ reservedCardDecks = reservedCardDecks === VOID ? this.o5n_1 : reservedCardDecks;
2109
+ isUsed = isUsed === VOID ? this.p5n_1 : isUsed;
2110
+ return $super === VOID ? this.x5n(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.x5n.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
2111
+ };
2112
+ protoOf(RandomPoolValue).toString = function () {
2113
+ return 'RandomPoolValue(randomResult=' + this.m5n_1.toString() + ', usedByGames=' + toString(this.n5n_1) + ', reservedCardDecks=' + this.o5n_1 + ', isUsed=' + this.p5n_1 + ')';
2114
+ };
2115
+ protoOf(RandomPoolValue).hashCode = function () {
2116
+ var result = this.m5n_1.hashCode();
2117
+ result = imul(result, 31) + hashCode(this.n5n_1) | 0;
2118
+ result = imul(result, 31) + this.o5n_1 | 0;
2119
+ result = imul(result, 31) + getBooleanHashCode(this.p5n_1) | 0;
2120
+ return result;
2121
+ };
2122
+ protoOf(RandomPoolValue).equals = function (other) {
2123
+ if (this === other)
2124
+ return true;
2125
+ if (!(other instanceof RandomPoolValue))
2126
+ return false;
2127
+ var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
2128
+ if (!this.m5n_1.equals(tmp0_other_with_cast.m5n_1))
2129
+ return false;
2130
+ if (!equals(this.n5n_1, tmp0_other_with_cast.n5n_1))
2131
+ return false;
2132
+ if (!(this.o5n_1 === tmp0_other_with_cast.o5n_1))
2133
+ return false;
2134
+ if (!(this.p5n_1 === tmp0_other_with_cast.p5n_1))
2135
+ return false;
2136
+ return true;
2137
+ };
2138
+ function generateCardDecks($this, min, max, cardsCount, signed, $completion) {
2139
+ return withContext($this.b5o_1, RandomPoolProviderImpl$generateCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
304
2140
  }
305
- protoOf(HttpConfig).m2t = function () {
306
- return this.baseUrl;
2141
+ function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
2142
+ var existingCardDeck = $this.f5o_1.h2(userData.gameId);
2143
+ var tmp;
2144
+ if (!(existingCardDeck == null)) {
2145
+ tmp = Companion_instance_1.newRound(existingCardDeck, cardDeckData);
2146
+ } else {
2147
+ tmp = Companion_instance_1.firstRound(poolId, signature, cardDeckData, userData);
2148
+ }
2149
+ return tmp;
2150
+ }
2151
+ function getPreparedRandomPoolValue($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion) {
2152
+ var tmp = new $getPreparedRandomPoolValueCOROUTINE$4($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion);
2153
+ tmp.f9_1 = Unit_instance;
2154
+ tmp.g9_1 = null;
2155
+ return tmp.l9();
2156
+ }
2157
+ function Companion_9() {
2158
+ this.x5o_1 = 100;
2159
+ this.y5o_1 = 3;
2160
+ }
2161
+ var Companion_instance_10;
2162
+ function Companion_getInstance_11() {
2163
+ return Companion_instance_10;
2164
+ }
2165
+ function RandomPoolProviderImpl$_init_$lambda_f6qzy3() {
2166
+ return uuid4().toString();
2167
+ }
2168
+ function RandomPoolProviderImpl$generateCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
2169
+ this.h5p_1 = this$0;
2170
+ this.i5p_1 = $min;
2171
+ this.j5p_1 = $max;
2172
+ this.k5p_1 = $cardsCount;
2173
+ this.l5p_1 = $signed;
2174
+ CoroutineImpl.call(this, resultContinuation);
2175
+ }
2176
+ protoOf(RandomPoolProviderImpl$generateCardDecks$slambda).n5p = function ($this$withContext, $completion) {
2177
+ var tmp = this.b1c($this$withContext, $completion);
2178
+ tmp.f9_1 = Unit_instance;
2179
+ tmp.g9_1 = null;
2180
+ return tmp.l9();
307
2181
  };
308
- protoOf(HttpConfig).n2t = function () {
309
- return this.timeoutMillis;
2182
+ protoOf(RandomPoolProviderImpl$generateCardDecks$slambda).ga = function (p1, $completion) {
2183
+ return this.n5p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
310
2184
  };
311
- protoOf(HttpConfig).o2t = function () {
312
- return this.loggingLevel;
2185
+ protoOf(RandomPoolProviderImpl$generateCardDecks$slambda).l9 = function () {
2186
+ var suspendResult = this.f9_1;
2187
+ $sm: do
2188
+ try {
2189
+ var tmp = this.d9_1;
2190
+ switch (tmp) {
2191
+ case 0:
2192
+ this.e9_1 = 2;
2193
+ this.d9_1 = 1;
2194
+ suspendResult = this.h5p_1.y5n_1.v5l(this.i5p_1, this.j5p_1, this.h5p_1.z5n_1, this.k5p_1, new CardDecksRequestUserData(this.h5p_1.c5o_1(), this.h5p_1.z5n_1), this.l5p_1, this);
2195
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2196
+ return suspendResult;
2197
+ }
2198
+
2199
+ continue $sm;
2200
+ case 1:
2201
+ var result = suspendResult;
2202
+ var newCardDecksValue = new RandomPoolValue(result);
2203
+ return newCardDecksValue;
2204
+ case 2:
2205
+ throw this.g9_1;
2206
+ }
2207
+ } catch ($p) {
2208
+ var e = $p;
2209
+ if (this.e9_1 === 2) {
2210
+ throw e;
2211
+ } else {
2212
+ this.d9_1 = this.e9_1;
2213
+ this.g9_1 = e;
2214
+ }
2215
+ }
2216
+ while (true);
313
2217
  };
314
- protoOf(HttpConfig).p23 = function () {
315
- return this.json;
2218
+ protoOf(RandomPoolProviderImpl$generateCardDecks$slambda).b1c = function ($this$withContext, completion) {
2219
+ var i = new RandomPoolProviderImpl$generateCardDecks$slambda(this.h5p_1, this.i5p_1, this.j5p_1, this.k5p_1, this.l5p_1, completion);
2220
+ i.m5p_1 = $this$withContext;
2221
+ return i;
316
2222
  };
317
- protoOf(HttpConfig).fe = function () {
318
- return this.baseUrl;
2223
+ function RandomPoolProviderImpl$generateCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
2224
+ var i = new RandomPoolProviderImpl$generateCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
2225
+ var l = function ($this$withContext, $completion) {
2226
+ return i.n5p($this$withContext, $completion);
2227
+ };
2228
+ l.$arity = 1;
2229
+ return l;
2230
+ }
2231
+ function $getCardDeckCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
2232
+ CoroutineImpl.call(this, resultContinuation);
2233
+ this.w5p_1 = _this__u8e3s4;
2234
+ this.x5p_1 = minRoundsCountInPool;
2235
+ this.y5p_1 = userData;
2236
+ this.z5p_1 = min;
2237
+ this.a5q_1 = max;
2238
+ this.b5q_1 = cardsCount;
2239
+ this.c5q_1 = signed;
2240
+ }
2241
+ protoOf($getCardDeckCOROUTINE$3).l9 = function () {
2242
+ var suspendResult = this.f9_1;
2243
+ $sm: do
2244
+ try {
2245
+ var tmp = this.d9_1;
2246
+ switch (tmp) {
2247
+ case 0:
2248
+ this.e9_1 = 8;
2249
+ var tmp_0 = this;
2250
+ tmp_0.d5q_1 = this.w5p_1.d5o_1;
2251
+ var tmp_1 = this;
2252
+ tmp_1.e5q_1 = null;
2253
+ this.d9_1 = 1;
2254
+ suspendResult = this.d5q_1.x1j(this.e5q_1, this);
2255
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2256
+ return suspendResult;
2257
+ }
2258
+
2259
+ continue $sm;
2260
+ case 1:
2261
+ this.f5q_1 = Unit_instance;
2262
+ this.d9_1 = 2;
2263
+ continue $sm;
2264
+ case 2:
2265
+ this.d9_1 = 3;
2266
+ continue $sm;
2267
+ case 3:
2268
+ this.e9_1 = 7;
2269
+ this.h5q_1 = this.y5p_1.gameId;
2270
+ this.d9_1 = 4;
2271
+ suspendResult = getPreparedRandomPoolValue(this.w5p_1, this.h5q_1, this.z5p_1, this.a5q_1, this.x5p_1, this.b5q_1, this.c5q_1, this);
2272
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2273
+ return suspendResult;
2274
+ }
2275
+
2276
+ continue $sm;
2277
+ case 4:
2278
+ var randomPoolValue = suspendResult;
2279
+ var this_0 = this.w5p_1.e5o_1;
2280
+ var key = randomPoolValue.m5n_1.d5j_1;
2281
+ this_0.k2(key, randomPoolValue);
2282
+ var cardDeckData = randomPoolValue.w5n(this.y5p_1.gameId);
2283
+ var tmp21_poolId = randomPoolValue.m5n_1.d5j_1;
2284
+ var tmp22_signature = randomPoolValue.m5n_1.e5j_1;
2285
+ var cardDecksRecord = getPreparedGameCardDecksRecord(this.w5p_1, tmp21_poolId, tmp22_signature, cardDeckData, this.y5p_1);
2286
+ var this_1 = this.w5p_1.f5o_1;
2287
+ var key_0 = this.y5p_1.gameId;
2288
+ this_1.k2(key_0, cardDecksRecord);
2289
+ this.g5q_1 = cardDeckData;
2290
+ this.e9_1 = 8;
2291
+ this.d9_1 = 5;
2292
+ var tmp_2 = this;
2293
+ continue $sm;
2294
+ case 5:
2295
+ var tmp_3 = this.g5q_1;
2296
+ this.e9_1 = 8;
2297
+ this.d5q_1.i1j(this.e5q_1);
2298
+ var tmp_4 = this;
2299
+ return tmp_3;
2300
+ case 6:
2301
+ var tmp_5 = this.f5q_1;
2302
+ this.e9_1 = 8;
2303
+ this.d5q_1.i1j(this.e5q_1);
2304
+ return tmp_5;
2305
+ case 7:
2306
+ this.e9_1 = 8;
2307
+ var t = this.g9_1;
2308
+ this.d5q_1.i1j(this.e5q_1);
2309
+ throw t;
2310
+ case 8:
2311
+ throw this.g9_1;
2312
+ }
2313
+ } catch ($p) {
2314
+ var e = $p;
2315
+ if (this.e9_1 === 8) {
2316
+ throw e;
2317
+ } else {
2318
+ this.d9_1 = this.e9_1;
2319
+ this.g9_1 = e;
2320
+ }
2321
+ }
2322
+ while (true);
319
2323
  };
320
- protoOf(HttpConfig).ge = function () {
321
- return this.timeoutMillis;
2324
+ function $getPreparedRandomPoolValueCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
2325
+ CoroutineImpl.call(this, resultContinuation);
2326
+ this.o5o_1 = _this__u8e3s4;
2327
+ this.p5o_1 = gameId;
2328
+ this.q5o_1 = min;
2329
+ this.r5o_1 = max;
2330
+ this.s5o_1 = minRoundsCount;
2331
+ this.t5o_1 = cardsCount;
2332
+ this.u5o_1 = signed;
2333
+ }
2334
+ protoOf($getPreparedRandomPoolValueCOROUTINE$4).l9 = function () {
2335
+ var suspendResult = this.f9_1;
2336
+ $sm: do
2337
+ try {
2338
+ var tmp = this.d9_1;
2339
+ switch (tmp) {
2340
+ case 0:
2341
+ this.e9_1 = 2;
2342
+ var tmp_0 = this;
2343
+ var this_0 = this.o5o_1.e5o_1;
2344
+ var destination = LinkedHashMap_init_$Create$();
2345
+ var tmp0_iterator = this_0.s().j();
2346
+ while (tmp0_iterator.k()) {
2347
+ var element = tmp0_iterator.l();
2348
+ var this_1 = element.u().n5n_1;
2349
+ var key = this.p5o_1;
2350
+ if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).f2(key)) {
2351
+ destination.k2(element.t(), element.u());
2352
+ }
2353
+ }
2354
+
2355
+ tmp_0.v5o_1 = firstOrNull(destination.s());
2356
+ if (!(this.v5o_1 == null)) {
2357
+ return this.v5o_1.u().u5n(this.p5o_1);
2358
+ }
2359
+
2360
+ var tmp_1 = this;
2361
+ var this_2 = this.o5o_1.e5o_1;
2362
+ var destination_0 = LinkedHashMap_init_$Create$();
2363
+ var tmp0_iterator_0 = this_2.s().j();
2364
+ while (tmp0_iterator_0.k()) {
2365
+ var element_0 = tmp0_iterator_0.l();
2366
+ if (element_0.u().r5n(this.s5o_1)) {
2367
+ destination_0.k2(element_0.t(), element_0.u());
2368
+ }
2369
+ }
2370
+
2371
+ tmp_1.w5o_1 = firstOrNull(destination_0.s());
2372
+ if (!(this.w5o_1 == null)) {
2373
+ return this.w5o_1.u().s5n(this.p5o_1, this.s5o_1, this.o5o_1.a5o_1);
2374
+ }
2375
+
2376
+ this.d9_1 = 1;
2377
+ suspendResult = generateCardDecks(this.o5o_1, this.q5o_1, this.r5o_1, this.t5o_1, this.u5o_1, this);
2378
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2379
+ return suspendResult;
2380
+ }
2381
+
2382
+ continue $sm;
2383
+ case 1:
2384
+ var cardDecks = suspendResult;
2385
+ return cardDecks.v5n(this.p5o_1, this.s5o_1);
2386
+ case 2:
2387
+ throw this.g9_1;
2388
+ }
2389
+ } catch ($p) {
2390
+ var e = $p;
2391
+ if (this.e9_1 === 2) {
2392
+ throw e;
2393
+ } else {
2394
+ this.d9_1 = this.e9_1;
2395
+ this.g9_1 = e;
2396
+ }
2397
+ }
2398
+ while (true);
2399
+ };
2400
+ function RandomPoolProviderImpl(randomOrgApiService, poolSize, thresholdForUsedPool, dispatcher, idsProvider) {
2401
+ poolSize = poolSize === VOID ? 100 : poolSize;
2402
+ thresholdForUsedPool = thresholdForUsedPool === VOID ? 3 : thresholdForUsedPool;
2403
+ dispatcher = dispatcher === VOID ? Dispatchers_getInstance().yy_1 : dispatcher;
2404
+ var tmp;
2405
+ if (idsProvider === VOID) {
2406
+ tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
2407
+ } else {
2408
+ tmp = idsProvider;
2409
+ }
2410
+ idsProvider = tmp;
2411
+ this.y5n_1 = randomOrgApiService;
2412
+ this.z5n_1 = poolSize;
2413
+ this.a5o_1 = thresholdForUsedPool;
2414
+ this.b5o_1 = dispatcher;
2415
+ this.c5o_1 = idsProvider;
2416
+ this.d5o_1 = Mutex();
2417
+ var tmp_0 = this;
2418
+ // Inline function 'kotlin.collections.mutableMapOf' call
2419
+ tmp_0.e5o_1 = LinkedHashMap_init_$Create$();
2420
+ var tmp_1 = this;
2421
+ // Inline function 'kotlin.collections.mutableMapOf' call
2422
+ tmp_1.f5o_1 = LinkedHashMap_init_$Create$();
2423
+ }
2424
+ protoOf(RandomPoolProviderImpl).j5n = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) {
2425
+ var tmp = new $getCardDeckCOROUTINE$3(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
2426
+ tmp.f9_1 = Unit_instance;
2427
+ tmp.g9_1 = null;
2428
+ return tmp.l9();
322
2429
  };
323
- protoOf(HttpConfig).yi = function () {
324
- return this.loggingLevel;
2430
+ protoOf(RandomPoolProviderImpl).i5q = function (gameId) {
2431
+ return this.f5o_1.h2(gameId);
325
2432
  };
326
- protoOf(HttpConfig).j2t = function () {
327
- return this.json;
2433
+ protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
2434
+ return this.i5q(gameId);
328
2435
  };
329
- protoOf(HttpConfig).p2t = function (baseUrl, timeoutMillis, loggingLevel, json) {
330
- return new HttpConfig(baseUrl, timeoutMillis, loggingLevel, json);
2436
+ protoOf(RandomPoolProviderImpl).j5q = function (id) {
2437
+ return this.e5o_1.h2(id);
331
2438
  };
332
- protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, loggingLevel, json, $super) {
333
- baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
334
- timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
335
- loggingLevel = loggingLevel === VOID ? this.loggingLevel : loggingLevel;
336
- json = json === VOID ? this.json : json;
337
- return this.p2t(baseUrl, timeoutMillis, loggingLevel, json);
2439
+ protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
2440
+ return this.j5q(id);
338
2441
  };
339
- protoOf(HttpConfig).toString = function () {
340
- return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis.toString() + ', loggingLevel=' + this.loggingLevel.toString() + ', json=' + toString(this.json) + ')';
2442
+ protoOf(RandomPoolProviderImpl).k5q = function () {
2443
+ return this.e5o_1.m();
341
2444
  };
342
- protoOf(HttpConfig).hashCode = function () {
343
- var result = getStringHashCode(this.baseUrl);
344
- result = imul(result, 31) + this.timeoutMillis.hashCode() | 0;
345
- result = imul(result, 31) + this.loggingLevel.hashCode() | 0;
346
- result = imul(result, 31) + hashCode(this.json) | 0;
2445
+ protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
2446
+ return this.k5q();
2447
+ };
2448
+ protoOf(RandomPoolProviderImpl).l5n = function (gameId) {
2449
+ var gameCardDecksRecord = this.f5o_1.h2(gameId);
2450
+ if (!(gameCardDecksRecord == null)) {
2451
+ // Inline function 'kotlin.collections.get' call
2452
+ var this_0 = this.e5o_1;
2453
+ var key = gameCardDecksRecord.signature;
2454
+ var randomPoolValue = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).h2(key);
2455
+ if (!(randomPoolValue == null)) {
2456
+ // Inline function 'kotlin.apply' call
2457
+ var this_1 = toMutableMap(randomPoolValue.n5n_1);
2458
+ // Inline function 'kotlin.contracts.contract' call
2459
+ // Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
2460
+ this_1.l2(gameId);
2461
+ var newPoolValue = randomPoolValue.t5n(VOID, toMap(this_1));
2462
+ if (newPoolValue.n5n_1.p()) {
2463
+ // Inline function 'kotlin.collections.remove' call
2464
+ var this_2 = this.e5o_1;
2465
+ var key_0 = gameCardDecksRecord.signature;
2466
+ (isInterface(this_2, KtMutableMap) ? this_2 : THROW_CCE()).l2(key_0);
2467
+ } else {
2468
+ // Inline function 'kotlin.collections.set' call
2469
+ var this_3 = this.e5o_1;
2470
+ var key_1 = gameCardDecksRecord.id;
2471
+ this_3.k2(key_1, newPoolValue);
2472
+ }
2473
+ }
2474
+ }
2475
+ };
2476
+ function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
2477
+ return function ($this$defaultRequest) {
2478
+ header($this$defaultRequest, 'Content-Type', 'application/json');
2479
+ $this$defaultRequest.a32($url);
2480
+ return Unit_instance;
2481
+ };
2482
+ }
2483
+ function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
2484
+ this.l5q_1 = $externalLogger;
2485
+ }
2486
+ protoOf(ApiCommonConfigs$setupLogging$1$1).k3s = function (message) {
2487
+ this.l5q_1(message);
2488
+ };
2489
+ function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
2490
+ return function ($this$install) {
2491
+ $this$install.a3u(get_DEFAULT(Companion_instance));
2492
+ $this$install.z3t_1 = $config.o5q_1;
2493
+ $this$install.a3u(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
2494
+ return Unit_instance;
2495
+ };
2496
+ }
2497
+ function ApiCommonConfigs$setupContentNegotiation$lambda($json) {
2498
+ return function ($this$install) {
2499
+ json($this$install, $json);
2500
+ return Unit_instance;
2501
+ };
2502
+ }
2503
+ function ApiCommonConfigs() {
2504
+ }
2505
+ protoOf(ApiCommonConfigs).q5q = function (_this__u8e3s4, config, externalLogger) {
2506
+ _this__u8e3s4.m2t_1 = true;
2507
+ this.r5q(_this__u8e3s4, config.m5q_1);
2508
+ this.s5q(_this__u8e3s4, config.p5q_1);
2509
+ this.t5q(_this__u8e3s4, config, externalLogger);
2510
+ };
2511
+ protoOf(ApiCommonConfigs).r5q = function (_this__u8e3s4, url) {
2512
+ defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
2513
+ };
2514
+ protoOf(ApiCommonConfigs).t5q = function (_this__u8e3s4, config, externalLogger) {
2515
+ var tmp = Companion_getInstance_0();
2516
+ _this__u8e3s4.h2u(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
2517
+ };
2518
+ protoOf(ApiCommonConfigs).s5q = function (_this__u8e3s4, json) {
2519
+ var tmp = Plugin_getInstance();
2520
+ _this__u8e3s4.h2u(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
2521
+ };
2522
+ var ApiCommonConfigs_instance;
2523
+ function ApiCommonConfigs_getInstance() {
2524
+ return ApiCommonConfigs_instance;
2525
+ }
2526
+ function HttpParams$_init_$lambda_l7stpf($this$Json) {
2527
+ $this$Json.m4s_1 = true;
2528
+ $this$Json.k4s_1 = true;
2529
+ $this$Json.j4s_1 = true;
2530
+ $this$Json.i4s_1 = false;
2531
+ return Unit_instance;
2532
+ }
2533
+ function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
2534
+ timeoutMillis = timeoutMillis === VOID ? new Long(30000, 0) : timeoutMillis;
2535
+ loggingLevel = loggingLevel === VOID ? LogLevel_ALL_getInstance() : loggingLevel;
2536
+ var tmp;
2537
+ if (json === VOID) {
2538
+ tmp = Json(VOID, HttpParams$_init_$lambda_l7stpf);
2539
+ } else {
2540
+ tmp = json;
2541
+ }
2542
+ json = tmp;
2543
+ this.m5q_1 = baseUrl;
2544
+ this.n5q_1 = timeoutMillis;
2545
+ this.o5q_1 = loggingLevel;
2546
+ this.p5q_1 = json;
2547
+ }
2548
+ protoOf(HttpParams).toString = function () {
2549
+ return 'HttpParams(baseUrl=' + this.m5q_1 + ', timeoutMillis=' + this.n5q_1.toString() + ', loggingLevel=' + this.o5q_1.toString() + ', json=' + toString(this.p5q_1) + ')';
2550
+ };
2551
+ protoOf(HttpParams).hashCode = function () {
2552
+ var result = getStringHashCode(this.m5q_1);
2553
+ result = imul(result, 31) + this.n5q_1.hashCode() | 0;
2554
+ result = imul(result, 31) + this.o5q_1.hashCode() | 0;
2555
+ result = imul(result, 31) + hashCode(this.p5q_1) | 0;
347
2556
  return result;
348
2557
  };
349
- protoOf(HttpConfig).equals = function (other) {
2558
+ protoOf(HttpParams).equals = function (other) {
350
2559
  if (this === other)
351
2560
  return true;
352
- if (!(other instanceof HttpConfig))
2561
+ if (!(other instanceof HttpParams))
353
2562
  return false;
354
- var tmp0_other_with_cast = other instanceof HttpConfig ? other : THROW_CCE();
355
- if (!(this.baseUrl === tmp0_other_with_cast.baseUrl))
2563
+ var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
2564
+ if (!(this.m5q_1 === tmp0_other_with_cast.m5q_1))
356
2565
  return false;
357
- if (!this.timeoutMillis.equals(tmp0_other_with_cast.timeoutMillis))
2566
+ if (!this.n5q_1.equals(tmp0_other_with_cast.n5q_1))
358
2567
  return false;
359
- if (!this.loggingLevel.equals(tmp0_other_with_cast.loggingLevel))
2568
+ if (!this.o5q_1.equals(tmp0_other_with_cast.o5q_1))
360
2569
  return false;
361
- if (!equals(this.json, tmp0_other_with_cast.json))
2570
+ if (!equals(this.p5q_1, tmp0_other_with_cast.p5q_1))
362
2571
  return false;
363
2572
  return true;
364
2573
  };
2574
+ function CustomRandom() {
2575
+ }
2576
+ function nextInt($this) {
2577
+ return nextBits($this, 32);
2578
+ }
2579
+ function nextBits($this, numBits) {
2580
+ var numBytes = (numBits + 7 | 0) / 8 | 0;
2581
+ var b = new Int8Array(numBytes);
2582
+ var next = 0;
2583
+ nextBytesCopyTo($this, b);
2584
+ var inductionVariable = 0;
2585
+ if (inductionVariable < numBytes)
2586
+ do {
2587
+ var i = inductionVariable;
2588
+ inductionVariable = inductionVariable + 1 | 0;
2589
+ next = (next << 8) + (b[i] & 255) | 0;
2590
+ }
2591
+ while (inductionVariable < numBytes);
2592
+ return next >>> (imul(numBytes, 8) - numBits | 0) | 0;
2593
+ }
2594
+ function nextBytesCopyTo($this, bytes) {
2595
+ try {
2596
+ $this.x5q_1.p5i(bytes);
2597
+ } catch ($p) {
2598
+ if ($p instanceof SecRandomCopyException) {
2599
+ var error = $p;
2600
+ $this.w5q_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
2601
+ $this.y5q_1.ng(bytes);
2602
+ return Unit_instance;
2603
+ } else {
2604
+ throw $p;
2605
+ }
2606
+ }
2607
+ }
2608
+ function fastLog2($this, value) {
2609
+ // Inline function 'kotlin.countLeadingZeroBits' call
2610
+ return 31 - clz32(value) | 0;
2611
+ }
2612
+ function checkRangeBounds($this, from, until) {
2613
+ // Inline function 'kotlin.contracts.contract' call
2614
+ var tmp;
2615
+ if (!(until > from)) {
2616
+ // Inline function 'games.raspberry.card_game.random.utils.random.SecureRandom.checkRangeBounds.<anonymous>' call
2617
+ var message = boundsErrorMessage($this, from, until);
2618
+ throw IllegalArgumentException_init_$Create$(toString(message));
2619
+ }
2620
+ return tmp;
2621
+ }
2622
+ function boundsErrorMessage($this, from, until) {
2623
+ return 'Random range is empty: [' + toString(from) + ', ' + toString(until) + ').';
2624
+ }
2625
+ function SecureRandom_0(logger) {
2626
+ logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
2627
+ this.w5q_1 = logger;
2628
+ this.x5q_1 = new SecureRandom();
2629
+ this.y5q_1 = Default_getInstance();
2630
+ }
2631
+ protoOf(SecureRandom_0).u5q = function (from, until) {
2632
+ checkRangeBounds(this, from, until);
2633
+ var n = until - from | 0;
2634
+ if (n > 0 || n === -2147483648) {
2635
+ var tmp;
2636
+ if ((n & (-n | 0)) === n) {
2637
+ var bitCount = fastLog2(this, n);
2638
+ tmp = nextBits(this, bitCount);
2639
+ } else {
2640
+ var v;
2641
+ do {
2642
+ var bits = nextInt(this) >>> 1 | 0;
2643
+ v = bits % n | 0;
2644
+ }
2645
+ while (((bits - v | 0) + (n - 1 | 0) | 0) < 0);
2646
+ tmp = v;
2647
+ }
2648
+ var rnd = tmp;
2649
+ return from + rnd | 0;
2650
+ } else {
2651
+ while (true) {
2652
+ var rnd_0 = nextInt(this);
2653
+ if (from <= rnd_0 ? rnd_0 < until : false)
2654
+ return rnd_0;
2655
+ }
2656
+ }
2657
+ };
2658
+ function HttpFactory$provideHttpClient$lambda$lambda($config) {
2659
+ return function ($this$install) {
2660
+ $this$install.y3d($config.n5q_1);
2661
+ $this$install.w3d($config.n5q_1);
2662
+ return Unit_instance;
2663
+ };
2664
+ }
2665
+ function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
2666
+ return function ($this$HttpClient) {
2667
+ var tmp = Plugin_getInstance_0();
2668
+ $this$HttpClient.h2u(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
2669
+ ApiCommonConfigs_instance.q5q($this$HttpClient, $config, $externalLogger);
2670
+ return Unit_instance;
2671
+ };
2672
+ }
2673
+ function HttpFactory() {
2674
+ }
2675
+ protoOf(HttpFactory).z5q = function (config, externalLogger) {
2676
+ var tmp = Js_instance;
2677
+ return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
2678
+ };
2679
+ var HttpFactory_instance;
2680
+ function HttpFactory_getInstance() {
2681
+ return HttpFactory_instance;
2682
+ }
2683
+ //region block: post-declaration
2684
+ protoOf($serializer).m4d = typeParametersSerializers;
2685
+ protoOf($serializer_0).m4d = typeParametersSerializers;
2686
+ protoOf($serializer_2).m4d = typeParametersSerializers;
2687
+ protoOf($serializer_3).m4d = typeParametersSerializers;
2688
+ protoOf($serializer_5).m4d = typeParametersSerializers;
2689
+ protoOf($serializer_6).m4d = typeParametersSerializers;
2690
+ protoOf(RandomPoolProviderImpl).k5n = getCardDeck$default;
2691
+ protoOf(SecureRandom_0).v5q = shuffle;
2692
+ //endregion
365
2693
  //region block: init
366
- Companion_instance = new Companion();
2694
+ Companion_instance_0 = new Companion();
2695
+ Companion_instance_1 = new Companion_0();
2696
+ Companion_instance_2 = new Companion_1();
2697
+ Companion_instance_5 = new Companion_4();
2698
+ Companion_instance_7 = new Companion_6();
2699
+ Companion_instance_9 = new Companion_8();
2700
+ Companion_instance_10 = new Companion_9();
2701
+ ApiCommonConfigs_instance = new ApiCommonConfigs();
2702
+ HttpFactory_instance = new HttpFactory();
367
2703
  //endregion
368
2704
  //region block: exports
369
2705
  function $jsExportAll$(_) {
2706
+ var $games = _.games || (_.games = {});
2707
+ var $games$raspberry = $games.raspberry || ($games.raspberry = {});
2708
+ var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
2709
+ var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
2710
+ var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
2711
+ var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
2712
+ $games$raspberry$card_game$random$data$models.CardDecksRequestUserData = CardDecksRequestUserData;
2713
+ $games$raspberry$card_game$random$data$models.CardDeckRequestUserData = CardDeckRequestUserData;
2714
+ $games$raspberry$card_game$random$data$models.UserInfoData = UserInfoData;
370
2715
  var $games = _.games || (_.games = {});
371
2716
  var $games$raspberry = $games.raspberry || ($games.raspberry = {});
372
2717
  var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
@@ -374,7 +2719,7 @@
374
2719
  var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
375
2720
  var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
376
2721
  $games$raspberry$card_game$random$data$models.GameCardDecksRecord = GameCardDecksRecord;
377
- defineProp($games$raspberry$card_game$random$data$models.GameCardDecksRecord, 'Companion', Companion_getInstance);
2722
+ defineProp($games$raspberry$card_game$random$data$models.GameCardDecksRecord, 'Companion', Companion_getInstance_2);
378
2723
  $games$raspberry$card_game$random$data$models.GameCardDeckData = GameCardDeckData;
379
2724
  var $games = _.games || (_.games = {});
380
2725
  var $games$raspberry = $games.raspberry || ($games.raspberry = {});
@@ -382,20 +2727,28 @@
382
2727
  var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
383
2728
  var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
384
2729
  var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
385
- $games$raspberry$card_game$random$data$models.RandomOrgConfig = RandomOrgConfig;
2730
+ $games$raspberry$card_game$random$data$models.HttpConfig = HttpConfig;
386
2731
  var $games = _.games || (_.games = {});
387
2732
  var $games$raspberry = $games.raspberry || ($games.raspberry = {});
388
2733
  var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
389
2734
  var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
390
- var $games$raspberry$card_game$random$di = $games$raspberry$card_game$random.di || ($games$raspberry$card_game$random.di = {});
391
- $games$raspberry$card_game$random$di.HttpConfig = HttpConfig;
2735
+ var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
2736
+ var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
2737
+ $games$raspberry$card_game$random$data$models.RandomOrgConfig = RandomOrgConfig;
392
2738
  }
393
2739
  $jsExportAll$(_);
394
2740
  _.$jsExportAll$ = $jsExportAll$;
395
2741
  _.$_$ = _.$_$ || {};
396
2742
  _.$_$.a = CardDeckRequestUserData;
397
- _.$_$.b = UserInfoData;
398
- _.$_$.c = RandomPoolProvider;
2743
+ _.$_$.b = RandomOrgConfig;
2744
+ _.$_$.c = UserInfoData;
2745
+ _.$_$.d = mapToParams;
2746
+ _.$_$.e = RandomOrgApiServiceImpl;
2747
+ _.$_$.f = RandomOrgApiService;
2748
+ _.$_$.g = RandomPoolProviderImpl;
2749
+ _.$_$.h = RandomPoolProvider;
2750
+ _.$_$.i = SecureRandom_0;
2751
+ _.$_$.j = HttpFactory_instance;
399
2752
  //endregion
400
2753
  return _;
401
2754
  }));