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