game_client_logic_deb 1.8.144 → 1.8.181

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 (55) hide show
  1. package/Kosi-Kaverit-kaverit.js +79 -79
  2. package/Kosi-Kodein-kodein-di.js +624 -624
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +5660 -307
  4. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  5. package/Logic_Debertz-core.js +1742 -1602
  6. package/Logic_Debertz-core.js.map +1 -1
  7. package/Logic_Debertz-engine.js +19759 -15486
  8. package/Logic_Debertz-engine.js.map +1 -1
  9. package/Logic_Debertz-game_client.d.ts +338 -94
  10. package/Logic_Debertz-game_client.js +4974 -4762
  11. package/Logic_Debertz-game_client.js.map +1 -1
  12. package/kotlin-kotlin-stdlib.js +2652 -2316
  13. package/kotlin-kotlin-stdlib.js.map +1 -1
  14. package/kotlinx-atomicfu.js +31 -31
  15. package/kotlinx-atomicfu.js.map +1 -1
  16. package/kotlinx-coroutines-core.js +2520 -2520
  17. package/kotlinx-coroutines-core.js.map +1 -1
  18. package/kotlinx-io-kotlinx-io-core.js +280 -280
  19. package/kotlinx-serialization-kotlinx-serialization-core.js +2050 -2049
  20. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-json.js +1466 -1466
  22. package/ktor-ktor-client-content-negotiation.js +15 -0
  23. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  24. package/ktor-ktor-client-core.js +15 -0
  25. package/ktor-ktor-client-core.js.map +1 -0
  26. package/ktor-ktor-client-js.js +15 -0
  27. package/ktor-ktor-client-js.js.map +1 -0
  28. package/ktor-ktor-client-logging.js +57 -0
  29. package/ktor-ktor-client-logging.js.map +1 -0
  30. package/ktor-ktor-events.js +15 -0
  31. package/ktor-ktor-events.js.map +1 -0
  32. package/ktor-ktor-http.js +15 -0
  33. package/ktor-ktor-http.js.map +1 -0
  34. package/ktor-ktor-io.js +19 -0
  35. package/ktor-ktor-io.js.map +1 -0
  36. package/ktor-ktor-serialization-kotlinx-json.js +15 -0
  37. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  38. package/ktor-ktor-serialization-kotlinx.js +15 -0
  39. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  40. package/ktor-ktor-serialization.js +15 -0
  41. package/ktor-ktor-serialization.js.map +1 -0
  42. package/ktor-ktor-utils.js +19 -0
  43. package/ktor-ktor-utils.js.map +1 -0
  44. package/ktor-ktor-websocket-serialization.js +15 -0
  45. package/ktor-ktor-websocket-serialization.js.map +1 -0
  46. package/ktor-ktor-websockets.js +15 -0
  47. package/ktor-ktor-websockets.js.map +1 -0
  48. package/package.json +5 -2
  49. package/raspberry-cardgame-lib-core.js +217 -533
  50. package/raspberry-cardgame-lib-core.js.map +1 -1
  51. package/raspberry-cardgame-lib-logger.js +407 -0
  52. package/raspberry-cardgame-lib-logger.js.map +1 -0
  53. package/raspberry-cardgame-lib-random.js +403 -0
  54. package/raspberry-cardgame-lib-random.js.map +1 -0
  55. package/uuid.js +32 -32
@@ -16,50 +16,49 @@
16
16
  'use strict';
17
17
  //region block: imports
18
18
  var imul = Math.imul;
19
- var protoOf = kotlin_kotlin.$_$.hb;
20
- var initMetadataForObject = kotlin_kotlin.$_$.pa;
21
- var defineProp = kotlin_kotlin.$_$.ca;
19
+ var protoOf = kotlin_kotlin.$_$.qb;
20
+ var initMetadataForObject = kotlin_kotlin.$_$.ya;
21
+ var defineProp = kotlin_kotlin.$_$.la;
22
22
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
23
- var Unit_instance = kotlin_kotlin.$_$.a5;
24
- var THROW_CCE = kotlin_kotlin.$_$.fe;
25
- var Comparator = kotlin_kotlin.$_$.rd;
23
+ var Unit_instance = kotlin_kotlin.$_$.b5;
24
+ var THROW_CCE = kotlin_kotlin.$_$.we;
25
+ var Comparator = kotlin_kotlin.$_$.ie;
26
26
  var VOID = kotlin_kotlin.$_$.f;
27
- var take = kotlin_kotlin.$_$.m8;
28
- var toList = kotlin_kotlin.$_$.p8;
29
- var takeLast = kotlin_kotlin.$_$.l8;
30
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.cf;
31
- var initMetadataForCompanion = kotlin_kotlin.$_$.la;
32
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.q1;
33
- var Enum = kotlin_kotlin.$_$.ud;
34
- var initMetadataForClass = kotlin_kotlin.$_$.ka;
35
- var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
27
+ var take = kotlin_kotlin.$_$.v8;
28
+ var toList = kotlin_kotlin.$_$.y8;
29
+ var takeLast = kotlin_kotlin.$_$.u8;
30
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.tf;
31
+ var initMetadataForCompanion = kotlin_kotlin.$_$.ua;
32
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
33
+ var Enum = kotlin_kotlin.$_$.le;
34
+ var initMetadataForClass = kotlin_kotlin.$_$.ta;
35
+ var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
36
+ var enumEntries = kotlin_kotlin.$_$.aa;
36
37
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
37
- var lazy = kotlin_kotlin.$_$.af;
38
- var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
39
- var enumEntries = kotlin_kotlin.$_$.r9;
40
- var initMetadataForInterface = kotlin_kotlin.$_$.na;
41
- var first = kotlin_kotlin.$_$.x6;
42
- var sorted = kotlin_kotlin.$_$.j8;
43
- var asReversed = kotlin_kotlin.$_$.u5;
44
- var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.v1;
45
- var sortedWith = kotlin_kotlin.$_$.i8;
46
- var lastOrNull = kotlin_kotlin.$_$.l7;
47
- var toMutableList = kotlin_kotlin.$_$.s8;
38
+ var lazy = kotlin_kotlin.$_$.rf;
39
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
40
+ var Long = kotlin_kotlin.$_$.qe;
41
+ var initMetadataForInterface = kotlin_kotlin.$_$.wa;
42
+ var first = kotlin_kotlin.$_$.d7;
43
+ var sorted = kotlin_kotlin.$_$.s8;
44
+ var asReversed = kotlin_kotlin.$_$.v5;
45
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w1;
46
+ var first_0 = kotlin_kotlin.$_$.c7;
47
+ var compareValues = kotlin_kotlin.$_$.i9;
48
+ var toMutableList = kotlin_kotlin.$_$.b9;
49
+ var sortWith = kotlin_kotlin.$_$.q8;
50
+ var lastOrNull = kotlin_kotlin.$_$.s7;
48
51
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
49
- var collectionSizeOrDefault = kotlin_kotlin.$_$.y5;
52
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.c6;
50
53
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
51
- var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.t1;
52
- var compareTo = kotlin_kotlin.$_$.ba;
53
- var toString = kotlin_kotlin.$_$.lb;
54
- var dropLast = kotlin_kotlin.$_$.p6;
55
- var plus = kotlin_kotlin.$_$.a8;
56
- var minus = kotlin_kotlin.$_$.v7;
57
- var plus_0 = kotlin_kotlin.$_$.b8;
58
- var mutableListOf = kotlin_kotlin.$_$.w7;
59
- var printStackTrace = kotlin_kotlin.$_$.ef;
60
- var isBlank = kotlin_kotlin.$_$.lc;
61
- var stackTraceToString = kotlin_kotlin.$_$.ff;
62
- var toString_0 = kotlin_kotlin.$_$.hf;
54
+ var sortedWith = kotlin_kotlin.$_$.r8;
55
+ var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.u1;
56
+ var compareTo = kotlin_kotlin.$_$.ka;
57
+ var toString = kotlin_kotlin.$_$.ub;
58
+ var dropLast = kotlin_kotlin.$_$.u6;
59
+ var plus = kotlin_kotlin.$_$.h8;
60
+ var minus = kotlin_kotlin.$_$.c8;
61
+ var plus_0 = kotlin_kotlin.$_$.i8;
63
62
  //endregion
