game_client_logic_deb 1.8.96 → 1.8.104
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 +98 -99
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +803 -804
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +171 -202
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1918 -2300
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +16480 -20499
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +92 -127
- package/Logic_Debertz-game_client.js +5078 -5649
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +8597 -7800
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +1 -1
- package/kotlinx-atomicfu.js +54 -39
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +2899 -2964
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +1 -1
- package/kotlinx-io-kotlinx-io-core.js +326 -358
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2416 -2452
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1699 -1842
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +281 -290
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/secure-random-secure-random.js +1 -1
- package/uuid.js +44 -59
- package/uuid.js.map +1 -1
|
@@ -12,112 +12,112 @@
|
|
|
12
12
|
}
|
|
13
13
|
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']);
|
|
14
14
|
}
|
|
15
|
-
}(
|
|
15
|
+
}(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var defineProp = kotlin_kotlin.$_$.z9;
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.gb;
|
|
20
|
+
var initMetadataForObject = kotlin_kotlin.$_$.oa;
|
|
21
|
+
var defineProp = kotlin_kotlin.$_$.ba;
|
|
23
22
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
24
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
25
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
26
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
23
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.ee;
|
|
25
|
+
var Comparator = kotlin_kotlin.$_$.qd;
|
|
27
26
|
var VOID = kotlin_kotlin.$_$.f;
|
|
28
|
-
var take = kotlin_kotlin.$_$.
|
|
29
|
-
var toList = kotlin_kotlin.$_$.
|
|
30
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
31
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
27
|
+
var take = kotlin_kotlin.$_$.l8;
|
|
28
|
+
var toList = kotlin_kotlin.$_$.o8;
|
|
29
|
+
var takeLast = kotlin_kotlin.$_$.k8;
|
|
30
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bf;
|
|
31
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ka;
|
|
32
32
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
33
|
-
var Enum = kotlin_kotlin.$_$.
|
|
34
|
-
var
|
|
35
|
-
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
33
|
+
var Enum = kotlin_kotlin.$_$.td;
|
|
34
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ja;
|
|
35
|
+
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
36
36
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
|
|
37
|
-
var lazy = kotlin_kotlin.$_$.
|
|
38
|
-
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
40
|
-
var
|
|
41
|
-
var first = kotlin_kotlin.$_$.
|
|
42
|
-
var sorted = kotlin_kotlin.$_$.
|
|
43
|
-
var asReversed = kotlin_kotlin.$_$.
|
|
37
|
+
var lazy = kotlin_kotlin.$_$.ze;
|
|
38
|
+
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.q9;
|
|
40
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ma;
|
|
41
|
+
var first = kotlin_kotlin.$_$.w6;
|
|
42
|
+
var sorted = kotlin_kotlin.$_$.i8;
|
|
43
|
+
var asReversed = kotlin_kotlin.$_$.t5;
|
|
44
44
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
45
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
46
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
47
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
45
|
+
var sortedWith = kotlin_kotlin.$_$.h8;
|
|
46
|
+
var lastOrNull = kotlin_kotlin.$_$.k7;
|
|
47
|
+
var toMutableList = kotlin_kotlin.$_$.r8;
|
|
48
48
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.t1;
|
|
49
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
49
|
+
var compareTo = kotlin_kotlin.$_$.aa;
|
|
50
|
+
var toString = kotlin_kotlin.$_$.kb;
|
|
51
|
+
var dropLast = kotlin_kotlin.$_$.o6;
|
|
52
|
+
var plus = kotlin_kotlin.$_$.z7;
|
|
53
|
+
var minus = kotlin_kotlin.$_$.u7;
|
|
54
|
+
var plus_0 = kotlin_kotlin.$_$.a8;
|
|
55
|
+
var mutableListOf = kotlin_kotlin.$_$.v7;
|
|
56
|
+
var printStackTrace = kotlin_kotlin.$_$.df;
|
|
57
|
+
var isBlank = kotlin_kotlin.$_$.kc;
|
|
58
|
+
var stackTraceToString = kotlin_kotlin.$_$.ef;
|
|
59
|
+
var toString_0 = kotlin_kotlin.$_$.gf;
|
|
59
60
|
//endregion
|
|
60
61
|
//region block: pre-declaration
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
initMetadataForObject(CoreConfig, 'CoreConfig');
|
|
63
|
+
initMetadataForObject(CardNumberComparator, 'CardNumberComparator', VOID, VOID, [Comparator]);
|
|
64
|
+
initMetadataForObject(CardIndexComparator, 'CardIndexComparator', VOID, VOID, [Comparator]);
|
|
65
|
+
initMetadataForCompanion(Companion);
|
|
66
|
+
initMetadataForClass(CardName, 'CardName', VOID, Enum);
|
|
67
|
+
initMetadataForCompanion(Companion_0);
|
|
68
|
+
initMetadataForClass(GameCard, 'GameCard');
|
|
69
|
+
initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
|
|
70
|
+
initMetadataForClass(Suit, 'Suit', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_1});
|
|
70
71
|
function standardShuffledCards$default(cards, times, $super) {
|
|
71
72
|
times = times === VOID ? 3 : times;
|
|
72
|
-
return $super === VOID ? this.
|
|
73
|
+
return $super === VOID ? this.r2m(cards, times) : $super.r2m.call(this, cards, times);
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
+
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider');
|
|
75
76
|
function findCardsInRowCombinations$default(cards, supportedCombinations, checkFromIndex, includeCardNames, suit, $super) {
|
|
76
77
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
77
78
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
78
79
|
suit = suit === VOID ? null : suit;
|
|
79
|
-
return $super === VOID ? this.
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
setMetadataFor(Companion_3, 'Companion', objectMeta);
|
|
80
|
+
return $super === VOID ? this.t2m(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.t2m.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
81
|
+
}
|
|
82
|
+
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
83
|
+
initMetadataForClass(CombinationsCheckerProviderImpl, 'CombinationsCheckerProviderImpl', CombinationsCheckerProviderImpl, VOID, [CombinationsCheckerProvider]);
|
|
84
|
+
initMetadataForInterface(DealerReducer, 'DealerReducer');
|
|
85
|
+
initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
|
|
86
|
+
initMetadataForCompanion(Companion_2);
|
|
87
87
|
function d(tag, message, payload, $super) {
|
|
88
88
|
tag = tag === VOID ? null : tag;
|
|
89
89
|
payload = payload === VOID ? null : payload;
|
|
90
|
-
return this.
|
|
90
|
+
return this.e2n(tag, message, payload);
|
|
91
91
|
}
|
|
92
92
|
function e(tag, message, exception, payload, $super) {
|
|
93
93
|
tag = tag === VOID ? null : tag;
|
|
94
94
|
message = message === VOID ? null : message;
|
|
95
95
|
exception = exception === VOID ? null : exception;
|
|
96
96
|
payload = payload === VOID ? null : payload;
|
|
97
|
-
return this.
|
|
97
|
+
return this.f2n(tag, message, exception, payload);
|
|
98
98
|
}
|
|
99
99
|
function w(tag, message, exception, payload, $super) {
|
|
100
100
|
tag = tag === VOID ? null : tag;
|
|
101
101
|
message = message === VOID ? null : message;
|
|
102
102
|
exception = exception === VOID ? null : exception;
|
|
103
103
|
payload = payload === VOID ? null : payload;
|
|
104
|
-
return this.
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
104
|
+
return this.g2n(tag, message, exception, payload);
|
|
105
|
+
}
|
|
106
|
+
initMetadataForInterface(LoggerOutput, 'LoggerOutput');
|
|
107
|
+
initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
|
|
108
|
+
initMetadataForClass(CombinedRaspberryLogger, 'CombinedRaspberryLogger', VOID, VOID, [RaspberryLogger]);
|
|
109
|
+
initMetadataForInterface(LoggerEnabledTrigger, 'LoggerEnabledTrigger', VOID, VOID, [RaspberryLogger]);
|
|
110
|
+
initMetadataForInterface(LoggerPayload, 'LoggerPayload');
|
|
111
|
+
initMetadataForClass(PlatformRaspberryLogger, 'PlatformRaspberryLogger', PlatformRaspberryLogger, VOID, [RaspberryLogger, LoggerEnabledTrigger]);
|
|
112
|
+
initMetadataForClass(Category, 'Category', VOID, Enum);
|
|
113
|
+
initMetadataForClass(Logger$loggerSource$1);
|
|
114
|
+
initMetadataForObject(Logger, 'Logger');
|
|
115
|
+
initMetadataForClass(PlatformLogger, 'PlatformLogger', PlatformLogger);
|
|
116
116
|
//endregion
|
|
117
117
|
function CoreConfig() {
|
|
118
118
|
this.version = '0.0.19';
|
|
119
119
|
}
|
|
120
|
-
protoOf(CoreConfig).
|
|
120
|
+
protoOf(CoreConfig).z2l = function () {
|
|
121
121
|
return this.version;
|
|
122
122
|
};
|
|
123
123
|
var CoreConfig_instance;
|
|
@@ -129,23 +129,23 @@
|
|
|
129
129
|
var predicate = byCardNamePredicate(name.slice());
|
|
130
130
|
// Inline function 'kotlin.collections.filterTo' call
|
|
131
131
|
var destination = ArrayList_init_$Create$();
|
|
132
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
133
|
-
while (tmp0_iterator.
|
|
134
|
-
var element = tmp0_iterator.
|
|
132
|
+
var tmp0_iterator = _this__u8e3s4.j();
|
|
133
|
+
while (tmp0_iterator.k()) {
|
|
134
|
+
var element = tmp0_iterator.l();
|
|
135
135
|
if (predicate(element)) {
|
|
136
|
-
destination.
|
|
136
|
+
destination.e(element);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
return destination;
|
|
140
140
|
}
|
|
141
141
|
function CardNumberComparator() {
|
|
142
142
|
}
|
|
143
|
-
protoOf(CardNumberComparator).
|
|
144
|
-
return b.
|
|
143
|
+
protoOf(CardNumberComparator).a2m = function (a, b) {
|
|
144
|
+
return b.c2m() - a.c2m() | 0;
|
|
145
145
|
};
|
|
146
146
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
147
147
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
148
|
-
return this.
|
|
148
|
+
return this.a2m(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
149
149
|
};
|
|
150
150
|
var CardNumberComparator_instance;
|
|
151
151
|
function CardNumberComparator_getInstance() {
|
|
@@ -153,12 +153,12 @@
|
|
|
153
153
|
}
|
|
154
154
|
function CardIndexComparator() {
|
|
155
155
|
}
|
|
156
|
-
protoOf(CardIndexComparator).
|
|
157
|
-
return a.
|
|
156
|
+
protoOf(CardIndexComparator).a2m = function (a, b) {
|
|
157
|
+
return a.b2m_1 - b.b2m_1 | 0;
|
|
158
158
|
};
|
|
159
159
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
160
160
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
161
|
-
return this.
|
|
161
|
+
return this.a2m(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
162
162
|
};
|
|
163
163
|
var CardIndexComparator_instance;
|
|
164
164
|
function CardIndexComparator_getInstance() {
|
|
@@ -169,12 +169,12 @@
|
|
|
169
169
|
}
|
|
170
170
|
function distributeCardsBottom(_this__u8e3s4, count) {
|
|
171
171
|
var cardsToDeal = toList(take(_this__u8e3s4, count));
|
|
172
|
-
_this__u8e3s4.
|
|
172
|
+
_this__u8e3s4.x1(cardsToDeal);
|
|
173
173
|
return cardsToDeal;
|
|
174
174
|
}
|
|
175
175
|
function distributeCardsTop(_this__u8e3s4, count) {
|
|
176
176
|
var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
|
|
177
|
-
_this__u8e3s4.
|
|
177
|
+
_this__u8e3s4.x1(cardsToDeal);
|
|
178
178
|
return cardsToDeal;
|
|
179
179
|
}
|
|
180
180
|
function byCardNamePredicate$lambda($types) {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
var element = indexedObject[inductionVariable];
|
|
190
190
|
inductionVariable = inductionVariable + 1 | 0;
|
|
191
191
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.byCardNamePredicate.<anonymous>.<anonymous>' call
|
|
192
|
-
if (p1.
|
|
192
|
+
if (p1.o2().equals(element)) {
|
|
193
193
|
tmp$ret$1 = true;
|
|
194
194
|
break $l$block;
|
|
195
195
|
}
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
var CardName_STUB_instance;
|
|
216
216
|
function getShortName($this) {
|
|
217
217
|
var tmp;
|
|
218
|
-
switch ($this.
|
|
218
|
+
switch ($this.n2_1) {
|
|
219
219
|
case 0:
|
|
220
220
|
tmp = 'A';
|
|
221
221
|
break;
|
|
@@ -286,10 +286,10 @@
|
|
|
286
286
|
}
|
|
287
287
|
function Companion() {
|
|
288
288
|
}
|
|
289
|
-
protoOf(Companion).
|
|
289
|
+
protoOf(Companion).d2m = function (suit, cardNumber) {
|
|
290
290
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
291
291
|
};
|
|
292
|
-
protoOf(Companion).
|
|
292
|
+
protoOf(Companion).e2m = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
293
293
|
var tmp;
|
|
294
294
|
if (previousStubCardWithMaxIndex == null) {
|
|
295
295
|
tmp = null;
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
// Inline function 'kotlin.contracts.contract' call
|
|
299
299
|
var tmp_0;
|
|
300
300
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
301
|
-
if (previousStubCardWithMaxIndex.
|
|
301
|
+
if (previousStubCardWithMaxIndex.f2m()) {
|
|
302
302
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
303
303
|
} else {
|
|
304
304
|
tmp_0 = null;
|
|
@@ -306,8 +306,8 @@
|
|
|
306
306
|
tmp = tmp_0;
|
|
307
307
|
}
|
|
308
308
|
var tmp1_safe_receiver = tmp;
|
|
309
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
310
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
309
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b2m_1;
|
|
310
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.k2m(tmp2_safe_receiver, playerIndex, reverse);
|
|
311
311
|
var tmp_1;
|
|
312
312
|
if (tmp3_safe_receiver == null) {
|
|
313
313
|
tmp_1 = null;
|
|
@@ -328,10 +328,10 @@
|
|
|
328
328
|
var index = tmp_2;
|
|
329
329
|
return new GameCard(index);
|
|
330
330
|
};
|
|
331
|
-
protoOf(Companion).
|
|
331
|
+
protoOf(Companion).l2m = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
332
332
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
333
333
|
reverse = reverse === VOID ? false : reverse;
|
|
334
|
-
return $super === VOID ? this.
|
|
334
|
+
return $super === VOID ? this.e2m(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.e2m.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
335
335
|
};
|
|
336
336
|
var Companion_instance;
|
|
337
337
|
function Companion_getInstance() {
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
}
|
|
343
343
|
function getCardNumber($this, number) {
|
|
344
344
|
var tmp;
|
|
345
|
-
switch (number.
|
|
345
|
+
switch (number.n2_1) {
|
|
346
346
|
case 12:
|
|
347
347
|
tmp = 0;
|
|
348
348
|
break;
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
tmp = 12;
|
|
384
384
|
break;
|
|
385
385
|
default:
|
|
386
|
-
throw IllegalStateException_init_$Create$('Invalid CardNumber ' + number);
|
|
386
|
+
throw IllegalStateException_init_$Create$('Invalid CardNumber ' + number.toString());
|
|
387
387
|
}
|
|
388
388
|
return tmp;
|
|
389
389
|
}
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
return tmp;
|
|
436
436
|
}
|
|
437
437
|
function _get_isShirt__vd98rp($this) {
|
|
438
|
-
return $this.
|
|
438
|
+
return $this.b2m_1 === 52;
|
|
439
439
|
}
|
|
440
440
|
function CardName(name, ordinal) {
|
|
441
441
|
Enum.call(this, name, ordinal);
|
|
@@ -444,12 +444,12 @@
|
|
|
444
444
|
return getShortName(this);
|
|
445
445
|
};
|
|
446
446
|
function Companion_0() {
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
447
|
+
this.g2m_1 = -1;
|
|
448
|
+
this.h2m_1 = 13;
|
|
449
|
+
this.i2m_1 = 52;
|
|
450
|
+
this.j2m_1 = 53;
|
|
451
451
|
}
|
|
452
|
-
protoOf(Companion_0).
|
|
452
|
+
protoOf(Companion_0).k2m = function (_this__u8e3s4, playerIndex, reverse) {
|
|
453
453
|
var tmp;
|
|
454
454
|
if (reverse) {
|
|
455
455
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -519,59 +519,59 @@
|
|
|
519
519
|
return CardName_STUB_instance;
|
|
520
520
|
}
|
|
521
521
|
function GameCard(index) {
|
|
522
|
-
this.
|
|
522
|
+
this.b2m_1 = index;
|
|
523
523
|
}
|
|
524
|
-
protoOf(GameCard).
|
|
524
|
+
protoOf(GameCard).m2m = function () {
|
|
525
525
|
var tmp;
|
|
526
|
-
var containsArg = this.
|
|
526
|
+
var containsArg = this.b2m_1;
|
|
527
527
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
528
528
|
tmp = Suit_DIAMOND_getInstance();
|
|
529
529
|
} else {
|
|
530
|
-
if (this.
|
|
530
|
+
if (this.b2m_1 <= 26) {
|
|
531
531
|
tmp = Suit_SPADE_getInstance();
|
|
532
532
|
} else {
|
|
533
|
-
if (this.
|
|
533
|
+
if (this.b2m_1 <= 39) {
|
|
534
534
|
tmp = Suit_HEART_getInstance();
|
|
535
535
|
} else {
|
|
536
|
-
if (this.
|
|
536
|
+
if (this.b2m_1 <= 52) {
|
|
537
537
|
tmp = Suit_CLUB_getInstance();
|
|
538
538
|
} else {
|
|
539
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
539
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.b2m_1);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
return tmp;
|
|
545
545
|
};
|
|
546
|
-
protoOf(GameCard).
|
|
546
|
+
protoOf(GameCard).c2m = function () {
|
|
547
547
|
var tmp;
|
|
548
|
-
if (this.
|
|
548
|
+
if (this.f2m()) {
|
|
549
549
|
tmp = -1;
|
|
550
550
|
} else {
|
|
551
|
-
tmp = this.
|
|
551
|
+
tmp = this.b2m_1 - imul(13, getIndex(this.m2m())) | 0;
|
|
552
552
|
}
|
|
553
553
|
return tmp;
|
|
554
554
|
};
|
|
555
|
-
protoOf(GameCard).
|
|
556
|
-
return this.
|
|
555
|
+
protoOf(GameCard).o2 = function () {
|
|
556
|
+
return this.f2m() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.c2m());
|
|
557
557
|
};
|
|
558
|
-
protoOf(GameCard).
|
|
559
|
-
return !_get_isShirt__vd98rp(this)
|
|
558
|
+
protoOf(GameCard).n2m = function () {
|
|
559
|
+
return !_get_isShirt__vd98rp(this) && !this.f2m();
|
|
560
560
|
};
|
|
561
|
-
protoOf(GameCard).
|
|
562
|
-
return this.
|
|
561
|
+
protoOf(GameCard).f2m = function () {
|
|
562
|
+
return this.b2m_1 >= 53;
|
|
563
563
|
};
|
|
564
564
|
protoOf(GameCard).toString = function () {
|
|
565
565
|
if (_get_isShirt__vd98rp(this)) {
|
|
566
566
|
return 'GameCard(SHIRT)';
|
|
567
567
|
}
|
|
568
|
-
if (this.
|
|
569
|
-
return 'GameCard(STUB, ' + this.
|
|
568
|
+
if (this.f2m()) {
|
|
569
|
+
return 'GameCard(STUB, ' + this.b2m_1 + ')';
|
|
570
570
|
}
|
|
571
|
-
return 'GameCard(' + this.
|
|
571
|
+
return 'GameCard(' + this.m2m().toString() + this.o2().toString() + ', ' + this.b2m_1 + ')';
|
|
572
572
|
};
|
|
573
573
|
protoOf(GameCard).hashCode = function () {
|
|
574
|
-
return this.
|
|
574
|
+
return this.b2m_1;
|
|
575
575
|
};
|
|
576
576
|
protoOf(GameCard).equals = function (other) {
|
|
577
577
|
if (this === other)
|
|
@@ -579,12 +579,12 @@
|
|
|
579
579
|
if (!(other instanceof GameCard))
|
|
580
580
|
return false;
|
|
581
581
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
582
|
-
if (!(this.
|
|
582
|
+
if (!(this.b2m_1 === tmp0_other_with_cast.b2m_1))
|
|
583
583
|
return false;
|
|
584
584
|
return true;
|
|
585
585
|
};
|
|
586
586
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
587
|
-
return $this.
|
|
587
|
+
return $this.o2m_1.e2();
|
|
588
588
|
}
|
|
589
589
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
590
590
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
var Suit_CLUB_instance;
|
|
596
596
|
function getSuitEmoji($this) {
|
|
597
597
|
var tmp;
|
|
598
|
-
switch ($this.
|
|
598
|
+
switch ($this.n2_1) {
|
|
599
599
|
case 0:
|
|
600
600
|
tmp = '\u2666\uFE0F';
|
|
601
601
|
break;
|
|
@@ -618,13 +618,13 @@
|
|
|
618
618
|
Companion_instance_1 = this;
|
|
619
619
|
var tmp = this;
|
|
620
620
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
621
|
-
tmp.
|
|
621
|
+
tmp.o2m_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
622
622
|
}
|
|
623
|
-
protoOf(Companion_1).
|
|
623
|
+
protoOf(Companion_1).o22 = function () {
|
|
624
624
|
return _get_$cachedSerializer__te6jhj(this);
|
|
625
625
|
};
|
|
626
|
-
protoOf(Companion_1).
|
|
627
|
-
return this.
|
|
626
|
+
protoOf(Companion_1).e1r = function (typeParamsSerializers) {
|
|
627
|
+
return this.o22();
|
|
628
628
|
};
|
|
629
629
|
var Companion_instance_1;
|
|
630
630
|
function Companion_getInstance_1() {
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
}
|
|
678
678
|
function getIndex(_this__u8e3s4) {
|
|
679
679
|
var tmp;
|
|
680
|
-
switch (_this__u8e3s4.
|
|
680
|
+
switch (_this__u8e3s4.n2_1) {
|
|
681
681
|
case 0:
|
|
682
682
|
tmp = 0;
|
|
683
683
|
break;
|
|
@@ -701,17 +701,17 @@
|
|
|
701
701
|
function CombinationsCheckerProvider() {
|
|
702
702
|
}
|
|
703
703
|
function createCombination($this, cards, supportedCombinations) {
|
|
704
|
-
var size = cards.
|
|
705
|
-
if (supportedCombinations.
|
|
704
|
+
var size = cards.m();
|
|
705
|
+
if (supportedCombinations.q1(size)) {
|
|
706
706
|
return cards;
|
|
707
707
|
}
|
|
708
708
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
709
709
|
var tmp$ret$1;
|
|
710
710
|
$l$block: {
|
|
711
711
|
// Inline function 'kotlin.collections.first' call
|
|
712
|
-
var tmp0_iterator = fromLongestCombinations.
|
|
713
|
-
while (tmp0_iterator.
|
|
714
|
-
var element = tmp0_iterator.
|
|
712
|
+
var tmp0_iterator = fromLongestCombinations.j();
|
|
713
|
+
while (tmp0_iterator.k()) {
|
|
714
|
+
var element = tmp0_iterator.l();
|
|
715
715
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombination.<anonymous>' call
|
|
716
716
|
if (element <= size) {
|
|
717
717
|
tmp$ret$1 = element;
|
|
@@ -725,17 +725,17 @@
|
|
|
725
725
|
}
|
|
726
726
|
function CombinationsCheckerProviderImpl() {
|
|
727
727
|
}
|
|
728
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
728
|
+
protoOf(CombinationsCheckerProviderImpl).t2m = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
729
729
|
// Inline function 'kotlin.collections.filter' call
|
|
730
730
|
// Inline function 'kotlin.collections.filterTo' call
|
|
731
731
|
var this_0 = sortedWith(cards, CardIndexComparator_instance);
|
|
732
732
|
var destination = ArrayList_init_$Create$();
|
|
733
|
-
var tmp0_iterator = this_0.
|
|
734
|
-
while (tmp0_iterator.
|
|
735
|
-
var element = tmp0_iterator.
|
|
733
|
+
var tmp0_iterator = this_0.j();
|
|
734
|
+
while (tmp0_iterator.k()) {
|
|
735
|
+
var element = tmp0_iterator.l();
|
|
736
736
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
|
|
737
|
-
if (element.
|
|
738
|
-
destination.
|
|
737
|
+
if (element.n2m()) {
|
|
738
|
+
destination.e(element);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
var sortedCards = toList(destination);
|
|
@@ -744,44 +744,44 @@
|
|
|
744
744
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
745
745
|
var combinationCards = ArrayList_init_$Create$();
|
|
746
746
|
var inductionVariable = 0;
|
|
747
|
-
var last = sortedCards.
|
|
747
|
+
var last = sortedCards.m() - 1 | 0;
|
|
748
748
|
if (inductionVariable <= last)
|
|
749
749
|
do {
|
|
750
750
|
var i = inductionVariable;
|
|
751
751
|
inductionVariable = inductionVariable + 1 | 0;
|
|
752
752
|
var previousCard = lastOrNull(combinationCards);
|
|
753
|
-
var currentCard = sortedCards.
|
|
754
|
-
var isNextInRow =
|
|
755
|
-
var passedCardNamesCheck = includeCardNames == null
|
|
756
|
-
var passedSuitCheck = suit == null
|
|
757
|
-
if (
|
|
758
|
-
combinationCards.
|
|
753
|
+
var currentCard = sortedCards.o(i);
|
|
754
|
+
var isNextInRow = !(previousCard == null) && currentCard.b2m_1 === (previousCard.b2m_1 + 1 | 0) && currentCard.m2m().equals(previousCard.m2m());
|
|
755
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.q1(currentCard.o2());
|
|
756
|
+
var passedSuitCheck = suit == null || currentCard.m2m().equals(suit);
|
|
757
|
+
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
758
|
+
combinationCards.e(currentCard);
|
|
759
759
|
} else {
|
|
760
|
-
if (combinationCards.
|
|
761
|
-
combinations.
|
|
760
|
+
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
761
|
+
combinations.n(this.v2m(toMutableList(combinationCards), supportedCombinations));
|
|
762
762
|
}
|
|
763
|
-
combinationCards.
|
|
764
|
-
if (passedSuitCheck
|
|
765
|
-
combinationCards.
|
|
763
|
+
combinationCards.z1();
|
|
764
|
+
if (passedSuitCheck && passedCardNamesCheck) {
|
|
765
|
+
combinationCards.e(currentCard);
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
while (inductionVariable <= last);
|
|
770
|
-
if (combinationCards.
|
|
771
|
-
combinations.
|
|
770
|
+
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
771
|
+
combinations.n(this.v2m(toMutableList(combinationCards), supportedCombinations));
|
|
772
772
|
}
|
|
773
773
|
return combinations;
|
|
774
774
|
};
|
|
775
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
775
|
+
protoOf(CombinationsCheckerProviderImpl).v2m = function (cards, supportedCombinations) {
|
|
776
776
|
// Inline function 'kotlin.collections.minOf' call
|
|
777
|
-
var iterator = supportedCombinations.
|
|
778
|
-
if (!iterator.
|
|
777
|
+
var iterator = supportedCombinations.j();
|
|
778
|
+
if (!iterator.k())
|
|
779
779
|
throw NoSuchElementException_init_$Create$_0();
|
|
780
780
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
781
|
-
var minValue = iterator.
|
|
782
|
-
while (iterator.
|
|
781
|
+
var minValue = iterator.l();
|
|
782
|
+
while (iterator.k()) {
|
|
783
783
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
784
|
-
var v = iterator.
|
|
784
|
+
var v = iterator.l();
|
|
785
785
|
if (compareTo(minValue, v) > 0) {
|
|
786
786
|
minValue = v;
|
|
787
787
|
}
|
|
@@ -790,134 +790,127 @@
|
|
|
790
790
|
var cardsToCheck = cards;
|
|
791
791
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
792
792
|
var combinations = ArrayList_init_$Create$();
|
|
793
|
-
while (cardsToCheck.
|
|
793
|
+
while (cardsToCheck.m() >= shortestCombinationSupport) {
|
|
794
794
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
795
|
-
combinations.
|
|
795
|
+
combinations.e(combinationCards);
|
|
796
796
|
// Inline function 'kotlin.apply' call
|
|
797
797
|
var this_0 = toMutableList(cardsToCheck);
|
|
798
798
|
// Inline function 'kotlin.contracts.contract' call
|
|
799
799
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
800
|
-
this_0.
|
|
800
|
+
this_0.x1(combinationCards);
|
|
801
801
|
cardsToCheck = this_0;
|
|
802
802
|
}
|
|
803
803
|
return combinations;
|
|
804
804
|
};
|
|
805
805
|
function DealerReducerImpl(logger, enableLogs) {
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
806
|
+
this.w2m_1 = logger;
|
|
807
|
+
this.x2m_1 = enableLogs;
|
|
808
808
|
}
|
|
809
|
-
protoOf(DealerReducerImpl).
|
|
809
|
+
protoOf(DealerReducerImpl).y2m = function (cards, cardsToRemove) {
|
|
810
810
|
var list = cards;
|
|
811
|
-
var tmp0_iterator = cardsToRemove.
|
|
812
|
-
while (tmp0_iterator.
|
|
813
|
-
var gameCard = tmp0_iterator.
|
|
814
|
-
list = this.
|
|
811
|
+
var tmp0_iterator = cardsToRemove.j();
|
|
812
|
+
while (tmp0_iterator.k()) {
|
|
813
|
+
var gameCard = tmp0_iterator.l();
|
|
814
|
+
list = this.z2m(list, gameCard);
|
|
815
815
|
}
|
|
816
816
|
return list;
|
|
817
817
|
};
|
|
818
|
-
protoOf(DealerReducerImpl).
|
|
818
|
+
protoOf(DealerReducerImpl).z2m = function (cards, cardToRemove) {
|
|
819
819
|
var tmp;
|
|
820
|
-
if (!cardToRemove.
|
|
821
|
-
if (this.
|
|
822
|
-
this.
|
|
820
|
+
if (!cardToRemove.f2m() && cards.q1(cardToRemove)) {
|
|
821
|
+
if (this.x2m_1) {
|
|
822
|
+
this.w2m_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
823
823
|
}
|
|
824
824
|
tmp = minus(cards, cardToRemove);
|
|
825
825
|
} else {
|
|
826
|
-
if (this.
|
|
827
|
-
this.
|
|
826
|
+
if (this.x2m_1) {
|
|
827
|
+
this.w2m_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
828
828
|
}
|
|
829
829
|
// Inline function 'kotlin.collections.filterNot' call
|
|
830
830
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
831
831
|
var destination = ArrayList_init_$Create$();
|
|
832
|
-
var tmp0_iterator = cards.
|
|
833
|
-
while (tmp0_iterator.
|
|
834
|
-
var element = tmp0_iterator.
|
|
832
|
+
var tmp0_iterator = cards.j();
|
|
833
|
+
while (tmp0_iterator.k()) {
|
|
834
|
+
var element = tmp0_iterator.l();
|
|
835
835
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
836
|
-
if (!element.
|
|
837
|
-
destination.
|
|
836
|
+
if (!element.f2m()) {
|
|
837
|
+
destination.e(element);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
var notStubCards = destination;
|
|
841
841
|
// Inline function 'kotlin.collections.filter' call
|
|
842
842
|
// Inline function 'kotlin.collections.filterTo' call
|
|
843
843
|
var destination_0 = ArrayList_init_$Create$();
|
|
844
|
-
var tmp0_iterator_0 = cards.
|
|
845
|
-
while (tmp0_iterator_0.
|
|
846
|
-
var element_0 = tmp0_iterator_0.
|
|
844
|
+
var tmp0_iterator_0 = cards.j();
|
|
845
|
+
while (tmp0_iterator_0.k()) {
|
|
846
|
+
var element_0 = tmp0_iterator_0.l();
|
|
847
847
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
848
|
-
if (element_0.
|
|
849
|
-
destination_0.
|
|
848
|
+
if (element_0.f2m()) {
|
|
849
|
+
destination_0.e(element_0);
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
var stubCards = destination_0;
|
|
853
|
-
if (stubCards.
|
|
854
|
-
this.
|
|
853
|
+
if (stubCards.p()) {
|
|
854
|
+
this.w2m_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
855
855
|
}
|
|
856
856
|
tmp = plus(notStubCards, dropLast(stubCards, 1));
|
|
857
857
|
}
|
|
858
858
|
return tmp;
|
|
859
859
|
};
|
|
860
|
-
protoOf(DealerReducerImpl).
|
|
861
|
-
if (this.
|
|
862
|
-
this.
|
|
860
|
+
protoOf(DealerReducerImpl).a2n = function (cards, cardToAdd) {
|
|
861
|
+
if (this.x2m_1) {
|
|
862
|
+
this.w2m_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
863
863
|
}
|
|
864
|
-
if (cards.
|
|
865
|
-
this.
|
|
864
|
+
if (cards.q1(cardToAdd)) {
|
|
865
|
+
this.w2m_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
866
866
|
}
|
|
867
867
|
return plus_0(cards, cardToAdd);
|
|
868
868
|
};
|
|
869
|
-
function Companion_2() {
|
|
870
|
-
this.r2l_1 = 'Dealer';
|
|
871
|
-
}
|
|
872
|
-
var Companion_instance_2;
|
|
873
|
-
function Companion_getInstance_2() {
|
|
874
|
-
return Companion_instance_2;
|
|
875
|
-
}
|
|
876
869
|
function DealerReducer() {
|
|
877
870
|
}
|
|
878
|
-
function
|
|
871
|
+
function Companion_2() {
|
|
879
872
|
}
|
|
880
|
-
protoOf(
|
|
873
|
+
protoOf(Companion_2).b2n = function () {
|
|
881
874
|
return new CombinedRaspberryLogger(mutableListOf([new PlatformRaspberryLogger()]));
|
|
882
875
|
};
|
|
883
|
-
protoOf(
|
|
876
|
+
protoOf(Companion_2).k1o = function () {
|
|
884
877
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
885
878
|
var tmp$ret$0 = ArrayList_init_$Create$();
|
|
886
879
|
return new CombinedRaspberryLogger(tmp$ret$0);
|
|
887
880
|
};
|
|
888
|
-
var
|
|
889
|
-
function
|
|
890
|
-
return
|
|
881
|
+
var Companion_instance_2;
|
|
882
|
+
function Companion_getInstance_2() {
|
|
883
|
+
return Companion_instance_2;
|
|
891
884
|
}
|
|
892
885
|
function CombinedRaspberryLogger(logOutputs) {
|
|
893
|
-
this.
|
|
886
|
+
this.c2n_1 = logOutputs;
|
|
894
887
|
}
|
|
895
|
-
protoOf(CombinedRaspberryLogger).
|
|
896
|
-
this.
|
|
888
|
+
protoOf(CombinedRaspberryLogger).d2n = function (output) {
|
|
889
|
+
this.c2n_1.e(output);
|
|
897
890
|
};
|
|
898
|
-
protoOf(CombinedRaspberryLogger).
|
|
891
|
+
protoOf(CombinedRaspberryLogger).e2n = function (tag, message, payload) {
|
|
899
892
|
// Inline function 'kotlin.collections.forEach' call
|
|
900
|
-
var tmp0_iterator = this.
|
|
901
|
-
while (tmp0_iterator.
|
|
902
|
-
var element = tmp0_iterator.
|
|
893
|
+
var tmp0_iterator = this.c2n_1.j();
|
|
894
|
+
while (tmp0_iterator.k()) {
|
|
895
|
+
var element = tmp0_iterator.l();
|
|
903
896
|
// Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.d.<anonymous>' call
|
|
904
897
|
element.d(tag, message, payload);
|
|
905
898
|
}
|
|
906
899
|
};
|
|
907
|
-
protoOf(CombinedRaspberryLogger).
|
|
900
|
+
protoOf(CombinedRaspberryLogger).f2n = function (tag, message, exception, payload) {
|
|
908
901
|
// Inline function 'kotlin.collections.forEach' call
|
|
909
|
-
var tmp0_iterator = this.
|
|
910
|
-
while (tmp0_iterator.
|
|
911
|
-
var element = tmp0_iterator.
|
|
902
|
+
var tmp0_iterator = this.c2n_1.j();
|
|
903
|
+
while (tmp0_iterator.k()) {
|
|
904
|
+
var element = tmp0_iterator.l();
|
|
912
905
|
// Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.e.<anonymous>' call
|
|
913
906
|
element.e(tag, message, exception, payload);
|
|
914
907
|
}
|
|
915
908
|
};
|
|
916
|
-
protoOf(CombinedRaspberryLogger).
|
|
909
|
+
protoOf(CombinedRaspberryLogger).g2n = function (tag, message, exception, payload) {
|
|
917
910
|
// Inline function 'kotlin.collections.forEach' call
|
|
918
|
-
var tmp0_iterator = this.
|
|
919
|
-
while (tmp0_iterator.
|
|
920
|
-
var element = tmp0_iterator.
|
|
911
|
+
var tmp0_iterator = this.c2n_1.j();
|
|
912
|
+
while (tmp0_iterator.k()) {
|
|
913
|
+
var element = tmp0_iterator.l();
|
|
921
914
|
// Inline function 'io.raspberryapps.card_game.core.utils.logger.CombinedRaspberryLogger.w.<anonymous>' call
|
|
922
915
|
element.w(tag, message, exception, payload);
|
|
923
916
|
}
|
|
@@ -928,28 +921,28 @@
|
|
|
928
921
|
}
|
|
929
922
|
function PlatformRaspberryLogger(enabled) {
|
|
930
923
|
enabled = enabled === VOID ? true : enabled;
|
|
931
|
-
this.
|
|
924
|
+
this.j2n_1 = enabled;
|
|
932
925
|
}
|
|
933
|
-
protoOf(PlatformRaspberryLogger).
|
|
934
|
-
this.
|
|
926
|
+
protoOf(PlatformRaspberryLogger).h2n = function (_set____db54di) {
|
|
927
|
+
this.j2n_1 = _set____db54di;
|
|
935
928
|
};
|
|
936
|
-
protoOf(PlatformRaspberryLogger).
|
|
937
|
-
return this.
|
|
929
|
+
protoOf(PlatformRaspberryLogger).i2n = function () {
|
|
930
|
+
return this.j2n_1;
|
|
938
931
|
};
|
|
939
|
-
protoOf(PlatformRaspberryLogger).
|
|
940
|
-
if (!this.
|
|
932
|
+
protoOf(PlatformRaspberryLogger).e2n = function (tag, message, payload) {
|
|
933
|
+
if (!this.j2n_1)
|
|
941
934
|
return Unit_instance;
|
|
942
|
-
Logger_getInstance().
|
|
935
|
+
Logger_getInstance().n2n(tag, message);
|
|
943
936
|
};
|
|
944
|
-
protoOf(PlatformRaspberryLogger).
|
|
945
|
-
if (!this.
|
|
937
|
+
protoOf(PlatformRaspberryLogger).f2n = function (tag, message, exception, payload) {
|
|
938
|
+
if (!this.j2n_1)
|
|
946
939
|
return Unit_instance;
|
|
947
|
-
Logger_getInstance().
|
|
940
|
+
Logger_getInstance().o2n(tag, message, exception);
|
|
948
941
|
};
|
|
949
|
-
protoOf(PlatformRaspberryLogger).
|
|
950
|
-
if (!this.
|
|
942
|
+
protoOf(PlatformRaspberryLogger).g2n = function (tag, message, exception, payload) {
|
|
943
|
+
if (!this.j2n_1)
|
|
951
944
|
return Unit_instance;
|
|
952
|
-
Logger_getInstance().
|
|
945
|
+
Logger_getInstance().p2n(tag, message, exception);
|
|
953
946
|
};
|
|
954
947
|
function RaspberryLogger() {
|
|
955
948
|
}
|
|
@@ -966,23 +959,23 @@
|
|
|
966
959
|
Category_NONE_instance = new Category('NONE', 1, true);
|
|
967
960
|
}
|
|
968
961
|
function generateTag($this, tag) {
|
|
969
|
-
return
|
|
962
|
+
return !($this.m2n_1 == null) && !(tag == null) ? '' + $this.m2n_1 + ':' + tag : tag;
|
|
970
963
|
}
|
|
971
964
|
function Category(name, ordinal, isEnabled) {
|
|
972
965
|
Enum.call(this, name, ordinal);
|
|
973
|
-
this.
|
|
966
|
+
this.s2n_1 = isEnabled;
|
|
974
967
|
}
|
|
975
968
|
function Logger$loggerSource$1() {
|
|
976
|
-
this.
|
|
969
|
+
this.t2n_1 = new PlatformLogger();
|
|
977
970
|
}
|
|
978
|
-
protoOf(Logger$loggerSource$1).
|
|
979
|
-
this.
|
|
971
|
+
protoOf(Logger$loggerSource$1).u2n = function (tag, msg) {
|
|
972
|
+
this.t2n_1.u2n(tag, msg);
|
|
980
973
|
};
|
|
981
|
-
protoOf(Logger$loggerSource$1).
|
|
982
|
-
this.
|
|
974
|
+
protoOf(Logger$loggerSource$1).v2n = function (tag, msg, exception) {
|
|
975
|
+
this.t2n_1.v2n(tag, msg, exception);
|
|
983
976
|
};
|
|
984
|
-
protoOf(Logger$loggerSource$1).
|
|
985
|
-
this.
|
|
977
|
+
protoOf(Logger$loggerSource$1).w2n = function (tag, msg, exception) {
|
|
978
|
+
this.t2n_1.w2n(tag, msg, exception);
|
|
986
979
|
};
|
|
987
980
|
function Category_NONE_getInstance() {
|
|
988
981
|
Category_initEntries();
|
|
@@ -991,63 +984,63 @@
|
|
|
991
984
|
function Logger() {
|
|
992
985
|
Logger_instance = this;
|
|
993
986
|
var tmp = this;
|
|
994
|
-
tmp.
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
987
|
+
tmp.k2n_1 = new Logger$loggerSource$1();
|
|
988
|
+
this.l2n_1 = true;
|
|
989
|
+
this.m2n_1 = null;
|
|
997
990
|
}
|
|
998
|
-
protoOf(Logger).
|
|
999
|
-
this.
|
|
991
|
+
protoOf(Logger).n2n = function (tag, message) {
|
|
992
|
+
this.x2n(tag, message, Category_NONE_getInstance());
|
|
1000
993
|
};
|
|
1001
|
-
protoOf(Logger).
|
|
1002
|
-
if (this.
|
|
994
|
+
protoOf(Logger).y2n = function (tag, message, exception, category) {
|
|
995
|
+
if (this.l2n_1 && category.s2n_1) {
|
|
1003
996
|
if (exception == null)
|
|
1004
997
|
null;
|
|
1005
998
|
else {
|
|
1006
999
|
printStackTrace(exception);
|
|
1007
1000
|
}
|
|
1008
|
-
this.
|
|
1001
|
+
this.k2n_1.w2n(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
1009
1002
|
}
|
|
1010
1003
|
};
|
|
1011
|
-
protoOf(Logger).
|
|
1004
|
+
protoOf(Logger).p2n = function (tag, message, exception, category, $super) {
|
|
1012
1005
|
tag = tag === VOID ? null : tag;
|
|
1013
1006
|
message = message === VOID ? null : message;
|
|
1014
1007
|
exception = exception === VOID ? null : exception;
|
|
1015
1008
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
1016
1009
|
var tmp;
|
|
1017
1010
|
if ($super === VOID) {
|
|
1018
|
-
this.
|
|
1011
|
+
this.y2n(tag, message, exception, category);
|
|
1019
1012
|
tmp = Unit_instance;
|
|
1020
1013
|
} else {
|
|
1021
|
-
tmp = $super.
|
|
1014
|
+
tmp = $super.y2n.call(this, tag, message, exception, category);
|
|
1022
1015
|
}
|
|
1023
1016
|
return tmp;
|
|
1024
1017
|
};
|
|
1025
|
-
protoOf(Logger).
|
|
1026
|
-
if (this.
|
|
1027
|
-
this.
|
|
1018
|
+
protoOf(Logger).x2n = function (tag, message, category) {
|
|
1019
|
+
if (this.l2n_1 && category.s2n_1) {
|
|
1020
|
+
this.k2n_1.u2n(generateTag(this, tag), message);
|
|
1028
1021
|
}
|
|
1029
1022
|
};
|
|
1030
|
-
protoOf(Logger).
|
|
1031
|
-
if (this.
|
|
1023
|
+
protoOf(Logger).z2n = function (tag, message, exception, category) {
|
|
1024
|
+
if (this.l2n_1 && category.s2n_1) {
|
|
1032
1025
|
if (exception == null)
|
|
1033
1026
|
null;
|
|
1034
1027
|
else {
|
|
1035
1028
|
printStackTrace(exception);
|
|
1036
1029
|
}
|
|
1037
|
-
this.
|
|
1030
|
+
this.k2n_1.v2n(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
1038
1031
|
}
|
|
1039
1032
|
};
|
|
1040
|
-
protoOf(Logger).
|
|
1033
|
+
protoOf(Logger).o2n = function (tag, message, exception, category, $super) {
|
|
1041
1034
|
tag = tag === VOID ? null : tag;
|
|
1042
1035
|
message = message === VOID ? null : message;
|
|
1043
1036
|
exception = exception === VOID ? null : exception;
|
|
1044
1037
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
1045
1038
|
var tmp;
|
|
1046
1039
|
if ($super === VOID) {
|
|
1047
|
-
this.
|
|
1040
|
+
this.z2n(tag, message, exception, category);
|
|
1048
1041
|
tmp = Unit_instance;
|
|
1049
1042
|
} else {
|
|
1050
|
-
tmp = $super.
|
|
1043
|
+
tmp = $super.z2n.call(this, tag, message, exception, category);
|
|
1051
1044
|
}
|
|
1052
1045
|
return tmp;
|
|
1053
1046
|
};
|
|
@@ -1061,7 +1054,7 @@
|
|
|
1061
1054
|
var logMessage = '';
|
|
1062
1055
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1063
1056
|
// Inline function 'kotlin.contracts.contract' call
|
|
1064
|
-
if (!(msg == null
|
|
1057
|
+
if (!(msg == null || isBlank(msg))) {
|
|
1065
1058
|
logMessage = logMessage + msg;
|
|
1066
1059
|
}
|
|
1067
1060
|
if (!(exception == null)) {
|
|
@@ -1080,23 +1073,23 @@
|
|
|
1080
1073
|
}
|
|
1081
1074
|
function PlatformLogger() {
|
|
1082
1075
|
}
|
|
1083
|
-
protoOf(PlatformLogger).
|
|
1076
|
+
protoOf(PlatformLogger).u2n = function (tag, msg) {
|
|
1084
1077
|
console.log(getLogTag(tag) + ': ' + msg);
|
|
1085
1078
|
};
|
|
1086
|
-
protoOf(PlatformLogger).
|
|
1079
|
+
protoOf(PlatformLogger).v2n = function (tag, msg, exception) {
|
|
1087
1080
|
if (!(exception == null)) {
|
|
1088
|
-
console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + exception);
|
|
1081
|
+
console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString_0(exception));
|
|
1089
1082
|
} else {
|
|
1090
1083
|
console.error(getLogTag(tag) + ': ' + msg);
|
|
1091
1084
|
}
|
|
1092
1085
|
};
|
|
1093
|
-
protoOf(PlatformLogger).
|
|
1086
|
+
protoOf(PlatformLogger).w2n = function (tag, msg, exception) {
|
|
1094
1087
|
var tmp = console;
|
|
1095
1088
|
var tmp_0 = getLogTag(tag);
|
|
1096
1089
|
tmp.warn(tmp_0 + ': ' + msg + ' ' + toString(exception == null ? '' : exception));
|
|
1097
1090
|
};
|
|
1098
1091
|
//region block: post-declaration
|
|
1099
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1092
|
+
protoOf(CombinationsCheckerProviderImpl).u2m = findCardsInRowCombinations$default;
|
|
1100
1093
|
protoOf(CombinedRaspberryLogger).d = d;
|
|
1101
1094
|
protoOf(CombinedRaspberryLogger).e = e;
|
|
1102
1095
|
protoOf(CombinedRaspberryLogger).w = w;
|
|
@@ -1104,9 +1097,9 @@
|
|
|
1104
1097
|
protoOf(PlatformRaspberryLogger).e = e;
|
|
1105
1098
|
protoOf(PlatformRaspberryLogger).w = w;
|
|
1106
1099
|
defineProp(protoOf(PlatformRaspberryLogger), 'enabled', function () {
|
|
1107
|
-
return this.
|
|
1100
|
+
return this.i2n();
|
|
1108
1101
|
}, function (value) {
|
|
1109
|
-
this.
|
|
1102
|
+
this.h2n(value);
|
|
1110
1103
|
});
|
|
1111
1104
|
//endregion
|
|
1112
1105
|
//region block: init
|
|
@@ -1116,7 +1109,6 @@
|
|
|
1116
1109
|
Companion_instance = new Companion();
|
|
1117
1110
|
Companion_instance_0 = new Companion_0();
|
|
1118
1111
|
Companion_instance_2 = new Companion_2();
|
|
1119
|
-
Companion_instance_3 = new Companion_3();
|
|
1120
1112
|
//endregion
|
|
1121
1113
|
//region block: exports
|
|
1122
1114
|
function $jsExportAll$(_) {
|
|
@@ -1169,26 +1161,25 @@
|
|
|
1169
1161
|
_.$_$.m = CardNumberComparator_instance;
|
|
1170
1162
|
_.$_$.n = Companion_instance;
|
|
1171
1163
|
_.$_$.o = Companion_getInstance_1;
|
|
1172
|
-
_.$_$.p =
|
|
1173
|
-
_.$_$.q =
|
|
1174
|
-
_.$_$.r =
|
|
1175
|
-
_.$_$.s =
|
|
1176
|
-
_.$_$.t =
|
|
1177
|
-
_.$_$.u =
|
|
1178
|
-
_.$_$.v =
|
|
1179
|
-
_.$_$.w =
|
|
1180
|
-
_.$_$.x =
|
|
1181
|
-
_.$_$.y =
|
|
1182
|
-
_.$_$.z =
|
|
1183
|
-
_.$_$.a1 =
|
|
1184
|
-
_.$_$.b1 =
|
|
1185
|
-
_.$_$.c1 =
|
|
1186
|
-
_.$_$.d1 =
|
|
1187
|
-
_.$_$.e1 =
|
|
1188
|
-
_.$_$.f1 =
|
|
1189
|
-
_.$_$.g1 =
|
|
1190
|
-
_.$_$.h1 =
|
|
1191
|
-
_.$_$.i1 = RaspberryLogger;
|
|
1164
|
+
_.$_$.p = Logger_getInstance;
|
|
1165
|
+
_.$_$.q = Companion_instance_2;
|
|
1166
|
+
_.$_$.r = GameCard;
|
|
1167
|
+
_.$_$.s = get_entries;
|
|
1168
|
+
_.$_$.t = values;
|
|
1169
|
+
_.$_$.u = distributeCardsBottom;
|
|
1170
|
+
_.$_$.v = distributeCardsTop;
|
|
1171
|
+
_.$_$.w = filterByCardName;
|
|
1172
|
+
_.$_$.x = CardsDealerProvider;
|
|
1173
|
+
_.$_$.y = CombinationsCheckerProviderImpl;
|
|
1174
|
+
_.$_$.z = CombinationsCheckerProvider;
|
|
1175
|
+
_.$_$.a1 = DealerReducerImpl;
|
|
1176
|
+
_.$_$.b1 = DealerReducer;
|
|
1177
|
+
_.$_$.c1 = LoggerOutput;
|
|
1178
|
+
_.$_$.d1 = generateMsg;
|
|
1179
|
+
_.$_$.e1 = CombinedRaspberryLogger;
|
|
1180
|
+
_.$_$.f1 = LoggerEnabledTrigger;
|
|
1181
|
+
_.$_$.g1 = LoggerPayload;
|
|
1182
|
+
_.$_$.h1 = RaspberryLogger;
|
|
1192
1183
|
//endregion
|
|
1193
1184
|
return _;
|
|
1194
1185
|
}));
|