client_plugin_logic_deb 1.8.461 → 1.8.467
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/Logic_Debertz-client_plugin.js +2013 -2013
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +627 -681
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +6150 -6151
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +864 -864
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -359,8 +359,8 @@
|
|
|
359
359
|
var filterPlayerTurn = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
360
360
|
var GameStartReason = kotlin_io_raspberryapps_game_engine_core.$_$.w1;
|
|
361
361
|
var LoggerOutputDataDto = kotlin_io_raspberryapps_game_engine_core.$_$.q3;
|
|
362
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
363
362
|
var delay_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
363
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
364
364
|
var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
|
|
365
365
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
366
366
|
var Reason_FINISHED_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k5;
|
|
@@ -1466,28 +1466,27 @@
|
|
|
1466
1466
|
tmp = types;
|
|
1467
1467
|
}
|
|
1468
1468
|
types = tmp;
|
|
1469
|
-
return $super === VOID ? this.
|
|
1469
|
+
return $super === VOID ? this.qaz(loggerKey, types) : $super.qaz.call(this, loggerKey, types);
|
|
1470
1470
|
}
|
|
1471
|
-
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]
|
|
1471
|
+
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1472
1472
|
initMetadataForLambda(FileLoggerOutputImpl$observe$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
1473
1473
|
initMetadataForCoroutine($collectCOROUTINE$, CoroutineImpl);
|
|
1474
1474
|
initMetadataForClass(LoggerModel, 'LoggerModel', LoggerModel);
|
|
1475
1475
|
initMetadataForCompanion(Companion_201);
|
|
1476
1476
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
1477
1477
|
initMetadataForClass(FileLoggerOutputImpl$observe$$inlined$filter$1, VOID, VOID, VOID, [Flow], [1]);
|
|
1478
|
-
|
|
1479
|
-
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput], [1]);
|
|
1478
|
+
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput]);
|
|
1480
1479
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1481
1480
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1482
|
-
return $super === VOID ? this.
|
|
1481
|
+
return $super === VOID ? this.eb1(store, playerIds, includeBots) : $super.eb1.call(this, store, playerIds, includeBots);
|
|
1483
1482
|
}
|
|
1484
1483
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1485
1484
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1486
|
-
return $super === VOID ? this.
|
|
1485
|
+
return $super === VOID ? this.fb1(store, playerIds, includeBots) : $super.fb1.call(this, store, playerIds, includeBots);
|
|
1487
1486
|
}
|
|
1488
1487
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1489
1488
|
league = league === VOID ? null : league;
|
|
1490
|
-
return $super === VOID ? this.
|
|
1489
|
+
return $super === VOID ? this.gb1(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.gb1.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1491
1490
|
}
|
|
1492
1491
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1493
1492
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1500,7 +1499,7 @@
|
|
|
1500
1499
|
tmp = existingNicknames;
|
|
1501
1500
|
}
|
|
1502
1501
|
existingNicknames = tmp;
|
|
1503
|
-
return $super === VOID ? this.
|
|
1502
|
+
return $super === VOID ? this.ib1(playerId, existingNicknames) : $super.ib1.call(this, playerId, existingNicknames);
|
|
1504
1503
|
}
|
|
1505
1504
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1506
1505
|
initMetadataForCompanion(Companion_202);
|
|
@@ -59847,9 +59846,10 @@
|
|
|
59847
59846
|
l.$arity = 1;
|
|
59848
59847
|
return l;
|
|
59849
59848
|
}
|
|
59850
|
-
function GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda(this$0, $loggerKey, resultContinuation) {
|
|
59849
|
+
function GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda(this$0, $loggerKey, $controller, resultContinuation) {
|
|
59851
59850
|
this.gaq_1 = this$0;
|
|
59852
59851
|
this.haq_1 = $loggerKey;
|
|
59852
|
+
this.iaq_1 = $controller;
|
|
59853
59853
|
CoroutineImpl.call(this, resultContinuation);
|
|
59854
59854
|
}
|
|
59855
59855
|
protoOf(GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda).t2b = function ($this$withContext, $completion) {
|
|
@@ -59868,31 +59868,39 @@
|
|
|
59868
59868
|
var tmp = this.e9_1;
|
|
59869
59869
|
switch (tmp) {
|
|
59870
59870
|
case 0:
|
|
59871
|
-
this.f9_1 =
|
|
59872
|
-
|
|
59873
|
-
|
|
59874
|
-
|
|
59871
|
+
this.f9_1 = 4;
|
|
59872
|
+
this.e9_1 = 1;
|
|
59873
|
+
suspendResult = delay_0(this.gaq_1.qaq_1, this);
|
|
59874
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
59875
|
+
return suspendResult;
|
|
59876
|
+
}
|
|
59877
|
+
|
|
59878
|
+
continue $sm;
|
|
59879
|
+
case 1:
|
|
59880
|
+
this.gaq_1.naq_1.taq(this.haq_1);
|
|
59881
|
+
if (this.gaq_1.paq_1 && !(this.iaq_1 == null)) {
|
|
59882
|
+
this.e9_1 = 2;
|
|
59883
|
+
suspendResult = this.iaq_1.k7g(this);
|
|
59875
59884
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
59876
59885
|
return suspendResult;
|
|
59877
59886
|
}
|
|
59878
59887
|
continue $sm;
|
|
59879
59888
|
} else {
|
|
59880
|
-
this.
|
|
59881
|
-
this.e9_1 = 2;
|
|
59889
|
+
this.e9_1 = 3;
|
|
59882
59890
|
continue $sm;
|
|
59883
59891
|
}
|
|
59884
59892
|
|
|
59885
|
-
case 1:
|
|
59886
|
-
this.e9_1 = 2;
|
|
59887
|
-
continue $sm;
|
|
59888
59893
|
case 2:
|
|
59889
|
-
|
|
59894
|
+
this.e9_1 = 3;
|
|
59895
|
+
continue $sm;
|
|
59890
59896
|
case 3:
|
|
59897
|
+
return Unit_instance;
|
|
59898
|
+
case 4:
|
|
59891
59899
|
throw this.h9_1;
|
|
59892
59900
|
}
|
|
59893
59901
|
} catch ($p) {
|
|
59894
59902
|
var e = $p;
|
|
59895
|
-
if (this.f9_1 ===
|
|
59903
|
+
if (this.f9_1 === 4) {
|
|
59896
59904
|
throw e;
|
|
59897
59905
|
} else {
|
|
59898
59906
|
this.e9_1 = this.f9_1;
|
|
@@ -59902,12 +59910,12 @@
|
|
|
59902
59910
|
while (true);
|
|
59903
59911
|
};
|
|
59904
59912
|
protoOf(GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda).u2b = function ($this$withContext, completion) {
|
|
59905
|
-
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda(this.gaq_1, this.haq_1, completion);
|
|
59906
|
-
i.
|
|
59913
|
+
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda(this.gaq_1, this.haq_1, this.iaq_1, completion);
|
|
59914
|
+
i.jaq_1 = $this$withContext;
|
|
59907
59915
|
return i;
|
|
59908
59916
|
};
|
|
59909
|
-
function GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda_0(this$0, $loggerKey, resultContinuation) {
|
|
59910
|
-
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda(this$0, $loggerKey, resultContinuation);
|
|
59917
|
+
function GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda_0(this$0, $loggerKey, $controller, resultContinuation) {
|
|
59918
|
+
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda(this$0, $loggerKey, $controller, resultContinuation);
|
|
59911
59919
|
var l = function ($this$withContext, $completion) {
|
|
59912
59920
|
return i.t2b($this$withContext, $completion);
|
|
59913
59921
|
};
|
|
@@ -59915,13 +59923,13 @@
|
|
|
59915
59923
|
return l;
|
|
59916
59924
|
}
|
|
59917
59925
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
59918
|
-
this.
|
|
59926
|
+
this.uaq_1 = function_0;
|
|
59919
59927
|
}
|
|
59920
59928
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s26 = function (value, $completion) {
|
|
59921
|
-
return this.
|
|
59929
|
+
return this.uaq_1(value, $completion);
|
|
59922
59930
|
};
|
|
59923
59931
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s3 = function () {
|
|
59924
|
-
return this.
|
|
59932
|
+
return this.uaq_1;
|
|
59925
59933
|
};
|
|
59926
59934
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
59927
59935
|
var tmp;
|
|
@@ -59942,9 +59950,9 @@
|
|
|
59942
59950
|
return hashCode(this.s3());
|
|
59943
59951
|
};
|
|
59944
59952
|
function GameFileLoggerManager$createLogger$slambda($controller, this$0, $loggerKey, resultContinuation) {
|
|
59945
|
-
this.
|
|
59946
|
-
this.
|
|
59947
|
-
this.
|
|
59953
|
+
this.dar_1 = $controller;
|
|
59954
|
+
this.ear_1 = this$0;
|
|
59955
|
+
this.far_1 = $loggerKey;
|
|
59948
59956
|
CoroutineImpl.call(this, resultContinuation);
|
|
59949
59957
|
}
|
|
59950
59958
|
protoOf(GameFileLoggerManager$createLogger$slambda).t2b = function ($this$launchDefault, $completion) {
|
|
@@ -59965,7 +59973,7 @@
|
|
|
59965
59973
|
case 0:
|
|
59966
59974
|
this.f9_1 = 3;
|
|
59967
59975
|
this.e9_1 = 1;
|
|
59968
|
-
suspendResult = this.
|
|
59976
|
+
suspendResult = this.dar_1.i7g(this);
|
|
59969
59977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
59970
59978
|
return suspendResult;
|
|
59971
59979
|
}
|
|
@@ -59973,8 +59981,8 @@
|
|
|
59973
59981
|
continue $sm;
|
|
59974
59982
|
case 1:
|
|
59975
59983
|
this.e9_1 = 2;
|
|
59976
|
-
var tmp_0 = this.
|
|
59977
|
-
var tmp_1 = GameFileLoggerManager$createLogger$slambda$slambda_0(this.
|
|
59984
|
+
var tmp_0 = this.ear_1.naq_1.har(this.far_1);
|
|
59985
|
+
var tmp_1 = GameFileLoggerManager$createLogger$slambda$slambda_0(this.dar_1, null);
|
|
59978
59986
|
suspendResult = tmp_0.p25(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
59979
59987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
59980
59988
|
return suspendResult;
|
|
@@ -59998,8 +60006,8 @@
|
|
|
59998
60006
|
while (true);
|
|
59999
60007
|
};
|
|
60000
60008
|
protoOf(GameFileLoggerManager$createLogger$slambda).u2b = function ($this$launchDefault, completion) {
|
|
60001
|
-
var i = new GameFileLoggerManager$createLogger$slambda(this.
|
|
60002
|
-
i.
|
|
60009
|
+
var i = new GameFileLoggerManager$createLogger$slambda(this.dar_1, this.ear_1, this.far_1, completion);
|
|
60010
|
+
i.gar_1 = $this$launchDefault;
|
|
60003
60011
|
return i;
|
|
60004
60012
|
};
|
|
60005
60013
|
function GameFileLoggerManager$createLogger$slambda_0($controller, this$0, $loggerKey, resultContinuation) {
|
|
@@ -60010,9 +60018,10 @@
|
|
|
60010
60018
|
l.$arity = 1;
|
|
60011
60019
|
return l;
|
|
60012
60020
|
}
|
|
60013
|
-
function GameFileLoggerManager$destroyAndCompressLogger$slambda(this$0, $loggerKey, resultContinuation) {
|
|
60014
|
-
this.
|
|
60015
|
-
this.
|
|
60021
|
+
function GameFileLoggerManager$destroyAndCompressLogger$slambda(this$0, $loggerKey, $controller, resultContinuation) {
|
|
60022
|
+
this.qar_1 = this$0;
|
|
60023
|
+
this.rar_1 = $loggerKey;
|
|
60024
|
+
this.sar_1 = $controller;
|
|
60016
60025
|
CoroutineImpl.call(this, resultContinuation);
|
|
60017
60026
|
}
|
|
60018
60027
|
protoOf(GameFileLoggerManager$destroyAndCompressLogger$slambda).t2b = function ($this$launchDefault, $completion) {
|
|
@@ -60031,31 +60040,23 @@
|
|
|
60031
60040
|
var tmp = this.e9_1;
|
|
60032
60041
|
switch (tmp) {
|
|
60033
60042
|
case 0:
|
|
60034
|
-
this.f9_1 =
|
|
60043
|
+
this.f9_1 = 2;
|
|
60035
60044
|
this.e9_1 = 1;
|
|
60036
|
-
suspendResult = delay_0(this.par_1.paq_1, this);
|
|
60037
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
60038
|
-
return suspendResult;
|
|
60039
|
-
}
|
|
60040
|
-
|
|
60041
|
-
continue $sm;
|
|
60042
|
-
case 1:
|
|
60043
|
-
this.e9_1 = 2;
|
|
60044
60045
|
var tmp_0 = NonCancellable_getInstance();
|
|
60045
|
-
suspendResult = withContext(tmp_0, GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda_0(this.
|
|
60046
|
+
suspendResult = withContext(tmp_0, GameFileLoggerManager$destroyAndCompressLogger$slambda$slambda_0(this.qar_1, this.rar_1, this.sar_1, null), this);
|
|
60046
60047
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
60047
60048
|
return suspendResult;
|
|
60048
60049
|
}
|
|
60049
60050
|
|
|
60050
60051
|
continue $sm;
|
|
60051
|
-
case
|
|
60052
|
+
case 1:
|
|
60052
60053
|
return Unit_instance;
|
|
60053
|
-
case
|
|
60054
|
+
case 2:
|
|
60054
60055
|
throw this.h9_1;
|
|
60055
60056
|
}
|
|
60056
60057
|
} catch ($p) {
|
|
60057
60058
|
var e = $p;
|
|
60058
|
-
if (this.f9_1 ===
|
|
60059
|
+
if (this.f9_1 === 2) {
|
|
60059
60060
|
throw e;
|
|
60060
60061
|
} else {
|
|
60061
60062
|
this.e9_1 = this.f9_1;
|
|
@@ -60065,12 +60066,12 @@
|
|
|
60065
60066
|
while (true);
|
|
60066
60067
|
};
|
|
60067
60068
|
protoOf(GameFileLoggerManager$destroyAndCompressLogger$slambda).u2b = function ($this$launchDefault, completion) {
|
|
60068
|
-
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda(this.
|
|
60069
|
-
i.
|
|
60069
|
+
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda(this.qar_1, this.rar_1, this.sar_1, completion);
|
|
60070
|
+
i.tar_1 = $this$launchDefault;
|
|
60070
60071
|
return i;
|
|
60071
60072
|
};
|
|
60072
|
-
function GameFileLoggerManager$destroyAndCompressLogger$slambda_0(this$0, $loggerKey, resultContinuation) {
|
|
60073
|
-
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda(this$0, $loggerKey, resultContinuation);
|
|
60073
|
+
function GameFileLoggerManager$destroyAndCompressLogger$slambda_0(this$0, $loggerKey, $controller, resultContinuation) {
|
|
60074
|
+
var i = new GameFileLoggerManager$destroyAndCompressLogger$slambda(this$0, $loggerKey, $controller, resultContinuation);
|
|
60074
60075
|
var l = function ($this$launchDefault, $completion) {
|
|
60075
60076
|
return i.t2b($this$launchDefault, $completion);
|
|
60076
60077
|
};
|
|
@@ -60079,7 +60080,7 @@
|
|
|
60079
60080
|
}
|
|
60080
60081
|
function $waitForCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
60081
60082
|
CoroutineImpl.call(this, resultContinuation);
|
|
60082
|
-
this.
|
|
60083
|
+
this.cas_1 = _this__u8e3s4;
|
|
60083
60084
|
}
|
|
60084
60085
|
protoOf($waitForCOROUTINE$).m9 = function () {
|
|
60085
60086
|
var suspendResult = this.g9_1;
|
|
@@ -60089,9 +60090,9 @@
|
|
|
60089
60090
|
switch (tmp) {
|
|
60090
60091
|
case 0:
|
|
60091
60092
|
this.f9_1 = 3;
|
|
60092
|
-
var tmp0_safe_receiver = this.
|
|
60093
|
+
var tmp0_safe_receiver = this.cas_1.raq_1;
|
|
60093
60094
|
if (tmp0_safe_receiver == null) {
|
|
60094
|
-
this.
|
|
60095
|
+
this.das_1 = null;
|
|
60095
60096
|
this.e9_1 = 2;
|
|
60096
60097
|
continue $sm;
|
|
60097
60098
|
} else {
|
|
@@ -60105,7 +60106,7 @@
|
|
|
60105
60106
|
|
|
60106
60107
|
case 1:
|
|
60107
60108
|
var tmp_0 = this;
|
|
60108
|
-
tmp_0.
|
|
60109
|
+
tmp_0.das_1 = Unit_instance;
|
|
60109
60110
|
this.e9_1 = 2;
|
|
60110
60111
|
continue $sm;
|
|
60111
60112
|
case 2:
|
|
@@ -60125,27 +60126,38 @@
|
|
|
60125
60126
|
while (true);
|
|
60126
60127
|
};
|
|
60127
60128
|
function GameFileLoggerManager(currentPlayerId, loggerFactory, asyncProvider, loggerOutput, loggerKeyMapper, compressLogsEnabled, delayBeforeCompressLogs) {
|
|
60128
|
-
this.
|
|
60129
|
-
this.
|
|
60130
|
-
this.
|
|
60131
|
-
this.
|
|
60132
|
-
this.
|
|
60133
|
-
this.
|
|
60134
|
-
this.
|
|
60135
|
-
this.
|
|
60136
|
-
}
|
|
60137
|
-
protoOf(GameFileLoggerManager).cas = function (gameId, roomId) {
|
|
60138
|
-
var controller = this.kaq_1.y7e(gameId, roomId, this.jaq_1);
|
|
60139
|
-
var loggerKey = this.naq_1(gameId);
|
|
60140
|
-
var job = this.laq_1.p7c(VOID, GameFileLoggerManager$createLogger$slambda_0(controller, this, loggerKey, null));
|
|
60141
|
-
this.maq_1.das(loggerKey, job, controller);
|
|
60142
|
-
};
|
|
60143
|
-
protoOf(GameFileLoggerManager).eas = function (gameId) {
|
|
60144
|
-
var loggerKey = this.naq_1(gameId);
|
|
60129
|
+
this.kaq_1 = currentPlayerId;
|
|
60130
|
+
this.laq_1 = loggerFactory;
|
|
60131
|
+
this.maq_1 = asyncProvider;
|
|
60132
|
+
this.naq_1 = loggerOutput;
|
|
60133
|
+
this.oaq_1 = loggerKeyMapper;
|
|
60134
|
+
this.paq_1 = compressLogsEnabled;
|
|
60135
|
+
this.qaq_1 = delayBeforeCompressLogs;
|
|
60136
|
+
this.raq_1 = null;
|
|
60145
60137
|
var tmp = this;
|
|
60146
|
-
|
|
60138
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
60139
|
+
tmp.saq_1 = LinkedHashMap_init_$Create$();
|
|
60140
|
+
}
|
|
60141
|
+
protoOf(GameFileLoggerManager).eas = function (gameId, roomId) {
|
|
60142
|
+
var controller = this.laq_1.y7e(gameId, roomId, this.kaq_1);
|
|
60143
|
+
var loggerKey = this.oaq_1(gameId);
|
|
60144
|
+
// Inline function 'kotlin.collections.set' call
|
|
60145
|
+
this.saq_1.g3(loggerKey, controller);
|
|
60146
|
+
var job = this.maq_1.p7c(VOID, GameFileLoggerManager$createLogger$slambda_0(controller, this, loggerKey, null));
|
|
60147
|
+
this.naq_1.fas(loggerKey, job);
|
|
60148
|
+
};
|
|
60149
|
+
protoOf(GameFileLoggerManager).gas = function (gameId) {
|
|
60150
|
+
var loggerKey = this.oaq_1(gameId);
|
|
60151
|
+
this.saq_1.h3(loggerKey);
|
|
60152
|
+
this.naq_1.taq(loggerKey);
|
|
60153
|
+
};
|
|
60154
|
+
protoOf(GameFileLoggerManager).has = function (gameId) {
|
|
60155
|
+
var loggerKey = this.oaq_1(gameId);
|
|
60156
|
+
var controller = this.saq_1.h3(loggerKey);
|
|
60157
|
+
var tmp = this;
|
|
60158
|
+
tmp.raq_1 = this.maq_1.p7c(VOID, GameFileLoggerManager$destroyAndCompressLogger$slambda_0(this, loggerKey, controller, null));
|
|
60147
60159
|
};
|
|
60148
|
-
protoOf(GameFileLoggerManager).
|
|
60160
|
+
protoOf(GameFileLoggerManager).ias = function ($completion) {
|
|
60149
60161
|
var tmp = new $waitForCOROUTINE$(this, $completion);
|
|
60150
60162
|
tmp.g9_1 = Unit_instance;
|
|
60151
60163
|
tmp.h9_1 = null;
|
|
@@ -60160,7 +60172,7 @@
|
|
|
60160
60172
|
return new clearLogFilesMiddleware$$inlined$middlewareForActionType$1(asyncProvider, fileSystem, coreConfig);
|
|
60161
60173
|
}
|
|
60162
60174
|
function fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1($gameFileLoggerManager) {
|
|
60163
|
-
this.
|
|
60175
|
+
this.jas_1 = $gameFileLoggerManager;
|
|
60164
60176
|
}
|
|
60165
60177
|
protoOf(fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
60166
60178
|
return action instanceof MechanicAction;
|
|
@@ -60168,17 +60180,21 @@
|
|
|
60168
60180
|
protoOf(fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1).o7i = function (store, next, action) {
|
|
60169
60181
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
60170
60182
|
if (isInterface(action_0, FirstMechanicAction)) {
|
|
60171
|
-
this.
|
|
60183
|
+
this.jas_1.eas(action_0.id, action_0.id);
|
|
60172
60184
|
} else {
|
|
60173
60185
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
60174
|
-
this.
|
|
60175
|
-
this.
|
|
60186
|
+
this.jas_1.has(action_0.previousGameId);
|
|
60187
|
+
this.jas_1.eas(action_0.gameId, store.state.y7t().id);
|
|
60176
60188
|
} else {
|
|
60177
60189
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
60178
60190
|
var tmp1_safe_receiver = store.state.tableOrNull;
|
|
60179
60191
|
var gameId = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
60180
60192
|
if (!(gameId == null)) {
|
|
60181
|
-
|
|
60193
|
+
if (action_0.j9a_1) {
|
|
60194
|
+
this.jas_1.has(gameId);
|
|
60195
|
+
} else {
|
|
60196
|
+
this.jas_1.gas(gameId);
|
|
60197
|
+
}
|
|
60182
60198
|
}
|
|
60183
60199
|
}
|
|
60184
60200
|
}
|
|
@@ -60189,8 +60205,8 @@
|
|
|
60189
60205
|
return this.o7i(store, next, action);
|
|
60190
60206
|
};
|
|
60191
60207
|
function clearLogFilesMiddleware$o$handle$slambda($fileSystem, $coreConfig, resultContinuation) {
|
|
60192
|
-
this.
|
|
60193
|
-
this.
|
|
60208
|
+
this.sas_1 = $fileSystem;
|
|
60209
|
+
this.tas_1 = $coreConfig;
|
|
60194
60210
|
CoroutineImpl.call(this, resultContinuation);
|
|
60195
60211
|
}
|
|
60196
60212
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).t2b = function ($this$launchDefault, $completion) {
|
|
@@ -60211,7 +60227,7 @@
|
|
|
60211
60227
|
case 0:
|
|
60212
60228
|
this.f9_1 = 2;
|
|
60213
60229
|
this.e9_1 = 1;
|
|
60214
|
-
suspendResult = this.
|
|
60230
|
+
suspendResult = this.sas_1.w7e(this.tas_1.requireDirectoryPath, this);
|
|
60215
60231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
60216
60232
|
return suspendResult;
|
|
60217
60233
|
}
|
|
@@ -60234,8 +60250,8 @@
|
|
|
60234
60250
|
while (true);
|
|
60235
60251
|
};
|
|
60236
60252
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).u2b = function ($this$launchDefault, completion) {
|
|
60237
|
-
var i = new clearLogFilesMiddleware$o$handle$slambda(this.
|
|
60238
|
-
i.
|
|
60253
|
+
var i = new clearLogFilesMiddleware$o$handle$slambda(this.sas_1, this.tas_1, completion);
|
|
60254
|
+
i.uas_1 = $this$launchDefault;
|
|
60239
60255
|
return i;
|
|
60240
60256
|
};
|
|
60241
60257
|
function clearLogFilesMiddleware$o$handle$slambda_0($fileSystem, $coreConfig, resultContinuation) {
|
|
@@ -60247,16 +60263,16 @@
|
|
|
60247
60263
|
return l;
|
|
60248
60264
|
}
|
|
60249
60265
|
function clearLogFilesMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $fileSystem, $coreConfig) {
|
|
60250
|
-
this.
|
|
60251
|
-
this.
|
|
60252
|
-
this.
|
|
60266
|
+
this.vas_1 = $asyncProvider;
|
|
60267
|
+
this.was_1 = $fileSystem;
|
|
60268
|
+
this.xas_1 = $coreConfig;
|
|
60253
60269
|
}
|
|
60254
60270
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
60255
60271
|
return action instanceof ClearAction;
|
|
60256
60272
|
};
|
|
60257
60273
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).o7i = function (store, next, action) {
|
|
60258
60274
|
var action_0 = action instanceof ClearAction ? action : THROW_CCE();
|
|
60259
|
-
this.
|
|
60275
|
+
this.vas_1.p7c(VOID, clearLogFilesMiddleware$o$handle$slambda_0(this.was_1, this.xas_1, null));
|
|
60260
60276
|
next(action_0);
|
|
60261
60277
|
};
|
|
60262
60278
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).y7g = function (store, next, action) {
|
|
@@ -60368,20 +60384,20 @@
|
|
|
60368
60384
|
return null;
|
|
60369
60385
|
}
|
|
60370
60386
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $gameLifecycleInteractor) {
|
|
60371
|
-
this.
|
|
60372
|
-
this.
|
|
60373
|
-
this.
|
|
60374
|
-
this.
|
|
60375
|
-
this.
|
|
60387
|
+
this.yas_1 = $engineLogicConfig;
|
|
60388
|
+
this.zas_1 = $logger;
|
|
60389
|
+
this.aat_1 = $sceneRouter;
|
|
60390
|
+
this.bat_1 = $idsProvider;
|
|
60391
|
+
this.cat_1 = $gameLifecycleInteractor;
|
|
60376
60392
|
}
|
|
60377
60393
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
60378
60394
|
return action instanceof MechanicAction;
|
|
60379
60395
|
};
|
|
60380
60396
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).o7i = function (store, next, action) {
|
|
60381
60397
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
60382
|
-
if (this.
|
|
60398
|
+
if (this.yas_1.validateIfMainThread) {
|
|
60383
60399
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
60384
|
-
var logger = this.
|
|
60400
|
+
var logger = this.zas_1;
|
|
60385
60401
|
var tmp;
|
|
60386
60402
|
try {
|
|
60387
60403
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -60408,16 +60424,16 @@
|
|
|
60408
60424
|
if (equals(action_0.w99_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
60409
60425
|
tmp_2 = listOf(createHostDealerAct(action_0.z99_1));
|
|
60410
60426
|
} else {
|
|
60411
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
60427
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.aat_1.eaf(action_0.w99_1, true).raf_1));
|
|
60412
60428
|
}
|
|
60413
60429
|
tmp_1 = tmp_2;
|
|
60414
60430
|
} else {
|
|
60415
60431
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
60416
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
60432
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.aat_1.eaf(state.y7t().config, false).raf_1));
|
|
60417
60433
|
} else {
|
|
60418
60434
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
60419
60435
|
var tmp1_config = state.y7t().config;
|
|
60420
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
60436
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.aat_1.faf(tmp1_config, false, false).raf_1));
|
|
60421
60437
|
} else {
|
|
60422
60438
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
60423
60439
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.y7t().sceneInfo.e9d_1));
|
|
@@ -60425,7 +60441,7 @@
|
|
|
60425
60441
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
60426
60442
|
var tmp2_readyPlayerId = action_0.playerId;
|
|
60427
60443
|
var tmp3_table = state.y7t();
|
|
60428
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(tmp2_readyPlayerId, tmp3_table, this.
|
|
60444
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(tmp2_readyPlayerId, tmp3_table, this.bat_1, this.yas_1, this.zas_1, this.cat_1));
|
|
60429
60445
|
} else {
|
|
60430
60446
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
60431
60447
|
var tmp_3;
|
|
@@ -60577,8 +60593,8 @@
|
|
|
60577
60593
|
return new playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1(asyncProvider);
|
|
60578
60594
|
}
|
|
60579
60595
|
function playerTurnTimeoutMiddleware$o$handle$slambda($store, $timerTag, resultContinuation) {
|
|
60580
|
-
this.
|
|
60581
|
-
this.
|
|
60596
|
+
this.lat_1 = $store;
|
|
60597
|
+
this.mat_1 = $timerTag;
|
|
60582
60598
|
CoroutineImpl.call(this, resultContinuation);
|
|
60583
60599
|
}
|
|
60584
60600
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).t2b = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -60597,7 +60613,7 @@
|
|
|
60597
60613
|
var tmp = this.e9_1;
|
|
60598
60614
|
if (tmp === 0) {
|
|
60599
60615
|
this.f9_1 = 1;
|
|
60600
|
-
this.
|
|
60616
|
+
this.lat_1.dispatch(new AskBotAction(this.mat_1.oat_1, 'PlayerTurn'));
|
|
60601
60617
|
return Unit_instance;
|
|
60602
60618
|
} else if (tmp === 1) {
|
|
60603
60619
|
throw this.h9_1;
|
|
@@ -60609,8 +60625,8 @@
|
|
|
60609
60625
|
while (true);
|
|
60610
60626
|
};
|
|
60611
60627
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).u2b = function ($this$launchDefaultWithLock, completion) {
|
|
60612
|
-
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.
|
|
60613
|
-
i.
|
|
60628
|
+
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.lat_1, this.mat_1, completion);
|
|
60629
|
+
i.nat_1 = $this$launchDefaultWithLock;
|
|
60614
60630
|
return i;
|
|
60615
60631
|
};
|
|
60616
60632
|
function playerTurnTimeoutMiddleware$o$handle$slambda_0($store, $timerTag, resultContinuation) {
|
|
@@ -60622,7 +60638,7 @@
|
|
|
60622
60638
|
return l;
|
|
60623
60639
|
}
|
|
60624
60640
|
function playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1($asyncProvider) {
|
|
60625
|
-
this.
|
|
60641
|
+
this.rat_1 = $asyncProvider;
|
|
60626
60642
|
}
|
|
60627
60643
|
protoOf(playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
60628
60644
|
return action instanceof TimerTickAction;
|
|
@@ -60631,7 +60647,7 @@
|
|
|
60631
60647
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
60632
60648
|
var timerTag = action_0.v7g_1;
|
|
60633
60649
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
60634
|
-
this.
|
|
60650
|
+
this.rat_1.r7c(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
|
|
60635
60651
|
}
|
|
60636
60652
|
next(action_0);
|
|
60637
60653
|
};
|
|
@@ -60648,12 +60664,12 @@
|
|
|
60648
60664
|
}
|
|
60649
60665
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
60650
60666
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
60651
|
-
this.
|
|
60652
|
-
this.
|
|
60653
|
-
this.
|
|
60667
|
+
this.oat_1 = playersIds;
|
|
60668
|
+
this.pat_1 = tag;
|
|
60669
|
+
this.qat_1 = afterReconnection;
|
|
60654
60670
|
}
|
|
60655
60671
|
protoOf(PlayerTurnTimerTag).s75 = function () {
|
|
60656
|
-
return single(this.
|
|
60672
|
+
return single(this.oat_1);
|
|
60657
60673
|
};
|
|
60658
60674
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
60659
60675
|
if (this === other)
|
|
@@ -60662,13 +60678,13 @@
|
|
|
60662
60678
|
return false;
|
|
60663
60679
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
60664
60680
|
THROW_CCE();
|
|
60665
|
-
return equals(this.
|
|
60681
|
+
return equals(this.oat_1, other.oat_1);
|
|
60666
60682
|
};
|
|
60667
60683
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
60668
|
-
return hashCode(this.
|
|
60684
|
+
return hashCode(this.oat_1);
|
|
60669
60685
|
};
|
|
60670
60686
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
60671
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
60687
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.oat_1) + ', tag=' + this.pat_1 + ', afterReconnection=' + this.qat_1 + ')';
|
|
60672
60688
|
};
|
|
60673
60689
|
function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
|
|
60674
60690
|
isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
|
|
@@ -60703,10 +60719,10 @@
|
|
|
60703
60719
|
return tmp;
|
|
60704
60720
|
}
|
|
60705
60721
|
function playerTurnTimerStartMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
60706
|
-
this.
|
|
60707
|
-
this.
|
|
60708
|
-
this.
|
|
60709
|
-
this.
|
|
60722
|
+
this.sat_1 = $isEnableTimerForPlayer;
|
|
60723
|
+
this.tat_1 = $playerTurnInteractor;
|
|
60724
|
+
this.uat_1 = $botConfig;
|
|
60725
|
+
this.vat_1 = $mergeTimers;
|
|
60710
60726
|
}
|
|
60711
60727
|
protoOf(playerTurnTimerStartMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
60712
60728
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -60722,14 +60738,14 @@
|
|
|
60722
60738
|
var _iterator__ex2g4s = tmp0.t();
|
|
60723
60739
|
while (_iterator__ex2g4s.u()) {
|
|
60724
60740
|
var element = _iterator__ex2g4s.v();
|
|
60725
|
-
if (this.
|
|
60741
|
+
if (this.sat_1(element)) {
|
|
60726
60742
|
destination.e1(element);
|
|
60727
60743
|
}
|
|
60728
60744
|
}
|
|
60729
60745
|
var startTimerForPlayers = destination;
|
|
60730
60746
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
60731
60747
|
if (!startTimerForPlayers.r()) {
|
|
60732
|
-
var playerTurnModel = this.
|
|
60748
|
+
var playerTurnModel = this.tat_1.ead(action_0, table);
|
|
60733
60749
|
if (!(playerTurnModel == null)) {
|
|
60734
60750
|
// Inline function 'kotlin.collections.map' call
|
|
60735
60751
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -60737,11 +60753,11 @@
|
|
|
60737
60753
|
var _iterator__ex2g4s_0 = startTimerForPlayers.t();
|
|
60738
60754
|
while (_iterator__ex2g4s_0.u()) {
|
|
60739
60755
|
var item = _iterator__ex2g4s_0.v();
|
|
60740
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
60756
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.uat_1.isDelayForBot, this.uat_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
60741
60757
|
destination_0.e1(tmp$ret$4);
|
|
60742
60758
|
}
|
|
60743
60759
|
var timeForPlayers = destination_0;
|
|
60744
|
-
if (this.
|
|
60760
|
+
if (this.vat_1) {
|
|
60745
60761
|
// Inline function 'kotlin.collections.groupBy' call
|
|
60746
60762
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
60747
60763
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -60815,14 +60831,14 @@
|
|
|
60815
60831
|
return this.o7i(store, next, action);
|
|
60816
60832
|
};
|
|
60817
60833
|
function playerTurnTimerStopMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
60818
|
-
this.
|
|
60834
|
+
this.wat_1 = $isEnableBotForPlayer;
|
|
60819
60835
|
}
|
|
60820
60836
|
protoOf(playerTurnTimerStopMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
60821
60837
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
60822
60838
|
};
|
|
60823
60839
|
protoOf(playerTurnTimerStopMiddleware$$inlined$middlewareForActionType$1).o7i = function (store, next, action) {
|
|
60824
60840
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
60825
|
-
if (this.
|
|
60841
|
+
if (this.wat_1(action_0.playerId)) {
|
|
60826
60842
|
var table = store.state.y7t();
|
|
60827
60843
|
var player = getPlayer(table.players, action_0.playerId);
|
|
60828
60844
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -60843,7 +60859,7 @@
|
|
|
60843
60859
|
var _iterator__ex2g4s_0 = destination.t();
|
|
60844
60860
|
while (_iterator__ex2g4s_0.u()) {
|
|
60845
60861
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
60846
|
-
if (element_0.
|
|
60862
|
+
if (element_0.oat_1.m2(action_0.playerId) && element_0.pat_1 === player.m7x_1.l78()) {
|
|
60847
60863
|
tmp$ret$3 = element_0;
|
|
60848
60864
|
break $l$block;
|
|
60849
60865
|
}
|
|
@@ -60865,8 +60881,8 @@
|
|
|
60865
60881
|
return new clearOnFinishMiddleware$$inlined$middlewareForActionType$1(asyncProvider, operationsToWait);
|
|
60866
60882
|
}
|
|
60867
60883
|
function clearOnFinishMiddleware$o$handle$slambda($operationsToWait, $store, resultContinuation) {
|
|
60868
|
-
this.
|
|
60869
|
-
this.
|
|
60884
|
+
this.fau_1 = $operationsToWait;
|
|
60885
|
+
this.gau_1 = $store;
|
|
60870
60886
|
CoroutineImpl.call(this, resultContinuation);
|
|
60871
60887
|
}
|
|
60872
60888
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).t2b = function ($this$launchDefault, $completion) {
|
|
@@ -60886,18 +60902,18 @@
|
|
|
60886
60902
|
switch (tmp) {
|
|
60887
60903
|
case 0:
|
|
60888
60904
|
this.f9_1 = 4;
|
|
60889
|
-
this.
|
|
60905
|
+
this.iau_1 = this.fau_1.t();
|
|
60890
60906
|
this.e9_1 = 1;
|
|
60891
60907
|
continue $sm;
|
|
60892
60908
|
case 1:
|
|
60893
|
-
if (!this.
|
|
60909
|
+
if (!this.iau_1.u()) {
|
|
60894
60910
|
this.e9_1 = 3;
|
|
60895
60911
|
continue $sm;
|
|
60896
60912
|
}
|
|
60897
60913
|
|
|
60898
|
-
var element = this.
|
|
60914
|
+
var element = this.iau_1.v();
|
|
60899
60915
|
this.e9_1 = 2;
|
|
60900
|
-
suspendResult = element.
|
|
60916
|
+
suspendResult = element.ias(this);
|
|
60901
60917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
60902
60918
|
return suspendResult;
|
|
60903
60919
|
}
|
|
@@ -60907,8 +60923,8 @@
|
|
|
60907
60923
|
this.e9_1 = 1;
|
|
60908
60924
|
continue $sm;
|
|
60909
60925
|
case 3:
|
|
60910
|
-
var tmp_0 = this.
|
|
60911
|
-
var tmp0_safe_receiver = this.
|
|
60926
|
+
var tmp_0 = this.gau_1.dispatch;
|
|
60927
|
+
var tmp0_safe_receiver = this.gau_1.state.y7s_1;
|
|
60912
60928
|
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q9f_1));
|
|
60913
60929
|
return Unit_instance;
|
|
60914
60930
|
case 4:
|
|
@@ -60926,8 +60942,8 @@
|
|
|
60926
60942
|
while (true);
|
|
60927
60943
|
};
|
|
60928
60944
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).u2b = function ($this$launchDefault, completion) {
|
|
60929
|
-
var i = new clearOnFinishMiddleware$o$handle$slambda(this.
|
|
60930
|
-
i.
|
|
60945
|
+
var i = new clearOnFinishMiddleware$o$handle$slambda(this.fau_1, this.gau_1, completion);
|
|
60946
|
+
i.hau_1 = $this$launchDefault;
|
|
60931
60947
|
return i;
|
|
60932
60948
|
};
|
|
60933
60949
|
function clearOnFinishMiddleware$o$handle$slambda_0($operationsToWait, $store, resultContinuation) {
|
|
@@ -60939,15 +60955,15 @@
|
|
|
60939
60955
|
return l;
|
|
60940
60956
|
}
|
|
60941
60957
|
function clearOnFinishMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $operationsToWait) {
|
|
60942
|
-
this.
|
|
60943
|
-
this.
|
|
60958
|
+
this.jau_1 = $asyncProvider;
|
|
60959
|
+
this.kau_1 = $operationsToWait;
|
|
60944
60960
|
}
|
|
60945
60961
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
60946
60962
|
return action instanceof FinishGameMechanicAction;
|
|
60947
60963
|
};
|
|
60948
60964
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).o7i = function (store, next, action) {
|
|
60949
60965
|
next(action instanceof FinishGameMechanicAction ? action : THROW_CCE());
|
|
60950
|
-
this.
|
|
60966
|
+
this.jau_1.p7c(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.kau_1, store, null));
|
|
60951
60967
|
};
|
|
60952
60968
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).y7g = function (store, next, action) {
|
|
60953
60969
|
return this.o7i(store, next, action);
|
|
@@ -60957,12 +60973,12 @@
|
|
|
60957
60973
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
60958
60974
|
}
|
|
60959
60975
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
60960
|
-
this.
|
|
60961
|
-
this.
|
|
60962
|
-
this.
|
|
60963
|
-
this.
|
|
60964
|
-
this.
|
|
60965
|
-
this.
|
|
60976
|
+
this.tau_1 = $action;
|
|
60977
|
+
this.uau_1 = $sceneFactory;
|
|
60978
|
+
this.vau_1 = $table;
|
|
60979
|
+
this.wau_1 = $router;
|
|
60980
|
+
this.xau_1 = $store;
|
|
60981
|
+
this.yau_1 = $sceneValidationInteractor;
|
|
60966
60982
|
CoroutineImpl.call(this, resultContinuation);
|
|
60967
60983
|
}
|
|
60968
60984
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).t2b = function ($this$launchDefault, $completion) {
|
|
@@ -60982,10 +60998,10 @@
|
|
|
60982
60998
|
switch (tmp) {
|
|
60983
60999
|
case 0:
|
|
60984
61000
|
this.f9_1 = 3;
|
|
60985
|
-
var tmp0_subject = this.
|
|
61001
|
+
var tmp0_subject = this.tau_1;
|
|
60986
61002
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
60987
61003
|
this.e9_1 = 1;
|
|
60988
|
-
suspendResult = this.
|
|
61004
|
+
suspendResult = this.uau_1.aaf(this.tau_1.vai_1, this.vau_1, this);
|
|
60989
61005
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
60990
61006
|
return suspendResult;
|
|
60991
61007
|
}
|
|
@@ -60993,37 +61009,37 @@
|
|
|
60993
61009
|
} else {
|
|
60994
61010
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
60995
61011
|
var tmp_0 = this;
|
|
60996
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
61012
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.vau_1.players));
|
|
60997
61013
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
60998
|
-
var nextSceneCommand = this.
|
|
61014
|
+
var nextSceneCommand = this.wau_1.laf(this.tau_1.rai_1, !(gameWinnerPlayerId == null), false, this.vau_1.config);
|
|
60999
61015
|
var tmp_1;
|
|
61000
61016
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
61001
61017
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.raf_1));
|
|
61002
61018
|
} else {
|
|
61003
61019
|
noWhenBranchMatchedException();
|
|
61004
61020
|
}
|
|
61005
|
-
tmp_0.
|
|
61021
|
+
tmp_0.aav_1 = tmp_1;
|
|
61006
61022
|
this.e9_1 = 2;
|
|
61007
61023
|
continue $sm;
|
|
61008
61024
|
} else {
|
|
61009
61025
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
61010
61026
|
var tmp_2 = this;
|
|
61011
|
-
this.
|
|
61012
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
61013
|
-
tmp_2.
|
|
61027
|
+
this.yau_1.iaf(this.xau_1.state.z7s_1, 'Timers are not empty before scene act ' + this.tau_1.sai_1 + ', ' + this.tau_1.tai_1);
|
|
61028
|
+
var mechanicAction = new SceneActMechanicAction(this.tau_1.sai_1, this.tau_1.tai_1, this.tau_1.uai_1);
|
|
61029
|
+
tmp_2.aav_1 = listOf(mechanicAction);
|
|
61014
61030
|
this.e9_1 = 2;
|
|
61015
61031
|
continue $sm;
|
|
61016
61032
|
} else {
|
|
61017
61033
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
61018
61034
|
var tmp_3 = this;
|
|
61019
|
-
var navigationCommand = this.
|
|
61035
|
+
var navigationCommand = this.wau_1.naf(this.tau_1.wai_1, this.vau_1);
|
|
61020
61036
|
var tmp_4;
|
|
61021
61037
|
if (navigationCommand instanceof FinishActNext) {
|
|
61022
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
61038
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.vau_1.sceneInfo.e9d_1));
|
|
61023
61039
|
} else {
|
|
61024
61040
|
if (navigationCommand instanceof MoveActNext) {
|
|
61025
61041
|
var tmp9_actId = navigationCommand.taf_1;
|
|
61026
|
-
var tmp0 = this.
|
|
61042
|
+
var tmp0 = this.vau_1.sceneInfo.h9d_1;
|
|
61027
61043
|
var tmp$ret$2;
|
|
61028
61044
|
l$ret$3: do {
|
|
61029
61045
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -61035,13 +61051,13 @@
|
|
|
61035
61051
|
while (false);
|
|
61036
61052
|
var tmp10_sceneData = tmp$ret$2;
|
|
61037
61053
|
var tmp11_payload = navigationCommand.uaf_1;
|
|
61038
|
-
var actData = this.
|
|
61039
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
61054
|
+
var actData = this.uau_1.baf(tmp9_actId, tmp10_sceneData, tmp11_payload, this.vau_1);
|
|
61055
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.vau_1.sceneInfo.e9d_1, navigationCommand.taf_1, actData));
|
|
61040
61056
|
} else {
|
|
61041
61057
|
noWhenBranchMatchedException();
|
|
61042
61058
|
}
|
|
61043
61059
|
}
|
|
61044
|
-
tmp_3.
|
|
61060
|
+
tmp_3.aav_1 = tmp_4;
|
|
61045
61061
|
this.e9_1 = 2;
|
|
61046
61062
|
continue $sm;
|
|
61047
61063
|
} else {
|
|
@@ -61055,19 +61071,19 @@
|
|
|
61055
61071
|
break;
|
|
61056
61072
|
case 1:
|
|
61057
61073
|
var sceneData = suspendResult;
|
|
61058
|
-
var navigationActCommand = this.
|
|
61074
|
+
var navigationActCommand = this.wau_1.kaf(sceneData, this.vau_1);
|
|
61059
61075
|
var tmp_6;
|
|
61060
61076
|
if (navigationActCommand == null) {
|
|
61061
61077
|
tmp_6 = null;
|
|
61062
61078
|
} else {
|
|
61063
61079
|
var tmp0_actId = navigationActCommand.taf_1;
|
|
61064
61080
|
var tmp1_payload = navigationActCommand.uaf_1;
|
|
61065
|
-
tmp_6 = this.
|
|
61081
|
+
tmp_6 = this.uau_1.baf(tmp0_actId, sceneData, tmp1_payload, this.vau_1);
|
|
61066
61082
|
}
|
|
61067
61083
|
|
|
61068
61084
|
var actData_0 = tmp_6;
|
|
61069
|
-
var state = this.
|
|
61070
|
-
this.
|
|
61085
|
+
var state = this.xau_1.state;
|
|
61086
|
+
this.yau_1.iaf(state.z7s_1, 'Timers are not empty before scene ' + this.tau_1.vai_1);
|
|
61071
61087
|
var tmp_7;
|
|
61072
61088
|
if (equals(state.y7t().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
61073
61089
|
var tmp2_safe_receiver = state.y7t().sceneInfo.i9d_1;
|
|
@@ -61093,18 +61109,18 @@
|
|
|
61093
61109
|
}
|
|
61094
61110
|
|
|
61095
61111
|
var currentTurnPlayerId = tmp_7;
|
|
61096
|
-
var tmp5_sceneId = this.
|
|
61112
|
+
var tmp5_sceneId = this.tau_1.vai_1;
|
|
61097
61113
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
61098
61114
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
61099
|
-
this.
|
|
61115
|
+
this.aav_1 = listOfNotNull_0(mechanicAction_0);
|
|
61100
61116
|
this.e9_1 = 2;
|
|
61101
61117
|
continue $sm;
|
|
61102
61118
|
case 2:
|
|
61103
|
-
var navigationActions = this.
|
|
61119
|
+
var navigationActions = this.aav_1;
|
|
61104
61120
|
var _iterator__ex2g4s = navigationActions.t();
|
|
61105
61121
|
while (_iterator__ex2g4s.u()) {
|
|
61106
61122
|
var element = _iterator__ex2g4s.v();
|
|
61107
|
-
this.
|
|
61123
|
+
this.xau_1.dispatch(element);
|
|
61108
61124
|
}
|
|
61109
61125
|
|
|
61110
61126
|
return Unit_instance;
|
|
@@ -61123,8 +61139,8 @@
|
|
|
61123
61139
|
while (true);
|
|
61124
61140
|
};
|
|
61125
61141
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).u2b = function ($this$launchDefault, completion) {
|
|
61126
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.
|
|
61127
|
-
i.
|
|
61142
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.tau_1, this.uau_1, this.vau_1, this.wau_1, this.xau_1, this.yau_1, completion);
|
|
61143
|
+
i.zau_1 = $this$launchDefault;
|
|
61128
61144
|
return i;
|
|
61129
61145
|
};
|
|
61130
61146
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -61136,10 +61152,10 @@
|
|
|
61136
61152
|
return l;
|
|
61137
61153
|
}
|
|
61138
61154
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
61139
|
-
this.
|
|
61140
|
-
this.
|
|
61141
|
-
this.
|
|
61142
|
-
this.
|
|
61155
|
+
this.bav_1 = $asyncProvider;
|
|
61156
|
+
this.cav_1 = $sceneFactory;
|
|
61157
|
+
this.dav_1 = $router;
|
|
61158
|
+
this.eav_1 = $sceneValidationInteractor;
|
|
61143
61159
|
}
|
|
61144
61160
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61145
61161
|
return action instanceof SceneLifecycleAction;
|
|
@@ -61148,7 +61164,7 @@
|
|
|
61148
61164
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
61149
61165
|
var table = store.state.y7t();
|
|
61150
61166
|
next(action_0);
|
|
61151
|
-
this.
|
|
61167
|
+
this.bav_1.p7c(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.cav_1, table, this.dav_1, store, this.eav_1, null));
|
|
61152
61168
|
};
|
|
61153
61169
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).y7g = function (store, next, action) {
|
|
61154
61170
|
return this.o7i(store, next, action);
|
|
@@ -61194,7 +61210,7 @@
|
|
|
61194
61210
|
return new checkBotsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
61195
61211
|
}
|
|
61196
61212
|
function checkBotsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
61197
|
-
this.
|
|
61213
|
+
this.fav_1 = $logger;
|
|
61198
61214
|
}
|
|
61199
61215
|
protoOf(checkBotsMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61200
61216
|
return action instanceof SceneMechanicAction;
|
|
@@ -61242,7 +61258,7 @@
|
|
|
61242
61258
|
var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.f77_1);
|
|
61243
61259
|
destination.e1(tmp$ret$2);
|
|
61244
61260
|
}
|
|
61245
|
-
this.
|
|
61261
|
+
this.fav_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
|
|
61246
61262
|
}
|
|
61247
61263
|
}
|
|
61248
61264
|
next(action_0);
|
|
@@ -61255,7 +61271,7 @@
|
|
|
61255
61271
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
61256
61272
|
}
|
|
61257
61273
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
61258
|
-
this.
|
|
61274
|
+
this.gav_1 = $logger;
|
|
61259
61275
|
}
|
|
61260
61276
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61261
61277
|
return action instanceof PutCardMechanicAction;
|
|
@@ -61288,7 +61304,7 @@
|
|
|
61288
61304
|
var bribes = destination;
|
|
61289
61305
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
61290
61306
|
if (!bribes.r()) {
|
|
61291
|
-
this.
|
|
61307
|
+
this.gav_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.m9b_1.toString() + ', bribes = ' + toString(bribes));
|
|
61292
61308
|
}
|
|
61293
61309
|
}
|
|
61294
61310
|
next(action_0);
|
|
@@ -61301,7 +61317,7 @@
|
|
|
61301
61317
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
61302
61318
|
}
|
|
61303
61319
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
61304
|
-
this.
|
|
61320
|
+
this.hav_1 = $logger;
|
|
61305
61321
|
}
|
|
61306
61322
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61307
61323
|
return action instanceof SceneMechanicAction;
|
|
@@ -61518,7 +61534,7 @@
|
|
|
61518
61534
|
}
|
|
61519
61535
|
var notValidMessage = tmp;
|
|
61520
61536
|
if (!(notValidMessage == null)) {
|
|
61521
|
-
this.
|
|
61537
|
+
this.hav_1.w('Validation', toString_0(notValidMessage));
|
|
61522
61538
|
}
|
|
61523
61539
|
}
|
|
61524
61540
|
}
|
|
@@ -61606,7 +61622,7 @@
|
|
|
61606
61622
|
};
|
|
61607
61623
|
}
|
|
61608
61624
|
function gameIsNotFinishedTimeoutMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
61609
|
-
this.
|
|
61625
|
+
this.iav_1 = $logger;
|
|
61610
61626
|
}
|
|
61611
61627
|
protoOf(gameIsNotFinishedTimeoutMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61612
61628
|
return action instanceof TimerTickAction;
|
|
@@ -61616,7 +61632,7 @@
|
|
|
61616
61632
|
next(action_0);
|
|
61617
61633
|
var tmp = action_0.v7g_1;
|
|
61618
61634
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
61619
|
-
this.
|
|
61635
|
+
this.iav_1.w('Validation', 'gameIsNotFinishedTimeoutMiddleware: finish event is not received');
|
|
61620
61636
|
store.dispatch(new FinishGameMechanicAction(store.state.vaf().p9f_1, store.state.y7t().isGameFinished));
|
|
61621
61637
|
}
|
|
61622
61638
|
};
|
|
@@ -61681,7 +61697,7 @@
|
|
|
61681
61697
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
61682
61698
|
}
|
|
61683
61699
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
61684
|
-
this.
|
|
61700
|
+
this.jav_1 = $logger;
|
|
61685
61701
|
}
|
|
61686
61702
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61687
61703
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -61689,7 +61705,7 @@
|
|
|
61689
61705
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).o7i = function (store, next, action) {
|
|
61690
61706
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
61691
61707
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
61692
|
-
this.
|
|
61708
|
+
this.jav_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
61693
61709
|
}
|
|
61694
61710
|
next(action_0);
|
|
61695
61711
|
};
|
|
@@ -61705,7 +61721,7 @@
|
|
|
61705
61721
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
61706
61722
|
}
|
|
61707
61723
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
61708
|
-
this.
|
|
61724
|
+
this.kav_1 = $logger;
|
|
61709
61725
|
}
|
|
61710
61726
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61711
61727
|
return action instanceof SceneMechanicAction;
|
|
@@ -61716,7 +61732,7 @@
|
|
|
61716
61732
|
if (state.a7u()) {
|
|
61717
61733
|
var sceneInfo = state.y7t().sceneInfo;
|
|
61718
61734
|
if (!get_isWaitingScene(sceneInfo.e9d_1) && Companion_instance_5.h7u(sceneInfo.e9d_1, action_0.p9a_1) && equals(sceneInfo.h9d_1, action_0.sceneData)) {
|
|
61719
|
-
this.
|
|
61735
|
+
this.kav_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
61720
61736
|
}
|
|
61721
61737
|
}
|
|
61722
61738
|
next(action_0);
|
|
@@ -61725,7 +61741,7 @@
|
|
|
61725
61741
|
return this.o7i(store, next, action);
|
|
61726
61742
|
};
|
|
61727
61743
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
61728
|
-
this.
|
|
61744
|
+
this.lav_1 = $logger;
|
|
61729
61745
|
}
|
|
61730
61746
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61731
61747
|
return action instanceof SceneActMechanicAction;
|
|
@@ -61736,7 +61752,7 @@
|
|
|
61736
61752
|
if (state.a7u()) {
|
|
61737
61753
|
var sceneInfo = state.y7t().sceneInfo;
|
|
61738
61754
|
if (Companion_instance_5.h7u(sceneInfo.e9d_1, action_0.t9a_1) && sceneInfo.g9d_1 === action_0.u9a_1 && equals(sceneInfo.i9d_1, action_0.v9a_1)) {
|
|
61739
|
-
this.
|
|
61755
|
+
this.lav_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
61740
61756
|
}
|
|
61741
61757
|
}
|
|
61742
61758
|
next(action_0);
|
|
@@ -61796,7 +61812,7 @@
|
|
|
61796
61812
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
61797
61813
|
}
|
|
61798
61814
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
61799
|
-
this.
|
|
61815
|
+
this.mav_1 = this$0;
|
|
61800
61816
|
}
|
|
61801
61817
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61802
61818
|
return action instanceof FromClientAction;
|
|
@@ -61822,18 +61838,18 @@
|
|
|
61822
61838
|
var tmp$ret$1 = item.playerId;
|
|
61823
61839
|
destination.e1(tmp$ret$1);
|
|
61824
61840
|
}
|
|
61825
|
-
this.
|
|
61841
|
+
this.mav_1.mal_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
61826
61842
|
break $l$block_3;
|
|
61827
61843
|
}
|
|
61828
61844
|
if (!get_isCreated(store.state)) {
|
|
61829
61845
|
if (table.sceneInfo.n8j()) {
|
|
61830
|
-
this.
|
|
61846
|
+
this.mav_1.mal_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
61831
61847
|
} else {
|
|
61832
61848
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
61833
|
-
if (this.
|
|
61834
|
-
sendErrorToClient(this.
|
|
61849
|
+
if (this.mav_1.oal_1) {
|
|
61850
|
+
sendErrorToClient(this.mav_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
61835
61851
|
}
|
|
61836
|
-
this.
|
|
61852
|
+
this.mav_1.mal_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
61837
61853
|
}
|
|
61838
61854
|
break $l$block_3;
|
|
61839
61855
|
}
|
|
@@ -61841,18 +61857,18 @@
|
|
|
61841
61857
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f77_1;
|
|
61842
61858
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
61843
61859
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
61844
|
-
if (this.
|
|
61845
|
-
sendErrorToClient(this.
|
|
61860
|
+
if (this.mav_1.oal_1) {
|
|
61861
|
+
sendErrorToClient(this.mav_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
61846
61862
|
}
|
|
61847
|
-
this.
|
|
61863
|
+
this.mav_1.mal_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
61848
61864
|
break $l$block_3;
|
|
61849
61865
|
}
|
|
61850
|
-
if (this.
|
|
61866
|
+
if (this.mav_1.nal_1 && checkIfEventIsDuplicated(this.mav_1, table, tmp4)) {
|
|
61851
61867
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
61852
|
-
if (this.
|
|
61853
|
-
sendErrorToClient(this.
|
|
61868
|
+
if (this.mav_1.oal_1) {
|
|
61869
|
+
sendErrorToClient(this.mav_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
61854
61870
|
}
|
|
61855
|
-
this.
|
|
61871
|
+
this.mav_1.mal_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
61856
61872
|
break $l$block_3;
|
|
61857
61873
|
}
|
|
61858
61874
|
next(tmp4);
|
|
@@ -61904,8 +61920,8 @@
|
|
|
61904
61920
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
61905
61921
|
}
|
|
61906
61922
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
61907
|
-
this.
|
|
61908
|
-
this.
|
|
61923
|
+
this.nav_1 = $enableCheckWhen;
|
|
61924
|
+
this.oav_1 = this$0;
|
|
61909
61925
|
}
|
|
61910
61926
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
61911
61927
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -61914,7 +61930,7 @@
|
|
|
61914
61930
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
61915
61931
|
$l$block_2: {
|
|
61916
61932
|
var state = store.state;
|
|
61917
|
-
if (!isEnabledCheck(this.
|
|
61933
|
+
if (!isEnabledCheck(this.nav_1, state, tmp4)) {
|
|
61918
61934
|
next(tmp4);
|
|
61919
61935
|
break $l$block_2;
|
|
61920
61936
|
}
|
|
@@ -61934,23 +61950,23 @@
|
|
|
61934
61950
|
var tmp$ret$1 = item.playerId;
|
|
61935
61951
|
destination.e1(tmp$ret$1);
|
|
61936
61952
|
}
|
|
61937
|
-
this.
|
|
61953
|
+
this.oav_1.ual_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
61938
61954
|
break $l$block_2;
|
|
61939
61955
|
}
|
|
61940
61956
|
var table = store.state.y7t();
|
|
61941
61957
|
var player = getPlayer(table.players, tmp4.dag_1);
|
|
61942
61958
|
var tmp0_safe_receiver = player.m7x_1.d77_1;
|
|
61943
61959
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f77_1;
|
|
61944
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
61960
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.oav_1, connectionState, tmp4.cag_1);
|
|
61945
61961
|
var duplicate = _destruct__k2r9zo.kf();
|
|
61946
61962
|
var report = _destruct__k2r9zo.lf();
|
|
61947
61963
|
if (!(connectionState == null) && duplicate) {
|
|
61948
61964
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
61949
61965
|
if (report) {
|
|
61950
|
-
if (this.
|
|
61951
|
-
sendErrorToClient_0(this.
|
|
61966
|
+
if (this.oav_1.val_1) {
|
|
61967
|
+
sendErrorToClient_0(this.oav_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
61952
61968
|
}
|
|
61953
|
-
this.
|
|
61969
|
+
this.oav_1.ual_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
61954
61970
|
}
|
|
61955
61971
|
break $l$block_2;
|
|
61956
61972
|
} else {
|
|
@@ -61966,13 +61982,13 @@
|
|
|
61966
61982
|
this.ual_1 = logger;
|
|
61967
61983
|
this.val_1 = sendErrorToClient;
|
|
61968
61984
|
}
|
|
61969
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
61985
|
+
protoOf(PlayerConnectionValidationMiddlewares).pav = function (enableCheckWhen) {
|
|
61970
61986
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
61971
61987
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
61972
61988
|
};
|
|
61973
61989
|
protoOf(PlayerConnectionValidationMiddlewares).wal = function (enableCheckWhen, $super) {
|
|
61974
61990
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
61975
|
-
return $super === VOID ? this.
|
|
61991
|
+
return $super === VOID ? this.pav(enableCheckWhen) : $super.pav.call(this, enableCheckWhen);
|
|
61976
61992
|
};
|
|
61977
61993
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
61978
61994
|
return function () {
|
|
@@ -62117,8 +62133,8 @@
|
|
|
62117
62133
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
62118
62134
|
}
|
|
62119
62135
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
62120
|
-
this.
|
|
62121
|
-
this.
|
|
62136
|
+
this.qav_1 = $enableCheckWhen;
|
|
62137
|
+
this.rav_1 = this$0;
|
|
62122
62138
|
}
|
|
62123
62139
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
62124
62140
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -62127,19 +62143,19 @@
|
|
|
62127
62143
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
62128
62144
|
$l$block_1: {
|
|
62129
62145
|
var state = store.state;
|
|
62130
|
-
if (!isEnabledCheck(this.
|
|
62146
|
+
if (!isEnabledCheck(this.qav_1, state, tmp4)) {
|
|
62131
62147
|
next(tmp4);
|
|
62132
62148
|
break $l$block_1;
|
|
62133
62149
|
}
|
|
62134
62150
|
var table = state.y7t();
|
|
62135
62151
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
62136
62152
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
62137
|
-
if (isWrongPlayerTurn(this.
|
|
62153
|
+
if (isWrongPlayerTurn(this.rav_1, store, playersWithTurn, player, tmp4)) {
|
|
62138
62154
|
break $l$block_1;
|
|
62139
62155
|
}
|
|
62140
62156
|
var tmp;
|
|
62141
|
-
if (this.
|
|
62142
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
62157
|
+
if (this.rav_1.fal_1.validateFromClientActionTags) {
|
|
62158
|
+
tmp = isWrongPlayerTurnTag$default(this.rav_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.rav_1, tmp4, table));
|
|
62143
62159
|
} else {
|
|
62144
62160
|
tmp = false;
|
|
62145
62161
|
}
|
|
@@ -62153,8 +62169,8 @@
|
|
|
62153
62169
|
return this.o7i(store, next, action);
|
|
62154
62170
|
};
|
|
62155
62171
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
62156
|
-
this.
|
|
62157
|
-
this.
|
|
62172
|
+
this.sav_1 = $enableCheckWhen;
|
|
62173
|
+
this.tav_1 = this$0;
|
|
62158
62174
|
}
|
|
62159
62175
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
62160
62176
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -62164,17 +62180,17 @@
|
|
|
62164
62180
|
$l$block_1: {
|
|
62165
62181
|
var table = store.state.y7t();
|
|
62166
62182
|
var player = getPlayerTurn(tmp4, table.players);
|
|
62167
|
-
if (player == null || !isEnabledCheck(this.
|
|
62183
|
+
if (player == null || !isEnabledCheck(this.sav_1, store.state, tmp4)) {
|
|
62168
62184
|
next(tmp4);
|
|
62169
62185
|
break $l$block_1;
|
|
62170
62186
|
}
|
|
62171
62187
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
62172
|
-
if (isWrongPlayerTurn(this.
|
|
62188
|
+
if (isWrongPlayerTurn(this.tav_1, store, playersWithTurn, player, tmp4)) {
|
|
62173
62189
|
break $l$block_1;
|
|
62174
62190
|
}
|
|
62175
62191
|
var tmp;
|
|
62176
|
-
if (this.
|
|
62177
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
62192
|
+
if (this.tav_1.fal_1.validateFromClientActionTags) {
|
|
62193
|
+
tmp = isWrongPlayerTurnTag(this.tav_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.tav_1, tmp4, table), this.tav_1.eal_1);
|
|
62178
62194
|
} else {
|
|
62179
62195
|
tmp = false;
|
|
62180
62196
|
}
|
|
@@ -62188,8 +62204,8 @@
|
|
|
62188
62204
|
return this.o7i(store, next, action);
|
|
62189
62205
|
};
|
|
62190
62206
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
62191
|
-
this.
|
|
62192
|
-
this.
|
|
62207
|
+
this.uav_1 = $enableCheckWhen;
|
|
62208
|
+
this.vav_1 = this$0;
|
|
62193
62209
|
}
|
|
62194
62210
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
62195
62211
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -62198,7 +62214,7 @@
|
|
|
62198
62214
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
62199
62215
|
$l$block_1: {
|
|
62200
62216
|
var state = store.state;
|
|
62201
|
-
if (!isEnabledCheck(this.
|
|
62217
|
+
if (!isEnabledCheck(this.uav_1, state, tmp4)) {
|
|
62202
62218
|
next(tmp4);
|
|
62203
62219
|
break $l$block_1;
|
|
62204
62220
|
}
|
|
@@ -62233,7 +62249,7 @@
|
|
|
62233
62249
|
destination.e1(tmp$ret$3);
|
|
62234
62250
|
}
|
|
62235
62251
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.cai()));
|
|
62236
|
-
this.
|
|
62252
|
+
this.vav_1.gal_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
62237
62253
|
} else {
|
|
62238
62254
|
next(tmp4);
|
|
62239
62255
|
}
|
|
@@ -62261,23 +62277,23 @@
|
|
|
62261
62277
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
62262
62278
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
62263
62279
|
};
|
|
62264
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
62280
|
+
protoOf(PlayerTurnValidationMiddlewares).wav = function (enableCheckWhen) {
|
|
62265
62281
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
62266
62282
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
62267
62283
|
};
|
|
62268
62284
|
protoOf(PlayerTurnValidationMiddlewares).kal = function (enableCheckWhen, $super) {
|
|
62269
62285
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
62270
|
-
return $super === VOID ? this.
|
|
62286
|
+
return $super === VOID ? this.wav(enableCheckWhen) : $super.wav.call(this, enableCheckWhen);
|
|
62271
62287
|
};
|
|
62272
62288
|
function Companion_199() {
|
|
62273
|
-
this.
|
|
62289
|
+
this.xav_1 = 50;
|
|
62274
62290
|
}
|
|
62275
62291
|
var Companion_instance_204;
|
|
62276
62292
|
function Companion_getInstance_206() {
|
|
62277
62293
|
return Companion_instance_204;
|
|
62278
62294
|
}
|
|
62279
62295
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
62280
|
-
this.
|
|
62296
|
+
this.yav_1 = this$0;
|
|
62281
62297
|
}
|
|
62282
62298
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).z7g = function (action) {
|
|
62283
62299
|
return action instanceof MechanicAction;
|
|
@@ -62288,19 +62304,19 @@
|
|
|
62288
62304
|
var aid = tmp4.aid;
|
|
62289
62305
|
if (!store.state.a7u()) {
|
|
62290
62306
|
if (!(aid == null)) {
|
|
62291
|
-
this.
|
|
62307
|
+
this.yav_1.ral_1.me(aid);
|
|
62292
62308
|
}
|
|
62293
62309
|
next(tmp4);
|
|
62294
62310
|
break $l$block_0;
|
|
62295
62311
|
}
|
|
62296
|
-
if (!(aid == null) && this.
|
|
62297
|
-
this.
|
|
62312
|
+
if (!(aid == null) && this.yav_1.ral_1.m2(aid)) {
|
|
62313
|
+
this.yav_1.qal_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
62298
62314
|
break $l$block_0;
|
|
62299
62315
|
}
|
|
62300
62316
|
if (!(aid == null)) {
|
|
62301
|
-
this.
|
|
62302
|
-
if (this.
|
|
62303
|
-
this.
|
|
62317
|
+
this.yav_1.ral_1.me(aid);
|
|
62318
|
+
if (this.yav_1.ral_1.ie_1 > 50) {
|
|
62319
|
+
this.yav_1.ral_1.ne();
|
|
62304
62320
|
}
|
|
62305
62321
|
}
|
|
62306
62322
|
next(tmp4);
|
|
@@ -62326,12 +62342,12 @@
|
|
|
62326
62342
|
protoOf(clearReducer$$inlined$reducerForActionType$1).z7g = function (action) {
|
|
62327
62343
|
return action instanceof ClearAction;
|
|
62328
62344
|
};
|
|
62329
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
62345
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).zav = function (state, action) {
|
|
62330
62346
|
action instanceof ClearAction || THROW_CCE();
|
|
62331
62347
|
return state.xaf(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
62332
62348
|
};
|
|
62333
62349
|
protoOf(clearReducer$$inlined$reducerForActionType$1).p7i = function (state, action) {
|
|
62334
|
-
return this.
|
|
62350
|
+
return this.zav((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
62335
62351
|
};
|
|
62336
62352
|
function fromClientReducer() {
|
|
62337
62353
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -62342,7 +62358,7 @@
|
|
|
62342
62358
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).z7g = function (action) {
|
|
62343
62359
|
return action instanceof FromClientAction;
|
|
62344
62360
|
};
|
|
62345
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
62361
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).zav = function (state, action) {
|
|
62346
62362
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
62347
62363
|
var tmp;
|
|
62348
62364
|
var tmp_0;
|
|
@@ -62399,11 +62415,11 @@
|
|
|
62399
62415
|
return tmp;
|
|
62400
62416
|
};
|
|
62401
62417
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).p7i = function (state, action) {
|
|
62402
|
-
return this.
|
|
62418
|
+
return this.zav((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
62403
62419
|
};
|
|
62404
62420
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
62405
62421
|
return function (tbl) {
|
|
62406
|
-
return this$0.kak_1.
|
|
62422
|
+
return this$0.kak_1.gaw(tbl, $action.p9a_1, $action.sceneData, $action.q9a_1, $action.r9a_1);
|
|
62407
62423
|
};
|
|
62408
62424
|
}
|
|
62409
62425
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -62412,22 +62428,22 @@
|
|
|
62412
62428
|
if ($action.q9a_1 == null) {
|
|
62413
62429
|
tmp = tbl;
|
|
62414
62430
|
} else {
|
|
62415
|
-
tmp = this$0.lak_1.
|
|
62431
|
+
tmp = this$0.lak_1.haw(tbl, $action);
|
|
62416
62432
|
}
|
|
62417
62433
|
return tmp;
|
|
62418
62434
|
};
|
|
62419
62435
|
}
|
|
62420
62436
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
62421
|
-
this.
|
|
62437
|
+
this.iaw_1 = this$0;
|
|
62422
62438
|
}
|
|
62423
62439
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).z7g = function (action) {
|
|
62424
62440
|
return action instanceof MechanicAction;
|
|
62425
62441
|
};
|
|
62426
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
62442
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).zav = function (state, action) {
|
|
62427
62443
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
62428
|
-
if (this.
|
|
62444
|
+
if (this.iaw_1.mak_1.validateIfMainThread) {
|
|
62429
62445
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
62430
|
-
var logger = this.
|
|
62446
|
+
var logger = this.iaw_1.nak_1;
|
|
62431
62447
|
var tmp;
|
|
62432
62448
|
try {
|
|
62433
62449
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -62448,53 +62464,53 @@
|
|
|
62448
62464
|
}
|
|
62449
62465
|
var tmp_1;
|
|
62450
62466
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
62451
|
-
tmp_1 = this.
|
|
62467
|
+
tmp_1 = this.iaw_1.eak_1.qax(state, action_0);
|
|
62452
62468
|
} else {
|
|
62453
62469
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
62454
|
-
tmp_1 = this.
|
|
62470
|
+
tmp_1 = this.iaw_1.eak_1.pax(state, action_0);
|
|
62455
62471
|
} else {
|
|
62456
62472
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
62457
|
-
tmp_1 = this.
|
|
62473
|
+
tmp_1 = this.iaw_1.eak_1.oax(state, action_0);
|
|
62458
62474
|
} else {
|
|
62459
62475
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
62460
|
-
tmp_1 = this.
|
|
62476
|
+
tmp_1 = this.iaw_1.eak_1.nax(state, action_0);
|
|
62461
62477
|
} else {
|
|
62462
62478
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
62463
|
-
tmp_1 = this.
|
|
62479
|
+
tmp_1 = this.iaw_1.eak_1.max(state, action_0);
|
|
62464
62480
|
} else {
|
|
62465
62481
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
62466
|
-
tmp_1 = this.
|
|
62482
|
+
tmp_1 = this.iaw_1.eak_1.lax(state, action_0);
|
|
62467
62483
|
} else {
|
|
62468
62484
|
if (action_0 instanceof ErrorAction) {
|
|
62469
|
-
tmp_1 = this.
|
|
62485
|
+
tmp_1 = this.iaw_1.eak_1.kax(state, action_0);
|
|
62470
62486
|
} else {
|
|
62471
62487
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
62472
|
-
tmp_1 = state.xaf(state.y7t().copy(VOID, VOID, VOID, VOID, this.
|
|
62488
|
+
tmp_1 = state.xaf(state.y7t().copy(VOID, VOID, VOID, VOID, this.iaw_1.fak_1.jax(state.y7t().players, action_0)));
|
|
62473
62489
|
} else {
|
|
62474
62490
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
62475
|
-
tmp_1 = this.
|
|
62491
|
+
tmp_1 = this.iaw_1.gak_1.iax(state, action_0);
|
|
62476
62492
|
} else {
|
|
62477
62493
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
62478
|
-
tmp_1 = this.
|
|
62494
|
+
tmp_1 = this.iaw_1.gak_1.hax(state, action_0);
|
|
62479
62495
|
} else {
|
|
62480
62496
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
62481
|
-
tmp_1 = this.
|
|
62497
|
+
tmp_1 = this.iaw_1.iak_1.eax(state, action_0);
|
|
62482
62498
|
} else {
|
|
62483
62499
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
62484
|
-
tmp_1 = this.
|
|
62500
|
+
tmp_1 = this.iaw_1.hak_1.dax(state, action_0);
|
|
62485
62501
|
} else {
|
|
62486
62502
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
62487
|
-
tmp_1 = this.
|
|
62503
|
+
tmp_1 = this.iaw_1.hak_1.cax(state, action_0);
|
|
62488
62504
|
} else {
|
|
62489
62505
|
if (action_0 instanceof TakeAllRemainingCardsMechanicAction) {
|
|
62490
|
-
tmp_1 = this.
|
|
62506
|
+
tmp_1 = this.iaw_1.hak_1.bax(state, action_0);
|
|
62491
62507
|
} else {
|
|
62492
62508
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
62493
|
-
tmp_1 = this.
|
|
62509
|
+
tmp_1 = this.iaw_1.iak_1.taw(state, action_0);
|
|
62494
62510
|
} else {
|
|
62495
62511
|
if (action_0 instanceof SceneMechanicAction) {
|
|
62496
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
62497
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
62512
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.iaw_1, action_0);
|
|
62513
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.iaw_1)]);
|
|
62498
62514
|
// Inline function 'kotlin.collections.fold' call
|
|
62499
62515
|
var accumulator = state.y7t();
|
|
62500
62516
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -62506,13 +62522,13 @@
|
|
|
62506
62522
|
tmp_1 = state.xaf(tmp$ret$3);
|
|
62507
62523
|
} else {
|
|
62508
62524
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
62509
|
-
tmp_1 = state.xaf(this.
|
|
62525
|
+
tmp_1 = state.xaf(this.iaw_1.lak_1.haw(state.y7t(), action_0));
|
|
62510
62526
|
} else {
|
|
62511
62527
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
62512
|
-
tmp_1 = state.xaf(this.
|
|
62528
|
+
tmp_1 = state.xaf(this.iaw_1.jak_1.naw(state.y7t(), action_0));
|
|
62513
62529
|
} else {
|
|
62514
62530
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
62515
|
-
tmp_1 = state.xaf(this.
|
|
62531
|
+
tmp_1 = state.xaf(this.iaw_1.jak_1.maw(state.y7t(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
62516
62532
|
} else {
|
|
62517
62533
|
if (action_0 instanceof MessageMechanicAction) {
|
|
62518
62534
|
tmp_1 = state;
|
|
@@ -62541,7 +62557,7 @@
|
|
|
62541
62557
|
return tmp_1;
|
|
62542
62558
|
};
|
|
62543
62559
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).p7i = function (state, action) {
|
|
62544
|
-
return this.
|
|
62560
|
+
return this.zav((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
62545
62561
|
};
|
|
62546
62562
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
62547
62563
|
this.eak_1 = gameLifecycleReducer;
|
|
@@ -62568,7 +62584,7 @@
|
|
|
62568
62584
|
protoOf(timerReducer$$inlined$reducerForActionType$1).z7g = function (action) {
|
|
62569
62585
|
return action instanceof TimerAction;
|
|
62570
62586
|
};
|
|
62571
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
62587
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).zav = function (state, action) {
|
|
62572
62588
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
62573
62589
|
var tmp;
|
|
62574
62590
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -62596,7 +62612,7 @@
|
|
|
62596
62612
|
return tmp;
|
|
62597
62613
|
};
|
|
62598
62614
|
protoOf(timerReducer$$inlined$reducerForActionType$1).p7i = function (state, action) {
|
|
62599
|
-
return this.
|
|
62615
|
+
return this.zav((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
62600
62616
|
};
|
|
62601
62617
|
function playerTurnReducer($this, action, table) {
|
|
62602
62618
|
var tmp0 = action.actData;
|
|
@@ -62701,7 +62717,7 @@
|
|
|
62701
62717
|
}
|
|
62702
62718
|
function SceneActReducer() {
|
|
62703
62719
|
}
|
|
62704
|
-
protoOf(SceneActReducer).
|
|
62720
|
+
protoOf(SceneActReducer).haw = function (table, action) {
|
|
62705
62721
|
var tmp;
|
|
62706
62722
|
if (action.actId === 'WAITING_ACT') {
|
|
62707
62723
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.ta0(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -62738,47 +62754,47 @@
|
|
|
62738
62754
|
function MechanicLifecycleReducer() {
|
|
62739
62755
|
}
|
|
62740
62756
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
62741
|
-
this.
|
|
62742
|
-
this.
|
|
62757
|
+
this.rax_1 = tableLifecycleReducer;
|
|
62758
|
+
this.sax_1 = randomPoolProvider;
|
|
62743
62759
|
}
|
|
62744
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
62760
|
+
protoOf(BaseMechanicLifecycleReducer).oax = function (state, action) {
|
|
62745
62761
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
62746
62762
|
var tmp1_tableOrNull = action.table;
|
|
62747
62763
|
var tmp2_payload = action.payload;
|
|
62748
62764
|
return state.xaf(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
62749
62765
|
};
|
|
62750
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
62751
|
-
this.
|
|
62766
|
+
protoOf(BaseMechanicLifecycleReducer).pax = function (state, action) {
|
|
62767
|
+
this.sax_1.m6f(action.previousGameId);
|
|
62752
62768
|
return state;
|
|
62753
62769
|
};
|
|
62754
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
62770
|
+
protoOf(BaseMechanicLifecycleReducer).nax = function (state, action) {
|
|
62755
62771
|
var tmp0_safe_receiver = state.tableOrNull;
|
|
62756
62772
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
62757
62773
|
if (tmp1_safe_receiver == null)
|
|
62758
62774
|
null;
|
|
62759
62775
|
else {
|
|
62760
62776
|
// Inline function 'kotlin.apply' call
|
|
62761
|
-
this.
|
|
62777
|
+
this.sax_1.m6f(tmp1_safe_receiver);
|
|
62762
62778
|
}
|
|
62763
62779
|
return state.xaf(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.e9a_1, action.g9a_1));
|
|
62764
62780
|
};
|
|
62765
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
62781
|
+
protoOf(BaseMechanicLifecycleReducer).max = function (state, action) {
|
|
62766
62782
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
62767
62783
|
var tmp0_safe_receiver = state.y7s_1;
|
|
62768
62784
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zaf(action.i9a_1);
|
|
62769
62785
|
return state.xaf(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.i9a_1) : tmp1_elvis_lhs);
|
|
62770
62786
|
};
|
|
62771
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
62772
|
-
return state.xaf(this.
|
|
62787
|
+
protoOf(BaseMechanicLifecycleReducer).lax = function (state, action) {
|
|
62788
|
+
return state.xaf(this.rax_1.tax(state.y7t()));
|
|
62773
62789
|
};
|
|
62774
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
62790
|
+
protoOf(BaseMechanicLifecycleReducer).kax = function (state, action) {
|
|
62775
62791
|
var tmp0_safe_receiver = state.tableOrNull;
|
|
62776
62792
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
62777
62793
|
if (tmp1_safe_receiver == null)
|
|
62778
62794
|
null;
|
|
62779
62795
|
else {
|
|
62780
62796
|
// Inline function 'kotlin.apply' call
|
|
62781
|
-
this.
|
|
62797
|
+
this.sax_1.m6f(tmp1_safe_receiver);
|
|
62782
62798
|
}
|
|
62783
62799
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
62784
62800
|
var tmp2_safe_receiver = state.y7s_1;
|
|
@@ -62798,19 +62814,19 @@
|
|
|
62798
62814
|
return value1.id === value2.id;
|
|
62799
62815
|
}
|
|
62800
62816
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
62801
|
-
this.
|
|
62802
|
-
this.
|
|
62803
|
-
this.
|
|
62804
|
-
this.
|
|
62817
|
+
this.uax_1 = pointsInteractor;
|
|
62818
|
+
this.vax_1 = playerHappinessProvider;
|
|
62819
|
+
this.wax_1 = logger;
|
|
62820
|
+
this.xax_1 = dealerConfig;
|
|
62805
62821
|
}
|
|
62806
|
-
protoOf(PlayerHandReducer).
|
|
62822
|
+
protoOf(PlayerHandReducer).yax = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
62807
62823
|
// Inline function 'kotlin.collections.map' call
|
|
62808
62824
|
// Inline function 'kotlin.collections.mapTo' call
|
|
62809
62825
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
62810
62826
|
var _iterator__ex2g4s = combinations.t();
|
|
62811
62827
|
while (_iterator__ex2g4s.u()) {
|
|
62812
62828
|
var item = _iterator__ex2g4s.v();
|
|
62813
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
62829
|
+
var tmp$ret$0 = mapToRecord(item, this.uax_1.aab(item));
|
|
62814
62830
|
destination.e1(tmp$ret$0);
|
|
62815
62831
|
}
|
|
62816
62832
|
var combinationRecords = destination;
|
|
@@ -62845,8 +62861,8 @@
|
|
|
62845
62861
|
return hand.u86(VOID, VOID, plus(hand.q83_1, combinationRecords), plus(hand.r83_1, combinationRecords));
|
|
62846
62862
|
}
|
|
62847
62863
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
62848
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
62849
|
-
var tmp_0 = this.
|
|
62864
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.xax_1.dealerStrategy : tmp0_elvis_lhs;
|
|
62865
|
+
var tmp_0 = this.uax_1.zaa(cards, selectedTrump, dealerStrategy);
|
|
62850
62866
|
// Inline function 'kotlin.collections.map' call
|
|
62851
62867
|
// Inline function 'kotlin.collections.mapTo' call
|
|
62852
62868
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -62857,11 +62873,11 @@
|
|
|
62857
62873
|
destination_0.e1(tmp$ret$5);
|
|
62858
62874
|
}
|
|
62859
62875
|
var value = tmp_0 + sum(destination_0);
|
|
62860
|
-
var luckyFactor = this.
|
|
62861
|
-
Companion_instance_200.yaa(this.
|
|
62876
|
+
var luckyFactor = this.vax_1.oa3(value, config.playersMode, dealerStrategy);
|
|
62877
|
+
Companion_instance_200.yaa(this.wax_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.x83() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.g1() + ', '));
|
|
62862
62878
|
return hand.u86(VOID, plus(hand.p83_1, listOf(Companion_instance_20.m86(luckyFactor, value))), plus(hand.q83_1, combinationRecords), plus(hand.r83_1, combinationRecords));
|
|
62863
62879
|
};
|
|
62864
|
-
protoOf(PlayerHandReducer).
|
|
62880
|
+
protoOf(PlayerHandReducer).zax = function (hand, combinations) {
|
|
62865
62881
|
// Inline function 'kotlin.collections.map' call
|
|
62866
62882
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
62867
62883
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -62869,20 +62885,20 @@
|
|
|
62869
62885
|
var _iterator__ex2g4s = this_0.t();
|
|
62870
62886
|
while (_iterator__ex2g4s.u()) {
|
|
62871
62887
|
var item = _iterator__ex2g4s.v();
|
|
62872
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
62888
|
+
var tmp$ret$0 = mapToRecord(item, this.uax_1.aab(item));
|
|
62873
62889
|
destination.e1(tmp$ret$0);
|
|
62874
62890
|
}
|
|
62875
62891
|
var combinationRecords = destination;
|
|
62876
62892
|
var tmp = updateOrAddItems(hand.q83_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
62877
62893
|
return hand.u86(VOID, VOID, tmp, updateOrAddItems(hand.r83_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
62878
62894
|
};
|
|
62879
|
-
protoOf(PlayerHandReducer).
|
|
62895
|
+
protoOf(PlayerHandReducer).aay = function (playerId, hand, updatedCombinations, config) {
|
|
62880
62896
|
if (updatedCombinations.r()) {
|
|
62881
62897
|
return hand;
|
|
62882
62898
|
}
|
|
62883
62899
|
var previousFactor = hand.g84();
|
|
62884
62900
|
if (previousFactor.f84_1 === 0.0) {
|
|
62885
|
-
return this.
|
|
62901
|
+
return this.zax(hand, updatedCombinations);
|
|
62886
62902
|
}
|
|
62887
62903
|
// Inline function 'kotlin.collections.map' call
|
|
62888
62904
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -62890,7 +62906,7 @@
|
|
|
62890
62906
|
var _iterator__ex2g4s = updatedCombinations.t();
|
|
62891
62907
|
while (_iterator__ex2g4s.u()) {
|
|
62892
62908
|
var item = _iterator__ex2g4s.v();
|
|
62893
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
62909
|
+
var tmp$ret$0 = mapToRecord(item, this.uax_1.aab(item));
|
|
62894
62910
|
destination.e1(tmp$ret$0);
|
|
62895
62911
|
}
|
|
62896
62912
|
var updatedCombinationRecords = destination;
|
|
@@ -62950,9 +62966,9 @@
|
|
|
62950
62966
|
}
|
|
62951
62967
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
62952
62968
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
62953
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
62954
|
-
var updatedLuckyFactor = this.
|
|
62955
|
-
Companion_instance_200.yaa(this.
|
|
62969
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.xax_1.dealerStrategy : tmp0_elvis_lhs;
|
|
62970
|
+
var updatedLuckyFactor = this.vax_1.oa3(updatedValue, config.playersMode, dealerStrategy);
|
|
62971
|
+
Companion_instance_200.yaa(this.wax_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.x83() + ', ') + ('value: ' + updatedValue + ', '));
|
|
62956
62972
|
// Inline function 'kotlin.collections.map' call
|
|
62957
62973
|
var this_0 = hand.p83_1;
|
|
62958
62974
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -62982,7 +62998,7 @@
|
|
|
62982
62998
|
protoOf(PlayerSceneReducer).zae = function (player, cards, whoShuffleCardsPlayerId) {
|
|
62983
62999
|
return player.j83(VOID, VOID, cards, player.o7x_1.k87(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
62984
63000
|
};
|
|
62985
|
-
protoOf(PlayerSceneReducer).
|
|
63001
|
+
protoOf(PlayerSceneReducer).bay = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
62986
63002
|
// Inline function 'kotlin.collections.map' call
|
|
62987
63003
|
// Inline function 'kotlin.collections.mapTo' call
|
|
62988
63004
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -62995,7 +63011,7 @@
|
|
|
62995
63011
|
}
|
|
62996
63012
|
var detailedCombinations = destination;
|
|
62997
63013
|
var cards = plus(player.n7x_1, distributedCards);
|
|
62998
|
-
var hand = this.yae_1.
|
|
63014
|
+
var hand = this.yae_1.yax(player.playerId, player.p7x_1, cards, detailedCombinations, selectedTrump, config);
|
|
62999
63015
|
var tmp;
|
|
63000
63016
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
63001
63017
|
if (!combinations.r()) {
|
|
@@ -63006,7 +63022,7 @@
|
|
|
63006
63022
|
var tmp0_points = tmp;
|
|
63007
63023
|
return player.j83(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
63008
63024
|
};
|
|
63009
|
-
protoOf(PlayerSceneReducer).
|
|
63025
|
+
protoOf(PlayerSceneReducer).cay = function (player, sceneData) {
|
|
63010
63026
|
// Inline function 'kotlin.collections.single' call
|
|
63011
63027
|
var single = null;
|
|
63012
63028
|
var found = false;
|
|
@@ -63048,7 +63064,7 @@
|
|
|
63048
63064
|
var tmp10_earnedPoints = playerPointsCell.n89_1;
|
|
63049
63065
|
var tmp11_earnedCards = emptyList();
|
|
63050
63066
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
63051
|
-
var tmp15_hand = this.yae_1.
|
|
63067
|
+
var tmp15_hand = this.yae_1.zax(player.p7x_1, updatedCombinations);
|
|
63052
63068
|
return player.j83(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
63053
63069
|
};
|
|
63054
63070
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -63078,7 +63094,7 @@
|
|
|
63078
63094
|
var tmp = System_instance.ik();
|
|
63079
63095
|
Companion_getInstance_4();
|
|
63080
63096
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
63081
|
-
var this_0 = config.timeoutTimeMillis * $this.
|
|
63097
|
+
var this_0 = config.timeoutTimeMillis * $this.law_1.playerTimeoutFactorToFinishStep;
|
|
63082
63098
|
var tmp$ret$0 = toDuration_1(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
63083
63099
|
return tmp.gl(tmp$ret$0);
|
|
63084
63100
|
}
|
|
@@ -63089,11 +63105,11 @@
|
|
|
63089
63105
|
return it.playerId;
|
|
63090
63106
|
}
|
|
63091
63107
|
function PlayerTurnMechanicReducer(logger, gameHistoryReducer, engineLogicConfig) {
|
|
63092
|
-
this.
|
|
63093
|
-
this.
|
|
63094
|
-
this.
|
|
63108
|
+
this.jaw_1 = logger;
|
|
63109
|
+
this.kaw_1 = gameHistoryReducer;
|
|
63110
|
+
this.law_1 = engineLogicConfig;
|
|
63095
63111
|
}
|
|
63096
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
63112
|
+
protoOf(PlayerTurnMechanicReducer).day = function (table, model) {
|
|
63097
63113
|
// Inline function 'com.logic.utils.copy' call
|
|
63098
63114
|
var this_0 = table.players;
|
|
63099
63115
|
// Inline function 'kotlin.apply' call
|
|
@@ -63104,7 +63120,7 @@
|
|
|
63104
63120
|
var element = _iterator__ex2g4s.v();
|
|
63105
63121
|
var player = getPlayer(table.players, element);
|
|
63106
63122
|
if (!(player.m7x_1.c77_1 == null)) {
|
|
63107
|
-
this.
|
|
63123
|
+
this.jaw_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.m7x_1.c77_1 + ', ') + ('new tag: ' + model.y84_1));
|
|
63108
63124
|
}
|
|
63109
63125
|
var tmp = Companion_instance_0;
|
|
63110
63126
|
var tmp_0 = System_instance.ik();
|
|
@@ -63118,25 +63134,25 @@
|
|
|
63118
63134
|
var newTable = table.copy(VOID, VOID, VOID, VOID, this_1);
|
|
63119
63135
|
var tmp_1 = 'onPlayerTurn: ' + model.toString() + ', ';
|
|
63120
63136
|
var tmp_2 = filterPlayerTurn(table.players);
|
|
63121
|
-
this.
|
|
63137
|
+
this.jaw_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
63122
63138
|
return newTable;
|
|
63123
63139
|
};
|
|
63124
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
63140
|
+
protoOf(PlayerTurnMechanicReducer).eay = function (table, model) {
|
|
63125
63141
|
var player = getPlayer(table.players, model.s75());
|
|
63126
63142
|
if (player.m7x_1.c77_1 == null) {
|
|
63127
|
-
this.
|
|
63143
|
+
this.jaw_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.y84_1));
|
|
63128
63144
|
}
|
|
63129
63145
|
var newTable = table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j83(VOID, Companion_instance_0.s78(player.m7x_1)), get_byIdPlayerPredicate()(player.playerId)));
|
|
63130
63146
|
var tmp = 'onResetPlayerTurn: ' + model.toString() + ', ';
|
|
63131
63147
|
var tmp_0 = filterPlayerTurn(table.players);
|
|
63132
|
-
this.
|
|
63148
|
+
this.jaw_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
63133
63149
|
return newTable;
|
|
63134
63150
|
};
|
|
63135
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
63151
|
+
protoOf(PlayerTurnMechanicReducer).naw = function (table, action) {
|
|
63136
63152
|
var player = getPlayer(table.players, action.z9a_1);
|
|
63137
63153
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j83(VOID, player.m7x_1.t78(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
63138
63154
|
};
|
|
63139
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
63155
|
+
protoOf(PlayerTurnMechanicReducer).fay = function (table) {
|
|
63140
63156
|
// Inline function 'kotlin.collections.map' call
|
|
63141
63157
|
var this_0 = table.players;
|
|
63142
63158
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -63149,7 +63165,7 @@
|
|
|
63149
63165
|
}
|
|
63150
63166
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
63151
63167
|
};
|
|
63152
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
63168
|
+
protoOf(PlayerTurnMechanicReducer).maw = function (table, playerId, newConnectionState, reconnectUntilTime) {
|
|
63153
63169
|
var players = table.players;
|
|
63154
63170
|
var player = getPlayer(players, playerId);
|
|
63155
63171
|
var previousConnection = player.m7x_1.d77_1;
|
|
@@ -63172,10 +63188,10 @@
|
|
|
63172
63188
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
63173
63189
|
tmp = tmp6_$this.t78(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
63174
63190
|
}
|
|
63175
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.j83(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
63191
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.j83(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.kaw_1.kay(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
63176
63192
|
};
|
|
63177
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
63178
|
-
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.
|
|
63193
|
+
protoOf(PlayerTurnMechanicReducer).lay = function (config) {
|
|
63194
|
+
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.jaw_1);
|
|
63179
63195
|
};
|
|
63180
63196
|
function onNewScene($this, sceneId, sceneData, actId, actData, table, previousSceneId) {
|
|
63181
63197
|
var sceneInfo = new SceneInfo(sceneId, previousSceneId, actId, sceneData, actData);
|
|
@@ -63207,7 +63223,7 @@
|
|
|
63207
63223
|
var _iterator__ex2g4s = players.t();
|
|
63208
63224
|
while (_iterator__ex2g4s.u()) {
|
|
63209
63225
|
var item = _iterator__ex2g4s.v();
|
|
63210
|
-
var tmp$ret$1 = $this.
|
|
63226
|
+
var tmp$ret$1 = $this.aaw_1.zae(item, getValue(scene.q8j_1, item.playerId), scene.u8j_1);
|
|
63211
63227
|
destination.e1(tmp$ret$1);
|
|
63212
63228
|
}
|
|
63213
63229
|
|
|
@@ -63228,12 +63244,12 @@
|
|
|
63228
63244
|
}
|
|
63229
63245
|
|
|
63230
63246
|
var tmp7_requestedCardDecks = tmp_0;
|
|
63231
|
-
var tmp1_$this = $this.
|
|
63247
|
+
var tmp1_$this = $this.daw_1;
|
|
63232
63248
|
var tmp2_gameHistory = table.gameHistory;
|
|
63233
63249
|
var tmp3_playersCards = scene.q8j_1;
|
|
63234
63250
|
var tmp4_whoShuffleCardsPlayerId = scene.u8j_1;
|
|
63235
63251
|
var tmp5_randomData = scene.r8j_1;
|
|
63236
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
63252
|
+
var tmp8_gameHistory = tmp1_$this.may(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
63237
63253
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
63238
63254
|
case 'EARN_POINTS':
|
|
63239
63255
|
var tmp$ret$5;
|
|
@@ -63251,7 +63267,7 @@
|
|
|
63251
63267
|
var tmp10_newPlayersCards = scene_0.w8j_1;
|
|
63252
63268
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
63253
63269
|
var tmp12_config = table.config;
|
|
63254
|
-
var updatedCardDeck = $this.
|
|
63270
|
+
var updatedCardDeck = $this.nay(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
63255
63271
|
// Inline function 'kotlin.collections.map' call
|
|
63256
63272
|
|
|
63257
63273
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -63260,21 +63276,21 @@
|
|
|
63260
63276
|
var _iterator__ex2g4s_0 = players.t();
|
|
63261
63277
|
while (_iterator__ex2g4s_0.u()) {
|
|
63262
63278
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
63263
|
-
var tmp2_$this = $this.
|
|
63279
|
+
var tmp2_$this = $this.aaw_1;
|
|
63264
63280
|
var tmp3_config = table.config;
|
|
63265
63281
|
var tmp4_distributedCards = getValue(scene_0.w8j_1, item_0.playerId);
|
|
63266
63282
|
var tmp0_safe_receiver = scene_0.x8j_1;
|
|
63267
63283
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v2(item_0.playerId);
|
|
63268
63284
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
63269
63285
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
63270
|
-
var tmp$ret$6 = tmp2_$this.
|
|
63286
|
+
var tmp$ret$6 = tmp2_$this.bay(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
63271
63287
|
destination_0.e1(tmp$ret$6);
|
|
63272
63288
|
}
|
|
63273
63289
|
|
|
63274
|
-
var tmp13_$this = $this.
|
|
63290
|
+
var tmp13_$this = $this.daw_1;
|
|
63275
63291
|
var tmp14_gameHistory = table.gameHistory;
|
|
63276
63292
|
var tmp15_playersCards = scene_0.w8j_1;
|
|
63277
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
63293
|
+
var tmp17_gameHistory = tmp13_$this.oay(tmp15_playersCards, tmp14_gameHistory);
|
|
63278
63294
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
63279
63295
|
case 'CALC_POINTS':
|
|
63280
63296
|
var tmp$ret$9;
|
|
@@ -63298,12 +63314,12 @@
|
|
|
63298
63314
|
var _iterator__ex2g4s_1 = players.t();
|
|
63299
63315
|
while (_iterator__ex2g4s_1.u()) {
|
|
63300
63316
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
63301
|
-
var tmp$ret$10 = $this.
|
|
63317
|
+
var tmp$ret$10 = $this.aaw_1.cay(item_1, calcPointsSceneData);
|
|
63302
63318
|
destination_1.e1(tmp$ret$10);
|
|
63303
63319
|
}
|
|
63304
63320
|
|
|
63305
63321
|
var updatedPlayers = destination_1;
|
|
63306
|
-
var tmp19_$this = $this.
|
|
63322
|
+
var tmp19_$this = $this.daw_1;
|
|
63307
63323
|
var tmp20_gameHistory = table.gameHistory;
|
|
63308
63324
|
var tmp21_points = calcPointsSceneData.l8j_1;
|
|
63309
63325
|
var tmp22_roundContractState = calcPointsSceneData.p8j(whoChoseSuitPlayerId);
|
|
@@ -63344,7 +63360,7 @@
|
|
|
63344
63360
|
|
|
63345
63361
|
var tmp27_playersGameAnalytics = tmp_3;
|
|
63346
63362
|
var tmp28_playersAchievements = calcPointsSceneData.m8j_1;
|
|
63347
|
-
var tmp29_gameHistory = tmp19_$this.
|
|
63363
|
+
var tmp29_gameHistory = tmp19_$this.pay(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_failedContractsCount, tmp26_gameWinners, tmp27_playersGameAnalytics, tmp28_playersAchievements);
|
|
63348
63364
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp29_gameHistory);
|
|
63349
63365
|
default:
|
|
63350
63366
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -63376,30 +63392,30 @@
|
|
|
63376
63392
|
}
|
|
63377
63393
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
63378
63394
|
return function (tbl) {
|
|
63379
|
-
return this$0.
|
|
63395
|
+
return this$0.baw_1.fay(tbl);
|
|
63380
63396
|
};
|
|
63381
63397
|
}
|
|
63382
63398
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
63383
63399
|
return function (tbl) {
|
|
63384
|
-
return this$0.
|
|
63400
|
+
return this$0.caw_1.qay(tbl);
|
|
63385
63401
|
};
|
|
63386
63402
|
}
|
|
63387
63403
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
63388
|
-
this.
|
|
63389
|
-
this.
|
|
63390
|
-
this.
|
|
63391
|
-
this.
|
|
63392
|
-
this.
|
|
63393
|
-
this.
|
|
63394
|
-
}
|
|
63395
|
-
protoOf(SceneReducer).
|
|
63404
|
+
this.aaw_1 = playerSceneReducer;
|
|
63405
|
+
this.baw_1 = playerTurnMechanicReducer;
|
|
63406
|
+
this.caw_1 = tableLifecycleReducer;
|
|
63407
|
+
this.daw_1 = gameHistoryReducer;
|
|
63408
|
+
this.eaw_1 = dealerReducer;
|
|
63409
|
+
this.faw_1 = gameParamsProvider;
|
|
63410
|
+
}
|
|
63411
|
+
protoOf(SceneReducer).gaw = function (table, sceneId, sceneData, actId, actData) {
|
|
63396
63412
|
var previousSceneId = table.sceneInfo.e9d_1;
|
|
63397
63413
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.h9d_1, sceneData)) {
|
|
63398
63414
|
throw new MechanicException('Payload was set twice');
|
|
63399
63415
|
}
|
|
63400
63416
|
return onNewScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
63401
63417
|
};
|
|
63402
|
-
protoOf(SceneReducer).
|
|
63418
|
+
protoOf(SceneReducer).nay = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
63403
63419
|
// Inline function 'kotlin.collections.map' call
|
|
63404
63420
|
// Inline function 'kotlin.collections.mapTo' call
|
|
63405
63421
|
var destination = ArrayList_init_$Create$(newPlayersCards.g1());
|
|
@@ -63413,19 +63429,19 @@
|
|
|
63413
63429
|
// Inline function 'kotlin.let' call
|
|
63414
63430
|
var it = flatten(destination);
|
|
63415
63431
|
var tmp;
|
|
63416
|
-
if (this.
|
|
63417
|
-
tmp = this.
|
|
63432
|
+
if (this.faw_1.ra4(config)) {
|
|
63433
|
+
tmp = this.eaw_1.p6n(it, cardDeck.t8z_1);
|
|
63418
63434
|
} else {
|
|
63419
63435
|
tmp = it;
|
|
63420
63436
|
}
|
|
63421
63437
|
var playersCardsToRemove = tmp;
|
|
63422
63438
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
63423
|
-
var cards = this.
|
|
63439
|
+
var cards = this.eaw_1.o6n(cardDeck.s8z_1, cardsToRemove);
|
|
63424
63440
|
return cardDeck.e9x(cards, VOID, newTopOpenedCard);
|
|
63425
63441
|
};
|
|
63426
63442
|
function TeamsMechanicReducer() {
|
|
63427
63443
|
}
|
|
63428
|
-
protoOf(TeamsMechanicReducer).
|
|
63444
|
+
protoOf(TeamsMechanicReducer).jax = function (players, action) {
|
|
63429
63445
|
// Inline function 'kotlin.collections.map' call
|
|
63430
63446
|
var this_0 = action.team1.playerIds;
|
|
63431
63447
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -63465,10 +63481,10 @@
|
|
|
63465
63481
|
return destination_1;
|
|
63466
63482
|
};
|
|
63467
63483
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
63468
|
-
this.
|
|
63469
|
-
this.
|
|
63484
|
+
this.fax_1 = logger;
|
|
63485
|
+
this.gax_1 = gameHistoryReducer;
|
|
63470
63486
|
}
|
|
63471
|
-
protoOf(TradeMechanicReducer).
|
|
63487
|
+
protoOf(TradeMechanicReducer).iax = function (state, action) {
|
|
63472
63488
|
var table = state.y7t();
|
|
63473
63489
|
// Inline function 'kotlin.with' call
|
|
63474
63490
|
var player = getPlayer(table.players, action.d9b_1);
|
|
@@ -63476,7 +63492,7 @@
|
|
|
63476
63492
|
var it = player.o7x_1.q87();
|
|
63477
63493
|
var tmp;
|
|
63478
63494
|
if (it == null) {
|
|
63479
|
-
this.
|
|
63495
|
+
this.fax_1.w(VOID, "Can't support this circle increment");
|
|
63480
63496
|
tmp = player.o7x_1.e83_1;
|
|
63481
63497
|
} else {
|
|
63482
63498
|
tmp = it;
|
|
@@ -63504,17 +63520,17 @@
|
|
|
63504
63520
|
destination.e1(tmp$ret$2);
|
|
63505
63521
|
}
|
|
63506
63522
|
var tmp_2 = destination;
|
|
63507
|
-
var tmp0_$this = this.
|
|
63523
|
+
var tmp0_$this = this.gax_1;
|
|
63508
63524
|
var tmp1_playerId = player.playerId;
|
|
63509
63525
|
var tmp2_suit = action.b9b_1;
|
|
63510
63526
|
var tmp3_gameHistory = table.gameHistory;
|
|
63511
63527
|
var tmp4_players = table.players;
|
|
63512
63528
|
var tmp5_playersMode = table.config.playersMode;
|
|
63513
|
-
tmp_0 = state.xaf(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
63529
|
+
tmp_0 = state.xaf(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.ray(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
63514
63530
|
}
|
|
63515
63531
|
return tmp_0;
|
|
63516
63532
|
};
|
|
63517
|
-
protoOf(TradeMechanicReducer).
|
|
63533
|
+
protoOf(TradeMechanicReducer).hax = function (state, action) {
|
|
63518
63534
|
var table = state.y7t();
|
|
63519
63535
|
// Inline function 'kotlin.collections.map' call
|
|
63520
63536
|
var this_0 = table.players;
|
|
@@ -63532,13 +63548,13 @@
|
|
|
63532
63548
|
return valueToFind.q88_1 === value.q88_1;
|
|
63533
63549
|
}
|
|
63534
63550
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
63535
|
-
this.
|
|
63536
|
-
this.
|
|
63537
|
-
this.
|
|
63538
|
-
this.
|
|
63539
|
-
this.
|
|
63551
|
+
this.oaw_1 = teamsLogicProvider;
|
|
63552
|
+
this.paw_1 = combinationsInteractor;
|
|
63553
|
+
this.qaw_1 = dealerReducer;
|
|
63554
|
+
this.raw_1 = playerHandReducer;
|
|
63555
|
+
this.saw_1 = gameHistoryReducer;
|
|
63540
63556
|
}
|
|
63541
|
-
protoOf(CombinationsMechanicReducer).
|
|
63557
|
+
protoOf(CombinationsMechanicReducer).say = function (whoGotBribePlayerId, playerCombinations, players, config, forceAccept) {
|
|
63542
63558
|
var bellaCombination = first(playerCombinations.m9y_1);
|
|
63543
63559
|
var player = getPlayer(players, playerCombinations.l9y_1);
|
|
63544
63560
|
if (forceAccept) {
|
|
@@ -63550,7 +63566,7 @@
|
|
|
63550
63566
|
var tmp;
|
|
63551
63567
|
if (config.rules.protectBella) {
|
|
63552
63568
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
63553
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
63569
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.oaw_1.da3(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
63554
63570
|
var tmp_0;
|
|
63555
63571
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
63556
63572
|
tmp_0 = bellaCombination.c89(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -63564,7 +63580,7 @@
|
|
|
63564
63580
|
return tmp;
|
|
63565
63581
|
}
|
|
63566
63582
|
};
|
|
63567
|
-
protoOf(CombinationsMechanicReducer).
|
|
63583
|
+
protoOf(CombinationsMechanicReducer).taw = function (state, action) {
|
|
63568
63584
|
var table = state.y7t();
|
|
63569
63585
|
var players = table.players;
|
|
63570
63586
|
var config = table.config;
|
|
@@ -63595,7 +63611,7 @@
|
|
|
63595
63611
|
}
|
|
63596
63612
|
var passedPlayersCombinations = destination;
|
|
63597
63613
|
// Inline function 'kotlin.collections.filterNot' call
|
|
63598
|
-
var tmp0 = this.
|
|
63614
|
+
var tmp0 = this.paw_1.ka8(players);
|
|
63599
63615
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
63600
63616
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
63601
63617
|
var _iterator__ex2g4s_1 = tmp0.t();
|
|
@@ -63642,10 +63658,10 @@
|
|
|
63642
63658
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.v2(item_1.playerId);
|
|
63643
63659
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
63644
63660
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
63645
|
-
var tmp0_$this = this.
|
|
63661
|
+
var tmp0_$this = this.raw_1;
|
|
63646
63662
|
var tmp1_playerId = item_1.playerId;
|
|
63647
63663
|
var tmp2_hand = item_1.p7x_1;
|
|
63648
|
-
var tmp_1 = tmp0_$this.
|
|
63664
|
+
var tmp_1 = tmp0_$this.aay(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
63649
63665
|
tmp = item_1.j83(VOID, VOID, VOID, VOID, tmp_1, item_1.q7x_1.t87(VOID, updateOrAddItems(item_1.q7x_1.i84_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
63650
63666
|
} else {
|
|
63651
63667
|
tmp = item_1;
|
|
@@ -63653,9 +63669,9 @@
|
|
|
63653
63669
|
var tmp$ret$19 = tmp;
|
|
63654
63670
|
destination_4.e1(tmp$ret$19);
|
|
63655
63671
|
}
|
|
63656
|
-
return state.xaf(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
63672
|
+
return state.xaf(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.saw_1.tay(action.z9b_1, table.gameHistory)));
|
|
63657
63673
|
};
|
|
63658
|
-
protoOf(CombinationsMechanicReducer).
|
|
63674
|
+
protoOf(CombinationsMechanicReducer).eax = function (state, action) {
|
|
63659
63675
|
var table = state.y7t();
|
|
63660
63676
|
var player = getPlayer(table.players, action.k9b_1);
|
|
63661
63677
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -63710,13 +63726,13 @@
|
|
|
63710
63726
|
// Inline function 'kotlin.let' call
|
|
63711
63727
|
|
|
63712
63728
|
var cards = player.n7x_1;
|
|
63713
|
-
var newCards = this.
|
|
63714
|
-
var tmp1_cards = this.
|
|
63729
|
+
var newCards = this.qaw_1.p6n(cards, trumpSevenCard);
|
|
63730
|
+
var tmp1_cards = this.qaw_1.q6n(newCards, trumpCard);
|
|
63715
63731
|
var tmp3_players = updateItem(table.players, player.j83(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
63716
|
-
var tmp4_gameHistory = this.
|
|
63732
|
+
var tmp4_gameHistory = this.saw_1.uay(player.playerId, listOf(announcedCombination.r88_1), VOID, table.gameHistory);
|
|
63717
63733
|
return state.xaf(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
63718
63734
|
case 6:
|
|
63719
|
-
return state.xaf(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j83(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
63735
|
+
return state.xaf(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j83(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.saw_1.uay(player.playerId, listOf(announcedCombination.r88_1), VOID, table.gameHistory)));
|
|
63720
63736
|
default:
|
|
63721
63737
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
63722
63738
|
}
|
|
@@ -63797,7 +63813,7 @@
|
|
|
63797
63813
|
destination.e1(tmp$ret$1);
|
|
63798
63814
|
}
|
|
63799
63815
|
var updatedCombinations = destination;
|
|
63800
|
-
var tmp1_cards = $this.
|
|
63816
|
+
var tmp1_cards = $this.xaw_1.p6n(player.n7x_1, card);
|
|
63801
63817
|
var tmp2_points = player.q7x_1.t87(VOID, updatedCombinations);
|
|
63802
63818
|
var tmp3_options = player.o7x_1.k87(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, canTakeAllRemainingCards);
|
|
63803
63819
|
var tmp4_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
@@ -63836,11 +63852,11 @@
|
|
|
63836
63852
|
}
|
|
63837
63853
|
var tmp2_combinations = tmp;
|
|
63838
63854
|
var tmp4_points = tmp0_$this.t87(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
63839
|
-
var tmp5_hand = $this.
|
|
63855
|
+
var tmp5_hand = $this.zaw_1.zax(player.p7x_1, combinations);
|
|
63840
63856
|
return player.j83(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
63841
63857
|
}
|
|
63842
63858
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config, forceLastBribe, forceAcceptBella) {
|
|
63843
|
-
var bellaCombination = $this.
|
|
63859
|
+
var bellaCombination = $this.waw_1.ja8(players);
|
|
63844
63860
|
// Inline function 'kotlin.collections.associate' call
|
|
63845
63861
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
63846
63862
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -63866,7 +63882,7 @@
|
|
|
63866
63882
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.l9y_1 === player.playerId;
|
|
63867
63883
|
var tmp;
|
|
63868
63884
|
if (isGotLastBribe) {
|
|
63869
|
-
tmp = $this.
|
|
63885
|
+
tmp = $this.vaw_1.g88(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_185.i9x(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
|
|
63870
63886
|
} else {
|
|
63871
63887
|
tmp = null;
|
|
63872
63888
|
}
|
|
@@ -63886,7 +63902,7 @@
|
|
|
63886
63902
|
}
|
|
63887
63903
|
}
|
|
63888
63904
|
var tmp$ret$2 = tmp$ret$1;
|
|
63889
|
-
tmp_1 = $this.
|
|
63905
|
+
tmp_1 = $this.uaw_1.say(whoGotBribePlayerId, tmp$ret$2, players, config, forceAcceptBella);
|
|
63890
63906
|
} else {
|
|
63891
63907
|
tmp_1 = null;
|
|
63892
63908
|
}
|
|
@@ -63933,15 +63949,15 @@
|
|
|
63933
63949
|
return value1.q88_1 === value2.q88_1;
|
|
63934
63950
|
}
|
|
63935
63951
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
63936
|
-
this.
|
|
63937
|
-
this.
|
|
63938
|
-
this.
|
|
63939
|
-
this.
|
|
63940
|
-
this.
|
|
63941
|
-
this.
|
|
63942
|
-
this.
|
|
63943
|
-
}
|
|
63944
|
-
protoOf(EarnPointsMechanicReducer).
|
|
63952
|
+
this.uaw_1 = combinationsMechanicReducer;
|
|
63953
|
+
this.vaw_1 = combinationsFactory;
|
|
63954
|
+
this.waw_1 = combinationsInteractor;
|
|
63955
|
+
this.xaw_1 = dealerReducer;
|
|
63956
|
+
this.yaw_1 = gameHistoryReducer;
|
|
63957
|
+
this.zaw_1 = playerHandReducer;
|
|
63958
|
+
this.aax_1 = logger;
|
|
63959
|
+
}
|
|
63960
|
+
protoOf(EarnPointsMechanicReducer).dax = function (state, action) {
|
|
63945
63961
|
var table = state.y7t();
|
|
63946
63962
|
var player = getPlayer(table.players, action.p9b_1);
|
|
63947
63963
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.p9b_1, table.cardsOnTable.g1(), action.m9b_1));
|
|
@@ -63969,13 +63985,13 @@
|
|
|
63969
63985
|
var tmp$ret$0 = item.i8i_1;
|
|
63970
63986
|
destination.e1(tmp$ret$0);
|
|
63971
63987
|
}
|
|
63972
|
-
tmp_0 = this.
|
|
63988
|
+
tmp_0 = this.yaw_1.uay(tmp_1, destination, VOID, table.gameHistory);
|
|
63973
63989
|
}
|
|
63974
63990
|
var tmp1_elvis_lhs = tmp_0;
|
|
63975
63991
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
63976
63992
|
return state.xaf(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
63977
63993
|
};
|
|
63978
|
-
protoOf(EarnPointsMechanicReducer).
|
|
63994
|
+
protoOf(EarnPointsMechanicReducer).cax = function (state, action) {
|
|
63979
63995
|
var table = state.y7t();
|
|
63980
63996
|
var players = table.players;
|
|
63981
63997
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -64000,7 +64016,7 @@
|
|
|
64000
64016
|
destination_0.e1(tmp$ret$3);
|
|
64001
64017
|
}
|
|
64002
64018
|
if (!(toSet(destination_0).g1() === 1)) {
|
|
64003
|
-
this.
|
|
64019
|
+
this.aax_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
64004
64020
|
}
|
|
64005
64021
|
var playersCombinations = addPlayersCombinationsWhenPickBribe$default(this, action.s9b_1, players, config);
|
|
64006
64022
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -64023,10 +64039,10 @@
|
|
|
64023
64039
|
destination_1.e1(tmp$ret$6);
|
|
64024
64040
|
}
|
|
64025
64041
|
var tmp3_gameInfo = table.gameInfo.b9w(VOID, VOID, table.gameInfo.round.copy(VOID, action.t9b_1));
|
|
64026
|
-
var tmp4_gameHistory = this.
|
|
64042
|
+
var tmp4_gameHistory = this.yaw_1.vay(action.s9b_1, bribe, action.t9b_1, playersCombinations, table.gameHistory);
|
|
64027
64043
|
return state.xaf(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
64028
64044
|
};
|
|
64029
|
-
protoOf(EarnPointsMechanicReducer).
|
|
64045
|
+
protoOf(EarnPointsMechanicReducer).bax = function (state, action) {
|
|
64030
64046
|
var table = state.y7t();
|
|
64031
64047
|
var players = table.players;
|
|
64032
64048
|
var config = table.config;
|
|
@@ -64065,7 +64081,7 @@
|
|
|
64065
64081
|
destination.e1(tmp$ret$4);
|
|
64066
64082
|
}
|
|
64067
64083
|
var tmp2_gameInfo = table.gameInfo.b9w(VOID, VOID, table.gameInfo.round.copy(VOID, config.playerHandCardsSize));
|
|
64068
|
-
var tmp3_gameHistory = this.
|
|
64084
|
+
var tmp3_gameHistory = this.yaw_1.way(action.w9b_1, currentNumberOfBribe, playersCards, playersCombinations, table.gameHistory);
|
|
64069
64085
|
return state.xaf(table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, tmp0_cardsOnTable, VOID, VOID, VOID, tmp2_gameInfo, tmp3_gameHistory));
|
|
64070
64086
|
};
|
|
64071
64087
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -64073,7 +64089,7 @@
|
|
|
64073
64089
|
return metadata;
|
|
64074
64090
|
}
|
|
64075
64091
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
64076
|
-
$this.
|
|
64092
|
+
$this.jay_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
64077
64093
|
}
|
|
64078
64094
|
var tmp0_safe_receiver = metadata.randomData;
|
|
64079
64095
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -64085,12 +64101,12 @@
|
|
|
64085
64101
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_2(roundHistory.items, items))));
|
|
64086
64102
|
}
|
|
64087
64103
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
64088
|
-
this.
|
|
64089
|
-
this.
|
|
64090
|
-
this.
|
|
64091
|
-
this.
|
|
64104
|
+
this.gay_1 = pointsInteractor;
|
|
64105
|
+
this.hay_1 = teamsLogicProvider;
|
|
64106
|
+
this.iay_1 = gameLogicConfig;
|
|
64107
|
+
this.jay_1 = logger;
|
|
64092
64108
|
}
|
|
64093
|
-
protoOf(GameHistoryReducer).
|
|
64109
|
+
protoOf(GameHistoryReducer).xay = function (gameHistory) {
|
|
64094
64110
|
var roundNumber = gameHistory.rounds.length;
|
|
64095
64111
|
var tmp0 = gameHistory.rounds;
|
|
64096
64112
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -64102,7 +64118,7 @@
|
|
|
64102
64118
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
64103
64119
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
64104
64120
|
};
|
|
64105
|
-
protoOf(GameHistoryReducer).
|
|
64121
|
+
protoOf(GameHistoryReducer).may = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
64106
64122
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
64107
64123
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.t8z_1, System_instance.ik());
|
|
64108
64124
|
var tmp_0;
|
|
@@ -64127,14 +64143,14 @@
|
|
|
64127
64143
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
64128
64144
|
return gameHistory.copy(VOID, VOID, tmp_3, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_194.initial() : tmp0_elvis_lhs));
|
|
64129
64145
|
};
|
|
64130
|
-
protoOf(GameHistoryReducer).
|
|
64146
|
+
protoOf(GameHistoryReducer).ray = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
64131
64147
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
64132
64148
|
var tmp;
|
|
64133
64149
|
if (playersMode.isTeamGame) {
|
|
64134
64150
|
// Inline function 'kotlin.arrayOf' call
|
|
64135
64151
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
64136
64152
|
// Inline function 'kotlin.js.asDynamic' call
|
|
64137
|
-
tmp = [playerId, this.
|
|
64153
|
+
tmp = [playerId, this.hay_1.da3(playerId, players).playerId];
|
|
64138
64154
|
} else {
|
|
64139
64155
|
// Inline function 'kotlin.arrayOf' call
|
|
64140
64156
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -64144,7 +64160,7 @@
|
|
|
64144
64160
|
var roundCommitted = tmp;
|
|
64145
64161
|
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_2(currentRoundHistory.items, listOf(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.ik()))), roundCommitted)));
|
|
64146
64162
|
};
|
|
64147
|
-
protoOf(GameHistoryReducer).
|
|
64163
|
+
protoOf(GameHistoryReducer).oay = function (playersCards, gameHistory) {
|
|
64148
64164
|
// Inline function 'kotlin.collections.mapValues' call
|
|
64149
64165
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
64150
64166
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.g1()));
|
|
@@ -64158,14 +64174,14 @@
|
|
|
64158
64174
|
}
|
|
64159
64175
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ik())));
|
|
64160
64176
|
};
|
|
64161
|
-
protoOf(GameHistoryReducer).
|
|
64177
|
+
protoOf(GameHistoryReducer).yay = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
64162
64178
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ik())));
|
|
64163
64179
|
};
|
|
64164
|
-
protoOf(GameHistoryReducer).
|
|
64180
|
+
protoOf(GameHistoryReducer).uay = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
64165
64181
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
64166
|
-
return $super === VOID ? this.
|
|
64182
|
+
return $super === VOID ? this.yay(playerId, combinations, combinationsStates, gameHistory) : $super.yay.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
64167
64183
|
};
|
|
64168
|
-
protoOf(GameHistoryReducer).
|
|
64184
|
+
protoOf(GameHistoryReducer).vay = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
64169
64185
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.q8z_1, numberOfBribe, System_instance.ik()));
|
|
64170
64186
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
64171
64187
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -64224,7 +64240,7 @@
|
|
|
64224
64240
|
}
|
|
64225
64241
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
64226
64242
|
};
|
|
64227
|
-
protoOf(GameHistoryReducer).
|
|
64243
|
+
protoOf(GameHistoryReducer).way = function (playerId, numberOfBribe, playersCards, playersCombinations, gameHistory) {
|
|
64228
64244
|
var tmp = listOf(new TakeAllRemainingCardsItem(playerId, numberOfBribe, playersCards, System_instance.ik()));
|
|
64229
64245
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
64230
64246
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -64283,7 +64299,7 @@
|
|
|
64283
64299
|
}
|
|
64284
64300
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
64285
64301
|
};
|
|
64286
|
-
protoOf(GameHistoryReducer).
|
|
64302
|
+
protoOf(GameHistoryReducer).tay = function (winnerCombinations, gameHistory) {
|
|
64287
64303
|
// Inline function 'kotlin.collections.map' call
|
|
64288
64304
|
// Inline function 'kotlin.collections.mapTo' call
|
|
64289
64305
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -64299,7 +64315,7 @@
|
|
|
64299
64315
|
}
|
|
64300
64316
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
64301
64317
|
};
|
|
64302
|
-
protoOf(GameHistoryReducer).
|
|
64318
|
+
protoOf(GameHistoryReducer).kay = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
64303
64319
|
if (playerConnection == null) {
|
|
64304
64320
|
return gameHistory;
|
|
64305
64321
|
}
|
|
@@ -64311,17 +64327,17 @@
|
|
|
64311
64327
|
tmp = false;
|
|
64312
64328
|
}
|
|
64313
64329
|
var isShortDisconnectState = tmp;
|
|
64314
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
64330
|
+
if (isSupportedReason && !isShortDisconnectState || this.iay_1.verboseGameHistory) {
|
|
64315
64331
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.f77_1, playerConnection.q77(), System_instance.ik())));
|
|
64316
64332
|
}
|
|
64317
64333
|
return gameHistory;
|
|
64318
64334
|
};
|
|
64319
|
-
protoOf(GameHistoryReducer).
|
|
64335
|
+
protoOf(GameHistoryReducer).pay = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, failedContractsCount, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
64320
64336
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
64321
64337
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
64322
64338
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_194.initial() : tmp0_elvis_lhs;
|
|
64323
64339
|
var tmp;
|
|
64324
|
-
if (this.
|
|
64340
|
+
if (this.iay_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
64325
64341
|
// Inline function 'kotlin.collections.map' call
|
|
64326
64342
|
// Inline function 'kotlin.collections.mapTo' call
|
|
64327
64343
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -64336,7 +64352,7 @@
|
|
|
64336
64352
|
tmp = currentMetadata;
|
|
64337
64353
|
}
|
|
64338
64354
|
var updatedMetadata = tmp;
|
|
64339
|
-
var tmp1_items = plus_2(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
64355
|
+
var tmp1_items = plus_2(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.gay_1.kac(points), System_instance.ik())));
|
|
64340
64356
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners, failedContractsCount));
|
|
64341
64357
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
64342
64358
|
};
|
|
@@ -64361,7 +64377,7 @@
|
|
|
64361
64377
|
tmp = cardDeck;
|
|
64362
64378
|
}
|
|
64363
64379
|
var newCardDeck = tmp;
|
|
64364
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
64380
|
+
return new PreviousRound(bribes, newCardDeck, $this.baz_1.lac(players, config));
|
|
64365
64381
|
}
|
|
64366
64382
|
function roundFinishedGameInfoReducer($this, table) {
|
|
64367
64383
|
var gameInfo = table.gameInfo;
|
|
@@ -64406,10 +64422,10 @@
|
|
|
64406
64422
|
return points.s87(0, emptyList(), emptyList());
|
|
64407
64423
|
}
|
|
64408
64424
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
64409
|
-
this.
|
|
64410
|
-
this.
|
|
64425
|
+
this.baz_1 = pointsInteractor;
|
|
64426
|
+
this.caz_1 = historyReducer;
|
|
64411
64427
|
}
|
|
64412
|
-
protoOf(TableLifecycleReducerImpl).
|
|
64428
|
+
protoOf(TableLifecycleReducerImpl).zay = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
64413
64429
|
var tmp = Companion_instance_182;
|
|
64414
64430
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
64415
64431
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -64441,7 +64457,7 @@
|
|
|
64441
64457
|
}
|
|
64442
64458
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
64443
64459
|
};
|
|
64444
|
-
protoOf(TableLifecycleReducerImpl).
|
|
64460
|
+
protoOf(TableLifecycleReducerImpl).tax = function (table) {
|
|
64445
64461
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
64446
64462
|
// Inline function 'kotlin.collections.map' call
|
|
64447
64463
|
var this_0 = table.players;
|
|
@@ -64456,10 +64472,10 @@
|
|
|
64456
64472
|
var tmp2_cardsOnTable = emptyList();
|
|
64457
64473
|
var tmp3_bribes = emptyList();
|
|
64458
64474
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
64459
|
-
var tmp5_gameHistory = this.
|
|
64475
|
+
var tmp5_gameHistory = this.caz_1.xay(table.gameHistory);
|
|
64460
64476
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
64461
64477
|
};
|
|
64462
|
-
protoOf(TableLifecycleReducerImpl).
|
|
64478
|
+
protoOf(TableLifecycleReducerImpl).qay = function (table) {
|
|
64463
64479
|
// Inline function 'kotlin.collections.map' call
|
|
64464
64480
|
var this_0 = table.players;
|
|
64465
64481
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -64470,9 +64486,9 @@
|
|
|
64470
64486
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
64471
64487
|
destination.e1(tmp$ret$0);
|
|
64472
64488
|
}
|
|
64473
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
64489
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.caz_1.xay(table.gameHistory));
|
|
64474
64490
|
};
|
|
64475
|
-
protoOf(TableLifecycleReducerImpl).
|
|
64491
|
+
protoOf(TableLifecycleReducerImpl).aaz = function (table, newGameId) {
|
|
64476
64492
|
// Inline function 'kotlin.collections.map' call
|
|
64477
64493
|
var this_0 = table.players;
|
|
64478
64494
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -64511,93 +64527,93 @@
|
|
|
64511
64527
|
return true;
|
|
64512
64528
|
}
|
|
64513
64529
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
64514
|
-
this.
|
|
64515
|
-
this.
|
|
64516
|
-
this.
|
|
64517
|
-
this.
|
|
64530
|
+
this.daz_1 = $isEnableForPlayer;
|
|
64531
|
+
this.eaz_1 = $playerTurnInteractor;
|
|
64532
|
+
this.faz_1 = $logger;
|
|
64533
|
+
this.gaz_1 = $playerTurnMechanicReducer;
|
|
64518
64534
|
}
|
|
64519
64535
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).z7g = function (action) {
|
|
64520
64536
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
64521
64537
|
};
|
|
64522
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
64538
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).zav = function (state, action) {
|
|
64523
64539
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
64524
64540
|
var tmp$ret$0;
|
|
64525
64541
|
$l$block: {
|
|
64526
64542
|
var table = state.y7t();
|
|
64527
64543
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
64528
|
-
if (!this.
|
|
64544
|
+
if (!this.daz_1(player)) {
|
|
64529
64545
|
tmp$ret$0 = state;
|
|
64530
64546
|
break $l$block;
|
|
64531
64547
|
}
|
|
64532
|
-
var turnModel = this.
|
|
64548
|
+
var turnModel = this.eaz_1.fad(player, tmp2);
|
|
64533
64549
|
var tmp;
|
|
64534
64550
|
if (turnModel == null) {
|
|
64535
|
-
this.
|
|
64551
|
+
this.faz_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
64536
64552
|
tmp = state;
|
|
64537
64553
|
} else {
|
|
64538
|
-
tmp = state.xaf(this.
|
|
64554
|
+
tmp = state.xaf(this.gaz_1.eay(table, turnModel));
|
|
64539
64555
|
}
|
|
64540
64556
|
tmp$ret$0 = tmp;
|
|
64541
64557
|
}
|
|
64542
64558
|
return tmp$ret$0;
|
|
64543
64559
|
};
|
|
64544
64560
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).p7i = function (state, action) {
|
|
64545
|
-
return this.
|
|
64561
|
+
return this.zav((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
64546
64562
|
};
|
|
64547
64563
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
64548
64564
|
return true;
|
|
64549
64565
|
}
|
|
64550
64566
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
64551
|
-
this.
|
|
64552
|
-
this.
|
|
64553
|
-
this.
|
|
64554
|
-
this.
|
|
64567
|
+
this.haz_1 = $isEnableForPlayer;
|
|
64568
|
+
this.iaz_1 = $playerTurnInteractor;
|
|
64569
|
+
this.jaz_1 = $logger;
|
|
64570
|
+
this.kaz_1 = $playerTurnMechanicReducer;
|
|
64555
64571
|
}
|
|
64556
64572
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).z7g = function (action) {
|
|
64557
64573
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
64558
64574
|
};
|
|
64559
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
64575
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).zav = function (state, action) {
|
|
64560
64576
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
64561
64577
|
var tmp$ret$0;
|
|
64562
64578
|
$l$block: {
|
|
64563
64579
|
var table = state.y7t();
|
|
64564
64580
|
var player = getPlayerTurn(tmp2, table.players);
|
|
64565
|
-
if (player == null || !this.
|
|
64581
|
+
if (player == null || !this.haz_1(player)) {
|
|
64566
64582
|
tmp$ret$0 = state;
|
|
64567
64583
|
break $l$block;
|
|
64568
64584
|
}
|
|
64569
|
-
var turnModel = this.
|
|
64585
|
+
var turnModel = this.iaz_1.fad(player, tmp2);
|
|
64570
64586
|
var tmp;
|
|
64571
64587
|
if (turnModel == null) {
|
|
64572
|
-
this.
|
|
64588
|
+
this.jaz_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
64573
64589
|
tmp = state;
|
|
64574
64590
|
} else {
|
|
64575
|
-
tmp = state.xaf(this.
|
|
64591
|
+
tmp = state.xaf(this.kaz_1.eay(table, turnModel));
|
|
64576
64592
|
}
|
|
64577
64593
|
tmp$ret$0 = tmp;
|
|
64578
64594
|
}
|
|
64579
64595
|
return tmp$ret$0;
|
|
64580
64596
|
};
|
|
64581
64597
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).p7i = function (state, action) {
|
|
64582
|
-
return this.
|
|
64598
|
+
return this.zav((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
64583
64599
|
};
|
|
64584
64600
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
64585
64601
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
64586
64602
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
64587
64603
|
}
|
|
64588
64604
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
64589
|
-
this.
|
|
64590
|
-
this.
|
|
64605
|
+
this.laz_1 = $playerTurnInteractor;
|
|
64606
|
+
this.maz_1 = $playerTurnMechanicReducer;
|
|
64591
64607
|
}
|
|
64592
64608
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).z7g = function (action) {
|
|
64593
64609
|
return isInterface(action, NextPlayerTurnAction);
|
|
64594
64610
|
};
|
|
64595
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
64611
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).zav = function (state, action) {
|
|
64596
64612
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
64597
64613
|
var tmp$ret$0;
|
|
64598
64614
|
$l$block: {
|
|
64599
64615
|
var table = state.y7t();
|
|
64600
|
-
var tmp0_elvis_lhs = this.
|
|
64616
|
+
var tmp0_elvis_lhs = this.laz_1.ead(tmp2, table);
|
|
64601
64617
|
var tmp;
|
|
64602
64618
|
if (tmp0_elvis_lhs == null) {
|
|
64603
64619
|
tmp$ret$0 = state;
|
|
@@ -64606,12 +64622,12 @@
|
|
|
64606
64622
|
tmp = tmp0_elvis_lhs;
|
|
64607
64623
|
}
|
|
64608
64624
|
var turnModel = tmp;
|
|
64609
|
-
tmp$ret$0 = state.xaf(this.
|
|
64625
|
+
tmp$ret$0 = state.xaf(this.maz_1.day(table, turnModel));
|
|
64610
64626
|
}
|
|
64611
64627
|
return tmp$ret$0;
|
|
64612
64628
|
};
|
|
64613
64629
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).p7i = function (state, action) {
|
|
64614
|
-
return this.
|
|
64630
|
+
return this.zav((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
64615
64631
|
};
|
|
64616
64632
|
function get_isCreated(_this__u8e3s4) {
|
|
64617
64633
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -64627,7 +64643,7 @@
|
|
|
64627
64643
|
}
|
|
64628
64644
|
function Companion_200() {
|
|
64629
64645
|
}
|
|
64630
|
-
protoOf(Companion_200).
|
|
64646
|
+
protoOf(Companion_200).naz = function (payload) {
|
|
64631
64647
|
var tmp;
|
|
64632
64648
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
64633
64649
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -64649,29 +64665,29 @@
|
|
|
64649
64665
|
return Companion_instance_205;
|
|
64650
64666
|
}
|
|
64651
64667
|
function CallbackWrapperLoggerOutput(logger, payloadMapper) {
|
|
64652
|
-
this.
|
|
64653
|
-
this.
|
|
64668
|
+
this.oaz_1 = logger;
|
|
64669
|
+
this.paz_1 = payloadMapper;
|
|
64654
64670
|
}
|
|
64655
64671
|
protoOf(CallbackWrapperLoggerOutput).a5n = function (tag, message, payload) {
|
|
64656
|
-
this.
|
|
64672
|
+
this.oaz_1.d(tag, message, this.paz_1(payload));
|
|
64657
64673
|
};
|
|
64658
64674
|
protoOf(CallbackWrapperLoggerOutput).b5n = function (tag, message, exception, payload) {
|
|
64659
|
-
this.
|
|
64675
|
+
this.oaz_1.e(tag, message, exception, this.paz_1(payload));
|
|
64660
64676
|
};
|
|
64661
64677
|
protoOf(CallbackWrapperLoggerOutput).e5n = function (tag, message, payload) {
|
|
64662
|
-
this.
|
|
64678
|
+
this.oaz_1.i(tag, message, this.paz_1(payload));
|
|
64663
64679
|
};
|
|
64664
64680
|
protoOf(CallbackWrapperLoggerOutput).d5n = function (tag, message, exception, payload) {
|
|
64665
|
-
this.
|
|
64681
|
+
this.oaz_1.v(tag, message, exception, this.paz_1(payload));
|
|
64666
64682
|
};
|
|
64667
64683
|
protoOf(CallbackWrapperLoggerOutput).c5n = function (tag, message, exception, payload) {
|
|
64668
|
-
this.
|
|
64684
|
+
this.oaz_1.w(tag, message, exception, this.paz_1(payload));
|
|
64669
64685
|
};
|
|
64670
64686
|
function FileLoggerOutput() {
|
|
64671
64687
|
}
|
|
64672
64688
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
64673
|
-
this.
|
|
64674
|
-
this.
|
|
64689
|
+
this.zaz_1 = $$this$unsafeFlow;
|
|
64690
|
+
this.ab0_1 = $types;
|
|
64675
64691
|
CoroutineImpl.call(this, resultContinuation);
|
|
64676
64692
|
}
|
|
64677
64693
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).m2l = function (value, $completion) {
|
|
@@ -64691,14 +64707,14 @@
|
|
|
64691
64707
|
switch (tmp) {
|
|
64692
64708
|
case 0:
|
|
64693
64709
|
this.f9_1 = 5;
|
|
64694
|
-
this.
|
|
64695
|
-
this.
|
|
64710
|
+
this.db0_1 = this.zaz_1;
|
|
64711
|
+
this.cb0_1 = this.bb0_1;
|
|
64696
64712
|
this.e9_1 = 1;
|
|
64697
64713
|
continue $sm;
|
|
64698
64714
|
case 1:
|
|
64699
|
-
var $this$transform = this.
|
|
64700
|
-
var value = this.
|
|
64701
|
-
if (contains(this.
|
|
64715
|
+
var $this$transform = this.db0_1;
|
|
64716
|
+
var value = this.cb0_1;
|
|
64717
|
+
if (contains(this.ab0_1, value.type)) {
|
|
64702
64718
|
this.e9_1 = 3;
|
|
64703
64719
|
suspendResult = $this$transform.s26(value, this);
|
|
64704
64720
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -64738,8 +64754,8 @@
|
|
|
64738
64754
|
while (true);
|
|
64739
64755
|
};
|
|
64740
64756
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).n2l = function (value, completion) {
|
|
64741
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
64742
|
-
i.
|
|
64757
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.zaz_1, this.ab0_1, completion);
|
|
64758
|
+
i.bb0_1 = value;
|
|
64743
64759
|
return i;
|
|
64744
64760
|
};
|
|
64745
64761
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -64752,8 +64768,8 @@
|
|
|
64752
64768
|
}
|
|
64753
64769
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
64754
64770
|
CoroutineImpl.call(this, resultContinuation);
|
|
64755
|
-
this.
|
|
64756
|
-
this.
|
|
64771
|
+
this.mb0_1 = _this__u8e3s4;
|
|
64772
|
+
this.nb0_1 = collector;
|
|
64757
64773
|
}
|
|
64758
64774
|
protoOf($collectCOROUTINE$).m9 = function () {
|
|
64759
64775
|
var suspendResult = this.g9_1;
|
|
@@ -64763,10 +64779,10 @@
|
|
|
64763
64779
|
switch (tmp) {
|
|
64764
64780
|
case 0:
|
|
64765
64781
|
this.f9_1 = 2;
|
|
64766
|
-
var $this$unsafeFlow = this.
|
|
64782
|
+
var $this$unsafeFlow = this.nb0_1;
|
|
64767
64783
|
this.e9_1 = 1;
|
|
64768
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
64769
|
-
suspendResult = this.
|
|
64784
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.mb0_1.pb0_1, null);
|
|
64785
|
+
suspendResult = this.mb0_1.ob0_1.p25(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
64770
64786
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
64771
64787
|
return suspendResult;
|
|
64772
64788
|
}
|
|
@@ -64790,8 +64806,8 @@
|
|
|
64790
64806
|
};
|
|
64791
64807
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
64792
64808
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
64793
|
-
$this.
|
|
64794
|
-
var tmp0_elvis_lhs = $this.
|
|
64809
|
+
$this.sb0_1;
|
|
64810
|
+
var tmp0_elvis_lhs = $this.qb0_1(payload);
|
|
64795
64811
|
var tmp;
|
|
64796
64812
|
if (tmp0_elvis_lhs == null) {
|
|
64797
64813
|
return Unit_instance;
|
|
@@ -64800,7 +64816,7 @@
|
|
|
64800
64816
|
}
|
|
64801
64817
|
var key = tmp;
|
|
64802
64818
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
64803
|
-
var this_0 = $this.
|
|
64819
|
+
var this_0 = $this.tb0_1;
|
|
64804
64820
|
var value = this_0.v2(key);
|
|
64805
64821
|
var tmp_0;
|
|
64806
64822
|
if (value == null) {
|
|
@@ -64812,45 +64828,41 @@
|
|
|
64812
64828
|
}
|
|
64813
64829
|
var logger = tmp_0;
|
|
64814
64830
|
var tmp1_key = key.k7m();
|
|
64815
|
-
logger.
|
|
64831
|
+
logger.ub0_1.a2a(new LoggerOutputDataDto(type, tmp1_key, tag, message, stackTrace));
|
|
64816
64832
|
}
|
|
64817
64833
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
64818
64834
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
64819
64835
|
return log($this, type, tag, message, payload, stackTrace);
|
|
64820
64836
|
}
|
|
64821
|
-
function LoggerModel(flow,
|
|
64837
|
+
function LoggerModel(flow, job) {
|
|
64822
64838
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
64823
|
-
controller = controller === VOID ? null : controller;
|
|
64824
64839
|
job = job === VOID ? null : job;
|
|
64825
|
-
this.
|
|
64826
|
-
this.
|
|
64827
|
-
this.tb0_1 = job;
|
|
64840
|
+
this.ub0_1 = flow;
|
|
64841
|
+
this.vb0_1 = job;
|
|
64828
64842
|
}
|
|
64829
|
-
protoOf(LoggerModel).
|
|
64830
|
-
this.
|
|
64831
|
-
var tmp0_safe_receiver = this.
|
|
64843
|
+
protoOf(LoggerModel).wb0 = function () {
|
|
64844
|
+
this.ub0_1.e2a();
|
|
64845
|
+
var tmp0_safe_receiver = this.vb0_1;
|
|
64832
64846
|
if (tmp0_safe_receiver == null)
|
|
64833
64847
|
null;
|
|
64834
64848
|
else {
|
|
64835
64849
|
tmp0_safe_receiver.t1n();
|
|
64836
64850
|
}
|
|
64837
64851
|
};
|
|
64838
|
-
protoOf(LoggerModel).
|
|
64839
|
-
return new LoggerModel(flow,
|
|
64852
|
+
protoOf(LoggerModel).xb0 = function (flow, job) {
|
|
64853
|
+
return new LoggerModel(flow, job);
|
|
64840
64854
|
};
|
|
64841
|
-
protoOf(LoggerModel).
|
|
64842
|
-
flow = flow === VOID ? this.
|
|
64843
|
-
|
|
64844
|
-
|
|
64845
|
-
return $super === VOID ? this.vb0(flow, controller, job) : $super.vb0.call(this, flow, controller, job);
|
|
64855
|
+
protoOf(LoggerModel).yb0 = function (flow, job, $super) {
|
|
64856
|
+
flow = flow === VOID ? this.ub0_1 : flow;
|
|
64857
|
+
job = job === VOID ? this.vb0_1 : job;
|
|
64858
|
+
return $super === VOID ? this.xb0(flow, job) : $super.xb0.call(this, flow, job);
|
|
64846
64859
|
};
|
|
64847
64860
|
protoOf(LoggerModel).toString = function () {
|
|
64848
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
64861
|
+
return 'LoggerModel(flow=' + toString(this.ub0_1) + ', job=' + toString_0(this.vb0_1) + ')';
|
|
64849
64862
|
};
|
|
64850
64863
|
protoOf(LoggerModel).hashCode = function () {
|
|
64851
|
-
var result = hashCode(this.
|
|
64852
|
-
result = imul(result, 31) + (this.
|
|
64853
|
-
result = imul(result, 31) + (this.tb0_1 == null ? 0 : hashCode(this.tb0_1)) | 0;
|
|
64864
|
+
var result = hashCode(this.ub0_1);
|
|
64865
|
+
result = imul(result, 31) + (this.vb0_1 == null ? 0 : hashCode(this.vb0_1)) | 0;
|
|
64854
64866
|
return result;
|
|
64855
64867
|
};
|
|
64856
64868
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -64858,19 +64870,17 @@
|
|
|
64858
64870
|
return true;
|
|
64859
64871
|
if (!(other instanceof LoggerModel))
|
|
64860
64872
|
return false;
|
|
64861
|
-
if (!equals(this.
|
|
64862
|
-
return false;
|
|
64863
|
-
if (!equals(this.sb0_1, other.sb0_1))
|
|
64873
|
+
if (!equals(this.ub0_1, other.ub0_1))
|
|
64864
64874
|
return false;
|
|
64865
|
-
if (!equals(this.
|
|
64875
|
+
if (!equals(this.vb0_1, other.vb0_1))
|
|
64866
64876
|
return false;
|
|
64867
64877
|
return true;
|
|
64868
64878
|
};
|
|
64869
64879
|
function Companion_201() {
|
|
64870
|
-
this.
|
|
64871
|
-
this.
|
|
64880
|
+
this.zb0_1 = 1000;
|
|
64881
|
+
this.ab1_1 = 'FileLoggerOutput';
|
|
64872
64882
|
}
|
|
64873
|
-
protoOf(Companion_201).
|
|
64883
|
+
protoOf(Companion_201).bb1 = function (payload) {
|
|
64874
64884
|
var tmp;
|
|
64875
64885
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
64876
64886
|
tmp = payload.id;
|
|
@@ -64891,7 +64901,7 @@
|
|
|
64891
64901
|
}
|
|
64892
64902
|
return tmp;
|
|
64893
64903
|
};
|
|
64894
|
-
protoOf(Companion_201).
|
|
64904
|
+
protoOf(Companion_201).cb1 = function (payload) {
|
|
64895
64905
|
var tmp;
|
|
64896
64906
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
64897
64907
|
tmp = first(payload.users).g76_1;
|
|
@@ -64909,13 +64919,13 @@
|
|
|
64909
64919
|
return Companion_instance_206;
|
|
64910
64920
|
}
|
|
64911
64921
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
64912
|
-
this.
|
|
64922
|
+
this.db1_1 = function_0;
|
|
64913
64923
|
}
|
|
64914
64924
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).s26 = function (value, $completion) {
|
|
64915
|
-
return this.
|
|
64925
|
+
return this.db1_1(value, $completion);
|
|
64916
64926
|
};
|
|
64917
64927
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).s3 = function () {
|
|
64918
|
-
return this.
|
|
64928
|
+
return this.db1_1;
|
|
64919
64929
|
};
|
|
64920
64930
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
64921
64931
|
var tmp;
|
|
@@ -64936,8 +64946,8 @@
|
|
|
64936
64946
|
return hashCode(this.s3());
|
|
64937
64947
|
};
|
|
64938
64948
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
64939
|
-
this.
|
|
64940
|
-
this.
|
|
64949
|
+
this.ob0_1 = $this;
|
|
64950
|
+
this.pb0_1 = $types;
|
|
64941
64951
|
}
|
|
64942
64952
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).t26 = function (collector, $completion) {
|
|
64943
64953
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -64948,86 +64958,28 @@
|
|
|
64948
64958
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).p25 = function (collector, $completion) {
|
|
64949
64959
|
return this.t26(collector, $completion);
|
|
64950
64960
|
};
|
|
64951
|
-
function $destroyAndCompressCOROUTINE$(_this__u8e3s4, loggerKey, resultContinuation) {
|
|
64952
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
64953
|
-
this.kb1_1 = _this__u8e3s4;
|
|
64954
|
-
this.lb1_1 = loggerKey;
|
|
64955
|
-
}
|
|
64956
|
-
protoOf($destroyAndCompressCOROUTINE$).m9 = function () {
|
|
64957
|
-
var suspendResult = this.g9_1;
|
|
64958
|
-
$sm: do
|
|
64959
|
-
try {
|
|
64960
|
-
var tmp = this.e9_1;
|
|
64961
|
-
switch (tmp) {
|
|
64962
|
-
case 0:
|
|
64963
|
-
this.f9_1 = 3;
|
|
64964
|
-
this.kb1_1.d('FileLoggerOutput', 'destroy and compress logger ' + toString(this.lb1_1));
|
|
64965
|
-
this.kb1_1.pb0_1;
|
|
64966
|
-
var model = this.kb1_1.qb0_1.v2(this.lb1_1);
|
|
64967
|
-
if (model == null)
|
|
64968
|
-
null;
|
|
64969
|
-
else {
|
|
64970
|
-
model.ub0();
|
|
64971
|
-
}
|
|
64972
|
-
|
|
64973
|
-
this.kb1_1.qb0_1.h3(this.lb1_1);
|
|
64974
|
-
var controller = model == null ? null : model.sb0_1;
|
|
64975
|
-
if (controller == null) {
|
|
64976
|
-
this.mb1_1 = null;
|
|
64977
|
-
this.e9_1 = 2;
|
|
64978
|
-
continue $sm;
|
|
64979
|
-
} else {
|
|
64980
|
-
this.e9_1 = 1;
|
|
64981
|
-
suspendResult = controller.k7g(this);
|
|
64982
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
64983
|
-
return suspendResult;
|
|
64984
|
-
}
|
|
64985
|
-
continue $sm;
|
|
64986
|
-
}
|
|
64987
|
-
|
|
64988
|
-
case 1:
|
|
64989
|
-
var tmp_0 = this;
|
|
64990
|
-
tmp_0.mb1_1 = Unit_instance;
|
|
64991
|
-
this.e9_1 = 2;
|
|
64992
|
-
continue $sm;
|
|
64993
|
-
case 2:
|
|
64994
|
-
return Unit_instance;
|
|
64995
|
-
case 3:
|
|
64996
|
-
throw this.h9_1;
|
|
64997
|
-
}
|
|
64998
|
-
} catch ($p) {
|
|
64999
|
-
var e = $p;
|
|
65000
|
-
if (this.f9_1 === 3) {
|
|
65001
|
-
throw e;
|
|
65002
|
-
} else {
|
|
65003
|
-
this.e9_1 = this.f9_1;
|
|
65004
|
-
this.h9_1 = e;
|
|
65005
|
-
}
|
|
65006
|
-
}
|
|
65007
|
-
while (true);
|
|
65008
|
-
};
|
|
65009
64961
|
function FileLoggerOutputImpl(payloadToLoggerKeyMapper, enabled) {
|
|
65010
64962
|
enabled = enabled === VOID ? true : enabled;
|
|
65011
|
-
this.
|
|
65012
|
-
this.
|
|
64963
|
+
this.qb0_1 = payloadToLoggerKeyMapper;
|
|
64964
|
+
this.rb0_1 = enabled;
|
|
65013
64965
|
var tmp = this;
|
|
65014
64966
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
65015
|
-
tmp.
|
|
64967
|
+
tmp.sb0_1 = get_atomicfu$reentrantLock();
|
|
65016
64968
|
var tmp_0 = this;
|
|
65017
64969
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
65018
|
-
tmp_0.
|
|
64970
|
+
tmp_0.tb0_1 = LinkedHashMap_init_$Create$();
|
|
65019
64971
|
}
|
|
65020
64972
|
protoOf(FileLoggerOutputImpl).f5n = function (_set____db54di) {
|
|
65021
|
-
this.
|
|
64973
|
+
this.rb0_1 = _set____db54di;
|
|
65022
64974
|
};
|
|
65023
64975
|
protoOf(FileLoggerOutputImpl).g5n = function () {
|
|
65024
|
-
return this.
|
|
64976
|
+
return this.rb0_1;
|
|
65025
64977
|
};
|
|
65026
|
-
protoOf(FileLoggerOutputImpl).
|
|
64978
|
+
protoOf(FileLoggerOutputImpl).qaz = function (loggerKey, types) {
|
|
65027
64979
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
65028
|
-
this.
|
|
64980
|
+
this.sb0_1;
|
|
65029
64981
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
65030
|
-
var this_0 = this.
|
|
64982
|
+
var this_0 = this.tb0_1;
|
|
65031
64983
|
var value = this_0.v2(loggerKey);
|
|
65032
64984
|
var tmp;
|
|
65033
64985
|
if (value == null) {
|
|
@@ -65040,33 +64992,27 @@
|
|
|
65040
64992
|
var logger = tmp;
|
|
65041
64993
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
65042
64994
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
65043
|
-
var this_1 = logger.
|
|
64995
|
+
var this_1 = logger.ub0_1;
|
|
65044
64996
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
65045
64997
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
65046
64998
|
};
|
|
65047
|
-
protoOf(FileLoggerOutputImpl).
|
|
64999
|
+
protoOf(FileLoggerOutputImpl).taq = function (loggerKey) {
|
|
65048
65000
|
this.d('FileLoggerOutput', 'destroy logger ' + toString(loggerKey));
|
|
65049
65001
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
65050
|
-
this.
|
|
65051
|
-
var tmp0_safe_receiver = this.
|
|
65002
|
+
this.sb0_1;
|
|
65003
|
+
var tmp0_safe_receiver = this.tb0_1.v2(loggerKey);
|
|
65052
65004
|
if (tmp0_safe_receiver == null)
|
|
65053
65005
|
null;
|
|
65054
65006
|
else {
|
|
65055
|
-
tmp0_safe_receiver.
|
|
65007
|
+
tmp0_safe_receiver.wb0();
|
|
65056
65008
|
}
|
|
65057
|
-
this.
|
|
65058
|
-
};
|
|
65059
|
-
protoOf(FileLoggerOutputImpl).saq = function (loggerKey, $completion) {
|
|
65060
|
-
var tmp = new $destroyAndCompressCOROUTINE$(this, loggerKey, $completion);
|
|
65061
|
-
tmp.g9_1 = Unit_instance;
|
|
65062
|
-
tmp.h9_1 = null;
|
|
65063
|
-
return tmp.m9();
|
|
65009
|
+
this.tb0_1.h3(loggerKey);
|
|
65064
65010
|
};
|
|
65065
|
-
protoOf(FileLoggerOutputImpl).
|
|
65011
|
+
protoOf(FileLoggerOutputImpl).fas = function (loggerKey, job) {
|
|
65066
65012
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
65067
|
-
this.
|
|
65013
|
+
this.sb0_1;
|
|
65068
65014
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
65069
|
-
var this_0 = this.
|
|
65015
|
+
var this_0 = this.tb0_1;
|
|
65070
65016
|
var value = this_0.v2(loggerKey);
|
|
65071
65017
|
var tmp;
|
|
65072
65018
|
if (value == null) {
|
|
@@ -65076,31 +65022,31 @@
|
|
|
65076
65022
|
} else {
|
|
65077
65023
|
tmp = value;
|
|
65078
65024
|
}
|
|
65079
|
-
var updatedModel = tmp.
|
|
65025
|
+
var updatedModel = tmp.yb0(VOID, job);
|
|
65080
65026
|
// Inline function 'kotlin.collections.set' call
|
|
65081
|
-
this.
|
|
65027
|
+
this.tb0_1.g3(loggerKey, updatedModel);
|
|
65082
65028
|
this.d('FileLoggerOutput', 'create logger ' + toString(loggerKey));
|
|
65083
65029
|
};
|
|
65084
65030
|
protoOf(FileLoggerOutputImpl).b3 = function () {
|
|
65085
65031
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
65086
|
-
this.
|
|
65032
|
+
this.sb0_1;
|
|
65087
65033
|
// Inline function 'kotlin.collections.forEach' call
|
|
65088
65034
|
// Inline function 'kotlin.collections.iterator' call
|
|
65089
|
-
var _iterator__ex2g4s = this.
|
|
65035
|
+
var _iterator__ex2g4s = this.tb0_1.m1().t();
|
|
65090
65036
|
while (_iterator__ex2g4s.u()) {
|
|
65091
65037
|
var element = _iterator__ex2g4s.v();
|
|
65092
|
-
element.o1().
|
|
65038
|
+
element.o1().wb0();
|
|
65093
65039
|
}
|
|
65094
|
-
this.
|
|
65040
|
+
this.tb0_1.b3();
|
|
65095
65041
|
};
|
|
65096
65042
|
protoOf(FileLoggerOutputImpl).a5n = function (tag, message, payload) {
|
|
65097
|
-
if (!this.
|
|
65043
|
+
if (!this.rb0_1)
|
|
65098
65044
|
return Unit_instance;
|
|
65099
65045
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
65100
65046
|
log$default(this, tmp0_type, tag, message, payload);
|
|
65101
65047
|
};
|
|
65102
65048
|
protoOf(FileLoggerOutputImpl).b5n = function (tag, message, exception, payload) {
|
|
65103
|
-
if (!this.
|
|
65049
|
+
if (!this.rb0_1)
|
|
65104
65050
|
return Unit_instance;
|
|
65105
65051
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
65106
65052
|
var tmp;
|
|
@@ -65115,13 +65061,13 @@
|
|
|
65115
65061
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
65116
65062
|
};
|
|
65117
65063
|
protoOf(FileLoggerOutputImpl).e5n = function (tag, message, payload) {
|
|
65118
|
-
if (!this.
|
|
65064
|
+
if (!this.rb0_1)
|
|
65119
65065
|
return Unit_instance;
|
|
65120
65066
|
var tmp0_type = LogType_INFO_getInstance();
|
|
65121
65067
|
log(this, tmp0_type, tag, message, payload, null);
|
|
65122
65068
|
};
|
|
65123
65069
|
protoOf(FileLoggerOutputImpl).d5n = function (tag, message, exception, payload) {
|
|
65124
|
-
if (!this.
|
|
65070
|
+
if (!this.rb0_1)
|
|
65125
65071
|
return Unit_instance;
|
|
65126
65072
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
65127
65073
|
var tmp;
|
|
@@ -65136,7 +65082,7 @@
|
|
|
65136
65082
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
65137
65083
|
};
|
|
65138
65084
|
protoOf(FileLoggerOutputImpl).c5n = function (tag, message, exception, payload) {
|
|
65139
|
-
if (!this.
|
|
65085
|
+
if (!this.rb0_1)
|
|
65140
65086
|
return Unit_instance;
|
|
65141
65087
|
var tmp4_type = LogType_WARN_getInstance();
|
|
65142
65088
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -65674,9 +65620,9 @@
|
|
|
65674
65620
|
}
|
|
65675
65621
|
}
|
|
65676
65622
|
function GameHelperImpl(logger) {
|
|
65677
|
-
this.
|
|
65623
|
+
this.hb1_1 = logger;
|
|
65678
65624
|
}
|
|
65679
|
-
protoOf(GameHelperImpl).
|
|
65625
|
+
protoOf(GameHelperImpl).eb1 = function (store, playerIds, includeBots) {
|
|
65680
65626
|
var state = store.state;
|
|
65681
65627
|
var tmp;
|
|
65682
65628
|
if (!state.a7u()) {
|
|
@@ -65722,7 +65668,7 @@
|
|
|
65722
65668
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
65723
65669
|
return copyToArray(destination_1);
|
|
65724
65670
|
};
|
|
65725
|
-
protoOf(GameHelperImpl).
|
|
65671
|
+
protoOf(GameHelperImpl).fb1 = function (store, playerIds, includeBots) {
|
|
65726
65672
|
var state = store.state;
|
|
65727
65673
|
var tmp;
|
|
65728
65674
|
if (!state.a7u()) {
|
|
@@ -65893,10 +65839,10 @@
|
|
|
65893
65839
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
65894
65840
|
return copyToArray(destination);
|
|
65895
65841
|
};
|
|
65896
|
-
protoOf(GameHelperImpl).
|
|
65842
|
+
protoOf(GameHelperImpl).gb1 = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
65897
65843
|
var roomMode = mapToRoomMode(mode);
|
|
65898
65844
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
65899
|
-
this.
|
|
65845
|
+
this.hb1_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
65900
65846
|
var options = Companion_instance_190.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
65901
65847
|
var playersMode = this.mapPlayers(players);
|
|
65902
65848
|
var pointsMode = this.mapPoints(points);
|
|
@@ -66331,40 +66277,40 @@
|
|
|
66331
66277
|
function getRandomAvatarData_0($this) {
|
|
66332
66278
|
var avatarSetNumber = Default_getInstance().k1(get_entries_6().g1());
|
|
66333
66279
|
var avatarSet = get_entries_6().h1(avatarSetNumber);
|
|
66334
|
-
return new AvatarData(Default_getInstance().k1(avatarSet.
|
|
66280
|
+
return new AvatarData(Default_getInstance().k1(avatarSet.lb1()), avatarSet);
|
|
66335
66281
|
}
|
|
66336
66282
|
function getAvatarUrlByIndex($this, data) {
|
|
66337
66283
|
return mapToPattern($this, data);
|
|
66338
66284
|
}
|
|
66339
66285
|
function getNicknameByIndex($this, data) {
|
|
66340
|
-
return data.
|
|
66286
|
+
return data.nb1_1.ob1(data.mb1_1);
|
|
66341
66287
|
}
|
|
66342
66288
|
function mapToPattern($this, data) {
|
|
66343
|
-
return 'debertz://raspberry.games/' + data.
|
|
66289
|
+
return 'debertz://raspberry.games/' + data.nb1_1.a1_1 + '/' + data.mb1_1;
|
|
66344
66290
|
}
|
|
66345
66291
|
function Companion_202() {
|
|
66346
66292
|
Companion_instance_207 = this;
|
|
66347
|
-
this.
|
|
66293
|
+
this.pb1_1 = 'debertz://raspberry.games';
|
|
66348
66294
|
var tmp = this;
|
|
66349
66295
|
// Inline function 'kotlin.arrayOf' call
|
|
66350
66296
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
66351
66297
|
// Inline function 'kotlin.js.asDynamic' call
|
|
66352
|
-
tmp.
|
|
66298
|
+
tmp.qb1_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
66353
66299
|
var tmp_0 = this;
|
|
66354
66300
|
// Inline function 'kotlin.arrayOf' call
|
|
66355
66301
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
66356
66302
|
// Inline function 'kotlin.js.asDynamic' call
|
|
66357
|
-
tmp_0.
|
|
66303
|
+
tmp_0.rb1_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'];
|
|
66358
66304
|
var tmp_1 = this;
|
|
66359
66305
|
// Inline function 'kotlin.arrayOf' call
|
|
66360
66306
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
66361
66307
|
// Inline function 'kotlin.js.asDynamic' call
|
|
66362
|
-
tmp_1.
|
|
66308
|
+
tmp_1.sb1_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
66363
66309
|
var tmp_2 = this;
|
|
66364
66310
|
// Inline function 'kotlin.arrayOf' call
|
|
66365
66311
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
66366
66312
|
// Inline function 'kotlin.js.asDynamic' call
|
|
66367
|
-
tmp_2.
|
|
66313
|
+
tmp_2.tb1_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'];
|
|
66368
66314
|
}
|
|
66369
66315
|
var Companion_instance_207;
|
|
66370
66316
|
function Companion_getInstance_209() {
|
|
@@ -66375,14 +66321,14 @@
|
|
|
66375
66321
|
function AvatarSet(name, ordinal) {
|
|
66376
66322
|
Enum.call(this, name, ordinal);
|
|
66377
66323
|
}
|
|
66378
|
-
protoOf(AvatarSet).
|
|
66324
|
+
protoOf(AvatarSet).lb1 = function () {
|
|
66379
66325
|
var tmp;
|
|
66380
66326
|
switch (this.a1_1) {
|
|
66381
66327
|
case 0:
|
|
66382
|
-
tmp = Companion_getInstance_209().
|
|
66328
|
+
tmp = Companion_getInstance_209().rb1_1.length;
|
|
66383
66329
|
break;
|
|
66384
66330
|
case 1:
|
|
66385
|
-
tmp = Companion_getInstance_209().
|
|
66331
|
+
tmp = Companion_getInstance_209().tb1_1.length;
|
|
66386
66332
|
break;
|
|
66387
66333
|
default:
|
|
66388
66334
|
noWhenBranchMatchedException();
|
|
@@ -66390,14 +66336,14 @@
|
|
|
66390
66336
|
}
|
|
66391
66337
|
return tmp;
|
|
66392
66338
|
};
|
|
66393
|
-
protoOf(AvatarSet).
|
|
66339
|
+
protoOf(AvatarSet).ob1 = function (index) {
|
|
66394
66340
|
var tmp;
|
|
66395
66341
|
switch (this.a1_1) {
|
|
66396
66342
|
case 0:
|
|
66397
|
-
tmp = Companion_getInstance_209().
|
|
66343
|
+
tmp = Companion_getInstance_209().rb1_1[index];
|
|
66398
66344
|
break;
|
|
66399
66345
|
case 1:
|
|
66400
|
-
tmp = Companion_getInstance_209().
|
|
66346
|
+
tmp = Companion_getInstance_209().tb1_1[index];
|
|
66401
66347
|
break;
|
|
66402
66348
|
default:
|
|
66403
66349
|
noWhenBranchMatchedException();
|
|
@@ -66406,8 +66352,8 @@
|
|
|
66406
66352
|
return tmp;
|
|
66407
66353
|
};
|
|
66408
66354
|
function AvatarData(index, avatarSet) {
|
|
66409
|
-
this.
|
|
66410
|
-
this.
|
|
66355
|
+
this.mb1_1 = index;
|
|
66356
|
+
this.nb1_1 = avatarSet;
|
|
66411
66357
|
}
|
|
66412
66358
|
function AvatarSet_ORIGIN_getInstance() {
|
|
66413
66359
|
AvatarSet_initEntries();
|
|
@@ -66420,7 +66366,7 @@
|
|
|
66420
66366
|
function GameResourcesImpl() {
|
|
66421
66367
|
Companion_getInstance_209();
|
|
66422
66368
|
}
|
|
66423
|
-
protoOf(GameResourcesImpl).
|
|
66369
|
+
protoOf(GameResourcesImpl).ib1 = function (playerId, existingNicknames) {
|
|
66424
66370
|
return createUser(this, playerId, existingNicknames);
|
|
66425
66371
|
};
|
|
66426
66372
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -66461,45 +66407,45 @@
|
|
|
66461
66407
|
}
|
|
66462
66408
|
var WARN;
|
|
66463
66409
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
66464
|
-
this.
|
|
66410
|
+
this.ub1_1 = loggerCallback;
|
|
66465
66411
|
}
|
|
66466
66412
|
protoOf(LoggerCallbacksWrapperLoggerOutput).a5n = function (tag, message, payload) {
|
|
66467
|
-
this.
|
|
66413
|
+
this.ub1_1('debug', tag, message, null, payload);
|
|
66468
66414
|
};
|
|
66469
66415
|
protoOf(LoggerCallbacksWrapperLoggerOutput).b5n = function (tag, message, exception, payload) {
|
|
66470
|
-
this.
|
|
66416
|
+
this.ub1_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
66471
66417
|
};
|
|
66472
66418
|
protoOf(LoggerCallbacksWrapperLoggerOutput).e5n = function (tag, message, payload) {
|
|
66473
|
-
this.
|
|
66419
|
+
this.ub1_1('debug', tag, message, null, payload);
|
|
66474
66420
|
};
|
|
66475
66421
|
protoOf(LoggerCallbacksWrapperLoggerOutput).d5n = function (tag, message, exception, payload) {
|
|
66476
|
-
this.
|
|
66422
|
+
this.ub1_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
66477
66423
|
};
|
|
66478
66424
|
protoOf(LoggerCallbacksWrapperLoggerOutput).c5n = function (tag, message, exception, payload) {
|
|
66479
|
-
this.
|
|
66425
|
+
this.ub1_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
66480
66426
|
};
|
|
66481
66427
|
function ParserHelper() {
|
|
66482
66428
|
}
|
|
66483
66429
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
66484
|
-
this.
|
|
66485
|
-
this.
|
|
66430
|
+
this.vb1_1 = json;
|
|
66431
|
+
this.wb1_1 = encoderDecoderProvider;
|
|
66486
66432
|
}
|
|
66487
66433
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
66488
|
-
return this.
|
|
66434
|
+
return this.wb1_1.ba4(mapToDto_23(action));
|
|
66489
66435
|
};
|
|
66490
66436
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
66491
|
-
return mapFromDto_21(this.
|
|
66437
|
+
return mapFromDto_21(this.wb1_1.fa4(json), fromPlayerId);
|
|
66492
66438
|
};
|
|
66493
66439
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
66494
|
-
return this.
|
|
66440
|
+
return this.wb1_1.da4(mapToDto_105(action));
|
|
66495
66441
|
};
|
|
66496
66442
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
66497
66443
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
66498
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
66444
|
+
var this_0 = mapFromClientDtoListWithPayload(this.wb1_1.ga4(json), playerId, engine);
|
|
66499
66445
|
return copyToArray(this_0);
|
|
66500
66446
|
};
|
|
66501
66447
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
66502
|
-
var tmp0 = this.
|
|
66448
|
+
var tmp0 = this.vb1_1;
|
|
66503
66449
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66504
66450
|
var value = mapToDto_36(round);
|
|
66505
66451
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66510,7 +66456,7 @@
|
|
|
66510
66456
|
return tmp0.vp(tmp$ret$1, value);
|
|
66511
66457
|
};
|
|
66512
66458
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
66513
|
-
var tmp0 = this.
|
|
66459
|
+
var tmp0 = this.vb1_1;
|
|
66514
66460
|
// Inline function 'kotlin.collections.map' call
|
|
66515
66461
|
var this_0 = round.items;
|
|
66516
66462
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -66532,7 +66478,7 @@
|
|
|
66532
66478
|
return tmp0.vp(tmp$ret$4, destination);
|
|
66533
66479
|
};
|
|
66534
66480
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
66535
|
-
var tmp0 = this.
|
|
66481
|
+
var tmp0 = this.vb1_1;
|
|
66536
66482
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66537
66483
|
var value = mapToDto_37(metadata);
|
|
66538
66484
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66543,7 +66489,7 @@
|
|
|
66543
66489
|
return tmp0.vp(tmp$ret$1, value);
|
|
66544
66490
|
};
|
|
66545
66491
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
66546
|
-
var tmp0 = this.
|
|
66492
|
+
var tmp0 = this.vb1_1;
|
|
66547
66493
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66548
66494
|
var value = mapToDto_89(config);
|
|
66549
66495
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66554,7 +66500,7 @@
|
|
|
66554
66500
|
return tmp0.vp(tmp$ret$1, value);
|
|
66555
66501
|
};
|
|
66556
66502
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
66557
|
-
var tmp0 = this.
|
|
66503
|
+
var tmp0 = this.vb1_1;
|
|
66558
66504
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66559
66505
|
var value = mapToDto_127(transition);
|
|
66560
66506
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66566,7 +66512,7 @@
|
|
|
66566
66512
|
};
|
|
66567
66513
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
66568
66514
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
66569
|
-
var this_0 = this.
|
|
66515
|
+
var this_0 = this.vb1_1;
|
|
66570
66516
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
66571
66517
|
var this_1 = this_0.us();
|
|
66572
66518
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -66577,7 +66523,7 @@
|
|
|
66577
66523
|
};
|
|
66578
66524
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
66579
66525
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
66580
|
-
var this_0 = this.
|
|
66526
|
+
var this_0 = this.vb1_1;
|
|
66581
66527
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
66582
66528
|
var this_1 = this_0.us();
|
|
66583
66529
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -66587,7 +66533,7 @@
|
|
|
66587
66533
|
return mapFromDto_131(tmp$ret$2);
|
|
66588
66534
|
};
|
|
66589
66535
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
66590
|
-
var tmp0 = this.
|
|
66536
|
+
var tmp0 = this.vb1_1;
|
|
66591
66537
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66592
66538
|
var value = mapToDto_159(table);
|
|
66593
66539
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66598,11 +66544,11 @@
|
|
|
66598
66544
|
return tmp0.vp(tmp$ret$1, value);
|
|
66599
66545
|
};
|
|
66600
66546
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
66601
|
-
return mapFromDto_96(this.
|
|
66547
|
+
return mapFromDto_96(this.wb1_1.ea4(json));
|
|
66602
66548
|
};
|
|
66603
66549
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
66604
66550
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
66605
|
-
var this_0 = this.
|
|
66551
|
+
var this_0 = this.vb1_1;
|
|
66606
66552
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
66607
66553
|
var this_1 = this_0.us();
|
|
66608
66554
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -66615,8 +66561,8 @@
|
|
|
66615
66561
|
function RatingHelper() {
|
|
66616
66562
|
}
|
|
66617
66563
|
function RatingHelperImpl(json, userRatingInteractor) {
|
|
66618
|
-
this.
|
|
66619
|
-
this.
|
|
66564
|
+
this.xb1_1 = json;
|
|
66565
|
+
this.yb1_1 = userRatingInteractor;
|
|
66620
66566
|
}
|
|
66621
66567
|
protoOf(RatingHelperImpl).getBotRatingRange = function (league, leaguesConfig) {
|
|
66622
66568
|
var maxRatingFactor = 0.3;
|
|
@@ -66643,16 +66589,16 @@
|
|
|
66643
66589
|
return valueOf_0(tmp$ret$1);
|
|
66644
66590
|
};
|
|
66645
66591
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating, leaguesConfig) {
|
|
66646
|
-
return this.
|
|
66592
|
+
return this.yb1_1.sac(league, rating, leaguesConfig);
|
|
66647
66593
|
};
|
|
66648
66594
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating, leaguesConfig) {
|
|
66649
|
-
return this.
|
|
66595
|
+
return this.yb1_1.tac(rating, leaguesConfig);
|
|
66650
66596
|
};
|
|
66651
66597
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
66652
66598
|
return Companion_instance_12.defaultConfig();
|
|
66653
66599
|
};
|
|
66654
66600
|
protoOf(RatingHelperImpl).getLeaguesConfigJson = function () {
|
|
66655
|
-
var tmp0 = this.
|
|
66601
|
+
var tmp0 = this.xb1_1;
|
|
66656
66602
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66657
66603
|
var value = mapToDto_52(Companion_instance_12.defaultConfig());
|
|
66658
66604
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66665,14 +66611,14 @@
|
|
|
66665
66611
|
protoOf(RatingHelperImpl).decodeGameSettings = function (json) {
|
|
66666
66612
|
var defaultConfig = Companion_instance_12.defaultConfig();
|
|
66667
66613
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
66668
|
-
var this_0 = this.
|
|
66614
|
+
var this_0 = this.xb1_1;
|
|
66669
66615
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
66670
66616
|
var this_1 = this_0.us();
|
|
66671
66617
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
66672
66618
|
var this_2 = serializer(this_1, createKType(getKClass(EngineSettingsDto), arrayOf([]), false));
|
|
66673
66619
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
66674
66620
|
var settingsDto = this_0.wp(tmp$ret$1, json);
|
|
66675
|
-
var tmp0 = this.
|
|
66621
|
+
var tmp0 = this.xb1_1;
|
|
66676
66622
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66677
66623
|
var value = settingsDto.d8z_1;
|
|
66678
66624
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66684,7 +66630,7 @@
|
|
|
66684
66630
|
return mapFromDto_50(settingsDto.g8z(VOID, tmp$ret$5), defaultConfig);
|
|
66685
66631
|
};
|
|
66686
66632
|
protoOf(RatingHelperImpl).encodeGameSettings = function (engineSettings) {
|
|
66687
|
-
var tmp0 = this.
|
|
66633
|
+
var tmp0 = this.xb1_1;
|
|
66688
66634
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
66689
66635
|
var value = mapToDto_53(engineSettings);
|
|
66690
66636
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -66803,14 +66749,14 @@
|
|
|
66803
66749
|
return new GameResourcesImpl();
|
|
66804
66750
|
}
|
|
66805
66751
|
function _get_logger__rkp4sl_3($this) {
|
|
66806
|
-
var tmp0 = $this.
|
|
66752
|
+
var tmp0 = $this.ab2_1;
|
|
66807
66753
|
var tmp = KProperty1;
|
|
66808
66754
|
// Inline function 'kotlin.getValue' call
|
|
66809
66755
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
66810
66756
|
return tmp0.o1();
|
|
66811
66757
|
}
|
|
66812
66758
|
function _get_di__ndbzja($this) {
|
|
66813
|
-
var tmp0 = $this.
|
|
66759
|
+
var tmp0 = $this.bb2_1;
|
|
66814
66760
|
var tmp = KProperty1;
|
|
66815
66761
|
// Inline function 'kotlin.getValue' call
|
|
66816
66762
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -66819,11 +66765,11 @@
|
|
|
66819
66765
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
66820
66766
|
return function () {
|
|
66821
66767
|
var tmp;
|
|
66822
|
-
if (this$0.
|
|
66768
|
+
if (this$0.zb1_1 == null) {
|
|
66823
66769
|
tmp = null;
|
|
66824
66770
|
} else {
|
|
66825
66771
|
// Inline function 'kotlin.let' call
|
|
66826
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
66772
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.zb1_1)]));
|
|
66827
66773
|
}
|
|
66828
66774
|
var tmp1_elvis_lhs = tmp;
|
|
66829
66775
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -66913,11 +66859,11 @@
|
|
|
66913
66859
|
}
|
|
66914
66860
|
function EngineHelpersFactory(loggerCallback) {
|
|
66915
66861
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
66916
|
-
this.
|
|
66862
|
+
this.zb1_1 = loggerCallback;
|
|
66917
66863
|
var tmp = this;
|
|
66918
|
-
tmp.
|
|
66864
|
+
tmp.ab2_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
66919
66865
|
var tmp_0 = this;
|
|
66920
|
-
tmp_0.
|
|
66866
|
+
tmp_0.bb2_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
66921
66867
|
var tmp_1 = this;
|
|
66922
66868
|
// Inline function 'org.kodein.di.instance' call
|
|
66923
66869
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -66926,7 +66872,7 @@
|
|
|
66926
66872
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
66927
66873
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
66928
66874
|
var tmp_4 = KProperty1;
|
|
66929
|
-
tmp_1.
|
|
66875
|
+
tmp_1.cb2_1 = tmp_3.y1h(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
66930
66876
|
var tmp_5 = this;
|
|
66931
66877
|
// Inline function 'org.kodein.di.instance' call
|
|
66932
66878
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -66935,7 +66881,7 @@
|
|
|
66935
66881
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
66936
66882
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
66937
66883
|
var tmp_8 = KProperty1;
|
|
66938
|
-
tmp_5.
|
|
66884
|
+
tmp_5.db2_1 = tmp_7.y1h(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
66939
66885
|
var tmp_9 = this;
|
|
66940
66886
|
// Inline function 'org.kodein.di.instance' call
|
|
66941
66887
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -66944,7 +66890,7 @@
|
|
|
66944
66890
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
66945
66891
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
66946
66892
|
var tmp_12 = KProperty1;
|
|
66947
|
-
tmp_9.
|
|
66893
|
+
tmp_9.eb2_1 = tmp_11.y1h(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
66948
66894
|
var tmp_13 = this;
|
|
66949
66895
|
// Inline function 'org.kodein.di.instance' call
|
|
66950
66896
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -66953,31 +66899,31 @@
|
|
|
66953
66899
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
66954
66900
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
66955
66901
|
var tmp_16 = KProperty1;
|
|
66956
|
-
tmp_13.
|
|
66902
|
+
tmp_13.fb2_1 = tmp_15.y1h(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
66957
66903
|
}
|
|
66958
|
-
protoOf(EngineHelpersFactory).
|
|
66959
|
-
var tmp0 = this.
|
|
66904
|
+
protoOf(EngineHelpersFactory).gb2 = function () {
|
|
66905
|
+
var tmp0 = this.cb2_1;
|
|
66960
66906
|
var tmp = KProperty1;
|
|
66961
66907
|
// Inline function 'kotlin.getValue' call
|
|
66962
66908
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
66963
66909
|
return tmp0.o1();
|
|
66964
66910
|
};
|
|
66965
|
-
protoOf(EngineHelpersFactory).
|
|
66966
|
-
var tmp0 = this.
|
|
66911
|
+
protoOf(EngineHelpersFactory).hb2 = function () {
|
|
66912
|
+
var tmp0 = this.db2_1;
|
|
66967
66913
|
var tmp = KProperty1;
|
|
66968
66914
|
// Inline function 'kotlin.getValue' call
|
|
66969
66915
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
66970
66916
|
return tmp0.o1();
|
|
66971
66917
|
};
|
|
66972
|
-
protoOf(EngineHelpersFactory).
|
|
66973
|
-
var tmp0 = this.
|
|
66918
|
+
protoOf(EngineHelpersFactory).ib2 = function () {
|
|
66919
|
+
var tmp0 = this.eb2_1;
|
|
66974
66920
|
var tmp = KProperty1;
|
|
66975
66921
|
// Inline function 'kotlin.getValue' call
|
|
66976
66922
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
66977
66923
|
return tmp0.o1();
|
|
66978
66924
|
};
|
|
66979
|
-
protoOf(EngineHelpersFactory).
|
|
66980
|
-
var tmp0 = this.
|
|
66925
|
+
protoOf(EngineHelpersFactory).jb2 = function () {
|
|
66926
|
+
var tmp0 = this.fb2_1;
|
|
66981
66927
|
var tmp = KProperty1;
|
|
66982
66928
|
// Inline function 'kotlin.getValue' call
|
|
66983
66929
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -66987,10 +66933,10 @@
|
|
|
66987
66933
|
this.min = min;
|
|
66988
66934
|
this.max = max;
|
|
66989
66935
|
}
|
|
66990
|
-
protoOf(BotRatingRange).
|
|
66936
|
+
protoOf(BotRatingRange).kb2 = function () {
|
|
66991
66937
|
return this.min;
|
|
66992
66938
|
};
|
|
66993
|
-
protoOf(BotRatingRange).
|
|
66939
|
+
protoOf(BotRatingRange).lb2 = function () {
|
|
66994
66940
|
return this.max;
|
|
66995
66941
|
};
|
|
66996
66942
|
protoOf(BotRatingRange).kf = function () {
|
|
@@ -66999,13 +66945,13 @@
|
|
|
66999
66945
|
protoOf(BotRatingRange).lf = function () {
|
|
67000
66946
|
return this.max;
|
|
67001
66947
|
};
|
|
67002
|
-
protoOf(BotRatingRange).
|
|
66948
|
+
protoOf(BotRatingRange).mb2 = function (min, max) {
|
|
67003
66949
|
return new BotRatingRange(min, max);
|
|
67004
66950
|
};
|
|
67005
66951
|
protoOf(BotRatingRange).copy = function (min, max, $super) {
|
|
67006
66952
|
min = min === VOID ? this.min : min;
|
|
67007
66953
|
max = max === VOID ? this.max : max;
|
|
67008
|
-
return $super === VOID ? this.
|
|
66954
|
+
return $super === VOID ? this.mb2(min, max) : $super.mb2.call(this, min, max);
|
|
67009
66955
|
};
|
|
67010
66956
|
protoOf(BotRatingRange).toString = function () {
|
|
67011
66957
|
return 'BotRatingRange(min=' + this.min + ', max=' + this.max + ')';
|
|
@@ -68025,7 +67971,7 @@
|
|
|
68025
67971
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
68026
67972
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
68027
67973
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
68028
|
-
protoOf(FileLoggerOutputImpl).
|
|
67974
|
+
protoOf(FileLoggerOutputImpl).har = observe$default;
|
|
68029
67975
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
68030
67976
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
68031
67977
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -68045,10 +67991,10 @@
|
|
|
68045
67991
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
68046
67992
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
68047
67993
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
68048
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
68049
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
68050
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
68051
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
67994
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).gb2);
|
|
67995
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).hb2);
|
|
67996
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).ib2);
|
|
67997
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).jb2);
|
|
68052
67998
|
//endregion
|
|
68053
67999
|
//region block: init
|
|
68054
68000
|
Companion_instance_5 = new Companion_0();
|