client_plugin_logic_deb 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.
Files changed (37) hide show
  1. package/Kosi-Kaverit-kaverit.js +13 -13
  2. package/Kosi-Kodein-kodein-di.js +35 -35
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +90 -90
  4. package/Logic_Debertz-client_plugin.js +2079 -2065
  5. package/Logic_Debertz-client_plugin.js.map +1 -1
  6. package/Logic_Debertz-core.js +59 -59
  7. package/Logic_Debertz-engine.js +724 -657
  8. package/Logic_Debertz-engine.js.map +1 -1
  9. package/Logic_Debertz-game_client.js +5861 -5847
  10. package/Logic_Debertz-game_client.js.map +1 -1
  11. package/Logic_Debertz-game_server.js +847 -833
  12. package/Logic_Debertz-game_server.js.map +1 -1
  13. package/error-library-error.js +5 -5
  14. package/kotlin-kotlin-stdlib.js +287 -274
  15. package/kotlin-kotlin-stdlib.js.map +1 -1
  16. package/kotlinx-atomicfu.js +9 -9
  17. package/kotlinx-coroutines-core.js +74 -74
  18. package/kotlinx-io-kotlinx-io-core.js +30 -30
  19. package/kotlinx-serialization-kotlinx-serialization-core.js +77 -77
  20. package/kotlinx-serialization-kotlinx-serialization-json.js +89 -89
  21. package/ktor-ktor-client-content-negotiation.js +22 -22
  22. package/ktor-ktor-client-core.js +64 -64
  23. package/ktor-ktor-client-logging.js +23 -23
  24. package/ktor-ktor-events.js +5 -5
  25. package/ktor-ktor-http.js +70 -70
  26. package/ktor-ktor-io.js +50 -50
  27. package/ktor-ktor-serialization-kotlinx.js +15 -15
  28. package/ktor-ktor-serialization.js +15 -15
  29. package/ktor-ktor-utils.js +46 -46
  30. package/ktor-ktor-websockets.js +13 -13
  31. package/package.json +1 -1
  32. package/random-library-crypto-rand.js +11 -11
  33. package/random-library-secure-random.js +5 -5
  34. package/raspberry-cardgame-lib-core.js +35 -35
  35. package/raspberry-cardgame-lib-logger.js +13 -13
  36. package/raspberry-cardgame-lib-random.js +39 -39
  37. package/uuid.js +12 -12
@@ -43,106 +43,106 @@
43
43
  'use strict';
44
44
  //region block: imports
45
45
  var imul = Math.imul;
46
- var Long = kotlin_kotlin.$_$.jh;
47
- var protoOf = kotlin_kotlin.$_$.md;
48
- var initMetadataForCompanion = kotlin_kotlin.$_$.nc;
46
+ var Long = kotlin_kotlin.$_$.kh;
47
+ var protoOf = kotlin_kotlin.$_$.nd;
48
+ var initMetadataForCompanion = kotlin_kotlin.$_$.oc;
49
49
  var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.f2;
50
- var getKClass = kotlin_kotlin.$_$.ge;
51
- var arrayOf = kotlin_kotlin.$_$.di;
52
- var createKType = kotlin_kotlin.$_$.ee;
50
+ var getKClass = kotlin_kotlin.$_$.he;
51
+ var arrayOf = kotlin_kotlin.$_$.ei;
52
+ var createKType = kotlin_kotlin.$_$.fe;
53
53
  var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
54
- var THROW_CCE = kotlin_kotlin.$_$.ph;
54
+ var THROW_CCE = kotlin_kotlin.$_$.qh;
55
55
  var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
56
- var isInterface = kotlin_kotlin.$_$.ad;
56
+ var isInterface = kotlin_kotlin.$_$.bd;
57
57
  var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
58
- var KProperty1 = kotlin_kotlin.$_$.ke;
59
- var getPropertyCallableRef = kotlin_kotlin.$_$.jc;
58
+ var KProperty1 = kotlin_kotlin.$_$.le;
59
+ var getPropertyCallableRef = kotlin_kotlin.$_$.kc;
60
60
  var JobsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
61
- var initMetadataForClass = kotlin_kotlin.$_$.mc;
61
+ var initMetadataForClass = kotlin_kotlin.$_$.nc;
62
62
  var VOID = kotlin_kotlin.$_$.b;
63
63
  var listOf = kotlin_kotlin.$_$.i8;
64
- var plus = kotlin_kotlin.$_$.t8;
64
+ var plus = kotlin_kotlin.$_$.u8;
65
65
  var copyToArray = kotlin_kotlin.$_$.a7;
66
66
  var combineReducers = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
67
67
  var applyCatcher = kotlin_io_raspberryapps_game_engine_core.$_$.a3;
68
68
  var applyMiddleware = kotlin_io_raspberryapps_game_engine_core.$_$.b3;
69
69
  var compose = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
70
70
  var createStore = kotlin_io_raspberryapps_game_engine_core.$_$.m3;
71
- var CoroutineImpl = kotlin_kotlin.$_$.sa;
71
+ var CoroutineImpl = kotlin_kotlin.$_$.ta;
72
72
  var Unit_instance = kotlin_kotlin.$_$.g5;
73
73
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1;
74
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.da;
75
- var initMetadataForLambda = kotlin_kotlin.$_$.qc;
74
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ea;
75
+ var initMetadataForLambda = kotlin_kotlin.$_$.rc;
76
76
  var emptyList = kotlin_kotlin.$_$.f7;
77
77
  var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
78
- var lazy = kotlin_kotlin.$_$.mi;
79
- var initMetadataForInterface = kotlin_kotlin.$_$.pc;
78
+ var lazy = kotlin_kotlin.$_$.ni;
79
+ var initMetadataForInterface = kotlin_kotlin.$_$.qc;
80
80
  var listOf_0 = kotlin_kotlin.$_$.j8;
81
81
  var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.t4;
82
- var createInvariantKTypeProjection = kotlin_kotlin.$_$.de;
82
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.ee;
83
83
  var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d3;
84
84
  var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
85
85
  var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
86
- var getKClassFromExpression = kotlin_kotlin.$_$.fe;
86
+ var getKClassFromExpression = kotlin_kotlin.$_$.ge;
87
87
  var contentEquals = kotlin_kotlin.$_$.m6;
88
- var getBooleanHashCode = kotlin_kotlin.$_$.hc;
88
+ var getBooleanHashCode = kotlin_kotlin.$_$.ic;
89
89
  var contentHashCode = kotlin_kotlin.$_$.p6;
90
- var toString = kotlin_kotlin.$_$.pd;
91
- var defineProp = kotlin_kotlin.$_$.ec;
92
- var getNumberHashCode = kotlin_kotlin.$_$.ic;
93
- var equals = kotlin_kotlin.$_$.fc;
90
+ var toString = kotlin_kotlin.$_$.qd;
91
+ var defineProp = kotlin_kotlin.$_$.fc;
92
+ var getNumberHashCode = kotlin_kotlin.$_$.jc;
93
+ var equals = kotlin_kotlin.$_$.gc;
94
94
  var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
95
- var THROW_IAE = kotlin_kotlin.$_$.qh;
95
+ var THROW_IAE = kotlin_kotlin.$_$.rh;
96
96
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
97
- var lazy_0 = kotlin_kotlin.$_$.li;
97
+ var lazy_0 = kotlin_kotlin.$_$.mi;
98
98
  var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
99
- var Enum = kotlin_kotlin.$_$.eh;
100
- var FunctionAdapter = kotlin_kotlin.$_$.sb;
101
- var Comparator = kotlin_kotlin.$_$.bh;
102
- var hashCode = kotlin_kotlin.$_$.lc;
103
- var compareValues = kotlin_kotlin.$_$.ba;
104
- var toList = kotlin_kotlin.$_$.o9;
99
+ var Enum = kotlin_kotlin.$_$.fh;
100
+ var FunctionAdapter = kotlin_kotlin.$_$.tb;
101
+ var Comparator = kotlin_kotlin.$_$.ch;
102
+ var hashCode = kotlin_kotlin.$_$.mc;
103
+ var compareValues = kotlin_kotlin.$_$.ca;
104
+ var toList = kotlin_kotlin.$_$.p9;
105
105
  var collectionSizeOrDefault = kotlin_kotlin.$_$.k6;
106
106
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
107
- var sortedWith = kotlin_kotlin.$_$.f9;
107
+ var sortedWith = kotlin_kotlin.$_$.g9;
108
108
  var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.g2;
109
109
  var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.l2;
110
110
  var contentToString = kotlin_kotlin.$_$.q6;
111
- var Duration = kotlin_kotlin.$_$.sg;
111
+ var Duration = kotlin_kotlin.$_$.tg;
112
112
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
113
113
  var Collection = kotlin_kotlin.$_$.i5;
114
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.ni;
115
- var getStringHashCode = kotlin_kotlin.$_$.kc;
116
- var enumEntries = kotlin_kotlin.$_$.ua;
114
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.oi;
115
+ var getStringHashCode = kotlin_kotlin.$_$.lc;
116
+ var enumEntries = kotlin_kotlin.$_$.va;
117
117
  var previousToOrNull = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
118
118
  var nextToOrNull = kotlin_io_raspberryapps_game_engine_core.$_$.y3;
119
119
  var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w1;
120
120
  var System_instance = kotlin_kotlin.$_$.v4;
121
121
  var PlayerIdContract = kotlin_io_raspberryapps_game_engine_core.$_$.g;
122
- var toString_0 = kotlin_kotlin.$_$.ti;
123
- var Comparable = kotlin_kotlin.$_$.ah;
122
+ var toString_0 = kotlin_kotlin.$_$.ui;
123
+ var Comparable = kotlin_kotlin.$_$.bh;
124
124
  var listOfNotNull = kotlin_kotlin.$_$.h8;
125
125
  var joinToString = kotlin_kotlin.$_$.y7;
126
126
  var get_amountOfCards = kotlin_io_raspberryapps_game_engine_core.$_$.e;
127
127
  var Player = kotlin_io_raspberryapps_game_engine_core.$_$.k;
128
128
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
129
- var objectCreate = kotlin_kotlin.$_$.ld;
130
- var single = kotlin_kotlin.$_$.d9;
129
+ var objectCreate = kotlin_kotlin.$_$.md;
130
+ var single = kotlin_kotlin.$_$.e9;
131
131
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
132
132
  var mapCapacity = kotlin_kotlin.$_$.k8;
133
133
  var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.p;
134
- var toMutableMap = kotlin_kotlin.$_$.t9;
134
+ var toMutableMap = kotlin_kotlin.$_$.u9;
135
135
  var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.d2;
136
- var toSet = kotlin_kotlin.$_$.v9;
137
- var sorted = kotlin_kotlin.$_$.g9;
136
+ var toSet = kotlin_kotlin.$_$.w9;
137
+ var sorted = kotlin_kotlin.$_$.h9;
138
138
  var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
139
139
  var last = kotlin_kotlin.$_$.e8;
140
- var sum = kotlin_kotlin.$_$.h9;
140
+ var sum = kotlin_kotlin.$_$.i9;
141
141
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
142
142
  var first = kotlin_kotlin.$_$.n7;
143
143
  var first_0 = kotlin_kotlin.$_$.p7;
144
144
  var contains = kotlin_kotlin.$_$.l6;
145
- var initMetadataForObject = kotlin_kotlin.$_$.rc;
145
+ var initMetadataForObject = kotlin_kotlin.$_$.sc;
146
146
  var checkIndexOverflow = kotlin_kotlin.$_$.j6;
147
147
  var getPoint = kotlin_io_raspberryapps_game_engine_core.$_$.q1;
148
148
  var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.i6;
@@ -150,21 +150,21 @@
150
150
  var MechanicException = kotlin_io_raspberryapps_game_engine_core.$_$.b;
151
151
  var asJsReadonlyArrayView = kotlin_kotlin.$_$.o5;
152
152
  var KtList = kotlin_kotlin.$_$.p5;
153
- var ensureNotNull = kotlin_kotlin.$_$.gi;
153
+ var ensureNotNull = kotlin_kotlin.$_$.hi;
154
154
  var GameCard = kotlin_io_raspberryapps_cardgame_core.$_$.r;
155
155
  var firstOrNull = kotlin_kotlin.$_$.k7;
156
156
  var Companion_instance = kotlin_io_raspberryapps_cardgame_core.$_$.n;
157
157
  var flatten = kotlin_kotlin.$_$.q7;
158
- var to = kotlin_kotlin.$_$.ui;
158
+ var to = kotlin_kotlin.$_$.vi;
159
159
  var mapOf = kotlin_kotlin.$_$.l8;
160
160
  var PlayerIdOrderComparator = kotlin_io_raspberryapps_game_engine_core.$_$.h;
161
161
  var getValue = kotlin_kotlin.$_$.t7;
162
162
  var PlayerIdContractOrderComparator = kotlin_io_raspberryapps_game_engine_core.$_$.f;
163
- var toMap = kotlin_kotlin.$_$.r9;
163
+ var toMap = kotlin_kotlin.$_$.s9;
164
164
  var asSequence = kotlin_kotlin.$_$.e6;
165
- var filter = kotlin_kotlin.$_$.me;
166
- var map = kotlin_kotlin.$_$.qe;
167
- var firstOrNull_0 = kotlin_kotlin.$_$.ne;
165
+ var filter = kotlin_kotlin.$_$.ne;
166
+ var map = kotlin_kotlin.$_$.re;
167
+ var firstOrNull_0 = kotlin_kotlin.$_$.oe;
168
168
  var CardIndexComparator_instance = kotlin_io_raspberryapps_cardgame_core.$_$.l;
169
169
  var lastOrNull = kotlin_kotlin.$_$.d8;
170
170
  var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
@@ -195,7 +195,7 @@
195
195
  var toDomainEnum = kotlin_io_raspberryapps_game_engine_core.$_$.e4;
196
196
  var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.d4;
197
197
  var mapOf_0 = kotlin_kotlin.$_$.m8;
198
- var coerceIn = kotlin_kotlin.$_$.xd;
198
+ var coerceIn = kotlin_kotlin.$_$.yd;
199
199
  var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.z1;
200
200
  var mapToDto_0 = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
201
201
  var mapToDto_1 = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
@@ -203,25 +203,25 @@
203
203
  var mapFromDto_1 = kotlin_io_raspberryapps_game_engine_core.$_$.c1;
204
204
  var Companion_getInstance_3 = kotlin_kotlin.$_$.x4;
205
205
  var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.h2;
206
- var equalsLong = kotlin_kotlin.$_$.gb;
206
+ var equalsLong = kotlin_kotlin.$_$.hb;
207
207
  var Companion_getInstance_4 = kotlin_kotlin.$_$.w4;
208
208
  var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.c;
209
- var toDuration = kotlin_kotlin.$_$.vg;
209
+ var toDuration = kotlin_kotlin.$_$.wg;
210
210
  var getOrNull = kotlin_kotlin.$_$.s7;
211
- var coerceAtLeast = kotlin_kotlin.$_$.ud;
211
+ var coerceAtLeast = kotlin_kotlin.$_$.vd;
212
212
  var InterceptableAction = kotlin_io_raspberryapps_game_engine_core.$_$.u2;
213
- var toIntOrNull = kotlin_kotlin.$_$.fg;
213
+ var toIntOrNull = kotlin_kotlin.$_$.gg;
214
214
  var mapFromDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.z;
215
215
  var listOfNotNull_0 = kotlin_kotlin.$_$.g8;
216
216
  var mapToDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.g1;
217
- var singleOrNull = kotlin_kotlin.$_$.c9;
217
+ var singleOrNull = kotlin_kotlin.$_$.d9;
218
218
  var RulesDto = kotlin_io_raspberryapps_game_engine_core.$_$.l1;
219
219
  var mapToDto_3 = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
220
220
  var mapFromDto_3 = kotlin_io_raspberryapps_game_engine_core.$_$.x;
221
221
  var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.t5;
222
222
  var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.r5;
223
223
  var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v4;
224
- var toDuration_0 = kotlin_kotlin.$_$.wg;
224
+ var toDuration_0 = kotlin_kotlin.$_$.xg;
225
225
  var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u4;
226
226
  var $serializer_getInstance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.x5;
227
227
  var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
@@ -232,10 +232,10 @@
232
232
  var $serializer_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.y5;
233
233
  var InstantSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
234
234
  var PlayerState = kotlin_io_raspberryapps_game_engine_core.$_$.j;
235
- var charSequenceLength = kotlin_kotlin.$_$.bc;
235
+ var charSequenceLength = kotlin_kotlin.$_$.cc;
236
236
  var LoggerPayload = kotlin_io_raspberryapps_cardgame_logger.$_$.e;
237
237
  var CardGrowthComparator = kotlin_io_raspberryapps_game_engine_core.$_$.n1;
238
- var take = kotlin_kotlin.$_$.j9;
238
+ var take = kotlin_kotlin.$_$.k9;
239
239
  var CardName_ACE_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.a;
240
240
  var CardName_KING_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.d;
241
241
  var CardName_QUEEN_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.f;
@@ -269,46 +269,47 @@
269
269
  var CombinationsCheckerProvider = kotlin_io_raspberryapps_cardgame_core.$_$.b1;
270
270
  var CombinationsCheckerProviderImpl = kotlin_io_raspberryapps_cardgame_core.$_$.a1;
271
271
  var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
272
- var toList_0 = kotlin_kotlin.$_$.n9;
273
- var plus_0 = kotlin_kotlin.$_$.u8;
272
+ var toList_0 = kotlin_kotlin.$_$.o9;
273
+ var plus_0 = kotlin_kotlin.$_$.v8;
274
274
  var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.s;
275
- var toMutableSet = kotlin_kotlin.$_$.u9;
275
+ var toMutableSet = kotlin_kotlin.$_$.v9;
276
276
  var filterByCardName = kotlin_io_raspberryapps_cardgame_core.$_$.x;
277
277
  var first_1 = kotlin_kotlin.$_$.o7;
278
- var setOf = kotlin_kotlin.$_$.a9;
279
- var setOf_0 = kotlin_kotlin.$_$.b9;
278
+ var setOf = kotlin_kotlin.$_$.b9;
279
+ var setOf_0 = kotlin_kotlin.$_$.c9;
280
280
  var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.u1;
281
- var compareTo = kotlin_kotlin.$_$.dc;
281
+ var compareTo = kotlin_kotlin.$_$.ec;
282
282
  var distributeCardsBottom = kotlin_io_raspberryapps_cardgame_core.$_$.v;
283
283
  var distributeCardsTop = kotlin_io_raspberryapps_cardgame_core.$_$.w;
284
- var toMutableList = kotlin_kotlin.$_$.s9;
284
+ var toMutableList = kotlin_kotlin.$_$.t9;
285
285
  var CardsRandomProvider_CUSTOM_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.i;
286
286
  var CardsRandomProvider_RANDOM_ORG_SIGNED_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.j;
287
287
  var CardsRandomProvider_RANDOM_ORG_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.k;
288
- var initMetadataForCoroutine = kotlin_kotlin.$_$.oc;
288
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.pc;
289
289
  var get_indices = kotlin_kotlin.$_$.x7;
290
- var abs = kotlin_kotlin.$_$.qd;
291
- var zip = kotlin_kotlin.$_$.y9;
290
+ var abs = kotlin_kotlin.$_$.rd;
291
+ var zip = kotlin_kotlin.$_$.z9;
292
292
  var Team = kotlin_io_raspberryapps_game_engine_core.$_$.l;
293
293
  var getValueInHand = kotlin_io_raspberryapps_game_engine_core.$_$.r1;
294
294
  var AgentType_BOT_NATIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p4;
295
295
  var AgentType_BOT_REPLACEMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.q4;
296
- var numberToInt = kotlin_kotlin.$_$.kd;
296
+ var maxOrNull = kotlin_kotlin.$_$.n8;
297
+ var numberToInt = kotlin_kotlin.$_$.ld;
297
298
  var checkCountOverflow = kotlin_kotlin.$_$.i6;
298
- var roundToInt = kotlin_kotlin.$_$.rd;
299
+ var roundToInt = kotlin_kotlin.$_$.sd;
299
300
  var average = kotlin_kotlin.$_$.f6;
300
301
  var mapToFinishReason = kotlin_io_raspberryapps_game_engine_core.$_$.s;
301
302
  var StopTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
302
303
  var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j5;
303
304
  var StartTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.w2;
304
305
  var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t4;
305
- var fromInt = kotlin_kotlin.$_$.hb;
306
+ var fromInt = kotlin_kotlin.$_$.ib;
306
307
  var PlayerReturnsReason = kotlin_io_raspberryapps_game_engine_core.$_$.z1;
307
308
  var nextToPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.u;
308
309
  var previousPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.v;
309
310
  var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.d6;
310
- var contains_0 = kotlin_kotlin.$_$.te;
311
- var split = kotlin_kotlin.$_$.uf;
311
+ var contains_0 = kotlin_kotlin.$_$.ue;
312
+ var split = kotlin_kotlin.$_$.vf;
312
313
  var UserInfoData = kotlin_io_raspberryapps_cardgame_random.$_$.c;
313
314
  var CardDeckRequestUserData = kotlin_io_raspberryapps_cardgame_random.$_$.a;
314
315
  var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.d3;
@@ -341,12 +342,12 @@
341
342
  var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
342
343
  var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
343
344
  var filterPlayerTurn = kotlin_io_raspberryapps_game_engine_core.$_$.o;
344
- var Result = kotlin_kotlin.$_$.nh;
345
+ var Result = kotlin_kotlin.$_$.oh;
345
346
  var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
346
347
  var LoggerOutputDataDto = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
347
348
  var Reason_FINISHED_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.h5;
348
349
  var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.v1;
349
- var compare = kotlin_kotlin.$_$.bb;
350
+ var compare = kotlin_kotlin.$_$.cb;
350
351
  var Default_getInstance = kotlin_kotlin.$_$.s4;
351
352
  var TimerTickAction = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
352
353
  var PlayerConnectionState_TIMEOUT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.x4;
@@ -360,16 +361,16 @@
360
361
  var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.f;
361
362
  var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.g3;
362
363
  var TimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.y2;
363
- var minus = kotlin_kotlin.$_$.n8;
364
+ var minus = kotlin_kotlin.$_$.o8;
364
365
  var updateOrAddItems = kotlin_io_raspberryapps_game_engine_core.$_$.h4;
365
366
  var get_byIdPlayerPredicate = kotlin_io_raspberryapps_game_engine_core.$_$.m;
366
367
  var updateItem = kotlin_io_raspberryapps_game_engine_core.$_$.f4;
367
- var toDuration_1 = kotlin_kotlin.$_$.ug;
368
+ var toDuration_1 = kotlin_kotlin.$_$.vg;
368
369
  var updated = kotlin_io_raspberryapps_game_engine_core.$_$.i4;
369
370
  var PlayerWaitingState_IN_PROGRESS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z4;
370
371
  var getProgress = kotlin_io_raspberryapps_game_engine_core.$_$.r;
371
- var takeLast = kotlin_kotlin.$_$.i9;
372
- var plus_1 = kotlin_kotlin.$_$.q8;
372
+ var takeLast = kotlin_kotlin.$_$.j9;
373
+ var plus_1 = kotlin_kotlin.$_$.r8;
373
374
  var updateLastItem = kotlin_io_raspberryapps_game_engine_core.$_$.g4;
374
375
  var d = kotlin_io_raspberryapps_cardgame_logger.$_$.h;
375
376
  var e = kotlin_io_raspberryapps_cardgame_logger.$_$.i;
@@ -377,23 +378,23 @@
377
378
  var v = kotlin_io_raspberryapps_cardgame_logger.$_$.k;
378
379
  var w = kotlin_io_raspberryapps_cardgame_logger.$_$.l;
379
380
  var LoggerOutput = kotlin_io_raspberryapps_cardgame_logger.$_$.a;
381
+ var get_entries = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
382
+ var LoggerEnabledTrigger = kotlin_io_raspberryapps_cardgame_logger.$_$.d;
380
383
  var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
381
384
  var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
382
385
  var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
383
386
  var LogType_DEBUG_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k5;
384
387
  var LogType_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.l5;
385
- var stackTraceToString = kotlin_kotlin.$_$.qi;
386
- var take_0 = kotlin_kotlin.$_$.bg;
388
+ var stackTraceToString = kotlin_kotlin.$_$.ri;
389
+ var take_0 = kotlin_kotlin.$_$.cg;
387
390
  var LogType_INFO_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m5;
388
391
  var LogType_VERBOSE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n5;
389
392
  var LogType_WARN_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.o5;
390
- var get_entries = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
391
- var LoggerEnabledTrigger = kotlin_io_raspberryapps_cardgame_logger.$_$.d;
392
- var isArray = kotlin_kotlin.$_$.sc;
393
+ var isArray = kotlin_kotlin.$_$.tc;
393
394
  var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.x3;
