game_client_logic_deb 1.8.185 → 1.8.208

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 (39) hide show
  1. package/Kosi-Kaverit-kaverit.js +74 -74
  2. package/Kosi-Kodein-kodein-di.js +583 -583
  3. package/Kosi-Kodein-kodein-di.js.map +1 -1
  4. package/Kotlin-DateTime-library-kotlinx-datetime.js +1413 -1413
  5. package/Logic_Debertz-core.js +1527 -1484
  6. package/Logic_Debertz-core.js.map +1 -1
  7. package/Logic_Debertz-engine.js +16658 -15083
  8. package/Logic_Debertz-engine.js.map +1 -1
  9. package/Logic_Debertz-game_client.d.ts +70 -26
  10. package/Logic_Debertz-game_client.js +3462 -3671
  11. package/Logic_Debertz-game_client.js.map +1 -1
  12. package/kotlin-kotlin-stdlib.js +626 -619
  13. package/kotlin-kotlin-stdlib.js.map +1 -1
  14. package/kotlinx-atomicfu.js +19 -19
  15. package/kotlinx-coroutines-core.js +2223 -2223
  16. package/kotlinx-coroutines-core.js.map +1 -1
  17. package/kotlinx-io-kotlinx-io-core.js +271 -271
  18. package/kotlinx-serialization-kotlinx-serialization-core.js +1894 -1894
  19. package/kotlinx-serialization-kotlinx-serialization-json.js +1366 -1366
  20. package/ktor-ktor-client-content-negotiation.js +158 -158
  21. package/ktor-ktor-client-core.js +1605 -1605
  22. package/ktor-ktor-client-logging.js +306 -306
  23. package/ktor-ktor-events.js +12 -12
  24. package/ktor-ktor-http.js +688 -688
  25. package/ktor-ktor-io.js +1311 -1311
  26. package/ktor-ktor-serialization-kotlinx-json.js +8 -8
  27. package/ktor-ktor-serialization-kotlinx.js +155 -155
  28. package/ktor-ktor-serialization.js +73 -73
  29. package/ktor-ktor-utils.js +560 -560
  30. package/ktor-ktor-websockets.js +59 -59
  31. package/package.json +1 -1
  32. package/raspberry-cardgame-lib-core.js +272 -394
  33. package/raspberry-cardgame-lib-core.js.map +1 -1
  34. package/raspberry-cardgame-lib-logger.js +29 -14
  35. package/raspberry-cardgame-lib-logger.js.map +1 -1
  36. package/raspberry-cardgame-lib-random.js +1194 -884
  37. package/raspberry-cardgame-lib-random.js.map +1 -1
  38. package/secure-random-secure-random.js +18 -18
  39. package/uuid.js +30 -30