64
63
  //region block: pre-declaration
65
64
  initMetadataForObject(CoreConfig, 'CoreConfig');
@@ -71,73 +70,40 @@
71
70
  initMetadataForClass(GameCard, 'GameCard');
72
71
  initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
73
72
  initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_1});
73
+ initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
74
+ function createNewShuffledCardDeck$default(leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion, $super) {
75
+ leftCardIndexForEachSuit = leftCardIndexForEachSuit === VOID ? 0 : leftCardIndexForEachSuit;
76
+ rightCardIndexForEachSuit = rightCardIndexForEachSuit === VOID ? 0 : rightCardIndexForEachSuit;
77
+ timeoutMillis = timeoutMillis === VOID ? new Long(5000, 0) : timeoutMillis;
78
+ provider = provider === VOID ? CardsRandomProvider_CUSTOM_getInstance() : provider;
79
+ return $super === VOID ? this.q33(leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion) : $super.q33.call(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, timeoutMillis, provider, $completion);
80
+ }
74
81
  function standardShuffledCards$default(cards, times, $super) {
75
82
  times = times === VOID ? 3 : times;
76
- return $super === VOID ? this.s2m(cards, times) : $super.s2m.call(this, cards, times);
83
+ return $super === VOID ? this.t33(cards, times) : $super.t33.call(this, cards, times);
77
84
  }
78
- initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider');
85
+ initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [6]);
79
86
  function findCardsInRowCombinations$default(cards, supportedCombinations, checkFromIndex, includeCardNames, suit, $super) {
80
87
  checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
81
88
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
82
89
  suit = suit === VOID ? null : suit;
83
- return $super === VOID ? this.u2m(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.u2m.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
90
+ return $super === VOID ? this.v33(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.v33.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
84
91
  }
85
92
  function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
86
93
  cardsCount = cardsCount === VOID ? 4 : cardsCount;
87
94
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
88
- return $super === VOID ? this.w2m(cards, cardsCount, includeCardNames) : $super.w2m.call(this, cards, cardsCount, includeCardNames);
95
+ return $super === VOID ? this.x33(cards, cardsCount, includeCardNames) : $super.x33.call(this, cards, cardsCount, includeCardNames);
89
96
  }
90
97
  initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
98
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator]);
91
99
  initMetadataForClass(CombinationsCheckerProviderImpl, 'CombinationsCheckerProviderImpl', CombinationsCheckerProviderImpl, VOID, [CombinationsCheckerProvider]);
92
100
  initMetadataForInterface(DealerReducer, 'DealerReducer');
93
101
  initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
94
- initMetadataForCompanion(Companion_2);
95
- function d(tag, message, payload, $super) {
96
- tag = tag === VOID ? null : tag;
97
- payload = payload === VOID ? null : payload;
98
- return this.h2n(tag, message, payload);
99
- }
100
- function e(tag, message, exception, payload, $super) {
101
- tag = tag === VOID ? null : tag;
102
- message = message === VOID ? null : message;
103
- exception = exception === VOID ? null : exception;
104
- payload = payload === VOID ? null : payload;
105
- return this.i2n(tag, message, exception, payload);
106
- }
107
- function w(tag, message, exception, payload, $super) {
108
- tag = tag === VOID ? null : tag;
109
- message = message === VOID ? null : message;
110
- exception = exception === VOID ? null : exception;
111
- payload = payload === VOID ? null : payload;
112
- return this.j2n(tag, message, exception, payload);
113
- }
114
- function v(tag, message, exception, payload, $super) {
115
- tag = tag === VOID ? null : tag;
116
- message = message === VOID ? null : message;
117
- exception = exception === VOID ? null : exception;
118
- payload = payload === VOID ? null : payload;
119
- return this.k2n(tag, message, exception, payload);
120
- }
121
- function i(tag, message, payload, $super) {
122
- tag = tag === VOID ? null : tag;
123
- payload = payload === VOID ? null : payload;
124
- return this.l2n(tag, message, payload);
125
- }
126
- initMetadataForInterface(LoggerOutput, 'LoggerOutput');
127
- initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
128
- initMetadataForClass(CombinedRaspberryLogger, 'CombinedRaspberryLogger', VOID, VOID, [RaspberryLogger]);
129
- initMetadataForInterface(LoggerEnabledTrigger, 'LoggerEnabledTrigger', VOID, VOID, [RaspberryLogger]);
130
- initMetadataForInterface(LoggerPayload, 'LoggerPayload');
131
- initMetadataForClass(PlatformRaspberryLogger, 'PlatformRaspberryLogger', PlatformRaspberryLogger, VOID, [RaspberryLogger, LoggerEnabledTrigger]);
132
- initMetadataForClass(Category, 'Category', VOID, Enum);
133
- initMetadataForClass(Logger$loggerSource$1);
134
- initMetadataForObject(Logger, 'Logger');
135
- initMetadataForClass(PlatformLogger, 'PlatformLogger', PlatformLogger);
136
102
  //endregion
137
103
  function CoreConfig() {
138
- this.version = '0.0.22';
104
+ this.version = '0.0.30';
139
105
  }
140
- protoOf(CoreConfig).a2m = function () {
106
+ protoOf(CoreConfig).z32 = function () {
141
107
  return this.version;
142
108
  };
143
109
  var CoreConfig_instance;
@@ -160,12 +126,12 @@
160
126
  }
161
127
  function CardNumberComparator() {
162
128
  }
