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