394
395
  var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.d;
395
396
  var generateMsg = kotlin_io_raspberryapps_cardgame_logger.$_$.b;
396
- var mutableListOf = kotlin_kotlin.$_$.o8;
397
+ var mutableListOf = kotlin_kotlin.$_$.p8;
397
398
  var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
398
399
  var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
399
400
  var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
@@ -1370,12 +1371,6 @@
1370
1371
  initMetadataForClass(setPlayerTurnReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
1371
1372
  initMetadataForCompanion(Companion_194);
1372
1373
  initMetadataForClass(CallbackWrapperLoggerOutput, 'CallbackWrapperLoggerOutput', VOID, VOID, [LoggerOutput]);
1373
- initMetadataForLambda(FileLoggerOutputImpl$observe$o$collect$slambda, CoroutineImpl, VOID, [1]);
1374
- initMetadataForCoroutine($collectCOROUTINE$, CoroutineImpl);
1375
- initMetadataForClass(LoggerModel, 'LoggerModel', LoggerModel);
1376
- initMetadataForCompanion(Companion_195);
1377
- initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
1378
- initMetadataForClass(FileLoggerOutputImpl$observe$$inlined$filter$1, VOID, VOID, VOID, [Flow], [1]);
1379
1374
  function observe$default(loggerKey, types, $super) {
1380
1375
  var tmp;
1381
1376
  if (types === VOID) {
@@ -1386,21 +1381,27 @@
1386
1381
  tmp = types;
1387
1382
  }
1388
1383
  types = tmp;
1389
- return $super === VOID ? this.s9v(loggerKey, types) : $super.s9v.call(this, loggerKey, types);
1384
+ return $super === VOID ? this.e9u(loggerKey, types) : $super.e9u.call(this, loggerKey, types);
1390
1385
  }
1391
1386
  initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
1392
- initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
1387
+ initMetadataForLambda(FileLoggerOutputImpl$observe$o$collect$slambda, CoroutineImpl, VOID, [1]);
1388
+ initMetadataForCoroutine($collectCOROUTINE$, CoroutineImpl);
1389
+ initMetadataForClass(LoggerModel, 'LoggerModel', LoggerModel);
1390
+ initMetadataForCompanion(Companion_195);
1391
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
1392
+ initMetadataForClass(FileLoggerOutputImpl$observe$$inlined$filter$1, VOID, VOID, VOID, [Flow], [1]);
1393
+ initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput]);
1393
1394
  function filterLivePlayers(store, playerIds, includeBots, $super) {
1394
1395
  includeBots = includeBots === VOID ? false : includeBots;
1395
- return $super === VOID ? this.t9v(store, playerIds, includeBots) : $super.t9v.call(this, store, playerIds, includeBots);
1396
+ return $super === VOID ? this.s9v(store, playerIds, includeBots) : $super.s9v.call(this, store, playerIds, includeBots);
1396
1397
  }
1397
1398
  function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
1398
1399
  includeBots = includeBots === VOID ? false : includeBots;
1399
- return $super === VOID ? this.u9v(store, playerIds, includeBots) : $super.u9v.call(this, store, playerIds, includeBots);
1400
+ return $super === VOID ? this.t9v(store, playerIds, includeBots) : $super.t9v.call(this, store, playerIds, includeBots);
1400
1401
  }
1401
1402
  function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
1402
1403
  league = league === VOID ? null : league;
1403
- return $super === VOID ? this.v9v(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.v9v.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
1404
+ return $super === VOID ? this.u9v(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.u9v.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
1404
1405
  }
1405
1406
  initMetadataForInterface(GameHelper, 'GameHelper');
1406
1407
  initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
@@ -1413,7 +1414,7 @@
1413
1414
  tmp = existingNicknames;
1414
1415
  }
1415
1416
  existingNicknames = tmp;
1416
- return $super === VOID ? this.x9v(playerId, existingNicknames) : $super.x9v.call(this, playerId, existingNicknames);
1417
+ return $super === VOID ? this.w9v(playerId, existingNicknames) : $super.w9v.call(this, playerId, existingNicknames);
1417
1418
  }
1418
1419
  initMetadataForInterface(GameResources, 'GameResources');
1419
1420
  initMetadataForCompanion(Companion_196);
@@ -48080,16 +48081,18 @@
48080
48081
  var opponent = tmp$ret$2;
48081
48082
  var expected = pBeats($this, item.r7b_1, opponent.r7b_1, cfg.eloScaleH2H);
48082
48083
  var effectivePoints = getEffectivePoints($this, item, cfg);
48083
- var actual = effectivePoints >= maxScore ? 1.0 : 0.0;
48084
- var kFactor = baseK($this, item.v7b_1, gameComplexityCoefficient, cfg);
48084
+ var opponentEffectivePoints = getEffectivePoints($this, opponent, cfg);
48085
48085
  var tmp;
48086
- if (actual === 0.0 && effectivePoints >= maxScore * cfg.h2hCloseLossThresholdRatio) {
48087
- tmp = calculateScoreFactor($this, maxScore, effectivePoints, cfg.h2hCloseLossThresholdRatio);
48086
+ if (effectivePoints >= maxScore && opponentEffectivePoints >= maxScore) {
48087
+ tmp = calculateProportionalResult($this, effectivePoints, maxScore);
48088
48088
  } else {
48089
- tmp = 1.0;
48089
+ tmp = effectivePoints >= maxScore ? 1.0 : 0.0;
48090
48090
  }
48091
- var scoreFactor = tmp;
48092
- var ratingChange = kFactor * scoreFactor * (actual - expected);
48091
+ var actual = tmp;
48092
+ var kFactor = baseK($this, item.v7b_1, gameComplexityCoefficient, cfg);
48093
+ var baseRatingChange = kFactor * (actual - expected);
48094
+ var scoreFactor = calculateCloseLossProtection($this, effectivePoints, maxScore, baseRatingChange, cfg);
48095
+ var ratingChange = baseRatingChange * scoreFactor;
48093
48096
  var newRating = clampAndRound($this, item.r7b_1 + ratingChange, minUserRating, maxUserRating);
48094
48097
  if (item.t7b_1 && newRating < item.r7b_1 && !(item.u7b_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
48095
48098
  newRating = item.r7b_1;
@@ -48112,38 +48115,52 @@
48112
48115
  var _iterator__ex2g4s = ratingList.l();
48113
48116
  while (_iterator__ex2g4s.m()) {
48114
48117
  var item = _iterator__ex2g4s.n();
48115
- var tmp$ret$2;
48118
+ var tmp$ret$2 = getEffectivePoints($this, item, cfg);
48119
+ destination.j(tmp$ret$2);
48120
+ }
48121
+ var playerScores = destination;
48122
+ var dynamicMaxScore = calculateDynamicMaxScore($this, maxScore, playerScores);
48123
+ // Inline function 'kotlin.collections.map' call
48124
+ // Inline function 'kotlin.collections.mapTo' call
48125
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(ratingList, 10));
48126
+ var _iterator__ex2g4s_0 = ratingList.l();
48127
+ while (_iterator__ex2g4s_0.m()) {
48128
+ var item_0 = _iterator__ex2g4s_0.n();
48129
+ var tmp$ret$5;
48116
48130
  $l$block: {
48117
- if (item.u7b_1.equals(AgentType_BOT_NATIVE_getInstance()) && !cfg.botNativeUpdatesRating) {
48118
- tmp$ret$2 = frozenOutput($this, item);
48131
+ if (item_0.u7b_1.equals(AgentType_BOT_NATIVE_getInstance()) && !cfg.botNativeUpdatesRating) {
48132
+ tmp$ret$5 = frozenOutput($this, item_0);
48119
48133
  break $l$block;
48120
48134
  }
48121
48135
  // Inline function 'kotlin.collections.filter' call
48122
48136
  // Inline function 'kotlin.collections.filterTo' call
48123
- var destination_0 = ArrayList_init_$Create$_0();
48124
- var _iterator__ex2g4s_0 = ratingList.l();
48125
- while (_iterator__ex2g4s_0.m()) {
48126
- var element = _iterator__ex2g4s_0.n();
48127
- if (!(element.q7b_1 === item.q7b_1)) {
48128
- destination_0.j(element);
48137
+ var destination_1 = ArrayList_init_$Create$_0();
48138
+ var _iterator__ex2g4s_1 = ratingList.l();
48139
+ while (_iterator__ex2g4s_1.m()) {
48140
+ var element = _iterator__ex2g4s_1.n();
48141
+ if (!(element.q7b_1 === item_0.q7b_1)) {
48142
+ destination_1.j(element);
48129
48143
  }
48130
48144
  }
48131
- var opponents = destination_0;
48145
+ var opponents = destination_1;
48132
48146
  var totalExpected = 0.0;
48133
48147
  var totalActual = 0.0;
48134
48148
  // Inline function 'kotlin.collections.forEach' call
48135
- var _iterator__ex2g4s_1 = opponents.l();
48136
- while (_iterator__ex2g4s_1.m()) {
48137
- var element_0 = _iterator__ex2g4s_1.n();
48138
- var expected = pBeats($this, item.r7b_1, element_0.r7b_1, cfg.eloScaleFfa);
48139
- var actual = calculatePairwiseResult($this, item, element_0, maxScore, cfg);
48149
+ var _iterator__ex2g4s_2 = opponents.l();
48150
+ while (_iterator__ex2g4s_2.m()) {
48151
+ var element_0 = _iterator__ex2g4s_2.n();
48152
+ var expected = pBeats($this, item_0.r7b_1, element_0.r7b_1, cfg.eloScaleFfa);
48153
+ var actual = calculateFfaPairwiseResult($this, item_0, element_0, playerScores, maxScore, cfg);
48140
48154
  totalExpected = totalExpected + expected;
48141
48155
  totalActual = totalActual + actual;
48142
48156
  }
48143
- var baseKFactor = baseK($this, item.v7b_1, gameComplexityCoefficient, cfg);
48157
+ var baseKFactor = baseK($this, item_0.v7b_1, gameComplexityCoefficient, cfg);
48144
48158
  var ffaScaling = calculateFfaScaling($this, ratingList.o(), cfg);
48145
48159
  var effectiveKFactor = baseKFactor * ffaScaling;
48146
- var ratingChange = effectiveKFactor * (totalActual - totalExpected);
48160
+ var baseRatingChange = effectiveKFactor * (totalActual - totalExpected);
48161
+ var playerEffectivePoints = getEffectivePoints($this, item_0, cfg);
48162
+ var scoreFactor = calculateCloseLossProtection($this, playerEffectivePoints, maxScore, baseRatingChange, cfg);
48163
+ var ratingChange = baseRatingChange * scoreFactor;
48147
48164
  var theoreticalMaxGain = effectiveKFactor * (ratingList.o() - 1 | 0);
48148
48165
  var maxRatingDecrease = theoreticalMaxGain / ratingList.o() * cfg.ffaMaxRatingDecreaseFraction;
48149
48166
  var tmp;
@@ -48153,33 +48170,95 @@
48153
48170
  tmp = ratingChange;
48154
48171
  }
48155
48172
  var limitedRatingChange = tmp;
48156
- var newRating = clampAndRound($this, item.r7b_1 + limitedRatingChange, minUserRating, maxUserRating);
48157
- if (item.t7b_1 && newRating < item.r7b_1 && !(item.u7b_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
48158
- newRating = item.r7b_1;
48173
+ var newRating = clampAndRound($this, item_0.r7b_1 + limitedRatingChange, minUserRating, maxUserRating);
48174
+ if (item_0.t7b_1 && newRating < item_0.r7b_1 && !(item_0.u7b_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
48175
+ newRating = item_0.r7b_1;
48159
48176
  }
48160
- tmp$ret$2 = new PlayerRatingOutput(item.q7b_1, item.r7b_1, newRating, item.t7b_1);
48177
+ tmp$ret$5 = new PlayerRatingOutput(item_0.q7b_1, item_0.r7b_1, newRating, item_0.t7b_1);
48161
48178
  }
48162
- destination.j(tmp$ret$2);
48179
+ destination_0.j(tmp$ret$5);
48163
48180
  }
48164
- return destination;
48181
+ return destination_0;
48165
48182
  }
48166
- function calculatePairwiseResult($this, player, opponent, maxScore, cfg) {
48183
+ function calculateFfaPairwiseResult($this, player, opponent, allPlayerScores, maxScore, cfg) {
48167
48184
  var playerEffectivePoints = getEffectivePoints($this, player, cfg);
48168
48185
  var opponentEffectivePoints = getEffectivePoints($this, opponent, cfg);
48169
48186
  var tmp;
48170
48187
  if (cfg.ffaMovEnabled) {
48171
- tmp = calculateMarginAwarePairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, maxScore);
48188
+ tmp = calculateFfaAdaptivePairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, allPlayerScores, maxScore);
48189
+ } else {
48190
+ tmp = calculateProportionalPairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, maxScore);
48191
+ }
48192
+ return tmp;
48193
+ }
48194
+ function calculateProportionalPairwiseResult($this, playerPoints, opponentPoints, maxScore) {
48195
+ var tmp;
48196
+ if (maxScore > 0) {
48197
+ // Inline function 'kotlin.math.max' call
48198
+ var b = playerPoints / maxScore;
48199
+ var playerProportion = Math.max(0.0, b);
48200
+ // Inline function 'kotlin.math.max' call
48201
+ var b_0 = opponentPoints / maxScore;
48202
+ var opponentProportion = Math.max(0.0, b_0);
48203
+ var tmp_0;
48204
+ if (playerProportion > opponentProportion) {
48205
+ var tmp_1 = playerProportion - opponentProportion;
48206
+ // Inline function 'kotlin.math.max' call
48207
+ tmp_0 = 0.5 + 0.5 * (tmp_1 / Math.max(playerProportion, opponentProportion));
48208
+ } else if (playerProportion < opponentProportion) {
48209
+ var tmp_2 = opponentProportion - playerProportion;
48210
+ // Inline function 'kotlin.math.max' call
48211
+ tmp_0 = 0.5 - 0.5 * (tmp_2 / Math.max(playerProportion, opponentProportion));
48212
+ } else {
48213
+ tmp_0 = 0.5;
48214
+ }
48215
+ tmp = tmp_0;
48172
48216
  } else {
48173
- tmp = playerEffectivePoints > opponentEffectivePoints ? 1.0 : playerEffectivePoints < opponentEffectivePoints ? 0.0 : 0.5;
48217
+ tmp = playerPoints > opponentPoints ? 1.0 : playerPoints < opponentPoints ? 0.0 : 0.5;
48174
48218
  }
48175
48219
  return tmp;
48176
48220
  }
48177
- function calculateMarginAwarePairwiseResult($this, playerPoints, opponentPoints, maxScore) {
48221
+ function calculateFfaAdaptivePairwiseResult($this, playerPoints, opponentPoints, allPlayerScores, maxScore) {
48178
48222
  var scoreDiff = playerPoints - opponentPoints | 0;
48179
- var maxPossibleDiff = maxScore;
48180
- var normalizedDiff = coerceIn(scoreDiff / maxPossibleDiff, -1.0, 1.0);
48223
+ var sortedScores = sorted(allPlayerScores);
48224
+ var tmp;
48225
+ if (sortedScores.o() >= 2) {
48226
+ // Inline function 'kotlin.math.max' call
48227
+ var a = last(sortedScores) - sortedScores.p(sortedScores.o() - 2 | 0) | 0;
48228
+ tmp = Math.max(a, 50);
48229
+ } else {
48230
+ tmp = maxScore;
48231
+ }
48232
+ var competitiveRange = tmp;
48233
+ var normalizedDiff = coerceIn(scoreDiff / competitiveRange, -1.0, 1.0);
48181
48234
  return 0.5 + 0.5 * normalizedDiff;
48182
48235
  }
48236
+ function calculateDynamicMaxScore($this, maxScore, playerScores) {
48237
+ var tmp0_elvis_lhs = maxOrNull(playerScores);
48238
+ var maxActualScore = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
48239
+ // Inline function 'kotlin.math.max' call
48240
+ return Math.max(maxScore, maxActualScore);
48241
+ }
48242
+ function calculateProportionalResult($this, playerScore, dynamicMaxScore) {
48243
+ var tmp;
48244
+ if (dynamicMaxScore > 0) {
48245
+ // Inline function 'kotlin.math.max' call
48246
+ var b = playerScore / dynamicMaxScore;
48247
+ tmp = Math.max(0.0, b);
48248
+ } else {
48249
+ tmp = 0.0;
48250
+ }
48251
+ return tmp;
48252
+ }
48253
+ function calculateCloseLossProtection($this, playerScore, originalMaxScore, baseRatingChange, cfg) {
48254
+ var tmp;
48255
+ if (playerScore >= originalMaxScore * cfg.h2hCloseLossThresholdRatio && baseRatingChange < 0) {
48256
+ tmp = calculateScoreFactor($this, originalMaxScore, playerScore, cfg.h2hCloseLossThresholdRatio);
48257
+ } else {
48258
+ tmp = 1.0;
48259
+ }
48260
+ return tmp;
48261
+ }
48183
48262
  function calculateFfaScaling($this, playerCount, cfg) {
48184
48263
  switch (playerCount) {
48185
48264
  case 3:
@@ -48415,8 +48494,19 @@
48415
48494
  destination_2.j(tmp$ret$17);
48416
48495
  }
48417
48496
  var teamAvgLoser = average(destination_2);
48418
- var winnerTeamWon = winnerTeamOriginalScore >= maxScore;
48419
- var loserTeamWon = loserTeamOriginalScore >= maxScore;
48497
+ var winnerActual;
48498
+ var loserActual;
48499
+ if (winnerTeamOriginalScore >= maxScore && loserTeamOriginalScore >= maxScore) {
48500
+ var rawWinnerActual = calculateProportionalResult(this, winnerTeamScore, maxScore);
48501
+ var rawLoserActual = calculateProportionalResult(this, loserTeamScore, maxScore);
48502
+ winnerActual = rawWinnerActual;
48503
+ // Inline function 'kotlin.math.min' call
48504
+ var b = rawWinnerActual * 0.95;
48505
+ loserActual = Math.min(rawLoserActual, b);
48506
+ } else {
48507
+ winnerActual = winnerTeamOriginalScore >= maxScore ? 1.0 : 0.0;
48508
+ loserActual = loserTeamOriginalScore >= maxScore ? 1.0 : 0.0;
48509
+ }
48420
48510
  // Inline function 'kotlin.collections.mutableListOf' call
48421
48511
  var results = ArrayList_init_$Create$_0();
48422
48512
  // Inline function 'kotlin.collections.forEach' call
@@ -48427,23 +48517,18 @@
48427
48517
  results.j(frozenOutput(this, element_5));
48428
48518
  } else {
48429
48519
  var expected = pBeats(this, element_5.r7b_1, teamAvgLoser, ratingConfig.eloScaleH2H);
48430
- var actual = winnerTeamOriginalScore >= maxScore ? 1.0 : 0.0;
48431
48520
  var tmp_3;
48432
48521
  if (element_5.u7b_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && ratingConfig.replacementForcedDecrease) {
48433
48522
  tmp_3 = 0.0;
48434
48523
  } else {
48435
- tmp_3 = actual;
48524
+ tmp_3 = winnerActual;
48436
48525
  }
48437
48526
  var effectiveActual = tmp_3;
48438
48527
  var kFactor = baseK(this, element_5.v7b_1, gameComplexityCoefficient, ratingConfig);
48439
- var tmp_4;
48440
- if (effectiveActual === 0.0 && loserTeamOriginalScore >= maxScore * ratingConfig.h2hCloseLossThresholdRatio) {
48441
- tmp_4 = calculateScoreFactor(this, maxScore, loserTeamOriginalScore, ratingConfig.h2hCloseLossThresholdRatio);
48442
- } else {
48443
- tmp_4 = 1.0;
48444
- }
48445
- var scoreFactor = tmp_4;
48446
- var ratingChange = kFactor * scoreFactor * (effectiveActual - expected);
48528
+ var baseRatingChange = kFactor * (effectiveActual - expected);
48529
+ var playerEffectivePoints = getEffectivePoints(this, element_5, ratingConfig);
48530
+ var scoreFactor = calculateCloseLossProtection(this, playerEffectivePoints, maxScore, baseRatingChange, ratingConfig);
48531
+ var ratingChange = baseRatingChange * scoreFactor;
48447
48532
  var newRating = clampAndRound(this, element_5.r7b_1 + ratingChange, minUserRating, maxUserRating);
48448
48533
  if (element_5.t7b_1 && newRating < element_5.r7b_1 && !(element_5.u7b_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && ratingConfig.replacementForcedDecrease)) {
48449
48534
  newRating = element_5.r7b_1;
@@ -48459,16 +48544,19 @@
48459
48544
  results.j(frozenOutput(this, element_6));
48460
48545
  } else {
48461
48546
  var expected_0 = pBeats(this, element_6.r7b_1, teamAvgWinner, ratingConfig.eloScaleH2H);
48462
- var actual_0 = loserTeamOriginalScore >= maxScore ? 1.0 : 0.0;
48463
48547
  var kFactor_0 = baseK(this, element_6.v7b_1, gameComplexityCoefficient, ratingConfig);
48464
- var tmp_5;
48465
- if (actual_0 === 0.0 && loserTeamOriginalScore >= maxScore * ratingConfig.h2hCloseLossThresholdRatio) {
48466
- tmp_5 = calculateScoreFactor(this, maxScore, loserTeamOriginalScore, ratingConfig.h2hCloseLossThresholdRatio);
48467
- } else {
48468
- tmp_5 = 1.0;
48469
- }
48470
- var scoreFactor_0 = tmp_5;
48471
- var ratingChange_0 = kFactor_0 * scoreFactor_0 * (actual_0 - expected_0);
48548
+ var baseRatingChange_0 = kFactor_0 * (loserActual - expected_0);
48549
+ // Inline function 'kotlin.collections.sumOf' call
48550
+ var sum_3 = 0;
48551
+ var _iterator__ex2g4s_9 = losers.l();
48552
+ while (_iterator__ex2g4s_9.m()) {
48553
+ var element_7 = _iterator__ex2g4s_9.n();
48554
+ var tmp_4 = sum_3;
48555
+ sum_3 = tmp_4 + getEffectivePoints(this, element_7, ratingConfig) | 0;
48556
+ }
48557
+ var teamTotalScore = sum_3;
48558
+ var scoreFactor_0 = calculateCloseLossProtection(this, teamTotalScore, maxScore, baseRatingChange_0, ratingConfig);
48559
+ var ratingChange_0 = baseRatingChange_0 * scoreFactor_0;
48472
48560
  var newRating_0 = clampAndRound(this, element_6.r7b_1 + ratingChange_0, minUserRating, maxUserRating);
48473
48561
  results.j(new PlayerRatingOutput(element_6.q7b_1, element_6.r7b_1, newRating_0, element_6.t7b_1));
48474
48562
  }
@@ -56180,19 +56268,18 @@
56180
56268
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
56181
56269
  return hashCode(this.a3());
56182
56270
  };
56183
- function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation) {
56271
+ function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
56184
56272
  this.g9m_1 = $controller;
56185
- this.h9m_1 = $loggerKey;
56186
56273
  CoroutineImpl.call(this, resultContinuation);
56187
56274
  }
56188
- protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).j9m = function (it, $completion) {
56189
- var tmp = this.k9m(it, $completion);
56275
+ protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).i9m = function (it, $completion) {
56276
+ var tmp = this.j9m(it, $completion);
56190
56277
  tmp.t8_1 = Unit_instance;
56191
56278
  tmp.u8_1 = null;
56192
56279
  return tmp.z8();
56193
56280
  };
56194
56281
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
56195
- return this.j9m(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
56282
+ return this.i9m(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
56196
56283
  };
56197
56284
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
56198
56285
  var suspendResult = this.t8_1;
@@ -56202,9 +56289,9 @@
56202
56289
  switch (tmp) {
56203
56290
  case 0:
56204
56291
  this.s8_1 = 2;
56205
- var log = this.i9m_1.toMessageLog();
56292
+ var log = this.h9m_1.toMessageLog();
56206
56293
  this.r8_1 = 1;
56207
- suspendResult = this.g9m_1.i6n('key:' + this.h9m_1.i6t() + ' ' + log, this);
56294
+ suspendResult = this.g9m_1.i6n(log, this);
56208
56295
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
56209
56296
  return suspendResult;
56210
56297
  }
@@ -56226,23 +56313,23 @@
56226
56313
  }
56227
56314
  while (true);
56228
56315
  };
56229
- protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).k9m = function (it, completion) {
56230
- var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.g9m_1, this.h9m_1, completion);
56231
- i.i9m_1 = it;
56316
+ protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).j9m = function (it, completion) {
56317
+ var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.g9m_1, completion);
56318
+ i.h9m_1 = it;
56232
56319
  return i;
56233
56320
  };
