game_client_logic_deb 1.8.397 → 1.8.398
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.
- package/Kosi-Kaverit-kaverit.js +23 -23
- package/Kosi-Kodein-kodein-di.js +161 -161
- package/Kotlin-DateTime-library-kotlinx-datetime.js +170 -170
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-ai_module.js +1944 -0
- package/Logic_Debertz-ai_module.js.map +1 -0
- package/Logic_Debertz-core.js +282 -282
- package/Logic_Debertz-engine.js +12024 -11446
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +4 -2
- package/Logic_Debertz-game_client.js +3830 -3830
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +2066 -2005
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +9 -9
- package/kotlinx-coroutines-core.js +675 -675
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +41 -41
- package/kotlinx-serialization-kotlinx-serialization-core.js +196 -196
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +253 -253
- package/ktor-ktor-client-content-negotiation.js +89 -89
- package/ktor-ktor-client-core.js +1054 -1029
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +293 -288
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +5 -5
- package/ktor-ktor-http.js +164 -160
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +372 -372
- package/ktor-ktor-serialization-kotlinx.js +127 -127
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-utils.js +278 -278
- package/ktor-ktor-websockets.js +15 -15
- package/package.json +1 -1
- package/random-library-crypto-rand.js +13 -13
- package/random-library-secure-random.js +5 -5
- package/raspberry-cardgame-lib-core.js +99 -99
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +12 -12
- package/raspberry-cardgame-lib-random.js +205 -205
- package/uuid.js +15 -15
- package/uuid.js.map +1 -1
package/ktor-ktor-websockets.js
CHANGED
|
@@ -17,24 +17,24 @@
|
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
19
|
var mapCapacity = kotlin_kotlin.$_$.h8;
|
|
20
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
20
|
+
var coerceAtLeast = kotlin_kotlin.$_$.sd;
|
|
21
21
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
23
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
25
|
-
var Enum = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
23
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
24
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.lc;
|
|
25
|
+
var Enum = kotlin_kotlin.$_$.dh;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.b;
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
29
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
28
|
+
var toString = kotlin_kotlin.$_$.nd;
|
|
29
|
+
var getStringHashCode = kotlin_kotlin.$_$.ic;
|
|
30
|
+
var THROW_CCE = kotlin_kotlin.$_$.oh;
|
|
31
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pc;
|
|
32
32
|
var get_lastIndex = kotlin_kotlin.$_$.z7;
|
|
33
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
34
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
35
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
33
|
+
var compareTo = kotlin_kotlin.$_$.bc;
|
|
34
|
+
var ensureNotNull = kotlin_kotlin.$_$.fi;
|
|
35
|
+
var objectCreate = kotlin_kotlin.$_$.jd;
|
|
36
36
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
37
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
37
|
+
var encodeToByteArray = kotlin_kotlin.$_$.ve;
|
|
38
38
|
var encodeToByteArray_0 = kotlin_io_ktor_ktor_io.$_$.k;
|
|
39
39
|
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.q;
|
|
40
40
|
var writeShort = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
@@ -80,13 +80,13 @@
|
|
|
80
80
|
var element = this_0[inductionVariable];
|
|
81
81
|
inductionVariable = inductionVariable + 1 | 0;
|
|
82
82
|
var tmp$ret$0 = element.h3o_1;
|
|
83
|
-
destination.
|
|
83
|
+
destination.f2(tmp$ret$0, element);
|
|
84
84
|
}
|
|
85
85
|
tmp.i3o_1 = destination;
|
|
86
86
|
this.j3o_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
87
87
|
}
|
|
88
88
|
protoOf(Companion).k3o = function (code) {
|
|
89
|
-
return this.i3o_1.
|
|
89
|
+
return this.i3o_1.c2(code);
|
|
90
90
|
};
|
|
91
91
|
var Companion_instance;
|
|
92
92
|
function Companion_getInstance() {
|
package/package.json
CHANGED
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
}(function (_, kotlin_kotlin, kotlin_org_kotlincrypto_error) {
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
18
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
19
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pc;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
21
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
22
22
|
var GeneralSecurityException_init_$Init$ = kotlin_org_kotlincrypto_error.$_$.a;
|
|
23
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
24
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
23
|
+
var objectCreate = kotlin_kotlin.$_$.jd;
|
|
24
|
+
var captureStack = kotlin_kotlin.$_$.ub;
|
|
25
25
|
var GeneralSecurityException_init_$Init$_0 = kotlin_org_kotlincrypto_error.$_$.b;
|
|
26
26
|
var GeneralSecurityException = kotlin_org_kotlincrypto_error.$_$.c;
|
|
27
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
28
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
29
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
30
|
-
var isNumber = kotlin_kotlin.$_$.
|
|
31
|
-
var numberToByte = kotlin_kotlin.$_$.
|
|
27
|
+
var KProperty0 = kotlin_kotlin.$_$.ie;
|
|
28
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.hc;
|
|
29
|
+
var THROW_CCE = kotlin_kotlin.$_$.oh;
|
|
30
|
+
var isNumber = kotlin_kotlin.$_$.ad;
|
|
31
|
+
var numberToByte = kotlin_kotlin.$_$.gd;
|
|
32
32
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.li;
|
|
34
34
|
//endregion
|
|
35
35
|
//region block: pre-declaration
|
|
36
36
|
initMetadataForClass(CryptoRand, 'CryptoRand');
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
var tmp = KProperty0;
|
|
90
90
|
// Inline function 'kotlin.getValue' call
|
|
91
91
|
getPropertyCallableRef('IS_NODE_JS', 0, tmp, _get_IS_NODE_JS_$ref_kwtwqf(), null);
|
|
92
|
-
return tmp0.
|
|
92
|
+
return tmp0.x();
|
|
93
93
|
}
|
|
94
94
|
var IS_NODE_JS$delegate;
|
|
95
95
|
function get_CRYPTO() {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
var tmp = KProperty0;
|
|
99
99
|
// Inline function 'kotlin.getValue' call
|
|
100
100
|
getPropertyCallableRef('CRYPTO', 0, tmp, _get_CRYPTO_$ref_mho5uv(), null);
|
|
101
|
-
return tmp0.
|
|
101
|
+
return tmp0.x();
|
|
102
102
|
}
|
|
103
103
|
var CRYPTO$delegate;
|
|
104
104
|
function isNodeJs() {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.x1;
|
|
19
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
21
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
20
|
+
var objectCreate = kotlin_kotlin.$_$.jd;
|
|
21
|
+
var captureStack = kotlin_kotlin.$_$.ub;
|
|
22
22
|
var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.y1;
|
|
23
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
23
|
+
var RuntimeException = kotlin_kotlin.$_$.nh;
|
|
24
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
25
25
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
26
26
|
var Default_getInstance = kotlin_org_kotlincrypto_random_crypto_rand.$_$.a;
|
|
27
27
|
var RandomnessProcurementException = kotlin_org_kotlincrypto_random_crypto_rand.$_$.b;
|
|
@@ -19,64 +19,64 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
24
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pc;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.cc;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.b;
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.oh;
|
|
27
|
+
var Comparator = kotlin_kotlin.$_$.ah;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
31
|
-
var take = kotlin_kotlin.$_$.
|
|
32
|
-
var toList = kotlin_kotlin.$_$.
|
|
33
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
34
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
35
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
31
|
+
var take = kotlin_kotlin.$_$.i9;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.m9;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.h9;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.mi;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.lc;
|
|
36
36
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
37
|
-
var Enum = kotlin_kotlin.$_$.
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.dh;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.sa;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.ki;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nc;
|
|
44
44
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i6;
|
|
45
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
46
46
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
47
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
48
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
50
|
-
var Result = kotlin_kotlin.$_$.
|
|
47
|
+
var CoroutineImpl = kotlin_kotlin.$_$.qa;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ba;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.mc;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.mh;
|
|
51
51
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.u2;
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.qi;
|
|
53
53
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.x2;
|
|
54
54
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.w2;
|
|
55
55
|
var addAll = kotlin_kotlin.$_$.w5;
|
|
56
|
-
var until = kotlin_kotlin.$_$.
|
|
56
|
+
var until = kotlin_kotlin.$_$.be;
|
|
57
57
|
var count = kotlin_kotlin.$_$.z6;
|
|
58
58
|
var Collection = kotlin_kotlin.$_$.h5;
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.yc;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.q9;
|
|
61
61
|
var riffle = kotlin_io_raspberryapps_cardgame_random.$_$.l;
|
|
62
62
|
var overhand = kotlin_io_raspberryapps_cardgame_random.$_$.k;
|
|
63
63
|
var listOf = kotlin_kotlin.$_$.g8;
|
|
64
64
|
var first = kotlin_kotlin.$_$.l7;
|
|
65
|
-
var sorted = kotlin_kotlin.$_$.
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.f9;
|
|
66
66
|
var asReversed = kotlin_kotlin.$_$.a6;
|
|
67
67
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
68
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
70
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
68
|
+
var equals = kotlin_kotlin.$_$.dc;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.qb;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.jc;
|
|
71
71
|
var first_0 = kotlin_kotlin.$_$.k7;
|
|
72
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
73
|
-
var sortWith = kotlin_kotlin.$_$.
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.z9;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.d9;
|
|
74
74
|
var lastOrNull = kotlin_kotlin.$_$.a8;
|
|
75
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.e9;
|
|
77
77
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.u1;
|
|
78
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
79
|
-
var toString = kotlin_kotlin.$_$.
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.bc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.nd;
|
|
80
80
|
var dropLast = kotlin_kotlin.$_$.b7;
|
|
81
81
|
var plus = kotlin_kotlin.$_$.q8;
|
|
82
82
|
var minus = kotlin_kotlin.$_$.l8;
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
if (!a.z5b() || !b.z5b()) {
|
|
157
157
|
return 0;
|
|
158
158
|
}
|
|
159
|
-
var suitIndexL = this.y5b_1.
|
|
160
|
-
var suitIndexR = this.y5b_1.
|
|
159
|
+
var suitIndexL = this.y5b_1.w1(a.a5c());
|
|
160
|
+
var suitIndexR = this.y5b_1.w1(b.a5c());
|
|
161
161
|
var sortedNumberL = imul(suitIndexL, 13) + a.b5c() | 0;
|
|
162
162
|
var sortedNumberR = imul(suitIndexR, 13) + b.b5c() | 0;
|
|
163
163
|
return sortedNumberL - sortedNumberR | 0;
|
|
@@ -195,12 +195,12 @@
|
|
|
195
195
|
}
|
|
196
196
|
function distributeCardsBottom(_this__u8e3s4, count) {
|
|
197
197
|
var cardsToDeal = toList(take(_this__u8e3s4, count));
|
|
198
|
-
_this__u8e3s4.
|
|
198
|
+
_this__u8e3s4.l2(cardsToDeal);
|
|
199
199
|
return cardsToDeal;
|
|
200
200
|
}
|
|
201
201
|
function distributeCardsTop(_this__u8e3s4, count) {
|
|
202
202
|
var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
|
|
203
|
-
_this__u8e3s4.
|
|
203
|
+
_this__u8e3s4.l2(cardsToDeal);
|
|
204
204
|
return cardsToDeal;
|
|
205
205
|
}
|
|
206
206
|
function byCardNamePredicate(types) {
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
while (inductionVariable < last) {
|
|
218
218
|
var element = tmp0[inductionVariable];
|
|
219
219
|
inductionVariable = inductionVariable + 1 | 0;
|
|
220
|
-
if (p1.
|
|
220
|
+
if (p1.r2().equals(element)) {
|
|
221
221
|
tmp$ret$1 = true;
|
|
222
222
|
break $l$block;
|
|
223
223
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
var CardName_HIDDEN_instance;
|
|
244
244
|
function getShortName($this) {
|
|
245
245
|
var tmp;
|
|
246
|
-
switch ($this.
|
|
246
|
+
switch ($this.q2_1) {
|
|
247
247
|
case 0:
|
|
248
248
|
tmp = 'A';
|
|
249
249
|
break;
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
}
|
|
377
377
|
function getCardNumber($this, number) {
|
|
378
378
|
var tmp;
|
|
379
|
-
switch (number.
|
|
379
|
+
switch (number.q2_1) {
|
|
380
380
|
case 12:
|
|
381
381
|
tmp = 0;
|
|
382
382
|
break;
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
}
|
|
588
588
|
return tmp;
|
|
589
589
|
};
|
|
590
|
-
protoOf(GameCard).
|
|
590
|
+
protoOf(GameCard).r2 = function () {
|
|
591
591
|
return this.g5c() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.b5c());
|
|
592
592
|
};
|
|
593
593
|
protoOf(GameCard).z5b = function () {
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
if (this.g5c()) {
|
|
604
604
|
return 'GameCard(HIDDEN, ' + this.x5b_1 + ')';
|
|
605
605
|
}
|
|
606
|
-
return 'GameCard(' + this.a5c().toString() + this.
|
|
606
|
+
return 'GameCard(' + this.a5c().toString() + this.r2().toString() + ', ' + this.x5b_1 + ')';
|
|
607
607
|
};
|
|
608
608
|
protoOf(GameCard).hashCode = function () {
|
|
609
609
|
return this.x5b_1;
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
621
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
622
|
-
return $this.p5c_1.
|
|
622
|
+
return $this.p5c_1.x();
|
|
623
623
|
}
|
|
624
624
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
625
625
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
var Suit_CLUB_instance;
|
|
631
631
|
function getSuitEmoji($this) {
|
|
632
632
|
var tmp;
|
|
633
|
-
switch ($this.
|
|
633
|
+
switch ($this.q2_1) {
|
|
634
634
|
case 0:
|
|
635
635
|
tmp = '\u2666\uFE0F';
|
|
636
636
|
break;
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
}
|
|
713
713
|
function getIndex(_this__u8e3s4) {
|
|
714
714
|
var tmp;
|
|
715
|
-
switch (_this__u8e3s4.
|
|
715
|
+
switch (_this__u8e3s4.q2_1) {
|
|
716
716
|
case 0:
|
|
717
717
|
tmp = 0;
|
|
718
718
|
break;
|
|
@@ -762,9 +762,9 @@
|
|
|
762
762
|
}
|
|
763
763
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
764
764
|
var tmp = new $getRandomOrgCardsCOROUTINE$($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
765
|
-
tmp.
|
|
766
|
-
tmp.
|
|
767
|
-
return tmp.
|
|
765
|
+
tmp.u8_1 = Unit_instance;
|
|
766
|
+
tmp.v8_1 = null;
|
|
767
|
+
return tmp.a9();
|
|
768
768
|
}
|
|
769
769
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
770
770
|
var oneSuitCount = cards.o() / get_entries().o() | 0;
|
|
@@ -801,24 +801,24 @@
|
|
|
801
801
|
this.z5d_1 = userData;
|
|
802
802
|
this.a5e_1 = provider;
|
|
803
803
|
}
|
|
804
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$).
|
|
805
|
-
var suspendResult = this.
|
|
804
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$).a9 = function () {
|
|
805
|
+
var suspendResult = this.u8_1;
|
|
806
806
|
$sm: do
|
|
807
807
|
try {
|
|
808
|
-
var tmp = this.
|
|
808
|
+
var tmp = this.s8_1;
|
|
809
809
|
switch (tmp) {
|
|
810
810
|
case 0:
|
|
811
|
-
this.
|
|
812
|
-
var tmp0 = this.a5e_1.
|
|
811
|
+
this.t8_1 = 4;
|
|
812
|
+
var tmp0 = this.a5e_1.q2_1;
|
|
813
813
|
if (tmp0 === 0) {
|
|
814
814
|
var tmp_0 = this;
|
|
815
815
|
var it = this.v5d_1.q5c(this.w5d_1, this.x5d_1);
|
|
816
816
|
tmp_0.b5e_1 = this.v5d_1.u5c(it);
|
|
817
|
-
this.
|
|
817
|
+
this.s8_1 = 3;
|
|
818
818
|
continue $sm;
|
|
819
819
|
} else {
|
|
820
820
|
if (tmp0 === 1) {
|
|
821
|
-
this.
|
|
821
|
+
this.s8_1 = 2;
|
|
822
822
|
suspendResult = getRandomOrgCards(this.v5d_1, this.w5d_1, this.x5d_1, this.y5d_1, this.z5d_1, false, this);
|
|
823
823
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
824
824
|
return suspendResult;
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
continue $sm;
|
|
827
827
|
} else {
|
|
828
828
|
if (tmp0 === 2) {
|
|
829
|
-
this.
|
|
829
|
+
this.s8_1 = 1;
|
|
830
830
|
suspendResult = getRandomOrgCards(this.v5d_1, this.w5d_1, this.x5d_1, this.y5d_1, this.z5d_1, true, this);
|
|
831
831
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
832
832
|
return suspendResult;
|
|
@@ -842,24 +842,24 @@
|
|
|
842
842
|
break;
|
|
843
843
|
case 1:
|
|
844
844
|
this.b5e_1 = suspendResult;
|
|
845
|
-
this.
|
|
845
|
+
this.s8_1 = 3;
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 2:
|
|
848
848
|
this.b5e_1 = suspendResult;
|
|
849
|
-
this.
|
|
849
|
+
this.s8_1 = 3;
|
|
850
850
|
continue $sm;
|
|
851
851
|
case 3:
|
|
852
852
|
return this.b5e_1;
|
|
853
853
|
case 4:
|
|
854
|
-
throw this.
|
|
854
|
+
throw this.v8_1;
|
|
855
855
|
}
|
|
856
856
|
} catch ($p) {
|
|
857
857
|
var e = $p;
|
|
858
|
-
if (this.
|
|
858
|
+
if (this.t8_1 === 4) {
|
|
859
859
|
throw e;
|
|
860
860
|
} else {
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
861
|
+
this.s8_1 = this.t8_1;
|
|
862
|
+
this.v8_1 = e;
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
while (true);
|
|
@@ -873,29 +873,29 @@
|
|
|
873
873
|
this.j5d_1 = userData;
|
|
874
874
|
this.k5d_1 = signed;
|
|
875
875
|
}
|
|
876
|
-
protoOf($getRandomOrgCardsCOROUTINE$).
|
|
877
|
-
var suspendResult = this.
|
|
876
|
+
protoOf($getRandomOrgCardsCOROUTINE$).a9 = function () {
|
|
877
|
+
var suspendResult = this.u8_1;
|
|
878
878
|
$sm: do
|
|
879
879
|
try {
|
|
880
|
-
var tmp = this.
|
|
880
|
+
var tmp = this.s8_1;
|
|
881
881
|
switch (tmp) {
|
|
882
882
|
case 0:
|
|
883
|
-
this.
|
|
883
|
+
this.t8_1 = 5;
|
|
884
884
|
var cardsCount = this.f5d_1.f5e(this.g5d_1, this.h5d_1);
|
|
885
885
|
var tmp0_$this = this.f5d_1.d5e_1;
|
|
886
886
|
var tmp1_max = cardsCount - 1 | 0;
|
|
887
|
-
this.
|
|
887
|
+
this.s8_1 = 1;
|
|
888
888
|
suspendResult = tmp0_$this.k57(this.i5d_1, this.j5d_1, 0, tmp1_max, cardsCount, this.k5d_1, VOID, this);
|
|
889
889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
890
890
|
return suspendResult;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
this.
|
|
893
|
+
this.s8_1 = 2;
|
|
894
894
|
continue $sm;
|
|
895
895
|
case 1:
|
|
896
896
|
var unboxed = suspendResult.tl_1;
|
|
897
897
|
suspendResult = new Result(unboxed);
|
|
898
|
-
this.
|
|
898
|
+
this.s8_1 = 2;
|
|
899
899
|
continue $sm;
|
|
900
900
|
case 2:
|
|
901
901
|
var result = suspendResult.tl_1;
|
|
@@ -912,12 +912,12 @@
|
|
|
912
912
|
destination.j(Companion_instance.e5c(item));
|
|
913
913
|
}
|
|
914
914
|
tmp_0.l5d_1 = destination;
|
|
915
|
-
this.
|
|
915
|
+
this.s8_1 = 4;
|
|
916
916
|
continue $sm;
|
|
917
917
|
} else {
|
|
918
918
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
919
919
|
this.f5d_1.e5e_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
920
|
-
this.
|
|
920
|
+
this.s8_1 = 3;
|
|
921
921
|
suspendResult = this.f5d_1.r5c(this.g5d_1, this.h5d_1, this.i5d_1, this.j5d_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
922
922
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
923
923
|
return suspendResult;
|
|
@@ -927,20 +927,20 @@
|
|
|
927
927
|
|
|
928
928
|
case 3:
|
|
929
929
|
this.l5d_1 = suspendResult;
|
|
930
|
-
this.
|
|
930
|
+
this.s8_1 = 4;
|
|
931
931
|
continue $sm;
|
|
932
932
|
case 4:
|
|
933
933
|
return this.l5d_1;
|
|
934
934
|
case 5:
|
|
935
|
-
throw this.
|
|
935
|
+
throw this.v8_1;
|
|
936
936
|
}
|
|
937
937
|
} catch ($p) {
|
|
938
938
|
var e = $p;
|
|
939
|
-
if (this.
|
|
939
|
+
if (this.t8_1 === 5) {
|
|
940
940
|
throw e;
|
|
941
941
|
} else {
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
942
|
+
this.s8_1 = this.t8_1;
|
|
943
|
+
this.v8_1 = e;
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
while (true);
|
|
@@ -962,8 +962,8 @@
|
|
|
962
962
|
var this_0 = this.g5e(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
963
963
|
// Inline function 'kotlin.collections.mapTo' call
|
|
964
964
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
965
|
-
var inductionVariable = this_0.
|
|
966
|
-
var last = this_0.
|
|
965
|
+
var inductionVariable = this_0.a1_1;
|
|
966
|
+
var last = this_0.b1_1;
|
|
967
967
|
if (inductionVariable <= last)
|
|
968
968
|
do {
|
|
969
969
|
var item = inductionVariable;
|
|
@@ -994,9 +994,9 @@
|
|
|
994
994
|
};
|
|
995
995
|
protoOf(CardsDealerProviderImpl).r5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
996
996
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
997
|
-
tmp.
|
|
998
|
-
tmp.
|
|
999
|
-
return tmp.
|
|
997
|
+
tmp.u8_1 = Unit_instance;
|
|
998
|
+
tmp.v8_1 = null;
|
|
999
|
+
return tmp.a9();
|
|
1000
1000
|
};
|
|
1001
1001
|
protoOf(CardsDealerProviderImpl).s5c = function (count, cards) {
|
|
1002
1002
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
if (this_0.o() === count) {
|
|
1010
1010
|
break $l$block;
|
|
1011
1011
|
}
|
|
1012
|
-
var hasSimilarCard = this_0.
|
|
1012
|
+
var hasSimilarCard = this_0.u1(card);
|
|
1013
1013
|
if (hasSimilarCard) {
|
|
1014
1014
|
continue $l$loop_0;
|
|
1015
1015
|
}
|
|
@@ -1105,7 +1105,7 @@
|
|
|
1105
1105
|
}
|
|
1106
1106
|
function createCombination($this, cards, supportedCombinations) {
|
|
1107
1107
|
var size = cards.o();
|
|
1108
|
-
if (supportedCombinations.
|
|
1108
|
+
if (supportedCombinations.u1(size)) {
|
|
1109
1109
|
return cards;
|
|
1110
1110
|
}
|
|
1111
1111
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
@@ -1128,13 +1128,13 @@
|
|
|
1128
1128
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1129
1129
|
this.q5e_1 = function_0;
|
|
1130
1130
|
}
|
|
1131
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1131
|
+
protoOf(sam$kotlin_Comparator$0).fc = function (a, b) {
|
|
1132
1132
|
return this.q5e_1(a, b);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1135
|
-
return this.
|
|
1135
|
+
return this.fc(a, b);
|
|
1136
1136
|
};
|
|
1137
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1137
|
+
protoOf(sam$kotlin_Comparator$0).b3 = function () {
|
|
1138
1138
|
return this.q5e_1;
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1143
1143
|
var tmp_0;
|
|
1144
1144
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1145
|
-
tmp_0 = equals(this.
|
|
1145
|
+
tmp_0 = equals(this.b3(), other.b3());
|
|
1146
1146
|
} else {
|
|
1147
1147
|
tmp_0 = false;
|
|
1148
1148
|
}
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
return tmp;
|
|
1154
1154
|
};
|
|
1155
1155
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1156
|
-
return hashCode(this.
|
|
1156
|
+
return hashCode(this.b3());
|
|
1157
1157
|
};
|
|
1158
1158
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1159
1159
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
var previousCard = lastOrNull(combinationCards);
|
|
1192
1192
|
var currentCard = sortedByIndexCards.p(i);
|
|
1193
1193
|
var isNextInRow = !(previousCard == null) && currentCard.x5b_1 === (previousCard.x5b_1 + 1 | 0) && currentCard.a5c().equals(previousCard.a5c());
|
|
1194
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.
|
|
1194
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.u1(currentCard.r2());
|
|
1195
1195
|
var passedSuitCheck = suit == null || currentCard.a5c().equals(suit);
|
|
1196
1196
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1197
1197
|
combinationCards.j(currentCard);
|
|
@@ -1199,7 +1199,7 @@
|
|
|
1199
1199
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1200
1200
|
combinations.q(this.p5e(toMutableList(combinationCards), supportedCombinations));
|
|
1201
1201
|
}
|
|
1202
|
-
combinationCards.
|
|
1202
|
+
combinationCards.i2();
|
|
1203
1203
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
1204
1204
|
combinationCards.j(currentCard);
|
|
1205
1205
|
}
|
|
@@ -1231,7 +1231,7 @@
|
|
|
1231
1231
|
var _iterator__ex2g4s_0 = destination.l();
|
|
1232
1232
|
while (_iterator__ex2g4s_0.m()) {
|
|
1233
1233
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1234
|
-
if (includeCardNames == null || includeCardNames.
|
|
1234
|
+
if (includeCardNames == null || includeCardNames.u1(element_0.r2())) {
|
|
1235
1235
|
destination_0.j(element_0);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
@@ -1244,11 +1244,11 @@
|
|
|
1244
1244
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
1245
1245
|
var key = element_1.b5c();
|
|
1246
1246
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1247
|
-
var value = destination_1.
|
|
1247
|
+
var value = destination_1.c2(key);
|
|
1248
1248
|
var tmp;
|
|
1249
1249
|
if (value == null) {
|
|
1250
1250
|
var answer = ArrayList_init_$Create$();
|
|
1251
|
-
destination_1.
|
|
1251
|
+
destination_1.f2(key, answer);
|
|
1252
1252
|
tmp = answer;
|
|
1253
1253
|
} else {
|
|
1254
1254
|
tmp = value;
|
|
@@ -1260,14 +1260,14 @@
|
|
|
1260
1260
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1261
1261
|
var destination_2 = LinkedHashMap_init_$Create$();
|
|
1262
1262
|
// Inline function 'kotlin.collections.iterator' call
|
|
1263
|
-
var _iterator__ex2g4s_2 = destination_1.
|
|
1263
|
+
var _iterator__ex2g4s_2 = destination_1.v().l();
|
|
1264
1264
|
while (_iterator__ex2g4s_2.m()) {
|
|
1265
1265
|
var element_2 = _iterator__ex2g4s_2.n();
|
|
1266
|
-
if (element_2.
|
|
1267
|
-
destination_2.
|
|
1266
|
+
if (element_2.x().o() >= cardsCount) {
|
|
1267
|
+
destination_2.f2(element_2.w(), element_2.x());
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
var combinations = destination_2.
|
|
1270
|
+
var combinations = destination_2.e2();
|
|
1271
1271
|
// Inline function 'kotlin.collections.map' call
|
|
1272
1272
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1273
1273
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -1298,7 +1298,7 @@
|
|
|
1298
1298
|
while (cardsToCheck.o() >= shortestCombinationSupport) {
|
|
1299
1299
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
1300
1300
|
combinations.j(toList(combinationCards));
|
|
1301
|
-
cardsToCheck.
|
|
1301
|
+
cardsToCheck.l2(combinationCards);
|
|
1302
1302
|
}
|
|
1303
1303
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1304
1304
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
};
|
|
1324
1324
|
protoOf(DealerReducerImpl).s5e = function (cards, cardToRemove) {
|
|
1325
1325
|
var tmp;
|
|
1326
|
-
if (!cardToRemove.g5c() && cards.
|
|
1326
|
+
if (!cardToRemove.g5c() && cards.u1(cardToRemove)) {
|
|
1327
1327
|
if (this.v5e_1) {
|
|
1328
1328
|
this.u5e_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1329
1329
|
}
|
|
@@ -1365,7 +1365,7 @@
|
|
|
1365
1365
|
if (this.v5e_1) {
|
|
1366
1366
|
this.u5e_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
|
|
1367
1367
|
}
|
|
1368
|
-
if (cards.
|
|
1368
|
+
if (cards.u1(cardToAdd)) {
|
|
1369
1369
|
this.u5e_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1370
1370
|
}
|
|
1371
1371
|
return plus_0(cards, cardToAdd);
|