raspberry_games_server_game_logic 1.8.362 → 1.8.364
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +95 -95
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +797 -794
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2091 -2030
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +2052 -2095
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18105 -18376
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +1812 -1868
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5696 -5645
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +83 -79
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3341 -3350
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +431 -415
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2654 -2650
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1803 -1791
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +262 -269
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2653 -2729
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +581 -606
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +13 -13
- package/ktor-ktor-http.js +903 -899
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1985 -1976
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/ktor-ktor-serialization-kotlinx.js +300 -316
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +133 -141
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +846 -856
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +61 -61
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/random-library-crypto-rand.js +16 -16
- package/random-library-crypto-rand.js.map +1 -1
- package/random-library-secure-random.js +10 -10
- package/random-library-secure-random.js.map +1 -1
- package/raspberry-cardgame-lib-core.js +372 -375
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +119 -119
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1167 -1194
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +39 -39
- package/uuid.js.map +1 -1
|
@@ -50,90 +50,90 @@
|
|
|
50
50
|
//region block: imports
|
|
51
51
|
var imul = Math.imul;
|
|
52
52
|
var clz32 = Math.clz32;
|
|
53
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
54
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
55
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
56
|
-
var VOID = kotlin_kotlin.$_$.
|
|
57
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
58
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
59
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
60
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
61
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
62
|
-
var toString = kotlin_kotlin.$_$.
|
|
63
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var equals = kotlin_kotlin.$_$.
|
|
65
|
-
var listOf = kotlin_kotlin.$_$.
|
|
66
|
-
var plus = kotlin_kotlin.$_$.
|
|
67
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
68
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
69
|
-
var
|
|
53
|
+
var protoOf = kotlin_kotlin.$_$.hd;
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ic;
|
|
55
|
+
var RuntimeException = kotlin_kotlin.$_$.jh;
|
|
56
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
57
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.z1;
|
|
58
|
+
var captureStack = kotlin_kotlin.$_$.rb;
|
|
59
|
+
var initMetadataForClass = kotlin_kotlin.$_$.hc;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.fc;
|
|
61
|
+
var THROW_CCE = kotlin_kotlin.$_$.kh;
|
|
62
|
+
var toString = kotlin_kotlin.$_$.kd;
|
|
63
|
+
var hashCode = kotlin_kotlin.$_$.gc;
|
|
64
|
+
var equals = kotlin_kotlin.$_$.ac;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.f8;
|
|
66
|
+
var plus = kotlin_kotlin.$_$.q8;
|
|
67
|
+
var emptyList = kotlin_kotlin.$_$.d7;
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.zb;
|
|
69
|
+
var fromInt = kotlin_kotlin.$_$.cb;
|
|
70
70
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
71
71
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
72
72
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
73
73
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
74
74
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
75
75
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
76
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
76
|
+
var initMetadataForObject = kotlin_kotlin.$_$.mc;
|
|
77
77
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
78
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
79
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
80
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
78
|
+
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
79
|
+
var objectCreate = kotlin_kotlin.$_$.gd;
|
|
80
|
+
var toString_0 = kotlin_kotlin.$_$.oi;
|
|
81
81
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
82
82
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
83
83
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
84
|
-
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.
|
|
85
|
-
var lazy = kotlin_kotlin.$_$.
|
|
84
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
85
|
+
var lazy = kotlin_kotlin.$_$.gi;
|
|
86
86
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
87
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
88
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
89
|
-
var getValue = kotlin_kotlin.$_$.
|
|
87
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.cc;
|
|
88
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.kc;
|
|
89
|
+
var getValue = kotlin_kotlin.$_$.q7;
|
|
90
90
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
91
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
91
|
+
var CoroutineImpl = kotlin_kotlin.$_$.na;
|
|
92
92
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
93
93
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
94
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
94
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
95
95
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
96
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
97
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
98
|
-
var createKType = kotlin_kotlin.$_$.
|
|
99
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
96
|
+
var getKClass = kotlin_kotlin.$_$.ce;
|
|
97
|
+
var arrayOf = kotlin_kotlin.$_$.yh;
|
|
98
|
+
var createKType = kotlin_kotlin.$_$.ae;
|
|
99
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.zd;
|
|
100
100
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
101
101
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
102
102
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
103
103
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
104
104
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
105
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
105
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.y9;
|
|
106
106
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
107
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
108
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
109
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
110
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
111
|
-
var Long = kotlin_kotlin.$_$.
|
|
112
|
-
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.
|
|
113
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
114
|
-
var Duration = kotlin_kotlin.$_$.
|
|
115
|
-
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.
|
|
116
|
-
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
var get_lastIndex = kotlin_kotlin.$_$.c8;
|
|
121
|
-
var System_instance = kotlin_kotlin.$_$.y4;
|
|
122
|
-
var Duration__times_impl_sfuzvp = kotlin_kotlin.$_$.m2;
|
|
123
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
107
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.jc;
|
|
108
|
+
var KtMap = kotlin_kotlin.$_$.q5;
|
|
109
|
+
var isInterface = kotlin_kotlin.$_$.vc;
|
|
110
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.v4;
|
|
111
|
+
var Long = kotlin_kotlin.$_$.fh;
|
|
112
|
+
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.c;
|
|
113
|
+
var toDuration = kotlin_kotlin.$_$.rg;
|
|
114
|
+
var Duration = kotlin_kotlin.$_$.og;
|
|
115
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.k2;
|
|
116
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.f2;
|
|
117
|
+
var System_instance = kotlin_kotlin.$_$.u4;
|
|
118
|
+
var Duration__times_impl_sfuzvp = kotlin_kotlin.$_$.i2;
|
|
119
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
124
120
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
125
121
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
126
|
-
var Result = kotlin_kotlin.$_$.
|
|
122
|
+
var Result = kotlin_kotlin.$_$.ih;
|
|
127
123
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
128
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
129
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
130
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
131
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
132
|
-
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.
|
|
133
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
134
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
124
|
+
var Companion_instance = kotlin_kotlin.$_$.a5;
|
|
125
|
+
var createFailure = kotlin_kotlin.$_$.ai;
|
|
126
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t2;
|
|
127
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.lc;
|
|
128
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.e2;
|
|
129
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
130
|
+
var firstOrNull = kotlin_kotlin.$_$.i7;
|
|
135
131
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
136
132
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
133
|
+
var toMutableMap = kotlin_kotlin.$_$.o9;
|
|
134
|
+
var toMap = kotlin_kotlin.$_$.l9;
|
|
135
|
+
var emptyMap = kotlin_kotlin.$_$.e7;
|
|
136
|
+
var get_lastIndex = kotlin_kotlin.$_$.y7;
|
|
137
137
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
138
138
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.b;
|
|
139
139
|
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
@@ -143,15 +143,16 @@
|
|
|
143
143
|
var Plugin_getInstance = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
|
|
144
144
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
145
145
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
146
|
+
var equalsLong = kotlin_kotlin.$_$.bb;
|
|
146
147
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
147
148
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
148
149
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
149
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
150
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
151
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
152
|
-
var take = kotlin_kotlin.$_$.
|
|
153
|
-
var drop = kotlin_kotlin.$_$.
|
|
154
|
-
var reverse = kotlin_kotlin.$_$.
|
|
150
|
+
var Default_getInstance = kotlin_kotlin.$_$.r4;
|
|
151
|
+
var toMutableList = kotlin_kotlin.$_$.n9;
|
|
152
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
153
|
+
var take = kotlin_kotlin.$_$.f9;
|
|
154
|
+
var drop = kotlin_kotlin.$_$.c7;
|
|
155
|
+
var reverse = kotlin_kotlin.$_$.v8;
|
|
155
156
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
156
157
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
157
158
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -203,10 +204,9 @@
|
|
|
203
204
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
204
205
|
signed = signed === VOID ? false : signed;
|
|
205
206
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
206
|
-
return $super === VOID ? this.
|
|
207
|
+
return $super === VOID ? this.i58(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.i58.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
207
208
|
}
|
|
208
209
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
209
|
-
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
210
210
|
initMetadataForCompanion(Companion_9);
|
|
211
211
|
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda, CoroutineImpl, VOID, [1]);
|
|
212
212
|
initMetadataForLambda(RandomPoolProviderImpl$prefetchCardDecks$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -214,12 +214,13 @@
|
|
|
214
214
|
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$, CoroutineImpl);
|
|
215
215
|
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE$, CoroutineImpl);
|
|
216
216
|
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7, 5]);
|
|
217
|
+
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
217
218
|
initMetadataForClass(ApiCommonConfigs$setupLogging$2$1);
|
|
218
219
|
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
219
220
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
220
221
|
function nextInt$default(from, until, $super) {
|
|
221
222
|
from = from === VOID ? 0 : from;
|
|
222
|
-
return $super === VOID ? this.
|
|
223
|
+
return $super === VOID ? this.og(from, until) : $super.og.call(this, from, until);
|
|
223
224
|
}
|
|
224
225
|
function shuffle(list) {
|
|
225
226
|
var inductionVariable = get_lastIndex(list);
|
|
@@ -227,8 +228,8 @@
|
|
|
227
228
|
do {
|
|
228
229
|
var i = inductionVariable;
|
|
229
230
|
inductionVariable = inductionVariable + -1 | 0;
|
|
230
|
-
var j = this.
|
|
231
|
-
list.
|
|
231
|
+
var j = this.og(0, i + 1 | 0);
|
|
232
|
+
list.l2(j, list.l2(i, list.p(j)));
|
|
232
233
|
}
|
|
233
234
|
while (1 <= inductionVariable);
|
|
234
235
|
return list;
|
|
@@ -238,7 +239,7 @@
|
|
|
238
239
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
239
240
|
//endregion
|
|
240
241
|
function Companion() {
|
|
241
|
-
this.
|
|
242
|
+
this.u53_1 = 100001;
|
|
242
243
|
}
|
|
243
244
|
var Companion_instance_1;
|
|
244
245
|
function Companion_getInstance_2() {
|
|
@@ -249,31 +250,31 @@
|
|
|
249
250
|
cause = cause === VOID ? null : cause;
|
|
250
251
|
RuntimeException_init_$Init$(message, cause, this);
|
|
251
252
|
captureStack(this, RandomException);
|
|
252
|
-
this.
|
|
253
|
+
this.v53_1 = code;
|
|
253
254
|
}
|
|
254
255
|
function CardDecksRequestUserData(id, count) {
|
|
255
256
|
this.id = id;
|
|
256
257
|
this.count = count;
|
|
257
258
|
}
|
|
258
|
-
protoOf(CardDecksRequestUserData).
|
|
259
|
+
protoOf(CardDecksRequestUserData).w53 = function () {
|
|
259
260
|
return this.id;
|
|
260
261
|
};
|
|
261
|
-
protoOf(CardDecksRequestUserData).
|
|
262
|
+
protoOf(CardDecksRequestUserData).x53 = function () {
|
|
262
263
|
return this.count;
|
|
263
264
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
265
|
+
protoOf(CardDecksRequestUserData).ne = function () {
|
|
265
266
|
return this.id;
|
|
266
267
|
};
|
|
267
|
-
protoOf(CardDecksRequestUserData).
|
|
268
|
+
protoOf(CardDecksRequestUserData).oe = function () {
|
|
268
269
|
return this.count;
|
|
269
270
|
};
|
|
270
|
-
protoOf(CardDecksRequestUserData).
|
|
271
|
+
protoOf(CardDecksRequestUserData).y53 = function (id, count) {
|
|
271
272
|
return new CardDecksRequestUserData(id, count);
|
|
272
273
|
};
|
|
273
274
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
274
275
|
id = id === VOID ? this.id : id;
|
|
275
276
|
count = count === VOID ? this.count : count;
|
|
276
|
-
return $super === VOID ? this.
|
|
277
|
+
return $super === VOID ? this.y53(id, count) : $super.y53.call(this, id, count);
|
|
277
278
|
};
|
|
278
279
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
279
280
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -299,25 +300,25 @@
|
|
|
299
300
|
this.players = players;
|
|
300
301
|
this.gameId = gameId;
|
|
301
302
|
}
|
|
302
|
-
protoOf(CardDeckRequestUserData).
|
|
303
|
+
protoOf(CardDeckRequestUserData).z53 = function () {
|
|
303
304
|
return this.players;
|
|
304
305
|
};
|
|
305
|
-
protoOf(CardDeckRequestUserData).
|
|
306
|
+
protoOf(CardDeckRequestUserData).a54 = function () {
|
|
306
307
|
return this.gameId;
|
|
307
308
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
309
|
+
protoOf(CardDeckRequestUserData).ne = function () {
|
|
309
310
|
return this.players;
|
|
310
311
|
};
|
|
311
|
-
protoOf(CardDeckRequestUserData).
|
|
312
|
+
protoOf(CardDeckRequestUserData).oe = function () {
|
|
312
313
|
return this.gameId;
|
|
313
314
|
};
|
|
314
|
-
protoOf(CardDeckRequestUserData).
|
|
315
|
+
protoOf(CardDeckRequestUserData).b54 = function (players, gameId) {
|
|
315
316
|
return new CardDeckRequestUserData(players, gameId);
|
|
316
317
|
};
|
|
317
318
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
318
319
|
players = players === VOID ? this.players : players;
|
|
319
320
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
320
|
-
return $super === VOID ? this.
|
|
321
|
+
return $super === VOID ? this.b54(players, gameId) : $super.b54.call(this, players, gameId);
|
|
321
322
|
};
|
|
322
323
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
323
324
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -343,25 +344,25 @@
|
|
|
343
344
|
this.id = id;
|
|
344
345
|
this.name = name;
|
|
345
346
|
}
|
|
346
|
-
protoOf(UserInfoData).
|
|
347
|
+
protoOf(UserInfoData).w53 = function () {
|
|
347
348
|
return this.id;
|
|
348
349
|
};
|
|
349
|
-
protoOf(UserInfoData).
|
|
350
|
+
protoOf(UserInfoData).q2 = function () {
|
|
350
351
|
return this.name;
|
|
351
352
|
};
|
|
352
|
-
protoOf(UserInfoData).
|
|
353
|
+
protoOf(UserInfoData).ne = function () {
|
|
353
354
|
return this.id;
|
|
354
355
|
};
|
|
355
|
-
protoOf(UserInfoData).
|
|
356
|
+
protoOf(UserInfoData).oe = function () {
|
|
356
357
|
return this.name;
|
|
357
358
|
};
|
|
358
|
-
protoOf(UserInfoData).
|
|
359
|
+
protoOf(UserInfoData).c54 = function (id, name) {
|
|
359
360
|
return new UserInfoData(id, name);
|
|
360
361
|
};
|
|
361
362
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
362
363
|
id = id === VOID ? this.id : id;
|
|
363
364
|
name = name === VOID ? this.name : name;
|
|
364
|
-
return $super === VOID ? this.
|
|
365
|
+
return $super === VOID ? this.c54(id, name) : $super.c54.call(this, id, name);
|
|
365
366
|
};
|
|
366
367
|
protoOf(UserInfoData).toString = function () {
|
|
367
368
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -384,19 +385,19 @@
|
|
|
384
385
|
return true;
|
|
385
386
|
};
|
|
386
387
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
388
|
+
this.d54_1 = cardDecks;
|
|
389
|
+
this.e54_1 = responseText;
|
|
390
|
+
this.f54_1 = id;
|
|
391
|
+
this.g54_1 = signature;
|
|
391
392
|
}
|
|
392
393
|
protoOf(CardDeckResult).toString = function () {
|
|
393
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
394
|
+
return 'CardDeckResult(cardDecks=' + toString(this.d54_1) + ', responseText=' + this.e54_1 + ', id=' + this.f54_1 + ', signature=' + this.g54_1 + ')';
|
|
394
395
|
};
|
|
395
396
|
protoOf(CardDeckResult).hashCode = function () {
|
|
396
|
-
var result = hashCode(this.
|
|
397
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
398
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
399
|
-
result = imul(result, 31) + (this.
|
|
397
|
+
var result = hashCode(this.d54_1);
|
|
398
|
+
result = imul(result, 31) + getStringHashCode(this.e54_1) | 0;
|
|
399
|
+
result = imul(result, 31) + getStringHashCode(this.f54_1) | 0;
|
|
400
|
+
result = imul(result, 31) + (this.g54_1 == null ? 0 : getStringHashCode(this.g54_1)) | 0;
|
|
400
401
|
return result;
|
|
401
402
|
};
|
|
402
403
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -405,13 +406,13 @@
|
|
|
405
406
|
if (!(other instanceof CardDeckResult))
|
|
406
407
|
return false;
|
|
407
408
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
408
|
-
if (!equals(this.
|
|
409
|
+
if (!equals(this.d54_1, tmp0_other_with_cast.d54_1))
|
|
409
410
|
return false;
|
|
410
|
-
if (!(this.
|
|
411
|
+
if (!(this.e54_1 === tmp0_other_with_cast.e54_1))
|
|
411
412
|
return false;
|
|
412
|
-
if (!(this.
|
|
413
|
+
if (!(this.f54_1 === tmp0_other_with_cast.f54_1))
|
|
413
414
|
return false;
|
|
414
|
-
if (!(this.
|
|
415
|
+
if (!(this.g54_1 == tmp0_other_with_cast.g54_1))
|
|
415
416
|
return false;
|
|
416
417
|
return true;
|
|
417
418
|
};
|
|
@@ -434,31 +435,31 @@
|
|
|
434
435
|
this.userData = userData;
|
|
435
436
|
this.rounds = rounds;
|
|
436
437
|
}
|
|
437
|
-
protoOf(GameCardDecksRecord).
|
|
438
|
+
protoOf(GameCardDecksRecord).h54 = function () {
|
|
438
439
|
return this.poolId;
|
|
439
440
|
};
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
441
|
+
protoOf(GameCardDecksRecord).i54 = function () {
|
|
441
442
|
return this.signature;
|
|
442
443
|
};
|
|
443
|
-
protoOf(GameCardDecksRecord).
|
|
444
|
+
protoOf(GameCardDecksRecord).j54 = function () {
|
|
444
445
|
return this.userData;
|
|
445
446
|
};
|
|
446
|
-
protoOf(GameCardDecksRecord).
|
|
447
|
+
protoOf(GameCardDecksRecord).k54 = function () {
|
|
447
448
|
return this.rounds;
|
|
448
449
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
450
|
+
protoOf(GameCardDecksRecord).ne = function () {
|
|
450
451
|
return this.poolId;
|
|
451
452
|
};
|
|
452
|
-
protoOf(GameCardDecksRecord).
|
|
453
|
+
protoOf(GameCardDecksRecord).oe = function () {
|
|
453
454
|
return this.signature;
|
|
454
455
|
};
|
|
455
|
-
protoOf(GameCardDecksRecord).
|
|
456
|
+
protoOf(GameCardDecksRecord).xl = function () {
|
|
456
457
|
return this.userData;
|
|
457
458
|
};
|
|
458
|
-
protoOf(GameCardDecksRecord).
|
|
459
|
+
protoOf(GameCardDecksRecord).l54 = function () {
|
|
459
460
|
return this.rounds;
|
|
460
461
|
};
|
|
461
|
-
protoOf(GameCardDecksRecord).
|
|
462
|
+
protoOf(GameCardDecksRecord).m54 = function (poolId, signature, userData, rounds) {
|
|
462
463
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
463
464
|
};
|
|
464
465
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -466,7 +467,7 @@
|
|
|
466
467
|
signature = signature === VOID ? this.signature : signature;
|
|
467
468
|
userData = userData === VOID ? this.userData : userData;
|
|
468
469
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
469
|
-
return $super === VOID ? this.
|
|
470
|
+
return $super === VOID ? this.m54(poolId, signature, userData, rounds) : $super.m54.call(this, poolId, signature, userData, rounds);
|
|
470
471
|
};
|
|
471
472
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
472
473
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -498,25 +499,25 @@
|
|
|
498
499
|
this.cardDeckIndex = cardDeckIndex;
|
|
499
500
|
this.cards = cards;
|
|
500
501
|
}
|
|
501
|
-
protoOf(GameCardDeckData).
|
|
502
|
+
protoOf(GameCardDeckData).n54 = function () {
|
|
502
503
|
return this.cardDeckIndex;
|
|
503
504
|
};
|
|
504
|
-
protoOf(GameCardDeckData).
|
|
505
|
+
protoOf(GameCardDeckData).o54 = function () {
|
|
505
506
|
return this.cards;
|
|
506
507
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
508
|
+
protoOf(GameCardDeckData).ne = function () {
|
|
508
509
|
return this.cardDeckIndex;
|
|
509
510
|
};
|
|
510
|
-
protoOf(GameCardDeckData).
|
|
511
|
+
protoOf(GameCardDeckData).oe = function () {
|
|
511
512
|
return this.cards;
|
|
512
513
|
};
|
|
513
|
-
protoOf(GameCardDeckData).
|
|
514
|
+
protoOf(GameCardDeckData).p54 = function (cardDeckIndex, cards) {
|
|
514
515
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
515
516
|
};
|
|
516
517
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
517
518
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
518
519
|
cards = cards === VOID ? this.cards : cards;
|
|
519
|
-
return $super === VOID ? this.
|
|
520
|
+
return $super === VOID ? this.p54(cardDeckIndex, cards) : $super.p54.call(this, cardDeckIndex, cards);
|
|
520
521
|
};
|
|
521
522
|
protoOf(GameCardDeckData).toString = function () {
|
|
522
523
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -543,25 +544,25 @@
|
|
|
543
544
|
this.baseUrl = baseUrl;
|
|
544
545
|
this.timeoutMillis = timeoutMillis;
|
|
545
546
|
}
|
|
546
|
-
protoOf(HttpConfig).
|
|
547
|
+
protoOf(HttpConfig).q54 = function () {
|
|
547
548
|
return this.baseUrl;
|
|
548
549
|
};
|
|
549
|
-
protoOf(HttpConfig).
|
|
550
|
+
protoOf(HttpConfig).r54 = function () {
|
|
550
551
|
return this.timeoutMillis;
|
|
551
552
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
553
|
+
protoOf(HttpConfig).ne = function () {
|
|
553
554
|
return this.baseUrl;
|
|
554
555
|
};
|
|
555
|
-
protoOf(HttpConfig).
|
|
556
|
+
protoOf(HttpConfig).oe = function () {
|
|
556
557
|
return this.timeoutMillis;
|
|
557
558
|
};
|
|
558
|
-
protoOf(HttpConfig).
|
|
559
|
+
protoOf(HttpConfig).y53 = function (baseUrl, timeoutMillis) {
|
|
559
560
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
560
561
|
};
|
|
561
562
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
562
563
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
563
564
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
564
|
-
return $super === VOID ? this.
|
|
565
|
+
return $super === VOID ? this.y53(baseUrl, timeoutMillis) : $super.y53.call(this, baseUrl, timeoutMillis);
|
|
565
566
|
};
|
|
566
567
|
protoOf(HttpConfig).toString = function () {
|
|
567
568
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -584,7 +585,7 @@
|
|
|
584
585
|
return true;
|
|
585
586
|
};
|
|
586
587
|
function mapToParams(_this__u8e3s4) {
|
|
587
|
-
return new HttpParams(_this__u8e3s4.baseUrl,
|
|
588
|
+
return new HttpParams(_this__u8e3s4.baseUrl, fromInt(_this__u8e3s4.timeoutMillis));
|
|
588
589
|
}
|
|
589
590
|
function RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
590
591
|
apiKey = apiKey === VOID ? '68b344df-e962-4bf7-b77e-eea466b7f90a' : apiKey;
|
|
@@ -596,31 +597,31 @@
|
|
|
596
597
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
597
598
|
this.httpConfig = httpConfig;
|
|
598
599
|
}
|
|
599
|
-
protoOf(RandomOrgConfig).
|
|
600
|
+
protoOf(RandomOrgConfig).s54 = function () {
|
|
600
601
|
return this.apiKey;
|
|
601
602
|
};
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
603
|
+
protoOf(RandomOrgConfig).t54 = function () {
|
|
603
604
|
return this.poolSize;
|
|
604
605
|
};
|
|
605
|
-
protoOf(RandomOrgConfig).
|
|
606
|
+
protoOf(RandomOrgConfig).u54 = function () {
|
|
606
607
|
return this.thresholdForUsedPool;
|
|
607
608
|
};
|
|
608
|
-
protoOf(RandomOrgConfig).
|
|
609
|
+
protoOf(RandomOrgConfig).v54 = function () {
|
|
609
610
|
return this.httpConfig;
|
|
610
611
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
612
|
+
protoOf(RandomOrgConfig).ne = function () {
|
|
612
613
|
return this.apiKey;
|
|
613
614
|
};
|
|
614
|
-
protoOf(RandomOrgConfig).
|
|
615
|
+
protoOf(RandomOrgConfig).oe = function () {
|
|
615
616
|
return this.poolSize;
|
|
616
617
|
};
|
|
617
|
-
protoOf(RandomOrgConfig).
|
|
618
|
+
protoOf(RandomOrgConfig).xl = function () {
|
|
618
619
|
return this.thresholdForUsedPool;
|
|
619
620
|
};
|
|
620
|
-
protoOf(RandomOrgConfig).
|
|
621
|
+
protoOf(RandomOrgConfig).l54 = function () {
|
|
621
622
|
return this.httpConfig;
|
|
622
623
|
};
|
|
623
|
-
protoOf(RandomOrgConfig).
|
|
624
|
+
protoOf(RandomOrgConfig).w54 = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
624
625
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
625
626
|
};
|
|
626
627
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -628,7 +629,7 @@
|
|
|
628
629
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
629
630
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
630
631
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
631
|
-
return $super === VOID ? this.
|
|
632
|
+
return $super === VOID ? this.w54(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.w54.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
632
633
|
};
|
|
633
634
|
protoOf(RandomOrgConfig).toString = function () {
|
|
634
635
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -665,59 +666,59 @@
|
|
|
665
666
|
function $serializer() {
|
|
666
667
|
$serializer_instance = this;
|
|
667
668
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
668
|
-
tmp0_serialDesc.
|
|
669
|
-
tmp0_serialDesc.
|
|
670
|
-
this.
|
|
671
|
-
}
|
|
672
|
-
protoOf($serializer).
|
|
673
|
-
var tmp0_desc = this.
|
|
674
|
-
var tmp1_output = encoder.
|
|
675
|
-
tmp1_output.
|
|
676
|
-
tmp1_output.
|
|
677
|
-
tmp1_output.
|
|
678
|
-
};
|
|
679
|
-
protoOf($serializer).
|
|
680
|
-
return this.
|
|
681
|
-
};
|
|
682
|
-
protoOf($serializer).
|
|
683
|
-
var tmp0_desc = this.
|
|
669
|
+
tmp0_serialDesc.gz('jsonrpc', false);
|
|
670
|
+
tmp0_serialDesc.gz('error', false);
|
|
671
|
+
this.x54_1 = tmp0_serialDesc;
|
|
672
|
+
}
|
|
673
|
+
protoOf($serializer).y54 = function (encoder, value) {
|
|
674
|
+
var tmp0_desc = this.x54_1;
|
|
675
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
676
|
+
tmp1_output.dt(tmp0_desc, 0, value.z54_1);
|
|
677
|
+
tmp1_output.ht(tmp0_desc, 1, $serializer_getInstance_0(), value.a55_1);
|
|
678
|
+
tmp1_output.pr(tmp0_desc);
|
|
679
|
+
};
|
|
680
|
+
protoOf($serializer).co = function (encoder, value) {
|
|
681
|
+
return this.y54(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
682
|
+
};
|
|
683
|
+
protoOf($serializer).do = function (decoder) {
|
|
684
|
+
var tmp0_desc = this.x54_1;
|
|
684
685
|
var tmp1_flag = true;
|
|
685
686
|
var tmp2_index = 0;
|
|
686
687
|
var tmp3_bitMask0 = 0;
|
|
687
688
|
var tmp4_local0 = null;
|
|
688
689
|
var tmp5_local1 = null;
|
|
689
|
-
var tmp6_input = decoder.
|
|
690
|
-
if (tmp6_input.
|
|
691
|
-
tmp4_local0 = tmp6_input.
|
|
690
|
+
var tmp6_input = decoder.or(tmp0_desc);
|
|
691
|
+
if (tmp6_input.es()) {
|
|
692
|
+
tmp4_local0 = tmp6_input.yr(tmp0_desc, 0);
|
|
692
693
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
693
|
-
tmp5_local1 = tmp6_input.
|
|
694
|
+
tmp5_local1 = tmp6_input.cs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
694
695
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
695
696
|
} else
|
|
696
697
|
while (tmp1_flag) {
|
|
697
|
-
tmp2_index = tmp6_input.
|
|
698
|
+
tmp2_index = tmp6_input.fs(tmp0_desc);
|
|
698
699
|
switch (tmp2_index) {
|
|
699
700
|
case -1:
|
|
700
701
|
tmp1_flag = false;
|
|
701
702
|
break;
|
|
702
703
|
case 0:
|
|
703
|
-
tmp4_local0 = tmp6_input.
|
|
704
|
+
tmp4_local0 = tmp6_input.yr(tmp0_desc, 0);
|
|
704
705
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
705
706
|
break;
|
|
706
707
|
case 1:
|
|
707
|
-
tmp5_local1 = tmp6_input.
|
|
708
|
+
tmp5_local1 = tmp6_input.cs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
708
709
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
709
710
|
break;
|
|
710
711
|
default:
|
|
711
712
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
712
713
|
}
|
|
713
714
|
}
|
|
714
|
-
tmp6_input.
|
|
715
|
+
tmp6_input.pr(tmp0_desc);
|
|
715
716
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
716
717
|
};
|
|
717
|
-
protoOf($serializer).
|
|
718
|
-
return this.
|
|
718
|
+
protoOf($serializer).bo = function () {
|
|
719
|
+
return this.x54_1;
|
|
719
720
|
};
|
|
720
|
-
protoOf($serializer).
|
|
721
|
+
protoOf($serializer).vz = function () {
|
|
721
722
|
// Inline function 'kotlin.arrayOf' call
|
|
722
723
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
723
724
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -731,25 +732,25 @@
|
|
|
731
732
|
}
|
|
732
733
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
733
734
|
if (!(3 === (3 & seen0))) {
|
|
734
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
735
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().x54_1);
|
|
735
736
|
}
|
|
736
|
-
$this.
|
|
737
|
-
$this.
|
|
737
|
+
$this.z54_1 = jsonrpc;
|
|
738
|
+
$this.a55_1 = error;
|
|
738
739
|
return $this;
|
|
739
740
|
}
|
|
740
741
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
741
742
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
742
743
|
}
|
|
743
744
|
function ErrorResponseDto(jsonrpc, error) {
|
|
744
|
-
this.
|
|
745
|
-
this.
|
|
745
|
+
this.z54_1 = jsonrpc;
|
|
746
|
+
this.a55_1 = error;
|
|
746
747
|
}
|
|
747
748
|
protoOf(ErrorResponseDto).toString = function () {
|
|
748
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
749
|
+
return 'ErrorResponseDto(jsonrpc=' + this.z54_1 + ', error=' + toString_0(this.a55_1) + ')';
|
|
749
750
|
};
|
|
750
751
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
751
|
-
var result = getStringHashCode(this.
|
|
752
|
-
result = imul(result, 31) + (this.
|
|
752
|
+
var result = getStringHashCode(this.z54_1);
|
|
753
|
+
result = imul(result, 31) + (this.a55_1 == null ? 0 : this.a55_1.hashCode()) | 0;
|
|
753
754
|
return result;
|
|
754
755
|
};
|
|
755
756
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -758,68 +759,68 @@
|
|
|
758
759
|
if (!(other instanceof ErrorResponseDto))
|
|
759
760
|
return false;
|
|
760
761
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
761
|
-
if (!(this.
|
|
762
|
+
if (!(this.z54_1 === tmp0_other_with_cast.z54_1))
|
|
762
763
|
return false;
|
|
763
|
-
if (!equals(this.
|
|
764
|
+
if (!equals(this.a55_1, tmp0_other_with_cast.a55_1))
|
|
764
765
|
return false;
|
|
765
766
|
return true;
|
|
766
767
|
};
|
|
767
768
|
function $serializer_0() {
|
|
768
769
|
$serializer_instance_0 = this;
|
|
769
770
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
770
|
-
tmp0_serialDesc.
|
|
771
|
-
tmp0_serialDesc.
|
|
772
|
-
this.
|
|
773
|
-
}
|
|
774
|
-
protoOf($serializer_0).
|
|
775
|
-
var tmp0_desc = this.
|
|
776
|
-
var tmp1_output = encoder.
|
|
777
|
-
tmp1_output.
|
|
778
|
-
tmp1_output.
|
|
779
|
-
tmp1_output.
|
|
780
|
-
};
|
|
781
|
-
protoOf($serializer_0).
|
|
782
|
-
return this.
|
|
783
|
-
};
|
|
784
|
-
protoOf($serializer_0).
|
|
785
|
-
var tmp0_desc = this.
|
|
771
|
+
tmp0_serialDesc.gz('code', false);
|
|
772
|
+
tmp0_serialDesc.gz('message', false);
|
|
773
|
+
this.b55_1 = tmp0_serialDesc;
|
|
774
|
+
}
|
|
775
|
+
protoOf($serializer_0).c55 = function (encoder, value) {
|
|
776
|
+
var tmp0_desc = this.b55_1;
|
|
777
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
778
|
+
tmp1_output.ht(tmp0_desc, 0, IntSerializer_getInstance(), value.d55_1);
|
|
779
|
+
tmp1_output.ht(tmp0_desc, 1, StringSerializer_getInstance(), value.e55_1);
|
|
780
|
+
tmp1_output.pr(tmp0_desc);
|
|
781
|
+
};
|
|
782
|
+
protoOf($serializer_0).co = function (encoder, value) {
|
|
783
|
+
return this.c55(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
784
|
+
};
|
|
785
|
+
protoOf($serializer_0).do = function (decoder) {
|
|
786
|
+
var tmp0_desc = this.b55_1;
|
|
786
787
|
var tmp1_flag = true;
|
|
787
788
|
var tmp2_index = 0;
|
|
788
789
|
var tmp3_bitMask0 = 0;
|
|
789
790
|
var tmp4_local0 = null;
|
|
790
791
|
var tmp5_local1 = null;
|
|
791
|
-
var tmp6_input = decoder.
|
|
792
|
-
if (tmp6_input.
|
|
793
|
-
tmp4_local0 = tmp6_input.
|
|
792
|
+
var tmp6_input = decoder.or(tmp0_desc);
|
|
793
|
+
if (tmp6_input.es()) {
|
|
794
|
+
tmp4_local0 = tmp6_input.cs(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
794
795
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
795
|
-
tmp5_local1 = tmp6_input.
|
|
796
|
+
tmp5_local1 = tmp6_input.cs(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
796
797
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
797
798
|
} else
|
|
798
799
|
while (tmp1_flag) {
|
|
799
|
-
tmp2_index = tmp6_input.
|
|
800
|
+
tmp2_index = tmp6_input.fs(tmp0_desc);
|
|
800
801
|
switch (tmp2_index) {
|
|
801
802
|
case -1:
|
|
802
803
|
tmp1_flag = false;
|
|
803
804
|
break;
|
|
804
805
|
case 0:
|
|
805
|
-
tmp4_local0 = tmp6_input.
|
|
806
|
+
tmp4_local0 = tmp6_input.cs(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
806
807
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
807
808
|
break;
|
|
808
809
|
case 1:
|
|
809
|
-
tmp5_local1 = tmp6_input.
|
|
810
|
+
tmp5_local1 = tmp6_input.cs(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
810
811
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
811
812
|
break;
|
|
812
813
|
default:
|
|
813
814
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
814
815
|
}
|
|
815
816
|
}
|
|
816
|
-
tmp6_input.
|
|
817
|
+
tmp6_input.pr(tmp0_desc);
|
|
817
818
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
818
819
|
};
|
|
819
|
-
protoOf($serializer_0).
|
|
820
|
-
return this.
|
|
820
|
+
protoOf($serializer_0).bo = function () {
|
|
821
|
+
return this.b55_1;
|
|
821
822
|
};
|
|
822
|
-
protoOf($serializer_0).
|
|
823
|
+
protoOf($serializer_0).vz = function () {
|
|
823
824
|
// Inline function 'kotlin.arrayOf' call
|
|
824
825
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
825
826
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -833,10 +834,10 @@
|
|
|
833
834
|
}
|
|
834
835
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
835
836
|
if (!(3 === (3 & seen0))) {
|
|
836
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
837
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().b55_1);
|
|
837
838
|
}
|
|
838
|
-
$this.
|
|
839
|
-
$this.
|
|
839
|
+
$this.d55_1 = code;
|
|
840
|
+
$this.e55_1 = message;
|
|
840
841
|
return $this;
|
|
841
842
|
}
|
|
842
843
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -845,11 +846,11 @@
|
|
|
845
846
|
function ErrorDto() {
|
|
846
847
|
}
|
|
847
848
|
protoOf(ErrorDto).toString = function () {
|
|
848
|
-
return 'ErrorDto(code=' + this.
|
|
849
|
+
return 'ErrorDto(code=' + this.d55_1 + ', message=' + this.e55_1 + ')';
|
|
849
850
|
};
|
|
850
851
|
protoOf(ErrorDto).hashCode = function () {
|
|
851
|
-
var result = this.
|
|
852
|
-
result = imul(result, 31) + (this.
|
|
852
|
+
var result = this.d55_1 == null ? 0 : this.d55_1;
|
|
853
|
+
result = imul(result, 31) + (this.e55_1 == null ? 0 : getStringHashCode(this.e55_1)) | 0;
|
|
853
854
|
return result;
|
|
854
855
|
};
|
|
855
856
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -858,15 +859,15 @@
|
|
|
858
859
|
if (!(other instanceof ErrorDto))
|
|
859
860
|
return false;
|
|
860
861
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
861
|
-
if (!(this.
|
|
862
|
+
if (!(this.d55_1 == tmp0_other_with_cast.d55_1))
|
|
862
863
|
return false;
|
|
863
|
-
if (!(this.
|
|
864
|
+
if (!(this.e55_1 == tmp0_other_with_cast.e55_1))
|
|
864
865
|
return false;
|
|
865
866
|
return true;
|
|
866
867
|
};
|
|
867
868
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
868
869
|
$serializer_1.call($this);
|
|
869
|
-
$this.
|
|
870
|
+
$this.g55_1 = typeSerial0;
|
|
870
871
|
return $this;
|
|
871
872
|
}
|
|
872
873
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -875,17 +876,17 @@
|
|
|
875
876
|
function Companion_2() {
|
|
876
877
|
Companion_instance_4 = this;
|
|
877
878
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
878
|
-
tmp0_serialDesc.
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
this.
|
|
879
|
+
tmp0_serialDesc.gz('jsonrpc', false);
|
|
880
|
+
tmp0_serialDesc.gz('method', false);
|
|
881
|
+
tmp0_serialDesc.gz('params', false);
|
|
882
|
+
tmp0_serialDesc.gz('id', false);
|
|
883
|
+
this.h55_1 = tmp0_serialDesc;
|
|
883
884
|
}
|
|
884
|
-
protoOf(Companion_2).
|
|
885
|
+
protoOf(Companion_2).i55 = function (typeSerial0) {
|
|
885
886
|
return $serializer_init_$Create$(typeSerial0);
|
|
886
887
|
};
|
|
887
|
-
protoOf(Companion_2).
|
|
888
|
-
return this.
|
|
888
|
+
protoOf(Companion_2).g10 = function (typeParamsSerializers) {
|
|
889
|
+
return this.i55(typeParamsSerializers[0]);
|
|
889
890
|
};
|
|
890
891
|
var Companion_instance_4;
|
|
891
892
|
function Companion_getInstance_5() {
|
|
@@ -895,26 +896,26 @@
|
|
|
895
896
|
}
|
|
896
897
|
function $serializer_1() {
|
|
897
898
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
898
|
-
tmp0_serialDesc.
|
|
899
|
-
tmp0_serialDesc.
|
|
900
|
-
tmp0_serialDesc.
|
|
901
|
-
tmp0_serialDesc.
|
|
902
|
-
this.
|
|
903
|
-
}
|
|
904
|
-
protoOf($serializer_1).
|
|
905
|
-
var tmp0_desc = this.
|
|
906
|
-
var tmp1_output = encoder.
|
|
907
|
-
tmp1_output.
|
|
908
|
-
tmp1_output.
|
|
909
|
-
tmp1_output.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
tmp1_output.
|
|
912
|
-
};
|
|
913
|
-
protoOf($serializer_1).
|
|
914
|
-
return this.
|
|
915
|
-
};
|
|
916
|
-
protoOf($serializer_1).
|
|
917
|
-
var tmp0_desc = this.
|
|
899
|
+
tmp0_serialDesc.gz('jsonrpc', false);
|
|
900
|
+
tmp0_serialDesc.gz('method', false);
|
|
901
|
+
tmp0_serialDesc.gz('params', false);
|
|
902
|
+
tmp0_serialDesc.gz('id', false);
|
|
903
|
+
this.f55_1 = tmp0_serialDesc;
|
|
904
|
+
}
|
|
905
|
+
protoOf($serializer_1).j55 = function (encoder, value) {
|
|
906
|
+
var tmp0_desc = this.f55_1;
|
|
907
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
908
|
+
tmp1_output.dt(tmp0_desc, 0, value.k55_1);
|
|
909
|
+
tmp1_output.dt(tmp0_desc, 1, value.l55_1);
|
|
910
|
+
tmp1_output.ft(tmp0_desc, 2, this.g55_1, value.m55_1);
|
|
911
|
+
tmp1_output.dt(tmp0_desc, 3, value.n55_1);
|
|
912
|
+
tmp1_output.pr(tmp0_desc);
|
|
913
|
+
};
|
|
914
|
+
protoOf($serializer_1).co = function (encoder, value) {
|
|
915
|
+
return this.j55(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
916
|
+
};
|
|
917
|
+
protoOf($serializer_1).do = function (decoder) {
|
|
918
|
+
var tmp0_desc = this.f55_1;
|
|
918
919
|
var tmp1_flag = true;
|
|
919
920
|
var tmp2_index = 0;
|
|
920
921
|
var tmp3_bitMask0 = 0;
|
|
@@ -922,69 +923,69 @@
|
|
|
922
923
|
var tmp5_local1 = null;
|
|
923
924
|
var tmp6_local2 = null;
|
|
924
925
|
var tmp7_local3 = null;
|
|
925
|
-
var tmp8_input = decoder.
|
|
926
|
-
if (tmp8_input.
|
|
927
|
-
tmp4_local0 = tmp8_input.
|
|
926
|
+
var tmp8_input = decoder.or(tmp0_desc);
|
|
927
|
+
if (tmp8_input.es()) {
|
|
928
|
+
tmp4_local0 = tmp8_input.yr(tmp0_desc, 0);
|
|
928
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
929
|
-
tmp5_local1 = tmp8_input.
|
|
930
|
+
tmp5_local1 = tmp8_input.yr(tmp0_desc, 1);
|
|
930
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
931
|
-
tmp6_local2 = tmp8_input.
|
|
932
|
+
tmp6_local2 = tmp8_input.as(tmp0_desc, 2, this.g55_1, tmp6_local2);
|
|
932
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
933
|
-
tmp7_local3 = tmp8_input.
|
|
934
|
+
tmp7_local3 = tmp8_input.yr(tmp0_desc, 3);
|
|
934
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
935
936
|
} else
|
|
936
937
|
while (tmp1_flag) {
|
|
937
|
-
tmp2_index = tmp8_input.
|
|
938
|
+
tmp2_index = tmp8_input.fs(tmp0_desc);
|
|
938
939
|
switch (tmp2_index) {
|
|
939
940
|
case -1:
|
|
940
941
|
tmp1_flag = false;
|
|
941
942
|
break;
|
|
942
943
|
case 0:
|
|
943
|
-
tmp4_local0 = tmp8_input.
|
|
944
|
+
tmp4_local0 = tmp8_input.yr(tmp0_desc, 0);
|
|
944
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
945
946
|
break;
|
|
946
947
|
case 1:
|
|
947
|
-
tmp5_local1 = tmp8_input.
|
|
948
|
+
tmp5_local1 = tmp8_input.yr(tmp0_desc, 1);
|
|
948
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
949
950
|
break;
|
|
950
951
|
case 2:
|
|
951
|
-
tmp6_local2 = tmp8_input.
|
|
952
|
+
tmp6_local2 = tmp8_input.as(tmp0_desc, 2, this.g55_1, tmp6_local2);
|
|
952
953
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
953
954
|
break;
|
|
954
955
|
case 3:
|
|
955
|
-
tmp7_local3 = tmp8_input.
|
|
956
|
+
tmp7_local3 = tmp8_input.yr(tmp0_desc, 3);
|
|
956
957
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
957
958
|
break;
|
|
958
959
|
default:
|
|
959
960
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
960
961
|
}
|
|
961
962
|
}
|
|
962
|
-
tmp8_input.
|
|
963
|
+
tmp8_input.pr(tmp0_desc);
|
|
963
964
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
964
965
|
};
|
|
965
|
-
protoOf($serializer_1).
|
|
966
|
-
return this.
|
|
966
|
+
protoOf($serializer_1).bo = function () {
|
|
967
|
+
return this.f55_1;
|
|
967
968
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
969
|
+
protoOf($serializer_1).vz = function () {
|
|
969
970
|
// Inline function 'kotlin.arrayOf' call
|
|
970
971
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
972
|
// Inline function 'kotlin.js.asDynamic' call
|
|
972
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
973
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.g55_1, StringSerializer_getInstance()];
|
|
973
974
|
};
|
|
974
|
-
protoOf($serializer_1).
|
|
975
|
+
protoOf($serializer_1).wz = function () {
|
|
975
976
|
// Inline function 'kotlin.arrayOf' call
|
|
976
977
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
977
978
|
// Inline function 'kotlin.js.asDynamic' call
|
|
978
|
-
return [this.
|
|
979
|
+
return [this.g55_1];
|
|
979
980
|
};
|
|
980
981
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
981
982
|
if (!(15 === (15 & seen0))) {
|
|
982
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
983
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().h55_1);
|
|
983
984
|
}
|
|
984
|
-
$this.
|
|
985
|
-
$this.
|
|
986
|
-
$this.
|
|
987
|
-
$this.
|
|
985
|
+
$this.k55_1 = jsonrpc;
|
|
986
|
+
$this.l55_1 = method;
|
|
987
|
+
$this.m55_1 = params;
|
|
988
|
+
$this.n55_1 = id;
|
|
988
989
|
return $this;
|
|
989
990
|
}
|
|
990
991
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -992,19 +993,19 @@
|
|
|
992
993
|
}
|
|
993
994
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
994
995
|
Companion_getInstance_5();
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
996
|
+
this.k55_1 = jsonrpc;
|
|
997
|
+
this.l55_1 = method;
|
|
998
|
+
this.m55_1 = params;
|
|
999
|
+
this.n55_1 = id;
|
|
999
1000
|
}
|
|
1000
1001
|
protoOf(RandomRequestDto).toString = function () {
|
|
1001
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1002
|
+
return 'RandomRequestDto(jsonrpc=' + this.k55_1 + ', method=' + this.l55_1 + ', params=' + toString(this.m55_1) + ', id=' + this.n55_1 + ')';
|
|
1002
1003
|
};
|
|
1003
1004
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1004
|
-
var result = getStringHashCode(this.
|
|
1005
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1006
|
-
result = imul(result, 31) + hashCode(this.
|
|
1007
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1005
|
+
var result = getStringHashCode(this.k55_1);
|
|
1006
|
+
result = imul(result, 31) + getStringHashCode(this.l55_1) | 0;
|
|
1007
|
+
result = imul(result, 31) + hashCode(this.m55_1) | 0;
|
|
1008
|
+
result = imul(result, 31) + getStringHashCode(this.n55_1) | 0;
|
|
1008
1009
|
return result;
|
|
1009
1010
|
};
|
|
1010
1011
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1013,13 +1014,13 @@
|
|
|
1013
1014
|
if (!(other instanceof RandomRequestDto))
|
|
1014
1015
|
return false;
|
|
1015
1016
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1016
|
-
if (!(this.
|
|
1017
|
+
if (!(this.k55_1 === tmp0_other_with_cast.k55_1))
|
|
1017
1018
|
return false;
|
|
1018
|
-
if (!(this.
|
|
1019
|
+
if (!(this.l55_1 === tmp0_other_with_cast.l55_1))
|
|
1019
1020
|
return false;
|
|
1020
|
-
if (!equals(this.
|
|
1021
|
+
if (!equals(this.m55_1, tmp0_other_with_cast.m55_1))
|
|
1021
1022
|
return false;
|
|
1022
|
-
if (!(this.
|
|
1023
|
+
if (!(this.n55_1 === tmp0_other_with_cast.n55_1))
|
|
1023
1024
|
return false;
|
|
1024
1025
|
return true;
|
|
1025
1026
|
};
|
|
@@ -1033,7 +1034,7 @@
|
|
|
1033
1034
|
// Inline function 'kotlin.arrayOf' call
|
|
1034
1035
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1035
1036
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1036
|
-
tmp.
|
|
1037
|
+
tmp.o55_1 = [null, null, lazy(tmp_0, RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a), null, null, null, null, null];
|
|
1037
1038
|
}
|
|
1038
1039
|
var Companion_instance_5;
|
|
1039
1040
|
function Companion_getInstance_6() {
|
|
@@ -1044,35 +1045,35 @@
|
|
|
1044
1045
|
function $serializer_2() {
|
|
1045
1046
|
$serializer_instance_1 = this;
|
|
1046
1047
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
tmp0_serialDesc.
|
|
1050
|
-
tmp0_serialDesc.
|
|
1051
|
-
tmp0_serialDesc.
|
|
1052
|
-
tmp0_serialDesc.
|
|
1053
|
-
tmp0_serialDesc.
|
|
1054
|
-
tmp0_serialDesc.
|
|
1055
|
-
this.
|
|
1056
|
-
}
|
|
1057
|
-
protoOf($serializer_2).
|
|
1058
|
-
var tmp0_desc = this.
|
|
1059
|
-
var tmp1_output = encoder.
|
|
1060
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1061
|
-
tmp1_output.
|
|
1062
|
-
tmp1_output.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
tmp1_output.
|
|
1067
|
-
tmp1_output.
|
|
1068
|
-
tmp1_output.
|
|
1069
|
-
tmp1_output.
|
|
1070
|
-
};
|
|
1071
|
-
protoOf($serializer_2).
|
|
1072
|
-
return this.
|
|
1073
|
-
};
|
|
1074
|
-
protoOf($serializer_2).
|
|
1075
|
-
var tmp0_desc = this.
|
|
1048
|
+
tmp0_serialDesc.gz('apiKey', false);
|
|
1049
|
+
tmp0_serialDesc.gz('n', false);
|
|
1050
|
+
tmp0_serialDesc.gz('length', false);
|
|
1051
|
+
tmp0_serialDesc.gz('min', false);
|
|
1052
|
+
tmp0_serialDesc.gz('max', false);
|
|
1053
|
+
tmp0_serialDesc.gz('replacement', false);
|
|
1054
|
+
tmp0_serialDesc.gz('ticketId', false);
|
|
1055
|
+
tmp0_serialDesc.gz('userData', false);
|
|
1056
|
+
this.p55_1 = tmp0_serialDesc;
|
|
1057
|
+
}
|
|
1058
|
+
protoOf($serializer_2).q55 = function (encoder, value) {
|
|
1059
|
+
var tmp0_desc = this.p55_1;
|
|
1060
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
1061
|
+
var tmp2_cached = Companion_getInstance_6().o55_1;
|
|
1062
|
+
tmp1_output.dt(tmp0_desc, 0, value.r55_1);
|
|
1063
|
+
tmp1_output.ys(tmp0_desc, 1, value.s55_1);
|
|
1064
|
+
tmp1_output.ft(tmp0_desc, 2, tmp2_cached[2].w(), value.t55_1);
|
|
1065
|
+
tmp1_output.ys(tmp0_desc, 3, value.u55_1);
|
|
1066
|
+
tmp1_output.ys(tmp0_desc, 4, value.v55_1);
|
|
1067
|
+
tmp1_output.vs(tmp0_desc, 5, value.w55_1);
|
|
1068
|
+
tmp1_output.ht(tmp0_desc, 6, StringSerializer_getInstance(), value.x55_1);
|
|
1069
|
+
tmp1_output.ht(tmp0_desc, 7, $serializer_getInstance_2(), value.y55_1);
|
|
1070
|
+
tmp1_output.pr(tmp0_desc);
|
|
1071
|
+
};
|
|
1072
|
+
protoOf($serializer_2).co = function (encoder, value) {
|
|
1073
|
+
return this.q55(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1074
|
+
};
|
|
1075
|
+
protoOf($serializer_2).do = function (decoder) {
|
|
1076
|
+
var tmp0_desc = this.p55_1;
|
|
1076
1077
|
var tmp1_flag = true;
|
|
1077
1078
|
var tmp2_index = 0;
|
|
1078
1079
|
var tmp3_bitMask0 = 0;
|
|
@@ -1084,80 +1085,80 @@
|
|
|
1084
1085
|
var tmp9_local5 = false;
|
|
1085
1086
|
var tmp10_local6 = null;
|
|
1086
1087
|
var tmp11_local7 = null;
|
|
1087
|
-
var tmp12_input = decoder.
|
|
1088
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1089
|
-
if (tmp12_input.
|
|
1090
|
-
tmp4_local0 = tmp12_input.
|
|
1088
|
+
var tmp12_input = decoder.or(tmp0_desc);
|
|
1089
|
+
var tmp13_cached = Companion_getInstance_6().o55_1;
|
|
1090
|
+
if (tmp12_input.es()) {
|
|
1091
|
+
tmp4_local0 = tmp12_input.yr(tmp0_desc, 0);
|
|
1091
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1092
|
-
tmp5_local1 = tmp12_input.
|
|
1093
|
+
tmp5_local1 = tmp12_input.tr(tmp0_desc, 1);
|
|
1093
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1094
|
-
tmp6_local2 = tmp12_input.
|
|
1095
|
+
tmp6_local2 = tmp12_input.as(tmp0_desc, 2, tmp13_cached[2].w(), tmp6_local2);
|
|
1095
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1096
|
-
tmp7_local3 = tmp12_input.
|
|
1097
|
+
tmp7_local3 = tmp12_input.tr(tmp0_desc, 3);
|
|
1097
1098
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1098
|
-
tmp8_local4 = tmp12_input.
|
|
1099
|
+
tmp8_local4 = tmp12_input.tr(tmp0_desc, 4);
|
|
1099
1100
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1100
|
-
tmp9_local5 = tmp12_input.
|
|
1101
|
+
tmp9_local5 = tmp12_input.qr(tmp0_desc, 5);
|
|
1101
1102
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1102
|
-
tmp10_local6 = tmp12_input.
|
|
1103
|
+
tmp10_local6 = tmp12_input.cs(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1103
1104
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1104
|
-
tmp11_local7 = tmp12_input.
|
|
1105
|
+
tmp11_local7 = tmp12_input.cs(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1105
1106
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1106
1107
|
} else
|
|
1107
1108
|
while (tmp1_flag) {
|
|
1108
|
-
tmp2_index = tmp12_input.
|
|
1109
|
+
tmp2_index = tmp12_input.fs(tmp0_desc);
|
|
1109
1110
|
switch (tmp2_index) {
|
|
1110
1111
|
case -1:
|
|
1111
1112
|
tmp1_flag = false;
|
|
1112
1113
|
break;
|
|
1113
1114
|
case 0:
|
|
1114
|
-
tmp4_local0 = tmp12_input.
|
|
1115
|
+
tmp4_local0 = tmp12_input.yr(tmp0_desc, 0);
|
|
1115
1116
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1116
1117
|
break;
|
|
1117
1118
|
case 1:
|
|
1118
|
-
tmp5_local1 = tmp12_input.
|
|
1119
|
+
tmp5_local1 = tmp12_input.tr(tmp0_desc, 1);
|
|
1119
1120
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1120
1121
|
break;
|
|
1121
1122
|
case 2:
|
|
1122
|
-
tmp6_local2 = tmp12_input.
|
|
1123
|
+
tmp6_local2 = tmp12_input.as(tmp0_desc, 2, tmp13_cached[2].w(), tmp6_local2);
|
|
1123
1124
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1124
1125
|
break;
|
|
1125
1126
|
case 3:
|
|
1126
|
-
tmp7_local3 = tmp12_input.
|
|
1127
|
+
tmp7_local3 = tmp12_input.tr(tmp0_desc, 3);
|
|
1127
1128
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1128
1129
|
break;
|
|
1129
1130
|
case 4:
|
|
1130
|
-
tmp8_local4 = tmp12_input.
|
|
1131
|
+
tmp8_local4 = tmp12_input.tr(tmp0_desc, 4);
|
|
1131
1132
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1132
1133
|
break;
|
|
1133
1134
|
case 5:
|
|
1134
|
-
tmp9_local5 = tmp12_input.
|
|
1135
|
+
tmp9_local5 = tmp12_input.qr(tmp0_desc, 5);
|
|
1135
1136
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1136
1137
|
break;
|
|
1137
1138
|
case 6:
|
|
1138
|
-
tmp10_local6 = tmp12_input.
|
|
1139
|
+
tmp10_local6 = tmp12_input.cs(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1139
1140
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1140
1141
|
break;
|
|
1141
1142
|
case 7:
|
|
1142
|
-
tmp11_local7 = tmp12_input.
|
|
1143
|
+
tmp11_local7 = tmp12_input.cs(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1143
1144
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1144
1145
|
break;
|
|
1145
1146
|
default:
|
|
1146
1147
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1147
1148
|
}
|
|
1148
1149
|
}
|
|
1149
|
-
tmp12_input.
|
|
1150
|
+
tmp12_input.pr(tmp0_desc);
|
|
1150
1151
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1151
1152
|
};
|
|
1152
|
-
protoOf($serializer_2).
|
|
1153
|
-
return this.
|
|
1153
|
+
protoOf($serializer_2).bo = function () {
|
|
1154
|
+
return this.p55_1;
|
|
1154
1155
|
};
|
|
1155
|
-
protoOf($serializer_2).
|
|
1156
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1156
|
+
protoOf($serializer_2).vz = function () {
|
|
1157
|
+
var tmp0_cached = Companion_getInstance_6().o55_1;
|
|
1157
1158
|
// Inline function 'kotlin.arrayOf' call
|
|
1158
1159
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1159
1160
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1160
|
-
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2].
|
|
1161
|
+
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2].w(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
|
|
1161
1162
|
};
|
|
1162
1163
|
var $serializer_instance_1;
|
|
1163
1164
|
function $serializer_getInstance_1() {
|
|
@@ -1167,16 +1168,16 @@
|
|
|
1167
1168
|
}
|
|
1168
1169
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1169
1170
|
if (!(255 === (255 & seen0))) {
|
|
1170
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1171
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().p55_1);
|
|
1171
1172
|
}
|
|
1172
|
-
$this.
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1175
|
-
$this.
|
|
1176
|
-
$this.
|
|
1177
|
-
$this.
|
|
1178
|
-
$this.
|
|
1179
|
-
$this.
|
|
1173
|
+
$this.r55_1 = apiKey;
|
|
1174
|
+
$this.s55_1 = n;
|
|
1175
|
+
$this.t55_1 = length;
|
|
1176
|
+
$this.u55_1 = min;
|
|
1177
|
+
$this.v55_1 = max;
|
|
1178
|
+
$this.w55_1 = replacement;
|
|
1179
|
+
$this.x55_1 = ticketId;
|
|
1180
|
+
$this.y55_1 = userData;
|
|
1180
1181
|
return $this;
|
|
1181
1182
|
}
|
|
1182
1183
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1184,27 +1185,27 @@
|
|
|
1184
1185
|
}
|
|
1185
1186
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1186
1187
|
Companion_getInstance_6();
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1188
|
+
this.r55_1 = apiKey;
|
|
1189
|
+
this.s55_1 = n;
|
|
1190
|
+
this.t55_1 = length;
|
|
1191
|
+
this.u55_1 = min;
|
|
1192
|
+
this.v55_1 = max;
|
|
1193
|
+
this.w55_1 = replacement;
|
|
1194
|
+
this.x55_1 = ticketId;
|
|
1195
|
+
this.y55_1 = userData;
|
|
1195
1196
|
}
|
|
1196
1197
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1197
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1198
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.r55_1 + ', n=' + this.s55_1 + ', length=' + toString(this.t55_1) + ', min=' + this.u55_1 + ', max=' + this.v55_1 + ', replacement=' + this.w55_1 + ', ticketId=' + this.x55_1 + ', userData=' + toString_0(this.y55_1) + ')';
|
|
1198
1199
|
};
|
|
1199
1200
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1200
|
-
var result = getStringHashCode(this.
|
|
1201
|
-
result = imul(result, 31) + this.
|
|
1202
|
-
result = imul(result, 31) + hashCode(this.
|
|
1203
|
-
result = imul(result, 31) + this.
|
|
1204
|
-
result = imul(result, 31) + this.
|
|
1205
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1206
|
-
result = imul(result, 31) + (this.
|
|
1207
|
-
result = imul(result, 31) + (this.
|
|
1201
|
+
var result = getStringHashCode(this.r55_1);
|
|
1202
|
+
result = imul(result, 31) + this.s55_1 | 0;
|
|
1203
|
+
result = imul(result, 31) + hashCode(this.t55_1) | 0;
|
|
1204
|
+
result = imul(result, 31) + this.u55_1 | 0;
|
|
1205
|
+
result = imul(result, 31) + this.v55_1 | 0;
|
|
1206
|
+
result = imul(result, 31) + getBooleanHashCode(this.w55_1) | 0;
|
|
1207
|
+
result = imul(result, 31) + (this.x55_1 == null ? 0 : getStringHashCode(this.x55_1)) | 0;
|
|
1208
|
+
result = imul(result, 31) + (this.y55_1 == null ? 0 : this.y55_1.hashCode()) | 0;
|
|
1208
1209
|
return result;
|
|
1209
1210
|
};
|
|
1210
1211
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1213,21 +1214,21 @@
|
|
|
1213
1214
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1214
1215
|
return false;
|
|
1215
1216
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1216
|
-
if (!(this.
|
|
1217
|
+
if (!(this.r55_1 === tmp0_other_with_cast.r55_1))
|
|
1217
1218
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1219
|
+
if (!(this.s55_1 === tmp0_other_with_cast.s55_1))
|
|
1219
1220
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1221
|
+
if (!equals(this.t55_1, tmp0_other_with_cast.t55_1))
|
|
1221
1222
|
return false;
|
|
1222
|
-
if (!(this.
|
|
1223
|
+
if (!(this.u55_1 === tmp0_other_with_cast.u55_1))
|
|
1223
1224
|
return false;
|
|
1224
|
-
if (!(this.
|
|
1225
|
+
if (!(this.v55_1 === tmp0_other_with_cast.v55_1))
|
|
1225
1226
|
return false;
|
|
1226
|
-
if (!(this.
|
|
1227
|
+
if (!(this.w55_1 === tmp0_other_with_cast.w55_1))
|
|
1227
1228
|
return false;
|
|
1228
|
-
if (!(this.
|
|
1229
|
+
if (!(this.x55_1 == tmp0_other_with_cast.x55_1))
|
|
1229
1230
|
return false;
|
|
1230
|
-
if (!equals(this.
|
|
1231
|
+
if (!equals(this.y55_1, tmp0_other_with_cast.y55_1))
|
|
1231
1232
|
return false;
|
|
1232
1233
|
return true;
|
|
1233
1234
|
};
|
|
@@ -1240,59 +1241,59 @@
|
|
|
1240
1241
|
function $serializer_3() {
|
|
1241
1242
|
$serializer_instance_2 = this;
|
|
1242
1243
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1243
|
-
tmp0_serialDesc.
|
|
1244
|
-
tmp0_serialDesc.
|
|
1245
|
-
this.
|
|
1246
|
-
}
|
|
1247
|
-
protoOf($serializer_3).
|
|
1248
|
-
var tmp0_desc = this.
|
|
1249
|
-
var tmp1_output = encoder.
|
|
1250
|
-
tmp1_output.
|
|
1251
|
-
tmp1_output.
|
|
1252
|
-
tmp1_output.
|
|
1253
|
-
};
|
|
1254
|
-
protoOf($serializer_3).
|
|
1255
|
-
return this.
|
|
1256
|
-
};
|
|
1257
|
-
protoOf($serializer_3).
|
|
1258
|
-
var tmp0_desc = this.
|
|
1244
|
+
tmp0_serialDesc.gz('id', false);
|
|
1245
|
+
tmp0_serialDesc.gz('count', false);
|
|
1246
|
+
this.z55_1 = tmp0_serialDesc;
|
|
1247
|
+
}
|
|
1248
|
+
protoOf($serializer_3).a56 = function (encoder, value) {
|
|
1249
|
+
var tmp0_desc = this.z55_1;
|
|
1250
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
1251
|
+
tmp1_output.dt(tmp0_desc, 0, value.b56_1);
|
|
1252
|
+
tmp1_output.ys(tmp0_desc, 1, value.c56_1);
|
|
1253
|
+
tmp1_output.pr(tmp0_desc);
|
|
1254
|
+
};
|
|
1255
|
+
protoOf($serializer_3).co = function (encoder, value) {
|
|
1256
|
+
return this.a56(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1257
|
+
};
|
|
1258
|
+
protoOf($serializer_3).do = function (decoder) {
|
|
1259
|
+
var tmp0_desc = this.z55_1;
|
|
1259
1260
|
var tmp1_flag = true;
|
|
1260
1261
|
var tmp2_index = 0;
|
|
1261
1262
|
var tmp3_bitMask0 = 0;
|
|
1262
1263
|
var tmp4_local0 = null;
|
|
1263
1264
|
var tmp5_local1 = 0;
|
|
1264
|
-
var tmp6_input = decoder.
|
|
1265
|
-
if (tmp6_input.
|
|
1266
|
-
tmp4_local0 = tmp6_input.
|
|
1265
|
+
var tmp6_input = decoder.or(tmp0_desc);
|
|
1266
|
+
if (tmp6_input.es()) {
|
|
1267
|
+
tmp4_local0 = tmp6_input.yr(tmp0_desc, 0);
|
|
1267
1268
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1268
|
-
tmp5_local1 = tmp6_input.
|
|
1269
|
+
tmp5_local1 = tmp6_input.tr(tmp0_desc, 1);
|
|
1269
1270
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1270
1271
|
} else
|
|
1271
1272
|
while (tmp1_flag) {
|
|
1272
|
-
tmp2_index = tmp6_input.
|
|
1273
|
+
tmp2_index = tmp6_input.fs(tmp0_desc);
|
|
1273
1274
|
switch (tmp2_index) {
|
|
1274
1275
|
case -1:
|
|
1275
1276
|
tmp1_flag = false;
|
|
1276
1277
|
break;
|
|
1277
1278
|
case 0:
|
|
1278
|
-
tmp4_local0 = tmp6_input.
|
|
1279
|
+
tmp4_local0 = tmp6_input.yr(tmp0_desc, 0);
|
|
1279
1280
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1280
1281
|
break;
|
|
1281
1282
|
case 1:
|
|
1282
|
-
tmp5_local1 = tmp6_input.
|
|
1283
|
+
tmp5_local1 = tmp6_input.tr(tmp0_desc, 1);
|
|
1283
1284
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1284
1285
|
break;
|
|
1285
1286
|
default:
|
|
1286
1287
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1287
1288
|
}
|
|
1288
1289
|
}
|
|
1289
|
-
tmp6_input.
|
|
1290
|
+
tmp6_input.pr(tmp0_desc);
|
|
1290
1291
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1291
1292
|
};
|
|
1292
|
-
protoOf($serializer_3).
|
|
1293
|
-
return this.
|
|
1293
|
+
protoOf($serializer_3).bo = function () {
|
|
1294
|
+
return this.z55_1;
|
|
1294
1295
|
};
|
|
1295
|
-
protoOf($serializer_3).
|
|
1296
|
+
protoOf($serializer_3).vz = function () {
|
|
1296
1297
|
// Inline function 'kotlin.arrayOf' call
|
|
1297
1298
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1298
1299
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1306,25 +1307,25 @@
|
|
|
1306
1307
|
}
|
|
1307
1308
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1308
1309
|
if (!(3 === (3 & seen0))) {
|
|
1309
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1310
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().z55_1);
|
|
1310
1311
|
}
|
|
1311
|
-
$this.
|
|
1312
|
-
$this.
|
|
1312
|
+
$this.b56_1 = id;
|
|
1313
|
+
$this.c56_1 = count;
|
|
1313
1314
|
return $this;
|
|
1314
1315
|
}
|
|
1315
1316
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1316
1317
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1317
1318
|
}
|
|
1318
1319
|
function CardDecksUserDataDto(id, count) {
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1320
|
+
this.b56_1 = id;
|
|
1321
|
+
this.c56_1 = count;
|
|
1321
1322
|
}
|
|
1322
1323
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1323
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1324
|
+
return 'CardDecksUserDataDto(id=' + this.b56_1 + ', count=' + this.c56_1 + ')';
|
|
1324
1325
|
};
|
|
1325
1326
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1326
|
-
var result = getStringHashCode(this.
|
|
1327
|
-
result = imul(result, 31) + this.
|
|
1327
|
+
var result = getStringHashCode(this.b56_1);
|
|
1328
|
+
result = imul(result, 31) + this.c56_1 | 0;
|
|
1328
1329
|
return result;
|
|
1329
1330
|
};
|
|
1330
1331
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1333,15 +1334,15 @@
|
|
|
1333
1334
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1334
1335
|
return false;
|
|
1335
1336
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1336
|
-
if (!(this.
|
|
1337
|
+
if (!(this.b56_1 === tmp0_other_with_cast.b56_1))
|
|
1337
1338
|
return false;
|
|
1338
|
-
if (!(this.
|
|
1339
|
+
if (!(this.c56_1 === tmp0_other_with_cast.c56_1))
|
|
1339
1340
|
return false;
|
|
1340
1341
|
return true;
|
|
1341
1342
|
};
|
|
1342
1343
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1343
1344
|
$serializer_4.call($this);
|
|
1344
|
-
$this.
|
|
1345
|
+
$this.e56_1 = typeSerial0;
|
|
1345
1346
|
return $this;
|
|
1346
1347
|
}
|
|
1347
1348
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1350,16 +1351,16 @@
|
|
|
1350
1351
|
function Companion_5() {
|
|
1351
1352
|
Companion_instance_7 = this;
|
|
1352
1353
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1353
|
-
tmp0_serialDesc.
|
|
1354
|
-
tmp0_serialDesc.
|
|
1355
|
-
tmp0_serialDesc.
|
|
1356
|
-
this.
|
|
1354
|
+
tmp0_serialDesc.gz('jsonrpc', false);
|
|
1355
|
+
tmp0_serialDesc.gz('result', false);
|
|
1356
|
+
tmp0_serialDesc.gz('id', false);
|
|
1357
|
+
this.f56_1 = tmp0_serialDesc;
|
|
1357
1358
|
}
|
|
1358
|
-
protoOf(Companion_5).
|
|
1359
|
+
protoOf(Companion_5).i55 = function (typeSerial0) {
|
|
1359
1360
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1360
1361
|
};
|
|
1361
|
-
protoOf(Companion_5).
|
|
1362
|
-
return this.
|
|
1362
|
+
protoOf(Companion_5).g10 = function (typeParamsSerializers) {
|
|
1363
|
+
return this.i55(typeParamsSerializers[0]);
|
|
1363
1364
|
};
|
|
1364
1365
|
var Companion_instance_7;
|
|
1365
1366
|
function Companion_getInstance_8() {
|
|
@@ -1369,86 +1370,86 @@
|
|
|
1369
1370
|
}
|
|
1370
1371
|
function $serializer_4() {
|
|
1371
1372
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1372
|
-
tmp0_serialDesc.
|
|
1373
|
-
tmp0_serialDesc.
|
|
1374
|
-
tmp0_serialDesc.
|
|
1375
|
-
this.
|
|
1376
|
-
}
|
|
1377
|
-
protoOf($serializer_4).
|
|
1378
|
-
var tmp0_desc = this.
|
|
1379
|
-
var tmp1_output = encoder.
|
|
1380
|
-
tmp1_output.
|
|
1381
|
-
tmp1_output.
|
|
1382
|
-
tmp1_output.
|
|
1383
|
-
tmp1_output.
|
|
1384
|
-
};
|
|
1385
|
-
protoOf($serializer_4).
|
|
1386
|
-
return this.
|
|
1387
|
-
};
|
|
1388
|
-
protoOf($serializer_4).
|
|
1389
|
-
var tmp0_desc = this.
|
|
1373
|
+
tmp0_serialDesc.gz('jsonrpc', false);
|
|
1374
|
+
tmp0_serialDesc.gz('result', false);
|
|
1375
|
+
tmp0_serialDesc.gz('id', false);
|
|
1376
|
+
this.d56_1 = tmp0_serialDesc;
|
|
1377
|
+
}
|
|
1378
|
+
protoOf($serializer_4).g56 = function (encoder, value) {
|
|
1379
|
+
var tmp0_desc = this.d56_1;
|
|
1380
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
1381
|
+
tmp1_output.dt(tmp0_desc, 0, value.h56_1);
|
|
1382
|
+
tmp1_output.ft(tmp0_desc, 1, this.e56_1, value.i56_1);
|
|
1383
|
+
tmp1_output.dt(tmp0_desc, 2, value.j56_1);
|
|
1384
|
+
tmp1_output.pr(tmp0_desc);
|
|
1385
|
+
};
|
|
1386
|
+
protoOf($serializer_4).co = function (encoder, value) {
|
|
1387
|
+
return this.g56(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1388
|
+
};
|
|
1389
|
+
protoOf($serializer_4).do = function (decoder) {
|
|
1390
|
+
var tmp0_desc = this.d56_1;
|
|
1390
1391
|
var tmp1_flag = true;
|
|
1391
1392
|
var tmp2_index = 0;
|
|
1392
1393
|
var tmp3_bitMask0 = 0;
|
|
1393
1394
|
var tmp4_local0 = null;
|
|
1394
1395
|
var tmp5_local1 = null;
|
|
1395
1396
|
var tmp6_local2 = null;
|
|
1396
|
-
var tmp7_input = decoder.
|
|
1397
|
-
if (tmp7_input.
|
|
1398
|
-
tmp4_local0 = tmp7_input.
|
|
1397
|
+
var tmp7_input = decoder.or(tmp0_desc);
|
|
1398
|
+
if (tmp7_input.es()) {
|
|
1399
|
+
tmp4_local0 = tmp7_input.yr(tmp0_desc, 0);
|
|
1399
1400
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1400
|
-
tmp5_local1 = tmp7_input.
|
|
1401
|
+
tmp5_local1 = tmp7_input.as(tmp0_desc, 1, this.e56_1, tmp5_local1);
|
|
1401
1402
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1402
|
-
tmp6_local2 = tmp7_input.
|
|
1403
|
+
tmp6_local2 = tmp7_input.yr(tmp0_desc, 2);
|
|
1403
1404
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1404
1405
|
} else
|
|
1405
1406
|
while (tmp1_flag) {
|
|
1406
|
-
tmp2_index = tmp7_input.
|
|
1407
|
+
tmp2_index = tmp7_input.fs(tmp0_desc);
|
|
1407
1408
|
switch (tmp2_index) {
|
|
1408
1409
|
case -1:
|
|
1409
1410
|
tmp1_flag = false;
|
|
1410
1411
|
break;
|
|
1411
1412
|
case 0:
|
|
1412
|
-
tmp4_local0 = tmp7_input.
|
|
1413
|
+
tmp4_local0 = tmp7_input.yr(tmp0_desc, 0);
|
|
1413
1414
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1414
1415
|
break;
|
|
1415
1416
|
case 1:
|
|
1416
|
-
tmp5_local1 = tmp7_input.
|
|
1417
|
+
tmp5_local1 = tmp7_input.as(tmp0_desc, 1, this.e56_1, tmp5_local1);
|
|
1417
1418
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1418
1419
|
break;
|
|
1419
1420
|
case 2:
|
|
1420
|
-
tmp6_local2 = tmp7_input.
|
|
1421
|
+
tmp6_local2 = tmp7_input.yr(tmp0_desc, 2);
|
|
1421
1422
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1422
1423
|
break;
|
|
1423
1424
|
default:
|
|
1424
1425
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1425
1426
|
}
|
|
1426
1427
|
}
|
|
1427
|
-
tmp7_input.
|
|
1428
|
+
tmp7_input.pr(tmp0_desc);
|
|
1428
1429
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1429
1430
|
};
|
|
1430
|
-
protoOf($serializer_4).
|
|
1431
|
-
return this.
|
|
1431
|
+
protoOf($serializer_4).bo = function () {
|
|
1432
|
+
return this.d56_1;
|
|
1432
1433
|
};
|
|
1433
|
-
protoOf($serializer_4).
|
|
1434
|
+
protoOf($serializer_4).vz = function () {
|
|
1434
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1435
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1436
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1437
|
-
return [StringSerializer_getInstance(), this.
|
|
1438
|
+
return [StringSerializer_getInstance(), this.e56_1, StringSerializer_getInstance()];
|
|
1438
1439
|
};
|
|
1439
|
-
protoOf($serializer_4).
|
|
1440
|
+
protoOf($serializer_4).wz = function () {
|
|
1440
1441
|
// Inline function 'kotlin.arrayOf' call
|
|
1441
1442
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1442
1443
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1443
|
-
return [this.
|
|
1444
|
+
return [this.e56_1];
|
|
1444
1445
|
};
|
|
1445
1446
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1446
1447
|
if (!(7 === (7 & seen0))) {
|
|
1447
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1448
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().f56_1);
|
|
1448
1449
|
}
|
|
1449
|
-
$this.
|
|
1450
|
-
$this.
|
|
1451
|
-
$this.
|
|
1450
|
+
$this.h56_1 = jsonrpc;
|
|
1451
|
+
$this.i56_1 = result;
|
|
1452
|
+
$this.j56_1 = id;
|
|
1452
1453
|
return $this;
|
|
1453
1454
|
}
|
|
1454
1455
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1456,17 +1457,17 @@
|
|
|
1456
1457
|
}
|
|
1457
1458
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1458
1459
|
Companion_getInstance_8();
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1460
|
+
this.h56_1 = jsonrpc;
|
|
1461
|
+
this.i56_1 = result;
|
|
1462
|
+
this.j56_1 = id;
|
|
1462
1463
|
}
|
|
1463
1464
|
protoOf(RandomResponseDto).toString = function () {
|
|
1464
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1465
|
+
return 'RandomResponseDto(jsonrpc=' + this.h56_1 + ', result=' + toString(this.i56_1) + ', id=' + this.j56_1 + ')';
|
|
1465
1466
|
};
|
|
1466
1467
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1467
|
-
var result = getStringHashCode(this.
|
|
1468
|
-
result = imul(result, 31) + hashCode(this.
|
|
1469
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1468
|
+
var result = getStringHashCode(this.h56_1);
|
|
1469
|
+
result = imul(result, 31) + hashCode(this.i56_1) | 0;
|
|
1470
|
+
result = imul(result, 31) + getStringHashCode(this.j56_1) | 0;
|
|
1470
1471
|
return result;
|
|
1471
1472
|
};
|
|
1472
1473
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1475,11 +1476,11 @@
|
|
|
1475
1476
|
if (!(other instanceof RandomResponseDto))
|
|
1476
1477
|
return false;
|
|
1477
1478
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1478
|
-
if (!(this.
|
|
1479
|
+
if (!(this.h56_1 === tmp0_other_with_cast.h56_1))
|
|
1479
1480
|
return false;
|
|
1480
|
-
if (!equals(this.
|
|
1481
|
+
if (!equals(this.i56_1, tmp0_other_with_cast.i56_1))
|
|
1481
1482
|
return false;
|
|
1482
|
-
if (!(this.
|
|
1483
|
+
if (!(this.j56_1 === tmp0_other_with_cast.j56_1))
|
|
1483
1484
|
return false;
|
|
1484
1485
|
return true;
|
|
1485
1486
|
};
|
|
@@ -1492,30 +1493,30 @@
|
|
|
1492
1493
|
function $serializer_5() {
|
|
1493
1494
|
$serializer_instance_3 = this;
|
|
1494
1495
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1495
|
-
tmp0_serialDesc.
|
|
1496
|
-
tmp0_serialDesc.
|
|
1497
|
-
tmp0_serialDesc.
|
|
1498
|
-
tmp0_serialDesc.
|
|
1499
|
-
tmp0_serialDesc.
|
|
1500
|
-
tmp0_serialDesc.
|
|
1501
|
-
this.
|
|
1502
|
-
}
|
|
1503
|
-
protoOf($serializer_5).
|
|
1504
|
-
var tmp0_desc = this.
|
|
1505
|
-
var tmp1_output = encoder.
|
|
1506
|
-
tmp1_output.
|
|
1507
|
-
tmp1_output.
|
|
1508
|
-
tmp1_output.
|
|
1509
|
-
tmp1_output.
|
|
1510
|
-
tmp1_output.
|
|
1511
|
-
tmp1_output.
|
|
1512
|
-
tmp1_output.
|
|
1513
|
-
};
|
|
1514
|
-
protoOf($serializer_5).
|
|
1515
|
-
return this.
|
|
1516
|
-
};
|
|
1517
|
-
protoOf($serializer_5).
|
|
1518
|
-
var tmp0_desc = this.
|
|
1496
|
+
tmp0_serialDesc.gz('random', false);
|
|
1497
|
+
tmp0_serialDesc.gz('signature', false);
|
|
1498
|
+
tmp0_serialDesc.gz('bitsUsed', false);
|
|
1499
|
+
tmp0_serialDesc.gz('bitsLeft', false);
|
|
1500
|
+
tmp0_serialDesc.gz('requestsLeft', false);
|
|
1501
|
+
tmp0_serialDesc.gz('advisoryDelay', false);
|
|
1502
|
+
this.k56_1 = tmp0_serialDesc;
|
|
1503
|
+
}
|
|
1504
|
+
protoOf($serializer_5).l56 = function (encoder, value) {
|
|
1505
|
+
var tmp0_desc = this.k56_1;
|
|
1506
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
1507
|
+
tmp1_output.ft(tmp0_desc, 0, $serializer_getInstance_4(), value.m56_1);
|
|
1508
|
+
tmp1_output.ht(tmp0_desc, 1, StringSerializer_getInstance(), value.n56_1);
|
|
1509
|
+
tmp1_output.ht(tmp0_desc, 2, IntSerializer_getInstance(), value.o56_1);
|
|
1510
|
+
tmp1_output.ht(tmp0_desc, 3, IntSerializer_getInstance(), value.p56_1);
|
|
1511
|
+
tmp1_output.ht(tmp0_desc, 4, IntSerializer_getInstance(), value.q56_1);
|
|
1512
|
+
tmp1_output.ht(tmp0_desc, 5, IntSerializer_getInstance(), value.r56_1);
|
|
1513
|
+
tmp1_output.pr(tmp0_desc);
|
|
1514
|
+
};
|
|
1515
|
+
protoOf($serializer_5).co = function (encoder, value) {
|
|
1516
|
+
return this.l56(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1517
|
+
};
|
|
1518
|
+
protoOf($serializer_5).do = function (decoder) {
|
|
1519
|
+
var tmp0_desc = this.k56_1;
|
|
1519
1520
|
var tmp1_flag = true;
|
|
1520
1521
|
var tmp2_index = 0;
|
|
1521
1522
|
var tmp3_bitMask0 = 0;
|
|
@@ -1525,62 +1526,62 @@
|
|
|
1525
1526
|
var tmp7_local3 = null;
|
|
1526
1527
|
var tmp8_local4 = null;
|
|
1527
1528
|
var tmp9_local5 = null;
|
|
1528
|
-
var tmp10_input = decoder.
|
|
1529
|
-
if (tmp10_input.
|
|
1530
|
-
tmp4_local0 = tmp10_input.
|
|
1529
|
+
var tmp10_input = decoder.or(tmp0_desc);
|
|
1530
|
+
if (tmp10_input.es()) {
|
|
1531
|
+
tmp4_local0 = tmp10_input.as(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1531
1532
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1532
|
-
tmp5_local1 = tmp10_input.
|
|
1533
|
+
tmp5_local1 = tmp10_input.cs(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1533
1534
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1534
|
-
tmp6_local2 = tmp10_input.
|
|
1535
|
+
tmp6_local2 = tmp10_input.cs(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1535
1536
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1536
|
-
tmp7_local3 = tmp10_input.
|
|
1537
|
+
tmp7_local3 = tmp10_input.cs(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1537
1538
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1538
|
-
tmp8_local4 = tmp10_input.
|
|
1539
|
+
tmp8_local4 = tmp10_input.cs(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1539
1540
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1540
|
-
tmp9_local5 = tmp10_input.
|
|
1541
|
+
tmp9_local5 = tmp10_input.cs(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1541
1542
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1542
1543
|
} else
|
|
1543
1544
|
while (tmp1_flag) {
|
|
1544
|
-
tmp2_index = tmp10_input.
|
|
1545
|
+
tmp2_index = tmp10_input.fs(tmp0_desc);
|
|
1545
1546
|
switch (tmp2_index) {
|
|
1546
1547
|
case -1:
|
|
1547
1548
|
tmp1_flag = false;
|
|
1548
1549
|
break;
|
|
1549
1550
|
case 0:
|
|
1550
|
-
tmp4_local0 = tmp10_input.
|
|
1551
|
+
tmp4_local0 = tmp10_input.as(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1551
1552
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1552
1553
|
break;
|
|
1553
1554
|
case 1:
|
|
1554
|
-
tmp5_local1 = tmp10_input.
|
|
1555
|
+
tmp5_local1 = tmp10_input.cs(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1555
1556
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1556
1557
|
break;
|
|
1557
1558
|
case 2:
|
|
1558
|
-
tmp6_local2 = tmp10_input.
|
|
1559
|
+
tmp6_local2 = tmp10_input.cs(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1559
1560
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1560
1561
|
break;
|
|
1561
1562
|
case 3:
|
|
1562
|
-
tmp7_local3 = tmp10_input.
|
|
1563
|
+
tmp7_local3 = tmp10_input.cs(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1563
1564
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1564
1565
|
break;
|
|
1565
1566
|
case 4:
|
|
1566
|
-
tmp8_local4 = tmp10_input.
|
|
1567
|
+
tmp8_local4 = tmp10_input.cs(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1567
1568
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1568
1569
|
break;
|
|
1569
1570
|
case 5:
|
|
1570
|
-
tmp9_local5 = tmp10_input.
|
|
1571
|
+
tmp9_local5 = tmp10_input.cs(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1571
1572
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1572
1573
|
break;
|
|
1573
1574
|
default:
|
|
1574
1575
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1575
1576
|
}
|
|
1576
1577
|
}
|
|
1577
|
-
tmp10_input.
|
|
1578
|
+
tmp10_input.pr(tmp0_desc);
|
|
1578
1579
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1579
1580
|
};
|
|
1580
|
-
protoOf($serializer_5).
|
|
1581
|
-
return this.
|
|
1581
|
+
protoOf($serializer_5).bo = function () {
|
|
1582
|
+
return this.k56_1;
|
|
1582
1583
|
};
|
|
1583
|
-
protoOf($serializer_5).
|
|
1584
|
+
protoOf($serializer_5).vz = function () {
|
|
1584
1585
|
// Inline function 'kotlin.arrayOf' call
|
|
1585
1586
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1586
1587
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1594,37 +1595,37 @@
|
|
|
1594
1595
|
}
|
|
1595
1596
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1596
1597
|
if (!(63 === (63 & seen0))) {
|
|
1597
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1598
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().k56_1);
|
|
1598
1599
|
}
|
|
1599
|
-
$this.
|
|
1600
|
-
$this.
|
|
1601
|
-
$this.
|
|
1602
|
-
$this.
|
|
1603
|
-
$this.
|
|
1604
|
-
$this.
|
|
1600
|
+
$this.m56_1 = random;
|
|
1601
|
+
$this.n56_1 = signature;
|
|
1602
|
+
$this.o56_1 = bitsUsed;
|
|
1603
|
+
$this.p56_1 = bitsLeft;
|
|
1604
|
+
$this.q56_1 = requestsLeft;
|
|
1605
|
+
$this.r56_1 = advisoryDelay;
|
|
1605
1606
|
return $this;
|
|
1606
1607
|
}
|
|
1607
1608
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1608
1609
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1609
1610
|
}
|
|
1610
1611
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1612
|
+
this.m56_1 = random;
|
|
1613
|
+
this.n56_1 = signature;
|
|
1614
|
+
this.o56_1 = bitsUsed;
|
|
1615
|
+
this.p56_1 = bitsLeft;
|
|
1616
|
+
this.q56_1 = requestsLeft;
|
|
1617
|
+
this.r56_1 = advisoryDelay;
|
|
1617
1618
|
}
|
|
1618
1619
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1619
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1620
|
+
return 'IntegerSequencesResultDto(random=' + this.m56_1.toString() + ', signature=' + this.n56_1 + ', bitsUsed=' + this.o56_1 + ', bitsLeft=' + this.p56_1 + ', requestsLeft=' + this.q56_1 + ', advisoryDelay=' + this.r56_1 + ')';
|
|
1620
1621
|
};
|
|
1621
1622
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1622
|
-
var result = this.
|
|
1623
|
-
result = imul(result, 31) + (this.
|
|
1624
|
-
result = imul(result, 31) + (this.
|
|
1625
|
-
result = imul(result, 31) + (this.
|
|
1626
|
-
result = imul(result, 31) + (this.
|
|
1627
|
-
result = imul(result, 31) + (this.
|
|
1623
|
+
var result = this.m56_1.hashCode();
|
|
1624
|
+
result = imul(result, 31) + (this.n56_1 == null ? 0 : getStringHashCode(this.n56_1)) | 0;
|
|
1625
|
+
result = imul(result, 31) + (this.o56_1 == null ? 0 : this.o56_1) | 0;
|
|
1626
|
+
result = imul(result, 31) + (this.p56_1 == null ? 0 : this.p56_1) | 0;
|
|
1627
|
+
result = imul(result, 31) + (this.q56_1 == null ? 0 : this.q56_1) | 0;
|
|
1628
|
+
result = imul(result, 31) + (this.r56_1 == null ? 0 : this.r56_1) | 0;
|
|
1628
1629
|
return result;
|
|
1629
1630
|
};
|
|
1630
1631
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1633,17 +1634,17 @@
|
|
|
1633
1634
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1634
1635
|
return false;
|
|
1635
1636
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1636
|
-
if (!this.
|
|
1637
|
+
if (!this.m56_1.equals(tmp0_other_with_cast.m56_1))
|
|
1637
1638
|
return false;
|
|
1638
|
-
if (!(this.
|
|
1639
|
+
if (!(this.n56_1 == tmp0_other_with_cast.n56_1))
|
|
1639
1640
|
return false;
|
|
1640
|
-
if (!(this.
|
|
1641
|
+
if (!(this.o56_1 == tmp0_other_with_cast.o56_1))
|
|
1641
1642
|
return false;
|
|
1642
|
-
if (!(this.
|
|
1643
|
+
if (!(this.p56_1 == tmp0_other_with_cast.p56_1))
|
|
1643
1644
|
return false;
|
|
1644
|
-
if (!(this.
|
|
1645
|
+
if (!(this.q56_1 == tmp0_other_with_cast.q56_1))
|
|
1645
1646
|
return false;
|
|
1646
|
-
if (!(this.
|
|
1647
|
+
if (!(this.r56_1 == tmp0_other_with_cast.r56_1))
|
|
1647
1648
|
return false;
|
|
1648
1649
|
return true;
|
|
1649
1650
|
};
|
|
@@ -1657,7 +1658,7 @@
|
|
|
1657
1658
|
// Inline function 'kotlin.arrayOf' call
|
|
1658
1659
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1659
1660
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1660
|
-
tmp.
|
|
1661
|
+
tmp.s56_1 = [lazy(tmp_0, RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez), null, null];
|
|
1661
1662
|
}
|
|
1662
1663
|
var Companion_instance_9;
|
|
1663
1664
|
function Companion_getInstance_10() {
|
|
@@ -1668,74 +1669,74 @@
|
|
|
1668
1669
|
function $serializer_6() {
|
|
1669
1670
|
$serializer_instance_4 = this;
|
|
1670
1671
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1671
|
-
tmp0_serialDesc.
|
|
1672
|
-
tmp0_serialDesc.
|
|
1673
|
-
tmp0_serialDesc.
|
|
1674
|
-
this.
|
|
1675
|
-
}
|
|
1676
|
-
protoOf($serializer_6).
|
|
1677
|
-
var tmp0_desc = this.
|
|
1678
|
-
var tmp1_output = encoder.
|
|
1679
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1680
|
-
tmp1_output.
|
|
1681
|
-
tmp1_output.
|
|
1682
|
-
tmp1_output.
|
|
1683
|
-
tmp1_output.
|
|
1684
|
-
};
|
|
1685
|
-
protoOf($serializer_6).
|
|
1686
|
-
return this.
|
|
1687
|
-
};
|
|
1688
|
-
protoOf($serializer_6).
|
|
1689
|
-
var tmp0_desc = this.
|
|
1672
|
+
tmp0_serialDesc.gz('data', false);
|
|
1673
|
+
tmp0_serialDesc.gz('completionTime', false);
|
|
1674
|
+
tmp0_serialDesc.gz('ticketId', false);
|
|
1675
|
+
this.t56_1 = tmp0_serialDesc;
|
|
1676
|
+
}
|
|
1677
|
+
protoOf($serializer_6).u56 = function (encoder, value) {
|
|
1678
|
+
var tmp0_desc = this.t56_1;
|
|
1679
|
+
var tmp1_output = encoder.or(tmp0_desc);
|
|
1680
|
+
var tmp2_cached = Companion_getInstance_10().s56_1;
|
|
1681
|
+
tmp1_output.ft(tmp0_desc, 0, tmp2_cached[0].w(), value.v56_1);
|
|
1682
|
+
tmp1_output.dt(tmp0_desc, 1, value.w56_1);
|
|
1683
|
+
tmp1_output.ht(tmp0_desc, 2, StringSerializer_getInstance(), value.x56_1);
|
|
1684
|
+
tmp1_output.pr(tmp0_desc);
|
|
1685
|
+
};
|
|
1686
|
+
protoOf($serializer_6).co = function (encoder, value) {
|
|
1687
|
+
return this.u56(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1688
|
+
};
|
|
1689
|
+
protoOf($serializer_6).do = function (decoder) {
|
|
1690
|
+
var tmp0_desc = this.t56_1;
|
|
1690
1691
|
var tmp1_flag = true;
|
|
1691
1692
|
var tmp2_index = 0;
|
|
1692
1693
|
var tmp3_bitMask0 = 0;
|
|
1693
1694
|
var tmp4_local0 = null;
|
|
1694
1695
|
var tmp5_local1 = null;
|
|
1695
1696
|
var tmp6_local2 = null;
|
|
1696
|
-
var tmp7_input = decoder.
|
|
1697
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1698
|
-
if (tmp7_input.
|
|
1699
|
-
tmp4_local0 = tmp7_input.
|
|
1697
|
+
var tmp7_input = decoder.or(tmp0_desc);
|
|
1698
|
+
var tmp8_cached = Companion_getInstance_10().s56_1;
|
|
1699
|
+
if (tmp7_input.es()) {
|
|
1700
|
+
tmp4_local0 = tmp7_input.as(tmp0_desc, 0, tmp8_cached[0].w(), tmp4_local0);
|
|
1700
1701
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1701
|
-
tmp5_local1 = tmp7_input.
|
|
1702
|
+
tmp5_local1 = tmp7_input.yr(tmp0_desc, 1);
|
|
1702
1703
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1703
|
-
tmp6_local2 = tmp7_input.
|
|
1704
|
+
tmp6_local2 = tmp7_input.cs(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1704
1705
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1705
1706
|
} else
|
|
1706
1707
|
while (tmp1_flag) {
|
|
1707
|
-
tmp2_index = tmp7_input.
|
|
1708
|
+
tmp2_index = tmp7_input.fs(tmp0_desc);
|
|
1708
1709
|
switch (tmp2_index) {
|
|
1709
1710
|
case -1:
|
|
1710
1711
|
tmp1_flag = false;
|
|
1711
1712
|
break;
|
|
1712
1713
|
case 0:
|
|
1713
|
-
tmp4_local0 = tmp7_input.
|
|
1714
|
+
tmp4_local0 = tmp7_input.as(tmp0_desc, 0, tmp8_cached[0].w(), tmp4_local0);
|
|
1714
1715
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1715
1716
|
break;
|
|
1716
1717
|
case 1:
|
|
1717
|
-
tmp5_local1 = tmp7_input.
|
|
1718
|
+
tmp5_local1 = tmp7_input.yr(tmp0_desc, 1);
|
|
1718
1719
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1719
1720
|
break;
|
|
1720
1721
|
case 2:
|
|
1721
|
-
tmp6_local2 = tmp7_input.
|
|
1722
|
+
tmp6_local2 = tmp7_input.cs(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1722
1723
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1723
1724
|
break;
|
|
1724
1725
|
default:
|
|
1725
1726
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1726
1727
|
}
|
|
1727
1728
|
}
|
|
1728
|
-
tmp7_input.
|
|
1729
|
+
tmp7_input.pr(tmp0_desc);
|
|
1729
1730
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1730
1731
|
};
|
|
1731
|
-
protoOf($serializer_6).
|
|
1732
|
-
return this.
|
|
1732
|
+
protoOf($serializer_6).bo = function () {
|
|
1733
|
+
return this.t56_1;
|
|
1733
1734
|
};
|
|
1734
|
-
protoOf($serializer_6).
|
|
1735
|
+
protoOf($serializer_6).vz = function () {
|
|
1735
1736
|
// Inline function 'kotlin.arrayOf' call
|
|
1736
1737
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1737
1738
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1738
|
-
return [Companion_getInstance_10().
|
|
1739
|
+
return [Companion_getInstance_10().s56_1[0].w(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1739
1740
|
};
|
|
1740
1741
|
var $serializer_instance_4;
|
|
1741
1742
|
function $serializer_getInstance_4() {
|
|
@@ -1745,11 +1746,11 @@
|
|
|
1745
1746
|
}
|
|
1746
1747
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1747
1748
|
if (!(7 === (7 & seen0))) {
|
|
1748
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1749
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().t56_1);
|
|
1749
1750
|
}
|
|
1750
|
-
$this.
|
|
1751
|
-
$this.
|
|
1752
|
-
$this.
|
|
1751
|
+
$this.v56_1 = data;
|
|
1752
|
+
$this.w56_1 = completionTime;
|
|
1753
|
+
$this.x56_1 = ticketId;
|
|
1753
1754
|
return $this;
|
|
1754
1755
|
}
|
|
1755
1756
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1758,12 +1759,12 @@
|
|
|
1758
1759
|
function IntegerSequencesDataDto() {
|
|
1759
1760
|
}
|
|
1760
1761
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1761
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1762
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.v56_1) + ', completionTime=' + this.w56_1 + ', ticketId=' + this.x56_1 + ')';
|
|
1762
1763
|
};
|
|
1763
1764
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1764
|
-
var result = hashCode(this.
|
|
1765
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1766
|
-
result = imul(result, 31) + (this.
|
|
1765
|
+
var result = hashCode(this.v56_1);
|
|
1766
|
+
result = imul(result, 31) + getStringHashCode(this.w56_1) | 0;
|
|
1767
|
+
result = imul(result, 31) + (this.x56_1 == null ? 0 : getStringHashCode(this.x56_1)) | 0;
|
|
1767
1768
|
return result;
|
|
1768
1769
|
};
|
|
1769
1770
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1772,11 +1773,11 @@
|
|
|
1772
1773
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1773
1774
|
return false;
|
|
1774
1775
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1775
|
-
if (!equals(this.
|
|
1776
|
+
if (!equals(this.v56_1, tmp0_other_with_cast.v56_1))
|
|
1776
1777
|
return false;
|
|
1777
|
-
if (!(this.
|
|
1778
|
+
if (!(this.w56_1 === tmp0_other_with_cast.w56_1))
|
|
1778
1779
|
return false;
|
|
1779
|
-
if (!(this.
|
|
1780
|
+
if (!(this.x56_1 == tmp0_other_with_cast.x56_1))
|
|
1780
1781
|
return false;
|
|
1781
1782
|
return true;
|
|
1782
1783
|
};
|
|
@@ -1787,15 +1788,15 @@
|
|
|
1787
1788
|
}
|
|
1788
1789
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1789
1790
|
var tmp = new $throwIfErrorCOROUTINE$($this, bodyAsJson, response, $completion);
|
|
1790
|
-
tmp.
|
|
1791
|
-
tmp.
|
|
1792
|
-
return tmp.
|
|
1791
|
+
tmp.t8_1 = Unit_instance;
|
|
1792
|
+
tmp.u8_1 = null;
|
|
1793
|
+
return tmp.z8();
|
|
1793
1794
|
}
|
|
1794
1795
|
function extractRandomResult($this, bodyAsJson) {
|
|
1795
1796
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1796
1797
|
}
|
|
1797
1798
|
function Companion_8() {
|
|
1798
|
-
this.
|
|
1799
|
+
this.k57_1 = 52;
|
|
1799
1800
|
}
|
|
1800
1801
|
var Companion_instance_10;
|
|
1801
1802
|
function Companion_getInstance_11() {
|
|
@@ -1803,169 +1804,151 @@
|
|
|
1803
1804
|
}
|
|
1804
1805
|
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1805
1806
|
CoroutineImpl.call(this, resultContinuation);
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1813
|
-
}
|
|
1814
|
-
protoOf($getRandomCardDecksCOROUTINE$).
|
|
1815
|
-
var suspendResult = this.
|
|
1807
|
+
this.t57_1 = _this__u8e3s4;
|
|
1808
|
+
this.u57_1 = min;
|
|
1809
|
+
this.v57_1 = max;
|
|
1810
|
+
this.w57_1 = decksCount;
|
|
1811
|
+
this.x57_1 = cardsCount;
|
|
1812
|
+
this.y57_1 = userData;
|
|
1813
|
+
this.z57_1 = signed;
|
|
1814
|
+
}
|
|
1815
|
+
protoOf($getRandomCardDecksCOROUTINE$).z8 = function () {
|
|
1816
|
+
var suspendResult = this.t8_1;
|
|
1816
1817
|
$sm: do
|
|
1817
1818
|
try {
|
|
1818
|
-
var tmp = this.
|
|
1819
|
+
var tmp = this.r8_1;
|
|
1819
1820
|
switch (tmp) {
|
|
1820
1821
|
case 0:
|
|
1821
|
-
this.
|
|
1822
|
-
this.
|
|
1823
|
-
var
|
|
1824
|
-
tmp_0.t5v_1 = this.m5v_1.j5w_1;
|
|
1825
|
-
this.u5v_1 = this.t5v_1;
|
|
1826
|
-
var tmp_1 = this;
|
|
1827
|
-
tmp_1.v5v_1 = this.u5v_1;
|
|
1828
|
-
var tmp_2 = this;
|
|
1822
|
+
this.s8_1 = 6;
|
|
1823
|
+
this.s8_1 = 5;
|
|
1824
|
+
var tmp0 = this.t57_1.c58_1;
|
|
1829
1825
|
var this_0 = new HttpRequestBuilder();
|
|
1830
1826
|
url(this_0, '/json-rpc/4/invoke');
|
|
1831
|
-
var tmp3_id = this.
|
|
1832
|
-
var tmp4_method = this.
|
|
1833
|
-
var tmp0_apiKey = this.
|
|
1834
|
-
var size = this.
|
|
1827
|
+
var tmp3_id = this.y57_1.id;
|
|
1828
|
+
var tmp4_method = this.z57_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1829
|
+
var tmp0_apiKey = this.t57_1.d58_1;
|
|
1830
|
+
var size = this.w57_1;
|
|
1835
1831
|
var list = ArrayList_init_$Create$(size);
|
|
1836
1832
|
var inductionVariable = 0;
|
|
1837
1833
|
if (inductionVariable < size)
|
|
1838
1834
|
do {
|
|
1839
1835
|
var index = inductionVariable;
|
|
1840
1836
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1841
|
-
list.
|
|
1837
|
+
list.j(this.x57_1);
|
|
1842
1838
|
}
|
|
1843
1839
|
while (inductionVariable < size);
|
|
1844
|
-
var tmp2_userData = this.
|
|
1845
|
-
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.
|
|
1840
|
+
var tmp2_userData = this.z57_1 ? mapToDto(this.y57_1) : null;
|
|
1841
|
+
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.w57_1, list, this.u57_1, this.v57_1, false, null, tmp2_userData);
|
|
1846
1842
|
var body = new RandomRequestDto('2.0', tmp4_method, tmp5_params, tmp3_id);
|
|
1847
1843
|
if (body == null) {
|
|
1848
|
-
this_0.
|
|
1849
|
-
var
|
|
1850
|
-
var
|
|
1851
|
-
var
|
|
1844
|
+
this_0.m3s_1 = NullBody_instance;
|
|
1845
|
+
var tmp_0 = JsType_instance;
|
|
1846
|
+
var tmp_1 = getKClass(RandomRequestDto);
|
|
1847
|
+
var tmp_2;
|
|
1852
1848
|
try {
|
|
1853
|
-
|
|
1849
|
+
tmp_2 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
|
|
1854
1850
|
} catch ($p) {
|
|
1855
|
-
var
|
|
1851
|
+
var tmp_3;
|
|
1856
1852
|
if ($p instanceof Error) {
|
|
1857
1853
|
var cause = $p;
|
|
1858
|
-
|
|
1854
|
+
tmp_3 = null;
|
|
1859
1855
|
} else {
|
|
1860
1856
|
throw $p;
|
|
1861
1857
|
}
|
|
1862
|
-
|
|
1858
|
+
tmp_2 = tmp_3;
|
|
1863
1859
|
}
|
|
1864
|
-
this_0.
|
|
1860
|
+
this_0.y3x(typeInfoImpl(tmp_0, tmp_1, tmp_2));
|
|
1865
1861
|
} else {
|
|
1866
1862
|
if (body instanceof OutgoingContent) {
|
|
1867
|
-
this_0.
|
|
1868
|
-
this_0.
|
|
1863
|
+
this_0.m3s_1 = body;
|
|
1864
|
+
this_0.y3x(null);
|
|
1869
1865
|
} else {
|
|
1870
|
-
this_0.
|
|
1871
|
-
var
|
|
1872
|
-
var
|
|
1873
|
-
var
|
|
1866
|
+
this_0.m3s_1 = body;
|
|
1867
|
+
var tmp_4 = JsType_instance;
|
|
1868
|
+
var tmp_5 = getKClass(RandomRequestDto);
|
|
1869
|
+
var tmp_6;
|
|
1874
1870
|
try {
|
|
1875
|
-
|
|
1871
|
+
tmp_6 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
|
|
1876
1872
|
} catch ($p) {
|
|
1877
|
-
var
|
|
1873
|
+
var tmp_7;
|
|
1878
1874
|
if ($p instanceof Error) {
|
|
1879
1875
|
var cause_0 = $p;
|
|
1880
|
-
|
|
1876
|
+
tmp_7 = null;
|
|
1881
1877
|
} else {
|
|
1882
1878
|
throw $p;
|
|
1883
1879
|
}
|
|
1884
|
-
|
|
1880
|
+
tmp_6 = tmp_7;
|
|
1885
1881
|
}
|
|
1886
|
-
this_0.
|
|
1882
|
+
this_0.y3x(typeInfoImpl(tmp_4, tmp_5, tmp_6));
|
|
1887
1883
|
}
|
|
1888
1884
|
}
|
|
1889
1885
|
|
|
1890
|
-
|
|
1891
|
-
this.
|
|
1892
|
-
|
|
1893
|
-
this.y5v_1.a2z_1 = Companion_getInstance().o2n_1;
|
|
1894
|
-
var tmp_11 = this;
|
|
1895
|
-
tmp_11.z5v_1 = this.x5v_1;
|
|
1896
|
-
var tmp_12 = this;
|
|
1897
|
-
tmp_12.a5w_1 = this.y5v_1;
|
|
1898
|
-
this.b5w_1 = this.z5v_1;
|
|
1899
|
-
this.c5w_1 = this.a5w_1;
|
|
1900
|
-
this.l9_1 = 1;
|
|
1901
|
-
suspendResult = (new HttpStatement(this.c5w_1, this.b5w_1)).u3s(this);
|
|
1886
|
+
this_0.k3s_1 = Companion_getInstance().m3j_1;
|
|
1887
|
+
this.r8_1 = 1;
|
|
1888
|
+
suspendResult = (new HttpStatement(this_0, tmp0)).z4i(this);
|
|
1902
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1903
1890
|
return suspendResult;
|
|
1904
1891
|
}
|
|
1905
1892
|
|
|
1906
1893
|
continue $sm;
|
|
1907
1894
|
case 1:
|
|
1908
|
-
this.
|
|
1909
|
-
var
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
var
|
|
1914
|
-
var
|
|
1915
|
-
var tmp_16 = getKClass(JsonObject);
|
|
1916
|
-
var tmp_17;
|
|
1895
|
+
this.b58_1 = suspendResult;
|
|
1896
|
+
var this_1 = this.b58_1;
|
|
1897
|
+
this.r8_1 = 2;
|
|
1898
|
+
var tmp_8 = this_1.n3v();
|
|
1899
|
+
var tmp_9 = JsType_instance;
|
|
1900
|
+
var tmp_10 = getKClass(JsonObject);
|
|
1901
|
+
var tmp_11;
|
|
1917
1902
|
try {
|
|
1918
|
-
|
|
1903
|
+
tmp_11 = createKType(getKClass(JsonObject), arrayOf([]), false);
|
|
1919
1904
|
} catch ($p) {
|
|
1920
|
-
var
|
|
1905
|
+
var tmp_12;
|
|
1921
1906
|
if ($p instanceof Error) {
|
|
1922
1907
|
var cause_1 = $p;
|
|
1923
|
-
|
|
1908
|
+
tmp_12 = null;
|
|
1924
1909
|
} else {
|
|
1925
1910
|
throw $p;
|
|
1926
1911
|
}
|
|
1927
|
-
|
|
1912
|
+
tmp_11 = tmp_12;
|
|
1928
1913
|
}
|
|
1929
1914
|
|
|
1930
|
-
suspendResult =
|
|
1915
|
+
suspendResult = tmp_8.r3u(typeInfoImpl(tmp_9, tmp_10, tmp_11), this);
|
|
1931
1916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1932
1917
|
return suspendResult;
|
|
1933
1918
|
}
|
|
1934
1919
|
|
|
1935
1920
|
continue $sm;
|
|
1936
1921
|
case 2:
|
|
1937
|
-
var
|
|
1938
|
-
|
|
1939
|
-
this.
|
|
1940
|
-
suspendResult = throwIfError(this.
|
|
1922
|
+
var tmp_13 = this;
|
|
1923
|
+
tmp_13.a58_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1924
|
+
this.r8_1 = 3;
|
|
1925
|
+
suspendResult = throwIfError(this.t57_1, this.a58_1, this.b58_1, this);
|
|
1941
1926
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1942
1927
|
return suspendResult;
|
|
1943
1928
|
}
|
|
1944
1929
|
|
|
1945
1930
|
continue $sm;
|
|
1946
1931
|
case 3:
|
|
1947
|
-
var
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
var
|
|
1952
|
-
var
|
|
1953
|
-
var tmp_23 = getKClass(RandomResponseDto);
|
|
1954
|
-
var tmp_24;
|
|
1932
|
+
var this_2 = this.b58_1;
|
|
1933
|
+
this.r8_1 = 4;
|
|
1934
|
+
var tmp_14 = this_2.n3v();
|
|
1935
|
+
var tmp_15 = JsType_instance;
|
|
1936
|
+
var tmp_16 = getKClass(RandomResponseDto);
|
|
1937
|
+
var tmp_17;
|
|
1955
1938
|
try {
|
|
1956
|
-
|
|
1939
|
+
tmp_17 = createKType(getKClass(RandomResponseDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(IntegerSequencesResultDto), arrayOf([]), false))]), false);
|
|
1957
1940
|
} catch ($p) {
|
|
1958
|
-
var
|
|
1941
|
+
var tmp_18;
|
|
1959
1942
|
if ($p instanceof Error) {
|
|
1960
1943
|
var cause_2 = $p;
|
|
1961
|
-
|
|
1944
|
+
tmp_18 = null;
|
|
1962
1945
|
} else {
|
|
1963
1946
|
throw $p;
|
|
1964
1947
|
}
|
|
1965
|
-
|
|
1948
|
+
tmp_17 = tmp_18;
|
|
1966
1949
|
}
|
|
1967
1950
|
|
|
1968
|
-
suspendResult =
|
|
1951
|
+
suspendResult = tmp_14.r3u(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1969
1952
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1970
1953
|
return suspendResult;
|
|
1971
1954
|
}
|
|
@@ -1973,82 +1956,80 @@
|
|
|
1973
1956
|
continue $sm;
|
|
1974
1957
|
case 4:
|
|
1975
1958
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1976
|
-
var randomJson = extractRandomResult(this.
|
|
1977
|
-
var tmp0_cardDecks = responseDto.
|
|
1978
|
-
var tmp1_signature = responseDto.
|
|
1979
|
-
var tmp2_id = responseDto.
|
|
1959
|
+
var randomJson = extractRandomResult(this.t57_1, this.a58_1);
|
|
1960
|
+
var tmp0_cardDecks = responseDto.i56_1.m56_1.v56_1;
|
|
1961
|
+
var tmp1_signature = responseDto.i56_1.n56_1;
|
|
1962
|
+
var tmp2_id = responseDto.j56_1;
|
|
1980
1963
|
return new CardDeckResult(tmp0_cardDecks, randomJson, tmp2_id, tmp1_signature);
|
|
1981
1964
|
case 5:
|
|
1982
|
-
this.
|
|
1983
|
-
var
|
|
1984
|
-
if (
|
|
1985
|
-
var error = this.
|
|
1965
|
+
this.s8_1 = 6;
|
|
1966
|
+
var tmp_19 = this.u8_1;
|
|
1967
|
+
if (tmp_19 instanceof Error) {
|
|
1968
|
+
var error = this.u8_1;
|
|
1986
1969
|
if (error instanceof RandomException)
|
|
1987
1970
|
throw error;
|
|
1988
1971
|
else {
|
|
1989
1972
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1990
1973
|
}
|
|
1991
1974
|
} else {
|
|
1992
|
-
throw this.
|
|
1975
|
+
throw this.u8_1;
|
|
1993
1976
|
}
|
|
1994
1977
|
|
|
1995
1978
|
case 6:
|
|
1996
|
-
throw this.
|
|
1979
|
+
throw this.u8_1;
|
|
1997
1980
|
}
|
|
1998
1981
|
} catch ($p) {
|
|
1999
1982
|
var e = $p;
|
|
2000
|
-
if (this.
|
|
1983
|
+
if (this.s8_1 === 6) {
|
|
2001
1984
|
throw e;
|
|
2002
1985
|
} else {
|
|
2003
|
-
this.
|
|
2004
|
-
this.
|
|
1986
|
+
this.r8_1 = this.s8_1;
|
|
1987
|
+
this.u8_1 = e;
|
|
2005
1988
|
}
|
|
2006
1989
|
}
|
|
2007
1990
|
while (true);
|
|
2008
1991
|
};
|
|
2009
1992
|
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
2010
1993
|
CoroutineImpl.call(this, resultContinuation);
|
|
2011
|
-
this.
|
|
2012
|
-
this.
|
|
2013
|
-
this.
|
|
1994
|
+
this.h57_1 = _this__u8e3s4;
|
|
1995
|
+
this.i57_1 = bodyAsJson;
|
|
1996
|
+
this.j57_1 = response;
|
|
2014
1997
|
}
|
|
2015
|
-
protoOf($throwIfErrorCOROUTINE$).
|
|
2016
|
-
var suspendResult = this.
|
|
1998
|
+
protoOf($throwIfErrorCOROUTINE$).z8 = function () {
|
|
1999
|
+
var suspendResult = this.t8_1;
|
|
2017
2000
|
$sm: do
|
|
2018
2001
|
try {
|
|
2019
|
-
var tmp = this.
|
|
2002
|
+
var tmp = this.r8_1;
|
|
2020
2003
|
switch (tmp) {
|
|
2021
2004
|
case 0:
|
|
2022
|
-
this.
|
|
2023
|
-
var this_0 = this.
|
|
2024
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2025
|
-
var
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
var
|
|
2030
|
-
var
|
|
2031
|
-
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2032
|
-
var tmp_4;
|
|
2005
|
+
this.s8_1 = 3;
|
|
2006
|
+
var this_0 = this.i57_1;
|
|
2007
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).z1('error')) {
|
|
2008
|
+
var this_1 = this.j57_1;
|
|
2009
|
+
this.r8_1 = 2;
|
|
2010
|
+
var tmp_0 = this_1.n3v();
|
|
2011
|
+
var tmp_1 = JsType_instance;
|
|
2012
|
+
var tmp_2 = getKClass(ErrorResponseDto);
|
|
2013
|
+
var tmp_3;
|
|
2033
2014
|
try {
|
|
2034
|
-
|
|
2015
|
+
tmp_3 = createKType(getKClass(ErrorResponseDto), arrayOf([]), false);
|
|
2035
2016
|
} catch ($p) {
|
|
2036
|
-
var
|
|
2017
|
+
var tmp_4;
|
|
2037
2018
|
if ($p instanceof Error) {
|
|
2038
2019
|
var cause = $p;
|
|
2039
|
-
|
|
2020
|
+
tmp_4 = null;
|
|
2040
2021
|
} else {
|
|
2041
2022
|
throw $p;
|
|
2042
2023
|
}
|
|
2043
|
-
|
|
2024
|
+
tmp_3 = tmp_4;
|
|
2044
2025
|
}
|
|
2045
|
-
suspendResult =
|
|
2026
|
+
suspendResult = tmp_0.r3u(typeInfoImpl(tmp_1, tmp_2, tmp_3), this);
|
|
2046
2027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2047
2028
|
return suspendResult;
|
|
2048
2029
|
}
|
|
2049
2030
|
continue $sm;
|
|
2050
2031
|
} else {
|
|
2051
|
-
this.
|
|
2032
|
+
this.r8_1 = 1;
|
|
2052
2033
|
continue $sm;
|
|
2053
2034
|
}
|
|
2054
2035
|
|
|
@@ -2056,33 +2037,33 @@
|
|
|
2056
2037
|
return Unit_instance;
|
|
2057
2038
|
case 2:
|
|
2058
2039
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2059
|
-
var tmp0_safe_receiver = errorResponseDto.
|
|
2060
|
-
var
|
|
2061
|
-
var tmp1_safe_receiver = errorResponseDto.
|
|
2062
|
-
throw new RandomException(
|
|
2040
|
+
var tmp0_safe_receiver = errorResponseDto.a55_1;
|
|
2041
|
+
var tmp_5 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d55_1;
|
|
2042
|
+
var tmp1_safe_receiver = errorResponseDto.a55_1;
|
|
2043
|
+
throw new RandomException(tmp_5, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e55_1);
|
|
2063
2044
|
case 3:
|
|
2064
|
-
throw this.
|
|
2045
|
+
throw this.u8_1;
|
|
2065
2046
|
}
|
|
2066
2047
|
} catch ($p) {
|
|
2067
2048
|
var e = $p;
|
|
2068
|
-
if (this.
|
|
2049
|
+
if (this.s8_1 === 3) {
|
|
2069
2050
|
throw e;
|
|
2070
2051
|
} else {
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2052
|
+
this.r8_1 = this.s8_1;
|
|
2053
|
+
this.u8_1 = e;
|
|
2073
2054
|
}
|
|
2074
2055
|
}
|
|
2075
2056
|
while (true);
|
|
2076
2057
|
};
|
|
2077
2058
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2078
|
-
this.
|
|
2079
|
-
this.
|
|
2059
|
+
this.c58_1 = client;
|
|
2060
|
+
this.d58_1 = apiKey;
|
|
2080
2061
|
}
|
|
2081
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2062
|
+
protoOf(RandomOrgApiServiceImpl).y56 = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2082
2063
|
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2083
|
-
tmp.
|
|
2084
|
-
tmp.
|
|
2085
|
-
return tmp.
|
|
2064
|
+
tmp.t8_1 = Unit_instance;
|
|
2065
|
+
tmp.u8_1 = null;
|
|
2066
|
+
return tmp.z8();
|
|
2086
2067
|
};
|
|
2087
2068
|
function PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2088
2069
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -2103,31 +2084,31 @@
|
|
|
2103
2084
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2104
2085
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2105
2086
|
}
|
|
2106
|
-
protoOf(PoolParams).
|
|
2087
|
+
protoOf(PoolParams).t54 = function () {
|
|
2107
2088
|
return this.poolSize;
|
|
2108
2089
|
};
|
|
2109
|
-
protoOf(PoolParams).
|
|
2090
|
+
protoOf(PoolParams).u54 = function () {
|
|
2110
2091
|
return this.thresholdForUsedPool;
|
|
2111
2092
|
};
|
|
2112
|
-
protoOf(PoolParams).
|
|
2093
|
+
protoOf(PoolParams).e58 = function () {
|
|
2113
2094
|
return this.failedRequestAttempts;
|
|
2114
2095
|
};
|
|
2115
|
-
protoOf(PoolParams).
|
|
2096
|
+
protoOf(PoolParams).f58 = function () {
|
|
2116
2097
|
return this.failedAttemptCooldown;
|
|
2117
2098
|
};
|
|
2118
|
-
protoOf(PoolParams).
|
|
2099
|
+
protoOf(PoolParams).ne = function () {
|
|
2119
2100
|
return this.poolSize;
|
|
2120
2101
|
};
|
|
2121
|
-
protoOf(PoolParams).
|
|
2102
|
+
protoOf(PoolParams).oe = function () {
|
|
2122
2103
|
return this.thresholdForUsedPool;
|
|
2123
2104
|
};
|
|
2124
|
-
protoOf(PoolParams).
|
|
2105
|
+
protoOf(PoolParams).xl = function () {
|
|
2125
2106
|
return this.failedRequestAttempts;
|
|
2126
2107
|
};
|
|
2127
|
-
protoOf(PoolParams).
|
|
2108
|
+
protoOf(PoolParams).g58 = function () {
|
|
2128
2109
|
return this.failedAttemptCooldown;
|
|
2129
2110
|
};
|
|
2130
|
-
protoOf(PoolParams).
|
|
2111
|
+
protoOf(PoolParams).h58 = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2131
2112
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2132
2113
|
};
|
|
2133
2114
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2135,7 +2116,7 @@
|
|
|
2135
2116
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2136
2117
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2137
2118
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2138
|
-
return $super === VOID ? this.
|
|
2119
|
+
return $super === VOID ? this.h58(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.h58.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2139
2120
|
};
|
|
2140
2121
|
protoOf(PoolParams).toString = function () {
|
|
2141
2122
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2165,95 +2146,12 @@
|
|
|
2165
2146
|
};
|
|
2166
2147
|
function RandomPoolProvider() {
|
|
2167
2148
|
}
|
|
2168
|
-
function _get_cardDecksCount__ihvb5i($this) {
|
|
2169
|
-
return $this.t5w_1.u5r_1.m();
|
|
2170
|
-
}
|
|
2171
|
-
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2172
|
-
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2173
|
-
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2174
|
-
isUsed = isUsed === VOID ? false : isUsed;
|
|
2175
|
-
this.t5w_1 = randomResult;
|
|
2176
|
-
this.u5w_1 = usedByGames;
|
|
2177
|
-
this.v5w_1 = reservedCardDecks;
|
|
2178
|
-
this.w5w_1 = isUsed;
|
|
2179
|
-
}
|
|
2180
|
-
protoOf(RandomPoolValue).x5w = function (minRoundsCount) {
|
|
2181
|
-
if (this.w5w_1) {
|
|
2182
|
-
return false;
|
|
2183
|
-
}
|
|
2184
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.v5w_1 | 0;
|
|
2185
|
-
return availableCount >= minRoundsCount;
|
|
2186
|
-
};
|
|
2187
|
-
protoOf(RandomPoolValue).y5w = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2188
|
-
var previousReservedCardDeckIndex = this.v5w_1;
|
|
2189
|
-
// Inline function 'kotlin.apply' call
|
|
2190
|
-
var this_0 = toMutableMap(this.u5w_1);
|
|
2191
|
-
this_0.n2(gameId, previousReservedCardDeckIndex);
|
|
2192
|
-
var newNewUsedBy = toMap(this_0);
|
|
2193
|
-
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2194
|
-
return this.z5w(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2195
|
-
};
|
|
2196
|
-
protoOf(RandomPoolValue).a5x = function (gameId) {
|
|
2197
|
-
var currentCardDeckIndex = getValue(this.u5w_1, gameId);
|
|
2198
|
-
var tmp;
|
|
2199
|
-
if (currentCardDeckIndex === get_lastIndex(this.t5w_1.u5r_1)) {
|
|
2200
|
-
tmp = 0;
|
|
2201
|
-
} else {
|
|
2202
|
-
tmp = currentCardDeckIndex + 1 | 0;
|
|
2203
|
-
}
|
|
2204
|
-
var newCardDeckIndex = tmp;
|
|
2205
|
-
// Inline function 'kotlin.apply' call
|
|
2206
|
-
var this_0 = toMutableMap(this.u5w_1);
|
|
2207
|
-
this_0.n2(gameId, newCardDeckIndex);
|
|
2208
|
-
var newNewUsedBy = toMap(this_0);
|
|
2209
|
-
return this.z5w(VOID, newNewUsedBy);
|
|
2210
|
-
};
|
|
2211
|
-
protoOf(RandomPoolValue).b5x = function (gameId) {
|
|
2212
|
-
var index = getValue(this.u5w_1, gameId);
|
|
2213
|
-
return new GameCardDeckData(index, this.t5w_1.u5r_1.o(index));
|
|
2214
|
-
};
|
|
2215
|
-
protoOf(RandomPoolValue).c5x = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2216
|
-
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2217
|
-
};
|
|
2218
|
-
protoOf(RandomPoolValue).z5w = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2219
|
-
randomResult = randomResult === VOID ? this.t5w_1 : randomResult;
|
|
2220
|
-
usedByGames = usedByGames === VOID ? this.u5w_1 : usedByGames;
|
|
2221
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.v5w_1 : reservedCardDecks;
|
|
2222
|
-
isUsed = isUsed === VOID ? this.w5w_1 : isUsed;
|
|
2223
|
-
return $super === VOID ? this.c5x(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.c5x.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2224
|
-
};
|
|
2225
|
-
protoOf(RandomPoolValue).toString = function () {
|
|
2226
|
-
return 'RandomPoolValue(randomResult=' + this.t5w_1.toString() + ', usedByGames=' + toString(this.u5w_1) + ', reservedCardDecks=' + this.v5w_1 + ', isUsed=' + this.w5w_1 + ')';
|
|
2227
|
-
};
|
|
2228
|
-
protoOf(RandomPoolValue).hashCode = function () {
|
|
2229
|
-
var result = this.t5w_1.hashCode();
|
|
2230
|
-
result = imul(result, 31) + hashCode(this.u5w_1) | 0;
|
|
2231
|
-
result = imul(result, 31) + this.v5w_1 | 0;
|
|
2232
|
-
result = imul(result, 31) + getBooleanHashCode(this.w5w_1) | 0;
|
|
2233
|
-
return result;
|
|
2234
|
-
};
|
|
2235
|
-
protoOf(RandomPoolValue).equals = function (other) {
|
|
2236
|
-
if (this === other)
|
|
2237
|
-
return true;
|
|
2238
|
-
if (!(other instanceof RandomPoolValue))
|
|
2239
|
-
return false;
|
|
2240
|
-
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2241
|
-
if (!this.t5w_1.equals(tmp0_other_with_cast.t5w_1))
|
|
2242
|
-
return false;
|
|
2243
|
-
if (!equals(this.u5w_1, tmp0_other_with_cast.u5w_1))
|
|
2244
|
-
return false;
|
|
2245
|
-
if (!(this.v5w_1 === tmp0_other_with_cast.v5w_1))
|
|
2246
|
-
return false;
|
|
2247
|
-
if (!(this.w5w_1 === tmp0_other_with_cast.w5w_1))
|
|
2248
|
-
return false;
|
|
2249
|
-
return true;
|
|
2250
|
-
};
|
|
2251
2149
|
function getExceptionIfCooldown($this) {
|
|
2252
|
-
var currentTime = System_instance.
|
|
2253
|
-
if (!($this.
|
|
2254
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2150
|
+
var currentTime = System_instance.ck();
|
|
2151
|
+
if (!($this.u58_1 == null) && $this.v58_1 >= $this.m58_1.failedRequestAttempts) {
|
|
2152
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.m58_1.failedAttemptCooldown, $this.v58_1);
|
|
2255
2153
|
// Inline function 'kotlin.requireNotNull' call
|
|
2256
|
-
var tmp0 = $this.
|
|
2154
|
+
var tmp0 = $this.u58_1;
|
|
2257
2155
|
var tmp$ret$1;
|
|
2258
2156
|
$l$block: {
|
|
2259
2157
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2265,22 +2163,22 @@
|
|
|
2265
2163
|
break $l$block;
|
|
2266
2164
|
}
|
|
2267
2165
|
}
|
|
2268
|
-
var allowedRequestTime = tmp$ret$1.
|
|
2269
|
-
if (allowedRequestTime.
|
|
2270
|
-
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2166
|
+
var allowedRequestTime = tmp$ret$1.rk(timeToWait);
|
|
2167
|
+
if (allowedRequestTime.uk(currentTime) > 0) {
|
|
2168
|
+
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.u58_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.v58_1));
|
|
2271
2169
|
return exception;
|
|
2272
2170
|
} else {
|
|
2273
|
-
$this.
|
|
2171
|
+
$this.u58_1 = null;
|
|
2274
2172
|
}
|
|
2275
2173
|
}
|
|
2276
2174
|
return null;
|
|
2277
2175
|
}
|
|
2278
2176
|
function mapToRandomExceptionIfError($this, error) {
|
|
2279
|
-
$this.
|
|
2280
|
-
$this.
|
|
2281
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2177
|
+
$this.u58_1 = System_instance.ck();
|
|
2178
|
+
$this.v58_1 = $this.v58_1 + 1 | 0;
|
|
2179
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.m58_1.failedAttemptCooldown, $this.v58_1);
|
|
2282
2180
|
// Inline function 'kotlin.requireNotNull' call
|
|
2283
|
-
var tmp0 = $this.
|
|
2181
|
+
var tmp0 = $this.u58_1;
|
|
2284
2182
|
var tmp$ret$1;
|
|
2285
2183
|
$l$block: {
|
|
2286
2184
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2292,19 +2190,19 @@
|
|
|
2292
2190
|
break $l$block;
|
|
2293
2191
|
}
|
|
2294
2192
|
}
|
|
2295
|
-
var allowedRequestTime = tmp$ret$1.
|
|
2296
|
-
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2297
|
-
$this.
|
|
2193
|
+
var allowedRequestTime = tmp$ret$1.rk(timeToWait);
|
|
2194
|
+
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.u58_1) + ', ') + ('currentTime = ' + System_instance.ck().toString() + ', ') + ('failedRequestCount = ' + $this.v58_1), error);
|
|
2195
|
+
$this.o58_1.w('RandomPoolProvider', VOID, randomException);
|
|
2298
2196
|
return randomException;
|
|
2299
2197
|
}
|
|
2300
2198
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2301
2199
|
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2302
|
-
tmp.
|
|
2303
|
-
tmp.
|
|
2304
|
-
return tmp.
|
|
2200
|
+
tmp.t8_1 = Unit_instance;
|
|
2201
|
+
tmp.u8_1 = null;
|
|
2202
|
+
return tmp.z8();
|
|
2305
2203
|
}
|
|
2306
2204
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2307
|
-
var existingCardDeck = $this.
|
|
2205
|
+
var existingCardDeck = $this.t58_1.b2(userData.gameId);
|
|
2308
2206
|
var tmp;
|
|
2309
2207
|
if (!(existingCardDeck == null)) {
|
|
2310
2208
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2315,18 +2213,18 @@
|
|
|
2315
2213
|
}
|
|
2316
2214
|
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2317
2215
|
var tmp = new $getPreparedOrRequestPoolCOROUTINE$($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2318
|
-
tmp.
|
|
2319
|
-
tmp.
|
|
2320
|
-
return tmp.
|
|
2216
|
+
tmp.t8_1 = Unit_instance;
|
|
2217
|
+
tmp.u8_1 = null;
|
|
2218
|
+
return tmp.z8();
|
|
2321
2219
|
}
|
|
2322
2220
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2323
|
-
return withContext($this.
|
|
2221
|
+
return withContext($this.p58_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2324
2222
|
}
|
|
2325
2223
|
function Companion_9() {
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
this.
|
|
2224
|
+
this.c5a_1 = 100;
|
|
2225
|
+
this.d5a_1 = 3;
|
|
2226
|
+
this.e5a_1 = 3000;
|
|
2227
|
+
this.f5a_1 = 10000;
|
|
2330
2228
|
}
|
|
2331
2229
|
var Companion_instance_11;
|
|
2332
2230
|
function Companion_getInstance_12() {
|
|
@@ -2336,74 +2234,71 @@
|
|
|
2336
2234
|
return uuid4().toString();
|
|
2337
2235
|
}
|
|
2338
2236
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2339
|
-
this.
|
|
2340
|
-
this.
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2344
|
-
this.
|
|
2345
|
-
this.
|
|
2346
|
-
this.
|
|
2237
|
+
this.o5a_1 = this$0;
|
|
2238
|
+
this.p5a_1 = $minRoundsCountInPool;
|
|
2239
|
+
this.q5a_1 = $userData;
|
|
2240
|
+
this.r5a_1 = $min;
|
|
2241
|
+
this.s5a_1 = $max;
|
|
2242
|
+
this.t5a_1 = $cardsCount;
|
|
2243
|
+
this.u5a_1 = $signed;
|
|
2244
|
+
this.v5a_1 = $requestDurationWarnMillis;
|
|
2347
2245
|
CoroutineImpl.call(this, resultContinuation);
|
|
2348
2246
|
}
|
|
2349
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2350
|
-
var tmp = this.
|
|
2351
|
-
tmp.
|
|
2352
|
-
tmp.
|
|
2353
|
-
var tmp_0 = tmp.
|
|
2247
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).b5b = function ($this$withContext, $completion) {
|
|
2248
|
+
var tmp = this.a2d($this$withContext, $completion);
|
|
2249
|
+
tmp.t8_1 = Unit_instance;
|
|
2250
|
+
tmp.u8_1 = null;
|
|
2251
|
+
var tmp_0 = tmp.z8();
|
|
2354
2252
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2355
2253
|
return tmp_0;
|
|
2356
2254
|
return tmp_0;
|
|
2357
2255
|
};
|
|
2358
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2359
|
-
return this.
|
|
2256
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).h9 = function (p1, $completion) {
|
|
2257
|
+
return this.b5b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2360
2258
|
};
|
|
2361
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2362
|
-
var suspendResult = this.
|
|
2259
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).z8 = function () {
|
|
2260
|
+
var suspendResult = this.t8_1;
|
|
2363
2261
|
$sm: do
|
|
2364
2262
|
try {
|
|
2365
|
-
var tmp = this.
|
|
2263
|
+
var tmp = this.r8_1;
|
|
2366
2264
|
switch (tmp) {
|
|
2367
2265
|
case 0:
|
|
2368
|
-
this.
|
|
2266
|
+
this.s8_1 = 10;
|
|
2267
|
+
this.y5a_1 = this.o5a_1.r58_1;
|
|
2369
2268
|
var tmp_0 = this;
|
|
2370
|
-
tmp_0.
|
|
2371
|
-
this.
|
|
2372
|
-
|
|
2373
|
-
tmp_1.t5z_1 = null;
|
|
2374
|
-
this.l9_1 = 1;
|
|
2375
|
-
suspendResult = this.s5z_1.o1p(this.t5z_1, this);
|
|
2269
|
+
tmp_0.x5a_1 = null;
|
|
2270
|
+
this.r8_1 = 1;
|
|
2271
|
+
suspendResult = this.y5a_1.b2m(this.x5a_1, this);
|
|
2376
2272
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2377
2273
|
return suspendResult;
|
|
2378
2274
|
}
|
|
2379
2275
|
|
|
2380
2276
|
continue $sm;
|
|
2381
2277
|
case 1:
|
|
2382
|
-
this.
|
|
2383
|
-
this.
|
|
2278
|
+
this.z5a_1 = Unit_instance;
|
|
2279
|
+
this.r8_1 = 2;
|
|
2384
2280
|
continue $sm;
|
|
2385
2281
|
case 2:
|
|
2386
|
-
this.
|
|
2387
|
-
this.
|
|
2388
|
-
this.
|
|
2282
|
+
this.s8_1 = 9;
|
|
2283
|
+
this.a5b_1 = Unit_instance;
|
|
2284
|
+
this.r8_1 = 3;
|
|
2389
2285
|
continue $sm;
|
|
2390
2286
|
case 3:
|
|
2391
|
-
|
|
2392
|
-
if (!(
|
|
2393
|
-
var
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
this.l9_1 = 7;
|
|
2287
|
+
var randomException = getExceptionIfCooldown(this.o5a_1);
|
|
2288
|
+
if (!(randomException == null)) {
|
|
2289
|
+
var tmp_1 = this;
|
|
2290
|
+
tmp_1.a5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(randomException)));
|
|
2291
|
+
this.r8_1 = 7;
|
|
2397
2292
|
continue $sm;
|
|
2398
2293
|
} else {
|
|
2399
|
-
this.
|
|
2294
|
+
this.r8_1 = 4;
|
|
2400
2295
|
continue $sm;
|
|
2401
2296
|
}
|
|
2402
2297
|
|
|
2403
2298
|
case 4:
|
|
2404
|
-
this.
|
|
2405
|
-
this.
|
|
2406
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2299
|
+
this.s8_1 = 6;
|
|
2300
|
+
this.r8_1 = 5;
|
|
2301
|
+
suspendResult = getOrLoadGameCardDeckData(this.o5a_1, this.p5a_1, this.q5a_1, this.r5a_1, this.s5a_1, this.t5a_1, this.u5a_1, this.v5a_1, this);
|
|
2407
2302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2408
2303
|
return suspendResult;
|
|
2409
2304
|
}
|
|
@@ -2411,133 +2306,130 @@
|
|
|
2411
2306
|
continue $sm;
|
|
2412
2307
|
case 5:
|
|
2413
2308
|
var cardDeckData = suspendResult;
|
|
2414
|
-
var
|
|
2415
|
-
|
|
2416
|
-
this.
|
|
2309
|
+
var tmp_2 = this;
|
|
2310
|
+
tmp_2.a5b_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2311
|
+
this.r8_1 = 7;
|
|
2417
2312
|
continue $sm;
|
|
2418
2313
|
case 6:
|
|
2419
|
-
this.
|
|
2420
|
-
var
|
|
2421
|
-
if (
|
|
2422
|
-
var error = this.
|
|
2423
|
-
var
|
|
2424
|
-
var
|
|
2425
|
-
|
|
2426
|
-
this.
|
|
2314
|
+
this.s8_1 = 9;
|
|
2315
|
+
var tmp_3 = this.u8_1;
|
|
2316
|
+
if (tmp_3 instanceof Error) {
|
|
2317
|
+
var error = this.u8_1;
|
|
2318
|
+
var tmp_4 = this;
|
|
2319
|
+
var exception = mapToRandomExceptionIfError(this.o5a_1, error);
|
|
2320
|
+
tmp_4.a5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2321
|
+
this.r8_1 = 7;
|
|
2427
2322
|
continue $sm;
|
|
2428
2323
|
} else {
|
|
2429
|
-
throw this.
|
|
2324
|
+
throw this.u8_1;
|
|
2430
2325
|
}
|
|
2431
2326
|
|
|
2432
2327
|
case 7:
|
|
2433
|
-
this.
|
|
2434
|
-
this.
|
|
2435
|
-
this.
|
|
2328
|
+
this.z5a_1 = this.a5b_1;
|
|
2329
|
+
this.s8_1 = 10;
|
|
2330
|
+
this.r8_1 = 8;
|
|
2436
2331
|
continue $sm;
|
|
2437
2332
|
case 8:
|
|
2438
|
-
var
|
|
2439
|
-
this.
|
|
2440
|
-
this.
|
|
2441
|
-
return
|
|
2333
|
+
var tmp_5 = this.z5a_1;
|
|
2334
|
+
this.s8_1 = 10;
|
|
2335
|
+
this.y5a_1.m2l(this.x5a_1);
|
|
2336
|
+
return tmp_5;
|
|
2442
2337
|
case 9:
|
|
2443
|
-
this.
|
|
2444
|
-
var t = this.
|
|
2445
|
-
this.
|
|
2338
|
+
this.s8_1 = 10;
|
|
2339
|
+
var t = this.u8_1;
|
|
2340
|
+
this.y5a_1.m2l(this.x5a_1);
|
|
2446
2341
|
throw t;
|
|
2447
2342
|
case 10:
|
|
2448
|
-
throw this.
|
|
2343
|
+
throw this.u8_1;
|
|
2449
2344
|
}
|
|
2450
2345
|
} catch ($p) {
|
|
2451
2346
|
var e = $p;
|
|
2452
|
-
if (this.
|
|
2347
|
+
if (this.s8_1 === 10) {
|
|
2453
2348
|
throw e;
|
|
2454
2349
|
} else {
|
|
2455
|
-
this.
|
|
2456
|
-
this.
|
|
2350
|
+
this.r8_1 = this.s8_1;
|
|
2351
|
+
this.u8_1 = e;
|
|
2457
2352
|
}
|
|
2458
2353
|
}
|
|
2459
2354
|
while (true);
|
|
2460
2355
|
};
|
|
2461
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2462
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2463
|
-
i.
|
|
2356
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).a2d = function ($this$withContext, completion) {
|
|
2357
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.o5a_1, this.p5a_1, this.q5a_1, this.r5a_1, this.s5a_1, this.t5a_1, this.u5a_1, this.v5a_1, completion);
|
|
2358
|
+
i.w5a_1 = $this$withContext;
|
|
2464
2359
|
return i;
|
|
2465
2360
|
};
|
|
2466
2361
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2467
2362
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2468
2363
|
var l = function ($this$withContext, $completion) {
|
|
2469
|
-
return i.
|
|
2364
|
+
return i.b5b($this$withContext, $completion);
|
|
2470
2365
|
};
|
|
2471
2366
|
l.$arity = 1;
|
|
2472
2367
|
return l;
|
|
2473
2368
|
}
|
|
2474
2369
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2370
|
+
this.k5b_1 = this$0;
|
|
2371
|
+
this.l5b_1 = $min;
|
|
2372
|
+
this.m5b_1 = $max;
|
|
2373
|
+
this.n5b_1 = $cardsCount;
|
|
2374
|
+
this.o5b_1 = $signed;
|
|
2375
|
+
this.p5b_1 = $requestDurationWarnMillis;
|
|
2481
2376
|
CoroutineImpl.call(this, resultContinuation);
|
|
2482
2377
|
}
|
|
2483
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2484
|
-
var tmp = this.
|
|
2485
|
-
tmp.
|
|
2486
|
-
tmp.
|
|
2487
|
-
var tmp_0 = tmp.
|
|
2378
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).v5b = function ($this$withContext, $completion) {
|
|
2379
|
+
var tmp = this.a2d($this$withContext, $completion);
|
|
2380
|
+
tmp.t8_1 = Unit_instance;
|
|
2381
|
+
tmp.u8_1 = null;
|
|
2382
|
+
var tmp_0 = tmp.z8();
|
|
2488
2383
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2489
2384
|
return tmp_0;
|
|
2490
2385
|
return tmp_0;
|
|
2491
2386
|
};
|
|
2492
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2493
|
-
return this.
|
|
2387
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).h9 = function (p1, $completion) {
|
|
2388
|
+
return this.v5b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2494
2389
|
};
|
|
2495
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2496
|
-
var suspendResult = this.
|
|
2390
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).z8 = function () {
|
|
2391
|
+
var suspendResult = this.t8_1;
|
|
2497
2392
|
$sm: do
|
|
2498
2393
|
try {
|
|
2499
|
-
var tmp = this.
|
|
2394
|
+
var tmp = this.r8_1;
|
|
2500
2395
|
switch (tmp) {
|
|
2501
2396
|
case 0:
|
|
2502
|
-
this.
|
|
2397
|
+
this.s8_1 = 10;
|
|
2398
|
+
this.s5b_1 = this.k5b_1.r58_1;
|
|
2503
2399
|
var tmp_0 = this;
|
|
2504
|
-
tmp_0.
|
|
2505
|
-
this.
|
|
2506
|
-
|
|
2507
|
-
tmp_1.p60_1 = null;
|
|
2508
|
-
this.l9_1 = 1;
|
|
2509
|
-
suspendResult = this.o60_1.o1p(this.p60_1, this);
|
|
2400
|
+
tmp_0.r5b_1 = null;
|
|
2401
|
+
this.r8_1 = 1;
|
|
2402
|
+
suspendResult = this.s5b_1.b2m(this.r5b_1, this);
|
|
2510
2403
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2511
2404
|
return suspendResult;
|
|
2512
2405
|
}
|
|
2513
2406
|
|
|
2514
2407
|
continue $sm;
|
|
2515
2408
|
case 1:
|
|
2516
|
-
this.
|
|
2517
|
-
this.
|
|
2409
|
+
this.t5b_1 = Unit_instance;
|
|
2410
|
+
this.r8_1 = 2;
|
|
2518
2411
|
continue $sm;
|
|
2519
2412
|
case 2:
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2522
|
-
this.
|
|
2413
|
+
this.s8_1 = 9;
|
|
2414
|
+
this.u5b_1 = Unit_instance;
|
|
2415
|
+
this.r8_1 = 3;
|
|
2523
2416
|
continue $sm;
|
|
2524
2417
|
case 3:
|
|
2525
|
-
|
|
2526
|
-
if (!(
|
|
2527
|
-
var
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
this.l9_1 = 7;
|
|
2418
|
+
var randomException = getExceptionIfCooldown(this.k5b_1);
|
|
2419
|
+
if (!(randomException == null)) {
|
|
2420
|
+
var tmp_1 = this;
|
|
2421
|
+
tmp_1.u5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(randomException)));
|
|
2422
|
+
this.r8_1 = 7;
|
|
2531
2423
|
continue $sm;
|
|
2532
2424
|
} else {
|
|
2533
|
-
this.
|
|
2425
|
+
this.r8_1 = 4;
|
|
2534
2426
|
continue $sm;
|
|
2535
2427
|
}
|
|
2536
2428
|
|
|
2537
2429
|
case 4:
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2540
|
-
suspendResult = requestNewPool(this.
|
|
2430
|
+
this.s8_1 = 6;
|
|
2431
|
+
this.r8_1 = 5;
|
|
2432
|
+
suspendResult = requestNewPool(this.k5b_1, this.l5b_1, this.m5b_1, this.n5b_1, this.o5b_1, this.p5b_1, this);
|
|
2541
2433
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2542
2434
|
return suspendResult;
|
|
2543
2435
|
}
|
|
@@ -2545,100 +2437,100 @@
|
|
|
2545
2437
|
continue $sm;
|
|
2546
2438
|
case 5:
|
|
2547
2439
|
var randomPoolValue = suspendResult;
|
|
2548
|
-
var tmp0 = this.
|
|
2549
|
-
var key = randomPoolValue.
|
|
2550
|
-
tmp0.
|
|
2551
|
-
this.
|
|
2552
|
-
this.
|
|
2553
|
-
var
|
|
2554
|
-
|
|
2555
|
-
this.
|
|
2440
|
+
var tmp0 = this.k5b_1.s58_1;
|
|
2441
|
+
var key = randomPoolValue.w5b_1.f54_1;
|
|
2442
|
+
tmp0.e2(key, randomPoolValue);
|
|
2443
|
+
this.k5b_1.v58_1 = 0;
|
|
2444
|
+
this.k5b_1.u58_1 = null;
|
|
2445
|
+
var tmp_2 = this;
|
|
2446
|
+
tmp_2.u5b_1 = new Result(_Result___init__impl__xyqfz8(Unit_instance));
|
|
2447
|
+
this.r8_1 = 7;
|
|
2556
2448
|
continue $sm;
|
|
2557
2449
|
case 6:
|
|
2558
|
-
this.
|
|
2559
|
-
var
|
|
2560
|
-
if (
|
|
2561
|
-
var error = this.
|
|
2562
|
-
var
|
|
2563
|
-
var
|
|
2564
|
-
|
|
2565
|
-
this.
|
|
2450
|
+
this.s8_1 = 9;
|
|
2451
|
+
var tmp_3 = this.u8_1;
|
|
2452
|
+
if (tmp_3 instanceof Error) {
|
|
2453
|
+
var error = this.u8_1;
|
|
2454
|
+
var tmp_4 = this;
|
|
2455
|
+
var exception = mapToRandomExceptionIfError(this.k5b_1, error);
|
|
2456
|
+
tmp_4.u5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2457
|
+
this.r8_1 = 7;
|
|
2566
2458
|
continue $sm;
|
|
2567
2459
|
} else {
|
|
2568
|
-
throw this.
|
|
2460
|
+
throw this.u8_1;
|
|
2569
2461
|
}
|
|
2570
2462
|
|
|
2571
2463
|
case 7:
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2464
|
+
this.t5b_1 = this.u5b_1;
|
|
2465
|
+
this.s8_1 = 10;
|
|
2466
|
+
this.r8_1 = 8;
|
|
2575
2467
|
continue $sm;
|
|
2576
2468
|
case 8:
|
|
2577
|
-
var
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
return
|
|
2469
|
+
var tmp_5 = this.t5b_1;
|
|
2470
|
+
this.s8_1 = 10;
|
|
2471
|
+
this.s5b_1.m2l(this.r5b_1);
|
|
2472
|
+
return tmp_5;
|
|
2581
2473
|
case 9:
|
|
2582
|
-
this.
|
|
2583
|
-
var t = this.
|
|
2584
|
-
this.
|
|
2474
|
+
this.s8_1 = 10;
|
|
2475
|
+
var t = this.u8_1;
|
|
2476
|
+
this.s5b_1.m2l(this.r5b_1);
|
|
2585
2477
|
throw t;
|
|
2586
2478
|
case 10:
|
|
2587
|
-
throw this.
|
|
2479
|
+
throw this.u8_1;
|
|
2588
2480
|
}
|
|
2589
2481
|
} catch ($p) {
|
|
2590
2482
|
var e = $p;
|
|
2591
|
-
if (this.
|
|
2483
|
+
if (this.s8_1 === 10) {
|
|
2592
2484
|
throw e;
|
|
2593
2485
|
} else {
|
|
2594
|
-
this.
|
|
2595
|
-
this.
|
|
2486
|
+
this.r8_1 = this.s8_1;
|
|
2487
|
+
this.u8_1 = e;
|
|
2596
2488
|
}
|
|
2597
2489
|
}
|
|
2598
2490
|
while (true);
|
|
2599
2491
|
};
|
|
2600
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2601
|
-
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.
|
|
2602
|
-
i.
|
|
2492
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).a2d = function ($this$withContext, completion) {
|
|
2493
|
+
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.k5b_1, this.l5b_1, this.m5b_1, this.n5b_1, this.o5b_1, this.p5b_1, completion);
|
|
2494
|
+
i.q5b_1 = $this$withContext;
|
|
2603
2495
|
return i;
|
|
2604
2496
|
};
|
|
2605
2497
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2606
2498
|
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2607
2499
|
var l = function ($this$withContext, $completion) {
|
|
2608
|
-
return i.
|
|
2500
|
+
return i.v5b($this$withContext, $completion);
|
|
2609
2501
|
};
|
|
2610
2502
|
l.$arity = 1;
|
|
2611
2503
|
return l;
|
|
2612
2504
|
}
|
|
2613
2505
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2614
|
-
this.
|
|
2615
|
-
this.
|
|
2616
|
-
this.
|
|
2617
|
-
this.
|
|
2618
|
-
this.
|
|
2619
|
-
this.
|
|
2506
|
+
this.i5c_1 = this$0;
|
|
2507
|
+
this.j5c_1 = $min;
|
|
2508
|
+
this.k5c_1 = $max;
|
|
2509
|
+
this.l5c_1 = $cardsCount;
|
|
2510
|
+
this.m5c_1 = $signed;
|
|
2511
|
+
this.n5c_1 = $requestDurationWarnMillis;
|
|
2620
2512
|
CoroutineImpl.call(this, resultContinuation);
|
|
2621
2513
|
}
|
|
2622
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2623
|
-
var tmp = this.
|
|
2624
|
-
tmp.
|
|
2625
|
-
tmp.
|
|
2626
|
-
return tmp.
|
|
2514
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).q5c = function ($this$withContext, $completion) {
|
|
2515
|
+
var tmp = this.a2d($this$withContext, $completion);
|
|
2516
|
+
tmp.t8_1 = Unit_instance;
|
|
2517
|
+
tmp.u8_1 = null;
|
|
2518
|
+
return tmp.z8();
|
|
2627
2519
|
};
|
|
2628
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2629
|
-
return this.
|
|
2520
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).h9 = function (p1, $completion) {
|
|
2521
|
+
return this.q5c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2630
2522
|
};
|
|
2631
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2632
|
-
var suspendResult = this.
|
|
2523
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).z8 = function () {
|
|
2524
|
+
var suspendResult = this.t8_1;
|
|
2633
2525
|
$sm: do
|
|
2634
2526
|
try {
|
|
2635
|
-
var tmp = this.
|
|
2527
|
+
var tmp = this.r8_1;
|
|
2636
2528
|
switch (tmp) {
|
|
2637
2529
|
case 0:
|
|
2638
|
-
this.
|
|
2639
|
-
this.
|
|
2640
|
-
this.
|
|
2641
|
-
suspendResult = this.
|
|
2530
|
+
this.s8_1 = 2;
|
|
2531
|
+
this.p5c_1 = System_instance.ck();
|
|
2532
|
+
this.r8_1 = 1;
|
|
2533
|
+
suspendResult = this.i5c_1.n58_1.y56(this.j5c_1, this.k5c_1, this.i5c_1.m58_1.poolSize, this.l5c_1, new CardDecksRequestUserData(this.i5c_1.q58_1(), this.i5c_1.m58_1.poolSize), this.m5c_1, this);
|
|
2642
2534
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2643
2535
|
return suspendResult;
|
|
2644
2536
|
}
|
|
@@ -2646,67 +2538,67 @@
|
|
|
2646
2538
|
continue $sm;
|
|
2647
2539
|
case 1:
|
|
2648
2540
|
var result = suspendResult;
|
|
2649
|
-
var requestEndTime = System_instance.
|
|
2650
|
-
var requestDuration = requestEndTime.
|
|
2541
|
+
var requestEndTime = System_instance.ck();
|
|
2542
|
+
var requestDuration = requestEndTime.tk(this.p5c_1);
|
|
2651
2543
|
Companion_getInstance_0();
|
|
2652
|
-
var this_0 = this.
|
|
2544
|
+
var this_0 = this.n5c_1;
|
|
2653
2545
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2654
2546
|
var tmp_0 = 'actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ';
|
|
2655
2547
|
Companion_getInstance_0();
|
|
2656
|
-
var this_1 = this.
|
|
2657
|
-
this.
|
|
2548
|
+
var this_1 = this.n5c_1;
|
|
2549
|
+
this.i5c_1.o58_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2658
2550
|
}
|
|
2659
2551
|
|
|
2660
2552
|
return new RandomPoolValue(result);
|
|
2661
2553
|
case 2:
|
|
2662
|
-
throw this.
|
|
2554
|
+
throw this.u8_1;
|
|
2663
2555
|
}
|
|
2664
2556
|
} catch ($p) {
|
|
2665
2557
|
var e = $p;
|
|
2666
|
-
if (this.
|
|
2558
|
+
if (this.s8_1 === 2) {
|
|
2667
2559
|
throw e;
|
|
2668
2560
|
} else {
|
|
2669
|
-
this.
|
|
2670
|
-
this.
|
|
2561
|
+
this.r8_1 = this.s8_1;
|
|
2562
|
+
this.u8_1 = e;
|
|
2671
2563
|
}
|
|
2672
2564
|
}
|
|
2673
2565
|
while (true);
|
|
2674
2566
|
};
|
|
2675
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2676
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2677
|
-
i.
|
|
2567
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).a2d = function ($this$withContext, completion) {
|
|
2568
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.i5c_1, this.j5c_1, this.k5c_1, this.l5c_1, this.m5c_1, this.n5c_1, completion);
|
|
2569
|
+
i.o5c_1 = $this$withContext;
|
|
2678
2570
|
return i;
|
|
2679
2571
|
};
|
|
2680
2572
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2681
2573
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2682
2574
|
var l = function ($this$withContext, $completion) {
|
|
2683
|
-
return i.
|
|
2575
|
+
return i.q5c($this$withContext, $completion);
|
|
2684
2576
|
};
|
|
2685
2577
|
l.$arity = 1;
|
|
2686
2578
|
return l;
|
|
2687
2579
|
}
|
|
2688
2580
|
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2689
2581
|
CoroutineImpl.call(this, resultContinuation);
|
|
2690
|
-
this.
|
|
2691
|
-
this.
|
|
2692
|
-
this.
|
|
2693
|
-
this.
|
|
2694
|
-
this.
|
|
2695
|
-
this.
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2698
|
-
}
|
|
2699
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).
|
|
2700
|
-
var suspendResult = this.
|
|
2582
|
+
this.e59_1 = _this__u8e3s4;
|
|
2583
|
+
this.f59_1 = minRoundsCountInPool;
|
|
2584
|
+
this.g59_1 = userData;
|
|
2585
|
+
this.h59_1 = min;
|
|
2586
|
+
this.i59_1 = max;
|
|
2587
|
+
this.j59_1 = cardsCount;
|
|
2588
|
+
this.k59_1 = signed;
|
|
2589
|
+
this.l59_1 = requestDurationWarnMillis;
|
|
2590
|
+
}
|
|
2591
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).z8 = function () {
|
|
2592
|
+
var suspendResult = this.t8_1;
|
|
2701
2593
|
$sm: do
|
|
2702
2594
|
try {
|
|
2703
|
-
var tmp = this.
|
|
2595
|
+
var tmp = this.r8_1;
|
|
2704
2596
|
switch (tmp) {
|
|
2705
2597
|
case 0:
|
|
2706
|
-
this.
|
|
2707
|
-
|
|
2708
|
-
this.
|
|
2709
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2598
|
+
this.s8_1 = 2;
|
|
2599
|
+
var tmp0_gameId = this.g59_1.gameId;
|
|
2600
|
+
this.r8_1 = 1;
|
|
2601
|
+
suspendResult = getPreparedOrRequestPool(this.e59_1, tmp0_gameId, this.h59_1, this.i59_1, this.f59_1, this.j59_1, this.k59_1, this.l59_1, this);
|
|
2710
2602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2711
2603
|
return suspendResult;
|
|
2712
2604
|
}
|
|
@@ -2714,86 +2606,84 @@
|
|
|
2714
2606
|
continue $sm;
|
|
2715
2607
|
case 1:
|
|
2716
2608
|
var randomPoolValue = suspendResult;
|
|
2717
|
-
var tmp0 = this.
|
|
2718
|
-
var key = randomPoolValue.
|
|
2719
|
-
tmp0.
|
|
2720
|
-
var cardDeckData = randomPoolValue.
|
|
2721
|
-
var tmp1_poolId = randomPoolValue.
|
|
2722
|
-
var tmp2_signature = randomPoolValue.
|
|
2723
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2724
|
-
var tmp0_0 = this.
|
|
2725
|
-
var key_0 = this.
|
|
2726
|
-
tmp0_0.
|
|
2609
|
+
var tmp0 = this.e59_1.s58_1;
|
|
2610
|
+
var key = randomPoolValue.w5b_1.f54_1;
|
|
2611
|
+
tmp0.e2(key, randomPoolValue);
|
|
2612
|
+
var cardDeckData = randomPoolValue.r5c(this.g59_1.gameId);
|
|
2613
|
+
var tmp1_poolId = randomPoolValue.w5b_1.f54_1;
|
|
2614
|
+
var tmp2_signature = randomPoolValue.w5b_1.g54_1;
|
|
2615
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.e59_1, tmp1_poolId, tmp2_signature, cardDeckData, this.g59_1);
|
|
2616
|
+
var tmp0_0 = this.e59_1.t58_1;
|
|
2617
|
+
var key_0 = this.g59_1.gameId;
|
|
2618
|
+
tmp0_0.e2(key_0, cardDecksRecord);
|
|
2727
2619
|
return cardDeckData;
|
|
2728
2620
|
case 2:
|
|
2729
|
-
throw this.
|
|
2621
|
+
throw this.u8_1;
|
|
2730
2622
|
}
|
|
2731
2623
|
} catch ($p) {
|
|
2732
2624
|
var e = $p;
|
|
2733
|
-
if (this.
|
|
2625
|
+
if (this.s8_1 === 2) {
|
|
2734
2626
|
throw e;
|
|
2735
2627
|
} else {
|
|
2736
|
-
this.
|
|
2737
|
-
this.
|
|
2628
|
+
this.r8_1 = this.s8_1;
|
|
2629
|
+
this.u8_1 = e;
|
|
2738
2630
|
}
|
|
2739
2631
|
}
|
|
2740
2632
|
while (true);
|
|
2741
2633
|
};
|
|
2742
2634
|
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2743
2635
|
CoroutineImpl.call(this, resultContinuation);
|
|
2744
|
-
this.
|
|
2745
|
-
this.
|
|
2746
|
-
this.
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2749
|
-
this.
|
|
2750
|
-
this.
|
|
2751
|
-
this.
|
|
2752
|
-
}
|
|
2753
|
-
protoOf($getPreparedOrRequestPoolCOROUTINE$).
|
|
2754
|
-
var suspendResult = this.
|
|
2636
|
+
this.u59_1 = _this__u8e3s4;
|
|
2637
|
+
this.v59_1 = gameId;
|
|
2638
|
+
this.w59_1 = min;
|
|
2639
|
+
this.x59_1 = max;
|
|
2640
|
+
this.y59_1 = minRoundsCount;
|
|
2641
|
+
this.z59_1 = cardsCount;
|
|
2642
|
+
this.a5a_1 = signed;
|
|
2643
|
+
this.b5a_1 = requestDurationWarnMillis;
|
|
2644
|
+
}
|
|
2645
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$).z8 = function () {
|
|
2646
|
+
var suspendResult = this.t8_1;
|
|
2755
2647
|
$sm: do
|
|
2756
2648
|
try {
|
|
2757
|
-
var tmp = this.
|
|
2649
|
+
var tmp = this.r8_1;
|
|
2758
2650
|
switch (tmp) {
|
|
2759
2651
|
case 0:
|
|
2760
|
-
this.
|
|
2761
|
-
var
|
|
2762
|
-
var tmp0 = this.m5y_1.j5x_1;
|
|
2652
|
+
this.s8_1 = 2;
|
|
2653
|
+
var tmp0 = this.u59_1.s58_1;
|
|
2763
2654
|
var destination = LinkedHashMap_init_$Create$();
|
|
2764
|
-
var _iterator__ex2g4s = tmp0.
|
|
2765
|
-
while (_iterator__ex2g4s.
|
|
2766
|
-
var element = _iterator__ex2g4s.
|
|
2767
|
-
var tmp0_0 = element.
|
|
2768
|
-
var key = this.
|
|
2769
|
-
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).
|
|
2770
|
-
destination.
|
|
2655
|
+
var _iterator__ex2g4s = tmp0.u().l();
|
|
2656
|
+
while (_iterator__ex2g4s.m()) {
|
|
2657
|
+
var element = _iterator__ex2g4s.n();
|
|
2658
|
+
var tmp0_0 = element.w().x5b_1;
|
|
2659
|
+
var key = this.v59_1;
|
|
2660
|
+
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).z1(key)) {
|
|
2661
|
+
destination.e2(element.v(), element.w());
|
|
2771
2662
|
}
|
|
2772
2663
|
}
|
|
2773
2664
|
|
|
2774
|
-
|
|
2775
|
-
if (!(
|
|
2776
|
-
return
|
|
2665
|
+
var usedResultEntry = firstOrNull(destination.u());
|
|
2666
|
+
if (!(usedResultEntry == null)) {
|
|
2667
|
+
return usedResultEntry.w().s5c(this.v59_1);
|
|
2777
2668
|
}
|
|
2778
2669
|
|
|
2779
|
-
var
|
|
2780
|
-
var tmp0_1 = this.m5y_1.j5x_1;
|
|
2670
|
+
var tmp0_1 = this.u59_1.s58_1;
|
|
2781
2671
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2782
|
-
var _iterator__ex2g4s_0 = tmp0_1.
|
|
2783
|
-
while (_iterator__ex2g4s_0.
|
|
2784
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
2785
|
-
if (element_0.
|
|
2786
|
-
destination_0.
|
|
2672
|
+
var _iterator__ex2g4s_0 = tmp0_1.u().l();
|
|
2673
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
2674
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
2675
|
+
if (element_0.w().t5c(this.y59_1)) {
|
|
2676
|
+
destination_0.e2(element_0.v(), element_0.w());
|
|
2787
2677
|
}
|
|
2788
2678
|
}
|
|
2789
2679
|
|
|
2790
|
-
|
|
2791
|
-
if (!(
|
|
2792
|
-
return
|
|
2680
|
+
var availableResultEntry = firstOrNull(destination_0.u());
|
|
2681
|
+
if (!(availableResultEntry == null)) {
|
|
2682
|
+
return availableResultEntry.w().u5c(this.v59_1, this.y59_1, this.u59_1.m58_1.thresholdForUsedPool);
|
|
2793
2683
|
}
|
|
2794
2684
|
|
|
2795
|
-
this.
|
|
2796
|
-
suspendResult = requestNewPool(this.
|
|
2685
|
+
this.r8_1 = 1;
|
|
2686
|
+
suspendResult = requestNewPool(this.u59_1, this.w59_1, this.x59_1, this.z59_1, this.a5a_1, this.b5a_1, this);
|
|
2797
2687
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2798
2688
|
return suspendResult;
|
|
2799
2689
|
}
|
|
@@ -2801,23 +2691,23 @@
|
|
|
2801
2691
|
continue $sm;
|
|
2802
2692
|
case 1:
|
|
2803
2693
|
var cardDecks = suspendResult;
|
|
2804
|
-
return cardDecks.
|
|
2694
|
+
return cardDecks.u5c(this.v59_1, this.y59_1, this.u59_1.m58_1.thresholdForUsedPool);
|
|
2805
2695
|
case 2:
|
|
2806
|
-
throw this.
|
|
2696
|
+
throw this.u8_1;
|
|
2807
2697
|
}
|
|
2808
2698
|
} catch ($p) {
|
|
2809
2699
|
var e = $p;
|
|
2810
|
-
if (this.
|
|
2700
|
+
if (this.s8_1 === 2) {
|
|
2811
2701
|
throw e;
|
|
2812
2702
|
} else {
|
|
2813
|
-
this.
|
|
2814
|
-
this.
|
|
2703
|
+
this.r8_1 = this.s8_1;
|
|
2704
|
+
this.u8_1 = e;
|
|
2815
2705
|
}
|
|
2816
2706
|
}
|
|
2817
2707
|
while (true);
|
|
2818
2708
|
};
|
|
2819
2709
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2820
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2710
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().a21_1 : dispatcher;
|
|
2821
2711
|
var tmp;
|
|
2822
2712
|
if (idsProvider === VOID) {
|
|
2823
2713
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2825,90 +2715,173 @@
|
|
|
2825
2715
|
tmp = idsProvider;
|
|
2826
2716
|
}
|
|
2827
2717
|
idsProvider = tmp;
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2830
|
-
this.
|
|
2831
|
-
this.
|
|
2832
|
-
this.
|
|
2833
|
-
this.
|
|
2718
|
+
this.m58_1 = params;
|
|
2719
|
+
this.n58_1 = randomOrgApiService;
|
|
2720
|
+
this.o58_1 = logger;
|
|
2721
|
+
this.p58_1 = dispatcher;
|
|
2722
|
+
this.q58_1 = idsProvider;
|
|
2723
|
+
this.r58_1 = Mutex();
|
|
2834
2724
|
var tmp_0 = this;
|
|
2835
2725
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2836
|
-
tmp_0.
|
|
2726
|
+
tmp_0.s58_1 = LinkedHashMap_init_$Create$();
|
|
2837
2727
|
var tmp_1 = this;
|
|
2838
2728
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2839
|
-
tmp_1.
|
|
2840
|
-
this.
|
|
2841
|
-
this.
|
|
2729
|
+
tmp_1.t58_1 = LinkedHashMap_init_$Create$();
|
|
2730
|
+
this.u58_1 = null;
|
|
2731
|
+
this.v58_1 = 0;
|
|
2842
2732
|
}
|
|
2843
|
-
protoOf(RandomPoolProviderImpl).
|
|
2844
|
-
var tmp = withContext(this.
|
|
2733
|
+
protoOf(RandomPoolProviderImpl).i58 = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2734
|
+
var tmp = withContext(this.p58_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2845
2735
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2846
2736
|
return tmp;
|
|
2847
2737
|
return tmp;
|
|
2848
2738
|
};
|
|
2849
|
-
protoOf(RandomPoolProviderImpl).
|
|
2850
|
-
var tmp = withContext(this.
|
|
2739
|
+
protoOf(RandomPoolProviderImpl).k58 = function (min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2740
|
+
var tmp = withContext(this.p58_1, RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2851
2741
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2852
2742
|
return tmp;
|
|
2853
2743
|
return tmp;
|
|
2854
2744
|
};
|
|
2855
|
-
protoOf(RandomPoolProviderImpl).
|
|
2856
|
-
return this.
|
|
2745
|
+
protoOf(RandomPoolProviderImpl).v5c = function (gameId) {
|
|
2746
|
+
return this.t58_1.b2(gameId);
|
|
2857
2747
|
};
|
|
2858
2748
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2859
|
-
return this.
|
|
2749
|
+
return this.v5c(gameId);
|
|
2860
2750
|
};
|
|
2861
|
-
protoOf(RandomPoolProviderImpl).
|
|
2862
|
-
return this.
|
|
2751
|
+
protoOf(RandomPoolProviderImpl).w5c = function (id) {
|
|
2752
|
+
return this.s58_1.b2(id);
|
|
2863
2753
|
};
|
|
2864
2754
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2865
|
-
return this.
|
|
2755
|
+
return this.w5c(id);
|
|
2866
2756
|
};
|
|
2867
|
-
protoOf(RandomPoolProviderImpl).
|
|
2868
|
-
return this.
|
|
2757
|
+
protoOf(RandomPoolProviderImpl).x5c = function () {
|
|
2758
|
+
return this.s58_1.o();
|
|
2869
2759
|
};
|
|
2870
2760
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2871
|
-
return this.
|
|
2761
|
+
return this.x5c();
|
|
2872
2762
|
};
|
|
2873
|
-
protoOf(RandomPoolProviderImpl).
|
|
2874
|
-
var gameCardDecksRecord = this.
|
|
2763
|
+
protoOf(RandomPoolProviderImpl).l58 = function (gameId) {
|
|
2764
|
+
var gameCardDecksRecord = this.t58_1.b2(gameId);
|
|
2875
2765
|
if (!(gameCardDecksRecord == null)) {
|
|
2876
|
-
var randomPoolValue = this.
|
|
2766
|
+
var randomPoolValue = this.s58_1.b2(gameCardDecksRecord.poolId);
|
|
2877
2767
|
if (!(randomPoolValue == null)) {
|
|
2878
2768
|
// Inline function 'kotlin.apply' call
|
|
2879
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2880
|
-
this_0.
|
|
2881
|
-
var newPoolValue = randomPoolValue.
|
|
2882
|
-
if (newPoolValue.
|
|
2883
|
-
this.
|
|
2769
|
+
var this_0 = toMutableMap(randomPoolValue.x5b_1);
|
|
2770
|
+
this_0.f2(gameId);
|
|
2771
|
+
var newPoolValue = randomPoolValue.y5c(VOID, toMap(this_0));
|
|
2772
|
+
if (newPoolValue.x5b_1.r()) {
|
|
2773
|
+
this.s58_1.f2(gameCardDecksRecord.poolId);
|
|
2884
2774
|
} else {
|
|
2885
|
-
var tmp0 = this.
|
|
2775
|
+
var tmp0 = this.s58_1;
|
|
2886
2776
|
// Inline function 'kotlin.collections.set' call
|
|
2887
2777
|
var key = gameCardDecksRecord.poolId;
|
|
2888
|
-
tmp0.
|
|
2778
|
+
tmp0.e2(key, newPoolValue);
|
|
2889
2779
|
}
|
|
2890
2780
|
}
|
|
2891
2781
|
}
|
|
2892
|
-
this.
|
|
2782
|
+
this.t58_1.f2(gameId);
|
|
2783
|
+
};
|
|
2784
|
+
function _get_cardDecksCount__ihvb5i($this) {
|
|
2785
|
+
return $this.w5b_1.d54_1.o();
|
|
2786
|
+
}
|
|
2787
|
+
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2788
|
+
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2789
|
+
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2790
|
+
isUsed = isUsed === VOID ? false : isUsed;
|
|
2791
|
+
this.w5b_1 = randomResult;
|
|
2792
|
+
this.x5b_1 = usedByGames;
|
|
2793
|
+
this.y5b_1 = reservedCardDecks;
|
|
2794
|
+
this.z5b_1 = isUsed;
|
|
2795
|
+
}
|
|
2796
|
+
protoOf(RandomPoolValue).t5c = function (minRoundsCount) {
|
|
2797
|
+
if (this.z5b_1) {
|
|
2798
|
+
return false;
|
|
2799
|
+
}
|
|
2800
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.y5b_1 | 0;
|
|
2801
|
+
return availableCount >= minRoundsCount;
|
|
2802
|
+
};
|
|
2803
|
+
protoOf(RandomPoolValue).u5c = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2804
|
+
var previousReservedCardDeckIndex = this.y5b_1;
|
|
2805
|
+
// Inline function 'kotlin.apply' call
|
|
2806
|
+
var this_0 = toMutableMap(this.x5b_1);
|
|
2807
|
+
this_0.e2(gameId, previousReservedCardDeckIndex);
|
|
2808
|
+
var newNewUsedBy = toMap(this_0);
|
|
2809
|
+
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2810
|
+
return this.y5c(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2811
|
+
};
|
|
2812
|
+
protoOf(RandomPoolValue).s5c = function (gameId) {
|
|
2813
|
+
var currentCardDeckIndex = getValue(this.x5b_1, gameId);
|
|
2814
|
+
var tmp;
|
|
2815
|
+
if (currentCardDeckIndex === get_lastIndex(this.w5b_1.d54_1)) {
|
|
2816
|
+
tmp = 0;
|
|
2817
|
+
} else {
|
|
2818
|
+
tmp = currentCardDeckIndex + 1 | 0;
|
|
2819
|
+
}
|
|
2820
|
+
var newCardDeckIndex = tmp;
|
|
2821
|
+
// Inline function 'kotlin.apply' call
|
|
2822
|
+
var this_0 = toMutableMap(this.x5b_1);
|
|
2823
|
+
this_0.e2(gameId, newCardDeckIndex);
|
|
2824
|
+
var newNewUsedBy = toMap(this_0);
|
|
2825
|
+
return this.y5c(VOID, newNewUsedBy);
|
|
2826
|
+
};
|
|
2827
|
+
protoOf(RandomPoolValue).r5c = function (gameId) {
|
|
2828
|
+
var index = getValue(this.x5b_1, gameId);
|
|
2829
|
+
return new GameCardDeckData(index, this.w5b_1.d54_1.p(index));
|
|
2830
|
+
};
|
|
2831
|
+
protoOf(RandomPoolValue).z5c = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2832
|
+
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2833
|
+
};
|
|
2834
|
+
protoOf(RandomPoolValue).y5c = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2835
|
+
randomResult = randomResult === VOID ? this.w5b_1 : randomResult;
|
|
2836
|
+
usedByGames = usedByGames === VOID ? this.x5b_1 : usedByGames;
|
|
2837
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.y5b_1 : reservedCardDecks;
|
|
2838
|
+
isUsed = isUsed === VOID ? this.z5b_1 : isUsed;
|
|
2839
|
+
return $super === VOID ? this.z5c(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.z5c.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2840
|
+
};
|
|
2841
|
+
protoOf(RandomPoolValue).toString = function () {
|
|
2842
|
+
return 'RandomPoolValue(randomResult=' + this.w5b_1.toString() + ', usedByGames=' + toString(this.x5b_1) + ', reservedCardDecks=' + this.y5b_1 + ', isUsed=' + this.z5b_1 + ')';
|
|
2843
|
+
};
|
|
2844
|
+
protoOf(RandomPoolValue).hashCode = function () {
|
|
2845
|
+
var result = this.w5b_1.hashCode();
|
|
2846
|
+
result = imul(result, 31) + hashCode(this.x5b_1) | 0;
|
|
2847
|
+
result = imul(result, 31) + this.y5b_1 | 0;
|
|
2848
|
+
result = imul(result, 31) + getBooleanHashCode(this.z5b_1) | 0;
|
|
2849
|
+
return result;
|
|
2850
|
+
};
|
|
2851
|
+
protoOf(RandomPoolValue).equals = function (other) {
|
|
2852
|
+
if (this === other)
|
|
2853
|
+
return true;
|
|
2854
|
+
if (!(other instanceof RandomPoolValue))
|
|
2855
|
+
return false;
|
|
2856
|
+
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2857
|
+
if (!this.w5b_1.equals(tmp0_other_with_cast.w5b_1))
|
|
2858
|
+
return false;
|
|
2859
|
+
if (!equals(this.x5b_1, tmp0_other_with_cast.x5b_1))
|
|
2860
|
+
return false;
|
|
2861
|
+
if (!(this.y5b_1 === tmp0_other_with_cast.y5b_1))
|
|
2862
|
+
return false;
|
|
2863
|
+
if (!(this.z5b_1 === tmp0_other_with_cast.z5b_1))
|
|
2864
|
+
return false;
|
|
2865
|
+
return true;
|
|
2893
2866
|
};
|
|
2894
2867
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2895
2868
|
return function ($this$defaultRequest) {
|
|
2896
2869
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2897
|
-
$this$defaultRequest.
|
|
2870
|
+
$this$defaultRequest.v40($url);
|
|
2898
2871
|
return Unit_instance;
|
|
2899
2872
|
};
|
|
2900
2873
|
}
|
|
2901
2874
|
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2902
|
-
this.
|
|
2875
|
+
this.a5d_1 = $externalLogger;
|
|
2903
2876
|
}
|
|
2904
|
-
protoOf(ApiCommonConfigs$setupLogging$2$1).
|
|
2905
|
-
this.
|
|
2877
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).o4o = function (message) {
|
|
2878
|
+
this.a5d_1(message);
|
|
2906
2879
|
};
|
|
2907
2880
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2908
2881
|
return function ($this$install) {
|
|
2909
|
-
$this$install.
|
|
2910
|
-
$this$install.
|
|
2911
|
-
$this$install.
|
|
2882
|
+
$this$install.e4q(get_DEFAULT(Companion_instance_0));
|
|
2883
|
+
$this$install.d4q_1 = $config.d5d_1;
|
|
2884
|
+
$this$install.e4q(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2912
2885
|
return Unit_instance;
|
|
2913
2886
|
};
|
|
2914
2887
|
}
|
|
@@ -2920,32 +2893,32 @@
|
|
|
2920
2893
|
}
|
|
2921
2894
|
function ApiCommonConfigs() {
|
|
2922
2895
|
}
|
|
2923
|
-
protoOf(ApiCommonConfigs).
|
|
2924
|
-
_this__u8e3s4.
|
|
2925
|
-
this.
|
|
2926
|
-
this.
|
|
2927
|
-
this.
|
|
2896
|
+
protoOf(ApiCommonConfigs).f5d = function (_this__u8e3s4, config, externalLogger) {
|
|
2897
|
+
_this__u8e3s4.v3s_1 = true;
|
|
2898
|
+
this.g5d(_this__u8e3s4, config.b5d_1);
|
|
2899
|
+
this.h5d(_this__u8e3s4, config.e5d_1);
|
|
2900
|
+
this.i5d(_this__u8e3s4, config, externalLogger);
|
|
2928
2901
|
};
|
|
2929
|
-
protoOf(ApiCommonConfigs).
|
|
2902
|
+
protoOf(ApiCommonConfigs).g5d = function (_this__u8e3s4, url) {
|
|
2930
2903
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2931
2904
|
};
|
|
2932
|
-
protoOf(ApiCommonConfigs).
|
|
2905
|
+
protoOf(ApiCommonConfigs).i5d = function (_this__u8e3s4, config, externalLogger) {
|
|
2933
2906
|
var tmp = Companion_getInstance_1();
|
|
2934
|
-
_this__u8e3s4.
|
|
2907
|
+
_this__u8e3s4.q3t(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2935
2908
|
};
|
|
2936
|
-
protoOf(ApiCommonConfigs).
|
|
2909
|
+
protoOf(ApiCommonConfigs).h5d = function (_this__u8e3s4, json) {
|
|
2937
2910
|
var tmp = Plugin_getInstance();
|
|
2938
|
-
_this__u8e3s4.
|
|
2911
|
+
_this__u8e3s4.q3t(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2939
2912
|
};
|
|
2940
2913
|
var ApiCommonConfigs_instance;
|
|
2941
2914
|
function ApiCommonConfigs_getInstance() {
|
|
2942
2915
|
return ApiCommonConfigs_instance;
|
|
2943
2916
|
}
|
|
2944
2917
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2945
|
-
$this$Json.
|
|
2946
|
-
$this$Json.
|
|
2947
|
-
$this$Json.
|
|
2948
|
-
$this$Json.
|
|
2918
|
+
$this$Json.h1a_1 = true;
|
|
2919
|
+
$this$Json.g1a_1 = true;
|
|
2920
|
+
$this$Json.f1a_1 = true;
|
|
2921
|
+
$this$Json.e1a_1 = false;
|
|
2949
2922
|
return Unit_instance;
|
|
2950
2923
|
}
|
|
2951
2924
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2958,19 +2931,19 @@
|
|
|
2958
2931
|
tmp = json;
|
|
2959
2932
|
}
|
|
2960
2933
|
json = tmp;
|
|
2961
|
-
this.
|
|
2962
|
-
this.
|
|
2963
|
-
this.
|
|
2964
|
-
this.
|
|
2934
|
+
this.b5d_1 = baseUrl;
|
|
2935
|
+
this.c5d_1 = timeoutMillis;
|
|
2936
|
+
this.d5d_1 = loggingLevel;
|
|
2937
|
+
this.e5d_1 = json;
|
|
2965
2938
|
}
|
|
2966
2939
|
protoOf(HttpParams).toString = function () {
|
|
2967
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2940
|
+
return 'HttpParams(baseUrl=' + this.b5d_1 + ', timeoutMillis=' + this.c5d_1.toString() + ', loggingLevel=' + this.d5d_1.toString() + ', json=' + toString(this.e5d_1) + ')';
|
|
2968
2941
|
};
|
|
2969
2942
|
protoOf(HttpParams).hashCode = function () {
|
|
2970
|
-
var result = getStringHashCode(this.
|
|
2971
|
-
result = imul(result, 31) + this.
|
|
2972
|
-
result = imul(result, 31) + this.
|
|
2973
|
-
result = imul(result, 31) + hashCode(this.
|
|
2943
|
+
var result = getStringHashCode(this.b5d_1);
|
|
2944
|
+
result = imul(result, 31) + this.c5d_1.hashCode() | 0;
|
|
2945
|
+
result = imul(result, 31) + this.d5d_1.hashCode() | 0;
|
|
2946
|
+
result = imul(result, 31) + hashCode(this.e5d_1) | 0;
|
|
2974
2947
|
return result;
|
|
2975
2948
|
};
|
|
2976
2949
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2979,13 +2952,13 @@
|
|
|
2979
2952
|
if (!(other instanceof HttpParams))
|
|
2980
2953
|
return false;
|
|
2981
2954
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2982
|
-
if (!(this.
|
|
2955
|
+
if (!(this.b5d_1 === tmp0_other_with_cast.b5d_1))
|
|
2983
2956
|
return false;
|
|
2984
|
-
if (!this.
|
|
2957
|
+
if (!equalsLong(this.c5d_1, tmp0_other_with_cast.c5d_1))
|
|
2985
2958
|
return false;
|
|
2986
|
-
if (!this.
|
|
2959
|
+
if (!this.d5d_1.equals(tmp0_other_with_cast.d5d_1))
|
|
2987
2960
|
return false;
|
|
2988
|
-
if (!equals(this.
|
|
2961
|
+
if (!equals(this.e5d_1, tmp0_other_with_cast.e5d_1))
|
|
2989
2962
|
return false;
|
|
2990
2963
|
return true;
|
|
2991
2964
|
};
|
|
@@ -3009,12 +2982,12 @@
|
|
|
3009
2982
|
}
|
|
3010
2983
|
function nextBytesCopyTo($this, bytes) {
|
|
3011
2984
|
try {
|
|
3012
|
-
$this.
|
|
2985
|
+
$this.k5d_1.q1o(bytes);
|
|
3013
2986
|
} catch ($p) {
|
|
3014
2987
|
if ($p instanceof SecRandomCopyException) {
|
|
3015
2988
|
var error = $p;
|
|
3016
|
-
$this.
|
|
3017
|
-
$this.
|
|
2989
|
+
$this.j5d_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2990
|
+
$this.l5d_1.qg(bytes);
|
|
3018
2991
|
return Unit_instance;
|
|
3019
2992
|
} else {
|
|
3020
2993
|
throw $p;
|
|
@@ -3038,11 +3011,11 @@
|
|
|
3038
3011
|
}
|
|
3039
3012
|
function SecureRandom_0(logger) {
|
|
3040
3013
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
3041
|
-
this.
|
|
3042
|
-
this.
|
|
3043
|
-
this.
|
|
3014
|
+
this.j5d_1 = logger;
|
|
3015
|
+
this.k5d_1 = new SecureRandom();
|
|
3016
|
+
this.l5d_1 = Default_getInstance();
|
|
3044
3017
|
}
|
|
3045
|
-
protoOf(SecureRandom_0).
|
|
3018
|
+
protoOf(SecureRandom_0).og = function (from, until) {
|
|
3046
3019
|
checkRangeBounds(this, from, until);
|
|
3047
3020
|
var n = until - from | 0;
|
|
3048
3021
|
if (n > 0 || n === -2147483648) {
|
|
@@ -3069,7 +3042,7 @@
|
|
|
3069
3042
|
}
|
|
3070
3043
|
}
|
|
3071
3044
|
};
|
|
3072
|
-
protoOf(SecureRandom_0).
|
|
3045
|
+
protoOf(SecureRandom_0).n5d = function () {
|
|
3073
3046
|
return !(nextBits(this, 1) === 0);
|
|
3074
3047
|
};
|
|
3075
3048
|
function CustomRandom() {
|
|
@@ -3080,31 +3053,31 @@
|
|
|
3080
3053
|
var pile = toMutableList(deck);
|
|
3081
3054
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
3082
3055
|
var pile2 = ArrayList_init_$Create$_0();
|
|
3083
|
-
var twentypc = deck.
|
|
3056
|
+
var twentypc = deck.o() / 5 | 0;
|
|
3084
3057
|
// Inline function 'kotlin.repeat' call
|
|
3085
3058
|
var inductionVariable = 0;
|
|
3086
3059
|
if (inductionVariable < iterations)
|
|
3087
3060
|
do {
|
|
3088
3061
|
var index = inductionVariable;
|
|
3089
3062
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3090
|
-
while (pile.
|
|
3091
|
-
var tmp0 = pile.
|
|
3063
|
+
while (pile.o() > 0) {
|
|
3064
|
+
var tmp0 = pile.o();
|
|
3092
3065
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3093
|
-
var b = 1 + random.
|
|
3066
|
+
var b = 1 + random.m5d(VOID, twentypc) | 0;
|
|
3094
3067
|
var cards = Math.min(tmp0, b);
|
|
3095
|
-
pile2.
|
|
3068
|
+
pile2.j2(0, take(pile, cards));
|
|
3096
3069
|
// Inline function 'kotlin.repeat' call
|
|
3097
3070
|
var inductionVariable_0 = 0;
|
|
3098
3071
|
if (inductionVariable_0 < cards)
|
|
3099
3072
|
do {
|
|
3100
3073
|
var index_0 = inductionVariable_0;
|
|
3101
3074
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3102
|
-
pile.
|
|
3075
|
+
pile.n2(0);
|
|
3103
3076
|
}
|
|
3104
3077
|
while (inductionVariable_0 < cards);
|
|
3105
3078
|
}
|
|
3106
|
-
pile.
|
|
3107
|
-
pile2.
|
|
3079
|
+
pile.q(pile2);
|
|
3080
|
+
pile2.h2();
|
|
3108
3081
|
}
|
|
3109
3082
|
while (inductionVariable < iterations);
|
|
3110
3083
|
return pile;
|
|
@@ -3119,26 +3092,26 @@
|
|
|
3119
3092
|
do {
|
|
3120
3093
|
var index = inductionVariable;
|
|
3121
3094
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3122
|
-
var mid = deck.
|
|
3095
|
+
var mid = deck.o() / 2 | 0;
|
|
3123
3096
|
var tenpc = mid / 10 | 0;
|
|
3124
|
-
var cut = (mid - tenpc | 0) + random.
|
|
3097
|
+
var cut = (mid - tenpc | 0) + random.m5d(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3125
3098
|
var deck1 = toMutableList(take(pile, cut));
|
|
3126
3099
|
var deck2 = toMutableList(drop(pile, cut));
|
|
3127
|
-
pile.
|
|
3128
|
-
var fromTop = random.
|
|
3129
|
-
while (deck1.
|
|
3100
|
+
pile.h2();
|
|
3101
|
+
var fromTop = random.n5d();
|
|
3102
|
+
while (deck1.o() > 0 && deck2.o() > 0) {
|
|
3130
3103
|
if (fromTop) {
|
|
3131
|
-
pile.
|
|
3132
|
-
pile.
|
|
3104
|
+
pile.j(deck1.n2(0));
|
|
3105
|
+
pile.j(deck2.n2(0));
|
|
3133
3106
|
} else {
|
|
3134
|
-
pile.
|
|
3135
|
-
pile.
|
|
3107
|
+
pile.j(deck1.n2(get_lastIndex(deck1)));
|
|
3108
|
+
pile.j(deck2.n2(get_lastIndex(deck2)));
|
|
3136
3109
|
}
|
|
3137
3110
|
}
|
|
3138
|
-
if (deck1.
|
|
3139
|
-
pile.
|
|
3140
|
-
} else if (deck2.
|
|
3141
|
-
pile.
|
|
3111
|
+
if (deck1.o() > 0) {
|
|
3112
|
+
pile.q(deck1);
|
|
3113
|
+
} else if (deck2.o() > 0) {
|
|
3114
|
+
pile.q(deck2);
|
|
3142
3115
|
}
|
|
3143
3116
|
reverse(pile);
|
|
3144
3117
|
}
|
|
@@ -3147,22 +3120,22 @@
|
|
|
3147
3120
|
}
|
|
3148
3121
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3149
3122
|
return function ($this$install) {
|
|
3150
|
-
$this$install.
|
|
3151
|
-
$this$install.
|
|
3123
|
+
$this$install.g4b($config.c5d_1);
|
|
3124
|
+
$this$install.e4b($config.c5d_1);
|
|
3152
3125
|
return Unit_instance;
|
|
3153
3126
|
};
|
|
3154
3127
|
}
|
|
3155
3128
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3156
3129
|
return function ($this$HttpClient) {
|
|
3157
3130
|
var tmp = Plugin_getInstance_0();
|
|
3158
|
-
$this$HttpClient.
|
|
3159
|
-
ApiCommonConfigs_instance.
|
|
3131
|
+
$this$HttpClient.q3t(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3132
|
+
ApiCommonConfigs_instance.f5d($this$HttpClient, $config, $externalLogger);
|
|
3160
3133
|
return Unit_instance;
|
|
3161
3134
|
};
|
|
3162
3135
|
}
|
|
3163
3136
|
function HttpFactory() {
|
|
3164
3137
|
}
|
|
3165
|
-
protoOf(HttpFactory).
|
|
3138
|
+
protoOf(HttpFactory).p5d = function (config, externalLogger) {
|
|
3166
3139
|
var tmp = Js_instance;
|
|
3167
3140
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3168
3141
|
};
|
|
@@ -3171,15 +3144,15 @@
|
|
|
3171
3144
|
return HttpFactory_instance;
|
|
3172
3145
|
}
|
|
3173
3146
|
//region block: post-declaration
|
|
3174
|
-
protoOf($serializer).
|
|
3175
|
-
protoOf($serializer_0).
|
|
3176
|
-
protoOf($serializer_2).
|
|
3177
|
-
protoOf($serializer_3).
|
|
3178
|
-
protoOf($serializer_5).
|
|
3179
|
-
protoOf($serializer_6).
|
|
3180
|
-
protoOf(RandomPoolProviderImpl).
|
|
3181
|
-
protoOf(SecureRandom_0).
|
|
3182
|
-
protoOf(SecureRandom_0).
|
|
3147
|
+
protoOf($serializer).wz = typeParametersSerializers;
|
|
3148
|
+
protoOf($serializer_0).wz = typeParametersSerializers;
|
|
3149
|
+
protoOf($serializer_2).wz = typeParametersSerializers;
|
|
3150
|
+
protoOf($serializer_3).wz = typeParametersSerializers;
|
|
3151
|
+
protoOf($serializer_5).wz = typeParametersSerializers;
|
|
3152
|
+
protoOf($serializer_6).wz = typeParametersSerializers;
|
|
3153
|
+
protoOf(RandomPoolProviderImpl).j58 = getCardDeck$default;
|
|
3154
|
+
protoOf(SecureRandom_0).m5d = nextInt$default;
|
|
3155
|
+
protoOf(SecureRandom_0).o5d = shuffle;
|
|
3183
3156
|
//endregion
|
|
3184
3157
|
//region block: init
|
|
3185
3158
|
Companion_instance_1 = new Companion();
|
|
@@ -3210,7 +3183,7 @@
|
|
|
3210
3183
|
var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
|
|
3211
3184
|
var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
|
|
3212
3185
|
$games$raspberry$card_game$random$data$models.GameCardDecksRecord = GameCardDecksRecord;
|
|
3213
|
-
defineProp($games$raspberry$card_game$random$data$models.GameCardDecksRecord, 'Companion', Companion_getInstance_3);
|
|
3186
|
+
defineProp($games$raspberry$card_game$random$data$models.GameCardDecksRecord, 'Companion', Companion_getInstance_3, VOID, true);
|
|
3214
3187
|
$games$raspberry$card_game$random$data$models.GameCardDeckData = GameCardDeckData;
|
|
3215
3188
|
var $games = _.games || (_.games = {});
|
|
3216
3189
|
var $games$raspberry = $games.raspberry || ($games.raspberry = {});
|