@@ -1,8 +1,8 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './raspberry-cardgame-lib-random.js', './kotlinx-coroutines-core.js', './Kotlin-DateTime-library-kotlinx-datetime.js'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './raspberry-cardgame-lib-random.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./raspberry-cardgame-lib-random.js'), require('./kotlinx-coroutines-core.js'), require('./Kotlin-DateTime-library-kotlinx-datetime.js'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./raspberry-cardgame-lib-random.js'));
6
6
  else {
7
7
  if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
8
8
  throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-core'.");
@@ -13,119 +13,102 @@
13
13
  if (typeof this['raspberry-cardgame-lib-random'] === 'undefined') {
14
14
  throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'raspberry-cardgame-lib-random' was not found. Please, check whether 'raspberry-cardgame-lib-random' is loaded prior to 'raspberry-cardgame-lib-core'.");
15
15
  }
16
- if (typeof this['kotlinx-coroutines-core'] === 'undefined') {
17
- throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'raspberry-cardgame-lib-core'.");
18
- }
19
- if (typeof this['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
20
- throw new Error("Error loading module 'raspberry-cardgame-lib-core'. Its dependency 'Kotlin-DateTime-library-kotlinx-datetime' was not found. Please, check whether 'Kotlin-DateTime-library-kotlinx-datetime' is loaded prior to 'raspberry-cardgame-lib-core'.");
21
- }
22
- root['raspberry-cardgame-lib-core'] = factory(typeof this['raspberry-cardgame-lib-core'] === 'undefined' ? {} : this['raspberry-cardgame-lib-core'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-core'], this['raspberry-cardgame-lib-random'], this['kotlinx-coroutines-core'], this['Kotlin-DateTime-library-kotlinx-datetime']);
16
+ root['raspberry-cardgame-lib-core'] = factory(typeof this['raspberry-cardgame-lib-core'] === 'undefined' ? {} : this['raspberry-cardgame-lib-core'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-core'], this['raspberry-cardgame-lib-random']);
23
17
  }
24
- }(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_raspberryapps_cardgame_random, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_datetime) {
18
+ }(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_raspberryapps_cardgame_random) {
25
19
  'use strict';
26
20
  //region block: imports
27
21
  var imul = Math.imul;
28
- var protoOf = kotlin_kotlin.$_$.oc;
29
- var initMetadataForObject = kotlin_kotlin.$_$.sb;
30
- var defineProp = kotlin_kotlin.$_$.eb;
31
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
32
- var Unit_instance = kotlin_kotlin.$_$.l5;
33
- var THROW_CCE = kotlin_kotlin.$_$.og;
34
- var Comparator = kotlin_kotlin.$_$.ag;
22
+ var protoOf = kotlin_kotlin.$_$.qc;
23
+ var initMetadataForObject = kotlin_kotlin.$_$.ub;
24
+ var defineProp = kotlin_kotlin.$_$.gb;
25
+ var THROW_CCE = kotlin_kotlin.$_$.qg;
26
+ var Comparator = kotlin_kotlin.$_$.cg;
35
27
  var VOID = kotlin_kotlin.$_$.f;
36
- var take = kotlin_kotlin.$_$.k9;
37
- var toList = kotlin_kotlin.$_$.o9;
38
- var takeLast = kotlin_kotlin.$_$.j9;
39
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.mh;
40
- var initMetadataForCompanion = kotlin_kotlin.$_$.ob;
28
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
29
+ var Unit_instance = kotlin_kotlin.$_$.n5;
30
+ var take = kotlin_kotlin.$_$.m9;
31
+ var toList = kotlin_kotlin.$_$.q9;
32
+ var takeLast = kotlin_kotlin.$_$.l9;
33
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.oh;
34
+ var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
41
35
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.v1;
42
- var Enum = kotlin_kotlin.$_$.dg;
43
- var initMetadataForClass = kotlin_kotlin.$_$.nb;
36
+ var Enum = kotlin_kotlin.$_$.fg;
37
+ var initMetadataForClass = kotlin_kotlin.$_$.pb;
44
38
  var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
45
- var enumEntries = kotlin_kotlin.$_$.sa;
39
+ var enumEntries = kotlin_kotlin.$_$.ua;
46
40
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.k;
47
- var lazy = kotlin_kotlin.$_$.kh;
41
+ var lazy = kotlin_kotlin.$_$.mh;
48
42
  var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
49
- var Long = kotlin_kotlin.$_$.ig;
50
- var initMetadataForInterface = kotlin_kotlin.$_$.qb;
51
- var until = kotlin_kotlin.$_$.ed;
52
- var collectionSizeOrDefault = kotlin_kotlin.$_$.o6;
43
+ var initMetadataForInterface = kotlin_kotlin.$_$.sb;
44
+ var until = kotlin_kotlin.$_$.gd;
45
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.q6;
53
46
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
54
- var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.i;
55
- var CoroutineImpl = kotlin_kotlin.$_$.qa;
56
- var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
57
- var isInterface = kotlin_kotlin.$_$.bc;
58
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
59
- var initMetadataForLambda = kotlin_kotlin.$_$.rb;
60
- var initMetadataForCoroutine = kotlin_kotlin.$_$.pb;
61
- var count = kotlin_kotlin.$_$.f7;
62
- var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
63
- var withTimeout = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
64
- var Companion_getInstance = kotlin_kotlin.$_$.d5;
65
- var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
66
- var toDuration = kotlin_kotlin.$_$.vf;
67
- var addAll = kotlin_kotlin.$_$.c6;
68
- var Collection = kotlin_kotlin.$_$.n5;
69
- var toMutableList = kotlin_kotlin.$_$.s9;
70
- var listOf = kotlin_kotlin.$_$.m8;
71
- var first = kotlin_kotlin.$_$.r7;
72
- var sorted = kotlin_kotlin.$_$.h9;
73
- var asReversed = kotlin_kotlin.$_$.g6;
47
+ var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
48
+ var CoroutineImpl = kotlin_kotlin.$_$.sa;
49
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ea;
50
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
51
+ var count = kotlin_kotlin.$_$.h7;
52
+ var Result = kotlin_kotlin.$_$.og;
53
+ var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.f3;
54
+ var throwOnFailure = kotlin_kotlin.$_$.sh;
55
+ var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.i3;
56
+ var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.h3;
57
+ var addAll = kotlin_kotlin.$_$.e6;
58
+ var Collection = kotlin_kotlin.$_$.p5;
59
+ var isInterface = kotlin_kotlin.$_$.dc;
60
+ var toMutableList = kotlin_kotlin.$_$.u9;
61
+ var listOf = kotlin_kotlin.$_$.o8;
62
+ var first = kotlin_kotlin.$_$.t7;
63
+ var sorted = kotlin_kotlin.$_$.j9;
64
+ var asReversed = kotlin_kotlin.$_$.i6;
74
65
  var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.c2;
75
- var first_0 = kotlin_kotlin.$_$.q7;
76
- var compareValues = kotlin_kotlin.$_$.aa;
77
- var sortWith = kotlin_kotlin.$_$.f9;
78
- var lastOrNull = kotlin_kotlin.$_$.g8;
66
+ var first_0 = kotlin_kotlin.$_$.s7;
67
+ var compareValues = kotlin_kotlin.$_$.ca;
68
+ var sortWith = kotlin_kotlin.$_$.h9;
69
+ var lastOrNull = kotlin_kotlin.$_$.i8;
79
70
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
80
- var sortedWith = kotlin_kotlin.$_$.g9;
71
+ var sortedWith = kotlin_kotlin.$_$.i9;
81
72
  var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.a2;
82
- var compareTo = kotlin_kotlin.$_$.db;
83
- var toString = kotlin_kotlin.$_$.sc;
84
- var dropLast = kotlin_kotlin.$_$.h7;
85
- var plus = kotlin_kotlin.$_$.v8;
86
- var minus = kotlin_kotlin.$_$.q8;
87
- var plus_0 = kotlin_kotlin.$_$.w8;
73
+ var compareTo = kotlin_kotlin.$_$.fb;
74
+ var toString = kotlin_kotlin.$_$.uc;
75
+ var dropLast = kotlin_kotlin.$_$.j7;
76
+ var plus = kotlin_kotlin.$_$.x8;
77
+ var minus = kotlin_kotlin.$_$.s8;
78
+ var plus_0 = kotlin_kotlin.$_$.y8;
88
79
  //endregion
89
80
  //region block: pre-declaration
90
81
  initMetadataForObject(CoreConfig, 'CoreConfig');
91
- initMetadataForObject(CardNumberComparator, 'CardNumberComparator', VOID, VOID, [Comparator]);
92
82
  initMetadataForObject(CardIndexComparator, 'CardIndexComparator', VOID, VOID, [Comparator]);
83
+ initMetadataForObject(CardNumberComparator, 'CardNumberComparator', VOID, VOID, [Comparator]);
93
84
  initMetadataForCompanion(Companion);
94
85
  initMetadataForClass(CardName, 'CardName', VOID, Enum);
95
86
  initMetadataForCompanion(Companion_0);
96
87
  initMetadataForClass(GameCard, 'GameCard');
97
88
  initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
98
- initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_2});
89
+ initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_1});
99
90
  initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
100
- function createNewShuffledCardDeck$default(leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion, $super) {
101
- leftCardIndexForEachSuit = leftCardIndexForEachSuit === VOID ? 0 : leftCardIndexForEachSuit;
102
- rightCardIndexForEachSuit = rightCardIndexForEachSuit === VOID ? 0 : rightCardIndexForEachSuit;
103
- timeoutMillis = timeoutMillis === VOID ? new Long(5000, 0) : timeoutMillis;
104
- provider = provider === VOID ? CardsRandomProvider_CUSTOM_getInstance() : provider;
105
- return $super === VOID ? this.w60(leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) : $super.w60.call(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion);
106
- }
107
91
  function standardShuffledCards$default(cards, times, $super) {
108
92
  times = times === VOID ? 3 : times;
109
- return $super === VOID ? this.z60(cards, times) : $super.z60.call(this, cards, times);
93
+ return $super === VOID ? this.u62(cards, times) : $super.u62.call(this, cards, times);
110
94
  }
111
- initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [6]);
95
+ initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
112
96
  initMetadataForCompanion(Companion_2);
113
- initMetadataForLambda(CardsDealerProviderImpl$getRandomOrgCards$slambda, CoroutineImpl, VOID, [1]);
114
97
  initMetadataForCoroutine($createNewShuffledCardDeckCOROUTINE$0, CoroutineImpl);
115
98
  initMetadataForCoroutine($getRandomOrgCardsCOROUTINE$1, CoroutineImpl);
116
- initMetadataForClass(CardsDealerProviderImpl, 'CardsDealerProviderImpl', VOID, VOID, [CardsDealerProvider], [6]);
99
+ initMetadataForClass(CardsDealerProviderImpl, 'CardsDealerProviderImpl', VOID, VOID, [CardsDealerProvider], [5]);
117
100
  initMetadataForCompanion(Companion_3);
118
- initMetadataForClass(FakeCardsDealerProvider, 'FakeCardsDealerProvider', FakeCardsDealerProvider, VOID, [CardsDealerProvider], [6]);
101
+ initMetadataForClass(FakeCardsDealerProvider, 'FakeCardsDealerProvider', FakeCardsDealerProvider, VOID, [CardsDealerProvider], [5]);
119
102
  function findCardsInRowCombinations$default(cards, supportedCombinations, checkFromIndex, includeCardNames, suit, $super) {
120
103
  checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
121
104
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
122
105
  suit = suit === VOID ? null : suit;
123
- return $super === VOID ? this.p63(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.p63.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
106
+ return $super === VOID ? this.q64(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.q64.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
124
107
  }
125
108
  function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
126
109
  cardsCount = cardsCount === VOID ? 4 : cardsCount;
127
110
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
128
- return $super === VOID ? this.r63(cards, cardsCount, includeCardNames) : $super.r63.call(this, cards, cardsCount, includeCardNames);
111
+ return $super === VOID ? this.s64(cards, cardsCount, includeCardNames) : $super.s64.call(this, cards, cardsCount, includeCardNames);
129
112
  }
130
113
  initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
131
114
  initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator]);
@@ -134,15 +117,28 @@
134
117
  initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
135
118
  //endregion
136
119
  function CoreConfig() {
137
- this.version = '0.0.33';
120
+ this.version = '0.0.36';
138
121
  }