56234
- function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, $loggerKey, resultContinuation) {
56235
- var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation);
56321
+ function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
56322
+ var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
56236
56323
  var l = function (it, $completion) {
56237
- return i.j9m(it, $completion);
56324
+ return i.i9m(it, $completion);
56238
56325
  };
56239
56326
  l.$arity = 1;
56240
56327
  return l;
56241
56328
  }
56242
56329
  function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $loggerKey, resultContinuation) {
56243
- this.t9m_1 = $controller;
56244
- this.u9m_1 = $$loggerOutput;
56245
- this.v9m_1 = $loggerKey;
56330
+ this.s9m_1 = $controller;
56331
+ this.t9m_1 = $$loggerOutput;
56332
+ this.u9m_1 = $loggerKey;
56246
56333
  CoroutineImpl.call(this, resultContinuation);
56247
56334
  }
56248
56335
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).h29 = function ($this$launchDefault, $completion) {
@@ -56263,7 +56350,7 @@
56263
56350
  case 0:
56264
56351
  this.s8_1 = 3;
56265
56352
  this.r8_1 = 1;
56266
- suspendResult = this.t9m_1.h6n(this);
56353
+ suspendResult = this.s9m_1.h6n(this);
56267
56354
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
56268
56355
  return suspendResult;
56269
56356
  }
@@ -56271,8 +56358,8 @@
56271
56358
  continue $sm;
56272
56359
  case 1:
56273
56360
  this.r8_1 = 2;
56274
- var tmp_0 = this.u9m_1.x9m(this.v9m_1);
56275
- var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.t9m_1, this.v9m_1, null);
56361
+ var tmp_0 = this.t9m_1.w9m(this.u9m_1);
56362
+ var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.s9m_1, null);
56276
56363
  suspendResult = tmp_0.d23(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
56277
56364
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
56278
56365
  return suspendResult;
@@ -56296,8 +56383,8 @@
56296
56383
  while (true);
56297
56384
  };
56298
56385
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).i29 = function ($this$launchDefault, completion) {
56299
- var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.t9m_1, this.u9m_1, this.v9m_1, completion);
56300
- i.w9m_1 = $this$launchDefault;
56386
+ var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.s9m_1, this.t9m_1, this.u9m_1, completion);
56387
+ i.v9m_1 = $this$launchDefault;
56301
56388
  return i;
56302
56389
  };
56303
56390
  function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $loggerKey, resultContinuation) {
@@ -56416,20 +56503,20 @@
56416
56503
  return null;
56417
56504
  }
56418
56505
  function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
56419
- this.y9m_1 = $engineLogicConfig;
56420
- this.z9m_1 = $logger;
56421
- this.a9n_1 = $sceneRouter;
56422
- this.b9n_1 = $idsProvider;
56423
- this.c9n_1 = $playerConnectionInteractor;
56506
+ this.x9m_1 = $engineLogicConfig;
56507
+ this.y9m_1 = $logger;
56508
+ this.z9m_1 = $sceneRouter;
56509
+ this.a9n_1 = $idsProvider;
56510
+ this.b9n_1 = $playerConnectionInteractor;
56424
56511
  }
56425
56512
  protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
56426
56513
  return action instanceof MechanicAction;
56427
56514
  };
56428
56515
  protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
56429
56516
  var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
56430
- if (this.y9m_1.validateIfMainThread) {
56517
+ if (this.x9m_1.validateIfMainThread) {
56431
56518
  // Inline function 'games.logic.utils.runSafeOnProd' call
56432
- var logger = this.z9m_1;
56519
+ var logger = this.y9m_1;
56433
56520
  var tmp;
56434
56521
  try {
56435
56522
  assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
@@ -56456,22 +56543,22 @@
56456
56543
  if (equals(action_0.g89_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
56457
56544
  tmp_2 = listOf(createHostDealerAct(action_0.j89_1));
56458
56545
  } else {
56459
- tmp_2 = listOf(new SceneStartedMechanicAction(this.a9n_1.l9c(action_0.g89_1, true).y9c_1));
56546
+ tmp_2 = listOf(new SceneStartedMechanicAction(this.z9m_1.l9c(action_0.g89_1, true).y9c_1));
56460
56547
  }
56461
56548
  tmp_1 = tmp_2;
56462
56549
  } else {
56463
56550
  if (action_0 instanceof StartNewGameMechanicAction) {
56464
- tmp_1 = listOf(new SceneStartedMechanicAction(this.a9n_1.l9c(state.t6w().config, false).y9c_1));
56551
+ tmp_1 = listOf(new SceneStartedMechanicAction(this.z9m_1.l9c(state.t6w().config, false).y9c_1));
56465
56552
  } else {
56466
56553
  if (action_0 instanceof RestartGameMechanicAction) {
56467
56554
  var tmp1_config = state.t6w().config;
56468
- tmp_1 = listOf(new SceneStartedMechanicAction(this.a9n_1.m9c(tmp1_config, false, false).y9c_1));
56555
+ tmp_1 = listOf(new SceneStartedMechanicAction(this.z9m_1.m9c(tmp1_config, false, false).y9c_1));
56469
56556
  } else {
56470
56557
  if (action_0 instanceof TeamsDataMechanicAction) {
56471
56558
  tmp_1 = listOf(new SceneEndedMechanicAction(state.t6w().sceneInfo.p8c_1));
56472
56559
  } else {
56473
56560
  if (action_0 instanceof PlayerReadyMechanicAction) {
56474
- tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.t6w(), this.b9n_1, this.y9m_1, this.c9n_1, this.z9m_1));
56561
+ tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.t6w(), this.a9n_1, this.x9m_1, this.b9n_1, this.y9m_1));
56475
56562
  } else {
56476
56563
  if (action_0 instanceof SuitChoiceMechanicAction) {
56477
56564
  var tmp_3;
@@ -56609,12 +56696,12 @@
56609
56696
  }
56610
56697
  function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
56611
56698
  afterReconnection = afterReconnection === VOID ? false : afterReconnection;
56612
- this.d9n_1 = playersIds;
56613
- this.e9n_1 = tag;
56614
- this.f9n_1 = afterReconnection;
56699
+ this.c9n_1 = playersIds;
56700
+ this.d9n_1 = tag;
56701
+ this.e9n_1 = afterReconnection;
56615
56702
  }
56616
56703
  protoOf(PlayerTurnTimerTag).f6d = function () {
56617
- return single(this.d9n_1);
56704
+ return single(this.c9n_1);
56618
56705
  };
56619
56706
  protoOf(PlayerTurnTimerTag).equals = function (other) {
56620
56707
  if (this === other)
@@ -56623,13 +56710,13 @@
56623
56710
  return false;
56624
56711
  if (!(other instanceof PlayerTurnTimerTag))
56625
56712
  THROW_CCE();
56626
- return equals(this.d9n_1, other.d9n_1);
56713
+ return equals(this.c9n_1, other.c9n_1);
56627
56714
  };
56628
56715
  protoOf(PlayerTurnTimerTag).hashCode = function () {
56629
- return hashCode(this.d9n_1);
56716
+ return hashCode(this.c9n_1);
56630
56717
  };
56631
56718
  protoOf(PlayerTurnTimerTag).toString = function () {
56632
- return 'PlayerTurnTimerTag(playersIds=' + toString(this.d9n_1) + ', tag=' + this.e9n_1 + ', afterReconnection=' + this.f9n_1 + ')';
56719
+ return 'PlayerTurnTimerTag(playersIds=' + toString(this.c9n_1) + ', tag=' + this.d9n_1 + ', afterReconnection=' + this.e9n_1 + ')';
56633
56720
  };
56634
56721
  function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
56635
56722
  isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
@@ -56672,10 +56759,10 @@
56672
56759
  return tmp;
56673
56760
  }
56674
56761
  function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
56675
- this.g9n_1 = $isEnableTimerForPlayer;
56676
- this.h9n_1 = $playerTurnInteractor;
56677
- this.i9n_1 = $botConfig;
56678
- this.j9n_1 = $mergeTimers;
56762
+ this.f9n_1 = $isEnableTimerForPlayer;
56763
+ this.g9n_1 = $playerTurnInteractor;
56764
+ this.h9n_1 = $botConfig;
56765
+ this.i9n_1 = $mergeTimers;
56679
56766
  }
56680
56767
  protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
56681
56768
  return isInterface(action, NextPlayerTurnAction);
@@ -56691,14 +56778,14 @@
56691
56778
  var _iterator__ex2g4s = tmp0.l();
56692
56779
  while (_iterator__ex2g4s.m()) {
56693
56780
  var element = _iterator__ex2g4s.n();
56694
- if (this.g9n_1(element)) {
56781
+ if (this.f9n_1(element)) {
56695
56782
  destination.j(element);
56696
56783
  }
56697
56784
  }
56698
56785
  var startTimerForPlayers = destination;
56699
56786
  // Inline function 'kotlin.collections.isNotEmpty' call
56700
56787
  if (!startTimerForPlayers.q()) {
56701
- var playerTurnModel = this.h9n_1.m9a(action_0, table);
56788
+ var playerTurnModel = this.g9n_1.m9a(action_0, table);
56702
56789
  if (!(playerTurnModel == null)) {
56703
56790
  // Inline function 'kotlin.collections.map' call
56704
56791
  // Inline function 'kotlin.collections.mapTo' call
@@ -56706,11 +56793,11 @@
56706
56793
  var _iterator__ex2g4s_0 = startTimerForPlayers.l();
56707
56794
  while (_iterator__ex2g4s_0.m()) {
56708
56795
  var item = _iterator__ex2g4s_0.n();
56709
- var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.i9n_1.isDelayForBot, this.i9n_1.simulateBotThinkingDelay ? Default_getInstance() : null));
56796
+ var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.h9n_1.isDelayForBot, this.h9n_1.simulateBotThinkingDelay ? Default_getInstance() : null));
56710
56797
  destination_0.j(tmp$ret$4);
56711
56798
  }
56712
56799
  var timeForPlayers = destination_0;
56713
- if (this.j9n_1) {
56800
+ if (this.i9n_1) {
56714
56801
  // Inline function 'kotlin.collections.groupBy' call
56715
56802
  // Inline function 'kotlin.collections.groupByTo' call
56716
56803
  var destination_1 = LinkedHashMap_init_$Create$();
@@ -56784,14 +56871,14 @@
56784
56871
  return this.m6p(store, next, action);
56785
56872
  };
56786
56873
  function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
56787
- this.k9n_1 = $isEnableBotForPlayer;
56874
+ this.j9n_1 = $isEnableBotForPlayer;
56788
56875
  }
56789
56876
  protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
56790
56877
  return isInterface(action, PlayerAnswerFromClientAction);
56791
56878
  };
56792
56879
  protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
56793
56880
  var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
56794
- if (this.k9n_1(action_0.playerId)) {
56881
+ if (this.j9n_1(action_0.playerId)) {
56795
56882
  var table = store.state.t6w();
56796
56883
  var player = getPlayer(table.players, action_0.playerId);
56797
56884
  // Inline function 'games.jass.logic.redux.AppState.findTimer' call
@@ -56812,7 +56899,7 @@
56812
56899
  var _iterator__ex2g4s_0 = destination.l();
56813
56900
  while (_iterator__ex2g4s_0.m()) {
56814
56901
  var element_0 = _iterator__ex2g4s_0.n();
56815
- if (element_0.d9n_1.t1(action_0.playerId) && element_0.e9n_1 === player.u6z_1.x6f()) {
56902
+ if (element_0.c9n_1.t1(action_0.playerId) && element_0.d9n_1 === player.u6z_1.x6f()) {
56816
56903
  tmp$ret$3 = element_0;
56817
56904
  break $l$block;
56818
56905
  }
@@ -56834,8 +56921,8 @@
56834
56921
  return new playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1(asyncProvider);
56835
56922
  }
56836
56923
  function playerTurnTimeoutMiddleware$o$handle$slambda($store, $timerTag, resultContinuation) {
56837
- this.t9n_1 = $store;
56838
- this.u9n_1 = $timerTag;
56924
+ this.s9n_1 = $store;
56925
+ this.t9n_1 = $timerTag;
56839
56926
  CoroutineImpl.call(this, resultContinuation);
56840
56927
  }
56841
56928
  protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).h29 = function ($this$launchDefaultWithLock, $completion) {
@@ -56854,7 +56941,7 @@
56854
56941
  var tmp = this.r8_1;
56855
56942
  if (tmp === 0) {
56856
56943
  this.s8_1 = 1;
56857
- this.t9n_1.dispatch(new AskBotAction(this.u9n_1.d9n_1, 'PlayerTurn'));
56944
+ this.s9n_1.dispatch(new AskBotAction(this.t9n_1.c9n_1, 'PlayerTurn'));
56858
56945
  return Unit_instance;
56859
56946
  } else if (tmp === 1) {
56860
56947
  throw this.u8_1;
@@ -56866,8 +56953,8 @@
56866
56953
  while (true);
56867
56954
  };
56868
56955
  protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).i29 = function ($this$launchDefaultWithLock, completion) {
56869
- var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.t9n_1, this.u9n_1, completion);
56870
- i.v9n_1 = $this$launchDefaultWithLock;
56956
+ var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.s9n_1, this.t9n_1, completion);
56957
+ i.u9n_1 = $this$launchDefaultWithLock;
56871
56958
  return i;
56872
56959
  };
56873
56960
  function playerTurnTimeoutMiddleware$o$handle$slambda_0($store, $timerTag, resultContinuation) {
@@ -56879,7 +56966,7 @@
56879
56966
  return l;
56880
56967
  }
56881
56968
  function playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1($asyncProvider) {
56882
- this.w9n_1 = $asyncProvider;
56969
+ this.v9n_1 = $asyncProvider;
56883
56970
  }
56884
56971
  protoOf(playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
56885
56972
  return action instanceof TimerTickAction;
@@ -56888,7 +56975,7 @@
56888
56975
  var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
56889
56976
  var timerTag = action_0.t6n_1;
56890
56977
  if (timerTag instanceof PlayerTurnTimerTag) {
56891
- this.w9n_1.d6k(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
56978
+ this.v9n_1.d6k(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
56892
56979
  }
56893
56980
  next(action_0);
56894
56981
  };
@@ -56900,11 +56987,11 @@
56900
56987
  return new playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
56901
56988
  }
56902
56989
  function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
56903
- this.f9o_1 = $store;
56904
- this.g9o_1 = $timerTag;
56905
- this.h9o_1 = $serverConfig;
56906
- this.i9o_1 = $logger;
56907
- this.j9o_1 = $action;
56990
+ this.e9o_1 = $store;
56991
+ this.f9o_1 = $timerTag;
56992
+ this.g9o_1 = $serverConfig;
56993
+ this.h9o_1 = $logger;
56994
+ this.i9o_1 = $action;
56908
56995
  CoroutineImpl.call(this, resultContinuation);
56909
56996
  }
56910
56997
  protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).h29 = function ($this$launchDefaultWithLock, $completion) {
@@ -56923,13 +57010,13 @@
56923
57010
  var tmp = this.r8_1;
56924
57011
  if (tmp === 0) {
56925
57012
  this.s8_1 = 1;
56926
- var table = this.f9o_1.state.t6w();
56927
- var player = getPlayer(table.players, this.g9o_1.f6d());
57013
+ var table = this.e9o_1.state.t6w();
57014
+ var player = getPlayer(table.players, this.f9o_1.f6d());
56928
57015
  var connectionState = player.u6z_1.h6g().y6e_1;
56929
57016
  var tmp_0;
56930
57017
  switch (connectionState.p2_1) {
56931
57018
  case 0:
56932
- tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.g9o_1.f9n_1));
57019
+ tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.f9o_1.e9n_1));
56933
57020
  break;
56934
57021
  case 4:
56935
57022
  tmp_0 = emptyList();
@@ -56938,8 +57025,8 @@
56938
57025
  case 2:
56939
57026
  case 1:
56940
57027
  var tmp_1;
56941
- if (table.sceneInfo.z7k() && this.h9o_1.closeIfBotsAtFinish) {
56942
- tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.g9o_1.f9n_1);
57028
+ if (table.sceneInfo.z7k() && this.g9o_1.closeIfBotsAtFinish) {
57029
+ tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.f9o_1.e9n_1);
56943
57030
  } else {
56944
57031
  tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
56945
57032
  }
@@ -56947,7 +57034,7 @@
56947
57034
  tmp_0 = listOf(tmp_1);
56948
57035
  break;
56949
57036
  case 5:
56950
- this.i9o_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + connectionState.toString() + ', ') + ('action:' + this.j9o_1.toString()));
57037
+ this.h9o_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + connectionState.toString() + ', ') + ('action:' + this.i9o_1.toString()));
56951
57038
  tmp_0 = emptyList();
56952
57039
  break;
56953
57040
  default:
@@ -56959,7 +57046,7 @@
56959
57046
  var _iterator__ex2g4s = actions.l();
56960
57047
  while (_iterator__ex2g4s.m()) {
56961
57048
  var element = _iterator__ex2g4s.n();
56962
- this.f9o_1.dispatch(element);
57049
+ this.e9o_1.dispatch(element);
56963
57050
  }
56964
57051
  }
56965
57052
  return Unit_instance;
@@ -56973,8 +57060,8 @@
56973
57060
  while (true);
56974
57061
  };
56975
57062
  protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).i29 = function ($this$launchDefaultWithLock, completion) {
56976
- var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.f9o_1, this.g9o_1, this.h9o_1, this.i9o_1, this.j9o_1, completion);
56977
- i.k9o_1 = $this$launchDefaultWithLock;
57063
+ var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.e9o_1, this.f9o_1, this.g9o_1, this.h9o_1, this.i9o_1, completion);
57064
+ i.j9o_1 = $this$launchDefaultWithLock;
56978
57065
  return i;
56979
57066
  };
56980
57067
  function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
@@ -56986,9 +57073,9 @@
56986
57073
  return l;
56987
57074
  }
56988
57075
  function playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
56989
- this.l9o_1 = $asyncProvider;
56990
- this.m9o_1 = $serverConfig;
56991
- this.n9o_1 = $logger;
57076
+ this.k9o_1 = $asyncProvider;
57077
+ this.l9o_1 = $serverConfig;
57078
+ this.m9o_1 = $logger;
56992
57079
  }
56993
57080
  protoOf(playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
56994
57081
  return action instanceof TimerTickAction;
@@ -56997,7 +57084,7 @@
56997
57084
  var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
56998
57085
  var timerTag = action_0.t6n_1;
56999
57086
  if (timerTag instanceof PlayerTurnTimerTag) {
57000
- this.l9o_1.d6k(VOID, playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0(store, timerTag, this.m9o_1, this.n9o_1, action_0, null));
57087
+ this.k9o_1.d6k(VOID, playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0(store, timerTag, this.l9o_1, this.m9o_1, action_0, null));
57001
57088
  }
57002
57089
  next(action_0);
57003
57090
  };
@@ -57009,7 +57096,7 @@
57009
57096
  return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
57010
57097
  }
57011
57098
  function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
57012
- this.o9o_1 = $playerConnectionInteractor;
57099
+ this.n9o_1 = $playerConnectionInteractor;
57013
57100
  }
57014
57101
  protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57015
57102
  return action instanceof PlayerConnectionUpdateAction;
@@ -57045,7 +57132,7 @@
57045
57132
  var _iterator__ex2g4s_0 = destination.l();
57046
57133
  while (_iterator__ex2g4s_0.m()) {
57047
57134
  var element_0 = _iterator__ex2g4s_0.n();
57048
- if (element_0.p9o_1 === tmp4.k9d_1) {
57135
+ if (element_0.o9o_1 === tmp4.k9d_1) {
57049
57136
  if (found) {
57050
57137
  tmp$ret$4 = null;
57051
57138
  break $l$block_2;
@@ -57064,7 +57151,7 @@
57064
57151
  if (!(reconnectionTimerTag == null)) {
57065
57152
  store.dispatch(new StopTimerAction(reconnectionTimerTag));
57066
57153
  }
57067
- var actions = this.o9o_1.k9a(tmp4.j9d_1, tmp4.k9d_1, store.state.t6w(), tmp4.l9d_1);
57154
+ var actions = this.n9o_1.k9a(tmp4.j9d_1, tmp4.k9d_1, store.state.t6w(), tmp4.l9d_1);
57068
57155
  // Inline function 'kotlin.collections.forEach' call
57069
57156
  var _iterator__ex2g4s_1 = actions.l();
57070
57157
  while (_iterator__ex2g4s_1.m()) {
@@ -57081,15 +57168,15 @@
57081
57168
  return new playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
57082
57169
  }
57083
57170
  function PlayerReconnectionWaitingTimerTag(playerId, state) {
57084
- this.p9o_1 = playerId;
57085
- this.q9o_1 = state;
57171
+ this.o9o_1 = playerId;
57172
+ this.p9o_1 = state;
57086
57173
  }
57087
57174
  protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
57088
- return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.p9o_1 + ', state=' + this.q9o_1.toString() + ')';
57175
+ return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.o9o_1 + ', state=' + this.p9o_1.toString() + ')';
57089
57176
  };
57090
57177
  protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
57091
- var result = getStringHashCode(this.p9o_1);
57092
- result = imul(result, 31) + this.q9o_1.hashCode() | 0;
57178
+ var result = getStringHashCode(this.o9o_1);
57179
+ result = imul(result, 31) + this.p9o_1.hashCode() | 0;
57093
57180
  return result;
57094
57181
  };
57095
57182
  protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
@@ -57097,14 +57184,14 @@
57097
57184
  return true;
57098
57185
  if (!(other instanceof PlayerReconnectionWaitingTimerTag))
57099
57186
  return false;
57100
- if (!(this.p9o_1 === other.p9o_1))
57187
+ if (!(this.o9o_1 === other.o9o_1))
57101
57188
  return false;
57102
- if (!this.q9o_1.equals(other.q9o_1))
57189
+ if (!this.p9o_1.equals(other.p9o_1))
57103
57190
  return false;
57104
57191
  return true;
57105
57192
  };
57106
57193
  function playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
57107
- this.r9o_1 = $playerConnectionInteractor;
57194
+ this.q9o_1 = $playerConnectionInteractor;
57108
57195
  }
57109
57196
  protoOf(playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57110
57197
  return action instanceof TimerTickAction;
@@ -57118,7 +57205,7 @@
57118
57205
  var timerTag = tmp4.t6n_1;
57119
57206
  if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
57120
57207
  var state = store.state;
57121
- var actions = this.r9o_1.k9a(timerTag.q9o_1, timerTag.p9o_1, state.t6w(), true);
57208
+ var actions = this.q9o_1.k9a(timerTag.p9o_1, timerTag.o9o_1, state.t6w(), true);
57122
57209
  // Inline function 'kotlin.collections.isNotEmpty' call
57123
57210
  if (!actions.q()) {
57124
57211
  // Inline function 'kotlin.collections.forEach' call
@@ -57140,8 +57227,8 @@
57140
57227
  return new clearOnFinishMiddleware$$inlined$middlewareForActionType$1(asyncProvider, operationsToWait);
57141
57228
  }
57142
57229
  function clearOnFinishMiddleware$o$handle$slambda($operationsToWait, $store, resultContinuation) {
57143
- this.a9p_1 = $operationsToWait;
57144
- this.b9p_1 = $store;
57230
+ this.z9o_1 = $operationsToWait;
57231
+ this.a9p_1 = $store;
57145
57232
  CoroutineImpl.call(this, resultContinuation);
57146
57233
  }
57147
57234
  protoOf(clearOnFinishMiddleware$o$handle$slambda).h29 = function ($this$launchDefault, $completion) {
@@ -57161,18 +57248,18 @@
57161
57248
  switch (tmp) {
57162
57249
  case 0:
57163
57250
  this.s8_1 = 4;
57164
- this.d9p_1 = this.a9p_1.l();
57251
+ this.c9p_1 = this.z9o_1.l();
57165
57252
  this.r8_1 = 1;
57166
57253
  continue $sm;
57167
57254
  case 1:
57168
- if (!this.d9p_1.m()) {
57255
+ if (!this.c9p_1.m()) {
57169
57256
  this.r8_1 = 3;
57170
57257
  continue $sm;
57171
57258
  }
57172
57259
 
57173
- var element = this.d9p_1.n();
57260
+ var element = this.c9p_1.n();
57174
57261
  this.r8_1 = 2;
57175
- suspendResult = element.e9p(this);
57262
+ suspendResult = element.d9p(this);
57176
57263
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
57177
57264
  return suspendResult;
57178
57265
  }
@@ -57182,8 +57269,8 @@
57182
57269
  this.r8_1 = 1;
57183
57270
  continue $sm;
57184
57271
  case 3:
57185
- var tmp_0 = this.b9p_1.dispatch;
57186
- var tmp0_safe_receiver = this.b9p_1.state.t6v_1;
57272
+ var tmp_0 = this.a9p_1.dispatch;
57273
+ var tmp0_safe_receiver = this.a9p_1.state.t6v_1;
57187
57274
  tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y8e_1));
57188
57275
  return Unit_instance;
57189
57276
  case 4:
@@ -57201,8 +57288,8 @@
57201
57288
  while (true);
57202
57289
  };