163
- protoOf(CardNumberComparator).b2m = function (a, b) {
164
- return b.d2m() - a.d2m() | 0;
129
+ protoOf(CardNumberComparator).a33 = function (a, b) {
130
+ return b.c33() - a.c33() | 0;
165
131
  };
166
132
  protoOf(CardNumberComparator).compare = function (a, b) {
167
133
  var tmp = a instanceof GameCard ? a : THROW_CCE();
168
- return this.b2m(tmp, b instanceof GameCard ? b : THROW_CCE());
134
+ return this.a33(tmp, b instanceof GameCard ? b : THROW_CCE());
169
135
  };
170
136
  var CardNumberComparator_instance;
171
137
  function CardNumberComparator_getInstance() {
@@ -173,12 +139,12 @@
173
139
  }
174
140
  function CardIndexComparator() {
175
141
  }
176
- protoOf(CardIndexComparator).b2m = function (a, b) {
177
- return a.c2m_1 - b.c2m_1 | 0;
142
+ protoOf(CardIndexComparator).a33 = function (a, b) {
143
+ return a.b33_1 - b.b33_1 | 0;
178
144
  };
179
145
  protoOf(CardIndexComparator).compare = function (a, b) {
180
146
  var tmp = a instanceof GameCard ? a : THROW_CCE();
181
- return this.b2m(tmp, b instanceof GameCard ? b : THROW_CCE());
147
+ return this.a33(tmp, b instanceof GameCard ? b : THROW_CCE());
182
148
  };
183
149
  var CardIndexComparator_instance;
184
150
  function CardIndexComparator_getInstance() {
@@ -306,10 +272,10 @@
306
272
  }
307
273
  function Companion() {
308
274
  }
309
- protoOf(Companion).e2m = function (suit, cardNumber) {
275
+ protoOf(Companion).d33 = function (suit, cardNumber) {
310
276
  return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
311
277
  };
312
- protoOf(Companion).f2m = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
278
+ protoOf(Companion).e33 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
313
279
  var tmp;
314
280
  if (previousStubCardWithMaxIndex == null) {
315
281
  tmp = null;
@@ -318,27 +284,27 @@
318
284
  // Inline function 'kotlin.contracts.contract' call
319
285
  var tmp_0;
320
286
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
321
- if (previousStubCardWithMaxIndex.g2m()) {
287
+ if (previousStubCardWithMaxIndex.f33()) {
322
288
  tmp_0 = previousStubCardWithMaxIndex;
323
289
  } else {
324
290
  tmp_0 = null;
325
291
  }
326
292
  tmp = tmp_0;
327
293
  }
328
- var tmp1_safe_receiver = tmp;
329
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c2m_1;
330
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.l2m(tmp2_safe_receiver, playerIndex, reverse);
294
+ var tmp3_safe_receiver = tmp;
295
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.b33_1;
296
+ var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.k33(tmp4_safe_receiver, playerIndex, reverse);
331
297
  var tmp_1;
332
- if (tmp3_safe_receiver == null) {
298
+ if (tmp5_safe_receiver == null) {
333
299
  tmp_1 = null;
334
300
  } else {
335
301
  // Inline function 'kotlin.let' call
336
302
  // Inline function 'kotlin.contracts.contract' call
337
303
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
338
- tmp_1 = tmp3_safe_receiver + 1 | 0;
304
+ tmp_1 = tmp5_safe_receiver + 1 | 0;
339
305
  }
340
- var tmp4_elvis_lhs = tmp_1;
341
- var previousGameCardIndex = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
306
+ var tmp0_elvis_lhs = tmp_1;
307
+ var previousGameCardIndex = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
342
308
  var tmp_2;
343
309
  if (reverse) {
344
310
  tmp_2 = ((53 + imul(playerIndex, 14) | 0) - position | 0) - previousGameCardIndex | 0;
@@ -348,10 +314,10 @@
348
314
  var index = tmp_2;
349
315
  return new GameCard(index);
350
316
  };
351
- protoOf(Companion).m2m = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
317
+ protoOf(Companion).l33 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
352
318
  previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
353
319
  reverse = reverse === VOID ? false : reverse;
354
- return $super === VOID ? this.f2m(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.f2m.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
320
+ return $super === VOID ? this.e33(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.e33.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
355
321
  };
356
322
  var Companion_instance;
357
323
  function Companion_getInstance() {
@@ -455,7 +421,7 @@
455
421
  return tmp;
456
422
  }
457
423
  function _get_isShirt__vd98rp($this) {
458
- return $this.c2m_1 === 52;
424
+ return $this.b33_1 === 52;
459
425
  }
460
426
  function CardName(name, ordinal) {
461
427
  Enum.call(this, name, ordinal);
@@ -464,12 +430,12 @@
464
430
  return getShortName(this);
465
431
  };
466
432
  function Companion_0() {
467
- this.h2m_1 = -1;
468
- this.i2m_1 = 13;
469
- this.j2m_1 = 52;
470
- this.k2m_1 = 53;
433
+ this.g33_1 = -1;
434
+ this.h33_1 = 13;
435
+ this.i33_1 = 52;
436
+ this.j33_1 = 53;
471
437
  }
472
- protoOf(Companion_0).l2m = function (_this__u8e3s4, playerIndex, reverse) {
438
+ protoOf(Companion_0).k33 = function (_this__u8e3s4, playerIndex, reverse) {
473
439
  var tmp;
474
440
  if (reverse) {
475
441
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -539,59 +505,59 @@
539
505
  return CardName_STUB_instance;
540
506
  }
541
507
  function GameCard(index) {
542
- this.c2m_1 = index;
508
+ this.b33_1 = index;
543
509
  }
544
- protoOf(GameCard).n2m = function () {
510
+ protoOf(GameCard).m33 = function () {
545
511
  var tmp;
546
- var containsArg = this.c2m_1;
512
+ var containsArg = this.b33_1;
547
513
  if (0 <= containsArg ? containsArg <= 13 : false) {
548
514
  tmp = Suit_DIAMOND_getInstance();
549
515
  } else {
550
- if (this.c2m_1 <= 26) {
516
+ if (this.b33_1 <= 26) {
551
517
  tmp = Suit_SPADE_getInstance();
552
518
  } else {
553
- if (this.c2m_1 <= 39) {
519
+ if (this.b33_1 <= 39) {
554
520
  tmp = Suit_HEART_getInstance();
555
521
  } else {
556
- if (this.c2m_1 <= 52) {
522
+ if (this.b33_1 <= 52) {
557
523
  tmp = Suit_CLUB_getInstance();
558
524
  } else {
559
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.c2m_1);
525
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.b33_1);
560
526
  }
561
527
  }
562
528
  }
563
529
  }
564
530
  return tmp;
565
531
  };
566
- protoOf(GameCard).d2m = function () {
532
+ protoOf(GameCard).c33 = function () {
567
533
  var tmp;
568
- if (this.g2m()) {
534
+ if (this.f33()) {
569
535
  tmp = -1;
570
536
  } else {
571
- tmp = this.c2m_1 - imul(13, getIndex(this.n2m())) | 0;
537
+ tmp = this.b33_1 - imul(13, getIndex(this.m33())) | 0;
572
538
  }
573
539
  return tmp;
574
540
  };
575
541
  protoOf(GameCard).o2 = function () {
576
- return this.g2m() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.d2m());
542
+ return this.f33() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.c33());
577
543
  };
578
- protoOf(GameCard).o2m = function () {
579
- return !_get_isShirt__vd98rp(this) && !this.g2m();
544
+ protoOf(GameCard).n33 = function () {
545
+ return !_get_isShirt__vd98rp(this) && !this.f33();
580
546
  };
581
- protoOf(GameCard).g2m = function () {
582
- return this.c2m_1 >= 53;
547
+ protoOf(GameCard).f33 = function () {
548
+ return this.b33_1 >= 53;
583
549
  };
584
550
  protoOf(GameCard).toString = function () {
585
551
  if (_get_isShirt__vd98rp(this)) {
586
552
  return 'GameCard(SHIRT)';
587
553
  }
588
- if (this.g2m()) {
589
- return 'GameCard(STUB, ' + this.c2m_1 + ')';
554
+ if (this.f33()) {
555
+ return 'GameCard(STUB, ' + this.b33_1 + ')';
590
556
  }
591
- return 'GameCard(' + this.n2m().toString() + this.o2().toString() + ', ' + this.c2m_1 + ')';
557
+ return 'GameCard(' + this.m33().toString() + this.o2().toString() + ', ' + this.b33_1 + ')';
592
558
  };
593
559
  protoOf(GameCard).hashCode = function () {
594
- return this.c2m_1;
560
+ return this.b33_1;
595
561
  };
596
562
  protoOf(GameCard).equals = function (other) {
597
563
  if (this === other)
@@ -599,12 +565,12 @@
599
565
  if (!(other instanceof GameCard))
600
566
  return false;
601
567
  var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
602
- if (!(this.c2m_1 === tmp0_other_with_cast.c2m_1))
568
+ if (!(this.b33_1 === tmp0_other_with_cast.b33_1))
603
569
  return false;
604
570
  return true;
605
571
  };
606
572
  function _get_$cachedSerializer__te6jhj($this) {
607
- return $this.p2m_1.e2();
573
+ return $this.o33_1.e2();
608
574
  }
609
575
  function Suit$Companion$_anonymous__cbm2iq() {
610
576
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -634,17 +600,25 @@
634
600
  }
635
601
  return tmp;
636
602
  }
603
+ function values() {
604
+ return [Suit_DIAMOND_getInstance(), Suit_SPADE_getInstance(), Suit_HEART_getInstance(), Suit_CLUB_getInstance()];
605
+ }
606
+ function get_entries() {
607
+ if ($ENTRIES == null)
608
+ $ENTRIES = enumEntries(values());
609
+ return $ENTRIES;
610
+ }
637
611
  function Companion_1() {
638
612
  Companion_instance_1 = this;
639
613
  var tmp = this;
640
614
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
641
- tmp.p2m_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
615
+ tmp.o33_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
642
616
  }
643
- protoOf(Companion_1).o22 = function () {
617
+ protoOf(Companion_1).y23 = function () {
644
618
  return _get_$cachedSerializer__te6jhj(this);
645
619
  };
646
- protoOf(Companion_1).e1r = function (typeParamsSerializers) {
647
- return this.o22();
620
+ protoOf(Companion_1).o1s = function (typeParamsSerializers) {
621
+ return this.y23();
648
622
  };
649
623
  var Companion_instance_1;
650
624
  function Companion_getInstance_1() {
@@ -653,14 +627,6 @@
653
627
  new Companion_1();
654
628
  return Companion_instance_1;
655
629
  }
656
- function values() {
657
- return [Suit_DIAMOND_getInstance(), Suit_SPADE_getInstance(), Suit_HEART_getInstance(), Suit_CLUB_getInstance()];
658
- }
659
- function get_entries() {
660
- if ($ENTRIES == null)
661
- $ENTRIES = enumEntries(values());
662
- return $ENTRIES;
663
- }
664
630
  var Suit_entriesInitialized;
665
631
  function Suit_initEntries() {
666
632
  if (Suit_entriesInitialized)
@@ -716,6 +682,27 @@
716
682
  }
717
683
  return tmp;
718
684
  }
685
+ var CardsRandomProvider_CUSTOM_instance;
686
+ var CardsRandomProvider_RANDOM_ORG_instance;
687
+ var CardsRandomProvider_entriesInitialized;
688
+ function CardsRandomProvider_initEntries() {
689
+ if (CardsRandomProvider_entriesInitialized)
690
+ return Unit_instance;
691
+ CardsRandomProvider_entriesInitialized = true;
692
+ CardsRandomProvider_CUSTOM_instance = new CardsRandomProvider('CUSTOM', 0);
693
+ CardsRandomProvider_RANDOM_ORG_instance = new CardsRandomProvider('RANDOM_ORG', 1);
694
+ }
695
+ function CardsRandomProvider(name, ordinal) {
696
+ Enum.call(this, name, ordinal);
697
+ }
698
+ function CardsRandomProvider_CUSTOM_getInstance() {
699
+ CardsRandomProvider_initEntries();
700
+ return CardsRandomProvider_CUSTOM_instance;
701
+ }
702
+ function CardsRandomProvider_RANDOM_ORG_getInstance() {
703
+ CardsRandomProvider_initEntries();
704
+ return CardsRandomProvider_RANDOM_ORG_instance;
705
+ }
719
706
  function CardsDealerProvider() {
720
707
  }
721
708
  function CombinationsCheckerProvider() {
@@ -743,18 +730,39 @@
743
730
  var longestCombinationSupport = tmp$ret$1;
744
731
  return takeLast(cards, longestCombinationSupport);
745
732
  }
733
+ function sam$kotlin_Comparator$0(function_0) {
734
+ this.a34_1 = function_0;
735
+ }
736
+ protoOf(sam$kotlin_Comparator$0).cc = function (a, b) {
737
+ return this.a34_1(a, b);
738
+ };
739
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
740
+ return this.cc(a, b);
741
+ };
742
+ function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
743
+ // Inline function 'kotlin.comparisons.compareValuesBy' call
744
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
745
+ var tmp = first_0(a).b33_1;
746
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
747
+ var tmp$ret$1 = first_0(b).b33_1;
748
+ return compareValues(tmp, tmp$ret$1);
749
+ }
746
750
  function CombinationsCheckerProviderImpl() {
747
751
  }
748
- protoOf(CombinationsCheckerProviderImpl).u2m = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
752
+ protoOf(CombinationsCheckerProviderImpl).v33 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
749
753
  // Inline function 'kotlin.collections.filter' call
754
+ // Inline function 'kotlin.apply' call
755
+ var this_0 = toMutableList(cards);
756
+ // Inline function 'kotlin.contracts.contract' call
757
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
758
+ sortWith(this_0, CardIndexComparator_instance);
750
759
  // Inline function 'kotlin.collections.filterTo' call
751
- var this_0 = sortedWith(cards, CardIndexComparator_instance);
752
760
  var destination = ArrayList_init_$Create$();
753
761
  var tmp0_iterator = this_0.j();
754
762
  while (tmp0_iterator.k()) {
755
763
  var element = tmp0_iterator.l();
756
764
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
757
- if (element.o2m()) {
765
+ if (element.n33()) {
758
766
  destination.e(element);
759
767
  }
760
768
  }
@@ -771,14 +779,14 @@
771
779
  inductionVariable = inductionVariable + 1 | 0;
772
780
  var previousCard = lastOrNull(combinationCards);
773
781
  var currentCard = sortedByIndexCards.o(i);
774
- var isNextInRow = !(previousCard == null) && currentCard.c2m_1 === (previousCard.c2m_1 + 1 | 0) && currentCard.n2m().equals(previousCard.n2m());
782
+ var isNextInRow = !(previousCard == null) && currentCard.b33_1 === (previousCard.b33_1 + 1 | 0) && currentCard.m33().equals(previousCard.m33());
775
783
  var passedCardNamesCheck = includeCardNames == null || includeCardNames.q1(currentCard.o2());
776
- var passedSuitCheck = suit == null || currentCard.n2m().equals(suit);
784
+ var passedSuitCheck = suit == null || currentCard.m33().equals(suit);
777
785
  if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
778
786
  combinationCards.e(currentCard);
779
787
  } else {
780
788
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
781
- combinations.n(this.y2m(toMutableList(combinationCards), supportedCombinations));
789
+ combinations.n(this.z33(toMutableList(combinationCards), supportedCombinations));
782
790
  }
783
791
  combinationCards.z1();
784
792
  if (passedSuitCheck && passedCardNamesCheck) {
@@ -788,21 +796,25 @@
788
796
  }
789
797
  while (inductionVariable <= last);
790
798
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
791
- combinations.n(this.y2m(toMutableList(combinationCards), supportedCombinations));
799
+ combinations.n(this.z33(toMutableList(combinationCards), supportedCombinations));
792
800
  }
793
801
  return combinations;
794
802
  };
795
- protoOf(CombinationsCheckerProviderImpl).w2m = function (cards, cardsCount, includeCardNames) {
803
+ protoOf(CombinationsCheckerProviderImpl).x33 = function (cards, cardsCount, includeCardNames) {
796
804
  // Inline function 'kotlin.collections.filter' call
797
805
  // Inline function 'kotlin.collections.filter' call
806
+ // Inline function 'kotlin.apply' call
807
+ var this_0 = toMutableList(cards);
808
+ // Inline function 'kotlin.contracts.contract' call
809
+ // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
810
+ sortWith(this_0, CardIndexComparator_instance);
798
811
  // Inline function 'kotlin.collections.filterTo' call
799
- var this_0 = sortedWith(cards, CardNumberComparator_instance);
800
812
  var destination = ArrayList_init_$Create$();
801
813
  var tmp0_iterator = this_0.j();
802
814
  while (tmp0_iterator.k()) {
803
815
  var element = tmp0_iterator.l();
804
816
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
805
- if (element.o2m()) {
817
+ if (element.n33()) {
806
818
  destination.e(element);
807
819
  }
808
820
  }
@@ -825,7 +837,7 @@
825
837
  while (tmp0_iterator_1.k()) {
826
838
  var element_1 = tmp0_iterator_1.l();
827
839
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
828
- var key = element_1.d2m();
840
+ var key = element_1.c33();
829
841
  // Inline function 'kotlin.collections.getOrPut' call
830
842
  var value = destination_1.h2(key);
831
843
  var tmp;
@@ -859,12 +871,12 @@
859
871
  while (tmp0_iterator_3.k()) {
860
872
  var item = tmp0_iterator_3.l();
861
873
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
862
- var tmp$ret$15 = sortedWith(item, CardIndexComparator_instance);
863
- destination_3.e(tmp$ret$15);
874
+ var tmp$ret$16 = sortedWith(item, CardIndexComparator_instance);
875
+ destination_3.e(tmp$ret$16);
864
876
  }
865
877
  return destination_3;
866
878
  };
867
- protoOf(CombinationsCheckerProviderImpl).y2m = function (cards, supportedCombinations) {
879
+ protoOf(CombinationsCheckerProviderImpl).z33 = function (cards, supportedCombinations) {
868
880
  // Inline function 'kotlin.collections.minOf' call
869
881
  var iterator = supportedCombinations.j();
870
882
  if (!iterator.k())
@@ -879,44 +891,43 @@
879
891
  }
880
892
  }
881
893
  var shortestCombinationSupport = minValue;
882
- var cardsToCheck = cards;
894
+ var cardsToCheck = toMutableList(cards);
883
895
  // Inline function 'kotlin.collections.mutableListOf' call
884
896
  var combinations = ArrayList_init_$Create$();
885
897
  while (cardsToCheck.m() >= shortestCombinationSupport) {
886
898
  var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
887
- combinations.e(combinationCards);
888
- // Inline function 'kotlin.apply' call
889
- var this_0 = toMutableList(cardsToCheck);
890
- // Inline function 'kotlin.contracts.contract' call
891
- // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
892
- this_0.x1(combinationCards);
893
- cardsToCheck = this_0;
899
+ combinations.e(toList(combinationCards));
900
+ cardsToCheck.x1(combinationCards);
894
901
  }
895
- return combinations;
902
+ // Inline function 'kotlin.collections.sortedBy' call
903
+ // Inline function 'kotlin.comparisons.compareBy' call
904
+ var tmp = CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda;
905
+ var tmp$ret$4 = new sam$kotlin_Comparator$0(tmp);
906
+ return sortedWith(combinations, tmp$ret$4);
896
907
  };
897
908
  function DealerReducerImpl(logger, enableLogs) {
898
- this.z2m_1 = logger;
899
- this.a2n_1 = enableLogs;
909
+ this.b34_1 = logger;
910
+ this.c34_1 = enableLogs;
900
911
  }
901
- protoOf(DealerReducerImpl).b2n = function (cards, cardsToRemove) {
912
+ protoOf(DealerReducerImpl).d34 = function (cards, cardsToRemove) {
902
913
  var list = cards;
903
- var tmp0_iterator = cardsToRemove.j();
904
- while (tmp0_iterator.k()) {
905
- var gameCard = tmp0_iterator.l();
906
- list = this.c2n(list, gameCard);
914
+ var _iterator__ex2g4s = cardsToRemove.j();
915
+ while (_iterator__ex2g4s.k()) {
916
+ var gameCard = _iterator__ex2g4s.l();
917
+ list = this.e34(list, gameCard);
907
918
  }
908
919
  return list;
909
920
  };
910
- protoOf(DealerReducerImpl).c2n = function (cards, cardToRemove) {
921
+ protoOf(DealerReducerImpl).e34 = function (cards, cardToRemove) {
911
922
  var tmp;
912
- if (!cardToRemove.g2m() && cards.q1(cardToRemove)) {
913
- if (this.a2n_1) {
914
- this.z2m_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
923
+ if (!cardToRemove.f33() && cards.q1(cardToRemove)) {
924
+ if (this.c34_1) {
925
+ this.b34_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
915
926
  }
916
927
  tmp = minus(cards, cardToRemove);
917
928
  } else {
918
- if (this.a2n_1) {
919
- this.z2m_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
929
+ if (this.c34_1) {
930
+ this.b34_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
920
931
  }
921
932
  // Inline function 'kotlin.collections.filterNot' call
922
933
  // Inline function 'kotlin.collections.filterNotTo' call
@@ -925,7 +936,7 @@
925
936
  while (tmp0_iterator.k()) {
926
937
  var element = tmp0_iterator.l();
927
938
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
928
- if (!element.g2m()) {
939
+ if (!element.f33()) {
929
940
  destination.e(element);
930
941
  }
931
942
  }
@@ -937,322 +948,32 @@
937
948
  while (tmp0_iterator_0.k()) {
938
949
  var element_0 = tmp0_iterator_0.l();
939
950
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
940
- if (element_0.g2m()) {
951
+ if (element_0.f33()) {
941
952
  destination_0.e(element_0);
942
953
  }
943
954
  }
944
955
  var stubCards = destination_0;
945
956
  if (stubCards.p()) {
946
- this.z2m_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
957
+ this.b34_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
947
958
  }
948
959
  tmp = plus(notStubCards, dropLast(stubCards, 1));
949
960
  }
950
961
  return tmp;
951
962
  };
952
- protoOf(DealerReducerImpl).d2n = function (cards, cardToAdd) {
953
- if (this.a2n_1) {
954
- this.z2m_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
963
+ protoOf(DealerReducerImpl).f34 = function (cards, cardToAdd) {
964
+ if (this.c34_1) {
965
+ this.b34_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
955
966
  }
956
967
  if (cards.q1(cardToAdd)) {
957
- this.z2m_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
968
+ this.b34_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
958
969
  }
959
970
  return plus_0(cards, cardToAdd);
960
971
  };
961
972
  function DealerReducer() {
962
973
  }
963
- function Companion_2() {
964
- }
965
- protoOf(Companion_2).e2n = function () {
966
- return new CombinedRaspberryLogger(mutableListOf([new PlatformRaspberryLogger()]));
967
- };
968
- protoOf(Companion_2).k1o = function () {
969
- // Inline function 'kotlin.collections.mutableListOf' call
970
- var tmp$ret$0 = ArrayList_init_$Create$();
971
- return new CombinedRaspberryLogger(tmp$ret$0);
972
- };
973
- var Companion_instance_2;
974
- function Companion_getInstance_2() {
975
- return Companion_instance_2;
976
- }
977
- function CombinedRaspberryLogger(logOutputs) {
978
- this.f2n_1 = logOutputs;
979
- }
980
- protoOf(CombinedRaspberryLogger).g2n = function (output) {
981
- this.f2n_1.e(output);
982
- };
983
- protoOf(CombinedRaspberryLogger).h2n = function (tag, message, payload) {
984
- // Inline function 'kotlin.collections.forEach' call
985
- var tmp0_iterator = this.f2n_1.j();
986
- while (tmp0_iterator.k()) {
987
- var element = tmp0_iterator.l();
988
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.d.<anonymous>' call
989
- element.d(tag, message, payload);
990
- }
991
- };
992
- protoOf(CombinedRaspberryLogger).i2n = function (tag, message, exception, payload) {
993
- // Inline function 'kotlin.collections.forEach' call
994
- var tmp0_iterator = this.f2n_1.j();
995
- while (tmp0_iterator.k()) {
996
- var element = tmp0_iterator.l();
997
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.e.<anonymous>' call
998
- element.e(tag, message, exception, payload);
999
- }
1000
- };
1001
- protoOf(CombinedRaspberryLogger).j2n = function (tag, message, exception, payload) {
1002
- // Inline function 'kotlin.collections.forEach' call
1003
- var tmp0_iterator = this.f2n_1.j();
1004
- while (tmp0_iterator.k()) {
1005
- var element = tmp0_iterator.l();
1006
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.w.<anonymous>' call
1007
- element.w(tag, message, exception, payload);
1008
- }
1009
- };
1010
- protoOf(CombinedRaspberryLogger).k2n = function (tag, message, exception, payload) {
1011
- // Inline function 'kotlin.collections.forEach' call
1012
- var tmp0_iterator = this.f2n_1.j();
1013
- while (tmp0_iterator.k()) {
1014
- var element = tmp0_iterator.l();
1015
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.v.<anonymous>' call
1016
- element.v(tag, message, exception, payload);
1017
- }
1018
- };
1019
- protoOf(CombinedRaspberryLogger).l2n = function (tag, message, payload) {
1020
- // Inline function 'kotlin.collections.forEach' call
1021
- var tmp0_iterator = this.f2n_1.j();
1022
- while (tmp0_iterator.k()) {
1023
- var element = tmp0_iterator.l();
1024
- // Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.i.<anonymous>' call
1025
- element.i(tag, message, payload);
1026
- }
1027
- };
1028
- function LoggerEnabledTrigger() {
1029
- }
1030
- function LoggerPayload() {
1031
- }
1032
- function PlatformRaspberryLogger(enabled) {
1033
- enabled = enabled === VOID ? true : enabled;
1034
- this.o2n_1 = enabled;
1035
- }
1036
- protoOf(PlatformRaspberryLogger).m2n = function (_set____db54di) {
1037
- this.o2n_1 = _set____db54di;
1038
- };
1039
- protoOf(PlatformRaspberryLogger).n2n = function () {
1040
- return this.o2n_1;
1041
- };
1042
- protoOf(PlatformRaspberryLogger).h2n = function (tag, message, payload) {
1043
- if (!this.o2n_1)
1044
- return Unit_instance;
1045
- Logger_getInstance().s2n(tag, message);
1046
- };
1047
- protoOf(PlatformRaspberryLogger).i2n = function (tag, message, exception, payload) {
1048
- if (!this.o2n_1)
1049
- return Unit_instance;
1050
- Logger_getInstance().t2n(tag, message, exception);
1051
- };
1052
- protoOf(PlatformRaspberryLogger).j2n = function (tag, message, exception, payload) {
1053
- if (!this.o2n_1)
1054
- return Unit_instance;
1055
- Logger_getInstance().u2n(tag, message, exception);
1056
- };
1057
- protoOf(PlatformRaspberryLogger).k2n = function (tag, message, exception, payload) {
1058
- if (!this.o2n_1)
1059
- return Unit_instance;
1060
- Logger_getInstance().v2n(tag, message, exception);
1061
- };
1062
- protoOf(PlatformRaspberryLogger).l2n = function (tag, message, payload) {
1063
- if (!this.o2n_1)
1064
- return Unit_instance;
1065
- Logger_getInstance().v2n(tag, message);
1066
- };
1067
- function RaspberryLogger() {
1068
- }
1069
- function LoggerOutput() {
1070
- }
1071
- var Category_LIFECYCLE_instance;
1072
- var Category_NONE_instance;
1073
- var Category_entriesInitialized;
1074
- function Category_initEntries() {
1075
- if (Category_entriesInitialized)
1076
- return Unit_instance;
1077
- Category_entriesInitialized = true;
1078
- Category_LIFECYCLE_instance = new Category('LIFECYCLE', 0, true);
1079
- Category_NONE_instance = new Category('NONE', 1, true);
1080
- }
1081
- function generateTag($this, tag) {
1082
- return !($this.r2n_1 == null) && !(tag == null) ? '' + $this.r2n_1 + ':' + tag : tag;
1083
- }
1084
- function Category(name, ordinal, isEnabled) {
1085
- Enum.call(this, name, ordinal);
1086
- this.y2n_1 = isEnabled;
1087
- }
1088
- function Logger$loggerSource$1() {
1089
- this.z2n_1 = new PlatformLogger();
1090
- }
1091
- protoOf(Logger$loggerSource$1).a2o = function (tag, msg) {
1092
- this.z2n_1.a2o(tag, msg);
1093
- };
1094
- protoOf(Logger$loggerSource$1).b2o = function (tag, msg, exception) {
1095
- this.z2n_1.b2o(tag, msg, exception);
1096
- };
1097
- protoOf(Logger$loggerSource$1).c2o = function (tag, msg, exception) {
1098
- this.z2n_1.c2o(tag, msg, exception);
1099
- };
1100
- protoOf(Logger$loggerSource$1).d2o = function (tag, msg, exception) {
1101
- this.z2n_1.d2o(tag, msg, exception);
1102
- };
1103
- function Category_NONE_getInstance() {
1104
- Category_initEntries();
1105
- return Category_NONE_instance;
1106
- }
1107
- function Logger() {
1108
- Logger_instance = this;
1109
- var tmp = this;
1110
- tmp.p2n_1 = new Logger$loggerSource$1();
1111
- this.q2n_1 = true;
1112
- this.r2n_1 = null;
1113
- }
1114
- protoOf(Logger).s2n = function (tag, message) {
1115
- this.e2o(tag, message, Category_NONE_getInstance());
1116
- };
1117
- protoOf(Logger).f2o = function (tag, message, exception, category) {
1118
- if (this.q2n_1 && category.y2n_1) {
1119
- if (exception == null)
1120
- null;
1121
- else {
1122
- printStackTrace(exception);
1123
- }
1124
- this.p2n_1.c2o(generateTag(this, tag), generateMsg(message, exception), exception);
1125
- }
1126
- };
1127
- protoOf(Logger).u2n = function (tag, message, exception, category, $super) {
1128
- tag = tag === VOID ? null : tag;
1129
- message = message === VOID ? null : message;
1130
- exception = exception === VOID ? null : exception;
1131
- category = category === VOID ? Category_NONE_getInstance() : category;
1132
- var tmp;
1133
- if ($super === VOID) {
1134
- this.f2o(tag, message, exception, category);
1135
- tmp = Unit_instance;
1136
- } else {
1137
- tmp = $super.f2o.call(this, tag, message, exception, category);
1138
- }
1139
- return tmp;
1140
- };
1141
- protoOf(Logger).e2o = function (tag, message, category) {
1142
- if (this.q2n_1 && category.y2n_1) {
1143
- this.p2n_1.a2o(generateTag(this, tag), message);
1144
- }
1145
- };
1146
- protoOf(Logger).g2o = function (tag, message, exception, category) {
1147
- if (this.q2n_1 && category.y2n_1) {
1148
- this.p2n_1.d2o(generateTag(this, tag), generateMsg(message, exception), exception);
1149
- }
1150
- };
1151
- protoOf(Logger).v2n = function (tag, message, exception, category, $super) {
1152
- tag = tag === VOID ? null : tag;
1153
- message = message === VOID ? null : message;
1154
- exception = exception === VOID ? null : exception;
1155
- category = category === VOID ? Category_NONE_getInstance() : category;
1156
- var tmp;
1157
- if ($super === VOID) {
1158
- this.g2o(tag, message, exception, category);
1159
- tmp = Unit_instance;
1160
- } else {
1161
- tmp = $super.g2o.call(this, tag, message, exception, category);
1162
- }
1163
- return tmp;
1164
- };
1165
- protoOf(Logger).h2o = function (tag, message, exception, category) {
1166
- if (this.q2n_1 && category.y2n_1) {
1167
- if (exception == null)
1168
- null;
1169
- else {
1170
- printStackTrace(exception);
1171
- }
1172
- this.p2n_1.b2o(generateTag(this, tag), generateMsg(message, exception), exception);
1173
- }
1174
- };
1175
- protoOf(Logger).t2n = function (tag, message, exception, category, $super) {
1176
- tag = tag === VOID ? null : tag;
1177
- message = message === VOID ? null : message;
1178
- exception = exception === VOID ? null : exception;
1179
- category = category === VOID ? Category_NONE_getInstance() : category;
1180
- var tmp;
1181
- if ($super === VOID) {
1182
- this.h2o(tag, message, exception, category);
1183
- tmp = Unit_instance;
1184
- } else {
1185
- tmp = $super.h2o.call(this, tag, message, exception, category);
1186
- }
1187
- return tmp;
1188
- };
1189
- var Logger_instance;
1190
- function Logger_getInstance() {
1191
- if (Logger_instance == null)
1192
- new Logger();
1193
- return Logger_instance;
1194
- }
1195
- function generateMsg(msg, exception) {
1196
- var logMessage = '';
1197
- // Inline function 'kotlin.text.isNullOrBlank' call
1198
- // Inline function 'kotlin.contracts.contract' call
1199
- if (!(msg == null || isBlank(msg))) {
1200
- logMessage = logMessage + msg;
1201
- }
1202
- if (!(exception == null)) {
1203
- var tmp = logMessage;
1204
- // Inline function 'kotlin.text.orEmpty' call
1205
- var tmp0_elvis_lhs = exception.message;
1206
- logMessage = tmp + (' Exception: ' + (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + ', stackTrace: ' + stackTraceToString(exception));
1207
- }
1208
- if (isBlank(logMessage)) {
1209
- logMessage = 'Unknown error';
1210
- }
1211
- return logMessage;
1212
- }
1213
- function getLogTag(tag) {
1214
- return !(tag == null) ? '[' + tag + ']' : '';
1215
- }
1216
- function PlatformLogger() {
1217
- }
1218
- protoOf(PlatformLogger).a2o = function (tag, msg) {
1219
- console.log('D:' + getLogTag(tag) + ': ' + msg);
1220
- };
1221
- protoOf(PlatformLogger).b2o = function (tag, msg, exception) {
1222
- if (!(exception == null)) {
1223
- console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString_0(exception));
1224
- } else {
1225
- console.error(getLogTag(tag) + ': ' + msg);
1226
- }
1227
- };
1228
- protoOf(PlatformLogger).c2o = function (tag, msg, exception) {
1229
- var tmp = console;
1230
- var tmp_0 = getLogTag(tag);
1231
- tmp.warn(tmp_0 + ': ' + msg + ' ' + toString(exception == null ? '' : exception));
1232
- };
1233
- protoOf(PlatformLogger).d2o = function (tag, msg, exception) {
1234
- var tmp = console;
1235
- var tmp_0 = getLogTag(tag);
1236
- tmp.log('V:' + tmp_0 + ': ' + msg + ' ' + toString(exception == null ? '' : exception));
1237
- };
1238
974
  //region block: post-declaration
1239
- protoOf(CombinationsCheckerProviderImpl).v2m = findCardsInRowCombinations$default;
1240
- protoOf(CombinationsCheckerProviderImpl).x2m = findSameCardsNumberCombinations$default;
1241
- protoOf(CombinedRaspberryLogger).d = d;
1242
- protoOf(CombinedRaspberryLogger).e = e;
1243
- protoOf(CombinedRaspberryLogger).w = w;
1244
- protoOf(CombinedRaspberryLogger).v = v;
1245
- protoOf(CombinedRaspberryLogger).i = i;
1246
- protoOf(PlatformRaspberryLogger).d = d;
1247
- protoOf(PlatformRaspberryLogger).e = e;
1248
- protoOf(PlatformRaspberryLogger).w = w;
1249
- protoOf(PlatformRaspberryLogger).v = v;
1250
- protoOf(PlatformRaspberryLogger).i = i;
1251
- defineProp(protoOf(PlatformRaspberryLogger), 'enabled', function () {
1252
- return this.n2n();
1253
- }, function (value) {
1254
- this.m2n(value);
1255
- });
975
+ protoOf(CombinationsCheckerProviderImpl).w33 = findCardsInRowCombinations$default;
976
+ protoOf(CombinationsCheckerProviderImpl).y33 = findSameCardsNumberCombinations$default;
1256
977
  //endregion
1257
978
  //region block: init
1258
979
  CoreConfig_instance = new CoreConfig();
@@ -1260,7 +981,6 @@
1260
981
  CardIndexComparator_instance = new CardIndexComparator();
1261
982
  Companion_instance = new Companion();
1262
983
  Companion_instance_0 = new Companion_0();
1263
- Companion_instance_2 = new Companion_2();
1264
984
  //endregion
1265
985
  //region block: exports
1266
986
  function $jsExportAll$(_) {
@@ -1269,31 +989,6 @@
1269
989
  var $io$raspberryapps$cardgame = $io$raspberryapps.cardgame || ($io$raspberryapps.cardgame = {});
1270
990
  var $io$raspberryapps$cardgame$core = $io$raspberryapps$cardgame.core || ($io$raspberryapps$cardgame.core = {});
1271
991
  defineProp($io$raspberryapps$cardgame$core, 'CoreConfig', CoreConfig_getInstance);
1272
- var $io = _.io || (_.io = {});
1273
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1274
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1275
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1276
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1277
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1278
- var $io = _.io || (_.io = {});
1279
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1280
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1281
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1282
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1283
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1284
- var $io = _.io || (_.io = {});
1285
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1286
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1287
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1288
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1289
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1290
- var $io = _.io || (_.io = {});
1291
- var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
1292
- var $io$raspberryapps$card_game = $io$raspberryapps.card_game || ($io$raspberryapps.card_game = {});
1293
- var $io$raspberryapps$card_game$core = $io$raspberryapps$card_game.core || ($io$raspberryapps$card_game.core = {});
1294
- var $io$raspberryapps$card_game$core$utils = $io$raspberryapps$card_game$core.utils || ($io$raspberryapps$card_game$core.utils = {});
1295
- var $io$raspberryapps$card_game$core$utils$logger = $io$raspberryapps$card_game$core$utils.logger || ($io$raspberryapps$card_game$core$utils.logger = {});
1296
- var $io$raspberryapps$card_game$core$utils$logger$output = $io$raspberryapps$card_game$core$utils$logger.output || ($io$raspberryapps$card_game$core$utils$logger.output = {});
1297
992
  }
1298
993
  $jsExportAll$(_);
1299
994
  _.$jsExportAll$ = $jsExportAll$;
@@ -1306,34 +1001,23 @@
1306
1001
  _.$_$.f = CardName_NINE_getInstance;
1307
1002
  _.$_$.g = CardName_SEVEN_getInstance;
1308
1003
  _.$_$.h = CardName_TEN_getInstance;
1309
- _.$_$.i = d;
1310
- _.$_$.j = e;
1311
- _.$_$.k = i;
1312
- _.$_$.l = v;
1313
- _.$_$.m = w;
1314
- _.$_$.n = CardIndexComparator_instance;
1315
- _.$_$.o = CardNumberComparator_instance;
1316
- _.$_$.p = Companion_instance;
1317
- _.$_$.q = Companion_getInstance_1;
1318
- _.$_$.r = Logger_getInstance;
1319
- _.$_$.s = Companion_instance_2;
1320
- _.$_$.t = GameCard;
1321
- _.$_$.u = get_entries;
1322
- _.$_$.v = values;
1323
- _.$_$.w = distributeCardsBottom;
1324
- _.$_$.x = distributeCardsTop;
1325
- _.$_$.y = filterByCardName;
1326
- _.$_$.z = CardsDealerProvider;
1327
- _.$_$.a1 = CombinationsCheckerProviderImpl;
1328
- _.$_$.b1 = CombinationsCheckerProvider;
1329
- _.$_$.c1 = DealerReducerImpl;
1330
- _.$_$.d1 = DealerReducer;
1331
- _.$_$.e1 = LoggerOutput;
1332
- _.$_$.f1 = generateMsg;
1333
- _.$_$.g1 = CombinedRaspberryLogger;
1334
- _.$_$.h1 = LoggerEnabledTrigger;
1335
- _.$_$.i1 = LoggerPayload;
1336
- _.$_$.j1 = RaspberryLogger;
1004
+ _.$_$.i = CardsRandomProvider_CUSTOM_getInstance;
1005
+ _.$_$.j = CardsRandomProvider_RANDOM_ORG_getInstance;
1006
+ _.$_$.k = CardIndexComparator_instance;
1007
+ _.$_$.l = CardNumberComparator_instance;
1008
+ _.$_$.m = Companion_instance;
1009
+ _.$_$.n = Companion_getInstance_1;
1010
+ _.$_$.o = GameCard;
1011
+ _.$_$.p = get_entries;
1012
+ _.$_$.q = values;
1013
+ _.$_$.r = distributeCardsBottom;
1014
+ _.$_$.s = distributeCardsTop;
1015
+ _.$_$.t = filterByCardName;
1016
+ _.$_$.u = CardsDealerProvider;
1017
+ _.$_$.v = CombinationsCheckerProviderImpl;
1018
+ _.$_$.w = CombinationsCheckerProvider;
1019
+ _.$_$.x = DealerReducerImpl;
1020
+ _.$_$.y = DealerReducer;
1337
1021
  //endregion
1338
1022
  return _;
1339
1023
  }));