client_plugin_logic_deb 1.8.323 → 1.8.326

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.
@@ -147,7 +147,7 @@
147
147
  var initMetadataForObject = kotlin_kotlin.$_$.ac;
148
148
  var checkIndexOverflow = kotlin_kotlin.$_$.s6;
149
149
  var getPoint = kotlin_io_raspberryapps_game_engine_core.$_$.p1;
150
- var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.b6;
150
+ var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.c6;
151
151
  var MechanicException = kotlin_io_raspberryapps_game_engine_core.$_$.b;
152
152
  var asJsReadonlyArrayView = kotlin_kotlin.$_$.x5;
153
153
  var KtList = kotlin_kotlin.$_$.y5;
@@ -179,15 +179,15 @@
179
179
  var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
180
180
  var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
181
181
  var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
182
- var Companion_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u5;
182
+ var Companion_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v5;
183
183
  var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
184
184
  var Companion_getInstance_0 = kotlin_io_raspberryapps_cardgame_core.$_$.o;
185
- var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.v5;
185
+ var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.w5;
186
186
  var PolymorphicSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
187
- var Companion_getInstance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.l5;
188
- var RestartGameReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.y5;
187
+ var Companion_getInstance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.m5;
188
+ var RestartGameReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z5;
189
189
  var ObjectSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
190
- var $serializer_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p5;
190
+ var $serializer_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.q5;
191
191
  var mapToDto = kotlin_io_raspberryapps_game_engine_core.$_$.i1;
192
192
  var mapFromDto = kotlin_io_raspberryapps_game_engine_core.$_$.z;
193
193
  var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
@@ -215,20 +215,20 @@
215
215
  var mapToDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
216
216
  var singleOrNull = kotlin_kotlin.$_$.j9;
217
217
  var RulesDto = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
218
- var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.m5;
219
- var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.k5;
218
+ var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.n5;
219
+ var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.l5;
220
220
  var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p4;
221
221
  var toDuration_0 = kotlin_kotlin.$_$.bg;
222
222
  var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.o4;
223
223
  var mapFromDto_3 = kotlin_io_raspberryapps_game_engine_core.$_$.w;
224
224
  var mapToDto_3 = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
225
225
  var toInstant = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.e;
226
- var $serializer_getInstance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.q5;
226
+ var $serializer_getInstance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.r5;
227
227
  var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
228
- var Companion_getInstance_5 = kotlin_io_raspberryapps_game_engine_core.$_$.n5;
228
+ var Companion_getInstance_5 = kotlin_io_raspberryapps_game_engine_core.$_$.o5;
229
229
  var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
230
230
  var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
231
- var $serializer_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.r5;
231
+ var $serializer_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.s5;
232
232
  var InstantIso8601Serializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
233
233
  var PlayerState = kotlin_io_raspberryapps_game_engine_core.$_$.i;
234
234
  var charSequenceLength = kotlin_kotlin.$_$.jb;
@@ -252,7 +252,7 @@
252
252
  var PolymorphicModuleBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
253
253
  var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y2;
254
254
  var TerminationGameReasonDto = kotlin_io_raspberryapps_game_engine_core.$_$.l1;
255
- var ProcessingReasonDto_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t5;
255
+ var ProcessingReasonDto_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u5;
256
256
  var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
257
257
  var CardNumberComparator_instance = kotlin_io_raspberryapps_cardgame_core.$_$.m;
258
258
  var addAll = kotlin_kotlin.$_$.h6;
@@ -294,14 +294,14 @@
294
294
  var average = kotlin_kotlin.$_$.o6;
295
295
  var mapToFinishReason = kotlin_io_raspberryapps_game_engine_core.$_$.r;
296
296
  var StopTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.w2;
297
- var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c5;
297
+ var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
298
298
  var StartTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.v2;
299
299
  var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
300
300
  var toLong = kotlin_kotlin.$_$.yc;
301
301
  var PlayerReturnsReason = kotlin_io_raspberryapps_game_engine_core.$_$.y1;
302
302
  var nextToPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.t;
303
303
  var previousPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.u;
304
- var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.w5;
304
+ var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.x5;
305
305
  var contains_0 = kotlin_kotlin.$_$.ae;
306
306
  var split = kotlin_kotlin.$_$.bf;
307
307
  var UserInfoData = kotlin_io_raspberryapps_cardgame_random.$_$.c;
@@ -320,6 +320,7 @@
320
320
  var swap = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
321
321
  var BufferedAction = kotlin_io_raspberryapps_game_engine_core.$_$.n2;
322
322
  var IgnoreBufferForAction = kotlin_io_raspberryapps_game_engine_core.$_$.t2;
323
+ var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.y5;
323
324
  var ReleaseBufferTriggerAction = kotlin_io_raspberryapps_game_engine_core.$_$.u2;
324
325
  var ignoreExpectant = kotlin_io_raspberryapps_game_engine_core.$_$.o2;
325
326
  var manualExpectantHandling = kotlin_io_raspberryapps_game_engine_core.$_$.q2;
@@ -331,7 +332,7 @@
331
332
  var InstanceOrNull = kotlin_org_kodein_di_kodein_di.$_$.e;
332
333
  var timerMiddleware = kotlin_io_raspberryapps_game_engine_core.$_$.b3;
333
334
  var assertIfMainThread = kotlin_io_raspberryapps_game_engine_core.$_$.k4;
334
- var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c6;
335
+ var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d6;
335
336
  var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.e3;
336
337
  var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
337
338
  var filterPlayerTurn = kotlin_io_raspberryapps_game_engine_core.$_$.n;
@@ -373,13 +374,13 @@
373
374
  var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
374
375
  var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
375
376
  var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
376
- var LogType_DEBUG_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
377
- var LogType_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.e5;
377
+ var LogType_DEBUG_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.e5;
378
+ var LogType_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.f5;
378
379
  var stackTraceToString = kotlin_kotlin.$_$.vh;
379
380
  var take_0 = kotlin_kotlin.$_$.hf;
