client_plugin_logic_deb 1.8.368 → 1.8.370
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/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-client_plugin.js +1957 -1957
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +689 -639
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5725 -5733
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +682 -682
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1385,21 +1385,21 @@
|
|
|
1385
1385
|
tmp = types;
|
|
1386
1386
|
}
|
|
1387
1387
|
types = tmp;
|
|
1388
|
-
return $super === VOID ? this.
|
|
1388
|
+
return $super === VOID ? this.r9u(key, types) : $super.r9u.call(this, key, types);
|
|
1389
1389
|
}
|
|
1390
1390
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1391
1391
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
|
|
1392
1392
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1393
1393
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1394
|
-
return $super === VOID ? this.
|
|
1394
|
+
return $super === VOID ? this.s9u(store, playerIds, includeBots) : $super.s9u.call(this, store, playerIds, includeBots);
|
|
1395
1395
|
}
|
|
1396
1396
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1397
1397
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1398
|
-
return $super === VOID ? this.
|
|
1398
|
+
return $super === VOID ? this.t9u(store, playerIds, includeBots) : $super.t9u.call(this, store, playerIds, includeBots);
|
|
1399
1399
|
}
|
|
1400
1400
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1401
1401
|
league = league === VOID ? null : league;
|
|
1402
|
-
return $super === VOID ? this.
|
|
1402
|
+
return $super === VOID ? this.u9u(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.u9u.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1403
1403
|
}
|
|
1404
1404
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1405
1405
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1412,7 +1412,7 @@
|
|
|
1412
1412
|
tmp = existingNicknames;
|
|
1413
1413
|
}
|
|
1414
1414
|
existingNicknames = tmp;
|
|
1415
|
-
return $super === VOID ? this.
|
|
1415
|
+
return $super === VOID ? this.w9u(playerId, existingNicknames) : $super.w9u.call(this, playerId, existingNicknames);
|
|
1416
1416
|
}
|
|
1417
1417
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1418
1418
|
initMetadataForCompanion(Companion_196);
|
|
@@ -2335,7 +2335,7 @@
|
|
|
2335
2335
|
ffaLossReductionPerExtra = ffaLossReductionPerExtra === VOID ? 0.15 : ffaLossReductionPerExtra;
|
|
2336
2336
|
ffaLossMinMult = ffaLossMinMult === VOID ? 0.6 : ffaLossMinMult;
|
|
2337
2337
|
ffaCloseLossPenaltyMult = ffaCloseLossPenaltyMult === VOID ? 0.6 : ffaCloseLossPenaltyMult;
|
|
2338
|
-
botNativeUpdatesRating = botNativeUpdatesRating === VOID ?
|
|
2338
|
+
botNativeUpdatesRating = botNativeUpdatesRating === VOID ? true : botNativeUpdatesRating;
|
|
2339
2339
|
replacementForcedDecrease = replacementForcedDecrease === VOID ? true : replacementForcedDecrease;
|
|
2340
2340
|
this.defaultFactor = defaultFactor;
|
|
2341
2341
|
this.eloScaleH2H = eloScaleH2H;
|
|
@@ -48128,7 +48128,7 @@
|
|
|
48128
48128
|
};
|
|
48129
48129
|
function RatingCalculator() {
|
|
48130
48130
|
}
|
|
48131
|
-
function calculateHeadToHead($this, ratingList, minUserRating, maxUserRating,
|
|
48131
|
+
function calculateHeadToHead($this, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, cfg) {
|
|
48132
48132
|
// Inline function 'kotlin.collections.single' call
|
|
48133
48133
|
var single = null;
|
|
48134
48134
|
var found = false;
|
|
@@ -48187,14 +48187,14 @@
|
|
|
48187
48187
|
var expected = pBeats($this, item.t7a_1, opp.t7a_1, cfg.eloScaleH2H);
|
|
48188
48188
|
var actualBin = item.u7a_1 >= realMaxScore ? 1.0 : 0.0;
|
|
48189
48189
|
var kEff = baseK($this, item.x7a_1, gameComplexityCoefficient, cfg);
|
|
48190
|
-
var newRating = eloBinaryWithScoreFactor($this, item.t7a_1, expected, actualBin, realMinScore, realMaxScore, item.u7a_1, cfg.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
48190
|
+
var newRating = eloBinaryWithScoreFactor($this, item.t7a_1, expected, actualBin, realMinScore, realMaxScore, item.u7a_1, cfg.closeLossThresholdRatio, minUserRating, maxUserRating, kEff);
|
|
48191
48191
|
tmp$ret$5 = new PlayerRatingOutput(item.s7a_1, item.t7a_1, newRating, item.v7a_1);
|
|
48192
48192
|
}
|
|
48193
48193
|
destination.j(tmp$ret$5);
|
|
48194
48194
|
}
|
|
48195
48195
|
return destination;
|
|
48196
48196
|
}
|
|
48197
|
-
function calculateFfaPairwise($this, maxScore, ratingList, minUserRating, maxUserRating,
|
|
48197
|
+
function calculateFfaPairwise($this, maxScore, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, cfg) {
|
|
48198
48198
|
// Inline function 'kotlin.require' call
|
|
48199
48199
|
if (!(ratingList.o() >= 2)) {
|
|
48200
48200
|
var message = 'At least two players are required';
|
|
@@ -48275,7 +48275,7 @@
|
|
|
48275
48275
|
var b_0 = 1.0 - cfg.ffaLossReductionPerExtra * extra;
|
|
48276
48276
|
var kLoss = Math.max(tmp0, b_0);
|
|
48277
48277
|
var raw = item.t7a_1 + kBase * (kWin * diffPos + kLoss * diffNeg);
|
|
48278
|
-
var newRating = clampAndRound($this, raw, minUserRating, maxUserRating
|
|
48278
|
+
var newRating = clampAndRound($this, raw, minUserRating, maxUserRating);
|
|
48279
48279
|
tmp$ret$3 = new PlayerRatingOutput(item.s7a_1, item.t7a_1, newRating, item.v7a_1);
|
|
48280
48280
|
}
|
|
48281
48281
|
destination.j(tmp$ret$3);
|
|
@@ -48288,10 +48288,10 @@
|
|
|
48288
48288
|
var s = 0.5 + cfg.ffaMovLambdaRel * rel + cfg.ffaMovLambdaAbs * abs;
|
|
48289
48289
|
return coerceIn(s, 0.0, 1.0);
|
|
48290
48290
|
}
|
|
48291
|
-
function eloBinaryWithScoreFactor($this, currentRating, expected, actual, minScore, maxScore, playerScore, thresholdRatio, minUserRating, maxUserRating,
|
|
48291
|
+
function eloBinaryWithScoreFactor($this, currentRating, expected, actual, minScore, maxScore, playerScore, thresholdRatio, minUserRating, maxUserRating, kFactor) {
|
|
48292
48292
|
var scoreFactor = scoreDifferenceFactor($this, actual, minScore, maxScore, playerScore, thresholdRatio);
|
|
48293
48293
|
var raw = currentRating + kFactor * scoreFactor * (actual - expected);
|
|
48294
|
-
return clampAndRound($this, raw, minUserRating, maxUserRating
|
|
48294
|
+
return clampAndRound($this, raw, minUserRating, maxUserRating);
|
|
48295
48295
|
}
|
|
48296
48296
|
function pBeats($this, rA, rB, scale) {
|
|
48297
48297
|
// Inline function 'kotlin.math.pow' call
|
|
@@ -48406,8 +48406,8 @@
|
|
|
48406
48406
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
48407
48407
|
}
|
|
48408
48408
|
}
|
|
48409
|
-
function clampAndRound($this, value, minUserRating, maxUserRating
|
|
48410
|
-
var upper =
|
|
48409
|
+
function clampAndRound($this, value, minUserRating, maxUserRating) {
|
|
48410
|
+
var upper = maxUserRating;
|
|
48411
48411
|
var clamped = coerceIn(value, minUserRating, upper);
|
|
48412
48412
|
// Inline function 'kotlin.math.pow' call
|
|
48413
48413
|
var factor = Math.pow(10.0, 2);
|
|
@@ -48415,17 +48415,17 @@
|
|
|
48415
48415
|
}
|
|
48416
48416
|
function RatingCalculatorImpl() {
|
|
48417
48417
|
}
|
|
48418
|
-
protoOf(RatingCalculatorImpl).s98 = function (maxScore, minUserRating, maxUserRating,
|
|
48418
|
+
protoOf(RatingCalculatorImpl).s98 = function (maxScore, minUserRating, maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig) {
|
|
48419
48419
|
validateSoloGameHasWinner(this, maxScore, ratingList);
|
|
48420
48420
|
var tmp;
|
|
48421
48421
|
if (ratingList.o() <= 2) {
|
|
48422
|
-
tmp = calculateHeadToHead(this, ratingList, minUserRating, maxUserRating,
|
|
48422
|
+
tmp = calculateHeadToHead(this, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, ratingConfig);
|
|
48423
48423
|
} else {
|
|
48424
|
-
tmp = calculateFfaPairwise(this, maxScore, ratingList, minUserRating, maxUserRating,
|
|
48424
|
+
tmp = calculateFfaPairwise(this, maxScore, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, ratingConfig);
|
|
48425
48425
|
}
|
|
48426
48426
|
return tmp;
|
|
48427
48427
|
};
|
|
48428
|
-
protoOf(RatingCalculatorImpl).t98 = function (maxScore, minUserRating, maxUserRating,
|
|
48428
|
+
protoOf(RatingCalculatorImpl).t98 = function (maxScore, minUserRating, maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig) {
|
|
48429
48429
|
validateTeamsGameHasWinnerTeam(this, ratingList);
|
|
48430
48430
|
// Inline function 'kotlin.collections.filter' call
|
|
48431
48431
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -48509,7 +48509,7 @@
|
|
|
48509
48509
|
var expected = pBeats(this, item_1.t7a_1, avgLosers, ratingConfig.eloScaleH2H);
|
|
48510
48510
|
var actualBin = 1.0;
|
|
48511
48511
|
var kEff = baseK(this, item_1.x7a_1, gameComplexityCoefficient, ratingConfig);
|
|
48512
|
-
var newRating = eloBinaryWithScoreFactor(this, item_1.t7a_1, expected, actualBin, realMinScore, realMaxScore, winnersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
48512
|
+
var newRating = eloBinaryWithScoreFactor(this, item_1.t7a_1, expected, actualBin, realMinScore, realMaxScore, winnersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating, kEff);
|
|
48513
48513
|
tmp$ret$18 = new PlayerRatingOutput(item_1.s7a_1, item_1.t7a_1, newRating, item_1.v7a_1);
|
|
48514
48514
|
}
|
|
48515
48515
|
destination_3.j(tmp$ret$18);
|
|
@@ -48530,7 +48530,7 @@
|
|
|
48530
48530
|
var expected_0 = pBeats(this, item_2.t7a_1, avgWinners, ratingConfig.eloScaleH2H);
|
|
48531
48531
|
var actualBin_0 = 0.0;
|
|
48532
48532
|
var kEff_0 = baseK(this, item_2.x7a_1, gameComplexityCoefficient, ratingConfig);
|
|
48533
|
-
var newRating_0 = eloBinaryWithScoreFactor(this, item_2.t7a_1, expected_0, actualBin_0, realMinScore, realMaxScore, losersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
48533
|
+
var newRating_0 = eloBinaryWithScoreFactor(this, item_2.t7a_1, expected_0, actualBin_0, realMinScore, realMaxScore, losersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating, kEff_0);
|
|
48534
48534
|
tmp$ret$21 = new PlayerRatingOutput(item_2.s7a_1, item_2.t7a_1, newRating_0, item_2.v7a_1);
|
|
48535
48535
|
}
|
|
48536
48536
|
destination_4.j(tmp$ret$21);
|
|
@@ -48621,13 +48621,13 @@
|
|
|
48621
48621
|
var tmp1_$this = this.w98_1;
|
|
48622
48622
|
var tmp2_minUserRating = leaguesConfig.minUserRating;
|
|
48623
48623
|
var tmp3_maxUserRating = leaguesConfig.maxUserRating;
|
|
48624
|
-
tmp = tmp1_$this.s98(maxScore, tmp2_minUserRating, tmp3_maxUserRating,
|
|
48624
|
+
tmp = tmp1_$this.s98(maxScore, tmp2_minUserRating, tmp3_maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig);
|
|
48625
48625
|
break;
|
|
48626
48626
|
case 3:
|
|
48627
48627
|
var tmp4_$this = this.w98_1;
|
|
48628
48628
|
var tmp5_minUserRating = leaguesConfig.minUserRating;
|
|
48629
48629
|
var tmp6_maxUserRating = leaguesConfig.maxUserRating;
|
|
48630
|
-
tmp = tmp4_$this.t98(maxScore, tmp5_minUserRating, tmp6_maxUserRating,
|
|
48630
|
+
tmp = tmp4_$this.t98(maxScore, tmp5_minUserRating, tmp6_maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig);
|
|
48631
48631
|
break;
|
|
48632
48632
|
default:
|
|
48633
48633
|
noWhenBranchMatchedException();
|
|
@@ -55761,12 +55761,61 @@
|
|
|
55761
55761
|
protoOf(sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1).e6n = function (store, next, action) {
|
|
55762
55762
|
return this.u6o(store, next, action);
|
|
55763
55763
|
};
|
|
55764
|
-
function roundLifecycleMiddleware(scenePositionProvider) {
|
|
55764
|
+
function roundLifecycleMiddleware(scenePositionProvider, logger) {
|
|
55765
55765
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55766
|
-
return new roundLifecycleMiddleware$$inlined$middlewareForActionType$1(scenePositionProvider);
|
|
55766
|
+
return new roundLifecycleMiddleware$$inlined$middlewareForActionType$1(scenePositionProvider, logger);
|
|
55767
|
+
}
|
|
55768
|
+
function validateRatingChange(logger, playerAchievements) {
|
|
55769
|
+
var tmp;
|
|
55770
|
+
if (playerAchievements == null) {
|
|
55771
|
+
tmp = null;
|
|
55772
|
+
} else {
|
|
55773
|
+
// Inline function 'kotlin.collections.filter' call
|
|
55774
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
55775
|
+
var destination = ArrayList_init_$Create$_0();
|
|
55776
|
+
var _iterator__ex2g4s = playerAchievements.l();
|
|
55777
|
+
while (_iterator__ex2g4s.m()) {
|
|
55778
|
+
var element = _iterator__ex2g4s.n();
|
|
55779
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
55780
|
+
var this_0 = element.oldRating - element.newRating;
|
|
55781
|
+
if (Math.abs(this_0) >= 80) {
|
|
55782
|
+
destination.j(element);
|
|
55783
|
+
}
|
|
55784
|
+
}
|
|
55785
|
+
tmp = destination;
|
|
55786
|
+
}
|
|
55787
|
+
var tmp1_elvis_lhs = tmp;
|
|
55788
|
+
var suspiciousRatingChange = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
55789
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55790
|
+
if (!suspiciousRatingChange.q()) {
|
|
55791
|
+
logger.w('roundLifecycleMiddleware', 'Suspicious rating change: ' + toString(suspiciousRatingChange));
|
|
55792
|
+
}
|
|
55793
|
+
var tmp_0;
|
|
55794
|
+
if (playerAchievements == null) {
|
|
55795
|
+
tmp_0 = null;
|
|
55796
|
+
} else {
|
|
55797
|
+
// Inline function 'kotlin.collections.filter' call
|
|
55798
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
55799
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
55800
|
+
var _iterator__ex2g4s_0 = playerAchievements.l();
|
|
55801
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
55802
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
55803
|
+
if (element_0.oldRating < 2000 && element_0.newRating > 2000) {
|
|
55804
|
+
destination_0.j(element_0);
|
|
55805
|
+
}
|
|
55806
|
+
}
|
|
55807
|
+
tmp_0 = destination_0;
|
|
55808
|
+
}
|
|
55809
|
+
var tmp3_elvis_lhs = tmp_0;
|
|
55810
|
+
var ratingChangeAboveLimit = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
55811
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55812
|
+
if (!ratingChangeAboveLimit.q()) {
|
|
55813
|
+
logger.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(suspiciousRatingChange));
|
|
55814
|
+
}
|
|
55767
55815
|
}
|
|
55768
|
-
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider) {
|
|
55816
|
+
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {
|
|
55769
55817
|
this.a9k_1 = $scenePositionProvider;
|
|
55818
|
+
this.b9k_1 = $logger;
|
|
55770
55819
|
}
|
|
55771
55820
|
protoOf(roundLifecycleMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
55772
55821
|
return action instanceof MechanicAction;
|
|
@@ -55861,81 +55910,82 @@
|
|
|
55861
55910
|
tmp_1 = false;
|
|
55862
55911
|
}
|
|
55863
55912
|
var isGameFinished = tmp_1;
|
|
55864
|
-
var
|
|
55913
|
+
var tmp11_safe_receiver = sceneData.w7j_1;
|
|
55914
|
+
var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.u();
|
|
55915
|
+
var tmp_3;
|
|
55916
|
+
if (tmp12_safe_receiver == null) {
|
|
55917
|
+
tmp_3 = null;
|
|
55918
|
+
} else {
|
|
55919
|
+
// Inline function 'kotlin.collections.map' call
|
|
55920
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
55921
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp12_safe_receiver, 10));
|
|
55922
|
+
var _iterator__ex2g4s_2 = tmp12_safe_receiver.l();
|
|
55923
|
+
while (_iterator__ex2g4s_2.m()) {
|
|
55924
|
+
var item_1 = _iterator__ex2g4s_2.n();
|
|
55925
|
+
// Inline function 'kotlin.collections.component1' call
|
|
55926
|
+
var playerId = item_1.v();
|
|
55927
|
+
// Inline function 'kotlin.collections.component2' call
|
|
55928
|
+
var achievements = item_1.w();
|
|
55929
|
+
var tmp$ret$19 = mapToPlayerAchievements(achievements, playerId);
|
|
55930
|
+
destination_2.j(tmp$ret$19);
|
|
55931
|
+
}
|
|
55932
|
+
tmp_3 = destination_2;
|
|
55933
|
+
}
|
|
55934
|
+
var playerAchievements = tmp_3;
|
|
55935
|
+
validateRatingChange(this.b9k_1, playerAchievements);
|
|
55936
|
+
var tmp_4 = store.dispatch;
|
|
55865
55937
|
var tmp15_id = table_0.id;
|
|
55866
55938
|
var tmp16_gameId = table_0.gameId;
|
|
55867
55939
|
var tmp17_roundNumber = table_0.gameInfo.round.roundNumber;
|
|
55868
55940
|
var tmp18_earnedBiggestPointPlayerId = sceneData.r7j_1;
|
|
55869
|
-
var
|
|
55941
|
+
var tmp_5;
|
|
55870
55942
|
if (gameWinners == null) {
|
|
55871
|
-
|
|
55943
|
+
tmp_5 = null;
|
|
55872
55944
|
} else {
|
|
55873
55945
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55874
|
-
|
|
55946
|
+
tmp_5 = copyToArray(gameWinners);
|
|
55875
55947
|
}
|
|
55876
|
-
var tmp19_gameWinners =
|
|
55877
|
-
var
|
|
55948
|
+
var tmp19_gameWinners = tmp_5;
|
|
55949
|
+
var tmp_6;
|
|
55878
55950
|
if (isGameFinished) {
|
|
55879
55951
|
// Inline function 'kotlin.collections.map' call
|
|
55880
55952
|
var this_2 = table_0.players;
|
|
55881
55953
|
// Inline function 'kotlin.collections.mapTo' call
|
|
55882
|
-
var
|
|
55883
|
-
var
|
|
55884
|
-
while (
|
|
55885
|
-
var
|
|
55886
|
-
var tmp$ret$
|
|
55887
|
-
|
|
55954
|
+
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
55955
|
+
var _iterator__ex2g4s_3 = this_2.l();
|
|
55956
|
+
while (_iterator__ex2g4s_3.m()) {
|
|
55957
|
+
var item_2 = _iterator__ex2g4s_3.n();
|
|
55958
|
+
var tmp$ret$23 = mapToGameAnalytics(item_2, table_0.gameDuration);
|
|
55959
|
+
destination_3.j(tmp$ret$23);
|
|
55888
55960
|
}
|
|
55889
55961
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55890
|
-
|
|
55962
|
+
tmp_6 = copyToArray(destination_3);
|
|
55891
55963
|
} else {
|
|
55892
|
-
|
|
55964
|
+
tmp_6 = null;
|
|
55893
55965
|
}
|
|
55894
|
-
var tmp20_playersGameAnalytics =
|
|
55966
|
+
var tmp20_playersGameAnalytics = tmp_6;
|
|
55895
55967
|
// Inline function 'kotlin.collections.map' call
|
|
55896
55968
|
var this_3 = table_0.players;
|
|
55897
55969
|
// Inline function 'kotlin.collections.mapTo' call
|
|
55898
|
-
var
|
|
55899
|
-
var
|
|
55900
|
-
while (
|
|
55901
|
-
var
|
|
55902
|
-
var tmp$ret$
|
|
55903
|
-
|
|
55970
|
+
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
55971
|
+
var _iterator__ex2g4s_4 = this_3.l();
|
|
55972
|
+
while (_iterator__ex2g4s_4.m()) {
|
|
55973
|
+
var item_3 = _iterator__ex2g4s_4.n();
|
|
55974
|
+
var tmp$ret$27 = mapToRoundAnalytics(item_3, table_0.gameDuration);
|
|
55975
|
+
destination_4.j(tmp$ret$27);
|
|
55904
55976
|
}
|
|
55905
55977
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55906
|
-
var tmp21_playersRoundAnalytics = copyToArray(
|
|
55978
|
+
var tmp21_playersRoundAnalytics = copyToArray(destination_4);
|
|
55907
55979
|
var tmp22_gameHistory = table_0.gameHistory;
|
|
55908
|
-
var tmp12_safe_receiver = sceneData.w7j_1;
|
|
55909
|
-
var tmp13_safe_receiver = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.u();
|
|
55910
|
-
var tmp_6;
|
|
55911
|
-
if (tmp13_safe_receiver == null) {
|
|
55912
|
-
tmp_6 = null;
|
|
55913
|
-
} else {
|
|
55914
|
-
// Inline function 'kotlin.collections.map' call
|
|
55915
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
55916
|
-
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp13_safe_receiver, 10));
|
|
55917
|
-
var _iterator__ex2g4s_4 = tmp13_safe_receiver.l();
|
|
55918
|
-
while (_iterator__ex2g4s_4.m()) {
|
|
55919
|
-
var item_3 = _iterator__ex2g4s_4.n();
|
|
55920
|
-
// Inline function 'kotlin.collections.component1' call
|
|
55921
|
-
var playerId = item_3.v();
|
|
55922
|
-
// Inline function 'kotlin.collections.component2' call
|
|
55923
|
-
var achievements = item_3.w();
|
|
55924
|
-
var tmp$ret$28 = mapToPlayerAchievements(achievements, playerId);
|
|
55925
|
-
destination_4.j(tmp$ret$28);
|
|
55926
|
-
}
|
|
55927
|
-
tmp_6 = destination_4;
|
|
55928
|
-
}
|
|
55929
|
-
var tmp14_safe_receiver = tmp_6;
|
|
55930
55980
|
var tmp_7;
|
|
55931
|
-
if (
|
|
55981
|
+
if (playerAchievements == null) {
|
|
55932
55982
|
tmp_7 = null;
|
|
55933
55983
|
} else {
|
|
55934
55984
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55935
|
-
tmp_7 = copyToArray(
|
|
55985
|
+
tmp_7 = copyToArray(playerAchievements);
|
|
55936
55986
|
}
|
|
55937
55987
|
var tmp23_achievements = tmp_7;
|
|
55938
|
-
|
|
55988
|
+
tmp_4(new RoundEndedAction(tmp15_id, tmp16_gameId, tmp17_roundNumber, tmp18_earnedBiggestPointPlayerId, gameLosers, tmp19_gameWinners, tmp20_playersGameAnalytics, tmp21_playersRoundAnalytics, tmp23_achievements, tmp22_gameHistory));
|
|
55939
55989
|
}
|
|
55940
55990
|
}
|
|
55941
55991
|
}
|
|
@@ -55976,8 +56026,8 @@
|
|
|
55976
56026
|
return true;
|
|
55977
56027
|
}
|
|
55978
56028
|
function putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1($lastCardInteractor, $isEnableForPlayer) {
|
|
55979
|
-
this.
|
|
55980
|
-
this.
|
|
56029
|
+
this.c9k_1 = $lastCardInteractor;
|
|
56030
|
+
this.d9k_1 = $isEnableForPlayer;
|
|
55981
56031
|
}
|
|
55982
56032
|
protoOf(putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
55983
56033
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -55986,7 +56036,7 @@
|
|
|
55986
56036
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
55987
56037
|
next(action_0);
|
|
55988
56038
|
var tmp0_table = store.state.l6v();
|
|
55989
|
-
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.
|
|
56039
|
+
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.c9k_1, this.d9k_1);
|
|
55990
56040
|
if (newAction == null)
|
|
55991
56041
|
null;
|
|
55992
56042
|
else {
|
|
@@ -56008,16 +56058,16 @@
|
|
|
56008
56058
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput, gameId, roomId) {
|
|
56009
56059
|
var controller = $loggerFactory.q6l(gameId, roomId, $currentPlayerId);
|
|
56010
56060
|
var job = $asyncProvider.a6k(VOID, fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0(controller, $loggerOutput, gameId, null));
|
|
56011
|
-
$loggerOutput.
|
|
56061
|
+
$loggerOutput.e9k(gameId, job, controller);
|
|
56012
56062
|
}
|
|
56013
56063
|
function fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj($loggerOutput, gameId) {
|
|
56014
|
-
$loggerOutput.
|
|
56064
|
+
$loggerOutput.f9k(gameId);
|
|
56015
56065
|
}
|
|
56016
56066
|
function fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput) {
|
|
56017
|
-
this.
|
|
56018
|
-
this.
|
|
56019
|
-
this.
|
|
56020
|
-
this.
|
|
56067
|
+
this.g9k_1 = $loggerFactory;
|
|
56068
|
+
this.h9k_1 = $currentPlayerId;
|
|
56069
|
+
this.i9k_1 = $asyncProvider;
|
|
56070
|
+
this.j9k_1 = $loggerOutput;
|
|
56021
56071
|
}
|
|
56022
56072
|
protoOf(fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56023
56073
|
return action instanceof MechanicAction;
|
|
@@ -56026,11 +56076,11 @@
|
|
|
56026
56076
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
56027
56077
|
next(action_0);
|
|
56028
56078
|
if (isInterface(action_0, FirstMechanicAction)) {
|
|
56029
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
56079
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.g9k_1, this.h9k_1, this.i9k_1, this.j9k_1, action_0.id, action_0.id);
|
|
56030
56080
|
} else {
|
|
56031
56081
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
56032
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
56033
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
56082
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.j9k_1, action_0.previousGameId);
|
|
56083
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.g9k_1, this.h9k_1, this.i9k_1, this.j9k_1, action_0.gameId, store.state.l6v().id);
|
|
56034
56084
|
} else {
|
|
56035
56085
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
56036
56086
|
var tmp1_safe_receiver = store.state.v6u_1;
|
|
@@ -56039,7 +56089,7 @@
|
|
|
56039
56089
|
null;
|
|
56040
56090
|
else {
|
|
56041
56091
|
// Inline function 'kotlin.let' call
|
|
56042
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
56092
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.j9k_1, tmp2_safe_receiver);
|
|
56043
56093
|
}
|
|
56044
56094
|
}
|
|
56045
56095
|
}
|
|
@@ -56049,8 +56099,8 @@
|
|
|
56049
56099
|
return this.u6o(store, next, action);
|
|
56050
56100
|
};
|
|
56051
56101
|
function clearLogFilesMiddleware$o$handle$slambda($fileSystem, $coreConfig, resultContinuation) {
|
|
56052
|
-
this.
|
|
56053
|
-
this.
|
|
56102
|
+
this.s9k_1 = $fileSystem;
|
|
56103
|
+
this.t9k_1 = $coreConfig;
|
|
56054
56104
|
CoroutineImpl.call(this, resultContinuation);
|
|
56055
56105
|
}
|
|
56056
56106
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).h29 = function ($this$launchDefault, $completion) {
|
|
@@ -56071,7 +56121,7 @@
|
|
|
56071
56121
|
case 0:
|
|
56072
56122
|
this.s8_1 = 2;
|
|
56073
56123
|
this.r8_1 = 1;
|
|
56074
|
-
suspendResult = this.
|
|
56124
|
+
suspendResult = this.s9k_1.o6l(this.t9k_1.requireDirectoryPath, this);
|
|
56075
56125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
56076
56126
|
return suspendResult;
|
|
56077
56127
|
}
|
|
@@ -56094,8 +56144,8 @@
|
|
|
56094
56144
|
while (true);
|
|
56095
56145
|
};
|
|
56096
56146
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).i29 = function ($this$launchDefault, completion) {
|
|
56097
|
-
var i = new clearLogFilesMiddleware$o$handle$slambda(this.
|
|
56098
|
-
i.
|
|
56147
|
+
var i = new clearLogFilesMiddleware$o$handle$slambda(this.s9k_1, this.t9k_1, completion);
|
|
56148
|
+
i.u9k_1 = $this$launchDefault;
|
|
56099
56149
|
return i;
|
|
56100
56150
|
};
|
|
56101
56151
|
function clearLogFilesMiddleware$o$handle$slambda_0($fileSystem, $coreConfig, resultContinuation) {
|
|
@@ -56107,29 +56157,29 @@
|
|
|
56107
56157
|
return l;
|
|
56108
56158
|
}
|
|
56109
56159
|
function clearLogFilesMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $fileSystem, $coreConfig) {
|
|
56110
|
-
this.
|
|
56111
|
-
this.
|
|
56112
|
-
this.
|
|
56160
|
+
this.v9k_1 = $asyncProvider;
|
|
56161
|
+
this.w9k_1 = $fileSystem;
|
|
56162
|
+
this.x9k_1 = $coreConfig;
|
|
56113
56163
|
}
|
|
56114
56164
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56115
56165
|
return action instanceof ClearAction;
|
|
56116
56166
|
};
|
|
56117
56167
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).u6o = function (store, next, action) {
|
|
56118
56168
|
var action_0 = action instanceof ClearAction ? action : THROW_CCE();
|
|
56119
|
-
this.
|
|
56169
|
+
this.v9k_1.a6k(VOID, clearLogFilesMiddleware$o$handle$slambda_0(this.w9k_1, this.x9k_1, null));
|
|
56120
56170
|
next(action_0);
|
|
56121
56171
|
};
|
|
56122
56172
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).e6n = function (store, next, action) {
|
|
56123
56173
|
return this.u6o(store, next, action);
|
|
56124
56174
|
};
|
|
56125
56175
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
56126
|
-
this.
|
|
56176
|
+
this.y9k_1 = function_0;
|
|
56127
56177
|
}
|
|
56128
56178
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).g24 = function (value, $completion) {
|
|
56129
|
-
return this.
|
|
56179
|
+
return this.y9k_1(value, $completion);
|
|
56130
56180
|
};
|
|
56131
56181
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).a3 = function () {
|
|
56132
|
-
return this.
|
|
56182
|
+
return this.y9k_1;
|
|
56133
56183
|
};
|
|
56134
56184
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
56135
56185
|
var tmp;
|
|
@@ -56150,17 +56200,17 @@
|
|
|
56150
56200
|
return hashCode(this.a3());
|
|
56151
56201
|
};
|
|
56152
56202
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
56153
|
-
this.
|
|
56203
|
+
this.h9l_1 = $controller;
|
|
56154
56204
|
CoroutineImpl.call(this, resultContinuation);
|
|
56155
56205
|
}
|
|
56156
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
56157
|
-
var tmp = this.
|
|
56206
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).j9l = function (it, $completion) {
|
|
56207
|
+
var tmp = this.k9l(it, $completion);
|
|
56158
56208
|
tmp.t8_1 = Unit_instance;
|
|
56159
56209
|
tmp.u8_1 = null;
|
|
56160
56210
|
return tmp.z8();
|
|
56161
56211
|
};
|
|
56162
56212
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
|
|
56163
|
-
return this.
|
|
56213
|
+
return this.j9l(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
56164
56214
|
};
|
|
56165
56215
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
|
|
56166
56216
|
var suspendResult = this.t8_1;
|
|
@@ -56170,9 +56220,9 @@
|
|
|
56170
56220
|
switch (tmp) {
|
|
56171
56221
|
case 0:
|
|
56172
56222
|
this.s8_1 = 2;
|
|
56173
|
-
var log = this.
|
|
56223
|
+
var log = this.i9l_1.toMessageLog();
|
|
56174
56224
|
this.r8_1 = 1;
|
|
56175
|
-
suspendResult = this.
|
|
56225
|
+
suspendResult = this.h9l_1.q6m(log, this);
|
|
56176
56226
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
56177
56227
|
return suspendResult;
|
|
56178
56228
|
}
|
|
@@ -56194,23 +56244,23 @@
|
|
|
56194
56244
|
}
|
|
56195
56245
|
while (true);
|
|
56196
56246
|
};
|
|
56197
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
56198
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.
|
|
56199
|
-
i.
|
|
56247
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).k9l = function (it, completion) {
|
|
56248
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.h9l_1, completion);
|
|
56249
|
+
i.i9l_1 = it;
|
|
56200
56250
|
return i;
|
|
56201
56251
|
};
|
|
56202
56252
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
56203
56253
|
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
56204
56254
|
var l = function (it, $completion) {
|
|
56205
|
-
return i.
|
|
56255
|
+
return i.j9l(it, $completion);
|
|
56206
56256
|
};
|
|
56207
56257
|
l.$arity = 1;
|
|
56208
56258
|
return l;
|
|
56209
56259
|
}
|
|
56210
56260
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
56211
|
-
this.
|
|
56212
|
-
this.
|
|
56213
|
-
this.
|
|
56261
|
+
this.t9l_1 = $controller;
|
|
56262
|
+
this.u9l_1 = $$loggerOutput;
|
|
56263
|
+
this.v9l_1 = $gameId;
|
|
56214
56264
|
CoroutineImpl.call(this, resultContinuation);
|
|
56215
56265
|
}
|
|
56216
56266
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).h29 = function ($this$launchDefault, $completion) {
|
|
@@ -56231,7 +56281,7 @@
|
|
|
56231
56281
|
case 0:
|
|
56232
56282
|
this.s8_1 = 3;
|
|
56233
56283
|
this.r8_1 = 1;
|
|
56234
|
-
suspendResult = this.
|
|
56284
|
+
suspendResult = this.t9l_1.p6m(this);
|
|
56235
56285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
56236
56286
|
return suspendResult;
|
|
56237
56287
|
}
|
|
@@ -56239,8 +56289,8 @@
|
|
|
56239
56289
|
continue $sm;
|
|
56240
56290
|
case 1:
|
|
56241
56291
|
this.r8_1 = 2;
|
|
56242
|
-
var tmp_0 = this.
|
|
56243
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
56292
|
+
var tmp_0 = this.u9l_1.x9l(this.v9l_1);
|
|
56293
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.t9l_1, null);
|
|
56244
56294
|
suspendResult = tmp_0.d23(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
56245
56295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
56246
56296
|
return suspendResult;
|
|
@@ -56264,8 +56314,8 @@
|
|
|
56264
56314
|
while (true);
|
|
56265
56315
|
};
|
|
56266
56316
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).i29 = function ($this$launchDefault, completion) {
|
|
56267
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
56268
|
-
i.
|
|
56317
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.t9l_1, this.u9l_1, this.v9l_1, completion);
|
|
56318
|
+
i.w9l_1 = $this$launchDefault;
|
|
56269
56319
|
return i;
|
|
56270
56320
|
};
|
|
56271
56321
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
@@ -56384,20 +56434,20 @@
|
|
|
56384
56434
|
return null;
|
|
56385
56435
|
}
|
|
56386
56436
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
|
|
56387
|
-
this.
|
|
56388
|
-
this.
|
|
56389
|
-
this.
|
|
56390
|
-
this.
|
|
56391
|
-
this.
|
|
56437
|
+
this.y9l_1 = $engineLogicConfig;
|
|
56438
|
+
this.z9l_1 = $logger;
|
|
56439
|
+
this.a9m_1 = $sceneRouter;
|
|
56440
|
+
this.b9m_1 = $idsProvider;
|
|
56441
|
+
this.c9m_1 = $playerConnectionInteractor;
|
|
56392
56442
|
}
|
|
56393
56443
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56394
56444
|
return action instanceof MechanicAction;
|
|
56395
56445
|
};
|
|
56396
56446
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).u6o = function (store, next, action) {
|
|
56397
56447
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
56398
|
-
if (this.
|
|
56448
|
+
if (this.y9l_1.validateIfMainThread) {
|
|
56399
56449
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
56400
|
-
var logger = this.
|
|
56450
|
+
var logger = this.z9l_1;
|
|
56401
56451
|
var tmp;
|
|
56402
56452
|
try {
|
|
56403
56453
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -56424,22 +56474,22 @@
|
|
|
56424
56474
|
if (equals(action_0.l88_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
56425
56475
|
tmp_2 = listOf(createHostDealerAct(action_0.o88_1));
|
|
56426
56476
|
} else {
|
|
56427
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
56477
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.a9m_1.p9b(action_0.l88_1, true).c9c_1));
|
|
56428
56478
|
}
|
|
56429
56479
|
tmp_1 = tmp_2;
|
|
56430
56480
|
} else {
|
|
56431
56481
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
56432
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
56482
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.a9m_1.p9b(state.l6v().config, false).c9c_1));
|
|
56433
56483
|
} else {
|
|
56434
56484
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
56435
56485
|
var tmp1_config = state.l6v().config;
|
|
56436
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
56486
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.a9m_1.q9b(tmp1_config, false, false).c9c_1));
|
|
56437
56487
|
} else {
|
|
56438
56488
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
56439
56489
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.l6v().sceneInfo.t8b_1));
|
|
56440
56490
|
} else {
|
|
56441
56491
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
56442
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.l6v(), this.
|
|
56492
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.l6v(), this.b9m_1, this.y9l_1, this.c9m_1, this.z9l_1));
|
|
56443
56493
|
} else {
|
|
56444
56494
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
56445
56495
|
var tmp_3;
|
|
@@ -56577,12 +56627,12 @@
|
|
|
56577
56627
|
}
|
|
56578
56628
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
56579
56629
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
56580
|
-
this.
|
|
56581
|
-
this.
|
|
56582
|
-
this.
|
|
56630
|
+
this.d9m_1 = playersIds;
|
|
56631
|
+
this.e9m_1 = tag;
|
|
56632
|
+
this.f9m_1 = afterReconnection;
|
|
56583
56633
|
}
|
|
56584
56634
|
protoOf(PlayerTurnTimerTag).f6d = function () {
|
|
56585
|
-
return single(this.
|
|
56635
|
+
return single(this.d9m_1);
|
|
56586
56636
|
};
|
|
56587
56637
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
56588
56638
|
if (this === other)
|
|
@@ -56591,13 +56641,13 @@
|
|
|
56591
56641
|
return false;
|
|
56592
56642
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
56593
56643
|
THROW_CCE();
|
|
56594
|
-
return equals(this.
|
|
56644
|
+
return equals(this.d9m_1, other.d9m_1);
|
|
56595
56645
|
};
|
|
56596
56646
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
56597
|
-
return hashCode(this.
|
|
56647
|
+
return hashCode(this.d9m_1);
|
|
56598
56648
|
};
|
|
56599
56649
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
56600
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
56650
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.d9m_1) + ', tag=' + this.e9m_1 + ', afterReconnection=' + this.f9m_1 + ')';
|
|
56601
56651
|
};
|
|
56602
56652
|
function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
|
|
56603
56653
|
isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
|
|
@@ -56640,10 +56690,10 @@
|
|
|
56640
56690
|
return tmp;
|
|
56641
56691
|
}
|
|
56642
56692
|
function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
56643
|
-
this.
|
|
56644
|
-
this.
|
|
56645
|
-
this.
|
|
56646
|
-
this.
|
|
56693
|
+
this.g9m_1 = $isEnableTimerForPlayer;
|
|
56694
|
+
this.h9m_1 = $playerTurnInteractor;
|
|
56695
|
+
this.i9m_1 = $botConfig;
|
|
56696
|
+
this.j9m_1 = $mergeTimers;
|
|
56647
56697
|
}
|
|
56648
56698
|
protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56649
56699
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -56659,14 +56709,14 @@
|
|
|
56659
56709
|
var _iterator__ex2g4s = tmp0.l();
|
|
56660
56710
|
while (_iterator__ex2g4s.m()) {
|
|
56661
56711
|
var element = _iterator__ex2g4s.n();
|
|
56662
|
-
if (this.
|
|
56712
|
+
if (this.g9m_1(element)) {
|
|
56663
56713
|
destination.j(element);
|
|
56664
56714
|
}
|
|
56665
56715
|
}
|
|
56666
56716
|
var startTimerForPlayers = destination;
|
|
56667
56717
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
56668
56718
|
if (!startTimerForPlayers.q()) {
|
|
56669
|
-
var playerTurnModel = this.
|
|
56719
|
+
var playerTurnModel = this.h9m_1.q99(action_0, table);
|
|
56670
56720
|
if (!(playerTurnModel == null)) {
|
|
56671
56721
|
// Inline function 'kotlin.collections.map' call
|
|
56672
56722
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56674,11 +56724,11 @@
|
|
|
56674
56724
|
var _iterator__ex2g4s_0 = startTimerForPlayers.l();
|
|
56675
56725
|
while (_iterator__ex2g4s_0.m()) {
|
|
56676
56726
|
var item = _iterator__ex2g4s_0.n();
|
|
56677
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
56727
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.i9m_1.isDelayForBot, this.i9m_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
56678
56728
|
destination_0.j(tmp$ret$4);
|
|
56679
56729
|
}
|
|
56680
56730
|
var timeForPlayers = destination_0;
|
|
56681
|
-
if (this.
|
|
56731
|
+
if (this.j9m_1) {
|
|
56682
56732
|
// Inline function 'kotlin.collections.groupBy' call
|
|
56683
56733
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
56684
56734
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -56752,14 +56802,14 @@
|
|
|
56752
56802
|
return this.u6o(store, next, action);
|
|
56753
56803
|
};
|
|
56754
56804
|
function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
56755
|
-
this.
|
|
56805
|
+
this.k9m_1 = $isEnableBotForPlayer;
|
|
56756
56806
|
}
|
|
56757
56807
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56758
56808
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
56759
56809
|
};
|
|
56760
56810
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).u6o = function (store, next, action) {
|
|
56761
56811
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
56762
|
-
if (this.
|
|
56812
|
+
if (this.k9m_1(action_0.playerId)) {
|
|
56763
56813
|
var table = store.state.l6v();
|
|
56764
56814
|
var player = getPlayer(table.players, action_0.playerId);
|
|
56765
56815
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -56780,7 +56830,7 @@
|
|
|
56780
56830
|
var _iterator__ex2g4s_0 = destination.l();
|
|
56781
56831
|
while (_iterator__ex2g4s_0.m()) {
|
|
56782
56832
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
56783
|
-
if (element_0.
|
|
56833
|
+
if (element_0.d9m_1.t1(action_0.playerId) && element_0.e9m_1 === player.w6y_1.x6f()) {
|
|
56784
56834
|
tmp$ret$3 = element_0;
|
|
56785
56835
|
break $l$block;
|
|
56786
56836
|
}
|
|
@@ -56802,8 +56852,8 @@
|
|
|
56802
56852
|
return new playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1(asyncProvider);
|
|
56803
56853
|
}
|
|
56804
56854
|
function playerTurnTimeoutMiddleware$o$handle$slambda($store, $timerTag, resultContinuation) {
|
|
56805
|
-
this.
|
|
56806
|
-
this.
|
|
56855
|
+
this.t9m_1 = $store;
|
|
56856
|
+
this.u9m_1 = $timerTag;
|
|
56807
56857
|
CoroutineImpl.call(this, resultContinuation);
|
|
56808
56858
|
}
|
|
56809
56859
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).h29 = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -56822,7 +56872,7 @@
|
|
|
56822
56872
|
var tmp = this.r8_1;
|
|
56823
56873
|
if (tmp === 0) {
|
|
56824
56874
|
this.s8_1 = 1;
|
|
56825
|
-
this.
|
|
56875
|
+
this.t9m_1.dispatch(new AskBotAction(this.u9m_1.d9m_1, 'PlayerTurn'));
|
|
56826
56876
|
return Unit_instance;
|
|
56827
56877
|
} else if (tmp === 1) {
|
|
56828
56878
|
throw this.u8_1;
|
|
@@ -56834,8 +56884,8 @@
|
|
|
56834
56884
|
while (true);
|
|
56835
56885
|
};
|
|
56836
56886
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).i29 = function ($this$launchDefaultWithLock, completion) {
|
|
56837
|
-
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.
|
|
56838
|
-
i.
|
|
56887
|
+
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.t9m_1, this.u9m_1, completion);
|
|
56888
|
+
i.v9m_1 = $this$launchDefaultWithLock;
|
|
56839
56889
|
return i;
|
|
56840
56890
|
};
|
|
56841
56891
|
function playerTurnTimeoutMiddleware$o$handle$slambda_0($store, $timerTag, resultContinuation) {
|
|
@@ -56847,7 +56897,7 @@
|
|
|
56847
56897
|
return l;
|
|
56848
56898
|
}
|
|
56849
56899
|
function playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1($asyncProvider) {
|
|
56850
|
-
this.
|
|
56900
|
+
this.w9m_1 = $asyncProvider;
|
|
56851
56901
|
}
|
|
56852
56902
|
protoOf(playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56853
56903
|
return action instanceof TimerTickAction;
|
|
@@ -56856,7 +56906,7 @@
|
|
|
56856
56906
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
56857
56907
|
var timerTag = action_0.b6n_1;
|
|
56858
56908
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
56859
|
-
this.
|
|
56909
|
+
this.w9m_1.c6k(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
|
|
56860
56910
|
}
|
|
56861
56911
|
next(action_0);
|
|
56862
56912
|
};
|
|
@@ -56868,11 +56918,11 @@
|
|
|
56868
56918
|
return new playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
56869
56919
|
}
|
|
56870
56920
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
56871
|
-
this.
|
|
56872
|
-
this.
|
|
56873
|
-
this.
|
|
56874
|
-
this.
|
|
56875
|
-
this.
|
|
56921
|
+
this.f9n_1 = $store;
|
|
56922
|
+
this.g9n_1 = $timerTag;
|
|
56923
|
+
this.h9n_1 = $serverConfig;
|
|
56924
|
+
this.i9n_1 = $logger;
|
|
56925
|
+
this.j9n_1 = $action;
|
|
56876
56926
|
CoroutineImpl.call(this, resultContinuation);
|
|
56877
56927
|
}
|
|
56878
56928
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).h29 = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -56891,13 +56941,13 @@
|
|
|
56891
56941
|
var tmp = this.r8_1;
|
|
56892
56942
|
if (tmp === 0) {
|
|
56893
56943
|
this.s8_1 = 1;
|
|
56894
|
-
var table = this.
|
|
56895
|
-
var player = getPlayer(table.players, this.
|
|
56944
|
+
var table = this.f9n_1.state.l6v();
|
|
56945
|
+
var player = getPlayer(table.players, this.g9n_1.f6d());
|
|
56896
56946
|
var connectionState = player.w6y_1.h6g().y6e_1;
|
|
56897
56947
|
var tmp_0;
|
|
56898
56948
|
switch (connectionState.p2_1) {
|
|
56899
56949
|
case 0:
|
|
56900
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.
|
|
56950
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.g9n_1.f9m_1));
|
|
56901
56951
|
break;
|
|
56902
56952
|
case 4:
|
|
56903
56953
|
tmp_0 = emptyList();
|
|
@@ -56906,8 +56956,8 @@
|
|
|
56906
56956
|
case 2:
|
|
56907
56957
|
case 1:
|
|
56908
56958
|
var tmp_1;
|
|
56909
|
-
if (table.sceneInfo.x7j() && this.
|
|
56910
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.
|
|
56959
|
+
if (table.sceneInfo.x7j() && this.h9n_1.closeIfBotsAtFinish) {
|
|
56960
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.g9n_1.f9m_1);
|
|
56911
56961
|
} else {
|
|
56912
56962
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
56913
56963
|
}
|
|
@@ -56915,7 +56965,7 @@
|
|
|
56915
56965
|
tmp_0 = listOf(tmp_1);
|
|
56916
56966
|
break;
|
|
56917
56967
|
case 5:
|
|
56918
|
-
this.
|
|
56968
|
+
this.i9n_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + connectionState.toString() + ', ') + ('action:' + this.j9n_1.toString()));
|
|
56919
56969
|
tmp_0 = emptyList();
|
|
56920
56970
|
break;
|
|
56921
56971
|
default:
|
|
@@ -56927,7 +56977,7 @@
|
|
|
56927
56977
|
var _iterator__ex2g4s = actions.l();
|
|
56928
56978
|
while (_iterator__ex2g4s.m()) {
|
|
56929
56979
|
var element = _iterator__ex2g4s.n();
|
|
56930
|
-
this.
|
|
56980
|
+
this.f9n_1.dispatch(element);
|
|
56931
56981
|
}
|
|
56932
56982
|
}
|
|
56933
56983
|
return Unit_instance;
|
|
@@ -56941,8 +56991,8 @@
|
|
|
56941
56991
|
while (true);
|
|
56942
56992
|
};
|
|
56943
56993
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).i29 = function ($this$launchDefaultWithLock, completion) {
|
|
56944
|
-
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.
|
|
56945
|
-
i.
|
|
56994
|
+
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.f9n_1, this.g9n_1, this.h9n_1, this.i9n_1, this.j9n_1, completion);
|
|
56995
|
+
i.k9n_1 = $this$launchDefaultWithLock;
|
|
56946
56996
|
return i;
|
|
56947
56997
|
};
|
|
56948
56998
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -56954,9 +57004,9 @@
|
|
|
56954
57004
|
return l;
|
|
56955
57005
|
}
|
|
56956
57006
|
function playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
56957
|
-
this.
|
|
56958
|
-
this.
|
|
56959
|
-
this.
|
|
57007
|
+
this.l9n_1 = $asyncProvider;
|
|
57008
|
+
this.m9n_1 = $serverConfig;
|
|
57009
|
+
this.n9n_1 = $logger;
|
|
56960
57010
|
}
|
|
56961
57011
|
protoOf(playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56962
57012
|
return action instanceof TimerTickAction;
|
|
@@ -56965,7 +57015,7 @@
|
|
|
56965
57015
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
56966
57016
|
var timerTag = action_0.b6n_1;
|
|
56967
57017
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
56968
|
-
this.
|
|
57018
|
+
this.l9n_1.c6k(VOID, playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0(store, timerTag, this.m9n_1, this.n9n_1, action_0, null));
|
|
56969
57019
|
}
|
|
56970
57020
|
next(action_0);
|
|
56971
57021
|
};
|
|
@@ -56977,7 +57027,7 @@
|
|
|
56977
57027
|
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
56978
57028
|
}
|
|
56979
57029
|
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
56980
|
-
this.
|
|
57030
|
+
this.o9n_1 = $playerConnectionInteractor;
|
|
56981
57031
|
}
|
|
56982
57032
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
56983
57033
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -57013,7 +57063,7 @@
|
|
|
57013
57063
|
var _iterator__ex2g4s_0 = destination.l();
|
|
57014
57064
|
while (_iterator__ex2g4s_0.m()) {
|
|
57015
57065
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
57016
|
-
if (element_0.
|
|
57066
|
+
if (element_0.p9n_1 === tmp4.o9c_1) {
|
|
57017
57067
|
if (found) {
|
|
57018
57068
|
tmp$ret$4 = null;
|
|
57019
57069
|
break $l$block_2;
|
|
@@ -57032,7 +57082,7 @@
|
|
|
57032
57082
|
if (!(reconnectionTimerTag == null)) {
|
|
57033
57083
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
57034
57084
|
}
|
|
57035
|
-
var actions = this.
|
|
57085
|
+
var actions = this.o9n_1.o99(tmp4.n9c_1, tmp4.o9c_1, store.state.l6v(), tmp4.p9c_1);
|
|
57036
57086
|
// Inline function 'kotlin.collections.forEach' call
|
|
57037
57087
|
var _iterator__ex2g4s_1 = actions.l();
|
|
57038
57088
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -57049,15 +57099,15 @@
|
|
|
57049
57099
|
return new playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
57050
57100
|
}
|
|
57051
57101
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
57052
|
-
this.
|
|
57053
|
-
this.
|
|
57102
|
+
this.p9n_1 = playerId;
|
|
57103
|
+
this.q9n_1 = state;
|
|
57054
57104
|
}
|
|
57055
57105
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
57056
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
57106
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.p9n_1 + ', state=' + this.q9n_1.toString() + ')';
|
|
57057
57107
|
};
|
|
57058
57108
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
57059
|
-
var result = getStringHashCode(this.
|
|
57060
|
-
result = imul(result, 31) + this.
|
|
57109
|
+
var result = getStringHashCode(this.p9n_1);
|
|
57110
|
+
result = imul(result, 31) + this.q9n_1.hashCode() | 0;
|
|
57061
57111
|
return result;
|
|
57062
57112
|
};
|
|
57063
57113
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -57065,14 +57115,14 @@
|
|
|
57065
57115
|
return true;
|
|
57066
57116
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
57067
57117
|
return false;
|
|
57068
|
-
if (!(this.
|
|
57118
|
+
if (!(this.p9n_1 === other.p9n_1))
|
|
57069
57119
|
return false;
|
|
57070
|
-
if (!this.
|
|
57120
|
+
if (!this.q9n_1.equals(other.q9n_1))
|
|
57071
57121
|
return false;
|
|
57072
57122
|
return true;
|
|
57073
57123
|
};
|
|
57074
57124
|
function playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
57075
|
-
this.
|
|
57125
|
+
this.r9n_1 = $playerConnectionInteractor;
|
|
57076
57126
|
}
|
|
57077
57127
|
protoOf(playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57078
57128
|
return action instanceof TimerTickAction;
|
|
@@ -57086,7 +57136,7 @@
|
|
|
57086
57136
|
var timerTag = tmp4.b6n_1;
|
|
57087
57137
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
57088
57138
|
var state = store.state;
|
|
57089
|
-
var actions = this.
|
|
57139
|
+
var actions = this.r9n_1.o99(timerTag.q9n_1, timerTag.p9n_1, state.l6v(), true);
|
|
57090
57140
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
57091
57141
|
if (!actions.q()) {
|
|
57092
57142
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -57108,8 +57158,8 @@
|
|
|
57108
57158
|
return new clearOnFinishMiddleware$$inlined$middlewareForActionType$1(asyncProvider, operationsToWait);
|
|
57109
57159
|
}
|
|
57110
57160
|
function clearOnFinishMiddleware$o$handle$slambda($operationsToWait, $store, resultContinuation) {
|
|
57111
|
-
this.
|
|
57112
|
-
this.
|
|
57161
|
+
this.a9o_1 = $operationsToWait;
|
|
57162
|
+
this.b9o_1 = $store;
|
|
57113
57163
|
CoroutineImpl.call(this, resultContinuation);
|
|
57114
57164
|
}
|
|
57115
57165
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).h29 = function ($this$launchDefault, $completion) {
|
|
@@ -57129,18 +57179,18 @@
|
|
|
57129
57179
|
switch (tmp) {
|
|
57130
57180
|
case 0:
|
|
57131
57181
|
this.s8_1 = 4;
|
|
57132
|
-
this.
|
|
57182
|
+
this.d9o_1 = this.a9o_1.l();
|
|
57133
57183
|
this.r8_1 = 1;
|
|
57134
57184
|
continue $sm;
|
|
57135
57185
|
case 1:
|
|
57136
|
-
if (!this.
|
|
57186
|
+
if (!this.d9o_1.m()) {
|
|
57137
57187
|
this.r8_1 = 3;
|
|
57138
57188
|
continue $sm;
|
|
57139
57189
|
}
|
|
57140
57190
|
|
|
57141
|
-
var element = this.
|
|
57191
|
+
var element = this.d9o_1.n();
|
|
57142
57192
|
this.r8_1 = 2;
|
|
57143
|
-
suspendResult = element.
|
|
57193
|
+
suspendResult = element.e9o(this);
|
|
57144
57194
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
57145
57195
|
return suspendResult;
|
|
57146
57196
|
}
|
|
@@ -57150,8 +57200,8 @@
|
|
|
57150
57200
|
this.r8_1 = 1;
|
|
57151
57201
|
continue $sm;
|
|
57152
57202
|
case 3:
|
|
57153
|
-
var tmp_0 = this.
|
|
57154
|
-
var tmp0_safe_receiver = this.
|
|
57203
|
+
var tmp_0 = this.b9o_1.dispatch;
|
|
57204
|
+
var tmp0_safe_receiver = this.b9o_1.state.x6u_1;
|
|
57155
57205
|
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c8e_1));
|
|
57156
57206
|
return Unit_instance;
|
|
57157
57207
|
case 4:
|
|
@@ -57169,8 +57219,8 @@
|
|
|
57169
57219
|
while (true);
|
|
57170
57220
|
};
|
|
57171
57221
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).i29 = function ($this$launchDefault, completion) {
|
|
57172
|
-
var i = new clearOnFinishMiddleware$o$handle$slambda(this.
|
|
57173
|
-
i.
|
|
57222
|
+
var i = new clearOnFinishMiddleware$o$handle$slambda(this.a9o_1, this.b9o_1, completion);
|
|
57223
|
+
i.c9o_1 = $this$launchDefault;
|
|
57174
57224
|
return i;
|
|
57175
57225
|
};
|
|
57176
57226
|
function clearOnFinishMiddleware$o$handle$slambda_0($operationsToWait, $store, resultContinuation) {
|
|
@@ -57182,15 +57232,15 @@
|
|
|
57182
57232
|
return l;
|
|
57183
57233
|
}
|
|
57184
57234
|
function clearOnFinishMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $operationsToWait) {
|
|
57185
|
-
this.
|
|
57186
|
-
this.
|
|
57235
|
+
this.f9o_1 = $asyncProvider;
|
|
57236
|
+
this.g9o_1 = $operationsToWait;
|
|
57187
57237
|
}
|
|
57188
57238
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57189
57239
|
return action instanceof FinishGameMechanicAction;
|
|
57190
57240
|
};
|
|
57191
57241
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).u6o = function (store, next, action) {
|
|
57192
57242
|
next(action instanceof FinishGameMechanicAction ? action : THROW_CCE());
|
|
57193
|
-
this.
|
|
57243
|
+
this.f9o_1.a6k(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.g9o_1, store, null));
|
|
57194
57244
|
};
|
|
57195
57245
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).e6n = function (store, next, action) {
|
|
57196
57246
|
return this.u6o(store, next, action);
|
|
@@ -57200,12 +57250,12 @@
|
|
|
57200
57250
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
57201
57251
|
}
|
|
57202
57252
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
57203
|
-
this.
|
|
57204
|
-
this.
|
|
57205
|
-
this.
|
|
57206
|
-
this.
|
|
57207
|
-
this.
|
|
57208
|
-
this.
|
|
57253
|
+
this.p9o_1 = $action;
|
|
57254
|
+
this.q9o_1 = $sceneFactory;
|
|
57255
|
+
this.r9o_1 = $table;
|
|
57256
|
+
this.s9o_1 = $router;
|
|
57257
|
+
this.t9o_1 = $store;
|
|
57258
|
+
this.u9o_1 = $sceneValidationInteractor;
|
|
57209
57259
|
CoroutineImpl.call(this, resultContinuation);
|
|
57210
57260
|
}
|
|
57211
57261
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).h29 = function ($this$launchDefault, $completion) {
|
|
@@ -57225,10 +57275,10 @@
|
|
|
57225
57275
|
switch (tmp) {
|
|
57226
57276
|
case 0:
|
|
57227
57277
|
this.s8_1 = 3;
|
|
57228
|
-
var tmp0_subject = this.
|
|
57278
|
+
var tmp0_subject = this.p9o_1;
|
|
57229
57279
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
57230
57280
|
this.r8_1 = 1;
|
|
57231
|
-
suspendResult = this.
|
|
57281
|
+
suspendResult = this.q9o_1.l9b(this.p9o_1.z9e_1, this.r9o_1, this);
|
|
57232
57282
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
57233
57283
|
return suspendResult;
|
|
57234
57284
|
}
|
|
@@ -57236,37 +57286,37 @@
|
|
|
57236
57286
|
} else {
|
|
57237
57287
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
57238
57288
|
var tmp_0 = this;
|
|
57239
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
57289
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.r9o_1.players));
|
|
57240
57290
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
57241
|
-
var nextSceneCommand = this.
|
|
57291
|
+
var nextSceneCommand = this.s9o_1.w9b(this.p9o_1.v9e_1, !(gameWinnerPlayerId == null), false, this.r9o_1.config);
|
|
57242
57292
|
var tmp_1;
|
|
57243
57293
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
57244
57294
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.c9c_1));
|
|
57245
57295
|
} else {
|
|
57246
57296
|
noWhenBranchMatchedException();
|
|
57247
57297
|
}
|
|
57248
|
-
tmp_0.
|
|
57298
|
+
tmp_0.w9o_1 = tmp_1;
|
|
57249
57299
|
this.r8_1 = 2;
|
|
57250
57300
|
continue $sm;
|
|
57251
57301
|
} else {
|
|
57252
57302
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
57253
57303
|
var tmp_2 = this;
|
|
57254
|
-
this.
|
|
57255
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
57256
|
-
tmp_2.
|
|
57304
|
+
this.u9o_1.t9b(this.t9o_1.state.y6u_1, 'Timers are not empty before scene act ' + this.p9o_1.w9e_1 + ', ' + this.p9o_1.x9e_1);
|
|
57305
|
+
var mechanicAction = new SceneActMechanicAction(this.p9o_1.w9e_1, this.p9o_1.x9e_1, this.p9o_1.y9e_1);
|
|
57306
|
+
tmp_2.w9o_1 = listOf(mechanicAction);
|
|
57257
57307
|
this.r8_1 = 2;
|
|
57258
57308
|
continue $sm;
|
|
57259
57309
|
} else {
|
|
57260
57310
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
57261
57311
|
var tmp_3 = this;
|
|
57262
|
-
var navigationCommand = this.
|
|
57312
|
+
var navigationCommand = this.s9o_1.y9b(this.p9o_1.a9f_1, this.r9o_1);
|
|
57263
57313
|
var tmp_4;
|
|
57264
57314
|
if (navigationCommand instanceof FinishActNext) {
|
|
57265
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
57315
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.r9o_1.sceneInfo.t8b_1));
|
|
57266
57316
|
} else {
|
|
57267
57317
|
if (navigationCommand instanceof MoveActNext) {
|
|
57268
57318
|
var tmp9_actId = navigationCommand.e9c_1;
|
|
57269
|
-
var tmp0 = this.
|
|
57319
|
+
var tmp0 = this.r9o_1.sceneInfo.w8b_1;
|
|
57270
57320
|
var tmp$ret$2;
|
|
57271
57321
|
l$ret$3: do {
|
|
57272
57322
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -57278,13 +57328,13 @@
|
|
|
57278
57328
|
while (false);
|
|
57279
57329
|
var tmp10_sceneData = tmp$ret$2;
|
|
57280
57330
|
var tmp11_payload = navigationCommand.f9c_1;
|
|
57281
|
-
var actData = this.
|
|
57282
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
57331
|
+
var actData = this.q9o_1.m9b(tmp9_actId, tmp10_sceneData, tmp11_payload, this.r9o_1);
|
|
57332
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.r9o_1.sceneInfo.t8b_1, navigationCommand.e9c_1, actData));
|
|
57283
57333
|
} else {
|
|
57284
57334
|
noWhenBranchMatchedException();
|
|
57285
57335
|
}
|
|
57286
57336
|
}
|
|
57287
|
-
tmp_3.
|
|
57337
|
+
tmp_3.w9o_1 = tmp_4;
|
|
57288
57338
|
this.r8_1 = 2;
|
|
57289
57339
|
continue $sm;
|
|
57290
57340
|
} else {
|
|
@@ -57298,19 +57348,19 @@
|
|
|
57298
57348
|
break;
|
|
57299
57349
|
case 1:
|
|
57300
57350
|
var sceneData = suspendResult;
|
|
57301
|
-
var navigationActCommand = this.
|
|
57351
|
+
var navigationActCommand = this.s9o_1.v9b(sceneData, this.r9o_1);
|
|
57302
57352
|
var tmp_6;
|
|
57303
57353
|
if (navigationActCommand == null) {
|
|
57304
57354
|
tmp_6 = null;
|
|
57305
57355
|
} else {
|
|
57306
57356
|
var tmp0_actId = navigationActCommand.e9c_1;
|
|
57307
57357
|
var tmp1_payload = navigationActCommand.f9c_1;
|
|
57308
|
-
tmp_6 = this.
|
|
57358
|
+
tmp_6 = this.q9o_1.m9b(tmp0_actId, sceneData, tmp1_payload, this.r9o_1);
|
|
57309
57359
|
}
|
|
57310
57360
|
|
|
57311
57361
|
var actData_0 = tmp_6;
|
|
57312
|
-
var state = this.
|
|
57313
|
-
this.
|
|
57362
|
+
var state = this.t9o_1.state;
|
|
57363
|
+
this.u9o_1.t9b(state.y6u_1, 'Timers are not empty before scene ' + this.p9o_1.z9e_1);
|
|
57314
57364
|
var tmp_7;
|
|
57315
57365
|
if (equals(state.l6v().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
57316
57366
|
var tmp2_safe_receiver = state.l6v().sceneInfo.x8b_1;
|
|
@@ -57336,18 +57386,18 @@
|
|
|
57336
57386
|
}
|
|
57337
57387
|
|
|
57338
57388
|
var currentTurnPlayerId = tmp_7;
|
|
57339
|
-
var tmp5_sceneId = this.
|
|
57389
|
+
var tmp5_sceneId = this.p9o_1.z9e_1;
|
|
57340
57390
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
57341
57391
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
57342
|
-
this.
|
|
57392
|
+
this.w9o_1 = listOfNotNull_0(mechanicAction_0);
|
|
57343
57393
|
this.r8_1 = 2;
|
|
57344
57394
|
continue $sm;
|
|
57345
57395
|
case 2:
|
|
57346
|
-
var navigationActions = this.
|
|
57396
|
+
var navigationActions = this.w9o_1;
|
|
57347
57397
|
var _iterator__ex2g4s = navigationActions.l();
|
|
57348
57398
|
while (_iterator__ex2g4s.m()) {
|
|
57349
57399
|
var element = _iterator__ex2g4s.n();
|
|
57350
|
-
this.
|
|
57400
|
+
this.t9o_1.dispatch(element);
|
|
57351
57401
|
}
|
|
57352
57402
|
|
|
57353
57403
|
return Unit_instance;
|
|
@@ -57366,8 +57416,8 @@
|
|
|
57366
57416
|
while (true);
|
|
57367
57417
|
};
|
|
57368
57418
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).i29 = function ($this$launchDefault, completion) {
|
|
57369
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.
|
|
57370
|
-
i.
|
|
57419
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.p9o_1, this.q9o_1, this.r9o_1, this.s9o_1, this.t9o_1, this.u9o_1, completion);
|
|
57420
|
+
i.v9o_1 = $this$launchDefault;
|
|
57371
57421
|
return i;
|
|
57372
57422
|
};
|
|
57373
57423
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -57379,10 +57429,10 @@
|
|
|
57379
57429
|
return l;
|
|
57380
57430
|
}
|
|
57381
57431
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
57382
|
-
this.
|
|
57383
|
-
this.
|
|
57384
|
-
this.
|
|
57385
|
-
this.
|
|
57432
|
+
this.x9o_1 = $asyncProvider;
|
|
57433
|
+
this.y9o_1 = $sceneFactory;
|
|
57434
|
+
this.z9o_1 = $router;
|
|
57435
|
+
this.a9p_1 = $sceneValidationInteractor;
|
|
57386
57436
|
}
|
|
57387
57437
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57388
57438
|
return action instanceof SceneLifecycleAction;
|
|
@@ -57391,7 +57441,7 @@
|
|
|
57391
57441
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
57392
57442
|
var table = store.state.l6v();
|
|
57393
57443
|
next(action_0);
|
|
57394
|
-
this.
|
|
57444
|
+
this.x9o_1.a6k(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.y9o_1, table, this.z9o_1, store, this.a9p_1, null));
|
|
57395
57445
|
};
|
|
57396
57446
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).e6n = function (store, next, action) {
|
|
57397
57447
|
return this.u6o(store, next, action);
|
|
@@ -57437,7 +57487,7 @@
|
|
|
57437
57487
|
return new checkBotsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57438
57488
|
}
|
|
57439
57489
|
function checkBotsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57440
|
-
this.
|
|
57490
|
+
this.b9p_1 = $logger;
|
|
57441
57491
|
}
|
|
57442
57492
|
protoOf(checkBotsMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57443
57493
|
return action instanceof SceneMechanicAction;
|
|
@@ -57485,7 +57535,7 @@
|
|
|
57485
57535
|
var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.y6e_1);
|
|
57486
57536
|
destination.j(tmp$ret$2);
|
|
57487
57537
|
}
|
|
57488
|
-
this.
|
|
57538
|
+
this.b9p_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
|
|
57489
57539
|
}
|
|
57490
57540
|
}
|
|
57491
57541
|
next(action_0);
|
|
@@ -57498,7 +57548,7 @@
|
|
|
57498
57548
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57499
57549
|
}
|
|
57500
57550
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57501
|
-
this.
|
|
57551
|
+
this.c9p_1 = $logger;
|
|
57502
57552
|
}
|
|
57503
57553
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57504
57554
|
return action instanceof PutCardMechanicAction;
|
|
@@ -57531,7 +57581,7 @@
|
|
|
57531
57581
|
var bribes = destination;
|
|
57532
57582
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
57533
57583
|
if (!bribes.q()) {
|
|
57534
|
-
this.
|
|
57584
|
+
this.c9p_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.f8a_1.toString() + ', bribes = ' + toString(bribes));
|
|
57535
57585
|
}
|
|
57536
57586
|
}
|
|
57537
57587
|
next(action_0);
|
|
@@ -57544,7 +57594,7 @@
|
|
|
57544
57594
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57545
57595
|
}
|
|
57546
57596
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57547
|
-
this.
|
|
57597
|
+
this.d9p_1 = $logger;
|
|
57548
57598
|
}
|
|
57549
57599
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57550
57600
|
return action instanceof SceneMechanicAction;
|
|
@@ -57761,7 +57811,7 @@
|
|
|
57761
57811
|
}
|
|
57762
57812
|
var notValidMessage = tmp;
|
|
57763
57813
|
if (!(notValidMessage == null)) {
|
|
57764
|
-
this.
|
|
57814
|
+
this.d9p_1.w('Validation', toString_0(notValidMessage));
|
|
57765
57815
|
}
|
|
57766
57816
|
}
|
|
57767
57817
|
}
|
|
@@ -57852,7 +57902,7 @@
|
|
|
57852
57902
|
};
|
|
57853
57903
|
}
|
|
57854
57904
|
function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57855
|
-
this.
|
|
57905
|
+
this.e9p_1 = $logger;
|
|
57856
57906
|
}
|
|
57857
57907
|
protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57858
57908
|
return action instanceof TimerTickAction;
|
|
@@ -57861,7 +57911,7 @@
|
|
|
57861
57911
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
57862
57912
|
var tmp = action_0.b6n_1;
|
|
57863
57913
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
57864
|
-
this.
|
|
57914
|
+
this.e9p_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
|
|
57865
57915
|
store.dispatch(new FinishGameMechanicAction(store.state.g9c().b8e_1, store.state.l6v().isGameFinished));
|
|
57866
57916
|
}
|
|
57867
57917
|
next(action_0);
|
|
@@ -57927,7 +57977,7 @@
|
|
|
57927
57977
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57928
57978
|
}
|
|
57929
57979
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57930
|
-
this.
|
|
57980
|
+
this.f9p_1 = $logger;
|
|
57931
57981
|
}
|
|
57932
57982
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57933
57983
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -57935,7 +57985,7 @@
|
|
|
57935
57985
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).u6o = function (store, next, action) {
|
|
57936
57986
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
57937
57987
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
57938
|
-
this.
|
|
57988
|
+
this.f9p_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
57939
57989
|
}
|
|
57940
57990
|
next(action_0);
|
|
57941
57991
|
};
|
|
@@ -57951,7 +58001,7 @@
|
|
|
57951
58001
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57952
58002
|
}
|
|
57953
58003
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57954
|
-
this.
|
|
58004
|
+
this.g9p_1 = $logger;
|
|
57955
58005
|
}
|
|
57956
58006
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57957
58007
|
return action instanceof SceneMechanicAction;
|
|
@@ -57962,7 +58012,7 @@
|
|
|
57962
58012
|
if (state.m6v()) {
|
|
57963
58013
|
var sceneInfo = state.l6v().sceneInfo;
|
|
57964
58014
|
if (!get_isWaitingScene(sceneInfo.t8b_1) && Companion_instance_5.t6v(sceneInfo.t8b_1, action_0.h89_1) && equals(sceneInfo.w8b_1, action_0.sceneData)) {
|
|
57965
|
-
this.
|
|
58015
|
+
this.g9p_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
57966
58016
|
}
|
|
57967
58017
|
}
|
|
57968
58018
|
next(action_0);
|
|
@@ -57971,7 +58021,7 @@
|
|
|
57971
58021
|
return this.u6o(store, next, action);
|
|
57972
58022
|
};
|
|
57973
58023
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57974
|
-
this.
|
|
58024
|
+
this.h9p_1 = $logger;
|
|
57975
58025
|
}
|
|
57976
58026
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
57977
58027
|
return action instanceof SceneActMechanicAction;
|
|
@@ -57982,7 +58032,7 @@
|
|
|
57982
58032
|
if (state.m6v()) {
|
|
57983
58033
|
var sceneInfo = state.l6v().sceneInfo;
|
|
57984
58034
|
if (Companion_instance_5.t6v(sceneInfo.t8b_1, action_0.l89_1) && sceneInfo.v8b_1 === action_0.m89_1 && equals(sceneInfo.x8b_1, action_0.n89_1)) {
|
|
57985
|
-
this.
|
|
58035
|
+
this.h9p_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
57986
58036
|
}
|
|
57987
58037
|
}
|
|
57988
58038
|
next(action_0);
|
|
@@ -58042,7 +58092,7 @@
|
|
|
58042
58092
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
58043
58093
|
}
|
|
58044
58094
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
58045
|
-
this.
|
|
58095
|
+
this.i9p_1 = this$0;
|
|
58046
58096
|
}
|
|
58047
58097
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
58048
58098
|
return action instanceof FromClientAction;
|
|
@@ -58068,18 +58118,18 @@
|
|
|
58068
58118
|
var tmp$ret$1 = item.playerId;
|
|
58069
58119
|
destination.j(tmp$ret$1);
|
|
58070
58120
|
}
|
|
58071
|
-
this.
|
|
58121
|
+
this.i9p_1.l9h_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
58072
58122
|
break $l$block_3;
|
|
58073
58123
|
}
|
|
58074
58124
|
if (!get_isCreated(store.state)) {
|
|
58075
58125
|
if (table.sceneInfo.x7j()) {
|
|
58076
|
-
this.
|
|
58126
|
+
this.i9p_1.l9h_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
58077
58127
|
} else {
|
|
58078
58128
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
58079
|
-
if (this.
|
|
58080
|
-
sendErrorToClient(this.
|
|
58129
|
+
if (this.i9p_1.n9h_1) {
|
|
58130
|
+
sendErrorToClient(this.i9p_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
58081
58131
|
}
|
|
58082
|
-
this.
|
|
58132
|
+
this.i9p_1.l9h_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
58083
58133
|
}
|
|
58084
58134
|
break $l$block_3;
|
|
58085
58135
|
}
|
|
@@ -58087,18 +58137,18 @@
|
|
|
58087
58137
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y6e_1;
|
|
58088
58138
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
58089
58139
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
58090
|
-
if (this.
|
|
58091
|
-
sendErrorToClient(this.
|
|
58140
|
+
if (this.i9p_1.n9h_1) {
|
|
58141
|
+
sendErrorToClient(this.i9p_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
58092
58142
|
}
|
|
58093
|
-
this.
|
|
58143
|
+
this.i9p_1.l9h_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
58094
58144
|
break $l$block_3;
|
|
58095
58145
|
}
|
|
58096
|
-
if (this.
|
|
58146
|
+
if (this.i9p_1.m9h_1 && checkIfEventIsDuplicated(this.i9p_1, table, tmp4)) {
|
|
58097
58147
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
58098
|
-
if (this.
|
|
58099
|
-
sendErrorToClient(this.
|
|
58148
|
+
if (this.i9p_1.n9h_1) {
|
|
58149
|
+
sendErrorToClient(this.i9p_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
58100
58150
|
}
|
|
58101
|
-
this.
|
|
58151
|
+
this.i9p_1.l9h_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
58102
58152
|
break $l$block_3;
|
|
58103
58153
|
}
|
|
58104
58154
|
next(tmp4);
|
|
@@ -58148,8 +58198,8 @@
|
|
|
58148
58198
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
58149
58199
|
}
|
|
58150
58200
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58151
|
-
this.
|
|
58152
|
-
this.
|
|
58201
|
+
this.j9p_1 = $enableCheckWhen;
|
|
58202
|
+
this.k9p_1 = this$0;
|
|
58153
58203
|
}
|
|
58154
58204
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
58155
58205
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -58158,7 +58208,7 @@
|
|
|
58158
58208
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
58159
58209
|
$l$block_1: {
|
|
58160
58210
|
var state = store.state;
|
|
58161
|
-
if (!isEnabledCheck(this.
|
|
58211
|
+
if (!isEnabledCheck(this.j9p_1, state, tmp4)) {
|
|
58162
58212
|
next(tmp4);
|
|
58163
58213
|
break $l$block_1;
|
|
58164
58214
|
}
|
|
@@ -58174,23 +58224,23 @@
|
|
|
58174
58224
|
var tmp$ret$1 = item.playerId;
|
|
58175
58225
|
destination.j(tmp$ret$1);
|
|
58176
58226
|
}
|
|
58177
|
-
this.
|
|
58227
|
+
this.k9p_1.t9h_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
58178
58228
|
break $l$block_1;
|
|
58179
58229
|
}
|
|
58180
58230
|
var table = store.state.l6v();
|
|
58181
58231
|
var player = getPlayer(table.players, tmp4.o9c_1);
|
|
58182
58232
|
var tmp0_safe_receiver = player.w6y_1.s6e_1;
|
|
58183
58233
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y6e_1;
|
|
58184
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
58234
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.k9p_1, connectionState, tmp4.n9c_1);
|
|
58185
58235
|
var duplicate = _destruct__k2r9zo.ne();
|
|
58186
58236
|
var report = _destruct__k2r9zo.oe();
|
|
58187
58237
|
if (!(connectionState == null) && duplicate) {
|
|
58188
58238
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
58189
58239
|
if (report) {
|
|
58190
|
-
if (this.
|
|
58191
|
-
sendErrorToClient_0(this.
|
|
58240
|
+
if (this.k9p_1.u9h_1) {
|
|
58241
|
+
sendErrorToClient_0(this.k9p_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
58192
58242
|
}
|
|
58193
|
-
this.
|
|
58243
|
+
this.k9p_1.t9h_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
58194
58244
|
}
|
|
58195
58245
|
break $l$block_1;
|
|
58196
58246
|
} else {
|
|
@@ -58206,13 +58256,13 @@
|
|
|
58206
58256
|
this.t9h_1 = logger;
|
|
58207
58257
|
this.u9h_1 = sendErrorToClient;
|
|
58208
58258
|
}
|
|
58209
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
58259
|
+
protoOf(PlayerConnectionValidationMiddlewares).l9p = function (enableCheckWhen) {
|
|
58210
58260
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
58211
58261
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
58212
58262
|
};
|
|
58213
58263
|
protoOf(PlayerConnectionValidationMiddlewares).v9h = function (enableCheckWhen, $super) {
|
|
58214
58264
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
58215
|
-
return $super === VOID ? this.
|
|
58265
|
+
return $super === VOID ? this.l9p(enableCheckWhen) : $super.l9p.call(this, enableCheckWhen);
|
|
58216
58266
|
};
|
|
58217
58267
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
58218
58268
|
return function () {
|
|
@@ -58357,8 +58407,8 @@
|
|
|
58357
58407
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
58358
58408
|
}
|
|
58359
58409
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58360
|
-
this.
|
|
58361
|
-
this.
|
|
58410
|
+
this.m9p_1 = $enableCheckWhen;
|
|
58411
|
+
this.n9p_1 = this$0;
|
|
58362
58412
|
}
|
|
58363
58413
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
58364
58414
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -58367,19 +58417,19 @@
|
|
|
58367
58417
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
58368
58418
|
$l$block_1: {
|
|
58369
58419
|
var state = store.state;
|
|
58370
|
-
if (!isEnabledCheck(this.
|
|
58420
|
+
if (!isEnabledCheck(this.m9p_1, state, tmp4)) {
|
|
58371
58421
|
next(tmp4);
|
|
58372
58422
|
break $l$block_1;
|
|
58373
58423
|
}
|
|
58374
58424
|
var table = state.l6v();
|
|
58375
58425
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
58376
58426
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
58377
|
-
if (isWrongPlayerTurn(this.
|
|
58427
|
+
if (isWrongPlayerTurn(this.n9p_1, store, playersWithTurn, player, tmp4)) {
|
|
58378
58428
|
break $l$block_1;
|
|
58379
58429
|
}
|
|
58380
58430
|
var tmp;
|
|
58381
|
-
if (this.
|
|
58382
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
58431
|
+
if (this.n9p_1.e9h_1.validateFromClientActionTags) {
|
|
58432
|
+
tmp = isWrongPlayerTurnTag$default(this.n9p_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.n9p_1, tmp4, table));
|
|
58383
58433
|
} else {
|
|
58384
58434
|
tmp = false;
|
|
58385
58435
|
}
|
|
@@ -58393,8 +58443,8 @@
|
|
|
58393
58443
|
return this.u6o(store, next, action);
|
|
58394
58444
|
};
|
|
58395
58445
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58396
|
-
this.
|
|
58397
|
-
this.
|
|
58446
|
+
this.o9p_1 = $enableCheckWhen;
|
|
58447
|
+
this.p9p_1 = this$0;
|
|
58398
58448
|
}
|
|
58399
58449
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
58400
58450
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -58404,17 +58454,17 @@
|
|
|
58404
58454
|
$l$block_1: {
|
|
58405
58455
|
var table = store.state.l6v();
|
|
58406
58456
|
var player = getPlayerTurn(tmp4, table.players);
|
|
58407
|
-
if (player == null || !isEnabledCheck(this.
|
|
58457
|
+
if (player == null || !isEnabledCheck(this.o9p_1, store.state, tmp4)) {
|
|
58408
58458
|
next(tmp4);
|
|
58409
58459
|
break $l$block_1;
|
|
58410
58460
|
}
|
|
58411
58461
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
58412
|
-
if (isWrongPlayerTurn(this.
|
|
58462
|
+
if (isWrongPlayerTurn(this.p9p_1, store, playersWithTurn, player, tmp4)) {
|
|
58413
58463
|
break $l$block_1;
|
|
58414
58464
|
}
|
|
58415
58465
|
var tmp;
|
|
58416
|
-
if (this.
|
|
58417
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
58466
|
+
if (this.p9p_1.e9h_1.validateFromClientActionTags) {
|
|
58467
|
+
tmp = isWrongPlayerTurnTag(this.p9p_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.p9p_1, tmp4, table), this.p9p_1.d9h_1);
|
|
58418
58468
|
} else {
|
|
58419
58469
|
tmp = false;
|
|
58420
58470
|
}
|
|
@@ -58428,8 +58478,8 @@
|
|
|
58428
58478
|
return this.u6o(store, next, action);
|
|
58429
58479
|
};
|
|
58430
58480
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58431
|
-
this.
|
|
58432
|
-
this.
|
|
58481
|
+
this.q9p_1 = $enableCheckWhen;
|
|
58482
|
+
this.r9p_1 = this$0;
|
|
58433
58483
|
}
|
|
58434
58484
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
58435
58485
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -58438,7 +58488,7 @@
|
|
|
58438
58488
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
58439
58489
|
$l$block_1: {
|
|
58440
58490
|
var state = store.state;
|
|
58441
|
-
if (!isEnabledCheck(this.
|
|
58491
|
+
if (!isEnabledCheck(this.q9p_1, state, tmp4)) {
|
|
58442
58492
|
next(tmp4);
|
|
58443
58493
|
break $l$block_1;
|
|
58444
58494
|
}
|
|
@@ -58473,7 +58523,7 @@
|
|
|
58473
58523
|
destination.j(tmp$ret$3);
|
|
58474
58524
|
}
|
|
58475
58525
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.l9e()));
|
|
58476
|
-
this.
|
|
58526
|
+
this.r9p_1.f9h_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
58477
58527
|
} else {
|
|
58478
58528
|
next(tmp4);
|
|
58479
58529
|
}
|
|
@@ -58501,23 +58551,23 @@
|
|
|
58501
58551
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
58502
58552
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
58503
58553
|
};
|
|
58504
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
58554
|
+
protoOf(PlayerTurnValidationMiddlewares).s9p = function (enableCheckWhen) {
|
|
58505
58555
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
58506
58556
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
58507
58557
|
};
|
|
58508
58558
|
protoOf(PlayerTurnValidationMiddlewares).j9h = function (enableCheckWhen, $super) {
|
|
58509
58559
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
58510
|
-
return $super === VOID ? this.
|
|
58560
|
+
return $super === VOID ? this.s9p(enableCheckWhen) : $super.s9p.call(this, enableCheckWhen);
|
|
58511
58561
|
};
|
|
58512
58562
|
function Companion_193() {
|
|
58513
|
-
this.
|
|
58563
|
+
this.t9p_1 = 50;
|
|
58514
58564
|
}
|
|
58515
58565
|
var Companion_instance_198;
|
|
58516
58566
|
function Companion_getInstance_200() {
|
|
58517
58567
|
return Companion_instance_198;
|
|
58518
58568
|
}
|
|
58519
58569
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
58520
|
-
this.
|
|
58570
|
+
this.u9p_1 = this$0;
|
|
58521
58571
|
}
|
|
58522
58572
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).f6n = function (action) {
|
|
58523
58573
|
return action instanceof MechanicAction;
|
|
@@ -58528,19 +58578,19 @@
|
|
|
58528
58578
|
var aid = tmp4.aid;
|
|
58529
58579
|
if (!store.state.m6v()) {
|
|
58530
58580
|
if (!(aid == null)) {
|
|
58531
|
-
this.
|
|
58581
|
+
this.u9p_1.q9h_1.nd(aid);
|
|
58532
58582
|
}
|
|
58533
58583
|
next(tmp4);
|
|
58534
58584
|
break $l$block_0;
|
|
58535
58585
|
}
|
|
58536
|
-
if (!(aid == null) && this.
|
|
58537
|
-
this.
|
|
58586
|
+
if (!(aid == null) && this.u9p_1.q9h_1.t1(aid)) {
|
|
58587
|
+
this.u9p_1.p9h_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
58538
58588
|
break $l$block_0;
|
|
58539
58589
|
}
|
|
58540
58590
|
if (!(aid == null)) {
|
|
58541
|
-
this.
|
|
58542
|
-
if (this.
|
|
58543
|
-
this.
|
|
58591
|
+
this.u9p_1.q9h_1.nd(aid);
|
|
58592
|
+
if (this.u9p_1.q9h_1.jd_1 > 50) {
|
|
58593
|
+
this.u9p_1.q9h_1.od();
|
|
58544
58594
|
}
|
|
58545
58595
|
}
|
|
58546
58596
|
next(tmp4);
|
|
@@ -58566,12 +58616,12 @@
|
|
|
58566
58616
|
protoOf(clearReducer$$inlined$reducerForActionType$1).f6n = function (action) {
|
|
58567
58617
|
return action instanceof ClearAction;
|
|
58568
58618
|
};
|
|
58569
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
58619
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).v9p = function (state, action) {
|
|
58570
58620
|
action instanceof ClearAction || THROW_CCE();
|
|
58571
58621
|
return state.i9c(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
58572
58622
|
};
|
|
58573
58623
|
protoOf(clearReducer$$inlined$reducerForActionType$1).v6o = function (state, action) {
|
|
58574
|
-
return this.
|
|
58624
|
+
return this.v9p((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58575
58625
|
};
|
|
58576
58626
|
function fromClientReducer() {
|
|
58577
58627
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -58582,7 +58632,7 @@
|
|
|
58582
58632
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).f6n = function (action) {
|
|
58583
58633
|
return action instanceof FromClientAction;
|
|
58584
58634
|
};
|
|
58585
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
58635
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).v9p = function (state, action) {
|
|
58586
58636
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
58587
58637
|
var tmp;
|
|
58588
58638
|
var tmp_0;
|
|
@@ -58633,11 +58683,11 @@
|
|
|
58633
58683
|
return tmp;
|
|
58634
58684
|
};
|
|
58635
58685
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).v6o = function (state, action) {
|
|
58636
|
-
return this.
|
|
58686
|
+
return this.v9p((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58637
58687
|
};
|
|
58638
58688
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
58639
58689
|
return function (tbl) {
|
|
58640
|
-
return this$0.j9g_1.
|
|
58690
|
+
return this$0.j9g_1.c9q(tbl, $action.h89_1, $action.sceneData, $action.i89_1, $action.j89_1);
|
|
58641
58691
|
};
|
|
58642
58692
|
}
|
|
58643
58693
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -58646,22 +58696,22 @@
|
|
|
58646
58696
|
if ($action.i89_1 == null) {
|
|
58647
58697
|
tmp = tbl;
|
|
58648
58698
|
} else {
|
|
58649
|
-
tmp = this$0.k9g_1.
|
|
58699
|
+
tmp = this$0.k9g_1.d9q(tbl, $action);
|
|
58650
58700
|
}
|
|
58651
58701
|
return tmp;
|
|
58652
58702
|
};
|
|
58653
58703
|
}
|
|
58654
58704
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
58655
|
-
this.
|
|
58705
|
+
this.e9q_1 = this$0;
|
|
58656
58706
|
}
|
|
58657
58707
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).f6n = function (action) {
|
|
58658
58708
|
return action instanceof MechanicAction;
|
|
58659
58709
|
};
|
|
58660
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
58710
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).v9p = function (state, action) {
|
|
58661
58711
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
58662
|
-
if (this.
|
|
58712
|
+
if (this.e9q_1.l9g_1.validateIfMainThread) {
|
|
58663
58713
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
58664
|
-
var logger = this.
|
|
58714
|
+
var logger = this.e9q_1.m9g_1;
|
|
58665
58715
|
var tmp;
|
|
58666
58716
|
try {
|
|
58667
58717
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -58682,50 +58732,50 @@
|
|
|
58682
58732
|
}
|
|
58683
58733
|
var tmp_1;
|
|
58684
58734
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
58685
|
-
tmp_1 = this.
|
|
58735
|
+
tmp_1 = this.e9q_1.d9g_1.h9r(state, action_0);
|
|
58686
58736
|
} else {
|
|
58687
58737
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
58688
|
-
tmp_1 = this.
|
|
58738
|
+
tmp_1 = this.e9q_1.d9g_1.g9r(state, action_0);
|
|
58689
58739
|
} else {
|
|
58690
58740
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
58691
|
-
tmp_1 = this.
|
|
58741
|
+
tmp_1 = this.e9q_1.d9g_1.f9r(state, action_0);
|
|
58692
58742
|
} else {
|
|
58693
58743
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
58694
|
-
tmp_1 = this.
|
|
58744
|
+
tmp_1 = this.e9q_1.d9g_1.e9r(state, action_0);
|
|
58695
58745
|
} else {
|
|
58696
58746
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
58697
|
-
tmp_1 = this.
|
|
58747
|
+
tmp_1 = this.e9q_1.d9g_1.d9r(state, action_0);
|
|
58698
58748
|
} else {
|
|
58699
58749
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
58700
|
-
tmp_1 = this.
|
|
58750
|
+
tmp_1 = this.e9q_1.d9g_1.c9r(state, action_0);
|
|
58701
58751
|
} else {
|
|
58702
58752
|
if (action_0 instanceof ErrorAction) {
|
|
58703
|
-
tmp_1 = this.
|
|
58753
|
+
tmp_1 = this.e9q_1.d9g_1.b9r(state, action_0);
|
|
58704
58754
|
} else {
|
|
58705
58755
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
58706
|
-
tmp_1 = state.i9c(state.l6v().copy(VOID, VOID, VOID, VOID, this.
|
|
58756
|
+
tmp_1 = state.i9c(state.l6v().copy(VOID, VOID, VOID, VOID, this.e9q_1.e9g_1.a9r(state.l6v().players, action_0)));
|
|
58707
58757
|
} else {
|
|
58708
58758
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
58709
|
-
tmp_1 = this.
|
|
58759
|
+
tmp_1 = this.e9q_1.f9g_1.z9q(state, action_0);
|
|
58710
58760
|
} else {
|
|
58711
58761
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
58712
|
-
tmp_1 = this.
|
|
58762
|
+
tmp_1 = this.e9q_1.f9g_1.y9q(state, action_0);
|
|
58713
58763
|
} else {
|
|
58714
58764
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
58715
|
-
tmp_1 = this.
|
|
58765
|
+
tmp_1 = this.e9q_1.h9g_1.v9q(state, action_0);
|
|
58716
58766
|
} else {
|
|
58717
58767
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
58718
|
-
tmp_1 = this.
|
|
58768
|
+
tmp_1 = this.e9q_1.g9g_1.u9q(state, action_0);
|
|
58719
58769
|
} else {
|
|
58720
58770
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
58721
|
-
tmp_1 = this.
|
|
58771
|
+
tmp_1 = this.e9q_1.g9g_1.t9q(state, action_0);
|
|
58722
58772
|
} else {
|
|
58723
58773
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
58724
|
-
tmp_1 = this.
|
|
58774
|
+
tmp_1 = this.e9q_1.h9g_1.l9q(state, action_0);
|
|
58725
58775
|
} else {
|
|
58726
58776
|
if (action_0 instanceof SceneMechanicAction) {
|
|
58727
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
58728
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
58777
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.e9q_1, action_0);
|
|
58778
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.e9q_1)]);
|
|
58729
58779
|
// Inline function 'kotlin.collections.fold' call
|
|
58730
58780
|
var accumulator = state.l6v();
|
|
58731
58781
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -58737,13 +58787,13 @@
|
|
|
58737
58787
|
tmp_1 = state.i9c(tmp$ret$3);
|
|
58738
58788
|
} else {
|
|
58739
58789
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
58740
|
-
tmp_1 = state.i9c(this.
|
|
58790
|
+
tmp_1 = state.i9c(this.e9q_1.k9g_1.d9q(state.l6v(), action_0));
|
|
58741
58791
|
} else {
|
|
58742
58792
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
58743
|
-
tmp_1 = state.i9c(this.
|
|
58793
|
+
tmp_1 = state.i9c(this.e9q_1.i9g_1.f9q(state.l6v(), action_0));
|
|
58744
58794
|
} else {
|
|
58745
58795
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
58746
|
-
tmp_1 = state.i9c(this.
|
|
58796
|
+
tmp_1 = state.i9c(this.e9q_1.i9g_1.p99(state.l6v(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
58747
58797
|
} else {
|
|
58748
58798
|
if (action_0 instanceof MessageMechanicAction) {
|
|
58749
58799
|
tmp_1 = state;
|
|
@@ -58771,7 +58821,7 @@
|
|
|
58771
58821
|
return tmp_1;
|
|
58772
58822
|
};
|
|
58773
58823
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).v6o = function (state, action) {
|
|
58774
|
-
return this.
|
|
58824
|
+
return this.v9p((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58775
58825
|
};
|
|
58776
58826
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
58777
58827
|
this.d9g_1 = gameLifecycleReducer;
|
|
@@ -58798,7 +58848,7 @@
|
|
|
58798
58848
|
protoOf(timerReducer$$inlined$reducerForActionType$1).f6n = function (action) {
|
|
58799
58849
|
return action instanceof TimerAction;
|
|
58800
58850
|
};
|
|
58801
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
58851
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).v9p = function (state, action) {
|
|
58802
58852
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
58803
58853
|
var tmp;
|
|
58804
58854
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -58826,7 +58876,7 @@
|
|
|
58826
58876
|
return tmp;
|
|
58827
58877
|
};
|
|
58828
58878
|
protoOf(timerReducer$$inlined$reducerForActionType$1).v6o = function (state, action) {
|
|
58829
|
-
return this.
|
|
58879
|
+
return this.v9p((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58830
58880
|
};
|
|
58831
58881
|
function playerTurnReducer($this, action, table) {
|
|
58832
58882
|
var tmp0 = action.actData;
|
|
@@ -58931,7 +58981,7 @@
|
|
|
58931
58981
|
}
|
|
58932
58982
|
function SceneActReducer() {
|
|
58933
58983
|
}
|
|
58934
|
-
protoOf(SceneActReducer).
|
|
58984
|
+
protoOf(SceneActReducer).d9q = function (table, action) {
|
|
58935
58985
|
var tmp;
|
|
58936
58986
|
if (action.actId === 'WAITING_ACT') {
|
|
58937
58987
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.q8y(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -58968,47 +59018,47 @@
|
|
|
58968
59018
|
function MechanicLifecycleReducer() {
|
|
58969
59019
|
}
|
|
58970
59020
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
58971
|
-
this.
|
|
58972
|
-
this.
|
|
59021
|
+
this.i9r_1 = tableLifecycleReducer;
|
|
59022
|
+
this.j9r_1 = randomPoolProvider;
|
|
58973
59023
|
}
|
|
58974
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59024
|
+
protoOf(BaseMechanicLifecycleReducer).f9r = function (state, action) {
|
|
58975
59025
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
58976
59026
|
var tmp1_tableOrNull = action.s88_1;
|
|
58977
59027
|
var tmp2_payload = action.u88_1;
|
|
58978
59028
|
return state.i9c(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
58979
59029
|
};
|
|
58980
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
58981
|
-
this.
|
|
59030
|
+
protoOf(BaseMechanicLifecycleReducer).g9r = function (state, action) {
|
|
59031
|
+
this.j9r_1.g5n(action.previousGameId);
|
|
58982
59032
|
return state;
|
|
58983
59033
|
};
|
|
58984
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59034
|
+
protoOf(BaseMechanicLifecycleReducer).e9r = function (state, action) {
|
|
58985
59035
|
var tmp0_safe_receiver = state.v6u_1;
|
|
58986
59036
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
58987
59037
|
if (tmp1_safe_receiver == null)
|
|
58988
59038
|
null;
|
|
58989
59039
|
else {
|
|
58990
59040
|
// Inline function 'kotlin.apply' call
|
|
58991
|
-
this.
|
|
59041
|
+
this.j9r_1.g5n(tmp1_safe_receiver);
|
|
58992
59042
|
}
|
|
58993
59043
|
return state.i9c(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.w88_1, action.y88_1));
|
|
58994
59044
|
};
|
|
58995
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59045
|
+
protoOf(BaseMechanicLifecycleReducer).d9r = function (state, action) {
|
|
58996
59046
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
58997
59047
|
var tmp0_safe_receiver = state.x6u_1;
|
|
58998
59048
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k9c(action.a89_1);
|
|
58999
59049
|
return state.i9c(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.a89_1) : tmp1_elvis_lhs);
|
|
59000
59050
|
};
|
|
59001
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59002
|
-
return state.i9c(this.
|
|
59051
|
+
protoOf(BaseMechanicLifecycleReducer).c9r = function (state, action) {
|
|
59052
|
+
return state.i9c(this.i9r_1.k9r(state.l6v()));
|
|
59003
59053
|
};
|
|
59004
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59054
|
+
protoOf(BaseMechanicLifecycleReducer).b9r = function (state, action) {
|
|
59005
59055
|
var tmp0_safe_receiver = state.v6u_1;
|
|
59006
59056
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
59007
59057
|
if (tmp1_safe_receiver == null)
|
|
59008
59058
|
null;
|
|
59009
59059
|
else {
|
|
59010
59060
|
// Inline function 'kotlin.apply' call
|
|
59011
|
-
this.
|
|
59061
|
+
this.j9r_1.g5n(tmp1_safe_receiver);
|
|
59012
59062
|
}
|
|
59013
59063
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
59014
59064
|
var tmp2_safe_receiver = state.x6u_1;
|
|
@@ -59028,19 +59078,19 @@
|
|
|
59028
59078
|
return value1.id === value2.id;
|
|
59029
59079
|
}
|
|
59030
59080
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
59031
|
-
this.
|
|
59032
|
-
this.
|
|
59033
|
-
this.
|
|
59034
|
-
this.
|
|
59081
|
+
this.l9r_1 = pointsInteractor;
|
|
59082
|
+
this.m9r_1 = playerHappinessProvider;
|
|
59083
|
+
this.n9r_1 = logger;
|
|
59084
|
+
this.o9r_1 = dealerConfig;
|
|
59035
59085
|
}
|
|
59036
|
-
protoOf(PlayerHandReducer).
|
|
59086
|
+
protoOf(PlayerHandReducer).p9r = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
59037
59087
|
// Inline function 'kotlin.collections.map' call
|
|
59038
59088
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59039
59089
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
59040
59090
|
var _iterator__ex2g4s = combinations.l();
|
|
59041
59091
|
while (_iterator__ex2g4s.m()) {
|
|
59042
59092
|
var item = _iterator__ex2g4s.n();
|
|
59043
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
59093
|
+
var tmp$ret$0 = mapToRecord(item, this.l9r_1.h97(item));
|
|
59044
59094
|
destination.j(tmp$ret$0);
|
|
59045
59095
|
}
|
|
59046
59096
|
var combinationRecords = destination;
|
|
@@ -59075,8 +59125,8 @@
|
|
|
59075
59125
|
return hand.o77(VOID, VOID, plus(hand.r74_1, combinationRecords), plus(hand.s74_1, combinationRecords));
|
|
59076
59126
|
}
|
|
59077
59127
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
59078
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
59079
|
-
var tmp_0 = this.
|
|
59128
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.o9r_1.dealerStrategy : tmp0_elvis_lhs;
|
|
59129
|
+
var tmp_0 = this.l9r_1.g97(cards, selectedTrump, dealerStrategy);
|
|
59080
59130
|
// Inline function 'kotlin.collections.map' call
|
|
59081
59131
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59082
59132
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -59087,11 +59137,11 @@
|
|
|
59087
59137
|
destination_0.j(tmp$ret$5);
|
|
59088
59138
|
}
|
|
59089
59139
|
var value = tmp_0 + sum(destination_0);
|
|
59090
|
-
var luckyFactor = this.
|
|
59091
|
-
Companion_instance_194.f97(this.
|
|
59140
|
+
var luckyFactor = this.m9r_1.c91(value, config.playersMode, dealerStrategy);
|
|
59141
|
+
Companion_instance_194.f97(this.n9r_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.y74() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
|
|
59092
59142
|
return hand.o77(VOID, plus(hand.q74_1, listOf(Companion_instance_18.g77(luckyFactor, value))), plus(hand.r74_1, combinationRecords), plus(hand.s74_1, combinationRecords));
|
|
59093
59143
|
};
|
|
59094
|
-
protoOf(PlayerHandReducer).
|
|
59144
|
+
protoOf(PlayerHandReducer).q9r = function (hand, combinations) {
|
|
59095
59145
|
// Inline function 'kotlin.collections.map' call
|
|
59096
59146
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
59097
59147
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59099,20 +59149,20 @@
|
|
|
59099
59149
|
var _iterator__ex2g4s = this_0.l();
|
|
59100
59150
|
while (_iterator__ex2g4s.m()) {
|
|
59101
59151
|
var item = _iterator__ex2g4s.n();
|
|
59102
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
59152
|
+
var tmp$ret$0 = mapToRecord(item, this.l9r_1.h97(item));
|
|
59103
59153
|
destination.j(tmp$ret$0);
|
|
59104
59154
|
}
|
|
59105
59155
|
var combinationRecords = destination;
|
|
59106
59156
|
var tmp = updateOrAddItems(hand.r74_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
59107
59157
|
return hand.o77(VOID, VOID, tmp, updateOrAddItems(hand.s74_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
59108
59158
|
};
|
|
59109
|
-
protoOf(PlayerHandReducer).
|
|
59159
|
+
protoOf(PlayerHandReducer).r9r = function (playerId, hand, updatedCombinations, config) {
|
|
59110
59160
|
if (updatedCombinations.q()) {
|
|
59111
59161
|
return hand;
|
|
59112
59162
|
}
|
|
59113
59163
|
var previousFactor = hand.b75();
|
|
59114
59164
|
if (previousFactor.a75_1 === 0.0) {
|
|
59115
|
-
return this.
|
|
59165
|
+
return this.q9r(hand, updatedCombinations);
|
|
59116
59166
|
}
|
|
59117
59167
|
// Inline function 'kotlin.collections.map' call
|
|
59118
59168
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59120,7 +59170,7 @@
|
|
|
59120
59170
|
var _iterator__ex2g4s = updatedCombinations.l();
|
|
59121
59171
|
while (_iterator__ex2g4s.m()) {
|
|
59122
59172
|
var item = _iterator__ex2g4s.n();
|
|
59123
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
59173
|
+
var tmp$ret$0 = mapToRecord(item, this.l9r_1.h97(item));
|
|
59124
59174
|
destination.j(tmp$ret$0);
|
|
59125
59175
|
}
|
|
59126
59176
|
var updatedCombinationRecords = destination;
|
|
@@ -59180,9 +59230,9 @@
|
|
|
59180
59230
|
}
|
|
59181
59231
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
59182
59232
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
59183
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
59184
|
-
var updatedLuckyFactor = this.
|
|
59185
|
-
Companion_instance_194.f97(this.
|
|
59233
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.o9r_1.dealerStrategy : tmp0_elvis_lhs;
|
|
59234
|
+
var updatedLuckyFactor = this.m9r_1.c91(updatedValue, config.playersMode, dealerStrategy);
|
|
59235
|
+
Companion_instance_194.f97(this.n9r_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.y74() + ', ') + ('value: ' + updatedValue + ', '));
|
|
59186
59236
|
// Inline function 'kotlin.collections.map' call
|
|
59187
59237
|
var this_0 = hand.q74_1;
|
|
59188
59238
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59206,7 +59256,7 @@
|
|
|
59206
59256
|
protoOf(PlayerSceneReducer).k9b = function (player, cards, whoShuffleCardsPlayerId) {
|
|
59207
59257
|
return player.e74(VOID, VOID, cards, player.y6y_1.j78(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
59208
59258
|
};
|
|
59209
|
-
protoOf(PlayerSceneReducer).
|
|
59259
|
+
protoOf(PlayerSceneReducer).s9r = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
59210
59260
|
// Inline function 'kotlin.collections.map' call
|
|
59211
59261
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59212
59262
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -59219,7 +59269,7 @@
|
|
|
59219
59269
|
}
|
|
59220
59270
|
var detailedCombinations = destination;
|
|
59221
59271
|
var cards = plus(player.x6y_1, distributedCards);
|
|
59222
|
-
var hand = this.j9b_1.
|
|
59272
|
+
var hand = this.j9b_1.p9r(player.playerId, player.z6y_1, cards, detailedCombinations, selectedTrump, config);
|
|
59223
59273
|
var tmp;
|
|
59224
59274
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
59225
59275
|
if (!combinations.q()) {
|
|
@@ -59230,7 +59280,7 @@
|
|
|
59230
59280
|
var tmp0_points = tmp;
|
|
59231
59281
|
return player.e74(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
59232
59282
|
};
|
|
59233
|
-
protoOf(PlayerSceneReducer).
|
|
59283
|
+
protoOf(PlayerSceneReducer).t9r = function (player, sceneData) {
|
|
59234
59284
|
// Inline function 'kotlin.collections.single' call
|
|
59235
59285
|
var single = null;
|
|
59236
59286
|
var found = false;
|
|
@@ -59266,7 +59316,7 @@
|
|
|
59266
59316
|
var tmp10_earnedPoints = playerPointsCell.g7a_1;
|
|
59267
59317
|
var tmp11_earnedCards = emptyList();
|
|
59268
59318
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
59269
|
-
var tmp15_hand = this.j9b_1.
|
|
59319
|
+
var tmp15_hand = this.j9b_1.q9r(player.z6y_1, updatedCombinations);
|
|
59270
59320
|
return player.e74(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
59271
59321
|
};
|
|
59272
59322
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -59305,7 +59355,7 @@
|
|
|
59305
59355
|
this.l99_1 = gameHistoryReducer;
|
|
59306
59356
|
this.m99_1 = engineLogicConfig;
|
|
59307
59357
|
}
|
|
59308
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59358
|
+
protoOf(PlayerTurnMechanicReducer).u9r = function (table, model) {
|
|
59309
59359
|
// Inline function 'com.logic.utils.copy' call
|
|
59310
59360
|
var this_0 = table.players;
|
|
59311
59361
|
// Inline function 'kotlin.apply' call
|
|
@@ -59333,7 +59383,7 @@
|
|
|
59333
59383
|
this.k99_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
59334
59384
|
return newTable;
|
|
59335
59385
|
};
|
|
59336
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59386
|
+
protoOf(PlayerTurnMechanicReducer).v9r = function (table, model) {
|
|
59337
59387
|
var player = getPlayer(table.players, model.f6d());
|
|
59338
59388
|
if (player.w6y_1.r6e_1 == null) {
|
|
59339
59389
|
this.k99_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.t75_1));
|
|
@@ -59344,11 +59394,11 @@
|
|
|
59344
59394
|
this.k99_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
59345
59395
|
return newTable;
|
|
59346
59396
|
};
|
|
59347
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59397
|
+
protoOf(PlayerTurnMechanicReducer).f9q = function (table, action) {
|
|
59348
59398
|
var player = getPlayer(table.players, action.s89_1);
|
|
59349
59399
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.e74(VOID, player.w6y_1.f6g(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
59350
59400
|
};
|
|
59351
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59401
|
+
protoOf(PlayerTurnMechanicReducer).w9r = function (table) {
|
|
59352
59402
|
// Inline function 'kotlin.collections.map' call
|
|
59353
59403
|
var this_0 = table.players;
|
|
59354
59404
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59384,7 +59434,7 @@
|
|
|
59384
59434
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
59385
59435
|
tmp = tmp6_$this.f6g(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
59386
59436
|
}
|
|
59387
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.e74(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l99_1.
|
|
59437
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.e74(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l99_1.b9s(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
59388
59438
|
};
|
|
59389
59439
|
protoOf(PlayerTurnMechanicReducer).n99 = function (config) {
|
|
59390
59440
|
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.k99_1);
|
|
@@ -59419,7 +59469,7 @@
|
|
|
59419
59469
|
var _iterator__ex2g4s = players.l();
|
|
59420
59470
|
while (_iterator__ex2g4s.m()) {
|
|
59421
59471
|
var item = _iterator__ex2g4s.n();
|
|
59422
|
-
var tmp$ret$1 = $this.
|
|
59472
|
+
var tmp$ret$1 = $this.w9p_1.k9b(item, getValue(scene.a7k_1, item.playerId), scene.e7k_1);
|
|
59423
59473
|
destination.j(tmp$ret$1);
|
|
59424
59474
|
}
|
|
59425
59475
|
|
|
@@ -59440,12 +59490,12 @@
|
|
|
59440
59490
|
}
|
|
59441
59491
|
|
|
59442
59492
|
var tmp7_requestedCardDecks = tmp_0;
|
|
59443
|
-
var tmp1_$this = $this.
|
|
59493
|
+
var tmp1_$this = $this.z9p_1;
|
|
59444
59494
|
var tmp2_gameHistory = table.gameHistory;
|
|
59445
59495
|
var tmp3_playersCards = scene.a7k_1;
|
|
59446
59496
|
var tmp4_whoShuffleCardsPlayerId = scene.e7k_1;
|
|
59447
59497
|
var tmp5_randomData = scene.b7k_1;
|
|
59448
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
59498
|
+
var tmp8_gameHistory = tmp1_$this.c9s(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
59449
59499
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
59450
59500
|
case 'EARN_POINTS':
|
|
59451
59501
|
var tmp$ret$5;
|
|
@@ -59463,7 +59513,7 @@
|
|
|
59463
59513
|
var tmp10_newPlayersCards = scene_0.g7k_1;
|
|
59464
59514
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
59465
59515
|
var tmp12_config = table.config;
|
|
59466
|
-
var updatedCardDeck = $this.
|
|
59516
|
+
var updatedCardDeck = $this.d9s(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
59467
59517
|
// Inline function 'kotlin.collections.map' call
|
|
59468
59518
|
|
|
59469
59519
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59472,21 +59522,21 @@
|
|
|
59472
59522
|
var _iterator__ex2g4s_0 = players.l();
|
|
59473
59523
|
while (_iterator__ex2g4s_0.m()) {
|
|
59474
59524
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
59475
|
-
var tmp2_$this = $this.
|
|
59525
|
+
var tmp2_$this = $this.w9p_1;
|
|
59476
59526
|
var tmp3_config = table.config;
|
|
59477
59527
|
var tmp4_distributedCards = getValue(scene_0.g7k_1, item_0.playerId);
|
|
59478
59528
|
var tmp0_safe_receiver = scene_0.h7k_1;
|
|
59479
59529
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
|
|
59480
59530
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
59481
59531
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
59482
|
-
var tmp$ret$6 = tmp2_$this.
|
|
59532
|
+
var tmp$ret$6 = tmp2_$this.s9r(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
59483
59533
|
destination_0.j(tmp$ret$6);
|
|
59484
59534
|
}
|
|
59485
59535
|
|
|
59486
|
-
var tmp13_$this = $this.
|
|
59536
|
+
var tmp13_$this = $this.z9p_1;
|
|
59487
59537
|
var tmp14_gameHistory = table.gameHistory;
|
|
59488
59538
|
var tmp15_playersCards = scene_0.g7k_1;
|
|
59489
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
59539
|
+
var tmp17_gameHistory = tmp13_$this.e9s(tmp15_playersCards, tmp14_gameHistory);
|
|
59490
59540
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
59491
59541
|
case 'CALC_POINTS':
|
|
59492
59542
|
var tmp$ret$9;
|
|
@@ -59509,12 +59559,12 @@
|
|
|
59509
59559
|
var _iterator__ex2g4s_1 = players.l();
|
|
59510
59560
|
while (_iterator__ex2g4s_1.m()) {
|
|
59511
59561
|
var item_1 = _iterator__ex2g4s_1.n();
|
|
59512
|
-
var tmp$ret$10 = $this.
|
|
59562
|
+
var tmp$ret$10 = $this.w9p_1.t9r(item_1, calcPointsSceneData);
|
|
59513
59563
|
destination_1.j(tmp$ret$10);
|
|
59514
59564
|
}
|
|
59515
59565
|
|
|
59516
59566
|
var updatedPlayers = destination_1;
|
|
59517
|
-
var tmp19_$this = $this.
|
|
59567
|
+
var tmp19_$this = $this.z9p_1;
|
|
59518
59568
|
var tmp20_gameHistory = table.gameHistory;
|
|
59519
59569
|
var tmp21_points = calcPointsSceneData.v7j_1;
|
|
59520
59570
|
var tmp22_roundContractState = calcPointsSceneData.z7j(whoChoseSuitPlayerId);
|
|
@@ -59554,7 +59604,7 @@
|
|
|
59554
59604
|
|
|
59555
59605
|
var tmp26_playersGameAnalytics = tmp_3;
|
|
59556
59606
|
var tmp27_playersAchievements = calcPointsSceneData.w7j_1;
|
|
59557
|
-
var tmp28_gameHistory = tmp19_$this.
|
|
59607
|
+
var tmp28_gameHistory = tmp19_$this.f9s(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
|
|
59558
59608
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
|
|
59559
59609
|
default:
|
|
59560
59610
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -59586,30 +59636,30 @@
|
|
|
59586
59636
|
}
|
|
59587
59637
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
59588
59638
|
return function (tbl) {
|
|
59589
|
-
return this$0.
|
|
59639
|
+
return this$0.x9p_1.w9r(tbl);
|
|
59590
59640
|
};
|
|
59591
59641
|
}
|
|
59592
59642
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
59593
59643
|
return function (tbl) {
|
|
59594
|
-
return this$0.
|
|
59644
|
+
return this$0.y9p_1.g9s(tbl);
|
|
59595
59645
|
};
|
|
59596
59646
|
}
|
|
59597
59647
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
59598
|
-
this.
|
|
59599
|
-
this.
|
|
59600
|
-
this.
|
|
59601
|
-
this.
|
|
59602
|
-
this.
|
|
59603
|
-
this.
|
|
59604
|
-
}
|
|
59605
|
-
protoOf(SceneReducer).
|
|
59648
|
+
this.w9p_1 = playerSceneReducer;
|
|
59649
|
+
this.x9p_1 = playerTurnMechanicReducer;
|
|
59650
|
+
this.y9p_1 = tableLifecycleReducer;
|
|
59651
|
+
this.z9p_1 = gameHistoryReducer;
|
|
59652
|
+
this.a9q_1 = dealerReducer;
|
|
59653
|
+
this.b9q_1 = gameParamsProvider;
|
|
59654
|
+
}
|
|
59655
|
+
protoOf(SceneReducer).c9q = function (table, sceneId, sceneData, actId, actData) {
|
|
59606
59656
|
var previousSceneId = table.sceneInfo.t8b_1;
|
|
59607
59657
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.w8b_1, sceneData)) {
|
|
59608
59658
|
throw new MechanicException('Payload was set twice');
|
|
59609
59659
|
}
|
|
59610
59660
|
return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
59611
59661
|
};
|
|
59612
|
-
protoOf(SceneReducer).
|
|
59662
|
+
protoOf(SceneReducer).d9s = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
59613
59663
|
// Inline function 'kotlin.collections.map' call
|
|
59614
59664
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59615
59665
|
var destination = ArrayList_init_$Create$(newPlayersCards.o());
|
|
@@ -59623,19 +59673,19 @@
|
|
|
59623
59673
|
// Inline function 'kotlin.let' call
|
|
59624
59674
|
var it = flatten(destination);
|
|
59625
59675
|
var tmp;
|
|
59626
|
-
if (this.
|
|
59627
|
-
tmp = this.
|
|
59676
|
+
if (this.b9q_1.d92(config)) {
|
|
59677
|
+
tmp = this.a9q_1.h5v(it, cardDeck.z7y_1);
|
|
59628
59678
|
} else {
|
|
59629
59679
|
tmp = it;
|
|
59630
59680
|
}
|
|
59631
59681
|
var playersCardsToRemove = tmp;
|
|
59632
59682
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
59633
|
-
var cards = this.
|
|
59683
|
+
var cards = this.a9q_1.g5v(cardDeck.y7y_1, cardsToRemove);
|
|
59634
59684
|
return cardDeck.d8v(cards, VOID, newTopOpenedCard);
|
|
59635
59685
|
};
|
|
59636
59686
|
function TeamsMechanicReducer() {
|
|
59637
59687
|
}
|
|
59638
|
-
protoOf(TeamsMechanicReducer).
|
|
59688
|
+
protoOf(TeamsMechanicReducer).a9r = function (players, action) {
|
|
59639
59689
|
// Inline function 'kotlin.collections.map' call
|
|
59640
59690
|
var this_0 = action.p89_1.k6g_1;
|
|
59641
59691
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59675,10 +59725,10 @@
|
|
|
59675
59725
|
return destination_1;
|
|
59676
59726
|
};
|
|
59677
59727
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
59678
|
-
this.
|
|
59679
|
-
this.
|
|
59728
|
+
this.w9q_1 = logger;
|
|
59729
|
+
this.x9q_1 = gameHistoryReducer;
|
|
59680
59730
|
}
|
|
59681
|
-
protoOf(TradeMechanicReducer).
|
|
59731
|
+
protoOf(TradeMechanicReducer).z9q = function (state, action) {
|
|
59682
59732
|
var table = state.l6v();
|
|
59683
59733
|
// Inline function 'kotlin.with' call
|
|
59684
59734
|
var player = getPlayer(table.players, action.w89_1);
|
|
@@ -59686,7 +59736,7 @@
|
|
|
59686
59736
|
var it = player.y6y_1.h78();
|
|
59687
59737
|
var tmp;
|
|
59688
59738
|
if (it == null) {
|
|
59689
|
-
this.
|
|
59739
|
+
this.w9q_1.w(VOID, "Can't support this circle increment");
|
|
59690
59740
|
tmp = player.y6y_1.a74_1;
|
|
59691
59741
|
} else {
|
|
59692
59742
|
tmp = it;
|
|
@@ -59708,17 +59758,17 @@
|
|
|
59708
59758
|
destination.j(tmp$ret$2);
|
|
59709
59759
|
}
|
|
59710
59760
|
var tmp_1 = destination;
|
|
59711
|
-
var tmp0_$this = this.
|
|
59761
|
+
var tmp0_$this = this.x9q_1;
|
|
59712
59762
|
var tmp1_playerId = player.playerId;
|
|
59713
59763
|
var tmp2_suit = action.u89_1;
|
|
59714
59764
|
var tmp3_gameHistory = table.gameHistory;
|
|
59715
59765
|
var tmp4_players = table.players;
|
|
59716
59766
|
var tmp5_playersMode = table.config.playersMode;
|
|
59717
|
-
tmp_0 = state.i9c(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
59767
|
+
tmp_0 = state.i9c(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.h9s(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
59718
59768
|
}
|
|
59719
59769
|
return tmp_0;
|
|
59720
59770
|
};
|
|
59721
|
-
protoOf(TradeMechanicReducer).
|
|
59771
|
+
protoOf(TradeMechanicReducer).y9q = function (state, action) {
|
|
59722
59772
|
var table = state.l6v();
|
|
59723
59773
|
// Inline function 'kotlin.collections.map' call
|
|
59724
59774
|
var this_0 = table.players;
|
|
@@ -59736,13 +59786,13 @@
|
|
|
59736
59786
|
return valueToFind.j79_1 === value.j79_1;
|
|
59737
59787
|
}
|
|
59738
59788
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
59739
|
-
this.
|
|
59740
|
-
this.
|
|
59741
|
-
this.
|
|
59742
|
-
this.
|
|
59743
|
-
this.
|
|
59789
|
+
this.g9q_1 = teamsLogicProvider;
|
|
59790
|
+
this.h9q_1 = combinationsInteractor;
|
|
59791
|
+
this.i9q_1 = dealerReducer;
|
|
59792
|
+
this.j9q_1 = playerHandReducer;
|
|
59793
|
+
this.k9q_1 = gameHistoryReducer;
|
|
59744
59794
|
}
|
|
59745
|
-
protoOf(CombinationsMechanicReducer).
|
|
59795
|
+
protoOf(CombinationsMechanicReducer).i9s = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
59746
59796
|
var bellaCombination = first(playerCombinations.l8w_1);
|
|
59747
59797
|
var player = getPlayer(players, playerCombinations.k8w_1);
|
|
59748
59798
|
if (bellaCombination.l79_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -59751,7 +59801,7 @@
|
|
|
59751
59801
|
var tmp;
|
|
59752
59802
|
if (config.rules.protectBella) {
|
|
59753
59803
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
59754
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
59804
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.g9q_1.r90(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
59755
59805
|
var tmp_0;
|
|
59756
59806
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
59757
59807
|
tmp_0 = bellaCombination.v79(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -59765,7 +59815,7 @@
|
|
|
59765
59815
|
return tmp;
|
|
59766
59816
|
}
|
|
59767
59817
|
};
|
|
59768
|
-
protoOf(CombinationsMechanicReducer).
|
|
59818
|
+
protoOf(CombinationsMechanicReducer).l9q = function (state, action) {
|
|
59769
59819
|
var table = state.l6v();
|
|
59770
59820
|
var players = table.players;
|
|
59771
59821
|
var config = table.config;
|
|
@@ -59796,7 +59846,7 @@
|
|
|
59796
59846
|
}
|
|
59797
59847
|
var passedPlayersCombinations = destination;
|
|
59798
59848
|
// Inline function 'kotlin.collections.filterNot' call
|
|
59799
|
-
var tmp0 = this.
|
|
59849
|
+
var tmp0 = this.h9q_1.r94(players);
|
|
59800
59850
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
59801
59851
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
59802
59852
|
var _iterator__ex2g4s_1 = tmp0.l();
|
|
@@ -59843,10 +59893,10 @@
|
|
|
59843
59893
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
|
|
59844
59894
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
59845
59895
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
59846
|
-
var tmp0_$this = this.
|
|
59896
|
+
var tmp0_$this = this.j9q_1;
|
|
59847
59897
|
var tmp1_playerId = item_1.playerId;
|
|
59848
59898
|
var tmp2_hand = item_1.z6y_1;
|
|
59849
|
-
var tmp_1 = tmp0_$this.
|
|
59899
|
+
var tmp_1 = tmp0_$this.r9r(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
59850
59900
|
tmp = item_1.e74(VOID, VOID, VOID, VOID, tmp_1, item_1.a6z_1.l78(VOID, updateOrAddItems(item_1.a6z_1.d75_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
59851
59901
|
} else {
|
|
59852
59902
|
tmp = item_1;
|
|
@@ -59854,9 +59904,9 @@
|
|
|
59854
59904
|
var tmp$ret$19 = tmp;
|
|
59855
59905
|
destination_4.j(tmp$ret$19);
|
|
59856
59906
|
}
|
|
59857
|
-
return state.i9c(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
59907
|
+
return state.i9c(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.k9q_1.j9s(action.n8a_1, table.gameHistory)));
|
|
59858
59908
|
};
|
|
59859
|
-
protoOf(CombinationsMechanicReducer).
|
|
59909
|
+
protoOf(CombinationsMechanicReducer).v9q = function (state, action) {
|
|
59860
59910
|
var table = state.l6v();
|
|
59861
59911
|
var player = getPlayer(table.players, action.d8a_1);
|
|
59862
59912
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -59911,13 +59961,13 @@
|
|
|
59911
59961
|
// Inline function 'kotlin.let' call
|
|
59912
59962
|
|
|
59913
59963
|
var cards = player.x6y_1;
|
|
59914
|
-
var newCards = this.
|
|
59915
|
-
var tmp1_cards = this.
|
|
59964
|
+
var newCards = this.i9q_1.h5v(cards, trumpSevenCard);
|
|
59965
|
+
var tmp1_cards = this.i9q_1.i5v(newCards, trumpCard);
|
|
59916
59966
|
var tmp3_players = updateItem(table.players, player.e74(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
59917
|
-
var tmp4_gameHistory = this.
|
|
59967
|
+
var tmp4_gameHistory = this.k9q_1.k9s(player.playerId, listOf(announcedCombination.k79_1), VOID, table.gameHistory);
|
|
59918
59968
|
return state.i9c(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
59919
59969
|
case 6:
|
|
59920
|
-
return state.i9c(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.e74(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
59970
|
+
return state.i9c(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.e74(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.k9q_1.k9s(player.playerId, listOf(announcedCombination.k79_1), VOID, table.gameHistory)));
|
|
59921
59971
|
default:
|
|
59922
59972
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
59923
59973
|
}
|
|
@@ -59998,7 +60048,7 @@
|
|
|
59998
60048
|
destination.j(tmp$ret$1);
|
|
59999
60049
|
}
|
|
60000
60050
|
var updatedCombinations = destination;
|
|
60001
|
-
var tmp1_cards = $this.
|
|
60051
|
+
var tmp1_cards = $this.p9q_1.h5v(player.x6y_1, card);
|
|
60002
60052
|
var tmp2_points = player.a6z_1.l78(VOID, updatedCombinations);
|
|
60003
60053
|
var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
60004
60054
|
return player.e74(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
|
|
@@ -60017,11 +60067,11 @@
|
|
|
60017
60067
|
}
|
|
60018
60068
|
var tmp2_combinations = tmp;
|
|
60019
60069
|
var tmp4_points = tmp0_$this.l78(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
60020
|
-
var tmp5_hand = $this.
|
|
60070
|
+
var tmp5_hand = $this.r9q_1.q9r(player.z6y_1, combinations);
|
|
60021
60071
|
return player.e74(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
60022
60072
|
}
|
|
60023
60073
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
60024
|
-
var bellaCombination = $this.
|
|
60074
|
+
var bellaCombination = $this.o9q_1.q94(players);
|
|
60025
60075
|
// Inline function 'kotlin.collections.associate' call
|
|
60026
60076
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
60027
60077
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -60040,7 +60090,7 @@
|
|
|
60040
60090
|
var isGotBribe = player.playerId === whoGotBribePlayerId;
|
|
60041
60091
|
var isGotLastBribe = player.h6e() === 0 && isGotBribe;
|
|
60042
60092
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.k8w_1 === player.playerId;
|
|
60043
|
-
var tmp = isGotLastBribe ? $this.
|
|
60093
|
+
var tmp = isGotLastBribe ? $this.n9q_1.y78(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_179.h8v(CombinationType_BONUS_LAST_BRIBE_getInstance(), config)) : null;
|
|
60044
60094
|
var tmp_0;
|
|
60045
60095
|
if (hasBellaCombination) {
|
|
60046
60096
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -60056,7 +60106,7 @@
|
|
|
60056
60106
|
}
|
|
60057
60107
|
}
|
|
60058
60108
|
var tmp$ret$2 = tmp$ret$1;
|
|
60059
|
-
tmp_0 = $this.
|
|
60109
|
+
tmp_0 = $this.m9q_1.i9s(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
60060
60110
|
} else {
|
|
60061
60111
|
tmp_0 = null;
|
|
60062
60112
|
}
|
|
@@ -60121,15 +60171,15 @@
|
|
|
60121
60171
|
return value1.j79_1 === value2.j79_1;
|
|
60122
60172
|
}
|
|
60123
60173
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
60124
|
-
this.
|
|
60125
|
-
this.
|
|
60126
|
-
this.
|
|
60127
|
-
this.
|
|
60128
|
-
this.
|
|
60129
|
-
this.
|
|
60130
|
-
this.
|
|
60131
|
-
}
|
|
60132
|
-
protoOf(EarnPointsMechanicReducer).
|
|
60174
|
+
this.m9q_1 = combinationsMechanicReducer;
|
|
60175
|
+
this.n9q_1 = combinationsFactory;
|
|
60176
|
+
this.o9q_1 = combinationsInteractor;
|
|
60177
|
+
this.p9q_1 = dealerReducer;
|
|
60178
|
+
this.q9q_1 = gameHistoryReducer;
|
|
60179
|
+
this.r9q_1 = playerHandReducer;
|
|
60180
|
+
this.s9q_1 = logger;
|
|
60181
|
+
}
|
|
60182
|
+
protoOf(EarnPointsMechanicReducer).u9q = function (state, action) {
|
|
60133
60183
|
var table = state.l6v();
|
|
60134
60184
|
var player = getPlayer(table.players, action.h8a_1);
|
|
60135
60185
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.h8a_1, table.cardsOnTable.o(), action.f8a_1));
|
|
@@ -60151,13 +60201,13 @@
|
|
|
60151
60201
|
var tmp$ret$0 = item.s7i_1;
|
|
60152
60202
|
destination.j(tmp$ret$0);
|
|
60153
60203
|
}
|
|
60154
|
-
tmp = this.
|
|
60204
|
+
tmp = this.q9q_1.k9s(tmp_0, destination, VOID, table.gameHistory);
|
|
60155
60205
|
}
|
|
60156
60206
|
var tmp1_elvis_lhs = tmp;
|
|
60157
60207
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
60158
60208
|
return state.i9c(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
60159
60209
|
};
|
|
60160
|
-
protoOf(EarnPointsMechanicReducer).
|
|
60210
|
+
protoOf(EarnPointsMechanicReducer).t9q = function (state, action) {
|
|
60161
60211
|
var table = state.l6v();
|
|
60162
60212
|
var players = table.players;
|
|
60163
60213
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -60182,7 +60232,7 @@
|
|
|
60182
60232
|
destination_0.j(tmp$ret$3);
|
|
60183
60233
|
}
|
|
60184
60234
|
if (!(toSet(destination_0).o() === 1)) {
|
|
60185
|
-
this.
|
|
60235
|
+
this.s9q_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
60186
60236
|
}
|
|
60187
60237
|
var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.k8a_1, players, config);
|
|
60188
60238
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -60198,7 +60248,7 @@
|
|
|
60198
60248
|
destination_1.j(tmp$ret$6);
|
|
60199
60249
|
}
|
|
60200
60250
|
var tmp3_gameInfo = table.gameInfo.a8u(VOID, VOID, table.gameInfo.round.copy(VOID, action.l8a_1));
|
|
60201
|
-
var tmp4_gameHistory = this.
|
|
60251
|
+
var tmp4_gameHistory = this.q9q_1.l9s(action.k8a_1, bribe, action.l8a_1, playersCombinations, table.gameHistory);
|
|
60202
60252
|
return state.i9c(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
60203
60253
|
};
|
|
60204
60254
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -60206,7 +60256,7 @@
|
|
|
60206
60256
|
return metadata;
|
|
60207
60257
|
}
|
|
60208
60258
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
60209
|
-
$this.
|
|
60259
|
+
$this.a9s_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
60210
60260
|
}
|
|
60211
60261
|
var tmp0_safe_receiver = metadata.randomData;
|
|
60212
60262
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -60218,12 +60268,12 @@
|
|
|
60218
60268
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
|
|
60219
60269
|
}
|
|
60220
60270
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
60221
|
-
this.
|
|
60222
|
-
this.
|
|
60223
|
-
this.
|
|
60224
|
-
this.
|
|
60271
|
+
this.x9r_1 = pointsInteractor;
|
|
60272
|
+
this.y9r_1 = teamsLogicProvider;
|
|
60273
|
+
this.z9r_1 = gameLogicConfig;
|
|
60274
|
+
this.a9s_1 = logger;
|
|
60225
60275
|
}
|
|
60226
|
-
protoOf(GameHistoryReducer).
|
|
60276
|
+
protoOf(GameHistoryReducer).m9s = function (gameHistory) {
|
|
60227
60277
|
var roundNumber = gameHistory.rounds.length;
|
|
60228
60278
|
var tmp0 = gameHistory.rounds;
|
|
60229
60279
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -60235,7 +60285,7 @@
|
|
|
60235
60285
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
60236
60286
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
60237
60287
|
};
|
|
60238
|
-
protoOf(GameHistoryReducer).
|
|
60288
|
+
protoOf(GameHistoryReducer).c9s = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
60239
60289
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
60240
60290
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.z7y_1, System_instance.ck());
|
|
60241
60291
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -60253,14 +60303,14 @@
|
|
|
60253
60303
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
60254
60304
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_188.initial() : tmp0_elvis_lhs));
|
|
60255
60305
|
};
|
|
60256
|
-
protoOf(GameHistoryReducer).
|
|
60306
|
+
protoOf(GameHistoryReducer).h9s = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
60257
60307
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
60258
60308
|
var tmp;
|
|
60259
60309
|
if (playersMode.isTeamGame) {
|
|
60260
60310
|
// Inline function 'kotlin.arrayOf' call
|
|
60261
60311
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
60262
60312
|
// Inline function 'kotlin.js.asDynamic' call
|
|
60263
|
-
tmp = [playerId, this.
|
|
60313
|
+
tmp = [playerId, this.y9r_1.r90(playerId, players).playerId];
|
|
60264
60314
|
} else {
|
|
60265
60315
|
// Inline function 'kotlin.arrayOf' call
|
|
60266
60316
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -60270,7 +60320,7 @@
|
|
|
60270
60320
|
var roundCommitted = tmp;
|
|
60271
60321
|
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_1(currentRoundHistory.items, listOf(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.ck()))), roundCommitted)));
|
|
60272
60322
|
};
|
|
60273
|
-
protoOf(GameHistoryReducer).
|
|
60323
|
+
protoOf(GameHistoryReducer).e9s = function (playersCards, gameHistory) {
|
|
60274
60324
|
// Inline function 'kotlin.collections.mapValues' call
|
|
60275
60325
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
60276
60326
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
|
|
@@ -60284,14 +60334,14 @@
|
|
|
60284
60334
|
}
|
|
60285
60335
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
|
|
60286
60336
|
};
|
|
60287
|
-
protoOf(GameHistoryReducer).
|
|
60337
|
+
protoOf(GameHistoryReducer).n9s = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
60288
60338
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
|
|
60289
60339
|
};
|
|
60290
|
-
protoOf(GameHistoryReducer).
|
|
60340
|
+
protoOf(GameHistoryReducer).k9s = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
60291
60341
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
60292
|
-
return $super === VOID ? this.
|
|
60342
|
+
return $super === VOID ? this.n9s(playerId, combinations, combinationsStates, gameHistory) : $super.n9s.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
60293
60343
|
};
|
|
60294
|
-
protoOf(GameHistoryReducer).
|
|
60344
|
+
protoOf(GameHistoryReducer).l9s = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
60295
60345
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.w7y_1, numberOfBribe, System_instance.ck()));
|
|
60296
60346
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
60297
60347
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -60350,7 +60400,7 @@
|
|
|
60350
60400
|
}
|
|
60351
60401
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
60352
60402
|
};
|
|
60353
|
-
protoOf(GameHistoryReducer).
|
|
60403
|
+
protoOf(GameHistoryReducer).j9s = function (winnerCombinations, gameHistory) {
|
|
60354
60404
|
// Inline function 'kotlin.collections.map' call
|
|
60355
60405
|
// Inline function 'kotlin.collections.mapTo' call
|
|
60356
60406
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -60366,7 +60416,7 @@
|
|
|
60366
60416
|
}
|
|
60367
60417
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
60368
60418
|
};
|
|
60369
|
-
protoOf(GameHistoryReducer).
|
|
60419
|
+
protoOf(GameHistoryReducer).b9s = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
60370
60420
|
if (playerConnection == null) {
|
|
60371
60421
|
return gameHistory;
|
|
60372
60422
|
}
|
|
@@ -60378,17 +60428,17 @@
|
|
|
60378
60428
|
tmp = false;
|
|
60379
60429
|
}
|
|
60380
60430
|
var isShortDisconnectState = tmp;
|
|
60381
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
60431
|
+
if (isSupportedReason && !isShortDisconnectState || this.z9r_1.verboseGameHistory) {
|
|
60382
60432
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.y6e_1, playerConnection.g6f(), System_instance.ck())));
|
|
60383
60433
|
}
|
|
60384
60434
|
return gameHistory;
|
|
60385
60435
|
};
|
|
60386
|
-
protoOf(GameHistoryReducer).
|
|
60436
|
+
protoOf(GameHistoryReducer).f9s = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
60387
60437
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
60388
60438
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
60389
60439
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_188.initial() : tmp0_elvis_lhs;
|
|
60390
60440
|
var tmp;
|
|
60391
|
-
if (this.
|
|
60441
|
+
if (this.z9r_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
60392
60442
|
// Inline function 'kotlin.collections.map' call
|
|
60393
60443
|
// Inline function 'kotlin.collections.mapTo' call
|
|
60394
60444
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -60403,7 +60453,7 @@
|
|
|
60403
60453
|
tmp = currentMetadata;
|
|
60404
60454
|
}
|
|
60405
60455
|
var updatedMetadata = tmp;
|
|
60406
|
-
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
60456
|
+
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.x9r_1.m98(points), System_instance.ck())));
|
|
60407
60457
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
60408
60458
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
60409
60459
|
};
|
|
@@ -60428,7 +60478,7 @@
|
|
|
60428
60478
|
tmp = cardDeck;
|
|
60429
60479
|
}
|
|
60430
60480
|
var newCardDeck = tmp;
|
|
60431
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
60481
|
+
return new PreviousRound(bribes, newCardDeck, $this.q9s_1.n98(players, config));
|
|
60432
60482
|
}
|
|
60433
60483
|
function roundFinishedGameInfoReducer($this, table) {
|
|
60434
60484
|
var gameInfo = table.gameInfo;
|
|
@@ -60481,10 +60531,10 @@
|
|
|
60481
60531
|
return points.k78(0, emptyList(), emptyList());
|
|
60482
60532
|
}
|
|
60483
60533
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
60484
|
-
this.
|
|
60485
|
-
this.
|
|
60534
|
+
this.q9s_1 = pointsInteractor;
|
|
60535
|
+
this.r9s_1 = historyReducer;
|
|
60486
60536
|
}
|
|
60487
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60537
|
+
protoOf(TableLifecycleReducerImpl).o9s = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
60488
60538
|
var tmp = Companion_instance_176;
|
|
60489
60539
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
60490
60540
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -60516,7 +60566,7 @@
|
|
|
60516
60566
|
}
|
|
60517
60567
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
60518
60568
|
};
|
|
60519
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60569
|
+
protoOf(TableLifecycleReducerImpl).k9r = function (table) {
|
|
60520
60570
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
60521
60571
|
// Inline function 'kotlin.collections.map' call
|
|
60522
60572
|
var this_0 = table.players;
|
|
@@ -60531,10 +60581,10 @@
|
|
|
60531
60581
|
var tmp2_cardsOnTable = emptyList();
|
|
60532
60582
|
var tmp3_bribes = emptyList();
|
|
60533
60583
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
60534
|
-
var tmp5_gameHistory = this.
|
|
60535
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes,
|
|
60584
|
+
var tmp5_gameHistory = this.r9s_1.m9s(table.gameHistory);
|
|
60585
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
60536
60586
|
};
|
|
60537
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60587
|
+
protoOf(TableLifecycleReducerImpl).g9s = function (table) {
|
|
60538
60588
|
// Inline function 'kotlin.collections.map' call
|
|
60539
60589
|
var this_0 = table.players;
|
|
60540
60590
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -60545,9 +60595,9 @@
|
|
|
60545
60595
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
60546
60596
|
destination.j(tmp$ret$0);
|
|
60547
60597
|
}
|
|
60548
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
60598
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.r9s_1.m9s(table.gameHistory));
|
|
60549
60599
|
};
|
|
60550
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60600
|
+
protoOf(TableLifecycleReducerImpl).p9s = function (table, newGameId) {
|
|
60551
60601
|
// Inline function 'kotlin.collections.map' call
|
|
60552
60602
|
var this_0 = table.players;
|
|
60553
60603
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -60586,93 +60636,93 @@
|
|
|
60586
60636
|
return true;
|
|
60587
60637
|
}
|
|
60588
60638
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
60589
|
-
this.
|
|
60590
|
-
this.
|
|
60591
|
-
this.
|
|
60592
|
-
this.
|
|
60639
|
+
this.s9s_1 = $isEnableForPlayer;
|
|
60640
|
+
this.t9s_1 = $playerTurnInteractor;
|
|
60641
|
+
this.u9s_1 = $logger;
|
|
60642
|
+
this.v9s_1 = $playerTurnMechanicReducer;
|
|
60593
60643
|
}
|
|
60594
60644
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).f6n = function (action) {
|
|
60595
60645
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
60596
60646
|
};
|
|
60597
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
60647
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).v9p = function (state, action) {
|
|
60598
60648
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
60599
60649
|
var tmp$ret$0;
|
|
60600
60650
|
$l$block: {
|
|
60601
60651
|
var table = state.l6v();
|
|
60602
60652
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
60603
|
-
if (!this.
|
|
60653
|
+
if (!this.s9s_1(player)) {
|
|
60604
60654
|
tmp$ret$0 = state;
|
|
60605
60655
|
break $l$block;
|
|
60606
60656
|
}
|
|
60607
|
-
var turnModel = this.
|
|
60657
|
+
var turnModel = this.t9s_1.r99(player, tmp2);
|
|
60608
60658
|
var tmp;
|
|
60609
60659
|
if (turnModel == null) {
|
|
60610
|
-
this.
|
|
60660
|
+
this.u9s_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
60611
60661
|
tmp = state;
|
|
60612
60662
|
} else {
|
|
60613
|
-
tmp = state.i9c(this.
|
|
60663
|
+
tmp = state.i9c(this.v9s_1.v9r(table, turnModel));
|
|
60614
60664
|
}
|
|
60615
60665
|
tmp$ret$0 = tmp;
|
|
60616
60666
|
}
|
|
60617
60667
|
return tmp$ret$0;
|
|
60618
60668
|
};
|
|
60619
60669
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).v6o = function (state, action) {
|
|
60620
|
-
return this.
|
|
60670
|
+
return this.v9p((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
60621
60671
|
};
|
|
60622
60672
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
60623
60673
|
return true;
|
|
60624
60674
|
}
|
|
60625
60675
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
60626
|
-
this.
|
|
60627
|
-
this.
|
|
60628
|
-
this.
|
|
60629
|
-
this.
|
|
60676
|
+
this.w9s_1 = $isEnableForPlayer;
|
|
60677
|
+
this.x9s_1 = $playerTurnInteractor;
|
|
60678
|
+
this.y9s_1 = $logger;
|
|
60679
|
+
this.z9s_1 = $playerTurnMechanicReducer;
|
|
60630
60680
|
}
|
|
60631
60681
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).f6n = function (action) {
|
|
60632
60682
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
60633
60683
|
};
|
|
60634
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
60684
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).v9p = function (state, action) {
|
|
60635
60685
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
60636
60686
|
var tmp$ret$0;
|
|
60637
60687
|
$l$block: {
|
|
60638
60688
|
var table = state.l6v();
|
|
60639
60689
|
var player = getPlayerTurn(tmp2, table.players);
|
|
60640
|
-
if (player == null || !this.
|
|
60690
|
+
if (player == null || !this.w9s_1(player)) {
|
|
60641
60691
|
tmp$ret$0 = state;
|
|
60642
60692
|
break $l$block;
|
|
60643
60693
|
}
|
|
60644
|
-
var turnModel = this.
|
|
60694
|
+
var turnModel = this.x9s_1.r99(player, tmp2);
|
|
60645
60695
|
var tmp;
|
|
60646
60696
|
if (turnModel == null) {
|
|
60647
|
-
this.
|
|
60697
|
+
this.y9s_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
60648
60698
|
tmp = state;
|
|
60649
60699
|
} else {
|
|
60650
|
-
tmp = state.i9c(this.
|
|
60700
|
+
tmp = state.i9c(this.z9s_1.v9r(table, turnModel));
|
|
60651
60701
|
}
|
|
60652
60702
|
tmp$ret$0 = tmp;
|
|
60653
60703
|
}
|
|
60654
60704
|
return tmp$ret$0;
|
|
60655
60705
|
};
|
|
60656
60706
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).v6o = function (state, action) {
|
|
60657
|
-
return this.
|
|
60707
|
+
return this.v9p((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
60658
60708
|
};
|
|
60659
60709
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
60660
60710
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
60661
60711
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
60662
60712
|
}
|
|
60663
60713
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
60664
|
-
this.
|
|
60665
|
-
this.
|
|
60714
|
+
this.a9t_1 = $playerTurnInteractor;
|
|
60715
|
+
this.b9t_1 = $playerTurnMechanicReducer;
|
|
60666
60716
|
}
|
|
60667
60717
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).f6n = function (action) {
|
|
60668
60718
|
return isInterface(action, NextPlayerTurnAction);
|
|
60669
60719
|
};
|
|
60670
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
60720
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).v9p = function (state, action) {
|
|
60671
60721
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
60672
60722
|
var tmp$ret$0;
|
|
60673
60723
|
$l$block: {
|
|
60674
60724
|
var table = state.l6v();
|
|
60675
|
-
var tmp0_elvis_lhs = this.
|
|
60725
|
+
var tmp0_elvis_lhs = this.a9t_1.q99(tmp2, table);
|
|
60676
60726
|
var tmp;
|
|
60677
60727
|
if (tmp0_elvis_lhs == null) {
|
|
60678
60728
|
tmp$ret$0 = state;
|
|
@@ -60681,12 +60731,12 @@
|
|
|
60681
60731
|
tmp = tmp0_elvis_lhs;
|
|
60682
60732
|
}
|
|
60683
60733
|
var turnModel = tmp;
|
|
60684
|
-
tmp$ret$0 = state.i9c(this.
|
|
60734
|
+
tmp$ret$0 = state.i9c(this.b9t_1.u9r(table, turnModel));
|
|
60685
60735
|
}
|
|
60686
60736
|
return tmp$ret$0;
|
|
60687
60737
|
};
|
|
60688
60738
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).v6o = function (state, action) {
|
|
60689
|
-
return this.
|
|
60739
|
+
return this.v9p((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
60690
60740
|
};
|
|
60691
60741
|
function get_isCreated(_this__u8e3s4) {
|
|
60692
60742
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -60699,7 +60749,7 @@
|
|
|
60699
60749
|
}
|
|
60700
60750
|
function Companion_194() {
|
|
60701
60751
|
}
|
|
60702
|
-
protoOf(Companion_194).
|
|
60752
|
+
protoOf(Companion_194).c9t = function (payload) {
|
|
60703
60753
|
var tmp;
|
|
60704
60754
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
60705
60755
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -60731,27 +60781,27 @@
|
|
|
60731
60781
|
tmp = payloadMapper;
|
|
60732
60782
|
}
|
|
60733
60783
|
payloadMapper = tmp;
|
|
60734
|
-
this.
|
|
60735
|
-
this.
|
|
60784
|
+
this.d9t_1 = logger;
|
|
60785
|
+
this.e9t_1 = payloadMapper;
|
|
60736
60786
|
}
|
|
60737
60787
|
protoOf(CallbackWrapperLoggerOutput).l51 = function (tag, message, payload) {
|
|
60738
|
-
this.
|
|
60788
|
+
this.d9t_1.d(tag, message, this.e9t_1(payload));
|
|
60739
60789
|
};
|
|
60740
60790
|
protoOf(CallbackWrapperLoggerOutput).m51 = function (tag, message, exception, payload) {
|
|
60741
|
-
this.
|
|
60791
|
+
this.d9t_1.e(tag, message, exception, this.e9t_1(payload));
|
|
60742
60792
|
};
|
|
60743
60793
|
protoOf(CallbackWrapperLoggerOutput).p51 = function (tag, message, payload) {
|
|
60744
|
-
this.
|
|
60794
|
+
this.d9t_1.i(tag, message, this.e9t_1(payload));
|
|
60745
60795
|
};
|
|
60746
60796
|
protoOf(CallbackWrapperLoggerOutput).o51 = function (tag, message, exception, payload) {
|
|
60747
|
-
this.
|
|
60797
|
+
this.d9t_1.v(tag, message, exception, this.e9t_1(payload));
|
|
60748
60798
|
};
|
|
60749
60799
|
protoOf(CallbackWrapperLoggerOutput).n51 = function (tag, message, exception, payload) {
|
|
60750
|
-
this.
|
|
60800
|
+
this.d9t_1.w(tag, message, exception, this.e9t_1(payload));
|
|
60751
60801
|
};
|
|
60752
60802
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
60753
|
-
this.
|
|
60754
|
-
this.
|
|
60803
|
+
this.n9t_1 = $$this$unsafeFlow;
|
|
60804
|
+
this.o9t_1 = $types;
|
|
60755
60805
|
CoroutineImpl.call(this, resultContinuation);
|
|
60756
60806
|
}
|
|
60757
60807
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).a2j = function (value, $completion) {
|
|
@@ -60772,15 +60822,15 @@
|
|
|
60772
60822
|
case 0:
|
|
60773
60823
|
this.s8_1 = 5;
|
|
60774
60824
|
var tmp_0 = this;
|
|
60775
|
-
tmp_0.
|
|
60825
|
+
tmp_0.r9t_1 = this.n9t_1;
|
|
60776
60826
|
var tmp_1 = this;
|
|
60777
|
-
tmp_1.
|
|
60827
|
+
tmp_1.q9t_1 = this.p9t_1;
|
|
60778
60828
|
this.r8_1 = 1;
|
|
60779
60829
|
continue $sm;
|
|
60780
60830
|
case 1:
|
|
60781
|
-
var $this$transform = this.
|
|
60782
|
-
var value = this.
|
|
60783
|
-
if (contains(this.
|
|
60831
|
+
var $this$transform = this.r9t_1;
|
|
60832
|
+
var value = this.q9t_1;
|
|
60833
|
+
if (contains(this.o9t_1, value.type)) {
|
|
60784
60834
|
this.r8_1 = 3;
|
|
60785
60835
|
suspendResult = $this$transform.g24(value, this);
|
|
60786
60836
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -60820,8 +60870,8 @@
|
|
|
60820
60870
|
while (true);
|
|
60821
60871
|
};
|
|
60822
60872
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).b2j = function (value, completion) {
|
|
60823
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
60824
|
-
i.
|
|
60873
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.n9t_1, this.o9t_1, completion);
|
|
60874
|
+
i.p9t_1 = value;
|
|
60825
60875
|
return i;
|
|
60826
60876
|
};
|
|
60827
60877
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -60834,8 +60884,8 @@
|
|
|
60834
60884
|
}
|
|
60835
60885
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
60836
60886
|
CoroutineImpl.call(this, resultContinuation);
|
|
60837
|
-
this.
|
|
60838
|
-
this.
|
|
60887
|
+
this.a9u_1 = _this__u8e3s4;
|
|
60888
|
+
this.b9u_1 = collector;
|
|
60839
60889
|
}
|
|
60840
60890
|
protoOf($collectCOROUTINE$).z8 = function () {
|
|
60841
60891
|
var suspendResult = this.t8_1;
|
|
@@ -60845,10 +60895,10 @@
|
|
|
60845
60895
|
switch (tmp) {
|
|
60846
60896
|
case 0:
|
|
60847
60897
|
this.s8_1 = 2;
|
|
60848
|
-
var $this$unsafeFlow = this.
|
|
60898
|
+
var $this$unsafeFlow = this.b9u_1;
|
|
60849
60899
|
this.r8_1 = 1;
|
|
60850
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
60851
|
-
suspendResult = this.
|
|
60900
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.a9u_1.d9u_1, null);
|
|
60901
|
+
suspendResult = this.a9u_1.c9u_1.d23(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
60852
60902
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
60853
60903
|
return suspendResult;
|
|
60854
60904
|
}
|
|
@@ -60872,8 +60922,8 @@
|
|
|
60872
60922
|
};
|
|
60873
60923
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
60874
60924
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
60875
|
-
$this.
|
|
60876
|
-
var tmp0_elvis_lhs = $this.
|
|
60925
|
+
$this.g9u_1;
|
|
60926
|
+
var tmp0_elvis_lhs = $this.e9u_1(payload);
|
|
60877
60927
|
var tmp;
|
|
60878
60928
|
if (tmp0_elvis_lhs == null) {
|
|
60879
60929
|
return Unit_instance;
|
|
@@ -60882,7 +60932,7 @@
|
|
|
60882
60932
|
}
|
|
60883
60933
|
var key = tmp;
|
|
60884
60934
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
60885
|
-
var this_0 = $this.
|
|
60935
|
+
var this_0 = $this.h9u_1;
|
|
60886
60936
|
var value = this_0.b2(key);
|
|
60887
60937
|
var tmp_0;
|
|
60888
60938
|
if (value == null) {
|
|
@@ -60893,7 +60943,7 @@
|
|
|
60893
60943
|
tmp_0 = value;
|
|
60894
60944
|
}
|
|
60895
60945
|
var logger = tmp_0;
|
|
60896
|
-
logger.
|
|
60946
|
+
logger.i9u_1.o27(new LoggerOutputDataDto(type, key, tag, message, stackTrace));
|
|
60897
60947
|
}
|
|
60898
60948
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
60899
60949
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -60903,35 +60953,35 @@
|
|
|
60903
60953
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
60904
60954
|
controller = controller === VOID ? null : controller;
|
|
60905
60955
|
job = job === VOID ? null : job;
|
|
60906
|
-
this.
|
|
60907
|
-
this.
|
|
60908
|
-
this.
|
|
60956
|
+
this.i9u_1 = flow;
|
|
60957
|
+
this.j9u_1 = controller;
|
|
60958
|
+
this.k9u_1 = job;
|
|
60909
60959
|
}
|
|
60910
|
-
protoOf(LoggerModel).
|
|
60911
|
-
this.
|
|
60912
|
-
var tmp0_safe_receiver = this.
|
|
60960
|
+
protoOf(LoggerModel).l9u = function () {
|
|
60961
|
+
this.i9u_1.s27();
|
|
60962
|
+
var tmp0_safe_receiver = this.k9u_1;
|
|
60913
60963
|
if (tmp0_safe_receiver == null)
|
|
60914
60964
|
null;
|
|
60915
60965
|
else {
|
|
60916
60966
|
tmp0_safe_receiver.k1l();
|
|
60917
60967
|
}
|
|
60918
60968
|
};
|
|
60919
|
-
protoOf(LoggerModel).
|
|
60969
|
+
protoOf(LoggerModel).m9u = function (flow, controller, job) {
|
|
60920
60970
|
return new LoggerModel(flow, controller, job);
|
|
60921
60971
|
};
|
|
60922
|
-
protoOf(LoggerModel).
|
|
60923
|
-
flow = flow === VOID ? this.
|
|
60924
|
-
controller = controller === VOID ? this.
|
|
60925
|
-
job = job === VOID ? this.
|
|
60926
|
-
return $super === VOID ? this.
|
|
60972
|
+
protoOf(LoggerModel).n9u = function (flow, controller, job, $super) {
|
|
60973
|
+
flow = flow === VOID ? this.i9u_1 : flow;
|
|
60974
|
+
controller = controller === VOID ? this.j9u_1 : controller;
|
|
60975
|
+
job = job === VOID ? this.k9u_1 : job;
|
|
60976
|
+
return $super === VOID ? this.m9u(flow, controller, job) : $super.m9u.call(this, flow, controller, job);
|
|
60927
60977
|
};
|
|
60928
60978
|
protoOf(LoggerModel).toString = function () {
|
|
60929
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
60979
|
+
return 'LoggerModel(flow=' + toString(this.i9u_1) + ', controller=' + toString_0(this.j9u_1) + ', job=' + toString_0(this.k9u_1) + ')';
|
|
60930
60980
|
};
|
|
60931
60981
|
protoOf(LoggerModel).hashCode = function () {
|
|
60932
|
-
var result = hashCode(this.
|
|
60933
|
-
result = imul(result, 31) + (this.i9u_1 == null ? 0 : hashCode(this.i9u_1)) | 0;
|
|
60982
|
+
var result = hashCode(this.i9u_1);
|
|
60934
60983
|
result = imul(result, 31) + (this.j9u_1 == null ? 0 : hashCode(this.j9u_1)) | 0;
|
|
60984
|
+
result = imul(result, 31) + (this.k9u_1 == null ? 0 : hashCode(this.k9u_1)) | 0;
|
|
60935
60985
|
return result;
|
|
60936
60986
|
};
|
|
60937
60987
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -60939,18 +60989,18 @@
|
|
|
60939
60989
|
return true;
|
|
60940
60990
|
if (!(other instanceof LoggerModel))
|
|
60941
60991
|
return false;
|
|
60942
|
-
if (!equals(this.h9u_1, other.h9u_1))
|
|
60943
|
-
return false;
|
|
60944
60992
|
if (!equals(this.i9u_1, other.i9u_1))
|
|
60945
60993
|
return false;
|
|
60946
60994
|
if (!equals(this.j9u_1, other.j9u_1))
|
|
60947
60995
|
return false;
|
|
60996
|
+
if (!equals(this.k9u_1, other.k9u_1))
|
|
60997
|
+
return false;
|
|
60948
60998
|
return true;
|
|
60949
60999
|
};
|
|
60950
61000
|
function Companion_195() {
|
|
60951
|
-
this.
|
|
61001
|
+
this.o9u_1 = 1000;
|
|
60952
61002
|
}
|
|
60953
|
-
protoOf(Companion_195).
|
|
61003
|
+
protoOf(Companion_195).p9u = function (payload) {
|
|
60954
61004
|
var tmp;
|
|
60955
61005
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
60956
61006
|
tmp = payload.id;
|
|
@@ -60972,13 +61022,13 @@
|
|
|
60972
61022
|
return Companion_instance_200;
|
|
60973
61023
|
}
|
|
60974
61024
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
60975
|
-
this.
|
|
61025
|
+
this.q9u_1 = function_0;
|
|
60976
61026
|
}
|
|
60977
61027
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).g24 = function (value, $completion) {
|
|
60978
|
-
return this.
|
|
61028
|
+
return this.q9u_1(value, $completion);
|
|
60979
61029
|
};
|
|
60980
61030
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
60981
|
-
return this.
|
|
61031
|
+
return this.q9u_1;
|
|
60982
61032
|
};
|
|
60983
61033
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
60984
61034
|
var tmp;
|
|
@@ -61002,8 +61052,8 @@
|
|
|
61002
61052
|
return null;
|
|
61003
61053
|
}
|
|
61004
61054
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
61005
|
-
this.
|
|
61006
|
-
this.
|
|
61055
|
+
this.c9u_1 = $this;
|
|
61056
|
+
this.d9u_1 = $types;
|
|
61007
61057
|
}
|
|
61008
61058
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).h24 = function (collector, $completion) {
|
|
61009
61059
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -61023,26 +61073,26 @@
|
|
|
61023
61073
|
}
|
|
61024
61074
|
payloadToKeyMapper = tmp;
|
|
61025
61075
|
enabled = enabled === VOID ? true : enabled;
|
|
61026
|
-
this.
|
|
61027
|
-
this.
|
|
61076
|
+
this.e9u_1 = payloadToKeyMapper;
|
|
61077
|
+
this.f9u_1 = enabled;
|
|
61028
61078
|
var tmp_0 = this;
|
|
61029
61079
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
61030
|
-
tmp_0.
|
|
61080
|
+
tmp_0.g9u_1 = get_atomicfu$reentrantLock();
|
|
61031
61081
|
var tmp_1 = this;
|
|
61032
61082
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
61033
|
-
tmp_1.
|
|
61083
|
+
tmp_1.h9u_1 = LinkedHashMap_init_$Create$();
|
|
61034
61084
|
}
|
|
61035
61085
|
protoOf(FileLoggerOutputImpl).q51 = function (_set____db54di) {
|
|
61036
|
-
this.
|
|
61086
|
+
this.f9u_1 = _set____db54di;
|
|
61037
61087
|
};
|
|
61038
61088
|
protoOf(FileLoggerOutputImpl).r51 = function () {
|
|
61039
|
-
return this.
|
|
61089
|
+
return this.f9u_1;
|
|
61040
61090
|
};
|
|
61041
|
-
protoOf(FileLoggerOutputImpl).
|
|
61091
|
+
protoOf(FileLoggerOutputImpl).r9u = function (key, types) {
|
|
61042
61092
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61043
|
-
this.
|
|
61093
|
+
this.g9u_1;
|
|
61044
61094
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
61045
|
-
var this_0 = this.
|
|
61095
|
+
var this_0 = this.h9u_1;
|
|
61046
61096
|
var value = this_0.b2(key);
|
|
61047
61097
|
var tmp;
|
|
61048
61098
|
if (value == null) {
|
|
@@ -61055,26 +61105,26 @@
|
|
|
61055
61105
|
var logger = tmp;
|
|
61056
61106
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
61057
61107
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
61058
|
-
var this_1 = logger.
|
|
61108
|
+
var this_1 = logger.i9u_1;
|
|
61059
61109
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
61060
61110
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
61061
61111
|
};
|
|
61062
|
-
protoOf(FileLoggerOutputImpl).
|
|
61112
|
+
protoOf(FileLoggerOutputImpl).f9k = function (key) {
|
|
61063
61113
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61064
|
-
this.
|
|
61065
|
-
var tmp0_safe_receiver = this.
|
|
61114
|
+
this.g9u_1;
|
|
61115
|
+
var tmp0_safe_receiver = this.h9u_1.b2(key);
|
|
61066
61116
|
if (tmp0_safe_receiver == null)
|
|
61067
61117
|
null;
|
|
61068
61118
|
else {
|
|
61069
|
-
tmp0_safe_receiver.
|
|
61119
|
+
tmp0_safe_receiver.l9u();
|
|
61070
61120
|
}
|
|
61071
|
-
this.
|
|
61121
|
+
this.h9u_1.m2(key);
|
|
61072
61122
|
};
|
|
61073
|
-
protoOf(FileLoggerOutputImpl).
|
|
61123
|
+
protoOf(FileLoggerOutputImpl).e9k = function (key, job, controller) {
|
|
61074
61124
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61075
|
-
this.
|
|
61125
|
+
this.g9u_1;
|
|
61076
61126
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
61077
|
-
var this_0 = this.
|
|
61127
|
+
var this_0 = this.h9u_1;
|
|
61078
61128
|
var value = this_0.b2(key);
|
|
61079
61129
|
var tmp;
|
|
61080
61130
|
if (value == null) {
|
|
@@ -61084,30 +61134,30 @@
|
|
|
61084
61134
|
} else {
|
|
61085
61135
|
tmp = value;
|
|
61086
61136
|
}
|
|
61087
|
-
var updatedModel = tmp.
|
|
61137
|
+
var updatedModel = tmp.n9u(VOID, controller, job);
|
|
61088
61138
|
// Inline function 'kotlin.collections.set' call
|
|
61089
|
-
this.
|
|
61139
|
+
this.h9u_1.l2(key, updatedModel);
|
|
61090
61140
|
};
|
|
61091
61141
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
61092
61142
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61093
|
-
this.
|
|
61143
|
+
this.g9u_1;
|
|
61094
61144
|
// Inline function 'kotlin.collections.forEach' call
|
|
61095
61145
|
// Inline function 'kotlin.collections.iterator' call
|
|
61096
|
-
var _iterator__ex2g4s = this.
|
|
61146
|
+
var _iterator__ex2g4s = this.h9u_1.u().l();
|
|
61097
61147
|
while (_iterator__ex2g4s.m()) {
|
|
61098
61148
|
var element = _iterator__ex2g4s.n();
|
|
61099
|
-
element.w().
|
|
61149
|
+
element.w().l9u();
|
|
61100
61150
|
}
|
|
61101
|
-
this.
|
|
61151
|
+
this.h9u_1.h2();
|
|
61102
61152
|
};
|
|
61103
61153
|
protoOf(FileLoggerOutputImpl).l51 = function (tag, message, payload) {
|
|
61104
|
-
if (!this.
|
|
61154
|
+
if (!this.f9u_1)
|
|
61105
61155
|
return Unit_instance;
|
|
61106
61156
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
61107
61157
|
log$default(this, tmp0_type, tag, message, payload);
|
|
61108
61158
|
};
|
|
61109
61159
|
protoOf(FileLoggerOutputImpl).m51 = function (tag, message, exception, payload) {
|
|
61110
|
-
if (!this.
|
|
61160
|
+
if (!this.f9u_1)
|
|
61111
61161
|
return Unit_instance;
|
|
61112
61162
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
61113
61163
|
var tmp;
|
|
@@ -61122,13 +61172,13 @@
|
|
|
61122
61172
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
61123
61173
|
};
|
|
61124
61174
|
protoOf(FileLoggerOutputImpl).p51 = function (tag, message, payload) {
|
|
61125
|
-
if (!this.
|
|
61175
|
+
if (!this.f9u_1)
|
|
61126
61176
|
return Unit_instance;
|
|
61127
61177
|
var tmp0_type = LogType_INFO_getInstance();
|
|
61128
61178
|
log(this, tmp0_type, tag, message, payload, null);
|
|
61129
61179
|
};
|
|
61130
61180
|
protoOf(FileLoggerOutputImpl).o51 = function (tag, message, exception, payload) {
|
|
61131
|
-
if (!this.
|
|
61181
|
+
if (!this.f9u_1)
|
|
61132
61182
|
return Unit_instance;
|
|
61133
61183
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
61134
61184
|
var tmp;
|
|
@@ -61143,7 +61193,7 @@
|
|
|
61143
61193
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
61144
61194
|
};
|
|
61145
61195
|
protoOf(FileLoggerOutputImpl).n51 = function (tag, message, exception, payload) {
|
|
61146
|
-
if (!this.
|
|
61196
|
+
if (!this.f9u_1)
|
|
61147
61197
|
return Unit_instance;
|
|
61148
61198
|
var tmp4_type = LogType_WARN_getInstance();
|
|
61149
61199
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -61683,9 +61733,9 @@
|
|
|
61683
61733
|
}
|
|
61684
61734
|
}
|
|
61685
61735
|
function GameHelperImpl(logger) {
|
|
61686
|
-
this.
|
|
61736
|
+
this.v9u_1 = logger;
|
|
61687
61737
|
}
|
|
61688
|
-
protoOf(GameHelperImpl).
|
|
61738
|
+
protoOf(GameHelperImpl).s9u = function (store, playerIds, includeBots) {
|
|
61689
61739
|
var state = store.state;
|
|
61690
61740
|
var tmp;
|
|
61691
61741
|
if (!state.m6v()) {
|
|
@@ -61731,7 +61781,7 @@
|
|
|
61731
61781
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
61732
61782
|
return copyToArray(destination_1);
|
|
61733
61783
|
};
|
|
61734
|
-
protoOf(GameHelperImpl).
|
|
61784
|
+
protoOf(GameHelperImpl).t9u = function (store, playerIds, includeBots) {
|
|
61735
61785
|
var state = store.state;
|
|
61736
61786
|
var tmp;
|
|
61737
61787
|
if (!state.m6v()) {
|
|
@@ -61902,10 +61952,10 @@
|
|
|
61902
61952
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
61903
61953
|
return copyToArray(destination);
|
|
61904
61954
|
};
|
|
61905
|
-
protoOf(GameHelperImpl).
|
|
61955
|
+
protoOf(GameHelperImpl).u9u = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
61906
61956
|
var roomMode = mapToRoomMode(mode);
|
|
61907
61957
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
61908
|
-
this.
|
|
61958
|
+
this.v9u_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
61909
61959
|
var options = Companion_instance_184.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
61910
61960
|
var playersMode = this.mapPlayers(players);
|
|
61911
61961
|
var pointsMode = this.mapPoints(points);
|
|
@@ -62340,40 +62390,40 @@
|
|
|
62340
62390
|
function getRandomAvatarData_0($this) {
|
|
62341
62391
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
62342
62392
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
62343
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
62393
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.z9u()), avatarSet);
|
|
62344
62394
|
}
|
|
62345
62395
|
function getAvatarUrlByIndex($this, data) {
|
|
62346
62396
|
return mapToPattern($this, data);
|
|
62347
62397
|
}
|
|
62348
62398
|
function getNicknameByIndex($this, data) {
|
|
62349
|
-
return data.
|
|
62399
|
+
return data.b9v_1.c9v(data.a9v_1);
|
|
62350
62400
|
}
|
|
62351
62401
|
function mapToPattern($this, data) {
|
|
62352
|
-
return 'debertz://raspberry.games/' + data.
|
|
62402
|
+
return 'debertz://raspberry.games/' + data.b9v_1.p2_1 + '/' + data.a9v_1;
|
|
62353
62403
|
}
|
|
62354
62404
|
function Companion_196() {
|
|
62355
62405
|
Companion_instance_201 = this;
|
|
62356
|
-
this.
|
|
62406
|
+
this.d9v_1 = 'debertz://raspberry.games';
|
|
62357
62407
|
var tmp = this;
|
|
62358
62408
|
// Inline function 'kotlin.arrayOf' call
|
|
62359
62409
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62360
62410
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62361
|
-
tmp.
|
|
62411
|
+
tmp.e9v_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
62362
62412
|
var tmp_0 = this;
|
|
62363
62413
|
// Inline function 'kotlin.arrayOf' call
|
|
62364
62414
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62365
62415
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62366
|
-
tmp_0.
|
|
62416
|
+
tmp_0.f9v_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
62367
62417
|
var tmp_1 = this;
|
|
62368
62418
|
// Inline function 'kotlin.arrayOf' call
|
|
62369
62419
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62370
62420
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62371
|
-
tmp_1.
|
|
62421
|
+
tmp_1.g9v_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
62372
62422
|
var tmp_2 = this;
|
|
62373
62423
|
// Inline function 'kotlin.arrayOf' call
|
|
62374
62424
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62375
62425
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62376
|
-
tmp_2.
|
|
62426
|
+
tmp_2.h9v_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
62377
62427
|
}
|
|
62378
62428
|
var Companion_instance_201;
|
|
62379
62429
|
function Companion_getInstance_203() {
|
|
@@ -62384,14 +62434,14 @@
|
|
|
62384
62434
|
function AvatarSet(name, ordinal) {
|
|
62385
62435
|
Enum.call(this, name, ordinal);
|
|
62386
62436
|
}
|
|
62387
|
-
protoOf(AvatarSet).
|
|
62437
|
+
protoOf(AvatarSet).z9u = function () {
|
|
62388
62438
|
var tmp;
|
|
62389
62439
|
switch (this.p2_1) {
|
|
62390
62440
|
case 0:
|
|
62391
|
-
tmp = Companion_getInstance_203().
|
|
62441
|
+
tmp = Companion_getInstance_203().f9v_1.length;
|
|
62392
62442
|
break;
|
|
62393
62443
|
case 1:
|
|
62394
|
-
tmp = Companion_getInstance_203().
|
|
62444
|
+
tmp = Companion_getInstance_203().h9v_1.length;
|
|
62395
62445
|
break;
|
|
62396
62446
|
default:
|
|
62397
62447
|
noWhenBranchMatchedException();
|
|
@@ -62399,14 +62449,14 @@
|
|
|
62399
62449
|
}
|
|
62400
62450
|
return tmp;
|
|
62401
62451
|
};
|
|
62402
|
-
protoOf(AvatarSet).
|
|
62452
|
+
protoOf(AvatarSet).c9v = function (index) {
|
|
62403
62453
|
var tmp;
|
|
62404
62454
|
switch (this.p2_1) {
|
|
62405
62455
|
case 0:
|
|
62406
|
-
tmp = Companion_getInstance_203().
|
|
62456
|
+
tmp = Companion_getInstance_203().f9v_1[index];
|
|
62407
62457
|
break;
|
|
62408
62458
|
case 1:
|
|
62409
|
-
tmp = Companion_getInstance_203().
|
|
62459
|
+
tmp = Companion_getInstance_203().h9v_1[index];
|
|
62410
62460
|
break;
|
|
62411
62461
|
default:
|
|
62412
62462
|
noWhenBranchMatchedException();
|
|
@@ -62415,8 +62465,8 @@
|
|
|
62415
62465
|
return tmp;
|
|
62416
62466
|
};
|
|
62417
62467
|
function AvatarData(index, avatarSet) {
|
|
62418
|
-
this.
|
|
62419
|
-
this.
|
|
62468
|
+
this.a9v_1 = index;
|
|
62469
|
+
this.b9v_1 = avatarSet;
|
|
62420
62470
|
}
|
|
62421
62471
|
function AvatarSet_ORIGIN_getInstance() {
|
|
62422
62472
|
AvatarSet_initEntries();
|
|
@@ -62429,7 +62479,7 @@
|
|
|
62429
62479
|
function GameResourcesImpl() {
|
|
62430
62480
|
Companion_getInstance_203();
|
|
62431
62481
|
}
|
|
62432
|
-
protoOf(GameResourcesImpl).
|
|
62482
|
+
protoOf(GameResourcesImpl).w9u = function (playerId, existingNicknames) {
|
|
62433
62483
|
return createUser(this, playerId, existingNicknames);
|
|
62434
62484
|
};
|
|
62435
62485
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -62470,45 +62520,45 @@
|
|
|
62470
62520
|
}
|
|
62471
62521
|
var WARN;
|
|
62472
62522
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
62473
|
-
this.
|
|
62523
|
+
this.i9v_1 = loggerCallback;
|
|
62474
62524
|
}
|
|
62475
62525
|
protoOf(LoggerCallbacksWrapperLoggerOutput).l51 = function (tag, message, payload) {
|
|
62476
|
-
this.
|
|
62526
|
+
this.i9v_1('debug', tag, message, null, payload);
|
|
62477
62527
|
};
|
|
62478
62528
|
protoOf(LoggerCallbacksWrapperLoggerOutput).m51 = function (tag, message, exception, payload) {
|
|
62479
|
-
this.
|
|
62529
|
+
this.i9v_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
62480
62530
|
};
|
|
62481
62531
|
protoOf(LoggerCallbacksWrapperLoggerOutput).p51 = function (tag, message, payload) {
|
|
62482
|
-
this.
|
|
62532
|
+
this.i9v_1('debug', tag, message, null, payload);
|
|
62483
62533
|
};
|
|
62484
62534
|
protoOf(LoggerCallbacksWrapperLoggerOutput).o51 = function (tag, message, exception, payload) {
|
|
62485
|
-
this.
|
|
62535
|
+
this.i9v_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
62486
62536
|
};
|
|
62487
62537
|
protoOf(LoggerCallbacksWrapperLoggerOutput).n51 = function (tag, message, exception, payload) {
|
|
62488
|
-
this.
|
|
62538
|
+
this.i9v_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
62489
62539
|
};
|
|
62490
62540
|
function ParserHelper() {
|
|
62491
62541
|
}
|
|
62492
62542
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
62493
|
-
this.
|
|
62494
|
-
this.
|
|
62543
|
+
this.j9v_1 = json;
|
|
62544
|
+
this.k9v_1 = encoderDecoderProvider;
|
|
62495
62545
|
}
|
|
62496
62546
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
62497
|
-
return this.
|
|
62547
|
+
return this.k9v_1.p91(mapToDto_23(action));
|
|
62498
62548
|
};
|
|
62499
62549
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
62500
|
-
return mapFromDto_21(this.
|
|
62550
|
+
return mapFromDto_21(this.k9v_1.t91(json), fromPlayerId);
|
|
62501
62551
|
};
|
|
62502
62552
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
62503
|
-
return this.
|
|
62553
|
+
return this.k9v_1.r91(mapToDto_100(action));
|
|
62504
62554
|
};
|
|
62505
62555
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
62506
62556
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
62507
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
62557
|
+
var this_0 = mapFromClientDtoListWithPayload(this.k9v_1.u91(json), playerId, engine);
|
|
62508
62558
|
return copyToArray(this_0);
|
|
62509
62559
|
};
|
|
62510
62560
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
62511
|
-
var tmp0 = this.
|
|
62561
|
+
var tmp0 = this.j9v_1;
|
|
62512
62562
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62513
62563
|
var value = mapToDto_35(round);
|
|
62514
62564
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62519,7 +62569,7 @@
|
|
|
62519
62569
|
return tmp0.ep(tmp$ret$1, value);
|
|
62520
62570
|
};
|
|
62521
62571
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
62522
|
-
var tmp0 = this.
|
|
62572
|
+
var tmp0 = this.j9v_1;
|
|
62523
62573
|
// Inline function 'kotlin.collections.map' call
|
|
62524
62574
|
var this_0 = round.items;
|
|
62525
62575
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -62541,7 +62591,7 @@
|
|
|
62541
62591
|
return tmp0.ep(tmp$ret$4, destination);
|
|
62542
62592
|
};
|
|
62543
62593
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
62544
|
-
var tmp0 = this.
|
|
62594
|
+
var tmp0 = this.j9v_1;
|
|
62545
62595
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62546
62596
|
var value = mapToDto_36(metadata);
|
|
62547
62597
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62552,7 +62602,7 @@
|
|
|
62552
62602
|
return tmp0.ep(tmp$ret$1, value);
|
|
62553
62603
|
};
|
|
62554
62604
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
62555
|
-
var tmp0 = this.
|
|
62605
|
+
var tmp0 = this.j9v_1;
|
|
62556
62606
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62557
62607
|
var value = mapToDto_84(config);
|
|
62558
62608
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62563,7 +62613,7 @@
|
|
|
62563
62613
|
return tmp0.ep(tmp$ret$1, value);
|
|
62564
62614
|
};
|
|
62565
62615
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
62566
|
-
var tmp0 = this.
|
|
62616
|
+
var tmp0 = this.j9v_1;
|
|
62567
62617
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62568
62618
|
var value = mapToDto_121(transition);
|
|
62569
62619
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62575,7 +62625,7 @@
|
|
|
62575
62625
|
};
|
|
62576
62626
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
62577
62627
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62578
|
-
var this_0 = this.
|
|
62628
|
+
var this_0 = this.j9v_1;
|
|
62579
62629
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62580
62630
|
var this_1 = this_0.ds();
|
|
62581
62631
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62586,7 +62636,7 @@
|
|
|
62586
62636
|
};
|
|
62587
62637
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
62588
62638
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62589
|
-
var this_0 = this.
|
|
62639
|
+
var this_0 = this.j9v_1;
|
|
62590
62640
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62591
62641
|
var this_1 = this_0.ds();
|
|
62592
62642
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62596,7 +62646,7 @@
|
|
|
62596
62646
|
return mapFromDto_124(tmp$ret$2);
|
|
62597
62647
|
};
|
|
62598
62648
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
62599
|
-
var tmp0 = this.
|
|
62649
|
+
var tmp0 = this.j9v_1;
|
|
62600
62650
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62601
62651
|
var value = mapToDto_153(table);
|
|
62602
62652
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62607,11 +62657,11 @@
|
|
|
62607
62657
|
return tmp0.ep(tmp$ret$1, value);
|
|
62608
62658
|
};
|
|
62609
62659
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
62610
|
-
return mapFromDto_89(this.
|
|
62660
|
+
return mapFromDto_89(this.k9v_1.s91(json));
|
|
62611
62661
|
};
|
|
62612
62662
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
62613
62663
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62614
|
-
var this_0 = this.
|
|
62664
|
+
var this_0 = this.j9v_1;
|
|
62615
62665
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62616
62666
|
var this_1 = this_0.ds();
|
|
62617
62667
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62624,16 +62674,16 @@
|
|
|
62624
62674
|
function RatingHelper() {
|
|
62625
62675
|
}
|
|
62626
62676
|
function RatingHelperImpl(userRatingInteractor) {
|
|
62627
|
-
this.
|
|
62677
|
+
this.l9v_1 = userRatingInteractor;
|
|
62628
62678
|
}
|
|
62629
62679
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
62630
|
-
return this.
|
|
62680
|
+
return this.l9v_1.x98(league, rating);
|
|
62631
62681
|
};
|
|
62632
62682
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
62633
|
-
return this.
|
|
62683
|
+
return this.l9v_1.z98(rating);
|
|
62634
62684
|
};
|
|
62635
62685
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
62636
|
-
return this.
|
|
62686
|
+
return this.l9v_1.y98();
|
|
62637
62687
|
};
|
|
62638
62688
|
function engineHelpersModule() {
|
|
62639
62689
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -62738,14 +62788,14 @@
|
|
|
62738
62788
|
return new GameResourcesImpl();
|
|
62739
62789
|
}
|
|
62740
62790
|
function _get_logger__rkp4sl_3($this) {
|
|
62741
|
-
var tmp0 = $this.
|
|
62791
|
+
var tmp0 = $this.n9v_1;
|
|
62742
62792
|
var tmp = KProperty1;
|
|
62743
62793
|
// Inline function 'kotlin.getValue' call
|
|
62744
62794
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
62745
62795
|
return tmp0.w();
|
|
62746
62796
|
}
|
|
62747
62797
|
function _get_di__ndbzja($this) {
|
|
62748
|
-
var tmp0 = $this.
|
|
62798
|
+
var tmp0 = $this.o9v_1;
|
|
62749
62799
|
var tmp = KProperty1;
|
|
62750
62800
|
// Inline function 'kotlin.getValue' call
|
|
62751
62801
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -62754,11 +62804,11 @@
|
|
|
62754
62804
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
62755
62805
|
return function () {
|
|
62756
62806
|
var tmp;
|
|
62757
|
-
if (this$0.
|
|
62807
|
+
if (this$0.m9v_1 == null) {
|
|
62758
62808
|
tmp = null;
|
|
62759
62809
|
} else {
|
|
62760
62810
|
// Inline function 'kotlin.let' call
|
|
62761
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
62811
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.m9v_1)]));
|
|
62762
62812
|
}
|
|
62763
62813
|
var tmp1_elvis_lhs = tmp;
|
|
62764
62814
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -62848,11 +62898,11 @@
|
|
|
62848
62898
|
}
|
|
62849
62899
|
function EngineHelpersFactory(loggerCallback) {
|
|
62850
62900
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
62851
|
-
this.
|
|
62901
|
+
this.m9v_1 = loggerCallback;
|
|
62852
62902
|
var tmp = this;
|
|
62853
|
-
tmp.
|
|
62903
|
+
tmp.n9v_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
62854
62904
|
var tmp_0 = this;
|
|
62855
|
-
tmp_0.
|
|
62905
|
+
tmp_0.o9v_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
62856
62906
|
var tmp_1 = this;
|
|
62857
62907
|
// Inline function 'org.kodein.di.instance' call
|
|
62858
62908
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -62861,7 +62911,7 @@
|
|
|
62861
62911
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
62862
62912
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
62863
62913
|
var tmp_4 = KProperty1;
|
|
62864
|
-
tmp_1.
|
|
62914
|
+
tmp_1.p9v_1 = tmp_3.c1h(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
62865
62915
|
var tmp_5 = this;
|
|
62866
62916
|
// Inline function 'org.kodein.di.instance' call
|
|
62867
62917
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -62870,7 +62920,7 @@
|
|
|
62870
62920
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
62871
62921
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
62872
62922
|
var tmp_8 = KProperty1;
|
|
62873
|
-
tmp_5.
|
|
62923
|
+
tmp_5.q9v_1 = tmp_7.c1h(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
62874
62924
|
var tmp_9 = this;
|
|
62875
62925
|
// Inline function 'org.kodein.di.instance' call
|
|
62876
62926
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -62879,7 +62929,7 @@
|
|
|
62879
62929
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
62880
62930
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
62881
62931
|
var tmp_12 = KProperty1;
|
|
62882
|
-
tmp_9.
|
|
62932
|
+
tmp_9.r9v_1 = tmp_11.c1h(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
62883
62933
|
var tmp_13 = this;
|
|
62884
62934
|
// Inline function 'org.kodein.di.instance' call
|
|
62885
62935
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -62888,31 +62938,31 @@
|
|
|
62888
62938
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
62889
62939
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
62890
62940
|
var tmp_16 = KProperty1;
|
|
62891
|
-
tmp_13.
|
|
62941
|
+
tmp_13.s9v_1 = tmp_15.c1h(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
62892
62942
|
}
|
|
62893
|
-
protoOf(EngineHelpersFactory).
|
|
62894
|
-
var tmp0 = this.
|
|
62943
|
+
protoOf(EngineHelpersFactory).t9v = function () {
|
|
62944
|
+
var tmp0 = this.p9v_1;
|
|
62895
62945
|
var tmp = KProperty1;
|
|
62896
62946
|
// Inline function 'kotlin.getValue' call
|
|
62897
62947
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
62898
62948
|
return tmp0.w();
|
|
62899
62949
|
};
|
|
62900
|
-
protoOf(EngineHelpersFactory).
|
|
62901
|
-
var tmp0 = this.
|
|
62950
|
+
protoOf(EngineHelpersFactory).u9v = function () {
|
|
62951
|
+
var tmp0 = this.q9v_1;
|
|
62902
62952
|
var tmp = KProperty1;
|
|
62903
62953
|
// Inline function 'kotlin.getValue' call
|
|
62904
62954
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
62905
62955
|
return tmp0.w();
|
|
62906
62956
|
};
|
|
62907
|
-
protoOf(EngineHelpersFactory).
|
|
62908
|
-
var tmp0 = this.
|
|
62957
|
+
protoOf(EngineHelpersFactory).v9v = function () {
|
|
62958
|
+
var tmp0 = this.r9v_1;
|
|
62909
62959
|
var tmp = KProperty1;
|
|
62910
62960
|
// Inline function 'kotlin.getValue' call
|
|
62911
62961
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
62912
62962
|
return tmp0.w();
|
|
62913
62963
|
};
|
|
62914
|
-
protoOf(EngineHelpersFactory).
|
|
62915
|
-
var tmp0 = this.
|
|
62964
|
+
protoOf(EngineHelpersFactory).w9v = function () {
|
|
62965
|
+
var tmp0 = this.s9v_1;
|
|
62916
62966
|
var tmp = KProperty1;
|
|
62917
62967
|
// Inline function 'kotlin.getValue' call
|
|
62918
62968
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -63648,7 +63698,7 @@
|
|
|
63648
63698
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
63649
63699
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
63650
63700
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
63651
|
-
protoOf(FileLoggerOutputImpl).
|
|
63701
|
+
protoOf(FileLoggerOutputImpl).x9l = observe$default;
|
|
63652
63702
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
63653
63703
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
63654
63704
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -63668,10 +63718,10 @@
|
|
|
63668
63718
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
63669
63719
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
63670
63720
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
63671
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
63672
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
63673
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
63674
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
63721
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).t9v);
|
|
63722
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).u9v);
|
|
63723
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).v9v);
|
|
63724
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).w9v);
|
|
63675
63725
|
//endregion
|
|
63676
63726
|
//region block: init
|
|
63677
63727
|
Companion_instance_5 = new Companion_0();
|