raspberry_games_server_game_logic 1.8.431 → 1.8.432
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 +2 -2
- package/Kosi-Kodein-kodein-di.js +16 -16
- package/Kotlin-DateTime-library-kotlinx-datetime.js +152 -152
- package/Logic_Debertz-ai_module.js +193 -193
- package/Logic_Debertz-core.js +536 -536
- package/Logic_Debertz-engine.js +3667 -3649
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +1 -0
- package/Logic_Debertz-game_server.js +187 -187
- package/kotlin-kotlin-stdlib.js +546 -540
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2160 -2160
- package/kotlinx-io-kotlinx-io-core.js +314 -314
- package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1442 -1442
- package/ktor-ktor-client-logging.js +265 -265
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +590 -590
- package/ktor-ktor-io.js +1241 -1241
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +61 -61
- package/ktor-ktor-utils.js +483 -483
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/random-library-crypto-rand.js +1 -1
- package/random-library-secure-random.js +2 -2
- package/raspberry-cardgame-lib-core.js +7 -7
- package/raspberry-cardgame-lib-logger.js +90 -90
- package/raspberry-cardgame-lib-random.js +794 -794
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +12 -12
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
205
205
|
signed = signed === VOID ? false : signed;
|
|
206
206
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
207
|
-
return $super === VOID ? this.
|
|
207
|
+
return $super === VOID ? this.l58(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.l58.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
208
208
|
}
|
|
209
209
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
210
210
|
initMetadataForCompanion(Companion_9);
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
240
240
|
//endregion
|
|
241
241
|
function Companion() {
|
|
242
|
-
this.
|
|
242
|
+
this.x53_1 = 100001;
|
|
243
243
|
}
|
|
244
244
|
var Companion_instance_1;
|
|
245
245
|
function Companion_getInstance_2() {
|
|
@@ -250,16 +250,16 @@
|
|
|
250
250
|
cause = cause === VOID ? null : cause;
|
|
251
251
|
RuntimeException_init_$Init$(message, cause, this);
|
|
252
252
|
captureStack(this, RandomException);
|
|
253
|
-
this.
|
|
253
|
+
this.y53_1 = code;
|
|
254
254
|
}
|
|
255
255
|
function CardDecksRequestUserData(id, count) {
|
|
256
256
|
this.id = id;
|
|
257
257
|
this.count = count;
|
|
258
258
|
}
|
|
259
|
-
protoOf(CardDecksRequestUserData).
|
|
259
|
+
protoOf(CardDecksRequestUserData).z53 = function () {
|
|
260
260
|
return this.id;
|
|
261
261
|
};
|
|
262
|
-
protoOf(CardDecksRequestUserData).
|
|
262
|
+
protoOf(CardDecksRequestUserData).a54 = function () {
|
|
263
263
|
return this.count;
|
|
264
264
|
};
|
|
265
265
|
protoOf(CardDecksRequestUserData).oe = function () {
|
|
@@ -268,13 +268,13 @@
|
|
|
268
268
|
protoOf(CardDecksRequestUserData).pe = function () {
|
|
269
269
|
return this.count;
|
|
270
270
|
};
|
|
271
|
-
protoOf(CardDecksRequestUserData).
|
|
271
|
+
protoOf(CardDecksRequestUserData).b54 = function (id, count) {
|
|
272
272
|
return new CardDecksRequestUserData(id, count);
|
|
273
273
|
};
|
|
274
274
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
275
275
|
id = id === VOID ? this.id : id;
|
|
276
276
|
count = count === VOID ? this.count : count;
|
|
277
|
-
return $super === VOID ? this.
|
|
277
|
+
return $super === VOID ? this.b54(id, count) : $super.b54.call(this, id, count);
|
|
278
278
|
};
|
|
279
279
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
280
280
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -300,10 +300,10 @@
|
|
|
300
300
|
this.players = players;
|
|
301
301
|
this.gameId = gameId;
|
|
302
302
|
}
|
|
303
|
-
protoOf(CardDeckRequestUserData).
|
|
303
|
+
protoOf(CardDeckRequestUserData).c54 = function () {
|
|
304
304
|
return this.players;
|
|
305
305
|
};
|
|
306
|
-
protoOf(CardDeckRequestUserData).
|
|
306
|
+
protoOf(CardDeckRequestUserData).d54 = function () {
|
|
307
307
|
return this.gameId;
|
|
308
308
|
};
|
|
309
309
|
protoOf(CardDeckRequestUserData).oe = function () {
|
|
@@ -312,13 +312,13 @@
|
|
|
312
312
|
protoOf(CardDeckRequestUserData).pe = function () {
|
|
313
313
|
return this.gameId;
|
|
314
314
|
};
|
|
315
|
-
protoOf(CardDeckRequestUserData).
|
|
315
|
+
protoOf(CardDeckRequestUserData).e54 = function (players, gameId) {
|
|
316
316
|
return new CardDeckRequestUserData(players, gameId);
|
|
317
317
|
};
|
|
318
318
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
319
319
|
players = players === VOID ? this.players : players;
|
|
320
320
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
321
|
-
return $super === VOID ? this.
|
|
321
|
+
return $super === VOID ? this.e54(players, gameId) : $super.e54.call(this, players, gameId);
|
|
322
322
|
};
|
|
323
323
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
324
324
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
this.id = id;
|
|
345
345
|
this.name = name;
|
|
346
346
|
}
|
|
347
|
-
protoOf(UserInfoData).
|
|
347
|
+
protoOf(UserInfoData).z53 = function () {
|
|
348
348
|
return this.id;
|
|
349
349
|
};
|
|
350
350
|
protoOf(UserInfoData).r2 = function () {
|
|
@@ -356,13 +356,13 @@
|
|
|
356
356
|
protoOf(UserInfoData).pe = function () {
|
|
357
357
|
return this.name;
|
|
358
358
|
};
|
|
359
|
-
protoOf(UserInfoData).
|
|
359
|
+
protoOf(UserInfoData).f54 = function (id, name) {
|
|
360
360
|
return new UserInfoData(id, name);
|
|
361
361
|
};
|
|
362
362
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
363
363
|
id = id === VOID ? this.id : id;
|
|
364
364
|
name = name === VOID ? this.name : name;
|
|
365
|
-
return $super === VOID ? this.
|
|
365
|
+
return $super === VOID ? this.f54(id, name) : $super.f54.call(this, id, name);
|
|
366
366
|
};
|
|
367
367
|
protoOf(UserInfoData).toString = function () {
|
|
368
368
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -385,19 +385,19 @@
|
|
|
385
385
|
return true;
|
|
386
386
|
};
|
|
387
387
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
388
|
+
this.g54_1 = cardDecks;
|
|
389
|
+
this.h54_1 = responseText;
|
|
390
|
+
this.i54_1 = id;
|
|
391
|
+
this.j54_1 = signature;
|
|
392
392
|
}
|
|
393
393
|
protoOf(CardDeckResult).toString = function () {
|
|
394
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
394
|
+
return 'CardDeckResult(cardDecks=' + toString(this.g54_1) + ', responseText=' + this.h54_1 + ', id=' + this.i54_1 + ', signature=' + this.j54_1 + ')';
|
|
395
395
|
};
|
|
396
396
|
protoOf(CardDeckResult).hashCode = function () {
|
|
397
|
-
var result = hashCode(this.
|
|
398
|
-
result = imul(result, 31) + getStringHashCode(this.g54_1) | 0;
|
|
397
|
+
var result = hashCode(this.g54_1);
|
|
399
398
|
result = imul(result, 31) + getStringHashCode(this.h54_1) | 0;
|
|
400
|
-
result = imul(result, 31) +
|
|
399
|
+
result = imul(result, 31) + getStringHashCode(this.i54_1) | 0;
|
|
400
|
+
result = imul(result, 31) + (this.j54_1 == null ? 0 : getStringHashCode(this.j54_1)) | 0;
|
|
401
401
|
return result;
|
|
402
402
|
};
|
|
403
403
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -406,13 +406,13 @@
|
|
|
406
406
|
if (!(other instanceof CardDeckResult))
|
|
407
407
|
return false;
|
|
408
408
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
409
|
-
if (!equals(this.
|
|
410
|
-
return false;
|
|
411
|
-
if (!(this.g54_1 === tmp0_other_with_cast.g54_1))
|
|
409
|
+
if (!equals(this.g54_1, tmp0_other_with_cast.g54_1))
|
|
412
410
|
return false;
|
|
413
411
|
if (!(this.h54_1 === tmp0_other_with_cast.h54_1))
|
|
414
412
|
return false;
|
|
415
|
-
if (!(this.i54_1
|
|
413
|
+
if (!(this.i54_1 === tmp0_other_with_cast.i54_1))
|
|
414
|
+
return false;
|
|
415
|
+
if (!(this.j54_1 == tmp0_other_with_cast.j54_1))
|
|
416
416
|
return false;
|
|
417
417
|
return true;
|
|
418
418
|
};
|
|
@@ -435,16 +435,16 @@
|
|
|
435
435
|
this.userData = userData;
|
|
436
436
|
this.rounds = rounds;
|
|
437
437
|
}
|
|
438
|
-
protoOf(GameCardDecksRecord).
|
|
438
|
+
protoOf(GameCardDecksRecord).k54 = function () {
|
|
439
439
|
return this.poolId;
|
|
440
440
|
};
|
|
441
|
-
protoOf(GameCardDecksRecord).
|
|
441
|
+
protoOf(GameCardDecksRecord).l54 = function () {
|
|
442
442
|
return this.signature;
|
|
443
443
|
};
|
|
444
|
-
protoOf(GameCardDecksRecord).
|
|
444
|
+
protoOf(GameCardDecksRecord).m54 = function () {
|
|
445
445
|
return this.userData;
|
|
446
446
|
};
|
|
447
|
-
protoOf(GameCardDecksRecord).
|
|
447
|
+
protoOf(GameCardDecksRecord).n54 = function () {
|
|
448
448
|
return this.rounds;
|
|
449
449
|
};
|
|
450
450
|
protoOf(GameCardDecksRecord).oe = function () {
|
|
@@ -453,13 +453,13 @@
|
|
|
453
453
|
protoOf(GameCardDecksRecord).pe = function () {
|
|
454
454
|
return this.signature;
|
|
455
455
|
};
|
|
456
|
-
protoOf(GameCardDecksRecord).
|
|
456
|
+
protoOf(GameCardDecksRecord).yl = function () {
|
|
457
457
|
return this.userData;
|
|
458
458
|
};
|
|
459
|
-
protoOf(GameCardDecksRecord).
|
|
459
|
+
protoOf(GameCardDecksRecord).o54 = function () {
|
|
460
460
|
return this.rounds;
|
|
461
461
|
};
|
|
462
|
-
protoOf(GameCardDecksRecord).
|
|
462
|
+
protoOf(GameCardDecksRecord).p54 = function (poolId, signature, userData, rounds) {
|
|
463
463
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
464
464
|
};
|
|
465
465
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
signature = signature === VOID ? this.signature : signature;
|
|
468
468
|
userData = userData === VOID ? this.userData : userData;
|
|
469
469
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
470
|
-
return $super === VOID ? this.
|
|
470
|
+
return $super === VOID ? this.p54(poolId, signature, userData, rounds) : $super.p54.call(this, poolId, signature, userData, rounds);
|
|
471
471
|
};
|
|
472
472
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
473
473
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -499,10 +499,10 @@
|
|
|
499
499
|
this.cardDeckIndex = cardDeckIndex;
|
|
500
500
|
this.cards = cards;
|
|
501
501
|
}
|
|
502
|
-
protoOf(GameCardDeckData).
|
|
502
|
+
protoOf(GameCardDeckData).q54 = function () {
|
|
503
503
|
return this.cardDeckIndex;
|
|
504
504
|
};
|
|
505
|
-
protoOf(GameCardDeckData).
|
|
505
|
+
protoOf(GameCardDeckData).r54 = function () {
|
|
506
506
|
return this.cards;
|
|
507
507
|
};
|
|
508
508
|
protoOf(GameCardDeckData).oe = function () {
|
|
@@ -511,13 +511,13 @@
|
|
|
511
511
|
protoOf(GameCardDeckData).pe = function () {
|
|
512
512
|
return this.cards;
|
|
513
513
|
};
|
|
514
|
-
protoOf(GameCardDeckData).
|
|
514
|
+
protoOf(GameCardDeckData).s54 = function (cardDeckIndex, cards) {
|
|
515
515
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
516
516
|
};
|
|
517
517
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
518
518
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
519
519
|
cards = cards === VOID ? this.cards : cards;
|
|
520
|
-
return $super === VOID ? this.
|
|
520
|
+
return $super === VOID ? this.s54(cardDeckIndex, cards) : $super.s54.call(this, cardDeckIndex, cards);
|
|
521
521
|
};
|
|
522
522
|
protoOf(GameCardDeckData).toString = function () {
|
|
523
523
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -544,10 +544,10 @@
|
|
|
544
544
|
this.baseUrl = baseUrl;
|
|
545
545
|
this.timeoutMillis = timeoutMillis;
|
|
546
546
|
}
|
|
547
|
-
protoOf(HttpConfig).
|
|
547
|
+
protoOf(HttpConfig).t54 = function () {
|
|
548
548
|
return this.baseUrl;
|
|
549
549
|
};
|
|
550
|
-
protoOf(HttpConfig).
|
|
550
|
+
protoOf(HttpConfig).u54 = function () {
|
|
551
551
|
return this.timeoutMillis;
|
|
552
552
|
};
|
|
553
553
|
protoOf(HttpConfig).oe = function () {
|
|
@@ -556,13 +556,13 @@
|
|
|
556
556
|
protoOf(HttpConfig).pe = function () {
|
|
557
557
|
return this.timeoutMillis;
|
|
558
558
|
};
|
|
559
|
-
protoOf(HttpConfig).
|
|
559
|
+
protoOf(HttpConfig).b54 = function (baseUrl, timeoutMillis) {
|
|
560
560
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
561
561
|
};
|
|
562
562
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
563
563
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
564
564
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
565
|
-
return $super === VOID ? this.
|
|
565
|
+
return $super === VOID ? this.b54(baseUrl, timeoutMillis) : $super.b54.call(this, baseUrl, timeoutMillis);
|
|
566
566
|
};
|
|
567
567
|
protoOf(HttpConfig).toString = function () {
|
|
568
568
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -597,16 +597,16 @@
|
|
|
597
597
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
598
598
|
this.httpConfig = httpConfig;
|
|
599
599
|
}
|
|
600
|
-
protoOf(RandomOrgConfig).
|
|
600
|
+
protoOf(RandomOrgConfig).v54 = function () {
|
|
601
601
|
return this.apiKey;
|
|
602
602
|
};
|
|
603
|
-
protoOf(RandomOrgConfig).
|
|
603
|
+
protoOf(RandomOrgConfig).w54 = function () {
|
|
604
604
|
return this.poolSize;
|
|
605
605
|
};
|
|
606
|
-
protoOf(RandomOrgConfig).
|
|
606
|
+
protoOf(RandomOrgConfig).x54 = function () {
|
|
607
607
|
return this.thresholdForUsedPool;
|
|
608
608
|
};
|
|
609
|
-
protoOf(RandomOrgConfig).
|
|
609
|
+
protoOf(RandomOrgConfig).y54 = function () {
|
|
610
610
|
return this.httpConfig;
|
|
611
611
|
};
|
|
612
612
|
protoOf(RandomOrgConfig).oe = function () {
|
|
@@ -615,13 +615,13 @@
|
|
|
615
615
|
protoOf(RandomOrgConfig).pe = function () {
|
|
616
616
|
return this.poolSize;
|
|
617
617
|
};
|
|
618
|
-
protoOf(RandomOrgConfig).
|
|
618
|
+
protoOf(RandomOrgConfig).yl = function () {
|
|
619
619
|
return this.thresholdForUsedPool;
|
|
620
620
|
};
|
|
621
|
-
protoOf(RandomOrgConfig).
|
|
621
|
+
protoOf(RandomOrgConfig).o54 = function () {
|
|
622
622
|
return this.httpConfig;
|
|
623
623
|
};
|
|
624
|
-
protoOf(RandomOrgConfig).
|
|
624
|
+
protoOf(RandomOrgConfig).z54 = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
625
625
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
626
626
|
};
|
|
627
627
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
630
630
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
631
631
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
632
|
-
return $super === VOID ? this.
|
|
632
|
+
return $super === VOID ? this.z54(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.z54.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
633
633
|
};
|
|
634
634
|
protoOf(RandomOrgConfig).toString = function () {
|
|
635
635
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -666,59 +666,59 @@
|
|
|
666
666
|
function $serializer() {
|
|
667
667
|
$serializer_instance = this;
|
|
668
668
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
669
|
-
tmp0_serialDesc.
|
|
670
|
-
tmp0_serialDesc.
|
|
671
|
-
this.
|
|
672
|
-
}
|
|
673
|
-
protoOf($serializer).
|
|
674
|
-
var tmp0_desc = this.
|
|
675
|
-
var tmp1_output = encoder.
|
|
676
|
-
tmp1_output.
|
|
677
|
-
tmp1_output.
|
|
678
|
-
tmp1_output.
|
|
679
|
-
};
|
|
680
|
-
protoOf($serializer).
|
|
681
|
-
return this.
|
|
682
|
-
};
|
|
683
|
-
protoOf($serializer).
|
|
684
|
-
var tmp0_desc = this.
|
|
669
|
+
tmp0_serialDesc.hz('jsonrpc', false);
|
|
670
|
+
tmp0_serialDesc.hz('error', false);
|
|
671
|
+
this.a55_1 = tmp0_serialDesc;
|
|
672
|
+
}
|
|
673
|
+
protoOf($serializer).b55 = function (encoder, value) {
|
|
674
|
+
var tmp0_desc = this.a55_1;
|
|
675
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
676
|
+
tmp1_output.et(tmp0_desc, 0, value.c55_1);
|
|
677
|
+
tmp1_output.it(tmp0_desc, 1, $serializer_getInstance_0(), value.d55_1);
|
|
678
|
+
tmp1_output.qr(tmp0_desc);
|
|
679
|
+
};
|
|
680
|
+
protoOf($serializer).do = function (encoder, value) {
|
|
681
|
+
return this.b55(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
682
|
+
};
|
|
683
|
+
protoOf($serializer).eo = function (decoder) {
|
|
684
|
+
var tmp0_desc = this.a55_1;
|
|
685
685
|
var tmp1_flag = true;
|
|
686
686
|
var tmp2_index = 0;
|
|
687
687
|
var tmp3_bitMask0 = 0;
|
|
688
688
|
var tmp4_local0 = null;
|
|
689
689
|
var tmp5_local1 = null;
|
|
690
|
-
var tmp6_input = decoder.
|
|
691
|
-
if (tmp6_input.
|
|
692
|
-
tmp4_local0 = tmp6_input.
|
|
690
|
+
var tmp6_input = decoder.pr(tmp0_desc);
|
|
691
|
+
if (tmp6_input.fs()) {
|
|
692
|
+
tmp4_local0 = tmp6_input.zr(tmp0_desc, 0);
|
|
693
693
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
694
|
-
tmp5_local1 = tmp6_input.
|
|
694
|
+
tmp5_local1 = tmp6_input.ds(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
695
695
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
696
696
|
} else
|
|
697
697
|
while (tmp1_flag) {
|
|
698
|
-
tmp2_index = tmp6_input.
|
|
698
|
+
tmp2_index = tmp6_input.gs(tmp0_desc);
|
|
699
699
|
switch (tmp2_index) {
|
|
700
700
|
case -1:
|
|
701
701
|
tmp1_flag = false;
|
|
702
702
|
break;
|
|
703
703
|
case 0:
|
|
704
|
-
tmp4_local0 = tmp6_input.
|
|
704
|
+
tmp4_local0 = tmp6_input.zr(tmp0_desc, 0);
|
|
705
705
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
706
706
|
break;
|
|
707
707
|
case 1:
|
|
708
|
-
tmp5_local1 = tmp6_input.
|
|
708
|
+
tmp5_local1 = tmp6_input.ds(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
709
709
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
710
710
|
break;
|
|
711
711
|
default:
|
|
712
712
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
tmp6_input.
|
|
715
|
+
tmp6_input.qr(tmp0_desc);
|
|
716
716
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
717
717
|
};
|
|
718
|
-
protoOf($serializer).
|
|
719
|
-
return this.
|
|
718
|
+
protoOf($serializer).co = function () {
|
|
719
|
+
return this.a55_1;
|
|
720
720
|
};
|
|
721
|
-
protoOf($serializer).
|
|
721
|
+
protoOf($serializer).wz = function () {
|
|
722
722
|
// Inline function 'kotlin.arrayOf' call
|
|
723
723
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
724
724
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -732,25 +732,25 @@
|
|
|
732
732
|
}
|
|
733
733
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
734
734
|
if (!(3 === (3 & seen0))) {
|
|
735
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
735
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().a55_1);
|
|
736
736
|
}
|
|
737
|
-
$this.
|
|
738
|
-
$this.
|
|
737
|
+
$this.c55_1 = jsonrpc;
|
|
738
|
+
$this.d55_1 = error;
|
|
739
739
|
return $this;
|
|
740
740
|
}
|
|
741
741
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
742
742
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
743
743
|
}
|
|
744
744
|
function ErrorResponseDto(jsonrpc, error) {
|
|
745
|
-
this.
|
|
746
|
-
this.
|
|
745
|
+
this.c55_1 = jsonrpc;
|
|
746
|
+
this.d55_1 = error;
|
|
747
747
|
}
|
|
748
748
|
protoOf(ErrorResponseDto).toString = function () {
|
|
749
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
749
|
+
return 'ErrorResponseDto(jsonrpc=' + this.c55_1 + ', error=' + toString_0(this.d55_1) + ')';
|
|
750
750
|
};
|
|
751
751
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
752
|
-
var result = getStringHashCode(this.
|
|
753
|
-
result = imul(result, 31) + (this.
|
|
752
|
+
var result = getStringHashCode(this.c55_1);
|
|
753
|
+
result = imul(result, 31) + (this.d55_1 == null ? 0 : this.d55_1.hashCode()) | 0;
|
|
754
754
|
return result;
|
|
755
755
|
};
|
|
756
756
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -759,68 +759,68 @@
|
|
|
759
759
|
if (!(other instanceof ErrorResponseDto))
|
|
760
760
|
return false;
|
|
761
761
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
762
|
-
if (!(this.
|
|
762
|
+
if (!(this.c55_1 === tmp0_other_with_cast.c55_1))
|
|
763
763
|
return false;
|
|
764
|
-
if (!equals(this.
|
|
764
|
+
if (!equals(this.d55_1, tmp0_other_with_cast.d55_1))
|
|
765
765
|
return false;
|
|
766
766
|
return true;
|
|
767
767
|
};
|
|
768
768
|
function $serializer_0() {
|
|
769
769
|
$serializer_instance_0 = this;
|
|
770
770
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
771
|
-
tmp0_serialDesc.
|
|
772
|
-
tmp0_serialDesc.
|
|
773
|
-
this.
|
|
774
|
-
}
|
|
775
|
-
protoOf($serializer_0).
|
|
776
|
-
var tmp0_desc = this.
|
|
777
|
-
var tmp1_output = encoder.
|
|
778
|
-
tmp1_output.
|
|
779
|
-
tmp1_output.
|
|
780
|
-
tmp1_output.
|
|
781
|
-
};
|
|
782
|
-
protoOf($serializer_0).
|
|
783
|
-
return this.
|
|
784
|
-
};
|
|
785
|
-
protoOf($serializer_0).
|
|
786
|
-
var tmp0_desc = this.
|
|
771
|
+
tmp0_serialDesc.hz('code', false);
|
|
772
|
+
tmp0_serialDesc.hz('message', false);
|
|
773
|
+
this.e55_1 = tmp0_serialDesc;
|
|
774
|
+
}
|
|
775
|
+
protoOf($serializer_0).f55 = function (encoder, value) {
|
|
776
|
+
var tmp0_desc = this.e55_1;
|
|
777
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
778
|
+
tmp1_output.it(tmp0_desc, 0, IntSerializer_getInstance(), value.g55_1);
|
|
779
|
+
tmp1_output.it(tmp0_desc, 1, StringSerializer_getInstance(), value.h55_1);
|
|
780
|
+
tmp1_output.qr(tmp0_desc);
|
|
781
|
+
};
|
|
782
|
+
protoOf($serializer_0).do = function (encoder, value) {
|
|
783
|
+
return this.f55(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
784
|
+
};
|
|
785
|
+
protoOf($serializer_0).eo = function (decoder) {
|
|
786
|
+
var tmp0_desc = this.e55_1;
|
|
787
787
|
var tmp1_flag = true;
|
|
788
788
|
var tmp2_index = 0;
|
|
789
789
|
var tmp3_bitMask0 = 0;
|
|
790
790
|
var tmp4_local0 = null;
|
|
791
791
|
var tmp5_local1 = null;
|
|
792
|
-
var tmp6_input = decoder.
|
|
793
|
-
if (tmp6_input.
|
|
794
|
-
tmp4_local0 = tmp6_input.
|
|
792
|
+
var tmp6_input = decoder.pr(tmp0_desc);
|
|
793
|
+
if (tmp6_input.fs()) {
|
|
794
|
+
tmp4_local0 = tmp6_input.ds(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
795
795
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
796
|
-
tmp5_local1 = tmp6_input.
|
|
796
|
+
tmp5_local1 = tmp6_input.ds(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
797
797
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
798
798
|
} else
|
|
799
799
|
while (tmp1_flag) {
|
|
800
|
-
tmp2_index = tmp6_input.
|
|
800
|
+
tmp2_index = tmp6_input.gs(tmp0_desc);
|
|
801
801
|
switch (tmp2_index) {
|
|
802
802
|
case -1:
|
|
803
803
|
tmp1_flag = false;
|
|
804
804
|
break;
|
|
805
805
|
case 0:
|
|
806
|
-
tmp4_local0 = tmp6_input.
|
|
806
|
+
tmp4_local0 = tmp6_input.ds(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
807
807
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
808
808
|
break;
|
|
809
809
|
case 1:
|
|
810
|
-
tmp5_local1 = tmp6_input.
|
|
810
|
+
tmp5_local1 = tmp6_input.ds(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
811
811
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
812
812
|
break;
|
|
813
813
|
default:
|
|
814
814
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
tmp6_input.
|
|
817
|
+
tmp6_input.qr(tmp0_desc);
|
|
818
818
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
819
819
|
};
|
|
820
|
-
protoOf($serializer_0).
|
|
821
|
-
return this.
|
|
820
|
+
protoOf($serializer_0).co = function () {
|
|
821
|
+
return this.e55_1;
|
|
822
822
|
};
|
|
823
|
-
protoOf($serializer_0).
|
|
823
|
+
protoOf($serializer_0).wz = function () {
|
|
824
824
|
// Inline function 'kotlin.arrayOf' call
|
|
825
825
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
826
826
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -834,10 +834,10 @@
|
|
|
834
834
|
}
|
|
835
835
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
836
836
|
if (!(3 === (3 & seen0))) {
|
|
837
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
837
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().e55_1);
|
|
838
838
|
}
|
|
839
|
-
$this.
|
|
840
|
-
$this.
|
|
839
|
+
$this.g55_1 = code;
|
|
840
|
+
$this.h55_1 = message;
|
|
841
841
|
return $this;
|
|
842
842
|
}
|
|
843
843
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -846,11 +846,11 @@
|
|
|
846
846
|
function ErrorDto() {
|
|
847
847
|
}
|
|
848
848
|
protoOf(ErrorDto).toString = function () {
|
|
849
|
-
return 'ErrorDto(code=' + this.
|
|
849
|
+
return 'ErrorDto(code=' + this.g55_1 + ', message=' + this.h55_1 + ')';
|
|
850
850
|
};
|
|
851
851
|
protoOf(ErrorDto).hashCode = function () {
|
|
852
|
-
var result = this.
|
|
853
|
-
result = imul(result, 31) + (this.
|
|
852
|
+
var result = this.g55_1 == null ? 0 : this.g55_1;
|
|
853
|
+
result = imul(result, 31) + (this.h55_1 == null ? 0 : getStringHashCode(this.h55_1)) | 0;
|
|
854
854
|
return result;
|
|
855
855
|
};
|
|
856
856
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -859,15 +859,15 @@
|
|
|
859
859
|
if (!(other instanceof ErrorDto))
|
|
860
860
|
return false;
|
|
861
861
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
862
|
-
if (!(this.f55_1 == tmp0_other_with_cast.f55_1))
|
|
863
|
-
return false;
|
|
864
862
|
if (!(this.g55_1 == tmp0_other_with_cast.g55_1))
|
|
865
863
|
return false;
|
|
864
|
+
if (!(this.h55_1 == tmp0_other_with_cast.h55_1))
|
|
865
|
+
return false;
|
|
866
866
|
return true;
|
|
867
867
|
};
|
|
868
868
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
869
869
|
$serializer_1.call($this);
|
|
870
|
-
$this.
|
|
870
|
+
$this.j55_1 = typeSerial0;
|
|
871
871
|
return $this;
|
|
872
872
|
}
|
|
873
873
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -876,17 +876,17 @@
|
|
|
876
876
|
function Companion_2() {
|
|
877
877
|
Companion_instance_4 = this;
|
|
878
878
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
tmp0_serialDesc.
|
|
883
|
-
this.
|
|
879
|
+
tmp0_serialDesc.hz('jsonrpc', false);
|
|
880
|
+
tmp0_serialDesc.hz('method', false);
|
|
881
|
+
tmp0_serialDesc.hz('params', false);
|
|
882
|
+
tmp0_serialDesc.hz('id', false);
|
|
883
|
+
this.k55_1 = tmp0_serialDesc;
|
|
884
884
|
}
|
|
885
|
-
protoOf(Companion_2).
|
|
885
|
+
protoOf(Companion_2).l55 = function (typeSerial0) {
|
|
886
886
|
return $serializer_init_$Create$(typeSerial0);
|
|
887
887
|
};
|
|
888
|
-
protoOf(Companion_2).
|
|
889
|
-
return this.
|
|
888
|
+
protoOf(Companion_2).h10 = function (typeParamsSerializers) {
|
|
889
|
+
return this.l55(typeParamsSerializers[0]);
|
|
890
890
|
};
|
|
891
891
|
var Companion_instance_4;
|
|
892
892
|
function Companion_getInstance_5() {
|
|
@@ -896,26 +896,26 @@
|
|
|
896
896
|
}
|
|
897
897
|
function $serializer_1() {
|
|
898
898
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
899
|
-
tmp0_serialDesc.
|
|
900
|
-
tmp0_serialDesc.
|
|
901
|
-
tmp0_serialDesc.
|
|
902
|
-
tmp0_serialDesc.
|
|
903
|
-
this.
|
|
904
|
-
}
|
|
905
|
-
protoOf($serializer_1).
|
|
906
|
-
var tmp0_desc = this.
|
|
907
|
-
var tmp1_output = encoder.
|
|
908
|
-
tmp1_output.
|
|
909
|
-
tmp1_output.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
tmp1_output.
|
|
912
|
-
tmp1_output.
|
|
913
|
-
};
|
|
914
|
-
protoOf($serializer_1).
|
|
915
|
-
return this.
|
|
916
|
-
};
|
|
917
|
-
protoOf($serializer_1).
|
|
918
|
-
var tmp0_desc = this.
|
|
899
|
+
tmp0_serialDesc.hz('jsonrpc', false);
|
|
900
|
+
tmp0_serialDesc.hz('method', false);
|
|
901
|
+
tmp0_serialDesc.hz('params', false);
|
|
902
|
+
tmp0_serialDesc.hz('id', false);
|
|
903
|
+
this.i55_1 = tmp0_serialDesc;
|
|
904
|
+
}
|
|
905
|
+
protoOf($serializer_1).m55 = function (encoder, value) {
|
|
906
|
+
var tmp0_desc = this.i55_1;
|
|
907
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
908
|
+
tmp1_output.et(tmp0_desc, 0, value.n55_1);
|
|
909
|
+
tmp1_output.et(tmp0_desc, 1, value.o55_1);
|
|
910
|
+
tmp1_output.gt(tmp0_desc, 2, this.j55_1, value.p55_1);
|
|
911
|
+
tmp1_output.et(tmp0_desc, 3, value.q55_1);
|
|
912
|
+
tmp1_output.qr(tmp0_desc);
|
|
913
|
+
};
|
|
914
|
+
protoOf($serializer_1).do = function (encoder, value) {
|
|
915
|
+
return this.m55(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
916
|
+
};
|
|
917
|
+
protoOf($serializer_1).eo = function (decoder) {
|
|
918
|
+
var tmp0_desc = this.i55_1;
|
|
919
919
|
var tmp1_flag = true;
|
|
920
920
|
var tmp2_index = 0;
|
|
921
921
|
var tmp3_bitMask0 = 0;
|
|
@@ -923,69 +923,69 @@
|
|
|
923
923
|
var tmp5_local1 = null;
|
|
924
924
|
var tmp6_local2 = null;
|
|
925
925
|
var tmp7_local3 = null;
|
|
926
|
-
var tmp8_input = decoder.
|
|
927
|
-
if (tmp8_input.
|
|
928
|
-
tmp4_local0 = tmp8_input.
|
|
926
|
+
var tmp8_input = decoder.pr(tmp0_desc);
|
|
927
|
+
if (tmp8_input.fs()) {
|
|
928
|
+
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
929
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
930
|
-
tmp5_local1 = tmp8_input.
|
|
930
|
+
tmp5_local1 = tmp8_input.zr(tmp0_desc, 1);
|
|
931
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
932
|
-
tmp6_local2 = tmp8_input.
|
|
932
|
+
tmp6_local2 = tmp8_input.bs(tmp0_desc, 2, this.j55_1, tmp6_local2);
|
|
933
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
934
|
-
tmp7_local3 = tmp8_input.
|
|
934
|
+
tmp7_local3 = tmp8_input.zr(tmp0_desc, 3);
|
|
935
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
936
936
|
} else
|
|
937
937
|
while (tmp1_flag) {
|
|
938
|
-
tmp2_index = tmp8_input.
|
|
938
|
+
tmp2_index = tmp8_input.gs(tmp0_desc);
|
|
939
939
|
switch (tmp2_index) {
|
|
940
940
|
case -1:
|
|
941
941
|
tmp1_flag = false;
|
|
942
942
|
break;
|
|
943
943
|
case 0:
|
|
944
|
-
tmp4_local0 = tmp8_input.
|
|
944
|
+
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
945
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
946
946
|
break;
|
|
947
947
|
case 1:
|
|
948
|
-
tmp5_local1 = tmp8_input.
|
|
948
|
+
tmp5_local1 = tmp8_input.zr(tmp0_desc, 1);
|
|
949
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
950
950
|
break;
|
|
951
951
|
case 2:
|
|
952
|
-
tmp6_local2 = tmp8_input.
|
|
952
|
+
tmp6_local2 = tmp8_input.bs(tmp0_desc, 2, this.j55_1, tmp6_local2);
|
|
953
953
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
954
954
|
break;
|
|
955
955
|
case 3:
|
|
956
|
-
tmp7_local3 = tmp8_input.
|
|
956
|
+
tmp7_local3 = tmp8_input.zr(tmp0_desc, 3);
|
|
957
957
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
958
958
|
break;
|
|
959
959
|
default:
|
|
960
960
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
tmp8_input.
|
|
963
|
+
tmp8_input.qr(tmp0_desc);
|
|
964
964
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
965
965
|
};
|
|
966
|
-
protoOf($serializer_1).
|
|
967
|
-
return this.
|
|
966
|
+
protoOf($serializer_1).co = function () {
|
|
967
|
+
return this.i55_1;
|
|
968
968
|
};
|
|
969
|
-
protoOf($serializer_1).
|
|
969
|
+
protoOf($serializer_1).wz = function () {
|
|
970
970
|
// Inline function 'kotlin.arrayOf' call
|
|
971
971
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
972
972
|
// Inline function 'kotlin.js.asDynamic' call
|
|
973
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
973
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.j55_1, StringSerializer_getInstance()];
|
|
974
974
|
};
|
|
975
|
-
protoOf($serializer_1).
|
|
975
|
+
protoOf($serializer_1).xz = function () {
|
|
976
976
|
// Inline function 'kotlin.arrayOf' call
|
|
977
977
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
978
978
|
// Inline function 'kotlin.js.asDynamic' call
|
|
979
|
-
return [this.
|
|
979
|
+
return [this.j55_1];
|
|
980
980
|
};
|
|
981
981
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
982
982
|
if (!(15 === (15 & seen0))) {
|
|
983
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
983
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().k55_1);
|
|
984
984
|
}
|
|
985
|
-
$this.
|
|
986
|
-
$this.
|
|
987
|
-
$this.
|
|
988
|
-
$this.
|
|
985
|
+
$this.n55_1 = jsonrpc;
|
|
986
|
+
$this.o55_1 = method;
|
|
987
|
+
$this.p55_1 = params;
|
|
988
|
+
$this.q55_1 = id;
|
|
989
989
|
return $this;
|
|
990
990
|
}
|
|
991
991
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -993,19 +993,19 @@
|
|
|
993
993
|
}
|
|
994
994
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
995
995
|
Companion_getInstance_5();
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
996
|
+
this.n55_1 = jsonrpc;
|
|
997
|
+
this.o55_1 = method;
|
|
998
|
+
this.p55_1 = params;
|
|
999
|
+
this.q55_1 = id;
|
|
1000
1000
|
}
|
|
1001
1001
|
protoOf(RandomRequestDto).toString = function () {
|
|
1002
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1002
|
+
return 'RandomRequestDto(jsonrpc=' + this.n55_1 + ', method=' + this.o55_1 + ', params=' + toString(this.p55_1) + ', id=' + this.q55_1 + ')';
|
|
1003
1003
|
};
|
|
1004
1004
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1005
|
-
var result = getStringHashCode(this.
|
|
1006
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1007
|
-
result = imul(result, 31) + hashCode(this.
|
|
1008
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1005
|
+
var result = getStringHashCode(this.n55_1);
|
|
1006
|
+
result = imul(result, 31) + getStringHashCode(this.o55_1) | 0;
|
|
1007
|
+
result = imul(result, 31) + hashCode(this.p55_1) | 0;
|
|
1008
|
+
result = imul(result, 31) + getStringHashCode(this.q55_1) | 0;
|
|
1009
1009
|
return result;
|
|
1010
1010
|
};
|
|
1011
1011
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1014,13 +1014,13 @@
|
|
|
1014
1014
|
if (!(other instanceof RandomRequestDto))
|
|
1015
1015
|
return false;
|
|
1016
1016
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1017
|
-
if (!(this.m55_1 === tmp0_other_with_cast.m55_1))
|
|
1018
|
-
return false;
|
|
1019
1017
|
if (!(this.n55_1 === tmp0_other_with_cast.n55_1))
|
|
1020
1018
|
return false;
|
|
1021
|
-
if (!
|
|
1019
|
+
if (!(this.o55_1 === tmp0_other_with_cast.o55_1))
|
|
1020
|
+
return false;
|
|
1021
|
+
if (!equals(this.p55_1, tmp0_other_with_cast.p55_1))
|
|
1022
1022
|
return false;
|
|
1023
|
-
if (!(this.
|
|
1023
|
+
if (!(this.q55_1 === tmp0_other_with_cast.q55_1))
|
|
1024
1024
|
return false;
|
|
1025
1025
|
return true;
|
|
1026
1026
|
};
|
|
@@ -1034,7 +1034,7 @@
|
|
|
1034
1034
|
// Inline function 'kotlin.arrayOf' call
|
|
1035
1035
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1036
1036
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1037
|
-
tmp.
|
|
1037
|
+
tmp.r55_1 = [null, null, lazy(tmp_0, RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a), null, null, null, null, null];
|
|
1038
1038
|
}
|
|
1039
1039
|
var Companion_instance_5;
|
|
1040
1040
|
function Companion_getInstance_6() {
|
|
@@ -1045,35 +1045,35 @@
|
|
|
1045
1045
|
function $serializer_2() {
|
|
1046
1046
|
$serializer_instance_1 = this;
|
|
1047
1047
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
tmp0_serialDesc.
|
|
1050
|
-
tmp0_serialDesc.
|
|
1051
|
-
tmp0_serialDesc.
|
|
1052
|
-
tmp0_serialDesc.
|
|
1053
|
-
tmp0_serialDesc.
|
|
1054
|
-
tmp0_serialDesc.
|
|
1055
|
-
tmp0_serialDesc.
|
|
1056
|
-
this.
|
|
1057
|
-
}
|
|
1058
|
-
protoOf($serializer_2).
|
|
1059
|
-
var tmp0_desc = this.
|
|
1060
|
-
var tmp1_output = encoder.
|
|
1061
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1062
|
-
tmp1_output.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
tmp1_output.
|
|
1067
|
-
tmp1_output.
|
|
1068
|
-
tmp1_output.
|
|
1069
|
-
tmp1_output.
|
|
1070
|
-
tmp1_output.
|
|
1071
|
-
};
|
|
1072
|
-
protoOf($serializer_2).
|
|
1073
|
-
return this.
|
|
1074
|
-
};
|
|
1075
|
-
protoOf($serializer_2).
|
|
1076
|
-
var tmp0_desc = this.
|
|
1048
|
+
tmp0_serialDesc.hz('apiKey', false);
|
|
1049
|
+
tmp0_serialDesc.hz('n', false);
|
|
1050
|
+
tmp0_serialDesc.hz('length', false);
|
|
1051
|
+
tmp0_serialDesc.hz('min', false);
|
|
1052
|
+
tmp0_serialDesc.hz('max', false);
|
|
1053
|
+
tmp0_serialDesc.hz('replacement', false);
|
|
1054
|
+
tmp0_serialDesc.hz('ticketId', false);
|
|
1055
|
+
tmp0_serialDesc.hz('userData', false);
|
|
1056
|
+
this.s55_1 = tmp0_serialDesc;
|
|
1057
|
+
}
|
|
1058
|
+
protoOf($serializer_2).t55 = function (encoder, value) {
|
|
1059
|
+
var tmp0_desc = this.s55_1;
|
|
1060
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1061
|
+
var tmp2_cached = Companion_getInstance_6().r55_1;
|
|
1062
|
+
tmp1_output.et(tmp0_desc, 0, value.u55_1);
|
|
1063
|
+
tmp1_output.zs(tmp0_desc, 1, value.v55_1);
|
|
1064
|
+
tmp1_output.gt(tmp0_desc, 2, tmp2_cached[2].x(), value.w55_1);
|
|
1065
|
+
tmp1_output.zs(tmp0_desc, 3, value.x55_1);
|
|
1066
|
+
tmp1_output.zs(tmp0_desc, 4, value.y55_1);
|
|
1067
|
+
tmp1_output.ws(tmp0_desc, 5, value.z55_1);
|
|
1068
|
+
tmp1_output.it(tmp0_desc, 6, StringSerializer_getInstance(), value.a56_1);
|
|
1069
|
+
tmp1_output.it(tmp0_desc, 7, $serializer_getInstance_2(), value.b56_1);
|
|
1070
|
+
tmp1_output.qr(tmp0_desc);
|
|
1071
|
+
};
|
|
1072
|
+
protoOf($serializer_2).do = function (encoder, value) {
|
|
1073
|
+
return this.t55(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1074
|
+
};
|
|
1075
|
+
protoOf($serializer_2).eo = function (decoder) {
|
|
1076
|
+
var tmp0_desc = this.s55_1;
|
|
1077
1077
|
var tmp1_flag = true;
|
|
1078
1078
|
var tmp2_index = 0;
|
|
1079
1079
|
var tmp3_bitMask0 = 0;
|
|
@@ -1085,76 +1085,76 @@
|
|
|
1085
1085
|
var tmp9_local5 = false;
|
|
1086
1086
|
var tmp10_local6 = null;
|
|
1087
1087
|
var tmp11_local7 = null;
|
|
1088
|
-
var tmp12_input = decoder.
|
|
1089
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1090
|
-
if (tmp12_input.
|
|
1091
|
-
tmp4_local0 = tmp12_input.
|
|
1088
|
+
var tmp12_input = decoder.pr(tmp0_desc);
|
|
1089
|
+
var tmp13_cached = Companion_getInstance_6().r55_1;
|
|
1090
|
+
if (tmp12_input.fs()) {
|
|
1091
|
+
tmp4_local0 = tmp12_input.zr(tmp0_desc, 0);
|
|
1092
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1093
|
-
tmp5_local1 = tmp12_input.
|
|
1093
|
+
tmp5_local1 = tmp12_input.ur(tmp0_desc, 1);
|
|
1094
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1095
|
-
tmp6_local2 = tmp12_input.
|
|
1095
|
+
tmp6_local2 = tmp12_input.bs(tmp0_desc, 2, tmp13_cached[2].x(), tmp6_local2);
|
|
1096
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1097
|
-
tmp7_local3 = tmp12_input.
|
|
1097
|
+
tmp7_local3 = tmp12_input.ur(tmp0_desc, 3);
|
|
1098
1098
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1099
|
-
tmp8_local4 = tmp12_input.
|
|
1099
|
+
tmp8_local4 = tmp12_input.ur(tmp0_desc, 4);
|
|
1100
1100
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1101
|
-
tmp9_local5 = tmp12_input.
|
|
1101
|
+
tmp9_local5 = tmp12_input.rr(tmp0_desc, 5);
|
|
1102
1102
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1103
|
-
tmp10_local6 = tmp12_input.
|
|
1103
|
+
tmp10_local6 = tmp12_input.ds(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1104
1104
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1105
|
-
tmp11_local7 = tmp12_input.
|
|
1105
|
+
tmp11_local7 = tmp12_input.ds(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1106
1106
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1107
1107
|
} else
|
|
1108
1108
|
while (tmp1_flag) {
|
|
1109
|
-
tmp2_index = tmp12_input.
|
|
1109
|
+
tmp2_index = tmp12_input.gs(tmp0_desc);
|
|
1110
1110
|
switch (tmp2_index) {
|
|
1111
1111
|
case -1:
|
|
1112
1112
|
tmp1_flag = false;
|
|
1113
1113
|
break;
|
|
1114
1114
|
case 0:
|
|
1115
|
-
tmp4_local0 = tmp12_input.
|
|
1115
|
+
tmp4_local0 = tmp12_input.zr(tmp0_desc, 0);
|
|
1116
1116
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1117
1117
|
break;
|
|
1118
1118
|
case 1:
|
|
1119
|
-
tmp5_local1 = tmp12_input.
|
|
1119
|
+
tmp5_local1 = tmp12_input.ur(tmp0_desc, 1);
|
|
1120
1120
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1121
1121
|
break;
|
|
1122
1122
|
case 2:
|
|
1123
|
-
tmp6_local2 = tmp12_input.
|
|
1123
|
+
tmp6_local2 = tmp12_input.bs(tmp0_desc, 2, tmp13_cached[2].x(), tmp6_local2);
|
|
1124
1124
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1125
1125
|
break;
|
|
1126
1126
|
case 3:
|
|
1127
|
-
tmp7_local3 = tmp12_input.
|
|
1127
|
+
tmp7_local3 = tmp12_input.ur(tmp0_desc, 3);
|
|
1128
1128
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1129
1129
|
break;
|
|
1130
1130
|
case 4:
|
|
1131
|
-
tmp8_local4 = tmp12_input.
|
|
1131
|
+
tmp8_local4 = tmp12_input.ur(tmp0_desc, 4);
|
|
1132
1132
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1133
1133
|
break;
|
|
1134
1134
|
case 5:
|
|
1135
|
-
tmp9_local5 = tmp12_input.
|
|
1135
|
+
tmp9_local5 = tmp12_input.rr(tmp0_desc, 5);
|
|
1136
1136
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1137
1137
|
break;
|
|
1138
1138
|
case 6:
|
|
1139
|
-
tmp10_local6 = tmp12_input.
|
|
1139
|
+
tmp10_local6 = tmp12_input.ds(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1140
1140
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1141
1141
|
break;
|
|
1142
1142
|
case 7:
|
|
1143
|
-
tmp11_local7 = tmp12_input.
|
|
1143
|
+
tmp11_local7 = tmp12_input.ds(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1144
1144
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1145
1145
|
break;
|
|
1146
1146
|
default:
|
|
1147
1147
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
tmp12_input.
|
|
1150
|
+
tmp12_input.qr(tmp0_desc);
|
|
1151
1151
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1152
1152
|
};
|
|
1153
|
-
protoOf($serializer_2).
|
|
1154
|
-
return this.
|
|
1153
|
+
protoOf($serializer_2).co = function () {
|
|
1154
|
+
return this.s55_1;
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf($serializer_2).
|
|
1157
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1156
|
+
protoOf($serializer_2).wz = function () {
|
|
1157
|
+
var tmp0_cached = Companion_getInstance_6().r55_1;
|
|
1158
1158
|
// Inline function 'kotlin.arrayOf' call
|
|
1159
1159
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1160
1160
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1168,16 +1168,16 @@
|
|
|
1168
1168
|
}
|
|
1169
1169
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1170
1170
|
if (!(255 === (255 & seen0))) {
|
|
1171
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1171
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().s55_1);
|
|
1172
1172
|
}
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1175
|
-
$this.
|
|
1176
|
-
$this.
|
|
1177
|
-
$this.
|
|
1178
|
-
$this.
|
|
1179
|
-
$this.
|
|
1180
|
-
$this.
|
|
1173
|
+
$this.u55_1 = apiKey;
|
|
1174
|
+
$this.v55_1 = n;
|
|
1175
|
+
$this.w55_1 = length;
|
|
1176
|
+
$this.x55_1 = min;
|
|
1177
|
+
$this.y55_1 = max;
|
|
1178
|
+
$this.z55_1 = replacement;
|
|
1179
|
+
$this.a56_1 = ticketId;
|
|
1180
|
+
$this.b56_1 = userData;
|
|
1181
1181
|
return $this;
|
|
1182
1182
|
}
|
|
1183
1183
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1185,27 +1185,27 @@
|
|
|
1185
1185
|
}
|
|
1186
1186
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1187
1187
|
Companion_getInstance_6();
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1195
|
-
this.
|
|
1188
|
+
this.u55_1 = apiKey;
|
|
1189
|
+
this.v55_1 = n;
|
|
1190
|
+
this.w55_1 = length;
|
|
1191
|
+
this.x55_1 = min;
|
|
1192
|
+
this.y55_1 = max;
|
|
1193
|
+
this.z55_1 = replacement;
|
|
1194
|
+
this.a56_1 = ticketId;
|
|
1195
|
+
this.b56_1 = userData;
|
|
1196
1196
|
}
|
|
1197
1197
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1198
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1198
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.u55_1 + ', n=' + this.v55_1 + ', length=' + toString(this.w55_1) + ', min=' + this.x55_1 + ', max=' + this.y55_1 + ', replacement=' + this.z55_1 + ', ticketId=' + this.a56_1 + ', userData=' + toString_0(this.b56_1) + ')';
|
|
1199
1199
|
};
|
|
1200
1200
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1201
|
-
var result = getStringHashCode(this.
|
|
1202
|
-
result = imul(result, 31) + this.
|
|
1203
|
-
result = imul(result, 31) + hashCode(this.
|
|
1204
|
-
result = imul(result, 31) + this.w55_1 | 0;
|
|
1201
|
+
var result = getStringHashCode(this.u55_1);
|
|
1202
|
+
result = imul(result, 31) + this.v55_1 | 0;
|
|
1203
|
+
result = imul(result, 31) + hashCode(this.w55_1) | 0;
|
|
1205
1204
|
result = imul(result, 31) + this.x55_1 | 0;
|
|
1206
|
-
result = imul(result, 31) +
|
|
1207
|
-
result = imul(result, 31) + (this.z55_1
|
|
1208
|
-
result = imul(result, 31) + (this.a56_1 == null ? 0 : this.a56_1
|
|
1205
|
+
result = imul(result, 31) + this.y55_1 | 0;
|
|
1206
|
+
result = imul(result, 31) + getBooleanHashCode(this.z55_1) | 0;
|
|
1207
|
+
result = imul(result, 31) + (this.a56_1 == null ? 0 : getStringHashCode(this.a56_1)) | 0;
|
|
1208
|
+
result = imul(result, 31) + (this.b56_1 == null ? 0 : this.b56_1.hashCode()) | 0;
|
|
1209
1209
|
return result;
|
|
1210
1210
|
};
|
|
1211
1211
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1214,21 +1214,21 @@
|
|
|
1214
1214
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1215
1215
|
return false;
|
|
1216
1216
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1217
|
-
if (!(this.t55_1 === tmp0_other_with_cast.t55_1))
|
|
1218
|
-
return false;
|
|
1219
1217
|
if (!(this.u55_1 === tmp0_other_with_cast.u55_1))
|
|
1220
1218
|
return false;
|
|
1221
|
-
if (!
|
|
1219
|
+
if (!(this.v55_1 === tmp0_other_with_cast.v55_1))
|
|
1222
1220
|
return false;
|
|
1223
|
-
if (!(this.w55_1
|
|
1221
|
+
if (!equals(this.w55_1, tmp0_other_with_cast.w55_1))
|
|
1224
1222
|
return false;
|
|
1225
1223
|
if (!(this.x55_1 === tmp0_other_with_cast.x55_1))
|
|
1226
1224
|
return false;
|
|
1227
1225
|
if (!(this.y55_1 === tmp0_other_with_cast.y55_1))
|
|
1228
1226
|
return false;
|
|
1229
|
-
if (!(this.z55_1
|
|
1227
|
+
if (!(this.z55_1 === tmp0_other_with_cast.z55_1))
|
|
1228
|
+
return false;
|
|
1229
|
+
if (!(this.a56_1 == tmp0_other_with_cast.a56_1))
|
|
1230
1230
|
return false;
|
|
1231
|
-
if (!equals(this.
|
|
1231
|
+
if (!equals(this.b56_1, tmp0_other_with_cast.b56_1))
|
|
1232
1232
|
return false;
|
|
1233
1233
|
return true;
|
|
1234
1234
|
};
|
|
@@ -1241,59 +1241,59 @@
|
|
|
1241
1241
|
function $serializer_3() {
|
|
1242
1242
|
$serializer_instance_2 = this;
|
|
1243
1243
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1244
|
-
tmp0_serialDesc.
|
|
1245
|
-
tmp0_serialDesc.
|
|
1246
|
-
this.
|
|
1247
|
-
}
|
|
1248
|
-
protoOf($serializer_3).
|
|
1249
|
-
var tmp0_desc = this.
|
|
1250
|
-
var tmp1_output = encoder.
|
|
1251
|
-
tmp1_output.
|
|
1252
|
-
tmp1_output.
|
|
1253
|
-
tmp1_output.
|
|
1254
|
-
};
|
|
1255
|
-
protoOf($serializer_3).
|
|
1256
|
-
return this.
|
|
1257
|
-
};
|
|
1258
|
-
protoOf($serializer_3).
|
|
1259
|
-
var tmp0_desc = this.
|
|
1244
|
+
tmp0_serialDesc.hz('id', false);
|
|
1245
|
+
tmp0_serialDesc.hz('count', false);
|
|
1246
|
+
this.c56_1 = tmp0_serialDesc;
|
|
1247
|
+
}
|
|
1248
|
+
protoOf($serializer_3).d56 = function (encoder, value) {
|
|
1249
|
+
var tmp0_desc = this.c56_1;
|
|
1250
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1251
|
+
tmp1_output.et(tmp0_desc, 0, value.e56_1);
|
|
1252
|
+
tmp1_output.zs(tmp0_desc, 1, value.f56_1);
|
|
1253
|
+
tmp1_output.qr(tmp0_desc);
|
|
1254
|
+
};
|
|
1255
|
+
protoOf($serializer_3).do = function (encoder, value) {
|
|
1256
|
+
return this.d56(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1257
|
+
};
|
|
1258
|
+
protoOf($serializer_3).eo = function (decoder) {
|
|
1259
|
+
var tmp0_desc = this.c56_1;
|
|
1260
1260
|
var tmp1_flag = true;
|
|
1261
1261
|
var tmp2_index = 0;
|
|
1262
1262
|
var tmp3_bitMask0 = 0;
|
|
1263
1263
|
var tmp4_local0 = null;
|
|
1264
1264
|
var tmp5_local1 = 0;
|
|
1265
|
-
var tmp6_input = decoder.
|
|
1266
|
-
if (tmp6_input.
|
|
1267
|
-
tmp4_local0 = tmp6_input.
|
|
1265
|
+
var tmp6_input = decoder.pr(tmp0_desc);
|
|
1266
|
+
if (tmp6_input.fs()) {
|
|
1267
|
+
tmp4_local0 = tmp6_input.zr(tmp0_desc, 0);
|
|
1268
1268
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1269
|
-
tmp5_local1 = tmp6_input.
|
|
1269
|
+
tmp5_local1 = tmp6_input.ur(tmp0_desc, 1);
|
|
1270
1270
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1271
1271
|
} else
|
|
1272
1272
|
while (tmp1_flag) {
|
|
1273
|
-
tmp2_index = tmp6_input.
|
|
1273
|
+
tmp2_index = tmp6_input.gs(tmp0_desc);
|
|
1274
1274
|
switch (tmp2_index) {
|
|
1275
1275
|
case -1:
|
|
1276
1276
|
tmp1_flag = false;
|
|
1277
1277
|
break;
|
|
1278
1278
|
case 0:
|
|
1279
|
-
tmp4_local0 = tmp6_input.
|
|
1279
|
+
tmp4_local0 = tmp6_input.zr(tmp0_desc, 0);
|
|
1280
1280
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1281
1281
|
break;
|
|
1282
1282
|
case 1:
|
|
1283
|
-
tmp5_local1 = tmp6_input.
|
|
1283
|
+
tmp5_local1 = tmp6_input.ur(tmp0_desc, 1);
|
|
1284
1284
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1285
1285
|
break;
|
|
1286
1286
|
default:
|
|
1287
1287
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
|
-
tmp6_input.
|
|
1290
|
+
tmp6_input.qr(tmp0_desc);
|
|
1291
1291
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1292
1292
|
};
|
|
1293
|
-
protoOf($serializer_3).
|
|
1294
|
-
return this.
|
|
1293
|
+
protoOf($serializer_3).co = function () {
|
|
1294
|
+
return this.c56_1;
|
|
1295
1295
|
};
|
|
1296
|
-
protoOf($serializer_3).
|
|
1296
|
+
protoOf($serializer_3).wz = function () {
|
|
1297
1297
|
// Inline function 'kotlin.arrayOf' call
|
|
1298
1298
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1299
1299
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1307,25 +1307,25 @@
|
|
|
1307
1307
|
}
|
|
1308
1308
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1309
1309
|
if (!(3 === (3 & seen0))) {
|
|
1310
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1310
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().c56_1);
|
|
1311
1311
|
}
|
|
1312
|
-
$this.
|
|
1313
|
-
$this.
|
|
1312
|
+
$this.e56_1 = id;
|
|
1313
|
+
$this.f56_1 = count;
|
|
1314
1314
|
return $this;
|
|
1315
1315
|
}
|
|
1316
1316
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1317
1317
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1318
1318
|
}
|
|
1319
1319
|
function CardDecksUserDataDto(id, count) {
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1320
|
+
this.e56_1 = id;
|
|
1321
|
+
this.f56_1 = count;
|
|
1322
1322
|
}
|
|
1323
1323
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1324
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1324
|
+
return 'CardDecksUserDataDto(id=' + this.e56_1 + ', count=' + this.f56_1 + ')';
|
|
1325
1325
|
};
|
|
1326
1326
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1327
|
-
var result = getStringHashCode(this.
|
|
1328
|
-
result = imul(result, 31) + this.
|
|
1327
|
+
var result = getStringHashCode(this.e56_1);
|
|
1328
|
+
result = imul(result, 31) + this.f56_1 | 0;
|
|
1329
1329
|
return result;
|
|
1330
1330
|
};
|
|
1331
1331
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1334,15 +1334,15 @@
|
|
|
1334
1334
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1335
1335
|
return false;
|
|
1336
1336
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1337
|
-
if (!(this.d56_1 === tmp0_other_with_cast.d56_1))
|
|
1338
|
-
return false;
|
|
1339
1337
|
if (!(this.e56_1 === tmp0_other_with_cast.e56_1))
|
|
1340
1338
|
return false;
|
|
1339
|
+
if (!(this.f56_1 === tmp0_other_with_cast.f56_1))
|
|
1340
|
+
return false;
|
|
1341
1341
|
return true;
|
|
1342
1342
|
};
|
|
1343
1343
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1344
1344
|
$serializer_4.call($this);
|
|
1345
|
-
$this.
|
|
1345
|
+
$this.h56_1 = typeSerial0;
|
|
1346
1346
|
return $this;
|
|
1347
1347
|
}
|
|
1348
1348
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1351,16 +1351,16 @@
|
|
|
1351
1351
|
function Companion_5() {
|
|
1352
1352
|
Companion_instance_7 = this;
|
|
1353
1353
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1354
|
-
tmp0_serialDesc.
|
|
1355
|
-
tmp0_serialDesc.
|
|
1356
|
-
tmp0_serialDesc.
|
|
1357
|
-
this.
|
|
1354
|
+
tmp0_serialDesc.hz('jsonrpc', false);
|
|
1355
|
+
tmp0_serialDesc.hz('result', false);
|
|
1356
|
+
tmp0_serialDesc.hz('id', false);
|
|
1357
|
+
this.i56_1 = tmp0_serialDesc;
|
|
1358
1358
|
}
|
|
1359
|
-
protoOf(Companion_5).
|
|
1359
|
+
protoOf(Companion_5).l55 = function (typeSerial0) {
|
|
1360
1360
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1361
1361
|
};
|
|
1362
|
-
protoOf(Companion_5).
|
|
1363
|
-
return this.
|
|
1362
|
+
protoOf(Companion_5).h10 = function (typeParamsSerializers) {
|
|
1363
|
+
return this.l55(typeParamsSerializers[0]);
|
|
1364
1364
|
};
|
|
1365
1365
|
var Companion_instance_7;
|
|
1366
1366
|
function Companion_getInstance_8() {
|
|
@@ -1370,86 +1370,86 @@
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function $serializer_4() {
|
|
1372
1372
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1373
|
-
tmp0_serialDesc.
|
|
1374
|
-
tmp0_serialDesc.
|
|
1375
|
-
tmp0_serialDesc.
|
|
1376
|
-
this.
|
|
1377
|
-
}
|
|
1378
|
-
protoOf($serializer_4).
|
|
1379
|
-
var tmp0_desc = this.
|
|
1380
|
-
var tmp1_output = encoder.
|
|
1381
|
-
tmp1_output.
|
|
1382
|
-
tmp1_output.
|
|
1383
|
-
tmp1_output.
|
|
1384
|
-
tmp1_output.
|
|
1385
|
-
};
|
|
1386
|
-
protoOf($serializer_4).
|
|
1387
|
-
return this.
|
|
1388
|
-
};
|
|
1389
|
-
protoOf($serializer_4).
|
|
1390
|
-
var tmp0_desc = this.
|
|
1373
|
+
tmp0_serialDesc.hz('jsonrpc', false);
|
|
1374
|
+
tmp0_serialDesc.hz('result', false);
|
|
1375
|
+
tmp0_serialDesc.hz('id', false);
|
|
1376
|
+
this.g56_1 = tmp0_serialDesc;
|
|
1377
|
+
}
|
|
1378
|
+
protoOf($serializer_4).j56 = function (encoder, value) {
|
|
1379
|
+
var tmp0_desc = this.g56_1;
|
|
1380
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1381
|
+
tmp1_output.et(tmp0_desc, 0, value.k56_1);
|
|
1382
|
+
tmp1_output.gt(tmp0_desc, 1, this.h56_1, value.l56_1);
|
|
1383
|
+
tmp1_output.et(tmp0_desc, 2, value.m56_1);
|
|
1384
|
+
tmp1_output.qr(tmp0_desc);
|
|
1385
|
+
};
|
|
1386
|
+
protoOf($serializer_4).do = function (encoder, value) {
|
|
1387
|
+
return this.j56(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1388
|
+
};
|
|
1389
|
+
protoOf($serializer_4).eo = function (decoder) {
|
|
1390
|
+
var tmp0_desc = this.g56_1;
|
|
1391
1391
|
var tmp1_flag = true;
|
|
1392
1392
|
var tmp2_index = 0;
|
|
1393
1393
|
var tmp3_bitMask0 = 0;
|
|
1394
1394
|
var tmp4_local0 = null;
|
|
1395
1395
|
var tmp5_local1 = null;
|
|
1396
1396
|
var tmp6_local2 = null;
|
|
1397
|
-
var tmp7_input = decoder.
|
|
1398
|
-
if (tmp7_input.
|
|
1399
|
-
tmp4_local0 = tmp7_input.
|
|
1397
|
+
var tmp7_input = decoder.pr(tmp0_desc);
|
|
1398
|
+
if (tmp7_input.fs()) {
|
|
1399
|
+
tmp4_local0 = tmp7_input.zr(tmp0_desc, 0);
|
|
1400
1400
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1401
|
-
tmp5_local1 = tmp7_input.
|
|
1401
|
+
tmp5_local1 = tmp7_input.bs(tmp0_desc, 1, this.h56_1, tmp5_local1);
|
|
1402
1402
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1403
|
-
tmp6_local2 = tmp7_input.
|
|
1403
|
+
tmp6_local2 = tmp7_input.zr(tmp0_desc, 2);
|
|
1404
1404
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1405
1405
|
} else
|
|
1406
1406
|
while (tmp1_flag) {
|
|
1407
|
-
tmp2_index = tmp7_input.
|
|
1407
|
+
tmp2_index = tmp7_input.gs(tmp0_desc);
|
|
1408
1408
|
switch (tmp2_index) {
|
|
1409
1409
|
case -1:
|
|
1410
1410
|
tmp1_flag = false;
|
|
1411
1411
|
break;
|
|
1412
1412
|
case 0:
|
|
1413
|
-
tmp4_local0 = tmp7_input.
|
|
1413
|
+
tmp4_local0 = tmp7_input.zr(tmp0_desc, 0);
|
|
1414
1414
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1415
1415
|
break;
|
|
1416
1416
|
case 1:
|
|
1417
|
-
tmp5_local1 = tmp7_input.
|
|
1417
|
+
tmp5_local1 = tmp7_input.bs(tmp0_desc, 1, this.h56_1, tmp5_local1);
|
|
1418
1418
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1419
1419
|
break;
|
|
1420
1420
|
case 2:
|
|
1421
|
-
tmp6_local2 = tmp7_input.
|
|
1421
|
+
tmp6_local2 = tmp7_input.zr(tmp0_desc, 2);
|
|
1422
1422
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1423
1423
|
break;
|
|
1424
1424
|
default:
|
|
1425
1425
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
tmp7_input.
|
|
1428
|
+
tmp7_input.qr(tmp0_desc);
|
|
1429
1429
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1430
1430
|
};
|
|
1431
|
-
protoOf($serializer_4).
|
|
1432
|
-
return this.
|
|
1431
|
+
protoOf($serializer_4).co = function () {
|
|
1432
|
+
return this.g56_1;
|
|
1433
1433
|
};
|
|
1434
|
-
protoOf($serializer_4).
|
|
1434
|
+
protoOf($serializer_4).wz = function () {
|
|
1435
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1436
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1437
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1438
|
-
return [StringSerializer_getInstance(), this.
|
|
1438
|
+
return [StringSerializer_getInstance(), this.h56_1, StringSerializer_getInstance()];
|
|
1439
1439
|
};
|
|
1440
|
-
protoOf($serializer_4).
|
|
1440
|
+
protoOf($serializer_4).xz = function () {
|
|
1441
1441
|
// Inline function 'kotlin.arrayOf' call
|
|
1442
1442
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1443
1443
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1444
|
-
return [this.
|
|
1444
|
+
return [this.h56_1];
|
|
1445
1445
|
};
|
|
1446
1446
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1447
1447
|
if (!(7 === (7 & seen0))) {
|
|
1448
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1448
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().i56_1);
|
|
1449
1449
|
}
|
|
1450
|
-
$this.
|
|
1451
|
-
$this.
|
|
1452
|
-
$this.
|
|
1450
|
+
$this.k56_1 = jsonrpc;
|
|
1451
|
+
$this.l56_1 = result;
|
|
1452
|
+
$this.m56_1 = id;
|
|
1453
1453
|
return $this;
|
|
1454
1454
|
}
|
|
1455
1455
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1457,17 +1457,17 @@
|
|
|
1457
1457
|
}
|
|
1458
1458
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1459
1459
|
Companion_getInstance_8();
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1460
|
+
this.k56_1 = jsonrpc;
|
|
1461
|
+
this.l56_1 = result;
|
|
1462
|
+
this.m56_1 = id;
|
|
1463
1463
|
}
|
|
1464
1464
|
protoOf(RandomResponseDto).toString = function () {
|
|
1465
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1465
|
+
return 'RandomResponseDto(jsonrpc=' + this.k56_1 + ', result=' + toString(this.l56_1) + ', id=' + this.m56_1 + ')';
|
|
1466
1466
|
};
|
|
1467
1467
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1468
|
-
var result = getStringHashCode(this.
|
|
1469
|
-
result = imul(result, 31) + hashCode(this.
|
|
1470
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1468
|
+
var result = getStringHashCode(this.k56_1);
|
|
1469
|
+
result = imul(result, 31) + hashCode(this.l56_1) | 0;
|
|
1470
|
+
result = imul(result, 31) + getStringHashCode(this.m56_1) | 0;
|
|
1471
1471
|
return result;
|
|
1472
1472
|
};
|
|
1473
1473
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1476,11 +1476,11 @@
|
|
|
1476
1476
|
if (!(other instanceof RandomResponseDto))
|
|
1477
1477
|
return false;
|
|
1478
1478
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1479
|
-
if (!(this.
|
|
1479
|
+
if (!(this.k56_1 === tmp0_other_with_cast.k56_1))
|
|
1480
1480
|
return false;
|
|
1481
|
-
if (!equals(this.
|
|
1481
|
+
if (!equals(this.l56_1, tmp0_other_with_cast.l56_1))
|
|
1482
1482
|
return false;
|
|
1483
|
-
if (!(this.
|
|
1483
|
+
if (!(this.m56_1 === tmp0_other_with_cast.m56_1))
|
|
1484
1484
|
return false;
|
|
1485
1485
|
return true;
|
|
1486
1486
|
};
|
|
@@ -1493,30 +1493,30 @@
|
|
|
1493
1493
|
function $serializer_5() {
|
|
1494
1494
|
$serializer_instance_3 = this;
|
|
1495
1495
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1496
|
-
tmp0_serialDesc.
|
|
1497
|
-
tmp0_serialDesc.
|
|
1498
|
-
tmp0_serialDesc.
|
|
1499
|
-
tmp0_serialDesc.
|
|
1500
|
-
tmp0_serialDesc.
|
|
1501
|
-
tmp0_serialDesc.
|
|
1502
|
-
this.
|
|
1503
|
-
}
|
|
1504
|
-
protoOf($serializer_5).
|
|
1505
|
-
var tmp0_desc = this.
|
|
1506
|
-
var tmp1_output = encoder.
|
|
1507
|
-
tmp1_output.
|
|
1508
|
-
tmp1_output.
|
|
1509
|
-
tmp1_output.
|
|
1510
|
-
tmp1_output.
|
|
1511
|
-
tmp1_output.
|
|
1512
|
-
tmp1_output.
|
|
1513
|
-
tmp1_output.
|
|
1514
|
-
};
|
|
1515
|
-
protoOf($serializer_5).
|
|
1516
|
-
return this.
|
|
1517
|
-
};
|
|
1518
|
-
protoOf($serializer_5).
|
|
1519
|
-
var tmp0_desc = this.
|
|
1496
|
+
tmp0_serialDesc.hz('random', false);
|
|
1497
|
+
tmp0_serialDesc.hz('signature', false);
|
|
1498
|
+
tmp0_serialDesc.hz('bitsUsed', false);
|
|
1499
|
+
tmp0_serialDesc.hz('bitsLeft', false);
|
|
1500
|
+
tmp0_serialDesc.hz('requestsLeft', false);
|
|
1501
|
+
tmp0_serialDesc.hz('advisoryDelay', false);
|
|
1502
|
+
this.n56_1 = tmp0_serialDesc;
|
|
1503
|
+
}
|
|
1504
|
+
protoOf($serializer_5).o56 = function (encoder, value) {
|
|
1505
|
+
var tmp0_desc = this.n56_1;
|
|
1506
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1507
|
+
tmp1_output.gt(tmp0_desc, 0, $serializer_getInstance_4(), value.p56_1);
|
|
1508
|
+
tmp1_output.it(tmp0_desc, 1, StringSerializer_getInstance(), value.q56_1);
|
|
1509
|
+
tmp1_output.it(tmp0_desc, 2, IntSerializer_getInstance(), value.r56_1);
|
|
1510
|
+
tmp1_output.it(tmp0_desc, 3, IntSerializer_getInstance(), value.s56_1);
|
|
1511
|
+
tmp1_output.it(tmp0_desc, 4, IntSerializer_getInstance(), value.t56_1);
|
|
1512
|
+
tmp1_output.it(tmp0_desc, 5, IntSerializer_getInstance(), value.u56_1);
|
|
1513
|
+
tmp1_output.qr(tmp0_desc);
|
|
1514
|
+
};
|
|
1515
|
+
protoOf($serializer_5).do = function (encoder, value) {
|
|
1516
|
+
return this.o56(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1517
|
+
};
|
|
1518
|
+
protoOf($serializer_5).eo = function (decoder) {
|
|
1519
|
+
var tmp0_desc = this.n56_1;
|
|
1520
1520
|
var tmp1_flag = true;
|
|
1521
1521
|
var tmp2_index = 0;
|
|
1522
1522
|
var tmp3_bitMask0 = 0;
|
|
@@ -1526,62 +1526,62 @@
|
|
|
1526
1526
|
var tmp7_local3 = null;
|
|
1527
1527
|
var tmp8_local4 = null;
|
|
1528
1528
|
var tmp9_local5 = null;
|
|
1529
|
-
var tmp10_input = decoder.
|
|
1530
|
-
if (tmp10_input.
|
|
1531
|
-
tmp4_local0 = tmp10_input.
|
|
1529
|
+
var tmp10_input = decoder.pr(tmp0_desc);
|
|
1530
|
+
if (tmp10_input.fs()) {
|
|
1531
|
+
tmp4_local0 = tmp10_input.bs(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1532
1532
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1533
|
-
tmp5_local1 = tmp10_input.
|
|
1533
|
+
tmp5_local1 = tmp10_input.ds(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1534
1534
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1535
|
-
tmp6_local2 = tmp10_input.
|
|
1535
|
+
tmp6_local2 = tmp10_input.ds(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1536
1536
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1537
|
-
tmp7_local3 = tmp10_input.
|
|
1537
|
+
tmp7_local3 = tmp10_input.ds(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1538
1538
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1539
|
-
tmp8_local4 = tmp10_input.
|
|
1539
|
+
tmp8_local4 = tmp10_input.ds(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1540
1540
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1541
|
-
tmp9_local5 = tmp10_input.
|
|
1541
|
+
tmp9_local5 = tmp10_input.ds(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1542
1542
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1543
1543
|
} else
|
|
1544
1544
|
while (tmp1_flag) {
|
|
1545
|
-
tmp2_index = tmp10_input.
|
|
1545
|
+
tmp2_index = tmp10_input.gs(tmp0_desc);
|
|
1546
1546
|
switch (tmp2_index) {
|
|
1547
1547
|
case -1:
|
|
1548
1548
|
tmp1_flag = false;
|
|
1549
1549
|
break;
|
|
1550
1550
|
case 0:
|
|
1551
|
-
tmp4_local0 = tmp10_input.
|
|
1551
|
+
tmp4_local0 = tmp10_input.bs(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1552
1552
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1553
1553
|
break;
|
|
1554
1554
|
case 1:
|
|
1555
|
-
tmp5_local1 = tmp10_input.
|
|
1555
|
+
tmp5_local1 = tmp10_input.ds(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1556
1556
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1557
1557
|
break;
|
|
1558
1558
|
case 2:
|
|
1559
|
-
tmp6_local2 = tmp10_input.
|
|
1559
|
+
tmp6_local2 = tmp10_input.ds(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1560
1560
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1561
1561
|
break;
|
|
1562
1562
|
case 3:
|
|
1563
|
-
tmp7_local3 = tmp10_input.
|
|
1563
|
+
tmp7_local3 = tmp10_input.ds(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1564
1564
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1565
1565
|
break;
|
|
1566
1566
|
case 4:
|
|
1567
|
-
tmp8_local4 = tmp10_input.
|
|
1567
|
+
tmp8_local4 = tmp10_input.ds(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1568
1568
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1569
1569
|
break;
|
|
1570
1570
|
case 5:
|
|
1571
|
-
tmp9_local5 = tmp10_input.
|
|
1571
|
+
tmp9_local5 = tmp10_input.ds(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1572
1572
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1573
1573
|
break;
|
|
1574
1574
|
default:
|
|
1575
1575
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
|
-
tmp10_input.
|
|
1578
|
+
tmp10_input.qr(tmp0_desc);
|
|
1579
1579
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1580
1580
|
};
|
|
1581
|
-
protoOf($serializer_5).
|
|
1582
|
-
return this.
|
|
1581
|
+
protoOf($serializer_5).co = function () {
|
|
1582
|
+
return this.n56_1;
|
|
1583
1583
|
};
|
|
1584
|
-
protoOf($serializer_5).
|
|
1584
|
+
protoOf($serializer_5).wz = function () {
|
|
1585
1585
|
// Inline function 'kotlin.arrayOf' call
|
|
1586
1586
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1587
1587
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1595,37 +1595,37 @@
|
|
|
1595
1595
|
}
|
|
1596
1596
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1597
1597
|
if (!(63 === (63 & seen0))) {
|
|
1598
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1598
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().n56_1);
|
|
1599
1599
|
}
|
|
1600
|
-
$this.
|
|
1601
|
-
$this.
|
|
1602
|
-
$this.
|
|
1603
|
-
$this.
|
|
1604
|
-
$this.
|
|
1605
|
-
$this.
|
|
1600
|
+
$this.p56_1 = random;
|
|
1601
|
+
$this.q56_1 = signature;
|
|
1602
|
+
$this.r56_1 = bitsUsed;
|
|
1603
|
+
$this.s56_1 = bitsLeft;
|
|
1604
|
+
$this.t56_1 = requestsLeft;
|
|
1605
|
+
$this.u56_1 = advisoryDelay;
|
|
1606
1606
|
return $this;
|
|
1607
1607
|
}
|
|
1608
1608
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1609
1609
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1610
1610
|
}
|
|
1611
1611
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1612
|
+
this.p56_1 = random;
|
|
1613
|
+
this.q56_1 = signature;
|
|
1614
|
+
this.r56_1 = bitsUsed;
|
|
1615
|
+
this.s56_1 = bitsLeft;
|
|
1616
|
+
this.t56_1 = requestsLeft;
|
|
1617
|
+
this.u56_1 = advisoryDelay;
|
|
1618
1618
|
}
|
|
1619
1619
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1620
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1620
|
+
return 'IntegerSequencesResultDto(random=' + this.p56_1.toString() + ', signature=' + this.q56_1 + ', bitsUsed=' + this.r56_1 + ', bitsLeft=' + this.s56_1 + ', requestsLeft=' + this.t56_1 + ', advisoryDelay=' + this.u56_1 + ')';
|
|
1621
1621
|
};
|
|
1622
1622
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1623
|
-
var result = this.
|
|
1624
|
-
result = imul(result, 31) + (this.
|
|
1625
|
-
result = imul(result, 31) + (this.q56_1 == null ? 0 : this.q56_1) | 0;
|
|
1623
|
+
var result = this.p56_1.hashCode();
|
|
1624
|
+
result = imul(result, 31) + (this.q56_1 == null ? 0 : getStringHashCode(this.q56_1)) | 0;
|
|
1626
1625
|
result = imul(result, 31) + (this.r56_1 == null ? 0 : this.r56_1) | 0;
|
|
1627
1626
|
result = imul(result, 31) + (this.s56_1 == null ? 0 : this.s56_1) | 0;
|
|
1628
1627
|
result = imul(result, 31) + (this.t56_1 == null ? 0 : this.t56_1) | 0;
|
|
1628
|
+
result = imul(result, 31) + (this.u56_1 == null ? 0 : this.u56_1) | 0;
|
|
1629
1629
|
return result;
|
|
1630
1630
|
};
|
|
1631
1631
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1634,9 +1634,7 @@
|
|
|
1634
1634
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1635
1635
|
return false;
|
|
1636
1636
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1637
|
-
if (!this.
|
|
1638
|
-
return false;
|
|
1639
|
-
if (!(this.p56_1 == tmp0_other_with_cast.p56_1))
|
|
1637
|
+
if (!this.p56_1.equals(tmp0_other_with_cast.p56_1))
|
|
1640
1638
|
return false;
|
|
1641
1639
|
if (!(this.q56_1 == tmp0_other_with_cast.q56_1))
|
|
1642
1640
|
return false;
|
|
@@ -1646,6 +1644,8 @@
|
|
|
1646
1644
|
return false;
|
|
1647
1645
|
if (!(this.t56_1 == tmp0_other_with_cast.t56_1))
|
|
1648
1646
|
return false;
|
|
1647
|
+
if (!(this.u56_1 == tmp0_other_with_cast.u56_1))
|
|
1648
|
+
return false;
|
|
1649
1649
|
return true;
|
|
1650
1650
|
};
|
|
1651
1651
|
function RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez() {
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
// Inline function 'kotlin.arrayOf' call
|
|
1659
1659
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1660
1660
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1661
|
-
tmp.
|
|
1661
|
+
tmp.v56_1 = [lazy(tmp_0, RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez), null, null];
|
|
1662
1662
|
}
|
|
1663
1663
|
var Companion_instance_9;
|
|
1664
1664
|
function Companion_getInstance_10() {
|
|
@@ -1669,74 +1669,74 @@
|
|
|
1669
1669
|
function $serializer_6() {
|
|
1670
1670
|
$serializer_instance_4 = this;
|
|
1671
1671
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1672
|
-
tmp0_serialDesc.
|
|
1673
|
-
tmp0_serialDesc.
|
|
1674
|
-
tmp0_serialDesc.
|
|
1675
|
-
this.
|
|
1676
|
-
}
|
|
1677
|
-
protoOf($serializer_6).
|
|
1678
|
-
var tmp0_desc = this.
|
|
1679
|
-
var tmp1_output = encoder.
|
|
1680
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1681
|
-
tmp1_output.
|
|
1682
|
-
tmp1_output.
|
|
1683
|
-
tmp1_output.
|
|
1684
|
-
tmp1_output.
|
|
1685
|
-
};
|
|
1686
|
-
protoOf($serializer_6).
|
|
1687
|
-
return this.
|
|
1688
|
-
};
|
|
1689
|
-
protoOf($serializer_6).
|
|
1690
|
-
var tmp0_desc = this.
|
|
1672
|
+
tmp0_serialDesc.hz('data', false);
|
|
1673
|
+
tmp0_serialDesc.hz('completionTime', false);
|
|
1674
|
+
tmp0_serialDesc.hz('ticketId', false);
|
|
1675
|
+
this.w56_1 = tmp0_serialDesc;
|
|
1676
|
+
}
|
|
1677
|
+
protoOf($serializer_6).x56 = function (encoder, value) {
|
|
1678
|
+
var tmp0_desc = this.w56_1;
|
|
1679
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1680
|
+
var tmp2_cached = Companion_getInstance_10().v56_1;
|
|
1681
|
+
tmp1_output.gt(tmp0_desc, 0, tmp2_cached[0].x(), value.y56_1);
|
|
1682
|
+
tmp1_output.et(tmp0_desc, 1, value.z56_1);
|
|
1683
|
+
tmp1_output.it(tmp0_desc, 2, StringSerializer_getInstance(), value.a57_1);
|
|
1684
|
+
tmp1_output.qr(tmp0_desc);
|
|
1685
|
+
};
|
|
1686
|
+
protoOf($serializer_6).do = function (encoder, value) {
|
|
1687
|
+
return this.x56(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1688
|
+
};
|
|
1689
|
+
protoOf($serializer_6).eo = function (decoder) {
|
|
1690
|
+
var tmp0_desc = this.w56_1;
|
|
1691
1691
|
var tmp1_flag = true;
|
|
1692
1692
|
var tmp2_index = 0;
|
|
1693
1693
|
var tmp3_bitMask0 = 0;
|
|
1694
1694
|
var tmp4_local0 = null;
|
|
1695
1695
|
var tmp5_local1 = null;
|
|
1696
1696
|
var tmp6_local2 = null;
|
|
1697
|
-
var tmp7_input = decoder.
|
|
1698
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1699
|
-
if (tmp7_input.
|
|
1700
|
-
tmp4_local0 = tmp7_input.
|
|
1697
|
+
var tmp7_input = decoder.pr(tmp0_desc);
|
|
1698
|
+
var tmp8_cached = Companion_getInstance_10().v56_1;
|
|
1699
|
+
if (tmp7_input.fs()) {
|
|
1700
|
+
tmp4_local0 = tmp7_input.bs(tmp0_desc, 0, tmp8_cached[0].x(), tmp4_local0);
|
|
1701
1701
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1702
|
-
tmp5_local1 = tmp7_input.
|
|
1702
|
+
tmp5_local1 = tmp7_input.zr(tmp0_desc, 1);
|
|
1703
1703
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1704
|
-
tmp6_local2 = tmp7_input.
|
|
1704
|
+
tmp6_local2 = tmp7_input.ds(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1705
1705
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1706
1706
|
} else
|
|
1707
1707
|
while (tmp1_flag) {
|
|
1708
|
-
tmp2_index = tmp7_input.
|
|
1708
|
+
tmp2_index = tmp7_input.gs(tmp0_desc);
|
|
1709
1709
|
switch (tmp2_index) {
|
|
1710
1710
|
case -1:
|
|
1711
1711
|
tmp1_flag = false;
|
|
1712
1712
|
break;
|
|
1713
1713
|
case 0:
|
|
1714
|
-
tmp4_local0 = tmp7_input.
|
|
1714
|
+
tmp4_local0 = tmp7_input.bs(tmp0_desc, 0, tmp8_cached[0].x(), tmp4_local0);
|
|
1715
1715
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1716
1716
|
break;
|
|
1717
1717
|
case 1:
|
|
1718
|
-
tmp5_local1 = tmp7_input.
|
|
1718
|
+
tmp5_local1 = tmp7_input.zr(tmp0_desc, 1);
|
|
1719
1719
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1720
1720
|
break;
|
|
1721
1721
|
case 2:
|
|
1722
|
-
tmp6_local2 = tmp7_input.
|
|
1722
|
+
tmp6_local2 = tmp7_input.ds(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1723
1723
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1724
1724
|
break;
|
|
1725
1725
|
default:
|
|
1726
1726
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
|
-
tmp7_input.
|
|
1729
|
+
tmp7_input.qr(tmp0_desc);
|
|
1730
1730
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1731
1731
|
};
|
|
1732
|
-
protoOf($serializer_6).
|
|
1733
|
-
return this.
|
|
1732
|
+
protoOf($serializer_6).co = function () {
|
|
1733
|
+
return this.w56_1;
|
|
1734
1734
|
};
|
|
1735
|
-
protoOf($serializer_6).
|
|
1735
|
+
protoOf($serializer_6).wz = function () {
|
|
1736
1736
|
// Inline function 'kotlin.arrayOf' call
|
|
1737
1737
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1738
1738
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1739
|
-
return [Companion_getInstance_10().
|
|
1739
|
+
return [Companion_getInstance_10().v56_1[0].x(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1740
1740
|
};
|
|
1741
1741
|
var $serializer_instance_4;
|
|
1742
1742
|
function $serializer_getInstance_4() {
|
|
@@ -1746,11 +1746,11 @@
|
|
|
1746
1746
|
}
|
|
1747
1747
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1748
1748
|
if (!(7 === (7 & seen0))) {
|
|
1749
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1749
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().w56_1);
|
|
1750
1750
|
}
|
|
1751
|
-
$this.
|
|
1752
|
-
$this.
|
|
1753
|
-
$this.
|
|
1751
|
+
$this.y56_1 = data;
|
|
1752
|
+
$this.z56_1 = completionTime;
|
|
1753
|
+
$this.a57_1 = ticketId;
|
|
1754
1754
|
return $this;
|
|
1755
1755
|
}
|
|
1756
1756
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1759,12 +1759,12 @@
|
|
|
1759
1759
|
function IntegerSequencesDataDto() {
|
|
1760
1760
|
}
|
|
1761
1761
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1762
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1762
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.y56_1) + ', completionTime=' + this.z56_1 + ', ticketId=' + this.a57_1 + ')';
|
|
1763
1763
|
};
|
|
1764
1764
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1765
|
-
var result = hashCode(this.
|
|
1766
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1767
|
-
result = imul(result, 31) + (this.
|
|
1765
|
+
var result = hashCode(this.y56_1);
|
|
1766
|
+
result = imul(result, 31) + getStringHashCode(this.z56_1) | 0;
|
|
1767
|
+
result = imul(result, 31) + (this.a57_1 == null ? 0 : getStringHashCode(this.a57_1)) | 0;
|
|
1768
1768
|
return result;
|
|
1769
1769
|
};
|
|
1770
1770
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1773,11 +1773,11 @@
|
|
|
1773
1773
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1774
1774
|
return false;
|
|
1775
1775
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1776
|
-
if (!equals(this.
|
|
1776
|
+
if (!equals(this.y56_1, tmp0_other_with_cast.y56_1))
|
|
1777
1777
|
return false;
|
|
1778
|
-
if (!(this.
|
|
1778
|
+
if (!(this.z56_1 === tmp0_other_with_cast.z56_1))
|
|
1779
1779
|
return false;
|
|
1780
|
-
if (!(this.
|
|
1780
|
+
if (!(this.a57_1 == tmp0_other_with_cast.a57_1))
|
|
1781
1781
|
return false;
|
|
1782
1782
|
return true;
|
|
1783
1783
|
};
|
|
@@ -1796,7 +1796,7 @@
|
|
|
1796
1796
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1797
1797
|
}
|
|
1798
1798
|
function Companion_8() {
|
|
1799
|
-
this.
|
|
1799
|
+
this.n57_1 = 52;
|
|
1800
1800
|
}
|
|
1801
1801
|
var Companion_instance_10;
|
|
1802
1802
|
function Companion_getInstance_11() {
|
|
@@ -1804,13 +1804,13 @@
|
|
|
1804
1804
|
}
|
|
1805
1805
|
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1806
1806
|
CoroutineImpl.call(this, resultContinuation);
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1813
|
-
this.
|
|
1807
|
+
this.w57_1 = _this__u8e3s4;
|
|
1808
|
+
this.x57_1 = min;
|
|
1809
|
+
this.y57_1 = max;
|
|
1810
|
+
this.z57_1 = decksCount;
|
|
1811
|
+
this.a58_1 = cardsCount;
|
|
1812
|
+
this.b58_1 = userData;
|
|
1813
|
+
this.c58_1 = signed;
|
|
1814
1814
|
}
|
|
1815
1815
|
protoOf($getRandomCardDecksCOROUTINE$).a9 = function () {
|
|
1816
1816
|
var suspendResult = this.u8_1;
|
|
@@ -1821,27 +1821,27 @@
|
|
|
1821
1821
|
case 0:
|
|
1822
1822
|
this.t8_1 = 6;
|
|
1823
1823
|
this.t8_1 = 5;
|
|
1824
|
-
var tmp0 = this.
|
|
1824
|
+
var tmp0 = this.w57_1.f58_1;
|
|
1825
1825
|
var this_0 = new HttpRequestBuilder();
|
|
1826
1826
|
url(this_0, '/json-rpc/4/invoke');
|
|
1827
|
-
var tmp3_id = this.
|
|
1828
|
-
var tmp4_method = this.
|
|
1829
|
-
var tmp0_apiKey = this.
|
|
1830
|
-
var size = this.
|
|
1827
|
+
var tmp3_id = this.b58_1.id;
|
|
1828
|
+
var tmp4_method = this.c58_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1829
|
+
var tmp0_apiKey = this.w57_1.g58_1;
|
|
1830
|
+
var size = this.z57_1;
|
|
1831
1831
|
var list = ArrayList_init_$Create$(size);
|
|
1832
1832
|
var inductionVariable = 0;
|
|
1833
1833
|
if (inductionVariable < size)
|
|
1834
1834
|
do {
|
|
1835
1835
|
var index = inductionVariable;
|
|
1836
1836
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1837
|
-
list.j(this.
|
|
1837
|
+
list.j(this.a58_1);
|
|
1838
1838
|
}
|
|
1839
1839
|
while (inductionVariable < size);
|
|
1840
|
-
var tmp2_userData = this.
|
|
1841
|
-
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.
|
|
1840
|
+
var tmp2_userData = this.c58_1 ? mapToDto(this.b58_1) : null;
|
|
1841
|
+
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.z57_1, list, this.x57_1, this.y57_1, false, null, tmp2_userData);
|
|
1842
1842
|
var body = new RandomRequestDto('2.0', tmp4_method, tmp5_params, tmp3_id);
|
|
1843
1843
|
if (body == null) {
|
|
1844
|
-
this_0.
|
|
1844
|
+
this_0.p3s_1 = NullBody_instance;
|
|
1845
1845
|
var tmp_0 = JsType_instance;
|
|
1846
1846
|
var tmp_1 = getKClass(RandomRequestDto);
|
|
1847
1847
|
var tmp_2;
|
|
@@ -1857,13 +1857,13 @@
|
|
|
1857
1857
|
}
|
|
1858
1858
|
tmp_2 = tmp_3;
|
|
1859
1859
|
}
|
|
1860
|
-
this_0.
|
|
1860
|
+
this_0.b3y(typeInfoImpl(tmp_0, tmp_1, tmp_2));
|
|
1861
1861
|
} else {
|
|
1862
1862
|
if (body instanceof OutgoingContent) {
|
|
1863
|
-
this_0.
|
|
1864
|
-
this_0.
|
|
1863
|
+
this_0.p3s_1 = body;
|
|
1864
|
+
this_0.b3y(null);
|
|
1865
1865
|
} else {
|
|
1866
|
-
this_0.
|
|
1866
|
+
this_0.p3s_1 = body;
|
|
1867
1867
|
var tmp_4 = JsType_instance;
|
|
1868
1868
|
var tmp_5 = getKClass(RandomRequestDto);
|
|
1869
1869
|
var tmp_6;
|
|
@@ -1879,23 +1879,23 @@
|
|
|
1879
1879
|
}
|
|
1880
1880
|
tmp_6 = tmp_7;
|
|
1881
1881
|
}
|
|
1882
|
-
this_0.
|
|
1882
|
+
this_0.b3y(typeInfoImpl(tmp_4, tmp_5, tmp_6));
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
|
-
this_0.
|
|
1886
|
+
this_0.n3s_1 = Companion_getInstance().p3j_1;
|
|
1887
1887
|
this.s8_1 = 1;
|
|
1888
|
-
suspendResult = (new HttpStatement(this_0, tmp0)).
|
|
1888
|
+
suspendResult = (new HttpStatement(this_0, tmp0)).c4j(this);
|
|
1889
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1890
|
return suspendResult;
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
1893
|
continue $sm;
|
|
1894
1894
|
case 1:
|
|
1895
|
-
this.
|
|
1896
|
-
var this_1 = this.
|
|
1895
|
+
this.e58_1 = suspendResult;
|
|
1896
|
+
var this_1 = this.e58_1;
|
|
1897
1897
|
this.s8_1 = 2;
|
|
1898
|
-
var tmp_8 = this_1.
|
|
1898
|
+
var tmp_8 = this_1.q3v();
|
|
1899
1899
|
var tmp_9 = JsType_instance;
|
|
1900
1900
|
var tmp_10 = getKClass(JsonObject);
|
|
1901
1901
|
var tmp_11;
|
|
@@ -1912,7 +1912,7 @@
|
|
|
1912
1912
|
tmp_11 = tmp_12;
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
suspendResult = tmp_8.
|
|
1915
|
+
suspendResult = tmp_8.u3u(typeInfoImpl(tmp_9, tmp_10, tmp_11), this);
|
|
1916
1916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1917
1917
|
return suspendResult;
|
|
1918
1918
|
}
|
|
@@ -1920,18 +1920,18 @@
|
|
|
1920
1920
|
continue $sm;
|
|
1921
1921
|
case 2:
|
|
1922
1922
|
var tmp_13 = this;
|
|
1923
|
-
tmp_13.
|
|
1923
|
+
tmp_13.d58_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1924
1924
|
this.s8_1 = 3;
|
|
1925
|
-
suspendResult = throwIfError(this.
|
|
1925
|
+
suspendResult = throwIfError(this.w57_1, this.d58_1, this.e58_1, this);
|
|
1926
1926
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1927
1927
|
return suspendResult;
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
1930
|
continue $sm;
|
|
1931
1931
|
case 3:
|
|
1932
|
-
var this_2 = this.
|
|
1932
|
+
var this_2 = this.e58_1;
|
|
1933
1933
|
this.s8_1 = 4;
|
|
1934
|
-
var tmp_14 = this_2.
|
|
1934
|
+
var tmp_14 = this_2.q3v();
|
|
1935
1935
|
var tmp_15 = JsType_instance;
|
|
1936
1936
|
var tmp_16 = getKClass(RandomResponseDto);
|
|
1937
1937
|
var tmp_17;
|
|
@@ -1948,7 +1948,7 @@
|
|
|
1948
1948
|
tmp_17 = tmp_18;
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
1951
|
-
suspendResult = tmp_14.
|
|
1951
|
+
suspendResult = tmp_14.u3u(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1952
1952
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1953
1953
|
return suspendResult;
|
|
1954
1954
|
}
|
|
@@ -1956,10 +1956,10 @@
|
|
|
1956
1956
|
continue $sm;
|
|
1957
1957
|
case 4:
|
|
1958
1958
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1959
|
-
var randomJson = extractRandomResult(this.
|
|
1960
|
-
var tmp0_cardDecks = responseDto.
|
|
1961
|
-
var tmp1_signature = responseDto.
|
|
1962
|
-
var tmp2_id = responseDto.
|
|
1959
|
+
var randomJson = extractRandomResult(this.w57_1, this.d58_1);
|
|
1960
|
+
var tmp0_cardDecks = responseDto.l56_1.p56_1.y56_1;
|
|
1961
|
+
var tmp1_signature = responseDto.l56_1.q56_1;
|
|
1962
|
+
var tmp2_id = responseDto.m56_1;
|
|
1963
1963
|
return new CardDeckResult(tmp0_cardDecks, randomJson, tmp2_id, tmp1_signature);
|
|
1964
1964
|
case 5:
|
|
1965
1965
|
this.t8_1 = 6;
|
|
@@ -1991,9 +1991,9 @@
|
|
|
1991
1991
|
};
|
|
1992
1992
|
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1993
1993
|
CoroutineImpl.call(this, resultContinuation);
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
1996
|
-
this.
|
|
1994
|
+
this.k57_1 = _this__u8e3s4;
|
|
1995
|
+
this.l57_1 = bodyAsJson;
|
|
1996
|
+
this.m57_1 = response;
|
|
1997
1997
|
}
|
|
1998
1998
|
protoOf($throwIfErrorCOROUTINE$).a9 = function () {
|
|
1999
1999
|
var suspendResult = this.u8_1;
|
|
@@ -2003,11 +2003,11 @@
|
|
|
2003
2003
|
switch (tmp) {
|
|
2004
2004
|
case 0:
|
|
2005
2005
|
this.t8_1 = 3;
|
|
2006
|
-
var this_0 = this.
|
|
2006
|
+
var this_0 = this.l57_1;
|
|
2007
2007
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).a2('error')) {
|
|
2008
|
-
var this_1 = this.
|
|
2008
|
+
var this_1 = this.m57_1;
|
|
2009
2009
|
this.s8_1 = 2;
|
|
2010
|
-
var tmp_0 = this_1.
|
|
2010
|
+
var tmp_0 = this_1.q3v();
|
|
2011
2011
|
var tmp_1 = JsType_instance;
|
|
2012
2012
|
var tmp_2 = getKClass(ErrorResponseDto);
|
|
2013
2013
|
var tmp_3;
|
|
@@ -2023,7 +2023,7 @@
|
|
|
2023
2023
|
}
|
|
2024
2024
|
tmp_3 = tmp_4;
|
|
2025
2025
|
}
|
|
2026
|
-
suspendResult = tmp_0.
|
|
2026
|
+
suspendResult = tmp_0.u3u(typeInfoImpl(tmp_1, tmp_2, tmp_3), this);
|
|
2027
2027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
2028
|
return suspendResult;
|
|
2029
2029
|
}
|
|
@@ -2037,10 +2037,10 @@
|
|
|
2037
2037
|
return Unit_instance;
|
|
2038
2038
|
case 2:
|
|
2039
2039
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2040
|
-
var tmp0_safe_receiver = errorResponseDto.
|
|
2041
|
-
var tmp_5 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2042
|
-
var tmp1_safe_receiver = errorResponseDto.
|
|
2043
|
-
throw new RandomException(tmp_5, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2040
|
+
var tmp0_safe_receiver = errorResponseDto.d55_1;
|
|
2041
|
+
var tmp_5 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g55_1;
|
|
2042
|
+
var tmp1_safe_receiver = errorResponseDto.d55_1;
|
|
2043
|
+
throw new RandomException(tmp_5, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h55_1);
|
|
2044
2044
|
case 3:
|
|
2045
2045
|
throw this.v8_1;
|
|
2046
2046
|
}
|
|
@@ -2056,10 +2056,10 @@
|
|
|
2056
2056
|
while (true);
|
|
2057
2057
|
};
|
|
2058
2058
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2059
|
+
this.f58_1 = client;
|
|
2060
|
+
this.g58_1 = apiKey;
|
|
2061
2061
|
}
|
|
2062
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2062
|
+
protoOf(RandomOrgApiServiceImpl).b57 = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2063
2063
|
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2064
2064
|
tmp.u8_1 = Unit_instance;
|
|
2065
2065
|
tmp.v8_1 = null;
|
|
@@ -2084,16 +2084,16 @@
|
|
|
2084
2084
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2085
2085
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2086
2086
|
}
|
|
2087
|
-
protoOf(PoolParams).
|
|
2087
|
+
protoOf(PoolParams).w54 = function () {
|
|
2088
2088
|
return this.poolSize;
|
|
2089
2089
|
};
|
|
2090
|
-
protoOf(PoolParams).
|
|
2090
|
+
protoOf(PoolParams).x54 = function () {
|
|
2091
2091
|
return this.thresholdForUsedPool;
|
|
2092
2092
|
};
|
|
2093
|
-
protoOf(PoolParams).
|
|
2093
|
+
protoOf(PoolParams).h58 = function () {
|
|
2094
2094
|
return this.failedRequestAttempts;
|
|
2095
2095
|
};
|
|
2096
|
-
protoOf(PoolParams).
|
|
2096
|
+
protoOf(PoolParams).i58 = function () {
|
|
2097
2097
|
return this.failedAttemptCooldown;
|
|
2098
2098
|
};
|
|
2099
2099
|
protoOf(PoolParams).oe = function () {
|
|
@@ -2102,13 +2102,13 @@
|
|
|
2102
2102
|
protoOf(PoolParams).pe = function () {
|
|
2103
2103
|
return this.thresholdForUsedPool;
|
|
2104
2104
|
};
|
|
2105
|
-
protoOf(PoolParams).
|
|
2105
|
+
protoOf(PoolParams).yl = function () {
|
|
2106
2106
|
return this.failedRequestAttempts;
|
|
2107
2107
|
};
|
|
2108
|
-
protoOf(PoolParams).
|
|
2108
|
+
protoOf(PoolParams).j58 = function () {
|
|
2109
2109
|
return this.failedAttemptCooldown;
|
|
2110
2110
|
};
|
|
2111
|
-
protoOf(PoolParams).
|
|
2111
|
+
protoOf(PoolParams).k58 = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2112
2112
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2113
2113
|
};
|
|
2114
2114
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2117
2117
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2118
2118
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2119
|
-
return $super === VOID ? this.
|
|
2119
|
+
return $super === VOID ? this.k58(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.k58.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2120
2120
|
};
|
|
2121
2121
|
protoOf(PoolParams).toString = function () {
|
|
2122
2122
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2147,11 +2147,11 @@
|
|
|
2147
2147
|
function RandomPoolProvider() {
|
|
2148
2148
|
}
|
|
2149
2149
|
function getExceptionIfCooldown($this) {
|
|
2150
|
-
var currentTime = System_instance.
|
|
2151
|
-
if (!($this.
|
|
2152
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2150
|
+
var currentTime = System_instance.dk();
|
|
2151
|
+
if (!($this.x58_1 == null) && $this.y58_1 >= $this.p58_1.failedRequestAttempts) {
|
|
2152
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.p58_1.failedAttemptCooldown, $this.y58_1);
|
|
2153
2153
|
// Inline function 'kotlin.requireNotNull' call
|
|
2154
|
-
var tmp0 = $this.
|
|
2154
|
+
var tmp0 = $this.x58_1;
|
|
2155
2155
|
var tmp$ret$1;
|
|
2156
2156
|
$l$block: {
|
|
2157
2157
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2163,22 +2163,22 @@
|
|
|
2163
2163
|
break $l$block;
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
|
-
var allowedRequestTime = tmp$ret$1.
|
|
2167
|
-
if (allowedRequestTime.
|
|
2168
|
-
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2166
|
+
var allowedRequestTime = tmp$ret$1.sk(timeToWait);
|
|
2167
|
+
if (allowedRequestTime.vk(currentTime) > 0) {
|
|
2168
|
+
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.x58_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.y58_1));
|
|
2169
2169
|
return exception;
|
|
2170
2170
|
} else {
|
|
2171
|
-
$this.
|
|
2171
|
+
$this.x58_1 = null;
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
return null;
|
|
2175
2175
|
}
|
|
2176
2176
|
function mapToRandomExceptionIfError($this, error) {
|
|
2177
|
-
$this.
|
|
2178
|
-
$this.
|
|
2179
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2177
|
+
$this.x58_1 = System_instance.dk();
|
|
2178
|
+
$this.y58_1 = $this.y58_1 + 1 | 0;
|
|
2179
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.p58_1.failedAttemptCooldown, $this.y58_1);
|
|
2180
2180
|
// Inline function 'kotlin.requireNotNull' call
|
|
2181
|
-
var tmp0 = $this.
|
|
2181
|
+
var tmp0 = $this.x58_1;
|
|
2182
2182
|
var tmp$ret$1;
|
|
2183
2183
|
$l$block: {
|
|
2184
2184
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2190,9 +2190,9 @@
|
|
|
2190
2190
|
break $l$block;
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
|
-
var allowedRequestTime = tmp$ret$1.
|
|
2194
|
-
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2195
|
-
$this.
|
|
2193
|
+
var allowedRequestTime = tmp$ret$1.sk(timeToWait);
|
|
2194
|
+
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.x58_1) + ', ') + ('currentTime = ' + System_instance.dk().toString() + ', ') + ('failedRequestCount = ' + $this.y58_1), error);
|
|
2195
|
+
$this.r58_1.w('RandomPoolProvider', VOID, randomException);
|
|
2196
2196
|
return randomException;
|
|
2197
2197
|
}
|
|
2198
2198
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
@@ -2202,7 +2202,7 @@
|
|
|
2202
2202
|
return tmp.a9();
|
|
2203
2203
|
}
|
|
2204
2204
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2205
|
-
var existingCardDeck = $this.
|
|
2205
|
+
var existingCardDeck = $this.w58_1.c2(userData.gameId);
|
|
2206
2206
|
var tmp;
|
|
2207
2207
|
if (!(existingCardDeck == null)) {
|
|
2208
2208
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2218,13 +2218,13 @@
|
|
|
2218
2218
|
return tmp.a9();
|
|
2219
2219
|
}
|
|
2220
2220
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2221
|
-
return withContext($this.
|
|
2221
|
+
return withContext($this.s58_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2222
2222
|
}
|
|
2223
2223
|
function Companion_9() {
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2224
|
+
this.f5a_1 = 100;
|
|
2225
|
+
this.g5a_1 = 3;
|
|
2226
|
+
this.h5a_1 = 3000;
|
|
2227
|
+
this.i5a_1 = 10000;
|
|
2228
2228
|
}
|
|
2229
2229
|
var Companion_instance_11;
|
|
2230
2230
|
function Companion_getInstance_12() {
|
|
@@ -2234,18 +2234,18 @@
|
|
|
2234
2234
|
return uuid4().toString();
|
|
2235
2235
|
}
|
|
2236
2236
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2237
|
-
this.
|
|
2238
|
-
this.
|
|
2239
|
-
this.
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2237
|
+
this.r5a_1 = this$0;
|
|
2238
|
+
this.s5a_1 = $minRoundsCountInPool;
|
|
2239
|
+
this.t5a_1 = $userData;
|
|
2240
|
+
this.u5a_1 = $min;
|
|
2241
|
+
this.v5a_1 = $max;
|
|
2242
|
+
this.w5a_1 = $cardsCount;
|
|
2243
|
+
this.x5a_1 = $signed;
|
|
2244
|
+
this.y5a_1 = $requestDurationWarnMillis;
|
|
2245
2245
|
CoroutineImpl.call(this, resultContinuation);
|
|
2246
2246
|
}
|
|
2247
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2248
|
-
var tmp = this.
|
|
2247
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).e5b = function ($this$withContext, $completion) {
|
|
2248
|
+
var tmp = this.d2d($this$withContext, $completion);
|
|
2249
2249
|
tmp.u8_1 = Unit_instance;
|
|
2250
2250
|
tmp.v8_1 = null;
|
|
2251
2251
|
var tmp_0 = tmp.a9();
|
|
@@ -2254,7 +2254,7 @@
|
|
|
2254
2254
|
return tmp_0;
|
|
2255
2255
|
};
|
|
2256
2256
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).i9 = function (p1, $completion) {
|
|
2257
|
-
return this.
|
|
2257
|
+
return this.e5b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2258
2258
|
};
|
|
2259
2259
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).a9 = function () {
|
|
2260
2260
|
var suspendResult = this.u8_1;
|
|
@@ -2264,30 +2264,30 @@
|
|
|
2264
2264
|
switch (tmp) {
|
|
2265
2265
|
case 0:
|
|
2266
2266
|
this.t8_1 = 10;
|
|
2267
|
-
this.
|
|
2267
|
+
this.b5b_1 = this.r5a_1.u58_1;
|
|
2268
2268
|
var tmp_0 = this;
|
|
2269
|
-
tmp_0.
|
|
2269
|
+
tmp_0.a5b_1 = null;
|
|
2270
2270
|
this.s8_1 = 1;
|
|
2271
|
-
suspendResult = this.
|
|
2271
|
+
suspendResult = this.b5b_1.e2m(this.a5b_1, this);
|
|
2272
2272
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2273
2273
|
return suspendResult;
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
2276
|
continue $sm;
|
|
2277
2277
|
case 1:
|
|
2278
|
-
this.
|
|
2278
|
+
this.c5b_1 = Unit_instance;
|
|
2279
2279
|
this.s8_1 = 2;
|
|
2280
2280
|
continue $sm;
|
|
2281
2281
|
case 2:
|
|
2282
2282
|
this.t8_1 = 9;
|
|
2283
|
-
this.
|
|
2283
|
+
this.d5b_1 = Unit_instance;
|
|
2284
2284
|
this.s8_1 = 3;
|
|
2285
2285
|
continue $sm;
|
|
2286
2286
|
case 3:
|
|
2287
|
-
var randomException = getExceptionIfCooldown(this.
|
|
2287
|
+
var randomException = getExceptionIfCooldown(this.r5a_1);
|
|
2288
2288
|
if (!(randomException == null)) {
|
|
2289
2289
|
var tmp_1 = this;
|
|
2290
|
-
tmp_1.
|
|
2290
|
+
tmp_1.d5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(randomException)));
|
|
2291
2291
|
this.s8_1 = 7;
|
|
2292
2292
|
continue $sm;
|
|
2293
2293
|
} else {
|
|
@@ -2298,7 +2298,7 @@
|
|
|
2298
2298
|
case 4:
|
|
2299
2299
|
this.t8_1 = 6;
|
|
2300
2300
|
this.s8_1 = 5;
|
|
2301
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2301
|
+
suspendResult = getOrLoadGameCardDeckData(this.r5a_1, this.s5a_1, this.t5a_1, this.u5a_1, this.v5a_1, this.w5a_1, this.x5a_1, this.y5a_1, this);
|
|
2302
2302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2303
2303
|
return suspendResult;
|
|
2304
2304
|
}
|
|
@@ -2307,7 +2307,7 @@
|
|
|
2307
2307
|
case 5:
|
|
2308
2308
|
var cardDeckData = suspendResult;
|
|
2309
2309
|
var tmp_2 = this;
|
|
2310
|
-
tmp_2.
|
|
2310
|
+
tmp_2.d5b_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2311
2311
|
this.s8_1 = 7;
|
|
2312
2312
|
continue $sm;
|
|
2313
2313
|
case 6:
|
|
@@ -2316,8 +2316,8 @@
|
|
|
2316
2316
|
if (tmp_3 instanceof Error) {
|
|
2317
2317
|
var error = this.v8_1;
|
|
2318
2318
|
var tmp_4 = this;
|
|
2319
|
-
var exception = mapToRandomExceptionIfError(this.
|
|
2320
|
-
tmp_4.
|
|
2319
|
+
var exception = mapToRandomExceptionIfError(this.r5a_1, error);
|
|
2320
|
+
tmp_4.d5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2321
2321
|
this.s8_1 = 7;
|
|
2322
2322
|
continue $sm;
|
|
2323
2323
|
} else {
|
|
@@ -2325,19 +2325,19 @@
|
|
|
2325
2325
|
}
|
|
2326
2326
|
|
|
2327
2327
|
case 7:
|
|
2328
|
-
this.
|
|
2328
|
+
this.c5b_1 = this.d5b_1;
|
|
2329
2329
|
this.t8_1 = 10;
|
|
2330
2330
|
this.s8_1 = 8;
|
|
2331
2331
|
continue $sm;
|
|
2332
2332
|
case 8:
|
|
2333
|
-
var tmp_5 = this.
|
|
2333
|
+
var tmp_5 = this.c5b_1;
|
|
2334
2334
|
this.t8_1 = 10;
|
|
2335
|
-
this.
|
|
2335
|
+
this.b5b_1.p2l(this.a5b_1);
|
|
2336
2336
|
return tmp_5;
|
|
2337
2337
|
case 9:
|
|
2338
2338
|
this.t8_1 = 10;
|
|
2339
2339
|
var t = this.v8_1;
|
|
2340
|
-
this.
|
|
2340
|
+
this.b5b_1.p2l(this.a5b_1);
|
|
2341
2341
|
throw t;
|
|
2342
2342
|
case 10:
|
|
2343
2343
|
throw this.v8_1;
|
|
@@ -2353,30 +2353,30 @@
|
|
|
2353
2353
|
}
|
|
2354
2354
|
while (true);
|
|
2355
2355
|
};
|
|
2356
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2357
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2358
|
-
i.
|
|
2356
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).d2d = function ($this$withContext, completion) {
|
|
2357
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.r5a_1, this.s5a_1, this.t5a_1, this.u5a_1, this.v5a_1, this.w5a_1, this.x5a_1, this.y5a_1, completion);
|
|
2358
|
+
i.z5a_1 = $this$withContext;
|
|
2359
2359
|
return i;
|
|
2360
2360
|
};
|
|
2361
2361
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2362
2362
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2363
2363
|
var l = function ($this$withContext, $completion) {
|
|
2364
|
-
return i.
|
|
2364
|
+
return i.e5b($this$withContext, $completion);
|
|
2365
2365
|
};
|
|
2366
2366
|
l.$arity = 1;
|
|
2367
2367
|
return l;
|
|
2368
2368
|
}
|
|
2369
2369
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2373
|
-
this.
|
|
2374
|
-
this.
|
|
2375
|
-
this.
|
|
2370
|
+
this.n5b_1 = this$0;
|
|
2371
|
+
this.o5b_1 = $min;
|
|
2372
|
+
this.p5b_1 = $max;
|
|
2373
|
+
this.q5b_1 = $cardsCount;
|
|
2374
|
+
this.r5b_1 = $signed;
|
|
2375
|
+
this.s5b_1 = $requestDurationWarnMillis;
|
|
2376
2376
|
CoroutineImpl.call(this, resultContinuation);
|
|
2377
2377
|
}
|
|
2378
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2379
|
-
var tmp = this.
|
|
2378
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).y5b = function ($this$withContext, $completion) {
|
|
2379
|
+
var tmp = this.d2d($this$withContext, $completion);
|
|
2380
2380
|
tmp.u8_1 = Unit_instance;
|
|
2381
2381
|
tmp.v8_1 = null;
|
|
2382
2382
|
var tmp_0 = tmp.a9();
|
|
@@ -2385,7 +2385,7 @@
|
|
|
2385
2385
|
return tmp_0;
|
|
2386
2386
|
};
|
|
2387
2387
|
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).i9 = function (p1, $completion) {
|
|
2388
|
-
return this.
|
|
2388
|
+
return this.y5b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2389
2389
|
};
|
|
2390
2390
|
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).a9 = function () {
|
|
2391
2391
|
var suspendResult = this.u8_1;
|
|
@@ -2395,30 +2395,30 @@
|
|
|
2395
2395
|
switch (tmp) {
|
|
2396
2396
|
case 0:
|
|
2397
2397
|
this.t8_1 = 10;
|
|
2398
|
-
this.
|
|
2398
|
+
this.v5b_1 = this.n5b_1.u58_1;
|
|
2399
2399
|
var tmp_0 = this;
|
|
2400
|
-
tmp_0.
|
|
2400
|
+
tmp_0.u5b_1 = null;
|
|
2401
2401
|
this.s8_1 = 1;
|
|
2402
|
-
suspendResult = this.
|
|
2402
|
+
suspendResult = this.v5b_1.e2m(this.u5b_1, this);
|
|
2403
2403
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2404
2404
|
return suspendResult;
|
|
2405
2405
|
}
|
|
2406
2406
|
|
|
2407
2407
|
continue $sm;
|
|
2408
2408
|
case 1:
|
|
2409
|
-
this.
|
|
2409
|
+
this.w5b_1 = Unit_instance;
|
|
2410
2410
|
this.s8_1 = 2;
|
|
2411
2411
|
continue $sm;
|
|
2412
2412
|
case 2:
|
|
2413
2413
|
this.t8_1 = 9;
|
|
2414
|
-
this.
|
|
2414
|
+
this.x5b_1 = Unit_instance;
|
|
2415
2415
|
this.s8_1 = 3;
|
|
2416
2416
|
continue $sm;
|
|
2417
2417
|
case 3:
|
|
2418
|
-
var randomException = getExceptionIfCooldown(this.
|
|
2418
|
+
var randomException = getExceptionIfCooldown(this.n5b_1);
|
|
2419
2419
|
if (!(randomException == null)) {
|
|
2420
2420
|
var tmp_1 = this;
|
|
2421
|
-
tmp_1.
|
|
2421
|
+
tmp_1.x5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(randomException)));
|
|
2422
2422
|
this.s8_1 = 7;
|
|
2423
2423
|
continue $sm;
|
|
2424
2424
|
} else {
|
|
@@ -2429,7 +2429,7 @@
|
|
|
2429
2429
|
case 4:
|
|
2430
2430
|
this.t8_1 = 6;
|
|
2431
2431
|
this.s8_1 = 5;
|
|
2432
|
-
suspendResult = requestNewPool(this.
|
|
2432
|
+
suspendResult = requestNewPool(this.n5b_1, this.o5b_1, this.p5b_1, this.q5b_1, this.r5b_1, this.s5b_1, this);
|
|
2433
2433
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2434
2434
|
return suspendResult;
|
|
2435
2435
|
}
|
|
@@ -2437,13 +2437,13 @@
|
|
|
2437
2437
|
continue $sm;
|
|
2438
2438
|
case 5:
|
|
2439
2439
|
var randomPoolValue = suspendResult;
|
|
2440
|
-
var tmp0 = this.
|
|
2441
|
-
var key = randomPoolValue.
|
|
2440
|
+
var tmp0 = this.n5b_1.v58_1;
|
|
2441
|
+
var key = randomPoolValue.z5b_1.i54_1;
|
|
2442
2442
|
tmp0.f2(key, randomPoolValue);
|
|
2443
|
-
this.
|
|
2444
|
-
this.
|
|
2443
|
+
this.n5b_1.y58_1 = 0;
|
|
2444
|
+
this.n5b_1.x58_1 = null;
|
|
2445
2445
|
var tmp_2 = this;
|
|
2446
|
-
tmp_2.
|
|
2446
|
+
tmp_2.x5b_1 = new Result(_Result___init__impl__xyqfz8(Unit_instance));
|
|
2447
2447
|
this.s8_1 = 7;
|
|
2448
2448
|
continue $sm;
|
|
2449
2449
|
case 6:
|
|
@@ -2452,8 +2452,8 @@
|
|
|
2452
2452
|
if (tmp_3 instanceof Error) {
|
|
2453
2453
|
var error = this.v8_1;
|
|
2454
2454
|
var tmp_4 = this;
|
|
2455
|
-
var exception = mapToRandomExceptionIfError(this.
|
|
2456
|
-
tmp_4.
|
|
2455
|
+
var exception = mapToRandomExceptionIfError(this.n5b_1, error);
|
|
2456
|
+
tmp_4.x5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2457
2457
|
this.s8_1 = 7;
|
|
2458
2458
|
continue $sm;
|
|
2459
2459
|
} else {
|
|
@@ -2461,19 +2461,19 @@
|
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
2463
2463
|
case 7:
|
|
2464
|
-
this.
|
|
2464
|
+
this.w5b_1 = this.x5b_1;
|
|
2465
2465
|
this.t8_1 = 10;
|
|
2466
2466
|
this.s8_1 = 8;
|
|
2467
2467
|
continue $sm;
|
|
2468
2468
|
case 8:
|
|
2469
|
-
var tmp_5 = this.
|
|
2469
|
+
var tmp_5 = this.w5b_1;
|
|
2470
2470
|
this.t8_1 = 10;
|
|
2471
|
-
this.
|
|
2471
|
+
this.v5b_1.p2l(this.u5b_1);
|
|
2472
2472
|
return tmp_5;
|
|
2473
2473
|
case 9:
|
|
2474
2474
|
this.t8_1 = 10;
|
|
2475
2475
|
var t = this.v8_1;
|
|
2476
|
-
this.
|
|
2476
|
+
this.v5b_1.p2l(this.u5b_1);
|
|
2477
2477
|
throw t;
|
|
2478
2478
|
case 10:
|
|
2479
2479
|
throw this.v8_1;
|
|
@@ -2489,36 +2489,36 @@
|
|
|
2489
2489
|
}
|
|
2490
2490
|
while (true);
|
|
2491
2491
|
};
|
|
2492
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2493
|
-
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.
|
|
2494
|
-
i.
|
|
2492
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).d2d = function ($this$withContext, completion) {
|
|
2493
|
+
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.n5b_1, this.o5b_1, this.p5b_1, this.q5b_1, this.r5b_1, this.s5b_1, completion);
|
|
2494
|
+
i.t5b_1 = $this$withContext;
|
|
2495
2495
|
return i;
|
|
2496
2496
|
};
|
|
2497
2497
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2498
2498
|
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2499
2499
|
var l = function ($this$withContext, $completion) {
|
|
2500
|
-
return i.
|
|
2500
|
+
return i.y5b($this$withContext, $completion);
|
|
2501
2501
|
};
|
|
2502
2502
|
l.$arity = 1;
|
|
2503
2503
|
return l;
|
|
2504
2504
|
}
|
|
2505
2505
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2506
|
-
this.
|
|
2507
|
-
this.
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2506
|
+
this.l5c_1 = this$0;
|
|
2507
|
+
this.m5c_1 = $min;
|
|
2508
|
+
this.n5c_1 = $max;
|
|
2509
|
+
this.o5c_1 = $cardsCount;
|
|
2510
|
+
this.p5c_1 = $signed;
|
|
2511
|
+
this.q5c_1 = $requestDurationWarnMillis;
|
|
2512
2512
|
CoroutineImpl.call(this, resultContinuation);
|
|
2513
2513
|
}
|
|
2514
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2515
|
-
var tmp = this.
|
|
2514
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).t5c = function ($this$withContext, $completion) {
|
|
2515
|
+
var tmp = this.d2d($this$withContext, $completion);
|
|
2516
2516
|
tmp.u8_1 = Unit_instance;
|
|
2517
2517
|
tmp.v8_1 = null;
|
|
2518
2518
|
return tmp.a9();
|
|
2519
2519
|
};
|
|
2520
2520
|
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).i9 = function (p1, $completion) {
|
|
2521
|
-
return this.
|
|
2521
|
+
return this.t5c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2522
2522
|
};
|
|
2523
2523
|
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).a9 = function () {
|
|
2524
2524
|
var suspendResult = this.u8_1;
|
|
@@ -2528,9 +2528,9 @@
|
|
|
2528
2528
|
switch (tmp) {
|
|
2529
2529
|
case 0:
|
|
2530
2530
|
this.t8_1 = 2;
|
|
2531
|
-
this.
|
|
2531
|
+
this.s5c_1 = System_instance.dk();
|
|
2532
2532
|
this.s8_1 = 1;
|
|
2533
|
-
suspendResult = this.
|
|
2533
|
+
suspendResult = this.l5c_1.q58_1.b57(this.m5c_1, this.n5c_1, this.l5c_1.p58_1.poolSize, this.o5c_1, new CardDecksRequestUserData(this.l5c_1.t58_1(), this.l5c_1.p58_1.poolSize), this.p5c_1, this);
|
|
2534
2534
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2535
2535
|
return suspendResult;
|
|
2536
2536
|
}
|
|
@@ -2538,15 +2538,15 @@
|
|
|
2538
2538
|
continue $sm;
|
|
2539
2539
|
case 1:
|
|
2540
2540
|
var result = suspendResult;
|
|
2541
|
-
var requestEndTime = System_instance.
|
|
2542
|
-
var requestDuration = requestEndTime.
|
|
2541
|
+
var requestEndTime = System_instance.dk();
|
|
2542
|
+
var requestDuration = requestEndTime.uk(this.s5c_1);
|
|
2543
2543
|
Companion_getInstance_0();
|
|
2544
|
-
var this_0 = this.
|
|
2544
|
+
var this_0 = this.q5c_1;
|
|
2545
2545
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2546
2546
|
var tmp_0 = 'actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ';
|
|
2547
2547
|
Companion_getInstance_0();
|
|
2548
|
-
var this_1 = this.
|
|
2549
|
-
this.
|
|
2548
|
+
var this_1 = this.q5c_1;
|
|
2549
|
+
this.l5c_1.r58_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2550
2550
|
}
|
|
2551
2551
|
|
|
2552
2552
|
return new RandomPoolValue(result);
|
|
@@ -2564,29 +2564,29 @@
|
|
|
2564
2564
|
}
|
|
2565
2565
|
while (true);
|
|
2566
2566
|
};
|
|
2567
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2568
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2569
|
-
i.
|
|
2567
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).d2d = function ($this$withContext, completion) {
|
|
2568
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.l5c_1, this.m5c_1, this.n5c_1, this.o5c_1, this.p5c_1, this.q5c_1, completion);
|
|
2569
|
+
i.r5c_1 = $this$withContext;
|
|
2570
2570
|
return i;
|
|
2571
2571
|
};
|
|
2572
2572
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2573
2573
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2574
2574
|
var l = function ($this$withContext, $completion) {
|
|
2575
|
-
return i.
|
|
2575
|
+
return i.t5c($this$withContext, $completion);
|
|
2576
2576
|
};
|
|
2577
2577
|
l.$arity = 1;
|
|
2578
2578
|
return l;
|
|
2579
2579
|
}
|
|
2580
2580
|
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2581
2581
|
CoroutineImpl.call(this, resultContinuation);
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2585
|
-
this.
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2589
|
-
this.
|
|
2582
|
+
this.h59_1 = _this__u8e3s4;
|
|
2583
|
+
this.i59_1 = minRoundsCountInPool;
|
|
2584
|
+
this.j59_1 = userData;
|
|
2585
|
+
this.k59_1 = min;
|
|
2586
|
+
this.l59_1 = max;
|
|
2587
|
+
this.m59_1 = cardsCount;
|
|
2588
|
+
this.n59_1 = signed;
|
|
2589
|
+
this.o59_1 = requestDurationWarnMillis;
|
|
2590
2590
|
}
|
|
2591
2591
|
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).a9 = function () {
|
|
2592
2592
|
var suspendResult = this.u8_1;
|
|
@@ -2596,9 +2596,9 @@
|
|
|
2596
2596
|
switch (tmp) {
|
|
2597
2597
|
case 0:
|
|
2598
2598
|
this.t8_1 = 2;
|
|
2599
|
-
var tmp0_gameId = this.
|
|
2599
|
+
var tmp0_gameId = this.j59_1.gameId;
|
|
2600
2600
|
this.s8_1 = 1;
|
|
2601
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2601
|
+
suspendResult = getPreparedOrRequestPool(this.h59_1, tmp0_gameId, this.k59_1, this.l59_1, this.i59_1, this.m59_1, this.n59_1, this.o59_1, this);
|
|
2602
2602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2603
2603
|
return suspendResult;
|
|
2604
2604
|
}
|
|
@@ -2606,15 +2606,15 @@
|
|
|
2606
2606
|
continue $sm;
|
|
2607
2607
|
case 1:
|
|
2608
2608
|
var randomPoolValue = suspendResult;
|
|
2609
|
-
var tmp0 = this.
|
|
2610
|
-
var key = randomPoolValue.
|
|
2609
|
+
var tmp0 = this.h59_1.v58_1;
|
|
2610
|
+
var key = randomPoolValue.z5b_1.i54_1;
|
|
2611
2611
|
tmp0.f2(key, randomPoolValue);
|
|
2612
|
-
var cardDeckData = randomPoolValue.
|
|
2613
|
-
var tmp1_poolId = randomPoolValue.
|
|
2614
|
-
var tmp2_signature = randomPoolValue.
|
|
2615
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2616
|
-
var tmp0_0 = this.
|
|
2617
|
-
var key_0 = this.
|
|
2612
|
+
var cardDeckData = randomPoolValue.u5c(this.j59_1.gameId);
|
|
2613
|
+
var tmp1_poolId = randomPoolValue.z5b_1.i54_1;
|
|
2614
|
+
var tmp2_signature = randomPoolValue.z5b_1.j54_1;
|
|
2615
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.h59_1, tmp1_poolId, tmp2_signature, cardDeckData, this.j59_1);
|
|
2616
|
+
var tmp0_0 = this.h59_1.w58_1;
|
|
2617
|
+
var key_0 = this.j59_1.gameId;
|
|
2618
2618
|
tmp0_0.f2(key_0, cardDecksRecord);
|
|
2619
2619
|
return cardDeckData;
|
|
2620
2620
|
case 2:
|
|
@@ -2633,14 +2633,14 @@
|
|
|
2633
2633
|
};
|
|
2634
2634
|
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2635
2635
|
CoroutineImpl.call(this, resultContinuation);
|
|
2636
|
-
this.
|
|
2637
|
-
this.
|
|
2638
|
-
this.
|
|
2639
|
-
this.
|
|
2640
|
-
this.
|
|
2641
|
-
this.
|
|
2642
|
-
this.
|
|
2643
|
-
this.
|
|
2636
|
+
this.x59_1 = _this__u8e3s4;
|
|
2637
|
+
this.y59_1 = gameId;
|
|
2638
|
+
this.z59_1 = min;
|
|
2639
|
+
this.a5a_1 = max;
|
|
2640
|
+
this.b5a_1 = minRoundsCount;
|
|
2641
|
+
this.c5a_1 = cardsCount;
|
|
2642
|
+
this.d5a_1 = signed;
|
|
2643
|
+
this.e5a_1 = requestDurationWarnMillis;
|
|
2644
2644
|
}
|
|
2645
2645
|
protoOf($getPreparedOrRequestPoolCOROUTINE$).a9 = function () {
|
|
2646
2646
|
var suspendResult = this.u8_1;
|
|
@@ -2650,13 +2650,13 @@
|
|
|
2650
2650
|
switch (tmp) {
|
|
2651
2651
|
case 0:
|
|
2652
2652
|
this.t8_1 = 2;
|
|
2653
|
-
var tmp0 = this.
|
|
2653
|
+
var tmp0 = this.x59_1.v58_1;
|
|
2654
2654
|
var destination = LinkedHashMap_init_$Create$();
|
|
2655
2655
|
var _iterator__ex2g4s = tmp0.v().l();
|
|
2656
2656
|
while (_iterator__ex2g4s.m()) {
|
|
2657
2657
|
var element = _iterator__ex2g4s.n();
|
|
2658
|
-
var tmp0_0 = element.x().
|
|
2659
|
-
var key = this.
|
|
2658
|
+
var tmp0_0 = element.x().a5c_1;
|
|
2659
|
+
var key = this.y59_1;
|
|
2660
2660
|
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).a2(key)) {
|
|
2661
2661
|
destination.f2(element.w(), element.x());
|
|
2662
2662
|
}
|
|
@@ -2664,26 +2664,26 @@
|
|
|
2664
2664
|
|
|
2665
2665
|
var usedResultEntry = firstOrNull(destination.v());
|
|
2666
2666
|
if (!(usedResultEntry == null)) {
|
|
2667
|
-
return usedResultEntry.x().
|
|
2667
|
+
return usedResultEntry.x().v5c(this.y59_1);
|
|
2668
2668
|
}
|
|
2669
2669
|
|
|
2670
|
-
var tmp0_1 = this.
|
|
2670
|
+
var tmp0_1 = this.x59_1.v58_1;
|
|
2671
2671
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2672
2672
|
var _iterator__ex2g4s_0 = tmp0_1.v().l();
|
|
2673
2673
|
while (_iterator__ex2g4s_0.m()) {
|
|
2674
2674
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
2675
|
-
if (element_0.x().
|
|
2675
|
+
if (element_0.x().w5c(this.b5a_1)) {
|
|
2676
2676
|
destination_0.f2(element_0.w(), element_0.x());
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
|
|
2680
2680
|
var availableResultEntry = firstOrNull(destination_0.v());
|
|
2681
2681
|
if (!(availableResultEntry == null)) {
|
|
2682
|
-
return availableResultEntry.x().
|
|
2682
|
+
return availableResultEntry.x().x5c(this.y59_1, this.b5a_1, this.x59_1.p58_1.thresholdForUsedPool);
|
|
2683
2683
|
}
|
|
2684
2684
|
|
|
2685
2685
|
this.s8_1 = 1;
|
|
2686
|
-
suspendResult = requestNewPool(this.
|
|
2686
|
+
suspendResult = requestNewPool(this.x59_1, this.z59_1, this.a5a_1, this.c5a_1, this.d5a_1, this.e5a_1, this);
|
|
2687
2687
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2688
2688
|
return suspendResult;
|
|
2689
2689
|
}
|
|
@@ -2691,7 +2691,7 @@
|
|
|
2691
2691
|
continue $sm;
|
|
2692
2692
|
case 1:
|
|
2693
2693
|
var cardDecks = suspendResult;
|
|
2694
|
-
return cardDecks.
|
|
2694
|
+
return cardDecks.x5c(this.y59_1, this.b5a_1, this.x59_1.p58_1.thresholdForUsedPool);
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
throw this.v8_1;
|
|
2697
2697
|
}
|
|
@@ -2707,7 +2707,7 @@
|
|
|
2707
2707
|
while (true);
|
|
2708
2708
|
};
|
|
2709
2709
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2710
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2710
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().b21_1 : dispatcher;
|
|
2711
2711
|
var tmp;
|
|
2712
2712
|
if (idsProvider === VOID) {
|
|
2713
2713
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2715,137 +2715,137 @@
|
|
|
2715
2715
|
tmp = idsProvider;
|
|
2716
2716
|
}
|
|
2717
2717
|
idsProvider = tmp;
|
|
2718
|
-
this.
|
|
2719
|
-
this.
|
|
2720
|
-
this.
|
|
2721
|
-
this.
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2718
|
+
this.p58_1 = params;
|
|
2719
|
+
this.q58_1 = randomOrgApiService;
|
|
2720
|
+
this.r58_1 = logger;
|
|
2721
|
+
this.s58_1 = dispatcher;
|
|
2722
|
+
this.t58_1 = idsProvider;
|
|
2723
|
+
this.u58_1 = Mutex();
|
|
2724
2724
|
var tmp_0 = this;
|
|
2725
2725
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2726
|
-
tmp_0.
|
|
2726
|
+
tmp_0.v58_1 = LinkedHashMap_init_$Create$();
|
|
2727
2727
|
var tmp_1 = this;
|
|
2728
2728
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2729
|
-
tmp_1.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2729
|
+
tmp_1.w58_1 = LinkedHashMap_init_$Create$();
|
|
2730
|
+
this.x58_1 = null;
|
|
2731
|
+
this.y58_1 = 0;
|
|
2732
2732
|
}
|
|
2733
|
-
protoOf(RandomPoolProviderImpl).
|
|
2734
|
-
var tmp = withContext(this.
|
|
2733
|
+
protoOf(RandomPoolProviderImpl).l58 = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2734
|
+
var tmp = withContext(this.s58_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2735
2735
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2736
2736
|
return tmp;
|
|
2737
2737
|
return tmp;
|
|
2738
2738
|
};
|
|
2739
|
-
protoOf(RandomPoolProviderImpl).
|
|
2740
|
-
var tmp = withContext(this.
|
|
2739
|
+
protoOf(RandomPoolProviderImpl).n58 = function (min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2740
|
+
var tmp = withContext(this.s58_1, RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2741
2741
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2742
2742
|
return tmp;
|
|
2743
2743
|
return tmp;
|
|
2744
2744
|
};
|
|
2745
|
-
protoOf(RandomPoolProviderImpl).
|
|
2746
|
-
return this.
|
|
2745
|
+
protoOf(RandomPoolProviderImpl).y5c = function (gameId) {
|
|
2746
|
+
return this.w58_1.c2(gameId);
|
|
2747
2747
|
};
|
|
2748
2748
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2749
|
-
return this.
|
|
2749
|
+
return this.y5c(gameId);
|
|
2750
2750
|
};
|
|
2751
|
-
protoOf(RandomPoolProviderImpl).
|
|
2752
|
-
return this.
|
|
2751
|
+
protoOf(RandomPoolProviderImpl).z5c = function (id) {
|
|
2752
|
+
return this.v58_1.c2(id);
|
|
2753
2753
|
};
|
|
2754
2754
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2755
|
-
return this.
|
|
2755
|
+
return this.z5c(id);
|
|
2756
2756
|
};
|
|
2757
|
-
protoOf(RandomPoolProviderImpl).
|
|
2758
|
-
return this.
|
|
2757
|
+
protoOf(RandomPoolProviderImpl).a5d = function () {
|
|
2758
|
+
return this.v58_1.o();
|
|
2759
2759
|
};
|
|
2760
2760
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2761
|
-
return this.
|
|
2761
|
+
return this.a5d();
|
|
2762
2762
|
};
|
|
2763
|
-
protoOf(RandomPoolProviderImpl).
|
|
2764
|
-
var gameCardDecksRecord = this.
|
|
2763
|
+
protoOf(RandomPoolProviderImpl).o58 = function (gameId) {
|
|
2764
|
+
var gameCardDecksRecord = this.w58_1.c2(gameId);
|
|
2765
2765
|
if (!(gameCardDecksRecord == null)) {
|
|
2766
|
-
var randomPoolValue = this.
|
|
2766
|
+
var randomPoolValue = this.v58_1.c2(gameCardDecksRecord.poolId);
|
|
2767
2767
|
if (!(randomPoolValue == null)) {
|
|
2768
2768
|
// Inline function 'kotlin.apply' call
|
|
2769
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2769
|
+
var this_0 = toMutableMap(randomPoolValue.a5c_1);
|
|
2770
2770
|
this_0.g2(gameId);
|
|
2771
|
-
var newPoolValue = randomPoolValue.
|
|
2772
|
-
if (newPoolValue.
|
|
2773
|
-
this.
|
|
2771
|
+
var newPoolValue = randomPoolValue.b5d(VOID, toMap(this_0));
|
|
2772
|
+
if (newPoolValue.a5c_1.r()) {
|
|
2773
|
+
this.v58_1.g2(gameCardDecksRecord.poolId);
|
|
2774
2774
|
} else {
|
|
2775
|
-
var tmp0 = this.
|
|
2775
|
+
var tmp0 = this.v58_1;
|
|
2776
2776
|
// Inline function 'kotlin.collections.set' call
|
|
2777
2777
|
var key = gameCardDecksRecord.poolId;
|
|
2778
2778
|
tmp0.f2(key, newPoolValue);
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
|
-
this.
|
|
2782
|
+
this.w58_1.g2(gameId);
|
|
2783
2783
|
};
|
|
2784
2784
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2785
|
-
return $this.
|
|
2785
|
+
return $this.z5b_1.g54_1.o();
|
|
2786
2786
|
}
|
|
2787
2787
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2788
2788
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2789
2789
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2790
2790
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2791
|
-
this.
|
|
2792
|
-
this.
|
|
2793
|
-
this.
|
|
2794
|
-
this.
|
|
2791
|
+
this.z5b_1 = randomResult;
|
|
2792
|
+
this.a5c_1 = usedByGames;
|
|
2793
|
+
this.b5c_1 = reservedCardDecks;
|
|
2794
|
+
this.c5c_1 = isUsed;
|
|
2795
2795
|
}
|
|
2796
|
-
protoOf(RandomPoolValue).
|
|
2797
|
-
if (this.
|
|
2796
|
+
protoOf(RandomPoolValue).w5c = function (minRoundsCount) {
|
|
2797
|
+
if (this.c5c_1) {
|
|
2798
2798
|
return false;
|
|
2799
2799
|
}
|
|
2800
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2800
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.b5c_1 | 0;
|
|
2801
2801
|
return availableCount >= minRoundsCount;
|
|
2802
2802
|
};
|
|
2803
|
-
protoOf(RandomPoolValue).
|
|
2804
|
-
var previousReservedCardDeckIndex = this.
|
|
2803
|
+
protoOf(RandomPoolValue).x5c = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2804
|
+
var previousReservedCardDeckIndex = this.b5c_1;
|
|
2805
2805
|
// Inline function 'kotlin.apply' call
|
|
2806
|
-
var this_0 = toMutableMap(this.
|
|
2806
|
+
var this_0 = toMutableMap(this.a5c_1);
|
|
2807
2807
|
this_0.f2(gameId, previousReservedCardDeckIndex);
|
|
2808
2808
|
var newNewUsedBy = toMap(this_0);
|
|
2809
2809
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2810
|
-
return this.
|
|
2810
|
+
return this.b5d(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2811
2811
|
};
|
|
2812
|
-
protoOf(RandomPoolValue).
|
|
2813
|
-
var currentCardDeckIndex = getValue(this.
|
|
2812
|
+
protoOf(RandomPoolValue).v5c = function (gameId) {
|
|
2813
|
+
var currentCardDeckIndex = getValue(this.a5c_1, gameId);
|
|
2814
2814
|
var tmp;
|
|
2815
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2815
|
+
if (currentCardDeckIndex === get_lastIndex(this.z5b_1.g54_1)) {
|
|
2816
2816
|
tmp = 0;
|
|
2817
2817
|
} else {
|
|
2818
2818
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2819
2819
|
}
|
|
2820
2820
|
var newCardDeckIndex = tmp;
|
|
2821
2821
|
// Inline function 'kotlin.apply' call
|
|
2822
|
-
var this_0 = toMutableMap(this.
|
|
2822
|
+
var this_0 = toMutableMap(this.a5c_1);
|
|
2823
2823
|
this_0.f2(gameId, newCardDeckIndex);
|
|
2824
2824
|
var newNewUsedBy = toMap(this_0);
|
|
2825
|
-
return this.
|
|
2825
|
+
return this.b5d(VOID, newNewUsedBy);
|
|
2826
2826
|
};
|
|
2827
|
-
protoOf(RandomPoolValue).
|
|
2828
|
-
var index = getValue(this.
|
|
2829
|
-
return new GameCardDeckData(index, this.
|
|
2827
|
+
protoOf(RandomPoolValue).u5c = function (gameId) {
|
|
2828
|
+
var index = getValue(this.a5c_1, gameId);
|
|
2829
|
+
return new GameCardDeckData(index, this.z5b_1.g54_1.p(index));
|
|
2830
2830
|
};
|
|
2831
|
-
protoOf(RandomPoolValue).
|
|
2831
|
+
protoOf(RandomPoolValue).c5d = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2832
2832
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2833
2833
|
};
|
|
2834
|
-
protoOf(RandomPoolValue).
|
|
2835
|
-
randomResult = randomResult === VOID ? this.
|
|
2836
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2837
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2838
|
-
isUsed = isUsed === VOID ? this.
|
|
2839
|
-
return $super === VOID ? this.
|
|
2834
|
+
protoOf(RandomPoolValue).b5d = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2835
|
+
randomResult = randomResult === VOID ? this.z5b_1 : randomResult;
|
|
2836
|
+
usedByGames = usedByGames === VOID ? this.a5c_1 : usedByGames;
|
|
2837
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.b5c_1 : reservedCardDecks;
|
|
2838
|
+
isUsed = isUsed === VOID ? this.c5c_1 : isUsed;
|
|
2839
|
+
return $super === VOID ? this.c5d(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.c5d.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2840
2840
|
};
|
|
2841
2841
|
protoOf(RandomPoolValue).toString = function () {
|
|
2842
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2842
|
+
return 'RandomPoolValue(randomResult=' + this.z5b_1.toString() + ', usedByGames=' + toString(this.a5c_1) + ', reservedCardDecks=' + this.b5c_1 + ', isUsed=' + this.c5c_1 + ')';
|
|
2843
2843
|
};
|
|
2844
2844
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2845
|
-
var result = this.
|
|
2846
|
-
result = imul(result, 31) + hashCode(this.
|
|
2847
|
-
result = imul(result, 31) + this.
|
|
2848
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2845
|
+
var result = this.z5b_1.hashCode();
|
|
2846
|
+
result = imul(result, 31) + hashCode(this.a5c_1) | 0;
|
|
2847
|
+
result = imul(result, 31) + this.b5c_1 | 0;
|
|
2848
|
+
result = imul(result, 31) + getBooleanHashCode(this.c5c_1) | 0;
|
|
2849
2849
|
return result;
|
|
2850
2850
|
};
|
|
2851
2851
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2854,34 +2854,34 @@
|
|
|
2854
2854
|
if (!(other instanceof RandomPoolValue))
|
|
2855
2855
|
return false;
|
|
2856
2856
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2857
|
-
if (!this.
|
|
2858
|
-
return false;
|
|
2859
|
-
if (!equals(this.z5b_1, tmp0_other_with_cast.z5b_1))
|
|
2857
|
+
if (!this.z5b_1.equals(tmp0_other_with_cast.z5b_1))
|
|
2860
2858
|
return false;
|
|
2861
|
-
if (!(this.a5c_1
|
|
2859
|
+
if (!equals(this.a5c_1, tmp0_other_with_cast.a5c_1))
|
|
2862
2860
|
return false;
|
|
2863
2861
|
if (!(this.b5c_1 === tmp0_other_with_cast.b5c_1))
|
|
2864
2862
|
return false;
|
|
2863
|
+
if (!(this.c5c_1 === tmp0_other_with_cast.c5c_1))
|
|
2864
|
+
return false;
|
|
2865
2865
|
return true;
|
|
2866
2866
|
};
|
|
2867
2867
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2868
2868
|
return function ($this$defaultRequest) {
|
|
2869
2869
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2870
|
-
$this$defaultRequest.
|
|
2870
|
+
$this$defaultRequest.y40($url);
|
|
2871
2871
|
return Unit_instance;
|
|
2872
2872
|
};
|
|
2873
2873
|
}
|
|
2874
2874
|
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2875
|
-
this.
|
|
2875
|
+
this.d5d_1 = $externalLogger;
|
|
2876
2876
|
}
|
|
2877
|
-
protoOf(ApiCommonConfigs$setupLogging$2$1).
|
|
2878
|
-
this.
|
|
2877
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).r4o = function (message) {
|
|
2878
|
+
this.d5d_1(message);
|
|
2879
2879
|
};
|
|
2880
2880
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2881
2881
|
return function ($this$install) {
|
|
2882
|
-
$this$install.
|
|
2883
|
-
$this$install.
|
|
2884
|
-
$this$install.
|
|
2882
|
+
$this$install.h4q(get_DEFAULT(Companion_instance_0));
|
|
2883
|
+
$this$install.g4q_1 = $config.g5d_1;
|
|
2884
|
+
$this$install.h4q(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2885
2885
|
return Unit_instance;
|
|
2886
2886
|
};
|
|
2887
2887
|
}
|
|
@@ -2893,32 +2893,32 @@
|
|
|
2893
2893
|
}
|
|
2894
2894
|
function ApiCommonConfigs() {
|
|
2895
2895
|
}
|
|
2896
|
-
protoOf(ApiCommonConfigs).
|
|
2897
|
-
_this__u8e3s4.
|
|
2898
|
-
this.
|
|
2899
|
-
this.
|
|
2900
|
-
this.
|
|
2896
|
+
protoOf(ApiCommonConfigs).i5d = function (_this__u8e3s4, config, externalLogger) {
|
|
2897
|
+
_this__u8e3s4.y3s_1 = true;
|
|
2898
|
+
this.j5d(_this__u8e3s4, config.e5d_1);
|
|
2899
|
+
this.k5d(_this__u8e3s4, config.h5d_1);
|
|
2900
|
+
this.l5d(_this__u8e3s4, config, externalLogger);
|
|
2901
2901
|
};
|
|
2902
|
-
protoOf(ApiCommonConfigs).
|
|
2902
|
+
protoOf(ApiCommonConfigs).j5d = function (_this__u8e3s4, url) {
|
|
2903
2903
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2904
2904
|
};
|
|
2905
|
-
protoOf(ApiCommonConfigs).
|
|
2905
|
+
protoOf(ApiCommonConfigs).l5d = function (_this__u8e3s4, config, externalLogger) {
|
|
2906
2906
|
var tmp = Companion_getInstance_1();
|
|
2907
|
-
_this__u8e3s4.
|
|
2907
|
+
_this__u8e3s4.t3t(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2908
2908
|
};
|
|
2909
|
-
protoOf(ApiCommonConfigs).
|
|
2909
|
+
protoOf(ApiCommonConfigs).k5d = function (_this__u8e3s4, json) {
|
|
2910
2910
|
var tmp = Plugin_getInstance();
|
|
2911
|
-
_this__u8e3s4.
|
|
2911
|
+
_this__u8e3s4.t3t(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2912
2912
|
};
|
|
2913
2913
|
var ApiCommonConfigs_instance;
|
|
2914
2914
|
function ApiCommonConfigs_getInstance() {
|
|
2915
2915
|
return ApiCommonConfigs_instance;
|
|
2916
2916
|
}
|
|
2917
2917
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2918
|
+
$this$Json.i1a_1 = true;
|
|
2918
2919
|
$this$Json.h1a_1 = true;
|
|
2919
2920
|
$this$Json.g1a_1 = true;
|
|
2920
|
-
$this$Json.f1a_1 =
|
|
2921
|
-
$this$Json.e1a_1 = false;
|
|
2921
|
+
$this$Json.f1a_1 = false;
|
|
2922
2922
|
return Unit_instance;
|
|
2923
2923
|
}
|
|
2924
2924
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2931,19 +2931,19 @@
|
|
|
2931
2931
|
tmp = json;
|
|
2932
2932
|
}
|
|
2933
2933
|
json = tmp;
|
|
2934
|
-
this.
|
|
2935
|
-
this.
|
|
2936
|
-
this.
|
|
2937
|
-
this.
|
|
2934
|
+
this.e5d_1 = baseUrl;
|
|
2935
|
+
this.f5d_1 = timeoutMillis;
|
|
2936
|
+
this.g5d_1 = loggingLevel;
|
|
2937
|
+
this.h5d_1 = json;
|
|
2938
2938
|
}
|
|
2939
2939
|
protoOf(HttpParams).toString = function () {
|
|
2940
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2940
|
+
return 'HttpParams(baseUrl=' + this.e5d_1 + ', timeoutMillis=' + this.f5d_1.toString() + ', loggingLevel=' + this.g5d_1.toString() + ', json=' + toString(this.h5d_1) + ')';
|
|
2941
2941
|
};
|
|
2942
2942
|
protoOf(HttpParams).hashCode = function () {
|
|
2943
|
-
var result = getStringHashCode(this.
|
|
2944
|
-
result = imul(result, 31) + this.e5d_1.hashCode() | 0;
|
|
2943
|
+
var result = getStringHashCode(this.e5d_1);
|
|
2945
2944
|
result = imul(result, 31) + this.f5d_1.hashCode() | 0;
|
|
2946
|
-
result = imul(result, 31) +
|
|
2945
|
+
result = imul(result, 31) + this.g5d_1.hashCode() | 0;
|
|
2946
|
+
result = imul(result, 31) + hashCode(this.h5d_1) | 0;
|
|
2947
2947
|
return result;
|
|
2948
2948
|
};
|
|
2949
2949
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2952,13 +2952,13 @@
|
|
|
2952
2952
|
if (!(other instanceof HttpParams))
|
|
2953
2953
|
return false;
|
|
2954
2954
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2955
|
-
if (!(this.
|
|
2955
|
+
if (!(this.e5d_1 === tmp0_other_with_cast.e5d_1))
|
|
2956
2956
|
return false;
|
|
2957
|
-
if (!equalsLong(this.
|
|
2957
|
+
if (!equalsLong(this.f5d_1, tmp0_other_with_cast.f5d_1))
|
|
2958
2958
|
return false;
|
|
2959
|
-
if (!this.
|
|
2959
|
+
if (!this.g5d_1.equals(tmp0_other_with_cast.g5d_1))
|
|
2960
2960
|
return false;
|
|
2961
|
-
if (!equals(this.
|
|
2961
|
+
if (!equals(this.h5d_1, tmp0_other_with_cast.h5d_1))
|
|
2962
2962
|
return false;
|
|
2963
2963
|
return true;
|
|
2964
2964
|
};
|
|
@@ -2982,12 +2982,12 @@
|
|
|
2982
2982
|
}
|
|
2983
2983
|
function nextBytesCopyTo($this, bytes) {
|
|
2984
2984
|
try {
|
|
2985
|
-
$this.
|
|
2985
|
+
$this.n5d_1.r1o(bytes);
|
|
2986
2986
|
} catch ($p) {
|
|
2987
2987
|
if ($p instanceof SecRandomCopyException) {
|
|
2988
2988
|
var error = $p;
|
|
2989
|
-
$this.
|
|
2990
|
-
$this.
|
|
2989
|
+
$this.m5d_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2990
|
+
$this.o5d_1.rg(bytes);
|
|
2991
2991
|
return Unit_instance;
|
|
2992
2992
|
} else {
|
|
2993
2993
|
throw $p;
|
|
@@ -3011,9 +3011,9 @@
|
|
|
3011
3011
|
}
|
|
3012
3012
|
function SecureRandom_0(logger) {
|
|
3013
3013
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
3014
|
-
this.
|
|
3015
|
-
this.
|
|
3016
|
-
this.
|
|
3014
|
+
this.m5d_1 = logger;
|
|
3015
|
+
this.n5d_1 = new SecureRandom();
|
|
3016
|
+
this.o5d_1 = Default_getInstance();
|
|
3017
3017
|
}
|
|
3018
3018
|
protoOf(SecureRandom_0).og = function (from, until) {
|
|
3019
3019
|
checkRangeBounds(this, from, until);
|
|
@@ -3042,7 +3042,7 @@
|
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
3044
|
};
|
|
3045
|
-
protoOf(SecureRandom_0).
|
|
3045
|
+
protoOf(SecureRandom_0).qg = function () {
|
|
3046
3046
|
return !(nextBits(this, 1) === 0);
|
|
3047
3047
|
};
|
|
3048
3048
|
function CustomRandom() {
|
|
@@ -3063,7 +3063,7 @@
|
|
|
3063
3063
|
while (pile.o() > 0) {
|
|
3064
3064
|
var tmp0 = pile.o();
|
|
3065
3065
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3066
|
-
var b = 1 + random.
|
|
3066
|
+
var b = 1 + random.p5d(VOID, twentypc) | 0;
|
|
3067
3067
|
var cards = Math.min(tmp0, b);
|
|
3068
3068
|
pile2.k2(0, take(pile, cards));
|
|
3069
3069
|
// Inline function 'kotlin.repeat' call
|
|
@@ -3094,11 +3094,11 @@
|
|
|
3094
3094
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3095
3095
|
var mid = deck.o() / 2 | 0;
|
|
3096
3096
|
var tenpc = mid / 10 | 0;
|
|
3097
|
-
var cut = (mid - tenpc | 0) + random.
|
|
3097
|
+
var cut = (mid - tenpc | 0) + random.p5d(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3098
3098
|
var deck1 = toMutableList(take(pile, cut));
|
|
3099
3099
|
var deck2 = toMutableList(drop(pile, cut));
|
|
3100
3100
|
pile.i2();
|
|
3101
|
-
var fromTop = random.
|
|
3101
|
+
var fromTop = random.qg();
|
|
3102
3102
|
while (deck1.o() > 0 && deck2.o() > 0) {
|
|
3103
3103
|
if (fromTop) {
|
|
3104
3104
|
pile.j(deck1.o2(0));
|
|
@@ -3120,16 +3120,16 @@
|
|
|
3120
3120
|
}
|
|
3121
3121
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3122
3122
|
return function ($this$install) {
|
|
3123
|
-
$this$install.
|
|
3124
|
-
$this$install.
|
|
3123
|
+
$this$install.j4b($config.f5d_1);
|
|
3124
|
+
$this$install.h4b($config.f5d_1);
|
|
3125
3125
|
return Unit_instance;
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
3128
3128
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3129
3129
|
return function ($this$HttpClient) {
|
|
3130
3130
|
var tmp = Plugin_getInstance_0();
|
|
3131
|
-
$this$HttpClient.
|
|
3132
|
-
ApiCommonConfigs_instance.
|
|
3131
|
+
$this$HttpClient.t3t(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3132
|
+
ApiCommonConfigs_instance.i5d($this$HttpClient, $config, $externalLogger);
|
|
3133
3133
|
return Unit_instance;
|
|
3134
3134
|
};
|
|
3135
3135
|
}
|
|
@@ -3144,14 +3144,14 @@
|
|
|
3144
3144
|
return HttpFactory_instance;
|
|
3145
3145
|
}
|
|
3146
3146
|
//region block: post-declaration
|
|
3147
|
-
protoOf($serializer).
|
|
3148
|
-
protoOf($serializer_0).
|
|
3149
|
-
protoOf($serializer_2).
|
|
3150
|
-
protoOf($serializer_3).
|
|
3151
|
-
protoOf($serializer_5).
|
|
3152
|
-
protoOf($serializer_6).
|
|
3153
|
-
protoOf(RandomPoolProviderImpl).
|
|
3154
|
-
protoOf(SecureRandom_0).
|
|
3147
|
+
protoOf($serializer).xz = typeParametersSerializers;
|
|
3148
|
+
protoOf($serializer_0).xz = typeParametersSerializers;
|
|
3149
|
+
protoOf($serializer_2).xz = typeParametersSerializers;
|
|
3150
|
+
protoOf($serializer_3).xz = typeParametersSerializers;
|
|
3151
|
+
protoOf($serializer_5).xz = typeParametersSerializers;
|
|
3152
|
+
protoOf($serializer_6).xz = typeParametersSerializers;
|
|
3153
|
+
protoOf(RandomPoolProviderImpl).m58 = getCardDeck$default;
|
|
3154
|
+
protoOf(SecureRandom_0).p5d = nextInt$default;
|
|
3155
3155
|
protoOf(SecureRandom_0).q5d = shuffle;
|
|
3156
3156
|
//endregion
|
|
3157
3157
|
//region block: init
|