380
- var LogType_INFO_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.f5;
381
- var LogType_VERBOSE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.g5;
382
- var LogType_WARN_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.h5;
381
+ var LogType_INFO_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.g5;
382
+ var LogType_VERBOSE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.h5;
383
+ var LogType_WARN_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.i5;
383
384
  var get_entries = kotlin_io_raspberryapps_game_engine_core.$_$.m3;
384
385
  var LoggerEnabledTrigger = kotlin_io_raspberryapps_cardgame_logger.$_$.d;
385
386
  var isArray = kotlin_kotlin.$_$.bc;
@@ -14200,12 +14201,12 @@
14200
14201
  new $serializer_26();
14201
14202
  return $serializer_instance_26;
14202
14203
  }
14203
- function StartGameMechanicActionDto_init_$Init$(seen0, id, version, gameCreatorPlayerId, config, users, spectators, serializationConstructorMarker, $this) {
14204
+ function StartGameMechanicActionDto_init_$Init$(seen0, roomId, version, gameCreatorPlayerId, config, users, spectators, serializationConstructorMarker, $this) {
14204
14205
  if (!(63 === (63 & seen0))) {
14205
14206
  throwMissingFieldException(seen0, 63, $serializer_getInstance_29().a7s_1);
14206
14207
  }
14207
14208
  MechanicActionDto_init_$Init$(seen0, serializationConstructorMarker, $this);
14208
- $this.c7s_1 = id;
14209
+ $this.c7s_1 = roomId;
14209
14210
  $this.d7s_1 = version;
14210
14211
  $this.e7s_1 = gameCreatorPlayerId;
14211
14212
  $this.f7s_1 = config;
@@ -14213,13 +14214,13 @@
14213
14214
  $this.h7s_1 = spectators;
14214
14215
  return $this;
14215
14216
  }
14216
- function StartGameMechanicActionDto_init_$Create$(seen0, id, version, gameCreatorPlayerId, config, users, spectators, serializationConstructorMarker) {
14217
- return StartGameMechanicActionDto_init_$Init$(seen0, id, version, gameCreatorPlayerId, config, users, spectators, serializationConstructorMarker, objectCreate(protoOf(StartGameMechanicActionDto)));
14217
+ function StartGameMechanicActionDto_init_$Create$(seen0, roomId, version, gameCreatorPlayerId, config, users, spectators, serializationConstructorMarker) {
14218
+ return StartGameMechanicActionDto_init_$Init$(seen0, roomId, version, gameCreatorPlayerId, config, users, spectators, serializationConstructorMarker, objectCreate(protoOf(StartGameMechanicActionDto)));
14218
14219
  }
14219
- function StartGameMechanicActionDto(id, version, gameCreatorPlayerId, config, users, spectators) {
14220
+ function StartGameMechanicActionDto(roomId, version, gameCreatorPlayerId, config, users, spectators) {
14220
14221
  Companion_getInstance_63();
14221
14222
  MechanicActionDto.call(this);
14222
- this.c7s_1 = id;
14223
+ this.c7s_1 = roomId;
14223
14224
  this.d7s_1 = version;
14224
14225
  this.e7s_1 = gameCreatorPlayerId;
14225
14226
  this.f7s_1 = config;
@@ -14227,7 +14228,7 @@
14227
14228
  this.h7s_1 = spectators;
14228
14229
  }
14229
14230
  protoOf(StartGameMechanicActionDto).toString = function () {
14230
- return 'StartGameMechanicActionDto(id=' + this.c7s_1 + ', version=' + this.d7s_1 + ', gameCreatorPlayerId=' + this.e7s_1 + ', config=' + this.f7s_1.toString() + ', users=' + toString(this.g7s_1) + ', spectators=' + toString_0(this.h7s_1) + ')';
14231
+ return 'StartGameMechanicActionDto(roomId=' + this.c7s_1 + ', version=' + this.d7s_1 + ', gameCreatorPlayerId=' + this.e7s_1 + ', config=' + this.f7s_1.toString() + ', users=' + toString(this.g7s_1) + ', spectators=' + toString_0(this.h7s_1) + ')';
14231
14232
  };
14232
14233
  protoOf(StartGameMechanicActionDto).hashCode = function () {
14233
14234
  var result = getStringHashCode(this.c7s_1);
@@ -34012,8 +34013,8 @@
34012
34013
  tmp0_serialDesc.r4j('gameId', false);
34013
34014
  tmp0_serialDesc.r4j('createdAt', false);
34014
34015
  tmp0_serialDesc.r4j('round', false);
34015
- tmp0_serialDesc.r4j('gameWinners', true);
34016
- tmp0_serialDesc.r4j('metadata', true);
34016
+ tmp0_serialDesc.r4j('gameWinners', false);
34017
+ tmp0_serialDesc.r4j('metadata', false);
34017
34018
  this.b8s_1 = tmp0_serialDesc;
34018
34019
  }
34019
34020
  protoOf($serializer_116).c8s = function (encoder, value) {
@@ -34023,12 +34024,8 @@
34023
34024
  tmp1_output.r4d(tmp0_desc, 0, value.q86_1);
34024
34025
  tmp1_output.r4d(tmp0_desc, 1, value.r86_1);
34025
34026
  tmp1_output.t4d(tmp0_desc, 2, $serializer_getInstance_122(), value.s86_1);
34026
- if (tmp1_output.z4d(tmp0_desc, 3) ? true : !(value.t86_1 == null)) {
34027
- tmp1_output.v4d(tmp0_desc, 3, tmp2_cached[3], value.t86_1);
34028
- }
34029
- if (tmp1_output.z4d(tmp0_desc, 4) ? true : !(value.u86_1 == null)) {
34030
- tmp1_output.v4d(tmp0_desc, 4, $serializer_getInstance_120(), value.u86_1);
34031
- }
34027
+ tmp1_output.v4d(tmp0_desc, 3, tmp2_cached[3], value.t86_1);
34028
+ tmp1_output.v4d(tmp0_desc, 4, $serializer_getInstance_120(), value.u86_1);
34032
34029
  tmp1_output.e4c(tmp0_desc);
34033
34030
  };
34034
34031
  protoOf($serializer_116).q48 = function (encoder, value) {
@@ -34108,20 +34105,14 @@
34108
34105
  return $serializer_instance_116;
34109
34106
  }
34110
34107
  function GameHistoryDto_init_$Init$(seen0, gameId, createdAt, round, gameWinners, metadata, serializationConstructorMarker, $this) {
34111
- if (!(7 === (7 & seen0))) {
34112
- throwMissingFieldException(seen0, 7, $serializer_getInstance_119().b8s_1);
34108
+ if (!(31 === (31 & seen0))) {
34109
+ throwMissingFieldException(seen0, 31, $serializer_getInstance_119().b8s_1);
34113
34110
  }
34114
34111
  $this.q86_1 = gameId;
34115
34112
  $this.r86_1 = createdAt;
34116
34113
  $this.s86_1 = round;
34117
- if (0 === (seen0 & 8))
34118
- $this.t86_1 = null;
34119
- else
34120
- $this.t86_1 = gameWinners;
34121
- if (0 === (seen0 & 16))
34122
- $this.u86_1 = null;
34123
- else
34124
- $this.u86_1 = metadata;
34114
+ $this.t86_1 = gameWinners;
34115
+ $this.u86_1 = metadata;
34125
34116
  return $this;
34126
34117
  }
34127
34118
  function GameHistoryDto_init_$Create$(seen0, gameId, createdAt, round, gameWinners, metadata, serializationConstructorMarker) {
@@ -34129,8 +34120,6 @@
34129
34120
  }
34130
34121
  function GameHistoryDto(gameId, createdAt, round, gameWinners, metadata) {
34131
34122
  Companion_getInstance_158();
34132
- gameWinners = gameWinners === VOID ? null : gameWinners;
34133
- metadata = metadata === VOID ? null : metadata;
34134
34123
  this.q86_1 = gameId;
34135
34124
  this.r86_1 = createdAt;
34136
34125
  this.s86_1 = round;
@@ -48454,7 +48443,7 @@
48454
48443
  } else {
48455
48444
  tmp_1 = null;
48456
48445
  }
48457
- return tmp.withAnalytics(reason, tmp_0, table, tmp_1);
48446
+ return tmp.fromTableWithAnalytics(reason, tmp_0, table, tmp_1);
48458
48447
  };
48459
48448
  protoOf(PlayerConnectionInteractor).m99 = function (reason, table, debugReason, transitionPlayersForNewGame, $super) {
48460
48449
  transitionPlayersForNewGame = transitionPlayersForNewGame === VOID ? emptyList() : transitionPlayersForNewGame;
@@ -52825,16 +52814,21 @@
52825
52814
  var tmp6_isRoundHistorySaved = tmp;
52826
52815
  return new FinishingGameMechanicAction(reason, isGameFinished, transition, tmp4_sessionAnalytics, tmp5_gameHistory, tmp6_isRoundHistorySaved);
52827
52816
  };
52828
- protoOf(Companion_190).withAnalytics = function (reason, isGameFinished, table, transition, $super) {
52817
+ protoOf(Companion_190).fromTableWithAnalytics = function (reason, isGameFinished, table, transition, $super) {
52829
52818
  transition = transition === VOID ? null : transition;
52830
52819
  return this.p9e(reason, isGameFinished, table, transition);
52831
52820
  };
52821
+ protoOf(Companion_190).fromTable = function (table) {
52822
+ var tmp2_reason = ProcessingReason_getInstance();
52823
+ var tmp1_elvis_lhs = table == null ? null : table.isGameFinished;
52824
+ var tmp3_isGameFinished = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
52825
+ return new FinishingGameMechanicAction(tmp2_reason, tmp3_isGameFinished, null, null, null, true);
52826
+ };
52832
52827
  var Companion_instance_195;
52833
52828
  function Companion_getInstance_197() {
52834
52829
  return Companion_instance_195;
52835
52830
  }
52836
52831
  function FinishingGameMechanicAction(reason, isGameFinished, transition, sessionAnalytics, gameHistory, isRoundHistorySaved, aid) {
52837
- transition = transition === VOID ? null : transition;
52838
52832
  sessionAnalytics = sessionAnalytics === VOID ? null : sessionAnalytics;
52839
52833
  gameHistory = gameHistory === VOID ? null : gameHistory;
52840
52834
  isRoundHistorySaved = isRoundHistorySaved === VOID ? true : isRoundHistorySaved;
@@ -60977,7 +60971,7 @@
60977
60971
  }
60978
60972
  function GameHelper() {
60979
60973
  }
60980
- function prepareConfigObjectInternal($this, map) {
60974
+ function prepareLobbyFilterInternal($this, map) {
60981
60975
  var jsObject = {};
60982
60976
  var tmp = map.k2('players');
60983
60977
  var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
@@ -60994,7 +60988,7 @@
60994
60988
  while (inductionVariable < last) {
60995
60989
  var element = tmp0_safe_receiver[inductionVariable];
60996
60990
  inductionVariable = inductionVariable + 1 | 0;
60997
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
60991
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
60998
60992
  validatePlayers($this, element);
60999
60993
  }
61000
60994
  tmp_0 = tmp0_safe_receiver;
@@ -61007,7 +61001,7 @@
61007
61001
  // Inline function 'kotlin.takeIf' call
61008
61002
  // Inline function 'kotlin.contracts.contract' call
61009
61003
  var tmp_2;
61010
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61004
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61011
61005
  // Inline function 'kotlin.collections.isNotEmpty' call
61012
61006
  // Inline function 'kotlin.collections.isEmpty' call
61013
61007
  if (!(tmp1_safe_receiver.length === 0)) {
@@ -61033,7 +61027,7 @@
61033
61027
  while (inductionVariable_0 < last_0) {
61034
61028
  var element_0 = tmp2_safe_receiver[inductionVariable_0];
61035
61029
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
61036
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61030
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61037
61031
  validatePoints($this, element_0);
61038
61032
  }
61039
61033
  tmp_4 = tmp2_safe_receiver;
@@ -61046,7 +61040,7 @@
61046
61040
  // Inline function 'kotlin.takeIf' call
61047
61041
  // Inline function 'kotlin.contracts.contract' call
61048
61042
  var tmp_6;
61049
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61043
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61050
61044
  // Inline function 'kotlin.collections.isNotEmpty' call
61051
61045
  // Inline function 'kotlin.collections.isEmpty' call
61052
61046
  if (!(tmp3_safe_receiver.length === 0)) {
@@ -61072,7 +61066,7 @@
61072
61066
  while (inductionVariable_1 < last_1) {
61073
61067
  var element_1 = tmp4_safe_receiver[inductionVariable_1];
61074
61068
  inductionVariable_1 = inductionVariable_1 + 1 | 0;
61075
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61069
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61076
61070
  validateTimeoutTime($this, element_1);
61077
61071
  }
61078
61072
  tmp_8 = tmp4_safe_receiver;
@@ -61085,7 +61079,7 @@
61085
61079
  // Inline function 'kotlin.takeIf' call
61086
61080
  // Inline function 'kotlin.contracts.contract' call
61087
61081
  var tmp_10;
61088
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61082
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61089
61083
  // Inline function 'kotlin.collections.isNotEmpty' call
61090
61084
  // Inline function 'kotlin.collections.isEmpty' call
61091
61085
  if (!(tmp5_safe_receiver.length === 0)) {
@@ -61096,7 +61090,7 @@
61096
61090
  tmp_9 = tmp_10;
61097
61091
  }
61098
61092
  var timeoutTime = tmp_9;
61099
- var tmp_11 = map.k2('rulesPreset');
61093
+ var tmp_11 = map.k2('leagues');
61100
61094
  var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
61101
61095
  var tmp_12;
61102
61096
  if (tmp6_safe_receiver == null) {
@@ -61111,8 +61105,8 @@
61111
61105
  while (inductionVariable_2 < last_2) {
61112
61106
  var element_2 = tmp6_safe_receiver[inductionVariable_2];
61113
61107
  inductionVariable_2 = inductionVariable_2 + 1 | 0;
61114
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61115
- validateRulesSetType($this, element_2);
61108
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61109
+ validateLeague($this, element_2);
61116
61110
  }
61117
61111
  tmp_12 = tmp6_safe_receiver;
61118
61112
  }
@@ -61124,7 +61118,7 @@
61124
61118
  // Inline function 'kotlin.takeIf' call
61125
61119
  // Inline function 'kotlin.contracts.contract' call
61126
61120
  var tmp_14;
61127
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61121
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61128
61122
  // Inline function 'kotlin.collections.isNotEmpty' call
61129
61123
  // Inline function 'kotlin.collections.isEmpty' call
61130
61124
  if (!(tmp7_safe_receiver.length === 0)) {
@@ -61134,40 +61128,79 @@
61134
61128
  }
61135
61129
  tmp_13 = tmp_14;
61136
61130
  }
61137
- var rulesPreset = tmp_13;
61138
- var tmp_15 = map.k2('isChatEnabled');
61139
- var isChatEnabled = (!(tmp_15 == null) ? typeof tmp_15 === 'boolean' : false) ? tmp_15 : null;
61131
+ var leagues = tmp_13;
61132
+ var tmp_15 = map.k2('rulesPreset');
61133
+ var tmp8_safe_receiver = (tmp_15 == null ? true : isArray(tmp_15)) ? tmp_15 : null;
61140
61134
  var tmp_16;
61135
+ if (tmp8_safe_receiver == null) {
61136
+ tmp_16 = null;
61137
+ } else {
61138
+ // Inline function 'kotlin.collections.onEach' call
61139
+ // Inline function 'kotlin.apply' call
61140
+ // Inline function 'kotlin.contracts.contract' call
61141
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61142
+ var inductionVariable_3 = 0;
61143
+ var last_3 = tmp8_safe_receiver.length;
61144
+ while (inductionVariable_3 < last_3) {
61145
+ var element_3 = tmp8_safe_receiver[inductionVariable_3];
61146
+ inductionVariable_3 = inductionVariable_3 + 1 | 0;
61147
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61148
+ validateRulesSetType($this, element_3);
61149
+ }
61150
+ tmp_16 = tmp8_safe_receiver;
61151
+ }
61152
+ var tmp9_safe_receiver = tmp_16;
61153
+ var tmp_17;
61154
+ if (tmp9_safe_receiver == null) {
61155
+ tmp_17 = null;
61156
+ } else {
61157
+ // Inline function 'kotlin.takeIf' call
61158
+ // Inline function 'kotlin.contracts.contract' call
61159
+ var tmp_18;
61160
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61161
+ // Inline function 'kotlin.collections.isNotEmpty' call
61162
+ // Inline function 'kotlin.collections.isEmpty' call
61163
+ if (!(tmp9_safe_receiver.length === 0)) {
61164
+ tmp_18 = tmp9_safe_receiver;
61165
+ } else {
61166
+ tmp_18 = null;
61167
+ }
61168
+ tmp_17 = tmp_18;
61169
+ }
61170
+ var rulesPreset = tmp_17;
61171
+ var tmp_19 = map.k2('isChatEnabled');
61172
+ var isChatEnabled = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
61173
+ var tmp_20;
61141
61174
  if (players == null) {
61142
61175
  // Inline function 'kotlin.arrayOf' call
61143
61176
  // Inline function 'kotlin.js.unsafeCast' call
61144
61177
  // Inline function 'kotlin.js.asDynamic' call
61145
- tmp_16 = [2, 3, 4, 5];
61178
+ tmp_20 = [2, 3, 4, 5];
61146
61179
  } else {
61147
- tmp_16 = players;
61180
+ tmp_20 = players;
61148
61181
  }
61149
- jsObject['players'] = tmp_16;
61150
- var tmp_17;
61182
+ jsObject['players'] = tmp_20;
61183
+ var tmp_21;
61151
61184
  if (points == null) {
61152
61185
  // Inline function 'kotlin.arrayOf' call
61153
61186
  // Inline function 'kotlin.js.unsafeCast' call
61154
61187
  // Inline function 'kotlin.js.asDynamic' call
61155
- tmp_17 = [301, 501, 1001];
61188
+ tmp_21 = [301, 501, 1001];
61156
61189
  } else {
61157
- tmp_17 = points;
61190
+ tmp_21 = points;
61158
61191
  }
61159
- jsObject['points'] = tmp_17;
61160
- var tmp_18;
61192
+ jsObject['points'] = tmp_21;
61193
+ var tmp_22;
61161
61194
  if (timeoutTime == null) {
61162
61195
  // Inline function 'kotlin.arrayOf' call
61163
61196
  // Inline function 'kotlin.js.unsafeCast' call
61164
61197
  // Inline function 'kotlin.js.asDynamic' call
61165
- tmp_18 = [15, 30, 45];
61198
+ tmp_22 = [15, 30, 45];
61166
61199
  } else {
61167
- tmp_18 = timeoutTime;
61200
+ tmp_22 = timeoutTime;
61168
61201
  }
61169
- jsObject['timeoutTime'] = tmp_18;
61170
- var tmp_19;
61202
+ jsObject['timeoutTime'] = tmp_22;
61203
+ var tmp_23;
61171
61204
  if (rulesPreset == null) {
61172
61205
  // Inline function 'kotlin.collections.toTypedArray' call
61173
61206
  // Inline function 'kotlin.collections.map' call
@@ -61177,23 +61210,47 @@
61177
61210
  var tmp0_iterator = this_0.j();
61178
61211
  while (tmp0_iterator.k()) {
61179
61212
  var item = tmp0_iterator.l();
61180
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
61181
- var tmp$ret$33 = item.q2_1;
61182
- destination.e(tmp$ret$33);
61213
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61214
+ var tmp$ret$39 = item.q2_1;
61215
+ destination.e(tmp$ret$39);
61216
+ }
61217
+ tmp_23 = copyToArray(destination);
61218
+ } else {
61219
+ tmp_23 = rulesPreset;
61220
+ }
61221
+ jsObject['rulesPreset'] = tmp_23;
61222
+ var tmp_24;
61223
+ if (leagues == null) {
61224
+ // Inline function 'kotlin.collections.toTypedArray' call
61225
+ // Inline function 'kotlin.collections.map' call
61226
+ var this_1 = get_entries_0();
61227
+ // Inline function 'kotlin.collections.mapTo' call
61228
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
61229
+ var tmp0_iterator_0 = this_1.j();
61230
+ while (tmp0_iterator_0.k()) {
61231
+ var item_0 = tmp0_iterator_0.l();
61232
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61233
+ // Inline function 'kotlin.text.lowercase' call
61234
+ // Inline function 'kotlin.js.asDynamic' call
61235
+ var tmp$ret$45 = item_0.q2_1.toLowerCase();
61236
+ destination_0.e(tmp$ret$45);
61183
61237
  }
61184
- tmp_19 = copyToArray(destination);
61238
+ tmp_24 = copyToArray(destination_0);
61185
61239
  } else {
61186
- tmp_19 = rulesPreset;
61240
+ tmp_24 = leagues;
61187
61241
  }
61188
- jsObject['rulesPreset'] = tmp_19;
61242
+ jsObject['leagues'] = tmp_24;
61189
61243
  jsObject['isChatEnabled'] = isChatEnabled;
61190
61244
  return jsObject;
61191
61245
  }
61192
- function isValidConfig($this, players, points, timeoutTime, rulesPreset, rules) {
61246
+ function isValidConfig($this, players, points, timeoutTime, rulesPreset, league, rules) {
61193
61247
  validatePoints($this, points);
61194
61248
  validatePlayers($this, players);
61195
61249
  validateTimeoutTime($this, timeoutTime);
61196
61250
  validateRulesSetType($this, rulesPreset);
61251
+ if (!(league == null)) {
61252
+ validateLeague($this, league);
61253
+ }
61197
61254
  validateRules($this, rules);
61198
61255
  return true;
61199
61256
  }
@@ -61437,6 +61494,26 @@
61437
61494
  throw IllegalStateException_init_$Create$('Not valid points mode ' + points);
61438
61495
  }
61439
61496
  }
61497
+ function validateLeague($this, league) {
61498
+ // Inline function 'kotlin.collections.map' call
61499
+ var this_0 = get_entries_0();
61500
+ // Inline function 'kotlin.collections.mapTo' call
61501
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
61502
+ var tmp0_iterator = this_0.j();
61503
+ while (tmp0_iterator.k()) {
61504
+ var item = tmp0_iterator.l();
61505
+ // Inline function 'GameHelperImpl.validateLeague.<anonymous>' call
61506
+ var tmp$ret$0 = item.q2_1;
61507
+ destination.e(tmp$ret$0);
61508
+ }
61509
+ var tmp = destination;
61510
+ // Inline function 'kotlin.text.uppercase' call
61511
+ // Inline function 'kotlin.js.asDynamic' call
61512
+ var tmp$ret$4 = league.toUpperCase();
61513
+ if (!tmp.v1(tmp$ret$4)) {
61514
+ throw IllegalStateException_init_$Create$('Not valid league ' + league);
61515
+ }
61516
+ }
61440
61517
  function validateRulesSetType($this, rulesSetType) {
61441
61518
  // Inline function 'kotlin.collections.map' call
61442
61519
  var this_0 = get_entries_3();
@@ -61449,7 +61526,11 @@
61449
61526
  var tmp$ret$0 = item.q2_1;
61450
61527
  destination.e(tmp$ret$0);
61451
61528
  }
61452
- if (!destination.v1(rulesSetType)) {
61529
+ var tmp = destination;
61530
+ // Inline function 'kotlin.text.uppercase' call
61531
+ // Inline function 'kotlin.js.asDynamic' call
61532
+ var tmp$ret$4 = rulesSetType.toUpperCase();
61533
+ if (!tmp.v1(tmp$ret$4)) {
61453
61534
  throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
61454
61535
  }
61455
61536
  }
@@ -61762,7 +61843,7 @@
61762
61843
  protoOf(GameHelperImpl).mapRules = function (rules) {
61763
61844
  return mapRulesObject(this, rules);
61764
61845
  };
61765
- protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
61846
+ protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
61766
61847
  var map = mapOfObject(config);
61767
61848
  var tmp = map.k2('limit');
61768
61849
  var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
@@ -61772,18 +61853,245 @@
61772
61853
  } else {
61773
61854
  // Inline function 'kotlin.also' call
61774
61855
  // Inline function 'kotlin.contracts.contract' call
61775
- // Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
61856
+ // Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
61776
61857
  validateLimit(this, tmp0_safe_receiver);
61777
61858
  tmp_0 = tmp0_safe_receiver;
61778
61859
  }
61779
61860
  var limit = tmp_0;
61780
- var jsObject = prepareConfigObjectInternal(this, map);
61861
+ var jsObject = prepareLobbyFilterInternal(this, map);
61781
61862
  jsObject['limit'] = limit == null ? 20 : limit;
61782
61863
  return jsObject;
61783
61864
  };
61784
- protoOf(GameHelperImpl).prepareConfigObject = function (config) {
61865
+ protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
61866
+ var map = mapOfObject(config);
61867
+ return prepareLobbyFilterInternal(this, map);
61868
+ };
61869
+ protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
61785
61870
  var map = mapOfObject(config);
61786
- return prepareConfigObjectInternal(this, map);
61871
+ var jsObject = {};
61872
+ var tmp = map.k2('players');
61873
+ var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
61874
+ var tmp_0;
61875
+ if (tmp0_safe_receiver == null) {
61876
+ tmp_0 = null;
61877
+ } else {
61878
+ // Inline function 'kotlin.collections.onEach' call
61879
+ // Inline function 'kotlin.apply' call
61880
+ // Inline function 'kotlin.contracts.contract' call
61881
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61882
+ var inductionVariable = 0;
61883
+ var last = tmp0_safe_receiver.length;
61884
+ while (inductionVariable < last) {
61885
+ var element = tmp0_safe_receiver[inductionVariable];
61886
+ inductionVariable = inductionVariable + 1 | 0;
61887
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61888
+ validatePlayers(this, element);
61889
+ }
61890
+ tmp_0 = tmp0_safe_receiver;
61891
+ }
61892
+ var tmp1_safe_receiver = tmp_0;
61893
+ var tmp_1;
61894
+ if (tmp1_safe_receiver == null) {
61895
+ tmp_1 = null;
61896
+ } else {
61897
+ // Inline function 'kotlin.takeIf' call
61898
+ // Inline function 'kotlin.contracts.contract' call
61899
+ var tmp_2;
61900
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61901
+ // Inline function 'kotlin.collections.isNotEmpty' call
61902
+ // Inline function 'kotlin.collections.isEmpty' call
61903
+ if (!(tmp1_safe_receiver.length === 0)) {
61904
+ tmp_2 = tmp1_safe_receiver;
61905
+ } else {
61906
+ tmp_2 = null;
61907
+ }
61908
+ tmp_1 = tmp_2;
61909
+ }
61910
+ var players = tmp_1;
61911
+ var tmp_3 = map.k2('points');
61912
+ var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
61913
+ var tmp_4;
61914
+ if (tmp2_safe_receiver == null) {
61915
+ tmp_4 = null;
61916
+ } else {
61917
+ // Inline function 'kotlin.collections.onEach' call
61918
+ // Inline function 'kotlin.apply' call
61919
+ // Inline function 'kotlin.contracts.contract' call
61920
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61921
+ var inductionVariable_0 = 0;
61922
+ var last_0 = tmp2_safe_receiver.length;
61923
+ while (inductionVariable_0 < last_0) {
61924
+ var element_0 = tmp2_safe_receiver[inductionVariable_0];
61925
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
61926
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61927
+ validatePoints(this, element_0);
61928
+ }
61929
+ tmp_4 = tmp2_safe_receiver;
61930
+ }
61931
+ var tmp3_safe_receiver = tmp_4;
61932
+ var tmp_5;
61933
+ if (tmp3_safe_receiver == null) {
61934
+ tmp_5 = null;
61935
+ } else {
61936
+ // Inline function 'kotlin.takeIf' call
61937
+ // Inline function 'kotlin.contracts.contract' call
61938
+ var tmp_6;
61939
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61940
+ // Inline function 'kotlin.collections.isNotEmpty' call
61941
+ // Inline function 'kotlin.collections.isEmpty' call
61942
+ if (!(tmp3_safe_receiver.length === 0)) {
61943
+ tmp_6 = tmp3_safe_receiver;
61944
+ } else {
61945
+ tmp_6 = null;
61946
+ }
61947
+ tmp_5 = tmp_6;
61948
+ }
61949
+ var points = tmp_5;
61950
+ var tmp_7 = map.k2('timeoutTime');
61951
+ var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
61952
+ var tmp_8;
61953
+ if (tmp4_safe_receiver == null) {
61954
+ tmp_8 = null;
61955
+ } else {
61956
+ // Inline function 'kotlin.collections.onEach' call
61957
+ // Inline function 'kotlin.apply' call
61958
+ // Inline function 'kotlin.contracts.contract' call
61959
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61960
+ var inductionVariable_1 = 0;
61961
+ var last_1 = tmp4_safe_receiver.length;
61962
+ while (inductionVariable_1 < last_1) {
61963
+ var element_1 = tmp4_safe_receiver[inductionVariable_1];
61964
+ inductionVariable_1 = inductionVariable_1 + 1 | 0;
61965
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61966
+ validateTimeoutTime(this, element_1);
61967
+ }
61968
+ tmp_8 = tmp4_safe_receiver;
61969
+ }
61970
+ var tmp5_safe_receiver = tmp_8;
61971
+ var tmp_9;
61972
+ if (tmp5_safe_receiver == null) {
61973
+ tmp_9 = null;
61974
+ } else {
61975
+ // Inline function 'kotlin.takeIf' call
61976
+ // Inline function 'kotlin.contracts.contract' call
61977
+ var tmp_10;
61978
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61979
+ // Inline function 'kotlin.collections.isNotEmpty' call
61980
+ // Inline function 'kotlin.collections.isEmpty' call
61981
+ if (!(tmp5_safe_receiver.length === 0)) {
61982
+ tmp_10 = tmp5_safe_receiver;
61983
+ } else {
61984
+ tmp_10 = null;
61985
+ }
61986
+ tmp_9 = tmp_10;
61987
+ }
61988
+ var timeoutTime = tmp_9;
61989
+ var tmp_11 = map.k2('league');
61990
+ var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
61991
+ var tmp_12;
61992
+ if (tmp6_safe_receiver == null) {
61993
+ tmp_12 = null;
61994
+ } else {
61995
+ // Inline function 'kotlin.apply' call
61996
+ // Inline function 'kotlin.contracts.contract' call
61997
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61998
+ validateLeague(this, tmp6_safe_receiver);
61999
+ tmp_12 = tmp6_safe_receiver;
62000
+ }
62001
+ var league = tmp_12;
62002
+ var tmp_13 = map.k2('rulesPreset');
62003
+ var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
62004
+ var tmp_14;
62005
+ if (tmp7_safe_receiver == null) {
62006
+ tmp_14 = null;
62007
+ } else {
62008
+ // Inline function 'kotlin.collections.onEach' call
62009
+ // Inline function 'kotlin.apply' call
62010
+ // Inline function 'kotlin.contracts.contract' call
62011
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
62012
+ var inductionVariable_2 = 0;
62013
+ var last_2 = tmp7_safe_receiver.length;
62014
+ while (inductionVariable_2 < last_2) {
62015
+ var element_2 = tmp7_safe_receiver[inductionVariable_2];
62016
+ inductionVariable_2 = inductionVariable_2 + 1 | 0;
62017
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62018
+ validateRulesSetType(this, element_2);
62019
+ }
62020
+ tmp_14 = tmp7_safe_receiver;
62021
+ }
62022
+ var tmp8_safe_receiver = tmp_14;
62023
+ var tmp_15;
62024
+ if (tmp8_safe_receiver == null) {
62025
+ tmp_15 = null;
62026
+ } else {
62027
+ // Inline function 'kotlin.takeIf' call
62028
+ // Inline function 'kotlin.contracts.contract' call
62029
+ var tmp_16;
62030
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62031
+ // Inline function 'kotlin.collections.isNotEmpty' call
62032
+ // Inline function 'kotlin.collections.isEmpty' call
62033
+ if (!(tmp8_safe_receiver.length === 0)) {
62034
+ tmp_16 = tmp8_safe_receiver;
62035
+ } else {
62036
+ tmp_16 = null;
62037
+ }
62038
+ tmp_15 = tmp_16;
62039
+ }
62040
+ var rulesPreset = tmp_15;
62041
+ var tmp_17 = map.k2('isChatEnabled');
62042
+ var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
62043
+ var tmp_18;
62044
+ if (players == null) {
62045
+ // Inline function 'kotlin.arrayOf' call
62046
+ // Inline function 'kotlin.js.unsafeCast' call
62047
+ // Inline function 'kotlin.js.asDynamic' call
62048
+ tmp_18 = [2, 3, 4, 5];
62049
+ } else {
62050
+ tmp_18 = players;
62051
+ }
62052
+ jsObject['players'] = tmp_18;
62053
+ var tmp_19;
62054
+ if (points == null) {
62055
+ // Inline function 'kotlin.arrayOf' call
62056
+ // Inline function 'kotlin.js.unsafeCast' call
62057
+ // Inline function 'kotlin.js.asDynamic' call
62058
+ tmp_19 = [301, 501, 1001];
62059
+ } else {
62060
+ tmp_19 = points;
62061
+ }
62062
+ jsObject['points'] = tmp_19;
62063
+ var tmp_20;
62064
+ if (timeoutTime == null) {
62065
+ // Inline function 'kotlin.arrayOf' call
62066
+ // Inline function 'kotlin.js.unsafeCast' call
62067
+ // Inline function 'kotlin.js.asDynamic' call
62068
+ tmp_20 = [15, 30, 45];
62069
+ } else {
62070
+ tmp_20 = timeoutTime;
62071
+ }
62072
+ jsObject['timeoutTime'] = tmp_20;
62073
+ var tmp_21;
62074
+ if (rulesPreset == null) {
62075
+ // Inline function 'kotlin.collections.toTypedArray' call
62076
+ // Inline function 'kotlin.collections.map' call
62077
+ var this_0 = get_entries_3();
62078
+ // Inline function 'kotlin.collections.mapTo' call
62079
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
62080
+ var tmp0_iterator = this_0.j();
62081
+ while (tmp0_iterator.k()) {
62082
+ var item = tmp0_iterator.l();
62083
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62084
+ var tmp$ret$34 = item.q2_1;
62085
+ destination.e(tmp$ret$34);
62086
+ }
62087
+ tmp_21 = copyToArray(destination);
62088
+ } else {
62089
+ tmp_21 = rulesPreset;
62090
+ }
62091
+ jsObject['rulesPreset'] = tmp_21;
62092
+ jsObject['league'] = league;
62093
+ jsObject['isChatEnabled'] = isChatEnabled;
62094
+ return jsObject;
61787
62095
  };
61788
62096
  protoOf(GameHelperImpl).isValidConfigObject = function (config) {
61789
62097
  var map = mapOfObject(config);
@@ -61796,13 +62104,14 @@
61796
62104
  var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
61797
62105
  var tmp_5 = getValue(map, 'rulesPreset');
61798
62106
  var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
61799
- var tmp_7;
62107
+ var tmp_7 = map.k2('league');
62108
+ var tmp_8;
61800
62109
  if (rules != null && rules != undefined) {
61801
- tmp_7 = mapRulesObject(this, rules);
62110
+ tmp_8 = mapRulesObject(this, rules);
61802
62111
  } else {
61803
- tmp_7 = null;
62112
+ tmp_8 = null;
61804
62113
  }
61805
- return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
62114
+ return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7, tmp_8);
61806
62115
  };
61807
62116
  protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
61808
62117
  var tmp;
@@ -61853,7 +62162,16 @@
61853
62162
  return tmp;
61854
62163
  };
