game_client_logic_deb 1.8.247 → 1.8.253
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 +58 -58
- package/Kosi-Kodein-kodein-di.js +518 -518
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1333 -1333
- package/Logic_Debertz-core.js +1370 -1331
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14122 -12987
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +66 -24
- package/Logic_Debertz-game_client.js +3154 -3154
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +492 -446
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2170 -2170
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +311 -311
- package/kotlinx-serialization-kotlinx-serialization-core.js +1756 -1756
- package/kotlinx-serialization-kotlinx-serialization-json.js +1320 -1320
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1537 -1537
- package/ktor-ktor-client-logging.js +282 -282
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +600 -600
- package/ktor-ktor-io.js +1257 -1257
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +136 -136
- package/ktor-ktor-serialization.js +62 -62
- package/ktor-ktor-utils.js +492 -492
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +159 -159
- package/raspberry-cardgame-lib-logger.js +88 -88
- package/raspberry-cardgame-lib-random.js +784 -784
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +12 -12
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
202
202
|
signed = signed === VOID ? false : signed;
|
|
203
203
|
timeoutMillis = timeoutMillis === VOID ? new Long(7000, 0) : timeoutMillis;
|
|
204
|
-
return $super === VOID ? this.
|
|
204
|
+
return $super === VOID ? this.a5q(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) : $super.a5q.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion);
|
|
205
205
|
}
|
|
206
206
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
207
207
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
do {
|
|
222
222
|
var i = inductionVariable;
|
|
223
223
|
inductionVariable = inductionVariable + -1 | 0;
|
|
224
|
-
var j = this.
|
|
224
|
+
var j = this.pg(0, i + 1 | 0);
|
|
225
225
|
list.b2(j, list.b2(i, list.o(j)));
|
|
226
226
|
}
|
|
227
227
|
while (1 <= inductionVariable);
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
233
233
|
//endregion
|
|
234
234
|
function Companion() {
|
|
235
|
-
this.
|
|
235
|
+
this.e5l_1 = 100001;
|
|
236
236
|
}
|
|
237
237
|
var Companion_instance_1;
|
|
238
238
|
function Companion_getInstance_2() {
|
|
@@ -243,16 +243,16 @@
|
|
|
243
243
|
cause = cause === VOID ? null : cause;
|
|
244
244
|
RuntimeException_init_$Init$(message, cause, this);
|
|
245
245
|
captureStack(this, RandomException);
|
|
246
|
-
this.
|
|
246
|
+
this.f5l_1 = code;
|
|
247
247
|
}
|
|
248
248
|
function CardDecksRequestUserData(id, count) {
|
|
249
249
|
this.id = id;
|
|
250
250
|
this.count = count;
|
|
251
251
|
}
|
|
252
|
-
protoOf(CardDecksRequestUserData).
|
|
252
|
+
protoOf(CardDecksRequestUserData).z5j = function () {
|
|
253
253
|
return this.id;
|
|
254
254
|
};
|
|
255
|
-
protoOf(CardDecksRequestUserData).
|
|
255
|
+
protoOf(CardDecksRequestUserData).g5l = function () {
|
|
256
256
|
return this.count;
|
|
257
257
|
};
|
|
258
258
|
protoOf(CardDecksRequestUserData).pe = function () {
|
|
@@ -261,13 +261,13 @@
|
|
|
261
261
|
protoOf(CardDecksRequestUserData).qe = function () {
|
|
262
262
|
return this.count;
|
|
263
263
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
264
|
+
protoOf(CardDecksRequestUserData).h5l = function (id, count) {
|
|
265
265
|
return new CardDecksRequestUserData(id, count);
|
|
266
266
|
};
|
|
267
267
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
268
268
|
id = id === VOID ? this.id : id;
|
|
269
269
|
count = count === VOID ? this.count : count;
|
|
270
|
-
return this.
|
|
270
|
+
return this.h5l(id, count);
|
|
271
271
|
};
|
|
272
272
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
273
273
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -293,10 +293,10 @@
|
|
|
293
293
|
this.players = players;
|
|
294
294
|
this.gameId = gameId;
|
|
295
295
|
}
|
|
296
|
-
protoOf(CardDeckRequestUserData).
|
|
296
|
+
protoOf(CardDeckRequestUserData).i5l = function () {
|
|
297
297
|
return this.players;
|
|
298
298
|
};
|
|
299
|
-
protoOf(CardDeckRequestUserData).
|
|
299
|
+
protoOf(CardDeckRequestUserData).j5l = function () {
|
|
300
300
|
return this.gameId;
|
|
301
301
|
};
|
|
302
302
|
protoOf(CardDeckRequestUserData).pe = function () {
|
|
@@ -305,13 +305,13 @@
|
|
|
305
305
|
protoOf(CardDeckRequestUserData).qe = function () {
|
|
306
306
|
return this.gameId;
|
|
307
307
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
308
|
+
protoOf(CardDeckRequestUserData).k5l = function (players, gameId) {
|
|
309
309
|
return new CardDeckRequestUserData(players, gameId);
|
|
310
310
|
};
|
|
311
311
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
312
312
|
players = players === VOID ? this.players : players;
|
|
313
313
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
314
|
-
return this.
|
|
314
|
+
return this.k5l(players, gameId);
|
|
315
315
|
};
|
|
316
316
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
317
317
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
this.id = id;
|
|
338
338
|
this.name = name;
|
|
339
339
|
}
|
|
340
|
-
protoOf(UserInfoData).
|
|
340
|
+
protoOf(UserInfoData).z5j = function () {
|
|
341
341
|
return this.id;
|
|
342
342
|
};
|
|
343
343
|
protoOf(UserInfoData).o2 = function () {
|
|
@@ -349,13 +349,13 @@
|
|
|
349
349
|
protoOf(UserInfoData).qe = function () {
|
|
350
350
|
return this.name;
|
|
351
351
|
};
|
|
352
|
-
protoOf(UserInfoData).
|
|
352
|
+
protoOf(UserInfoData).l5l = function (id, name) {
|
|
353
353
|
return new UserInfoData(id, name);
|
|
354
354
|
};
|
|
355
355
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
356
356
|
id = id === VOID ? this.id : id;
|
|
357
357
|
name = name === VOID ? this.name : name;
|
|
358
|
-
return this.
|
|
358
|
+
return this.l5l(id, name);
|
|
359
359
|
};
|
|
360
360
|
protoOf(UserInfoData).toString = function () {
|
|
361
361
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -378,19 +378,19 @@
|
|
|
378
378
|
return true;
|
|
379
379
|
};
|
|
380
380
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
381
|
+
this.m5l_1 = cardDecks;
|
|
382
|
+
this.n5l_1 = responseText;
|
|
383
|
+
this.o5l_1 = id;
|
|
384
|
+
this.p5l_1 = signature;
|
|
385
385
|
}
|
|
386
386
|
protoOf(CardDeckResult).toString = function () {
|
|
387
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
387
|
+
return 'CardDeckResult(cardDecks=' + toString(this.m5l_1) + ', responseText=' + this.n5l_1 + ', id=' + this.o5l_1 + ', signature=' + this.p5l_1 + ')';
|
|
388
388
|
};
|
|
389
389
|
protoOf(CardDeckResult).hashCode = function () {
|
|
390
|
-
var result = hashCode(this.
|
|
391
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
392
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
393
|
-
result = imul(result, 31) + (this.
|
|
390
|
+
var result = hashCode(this.m5l_1);
|
|
391
|
+
result = imul(result, 31) + getStringHashCode(this.n5l_1) | 0;
|
|
392
|
+
result = imul(result, 31) + getStringHashCode(this.o5l_1) | 0;
|
|
393
|
+
result = imul(result, 31) + (this.p5l_1 == null ? 0 : getStringHashCode(this.p5l_1)) | 0;
|
|
394
394
|
return result;
|
|
395
395
|
};
|
|
396
396
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -399,13 +399,13 @@
|
|
|
399
399
|
if (!(other instanceof CardDeckResult))
|
|
400
400
|
return false;
|
|
401
401
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
402
|
-
if (!equals(this.
|
|
402
|
+
if (!equals(this.m5l_1, tmp0_other_with_cast.m5l_1))
|
|
403
403
|
return false;
|
|
404
|
-
if (!(this.
|
|
404
|
+
if (!(this.n5l_1 === tmp0_other_with_cast.n5l_1))
|
|
405
405
|
return false;
|
|
406
|
-
if (!(this.
|
|
406
|
+
if (!(this.o5l_1 === tmp0_other_with_cast.o5l_1))
|
|
407
407
|
return false;
|
|
408
|
-
if (!(this.
|
|
408
|
+
if (!(this.p5l_1 == tmp0_other_with_cast.p5l_1))
|
|
409
409
|
return false;
|
|
410
410
|
return true;
|
|
411
411
|
};
|
|
@@ -428,16 +428,16 @@
|
|
|
428
428
|
this.userData = userData;
|
|
429
429
|
this.rounds = rounds;
|
|
430
430
|
}
|
|
431
|
-
protoOf(GameCardDecksRecord).
|
|
431
|
+
protoOf(GameCardDecksRecord).q5l = function () {
|
|
432
432
|
return this.poolId;
|
|
433
433
|
};
|
|
434
|
-
protoOf(GameCardDecksRecord).
|
|
434
|
+
protoOf(GameCardDecksRecord).r5l = function () {
|
|
435
435
|
return this.signature;
|
|
436
436
|
};
|
|
437
|
-
protoOf(GameCardDecksRecord).
|
|
437
|
+
protoOf(GameCardDecksRecord).s5l = function () {
|
|
438
438
|
return this.userData;
|
|
439
439
|
};
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
440
|
+
protoOf(GameCardDecksRecord).t5l = function () {
|
|
441
441
|
return this.rounds;
|
|
442
442
|
};
|
|
443
443
|
protoOf(GameCardDecksRecord).pe = function () {
|
|
@@ -446,13 +446,13 @@
|
|
|
446
446
|
protoOf(GameCardDecksRecord).qe = function () {
|
|
447
447
|
return this.signature;
|
|
448
448
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
449
|
+
protoOf(GameCardDecksRecord).hk = function () {
|
|
450
450
|
return this.userData;
|
|
451
451
|
};
|
|
452
|
-
protoOf(GameCardDecksRecord).
|
|
452
|
+
protoOf(GameCardDecksRecord).u5l = function () {
|
|
453
453
|
return this.rounds;
|
|
454
454
|
};
|
|
455
|
-
protoOf(GameCardDecksRecord).
|
|
455
|
+
protoOf(GameCardDecksRecord).v5l = function (poolId, signature, userData, rounds) {
|
|
456
456
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
457
457
|
};
|
|
458
458
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
signature = signature === VOID ? this.signature : signature;
|
|
461
461
|
userData = userData === VOID ? this.userData : userData;
|
|
462
462
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
463
|
-
return this.
|
|
463
|
+
return this.v5l(poolId, signature, userData, rounds);
|
|
464
464
|
};
|
|
465
465
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
466
466
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -492,10 +492,10 @@
|
|
|
492
492
|
this.cardDeckIndex = cardDeckIndex;
|
|
493
493
|
this.cards = cards;
|
|
494
494
|
}
|
|
495
|
-
protoOf(GameCardDeckData).
|
|
495
|
+
protoOf(GameCardDeckData).w5l = function () {
|
|
496
496
|
return this.cardDeckIndex;
|
|
497
497
|
};
|
|
498
|
-
protoOf(GameCardDeckData).
|
|
498
|
+
protoOf(GameCardDeckData).x5l = function () {
|
|
499
499
|
return this.cards;
|
|
500
500
|
};
|
|
501
501
|
protoOf(GameCardDeckData).pe = function () {
|
|
@@ -504,13 +504,13 @@
|
|
|
504
504
|
protoOf(GameCardDeckData).qe = function () {
|
|
505
505
|
return this.cards;
|
|
506
506
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).y5l = function (cardDeckIndex, cards) {
|
|
508
508
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
509
509
|
};
|
|
510
510
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
511
511
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
512
512
|
cards = cards === VOID ? this.cards : cards;
|
|
513
|
-
return this.
|
|
513
|
+
return this.y5l(cardDeckIndex, cards);
|
|
514
514
|
};
|
|
515
515
|
protoOf(GameCardDeckData).toString = function () {
|
|
516
516
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -537,10 +537,10 @@
|
|
|
537
537
|
this.baseUrl = baseUrl;
|
|
538
538
|
this.timeoutMillis = timeoutMillis;
|
|
539
539
|
}
|
|
540
|
-
protoOf(HttpConfig).
|
|
540
|
+
protoOf(HttpConfig).z5l = function () {
|
|
541
541
|
return this.baseUrl;
|
|
542
542
|
};
|
|
543
|
-
protoOf(HttpConfig).
|
|
543
|
+
protoOf(HttpConfig).a5m = function () {
|
|
544
544
|
return this.timeoutMillis;
|
|
545
545
|
};
|
|
546
546
|
protoOf(HttpConfig).pe = function () {
|
|
@@ -549,13 +549,13 @@
|
|
|
549
549
|
protoOf(HttpConfig).qe = function () {
|
|
550
550
|
return this.timeoutMillis;
|
|
551
551
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
552
|
+
protoOf(HttpConfig).h5l = function (baseUrl, timeoutMillis) {
|
|
553
553
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
554
554
|
};
|
|
555
555
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
556
556
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
557
557
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
558
|
-
return this.
|
|
558
|
+
return this.h5l(baseUrl, timeoutMillis);
|
|
559
559
|
};
|
|
560
560
|
protoOf(HttpConfig).toString = function () {
|
|
561
561
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -590,16 +590,16 @@
|
|
|
590
590
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
591
591
|
this.httpConfig = httpConfig;
|
|
592
592
|
}
|
|
593
|
-
protoOf(RandomOrgConfig).
|
|
593
|
+
protoOf(RandomOrgConfig).b5m = function () {
|
|
594
594
|
return this.apiKey;
|
|
595
595
|
};
|
|
596
|
-
protoOf(RandomOrgConfig).
|
|
596
|
+
protoOf(RandomOrgConfig).c5m = function () {
|
|
597
597
|
return this.poolSize;
|
|
598
598
|
};
|
|
599
|
-
protoOf(RandomOrgConfig).
|
|
599
|
+
protoOf(RandomOrgConfig).d5m = function () {
|
|
600
600
|
return this.thresholdForUsedPool;
|
|
601
601
|
};
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
602
|
+
protoOf(RandomOrgConfig).e5m = function () {
|
|
603
603
|
return this.httpConfig;
|
|
604
604
|
};
|
|
605
605
|
protoOf(RandomOrgConfig).pe = function () {
|
|
@@ -608,13 +608,13 @@
|
|
|
608
608
|
protoOf(RandomOrgConfig).qe = function () {
|
|
609
609
|
return this.poolSize;
|
|
610
610
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
611
|
+
protoOf(RandomOrgConfig).hk = function () {
|
|
612
612
|
return this.thresholdForUsedPool;
|
|
613
613
|
};
|
|
614
|
-
protoOf(RandomOrgConfig).
|
|
614
|
+
protoOf(RandomOrgConfig).u5l = function () {
|
|
615
615
|
return this.httpConfig;
|
|
616
616
|
};
|
|
617
|
-
protoOf(RandomOrgConfig).
|
|
617
|
+
protoOf(RandomOrgConfig).f5m = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
618
618
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
619
619
|
};
|
|
620
620
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
623
623
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
624
624
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
625
|
-
return this.
|
|
625
|
+
return this.f5m(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
626
626
|
};
|
|
627
627
|
protoOf(RandomOrgConfig).toString = function () {
|
|
628
628
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -659,59 +659,59 @@
|
|
|
659
659
|
function $serializer() {
|
|
660
660
|
$serializer_instance = this;
|
|
661
661
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
662
|
-
tmp0_serialDesc.
|
|
663
|
-
tmp0_serialDesc.
|
|
664
|
-
this.
|
|
665
|
-
}
|
|
666
|
-
protoOf($serializer).
|
|
667
|
-
var tmp0_desc = this.
|
|
668
|
-
var tmp1_output = encoder.
|
|
669
|
-
tmp1_output.
|
|
670
|
-
tmp1_output.
|
|
671
|
-
tmp1_output.
|
|
672
|
-
};
|
|
673
|
-
protoOf($serializer).
|
|
674
|
-
return this.
|
|
675
|
-
};
|
|
676
|
-
protoOf($serializer).
|
|
677
|
-
var tmp0_desc = this.
|
|
662
|
+
tmp0_serialDesc.r4e('jsonrpc', false);
|
|
663
|
+
tmp0_serialDesc.r4e('error', false);
|
|
664
|
+
this.g5m_1 = tmp0_serialDesc;
|
|
665
|
+
}
|
|
666
|
+
protoOf($serializer).h5m = function (encoder, value) {
|
|
667
|
+
var tmp0_desc = this.g5m_1;
|
|
668
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
669
|
+
tmp1_output.r48(tmp0_desc, 0, value.i5m_1);
|
|
670
|
+
tmp1_output.v48(tmp0_desc, 1, $serializer_getInstance_0(), value.j5m_1);
|
|
671
|
+
tmp1_output.e47(tmp0_desc);
|
|
672
|
+
};
|
|
673
|
+
protoOf($serializer).q43 = function (encoder, value) {
|
|
674
|
+
return this.h5m(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
675
|
+
};
|
|
676
|
+
protoOf($serializer).r43 = function (decoder) {
|
|
677
|
+
var tmp0_desc = this.g5m_1;
|
|
678
678
|
var tmp1_flag = true;
|
|
679
679
|
var tmp2_index = 0;
|
|
680
680
|
var tmp3_bitMask0 = 0;
|
|
681
681
|
var tmp4_local0 = null;
|
|
682
682
|
var tmp5_local1 = null;
|
|
683
|
-
var tmp6_input = decoder.
|
|
684
|
-
if (tmp6_input.
|
|
685
|
-
tmp4_local0 = tmp6_input.
|
|
683
|
+
var tmp6_input = decoder.d47(tmp0_desc);
|
|
684
|
+
if (tmp6_input.s47()) {
|
|
685
|
+
tmp4_local0 = tmp6_input.n47(tmp0_desc, 0);
|
|
686
686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
687
|
-
tmp5_local1 = tmp6_input.
|
|
687
|
+
tmp5_local1 = tmp6_input.r47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
688
688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
689
689
|
} else
|
|
690
690
|
while (tmp1_flag) {
|
|
691
|
-
tmp2_index = tmp6_input.
|
|
691
|
+
tmp2_index = tmp6_input.t47(tmp0_desc);
|
|
692
692
|
switch (tmp2_index) {
|
|
693
693
|
case -1:
|
|
694
694
|
tmp1_flag = false;
|
|
695
695
|
break;
|
|
696
696
|
case 0:
|
|
697
|
-
tmp4_local0 = tmp6_input.
|
|
697
|
+
tmp4_local0 = tmp6_input.n47(tmp0_desc, 0);
|
|
698
698
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
699
699
|
break;
|
|
700
700
|
case 1:
|
|
701
|
-
tmp5_local1 = tmp6_input.
|
|
701
|
+
tmp5_local1 = tmp6_input.r47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
702
702
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
703
703
|
break;
|
|
704
704
|
default:
|
|
705
705
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
tmp6_input.
|
|
708
|
+
tmp6_input.e47(tmp0_desc);
|
|
709
709
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
710
710
|
};
|
|
711
|
-
protoOf($serializer).
|
|
712
|
-
return this.
|
|
711
|
+
protoOf($serializer).p43 = function () {
|
|
712
|
+
return this.g5m_1;
|
|
713
713
|
};
|
|
714
|
-
protoOf($serializer).
|
|
714
|
+
protoOf($serializer).g4f = function () {
|
|
715
715
|
// Inline function 'kotlin.arrayOf' call
|
|
716
716
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
717
717
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -725,25 +725,25 @@
|
|
|
725
725
|
}
|
|
726
726
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
727
727
|
if (!(3 === (3 & seen0))) {
|
|
728
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().g5m_1);
|
|
729
729
|
}
|
|
730
|
-
$this.
|
|
731
|
-
$this.
|
|
730
|
+
$this.i5m_1 = jsonrpc;
|
|
731
|
+
$this.j5m_1 = error;
|
|
732
732
|
return $this;
|
|
733
733
|
}
|
|
734
734
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
735
735
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
736
736
|
}
|
|
737
737
|
function ErrorResponseDto(jsonrpc, error) {
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
738
|
+
this.i5m_1 = jsonrpc;
|
|
739
|
+
this.j5m_1 = error;
|
|
740
740
|
}
|
|
741
741
|
protoOf(ErrorResponseDto).toString = function () {
|
|
742
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
742
|
+
return 'ErrorResponseDto(jsonrpc=' + this.i5m_1 + ', error=' + toString_0(this.j5m_1) + ')';
|
|
743
743
|
};
|
|
744
744
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
745
|
-
var result = getStringHashCode(this.
|
|
746
|
-
result = imul(result, 31) + (this.
|
|
745
|
+
var result = getStringHashCode(this.i5m_1);
|
|
746
|
+
result = imul(result, 31) + (this.j5m_1 == null ? 0 : this.j5m_1.hashCode()) | 0;
|
|
747
747
|
return result;
|
|
748
748
|
};
|
|
749
749
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -752,68 +752,68 @@
|
|
|
752
752
|
if (!(other instanceof ErrorResponseDto))
|
|
753
753
|
return false;
|
|
754
754
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
755
|
-
if (!(this.
|
|
755
|
+
if (!(this.i5m_1 === tmp0_other_with_cast.i5m_1))
|
|
756
756
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.j5m_1, tmp0_other_with_cast.j5m_1))
|
|
758
758
|
return false;
|
|
759
759
|
return true;
|
|
760
760
|
};
|
|
761
761
|
function $serializer_0() {
|
|
762
762
|
$serializer_instance_0 = this;
|
|
763
763
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
764
|
-
tmp0_serialDesc.
|
|
765
|
-
tmp0_serialDesc.
|
|
766
|
-
this.
|
|
767
|
-
}
|
|
768
|
-
protoOf($serializer_0).
|
|
769
|
-
var tmp0_desc = this.
|
|
770
|
-
var tmp1_output = encoder.
|
|
771
|
-
tmp1_output.
|
|
772
|
-
tmp1_output.
|
|
773
|
-
tmp1_output.
|
|
774
|
-
};
|
|
775
|
-
protoOf($serializer_0).
|
|
776
|
-
return this.
|
|
777
|
-
};
|
|
778
|
-
protoOf($serializer_0).
|
|
779
|
-
var tmp0_desc = this.
|
|
764
|
+
tmp0_serialDesc.r4e('code', false);
|
|
765
|
+
tmp0_serialDesc.r4e('message', false);
|
|
766
|
+
this.k5m_1 = tmp0_serialDesc;
|
|
767
|
+
}
|
|
768
|
+
protoOf($serializer_0).l5m = function (encoder, value) {
|
|
769
|
+
var tmp0_desc = this.k5m_1;
|
|
770
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
771
|
+
tmp1_output.v48(tmp0_desc, 0, IntSerializer_getInstance(), value.m5m_1);
|
|
772
|
+
tmp1_output.v48(tmp0_desc, 1, StringSerializer_getInstance(), value.n5m_1);
|
|
773
|
+
tmp1_output.e47(tmp0_desc);
|
|
774
|
+
};
|
|
775
|
+
protoOf($serializer_0).q43 = function (encoder, value) {
|
|
776
|
+
return this.l5m(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
777
|
+
};
|
|
778
|
+
protoOf($serializer_0).r43 = function (decoder) {
|
|
779
|
+
var tmp0_desc = this.k5m_1;
|
|
780
780
|
var tmp1_flag = true;
|
|
781
781
|
var tmp2_index = 0;
|
|
782
782
|
var tmp3_bitMask0 = 0;
|
|
783
783
|
var tmp4_local0 = null;
|
|
784
784
|
var tmp5_local1 = null;
|
|
785
|
-
var tmp6_input = decoder.
|
|
786
|
-
if (tmp6_input.
|
|
787
|
-
tmp4_local0 = tmp6_input.
|
|
785
|
+
var tmp6_input = decoder.d47(tmp0_desc);
|
|
786
|
+
if (tmp6_input.s47()) {
|
|
787
|
+
tmp4_local0 = tmp6_input.r47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
788
788
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
789
|
-
tmp5_local1 = tmp6_input.
|
|
789
|
+
tmp5_local1 = tmp6_input.r47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
790
790
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
791
791
|
} else
|
|
792
792
|
while (tmp1_flag) {
|
|
793
|
-
tmp2_index = tmp6_input.
|
|
793
|
+
tmp2_index = tmp6_input.t47(tmp0_desc);
|
|
794
794
|
switch (tmp2_index) {
|
|
795
795
|
case -1:
|
|
796
796
|
tmp1_flag = false;
|
|
797
797
|
break;
|
|
798
798
|
case 0:
|
|
799
|
-
tmp4_local0 = tmp6_input.
|
|
799
|
+
tmp4_local0 = tmp6_input.r47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
800
800
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
801
801
|
break;
|
|
802
802
|
case 1:
|
|
803
|
-
tmp5_local1 = tmp6_input.
|
|
803
|
+
tmp5_local1 = tmp6_input.r47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
804
804
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
805
805
|
break;
|
|
806
806
|
default:
|
|
807
807
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
tmp6_input.
|
|
810
|
+
tmp6_input.e47(tmp0_desc);
|
|
811
811
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
812
812
|
};
|
|
813
|
-
protoOf($serializer_0).
|
|
814
|
-
return this.
|
|
813
|
+
protoOf($serializer_0).p43 = function () {
|
|
814
|
+
return this.k5m_1;
|
|
815
815
|
};
|
|
816
|
-
protoOf($serializer_0).
|
|
816
|
+
protoOf($serializer_0).g4f = function () {
|
|
817
817
|
// Inline function 'kotlin.arrayOf' call
|
|
818
818
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
819
819
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -827,10 +827,10 @@
|
|
|
827
827
|
}
|
|
828
828
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
829
829
|
if (!(3 === (3 & seen0))) {
|
|
830
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
830
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().k5m_1);
|
|
831
831
|
}
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
832
|
+
$this.m5m_1 = code;
|
|
833
|
+
$this.n5m_1 = message;
|
|
834
834
|
return $this;
|
|
835
835
|
}
|
|
836
836
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -839,11 +839,11 @@
|
|
|
839
839
|
function ErrorDto() {
|
|
840
840
|
}
|
|
841
841
|
protoOf(ErrorDto).toString = function () {
|
|
842
|
-
return 'ErrorDto(code=' + this.
|
|
842
|
+
return 'ErrorDto(code=' + this.m5m_1 + ', message=' + this.n5m_1 + ')';
|
|
843
843
|
};
|
|
844
844
|
protoOf(ErrorDto).hashCode = function () {
|
|
845
|
-
var result = this.
|
|
846
|
-
result = imul(result, 31) + (this.
|
|
845
|
+
var result = this.m5m_1 == null ? 0 : this.m5m_1;
|
|
846
|
+
result = imul(result, 31) + (this.n5m_1 == null ? 0 : getStringHashCode(this.n5m_1)) | 0;
|
|
847
847
|
return result;
|
|
848
848
|
};
|
|
849
849
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -852,15 +852,15 @@
|
|
|
852
852
|
if (!(other instanceof ErrorDto))
|
|
853
853
|
return false;
|
|
854
854
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
855
|
-
if (!(this.
|
|
855
|
+
if (!(this.m5m_1 == tmp0_other_with_cast.m5m_1))
|
|
856
856
|
return false;
|
|
857
|
-
if (!(this.
|
|
857
|
+
if (!(this.n5m_1 == tmp0_other_with_cast.n5m_1))
|
|
858
858
|
return false;
|
|
859
859
|
return true;
|
|
860
860
|
};
|
|
861
861
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
862
862
|
$serializer_1.call($this);
|
|
863
|
-
$this.
|
|
863
|
+
$this.p5m_1 = typeSerial0;
|
|
864
864
|
return $this;
|
|
865
865
|
}
|
|
866
866
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -869,17 +869,17 @@
|
|
|
869
869
|
function Companion_2() {
|
|
870
870
|
Companion_instance_4 = this;
|
|
871
871
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
872
|
-
tmp0_serialDesc.
|
|
873
|
-
tmp0_serialDesc.
|
|
874
|
-
tmp0_serialDesc.
|
|
875
|
-
tmp0_serialDesc.
|
|
876
|
-
this.
|
|
872
|
+
tmp0_serialDesc.r4e('jsonrpc', false);
|
|
873
|
+
tmp0_serialDesc.r4e('method', false);
|
|
874
|
+
tmp0_serialDesc.r4e('params', false);
|
|
875
|
+
tmp0_serialDesc.r4e('id', false);
|
|
876
|
+
this.q5m_1 = tmp0_serialDesc;
|
|
877
877
|
}
|
|
878
|
-
protoOf(Companion_2).
|
|
878
|
+
protoOf(Companion_2).r5m = function (typeSerial0) {
|
|
879
879
|
return $serializer_init_$Create$(typeSerial0);
|
|
880
880
|
};
|
|
881
|
-
protoOf(Companion_2).
|
|
882
|
-
return this.
|
|
881
|
+
protoOf(Companion_2).r4f = function (typeParamsSerializers) {
|
|
882
|
+
return this.r5m(typeParamsSerializers[0]);
|
|
883
883
|
};
|
|
884
884
|
var Companion_instance_4;
|
|
885
885
|
function Companion_getInstance_5() {
|
|
@@ -889,26 +889,26 @@
|
|
|
889
889
|
}
|
|
890
890
|
function $serializer_1() {
|
|
891
891
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
892
|
-
tmp0_serialDesc.
|
|
893
|
-
tmp0_serialDesc.
|
|
894
|
-
tmp0_serialDesc.
|
|
895
|
-
tmp0_serialDesc.
|
|
896
|
-
this.
|
|
897
|
-
}
|
|
898
|
-
protoOf($serializer_1).
|
|
899
|
-
var tmp0_desc = this.
|
|
900
|
-
var tmp1_output = encoder.
|
|
901
|
-
tmp1_output.
|
|
902
|
-
tmp1_output.
|
|
903
|
-
tmp1_output.
|
|
904
|
-
tmp1_output.
|
|
905
|
-
tmp1_output.
|
|
906
|
-
};
|
|
907
|
-
protoOf($serializer_1).
|
|
908
|
-
return this.
|
|
909
|
-
};
|
|
910
|
-
protoOf($serializer_1).
|
|
911
|
-
var tmp0_desc = this.
|
|
892
|
+
tmp0_serialDesc.r4e('jsonrpc', false);
|
|
893
|
+
tmp0_serialDesc.r4e('method', false);
|
|
894
|
+
tmp0_serialDesc.r4e('params', false);
|
|
895
|
+
tmp0_serialDesc.r4e('id', false);
|
|
896
|
+
this.o5m_1 = tmp0_serialDesc;
|
|
897
|
+
}
|
|
898
|
+
protoOf($serializer_1).s5m = function (encoder, value) {
|
|
899
|
+
var tmp0_desc = this.o5m_1;
|
|
900
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
901
|
+
tmp1_output.r48(tmp0_desc, 0, value.t5m_1);
|
|
902
|
+
tmp1_output.r48(tmp0_desc, 1, value.u5m_1);
|
|
903
|
+
tmp1_output.t48(tmp0_desc, 2, this.p5m_1, value.v5m_1);
|
|
904
|
+
tmp1_output.r48(tmp0_desc, 3, value.w5m_1);
|
|
905
|
+
tmp1_output.e47(tmp0_desc);
|
|
906
|
+
};
|
|
907
|
+
protoOf($serializer_1).q43 = function (encoder, value) {
|
|
908
|
+
return this.s5m(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
909
|
+
};
|
|
910
|
+
protoOf($serializer_1).r43 = function (decoder) {
|
|
911
|
+
var tmp0_desc = this.o5m_1;
|
|
912
912
|
var tmp1_flag = true;
|
|
913
913
|
var tmp2_index = 0;
|
|
914
914
|
var tmp3_bitMask0 = 0;
|
|
@@ -916,69 +916,69 @@
|
|
|
916
916
|
var tmp5_local1 = null;
|
|
917
917
|
var tmp6_local2 = null;
|
|
918
918
|
var tmp7_local3 = null;
|
|
919
|
-
var tmp8_input = decoder.
|
|
920
|
-
if (tmp8_input.
|
|
921
|
-
tmp4_local0 = tmp8_input.
|
|
919
|
+
var tmp8_input = decoder.d47(tmp0_desc);
|
|
920
|
+
if (tmp8_input.s47()) {
|
|
921
|
+
tmp4_local0 = tmp8_input.n47(tmp0_desc, 0);
|
|
922
922
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
923
|
-
tmp5_local1 = tmp8_input.
|
|
923
|
+
tmp5_local1 = tmp8_input.n47(tmp0_desc, 1);
|
|
924
924
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
925
|
-
tmp6_local2 = tmp8_input.
|
|
925
|
+
tmp6_local2 = tmp8_input.p47(tmp0_desc, 2, this.p5m_1, tmp6_local2);
|
|
926
926
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
927
|
-
tmp7_local3 = tmp8_input.
|
|
927
|
+
tmp7_local3 = tmp8_input.n47(tmp0_desc, 3);
|
|
928
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
929
929
|
} else
|
|
930
930
|
while (tmp1_flag) {
|
|
931
|
-
tmp2_index = tmp8_input.
|
|
931
|
+
tmp2_index = tmp8_input.t47(tmp0_desc);
|
|
932
932
|
switch (tmp2_index) {
|
|
933
933
|
case -1:
|
|
934
934
|
tmp1_flag = false;
|
|
935
935
|
break;
|
|
936
936
|
case 0:
|
|
937
|
-
tmp4_local0 = tmp8_input.
|
|
937
|
+
tmp4_local0 = tmp8_input.n47(tmp0_desc, 0);
|
|
938
938
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
939
939
|
break;
|
|
940
940
|
case 1:
|
|
941
|
-
tmp5_local1 = tmp8_input.
|
|
941
|
+
tmp5_local1 = tmp8_input.n47(tmp0_desc, 1);
|
|
942
942
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
943
943
|
break;
|
|
944
944
|
case 2:
|
|
945
|
-
tmp6_local2 = tmp8_input.
|
|
945
|
+
tmp6_local2 = tmp8_input.p47(tmp0_desc, 2, this.p5m_1, tmp6_local2);
|
|
946
946
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
947
947
|
break;
|
|
948
948
|
case 3:
|
|
949
|
-
tmp7_local3 = tmp8_input.
|
|
949
|
+
tmp7_local3 = tmp8_input.n47(tmp0_desc, 3);
|
|
950
950
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
951
951
|
break;
|
|
952
952
|
default:
|
|
953
953
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
tmp8_input.
|
|
956
|
+
tmp8_input.e47(tmp0_desc);
|
|
957
957
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
958
958
|
};
|
|
959
|
-
protoOf($serializer_1).
|
|
960
|
-
return this.
|
|
959
|
+
protoOf($serializer_1).p43 = function () {
|
|
960
|
+
return this.o5m_1;
|
|
961
961
|
};
|
|
962
|
-
protoOf($serializer_1).
|
|
962
|
+
protoOf($serializer_1).g4f = function () {
|
|
963
963
|
// Inline function 'kotlin.arrayOf' call
|
|
964
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
965
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
966
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
966
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.p5m_1, StringSerializer_getInstance()];
|
|
967
967
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
968
|
+
protoOf($serializer_1).h4f = function () {
|
|
969
969
|
// Inline function 'kotlin.arrayOf' call
|
|
970
970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
971
|
// Inline function 'kotlin.js.asDynamic' call
|
|
972
|
-
return [this.
|
|
972
|
+
return [this.p5m_1];
|
|
973
973
|
};
|
|
974
974
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
975
975
|
if (!(15 === (15 & seen0))) {
|
|
976
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
976
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().q5m_1);
|
|
977
977
|
}
|
|
978
|
-
$this.
|
|
979
|
-
$this.
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
978
|
+
$this.t5m_1 = jsonrpc;
|
|
979
|
+
$this.u5m_1 = method;
|
|
980
|
+
$this.v5m_1 = params;
|
|
981
|
+
$this.w5m_1 = id;
|
|
982
982
|
return $this;
|
|
983
983
|
}
|
|
984
984
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -986,19 +986,19 @@
|
|
|
986
986
|
}
|
|
987
987
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
988
988
|
Companion_getInstance_5();
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
989
|
+
this.t5m_1 = jsonrpc;
|
|
990
|
+
this.u5m_1 = method;
|
|
991
|
+
this.v5m_1 = params;
|
|
992
|
+
this.w5m_1 = id;
|
|
993
993
|
}
|
|
994
994
|
protoOf(RandomRequestDto).toString = function () {
|
|
995
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
995
|
+
return 'RandomRequestDto(jsonrpc=' + this.t5m_1 + ', method=' + this.u5m_1 + ', params=' + toString(this.v5m_1) + ', id=' + this.w5m_1 + ')';
|
|
996
996
|
};
|
|
997
997
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
998
|
-
var result = getStringHashCode(this.
|
|
999
|
-
result = imul(result, 31) + getStringHashCode(this.s5m_1) | 0;
|
|
1000
|
-
result = imul(result, 31) + hashCode(this.t5m_1) | 0;
|
|
998
|
+
var result = getStringHashCode(this.t5m_1);
|
|
1001
999
|
result = imul(result, 31) + getStringHashCode(this.u5m_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + hashCode(this.v5m_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + getStringHashCode(this.w5m_1) | 0;
|
|
1002
1002
|
return result;
|
|
1003
1003
|
};
|
|
1004
1004
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1007,13 +1007,13 @@
|
|
|
1007
1007
|
if (!(other instanceof RandomRequestDto))
|
|
1008
1008
|
return false;
|
|
1009
1009
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1010
|
-
if (!(this.
|
|
1010
|
+
if (!(this.t5m_1 === tmp0_other_with_cast.t5m_1))
|
|
1011
1011
|
return false;
|
|
1012
|
-
if (!(this.
|
|
1012
|
+
if (!(this.u5m_1 === tmp0_other_with_cast.u5m_1))
|
|
1013
1013
|
return false;
|
|
1014
|
-
if (!equals(this.
|
|
1014
|
+
if (!equals(this.v5m_1, tmp0_other_with_cast.v5m_1))
|
|
1015
1015
|
return false;
|
|
1016
|
-
if (!(this.
|
|
1016
|
+
if (!(this.w5m_1 === tmp0_other_with_cast.w5m_1))
|
|
1017
1017
|
return false;
|
|
1018
1018
|
return true;
|
|
1019
1019
|
};
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
// Inline function 'kotlin.arrayOf' call
|
|
1024
1024
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1025
1025
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1026
|
-
tmp.
|
|
1026
|
+
tmp.x5m_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1027
1027
|
}
|
|
1028
1028
|
var Companion_instance_5;
|
|
1029
1029
|
function Companion_getInstance_6() {
|
|
@@ -1034,35 +1034,35 @@
|
|
|
1034
1034
|
function $serializer_2() {
|
|
1035
1035
|
$serializer_instance_1 = this;
|
|
1036
1036
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1037
|
-
tmp0_serialDesc.
|
|
1038
|
-
tmp0_serialDesc.
|
|
1039
|
-
tmp0_serialDesc.
|
|
1040
|
-
tmp0_serialDesc.
|
|
1041
|
-
tmp0_serialDesc.
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
this.
|
|
1046
|
-
}
|
|
1047
|
-
protoOf($serializer_2).
|
|
1048
|
-
var tmp0_desc = this.
|
|
1049
|
-
var tmp1_output = encoder.
|
|
1050
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1051
|
-
tmp1_output.
|
|
1052
|
-
tmp1_output.
|
|
1053
|
-
tmp1_output.
|
|
1054
|
-
tmp1_output.
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
tmp1_output.
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
};
|
|
1061
|
-
protoOf($serializer_2).
|
|
1062
|
-
return this.
|
|
1063
|
-
};
|
|
1064
|
-
protoOf($serializer_2).
|
|
1065
|
-
var tmp0_desc = this.
|
|
1037
|
+
tmp0_serialDesc.r4e('apiKey', false);
|
|
1038
|
+
tmp0_serialDesc.r4e('n', false);
|
|
1039
|
+
tmp0_serialDesc.r4e('length', false);
|
|
1040
|
+
tmp0_serialDesc.r4e('min', false);
|
|
1041
|
+
tmp0_serialDesc.r4e('max', false);
|
|
1042
|
+
tmp0_serialDesc.r4e('replacement', false);
|
|
1043
|
+
tmp0_serialDesc.r4e('ticketId', false);
|
|
1044
|
+
tmp0_serialDesc.r4e('userData', false);
|
|
1045
|
+
this.y5m_1 = tmp0_serialDesc;
|
|
1046
|
+
}
|
|
1047
|
+
protoOf($serializer_2).z5m = function (encoder, value) {
|
|
1048
|
+
var tmp0_desc = this.y5m_1;
|
|
1049
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
1050
|
+
var tmp2_cached = Companion_getInstance_6().x5m_1;
|
|
1051
|
+
tmp1_output.r48(tmp0_desc, 0, value.a5n_1);
|
|
1052
|
+
tmp1_output.m48(tmp0_desc, 1, value.b5n_1);
|
|
1053
|
+
tmp1_output.t48(tmp0_desc, 2, tmp2_cached[2], value.c5n_1);
|
|
1054
|
+
tmp1_output.m48(tmp0_desc, 3, value.d5n_1);
|
|
1055
|
+
tmp1_output.m48(tmp0_desc, 4, value.e5n_1);
|
|
1056
|
+
tmp1_output.j48(tmp0_desc, 5, value.f5n_1);
|
|
1057
|
+
tmp1_output.v48(tmp0_desc, 6, StringSerializer_getInstance(), value.g5n_1);
|
|
1058
|
+
tmp1_output.v48(tmp0_desc, 7, $serializer_getInstance_2(), value.h5n_1);
|
|
1059
|
+
tmp1_output.e47(tmp0_desc);
|
|
1060
|
+
};
|
|
1061
|
+
protoOf($serializer_2).q43 = function (encoder, value) {
|
|
1062
|
+
return this.z5m(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1063
|
+
};
|
|
1064
|
+
protoOf($serializer_2).r43 = function (decoder) {
|
|
1065
|
+
var tmp0_desc = this.y5m_1;
|
|
1066
1066
|
var tmp1_flag = true;
|
|
1067
1067
|
var tmp2_index = 0;
|
|
1068
1068
|
var tmp3_bitMask0 = 0;
|
|
@@ -1074,76 +1074,76 @@
|
|
|
1074
1074
|
var tmp9_local5 = false;
|
|
1075
1075
|
var tmp10_local6 = null;
|
|
1076
1076
|
var tmp11_local7 = null;
|
|
1077
|
-
var tmp12_input = decoder.
|
|
1078
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1079
|
-
if (tmp12_input.
|
|
1080
|
-
tmp4_local0 = tmp12_input.
|
|
1077
|
+
var tmp12_input = decoder.d47(tmp0_desc);
|
|
1078
|
+
var tmp13_cached = Companion_getInstance_6().x5m_1;
|
|
1079
|
+
if (tmp12_input.s47()) {
|
|
1080
|
+
tmp4_local0 = tmp12_input.n47(tmp0_desc, 0);
|
|
1081
1081
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1082
|
-
tmp5_local1 = tmp12_input.
|
|
1082
|
+
tmp5_local1 = tmp12_input.i47(tmp0_desc, 1);
|
|
1083
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1084
|
-
tmp6_local2 = tmp12_input.
|
|
1084
|
+
tmp6_local2 = tmp12_input.p47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1085
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1086
|
-
tmp7_local3 = tmp12_input.
|
|
1086
|
+
tmp7_local3 = tmp12_input.i47(tmp0_desc, 3);
|
|
1087
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1088
|
-
tmp8_local4 = tmp12_input.
|
|
1088
|
+
tmp8_local4 = tmp12_input.i47(tmp0_desc, 4);
|
|
1089
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1090
|
-
tmp9_local5 = tmp12_input.
|
|
1090
|
+
tmp9_local5 = tmp12_input.f47(tmp0_desc, 5);
|
|
1091
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1092
|
-
tmp10_local6 = tmp12_input.
|
|
1092
|
+
tmp10_local6 = tmp12_input.r47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1093
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1094
|
-
tmp11_local7 = tmp12_input.
|
|
1094
|
+
tmp11_local7 = tmp12_input.r47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1095
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1096
1096
|
} else
|
|
1097
1097
|
while (tmp1_flag) {
|
|
1098
|
-
tmp2_index = tmp12_input.
|
|
1098
|
+
tmp2_index = tmp12_input.t47(tmp0_desc);
|
|
1099
1099
|
switch (tmp2_index) {
|
|
1100
1100
|
case -1:
|
|
1101
1101
|
tmp1_flag = false;
|
|
1102
1102
|
break;
|
|
1103
1103
|
case 0:
|
|
1104
|
-
tmp4_local0 = tmp12_input.
|
|
1104
|
+
tmp4_local0 = tmp12_input.n47(tmp0_desc, 0);
|
|
1105
1105
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1106
1106
|
break;
|
|
1107
1107
|
case 1:
|
|
1108
|
-
tmp5_local1 = tmp12_input.
|
|
1108
|
+
tmp5_local1 = tmp12_input.i47(tmp0_desc, 1);
|
|
1109
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1110
1110
|
break;
|
|
1111
1111
|
case 2:
|
|
1112
|
-
tmp6_local2 = tmp12_input.
|
|
1112
|
+
tmp6_local2 = tmp12_input.p47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1113
1113
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1114
1114
|
break;
|
|
1115
1115
|
case 3:
|
|
1116
|
-
tmp7_local3 = tmp12_input.
|
|
1116
|
+
tmp7_local3 = tmp12_input.i47(tmp0_desc, 3);
|
|
1117
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1118
1118
|
break;
|
|
1119
1119
|
case 4:
|
|
1120
|
-
tmp8_local4 = tmp12_input.
|
|
1120
|
+
tmp8_local4 = tmp12_input.i47(tmp0_desc, 4);
|
|
1121
1121
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1122
1122
|
break;
|
|
1123
1123
|
case 5:
|
|
1124
|
-
tmp9_local5 = tmp12_input.
|
|
1124
|
+
tmp9_local5 = tmp12_input.f47(tmp0_desc, 5);
|
|
1125
1125
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1126
1126
|
break;
|
|
1127
1127
|
case 6:
|
|
1128
|
-
tmp10_local6 = tmp12_input.
|
|
1128
|
+
tmp10_local6 = tmp12_input.r47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1129
1129
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1130
1130
|
break;
|
|
1131
1131
|
case 7:
|
|
1132
|
-
tmp11_local7 = tmp12_input.
|
|
1132
|
+
tmp11_local7 = tmp12_input.r47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1133
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1134
1134
|
break;
|
|
1135
1135
|
default:
|
|
1136
1136
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
|
-
tmp12_input.
|
|
1139
|
+
tmp12_input.e47(tmp0_desc);
|
|
1140
1140
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf($serializer_2).
|
|
1143
|
-
return this.
|
|
1142
|
+
protoOf($serializer_2).p43 = function () {
|
|
1143
|
+
return this.y5m_1;
|
|
1144
1144
|
};
|
|
1145
|
-
protoOf($serializer_2).
|
|
1146
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1145
|
+
protoOf($serializer_2).g4f = function () {
|
|
1146
|
+
var tmp0_cached = Companion_getInstance_6().x5m_1;
|
|
1147
1147
|
// Inline function 'kotlin.arrayOf' call
|
|
1148
1148
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1149
1149
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1157,16 +1157,16 @@
|
|
|
1157
1157
|
}
|
|
1158
1158
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1159
1159
|
if (!(255 === (255 & seen0))) {
|
|
1160
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1160
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().y5m_1);
|
|
1161
1161
|
}
|
|
1162
|
-
$this.
|
|
1163
|
-
$this.
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1162
|
+
$this.a5n_1 = apiKey;
|
|
1163
|
+
$this.b5n_1 = n;
|
|
1164
|
+
$this.c5n_1 = length;
|
|
1165
|
+
$this.d5n_1 = min;
|
|
1166
|
+
$this.e5n_1 = max;
|
|
1167
|
+
$this.f5n_1 = replacement;
|
|
1168
|
+
$this.g5n_1 = ticketId;
|
|
1169
|
+
$this.h5n_1 = userData;
|
|
1170
1170
|
return $this;
|
|
1171
1171
|
}
|
|
1172
1172
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1174,27 +1174,27 @@
|
|
|
1174
1174
|
}
|
|
1175
1175
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1176
1176
|
Companion_getInstance_6();
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1177
|
+
this.a5n_1 = apiKey;
|
|
1178
|
+
this.b5n_1 = n;
|
|
1179
|
+
this.c5n_1 = length;
|
|
1180
|
+
this.d5n_1 = min;
|
|
1181
|
+
this.e5n_1 = max;
|
|
1182
|
+
this.f5n_1 = replacement;
|
|
1183
|
+
this.g5n_1 = ticketId;
|
|
1184
|
+
this.h5n_1 = userData;
|
|
1185
1185
|
}
|
|
1186
1186
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1187
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1187
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.a5n_1 + ', n=' + this.b5n_1 + ', length=' + toString(this.c5n_1) + ', min=' + this.d5n_1 + ', max=' + this.e5n_1 + ', replacement=' + this.f5n_1 + ', ticketId=' + this.g5n_1 + ', userData=' + toString_0(this.h5n_1) + ')';
|
|
1188
1188
|
};
|
|
1189
1189
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1190
|
-
var result = getStringHashCode(this.
|
|
1191
|
-
result = imul(result, 31) + this.z5m_1 | 0;
|
|
1192
|
-
result = imul(result, 31) + hashCode(this.a5n_1) | 0;
|
|
1190
|
+
var result = getStringHashCode(this.a5n_1);
|
|
1193
1191
|
result = imul(result, 31) + this.b5n_1 | 0;
|
|
1194
|
-
result = imul(result, 31) + this.c5n_1 | 0;
|
|
1195
|
-
result = imul(result, 31) +
|
|
1196
|
-
result = imul(result, 31) +
|
|
1197
|
-
result = imul(result, 31) + (this.f5n_1
|
|
1192
|
+
result = imul(result, 31) + hashCode(this.c5n_1) | 0;
|
|
1193
|
+
result = imul(result, 31) + this.d5n_1 | 0;
|
|
1194
|
+
result = imul(result, 31) + this.e5n_1 | 0;
|
|
1195
|
+
result = imul(result, 31) + getBooleanHashCode(this.f5n_1) | 0;
|
|
1196
|
+
result = imul(result, 31) + (this.g5n_1 == null ? 0 : getStringHashCode(this.g5n_1)) | 0;
|
|
1197
|
+
result = imul(result, 31) + (this.h5n_1 == null ? 0 : this.h5n_1.hashCode()) | 0;
|
|
1198
1198
|
return result;
|
|
1199
1199
|
};
|
|
1200
1200
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1203,21 +1203,21 @@
|
|
|
1203
1203
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1204
1204
|
return false;
|
|
1205
1205
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1206
|
-
if (!(this.
|
|
1207
|
-
return false;
|
|
1208
|
-
if (!(this.z5m_1 === tmp0_other_with_cast.z5m_1))
|
|
1209
|
-
return false;
|
|
1210
|
-
if (!equals(this.a5n_1, tmp0_other_with_cast.a5n_1))
|
|
1206
|
+
if (!(this.a5n_1 === tmp0_other_with_cast.a5n_1))
|
|
1211
1207
|
return false;
|
|
1212
1208
|
if (!(this.b5n_1 === tmp0_other_with_cast.b5n_1))
|
|
1213
1209
|
return false;
|
|
1214
|
-
if (!(this.c5n_1
|
|
1210
|
+
if (!equals(this.c5n_1, tmp0_other_with_cast.c5n_1))
|
|
1215
1211
|
return false;
|
|
1216
1212
|
if (!(this.d5n_1 === tmp0_other_with_cast.d5n_1))
|
|
1217
1213
|
return false;
|
|
1218
|
-
if (!(this.e5n_1
|
|
1214
|
+
if (!(this.e5n_1 === tmp0_other_with_cast.e5n_1))
|
|
1219
1215
|
return false;
|
|
1220
|
-
if (!
|
|
1216
|
+
if (!(this.f5n_1 === tmp0_other_with_cast.f5n_1))
|
|
1217
|
+
return false;
|
|
1218
|
+
if (!(this.g5n_1 == tmp0_other_with_cast.g5n_1))
|
|
1219
|
+
return false;
|
|
1220
|
+
if (!equals(this.h5n_1, tmp0_other_with_cast.h5n_1))
|
|
1221
1221
|
return false;
|
|
1222
1222
|
return true;
|
|
1223
1223
|
};
|
|
@@ -1230,59 +1230,59 @@
|
|
|
1230
1230
|
function $serializer_3() {
|
|
1231
1231
|
$serializer_instance_2 = this;
|
|
1232
1232
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1233
|
-
tmp0_serialDesc.
|
|
1234
|
-
tmp0_serialDesc.
|
|
1235
|
-
this.
|
|
1236
|
-
}
|
|
1237
|
-
protoOf($serializer_3).
|
|
1238
|
-
var tmp0_desc = this.
|
|
1239
|
-
var tmp1_output = encoder.
|
|
1240
|
-
tmp1_output.
|
|
1241
|
-
tmp1_output.
|
|
1242
|
-
tmp1_output.
|
|
1243
|
-
};
|
|
1244
|
-
protoOf($serializer_3).
|
|
1245
|
-
return this.
|
|
1246
|
-
};
|
|
1247
|
-
protoOf($serializer_3).
|
|
1248
|
-
var tmp0_desc = this.
|
|
1233
|
+
tmp0_serialDesc.r4e('id', false);
|
|
1234
|
+
tmp0_serialDesc.r4e('count', false);
|
|
1235
|
+
this.i5n_1 = tmp0_serialDesc;
|
|
1236
|
+
}
|
|
1237
|
+
protoOf($serializer_3).j5n = function (encoder, value) {
|
|
1238
|
+
var tmp0_desc = this.i5n_1;
|
|
1239
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
1240
|
+
tmp1_output.r48(tmp0_desc, 0, value.k5n_1);
|
|
1241
|
+
tmp1_output.m48(tmp0_desc, 1, value.l5n_1);
|
|
1242
|
+
tmp1_output.e47(tmp0_desc);
|
|
1243
|
+
};
|
|
1244
|
+
protoOf($serializer_3).q43 = function (encoder, value) {
|
|
1245
|
+
return this.j5n(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1246
|
+
};
|
|
1247
|
+
protoOf($serializer_3).r43 = function (decoder) {
|
|
1248
|
+
var tmp0_desc = this.i5n_1;
|
|
1249
1249
|
var tmp1_flag = true;
|
|
1250
1250
|
var tmp2_index = 0;
|
|
1251
1251
|
var tmp3_bitMask0 = 0;
|
|
1252
1252
|
var tmp4_local0 = null;
|
|
1253
1253
|
var tmp5_local1 = 0;
|
|
1254
|
-
var tmp6_input = decoder.
|
|
1255
|
-
if (tmp6_input.
|
|
1256
|
-
tmp4_local0 = tmp6_input.
|
|
1254
|
+
var tmp6_input = decoder.d47(tmp0_desc);
|
|
1255
|
+
if (tmp6_input.s47()) {
|
|
1256
|
+
tmp4_local0 = tmp6_input.n47(tmp0_desc, 0);
|
|
1257
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1258
|
-
tmp5_local1 = tmp6_input.
|
|
1258
|
+
tmp5_local1 = tmp6_input.i47(tmp0_desc, 1);
|
|
1259
1259
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1260
1260
|
} else
|
|
1261
1261
|
while (tmp1_flag) {
|
|
1262
|
-
tmp2_index = tmp6_input.
|
|
1262
|
+
tmp2_index = tmp6_input.t47(tmp0_desc);
|
|
1263
1263
|
switch (tmp2_index) {
|
|
1264
1264
|
case -1:
|
|
1265
1265
|
tmp1_flag = false;
|
|
1266
1266
|
break;
|
|
1267
1267
|
case 0:
|
|
1268
|
-
tmp4_local0 = tmp6_input.
|
|
1268
|
+
tmp4_local0 = tmp6_input.n47(tmp0_desc, 0);
|
|
1269
1269
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1270
1270
|
break;
|
|
1271
1271
|
case 1:
|
|
1272
|
-
tmp5_local1 = tmp6_input.
|
|
1272
|
+
tmp5_local1 = tmp6_input.i47(tmp0_desc, 1);
|
|
1273
1273
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1274
1274
|
break;
|
|
1275
1275
|
default:
|
|
1276
1276
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
tmp6_input.
|
|
1279
|
+
tmp6_input.e47(tmp0_desc);
|
|
1280
1280
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf($serializer_3).
|
|
1283
|
-
return this.
|
|
1282
|
+
protoOf($serializer_3).p43 = function () {
|
|
1283
|
+
return this.i5n_1;
|
|
1284
1284
|
};
|
|
1285
|
-
protoOf($serializer_3).
|
|
1285
|
+
protoOf($serializer_3).g4f = function () {
|
|
1286
1286
|
// Inline function 'kotlin.arrayOf' call
|
|
1287
1287
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1288
1288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1296,25 +1296,25 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1298
1298
|
if (!(3 === (3 & seen0))) {
|
|
1299
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1299
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().i5n_1);
|
|
1300
1300
|
}
|
|
1301
|
-
$this.
|
|
1302
|
-
$this.
|
|
1301
|
+
$this.k5n_1 = id;
|
|
1302
|
+
$this.l5n_1 = count;
|
|
1303
1303
|
return $this;
|
|
1304
1304
|
}
|
|
1305
1305
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1306
1306
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1307
1307
|
}
|
|
1308
1308
|
function CardDecksUserDataDto(id, count) {
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1309
|
+
this.k5n_1 = id;
|
|
1310
|
+
this.l5n_1 = count;
|
|
1311
1311
|
}
|
|
1312
1312
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1313
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1313
|
+
return 'CardDecksUserDataDto(id=' + this.k5n_1 + ', count=' + this.l5n_1 + ')';
|
|
1314
1314
|
};
|
|
1315
1315
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1316
|
-
var result = getStringHashCode(this.
|
|
1317
|
-
result = imul(result, 31) + this.
|
|
1316
|
+
var result = getStringHashCode(this.k5n_1);
|
|
1317
|
+
result = imul(result, 31) + this.l5n_1 | 0;
|
|
1318
1318
|
return result;
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1323,15 +1323,15 @@
|
|
|
1323
1323
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1324
1324
|
return false;
|
|
1325
1325
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1326
|
-
if (!(this.
|
|
1326
|
+
if (!(this.k5n_1 === tmp0_other_with_cast.k5n_1))
|
|
1327
1327
|
return false;
|
|
1328
|
-
if (!(this.
|
|
1328
|
+
if (!(this.l5n_1 === tmp0_other_with_cast.l5n_1))
|
|
1329
1329
|
return false;
|
|
1330
1330
|
return true;
|
|
1331
1331
|
};
|
|
1332
1332
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1333
1333
|
$serializer_4.call($this);
|
|
1334
|
-
$this.
|
|
1334
|
+
$this.n5n_1 = typeSerial0;
|
|
1335
1335
|
return $this;
|
|
1336
1336
|
}
|
|
1337
1337
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1340,16 +1340,16 @@
|
|
|
1340
1340
|
function Companion_5() {
|
|
1341
1341
|
Companion_instance_7 = this;
|
|
1342
1342
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1343
|
-
tmp0_serialDesc.
|
|
1344
|
-
tmp0_serialDesc.
|
|
1345
|
-
tmp0_serialDesc.
|
|
1346
|
-
this.
|
|
1343
|
+
tmp0_serialDesc.r4e('jsonrpc', false);
|
|
1344
|
+
tmp0_serialDesc.r4e('result', false);
|
|
1345
|
+
tmp0_serialDesc.r4e('id', false);
|
|
1346
|
+
this.o5n_1 = tmp0_serialDesc;
|
|
1347
1347
|
}
|
|
1348
|
-
protoOf(Companion_5).
|
|
1348
|
+
protoOf(Companion_5).r5m = function (typeSerial0) {
|
|
1349
1349
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1350
1350
|
};
|
|
1351
|
-
protoOf(Companion_5).
|
|
1352
|
-
return this.
|
|
1351
|
+
protoOf(Companion_5).r4f = function (typeParamsSerializers) {
|
|
1352
|
+
return this.r5m(typeParamsSerializers[0]);
|
|
1353
1353
|
};
|
|
1354
1354
|
var Companion_instance_7;
|
|
1355
1355
|
function Companion_getInstance_8() {
|
|
@@ -1359,86 +1359,86 @@
|
|
|
1359
1359
|
}
|
|
1360
1360
|
function $serializer_4() {
|
|
1361
1361
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1362
|
-
tmp0_serialDesc.
|
|
1363
|
-
tmp0_serialDesc.
|
|
1364
|
-
tmp0_serialDesc.
|
|
1365
|
-
this.
|
|
1366
|
-
}
|
|
1367
|
-
protoOf($serializer_4).
|
|
1368
|
-
var tmp0_desc = this.
|
|
1369
|
-
var tmp1_output = encoder.
|
|
1370
|
-
tmp1_output.
|
|
1371
|
-
tmp1_output.
|
|
1372
|
-
tmp1_output.
|
|
1373
|
-
tmp1_output.
|
|
1374
|
-
};
|
|
1375
|
-
protoOf($serializer_4).
|
|
1376
|
-
return this.
|
|
1377
|
-
};
|
|
1378
|
-
protoOf($serializer_4).
|
|
1379
|
-
var tmp0_desc = this.
|
|
1362
|
+
tmp0_serialDesc.r4e('jsonrpc', false);
|
|
1363
|
+
tmp0_serialDesc.r4e('result', false);
|
|
1364
|
+
tmp0_serialDesc.r4e('id', false);
|
|
1365
|
+
this.m5n_1 = tmp0_serialDesc;
|
|
1366
|
+
}
|
|
1367
|
+
protoOf($serializer_4).p5n = function (encoder, value) {
|
|
1368
|
+
var tmp0_desc = this.m5n_1;
|
|
1369
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
1370
|
+
tmp1_output.r48(tmp0_desc, 0, value.q5n_1);
|
|
1371
|
+
tmp1_output.t48(tmp0_desc, 1, this.n5n_1, value.r5n_1);
|
|
1372
|
+
tmp1_output.r48(tmp0_desc, 2, value.s5n_1);
|
|
1373
|
+
tmp1_output.e47(tmp0_desc);
|
|
1374
|
+
};
|
|
1375
|
+
protoOf($serializer_4).q43 = function (encoder, value) {
|
|
1376
|
+
return this.p5n(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1377
|
+
};
|
|
1378
|
+
protoOf($serializer_4).r43 = function (decoder) {
|
|
1379
|
+
var tmp0_desc = this.m5n_1;
|
|
1380
1380
|
var tmp1_flag = true;
|
|
1381
1381
|
var tmp2_index = 0;
|
|
1382
1382
|
var tmp3_bitMask0 = 0;
|
|
1383
1383
|
var tmp4_local0 = null;
|
|
1384
1384
|
var tmp5_local1 = null;
|
|
1385
1385
|
var tmp6_local2 = null;
|
|
1386
|
-
var tmp7_input = decoder.
|
|
1387
|
-
if (tmp7_input.
|
|
1388
|
-
tmp4_local0 = tmp7_input.
|
|
1386
|
+
var tmp7_input = decoder.d47(tmp0_desc);
|
|
1387
|
+
if (tmp7_input.s47()) {
|
|
1388
|
+
tmp4_local0 = tmp7_input.n47(tmp0_desc, 0);
|
|
1389
1389
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1390
|
-
tmp5_local1 = tmp7_input.
|
|
1390
|
+
tmp5_local1 = tmp7_input.p47(tmp0_desc, 1, this.n5n_1, tmp5_local1);
|
|
1391
1391
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1392
|
-
tmp6_local2 = tmp7_input.
|
|
1392
|
+
tmp6_local2 = tmp7_input.n47(tmp0_desc, 2);
|
|
1393
1393
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1394
1394
|
} else
|
|
1395
1395
|
while (tmp1_flag) {
|
|
1396
|
-
tmp2_index = tmp7_input.
|
|
1396
|
+
tmp2_index = tmp7_input.t47(tmp0_desc);
|
|
1397
1397
|
switch (tmp2_index) {
|
|
1398
1398
|
case -1:
|
|
1399
1399
|
tmp1_flag = false;
|
|
1400
1400
|
break;
|
|
1401
1401
|
case 0:
|
|
1402
|
-
tmp4_local0 = tmp7_input.
|
|
1402
|
+
tmp4_local0 = tmp7_input.n47(tmp0_desc, 0);
|
|
1403
1403
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1404
1404
|
break;
|
|
1405
1405
|
case 1:
|
|
1406
|
-
tmp5_local1 = tmp7_input.
|
|
1406
|
+
tmp5_local1 = tmp7_input.p47(tmp0_desc, 1, this.n5n_1, tmp5_local1);
|
|
1407
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1408
1408
|
break;
|
|
1409
1409
|
case 2:
|
|
1410
|
-
tmp6_local2 = tmp7_input.
|
|
1410
|
+
tmp6_local2 = tmp7_input.n47(tmp0_desc, 2);
|
|
1411
1411
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1412
1412
|
break;
|
|
1413
1413
|
default:
|
|
1414
1414
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
tmp7_input.
|
|
1417
|
+
tmp7_input.e47(tmp0_desc);
|
|
1418
1418
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1419
1419
|
};
|
|
1420
|
-
protoOf($serializer_4).
|
|
1421
|
-
return this.
|
|
1420
|
+
protoOf($serializer_4).p43 = function () {
|
|
1421
|
+
return this.m5n_1;
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf($serializer_4).
|
|
1423
|
+
protoOf($serializer_4).g4f = function () {
|
|
1424
1424
|
// Inline function 'kotlin.arrayOf' call
|
|
1425
1425
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1426
1426
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1427
|
-
return [StringSerializer_getInstance(), this.
|
|
1427
|
+
return [StringSerializer_getInstance(), this.n5n_1, StringSerializer_getInstance()];
|
|
1428
1428
|
};
|
|
1429
|
-
protoOf($serializer_4).
|
|
1429
|
+
protoOf($serializer_4).h4f = function () {
|
|
1430
1430
|
// Inline function 'kotlin.arrayOf' call
|
|
1431
1431
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1432
1432
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1433
|
-
return [this.
|
|
1433
|
+
return [this.n5n_1];
|
|
1434
1434
|
};
|
|
1435
1435
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1436
1436
|
if (!(7 === (7 & seen0))) {
|
|
1437
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1437
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().o5n_1);
|
|
1438
1438
|
}
|
|
1439
|
-
$this.
|
|
1440
|
-
$this.
|
|
1441
|
-
$this.
|
|
1439
|
+
$this.q5n_1 = jsonrpc;
|
|
1440
|
+
$this.r5n_1 = result;
|
|
1441
|
+
$this.s5n_1 = id;
|
|
1442
1442
|
return $this;
|
|
1443
1443
|
}
|
|
1444
1444
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1446,17 +1446,17 @@
|
|
|
1446
1446
|
}
|
|
1447
1447
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1448
1448
|
Companion_getInstance_8();
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1449
|
+
this.q5n_1 = jsonrpc;
|
|
1450
|
+
this.r5n_1 = result;
|
|
1451
|
+
this.s5n_1 = id;
|
|
1452
1452
|
}
|
|
1453
1453
|
protoOf(RandomResponseDto).toString = function () {
|
|
1454
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1454
|
+
return 'RandomResponseDto(jsonrpc=' + this.q5n_1 + ', result=' + toString(this.r5n_1) + ', id=' + this.s5n_1 + ')';
|
|
1455
1455
|
};
|
|
1456
1456
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1457
|
-
var result = getStringHashCode(this.
|
|
1458
|
-
result = imul(result, 31) + hashCode(this.
|
|
1459
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1457
|
+
var result = getStringHashCode(this.q5n_1);
|
|
1458
|
+
result = imul(result, 31) + hashCode(this.r5n_1) | 0;
|
|
1459
|
+
result = imul(result, 31) + getStringHashCode(this.s5n_1) | 0;
|
|
1460
1460
|
return result;
|
|
1461
1461
|
};
|
|
1462
1462
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1465,11 +1465,11 @@
|
|
|
1465
1465
|
if (!(other instanceof RandomResponseDto))
|
|
1466
1466
|
return false;
|
|
1467
1467
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1468
|
-
if (!(this.
|
|
1468
|
+
if (!(this.q5n_1 === tmp0_other_with_cast.q5n_1))
|
|
1469
1469
|
return false;
|
|
1470
|
-
if (!equals(this.
|
|
1470
|
+
if (!equals(this.r5n_1, tmp0_other_with_cast.r5n_1))
|
|
1471
1471
|
return false;
|
|
1472
|
-
if (!(this.
|
|
1472
|
+
if (!(this.s5n_1 === tmp0_other_with_cast.s5n_1))
|
|
1473
1473
|
return false;
|
|
1474
1474
|
return true;
|
|
1475
1475
|
};
|
|
@@ -1482,30 +1482,30 @@
|
|
|
1482
1482
|
function $serializer_5() {
|
|
1483
1483
|
$serializer_instance_3 = this;
|
|
1484
1484
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1485
|
-
tmp0_serialDesc.
|
|
1486
|
-
tmp0_serialDesc.
|
|
1487
|
-
tmp0_serialDesc.
|
|
1488
|
-
tmp0_serialDesc.
|
|
1489
|
-
tmp0_serialDesc.
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
this.
|
|
1492
|
-
}
|
|
1493
|
-
protoOf($serializer_5).
|
|
1494
|
-
var tmp0_desc = this.
|
|
1495
|
-
var tmp1_output = encoder.
|
|
1496
|
-
tmp1_output.
|
|
1497
|
-
tmp1_output.
|
|
1498
|
-
tmp1_output.
|
|
1499
|
-
tmp1_output.
|
|
1500
|
-
tmp1_output.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
};
|
|
1504
|
-
protoOf($serializer_5).
|
|
1505
|
-
return this.
|
|
1506
|
-
};
|
|
1507
|
-
protoOf($serializer_5).
|
|
1508
|
-
var tmp0_desc = this.
|
|
1485
|
+
tmp0_serialDesc.r4e('random', false);
|
|
1486
|
+
tmp0_serialDesc.r4e('signature', false);
|
|
1487
|
+
tmp0_serialDesc.r4e('bitsUsed', false);
|
|
1488
|
+
tmp0_serialDesc.r4e('bitsLeft', false);
|
|
1489
|
+
tmp0_serialDesc.r4e('requestsLeft', false);
|
|
1490
|
+
tmp0_serialDesc.r4e('advisoryDelay', false);
|
|
1491
|
+
this.t5n_1 = tmp0_serialDesc;
|
|
1492
|
+
}
|
|
1493
|
+
protoOf($serializer_5).u5n = function (encoder, value) {
|
|
1494
|
+
var tmp0_desc = this.t5n_1;
|
|
1495
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
1496
|
+
tmp1_output.t48(tmp0_desc, 0, $serializer_getInstance_4(), value.v5n_1);
|
|
1497
|
+
tmp1_output.v48(tmp0_desc, 1, StringSerializer_getInstance(), value.w5n_1);
|
|
1498
|
+
tmp1_output.v48(tmp0_desc, 2, IntSerializer_getInstance(), value.x5n_1);
|
|
1499
|
+
tmp1_output.v48(tmp0_desc, 3, IntSerializer_getInstance(), value.y5n_1);
|
|
1500
|
+
tmp1_output.v48(tmp0_desc, 4, IntSerializer_getInstance(), value.z5n_1);
|
|
1501
|
+
tmp1_output.v48(tmp0_desc, 5, IntSerializer_getInstance(), value.a5o_1);
|
|
1502
|
+
tmp1_output.e47(tmp0_desc);
|
|
1503
|
+
};
|
|
1504
|
+
protoOf($serializer_5).q43 = function (encoder, value) {
|
|
1505
|
+
return this.u5n(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1506
|
+
};
|
|
1507
|
+
protoOf($serializer_5).r43 = function (decoder) {
|
|
1508
|
+
var tmp0_desc = this.t5n_1;
|
|
1509
1509
|
var tmp1_flag = true;
|
|
1510
1510
|
var tmp2_index = 0;
|
|
1511
1511
|
var tmp3_bitMask0 = 0;
|
|
@@ -1515,62 +1515,62 @@
|
|
|
1515
1515
|
var tmp7_local3 = null;
|
|
1516
1516
|
var tmp8_local4 = null;
|
|
1517
1517
|
var tmp9_local5 = null;
|
|
1518
|
-
var tmp10_input = decoder.
|
|
1519
|
-
if (tmp10_input.
|
|
1520
|
-
tmp4_local0 = tmp10_input.
|
|
1518
|
+
var tmp10_input = decoder.d47(tmp0_desc);
|
|
1519
|
+
if (tmp10_input.s47()) {
|
|
1520
|
+
tmp4_local0 = tmp10_input.p47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1521
1521
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1522
|
-
tmp5_local1 = tmp10_input.
|
|
1522
|
+
tmp5_local1 = tmp10_input.r47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1523
1523
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1524
|
-
tmp6_local2 = tmp10_input.
|
|
1524
|
+
tmp6_local2 = tmp10_input.r47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1525
1525
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1526
|
-
tmp7_local3 = tmp10_input.
|
|
1526
|
+
tmp7_local3 = tmp10_input.r47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1527
1527
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1528
|
-
tmp8_local4 = tmp10_input.
|
|
1528
|
+
tmp8_local4 = tmp10_input.r47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1529
1529
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1530
|
-
tmp9_local5 = tmp10_input.
|
|
1530
|
+
tmp9_local5 = tmp10_input.r47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1531
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1532
1532
|
} else
|
|
1533
1533
|
while (tmp1_flag) {
|
|
1534
|
-
tmp2_index = tmp10_input.
|
|
1534
|
+
tmp2_index = tmp10_input.t47(tmp0_desc);
|
|
1535
1535
|
switch (tmp2_index) {
|
|
1536
1536
|
case -1:
|
|
1537
1537
|
tmp1_flag = false;
|
|
1538
1538
|
break;
|
|
1539
1539
|
case 0:
|
|
1540
|
-
tmp4_local0 = tmp10_input.
|
|
1540
|
+
tmp4_local0 = tmp10_input.p47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1541
1541
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1542
1542
|
break;
|
|
1543
1543
|
case 1:
|
|
1544
|
-
tmp5_local1 = tmp10_input.
|
|
1544
|
+
tmp5_local1 = tmp10_input.r47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1545
1545
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1546
1546
|
break;
|
|
1547
1547
|
case 2:
|
|
1548
|
-
tmp6_local2 = tmp10_input.
|
|
1548
|
+
tmp6_local2 = tmp10_input.r47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1549
1549
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1550
1550
|
break;
|
|
1551
1551
|
case 3:
|
|
1552
|
-
tmp7_local3 = tmp10_input.
|
|
1552
|
+
tmp7_local3 = tmp10_input.r47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1553
1553
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1554
1554
|
break;
|
|
1555
1555
|
case 4:
|
|
1556
|
-
tmp8_local4 = tmp10_input.
|
|
1556
|
+
tmp8_local4 = tmp10_input.r47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1557
1557
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1558
1558
|
break;
|
|
1559
1559
|
case 5:
|
|
1560
|
-
tmp9_local5 = tmp10_input.
|
|
1560
|
+
tmp9_local5 = tmp10_input.r47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1561
1561
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1562
1562
|
break;
|
|
1563
1563
|
default:
|
|
1564
1564
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
tmp10_input.
|
|
1567
|
+
tmp10_input.e47(tmp0_desc);
|
|
1568
1568
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1569
1569
|
};
|
|
1570
|
-
protoOf($serializer_5).
|
|
1571
|
-
return this.
|
|
1570
|
+
protoOf($serializer_5).p43 = function () {
|
|
1571
|
+
return this.t5n_1;
|
|
1572
1572
|
};
|
|
1573
|
-
protoOf($serializer_5).
|
|
1573
|
+
protoOf($serializer_5).g4f = function () {
|
|
1574
1574
|
// Inline function 'kotlin.arrayOf' call
|
|
1575
1575
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1576
1576
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1584,37 +1584,37 @@
|
|
|
1584
1584
|
}
|
|
1585
1585
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1586
1586
|
if (!(63 === (63 & seen0))) {
|
|
1587
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1587
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().t5n_1);
|
|
1588
1588
|
}
|
|
1589
|
-
$this.
|
|
1590
|
-
$this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1589
|
+
$this.v5n_1 = random;
|
|
1590
|
+
$this.w5n_1 = signature;
|
|
1591
|
+
$this.x5n_1 = bitsUsed;
|
|
1592
|
+
$this.y5n_1 = bitsLeft;
|
|
1593
|
+
$this.z5n_1 = requestsLeft;
|
|
1594
|
+
$this.a5o_1 = advisoryDelay;
|
|
1595
1595
|
return $this;
|
|
1596
1596
|
}
|
|
1597
1597
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1598
1598
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1599
1599
|
}
|
|
1600
1600
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1601
|
+
this.v5n_1 = random;
|
|
1602
|
+
this.w5n_1 = signature;
|
|
1603
|
+
this.x5n_1 = bitsUsed;
|
|
1604
|
+
this.y5n_1 = bitsLeft;
|
|
1605
|
+
this.z5n_1 = requestsLeft;
|
|
1606
|
+
this.a5o_1 = advisoryDelay;
|
|
1607
1607
|
}
|
|
1608
1608
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1609
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1609
|
+
return 'IntegerSequencesResultDto(random=' + this.v5n_1.toString() + ', signature=' + this.w5n_1 + ', bitsUsed=' + this.x5n_1 + ', bitsLeft=' + this.y5n_1 + ', requestsLeft=' + this.z5n_1 + ', advisoryDelay=' + this.a5o_1 + ')';
|
|
1610
1610
|
};
|
|
1611
1611
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1612
|
-
var result = this.
|
|
1613
|
-
result = imul(result, 31) + (this.
|
|
1614
|
-
result = imul(result, 31) + (this.v5n_1 == null ? 0 : this.v5n_1) | 0;
|
|
1615
|
-
result = imul(result, 31) + (this.w5n_1 == null ? 0 : this.w5n_1) | 0;
|
|
1612
|
+
var result = this.v5n_1.hashCode();
|
|
1613
|
+
result = imul(result, 31) + (this.w5n_1 == null ? 0 : getStringHashCode(this.w5n_1)) | 0;
|
|
1616
1614
|
result = imul(result, 31) + (this.x5n_1 == null ? 0 : this.x5n_1) | 0;
|
|
1617
1615
|
result = imul(result, 31) + (this.y5n_1 == null ? 0 : this.y5n_1) | 0;
|
|
1616
|
+
result = imul(result, 31) + (this.z5n_1 == null ? 0 : this.z5n_1) | 0;
|
|
1617
|
+
result = imul(result, 31) + (this.a5o_1 == null ? 0 : this.a5o_1) | 0;
|
|
1618
1618
|
return result;
|
|
1619
1619
|
};
|
|
1620
1620
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1623,11 +1623,7 @@
|
|
|
1623
1623
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1624
1624
|
return false;
|
|
1625
1625
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1626
|
-
if (!this.
|
|
1627
|
-
return false;
|
|
1628
|
-
if (!(this.u5n_1 == tmp0_other_with_cast.u5n_1))
|
|
1629
|
-
return false;
|
|
1630
|
-
if (!(this.v5n_1 == tmp0_other_with_cast.v5n_1))
|
|
1626
|
+
if (!this.v5n_1.equals(tmp0_other_with_cast.v5n_1))
|
|
1631
1627
|
return false;
|
|
1632
1628
|
if (!(this.w5n_1 == tmp0_other_with_cast.w5n_1))
|
|
1633
1629
|
return false;
|
|
@@ -1635,6 +1631,10 @@
|
|
|
1635
1631
|
return false;
|
|
1636
1632
|
if (!(this.y5n_1 == tmp0_other_with_cast.y5n_1))
|
|
1637
1633
|
return false;
|
|
1634
|
+
if (!(this.z5n_1 == tmp0_other_with_cast.z5n_1))
|
|
1635
|
+
return false;
|
|
1636
|
+
if (!(this.a5o_1 == tmp0_other_with_cast.a5o_1))
|
|
1637
|
+
return false;
|
|
1638
1638
|
return true;
|
|
1639
1639
|
};
|
|
1640
1640
|
function Companion_7() {
|
|
@@ -1643,7 +1643,7 @@
|
|
|
1643
1643
|
// Inline function 'kotlin.arrayOf' call
|
|
1644
1644
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1645
1645
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1646
|
-
tmp.
|
|
1646
|
+
tmp.b5o_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1647
1647
|
}
|
|
1648
1648
|
var Companion_instance_9;
|
|
1649
1649
|
function Companion_getInstance_10() {
|
|
@@ -1654,74 +1654,74 @@
|
|
|
1654
1654
|
function $serializer_6() {
|
|
1655
1655
|
$serializer_instance_4 = this;
|
|
1656
1656
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1657
|
-
tmp0_serialDesc.
|
|
1658
|
-
tmp0_serialDesc.
|
|
1659
|
-
tmp0_serialDesc.
|
|
1660
|
-
this.
|
|
1661
|
-
}
|
|
1662
|
-
protoOf($serializer_6).
|
|
1663
|
-
var tmp0_desc = this.
|
|
1664
|
-
var tmp1_output = encoder.
|
|
1665
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1666
|
-
tmp1_output.
|
|
1667
|
-
tmp1_output.
|
|
1668
|
-
tmp1_output.
|
|
1669
|
-
tmp1_output.
|
|
1670
|
-
};
|
|
1671
|
-
protoOf($serializer_6).
|
|
1672
|
-
return this.
|
|
1673
|
-
};
|
|
1674
|
-
protoOf($serializer_6).
|
|
1675
|
-
var tmp0_desc = this.
|
|
1657
|
+
tmp0_serialDesc.r4e('data', false);
|
|
1658
|
+
tmp0_serialDesc.r4e('completionTime', false);
|
|
1659
|
+
tmp0_serialDesc.r4e('ticketId', false);
|
|
1660
|
+
this.c5o_1 = tmp0_serialDesc;
|
|
1661
|
+
}
|
|
1662
|
+
protoOf($serializer_6).d5o = function (encoder, value) {
|
|
1663
|
+
var tmp0_desc = this.c5o_1;
|
|
1664
|
+
var tmp1_output = encoder.d47(tmp0_desc);
|
|
1665
|
+
var tmp2_cached = Companion_getInstance_10().b5o_1;
|
|
1666
|
+
tmp1_output.t48(tmp0_desc, 0, tmp2_cached[0], value.e5o_1);
|
|
1667
|
+
tmp1_output.r48(tmp0_desc, 1, value.f5o_1);
|
|
1668
|
+
tmp1_output.v48(tmp0_desc, 2, StringSerializer_getInstance(), value.g5o_1);
|
|
1669
|
+
tmp1_output.e47(tmp0_desc);
|
|
1670
|
+
};
|
|
1671
|
+
protoOf($serializer_6).q43 = function (encoder, value) {
|
|
1672
|
+
return this.d5o(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1673
|
+
};
|
|
1674
|
+
protoOf($serializer_6).r43 = function (decoder) {
|
|
1675
|
+
var tmp0_desc = this.c5o_1;
|
|
1676
1676
|
var tmp1_flag = true;
|
|
1677
1677
|
var tmp2_index = 0;
|
|
1678
1678
|
var tmp3_bitMask0 = 0;
|
|
1679
1679
|
var tmp4_local0 = null;
|
|
1680
1680
|
var tmp5_local1 = null;
|
|
1681
1681
|
var tmp6_local2 = null;
|
|
1682
|
-
var tmp7_input = decoder.
|
|
1683
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1684
|
-
if (tmp7_input.
|
|
1685
|
-
tmp4_local0 = tmp7_input.
|
|
1682
|
+
var tmp7_input = decoder.d47(tmp0_desc);
|
|
1683
|
+
var tmp8_cached = Companion_getInstance_10().b5o_1;
|
|
1684
|
+
if (tmp7_input.s47()) {
|
|
1685
|
+
tmp4_local0 = tmp7_input.p47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1686
1686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1687
|
-
tmp5_local1 = tmp7_input.
|
|
1687
|
+
tmp5_local1 = tmp7_input.n47(tmp0_desc, 1);
|
|
1688
1688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1689
|
-
tmp6_local2 = tmp7_input.
|
|
1689
|
+
tmp6_local2 = tmp7_input.r47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1690
1690
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1691
1691
|
} else
|
|
1692
1692
|
while (tmp1_flag) {
|
|
1693
|
-
tmp2_index = tmp7_input.
|
|
1693
|
+
tmp2_index = tmp7_input.t47(tmp0_desc);
|
|
1694
1694
|
switch (tmp2_index) {
|
|
1695
1695
|
case -1:
|
|
1696
1696
|
tmp1_flag = false;
|
|
1697
1697
|
break;
|
|
1698
1698
|
case 0:
|
|
1699
|
-
tmp4_local0 = tmp7_input.
|
|
1699
|
+
tmp4_local0 = tmp7_input.p47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1700
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1701
1701
|
break;
|
|
1702
1702
|
case 1:
|
|
1703
|
-
tmp5_local1 = tmp7_input.
|
|
1703
|
+
tmp5_local1 = tmp7_input.n47(tmp0_desc, 1);
|
|
1704
1704
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1705
1705
|
break;
|
|
1706
1706
|
case 2:
|
|
1707
|
-
tmp6_local2 = tmp7_input.
|
|
1707
|
+
tmp6_local2 = tmp7_input.r47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1708
1708
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1709
1709
|
break;
|
|
1710
1710
|
default:
|
|
1711
1711
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
|
-
tmp7_input.
|
|
1714
|
+
tmp7_input.e47(tmp0_desc);
|
|
1715
1715
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1716
1716
|
};
|
|
1717
|
-
protoOf($serializer_6).
|
|
1718
|
-
return this.
|
|
1717
|
+
protoOf($serializer_6).p43 = function () {
|
|
1718
|
+
return this.c5o_1;
|
|
1719
1719
|
};
|
|
1720
|
-
protoOf($serializer_6).
|
|
1720
|
+
protoOf($serializer_6).g4f = function () {
|
|
1721
1721
|
// Inline function 'kotlin.arrayOf' call
|
|
1722
1722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1723
1723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1724
|
-
return [Companion_getInstance_10().
|
|
1724
|
+
return [Companion_getInstance_10().b5o_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1725
1725
|
};
|
|
1726
1726
|
var $serializer_instance_4;
|
|
1727
1727
|
function $serializer_getInstance_4() {
|
|
@@ -1731,11 +1731,11 @@
|
|
|
1731
1731
|
}
|
|
1732
1732
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1733
1733
|
if (!(7 === (7 & seen0))) {
|
|
1734
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1734
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().c5o_1);
|
|
1735
1735
|
}
|
|
1736
|
-
$this.
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1736
|
+
$this.e5o_1 = data;
|
|
1737
|
+
$this.f5o_1 = completionTime;
|
|
1738
|
+
$this.g5o_1 = ticketId;
|
|
1739
1739
|
return $this;
|
|
1740
1740
|
}
|
|
1741
1741
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1744,12 +1744,12 @@
|
|
|
1744
1744
|
function IntegerSequencesDataDto() {
|
|
1745
1745
|
}
|
|
1746
1746
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1747
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1747
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.e5o_1) + ', completionTime=' + this.f5o_1 + ', ticketId=' + this.g5o_1 + ')';
|
|
1748
1748
|
};
|
|
1749
1749
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1750
|
-
var result = hashCode(this.
|
|
1751
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1752
|
-
result = imul(result, 31) + (this.
|
|
1750
|
+
var result = hashCode(this.e5o_1);
|
|
1751
|
+
result = imul(result, 31) + getStringHashCode(this.f5o_1) | 0;
|
|
1752
|
+
result = imul(result, 31) + (this.g5o_1 == null ? 0 : getStringHashCode(this.g5o_1)) | 0;
|
|
1753
1753
|
return result;
|
|
1754
1754
|
};
|
|
1755
1755
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1758,11 +1758,11 @@
|
|
|
1758
1758
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1759
1759
|
return false;
|
|
1760
1760
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1761
|
-
if (!equals(this.
|
|
1761
|
+
if (!equals(this.e5o_1, tmp0_other_with_cast.e5o_1))
|
|
1762
1762
|
return false;
|
|
1763
|
-
if (!(this.
|
|
1763
|
+
if (!(this.f5o_1 === tmp0_other_with_cast.f5o_1))
|
|
1764
1764
|
return false;
|
|
1765
|
-
if (!(this.
|
|
1765
|
+
if (!(this.g5o_1 == tmp0_other_with_cast.g5o_1))
|
|
1766
1766
|
return false;
|
|
1767
1767
|
return true;
|
|
1768
1768
|
};
|
|
@@ -1781,7 +1781,7 @@
|
|
|
1781
1781
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1782
1782
|
}
|
|
1783
1783
|
function Companion_8() {
|
|
1784
|
-
this.
|
|
1784
|
+
this.u5o_1 = 52;
|
|
1785
1785
|
}
|
|
1786
1786
|
var Companion_instance_10;
|
|
1787
1787
|
function Companion_getInstance_11() {
|
|
@@ -1789,13 +1789,13 @@
|
|
|
1789
1789
|
}
|
|
1790
1790
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1791
1791
|
CoroutineImpl.call(this, resultContinuation);
|
|
1792
|
-
this.
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1792
|
+
this.d5p_1 = _this__u8e3s4;
|
|
1793
|
+
this.e5p_1 = min;
|
|
1794
|
+
this.f5p_1 = max;
|
|
1795
|
+
this.g5p_1 = decksCount;
|
|
1796
|
+
this.h5p_1 = cardsCount;
|
|
1797
|
+
this.i5p_1 = userData;
|
|
1798
|
+
this.j5p_1 = signed;
|
|
1799
1799
|
}
|
|
1800
1800
|
protoOf($getRandomCardDecksCOROUTINE$1).m9 = function () {
|
|
1801
1801
|
var suspendResult = this.g9_1;
|
|
@@ -1807,30 +1807,30 @@
|
|
|
1807
1807
|
this.f9_1 = 6;
|
|
1808
1808
|
this.f9_1 = 5;
|
|
1809
1809
|
var tmp_0 = this;
|
|
1810
|
-
tmp_0.
|
|
1810
|
+
tmp_0.k5p_1 = this.d5p_1.t5p_1;
|
|
1811
1811
|
var tmp_1 = this;
|
|
1812
|
-
tmp_1.
|
|
1812
|
+
tmp_1.l5p_1 = this.k5p_1;
|
|
1813
1813
|
var tmp_2 = this;
|
|
1814
1814
|
var this_0 = new HttpRequestBuilder();
|
|
1815
1815
|
url(this_0, '/json-rpc/4/invoke');
|
|
1816
|
-
var tmp11_id = this.
|
|
1817
|
-
var tmp12_method = this.
|
|
1818
|
-
var tmp8_apiKey = this.
|
|
1819
|
-
var size = this.
|
|
1816
|
+
var tmp11_id = this.i5p_1.id;
|
|
1817
|
+
var tmp12_method = this.j5p_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1818
|
+
var tmp8_apiKey = this.d5p_1.u5p_1;
|
|
1819
|
+
var size = this.g5p_1;
|
|
1820
1820
|
var list = ArrayList_init_$Create$(size);
|
|
1821
1821
|
var inductionVariable = 0;
|
|
1822
1822
|
if (inductionVariable < size)
|
|
1823
1823
|
do {
|
|
1824
1824
|
var index = inductionVariable;
|
|
1825
1825
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1826
|
-
list.e(this.
|
|
1826
|
+
list.e(this.h5p_1);
|
|
1827
1827
|
}
|
|
1828
1828
|
while (inductionVariable < size);
|
|
1829
|
-
var tmp10_userData = this.
|
|
1830
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1829
|
+
var tmp10_userData = this.j5p_1 ? mapToDto(this.i5p_1) : null;
|
|
1830
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.g5p_1, list, this.e5p_1, this.f5p_1, false, null, tmp10_userData);
|
|
1831
1831
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1832
1832
|
if (body == null) {
|
|
1833
|
-
this_0.
|
|
1833
|
+
this_0.v2u_1 = NullBody_instance;
|
|
1834
1834
|
var tmp_3 = JsType_instance;
|
|
1835
1835
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1836
1836
|
var tmp_5;
|
|
@@ -1846,13 +1846,13 @@
|
|
|
1846
1846
|
}
|
|
1847
1847
|
tmp_5 = tmp_6;
|
|
1848
1848
|
}
|
|
1849
|
-
this_0.
|
|
1849
|
+
this_0.r30(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1850
1850
|
} else {
|
|
1851
1851
|
if (body instanceof OutgoingContent) {
|
|
1852
|
-
this_0.
|
|
1853
|
-
this_0.
|
|
1852
|
+
this_0.v2u_1 = body;
|
|
1853
|
+
this_0.r30(null);
|
|
1854
1854
|
} else {
|
|
1855
|
-
this_0.
|
|
1855
|
+
this_0.v2u_1 = body;
|
|
1856
1856
|
var tmp_7 = JsType_instance;
|
|
1857
1857
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1858
1858
|
var tmp_9;
|
|
@@ -1868,29 +1868,29 @@
|
|
|
1868
1868
|
}
|
|
1869
1869
|
tmp_9 = tmp_10;
|
|
1870
1870
|
}
|
|
1871
|
-
this_0.
|
|
1871
|
+
this_0.r30(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
tmp_2.
|
|
1876
|
-
this.
|
|
1875
|
+
tmp_2.m5p_1 = this_0;
|
|
1876
|
+
this.m5p_1.t2u_1 = Companion_getInstance().j2j_1;
|
|
1877
1877
|
var tmp_11 = this;
|
|
1878
|
-
tmp_11.
|
|
1878
|
+
tmp_11.n5p_1 = this.l5p_1;
|
|
1879
1879
|
var tmp_12 = this;
|
|
1880
|
-
tmp_12.
|
|
1880
|
+
tmp_12.o5p_1 = this.m5p_1;
|
|
1881
1881
|
this.e9_1 = 1;
|
|
1882
|
-
suspendResult = (new HttpStatement(this.
|
|
1882
|
+
suspendResult = (new HttpStatement(this.o5p_1, this.n5p_1)).b3o(this);
|
|
1883
1883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1884
1884
|
return suspendResult;
|
|
1885
1885
|
}
|
|
1886
1886
|
|
|
1887
1887
|
continue $sm;
|
|
1888
1888
|
case 1:
|
|
1889
|
-
this.
|
|
1889
|
+
this.p5p_1 = suspendResult;
|
|
1890
1890
|
var tmp_13 = this;
|
|
1891
|
-
tmp_13.
|
|
1891
|
+
tmp_13.q5p_1 = this.p5p_1;
|
|
1892
1892
|
this.e9_1 = 2;
|
|
1893
|
-
var tmp_14 = this.
|
|
1893
|
+
var tmp_14 = this.q5p_1.a2y();
|
|
1894
1894
|
var tmp_15 = JsType_instance;
|
|
1895
1895
|
var tmp_16 = getKClass(JsonObject);
|
|
1896
1896
|
var tmp_17;
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
tmp_17 = tmp_18;
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
-
suspendResult = tmp_14.
|
|
1910
|
+
suspendResult = tmp_14.e2x(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1911
1911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1912
1912
|
return suspendResult;
|
|
1913
1913
|
}
|
|
@@ -1915,9 +1915,9 @@
|
|
|
1915
1915
|
continue $sm;
|
|
1916
1916
|
case 2:
|
|
1917
1917
|
var tmp_19 = this;
|
|
1918
|
-
tmp_19.
|
|
1918
|
+
tmp_19.r5p_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1919
1919
|
this.e9_1 = 3;
|
|
1920
|
-
suspendResult = throwIfError(this.
|
|
1920
|
+
suspendResult = throwIfError(this.d5p_1, this.r5p_1, this.p5p_1, this);
|
|
1921
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
1922
|
return suspendResult;
|
|
1923
1923
|
}
|
|
@@ -1925,9 +1925,9 @@
|
|
|
1925
1925
|
continue $sm;
|
|
1926
1926
|
case 3:
|
|
1927
1927
|
var tmp_20 = this;
|
|
1928
|
-
tmp_20.
|
|
1928
|
+
tmp_20.s5p_1 = this.p5p_1;
|
|
1929
1929
|
this.e9_1 = 4;
|
|
1930
|
-
var tmp_21 = this.
|
|
1930
|
+
var tmp_21 = this.s5p_1.a2y();
|
|
1931
1931
|
var tmp_22 = JsType_instance;
|
|
1932
1932
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1933
1933
|
var tmp_24;
|
|
@@ -1944,7 +1944,7 @@
|
|
|
1944
1944
|
tmp_24 = tmp_25;
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
|
-
suspendResult = tmp_21.
|
|
1947
|
+
suspendResult = tmp_21.e2x(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1948
1948
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1949
1949
|
return suspendResult;
|
|
1950
1950
|
}
|
|
@@ -1952,10 +1952,10 @@
|
|
|
1952
1952
|
continue $sm;
|
|
1953
1953
|
case 4:
|
|
1954
1954
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1955
|
-
var randomJson = extractRandomResult(this.
|
|
1956
|
-
var tmp14_cardDecks = responseDto.
|
|
1957
|
-
var tmp15_signature = responseDto.
|
|
1958
|
-
var tmp16_id = responseDto.
|
|
1955
|
+
var randomJson = extractRandomResult(this.d5p_1, this.r5p_1);
|
|
1956
|
+
var tmp14_cardDecks = responseDto.r5n_1.v5n_1.e5o_1;
|
|
1957
|
+
var tmp15_signature = responseDto.r5n_1.w5n_1;
|
|
1958
|
+
var tmp16_id = responseDto.s5n_1;
|
|
1959
1959
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1960
1960
|
case 5:
|
|
1961
1961
|
this.f9_1 = 6;
|
|
@@ -1987,9 +1987,9 @@
|
|
|
1987
1987
|
};
|
|
1988
1988
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1989
1989
|
CoroutineImpl.call(this, resultContinuation);
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1990
|
+
this.q5o_1 = _this__u8e3s4;
|
|
1991
|
+
this.r5o_1 = bodyAsJson;
|
|
1992
|
+
this.s5o_1 = response;
|
|
1993
1993
|
}
|
|
1994
1994
|
protoOf($throwIfErrorCOROUTINE$2).m9 = function () {
|
|
1995
1995
|
var suspendResult = this.g9_1;
|
|
@@ -1999,12 +1999,12 @@
|
|
|
1999
1999
|
switch (tmp) {
|
|
2000
2000
|
case 0:
|
|
2001
2001
|
this.f9_1 = 3;
|
|
2002
|
-
var this_0 = this.
|
|
2002
|
+
var this_0 = this.r5o_1;
|
|
2003
2003
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).e2('error')) {
|
|
2004
2004
|
var tmp_0 = this;
|
|
2005
|
-
tmp_0.
|
|
2005
|
+
tmp_0.t5o_1 = this.s5o_1;
|
|
2006
2006
|
this.e9_1 = 2;
|
|
2007
|
-
var tmp_1 = this.
|
|
2007
|
+
var tmp_1 = this.t5o_1.a2y();
|
|
2008
2008
|
var tmp_2 = JsType_instance;
|
|
2009
2009
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2010
2010
|
var tmp_4;
|
|
@@ -2020,7 +2020,7 @@
|
|
|
2020
2020
|
}
|
|
2021
2021
|
tmp_4 = tmp_5;
|
|
2022
2022
|
}
|
|
2023
|
-
suspendResult = tmp_1.
|
|
2023
|
+
suspendResult = tmp_1.e2x(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2024
2024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2025
2025
|
return suspendResult;
|
|
2026
2026
|
}
|
|
@@ -2034,10 +2034,10 @@
|
|
|
2034
2034
|
return Unit_instance;
|
|
2035
2035
|
case 2:
|
|
2036
2036
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2037
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2038
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2039
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2040
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2037
|
+
var tmp18_safe_receiver = errorResponseDto.j5m_1;
|
|
2038
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.m5m_1;
|
|
2039
|
+
var tmp19_safe_receiver = errorResponseDto.j5m_1;
|
|
2040
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.n5m_1);
|
|
2041
2041
|
case 3:
|
|
2042
2042
|
throw this.h9_1;
|
|
2043
2043
|
}
|
|
@@ -2053,10 +2053,10 @@
|
|
|
2053
2053
|
while (true);
|
|
2054
2054
|
};
|
|
2055
2055
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2056
|
+
this.t5p_1 = client;
|
|
2057
|
+
this.u5p_1 = apiKey;
|
|
2058
2058
|
}
|
|
2059
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2059
|
+
protoOf(RandomOrgApiServiceImpl).h5o = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2060
2060
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2061
2061
|
tmp.g9_1 = Unit_instance;
|
|
2062
2062
|
tmp.h9_1 = null;
|
|
@@ -2083,19 +2083,19 @@
|
|
|
2083
2083
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2084
2084
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2085
2085
|
}
|
|
2086
|
-
protoOf(PoolParams).
|
|
2086
|
+
protoOf(PoolParams).c5m = function () {
|
|
2087
2087
|
return this.poolSize;
|
|
2088
2088
|
};
|
|
2089
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).d5m = function () {
|
|
2090
2090
|
return this.thresholdForUsedPool;
|
|
2091
2091
|
};
|
|
2092
|
-
protoOf(PoolParams).
|
|
2092
|
+
protoOf(PoolParams).v5p = function () {
|
|
2093
2093
|
return this.requestDurationWarn;
|
|
2094
2094
|
};
|
|
2095
|
-
protoOf(PoolParams).
|
|
2095
|
+
protoOf(PoolParams).w5p = function () {
|
|
2096
2096
|
return this.failedRequestAttempts;
|
|
2097
2097
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).x5p = function () {
|
|
2099
2099
|
return this.failedAttemptCooldown;
|
|
2100
2100
|
};
|
|
2101
2101
|
protoOf(PoolParams).pe = function () {
|
|
@@ -2104,16 +2104,16 @@
|
|
|
2104
2104
|
protoOf(PoolParams).qe = function () {
|
|
2105
2105
|
return this.thresholdForUsedPool;
|
|
2106
2106
|
};
|
|
2107
|
-
protoOf(PoolParams).
|
|
2107
|
+
protoOf(PoolParams).hk = function () {
|
|
2108
2108
|
return this.requestDurationWarn;
|
|
2109
2109
|
};
|
|
2110
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).u5l = function () {
|
|
2111
2111
|
return this.failedRequestAttempts;
|
|
2112
2112
|
};
|
|
2113
|
-
protoOf(PoolParams).
|
|
2113
|
+
protoOf(PoolParams).y5p = function () {
|
|
2114
2114
|
return this.failedAttemptCooldown;
|
|
2115
2115
|
};
|
|
2116
|
-
protoOf(PoolParams).
|
|
2116
|
+
protoOf(PoolParams).z5p = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2117
2117
|
return new PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2118
2118
|
};
|
|
2119
2119
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2123
2123
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2124
2124
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2125
|
-
return this.
|
|
2125
|
+
return this.z5p(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2126
2126
|
};
|
|
2127
2127
|
protoOf(PoolParams).toString = function () {
|
|
2128
2128
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', requestDurationWarn=' + this.requestDurationWarn + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2159,74 +2159,74 @@
|
|
|
2159
2159
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2160
2160
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2161
2161
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2162
|
+
this.d5q_1 = randomResult;
|
|
2163
|
+
this.e5q_1 = usedByGames;
|
|
2164
|
+
this.f5q_1 = reservedCardDecks;
|
|
2165
|
+
this.g5q_1 = isUsed;
|
|
2166
2166
|
}
|
|
2167
|
-
protoOf(RandomPoolValue).
|
|
2168
|
-
return this.
|
|
2167
|
+
protoOf(RandomPoolValue).h5q = function () {
|
|
2168
|
+
return this.d5q_1.m5l_1.m();
|
|
2169
2169
|
};
|
|
2170
|
-
protoOf(RandomPoolValue).
|
|
2171
|
-
if (this.
|
|
2170
|
+
protoOf(RandomPoolValue).i5q = function (minRoundsCount) {
|
|
2171
|
+
if (this.g5q_1) {
|
|
2172
2172
|
return false;
|
|
2173
2173
|
}
|
|
2174
|
-
var availableCount = this.
|
|
2174
|
+
var availableCount = this.h5q() - this.f5q_1 | 0;
|
|
2175
2175
|
return availableCount >= minRoundsCount;
|
|
2176
2176
|
};
|
|
2177
|
-
protoOf(RandomPoolValue).
|
|
2178
|
-
var lastReservedCardDeckIndex = this.
|
|
2177
|
+
protoOf(RandomPoolValue).j5q = function (gameId, reservedCardDecks, thresholdForUsedPool) {
|
|
2178
|
+
var lastReservedCardDeckIndex = this.f5q_1 - 1 | 0;
|
|
2179
2179
|
// Inline function 'kotlin.apply' call
|
|
2180
|
-
var this_0 = toMutableMap(this.
|
|
2180
|
+
var this_0 = toMutableMap(this.e5q_1);
|
|
2181
2181
|
// Inline function 'kotlin.contracts.contract' call
|
|
2182
2182
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2183
2183
|
this_0.j2(gameId, lastReservedCardDeckIndex + 1 | 0);
|
|
2184
2184
|
var newNewUsedBy = toMap(this_0);
|
|
2185
|
-
var newReservedCardDecks = this.
|
|
2186
|
-
return this.
|
|
2185
|
+
var newReservedCardDecks = this.f5q_1 + reservedCardDecks | 0;
|
|
2186
|
+
return this.k5q(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.h5q());
|
|
2187
2187
|
};
|
|
2188
|
-
protoOf(RandomPoolValue).
|
|
2189
|
-
var currentCardDeckIndex = getValue(this.
|
|
2188
|
+
protoOf(RandomPoolValue).l5q = function (gameId) {
|
|
2189
|
+
var currentCardDeckIndex = getValue(this.e5q_1, gameId);
|
|
2190
2190
|
var tmp;
|
|
2191
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2191
|
+
if (currentCardDeckIndex === get_lastIndex(this.d5q_1.m5l_1)) {
|
|
2192
2192
|
tmp = 0;
|
|
2193
2193
|
} else {
|
|
2194
2194
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2195
2195
|
}
|
|
2196
2196
|
var newCardDeckIndex = tmp;
|
|
2197
2197
|
// Inline function 'kotlin.apply' call
|
|
2198
|
-
var this_0 = toMutableMap(this.
|
|
2198
|
+
var this_0 = toMutableMap(this.e5q_1);
|
|
2199
2199
|
// Inline function 'kotlin.contracts.contract' call
|
|
2200
2200
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2201
2201
|
this_0.j2(gameId, newCardDeckIndex);
|
|
2202
2202
|
var newNewUsedBy = toMap(this_0);
|
|
2203
|
-
return this.
|
|
2203
|
+
return this.k5q(VOID, newNewUsedBy);
|
|
2204
2204
|
};
|
|
2205
|
-
protoOf(RandomPoolValue).
|
|
2206
|
-
return this.
|
|
2205
|
+
protoOf(RandomPoolValue).m5q = function (gameId, reservedCardDecks) {
|
|
2206
|
+
return this.k5q(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
|
|
2207
2207
|
};
|
|
2208
|
-
protoOf(RandomPoolValue).
|
|
2209
|
-
var index = getValue(this.
|
|
2210
|
-
return new GameCardDeckData(index, this.
|
|
2208
|
+
protoOf(RandomPoolValue).n5q = function (gameId) {
|
|
2209
|
+
var index = getValue(this.e5q_1, gameId);
|
|
2210
|
+
return new GameCardDeckData(index, this.d5q_1.m5l_1.o(index));
|
|
2211
2211
|
};
|
|
2212
|
-
protoOf(RandomPoolValue).
|
|
2212
|
+
protoOf(RandomPoolValue).o5q = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2213
2213
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2214
2214
|
};
|
|
2215
|
-
protoOf(RandomPoolValue).
|
|
2216
|
-
randomResult = randomResult === VOID ? this.
|
|
2217
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2218
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2219
|
-
isUsed = isUsed === VOID ? this.
|
|
2220
|
-
return $super === VOID ? this.
|
|
2215
|
+
protoOf(RandomPoolValue).k5q = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2216
|
+
randomResult = randomResult === VOID ? this.d5q_1 : randomResult;
|
|
2217
|
+
usedByGames = usedByGames === VOID ? this.e5q_1 : usedByGames;
|
|
2218
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.f5q_1 : reservedCardDecks;
|
|
2219
|
+
isUsed = isUsed === VOID ? this.g5q_1 : isUsed;
|
|
2220
|
+
return $super === VOID ? this.o5q(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.o5q.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2221
2221
|
};
|
|
2222
2222
|
protoOf(RandomPoolValue).toString = function () {
|
|
2223
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2223
|
+
return 'RandomPoolValue(randomResult=' + this.d5q_1.toString() + ', usedByGames=' + toString(this.e5q_1) + ', reservedCardDecks=' + this.f5q_1 + ', isUsed=' + this.g5q_1 + ')';
|
|
2224
2224
|
};
|
|
2225
2225
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2226
|
-
var result = this.
|
|
2227
|
-
result = imul(result, 31) + hashCode(this.
|
|
2228
|
-
result = imul(result, 31) + this.
|
|
2229
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2226
|
+
var result = this.d5q_1.hashCode();
|
|
2227
|
+
result = imul(result, 31) + hashCode(this.e5q_1) | 0;
|
|
2228
|
+
result = imul(result, 31) + this.f5q_1 | 0;
|
|
2229
|
+
result = imul(result, 31) + getBooleanHashCode(this.g5q_1) | 0;
|
|
2230
2230
|
return result;
|
|
2231
2231
|
};
|
|
2232
2232
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2235,28 +2235,28 @@
|
|
|
2235
2235
|
if (!(other instanceof RandomPoolValue))
|
|
2236
2236
|
return false;
|
|
2237
2237
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2238
|
-
if (!this.
|
|
2238
|
+
if (!this.d5q_1.equals(tmp0_other_with_cast.d5q_1))
|
|
2239
2239
|
return false;
|
|
2240
|
-
if (!equals(this.
|
|
2240
|
+
if (!equals(this.e5q_1, tmp0_other_with_cast.e5q_1))
|
|
2241
2241
|
return false;
|
|
2242
|
-
if (!(this.
|
|
2242
|
+
if (!(this.f5q_1 === tmp0_other_with_cast.f5q_1))
|
|
2243
2243
|
return false;
|
|
2244
|
-
if (!(this.
|
|
2244
|
+
if (!(this.g5q_1 === tmp0_other_with_cast.g5q_1))
|
|
2245
2245
|
return false;
|
|
2246
2246
|
return true;
|
|
2247
2247
|
};
|
|
2248
2248
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2255
|
-
this.
|
|
2249
|
+
this.x5q_1 = this$0;
|
|
2250
|
+
this.y5q_1 = $minRoundsCountInPool;
|
|
2251
|
+
this.z5q_1 = $userData;
|
|
2252
|
+
this.a5r_1 = $min;
|
|
2253
|
+
this.b5r_1 = $max;
|
|
2254
|
+
this.c5r_1 = $cardsCount;
|
|
2255
|
+
this.d5r_1 = $signed;
|
|
2256
2256
|
CoroutineImpl.call(this, resultContinuation);
|
|
2257
2257
|
}
|
|
2258
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2259
|
-
var tmp = this.
|
|
2258
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).f5r = function ($this$withTimeout, $completion) {
|
|
2259
|
+
var tmp = this.q1d($this$withTimeout, $completion);
|
|
2260
2260
|
tmp.g9_1 = Unit_instance;
|
|
2261
2261
|
tmp.h9_1 = null;
|
|
2262
2262
|
var tmp_0 = tmp.m9();
|
|
@@ -2265,7 +2265,7 @@
|
|
|
2265
2265
|
return tmp_0;
|
|
2266
2266
|
};
|
|
2267
2267
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).w9 = function (p1, $completion) {
|
|
2268
|
-
return this.
|
|
2268
|
+
return this.f5r((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2269
2269
|
};
|
|
2270
2270
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).m9 = function () {
|
|
2271
2271
|
var suspendResult = this.g9_1;
|
|
@@ -2276,7 +2276,7 @@
|
|
|
2276
2276
|
case 0:
|
|
2277
2277
|
this.f9_1 = 2;
|
|
2278
2278
|
this.e9_1 = 1;
|
|
2279
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2279
|
+
suspendResult = getOrLoadGameCardDeckData(this.x5q_1, this.y5q_1, this.z5q_1, this.a5r_1, this.b5r_1, this.c5r_1, this.d5r_1, this);
|
|
2280
2280
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2281
2281
|
return suspendResult;
|
|
2282
2282
|
}
|
|
@@ -2299,15 +2299,15 @@
|
|
|
2299
2299
|
}
|
|
2300
2300
|
while (true);
|
|
2301
2301
|
};
|
|
2302
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2303
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.
|
|
2304
|
-
i.
|
|
2302
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).q1d = function ($this$withTimeout, completion) {
|
|
2303
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.x5q_1, this.y5q_1, this.z5q_1, this.a5r_1, this.b5r_1, this.c5r_1, this.d5r_1, completion);
|
|
2304
|
+
i.e5r_1 = $this$withTimeout;
|
|
2305
2305
|
return i;
|
|
2306
2306
|
};
|
|
2307
2307
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2308
2308
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2309
2309
|
var l = function ($this$withTimeout, $completion) {
|
|
2310
|
-
return i.
|
|
2310
|
+
return i.f5r($this$withTimeout, $completion);
|
|
2311
2311
|
};
|
|
2312
2312
|
l.$arity = 1;
|
|
2313
2313
|
return l;
|
|
@@ -2319,10 +2319,10 @@
|
|
|
2319
2319
|
return tmp.m9();
|
|
2320
2320
|
}
|
|
2321
2321
|
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2322
|
-
return withContext($this.
|
|
2322
|
+
return withContext($this.z5r_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2323
2323
|
}
|
|
2324
2324
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2325
|
-
var existingCardDeck = $this.
|
|
2325
|
+
var existingCardDeck = $this.d5s_1.g2(userData.gameId);
|
|
2326
2326
|
var tmp;
|
|
2327
2327
|
if (!(existingCardDeck == null)) {
|
|
2328
2328
|
tmp = Companion_instance_2.newRound(existingCardDeck, cardDeckData);
|
|
@@ -2338,9 +2338,9 @@
|
|
|
2338
2338
|
return tmp.m9();
|
|
2339
2339
|
}
|
|
2340
2340
|
function Companion_9() {
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2341
|
+
this.x5s_1 = 100;
|
|
2342
|
+
this.y5s_1 = 3;
|
|
2343
|
+
this.z5s_1 = 3000;
|
|
2344
2344
|
}
|
|
2345
2345
|
var Companion_instance_11;
|
|
2346
2346
|
function Companion_getInstance_12() {
|
|
@@ -2350,18 +2350,18 @@
|
|
|
2350
2350
|
return uuid4().toString();
|
|
2351
2351
|
}
|
|
2352
2352
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2353
|
-
this.
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2360
|
-
this.
|
|
2353
|
+
this.i5t_1 = this$0;
|
|
2354
|
+
this.j5t_1 = $timeoutMillis;
|
|
2355
|
+
this.k5t_1 = $minRoundsCountInPool;
|
|
2356
|
+
this.l5t_1 = $userData;
|
|
2357
|
+
this.m5t_1 = $min;
|
|
2358
|
+
this.n5t_1 = $max;
|
|
2359
|
+
this.o5t_1 = $cardsCount;
|
|
2360
|
+
this.p5t_1 = $signed;
|
|
2361
2361
|
CoroutineImpl.call(this, resultContinuation);
|
|
2362
2362
|
}
|
|
2363
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2364
|
-
var tmp = this.
|
|
2363
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).f5r = function ($this$withContext, $completion) {
|
|
2364
|
+
var tmp = this.q1d($this$withContext, $completion);
|
|
2365
2365
|
tmp.g9_1 = Unit_instance;
|
|
2366
2366
|
tmp.h9_1 = null;
|
|
2367
2367
|
var tmp_0 = tmp.m9();
|
|
@@ -2370,7 +2370,7 @@
|
|
|
2370
2370
|
return tmp_0;
|
|
2371
2371
|
};
|
|
2372
2372
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).w9 = function (p1, $completion) {
|
|
2373
|
-
return this.
|
|
2373
|
+
return this.f5r((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2374
2374
|
};
|
|
2375
2375
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).m9 = function () {
|
|
2376
2376
|
var suspendResult = this.g9_1;
|
|
@@ -2381,35 +2381,35 @@
|
|
|
2381
2381
|
case 0:
|
|
2382
2382
|
this.f9_1 = 11;
|
|
2383
2383
|
var tmp_0 = this;
|
|
2384
|
-
tmp_0.
|
|
2384
|
+
tmp_0.r5t_1 = this.i5t_1.b5s_1;
|
|
2385
2385
|
var tmp_1 = this;
|
|
2386
|
-
tmp_1.
|
|
2386
|
+
tmp_1.s5t_1 = null;
|
|
2387
2387
|
this.e9_1 = 1;
|
|
2388
|
-
suspendResult = this.
|
|
2388
|
+
suspendResult = this.r5t_1.m1l(this.s5t_1, this);
|
|
2389
2389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2390
2390
|
return suspendResult;
|
|
2391
2391
|
}
|
|
2392
2392
|
|
|
2393
2393
|
continue $sm;
|
|
2394
2394
|
case 1:
|
|
2395
|
-
this.
|
|
2395
|
+
this.t5t_1 = Unit_instance;
|
|
2396
2396
|
this.e9_1 = 2;
|
|
2397
2397
|
continue $sm;
|
|
2398
2398
|
case 2:
|
|
2399
2399
|
this.f9_1 = 10;
|
|
2400
|
-
this.
|
|
2400
|
+
this.u5t_1 = Unit_instance;
|
|
2401
2401
|
this.e9_1 = 3;
|
|
2402
2402
|
continue $sm;
|
|
2403
2403
|
case 3:
|
|
2404
|
-
this.
|
|
2405
|
-
if (!(this.
|
|
2406
|
-
this.
|
|
2407
|
-
if (this.
|
|
2408
|
-
this.
|
|
2409
|
-
this.
|
|
2404
|
+
this.v5t_1 = this.i5t_1.e5s_1;
|
|
2405
|
+
if (!(this.v5t_1 == null) && this.i5t_1.f5s_1 >= this.i5t_1.w5r_1.failedRequestAttempts) {
|
|
2406
|
+
this.w5t_1 = this.v5t_1.h5k(this.i5t_1.w5r_1.failedAttemptCooldown);
|
|
2407
|
+
if (this.w5t_1.l5k(System_instance.t54()) > 0) {
|
|
2408
|
+
this.x5t_1 = new RandomException(VOID, 'getCardDeck cooldown ends in ' + this.w5t_1.toString());
|
|
2409
|
+
this.i5t_1.y5r_1.v('RandomPoolProvider', VOID, this.x5t_1);
|
|
2410
2410
|
var tmp_2 = this;
|
|
2411
|
-
var exception = this.
|
|
2412
|
-
tmp_2.
|
|
2411
|
+
var exception = this.x5t_1;
|
|
2412
|
+
tmp_2.u5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2413
2413
|
this.e9_1 = 8;
|
|
2414
2414
|
continue $sm;
|
|
2415
2415
|
} else {
|
|
@@ -2427,14 +2427,14 @@
|
|
|
2427
2427
|
case 5:
|
|
2428
2428
|
this.f9_1 = 7;
|
|
2429
2429
|
this.e9_1 = 6;
|
|
2430
|
-
suspendResult = withTimeout(this.
|
|
2430
|
+
suspendResult = withTimeout(this.j5t_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.i5t_1, this.k5t_1, this.l5t_1, this.m5t_1, this.n5t_1, this.o5t_1, this.p5t_1, null), this);
|
|
2431
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2432
2432
|
return suspendResult;
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
2435
2435
|
continue $sm;
|
|
2436
2436
|
case 6:
|
|
2437
|
-
this.
|
|
2437
|
+
this.u5t_1 = suspendResult;
|
|
2438
2438
|
this.e9_1 = 8;
|
|
2439
2439
|
continue $sm;
|
|
2440
2440
|
case 7:
|
|
@@ -2442,13 +2442,13 @@
|
|
|
2442
2442
|
var tmp_3 = this.h9_1;
|
|
2443
2443
|
if (tmp_3 instanceof Error) {
|
|
2444
2444
|
var error = this.h9_1;
|
|
2445
|
-
this.
|
|
2446
|
-
var _unary__edvuaz = this.
|
|
2447
|
-
this.
|
|
2445
|
+
this.i5t_1.e5s_1 = System_instance.t54();
|
|
2446
|
+
var _unary__edvuaz = this.i5t_1.f5s_1;
|
|
2447
|
+
this.i5t_1.f5s_1 = _unary__edvuaz + 1 | 0;
|
|
2448
2448
|
var exception_0 = new RandomException(VOID, 'createNewShuffledCardDeck error message = ' + error.message, error);
|
|
2449
|
-
this.
|
|
2449
|
+
this.i5t_1.y5r_1.v('RandomPoolProvider', VOID, exception_0);
|
|
2450
2450
|
var tmp_4 = this;
|
|
2451
|
-
tmp_4.
|
|
2451
|
+
tmp_4.u5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2452
2452
|
this.e9_1 = 8;
|
|
2453
2453
|
continue $sm;
|
|
2454
2454
|
} else {
|
|
@@ -2456,19 +2456,19 @@
|
|
|
2456
2456
|
}
|
|
2457
2457
|
|
|
2458
2458
|
case 8:
|
|
2459
|
-
this.
|
|
2459
|
+
this.t5t_1 = this.u5t_1;
|
|
2460
2460
|
this.f9_1 = 11;
|
|
2461
2461
|
this.e9_1 = 9;
|
|
2462
2462
|
continue $sm;
|
|
2463
2463
|
case 9:
|
|
2464
|
-
var tmp_5 = this.
|
|
2464
|
+
var tmp_5 = this.t5t_1;
|
|
2465
2465
|
this.f9_1 = 11;
|
|
2466
|
-
this.
|
|
2466
|
+
this.r5t_1.x1k(this.s5t_1);
|
|
2467
2467
|
return tmp_5;
|
|
2468
2468
|
case 10:
|
|
2469
2469
|
this.f9_1 = 11;
|
|
2470
2470
|
var t = this.h9_1;
|
|
2471
|
-
this.
|
|
2471
|
+
this.r5t_1.x1k(this.s5t_1);
|
|
2472
2472
|
throw t;
|
|
2473
2473
|
case 11:
|
|
2474
2474
|
throw this.h9_1;
|
|
@@ -2484,35 +2484,35 @@
|
|
|
2484
2484
|
}
|
|
2485
2485
|
while (true);
|
|
2486
2486
|
};
|
|
2487
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2488
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2489
|
-
i.
|
|
2487
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).q1d = function ($this$withContext, completion) {
|
|
2488
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.i5t_1, this.j5t_1, this.k5t_1, this.l5t_1, this.m5t_1, this.n5t_1, this.o5t_1, this.p5t_1, completion);
|
|
2489
|
+
i.q5t_1 = $this$withContext;
|
|
2490
2490
|
return i;
|
|
2491
2491
|
};
|
|
2492
2492
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2493
2493
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2494
2494
|
var l = function ($this$withContext, $completion) {
|
|
2495
|
-
return i.
|
|
2495
|
+
return i.f5r($this$withContext, $completion);
|
|
2496
2496
|
};
|
|
2497
2497
|
l.$arity = 1;
|
|
2498
2498
|
return l;
|
|
2499
2499
|
}
|
|
2500
2500
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2501
|
+
this.g5u_1 = this$0;
|
|
2502
|
+
this.h5u_1 = $min;
|
|
2503
|
+
this.i5u_1 = $max;
|
|
2504
|
+
this.j5u_1 = $cardsCount;
|
|
2505
|
+
this.k5u_1 = $signed;
|
|
2506
2506
|
CoroutineImpl.call(this, resultContinuation);
|
|
2507
2507
|
}
|
|
2508
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2509
|
-
var tmp = this.
|
|
2508
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).n5u = function ($this$withContext, $completion) {
|
|
2509
|
+
var tmp = this.q1d($this$withContext, $completion);
|
|
2510
2510
|
tmp.g9_1 = Unit_instance;
|
|
2511
2511
|
tmp.h9_1 = null;
|
|
2512
2512
|
return tmp.m9();
|
|
2513
2513
|
};
|
|
2514
2514
|
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).w9 = function (p1, $completion) {
|
|
2515
|
-
return this.
|
|
2515
|
+
return this.n5u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2516
2516
|
};
|
|
2517
2517
|
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).m9 = function () {
|
|
2518
2518
|
var suspendResult = this.g9_1;
|
|
@@ -2522,9 +2522,9 @@
|
|
|
2522
2522
|
switch (tmp) {
|
|
2523
2523
|
case 0:
|
|
2524
2524
|
this.f9_1 = 2;
|
|
2525
|
-
this.
|
|
2525
|
+
this.m5u_1 = System_instance.t54();
|
|
2526
2526
|
this.e9_1 = 1;
|
|
2527
|
-
suspendResult = this.
|
|
2527
|
+
suspendResult = this.g5u_1.x5r_1.h5o(this.h5u_1, this.i5u_1, this.g5u_1.w5r_1.poolSize, this.j5u_1, new CardDecksRequestUserData(this.g5u_1.a5s_1(), this.g5u_1.w5r_1.poolSize), this.k5u_1, this);
|
|
2528
2528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2529
2529
|
return suspendResult;
|
|
2530
2530
|
}
|
|
@@ -2532,12 +2532,12 @@
|
|
|
2532
2532
|
continue $sm;
|
|
2533
2533
|
case 1:
|
|
2534
2534
|
var result = suspendResult;
|
|
2535
|
-
var requestEndTime = System_instance.
|
|
2536
|
-
var requestDuration = requestEndTime.
|
|
2535
|
+
var requestEndTime = System_instance.t54();
|
|
2536
|
+
var requestDuration = requestEndTime.k5k(this.m5u_1);
|
|
2537
2537
|
Companion_getInstance_0();
|
|
2538
|
-
var this_0 = this.
|
|
2538
|
+
var this_0 = this.g5u_1.w5r_1.requestDurationWarn;
|
|
2539
2539
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration_0(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2540
|
-
this.
|
|
2540
|
+
this.g5u_1.y5r_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ') + ('expected = ' + this.g5u_1.w5r_1.requestDurationWarn));
|
|
2541
2541
|
}
|
|
2542
2542
|
|
|
2543
2543
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
@@ -2556,28 +2556,28 @@
|
|
|
2556
2556
|
}
|
|
2557
2557
|
while (true);
|
|
2558
2558
|
};
|
|
2559
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2560
|
-
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.
|
|
2561
|
-
i.
|
|
2559
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).q1d = function ($this$withContext, completion) {
|
|
2560
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.g5u_1, this.h5u_1, this.i5u_1, this.j5u_1, this.k5u_1, completion);
|
|
2561
|
+
i.l5u_1 = $this$withContext;
|
|
2562
2562
|
return i;
|
|
2563
2563
|
};
|
|
2564
2564
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2565
2565
|
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2566
2566
|
var l = function ($this$withContext, $completion) {
|
|
2567
|
-
return i.
|
|
2567
|
+
return i.n5u($this$withContext, $completion);
|
|
2568
2568
|
};
|
|
2569
2569
|
l.$arity = 1;
|
|
2570
2570
|
return l;
|
|
2571
2571
|
}
|
|
2572
2572
|
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2573
2573
|
CoroutineImpl.call(this, resultContinuation);
|
|
2574
|
-
this.
|
|
2575
|
-
this.
|
|
2576
|
-
this.
|
|
2577
|
-
this.
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2574
|
+
this.o5r_1 = _this__u8e3s4;
|
|
2575
|
+
this.p5r_1 = minRoundsCountInPool;
|
|
2576
|
+
this.q5r_1 = userData;
|
|
2577
|
+
this.r5r_1 = min;
|
|
2578
|
+
this.s5r_1 = max;
|
|
2579
|
+
this.t5r_1 = cardsCount;
|
|
2580
|
+
this.u5r_1 = signed;
|
|
2581
2581
|
}
|
|
2582
2582
|
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).m9 = function () {
|
|
2583
2583
|
var suspendResult = this.g9_1;
|
|
@@ -2587,9 +2587,9 @@
|
|
|
2587
2587
|
switch (tmp) {
|
|
2588
2588
|
case 0:
|
|
2589
2589
|
this.f9_1 = 2;
|
|
2590
|
-
this.
|
|
2590
|
+
this.v5r_1 = this.q5r_1.gameId;
|
|
2591
2591
|
this.e9_1 = 1;
|
|
2592
|
-
suspendResult = getPreparedRandomPoolValue(this.
|
|
2592
|
+
suspendResult = getPreparedRandomPoolValue(this.o5r_1, this.v5r_1, this.r5r_1, this.s5r_1, this.p5r_1, this.t5r_1, this.u5r_1, this);
|
|
2593
2593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2594
2594
|
return suspendResult;
|
|
2595
2595
|
}
|
|
@@ -2597,15 +2597,15 @@
|
|
|
2597
2597
|
continue $sm;
|
|
2598
2598
|
case 1:
|
|
2599
2599
|
var randomPoolValue = suspendResult;
|
|
2600
|
-
var this_0 = this.
|
|
2601
|
-
var key = randomPoolValue.
|
|
2600
|
+
var this_0 = this.o5r_1.c5s_1;
|
|
2601
|
+
var key = randomPoolValue.d5q_1.o5l_1;
|
|
2602
2602
|
this_0.j2(key, randomPoolValue);
|
|
2603
|
-
var cardDeckData = randomPoolValue.
|
|
2604
|
-
var tmp21_poolId = randomPoolValue.
|
|
2605
|
-
var tmp22_signature = randomPoolValue.
|
|
2606
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2607
|
-
var this_1 = this.
|
|
2608
|
-
var key_0 = this.
|
|
2603
|
+
var cardDeckData = randomPoolValue.n5q(this.q5r_1.gameId);
|
|
2604
|
+
var tmp21_poolId = randomPoolValue.d5q_1.o5l_1;
|
|
2605
|
+
var tmp22_signature = randomPoolValue.d5q_1.p5l_1;
|
|
2606
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.o5r_1, tmp21_poolId, tmp22_signature, cardDeckData, this.q5r_1);
|
|
2607
|
+
var this_1 = this.o5r_1.d5s_1;
|
|
2608
|
+
var key_0 = this.q5r_1.gameId;
|
|
2609
2609
|
this_1.j2(key_0, cardDecksRecord);
|
|
2610
2610
|
return cardDeckData;
|
|
2611
2611
|
case 2:
|
|
@@ -2624,13 +2624,13 @@
|
|
|
2624
2624
|
};
|
|
2625
2625
|
function $getPreparedRandomPoolValueCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
|
|
2626
2626
|
CoroutineImpl.call(this, resultContinuation);
|
|
2627
|
-
this.
|
|
2628
|
-
this.
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2631
|
-
this.
|
|
2632
|
-
this.
|
|
2633
|
-
this.
|
|
2627
|
+
this.o5s_1 = _this__u8e3s4;
|
|
2628
|
+
this.p5s_1 = gameId;
|
|
2629
|
+
this.q5s_1 = min;
|
|
2630
|
+
this.r5s_1 = max;
|
|
2631
|
+
this.s5s_1 = minRoundsCount;
|
|
2632
|
+
this.t5s_1 = cardsCount;
|
|
2633
|
+
this.u5s_1 = signed;
|
|
2634
2634
|
}
|
|
2635
2635
|
protoOf($getPreparedRandomPoolValueCOROUTINE$4).m9 = function () {
|
|
2636
2636
|
var suspendResult = this.g9_1;
|
|
@@ -2641,41 +2641,41 @@
|
|
|
2641
2641
|
case 0:
|
|
2642
2642
|
this.f9_1 = 2;
|
|
2643
2643
|
var tmp_0 = this;
|
|
2644
|
-
var this_0 = this.
|
|
2644
|
+
var this_0 = this.o5s_1.c5s_1;
|
|
2645
2645
|
var destination = LinkedHashMap_init_$Create$();
|
|
2646
2646
|
var tmp0_iterator = this_0.s().j();
|
|
2647
2647
|
while (tmp0_iterator.k()) {
|
|
2648
2648
|
var element = tmp0_iterator.l();
|
|
2649
|
-
var this_1 = element.u().
|
|
2650
|
-
var key = this.
|
|
2649
|
+
var this_1 = element.u().e5q_1;
|
|
2650
|
+
var key = this.p5s_1;
|
|
2651
2651
|
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).e2(key)) {
|
|
2652
2652
|
destination.j2(element.t(), element.u());
|
|
2653
2653
|
}
|
|
2654
2654
|
}
|
|
2655
2655
|
|
|
2656
|
-
tmp_0.
|
|
2657
|
-
if (!(this.
|
|
2658
|
-
return this.
|
|
2656
|
+
tmp_0.v5s_1 = firstOrNull(destination.s());
|
|
2657
|
+
if (!(this.v5s_1 == null)) {
|
|
2658
|
+
return this.v5s_1.u().l5q(this.p5s_1);
|
|
2659
2659
|
}
|
|
2660
2660
|
|
|
2661
2661
|
var tmp_1 = this;
|
|
2662
|
-
var this_2 = this.
|
|
2662
|
+
var this_2 = this.o5s_1.c5s_1;
|
|
2663
2663
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2664
2664
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2665
2665
|
while (tmp0_iterator_0.k()) {
|
|
2666
2666
|
var element_0 = tmp0_iterator_0.l();
|
|
2667
|
-
if (element_0.u().
|
|
2667
|
+
if (element_0.u().i5q(this.s5s_1)) {
|
|
2668
2668
|
destination_0.j2(element_0.t(), element_0.u());
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
2671
|
|
|
2672
|
-
tmp_1.
|
|
2673
|
-
if (!(this.
|
|
2674
|
-
return this.
|
|
2672
|
+
tmp_1.w5s_1 = firstOrNull(destination_0.s());
|
|
2673
|
+
if (!(this.w5s_1 == null)) {
|
|
2674
|
+
return this.w5s_1.u().j5q(this.p5s_1, this.s5s_1, this.o5s_1.w5r_1.thresholdForUsedPool);
|
|
2675
2675
|
}
|
|
2676
2676
|
|
|
2677
2677
|
this.e9_1 = 1;
|
|
2678
|
-
suspendResult = requestNewCardDecks(this.
|
|
2678
|
+
suspendResult = requestNewCardDecks(this.o5s_1, this.q5s_1, this.r5s_1, this.t5s_1, this.u5s_1, this);
|
|
2679
2679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2680
2680
|
return suspendResult;
|
|
2681
2681
|
}
|
|
@@ -2683,7 +2683,7 @@
|
|
|
2683
2683
|
continue $sm;
|
|
2684
2684
|
case 1:
|
|
2685
2685
|
var cardDecks = suspendResult;
|
|
2686
|
-
return cardDecks.
|
|
2686
|
+
return cardDecks.m5q(this.p5s_1, this.s5s_1);
|
|
2687
2687
|
case 2:
|
|
2688
2688
|
throw this.h9_1;
|
|
2689
2689
|
}
|
|
@@ -2699,7 +2699,7 @@
|
|
|
2699
2699
|
while (true);
|
|
2700
2700
|
};
|
|
2701
2701
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2702
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2702
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().l10_1 : dispatcher;
|
|
2703
2703
|
var tmp;
|
|
2704
2704
|
if (idsProvider === VOID) {
|
|
2705
2705
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2707,86 +2707,86 @@
|
|
|
2707
2707
|
tmp = idsProvider;
|
|
2708
2708
|
}
|
|
2709
2709
|
idsProvider = tmp;
|
|
2710
|
-
this.
|
|
2711
|
-
this.
|
|
2712
|
-
this.
|
|
2713
|
-
this.
|
|
2714
|
-
this.
|
|
2715
|
-
this.
|
|
2710
|
+
this.w5r_1 = params;
|
|
2711
|
+
this.x5r_1 = randomOrgApiService;
|
|
2712
|
+
this.y5r_1 = logger;
|
|
2713
|
+
this.z5r_1 = dispatcher;
|
|
2714
|
+
this.a5s_1 = idsProvider;
|
|
2715
|
+
this.b5s_1 = Mutex();
|
|
2716
2716
|
var tmp_0 = this;
|
|
2717
2717
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2718
|
-
tmp_0.
|
|
2718
|
+
tmp_0.c5s_1 = LinkedHashMap_init_$Create$();
|
|
2719
2719
|
var tmp_1 = this;
|
|
2720
2720
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2721
|
-
tmp_1.
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2721
|
+
tmp_1.d5s_1 = LinkedHashMap_init_$Create$();
|
|
2722
|
+
this.e5s_1 = null;
|
|
2723
|
+
this.f5s_1 = 0;
|
|
2724
2724
|
}
|
|
2725
|
-
protoOf(RandomPoolProviderImpl).
|
|
2726
|
-
var tmp = withContext(this.
|
|
2725
|
+
protoOf(RandomPoolProviderImpl).a5q = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) {
|
|
2726
|
+
var tmp = withContext(this.z5r_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, timeoutMillis, minRoundsCountInPool, userData, min, max, cardsCount, signed, null), $completion);
|
|
2727
2727
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2728
2728
|
return tmp;
|
|
2729
2729
|
return tmp;
|
|
2730
2730
|
};
|
|
2731
|
-
protoOf(RandomPoolProviderImpl).
|
|
2732
|
-
return this.
|
|
2731
|
+
protoOf(RandomPoolProviderImpl).o5u = function (gameId) {
|
|
2732
|
+
return this.d5s_1.g2(gameId);
|
|
2733
2733
|
};
|
|
2734
2734
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2735
|
-
return this.
|
|
2735
|
+
return this.o5u(gameId);
|
|
2736
2736
|
};
|
|
2737
|
-
protoOf(RandomPoolProviderImpl).
|
|
2738
|
-
return this.
|
|
2737
|
+
protoOf(RandomPoolProviderImpl).p5u = function (id) {
|
|
2738
|
+
return this.c5s_1.g2(id);
|
|
2739
2739
|
};
|
|
2740
2740
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2741
|
-
return this.
|
|
2741
|
+
return this.p5u(id);
|
|
2742
2742
|
};
|
|
2743
|
-
protoOf(RandomPoolProviderImpl).
|
|
2744
|
-
return this.
|
|
2743
|
+
protoOf(RandomPoolProviderImpl).q5u = function () {
|
|
2744
|
+
return this.c5s_1.m();
|
|
2745
2745
|
};
|
|
2746
2746
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2747
|
-
return this.
|
|
2747
|
+
return this.q5u();
|
|
2748
2748
|
};
|
|
2749
|
-
protoOf(RandomPoolProviderImpl).
|
|
2750
|
-
var gameCardDecksRecord = this.
|
|
2749
|
+
protoOf(RandomPoolProviderImpl).c5q = function (gameId) {
|
|
2750
|
+
var gameCardDecksRecord = this.d5s_1.g2(gameId);
|
|
2751
2751
|
if (!(gameCardDecksRecord == null)) {
|
|
2752
|
-
var randomPoolValue = this.
|
|
2752
|
+
var randomPoolValue = this.c5s_1.g2(gameCardDecksRecord.poolId);
|
|
2753
2753
|
if (!(randomPoolValue == null)) {
|
|
2754
2754
|
// Inline function 'kotlin.apply' call
|
|
2755
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2755
|
+
var this_0 = toMutableMap(randomPoolValue.e5q_1);
|
|
2756
2756
|
// Inline function 'kotlin.contracts.contract' call
|
|
2757
2757
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2758
2758
|
this_0.k2(gameId);
|
|
2759
|
-
var newPoolValue = randomPoolValue.
|
|
2760
|
-
if (newPoolValue.
|
|
2761
|
-
this.
|
|
2759
|
+
var newPoolValue = randomPoolValue.k5q(VOID, toMap(this_0));
|
|
2760
|
+
if (newPoolValue.e5q_1.p()) {
|
|
2761
|
+
this.c5s_1.k2(gameCardDecksRecord.poolId);
|
|
2762
2762
|
} else {
|
|
2763
2763
|
// Inline function 'kotlin.collections.set' call
|
|
2764
|
-
var this_1 = this.
|
|
2764
|
+
var this_1 = this.c5s_1;
|
|
2765
2765
|
var key = gameCardDecksRecord.poolId;
|
|
2766
2766
|
this_1.j2(key, newPoolValue);
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
2770
|
-
this.
|
|
2770
|
+
this.d5s_1.k2(gameId);
|
|
2771
2771
|
};
|
|
2772
2772
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2773
2773
|
return function ($this$defaultRequest) {
|
|
2774
2774
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2775
|
-
$this$defaultRequest.
|
|
2775
|
+
$this$defaultRequest.s33($url);
|
|
2776
2776
|
return Unit_instance;
|
|
2777
2777
|
};
|
|
2778
2778
|
}
|
|
2779
2779
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2780
|
-
this.
|
|
2780
|
+
this.r5u_1 = $externalLogger;
|
|
2781
2781
|
}
|
|
2782
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2783
|
-
this.
|
|
2782
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).c3u = function (message) {
|
|
2783
|
+
this.r5u_1(message);
|
|
2784
2784
|
};
|
|
2785
2785
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2786
2786
|
return function ($this$install) {
|
|
2787
|
-
$this$install.
|
|
2788
|
-
$this$install.
|
|
2789
|
-
$this$install.
|
|
2787
|
+
$this$install.s3v(get_DEFAULT(Companion_instance_0));
|
|
2788
|
+
$this$install.r3v_1 = $config.u5u_1;
|
|
2789
|
+
$this$install.s3v(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2790
2790
|
return Unit_instance;
|
|
2791
2791
|
};
|
|
2792
2792
|
}
|
|
@@ -2798,32 +2798,32 @@
|
|
|
2798
2798
|
}
|
|
2799
2799
|
function ApiCommonConfigs() {
|
|
2800
2800
|
}
|
|
2801
|
-
protoOf(ApiCommonConfigs).
|
|
2802
|
-
_this__u8e3s4.
|
|
2803
|
-
this.
|
|
2804
|
-
this.
|
|
2805
|
-
this.
|
|
2801
|
+
protoOf(ApiCommonConfigs).w5u = function (_this__u8e3s4, config, externalLogger) {
|
|
2802
|
+
_this__u8e3s4.e2v_1 = true;
|
|
2803
|
+
this.x5u(_this__u8e3s4, config.s5u_1);
|
|
2804
|
+
this.y5u(_this__u8e3s4, config.v5u_1);
|
|
2805
|
+
this.z5u(_this__u8e3s4, config, externalLogger);
|
|
2806
2806
|
};
|
|
2807
|
-
protoOf(ApiCommonConfigs).
|
|
2807
|
+
protoOf(ApiCommonConfigs).x5u = function (_this__u8e3s4, url) {
|
|
2808
2808
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2809
2809
|
};
|
|
2810
|
-
protoOf(ApiCommonConfigs).
|
|
2810
|
+
protoOf(ApiCommonConfigs).z5u = function (_this__u8e3s4, config, externalLogger) {
|
|
2811
2811
|
var tmp = Companion_getInstance_1();
|
|
2812
|
-
_this__u8e3s4.
|
|
2812
|
+
_this__u8e3s4.z2v(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2813
2813
|
};
|
|
2814
|
-
protoOf(ApiCommonConfigs).
|
|
2814
|
+
protoOf(ApiCommonConfigs).y5u = function (_this__u8e3s4, json) {
|
|
2815
2815
|
var tmp = Plugin_getInstance();
|
|
2816
|
-
_this__u8e3s4.
|
|
2816
|
+
_this__u8e3s4.z2v(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2817
2817
|
};
|
|
2818
2818
|
var ApiCommonConfigs_instance;
|
|
2819
2819
|
function ApiCommonConfigs_getInstance() {
|
|
2820
2820
|
return ApiCommonConfigs_instance;
|
|
2821
2821
|
}
|
|
2822
2822
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2823
|
+
$this$Json.j4u_1 = true;
|
|
2824
|
+
$this$Json.i4u_1 = true;
|
|
2823
2825
|
$this$Json.h4u_1 = true;
|
|
2824
|
-
$this$Json.g4u_1 =
|
|
2825
|
-
$this$Json.f4u_1 = true;
|
|
2826
|
-
$this$Json.e4u_1 = false;
|
|
2826
|
+
$this$Json.g4u_1 = false;
|
|
2827
2827
|
return Unit_instance;
|
|
2828
2828
|
}
|
|
2829
2829
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2836,19 +2836,19 @@
|
|
|
2836
2836
|
tmp = json;
|
|
2837
2837
|
}
|
|
2838
2838
|
json = tmp;
|
|
2839
|
-
this.
|
|
2840
|
-
this.
|
|
2841
|
-
this.
|
|
2842
|
-
this.
|
|
2839
|
+
this.s5u_1 = baseUrl;
|
|
2840
|
+
this.t5u_1 = timeoutMillis;
|
|
2841
|
+
this.u5u_1 = loggingLevel;
|
|
2842
|
+
this.v5u_1 = json;
|
|
2843
2843
|
}
|
|
2844
2844
|
protoOf(HttpParams).toString = function () {
|
|
2845
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2845
|
+
return 'HttpParams(baseUrl=' + this.s5u_1 + ', timeoutMillis=' + this.t5u_1.toString() + ', loggingLevel=' + this.u5u_1.toString() + ', json=' + toString(this.v5u_1) + ')';
|
|
2846
2846
|
};
|
|
2847
2847
|
protoOf(HttpParams).hashCode = function () {
|
|
2848
|
-
var result = getStringHashCode(this.
|
|
2849
|
-
result = imul(result, 31) + this.
|
|
2850
|
-
result = imul(result, 31) + this.
|
|
2851
|
-
result = imul(result, 31) + hashCode(this.
|
|
2848
|
+
var result = getStringHashCode(this.s5u_1);
|
|
2849
|
+
result = imul(result, 31) + this.t5u_1.hashCode() | 0;
|
|
2850
|
+
result = imul(result, 31) + this.u5u_1.hashCode() | 0;
|
|
2851
|
+
result = imul(result, 31) + hashCode(this.v5u_1) | 0;
|
|
2852
2852
|
return result;
|
|
2853
2853
|
};
|
|
2854
2854
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2857,13 +2857,13 @@
|
|
|
2857
2857
|
if (!(other instanceof HttpParams))
|
|
2858
2858
|
return false;
|
|
2859
2859
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2860
|
-
if (!(this.
|
|
2860
|
+
if (!(this.s5u_1 === tmp0_other_with_cast.s5u_1))
|
|
2861
2861
|
return false;
|
|
2862
|
-
if (!this.
|
|
2862
|
+
if (!this.t5u_1.equals(tmp0_other_with_cast.t5u_1))
|
|
2863
2863
|
return false;
|
|
2864
|
-
if (!this.
|
|
2864
|
+
if (!this.u5u_1.equals(tmp0_other_with_cast.u5u_1))
|
|
2865
2865
|
return false;
|
|
2866
|
-
if (!equals(this.
|
|
2866
|
+
if (!equals(this.v5u_1, tmp0_other_with_cast.v5u_1))
|
|
2867
2867
|
return false;
|
|
2868
2868
|
return true;
|
|
2869
2869
|
};
|
|
@@ -2889,12 +2889,12 @@
|
|
|
2889
2889
|
}
|
|
2890
2890
|
function nextBytesCopyTo($this, bytes) {
|
|
2891
2891
|
try {
|
|
2892
|
-
$this.
|
|
2892
|
+
$this.c5v_1.a5l(bytes);
|
|
2893
2893
|
} catch ($p) {
|
|
2894
2894
|
if ($p instanceof SecRandomCopyException) {
|
|
2895
2895
|
var error = $p;
|
|
2896
|
-
$this.
|
|
2897
|
-
$this.
|
|
2896
|
+
$this.b5v_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2897
|
+
$this.d5v_1.sg(bytes);
|
|
2898
2898
|
return Unit_instance;
|
|
2899
2899
|
} else {
|
|
2900
2900
|
throw $p;
|
|
@@ -2920,11 +2920,11 @@
|
|
|
2920
2920
|
}
|
|
2921
2921
|
function SecureRandom_0(logger) {
|
|
2922
2922
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2923
|
-
this.
|
|
2924
|
-
this.
|
|
2925
|
-
this.
|
|
2923
|
+
this.b5v_1 = logger;
|
|
2924
|
+
this.c5v_1 = new SecureRandom();
|
|
2925
|
+
this.d5v_1 = Default_getInstance();
|
|
2926
2926
|
}
|
|
2927
|
-
protoOf(SecureRandom_0).
|
|
2927
|
+
protoOf(SecureRandom_0).pg = function (from, until) {
|
|
2928
2928
|
checkRangeBounds(this, from, until);
|
|
2929
2929
|
var n = until - from | 0;
|
|
2930
2930
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2953,22 +2953,22 @@
|
|
|
2953
2953
|
};
|
|
2954
2954
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2955
2955
|
return function ($this$install) {
|
|
2956
|
-
$this$install.
|
|
2957
|
-
$this$install.
|
|
2956
|
+
$this$install.q3f($config.t5u_1);
|
|
2957
|
+
$this$install.o3f($config.t5u_1);
|
|
2958
2958
|
return Unit_instance;
|
|
2959
2959
|
};
|
|
2960
2960
|
}
|
|
2961
2961
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2962
2962
|
return function ($this$HttpClient) {
|
|
2963
2963
|
var tmp = Plugin_getInstance_0();
|
|
2964
|
-
$this$HttpClient.
|
|
2965
|
-
ApiCommonConfigs_instance.
|
|
2964
|
+
$this$HttpClient.z2v(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2965
|
+
ApiCommonConfigs_instance.w5u($this$HttpClient, $config, $externalLogger);
|
|
2966
2966
|
return Unit_instance;
|
|
2967
2967
|
};
|
|
2968
2968
|
}
|
|
2969
2969
|
function HttpFactory() {
|
|
2970
2970
|
}
|
|
2971
|
-
protoOf(HttpFactory).
|
|
2971
|
+
protoOf(HttpFactory).e5v = function (config, externalLogger) {
|
|
2972
2972
|
var tmp = Js_instance;
|
|
2973
2973
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2974
2974
|
};
|
|
@@ -2977,14 +2977,14 @@
|
|
|
2977
2977
|
return HttpFactory_instance;
|
|
2978
2978
|
}
|
|
2979
2979
|
//region block: post-declaration
|
|
2980
|
-
protoOf($serializer).
|
|
2981
|
-
protoOf($serializer_0).
|
|
2982
|
-
protoOf($serializer_2).
|
|
2983
|
-
protoOf($serializer_3).
|
|
2984
|
-
protoOf($serializer_5).
|
|
2985
|
-
protoOf($serializer_6).
|
|
2986
|
-
protoOf(RandomPoolProviderImpl).
|
|
2987
|
-
protoOf(SecureRandom_0).
|
|
2980
|
+
protoOf($serializer).h4f = typeParametersSerializers;
|
|
2981
|
+
protoOf($serializer_0).h4f = typeParametersSerializers;
|
|
2982
|
+
protoOf($serializer_2).h4f = typeParametersSerializers;
|
|
2983
|
+
protoOf($serializer_3).h4f = typeParametersSerializers;
|
|
2984
|
+
protoOf($serializer_5).h4f = typeParametersSerializers;
|
|
2985
|
+
protoOf($serializer_6).h4f = typeParametersSerializers;
|
|
2986
|
+
protoOf(RandomPoolProviderImpl).b5q = getCardDeck$default;
|
|
2987
|
+
protoOf(SecureRandom_0).a5v = shuffle;
|
|
2988
2988
|
//endregion
|
|
2989
2989
|
//region block: init
|
|
2990
2990
|
Companion_instance_1 = new Companion();
|