57203
57290
  protoOf(clearOnFinishMiddleware$o$handle$slambda).i29 = function ($this$launchDefault, completion) {
57204
- var i = new clearOnFinishMiddleware$o$handle$slambda(this.a9p_1, this.b9p_1, completion);
57205
- i.c9p_1 = $this$launchDefault;
57291
+ var i = new clearOnFinishMiddleware$o$handle$slambda(this.z9o_1, this.a9p_1, completion);
57292
+ i.b9p_1 = $this$launchDefault;
57206
57293
  return i;
57207
57294
  };
57208
57295
  function clearOnFinishMiddleware$o$handle$slambda_0($operationsToWait, $store, resultContinuation) {
@@ -57214,15 +57301,15 @@
57214
57301
  return l;
57215
57302
  }
57216
57303
  function clearOnFinishMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $operationsToWait) {
57217
- this.f9p_1 = $asyncProvider;
57218
- this.g9p_1 = $operationsToWait;
57304
+ this.e9p_1 = $asyncProvider;
57305
+ this.f9p_1 = $operationsToWait;
57219
57306
  }
57220
57307
  protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57221
57308
  return action instanceof FinishGameMechanicAction;
57222
57309
  };
57223
57310
  protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
57224
57311
  next(action instanceof FinishGameMechanicAction ? action : THROW_CCE());
57225
- this.f9p_1.b6k(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.g9p_1, store, null));
57312
+ this.e9p_1.b6k(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.f9p_1, store, null));
57226
57313
  };
57227
57314
  protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).w6n = function (store, next, action) {
57228
57315
  return this.m6p(store, next, action);
@@ -57232,12 +57319,12 @@
57232
57319
  return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
57233
57320
  }
57234
57321
  function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
57235
- this.p9p_1 = $action;
57236
- this.q9p_1 = $sceneFactory;
57237
- this.r9p_1 = $table;
57238
- this.s9p_1 = $router;
57239
- this.t9p_1 = $store;
57240
- this.u9p_1 = $sceneValidationInteractor;
57322
+ this.o9p_1 = $action;
57323
+ this.p9p_1 = $sceneFactory;
57324
+ this.q9p_1 = $table;
57325
+ this.r9p_1 = $router;
57326
+ this.s9p_1 = $store;
57327
+ this.t9p_1 = $sceneValidationInteractor;
57241
57328
  CoroutineImpl.call(this, resultContinuation);
57242
57329
  }
57243
57330
  protoOf(sceneLifecycleMiddleware$o$handle$slambda).h29 = function ($this$launchDefault, $completion) {
@@ -57257,10 +57344,10 @@
57257
57344
  switch (tmp) {
57258
57345
  case 0:
57259
57346
  this.s8_1 = 3;
57260
- var tmp0_subject = this.p9p_1;
57347
+ var tmp0_subject = this.o9p_1;
57261
57348
  if (tmp0_subject instanceof SceneStartedMechanicAction) {
57262
57349
  this.r8_1 = 1;
57263
- suspendResult = this.q9p_1.h9c(this.p9p_1.w9f_1, this.r9p_1, this);
57350
+ suspendResult = this.p9p_1.h9c(this.o9p_1.w9f_1, this.q9p_1, this);
57264
57351
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
57265
57352
  return suspendResult;
57266
57353
  }
@@ -57268,37 +57355,37 @@
57268
57355
  } else {
57269
57356
  if (tmp0_subject instanceof SceneEndedMechanicAction) {
57270
57357
  var tmp_0 = this;
57271
- var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.r9p_1.players));
57358
+ var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.q9p_1.players));
57272
57359
  var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
57273
- var nextSceneCommand = this.s9p_1.s9c(this.p9p_1.s9f_1, !(gameWinnerPlayerId == null), false, this.r9p_1.config);
57360
+ var nextSceneCommand = this.r9p_1.s9c(this.o9p_1.s9f_1, !(gameWinnerPlayerId == null), false, this.q9p_1.config);
57274
57361
  var tmp_1;
57275
57362
  if (nextSceneCommand instanceof MoveSceneNext) {
57276
57363
  tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.y9c_1));
57277
57364
  } else {
57278
57365
  noWhenBranchMatchedException();
57279
57366
  }
57280
- tmp_0.w9p_1 = tmp_1;
57367
+ tmp_0.v9p_1 = tmp_1;
57281
57368
  this.r8_1 = 2;
57282
57369
  continue $sm;
57283
57370
  } else {
57284
57371
  if (tmp0_subject instanceof SceneActStartedMechanicAction) {
57285
57372
  var tmp_2 = this;
57286
- this.u9p_1.p9c(this.t9p_1.state.u6v_1, 'Timers are not empty before scene act ' + this.p9p_1.t9f_1 + ', ' + this.p9p_1.u9f_1);
57287
- var mechanicAction = new SceneActMechanicAction(this.p9p_1.t9f_1, this.p9p_1.u9f_1, this.p9p_1.v9f_1);
57288
- tmp_2.w9p_1 = listOf(mechanicAction);
57373
+ this.t9p_1.p9c(this.s9p_1.state.u6v_1, 'Timers are not empty before scene act ' + this.o9p_1.t9f_1 + ', ' + this.o9p_1.u9f_1);
57374
+ var mechanicAction = new SceneActMechanicAction(this.o9p_1.t9f_1, this.o9p_1.u9f_1, this.o9p_1.v9f_1);
57375
+ tmp_2.v9p_1 = listOf(mechanicAction);
57289
57376
  this.r8_1 = 2;
57290
57377
  continue $sm;
57291
57378
  } else {
57292
57379
  if (tmp0_subject instanceof SceneActEndedMechanicAction) {
57293
57380
  var tmp_3 = this;
57294
- var navigationCommand = this.s9p_1.u9c(this.p9p_1.x9f_1, this.r9p_1);
57381
+ var navigationCommand = this.r9p_1.u9c(this.o9p_1.x9f_1, this.q9p_1);
57295
57382
  var tmp_4;
57296
57383
  if (navigationCommand instanceof FinishActNext) {
57297
- tmp_4 = listOf(new SceneEndedMechanicAction(this.r9p_1.sceneInfo.p8c_1));
57384
+ tmp_4 = listOf(new SceneEndedMechanicAction(this.q9p_1.sceneInfo.p8c_1));
57298
57385
  } else {
57299
57386
  if (navigationCommand instanceof MoveActNext) {
57300
57387
  var tmp9_actId = navigationCommand.a9d_1;
57301
- var tmp0 = this.r9p_1.sceneInfo.s8c_1;
57388
+ var tmp0 = this.q9p_1.sceneInfo.s8c_1;
57302
57389
  var tmp$ret$2;
57303
57390
  l$ret$3: do {
57304
57391
  if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
@@ -57310,13 +57397,13 @@
57310
57397
  while (false);
57311
57398
  var tmp10_sceneData = tmp$ret$2;
57312
57399
  var tmp11_payload = navigationCommand.b9d_1;
57313
- var actData = this.q9p_1.i9c(tmp9_actId, tmp10_sceneData, tmp11_payload, this.r9p_1);
57314
- tmp_4 = listOf(new SceneActStartedMechanicAction(this.r9p_1.sceneInfo.p8c_1, navigationCommand.a9d_1, actData));
57400
+ var actData = this.p9p_1.i9c(tmp9_actId, tmp10_sceneData, tmp11_payload, this.q9p_1);
57401
+ tmp_4 = listOf(new SceneActStartedMechanicAction(this.q9p_1.sceneInfo.p8c_1, navigationCommand.a9d_1, actData));
57315
57402
  } else {
57316
57403
  noWhenBranchMatchedException();
57317
57404
  }
57318
57405
  }
57319
- tmp_3.w9p_1 = tmp_4;
57406
+ tmp_3.v9p_1 = tmp_4;
57320
57407
  this.r8_1 = 2;
57321
57408
  continue $sm;
57322
57409
  } else {
@@ -57330,19 +57417,19 @@
57330
57417
  break;
57331
57418
  case 1:
57332
57419
  var sceneData = suspendResult;
57333
- var navigationActCommand = this.s9p_1.r9c(sceneData, this.r9p_1);
57420
+ var navigationActCommand = this.r9p_1.r9c(sceneData, this.q9p_1);
57334
57421
  var tmp_6;
57335
57422
  if (navigationActCommand == null) {
57336
57423
  tmp_6 = null;
57337
57424
  } else {
57338
57425
  var tmp0_actId = navigationActCommand.a9d_1;
57339
57426
  var tmp1_payload = navigationActCommand.b9d_1;
57340
- tmp_6 = this.q9p_1.i9c(tmp0_actId, sceneData, tmp1_payload, this.r9p_1);
57427
+ tmp_6 = this.p9p_1.i9c(tmp0_actId, sceneData, tmp1_payload, this.q9p_1);
57341
57428
  }
57342
57429
 
57343
57430
  var actData_0 = tmp_6;
57344
- var state = this.t9p_1.state;
57345
- this.u9p_1.p9c(state.u6v_1, 'Timers are not empty before scene ' + this.p9p_1.w9f_1);
57431
+ var state = this.s9p_1.state;
57432
+ this.t9p_1.p9c(state.u6v_1, 'Timers are not empty before scene ' + this.o9p_1.w9f_1);
57346
57433
  var tmp_7;
57347
57434
  if (equals(state.t6w().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
57348
57435
  var tmp2_safe_receiver = state.t6w().sceneInfo.t8c_1;
@@ -57368,18 +57455,18 @@
57368
57455
  }
57369
57456
 
57370
57457
  var currentTurnPlayerId = tmp_7;
57371
- var tmp5_sceneId = this.p9p_1.w9f_1;
57458
+ var tmp5_sceneId = this.o9p_1.w9f_1;
57372
57459
  var tmp6_actId = actData_0 == null ? null : actData_0.actId;
57373
57460
  var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
57374
- this.w9p_1 = listOfNotNull_0(mechanicAction_0);
57461
+ this.v9p_1 = listOfNotNull_0(mechanicAction_0);
57375
57462
  this.r8_1 = 2;
57376
57463
  continue $sm;
57377
57464
  case 2:
57378
- var navigationActions = this.w9p_1;
57465
+ var navigationActions = this.v9p_1;
57379
57466
  var _iterator__ex2g4s = navigationActions.l();
57380
57467
  while (_iterator__ex2g4s.m()) {
57381
57468
  var element = _iterator__ex2g4s.n();
57382
- this.t9p_1.dispatch(element);
57469
+ this.s9p_1.dispatch(element);
57383
57470
  }
57384
57471
 
57385
57472
  return Unit_instance;
@@ -57398,8 +57485,8 @@
57398
57485
  while (true);
57399
57486
  };
57400
57487
  protoOf(sceneLifecycleMiddleware$o$handle$slambda).i29 = function ($this$launchDefault, completion) {
57401
- var i = new sceneLifecycleMiddleware$o$handle$slambda(this.p9p_1, this.q9p_1, this.r9p_1, this.s9p_1, this.t9p_1, this.u9p_1, completion);
57402
- i.v9p_1 = $this$launchDefault;
57488
+ var i = new sceneLifecycleMiddleware$o$handle$slambda(this.o9p_1, this.p9p_1, this.q9p_1, this.r9p_1, this.s9p_1, this.t9p_1, completion);
57489
+ i.u9p_1 = $this$launchDefault;
57403
57490
  return i;
57404
57491
  };
57405
57492
  function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
@@ -57411,10 +57498,10 @@
57411
57498
  return l;
57412
57499
  }
57413
57500
  function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
57414
- this.x9p_1 = $asyncProvider;
57415
- this.y9p_1 = $sceneFactory;
57416
- this.z9p_1 = $router;
57417
- this.a9q_1 = $sceneValidationInteractor;
57501
+ this.w9p_1 = $asyncProvider;
57502
+ this.x9p_1 = $sceneFactory;
57503
+ this.y9p_1 = $router;
57504
+ this.z9p_1 = $sceneValidationInteractor;
57418
57505
  }
57419
57506
  protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57420
57507
  return action instanceof SceneLifecycleAction;
@@ -57423,7 +57510,7 @@
57423
57510
  var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
57424
57511
  var table = store.state.t6w();
57425
57512
  next(action_0);
57426
- this.x9p_1.b6k(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.y9p_1, table, this.z9p_1, store, this.a9q_1, null));
57513
+ this.w9p_1.b6k(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.x9p_1, table, this.y9p_1, store, this.z9p_1, null));
57427
57514
  };
57428
57515
  protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).w6n = function (store, next, action) {
57429
57516
  return this.m6p(store, next, action);
@@ -57469,7 +57556,7 @@
57469
57556
  return new checkBotsMiddleware$$inlined$middlewareForActionType$1(logger);
57470
57557
  }
57471
57558
  function checkBotsMiddleware$$inlined$middlewareForActionType$1($logger) {
57472
- this.b9q_1 = $logger;
57559
+ this.a9q_1 = $logger;
57473
57560
  }
57474
57561
  protoOf(checkBotsMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57475
57562
  return action instanceof SceneMechanicAction;
@@ -57517,7 +57604,7 @@
57517
57604
  var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.y6e_1);
57518
57605
  destination.j(tmp$ret$2);
57519
57606
  }
57520
- this.b9q_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
57607
+ this.a9q_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
57521
57608
  }
57522
57609
  }
57523
57610
  next(action_0);
@@ -57530,7 +57617,7 @@
57530
57617
  return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
57531
57618
  }
57532
57619
  function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
57533
- this.c9q_1 = $logger;
57620
+ this.b9q_1 = $logger;
57534
57621
  }
57535
57622
  protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57536
57623
  return action instanceof PutCardMechanicAction;
@@ -57563,7 +57650,7 @@
57563
57650
  var bribes = destination;
57564
57651
  // Inline function 'kotlin.collections.isNotEmpty' call
57565
57652
  if (!bribes.q()) {
57566
- this.c9q_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.b8b_1.toString() + ', bribes = ' + toString(bribes));
57653
+ this.b9q_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.b8b_1.toString() + ', bribes = ' + toString(bribes));
57567
57654
  }
57568
57655
  }
57569
57656
  next(action_0);
@@ -57576,7 +57663,7 @@
57576
57663
  return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
57577
57664
  }
57578
57665
  function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
57579
- this.d9q_1 = $logger;
57666
+ this.c9q_1 = $logger;
57580
57667
  }
57581
57668
  protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57582
57669
  return action instanceof SceneMechanicAction;
@@ -57793,7 +57880,7 @@
57793
57880
  }
57794
57881
  var notValidMessage = tmp;
57795
57882
  if (!(notValidMessage == null)) {
57796
- this.d9q_1.w('Validation', toString_0(notValidMessage));
57883
+ this.c9q_1.w('Validation', toString_0(notValidMessage));
57797
57884
  }
57798
57885
  }
57799
57886
  }
@@ -57884,7 +57971,7 @@
57884
57971
  };
57885
57972
  }
57886
57973
  function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
57887
- this.e9q_1 = $logger;
57974
+ this.d9q_1 = $logger;
57888
57975
  }
57889
57976
  protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57890
57977
  return action instanceof TimerTickAction;
@@ -57893,7 +57980,7 @@
57893
57980
  var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
57894
57981
  var tmp = action_0.t6n_1;
57895
57982
  if (tmp instanceof GameIsNotFinishedTimerTag) {
57896
- this.e9q_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
57983
+ this.d9q_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
57897
57984
  store.dispatch(new FinishGameMechanicAction(store.state.c9d().x8e_1, store.state.t6w().isGameFinished));
57898
57985
  }
57899
57986
  next(action_0);
@@ -57959,7 +58046,7 @@
57959
58046
  return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
57960
58047
  }
57961
58048
  function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
57962
- this.f9q_1 = $logger;
58049
+ this.e9q_1 = $logger;
57963
58050
  }
57964
58051
  protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57965
58052
  return isInterface(action, FirstMechanicAction);
@@ -57967,7 +58054,7 @@
57967
58054
  protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
57968
58055
  var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
57969
58056
  if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
57970
- this.f9q_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
58057
+ this.e9q_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
57971
58058
  }
57972
58059
  next(action_0);
57973
58060
  };
@@ -57983,7 +58070,7 @@
57983
58070
  return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
57984
58071
  }
57985
58072
  function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
57986
- this.g9q_1 = $logger;
58073
+ this.f9q_1 = $logger;
57987
58074
  }
57988
58075
  protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
57989
58076
  return action instanceof SceneMechanicAction;
@@ -57994,7 +58081,7 @@
57994
58081
  if (state.u6w()) {
57995
58082
  var sceneInfo = state.t6w().sceneInfo;
57996
58083
  if (!get_isWaitingScene(sceneInfo.p8c_1) && Companion_instance_5.b6x(sceneInfo.p8c_1, action_0.c8a_1) && equals(sceneInfo.s8c_1, action_0.sceneData)) {
57997
- this.g9q_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
58084
+ this.f9q_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
57998
58085
  }
57999
58086
  }
58000
58087
  next(action_0);
@@ -58003,7 +58090,7 @@
58003
58090
  return this.m6p(store, next, action);
58004
58091
  };
58005
58092
  function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
58006
- this.h9q_1 = $logger;
58093
+ this.g9q_1 = $logger;
58007
58094
  }
58008
58095
  protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
58009
58096
  return action instanceof SceneActMechanicAction;
@@ -58014,7 +58101,7 @@
58014
58101
  if (state.u6w()) {
58015
58102
  var sceneInfo = state.t6w().sceneInfo;
58016
58103
  if (Companion_instance_5.b6x(sceneInfo.p8c_1, action_0.g8a_1) && sceneInfo.r8c_1 === action_0.h8a_1 && equals(sceneInfo.t8c_1, action_0.i8a_1)) {
58017
- this.h9q_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
58104
+ this.g9q_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
58018
58105
  }
58019
58106
  }
58020
58107
  next(action_0);
@@ -58074,7 +58161,7 @@
58074
58161
  tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
58075
58162
  }
58076
58163
  function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
58077
- this.i9q_1 = this$0;
58164
+ this.h9q_1 = this$0;
58078
58165
  }
58079
58166
  protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).x6n = function (action) {
58080
58167
  return action instanceof FromClientAction;
@@ -58100,18 +58187,18 @@
58100
58187
  var tmp$ret$1 = item.playerId;
58101
58188
  destination.j(tmp$ret$1);
58102
58189
  }
58103
- this.i9q_1.j9i_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
58190
+ this.h9q_1.j9i_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
58104
58191
  break $l$block_3;
58105
58192
  }