61855
62164
  protoOf(GameHelperImpl).mapRulesSetType = function (name) {
61856
- return valueOf_6(name);
62165
+ // Inline function 'kotlin.text.uppercase' call
62166
+ // Inline function 'kotlin.js.asDynamic' call
62167
+ var tmp$ret$1 = name.toUpperCase();
62168
+ return valueOf_6(tmp$ret$1);
62169
+ };
62170
+ protoOf(GameHelperImpl).mapToLeague = function (name) {
62171
+ // Inline function 'kotlin.text.uppercase' call
62172
+ // Inline function 'kotlin.js.asDynamic' call
62173
+ var tmp$ret$1 = name.toUpperCase();
62174
+ return valueOf_0(tmp$ret$1);
61857
62175
  };
61858
62176
  function GameResources() {
61859
62177
  }
@@ -62203,6 +62521,12 @@
62203
62521
  protoOf(RatingHelperImpl).getLeaguesConfig = function () {
62204
62522
  return this.c9w_1.e99();
62205
62523
  };
62524
+ protoOf(RatingHelperImpl).mapToLeague = function (name) {
62525
+ // Inline function 'kotlin.text.uppercase' call
62526
+ // Inline function 'kotlin.js.asDynamic' call
62527
+ var tmp$ret$1 = name.toUpperCase();
62528
+ return valueOf_0(tmp$ret$1);
62529
+ };
62206
62530
  function engineHelpersModule() {
62207
62531
  return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
62208
62532
  }