139
- protoOf(CoreConfig).t2w = function () {
122
+ protoOf(CoreConfig).v2w = function () {
140
123
  return this.version;
141
124
  };
142
125
  var CoreConfig_instance;
143
126
  function CoreConfig_getInstance() {
144
127
  return CoreConfig_instance;
145
128
  }
129
+ function CardIndexComparator() {
130
+ }
131
+ protoOf(CardIndexComparator).a62 = function (a, b) {
132
+ return a.b62_1 - b.b62_1 | 0;
133
+ };
134
+ protoOf(CardIndexComparator).compare = function (a, b) {
135
+ var tmp = a instanceof GameCard ? a : THROW_CCE();
136
+ return this.a62(tmp, b instanceof GameCard ? b : THROW_CCE());
137
+ };
138
+ var CardIndexComparator_instance;
139
+ function CardIndexComparator_getInstance() {
140
+ return CardIndexComparator_instance;
141
+ }
146
142
  function filterByCardName(_this__u8e3s4, name) {
147
143
  // Inline function 'kotlin.collections.filter' call
148
144
  var predicate = byCardNamePredicate(name.slice());
@@ -159,33 +155,17 @@
159
155
  }
160
156
  function CardNumberComparator() {
161
157
  }
162
- protoOf(CardNumberComparator).e60 = function (a, b) {
163
- return b.g60() - a.g60() | 0;
158
+ protoOf(CardNumberComparator).a62 = function (a, b) {
159
+ return b.c62() - a.c62() | 0;
164
160
  };
165
161
  protoOf(CardNumberComparator).compare = function (a, b) {
166
162
  var tmp = a instanceof GameCard ? a : THROW_CCE();
167
- return this.e60(tmp, b instanceof GameCard ? b : THROW_CCE());
163
+ return this.a62(tmp, b instanceof GameCard ? b : THROW_CCE());
168
164
  };
169
165
  var CardNumberComparator_instance;
170
166
  function CardNumberComparator_getInstance() {
171
167
  return CardNumberComparator_instance;
172
168
  }
173
- function CardIndexComparator() {
174
- }
175
- protoOf(CardIndexComparator).e60 = function (a, b) {
176
- return a.f60_1 - b.f60_1 | 0;
177
- };
178
- protoOf(CardIndexComparator).compare = function (a, b) {
179
- var tmp = a instanceof GameCard ? a : THROW_CCE();
180
- return this.e60(tmp, b instanceof GameCard ? b : THROW_CCE());
181
- };
182
- var CardIndexComparator_instance;
183
- function CardIndexComparator_getInstance() {
184
- return CardIndexComparator_instance;
185
- }
186
- function byCardNamePredicate(types) {
187
- return byCardNamePredicate$lambda(types);
188
- }
189
169
  function distributeCardsBottom(_this__u8e3s4, count) {
190
170
  var cardsToDeal = toList(take(_this__u8e3s4, count));
191
171
  _this__u8e3s4.z1(cardsToDeal);
@@ -196,6 +176,9 @@
196
176
  _this__u8e3s4.z1(cardsToDeal);
197
177
  return cardsToDeal;
198
178
  }
179
+ function byCardNamePredicate(types) {
180
+ return byCardNamePredicate$lambda(types);
181
+ }
199
182
  function byCardNamePredicate$lambda($types) {
200
183
  return function (p1) {
201
184
  var tmp$ret$1;
@@ -305,16 +288,16 @@
305
288
  }
306
289
  function Companion() {
307
290
  }
308
- protoOf(Companion).h60 = function (suit, number) {
291
+ protoOf(Companion).d62 = function (suit, number) {
309
292
  return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
310
293
  };
311
- protoOf(Companion).i60 = function (suit, cardNumber) {
294
+ protoOf(Companion).e62 = function (suit, cardNumber) {
312
295
  return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
313
296
  };
314
- protoOf(Companion).j60 = function (index) {
297
+ protoOf(Companion).f62 = function (index) {
315
298
  return new GameCard(index);
316
299
  };
317
- protoOf(Companion).k60 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
300
+ protoOf(Companion).g62 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
318
301
  var tmp;
319
302
  if (previousStubCardWithMaxIndex == null) {
320
303
  tmp = null;
@@ -323,7 +306,7 @@
323
306
  // Inline function 'kotlin.contracts.contract' call
324
307
  var tmp_0;
325
308
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
326
- if (previousStubCardWithMaxIndex.l60()) {
309
+ if (previousStubCardWithMaxIndex.h62()) {
327
310
  tmp_0 = previousStubCardWithMaxIndex;
328
311
  } else {
329
312
  tmp_0 = null;
@@ -331,8 +314,8 @@
331
314
  tmp = tmp_0;
332
315
  }
333
316
  var tmp3_safe_receiver = tmp;
334
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.f60_1;
335
- var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.q60(tmp4_safe_receiver, playerIndex, reverse);
317
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.b62_1;
318
+ var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.m62(tmp4_safe_receiver, playerIndex, reverse);
336
319
  var tmp_1;
337
320
  if (tmp5_safe_receiver == null) {
338
321
  tmp_1 = null;
@@ -353,13 +336,13 @@
353
336
  var index = tmp_2;
354
337
  return new GameCard(index);
355
338
  };
356
- protoOf(Companion).r60 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
339
+ protoOf(Companion).n62 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
357
340
  previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
358
341
  reverse = reverse === VOID ? false : reverse;
359
- return $super === VOID ? this.k60(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.k60.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
342
+ return $super === VOID ? this.g62(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.g62.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
360
343
  };
361
344
  var Companion_instance;
362
- function Companion_getInstance_0() {
345
+ function Companion_getInstance() {
363
346
  return Companion_instance;
364
347
  }
365
348
  function getNumber($this, cardNumber, suit) {
@@ -460,7 +443,7 @@
460
443
  return tmp;
461
444
  }
462
445
  function _get_isShirt__vd98rp($this) {
463
- return $this.f60_1 === 52;
446
+ return $this.b62_1 === 52;
464
447
  }
465
448
  function CardName(name, ordinal) {
466
449
  Enum.call(this, name, ordinal);
@@ -469,12 +452,12 @@
469
452
  return getShortName(this);
470
453
  };
471
454
  function Companion_0() {
472
- this.m60_1 = -1;
473
- this.n60_1 = 13;
474
- this.o60_1 = 52;
475
- this.p60_1 = 53;
455
+ this.i62_1 = -1;
456
+ this.j62_1 = 13;
457
+ this.k62_1 = 52;
458
+ this.l62_1 = 53;
476
459
  }
477
- protoOf(Companion_0).q60 = function (_this__u8e3s4, playerIndex, reverse) {
460
+ protoOf(Companion_0).m62 = function (_this__u8e3s4, playerIndex, reverse) {
478
461
  var tmp;
479
462
  if (reverse) {
480
463
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -484,7 +467,7 @@
484
467
  return tmp;
485
468
  };
486
469
  var Companion_instance_0;
487
- function Companion_getInstance_1() {
470
+ function Companion_getInstance_0() {
488
471
  return Companion_instance_0;
489
472
  }
490
473
  function CardName_ACE_getInstance() {
@@ -544,59 +527,59 @@
544
527
  return CardName_STUB_instance;
545
528
  }
546
529
  function GameCard(index) {
547
- this.f60_1 = index;
530
+ this.b62_1 = index;
548
531
  }
549
- protoOf(GameCard).s60 = function () {
532
+ protoOf(GameCard).o62 = function () {
550
533
  var tmp;
551
- var containsArg = this.f60_1;
534
+ var containsArg = this.b62_1;
552
535
  if (0 <= containsArg ? containsArg <= 13 : false) {
553
536
  tmp = Suit_DIAMOND_getInstance();
554
537
  } else {
555
- if (this.f60_1 <= 26) {
538
+ if (this.b62_1 <= 26) {
556
539
  tmp = Suit_SPADE_getInstance();
557
540
  } else {
558
- if (this.f60_1 <= 39) {
541
+ if (this.b62_1 <= 39) {
559
542
  tmp = Suit_HEART_getInstance();
560
543
  } else {
561
- if (this.f60_1 <= 52) {
544
+ if (this.b62_1 <= 52) {
562
545
  tmp = Suit_CLUB_getInstance();
563
546
  } else {
564
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.f60_1);
547
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.b62_1);
565
548
  }
566
549
  }
567
550
  }
568
551
  }
569
552
  return tmp;
570
553
  };
571
- protoOf(GameCard).g60 = function () {
554
+ protoOf(GameCard).c62 = function () {
572
555
  var tmp;
573
- if (this.l60()) {
556
+ if (this.h62()) {
574
557
  tmp = -1;
575
558
  } else {
576
- tmp = this.f60_1 - imul(13, getIndex(this.s60())) | 0;
559
+ tmp = this.b62_1 - imul(13, getIndex(this.o62())) | 0;
577
560
  }
578
561
  return tmp;
579
562
  };
580
563
  protoOf(GameCard).p2 = function () {
581
- return this.l60() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.g60());
564
+ return this.h62() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.c62());
582
565
  };
583
- protoOf(GameCard).t60 = function () {
584
- return !_get_isShirt__vd98rp(this) && !this.l60();
566
+ protoOf(GameCard).p62 = function () {
567
+ return !_get_isShirt__vd98rp(this) && !this.h62();
585
568
  };
586
- protoOf(GameCard).l60 = function () {
587
- return this.f60_1 >= 53;
569
+ protoOf(GameCard).h62 = function () {
570
+ return this.b62_1 >= 53;
588
571
  };
589
572
  protoOf(GameCard).toString = function () {
590
573
  if (_get_isShirt__vd98rp(this)) {
591
574
  return 'GameCard(SHIRT)';
592
575
  }
593
- if (this.l60()) {
594
- return 'GameCard(STUB, ' + this.f60_1 + ')';
576
+ if (this.h62()) {
577
+ return 'GameCard(STUB, ' + this.b62_1 + ')';
595
578
  }
596
- return 'GameCard(' + this.s60().toString() + this.p2().toString() + ', ' + this.f60_1 + ')';
579
+ return 'GameCard(' + this.o62().toString() + this.p2().toString() + ', ' + this.b62_1 + ')';
597
580
  };
598
581
  protoOf(GameCard).hashCode = function () {
599
- return this.f60_1;
582
+ return this.b62_1;
600
583
  };
601
584
  protoOf(GameCard).equals = function (other) {
602
585
  if (this === other)
@@ -604,12 +587,12 @@
604
587
  if (!(other instanceof GameCard))
605
588
  return false;
606
589
  var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
607
- if (!(this.f60_1 === tmp0_other_with_cast.f60_1))
590
+ if (!(this.b62_1 === tmp0_other_with_cast.b62_1))
608
591
  return false;
609
592
  return true;
610
593
  };
611
594
  function _get_$cachedSerializer__te6jhj($this) {
612
- return $this.u60_1.u();
595
+ return $this.q62_1.u();
613
596
  }
614
597
  function Suit$Companion$_anonymous__cbm2iq() {
615
598
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -651,16 +634,16 @@
651
634
  Companion_instance_1 = this;
652
635
  var tmp = this;
653
636
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
654
- tmp.u60_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
637
+ tmp.q62_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
655
638
  }
656
- protoOf(Companion_1).t4t = function () {
639
+ protoOf(Companion_1).v4t = function () {
657
640
  return _get_$cachedSerializer__te6jhj(this);
658
641
  };
659
- protoOf(Companion_1).w4d = function (typeParamsSerializers) {
660
- return this.t4t();
642
+ protoOf(Companion_1).y4d = function (typeParamsSerializers) {
643
+ return this.v4t();
661
644
  };
662
645
  var Companion_instance_1;
663
- function Companion_getInstance_2() {
646
+ function Companion_getInstance_1() {
664
647
  Suit_initEntries();
665
648
  if (Companion_instance_1 == null)
666
649
  new Companion_1();
@@ -675,7 +658,7 @@
675
658
  Suit_SPADE_instance = new Suit('SPADE', 1);
676
659
  Suit_HEART_instance = new Suit('HEART', 2);
677
660
  Suit_CLUB_instance = new Suit('CLUB', 3);
678
- Companion_getInstance_2();
661
+ Companion_getInstance_1();
679
662
  }
680
663
  var $ENTRIES;
681
664
  function Suit(name, ordinal) {
@@ -753,8 +736,8 @@
753
736
  function getCardsRange($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
754
737
  return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
755
738
  }
756
- function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, timeoutMillis, signed, $completion) {
757
- var tmp = new $getRandomOrgCardsCOROUTINE$1($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, timeoutMillis, signed, $completion);
739
+ function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
740
+ var tmp = new $getRandomOrgCardsCOROUTINE$1($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
758
741
  tmp.f9_1 = Unit_instance;
759
742
  tmp.g9_1 = null;
760
743
  return tmp.l9();
@@ -778,98 +761,22 @@
778
761
  }
779
762
  function Companion_2() {
780
763
  }
781
- protoOf(Companion_2).u61 = function (randomPoolProvider, logger) {
782
- var tmp16_random = new SecureRandom(logger);
783
- return new CardsDealerProviderImpl(tmp16_random, randomPoolProvider, logger);
764
+ protoOf(Companion_2).r63 = function (randomPoolProvider, logger) {
765
+ var tmp17_random = new SecureRandom(logger);
766
+ return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
784
767
  };
785
768
  var Companion_instance_2;
786
- function Companion_getInstance_3() {
769
+ function Companion_getInstance_2() {
787
770
  return Companion_instance_2;
788
771
  }
789
- function CardsDealerProviderImpl$getRandomOrgCards$slambda(this$0, $cardsCount, $approximateRoundsCount, $userData, $leftCardIndexForEachSuit, resultContinuation) {
790
- this.d62_1 = this$0;
791
- this.e62_1 = $cardsCount;
792
- this.f62_1 = $approximateRoundsCount;
793
- this.g62_1 = $userData;
794
- this.h62_1 = $leftCardIndexForEachSuit;
772
+ function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
795
773
  CoroutineImpl.call(this, resultContinuation);
796
- }
797
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).l62 = function ($this$withTimeout, $completion) {
798
- var tmp = this.b1c($this$withTimeout, $completion);
799
- tmp.f9_1 = Unit_instance;
800
- tmp.g9_1 = null;
801
- return tmp.l9();
802
- };
803
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).ga = function (p1, $completion) {
804
- return this.l62((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
805
- };
806
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).l9 = function () {
807
- var suspendResult = this.f9_1;
808
- $sm: do
809
- try {
810
- var tmp = this.d9_1;
811
- switch (tmp) {
812
- case 0:
813
- this.e9_1 = 2;
814
- this.j62_1 = this.d62_1.n62_1;
815
- this.k62_1 = this.e62_1 - 1 | 0;
816
- this.d9_1 = 1;
817
- suspendResult = this.j62_1.k5n(this.f62_1, this.g62_1, 0, this.k62_1, this.e62_1, VOID, this);
818
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
819
- return suspendResult;
820
- }
821
-
822
- continue $sm;
823
- case 1:
824
- var cardDeck = suspendResult;
825
- this.d62_1.r62_1 = null;
826
- this.d62_1.s62_1 = 0;
827
- var tmp14_cards = cardDeck.cards;
828
- var this_0 = normalizeCards(this.d62_1, tmp14_cards, this.h62_1);
829
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
830
- var tmp0_iterator = this_0.j();
831
- while (tmp0_iterator.k()) {
832
- var item = tmp0_iterator.l();
833
- destination.e(Companion_instance.j60(item));
834
- }
835
-
836
- return destination;
837
- case 2:
838
- throw this.g9_1;
839
- }
840
- } catch ($p) {
841
- var e = $p;
842
- if (this.e9_1 === 2) {
843
- throw e;
844
- } else {
845
- this.d9_1 = this.e9_1;
846
- this.g9_1 = e;
847
- }
848
- }
849
- while (true);
850
- };
851
- protoOf(CardsDealerProviderImpl$getRandomOrgCards$slambda).b1c = function ($this$withTimeout, completion) {
852
- var i = new CardsDealerProviderImpl$getRandomOrgCards$slambda(this.d62_1, this.e62_1, this.f62_1, this.g62_1, this.h62_1, completion);
853
- i.i62_1 = $this$withTimeout;
854
- return i;
855
- };
856
- function CardsDealerProviderImpl$getRandomOrgCards$slambda_0(this$0, $cardsCount, $approximateRoundsCount, $userData, $leftCardIndexForEachSuit, resultContinuation) {
857
- var i = new CardsDealerProviderImpl$getRandomOrgCards$slambda(this$0, $cardsCount, $approximateRoundsCount, $userData, $leftCardIndexForEachSuit, resultContinuation);
858
- var l = function ($this$withTimeout, $completion) {
859
- return i.l62($this$withTimeout, $completion);
860
- };
861
- l.$arity = 1;
862
- return l;
863
- }
864
- function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, resultContinuation) {
865
- CoroutineImpl.call(this, resultContinuation);
866
- this.b63_1 = _this__u8e3s4;
867
- this.c63_1 = leftCardIndexForEachSuit;
868
- this.d63_1 = rightCardIndexForEachSuit;
869
- this.e63_1 = approximateRoundCountForGame;
870
- this.f63_1 = userData;
871
- this.g63_1 = timeoutMillis;
872
- this.h63_1 = provider;
774
+ this.a64_1 = _this__u8e3s4;
775
+ this.b64_1 = leftCardIndexForEachSuit;
776
+ this.c64_1 = rightCardIndexForEachSuit;
777
+ this.d64_1 = approximateRoundCountForGame;
778
+ this.e64_1 = userData;
779
+ this.f64_1 = provider;
873
780
  }
874
781
  protoOf($createNewShuffledCardDeckCOROUTINE$0).l9 = function () {
875
782
  var suspendResult = this.f9_1;
@@ -879,26 +786,26 @@
879
786
  switch (tmp) {
880
787
  case 0:
881
788
  this.e9_1 = 4;
882
- this.i63_1 = this.h63_1;
883
- this.j63_1 = this.i63_1.o2_1;
884
- if (this.j63_1 === 0) {
789
+ this.g64_1 = this.f64_1;
790
+ this.h64_1 = this.g64_1.o2_1;
791
+ if (this.h64_1 === 0) {
885
792
  var tmp_0 = this;
886
- var it = this.b63_1.v60(this.c63_1, this.d63_1);
887
- tmp_0.k63_1 = this.b63_1.a61(it);
793
+ var it = this.a64_1.r62(this.b64_1, this.c64_1);
794
+ tmp_0.i64_1 = this.a64_1.v62(it);
888
795
  this.d9_1 = 3;
889
796
  continue $sm;
890
797
  } else {
891
- if (this.j63_1 === 1) {
798
+ if (this.h64_1 === 1) {
892
799
  this.d9_1 = 2;
893
- suspendResult = getRandomOrgCards(this.b63_1, this.c63_1, this.d63_1, this.e63_1, this.f63_1, this.g63_1, false, this);
800
+ suspendResult = getRandomOrgCards(this.a64_1, this.b64_1, this.c64_1, this.d64_1, this.e64_1, false, this);
894
801
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
895
802
  return suspendResult;
896
803
  }
897
804
  continue $sm;
898
805
  } else {
899
- if (this.j63_1 === 2) {
806
+ if (this.h64_1 === 2) {
900
807
  this.d9_1 = 1;
901
- suspendResult = getRandomOrgCards(this.b63_1, this.c63_1, this.d63_1, this.e63_1, this.f63_1, this.g63_1, true, this);
808
+ suspendResult = getRandomOrgCards(this.a64_1, this.b64_1, this.c64_1, this.d64_1, this.e64_1, true, this);
902
809
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
903
810
  return suspendResult;
904
811
  }
@@ -912,15 +819,15 @@
912
819
 
913
820
  break;
914
821
  case 1:
915
- this.k63_1 = suspendResult;
822
+ this.i64_1 = suspendResult;
916
823
  this.d9_1 = 3;
917
824
  continue $sm;
918
825
  case 2:
919
- this.k63_1 = suspendResult;
826
+ this.i64_1 = suspendResult;
920
827
  this.d9_1 = 3;
921
828
  continue $sm;
922
829
  case 3:
923
- return this.k63_1;
830
+ return this.i64_1;
924
831
  case 4:
925
832
  throw this.g9_1;
926
833
  }
@@ -935,15 +842,14 @@
935
842
  }
936
843
  while (true);
937
844
  };
938
- function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, timeoutMillis, signed, resultContinuation) {
845
+ function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
939
846
  CoroutineImpl.call(this, resultContinuation);
940
- this.j61_1 = _this__u8e3s4;
941
- this.k61_1 = leftCardIndexForEachSuit;
942
- this.l61_1 = rightCardIndexForEachSuit;
943
- this.m61_1 = approximateRoundsCount;
944
- this.n61_1 = userData;
945
- this.o61_1 = timeoutMillis;
946
- this.p61_1 = signed;
847
+ this.e63_1 = _this__u8e3s4;
848
+ this.f63_1 = leftCardIndexForEachSuit;
849
+ this.g63_1 = rightCardIndexForEachSuit;
850
+ this.h63_1 = approximateRoundsCount;
851
+ this.i63_1 = userData;
852
+ this.j63_1 = signed;
947
853
  }
948
854
  protoOf($getRandomOrgCardsCOROUTINE$1).l9 = function () {
949
855
  var suspendResult = this.f9_1;
@@ -952,85 +858,74 @@
952
858
  var tmp = this.d9_1;
953
859
  switch (tmp) {
954
860
  case 0:
955
- this.e9_1 = 8;
861
+ this.e9_1 = 5;
956
862
  var tmp_0 = this;
957
863
  var sum = 0;
958
864
  var tmp0_iterator = get_entries().j();
959
865
  while (tmp0_iterator.k()) {
960
866
  var element = tmp0_iterator.l();
961
867
  var tmp_1 = sum;
962
- sum = tmp_1 + count(getCardsRange(this.j61_1, this.k61_1, this.l61_1)) | 0;
868
+ sum = tmp_1 + count(getCardsRange(this.e63_1, this.f63_1, this.g63_1)) | 0;
963
869
  }
964
870
 
965
- tmp_0.q61_1 = sum;
966
- this.r61_1 = this.j61_1.r62_1;
967
- if (!(this.r61_1 == null) && this.j61_1.s62_1 >= this.j61_1.p62_1) {
968
- this.s61_1 = this.r61_1.w5h(this.j61_1.q62_1);
969
- if (this.s61_1.a5i(System_instance.i52()) > 0) {
970
- this.j61_1.o62_1.v('CardsDealerProvider', 'createNewShuffledCardDeck cooldown ends in ' + this.s61_1.toString());
971
- this.d9_1 = 7;
972
- suspendResult = this.j61_1.x60(this.k61_1, this.l61_1, this.m61_1, this.n61_1, VOID, CardsRandomProvider_CUSTOM_getInstance(), this);
973
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
974
- return suspendResult;
975
- }
976
- continue $sm;
977
- } else {
978
- this.d9_1 = 1;
979
- continue $sm;
980
- }
981
- } else {
982
- this.d9_1 = 2;
983
- continue $sm;
871
+ tmp_0.k63_1 = sum;
872
+ this.l63_1 = this.e63_1.k64_1;
873
+ this.m63_1 = this.k63_1 - 1 | 0;
874
+ this.d9_1 = 1;
875
+ suspendResult = this.l63_1.r5n(this.h63_1, this.i63_1, 0, this.m63_1, this.k63_1, this.j63_1, VOID, this);
876
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
877
+ return suspendResult;
984
878
  }
985
879
 
880
+ this.d9_1 = 2;
881
+ continue $sm;
986
882
  case 1:
883
+ this.n63_1 = suspendResult.bj_1;
884
+ suspendResult = new Result(this.n63_1);
987
885
  this.d9_1 = 2;
988
886
  continue $sm;
989
887
  case 2:
990
- this.e9_1 = 4;
991
- this.d9_1 = 3;
992
- suspendResult = withTimeout(this.o61_1, CardsDealerProviderImpl$getRandomOrgCards$slambda_0(this.j61_1, this.q61_1, this.m61_1, this.n61_1, this.k61_1, null), this);
993
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
994
- return suspendResult;
995
- }
996
-
997
- continue $sm;
998
- case 3:
999
- return suspendResult;
1000
- case 4:
1001
- this.e9_1 = 8;
1002
- var tmp_2 = this.g9_1;
1003
- if (tmp_2 instanceof Error) {
1004
- this.t61_1 = this.g9_1;
1005
- this.j61_1.r62_1 = System_instance.i52();
1006
- var _unary__edvuaz = this.j61_1.s62_1;
1007
- this.j61_1.s62_1 = _unary__edvuaz + 1 | 0;
1008
- this.j61_1.o62_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error', this.t61_1);
1009
- this.d9_1 = 5;
888
+ this.o63_1 = suspendResult.bj_1;
889
+ if (_Result___get_isSuccess__impl__sndoy8(this.o63_1)) {
890
+ var tmp_2 = this;
891
+ var this_0 = this.o63_1;
892
+ throwOnFailure(this_0);
893
+ var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
894
+ var tmp14_cards = ((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE()).cards;
895
+ var this_1 = normalizeCards(this.e63_1, tmp14_cards, this.f63_1);
896
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
897
+ var tmp0_iterator_0 = this_1.j();
898
+ while (tmp0_iterator_0.k()) {
899
+ var item = tmp0_iterator_0.l();
900
+ destination.e(Companion_instance.f62(item));
901
+ }
902
+ tmp_2.p63_1 = destination;
903
+ this.d9_1 = 4;
1010
904
  continue $sm;
1011
905
  } else {
1012
- throw this.g9_1;
1013
- }
1014
-
1015
- case 5:
1016
- this.e9_1 = 8;
1017
- this.d9_1 = 6;
1018
- suspendResult = this.j61_1.x60(this.k61_1, this.l61_1, this.m61_1, this.n61_1, VOID, CardsRandomProvider_CUSTOM_getInstance(), this);
1019
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1020
- return suspendResult;
906
+ this.q63_1 = Result__exceptionOrNull_impl_p6xea9(this.o63_1);
907
+ var tmp15_safe_receiver = this.q63_1;
908
+ this.e63_1.l64_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error message = ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.q63_1);
909
+ this.d9_1 = 3;
910
+ suspendResult = this.e63_1.s62(this.f63_1, this.g63_1, this.h63_1, this.i63_1, CardsRandomProvider_CUSTOM_getInstance(), this);
911
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
912
+ return suspendResult;
913
+ }
914
+ continue $sm;
1021
915
  }
1022
916
 
917
+ case 3:
918
+ this.p63_1 = suspendResult;
919
+ this.d9_1 = 4;
1023
920
  continue $sm;
1024
- case 6:
1025
- return suspendResult;
1026
- case 7:
1027
- return suspendResult;
1028
- case 8:
921
+ case 4:
922
+ return this.p63_1;
923
+ case 5:
1029
924
  throw this.g9_1;
1030
925
  }
1031
926
  } catch ($p) {
1032
927
  var e = $p;
1033
- if (this.e9_1 === 8) {
928
+ if (this.e9_1 === 5) {
1034
929
  throw e;
1035
930
  } else {
1036
931
  this.d9_1 = this.e9_1;
@@ -1039,27 +934,12 @@
1039
934
  }
1040
935
  while (true);
1041
936
  };
1042
- function CardsDealerProviderImpl(random, randomPoolProvider, logger, failedRequestAttempts, failedAttemptCooldown) {
1043
- failedRequestAttempts = failedRequestAttempts === VOID ? 3 : failedRequestAttempts;
1044
- var tmp;
1045
- if (failedAttemptCooldown === VOID) {
1046
- // Inline function 'kotlin.time.Companion.milliseconds' call
1047
- Companion_getInstance();
1048
- var this_0 = new Long(60000, 0);
1049
- tmp = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
1050
- } else {
1051
- tmp = failedAttemptCooldown;
1052
- }
1053
- failedAttemptCooldown = tmp;
1054
- this.m62_1 = random;
1055
- this.n62_1 = randomPoolProvider;
1056
- this.o62_1 = logger;
1057
- this.p62_1 = failedRequestAttempts;
1058
- this.q62_1 = failedAttemptCooldown;
1059
- this.r62_1 = null;
1060
- this.s62_1 = 0;
1061
- }
1062
- protoOf(CardsDealerProviderImpl).v60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
937
+ function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
938
+ this.j64_1 = random;
939
+ this.k64_1 = randomPoolProvider;
940
+ this.l64_1 = logger;
941
+ }
942
+ protoOf(CardsDealerProviderImpl).r62 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1063
943
  // Inline function 'kotlin.collections.flatMap' call
1064
944
  // Inline function 'kotlin.collections.flatMapTo' call
1065
945
  var this_0 = get_entries();
@@ -1076,7 +956,7 @@
1076
956
  while (tmp0_iterator_0.k()) {
1077
957
  var item = tmp0_iterator_0.l();
1078
958
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
1079
- var tmp$ret$0 = Companion_instance.h60(element, item);
959
+ var tmp$ret$0 = Companion_instance.d62(element, item);
1080
960
  destination_0.e(tmp$ret$0);
1081
961
  }
1082
962
  var list = destination_0;
@@ -1084,13 +964,13 @@
1084
964
  }
1085
965
  return destination;
1086
966
  };
1087
- protoOf(CardsDealerProviderImpl).w60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) {
1088
- var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion);
967
+ protoOf(CardsDealerProviderImpl).s62 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
968
+ var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
1089
969
  tmp.f9_1 = Unit_instance;
1090
970
  tmp.g9_1 = null;
1091
971
  return tmp.l9();
1092
972
  };
1093
- protoOf(CardsDealerProviderImpl).y60 = function (count, cards) {
973
+ protoOf(CardsDealerProviderImpl).t62 = function (count, cards) {
1094
974
  // Inline function 'kotlin.apply' call
1095
975
  // Inline function 'kotlin.collections.mutableListOf' call
1096
976
  var this_0 = ArrayList_init_$Create$();
@@ -1124,7 +1004,7 @@
1124
1004
  while (tmp0_iterator.k()) {
1125
1005
  var element = tmp0_iterator.l();
1126
1006
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
1127
- if (element.g60() === card.g60()) {
1007
+ if (element.c62() === card.c62()) {
1128
1008
  tmp$ret$2 = true;
1129
1009
  break $l$block_1;
1130
1010
  }
@@ -1139,7 +1019,7 @@
1139
1019
  }
1140
1020
  return this_0;
1141
1021
  };
1142
- protoOf(CardsDealerProviderImpl).z60 = function (cards, times) {
1022
+ protoOf(CardsDealerProviderImpl).u62 = function (cards, times) {
1143
1023
  // Inline function 'kotlin.let' call
1144
1024
  // Inline function 'kotlin.contracts.contract' call
1145
1025
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
@@ -1149,49 +1029,49 @@
1149
1029
  do {
1150
1030
  var i = inductionVariable;
1151
1031
  inductionVariable = inductionVariable + 1 | 0;
1152
- shuffled = this.m62_1.v5q(shuffled);
1032
+ shuffled = this.j64_1.r5s(shuffled);
1153
1033
  }
1154
1034
  while (inductionVariable < times);
1155
1035
  return shuffled;
1156
1036
  };
1157
1037
  function Companion_3() {
1158
1038
  }
1159
- protoOf(Companion_3).l63 = function () {
1039
+ protoOf(Companion_3).m64 = function () {
1160
1040
  // Inline function 'kotlin.apply' call
1161
1041
  // Inline function 'kotlin.collections.mutableListOf' call
1162
1042
  var this_0 = ArrayList_init_$Create$();
1163
1043
  // Inline function 'kotlin.contracts.contract' call
1164
1044
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
1165
- this_0.n(listOf([Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
1166
- this_0.n(listOf([Companion_instance.i60(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
1167
- this_0.n(listOf([Companion_instance.i60(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
1168
- this_0.n(listOf([Companion_instance.i60(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
1169
- this_0.n(listOf([Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.i60(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.i60(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
1045
+ this_0.n(listOf([Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.e62(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.e62(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.e62(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
1046
+ this_0.n(listOf([Companion_instance.e62(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
1047
+ this_0.n(listOf([Companion_instance.e62(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.e62(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
1048
+ this_0.n(listOf([Companion_instance.e62(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
1049
+ this_0.n(listOf([Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.e62(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.e62(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.e62(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
1170
1050
  return this_0;
1171
1051
  };
1172
- protoOf(Companion_3).m63 = function () {
1173
- return listOf([Companion_instance.i60(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.i60(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
1052
+ protoOf(Companion_3).n64 = function () {
1053
+ return listOf([Companion_instance.e62(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.e62(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.e62(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
1174
1054
  };
1175
1055
  var Companion_instance_3;
1176
- function Companion_getInstance_4() {
1056
+ function Companion_getInstance_3() {
1177
1057
  return Companion_instance_3;
1178
1058
  }
1179
1059
  function FakeCardsDealerProvider(cards, cardsForLot) {
1180
- cards = cards === VOID ? Companion_instance_3.l63() : cards;
1181
- cardsForLot = cardsForLot === VOID ? Companion_instance_3.m63() : cardsForLot;
1182
- this.n63_1 = cards;
1183
- this.o63_1 = cardsForLot;
1060
+ cards = cards === VOID ? Companion_instance_3.m64() : cards;
1061
+ cardsForLot = cardsForLot === VOID ? Companion_instance_3.n64() : cardsForLot;
1062
+ this.o64_1 = cards;
1063
+ this.p64_1 = cardsForLot;
1184
1064
  }
1185
- protoOf(FakeCardsDealerProvider).v60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1186
- return this.n63_1;
1065
+ protoOf(FakeCardsDealerProvider).r62 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1066
+ return this.o64_1;
1187
1067
  };
1188
- protoOf(FakeCardsDealerProvider).w60 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) {
1189
- return this.n63_1;
1068
+ protoOf(FakeCardsDealerProvider).s62 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
1069
+ return this.o64_1;
1190
1070
  };
1191
- protoOf(FakeCardsDealerProvider).y60 = function (count, cards) {
1192
- return this.o63_1;
1071
+ protoOf(FakeCardsDealerProvider).t62 = function (count, cards) {
1072
+ return this.p64_1;
1193
1073
  };
1194
- protoOf(FakeCardsDealerProvider).z60 = function (cards, times) {
1074
+ protoOf(FakeCardsDealerProvider).u62 = function (cards, times) {
1195
1075
  return cards;
1196
1076
  };
1197
1077
  function CombinationsCheckerProvider() {
@@ -1220,10 +1100,10 @@
1220
1100
  return takeLast(cards, longestCombinationSupport);
1221
1101
  }
1222
1102
  function sam$kotlin_Comparator$0(function_0) {
1223
- this.u63_1 = function_0;
1103
+ this.v64_1 = function_0;
1224
1104
  }
1225
1105
  protoOf(sam$kotlin_Comparator$0).jc = function (a, b) {
1226
- return this.u63_1(a, b);
1106
+ return this.v64_1(a, b);
1227
1107
  };
1228
1108
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
1229
1109
  return this.jc(a, b);
@@ -1231,14 +1111,14 @@
1231
1111
  function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
1232
1112
  // Inline function 'kotlin.comparisons.compareValuesBy' call
1233
1113
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1234
- var tmp = first_0(a).f60_1;
1114
+ var tmp = first_0(a).b62_1;
1235
1115
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1236
- var tmp$ret$1 = first_0(b).f60_1;
1116
+ var tmp$ret$1 = first_0(b).b62_1;
1237
1117
  return compareValues(tmp, tmp$ret$1);
1238
1118
  }
1239
1119
  function CombinationsCheckerProviderImpl() {
1240
1120
  }
1241
- protoOf(CombinationsCheckerProviderImpl).p63 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1121
+ protoOf(CombinationsCheckerProviderImpl).q64 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1242
1122
  // Inline function 'kotlin.collections.filter' call
1243
1123
  // Inline function 'kotlin.apply' call
1244
1124
  var this_0 = toMutableList(cards);
@@ -1251,7 +1131,7 @@
1251
1131
  while (tmp0_iterator.k()) {
1252
1132
  var element = tmp0_iterator.l();
1253
1133
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
1254
- if (element.t60()) {
1134
+ if (element.p62()) {
1255
1135
  destination.e(element);
1256
1136
  }
1257
1137
  }
@@ -1268,14 +1148,14 @@
1268
1148
  inductionVariable = inductionVariable + 1 | 0;
1269
1149
  var previousCard = lastOrNull(combinationCards);
1270
1150
  var currentCard = sortedByIndexCards.o(i);
1271
- var isNextInRow = !(previousCard == null) && currentCard.f60_1 === (previousCard.f60_1 + 1 | 0) && currentCard.s60().equals(previousCard.s60());
1151
+ var isNextInRow = !(previousCard == null) && currentCard.b62_1 === (previousCard.b62_1 + 1 | 0) && currentCard.o62().equals(previousCard.o62());
1272
1152
  var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
1273
- var passedSuitCheck = suit == null || currentCard.s60().equals(suit);
1153
+ var passedSuitCheck = suit == null || currentCard.o62().equals(suit);
1274
1154
  if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
1275
1155
  combinationCards.e(currentCard);
1276
1156
  } else {
1277
1157
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
1278
- combinations.n(this.t63(toMutableList(combinationCards), supportedCombinations));
1158
+ combinations.n(this.u64(toMutableList(combinationCards), supportedCombinations));
1279
1159
  }
1280
1160
  combinationCards.a2();
1281
1161
  if (passedSuitCheck && passedCardNamesCheck) {
@@ -1285,11 +1165,11 @@
1285
1165
  }
1286
1166
  while (inductionVariable <= last);
1287
1167
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
1288
- combinations.n(this.t63(toMutableList(combinationCards), supportedCombinations));
1168
+ combinations.n(this.u64(toMutableList(combinationCards), supportedCombinations));
1289
1169
  }
1290
1170
  return combinations;
1291
1171
  };
1292
- protoOf(CombinationsCheckerProviderImpl).r63 = function (cards, cardsCount, includeCardNames) {
1172
+ protoOf(CombinationsCheckerProviderImpl).s64 = function (cards, cardsCount, includeCardNames) {
1293
1173
  // Inline function 'kotlin.collections.filter' call
1294
1174
  // Inline function 'kotlin.collections.filter' call
1295
1175
  // Inline function 'kotlin.apply' call
@@ -1303,7 +1183,7 @@
1303
1183
  while (tmp0_iterator.k()) {
1304
1184
  var element = tmp0_iterator.l();
1305
1185
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1306
- if (element.t60()) {
1186
+ if (element.p62()) {
1307
1187
  destination.e(element);
1308
1188
  }
1309
1189
  }
@@ -1326,7 +1206,7 @@
1326
1206
  while (tmp0_iterator_1.k()) {
1327
1207
  var element_1 = tmp0_iterator_1.l();
1328
1208
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1329
- var key = element_1.g60();
1209
+ var key = element_1.c62();
1330
1210
  // Inline function 'kotlin.collections.getOrPut' call
1331
1211
  var value = destination_1.h2(key);
1332
1212
  var tmp;
@@ -1365,7 +1245,7 @@
1365
1245
  }
1366
1246
  return destination_3;
1367
1247
  };
1368
- protoOf(CombinationsCheckerProviderImpl).t63 = function (cards, supportedCombinations) {
1248
+ protoOf(CombinationsCheckerProviderImpl).u64 = function (cards, supportedCombinations) {
1369
1249
  // Inline function 'kotlin.collections.minOf' call
1370
1250
  var iterator = supportedCombinations.j();
1371
1251
  if (!iterator.k())
@@ -1395,28 +1275,28 @@
1395
1275
  return sortedWith(combinations, tmp$ret$4);
1396
1276
  };
1397
1277
  function DealerReducerImpl(logger, enableLogs) {
1398
- this.v63_1 = logger;
1399
- this.w63_1 = enableLogs;
1278
+ this.w64_1 = logger;
1279
+ this.x64_1 = enableLogs;
1400
1280
  }
1401
- protoOf(DealerReducerImpl).x63 = function (cards, cardsToRemove) {
1281
+ protoOf(DealerReducerImpl).y64 = function (cards, cardsToRemove) {
1402
1282
  var list = cards;
1403
1283
  var _iterator__ex2g4s = cardsToRemove.j();
1404
1284
  while (_iterator__ex2g4s.k()) {
1405
1285
  var gameCard = _iterator__ex2g4s.l();
1406
- list = this.y63(list, gameCard);
1286
+ list = this.z64(list, gameCard);
1407
1287
  }
1408
1288
  return list;
1409
1289
  };
1410
- protoOf(DealerReducerImpl).y63 = function (cards, cardToRemove) {
1290
+ protoOf(DealerReducerImpl).z64 = function (cards, cardToRemove) {
1411
1291
  var tmp;
1412
- if (!cardToRemove.l60() && cards.s1(cardToRemove)) {
1413
- if (this.w63_1) {
1414
- this.v63_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1292
+ if (!cardToRemove.h62() && cards.s1(cardToRemove)) {
1293
+ if (this.x64_1) {
1294
+ this.w64_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1415
1295
  }
1416
1296
  tmp = minus(cards, cardToRemove);
1417
1297
  } else {
1418
- if (this.w63_1) {
1419
- this.v63_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1298
+ if (this.x64_1) {
1299
+ this.w64_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1420
1300
  }
1421
1301
  // Inline function 'kotlin.collections.filterNot' call
1422
1302
  // Inline function 'kotlin.collections.filterNotTo' call
@@ -1425,7 +1305,7 @@
1425
1305
  while (tmp0_iterator.k()) {
1426
1306
  var element = tmp0_iterator.l();
1427
1307
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
1428
- if (!element.l60()) {
1308
+ if (!element.h62()) {
1429
1309
  destination.e(element);
1430
1310
  }
1431
1311
  }
@@ -1437,41 +1317,39 @@
1437
1317
  while (tmp0_iterator_0.k()) {
1438
1318
  var element_0 = tmp0_iterator_0.l();
1439
1319
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
1440
- if (element_0.l60()) {
1320
+ if (element_0.h62()) {
1441
1321
  destination_0.e(element_0);
1442
1322
  }
1443
1323
  }
1444
1324
  var stubCards = destination_0;
1445
1325
  if (stubCards.p()) {
1446
- this.v63_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1326
+ this.w64_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1447
1327
  }
1448
1328
  tmp = plus(notStubCards, dropLast(stubCards, 1));
1449
1329
  }
1450
1330
  return tmp;
1451
1331
  };
1452
- protoOf(DealerReducerImpl).z63 = function (cards, cardToAdd) {
1453
- if (this.w63_1) {
1454
- this.v63_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
1332
+ protoOf(DealerReducerImpl).a65 = function (cards, cardToAdd) {
1333
+ if (this.x64_1) {
1334
+ this.w64_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
1455
1335
  }
1456
1336
  if (cards.s1(cardToAdd)) {
1457
- this.v63_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1337
+ this.w64_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1458
1338
  }
1459
1339
  return plus_0(cards, cardToAdd);
1460
1340
  };
1461
1341
  function DealerReducer() {
1462
1342
  }
1463
1343
  //region block: post-declaration
1464
- protoOf(CardsDealerProviderImpl).x60 = createNewShuffledCardDeck$default;
1465
- protoOf(CardsDealerProviderImpl).a61 = standardShuffledCards$default;
1466
- protoOf(FakeCardsDealerProvider).x60 = createNewShuffledCardDeck$default;
1467
- protoOf(FakeCardsDealerProvider).a61 = standardShuffledCards$default;
1468
- protoOf(CombinationsCheckerProviderImpl).q63 = findCardsInRowCombinations$default;
1469
- protoOf(CombinationsCheckerProviderImpl).s63 = findSameCardsNumberCombinations$default;
1344
+ protoOf(CardsDealerProviderImpl).v62 = standardShuffledCards$default;
1345
+ protoOf(FakeCardsDealerProvider).v62 = standardShuffledCards$default;
1346
+ protoOf(CombinationsCheckerProviderImpl).r64 = findCardsInRowCombinations$default;
1347
+ protoOf(CombinationsCheckerProviderImpl).t64 = findSameCardsNumberCombinations$default;
1470
1348
  //endregion
1471
1349
  //region block: init
1472
1350
  CoreConfig_instance = new CoreConfig();
1473
- CardNumberComparator_instance = new CardNumberComparator();
1474
1351
  CardIndexComparator_instance = new CardIndexComparator();
1352
+ CardNumberComparator_instance = new CardNumberComparator();
1475
1353
  Companion_instance = new Companion();
1476
1354
  Companion_instance_0 = new Companion_0();
1477
1355
  Companion_instance_2 = new Companion_2();
@@ -1502,7 +1380,7 @@
1502
1380
  _.$_$.l = CardIndexComparator_instance;
1503
1381
  _.$_$.m = CardNumberComparator_instance;
1504
1382
  _.$_$.n = Companion_instance;
1505
- _.$_$.o = Companion_getInstance_2;
1383
+ _.$_$.o = Companion_getInstance_1;
1506
1384
  _.$_$.p = Companion_instance_2;
1507
1385
  _.$_$.q = GameCard;
1508
1386
  _.$_$.r = get_entries;