raspberry_games_server_game_logic 1.8.347 → 1.8.348
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 +74 -74
- package/Kosi-Kodein-kodein-di.js +635 -635
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1724 -1724
- package/Logic_Debertz-core.js +1836 -1836
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14979 -14979
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +1599 -1599
- package/error-library-error.js +53 -0
- package/error-library-error.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +2898 -2665
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +23 -23
- package/kotlinx-coroutines-core.js +2914 -2914
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +343 -343
- package/kotlinx-serialization-kotlinx-serialization-core.js +2006 -2006
- package/kotlinx-serialization-kotlinx-serialization-json.js +1537 -1537
- package/ktor-ktor-client-content-negotiation.js +214 -214
- package/ktor-ktor-client-core.js +2526 -2526
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +10 -10
- package/ktor-ktor-http.js +726 -726
- package/ktor-ktor-io.js +1624 -1624
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +277 -277
- package/ktor-ktor-serialization.js +131 -131
- package/ktor-ktor-utils.js +729 -729
- package/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
- package/random-library-crypto-rand.js +251 -0
- package/random-library-crypto-rand.js.map +1 -0
- package/random-library-secure-random.js +93 -0
- package/random-library-secure-random.js.map +1 -0
- package/raspberry-cardgame-lib-core.js +280 -280
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +101 -101
- package/raspberry-cardgame-lib-random.js +1107 -1040
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +27 -27
- package/secure-random-secure-random.js +0 -174
- package/secure-random-secure-random.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './random-library-secure-random.js', './raspberry-cardgame-lib-logger.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./random-library-secure-random.js'), require('./raspberry-cardgame-lib-logger.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
@@ -37,35 +37,35 @@
|
|
|
37
37
|
if (typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined') {
|
|
38
38
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-content-negotiation' was not found. Please, check whether 'ktor-ktor-client-content-negotiation' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
39
39
|
}
|
|
40
|
-
if (typeof globalThis['
|
|
41
|
-
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency '
|
|
40
|
+
if (typeof globalThis['random-library-secure-random'] === 'undefined') {
|
|
41
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'random-library-secure-random' was not found. Please, check whether 'random-library-secure-random' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
42
42
|
}
|
|
43
43
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
44
44
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
45
45
|
}
|
|
46
|
-
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['
|
|
46
|
+
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['random-library-secure-random'], globalThis['raspberry-cardgame-lib-logger']);
|
|
47
47
|
}
|
|
48
48
|
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_io_ktor_ktor_client_logging, kotlin_io_ktor_ktor_serialization_kotlinx_json, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_org_kotlincrypto_secure_random, kotlin_io_raspberryapps_cardgame_logger) {
|
|
49
49
|
'use strict';
|
|
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.$_$.
|
|
53
|
+
var protoOf = kotlin_kotlin.$_$.qc;
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
|
|
55
55
|
var RuntimeException = kotlin_kotlin.$_$.ng;
|
|
56
56
|
var VOID = kotlin_kotlin.$_$.f;
|
|
57
57
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.d2;
|
|
58
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
59
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
60
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
58
|
+
var captureStack = kotlin_kotlin.$_$.za;
|
|
59
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pb;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.nb;
|
|
61
61
|
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
62
62
|
var toString = kotlin_kotlin.$_$.uc;
|
|
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.$_$.
|
|
63
|
+
var hashCode = kotlin_kotlin.$_$.ob;
|
|
64
|
+
var equals = kotlin_kotlin.$_$.ib;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.j8;
|
|
66
|
+
var plus = kotlin_kotlin.$_$.u8;
|
|
67
|
+
var emptyList = kotlin_kotlin.$_$.h7;
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.hb;
|
|
69
69
|
var toLong = kotlin_kotlin.$_$.sc;
|
|
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;
|
|
@@ -73,20 +73,22 @@
|
|
|
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.$_$.ub;
|
|
77
77
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
78
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
79
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
78
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
79
|
+
var objectCreate = kotlin_kotlin.$_$.pc;
|
|
80
80
|
var toString_0 = kotlin_kotlin.$_$.sh;
|
|
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.$_$.i;
|
|
85
|
+
var lazy = kotlin_kotlin.$_$.kh;
|
|
84
86
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
85
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
86
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
87
|
-
var getValue = kotlin_kotlin.$_$.
|
|
87
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.kb;
|
|
88
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sb;
|
|
89
|
+
var getValue = kotlin_kotlin.$_$.u7;
|
|
88
90
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
89
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
91
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ra;
|
|
90
92
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
91
93
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
92
94
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
@@ -100,33 +102,36 @@
|
|
|
100
102
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
101
103
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
102
104
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
103
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
105
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
104
106
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
105
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
106
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
107
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
108
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
107
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
|
|
108
|
+
var KtMap = kotlin_kotlin.$_$.u5;
|
|
109
|
+
var isInterface = kotlin_kotlin.$_$.dc;
|
|
110
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.z4;
|
|
109
111
|
var Long = kotlin_kotlin.$_$.jg;
|
|
110
112
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
111
113
|
var toDuration = kotlin_kotlin.$_$.vf;
|
|
112
114
|
var Duration = kotlin_kotlin.$_$.sf;
|
|
113
|
-
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.
|
|
115
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.o2;
|
|
114
116
|
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.j2;
|
|
115
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
116
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
117
|
-
var toMap = kotlin_kotlin.$_$.
|
|
118
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
119
|
-
var
|
|
117
|
+
var emptyMap = kotlin_kotlin.$_$.i7;
|
|
118
|
+
var toMutableMap = kotlin_kotlin.$_$.s9;
|
|
119
|
+
var toMap = kotlin_kotlin.$_$.p9;
|
|
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;
|
|
120
124
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
121
125
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
122
126
|
var Result = kotlin_kotlin.$_$.mg;
|
|
123
127
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
124
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
128
|
+
var Companion_instance = kotlin_kotlin.$_$.e5;
|
|
125
129
|
var createFailure = kotlin_kotlin.$_$.eh;
|
|
126
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
127
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
130
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x2;
|
|
131
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.tb;
|
|
132
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.i2;
|
|
128
133
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
129
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
134
|
+
var firstOrNull = kotlin_kotlin.$_$.m7;
|
|
130
135
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
131
136
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
132
137
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
@@ -139,15 +144,14 @@
|
|
|
139
144
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
140
145
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
141
146
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
142
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
143
147
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
144
148
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
145
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
146
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
149
|
+
var Default_getInstance = kotlin_kotlin.$_$.v4;
|
|
150
|
+
var toMutableList = kotlin_kotlin.$_$.r9;
|
|
147
151
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
148
|
-
var take = kotlin_kotlin.$_$.
|
|
149
|
-
var drop = kotlin_kotlin.$_$.
|
|
150
|
-
var reverse = kotlin_kotlin.$_$.
|
|
152
|
+
var take = kotlin_kotlin.$_$.j9;
|
|
153
|
+
var drop = kotlin_kotlin.$_$.g7;
|
|
154
|
+
var reverse = kotlin_kotlin.$_$.z8;
|
|
151
155
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
152
156
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
153
157
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -199,7 +203,7 @@
|
|
|
199
203
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
200
204
|
signed = signed === VOID ? false : signed;
|
|
201
205
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
202
|
-
return $super === VOID ? this.
|
|
206
|
+
return $super === VOID ? this.p5w(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.p5w.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
203
207
|
}
|
|
204
208
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
205
209
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -215,7 +219,7 @@
|
|
|
215
219
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
216
220
|
function nextInt$default(from, until, $super) {
|
|
217
221
|
from = from === VOID ? 0 : from;
|
|
218
|
-
return $super === VOID ? this.
|
|
222
|
+
return $super === VOID ? this.lh(from, until) : $super.lh.call(this, from, until);
|
|
219
223
|
}
|
|
220
224
|
function shuffle(list) {
|
|
221
225
|
var inductionVariable = get_lastIndex(list);
|
|
@@ -223,8 +227,8 @@
|
|
|
223
227
|
do {
|
|
224
228
|
var i = inductionVariable;
|
|
225
229
|
inductionVariable = inductionVariable + -1 | 0;
|
|
226
|
-
var j = this.
|
|
227
|
-
list.
|
|
230
|
+
var j = this.lh(0, i + 1 | 0);
|
|
231
|
+
list.f2(j, list.f2(i, list.o(j)));
|
|
228
232
|
}
|
|
229
233
|
while (1 <= inductionVariable);
|
|
230
234
|
return list;
|
|
@@ -234,7 +238,7 @@
|
|
|
234
238
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
235
239
|
//endregion
|
|
236
240
|
function Companion() {
|
|
237
|
-
this.
|
|
241
|
+
this.m5r_1 = 100001;
|
|
238
242
|
}
|
|
239
243
|
var Companion_instance_1;
|
|
240
244
|
function Companion_getInstance_2() {
|
|
@@ -245,31 +249,31 @@
|
|
|
245
249
|
cause = cause === VOID ? null : cause;
|
|
246
250
|
RuntimeException_init_$Init$(message, cause, this);
|
|
247
251
|
captureStack(this, RandomException);
|
|
248
|
-
this.
|
|
252
|
+
this.n5r_1 = code;
|
|
249
253
|
}
|
|
250
254
|
function CardDecksRequestUserData(id, count) {
|
|
251
255
|
this.id = id;
|
|
252
256
|
this.count = count;
|
|
253
257
|
}
|
|
254
|
-
protoOf(CardDecksRequestUserData).
|
|
258
|
+
protoOf(CardDecksRequestUserData).o5p = function () {
|
|
255
259
|
return this.id;
|
|
256
260
|
};
|
|
257
|
-
protoOf(CardDecksRequestUserData).
|
|
261
|
+
protoOf(CardDecksRequestUserData).o5r = function () {
|
|
258
262
|
return this.count;
|
|
259
263
|
};
|
|
260
|
-
protoOf(CardDecksRequestUserData).
|
|
264
|
+
protoOf(CardDecksRequestUserData).kf = function () {
|
|
261
265
|
return this.id;
|
|
262
266
|
};
|
|
263
|
-
protoOf(CardDecksRequestUserData).
|
|
267
|
+
protoOf(CardDecksRequestUserData).lf = function () {
|
|
264
268
|
return this.count;
|
|
265
269
|
};
|
|
266
|
-
protoOf(CardDecksRequestUserData).
|
|
270
|
+
protoOf(CardDecksRequestUserData).p5r = function (id, count) {
|
|
267
271
|
return new CardDecksRequestUserData(id, count);
|
|
268
272
|
};
|
|
269
273
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
270
274
|
id = id === VOID ? this.id : id;
|
|
271
275
|
count = count === VOID ? this.count : count;
|
|
272
|
-
return $super === VOID ? this.
|
|
276
|
+
return $super === VOID ? this.p5r(id, count) : $super.p5r.call(this, id, count);
|
|
273
277
|
};
|
|
274
278
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
275
279
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -295,25 +299,25 @@
|
|
|
295
299
|
this.players = players;
|
|
296
300
|
this.gameId = gameId;
|
|
297
301
|
}
|
|
298
|
-
protoOf(CardDeckRequestUserData).
|
|
302
|
+
protoOf(CardDeckRequestUserData).q5r = function () {
|
|
299
303
|
return this.players;
|
|
300
304
|
};
|
|
301
|
-
protoOf(CardDeckRequestUserData).
|
|
305
|
+
protoOf(CardDeckRequestUserData).r5r = function () {
|
|
302
306
|
return this.gameId;
|
|
303
307
|
};
|
|
304
|
-
protoOf(CardDeckRequestUserData).
|
|
308
|
+
protoOf(CardDeckRequestUserData).kf = function () {
|
|
305
309
|
return this.players;
|
|
306
310
|
};
|
|
307
|
-
protoOf(CardDeckRequestUserData).
|
|
311
|
+
protoOf(CardDeckRequestUserData).lf = function () {
|
|
308
312
|
return this.gameId;
|
|
309
313
|
};
|
|
310
|
-
protoOf(CardDeckRequestUserData).
|
|
314
|
+
protoOf(CardDeckRequestUserData).s5r = function (players, gameId) {
|
|
311
315
|
return new CardDeckRequestUserData(players, gameId);
|
|
312
316
|
};
|
|
313
317
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
314
318
|
players = players === VOID ? this.players : players;
|
|
315
319
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
316
|
-
return $super === VOID ? this.
|
|
320
|
+
return $super === VOID ? this.s5r(players, gameId) : $super.s5r.call(this, players, gameId);
|
|
317
321
|
};
|
|
318
322
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
319
323
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -339,25 +343,25 @@
|
|
|
339
343
|
this.id = id;
|
|
340
344
|
this.name = name;
|
|
341
345
|
}
|
|
342
|
-
protoOf(UserInfoData).
|
|
346
|
+
protoOf(UserInfoData).o5p = function () {
|
|
343
347
|
return this.id;
|
|
344
348
|
};
|
|
345
|
-
protoOf(UserInfoData).
|
|
349
|
+
protoOf(UserInfoData).s2 = function () {
|
|
346
350
|
return this.name;
|
|
347
351
|
};
|
|
348
|
-
protoOf(UserInfoData).
|
|
352
|
+
protoOf(UserInfoData).kf = function () {
|
|
349
353
|
return this.id;
|
|
350
354
|
};
|
|
351
|
-
protoOf(UserInfoData).
|
|
355
|
+
protoOf(UserInfoData).lf = function () {
|
|
352
356
|
return this.name;
|
|
353
357
|
};
|
|
354
|
-
protoOf(UserInfoData).
|
|
358
|
+
protoOf(UserInfoData).t5r = function (id, name) {
|
|
355
359
|
return new UserInfoData(id, name);
|
|
356
360
|
};
|
|
357
361
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
358
362
|
id = id === VOID ? this.id : id;
|
|
359
363
|
name = name === VOID ? this.name : name;
|
|
360
|
-
return $super === VOID ? this.
|
|
364
|
+
return $super === VOID ? this.t5r(id, name) : $super.t5r.call(this, id, name);
|
|
361
365
|
};
|
|
362
366
|
protoOf(UserInfoData).toString = function () {
|
|
363
367
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -380,19 +384,19 @@
|
|
|
380
384
|
return true;
|
|
381
385
|
};
|
|
382
386
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
387
|
+
this.u5r_1 = cardDecks;
|
|
388
|
+
this.v5r_1 = responseText;
|
|
389
|
+
this.w5r_1 = id;
|
|
390
|
+
this.x5r_1 = signature;
|
|
387
391
|
}
|
|
388
392
|
protoOf(CardDeckResult).toString = function () {
|
|
389
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
393
|
+
return 'CardDeckResult(cardDecks=' + toString(this.u5r_1) + ', responseText=' + this.v5r_1 + ', id=' + this.w5r_1 + ', signature=' + this.x5r_1 + ')';
|
|
390
394
|
};
|
|
391
395
|
protoOf(CardDeckResult).hashCode = function () {
|
|
392
|
-
var result = hashCode(this.
|
|
393
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
394
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
395
|
-
result = imul(result, 31) + (this.
|
|
396
|
+
var result = hashCode(this.u5r_1);
|
|
397
|
+
result = imul(result, 31) + getStringHashCode(this.v5r_1) | 0;
|
|
398
|
+
result = imul(result, 31) + getStringHashCode(this.w5r_1) | 0;
|
|
399
|
+
result = imul(result, 31) + (this.x5r_1 == null ? 0 : getStringHashCode(this.x5r_1)) | 0;
|
|
396
400
|
return result;
|
|
397
401
|
};
|
|
398
402
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -401,13 +405,13 @@
|
|
|
401
405
|
if (!(other instanceof CardDeckResult))
|
|
402
406
|
return false;
|
|
403
407
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
404
|
-
if (!equals(this.
|
|
408
|
+
if (!equals(this.u5r_1, tmp0_other_with_cast.u5r_1))
|
|
405
409
|
return false;
|
|
406
|
-
if (!(this.
|
|
410
|
+
if (!(this.v5r_1 === tmp0_other_with_cast.v5r_1))
|
|
407
411
|
return false;
|
|
408
|
-
if (!(this.
|
|
412
|
+
if (!(this.w5r_1 === tmp0_other_with_cast.w5r_1))
|
|
409
413
|
return false;
|
|
410
|
-
if (!(this.
|
|
414
|
+
if (!(this.x5r_1 == tmp0_other_with_cast.x5r_1))
|
|
411
415
|
return false;
|
|
412
416
|
return true;
|
|
413
417
|
};
|
|
@@ -430,31 +434,31 @@
|
|
|
430
434
|
this.userData = userData;
|
|
431
435
|
this.rounds = rounds;
|
|
432
436
|
}
|
|
433
|
-
protoOf(GameCardDecksRecord).
|
|
437
|
+
protoOf(GameCardDecksRecord).y5r = function () {
|
|
434
438
|
return this.poolId;
|
|
435
439
|
};
|
|
436
|
-
protoOf(GameCardDecksRecord).
|
|
440
|
+
protoOf(GameCardDecksRecord).z5r = function () {
|
|
437
441
|
return this.signature;
|
|
438
442
|
};
|
|
439
|
-
protoOf(GameCardDecksRecord).
|
|
443
|
+
protoOf(GameCardDecksRecord).a5s = function () {
|
|
440
444
|
return this.userData;
|
|
441
445
|
};
|
|
442
|
-
protoOf(GameCardDecksRecord).
|
|
446
|
+
protoOf(GameCardDecksRecord).b5s = function () {
|
|
443
447
|
return this.rounds;
|
|
444
448
|
};
|
|
445
|
-
protoOf(GameCardDecksRecord).
|
|
449
|
+
protoOf(GameCardDecksRecord).kf = function () {
|
|
446
450
|
return this.poolId;
|
|
447
451
|
};
|
|
448
|
-
protoOf(GameCardDecksRecord).
|
|
452
|
+
protoOf(GameCardDecksRecord).lf = function () {
|
|
449
453
|
return this.signature;
|
|
450
454
|
};
|
|
451
|
-
protoOf(GameCardDecksRecord).
|
|
455
|
+
protoOf(GameCardDecksRecord).um = function () {
|
|
452
456
|
return this.userData;
|
|
453
457
|
};
|
|
454
|
-
protoOf(GameCardDecksRecord).
|
|
458
|
+
protoOf(GameCardDecksRecord).c5s = function () {
|
|
455
459
|
return this.rounds;
|
|
456
460
|
};
|
|
457
|
-
protoOf(GameCardDecksRecord).
|
|
461
|
+
protoOf(GameCardDecksRecord).d5s = function (poolId, signature, userData, rounds) {
|
|
458
462
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
459
463
|
};
|
|
460
464
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -462,7 +466,7 @@
|
|
|
462
466
|
signature = signature === VOID ? this.signature : signature;
|
|
463
467
|
userData = userData === VOID ? this.userData : userData;
|
|
464
468
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
465
|
-
return $super === VOID ? this.
|
|
469
|
+
return $super === VOID ? this.d5s(poolId, signature, userData, rounds) : $super.d5s.call(this, poolId, signature, userData, rounds);
|
|
466
470
|
};
|
|
467
471
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
468
472
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -494,25 +498,25 @@
|
|
|
494
498
|
this.cardDeckIndex = cardDeckIndex;
|
|
495
499
|
this.cards = cards;
|
|
496
500
|
}
|
|
497
|
-
protoOf(GameCardDeckData).
|
|
501
|
+
protoOf(GameCardDeckData).e5s = function () {
|
|
498
502
|
return this.cardDeckIndex;
|
|
499
503
|
};
|
|
500
|
-
protoOf(GameCardDeckData).
|
|
504
|
+
protoOf(GameCardDeckData).f5s = function () {
|
|
501
505
|
return this.cards;
|
|
502
506
|
};
|
|
503
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).kf = function () {
|
|
504
508
|
return this.cardDeckIndex;
|
|
505
509
|
};
|
|
506
|
-
protoOf(GameCardDeckData).
|
|
510
|
+
protoOf(GameCardDeckData).lf = function () {
|
|
507
511
|
return this.cards;
|
|
508
512
|
};
|
|
509
|
-
protoOf(GameCardDeckData).
|
|
513
|
+
protoOf(GameCardDeckData).g5s = function (cardDeckIndex, cards) {
|
|
510
514
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
511
515
|
};
|
|
512
516
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
513
517
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
514
518
|
cards = cards === VOID ? this.cards : cards;
|
|
515
|
-
return $super === VOID ? this.
|
|
519
|
+
return $super === VOID ? this.g5s(cardDeckIndex, cards) : $super.g5s.call(this, cardDeckIndex, cards);
|
|
516
520
|
};
|
|
517
521
|
protoOf(GameCardDeckData).toString = function () {
|
|
518
522
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -539,25 +543,25 @@
|
|
|
539
543
|
this.baseUrl = baseUrl;
|
|
540
544
|
this.timeoutMillis = timeoutMillis;
|
|
541
545
|
}
|
|
542
|
-
protoOf(HttpConfig).
|
|
546
|
+
protoOf(HttpConfig).h5s = function () {
|
|
543
547
|
return this.baseUrl;
|
|
544
548
|
};
|
|
545
|
-
protoOf(HttpConfig).
|
|
549
|
+
protoOf(HttpConfig).i5s = function () {
|
|
546
550
|
return this.timeoutMillis;
|
|
547
551
|
};
|
|
548
|
-
protoOf(HttpConfig).
|
|
552
|
+
protoOf(HttpConfig).kf = function () {
|
|
549
553
|
return this.baseUrl;
|
|
550
554
|
};
|
|
551
|
-
protoOf(HttpConfig).
|
|
555
|
+
protoOf(HttpConfig).lf = function () {
|
|
552
556
|
return this.timeoutMillis;
|
|
553
557
|
};
|
|
554
|
-
protoOf(HttpConfig).
|
|
558
|
+
protoOf(HttpConfig).p5r = function (baseUrl, timeoutMillis) {
|
|
555
559
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
556
560
|
};
|
|
557
561
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
558
562
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
559
563
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
560
|
-
return $super === VOID ? this.
|
|
564
|
+
return $super === VOID ? this.p5r(baseUrl, timeoutMillis) : $super.p5r.call(this, baseUrl, timeoutMillis);
|
|
561
565
|
};
|
|
562
566
|
protoOf(HttpConfig).toString = function () {
|
|
563
567
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -592,31 +596,31 @@
|
|
|
592
596
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
593
597
|
this.httpConfig = httpConfig;
|
|
594
598
|
}
|
|
595
|
-
protoOf(RandomOrgConfig).
|
|
599
|
+
protoOf(RandomOrgConfig).j5s = function () {
|
|
596
600
|
return this.apiKey;
|
|
597
601
|
};
|
|
598
|
-
protoOf(RandomOrgConfig).
|
|
602
|
+
protoOf(RandomOrgConfig).k5s = function () {
|
|
599
603
|
return this.poolSize;
|
|
600
604
|
};
|
|
601
|
-
protoOf(RandomOrgConfig).
|
|
605
|
+
protoOf(RandomOrgConfig).l5s = function () {
|
|
602
606
|
return this.thresholdForUsedPool;
|
|
603
607
|
};
|
|
604
|
-
protoOf(RandomOrgConfig).
|
|
608
|
+
protoOf(RandomOrgConfig).m5s = function () {
|
|
605
609
|
return this.httpConfig;
|
|
606
610
|
};
|
|
607
|
-
protoOf(RandomOrgConfig).
|
|
611
|
+
protoOf(RandomOrgConfig).kf = function () {
|
|
608
612
|
return this.apiKey;
|
|
609
613
|
};
|
|
610
|
-
protoOf(RandomOrgConfig).
|
|
614
|
+
protoOf(RandomOrgConfig).lf = function () {
|
|
611
615
|
return this.poolSize;
|
|
612
616
|
};
|
|
613
|
-
protoOf(RandomOrgConfig).
|
|
617
|
+
protoOf(RandomOrgConfig).um = function () {
|
|
614
618
|
return this.thresholdForUsedPool;
|
|
615
619
|
};
|
|
616
|
-
protoOf(RandomOrgConfig).
|
|
620
|
+
protoOf(RandomOrgConfig).c5s = function () {
|
|
617
621
|
return this.httpConfig;
|
|
618
622
|
};
|
|
619
|
-
protoOf(RandomOrgConfig).
|
|
623
|
+
protoOf(RandomOrgConfig).n5s = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
620
624
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
621
625
|
};
|
|
622
626
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -624,7 +628,7 @@
|
|
|
624
628
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
625
629
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
626
630
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
627
|
-
return $super === VOID ? this.
|
|
631
|
+
return $super === VOID ? this.n5s(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.n5s.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
628
632
|
};
|
|
629
633
|
protoOf(RandomOrgConfig).toString = function () {
|
|
630
634
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -661,59 +665,59 @@
|
|
|
661
665
|
function $serializer() {
|
|
662
666
|
$serializer_instance = this;
|
|
663
667
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
664
|
-
tmp0_serialDesc.
|
|
665
|
-
tmp0_serialDesc.
|
|
666
|
-
this.
|
|
667
|
-
}
|
|
668
|
-
protoOf($serializer).
|
|
669
|
-
var tmp0_desc = this.
|
|
670
|
-
var tmp1_output = encoder.
|
|
671
|
-
tmp1_output.
|
|
672
|
-
tmp1_output.
|
|
673
|
-
tmp1_output.
|
|
674
|
-
};
|
|
675
|
-
protoOf($serializer).
|
|
676
|
-
return this.
|
|
677
|
-
};
|
|
678
|
-
protoOf($serializer).
|
|
679
|
-
var tmp0_desc = this.
|
|
668
|
+
tmp0_serialDesc.z4j('jsonrpc', false);
|
|
669
|
+
tmp0_serialDesc.z4j('error', false);
|
|
670
|
+
this.o5s_1 = tmp0_serialDesc;
|
|
671
|
+
}
|
|
672
|
+
protoOf($serializer).p5s = function (encoder, value) {
|
|
673
|
+
var tmp0_desc = this.o5s_1;
|
|
674
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
675
|
+
tmp1_output.x4d(tmp0_desc, 0, value.q5s_1);
|
|
676
|
+
tmp1_output.b4e(tmp0_desc, 1, $serializer_getInstance_0(), value.r5s_1);
|
|
677
|
+
tmp1_output.j4c(tmp0_desc);
|
|
678
|
+
};
|
|
679
|
+
protoOf($serializer).w48 = function (encoder, value) {
|
|
680
|
+
return this.p5s(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
681
|
+
};
|
|
682
|
+
protoOf($serializer).x48 = function (decoder) {
|
|
683
|
+
var tmp0_desc = this.o5s_1;
|
|
680
684
|
var tmp1_flag = true;
|
|
681
685
|
var tmp2_index = 0;
|
|
682
686
|
var tmp3_bitMask0 = 0;
|
|
683
687
|
var tmp4_local0 = null;
|
|
684
688
|
var tmp5_local1 = null;
|
|
685
|
-
var tmp6_input = decoder.
|
|
686
|
-
if (tmp6_input.
|
|
687
|
-
tmp4_local0 = tmp6_input.
|
|
689
|
+
var tmp6_input = decoder.i4c(tmp0_desc);
|
|
690
|
+
if (tmp6_input.y4c()) {
|
|
691
|
+
tmp4_local0 = tmp6_input.s4c(tmp0_desc, 0);
|
|
688
692
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
689
|
-
tmp5_local1 = tmp6_input.
|
|
693
|
+
tmp5_local1 = tmp6_input.w4c(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
690
694
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
691
695
|
} else
|
|
692
696
|
while (tmp1_flag) {
|
|
693
|
-
tmp2_index = tmp6_input.
|
|
697
|
+
tmp2_index = tmp6_input.z4c(tmp0_desc);
|
|
694
698
|
switch (tmp2_index) {
|
|
695
699
|
case -1:
|
|
696
700
|
tmp1_flag = false;
|
|
697
701
|
break;
|
|
698
702
|
case 0:
|
|
699
|
-
tmp4_local0 = tmp6_input.
|
|
703
|
+
tmp4_local0 = tmp6_input.s4c(tmp0_desc, 0);
|
|
700
704
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
701
705
|
break;
|
|
702
706
|
case 1:
|
|
703
|
-
tmp5_local1 = tmp6_input.
|
|
707
|
+
tmp5_local1 = tmp6_input.w4c(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
704
708
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
705
709
|
break;
|
|
706
710
|
default:
|
|
707
711
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
708
712
|
}
|
|
709
713
|
}
|
|
710
|
-
tmp6_input.
|
|
714
|
+
tmp6_input.j4c(tmp0_desc);
|
|
711
715
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
712
716
|
};
|
|
713
|
-
protoOf($serializer).
|
|
714
|
-
return this.
|
|
717
|
+
protoOf($serializer).v48 = function () {
|
|
718
|
+
return this.o5s_1;
|
|
715
719
|
};
|
|
716
|
-
protoOf($serializer).
|
|
720
|
+
protoOf($serializer).o4k = function () {
|
|
717
721
|
// Inline function 'kotlin.arrayOf' call
|
|
718
722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
719
723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -727,25 +731,25 @@
|
|
|
727
731
|
}
|
|
728
732
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
729
733
|
if (!(3 === (3 & seen0))) {
|
|
730
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
734
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().o5s_1);
|
|
731
735
|
}
|
|
732
|
-
$this.
|
|
733
|
-
$this.
|
|
736
|
+
$this.q5s_1 = jsonrpc;
|
|
737
|
+
$this.r5s_1 = error;
|
|
734
738
|
return $this;
|
|
735
739
|
}
|
|
736
740
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
737
741
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
738
742
|
}
|
|
739
743
|
function ErrorResponseDto(jsonrpc, error) {
|
|
740
|
-
this.
|
|
741
|
-
this.
|
|
744
|
+
this.q5s_1 = jsonrpc;
|
|
745
|
+
this.r5s_1 = error;
|
|
742
746
|
}
|
|
743
747
|
protoOf(ErrorResponseDto).toString = function () {
|
|
744
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
748
|
+
return 'ErrorResponseDto(jsonrpc=' + this.q5s_1 + ', error=' + toString_0(this.r5s_1) + ')';
|
|
745
749
|
};
|
|
746
750
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
747
|
-
var result = getStringHashCode(this.
|
|
748
|
-
result = imul(result, 31) + (this.
|
|
751
|
+
var result = getStringHashCode(this.q5s_1);
|
|
752
|
+
result = imul(result, 31) + (this.r5s_1 == null ? 0 : this.r5s_1.hashCode()) | 0;
|
|
749
753
|
return result;
|
|
750
754
|
};
|
|
751
755
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -754,68 +758,68 @@
|
|
|
754
758
|
if (!(other instanceof ErrorResponseDto))
|
|
755
759
|
return false;
|
|
756
760
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
757
|
-
if (!(this.
|
|
761
|
+
if (!(this.q5s_1 === tmp0_other_with_cast.q5s_1))
|
|
758
762
|
return false;
|
|
759
|
-
if (!equals(this.
|
|
763
|
+
if (!equals(this.r5s_1, tmp0_other_with_cast.r5s_1))
|
|
760
764
|
return false;
|
|
761
765
|
return true;
|
|
762
766
|
};
|
|
763
767
|
function $serializer_0() {
|
|
764
768
|
$serializer_instance_0 = this;
|
|
765
769
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
766
|
-
tmp0_serialDesc.
|
|
767
|
-
tmp0_serialDesc.
|
|
768
|
-
this.
|
|
769
|
-
}
|
|
770
|
-
protoOf($serializer_0).
|
|
771
|
-
var tmp0_desc = this.
|
|
772
|
-
var tmp1_output = encoder.
|
|
773
|
-
tmp1_output.
|
|
774
|
-
tmp1_output.
|
|
775
|
-
tmp1_output.
|
|
776
|
-
};
|
|
777
|
-
protoOf($serializer_0).
|
|
778
|
-
return this.
|
|
779
|
-
};
|
|
780
|
-
protoOf($serializer_0).
|
|
781
|
-
var tmp0_desc = this.
|
|
770
|
+
tmp0_serialDesc.z4j('code', false);
|
|
771
|
+
tmp0_serialDesc.z4j('message', false);
|
|
772
|
+
this.s5s_1 = tmp0_serialDesc;
|
|
773
|
+
}
|
|
774
|
+
protoOf($serializer_0).t5s = function (encoder, value) {
|
|
775
|
+
var tmp0_desc = this.s5s_1;
|
|
776
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
777
|
+
tmp1_output.b4e(tmp0_desc, 0, IntSerializer_getInstance(), value.u5s_1);
|
|
778
|
+
tmp1_output.b4e(tmp0_desc, 1, StringSerializer_getInstance(), value.v5s_1);
|
|
779
|
+
tmp1_output.j4c(tmp0_desc);
|
|
780
|
+
};
|
|
781
|
+
protoOf($serializer_0).w48 = function (encoder, value) {
|
|
782
|
+
return this.t5s(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
783
|
+
};
|
|
784
|
+
protoOf($serializer_0).x48 = function (decoder) {
|
|
785
|
+
var tmp0_desc = this.s5s_1;
|
|
782
786
|
var tmp1_flag = true;
|
|
783
787
|
var tmp2_index = 0;
|
|
784
788
|
var tmp3_bitMask0 = 0;
|
|
785
789
|
var tmp4_local0 = null;
|
|
786
790
|
var tmp5_local1 = null;
|
|
787
|
-
var tmp6_input = decoder.
|
|
788
|
-
if (tmp6_input.
|
|
789
|
-
tmp4_local0 = tmp6_input.
|
|
791
|
+
var tmp6_input = decoder.i4c(tmp0_desc);
|
|
792
|
+
if (tmp6_input.y4c()) {
|
|
793
|
+
tmp4_local0 = tmp6_input.w4c(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
790
794
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
791
|
-
tmp5_local1 = tmp6_input.
|
|
795
|
+
tmp5_local1 = tmp6_input.w4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
792
796
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
793
797
|
} else
|
|
794
798
|
while (tmp1_flag) {
|
|
795
|
-
tmp2_index = tmp6_input.
|
|
799
|
+
tmp2_index = tmp6_input.z4c(tmp0_desc);
|
|
796
800
|
switch (tmp2_index) {
|
|
797
801
|
case -1:
|
|
798
802
|
tmp1_flag = false;
|
|
799
803
|
break;
|
|
800
804
|
case 0:
|
|
801
|
-
tmp4_local0 = tmp6_input.
|
|
805
|
+
tmp4_local0 = tmp6_input.w4c(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
802
806
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
803
807
|
break;
|
|
804
808
|
case 1:
|
|
805
|
-
tmp5_local1 = tmp6_input.
|
|
809
|
+
tmp5_local1 = tmp6_input.w4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
806
810
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
807
811
|
break;
|
|
808
812
|
default:
|
|
809
813
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
810
814
|
}
|
|
811
815
|
}
|
|
812
|
-
tmp6_input.
|
|
816
|
+
tmp6_input.j4c(tmp0_desc);
|
|
813
817
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
814
818
|
};
|
|
815
|
-
protoOf($serializer_0).
|
|
816
|
-
return this.
|
|
819
|
+
protoOf($serializer_0).v48 = function () {
|
|
820
|
+
return this.s5s_1;
|
|
817
821
|
};
|
|
818
|
-
protoOf($serializer_0).
|
|
822
|
+
protoOf($serializer_0).o4k = function () {
|
|
819
823
|
// Inline function 'kotlin.arrayOf' call
|
|
820
824
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
821
825
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -829,10 +833,10 @@
|
|
|
829
833
|
}
|
|
830
834
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
831
835
|
if (!(3 === (3 & seen0))) {
|
|
832
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
836
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().s5s_1);
|
|
833
837
|
}
|
|
834
|
-
$this.
|
|
835
|
-
$this.
|
|
838
|
+
$this.u5s_1 = code;
|
|
839
|
+
$this.v5s_1 = message;
|
|
836
840
|
return $this;
|
|
837
841
|
}
|
|
838
842
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -841,11 +845,11 @@
|
|
|
841
845
|
function ErrorDto() {
|
|
842
846
|
}
|
|
843
847
|
protoOf(ErrorDto).toString = function () {
|
|
844
|
-
return 'ErrorDto(code=' + this.
|
|
848
|
+
return 'ErrorDto(code=' + this.u5s_1 + ', message=' + this.v5s_1 + ')';
|
|
845
849
|
};
|
|
846
850
|
protoOf(ErrorDto).hashCode = function () {
|
|
847
|
-
var result = this.
|
|
848
|
-
result = imul(result, 31) + (this.
|
|
851
|
+
var result = this.u5s_1 == null ? 0 : this.u5s_1;
|
|
852
|
+
result = imul(result, 31) + (this.v5s_1 == null ? 0 : getStringHashCode(this.v5s_1)) | 0;
|
|
849
853
|
return result;
|
|
850
854
|
};
|
|
851
855
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -854,15 +858,15 @@
|
|
|
854
858
|
if (!(other instanceof ErrorDto))
|
|
855
859
|
return false;
|
|
856
860
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
857
|
-
if (!(this.
|
|
861
|
+
if (!(this.u5s_1 == tmp0_other_with_cast.u5s_1))
|
|
858
862
|
return false;
|
|
859
|
-
if (!(this.
|
|
863
|
+
if (!(this.v5s_1 == tmp0_other_with_cast.v5s_1))
|
|
860
864
|
return false;
|
|
861
865
|
return true;
|
|
862
866
|
};
|
|
863
867
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
864
868
|
$serializer_1.call($this);
|
|
865
|
-
$this.
|
|
869
|
+
$this.x5s_1 = typeSerial0;
|
|
866
870
|
return $this;
|
|
867
871
|
}
|
|
868
872
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -871,17 +875,17 @@
|
|
|
871
875
|
function Companion_2() {
|
|
872
876
|
Companion_instance_4 = this;
|
|
873
877
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
874
|
-
tmp0_serialDesc.
|
|
875
|
-
tmp0_serialDesc.
|
|
876
|
-
tmp0_serialDesc.
|
|
877
|
-
tmp0_serialDesc.
|
|
878
|
-
this.
|
|
878
|
+
tmp0_serialDesc.z4j('jsonrpc', false);
|
|
879
|
+
tmp0_serialDesc.z4j('method', false);
|
|
880
|
+
tmp0_serialDesc.z4j('params', false);
|
|
881
|
+
tmp0_serialDesc.z4j('id', false);
|
|
882
|
+
this.y5s_1 = tmp0_serialDesc;
|
|
879
883
|
}
|
|
880
|
-
protoOf(Companion_2).
|
|
884
|
+
protoOf(Companion_2).z5s = function (typeSerial0) {
|
|
881
885
|
return $serializer_init_$Create$(typeSerial0);
|
|
882
886
|
};
|
|
883
|
-
protoOf(Companion_2).
|
|
884
|
-
return this.
|
|
887
|
+
protoOf(Companion_2).z4k = function (typeParamsSerializers) {
|
|
888
|
+
return this.z5s(typeParamsSerializers[0]);
|
|
885
889
|
};
|
|
886
890
|
var Companion_instance_4;
|
|
887
891
|
function Companion_getInstance_5() {
|
|
@@ -891,26 +895,26 @@
|
|
|
891
895
|
}
|
|
892
896
|
function $serializer_1() {
|
|
893
897
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
894
|
-
tmp0_serialDesc.
|
|
895
|
-
tmp0_serialDesc.
|
|
896
|
-
tmp0_serialDesc.
|
|
897
|
-
tmp0_serialDesc.
|
|
898
|
-
this.
|
|
899
|
-
}
|
|
900
|
-
protoOf($serializer_1).
|
|
901
|
-
var tmp0_desc = this.
|
|
902
|
-
var tmp1_output = encoder.
|
|
903
|
-
tmp1_output.
|
|
904
|
-
tmp1_output.
|
|
905
|
-
tmp1_output.
|
|
906
|
-
tmp1_output.
|
|
907
|
-
tmp1_output.
|
|
908
|
-
};
|
|
909
|
-
protoOf($serializer_1).
|
|
910
|
-
return this.
|
|
911
|
-
};
|
|
912
|
-
protoOf($serializer_1).
|
|
913
|
-
var tmp0_desc = this.
|
|
898
|
+
tmp0_serialDesc.z4j('jsonrpc', false);
|
|
899
|
+
tmp0_serialDesc.z4j('method', false);
|
|
900
|
+
tmp0_serialDesc.z4j('params', false);
|
|
901
|
+
tmp0_serialDesc.z4j('id', false);
|
|
902
|
+
this.w5s_1 = tmp0_serialDesc;
|
|
903
|
+
}
|
|
904
|
+
protoOf($serializer_1).a5t = function (encoder, value) {
|
|
905
|
+
var tmp0_desc = this.w5s_1;
|
|
906
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
907
|
+
tmp1_output.x4d(tmp0_desc, 0, value.b5t_1);
|
|
908
|
+
tmp1_output.x4d(tmp0_desc, 1, value.c5t_1);
|
|
909
|
+
tmp1_output.z4d(tmp0_desc, 2, this.x5s_1, value.d5t_1);
|
|
910
|
+
tmp1_output.x4d(tmp0_desc, 3, value.e5t_1);
|
|
911
|
+
tmp1_output.j4c(tmp0_desc);
|
|
912
|
+
};
|
|
913
|
+
protoOf($serializer_1).w48 = function (encoder, value) {
|
|
914
|
+
return this.a5t(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
915
|
+
};
|
|
916
|
+
protoOf($serializer_1).x48 = function (decoder) {
|
|
917
|
+
var tmp0_desc = this.w5s_1;
|
|
914
918
|
var tmp1_flag = true;
|
|
915
919
|
var tmp2_index = 0;
|
|
916
920
|
var tmp3_bitMask0 = 0;
|
|
@@ -918,69 +922,69 @@
|
|
|
918
922
|
var tmp5_local1 = null;
|
|
919
923
|
var tmp6_local2 = null;
|
|
920
924
|
var tmp7_local3 = null;
|
|
921
|
-
var tmp8_input = decoder.
|
|
922
|
-
if (tmp8_input.
|
|
923
|
-
tmp4_local0 = tmp8_input.
|
|
925
|
+
var tmp8_input = decoder.i4c(tmp0_desc);
|
|
926
|
+
if (tmp8_input.y4c()) {
|
|
927
|
+
tmp4_local0 = tmp8_input.s4c(tmp0_desc, 0);
|
|
924
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
925
|
-
tmp5_local1 = tmp8_input.
|
|
929
|
+
tmp5_local1 = tmp8_input.s4c(tmp0_desc, 1);
|
|
926
930
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
927
|
-
tmp6_local2 = tmp8_input.
|
|
931
|
+
tmp6_local2 = tmp8_input.u4c(tmp0_desc, 2, this.x5s_1, tmp6_local2);
|
|
928
932
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
929
|
-
tmp7_local3 = tmp8_input.
|
|
933
|
+
tmp7_local3 = tmp8_input.s4c(tmp0_desc, 3);
|
|
930
934
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
931
935
|
} else
|
|
932
936
|
while (tmp1_flag) {
|
|
933
|
-
tmp2_index = tmp8_input.
|
|
937
|
+
tmp2_index = tmp8_input.z4c(tmp0_desc);
|
|
934
938
|
switch (tmp2_index) {
|
|
935
939
|
case -1:
|
|
936
940
|
tmp1_flag = false;
|
|
937
941
|
break;
|
|
938
942
|
case 0:
|
|
939
|
-
tmp4_local0 = tmp8_input.
|
|
943
|
+
tmp4_local0 = tmp8_input.s4c(tmp0_desc, 0);
|
|
940
944
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
941
945
|
break;
|
|
942
946
|
case 1:
|
|
943
|
-
tmp5_local1 = tmp8_input.
|
|
947
|
+
tmp5_local1 = tmp8_input.s4c(tmp0_desc, 1);
|
|
944
948
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
945
949
|
break;
|
|
946
950
|
case 2:
|
|
947
|
-
tmp6_local2 = tmp8_input.
|
|
951
|
+
tmp6_local2 = tmp8_input.u4c(tmp0_desc, 2, this.x5s_1, tmp6_local2);
|
|
948
952
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
949
953
|
break;
|
|
950
954
|
case 3:
|
|
951
|
-
tmp7_local3 = tmp8_input.
|
|
955
|
+
tmp7_local3 = tmp8_input.s4c(tmp0_desc, 3);
|
|
952
956
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
953
957
|
break;
|
|
954
958
|
default:
|
|
955
959
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
956
960
|
}
|
|
957
961
|
}
|
|
958
|
-
tmp8_input.
|
|
962
|
+
tmp8_input.j4c(tmp0_desc);
|
|
959
963
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
960
964
|
};
|
|
961
|
-
protoOf($serializer_1).
|
|
962
|
-
return this.
|
|
965
|
+
protoOf($serializer_1).v48 = function () {
|
|
966
|
+
return this.w5s_1;
|
|
963
967
|
};
|
|
964
|
-
protoOf($serializer_1).
|
|
968
|
+
protoOf($serializer_1).o4k = function () {
|
|
965
969
|
// Inline function 'kotlin.arrayOf' call
|
|
966
970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
967
971
|
// Inline function 'kotlin.js.asDynamic' call
|
|
968
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
972
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.x5s_1, StringSerializer_getInstance()];
|
|
969
973
|
};
|
|
970
|
-
protoOf($serializer_1).
|
|
974
|
+
protoOf($serializer_1).p4k = function () {
|
|
971
975
|
// Inline function 'kotlin.arrayOf' call
|
|
972
976
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
973
977
|
// Inline function 'kotlin.js.asDynamic' call
|
|
974
|
-
return [this.
|
|
978
|
+
return [this.x5s_1];
|
|
975
979
|
};
|
|
976
980
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
977
981
|
if (!(15 === (15 & seen0))) {
|
|
978
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
982
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().y5s_1);
|
|
979
983
|
}
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
982
|
-
$this.
|
|
983
|
-
$this.
|
|
984
|
+
$this.b5t_1 = jsonrpc;
|
|
985
|
+
$this.c5t_1 = method;
|
|
986
|
+
$this.d5t_1 = params;
|
|
987
|
+
$this.e5t_1 = id;
|
|
984
988
|
return $this;
|
|
985
989
|
}
|
|
986
990
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -988,19 +992,19 @@
|
|
|
988
992
|
}
|
|
989
993
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
990
994
|
Companion_getInstance_5();
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
994
|
-
this.
|
|
995
|
+
this.b5t_1 = jsonrpc;
|
|
996
|
+
this.c5t_1 = method;
|
|
997
|
+
this.d5t_1 = params;
|
|
998
|
+
this.e5t_1 = id;
|
|
995
999
|
}
|
|
996
1000
|
protoOf(RandomRequestDto).toString = function () {
|
|
997
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1001
|
+
return 'RandomRequestDto(jsonrpc=' + this.b5t_1 + ', method=' + this.c5t_1 + ', params=' + toString(this.d5t_1) + ', id=' + this.e5t_1 + ')';
|
|
998
1002
|
};
|
|
999
1003
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1000
|
-
var result = getStringHashCode(this.
|
|
1001
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1002
|
-
result = imul(result, 31) + hashCode(this.
|
|
1003
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1004
|
+
var result = getStringHashCode(this.b5t_1);
|
|
1005
|
+
result = imul(result, 31) + getStringHashCode(this.c5t_1) | 0;
|
|
1006
|
+
result = imul(result, 31) + hashCode(this.d5t_1) | 0;
|
|
1007
|
+
result = imul(result, 31) + getStringHashCode(this.e5t_1) | 0;
|
|
1004
1008
|
return result;
|
|
1005
1009
|
};
|
|
1006
1010
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1009,23 +1013,27 @@
|
|
|
1009
1013
|
if (!(other instanceof RandomRequestDto))
|
|
1010
1014
|
return false;
|
|
1011
1015
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1012
|
-
if (!(this.
|
|
1016
|
+
if (!(this.b5t_1 === tmp0_other_with_cast.b5t_1))
|
|
1013
1017
|
return false;
|
|
1014
|
-
if (!(this.
|
|
1018
|
+
if (!(this.c5t_1 === tmp0_other_with_cast.c5t_1))
|
|
1015
1019
|
return false;
|
|
1016
|
-
if (!equals(this.
|
|
1020
|
+
if (!equals(this.d5t_1, tmp0_other_with_cast.d5t_1))
|
|
1017
1021
|
return false;
|
|
1018
|
-
if (!(this.
|
|
1022
|
+
if (!(this.e5t_1 === tmp0_other_with_cast.e5t_1))
|
|
1019
1023
|
return false;
|
|
1020
1024
|
return true;
|
|
1021
1025
|
};
|
|
1026
|
+
function RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a() {
|
|
1027
|
+
return new ArrayListSerializer(IntSerializer_getInstance());
|
|
1028
|
+
}
|
|
1022
1029
|
function Companion_3() {
|
|
1023
1030
|
Companion_instance_5 = this;
|
|
1024
1031
|
var tmp = this;
|
|
1032
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1025
1033
|
// Inline function 'kotlin.arrayOf' call
|
|
1026
1034
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1027
1035
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1028
|
-
tmp.
|
|
1036
|
+
tmp.f5t_1 = [null, null, lazy(tmp_0, RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a), null, null, null, null, null];
|
|
1029
1037
|
}
|
|
1030
1038
|
var Companion_instance_5;
|
|
1031
1039
|
function Companion_getInstance_6() {
|
|
@@ -1036,35 +1044,35 @@
|
|
|
1036
1044
|
function $serializer_2() {
|
|
1037
1045
|
$serializer_instance_1 = this;
|
|
1038
1046
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1039
|
-
tmp0_serialDesc.
|
|
1040
|
-
tmp0_serialDesc.
|
|
1041
|
-
tmp0_serialDesc.
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
tmp0_serialDesc.
|
|
1046
|
-
tmp0_serialDesc.
|
|
1047
|
-
this.
|
|
1048
|
-
}
|
|
1049
|
-
protoOf($serializer_2).
|
|
1050
|
-
var tmp0_desc = this.
|
|
1051
|
-
var tmp1_output = encoder.
|
|
1052
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1053
|
-
tmp1_output.
|
|
1054
|
-
tmp1_output.
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
tmp1_output.
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
tmp1_output.
|
|
1061
|
-
tmp1_output.
|
|
1062
|
-
};
|
|
1063
|
-
protoOf($serializer_2).
|
|
1064
|
-
return this.
|
|
1065
|
-
};
|
|
1066
|
-
protoOf($serializer_2).
|
|
1067
|
-
var tmp0_desc = this.
|
|
1047
|
+
tmp0_serialDesc.z4j('apiKey', false);
|
|
1048
|
+
tmp0_serialDesc.z4j('n', false);
|
|
1049
|
+
tmp0_serialDesc.z4j('length', false);
|
|
1050
|
+
tmp0_serialDesc.z4j('min', false);
|
|
1051
|
+
tmp0_serialDesc.z4j('max', false);
|
|
1052
|
+
tmp0_serialDesc.z4j('replacement', false);
|
|
1053
|
+
tmp0_serialDesc.z4j('ticketId', false);
|
|
1054
|
+
tmp0_serialDesc.z4j('userData', false);
|
|
1055
|
+
this.g5t_1 = tmp0_serialDesc;
|
|
1056
|
+
}
|
|
1057
|
+
protoOf($serializer_2).h5t = function (encoder, value) {
|
|
1058
|
+
var tmp0_desc = this.g5t_1;
|
|
1059
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
1060
|
+
var tmp2_cached = Companion_getInstance_6().f5t_1;
|
|
1061
|
+
tmp1_output.x4d(tmp0_desc, 0, value.i5t_1);
|
|
1062
|
+
tmp1_output.s4d(tmp0_desc, 1, value.j5t_1);
|
|
1063
|
+
tmp1_output.z4d(tmp0_desc, 2, tmp2_cached[2].u(), value.k5t_1);
|
|
1064
|
+
tmp1_output.s4d(tmp0_desc, 3, value.l5t_1);
|
|
1065
|
+
tmp1_output.s4d(tmp0_desc, 4, value.m5t_1);
|
|
1066
|
+
tmp1_output.p4d(tmp0_desc, 5, value.n5t_1);
|
|
1067
|
+
tmp1_output.b4e(tmp0_desc, 6, StringSerializer_getInstance(), value.o5t_1);
|
|
1068
|
+
tmp1_output.b4e(tmp0_desc, 7, $serializer_getInstance_2(), value.p5t_1);
|
|
1069
|
+
tmp1_output.j4c(tmp0_desc);
|
|
1070
|
+
};
|
|
1071
|
+
protoOf($serializer_2).w48 = function (encoder, value) {
|
|
1072
|
+
return this.h5t(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1073
|
+
};
|
|
1074
|
+
protoOf($serializer_2).x48 = function (decoder) {
|
|
1075
|
+
var tmp0_desc = this.g5t_1;
|
|
1068
1076
|
var tmp1_flag = true;
|
|
1069
1077
|
var tmp2_index = 0;
|
|
1070
1078
|
var tmp3_bitMask0 = 0;
|
|
@@ -1076,80 +1084,80 @@
|
|
|
1076
1084
|
var tmp9_local5 = false;
|
|
1077
1085
|
var tmp10_local6 = null;
|
|
1078
1086
|
var tmp11_local7 = null;
|
|
1079
|
-
var tmp12_input = decoder.
|
|
1080
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1081
|
-
if (tmp12_input.
|
|
1082
|
-
tmp4_local0 = tmp12_input.
|
|
1087
|
+
var tmp12_input = decoder.i4c(tmp0_desc);
|
|
1088
|
+
var tmp13_cached = Companion_getInstance_6().f5t_1;
|
|
1089
|
+
if (tmp12_input.y4c()) {
|
|
1090
|
+
tmp4_local0 = tmp12_input.s4c(tmp0_desc, 0);
|
|
1083
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1084
|
-
tmp5_local1 = tmp12_input.
|
|
1092
|
+
tmp5_local1 = tmp12_input.n4c(tmp0_desc, 1);
|
|
1085
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1086
|
-
tmp6_local2 = tmp12_input.
|
|
1094
|
+
tmp6_local2 = tmp12_input.u4c(tmp0_desc, 2, tmp13_cached[2].u(), tmp6_local2);
|
|
1087
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1088
|
-
tmp7_local3 = tmp12_input.
|
|
1096
|
+
tmp7_local3 = tmp12_input.n4c(tmp0_desc, 3);
|
|
1089
1097
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1090
|
-
tmp8_local4 = tmp12_input.
|
|
1098
|
+
tmp8_local4 = tmp12_input.n4c(tmp0_desc, 4);
|
|
1091
1099
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1092
|
-
tmp9_local5 = tmp12_input.
|
|
1100
|
+
tmp9_local5 = tmp12_input.k4c(tmp0_desc, 5);
|
|
1093
1101
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1094
|
-
tmp10_local6 = tmp12_input.
|
|
1102
|
+
tmp10_local6 = tmp12_input.w4c(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1095
1103
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1096
|
-
tmp11_local7 = tmp12_input.
|
|
1104
|
+
tmp11_local7 = tmp12_input.w4c(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1097
1105
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1098
1106
|
} else
|
|
1099
1107
|
while (tmp1_flag) {
|
|
1100
|
-
tmp2_index = tmp12_input.
|
|
1108
|
+
tmp2_index = tmp12_input.z4c(tmp0_desc);
|
|
1101
1109
|
switch (tmp2_index) {
|
|
1102
1110
|
case -1:
|
|
1103
1111
|
tmp1_flag = false;
|
|
1104
1112
|
break;
|
|
1105
1113
|
case 0:
|
|
1106
|
-
tmp4_local0 = tmp12_input.
|
|
1114
|
+
tmp4_local0 = tmp12_input.s4c(tmp0_desc, 0);
|
|
1107
1115
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1108
1116
|
break;
|
|
1109
1117
|
case 1:
|
|
1110
|
-
tmp5_local1 = tmp12_input.
|
|
1118
|
+
tmp5_local1 = tmp12_input.n4c(tmp0_desc, 1);
|
|
1111
1119
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1112
1120
|
break;
|
|
1113
1121
|
case 2:
|
|
1114
|
-
tmp6_local2 = tmp12_input.
|
|
1122
|
+
tmp6_local2 = tmp12_input.u4c(tmp0_desc, 2, tmp13_cached[2].u(), tmp6_local2);
|
|
1115
1123
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1116
1124
|
break;
|
|
1117
1125
|
case 3:
|
|
1118
|
-
tmp7_local3 = tmp12_input.
|
|
1126
|
+
tmp7_local3 = tmp12_input.n4c(tmp0_desc, 3);
|
|
1119
1127
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1120
1128
|
break;
|
|
1121
1129
|
case 4:
|
|
1122
|
-
tmp8_local4 = tmp12_input.
|
|
1130
|
+
tmp8_local4 = tmp12_input.n4c(tmp0_desc, 4);
|
|
1123
1131
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1124
1132
|
break;
|
|
1125
1133
|
case 5:
|
|
1126
|
-
tmp9_local5 = tmp12_input.
|
|
1134
|
+
tmp9_local5 = tmp12_input.k4c(tmp0_desc, 5);
|
|
1127
1135
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1128
1136
|
break;
|
|
1129
1137
|
case 6:
|
|
1130
|
-
tmp10_local6 = tmp12_input.
|
|
1138
|
+
tmp10_local6 = tmp12_input.w4c(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1131
1139
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1132
1140
|
break;
|
|
1133
1141
|
case 7:
|
|
1134
|
-
tmp11_local7 = tmp12_input.
|
|
1142
|
+
tmp11_local7 = tmp12_input.w4c(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1135
1143
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1136
1144
|
break;
|
|
1137
1145
|
default:
|
|
1138
1146
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1139
1147
|
}
|
|
1140
1148
|
}
|
|
1141
|
-
tmp12_input.
|
|
1149
|
+
tmp12_input.j4c(tmp0_desc);
|
|
1142
1150
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1143
1151
|
};
|
|
1144
|
-
protoOf($serializer_2).
|
|
1145
|
-
return this.
|
|
1152
|
+
protoOf($serializer_2).v48 = function () {
|
|
1153
|
+
return this.g5t_1;
|
|
1146
1154
|
};
|
|
1147
|
-
protoOf($serializer_2).
|
|
1148
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1155
|
+
protoOf($serializer_2).o4k = function () {
|
|
1156
|
+
var tmp0_cached = Companion_getInstance_6().f5t_1;
|
|
1149
1157
|
// Inline function 'kotlin.arrayOf' call
|
|
1150
1158
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1151
1159
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1152
|
-
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2], IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
|
|
1160
|
+
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2].u(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
|
|
1153
1161
|
};
|
|
1154
1162
|
var $serializer_instance_1;
|
|
1155
1163
|
function $serializer_getInstance_1() {
|
|
@@ -1159,16 +1167,16 @@
|
|
|
1159
1167
|
}
|
|
1160
1168
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1161
1169
|
if (!(255 === (255 & seen0))) {
|
|
1162
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1170
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().g5t_1);
|
|
1163
1171
|
}
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1170
|
-
$this.
|
|
1171
|
-
$this.
|
|
1172
|
+
$this.i5t_1 = apiKey;
|
|
1173
|
+
$this.j5t_1 = n;
|
|
1174
|
+
$this.k5t_1 = length;
|
|
1175
|
+
$this.l5t_1 = min;
|
|
1176
|
+
$this.m5t_1 = max;
|
|
1177
|
+
$this.n5t_1 = replacement;
|
|
1178
|
+
$this.o5t_1 = ticketId;
|
|
1179
|
+
$this.p5t_1 = userData;
|
|
1172
1180
|
return $this;
|
|
1173
1181
|
}
|
|
1174
1182
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1176,27 +1184,27 @@
|
|
|
1176
1184
|
}
|
|
1177
1185
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1178
1186
|
Companion_getInstance_6();
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
+
this.i5t_1 = apiKey;
|
|
1188
|
+
this.j5t_1 = n;
|
|
1189
|
+
this.k5t_1 = length;
|
|
1190
|
+
this.l5t_1 = min;
|
|
1191
|
+
this.m5t_1 = max;
|
|
1192
|
+
this.n5t_1 = replacement;
|
|
1193
|
+
this.o5t_1 = ticketId;
|
|
1194
|
+
this.p5t_1 = userData;
|
|
1187
1195
|
}
|
|
1188
1196
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1189
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1197
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.i5t_1 + ', n=' + this.j5t_1 + ', length=' + toString(this.k5t_1) + ', min=' + this.l5t_1 + ', max=' + this.m5t_1 + ', replacement=' + this.n5t_1 + ', ticketId=' + this.o5t_1 + ', userData=' + toString_0(this.p5t_1) + ')';
|
|
1190
1198
|
};
|
|
1191
1199
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1192
|
-
var result = getStringHashCode(this.
|
|
1193
|
-
result = imul(result, 31) + this.
|
|
1194
|
-
result = imul(result, 31) + hashCode(this.
|
|
1195
|
-
result = imul(result, 31) + this.
|
|
1196
|
-
result = imul(result, 31) + this.
|
|
1197
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1198
|
-
result = imul(result, 31) + (this.
|
|
1199
|
-
result = imul(result, 31) + (this.
|
|
1200
|
+
var result = getStringHashCode(this.i5t_1);
|
|
1201
|
+
result = imul(result, 31) + this.j5t_1 | 0;
|
|
1202
|
+
result = imul(result, 31) + hashCode(this.k5t_1) | 0;
|
|
1203
|
+
result = imul(result, 31) + this.l5t_1 | 0;
|
|
1204
|
+
result = imul(result, 31) + this.m5t_1 | 0;
|
|
1205
|
+
result = imul(result, 31) + getBooleanHashCode(this.n5t_1) | 0;
|
|
1206
|
+
result = imul(result, 31) + (this.o5t_1 == null ? 0 : getStringHashCode(this.o5t_1)) | 0;
|
|
1207
|
+
result = imul(result, 31) + (this.p5t_1 == null ? 0 : this.p5t_1.hashCode()) | 0;
|
|
1200
1208
|
return result;
|
|
1201
1209
|
};
|
|
1202
1210
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1205,21 +1213,21 @@
|
|
|
1205
1213
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1206
1214
|
return false;
|
|
1207
1215
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1208
|
-
if (!(this.
|
|
1216
|
+
if (!(this.i5t_1 === tmp0_other_with_cast.i5t_1))
|
|
1209
1217
|
return false;
|
|
1210
|
-
if (!(this.
|
|
1218
|
+
if (!(this.j5t_1 === tmp0_other_with_cast.j5t_1))
|
|
1211
1219
|
return false;
|
|
1212
|
-
if (!equals(this.
|
|
1220
|
+
if (!equals(this.k5t_1, tmp0_other_with_cast.k5t_1))
|
|
1213
1221
|
return false;
|
|
1214
|
-
if (!(this.
|
|
1222
|
+
if (!(this.l5t_1 === tmp0_other_with_cast.l5t_1))
|
|
1215
1223
|
return false;
|
|
1216
|
-
if (!(this.
|
|
1224
|
+
if (!(this.m5t_1 === tmp0_other_with_cast.m5t_1))
|
|
1217
1225
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1226
|
+
if (!(this.n5t_1 === tmp0_other_with_cast.n5t_1))
|
|
1219
1227
|
return false;
|
|
1220
|
-
if (!(this.
|
|
1228
|
+
if (!(this.o5t_1 == tmp0_other_with_cast.o5t_1))
|
|
1221
1229
|
return false;
|
|
1222
|
-
if (!equals(this.
|
|
1230
|
+
if (!equals(this.p5t_1, tmp0_other_with_cast.p5t_1))
|
|
1223
1231
|
return false;
|
|
1224
1232
|
return true;
|
|
1225
1233
|
};
|
|
@@ -1232,59 +1240,59 @@
|
|
|
1232
1240
|
function $serializer_3() {
|
|
1233
1241
|
$serializer_instance_2 = this;
|
|
1234
1242
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1235
|
-
tmp0_serialDesc.
|
|
1236
|
-
tmp0_serialDesc.
|
|
1237
|
-
this.
|
|
1238
|
-
}
|
|
1239
|
-
protoOf($serializer_3).
|
|
1240
|
-
var tmp0_desc = this.
|
|
1241
|
-
var tmp1_output = encoder.
|
|
1242
|
-
tmp1_output.
|
|
1243
|
-
tmp1_output.
|
|
1244
|
-
tmp1_output.
|
|
1245
|
-
};
|
|
1246
|
-
protoOf($serializer_3).
|
|
1247
|
-
return this.
|
|
1248
|
-
};
|
|
1249
|
-
protoOf($serializer_3).
|
|
1250
|
-
var tmp0_desc = this.
|
|
1243
|
+
tmp0_serialDesc.z4j('id', false);
|
|
1244
|
+
tmp0_serialDesc.z4j('count', false);
|
|
1245
|
+
this.q5t_1 = tmp0_serialDesc;
|
|
1246
|
+
}
|
|
1247
|
+
protoOf($serializer_3).r5t = function (encoder, value) {
|
|
1248
|
+
var tmp0_desc = this.q5t_1;
|
|
1249
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
1250
|
+
tmp1_output.x4d(tmp0_desc, 0, value.s5t_1);
|
|
1251
|
+
tmp1_output.s4d(tmp0_desc, 1, value.t5t_1);
|
|
1252
|
+
tmp1_output.j4c(tmp0_desc);
|
|
1253
|
+
};
|
|
1254
|
+
protoOf($serializer_3).w48 = function (encoder, value) {
|
|
1255
|
+
return this.r5t(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1256
|
+
};
|
|
1257
|
+
protoOf($serializer_3).x48 = function (decoder) {
|
|
1258
|
+
var tmp0_desc = this.q5t_1;
|
|
1251
1259
|
var tmp1_flag = true;
|
|
1252
1260
|
var tmp2_index = 0;
|
|
1253
1261
|
var tmp3_bitMask0 = 0;
|
|
1254
1262
|
var tmp4_local0 = null;
|
|
1255
1263
|
var tmp5_local1 = 0;
|
|
1256
|
-
var tmp6_input = decoder.
|
|
1257
|
-
if (tmp6_input.
|
|
1258
|
-
tmp4_local0 = tmp6_input.
|
|
1264
|
+
var tmp6_input = decoder.i4c(tmp0_desc);
|
|
1265
|
+
if (tmp6_input.y4c()) {
|
|
1266
|
+
tmp4_local0 = tmp6_input.s4c(tmp0_desc, 0);
|
|
1259
1267
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1260
|
-
tmp5_local1 = tmp6_input.
|
|
1268
|
+
tmp5_local1 = tmp6_input.n4c(tmp0_desc, 1);
|
|
1261
1269
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1262
1270
|
} else
|
|
1263
1271
|
while (tmp1_flag) {
|
|
1264
|
-
tmp2_index = tmp6_input.
|
|
1272
|
+
tmp2_index = tmp6_input.z4c(tmp0_desc);
|
|
1265
1273
|
switch (tmp2_index) {
|
|
1266
1274
|
case -1:
|
|
1267
1275
|
tmp1_flag = false;
|
|
1268
1276
|
break;
|
|
1269
1277
|
case 0:
|
|
1270
|
-
tmp4_local0 = tmp6_input.
|
|
1278
|
+
tmp4_local0 = tmp6_input.s4c(tmp0_desc, 0);
|
|
1271
1279
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1272
1280
|
break;
|
|
1273
1281
|
case 1:
|
|
1274
|
-
tmp5_local1 = tmp6_input.
|
|
1282
|
+
tmp5_local1 = tmp6_input.n4c(tmp0_desc, 1);
|
|
1275
1283
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1276
1284
|
break;
|
|
1277
1285
|
default:
|
|
1278
1286
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1279
1287
|
}
|
|
1280
1288
|
}
|
|
1281
|
-
tmp6_input.
|
|
1289
|
+
tmp6_input.j4c(tmp0_desc);
|
|
1282
1290
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1283
1291
|
};
|
|
1284
|
-
protoOf($serializer_3).
|
|
1285
|
-
return this.
|
|
1292
|
+
protoOf($serializer_3).v48 = function () {
|
|
1293
|
+
return this.q5t_1;
|
|
1286
1294
|
};
|
|
1287
|
-
protoOf($serializer_3).
|
|
1295
|
+
protoOf($serializer_3).o4k = function () {
|
|
1288
1296
|
// Inline function 'kotlin.arrayOf' call
|
|
1289
1297
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1290
1298
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1298,25 +1306,25 @@
|
|
|
1298
1306
|
}
|
|
1299
1307
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1300
1308
|
if (!(3 === (3 & seen0))) {
|
|
1301
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1309
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().q5t_1);
|
|
1302
1310
|
}
|
|
1303
|
-
$this.
|
|
1304
|
-
$this.
|
|
1311
|
+
$this.s5t_1 = id;
|
|
1312
|
+
$this.t5t_1 = count;
|
|
1305
1313
|
return $this;
|
|
1306
1314
|
}
|
|
1307
1315
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1308
1316
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1309
1317
|
}
|
|
1310
1318
|
function CardDecksUserDataDto(id, count) {
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1319
|
+
this.s5t_1 = id;
|
|
1320
|
+
this.t5t_1 = count;
|
|
1313
1321
|
}
|
|
1314
1322
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1315
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1323
|
+
return 'CardDecksUserDataDto(id=' + this.s5t_1 + ', count=' + this.t5t_1 + ')';
|
|
1316
1324
|
};
|
|
1317
1325
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1318
|
-
var result = getStringHashCode(this.
|
|
1319
|
-
result = imul(result, 31) + this.
|
|
1326
|
+
var result = getStringHashCode(this.s5t_1);
|
|
1327
|
+
result = imul(result, 31) + this.t5t_1 | 0;
|
|
1320
1328
|
return result;
|
|
1321
1329
|
};
|
|
1322
1330
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1325,15 +1333,15 @@
|
|
|
1325
1333
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1326
1334
|
return false;
|
|
1327
1335
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1328
|
-
if (!(this.
|
|
1336
|
+
if (!(this.s5t_1 === tmp0_other_with_cast.s5t_1))
|
|
1329
1337
|
return false;
|
|
1330
|
-
if (!(this.
|
|
1338
|
+
if (!(this.t5t_1 === tmp0_other_with_cast.t5t_1))
|
|
1331
1339
|
return false;
|
|
1332
1340
|
return true;
|
|
1333
1341
|
};
|
|
1334
1342
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1335
1343
|
$serializer_4.call($this);
|
|
1336
|
-
$this.
|
|
1344
|
+
$this.v5t_1 = typeSerial0;
|
|
1337
1345
|
return $this;
|
|
1338
1346
|
}
|
|
1339
1347
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1342,16 +1350,16 @@
|
|
|
1342
1350
|
function Companion_5() {
|
|
1343
1351
|
Companion_instance_7 = this;
|
|
1344
1352
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1345
|
-
tmp0_serialDesc.
|
|
1346
|
-
tmp0_serialDesc.
|
|
1347
|
-
tmp0_serialDesc.
|
|
1348
|
-
this.
|
|
1353
|
+
tmp0_serialDesc.z4j('jsonrpc', false);
|
|
1354
|
+
tmp0_serialDesc.z4j('result', false);
|
|
1355
|
+
tmp0_serialDesc.z4j('id', false);
|
|
1356
|
+
this.w5t_1 = tmp0_serialDesc;
|
|
1349
1357
|
}
|
|
1350
|
-
protoOf(Companion_5).
|
|
1358
|
+
protoOf(Companion_5).z5s = function (typeSerial0) {
|
|
1351
1359
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1352
1360
|
};
|
|
1353
|
-
protoOf(Companion_5).
|
|
1354
|
-
return this.
|
|
1361
|
+
protoOf(Companion_5).z4k = function (typeParamsSerializers) {
|
|
1362
|
+
return this.z5s(typeParamsSerializers[0]);
|
|
1355
1363
|
};
|
|
1356
1364
|
var Companion_instance_7;
|
|
1357
1365
|
function Companion_getInstance_8() {
|
|
@@ -1361,86 +1369,86 @@
|
|
|
1361
1369
|
}
|
|
1362
1370
|
function $serializer_4() {
|
|
1363
1371
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1364
|
-
tmp0_serialDesc.
|
|
1365
|
-
tmp0_serialDesc.
|
|
1366
|
-
tmp0_serialDesc.
|
|
1367
|
-
this.
|
|
1368
|
-
}
|
|
1369
|
-
protoOf($serializer_4).
|
|
1370
|
-
var tmp0_desc = this.
|
|
1371
|
-
var tmp1_output = encoder.
|
|
1372
|
-
tmp1_output.
|
|
1373
|
-
tmp1_output.
|
|
1374
|
-
tmp1_output.
|
|
1375
|
-
tmp1_output.
|
|
1376
|
-
};
|
|
1377
|
-
protoOf($serializer_4).
|
|
1378
|
-
return this.
|
|
1379
|
-
};
|
|
1380
|
-
protoOf($serializer_4).
|
|
1381
|
-
var tmp0_desc = this.
|
|
1372
|
+
tmp0_serialDesc.z4j('jsonrpc', false);
|
|
1373
|
+
tmp0_serialDesc.z4j('result', false);
|
|
1374
|
+
tmp0_serialDesc.z4j('id', false);
|
|
1375
|
+
this.u5t_1 = tmp0_serialDesc;
|
|
1376
|
+
}
|
|
1377
|
+
protoOf($serializer_4).x5t = function (encoder, value) {
|
|
1378
|
+
var tmp0_desc = this.u5t_1;
|
|
1379
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
1380
|
+
tmp1_output.x4d(tmp0_desc, 0, value.y5t_1);
|
|
1381
|
+
tmp1_output.z4d(tmp0_desc, 1, this.v5t_1, value.z5t_1);
|
|
1382
|
+
tmp1_output.x4d(tmp0_desc, 2, value.a5u_1);
|
|
1383
|
+
tmp1_output.j4c(tmp0_desc);
|
|
1384
|
+
};
|
|
1385
|
+
protoOf($serializer_4).w48 = function (encoder, value) {
|
|
1386
|
+
return this.x5t(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1387
|
+
};
|
|
1388
|
+
protoOf($serializer_4).x48 = function (decoder) {
|
|
1389
|
+
var tmp0_desc = this.u5t_1;
|
|
1382
1390
|
var tmp1_flag = true;
|
|
1383
1391
|
var tmp2_index = 0;
|
|
1384
1392
|
var tmp3_bitMask0 = 0;
|
|
1385
1393
|
var tmp4_local0 = null;
|
|
1386
1394
|
var tmp5_local1 = null;
|
|
1387
1395
|
var tmp6_local2 = null;
|
|
1388
|
-
var tmp7_input = decoder.
|
|
1389
|
-
if (tmp7_input.
|
|
1390
|
-
tmp4_local0 = tmp7_input.
|
|
1396
|
+
var tmp7_input = decoder.i4c(tmp0_desc);
|
|
1397
|
+
if (tmp7_input.y4c()) {
|
|
1398
|
+
tmp4_local0 = tmp7_input.s4c(tmp0_desc, 0);
|
|
1391
1399
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1392
|
-
tmp5_local1 = tmp7_input.
|
|
1400
|
+
tmp5_local1 = tmp7_input.u4c(tmp0_desc, 1, this.v5t_1, tmp5_local1);
|
|
1393
1401
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1394
|
-
tmp6_local2 = tmp7_input.
|
|
1402
|
+
tmp6_local2 = tmp7_input.s4c(tmp0_desc, 2);
|
|
1395
1403
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1396
1404
|
} else
|
|
1397
1405
|
while (tmp1_flag) {
|
|
1398
|
-
tmp2_index = tmp7_input.
|
|
1406
|
+
tmp2_index = tmp7_input.z4c(tmp0_desc);
|
|
1399
1407
|
switch (tmp2_index) {
|
|
1400
1408
|
case -1:
|
|
1401
1409
|
tmp1_flag = false;
|
|
1402
1410
|
break;
|
|
1403
1411
|
case 0:
|
|
1404
|
-
tmp4_local0 = tmp7_input.
|
|
1412
|
+
tmp4_local0 = tmp7_input.s4c(tmp0_desc, 0);
|
|
1405
1413
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1406
1414
|
break;
|
|
1407
1415
|
case 1:
|
|
1408
|
-
tmp5_local1 = tmp7_input.
|
|
1416
|
+
tmp5_local1 = tmp7_input.u4c(tmp0_desc, 1, this.v5t_1, tmp5_local1);
|
|
1409
1417
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1410
1418
|
break;
|
|
1411
1419
|
case 2:
|
|
1412
|
-
tmp6_local2 = tmp7_input.
|
|
1420
|
+
tmp6_local2 = tmp7_input.s4c(tmp0_desc, 2);
|
|
1413
1421
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1414
1422
|
break;
|
|
1415
1423
|
default:
|
|
1416
1424
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1417
1425
|
}
|
|
1418
1426
|
}
|
|
1419
|
-
tmp7_input.
|
|
1427
|
+
tmp7_input.j4c(tmp0_desc);
|
|
1420
1428
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1421
1429
|
};
|
|
1422
|
-
protoOf($serializer_4).
|
|
1423
|
-
return this.
|
|
1430
|
+
protoOf($serializer_4).v48 = function () {
|
|
1431
|
+
return this.u5t_1;
|
|
1424
1432
|
};
|
|
1425
|
-
protoOf($serializer_4).
|
|
1433
|
+
protoOf($serializer_4).o4k = function () {
|
|
1426
1434
|
// Inline function 'kotlin.arrayOf' call
|
|
1427
1435
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1428
1436
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1429
|
-
return [StringSerializer_getInstance(), this.
|
|
1437
|
+
return [StringSerializer_getInstance(), this.v5t_1, StringSerializer_getInstance()];
|
|
1430
1438
|
};
|
|
1431
|
-
protoOf($serializer_4).
|
|
1439
|
+
protoOf($serializer_4).p4k = function () {
|
|
1432
1440
|
// Inline function 'kotlin.arrayOf' call
|
|
1433
1441
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1434
1442
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1435
|
-
return [this.
|
|
1443
|
+
return [this.v5t_1];
|
|
1436
1444
|
};
|
|
1437
1445
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1438
1446
|
if (!(7 === (7 & seen0))) {
|
|
1439
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1447
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().w5t_1);
|
|
1440
1448
|
}
|
|
1441
|
-
$this.
|
|
1442
|
-
$this.
|
|
1443
|
-
$this.
|
|
1449
|
+
$this.y5t_1 = jsonrpc;
|
|
1450
|
+
$this.z5t_1 = result;
|
|
1451
|
+
$this.a5u_1 = id;
|
|
1444
1452
|
return $this;
|
|
1445
1453
|
}
|
|
1446
1454
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1448,17 +1456,17 @@
|
|
|
1448
1456
|
}
|
|
1449
1457
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1450
1458
|
Companion_getInstance_8();
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1459
|
+
this.y5t_1 = jsonrpc;
|
|
1460
|
+
this.z5t_1 = result;
|
|
1461
|
+
this.a5u_1 = id;
|
|
1454
1462
|
}
|
|
1455
1463
|
protoOf(RandomResponseDto).toString = function () {
|
|
1456
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1464
|
+
return 'RandomResponseDto(jsonrpc=' + this.y5t_1 + ', result=' + toString(this.z5t_1) + ', id=' + this.a5u_1 + ')';
|
|
1457
1465
|
};
|
|
1458
1466
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1459
|
-
var result = getStringHashCode(this.
|
|
1460
|
-
result = imul(result, 31) + hashCode(this.
|
|
1461
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1467
|
+
var result = getStringHashCode(this.y5t_1);
|
|
1468
|
+
result = imul(result, 31) + hashCode(this.z5t_1) | 0;
|
|
1469
|
+
result = imul(result, 31) + getStringHashCode(this.a5u_1) | 0;
|
|
1462
1470
|
return result;
|
|
1463
1471
|
};
|
|
1464
1472
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1467,11 +1475,11 @@
|
|
|
1467
1475
|
if (!(other instanceof RandomResponseDto))
|
|
1468
1476
|
return false;
|
|
1469
1477
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1470
|
-
if (!(this.
|
|
1478
|
+
if (!(this.y5t_1 === tmp0_other_with_cast.y5t_1))
|
|
1471
1479
|
return false;
|
|
1472
|
-
if (!equals(this.
|
|
1480
|
+
if (!equals(this.z5t_1, tmp0_other_with_cast.z5t_1))
|
|
1473
1481
|
return false;
|
|
1474
|
-
if (!(this.
|
|
1482
|
+
if (!(this.a5u_1 === tmp0_other_with_cast.a5u_1))
|
|
1475
1483
|
return false;
|
|
1476
1484
|
return true;
|
|
1477
1485
|
};
|
|
@@ -1484,30 +1492,30 @@
|
|
|
1484
1492
|
function $serializer_5() {
|
|
1485
1493
|
$serializer_instance_3 = this;
|
|
1486
1494
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1487
|
-
tmp0_serialDesc.
|
|
1488
|
-
tmp0_serialDesc.
|
|
1489
|
-
tmp0_serialDesc.
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
tmp0_serialDesc.
|
|
1492
|
-
tmp0_serialDesc.
|
|
1493
|
-
this.
|
|
1494
|
-
}
|
|
1495
|
-
protoOf($serializer_5).
|
|
1496
|
-
var tmp0_desc = this.
|
|
1497
|
-
var tmp1_output = encoder.
|
|
1498
|
-
tmp1_output.
|
|
1499
|
-
tmp1_output.
|
|
1500
|
-
tmp1_output.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
tmp1_output.
|
|
1504
|
-
tmp1_output.
|
|
1505
|
-
};
|
|
1506
|
-
protoOf($serializer_5).
|
|
1507
|
-
return this.
|
|
1508
|
-
};
|
|
1509
|
-
protoOf($serializer_5).
|
|
1510
|
-
var tmp0_desc = this.
|
|
1495
|
+
tmp0_serialDesc.z4j('random', false);
|
|
1496
|
+
tmp0_serialDesc.z4j('signature', false);
|
|
1497
|
+
tmp0_serialDesc.z4j('bitsUsed', false);
|
|
1498
|
+
tmp0_serialDesc.z4j('bitsLeft', false);
|
|
1499
|
+
tmp0_serialDesc.z4j('requestsLeft', false);
|
|
1500
|
+
tmp0_serialDesc.z4j('advisoryDelay', false);
|
|
1501
|
+
this.b5u_1 = tmp0_serialDesc;
|
|
1502
|
+
}
|
|
1503
|
+
protoOf($serializer_5).c5u = function (encoder, value) {
|
|
1504
|
+
var tmp0_desc = this.b5u_1;
|
|
1505
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
1506
|
+
tmp1_output.z4d(tmp0_desc, 0, $serializer_getInstance_4(), value.d5u_1);
|
|
1507
|
+
tmp1_output.b4e(tmp0_desc, 1, StringSerializer_getInstance(), value.e5u_1);
|
|
1508
|
+
tmp1_output.b4e(tmp0_desc, 2, IntSerializer_getInstance(), value.f5u_1);
|
|
1509
|
+
tmp1_output.b4e(tmp0_desc, 3, IntSerializer_getInstance(), value.g5u_1);
|
|
1510
|
+
tmp1_output.b4e(tmp0_desc, 4, IntSerializer_getInstance(), value.h5u_1);
|
|
1511
|
+
tmp1_output.b4e(tmp0_desc, 5, IntSerializer_getInstance(), value.i5u_1);
|
|
1512
|
+
tmp1_output.j4c(tmp0_desc);
|
|
1513
|
+
};
|
|
1514
|
+
protoOf($serializer_5).w48 = function (encoder, value) {
|
|
1515
|
+
return this.c5u(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1516
|
+
};
|
|
1517
|
+
protoOf($serializer_5).x48 = function (decoder) {
|
|
1518
|
+
var tmp0_desc = this.b5u_1;
|
|
1511
1519
|
var tmp1_flag = true;
|
|
1512
1520
|
var tmp2_index = 0;
|
|
1513
1521
|
var tmp3_bitMask0 = 0;
|
|
@@ -1517,62 +1525,62 @@
|
|
|
1517
1525
|
var tmp7_local3 = null;
|
|
1518
1526
|
var tmp8_local4 = null;
|
|
1519
1527
|
var tmp9_local5 = null;
|
|
1520
|
-
var tmp10_input = decoder.
|
|
1521
|
-
if (tmp10_input.
|
|
1522
|
-
tmp4_local0 = tmp10_input.
|
|
1528
|
+
var tmp10_input = decoder.i4c(tmp0_desc);
|
|
1529
|
+
if (tmp10_input.y4c()) {
|
|
1530
|
+
tmp4_local0 = tmp10_input.u4c(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1523
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1524
|
-
tmp5_local1 = tmp10_input.
|
|
1532
|
+
tmp5_local1 = tmp10_input.w4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1525
1533
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1526
|
-
tmp6_local2 = tmp10_input.
|
|
1534
|
+
tmp6_local2 = tmp10_input.w4c(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1527
1535
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1528
|
-
tmp7_local3 = tmp10_input.
|
|
1536
|
+
tmp7_local3 = tmp10_input.w4c(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1529
1537
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1530
|
-
tmp8_local4 = tmp10_input.
|
|
1538
|
+
tmp8_local4 = tmp10_input.w4c(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1531
1539
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1532
|
-
tmp9_local5 = tmp10_input.
|
|
1540
|
+
tmp9_local5 = tmp10_input.w4c(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1533
1541
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1534
1542
|
} else
|
|
1535
1543
|
while (tmp1_flag) {
|
|
1536
|
-
tmp2_index = tmp10_input.
|
|
1544
|
+
tmp2_index = tmp10_input.z4c(tmp0_desc);
|
|
1537
1545
|
switch (tmp2_index) {
|
|
1538
1546
|
case -1:
|
|
1539
1547
|
tmp1_flag = false;
|
|
1540
1548
|
break;
|
|
1541
1549
|
case 0:
|
|
1542
|
-
tmp4_local0 = tmp10_input.
|
|
1550
|
+
tmp4_local0 = tmp10_input.u4c(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1543
1551
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1544
1552
|
break;
|
|
1545
1553
|
case 1:
|
|
1546
|
-
tmp5_local1 = tmp10_input.
|
|
1554
|
+
tmp5_local1 = tmp10_input.w4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1547
1555
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1548
1556
|
break;
|
|
1549
1557
|
case 2:
|
|
1550
|
-
tmp6_local2 = tmp10_input.
|
|
1558
|
+
tmp6_local2 = tmp10_input.w4c(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1551
1559
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1552
1560
|
break;
|
|
1553
1561
|
case 3:
|
|
1554
|
-
tmp7_local3 = tmp10_input.
|
|
1562
|
+
tmp7_local3 = tmp10_input.w4c(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1555
1563
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1556
1564
|
break;
|
|
1557
1565
|
case 4:
|
|
1558
|
-
tmp8_local4 = tmp10_input.
|
|
1566
|
+
tmp8_local4 = tmp10_input.w4c(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1559
1567
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1560
1568
|
break;
|
|
1561
1569
|
case 5:
|
|
1562
|
-
tmp9_local5 = tmp10_input.
|
|
1570
|
+
tmp9_local5 = tmp10_input.w4c(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1563
1571
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1564
1572
|
break;
|
|
1565
1573
|
default:
|
|
1566
1574
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1567
1575
|
}
|
|
1568
1576
|
}
|
|
1569
|
-
tmp10_input.
|
|
1577
|
+
tmp10_input.j4c(tmp0_desc);
|
|
1570
1578
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1571
1579
|
};
|
|
1572
|
-
protoOf($serializer_5).
|
|
1573
|
-
return this.
|
|
1580
|
+
protoOf($serializer_5).v48 = function () {
|
|
1581
|
+
return this.b5u_1;
|
|
1574
1582
|
};
|
|
1575
|
-
protoOf($serializer_5).
|
|
1583
|
+
protoOf($serializer_5).o4k = function () {
|
|
1576
1584
|
// Inline function 'kotlin.arrayOf' call
|
|
1577
1585
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1578
1586
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1586,37 +1594,37 @@
|
|
|
1586
1594
|
}
|
|
1587
1595
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1588
1596
|
if (!(63 === (63 & seen0))) {
|
|
1589
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1597
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().b5u_1);
|
|
1590
1598
|
}
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1595
|
-
$this.
|
|
1596
|
-
$this.
|
|
1599
|
+
$this.d5u_1 = random;
|
|
1600
|
+
$this.e5u_1 = signature;
|
|
1601
|
+
$this.f5u_1 = bitsUsed;
|
|
1602
|
+
$this.g5u_1 = bitsLeft;
|
|
1603
|
+
$this.h5u_1 = requestsLeft;
|
|
1604
|
+
$this.i5u_1 = advisoryDelay;
|
|
1597
1605
|
return $this;
|
|
1598
1606
|
}
|
|
1599
1607
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1600
1608
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1601
1609
|
}
|
|
1602
1610
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1611
|
+
this.d5u_1 = random;
|
|
1612
|
+
this.e5u_1 = signature;
|
|
1613
|
+
this.f5u_1 = bitsUsed;
|
|
1614
|
+
this.g5u_1 = bitsLeft;
|
|
1615
|
+
this.h5u_1 = requestsLeft;
|
|
1616
|
+
this.i5u_1 = advisoryDelay;
|
|
1609
1617
|
}
|
|
1610
1618
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1611
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1619
|
+
return 'IntegerSequencesResultDto(random=' + this.d5u_1.toString() + ', signature=' + this.e5u_1 + ', bitsUsed=' + this.f5u_1 + ', bitsLeft=' + this.g5u_1 + ', requestsLeft=' + this.h5u_1 + ', advisoryDelay=' + this.i5u_1 + ')';
|
|
1612
1620
|
};
|
|
1613
1621
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1614
|
-
var result = this.
|
|
1615
|
-
result = imul(result, 31) + (this.
|
|
1616
|
-
result = imul(result, 31) + (this.
|
|
1617
|
-
result = imul(result, 31) + (this.
|
|
1618
|
-
result = imul(result, 31) + (this.
|
|
1619
|
-
result = imul(result, 31) + (this.
|
|
1622
|
+
var result = this.d5u_1.hashCode();
|
|
1623
|
+
result = imul(result, 31) + (this.e5u_1 == null ? 0 : getStringHashCode(this.e5u_1)) | 0;
|
|
1624
|
+
result = imul(result, 31) + (this.f5u_1 == null ? 0 : this.f5u_1) | 0;
|
|
1625
|
+
result = imul(result, 31) + (this.g5u_1 == null ? 0 : this.g5u_1) | 0;
|
|
1626
|
+
result = imul(result, 31) + (this.h5u_1 == null ? 0 : this.h5u_1) | 0;
|
|
1627
|
+
result = imul(result, 31) + (this.i5u_1 == null ? 0 : this.i5u_1) | 0;
|
|
1620
1628
|
return result;
|
|
1621
1629
|
};
|
|
1622
1630
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1625,27 +1633,31 @@
|
|
|
1625
1633
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1626
1634
|
return false;
|
|
1627
1635
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1628
|
-
if (!this.
|
|
1636
|
+
if (!this.d5u_1.equals(tmp0_other_with_cast.d5u_1))
|
|
1629
1637
|
return false;
|
|
1630
|
-
if (!(this.
|
|
1638
|
+
if (!(this.e5u_1 == tmp0_other_with_cast.e5u_1))
|
|
1631
1639
|
return false;
|
|
1632
|
-
if (!(this.
|
|
1640
|
+
if (!(this.f5u_1 == tmp0_other_with_cast.f5u_1))
|
|
1633
1641
|
return false;
|
|
1634
|
-
if (!(this.
|
|
1642
|
+
if (!(this.g5u_1 == tmp0_other_with_cast.g5u_1))
|
|
1635
1643
|
return false;
|
|
1636
|
-
if (!(this.
|
|
1644
|
+
if (!(this.h5u_1 == tmp0_other_with_cast.h5u_1))
|
|
1637
1645
|
return false;
|
|
1638
|
-
if (!(this.
|
|
1646
|
+
if (!(this.i5u_1 == tmp0_other_with_cast.i5u_1))
|
|
1639
1647
|
return false;
|
|
1640
1648
|
return true;
|
|
1641
1649
|
};
|
|
1650
|
+
function RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez() {
|
|
1651
|
+
return new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance()));
|
|
1652
|
+
}
|
|
1642
1653
|
function Companion_7() {
|
|
1643
1654
|
Companion_instance_9 = this;
|
|
1644
1655
|
var tmp = this;
|
|
1656
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1645
1657
|
// Inline function 'kotlin.arrayOf' call
|
|
1646
1658
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1647
1659
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1648
|
-
tmp.
|
|
1660
|
+
tmp.j5u_1 = [lazy(tmp_0, RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez), null, null];
|
|
1649
1661
|
}
|
|
1650
1662
|
var Companion_instance_9;
|
|
1651
1663
|
function Companion_getInstance_10() {
|
|
@@ -1656,74 +1668,74 @@
|
|
|
1656
1668
|
function $serializer_6() {
|
|
1657
1669
|
$serializer_instance_4 = this;
|
|
1658
1670
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1659
|
-
tmp0_serialDesc.
|
|
1660
|
-
tmp0_serialDesc.
|
|
1661
|
-
tmp0_serialDesc.
|
|
1662
|
-
this.
|
|
1663
|
-
}
|
|
1664
|
-
protoOf($serializer_6).
|
|
1665
|
-
var tmp0_desc = this.
|
|
1666
|
-
var tmp1_output = encoder.
|
|
1667
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1668
|
-
tmp1_output.
|
|
1669
|
-
tmp1_output.
|
|
1670
|
-
tmp1_output.
|
|
1671
|
-
tmp1_output.
|
|
1672
|
-
};
|
|
1673
|
-
protoOf($serializer_6).
|
|
1674
|
-
return this.
|
|
1675
|
-
};
|
|
1676
|
-
protoOf($serializer_6).
|
|
1677
|
-
var tmp0_desc = this.
|
|
1671
|
+
tmp0_serialDesc.z4j('data', false);
|
|
1672
|
+
tmp0_serialDesc.z4j('completionTime', false);
|
|
1673
|
+
tmp0_serialDesc.z4j('ticketId', false);
|
|
1674
|
+
this.k5u_1 = tmp0_serialDesc;
|
|
1675
|
+
}
|
|
1676
|
+
protoOf($serializer_6).l5u = function (encoder, value) {
|
|
1677
|
+
var tmp0_desc = this.k5u_1;
|
|
1678
|
+
var tmp1_output = encoder.i4c(tmp0_desc);
|
|
1679
|
+
var tmp2_cached = Companion_getInstance_10().j5u_1;
|
|
1680
|
+
tmp1_output.z4d(tmp0_desc, 0, tmp2_cached[0].u(), value.m5u_1);
|
|
1681
|
+
tmp1_output.x4d(tmp0_desc, 1, value.n5u_1);
|
|
1682
|
+
tmp1_output.b4e(tmp0_desc, 2, StringSerializer_getInstance(), value.o5u_1);
|
|
1683
|
+
tmp1_output.j4c(tmp0_desc);
|
|
1684
|
+
};
|
|
1685
|
+
protoOf($serializer_6).w48 = function (encoder, value) {
|
|
1686
|
+
return this.l5u(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1687
|
+
};
|
|
1688
|
+
protoOf($serializer_6).x48 = function (decoder) {
|
|
1689
|
+
var tmp0_desc = this.k5u_1;
|
|
1678
1690
|
var tmp1_flag = true;
|
|
1679
1691
|
var tmp2_index = 0;
|
|
1680
1692
|
var tmp3_bitMask0 = 0;
|
|
1681
1693
|
var tmp4_local0 = null;
|
|
1682
1694
|
var tmp5_local1 = null;
|
|
1683
1695
|
var tmp6_local2 = null;
|
|
1684
|
-
var tmp7_input = decoder.
|
|
1685
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1686
|
-
if (tmp7_input.
|
|
1687
|
-
tmp4_local0 = tmp7_input.
|
|
1696
|
+
var tmp7_input = decoder.i4c(tmp0_desc);
|
|
1697
|
+
var tmp8_cached = Companion_getInstance_10().j5u_1;
|
|
1698
|
+
if (tmp7_input.y4c()) {
|
|
1699
|
+
tmp4_local0 = tmp7_input.u4c(tmp0_desc, 0, tmp8_cached[0].u(), tmp4_local0);
|
|
1688
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1689
|
-
tmp5_local1 = tmp7_input.
|
|
1701
|
+
tmp5_local1 = tmp7_input.s4c(tmp0_desc, 1);
|
|
1690
1702
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1691
|
-
tmp6_local2 = tmp7_input.
|
|
1703
|
+
tmp6_local2 = tmp7_input.w4c(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1692
1704
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1693
1705
|
} else
|
|
1694
1706
|
while (tmp1_flag) {
|
|
1695
|
-
tmp2_index = tmp7_input.
|
|
1707
|
+
tmp2_index = tmp7_input.z4c(tmp0_desc);
|
|
1696
1708
|
switch (tmp2_index) {
|
|
1697
1709
|
case -1:
|
|
1698
1710
|
tmp1_flag = false;
|
|
1699
1711
|
break;
|
|
1700
1712
|
case 0:
|
|
1701
|
-
tmp4_local0 = tmp7_input.
|
|
1713
|
+
tmp4_local0 = tmp7_input.u4c(tmp0_desc, 0, tmp8_cached[0].u(), tmp4_local0);
|
|
1702
1714
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1703
1715
|
break;
|
|
1704
1716
|
case 1:
|
|
1705
|
-
tmp5_local1 = tmp7_input.
|
|
1717
|
+
tmp5_local1 = tmp7_input.s4c(tmp0_desc, 1);
|
|
1706
1718
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1707
1719
|
break;
|
|
1708
1720
|
case 2:
|
|
1709
|
-
tmp6_local2 = tmp7_input.
|
|
1721
|
+
tmp6_local2 = tmp7_input.w4c(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1710
1722
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1711
1723
|
break;
|
|
1712
1724
|
default:
|
|
1713
1725
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1714
1726
|
}
|
|
1715
1727
|
}
|
|
1716
|
-
tmp7_input.
|
|
1728
|
+
tmp7_input.j4c(tmp0_desc);
|
|
1717
1729
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1718
1730
|
};
|
|
1719
|
-
protoOf($serializer_6).
|
|
1720
|
-
return this.
|
|
1731
|
+
protoOf($serializer_6).v48 = function () {
|
|
1732
|
+
return this.k5u_1;
|
|
1721
1733
|
};
|
|
1722
|
-
protoOf($serializer_6).
|
|
1734
|
+
protoOf($serializer_6).o4k = function () {
|
|
1723
1735
|
// Inline function 'kotlin.arrayOf' call
|
|
1724
1736
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1725
1737
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1726
|
-
return [Companion_getInstance_10().
|
|
1738
|
+
return [Companion_getInstance_10().j5u_1[0].u(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1727
1739
|
};
|
|
1728
1740
|
var $serializer_instance_4;
|
|
1729
1741
|
function $serializer_getInstance_4() {
|
|
@@ -1733,11 +1745,11 @@
|
|
|
1733
1745
|
}
|
|
1734
1746
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1735
1747
|
if (!(7 === (7 & seen0))) {
|
|
1736
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1748
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().k5u_1);
|
|
1737
1749
|
}
|
|
1738
|
-
$this.
|
|
1739
|
-
$this.
|
|
1740
|
-
$this.
|
|
1750
|
+
$this.m5u_1 = data;
|
|
1751
|
+
$this.n5u_1 = completionTime;
|
|
1752
|
+
$this.o5u_1 = ticketId;
|
|
1741
1753
|
return $this;
|
|
1742
1754
|
}
|
|
1743
1755
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1746,12 +1758,12 @@
|
|
|
1746
1758
|
function IntegerSequencesDataDto() {
|
|
1747
1759
|
}
|
|
1748
1760
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1749
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1761
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.m5u_1) + ', completionTime=' + this.n5u_1 + ', ticketId=' + this.o5u_1 + ')';
|
|
1750
1762
|
};
|
|
1751
1763
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1752
|
-
var result = hashCode(this.
|
|
1753
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1754
|
-
result = imul(result, 31) + (this.
|
|
1764
|
+
var result = hashCode(this.m5u_1);
|
|
1765
|
+
result = imul(result, 31) + getStringHashCode(this.n5u_1) | 0;
|
|
1766
|
+
result = imul(result, 31) + (this.o5u_1 == null ? 0 : getStringHashCode(this.o5u_1)) | 0;
|
|
1755
1767
|
return result;
|
|
1756
1768
|
};
|
|
1757
1769
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1760,11 +1772,11 @@
|
|
|
1760
1772
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1761
1773
|
return false;
|
|
1762
1774
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1763
|
-
if (!equals(this.
|
|
1775
|
+
if (!equals(this.m5u_1, tmp0_other_with_cast.m5u_1))
|
|
1764
1776
|
return false;
|
|
1765
|
-
if (!(this.
|
|
1777
|
+
if (!(this.n5u_1 === tmp0_other_with_cast.n5u_1))
|
|
1766
1778
|
return false;
|
|
1767
|
-
if (!(this.
|
|
1779
|
+
if (!(this.o5u_1 == tmp0_other_with_cast.o5u_1))
|
|
1768
1780
|
return false;
|
|
1769
1781
|
return true;
|
|
1770
1782
|
};
|
|
@@ -1775,15 +1787,15 @@
|
|
|
1775
1787
|
}
|
|
1776
1788
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1777
1789
|
var tmp = new $throwIfErrorCOROUTINE$($this, bodyAsJson, response, $completion);
|
|
1778
|
-
tmp.
|
|
1779
|
-
tmp.
|
|
1780
|
-
return tmp.
|
|
1790
|
+
tmp.n9_1 = Unit_instance;
|
|
1791
|
+
tmp.o9_1 = null;
|
|
1792
|
+
return tmp.t9();
|
|
1781
1793
|
}
|
|
1782
1794
|
function extractRandomResult($this, bodyAsJson) {
|
|
1783
1795
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1784
1796
|
}
|
|
1785
1797
|
function Companion_8() {
|
|
1786
|
-
this.
|
|
1798
|
+
this.d5v_1 = 52;
|
|
1787
1799
|
}
|
|
1788
1800
|
var Companion_instance_10;
|
|
1789
1801
|
function Companion_getInstance_11() {
|
|
@@ -1791,49 +1803,49 @@
|
|
|
1791
1803
|
}
|
|
1792
1804
|
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1793
1805
|
CoroutineImpl.call(this, resultContinuation);
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1801
|
-
}
|
|
1802
|
-
protoOf($getRandomCardDecksCOROUTINE$).
|
|
1803
|
-
var suspendResult = this.
|
|
1806
|
+
this.m5v_1 = _this__u8e3s4;
|
|
1807
|
+
this.n5v_1 = min;
|
|
1808
|
+
this.o5v_1 = max;
|
|
1809
|
+
this.p5v_1 = decksCount;
|
|
1810
|
+
this.q5v_1 = cardsCount;
|
|
1811
|
+
this.r5v_1 = userData;
|
|
1812
|
+
this.s5v_1 = signed;
|
|
1813
|
+
}
|
|
1814
|
+
protoOf($getRandomCardDecksCOROUTINE$).t9 = function () {
|
|
1815
|
+
var suspendResult = this.n9_1;
|
|
1804
1816
|
$sm: do
|
|
1805
1817
|
try {
|
|
1806
|
-
var tmp = this.
|
|
1818
|
+
var tmp = this.l9_1;
|
|
1807
1819
|
switch (tmp) {
|
|
1808
1820
|
case 0:
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1821
|
+
this.m9_1 = 6;
|
|
1822
|
+
this.m9_1 = 5;
|
|
1811
1823
|
var tmp_0 = this;
|
|
1812
|
-
tmp_0.
|
|
1813
|
-
this.
|
|
1824
|
+
tmp_0.t5v_1 = this.m5v_1.j5w_1;
|
|
1825
|
+
this.u5v_1 = this.t5v_1;
|
|
1814
1826
|
var tmp_1 = this;
|
|
1815
|
-
tmp_1.
|
|
1827
|
+
tmp_1.v5v_1 = this.u5v_1;
|
|
1816
1828
|
var tmp_2 = this;
|
|
1817
1829
|
var this_0 = new HttpRequestBuilder();
|
|
1818
1830
|
url(this_0, '/json-rpc/4/invoke');
|
|
1819
|
-
var
|
|
1820
|
-
var
|
|
1821
|
-
var
|
|
1822
|
-
var size = this.
|
|
1831
|
+
var tmp3_id = this.r5v_1.id;
|
|
1832
|
+
var tmp4_method = this.s5v_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1833
|
+
var tmp0_apiKey = this.m5v_1.k5w_1;
|
|
1834
|
+
var size = this.p5v_1;
|
|
1823
1835
|
var list = ArrayList_init_$Create$(size);
|
|
1824
1836
|
var inductionVariable = 0;
|
|
1825
1837
|
if (inductionVariable < size)
|
|
1826
1838
|
do {
|
|
1827
1839
|
var index = inductionVariable;
|
|
1828
1840
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1829
|
-
list.e(this.
|
|
1841
|
+
list.e(this.q5v_1);
|
|
1830
1842
|
}
|
|
1831
1843
|
while (inductionVariable < size);
|
|
1832
|
-
var
|
|
1833
|
-
var
|
|
1834
|
-
var body = new RandomRequestDto('2.0',
|
|
1844
|
+
var tmp2_userData = this.s5v_1 ? mapToDto(this.r5v_1) : null;
|
|
1845
|
+
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.p5v_1, list, this.n5v_1, this.o5v_1, false, null, tmp2_userData);
|
|
1846
|
+
var body = new RandomRequestDto('2.0', tmp4_method, tmp5_params, tmp3_id);
|
|
1835
1847
|
if (body == null) {
|
|
1836
|
-
this_0.
|
|
1848
|
+
this_0.c2z_1 = NullBody_instance;
|
|
1837
1849
|
var tmp_3 = JsType_instance;
|
|
1838
1850
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1839
1851
|
var tmp_5;
|
|
@@ -1849,13 +1861,13 @@
|
|
|
1849
1861
|
}
|
|
1850
1862
|
tmp_5 = tmp_6;
|
|
1851
1863
|
}
|
|
1852
|
-
this_0.
|
|
1864
|
+
this_0.y34(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1853
1865
|
} else {
|
|
1854
1866
|
if (body instanceof OutgoingContent) {
|
|
1855
|
-
this_0.
|
|
1856
|
-
this_0.
|
|
1867
|
+
this_0.c2z_1 = body;
|
|
1868
|
+
this_0.y34(null);
|
|
1857
1869
|
} else {
|
|
1858
|
-
this_0.
|
|
1870
|
+
this_0.c2z_1 = body;
|
|
1859
1871
|
var tmp_7 = JsType_instance;
|
|
1860
1872
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1861
1873
|
var tmp_9;
|
|
@@ -1871,34 +1883,34 @@
|
|
|
1871
1883
|
}
|
|
1872
1884
|
tmp_9 = tmp_10;
|
|
1873
1885
|
}
|
|
1874
|
-
this_0.
|
|
1886
|
+
this_0.y34(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1875
1887
|
}
|
|
1876
1888
|
}
|
|
1877
1889
|
|
|
1878
|
-
tmp_2.
|
|
1879
|
-
this.
|
|
1880
|
-
this.
|
|
1881
|
-
this.
|
|
1890
|
+
tmp_2.w5v_1 = this_0;
|
|
1891
|
+
this.x5v_1 = this.v5v_1;
|
|
1892
|
+
this.y5v_1 = this.w5v_1;
|
|
1893
|
+
this.y5v_1.a2z_1 = Companion_getInstance().o2n_1;
|
|
1882
1894
|
var tmp_11 = this;
|
|
1883
|
-
tmp_11.
|
|
1895
|
+
tmp_11.z5v_1 = this.x5v_1;
|
|
1884
1896
|
var tmp_12 = this;
|
|
1885
|
-
tmp_12.
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1889
|
-
suspendResult = (new HttpStatement(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);
|
|
1890
1902
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1891
1903
|
return suspendResult;
|
|
1892
1904
|
}
|
|
1893
1905
|
|
|
1894
1906
|
continue $sm;
|
|
1895
1907
|
case 1:
|
|
1896
|
-
this.
|
|
1908
|
+
this.d5w_1 = suspendResult;
|
|
1897
1909
|
var tmp_13 = this;
|
|
1898
|
-
tmp_13.
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1901
|
-
var tmp_14 = this.
|
|
1910
|
+
tmp_13.e5w_1 = this.d5w_1;
|
|
1911
|
+
this.f5w_1 = this.e5w_1;
|
|
1912
|
+
this.l9_1 = 2;
|
|
1913
|
+
var tmp_14 = this.f5w_1.h32();
|
|
1902
1914
|
var tmp_15 = JsType_instance;
|
|
1903
1915
|
var tmp_16 = getKClass(JsonObject);
|
|
1904
1916
|
var tmp_17;
|
|
@@ -1915,7 +1927,7 @@
|
|
|
1915
1927
|
tmp_17 = tmp_18;
|
|
1916
1928
|
}
|
|
1917
1929
|
|
|
1918
|
-
suspendResult = tmp_14.
|
|
1930
|
+
suspendResult = tmp_14.l31(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1919
1931
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1920
1932
|
return suspendResult;
|
|
1921
1933
|
}
|
|
@@ -1923,9 +1935,9 @@
|
|
|
1923
1935
|
continue $sm;
|
|
1924
1936
|
case 2:
|
|
1925
1937
|
var tmp_19 = this;
|
|
1926
|
-
tmp_19.
|
|
1927
|
-
this.
|
|
1928
|
-
suspendResult = throwIfError(this.
|
|
1938
|
+
tmp_19.g5w_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1939
|
+
this.l9_1 = 3;
|
|
1940
|
+
suspendResult = throwIfError(this.m5v_1, this.g5w_1, this.d5w_1, this);
|
|
1929
1941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1930
1942
|
return suspendResult;
|
|
1931
1943
|
}
|
|
@@ -1933,10 +1945,10 @@
|
|
|
1933
1945
|
continue $sm;
|
|
1934
1946
|
case 3:
|
|
1935
1947
|
var tmp_20 = this;
|
|
1936
|
-
tmp_20.
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1939
|
-
var tmp_21 = this.
|
|
1948
|
+
tmp_20.h5w_1 = this.d5w_1;
|
|
1949
|
+
this.i5w_1 = this.h5w_1;
|
|
1950
|
+
this.l9_1 = 4;
|
|
1951
|
+
var tmp_21 = this.i5w_1.h32();
|
|
1940
1952
|
var tmp_22 = JsType_instance;
|
|
1941
1953
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1942
1954
|
var tmp_24;
|
|
@@ -1953,7 +1965,7 @@
|
|
|
1953
1965
|
tmp_24 = tmp_25;
|
|
1954
1966
|
}
|
|
1955
1967
|
|
|
1956
|
-
suspendResult = tmp_21.
|
|
1968
|
+
suspendResult = tmp_21.l31(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1957
1969
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1958
1970
|
return suspendResult;
|
|
1959
1971
|
}
|
|
@@ -1961,60 +1973,60 @@
|
|
|
1961
1973
|
continue $sm;
|
|
1962
1974
|
case 4:
|
|
1963
1975
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1964
|
-
var randomJson = extractRandomResult(this.
|
|
1965
|
-
var
|
|
1966
|
-
var
|
|
1967
|
-
var
|
|
1968
|
-
return new CardDeckResult(
|
|
1976
|
+
var randomJson = extractRandomResult(this.m5v_1, this.g5w_1);
|
|
1977
|
+
var tmp0_cardDecks = responseDto.z5t_1.d5u_1.m5u_1;
|
|
1978
|
+
var tmp1_signature = responseDto.z5t_1.e5u_1;
|
|
1979
|
+
var tmp2_id = responseDto.a5u_1;
|
|
1980
|
+
return new CardDeckResult(tmp0_cardDecks, randomJson, tmp2_id, tmp1_signature);
|
|
1969
1981
|
case 5:
|
|
1970
|
-
this.
|
|
1971
|
-
var tmp_26 = this.
|
|
1982
|
+
this.m9_1 = 6;
|
|
1983
|
+
var tmp_26 = this.o9_1;
|
|
1972
1984
|
if (tmp_26 instanceof Error) {
|
|
1973
|
-
var error = this.
|
|
1985
|
+
var error = this.o9_1;
|
|
1974
1986
|
if (error instanceof RandomException)
|
|
1975
1987
|
throw error;
|
|
1976
1988
|
else {
|
|
1977
1989
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1978
1990
|
}
|
|
1979
1991
|
} else {
|
|
1980
|
-
throw this.
|
|
1992
|
+
throw this.o9_1;
|
|
1981
1993
|
}
|
|
1982
1994
|
|
|
1983
1995
|
case 6:
|
|
1984
|
-
throw this.
|
|
1996
|
+
throw this.o9_1;
|
|
1985
1997
|
}
|
|
1986
1998
|
} catch ($p) {
|
|
1987
1999
|
var e = $p;
|
|
1988
|
-
if (this.
|
|
2000
|
+
if (this.m9_1 === 6) {
|
|
1989
2001
|
throw e;
|
|
1990
2002
|
} else {
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
2003
|
+
this.l9_1 = this.m9_1;
|
|
2004
|
+
this.o9_1 = e;
|
|
1993
2005
|
}
|
|
1994
2006
|
}
|
|
1995
2007
|
while (true);
|
|
1996
2008
|
};
|
|
1997
2009
|
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1998
2010
|
CoroutineImpl.call(this, resultContinuation);
|
|
1999
|
-
this.
|
|
2000
|
-
this.
|
|
2001
|
-
this.
|
|
2011
|
+
this.y5u_1 = _this__u8e3s4;
|
|
2012
|
+
this.z5u_1 = bodyAsJson;
|
|
2013
|
+
this.a5v_1 = response;
|
|
2002
2014
|
}
|
|
2003
|
-
protoOf($throwIfErrorCOROUTINE$).
|
|
2004
|
-
var suspendResult = this.
|
|
2015
|
+
protoOf($throwIfErrorCOROUTINE$).t9 = function () {
|
|
2016
|
+
var suspendResult = this.n9_1;
|
|
2005
2017
|
$sm: do
|
|
2006
2018
|
try {
|
|
2007
|
-
var tmp = this.
|
|
2019
|
+
var tmp = this.l9_1;
|
|
2008
2020
|
switch (tmp) {
|
|
2009
2021
|
case 0:
|
|
2010
|
-
this.
|
|
2011
|
-
var this_0 = this.
|
|
2012
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2022
|
+
this.m9_1 = 3;
|
|
2023
|
+
var this_0 = this.z5u_1;
|
|
2024
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).i2('error')) {
|
|
2013
2025
|
var tmp_0 = this;
|
|
2014
|
-
tmp_0.
|
|
2015
|
-
this.
|
|
2016
|
-
this.
|
|
2017
|
-
var tmp_1 = this.
|
|
2026
|
+
tmp_0.b5v_1 = this.a5v_1;
|
|
2027
|
+
this.c5v_1 = this.b5v_1;
|
|
2028
|
+
this.l9_1 = 2;
|
|
2029
|
+
var tmp_1 = this.c5v_1.h32();
|
|
2018
2030
|
var tmp_2 = JsType_instance;
|
|
2019
2031
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2020
2032
|
var tmp_4;
|
|
@@ -2030,13 +2042,13 @@
|
|
|
2030
2042
|
}
|
|
2031
2043
|
tmp_4 = tmp_5;
|
|
2032
2044
|
}
|
|
2033
|
-
suspendResult = tmp_1.
|
|
2045
|
+
suspendResult = tmp_1.l31(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2034
2046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2035
2047
|
return suspendResult;
|
|
2036
2048
|
}
|
|
2037
2049
|
continue $sm;
|
|
2038
2050
|
} else {
|
|
2039
|
-
this.
|
|
2051
|
+
this.l9_1 = 1;
|
|
2040
2052
|
continue $sm;
|
|
2041
2053
|
}
|
|
2042
2054
|
|
|
@@ -2044,33 +2056,33 @@
|
|
|
2044
2056
|
return Unit_instance;
|
|
2045
2057
|
case 2:
|
|
2046
2058
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2047
|
-
var
|
|
2048
|
-
var tmp_6 =
|
|
2049
|
-
var
|
|
2050
|
-
throw new RandomException(tmp_6,
|
|
2059
|
+
var tmp0_safe_receiver = errorResponseDto.r5s_1;
|
|
2060
|
+
var tmp_6 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u5s_1;
|
|
2061
|
+
var tmp1_safe_receiver = errorResponseDto.r5s_1;
|
|
2062
|
+
throw new RandomException(tmp_6, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v5s_1);
|
|
2051
2063
|
case 3:
|
|
2052
|
-
throw this.
|
|
2064
|
+
throw this.o9_1;
|
|
2053
2065
|
}
|
|
2054
2066
|
} catch ($p) {
|
|
2055
2067
|
var e = $p;
|
|
2056
|
-
if (this.
|
|
2068
|
+
if (this.m9_1 === 3) {
|
|
2057
2069
|
throw e;
|
|
2058
2070
|
} else {
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2071
|
+
this.l9_1 = this.m9_1;
|
|
2072
|
+
this.o9_1 = e;
|
|
2061
2073
|
}
|
|
2062
2074
|
}
|
|
2063
2075
|
while (true);
|
|
2064
2076
|
};
|
|
2065
2077
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2066
|
-
this.
|
|
2067
|
-
this.
|
|
2078
|
+
this.j5w_1 = client;
|
|
2079
|
+
this.k5w_1 = apiKey;
|
|
2068
2080
|
}
|
|
2069
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2081
|
+
protoOf(RandomOrgApiServiceImpl).p5u = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2070
2082
|
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2071
|
-
tmp.
|
|
2072
|
-
tmp.
|
|
2073
|
-
return tmp.
|
|
2083
|
+
tmp.n9_1 = Unit_instance;
|
|
2084
|
+
tmp.o9_1 = null;
|
|
2085
|
+
return tmp.t9();
|
|
2074
2086
|
};
|
|
2075
2087
|
function PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2076
2088
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -2091,31 +2103,31 @@
|
|
|
2091
2103
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2092
2104
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2093
2105
|
}
|
|
2094
|
-
protoOf(PoolParams).
|
|
2106
|
+
protoOf(PoolParams).k5s = function () {
|
|
2095
2107
|
return this.poolSize;
|
|
2096
2108
|
};
|
|
2097
|
-
protoOf(PoolParams).
|
|
2109
|
+
protoOf(PoolParams).l5s = function () {
|
|
2098
2110
|
return this.thresholdForUsedPool;
|
|
2099
2111
|
};
|
|
2100
|
-
protoOf(PoolParams).
|
|
2112
|
+
protoOf(PoolParams).l5w = function () {
|
|
2101
2113
|
return this.failedRequestAttempts;
|
|
2102
2114
|
};
|
|
2103
|
-
protoOf(PoolParams).
|
|
2115
|
+
protoOf(PoolParams).m5w = function () {
|
|
2104
2116
|
return this.failedAttemptCooldown;
|
|
2105
2117
|
};
|
|
2106
|
-
protoOf(PoolParams).
|
|
2118
|
+
protoOf(PoolParams).kf = function () {
|
|
2107
2119
|
return this.poolSize;
|
|
2108
2120
|
};
|
|
2109
|
-
protoOf(PoolParams).
|
|
2121
|
+
protoOf(PoolParams).lf = function () {
|
|
2110
2122
|
return this.thresholdForUsedPool;
|
|
2111
2123
|
};
|
|
2112
|
-
protoOf(PoolParams).
|
|
2124
|
+
protoOf(PoolParams).um = function () {
|
|
2113
2125
|
return this.failedRequestAttempts;
|
|
2114
2126
|
};
|
|
2115
|
-
protoOf(PoolParams).
|
|
2127
|
+
protoOf(PoolParams).n5w = function () {
|
|
2116
2128
|
return this.failedAttemptCooldown;
|
|
2117
2129
|
};
|
|
2118
|
-
protoOf(PoolParams).
|
|
2130
|
+
protoOf(PoolParams).o5w = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2119
2131
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2120
2132
|
};
|
|
2121
2133
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2123,7 +2135,7 @@
|
|
|
2123
2135
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2124
2136
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2125
2137
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2126
|
-
return $super === VOID ? this.
|
|
2138
|
+
return $super === VOID ? this.o5w(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.o5w.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2127
2139
|
};
|
|
2128
2140
|
protoOf(PoolParams).toString = function () {
|
|
2129
2141
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2154,70 +2166,70 @@
|
|
|
2154
2166
|
function RandomPoolProvider() {
|
|
2155
2167
|
}
|
|
2156
2168
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2157
|
-
return $this.
|
|
2169
|
+
return $this.t5w_1.u5r_1.m();
|
|
2158
2170
|
}
|
|
2159
2171
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2160
2172
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2161
2173
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2162
2174
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2175
|
+
this.t5w_1 = randomResult;
|
|
2176
|
+
this.u5w_1 = usedByGames;
|
|
2177
|
+
this.v5w_1 = reservedCardDecks;
|
|
2178
|
+
this.w5w_1 = isUsed;
|
|
2167
2179
|
}
|
|
2168
|
-
protoOf(RandomPoolValue).
|
|
2169
|
-
if (this.
|
|
2180
|
+
protoOf(RandomPoolValue).x5w = function (minRoundsCount) {
|
|
2181
|
+
if (this.w5w_1) {
|
|
2170
2182
|
return false;
|
|
2171
2183
|
}
|
|
2172
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2184
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.v5w_1 | 0;
|
|
2173
2185
|
return availableCount >= minRoundsCount;
|
|
2174
2186
|
};
|
|
2175
|
-
protoOf(RandomPoolValue).
|
|
2176
|
-
var previousReservedCardDeckIndex = this.
|
|
2187
|
+
protoOf(RandomPoolValue).y5w = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2188
|
+
var previousReservedCardDeckIndex = this.v5w_1;
|
|
2177
2189
|
// Inline function 'kotlin.apply' call
|
|
2178
|
-
var this_0 = toMutableMap(this.
|
|
2179
|
-
this_0.
|
|
2190
|
+
var this_0 = toMutableMap(this.u5w_1);
|
|
2191
|
+
this_0.n2(gameId, previousReservedCardDeckIndex);
|
|
2180
2192
|
var newNewUsedBy = toMap(this_0);
|
|
2181
2193
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2182
|
-
return this.
|
|
2194
|
+
return this.z5w(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2183
2195
|
};
|
|
2184
|
-
protoOf(RandomPoolValue).
|
|
2185
|
-
var currentCardDeckIndex = getValue(this.
|
|
2196
|
+
protoOf(RandomPoolValue).a5x = function (gameId) {
|
|
2197
|
+
var currentCardDeckIndex = getValue(this.u5w_1, gameId);
|
|
2186
2198
|
var tmp;
|
|
2187
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2199
|
+
if (currentCardDeckIndex === get_lastIndex(this.t5w_1.u5r_1)) {
|
|
2188
2200
|
tmp = 0;
|
|
2189
2201
|
} else {
|
|
2190
2202
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2191
2203
|
}
|
|
2192
2204
|
var newCardDeckIndex = tmp;
|
|
2193
2205
|
// Inline function 'kotlin.apply' call
|
|
2194
|
-
var this_0 = toMutableMap(this.
|
|
2195
|
-
this_0.
|
|
2206
|
+
var this_0 = toMutableMap(this.u5w_1);
|
|
2207
|
+
this_0.n2(gameId, newCardDeckIndex);
|
|
2196
2208
|
var newNewUsedBy = toMap(this_0);
|
|
2197
|
-
return this.
|
|
2209
|
+
return this.z5w(VOID, newNewUsedBy);
|
|
2198
2210
|
};
|
|
2199
|
-
protoOf(RandomPoolValue).
|
|
2200
|
-
var index = getValue(this.
|
|
2201
|
-
return new GameCardDeckData(index, this.
|
|
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));
|
|
2202
2214
|
};
|
|
2203
|
-
protoOf(RandomPoolValue).
|
|
2215
|
+
protoOf(RandomPoolValue).c5x = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2204
2216
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2205
2217
|
};
|
|
2206
|
-
protoOf(RandomPoolValue).
|
|
2207
|
-
randomResult = randomResult === VOID ? this.
|
|
2208
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2209
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2210
|
-
isUsed = isUsed === VOID ? this.
|
|
2211
|
-
return $super === VOID ? this.
|
|
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);
|
|
2212
2224
|
};
|
|
2213
2225
|
protoOf(RandomPoolValue).toString = function () {
|
|
2214
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2226
|
+
return 'RandomPoolValue(randomResult=' + this.t5w_1.toString() + ', usedByGames=' + toString(this.u5w_1) + ', reservedCardDecks=' + this.v5w_1 + ', isUsed=' + this.w5w_1 + ')';
|
|
2215
2227
|
};
|
|
2216
2228
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2217
|
-
var result = this.
|
|
2218
|
-
result = imul(result, 31) + hashCode(this.
|
|
2219
|
-
result = imul(result, 31) + this.
|
|
2220
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
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;
|
|
2221
2233
|
return result;
|
|
2222
2234
|
};
|
|
2223
2235
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2226,32 +2238,73 @@
|
|
|
2226
2238
|
if (!(other instanceof RandomPoolValue))
|
|
2227
2239
|
return false;
|
|
2228
2240
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2229
|
-
if (!this.
|
|
2241
|
+
if (!this.t5w_1.equals(tmp0_other_with_cast.t5w_1))
|
|
2230
2242
|
return false;
|
|
2231
|
-
if (!equals(this.
|
|
2243
|
+
if (!equals(this.u5w_1, tmp0_other_with_cast.u5w_1))
|
|
2232
2244
|
return false;
|
|
2233
|
-
if (!(this.
|
|
2245
|
+
if (!(this.v5w_1 === tmp0_other_with_cast.v5w_1))
|
|
2234
2246
|
return false;
|
|
2235
|
-
if (!(this.
|
|
2247
|
+
if (!(this.w5w_1 === tmp0_other_with_cast.w5w_1))
|
|
2236
2248
|
return false;
|
|
2237
2249
|
return true;
|
|
2238
2250
|
};
|
|
2239
2251
|
function getExceptionIfCooldown($this) {
|
|
2240
|
-
var currentTime;
|
|
2241
|
-
|
|
2242
|
-
|
|
2252
|
+
var currentTime = System_instance.zk();
|
|
2253
|
+
if (!($this.l5x_1 == null) && $this.m5x_1 >= $this.d5x_1.failedRequestAttempts) {
|
|
2254
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.d5x_1.failedAttemptCooldown, $this.m5x_1);
|
|
2255
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2256
|
+
var tmp0 = $this.l5x_1;
|
|
2257
|
+
var tmp$ret$1;
|
|
2258
|
+
$l$block: {
|
|
2259
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2260
|
+
if (tmp0 == null) {
|
|
2261
|
+
var message = 'Required value was null.';
|
|
2262
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2263
|
+
} else {
|
|
2264
|
+
tmp$ret$1 = tmp0;
|
|
2265
|
+
break $l$block;
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
var allowedRequestTime = tmp$ret$1.ol(timeToWait);
|
|
2269
|
+
if (allowedRequestTime.rl(currentTime) > 0) {
|
|
2270
|
+
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.l5x_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.m5x_1));
|
|
2271
|
+
return exception;
|
|
2272
|
+
} else {
|
|
2273
|
+
$this.l5x_1 = null;
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
return null;
|
|
2243
2277
|
}
|
|
2244
2278
|
function mapToRandomExceptionIfError($this, error) {
|
|
2245
|
-
|
|
2279
|
+
$this.l5x_1 = System_instance.zk();
|
|
2280
|
+
$this.m5x_1 = $this.m5x_1 + 1 | 0;
|
|
2281
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.d5x_1.failedAttemptCooldown, $this.m5x_1);
|
|
2282
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2283
|
+
var tmp0 = $this.l5x_1;
|
|
2284
|
+
var tmp$ret$1;
|
|
2285
|
+
$l$block: {
|
|
2286
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2287
|
+
if (tmp0 == null) {
|
|
2288
|
+
var message = 'Required value was null.';
|
|
2289
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2290
|
+
} else {
|
|
2291
|
+
tmp$ret$1 = tmp0;
|
|
2292
|
+
break $l$block;
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
var allowedRequestTime = tmp$ret$1.ol(timeToWait);
|
|
2296
|
+
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.l5x_1) + ', ') + ('currentTime = ' + System_instance.zk().toString() + ', ') + ('failedRequestCount = ' + $this.m5x_1), error);
|
|
2297
|
+
$this.f5x_1.w('RandomPoolProvider', VOID, randomException);
|
|
2298
|
+
return randomException;
|
|
2246
2299
|
}
|
|
2247
2300
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2248
2301
|
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2249
|
-
tmp.
|
|
2250
|
-
tmp.
|
|
2251
|
-
return tmp.
|
|
2302
|
+
tmp.n9_1 = Unit_instance;
|
|
2303
|
+
tmp.o9_1 = null;
|
|
2304
|
+
return tmp.t9();
|
|
2252
2305
|
}
|
|
2253
2306
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2254
|
-
var existingCardDeck = $this.
|
|
2307
|
+
var existingCardDeck = $this.k5x_1.k2(userData.gameId);
|
|
2255
2308
|
var tmp;
|
|
2256
2309
|
if (!(existingCardDeck == null)) {
|
|
2257
2310
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2262,18 +2315,18 @@
|
|
|
2262
2315
|
}
|
|
2263
2316
|
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2264
2317
|
var tmp = new $getPreparedOrRequestPoolCOROUTINE$($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2265
|
-
tmp.
|
|
2266
|
-
tmp.
|
|
2267
|
-
return tmp.
|
|
2318
|
+
tmp.n9_1 = Unit_instance;
|
|
2319
|
+
tmp.o9_1 = null;
|
|
2320
|
+
return tmp.t9();
|
|
2268
2321
|
}
|
|
2269
2322
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2270
|
-
return withContext($this.
|
|
2323
|
+
return withContext($this.g5x_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2271
2324
|
}
|
|
2272
2325
|
function Companion_9() {
|
|
2273
|
-
this.
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2276
|
-
this.
|
|
2326
|
+
this.w5y_1 = 100;
|
|
2327
|
+
this.x5y_1 = 3;
|
|
2328
|
+
this.y5y_1 = 3000;
|
|
2329
|
+
this.z5y_1 = 10000;
|
|
2277
2330
|
}
|
|
2278
2331
|
var Companion_instance_11;
|
|
2279
2332
|
function Companion_getInstance_12() {
|
|
@@ -2283,74 +2336,74 @@
|
|
|
2283
2336
|
return uuid4().toString();
|
|
2284
2337
|
}
|
|
2285
2338
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2290
|
-
this.
|
|
2291
|
-
this.
|
|
2292
|
-
this.
|
|
2293
|
-
this.
|
|
2339
|
+
this.i5z_1 = this$0;
|
|
2340
|
+
this.j5z_1 = $minRoundsCountInPool;
|
|
2341
|
+
this.k5z_1 = $userData;
|
|
2342
|
+
this.l5z_1 = $min;
|
|
2343
|
+
this.m5z_1 = $max;
|
|
2344
|
+
this.n5z_1 = $cardsCount;
|
|
2345
|
+
this.o5z_1 = $signed;
|
|
2346
|
+
this.p5z_1 = $requestDurationWarnMillis;
|
|
2294
2347
|
CoroutineImpl.call(this, resultContinuation);
|
|
2295
2348
|
}
|
|
2296
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2297
|
-
var tmp = this.
|
|
2298
|
-
tmp.
|
|
2299
|
-
tmp.
|
|
2300
|
-
var tmp_0 = tmp.
|
|
2349
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).x5z = function ($this$withContext, $completion) {
|
|
2350
|
+
var tmp = this.y1g($this$withContext, $completion);
|
|
2351
|
+
tmp.n9_1 = Unit_instance;
|
|
2352
|
+
tmp.o9_1 = null;
|
|
2353
|
+
var tmp_0 = tmp.t9();
|
|
2301
2354
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2302
2355
|
return tmp_0;
|
|
2303
2356
|
return tmp_0;
|
|
2304
2357
|
};
|
|
2305
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2306
|
-
return this.
|
|
2358
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).da = function (p1, $completion) {
|
|
2359
|
+
return this.x5z((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2307
2360
|
};
|
|
2308
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2309
|
-
var suspendResult = this.
|
|
2361
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).t9 = function () {
|
|
2362
|
+
var suspendResult = this.n9_1;
|
|
2310
2363
|
$sm: do
|
|
2311
2364
|
try {
|
|
2312
|
-
var tmp = this.
|
|
2365
|
+
var tmp = this.l9_1;
|
|
2313
2366
|
switch (tmp) {
|
|
2314
2367
|
case 0:
|
|
2315
|
-
this.
|
|
2368
|
+
this.m9_1 = 10;
|
|
2316
2369
|
var tmp_0 = this;
|
|
2317
|
-
tmp_0.
|
|
2318
|
-
this.
|
|
2370
|
+
tmp_0.r5z_1 = this.i5z_1.i5x_1;
|
|
2371
|
+
this.s5z_1 = this.r5z_1;
|
|
2319
2372
|
var tmp_1 = this;
|
|
2320
|
-
tmp_1.
|
|
2321
|
-
this.
|
|
2322
|
-
suspendResult = this.
|
|
2373
|
+
tmp_1.t5z_1 = null;
|
|
2374
|
+
this.l9_1 = 1;
|
|
2375
|
+
suspendResult = this.s5z_1.o1p(this.t5z_1, this);
|
|
2323
2376
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2324
2377
|
return suspendResult;
|
|
2325
2378
|
}
|
|
2326
2379
|
|
|
2327
2380
|
continue $sm;
|
|
2328
2381
|
case 1:
|
|
2329
|
-
this.
|
|
2330
|
-
this.
|
|
2382
|
+
this.u5z_1 = Unit_instance;
|
|
2383
|
+
this.l9_1 = 2;
|
|
2331
2384
|
continue $sm;
|
|
2332
2385
|
case 2:
|
|
2333
|
-
this.
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2386
|
+
this.m9_1 = 9;
|
|
2387
|
+
this.v5z_1 = Unit_instance;
|
|
2388
|
+
this.l9_1 = 3;
|
|
2336
2389
|
continue $sm;
|
|
2337
2390
|
case 3:
|
|
2338
|
-
this.
|
|
2339
|
-
if (!(this.
|
|
2391
|
+
this.w5z_1 = getExceptionIfCooldown(this.i5z_1);
|
|
2392
|
+
if (!(this.w5z_1 == null)) {
|
|
2340
2393
|
var tmp_2 = this;
|
|
2341
|
-
var exception = this.
|
|
2342
|
-
tmp_2.
|
|
2343
|
-
this.
|
|
2394
|
+
var exception = this.w5z_1;
|
|
2395
|
+
tmp_2.v5z_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2396
|
+
this.l9_1 = 7;
|
|
2344
2397
|
continue $sm;
|
|
2345
2398
|
} else {
|
|
2346
|
-
this.
|
|
2399
|
+
this.l9_1 = 4;
|
|
2347
2400
|
continue $sm;
|
|
2348
2401
|
}
|
|
2349
2402
|
|
|
2350
2403
|
case 4:
|
|
2351
|
-
this.
|
|
2352
|
-
this.
|
|
2353
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2404
|
+
this.m9_1 = 6;
|
|
2405
|
+
this.l9_1 = 5;
|
|
2406
|
+
suspendResult = getOrLoadGameCardDeckData(this.i5z_1, this.j5z_1, this.k5z_1, this.l5z_1, this.m5z_1, this.n5z_1, this.o5z_1, this.p5z_1, this);
|
|
2354
2407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2355
2408
|
return suspendResult;
|
|
2356
2409
|
}
|
|
@@ -2359,132 +2412,132 @@
|
|
|
2359
2412
|
case 5:
|
|
2360
2413
|
var cardDeckData = suspendResult;
|
|
2361
2414
|
var tmp_3 = this;
|
|
2362
|
-
tmp_3.
|
|
2363
|
-
this.
|
|
2415
|
+
tmp_3.v5z_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2416
|
+
this.l9_1 = 7;
|
|
2364
2417
|
continue $sm;
|
|
2365
2418
|
case 6:
|
|
2366
|
-
this.
|
|
2367
|
-
var tmp_4 = this.
|
|
2419
|
+
this.m9_1 = 9;
|
|
2420
|
+
var tmp_4 = this.o9_1;
|
|
2368
2421
|
if (tmp_4 instanceof Error) {
|
|
2369
|
-
var error = this.
|
|
2422
|
+
var error = this.o9_1;
|
|
2370
2423
|
var tmp_5 = this;
|
|
2371
|
-
var exception_0 = mapToRandomExceptionIfError(this.
|
|
2372
|
-
tmp_5.
|
|
2373
|
-
this.
|
|
2424
|
+
var exception_0 = mapToRandomExceptionIfError(this.i5z_1, error);
|
|
2425
|
+
tmp_5.v5z_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2426
|
+
this.l9_1 = 7;
|
|
2374
2427
|
continue $sm;
|
|
2375
2428
|
} else {
|
|
2376
|
-
throw this.
|
|
2429
|
+
throw this.o9_1;
|
|
2377
2430
|
}
|
|
2378
2431
|
|
|
2379
2432
|
case 7:
|
|
2380
|
-
this.
|
|
2381
|
-
this.
|
|
2382
|
-
this.
|
|
2433
|
+
this.u5z_1 = this.v5z_1;
|
|
2434
|
+
this.m9_1 = 10;
|
|
2435
|
+
this.l9_1 = 8;
|
|
2383
2436
|
continue $sm;
|
|
2384
2437
|
case 8:
|
|
2385
|
-
var tmp_6 = this.
|
|
2386
|
-
this.
|
|
2387
|
-
this.
|
|
2438
|
+
var tmp_6 = this.u5z_1;
|
|
2439
|
+
this.m9_1 = 10;
|
|
2440
|
+
this.s5z_1.z1o(this.t5z_1);
|
|
2388
2441
|
return tmp_6;
|
|
2389
2442
|
case 9:
|
|
2390
|
-
this.
|
|
2391
|
-
var t = this.
|
|
2392
|
-
this.
|
|
2443
|
+
this.m9_1 = 10;
|
|
2444
|
+
var t = this.o9_1;
|
|
2445
|
+
this.s5z_1.z1o(this.t5z_1);
|
|
2393
2446
|
throw t;
|
|
2394
2447
|
case 10:
|
|
2395
|
-
throw this.
|
|
2448
|
+
throw this.o9_1;
|
|
2396
2449
|
}
|
|
2397
2450
|
} catch ($p) {
|
|
2398
2451
|
var e = $p;
|
|
2399
|
-
if (this.
|
|
2452
|
+
if (this.m9_1 === 10) {
|
|
2400
2453
|
throw e;
|
|
2401
2454
|
} else {
|
|
2402
|
-
this.
|
|
2403
|
-
this.
|
|
2455
|
+
this.l9_1 = this.m9_1;
|
|
2456
|
+
this.o9_1 = e;
|
|
2404
2457
|
}
|
|
2405
2458
|
}
|
|
2406
2459
|
while (true);
|
|
2407
2460
|
};
|
|
2408
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2409
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2410
|
-
i.
|
|
2461
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).y1g = function ($this$withContext, completion) {
|
|
2462
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.i5z_1, this.j5z_1, this.k5z_1, this.l5z_1, this.m5z_1, this.n5z_1, this.o5z_1, this.p5z_1, completion);
|
|
2463
|
+
i.q5z_1 = $this$withContext;
|
|
2411
2464
|
return i;
|
|
2412
2465
|
};
|
|
2413
2466
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2414
2467
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2415
2468
|
var l = function ($this$withContext, $completion) {
|
|
2416
|
-
return i.
|
|
2469
|
+
return i.x5z($this$withContext, $completion);
|
|
2417
2470
|
};
|
|
2418
2471
|
l.$arity = 1;
|
|
2419
2472
|
return l;
|
|
2420
2473
|
}
|
|
2421
2474
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2422
|
-
this.
|
|
2423
|
-
this.
|
|
2424
|
-
this.
|
|
2425
|
-
this.
|
|
2426
|
-
this.
|
|
2427
|
-
this.
|
|
2475
|
+
this.g60_1 = this$0;
|
|
2476
|
+
this.h60_1 = $min;
|
|
2477
|
+
this.i60_1 = $max;
|
|
2478
|
+
this.j60_1 = $cardsCount;
|
|
2479
|
+
this.k60_1 = $signed;
|
|
2480
|
+
this.l60_1 = $requestDurationWarnMillis;
|
|
2428
2481
|
CoroutineImpl.call(this, resultContinuation);
|
|
2429
2482
|
}
|
|
2430
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2431
|
-
var tmp = this.
|
|
2432
|
-
tmp.
|
|
2433
|
-
tmp.
|
|
2434
|
-
var tmp_0 = tmp.
|
|
2483
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).t60 = function ($this$withContext, $completion) {
|
|
2484
|
+
var tmp = this.y1g($this$withContext, $completion);
|
|
2485
|
+
tmp.n9_1 = Unit_instance;
|
|
2486
|
+
tmp.o9_1 = null;
|
|
2487
|
+
var tmp_0 = tmp.t9();
|
|
2435
2488
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2436
2489
|
return tmp_0;
|
|
2437
2490
|
return tmp_0;
|
|
2438
2491
|
};
|
|
2439
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2440
|
-
return this.
|
|
2492
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).da = function (p1, $completion) {
|
|
2493
|
+
return this.t60((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2441
2494
|
};
|
|
2442
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2443
|
-
var suspendResult = this.
|
|
2495
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).t9 = function () {
|
|
2496
|
+
var suspendResult = this.n9_1;
|
|
2444
2497
|
$sm: do
|
|
2445
2498
|
try {
|
|
2446
|
-
var tmp = this.
|
|
2499
|
+
var tmp = this.l9_1;
|
|
2447
2500
|
switch (tmp) {
|
|
2448
2501
|
case 0:
|
|
2449
|
-
this.
|
|
2502
|
+
this.m9_1 = 10;
|
|
2450
2503
|
var tmp_0 = this;
|
|
2451
|
-
tmp_0.
|
|
2452
|
-
this.
|
|
2504
|
+
tmp_0.n60_1 = this.g60_1.i5x_1;
|
|
2505
|
+
this.o60_1 = this.n60_1;
|
|
2453
2506
|
var tmp_1 = this;
|
|
2454
|
-
tmp_1.
|
|
2455
|
-
this.
|
|
2456
|
-
suspendResult = this.
|
|
2507
|
+
tmp_1.p60_1 = null;
|
|
2508
|
+
this.l9_1 = 1;
|
|
2509
|
+
suspendResult = this.o60_1.o1p(this.p60_1, this);
|
|
2457
2510
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2458
2511
|
return suspendResult;
|
|
2459
2512
|
}
|
|
2460
2513
|
|
|
2461
2514
|
continue $sm;
|
|
2462
2515
|
case 1:
|
|
2463
|
-
this.
|
|
2464
|
-
this.
|
|
2516
|
+
this.q60_1 = Unit_instance;
|
|
2517
|
+
this.l9_1 = 2;
|
|
2465
2518
|
continue $sm;
|
|
2466
2519
|
case 2:
|
|
2467
|
-
this.
|
|
2468
|
-
this.
|
|
2469
|
-
this.
|
|
2520
|
+
this.m9_1 = 9;
|
|
2521
|
+
this.r60_1 = Unit_instance;
|
|
2522
|
+
this.l9_1 = 3;
|
|
2470
2523
|
continue $sm;
|
|
2471
2524
|
case 3:
|
|
2472
|
-
this.
|
|
2473
|
-
if (!(this.
|
|
2525
|
+
this.s60_1 = getExceptionIfCooldown(this.g60_1);
|
|
2526
|
+
if (!(this.s60_1 == null)) {
|
|
2474
2527
|
var tmp_2 = this;
|
|
2475
|
-
var exception = this.
|
|
2476
|
-
tmp_2.
|
|
2477
|
-
this.
|
|
2528
|
+
var exception = this.s60_1;
|
|
2529
|
+
tmp_2.r60_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2530
|
+
this.l9_1 = 7;
|
|
2478
2531
|
continue $sm;
|
|
2479
2532
|
} else {
|
|
2480
|
-
this.
|
|
2533
|
+
this.l9_1 = 4;
|
|
2481
2534
|
continue $sm;
|
|
2482
2535
|
}
|
|
2483
2536
|
|
|
2484
2537
|
case 4:
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
suspendResult = requestNewPool(this.
|
|
2538
|
+
this.m9_1 = 6;
|
|
2539
|
+
this.l9_1 = 5;
|
|
2540
|
+
suspendResult = requestNewPool(this.g60_1, this.h60_1, this.i60_1, this.j60_1, this.k60_1, this.l60_1, this);
|
|
2488
2541
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2489
2542
|
return suspendResult;
|
|
2490
2543
|
}
|
|
@@ -2492,96 +2545,100 @@
|
|
|
2492
2545
|
continue $sm;
|
|
2493
2546
|
case 5:
|
|
2494
2547
|
var randomPoolValue = suspendResult;
|
|
2495
|
-
var tmp0 = this.
|
|
2496
|
-
var key = randomPoolValue.
|
|
2497
|
-
tmp0.
|
|
2498
|
-
this.
|
|
2499
|
-
|
|
2500
|
-
|
|
2548
|
+
var tmp0 = this.g60_1.j5x_1;
|
|
2549
|
+
var key = randomPoolValue.t5w_1.w5r_1;
|
|
2550
|
+
tmp0.n2(key, randomPoolValue);
|
|
2551
|
+
this.g60_1.m5x_1 = 0;
|
|
2552
|
+
this.g60_1.l5x_1 = null;
|
|
2553
|
+
var tmp_3 = this;
|
|
2554
|
+
tmp_3.r60_1 = new Result(_Result___init__impl__xyqfz8(Unit_instance));
|
|
2555
|
+
this.l9_1 = 7;
|
|
2556
|
+
continue $sm;
|
|
2501
2557
|
case 6:
|
|
2502
|
-
this.
|
|
2503
|
-
var
|
|
2504
|
-
if (
|
|
2505
|
-
var error = this.
|
|
2506
|
-
var
|
|
2507
|
-
var exception_0 = mapToRandomExceptionIfError(this.
|
|
2508
|
-
|
|
2509
|
-
this.
|
|
2558
|
+
this.m9_1 = 9;
|
|
2559
|
+
var tmp_4 = this.o9_1;
|
|
2560
|
+
if (tmp_4 instanceof Error) {
|
|
2561
|
+
var error = this.o9_1;
|
|
2562
|
+
var tmp_5 = this;
|
|
2563
|
+
var exception_0 = mapToRandomExceptionIfError(this.g60_1, error);
|
|
2564
|
+
tmp_5.r60_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2565
|
+
this.l9_1 = 7;
|
|
2510
2566
|
continue $sm;
|
|
2511
2567
|
} else {
|
|
2512
|
-
throw this.
|
|
2568
|
+
throw this.o9_1;
|
|
2513
2569
|
}
|
|
2514
2570
|
|
|
2515
2571
|
case 7:
|
|
2516
|
-
this.
|
|
2517
|
-
this.
|
|
2518
|
-
this.
|
|
2572
|
+
this.q60_1 = this.r60_1;
|
|
2573
|
+
this.m9_1 = 10;
|
|
2574
|
+
this.l9_1 = 8;
|
|
2519
2575
|
continue $sm;
|
|
2520
2576
|
case 8:
|
|
2521
|
-
var
|
|
2522
|
-
this.
|
|
2523
|
-
this.
|
|
2524
|
-
return
|
|
2577
|
+
var tmp_6 = this.q60_1;
|
|
2578
|
+
this.m9_1 = 10;
|
|
2579
|
+
this.o60_1.z1o(this.p60_1);
|
|
2580
|
+
return tmp_6;
|
|
2525
2581
|
case 9:
|
|
2526
|
-
this.
|
|
2527
|
-
var t = this.
|
|
2528
|
-
this.
|
|
2582
|
+
this.m9_1 = 10;
|
|
2583
|
+
var t = this.o9_1;
|
|
2584
|
+
this.o60_1.z1o(this.p60_1);
|
|
2529
2585
|
throw t;
|
|
2530
2586
|
case 10:
|
|
2531
|
-
throw this.
|
|
2587
|
+
throw this.o9_1;
|
|
2532
2588
|
}
|
|
2533
2589
|
} catch ($p) {
|
|
2534
2590
|
var e = $p;
|
|
2535
|
-
if (this.
|
|
2591
|
+
if (this.m9_1 === 10) {
|
|
2536
2592
|
throw e;
|
|
2537
2593
|
} else {
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2594
|
+
this.l9_1 = this.m9_1;
|
|
2595
|
+
this.o9_1 = e;
|
|
2540
2596
|
}
|
|
2541
2597
|
}
|
|
2542
2598
|
while (true);
|
|
2543
2599
|
};
|
|
2544
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2545
|
-
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.
|
|
2546
|
-
i.
|
|
2600
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).y1g = function ($this$withContext, completion) {
|
|
2601
|
+
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.g60_1, this.h60_1, this.i60_1, this.j60_1, this.k60_1, this.l60_1, completion);
|
|
2602
|
+
i.m60_1 = $this$withContext;
|
|
2547
2603
|
return i;
|
|
2548
2604
|
};
|
|
2549
2605
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2550
2606
|
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2551
2607
|
var l = function ($this$withContext, $completion) {
|
|
2552
|
-
return i.
|
|
2608
|
+
return i.t60($this$withContext, $completion);
|
|
2553
2609
|
};
|
|
2554
2610
|
l.$arity = 1;
|
|
2555
2611
|
return l;
|
|
2556
2612
|
}
|
|
2557
2613
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2558
|
-
this.
|
|
2559
|
-
this.
|
|
2560
|
-
this.
|
|
2561
|
-
this.
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2614
|
+
this.c61_1 = this$0;
|
|
2615
|
+
this.d61_1 = $min;
|
|
2616
|
+
this.e61_1 = $max;
|
|
2617
|
+
this.f61_1 = $cardsCount;
|
|
2618
|
+
this.g61_1 = $signed;
|
|
2619
|
+
this.h61_1 = $requestDurationWarnMillis;
|
|
2564
2620
|
CoroutineImpl.call(this, resultContinuation);
|
|
2565
2621
|
}
|
|
2566
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2567
|
-
var tmp = this.
|
|
2568
|
-
tmp.
|
|
2569
|
-
tmp.
|
|
2570
|
-
return tmp.
|
|
2622
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).k61 = function ($this$withContext, $completion) {
|
|
2623
|
+
var tmp = this.y1g($this$withContext, $completion);
|
|
2624
|
+
tmp.n9_1 = Unit_instance;
|
|
2625
|
+
tmp.o9_1 = null;
|
|
2626
|
+
return tmp.t9();
|
|
2571
2627
|
};
|
|
2572
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2573
|
-
return this.
|
|
2628
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).da = function (p1, $completion) {
|
|
2629
|
+
return this.k61((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2574
2630
|
};
|
|
2575
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2576
|
-
var suspendResult = this.
|
|
2631
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).t9 = function () {
|
|
2632
|
+
var suspendResult = this.n9_1;
|
|
2577
2633
|
$sm: do
|
|
2578
2634
|
try {
|
|
2579
|
-
var tmp = this.
|
|
2635
|
+
var tmp = this.l9_1;
|
|
2580
2636
|
switch (tmp) {
|
|
2581
2637
|
case 0:
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
|
|
2638
|
+
this.m9_1 = 2;
|
|
2639
|
+
this.j61_1 = System_instance.zk();
|
|
2640
|
+
this.l9_1 = 1;
|
|
2641
|
+
suspendResult = this.c61_1.e5x_1.p5u(this.d61_1, this.e61_1, this.c61_1.d5x_1.poolSize, this.f61_1, new CardDecksRequestUserData(this.c61_1.h5x_1(), this.c61_1.d5x_1.poolSize), this.g61_1, this);
|
|
2585
2642
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2586
2643
|
return suspendResult;
|
|
2587
2644
|
}
|
|
@@ -2589,58 +2646,67 @@
|
|
|
2589
2646
|
continue $sm;
|
|
2590
2647
|
case 1:
|
|
2591
2648
|
var result = suspendResult;
|
|
2592
|
-
var requestEndTime;
|
|
2593
|
-
|
|
2594
|
-
|
|
2649
|
+
var requestEndTime = System_instance.zk();
|
|
2650
|
+
var requestDuration = requestEndTime.ql(this.j61_1);
|
|
2651
|
+
Companion_getInstance_0();
|
|
2652
|
+
var this_0 = this.h61_1;
|
|
2653
|
+
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2654
|
+
var tmp_0 = 'actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ';
|
|
2655
|
+
Companion_getInstance_0();
|
|
2656
|
+
var this_1 = this.h61_1;
|
|
2657
|
+
this.c61_1.f5x_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
return new RandomPoolValue(result);
|
|
2595
2661
|
case 2:
|
|
2596
|
-
throw this.
|
|
2662
|
+
throw this.o9_1;
|
|
2597
2663
|
}
|
|
2598
2664
|
} catch ($p) {
|
|
2599
2665
|
var e = $p;
|
|
2600
|
-
if (this.
|
|
2666
|
+
if (this.m9_1 === 2) {
|
|
2601
2667
|
throw e;
|
|
2602
2668
|
} else {
|
|
2603
|
-
this.
|
|
2604
|
-
this.
|
|
2669
|
+
this.l9_1 = this.m9_1;
|
|
2670
|
+
this.o9_1 = e;
|
|
2605
2671
|
}
|
|
2606
2672
|
}
|
|
2607
2673
|
while (true);
|
|
2608
2674
|
};
|
|
2609
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2610
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2611
|
-
i.
|
|
2675
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).y1g = function ($this$withContext, completion) {
|
|
2676
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.c61_1, this.d61_1, this.e61_1, this.f61_1, this.g61_1, this.h61_1, completion);
|
|
2677
|
+
i.i61_1 = $this$withContext;
|
|
2612
2678
|
return i;
|
|
2613
2679
|
};
|
|
2614
2680
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2615
2681
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2616
2682
|
var l = function ($this$withContext, $completion) {
|
|
2617
|
-
return i.
|
|
2683
|
+
return i.k61($this$withContext, $completion);
|
|
2618
2684
|
};
|
|
2619
2685
|
l.$arity = 1;
|
|
2620
2686
|
return l;
|
|
2621
2687
|
}
|
|
2622
2688
|
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2623
2689
|
CoroutineImpl.call(this, resultContinuation);
|
|
2624
|
-
this.
|
|
2625
|
-
this.
|
|
2626
|
-
this.
|
|
2627
|
-
this.
|
|
2628
|
-
this.
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2631
|
-
this.
|
|
2632
|
-
}
|
|
2633
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).
|
|
2634
|
-
var suspendResult = this.
|
|
2690
|
+
this.v5x_1 = _this__u8e3s4;
|
|
2691
|
+
this.w5x_1 = minRoundsCountInPool;
|
|
2692
|
+
this.x5x_1 = userData;
|
|
2693
|
+
this.y5x_1 = min;
|
|
2694
|
+
this.z5x_1 = max;
|
|
2695
|
+
this.a5y_1 = cardsCount;
|
|
2696
|
+
this.b5y_1 = signed;
|
|
2697
|
+
this.c5y_1 = requestDurationWarnMillis;
|
|
2698
|
+
}
|
|
2699
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).t9 = function () {
|
|
2700
|
+
var suspendResult = this.n9_1;
|
|
2635
2701
|
$sm: do
|
|
2636
2702
|
try {
|
|
2637
|
-
var tmp = this.
|
|
2703
|
+
var tmp = this.l9_1;
|
|
2638
2704
|
switch (tmp) {
|
|
2639
2705
|
case 0:
|
|
2640
|
-
this.
|
|
2641
|
-
this.
|
|
2642
|
-
this.
|
|
2643
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2706
|
+
this.m9_1 = 2;
|
|
2707
|
+
this.d5y_1 = this.x5x_1.gameId;
|
|
2708
|
+
this.l9_1 = 1;
|
|
2709
|
+
suspendResult = getPreparedOrRequestPool(this.v5x_1, this.d5y_1, this.y5x_1, this.z5x_1, this.w5x_1, this.a5y_1, this.b5y_1, this.c5y_1, this);
|
|
2644
2710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2645
2711
|
return suspendResult;
|
|
2646
2712
|
}
|
|
@@ -2648,86 +2714,86 @@
|
|
|
2648
2714
|
continue $sm;
|
|
2649
2715
|
case 1:
|
|
2650
2716
|
var randomPoolValue = suspendResult;
|
|
2651
|
-
var tmp0 = this.
|
|
2652
|
-
var key = randomPoolValue.
|
|
2653
|
-
tmp0.
|
|
2654
|
-
var cardDeckData = randomPoolValue.
|
|
2655
|
-
var
|
|
2656
|
-
var
|
|
2657
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2658
|
-
var tmp0_0 = this.
|
|
2659
|
-
var key_0 = this.
|
|
2660
|
-
tmp0_0.
|
|
2717
|
+
var tmp0 = this.v5x_1.j5x_1;
|
|
2718
|
+
var key = randomPoolValue.t5w_1.w5r_1;
|
|
2719
|
+
tmp0.n2(key, randomPoolValue);
|
|
2720
|
+
var cardDeckData = randomPoolValue.b5x(this.x5x_1.gameId);
|
|
2721
|
+
var tmp1_poolId = randomPoolValue.t5w_1.w5r_1;
|
|
2722
|
+
var tmp2_signature = randomPoolValue.t5w_1.x5r_1;
|
|
2723
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.v5x_1, tmp1_poolId, tmp2_signature, cardDeckData, this.x5x_1);
|
|
2724
|
+
var tmp0_0 = this.v5x_1.k5x_1;
|
|
2725
|
+
var key_0 = this.x5x_1.gameId;
|
|
2726
|
+
tmp0_0.n2(key_0, cardDecksRecord);
|
|
2661
2727
|
return cardDeckData;
|
|
2662
2728
|
case 2:
|
|
2663
|
-
throw this.
|
|
2729
|
+
throw this.o9_1;
|
|
2664
2730
|
}
|
|
2665
2731
|
} catch ($p) {
|
|
2666
2732
|
var e = $p;
|
|
2667
|
-
if (this.
|
|
2733
|
+
if (this.m9_1 === 2) {
|
|
2668
2734
|
throw e;
|
|
2669
2735
|
} else {
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2736
|
+
this.l9_1 = this.m9_1;
|
|
2737
|
+
this.o9_1 = e;
|
|
2672
2738
|
}
|
|
2673
2739
|
}
|
|
2674
2740
|
while (true);
|
|
2675
2741
|
};
|
|
2676
2742
|
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2677
2743
|
CoroutineImpl.call(this, resultContinuation);
|
|
2678
|
-
this.
|
|
2679
|
-
this.
|
|
2680
|
-
this.
|
|
2681
|
-
this.
|
|
2682
|
-
this.
|
|
2683
|
-
this.
|
|
2684
|
-
this.
|
|
2685
|
-
this.
|
|
2686
|
-
}
|
|
2687
|
-
protoOf($getPreparedOrRequestPoolCOROUTINE$).
|
|
2688
|
-
var suspendResult = this.
|
|
2744
|
+
this.m5y_1 = _this__u8e3s4;
|
|
2745
|
+
this.n5y_1 = gameId;
|
|
2746
|
+
this.o5y_1 = min;
|
|
2747
|
+
this.p5y_1 = max;
|
|
2748
|
+
this.q5y_1 = minRoundsCount;
|
|
2749
|
+
this.r5y_1 = cardsCount;
|
|
2750
|
+
this.s5y_1 = signed;
|
|
2751
|
+
this.t5y_1 = requestDurationWarnMillis;
|
|
2752
|
+
}
|
|
2753
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$).t9 = function () {
|
|
2754
|
+
var suspendResult = this.n9_1;
|
|
2689
2755
|
$sm: do
|
|
2690
2756
|
try {
|
|
2691
|
-
var tmp = this.
|
|
2757
|
+
var tmp = this.l9_1;
|
|
2692
2758
|
switch (tmp) {
|
|
2693
2759
|
case 0:
|
|
2694
|
-
this.
|
|
2760
|
+
this.m9_1 = 2;
|
|
2695
2761
|
var tmp_0 = this;
|
|
2696
|
-
var tmp0 = this.
|
|
2762
|
+
var tmp0 = this.m5y_1.j5x_1;
|
|
2697
2763
|
var destination = LinkedHashMap_init_$Create$();
|
|
2698
2764
|
var _iterator__ex2g4s = tmp0.s().j();
|
|
2699
2765
|
while (_iterator__ex2g4s.k()) {
|
|
2700
2766
|
var element = _iterator__ex2g4s.l();
|
|
2701
|
-
var tmp0_0 = element.u().
|
|
2702
|
-
var key = this.
|
|
2703
|
-
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).
|
|
2704
|
-
destination.
|
|
2767
|
+
var tmp0_0 = element.u().u5w_1;
|
|
2768
|
+
var key = this.n5y_1;
|
|
2769
|
+
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).i2(key)) {
|
|
2770
|
+
destination.n2(element.t(), element.u());
|
|
2705
2771
|
}
|
|
2706
2772
|
}
|
|
2707
2773
|
|
|
2708
|
-
tmp_0.
|
|
2709
|
-
if (!(this.
|
|
2710
|
-
return this.
|
|
2774
|
+
tmp_0.u5y_1 = firstOrNull(destination.s());
|
|
2775
|
+
if (!(this.u5y_1 == null)) {
|
|
2776
|
+
return this.u5y_1.u().a5x(this.n5y_1);
|
|
2711
2777
|
}
|
|
2712
2778
|
|
|
2713
2779
|
var tmp_1 = this;
|
|
2714
|
-
var tmp0_1 = this.
|
|
2780
|
+
var tmp0_1 = this.m5y_1.j5x_1;
|
|
2715
2781
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2716
2782
|
var _iterator__ex2g4s_0 = tmp0_1.s().j();
|
|
2717
2783
|
while (_iterator__ex2g4s_0.k()) {
|
|
2718
2784
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
2719
|
-
if (element_0.u().
|
|
2720
|
-
destination_0.
|
|
2785
|
+
if (element_0.u().x5w(this.q5y_1)) {
|
|
2786
|
+
destination_0.n2(element_0.t(), element_0.u());
|
|
2721
2787
|
}
|
|
2722
2788
|
}
|
|
2723
2789
|
|
|
2724
|
-
tmp_1.
|
|
2725
|
-
if (!(this.
|
|
2726
|
-
return this.
|
|
2790
|
+
tmp_1.v5y_1 = firstOrNull(destination_0.s());
|
|
2791
|
+
if (!(this.v5y_1 == null)) {
|
|
2792
|
+
return this.v5y_1.u().y5w(this.n5y_1, this.q5y_1, this.m5y_1.d5x_1.thresholdForUsedPool);
|
|
2727
2793
|
}
|
|
2728
2794
|
|
|
2729
|
-
this.
|
|
2730
|
-
suspendResult = requestNewPool(this.
|
|
2795
|
+
this.l9_1 = 1;
|
|
2796
|
+
suspendResult = requestNewPool(this.m5y_1, this.o5y_1, this.p5y_1, this.r5y_1, this.s5y_1, this.t5y_1, this);
|
|
2731
2797
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2732
2798
|
return suspendResult;
|
|
2733
2799
|
}
|
|
@@ -2735,23 +2801,23 @@
|
|
|
2735
2801
|
continue $sm;
|
|
2736
2802
|
case 1:
|
|
2737
2803
|
var cardDecks = suspendResult;
|
|
2738
|
-
return cardDecks.
|
|
2804
|
+
return cardDecks.y5w(this.n5y_1, this.q5y_1, this.m5y_1.d5x_1.thresholdForUsedPool);
|
|
2739
2805
|
case 2:
|
|
2740
|
-
throw this.
|
|
2806
|
+
throw this.o9_1;
|
|
2741
2807
|
}
|
|
2742
2808
|
} catch ($p) {
|
|
2743
2809
|
var e = $p;
|
|
2744
|
-
if (this.
|
|
2810
|
+
if (this.m9_1 === 2) {
|
|
2745
2811
|
throw e;
|
|
2746
2812
|
} else {
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2813
|
+
this.l9_1 = this.m9_1;
|
|
2814
|
+
this.o9_1 = e;
|
|
2749
2815
|
}
|
|
2750
2816
|
}
|
|
2751
2817
|
while (true);
|
|
2752
2818
|
};
|
|
2753
2819
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2754
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2820
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().p12_1 : dispatcher;
|
|
2755
2821
|
var tmp;
|
|
2756
2822
|
if (idsProvider === VOID) {
|
|
2757
2823
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2759,89 +2825,90 @@
|
|
|
2759
2825
|
tmp = idsProvider;
|
|
2760
2826
|
}
|
|
2761
2827
|
idsProvider = tmp;
|
|
2762
|
-
this.
|
|
2763
|
-
this.
|
|
2764
|
-
this.
|
|
2765
|
-
this.
|
|
2766
|
-
this.
|
|
2767
|
-
this.
|
|
2828
|
+
this.d5x_1 = params;
|
|
2829
|
+
this.e5x_1 = randomOrgApiService;
|
|
2830
|
+
this.f5x_1 = logger;
|
|
2831
|
+
this.g5x_1 = dispatcher;
|
|
2832
|
+
this.h5x_1 = idsProvider;
|
|
2833
|
+
this.i5x_1 = Mutex();
|
|
2768
2834
|
var tmp_0 = this;
|
|
2769
2835
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2770
|
-
tmp_0.
|
|
2836
|
+
tmp_0.j5x_1 = LinkedHashMap_init_$Create$();
|
|
2771
2837
|
var tmp_1 = this;
|
|
2772
2838
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2773
|
-
tmp_1.
|
|
2774
|
-
this.
|
|
2839
|
+
tmp_1.k5x_1 = LinkedHashMap_init_$Create$();
|
|
2840
|
+
this.l5x_1 = null;
|
|
2841
|
+
this.m5x_1 = 0;
|
|
2775
2842
|
}
|
|
2776
|
-
protoOf(RandomPoolProviderImpl).
|
|
2777
|
-
var tmp = withContext(this.
|
|
2843
|
+
protoOf(RandomPoolProviderImpl).p5w = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2844
|
+
var tmp = withContext(this.g5x_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2778
2845
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2779
2846
|
return tmp;
|
|
2780
2847
|
return tmp;
|
|
2781
2848
|
};
|
|
2782
|
-
protoOf(RandomPoolProviderImpl).
|
|
2783
|
-
var tmp = withContext(this.
|
|
2849
|
+
protoOf(RandomPoolProviderImpl).r5w = function (min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2850
|
+
var tmp = withContext(this.g5x_1, RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2784
2851
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2785
2852
|
return tmp;
|
|
2786
2853
|
return tmp;
|
|
2787
2854
|
};
|
|
2788
|
-
protoOf(RandomPoolProviderImpl).
|
|
2789
|
-
return this.
|
|
2855
|
+
protoOf(RandomPoolProviderImpl).l61 = function (gameId) {
|
|
2856
|
+
return this.k5x_1.k2(gameId);
|
|
2790
2857
|
};
|
|
2791
2858
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2792
|
-
return this.
|
|
2859
|
+
return this.l61(gameId);
|
|
2793
2860
|
};
|
|
2794
|
-
protoOf(RandomPoolProviderImpl).
|
|
2795
|
-
return this.
|
|
2861
|
+
protoOf(RandomPoolProviderImpl).m61 = function (id) {
|
|
2862
|
+
return this.j5x_1.k2(id);
|
|
2796
2863
|
};
|
|
2797
2864
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2798
|
-
return this.
|
|
2865
|
+
return this.m61(id);
|
|
2799
2866
|
};
|
|
2800
|
-
protoOf(RandomPoolProviderImpl).
|
|
2801
|
-
return this.
|
|
2867
|
+
protoOf(RandomPoolProviderImpl).n61 = function () {
|
|
2868
|
+
return this.j5x_1.m();
|
|
2802
2869
|
};
|
|
2803
2870
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2804
|
-
return this.
|
|
2871
|
+
return this.n61();
|
|
2805
2872
|
};
|
|
2806
|
-
protoOf(RandomPoolProviderImpl).
|
|
2807
|
-
var gameCardDecksRecord = this.
|
|
2873
|
+
protoOf(RandomPoolProviderImpl).s5w = function (gameId) {
|
|
2874
|
+
var gameCardDecksRecord = this.k5x_1.k2(gameId);
|
|
2808
2875
|
if (!(gameCardDecksRecord == null)) {
|
|
2809
|
-
var randomPoolValue = this.
|
|
2876
|
+
var randomPoolValue = this.j5x_1.k2(gameCardDecksRecord.poolId);
|
|
2810
2877
|
if (!(randomPoolValue == null)) {
|
|
2811
2878
|
// Inline function 'kotlin.apply' call
|
|
2812
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2813
|
-
this_0.
|
|
2814
|
-
var newPoolValue = randomPoolValue.
|
|
2815
|
-
if (newPoolValue.
|
|
2816
|
-
this.
|
|
2879
|
+
var this_0 = toMutableMap(randomPoolValue.u5w_1);
|
|
2880
|
+
this_0.o2(gameId);
|
|
2881
|
+
var newPoolValue = randomPoolValue.z5w(VOID, toMap(this_0));
|
|
2882
|
+
if (newPoolValue.u5w_1.p()) {
|
|
2883
|
+
this.j5x_1.o2(gameCardDecksRecord.poolId);
|
|
2817
2884
|
} else {
|
|
2818
|
-
var tmp0 = this.
|
|
2885
|
+
var tmp0 = this.j5x_1;
|
|
2819
2886
|
// Inline function 'kotlin.collections.set' call
|
|
2820
2887
|
var key = gameCardDecksRecord.poolId;
|
|
2821
|
-
tmp0.
|
|
2888
|
+
tmp0.n2(key, newPoolValue);
|
|
2822
2889
|
}
|
|
2823
2890
|
}
|
|
2824
2891
|
}
|
|
2825
|
-
this.
|
|
2892
|
+
this.k5x_1.o2(gameId);
|
|
2826
2893
|
};
|
|
2827
2894
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2828
2895
|
return function ($this$defaultRequest) {
|
|
2829
2896
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2830
|
-
$this$defaultRequest.
|
|
2897
|
+
$this$defaultRequest.z37($url);
|
|
2831
2898
|
return Unit_instance;
|
|
2832
2899
|
};
|
|
2833
2900
|
}
|
|
2834
2901
|
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2835
|
-
this.
|
|
2902
|
+
this.o61_1 = $externalLogger;
|
|
2836
2903
|
}
|
|
2837
|
-
protoOf(ApiCommonConfigs$setupLogging$2$1).
|
|
2838
|
-
this.
|
|
2904
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).a3z = function (message) {
|
|
2905
|
+
this.o61_1(message);
|
|
2839
2906
|
};
|
|
2840
2907
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2841
2908
|
return function ($this$install) {
|
|
2842
|
-
$this$install.
|
|
2843
|
-
$this$install.
|
|
2844
|
-
$this$install.
|
|
2909
|
+
$this$install.q40(get_DEFAULT(Companion_instance_0));
|
|
2910
|
+
$this$install.p40_1 = $config.r61_1;
|
|
2911
|
+
$this$install.q40(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2845
2912
|
return Unit_instance;
|
|
2846
2913
|
};
|
|
2847
2914
|
}
|
|
@@ -2853,32 +2920,32 @@
|
|
|
2853
2920
|
}
|
|
2854
2921
|
function ApiCommonConfigs() {
|
|
2855
2922
|
}
|
|
2856
|
-
protoOf(ApiCommonConfigs).
|
|
2857
|
-
_this__u8e3s4.
|
|
2858
|
-
this.
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2923
|
+
protoOf(ApiCommonConfigs).t61 = function (_this__u8e3s4, config, externalLogger) {
|
|
2924
|
+
_this__u8e3s4.l2z_1 = true;
|
|
2925
|
+
this.u61(_this__u8e3s4, config.p61_1);
|
|
2926
|
+
this.v61(_this__u8e3s4, config.s61_1);
|
|
2927
|
+
this.w61(_this__u8e3s4, config, externalLogger);
|
|
2861
2928
|
};
|
|
2862
|
-
protoOf(ApiCommonConfigs).
|
|
2929
|
+
protoOf(ApiCommonConfigs).u61 = function (_this__u8e3s4, url) {
|
|
2863
2930
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2864
2931
|
};
|
|
2865
|
-
protoOf(ApiCommonConfigs).
|
|
2932
|
+
protoOf(ApiCommonConfigs).w61 = function (_this__u8e3s4, config, externalLogger) {
|
|
2866
2933
|
var tmp = Companion_getInstance_1();
|
|
2867
|
-
_this__u8e3s4.
|
|
2934
|
+
_this__u8e3s4.g30(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2868
2935
|
};
|
|
2869
|
-
protoOf(ApiCommonConfigs).
|
|
2936
|
+
protoOf(ApiCommonConfigs).v61 = function (_this__u8e3s4, json) {
|
|
2870
2937
|
var tmp = Plugin_getInstance();
|
|
2871
|
-
_this__u8e3s4.
|
|
2938
|
+
_this__u8e3s4.g30(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2872
2939
|
};
|
|
2873
2940
|
var ApiCommonConfigs_instance;
|
|
2874
2941
|
function ApiCommonConfigs_getInstance() {
|
|
2875
2942
|
return ApiCommonConfigs_instance;
|
|
2876
2943
|
}
|
|
2877
2944
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2878
|
-
$this$Json.
|
|
2879
|
-
$this$Json.
|
|
2880
|
-
$this$Json.
|
|
2881
|
-
$this$Json.
|
|
2945
|
+
$this$Json.z4z_1 = true;
|
|
2946
|
+
$this$Json.y4z_1 = true;
|
|
2947
|
+
$this$Json.x4z_1 = true;
|
|
2948
|
+
$this$Json.w4z_1 = false;
|
|
2882
2949
|
return Unit_instance;
|
|
2883
2950
|
}
|
|
2884
2951
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2891,19 +2958,19 @@
|
|
|
2891
2958
|
tmp = json;
|
|
2892
2959
|
}
|
|
2893
2960
|
json = tmp;
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2896
|
-
this.
|
|
2897
|
-
this.
|
|
2961
|
+
this.p61_1 = baseUrl;
|
|
2962
|
+
this.q61_1 = timeoutMillis;
|
|
2963
|
+
this.r61_1 = loggingLevel;
|
|
2964
|
+
this.s61_1 = json;
|
|
2898
2965
|
}
|
|
2899
2966
|
protoOf(HttpParams).toString = function () {
|
|
2900
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2967
|
+
return 'HttpParams(baseUrl=' + this.p61_1 + ', timeoutMillis=' + this.q61_1.toString() + ', loggingLevel=' + this.r61_1.toString() + ', json=' + toString(this.s61_1) + ')';
|
|
2901
2968
|
};
|
|
2902
2969
|
protoOf(HttpParams).hashCode = function () {
|
|
2903
|
-
var result = getStringHashCode(this.
|
|
2904
|
-
result = imul(result, 31) + this.
|
|
2905
|
-
result = imul(result, 31) + this.
|
|
2906
|
-
result = imul(result, 31) + hashCode(this.
|
|
2970
|
+
var result = getStringHashCode(this.p61_1);
|
|
2971
|
+
result = imul(result, 31) + this.q61_1.hashCode() | 0;
|
|
2972
|
+
result = imul(result, 31) + this.r61_1.hashCode() | 0;
|
|
2973
|
+
result = imul(result, 31) + hashCode(this.s61_1) | 0;
|
|
2907
2974
|
return result;
|
|
2908
2975
|
};
|
|
2909
2976
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2912,13 +2979,13 @@
|
|
|
2912
2979
|
if (!(other instanceof HttpParams))
|
|
2913
2980
|
return false;
|
|
2914
2981
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2915
|
-
if (!(this.
|
|
2982
|
+
if (!(this.p61_1 === tmp0_other_with_cast.p61_1))
|
|
2916
2983
|
return false;
|
|
2917
|
-
if (!this.
|
|
2984
|
+
if (!this.q61_1.equals(tmp0_other_with_cast.q61_1))
|
|
2918
2985
|
return false;
|
|
2919
|
-
if (!this.
|
|
2986
|
+
if (!this.r61_1.equals(tmp0_other_with_cast.r61_1))
|
|
2920
2987
|
return false;
|
|
2921
|
-
if (!equals(this.
|
|
2988
|
+
if (!equals(this.s61_1, tmp0_other_with_cast.s61_1))
|
|
2922
2989
|
return false;
|
|
2923
2990
|
return true;
|
|
2924
2991
|
};
|
|
@@ -2942,12 +3009,12 @@
|
|
|
2942
3009
|
}
|
|
2943
3010
|
function nextBytesCopyTo($this, bytes) {
|
|
2944
3011
|
try {
|
|
2945
|
-
$this.
|
|
3012
|
+
$this.y61_1.i5r(bytes);
|
|
2946
3013
|
} catch ($p) {
|
|
2947
3014
|
if ($p instanceof SecRandomCopyException) {
|
|
2948
3015
|
var error = $p;
|
|
2949
|
-
$this.
|
|
2950
|
-
$this.
|
|
3016
|
+
$this.x61_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
3017
|
+
$this.z61_1.nh(bytes);
|
|
2951
3018
|
return Unit_instance;
|
|
2952
3019
|
} else {
|
|
2953
3020
|
throw $p;
|
|
@@ -2971,11 +3038,11 @@
|
|
|
2971
3038
|
}
|
|
2972
3039
|
function SecureRandom_0(logger) {
|
|
2973
3040
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2974
|
-
this.
|
|
2975
|
-
this.
|
|
2976
|
-
this.
|
|
3041
|
+
this.x61_1 = logger;
|
|
3042
|
+
this.y61_1 = new SecureRandom();
|
|
3043
|
+
this.z61_1 = Default_getInstance();
|
|
2977
3044
|
}
|
|
2978
|
-
protoOf(SecureRandom_0).
|
|
3045
|
+
protoOf(SecureRandom_0).lh = function (from, until) {
|
|
2979
3046
|
checkRangeBounds(this, from, until);
|
|
2980
3047
|
var n = until - from | 0;
|
|
2981
3048
|
if (n > 0 || n === -2147483648) {
|
|
@@ -3002,7 +3069,7 @@
|
|
|
3002
3069
|
}
|
|
3003
3070
|
}
|
|
3004
3071
|
};
|
|
3005
|
-
protoOf(SecureRandom_0).
|
|
3072
|
+
protoOf(SecureRandom_0).b62 = function () {
|
|
3006
3073
|
return !(nextBits(this, 1) === 0);
|
|
3007
3074
|
};
|
|
3008
3075
|
function CustomRandom() {
|
|
@@ -3023,21 +3090,21 @@
|
|
|
3023
3090
|
while (pile.m() > 0) {
|
|
3024
3091
|
var tmp0 = pile.m();
|
|
3025
3092
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3026
|
-
var b = 1 + random.
|
|
3093
|
+
var b = 1 + random.a62(VOID, twentypc) | 0;
|
|
3027
3094
|
var cards = Math.min(tmp0, b);
|
|
3028
|
-
pile2.
|
|
3095
|
+
pile2.e2(0, take(pile, cards));
|
|
3029
3096
|
// Inline function 'kotlin.repeat' call
|
|
3030
3097
|
var inductionVariable_0 = 0;
|
|
3031
3098
|
if (inductionVariable_0 < cards)
|
|
3032
3099
|
do {
|
|
3033
3100
|
var index_0 = inductionVariable_0;
|
|
3034
3101
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3035
|
-
pile.
|
|
3102
|
+
pile.h2(0);
|
|
3036
3103
|
}
|
|
3037
3104
|
while (inductionVariable_0 < cards);
|
|
3038
3105
|
}
|
|
3039
3106
|
pile.n(pile2);
|
|
3040
|
-
pile2.
|
|
3107
|
+
pile2.d2();
|
|
3041
3108
|
}
|
|
3042
3109
|
while (inductionVariable < iterations);
|
|
3043
3110
|
return pile;
|
|
@@ -3054,18 +3121,18 @@
|
|
|
3054
3121
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3055
3122
|
var mid = deck.m() / 2 | 0;
|
|
3056
3123
|
var tenpc = mid / 10 | 0;
|
|
3057
|
-
var cut = (mid - tenpc | 0) + random.
|
|
3124
|
+
var cut = (mid - tenpc | 0) + random.a62(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3058
3125
|
var deck1 = toMutableList(take(pile, cut));
|
|
3059
3126
|
var deck2 = toMutableList(drop(pile, cut));
|
|
3060
|
-
pile.
|
|
3061
|
-
var fromTop = random.
|
|
3127
|
+
pile.d2();
|
|
3128
|
+
var fromTop = random.b62();
|
|
3062
3129
|
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
3063
3130
|
if (fromTop) {
|
|
3064
|
-
pile.e(deck1.
|
|
3065
|
-
pile.e(deck2.
|
|
3131
|
+
pile.e(deck1.h2(0));
|
|
3132
|
+
pile.e(deck2.h2(0));
|
|
3066
3133
|
} else {
|
|
3067
|
-
pile.e(deck1.
|
|
3068
|
-
pile.e(deck2.
|
|
3134
|
+
pile.e(deck1.h2(get_lastIndex(deck1)));
|
|
3135
|
+
pile.e(deck2.h2(get_lastIndex(deck2)));
|
|
3069
3136
|
}
|
|
3070
3137
|
}
|
|
3071
3138
|
if (deck1.m() > 0) {
|
|
@@ -3080,22 +3147,22 @@
|
|
|
3080
3147
|
}
|
|
3081
3148
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3082
3149
|
return function ($this$install) {
|
|
3083
|
-
$this$install.
|
|
3084
|
-
$this$install.
|
|
3150
|
+
$this$install.c3k($config.q61_1);
|
|
3151
|
+
$this$install.a3k($config.q61_1);
|
|
3085
3152
|
return Unit_instance;
|
|
3086
3153
|
};
|
|
3087
3154
|
}
|
|
3088
3155
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3089
3156
|
return function ($this$HttpClient) {
|
|
3090
3157
|
var tmp = Plugin_getInstance_0();
|
|
3091
|
-
$this$HttpClient.
|
|
3092
|
-
ApiCommonConfigs_instance.
|
|
3158
|
+
$this$HttpClient.g30(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3159
|
+
ApiCommonConfigs_instance.t61($this$HttpClient, $config, $externalLogger);
|
|
3093
3160
|
return Unit_instance;
|
|
3094
3161
|
};
|
|
3095
3162
|
}
|
|
3096
3163
|
function HttpFactory() {
|
|
3097
3164
|
}
|
|
3098
|
-
protoOf(HttpFactory).
|
|
3165
|
+
protoOf(HttpFactory).d62 = function (config, externalLogger) {
|
|
3099
3166
|
var tmp = Js_instance;
|
|
3100
3167
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3101
3168
|
};
|
|
@@ -3104,15 +3171,15 @@
|
|
|
3104
3171
|
return HttpFactory_instance;
|
|
3105
3172
|
}
|
|
3106
3173
|
//region block: post-declaration
|
|
3107
|
-
protoOf($serializer).
|
|
3108
|
-
protoOf($serializer_0).
|
|
3109
|
-
protoOf($serializer_2).
|
|
3110
|
-
protoOf($serializer_3).
|
|
3111
|
-
protoOf($serializer_5).
|
|
3112
|
-
protoOf($serializer_6).
|
|
3113
|
-
protoOf(RandomPoolProviderImpl).
|
|
3114
|
-
protoOf(SecureRandom_0).
|
|
3115
|
-
protoOf(SecureRandom_0).
|
|
3174
|
+
protoOf($serializer).p4k = typeParametersSerializers;
|
|
3175
|
+
protoOf($serializer_0).p4k = typeParametersSerializers;
|
|
3176
|
+
protoOf($serializer_2).p4k = typeParametersSerializers;
|
|
3177
|
+
protoOf($serializer_3).p4k = typeParametersSerializers;
|
|
3178
|
+
protoOf($serializer_5).p4k = typeParametersSerializers;
|
|
3179
|
+
protoOf($serializer_6).p4k = typeParametersSerializers;
|
|
3180
|
+
protoOf(RandomPoolProviderImpl).q5w = getCardDeck$default;
|
|
3181
|
+
protoOf(SecureRandom_0).a62 = nextInt$default;
|
|
3182
|
+
protoOf(SecureRandom_0).c62 = shuffle;
|
|
3116
3183
|
//endregion
|
|
3117
3184
|
//region block: init
|
|
3118
3185
|
Companion_instance_1 = new Companion();
|