@@ -64027,40 +64351,41 @@
64027
64351
  _.$_$.d9 = CombinationState_ACCEPTED_getInstance;
64028
64352
  _.$_$.e9 = CombinationState_CANCELED_getInstance;
64029
64353
  _.$_$.f9 = CombinationState_REJECTED_getInstance;
64030
- _.$_$.g9 = GameLifecycleState_CREATED_getInstance;
64031
- _.$_$.h9 = GameLifecycleState_CREATING_getInstance;
64032
- _.$_$.i9 = GameLifecycleState_FINISHED_getInstance;
64033
- _.$_$.j9 = GameLifecycleState_FINISHING_getInstance;
64034
- _.$_$.k9 = UserActionPayload_init_$Create$;
64035
- _.$_$.l9 = UserActionPayload_init_$Create$_0;
64036
- _.$_$.m9 = PlayerTurnTimerTag_init_$Create$;
64037
- _.$_$.n9 = Companion_getInstance_49;
64038
- _.$_$.o9 = Companion_getInstance_93;
64039
- _.$_$.p9 = $serializer_getInstance_69;
64040
- _.$_$.q9 = $serializer_getInstance_76;
64041
- _.$_$.r9 = $serializer_getInstance_104;
64042
- _.$_$.s9 = $serializer_getInstance_109;
64043
- _.$_$.t9 = $serializer_getInstance_111;
64044
- _.$_$.u9 = $serializer_getInstance_112;
64045
- _.$_$.v9 = $serializer_getInstance_113;
64046
- _.$_$.w9 = $serializer_getInstance_114;
64047
- _.$_$.x9 = $serializer_getInstance_116;
64048
- _.$_$.y9 = $serializer_getInstance_120;
64049
- _.$_$.z9 = Companion_getInstance_162;
64050
- _.$_$.aa = $serializer_getInstance_101;
64051
- _.$_$.ba = $serializer_getInstance_2;
64052
- _.$_$.ca = $serializer_getInstance_3;
64053
- _.$_$.da = $serializer_getInstance_4;
64054
- _.$_$.ea = $serializer_getInstance_5;
64055
- _.$_$.fa = Companion_instance_175;
64056
- _.$_$.ga = Companion_instance_176;
64057
- _.$_$.ha = Companion_getInstance_185;
64058
- _.$_$.ia = Companion_getInstance_186;
64059
- _.$_$.ja = Companion_instance_174;
64060
- _.$_$.ka = Companion_getInstance_10;
64061
- _.$_$.la = Companion_instance_195;
64062
- _.$_$.ma = Companion_instance_197;
64063
- _.$_$.na = Companion_instance_198;
64354
+ _.$_$.g9 = RoomMode_REVENGE_getInstance;
64355
+ _.$_$.h9 = GameLifecycleState_CREATED_getInstance;
64356
+ _.$_$.i9 = GameLifecycleState_CREATING_getInstance;
64357
+ _.$_$.j9 = GameLifecycleState_FINISHED_getInstance;
64358
+ _.$_$.k9 = GameLifecycleState_FINISHING_getInstance;
64359
+ _.$_$.l9 = UserActionPayload_init_$Create$;
64360
+ _.$_$.m9 = UserActionPayload_init_$Create$_0;
64361
+ _.$_$.n9 = PlayerTurnTimerTag_init_$Create$;
64362
+ _.$_$.o9 = Companion_getInstance_49;
64363
+ _.$_$.p9 = Companion_getInstance_93;
64364
+ _.$_$.q9 = $serializer_getInstance_69;
64365
+ _.$_$.r9 = $serializer_getInstance_76;
64366
+ _.$_$.s9 = $serializer_getInstance_104;
64367
+ _.$_$.t9 = $serializer_getInstance_109;
64368
+ _.$_$.u9 = $serializer_getInstance_111;
64369
+ _.$_$.v9 = $serializer_getInstance_112;
64370
+ _.$_$.w9 = $serializer_getInstance_113;
64371
+ _.$_$.x9 = $serializer_getInstance_114;
64372
+ _.$_$.y9 = $serializer_getInstance_116;
64373
+ _.$_$.z9 = $serializer_getInstance_120;
64374
+ _.$_$.aa = Companion_getInstance_162;
64375
+ _.$_$.ba = $serializer_getInstance_101;
64376
+ _.$_$.ca = $serializer_getInstance_2;
64377
+ _.$_$.da = $serializer_getInstance_3;
64378
+ _.$_$.ea = $serializer_getInstance_4;
64379
+ _.$_$.fa = $serializer_getInstance_5;
64380
+ _.$_$.ga = Companion_instance_175;
64381
+ _.$_$.ha = Companion_instance_176;
64382
+ _.$_$.ia = Companion_getInstance_185;
64383
+ _.$_$.ja = Companion_getInstance_186;
64384
+ _.$_$.ka = Companion_instance_174;
64385
+ _.$_$.la = Companion_getInstance_10;
64386
+ _.$_$.ma = Companion_instance_195;
64387
+ _.$_$.na = Companion_instance_197;
64388
+ _.$_$.oa = Companion_instance_198;
64064
64389
  //endregion
64065
64390
  return _;
64066
64391
  }));