client_plugin_logic_deb 1.8.323 → 1.8.325

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 prepareFilterObjectInternal($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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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.prepareFilterObjectInternal.<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,22 @@
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
+ if (!destination.v1(league)) {
61510
+ throw IllegalStateException_init_$Create$('Not valid league ' + league);
61511
+ }
61512
+ }
61440
61513
  function validateRulesSetType($this, rulesSetType) {
61441
61514
  // Inline function 'kotlin.collections.map' call
61442
61515
  var this_0 = get_entries_3();
@@ -61777,13 +61850,13 @@
61777
61850
  tmp_0 = tmp0_safe_receiver;
61778
61851
  }
61779
61852
  var limit = tmp_0;
61780
- var jsObject = prepareConfigObjectInternal(this, map);
61853
+ var jsObject = prepareFilterObjectInternal(this, map);
61781
61854
  jsObject['limit'] = limit == null ? 20 : limit;
61782
61855
  return jsObject;
61783
61856
  };
61784
61857
  protoOf(GameHelperImpl).prepareConfigObject = function (config) {
61785
61858
  var map = mapOfObject(config);
61786
- return prepareConfigObjectInternal(this, map);
61859
+ return prepareFilterObjectInternal(this, map);
61787
61860
  };
61788
61861
  protoOf(GameHelperImpl).isValidConfigObject = function (config) {
61789
61862
  var map = mapOfObject(config);
@@ -61796,13 +61869,14 @@
61796
61869
  var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
61797
61870
  var tmp_5 = getValue(map, 'rulesPreset');
61798
61871
  var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
61799
- var tmp_7;
61872
+ var tmp_7 = map.k2('league');
61873
+ var tmp_8;
61800
61874
  if (rules != null && rules != undefined) {
61801
- tmp_7 = mapRulesObject(this, rules);
61875
+ tmp_8 = mapRulesObject(this, rules);
61802
61876
  } else {
61803
- tmp_7 = null;
61877
+ tmp_8 = null;
61804
61878
  }
61805
- return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
61879
+ return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7, tmp_8);
61806
61880
  };
61807
61881
  protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
61808
61882
  var tmp;
@@ -61855,6 +61929,12 @@
61855
61929
  protoOf(GameHelperImpl).mapRulesSetType = function (name) {
61856
61930
  return valueOf_6(name);
61857
61931
  };
61932
+ protoOf(GameHelperImpl).mapToLeague = function (name) {
61933
+ // Inline function 'kotlin.text.uppercase' call
61934
+ // Inline function 'kotlin.js.asDynamic' call
61935
+ var tmp$ret$1 = name.toUpperCase();
61936
+ return valueOf_0(tmp$ret$1);
61937
+ };
61858
61938
  function GameResources() {
61859
61939
  }
61860
61940
  var AvatarSet_ORIGIN_instance;
@@ -62203,6 +62283,12 @@
62203
62283
  protoOf(RatingHelperImpl).getLeaguesConfig = function () {
62204
62284
  return this.c9w_1.e99();
62205
62285
  };
62286
+ protoOf(RatingHelperImpl).mapToLeague = function (name) {
62287
+ // Inline function 'kotlin.text.uppercase' call
62288
+ // Inline function 'kotlin.js.asDynamic' call
62289
+ var tmp$ret$1 = name.toUpperCase();
62290
+ return valueOf_0(tmp$ret$1);
62291
+ };
62206
62292
  function engineHelpersModule() {
62207
62293
  return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
62208
62294
  }
@@ -64027,40 +64113,41 @@
64027
64113
  _.$_$.d9 = CombinationState_ACCEPTED_getInstance;
64028
64114
  _.$_$.e9 = CombinationState_CANCELED_getInstance;
64029
64115
  _.$_$.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;
64116
+ _.$_$.g9 = RoomMode_REVENGE_getInstance;
64117
+ _.$_$.h9 = GameLifecycleState_CREATED_getInstance;
64118
+ _.$_$.i9 = GameLifecycleState_CREATING_getInstance;
64119
+ _.$_$.j9 = GameLifecycleState_FINISHED_getInstance;
64120
+ _.$_$.k9 = GameLifecycleState_FINISHING_getInstance;
64121
+ _.$_$.l9 = UserActionPayload_init_$Create$;
64122
+ _.$_$.m9 = UserActionPayload_init_$Create$_0;
64123
+ _.$_$.n9 = PlayerTurnTimerTag_init_$Create$;
64124
+ _.$_$.o9 = Companion_getInstance_49;
64125
+ _.$_$.p9 = Companion_getInstance_93;
64126
+ _.$_$.q9 = $serializer_getInstance_69;
64127
+ _.$_$.r9 = $serializer_getInstance_76;
64128
+ _.$_$.s9 = $serializer_getInstance_104;
64129
+ _.$_$.t9 = $serializer_getInstance_109;
64130
+ _.$_$.u9 = $serializer_getInstance_111;
64131
+ _.$_$.v9 = $serializer_getInstance_112;
64132
+ _.$_$.w9 = $serializer_getInstance_113;
64133
+ _.$_$.x9 = $serializer_getInstance_114;
64134
+ _.$_$.y9 = $serializer_getInstance_116;
64135
+ _.$_$.z9 = $serializer_getInstance_120;
64136
+ _.$_$.aa = Companion_getInstance_162;
64137
+ _.$_$.ba = $serializer_getInstance_101;
64138
+ _.$_$.ca = $serializer_getInstance_2;
64139
+ _.$_$.da = $serializer_getInstance_3;
64140
+ _.$_$.ea = $serializer_getInstance_4;
64141
+ _.$_$.fa = $serializer_getInstance_5;
64142
+ _.$_$.ga = Companion_instance_175;
64143
+ _.$_$.ha = Companion_instance_176;
64144
+ _.$_$.ia = Companion_getInstance_185;
64145
+ _.$_$.ja = Companion_getInstance_186;
64146
+ _.$_$.ka = Companion_instance_174;
64147
+ _.$_$.la = Companion_getInstance_10;
64148
+ _.$_$.ma = Companion_instance_195;
64149
+ _.$_$.na = Companion_instance_197;
64150
+ _.$_$.oa = Companion_instance_198;
64064
64151
  //endregion
64065
64152
  return _;
64066
64153
  }));