client_plugin_logic_deb 1.8.225 → 1.8.232
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 +56 -56
- package/Kosi-Kodein-kodein-di.js +504 -504
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-client_plugin.d.ts +48 -16
- package/Logic_Debertz-client_plugin.js +2233 -2217
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1250 -1230
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14140 -13552
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +6681 -6505
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1213 -799
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +32 -32
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +227 -227
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +164 -164
- package/raspberry-cardgame-lib-random.js +526 -532
- package/raspberry-cardgame-lib-random.js.map +1 -1
|
@@ -136,7 +136,6 @@
|
|
|
136
136
|
var firstOrNull = kotlin_kotlin.$_$.q7;
|
|
137
137
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
138
138
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
139
|
-
var KtMutableMap = kotlin_kotlin.$_$.a6;
|
|
140
139
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
141
140
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.b;
|
|
142
141
|
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
@@ -202,7 +201,7 @@
|
|
|
202
201
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
203
202
|
signed = signed === VOID ? false : signed;
|
|
204
203
|
timeoutMillis = timeoutMillis === VOID ? new Long(7000, 0) : timeoutMillis;
|
|
205
|
-
return $super === VOID ? this.
|
|
204
|
+
return $super === VOID ? this.b5v(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) : $super.b5v.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion);
|
|
206
205
|
}
|
|
207
206
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
208
207
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -412,8 +411,8 @@
|
|
|
412
411
|
};
|
|
413
412
|
function Companion_0() {
|
|
414
413
|
}
|
|
415
|
-
protoOf(Companion_0).firstRound = function (
|
|
416
|
-
return new GameCardDecksRecord(
|
|
414
|
+
protoOf(Companion_0).firstRound = function (poolId, signature, newCardDeckData, userData) {
|
|
415
|
+
return new GameCardDecksRecord(poolId, signature, userData, listOf(newCardDeckData));
|
|
417
416
|
};
|
|
418
417
|
protoOf(Companion_0).newRound = function (gameCardDecksRecord, newCardDeckData) {
|
|
419
418
|
return gameCardDecksRecord.copy(VOID, VOID, VOID, plus(gameCardDecksRecord.rounds, newCardDeckData));
|
|
@@ -422,27 +421,27 @@
|
|
|
422
421
|
function Companion_getInstance_3() {
|
|
423
422
|
return Companion_instance_2;
|
|
424
423
|
}
|
|
425
|
-
function GameCardDecksRecord(
|
|
424
|
+
function GameCardDecksRecord(poolId, signature, userData, rounds) {
|
|
426
425
|
rounds = rounds === VOID ? emptyList() : rounds;
|
|
427
|
-
this.
|
|
426
|
+
this.poolId = poolId;
|
|
428
427
|
this.signature = signature;
|
|
429
428
|
this.userData = userData;
|
|
430
429
|
this.rounds = rounds;
|
|
431
430
|
}
|
|
432
|
-
protoOf(GameCardDecksRecord).a5p = function () {
|
|
433
|
-
return this.id;
|
|
434
|
-
};
|
|
435
431
|
protoOf(GameCardDecksRecord).r5q = function () {
|
|
436
|
-
return this.
|
|
432
|
+
return this.poolId;
|
|
437
433
|
};
|
|
438
434
|
protoOf(GameCardDecksRecord).s5q = function () {
|
|
439
|
-
return this.
|
|
435
|
+
return this.signature;
|
|
440
436
|
};
|
|
441
437
|
protoOf(GameCardDecksRecord).t5q = function () {
|
|
438
|
+
return this.userData;
|
|
439
|
+
};
|
|
440
|
+
protoOf(GameCardDecksRecord).u5q = function () {
|
|
442
441
|
return this.rounds;
|
|
443
442
|
};
|
|
444
443
|
protoOf(GameCardDecksRecord).se = function () {
|
|
445
|
-
return this.
|
|
444
|
+
return this.poolId;
|
|
446
445
|
};
|
|
447
446
|
protoOf(GameCardDecksRecord).te = function () {
|
|
448
447
|
return this.signature;
|
|
@@ -450,24 +449,24 @@
|
|
|
450
449
|
protoOf(GameCardDecksRecord).kk = function () {
|
|
451
450
|
return this.userData;
|
|
452
451
|
};
|
|
453
|
-
protoOf(GameCardDecksRecord).
|
|
452
|
+
protoOf(GameCardDecksRecord).v5q = function () {
|
|
454
453
|
return this.rounds;
|
|
455
454
|
};
|
|
456
|
-
protoOf(GameCardDecksRecord).
|
|
457
|
-
return new GameCardDecksRecord(
|
|
455
|
+
protoOf(GameCardDecksRecord).w5q = function (poolId, signature, userData, rounds) {
|
|
456
|
+
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
458
457
|
};
|
|
459
|
-
protoOf(GameCardDecksRecord).copy = function (
|
|
460
|
-
|
|
458
|
+
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
459
|
+
poolId = poolId === VOID ? this.poolId : poolId;
|
|
461
460
|
signature = signature === VOID ? this.signature : signature;
|
|
462
461
|
userData = userData === VOID ? this.userData : userData;
|
|
463
462
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
464
|
-
return this.
|
|
463
|
+
return this.w5q(poolId, signature, userData, rounds);
|
|
465
464
|
};
|
|
466
465
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
467
|
-
return 'GameCardDecksRecord(
|
|
466
|
+
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
468
467
|
};
|
|
469
468
|
protoOf(GameCardDecksRecord).hashCode = function () {
|
|
470
|
-
var result = getStringHashCode(this.
|
|
469
|
+
var result = getStringHashCode(this.poolId);
|
|
471
470
|
result = imul(result, 31) + (this.signature == null ? 0 : getStringHashCode(this.signature)) | 0;
|
|
472
471
|
result = imul(result, 31) + this.userData.hashCode() | 0;
|
|
473
472
|
result = imul(result, 31) + hashCode(this.rounds) | 0;
|
|
@@ -479,7 +478,7 @@
|
|
|
479
478
|
if (!(other instanceof GameCardDecksRecord))
|
|
480
479
|
return false;
|
|
481
480
|
var tmp0_other_with_cast = other instanceof GameCardDecksRecord ? other : THROW_CCE();
|
|
482
|
-
if (!(this.
|
|
481
|
+
if (!(this.poolId === tmp0_other_with_cast.poolId))
|
|
483
482
|
return false;
|
|
484
483
|
if (!(this.signature == tmp0_other_with_cast.signature))
|
|
485
484
|
return false;
|
|
@@ -493,10 +492,10 @@
|
|
|
493
492
|
this.cardDeckIndex = cardDeckIndex;
|
|
494
493
|
this.cards = cards;
|
|
495
494
|
}
|
|
496
|
-
protoOf(GameCardDeckData).
|
|
495
|
+
protoOf(GameCardDeckData).x5q = function () {
|
|
497
496
|
return this.cardDeckIndex;
|
|
498
497
|
};
|
|
499
|
-
protoOf(GameCardDeckData).
|
|
498
|
+
protoOf(GameCardDeckData).y5q = function () {
|
|
500
499
|
return this.cards;
|
|
501
500
|
};
|
|
502
501
|
protoOf(GameCardDeckData).se = function () {
|
|
@@ -505,13 +504,13 @@
|
|
|
505
504
|
protoOf(GameCardDeckData).te = function () {
|
|
506
505
|
return this.cards;
|
|
507
506
|
};
|
|
508
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).z5q = function (cardDeckIndex, cards) {
|
|
509
508
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
510
509
|
};
|
|
511
510
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
512
511
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
513
512
|
cards = cards === VOID ? this.cards : cards;
|
|
514
|
-
return this.
|
|
513
|
+
return this.z5q(cardDeckIndex, cards);
|
|
515
514
|
};
|
|
516
515
|
protoOf(GameCardDeckData).toString = function () {
|
|
517
516
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -538,10 +537,10 @@
|
|
|
538
537
|
this.baseUrl = baseUrl;
|
|
539
538
|
this.timeoutMillis = timeoutMillis;
|
|
540
539
|
}
|
|
541
|
-
protoOf(HttpConfig).
|
|
540
|
+
protoOf(HttpConfig).a5r = function () {
|
|
542
541
|
return this.baseUrl;
|
|
543
542
|
};
|
|
544
|
-
protoOf(HttpConfig).
|
|
543
|
+
protoOf(HttpConfig).b5r = function () {
|
|
545
544
|
return this.timeoutMillis;
|
|
546
545
|
};
|
|
547
546
|
protoOf(HttpConfig).se = function () {
|
|
@@ -591,16 +590,16 @@
|
|
|
591
590
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
592
591
|
this.httpConfig = httpConfig;
|
|
593
592
|
}
|
|
594
|
-
protoOf(RandomOrgConfig).
|
|
593
|
+
protoOf(RandomOrgConfig).c5r = function () {
|
|
595
594
|
return this.apiKey;
|
|
596
595
|
};
|
|
597
|
-
protoOf(RandomOrgConfig).
|
|
596
|
+
protoOf(RandomOrgConfig).d5r = function () {
|
|
598
597
|
return this.poolSize;
|
|
599
598
|
};
|
|
600
|
-
protoOf(RandomOrgConfig).
|
|
599
|
+
protoOf(RandomOrgConfig).e5r = function () {
|
|
601
600
|
return this.thresholdForUsedPool;
|
|
602
601
|
};
|
|
603
|
-
protoOf(RandomOrgConfig).
|
|
602
|
+
protoOf(RandomOrgConfig).f5r = function () {
|
|
604
603
|
return this.httpConfig;
|
|
605
604
|
};
|
|
606
605
|
protoOf(RandomOrgConfig).se = function () {
|
|
@@ -612,10 +611,10 @@
|
|
|
612
611
|
protoOf(RandomOrgConfig).kk = function () {
|
|
613
612
|
return this.thresholdForUsedPool;
|
|
614
613
|
};
|
|
615
|
-
protoOf(RandomOrgConfig).
|
|
614
|
+
protoOf(RandomOrgConfig).v5q = function () {
|
|
616
615
|
return this.httpConfig;
|
|
617
616
|
};
|
|
618
|
-
protoOf(RandomOrgConfig).
|
|
617
|
+
protoOf(RandomOrgConfig).g5r = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
619
618
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
620
619
|
};
|
|
621
620
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -623,7 +622,7 @@
|
|
|
623
622
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
624
623
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
625
624
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
626
|
-
return this.
|
|
625
|
+
return this.g5r(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
627
626
|
};
|
|
628
627
|
protoOf(RandomOrgConfig).toString = function () {
|
|
629
628
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -662,20 +661,20 @@
|
|
|
662
661
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
663
662
|
tmp0_serialDesc.s4j('jsonrpc', false);
|
|
664
663
|
tmp0_serialDesc.s4j('error', false);
|
|
665
|
-
this.
|
|
664
|
+
this.h5r_1 = tmp0_serialDesc;
|
|
666
665
|
}
|
|
667
|
-
protoOf($serializer).
|
|
668
|
-
var tmp0_desc = this.
|
|
666
|
+
protoOf($serializer).i5r = function (encoder, value) {
|
|
667
|
+
var tmp0_desc = this.h5r_1;
|
|
669
668
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
670
|
-
tmp1_output.s4d(tmp0_desc, 0, value.
|
|
671
|
-
tmp1_output.w4d(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
669
|
+
tmp1_output.s4d(tmp0_desc, 0, value.j5r_1);
|
|
670
|
+
tmp1_output.w4d(tmp0_desc, 1, $serializer_getInstance_0(), value.k5r_1);
|
|
672
671
|
tmp1_output.f4c(tmp0_desc);
|
|
673
672
|
};
|
|
674
673
|
protoOf($serializer).r48 = function (encoder, value) {
|
|
675
|
-
return this.
|
|
674
|
+
return this.i5r(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
676
675
|
};
|
|
677
676
|
protoOf($serializer).s48 = function (decoder) {
|
|
678
|
-
var tmp0_desc = this.
|
|
677
|
+
var tmp0_desc = this.h5r_1;
|
|
679
678
|
var tmp1_flag = true;
|
|
680
679
|
var tmp2_index = 0;
|
|
681
680
|
var tmp3_bitMask0 = 0;
|
|
@@ -710,7 +709,7 @@
|
|
|
710
709
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
711
710
|
};
|
|
712
711
|
protoOf($serializer).q48 = function () {
|
|
713
|
-
return this.
|
|
712
|
+
return this.h5r_1;
|
|
714
713
|
};
|
|
715
714
|
protoOf($serializer).h4k = function () {
|
|
716
715
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -726,25 +725,25 @@
|
|
|
726
725
|
}
|
|
727
726
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
728
727
|
if (!(3 === (3 & seen0))) {
|
|
729
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().h5r_1);
|
|
730
729
|
}
|
|
731
|
-
$this.
|
|
732
|
-
$this.
|
|
730
|
+
$this.j5r_1 = jsonrpc;
|
|
731
|
+
$this.k5r_1 = error;
|
|
733
732
|
return $this;
|
|
734
733
|
}
|
|
735
734
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
736
735
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
737
736
|
}
|
|
738
737
|
function ErrorResponseDto(jsonrpc, error) {
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
738
|
+
this.j5r_1 = jsonrpc;
|
|
739
|
+
this.k5r_1 = error;
|
|
741
740
|
}
|
|
742
741
|
protoOf(ErrorResponseDto).toString = function () {
|
|
743
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
742
|
+
return 'ErrorResponseDto(jsonrpc=' + this.j5r_1 + ', error=' + toString_0(this.k5r_1) + ')';
|
|
744
743
|
};
|
|
745
744
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
746
|
-
var result = getStringHashCode(this.
|
|
747
|
-
result = imul(result, 31) + (this.
|
|
745
|
+
var result = getStringHashCode(this.j5r_1);
|
|
746
|
+
result = imul(result, 31) + (this.k5r_1 == null ? 0 : this.k5r_1.hashCode()) | 0;
|
|
748
747
|
return result;
|
|
749
748
|
};
|
|
750
749
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -753,9 +752,9 @@
|
|
|
753
752
|
if (!(other instanceof ErrorResponseDto))
|
|
754
753
|
return false;
|
|
755
754
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
756
|
-
if (!(this.
|
|
755
|
+
if (!(this.j5r_1 === tmp0_other_with_cast.j5r_1))
|
|
757
756
|
return false;
|
|
758
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.k5r_1, tmp0_other_with_cast.k5r_1))
|
|
759
758
|
return false;
|
|
760
759
|
return true;
|
|
761
760
|
};
|
|
@@ -764,20 +763,20 @@
|
|
|
764
763
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
765
764
|
tmp0_serialDesc.s4j('code', false);
|
|
766
765
|
tmp0_serialDesc.s4j('message', false);
|
|
767
|
-
this.
|
|
766
|
+
this.l5r_1 = tmp0_serialDesc;
|
|
768
767
|
}
|
|
769
|
-
protoOf($serializer_0).
|
|
770
|
-
var tmp0_desc = this.
|
|
768
|
+
protoOf($serializer_0).m5r = function (encoder, value) {
|
|
769
|
+
var tmp0_desc = this.l5r_1;
|
|
771
770
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
772
|
-
tmp1_output.w4d(tmp0_desc, 0, IntSerializer_getInstance(), value.
|
|
773
|
-
tmp1_output.w4d(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
771
|
+
tmp1_output.w4d(tmp0_desc, 0, IntSerializer_getInstance(), value.n5r_1);
|
|
772
|
+
tmp1_output.w4d(tmp0_desc, 1, StringSerializer_getInstance(), value.o5r_1);
|
|
774
773
|
tmp1_output.f4c(tmp0_desc);
|
|
775
774
|
};
|
|
776
775
|
protoOf($serializer_0).r48 = function (encoder, value) {
|
|
777
|
-
return this.
|
|
776
|
+
return this.m5r(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
778
777
|
};
|
|
779
778
|
protoOf($serializer_0).s48 = function (decoder) {
|
|
780
|
-
var tmp0_desc = this.
|
|
779
|
+
var tmp0_desc = this.l5r_1;
|
|
781
780
|
var tmp1_flag = true;
|
|
782
781
|
var tmp2_index = 0;
|
|
783
782
|
var tmp3_bitMask0 = 0;
|
|
@@ -812,7 +811,7 @@
|
|
|
812
811
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
813
812
|
};
|
|
814
813
|
protoOf($serializer_0).q48 = function () {
|
|
815
|
-
return this.
|
|
814
|
+
return this.l5r_1;
|
|
816
815
|
};
|
|
817
816
|
protoOf($serializer_0).h4k = function () {
|
|
818
817
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -828,10 +827,10 @@
|
|
|
828
827
|
}
|
|
829
828
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
830
829
|
if (!(3 === (3 & seen0))) {
|
|
831
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
830
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().l5r_1);
|
|
832
831
|
}
|
|
833
|
-
$this.
|
|
834
|
-
$this.
|
|
832
|
+
$this.n5r_1 = code;
|
|
833
|
+
$this.o5r_1 = message;
|
|
835
834
|
return $this;
|
|
836
835
|
}
|
|
837
836
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -840,11 +839,11 @@
|
|
|
840
839
|
function ErrorDto() {
|
|
841
840
|
}
|
|
842
841
|
protoOf(ErrorDto).toString = function () {
|
|
843
|
-
return 'ErrorDto(code=' + this.
|
|
842
|
+
return 'ErrorDto(code=' + this.n5r_1 + ', message=' + this.o5r_1 + ')';
|
|
844
843
|
};
|
|
845
844
|
protoOf(ErrorDto).hashCode = function () {
|
|
846
|
-
var result = this.
|
|
847
|
-
result = imul(result, 31) + (this.
|
|
845
|
+
var result = this.n5r_1 == null ? 0 : this.n5r_1;
|
|
846
|
+
result = imul(result, 31) + (this.o5r_1 == null ? 0 : getStringHashCode(this.o5r_1)) | 0;
|
|
848
847
|
return result;
|
|
849
848
|
};
|
|
850
849
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -853,15 +852,15 @@
|
|
|
853
852
|
if (!(other instanceof ErrorDto))
|
|
854
853
|
return false;
|
|
855
854
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
856
|
-
if (!(this.m5r_1 == tmp0_other_with_cast.m5r_1))
|
|
857
|
-
return false;
|
|
858
855
|
if (!(this.n5r_1 == tmp0_other_with_cast.n5r_1))
|
|
859
856
|
return false;
|
|
857
|
+
if (!(this.o5r_1 == tmp0_other_with_cast.o5r_1))
|
|
858
|
+
return false;
|
|
860
859
|
return true;
|
|
861
860
|
};
|
|
862
861
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
863
862
|
$serializer_1.call($this);
|
|
864
|
-
$this.
|
|
863
|
+
$this.q5r_1 = typeSerial0;
|
|
865
864
|
return $this;
|
|
866
865
|
}
|
|
867
866
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -874,13 +873,13 @@
|
|
|
874
873
|
tmp0_serialDesc.s4j('method', false);
|
|
875
874
|
tmp0_serialDesc.s4j('params', false);
|
|
876
875
|
tmp0_serialDesc.s4j('id', false);
|
|
877
|
-
this.
|
|
876
|
+
this.r5r_1 = tmp0_serialDesc;
|
|
878
877
|
}
|
|
879
|
-
protoOf(Companion_2).
|
|
878
|
+
protoOf(Companion_2).s5r = function (typeSerial0) {
|
|
880
879
|
return $serializer_init_$Create$(typeSerial0);
|
|
881
880
|
};
|
|
882
881
|
protoOf(Companion_2).s4k = function (typeParamsSerializers) {
|
|
883
|
-
return this.
|
|
882
|
+
return this.s5r(typeParamsSerializers[0]);
|
|
884
883
|
};
|
|
885
884
|
var Companion_instance_4;
|
|
886
885
|
function Companion_getInstance_5() {
|
|
@@ -894,22 +893,22 @@
|
|
|
894
893
|
tmp0_serialDesc.s4j('method', false);
|
|
895
894
|
tmp0_serialDesc.s4j('params', false);
|
|
896
895
|
tmp0_serialDesc.s4j('id', false);
|
|
897
|
-
this.
|
|
896
|
+
this.p5r_1 = tmp0_serialDesc;
|
|
898
897
|
}
|
|
899
|
-
protoOf($serializer_1).
|
|
900
|
-
var tmp0_desc = this.
|
|
898
|
+
protoOf($serializer_1).t5r = function (encoder, value) {
|
|
899
|
+
var tmp0_desc = this.p5r_1;
|
|
901
900
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
902
|
-
tmp1_output.s4d(tmp0_desc, 0, value.
|
|
903
|
-
tmp1_output.s4d(tmp0_desc, 1, value.
|
|
904
|
-
tmp1_output.u4d(tmp0_desc, 2, this.
|
|
905
|
-
tmp1_output.s4d(tmp0_desc, 3, value.
|
|
901
|
+
tmp1_output.s4d(tmp0_desc, 0, value.u5r_1);
|
|
902
|
+
tmp1_output.s4d(tmp0_desc, 1, value.v5r_1);
|
|
903
|
+
tmp1_output.u4d(tmp0_desc, 2, this.q5r_1, value.w5r_1);
|
|
904
|
+
tmp1_output.s4d(tmp0_desc, 3, value.x5r_1);
|
|
906
905
|
tmp1_output.f4c(tmp0_desc);
|
|
907
906
|
};
|
|
908
907
|
protoOf($serializer_1).r48 = function (encoder, value) {
|
|
909
|
-
return this.
|
|
908
|
+
return this.t5r(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
910
909
|
};
|
|
911
910
|
protoOf($serializer_1).s48 = function (decoder) {
|
|
912
|
-
var tmp0_desc = this.
|
|
911
|
+
var tmp0_desc = this.p5r_1;
|
|
913
912
|
var tmp1_flag = true;
|
|
914
913
|
var tmp2_index = 0;
|
|
915
914
|
var tmp3_bitMask0 = 0;
|
|
@@ -923,7 +922,7 @@
|
|
|
923
922
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
924
923
|
tmp5_local1 = tmp8_input.o4c(tmp0_desc, 1);
|
|
925
924
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
926
|
-
tmp6_local2 = tmp8_input.q4c(tmp0_desc, 2, this.
|
|
925
|
+
tmp6_local2 = tmp8_input.q4c(tmp0_desc, 2, this.q5r_1, tmp6_local2);
|
|
927
926
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
928
927
|
tmp7_local3 = tmp8_input.o4c(tmp0_desc, 3);
|
|
929
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
@@ -943,7 +942,7 @@
|
|
|
943
942
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
944
943
|
break;
|
|
945
944
|
case 2:
|
|
946
|
-
tmp6_local2 = tmp8_input.q4c(tmp0_desc, 2, this.
|
|
945
|
+
tmp6_local2 = tmp8_input.q4c(tmp0_desc, 2, this.q5r_1, tmp6_local2);
|
|
947
946
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
948
947
|
break;
|
|
949
948
|
case 3:
|
|
@@ -958,28 +957,28 @@
|
|
|
958
957
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
959
958
|
};
|
|
960
959
|
protoOf($serializer_1).q48 = function () {
|
|
961
|
-
return this.
|
|
960
|
+
return this.p5r_1;
|
|
962
961
|
};
|
|
963
962
|
protoOf($serializer_1).h4k = function () {
|
|
964
963
|
// Inline function 'kotlin.arrayOf' call
|
|
965
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
966
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
967
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
966
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.q5r_1, StringSerializer_getInstance()];
|
|
968
967
|
};
|
|
969
968
|
protoOf($serializer_1).i4k = function () {
|
|
970
969
|
// Inline function 'kotlin.arrayOf' call
|
|
971
970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
972
971
|
// Inline function 'kotlin.js.asDynamic' call
|
|
973
|
-
return [this.
|
|
972
|
+
return [this.q5r_1];
|
|
974
973
|
};
|
|
975
974
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
976
975
|
if (!(15 === (15 & seen0))) {
|
|
977
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
976
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().r5r_1);
|
|
978
977
|
}
|
|
979
|
-
$this.
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
982
|
-
$this.
|
|
978
|
+
$this.u5r_1 = jsonrpc;
|
|
979
|
+
$this.v5r_1 = method;
|
|
980
|
+
$this.w5r_1 = params;
|
|
981
|
+
$this.x5r_1 = id;
|
|
983
982
|
return $this;
|
|
984
983
|
}
|
|
985
984
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -987,19 +986,19 @@
|
|
|
987
986
|
}
|
|
988
987
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
989
988
|
Companion_getInstance_5();
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
989
|
+
this.u5r_1 = jsonrpc;
|
|
990
|
+
this.v5r_1 = method;
|
|
991
|
+
this.w5r_1 = params;
|
|
992
|
+
this.x5r_1 = id;
|
|
994
993
|
}
|
|
995
994
|
protoOf(RandomRequestDto).toString = function () {
|
|
996
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
995
|
+
return 'RandomRequestDto(jsonrpc=' + this.u5r_1 + ', method=' + this.v5r_1 + ', params=' + toString(this.w5r_1) + ', id=' + this.x5r_1 + ')';
|
|
997
996
|
};
|
|
998
997
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
999
|
-
var result = getStringHashCode(this.
|
|
1000
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1001
|
-
result = imul(result, 31) + hashCode(this.
|
|
1002
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
998
|
+
var result = getStringHashCode(this.u5r_1);
|
|
999
|
+
result = imul(result, 31) + getStringHashCode(this.v5r_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + hashCode(this.w5r_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + getStringHashCode(this.x5r_1) | 0;
|
|
1003
1002
|
return result;
|
|
1004
1003
|
};
|
|
1005
1004
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1008,13 +1007,13 @@
|
|
|
1008
1007
|
if (!(other instanceof RandomRequestDto))
|
|
1009
1008
|
return false;
|
|
1010
1009
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1011
|
-
if (!(this.t5r_1 === tmp0_other_with_cast.t5r_1))
|
|
1012
|
-
return false;
|
|
1013
1010
|
if (!(this.u5r_1 === tmp0_other_with_cast.u5r_1))
|
|
1014
1011
|
return false;
|
|
1015
|
-
if (!
|
|
1012
|
+
if (!(this.v5r_1 === tmp0_other_with_cast.v5r_1))
|
|
1016
1013
|
return false;
|
|
1017
|
-
if (!(this.w5r_1
|
|
1014
|
+
if (!equals(this.w5r_1, tmp0_other_with_cast.w5r_1))
|
|
1015
|
+
return false;
|
|
1016
|
+
if (!(this.x5r_1 === tmp0_other_with_cast.x5r_1))
|
|
1018
1017
|
return false;
|
|
1019
1018
|
return true;
|
|
1020
1019
|
};
|
|
@@ -1024,7 +1023,7 @@
|
|
|
1024
1023
|
// Inline function 'kotlin.arrayOf' call
|
|
1025
1024
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1026
1025
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1027
|
-
tmp.
|
|
1026
|
+
tmp.y5r_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1028
1027
|
}
|
|
1029
1028
|
var Companion_instance_5;
|
|
1030
1029
|
function Companion_getInstance_6() {
|
|
@@ -1043,27 +1042,27 @@
|
|
|
1043
1042
|
tmp0_serialDesc.s4j('replacement', false);
|
|
1044
1043
|
tmp0_serialDesc.s4j('ticketId', false);
|
|
1045
1044
|
tmp0_serialDesc.s4j('userData', false);
|
|
1046
|
-
this.
|
|
1045
|
+
this.z5r_1 = tmp0_serialDesc;
|
|
1047
1046
|
}
|
|
1048
|
-
protoOf($serializer_2).
|
|
1049
|
-
var tmp0_desc = this.
|
|
1047
|
+
protoOf($serializer_2).a5s = function (encoder, value) {
|
|
1048
|
+
var tmp0_desc = this.z5r_1;
|
|
1050
1049
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
1051
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1052
|
-
tmp1_output.s4d(tmp0_desc, 0, value.
|
|
1053
|
-
tmp1_output.n4d(tmp0_desc, 1, value.
|
|
1054
|
-
tmp1_output.u4d(tmp0_desc, 2, tmp2_cached[2], value.
|
|
1055
|
-
tmp1_output.n4d(tmp0_desc, 3, value.
|
|
1056
|
-
tmp1_output.n4d(tmp0_desc, 4, value.
|
|
1057
|
-
tmp1_output.k4d(tmp0_desc, 5, value.
|
|
1058
|
-
tmp1_output.w4d(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
1059
|
-
tmp1_output.w4d(tmp0_desc, 7, $serializer_getInstance_2(), value.
|
|
1050
|
+
var tmp2_cached = Companion_getInstance_6().y5r_1;
|
|
1051
|
+
tmp1_output.s4d(tmp0_desc, 0, value.b5s_1);
|
|
1052
|
+
tmp1_output.n4d(tmp0_desc, 1, value.c5s_1);
|
|
1053
|
+
tmp1_output.u4d(tmp0_desc, 2, tmp2_cached[2], value.d5s_1);
|
|
1054
|
+
tmp1_output.n4d(tmp0_desc, 3, value.e5s_1);
|
|
1055
|
+
tmp1_output.n4d(tmp0_desc, 4, value.f5s_1);
|
|
1056
|
+
tmp1_output.k4d(tmp0_desc, 5, value.g5s_1);
|
|
1057
|
+
tmp1_output.w4d(tmp0_desc, 6, StringSerializer_getInstance(), value.h5s_1);
|
|
1058
|
+
tmp1_output.w4d(tmp0_desc, 7, $serializer_getInstance_2(), value.i5s_1);
|
|
1060
1059
|
tmp1_output.f4c(tmp0_desc);
|
|
1061
1060
|
};
|
|
1062
1061
|
protoOf($serializer_2).r48 = function (encoder, value) {
|
|
1063
|
-
return this.
|
|
1062
|
+
return this.a5s(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1064
1063
|
};
|
|
1065
1064
|
protoOf($serializer_2).s48 = function (decoder) {
|
|
1066
|
-
var tmp0_desc = this.
|
|
1065
|
+
var tmp0_desc = this.z5r_1;
|
|
1067
1066
|
var tmp1_flag = true;
|
|
1068
1067
|
var tmp2_index = 0;
|
|
1069
1068
|
var tmp3_bitMask0 = 0;
|
|
@@ -1076,7 +1075,7 @@
|
|
|
1076
1075
|
var tmp10_local6 = null;
|
|
1077
1076
|
var tmp11_local7 = null;
|
|
1078
1077
|
var tmp12_input = decoder.e4c(tmp0_desc);
|
|
1079
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1078
|
+
var tmp13_cached = Companion_getInstance_6().y5r_1;
|
|
1080
1079
|
if (tmp12_input.t4c()) {
|
|
1081
1080
|
tmp4_local0 = tmp12_input.o4c(tmp0_desc, 0);
|
|
1082
1081
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1141,10 +1140,10 @@
|
|
|
1141
1140
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1142
1141
|
};
|
|
1143
1142
|
protoOf($serializer_2).q48 = function () {
|
|
1144
|
-
return this.
|
|
1143
|
+
return this.z5r_1;
|
|
1145
1144
|
};
|
|
1146
1145
|
protoOf($serializer_2).h4k = function () {
|
|
1147
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1146
|
+
var tmp0_cached = Companion_getInstance_6().y5r_1;
|
|
1148
1147
|
// Inline function 'kotlin.arrayOf' call
|
|
1149
1148
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1150
1149
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1158,16 +1157,16 @@
|
|
|
1158
1157
|
}
|
|
1159
1158
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1160
1159
|
if (!(255 === (255 & seen0))) {
|
|
1161
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1160
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().z5r_1);
|
|
1162
1161
|
}
|
|
1163
|
-
$this.
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1170
|
-
$this.
|
|
1162
|
+
$this.b5s_1 = apiKey;
|
|
1163
|
+
$this.c5s_1 = n;
|
|
1164
|
+
$this.d5s_1 = length;
|
|
1165
|
+
$this.e5s_1 = min;
|
|
1166
|
+
$this.f5s_1 = max;
|
|
1167
|
+
$this.g5s_1 = replacement;
|
|
1168
|
+
$this.h5s_1 = ticketId;
|
|
1169
|
+
$this.i5s_1 = userData;
|
|
1171
1170
|
return $this;
|
|
1172
1171
|
}
|
|
1173
1172
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1175,27 +1174,27 @@
|
|
|
1175
1174
|
}
|
|
1176
1175
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1177
1176
|
Companion_getInstance_6();
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1177
|
+
this.b5s_1 = apiKey;
|
|
1178
|
+
this.c5s_1 = n;
|
|
1179
|
+
this.d5s_1 = length;
|
|
1180
|
+
this.e5s_1 = min;
|
|
1181
|
+
this.f5s_1 = max;
|
|
1182
|
+
this.g5s_1 = replacement;
|
|
1183
|
+
this.h5s_1 = ticketId;
|
|
1184
|
+
this.i5s_1 = userData;
|
|
1186
1185
|
}
|
|
1187
1186
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1188
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1187
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.b5s_1 + ', n=' + this.c5s_1 + ', length=' + toString(this.d5s_1) + ', min=' + this.e5s_1 + ', max=' + this.f5s_1 + ', replacement=' + this.g5s_1 + ', ticketId=' + this.h5s_1 + ', userData=' + toString_0(this.i5s_1) + ')';
|
|
1189
1188
|
};
|
|
1190
1189
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1191
|
-
var result = getStringHashCode(this.
|
|
1192
|
-
result = imul(result, 31) + this.
|
|
1193
|
-
result = imul(result, 31) + hashCode(this.
|
|
1194
|
-
result = imul(result, 31) + this.d5s_1 | 0;
|
|
1190
|
+
var result = getStringHashCode(this.b5s_1);
|
|
1191
|
+
result = imul(result, 31) + this.c5s_1 | 0;
|
|
1192
|
+
result = imul(result, 31) + hashCode(this.d5s_1) | 0;
|
|
1195
1193
|
result = imul(result, 31) + this.e5s_1 | 0;
|
|
1196
|
-
result = imul(result, 31) +
|
|
1197
|
-
result = imul(result, 31) + (this.g5s_1
|
|
1198
|
-
result = imul(result, 31) + (this.h5s_1 == null ? 0 : this.h5s_1
|
|
1194
|
+
result = imul(result, 31) + this.f5s_1 | 0;
|
|
1195
|
+
result = imul(result, 31) + getBooleanHashCode(this.g5s_1) | 0;
|
|
1196
|
+
result = imul(result, 31) + (this.h5s_1 == null ? 0 : getStringHashCode(this.h5s_1)) | 0;
|
|
1197
|
+
result = imul(result, 31) + (this.i5s_1 == null ? 0 : this.i5s_1.hashCode()) | 0;
|
|
1199
1198
|
return result;
|
|
1200
1199
|
};
|
|
1201
1200
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1204,21 +1203,21 @@
|
|
|
1204
1203
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1205
1204
|
return false;
|
|
1206
1205
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1207
|
-
if (!(this.a5s_1 === tmp0_other_with_cast.a5s_1))
|
|
1208
|
-
return false;
|
|
1209
1206
|
if (!(this.b5s_1 === tmp0_other_with_cast.b5s_1))
|
|
1210
1207
|
return false;
|
|
1211
|
-
if (!
|
|
1208
|
+
if (!(this.c5s_1 === tmp0_other_with_cast.c5s_1))
|
|
1212
1209
|
return false;
|
|
1213
|
-
if (!(this.d5s_1
|
|
1210
|
+
if (!equals(this.d5s_1, tmp0_other_with_cast.d5s_1))
|
|
1214
1211
|
return false;
|
|
1215
1212
|
if (!(this.e5s_1 === tmp0_other_with_cast.e5s_1))
|
|
1216
1213
|
return false;
|
|
1217
1214
|
if (!(this.f5s_1 === tmp0_other_with_cast.f5s_1))
|
|
1218
1215
|
return false;
|
|
1219
|
-
if (!(this.g5s_1
|
|
1216
|
+
if (!(this.g5s_1 === tmp0_other_with_cast.g5s_1))
|
|
1220
1217
|
return false;
|
|
1221
|
-
if (!
|
|
1218
|
+
if (!(this.h5s_1 == tmp0_other_with_cast.h5s_1))
|
|
1219
|
+
return false;
|
|
1220
|
+
if (!equals(this.i5s_1, tmp0_other_with_cast.i5s_1))
|
|
1222
1221
|
return false;
|
|
1223
1222
|
return true;
|
|
1224
1223
|
};
|
|
@@ -1233,20 +1232,20 @@
|
|
|
1233
1232
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1234
1233
|
tmp0_serialDesc.s4j('id', false);
|
|
1235
1234
|
tmp0_serialDesc.s4j('count', false);
|
|
1236
|
-
this.
|
|
1235
|
+
this.j5s_1 = tmp0_serialDesc;
|
|
1237
1236
|
}
|
|
1238
|
-
protoOf($serializer_3).
|
|
1239
|
-
var tmp0_desc = this.
|
|
1237
|
+
protoOf($serializer_3).k5s = function (encoder, value) {
|
|
1238
|
+
var tmp0_desc = this.j5s_1;
|
|
1240
1239
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
1241
|
-
tmp1_output.s4d(tmp0_desc, 0, value.
|
|
1242
|
-
tmp1_output.n4d(tmp0_desc, 1, value.
|
|
1240
|
+
tmp1_output.s4d(tmp0_desc, 0, value.l5s_1);
|
|
1241
|
+
tmp1_output.n4d(tmp0_desc, 1, value.m5s_1);
|
|
1243
1242
|
tmp1_output.f4c(tmp0_desc);
|
|
1244
1243
|
};
|
|
1245
1244
|
protoOf($serializer_3).r48 = function (encoder, value) {
|
|
1246
|
-
return this.
|
|
1245
|
+
return this.k5s(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1247
1246
|
};
|
|
1248
1247
|
protoOf($serializer_3).s48 = function (decoder) {
|
|
1249
|
-
var tmp0_desc = this.
|
|
1248
|
+
var tmp0_desc = this.j5s_1;
|
|
1250
1249
|
var tmp1_flag = true;
|
|
1251
1250
|
var tmp2_index = 0;
|
|
1252
1251
|
var tmp3_bitMask0 = 0;
|
|
@@ -1281,7 +1280,7 @@
|
|
|
1281
1280
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1282
1281
|
};
|
|
1283
1282
|
protoOf($serializer_3).q48 = function () {
|
|
1284
|
-
return this.
|
|
1283
|
+
return this.j5s_1;
|
|
1285
1284
|
};
|
|
1286
1285
|
protoOf($serializer_3).h4k = function () {
|
|
1287
1286
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1297,25 +1296,25 @@
|
|
|
1297
1296
|
}
|
|
1298
1297
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1299
1298
|
if (!(3 === (3 & seen0))) {
|
|
1300
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1299
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().j5s_1);
|
|
1301
1300
|
}
|
|
1302
|
-
$this.
|
|
1303
|
-
$this.
|
|
1301
|
+
$this.l5s_1 = id;
|
|
1302
|
+
$this.m5s_1 = count;
|
|
1304
1303
|
return $this;
|
|
1305
1304
|
}
|
|
1306
1305
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1307
1306
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1308
1307
|
}
|
|
1309
1308
|
function CardDecksUserDataDto(id, count) {
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1309
|
+
this.l5s_1 = id;
|
|
1310
|
+
this.m5s_1 = count;
|
|
1312
1311
|
}
|
|
1313
1312
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1314
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1313
|
+
return 'CardDecksUserDataDto(id=' + this.l5s_1 + ', count=' + this.m5s_1 + ')';
|
|
1315
1314
|
};
|
|
1316
1315
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1317
|
-
var result = getStringHashCode(this.
|
|
1318
|
-
result = imul(result, 31) + this.
|
|
1316
|
+
var result = getStringHashCode(this.l5s_1);
|
|
1317
|
+
result = imul(result, 31) + this.m5s_1 | 0;
|
|
1319
1318
|
return result;
|
|
1320
1319
|
};
|
|
1321
1320
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1324,15 +1323,15 @@
|
|
|
1324
1323
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1325
1324
|
return false;
|
|
1326
1325
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1327
|
-
if (!(this.k5s_1 === tmp0_other_with_cast.k5s_1))
|
|
1328
|
-
return false;
|
|
1329
1326
|
if (!(this.l5s_1 === tmp0_other_with_cast.l5s_1))
|
|
1330
1327
|
return false;
|
|
1328
|
+
if (!(this.m5s_1 === tmp0_other_with_cast.m5s_1))
|
|
1329
|
+
return false;
|
|
1331
1330
|
return true;
|
|
1332
1331
|
};
|
|
1333
1332
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1334
1333
|
$serializer_4.call($this);
|
|
1335
|
-
$this.
|
|
1334
|
+
$this.o5s_1 = typeSerial0;
|
|
1336
1335
|
return $this;
|
|
1337
1336
|
}
|
|
1338
1337
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1344,13 +1343,13 @@
|
|
|
1344
1343
|
tmp0_serialDesc.s4j('jsonrpc', false);
|
|
1345
1344
|
tmp0_serialDesc.s4j('result', false);
|
|
1346
1345
|
tmp0_serialDesc.s4j('id', false);
|
|
1347
|
-
this.
|
|
1346
|
+
this.p5s_1 = tmp0_serialDesc;
|
|
1348
1347
|
}
|
|
1349
|
-
protoOf(Companion_5).
|
|
1348
|
+
protoOf(Companion_5).s5r = function (typeSerial0) {
|
|
1350
1349
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1351
1350
|
};
|
|
1352
1351
|
protoOf(Companion_5).s4k = function (typeParamsSerializers) {
|
|
1353
|
-
return this.
|
|
1352
|
+
return this.s5r(typeParamsSerializers[0]);
|
|
1354
1353
|
};
|
|
1355
1354
|
var Companion_instance_7;
|
|
1356
1355
|
function Companion_getInstance_8() {
|
|
@@ -1363,21 +1362,21 @@
|
|
|
1363
1362
|
tmp0_serialDesc.s4j('jsonrpc', false);
|
|
1364
1363
|
tmp0_serialDesc.s4j('result', false);
|
|
1365
1364
|
tmp0_serialDesc.s4j('id', false);
|
|
1366
|
-
this.
|
|
1365
|
+
this.n5s_1 = tmp0_serialDesc;
|
|
1367
1366
|
}
|
|
1368
|
-
protoOf($serializer_4).
|
|
1369
|
-
var tmp0_desc = this.
|
|
1367
|
+
protoOf($serializer_4).q5s = function (encoder, value) {
|
|
1368
|
+
var tmp0_desc = this.n5s_1;
|
|
1370
1369
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
1371
|
-
tmp1_output.s4d(tmp0_desc, 0, value.
|
|
1372
|
-
tmp1_output.u4d(tmp0_desc, 1, this.
|
|
1373
|
-
tmp1_output.s4d(tmp0_desc, 2, value.
|
|
1370
|
+
tmp1_output.s4d(tmp0_desc, 0, value.r5s_1);
|
|
1371
|
+
tmp1_output.u4d(tmp0_desc, 1, this.o5s_1, value.s5s_1);
|
|
1372
|
+
tmp1_output.s4d(tmp0_desc, 2, value.t5s_1);
|
|
1374
1373
|
tmp1_output.f4c(tmp0_desc);
|
|
1375
1374
|
};
|
|
1376
1375
|
protoOf($serializer_4).r48 = function (encoder, value) {
|
|
1377
|
-
return this.
|
|
1376
|
+
return this.q5s(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1378
1377
|
};
|
|
1379
1378
|
protoOf($serializer_4).s48 = function (decoder) {
|
|
1380
|
-
var tmp0_desc = this.
|
|
1379
|
+
var tmp0_desc = this.n5s_1;
|
|
1381
1380
|
var tmp1_flag = true;
|
|
1382
1381
|
var tmp2_index = 0;
|
|
1383
1382
|
var tmp3_bitMask0 = 0;
|
|
@@ -1388,7 +1387,7 @@
|
|
|
1388
1387
|
if (tmp7_input.t4c()) {
|
|
1389
1388
|
tmp4_local0 = tmp7_input.o4c(tmp0_desc, 0);
|
|
1390
1389
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1391
|
-
tmp5_local1 = tmp7_input.q4c(tmp0_desc, 1, this.
|
|
1390
|
+
tmp5_local1 = tmp7_input.q4c(tmp0_desc, 1, this.o5s_1, tmp5_local1);
|
|
1392
1391
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1393
1392
|
tmp6_local2 = tmp7_input.o4c(tmp0_desc, 2);
|
|
1394
1393
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
@@ -1404,7 +1403,7 @@
|
|
|
1404
1403
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1405
1404
|
break;
|
|
1406
1405
|
case 1:
|
|
1407
|
-
tmp5_local1 = tmp7_input.q4c(tmp0_desc, 1, this.
|
|
1406
|
+
tmp5_local1 = tmp7_input.q4c(tmp0_desc, 1, this.o5s_1, tmp5_local1);
|
|
1408
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1409
1408
|
break;
|
|
1410
1409
|
case 2:
|
|
@@ -1419,27 +1418,27 @@
|
|
|
1419
1418
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1420
1419
|
};
|
|
1421
1420
|
protoOf($serializer_4).q48 = function () {
|
|
1422
|
-
return this.
|
|
1421
|
+
return this.n5s_1;
|
|
1423
1422
|
};
|
|
1424
1423
|
protoOf($serializer_4).h4k = function () {
|
|
1425
1424
|
// Inline function 'kotlin.arrayOf' call
|
|
1426
1425
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1427
1426
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1428
|
-
return [StringSerializer_getInstance(), this.
|
|
1427
|
+
return [StringSerializer_getInstance(), this.o5s_1, StringSerializer_getInstance()];
|
|
1429
1428
|
};
|
|
1430
1429
|
protoOf($serializer_4).i4k = function () {
|
|
1431
1430
|
// Inline function 'kotlin.arrayOf' call
|
|
1432
1431
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1433
1432
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1434
|
-
return [this.
|
|
1433
|
+
return [this.o5s_1];
|
|
1435
1434
|
};
|
|
1436
1435
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1437
1436
|
if (!(7 === (7 & seen0))) {
|
|
1438
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1437
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().p5s_1);
|
|
1439
1438
|
}
|
|
1440
|
-
$this.
|
|
1441
|
-
$this.
|
|
1442
|
-
$this.
|
|
1439
|
+
$this.r5s_1 = jsonrpc;
|
|
1440
|
+
$this.s5s_1 = result;
|
|
1441
|
+
$this.t5s_1 = id;
|
|
1443
1442
|
return $this;
|
|
1444
1443
|
}
|
|
1445
1444
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1447,17 +1446,17 @@
|
|
|
1447
1446
|
}
|
|
1448
1447
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1449
1448
|
Companion_getInstance_8();
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1449
|
+
this.r5s_1 = jsonrpc;
|
|
1450
|
+
this.s5s_1 = result;
|
|
1451
|
+
this.t5s_1 = id;
|
|
1453
1452
|
}
|
|
1454
1453
|
protoOf(RandomResponseDto).toString = function () {
|
|
1455
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1454
|
+
return 'RandomResponseDto(jsonrpc=' + this.r5s_1 + ', result=' + toString(this.s5s_1) + ', id=' + this.t5s_1 + ')';
|
|
1456
1455
|
};
|
|
1457
1456
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1458
|
-
var result = getStringHashCode(this.
|
|
1459
|
-
result = imul(result, 31) + hashCode(this.
|
|
1460
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1457
|
+
var result = getStringHashCode(this.r5s_1);
|
|
1458
|
+
result = imul(result, 31) + hashCode(this.s5s_1) | 0;
|
|
1459
|
+
result = imul(result, 31) + getStringHashCode(this.t5s_1) | 0;
|
|
1461
1460
|
return result;
|
|
1462
1461
|
};
|
|
1463
1462
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1466,11 +1465,11 @@
|
|
|
1466
1465
|
if (!(other instanceof RandomResponseDto))
|
|
1467
1466
|
return false;
|
|
1468
1467
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1469
|
-
if (!(this.
|
|
1468
|
+
if (!(this.r5s_1 === tmp0_other_with_cast.r5s_1))
|
|
1470
1469
|
return false;
|
|
1471
|
-
if (!equals(this.
|
|
1470
|
+
if (!equals(this.s5s_1, tmp0_other_with_cast.s5s_1))
|
|
1472
1471
|
return false;
|
|
1473
|
-
if (!(this.
|
|
1472
|
+
if (!(this.t5s_1 === tmp0_other_with_cast.t5s_1))
|
|
1474
1473
|
return false;
|
|
1475
1474
|
return true;
|
|
1476
1475
|
};
|
|
@@ -1489,24 +1488,24 @@
|
|
|
1489
1488
|
tmp0_serialDesc.s4j('bitsLeft', false);
|
|
1490
1489
|
tmp0_serialDesc.s4j('requestsLeft', false);
|
|
1491
1490
|
tmp0_serialDesc.s4j('advisoryDelay', false);
|
|
1492
|
-
this.
|
|
1491
|
+
this.u5s_1 = tmp0_serialDesc;
|
|
1493
1492
|
}
|
|
1494
|
-
protoOf($serializer_5).
|
|
1495
|
-
var tmp0_desc = this.
|
|
1493
|
+
protoOf($serializer_5).v5s = function (encoder, value) {
|
|
1494
|
+
var tmp0_desc = this.u5s_1;
|
|
1496
1495
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
1497
|
-
tmp1_output.u4d(tmp0_desc, 0, $serializer_getInstance_4(), value.
|
|
1498
|
-
tmp1_output.w4d(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1499
|
-
tmp1_output.w4d(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
1500
|
-
tmp1_output.w4d(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
1501
|
-
tmp1_output.w4d(tmp0_desc, 4, IntSerializer_getInstance(), value.
|
|
1502
|
-
tmp1_output.w4d(tmp0_desc, 5, IntSerializer_getInstance(), value.
|
|
1496
|
+
tmp1_output.u4d(tmp0_desc, 0, $serializer_getInstance_4(), value.w5s_1);
|
|
1497
|
+
tmp1_output.w4d(tmp0_desc, 1, StringSerializer_getInstance(), value.x5s_1);
|
|
1498
|
+
tmp1_output.w4d(tmp0_desc, 2, IntSerializer_getInstance(), value.y5s_1);
|
|
1499
|
+
tmp1_output.w4d(tmp0_desc, 3, IntSerializer_getInstance(), value.z5s_1);
|
|
1500
|
+
tmp1_output.w4d(tmp0_desc, 4, IntSerializer_getInstance(), value.a5t_1);
|
|
1501
|
+
tmp1_output.w4d(tmp0_desc, 5, IntSerializer_getInstance(), value.b5t_1);
|
|
1503
1502
|
tmp1_output.f4c(tmp0_desc);
|
|
1504
1503
|
};
|
|
1505
1504
|
protoOf($serializer_5).r48 = function (encoder, value) {
|
|
1506
|
-
return this.
|
|
1505
|
+
return this.v5s(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1507
1506
|
};
|
|
1508
1507
|
protoOf($serializer_5).s48 = function (decoder) {
|
|
1509
|
-
var tmp0_desc = this.
|
|
1508
|
+
var tmp0_desc = this.u5s_1;
|
|
1510
1509
|
var tmp1_flag = true;
|
|
1511
1510
|
var tmp2_index = 0;
|
|
1512
1511
|
var tmp3_bitMask0 = 0;
|
|
@@ -1569,7 +1568,7 @@
|
|
|
1569
1568
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1570
1569
|
};
|
|
1571
1570
|
protoOf($serializer_5).q48 = function () {
|
|
1572
|
-
return this.
|
|
1571
|
+
return this.u5s_1;
|
|
1573
1572
|
};
|
|
1574
1573
|
protoOf($serializer_5).h4k = function () {
|
|
1575
1574
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1585,37 +1584,37 @@
|
|
|
1585
1584
|
}
|
|
1586
1585
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1587
1586
|
if (!(63 === (63 & seen0))) {
|
|
1588
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1587
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().u5s_1);
|
|
1589
1588
|
}
|
|
1590
|
-
$this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1595
|
-
$this.
|
|
1589
|
+
$this.w5s_1 = random;
|
|
1590
|
+
$this.x5s_1 = signature;
|
|
1591
|
+
$this.y5s_1 = bitsUsed;
|
|
1592
|
+
$this.z5s_1 = bitsLeft;
|
|
1593
|
+
$this.a5t_1 = requestsLeft;
|
|
1594
|
+
$this.b5t_1 = advisoryDelay;
|
|
1596
1595
|
return $this;
|
|
1597
1596
|
}
|
|
1598
1597
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1599
1598
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1600
1599
|
}
|
|
1601
1600
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1601
|
+
this.w5s_1 = random;
|
|
1602
|
+
this.x5s_1 = signature;
|
|
1603
|
+
this.y5s_1 = bitsUsed;
|
|
1604
|
+
this.z5s_1 = bitsLeft;
|
|
1605
|
+
this.a5t_1 = requestsLeft;
|
|
1606
|
+
this.b5t_1 = advisoryDelay;
|
|
1608
1607
|
}
|
|
1609
1608
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1610
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1609
|
+
return 'IntegerSequencesResultDto(random=' + this.w5s_1.toString() + ', signature=' + this.x5s_1 + ', bitsUsed=' + this.y5s_1 + ', bitsLeft=' + this.z5s_1 + ', requestsLeft=' + this.a5t_1 + ', advisoryDelay=' + this.b5t_1 + ')';
|
|
1611
1610
|
};
|
|
1612
1611
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1613
|
-
var result = this.
|
|
1614
|
-
result = imul(result, 31) + (this.
|
|
1615
|
-
result = imul(result, 31) + (this.x5s_1 == null ? 0 : this.x5s_1) | 0;
|
|
1612
|
+
var result = this.w5s_1.hashCode();
|
|
1613
|
+
result = imul(result, 31) + (this.x5s_1 == null ? 0 : getStringHashCode(this.x5s_1)) | 0;
|
|
1616
1614
|
result = imul(result, 31) + (this.y5s_1 == null ? 0 : this.y5s_1) | 0;
|
|
1617
1615
|
result = imul(result, 31) + (this.z5s_1 == null ? 0 : this.z5s_1) | 0;
|
|
1618
1616
|
result = imul(result, 31) + (this.a5t_1 == null ? 0 : this.a5t_1) | 0;
|
|
1617
|
+
result = imul(result, 31) + (this.b5t_1 == null ? 0 : this.b5t_1) | 0;
|
|
1619
1618
|
return result;
|
|
1620
1619
|
};
|
|
1621
1620
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1624,9 +1623,7 @@
|
|
|
1624
1623
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1625
1624
|
return false;
|
|
1626
1625
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1627
|
-
if (!this.
|
|
1628
|
-
return false;
|
|
1629
|
-
if (!(this.w5s_1 == tmp0_other_with_cast.w5s_1))
|
|
1626
|
+
if (!this.w5s_1.equals(tmp0_other_with_cast.w5s_1))
|
|
1630
1627
|
return false;
|
|
1631
1628
|
if (!(this.x5s_1 == tmp0_other_with_cast.x5s_1))
|
|
1632
1629
|
return false;
|
|
@@ -1636,6 +1633,8 @@
|
|
|
1636
1633
|
return false;
|
|
1637
1634
|
if (!(this.a5t_1 == tmp0_other_with_cast.a5t_1))
|
|
1638
1635
|
return false;
|
|
1636
|
+
if (!(this.b5t_1 == tmp0_other_with_cast.b5t_1))
|
|
1637
|
+
return false;
|
|
1639
1638
|
return true;
|
|
1640
1639
|
};
|
|
1641
1640
|
function Companion_7() {
|
|
@@ -1644,7 +1643,7 @@
|
|
|
1644
1643
|
// Inline function 'kotlin.arrayOf' call
|
|
1645
1644
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1646
1645
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1647
|
-
tmp.
|
|
1646
|
+
tmp.c5t_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1648
1647
|
}
|
|
1649
1648
|
var Companion_instance_9;
|
|
1650
1649
|
function Companion_getInstance_10() {
|
|
@@ -1658,22 +1657,22 @@
|
|
|
1658
1657
|
tmp0_serialDesc.s4j('data', false);
|
|
1659
1658
|
tmp0_serialDesc.s4j('completionTime', false);
|
|
1660
1659
|
tmp0_serialDesc.s4j('ticketId', false);
|
|
1661
|
-
this.
|
|
1660
|
+
this.d5t_1 = tmp0_serialDesc;
|
|
1662
1661
|
}
|
|
1663
|
-
protoOf($serializer_6).
|
|
1664
|
-
var tmp0_desc = this.
|
|
1662
|
+
protoOf($serializer_6).e5t = function (encoder, value) {
|
|
1663
|
+
var tmp0_desc = this.d5t_1;
|
|
1665
1664
|
var tmp1_output = encoder.e4c(tmp0_desc);
|
|
1666
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1667
|
-
tmp1_output.u4d(tmp0_desc, 0, tmp2_cached[0], value.
|
|
1668
|
-
tmp1_output.s4d(tmp0_desc, 1, value.
|
|
1669
|
-
tmp1_output.w4d(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1665
|
+
var tmp2_cached = Companion_getInstance_10().c5t_1;
|
|
1666
|
+
tmp1_output.u4d(tmp0_desc, 0, tmp2_cached[0], value.f5t_1);
|
|
1667
|
+
tmp1_output.s4d(tmp0_desc, 1, value.g5t_1);
|
|
1668
|
+
tmp1_output.w4d(tmp0_desc, 2, StringSerializer_getInstance(), value.h5t_1);
|
|
1670
1669
|
tmp1_output.f4c(tmp0_desc);
|
|
1671
1670
|
};
|
|
1672
1671
|
protoOf($serializer_6).r48 = function (encoder, value) {
|
|
1673
|
-
return this.
|
|
1672
|
+
return this.e5t(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1674
1673
|
};
|
|
1675
1674
|
protoOf($serializer_6).s48 = function (decoder) {
|
|
1676
|
-
var tmp0_desc = this.
|
|
1675
|
+
var tmp0_desc = this.d5t_1;
|
|
1677
1676
|
var tmp1_flag = true;
|
|
1678
1677
|
var tmp2_index = 0;
|
|
1679
1678
|
var tmp3_bitMask0 = 0;
|
|
@@ -1681,7 +1680,7 @@
|
|
|
1681
1680
|
var tmp5_local1 = null;
|
|
1682
1681
|
var tmp6_local2 = null;
|
|
1683
1682
|
var tmp7_input = decoder.e4c(tmp0_desc);
|
|
1684
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1683
|
+
var tmp8_cached = Companion_getInstance_10().c5t_1;
|
|
1685
1684
|
if (tmp7_input.t4c()) {
|
|
1686
1685
|
tmp4_local0 = tmp7_input.q4c(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1687
1686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1716,13 +1715,13 @@
|
|
|
1716
1715
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1717
1716
|
};
|
|
1718
1717
|
protoOf($serializer_6).q48 = function () {
|
|
1719
|
-
return this.
|
|
1718
|
+
return this.d5t_1;
|
|
1720
1719
|
};
|
|
1721
1720
|
protoOf($serializer_6).h4k = function () {
|
|
1722
1721
|
// Inline function 'kotlin.arrayOf' call
|
|
1723
1722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1724
1723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1725
|
-
return [Companion_getInstance_10().
|
|
1724
|
+
return [Companion_getInstance_10().c5t_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1726
1725
|
};
|
|
1727
1726
|
var $serializer_instance_4;
|
|
1728
1727
|
function $serializer_getInstance_4() {
|
|
@@ -1732,11 +1731,11 @@
|
|
|
1732
1731
|
}
|
|
1733
1732
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1734
1733
|
if (!(7 === (7 & seen0))) {
|
|
1735
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1734
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().d5t_1);
|
|
1736
1735
|
}
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1739
|
-
$this.
|
|
1736
|
+
$this.f5t_1 = data;
|
|
1737
|
+
$this.g5t_1 = completionTime;
|
|
1738
|
+
$this.h5t_1 = ticketId;
|
|
1740
1739
|
return $this;
|
|
1741
1740
|
}
|
|
1742
1741
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1745,12 +1744,12 @@
|
|
|
1745
1744
|
function IntegerSequencesDataDto() {
|
|
1746
1745
|
}
|
|
1747
1746
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1748
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1747
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.f5t_1) + ', completionTime=' + this.g5t_1 + ', ticketId=' + this.h5t_1 + ')';
|
|
1749
1748
|
};
|
|
1750
1749
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1751
|
-
var result = hashCode(this.
|
|
1752
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1753
|
-
result = imul(result, 31) + (this.
|
|
1750
|
+
var result = hashCode(this.f5t_1);
|
|
1751
|
+
result = imul(result, 31) + getStringHashCode(this.g5t_1) | 0;
|
|
1752
|
+
result = imul(result, 31) + (this.h5t_1 == null ? 0 : getStringHashCode(this.h5t_1)) | 0;
|
|
1754
1753
|
return result;
|
|
1755
1754
|
};
|
|
1756
1755
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1759,11 +1758,11 @@
|
|
|
1759
1758
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1760
1759
|
return false;
|
|
1761
1760
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1762
|
-
if (!equals(this.
|
|
1761
|
+
if (!equals(this.f5t_1, tmp0_other_with_cast.f5t_1))
|
|
1763
1762
|
return false;
|
|
1764
|
-
if (!(this.
|
|
1763
|
+
if (!(this.g5t_1 === tmp0_other_with_cast.g5t_1))
|
|
1765
1764
|
return false;
|
|
1766
|
-
if (!(this.
|
|
1765
|
+
if (!(this.h5t_1 == tmp0_other_with_cast.h5t_1))
|
|
1767
1766
|
return false;
|
|
1768
1767
|
return true;
|
|
1769
1768
|
};
|
|
@@ -1782,7 +1781,7 @@
|
|
|
1782
1781
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1783
1782
|
}
|
|
1784
1783
|
function Companion_8() {
|
|
1785
|
-
this.
|
|
1784
|
+
this.v5t_1 = 52;
|
|
1786
1785
|
}
|
|
1787
1786
|
var Companion_instance_10;
|
|
1788
1787
|
function Companion_getInstance_11() {
|
|
@@ -1790,13 +1789,13 @@
|
|
|
1790
1789
|
}
|
|
1791
1790
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1792
1791
|
CoroutineImpl.call(this, resultContinuation);
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1792
|
+
this.e5u_1 = _this__u8e3s4;
|
|
1793
|
+
this.f5u_1 = min;
|
|
1794
|
+
this.g5u_1 = max;
|
|
1795
|
+
this.h5u_1 = decksCount;
|
|
1796
|
+
this.i5u_1 = cardsCount;
|
|
1797
|
+
this.j5u_1 = userData;
|
|
1798
|
+
this.k5u_1 = signed;
|
|
1800
1799
|
}
|
|
1801
1800
|
protoOf($getRandomCardDecksCOROUTINE$1).p9 = function () {
|
|
1802
1801
|
var suspendResult = this.j9_1;
|
|
@@ -1808,27 +1807,27 @@
|
|
|
1808
1807
|
this.i9_1 = 6;
|
|
1809
1808
|
this.i9_1 = 5;
|
|
1810
1809
|
var tmp_0 = this;
|
|
1811
|
-
tmp_0.
|
|
1810
|
+
tmp_0.l5u_1 = this.e5u_1.u5u_1;
|
|
1812
1811
|
var tmp_1 = this;
|
|
1813
|
-
tmp_1.
|
|
1812
|
+
tmp_1.m5u_1 = this.l5u_1;
|
|
1814
1813
|
var tmp_2 = this;
|
|
1815
1814
|
var this_0 = new HttpRequestBuilder();
|
|
1816
1815
|
url(this_0, '/json-rpc/4/invoke');
|
|
1817
|
-
var tmp11_id = this.
|
|
1818
|
-
var tmp12_method = this.
|
|
1819
|
-
var tmp8_apiKey = this.
|
|
1820
|
-
var size = this.
|
|
1816
|
+
var tmp11_id = this.j5u_1.id;
|
|
1817
|
+
var tmp12_method = this.k5u_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1818
|
+
var tmp8_apiKey = this.e5u_1.v5u_1;
|
|
1819
|
+
var size = this.h5u_1;
|
|
1821
1820
|
var list = ArrayList_init_$Create$(size);
|
|
1822
1821
|
var inductionVariable = 0;
|
|
1823
1822
|
if (inductionVariable < size)
|
|
1824
1823
|
do {
|
|
1825
1824
|
var index = inductionVariable;
|
|
1826
1825
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1827
|
-
list.e(this.
|
|
1826
|
+
list.e(this.i5u_1);
|
|
1828
1827
|
}
|
|
1829
1828
|
while (inductionVariable < size);
|
|
1830
|
-
var tmp10_userData = this.
|
|
1831
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1829
|
+
var tmp10_userData = this.k5u_1 ? mapToDto(this.j5u_1) : null;
|
|
1830
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.h5u_1, list, this.f5u_1, this.g5u_1, false, null, tmp10_userData);
|
|
1832
1831
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1833
1832
|
if (body == null) {
|
|
1834
1833
|
this_0.w2z_1 = NullBody_instance;
|
|
@@ -1873,25 +1872,25 @@
|
|
|
1873
1872
|
}
|
|
1874
1873
|
}
|
|
1875
1874
|
|
|
1876
|
-
tmp_2.
|
|
1877
|
-
this.
|
|
1875
|
+
tmp_2.n5u_1 = this_0;
|
|
1876
|
+
this.n5u_1.u2z_1 = Companion_getInstance().m2o_1;
|
|
1878
1877
|
var tmp_11 = this;
|
|
1879
|
-
tmp_11.
|
|
1878
|
+
tmp_11.o5u_1 = this.m5u_1;
|
|
1880
1879
|
var tmp_12 = this;
|
|
1881
|
-
tmp_12.
|
|
1880
|
+
tmp_12.p5u_1 = this.n5u_1;
|
|
1882
1881
|
this.h9_1 = 1;
|
|
1883
|
-
suspendResult = (new HttpStatement(this.
|
|
1882
|
+
suspendResult = (new HttpStatement(this.p5u_1, this.o5u_1)).c3t(this);
|
|
1884
1883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1885
1884
|
return suspendResult;
|
|
1886
1885
|
}
|
|
1887
1886
|
|
|
1888
1887
|
continue $sm;
|
|
1889
1888
|
case 1:
|
|
1890
|
-
this.
|
|
1889
|
+
this.q5u_1 = suspendResult;
|
|
1891
1890
|
var tmp_13 = this;
|
|
1892
|
-
tmp_13.
|
|
1891
|
+
tmp_13.r5u_1 = this.q5u_1;
|
|
1893
1892
|
this.h9_1 = 2;
|
|
1894
|
-
var tmp_14 = this.
|
|
1893
|
+
var tmp_14 = this.r5u_1.b33();
|
|
1895
1894
|
var tmp_15 = JsType_instance;
|
|
1896
1895
|
var tmp_16 = getKClass(JsonObject);
|
|
1897
1896
|
var tmp_17;
|
|
@@ -1916,9 +1915,9 @@
|
|
|
1916
1915
|
continue $sm;
|
|
1917
1916
|
case 2:
|
|
1918
1917
|
var tmp_19 = this;
|
|
1919
|
-
tmp_19.
|
|
1918
|
+
tmp_19.s5u_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1920
1919
|
this.h9_1 = 3;
|
|
1921
|
-
suspendResult = throwIfError(this.
|
|
1920
|
+
suspendResult = throwIfError(this.e5u_1, this.s5u_1, this.q5u_1, this);
|
|
1922
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1923
1922
|
return suspendResult;
|
|
1924
1923
|
}
|
|
@@ -1926,9 +1925,9 @@
|
|
|
1926
1925
|
continue $sm;
|
|
1927
1926
|
case 3:
|
|
1928
1927
|
var tmp_20 = this;
|
|
1929
|
-
tmp_20.
|
|
1928
|
+
tmp_20.t5u_1 = this.q5u_1;
|
|
1930
1929
|
this.h9_1 = 4;
|
|
1931
|
-
var tmp_21 = this.
|
|
1930
|
+
var tmp_21 = this.t5u_1.b33();
|
|
1932
1931
|
var tmp_22 = JsType_instance;
|
|
1933
1932
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1934
1933
|
var tmp_24;
|
|
@@ -1953,10 +1952,10 @@
|
|
|
1953
1952
|
continue $sm;
|
|
1954
1953
|
case 4:
|
|
1955
1954
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1956
|
-
var randomJson = extractRandomResult(this.
|
|
1957
|
-
var tmp14_cardDecks = responseDto.
|
|
1958
|
-
var tmp15_signature = responseDto.
|
|
1959
|
-
var tmp16_id = responseDto.
|
|
1955
|
+
var randomJson = extractRandomResult(this.e5u_1, this.s5u_1);
|
|
1956
|
+
var tmp14_cardDecks = responseDto.s5s_1.w5s_1.f5t_1;
|
|
1957
|
+
var tmp15_signature = responseDto.s5s_1.x5s_1;
|
|
1958
|
+
var tmp16_id = responseDto.t5s_1;
|
|
1960
1959
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1961
1960
|
case 5:
|
|
1962
1961
|
this.i9_1 = 6;
|
|
@@ -1988,9 +1987,9 @@
|
|
|
1988
1987
|
};
|
|
1989
1988
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1990
1989
|
CoroutineImpl.call(this, resultContinuation);
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1993
|
-
this.
|
|
1990
|
+
this.r5t_1 = _this__u8e3s4;
|
|
1991
|
+
this.s5t_1 = bodyAsJson;
|
|
1992
|
+
this.t5t_1 = response;
|
|
1994
1993
|
}
|
|
1995
1994
|
protoOf($throwIfErrorCOROUTINE$2).p9 = function () {
|
|
1996
1995
|
var suspendResult = this.j9_1;
|
|
@@ -2000,12 +1999,12 @@
|
|
|
2000
1999
|
switch (tmp) {
|
|
2001
2000
|
case 0:
|
|
2002
2001
|
this.i9_1 = 3;
|
|
2003
|
-
var this_0 = this.
|
|
2002
|
+
var this_0 = this.s5t_1;
|
|
2004
2003
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
|
|
2005
2004
|
var tmp_0 = this;
|
|
2006
|
-
tmp_0.
|
|
2005
|
+
tmp_0.u5t_1 = this.t5t_1;
|
|
2007
2006
|
this.h9_1 = 2;
|
|
2008
|
-
var tmp_1 = this.
|
|
2007
|
+
var tmp_1 = this.u5t_1.b33();
|
|
2009
2008
|
var tmp_2 = JsType_instance;
|
|
2010
2009
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2011
2010
|
var tmp_4;
|
|
@@ -2035,10 +2034,10 @@
|
|
|
2035
2034
|
return Unit_instance;
|
|
2036
2035
|
case 2:
|
|
2037
2036
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2038
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2039
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2040
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2041
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2037
|
+
var tmp18_safe_receiver = errorResponseDto.k5r_1;
|
|
2038
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.n5r_1;
|
|
2039
|
+
var tmp19_safe_receiver = errorResponseDto.k5r_1;
|
|
2040
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.o5r_1);
|
|
2042
2041
|
case 3:
|
|
2043
2042
|
throw this.k9_1;
|
|
2044
2043
|
}
|
|
@@ -2054,10 +2053,10 @@
|
|
|
2054
2053
|
while (true);
|
|
2055
2054
|
};
|
|
2056
2055
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2057
|
-
this.
|
|
2058
|
-
this.
|
|
2056
|
+
this.u5u_1 = client;
|
|
2057
|
+
this.v5u_1 = apiKey;
|
|
2059
2058
|
}
|
|
2060
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2059
|
+
protoOf(RandomOrgApiServiceImpl).i5t = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2061
2060
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2062
2061
|
tmp.j9_1 = Unit_instance;
|
|
2063
2062
|
tmp.k9_1 = null;
|
|
@@ -2084,19 +2083,19 @@
|
|
|
2084
2083
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2085
2084
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2086
2085
|
}
|
|
2087
|
-
protoOf(PoolParams).
|
|
2086
|
+
protoOf(PoolParams).d5r = function () {
|
|
2088
2087
|
return this.poolSize;
|
|
2089
2088
|
};
|
|
2090
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).e5r = function () {
|
|
2091
2090
|
return this.thresholdForUsedPool;
|
|
2092
2091
|
};
|
|
2093
|
-
protoOf(PoolParams).
|
|
2092
|
+
protoOf(PoolParams).w5u = function () {
|
|
2094
2093
|
return this.requestDurationWarn;
|
|
2095
2094
|
};
|
|
2096
|
-
protoOf(PoolParams).
|
|
2095
|
+
protoOf(PoolParams).x5u = function () {
|
|
2097
2096
|
return this.failedRequestAttempts;
|
|
2098
2097
|
};
|
|
2099
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).y5u = function () {
|
|
2100
2099
|
return this.failedAttemptCooldown;
|
|
2101
2100
|
};
|
|
2102
2101
|
protoOf(PoolParams).se = function () {
|
|
@@ -2108,13 +2107,13 @@
|
|
|
2108
2107
|
protoOf(PoolParams).kk = function () {
|
|
2109
2108
|
return this.requestDurationWarn;
|
|
2110
2109
|
};
|
|
2111
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).v5q = function () {
|
|
2112
2111
|
return this.failedRequestAttempts;
|
|
2113
2112
|
};
|
|
2114
|
-
protoOf(PoolParams).
|
|
2113
|
+
protoOf(PoolParams).z5u = function () {
|
|
2115
2114
|
return this.failedAttemptCooldown;
|
|
2116
2115
|
};
|
|
2117
|
-
protoOf(PoolParams).
|
|
2116
|
+
protoOf(PoolParams).a5v = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2118
2117
|
return new PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2119
2118
|
};
|
|
2120
2119
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2123,7 +2122,7 @@
|
|
|
2123
2122
|
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2124
2123
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2125
2124
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2126
|
-
return this.
|
|
2125
|
+
return this.a5v(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2127
2126
|
};
|
|
2128
2127
|
protoOf(PoolParams).toString = function () {
|
|
2129
2128
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', requestDurationWarn=' + this.requestDurationWarn + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2160,74 +2159,74 @@
|
|
|
2160
2159
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2161
2160
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2162
2161
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2162
|
+
this.e5v_1 = randomResult;
|
|
2163
|
+
this.f5v_1 = usedByGames;
|
|
2164
|
+
this.g5v_1 = reservedCardDecks;
|
|
2165
|
+
this.h5v_1 = isUsed;
|
|
2167
2166
|
}
|
|
2168
|
-
protoOf(RandomPoolValue).
|
|
2169
|
-
return this.
|
|
2167
|
+
protoOf(RandomPoolValue).i5v = function () {
|
|
2168
|
+
return this.e5v_1.n5q_1.m();
|
|
2170
2169
|
};
|
|
2171
|
-
protoOf(RandomPoolValue).
|
|
2172
|
-
if (this.
|
|
2170
|
+
protoOf(RandomPoolValue).j5v = function (minRoundsCount) {
|
|
2171
|
+
if (this.h5v_1) {
|
|
2173
2172
|
return false;
|
|
2174
2173
|
}
|
|
2175
|
-
var availableCount = this.
|
|
2174
|
+
var availableCount = this.i5v() - this.g5v_1 | 0;
|
|
2176
2175
|
return availableCount >= minRoundsCount;
|
|
2177
2176
|
};
|
|
2178
|
-
protoOf(RandomPoolValue).
|
|
2179
|
-
var lastReservedCardDeckIndex = this.
|
|
2177
|
+
protoOf(RandomPoolValue).k5v = function (gameId, reservedCardDecks, thresholdForUsedPool) {
|
|
2178
|
+
var lastReservedCardDeckIndex = this.g5v_1 - 1 | 0;
|
|
2180
2179
|
// Inline function 'kotlin.apply' call
|
|
2181
|
-
var this_0 = toMutableMap(this.
|
|
2180
|
+
var this_0 = toMutableMap(this.f5v_1);
|
|
2182
2181
|
// Inline function 'kotlin.contracts.contract' call
|
|
2183
2182
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2184
2183
|
this_0.k2(gameId, lastReservedCardDeckIndex + 1 | 0);
|
|
2185
2184
|
var newNewUsedBy = toMap(this_0);
|
|
2186
|
-
var newReservedCardDecks = this.
|
|
2187
|
-
return this.
|
|
2185
|
+
var newReservedCardDecks = this.g5v_1 + reservedCardDecks | 0;
|
|
2186
|
+
return this.l5v(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.i5v());
|
|
2188
2187
|
};
|
|
2189
|
-
protoOf(RandomPoolValue).
|
|
2190
|
-
var currentCardDeckIndex = getValue(this.
|
|
2188
|
+
protoOf(RandomPoolValue).m5v = function (gameId) {
|
|
2189
|
+
var currentCardDeckIndex = getValue(this.f5v_1, gameId);
|
|
2191
2190
|
var tmp;
|
|
2192
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2191
|
+
if (currentCardDeckIndex === get_lastIndex(this.e5v_1.n5q_1)) {
|
|
2193
2192
|
tmp = 0;
|
|
2194
2193
|
} else {
|
|
2195
2194
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2196
2195
|
}
|
|
2197
2196
|
var newCardDeckIndex = tmp;
|
|
2198
2197
|
// Inline function 'kotlin.apply' call
|
|
2199
|
-
var this_0 = toMutableMap(this.
|
|
2198
|
+
var this_0 = toMutableMap(this.f5v_1);
|
|
2200
2199
|
// Inline function 'kotlin.contracts.contract' call
|
|
2201
2200
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2202
2201
|
this_0.k2(gameId, newCardDeckIndex);
|
|
2203
2202
|
var newNewUsedBy = toMap(this_0);
|
|
2204
|
-
return this.
|
|
2203
|
+
return this.l5v(VOID, newNewUsedBy);
|
|
2205
2204
|
};
|
|
2206
|
-
protoOf(RandomPoolValue).
|
|
2207
|
-
return this.
|
|
2205
|
+
protoOf(RandomPoolValue).n5v = function (gameId, reservedCardDecks) {
|
|
2206
|
+
return this.l5v(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
|
|
2208
2207
|
};
|
|
2209
|
-
protoOf(RandomPoolValue).
|
|
2210
|
-
var index = getValue(this.
|
|
2211
|
-
return new GameCardDeckData(index, this.
|
|
2208
|
+
protoOf(RandomPoolValue).o5v = function (gameId) {
|
|
2209
|
+
var index = getValue(this.f5v_1, gameId);
|
|
2210
|
+
return new GameCardDeckData(index, this.e5v_1.n5q_1.o(index));
|
|
2212
2211
|
};
|
|
2213
|
-
protoOf(RandomPoolValue).
|
|
2212
|
+
protoOf(RandomPoolValue).p5v = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2214
2213
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2215
2214
|
};
|
|
2216
|
-
protoOf(RandomPoolValue).
|
|
2217
|
-
randomResult = randomResult === VOID ? this.
|
|
2218
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2219
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2220
|
-
isUsed = isUsed === VOID ? this.
|
|
2221
|
-
return $super === VOID ? this.
|
|
2215
|
+
protoOf(RandomPoolValue).l5v = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2216
|
+
randomResult = randomResult === VOID ? this.e5v_1 : randomResult;
|
|
2217
|
+
usedByGames = usedByGames === VOID ? this.f5v_1 : usedByGames;
|
|
2218
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.g5v_1 : reservedCardDecks;
|
|
2219
|
+
isUsed = isUsed === VOID ? this.h5v_1 : isUsed;
|
|
2220
|
+
return $super === VOID ? this.p5v(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.p5v.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2222
2221
|
};
|
|
2223
2222
|
protoOf(RandomPoolValue).toString = function () {
|
|
2224
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2223
|
+
return 'RandomPoolValue(randomResult=' + this.e5v_1.toString() + ', usedByGames=' + toString(this.f5v_1) + ', reservedCardDecks=' + this.g5v_1 + ', isUsed=' + this.h5v_1 + ')';
|
|
2225
2224
|
};
|
|
2226
2225
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2227
|
-
var result = this.
|
|
2228
|
-
result = imul(result, 31) + hashCode(this.
|
|
2229
|
-
result = imul(result, 31) + this.
|
|
2230
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2226
|
+
var result = this.e5v_1.hashCode();
|
|
2227
|
+
result = imul(result, 31) + hashCode(this.f5v_1) | 0;
|
|
2228
|
+
result = imul(result, 31) + this.g5v_1 | 0;
|
|
2229
|
+
result = imul(result, 31) + getBooleanHashCode(this.h5v_1) | 0;
|
|
2231
2230
|
return result;
|
|
2232
2231
|
};
|
|
2233
2232
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2236,27 +2235,27 @@
|
|
|
2236
2235
|
if (!(other instanceof RandomPoolValue))
|
|
2237
2236
|
return false;
|
|
2238
2237
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2239
|
-
if (!this.
|
|
2240
|
-
return false;
|
|
2241
|
-
if (!equals(this.e5v_1, tmp0_other_with_cast.e5v_1))
|
|
2238
|
+
if (!this.e5v_1.equals(tmp0_other_with_cast.e5v_1))
|
|
2242
2239
|
return false;
|
|
2243
|
-
if (!(this.f5v_1
|
|
2240
|
+
if (!equals(this.f5v_1, tmp0_other_with_cast.f5v_1))
|
|
2244
2241
|
return false;
|
|
2245
2242
|
if (!(this.g5v_1 === tmp0_other_with_cast.g5v_1))
|
|
2246
2243
|
return false;
|
|
2244
|
+
if (!(this.h5v_1 === tmp0_other_with_cast.h5v_1))
|
|
2245
|
+
return false;
|
|
2247
2246
|
return true;
|
|
2248
2247
|
};
|
|
2249
2248
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2255
|
-
this.
|
|
2256
|
-
this.
|
|
2249
|
+
this.y5v_1 = this$0;
|
|
2250
|
+
this.z5v_1 = $minRoundsCountInPool;
|
|
2251
|
+
this.a5w_1 = $userData;
|
|
2252
|
+
this.b5w_1 = $min;
|
|
2253
|
+
this.c5w_1 = $max;
|
|
2254
|
+
this.d5w_1 = $cardsCount;
|
|
2255
|
+
this.e5w_1 = $signed;
|
|
2257
2256
|
CoroutineImpl.call(this, resultContinuation);
|
|
2258
2257
|
}
|
|
2259
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2258
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).g5w = function ($this$withTimeout, $completion) {
|
|
2260
2259
|
var tmp = this.i1f($this$withTimeout, $completion);
|
|
2261
2260
|
tmp.j9_1 = Unit_instance;
|
|
2262
2261
|
tmp.k9_1 = null;
|
|
@@ -2266,7 +2265,7 @@
|
|
|
2266
2265
|
return tmp_0;
|
|
2267
2266
|
};
|
|
2268
2267
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).z9 = function (p1, $completion) {
|
|
2269
|
-
return this.
|
|
2268
|
+
return this.g5w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2270
2269
|
};
|
|
2271
2270
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).p9 = function () {
|
|
2272
2271
|
var suspendResult = this.j9_1;
|
|
@@ -2277,7 +2276,7 @@
|
|
|
2277
2276
|
case 0:
|
|
2278
2277
|
this.i9_1 = 2;
|
|
2279
2278
|
this.h9_1 = 1;
|
|
2280
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2279
|
+
suspendResult = getOrLoadGameCardDeckData(this.y5v_1, this.z5v_1, this.a5w_1, this.b5w_1, this.c5w_1, this.d5w_1, this.e5w_1, this);
|
|
2281
2280
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2282
2281
|
return suspendResult;
|
|
2283
2282
|
}
|
|
@@ -2301,14 +2300,14 @@
|
|
|
2301
2300
|
while (true);
|
|
2302
2301
|
};
|
|
2303
2302
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).i1f = function ($this$withTimeout, completion) {
|
|
2304
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.
|
|
2305
|
-
i.
|
|
2303
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.y5v_1, this.z5v_1, this.a5w_1, this.b5w_1, this.c5w_1, this.d5w_1, this.e5w_1, completion);
|
|
2304
|
+
i.f5w_1 = $this$withTimeout;
|
|
2306
2305
|
return i;
|
|
2307
2306
|
};
|
|
2308
2307
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2309
2308
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2310
2309
|
var l = function ($this$withTimeout, $completion) {
|
|
2311
|
-
return i.
|
|
2310
|
+
return i.g5w($this$withTimeout, $completion);
|
|
2312
2311
|
};
|
|
2313
2312
|
l.$arity = 1;
|
|
2314
2313
|
return l;
|
|
@@ -2320,10 +2319,10 @@
|
|
|
2320
2319
|
return tmp.p9();
|
|
2321
2320
|
}
|
|
2322
2321
|
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2323
|
-
return withContext($this.
|
|
2322
|
+
return withContext($this.a5x_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2324
2323
|
}
|
|
2325
2324
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2326
|
-
var existingCardDeck = $this.
|
|
2325
|
+
var existingCardDeck = $this.e5x_1.h2(userData.gameId);
|
|
2327
2326
|
var tmp;
|
|
2328
2327
|
if (!(existingCardDeck == null)) {
|
|
2329
2328
|
tmp = Companion_instance_2.newRound(existingCardDeck, cardDeckData);
|
|
@@ -2339,9 +2338,9 @@
|
|
|
2339
2338
|
return tmp.p9();
|
|
2340
2339
|
}
|
|
2341
2340
|
function Companion_9() {
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2344
|
-
this.
|
|
2341
|
+
this.y5x_1 = 100;
|
|
2342
|
+
this.z5x_1 = 3;
|
|
2343
|
+
this.a5y_1 = 3000;
|
|
2345
2344
|
}
|
|
2346
2345
|
var Companion_instance_11;
|
|
2347
2346
|
function Companion_getInstance_12() {
|
|
@@ -2351,17 +2350,17 @@
|
|
|
2351
2350
|
return uuid4().toString();
|
|
2352
2351
|
}
|
|
2353
2352
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2360
|
-
this.
|
|
2361
|
-
this.
|
|
2353
|
+
this.j5y_1 = this$0;
|
|
2354
|
+
this.k5y_1 = $timeoutMillis;
|
|
2355
|
+
this.l5y_1 = $minRoundsCountInPool;
|
|
2356
|
+
this.m5y_1 = $userData;
|
|
2357
|
+
this.n5y_1 = $min;
|
|
2358
|
+
this.o5y_1 = $max;
|
|
2359
|
+
this.p5y_1 = $cardsCount;
|
|
2360
|
+
this.q5y_1 = $signed;
|
|
2362
2361
|
CoroutineImpl.call(this, resultContinuation);
|
|
2363
2362
|
}
|
|
2364
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2363
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).g5w = function ($this$withContext, $completion) {
|
|
2365
2364
|
var tmp = this.i1f($this$withContext, $completion);
|
|
2366
2365
|
tmp.j9_1 = Unit_instance;
|
|
2367
2366
|
tmp.k9_1 = null;
|
|
@@ -2371,7 +2370,7 @@
|
|
|
2371
2370
|
return tmp_0;
|
|
2372
2371
|
};
|
|
2373
2372
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).z9 = function (p1, $completion) {
|
|
2374
|
-
return this.
|
|
2373
|
+
return this.g5w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2375
2374
|
};
|
|
2376
2375
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).p9 = function () {
|
|
2377
2376
|
var suspendResult = this.j9_1;
|
|
@@ -2382,35 +2381,35 @@
|
|
|
2382
2381
|
case 0:
|
|
2383
2382
|
this.i9_1 = 11;
|
|
2384
2383
|
var tmp_0 = this;
|
|
2385
|
-
tmp_0.
|
|
2384
|
+
tmp_0.s5y_1 = this.j5y_1.c5x_1;
|
|
2386
2385
|
var tmp_1 = this;
|
|
2387
|
-
tmp_1.
|
|
2386
|
+
tmp_1.t5y_1 = null;
|
|
2388
2387
|
this.h9_1 = 1;
|
|
2389
|
-
suspendResult = this.
|
|
2388
|
+
suspendResult = this.s5y_1.o1q(this.t5y_1, this);
|
|
2390
2389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2391
2390
|
return suspendResult;
|
|
2392
2391
|
}
|
|
2393
2392
|
|
|
2394
2393
|
continue $sm;
|
|
2395
2394
|
case 1:
|
|
2396
|
-
this.
|
|
2395
|
+
this.u5y_1 = Unit_instance;
|
|
2397
2396
|
this.h9_1 = 2;
|
|
2398
2397
|
continue $sm;
|
|
2399
2398
|
case 2:
|
|
2400
2399
|
this.i9_1 = 10;
|
|
2401
|
-
this.
|
|
2400
|
+
this.v5y_1 = Unit_instance;
|
|
2402
2401
|
this.h9_1 = 3;
|
|
2403
2402
|
continue $sm;
|
|
2404
2403
|
case 3:
|
|
2405
|
-
this.
|
|
2406
|
-
if (!(this.
|
|
2407
|
-
this.
|
|
2408
|
-
if (this.
|
|
2409
|
-
this.
|
|
2410
|
-
this.
|
|
2404
|
+
this.w5y_1 = this.j5y_1.f5x_1;
|
|
2405
|
+
if (!(this.w5y_1 == null) && this.j5y_1.g5x_1 >= this.j5y_1.x5w_1.failedRequestAttempts) {
|
|
2406
|
+
this.x5y_1 = this.w5y_1.i5p(this.j5y_1.x5w_1.failedAttemptCooldown);
|
|
2407
|
+
if (this.x5y_1.m5p(System_instance.u59()) > 0) {
|
|
2408
|
+
this.y5y_1 = new RandomException(VOID, 'getCardDeck cooldown ends in ' + this.x5y_1.toString());
|
|
2409
|
+
this.j5y_1.z5w_1.v('RandomPoolProvider', VOID, this.y5y_1);
|
|
2411
2410
|
var tmp_2 = this;
|
|
2412
|
-
var exception = this.
|
|
2413
|
-
tmp_2.
|
|
2411
|
+
var exception = this.y5y_1;
|
|
2412
|
+
tmp_2.v5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2414
2413
|
this.h9_1 = 8;
|
|
2415
2414
|
continue $sm;
|
|
2416
2415
|
} else {
|
|
@@ -2428,14 +2427,14 @@
|
|
|
2428
2427
|
case 5:
|
|
2429
2428
|
this.i9_1 = 7;
|
|
2430
2429
|
this.h9_1 = 6;
|
|
2431
|
-
suspendResult = withTimeout(this.
|
|
2430
|
+
suspendResult = withTimeout(this.k5y_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.j5y_1, this.l5y_1, this.m5y_1, this.n5y_1, this.o5y_1, this.p5y_1, this.q5y_1, null), this);
|
|
2432
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2433
2432
|
return suspendResult;
|
|
2434
2433
|
}
|
|
2435
2434
|
|
|
2436
2435
|
continue $sm;
|
|
2437
2436
|
case 6:
|
|
2438
|
-
this.
|
|
2437
|
+
this.v5y_1 = suspendResult;
|
|
2439
2438
|
this.h9_1 = 8;
|
|
2440
2439
|
continue $sm;
|
|
2441
2440
|
case 7:
|
|
@@ -2443,13 +2442,13 @@
|
|
|
2443
2442
|
var tmp_3 = this.k9_1;
|
|
2444
2443
|
if (tmp_3 instanceof Error) {
|
|
2445
2444
|
var error = this.k9_1;
|
|
2446
|
-
this.
|
|
2447
|
-
var _unary__edvuaz = this.
|
|
2448
|
-
this.
|
|
2445
|
+
this.j5y_1.f5x_1 = System_instance.u59();
|
|
2446
|
+
var _unary__edvuaz = this.j5y_1.g5x_1;
|
|
2447
|
+
this.j5y_1.g5x_1 = _unary__edvuaz + 1 | 0;
|
|
2449
2448
|
var exception_0 = new RandomException(VOID, 'createNewShuffledCardDeck error message = ' + error.message, error);
|
|
2450
|
-
this.
|
|
2449
|
+
this.j5y_1.z5w_1.v('RandomPoolProvider', VOID, exception_0);
|
|
2451
2450
|
var tmp_4 = this;
|
|
2452
|
-
tmp_4.
|
|
2451
|
+
tmp_4.v5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2453
2452
|
this.h9_1 = 8;
|
|
2454
2453
|
continue $sm;
|
|
2455
2454
|
} else {
|
|
@@ -2457,19 +2456,19 @@
|
|
|
2457
2456
|
}
|
|
2458
2457
|
|
|
2459
2458
|
case 8:
|
|
2460
|
-
this.
|
|
2459
|
+
this.u5y_1 = this.v5y_1;
|
|
2461
2460
|
this.i9_1 = 11;
|
|
2462
2461
|
this.h9_1 = 9;
|
|
2463
2462
|
continue $sm;
|
|
2464
2463
|
case 9:
|
|
2465
|
-
var tmp_5 = this.
|
|
2464
|
+
var tmp_5 = this.u5y_1;
|
|
2466
2465
|
this.i9_1 = 11;
|
|
2467
|
-
this.
|
|
2466
|
+
this.s5y_1.z1p(this.t5y_1);
|
|
2468
2467
|
return tmp_5;
|
|
2469
2468
|
case 10:
|
|
2470
2469
|
this.i9_1 = 11;
|
|
2471
2470
|
var t = this.k9_1;
|
|
2472
|
-
this.
|
|
2471
|
+
this.s5y_1.z1p(this.t5y_1);
|
|
2473
2472
|
throw t;
|
|
2474
2473
|
case 11:
|
|
2475
2474
|
throw this.k9_1;
|
|
@@ -2486,34 +2485,34 @@
|
|
|
2486
2485
|
while (true);
|
|
2487
2486
|
};
|
|
2488
2487
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).i1f = function ($this$withContext, completion) {
|
|
2489
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2490
|
-
i.
|
|
2488
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.j5y_1, this.k5y_1, this.l5y_1, this.m5y_1, this.n5y_1, this.o5y_1, this.p5y_1, this.q5y_1, completion);
|
|
2489
|
+
i.r5y_1 = $this$withContext;
|
|
2491
2490
|
return i;
|
|
2492
2491
|
};
|
|
2493
2492
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2494
2493
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2495
2494
|
var l = function ($this$withContext, $completion) {
|
|
2496
|
-
return i.
|
|
2495
|
+
return i.g5w($this$withContext, $completion);
|
|
2497
2496
|
};
|
|
2498
2497
|
l.$arity = 1;
|
|
2499
2498
|
return l;
|
|
2500
2499
|
}
|
|
2501
2500
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2501
|
+
this.h5z_1 = this$0;
|
|
2502
|
+
this.i5z_1 = $min;
|
|
2503
|
+
this.j5z_1 = $max;
|
|
2504
|
+
this.k5z_1 = $cardsCount;
|
|
2505
|
+
this.l5z_1 = $signed;
|
|
2507
2506
|
CoroutineImpl.call(this, resultContinuation);
|
|
2508
2507
|
}
|
|
2509
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2508
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).o5z = function ($this$withContext, $completion) {
|
|
2510
2509
|
var tmp = this.i1f($this$withContext, $completion);
|
|
2511
2510
|
tmp.j9_1 = Unit_instance;
|
|
2512
2511
|
tmp.k9_1 = null;
|
|
2513
2512
|
return tmp.p9();
|
|
2514
2513
|
};
|
|
2515
2514
|
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).z9 = function (p1, $completion) {
|
|
2516
|
-
return this.
|
|
2515
|
+
return this.o5z((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2517
2516
|
};
|
|
2518
2517
|
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).p9 = function () {
|
|
2519
2518
|
var suspendResult = this.j9_1;
|
|
@@ -2523,9 +2522,9 @@
|
|
|
2523
2522
|
switch (tmp) {
|
|
2524
2523
|
case 0:
|
|
2525
2524
|
this.i9_1 = 2;
|
|
2526
|
-
this.
|
|
2525
|
+
this.n5z_1 = System_instance.u59();
|
|
2527
2526
|
this.h9_1 = 1;
|
|
2528
|
-
suspendResult = this.
|
|
2527
|
+
suspendResult = this.h5z_1.y5w_1.i5t(this.i5z_1, this.j5z_1, this.h5z_1.x5w_1.poolSize, this.k5z_1, new CardDecksRequestUserData(this.h5z_1.b5x_1(), this.h5z_1.x5w_1.poolSize), this.l5z_1, this);
|
|
2529
2528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2530
2529
|
return suspendResult;
|
|
2531
2530
|
}
|
|
@@ -2534,11 +2533,11 @@
|
|
|
2534
2533
|
case 1:
|
|
2535
2534
|
var result = suspendResult;
|
|
2536
2535
|
var requestEndTime = System_instance.u59();
|
|
2537
|
-
var requestDuration = requestEndTime.l5p(this.
|
|
2536
|
+
var requestDuration = requestEndTime.l5p(this.n5z_1);
|
|
2538
2537
|
Companion_getInstance_0();
|
|
2539
|
-
var this_0 = this.
|
|
2538
|
+
var this_0 = this.h5z_1.x5w_1.requestDurationWarn;
|
|
2540
2539
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration_0(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2541
|
-
this.
|
|
2540
|
+
this.h5z_1.z5w_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ') + ('expected = ' + this.h5z_1.x5w_1.requestDurationWarn));
|
|
2542
2541
|
}
|
|
2543
2542
|
|
|
2544
2543
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
@@ -2558,27 +2557,27 @@
|
|
|
2558
2557
|
while (true);
|
|
2559
2558
|
};
|
|
2560
2559
|
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).i1f = function ($this$withContext, completion) {
|
|
2561
|
-
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.
|
|
2562
|
-
i.
|
|
2560
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.h5z_1, this.i5z_1, this.j5z_1, this.k5z_1, this.l5z_1, completion);
|
|
2561
|
+
i.m5z_1 = $this$withContext;
|
|
2563
2562
|
return i;
|
|
2564
2563
|
};
|
|
2565
2564
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2566
2565
|
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2567
2566
|
var l = function ($this$withContext, $completion) {
|
|
2568
|
-
return i.
|
|
2567
|
+
return i.o5z($this$withContext, $completion);
|
|
2569
2568
|
};
|
|
2570
2569
|
l.$arity = 1;
|
|
2571
2570
|
return l;
|
|
2572
2571
|
}
|
|
2573
2572
|
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2574
2573
|
CoroutineImpl.call(this, resultContinuation);
|
|
2575
|
-
this.
|
|
2576
|
-
this.
|
|
2577
|
-
this.
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
this.
|
|
2574
|
+
this.p5w_1 = _this__u8e3s4;
|
|
2575
|
+
this.q5w_1 = minRoundsCountInPool;
|
|
2576
|
+
this.r5w_1 = userData;
|
|
2577
|
+
this.s5w_1 = min;
|
|
2578
|
+
this.t5w_1 = max;
|
|
2579
|
+
this.u5w_1 = cardsCount;
|
|
2580
|
+
this.v5w_1 = signed;
|
|
2582
2581
|
}
|
|
2583
2582
|
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).p9 = function () {
|
|
2584
2583
|
var suspendResult = this.j9_1;
|
|
@@ -2588,9 +2587,9 @@
|
|
|
2588
2587
|
switch (tmp) {
|
|
2589
2588
|
case 0:
|
|
2590
2589
|
this.i9_1 = 2;
|
|
2591
|
-
this.
|
|
2590
|
+
this.w5w_1 = this.r5w_1.gameId;
|
|
2592
2591
|
this.h9_1 = 1;
|
|
2593
|
-
suspendResult = getPreparedRandomPoolValue(this.
|
|
2592
|
+
suspendResult = getPreparedRandomPoolValue(this.p5w_1, this.w5w_1, this.s5w_1, this.t5w_1, this.q5w_1, this.u5w_1, this.v5w_1, this);
|
|
2594
2593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2595
2594
|
return suspendResult;
|
|
2596
2595
|
}
|
|
@@ -2598,15 +2597,15 @@
|
|
|
2598
2597
|
continue $sm;
|
|
2599
2598
|
case 1:
|
|
2600
2599
|
var randomPoolValue = suspendResult;
|
|
2601
|
-
var this_0 = this.
|
|
2602
|
-
var key = randomPoolValue.
|
|
2600
|
+
var this_0 = this.p5w_1.d5x_1;
|
|
2601
|
+
var key = randomPoolValue.e5v_1.p5q_1;
|
|
2603
2602
|
this_0.k2(key, randomPoolValue);
|
|
2604
|
-
var cardDeckData = randomPoolValue.
|
|
2605
|
-
var tmp21_poolId = randomPoolValue.
|
|
2606
|
-
var tmp22_signature = randomPoolValue.
|
|
2607
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2608
|
-
var this_1 = this.
|
|
2609
|
-
var key_0 = this.
|
|
2603
|
+
var cardDeckData = randomPoolValue.o5v(this.r5w_1.gameId);
|
|
2604
|
+
var tmp21_poolId = randomPoolValue.e5v_1.p5q_1;
|
|
2605
|
+
var tmp22_signature = randomPoolValue.e5v_1.q5q_1;
|
|
2606
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.p5w_1, tmp21_poolId, tmp22_signature, cardDeckData, this.r5w_1);
|
|
2607
|
+
var this_1 = this.p5w_1.e5x_1;
|
|
2608
|
+
var key_0 = this.r5w_1.gameId;
|
|
2610
2609
|
this_1.k2(key_0, cardDecksRecord);
|
|
2611
2610
|
return cardDeckData;
|
|
2612
2611
|
case 2:
|
|
@@ -2625,13 +2624,13 @@
|
|
|
2625
2624
|
};
|
|
2626
2625
|
function $getPreparedRandomPoolValueCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
|
|
2627
2626
|
CoroutineImpl.call(this, resultContinuation);
|
|
2628
|
-
this.
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2631
|
-
this.
|
|
2632
|
-
this.
|
|
2633
|
-
this.
|
|
2634
|
-
this.
|
|
2627
|
+
this.p5x_1 = _this__u8e3s4;
|
|
2628
|
+
this.q5x_1 = gameId;
|
|
2629
|
+
this.r5x_1 = min;
|
|
2630
|
+
this.s5x_1 = max;
|
|
2631
|
+
this.t5x_1 = minRoundsCount;
|
|
2632
|
+
this.u5x_1 = cardsCount;
|
|
2633
|
+
this.v5x_1 = signed;
|
|
2635
2634
|
}
|
|
2636
2635
|
protoOf($getPreparedRandomPoolValueCOROUTINE$4).p9 = function () {
|
|
2637
2636
|
var suspendResult = this.j9_1;
|
|
@@ -2642,41 +2641,41 @@
|
|
|
2642
2641
|
case 0:
|
|
2643
2642
|
this.i9_1 = 2;
|
|
2644
2643
|
var tmp_0 = this;
|
|
2645
|
-
var this_0 = this.
|
|
2644
|
+
var this_0 = this.p5x_1.d5x_1;
|
|
2646
2645
|
var destination = LinkedHashMap_init_$Create$();
|
|
2647
2646
|
var tmp0_iterator = this_0.s().j();
|
|
2648
2647
|
while (tmp0_iterator.k()) {
|
|
2649
2648
|
var element = tmp0_iterator.l();
|
|
2650
|
-
var this_1 = element.u().
|
|
2651
|
-
var key = this.
|
|
2649
|
+
var this_1 = element.u().f5v_1;
|
|
2650
|
+
var key = this.q5x_1;
|
|
2652
2651
|
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).f2(key)) {
|
|
2653
2652
|
destination.k2(element.t(), element.u());
|
|
2654
2653
|
}
|
|
2655
2654
|
}
|
|
2656
2655
|
|
|
2657
|
-
tmp_0.
|
|
2658
|
-
if (!(this.
|
|
2659
|
-
return this.
|
|
2656
|
+
tmp_0.w5x_1 = firstOrNull(destination.s());
|
|
2657
|
+
if (!(this.w5x_1 == null)) {
|
|
2658
|
+
return this.w5x_1.u().m5v(this.q5x_1);
|
|
2660
2659
|
}
|
|
2661
2660
|
|
|
2662
2661
|
var tmp_1 = this;
|
|
2663
|
-
var this_2 = this.
|
|
2662
|
+
var this_2 = this.p5x_1.d5x_1;
|
|
2664
2663
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2665
2664
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2666
2665
|
while (tmp0_iterator_0.k()) {
|
|
2667
2666
|
var element_0 = tmp0_iterator_0.l();
|
|
2668
|
-
if (element_0.u().
|
|
2667
|
+
if (element_0.u().j5v(this.t5x_1)) {
|
|
2669
2668
|
destination_0.k2(element_0.t(), element_0.u());
|
|
2670
2669
|
}
|
|
2671
2670
|
}
|
|
2672
2671
|
|
|
2673
|
-
tmp_1.
|
|
2674
|
-
if (!(this.
|
|
2675
|
-
return this.
|
|
2672
|
+
tmp_1.x5x_1 = firstOrNull(destination_0.s());
|
|
2673
|
+
if (!(this.x5x_1 == null)) {
|
|
2674
|
+
return this.x5x_1.u().k5v(this.q5x_1, this.t5x_1, this.p5x_1.x5w_1.thresholdForUsedPool);
|
|
2676
2675
|
}
|
|
2677
2676
|
|
|
2678
2677
|
this.h9_1 = 1;
|
|
2679
|
-
suspendResult = requestNewCardDecks(this.
|
|
2678
|
+
suspendResult = requestNewCardDecks(this.p5x_1, this.r5x_1, this.s5x_1, this.u5x_1, this.v5x_1, this);
|
|
2680
2679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2681
2680
|
return suspendResult;
|
|
2682
2681
|
}
|
|
@@ -2684,7 +2683,7 @@
|
|
|
2684
2683
|
continue $sm;
|
|
2685
2684
|
case 1:
|
|
2686
2685
|
var cardDecks = suspendResult;
|
|
2687
|
-
return cardDecks.
|
|
2686
|
+
return cardDecks.n5v(this.q5x_1, this.t5x_1);
|
|
2688
2687
|
case 2:
|
|
2689
2688
|
throw this.k9_1;
|
|
2690
2689
|
}
|
|
@@ -2708,72 +2707,67 @@
|
|
|
2708
2707
|
tmp = idsProvider;
|
|
2709
2708
|
}
|
|
2710
2709
|
idsProvider = tmp;
|
|
2711
|
-
this.
|
|
2712
|
-
this.
|
|
2713
|
-
this.
|
|
2714
|
-
this.
|
|
2715
|
-
this.
|
|
2716
|
-
this.
|
|
2710
|
+
this.x5w_1 = params;
|
|
2711
|
+
this.y5w_1 = randomOrgApiService;
|
|
2712
|
+
this.z5w_1 = logger;
|
|
2713
|
+
this.a5x_1 = dispatcher;
|
|
2714
|
+
this.b5x_1 = idsProvider;
|
|
2715
|
+
this.c5x_1 = Mutex();
|
|
2717
2716
|
var tmp_0 = this;
|
|
2718
2717
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2719
|
-
tmp_0.
|
|
2718
|
+
tmp_0.d5x_1 = LinkedHashMap_init_$Create$();
|
|
2720
2719
|
var tmp_1 = this;
|
|
2721
2720
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2722
|
-
tmp_1.
|
|
2723
|
-
this.
|
|
2724
|
-
this.
|
|
2721
|
+
tmp_1.e5x_1 = LinkedHashMap_init_$Create$();
|
|
2722
|
+
this.f5x_1 = null;
|
|
2723
|
+
this.g5x_1 = 0;
|
|
2725
2724
|
}
|
|
2726
|
-
protoOf(RandomPoolProviderImpl).
|
|
2727
|
-
var tmp = withContext(this.
|
|
2725
|
+
protoOf(RandomPoolProviderImpl).b5v = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) {
|
|
2726
|
+
var tmp = withContext(this.a5x_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, timeoutMillis, minRoundsCountInPool, userData, min, max, cardsCount, signed, null), $completion);
|
|
2728
2727
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2729
2728
|
return tmp;
|
|
2730
2729
|
return tmp;
|
|
2731
2730
|
};
|
|
2732
|
-
protoOf(RandomPoolProviderImpl).
|
|
2733
|
-
return this.
|
|
2731
|
+
protoOf(RandomPoolProviderImpl).p5z = function (gameId) {
|
|
2732
|
+
return this.e5x_1.h2(gameId);
|
|
2734
2733
|
};
|
|
2735
2734
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2736
|
-
return this.
|
|
2735
|
+
return this.p5z(gameId);
|
|
2737
2736
|
};
|
|
2738
|
-
protoOf(RandomPoolProviderImpl).
|
|
2739
|
-
return this.
|
|
2737
|
+
protoOf(RandomPoolProviderImpl).q5z = function (id) {
|
|
2738
|
+
return this.d5x_1.h2(id);
|
|
2740
2739
|
};
|
|
2741
2740
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2742
|
-
return this.
|
|
2741
|
+
return this.q5z(id);
|
|
2743
2742
|
};
|
|
2744
|
-
protoOf(RandomPoolProviderImpl).
|
|
2745
|
-
return this.
|
|
2743
|
+
protoOf(RandomPoolProviderImpl).r5z = function () {
|
|
2744
|
+
return this.d5x_1.m();
|
|
2746
2745
|
};
|
|
2747
2746
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2748
|
-
return this.
|
|
2747
|
+
return this.r5z();
|
|
2749
2748
|
};
|
|
2750
|
-
protoOf(RandomPoolProviderImpl).
|
|
2751
|
-
var gameCardDecksRecord = this.
|
|
2749
|
+
protoOf(RandomPoolProviderImpl).d5v = function (gameId) {
|
|
2750
|
+
var gameCardDecksRecord = this.e5x_1.h2(gameId);
|
|
2752
2751
|
if (!(gameCardDecksRecord == null)) {
|
|
2753
|
-
|
|
2754
|
-
var this_0 = this.c5x_1;
|
|
2755
|
-
var key = gameCardDecksRecord.signature;
|
|
2756
|
-
var randomPoolValue = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).h2(key);
|
|
2752
|
+
var randomPoolValue = this.d5x_1.h2(gameCardDecksRecord.poolId);
|
|
2757
2753
|
if (!(randomPoolValue == null)) {
|
|
2758
2754
|
// Inline function 'kotlin.apply' call
|
|
2759
|
-
var
|
|
2755
|
+
var this_0 = toMutableMap(randomPoolValue.f5v_1);
|
|
2760
2756
|
// Inline function 'kotlin.contracts.contract' call
|
|
2761
2757
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2762
|
-
|
|
2763
|
-
var newPoolValue = randomPoolValue.
|
|
2764
|
-
if (newPoolValue.
|
|
2765
|
-
|
|
2766
|
-
var this_2 = this.c5x_1;
|
|
2767
|
-
var key_0 = gameCardDecksRecord.signature;
|
|
2768
|
-
(isInterface(this_2, KtMutableMap) ? this_2 : THROW_CCE()).l2(key_0);
|
|
2758
|
+
this_0.l2(gameId);
|
|
2759
|
+
var newPoolValue = randomPoolValue.l5v(VOID, toMap(this_0));
|
|
2760
|
+
if (newPoolValue.f5v_1.p()) {
|
|
2761
|
+
this.d5x_1.l2(gameCardDecksRecord.poolId);
|
|
2769
2762
|
} else {
|
|
2770
2763
|
// Inline function 'kotlin.collections.set' call
|
|
2771
|
-
var
|
|
2772
|
-
var
|
|
2773
|
-
|
|
2764
|
+
var this_1 = this.d5x_1;
|
|
2765
|
+
var key = gameCardDecksRecord.poolId;
|
|
2766
|
+
this_1.k2(key, newPoolValue);
|
|
2774
2767
|
}
|
|
2775
2768
|
}
|
|
2776
2769
|
}
|
|
2770
|
+
this.e5x_1.l2(gameId);
|
|
2777
2771
|
};
|
|
2778
2772
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2779
2773
|
return function ($this$defaultRequest) {
|
|
@@ -2783,15 +2777,15 @@
|
|
|
2783
2777
|
};
|
|
2784
2778
|
}
|
|
2785
2779
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2786
|
-
this.
|
|
2780
|
+
this.s5z_1 = $externalLogger;
|
|
2787
2781
|
}
|
|
2788
2782
|
protoOf(ApiCommonConfigs$setupLogging$1$1).d3z = function (message) {
|
|
2789
|
-
this.
|
|
2783
|
+
this.s5z_1(message);
|
|
2790
2784
|
};
|
|
2791
2785
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2792
2786
|
return function ($this$install) {
|
|
2793
2787
|
$this$install.t40(get_DEFAULT(Companion_instance_0));
|
|
2794
|
-
$this$install.s40_1 = $config.
|
|
2788
|
+
$this$install.s40_1 = $config.v5z_1;
|
|
2795
2789
|
$this$install.t40(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2796
2790
|
return Unit_instance;
|
|
2797
2791
|
};
|
|
@@ -2804,20 +2798,20 @@
|
|
|
2804
2798
|
}
|
|
2805
2799
|
function ApiCommonConfigs() {
|
|
2806
2800
|
}
|
|
2807
|
-
protoOf(ApiCommonConfigs).
|
|
2801
|
+
protoOf(ApiCommonConfigs).x5z = function (_this__u8e3s4, config, externalLogger) {
|
|
2808
2802
|
_this__u8e3s4.f30_1 = true;
|
|
2809
|
-
this.
|
|
2810
|
-
this.
|
|
2811
|
-
this.
|
|
2803
|
+
this.y5z(_this__u8e3s4, config.t5z_1);
|
|
2804
|
+
this.z5z(_this__u8e3s4, config.w5z_1);
|
|
2805
|
+
this.a60(_this__u8e3s4, config, externalLogger);
|
|
2812
2806
|
};
|
|
2813
|
-
protoOf(ApiCommonConfigs).
|
|
2807
|
+
protoOf(ApiCommonConfigs).y5z = function (_this__u8e3s4, url) {
|
|
2814
2808
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2815
2809
|
};
|
|
2816
|
-
protoOf(ApiCommonConfigs).
|
|
2810
|
+
protoOf(ApiCommonConfigs).a60 = function (_this__u8e3s4, config, externalLogger) {
|
|
2817
2811
|
var tmp = Companion_getInstance_1();
|
|
2818
2812
|
_this__u8e3s4.a31(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2819
2813
|
};
|
|
2820
|
-
protoOf(ApiCommonConfigs).
|
|
2814
|
+
protoOf(ApiCommonConfigs).z5z = function (_this__u8e3s4, json) {
|
|
2821
2815
|
var tmp = Plugin_getInstance();
|
|
2822
2816
|
_this__u8e3s4.a31(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2823
2817
|
};
|
|
@@ -2842,19 +2836,19 @@
|
|
|
2842
2836
|
tmp = json;
|
|
2843
2837
|
}
|
|
2844
2838
|
json = tmp;
|
|
2845
|
-
this.
|
|
2846
|
-
this.
|
|
2847
|
-
this.
|
|
2848
|
-
this.
|
|
2839
|
+
this.t5z_1 = baseUrl;
|
|
2840
|
+
this.u5z_1 = timeoutMillis;
|
|
2841
|
+
this.v5z_1 = loggingLevel;
|
|
2842
|
+
this.w5z_1 = json;
|
|
2849
2843
|
}
|
|
2850
2844
|
protoOf(HttpParams).toString = function () {
|
|
2851
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2845
|
+
return 'HttpParams(baseUrl=' + this.t5z_1 + ', timeoutMillis=' + this.u5z_1.toString() + ', loggingLevel=' + this.v5z_1.toString() + ', json=' + toString(this.w5z_1) + ')';
|
|
2852
2846
|
};
|
|
2853
2847
|
protoOf(HttpParams).hashCode = function () {
|
|
2854
|
-
var result = getStringHashCode(this.
|
|
2855
|
-
result = imul(result, 31) + this.t5z_1.hashCode() | 0;
|
|
2848
|
+
var result = getStringHashCode(this.t5z_1);
|
|
2856
2849
|
result = imul(result, 31) + this.u5z_1.hashCode() | 0;
|
|
2857
|
-
result = imul(result, 31) +
|
|
2850
|
+
result = imul(result, 31) + this.v5z_1.hashCode() | 0;
|
|
2851
|
+
result = imul(result, 31) + hashCode(this.w5z_1) | 0;
|
|
2858
2852
|
return result;
|
|
2859
2853
|
};
|
|
2860
2854
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2863,13 +2857,13 @@
|
|
|
2863
2857
|
if (!(other instanceof HttpParams))
|
|
2864
2858
|
return false;
|
|
2865
2859
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2866
|
-
if (!(this.
|
|
2867
|
-
return false;
|
|
2868
|
-
if (!this.t5z_1.equals(tmp0_other_with_cast.t5z_1))
|
|
2860
|
+
if (!(this.t5z_1 === tmp0_other_with_cast.t5z_1))
|
|
2869
2861
|
return false;
|
|
2870
2862
|
if (!this.u5z_1.equals(tmp0_other_with_cast.u5z_1))
|
|
2871
2863
|
return false;
|
|
2872
|
-
if (!
|
|
2864
|
+
if (!this.v5z_1.equals(tmp0_other_with_cast.v5z_1))
|
|
2865
|
+
return false;
|
|
2866
|
+
if (!equals(this.w5z_1, tmp0_other_with_cast.w5z_1))
|
|
2873
2867
|
return false;
|
|
2874
2868
|
return true;
|
|
2875
2869
|
};
|
|
@@ -2895,12 +2889,12 @@
|
|
|
2895
2889
|
}
|
|
2896
2890
|
function nextBytesCopyTo($this, bytes) {
|
|
2897
2891
|
try {
|
|
2898
|
-
$this.
|
|
2892
|
+
$this.d60_1.b5q(bytes);
|
|
2899
2893
|
} catch ($p) {
|
|
2900
2894
|
if ($p instanceof SecRandomCopyException) {
|
|
2901
2895
|
var error = $p;
|
|
2902
|
-
$this.
|
|
2903
|
-
$this.
|
|
2896
|
+
$this.c60_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2897
|
+
$this.e60_1.vg(bytes);
|
|
2904
2898
|
return Unit_instance;
|
|
2905
2899
|
} else {
|
|
2906
2900
|
throw $p;
|
|
@@ -2926,9 +2920,9 @@
|
|
|
2926
2920
|
}
|
|
2927
2921
|
function SecureRandom_0(logger) {
|
|
2928
2922
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2923
|
+
this.c60_1 = logger;
|
|
2924
|
+
this.d60_1 = new SecureRandom();
|
|
2925
|
+
this.e60_1 = Default_getInstance();
|
|
2932
2926
|
}
|
|
2933
2927
|
protoOf(SecureRandom_0).sg = function (from, until) {
|
|
2934
2928
|
checkRangeBounds(this, from, until);
|
|
@@ -2959,8 +2953,8 @@
|
|
|
2959
2953
|
};
|
|
2960
2954
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2961
2955
|
return function ($this$install) {
|
|
2962
|
-
$this$install.r3k($config.
|
|
2963
|
-
$this$install.p3k($config.
|
|
2956
|
+
$this$install.r3k($config.u5z_1);
|
|
2957
|
+
$this$install.p3k($config.u5z_1);
|
|
2964
2958
|
return Unit_instance;
|
|
2965
2959
|
};
|
|
2966
2960
|
}
|
|
@@ -2968,13 +2962,13 @@
|
|
|
2968
2962
|
return function ($this$HttpClient) {
|
|
2969
2963
|
var tmp = Plugin_getInstance_0();
|
|
2970
2964
|
$this$HttpClient.a31(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2971
|
-
ApiCommonConfigs_instance.
|
|
2965
|
+
ApiCommonConfigs_instance.x5z($this$HttpClient, $config, $externalLogger);
|
|
2972
2966
|
return Unit_instance;
|
|
2973
2967
|
};
|
|
2974
2968
|
}
|
|
2975
2969
|
function HttpFactory() {
|
|
2976
2970
|
}
|
|
2977
|
-
protoOf(HttpFactory).
|
|
2971
|
+
protoOf(HttpFactory).f60 = function (config, externalLogger) {
|
|
2978
2972
|
var tmp = Js_instance;
|
|
2979
2973
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2980
2974
|
};
|
|
@@ -2989,8 +2983,8 @@
|
|
|
2989
2983
|
protoOf($serializer_3).i4k = typeParametersSerializers;
|
|
2990
2984
|
protoOf($serializer_5).i4k = typeParametersSerializers;
|
|
2991
2985
|
protoOf($serializer_6).i4k = typeParametersSerializers;
|
|
2992
|
-
protoOf(RandomPoolProviderImpl).
|
|
2993
|
-
protoOf(SecureRandom_0).
|
|
2986
|
+
protoOf(RandomPoolProviderImpl).c5v = getCardDeck$default;
|
|
2987
|
+
protoOf(SecureRandom_0).b60 = shuffle;
|
|
2994
2988
|
//endregion
|
|
2995
2989
|
//region block: init
|
|
2996
2990
|
Companion_instance_1 = new Companion();
|