58106
58193
  if (!get_isCreated(store.state)) {
58107
58194
  if (table.sceneInfo.z7k()) {
58108
- this.i9q_1.j9i_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
58195
+ this.h9q_1.j9i_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
58109
58196
  } else {
58110
58197
  var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
58111
- if (this.i9q_1.l9i_1) {
58112
- sendErrorToClient(this.i9q_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
58198
+ if (this.h9q_1.l9i_1) {
58199
+ sendErrorToClient(this.h9q_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
58113
58200
  }
58114
- this.i9q_1.j9i_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
58201
+ this.h9q_1.j9i_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
58115
58202
  }
58116
58203
  break $l$block_3;
58117
58204
  }
@@ -58119,18 +58206,18 @@
58119
58206
  var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y6e_1;
58120
58207
  if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
58121
58208
  var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
58122
- if (this.i9q_1.l9i_1) {
58123
- sendErrorToClient(this.i9q_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
58209
+ if (this.h9q_1.l9i_1) {
58210
+ sendErrorToClient(this.h9q_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
58124
58211
  }
58125
- this.i9q_1.j9i_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
58212
+ this.h9q_1.j9i_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
58126
58213
  break $l$block_3;
58127
58214
  }
58128
- if (this.i9q_1.k9i_1 && checkIfEventIsDuplicated(this.i9q_1, table, tmp4)) {
58215
+ if (this.h9q_1.k9i_1 && checkIfEventIsDuplicated(this.h9q_1, table, tmp4)) {
58129
58216
  var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
58130
- if (this.i9q_1.l9i_1) {
58131
- sendErrorToClient(this.i9q_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
58217
+ if (this.h9q_1.l9i_1) {
58218
+ sendErrorToClient(this.h9q_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
58132
58219
  }
58133
- this.i9q_1.j9i_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
58220
+ this.h9q_1.j9i_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
58134
58221
  break $l$block_3;
58135
58222
  }
58136
58223
  next(tmp4);
@@ -58180,8 +58267,8 @@
58180
58267
  tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
58181
58268
  }
58182
58269
  function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
58183
- this.j9q_1 = $enableCheckWhen;
58184
- this.k9q_1 = this$0;
58270
+ this.i9q_1 = $enableCheckWhen;
58271
+ this.j9q_1 = this$0;
58185
58272
  }
58186
58273
  protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).x6n = function (action) {
58187
58274
  return action instanceof PlayerConnectionUpdateAction;
@@ -58190,7 +58277,7 @@
58190
58277
  var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
58191
58278
  $l$block_1: {
58192
58279
  var state = store.state;
58193
- if (!isEnabledCheck(this.j9q_1, state, tmp4)) {
58280
+ if (!isEnabledCheck(this.i9q_1, state, tmp4)) {
58194
58281
  next(tmp4);
58195
58282
  break $l$block_1;
58196
58283
  }
@@ -58206,23 +58293,23 @@
58206
58293
  var tmp$ret$1 = item.playerId;
58207
58294
  destination.j(tmp$ret$1);
58208
58295
  }
58209
- this.k9q_1.r9i_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
58296
+ this.j9q_1.r9i_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
58210
58297
  break $l$block_1;
58211
58298
  }
58212
58299
  var table = store.state.t6w();
58213
58300
  var player = getPlayer(table.players, tmp4.k9d_1);
58214
58301
  var tmp0_safe_receiver = player.u6z_1.s6e_1;
58215
58302
  var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y6e_1;
58216
- var _destruct__k2r9zo = isDuplicateConnectionState(this.k9q_1, connectionState, tmp4.j9d_1);
58303
+ var _destruct__k2r9zo = isDuplicateConnectionState(this.j9q_1, connectionState, tmp4.j9d_1);
58217
58304
  var duplicate = _destruct__k2r9zo.ne();
58218
58305
  var report = _destruct__k2r9zo.oe();
58219
58306
  if (!(connectionState == null) && duplicate) {
58220
58307
  var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
58221
58308
  if (report) {
58222
- if (this.k9q_1.s9i_1) {
58223
- sendErrorToClient_0(this.k9q_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
58309
+ if (this.j9q_1.s9i_1) {
58310
+ sendErrorToClient_0(this.j9q_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
58224
58311
  }
58225
- this.k9q_1.r9i_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
58312
+ this.j9q_1.r9i_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
58226
58313
  }
58227
58314
  break $l$block_1;
58228
58315
  } else {
@@ -58238,13 +58325,13 @@
58238
58325
  this.r9i_1 = logger;
58239
58326
  this.s9i_1 = sendErrorToClient;
58240
58327
  }
58241
- protoOf(PlayerConnectionValidationMiddlewares).l9q = function (enableCheckWhen) {
58328
+ protoOf(PlayerConnectionValidationMiddlewares).k9q = function (enableCheckWhen) {
58242
58329
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
58243
58330
  return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
58244
58331
  };
58245
58332
  protoOf(PlayerConnectionValidationMiddlewares).t9i = function (enableCheckWhen, $super) {
58246
58333
  enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
58247
- return $super === VOID ? this.l9q(enableCheckWhen) : $super.l9q.call(this, enableCheckWhen);
58334
+ return $super === VOID ? this.k9q(enableCheckWhen) : $super.k9q.call(this, enableCheckWhen);
58248
58335
  };
58249
58336
  function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
58250
58337
  return function () {
@@ -58389,8 +58476,8 @@
58389
58476
  tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
58390
58477
  }
58391
58478
  function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
58392
- this.m9q_1 = $enableCheckWhen;
58393
- this.n9q_1 = this$0;
58479
+ this.l9q_1 = $enableCheckWhen;
58480
+ this.m9q_1 = this$0;
58394
58481
  }
58395
58482
  protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
58396
58483
  return isInterface(action, PlayerAnswerFromClientAction);
@@ -58399,19 +58486,19 @@
58399
58486
  var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
58400
58487
  $l$block_1: {
58401
58488
  var state = store.state;
58402
- if (!isEnabledCheck(this.m9q_1, state, tmp4)) {
58489
+ if (!isEnabledCheck(this.l9q_1, state, tmp4)) {
58403
58490
  next(tmp4);
58404
58491
  break $l$block_1;
58405
58492
  }
58406
58493
  var table = state.t6w();
58407
58494
  var playersWithTurn = filterPlayerTurn(table.players);
58408
58495
  var player = getPlayer(table.players, tmp4.playerId);
58409
- if (isWrongPlayerTurn(this.n9q_1, store, playersWithTurn, player, tmp4)) {
58496
+ if (isWrongPlayerTurn(this.m9q_1, store, playersWithTurn, player, tmp4)) {
58410
58497
  break $l$block_1;
58411
58498
  }
58412
58499
  var tmp;
58413
- if (this.n9q_1.c9i_1.validateFromClientActionTags) {
58414
- tmp = isWrongPlayerTurnTag$default(this.n9q_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.n9q_1, tmp4, table));
58500
+ if (this.m9q_1.c9i_1.validateFromClientActionTags) {
58501
+ tmp = isWrongPlayerTurnTag$default(this.m9q_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.m9q_1, tmp4, table));
58415
58502
  } else {
58416
58503
  tmp = false;
58417
58504
  }
@@ -58425,8 +58512,8 @@
58425
58512
  return this.m6p(store, next, action);
58426
58513
  };
58427
58514
  function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
58428
- this.o9q_1 = $enableCheckWhen;
58429
- this.p9q_1 = this$0;
58515
+ this.n9q_1 = $enableCheckWhen;
58516
+ this.o9q_1 = this$0;
58430
58517
  }
58431
58518
  protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
58432
58519
  return isInterface(action, PlayerTurnAnswerAction);
@@ -58436,17 +58523,17 @@
58436
58523
  $l$block_1: {
58437
58524
  var table = store.state.t6w();
58438
58525
  var player = getPlayerTurn(tmp4, table.players);
58439
- if (player == null || !isEnabledCheck(this.o9q_1, store.state, tmp4)) {
58526
+ if (player == null || !isEnabledCheck(this.n9q_1, store.state, tmp4)) {
58440
58527
  next(tmp4);
58441
58528
  break $l$block_1;
58442
58529
  }
58443
58530
  var playersWithTurn = filterPlayerTurn(table.players);
58444
- if (isWrongPlayerTurn(this.p9q_1, store, playersWithTurn, player, tmp4)) {
58531
+ if (isWrongPlayerTurn(this.o9q_1, store, playersWithTurn, player, tmp4)) {
58445
58532
  break $l$block_1;
58446
58533
  }
58447
58534
  var tmp;
58448
- if (this.p9q_1.c9i_1.validateFromClientActionTags) {
58449
- tmp = isWrongPlayerTurnTag(this.p9q_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.p9q_1, tmp4, table), this.p9q_1.b9i_1);
58535
+ if (this.o9q_1.c9i_1.validateFromClientActionTags) {
58536
+ tmp = isWrongPlayerTurnTag(this.o9q_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.o9q_1, tmp4, table), this.o9q_1.b9i_1);
58450
58537
  } else {
58451
58538
  tmp = false;
58452
58539
  }
@@ -58460,8 +58547,8 @@
58460
58547
  return this.m6p(store, next, action);
58461
58548
  };
58462
58549
  function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
58463
- this.q9q_1 = $enableCheckWhen;
58464
- this.r9q_1 = this$0;
58550
+ this.p9q_1 = $enableCheckWhen;
58551
+ this.q9q_1 = this$0;
58465
58552
  }
58466
58553
  protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
58467
58554
  return isInterface(action, NextPlayerTurnAction);
@@ -58470,7 +58557,7 @@
58470
58557
  var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
58471
58558
  $l$block_1: {
58472
58559
  var state = store.state;
58473
- if (!isEnabledCheck(this.q9q_1, state, tmp4)) {
58560
+ if (!isEnabledCheck(this.p9q_1, state, tmp4)) {
58474
58561
  next(tmp4);
58475
58562
  break $l$block_1;
58476
58563
  }
@@ -58505,7 +58592,7 @@
58505
58592
  destination.j(tmp$ret$3);
58506
58593
  }
58507
58594
  var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.i9f()));
58508
- this.r9q_1.d9i_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
58595
+ this.q9q_1.d9i_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
58509
58596
  } else {
58510
58597
  next(tmp4);
58511
58598
  }
@@ -58533,23 +58620,23 @@
58533
58620
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
58534
58621
  return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
58535
58622
  };
58536
- protoOf(PlayerTurnValidationMiddlewares).s9q = function (enableCheckWhen) {
58623
+ protoOf(PlayerTurnValidationMiddlewares).r9q = function (enableCheckWhen) {
58537
58624
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
58538
58625
  return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
58539
58626
  };
58540
58627
  protoOf(PlayerTurnValidationMiddlewares).h9i = function (enableCheckWhen, $super) {
58541
58628
  enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
58542
- return $super === VOID ? this.s9q(enableCheckWhen) : $super.s9q.call(this, enableCheckWhen);
58629
+ return $super === VOID ? this.r9q(enableCheckWhen) : $super.r9q.call(this, enableCheckWhen);
58543
58630
  };
58544
58631
  function Companion_193() {
58545
- this.t9q_1 = 50;
58632
+ this.s9q_1 = 50;
58546
58633
  }
58547
58634
  var Companion_instance_198;
58548
58635
  function Companion_getInstance_200() {
58549
58636
  return Companion_instance_198;
58550
58637
  }
58551
58638
  function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
58552
- this.u9q_1 = this$0;
58639
+ this.t9q_1 = this$0;
58553
58640
  }
58554
58641
  protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).x6n = function (action) {
58555
58642
  return action instanceof MechanicAction;
@@ -58560,19 +58647,19 @@
58560
58647
  var aid = tmp4.aid;
58561
58648
  if (!store.state.u6w()) {
58562
58649
  if (!(aid == null)) {
58563
- this.u9q_1.o9i_1.nd(aid);
58650
+ this.t9q_1.o9i_1.nd(aid);
58564
58651
  }
58565
58652
  next(tmp4);
58566
58653
  break $l$block_0;
58567
58654
  }
58568
- if (!(aid == null) && this.u9q_1.o9i_1.t1(aid)) {
58569
- this.u9q_1.n9i_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
58655
+ if (!(aid == null) && this.t9q_1.o9i_1.t1(aid)) {
58656
+ this.t9q_1.n9i_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
58570
58657
  break $l$block_0;
58571
58658
  }
58572
58659
  if (!(aid == null)) {
58573
- this.u9q_1.o9i_1.nd(aid);
58574
- if (this.u9q_1.o9i_1.jd_1 > 50) {
58575
- this.u9q_1.o9i_1.od();
58660
+ this.t9q_1.o9i_1.nd(aid);
58661
+ if (this.t9q_1.o9i_1.jd_1 > 50) {
58662
+ this.t9q_1.o9i_1.od();
58576
58663
  }
58577
58664
  }
58578
58665
  next(tmp4);
@@ -58598,12 +58685,12 @@
58598
58685
  protoOf(clearReducer$$inlined$reducerForActionType$1).x6n = function (action) {
58599
58686
  return action instanceof ClearAction;
58600
58687
  };
58601
- protoOf(clearReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
58688
+ protoOf(clearReducer$$inlined$reducerForActionType$1).u9q = function (state, action) {
58602
58689
  action instanceof ClearAction || THROW_CCE();
58603
58690
  return state.e9d(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
58604
58691
  };
58605
58692
  protoOf(clearReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
58606
- return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58693
+ return this.u9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58607
58694
  };
58608
58695
  function fromClientReducer() {
58609
58696
  // Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
@@ -58614,7 +58701,7 @@
58614
58701
  protoOf(fromClientReducer$$inlined$reducerForActionType$1).x6n = function (action) {
58615
58702
  return action instanceof FromClientAction;
58616
58703
  };
58617
- protoOf(fromClientReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
58704
+ protoOf(fromClientReducer$$inlined$reducerForActionType$1).u9q = function (state, action) {
58618
58705
  var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
58619
58706
  var tmp;
58620
58707
  var tmp_0;
@@ -58665,11 +58752,11 @@
58665
58752
  return tmp;
58666
58753
  };
58667
58754
  protoOf(fromClientReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
58668
- return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58755
+ return this.u9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58669
58756
  };
58670
58757
  function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
58671
58758
  return function (tbl) {
58672
- return this$0.h9h_1.c9r(tbl, $action.c8a_1, $action.sceneData, $action.d8a_1, $action.e8a_1);
58759
+ return this$0.h9h_1.b9r(tbl, $action.c8a_1, $action.sceneData, $action.d8a_1, $action.e8a_1);
58673
58760
  };
58674
58761
  }
58675
58762
  function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
@@ -58678,22 +58765,22 @@
58678
58765
  if ($action.d8a_1 == null) {
58679
58766
  tmp = tbl;
58680
58767
  } else {
58681
- tmp = this$0.i9h_1.d9r(tbl, $action);
58768
+ tmp = this$0.i9h_1.c9r(tbl, $action);
58682
58769
  }
58683
58770
  return tmp;
58684
58771
  };
58685
58772
  }
58686
58773
  function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
58687
- this.e9r_1 = this$0;
58774
+ this.d9r_1 = this$0;
58688
58775
  }
58689
58776
  protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).x6n = function (action) {
58690
58777
  return action instanceof MechanicAction;
58691
58778
  };
58692
- protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
58779
+ protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).u9q = function (state, action) {
58693
58780
  var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
58694
- if (this.e9r_1.j9h_1.validateIfMainThread) {
58781
+ if (this.d9r_1.j9h_1.validateIfMainThread) {
58695
58782
  // Inline function 'games.logic.utils.runSafeOnProd' call
58696
- var logger = this.e9r_1.k9h_1;
58783
+ var logger = this.d9r_1.k9h_1;
58697
58784
  var tmp;
58698
58785
  try {
58699
58786
  assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
@@ -58714,50 +58801,50 @@
58714
58801
  }
58715
58802
  var tmp_1;
58716
58803
  if (action_0 instanceof StartGameMechanicAction) {
58717
- tmp_1 = this.e9r_1.b9h_1.h9s(state, action_0);
58804
+ tmp_1 = this.d9r_1.b9h_1.g9s(state, action_0);
58718
58805
  } else {
58719
58806
  if (action_0 instanceof StartNewGameMechanicAction) {
58720
- tmp_1 = this.e9r_1.b9h_1.g9s(state, action_0);
58807
+ tmp_1 = this.d9r_1.b9h_1.f9s(state, action_0);
58721
58808
  } else {
58722
58809
  if (action_0 instanceof ContinueGameMechanicAction) {
58723
- tmp_1 = this.e9r_1.b9h_1.f9s(state, action_0);
58810
+ tmp_1 = this.d9r_1.b9h_1.e9s(state, action_0);
58724
58811
  } else {
58725
58812
  if (action_0 instanceof FinishingGameMechanicAction) {
58726
- tmp_1 = this.e9r_1.b9h_1.e9s(state, action_0);
58813
+ tmp_1 = this.d9r_1.b9h_1.d9s(state, action_0);
58727
58814
  } else {
58728
58815
  if (action_0 instanceof FinishGameMechanicAction) {
58729
- tmp_1 = this.e9r_1.b9h_1.d9s(state, action_0);
58816
+ tmp_1 = this.d9r_1.b9h_1.c9s(state, action_0);
58730
58817
  } else {
58731
58818
  if (action_0 instanceof RestartGameMechanicAction) {
58732
- tmp_1 = this.e9r_1.b9h_1.c9s(state, action_0);
58819
+ tmp_1 = this.d9r_1.b9h_1.b9s(state, action_0);
58733
58820
  } else {
58734
58821
  if (action_0 instanceof ErrorAction) {
58735
- tmp_1 = this.e9r_1.b9h_1.b9s(state, action_0);
58822
+ tmp_1 = this.d9r_1.b9h_1.a9s(state, action_0);
58736
58823
  } else {
58737
58824
  if (action_0 instanceof TeamsDataMechanicAction) {
58738
- tmp_1 = state.e9d(state.t6w().copy(VOID, VOID, VOID, VOID, this.e9r_1.c9h_1.a9s(state.t6w().players, action_0)));
58825
+ tmp_1 = state.e9d(state.t6w().copy(VOID, VOID, VOID, VOID, this.d9r_1.c9h_1.z9r(state.t6w().players, action_0)));
58739
58826
  } else {
58740
58827
  if (action_0 instanceof SuitChoiceMechanicAction) {
58741
- tmp_1 = this.e9r_1.d9h_1.z9r(state, action_0);
58828
+ tmp_1 = this.d9r_1.d9h_1.y9r(state, action_0);
58742
58829
  } else {
58743
58830
  if (action_0 instanceof TrumpMechanicAction) {
58744
- tmp_1 = this.e9r_1.d9h_1.y9r(state, action_0);
58831
+ tmp_1 = this.d9r_1.d9h_1.x9r(state, action_0);
58745
58832
  } else {
58746
58833
  if (action_0 instanceof CombinationChoiceMechanicAction) {
58747
- tmp_1 = this.e9r_1.f9h_1.v9r(state, action_0);
58834
+ tmp_1 = this.d9r_1.f9h_1.u9r(state, action_0);
58748
58835
  } else {
58749
58836
  if (action_0 instanceof PutCardMechanicAction) {
58750
- tmp_1 = this.e9r_1.e9h_1.u9r(state, action_0);
58837
+ tmp_1 = this.d9r_1.e9h_1.t9r(state, action_0);
58751
58838
  } else {
58752
58839
  if (action_0 instanceof PickUpBribeMechanicAction) {
58753
- tmp_1 = this.e9r_1.e9h_1.t9r(state, action_0);
58840
+ tmp_1 = this.d9r_1.e9h_1.s9r(state, action_0);
58754
58841
  } else {
58755
58842
  if (action_0 instanceof WinnerCombinationsMechanicAction) {
58756
- tmp_1 = this.e9r_1.f9h_1.l9r(state, action_0);
58843
+ tmp_1 = this.d9r_1.f9h_1.k9r(state, action_0);
58757
58844
  } else {
58758
58845
  if (action_0 instanceof SceneMechanicAction) {
58759
- var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.e9r_1, action_0);
58760
- var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.e9r_1)]);
58846
+ var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.d9r_1, action_0);
58847
+ var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.d9r_1)]);
58761
58848
  // Inline function 'kotlin.collections.fold' call
58762
58849
  var accumulator = state.t6w();
58763
58850
  var _iterator__ex2g4s = tmp0.l();
@@ -58769,13 +58856,13 @@
58769
58856
  tmp_1 = state.e9d(tmp$ret$3);
58770
58857
  } else {
58771
58858
  if (action_0 instanceof SceneActMechanicAction) {
58772
- tmp_1 = state.e9d(this.e9r_1.i9h_1.d9r(state.t6w(), action_0));
58859
+ tmp_1 = state.e9d(this.d9r_1.i9h_1.c9r(state.t6w(), action_0));
58773
58860
  } else {
58774
58861
  if (action_0 instanceof PlayerReadyMechanicAction) {
58775
- tmp_1 = state.e9d(this.e9r_1.g9h_1.f9r(state.t6w(), action_0));
58862
+ tmp_1 = state.e9d(this.d9r_1.g9h_1.e9r(state.t6w(), action_0));
58776
58863
  } else {
58777
58864
  if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
58778
- tmp_1 = state.e9d(this.e9r_1.g9h_1.l9a(state.t6w(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
58865
+ tmp_1 = state.e9d(this.d9r_1.g9h_1.l9a(state.t6w(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
58779
58866
  } else {
58780
58867
  if (action_0 instanceof MessageMechanicAction) {
58781
58868
  tmp_1 = state;
@@ -58803,7 +58890,7 @@
58803
58890
  return tmp_1;
58804
58891
  };
58805
58892
  protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
58806
- return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58893
+ return this.u9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58807
58894
  };
58808
58895
  function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
58809
58896
  this.b9h_1 = gameLifecycleReducer;
@@ -58830,7 +58917,7 @@
58830
58917
  protoOf(timerReducer$$inlined$reducerForActionType$1).x6n = function (action) {
58831
58918
  return action instanceof TimerAction;
58832
58919
  };
58833
- protoOf(timerReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
58920
+ protoOf(timerReducer$$inlined$reducerForActionType$1).u9q = function (state, action) {
58834
58921
  var action_0 = action instanceof TimerAction ? action : THROW_CCE();
58835
58922
  var tmp;
58836
58923
  if (action_0 instanceof StartTimerAction) {
@@ -58858,7 +58945,7 @@
58858
58945
  return tmp;
58859
58946
  };
58860
58947
  protoOf(timerReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
58861
- return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58948
+ return this.u9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
58862
58949
  };
58863
58950
  function playerTurnReducer($this, action, table) {
58864
58951
  var tmp0 = action.actData;
@@ -58963,7 +59050,7 @@
58963
59050
  }
58964
59051
  function SceneActReducer() {
58965
59052
  }
58966
- protoOf(SceneActReducer).d9r = function (table, action) {
59053
+ protoOf(SceneActReducer).c9r = function (table, action) {
58967
59054
  var tmp;
58968
59055
  if (action.actId === 'WAITING_ACT') {
58969
59056
  tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.m8z(VOID, VOID, action.actId, VOID, action.actData));
@@ -59000,47 +59087,47 @@
59000
59087
  function MechanicLifecycleReducer() {
59001
59088
  }
59002
59089
  function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
59003
- this.i9s_1 = tableLifecycleReducer;
59004
- this.j9s_1 = randomPoolProvider;
59090
+ this.h9s_1 = tableLifecycleReducer;
59091
+ this.i9s_1 = randomPoolProvider;
59005
59092
  }
59006
- protoOf(BaseMechanicLifecycleReducer).f9s = function (state, action) {
59093
+ protoOf(BaseMechanicLifecycleReducer).e9s = function (state, action) {
59007
59094
  var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
59008
59095
  var tmp1_tableOrNull = action.n89_1;
59009
59096
  var tmp2_payload = action.p89_1;
59010
59097
  return state.e9d(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
59011
59098
  };
59012
- protoOf(BaseMechanicLifecycleReducer).g9s = function (state, action) {
59013
- this.j9s_1.g5n(action.previousGameId);
59099
+ protoOf(BaseMechanicLifecycleReducer).f9s = function (state, action) {
59100
+ this.i9s_1.g5n(action.previousGameId);
59014
59101
  return state;
59015
59102
  };
59016
- protoOf(BaseMechanicLifecycleReducer).e9s = function (state, action) {
59103
+ protoOf(BaseMechanicLifecycleReducer).d9s = function (state, action) {
59017
59104
  var tmp0_safe_receiver = state.r6v_1;
59018
59105
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
59019
59106
  if (tmp1_safe_receiver == null)
59020
59107
  null;
59021
59108
  else {
59022
59109
  // Inline function 'kotlin.apply' call
59023
- this.j9s_1.g5n(tmp1_safe_receiver);
59110
+ this.i9s_1.g5n(tmp1_safe_receiver);
59024
59111
  }
59025
59112
  return state.e9d(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.r89_1, action.t89_1));
59026
59113
  };
59027
- protoOf(BaseMechanicLifecycleReducer).d9s = function (state, action) {
59114
+ protoOf(BaseMechanicLifecycleReducer).c9s = function (state, action) {
59028
59115
  var tmp = GameLifecycleState_FINISHED_getInstance();
59029
59116
  var tmp0_safe_receiver = state.t6v_1;
59030
59117
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g9d(action.v89_1);
59031
59118
  return state.e9d(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.v89_1) : tmp1_elvis_lhs);
59032
59119
  };
59033
- protoOf(BaseMechanicLifecycleReducer).c9s = function (state, action) {
59034
- return state.e9d(this.i9s_1.k9s(state.t6w()));
59035
- };
59036
59120
  protoOf(BaseMechanicLifecycleReducer).b9s = function (state, action) {
59121
+ return state.e9d(this.h9s_1.j9s(state.t6w()));
59122
+ };
59123
+ protoOf(BaseMechanicLifecycleReducer).a9s = function (state, action) {
59037
59124
  var tmp0_safe_receiver = state.r6v_1;
59038
59125
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
59039
59126
  if (tmp1_safe_receiver == null)
59040
59127
  null;
59041
59128
  else {
59042
59129
  // Inline function 'kotlin.apply' call
59043
- this.j9s_1.g5n(tmp1_safe_receiver);
59130
+ this.i9s_1.g5n(tmp1_safe_receiver);
59044
59131
  }
59045
59132
  var tmp = GameLifecycleState_FINISHED_getInstance();
59046
59133
  var tmp2_safe_receiver = state.t6v_1;
@@ -59060,19 +59147,19 @@
59060
59147
  return value1.id === value2.id;
59061
59148
  }
59062
59149
  function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
59063
- this.l9s_1 = pointsInteractor;
59064
- this.m9s_1 = playerHappinessProvider;
59065
- this.n9s_1 = logger;
59066
- this.o9s_1 = dealerConfig;
59150
+ this.k9s_1 = pointsInteractor;
59151
+ this.l9s_1 = playerHappinessProvider;
59152
+ this.m9s_1 = logger;
59153
+ this.n9s_1 = dealerConfig;
59067
59154
  }
59068
- protoOf(PlayerHandReducer).p9s = function (playerId, hand, cards, combinations, selectedTrump, config) {
59155
+ protoOf(PlayerHandReducer).o9s = function (playerId, hand, cards, combinations, selectedTrump, config) {
59069
59156
  // Inline function 'kotlin.collections.map' call
59070
59157
  // Inline function 'kotlin.collections.mapTo' call
59071
59158
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
59072
59159
  var _iterator__ex2g4s = combinations.l();
59073
59160
  while (_iterator__ex2g4s.m()) {
59074
59161
  var item = _iterator__ex2g4s.n();
59075
- var tmp$ret$0 = mapToRecord(item, this.l9s_1.d98(item));
59162
+ var tmp$ret$0 = mapToRecord(item, this.k9s_1.d98(item));
59076
59163
  destination.j(tmp$ret$0);
59077
59164
  }
59078
59165
  var combinationRecords = destination;
@@ -59107,8 +59194,8 @@
59107
59194
  return hand.m78(VOID, VOID, plus(hand.p75_1, combinationRecords), plus(hand.q75_1, combinationRecords));
59108
59195
  }
59109
59196
  var tmp0_elvis_lhs = config.dealerStrategy;
59110
- var dealerStrategy = tmp0_elvis_lhs == null ? this.o9s_1.dealerStrategy : tmp0_elvis_lhs;
59111
- var tmp_0 = this.l9s_1.c98(cards, selectedTrump, dealerStrategy);
59197
+ var dealerStrategy = tmp0_elvis_lhs == null ? this.n9s_1.dealerStrategy : tmp0_elvis_lhs;
59198
+ var tmp_0 = this.k9s_1.c98(cards, selectedTrump, dealerStrategy);
59112
59199
  // Inline function 'kotlin.collections.map' call
59113
59200
  // Inline function 'kotlin.collections.mapTo' call
59114
59201
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
@@ -59119,11 +59206,11 @@
59119
59206
  destination_0.j(tmp$ret$5);
59120
59207
  }
59121
59208
  var value = tmp_0 + sum(destination_0);
59122
- var luckyFactor = this.m9s_1.y91(value, config.playersMode, dealerStrategy);
59123
- Companion_instance_194.b98(this.n9s_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.w75() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
59209
+ var luckyFactor = this.l9s_1.y91(value, config.playersMode, dealerStrategy);
59210
+ Companion_instance_194.b98(this.m9s_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.w75() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
59124
59211
  return hand.m78(VOID, plus(hand.o75_1, listOf(Companion_instance_18.e78(luckyFactor, value))), plus(hand.p75_1, combinationRecords), plus(hand.q75_1, combinationRecords));
59125
59212
  };
59126
- protoOf(PlayerHandReducer).q9s = function (hand, combinations) {
59213
+ protoOf(PlayerHandReducer).p9s = function (hand, combinations) {
59127
59214
  // Inline function 'kotlin.collections.map' call
59128
59215
  var this_0 = filterWithFirstCardOrBela(combinations);
59129
59216
  // Inline function 'kotlin.collections.mapTo' call
@@ -59131,20 +59218,20 @@
59131
59218
  var _iterator__ex2g4s = this_0.l();
59132
59219
  while (_iterator__ex2g4s.m()) {
59133
59220
  var item = _iterator__ex2g4s.n();
59134
- var tmp$ret$0 = mapToRecord(item, this.l9s_1.d98(item));
59221
+ var tmp$ret$0 = mapToRecord(item, this.k9s_1.d98(item));
59135
59222
  destination.j(tmp$ret$0);
59136
59223
  }
59137
59224
  var combinationRecords = destination;
59138
59225
  var tmp = updateOrAddItems(hand.p75_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
59139
59226
  return hand.m78(VOID, VOID, tmp, updateOrAddItems(hand.q75_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
59140
59227
  };
59141
- protoOf(PlayerHandReducer).r9s = function (playerId, hand, updatedCombinations, config) {
59228
+ protoOf(PlayerHandReducer).q9s = function (playerId, hand, updatedCombinations, config) {
59142
59229
  if (updatedCombinations.q()) {
59143
59230
  return hand;
59144
59231
  }
59145
59232
  var previousFactor = hand.z75();
59146
59233
  if (previousFactor.y75_1 === 0.0) {
59147
- return this.q9s(hand, updatedCombinations);
59234
+ return this.p9s(hand, updatedCombinations);
59148
59235
  }
59149
59236
  // Inline function 'kotlin.collections.map' call
59150
59237
  // Inline function 'kotlin.collections.mapTo' call
@@ -59152,7 +59239,7 @@
59152
59239
  var _iterator__ex2g4s = updatedCombinations.l();
59153
59240
  while (_iterator__ex2g4s.m()) {
59154
59241
  var item = _iterator__ex2g4s.n();
59155
- var tmp$ret$0 = mapToRecord(item, this.l9s_1.d98(item));
59242
+ var tmp$ret$0 = mapToRecord(item, this.k9s_1.d98(item));
59156
59243
  destination.j(tmp$ret$0);
59157
59244
  }
59158
59245
  var updatedCombinationRecords = destination;
@@ -59212,9 +59299,9 @@
59212
59299
  }
59213
59300
  var updatedValue = tmp_0 + sum(destination_2);
59214
59301
  var tmp0_elvis_lhs = config.dealerStrategy;
59215
- var dealerStrategy = tmp0_elvis_lhs == null ? this.o9s_1.dealerStrategy : tmp0_elvis_lhs;
59216
- var updatedLuckyFactor = this.m9s_1.y91(updatedValue, config.playersMode, dealerStrategy);
59217
- Companion_instance_194.b98(this.n9s_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.w75() + ', ') + ('value: ' + updatedValue + ', '));
59302
+ var dealerStrategy = tmp0_elvis_lhs == null ? this.n9s_1.dealerStrategy : tmp0_elvis_lhs;
59303
+ var updatedLuckyFactor = this.l9s_1.y91(updatedValue, config.playersMode, dealerStrategy);
59304
+ Companion_instance_194.b98(this.m9s_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.w75() + ', ') + ('value: ' + updatedValue + ', '));
59218
59305
  // Inline function 'kotlin.collections.map' call
59219
59306
  var this_0 = hand.o75_1;
59220
59307
  // Inline function 'kotlin.collections.mapTo' call
@@ -59244,7 +59331,7 @@
59244
59331
  protoOf(PlayerSceneReducer).g9c = function (player, cards, whoShuffleCardsPlayerId) {
59245
59332
  return player.c75(VOID, VOID, cards, player.w6z_1.h79(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
59246
59333
  };
59247
- protoOf(PlayerSceneReducer).s9s = function (player, distributedCards, combinations, config, players, selectedTrump) {
59334
+ protoOf(PlayerSceneReducer).r9s = function (player, distributedCards, combinations, config, players, selectedTrump) {
59248
59335
  // Inline function 'kotlin.collections.map' call
59249
59336
  // Inline function 'kotlin.collections.mapTo' call
59250
59337
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
@@ -59257,7 +59344,7 @@
59257
59344
  }
59258
59345
  var detailedCombinations = destination;
59259
59346
  var cards = plus(player.v6z_1, distributedCards);
59260
- var hand = this.f9c_1.p9s(player.playerId, player.x6z_1, cards, detailedCombinations, selectedTrump, config);
59347
+ var hand = this.f9c_1.o9s(player.playerId, player.x6z_1, cards, detailedCombinations, selectedTrump, config);
59261
59348
  var tmp;
59262
59349
  // Inline function 'kotlin.collections.isNotEmpty' call
59263
59350
  if (!combinations.q()) {
@@ -59268,7 +59355,7 @@
59268
59355
  var tmp0_points = tmp;
59269
59356
  return player.c75(VOID, VOID, cards, VOID, hand, tmp0_points);
59270
59357
  };
59271
- protoOf(PlayerSceneReducer).t9s = function (player, sceneData) {
59358
+ protoOf(PlayerSceneReducer).s9s = function (player, sceneData) {
59272
59359
  // Inline function 'kotlin.collections.single' call
59273
59360
  var single = null;
59274
59361
  var found = false;
@@ -59310,7 +59397,7 @@
59310
59397
  var tmp10_earnedPoints = playerPointsCell.e7b_1;
59311
59398
  var tmp11_earnedCards = emptyList();
59312
59399
  var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
59313
- var tmp15_hand = this.f9c_1.q9s(player.x6z_1, updatedCombinations);
59400
+ var tmp15_hand = this.f9c_1.p9s(player.x6z_1, updatedCombinations);
59314
59401
  return player.c75(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
59315
59402
  };
59316
59403
  function refreshStartFromTime($this, playerState, config) {
@@ -59355,7 +59442,7 @@
59355
59442
  this.h9a_1 = gameHistoryReducer;
59356
59443
  this.i9a_1 = engineLogicConfig;
59357
59444
  }
59358
- protoOf(PlayerTurnMechanicReducer).u9s = function (table, model) {
59445
+ protoOf(PlayerTurnMechanicReducer).t9s = function (table, model) {
59359
59446
  // Inline function 'com.logic.utils.copy' call
59360
59447
  var this_0 = table.players;
59361
59448
  // Inline function 'kotlin.apply' call
@@ -59383,7 +59470,7 @@
59383
59470
  this.g9a_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
59384
59471
  return newTable;
59385
59472
  };
59386
- protoOf(PlayerTurnMechanicReducer).v9s = function (table, model) {
59473
+ protoOf(PlayerTurnMechanicReducer).u9s = function (table, model) {
59387
59474
  var player = getPlayer(table.players, model.f6d());
59388
59475
  if (player.u6z_1.r6e_1 == null) {
59389
59476
  this.g9a_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.r76_1));
@@ -59394,11 +59481,11 @@
59394
59481
  this.g9a_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
59395
59482
  return newTable;
59396
59483
  };
59397
- protoOf(PlayerTurnMechanicReducer).f9r = function (table, action) {
59484
+ protoOf(PlayerTurnMechanicReducer).e9r = function (table, action) {
59398
59485
  var player = getPlayer(table.players, action.o8a_1);
59399
59486
  return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.c75(VOID, player.u6z_1.f6g(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
59400
59487
  };
59401
- protoOf(PlayerTurnMechanicReducer).w9s = function (table) {
59488
+ protoOf(PlayerTurnMechanicReducer).v9s = function (table) {
59402
59489
  // Inline function 'kotlin.collections.map' call
59403
59490
  var this_0 = table.players;
59404
59491
  // Inline function 'kotlin.collections.mapTo' call
@@ -59434,7 +59521,7 @@
59434
59521
  var tmp7_waitPlayerUntilTime = tmp_0;
59435
59522
  tmp = tmp6_$this.f6g(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
59436
59523
  }
59437
- return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.c75(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h9a_1.b9t(playerId, previousConnection, newPlayerConnection, table.gameHistory));
59524
+ return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.c75(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h9a_1.a9t(playerId, previousConnection, newPlayerConnection, table.gameHistory));
59438
59525
  };
59439
59526
  protoOf(PlayerTurnMechanicReducer).j9a = function (config) {
59440
59527
  return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.g9a_1);
@@ -59469,7 +59556,7 @@
59469
59556
  var _iterator__ex2g4s = players.l();
59470
59557
  while (_iterator__ex2g4s.m()) {
59471
59558
  var item = _iterator__ex2g4s.n();
59472
- var tmp$ret$1 = $this.w9q_1.g9c(item, getValue(scene.c7l_1, item.playerId), scene.g7l_1);
59559
+ var tmp$ret$1 = $this.v9q_1.g9c(item, getValue(scene.c7l_1, item.playerId), scene.g7l_1);
59473
59560
  destination.j(tmp$ret$1);
59474
59561
  }
59475
59562
 
@@ -59490,12 +59577,12 @@
59490
59577
  }
59491
59578
 
59492
59579
  var tmp7_requestedCardDecks = tmp_0;
59493
- var tmp1_$this = $this.z9q_1;
59580
+ var tmp1_$this = $this.y9q_1;
59494
59581
  var tmp2_gameHistory = table.gameHistory;
59495
59582
  var tmp3_playersCards = scene.c7l_1;
59496
59583
  var tmp4_whoShuffleCardsPlayerId = scene.g7l_1;
59497
59584
  var tmp5_randomData = scene.d7l_1;
59498
- var tmp8_gameHistory = tmp1_$this.c9t(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
59585
+ var tmp8_gameHistory = tmp1_$this.b9t(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
59499
59586
  return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
59500
59587
  case 'EARN_POINTS':
59501
59588
  var tmp$ret$5;
@@ -59513,7 +59600,7 @@
59513
59600
  var tmp10_newPlayersCards = scene_0.i7l_1;
59514
59601
  var tmp11_cardDeck = table.requireCardDeck;
59515
59602
  var tmp12_config = table.config;
59516
- var updatedCardDeck = $this.d9t(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
59603
+ var updatedCardDeck = $this.c9t(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
59517
59604
  // Inline function 'kotlin.collections.map' call
59518
59605
 
59519
59606
  // Inline function 'kotlin.collections.mapTo' call
@@ -59522,21 +59609,21 @@
59522
59609
  var _iterator__ex2g4s_0 = players.l();
59523
59610
  while (_iterator__ex2g4s_0.m()) {
59524
59611
  var item_0 = _iterator__ex2g4s_0.n();
59525
- var tmp2_$this = $this.w9q_1;
59612
+ var tmp2_$this = $this.v9q_1;
59526
59613
  var tmp3_config = table.config;
59527
59614
  var tmp4_distributedCards = getValue(scene_0.i7l_1, item_0.playerId);
59528
59615
  var tmp0_safe_receiver = scene_0.j7l_1;
59529
59616
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
59530
59617
  var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
59531
59618
  var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
59532
- var tmp$ret$6 = tmp2_$this.s9s(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
59619
+ var tmp$ret$6 = tmp2_$this.r9s(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
59533
59620
  destination_0.j(tmp$ret$6);
59534
59621
  }
59535
59622
 
59536
- var tmp13_$this = $this.z9q_1;
59623
+ var tmp13_$this = $this.y9q_1;
59537
59624
  var tmp14_gameHistory = table.gameHistory;
59538
59625
  var tmp15_playersCards = scene_0.i7l_1;
59539
- var tmp17_gameHistory = tmp13_$this.e9t(tmp15_playersCards, tmp14_gameHistory);
59626
+ var tmp17_gameHistory = tmp13_$this.d9t(tmp15_playersCards, tmp14_gameHistory);
59540
59627
  return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
59541
59628
  case 'CALC_POINTS':
59542
59629
  var tmp$ret$9;
@@ -59559,12 +59646,12 @@
59559
59646
  var _iterator__ex2g4s_1 = players.l();
59560
59647
  while (_iterator__ex2g4s_1.m()) {
59561
59648
  var item_1 = _iterator__ex2g4s_1.n();
59562
- var tmp$ret$10 = $this.w9q_1.t9s(item_1, calcPointsSceneData);
59649
+ var tmp$ret$10 = $this.v9q_1.s9s(item_1, calcPointsSceneData);
59563
59650
  destination_1.j(tmp$ret$10);
59564
59651
  }
59565
59652
 
59566
59653
  var updatedPlayers = destination_1;
59567
- var tmp19_$this = $this.z9q_1;
59654
+ var tmp19_$this = $this.y9q_1;
59568
59655
  var tmp20_gameHistory = table.gameHistory;
59569
59656
  var tmp21_points = calcPointsSceneData.x7k_1;
59570
59657
  var tmp22_roundContractState = calcPointsSceneData.b7l(whoChoseSuitPlayerId);
@@ -59604,7 +59691,7 @@
59604
59691
 
59605
59692
  var tmp26_playersGameAnalytics = tmp_3;
59606
59693
  var tmp27_playersAchievements = calcPointsSceneData.y7k_1;
59607
- var tmp28_gameHistory = tmp19_$this.f9t(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
59694
+ var tmp28_gameHistory = tmp19_$this.e9t(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
59608
59695
  return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
59609
59696
  default:
59610
59697
  throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
@@ -59636,30 +59723,30 @@
59636
59723
  }
59637
59724
  function SceneReducer$onPreviousScene$lambda(this$0) {
59638
59725
  return function (tbl) {
59639
- return this$0.x9q_1.w9s(tbl);
59726
+ return this$0.w9q_1.v9s(tbl);
59640
59727
  };
59641
59728
  }
59642
59729
  function SceneReducer$onPreviousScene$lambda_0(this$0) {
59643
59730
  return function (tbl) {
59644
- return this$0.y9q_1.g9t(tbl);
59731
+ return this$0.x9q_1.f9t(tbl);
59645
59732
  };
59646
59733
  }
59647
59734
  function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
59648
- this.w9q_1 = playerSceneReducer;
59649
- this.x9q_1 = playerTurnMechanicReducer;
59650
- this.y9q_1 = tableLifecycleReducer;
59651
- this.z9q_1 = gameHistoryReducer;
59652
- this.a9r_1 = dealerReducer;
59653
- this.b9r_1 = gameParamsProvider;
59654
- }
59655
- protoOf(SceneReducer).c9r = function (table, sceneId, sceneData, actId, actData) {
59735
+ this.v9q_1 = playerSceneReducer;
59736
+ this.w9q_1 = playerTurnMechanicReducer;
59737
+ this.x9q_1 = tableLifecycleReducer;
59738
+ this.y9q_1 = gameHistoryReducer;
59739
+ this.z9q_1 = dealerReducer;
59740
+ this.a9r_1 = gameParamsProvider;
59741
+ }
59742
+ protoOf(SceneReducer).b9r = function (table, sceneId, sceneData, actId, actData) {
59656
59743
  var previousSceneId = table.sceneInfo.p8c_1;
59657
59744
  if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.s8c_1, sceneData)) {
59658
59745
  throw new MechanicException('Payload was set twice');
59659
59746
  }
59660
59747
  return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
59661
59748
  };
59662
- protoOf(SceneReducer).d9t = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
59749
+ protoOf(SceneReducer).c9t = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
59663
59750
  // Inline function 'kotlin.collections.map' call
59664
59751
  // Inline function 'kotlin.collections.mapTo' call
59665
59752
  var destination = ArrayList_init_$Create$(newPlayersCards.o());
@@ -59673,19 +59760,19 @@
59673
59760
  // Inline function 'kotlin.let' call
59674
59761
  var it = flatten(destination);
59675
59762
  var tmp;
59676
- if (this.b9r_1.z92(config)) {
59677
- tmp = this.a9r_1.h5v(it, cardDeck.u7z_1);
59763
+ if (this.a9r_1.z92(config)) {
59764
+ tmp = this.z9q_1.h5v(it, cardDeck.u7z_1);
59678
59765
  } else {
59679
59766
  tmp = it;
59680
59767
  }
59681
59768
  var playersCardsToRemove = tmp;
59682
59769
  var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
59683
- var cards = this.a9r_1.g5v(cardDeck.t7z_1, cardsToRemove);
59770
+ var cards = this.z9q_1.g5v(cardDeck.t7z_1, cardsToRemove);
59684
59771
  return cardDeck.z8v(cards, VOID, newTopOpenedCard);
59685
59772
  };
59686
59773
  function TeamsMechanicReducer() {
59687
59774
  }
59688
- protoOf(TeamsMechanicReducer).a9s = function (players, action) {
59775
+ protoOf(TeamsMechanicReducer).z9r = function (players, action) {
59689
59776
  // Inline function 'kotlin.collections.map' call
59690
59777
  var this_0 = action.k8a_1.k6g_1;
59691
59778
  // Inline function 'kotlin.collections.mapTo' call
@@ -59725,10 +59812,10 @@
59725
59812
  return destination_1;
59726
59813
  };
59727
59814
  function TradeMechanicReducer(logger, gameHistoryReducer) {
59728
- this.w9r_1 = logger;
59729
- this.x9r_1 = gameHistoryReducer;
59815
+ this.v9r_1 = logger;
59816
+ this.w9r_1 = gameHistoryReducer;
59730
59817
  }
59731
- protoOf(TradeMechanicReducer).z9r = function (state, action) {
59818
+ protoOf(TradeMechanicReducer).y9r = function (state, action) {
59732
59819
  var table = state.t6w();
59733
59820
  // Inline function 'kotlin.with' call
59734
59821
  var player = getPlayer(table.players, action.s8a_1);
@@ -59736,7 +59823,7 @@
59736
59823
  var it = player.w6z_1.f79();
59737
59824
  var tmp;
59738
59825
  if (it == null) {
59739
- this.w9r_1.w(VOID, "Can't support this circle increment");
59826
+ this.v9r_1.w(VOID, "Can't support this circle increment");
59740
59827
  tmp = player.w6z_1.y74_1;
59741
59828
  } else {
59742
59829
  tmp = it;
@@ -59764,17 +59851,17 @@
59764
59851
  destination.j(tmp$ret$2);
59765
59852
  }
59766
59853
  var tmp_2 = destination;
59767
- var tmp0_$this = this.x9r_1;
59854
+ var tmp0_$this = this.w9r_1;
59768
59855
  var tmp1_playerId = player.playerId;
59769
59856
  var tmp2_suit = action.q8a_1;
59770
59857
  var tmp3_gameHistory = table.gameHistory;
59771
59858
  var tmp4_players = table.players;
59772
59859
  var tmp5_playersMode = table.config.playersMode;
59773
- tmp_0 = state.e9d(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.h9t(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
59860
+ tmp_0 = state.e9d(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.g9t(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
59774
59861
  }
59775
59862
  return tmp_0;
59776
59863
  };
59777
- protoOf(TradeMechanicReducer).y9r = function (state, action) {
59864
+ protoOf(TradeMechanicReducer).x9r = function (state, action) {
59778
59865
  var table = state.t6w();
59779
59866
  // Inline function 'kotlin.collections.map' call
59780
59867
  var this_0 = table.players;
@@ -59792,13 +59879,13 @@
59792
59879
  return valueToFind.h7a_1 === value.h7a_1;
59793
59880
  }
59794
59881
  function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
59795
- this.g9r_1 = teamsLogicProvider;
59796
- this.h9r_1 = combinationsInteractor;
59797
- this.i9r_1 = dealerReducer;
59798
- this.j9r_1 = playerHandReducer;
59799
- this.k9r_1 = gameHistoryReducer;
59882
+ this.f9r_1 = teamsLogicProvider;
59883
+ this.g9r_1 = combinationsInteractor;
59884
+ this.h9r_1 = dealerReducer;
59885
+ this.i9r_1 = playerHandReducer;
59886
+ this.j9r_1 = gameHistoryReducer;
59800
59887
  }
59801
- protoOf(CombinationsMechanicReducer).i9t = function (whoGotBribePlayerId, playerCombinations, players, config) {
59888
+ protoOf(CombinationsMechanicReducer).h9t = function (whoGotBribePlayerId, playerCombinations, players, config) {
59802
59889
  var bellaCombination = first(playerCombinations.h8x_1);
59803
59890
  var player = getPlayer(players, playerCombinations.g8x_1);
59804
59891
  if (bellaCombination.j7a_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
@@ -59807,7 +59894,7 @@
59807
59894
  var tmp;
59808
59895
  if (config.rules.protectBella) {
59809
59896
  var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
59810
- var partnerGotBribe = config.playersMode.isTeamGame && this.g9r_1.n91(player.playerId, players).playerId === whoGotBribePlayerId;
59897
+ var partnerGotBribe = config.playersMode.isTeamGame && this.f9r_1.n91(player.playerId, players).playerId === whoGotBribePlayerId;
59811
59898
  var tmp_0;
59812
59899
  if (playerWithBellaGotBribe || partnerGotBribe) {
59813
59900
  tmp_0 = bellaCombination.t7a(VOID, VOID, CombinationState_ACCEPTED_getInstance());
@@ -59821,7 +59908,7 @@
59821
59908
  return tmp;
59822
59909
  }
59823
59910
  };
59824
- protoOf(CombinationsMechanicReducer).l9r = function (state, action) {
59911
+ protoOf(CombinationsMechanicReducer).k9r = function (state, action) {
59825
59912
  var table = state.t6w();
59826
59913
  var players = table.players;
59827
59914
  var config = table.config;
@@ -59852,7 +59939,7 @@
59852
59939
  }
59853
59940
  var passedPlayersCombinations = destination;
59854
59941
  // Inline function 'kotlin.collections.filterNot' call
59855
- var tmp0 = this.h9r_1.n95(players);
59942
+ var tmp0 = this.g9r_1.n95(players);
59856
59943
  // Inline function 'kotlin.collections.filterNotTo' call
59857
59944
  var destination_1 = ArrayList_init_$Create$_0();
59858
59945
  var _iterator__ex2g4s_1 = tmp0.l();
@@ -59899,10 +59986,10 @@
59899
59986
  var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
59900
59987
  var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
59901
59988
  var updatedCombinations = plus(tmp_0, tmp$ret$18);
59902
- var tmp0_$this = this.j9r_1;
59989
+ var tmp0_$this = this.i9r_1;
59903
59990
  var tmp1_playerId = item_1.playerId;
59904
59991
  var tmp2_hand = item_1.x6z_1;
59905
- var tmp_1 = tmp0_$this.r9s(tmp1_playerId, tmp2_hand, updatedCombinations, config);
59992
+ var tmp_1 = tmp0_$this.q9s(tmp1_playerId, tmp2_hand, updatedCombinations, config);
59906
59993
  tmp = item_1.c75(VOID, VOID, VOID, VOID, tmp_1, item_1.y6z_1.j79(VOID, updateOrAddItems(item_1.y6z_1.b76_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
59907
59994
  } else {
59908
59995
  tmp = item_1;
@@ -59910,9 +59997,9 @@
59910
59997
  var tmp$ret$19 = tmp;
59911
59998
  destination_4.j(tmp$ret$19);
59912
59999
  }
59913
- return state.e9d(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.k9r_1.j9t(action.j8b_1, table.gameHistory)));
60000
+ return state.e9d(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.j9r_1.i9t(action.j8b_1, table.gameHistory)));
59914
60001
  };
59915
- protoOf(CombinationsMechanicReducer).v9r = function (state, action) {
60002
+ protoOf(CombinationsMechanicReducer).u9r = function (state, action) {
59916
60003
  var table = state.t6w();
59917
60004
  var player = getPlayer(table.players, action.z8a_1);
59918
60005
  // Inline function 'kotlin.collections.map' call
@@ -59967,13 +60054,13 @@
59967
60054
  // Inline function 'kotlin.let' call
59968
60055
 
59969
60056
  var cards = player.v6z_1;
59970
- var newCards = this.i9r_1.h5v(cards, trumpSevenCard);
59971
- var tmp1_cards = this.i9r_1.i5v(newCards, trumpCard);
60057
+ var newCards = this.h9r_1.h5v(cards, trumpSevenCard);
60058
+ var tmp1_cards = this.h9r_1.i5v(newCards, trumpCard);
59972
60059
  var tmp3_players = updateItem(table.players, player.c75(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
59973
- var tmp4_gameHistory = this.k9r_1.k9t(player.playerId, listOf(announcedCombination.i7a_1), VOID, table.gameHistory);
60060
+ var tmp4_gameHistory = this.j9r_1.j9t(player.playerId, listOf(announcedCombination.i7a_1), VOID, table.gameHistory);
59974
60061
  return state.e9d(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
59975
60062
  case 6:
59976
- return state.e9d(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.c75(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.k9r_1.k9t(player.playerId, listOf(announcedCombination.i7a_1), VOID, table.gameHistory)));
60063
+ return state.e9d(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.c75(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.j9r_1.j9t(player.playerId, listOf(announcedCombination.i7a_1), VOID, table.gameHistory)));
59977
60064
  default:
59978
60065
  throw new MechanicException("Can't support this combination " + announcedCombination.toString());
59979
60066
  }
@@ -60054,7 +60141,7 @@
60054
60141
  destination.j(tmp$ret$1);
60055
60142
  }
60056
60143
  var updatedCombinations = destination;
60057
- var tmp1_cards = $this.p9r_1.h5v(player.v6z_1, card);
60144
+ var tmp1_cards = $this.o9r_1.h5v(player.v6z_1, card);
60058
60145
  var tmp2_points = player.y6z_1.j79(VOID, updatedCombinations);
60059
60146
  var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
60060
60147
  return player.c75(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
@@ -60073,11 +60160,11 @@
60073
60160
  }
60074
60161
  var tmp2_combinations = tmp;
60075
60162
  var tmp4_points = tmp0_$this.j79(VOID, tmp2_combinations, tmp1_earnedCards);
60076
- var tmp5_hand = $this.r9r_1.q9s(player.x6z_1, combinations);
60163
+ var tmp5_hand = $this.q9r_1.p9s(player.x6z_1, combinations);
60077
60164
  return player.c75(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
60078
60165
  }
60079
60166
  function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
60080
- var bellaCombination = $this.o9r_1.m95(players);
60167
+ var bellaCombination = $this.n9r_1.m95(players);
60081
60168
  // Inline function 'kotlin.collections.associate' call
60082
60169
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
60083
60170
  // Inline function 'kotlin.collections.associateTo' call
@@ -60098,7 +60185,7 @@
60098
60185
  var hasBellaCombination = !(bellaCombination == null) && bellaCombination.g8x_1 === player.playerId;
60099
60186
  var tmp;
60100
60187
  if (isGotLastBribe) {
60101
- tmp = $this.n9r_1.w79(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_179.d8w(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
60188
+ tmp = $this.m9r_1.w79(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_179.d8w(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
60102
60189
  } else {
60103
60190
  tmp = null;
60104
60191
  }
@@ -60118,7 +60205,7 @@
60118
60205
  }
60119
60206
  }
60120
60207
  var tmp$ret$2 = tmp$ret$1;
60121
- tmp_1 = $this.m9r_1.i9t(whoGotBribePlayerId, tmp$ret$2, players, config);
60208
+ tmp_1 = $this.l9r_1.h9t(whoGotBribePlayerId, tmp$ret$2, players, config);
60122
60209
  } else {
60123
60210
  tmp_1 = null;
60124
60211
  }
@@ -60183,15 +60270,15 @@
60183
60270
  return value1.h7a_1 === value2.h7a_1;
60184
60271
  }
60185
60272
  function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
60186
- this.m9r_1 = combinationsMechanicReducer;
60187
- this.n9r_1 = combinationsFactory;
60188
- this.o9r_1 = combinationsInteractor;
60189
- this.p9r_1 = dealerReducer;
60190
- this.q9r_1 = gameHistoryReducer;
60191
- this.r9r_1 = playerHandReducer;
60192
- this.s9r_1 = logger;
60193
- }
60194
- protoOf(EarnPointsMechanicReducer).u9r = function (state, action) {
60273
+ this.l9r_1 = combinationsMechanicReducer;
60274
+ this.m9r_1 = combinationsFactory;
60275
+ this.n9r_1 = combinationsInteractor;
60276
+ this.o9r_1 = dealerReducer;
60277
+ this.p9r_1 = gameHistoryReducer;
60278
+ this.q9r_1 = playerHandReducer;
60279
+ this.r9r_1 = logger;
60280
+ }
60281
+ protoOf(EarnPointsMechanicReducer).t9r = function (state, action) {
60195
60282
  var table = state.t6w();
60196
60283
  var player = getPlayer(table.players, action.d8b_1);
60197
60284
  var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.d8b_1, table.cardsOnTable.o(), action.b8b_1));
@@ -60213,13 +60300,13 @@
60213
60300
  var tmp$ret$0 = item.u7j_1;
60214
60301
  destination.j(tmp$ret$0);
60215
60302
  }
60216
- tmp = this.q9r_1.k9t(tmp_0, destination, VOID, table.gameHistory);
60303
+ tmp = this.p9r_1.j9t(tmp_0, destination, VOID, table.gameHistory);
60217
60304
  }
60218
60305
  var tmp1_elvis_lhs = tmp;
60219
60306
  var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
60220
60307
  return state.e9d(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
60221
60308
  };
60222
- protoOf(EarnPointsMechanicReducer).t9r = function (state, action) {
60309
+ protoOf(EarnPointsMechanicReducer).s9r = function (state, action) {
60223
60310
  var table = state.t6w();
60224
60311
  var players = table.players;
60225
60312
  var cardsOnTable = table.cardsOnTable;
@@ -60244,7 +60331,7 @@
60244
60331
  destination_0.j(tmp$ret$3);
60245
60332
  }
60246
60333
  if (!(toSet(destination_0).o() === 1)) {
60247
- this.s9r_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
60334
+ this.r9r_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
60248
60335
  }
60249
60336
  var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.g8b_1, players, config);
60250
60337
  var bribe = new Bribe(cardsOnTable);
@@ -60260,7 +60347,7 @@
60260
60347
  destination_1.j(tmp$ret$6);
60261
60348
  }
60262
60349
  var tmp3_gameInfo = table.gameInfo.w8u(VOID, VOID, table.gameInfo.round.copy(VOID, action.h8b_1));
60263
- var tmp4_gameHistory = this.q9r_1.l9t(action.g8b_1, bribe, action.h8b_1, playersCombinations, table.gameHistory);
60350
+ var tmp4_gameHistory = this.p9r_1.k9t(action.g8b_1, bribe, action.h8b_1, playersCombinations, table.gameHistory);
60264
60351
  return state.e9d(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
60265
60352
  };
60266
60353
  function randomDataReducer($this, randomData, metadata) {
@@ -60268,7 +60355,7 @@
60268
60355
  return metadata;
60269
60356
  }
60270
60357
  if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
60271
- $this.a9t_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
60358
+ $this.z9s_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
60272
60359
  }
60273
60360
  var tmp0_safe_receiver = metadata.randomData;
60274
60361
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
@@ -60280,12 +60367,12 @@
60280
60367
  return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
60281
60368
  }
60282
60369
  function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
60283
- this.x9s_1 = pointsInteractor;
60284
- this.y9s_1 = teamsLogicProvider;
60285
- this.z9s_1 = gameLogicConfig;
60286
- this.a9t_1 = logger;
60370
+ this.w9s_1 = pointsInteractor;
60371
+ this.x9s_1 = teamsLogicProvider;
60372
+ this.y9s_1 = gameLogicConfig;
60373
+ this.z9s_1 = logger;
60287
60374
  }
60288
- protoOf(GameHistoryReducer).m9t = function (gameHistory) {
60375
+ protoOf(GameHistoryReducer).l9t = function (gameHistory) {
60289
60376
  var roundNumber = gameHistory.rounds.length;
60290
60377
  var tmp0 = gameHistory.rounds;
60291
60378
  // Inline function 'kotlin.collections.plus' call
@@ -60297,7 +60384,7 @@
60297
60384
  var tmp$ret$4 = tmp0.concat(tmp$ret$3);
60298
60385
  return gameHistory.copy(VOID, VOID, tmp$ret$4);
60299
60386
  };
60300
- protoOf(GameHistoryReducer).c9t = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
60387
+ protoOf(GameHistoryReducer).b9t = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
60301
60388
  var currentRoundHistory = last_0(gameHistory.rounds);
60302
60389
  var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.u7z_1, System_instance.ck());
60303
60390
  // Inline function 'kotlin.collections.mapValues' call
@@ -60315,14 +60402,14 @@
60315
60402
  var tmp0_elvis_lhs = gameHistory.metadata;
60316
60403
  return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_188.initial() : tmp0_elvis_lhs));
60317
60404
  };
60318
- protoOf(GameHistoryReducer).h9t = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
60405
+ protoOf(GameHistoryReducer).g9t = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
60319
60406
  var currentRoundHistory = last_0(gameHistory.rounds);
60320
60407
  var tmp;
60321
60408
  if (playersMode.isTeamGame) {
60322
60409
  // Inline function 'kotlin.arrayOf' call
60323
60410
  // Inline function 'kotlin.js.unsafeCast' call
60324
60411
  // Inline function 'kotlin.js.asDynamic' call
60325
- tmp = [playerId, this.y9s_1.n91(playerId, players).playerId];
60412
+ tmp = [playerId, this.x9s_1.n91(playerId, players).playerId];
60326
60413
  } else {
60327
60414
  // Inline function 'kotlin.arrayOf' call
60328
60415
  // Inline function 'kotlin.js.unsafeCast' call
@@ -60332,7 +60419,7 @@
60332
60419
  var roundCommitted = tmp;
60333
60420
  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)));
60334
60421
  };
60335
- protoOf(GameHistoryReducer).e9t = function (playersCards, gameHistory) {
60422
+ protoOf(GameHistoryReducer).d9t = function (playersCards, gameHistory) {
60336
60423
  // Inline function 'kotlin.collections.mapValues' call
60337
60424
  // Inline function 'kotlin.collections.mapValuesTo' call
60338
60425
  var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
@@ -60346,14 +60433,14 @@
60346
60433
  }
60347
60434
  return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
60348
60435
  };
60349
- protoOf(GameHistoryReducer).n9t = function (playerId, combinations, combinationsStates, gameHistory) {
60436
+ protoOf(GameHistoryReducer).m9t = function (playerId, combinations, combinationsStates, gameHistory) {
60350
60437
  return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
60351
60438
  };
60352
- protoOf(GameHistoryReducer).k9t = function (playerId, combinations, combinationsStates, gameHistory, $super) {
60439
+ protoOf(GameHistoryReducer).j9t = function (playerId, combinations, combinationsStates, gameHistory, $super) {
60353
60440
  combinationsStates = combinationsStates === VOID ? null : combinationsStates;
60354
- return $super === VOID ? this.n9t(playerId, combinations, combinationsStates, gameHistory) : $super.n9t.call(this, playerId, combinations, combinationsStates, gameHistory);
60441
+ return $super === VOID ? this.m9t(playerId, combinations, combinationsStates, gameHistory) : $super.m9t.call(this, playerId, combinations, combinationsStates, gameHistory);
60355
60442
  };
60356
- protoOf(GameHistoryReducer).l9t = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
60443
+ protoOf(GameHistoryReducer).k9t = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
60357
60444
  var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.r7z_1, numberOfBribe, System_instance.ck()));
60358
60445
  // Inline function 'kotlin.collections.mapNotNull' call
60359
60446
  // Inline function 'kotlin.collections.mapNotNullTo' call
@@ -60412,7 +60499,7 @@
60412
60499
  }
60413
60500
  return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
60414
60501
  };
60415
- protoOf(GameHistoryReducer).j9t = function (winnerCombinations, gameHistory) {
60502
+ protoOf(GameHistoryReducer).i9t = function (winnerCombinations, gameHistory) {
60416
60503
  // Inline function 'kotlin.collections.map' call
60417
60504
  // Inline function 'kotlin.collections.mapTo' call
60418
60505
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
@@ -60428,7 +60515,7 @@
60428
60515
  }
60429
60516
  return addItemsToCurrentRound(this, gameHistory, destination);
60430
60517
  };
60431
- protoOf(GameHistoryReducer).b9t = function (playerId, previousConnection, playerConnection, gameHistory) {
60518
+ protoOf(GameHistoryReducer).a9t = function (playerId, previousConnection, playerConnection, gameHistory) {
60432
60519
  if (playerConnection == null) {
60433
60520
  return gameHistory;
60434
60521
  }
@@ -60440,17 +60527,17 @@
60440
60527
  tmp = false;
60441
60528
  }
60442
60529
  var isShortDisconnectState = tmp;
60443
- if (isSupportedReason && !isShortDisconnectState || this.z9s_1.verboseGameHistory) {
60530
+ if (isSupportedReason && !isShortDisconnectState || this.y9s_1.verboseGameHistory) {
60444
60531
  return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.y6e_1, playerConnection.g6f(), System_instance.ck())));
60445
60532
  }
60446
60533
  return gameHistory;
60447
60534
  };
60448
- protoOf(GameHistoryReducer).f9t = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
60535
+ protoOf(GameHistoryReducer).e9t = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
60449
60536
  var currentRoundHistory = last_0(gameHistory.rounds);
60450
60537
  var tmp0_elvis_lhs = gameHistory.metadata;
60451
60538
  var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_188.initial() : tmp0_elvis_lhs;
60452
60539
  var tmp;
60453
- if (this.z9s_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
60540
+ if (this.y9s_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
60454
60541
  // Inline function 'kotlin.collections.map' call
60455
60542
  // Inline function 'kotlin.collections.mapTo' call
60456
60543
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
@@ -60465,7 +60552,7 @@
60465
60552
  tmp = currentMetadata;
60466
60553
  }
60467
60554
  var updatedMetadata = tmp;
60468
- var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.x9s_1.i99(points), System_instance.ck())));
60555
+ var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.w9s_1.i99(points), System_instance.ck())));
60469
60556
  var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
60470
60557
  return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
60471
60558
  };
@@ -60490,7 +60577,7 @@
60490
60577
  tmp = cardDeck;
60491
60578
  }
60492
60579
  var newCardDeck = tmp;
60493
- return new PreviousRound(bribes, newCardDeck, $this.q9t_1.j99(players, config));
60580
+ return new PreviousRound(bribes, newCardDeck, $this.p9t_1.j99(players, config));
60494
60581
  }
60495
60582
  function roundFinishedGameInfoReducer($this, table) {
60496
60583
  var gameInfo = table.gameInfo;
@@ -60543,10 +60630,10 @@
60543
60630
  return points.i79(0, emptyList(), emptyList());
60544
60631
  }
60545
60632
  function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
60546
- this.q9t_1 = pointsInteractor;
60547
- this.r9t_1 = historyReducer;
60633
+ this.p9t_1 = pointsInteractor;
60634
+ this.q9t_1 = historyReducer;
60548
60635
  }
60549
- protoOf(TableLifecycleReducerImpl).o9t = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
60636
+ protoOf(TableLifecycleReducerImpl).n9t = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
60550
60637
  var tmp = Companion_instance_176;
60551
60638
  // Inline function 'kotlin.collections.mapIndexed' call
60552
60639
  // Inline function 'kotlin.collections.mapIndexedTo' call
@@ -60578,7 +60665,7 @@
60578
60665
  }
60579
60666
  return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
60580
60667
  };
60581
- protoOf(TableLifecycleReducerImpl).k9s = function (table) {
60668
+ protoOf(TableLifecycleReducerImpl).j9s = function (table) {
60582
60669
  var tmp0_sceneInfo = new SceneInfo('WAITING');
60583
60670
  // Inline function 'kotlin.collections.map' call
60584
60671
  var this_0 = table.players;
@@ -60593,10 +60680,10 @@
60593
60680
  var tmp2_cardsOnTable = emptyList();
60594
60681
  var tmp3_bribes = emptyList();
60595
60682
  var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
60596
- var tmp5_gameHistory = this.r9t_1.m9t(table.gameHistory);
60683
+ var tmp5_gameHistory = this.q9t_1.l9t(table.gameHistory);
60597
60684
  return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
60598
60685
  };
60599
- protoOf(TableLifecycleReducerImpl).g9t = function (table) {
60686
+ protoOf(TableLifecycleReducerImpl).f9t = function (table) {
60600
60687
  // Inline function 'kotlin.collections.map' call
60601
60688
  var this_0 = table.players;
60602
60689
  // Inline function 'kotlin.collections.mapTo' call
@@ -60607,9 +60694,9 @@
60607
60694
  var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
60608
60695
  destination.j(tmp$ret$0);
60609
60696
  }
60610
- return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.r9t_1.m9t(table.gameHistory));
60697
+ return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.q9t_1.l9t(table.gameHistory));
60611
60698
  };
60612
- protoOf(TableLifecycleReducerImpl).p9t = function (table, newGameId) {
60699
+ protoOf(TableLifecycleReducerImpl).o9t = function (table, newGameId) {
60613
60700
  // Inline function 'kotlin.collections.map' call
60614
60701
  var this_0 = table.players;
60615
60702
  // Inline function 'kotlin.collections.mapTo' call
@@ -60648,93 +60735,93 @@
60648
60735
  return true;
60649
60736
  }
60650
60737
  function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
60651
- this.s9t_1 = $isEnableForPlayer;
60652
- this.t9t_1 = $playerTurnInteractor;
60653
- this.u9t_1 = $logger;
60654
- this.v9t_1 = $playerTurnMechanicReducer;
60738
+ this.r9t_1 = $isEnableForPlayer;
60739
+ this.s9t_1 = $playerTurnInteractor;
60740
+ this.t9t_1 = $logger;
60741
+ this.u9t_1 = $playerTurnMechanicReducer;
60655
60742
  }
60656
60743
  protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).x6n = function (action) {
60657
60744
  return isInterface(action, PlayerAnswerFromClientAction);
60658
60745
  };
60659
- protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
60746
+ protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).u9q = function (state, action) {
60660
60747
  var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
60661
60748
  var tmp$ret$0;
60662
60749
  $l$block: {
60663
60750
  var table = state.t6w();
60664
60751
  var player = getPlayer(table.players, tmp2.playerId);
60665
- if (!this.s9t_1(player)) {
60752
+ if (!this.r9t_1(player)) {
60666
60753
  tmp$ret$0 = state;
60667
60754
  break $l$block;
60668
60755
  }
60669
- var turnModel = this.t9t_1.n9a(player, tmp2);
60756
+ var turnModel = this.s9t_1.n9a(player, tmp2);
60670
60757
  var tmp;
60671
60758
  if (turnModel == null) {
60672
- this.u9t_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
60759
+ this.t9t_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
60673
60760
  tmp = state;
60674
60761
  } else {
60675
- tmp = state.e9d(this.v9t_1.v9s(table, turnModel));
60762
+ tmp = state.e9d(this.u9t_1.u9s(table, turnModel));
60676
60763
  }
60677
60764
  tmp$ret$0 = tmp;
60678
60765
  }
60679
60766
  return tmp$ret$0;
60680
60767
  };
60681
60768
  protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
60682
- return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
60769
+ return this.u9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
60683
60770
  };
60684
60771
  function resetPlayerTurnWhenAnswerReducer$lambda(it) {
60685
60772
  return true;
60686
60773
  }
60687
60774
  function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
60688
- this.w9t_1 = $isEnableForPlayer;
60689
- this.x9t_1 = $playerTurnInteractor;
60690
- this.y9t_1 = $logger;
60691
- this.z9t_1 = $playerTurnMechanicReducer;
60775
+ this.v9t_1 = $isEnableForPlayer;
60776
+ this.w9t_1 = $playerTurnInteractor;
60777
+ this.x9t_1 = $logger;
60778
+ this.y9t_1 = $playerTurnMechanicReducer;
60692
60779
  }
60693
60780
  protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).x6n = function (action) {
60694
60781
  return isInterface(action, PlayerTurnAnswerAction);
60695
60782
  };
60696
- protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
60783
+ protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).u9q = function (state, action) {
60697
60784
  var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
60698
60785
  var tmp$ret$0;
60699
60786
  $l$block: {
60700
60787
  var table = state.t6w();
60701
60788
  var player = getPlayerTurn(tmp2, table.players);
60702
- if (player == null || !this.w9t_1(player)) {
60789
+ if (player == null || !this.v9t_1(player)) {
60703
60790
  tmp$ret$0 = state;
60704
60791
  break $l$block;
60705
60792
  }
60706
- var turnModel = this.x9t_1.n9a(player, tmp2);
60793
+ var turnModel = this.w9t_1.n9a(player, tmp2);
60707
60794
  var tmp;
60708
60795
  if (turnModel == null) {
60709
- this.y9t_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
60796
+ this.x9t_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
60710
60797
  tmp = state;
60711
60798
  } else {
60712
- tmp = state.e9d(this.z9t_1.v9s(table, turnModel));
60799
+ tmp = state.e9d(this.y9t_1.u9s(table, turnModel));
60713
60800
  }
60714
60801
  tmp$ret$0 = tmp;
60715
60802
  }
60716
60803
  return tmp$ret$0;
60717
60804
  };
60718
60805
  protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
60719
- return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
60806
+ return this.u9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
60720
60807
  };
60721
60808
  function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
60722
60809
  // Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
60723
60810
  return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
60724
60811
  }
60725
60812
  function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
60726
- this.a9u_1 = $playerTurnInteractor;
60727
- this.b9u_1 = $playerTurnMechanicReducer;
60813
+ this.z9t_1 = $playerTurnInteractor;
60814
+ this.a9u_1 = $playerTurnMechanicReducer;
60728
60815
  }
60729
60816
  protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).x6n = function (action) {
60730
60817
  return isInterface(action, NextPlayerTurnAction);
60731
60818
  };
60732
- protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
60819
+ protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).u9q = function (state, action) {
60733
60820
  var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
60734
60821
  var tmp$ret$0;
60735
60822
  $l$block: {
60736
60823
  var table = state.t6w();
60737
- var tmp0_elvis_lhs = this.a9u_1.m9a(tmp2, table);
60824
+ var tmp0_elvis_lhs = this.z9t_1.m9a(tmp2, table);
60738
60825
  var tmp;
60739
60826
  if (tmp0_elvis_lhs == null) {
60740
60827
  tmp$ret$0 = state;
@@ -60743,12 +60830,12 @@
60743
60830
  tmp = tmp0_elvis_lhs;
60744
60831
  }
60745
60832
  var turnModel = tmp;
60746
- tmp$ret$0 = state.e9d(this.b9u_1.u9s(table, turnModel));
60833
+ tmp$ret$0 = state.e9d(this.a9u_1.t9s(table, turnModel));
60747
60834
  }
60748
60835
  return tmp$ret$0;
60749
60836
  };
60750
60837
  protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
60751
- return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
60838
+ return this.u9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
60752
60839
  };
60753
60840
  function get_isCreated(_this__u8e3s4) {
60754
60841
  return _this__u8e3s4.gameLifecycleState.isCreated;
@@ -60764,7 +60851,7 @@
60764
60851
  }
60765
60852
  function Companion_194() {
60766
60853
  }
60767
- protoOf(Companion_194).c9u = function (payload) {
60854
+ protoOf(Companion_194).b9u = function (payload) {
60768
60855
  var tmp;
60769
60856
  if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
60770
60857
  tmp = toLoggerPayload_0(payload);
@@ -60785,35 +60872,27 @@
60785
60872
  function Companion_getInstance_201() {
60786
60873
  return Companion_instance_199;
60787
60874
  }
60788
- function CallbackWrapperLoggerOutput$_init_$lambda_hgxyzw(it) {
60789
- return null;
60790
- }
60791
60875
  function CallbackWrapperLoggerOutput(logger, payloadMapper) {
60792
- var tmp;
60793
- if (payloadMapper === VOID) {
60794
- tmp = CallbackWrapperLoggerOutput$_init_$lambda_hgxyzw;
60795
- } else {
60796
- tmp = payloadMapper;
60797
- }
60798
- payloadMapper = tmp;
60799
- this.d9u_1 = logger;
60800
- this.e9u_1 = payloadMapper;
60876
+ this.c9u_1 = logger;
60877
+ this.d9u_1 = payloadMapper;
60801
60878
  }
60802
60879
  protoOf(CallbackWrapperLoggerOutput).l51 = function (tag, message, payload) {
60803
- this.d9u_1.d(tag, message, this.e9u_1(payload));
60880
+ this.c9u_1.d(tag, message, this.d9u_1(payload));
60804
60881
  };
60805
60882
  protoOf(CallbackWrapperLoggerOutput).m51 = function (tag, message, exception, payload) {
60806
- this.d9u_1.e(tag, message, exception, this.e9u_1(payload));
60883
+ this.c9u_1.e(tag, message, exception, this.d9u_1(payload));
60807
60884
  };
60808
60885
  protoOf(CallbackWrapperLoggerOutput).p51 = function (tag, message, payload) {
60809
- this.d9u_1.i(tag, message, this.e9u_1(payload));
60886
+ this.c9u_1.i(tag, message, this.d9u_1(payload));
60810
60887
  };
60811
60888
  protoOf(CallbackWrapperLoggerOutput).o51 = function (tag, message, exception, payload) {
60812
- this.d9u_1.v(tag, message, exception, this.e9u_1(payload));
60889
+ this.c9u_1.v(tag, message, exception, this.d9u_1(payload));
60813
60890
  };
60814
60891
  protoOf(CallbackWrapperLoggerOutput).n51 = function (tag, message, exception, payload) {
60815
- this.d9u_1.w(tag, message, exception, this.e9u_1(payload));
60892
+ this.c9u_1.w(tag, message, exception, this.d9u_1(payload));
60816
60893
  };
60894
+ function FileLoggerOutput() {
60895
+ }
60817
60896
  function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
60818
60897
  this.n9u_1 = $$this$unsafeFlow;
60819
60898
  this.o9u_1 = $types;
@@ -61077,9 +61156,6 @@
61077
61156
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
61078
61157
  return hashCode(this.a3());
61079
61158
  };
61080
- function FileLoggerOutputImpl$_init_$lambda_sdog02(it) {
61081
- return null;
61082
- }
61083
61159
  function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
61084
61160
  this.c9v_1 = $this;
61085
61161
  this.d9v_1 = $types;
@@ -61094,22 +61170,15 @@
61094
61170
  return this.h24(collector, $completion);
61095
61171
  };
61096
61172
  function FileLoggerOutputImpl(payloadToLoggerKeyMapper, enabled) {
61097
- var tmp;
61098
- if (payloadToLoggerKeyMapper === VOID) {
61099
- tmp = FileLoggerOutputImpl$_init_$lambda_sdog02;
61100
- } else {
61101
- tmp = payloadToLoggerKeyMapper;
61102
- }
61103
- payloadToLoggerKeyMapper = tmp;
61104
61173
  enabled = enabled === VOID ? true : enabled;
61105
61174
  this.e9v_1 = payloadToLoggerKeyMapper;
61106
61175
  this.f9v_1 = enabled;
61107
- var tmp_0 = this;
61176
+ var tmp = this;
61108
61177
  // Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
61109
- tmp_0.g9v_1 = get_atomicfu$reentrantLock();
61110
- var tmp_1 = this;
61178
+ tmp.g9v_1 = get_atomicfu$reentrantLock();
61179
+ var tmp_0 = this;
61111
61180
  // Inline function 'kotlin.collections.mutableMapOf' call
61112
- tmp_1.h9v_1 = LinkedHashMap_init_$Create$();
61181
+ tmp_0.h9v_1 = LinkedHashMap_init_$Create$();
61113
61182
  }
61114
61183
  protoOf(FileLoggerOutputImpl).q51 = function (_set____db54di) {
61115
61184
  this.f9v_1 = _set____db54di;
@@ -61117,7 +61186,7 @@
61117
61186
  protoOf(FileLoggerOutputImpl).r51 = function () {
61118
61187
  return this.f9v_1;
61119
61188
  };
61120
- protoOf(FileLoggerOutputImpl).s9v = function (loggerKey, types) {
61189
+ protoOf(FileLoggerOutputImpl).e9u = function (loggerKey, types) {
61121
61190
  // Inline function 'kotlinx.atomicfu.locks.withLock' call
61122
61191
  this.g9v_1;
61123
61192
  // Inline function 'kotlin.collections.getOrPut' call
@@ -61231,8 +61300,6 @@
61231
61300
  var tmp6_stackTrace = tmp3_safe_receiver == null ? null : take_0(tmp3_safe_receiver, 1000);
61232
61301
  log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
61233
61302
  };
61234
- function FileLoggerOutput() {
61235
- }
61236
61303
  function GameHelper() {
61237
61304
  }
61238
61305
  function prepareLobbyFilterInternal($this, map) {
@@ -61762,9 +61829,9 @@
61762
61829
  }
61763
61830
  }
61764
61831
  function GameHelperImpl(logger) {
61765
- this.w9v_1 = logger;
61832
+ this.v9v_1 = logger;
61766
61833
  }
61767
- protoOf(GameHelperImpl).t9v = function (store, playerIds, includeBots) {
61834
+ protoOf(GameHelperImpl).s9v = function (store, playerIds, includeBots) {
61768
61835
  var state = store.state;
61769
61836
  var tmp;
61770
61837
  if (!state.u6w()) {
@@ -61810,7 +61877,7 @@
61810
61877
  // Inline function 'kotlin.collections.toTypedArray' call
61811
61878
  return copyToArray(destination_1);
61812
61879
  };
61813
- protoOf(GameHelperImpl).u9v = function (store, playerIds, includeBots) {
61880
+ protoOf(GameHelperImpl).t9v = function (store, playerIds, includeBots) {
61814
61881
  var state = store.state;
61815
61882
  var tmp;
61816
61883
  if (!state.u6w()) {
@@ -61981,10 +62048,10 @@
61981
62048
  // Inline function 'kotlin.collections.toTypedArray' call
61982
62049
  return copyToArray(destination);
61983
62050
  };
61984
- protoOf(GameHelperImpl).v9v = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
62051
+ protoOf(GameHelperImpl).u9v = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
61985
62052
  var roomMode = mapToRoomMode(mode);
61986
62053
  var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
61987
- this.w9v_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
62054
+ this.v9v_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
61988
62055
  var options = Companion_instance_184.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
61989
62056
  var playersMode = this.mapPlayers(players);
61990
62057
  var pointsMode = this.mapPoints(points);
@@ -62419,40 +62486,40 @@
62419
62486
  function getRandomAvatarData_0($this) {
62420
62487
  var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
62421
62488
  var avatarSet = get_entries_6().p(avatarSetNumber);
62422
- return new AvatarData(Default_getInstance().ng(avatarSet.a9w()), avatarSet);
62489
+ return new AvatarData(Default_getInstance().ng(avatarSet.z9v()), avatarSet);
62423
62490
  }
62424
62491
  function getAvatarUrlByIndex($this, data) {
62425
62492
  return mapToPattern($this, data);
62426
62493
  }
62427
62494
  function getNicknameByIndex($this, data) {
62428
- return data.c9w_1.d9w(data.b9w_1);
62495
+ return data.b9w_1.c9w(data.a9w_1);
62429
62496
  }
62430
62497
  function mapToPattern($this, data) {
62431
- return 'debertz://raspberry.games/' + data.c9w_1.p2_1 + '/' + data.b9w_1;
62498
+ return 'debertz://raspberry.games/' + data.b9w_1.p2_1 + '/' + data.a9w_1;
62432
62499
  }
62433
62500
  function Companion_196() {
62434
62501
  Companion_instance_201 = this;
62435
- this.e9w_1 = 'debertz://raspberry.games';
62502
+ this.d9w_1 = 'debertz://raspberry.games';
62436
62503
  var tmp = this;
62437
62504
  // Inline function 'kotlin.arrayOf' call
62438
62505
  // Inline function 'kotlin.js.unsafeCast' call
62439
62506
  // Inline function 'kotlin.js.asDynamic' call
62440
- tmp.f9w_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
62507
+ tmp.e9w_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
62441
62508
  var tmp_0 = this;
62442
62509
  // Inline function 'kotlin.arrayOf' call
62443
62510
  // Inline function 'kotlin.js.unsafeCast' call
62444
62511
  // Inline function 'kotlin.js.asDynamic' call
62445
- tmp_0.g9w_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'];
62512
+ tmp_0.f9w_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'];
62446
62513
  var tmp_1 = this;
62447
62514
  // Inline function 'kotlin.arrayOf' call
62448
62515
  // Inline function 'kotlin.js.unsafeCast' call
62449
62516
  // Inline function 'kotlin.js.asDynamic' call
62450
- tmp_1.h9w_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
62517
+ tmp_1.g9w_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
62451
62518
  var tmp_2 = this;
62452
62519
  // Inline function 'kotlin.arrayOf' call
62453
62520
  // Inline function 'kotlin.js.unsafeCast' call
62454
62521
  // Inline function 'kotlin.js.asDynamic' call
62455
- tmp_2.i9w_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'];
62522
+ tmp_2.h9w_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'];
62456
62523
  }
62457
62524
  var Companion_instance_201;
62458
62525
  function Companion_getInstance_203() {
@@ -62463,14 +62530,14 @@
62463
62530
  function AvatarSet(name, ordinal) {
62464
62531
  Enum.call(this, name, ordinal);
62465
62532
  }
62466
- protoOf(AvatarSet).a9w = function () {
62533
+ protoOf(AvatarSet).z9v = function () {
62467
62534
  var tmp;
62468
62535
  switch (this.p2_1) {
62469
62536
  case 0:
62470
- tmp = Companion_getInstance_203().g9w_1.length;
62537
+ tmp = Companion_getInstance_203().f9w_1.length;
62471
62538
  break;
62472
62539
  case 1:
62473
- tmp = Companion_getInstance_203().i9w_1.length;
62540
+ tmp = Companion_getInstance_203().h9w_1.length;
62474
62541
  break;
62475
62542
  default:
62476
62543
  noWhenBranchMatchedException();
@@ -62478,14 +62545,14 @@
62478
62545
  }
62479
62546
  return tmp;
62480
62547
  };
62481
- protoOf(AvatarSet).d9w = function (index) {
62548
+ protoOf(AvatarSet).c9w = function (index) {
62482
62549
  var tmp;
62483
62550
  switch (this.p2_1) {
62484
62551
  case 0:
62485
- tmp = Companion_getInstance_203().g9w_1[index];
62552
+ tmp = Companion_getInstance_203().f9w_1[index];
62486
62553
  break;
62487
62554
  case 1:
62488
- tmp = Companion_getInstance_203().i9w_1[index];
62555
+ tmp = Companion_getInstance_203().h9w_1[index];
62489
62556
  break;
62490
62557
  default:
62491
62558
  noWhenBranchMatchedException();
@@ -62494,8 +62561,8 @@
62494
62561
  return tmp;
62495
62562
  };
62496
62563
  function AvatarData(index, avatarSet) {
62497
- this.b9w_1 = index;
62498
- this.c9w_1 = avatarSet;
62564
+ this.a9w_1 = index;
62565
+ this.b9w_1 = avatarSet;
62499
62566
  }
62500
62567
  function AvatarSet_ORIGIN_getInstance() {
62501
62568
  AvatarSet_initEntries();
@@ -62508,7 +62575,7 @@
62508
62575
  function GameResourcesImpl() {
62509
62576
  Companion_getInstance_203();
62510
62577
  }
62511
- protoOf(GameResourcesImpl).x9v = function (playerId, existingNicknames) {
62578
+ protoOf(GameResourcesImpl).w9v = function (playerId, existingNicknames) {
62512
62579
  return createUser(this, playerId, existingNicknames);
62513
62580
  };
62514
62581
  protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
@@ -62549,45 +62616,45 @@
62549
62616
  }
62550
62617
  var WARN;
62551
62618
  function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
62552
- this.j9w_1 = loggerCallback;
62619
+ this.i9w_1 = loggerCallback;
62553
62620
  }
62554
62621
  protoOf(LoggerCallbacksWrapperLoggerOutput).l51 = function (tag, message, payload) {
62555
- this.j9w_1('debug', tag, message, null, payload);
62622
+ this.i9w_1('debug', tag, message, null, payload);
62556
62623
  };
62557
62624
  protoOf(LoggerCallbacksWrapperLoggerOutput).m51 = function (tag, message, exception, payload) {
62558
- this.j9w_1('error', tag, generateMsg(message, exception), exception, payload);
62625
+ this.i9w_1('error', tag, generateMsg(message, exception), exception, payload);
62559
62626
  };
62560
62627
  protoOf(LoggerCallbacksWrapperLoggerOutput).p51 = function (tag, message, payload) {
62561
- this.j9w_1('debug', tag, message, null, payload);
62628
+ this.i9w_1('debug', tag, message, null, payload);
62562
62629
  };
62563
62630
  protoOf(LoggerCallbacksWrapperLoggerOutput).o51 = function (tag, message, exception, payload) {
62564
- this.j9w_1('debug', tag, generateMsg(message, exception), exception, payload);
62631
+ this.i9w_1('debug', tag, generateMsg(message, exception), exception, payload);
62565
62632
  };
62566
62633
  protoOf(LoggerCallbacksWrapperLoggerOutput).n51 = function (tag, message, exception, payload) {
62567
- this.j9w_1('warn', tag, generateMsg(message, exception), exception, payload);
62634
+ this.i9w_1('warn', tag, generateMsg(message, exception), exception, payload);
62568
62635
  };
62569
62636
  function ParserHelper() {
62570
62637
  }
62571
62638
  function ParserHelperImpl(json, encoderDecoderProvider) {
62572
- this.k9w_1 = json;
62573
- this.l9w_1 = encoderDecoderProvider;
62639
+ this.j9w_1 = json;
62640
+ this.k9w_1 = encoderDecoderProvider;
62574
62641
  }
62575
62642
  protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
62576
- return this.l9w_1.l92(mapToDto_23(action));
62643
+ return this.k9w_1.l92(mapToDto_23(action));
62577
62644
  };
62578
62645
  protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
62579
- return mapFromDto_21(this.l9w_1.p92(json), fromPlayerId);
62646
+ return mapFromDto_21(this.k9w_1.p92(json), fromPlayerId);
62580
62647
  };
62581
62648
  protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
62582
- return this.l9w_1.n92(mapToDto_100(action));
62649
+ return this.k9w_1.n92(mapToDto_100(action));
62583
62650
  };
62584
62651
  protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
62585
62652
  // Inline function 'kotlin.collections.toTypedArray' call
62586
- var this_0 = mapFromClientDtoListWithPayload(this.l9w_1.q92(json), playerId, engine);
62653
+ var this_0 = mapFromClientDtoListWithPayload(this.k9w_1.q92(json), playerId, engine);
62587
62654
  return copyToArray(this_0);
62588
62655
  };
62589
62656
  protoOf(ParserHelperImpl).encodeGameRound = function (round) {
62590
- var tmp0 = this.k9w_1;
62657
+ var tmp0 = this.j9w_1;
62591
62658
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
62592
62659
  var value = mapToDto_35(round);
62593
62660
  // Inline function 'kotlinx.serialization.serializer' call
@@ -62598,7 +62665,7 @@
62598
62665
  return tmp0.ep(tmp$ret$1, value);
62599
62666
  };
62600
62667
  protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
62601
- var tmp0 = this.k9w_1;
62668
+ var tmp0 = this.j9w_1;
62602
62669
  // Inline function 'kotlin.collections.map' call
62603
62670
  var this_0 = round.items;
62604
62671
  // Inline function 'kotlin.collections.mapTo' call
@@ -62620,7 +62687,7 @@
62620
62687
  return tmp0.ep(tmp$ret$4, destination);
62621
62688
  };
62622
62689
  protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
62623
- var tmp0 = this.k9w_1;
62690
+ var tmp0 = this.j9w_1;
62624
62691
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
62625
62692
  var value = mapToDto_36(metadata);
62626
62693
  // Inline function 'kotlinx.serialization.serializer' call
@@ -62631,7 +62698,7 @@
62631
62698
  return tmp0.ep(tmp$ret$1, value);
62632
62699
  };
62633
62700
  protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
62634
- var tmp0 = this.k9w_1;
62701
+ var tmp0 = this.j9w_1;
62635
62702
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
62636
62703
  var value = mapToDto_84(config);
62637
62704
  // Inline function 'kotlinx.serialization.serializer' call
@@ -62642,7 +62709,7 @@
62642
62709
  return tmp0.ep(tmp$ret$1, value);
62643
62710
  };
62644
62711
  protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
62645
- var tmp0 = this.k9w_1;
62712
+ var tmp0 = this.j9w_1;
62646
62713
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
62647
62714
  var value = mapToDto_121(transition);
62648
62715
  // Inline function 'kotlinx.serialization.serializer' call
@@ -62654,7 +62721,7 @@
62654
62721
  };
62655
62722
  protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
62656
62723
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
62657
- var this_0 = this.k9w_1;
62724
+ var this_0 = this.j9w_1;
62658
62725
  // Inline function 'kotlinx.serialization.serializer' call
62659
62726
  var this_1 = this_0.ds();
62660
62727
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -62665,7 +62732,7 @@
62665
62732
  };
62666
62733
  protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
62667
62734
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
62668
- var this_0 = this.k9w_1;
62735
+ var this_0 = this.j9w_1;
62669
62736
  // Inline function 'kotlinx.serialization.serializer' call
62670
62737
  var this_1 = this_0.ds();
62671
62738
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -62675,7 +62742,7 @@
62675
62742
  return mapFromDto_124(tmp$ret$2);
62676
62743
  };
62677
62744
  protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
62678
- var tmp0 = this.k9w_1;
62745
+ var tmp0 = this.j9w_1;
62679
62746
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
62680
62747
  var value = mapToDto_153(table);
62681
62748
  // Inline function 'kotlinx.serialization.serializer' call
@@ -62686,11 +62753,11 @@
62686
62753
  return tmp0.ep(tmp$ret$1, value);
62687
62754
  };
62688
62755
  protoOf(ParserHelperImpl).decodeTableLite = function (json) {
62689
- return mapFromDto_89(this.l9w_1.o92(json));
62756
+ return mapFromDto_89(this.k9w_1.o92(json));
62690
62757
  };
62691
62758
  protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
62692
62759
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
62693
- var this_0 = this.k9w_1;
62760
+ var this_0 = this.j9w_1;
62694
62761
  // Inline function 'kotlinx.serialization.serializer' call
62695
62762
  var this_1 = this_0.ds();
62696
62763
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -62703,16 +62770,16 @@
62703
62770
  function RatingHelper() {
62704
62771
  }
62705
62772
  function RatingHelperImpl(userRatingInteractor) {
62706
- this.m9w_1 = userRatingInteractor;
62773
+ this.l9w_1 = userRatingInteractor;
62707
62774
  }
62708
62775
  protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
62709
- return this.m9w_1.t99(league, rating);
62776
+ return this.l9w_1.t99(league, rating);
62710
62777
  };
62711
62778
  protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
62712
- return this.m9w_1.v99(rating);
62779
+ return this.l9w_1.v99(rating);
62713
62780
  };
62714
62781
  protoOf(RatingHelperImpl).getLeaguesConfig = function () {
62715
- return this.m9w_1.u99();
62782
+ return this.l9w_1.u99();
62716
62783
  };
62717
62784
  function engineHelpersModule() {
62718
62785
  return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
@@ -62817,14 +62884,14 @@
62817
62884
  return new GameResourcesImpl();
62818
62885
  }
62819
62886
  function _get_logger__rkp4sl_3($this) {
62820
- var tmp0 = $this.o9w_1;
62887
+ var tmp0 = $this.n9w_1;
62821
62888
  var tmp = KProperty1;
62822
62889
  // Inline function 'kotlin.getValue' call
62823
62890
  getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
62824
62891
  return tmp0.w();
62825
62892
  }
62826
62893
  function _get_di__ndbzja($this) {
62827
- var tmp0 = $this.p9w_1;
62894
+ var tmp0 = $this.o9w_1;
62828
62895
  var tmp = KProperty1;
62829
62896
  // Inline function 'kotlin.getValue' call
62830
62897
  getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
@@ -62833,11 +62900,11 @@
62833
62900
  function EngineHelpersFactory$logger$delegate$lambda(this$0) {
62834
62901
  return function () {
62835
62902
  var tmp;
62836
- if (this$0.n9w_1 == null) {
62903
+ if (this$0.m9w_1 == null) {
62837
62904
  tmp = null;
62838
62905
  } else {
62839
62906
  // Inline function 'kotlin.let' call
62840
- tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.n9w_1)]));
62907
+ tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.m9w_1)]));
62841
62908
  }
62842
62909
  var tmp1_elvis_lhs = tmp;
62843
62910
  return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
@@ -62927,11 +62994,11 @@
62927
62994
  }
62928
62995
  function EngineHelpersFactory(loggerCallback) {
62929
62996
  loggerCallback = loggerCallback === VOID ? null : loggerCallback;
62930
- this.n9w_1 = loggerCallback;
62997
+ this.m9w_1 = loggerCallback;
62931
62998
  var tmp = this;
62932
- tmp.o9w_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
62999
+ tmp.n9w_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
62933
63000
  var tmp_0 = this;
62934
- tmp_0.p9w_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
63001
+ tmp_0.o9w_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
62935
63002
  var tmp_1 = this;
62936
63003
  // Inline function 'org.kodein.di.instance' call
62937
63004
  var this_0 = _get_di__ndbzja(this);
@@ -62940,7 +63007,7 @@
62940
63007
  var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
62941
63008
  var tmp_3 = Instance(this_0, tmp$ret$0, null);
62942
63009
  var tmp_4 = KProperty1;
62943
- tmp_1.q9w_1 = tmp_3.c1h(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
63010
+ tmp_1.p9w_1 = tmp_3.c1h(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
62944
63011
  var tmp_5 = this;
62945
63012
  // Inline function 'org.kodein.di.instance' call
62946
63013
  var this_1 = _get_di__ndbzja(this);
@@ -62949,7 +63016,7 @@
62949
63016
  var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
62950
63017
  var tmp_7 = Instance(this_1, tmp$ret$2, null);
62951
63018
  var tmp_8 = KProperty1;
62952
- tmp_5.r9w_1 = tmp_7.c1h(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
63019
+ tmp_5.q9w_1 = tmp_7.c1h(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
62953
63020
  var tmp_9 = this;
62954
63021
  // Inline function 'org.kodein.di.instance' call
62955
63022
  var this_2 = _get_di__ndbzja(this);
@@ -62958,7 +63025,7 @@
62958
63025
  var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
62959
63026
  var tmp_11 = Instance(this_2, tmp$ret$4, null);
62960
63027
  var tmp_12 = KProperty1;
62961
- tmp_9.s9w_1 = tmp_11.c1h(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
63028
+ tmp_9.r9w_1 = tmp_11.c1h(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
62962
63029
  var tmp_13 = this;
62963
63030
  // Inline function 'org.kodein.di.instance' call
62964
63031
  var this_3 = _get_di__ndbzja(this);
@@ -62967,31 +63034,31 @@
62967
63034
  var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
62968
63035
  var tmp_15 = Instance(this_3, tmp$ret$6, null);
62969
63036
  var tmp_16 = KProperty1;
62970
- tmp_13.t9w_1 = tmp_15.c1h(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
63037
+ tmp_13.s9w_1 = tmp_15.c1h(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
62971
63038
  }
62972
- protoOf(EngineHelpersFactory).u9w = function () {
62973
- var tmp0 = this.q9w_1;
63039
+ protoOf(EngineHelpersFactory).t9w = function () {
63040
+ var tmp0 = this.p9w_1;
62974
63041
  var tmp = KProperty1;
62975
63042
  // Inline function 'kotlin.getValue' call
62976
63043
  getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
62977
63044
  return tmp0.w();
62978
63045
  };
62979
- protoOf(EngineHelpersFactory).v9w = function () {
62980
- var tmp0 = this.r9w_1;
63046
+ protoOf(EngineHelpersFactory).u9w = function () {
63047
+ var tmp0 = this.q9w_1;
62981
63048
  var tmp = KProperty1;
62982
63049
  // Inline function 'kotlin.getValue' call
62983
63050
  getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
62984
63051
  return tmp0.w();
62985
63052
  };
62986
- protoOf(EngineHelpersFactory).w9w = function () {
62987
- var tmp0 = this.s9w_1;
63053
+ protoOf(EngineHelpersFactory).v9w = function () {
63054
+ var tmp0 = this.r9w_1;
62988
63055
  var tmp = KProperty1;
62989
63056
  // Inline function 'kotlin.getValue' call
62990
63057
  getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
62991
63058
  return tmp0.w();
62992
63059
  };
62993
- protoOf(EngineHelpersFactory).x9w = function () {
62994
- var tmp0 = this.t9w_1;
63060
+ protoOf(EngineHelpersFactory).w9w = function () {
63061
+ var tmp0 = this.s9w_1;
62995
63062
  var tmp = KProperty1;
62996
63063
  // Inline function 'kotlin.getValue' call
62997
63064
  getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
@@ -63733,7 +63800,7 @@
63733
63800
  protoOf(CallbackWrapperLoggerOutput).i = i;
63734
63801
  protoOf(CallbackWrapperLoggerOutput).v = v;
63735
63802
  protoOf(CallbackWrapperLoggerOutput).w = w;
63736
- protoOf(FileLoggerOutputImpl).x9m = observe$default;
63803
+ protoOf(FileLoggerOutputImpl).w9m = observe$default;
63737
63804
  protoOf(FileLoggerOutputImpl).d = d;
63738
63805
  protoOf(FileLoggerOutputImpl).e = e;
63739
63806
  protoOf(FileLoggerOutputImpl).i = i;
@@ -63753,10 +63820,10 @@
63753
63820
  protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
63754
63821
  protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
63755
63822
  protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
63756
- defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).u9w);
63757
- defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).v9w);
63758
- defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).w9w);
63759
- defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).x9w);
63823
+ defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).t9w);
63824
+ defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).u9w);
63825
+ defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).v9w);
63826
+ defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).w9w);
63760
63827
  //endregion
63761
63828
  //region block: init
63762
63829
  Companion_instance_5 = new Companion_0();