raspberry_games_server_game_logic 1.8.380 → 1.8.381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +13 -13
- package/Kosi-Kodein-kodein-di.js +35 -35
- package/Kotlin-DateTime-library-kotlinx-datetime.js +90 -90
- package/Logic_Debertz-core.js +56 -56
- package/Logic_Debertz-engine.js +773 -706
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +848 -834
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +278 -265
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +9 -9
- package/kotlinx-coroutines-core.js +71 -71
- package/kotlinx-io-kotlinx-io-core.js +30 -30
- package/kotlinx-serialization-kotlinx-serialization-core.js +77 -77
- package/kotlinx-serialization-kotlinx-serialization-json.js +89 -89
- package/ktor-ktor-client-content-negotiation.js +22 -22
- package/ktor-ktor-client-core.js +64 -64
- package/ktor-ktor-client-logging.js +23 -23
- package/ktor-ktor-events.js +5 -5
- package/ktor-ktor-http.js +70 -70
- package/ktor-ktor-io.js +50 -50
- package/ktor-ktor-serialization-kotlinx.js +15 -15
- package/ktor-ktor-serialization.js +15 -15
- package/ktor-ktor-utils.js +46 -46
- package/ktor-ktor-websockets.js +13 -13
- package/package.json +1 -1
- package/random-library-crypto-rand.js +11 -11
- package/random-library-secure-random.js +5 -5
- package/raspberry-cardgame-lib-core.js +35 -35
- package/raspberry-cardgame-lib-logger.js +13 -13
- package/raspberry-cardgame-lib-random.js +39 -39
- package/uuid.js +12 -12
package/Logic_Debertz-engine.js
CHANGED
|
@@ -43,106 +43,106 @@
|
|
|
43
43
|
'use strict';
|
|
44
44
|
//region block: imports
|
|
45
45
|
var imul = Math.imul;
|
|
46
|
-
var Long = kotlin_kotlin.$_$.
|
|
47
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
46
|
+
var Long = kotlin_kotlin.$_$.fh;
|
|
47
|
+
var protoOf = kotlin_kotlin.$_$.id;
|
|
48
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.jc;
|
|
49
49
|
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.m1;
|
|
50
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
51
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
52
|
-
var createKType = kotlin_kotlin.$_$.
|
|
50
|
+
var getKClass = kotlin_kotlin.$_$.ce;
|
|
51
|
+
var arrayOf = kotlin_kotlin.$_$.yh;
|
|
52
|
+
var createKType = kotlin_kotlin.$_$.ae;
|
|
53
53
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
54
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
54
|
+
var THROW_CCE = kotlin_kotlin.$_$.kh;
|
|
55
55
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
56
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
+
var isInterface = kotlin_kotlin.$_$.wc;
|
|
57
57
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
58
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
59
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
58
|
+
var KProperty1 = kotlin_kotlin.$_$.ge;
|
|
59
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.fc;
|
|
60
60
|
var JobsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
|
|
61
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
61
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ic;
|
|
62
62
|
var VOID = kotlin_kotlin.$_$.b;
|
|
63
63
|
var listOf = kotlin_kotlin.$_$.f8;
|
|
64
|
-
var plus = kotlin_kotlin.$_$.
|
|
64
|
+
var plus = kotlin_kotlin.$_$.q8;
|
|
65
65
|
var copyToArray = kotlin_kotlin.$_$.y6;
|
|
66
66
|
var combineReducers = kotlin_io_raspberryapps_game_engine_core.$_$.k2;
|
|
67
67
|
var applyCatcher = kotlin_io_raspberryapps_game_engine_core.$_$.c2;
|
|
68
68
|
var applyMiddleware = kotlin_io_raspberryapps_game_engine_core.$_$.d2;
|
|
69
69
|
var compose = kotlin_io_raspberryapps_game_engine_core.$_$.n2;
|
|
70
70
|
var createStore = kotlin_io_raspberryapps_game_engine_core.$_$.o2;
|
|
71
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
71
|
+
var CoroutineImpl = kotlin_kotlin.$_$.oa;
|
|
72
72
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
73
73
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
74
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
75
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
74
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.z9;
|
|
75
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.mc;
|
|
76
76
|
var emptyList = kotlin_kotlin.$_$.d7;
|
|
77
77
|
var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
|
|
78
|
-
var lazy = kotlin_kotlin.$_$.
|
|
79
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
78
|
+
var lazy = kotlin_kotlin.$_$.hi;
|
|
79
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.lc;
|
|
80
80
|
var listOf_0 = kotlin_kotlin.$_$.g8;
|
|
81
81
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.s4;
|
|
82
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
82
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.zd;
|
|
83
83
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3;
|
|
84
84
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
|
|
85
85
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
86
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
86
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.be;
|
|
87
87
|
var contentEquals = kotlin_kotlin.$_$.k6;
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
88
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.dc;
|
|
89
89
|
var contentHashCode = kotlin_kotlin.$_$.n6;
|
|
90
|
-
var toString = kotlin_kotlin.$_$.
|
|
91
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
92
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
93
|
-
var equals = kotlin_kotlin.$_$.
|
|
90
|
+
var toString = kotlin_kotlin.$_$.ld;
|
|
91
|
+
var defineProp = kotlin_kotlin.$_$.ac;
|
|
92
|
+
var getNumberHashCode = kotlin_kotlin.$_$.ec;
|
|
93
|
+
var equals = kotlin_kotlin.$_$.bc;
|
|
94
94
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
95
|
-
var THROW_IAE = kotlin_kotlin.$_$.
|
|
95
|
+
var THROW_IAE = kotlin_kotlin.$_$.lh;
|
|
96
96
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
97
|
-
var lazy_0 = kotlin_kotlin.$_$.
|
|
97
|
+
var lazy_0 = kotlin_kotlin.$_$.gi;
|
|
98
98
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
99
|
-
var Enum = kotlin_kotlin.$_$.
|
|
100
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
101
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
102
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
103
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
104
|
-
var toList = kotlin_kotlin.$_$.
|
|
99
|
+
var Enum = kotlin_kotlin.$_$.ah;
|
|
100
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ob;
|
|
101
|
+
var Comparator = kotlin_kotlin.$_$.xg;
|
|
102
|
+
var hashCode = kotlin_kotlin.$_$.hc;
|
|
103
|
+
var compareValues = kotlin_kotlin.$_$.x9;
|
|
104
|
+
var toList = kotlin_kotlin.$_$.l9;
|
|
105
105
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i6;
|
|
106
106
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
107
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
107
|
+
var sortedWith = kotlin_kotlin.$_$.c9;
|
|
108
108
|
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.f2;
|
|
109
109
|
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.k2;
|
|
110
110
|
var contentToString = kotlin_kotlin.$_$.o6;
|
|
111
|
-
var Duration = kotlin_kotlin.$_$.
|
|
111
|
+
var Duration = kotlin_kotlin.$_$.og;
|
|
112
112
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
113
113
|
var Collection = kotlin_kotlin.$_$.h5;
|
|
114
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
115
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
116
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
114
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ii;
|
|
115
|
+
var getStringHashCode = kotlin_kotlin.$_$.gc;
|
|
116
|
+
var enumEntries = kotlin_kotlin.$_$.qa;
|
|
117
117
|
var previousToOrNull = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
|
|
118
118
|
var nextToOrNull = kotlin_io_raspberryapps_game_engine_core.$_$.v2;
|
|
119
119
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
120
120
|
var System_instance = kotlin_kotlin.$_$.u4;
|
|
121
121
|
var PlayerIdContract = kotlin_io_raspberryapps_game_engine_core.$_$.f;
|
|
122
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
123
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
122
|
+
var toString_0 = kotlin_kotlin.$_$.oi;
|
|
123
|
+
var Comparable = kotlin_kotlin.$_$.wg;
|
|
124
124
|
var listOfNotNull = kotlin_kotlin.$_$.e8;
|
|
125
125
|
var joinToString = kotlin_kotlin.$_$.v7;
|
|
126
126
|
var get_amountOfCards = kotlin_io_raspberryapps_game_engine_core.$_$.d;
|
|
127
127
|
var Player = kotlin_io_raspberryapps_game_engine_core.$_$.j;
|
|
128
128
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
129
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
130
|
-
var single = kotlin_kotlin.$_$.
|
|
129
|
+
var objectCreate = kotlin_kotlin.$_$.hd;
|
|
130
|
+
var single = kotlin_kotlin.$_$.a9;
|
|
131
131
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
132
132
|
var mapCapacity = kotlin_kotlin.$_$.h8;
|
|
133
133
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.p;
|
|
134
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
134
|
+
var toMutableMap = kotlin_kotlin.$_$.p9;
|
|
135
135
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.c2;
|
|
136
|
-
var toSet = kotlin_kotlin.$_$.
|
|
137
|
-
var sorted = kotlin_kotlin.$_$.
|
|
136
|
+
var toSet = kotlin_kotlin.$_$.r9;
|
|
137
|
+
var sorted = kotlin_kotlin.$_$.d9;
|
|
138
138
|
var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
139
139
|
var last = kotlin_kotlin.$_$.b8;
|
|
140
|
-
var sum = kotlin_kotlin.$_$.
|
|
140
|
+
var sum = kotlin_kotlin.$_$.e9;
|
|
141
141
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
142
142
|
var first = kotlin_kotlin.$_$.k7;
|
|
143
143
|
var first_0 = kotlin_kotlin.$_$.m7;
|
|
144
144
|
var contains = kotlin_kotlin.$_$.j6;
|
|
145
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
145
|
+
var initMetadataForObject = kotlin_kotlin.$_$.nc;
|
|
146
146
|
var checkIndexOverflow = kotlin_kotlin.$_$.h6;
|
|
147
147
|
var getPoint = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
|
|
148
148
|
var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.a5;
|
|
@@ -150,20 +150,20 @@
|
|
|
150
150
|
var MechanicException = kotlin_io_raspberryapps_game_engine_core.$_$.b;
|
|
151
151
|
var asJsReadonlyArrayView = kotlin_kotlin.$_$.m5;
|
|
152
152
|
var KtList = kotlin_kotlin.$_$.n5;
|
|
153
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
153
|
+
var ensureNotNull = kotlin_kotlin.$_$.bi;
|
|
154
154
|
var GameCard = kotlin_io_raspberryapps_cardgame_core.$_$.q;
|
|
155
155
|
var firstOrNull = kotlin_kotlin.$_$.h7;
|
|
156
156
|
var Companion_instance = kotlin_io_raspberryapps_cardgame_core.$_$.n;
|
|
157
157
|
var flatten = kotlin_kotlin.$_$.n7;
|
|
158
|
-
var to = kotlin_kotlin.$_$.
|
|
158
|
+
var to = kotlin_kotlin.$_$.pi;
|
|
159
159
|
var mapOf = kotlin_kotlin.$_$.i8;
|
|
160
160
|
var asSequence = kotlin_kotlin.$_$.c6;
|
|
161
|
-
var filter = kotlin_kotlin.$_$.
|
|
162
|
-
var map = kotlin_kotlin.$_$.
|
|
163
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
161
|
+
var filter = kotlin_kotlin.$_$.ie;
|
|
162
|
+
var map = kotlin_kotlin.$_$.me;
|
|
163
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.je;
|
|
164
164
|
var CardIndexComparator_instance = kotlin_io_raspberryapps_cardgame_core.$_$.l;
|
|
165
165
|
var lastOrNull = kotlin_kotlin.$_$.a8;
|
|
166
|
-
var toMap = kotlin_kotlin.$_$.
|
|
166
|
+
var toMap = kotlin_kotlin.$_$.n9;
|
|
167
167
|
var PlayerIdOrderComparator = kotlin_io_raspberryapps_game_engine_core.$_$.g;
|
|
168
168
|
var getValue = kotlin_kotlin.$_$.q7;
|
|
169
169
|
var PlayerIdContractOrderComparator = kotlin_io_raspberryapps_game_engine_core.$_$.e;
|
|
@@ -201,17 +201,17 @@
|
|
|
201
201
|
var Companion_getInstance_3 = kotlin_kotlin.$_$.w4;
|
|
202
202
|
var getOrNull = kotlin_kotlin.$_$.p7;
|
|
203
203
|
var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.g2;
|
|
204
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
205
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
204
|
+
var equalsLong = kotlin_kotlin.$_$.cb;
|
|
205
|
+
var coerceAtLeast = kotlin_kotlin.$_$.qd;
|
|
206
206
|
var Companion_getInstance_4 = kotlin_kotlin.$_$.v4;
|
|
207
207
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.c;
|
|
208
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
209
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
208
|
+
var toDuration = kotlin_kotlin.$_$.rg;
|
|
209
|
+
var toIntOrNull = kotlin_kotlin.$_$.bg;
|
|
210
210
|
var RulesDto = kotlin_io_raspberryapps_game_engine_core.$_$.b1;
|
|
211
211
|
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.o4;
|
|
212
212
|
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
|
|
213
213
|
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.s3;
|
|
214
|
-
var toDuration_0 = kotlin_kotlin.$_$.
|
|
214
|
+
var toDuration_0 = kotlin_kotlin.$_$.sg;
|
|
215
215
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r3;
|
|
216
216
|
var mapFromDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.t;
|
|
217
217
|
var mapToDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.y;
|
|
@@ -224,10 +224,10 @@
|
|
|
224
224
|
var $serializer_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.s4;
|
|
225
225
|
var InstantSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
226
226
|
var PlayerState = kotlin_io_raspberryapps_game_engine_core.$_$.i;
|
|
227
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
227
|
+
var charSequenceLength = kotlin_kotlin.$_$.xb;
|
|
228
228
|
var LoggerPayload = kotlin_io_raspberryapps_cardgame_logger.$_$.e;
|
|
229
229
|
var CardGrowthComparator = kotlin_io_raspberryapps_game_engine_core.$_$.d1;
|
|
230
|
-
var take = kotlin_kotlin.$_$.
|
|
230
|
+
var take = kotlin_kotlin.$_$.g9;
|
|
231
231
|
var CardName_ACE_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.a;
|
|
232
232
|
var CardName_KING_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.d;
|
|
233
233
|
var CardName_QUEEN_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.f;
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
var ProcessingReasonDto_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t4;
|
|
249
249
|
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
250
250
|
var CardNumberComparator_instance = kotlin_io_raspberryapps_cardgame_core.$_$.m;
|
|
251
|
-
var singleOrNull = kotlin_kotlin.$_$.
|
|
251
|
+
var singleOrNull = kotlin_kotlin.$_$.z8;
|
|
252
252
|
var addAll = kotlin_kotlin.$_$.w5;
|
|
253
253
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
254
254
|
var Json_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
@@ -262,48 +262,49 @@
|
|
|
262
262
|
var CombinationsCheckerProvider = kotlin_io_raspberryapps_cardgame_core.$_$.y;
|
|
263
263
|
var CombinationsCheckerProviderImpl = kotlin_io_raspberryapps_cardgame_core.$_$.x;
|
|
264
264
|
var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
265
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
266
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
265
|
+
var toList_0 = kotlin_kotlin.$_$.k9;
|
|
266
|
+
var plus_0 = kotlin_kotlin.$_$.r8;
|
|
267
267
|
var listOfNotNull_0 = kotlin_kotlin.$_$.d8;
|
|
268
268
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
269
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
269
|
+
var toMutableSet = kotlin_kotlin.$_$.q9;
|
|
270
270
|
var filterByCardName = kotlin_io_raspberryapps_cardgame_core.$_$.u;
|
|
271
271
|
var first_1 = kotlin_kotlin.$_$.l7;
|
|
272
|
-
var setOf = kotlin_kotlin.$_$.
|
|
273
|
-
var setOf_0 = kotlin_kotlin.$_$.
|
|
272
|
+
var setOf = kotlin_kotlin.$_$.x8;
|
|
273
|
+
var setOf_0 = kotlin_kotlin.$_$.y8;
|
|
274
274
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.u1;
|
|
275
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
275
|
+
var compareTo = kotlin_kotlin.$_$.zb;
|
|
276
276
|
var distributeCardsBottom = kotlin_io_raspberryapps_cardgame_core.$_$.s;
|
|
277
277
|
var distributeCardsTop = kotlin_io_raspberryapps_cardgame_core.$_$.t;
|
|
278
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
278
|
+
var toMutableList = kotlin_kotlin.$_$.o9;
|
|
279
279
|
var CardsRandomProvider_CUSTOM_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.i;
|
|
280
280
|
var CardsRandomProvider_RANDOM_ORG_SIGNED_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.j;
|
|
281
281
|
var CardsRandomProvider_RANDOM_ORG_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.k;
|
|
282
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
282
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.kc;
|
|
283
283
|
var get_indices = kotlin_kotlin.$_$.u7;
|
|
284
|
-
var abs = kotlin_kotlin.$_$.
|
|
285
|
-
var zip = kotlin_kotlin.$_$.
|
|
284
|
+
var abs = kotlin_kotlin.$_$.md;
|
|
285
|
+
var zip = kotlin_kotlin.$_$.u9;
|
|
286
286
|
var Team = kotlin_io_raspberryapps_game_engine_core.$_$.k;
|
|
287
287
|
var getValueInHand = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
|
|
288
288
|
var AgentType_BOT_NATIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m3;
|
|
289
289
|
var AgentType_BOT_REPLACEMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
290
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
291
|
-
var
|
|
290
|
+
var coerceIn = kotlin_kotlin.$_$.td;
|
|
291
|
+
var maxOrNull = kotlin_kotlin.$_$.k8;
|
|
292
|
+
var numberToInt = kotlin_kotlin.$_$.gd;
|
|
292
293
|
var checkCountOverflow = kotlin_kotlin.$_$.g6;
|
|
293
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
294
|
+
var roundToInt = kotlin_kotlin.$_$.nd;
|
|
294
295
|
var average = kotlin_kotlin.$_$.d6;
|
|
295
296
|
var mapToFinishReason = kotlin_io_raspberryapps_game_engine_core.$_$.q;
|
|
296
297
|
var StopTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.z1;
|
|
297
298
|
var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.e4;
|
|
298
299
|
var StartTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.y1;
|
|
299
300
|
var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.q3;
|
|
300
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
301
|
+
var fromInt = kotlin_kotlin.$_$.db;
|
|
301
302
|
var PlayerReturnsReason = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
|
|
302
303
|
var nextToPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.r;
|
|
303
304
|
var previousPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.s;
|
|
304
305
|
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
|
|
305
|
-
var contains_0 = kotlin_kotlin.$_$.
|
|
306
|
-
var split = kotlin_kotlin.$_$.
|
|
306
|
+
var contains_0 = kotlin_kotlin.$_$.pe;
|
|
307
|
+
var split = kotlin_kotlin.$_$.qf;
|
|
307
308
|
var UserInfoData = kotlin_io_raspberryapps_cardgame_random.$_$.c;
|
|
308
309
|
var CardDeckRequestUserData = kotlin_io_raspberryapps_cardgame_random.$_$.a;
|
|
309
310
|
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.f2;
|
|
@@ -332,12 +333,12 @@
|
|
|
332
333
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
333
334
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.l2;
|
|
334
335
|
var filterPlayerTurn = kotlin_io_raspberryapps_game_engine_core.$_$.n;
|
|
335
|
-
var Result = kotlin_kotlin.$_$.
|
|
336
|
+
var Result = kotlin_kotlin.$_$.ih;
|
|
336
337
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
337
338
|
var LoggerOutputDataDto = kotlin_io_raspberryapps_game_engine_core.$_$.q2;
|
|
338
339
|
var Reason_FINISHED_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c4;
|
|
339
340
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.i1;
|
|
340
|
-
var compare = kotlin_kotlin.$_$.
|
|
341
|
+
var compare = kotlin_kotlin.$_$.xa;
|
|
341
342
|
var Default_getInstance = kotlin_kotlin.$_$.r4;
|
|
342
343
|
var PlayerConnectionState_TIMEOUT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u3;
|
|
343
344
|
var PlayerConnectionState_DELETED_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
|
|
@@ -351,16 +352,16 @@
|
|
|
351
352
|
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
352
353
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
353
354
|
var TimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.a2;
|
|
354
|
-
var minus = kotlin_kotlin.$_$.
|
|
355
|
+
var minus = kotlin_kotlin.$_$.l8;
|
|
355
356
|
var updateOrAddItems = kotlin_io_raspberryapps_game_engine_core.$_$.e3;
|
|
356
357
|
var get_byIdPlayerPredicate = kotlin_io_raspberryapps_game_engine_core.$_$.l;
|
|
357
358
|
var updateItem = kotlin_io_raspberryapps_game_engine_core.$_$.c3;
|
|
358
|
-
var toDuration_1 = kotlin_kotlin.$_$.
|
|
359
|
+
var toDuration_1 = kotlin_kotlin.$_$.qg;
|
|
359
360
|
var updated = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
|
|
360
361
|
var PlayerWaitingState_IN_PROGRESS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v3;
|
|
361
362
|
var getProgress = kotlin_io_raspberryapps_game_engine_core.$_$.p;
|
|
362
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
363
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
363
|
+
var takeLast = kotlin_kotlin.$_$.f9;
|
|
364
|
+
var plus_1 = kotlin_kotlin.$_$.n8;
|
|
364
365
|
var updateLastItem = kotlin_io_raspberryapps_game_engine_core.$_$.d3;
|
|
365
366
|
var d = kotlin_io_raspberryapps_cardgame_logger.$_$.h;
|
|
366
367
|
var e = kotlin_io_raspberryapps_cardgame_logger.$_$.i;
|
|
@@ -373,18 +374,18 @@
|
|
|
373
374
|
var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
374
375
|
var LogType_DEBUG_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.f4;
|
|
375
376
|
var LogType_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.g4;
|
|
376
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
377
|
-
var take_0 = kotlin_kotlin.$_$.
|
|
377
|
+
var stackTraceToString = kotlin_kotlin.$_$.li;
|
|
378
|
+
var take_0 = kotlin_kotlin.$_$.xf;
|
|
378
379
|
var LogType_INFO_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.h4;
|
|
379
380
|
var LogType_VERBOSE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.i4;
|
|
380
381
|
var LogType_WARN_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j4;
|
|
381
382
|
var get_entries = kotlin_io_raspberryapps_game_engine_core.$_$.p2;
|
|
382
383
|
var LoggerEnabledTrigger = kotlin_io_raspberryapps_cardgame_logger.$_$.d;
|
|
383
|
-
var isArray = kotlin_kotlin.$_$.
|
|
384
|
+
var isArray = kotlin_kotlin.$_$.oc;
|
|
384
385
|
var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.u2;
|
|
385
386
|
var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.c;
|
|
386
387
|
var generateMsg = kotlin_io_raspberryapps_cardgame_logger.$_$.b;
|
|
387
|
-
var mutableListOf = kotlin_kotlin.$_$.
|
|
388
|
+
var mutableListOf = kotlin_kotlin.$_$.m8;
|
|
388
389
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
389
390
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
390
391
|
var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
@@ -1272,21 +1273,21 @@
|
|
|
1272
1273
|
tmp = types;
|
|
1273
1274
|
}
|
|
1274
1275
|
types = tmp;
|
|
1275
|
-
return $super === VOID ? this.
|
|
1276
|
+
return $super === VOID ? this.e9d(loggerKey, types) : $super.e9d.call(this, loggerKey, types);
|
|
1276
1277
|
}
|
|
1277
1278
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1278
|
-
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl',
|
|
1279
|
+
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput]);
|
|
1279
1280
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1280
1281
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1281
|
-
return $super === VOID ? this.
|
|
1282
|
+
return $super === VOID ? this.f9d(store, playerIds, includeBots) : $super.f9d.call(this, store, playerIds, includeBots);
|
|
1282
1283
|
}
|
|
1283
1284
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1284
1285
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1285
|
-
return $super === VOID ? this.
|
|
1286
|
+
return $super === VOID ? this.g9d(store, playerIds, includeBots) : $super.g9d.call(this, store, playerIds, includeBots);
|
|
1286
1287
|
}
|
|
1287
1288
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1288
1289
|
league = league === VOID ? null : league;
|
|
1289
|
-
return $super === VOID ? this.
|
|
1290
|
+
return $super === VOID ? this.h9d(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.h9d.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1290
1291
|
}
|
|
1291
1292
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1292
1293
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1299,7 +1300,7 @@
|
|
|
1299
1300
|
tmp = existingNicknames;
|
|
1300
1301
|
}
|
|
1301
1302
|
existingNicknames = tmp;
|
|
1302
|
-
return $super === VOID ? this.
|
|
1303
|
+
return $super === VOID ? this.j9d(playerId, existingNicknames) : $super.j9d.call(this, playerId, existingNicknames);
|
|
1303
1304
|
}
|
|
1304
1305
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1305
1306
|
initMetadataForCompanion(Companion_166);
|
|
@@ -42486,16 +42487,18 @@
|
|
|
42486
42487
|
var opponent = tmp$ret$2;
|
|
42487
42488
|
var expected = pBeats($this, item.d71_1, opponent.d71_1, cfg.eloScaleH2H);
|
|
42488
42489
|
var effectivePoints = getEffectivePoints($this, item, cfg);
|
|
42489
|
-
var
|
|
42490
|
-
var kFactor = baseK($this, item.h71_1, gameComplexityCoefficient, cfg);
|
|
42490
|
+
var opponentEffectivePoints = getEffectivePoints($this, opponent, cfg);
|
|
42491
42491
|
var tmp;
|
|
42492
|
-
if (
|
|
42493
|
-
tmp =
|
|
42492
|
+
if (effectivePoints >= maxScore && opponentEffectivePoints >= maxScore) {
|
|
42493
|
+
tmp = calculateProportionalResult($this, effectivePoints, maxScore);
|
|
42494
42494
|
} else {
|
|
42495
|
-
tmp = 1.0;
|
|
42495
|
+
tmp = effectivePoints >= maxScore ? 1.0 : 0.0;
|
|
42496
42496
|
}
|
|
42497
|
-
var
|
|
42498
|
-
var
|
|
42497
|
+
var actual = tmp;
|
|
42498
|
+
var kFactor = baseK($this, item.h71_1, gameComplexityCoefficient, cfg);
|
|
42499
|
+
var baseRatingChange = kFactor * (actual - expected);
|
|
42500
|
+
var scoreFactor = calculateCloseLossProtection($this, effectivePoints, maxScore, baseRatingChange, cfg);
|
|
42501
|
+
var ratingChange = baseRatingChange * scoreFactor;
|
|
42499
42502
|
var newRating = clampAndRound($this, item.d71_1 + ratingChange, minUserRating, maxUserRating);
|
|
42500
42503
|
if (item.f71_1 && newRating < item.d71_1 && !(item.g71_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
|
|
42501
42504
|
newRating = item.d71_1;
|
|
@@ -42518,38 +42521,52 @@
|
|
|
42518
42521
|
var _iterator__ex2g4s = ratingList.l();
|
|
42519
42522
|
while (_iterator__ex2g4s.m()) {
|
|
42520
42523
|
var item = _iterator__ex2g4s.n();
|
|
42521
|
-
var tmp$ret$2;
|
|
42524
|
+
var tmp$ret$2 = getEffectivePoints($this, item, cfg);
|
|
42525
|
+
destination.j(tmp$ret$2);
|
|
42526
|
+
}
|
|
42527
|
+
var playerScores = destination;
|
|
42528
|
+
var dynamicMaxScore = calculateDynamicMaxScore($this, maxScore, playerScores);
|
|
42529
|
+
// Inline function 'kotlin.collections.map' call
|
|
42530
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
42531
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(ratingList, 10));
|
|
42532
|
+
var _iterator__ex2g4s_0 = ratingList.l();
|
|
42533
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
42534
|
+
var item_0 = _iterator__ex2g4s_0.n();
|
|
42535
|
+
var tmp$ret$5;
|
|
42522
42536
|
$l$block: {
|
|
42523
|
-
if (
|
|
42524
|
-
tmp$ret$
|
|
42537
|
+
if (item_0.g71_1.equals(AgentType_BOT_NATIVE_getInstance()) && !cfg.botNativeUpdatesRating) {
|
|
42538
|
+
tmp$ret$5 = frozenOutput($this, item_0);
|
|
42525
42539
|
break $l$block;
|
|
42526
42540
|
}
|
|
42527
42541
|
// Inline function 'kotlin.collections.filter' call
|
|
42528
42542
|
// Inline function 'kotlin.collections.filterTo' call
|
|
42529
|
-
var
|
|
42530
|
-
var
|
|
42531
|
-
while (
|
|
42532
|
-
var element =
|
|
42533
|
-
if (!(element.c71_1 ===
|
|
42534
|
-
|
|
42543
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
42544
|
+
var _iterator__ex2g4s_1 = ratingList.l();
|
|
42545
|
+
while (_iterator__ex2g4s_1.m()) {
|
|
42546
|
+
var element = _iterator__ex2g4s_1.n();
|
|
42547
|
+
if (!(element.c71_1 === item_0.c71_1)) {
|
|
42548
|
+
destination_1.j(element);
|
|
42535
42549
|
}
|
|
42536
42550
|
}
|
|
42537
|
-
var opponents =
|
|
42551
|
+
var opponents = destination_1;
|
|
42538
42552
|
var totalExpected = 0.0;
|
|
42539
42553
|
var totalActual = 0.0;
|
|
42540
42554
|
// Inline function 'kotlin.collections.forEach' call
|
|
42541
|
-
var
|
|
42542
|
-
while (
|
|
42543
|
-
var element_0 =
|
|
42544
|
-
var expected = pBeats($this,
|
|
42545
|
-
var actual =
|
|
42555
|
+
var _iterator__ex2g4s_2 = opponents.l();
|
|
42556
|
+
while (_iterator__ex2g4s_2.m()) {
|
|
42557
|
+
var element_0 = _iterator__ex2g4s_2.n();
|
|
42558
|
+
var expected = pBeats($this, item_0.d71_1, element_0.d71_1, cfg.eloScaleFfa);
|
|
42559
|
+
var actual = calculateFfaPairwiseResult($this, item_0, element_0, playerScores, maxScore, cfg);
|
|
42546
42560
|
totalExpected = totalExpected + expected;
|
|
42547
42561
|
totalActual = totalActual + actual;
|
|
42548
42562
|
}
|
|
42549
|
-
var baseKFactor = baseK($this,
|
|
42563
|
+
var baseKFactor = baseK($this, item_0.h71_1, gameComplexityCoefficient, cfg);
|
|
42550
42564
|
var ffaScaling = calculateFfaScaling($this, ratingList.o(), cfg);
|
|
42551
42565
|
var effectiveKFactor = baseKFactor * ffaScaling;
|
|
42552
|
-
var
|
|
42566
|
+
var baseRatingChange = effectiveKFactor * (totalActual - totalExpected);
|
|
42567
|
+
var playerEffectivePoints = getEffectivePoints($this, item_0, cfg);
|
|
42568
|
+
var scoreFactor = calculateCloseLossProtection($this, playerEffectivePoints, maxScore, baseRatingChange, cfg);
|
|
42569
|
+
var ratingChange = baseRatingChange * scoreFactor;
|
|
42553
42570
|
var theoreticalMaxGain = effectiveKFactor * (ratingList.o() - 1 | 0);
|
|
42554
42571
|
var maxRatingDecrease = theoreticalMaxGain / ratingList.o() * cfg.ffaMaxRatingDecreaseFraction;
|
|
42555
42572
|
var tmp;
|
|
@@ -42559,33 +42576,95 @@
|
|
|
42559
42576
|
tmp = ratingChange;
|
|
42560
42577
|
}
|
|
42561
42578
|
var limitedRatingChange = tmp;
|
|
42562
|
-
var newRating = clampAndRound($this,
|
|
42563
|
-
if (
|
|
42564
|
-
newRating =
|
|
42579
|
+
var newRating = clampAndRound($this, item_0.d71_1 + limitedRatingChange, minUserRating, maxUserRating);
|
|
42580
|
+
if (item_0.f71_1 && newRating < item_0.d71_1 && !(item_0.g71_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
|
|
42581
|
+
newRating = item_0.d71_1;
|
|
42565
42582
|
}
|
|
42566
|
-
tmp$ret$
|
|
42583
|
+
tmp$ret$5 = new PlayerRatingOutput(item_0.c71_1, item_0.d71_1, newRating, item_0.f71_1);
|
|
42567
42584
|
}
|
|
42568
|
-
|
|
42585
|
+
destination_0.j(tmp$ret$5);
|
|
42569
42586
|
}
|
|
42570
|
-
return
|
|
42587
|
+
return destination_0;
|
|
42571
42588
|
}
|
|
42572
|
-
function
|
|
42589
|
+
function calculateFfaPairwiseResult($this, player, opponent, allPlayerScores, maxScore, cfg) {
|
|
42573
42590
|
var playerEffectivePoints = getEffectivePoints($this, player, cfg);
|
|
42574
42591
|
var opponentEffectivePoints = getEffectivePoints($this, opponent, cfg);
|
|
42575
42592
|
var tmp;
|
|
42576
42593
|
if (cfg.ffaMovEnabled) {
|
|
42577
|
-
tmp =
|
|
42594
|
+
tmp = calculateFfaAdaptivePairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, allPlayerScores, maxScore);
|
|
42595
|
+
} else {
|
|
42596
|
+
tmp = calculateProportionalPairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, maxScore);
|
|
42597
|
+
}
|
|
42598
|
+
return tmp;
|
|
42599
|
+
}
|
|
42600
|
+
function calculateProportionalPairwiseResult($this, playerPoints, opponentPoints, maxScore) {
|
|
42601
|
+
var tmp;
|
|
42602
|
+
if (maxScore > 0) {
|
|
42603
|
+
// Inline function 'kotlin.math.max' call
|
|
42604
|
+
var b = playerPoints / maxScore;
|
|
42605
|
+
var playerProportion = Math.max(0.0, b);
|
|
42606
|
+
// Inline function 'kotlin.math.max' call
|
|
42607
|
+
var b_0 = opponentPoints / maxScore;
|
|
42608
|
+
var opponentProportion = Math.max(0.0, b_0);
|
|
42609
|
+
var tmp_0;
|
|
42610
|
+
if (playerProportion > opponentProportion) {
|
|
42611
|
+
var tmp_1 = playerProportion - opponentProportion;
|
|
42612
|
+
// Inline function 'kotlin.math.max' call
|
|
42613
|
+
tmp_0 = 0.5 + 0.5 * (tmp_1 / Math.max(playerProportion, opponentProportion));
|
|
42614
|
+
} else if (playerProportion < opponentProportion) {
|
|
42615
|
+
var tmp_2 = opponentProportion - playerProportion;
|
|
42616
|
+
// Inline function 'kotlin.math.max' call
|
|
42617
|
+
tmp_0 = 0.5 - 0.5 * (tmp_2 / Math.max(playerProportion, opponentProportion));
|
|
42618
|
+
} else {
|
|
42619
|
+
tmp_0 = 0.5;
|
|
42620
|
+
}
|
|
42621
|
+
tmp = tmp_0;
|
|
42578
42622
|
} else {
|
|
42579
|
-
tmp =
|
|
42623
|
+
tmp = playerPoints > opponentPoints ? 1.0 : playerPoints < opponentPoints ? 0.0 : 0.5;
|
|
42580
42624
|
}
|
|
42581
42625
|
return tmp;
|
|
42582
42626
|
}
|
|
42583
|
-
function
|
|
42627
|
+
function calculateFfaAdaptivePairwiseResult($this, playerPoints, opponentPoints, allPlayerScores, maxScore) {
|
|
42584
42628
|
var scoreDiff = playerPoints - opponentPoints | 0;
|
|
42585
|
-
var
|
|
42586
|
-
var
|
|
42629
|
+
var sortedScores = sorted(allPlayerScores);
|
|
42630
|
+
var tmp;
|
|
42631
|
+
if (sortedScores.o() >= 2) {
|
|
42632
|
+
// Inline function 'kotlin.math.max' call
|
|
42633
|
+
var a = last(sortedScores) - sortedScores.p(sortedScores.o() - 2 | 0) | 0;
|
|
42634
|
+
tmp = Math.max(a, 50);
|
|
42635
|
+
} else {
|
|
42636
|
+
tmp = maxScore;
|
|
42637
|
+
}
|
|
42638
|
+
var competitiveRange = tmp;
|
|
42639
|
+
var normalizedDiff = coerceIn(scoreDiff / competitiveRange, -1.0, 1.0);
|
|
42587
42640
|
return 0.5 + 0.5 * normalizedDiff;
|
|
42588
42641
|
}
|
|
42642
|
+
function calculateDynamicMaxScore($this, maxScore, playerScores) {
|
|
42643
|
+
var tmp0_elvis_lhs = maxOrNull(playerScores);
|
|
42644
|
+
var maxActualScore = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
42645
|
+
// Inline function 'kotlin.math.max' call
|
|
42646
|
+
return Math.max(maxScore, maxActualScore);
|
|
42647
|
+
}
|
|
42648
|
+
function calculateProportionalResult($this, playerScore, dynamicMaxScore) {
|
|
42649
|
+
var tmp;
|
|
42650
|
+
if (dynamicMaxScore > 0) {
|
|
42651
|
+
// Inline function 'kotlin.math.max' call
|
|
42652
|
+
var b = playerScore / dynamicMaxScore;
|
|
42653
|
+
tmp = Math.max(0.0, b);
|
|
42654
|
+
} else {
|
|
42655
|
+
tmp = 0.0;
|
|
42656
|
+
}
|
|
42657
|
+
return tmp;
|
|
42658
|
+
}
|
|
42659
|
+
function calculateCloseLossProtection($this, playerScore, originalMaxScore, baseRatingChange, cfg) {
|
|
42660
|
+
var tmp;
|
|
42661
|
+
if (playerScore >= originalMaxScore * cfg.h2hCloseLossThresholdRatio && baseRatingChange < 0) {
|
|
42662
|
+
tmp = calculateScoreFactor($this, originalMaxScore, playerScore, cfg.h2hCloseLossThresholdRatio);
|
|
42663
|
+
} else {
|
|
42664
|
+
tmp = 1.0;
|
|
42665
|
+
}
|
|
42666
|
+
return tmp;
|
|
42667
|
+
}
|
|
42589
42668
|
function calculateFfaScaling($this, playerCount, cfg) {
|
|
42590
42669
|
switch (playerCount) {
|
|
42591
42670
|
case 3:
|
|
@@ -42821,8 +42900,19 @@
|
|
|
42821
42900
|
destination_2.j(tmp$ret$17);
|
|
42822
42901
|
}
|
|
42823
42902
|
var teamAvgLoser = average(destination_2);
|
|
42824
|
-
var
|
|
42825
|
-
var
|
|
42903
|
+
var winnerActual;
|
|
42904
|
+
var loserActual;
|
|
42905
|
+
if (winnerTeamOriginalScore >= maxScore && loserTeamOriginalScore >= maxScore) {
|
|
42906
|
+
var rawWinnerActual = calculateProportionalResult(this, winnerTeamScore, maxScore);
|
|
42907
|
+
var rawLoserActual = calculateProportionalResult(this, loserTeamScore, maxScore);
|
|
42908
|
+
winnerActual = rawWinnerActual;
|
|
42909
|
+
// Inline function 'kotlin.math.min' call
|
|
42910
|
+
var b = rawWinnerActual * 0.95;
|
|
42911
|
+
loserActual = Math.min(rawLoserActual, b);
|
|
42912
|
+
} else {
|
|
42913
|
+
winnerActual = winnerTeamOriginalScore >= maxScore ? 1.0 : 0.0;
|
|
42914
|
+
loserActual = loserTeamOriginalScore >= maxScore ? 1.0 : 0.0;
|
|
42915
|
+
}
|
|
42826
42916
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
42827
42917
|
var results = ArrayList_init_$Create$_0();
|
|
42828
42918
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -42833,23 +42923,18 @@
|
|
|
42833
42923
|
results.j(frozenOutput(this, element_5));
|
|
42834
42924
|
} else {
|
|
42835
42925
|
var expected = pBeats(this, element_5.d71_1, teamAvgLoser, ratingConfig.eloScaleH2H);
|
|
42836
|
-
var actual = winnerTeamOriginalScore >= maxScore ? 1.0 : 0.0;
|
|
42837
42926
|
var tmp_3;
|
|
42838
42927
|
if (element_5.g71_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && ratingConfig.replacementForcedDecrease) {
|
|
42839
42928
|
tmp_3 = 0.0;
|
|
42840
42929
|
} else {
|
|
42841
|
-
tmp_3 =
|
|
42930
|
+
tmp_3 = winnerActual;
|
|
42842
42931
|
}
|
|
42843
42932
|
var effectiveActual = tmp_3;
|
|
42844
42933
|
var kFactor = baseK(this, element_5.h71_1, gameComplexityCoefficient, ratingConfig);
|
|
42845
|
-
var
|
|
42846
|
-
|
|
42847
|
-
|
|
42848
|
-
|
|
42849
|
-
tmp_4 = 1.0;
|
|
42850
|
-
}
|
|
42851
|
-
var scoreFactor = tmp_4;
|
|
42852
|
-
var ratingChange = kFactor * scoreFactor * (effectiveActual - expected);
|
|
42934
|
+
var baseRatingChange = kFactor * (effectiveActual - expected);
|
|
42935
|
+
var playerEffectivePoints = getEffectivePoints(this, element_5, ratingConfig);
|
|
42936
|
+
var scoreFactor = calculateCloseLossProtection(this, playerEffectivePoints, maxScore, baseRatingChange, ratingConfig);
|
|
42937
|
+
var ratingChange = baseRatingChange * scoreFactor;
|
|
42853
42938
|
var newRating = clampAndRound(this, element_5.d71_1 + ratingChange, minUserRating, maxUserRating);
|
|
42854
42939
|
if (element_5.f71_1 && newRating < element_5.d71_1 && !(element_5.g71_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && ratingConfig.replacementForcedDecrease)) {
|
|
42855
42940
|
newRating = element_5.d71_1;
|
|
@@ -42865,16 +42950,19 @@
|
|
|
42865
42950
|
results.j(frozenOutput(this, element_6));
|
|
42866
42951
|
} else {
|
|
42867
42952
|
var expected_0 = pBeats(this, element_6.d71_1, teamAvgWinner, ratingConfig.eloScaleH2H);
|
|
42868
|
-
var actual_0 = loserTeamOriginalScore >= maxScore ? 1.0 : 0.0;
|
|
42869
42953
|
var kFactor_0 = baseK(this, element_6.h71_1, gameComplexityCoefficient, ratingConfig);
|
|
42870
|
-
var
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42954
|
+
var baseRatingChange_0 = kFactor_0 * (loserActual - expected_0);
|
|
42955
|
+
// Inline function 'kotlin.collections.sumOf' call
|
|
42956
|
+
var sum_3 = 0;
|
|
42957
|
+
var _iterator__ex2g4s_9 = losers.l();
|
|
42958
|
+
while (_iterator__ex2g4s_9.m()) {
|
|
42959
|
+
var element_7 = _iterator__ex2g4s_9.n();
|
|
42960
|
+
var tmp_4 = sum_3;
|
|
42961
|
+
sum_3 = tmp_4 + getEffectivePoints(this, element_7, ratingConfig) | 0;
|
|
42962
|
+
}
|
|
42963
|
+
var teamTotalScore = sum_3;
|
|
42964
|
+
var scoreFactor_0 = calculateCloseLossProtection(this, teamTotalScore, maxScore, baseRatingChange_0, ratingConfig);
|
|
42965
|
+
var ratingChange_0 = baseRatingChange_0 * scoreFactor_0;
|
|
42878
42966
|
var newRating_0 = clampAndRound(this, element_6.d71_1 + ratingChange_0, minUserRating, maxUserRating);
|
|
42879
42967
|
results.j(new PlayerRatingOutput(element_6.c71_1, element_6.d71_1, newRating_0, element_6.f71_1));
|
|
42880
42968
|
}
|
|
@@ -50517,19 +50605,18 @@
|
|
|
50517
50605
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
50518
50606
|
return hashCode(this.a3());
|
|
50519
50607
|
};
|
|
50520
|
-
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller,
|
|
50608
|
+
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
50521
50609
|
this.g94_1 = $controller;
|
|
50522
|
-
this.h94_1 = $loggerKey;
|
|
50523
50610
|
CoroutineImpl.call(this, resultContinuation);
|
|
50524
50611
|
}
|
|
50525
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
50526
|
-
var tmp = this.
|
|
50612
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).i94 = function (it, $completion) {
|
|
50613
|
+
var tmp = this.j94(it, $completion);
|
|
50527
50614
|
tmp.t8_1 = Unit_instance;
|
|
50528
50615
|
tmp.u8_1 = null;
|
|
50529
50616
|
return tmp.z8();
|
|
50530
50617
|
};
|
|
50531
50618
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
|
|
50532
|
-
return this.
|
|
50619
|
+
return this.i94(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
50533
50620
|
};
|
|
50534
50621
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
|
|
50535
50622
|
var suspendResult = this.t8_1;
|
|
@@ -50539,9 +50626,9 @@
|
|
|
50539
50626
|
switch (tmp) {
|
|
50540
50627
|
case 0:
|
|
50541
50628
|
this.s8_1 = 2;
|
|
50542
|
-
var log = this.
|
|
50629
|
+
var log = this.h94_1.toMessageLog();
|
|
50543
50630
|
this.r8_1 = 1;
|
|
50544
|
-
suspendResult = this.g94_1.m6f(
|
|
50631
|
+
suspendResult = this.g94_1.m6f(log, this);
|
|
50545
50632
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50546
50633
|
return suspendResult;
|
|
50547
50634
|
}
|
|
@@ -50563,23 +50650,23 @@
|
|
|
50563
50650
|
}
|
|
50564
50651
|
while (true);
|
|
50565
50652
|
};
|
|
50566
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
50567
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.g94_1,
|
|
50568
|
-
i.
|
|
50653
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).j94 = function (it, completion) {
|
|
50654
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.g94_1, completion);
|
|
50655
|
+
i.h94_1 = it;
|
|
50569
50656
|
return i;
|
|
50570
50657
|
};
|
|
50571
|
-
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller,
|
|
50572
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller,
|
|
50658
|
+
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
50659
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
50573
50660
|
var l = function (it, $completion) {
|
|
50574
|
-
return i.
|
|
50661
|
+
return i.i94(it, $completion);
|
|
50575
50662
|
};
|
|
50576
50663
|
l.$arity = 1;
|
|
50577
50664
|
return l;
|
|
50578
50665
|
}
|
|
50579
50666
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
50580
|
-
this.
|
|
50581
|
-
this.
|
|
50582
|
-
this.
|
|
50667
|
+
this.s94_1 = $controller;
|
|
50668
|
+
this.t94_1 = $$loggerOutput;
|
|
50669
|
+
this.u94_1 = $loggerKey;
|
|
50583
50670
|
CoroutineImpl.call(this, resultContinuation);
|
|
50584
50671
|
}
|
|
50585
50672
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).z2c = function ($this$launchDefault, $completion) {
|
|
@@ -50600,7 +50687,7 @@
|
|
|
50600
50687
|
case 0:
|
|
50601
50688
|
this.s8_1 = 3;
|
|
50602
50689
|
this.r8_1 = 1;
|
|
50603
|
-
suspendResult = this.
|
|
50690
|
+
suspendResult = this.s94_1.l6f(this);
|
|
50604
50691
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50605
50692
|
return suspendResult;
|
|
50606
50693
|
}
|
|
@@ -50608,8 +50695,8 @@
|
|
|
50608
50695
|
continue $sm;
|
|
50609
50696
|
case 1:
|
|
50610
50697
|
this.r8_1 = 2;
|
|
50611
|
-
var tmp_0 = this.
|
|
50612
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
50698
|
+
var tmp_0 = this.t94_1.w94(this.u94_1);
|
|
50699
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.s94_1, null);
|
|
50613
50700
|
suspendResult = tmp_0.l27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
50614
50701
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50615
50702
|
return suspendResult;
|
|
@@ -50633,8 +50720,8 @@
|
|
|
50633
50720
|
while (true);
|
|
50634
50721
|
};
|
|
50635
50722
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).a2d = function ($this$launchDefault, completion) {
|
|
50636
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
50637
|
-
i.
|
|
50723
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.s94_1, this.t94_1, this.u94_1, completion);
|
|
50724
|
+
i.v94_1 = $this$launchDefault;
|
|
50638
50725
|
return i;
|
|
50639
50726
|
};
|
|
50640
50727
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
@@ -50753,20 +50840,20 @@
|
|
|
50753
50840
|
return null;
|
|
50754
50841
|
}
|
|
50755
50842
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
|
|
50756
|
-
this.
|
|
50757
|
-
this.
|
|
50758
|
-
this.
|
|
50759
|
-
this.
|
|
50760
|
-
this.
|
|
50843
|
+
this.x94_1 = $engineLogicConfig;
|
|
50844
|
+
this.y94_1 = $logger;
|
|
50845
|
+
this.z94_1 = $sceneRouter;
|
|
50846
|
+
this.a95_1 = $idsProvider;
|
|
50847
|
+
this.b95_1 = $playerConnectionInteractor;
|
|
50761
50848
|
}
|
|
50762
50849
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
50763
50850
|
return action instanceof MechanicAction;
|
|
50764
50851
|
};
|
|
50765
50852
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).m6h = function (store, next, action) {
|
|
50766
50853
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
50767
|
-
if (this.
|
|
50854
|
+
if (this.x94_1.validateIfMainThread) {
|
|
50768
50855
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
50769
|
-
var logger = this.
|
|
50856
|
+
var logger = this.y94_1;
|
|
50770
50857
|
var tmp;
|
|
50771
50858
|
try {
|
|
50772
50859
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -50793,22 +50880,22 @@
|
|
|
50793
50880
|
if (equals(action_0.p8u_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
50794
50881
|
tmp_2 = listOf(createHostDealerAct(action_0.s8u_1));
|
|
50795
50882
|
} else {
|
|
50796
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
50883
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.z94_1.y8s(action_0.p8u_1, true).l8t_1));
|
|
50797
50884
|
}
|
|
50798
50885
|
tmp_1 = tmp_2;
|
|
50799
50886
|
} else {
|
|
50800
50887
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
50801
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
50888
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.z94_1.y8s(state.n6n().config, false).l8t_1));
|
|
50802
50889
|
} else {
|
|
50803
50890
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
50804
50891
|
var tmp1_config = state.n6n().config;
|
|
50805
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
50892
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.z94_1.z8s(tmp1_config, false, false).l8t_1));
|
|
50806
50893
|
} else {
|
|
50807
50894
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
50808
50895
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.n6n().sceneInfo.u7t_1));
|
|
50809
50896
|
} else {
|
|
50810
50897
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
50811
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.n6n(), this.
|
|
50898
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.n6n(), this.a95_1, this.x94_1, this.b95_1, this.y94_1));
|
|
50812
50899
|
} else {
|
|
50813
50900
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
50814
50901
|
var tmp_3;
|
|
@@ -50946,12 +51033,12 @@
|
|
|
50946
51033
|
}
|
|
50947
51034
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
50948
51035
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
50949
|
-
this.
|
|
50950
|
-
this.
|
|
50951
|
-
this.
|
|
51036
|
+
this.c95_1 = playersIds;
|
|
51037
|
+
this.d95_1 = tag;
|
|
51038
|
+
this.e95_1 = afterReconnection;
|
|
50952
51039
|
}
|
|
50953
51040
|
protoOf(PlayerTurnTimerTag).t65 = function () {
|
|
50954
|
-
return single(this.
|
|
51041
|
+
return single(this.c95_1);
|
|
50955
51042
|
};
|
|
50956
51043
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
50957
51044
|
if (this === other)
|
|
@@ -50960,13 +51047,13 @@
|
|
|
50960
51047
|
return false;
|
|
50961
51048
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
50962
51049
|
THROW_CCE();
|
|
50963
|
-
return equals(this.
|
|
51050
|
+
return equals(this.c95_1, other.c95_1);
|
|
50964
51051
|
};
|
|
50965
51052
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
50966
|
-
return hashCode(this.
|
|
51053
|
+
return hashCode(this.c95_1);
|
|
50967
51054
|
};
|
|
50968
51055
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
50969
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
51056
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.c95_1) + ', tag=' + this.d95_1 + ', afterReconnection=' + this.e95_1 + ')';
|
|
50970
51057
|
};
|
|
50971
51058
|
function playerStartTimerMiddleware(botConfig, playerTurnInteractor, isEnableTimerForPlayer, mergeTimers) {
|
|
50972
51059
|
mergeTimers = mergeTimers === VOID ? false : mergeTimers;
|
|
@@ -51009,10 +51096,10 @@
|
|
|
51009
51096
|
return tmp;
|
|
51010
51097
|
}
|
|
51011
51098
|
function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
51012
|
-
this.
|
|
51013
|
-
this.
|
|
51014
|
-
this.
|
|
51015
|
-
this.
|
|
51099
|
+
this.f95_1 = $isEnableTimerForPlayer;
|
|
51100
|
+
this.g95_1 = $playerTurnInteractor;
|
|
51101
|
+
this.h95_1 = $botConfig;
|
|
51102
|
+
this.i95_1 = $mergeTimers;
|
|
51016
51103
|
}
|
|
51017
51104
|
protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51018
51105
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -51028,14 +51115,14 @@
|
|
|
51028
51115
|
var _iterator__ex2g4s = tmp0.l();
|
|
51029
51116
|
while (_iterator__ex2g4s.m()) {
|
|
51030
51117
|
var element = _iterator__ex2g4s.n();
|
|
51031
|
-
if (this.
|
|
51118
|
+
if (this.f95_1(element)) {
|
|
51032
51119
|
destination.j(element);
|
|
51033
51120
|
}
|
|
51034
51121
|
}
|
|
51035
51122
|
var startTimerForPlayers = destination;
|
|
51036
51123
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
51037
51124
|
if (!startTimerForPlayers.r()) {
|
|
51038
|
-
var playerTurnModel = this.
|
|
51125
|
+
var playerTurnModel = this.g95_1.d8q(action_0, table);
|
|
51039
51126
|
if (!(playerTurnModel == null)) {
|
|
51040
51127
|
// Inline function 'kotlin.collections.map' call
|
|
51041
51128
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51043,11 +51130,11 @@
|
|
|
51043
51130
|
var _iterator__ex2g4s_0 = startTimerForPlayers.l();
|
|
51044
51131
|
while (_iterator__ex2g4s_0.m()) {
|
|
51045
51132
|
var item = _iterator__ex2g4s_0.n();
|
|
51046
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
51133
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.h95_1.isDelayForBot, this.h95_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
51047
51134
|
destination_0.j(tmp$ret$4);
|
|
51048
51135
|
}
|
|
51049
51136
|
var timeForPlayers = destination_0;
|
|
51050
|
-
if (this.
|
|
51137
|
+
if (this.i95_1) {
|
|
51051
51138
|
// Inline function 'kotlin.collections.groupBy' call
|
|
51052
51139
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
51053
51140
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -51121,14 +51208,14 @@
|
|
|
51121
51208
|
return this.m6h(store, next, action);
|
|
51122
51209
|
};
|
|
51123
51210
|
function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
51124
|
-
this.
|
|
51211
|
+
this.j95_1 = $isEnableBotForPlayer;
|
|
51125
51212
|
}
|
|
51126
51213
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51127
51214
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
51128
51215
|
};
|
|
51129
51216
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).m6h = function (store, next, action) {
|
|
51130
51217
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
51131
|
-
if (this.
|
|
51218
|
+
if (this.j95_1(action_0.playerId)) {
|
|
51132
51219
|
var table = store.state.n6n();
|
|
51133
51220
|
var player = getPlayer(table.players, action_0.playerId);
|
|
51134
51221
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -51149,7 +51236,7 @@
|
|
|
51149
51236
|
var _iterator__ex2g4s_0 = destination.l();
|
|
51150
51237
|
while (_iterator__ex2g4s_0.m()) {
|
|
51151
51238
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
51152
|
-
if (element_0.
|
|
51239
|
+
if (element_0.c95_1.t1(action_0.playerId) && element_0.d95_1 === player.o6q_1.l68()) {
|
|
51153
51240
|
tmp$ret$3 = element_0;
|
|
51154
51241
|
break $l$block;
|
|
51155
51242
|
}
|
|
@@ -51171,11 +51258,11 @@
|
|
|
51171
51258
|
return new playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
51172
51259
|
}
|
|
51173
51260
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
51174
|
-
this.
|
|
51175
|
-
this.
|
|
51176
|
-
this.
|
|
51177
|
-
this.
|
|
51178
|
-
this.
|
|
51261
|
+
this.s95_1 = $store;
|
|
51262
|
+
this.t95_1 = $timerTag;
|
|
51263
|
+
this.u95_1 = $serverConfig;
|
|
51264
|
+
this.v95_1 = $logger;
|
|
51265
|
+
this.w95_1 = $action;
|
|
51179
51266
|
CoroutineImpl.call(this, resultContinuation);
|
|
51180
51267
|
}
|
|
51181
51268
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).z2c = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -51194,13 +51281,13 @@
|
|
|
51194
51281
|
var tmp = this.r8_1;
|
|
51195
51282
|
if (tmp === 0) {
|
|
51196
51283
|
this.s8_1 = 1;
|
|
51197
|
-
var table = this.
|
|
51198
|
-
var player = getPlayer(table.players, this.
|
|
51284
|
+
var table = this.s95_1.state.n6n();
|
|
51285
|
+
var player = getPlayer(table.players, this.t95_1.t65());
|
|
51199
51286
|
var connectionState = player.o6q_1.v68().m67_1;
|
|
51200
51287
|
var tmp_0;
|
|
51201
51288
|
switch (connectionState.p2_1) {
|
|
51202
51289
|
case 0:
|
|
51203
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.
|
|
51290
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.t95_1.e95_1));
|
|
51204
51291
|
break;
|
|
51205
51292
|
case 4:
|
|
51206
51293
|
tmp_0 = emptyList();
|
|
@@ -51209,8 +51296,8 @@
|
|
|
51209
51296
|
case 2:
|
|
51210
51297
|
case 1:
|
|
51211
51298
|
var tmp_1;
|
|
51212
|
-
if (table.sceneInfo.h7a() && this.
|
|
51213
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.
|
|
51299
|
+
if (table.sceneInfo.h7a() && this.u95_1.closeIfBotsAtFinish) {
|
|
51300
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.t95_1.e95_1);
|
|
51214
51301
|
} else {
|
|
51215
51302
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
51216
51303
|
}
|
|
@@ -51218,7 +51305,7 @@
|
|
|
51218
51305
|
tmp_0 = listOf(tmp_1);
|
|
51219
51306
|
break;
|
|
51220
51307
|
case 5:
|
|
51221
|
-
this.
|
|
51308
|
+
this.v95_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + connectionState.toString() + ', ') + ('action:' + this.w95_1.toString()));
|
|
51222
51309
|
tmp_0 = emptyList();
|
|
51223
51310
|
break;
|
|
51224
51311
|
default:
|
|
@@ -51230,7 +51317,7 @@
|
|
|
51230
51317
|
var _iterator__ex2g4s = actions.l();
|
|
51231
51318
|
while (_iterator__ex2g4s.m()) {
|
|
51232
51319
|
var element = _iterator__ex2g4s.n();
|
|
51233
|
-
this.
|
|
51320
|
+
this.s95_1.dispatch(element);
|
|
51234
51321
|
}
|
|
51235
51322
|
}
|
|
51236
51323
|
return Unit_instance;
|
|
@@ -51244,8 +51331,8 @@
|
|
|
51244
51331
|
while (true);
|
|
51245
51332
|
};
|
|
51246
51333
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).a2d = function ($this$launchDefaultWithLock, completion) {
|
|
51247
|
-
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.t95_1, this.u95_1, this.v95_1, this.w95_1,
|
|
51248
|
-
i.
|
|
51334
|
+
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.s95_1, this.t95_1, this.u95_1, this.v95_1, this.w95_1, completion);
|
|
51335
|
+
i.x95_1 = $this$launchDefaultWithLock;
|
|
51249
51336
|
return i;
|
|
51250
51337
|
};
|
|
51251
51338
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -51257,9 +51344,9 @@
|
|
|
51257
51344
|
return l;
|
|
51258
51345
|
}
|
|
51259
51346
|
function playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
51260
|
-
this.
|
|
51261
|
-
this.
|
|
51262
|
-
this.
|
|
51347
|
+
this.y95_1 = $asyncProvider;
|
|
51348
|
+
this.z95_1 = $serverConfig;
|
|
51349
|
+
this.a96_1 = $logger;
|
|
51263
51350
|
}
|
|
51264
51351
|
protoOf(playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51265
51352
|
return action instanceof TimerTickAction;
|
|
@@ -51268,7 +51355,7 @@
|
|
|
51268
51355
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
51269
51356
|
var timerTag = action_0.t6f_1;
|
|
51270
51357
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
51271
|
-
this.
|
|
51358
|
+
this.y95_1.h6c(VOID, playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0(store, timerTag, this.z95_1, this.a96_1, action_0, null));
|
|
51272
51359
|
}
|
|
51273
51360
|
next(action_0);
|
|
51274
51361
|
};
|
|
@@ -51280,7 +51367,7 @@
|
|
|
51280
51367
|
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
51281
51368
|
}
|
|
51282
51369
|
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
51283
|
-
this.
|
|
51370
|
+
this.b96_1 = $playerConnectionInteractor;
|
|
51284
51371
|
}
|
|
51285
51372
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51286
51373
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -51316,7 +51403,7 @@
|
|
|
51316
51403
|
var _iterator__ex2g4s_0 = destination.l();
|
|
51317
51404
|
while (_iterator__ex2g4s_0.m()) {
|
|
51318
51405
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
51319
|
-
if (element_0.
|
|
51406
|
+
if (element_0.c96_1 === tmp4.z8t_1) {
|
|
51320
51407
|
if (found) {
|
|
51321
51408
|
tmp$ret$4 = null;
|
|
51322
51409
|
break $l$block_2;
|
|
@@ -51335,7 +51422,7 @@
|
|
|
51335
51422
|
if (!(reconnectionTimerTag == null)) {
|
|
51336
51423
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
51337
51424
|
}
|
|
51338
|
-
var actions = this.
|
|
51425
|
+
var actions = this.b96_1.b8q(tmp4.y8t_1, tmp4.z8t_1, store.state.n6n(), tmp4.a8u_1);
|
|
51339
51426
|
// Inline function 'kotlin.collections.forEach' call
|
|
51340
51427
|
var _iterator__ex2g4s_1 = actions.l();
|
|
51341
51428
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -51352,15 +51439,15 @@
|
|
|
51352
51439
|
return new playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
51353
51440
|
}
|
|
51354
51441
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
51355
|
-
this.
|
|
51356
|
-
this.
|
|
51442
|
+
this.c96_1 = playerId;
|
|
51443
|
+
this.d96_1 = state;
|
|
51357
51444
|
}
|
|
51358
51445
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
51359
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
51446
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.c96_1 + ', state=' + this.d96_1.toString() + ')';
|
|
51360
51447
|
};
|
|
51361
51448
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
51362
|
-
var result = getStringHashCode(this.
|
|
51363
|
-
result = imul(result, 31) + this.
|
|
51449
|
+
var result = getStringHashCode(this.c96_1);
|
|
51450
|
+
result = imul(result, 31) + this.d96_1.hashCode() | 0;
|
|
51364
51451
|
return result;
|
|
51365
51452
|
};
|
|
51366
51453
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -51368,14 +51455,14 @@
|
|
|
51368
51455
|
return true;
|
|
51369
51456
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
51370
51457
|
return false;
|
|
51371
|
-
if (!(this.
|
|
51458
|
+
if (!(this.c96_1 === other.c96_1))
|
|
51372
51459
|
return false;
|
|
51373
|
-
if (!this.
|
|
51460
|
+
if (!this.d96_1.equals(other.d96_1))
|
|
51374
51461
|
return false;
|
|
51375
51462
|
return true;
|
|
51376
51463
|
};
|
|
51377
51464
|
function playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
51378
|
-
this.
|
|
51465
|
+
this.e96_1 = $playerConnectionInteractor;
|
|
51379
51466
|
}
|
|
51380
51467
|
protoOf(playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51381
51468
|
return action instanceof TimerTickAction;
|
|
@@ -51389,7 +51476,7 @@
|
|
|
51389
51476
|
var timerTag = tmp4.t6f_1;
|
|
51390
51477
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
51391
51478
|
var state = store.state;
|
|
51392
|
-
var actions = this.
|
|
51479
|
+
var actions = this.e96_1.b8q(timerTag.d96_1, timerTag.c96_1, state.n6n(), true);
|
|
51393
51480
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
51394
51481
|
if (!actions.r()) {
|
|
51395
51482
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -51411,8 +51498,8 @@
|
|
|
51411
51498
|
return new clearOnFinishMiddleware$$inlined$middlewareForActionType$1(asyncProvider, operationsToWait);
|
|
51412
51499
|
}
|
|
51413
51500
|
function clearOnFinishMiddleware$o$handle$slambda($operationsToWait, $store, resultContinuation) {
|
|
51414
|
-
this.
|
|
51415
|
-
this.
|
|
51501
|
+
this.n96_1 = $operationsToWait;
|
|
51502
|
+
this.o96_1 = $store;
|
|
51416
51503
|
CoroutineImpl.call(this, resultContinuation);
|
|
51417
51504
|
}
|
|
51418
51505
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).z2c = function ($this$launchDefault, $completion) {
|
|
@@ -51432,18 +51519,18 @@
|
|
|
51432
51519
|
switch (tmp) {
|
|
51433
51520
|
case 0:
|
|
51434
51521
|
this.s8_1 = 4;
|
|
51435
|
-
this.
|
|
51522
|
+
this.q96_1 = this.n96_1.l();
|
|
51436
51523
|
this.r8_1 = 1;
|
|
51437
51524
|
continue $sm;
|
|
51438
51525
|
case 1:
|
|
51439
|
-
if (!this.
|
|
51526
|
+
if (!this.q96_1.m()) {
|
|
51440
51527
|
this.r8_1 = 3;
|
|
51441
51528
|
continue $sm;
|
|
51442
51529
|
}
|
|
51443
51530
|
|
|
51444
|
-
var element = this.
|
|
51531
|
+
var element = this.q96_1.n();
|
|
51445
51532
|
this.r8_1 = 2;
|
|
51446
|
-
suspendResult = element.
|
|
51533
|
+
suspendResult = element.r96(this);
|
|
51447
51534
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
51448
51535
|
return suspendResult;
|
|
51449
51536
|
}
|
|
@@ -51453,8 +51540,8 @@
|
|
|
51453
51540
|
this.r8_1 = 1;
|
|
51454
51541
|
continue $sm;
|
|
51455
51542
|
case 3:
|
|
51456
|
-
var tmp_0 = this.
|
|
51457
|
-
var tmp0_safe_receiver = this.
|
|
51543
|
+
var tmp_0 = this.o96_1.dispatch;
|
|
51544
|
+
var tmp0_safe_receiver = this.o96_1.state.n6m_1;
|
|
51458
51545
|
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8t_1));
|
|
51459
51546
|
return Unit_instance;
|
|
51460
51547
|
case 4:
|
|
@@ -51472,8 +51559,8 @@
|
|
|
51472
51559
|
while (true);
|
|
51473
51560
|
};
|
|
51474
51561
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).a2d = function ($this$launchDefault, completion) {
|
|
51475
|
-
var i = new clearOnFinishMiddleware$o$handle$slambda(this.
|
|
51476
|
-
i.
|
|
51562
|
+
var i = new clearOnFinishMiddleware$o$handle$slambda(this.n96_1, this.o96_1, completion);
|
|
51563
|
+
i.p96_1 = $this$launchDefault;
|
|
51477
51564
|
return i;
|
|
51478
51565
|
};
|
|
51479
51566
|
function clearOnFinishMiddleware$o$handle$slambda_0($operationsToWait, $store, resultContinuation) {
|
|
@@ -51485,15 +51572,15 @@
|
|
|
51485
51572
|
return l;
|
|
51486
51573
|
}
|
|
51487
51574
|
function clearOnFinishMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $operationsToWait) {
|
|
51488
|
-
this.
|
|
51489
|
-
this.
|
|
51575
|
+
this.s96_1 = $asyncProvider;
|
|
51576
|
+
this.t96_1 = $operationsToWait;
|
|
51490
51577
|
}
|
|
51491
51578
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51492
51579
|
return action instanceof FinishGameMechanicAction;
|
|
51493
51580
|
};
|
|
51494
51581
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).m6h = function (store, next, action) {
|
|
51495
51582
|
next(action instanceof FinishGameMechanicAction ? action : THROW_CCE());
|
|
51496
|
-
this.
|
|
51583
|
+
this.s96_1.f6c(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.t96_1, store, null));
|
|
51497
51584
|
};
|
|
51498
51585
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).w6f = function (store, next, action) {
|
|
51499
51586
|
return this.m6h(store, next, action);
|
|
@@ -51503,12 +51590,12 @@
|
|
|
51503
51590
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
51504
51591
|
}
|
|
51505
51592
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
51506
|
-
this.
|
|
51507
|
-
this.
|
|
51508
|
-
this.
|
|
51509
|
-
this.
|
|
51510
|
-
this.
|
|
51511
|
-
this.
|
|
51593
|
+
this.c97_1 = $action;
|
|
51594
|
+
this.d97_1 = $sceneFactory;
|
|
51595
|
+
this.e97_1 = $table;
|
|
51596
|
+
this.f97_1 = $router;
|
|
51597
|
+
this.g97_1 = $store;
|
|
51598
|
+
this.h97_1 = $sceneValidationInteractor;
|
|
51512
51599
|
CoroutineImpl.call(this, resultContinuation);
|
|
51513
51600
|
}
|
|
51514
51601
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).z2c = function ($this$launchDefault, $completion) {
|
|
@@ -51528,10 +51615,10 @@
|
|
|
51528
51615
|
switch (tmp) {
|
|
51529
51616
|
case 0:
|
|
51530
51617
|
this.s8_1 = 3;
|
|
51531
|
-
var tmp0_subject = this.
|
|
51618
|
+
var tmp0_subject = this.c97_1;
|
|
51532
51619
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
51533
51620
|
this.r8_1 = 1;
|
|
51534
|
-
suspendResult = this.
|
|
51621
|
+
suspendResult = this.d97_1.u8s(this.c97_1.t8x_1, this.e97_1, this);
|
|
51535
51622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
51536
51623
|
return suspendResult;
|
|
51537
51624
|
}
|
|
@@ -51539,37 +51626,37 @@
|
|
|
51539
51626
|
} else {
|
|
51540
51627
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
51541
51628
|
var tmp_0 = this;
|
|
51542
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
51629
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.e97_1.players));
|
|
51543
51630
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
51544
|
-
var nextSceneCommand = this.
|
|
51631
|
+
var nextSceneCommand = this.f97_1.f8t(this.c97_1.s8x_1, !(gameWinnerPlayerId == null), false, this.e97_1.config);
|
|
51545
51632
|
var tmp_1;
|
|
51546
51633
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
51547
51634
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.l8t_1));
|
|
51548
51635
|
} else {
|
|
51549
51636
|
noWhenBranchMatchedException();
|
|
51550
51637
|
}
|
|
51551
|
-
tmp_0.
|
|
51638
|
+
tmp_0.j97_1 = tmp_1;
|
|
51552
51639
|
this.r8_1 = 2;
|
|
51553
51640
|
continue $sm;
|
|
51554
51641
|
} else {
|
|
51555
51642
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
51556
51643
|
var tmp_2 = this;
|
|
51557
|
-
this.
|
|
51558
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
51559
|
-
tmp_2.
|
|
51644
|
+
this.h97_1.b8t(this.g97_1.state.o6m_1, 'Timers are not empty before scene act ' + this.c97_1.u8x_1 + ', ' + this.c97_1.v8x_1);
|
|
51645
|
+
var mechanicAction = new SceneActMechanicAction(this.c97_1.u8x_1, this.c97_1.v8x_1, this.c97_1.w8x_1);
|
|
51646
|
+
tmp_2.j97_1 = listOf(mechanicAction);
|
|
51560
51647
|
this.r8_1 = 2;
|
|
51561
51648
|
continue $sm;
|
|
51562
51649
|
} else {
|
|
51563
51650
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
51564
51651
|
var tmp_3 = this;
|
|
51565
|
-
var navigationCommand = this.
|
|
51652
|
+
var navigationCommand = this.f97_1.h8t(this.c97_1.x8x_1, this.e97_1);
|
|
51566
51653
|
var tmp_4;
|
|
51567
51654
|
if (navigationCommand instanceof FinishActNext) {
|
|
51568
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
51655
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.e97_1.sceneInfo.u7t_1));
|
|
51569
51656
|
} else {
|
|
51570
51657
|
if (navigationCommand instanceof MoveActNext) {
|
|
51571
51658
|
var tmp9_actId = navigationCommand.n8t_1;
|
|
51572
|
-
var tmp0 = this.
|
|
51659
|
+
var tmp0 = this.e97_1.sceneInfo.x7t_1;
|
|
51573
51660
|
var tmp$ret$2;
|
|
51574
51661
|
l$ret$3: do {
|
|
51575
51662
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -51581,13 +51668,13 @@
|
|
|
51581
51668
|
while (false);
|
|
51582
51669
|
var tmp10_sceneData = tmp$ret$2;
|
|
51583
51670
|
var tmp11_payload = navigationCommand.o8t_1;
|
|
51584
|
-
var actData = this.
|
|
51585
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
51671
|
+
var actData = this.d97_1.v8s(tmp9_actId, tmp10_sceneData, tmp11_payload, this.e97_1);
|
|
51672
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.e97_1.sceneInfo.u7t_1, navigationCommand.n8t_1, actData));
|
|
51586
51673
|
} else {
|
|
51587
51674
|
noWhenBranchMatchedException();
|
|
51588
51675
|
}
|
|
51589
51676
|
}
|
|
51590
|
-
tmp_3.
|
|
51677
|
+
tmp_3.j97_1 = tmp_4;
|
|
51591
51678
|
this.r8_1 = 2;
|
|
51592
51679
|
continue $sm;
|
|
51593
51680
|
} else {
|
|
@@ -51601,19 +51688,19 @@
|
|
|
51601
51688
|
break;
|
|
51602
51689
|
case 1:
|
|
51603
51690
|
var sceneData = suspendResult;
|
|
51604
|
-
var navigationActCommand = this.
|
|
51691
|
+
var navigationActCommand = this.f97_1.e8t(sceneData, this.e97_1);
|
|
51605
51692
|
var tmp_6;
|
|
51606
51693
|
if (navigationActCommand == null) {
|
|
51607
51694
|
tmp_6 = null;
|
|
51608
51695
|
} else {
|
|
51609
51696
|
var tmp0_actId = navigationActCommand.n8t_1;
|
|
51610
51697
|
var tmp1_payload = navigationActCommand.o8t_1;
|
|
51611
|
-
tmp_6 = this.
|
|
51698
|
+
tmp_6 = this.d97_1.v8s(tmp0_actId, sceneData, tmp1_payload, this.e97_1);
|
|
51612
51699
|
}
|
|
51613
51700
|
|
|
51614
51701
|
var actData_0 = tmp_6;
|
|
51615
|
-
var state = this.
|
|
51616
|
-
this.
|
|
51702
|
+
var state = this.g97_1.state;
|
|
51703
|
+
this.h97_1.b8t(state.o6m_1, 'Timers are not empty before scene ' + this.c97_1.t8x_1);
|
|
51617
51704
|
var tmp_7;
|
|
51618
51705
|
if (equals(state.n6n().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
51619
51706
|
var tmp2_safe_receiver = state.n6n().sceneInfo.y7t_1;
|
|
@@ -51639,18 +51726,18 @@
|
|
|
51639
51726
|
}
|
|
51640
51727
|
|
|
51641
51728
|
var currentTurnPlayerId = tmp_7;
|
|
51642
|
-
var tmp5_sceneId = this.
|
|
51729
|
+
var tmp5_sceneId = this.c97_1.t8x_1;
|
|
51643
51730
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
51644
51731
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
51645
|
-
this.
|
|
51732
|
+
this.j97_1 = listOfNotNull_0(mechanicAction_0);
|
|
51646
51733
|
this.r8_1 = 2;
|
|
51647
51734
|
continue $sm;
|
|
51648
51735
|
case 2:
|
|
51649
|
-
var navigationActions = this.
|
|
51736
|
+
var navigationActions = this.j97_1;
|
|
51650
51737
|
var _iterator__ex2g4s = navigationActions.l();
|
|
51651
51738
|
while (_iterator__ex2g4s.m()) {
|
|
51652
51739
|
var element = _iterator__ex2g4s.n();
|
|
51653
|
-
this.
|
|
51740
|
+
this.g97_1.dispatch(element);
|
|
51654
51741
|
}
|
|
51655
51742
|
|
|
51656
51743
|
return Unit_instance;
|
|
@@ -51669,8 +51756,8 @@
|
|
|
51669
51756
|
while (true);
|
|
51670
51757
|
};
|
|
51671
51758
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).a2d = function ($this$launchDefault, completion) {
|
|
51672
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.d97_1, this.e97_1, this.f97_1, this.g97_1, this.h97_1,
|
|
51673
|
-
i.
|
|
51759
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.c97_1, this.d97_1, this.e97_1, this.f97_1, this.g97_1, this.h97_1, completion);
|
|
51760
|
+
i.i97_1 = $this$launchDefault;
|
|
51674
51761
|
return i;
|
|
51675
51762
|
};
|
|
51676
51763
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -51682,10 +51769,10 @@
|
|
|
51682
51769
|
return l;
|
|
51683
51770
|
}
|
|
51684
51771
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
51685
|
-
this.
|
|
51686
|
-
this.
|
|
51687
|
-
this.
|
|
51688
|
-
this.
|
|
51772
|
+
this.k97_1 = $asyncProvider;
|
|
51773
|
+
this.l97_1 = $sceneFactory;
|
|
51774
|
+
this.m97_1 = $router;
|
|
51775
|
+
this.n97_1 = $sceneValidationInteractor;
|
|
51689
51776
|
}
|
|
51690
51777
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51691
51778
|
return action instanceof SceneLifecycleAction;
|
|
@@ -51694,7 +51781,7 @@
|
|
|
51694
51781
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
51695
51782
|
var table = store.state.n6n();
|
|
51696
51783
|
next(action_0);
|
|
51697
|
-
this.
|
|
51784
|
+
this.k97_1.f6c(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.l97_1, table, this.m97_1, store, this.n97_1, null));
|
|
51698
51785
|
};
|
|
51699
51786
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).w6f = function (store, next, action) {
|
|
51700
51787
|
return this.m6h(store, next, action);
|
|
@@ -51740,7 +51827,7 @@
|
|
|
51740
51827
|
return new checkBotsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
51741
51828
|
}
|
|
51742
51829
|
function checkBotsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
51743
|
-
this.
|
|
51830
|
+
this.o97_1 = $logger;
|
|
51744
51831
|
}
|
|
51745
51832
|
protoOf(checkBotsMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51746
51833
|
return action instanceof SceneMechanicAction;
|
|
@@ -51788,7 +51875,7 @@
|
|
|
51788
51875
|
var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.m67_1);
|
|
51789
51876
|
destination.j(tmp$ret$2);
|
|
51790
51877
|
}
|
|
51791
|
-
this.
|
|
51878
|
+
this.o97_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
|
|
51792
51879
|
}
|
|
51793
51880
|
}
|
|
51794
51881
|
next(action_0);
|
|
@@ -51801,7 +51888,7 @@
|
|
|
51801
51888
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
51802
51889
|
}
|
|
51803
51890
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
51804
|
-
this.
|
|
51891
|
+
this.p97_1 = $logger;
|
|
51805
51892
|
}
|
|
51806
51893
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51807
51894
|
return action instanceof PutCardMechanicAction;
|
|
@@ -51834,7 +51921,7 @@
|
|
|
51834
51921
|
var bribes = destination;
|
|
51835
51922
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
51836
51923
|
if (!bribes.r()) {
|
|
51837
|
-
this.
|
|
51924
|
+
this.p97_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.w8q_1.toString() + ', bribes = ' + toString(bribes));
|
|
51838
51925
|
}
|
|
51839
51926
|
}
|
|
51840
51927
|
next(action_0);
|
|
@@ -51847,7 +51934,7 @@
|
|
|
51847
51934
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
51848
51935
|
}
|
|
51849
51936
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
51850
|
-
this.
|
|
51937
|
+
this.q97_1 = $logger;
|
|
51851
51938
|
}
|
|
51852
51939
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
51853
51940
|
return action instanceof SceneMechanicAction;
|
|
@@ -52064,7 +52151,7 @@
|
|
|
52064
52151
|
}
|
|
52065
52152
|
var notValidMessage = tmp;
|
|
52066
52153
|
if (!(notValidMessage == null)) {
|
|
52067
|
-
this.
|
|
52154
|
+
this.q97_1.w('Validation', toString_0(notValidMessage));
|
|
52068
52155
|
}
|
|
52069
52156
|
}
|
|
52070
52157
|
}
|
|
@@ -52155,7 +52242,7 @@
|
|
|
52155
52242
|
};
|
|
52156
52243
|
}
|
|
52157
52244
|
function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52158
|
-
this.
|
|
52245
|
+
this.r97_1 = $logger;
|
|
52159
52246
|
}
|
|
52160
52247
|
protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52161
52248
|
return action instanceof TimerTickAction;
|
|
@@ -52164,7 +52251,7 @@
|
|
|
52164
52251
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
52165
52252
|
var tmp = action_0.t6f_1;
|
|
52166
52253
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
52167
|
-
this.
|
|
52254
|
+
this.r97_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
|
|
52168
52255
|
store.dispatch(new FinishGameMechanicAction(store.state.p8t().s8t_1, store.state.n6n().isGameFinished));
|
|
52169
52256
|
}
|
|
52170
52257
|
next(action_0);
|
|
@@ -52230,7 +52317,7 @@
|
|
|
52230
52317
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
52231
52318
|
}
|
|
52232
52319
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52233
|
-
this.
|
|
52320
|
+
this.s97_1 = $logger;
|
|
52234
52321
|
}
|
|
52235
52322
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52236
52323
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -52238,7 +52325,7 @@
|
|
|
52238
52325
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).m6h = function (store, next, action) {
|
|
52239
52326
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
52240
52327
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
52241
|
-
this.
|
|
52328
|
+
this.s97_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
52242
52329
|
}
|
|
52243
52330
|
next(action_0);
|
|
52244
52331
|
};
|
|
@@ -52254,7 +52341,7 @@
|
|
|
52254
52341
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
52255
52342
|
}
|
|
52256
52343
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52257
|
-
this.
|
|
52344
|
+
this.t97_1 = $logger;
|
|
52258
52345
|
}
|
|
52259
52346
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52260
52347
|
return action instanceof SceneMechanicAction;
|
|
@@ -52265,7 +52352,7 @@
|
|
|
52265
52352
|
if (state.o6n()) {
|
|
52266
52353
|
var sceneInfo = state.n6n().sceneInfo;
|
|
52267
52354
|
if (!get_isWaitingScene(sceneInfo.u7t_1) && Companion_instance_5.v6n(sceneInfo.u7t_1, action_0.n8q_1) && equals(sceneInfo.x7t_1, action_0.sceneData)) {
|
|
52268
|
-
this.
|
|
52355
|
+
this.t97_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
52269
52356
|
}
|
|
52270
52357
|
}
|
|
52271
52358
|
next(action_0);
|
|
@@ -52274,7 +52361,7 @@
|
|
|
52274
52361
|
return this.m6h(store, next, action);
|
|
52275
52362
|
};
|
|
52276
52363
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52277
|
-
this.
|
|
52364
|
+
this.u97_1 = $logger;
|
|
52278
52365
|
}
|
|
52279
52366
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52280
52367
|
return action instanceof SceneActMechanicAction;
|
|
@@ -52285,7 +52372,7 @@
|
|
|
52285
52372
|
if (state.o6n()) {
|
|
52286
52373
|
var sceneInfo = state.n6n().sceneInfo;
|
|
52287
52374
|
if (Companion_instance_5.v6n(sceneInfo.u7t_1, action_0.f8q_1) && sceneInfo.w7t_1 === action_0.g8q_1 && equals(sceneInfo.y7t_1, action_0.h8q_1)) {
|
|
52288
|
-
this.
|
|
52375
|
+
this.u97_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
52289
52376
|
}
|
|
52290
52377
|
}
|
|
52291
52378
|
next(action_0);
|
|
@@ -52345,7 +52432,7 @@
|
|
|
52345
52432
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
52346
52433
|
}
|
|
52347
52434
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
52348
|
-
this.
|
|
52435
|
+
this.v97_1 = this$0;
|
|
52349
52436
|
}
|
|
52350
52437
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52351
52438
|
return action instanceof FromClientAction;
|
|
@@ -52371,18 +52458,18 @@
|
|
|
52371
52458
|
var tmp$ret$1 = item.playerId;
|
|
52372
52459
|
destination.j(tmp$ret$1);
|
|
52373
52460
|
}
|
|
52374
|
-
this.
|
|
52461
|
+
this.v97_1.j90_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
52375
52462
|
break $l$block_3;
|
|
52376
52463
|
}
|
|
52377
52464
|
if (!get_isCreated(store.state)) {
|
|
52378
52465
|
if (table.sceneInfo.h7a()) {
|
|
52379
|
-
this.
|
|
52466
|
+
this.v97_1.j90_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
52380
52467
|
} else {
|
|
52381
52468
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
52382
|
-
if (this.
|
|
52383
|
-
sendErrorToClient(this.
|
|
52469
|
+
if (this.v97_1.l90_1) {
|
|
52470
|
+
sendErrorToClient(this.v97_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
52384
52471
|
}
|
|
52385
|
-
this.
|
|
52472
|
+
this.v97_1.j90_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
52386
52473
|
}
|
|
52387
52474
|
break $l$block_3;
|
|
52388
52475
|
}
|
|
@@ -52390,18 +52477,18 @@
|
|
|
52390
52477
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m67_1;
|
|
52391
52478
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
52392
52479
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
52393
|
-
if (this.
|
|
52394
|
-
sendErrorToClient(this.
|
|
52480
|
+
if (this.v97_1.l90_1) {
|
|
52481
|
+
sendErrorToClient(this.v97_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
52395
52482
|
}
|
|
52396
|
-
this.
|
|
52483
|
+
this.v97_1.j90_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
52397
52484
|
break $l$block_3;
|
|
52398
52485
|
}
|
|
52399
|
-
if (this.
|
|
52486
|
+
if (this.v97_1.k90_1 && checkIfEventIsDuplicated(this.v97_1, table, tmp4)) {
|
|
52400
52487
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
52401
|
-
if (this.
|
|
52402
|
-
sendErrorToClient(this.
|
|
52488
|
+
if (this.v97_1.l90_1) {
|
|
52489
|
+
sendErrorToClient(this.v97_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
52403
52490
|
}
|
|
52404
|
-
this.
|
|
52491
|
+
this.v97_1.j90_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
52405
52492
|
break $l$block_3;
|
|
52406
52493
|
}
|
|
52407
52494
|
next(tmp4);
|
|
@@ -52451,8 +52538,8 @@
|
|
|
52451
52538
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
52452
52539
|
}
|
|
52453
52540
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52454
|
-
this.
|
|
52455
|
-
this.
|
|
52541
|
+
this.w97_1 = $enableCheckWhen;
|
|
52542
|
+
this.x97_1 = this$0;
|
|
52456
52543
|
}
|
|
52457
52544
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52458
52545
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -52461,7 +52548,7 @@
|
|
|
52461
52548
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
52462
52549
|
$l$block_1: {
|
|
52463
52550
|
var state = store.state;
|
|
52464
|
-
if (!isEnabledCheck(this.
|
|
52551
|
+
if (!isEnabledCheck(this.w97_1, state, tmp4)) {
|
|
52465
52552
|
next(tmp4);
|
|
52466
52553
|
break $l$block_1;
|
|
52467
52554
|
}
|
|
@@ -52477,23 +52564,23 @@
|
|
|
52477
52564
|
var tmp$ret$1 = item.playerId;
|
|
52478
52565
|
destination.j(tmp$ret$1);
|
|
52479
52566
|
}
|
|
52480
|
-
this.
|
|
52567
|
+
this.x97_1.r90_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
52481
52568
|
break $l$block_1;
|
|
52482
52569
|
}
|
|
52483
52570
|
var table = store.state.n6n();
|
|
52484
52571
|
var player = getPlayer(table.players, tmp4.z8t_1);
|
|
52485
52572
|
var tmp0_safe_receiver = player.o6q_1.g67_1;
|
|
52486
52573
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m67_1;
|
|
52487
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
52574
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.x97_1, connectionState, tmp4.y8t_1);
|
|
52488
52575
|
var duplicate = _destruct__k2r9zo.ne();
|
|
52489
52576
|
var report = _destruct__k2r9zo.oe();
|
|
52490
52577
|
if (!(connectionState == null) && duplicate) {
|
|
52491
52578
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
52492
52579
|
if (report) {
|
|
52493
|
-
if (this.
|
|
52494
|
-
sendErrorToClient_0(this.
|
|
52580
|
+
if (this.x97_1.s90_1) {
|
|
52581
|
+
sendErrorToClient_0(this.x97_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
52495
52582
|
}
|
|
52496
|
-
this.
|
|
52583
|
+
this.x97_1.r90_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
52497
52584
|
}
|
|
52498
52585
|
break $l$block_1;
|
|
52499
52586
|
} else {
|
|
@@ -52509,13 +52596,13 @@
|
|
|
52509
52596
|
this.r90_1 = logger;
|
|
52510
52597
|
this.s90_1 = sendErrorToClient;
|
|
52511
52598
|
}
|
|
52512
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
52599
|
+
protoOf(PlayerConnectionValidationMiddlewares).y97 = function (enableCheckWhen) {
|
|
52513
52600
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
52514
52601
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
52515
52602
|
};
|
|
52516
52603
|
protoOf(PlayerConnectionValidationMiddlewares).t90 = function (enableCheckWhen, $super) {
|
|
52517
52604
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
52518
|
-
return $super === VOID ? this.
|
|
52605
|
+
return $super === VOID ? this.y97(enableCheckWhen) : $super.y97.call(this, enableCheckWhen);
|
|
52519
52606
|
};
|
|
52520
52607
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
52521
52608
|
return function () {
|
|
@@ -52660,8 +52747,8 @@
|
|
|
52660
52747
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
52661
52748
|
}
|
|
52662
52749
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52663
|
-
this.
|
|
52664
|
-
this.
|
|
52750
|
+
this.z97_1 = $enableCheckWhen;
|
|
52751
|
+
this.a98_1 = this$0;
|
|
52665
52752
|
}
|
|
52666
52753
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52667
52754
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -52670,19 +52757,19 @@
|
|
|
52670
52757
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
52671
52758
|
$l$block_1: {
|
|
52672
52759
|
var state = store.state;
|
|
52673
|
-
if (!isEnabledCheck(this.
|
|
52760
|
+
if (!isEnabledCheck(this.z97_1, state, tmp4)) {
|
|
52674
52761
|
next(tmp4);
|
|
52675
52762
|
break $l$block_1;
|
|
52676
52763
|
}
|
|
52677
52764
|
var table = state.n6n();
|
|
52678
52765
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
52679
52766
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
52680
|
-
if (isWrongPlayerTurn(this.
|
|
52767
|
+
if (isWrongPlayerTurn(this.a98_1, store, playersWithTurn, player, tmp4)) {
|
|
52681
52768
|
break $l$block_1;
|
|
52682
52769
|
}
|
|
52683
52770
|
var tmp;
|
|
52684
|
-
if (this.
|
|
52685
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
52771
|
+
if (this.a98_1.c90_1.validateFromClientActionTags) {
|
|
52772
|
+
tmp = isWrongPlayerTurnTag$default(this.a98_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.a98_1, tmp4, table));
|
|
52686
52773
|
} else {
|
|
52687
52774
|
tmp = false;
|
|
52688
52775
|
}
|
|
@@ -52696,8 +52783,8 @@
|
|
|
52696
52783
|
return this.m6h(store, next, action);
|
|
52697
52784
|
};
|
|
52698
52785
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52699
|
-
this.
|
|
52700
|
-
this.
|
|
52786
|
+
this.b98_1 = $enableCheckWhen;
|
|
52787
|
+
this.c98_1 = this$0;
|
|
52701
52788
|
}
|
|
52702
52789
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52703
52790
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -52707,17 +52794,17 @@
|
|
|
52707
52794
|
$l$block_1: {
|
|
52708
52795
|
var table = store.state.n6n();
|
|
52709
52796
|
var player = getPlayerTurn(tmp4, table.players);
|
|
52710
|
-
if (player == null || !isEnabledCheck(this.
|
|
52797
|
+
if (player == null || !isEnabledCheck(this.b98_1, store.state, tmp4)) {
|
|
52711
52798
|
next(tmp4);
|
|
52712
52799
|
break $l$block_1;
|
|
52713
52800
|
}
|
|
52714
52801
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
52715
|
-
if (isWrongPlayerTurn(this.
|
|
52802
|
+
if (isWrongPlayerTurn(this.c98_1, store, playersWithTurn, player, tmp4)) {
|
|
52716
52803
|
break $l$block_1;
|
|
52717
52804
|
}
|
|
52718
52805
|
var tmp;
|
|
52719
|
-
if (this.
|
|
52720
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
52806
|
+
if (this.c98_1.c90_1.validateFromClientActionTags) {
|
|
52807
|
+
tmp = isWrongPlayerTurnTag(this.c98_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.c98_1, tmp4, table), this.c98_1.b90_1);
|
|
52721
52808
|
} else {
|
|
52722
52809
|
tmp = false;
|
|
52723
52810
|
}
|
|
@@ -52731,8 +52818,8 @@
|
|
|
52731
52818
|
return this.m6h(store, next, action);
|
|
52732
52819
|
};
|
|
52733
52820
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52734
|
-
this.
|
|
52735
|
-
this.
|
|
52821
|
+
this.d98_1 = $enableCheckWhen;
|
|
52822
|
+
this.e98_1 = this$0;
|
|
52736
52823
|
}
|
|
52737
52824
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52738
52825
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -52741,7 +52828,7 @@
|
|
|
52741
52828
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
52742
52829
|
$l$block_1: {
|
|
52743
52830
|
var state = store.state;
|
|
52744
|
-
if (!isEnabledCheck(this.
|
|
52831
|
+
if (!isEnabledCheck(this.d98_1, state, tmp4)) {
|
|
52745
52832
|
next(tmp4);
|
|
52746
52833
|
break $l$block_1;
|
|
52747
52834
|
}
|
|
@@ -52776,7 +52863,7 @@
|
|
|
52776
52863
|
destination.j(tmp$ret$3);
|
|
52777
52864
|
}
|
|
52778
52865
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.l8x()));
|
|
52779
|
-
this.
|
|
52866
|
+
this.e98_1.d90_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
52780
52867
|
} else {
|
|
52781
52868
|
next(tmp4);
|
|
52782
52869
|
}
|
|
@@ -52804,23 +52891,23 @@
|
|
|
52804
52891
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
52805
52892
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
52806
52893
|
};
|
|
52807
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
52894
|
+
protoOf(PlayerTurnValidationMiddlewares).f98 = function (enableCheckWhen) {
|
|
52808
52895
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
52809
52896
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
52810
52897
|
};
|
|
52811
52898
|
protoOf(PlayerTurnValidationMiddlewares).h90 = function (enableCheckWhen, $super) {
|
|
52812
52899
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
52813
|
-
return $super === VOID ? this.
|
|
52900
|
+
return $super === VOID ? this.f98(enableCheckWhen) : $super.f98.call(this, enableCheckWhen);
|
|
52814
52901
|
};
|
|
52815
52902
|
function Companion_163() {
|
|
52816
|
-
this.
|
|
52903
|
+
this.g98_1 = 50;
|
|
52817
52904
|
}
|
|
52818
52905
|
var Companion_instance_168;
|
|
52819
52906
|
function Companion_getInstance_170() {
|
|
52820
52907
|
return Companion_instance_168;
|
|
52821
52908
|
}
|
|
52822
52909
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
52823
|
-
this.
|
|
52910
|
+
this.h98_1 = this$0;
|
|
52824
52911
|
}
|
|
52825
52912
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).x6f = function (action) {
|
|
52826
52913
|
return action instanceof MechanicAction;
|
|
@@ -52831,19 +52918,19 @@
|
|
|
52831
52918
|
var aid = tmp4.aid;
|
|
52832
52919
|
if (!store.state.o6n()) {
|
|
52833
52920
|
if (!(aid == null)) {
|
|
52834
|
-
this.
|
|
52921
|
+
this.h98_1.o90_1.nd(aid);
|
|
52835
52922
|
}
|
|
52836
52923
|
next(tmp4);
|
|
52837
52924
|
break $l$block_0;
|
|
52838
52925
|
}
|
|
52839
|
-
if (!(aid == null) && this.
|
|
52840
|
-
this.
|
|
52926
|
+
if (!(aid == null) && this.h98_1.o90_1.t1(aid)) {
|
|
52927
|
+
this.h98_1.n90_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
52841
52928
|
break $l$block_0;
|
|
52842
52929
|
}
|
|
52843
52930
|
if (!(aid == null)) {
|
|
52844
|
-
this.
|
|
52845
|
-
if (this.
|
|
52846
|
-
this.
|
|
52931
|
+
this.h98_1.o90_1.nd(aid);
|
|
52932
|
+
if (this.h98_1.o90_1.jd_1 > 50) {
|
|
52933
|
+
this.h98_1.o90_1.od();
|
|
52847
52934
|
}
|
|
52848
52935
|
}
|
|
52849
52936
|
next(tmp4);
|
|
@@ -52869,12 +52956,12 @@
|
|
|
52869
52956
|
protoOf(clearReducer$$inlined$reducerForActionType$1).x6f = function (action) {
|
|
52870
52957
|
return action instanceof ClearAction;
|
|
52871
52958
|
};
|
|
52872
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
52959
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).i98 = function (state, action) {
|
|
52873
52960
|
action instanceof ClearAction || THROW_CCE();
|
|
52874
52961
|
return state.r8t(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
52875
52962
|
};
|
|
52876
52963
|
protoOf(clearReducer$$inlined$reducerForActionType$1).n6h = function (state, action) {
|
|
52877
|
-
return this.
|
|
52964
|
+
return this.i98((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
52878
52965
|
};
|
|
52879
52966
|
function fromClientReducer() {
|
|
52880
52967
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -52885,7 +52972,7 @@
|
|
|
52885
52972
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).x6f = function (action) {
|
|
52886
52973
|
return action instanceof FromClientAction;
|
|
52887
52974
|
};
|
|
52888
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
52975
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).i98 = function (state, action) {
|
|
52889
52976
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
52890
52977
|
var tmp;
|
|
52891
52978
|
var tmp_0;
|
|
@@ -52936,11 +53023,11 @@
|
|
|
52936
53023
|
return tmp;
|
|
52937
53024
|
};
|
|
52938
53025
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).n6h = function (state, action) {
|
|
52939
|
-
return this.
|
|
53026
|
+
return this.i98((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
52940
53027
|
};
|
|
52941
53028
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
52942
53029
|
return function (tbl) {
|
|
52943
|
-
return this$0.h8z_1.
|
|
53030
|
+
return this$0.h8z_1.p98(tbl, $action.n8q_1, $action.sceneData, $action.o8q_1, $action.p8q_1);
|
|
52944
53031
|
};
|
|
52945
53032
|
}
|
|
52946
53033
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -52949,22 +53036,22 @@
|
|
|
52949
53036
|
if ($action.o8q_1 == null) {
|
|
52950
53037
|
tmp = tbl;
|
|
52951
53038
|
} else {
|
|
52952
|
-
tmp = this$0.i8z_1.
|
|
53039
|
+
tmp = this$0.i8z_1.q98(tbl, $action);
|
|
52953
53040
|
}
|
|
52954
53041
|
return tmp;
|
|
52955
53042
|
};
|
|
52956
53043
|
}
|
|
52957
53044
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
52958
|
-
this.
|
|
53045
|
+
this.r98_1 = this$0;
|
|
52959
53046
|
}
|
|
52960
53047
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).x6f = function (action) {
|
|
52961
53048
|
return action instanceof MechanicAction;
|
|
52962
53049
|
};
|
|
52963
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
53050
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).i98 = function (state, action) {
|
|
52964
53051
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
52965
|
-
if (this.
|
|
53052
|
+
if (this.r98_1.j8z_1.validateIfMainThread) {
|
|
52966
53053
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
52967
|
-
var logger = this.
|
|
53054
|
+
var logger = this.r98_1.k8z_1;
|
|
52968
53055
|
var tmp;
|
|
52969
53056
|
try {
|
|
52970
53057
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -52985,50 +53072,50 @@
|
|
|
52985
53072
|
}
|
|
52986
53073
|
var tmp_1;
|
|
52987
53074
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
52988
|
-
tmp_1 = this.
|
|
53075
|
+
tmp_1 = this.r98_1.b8z_1.u99(state, action_0);
|
|
52989
53076
|
} else {
|
|
52990
53077
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
52991
|
-
tmp_1 = this.
|
|
53078
|
+
tmp_1 = this.r98_1.b8z_1.t99(state, action_0);
|
|
52992
53079
|
} else {
|
|
52993
53080
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
52994
|
-
tmp_1 = this.
|
|
53081
|
+
tmp_1 = this.r98_1.b8z_1.s99(state, action_0);
|
|
52995
53082
|
} else {
|
|
52996
53083
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
52997
|
-
tmp_1 = this.
|
|
53084
|
+
tmp_1 = this.r98_1.b8z_1.r99(state, action_0);
|
|
52998
53085
|
} else {
|
|
52999
53086
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
53000
|
-
tmp_1 = this.
|
|
53087
|
+
tmp_1 = this.r98_1.b8z_1.q99(state, action_0);
|
|
53001
53088
|
} else {
|
|
53002
53089
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
53003
|
-
tmp_1 = this.
|
|
53090
|
+
tmp_1 = this.r98_1.b8z_1.p99(state, action_0);
|
|
53004
53091
|
} else {
|
|
53005
53092
|
if (action_0 instanceof ErrorAction) {
|
|
53006
|
-
tmp_1 = this.
|
|
53093
|
+
tmp_1 = this.r98_1.b8z_1.o99(state, action_0);
|
|
53007
53094
|
} else {
|
|
53008
53095
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
53009
|
-
tmp_1 = state.r8t(state.n6n().copy(VOID, VOID, VOID, VOID, this.
|
|
53096
|
+
tmp_1 = state.r8t(state.n6n().copy(VOID, VOID, VOID, VOID, this.r98_1.c8z_1.n99(state.n6n().players, action_0)));
|
|
53010
53097
|
} else {
|
|
53011
53098
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
53012
|
-
tmp_1 = this.
|
|
53099
|
+
tmp_1 = this.r98_1.d8z_1.m99(state, action_0);
|
|
53013
53100
|
} else {
|
|
53014
53101
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
53015
|
-
tmp_1 = this.
|
|
53102
|
+
tmp_1 = this.r98_1.d8z_1.l99(state, action_0);
|
|
53016
53103
|
} else {
|
|
53017
53104
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
53018
|
-
tmp_1 = this.
|
|
53105
|
+
tmp_1 = this.r98_1.f8z_1.i99(state, action_0);
|
|
53019
53106
|
} else {
|
|
53020
53107
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
53021
|
-
tmp_1 = this.
|
|
53108
|
+
tmp_1 = this.r98_1.e8z_1.h99(state, action_0);
|
|
53022
53109
|
} else {
|
|
53023
53110
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
53024
|
-
tmp_1 = this.
|
|
53111
|
+
tmp_1 = this.r98_1.e8z_1.g99(state, action_0);
|
|
53025
53112
|
} else {
|
|
53026
53113
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
53027
|
-
tmp_1 = this.
|
|
53114
|
+
tmp_1 = this.r98_1.f8z_1.y98(state, action_0);
|
|
53028
53115
|
} else {
|
|
53029
53116
|
if (action_0 instanceof SceneMechanicAction) {
|
|
53030
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
53031
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
53117
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.r98_1, action_0);
|
|
53118
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.r98_1)]);
|
|
53032
53119
|
// Inline function 'kotlin.collections.fold' call
|
|
53033
53120
|
var accumulator = state.n6n();
|
|
53034
53121
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -53040,13 +53127,13 @@
|
|
|
53040
53127
|
tmp_1 = state.r8t(tmp$ret$3);
|
|
53041
53128
|
} else {
|
|
53042
53129
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
53043
|
-
tmp_1 = state.r8t(this.
|
|
53130
|
+
tmp_1 = state.r8t(this.r98_1.i8z_1.q98(state.n6n(), action_0));
|
|
53044
53131
|
} else {
|
|
53045
53132
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
53046
|
-
tmp_1 = state.r8t(this.
|
|
53133
|
+
tmp_1 = state.r8t(this.r98_1.g8z_1.s98(state.n6n(), action_0));
|
|
53047
53134
|
} else {
|
|
53048
53135
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
53049
|
-
tmp_1 = state.r8t(this.
|
|
53136
|
+
tmp_1 = state.r8t(this.r98_1.g8z_1.c8q(state.n6n(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
53050
53137
|
} else {
|
|
53051
53138
|
if (action_0 instanceof MessageMechanicAction) {
|
|
53052
53139
|
tmp_1 = state;
|
|
@@ -53074,7 +53161,7 @@
|
|
|
53074
53161
|
return tmp_1;
|
|
53075
53162
|
};
|
|
53076
53163
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).n6h = function (state, action) {
|
|
53077
|
-
return this.
|
|
53164
|
+
return this.i98((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53078
53165
|
};
|
|
53079
53166
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
53080
53167
|
this.b8z_1 = gameLifecycleReducer;
|
|
@@ -53101,7 +53188,7 @@
|
|
|
53101
53188
|
protoOf(timerReducer$$inlined$reducerForActionType$1).x6f = function (action) {
|
|
53102
53189
|
return action instanceof TimerAction;
|
|
53103
53190
|
};
|
|
53104
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
53191
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).i98 = function (state, action) {
|
|
53105
53192
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
53106
53193
|
var tmp;
|
|
53107
53194
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -53129,7 +53216,7 @@
|
|
|
53129
53216
|
return tmp;
|
|
53130
53217
|
};
|
|
53131
53218
|
protoOf(timerReducer$$inlined$reducerForActionType$1).n6h = function (state, action) {
|
|
53132
|
-
return this.
|
|
53219
|
+
return this.i98((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53133
53220
|
};
|
|
53134
53221
|
function playerTurnReducer($this, action, table) {
|
|
53135
53222
|
var tmp0 = action.actData;
|
|
@@ -53234,7 +53321,7 @@
|
|
|
53234
53321
|
}
|
|
53235
53322
|
function SceneActReducer() {
|
|
53236
53323
|
}
|
|
53237
|
-
protoOf(SceneActReducer).
|
|
53324
|
+
protoOf(SceneActReducer).q98 = function (table, action) {
|
|
53238
53325
|
var tmp;
|
|
53239
53326
|
if (action.actId === 'WAITING_ACT') {
|
|
53240
53327
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.l8f(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -53271,47 +53358,47 @@
|
|
|
53271
53358
|
function MechanicLifecycleReducer() {
|
|
53272
53359
|
}
|
|
53273
53360
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
53274
|
-
this.
|
|
53275
|
-
this.
|
|
53361
|
+
this.v99_1 = tableLifecycleReducer;
|
|
53362
|
+
this.w99_1 = randomPoolProvider;
|
|
53276
53363
|
}
|
|
53277
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53364
|
+
protoOf(BaseMechanicLifecycleReducer).s99 = function (state, action) {
|
|
53278
53365
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
53279
53366
|
var tmp1_tableOrNull = action.w8u_1;
|
|
53280
53367
|
var tmp2_payload = action.y8u_1;
|
|
53281
53368
|
return state.r8t(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
53282
53369
|
};
|
|
53283
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53284
|
-
this.
|
|
53370
|
+
protoOf(BaseMechanicLifecycleReducer).t99 = function (state, action) {
|
|
53371
|
+
this.w99_1.l58(action.previousGameId);
|
|
53285
53372
|
return state;
|
|
53286
53373
|
};
|
|
53287
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53374
|
+
protoOf(BaseMechanicLifecycleReducer).r99 = function (state, action) {
|
|
53288
53375
|
var tmp0_safe_receiver = state.l6m_1;
|
|
53289
53376
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
53290
53377
|
if (tmp1_safe_receiver == null)
|
|
53291
53378
|
null;
|
|
53292
53379
|
else {
|
|
53293
53380
|
// Inline function 'kotlin.apply' call
|
|
53294
|
-
this.
|
|
53381
|
+
this.w99_1.l58(tmp1_safe_receiver);
|
|
53295
53382
|
}
|
|
53296
53383
|
return state.r8t(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.a8v_1, action.c8v_1));
|
|
53297
53384
|
};
|
|
53298
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53385
|
+
protoOf(BaseMechanicLifecycleReducer).q99 = function (state, action) {
|
|
53299
53386
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
53300
53387
|
var tmp0_safe_receiver = state.n6m_1;
|
|
53301
53388
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v8t(action.e8v_1);
|
|
53302
53389
|
return state.r8t(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.e8v_1) : tmp1_elvis_lhs);
|
|
53303
53390
|
};
|
|
53304
|
-
protoOf(BaseMechanicLifecycleReducer).q99 = function (state, action) {
|
|
53305
|
-
return state.r8t(this.w99_1.y99(state.n6n()));
|
|
53306
|
-
};
|
|
53307
53391
|
protoOf(BaseMechanicLifecycleReducer).p99 = function (state, action) {
|
|
53392
|
+
return state.r8t(this.v99_1.x99(state.n6n()));
|
|
53393
|
+
};
|
|
53394
|
+
protoOf(BaseMechanicLifecycleReducer).o99 = function (state, action) {
|
|
53308
53395
|
var tmp0_safe_receiver = state.l6m_1;
|
|
53309
53396
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
53310
53397
|
if (tmp1_safe_receiver == null)
|
|
53311
53398
|
null;
|
|
53312
53399
|
else {
|
|
53313
53400
|
// Inline function 'kotlin.apply' call
|
|
53314
|
-
this.
|
|
53401
|
+
this.w99_1.l58(tmp1_safe_receiver);
|
|
53315
53402
|
}
|
|
53316
53403
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
53317
53404
|
var tmp2_safe_receiver = state.n6m_1;
|
|
@@ -53331,19 +53418,19 @@
|
|
|
53331
53418
|
return value1.id === value2.id;
|
|
53332
53419
|
}
|
|
53333
53420
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
53334
|
-
this.
|
|
53335
|
-
this.
|
|
53336
|
-
this.
|
|
53337
|
-
this.
|
|
53421
|
+
this.y99_1 = pointsInteractor;
|
|
53422
|
+
this.z99_1 = playerHappinessProvider;
|
|
53423
|
+
this.a9a_1 = logger;
|
|
53424
|
+
this.b9a_1 = dealerConfig;
|
|
53338
53425
|
}
|
|
53339
|
-
protoOf(PlayerHandReducer).
|
|
53426
|
+
protoOf(PlayerHandReducer).c9a = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
53340
53427
|
// Inline function 'kotlin.collections.map' call
|
|
53341
53428
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53342
53429
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
53343
53430
|
var _iterator__ex2g4s = combinations.l();
|
|
53344
53431
|
while (_iterator__ex2g4s.m()) {
|
|
53345
53432
|
var item = _iterator__ex2g4s.n();
|
|
53346
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
53433
|
+
var tmp$ret$0 = mapToRecord(item, this.y99_1.u8n(item));
|
|
53347
53434
|
destination.j(tmp$ret$0);
|
|
53348
53435
|
}
|
|
53349
53436
|
var combinationRecords = destination;
|
|
@@ -53378,8 +53465,8 @@
|
|
|
53378
53465
|
return hand.b6y(VOID, VOID, plus(hand.a6v_1, combinationRecords), plus(hand.b6v_1, combinationRecords));
|
|
53379
53466
|
}
|
|
53380
53467
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
53381
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
53382
|
-
var tmp_0 = this.
|
|
53468
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.b9a_1.dealerStrategy : tmp0_elvis_lhs;
|
|
53469
|
+
var tmp_0 = this.y99_1.t8n(cards, selectedTrump, dealerStrategy);
|
|
53383
53470
|
// Inline function 'kotlin.collections.map' call
|
|
53384
53471
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53385
53472
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -53390,11 +53477,11 @@
|
|
|
53390
53477
|
destination_0.j(tmp$ret$5);
|
|
53391
53478
|
}
|
|
53392
53479
|
var value = tmp_0 + sum(destination_0);
|
|
53393
|
-
var luckyFactor = this.
|
|
53394
|
-
Companion_instance_164.s8n(this.
|
|
53480
|
+
var luckyFactor = this.z99_1.x8h(value, config.playersMode, dealerStrategy);
|
|
53481
|
+
Companion_instance_164.s8n(this.a9a_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.i6v() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
|
|
53395
53482
|
return hand.b6y(VOID, plus(hand.z6u_1, listOf(Companion_instance_17.v6x(luckyFactor, value))), plus(hand.a6v_1, combinationRecords), plus(hand.b6v_1, combinationRecords));
|
|
53396
53483
|
};
|
|
53397
|
-
protoOf(PlayerHandReducer).
|
|
53484
|
+
protoOf(PlayerHandReducer).d9a = function (hand, combinations) {
|
|
53398
53485
|
// Inline function 'kotlin.collections.map' call
|
|
53399
53486
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
53400
53487
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53402,20 +53489,20 @@
|
|
|
53402
53489
|
var _iterator__ex2g4s = this_0.l();
|
|
53403
53490
|
while (_iterator__ex2g4s.m()) {
|
|
53404
53491
|
var item = _iterator__ex2g4s.n();
|
|
53405
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
53492
|
+
var tmp$ret$0 = mapToRecord(item, this.y99_1.u8n(item));
|
|
53406
53493
|
destination.j(tmp$ret$0);
|
|
53407
53494
|
}
|
|
53408
53495
|
var combinationRecords = destination;
|
|
53409
53496
|
var tmp = updateOrAddItems(hand.a6v_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
53410
53497
|
return hand.b6y(VOID, VOID, tmp, updateOrAddItems(hand.b6v_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
53411
53498
|
};
|
|
53412
|
-
protoOf(PlayerHandReducer).
|
|
53499
|
+
protoOf(PlayerHandReducer).e9a = function (playerId, hand, updatedCombinations, config) {
|
|
53413
53500
|
if (updatedCombinations.r()) {
|
|
53414
53501
|
return hand;
|
|
53415
53502
|
}
|
|
53416
53503
|
var previousFactor = hand.l6v();
|
|
53417
53504
|
if (previousFactor.k6v_1 === 0.0) {
|
|
53418
|
-
return this.
|
|
53505
|
+
return this.d9a(hand, updatedCombinations);
|
|
53419
53506
|
}
|
|
53420
53507
|
// Inline function 'kotlin.collections.map' call
|
|
53421
53508
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53423,7 +53510,7 @@
|
|
|
53423
53510
|
var _iterator__ex2g4s = updatedCombinations.l();
|
|
53424
53511
|
while (_iterator__ex2g4s.m()) {
|
|
53425
53512
|
var item = _iterator__ex2g4s.n();
|
|
53426
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
53513
|
+
var tmp$ret$0 = mapToRecord(item, this.y99_1.u8n(item));
|
|
53427
53514
|
destination.j(tmp$ret$0);
|
|
53428
53515
|
}
|
|
53429
53516
|
var updatedCombinationRecords = destination;
|
|
@@ -53483,9 +53570,9 @@
|
|
|
53483
53570
|
}
|
|
53484
53571
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
53485
53572
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
53486
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
53487
|
-
var updatedLuckyFactor = this.
|
|
53488
|
-
Companion_instance_164.s8n(this.
|
|
53573
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.b9a_1.dealerStrategy : tmp0_elvis_lhs;
|
|
53574
|
+
var updatedLuckyFactor = this.z99_1.x8h(updatedValue, config.playersMode, dealerStrategy);
|
|
53575
|
+
Companion_instance_164.s8n(this.a9a_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.i6v() + ', ') + ('value: ' + updatedValue + ', '));
|
|
53489
53576
|
// Inline function 'kotlin.collections.map' call
|
|
53490
53577
|
var this_0 = hand.z6u_1;
|
|
53491
53578
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53515,7 +53602,7 @@
|
|
|
53515
53602
|
protoOf(PlayerSceneReducer).t8s = function (player, cards, whoShuffleCardsPlayerId) {
|
|
53516
53603
|
return player.t6u(VOID, VOID, cards, player.q6q_1.v6y(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
53517
53604
|
};
|
|
53518
|
-
protoOf(PlayerSceneReducer).
|
|
53605
|
+
protoOf(PlayerSceneReducer).f9a = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
53519
53606
|
// Inline function 'kotlin.collections.map' call
|
|
53520
53607
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53521
53608
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -53528,7 +53615,7 @@
|
|
|
53528
53615
|
}
|
|
53529
53616
|
var detailedCombinations = destination;
|
|
53530
53617
|
var cards = plus(player.p6q_1, distributedCards);
|
|
53531
|
-
var hand = this.s8s_1.
|
|
53618
|
+
var hand = this.s8s_1.c9a(player.playerId, player.r6q_1, cards, detailedCombinations, selectedTrump, config);
|
|
53532
53619
|
var tmp;
|
|
53533
53620
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
53534
53621
|
if (!combinations.r()) {
|
|
@@ -53539,7 +53626,7 @@
|
|
|
53539
53626
|
var tmp0_points = tmp;
|
|
53540
53627
|
return player.t6u(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
53541
53628
|
};
|
|
53542
|
-
protoOf(PlayerSceneReducer).
|
|
53629
|
+
protoOf(PlayerSceneReducer).g9a = function (player, sceneData) {
|
|
53543
53630
|
// Inline function 'kotlin.collections.single' call
|
|
53544
53631
|
var single = null;
|
|
53545
53632
|
var found = false;
|
|
@@ -53581,7 +53668,7 @@
|
|
|
53581
53668
|
var tmp10_earnedPoints = playerPointsCell.s70_1;
|
|
53582
53669
|
var tmp11_earnedCards = emptyList();
|
|
53583
53670
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
53584
|
-
var tmp15_hand = this.s8s_1.
|
|
53671
|
+
var tmp15_hand = this.s8s_1.d9a(player.r6q_1, updatedCombinations);
|
|
53585
53672
|
return player.t6u(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
53586
53673
|
};
|
|
53587
53674
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -53626,7 +53713,7 @@
|
|
|
53626
53713
|
this.y8p_1 = gameHistoryReducer;
|
|
53627
53714
|
this.z8p_1 = engineLogicConfig;
|
|
53628
53715
|
}
|
|
53629
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53716
|
+
protoOf(PlayerTurnMechanicReducer).h9a = function (table, model) {
|
|
53630
53717
|
// Inline function 'com.logic.utils.copy' call
|
|
53631
53718
|
var this_0 = table.players;
|
|
53632
53719
|
// Inline function 'kotlin.apply' call
|
|
@@ -53654,7 +53741,7 @@
|
|
|
53654
53741
|
this.x8p_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
53655
53742
|
return newTable;
|
|
53656
53743
|
};
|
|
53657
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53744
|
+
protoOf(PlayerTurnMechanicReducer).i9a = function (table, model) {
|
|
53658
53745
|
var player = getPlayer(table.players, model.t65());
|
|
53659
53746
|
if (player.o6q_1.f67_1 == null) {
|
|
53660
53747
|
this.x8p_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.i6w_1));
|
|
@@ -53665,11 +53752,11 @@
|
|
|
53665
53752
|
this.x8p_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
53666
53753
|
return newTable;
|
|
53667
53754
|
};
|
|
53668
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53755
|
+
protoOf(PlayerTurnMechanicReducer).s98 = function (table, action) {
|
|
53669
53756
|
var player = getPlayer(table.players, action.r8v_1);
|
|
53670
53757
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.t6u(VOID, player.o6q_1.t68(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
53671
53758
|
};
|
|
53672
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53759
|
+
protoOf(PlayerTurnMechanicReducer).j9a = function (table) {
|
|
53673
53760
|
// Inline function 'kotlin.collections.map' call
|
|
53674
53761
|
var this_0 = table.players;
|
|
53675
53762
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53705,7 +53792,7 @@
|
|
|
53705
53792
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
53706
53793
|
tmp = tmp6_$this.t68(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
53707
53794
|
}
|
|
53708
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.t6u(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.y8p_1.
|
|
53795
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.t6u(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.y8p_1.o9a(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
53709
53796
|
};
|
|
53710
53797
|
protoOf(PlayerTurnMechanicReducer).a8q = function (config) {
|
|
53711
53798
|
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.x8p_1);
|
|
@@ -53740,7 +53827,7 @@
|
|
|
53740
53827
|
var _iterator__ex2g4s = players.l();
|
|
53741
53828
|
while (_iterator__ex2g4s.m()) {
|
|
53742
53829
|
var item = _iterator__ex2g4s.n();
|
|
53743
|
-
var tmp$ret$1 = $this.
|
|
53830
|
+
var tmp$ret$1 = $this.j98_1.t8s(item, getValue(scene.m7a_1, item.playerId), scene.q7a_1);
|
|
53744
53831
|
destination.j(tmp$ret$1);
|
|
53745
53832
|
}
|
|
53746
53833
|
|
|
@@ -53761,12 +53848,12 @@
|
|
|
53761
53848
|
}
|
|
53762
53849
|
|
|
53763
53850
|
var tmp7_requestedCardDecks = tmp_0;
|
|
53764
|
-
var tmp1_$this = $this.
|
|
53851
|
+
var tmp1_$this = $this.m98_1;
|
|
53765
53852
|
var tmp2_gameHistory = table.gameHistory;
|
|
53766
53853
|
var tmp3_playersCards = scene.m7a_1;
|
|
53767
53854
|
var tmp4_whoShuffleCardsPlayerId = scene.q7a_1;
|
|
53768
53855
|
var tmp5_randomData = scene.n7a_1;
|
|
53769
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
53856
|
+
var tmp8_gameHistory = tmp1_$this.p9a(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
53770
53857
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
53771
53858
|
case 'EARN_POINTS':
|
|
53772
53859
|
var tmp$ret$5;
|
|
@@ -53784,7 +53871,7 @@
|
|
|
53784
53871
|
var tmp10_newPlayersCards = scene_0.s7a_1;
|
|
53785
53872
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
53786
53873
|
var tmp12_config = table.config;
|
|
53787
|
-
var updatedCardDeck = $this.
|
|
53874
|
+
var updatedCardDeck = $this.q9a(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
53788
53875
|
// Inline function 'kotlin.collections.map' call
|
|
53789
53876
|
|
|
53790
53877
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53793,21 +53880,21 @@
|
|
|
53793
53880
|
var _iterator__ex2g4s_0 = players.l();
|
|
53794
53881
|
while (_iterator__ex2g4s_0.m()) {
|
|
53795
53882
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
53796
|
-
var tmp2_$this = $this.
|
|
53883
|
+
var tmp2_$this = $this.j98_1;
|
|
53797
53884
|
var tmp3_config = table.config;
|
|
53798
53885
|
var tmp4_distributedCards = getValue(scene_0.s7a_1, item_0.playerId);
|
|
53799
53886
|
var tmp0_safe_receiver = scene_0.t7a_1;
|
|
53800
53887
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
|
|
53801
53888
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
53802
53889
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
53803
|
-
var tmp$ret$6 = tmp2_$this.
|
|
53890
|
+
var tmp$ret$6 = tmp2_$this.f9a(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
53804
53891
|
destination_0.j(tmp$ret$6);
|
|
53805
53892
|
}
|
|
53806
53893
|
|
|
53807
|
-
var tmp13_$this = $this.
|
|
53894
|
+
var tmp13_$this = $this.m98_1;
|
|
53808
53895
|
var tmp14_gameHistory = table.gameHistory;
|
|
53809
53896
|
var tmp15_playersCards = scene_0.s7a_1;
|
|
53810
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
53897
|
+
var tmp17_gameHistory = tmp13_$this.r9a(tmp15_playersCards, tmp14_gameHistory);
|
|
53811
53898
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
53812
53899
|
case 'CALC_POINTS':
|
|
53813
53900
|
var tmp$ret$9;
|
|
@@ -53830,12 +53917,12 @@
|
|
|
53830
53917
|
var _iterator__ex2g4s_1 = players.l();
|
|
53831
53918
|
while (_iterator__ex2g4s_1.m()) {
|
|
53832
53919
|
var item_1 = _iterator__ex2g4s_1.n();
|
|
53833
|
-
var tmp$ret$10 = $this.
|
|
53920
|
+
var tmp$ret$10 = $this.j98_1.g9a(item_1, calcPointsSceneData);
|
|
53834
53921
|
destination_1.j(tmp$ret$10);
|
|
53835
53922
|
}
|
|
53836
53923
|
|
|
53837
53924
|
var updatedPlayers = destination_1;
|
|
53838
|
-
var tmp19_$this = $this.
|
|
53925
|
+
var tmp19_$this = $this.m98_1;
|
|
53839
53926
|
var tmp20_gameHistory = table.gameHistory;
|
|
53840
53927
|
var tmp21_points = calcPointsSceneData.f7a_1;
|
|
53841
53928
|
var tmp22_roundContractState = calcPointsSceneData.j7a(whoChoseSuitPlayerId);
|
|
@@ -53875,7 +53962,7 @@
|
|
|
53875
53962
|
|
|
53876
53963
|
var tmp26_playersGameAnalytics = tmp_3;
|
|
53877
53964
|
var tmp27_playersAchievements = calcPointsSceneData.g7a_1;
|
|
53878
|
-
var tmp28_gameHistory = tmp19_$this.
|
|
53965
|
+
var tmp28_gameHistory = tmp19_$this.s9a(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
|
|
53879
53966
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
|
|
53880
53967
|
default:
|
|
53881
53968
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -53907,30 +53994,30 @@
|
|
|
53907
53994
|
}
|
|
53908
53995
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
53909
53996
|
return function (tbl) {
|
|
53910
|
-
return this$0.
|
|
53997
|
+
return this$0.k98_1.j9a(tbl);
|
|
53911
53998
|
};
|
|
53912
53999
|
}
|
|
53913
54000
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
53914
54001
|
return function (tbl) {
|
|
53915
|
-
return this$0.
|
|
54002
|
+
return this$0.l98_1.t9a(tbl);
|
|
53916
54003
|
};
|
|
53917
54004
|
}
|
|
53918
54005
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
53919
|
-
this.
|
|
53920
|
-
this.
|
|
53921
|
-
this.
|
|
53922
|
-
this.
|
|
53923
|
-
this.
|
|
53924
|
-
this.
|
|
53925
|
-
}
|
|
53926
|
-
protoOf(SceneReducer).
|
|
54006
|
+
this.j98_1 = playerSceneReducer;
|
|
54007
|
+
this.k98_1 = playerTurnMechanicReducer;
|
|
54008
|
+
this.l98_1 = tableLifecycleReducer;
|
|
54009
|
+
this.m98_1 = gameHistoryReducer;
|
|
54010
|
+
this.n98_1 = dealerReducer;
|
|
54011
|
+
this.o98_1 = gameParamsProvider;
|
|
54012
|
+
}
|
|
54013
|
+
protoOf(SceneReducer).p98 = function (table, sceneId, sceneData, actId, actData) {
|
|
53927
54014
|
var previousSceneId = table.sceneInfo.u7t_1;
|
|
53928
54015
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.x7t_1, sceneData)) {
|
|
53929
54016
|
throw new MechanicException('Payload was set twice');
|
|
53930
54017
|
}
|
|
53931
54018
|
return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
53932
54019
|
};
|
|
53933
|
-
protoOf(SceneReducer).
|
|
54020
|
+
protoOf(SceneReducer).q9a = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
53934
54021
|
// Inline function 'kotlin.collections.map' call
|
|
53935
54022
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53936
54023
|
var destination = ArrayList_init_$Create$(newPlayersCards.o());
|
|
@@ -53944,19 +54031,19 @@
|
|
|
53944
54031
|
// Inline function 'kotlin.let' call
|
|
53945
54032
|
var it = flatten(destination);
|
|
53946
54033
|
var tmp;
|
|
53947
|
-
if (this.
|
|
53948
|
-
tmp = this.
|
|
54034
|
+
if (this.o98_1.y8i(config)) {
|
|
54035
|
+
tmp = this.n98_1.k5g(it, cardDeck.g7j_1);
|
|
53949
54036
|
} else {
|
|
53950
54037
|
tmp = it;
|
|
53951
54038
|
}
|
|
53952
54039
|
var playersCardsToRemove = tmp;
|
|
53953
54040
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
53954
|
-
var cards = this.
|
|
54041
|
+
var cards = this.n98_1.j5g(cardDeck.f7j_1, cardsToRemove);
|
|
53955
54042
|
return cardDeck.y8b(cards, VOID, newTopOpenedCard);
|
|
53956
54043
|
};
|
|
53957
54044
|
function TeamsMechanicReducer() {
|
|
53958
54045
|
}
|
|
53959
|
-
protoOf(TeamsMechanicReducer).
|
|
54046
|
+
protoOf(TeamsMechanicReducer).n99 = function (players, action) {
|
|
53960
54047
|
// Inline function 'kotlin.collections.map' call
|
|
53961
54048
|
var this_0 = action.m8v_1.y68_1;
|
|
53962
54049
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53996,10 +54083,10 @@
|
|
|
53996
54083
|
return destination_1;
|
|
53997
54084
|
};
|
|
53998
54085
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
53999
|
-
this.
|
|
54000
|
-
this.
|
|
54086
|
+
this.j99_1 = logger;
|
|
54087
|
+
this.k99_1 = gameHistoryReducer;
|
|
54001
54088
|
}
|
|
54002
|
-
protoOf(TradeMechanicReducer).
|
|
54089
|
+
protoOf(TradeMechanicReducer).m99 = function (state, action) {
|
|
54003
54090
|
var table = state.n6n();
|
|
54004
54091
|
// Inline function 'kotlin.with' call
|
|
54005
54092
|
var player = getPlayer(table.players, action.t8q_1);
|
|
@@ -54007,7 +54094,7 @@
|
|
|
54007
54094
|
var it = player.q6q_1.t6y();
|
|
54008
54095
|
var tmp;
|
|
54009
54096
|
if (it == null) {
|
|
54010
|
-
this.
|
|
54097
|
+
this.j99_1.w(VOID, "Can't support this circle increment");
|
|
54011
54098
|
tmp = player.q6q_1.p6u_1;
|
|
54012
54099
|
} else {
|
|
54013
54100
|
tmp = it;
|
|
@@ -54035,17 +54122,17 @@
|
|
|
54035
54122
|
destination.j(tmp$ret$2);
|
|
54036
54123
|
}
|
|
54037
54124
|
var tmp_2 = destination;
|
|
54038
|
-
var tmp0_$this = this.
|
|
54125
|
+
var tmp0_$this = this.k99_1;
|
|
54039
54126
|
var tmp1_playerId = player.playerId;
|
|
54040
54127
|
var tmp2_suit = action.r8q_1;
|
|
54041
54128
|
var tmp3_gameHistory = table.gameHistory;
|
|
54042
54129
|
var tmp4_players = table.players;
|
|
54043
54130
|
var tmp5_playersMode = table.config.playersMode;
|
|
54044
|
-
tmp_0 = state.r8t(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
54131
|
+
tmp_0 = state.r8t(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.u9a(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
54045
54132
|
}
|
|
54046
54133
|
return tmp_0;
|
|
54047
54134
|
};
|
|
54048
|
-
protoOf(TradeMechanicReducer).
|
|
54135
|
+
protoOf(TradeMechanicReducer).l99 = function (state, action) {
|
|
54049
54136
|
var table = state.n6n();
|
|
54050
54137
|
// Inline function 'kotlin.collections.map' call
|
|
54051
54138
|
var this_0 = table.players;
|
|
@@ -54063,13 +54150,13 @@
|
|
|
54063
54150
|
return valueToFind.q6z_1 === value.q6z_1;
|
|
54064
54151
|
}
|
|
54065
54152
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
54066
|
-
this.
|
|
54067
|
-
this.
|
|
54068
|
-
this.
|
|
54069
|
-
this.
|
|
54070
|
-
this.
|
|
54153
|
+
this.t98_1 = teamsLogicProvider;
|
|
54154
|
+
this.u98_1 = combinationsInteractor;
|
|
54155
|
+
this.v98_1 = dealerReducer;
|
|
54156
|
+
this.w98_1 = playerHandReducer;
|
|
54157
|
+
this.x98_1 = gameHistoryReducer;
|
|
54071
54158
|
}
|
|
54072
|
-
protoOf(CombinationsMechanicReducer).
|
|
54159
|
+
protoOf(CombinationsMechanicReducer).v9a = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
54073
54160
|
var bellaCombination = first(playerCombinations.g8d_1);
|
|
54074
54161
|
var player = getPlayer(players, playerCombinations.f8d_1);
|
|
54075
54162
|
if (bellaCombination.s6z_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -54078,7 +54165,7 @@
|
|
|
54078
54165
|
var tmp;
|
|
54079
54166
|
if (config.rules.protectBella) {
|
|
54080
54167
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
54081
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
54168
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.t98_1.m8h(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
54082
54169
|
var tmp_0;
|
|
54083
54170
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
54084
54171
|
tmp_0 = bellaCombination.c70(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -54092,7 +54179,7 @@
|
|
|
54092
54179
|
return tmp;
|
|
54093
54180
|
}
|
|
54094
54181
|
};
|
|
54095
|
-
protoOf(CombinationsMechanicReducer).
|
|
54182
|
+
protoOf(CombinationsMechanicReducer).y98 = function (state, action) {
|
|
54096
54183
|
var table = state.n6n();
|
|
54097
54184
|
var players = table.players;
|
|
54098
54185
|
var config = table.config;
|
|
@@ -54123,7 +54210,7 @@
|
|
|
54123
54210
|
}
|
|
54124
54211
|
var passedPlayersCombinations = destination;
|
|
54125
54212
|
// Inline function 'kotlin.collections.filterNot' call
|
|
54126
|
-
var tmp0 = this.
|
|
54213
|
+
var tmp0 = this.u98_1.e8l(players);
|
|
54127
54214
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
54128
54215
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
54129
54216
|
var _iterator__ex2g4s_1 = tmp0.l();
|
|
@@ -54170,10 +54257,10 @@
|
|
|
54170
54257
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
|
|
54171
54258
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
54172
54259
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
54173
|
-
var tmp0_$this = this.
|
|
54260
|
+
var tmp0_$this = this.w98_1;
|
|
54174
54261
|
var tmp1_playerId = item_1.playerId;
|
|
54175
54262
|
var tmp2_hand = item_1.r6q_1;
|
|
54176
|
-
var tmp_1 = tmp0_$this.
|
|
54263
|
+
var tmp_1 = tmp0_$this.e9a(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
54177
54264
|
tmp = item_1.t6u(VOID, VOID, VOID, VOID, tmp_1, item_1.s6q_1.x6y(VOID, updateOrAddItems(item_1.s6q_1.n6v_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
54178
54265
|
} else {
|
|
54179
54266
|
tmp = item_1;
|
|
@@ -54181,9 +54268,9 @@
|
|
|
54181
54268
|
var tmp$ret$19 = tmp;
|
|
54182
54269
|
destination_4.j(tmp$ret$19);
|
|
54183
54270
|
}
|
|
54184
|
-
return state.r8t(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
54271
|
+
return state.r8t(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x98_1.w9a(action.z8v_1, table.gameHistory)));
|
|
54185
54272
|
};
|
|
54186
|
-
protoOf(CombinationsMechanicReducer).
|
|
54273
|
+
protoOf(CombinationsMechanicReducer).i99 = function (state, action) {
|
|
54187
54274
|
var table = state.n6n();
|
|
54188
54275
|
var player = getPlayer(table.players, action.x8v_1);
|
|
54189
54276
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -54238,13 +54325,13 @@
|
|
|
54238
54325
|
// Inline function 'kotlin.let' call
|
|
54239
54326
|
|
|
54240
54327
|
var cards = player.p6q_1;
|
|
54241
|
-
var newCards = this.
|
|
54242
|
-
var tmp1_cards = this.
|
|
54328
|
+
var newCards = this.v98_1.k5g(cards, trumpSevenCard);
|
|
54329
|
+
var tmp1_cards = this.v98_1.l5g(newCards, trumpCard);
|
|
54243
54330
|
var tmp3_players = updateItem(table.players, player.t6u(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
54244
|
-
var tmp4_gameHistory = this.
|
|
54331
|
+
var tmp4_gameHistory = this.x98_1.x9a(player.playerId, listOf(announcedCombination.r6z_1), VOID, table.gameHistory);
|
|
54245
54332
|
return state.r8t(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
54246
54333
|
case 6:
|
|
54247
|
-
return state.r8t(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.t6u(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
54334
|
+
return state.r8t(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.t6u(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x98_1.x9a(player.playerId, listOf(announcedCombination.r6z_1), VOID, table.gameHistory)));
|
|
54248
54335
|
default:
|
|
54249
54336
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
54250
54337
|
}
|
|
@@ -54325,7 +54412,7 @@
|
|
|
54325
54412
|
destination.j(tmp$ret$1);
|
|
54326
54413
|
}
|
|
54327
54414
|
var updatedCombinations = destination;
|
|
54328
|
-
var tmp1_cards = $this.
|
|
54415
|
+
var tmp1_cards = $this.c99_1.k5g(player.p6q_1, card);
|
|
54329
54416
|
var tmp2_points = player.s6q_1.x6y(VOID, updatedCombinations);
|
|
54330
54417
|
var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
54331
54418
|
return player.t6u(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
|
|
@@ -54344,11 +54431,11 @@
|
|
|
54344
54431
|
}
|
|
54345
54432
|
var tmp2_combinations = tmp;
|
|
54346
54433
|
var tmp4_points = tmp0_$this.x6y(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
54347
|
-
var tmp5_hand = $this.
|
|
54434
|
+
var tmp5_hand = $this.e99_1.d9a(player.r6q_1, combinations);
|
|
54348
54435
|
return player.t6u(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
54349
54436
|
}
|
|
54350
54437
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
54351
|
-
var bellaCombination = $this.
|
|
54438
|
+
var bellaCombination = $this.b99_1.d8l(players);
|
|
54352
54439
|
// Inline function 'kotlin.collections.associate' call
|
|
54353
54440
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
54354
54441
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -54369,7 +54456,7 @@
|
|
|
54369
54456
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.f8d_1 === player.playerId;
|
|
54370
54457
|
var tmp;
|
|
54371
54458
|
if (isGotLastBribe) {
|
|
54372
|
-
tmp = $this.
|
|
54459
|
+
tmp = $this.a99_1.f6z(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_149.c8c(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
|
|
54373
54460
|
} else {
|
|
54374
54461
|
tmp = null;
|
|
54375
54462
|
}
|
|
@@ -54389,7 +54476,7 @@
|
|
|
54389
54476
|
}
|
|
54390
54477
|
}
|
|
54391
54478
|
var tmp$ret$2 = tmp$ret$1;
|
|
54392
|
-
tmp_1 = $this.
|
|
54479
|
+
tmp_1 = $this.z98_1.v9a(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
54393
54480
|
} else {
|
|
54394
54481
|
tmp_1 = null;
|
|
54395
54482
|
}
|
|
@@ -54454,15 +54541,15 @@
|
|
|
54454
54541
|
return value1.q6z_1 === value2.q6z_1;
|
|
54455
54542
|
}
|
|
54456
54543
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
54457
|
-
this.
|
|
54458
|
-
this.
|
|
54459
|
-
this.
|
|
54460
|
-
this.
|
|
54461
|
-
this.
|
|
54462
|
-
this.
|
|
54463
|
-
this.
|
|
54464
|
-
}
|
|
54465
|
-
protoOf(EarnPointsMechanicReducer).
|
|
54544
|
+
this.z98_1 = combinationsMechanicReducer;
|
|
54545
|
+
this.a99_1 = combinationsFactory;
|
|
54546
|
+
this.b99_1 = combinationsInteractor;
|
|
54547
|
+
this.c99_1 = dealerReducer;
|
|
54548
|
+
this.d99_1 = gameHistoryReducer;
|
|
54549
|
+
this.e99_1 = playerHandReducer;
|
|
54550
|
+
this.f99_1 = logger;
|
|
54551
|
+
}
|
|
54552
|
+
protoOf(EarnPointsMechanicReducer).h99 = function (state, action) {
|
|
54466
54553
|
var table = state.n6n();
|
|
54467
54554
|
var player = getPlayer(table.players, action.y8q_1);
|
|
54468
54555
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.y8q_1, table.cardsOnTable.o(), action.w8q_1));
|
|
@@ -54484,13 +54571,13 @@
|
|
|
54484
54571
|
var tmp$ret$0 = item.g79_1;
|
|
54485
54572
|
destination.j(tmp$ret$0);
|
|
54486
54573
|
}
|
|
54487
|
-
tmp = this.
|
|
54574
|
+
tmp = this.d99_1.x9a(tmp_0, destination, VOID, table.gameHistory);
|
|
54488
54575
|
}
|
|
54489
54576
|
var tmp1_elvis_lhs = tmp;
|
|
54490
54577
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
54491
54578
|
return state.r8t(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
54492
54579
|
};
|
|
54493
|
-
protoOf(EarnPointsMechanicReducer).
|
|
54580
|
+
protoOf(EarnPointsMechanicReducer).g99 = function (state, action) {
|
|
54494
54581
|
var table = state.n6n();
|
|
54495
54582
|
var players = table.players;
|
|
54496
54583
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -54515,7 +54602,7 @@
|
|
|
54515
54602
|
destination_0.j(tmp$ret$3);
|
|
54516
54603
|
}
|
|
54517
54604
|
if (!(toSet(destination_0).o() === 1)) {
|
|
54518
|
-
this.
|
|
54605
|
+
this.f99_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
54519
54606
|
}
|
|
54520
54607
|
var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.b8r_1, players, config);
|
|
54521
54608
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -54531,7 +54618,7 @@
|
|
|
54531
54618
|
destination_1.j(tmp$ret$6);
|
|
54532
54619
|
}
|
|
54533
54620
|
var tmp3_gameInfo = table.gameInfo.w8a(VOID, VOID, table.gameInfo.round.copy(VOID, action.c8r_1));
|
|
54534
|
-
var tmp4_gameHistory = this.
|
|
54621
|
+
var tmp4_gameHistory = this.d99_1.y9a(action.b8r_1, bribe, action.c8r_1, playersCombinations, table.gameHistory);
|
|
54535
54622
|
return state.r8t(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
54536
54623
|
};
|
|
54537
54624
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -54539,7 +54626,7 @@
|
|
|
54539
54626
|
return metadata;
|
|
54540
54627
|
}
|
|
54541
54628
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
54542
|
-
$this.
|
|
54629
|
+
$this.n9a_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
54543
54630
|
}
|
|
54544
54631
|
var tmp0_safe_receiver = metadata.randomData;
|
|
54545
54632
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -54551,12 +54638,12 @@
|
|
|
54551
54638
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
|
|
54552
54639
|
}
|
|
54553
54640
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
54554
|
-
this.
|
|
54555
|
-
this.
|
|
54556
|
-
this.
|
|
54557
|
-
this.
|
|
54641
|
+
this.k9a_1 = pointsInteractor;
|
|
54642
|
+
this.l9a_1 = teamsLogicProvider;
|
|
54643
|
+
this.m9a_1 = gameLogicConfig;
|
|
54644
|
+
this.n9a_1 = logger;
|
|
54558
54645
|
}
|
|
54559
|
-
protoOf(GameHistoryReducer).
|
|
54646
|
+
protoOf(GameHistoryReducer).z9a = function (gameHistory) {
|
|
54560
54647
|
var roundNumber = gameHistory.rounds.length;
|
|
54561
54648
|
var tmp0 = gameHistory.rounds;
|
|
54562
54649
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -54568,7 +54655,7 @@
|
|
|
54568
54655
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
54569
54656
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
54570
54657
|
};
|
|
54571
|
-
protoOf(GameHistoryReducer).
|
|
54658
|
+
protoOf(GameHistoryReducer).p9a = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
54572
54659
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
54573
54660
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.g7j_1, System_instance.ck());
|
|
54574
54661
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -54586,14 +54673,14 @@
|
|
|
54586
54673
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
54587
54674
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_158.initial() : tmp0_elvis_lhs));
|
|
54588
54675
|
};
|
|
54589
|
-
protoOf(GameHistoryReducer).
|
|
54676
|
+
protoOf(GameHistoryReducer).u9a = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
54590
54677
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
54591
54678
|
var tmp;
|
|
54592
54679
|
if (playersMode.isTeamGame) {
|
|
54593
54680
|
// Inline function 'kotlin.arrayOf' call
|
|
54594
54681
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
54595
54682
|
// Inline function 'kotlin.js.asDynamic' call
|
|
54596
|
-
tmp = [playerId, this.
|
|
54683
|
+
tmp = [playerId, this.l9a_1.m8h(playerId, players).playerId];
|
|
54597
54684
|
} else {
|
|
54598
54685
|
// Inline function 'kotlin.arrayOf' call
|
|
54599
54686
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -54603,7 +54690,7 @@
|
|
|
54603
54690
|
var roundCommitted = tmp;
|
|
54604
54691
|
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_1(currentRoundHistory.items, listOf(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.ck()))), roundCommitted)));
|
|
54605
54692
|
};
|
|
54606
|
-
protoOf(GameHistoryReducer).
|
|
54693
|
+
protoOf(GameHistoryReducer).r9a = function (playersCards, gameHistory) {
|
|
54607
54694
|
// Inline function 'kotlin.collections.mapValues' call
|
|
54608
54695
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
54609
54696
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
|
|
@@ -54617,14 +54704,14 @@
|
|
|
54617
54704
|
}
|
|
54618
54705
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
|
|
54619
54706
|
};
|
|
54620
|
-
protoOf(GameHistoryReducer).
|
|
54707
|
+
protoOf(GameHistoryReducer).a9b = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
54621
54708
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
|
|
54622
54709
|
};
|
|
54623
|
-
protoOf(GameHistoryReducer).
|
|
54710
|
+
protoOf(GameHistoryReducer).x9a = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
54624
54711
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
54625
|
-
return $super === VOID ? this.
|
|
54712
|
+
return $super === VOID ? this.a9b(playerId, combinations, combinationsStates, gameHistory) : $super.a9b.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
54626
54713
|
};
|
|
54627
|
-
protoOf(GameHistoryReducer).
|
|
54714
|
+
protoOf(GameHistoryReducer).y9a = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
54628
54715
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.x7i_1, numberOfBribe, System_instance.ck()));
|
|
54629
54716
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
54630
54717
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -54683,7 +54770,7 @@
|
|
|
54683
54770
|
}
|
|
54684
54771
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
54685
54772
|
};
|
|
54686
|
-
protoOf(GameHistoryReducer).
|
|
54773
|
+
protoOf(GameHistoryReducer).w9a = function (winnerCombinations, gameHistory) {
|
|
54687
54774
|
// Inline function 'kotlin.collections.map' call
|
|
54688
54775
|
// Inline function 'kotlin.collections.mapTo' call
|
|
54689
54776
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -54699,7 +54786,7 @@
|
|
|
54699
54786
|
}
|
|
54700
54787
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
54701
54788
|
};
|
|
54702
|
-
protoOf(GameHistoryReducer).
|
|
54789
|
+
protoOf(GameHistoryReducer).o9a = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
54703
54790
|
if (playerConnection == null) {
|
|
54704
54791
|
return gameHistory;
|
|
54705
54792
|
}
|
|
@@ -54711,17 +54798,17 @@
|
|
|
54711
54798
|
tmp = false;
|
|
54712
54799
|
}
|
|
54713
54800
|
var isShortDisconnectState = tmp;
|
|
54714
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
54801
|
+
if (isSupportedReason && !isShortDisconnectState || this.m9a_1.verboseGameHistory) {
|
|
54715
54802
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.m67_1, playerConnection.u67(), System_instance.ck())));
|
|
54716
54803
|
}
|
|
54717
54804
|
return gameHistory;
|
|
54718
54805
|
};
|
|
54719
|
-
protoOf(GameHistoryReducer).
|
|
54806
|
+
protoOf(GameHistoryReducer).s9a = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
54720
54807
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
54721
54808
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
54722
54809
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_158.initial() : tmp0_elvis_lhs;
|
|
54723
54810
|
var tmp;
|
|
54724
|
-
if (this.
|
|
54811
|
+
if (this.m9a_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
54725
54812
|
// Inline function 'kotlin.collections.map' call
|
|
54726
54813
|
// Inline function 'kotlin.collections.mapTo' call
|
|
54727
54814
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -54736,7 +54823,7 @@
|
|
|
54736
54823
|
tmp = currentMetadata;
|
|
54737
54824
|
}
|
|
54738
54825
|
var updatedMetadata = tmp;
|
|
54739
|
-
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
54826
|
+
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.k9a_1.z8o(points), System_instance.ck())));
|
|
54740
54827
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
54741
54828
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
54742
54829
|
};
|
|
@@ -54761,7 +54848,7 @@
|
|
|
54761
54848
|
tmp = cardDeck;
|
|
54762
54849
|
}
|
|
54763
54850
|
var newCardDeck = tmp;
|
|
54764
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
54851
|
+
return new PreviousRound(bribes, newCardDeck, $this.d9b_1.a8p(players, config));
|
|
54765
54852
|
}
|
|
54766
54853
|
function roundFinishedGameInfoReducer($this, table) {
|
|
54767
54854
|
var gameInfo = table.gameInfo;
|
|
@@ -54814,10 +54901,10 @@
|
|
|
54814
54901
|
return points.w6y(0, emptyList(), emptyList());
|
|
54815
54902
|
}
|
|
54816
54903
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
54817
|
-
this.
|
|
54818
|
-
this.
|
|
54904
|
+
this.d9b_1 = pointsInteractor;
|
|
54905
|
+
this.e9b_1 = historyReducer;
|
|
54819
54906
|
}
|
|
54820
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54907
|
+
protoOf(TableLifecycleReducerImpl).b9b = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
54821
54908
|
var tmp = Companion_instance_146;
|
|
54822
54909
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
54823
54910
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -54849,7 +54936,7 @@
|
|
|
54849
54936
|
}
|
|
54850
54937
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
54851
54938
|
};
|
|
54852
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54939
|
+
protoOf(TableLifecycleReducerImpl).x99 = function (table) {
|
|
54853
54940
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
54854
54941
|
// Inline function 'kotlin.collections.map' call
|
|
54855
54942
|
var this_0 = table.players;
|
|
@@ -54864,10 +54951,10 @@
|
|
|
54864
54951
|
var tmp2_cardsOnTable = emptyList();
|
|
54865
54952
|
var tmp3_bribes = emptyList();
|
|
54866
54953
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
54867
|
-
var tmp5_gameHistory = this.
|
|
54954
|
+
var tmp5_gameHistory = this.e9b_1.z9a(table.gameHistory);
|
|
54868
54955
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
54869
54956
|
};
|
|
54870
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54957
|
+
protoOf(TableLifecycleReducerImpl).t9a = function (table) {
|
|
54871
54958
|
// Inline function 'kotlin.collections.map' call
|
|
54872
54959
|
var this_0 = table.players;
|
|
54873
54960
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -54878,9 +54965,9 @@
|
|
|
54878
54965
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
54879
54966
|
destination.j(tmp$ret$0);
|
|
54880
54967
|
}
|
|
54881
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
54968
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.e9b_1.z9a(table.gameHistory));
|
|
54882
54969
|
};
|
|
54883
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54970
|
+
protoOf(TableLifecycleReducerImpl).c9b = function (table, newGameId) {
|
|
54884
54971
|
// Inline function 'kotlin.collections.map' call
|
|
54885
54972
|
var this_0 = table.players;
|
|
54886
54973
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -54919,93 +55006,93 @@
|
|
|
54919
55006
|
return true;
|
|
54920
55007
|
}
|
|
54921
55008
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
54922
|
-
this.
|
|
54923
|
-
this.
|
|
54924
|
-
this.
|
|
54925
|
-
this.
|
|
55009
|
+
this.f9b_1 = $isEnableForPlayer;
|
|
55010
|
+
this.g9b_1 = $playerTurnInteractor;
|
|
55011
|
+
this.h9b_1 = $logger;
|
|
55012
|
+
this.i9b_1 = $playerTurnMechanicReducer;
|
|
54926
55013
|
}
|
|
54927
55014
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).x6f = function (action) {
|
|
54928
55015
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
54929
55016
|
};
|
|
54930
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
55017
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).i98 = function (state, action) {
|
|
54931
55018
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
54932
55019
|
var tmp$ret$0;
|
|
54933
55020
|
$l$block: {
|
|
54934
55021
|
var table = state.n6n();
|
|
54935
55022
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
54936
|
-
if (!this.
|
|
55023
|
+
if (!this.f9b_1(player)) {
|
|
54937
55024
|
tmp$ret$0 = state;
|
|
54938
55025
|
break $l$block;
|
|
54939
55026
|
}
|
|
54940
|
-
var turnModel = this.
|
|
55027
|
+
var turnModel = this.g9b_1.e8q(player, tmp2);
|
|
54941
55028
|
var tmp;
|
|
54942
55029
|
if (turnModel == null) {
|
|
54943
|
-
this.
|
|
55030
|
+
this.h9b_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
54944
55031
|
tmp = state;
|
|
54945
55032
|
} else {
|
|
54946
|
-
tmp = state.r8t(this.
|
|
55033
|
+
tmp = state.r8t(this.i9b_1.i9a(table, turnModel));
|
|
54947
55034
|
}
|
|
54948
55035
|
tmp$ret$0 = tmp;
|
|
54949
55036
|
}
|
|
54950
55037
|
return tmp$ret$0;
|
|
54951
55038
|
};
|
|
54952
55039
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).n6h = function (state, action) {
|
|
54953
|
-
return this.
|
|
55040
|
+
return this.i98((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
54954
55041
|
};
|
|
54955
55042
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
54956
55043
|
return true;
|
|
54957
55044
|
}
|
|
54958
55045
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
54959
|
-
this.
|
|
54960
|
-
this.
|
|
54961
|
-
this.
|
|
54962
|
-
this.
|
|
55046
|
+
this.j9b_1 = $isEnableForPlayer;
|
|
55047
|
+
this.k9b_1 = $playerTurnInteractor;
|
|
55048
|
+
this.l9b_1 = $logger;
|
|
55049
|
+
this.m9b_1 = $playerTurnMechanicReducer;
|
|
54963
55050
|
}
|
|
54964
55051
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).x6f = function (action) {
|
|
54965
55052
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
54966
55053
|
};
|
|
54967
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
55054
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).i98 = function (state, action) {
|
|
54968
55055
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
54969
55056
|
var tmp$ret$0;
|
|
54970
55057
|
$l$block: {
|
|
54971
55058
|
var table = state.n6n();
|
|
54972
55059
|
var player = getPlayerTurn(tmp2, table.players);
|
|
54973
|
-
if (player == null || !this.
|
|
55060
|
+
if (player == null || !this.j9b_1(player)) {
|
|
54974
55061
|
tmp$ret$0 = state;
|
|
54975
55062
|
break $l$block;
|
|
54976
55063
|
}
|
|
54977
|
-
var turnModel = this.
|
|
55064
|
+
var turnModel = this.k9b_1.e8q(player, tmp2);
|
|
54978
55065
|
var tmp;
|
|
54979
55066
|
if (turnModel == null) {
|
|
54980
|
-
this.
|
|
55067
|
+
this.l9b_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
54981
55068
|
tmp = state;
|
|
54982
55069
|
} else {
|
|
54983
|
-
tmp = state.r8t(this.
|
|
55070
|
+
tmp = state.r8t(this.m9b_1.i9a(table, turnModel));
|
|
54984
55071
|
}
|
|
54985
55072
|
tmp$ret$0 = tmp;
|
|
54986
55073
|
}
|
|
54987
55074
|
return tmp$ret$0;
|
|
54988
55075
|
};
|
|
54989
55076
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).n6h = function (state, action) {
|
|
54990
|
-
return this.
|
|
55077
|
+
return this.i98((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
54991
55078
|
};
|
|
54992
55079
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
54993
55080
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
54994
55081
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
54995
55082
|
}
|
|
54996
55083
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
54997
|
-
this.
|
|
54998
|
-
this.
|
|
55084
|
+
this.n9b_1 = $playerTurnInteractor;
|
|
55085
|
+
this.o9b_1 = $playerTurnMechanicReducer;
|
|
54999
55086
|
}
|
|
55000
55087
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).x6f = function (action) {
|
|
55001
55088
|
return isInterface(action, NextPlayerTurnAction);
|
|
55002
55089
|
};
|
|
55003
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
55090
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).i98 = function (state, action) {
|
|
55004
55091
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
55005
55092
|
var tmp$ret$0;
|
|
55006
55093
|
$l$block: {
|
|
55007
55094
|
var table = state.n6n();
|
|
55008
|
-
var tmp0_elvis_lhs = this.
|
|
55095
|
+
var tmp0_elvis_lhs = this.n9b_1.d8q(tmp2, table);
|
|
55009
55096
|
var tmp;
|
|
55010
55097
|
if (tmp0_elvis_lhs == null) {
|
|
55011
55098
|
tmp$ret$0 = state;
|
|
@@ -55014,12 +55101,12 @@
|
|
|
55014
55101
|
tmp = tmp0_elvis_lhs;
|
|
55015
55102
|
}
|
|
55016
55103
|
var turnModel = tmp;
|
|
55017
|
-
tmp$ret$0 = state.r8t(this.
|
|
55104
|
+
tmp$ret$0 = state.r8t(this.o9b_1.h9a(table, turnModel));
|
|
55018
55105
|
}
|
|
55019
55106
|
return tmp$ret$0;
|
|
55020
55107
|
};
|
|
55021
55108
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).n6h = function (state, action) {
|
|
55022
|
-
return this.
|
|
55109
|
+
return this.i98((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
55023
55110
|
};
|
|
55024
55111
|
function get_isCreated(_this__u8e3s4) {
|
|
55025
55112
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -55035,7 +55122,7 @@
|
|
|
55035
55122
|
}
|
|
55036
55123
|
function Companion_164() {
|
|
55037
55124
|
}
|
|
55038
|
-
protoOf(Companion_164).
|
|
55125
|
+
protoOf(Companion_164).p9b = function (payload) {
|
|
55039
55126
|
var tmp;
|
|
55040
55127
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
55041
55128
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -55056,38 +55143,28 @@
|
|
|
55056
55143
|
function Companion_getInstance_171() {
|
|
55057
55144
|
return Companion_instance_169;
|
|
55058
55145
|
}
|
|
55059
|
-
function CallbackWrapperLoggerOutput$_init_$lambda_hgxyzw(it) {
|
|
55060
|
-
return null;
|
|
55061
|
-
}
|
|
55062
55146
|
function CallbackWrapperLoggerOutput(logger, payloadMapper) {
|
|
55063
|
-
|
|
55064
|
-
|
|
55065
|
-
tmp = CallbackWrapperLoggerOutput$_init_$lambda_hgxyzw;
|
|
55066
|
-
} else {
|
|
55067
|
-
tmp = payloadMapper;
|
|
55068
|
-
}
|
|
55069
|
-
payloadMapper = tmp;
|
|
55070
|
-
this.r9b_1 = logger;
|
|
55071
|
-
this.s9b_1 = payloadMapper;
|
|
55147
|
+
this.q9b_1 = logger;
|
|
55148
|
+
this.r9b_1 = payloadMapper;
|
|
55072
55149
|
}
|
|
55073
55150
|
protoOf(CallbackWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
55074
|
-
this.
|
|
55151
|
+
this.q9b_1.d(tag, message, this.r9b_1(payload));
|
|
55075
55152
|
};
|
|
55076
55153
|
protoOf(CallbackWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
55077
|
-
this.
|
|
55154
|
+
this.q9b_1.e(tag, message, exception, this.r9b_1(payload));
|
|
55078
55155
|
};
|
|
55079
55156
|
protoOf(CallbackWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
55080
|
-
this.
|
|
55157
|
+
this.q9b_1.i(tag, message, this.r9b_1(payload));
|
|
55081
55158
|
};
|
|
55082
55159
|
protoOf(CallbackWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
55083
|
-
this.
|
|
55160
|
+
this.q9b_1.v(tag, message, exception, this.r9b_1(payload));
|
|
55084
55161
|
};
|
|
55085
55162
|
protoOf(CallbackWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
55086
|
-
this.
|
|
55163
|
+
this.q9b_1.w(tag, message, exception, this.r9b_1(payload));
|
|
55087
55164
|
};
|
|
55088
55165
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
55089
|
-
this.
|
|
55090
|
-
this.
|
|
55166
|
+
this.a9c_1 = $$this$unsafeFlow;
|
|
55167
|
+
this.b9c_1 = $types;
|
|
55091
55168
|
CoroutineImpl.call(this, resultContinuation);
|
|
55092
55169
|
}
|
|
55093
55170
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).u2h = function (value, $completion) {
|
|
@@ -55108,15 +55185,15 @@
|
|
|
55108
55185
|
case 0:
|
|
55109
55186
|
this.s8_1 = 5;
|
|
55110
55187
|
var tmp_0 = this;
|
|
55111
|
-
tmp_0.
|
|
55188
|
+
tmp_0.e9c_1 = this.a9c_1;
|
|
55112
55189
|
var tmp_1 = this;
|
|
55113
|
-
tmp_1.
|
|
55190
|
+
tmp_1.d9c_1 = this.c9c_1;
|
|
55114
55191
|
this.r8_1 = 1;
|
|
55115
55192
|
continue $sm;
|
|
55116
55193
|
case 1:
|
|
55117
|
-
var $this$transform = this.
|
|
55118
|
-
var value = this.
|
|
55119
|
-
if (contains(this.
|
|
55194
|
+
var $this$transform = this.e9c_1;
|
|
55195
|
+
var value = this.d9c_1;
|
|
55196
|
+
if (contains(this.b9c_1, value.type)) {
|
|
55120
55197
|
this.r8_1 = 3;
|
|
55121
55198
|
suspendResult = $this$transform.l28(value, this);
|
|
55122
55199
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -55156,8 +55233,8 @@
|
|
|
55156
55233
|
while (true);
|
|
55157
55234
|
};
|
|
55158
55235
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).v2h = function (value, completion) {
|
|
55159
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
55160
|
-
i.
|
|
55236
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.a9c_1, this.b9c_1, completion);
|
|
55237
|
+
i.c9c_1 = value;
|
|
55161
55238
|
return i;
|
|
55162
55239
|
};
|
|
55163
55240
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -55170,8 +55247,8 @@
|
|
|
55170
55247
|
}
|
|
55171
55248
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
55172
55249
|
CoroutineImpl.call(this, resultContinuation);
|
|
55173
|
-
this.
|
|
55174
|
-
this.
|
|
55250
|
+
this.n9c_1 = _this__u8e3s4;
|
|
55251
|
+
this.o9c_1 = collector;
|
|
55175
55252
|
}
|
|
55176
55253
|
protoOf($collectCOROUTINE$).z8 = function () {
|
|
55177
55254
|
var suspendResult = this.t8_1;
|
|
@@ -55181,10 +55258,10 @@
|
|
|
55181
55258
|
switch (tmp) {
|
|
55182
55259
|
case 0:
|
|
55183
55260
|
this.s8_1 = 2;
|
|
55184
|
-
var $this$unsafeFlow = this.
|
|
55261
|
+
var $this$unsafeFlow = this.o9c_1;
|
|
55185
55262
|
this.r8_1 = 1;
|
|
55186
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
55187
|
-
suspendResult = this.
|
|
55263
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.n9c_1.q9c_1, null);
|
|
55264
|
+
suspendResult = this.n9c_1.p9c_1.l27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
55188
55265
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
55189
55266
|
return suspendResult;
|
|
55190
55267
|
}
|
|
@@ -55208,8 +55285,8 @@
|
|
|
55208
55285
|
};
|
|
55209
55286
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
55210
55287
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55211
|
-
$this.
|
|
55212
|
-
var tmp0_elvis_lhs = $this.
|
|
55288
|
+
$this.t9c_1;
|
|
55289
|
+
var tmp0_elvis_lhs = $this.r9c_1(payload);
|
|
55213
55290
|
var tmp;
|
|
55214
55291
|
if (tmp0_elvis_lhs == null) {
|
|
55215
55292
|
return Unit_instance;
|
|
@@ -55218,7 +55295,7 @@
|
|
|
55218
55295
|
}
|
|
55219
55296
|
var key = tmp;
|
|
55220
55297
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
55221
|
-
var this_0 = $this.
|
|
55298
|
+
var this_0 = $this.u9c_1;
|
|
55222
55299
|
var value = this_0.b2(key);
|
|
55223
55300
|
var tmp_0;
|
|
55224
55301
|
if (value == null) {
|
|
@@ -55230,7 +55307,7 @@
|
|
|
55230
55307
|
}
|
|
55231
55308
|
var logger = tmp_0;
|
|
55232
55309
|
var tmp1_key = key.h6l();
|
|
55233
|
-
logger.
|
|
55310
|
+
logger.v9c_1.g2b(new LoggerOutputDataDto(type, tmp1_key, tag, message, stackTrace));
|
|
55234
55311
|
}
|
|
55235
55312
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
55236
55313
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -55240,35 +55317,35 @@
|
|
|
55240
55317
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
55241
55318
|
controller = controller === VOID ? null : controller;
|
|
55242
55319
|
job = job === VOID ? null : job;
|
|
55243
|
-
this.
|
|
55244
|
-
this.
|
|
55245
|
-
this.
|
|
55320
|
+
this.v9c_1 = flow;
|
|
55321
|
+
this.w9c_1 = controller;
|
|
55322
|
+
this.x9c_1 = job;
|
|
55246
55323
|
}
|
|
55247
|
-
protoOf(LoggerModel).
|
|
55248
|
-
this.
|
|
55249
|
-
var tmp0_safe_receiver = this.
|
|
55324
|
+
protoOf(LoggerModel).y9c = function () {
|
|
55325
|
+
this.v9c_1.k2b();
|
|
55326
|
+
var tmp0_safe_receiver = this.x9c_1;
|
|
55250
55327
|
if (tmp0_safe_receiver == null)
|
|
55251
55328
|
null;
|
|
55252
55329
|
else {
|
|
55253
55330
|
tmp0_safe_receiver.o1q();
|
|
55254
55331
|
}
|
|
55255
55332
|
};
|
|
55256
|
-
protoOf(LoggerModel).
|
|
55333
|
+
protoOf(LoggerModel).z9c = function (flow, controller, job) {
|
|
55257
55334
|
return new LoggerModel(flow, controller, job);
|
|
55258
55335
|
};
|
|
55259
|
-
protoOf(LoggerModel).
|
|
55260
|
-
flow = flow === VOID ? this.
|
|
55261
|
-
controller = controller === VOID ? this.
|
|
55262
|
-
job = job === VOID ? this.
|
|
55263
|
-
return $super === VOID ? this.
|
|
55336
|
+
protoOf(LoggerModel).a9d = function (flow, controller, job, $super) {
|
|
55337
|
+
flow = flow === VOID ? this.v9c_1 : flow;
|
|
55338
|
+
controller = controller === VOID ? this.w9c_1 : controller;
|
|
55339
|
+
job = job === VOID ? this.x9c_1 : job;
|
|
55340
|
+
return $super === VOID ? this.z9c(flow, controller, job) : $super.z9c.call(this, flow, controller, job);
|
|
55264
55341
|
};
|
|
55265
55342
|
protoOf(LoggerModel).toString = function () {
|
|
55266
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
55343
|
+
return 'LoggerModel(flow=' + toString(this.v9c_1) + ', controller=' + toString_0(this.w9c_1) + ', job=' + toString_0(this.x9c_1) + ')';
|
|
55267
55344
|
};
|
|
55268
55345
|
protoOf(LoggerModel).hashCode = function () {
|
|
55269
|
-
var result = hashCode(this.
|
|
55346
|
+
var result = hashCode(this.v9c_1);
|
|
55347
|
+
result = imul(result, 31) + (this.w9c_1 == null ? 0 : hashCode(this.w9c_1)) | 0;
|
|
55270
55348
|
result = imul(result, 31) + (this.x9c_1 == null ? 0 : hashCode(this.x9c_1)) | 0;
|
|
55271
|
-
result = imul(result, 31) + (this.y9c_1 == null ? 0 : hashCode(this.y9c_1)) | 0;
|
|
55272
55349
|
return result;
|
|
55273
55350
|
};
|
|
55274
55351
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -55276,18 +55353,18 @@
|
|
|
55276
55353
|
return true;
|
|
55277
55354
|
if (!(other instanceof LoggerModel))
|
|
55278
55355
|
return false;
|
|
55356
|
+
if (!equals(this.v9c_1, other.v9c_1))
|
|
55357
|
+
return false;
|
|
55279
55358
|
if (!equals(this.w9c_1, other.w9c_1))
|
|
55280
55359
|
return false;
|
|
55281
55360
|
if (!equals(this.x9c_1, other.x9c_1))
|
|
55282
55361
|
return false;
|
|
55283
|
-
if (!equals(this.y9c_1, other.y9c_1))
|
|
55284
|
-
return false;
|
|
55285
55362
|
return true;
|
|
55286
55363
|
};
|
|
55287
55364
|
function Companion_165() {
|
|
55288
|
-
this.
|
|
55365
|
+
this.b9d_1 = 1000;
|
|
55289
55366
|
}
|
|
55290
|
-
protoOf(Companion_165).
|
|
55367
|
+
protoOf(Companion_165).c9d = function (payload) {
|
|
55291
55368
|
var tmp;
|
|
55292
55369
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
55293
55370
|
tmp = payload.id;
|
|
@@ -55309,13 +55386,13 @@
|
|
|
55309
55386
|
return Companion_instance_170;
|
|
55310
55387
|
}
|
|
55311
55388
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
55312
|
-
this.
|
|
55389
|
+
this.d9d_1 = function_0;
|
|
55313
55390
|
}
|
|
55314
55391
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).l28 = function (value, $completion) {
|
|
55315
|
-
return this.
|
|
55392
|
+
return this.d9d_1(value, $completion);
|
|
55316
55393
|
};
|
|
55317
55394
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
55318
|
-
return this.
|
|
55395
|
+
return this.d9d_1;
|
|
55319
55396
|
};
|
|
55320
55397
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
55321
55398
|
var tmp;
|
|
@@ -55335,12 +55412,9 @@
|
|
|
55335
55412
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
|
|
55336
55413
|
return hashCode(this.a3());
|
|
55337
55414
|
};
|
|
55338
|
-
function FileLoggerOutputImpl$_init_$lambda_sdog02(it) {
|
|
55339
|
-
return null;
|
|
55340
|
-
}
|
|
55341
55415
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
55342
|
-
this.
|
|
55343
|
-
this.
|
|
55416
|
+
this.p9c_1 = $this;
|
|
55417
|
+
this.q9c_1 = $types;
|
|
55344
55418
|
}
|
|
55345
55419
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).m28 = function (collector, $completion) {
|
|
55346
55420
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -55352,34 +55426,27 @@
|
|
|
55352
55426
|
return this.m28(collector, $completion);
|
|
55353
55427
|
};
|
|
55354
55428
|
function FileLoggerOutputImpl(payloadToLoggerKeyMapper, enabled) {
|
|
55355
|
-
var tmp;
|
|
55356
|
-
if (payloadToLoggerKeyMapper === VOID) {
|
|
55357
|
-
tmp = FileLoggerOutputImpl$_init_$lambda_sdog02;
|
|
55358
|
-
} else {
|
|
55359
|
-
tmp = payloadToLoggerKeyMapper;
|
|
55360
|
-
}
|
|
55361
|
-
payloadToLoggerKeyMapper = tmp;
|
|
55362
55429
|
enabled = enabled === VOID ? true : enabled;
|
|
55363
|
-
this.
|
|
55364
|
-
this.
|
|
55365
|
-
var
|
|
55430
|
+
this.r9c_1 = payloadToLoggerKeyMapper;
|
|
55431
|
+
this.s9c_1 = enabled;
|
|
55432
|
+
var tmp = this;
|
|
55366
55433
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
55367
|
-
|
|
55368
|
-
var
|
|
55434
|
+
tmp.t9c_1 = get_atomicfu$reentrantLock();
|
|
55435
|
+
var tmp_0 = this;
|
|
55369
55436
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
55370
|
-
|
|
55437
|
+
tmp_0.u9c_1 = LinkedHashMap_init_$Create$();
|
|
55371
55438
|
}
|
|
55372
55439
|
protoOf(FileLoggerOutputImpl).c1l = function (_set____db54di) {
|
|
55373
|
-
this.
|
|
55440
|
+
this.s9c_1 = _set____db54di;
|
|
55374
55441
|
};
|
|
55375
55442
|
protoOf(FileLoggerOutputImpl).d1l = function () {
|
|
55376
|
-
return this.
|
|
55443
|
+
return this.s9c_1;
|
|
55377
55444
|
};
|
|
55378
|
-
protoOf(FileLoggerOutputImpl).
|
|
55445
|
+
protoOf(FileLoggerOutputImpl).e9d = function (loggerKey, types) {
|
|
55379
55446
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55380
|
-
this.
|
|
55447
|
+
this.t9c_1;
|
|
55381
55448
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
55382
|
-
var this_0 = this.
|
|
55449
|
+
var this_0 = this.u9c_1;
|
|
55383
55450
|
var value = this_0.b2(loggerKey);
|
|
55384
55451
|
var tmp;
|
|
55385
55452
|
if (value == null) {
|
|
@@ -55392,26 +55459,26 @@
|
|
|
55392
55459
|
var logger = tmp;
|
|
55393
55460
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
55394
55461
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
55395
|
-
var this_1 = logger.
|
|
55462
|
+
var this_1 = logger.v9c_1;
|
|
55396
55463
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
55397
55464
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
55398
55465
|
};
|
|
55399
55466
|
protoOf(FileLoggerOutputImpl).d93 = function (loggerKey) {
|
|
55400
55467
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55401
|
-
this.
|
|
55402
|
-
var tmp0_safe_receiver = this.
|
|
55468
|
+
this.t9c_1;
|
|
55469
|
+
var tmp0_safe_receiver = this.u9c_1.b2(loggerKey);
|
|
55403
55470
|
if (tmp0_safe_receiver == null)
|
|
55404
55471
|
null;
|
|
55405
55472
|
else {
|
|
55406
|
-
tmp0_safe_receiver.
|
|
55473
|
+
tmp0_safe_receiver.y9c();
|
|
55407
55474
|
}
|
|
55408
|
-
this.
|
|
55475
|
+
this.u9c_1.f2(loggerKey);
|
|
55409
55476
|
};
|
|
55410
55477
|
protoOf(FileLoggerOutputImpl).c93 = function (loggerKey, job, controller) {
|
|
55411
55478
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55412
|
-
this.
|
|
55479
|
+
this.t9c_1;
|
|
55413
55480
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
55414
|
-
var this_0 = this.
|
|
55481
|
+
var this_0 = this.u9c_1;
|
|
55415
55482
|
var value = this_0.b2(loggerKey);
|
|
55416
55483
|
var tmp;
|
|
55417
55484
|
if (value == null) {
|
|
@@ -55421,30 +55488,30 @@
|
|
|
55421
55488
|
} else {
|
|
55422
55489
|
tmp = value;
|
|
55423
55490
|
}
|
|
55424
|
-
var updatedModel = tmp.
|
|
55491
|
+
var updatedModel = tmp.a9d(VOID, controller, job);
|
|
55425
55492
|
// Inline function 'kotlin.collections.set' call
|
|
55426
|
-
this.
|
|
55493
|
+
this.u9c_1.e2(loggerKey, updatedModel);
|
|
55427
55494
|
};
|
|
55428
55495
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
55429
55496
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55430
|
-
this.
|
|
55497
|
+
this.t9c_1;
|
|
55431
55498
|
// Inline function 'kotlin.collections.forEach' call
|
|
55432
55499
|
// Inline function 'kotlin.collections.iterator' call
|
|
55433
|
-
var _iterator__ex2g4s = this.
|
|
55500
|
+
var _iterator__ex2g4s = this.u9c_1.u().l();
|
|
55434
55501
|
while (_iterator__ex2g4s.m()) {
|
|
55435
55502
|
var element = _iterator__ex2g4s.n();
|
|
55436
|
-
element.w().
|
|
55503
|
+
element.w().y9c();
|
|
55437
55504
|
}
|
|
55438
|
-
this.
|
|
55505
|
+
this.u9c_1.h2();
|
|
55439
55506
|
};
|
|
55440
55507
|
protoOf(FileLoggerOutputImpl).x1k = function (tag, message, payload) {
|
|
55441
|
-
if (!this.
|
|
55508
|
+
if (!this.s9c_1)
|
|
55442
55509
|
return Unit_instance;
|
|
55443
55510
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
55444
55511
|
log$default(this, tmp0_type, tag, message, payload);
|
|
55445
55512
|
};
|
|
55446
55513
|
protoOf(FileLoggerOutputImpl).y1k = function (tag, message, exception, payload) {
|
|
55447
|
-
if (!this.
|
|
55514
|
+
if (!this.s9c_1)
|
|
55448
55515
|
return Unit_instance;
|
|
55449
55516
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
55450
55517
|
var tmp;
|
|
@@ -55459,13 +55526,13 @@
|
|
|
55459
55526
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
55460
55527
|
};
|
|
55461
55528
|
protoOf(FileLoggerOutputImpl).b1l = function (tag, message, payload) {
|
|
55462
|
-
if (!this.
|
|
55529
|
+
if (!this.s9c_1)
|
|
55463
55530
|
return Unit_instance;
|
|
55464
55531
|
var tmp0_type = LogType_INFO_getInstance();
|
|
55465
55532
|
log(this, tmp0_type, tag, message, payload, null);
|
|
55466
55533
|
};
|
|
55467
55534
|
protoOf(FileLoggerOutputImpl).a1l = function (tag, message, exception, payload) {
|
|
55468
|
-
if (!this.
|
|
55535
|
+
if (!this.s9c_1)
|
|
55469
55536
|
return Unit_instance;
|
|
55470
55537
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
55471
55538
|
var tmp;
|
|
@@ -55480,7 +55547,7 @@
|
|
|
55480
55547
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
55481
55548
|
};
|
|
55482
55549
|
protoOf(FileLoggerOutputImpl).z1k = function (tag, message, exception, payload) {
|
|
55483
|
-
if (!this.
|
|
55550
|
+
if (!this.s9c_1)
|
|
55484
55551
|
return Unit_instance;
|
|
55485
55552
|
var tmp4_type = LogType_WARN_getInstance();
|
|
55486
55553
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -56020,9 +56087,9 @@
|
|
|
56020
56087
|
}
|
|
56021
56088
|
}
|
|
56022
56089
|
function GameHelperImpl(logger) {
|
|
56023
|
-
this.
|
|
56090
|
+
this.i9d_1 = logger;
|
|
56024
56091
|
}
|
|
56025
|
-
protoOf(GameHelperImpl).
|
|
56092
|
+
protoOf(GameHelperImpl).f9d = function (store, playerIds, includeBots) {
|
|
56026
56093
|
var state = store.state;
|
|
56027
56094
|
var tmp;
|
|
56028
56095
|
if (!state.o6n()) {
|
|
@@ -56068,7 +56135,7 @@
|
|
|
56068
56135
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56069
56136
|
return copyToArray(destination_1);
|
|
56070
56137
|
};
|
|
56071
|
-
protoOf(GameHelperImpl).
|
|
56138
|
+
protoOf(GameHelperImpl).g9d = function (store, playerIds, includeBots) {
|
|
56072
56139
|
var state = store.state;
|
|
56073
56140
|
var tmp;
|
|
56074
56141
|
if (!state.o6n()) {
|
|
@@ -56239,10 +56306,10 @@
|
|
|
56239
56306
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56240
56307
|
return copyToArray(destination);
|
|
56241
56308
|
};
|
|
56242
|
-
protoOf(GameHelperImpl).
|
|
56309
|
+
protoOf(GameHelperImpl).h9d = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
56243
56310
|
var roomMode = mapToRoomMode(mode);
|
|
56244
56311
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
56245
|
-
this.
|
|
56312
|
+
this.i9d_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
56246
56313
|
var options = Companion_instance_154.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
56247
56314
|
var playersMode = this.mapPlayers(players);
|
|
56248
56315
|
var pointsMode = this.mapPoints(points);
|
|
@@ -56677,40 +56744,40 @@
|
|
|
56677
56744
|
function getRandomAvatarData_0($this) {
|
|
56678
56745
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
56679
56746
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
56680
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
56747
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.m9d()), avatarSet);
|
|
56681
56748
|
}
|
|
56682
56749
|
function getAvatarUrlByIndex($this, data) {
|
|
56683
56750
|
return mapToPattern($this, data);
|
|
56684
56751
|
}
|
|
56685
56752
|
function getNicknameByIndex($this, data) {
|
|
56686
|
-
return data.
|
|
56753
|
+
return data.o9d_1.p9d(data.n9d_1);
|
|
56687
56754
|
}
|
|
56688
56755
|
function mapToPattern($this, data) {
|
|
56689
|
-
return 'debertz://raspberry.games/' + data.
|
|
56756
|
+
return 'debertz://raspberry.games/' + data.o9d_1.p2_1 + '/' + data.n9d_1;
|
|
56690
56757
|
}
|
|
56691
56758
|
function Companion_166() {
|
|
56692
56759
|
Companion_instance_171 = this;
|
|
56693
|
-
this.
|
|
56760
|
+
this.q9d_1 = 'debertz://raspberry.games';
|
|
56694
56761
|
var tmp = this;
|
|
56695
56762
|
// Inline function 'kotlin.arrayOf' call
|
|
56696
56763
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56697
56764
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56698
|
-
tmp.
|
|
56765
|
+
tmp.r9d_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
56699
56766
|
var tmp_0 = this;
|
|
56700
56767
|
// Inline function 'kotlin.arrayOf' call
|
|
56701
56768
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56702
56769
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56703
|
-
tmp_0.
|
|
56770
|
+
tmp_0.s9d_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'];
|
|
56704
56771
|
var tmp_1 = this;
|
|
56705
56772
|
// Inline function 'kotlin.arrayOf' call
|
|
56706
56773
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56707
56774
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56708
|
-
tmp_1.
|
|
56775
|
+
tmp_1.t9d_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
56709
56776
|
var tmp_2 = this;
|
|
56710
56777
|
// Inline function 'kotlin.arrayOf' call
|
|
56711
56778
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56712
56779
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56713
|
-
tmp_2.
|
|
56780
|
+
tmp_2.u9d_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'];
|
|
56714
56781
|
}
|
|
56715
56782
|
var Companion_instance_171;
|
|
56716
56783
|
function Companion_getInstance_173() {
|
|
@@ -56721,14 +56788,14 @@
|
|
|
56721
56788
|
function AvatarSet(name, ordinal) {
|
|
56722
56789
|
Enum.call(this, name, ordinal);
|
|
56723
56790
|
}
|
|
56724
|
-
protoOf(AvatarSet).
|
|
56791
|
+
protoOf(AvatarSet).m9d = function () {
|
|
56725
56792
|
var tmp;
|
|
56726
56793
|
switch (this.p2_1) {
|
|
56727
56794
|
case 0:
|
|
56728
|
-
tmp = Companion_getInstance_173().
|
|
56795
|
+
tmp = Companion_getInstance_173().s9d_1.length;
|
|
56729
56796
|
break;
|
|
56730
56797
|
case 1:
|
|
56731
|
-
tmp = Companion_getInstance_173().
|
|
56798
|
+
tmp = Companion_getInstance_173().u9d_1.length;
|
|
56732
56799
|
break;
|
|
56733
56800
|
default:
|
|
56734
56801
|
noWhenBranchMatchedException();
|
|
@@ -56736,14 +56803,14 @@
|
|
|
56736
56803
|
}
|
|
56737
56804
|
return tmp;
|
|
56738
56805
|
};
|
|
56739
|
-
protoOf(AvatarSet).
|
|
56806
|
+
protoOf(AvatarSet).p9d = function (index) {
|
|
56740
56807
|
var tmp;
|
|
56741
56808
|
switch (this.p2_1) {
|
|
56742
56809
|
case 0:
|
|
56743
|
-
tmp = Companion_getInstance_173().
|
|
56810
|
+
tmp = Companion_getInstance_173().s9d_1[index];
|
|
56744
56811
|
break;
|
|
56745
56812
|
case 1:
|
|
56746
|
-
tmp = Companion_getInstance_173().
|
|
56813
|
+
tmp = Companion_getInstance_173().u9d_1[index];
|
|
56747
56814
|
break;
|
|
56748
56815
|
default:
|
|
56749
56816
|
noWhenBranchMatchedException();
|
|
@@ -56752,8 +56819,8 @@
|
|
|
56752
56819
|
return tmp;
|
|
56753
56820
|
};
|
|
56754
56821
|
function AvatarData(index, avatarSet) {
|
|
56755
|
-
this.
|
|
56756
|
-
this.
|
|
56822
|
+
this.n9d_1 = index;
|
|
56823
|
+
this.o9d_1 = avatarSet;
|
|
56757
56824
|
}
|
|
56758
56825
|
function AvatarSet_ORIGIN_getInstance() {
|
|
56759
56826
|
AvatarSet_initEntries();
|
|
@@ -56766,7 +56833,7 @@
|
|
|
56766
56833
|
function GameResourcesImpl() {
|
|
56767
56834
|
Companion_getInstance_173();
|
|
56768
56835
|
}
|
|
56769
|
-
protoOf(GameResourcesImpl).
|
|
56836
|
+
protoOf(GameResourcesImpl).j9d = function (playerId, existingNicknames) {
|
|
56770
56837
|
return createUser(this, playerId, existingNicknames);
|
|
56771
56838
|
};
|
|
56772
56839
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -56807,45 +56874,45 @@
|
|
|
56807
56874
|
}
|
|
56808
56875
|
var WARN;
|
|
56809
56876
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
56810
|
-
this.
|
|
56877
|
+
this.v9d_1 = loggerCallback;
|
|
56811
56878
|
}
|
|
56812
56879
|
protoOf(LoggerCallbacksWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
56813
|
-
this.
|
|
56880
|
+
this.v9d_1('debug', tag, message, null, payload);
|
|
56814
56881
|
};
|
|
56815
56882
|
protoOf(LoggerCallbacksWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
56816
|
-
this.
|
|
56883
|
+
this.v9d_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
56817
56884
|
};
|
|
56818
56885
|
protoOf(LoggerCallbacksWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
56819
|
-
this.
|
|
56886
|
+
this.v9d_1('debug', tag, message, null, payload);
|
|
56820
56887
|
};
|
|
56821
56888
|
protoOf(LoggerCallbacksWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
56822
|
-
this.
|
|
56889
|
+
this.v9d_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
56823
56890
|
};
|
|
56824
56891
|
protoOf(LoggerCallbacksWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
56825
|
-
this.
|
|
56892
|
+
this.v9d_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
56826
56893
|
};
|
|
56827
56894
|
function ParserHelper() {
|
|
56828
56895
|
}
|
|
56829
56896
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
56830
|
-
this.
|
|
56831
|
-
this.
|
|
56897
|
+
this.w9d_1 = json;
|
|
56898
|
+
this.x9d_1 = encoderDecoderProvider;
|
|
56832
56899
|
}
|
|
56833
56900
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
56834
|
-
return this.
|
|
56901
|
+
return this.x9d_1.k8i(mapToDto_20(action));
|
|
56835
56902
|
};
|
|
56836
56903
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
56837
|
-
return mapFromDto_16(this.
|
|
56904
|
+
return mapFromDto_16(this.x9d_1.o8i(json), fromPlayerId);
|
|
56838
56905
|
};
|
|
56839
56906
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
56840
|
-
return this.
|
|
56907
|
+
return this.x9d_1.m8i(mapToDto_74(action));
|
|
56841
56908
|
};
|
|
56842
56909
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
56843
56910
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56844
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
56911
|
+
var this_0 = mapFromClientDtoListWithPayload(this.x9d_1.p8i(json), playerId, engine);
|
|
56845
56912
|
return copyToArray(this_0);
|
|
56846
56913
|
};
|
|
56847
56914
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
56848
|
-
var tmp0 = this.
|
|
56915
|
+
var tmp0 = this.w9d_1;
|
|
56849
56916
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56850
56917
|
var value = mapToDto_31(round);
|
|
56851
56918
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56856,7 +56923,7 @@
|
|
|
56856
56923
|
return tmp0.ep(tmp$ret$1, value);
|
|
56857
56924
|
};
|
|
56858
56925
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
56859
|
-
var tmp0 = this.
|
|
56926
|
+
var tmp0 = this.w9d_1;
|
|
56860
56927
|
// Inline function 'kotlin.collections.map' call
|
|
56861
56928
|
var this_0 = round.items;
|
|
56862
56929
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56878,7 +56945,7 @@
|
|
|
56878
56945
|
return tmp0.ep(tmp$ret$4, destination);
|
|
56879
56946
|
};
|
|
56880
56947
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
56881
|
-
var tmp0 = this.
|
|
56948
|
+
var tmp0 = this.w9d_1;
|
|
56882
56949
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56883
56950
|
var value = mapToDto_33(metadata);
|
|
56884
56951
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56889,7 +56956,7 @@
|
|
|
56889
56956
|
return tmp0.ep(tmp$ret$1, value);
|
|
56890
56957
|
};
|
|
56891
56958
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
56892
|
-
var tmp0 = this.
|
|
56959
|
+
var tmp0 = this.w9d_1;
|
|
56893
56960
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56894
56961
|
var value = mapToDto_59(config);
|
|
56895
56962
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56900,7 +56967,7 @@
|
|
|
56900
56967
|
return tmp0.ep(tmp$ret$1, value);
|
|
56901
56968
|
};
|
|
56902
56969
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
56903
|
-
var tmp0 = this.
|
|
56970
|
+
var tmp0 = this.w9d_1;
|
|
56904
56971
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56905
56972
|
var value = mapToDto_95(transition);
|
|
56906
56973
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56912,7 +56979,7 @@
|
|
|
56912
56979
|
};
|
|
56913
56980
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
56914
56981
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56915
|
-
var this_0 = this.
|
|
56982
|
+
var this_0 = this.w9d_1;
|
|
56916
56983
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56917
56984
|
var this_1 = this_0.ds();
|
|
56918
56985
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -56923,7 +56990,7 @@
|
|
|
56923
56990
|
};
|
|
56924
56991
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
56925
56992
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56926
|
-
var this_0 = this.
|
|
56993
|
+
var this_0 = this.w9d_1;
|
|
56927
56994
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56928
56995
|
var this_1 = this_0.ds();
|
|
56929
56996
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -56933,7 +57000,7 @@
|
|
|
56933
57000
|
return mapFromDto_97(tmp$ret$2);
|
|
56934
57001
|
};
|
|
56935
57002
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
56936
|
-
var tmp0 = this.
|
|
57003
|
+
var tmp0 = this.w9d_1;
|
|
56937
57004
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56938
57005
|
var value = mapToDto_126(table);
|
|
56939
57006
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56944,11 +57011,11 @@
|
|
|
56944
57011
|
return tmp0.ep(tmp$ret$1, value);
|
|
56945
57012
|
};
|
|
56946
57013
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
56947
|
-
return mapFromDto_63(this.
|
|
57014
|
+
return mapFromDto_63(this.x9d_1.n8i(json));
|
|
56948
57015
|
};
|
|
56949
57016
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
56950
57017
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56951
|
-
var this_0 = this.
|
|
57018
|
+
var this_0 = this.w9d_1;
|
|
56952
57019
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56953
57020
|
var this_1 = this_0.ds();
|
|
56954
57021
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -56961,16 +57028,16 @@
|
|
|
56961
57028
|
function RatingHelper() {
|
|
56962
57029
|
}
|
|
56963
57030
|
function RatingHelperImpl(userRatingInteractor) {
|
|
56964
|
-
this.
|
|
57031
|
+
this.y9d_1 = userRatingInteractor;
|
|
56965
57032
|
}
|
|
56966
57033
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
56967
|
-
return this.
|
|
57034
|
+
return this.y9d_1.k8p(league, rating);
|
|
56968
57035
|
};
|
|
56969
57036
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
56970
|
-
return this.
|
|
57037
|
+
return this.y9d_1.m8p(rating);
|
|
56971
57038
|
};
|
|
56972
57039
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
56973
|
-
return this.
|
|
57040
|
+
return this.y9d_1.l8p();
|
|
56974
57041
|
};
|
|
56975
57042
|
function engineHelpersModule() {
|
|
56976
57043
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -57075,14 +57142,14 @@
|
|
|
57075
57142
|
return new GameResourcesImpl();
|
|
57076
57143
|
}
|
|
57077
57144
|
function _get_logger__rkp4sl_3($this) {
|
|
57078
|
-
var tmp0 = $this.
|
|
57145
|
+
var tmp0 = $this.a9e_1;
|
|
57079
57146
|
var tmp = KProperty1;
|
|
57080
57147
|
// Inline function 'kotlin.getValue' call
|
|
57081
57148
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
57082
57149
|
return tmp0.w();
|
|
57083
57150
|
}
|
|
57084
57151
|
function _get_di__ndbzja($this) {
|
|
57085
|
-
var tmp0 = $this.
|
|
57152
|
+
var tmp0 = $this.b9e_1;
|
|
57086
57153
|
var tmp = KProperty1;
|
|
57087
57154
|
// Inline function 'kotlin.getValue' call
|
|
57088
57155
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -57091,11 +57158,11 @@
|
|
|
57091
57158
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
57092
57159
|
return function () {
|
|
57093
57160
|
var tmp;
|
|
57094
|
-
if (this$0.
|
|
57161
|
+
if (this$0.z9d_1 == null) {
|
|
57095
57162
|
tmp = null;
|
|
57096
57163
|
} else {
|
|
57097
57164
|
// Inline function 'kotlin.let' call
|
|
57098
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
57165
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.z9d_1)]));
|
|
57099
57166
|
}
|
|
57100
57167
|
var tmp1_elvis_lhs = tmp;
|
|
57101
57168
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -57185,11 +57252,11 @@
|
|
|
57185
57252
|
}
|
|
57186
57253
|
function EngineHelpersFactory(loggerCallback) {
|
|
57187
57254
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
57188
|
-
this.
|
|
57255
|
+
this.z9d_1 = loggerCallback;
|
|
57189
57256
|
var tmp = this;
|
|
57190
|
-
tmp.
|
|
57257
|
+
tmp.a9e_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
57191
57258
|
var tmp_0 = this;
|
|
57192
|
-
tmp_0.
|
|
57259
|
+
tmp_0.b9e_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
57193
57260
|
var tmp_1 = this;
|
|
57194
57261
|
// Inline function 'org.kodein.di.instance' call
|
|
57195
57262
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -57198,7 +57265,7 @@
|
|
|
57198
57265
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
57199
57266
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
57200
57267
|
var tmp_4 = KProperty1;
|
|
57201
|
-
tmp_1.
|
|
57268
|
+
tmp_1.c9e_1 = tmp_3.u64(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
57202
57269
|
var tmp_5 = this;
|
|
57203
57270
|
// Inline function 'org.kodein.di.instance' call
|
|
57204
57271
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -57207,7 +57274,7 @@
|
|
|
57207
57274
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
57208
57275
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
57209
57276
|
var tmp_8 = KProperty1;
|
|
57210
|
-
tmp_5.
|
|
57277
|
+
tmp_5.d9e_1 = tmp_7.u64(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
57211
57278
|
var tmp_9 = this;
|
|
57212
57279
|
// Inline function 'org.kodein.di.instance' call
|
|
57213
57280
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -57216,7 +57283,7 @@
|
|
|
57216
57283
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
57217
57284
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
57218
57285
|
var tmp_12 = KProperty1;
|
|
57219
|
-
tmp_9.
|
|
57286
|
+
tmp_9.e9e_1 = tmp_11.u64(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
57220
57287
|
var tmp_13 = this;
|
|
57221
57288
|
// Inline function 'org.kodein.di.instance' call
|
|
57222
57289
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -57225,31 +57292,31 @@
|
|
|
57225
57292
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
57226
57293
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
57227
57294
|
var tmp_16 = KProperty1;
|
|
57228
|
-
tmp_13.
|
|
57295
|
+
tmp_13.f9e_1 = tmp_15.u64(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
57229
57296
|
}
|
|
57230
|
-
protoOf(EngineHelpersFactory).
|
|
57231
|
-
var tmp0 = this.
|
|
57297
|
+
protoOf(EngineHelpersFactory).g9e = function () {
|
|
57298
|
+
var tmp0 = this.c9e_1;
|
|
57232
57299
|
var tmp = KProperty1;
|
|
57233
57300
|
// Inline function 'kotlin.getValue' call
|
|
57234
57301
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
57235
57302
|
return tmp0.w();
|
|
57236
57303
|
};
|
|
57237
|
-
protoOf(EngineHelpersFactory).
|
|
57238
|
-
var tmp0 = this.
|
|
57304
|
+
protoOf(EngineHelpersFactory).h9e = function () {
|
|
57305
|
+
var tmp0 = this.d9e_1;
|
|
57239
57306
|
var tmp = KProperty1;
|
|
57240
57307
|
// Inline function 'kotlin.getValue' call
|
|
57241
57308
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
57242
57309
|
return tmp0.w();
|
|
57243
57310
|
};
|
|
57244
|
-
protoOf(EngineHelpersFactory).
|
|
57245
|
-
var tmp0 = this.
|
|
57311
|
+
protoOf(EngineHelpersFactory).i9e = function () {
|
|
57312
|
+
var tmp0 = this.e9e_1;
|
|
57246
57313
|
var tmp = KProperty1;
|
|
57247
57314
|
// Inline function 'kotlin.getValue' call
|
|
57248
57315
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
57249
57316
|
return tmp0.w();
|
|
57250
57317
|
};
|
|
57251
|
-
protoOf(EngineHelpersFactory).
|
|
57252
|
-
var tmp0 = this.
|
|
57318
|
+
protoOf(EngineHelpersFactory).j9e = function () {
|
|
57319
|
+
var tmp0 = this.f9e_1;
|
|
57253
57320
|
var tmp = KProperty1;
|
|
57254
57321
|
// Inline function 'kotlin.getValue' call
|
|
57255
57322
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -57943,7 +58010,7 @@
|
|
|
57943
58010
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
57944
58011
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
57945
58012
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
57946
|
-
protoOf(FileLoggerOutputImpl).
|
|
58013
|
+
protoOf(FileLoggerOutputImpl).w94 = observe$default;
|
|
57947
58014
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
57948
58015
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
57949
58016
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -57963,10 +58030,10 @@
|
|
|
57963
58030
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
57964
58031
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
57965
58032
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
57966
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
57967
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
57968
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
57969
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
58033
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).g9e);
|
|
58034
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).h9e);
|
|
58035
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).i9e);
|
|
58036
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).j9e);
|
|
57970
58037
|
//endregion
|
|
57971
58038
|
//region block: init
|
|
57972
58039
|
Companion_instance_5 = new Companion_0();
|