raspberry_games_server_game_logic 1.8.342 → 1.8.346
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 +105 -117
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +935 -945
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +4637 -3658
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1909 -1936
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18559 -19039
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +934 -167
- package/Logic_Debertz-game_server.js +2061 -2015
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4834 -4537
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -26
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3195 -3373
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +459 -523
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2372 -2414
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1963 -1977
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +194 -194
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +1902 -1937
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-js.js.map +1 -1
- package/ktor-ktor-client-logging.js +393 -399
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +12 -15
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +964 -1154
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1715 -1825
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +238 -243
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +100 -96
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +655 -689
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websocket-serialization.js.map +1 -1
- package/ktor-ktor-websockets.js +71 -77
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -2
- package/raspberry-cardgame-lib-core.js +326 -360
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +148 -119
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +965 -1034
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +36 -35
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +35 -39
- package/uuid.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './secure-random-secure-random.js', './raspberry-cardgame-lib-logger.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./secure-random-secure-random.js'), require('./raspberry-cardgame-lib-logger.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
24
24
|
}
|
|
25
|
-
if (typeof globalThis['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
|
|
26
|
-
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'Kotlin-DateTime-library-kotlinx-datetime' was not found. Please, check whether 'Kotlin-DateTime-library-kotlinx-datetime' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
27
|
-
}
|
|
28
25
|
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
29
26
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
30
27
|
}
|
|
@@ -46,56 +43,56 @@
|
|
|
46
43
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
47
44
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
48
45
|
}
|
|
49
|
-
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['
|
|
46
|
+
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['secure-random-secure-random'], globalThis['raspberry-cardgame-lib-logger']);
|
|
50
47
|
}
|
|
51
|
-
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http,
|
|
48
|
+
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_io_ktor_ktor_client_logging, kotlin_io_ktor_ktor_serialization_kotlinx_json, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_org_kotlincrypto_secure_random, kotlin_io_raspberryapps_cardgame_logger) {
|
|
52
49
|
'use strict';
|
|
53
50
|
//region block: imports
|
|
54
51
|
var imul = Math.imul;
|
|
55
52
|
var clz32 = Math.clz32;
|
|
56
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
58
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
53
|
+
var protoOf = kotlin_kotlin.$_$.pc;
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.pb;
|
|
55
|
+
var RuntimeException = kotlin_kotlin.$_$.ng;
|
|
59
56
|
var VOID = kotlin_kotlin.$_$.f;
|
|
60
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
61
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
62
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
63
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
65
|
-
var toString = kotlin_kotlin.$_$.
|
|
66
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
-
var listOf = kotlin_kotlin.$_$.
|
|
69
|
-
var plus = kotlin_kotlin.$_$.
|
|
70
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
71
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
72
|
-
var toLong = kotlin_kotlin.$_$.
|
|
73
|
-
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
74
|
-
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
75
|
-
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
76
|
-
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
77
|
-
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
78
|
-
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
79
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
80
|
-
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
81
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
82
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
83
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
84
|
-
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
85
|
-
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
86
|
-
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
87
|
-
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
90
|
-
var getValue = kotlin_kotlin.$_$.
|
|
57
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.d2;
|
|
58
|
+
var captureStack = kotlin_kotlin.$_$.ya;
|
|
59
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ob;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.mb;
|
|
61
|
+
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
62
|
+
var toString = kotlin_kotlin.$_$.uc;
|
|
63
|
+
var hashCode = kotlin_kotlin.$_$.nb;
|
|
64
|
+
var equals = kotlin_kotlin.$_$.hb;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.i8;
|
|
66
|
+
var plus = kotlin_kotlin.$_$.t8;
|
|
67
|
+
var emptyList = kotlin_kotlin.$_$.g7;
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.gb;
|
|
69
|
+
var toLong = kotlin_kotlin.$_$.sc;
|
|
70
|
+
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
71
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
72
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
73
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
74
|
+
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
75
|
+
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
76
|
+
var initMetadataForObject = kotlin_kotlin.$_$.tb;
|
|
77
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
78
|
+
var Unit_instance = kotlin_kotlin.$_$.i5;
|
|
79
|
+
var objectCreate = kotlin_kotlin.$_$.oc;
|
|
80
|
+
var toString_0 = kotlin_kotlin.$_$.sh;
|
|
81
|
+
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
82
|
+
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
83
|
+
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
84
|
+
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
85
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.jb;
|
|
86
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.rb;
|
|
87
|
+
var getValue = kotlin_kotlin.$_$.t7;
|
|
91
88
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
92
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
89
|
+
var CoroutineImpl = kotlin_kotlin.$_$.qa;
|
|
93
90
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
94
91
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
95
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
92
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
96
93
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
97
94
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
98
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
95
|
+
var arrayOf = kotlin_kotlin.$_$.ch;
|
|
99
96
|
var createKType = kotlin_kotlin.$_$.b;
|
|
100
97
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
101
98
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
@@ -103,35 +100,33 @@
|
|
|
103
100
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
104
101
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
105
102
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
106
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
103
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ba;
|
|
107
104
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
108
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
109
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
110
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
111
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
112
|
-
var Long = kotlin_kotlin.$_$.
|
|
105
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.qb;
|
|
106
|
+
var KtMap = kotlin_kotlin.$_$.t5;
|
|
107
|
+
var isInterface = kotlin_kotlin.$_$.cc;
|
|
108
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.y4;
|
|
109
|
+
var Long = kotlin_kotlin.$_$.jg;
|
|
113
110
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
114
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
var
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
111
|
+
var toDuration = kotlin_kotlin.$_$.vf;
|
|
112
|
+
var Duration = kotlin_kotlin.$_$.sf;
|
|
113
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.n2;
|
|
114
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.j2;
|
|
115
|
+
var emptyMap = kotlin_kotlin.$_$.h7;
|
|
116
|
+
var toMutableMap = kotlin_kotlin.$_$.r9;
|
|
117
|
+
var toMap = kotlin_kotlin.$_$.o9;
|
|
118
|
+
var get_lastIndex = kotlin_kotlin.$_$.b8;
|
|
119
|
+
var throwLinkageError = kotlin_kotlin.$_$.qc;
|
|
124
120
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
125
121
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
126
|
-
var Result = kotlin_kotlin.$_$.
|
|
122
|
+
var Result = kotlin_kotlin.$_$.mg;
|
|
127
123
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
128
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
129
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
130
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
131
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
132
|
-
var
|
|
133
|
-
var
|
|
134
|
-
var firstOrNull = kotlin_kotlin.$_$.t7;
|
|
124
|
+
var Companion_instance = kotlin_kotlin.$_$.d5;
|
|
125
|
+
var createFailure = kotlin_kotlin.$_$.eh;
|
|
126
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.w2;
|
|
127
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.sb;
|
|
128
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
129
|
+
var firstOrNull = kotlin_kotlin.$_$.l7;
|
|
135
130
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
136
131
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
137
132
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
@@ -144,14 +139,15 @@
|
|
|
144
139
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
145
140
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
146
141
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
142
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
147
143
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
148
144
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
149
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
150
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
151
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
152
|
-
var take = kotlin_kotlin.$_$.
|
|
153
|
-
var drop = kotlin_kotlin.$_$.
|
|
154
|
-
var reverse = kotlin_kotlin.$_$.
|
|
145
|
+
var Default_getInstance = kotlin_kotlin.$_$.u4;
|
|
146
|
+
var toMutableList = kotlin_kotlin.$_$.q9;
|
|
147
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
148
|
+
var take = kotlin_kotlin.$_$.i9;
|
|
149
|
+
var drop = kotlin_kotlin.$_$.f7;
|
|
150
|
+
var reverse = kotlin_kotlin.$_$.y8;
|
|
155
151
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
156
152
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
157
153
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -193,8 +189,8 @@
|
|
|
193
189
|
initMetadataForClass(IntegerSequencesDataDto, 'IntegerSequencesDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_4});
|
|
194
190
|
initMetadataForInterface(RandomOrgApiService, 'RandomOrgApiService', VOID, VOID, VOID, [5, 6]);
|
|
195
191
|
initMetadataForCompanion(Companion_8);
|
|
196
|
-
initMetadataForCoroutine($getRandomCardDecksCOROUTINE
|
|
197
|
-
initMetadataForCoroutine($throwIfErrorCOROUTINE
|
|
192
|
+
initMetadataForCoroutine($getRandomCardDecksCOROUTINE$, CoroutineImpl);
|
|
193
|
+
initMetadataForCoroutine($throwIfErrorCOROUTINE$, CoroutineImpl);
|
|
198
194
|
initMetadataForClass(RandomOrgApiServiceImpl, 'RandomOrgApiServiceImpl', VOID, VOID, [RandomOrgApiService], [5, 6, 2]);
|
|
199
195
|
initMetadataForClass(PoolParams, 'PoolParams', PoolParams);
|
|
200
196
|
function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion, $super) {
|
|
@@ -203,7 +199,7 @@
|
|
|
203
199
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
204
200
|
signed = signed === VOID ? false : signed;
|
|
205
201
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
206
|
-
return $super === VOID ? this.
|
|
202
|
+
return $super === VOID ? this.d5w(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.d5w.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
207
203
|
}
|
|
208
204
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
209
205
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -211,15 +207,15 @@
|
|
|
211
207
|
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda, CoroutineImpl, VOID, [1]);
|
|
212
208
|
initMetadataForLambda(RandomPoolProviderImpl$prefetchCardDecks$slambda, CoroutineImpl, VOID, [1]);
|
|
213
209
|
initMetadataForLambda(RandomPoolProviderImpl$requestNewPool$slambda, CoroutineImpl, VOID, [1]);
|
|
214
|
-
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE
|
|
215
|
-
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE
|
|
210
|
+
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$, CoroutineImpl);
|
|
211
|
+
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE$, CoroutineImpl);
|
|
216
212
|
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7, 5]);
|
|
217
|
-
initMetadataForClass(ApiCommonConfigs$setupLogging$
|
|
213
|
+
initMetadataForClass(ApiCommonConfigs$setupLogging$2$1);
|
|
218
214
|
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
219
215
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
220
216
|
function nextInt$default(from, until, $super) {
|
|
221
217
|
from = from === VOID ? 0 : from;
|
|
222
|
-
return $super === VOID ? this.
|
|
218
|
+
return $super === VOID ? this.gh(from, until) : $super.gh.call(this, from, until);
|
|
223
219
|
}
|
|
224
220
|
function shuffle(list) {
|
|
225
221
|
var inductionVariable = get_lastIndex(list);
|
|
@@ -227,8 +223,8 @@
|
|
|
227
223
|
do {
|
|
228
224
|
var i = inductionVariable;
|
|
229
225
|
inductionVariable = inductionVariable + -1 | 0;
|
|
230
|
-
var j = this.
|
|
231
|
-
list.
|
|
226
|
+
var j = this.gh(0, i + 1 | 0);
|
|
227
|
+
list.c2(j, list.c2(i, list.o(j)));
|
|
232
228
|
}
|
|
233
229
|
while (1 <= inductionVariable);
|
|
234
230
|
return list;
|
|
@@ -238,7 +234,7 @@
|
|
|
238
234
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
239
235
|
//endregion
|
|
240
236
|
function Companion() {
|
|
241
|
-
this.
|
|
237
|
+
this.a5r_1 = 100001;
|
|
242
238
|
}
|
|
243
239
|
var Companion_instance_1;
|
|
244
240
|
function Companion_getInstance_2() {
|
|
@@ -249,31 +245,31 @@
|
|
|
249
245
|
cause = cause === VOID ? null : cause;
|
|
250
246
|
RuntimeException_init_$Init$(message, cause, this);
|
|
251
247
|
captureStack(this, RandomException);
|
|
252
|
-
this.
|
|
248
|
+
this.b5r_1 = code;
|
|
253
249
|
}
|
|
254
250
|
function CardDecksRequestUserData(id, count) {
|
|
255
251
|
this.id = id;
|
|
256
252
|
this.count = count;
|
|
257
253
|
}
|
|
258
|
-
protoOf(CardDecksRequestUserData).
|
|
254
|
+
protoOf(CardDecksRequestUserData).a5p = function () {
|
|
259
255
|
return this.id;
|
|
260
256
|
};
|
|
261
|
-
protoOf(CardDecksRequestUserData).
|
|
257
|
+
protoOf(CardDecksRequestUserData).c5r = function () {
|
|
262
258
|
return this.count;
|
|
263
259
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
260
|
+
protoOf(CardDecksRequestUserData).gf = function () {
|
|
265
261
|
return this.id;
|
|
266
262
|
};
|
|
267
|
-
protoOf(CardDecksRequestUserData).
|
|
263
|
+
protoOf(CardDecksRequestUserData).hf = function () {
|
|
268
264
|
return this.count;
|
|
269
265
|
};
|
|
270
|
-
protoOf(CardDecksRequestUserData).
|
|
266
|
+
protoOf(CardDecksRequestUserData).d5r = function (id, count) {
|
|
271
267
|
return new CardDecksRequestUserData(id, count);
|
|
272
268
|
};
|
|
273
269
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
274
270
|
id = id === VOID ? this.id : id;
|
|
275
271
|
count = count === VOID ? this.count : count;
|
|
276
|
-
return this.
|
|
272
|
+
return $super === VOID ? this.d5r(id, count) : $super.d5r.call(this, id, count);
|
|
277
273
|
};
|
|
278
274
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
279
275
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -299,25 +295,25 @@
|
|
|
299
295
|
this.players = players;
|
|
300
296
|
this.gameId = gameId;
|
|
301
297
|
}
|
|
302
|
-
protoOf(CardDeckRequestUserData).
|
|
298
|
+
protoOf(CardDeckRequestUserData).e5r = function () {
|
|
303
299
|
return this.players;
|
|
304
300
|
};
|
|
305
|
-
protoOf(CardDeckRequestUserData).
|
|
301
|
+
protoOf(CardDeckRequestUserData).f5r = function () {
|
|
306
302
|
return this.gameId;
|
|
307
303
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
304
|
+
protoOf(CardDeckRequestUserData).gf = function () {
|
|
309
305
|
return this.players;
|
|
310
306
|
};
|
|
311
|
-
protoOf(CardDeckRequestUserData).
|
|
307
|
+
protoOf(CardDeckRequestUserData).hf = function () {
|
|
312
308
|
return this.gameId;
|
|
313
309
|
};
|
|
314
|
-
protoOf(CardDeckRequestUserData).
|
|
310
|
+
protoOf(CardDeckRequestUserData).g5r = function (players, gameId) {
|
|
315
311
|
return new CardDeckRequestUserData(players, gameId);
|
|
316
312
|
};
|
|
317
313
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
318
314
|
players = players === VOID ? this.players : players;
|
|
319
315
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
320
|
-
return this.
|
|
316
|
+
return $super === VOID ? this.g5r(players, gameId) : $super.g5r.call(this, players, gameId);
|
|
321
317
|
};
|
|
322
318
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
323
319
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -343,25 +339,25 @@
|
|
|
343
339
|
this.id = id;
|
|
344
340
|
this.name = name;
|
|
345
341
|
}
|
|
346
|
-
protoOf(UserInfoData).
|
|
342
|
+
protoOf(UserInfoData).a5p = function () {
|
|
347
343
|
return this.id;
|
|
348
344
|
};
|
|
349
|
-
protoOf(UserInfoData).
|
|
345
|
+
protoOf(UserInfoData).p2 = function () {
|
|
350
346
|
return this.name;
|
|
351
347
|
};
|
|
352
|
-
protoOf(UserInfoData).
|
|
348
|
+
protoOf(UserInfoData).gf = function () {
|
|
353
349
|
return this.id;
|
|
354
350
|
};
|
|
355
|
-
protoOf(UserInfoData).
|
|
351
|
+
protoOf(UserInfoData).hf = function () {
|
|
356
352
|
return this.name;
|
|
357
353
|
};
|
|
358
|
-
protoOf(UserInfoData).
|
|
354
|
+
protoOf(UserInfoData).h5r = function (id, name) {
|
|
359
355
|
return new UserInfoData(id, name);
|
|
360
356
|
};
|
|
361
357
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
362
358
|
id = id === VOID ? this.id : id;
|
|
363
359
|
name = name === VOID ? this.name : name;
|
|
364
|
-
return this.
|
|
360
|
+
return $super === VOID ? this.h5r(id, name) : $super.h5r.call(this, id, name);
|
|
365
361
|
};
|
|
366
362
|
protoOf(UserInfoData).toString = function () {
|
|
367
363
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -384,19 +380,19 @@
|
|
|
384
380
|
return true;
|
|
385
381
|
};
|
|
386
382
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
383
|
+
this.i5r_1 = cardDecks;
|
|
384
|
+
this.j5r_1 = responseText;
|
|
385
|
+
this.k5r_1 = id;
|
|
386
|
+
this.l5r_1 = signature;
|
|
391
387
|
}
|
|
392
388
|
protoOf(CardDeckResult).toString = function () {
|
|
393
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
389
|
+
return 'CardDeckResult(cardDecks=' + toString(this.i5r_1) + ', responseText=' + this.j5r_1 + ', id=' + this.k5r_1 + ', signature=' + this.l5r_1 + ')';
|
|
394
390
|
};
|
|
395
391
|
protoOf(CardDeckResult).hashCode = function () {
|
|
396
|
-
var result = hashCode(this.
|
|
397
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
398
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
399
|
-
result = imul(result, 31) + (this.
|
|
392
|
+
var result = hashCode(this.i5r_1);
|
|
393
|
+
result = imul(result, 31) + getStringHashCode(this.j5r_1) | 0;
|
|
394
|
+
result = imul(result, 31) + getStringHashCode(this.k5r_1) | 0;
|
|
395
|
+
result = imul(result, 31) + (this.l5r_1 == null ? 0 : getStringHashCode(this.l5r_1)) | 0;
|
|
400
396
|
return result;
|
|
401
397
|
};
|
|
402
398
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -405,13 +401,13 @@
|
|
|
405
401
|
if (!(other instanceof CardDeckResult))
|
|
406
402
|
return false;
|
|
407
403
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
408
|
-
if (!equals(this.
|
|
404
|
+
if (!equals(this.i5r_1, tmp0_other_with_cast.i5r_1))
|
|
409
405
|
return false;
|
|
410
|
-
if (!(this.
|
|
406
|
+
if (!(this.j5r_1 === tmp0_other_with_cast.j5r_1))
|
|
411
407
|
return false;
|
|
412
|
-
if (!(this.
|
|
408
|
+
if (!(this.k5r_1 === tmp0_other_with_cast.k5r_1))
|
|
413
409
|
return false;
|
|
414
|
-
if (!(this.
|
|
410
|
+
if (!(this.l5r_1 == tmp0_other_with_cast.l5r_1))
|
|
415
411
|
return false;
|
|
416
412
|
return true;
|
|
417
413
|
};
|
|
@@ -434,31 +430,31 @@
|
|
|
434
430
|
this.userData = userData;
|
|
435
431
|
this.rounds = rounds;
|
|
436
432
|
}
|
|
437
|
-
protoOf(GameCardDecksRecord).
|
|
433
|
+
protoOf(GameCardDecksRecord).m5r = function () {
|
|
438
434
|
return this.poolId;
|
|
439
435
|
};
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
436
|
+
protoOf(GameCardDecksRecord).n5r = function () {
|
|
441
437
|
return this.signature;
|
|
442
438
|
};
|
|
443
|
-
protoOf(GameCardDecksRecord).
|
|
439
|
+
protoOf(GameCardDecksRecord).o5r = function () {
|
|
444
440
|
return this.userData;
|
|
445
441
|
};
|
|
446
|
-
protoOf(GameCardDecksRecord).
|
|
442
|
+
protoOf(GameCardDecksRecord).p5r = function () {
|
|
447
443
|
return this.rounds;
|
|
448
444
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
445
|
+
protoOf(GameCardDecksRecord).gf = function () {
|
|
450
446
|
return this.poolId;
|
|
451
447
|
};
|
|
452
|
-
protoOf(GameCardDecksRecord).
|
|
448
|
+
protoOf(GameCardDecksRecord).hf = function () {
|
|
453
449
|
return this.signature;
|
|
454
450
|
};
|
|
455
|
-
protoOf(GameCardDecksRecord).
|
|
451
|
+
protoOf(GameCardDecksRecord).gm = function () {
|
|
456
452
|
return this.userData;
|
|
457
453
|
};
|
|
458
|
-
protoOf(GameCardDecksRecord).
|
|
454
|
+
protoOf(GameCardDecksRecord).q5r = function () {
|
|
459
455
|
return this.rounds;
|
|
460
456
|
};
|
|
461
|
-
protoOf(GameCardDecksRecord).
|
|
457
|
+
protoOf(GameCardDecksRecord).r5r = function (poolId, signature, userData, rounds) {
|
|
462
458
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
463
459
|
};
|
|
464
460
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -466,7 +462,7 @@
|
|
|
466
462
|
signature = signature === VOID ? this.signature : signature;
|
|
467
463
|
userData = userData === VOID ? this.userData : userData;
|
|
468
464
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
469
|
-
return this.
|
|
465
|
+
return $super === VOID ? this.r5r(poolId, signature, userData, rounds) : $super.r5r.call(this, poolId, signature, userData, rounds);
|
|
470
466
|
};
|
|
471
467
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
472
468
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -498,25 +494,25 @@
|
|
|
498
494
|
this.cardDeckIndex = cardDeckIndex;
|
|
499
495
|
this.cards = cards;
|
|
500
496
|
}
|
|
501
|
-
protoOf(GameCardDeckData).
|
|
497
|
+
protoOf(GameCardDeckData).s5r = function () {
|
|
502
498
|
return this.cardDeckIndex;
|
|
503
499
|
};
|
|
504
|
-
protoOf(GameCardDeckData).
|
|
500
|
+
protoOf(GameCardDeckData).t5r = function () {
|
|
505
501
|
return this.cards;
|
|
506
502
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
503
|
+
protoOf(GameCardDeckData).gf = function () {
|
|
508
504
|
return this.cardDeckIndex;
|
|
509
505
|
};
|
|
510
|
-
protoOf(GameCardDeckData).
|
|
506
|
+
protoOf(GameCardDeckData).hf = function () {
|
|
511
507
|
return this.cards;
|
|
512
508
|
};
|
|
513
|
-
protoOf(GameCardDeckData).
|
|
509
|
+
protoOf(GameCardDeckData).u5r = function (cardDeckIndex, cards) {
|
|
514
510
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
515
511
|
};
|
|
516
512
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
517
513
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
518
514
|
cards = cards === VOID ? this.cards : cards;
|
|
519
|
-
return this.
|
|
515
|
+
return $super === VOID ? this.u5r(cardDeckIndex, cards) : $super.u5r.call(this, cardDeckIndex, cards);
|
|
520
516
|
};
|
|
521
517
|
protoOf(GameCardDeckData).toString = function () {
|
|
522
518
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -543,25 +539,25 @@
|
|
|
543
539
|
this.baseUrl = baseUrl;
|
|
544
540
|
this.timeoutMillis = timeoutMillis;
|
|
545
541
|
}
|
|
546
|
-
protoOf(HttpConfig).
|
|
542
|
+
protoOf(HttpConfig).v5r = function () {
|
|
547
543
|
return this.baseUrl;
|
|
548
544
|
};
|
|
549
|
-
protoOf(HttpConfig).
|
|
545
|
+
protoOf(HttpConfig).w5r = function () {
|
|
550
546
|
return this.timeoutMillis;
|
|
551
547
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
548
|
+
protoOf(HttpConfig).gf = function () {
|
|
553
549
|
return this.baseUrl;
|
|
554
550
|
};
|
|
555
|
-
protoOf(HttpConfig).
|
|
551
|
+
protoOf(HttpConfig).hf = function () {
|
|
556
552
|
return this.timeoutMillis;
|
|
557
553
|
};
|
|
558
|
-
protoOf(HttpConfig).
|
|
554
|
+
protoOf(HttpConfig).d5r = function (baseUrl, timeoutMillis) {
|
|
559
555
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
560
556
|
};
|
|
561
557
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
562
558
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
563
559
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
564
|
-
return this.
|
|
560
|
+
return $super === VOID ? this.d5r(baseUrl, timeoutMillis) : $super.d5r.call(this, baseUrl, timeoutMillis);
|
|
565
561
|
};
|
|
566
562
|
protoOf(HttpConfig).toString = function () {
|
|
567
563
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -596,31 +592,31 @@
|
|
|
596
592
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
597
593
|
this.httpConfig = httpConfig;
|
|
598
594
|
}
|
|
599
|
-
protoOf(RandomOrgConfig).
|
|
595
|
+
protoOf(RandomOrgConfig).x5r = function () {
|
|
600
596
|
return this.apiKey;
|
|
601
597
|
};
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
598
|
+
protoOf(RandomOrgConfig).y5r = function () {
|
|
603
599
|
return this.poolSize;
|
|
604
600
|
};
|
|
605
|
-
protoOf(RandomOrgConfig).
|
|
601
|
+
protoOf(RandomOrgConfig).z5r = function () {
|
|
606
602
|
return this.thresholdForUsedPool;
|
|
607
603
|
};
|
|
608
|
-
protoOf(RandomOrgConfig).
|
|
604
|
+
protoOf(RandomOrgConfig).a5s = function () {
|
|
609
605
|
return this.httpConfig;
|
|
610
606
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
607
|
+
protoOf(RandomOrgConfig).gf = function () {
|
|
612
608
|
return this.apiKey;
|
|
613
609
|
};
|
|
614
|
-
protoOf(RandomOrgConfig).
|
|
610
|
+
protoOf(RandomOrgConfig).hf = function () {
|
|
615
611
|
return this.poolSize;
|
|
616
612
|
};
|
|
617
|
-
protoOf(RandomOrgConfig).
|
|
613
|
+
protoOf(RandomOrgConfig).gm = function () {
|
|
618
614
|
return this.thresholdForUsedPool;
|
|
619
615
|
};
|
|
620
|
-
protoOf(RandomOrgConfig).
|
|
616
|
+
protoOf(RandomOrgConfig).q5r = function () {
|
|
621
617
|
return this.httpConfig;
|
|
622
618
|
};
|
|
623
|
-
protoOf(RandomOrgConfig).
|
|
619
|
+
protoOf(RandomOrgConfig).b5s = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
624
620
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
625
621
|
};
|
|
626
622
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -628,7 +624,7 @@
|
|
|
628
624
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
629
625
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
630
626
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
631
|
-
return this.
|
|
627
|
+
return $super === VOID ? this.b5s(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.b5s.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
632
628
|
};
|
|
633
629
|
protoOf(RandomOrgConfig).toString = function () {
|
|
634
630
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -665,59 +661,59 @@
|
|
|
665
661
|
function $serializer() {
|
|
666
662
|
$serializer_instance = this;
|
|
667
663
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
668
|
-
tmp0_serialDesc.
|
|
669
|
-
tmp0_serialDesc.
|
|
670
|
-
this.
|
|
671
|
-
}
|
|
672
|
-
protoOf($serializer).
|
|
673
|
-
var tmp0_desc = this.
|
|
674
|
-
var tmp1_output = encoder.
|
|
675
|
-
tmp1_output.
|
|
676
|
-
tmp1_output.
|
|
677
|
-
tmp1_output.
|
|
678
|
-
};
|
|
679
|
-
protoOf($serializer).
|
|
680
|
-
return this.
|
|
681
|
-
};
|
|
682
|
-
protoOf($serializer).
|
|
683
|
-
var tmp0_desc = this.
|
|
664
|
+
tmp0_serialDesc.l4j('jsonrpc', false);
|
|
665
|
+
tmp0_serialDesc.l4j('error', false);
|
|
666
|
+
this.c5s_1 = tmp0_serialDesc;
|
|
667
|
+
}
|
|
668
|
+
protoOf($serializer).d5s = function (encoder, value) {
|
|
669
|
+
var tmp0_desc = this.c5s_1;
|
|
670
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
671
|
+
tmp1_output.j4d(tmp0_desc, 0, value.e5s_1);
|
|
672
|
+
tmp1_output.n4d(tmp0_desc, 1, $serializer_getInstance_0(), value.f5s_1);
|
|
673
|
+
tmp1_output.v4b(tmp0_desc);
|
|
674
|
+
};
|
|
675
|
+
protoOf($serializer).i48 = function (encoder, value) {
|
|
676
|
+
return this.d5s(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
677
|
+
};
|
|
678
|
+
protoOf($serializer).j48 = function (decoder) {
|
|
679
|
+
var tmp0_desc = this.c5s_1;
|
|
684
680
|
var tmp1_flag = true;
|
|
685
681
|
var tmp2_index = 0;
|
|
686
682
|
var tmp3_bitMask0 = 0;
|
|
687
683
|
var tmp4_local0 = null;
|
|
688
684
|
var tmp5_local1 = null;
|
|
689
|
-
var tmp6_input = decoder.
|
|
690
|
-
if (tmp6_input.
|
|
691
|
-
tmp4_local0 = tmp6_input.
|
|
685
|
+
var tmp6_input = decoder.u4b(tmp0_desc);
|
|
686
|
+
if (tmp6_input.k4c()) {
|
|
687
|
+
tmp4_local0 = tmp6_input.e4c(tmp0_desc, 0);
|
|
692
688
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
693
|
-
tmp5_local1 = tmp6_input.
|
|
689
|
+
tmp5_local1 = tmp6_input.i4c(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
694
690
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
695
691
|
} else
|
|
696
692
|
while (tmp1_flag) {
|
|
697
|
-
tmp2_index = tmp6_input.
|
|
693
|
+
tmp2_index = tmp6_input.l4c(tmp0_desc);
|
|
698
694
|
switch (tmp2_index) {
|
|
699
695
|
case -1:
|
|
700
696
|
tmp1_flag = false;
|
|
701
697
|
break;
|
|
702
698
|
case 0:
|
|
703
|
-
tmp4_local0 = tmp6_input.
|
|
699
|
+
tmp4_local0 = tmp6_input.e4c(tmp0_desc, 0);
|
|
704
700
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
705
701
|
break;
|
|
706
702
|
case 1:
|
|
707
|
-
tmp5_local1 = tmp6_input.
|
|
703
|
+
tmp5_local1 = tmp6_input.i4c(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
708
704
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
709
705
|
break;
|
|
710
706
|
default:
|
|
711
707
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
712
708
|
}
|
|
713
709
|
}
|
|
714
|
-
tmp6_input.
|
|
710
|
+
tmp6_input.v4b(tmp0_desc);
|
|
715
711
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
716
712
|
};
|
|
717
|
-
protoOf($serializer).
|
|
718
|
-
return this.
|
|
713
|
+
protoOf($serializer).h48 = function () {
|
|
714
|
+
return this.c5s_1;
|
|
719
715
|
};
|
|
720
|
-
protoOf($serializer).
|
|
716
|
+
protoOf($serializer).a4k = function () {
|
|
721
717
|
// Inline function 'kotlin.arrayOf' call
|
|
722
718
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
723
719
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -731,25 +727,25 @@
|
|
|
731
727
|
}
|
|
732
728
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
733
729
|
if (!(3 === (3 & seen0))) {
|
|
734
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
730
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().c5s_1);
|
|
735
731
|
}
|
|
736
|
-
$this.
|
|
737
|
-
$this.
|
|
732
|
+
$this.e5s_1 = jsonrpc;
|
|
733
|
+
$this.f5s_1 = error;
|
|
738
734
|
return $this;
|
|
739
735
|
}
|
|
740
736
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
741
737
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
742
738
|
}
|
|
743
739
|
function ErrorResponseDto(jsonrpc, error) {
|
|
744
|
-
this.
|
|
745
|
-
this.
|
|
740
|
+
this.e5s_1 = jsonrpc;
|
|
741
|
+
this.f5s_1 = error;
|
|
746
742
|
}
|
|
747
743
|
protoOf(ErrorResponseDto).toString = function () {
|
|
748
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
744
|
+
return 'ErrorResponseDto(jsonrpc=' + this.e5s_1 + ', error=' + toString_0(this.f5s_1) + ')';
|
|
749
745
|
};
|
|
750
746
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
751
|
-
var result = getStringHashCode(this.
|
|
752
|
-
result = imul(result, 31) + (this.
|
|
747
|
+
var result = getStringHashCode(this.e5s_1);
|
|
748
|
+
result = imul(result, 31) + (this.f5s_1 == null ? 0 : this.f5s_1.hashCode()) | 0;
|
|
753
749
|
return result;
|
|
754
750
|
};
|
|
755
751
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -758,68 +754,68 @@
|
|
|
758
754
|
if (!(other instanceof ErrorResponseDto))
|
|
759
755
|
return false;
|
|
760
756
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
761
|
-
if (!(this.
|
|
757
|
+
if (!(this.e5s_1 === tmp0_other_with_cast.e5s_1))
|
|
762
758
|
return false;
|
|
763
|
-
if (!equals(this.
|
|
759
|
+
if (!equals(this.f5s_1, tmp0_other_with_cast.f5s_1))
|
|
764
760
|
return false;
|
|
765
761
|
return true;
|
|
766
762
|
};
|
|
767
763
|
function $serializer_0() {
|
|
768
764
|
$serializer_instance_0 = this;
|
|
769
765
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
770
|
-
tmp0_serialDesc.
|
|
771
|
-
tmp0_serialDesc.
|
|
772
|
-
this.
|
|
773
|
-
}
|
|
774
|
-
protoOf($serializer_0).
|
|
775
|
-
var tmp0_desc = this.
|
|
776
|
-
var tmp1_output = encoder.
|
|
777
|
-
tmp1_output.
|
|
778
|
-
tmp1_output.
|
|
779
|
-
tmp1_output.
|
|
780
|
-
};
|
|
781
|
-
protoOf($serializer_0).
|
|
782
|
-
return this.
|
|
783
|
-
};
|
|
784
|
-
protoOf($serializer_0).
|
|
785
|
-
var tmp0_desc = this.
|
|
766
|
+
tmp0_serialDesc.l4j('code', false);
|
|
767
|
+
tmp0_serialDesc.l4j('message', false);
|
|
768
|
+
this.g5s_1 = tmp0_serialDesc;
|
|
769
|
+
}
|
|
770
|
+
protoOf($serializer_0).h5s = function (encoder, value) {
|
|
771
|
+
var tmp0_desc = this.g5s_1;
|
|
772
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
773
|
+
tmp1_output.n4d(tmp0_desc, 0, IntSerializer_getInstance(), value.i5s_1);
|
|
774
|
+
tmp1_output.n4d(tmp0_desc, 1, StringSerializer_getInstance(), value.j5s_1);
|
|
775
|
+
tmp1_output.v4b(tmp0_desc);
|
|
776
|
+
};
|
|
777
|
+
protoOf($serializer_0).i48 = function (encoder, value) {
|
|
778
|
+
return this.h5s(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
779
|
+
};
|
|
780
|
+
protoOf($serializer_0).j48 = function (decoder) {
|
|
781
|
+
var tmp0_desc = this.g5s_1;
|
|
786
782
|
var tmp1_flag = true;
|
|
787
783
|
var tmp2_index = 0;
|
|
788
784
|
var tmp3_bitMask0 = 0;
|
|
789
785
|
var tmp4_local0 = null;
|
|
790
786
|
var tmp5_local1 = null;
|
|
791
|
-
var tmp6_input = decoder.
|
|
792
|
-
if (tmp6_input.
|
|
793
|
-
tmp4_local0 = tmp6_input.
|
|
787
|
+
var tmp6_input = decoder.u4b(tmp0_desc);
|
|
788
|
+
if (tmp6_input.k4c()) {
|
|
789
|
+
tmp4_local0 = tmp6_input.i4c(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
794
790
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
795
|
-
tmp5_local1 = tmp6_input.
|
|
791
|
+
tmp5_local1 = tmp6_input.i4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
796
792
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
797
793
|
} else
|
|
798
794
|
while (tmp1_flag) {
|
|
799
|
-
tmp2_index = tmp6_input.
|
|
795
|
+
tmp2_index = tmp6_input.l4c(tmp0_desc);
|
|
800
796
|
switch (tmp2_index) {
|
|
801
797
|
case -1:
|
|
802
798
|
tmp1_flag = false;
|
|
803
799
|
break;
|
|
804
800
|
case 0:
|
|
805
|
-
tmp4_local0 = tmp6_input.
|
|
801
|
+
tmp4_local0 = tmp6_input.i4c(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
806
802
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
807
803
|
break;
|
|
808
804
|
case 1:
|
|
809
|
-
tmp5_local1 = tmp6_input.
|
|
805
|
+
tmp5_local1 = tmp6_input.i4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
810
806
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
811
807
|
break;
|
|
812
808
|
default:
|
|
813
809
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
814
810
|
}
|
|
815
811
|
}
|
|
816
|
-
tmp6_input.
|
|
812
|
+
tmp6_input.v4b(tmp0_desc);
|
|
817
813
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
818
814
|
};
|
|
819
|
-
protoOf($serializer_0).
|
|
820
|
-
return this.
|
|
815
|
+
protoOf($serializer_0).h48 = function () {
|
|
816
|
+
return this.g5s_1;
|
|
821
817
|
};
|
|
822
|
-
protoOf($serializer_0).
|
|
818
|
+
protoOf($serializer_0).a4k = function () {
|
|
823
819
|
// Inline function 'kotlin.arrayOf' call
|
|
824
820
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
825
821
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -833,10 +829,10 @@
|
|
|
833
829
|
}
|
|
834
830
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
835
831
|
if (!(3 === (3 & seen0))) {
|
|
836
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
832
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().g5s_1);
|
|
837
833
|
}
|
|
838
|
-
$this.
|
|
839
|
-
$this.
|
|
834
|
+
$this.i5s_1 = code;
|
|
835
|
+
$this.j5s_1 = message;
|
|
840
836
|
return $this;
|
|
841
837
|
}
|
|
842
838
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -845,11 +841,11 @@
|
|
|
845
841
|
function ErrorDto() {
|
|
846
842
|
}
|
|
847
843
|
protoOf(ErrorDto).toString = function () {
|
|
848
|
-
return 'ErrorDto(code=' + this.
|
|
844
|
+
return 'ErrorDto(code=' + this.i5s_1 + ', message=' + this.j5s_1 + ')';
|
|
849
845
|
};
|
|
850
846
|
protoOf(ErrorDto).hashCode = function () {
|
|
851
|
-
var result = this.
|
|
852
|
-
result = imul(result, 31) + (this.
|
|
847
|
+
var result = this.i5s_1 == null ? 0 : this.i5s_1;
|
|
848
|
+
result = imul(result, 31) + (this.j5s_1 == null ? 0 : getStringHashCode(this.j5s_1)) | 0;
|
|
853
849
|
return result;
|
|
854
850
|
};
|
|
855
851
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -858,15 +854,15 @@
|
|
|
858
854
|
if (!(other instanceof ErrorDto))
|
|
859
855
|
return false;
|
|
860
856
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
861
|
-
if (!(this.
|
|
857
|
+
if (!(this.i5s_1 == tmp0_other_with_cast.i5s_1))
|
|
862
858
|
return false;
|
|
863
|
-
if (!(this.
|
|
859
|
+
if (!(this.j5s_1 == tmp0_other_with_cast.j5s_1))
|
|
864
860
|
return false;
|
|
865
861
|
return true;
|
|
866
862
|
};
|
|
867
863
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
868
864
|
$serializer_1.call($this);
|
|
869
|
-
$this.
|
|
865
|
+
$this.l5s_1 = typeSerial0;
|
|
870
866
|
return $this;
|
|
871
867
|
}
|
|
872
868
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -875,17 +871,17 @@
|
|
|
875
871
|
function Companion_2() {
|
|
876
872
|
Companion_instance_4 = this;
|
|
877
873
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
878
|
-
tmp0_serialDesc.
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
this.
|
|
874
|
+
tmp0_serialDesc.l4j('jsonrpc', false);
|
|
875
|
+
tmp0_serialDesc.l4j('method', false);
|
|
876
|
+
tmp0_serialDesc.l4j('params', false);
|
|
877
|
+
tmp0_serialDesc.l4j('id', false);
|
|
878
|
+
this.m5s_1 = tmp0_serialDesc;
|
|
883
879
|
}
|
|
884
|
-
protoOf(Companion_2).
|
|
880
|
+
protoOf(Companion_2).n5s = function (typeSerial0) {
|
|
885
881
|
return $serializer_init_$Create$(typeSerial0);
|
|
886
882
|
};
|
|
887
|
-
protoOf(Companion_2).
|
|
888
|
-
return this.
|
|
883
|
+
protoOf(Companion_2).l4k = function (typeParamsSerializers) {
|
|
884
|
+
return this.n5s(typeParamsSerializers[0]);
|
|
889
885
|
};
|
|
890
886
|
var Companion_instance_4;
|
|
891
887
|
function Companion_getInstance_5() {
|
|
@@ -895,26 +891,26 @@
|
|
|
895
891
|
}
|
|
896
892
|
function $serializer_1() {
|
|
897
893
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
898
|
-
tmp0_serialDesc.
|
|
899
|
-
tmp0_serialDesc.
|
|
900
|
-
tmp0_serialDesc.
|
|
901
|
-
tmp0_serialDesc.
|
|
902
|
-
this.
|
|
903
|
-
}
|
|
904
|
-
protoOf($serializer_1).
|
|
905
|
-
var tmp0_desc = this.
|
|
906
|
-
var tmp1_output = encoder.
|
|
907
|
-
tmp1_output.
|
|
908
|
-
tmp1_output.
|
|
909
|
-
tmp1_output.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
tmp1_output.
|
|
912
|
-
};
|
|
913
|
-
protoOf($serializer_1).
|
|
914
|
-
return this.
|
|
915
|
-
};
|
|
916
|
-
protoOf($serializer_1).
|
|
917
|
-
var tmp0_desc = this.
|
|
894
|
+
tmp0_serialDesc.l4j('jsonrpc', false);
|
|
895
|
+
tmp0_serialDesc.l4j('method', false);
|
|
896
|
+
tmp0_serialDesc.l4j('params', false);
|
|
897
|
+
tmp0_serialDesc.l4j('id', false);
|
|
898
|
+
this.k5s_1 = tmp0_serialDesc;
|
|
899
|
+
}
|
|
900
|
+
protoOf($serializer_1).o5s = function (encoder, value) {
|
|
901
|
+
var tmp0_desc = this.k5s_1;
|
|
902
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
903
|
+
tmp1_output.j4d(tmp0_desc, 0, value.p5s_1);
|
|
904
|
+
tmp1_output.j4d(tmp0_desc, 1, value.q5s_1);
|
|
905
|
+
tmp1_output.l4d(tmp0_desc, 2, this.l5s_1, value.r5s_1);
|
|
906
|
+
tmp1_output.j4d(tmp0_desc, 3, value.s5s_1);
|
|
907
|
+
tmp1_output.v4b(tmp0_desc);
|
|
908
|
+
};
|
|
909
|
+
protoOf($serializer_1).i48 = function (encoder, value) {
|
|
910
|
+
return this.o5s(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
911
|
+
};
|
|
912
|
+
protoOf($serializer_1).j48 = function (decoder) {
|
|
913
|
+
var tmp0_desc = this.k5s_1;
|
|
918
914
|
var tmp1_flag = true;
|
|
919
915
|
var tmp2_index = 0;
|
|
920
916
|
var tmp3_bitMask0 = 0;
|
|
@@ -922,69 +918,69 @@
|
|
|
922
918
|
var tmp5_local1 = null;
|
|
923
919
|
var tmp6_local2 = null;
|
|
924
920
|
var tmp7_local3 = null;
|
|
925
|
-
var tmp8_input = decoder.
|
|
926
|
-
if (tmp8_input.
|
|
927
|
-
tmp4_local0 = tmp8_input.
|
|
921
|
+
var tmp8_input = decoder.u4b(tmp0_desc);
|
|
922
|
+
if (tmp8_input.k4c()) {
|
|
923
|
+
tmp4_local0 = tmp8_input.e4c(tmp0_desc, 0);
|
|
928
924
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
929
|
-
tmp5_local1 = tmp8_input.
|
|
925
|
+
tmp5_local1 = tmp8_input.e4c(tmp0_desc, 1);
|
|
930
926
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
931
|
-
tmp6_local2 = tmp8_input.
|
|
927
|
+
tmp6_local2 = tmp8_input.g4c(tmp0_desc, 2, this.l5s_1, tmp6_local2);
|
|
932
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
933
|
-
tmp7_local3 = tmp8_input.
|
|
929
|
+
tmp7_local3 = tmp8_input.e4c(tmp0_desc, 3);
|
|
934
930
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
935
931
|
} else
|
|
936
932
|
while (tmp1_flag) {
|
|
937
|
-
tmp2_index = tmp8_input.
|
|
933
|
+
tmp2_index = tmp8_input.l4c(tmp0_desc);
|
|
938
934
|
switch (tmp2_index) {
|
|
939
935
|
case -1:
|
|
940
936
|
tmp1_flag = false;
|
|
941
937
|
break;
|
|
942
938
|
case 0:
|
|
943
|
-
tmp4_local0 = tmp8_input.
|
|
939
|
+
tmp4_local0 = tmp8_input.e4c(tmp0_desc, 0);
|
|
944
940
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
945
941
|
break;
|
|
946
942
|
case 1:
|
|
947
|
-
tmp5_local1 = tmp8_input.
|
|
943
|
+
tmp5_local1 = tmp8_input.e4c(tmp0_desc, 1);
|
|
948
944
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
949
945
|
break;
|
|
950
946
|
case 2:
|
|
951
|
-
tmp6_local2 = tmp8_input.
|
|
947
|
+
tmp6_local2 = tmp8_input.g4c(tmp0_desc, 2, this.l5s_1, tmp6_local2);
|
|
952
948
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
953
949
|
break;
|
|
954
950
|
case 3:
|
|
955
|
-
tmp7_local3 = tmp8_input.
|
|
951
|
+
tmp7_local3 = tmp8_input.e4c(tmp0_desc, 3);
|
|
956
952
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
957
953
|
break;
|
|
958
954
|
default:
|
|
959
955
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
960
956
|
}
|
|
961
957
|
}
|
|
962
|
-
tmp8_input.
|
|
958
|
+
tmp8_input.v4b(tmp0_desc);
|
|
963
959
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
964
960
|
};
|
|
965
|
-
protoOf($serializer_1).
|
|
966
|
-
return this.
|
|
961
|
+
protoOf($serializer_1).h48 = function () {
|
|
962
|
+
return this.k5s_1;
|
|
967
963
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
964
|
+
protoOf($serializer_1).a4k = function () {
|
|
969
965
|
// Inline function 'kotlin.arrayOf' call
|
|
970
966
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
967
|
// Inline function 'kotlin.js.asDynamic' call
|
|
972
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
968
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.l5s_1, StringSerializer_getInstance()];
|
|
973
969
|
};
|
|
974
|
-
protoOf($serializer_1).
|
|
970
|
+
protoOf($serializer_1).b4k = function () {
|
|
975
971
|
// Inline function 'kotlin.arrayOf' call
|
|
976
972
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
977
973
|
// Inline function 'kotlin.js.asDynamic' call
|
|
978
|
-
return [this.
|
|
974
|
+
return [this.l5s_1];
|
|
979
975
|
};
|
|
980
976
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
981
977
|
if (!(15 === (15 & seen0))) {
|
|
982
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
978
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().m5s_1);
|
|
983
979
|
}
|
|
984
|
-
$this.
|
|
985
|
-
$this.
|
|
986
|
-
$this.
|
|
987
|
-
$this.
|
|
980
|
+
$this.p5s_1 = jsonrpc;
|
|
981
|
+
$this.q5s_1 = method;
|
|
982
|
+
$this.r5s_1 = params;
|
|
983
|
+
$this.s5s_1 = id;
|
|
988
984
|
return $this;
|
|
989
985
|
}
|
|
990
986
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -992,19 +988,19 @@
|
|
|
992
988
|
}
|
|
993
989
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
994
990
|
Companion_getInstance_5();
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
991
|
+
this.p5s_1 = jsonrpc;
|
|
992
|
+
this.q5s_1 = method;
|
|
993
|
+
this.r5s_1 = params;
|
|
994
|
+
this.s5s_1 = id;
|
|
999
995
|
}
|
|
1000
996
|
protoOf(RandomRequestDto).toString = function () {
|
|
1001
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
997
|
+
return 'RandomRequestDto(jsonrpc=' + this.p5s_1 + ', method=' + this.q5s_1 + ', params=' + toString(this.r5s_1) + ', id=' + this.s5s_1 + ')';
|
|
1002
998
|
};
|
|
1003
999
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1004
|
-
var result = getStringHashCode(this.
|
|
1005
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1006
|
-
result = imul(result, 31) + hashCode(this.
|
|
1007
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1000
|
+
var result = getStringHashCode(this.p5s_1);
|
|
1001
|
+
result = imul(result, 31) + getStringHashCode(this.q5s_1) | 0;
|
|
1002
|
+
result = imul(result, 31) + hashCode(this.r5s_1) | 0;
|
|
1003
|
+
result = imul(result, 31) + getStringHashCode(this.s5s_1) | 0;
|
|
1008
1004
|
return result;
|
|
1009
1005
|
};
|
|
1010
1006
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1013,13 +1009,13 @@
|
|
|
1013
1009
|
if (!(other instanceof RandomRequestDto))
|
|
1014
1010
|
return false;
|
|
1015
1011
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1016
|
-
if (!(this.
|
|
1012
|
+
if (!(this.p5s_1 === tmp0_other_with_cast.p5s_1))
|
|
1017
1013
|
return false;
|
|
1018
|
-
if (!(this.
|
|
1014
|
+
if (!(this.q5s_1 === tmp0_other_with_cast.q5s_1))
|
|
1019
1015
|
return false;
|
|
1020
|
-
if (!equals(this.
|
|
1016
|
+
if (!equals(this.r5s_1, tmp0_other_with_cast.r5s_1))
|
|
1021
1017
|
return false;
|
|
1022
|
-
if (!(this.
|
|
1018
|
+
if (!(this.s5s_1 === tmp0_other_with_cast.s5s_1))
|
|
1023
1019
|
return false;
|
|
1024
1020
|
return true;
|
|
1025
1021
|
};
|
|
@@ -1029,7 +1025,7 @@
|
|
|
1029
1025
|
// Inline function 'kotlin.arrayOf' call
|
|
1030
1026
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1031
1027
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1032
|
-
tmp.
|
|
1028
|
+
tmp.t5s_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1033
1029
|
}
|
|
1034
1030
|
var Companion_instance_5;
|
|
1035
1031
|
function Companion_getInstance_6() {
|
|
@@ -1040,35 +1036,35 @@
|
|
|
1040
1036
|
function $serializer_2() {
|
|
1041
1037
|
$serializer_instance_1 = this;
|
|
1042
1038
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
tmp0_serialDesc.
|
|
1046
|
-
tmp0_serialDesc.
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
tmp0_serialDesc.
|
|
1050
|
-
tmp0_serialDesc.
|
|
1051
|
-
this.
|
|
1052
|
-
}
|
|
1053
|
-
protoOf($serializer_2).
|
|
1054
|
-
var tmp0_desc = this.
|
|
1055
|
-
var tmp1_output = encoder.
|
|
1056
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
tmp1_output.
|
|
1061
|
-
tmp1_output.
|
|
1062
|
-
tmp1_output.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
};
|
|
1067
|
-
protoOf($serializer_2).
|
|
1068
|
-
return this.
|
|
1069
|
-
};
|
|
1070
|
-
protoOf($serializer_2).
|
|
1071
|
-
var tmp0_desc = this.
|
|
1039
|
+
tmp0_serialDesc.l4j('apiKey', false);
|
|
1040
|
+
tmp0_serialDesc.l4j('n', false);
|
|
1041
|
+
tmp0_serialDesc.l4j('length', false);
|
|
1042
|
+
tmp0_serialDesc.l4j('min', false);
|
|
1043
|
+
tmp0_serialDesc.l4j('max', false);
|
|
1044
|
+
tmp0_serialDesc.l4j('replacement', false);
|
|
1045
|
+
tmp0_serialDesc.l4j('ticketId', false);
|
|
1046
|
+
tmp0_serialDesc.l4j('userData', false);
|
|
1047
|
+
this.u5s_1 = tmp0_serialDesc;
|
|
1048
|
+
}
|
|
1049
|
+
protoOf($serializer_2).v5s = function (encoder, value) {
|
|
1050
|
+
var tmp0_desc = this.u5s_1;
|
|
1051
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
1052
|
+
var tmp2_cached = Companion_getInstance_6().t5s_1;
|
|
1053
|
+
tmp1_output.j4d(tmp0_desc, 0, value.w5s_1);
|
|
1054
|
+
tmp1_output.e4d(tmp0_desc, 1, value.x5s_1);
|
|
1055
|
+
tmp1_output.l4d(tmp0_desc, 2, tmp2_cached[2], value.y5s_1);
|
|
1056
|
+
tmp1_output.e4d(tmp0_desc, 3, value.z5s_1);
|
|
1057
|
+
tmp1_output.e4d(tmp0_desc, 4, value.a5t_1);
|
|
1058
|
+
tmp1_output.b4d(tmp0_desc, 5, value.b5t_1);
|
|
1059
|
+
tmp1_output.n4d(tmp0_desc, 6, StringSerializer_getInstance(), value.c5t_1);
|
|
1060
|
+
tmp1_output.n4d(tmp0_desc, 7, $serializer_getInstance_2(), value.d5t_1);
|
|
1061
|
+
tmp1_output.v4b(tmp0_desc);
|
|
1062
|
+
};
|
|
1063
|
+
protoOf($serializer_2).i48 = function (encoder, value) {
|
|
1064
|
+
return this.v5s(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1065
|
+
};
|
|
1066
|
+
protoOf($serializer_2).j48 = function (decoder) {
|
|
1067
|
+
var tmp0_desc = this.u5s_1;
|
|
1072
1068
|
var tmp1_flag = true;
|
|
1073
1069
|
var tmp2_index = 0;
|
|
1074
1070
|
var tmp3_bitMask0 = 0;
|
|
@@ -1080,76 +1076,76 @@
|
|
|
1080
1076
|
var tmp9_local5 = false;
|
|
1081
1077
|
var tmp10_local6 = null;
|
|
1082
1078
|
var tmp11_local7 = null;
|
|
1083
|
-
var tmp12_input = decoder.
|
|
1084
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1085
|
-
if (tmp12_input.
|
|
1086
|
-
tmp4_local0 = tmp12_input.
|
|
1079
|
+
var tmp12_input = decoder.u4b(tmp0_desc);
|
|
1080
|
+
var tmp13_cached = Companion_getInstance_6().t5s_1;
|
|
1081
|
+
if (tmp12_input.k4c()) {
|
|
1082
|
+
tmp4_local0 = tmp12_input.e4c(tmp0_desc, 0);
|
|
1087
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1088
|
-
tmp5_local1 = tmp12_input.
|
|
1084
|
+
tmp5_local1 = tmp12_input.z4b(tmp0_desc, 1);
|
|
1089
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1090
|
-
tmp6_local2 = tmp12_input.
|
|
1086
|
+
tmp6_local2 = tmp12_input.g4c(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1091
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1092
|
-
tmp7_local3 = tmp12_input.
|
|
1088
|
+
tmp7_local3 = tmp12_input.z4b(tmp0_desc, 3);
|
|
1093
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1094
|
-
tmp8_local4 = tmp12_input.
|
|
1090
|
+
tmp8_local4 = tmp12_input.z4b(tmp0_desc, 4);
|
|
1095
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1096
|
-
tmp9_local5 = tmp12_input.
|
|
1092
|
+
tmp9_local5 = tmp12_input.w4b(tmp0_desc, 5);
|
|
1097
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1098
|
-
tmp10_local6 = tmp12_input.
|
|
1094
|
+
tmp10_local6 = tmp12_input.i4c(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1099
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1100
|
-
tmp11_local7 = tmp12_input.
|
|
1096
|
+
tmp11_local7 = tmp12_input.i4c(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1101
1097
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1102
1098
|
} else
|
|
1103
1099
|
while (tmp1_flag) {
|
|
1104
|
-
tmp2_index = tmp12_input.
|
|
1100
|
+
tmp2_index = tmp12_input.l4c(tmp0_desc);
|
|
1105
1101
|
switch (tmp2_index) {
|
|
1106
1102
|
case -1:
|
|
1107
1103
|
tmp1_flag = false;
|
|
1108
1104
|
break;
|
|
1109
1105
|
case 0:
|
|
1110
|
-
tmp4_local0 = tmp12_input.
|
|
1106
|
+
tmp4_local0 = tmp12_input.e4c(tmp0_desc, 0);
|
|
1111
1107
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1112
1108
|
break;
|
|
1113
1109
|
case 1:
|
|
1114
|
-
tmp5_local1 = tmp12_input.
|
|
1110
|
+
tmp5_local1 = tmp12_input.z4b(tmp0_desc, 1);
|
|
1115
1111
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1116
1112
|
break;
|
|
1117
1113
|
case 2:
|
|
1118
|
-
tmp6_local2 = tmp12_input.
|
|
1114
|
+
tmp6_local2 = tmp12_input.g4c(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1119
1115
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1120
1116
|
break;
|
|
1121
1117
|
case 3:
|
|
1122
|
-
tmp7_local3 = tmp12_input.
|
|
1118
|
+
tmp7_local3 = tmp12_input.z4b(tmp0_desc, 3);
|
|
1123
1119
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1124
1120
|
break;
|
|
1125
1121
|
case 4:
|
|
1126
|
-
tmp8_local4 = tmp12_input.
|
|
1122
|
+
tmp8_local4 = tmp12_input.z4b(tmp0_desc, 4);
|
|
1127
1123
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1128
1124
|
break;
|
|
1129
1125
|
case 5:
|
|
1130
|
-
tmp9_local5 = tmp12_input.
|
|
1126
|
+
tmp9_local5 = tmp12_input.w4b(tmp0_desc, 5);
|
|
1131
1127
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1132
1128
|
break;
|
|
1133
1129
|
case 6:
|
|
1134
|
-
tmp10_local6 = tmp12_input.
|
|
1130
|
+
tmp10_local6 = tmp12_input.i4c(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1135
1131
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1136
1132
|
break;
|
|
1137
1133
|
case 7:
|
|
1138
|
-
tmp11_local7 = tmp12_input.
|
|
1134
|
+
tmp11_local7 = tmp12_input.i4c(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1139
1135
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1140
1136
|
break;
|
|
1141
1137
|
default:
|
|
1142
1138
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1143
1139
|
}
|
|
1144
1140
|
}
|
|
1145
|
-
tmp12_input.
|
|
1141
|
+
tmp12_input.v4b(tmp0_desc);
|
|
1146
1142
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1147
1143
|
};
|
|
1148
|
-
protoOf($serializer_2).
|
|
1149
|
-
return this.
|
|
1144
|
+
protoOf($serializer_2).h48 = function () {
|
|
1145
|
+
return this.u5s_1;
|
|
1150
1146
|
};
|
|
1151
|
-
protoOf($serializer_2).
|
|
1152
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1147
|
+
protoOf($serializer_2).a4k = function () {
|
|
1148
|
+
var tmp0_cached = Companion_getInstance_6().t5s_1;
|
|
1153
1149
|
// Inline function 'kotlin.arrayOf' call
|
|
1154
1150
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1155
1151
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1163,16 +1159,16 @@
|
|
|
1163
1159
|
}
|
|
1164
1160
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1165
1161
|
if (!(255 === (255 & seen0))) {
|
|
1166
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1162
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().u5s_1);
|
|
1167
1163
|
}
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1170
|
-
$this.
|
|
1171
|
-
$this.
|
|
1172
|
-
$this.
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1175
|
-
$this.
|
|
1164
|
+
$this.w5s_1 = apiKey;
|
|
1165
|
+
$this.x5s_1 = n;
|
|
1166
|
+
$this.y5s_1 = length;
|
|
1167
|
+
$this.z5s_1 = min;
|
|
1168
|
+
$this.a5t_1 = max;
|
|
1169
|
+
$this.b5t_1 = replacement;
|
|
1170
|
+
$this.c5t_1 = ticketId;
|
|
1171
|
+
$this.d5t_1 = userData;
|
|
1176
1172
|
return $this;
|
|
1177
1173
|
}
|
|
1178
1174
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1180,27 +1176,27 @@
|
|
|
1180
1176
|
}
|
|
1181
1177
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1182
1178
|
Companion_getInstance_6();
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1179
|
+
this.w5s_1 = apiKey;
|
|
1180
|
+
this.x5s_1 = n;
|
|
1181
|
+
this.y5s_1 = length;
|
|
1182
|
+
this.z5s_1 = min;
|
|
1183
|
+
this.a5t_1 = max;
|
|
1184
|
+
this.b5t_1 = replacement;
|
|
1185
|
+
this.c5t_1 = ticketId;
|
|
1186
|
+
this.d5t_1 = userData;
|
|
1191
1187
|
}
|
|
1192
1188
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1193
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1189
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.w5s_1 + ', n=' + this.x5s_1 + ', length=' + toString(this.y5s_1) + ', min=' + this.z5s_1 + ', max=' + this.a5t_1 + ', replacement=' + this.b5t_1 + ', ticketId=' + this.c5t_1 + ', userData=' + toString_0(this.d5t_1) + ')';
|
|
1194
1190
|
};
|
|
1195
1191
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1196
|
-
var result = getStringHashCode(this.
|
|
1197
|
-
result = imul(result, 31) + this.
|
|
1198
|
-
result = imul(result, 31) + hashCode(this.
|
|
1199
|
-
result = imul(result, 31) + this.
|
|
1200
|
-
result = imul(result, 31) + this.
|
|
1201
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1202
|
-
result = imul(result, 31) + (this.
|
|
1203
|
-
result = imul(result, 31) + (this.
|
|
1192
|
+
var result = getStringHashCode(this.w5s_1);
|
|
1193
|
+
result = imul(result, 31) + this.x5s_1 | 0;
|
|
1194
|
+
result = imul(result, 31) + hashCode(this.y5s_1) | 0;
|
|
1195
|
+
result = imul(result, 31) + this.z5s_1 | 0;
|
|
1196
|
+
result = imul(result, 31) + this.a5t_1 | 0;
|
|
1197
|
+
result = imul(result, 31) + getBooleanHashCode(this.b5t_1) | 0;
|
|
1198
|
+
result = imul(result, 31) + (this.c5t_1 == null ? 0 : getStringHashCode(this.c5t_1)) | 0;
|
|
1199
|
+
result = imul(result, 31) + (this.d5t_1 == null ? 0 : this.d5t_1.hashCode()) | 0;
|
|
1204
1200
|
return result;
|
|
1205
1201
|
};
|
|
1206
1202
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1209,21 +1205,21 @@
|
|
|
1209
1205
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1210
1206
|
return false;
|
|
1211
1207
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1212
|
-
if (!(this.
|
|
1208
|
+
if (!(this.w5s_1 === tmp0_other_with_cast.w5s_1))
|
|
1213
1209
|
return false;
|
|
1214
|
-
if (!(this.
|
|
1210
|
+
if (!(this.x5s_1 === tmp0_other_with_cast.x5s_1))
|
|
1215
1211
|
return false;
|
|
1216
|
-
if (!equals(this.
|
|
1212
|
+
if (!equals(this.y5s_1, tmp0_other_with_cast.y5s_1))
|
|
1217
1213
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1214
|
+
if (!(this.z5s_1 === tmp0_other_with_cast.z5s_1))
|
|
1219
1215
|
return false;
|
|
1220
|
-
if (!(this.
|
|
1216
|
+
if (!(this.a5t_1 === tmp0_other_with_cast.a5t_1))
|
|
1221
1217
|
return false;
|
|
1222
|
-
if (!(this.
|
|
1218
|
+
if (!(this.b5t_1 === tmp0_other_with_cast.b5t_1))
|
|
1223
1219
|
return false;
|
|
1224
|
-
if (!(this.
|
|
1220
|
+
if (!(this.c5t_1 == tmp0_other_with_cast.c5t_1))
|
|
1225
1221
|
return false;
|
|
1226
|
-
if (!equals(this.
|
|
1222
|
+
if (!equals(this.d5t_1, tmp0_other_with_cast.d5t_1))
|
|
1227
1223
|
return false;
|
|
1228
1224
|
return true;
|
|
1229
1225
|
};
|
|
@@ -1236,59 +1232,59 @@
|
|
|
1236
1232
|
function $serializer_3() {
|
|
1237
1233
|
$serializer_instance_2 = this;
|
|
1238
1234
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1239
|
-
tmp0_serialDesc.
|
|
1240
|
-
tmp0_serialDesc.
|
|
1241
|
-
this.
|
|
1242
|
-
}
|
|
1243
|
-
protoOf($serializer_3).
|
|
1244
|
-
var tmp0_desc = this.
|
|
1245
|
-
var tmp1_output = encoder.
|
|
1246
|
-
tmp1_output.
|
|
1247
|
-
tmp1_output.
|
|
1248
|
-
tmp1_output.
|
|
1249
|
-
};
|
|
1250
|
-
protoOf($serializer_3).
|
|
1251
|
-
return this.
|
|
1252
|
-
};
|
|
1253
|
-
protoOf($serializer_3).
|
|
1254
|
-
var tmp0_desc = this.
|
|
1235
|
+
tmp0_serialDesc.l4j('id', false);
|
|
1236
|
+
tmp0_serialDesc.l4j('count', false);
|
|
1237
|
+
this.e5t_1 = tmp0_serialDesc;
|
|
1238
|
+
}
|
|
1239
|
+
protoOf($serializer_3).f5t = function (encoder, value) {
|
|
1240
|
+
var tmp0_desc = this.e5t_1;
|
|
1241
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
1242
|
+
tmp1_output.j4d(tmp0_desc, 0, value.g5t_1);
|
|
1243
|
+
tmp1_output.e4d(tmp0_desc, 1, value.h5t_1);
|
|
1244
|
+
tmp1_output.v4b(tmp0_desc);
|
|
1245
|
+
};
|
|
1246
|
+
protoOf($serializer_3).i48 = function (encoder, value) {
|
|
1247
|
+
return this.f5t(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1248
|
+
};
|
|
1249
|
+
protoOf($serializer_3).j48 = function (decoder) {
|
|
1250
|
+
var tmp0_desc = this.e5t_1;
|
|
1255
1251
|
var tmp1_flag = true;
|
|
1256
1252
|
var tmp2_index = 0;
|
|
1257
1253
|
var tmp3_bitMask0 = 0;
|
|
1258
1254
|
var tmp4_local0 = null;
|
|
1259
1255
|
var tmp5_local1 = 0;
|
|
1260
|
-
var tmp6_input = decoder.
|
|
1261
|
-
if (tmp6_input.
|
|
1262
|
-
tmp4_local0 = tmp6_input.
|
|
1256
|
+
var tmp6_input = decoder.u4b(tmp0_desc);
|
|
1257
|
+
if (tmp6_input.k4c()) {
|
|
1258
|
+
tmp4_local0 = tmp6_input.e4c(tmp0_desc, 0);
|
|
1263
1259
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1264
|
-
tmp5_local1 = tmp6_input.
|
|
1260
|
+
tmp5_local1 = tmp6_input.z4b(tmp0_desc, 1);
|
|
1265
1261
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1266
1262
|
} else
|
|
1267
1263
|
while (tmp1_flag) {
|
|
1268
|
-
tmp2_index = tmp6_input.
|
|
1264
|
+
tmp2_index = tmp6_input.l4c(tmp0_desc);
|
|
1269
1265
|
switch (tmp2_index) {
|
|
1270
1266
|
case -1:
|
|
1271
1267
|
tmp1_flag = false;
|
|
1272
1268
|
break;
|
|
1273
1269
|
case 0:
|
|
1274
|
-
tmp4_local0 = tmp6_input.
|
|
1270
|
+
tmp4_local0 = tmp6_input.e4c(tmp0_desc, 0);
|
|
1275
1271
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1276
1272
|
break;
|
|
1277
1273
|
case 1:
|
|
1278
|
-
tmp5_local1 = tmp6_input.
|
|
1274
|
+
tmp5_local1 = tmp6_input.z4b(tmp0_desc, 1);
|
|
1279
1275
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1280
1276
|
break;
|
|
1281
1277
|
default:
|
|
1282
1278
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1283
1279
|
}
|
|
1284
1280
|
}
|
|
1285
|
-
tmp6_input.
|
|
1281
|
+
tmp6_input.v4b(tmp0_desc);
|
|
1286
1282
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1287
1283
|
};
|
|
1288
|
-
protoOf($serializer_3).
|
|
1289
|
-
return this.
|
|
1284
|
+
protoOf($serializer_3).h48 = function () {
|
|
1285
|
+
return this.e5t_1;
|
|
1290
1286
|
};
|
|
1291
|
-
protoOf($serializer_3).
|
|
1287
|
+
protoOf($serializer_3).a4k = function () {
|
|
1292
1288
|
// Inline function 'kotlin.arrayOf' call
|
|
1293
1289
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1294
1290
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1302,25 +1298,25 @@
|
|
|
1302
1298
|
}
|
|
1303
1299
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1304
1300
|
if (!(3 === (3 & seen0))) {
|
|
1305
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1301
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().e5t_1);
|
|
1306
1302
|
}
|
|
1307
|
-
$this.
|
|
1308
|
-
$this.
|
|
1303
|
+
$this.g5t_1 = id;
|
|
1304
|
+
$this.h5t_1 = count;
|
|
1309
1305
|
return $this;
|
|
1310
1306
|
}
|
|
1311
1307
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1312
1308
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1313
1309
|
}
|
|
1314
1310
|
function CardDecksUserDataDto(id, count) {
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1311
|
+
this.g5t_1 = id;
|
|
1312
|
+
this.h5t_1 = count;
|
|
1317
1313
|
}
|
|
1318
1314
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1319
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1315
|
+
return 'CardDecksUserDataDto(id=' + this.g5t_1 + ', count=' + this.h5t_1 + ')';
|
|
1320
1316
|
};
|
|
1321
1317
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1322
|
-
var result = getStringHashCode(this.
|
|
1323
|
-
result = imul(result, 31) + this.
|
|
1318
|
+
var result = getStringHashCode(this.g5t_1);
|
|
1319
|
+
result = imul(result, 31) + this.h5t_1 | 0;
|
|
1324
1320
|
return result;
|
|
1325
1321
|
};
|
|
1326
1322
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1329,15 +1325,15 @@
|
|
|
1329
1325
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1330
1326
|
return false;
|
|
1331
1327
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1332
|
-
if (!(this.
|
|
1328
|
+
if (!(this.g5t_1 === tmp0_other_with_cast.g5t_1))
|
|
1333
1329
|
return false;
|
|
1334
|
-
if (!(this.
|
|
1330
|
+
if (!(this.h5t_1 === tmp0_other_with_cast.h5t_1))
|
|
1335
1331
|
return false;
|
|
1336
1332
|
return true;
|
|
1337
1333
|
};
|
|
1338
1334
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1339
1335
|
$serializer_4.call($this);
|
|
1340
|
-
$this.
|
|
1336
|
+
$this.j5t_1 = typeSerial0;
|
|
1341
1337
|
return $this;
|
|
1342
1338
|
}
|
|
1343
1339
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1346,16 +1342,16 @@
|
|
|
1346
1342
|
function Companion_5() {
|
|
1347
1343
|
Companion_instance_7 = this;
|
|
1348
1344
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1349
|
-
tmp0_serialDesc.
|
|
1350
|
-
tmp0_serialDesc.
|
|
1351
|
-
tmp0_serialDesc.
|
|
1352
|
-
this.
|
|
1345
|
+
tmp0_serialDesc.l4j('jsonrpc', false);
|
|
1346
|
+
tmp0_serialDesc.l4j('result', false);
|
|
1347
|
+
tmp0_serialDesc.l4j('id', false);
|
|
1348
|
+
this.k5t_1 = tmp0_serialDesc;
|
|
1353
1349
|
}
|
|
1354
|
-
protoOf(Companion_5).
|
|
1350
|
+
protoOf(Companion_5).n5s = function (typeSerial0) {
|
|
1355
1351
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1356
1352
|
};
|
|
1357
|
-
protoOf(Companion_5).
|
|
1358
|
-
return this.
|
|
1353
|
+
protoOf(Companion_5).l4k = function (typeParamsSerializers) {
|
|
1354
|
+
return this.n5s(typeParamsSerializers[0]);
|
|
1359
1355
|
};
|
|
1360
1356
|
var Companion_instance_7;
|
|
1361
1357
|
function Companion_getInstance_8() {
|
|
@@ -1365,86 +1361,86 @@
|
|
|
1365
1361
|
}
|
|
1366
1362
|
function $serializer_4() {
|
|
1367
1363
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1368
|
-
tmp0_serialDesc.
|
|
1369
|
-
tmp0_serialDesc.
|
|
1370
|
-
tmp0_serialDesc.
|
|
1371
|
-
this.
|
|
1372
|
-
}
|
|
1373
|
-
protoOf($serializer_4).
|
|
1374
|
-
var tmp0_desc = this.
|
|
1375
|
-
var tmp1_output = encoder.
|
|
1376
|
-
tmp1_output.
|
|
1377
|
-
tmp1_output.
|
|
1378
|
-
tmp1_output.
|
|
1379
|
-
tmp1_output.
|
|
1380
|
-
};
|
|
1381
|
-
protoOf($serializer_4).
|
|
1382
|
-
return this.
|
|
1383
|
-
};
|
|
1384
|
-
protoOf($serializer_4).
|
|
1385
|
-
var tmp0_desc = this.
|
|
1364
|
+
tmp0_serialDesc.l4j('jsonrpc', false);
|
|
1365
|
+
tmp0_serialDesc.l4j('result', false);
|
|
1366
|
+
tmp0_serialDesc.l4j('id', false);
|
|
1367
|
+
this.i5t_1 = tmp0_serialDesc;
|
|
1368
|
+
}
|
|
1369
|
+
protoOf($serializer_4).l5t = function (encoder, value) {
|
|
1370
|
+
var tmp0_desc = this.i5t_1;
|
|
1371
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
1372
|
+
tmp1_output.j4d(tmp0_desc, 0, value.m5t_1);
|
|
1373
|
+
tmp1_output.l4d(tmp0_desc, 1, this.j5t_1, value.n5t_1);
|
|
1374
|
+
tmp1_output.j4d(tmp0_desc, 2, value.o5t_1);
|
|
1375
|
+
tmp1_output.v4b(tmp0_desc);
|
|
1376
|
+
};
|
|
1377
|
+
protoOf($serializer_4).i48 = function (encoder, value) {
|
|
1378
|
+
return this.l5t(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1379
|
+
};
|
|
1380
|
+
protoOf($serializer_4).j48 = function (decoder) {
|
|
1381
|
+
var tmp0_desc = this.i5t_1;
|
|
1386
1382
|
var tmp1_flag = true;
|
|
1387
1383
|
var tmp2_index = 0;
|
|
1388
1384
|
var tmp3_bitMask0 = 0;
|
|
1389
1385
|
var tmp4_local0 = null;
|
|
1390
1386
|
var tmp5_local1 = null;
|
|
1391
1387
|
var tmp6_local2 = null;
|
|
1392
|
-
var tmp7_input = decoder.
|
|
1393
|
-
if (tmp7_input.
|
|
1394
|
-
tmp4_local0 = tmp7_input.
|
|
1388
|
+
var tmp7_input = decoder.u4b(tmp0_desc);
|
|
1389
|
+
if (tmp7_input.k4c()) {
|
|
1390
|
+
tmp4_local0 = tmp7_input.e4c(tmp0_desc, 0);
|
|
1395
1391
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1396
|
-
tmp5_local1 = tmp7_input.
|
|
1392
|
+
tmp5_local1 = tmp7_input.g4c(tmp0_desc, 1, this.j5t_1, tmp5_local1);
|
|
1397
1393
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1398
|
-
tmp6_local2 = tmp7_input.
|
|
1394
|
+
tmp6_local2 = tmp7_input.e4c(tmp0_desc, 2);
|
|
1399
1395
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1400
1396
|
} else
|
|
1401
1397
|
while (tmp1_flag) {
|
|
1402
|
-
tmp2_index = tmp7_input.
|
|
1398
|
+
tmp2_index = tmp7_input.l4c(tmp0_desc);
|
|
1403
1399
|
switch (tmp2_index) {
|
|
1404
1400
|
case -1:
|
|
1405
1401
|
tmp1_flag = false;
|
|
1406
1402
|
break;
|
|
1407
1403
|
case 0:
|
|
1408
|
-
tmp4_local0 = tmp7_input.
|
|
1404
|
+
tmp4_local0 = tmp7_input.e4c(tmp0_desc, 0);
|
|
1409
1405
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1410
1406
|
break;
|
|
1411
1407
|
case 1:
|
|
1412
|
-
tmp5_local1 = tmp7_input.
|
|
1408
|
+
tmp5_local1 = tmp7_input.g4c(tmp0_desc, 1, this.j5t_1, tmp5_local1);
|
|
1413
1409
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1414
1410
|
break;
|
|
1415
1411
|
case 2:
|
|
1416
|
-
tmp6_local2 = tmp7_input.
|
|
1412
|
+
tmp6_local2 = tmp7_input.e4c(tmp0_desc, 2);
|
|
1417
1413
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1418
1414
|
break;
|
|
1419
1415
|
default:
|
|
1420
1416
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1421
1417
|
}
|
|
1422
1418
|
}
|
|
1423
|
-
tmp7_input.
|
|
1419
|
+
tmp7_input.v4b(tmp0_desc);
|
|
1424
1420
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1425
1421
|
};
|
|
1426
|
-
protoOf($serializer_4).
|
|
1427
|
-
return this.
|
|
1422
|
+
protoOf($serializer_4).h48 = function () {
|
|
1423
|
+
return this.i5t_1;
|
|
1428
1424
|
};
|
|
1429
|
-
protoOf($serializer_4).
|
|
1425
|
+
protoOf($serializer_4).a4k = function () {
|
|
1430
1426
|
// Inline function 'kotlin.arrayOf' call
|
|
1431
1427
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1432
1428
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1433
|
-
return [StringSerializer_getInstance(), this.
|
|
1429
|
+
return [StringSerializer_getInstance(), this.j5t_1, StringSerializer_getInstance()];
|
|
1434
1430
|
};
|
|
1435
|
-
protoOf($serializer_4).
|
|
1431
|
+
protoOf($serializer_4).b4k = function () {
|
|
1436
1432
|
// Inline function 'kotlin.arrayOf' call
|
|
1437
1433
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1438
1434
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1439
|
-
return [this.
|
|
1435
|
+
return [this.j5t_1];
|
|
1440
1436
|
};
|
|
1441
1437
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1442
1438
|
if (!(7 === (7 & seen0))) {
|
|
1443
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1439
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().k5t_1);
|
|
1444
1440
|
}
|
|
1445
|
-
$this.
|
|
1446
|
-
$this.
|
|
1447
|
-
$this.
|
|
1441
|
+
$this.m5t_1 = jsonrpc;
|
|
1442
|
+
$this.n5t_1 = result;
|
|
1443
|
+
$this.o5t_1 = id;
|
|
1448
1444
|
return $this;
|
|
1449
1445
|
}
|
|
1450
1446
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1452,17 +1448,17 @@
|
|
|
1452
1448
|
}
|
|
1453
1449
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1454
1450
|
Companion_getInstance_8();
|
|
1455
|
-
this.
|
|
1456
|
-
this.
|
|
1457
|
-
this.
|
|
1451
|
+
this.m5t_1 = jsonrpc;
|
|
1452
|
+
this.n5t_1 = result;
|
|
1453
|
+
this.o5t_1 = id;
|
|
1458
1454
|
}
|
|
1459
1455
|
protoOf(RandomResponseDto).toString = function () {
|
|
1460
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1456
|
+
return 'RandomResponseDto(jsonrpc=' + this.m5t_1 + ', result=' + toString(this.n5t_1) + ', id=' + this.o5t_1 + ')';
|
|
1461
1457
|
};
|
|
1462
1458
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1463
|
-
var result = getStringHashCode(this.
|
|
1464
|
-
result = imul(result, 31) + hashCode(this.
|
|
1465
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1459
|
+
var result = getStringHashCode(this.m5t_1);
|
|
1460
|
+
result = imul(result, 31) + hashCode(this.n5t_1) | 0;
|
|
1461
|
+
result = imul(result, 31) + getStringHashCode(this.o5t_1) | 0;
|
|
1466
1462
|
return result;
|
|
1467
1463
|
};
|
|
1468
1464
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1471,11 +1467,11 @@
|
|
|
1471
1467
|
if (!(other instanceof RandomResponseDto))
|
|
1472
1468
|
return false;
|
|
1473
1469
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1474
|
-
if (!(this.
|
|
1470
|
+
if (!(this.m5t_1 === tmp0_other_with_cast.m5t_1))
|
|
1475
1471
|
return false;
|
|
1476
|
-
if (!equals(this.
|
|
1472
|
+
if (!equals(this.n5t_1, tmp0_other_with_cast.n5t_1))
|
|
1477
1473
|
return false;
|
|
1478
|
-
if (!(this.
|
|
1474
|
+
if (!(this.o5t_1 === tmp0_other_with_cast.o5t_1))
|
|
1479
1475
|
return false;
|
|
1480
1476
|
return true;
|
|
1481
1477
|
};
|
|
@@ -1488,30 +1484,30 @@
|
|
|
1488
1484
|
function $serializer_5() {
|
|
1489
1485
|
$serializer_instance_3 = this;
|
|
1490
1486
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1491
|
-
tmp0_serialDesc.
|
|
1492
|
-
tmp0_serialDesc.
|
|
1493
|
-
tmp0_serialDesc.
|
|
1494
|
-
tmp0_serialDesc.
|
|
1495
|
-
tmp0_serialDesc.
|
|
1496
|
-
tmp0_serialDesc.
|
|
1497
|
-
this.
|
|
1498
|
-
}
|
|
1499
|
-
protoOf($serializer_5).
|
|
1500
|
-
var tmp0_desc = this.
|
|
1501
|
-
var tmp1_output = encoder.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
tmp1_output.
|
|
1504
|
-
tmp1_output.
|
|
1505
|
-
tmp1_output.
|
|
1506
|
-
tmp1_output.
|
|
1507
|
-
tmp1_output.
|
|
1508
|
-
tmp1_output.
|
|
1509
|
-
};
|
|
1510
|
-
protoOf($serializer_5).
|
|
1511
|
-
return this.
|
|
1512
|
-
};
|
|
1513
|
-
protoOf($serializer_5).
|
|
1514
|
-
var tmp0_desc = this.
|
|
1487
|
+
tmp0_serialDesc.l4j('random', false);
|
|
1488
|
+
tmp0_serialDesc.l4j('signature', false);
|
|
1489
|
+
tmp0_serialDesc.l4j('bitsUsed', false);
|
|
1490
|
+
tmp0_serialDesc.l4j('bitsLeft', false);
|
|
1491
|
+
tmp0_serialDesc.l4j('requestsLeft', false);
|
|
1492
|
+
tmp0_serialDesc.l4j('advisoryDelay', false);
|
|
1493
|
+
this.p5t_1 = tmp0_serialDesc;
|
|
1494
|
+
}
|
|
1495
|
+
protoOf($serializer_5).q5t = function (encoder, value) {
|
|
1496
|
+
var tmp0_desc = this.p5t_1;
|
|
1497
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
1498
|
+
tmp1_output.l4d(tmp0_desc, 0, $serializer_getInstance_4(), value.r5t_1);
|
|
1499
|
+
tmp1_output.n4d(tmp0_desc, 1, StringSerializer_getInstance(), value.s5t_1);
|
|
1500
|
+
tmp1_output.n4d(tmp0_desc, 2, IntSerializer_getInstance(), value.t5t_1);
|
|
1501
|
+
tmp1_output.n4d(tmp0_desc, 3, IntSerializer_getInstance(), value.u5t_1);
|
|
1502
|
+
tmp1_output.n4d(tmp0_desc, 4, IntSerializer_getInstance(), value.v5t_1);
|
|
1503
|
+
tmp1_output.n4d(tmp0_desc, 5, IntSerializer_getInstance(), value.w5t_1);
|
|
1504
|
+
tmp1_output.v4b(tmp0_desc);
|
|
1505
|
+
};
|
|
1506
|
+
protoOf($serializer_5).i48 = function (encoder, value) {
|
|
1507
|
+
return this.q5t(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1508
|
+
};
|
|
1509
|
+
protoOf($serializer_5).j48 = function (decoder) {
|
|
1510
|
+
var tmp0_desc = this.p5t_1;
|
|
1515
1511
|
var tmp1_flag = true;
|
|
1516
1512
|
var tmp2_index = 0;
|
|
1517
1513
|
var tmp3_bitMask0 = 0;
|
|
@@ -1521,62 +1517,62 @@
|
|
|
1521
1517
|
var tmp7_local3 = null;
|
|
1522
1518
|
var tmp8_local4 = null;
|
|
1523
1519
|
var tmp9_local5 = null;
|
|
1524
|
-
var tmp10_input = decoder.
|
|
1525
|
-
if (tmp10_input.
|
|
1526
|
-
tmp4_local0 = tmp10_input.
|
|
1520
|
+
var tmp10_input = decoder.u4b(tmp0_desc);
|
|
1521
|
+
if (tmp10_input.k4c()) {
|
|
1522
|
+
tmp4_local0 = tmp10_input.g4c(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1527
1523
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1528
|
-
tmp5_local1 = tmp10_input.
|
|
1524
|
+
tmp5_local1 = tmp10_input.i4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1529
1525
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1530
|
-
tmp6_local2 = tmp10_input.
|
|
1526
|
+
tmp6_local2 = tmp10_input.i4c(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1531
1527
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1532
|
-
tmp7_local3 = tmp10_input.
|
|
1528
|
+
tmp7_local3 = tmp10_input.i4c(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1533
1529
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1534
|
-
tmp8_local4 = tmp10_input.
|
|
1530
|
+
tmp8_local4 = tmp10_input.i4c(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1535
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1536
|
-
tmp9_local5 = tmp10_input.
|
|
1532
|
+
tmp9_local5 = tmp10_input.i4c(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1537
1533
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1538
1534
|
} else
|
|
1539
1535
|
while (tmp1_flag) {
|
|
1540
|
-
tmp2_index = tmp10_input.
|
|
1536
|
+
tmp2_index = tmp10_input.l4c(tmp0_desc);
|
|
1541
1537
|
switch (tmp2_index) {
|
|
1542
1538
|
case -1:
|
|
1543
1539
|
tmp1_flag = false;
|
|
1544
1540
|
break;
|
|
1545
1541
|
case 0:
|
|
1546
|
-
tmp4_local0 = tmp10_input.
|
|
1542
|
+
tmp4_local0 = tmp10_input.g4c(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1547
1543
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1548
1544
|
break;
|
|
1549
1545
|
case 1:
|
|
1550
|
-
tmp5_local1 = tmp10_input.
|
|
1546
|
+
tmp5_local1 = tmp10_input.i4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1551
1547
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1552
1548
|
break;
|
|
1553
1549
|
case 2:
|
|
1554
|
-
tmp6_local2 = tmp10_input.
|
|
1550
|
+
tmp6_local2 = tmp10_input.i4c(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1555
1551
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1556
1552
|
break;
|
|
1557
1553
|
case 3:
|
|
1558
|
-
tmp7_local3 = tmp10_input.
|
|
1554
|
+
tmp7_local3 = tmp10_input.i4c(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1559
1555
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1560
1556
|
break;
|
|
1561
1557
|
case 4:
|
|
1562
|
-
tmp8_local4 = tmp10_input.
|
|
1558
|
+
tmp8_local4 = tmp10_input.i4c(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1563
1559
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1564
1560
|
break;
|
|
1565
1561
|
case 5:
|
|
1566
|
-
tmp9_local5 = tmp10_input.
|
|
1562
|
+
tmp9_local5 = tmp10_input.i4c(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1567
1563
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1568
1564
|
break;
|
|
1569
1565
|
default:
|
|
1570
1566
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1571
1567
|
}
|
|
1572
1568
|
}
|
|
1573
|
-
tmp10_input.
|
|
1569
|
+
tmp10_input.v4b(tmp0_desc);
|
|
1574
1570
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1575
1571
|
};
|
|
1576
|
-
protoOf($serializer_5).
|
|
1577
|
-
return this.
|
|
1572
|
+
protoOf($serializer_5).h48 = function () {
|
|
1573
|
+
return this.p5t_1;
|
|
1578
1574
|
};
|
|
1579
|
-
protoOf($serializer_5).
|
|
1575
|
+
protoOf($serializer_5).a4k = function () {
|
|
1580
1576
|
// Inline function 'kotlin.arrayOf' call
|
|
1581
1577
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1582
1578
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1590,37 +1586,37 @@
|
|
|
1590
1586
|
}
|
|
1591
1587
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1592
1588
|
if (!(63 === (63 & seen0))) {
|
|
1593
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1589
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().p5t_1);
|
|
1594
1590
|
}
|
|
1595
|
-
$this.
|
|
1596
|
-
$this.
|
|
1597
|
-
$this.
|
|
1598
|
-
$this.
|
|
1599
|
-
$this.
|
|
1600
|
-
$this.
|
|
1591
|
+
$this.r5t_1 = random;
|
|
1592
|
+
$this.s5t_1 = signature;
|
|
1593
|
+
$this.t5t_1 = bitsUsed;
|
|
1594
|
+
$this.u5t_1 = bitsLeft;
|
|
1595
|
+
$this.v5t_1 = requestsLeft;
|
|
1596
|
+
$this.w5t_1 = advisoryDelay;
|
|
1601
1597
|
return $this;
|
|
1602
1598
|
}
|
|
1603
1599
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1604
1600
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1605
1601
|
}
|
|
1606
1602
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1603
|
+
this.r5t_1 = random;
|
|
1604
|
+
this.s5t_1 = signature;
|
|
1605
|
+
this.t5t_1 = bitsUsed;
|
|
1606
|
+
this.u5t_1 = bitsLeft;
|
|
1607
|
+
this.v5t_1 = requestsLeft;
|
|
1608
|
+
this.w5t_1 = advisoryDelay;
|
|
1613
1609
|
}
|
|
1614
1610
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1615
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1611
|
+
return 'IntegerSequencesResultDto(random=' + this.r5t_1.toString() + ', signature=' + this.s5t_1 + ', bitsUsed=' + this.t5t_1 + ', bitsLeft=' + this.u5t_1 + ', requestsLeft=' + this.v5t_1 + ', advisoryDelay=' + this.w5t_1 + ')';
|
|
1616
1612
|
};
|
|
1617
1613
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1618
|
-
var result = this.
|
|
1619
|
-
result = imul(result, 31) + (this.
|
|
1620
|
-
result = imul(result, 31) + (this.
|
|
1621
|
-
result = imul(result, 31) + (this.
|
|
1622
|
-
result = imul(result, 31) + (this.
|
|
1623
|
-
result = imul(result, 31) + (this.
|
|
1614
|
+
var result = this.r5t_1.hashCode();
|
|
1615
|
+
result = imul(result, 31) + (this.s5t_1 == null ? 0 : getStringHashCode(this.s5t_1)) | 0;
|
|
1616
|
+
result = imul(result, 31) + (this.t5t_1 == null ? 0 : this.t5t_1) | 0;
|
|
1617
|
+
result = imul(result, 31) + (this.u5t_1 == null ? 0 : this.u5t_1) | 0;
|
|
1618
|
+
result = imul(result, 31) + (this.v5t_1 == null ? 0 : this.v5t_1) | 0;
|
|
1619
|
+
result = imul(result, 31) + (this.w5t_1 == null ? 0 : this.w5t_1) | 0;
|
|
1624
1620
|
return result;
|
|
1625
1621
|
};
|
|
1626
1622
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1629,17 +1625,17 @@
|
|
|
1629
1625
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1630
1626
|
return false;
|
|
1631
1627
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1632
|
-
if (!this.
|
|
1628
|
+
if (!this.r5t_1.equals(tmp0_other_with_cast.r5t_1))
|
|
1633
1629
|
return false;
|
|
1634
|
-
if (!(this.
|
|
1630
|
+
if (!(this.s5t_1 == tmp0_other_with_cast.s5t_1))
|
|
1635
1631
|
return false;
|
|
1636
|
-
if (!(this.
|
|
1632
|
+
if (!(this.t5t_1 == tmp0_other_with_cast.t5t_1))
|
|
1637
1633
|
return false;
|
|
1638
|
-
if (!(this.
|
|
1634
|
+
if (!(this.u5t_1 == tmp0_other_with_cast.u5t_1))
|
|
1639
1635
|
return false;
|
|
1640
|
-
if (!(this.
|
|
1636
|
+
if (!(this.v5t_1 == tmp0_other_with_cast.v5t_1))
|
|
1641
1637
|
return false;
|
|
1642
|
-
if (!(this.
|
|
1638
|
+
if (!(this.w5t_1 == tmp0_other_with_cast.w5t_1))
|
|
1643
1639
|
return false;
|
|
1644
1640
|
return true;
|
|
1645
1641
|
};
|
|
@@ -1649,7 +1645,7 @@
|
|
|
1649
1645
|
// Inline function 'kotlin.arrayOf' call
|
|
1650
1646
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1651
1647
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1652
|
-
tmp.
|
|
1648
|
+
tmp.x5t_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1653
1649
|
}
|
|
1654
1650
|
var Companion_instance_9;
|
|
1655
1651
|
function Companion_getInstance_10() {
|
|
@@ -1660,74 +1656,74 @@
|
|
|
1660
1656
|
function $serializer_6() {
|
|
1661
1657
|
$serializer_instance_4 = this;
|
|
1662
1658
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1663
|
-
tmp0_serialDesc.
|
|
1664
|
-
tmp0_serialDesc.
|
|
1665
|
-
tmp0_serialDesc.
|
|
1666
|
-
this.
|
|
1667
|
-
}
|
|
1668
|
-
protoOf($serializer_6).
|
|
1669
|
-
var tmp0_desc = this.
|
|
1670
|
-
var tmp1_output = encoder.
|
|
1671
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1672
|
-
tmp1_output.
|
|
1673
|
-
tmp1_output.
|
|
1674
|
-
tmp1_output.
|
|
1675
|
-
tmp1_output.
|
|
1676
|
-
};
|
|
1677
|
-
protoOf($serializer_6).
|
|
1678
|
-
return this.
|
|
1679
|
-
};
|
|
1680
|
-
protoOf($serializer_6).
|
|
1681
|
-
var tmp0_desc = this.
|
|
1659
|
+
tmp0_serialDesc.l4j('data', false);
|
|
1660
|
+
tmp0_serialDesc.l4j('completionTime', false);
|
|
1661
|
+
tmp0_serialDesc.l4j('ticketId', false);
|
|
1662
|
+
this.y5t_1 = tmp0_serialDesc;
|
|
1663
|
+
}
|
|
1664
|
+
protoOf($serializer_6).z5t = function (encoder, value) {
|
|
1665
|
+
var tmp0_desc = this.y5t_1;
|
|
1666
|
+
var tmp1_output = encoder.u4b(tmp0_desc);
|
|
1667
|
+
var tmp2_cached = Companion_getInstance_10().x5t_1;
|
|
1668
|
+
tmp1_output.l4d(tmp0_desc, 0, tmp2_cached[0], value.a5u_1);
|
|
1669
|
+
tmp1_output.j4d(tmp0_desc, 1, value.b5u_1);
|
|
1670
|
+
tmp1_output.n4d(tmp0_desc, 2, StringSerializer_getInstance(), value.c5u_1);
|
|
1671
|
+
tmp1_output.v4b(tmp0_desc);
|
|
1672
|
+
};
|
|
1673
|
+
protoOf($serializer_6).i48 = function (encoder, value) {
|
|
1674
|
+
return this.z5t(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1675
|
+
};
|
|
1676
|
+
protoOf($serializer_6).j48 = function (decoder) {
|
|
1677
|
+
var tmp0_desc = this.y5t_1;
|
|
1682
1678
|
var tmp1_flag = true;
|
|
1683
1679
|
var tmp2_index = 0;
|
|
1684
1680
|
var tmp3_bitMask0 = 0;
|
|
1685
1681
|
var tmp4_local0 = null;
|
|
1686
1682
|
var tmp5_local1 = null;
|
|
1687
1683
|
var tmp6_local2 = null;
|
|
1688
|
-
var tmp7_input = decoder.
|
|
1689
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1690
|
-
if (tmp7_input.
|
|
1691
|
-
tmp4_local0 = tmp7_input.
|
|
1684
|
+
var tmp7_input = decoder.u4b(tmp0_desc);
|
|
1685
|
+
var tmp8_cached = Companion_getInstance_10().x5t_1;
|
|
1686
|
+
if (tmp7_input.k4c()) {
|
|
1687
|
+
tmp4_local0 = tmp7_input.g4c(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1692
1688
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1693
|
-
tmp5_local1 = tmp7_input.
|
|
1689
|
+
tmp5_local1 = tmp7_input.e4c(tmp0_desc, 1);
|
|
1694
1690
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1695
|
-
tmp6_local2 = tmp7_input.
|
|
1691
|
+
tmp6_local2 = tmp7_input.i4c(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1696
1692
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1697
1693
|
} else
|
|
1698
1694
|
while (tmp1_flag) {
|
|
1699
|
-
tmp2_index = tmp7_input.
|
|
1695
|
+
tmp2_index = tmp7_input.l4c(tmp0_desc);
|
|
1700
1696
|
switch (tmp2_index) {
|
|
1701
1697
|
case -1:
|
|
1702
1698
|
tmp1_flag = false;
|
|
1703
1699
|
break;
|
|
1704
1700
|
case 0:
|
|
1705
|
-
tmp4_local0 = tmp7_input.
|
|
1701
|
+
tmp4_local0 = tmp7_input.g4c(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1706
1702
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1707
1703
|
break;
|
|
1708
1704
|
case 1:
|
|
1709
|
-
tmp5_local1 = tmp7_input.
|
|
1705
|
+
tmp5_local1 = tmp7_input.e4c(tmp0_desc, 1);
|
|
1710
1706
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1711
1707
|
break;
|
|
1712
1708
|
case 2:
|
|
1713
|
-
tmp6_local2 = tmp7_input.
|
|
1709
|
+
tmp6_local2 = tmp7_input.i4c(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1714
1710
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1715
1711
|
break;
|
|
1716
1712
|
default:
|
|
1717
1713
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1718
1714
|
}
|
|
1719
1715
|
}
|
|
1720
|
-
tmp7_input.
|
|
1716
|
+
tmp7_input.v4b(tmp0_desc);
|
|
1721
1717
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1722
1718
|
};
|
|
1723
|
-
protoOf($serializer_6).
|
|
1724
|
-
return this.
|
|
1719
|
+
protoOf($serializer_6).h48 = function () {
|
|
1720
|
+
return this.y5t_1;
|
|
1725
1721
|
};
|
|
1726
|
-
protoOf($serializer_6).
|
|
1722
|
+
protoOf($serializer_6).a4k = function () {
|
|
1727
1723
|
// Inline function 'kotlin.arrayOf' call
|
|
1728
1724
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1729
1725
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1730
|
-
return [Companion_getInstance_10().
|
|
1726
|
+
return [Companion_getInstance_10().x5t_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1731
1727
|
};
|
|
1732
1728
|
var $serializer_instance_4;
|
|
1733
1729
|
function $serializer_getInstance_4() {
|
|
@@ -1737,11 +1733,11 @@
|
|
|
1737
1733
|
}
|
|
1738
1734
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1739
1735
|
if (!(7 === (7 & seen0))) {
|
|
1740
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1736
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().y5t_1);
|
|
1741
1737
|
}
|
|
1742
|
-
$this.
|
|
1743
|
-
$this.
|
|
1744
|
-
$this.
|
|
1738
|
+
$this.a5u_1 = data;
|
|
1739
|
+
$this.b5u_1 = completionTime;
|
|
1740
|
+
$this.c5u_1 = ticketId;
|
|
1745
1741
|
return $this;
|
|
1746
1742
|
}
|
|
1747
1743
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1750,12 +1746,12 @@
|
|
|
1750
1746
|
function IntegerSequencesDataDto() {
|
|
1751
1747
|
}
|
|
1752
1748
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1753
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1749
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.a5u_1) + ', completionTime=' + this.b5u_1 + ', ticketId=' + this.c5u_1 + ')';
|
|
1754
1750
|
};
|
|
1755
1751
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1756
|
-
var result = hashCode(this.
|
|
1757
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1758
|
-
result = imul(result, 31) + (this.
|
|
1752
|
+
var result = hashCode(this.a5u_1);
|
|
1753
|
+
result = imul(result, 31) + getStringHashCode(this.b5u_1) | 0;
|
|
1754
|
+
result = imul(result, 31) + (this.c5u_1 == null ? 0 : getStringHashCode(this.c5u_1)) | 0;
|
|
1759
1755
|
return result;
|
|
1760
1756
|
};
|
|
1761
1757
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1764,11 +1760,11 @@
|
|
|
1764
1760
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1765
1761
|
return false;
|
|
1766
1762
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1767
|
-
if (!equals(this.
|
|
1763
|
+
if (!equals(this.a5u_1, tmp0_other_with_cast.a5u_1))
|
|
1768
1764
|
return false;
|
|
1769
|
-
if (!(this.
|
|
1765
|
+
if (!(this.b5u_1 === tmp0_other_with_cast.b5u_1))
|
|
1770
1766
|
return false;
|
|
1771
|
-
if (!(this.
|
|
1767
|
+
if (!(this.c5u_1 == tmp0_other_with_cast.c5u_1))
|
|
1772
1768
|
return false;
|
|
1773
1769
|
return true;
|
|
1774
1770
|
};
|
|
@@ -1778,7 +1774,7 @@
|
|
|
1778
1774
|
function RandomOrgApiService() {
|
|
1779
1775
|
}
|
|
1780
1776
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1781
|
-
var tmp = new $throwIfErrorCOROUTINE$
|
|
1777
|
+
var tmp = new $throwIfErrorCOROUTINE$($this, bodyAsJson, response, $completion);
|
|
1782
1778
|
tmp.l9_1 = Unit_instance;
|
|
1783
1779
|
tmp.m9_1 = null;
|
|
1784
1780
|
return tmp.r9();
|
|
@@ -1787,23 +1783,23 @@
|
|
|
1787
1783
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1788
1784
|
}
|
|
1789
1785
|
function Companion_8() {
|
|
1790
|
-
this.
|
|
1786
|
+
this.r5u_1 = 52;
|
|
1791
1787
|
}
|
|
1792
1788
|
var Companion_instance_10;
|
|
1793
1789
|
function Companion_getInstance_11() {
|
|
1794
1790
|
return Companion_instance_10;
|
|
1795
1791
|
}
|
|
1796
|
-
function $getRandomCardDecksCOROUTINE$
|
|
1792
|
+
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1797
1793
|
CoroutineImpl.call(this, resultContinuation);
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1801
|
-
this.
|
|
1802
|
-
this.
|
|
1803
|
-
this.
|
|
1804
|
-
this.
|
|
1805
|
-
}
|
|
1806
|
-
protoOf($getRandomCardDecksCOROUTINE$
|
|
1794
|
+
this.a5v_1 = _this__u8e3s4;
|
|
1795
|
+
this.b5v_1 = min;
|
|
1796
|
+
this.c5v_1 = max;
|
|
1797
|
+
this.d5v_1 = decksCount;
|
|
1798
|
+
this.e5v_1 = cardsCount;
|
|
1799
|
+
this.f5v_1 = userData;
|
|
1800
|
+
this.g5v_1 = signed;
|
|
1801
|
+
}
|
|
1802
|
+
protoOf($getRandomCardDecksCOROUTINE$).r9 = function () {
|
|
1807
1803
|
var suspendResult = this.l9_1;
|
|
1808
1804
|
$sm: do
|
|
1809
1805
|
try {
|
|
@@ -1813,30 +1809,31 @@
|
|
|
1813
1809
|
this.k9_1 = 6;
|
|
1814
1810
|
this.k9_1 = 5;
|
|
1815
1811
|
var tmp_0 = this;
|
|
1816
|
-
tmp_0.
|
|
1812
|
+
tmp_0.h5v_1 = this.a5v_1.x5v_1;
|
|
1813
|
+
this.i5v_1 = this.h5v_1;
|
|
1817
1814
|
var tmp_1 = this;
|
|
1818
|
-
tmp_1.
|
|
1815
|
+
tmp_1.j5v_1 = this.i5v_1;
|
|
1819
1816
|
var tmp_2 = this;
|
|
1820
1817
|
var this_0 = new HttpRequestBuilder();
|
|
1821
1818
|
url(this_0, '/json-rpc/4/invoke');
|
|
1822
|
-
var tmp11_id = this.
|
|
1823
|
-
var tmp12_method = this.
|
|
1824
|
-
var tmp8_apiKey = this.
|
|
1825
|
-
var size = this.
|
|
1819
|
+
var tmp11_id = this.f5v_1.id;
|
|
1820
|
+
var tmp12_method = this.g5v_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1821
|
+
var tmp8_apiKey = this.a5v_1.y5v_1;
|
|
1822
|
+
var size = this.d5v_1;
|
|
1826
1823
|
var list = ArrayList_init_$Create$(size);
|
|
1827
1824
|
var inductionVariable = 0;
|
|
1828
1825
|
if (inductionVariable < size)
|
|
1829
1826
|
do {
|
|
1830
1827
|
var index = inductionVariable;
|
|
1831
1828
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1832
|
-
list.e(this.
|
|
1829
|
+
list.e(this.e5v_1);
|
|
1833
1830
|
}
|
|
1834
1831
|
while (inductionVariable < size);
|
|
1835
|
-
var tmp10_userData = this.
|
|
1836
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1832
|
+
var tmp10_userData = this.g5v_1 ? mapToDto(this.f5v_1) : null;
|
|
1833
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.d5v_1, list, this.b5v_1, this.c5v_1, false, null, tmp10_userData);
|
|
1837
1834
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1838
1835
|
if (body == null) {
|
|
1839
|
-
this_0.
|
|
1836
|
+
this_0.o2y_1 = NullBody_instance;
|
|
1840
1837
|
var tmp_3 = JsType_instance;
|
|
1841
1838
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1842
1839
|
var tmp_5;
|
|
@@ -1852,13 +1849,13 @@
|
|
|
1852
1849
|
}
|
|
1853
1850
|
tmp_5 = tmp_6;
|
|
1854
1851
|
}
|
|
1855
|
-
this_0.
|
|
1852
|
+
this_0.k34(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1856
1853
|
} else {
|
|
1857
1854
|
if (body instanceof OutgoingContent) {
|
|
1858
|
-
this_0.
|
|
1859
|
-
this_0.
|
|
1855
|
+
this_0.o2y_1 = body;
|
|
1856
|
+
this_0.k34(null);
|
|
1860
1857
|
} else {
|
|
1861
|
-
this_0.
|
|
1858
|
+
this_0.o2y_1 = body;
|
|
1862
1859
|
var tmp_7 = JsType_instance;
|
|
1863
1860
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1864
1861
|
var tmp_9;
|
|
@@ -1874,29 +1871,34 @@
|
|
|
1874
1871
|
}
|
|
1875
1872
|
tmp_9 = tmp_10;
|
|
1876
1873
|
}
|
|
1877
|
-
this_0.
|
|
1874
|
+
this_0.k34(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1878
1875
|
}
|
|
1879
1876
|
}
|
|
1880
1877
|
|
|
1881
|
-
tmp_2.
|
|
1882
|
-
this.
|
|
1878
|
+
tmp_2.k5v_1 = this_0;
|
|
1879
|
+
this.l5v_1 = this.j5v_1;
|
|
1880
|
+
this.m5v_1 = this.k5v_1;
|
|
1881
|
+
this.m5v_1.m2y_1 = Companion_getInstance().a2n_1;
|
|
1883
1882
|
var tmp_11 = this;
|
|
1884
|
-
tmp_11.
|
|
1883
|
+
tmp_11.n5v_1 = this.l5v_1;
|
|
1885
1884
|
var tmp_12 = this;
|
|
1886
|
-
tmp_12.
|
|
1885
|
+
tmp_12.o5v_1 = this.m5v_1;
|
|
1886
|
+
this.p5v_1 = this.n5v_1;
|
|
1887
|
+
this.q5v_1 = this.o5v_1;
|
|
1887
1888
|
this.j9_1 = 1;
|
|
1888
|
-
suspendResult = (new HttpStatement(this.
|
|
1889
|
+
suspendResult = (new HttpStatement(this.q5v_1, this.p5v_1)).g3s(this);
|
|
1889
1890
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1891
|
return suspendResult;
|
|
1891
1892
|
}
|
|
1892
1893
|
|
|
1893
1894
|
continue $sm;
|
|
1894
1895
|
case 1:
|
|
1895
|
-
this.
|
|
1896
|
+
this.r5v_1 = suspendResult;
|
|
1896
1897
|
var tmp_13 = this;
|
|
1897
|
-
tmp_13.
|
|
1898
|
+
tmp_13.s5v_1 = this.r5v_1;
|
|
1899
|
+
this.t5v_1 = this.s5v_1;
|
|
1898
1900
|
this.j9_1 = 2;
|
|
1899
|
-
var tmp_14 = this.
|
|
1901
|
+
var tmp_14 = this.t5v_1.t31();
|
|
1900
1902
|
var tmp_15 = JsType_instance;
|
|
1901
1903
|
var tmp_16 = getKClass(JsonObject);
|
|
1902
1904
|
var tmp_17;
|
|
@@ -1913,7 +1915,7 @@
|
|
|
1913
1915
|
tmp_17 = tmp_18;
|
|
1914
1916
|
}
|
|
1915
1917
|
|
|
1916
|
-
suspendResult = tmp_14.
|
|
1918
|
+
suspendResult = tmp_14.x30(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1917
1919
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1918
1920
|
return suspendResult;
|
|
1919
1921
|
}
|
|
@@ -1921,9 +1923,9 @@
|
|
|
1921
1923
|
continue $sm;
|
|
1922
1924
|
case 2:
|
|
1923
1925
|
var tmp_19 = this;
|
|
1924
|
-
tmp_19.
|
|
1926
|
+
tmp_19.u5v_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1925
1927
|
this.j9_1 = 3;
|
|
1926
|
-
suspendResult = throwIfError(this.
|
|
1928
|
+
suspendResult = throwIfError(this.a5v_1, this.u5v_1, this.r5v_1, this);
|
|
1927
1929
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1928
1930
|
return suspendResult;
|
|
1929
1931
|
}
|
|
@@ -1931,9 +1933,10 @@
|
|
|
1931
1933
|
continue $sm;
|
|
1932
1934
|
case 3:
|
|
1933
1935
|
var tmp_20 = this;
|
|
1934
|
-
tmp_20.
|
|
1936
|
+
tmp_20.v5v_1 = this.r5v_1;
|
|
1937
|
+
this.w5v_1 = this.v5v_1;
|
|
1935
1938
|
this.j9_1 = 4;
|
|
1936
|
-
var tmp_21 = this.
|
|
1939
|
+
var tmp_21 = this.w5v_1.t31();
|
|
1937
1940
|
var tmp_22 = JsType_instance;
|
|
1938
1941
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1939
1942
|
var tmp_24;
|
|
@@ -1950,7 +1953,7 @@
|
|
|
1950
1953
|
tmp_24 = tmp_25;
|
|
1951
1954
|
}
|
|
1952
1955
|
|
|
1953
|
-
suspendResult = tmp_21.
|
|
1956
|
+
suspendResult = tmp_21.x30(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1954
1957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1955
1958
|
return suspendResult;
|
|
1956
1959
|
}
|
|
@@ -1958,10 +1961,10 @@
|
|
|
1958
1961
|
continue $sm;
|
|
1959
1962
|
case 4:
|
|
1960
1963
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1961
|
-
var randomJson = extractRandomResult(this.
|
|
1962
|
-
var tmp14_cardDecks = responseDto.
|
|
1963
|
-
var tmp15_signature = responseDto.
|
|
1964
|
-
var tmp16_id = responseDto.
|
|
1964
|
+
var randomJson = extractRandomResult(this.a5v_1, this.u5v_1);
|
|
1965
|
+
var tmp14_cardDecks = responseDto.n5t_1.r5t_1.a5u_1;
|
|
1966
|
+
var tmp15_signature = responseDto.n5t_1.s5t_1;
|
|
1967
|
+
var tmp16_id = responseDto.o5t_1;
|
|
1965
1968
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1966
1969
|
case 5:
|
|
1967
1970
|
this.k9_1 = 6;
|
|
@@ -1991,13 +1994,13 @@
|
|
|
1991
1994
|
}
|
|
1992
1995
|
while (true);
|
|
1993
1996
|
};
|
|
1994
|
-
function $throwIfErrorCOROUTINE$
|
|
1997
|
+
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1995
1998
|
CoroutineImpl.call(this, resultContinuation);
|
|
1996
|
-
this.
|
|
1997
|
-
this.
|
|
1998
|
-
this.
|
|
1999
|
+
this.m5u_1 = _this__u8e3s4;
|
|
2000
|
+
this.n5u_1 = bodyAsJson;
|
|
2001
|
+
this.o5u_1 = response;
|
|
1999
2002
|
}
|
|
2000
|
-
protoOf($throwIfErrorCOROUTINE$
|
|
2003
|
+
protoOf($throwIfErrorCOROUTINE$).r9 = function () {
|
|
2001
2004
|
var suspendResult = this.l9_1;
|
|
2002
2005
|
$sm: do
|
|
2003
2006
|
try {
|
|
@@ -2005,12 +2008,13 @@
|
|
|
2005
2008
|
switch (tmp) {
|
|
2006
2009
|
case 0:
|
|
2007
2010
|
this.k9_1 = 3;
|
|
2008
|
-
var this_0 = this.
|
|
2009
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2011
|
+
var this_0 = this.n5u_1;
|
|
2012
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
|
|
2010
2013
|
var tmp_0 = this;
|
|
2011
|
-
tmp_0.
|
|
2014
|
+
tmp_0.p5u_1 = this.o5u_1;
|
|
2015
|
+
this.q5u_1 = this.p5u_1;
|
|
2012
2016
|
this.j9_1 = 2;
|
|
2013
|
-
var tmp_1 = this.
|
|
2017
|
+
var tmp_1 = this.q5u_1.t31();
|
|
2014
2018
|
var tmp_2 = JsType_instance;
|
|
2015
2019
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2016
2020
|
var tmp_4;
|
|
@@ -2026,7 +2030,7 @@
|
|
|
2026
2030
|
}
|
|
2027
2031
|
tmp_4 = tmp_5;
|
|
2028
2032
|
}
|
|
2029
|
-
suspendResult = tmp_1.
|
|
2033
|
+
suspendResult = tmp_1.x30(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2030
2034
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2031
2035
|
return suspendResult;
|
|
2032
2036
|
}
|
|
@@ -2040,10 +2044,10 @@
|
|
|
2040
2044
|
return Unit_instance;
|
|
2041
2045
|
case 2:
|
|
2042
2046
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2043
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2044
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2045
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2046
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2047
|
+
var tmp18_safe_receiver = errorResponseDto.f5s_1;
|
|
2048
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.i5s_1;
|
|
2049
|
+
var tmp19_safe_receiver = errorResponseDto.f5s_1;
|
|
2050
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.j5s_1);
|
|
2047
2051
|
case 3:
|
|
2048
2052
|
throw this.m9_1;
|
|
2049
2053
|
}
|
|
@@ -2059,11 +2063,11 @@
|
|
|
2059
2063
|
while (true);
|
|
2060
2064
|
};
|
|
2061
2065
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2062
|
-
this.
|
|
2063
|
-
this.
|
|
2066
|
+
this.x5v_1 = client;
|
|
2067
|
+
this.y5v_1 = apiKey;
|
|
2064
2068
|
}
|
|
2065
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2066
|
-
var tmp = new $getRandomCardDecksCOROUTINE$
|
|
2069
|
+
protoOf(RandomOrgApiServiceImpl).d5u = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2070
|
+
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2067
2071
|
tmp.l9_1 = Unit_instance;
|
|
2068
2072
|
tmp.m9_1 = null;
|
|
2069
2073
|
return tmp.r9();
|
|
@@ -2074,8 +2078,8 @@
|
|
|
2074
2078
|
failedRequestAttempts = failedRequestAttempts === VOID ? 1 : failedRequestAttempts;
|
|
2075
2079
|
var tmp;
|
|
2076
2080
|
if (failedAttemptCooldown === VOID) {
|
|
2077
|
-
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2078
2081
|
Companion_getInstance_0();
|
|
2082
|
+
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2079
2083
|
var this_0 = new Long(30000, 0);
|
|
2080
2084
|
tmp = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
2081
2085
|
} else {
|
|
@@ -2087,31 +2091,31 @@
|
|
|
2087
2091
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2088
2092
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2089
2093
|
}
|
|
2090
|
-
protoOf(PoolParams).
|
|
2094
|
+
protoOf(PoolParams).y5r = function () {
|
|
2091
2095
|
return this.poolSize;
|
|
2092
2096
|
};
|
|
2093
|
-
protoOf(PoolParams).
|
|
2097
|
+
protoOf(PoolParams).z5r = function () {
|
|
2094
2098
|
return this.thresholdForUsedPool;
|
|
2095
2099
|
};
|
|
2096
|
-
protoOf(PoolParams).
|
|
2100
|
+
protoOf(PoolParams).z5v = function () {
|
|
2097
2101
|
return this.failedRequestAttempts;
|
|
2098
2102
|
};
|
|
2099
|
-
protoOf(PoolParams).
|
|
2103
|
+
protoOf(PoolParams).a5w = function () {
|
|
2100
2104
|
return this.failedAttemptCooldown;
|
|
2101
2105
|
};
|
|
2102
|
-
protoOf(PoolParams).
|
|
2106
|
+
protoOf(PoolParams).gf = function () {
|
|
2103
2107
|
return this.poolSize;
|
|
2104
2108
|
};
|
|
2105
|
-
protoOf(PoolParams).
|
|
2109
|
+
protoOf(PoolParams).hf = function () {
|
|
2106
2110
|
return this.thresholdForUsedPool;
|
|
2107
2111
|
};
|
|
2108
|
-
protoOf(PoolParams).
|
|
2112
|
+
protoOf(PoolParams).gm = function () {
|
|
2109
2113
|
return this.failedRequestAttempts;
|
|
2110
2114
|
};
|
|
2111
|
-
protoOf(PoolParams).
|
|
2115
|
+
protoOf(PoolParams).b5w = function () {
|
|
2112
2116
|
return this.failedAttemptCooldown;
|
|
2113
2117
|
};
|
|
2114
|
-
protoOf(PoolParams).
|
|
2118
|
+
protoOf(PoolParams).c5w = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2115
2119
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2116
2120
|
};
|
|
2117
2121
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2119,7 +2123,7 @@
|
|
|
2119
2123
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2120
2124
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2121
2125
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2122
|
-
return this.
|
|
2126
|
+
return $super === VOID ? this.c5w(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.c5w.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2123
2127
|
};
|
|
2124
2128
|
protoOf(PoolParams).toString = function () {
|
|
2125
2129
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2150,74 +2154,70 @@
|
|
|
2150
2154
|
function RandomPoolProvider() {
|
|
2151
2155
|
}
|
|
2152
2156
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2153
|
-
return $this.
|
|
2157
|
+
return $this.h5w_1.i5r_1.m();
|
|
2154
2158
|
}
|
|
2155
2159
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2156
2160
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2157
2161
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2158
2162
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2159
|
-
this.
|
|
2160
|
-
this.
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2163
|
+
this.h5w_1 = randomResult;
|
|
2164
|
+
this.i5w_1 = usedByGames;
|
|
2165
|
+
this.j5w_1 = reservedCardDecks;
|
|
2166
|
+
this.k5w_1 = isUsed;
|
|
2163
2167
|
}
|
|
2164
|
-
protoOf(RandomPoolValue).
|
|
2165
|
-
if (this.
|
|
2168
|
+
protoOf(RandomPoolValue).l5w = function (minRoundsCount) {
|
|
2169
|
+
if (this.k5w_1) {
|
|
2166
2170
|
return false;
|
|
2167
2171
|
}
|
|
2168
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2172
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.j5w_1 | 0;
|
|
2169
2173
|
return availableCount >= minRoundsCount;
|
|
2170
2174
|
};
|
|
2171
|
-
protoOf(RandomPoolValue).
|
|
2172
|
-
var previousReservedCardDeckIndex = this.
|
|
2175
|
+
protoOf(RandomPoolValue).m5w = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2176
|
+
var previousReservedCardDeckIndex = this.j5w_1;
|
|
2173
2177
|
// Inline function 'kotlin.apply' call
|
|
2174
|
-
var this_0 = toMutableMap(this.
|
|
2175
|
-
|
|
2176
|
-
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2177
|
-
this_0.n2(gameId, previousReservedCardDeckIndex);
|
|
2178
|
+
var this_0 = toMutableMap(this.i5w_1);
|
|
2179
|
+
this_0.k2(gameId, previousReservedCardDeckIndex);
|
|
2178
2180
|
var newNewUsedBy = toMap(this_0);
|
|
2179
2181
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2180
|
-
return this.
|
|
2182
|
+
return this.n5w(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2181
2183
|
};
|
|
2182
|
-
protoOf(RandomPoolValue).
|
|
2183
|
-
var currentCardDeckIndex = getValue(this.
|
|
2184
|
+
protoOf(RandomPoolValue).o5w = function (gameId) {
|
|
2185
|
+
var currentCardDeckIndex = getValue(this.i5w_1, gameId);
|
|
2184
2186
|
var tmp;
|
|
2185
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2187
|
+
if (currentCardDeckIndex === get_lastIndex(this.h5w_1.i5r_1)) {
|
|
2186
2188
|
tmp = 0;
|
|
2187
2189
|
} else {
|
|
2188
2190
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2189
2191
|
}
|
|
2190
2192
|
var newCardDeckIndex = tmp;
|
|
2191
2193
|
// Inline function 'kotlin.apply' call
|
|
2192
|
-
var this_0 = toMutableMap(this.
|
|
2193
|
-
|
|
2194
|
-
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2195
|
-
this_0.n2(gameId, newCardDeckIndex);
|
|
2194
|
+
var this_0 = toMutableMap(this.i5w_1);
|
|
2195
|
+
this_0.k2(gameId, newCardDeckIndex);
|
|
2196
2196
|
var newNewUsedBy = toMap(this_0);
|
|
2197
|
-
return this.
|
|
2197
|
+
return this.n5w(VOID, newNewUsedBy);
|
|
2198
2198
|
};
|
|
2199
|
-
protoOf(RandomPoolValue).
|
|
2200
|
-
var index = getValue(this.
|
|
2201
|
-
return new GameCardDeckData(index, this.
|
|
2199
|
+
protoOf(RandomPoolValue).p5w = function (gameId) {
|
|
2200
|
+
var index = getValue(this.i5w_1, gameId);
|
|
2201
|
+
return new GameCardDeckData(index, this.h5w_1.i5r_1.o(index));
|
|
2202
2202
|
};
|
|
2203
|
-
protoOf(RandomPoolValue).
|
|
2203
|
+
protoOf(RandomPoolValue).q5w = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2204
2204
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2205
2205
|
};
|
|
2206
|
-
protoOf(RandomPoolValue).
|
|
2207
|
-
randomResult = randomResult === VOID ? this.
|
|
2208
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2209
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2210
|
-
isUsed = isUsed === VOID ? this.
|
|
2211
|
-
return $super === VOID ? this.
|
|
2206
|
+
protoOf(RandomPoolValue).n5w = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2207
|
+
randomResult = randomResult === VOID ? this.h5w_1 : randomResult;
|
|
2208
|
+
usedByGames = usedByGames === VOID ? this.i5w_1 : usedByGames;
|
|
2209
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.j5w_1 : reservedCardDecks;
|
|
2210
|
+
isUsed = isUsed === VOID ? this.k5w_1 : isUsed;
|
|
2211
|
+
return $super === VOID ? this.q5w(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.q5w.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2212
2212
|
};
|
|
2213
2213
|
protoOf(RandomPoolValue).toString = function () {
|
|
2214
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2214
|
+
return 'RandomPoolValue(randomResult=' + this.h5w_1.toString() + ', usedByGames=' + toString(this.i5w_1) + ', reservedCardDecks=' + this.j5w_1 + ', isUsed=' + this.k5w_1 + ')';
|
|
2215
2215
|
};
|
|
2216
2216
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2217
|
-
var result = this.
|
|
2218
|
-
result = imul(result, 31) + hashCode(this.
|
|
2219
|
-
result = imul(result, 31) + this.
|
|
2220
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2217
|
+
var result = this.h5w_1.hashCode();
|
|
2218
|
+
result = imul(result, 31) + hashCode(this.i5w_1) | 0;
|
|
2219
|
+
result = imul(result, 31) + this.j5w_1 | 0;
|
|
2220
|
+
result = imul(result, 31) + getBooleanHashCode(this.k5w_1) | 0;
|
|
2221
2221
|
return result;
|
|
2222
2222
|
};
|
|
2223
2223
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2226,79 +2226,32 @@
|
|
|
2226
2226
|
if (!(other instanceof RandomPoolValue))
|
|
2227
2227
|
return false;
|
|
2228
2228
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2229
|
-
if (!this.
|
|
2229
|
+
if (!this.h5w_1.equals(tmp0_other_with_cast.h5w_1))
|
|
2230
2230
|
return false;
|
|
2231
|
-
if (!equals(this.
|
|
2231
|
+
if (!equals(this.i5w_1, tmp0_other_with_cast.i5w_1))
|
|
2232
2232
|
return false;
|
|
2233
|
-
if (!(this.
|
|
2233
|
+
if (!(this.j5w_1 === tmp0_other_with_cast.j5w_1))
|
|
2234
2234
|
return false;
|
|
2235
|
-
if (!(this.
|
|
2235
|
+
if (!(this.k5w_1 === tmp0_other_with_cast.k5w_1))
|
|
2236
2236
|
return false;
|
|
2237
2237
|
return true;
|
|
2238
2238
|
};
|
|
2239
2239
|
function getExceptionIfCooldown($this) {
|
|
2240
|
-
var currentTime
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
// Inline function 'kotlin.requireNotNull' call
|
|
2244
|
-
var value = $this.c5s_1;
|
|
2245
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2246
|
-
var tmp$ret$1;
|
|
2247
|
-
$l$block: {
|
|
2248
|
-
// Inline function 'kotlin.requireNotNull' call
|
|
2249
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2250
|
-
if (value == null) {
|
|
2251
|
-
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
2252
|
-
var message = 'Required value was null.';
|
|
2253
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2254
|
-
} else {
|
|
2255
|
-
tmp$ret$1 = value;
|
|
2256
|
-
break $l$block;
|
|
2257
|
-
}
|
|
2258
|
-
}
|
|
2259
|
-
var allowedRequestTime = tmp$ret$1.o5l(timeToWait);
|
|
2260
|
-
if (allowedRequestTime.s5l(currentTime) > 0) {
|
|
2261
|
-
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.c5s_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.d5s_1));
|
|
2262
|
-
return exception;
|
|
2263
|
-
} else {
|
|
2264
|
-
$this.c5s_1 = null;
|
|
2265
|
-
}
|
|
2266
|
-
}
|
|
2267
|
-
return null;
|
|
2240
|
+
var currentTime;
|
|
2241
|
+
var tmp;
|
|
2242
|
+
throwLinkageError("Property accessor 'latestFailedAttemptTime.<get-latestFailedAttemptTime>' can not be called: Property accessor uses unlinked class symbol 'kotlinx.datetime/Instant|null[0]'");
|
|
2268
2243
|
}
|
|
2269
2244
|
function mapToRandomExceptionIfError($this, error) {
|
|
2270
|
-
|
|
2271
|
-
$this.d5s_1 = $this.d5s_1 + 1 | 0;
|
|
2272
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.u5r_1.failedAttemptCooldown, $this.d5s_1);
|
|
2273
|
-
// Inline function 'kotlin.requireNotNull' call
|
|
2274
|
-
var value = $this.c5s_1;
|
|
2275
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2276
|
-
var tmp$ret$1;
|
|
2277
|
-
$l$block: {
|
|
2278
|
-
// Inline function 'kotlin.requireNotNull' call
|
|
2279
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2280
|
-
if (value == null) {
|
|
2281
|
-
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
2282
|
-
var message = 'Required value was null.';
|
|
2283
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2284
|
-
} else {
|
|
2285
|
-
tmp$ret$1 = value;
|
|
2286
|
-
break $l$block;
|
|
2287
|
-
}
|
|
2288
|
-
}
|
|
2289
|
-
var allowedRequestTime = tmp$ret$1.o5l(timeToWait);
|
|
2290
|
-
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.c5s_1) + ', ') + ('currentTime = ' + System_instance.a56().toString() + ', ') + ('failedRequestCount = ' + $this.d5s_1), error);
|
|
2291
|
-
$this.w5r_1.w('RandomPoolProvider', VOID, randomException);
|
|
2292
|
-
return randomException;
|
|
2245
|
+
throwLinkageError("Can not get instance of singleton 'System': No class found for symbol 'kotlinx.datetime/Clock.System|null[0]'");
|
|
2293
2246
|
}
|
|
2294
2247
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2295
|
-
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$
|
|
2248
|
+
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2296
2249
|
tmp.l9_1 = Unit_instance;
|
|
2297
2250
|
tmp.m9_1 = null;
|
|
2298
2251
|
return tmp.r9();
|
|
2299
2252
|
}
|
|
2300
2253
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2301
|
-
var existingCardDeck = $this.
|
|
2254
|
+
var existingCardDeck = $this.p5x_1.h2(userData.gameId);
|
|
2302
2255
|
var tmp;
|
|
2303
2256
|
if (!(existingCardDeck == null)) {
|
|
2304
2257
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2308,19 +2261,19 @@
|
|
|
2308
2261
|
return tmp;
|
|
2309
2262
|
}
|
|
2310
2263
|
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2311
|
-
var tmp = new $getPreparedOrRequestPoolCOROUTINE$
|
|
2264
|
+
var tmp = new $getPreparedOrRequestPoolCOROUTINE$($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2312
2265
|
tmp.l9_1 = Unit_instance;
|
|
2313
2266
|
tmp.m9_1 = null;
|
|
2314
2267
|
return tmp.r9();
|
|
2315
2268
|
}
|
|
2316
2269
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2317
|
-
return withContext($this.
|
|
2270
|
+
return withContext($this.l5x_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2318
2271
|
}
|
|
2319
2272
|
function Companion_9() {
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2273
|
+
this.j5y_1 = 100;
|
|
2274
|
+
this.k5y_1 = 3;
|
|
2275
|
+
this.l5y_1 = 3000;
|
|
2276
|
+
this.m5y_1 = 10000;
|
|
2324
2277
|
}
|
|
2325
2278
|
var Companion_instance_11;
|
|
2326
2279
|
function Companion_getInstance_12() {
|
|
@@ -2330,18 +2283,18 @@
|
|
|
2330
2283
|
return uuid4().toString();
|
|
2331
2284
|
}
|
|
2332
2285
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2333
|
-
this.
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2339
|
-
this.
|
|
2340
|
-
this.
|
|
2286
|
+
this.v5y_1 = this$0;
|
|
2287
|
+
this.w5y_1 = $minRoundsCountInPool;
|
|
2288
|
+
this.x5y_1 = $userData;
|
|
2289
|
+
this.y5y_1 = $min;
|
|
2290
|
+
this.z5y_1 = $max;
|
|
2291
|
+
this.a5z_1 = $cardsCount;
|
|
2292
|
+
this.b5z_1 = $signed;
|
|
2293
|
+
this.c5z_1 = $requestDurationWarnMillis;
|
|
2341
2294
|
CoroutineImpl.call(this, resultContinuation);
|
|
2342
2295
|
}
|
|
2343
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2344
|
-
var tmp = this.
|
|
2296
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).k5z = function ($this$withContext, $completion) {
|
|
2297
|
+
var tmp = this.k1g($this$withContext, $completion);
|
|
2345
2298
|
tmp.l9_1 = Unit_instance;
|
|
2346
2299
|
tmp.m9_1 = null;
|
|
2347
2300
|
var tmp_0 = tmp.r9();
|
|
@@ -2349,8 +2302,8 @@
|
|
|
2349
2302
|
return tmp_0;
|
|
2350
2303
|
return tmp_0;
|
|
2351
2304
|
};
|
|
2352
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2353
|
-
return this.
|
|
2305
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).z9 = function (p1, $completion) {
|
|
2306
|
+
return this.k5z((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2354
2307
|
};
|
|
2355
2308
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).r9 = function () {
|
|
2356
2309
|
var suspendResult = this.l9_1;
|
|
@@ -2361,31 +2314,32 @@
|
|
|
2361
2314
|
case 0:
|
|
2362
2315
|
this.k9_1 = 10;
|
|
2363
2316
|
var tmp_0 = this;
|
|
2364
|
-
tmp_0.
|
|
2317
|
+
tmp_0.e5z_1 = this.v5y_1.n5x_1;
|
|
2318
|
+
this.f5z_1 = this.e5z_1;
|
|
2365
2319
|
var tmp_1 = this;
|
|
2366
|
-
tmp_1.
|
|
2320
|
+
tmp_1.g5z_1 = null;
|
|
2367
2321
|
this.j9_1 = 1;
|
|
2368
|
-
suspendResult = this.
|
|
2322
|
+
suspendResult = this.f5z_1.a1p(this.g5z_1, this);
|
|
2369
2323
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2370
2324
|
return suspendResult;
|
|
2371
2325
|
}
|
|
2372
2326
|
|
|
2373
2327
|
continue $sm;
|
|
2374
2328
|
case 1:
|
|
2375
|
-
this.
|
|
2329
|
+
this.h5z_1 = Unit_instance;
|
|
2376
2330
|
this.j9_1 = 2;
|
|
2377
2331
|
continue $sm;
|
|
2378
2332
|
case 2:
|
|
2379
2333
|
this.k9_1 = 9;
|
|
2380
|
-
this.
|
|
2334
|
+
this.i5z_1 = Unit_instance;
|
|
2381
2335
|
this.j9_1 = 3;
|
|
2382
2336
|
continue $sm;
|
|
2383
2337
|
case 3:
|
|
2384
|
-
this.
|
|
2385
|
-
if (!(this.
|
|
2338
|
+
this.j5z_1 = getExceptionIfCooldown(this.v5y_1);
|
|
2339
|
+
if (!(this.j5z_1 == null)) {
|
|
2386
2340
|
var tmp_2 = this;
|
|
2387
|
-
var exception = this.
|
|
2388
|
-
tmp_2.
|
|
2341
|
+
var exception = this.j5z_1;
|
|
2342
|
+
tmp_2.i5z_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2389
2343
|
this.j9_1 = 7;
|
|
2390
2344
|
continue $sm;
|
|
2391
2345
|
} else {
|
|
@@ -2396,7 +2350,7 @@
|
|
|
2396
2350
|
case 4:
|
|
2397
2351
|
this.k9_1 = 6;
|
|
2398
2352
|
this.j9_1 = 5;
|
|
2399
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2353
|
+
suspendResult = getOrLoadGameCardDeckData(this.v5y_1, this.w5y_1, this.x5y_1, this.y5y_1, this.z5y_1, this.a5z_1, this.b5z_1, this.c5z_1, this);
|
|
2400
2354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2401
2355
|
return suspendResult;
|
|
2402
2356
|
}
|
|
@@ -2405,7 +2359,7 @@
|
|
|
2405
2359
|
case 5:
|
|
2406
2360
|
var cardDeckData = suspendResult;
|
|
2407
2361
|
var tmp_3 = this;
|
|
2408
|
-
tmp_3.
|
|
2362
|
+
tmp_3.i5z_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2409
2363
|
this.j9_1 = 7;
|
|
2410
2364
|
continue $sm;
|
|
2411
2365
|
case 6:
|
|
@@ -2414,8 +2368,8 @@
|
|
|
2414
2368
|
if (tmp_4 instanceof Error) {
|
|
2415
2369
|
var error = this.m9_1;
|
|
2416
2370
|
var tmp_5 = this;
|
|
2417
|
-
var exception_0 = mapToRandomExceptionIfError(this.
|
|
2418
|
-
tmp_5.
|
|
2371
|
+
var exception_0 = mapToRandomExceptionIfError(this.v5y_1, error);
|
|
2372
|
+
tmp_5.i5z_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2419
2373
|
this.j9_1 = 7;
|
|
2420
2374
|
continue $sm;
|
|
2421
2375
|
} else {
|
|
@@ -2423,19 +2377,19 @@
|
|
|
2423
2377
|
}
|
|
2424
2378
|
|
|
2425
2379
|
case 7:
|
|
2426
|
-
this.
|
|
2380
|
+
this.h5z_1 = this.i5z_1;
|
|
2427
2381
|
this.k9_1 = 10;
|
|
2428
2382
|
this.j9_1 = 8;
|
|
2429
2383
|
continue $sm;
|
|
2430
2384
|
case 8:
|
|
2431
|
-
var tmp_6 = this.
|
|
2385
|
+
var tmp_6 = this.h5z_1;
|
|
2432
2386
|
this.k9_1 = 10;
|
|
2433
|
-
this.
|
|
2387
|
+
this.f5z_1.l1o(this.g5z_1);
|
|
2434
2388
|
return tmp_6;
|
|
2435
2389
|
case 9:
|
|
2436
2390
|
this.k9_1 = 10;
|
|
2437
2391
|
var t = this.m9_1;
|
|
2438
|
-
this.
|
|
2392
|
+
this.f5z_1.l1o(this.g5z_1);
|
|
2439
2393
|
throw t;
|
|
2440
2394
|
case 10:
|
|
2441
2395
|
throw this.m9_1;
|
|
@@ -2451,30 +2405,30 @@
|
|
|
2451
2405
|
}
|
|
2452
2406
|
while (true);
|
|
2453
2407
|
};
|
|
2454
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2455
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2456
|
-
i.
|
|
2408
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).k1g = function ($this$withContext, completion) {
|
|
2409
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.v5y_1, this.w5y_1, this.x5y_1, this.y5y_1, this.z5y_1, this.a5z_1, this.b5z_1, this.c5z_1, completion);
|
|
2410
|
+
i.d5z_1 = $this$withContext;
|
|
2457
2411
|
return i;
|
|
2458
2412
|
};
|
|
2459
2413
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2460
2414
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2461
2415
|
var l = function ($this$withContext, $completion) {
|
|
2462
|
-
return i.
|
|
2416
|
+
return i.k5z($this$withContext, $completion);
|
|
2463
2417
|
};
|
|
2464
2418
|
l.$arity = 1;
|
|
2465
2419
|
return l;
|
|
2466
2420
|
}
|
|
2467
2421
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2468
|
-
this.
|
|
2469
|
-
this.
|
|
2470
|
-
this.
|
|
2471
|
-
this.
|
|
2472
|
-
this.
|
|
2473
|
-
this.
|
|
2422
|
+
this.t5z_1 = this$0;
|
|
2423
|
+
this.u5z_1 = $min;
|
|
2424
|
+
this.v5z_1 = $max;
|
|
2425
|
+
this.w5z_1 = $cardsCount;
|
|
2426
|
+
this.x5z_1 = $signed;
|
|
2427
|
+
this.y5z_1 = $requestDurationWarnMillis;
|
|
2474
2428
|
CoroutineImpl.call(this, resultContinuation);
|
|
2475
2429
|
}
|
|
2476
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2477
|
-
var tmp = this.
|
|
2430
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).g60 = function ($this$withContext, $completion) {
|
|
2431
|
+
var tmp = this.k1g($this$withContext, $completion);
|
|
2478
2432
|
tmp.l9_1 = Unit_instance;
|
|
2479
2433
|
tmp.m9_1 = null;
|
|
2480
2434
|
var tmp_0 = tmp.r9();
|
|
@@ -2482,8 +2436,8 @@
|
|
|
2482
2436
|
return tmp_0;
|
|
2483
2437
|
return tmp_0;
|
|
2484
2438
|
};
|
|
2485
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2486
|
-
return this.
|
|
2439
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).z9 = function (p1, $completion) {
|
|
2440
|
+
return this.g60((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2487
2441
|
};
|
|
2488
2442
|
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).r9 = function () {
|
|
2489
2443
|
var suspendResult = this.l9_1;
|
|
@@ -2494,31 +2448,32 @@
|
|
|
2494
2448
|
case 0:
|
|
2495
2449
|
this.k9_1 = 10;
|
|
2496
2450
|
var tmp_0 = this;
|
|
2497
|
-
tmp_0.
|
|
2451
|
+
tmp_0.a60_1 = this.t5z_1.n5x_1;
|
|
2452
|
+
this.b60_1 = this.a60_1;
|
|
2498
2453
|
var tmp_1 = this;
|
|
2499
|
-
tmp_1.
|
|
2454
|
+
tmp_1.c60_1 = null;
|
|
2500
2455
|
this.j9_1 = 1;
|
|
2501
|
-
suspendResult = this.
|
|
2456
|
+
suspendResult = this.b60_1.a1p(this.c60_1, this);
|
|
2502
2457
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2503
2458
|
return suspendResult;
|
|
2504
2459
|
}
|
|
2505
2460
|
|
|
2506
2461
|
continue $sm;
|
|
2507
2462
|
case 1:
|
|
2508
|
-
this.
|
|
2463
|
+
this.d60_1 = Unit_instance;
|
|
2509
2464
|
this.j9_1 = 2;
|
|
2510
2465
|
continue $sm;
|
|
2511
2466
|
case 2:
|
|
2512
2467
|
this.k9_1 = 9;
|
|
2513
|
-
this.
|
|
2468
|
+
this.e60_1 = Unit_instance;
|
|
2514
2469
|
this.j9_1 = 3;
|
|
2515
2470
|
continue $sm;
|
|
2516
2471
|
case 3:
|
|
2517
|
-
this.
|
|
2518
|
-
if (!(this.
|
|
2472
|
+
this.f60_1 = getExceptionIfCooldown(this.t5z_1);
|
|
2473
|
+
if (!(this.f60_1 == null)) {
|
|
2519
2474
|
var tmp_2 = this;
|
|
2520
|
-
var exception = this.
|
|
2521
|
-
tmp_2.
|
|
2475
|
+
var exception = this.f60_1;
|
|
2476
|
+
tmp_2.e60_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2522
2477
|
this.j9_1 = 7;
|
|
2523
2478
|
continue $sm;
|
|
2524
2479
|
} else {
|
|
@@ -2529,7 +2484,7 @@
|
|
|
2529
2484
|
case 4:
|
|
2530
2485
|
this.k9_1 = 6;
|
|
2531
2486
|
this.j9_1 = 5;
|
|
2532
|
-
suspendResult = requestNewPool(this.
|
|
2487
|
+
suspendResult = requestNewPool(this.t5z_1, this.u5z_1, this.v5z_1, this.w5z_1, this.x5z_1, this.y5z_1, this);
|
|
2533
2488
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2534
2489
|
return suspendResult;
|
|
2535
2490
|
}
|
|
@@ -2537,23 +2492,20 @@
|
|
|
2537
2492
|
continue $sm;
|
|
2538
2493
|
case 5:
|
|
2539
2494
|
var randomPoolValue = suspendResult;
|
|
2540
|
-
var
|
|
2541
|
-
var key = randomPoolValue.k5r_1
|
|
2542
|
-
|
|
2543
|
-
this.
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
tmp_3.g5v_1 = new Result(_Result___init__impl__xyqfz8(Unit_instance));
|
|
2547
|
-
this.j9_1 = 7;
|
|
2548
|
-
continue $sm;
|
|
2495
|
+
var tmp0 = this.t5z_1.o5x_1;
|
|
2496
|
+
var key = randomPoolValue.h5w_1.k5r_1;
|
|
2497
|
+
tmp0.k2(key, randomPoolValue);
|
|
2498
|
+
this.t5z_1.q5x_1 = 0;
|
|
2499
|
+
throwLinkageError("Property accessor 'latestFailedAttemptTime.<set-latestFailedAttemptTime>' can not be called: Property accessor uses unlinked class symbol 'kotlinx.datetime/Instant|null[0]'");
|
|
2500
|
+
break;
|
|
2549
2501
|
case 6:
|
|
2550
2502
|
this.k9_1 = 9;
|
|
2551
|
-
var
|
|
2552
|
-
if (
|
|
2503
|
+
var tmp_3 = this.m9_1;
|
|
2504
|
+
if (tmp_3 instanceof Error) {
|
|
2553
2505
|
var error = this.m9_1;
|
|
2554
|
-
var
|
|
2555
|
-
var exception_0 = mapToRandomExceptionIfError(this.
|
|
2556
|
-
|
|
2506
|
+
var tmp_4 = this;
|
|
2507
|
+
var exception_0 = mapToRandomExceptionIfError(this.t5z_1, error);
|
|
2508
|
+
tmp_4.e60_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2557
2509
|
this.j9_1 = 7;
|
|
2558
2510
|
continue $sm;
|
|
2559
2511
|
} else {
|
|
@@ -2561,19 +2513,19 @@
|
|
|
2561
2513
|
}
|
|
2562
2514
|
|
|
2563
2515
|
case 7:
|
|
2564
|
-
this.
|
|
2516
|
+
this.d60_1 = this.e60_1;
|
|
2565
2517
|
this.k9_1 = 10;
|
|
2566
2518
|
this.j9_1 = 8;
|
|
2567
2519
|
continue $sm;
|
|
2568
2520
|
case 8:
|
|
2569
|
-
var
|
|
2521
|
+
var tmp_5 = this.d60_1;
|
|
2570
2522
|
this.k9_1 = 10;
|
|
2571
|
-
this.
|
|
2572
|
-
return
|
|
2523
|
+
this.b60_1.l1o(this.c60_1);
|
|
2524
|
+
return tmp_5;
|
|
2573
2525
|
case 9:
|
|
2574
2526
|
this.k9_1 = 10;
|
|
2575
2527
|
var t = this.m9_1;
|
|
2576
|
-
this.
|
|
2528
|
+
this.b60_1.l1o(this.c60_1);
|
|
2577
2529
|
throw t;
|
|
2578
2530
|
case 10:
|
|
2579
2531
|
throw this.m9_1;
|
|
@@ -2589,36 +2541,36 @@
|
|
|
2589
2541
|
}
|
|
2590
2542
|
while (true);
|
|
2591
2543
|
};
|
|
2592
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2593
|
-
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.
|
|
2594
|
-
i.
|
|
2544
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).k1g = function ($this$withContext, completion) {
|
|
2545
|
+
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.t5z_1, this.u5z_1, this.v5z_1, this.w5z_1, this.x5z_1, this.y5z_1, completion);
|
|
2546
|
+
i.z5z_1 = $this$withContext;
|
|
2595
2547
|
return i;
|
|
2596
2548
|
};
|
|
2597
2549
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2598
2550
|
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2599
2551
|
var l = function ($this$withContext, $completion) {
|
|
2600
|
-
return i.
|
|
2552
|
+
return i.g60($this$withContext, $completion);
|
|
2601
2553
|
};
|
|
2602
2554
|
l.$arity = 1;
|
|
2603
2555
|
return l;
|
|
2604
2556
|
}
|
|
2605
2557
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2606
|
-
this.
|
|
2607
|
-
this.
|
|
2608
|
-
this.
|
|
2609
|
-
this.
|
|
2610
|
-
this.
|
|
2611
|
-
this.
|
|
2558
|
+
this.p60_1 = this$0;
|
|
2559
|
+
this.q60_1 = $min;
|
|
2560
|
+
this.r60_1 = $max;
|
|
2561
|
+
this.s60_1 = $cardsCount;
|
|
2562
|
+
this.t60_1 = $signed;
|
|
2563
|
+
this.u60_1 = $requestDurationWarnMillis;
|
|
2612
2564
|
CoroutineImpl.call(this, resultContinuation);
|
|
2613
2565
|
}
|
|
2614
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2615
|
-
var tmp = this.
|
|
2566
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).w60 = function ($this$withContext, $completion) {
|
|
2567
|
+
var tmp = this.k1g($this$withContext, $completion);
|
|
2616
2568
|
tmp.l9_1 = Unit_instance;
|
|
2617
2569
|
tmp.m9_1 = null;
|
|
2618
2570
|
return tmp.r9();
|
|
2619
2571
|
};
|
|
2620
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2621
|
-
return this.
|
|
2572
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).z9 = function (p1, $completion) {
|
|
2573
|
+
return this.w60((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2622
2574
|
};
|
|
2623
2575
|
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).r9 = function () {
|
|
2624
2576
|
var suspendResult = this.l9_1;
|
|
@@ -2628,9 +2580,8 @@
|
|
|
2628
2580
|
switch (tmp) {
|
|
2629
2581
|
case 0:
|
|
2630
2582
|
this.k9_1 = 2;
|
|
2631
|
-
this.y5v_1 = System_instance.a56();
|
|
2632
2583
|
this.j9_1 = 1;
|
|
2633
|
-
suspendResult = this.
|
|
2584
|
+
suspendResult = this.p60_1.j5x_1.d5u(this.q60_1, this.r60_1, this.p60_1.i5x_1.poolSize, this.s60_1, new CardDecksRequestUserData(this.p60_1.m5x_1(), this.p60_1.i5x_1.poolSize), this.t60_1, this);
|
|
2634
2585
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2635
2586
|
return suspendResult;
|
|
2636
2587
|
}
|
|
@@ -2638,18 +2589,9 @@
|
|
|
2638
2589
|
continue $sm;
|
|
2639
2590
|
case 1:
|
|
2640
2591
|
var result = suspendResult;
|
|
2641
|
-
var requestEndTime
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
var this_0 = this.w5v_1;
|
|
2645
|
-
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2646
|
-
var tmp_0 = 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ');
|
|
2647
|
-
Companion_getInstance_0();
|
|
2648
|
-
var this_1 = this.w5v_1;
|
|
2649
|
-
this.r5v_1.w5r_1.w('RandomPoolProvider', tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
return new RandomPoolValue(result);
|
|
2592
|
+
var requestEndTime;
|
|
2593
|
+
throwLinkageError("Can not read value from variable 'requestEndTime': Variable uses unlinked class symbol 'kotlinx.datetime/Instant|null[0]'");
|
|
2594
|
+
break;
|
|
2653
2595
|
case 2:
|
|
2654
2596
|
throw this.m9_1;
|
|
2655
2597
|
}
|
|
@@ -2664,31 +2606,31 @@
|
|
|
2664
2606
|
}
|
|
2665
2607
|
while (true);
|
|
2666
2608
|
};
|
|
2667
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2668
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2669
|
-
i.
|
|
2609
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).k1g = function ($this$withContext, completion) {
|
|
2610
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.p60_1, this.q60_1, this.r60_1, this.s60_1, this.t60_1, this.u60_1, completion);
|
|
2611
|
+
i.v60_1 = $this$withContext;
|
|
2670
2612
|
return i;
|
|
2671
2613
|
};
|
|
2672
2614
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2673
2615
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2674
2616
|
var l = function ($this$withContext, $completion) {
|
|
2675
|
-
return i.
|
|
2617
|
+
return i.w60($this$withContext, $completion);
|
|
2676
2618
|
};
|
|
2677
2619
|
l.$arity = 1;
|
|
2678
2620
|
return l;
|
|
2679
2621
|
}
|
|
2680
|
-
function $getOrLoadGameCardDeckDataCOROUTINE$
|
|
2622
|
+
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2681
2623
|
CoroutineImpl.call(this, resultContinuation);
|
|
2682
|
-
this.
|
|
2683
|
-
this.
|
|
2684
|
-
this.
|
|
2685
|
-
this.
|
|
2686
|
-
this.
|
|
2687
|
-
this.
|
|
2688
|
-
this.
|
|
2689
|
-
this.
|
|
2690
|
-
}
|
|
2691
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$
|
|
2624
|
+
this.z5w_1 = _this__u8e3s4;
|
|
2625
|
+
this.a5x_1 = minRoundsCountInPool;
|
|
2626
|
+
this.b5x_1 = userData;
|
|
2627
|
+
this.c5x_1 = min;
|
|
2628
|
+
this.d5x_1 = max;
|
|
2629
|
+
this.e5x_1 = cardsCount;
|
|
2630
|
+
this.f5x_1 = signed;
|
|
2631
|
+
this.g5x_1 = requestDurationWarnMillis;
|
|
2632
|
+
}
|
|
2633
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).r9 = function () {
|
|
2692
2634
|
var suspendResult = this.l9_1;
|
|
2693
2635
|
$sm: do
|
|
2694
2636
|
try {
|
|
@@ -2696,9 +2638,9 @@
|
|
|
2696
2638
|
switch (tmp) {
|
|
2697
2639
|
case 0:
|
|
2698
2640
|
this.k9_1 = 2;
|
|
2699
|
-
this.
|
|
2641
|
+
this.h5x_1 = this.b5x_1.gameId;
|
|
2700
2642
|
this.j9_1 = 1;
|
|
2701
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2643
|
+
suspendResult = getPreparedOrRequestPool(this.z5w_1, this.h5x_1, this.c5x_1, this.d5x_1, this.a5x_1, this.e5x_1, this.f5x_1, this.g5x_1, this);
|
|
2702
2644
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2703
2645
|
return suspendResult;
|
|
2704
2646
|
}
|
|
@@ -2706,16 +2648,16 @@
|
|
|
2706
2648
|
continue $sm;
|
|
2707
2649
|
case 1:
|
|
2708
2650
|
var randomPoolValue = suspendResult;
|
|
2709
|
-
var
|
|
2710
|
-
var key = randomPoolValue.k5r_1
|
|
2711
|
-
|
|
2712
|
-
var cardDeckData = randomPoolValue.
|
|
2713
|
-
var tmp21_poolId = randomPoolValue.k5r_1
|
|
2714
|
-
var tmp22_signature = randomPoolValue.
|
|
2715
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2716
|
-
var
|
|
2717
|
-
var key_0 = this.
|
|
2718
|
-
|
|
2651
|
+
var tmp0 = this.z5w_1.o5x_1;
|
|
2652
|
+
var key = randomPoolValue.h5w_1.k5r_1;
|
|
2653
|
+
tmp0.k2(key, randomPoolValue);
|
|
2654
|
+
var cardDeckData = randomPoolValue.p5w(this.b5x_1.gameId);
|
|
2655
|
+
var tmp21_poolId = randomPoolValue.h5w_1.k5r_1;
|
|
2656
|
+
var tmp22_signature = randomPoolValue.h5w_1.l5r_1;
|
|
2657
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.z5w_1, tmp21_poolId, tmp22_signature, cardDeckData, this.b5x_1);
|
|
2658
|
+
var tmp0_0 = this.z5w_1.p5x_1;
|
|
2659
|
+
var key_0 = this.b5x_1.gameId;
|
|
2660
|
+
tmp0_0.k2(key_0, cardDecksRecord);
|
|
2719
2661
|
return cardDeckData;
|
|
2720
2662
|
case 2:
|
|
2721
2663
|
throw this.m9_1;
|
|
@@ -2731,18 +2673,18 @@
|
|
|
2731
2673
|
}
|
|
2732
2674
|
while (true);
|
|
2733
2675
|
};
|
|
2734
|
-
function $getPreparedOrRequestPoolCOROUTINE$
|
|
2676
|
+
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2735
2677
|
CoroutineImpl.call(this, resultContinuation);
|
|
2736
|
-
this.
|
|
2737
|
-
this.
|
|
2738
|
-
this.
|
|
2739
|
-
this.
|
|
2740
|
-
this.
|
|
2741
|
-
this.
|
|
2742
|
-
this.
|
|
2743
|
-
this.
|
|
2744
|
-
}
|
|
2745
|
-
protoOf($getPreparedOrRequestPoolCOROUTINE$
|
|
2678
|
+
this.z5x_1 = _this__u8e3s4;
|
|
2679
|
+
this.a5y_1 = gameId;
|
|
2680
|
+
this.b5y_1 = min;
|
|
2681
|
+
this.c5y_1 = max;
|
|
2682
|
+
this.d5y_1 = minRoundsCount;
|
|
2683
|
+
this.e5y_1 = cardsCount;
|
|
2684
|
+
this.f5y_1 = signed;
|
|
2685
|
+
this.g5y_1 = requestDurationWarnMillis;
|
|
2686
|
+
}
|
|
2687
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$).r9 = function () {
|
|
2746
2688
|
var suspendResult = this.l9_1;
|
|
2747
2689
|
$sm: do
|
|
2748
2690
|
try {
|
|
@@ -2751,41 +2693,41 @@
|
|
|
2751
2693
|
case 0:
|
|
2752
2694
|
this.k9_1 = 2;
|
|
2753
2695
|
var tmp_0 = this;
|
|
2754
|
-
var
|
|
2696
|
+
var tmp0 = this.z5x_1.o5x_1;
|
|
2755
2697
|
var destination = LinkedHashMap_init_$Create$();
|
|
2756
|
-
var
|
|
2757
|
-
while (
|
|
2758
|
-
var element =
|
|
2759
|
-
var
|
|
2760
|
-
var key = this.
|
|
2761
|
-
if ((isInterface(
|
|
2762
|
-
destination.
|
|
2698
|
+
var _iterator__ex2g4s = tmp0.s().j();
|
|
2699
|
+
while (_iterator__ex2g4s.k()) {
|
|
2700
|
+
var element = _iterator__ex2g4s.l();
|
|
2701
|
+
var tmp0_0 = element.u().i5w_1;
|
|
2702
|
+
var key = this.a5y_1;
|
|
2703
|
+
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).f2(key)) {
|
|
2704
|
+
destination.k2(element.t(), element.u());
|
|
2763
2705
|
}
|
|
2764
2706
|
}
|
|
2765
2707
|
|
|
2766
|
-
tmp_0.
|
|
2767
|
-
if (!(this.
|
|
2768
|
-
return this.
|
|
2708
|
+
tmp_0.h5y_1 = firstOrNull(destination.s());
|
|
2709
|
+
if (!(this.h5y_1 == null)) {
|
|
2710
|
+
return this.h5y_1.u().o5w(this.a5y_1);
|
|
2769
2711
|
}
|
|
2770
2712
|
|
|
2771
2713
|
var tmp_1 = this;
|
|
2772
|
-
var
|
|
2714
|
+
var tmp0_1 = this.z5x_1.o5x_1;
|
|
2773
2715
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2774
|
-
var
|
|
2775
|
-
while (
|
|
2776
|
-
var element_0 =
|
|
2777
|
-
if (element_0.u().
|
|
2778
|
-
destination_0.
|
|
2716
|
+
var _iterator__ex2g4s_0 = tmp0_1.s().j();
|
|
2717
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
2718
|
+
var element_0 = _iterator__ex2g4s_0.l();
|
|
2719
|
+
if (element_0.u().l5w(this.d5y_1)) {
|
|
2720
|
+
destination_0.k2(element_0.t(), element_0.u());
|
|
2779
2721
|
}
|
|
2780
2722
|
}
|
|
2781
2723
|
|
|
2782
|
-
tmp_1.
|
|
2783
|
-
if (!(this.
|
|
2784
|
-
return this.
|
|
2724
|
+
tmp_1.i5y_1 = firstOrNull(destination_0.s());
|
|
2725
|
+
if (!(this.i5y_1 == null)) {
|
|
2726
|
+
return this.i5y_1.u().m5w(this.a5y_1, this.d5y_1, this.z5x_1.i5x_1.thresholdForUsedPool);
|
|
2785
2727
|
}
|
|
2786
2728
|
|
|
2787
2729
|
this.j9_1 = 1;
|
|
2788
|
-
suspendResult = requestNewPool(this.
|
|
2730
|
+
suspendResult = requestNewPool(this.z5x_1, this.b5y_1, this.c5y_1, this.e5y_1, this.f5y_1, this.g5y_1, this);
|
|
2789
2731
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2790
2732
|
return suspendResult;
|
|
2791
2733
|
}
|
|
@@ -2793,7 +2735,7 @@
|
|
|
2793
2735
|
continue $sm;
|
|
2794
2736
|
case 1:
|
|
2795
2737
|
var cardDecks = suspendResult;
|
|
2796
|
-
return cardDecks.
|
|
2738
|
+
return cardDecks.m5w(this.a5y_1, this.d5y_1, this.z5x_1.i5x_1.thresholdForUsedPool);
|
|
2797
2739
|
case 2:
|
|
2798
2740
|
throw this.m9_1;
|
|
2799
2741
|
}
|
|
@@ -2809,7 +2751,7 @@
|
|
|
2809
2751
|
while (true);
|
|
2810
2752
|
};
|
|
2811
2753
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2812
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2754
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().b12_1 : dispatcher;
|
|
2813
2755
|
var tmp;
|
|
2814
2756
|
if (idsProvider === VOID) {
|
|
2815
2757
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2817,92 +2759,89 @@
|
|
|
2817
2759
|
tmp = idsProvider;
|
|
2818
2760
|
}
|
|
2819
2761
|
idsProvider = tmp;
|
|
2820
|
-
this.
|
|
2821
|
-
this.
|
|
2822
|
-
this.
|
|
2823
|
-
this.
|
|
2824
|
-
this.
|
|
2825
|
-
this.
|
|
2762
|
+
this.i5x_1 = params;
|
|
2763
|
+
this.j5x_1 = randomOrgApiService;
|
|
2764
|
+
this.k5x_1 = logger;
|
|
2765
|
+
this.l5x_1 = dispatcher;
|
|
2766
|
+
this.m5x_1 = idsProvider;
|
|
2767
|
+
this.n5x_1 = Mutex();
|
|
2826
2768
|
var tmp_0 = this;
|
|
2827
2769
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2828
|
-
tmp_0.
|
|
2770
|
+
tmp_0.o5x_1 = LinkedHashMap_init_$Create$();
|
|
2829
2771
|
var tmp_1 = this;
|
|
2830
2772
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2831
|
-
tmp_1.
|
|
2832
|
-
this.
|
|
2833
|
-
this.d5s_1 = 0;
|
|
2773
|
+
tmp_1.p5x_1 = LinkedHashMap_init_$Create$();
|
|
2774
|
+
this.q5x_1 = 0;
|
|
2834
2775
|
}
|
|
2835
|
-
protoOf(RandomPoolProviderImpl).
|
|
2836
|
-
var tmp = withContext(this.
|
|
2776
|
+
protoOf(RandomPoolProviderImpl).d5w = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2777
|
+
var tmp = withContext(this.l5x_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2837
2778
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2838
2779
|
return tmp;
|
|
2839
2780
|
return tmp;
|
|
2840
2781
|
};
|
|
2841
|
-
protoOf(RandomPoolProviderImpl).
|
|
2842
|
-
var tmp = withContext(this.
|
|
2782
|
+
protoOf(RandomPoolProviderImpl).f5w = function (min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2783
|
+
var tmp = withContext(this.l5x_1, RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2843
2784
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2844
2785
|
return tmp;
|
|
2845
2786
|
return tmp;
|
|
2846
2787
|
};
|
|
2847
|
-
protoOf(RandomPoolProviderImpl).
|
|
2848
|
-
return this.
|
|
2788
|
+
protoOf(RandomPoolProviderImpl).x60 = function (gameId) {
|
|
2789
|
+
return this.p5x_1.h2(gameId);
|
|
2849
2790
|
};
|
|
2850
2791
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2851
|
-
return this.
|
|
2792
|
+
return this.x60(gameId);
|
|
2852
2793
|
};
|
|
2853
|
-
protoOf(RandomPoolProviderImpl).
|
|
2854
|
-
return this.
|
|
2794
|
+
protoOf(RandomPoolProviderImpl).y60 = function (id) {
|
|
2795
|
+
return this.o5x_1.h2(id);
|
|
2855
2796
|
};
|
|
2856
2797
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2857
|
-
return this.
|
|
2798
|
+
return this.y60(id);
|
|
2858
2799
|
};
|
|
2859
|
-
protoOf(RandomPoolProviderImpl).
|
|
2860
|
-
return this.
|
|
2800
|
+
protoOf(RandomPoolProviderImpl).z60 = function () {
|
|
2801
|
+
return this.o5x_1.m();
|
|
2861
2802
|
};
|
|
2862
2803
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2863
|
-
return this.
|
|
2804
|
+
return this.z60();
|
|
2864
2805
|
};
|
|
2865
|
-
protoOf(RandomPoolProviderImpl).
|
|
2866
|
-
var gameCardDecksRecord = this.
|
|
2806
|
+
protoOf(RandomPoolProviderImpl).g5w = function (gameId) {
|
|
2807
|
+
var gameCardDecksRecord = this.p5x_1.h2(gameId);
|
|
2867
2808
|
if (!(gameCardDecksRecord == null)) {
|
|
2868
|
-
var randomPoolValue = this.
|
|
2809
|
+
var randomPoolValue = this.o5x_1.h2(gameCardDecksRecord.poolId);
|
|
2869
2810
|
if (!(randomPoolValue == null)) {
|
|
2870
2811
|
// Inline function 'kotlin.apply' call
|
|
2871
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
if (newPoolValue.l5r_1.p()) {
|
|
2877
|
-
this.a5s_1.o2(gameCardDecksRecord.poolId);
|
|
2812
|
+
var this_0 = toMutableMap(randomPoolValue.i5w_1);
|
|
2813
|
+
this_0.l2(gameId);
|
|
2814
|
+
var newPoolValue = randomPoolValue.n5w(VOID, toMap(this_0));
|
|
2815
|
+
if (newPoolValue.i5w_1.p()) {
|
|
2816
|
+
this.o5x_1.l2(gameCardDecksRecord.poolId);
|
|
2878
2817
|
} else {
|
|
2818
|
+
var tmp0 = this.o5x_1;
|
|
2879
2819
|
// Inline function 'kotlin.collections.set' call
|
|
2880
|
-
var this_1 = this.a5s_1;
|
|
2881
2820
|
var key = gameCardDecksRecord.poolId;
|
|
2882
|
-
|
|
2821
|
+
tmp0.k2(key, newPoolValue);
|
|
2883
2822
|
}
|
|
2884
2823
|
}
|
|
2885
2824
|
}
|
|
2886
|
-
this.
|
|
2825
|
+
this.p5x_1.l2(gameId);
|
|
2887
2826
|
};
|
|
2888
2827
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2889
2828
|
return function ($this$defaultRequest) {
|
|
2890
2829
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2891
|
-
$this$defaultRequest.
|
|
2830
|
+
$this$defaultRequest.l37($url);
|
|
2892
2831
|
return Unit_instance;
|
|
2893
2832
|
};
|
|
2894
2833
|
}
|
|
2895
|
-
function ApiCommonConfigs$setupLogging$
|
|
2896
|
-
this.
|
|
2834
|
+
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2835
|
+
this.a61_1 = $externalLogger;
|
|
2897
2836
|
}
|
|
2898
|
-
protoOf(ApiCommonConfigs$setupLogging$
|
|
2899
|
-
this.
|
|
2837
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).m3y = function (message) {
|
|
2838
|
+
this.a61_1(message);
|
|
2900
2839
|
};
|
|
2901
2840
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2902
2841
|
return function ($this$install) {
|
|
2903
|
-
$this$install.
|
|
2904
|
-
$this$install.
|
|
2905
|
-
$this$install.
|
|
2842
|
+
$this$install.c40(get_DEFAULT(Companion_instance_0));
|
|
2843
|
+
$this$install.b40_1 = $config.d61_1;
|
|
2844
|
+
$this$install.c40(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2906
2845
|
return Unit_instance;
|
|
2907
2846
|
};
|
|
2908
2847
|
}
|
|
@@ -2914,32 +2853,32 @@
|
|
|
2914
2853
|
}
|
|
2915
2854
|
function ApiCommonConfigs() {
|
|
2916
2855
|
}
|
|
2917
|
-
protoOf(ApiCommonConfigs).
|
|
2918
|
-
_this__u8e3s4.
|
|
2919
|
-
this.
|
|
2920
|
-
this.
|
|
2921
|
-
this.
|
|
2856
|
+
protoOf(ApiCommonConfigs).f61 = function (_this__u8e3s4, config, externalLogger) {
|
|
2857
|
+
_this__u8e3s4.x2y_1 = true;
|
|
2858
|
+
this.g61(_this__u8e3s4, config.b61_1);
|
|
2859
|
+
this.h61(_this__u8e3s4, config.e61_1);
|
|
2860
|
+
this.i61(_this__u8e3s4, config, externalLogger);
|
|
2922
2861
|
};
|
|
2923
|
-
protoOf(ApiCommonConfigs).
|
|
2862
|
+
protoOf(ApiCommonConfigs).g61 = function (_this__u8e3s4, url) {
|
|
2924
2863
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2925
2864
|
};
|
|
2926
|
-
protoOf(ApiCommonConfigs).
|
|
2865
|
+
protoOf(ApiCommonConfigs).i61 = function (_this__u8e3s4, config, externalLogger) {
|
|
2927
2866
|
var tmp = Companion_getInstance_1();
|
|
2928
|
-
_this__u8e3s4.
|
|
2867
|
+
_this__u8e3s4.s2z(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2929
2868
|
};
|
|
2930
|
-
protoOf(ApiCommonConfigs).
|
|
2869
|
+
protoOf(ApiCommonConfigs).h61 = function (_this__u8e3s4, json) {
|
|
2931
2870
|
var tmp = Plugin_getInstance();
|
|
2932
|
-
_this__u8e3s4.
|
|
2871
|
+
_this__u8e3s4.s2z(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2933
2872
|
};
|
|
2934
2873
|
var ApiCommonConfigs_instance;
|
|
2935
2874
|
function ApiCommonConfigs_getInstance() {
|
|
2936
2875
|
return ApiCommonConfigs_instance;
|
|
2937
2876
|
}
|
|
2938
2877
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2939
|
-
$this$Json.
|
|
2940
|
-
$this$Json.
|
|
2941
|
-
$this$Json.
|
|
2942
|
-
$this$Json.
|
|
2878
|
+
$this$Json.l4z_1 = true;
|
|
2879
|
+
$this$Json.k4z_1 = true;
|
|
2880
|
+
$this$Json.j4z_1 = true;
|
|
2881
|
+
$this$Json.i4z_1 = false;
|
|
2943
2882
|
return Unit_instance;
|
|
2944
2883
|
}
|
|
2945
2884
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2952,19 +2891,19 @@
|
|
|
2952
2891
|
tmp = json;
|
|
2953
2892
|
}
|
|
2954
2893
|
json = tmp;
|
|
2955
|
-
this.
|
|
2956
|
-
this.
|
|
2957
|
-
this.
|
|
2958
|
-
this.
|
|
2894
|
+
this.b61_1 = baseUrl;
|
|
2895
|
+
this.c61_1 = timeoutMillis;
|
|
2896
|
+
this.d61_1 = loggingLevel;
|
|
2897
|
+
this.e61_1 = json;
|
|
2959
2898
|
}
|
|
2960
2899
|
protoOf(HttpParams).toString = function () {
|
|
2961
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2900
|
+
return 'HttpParams(baseUrl=' + this.b61_1 + ', timeoutMillis=' + this.c61_1.toString() + ', loggingLevel=' + this.d61_1.toString() + ', json=' + toString(this.e61_1) + ')';
|
|
2962
2901
|
};
|
|
2963
2902
|
protoOf(HttpParams).hashCode = function () {
|
|
2964
|
-
var result = getStringHashCode(this.
|
|
2965
|
-
result = imul(result, 31) + this.
|
|
2966
|
-
result = imul(result, 31) + this.
|
|
2967
|
-
result = imul(result, 31) + hashCode(this.
|
|
2903
|
+
var result = getStringHashCode(this.b61_1);
|
|
2904
|
+
result = imul(result, 31) + this.c61_1.hashCode() | 0;
|
|
2905
|
+
result = imul(result, 31) + this.d61_1.hashCode() | 0;
|
|
2906
|
+
result = imul(result, 31) + hashCode(this.e61_1) | 0;
|
|
2968
2907
|
return result;
|
|
2969
2908
|
};
|
|
2970
2909
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2973,13 +2912,13 @@
|
|
|
2973
2912
|
if (!(other instanceof HttpParams))
|
|
2974
2913
|
return false;
|
|
2975
2914
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2976
|
-
if (!(this.
|
|
2915
|
+
if (!(this.b61_1 === tmp0_other_with_cast.b61_1))
|
|
2977
2916
|
return false;
|
|
2978
|
-
if (!this.
|
|
2917
|
+
if (!this.c61_1.equals(tmp0_other_with_cast.c61_1))
|
|
2979
2918
|
return false;
|
|
2980
|
-
if (!this.
|
|
2919
|
+
if (!this.d61_1.equals(tmp0_other_with_cast.d61_1))
|
|
2981
2920
|
return false;
|
|
2982
|
-
if (!equals(this.
|
|
2921
|
+
if (!equals(this.e61_1, tmp0_other_with_cast.e61_1))
|
|
2983
2922
|
return false;
|
|
2984
2923
|
return true;
|
|
2985
2924
|
};
|
|
@@ -3003,12 +2942,12 @@
|
|
|
3003
2942
|
}
|
|
3004
2943
|
function nextBytesCopyTo($this, bytes) {
|
|
3005
2944
|
try {
|
|
3006
|
-
$this.
|
|
2945
|
+
$this.k61_1.w5q(bytes);
|
|
3007
2946
|
} catch ($p) {
|
|
3008
2947
|
if ($p instanceof SecRandomCopyException) {
|
|
3009
2948
|
var error = $p;
|
|
3010
|
-
$this.
|
|
3011
|
-
$this.
|
|
2949
|
+
$this.j61_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2950
|
+
$this.l61_1.jh(bytes);
|
|
3012
2951
|
return Unit_instance;
|
|
3013
2952
|
} else {
|
|
3014
2953
|
throw $p;
|
|
@@ -3020,25 +2959,23 @@
|
|
|
3020
2959
|
return 31 - clz32(value) | 0;
|
|
3021
2960
|
}
|
|
3022
2961
|
function checkRangeBounds($this, from, until) {
|
|
3023
|
-
// Inline function 'kotlin.
|
|
3024
|
-
var tmp;
|
|
2962
|
+
// Inline function 'kotlin.require' call
|
|
3025
2963
|
if (!(until > from)) {
|
|
3026
|
-
// Inline function 'games.raspberry.card_game.random.utils.random.SecureRandom.checkRangeBounds.<anonymous>' call
|
|
3027
2964
|
var message = boundsErrorMessage($this, from, until);
|
|
3028
2965
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3029
2966
|
}
|
|
3030
|
-
return
|
|
2967
|
+
return Unit_instance;
|
|
3031
2968
|
}
|
|
3032
2969
|
function boundsErrorMessage($this, from, until) {
|
|
3033
2970
|
return 'Random range is empty: [' + toString(from) + ', ' + toString(until) + ').';
|
|
3034
2971
|
}
|
|
3035
2972
|
function SecureRandom_0(logger) {
|
|
3036
2973
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
3037
|
-
this.
|
|
3038
|
-
this.
|
|
3039
|
-
this.
|
|
2974
|
+
this.j61_1 = logger;
|
|
2975
|
+
this.k61_1 = new SecureRandom();
|
|
2976
|
+
this.l61_1 = Default_getInstance();
|
|
3040
2977
|
}
|
|
3041
|
-
protoOf(SecureRandom_0).
|
|
2978
|
+
protoOf(SecureRandom_0).gh = function (from, until) {
|
|
3042
2979
|
checkRangeBounds(this, from, until);
|
|
3043
2980
|
var n = until - from | 0;
|
|
3044
2981
|
if (n > 0 || n === -2147483648) {
|
|
@@ -3065,7 +3002,7 @@
|
|
|
3065
3002
|
}
|
|
3066
3003
|
}
|
|
3067
3004
|
};
|
|
3068
|
-
protoOf(SecureRandom_0).
|
|
3005
|
+
protoOf(SecureRandom_0).n61 = function () {
|
|
3069
3006
|
return !(nextBits(this, 1) === 0);
|
|
3070
3007
|
};
|
|
3071
3008
|
function CustomRandom() {
|
|
@@ -3078,33 +3015,29 @@
|
|
|
3078
3015
|
var pile2 = ArrayList_init_$Create$_0();
|
|
3079
3016
|
var twentypc = deck.m() / 5 | 0;
|
|
3080
3017
|
// Inline function 'kotlin.repeat' call
|
|
3081
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3082
3018
|
var inductionVariable = 0;
|
|
3083
3019
|
if (inductionVariable < iterations)
|
|
3084
3020
|
do {
|
|
3085
3021
|
var index = inductionVariable;
|
|
3086
3022
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3087
|
-
// Inline function 'games.raspberry.card_game.random.utils.random.overhand.<anonymous>' call
|
|
3088
3023
|
while (pile.m() > 0) {
|
|
3024
|
+
var tmp0 = pile.m();
|
|
3089
3025
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3090
|
-
var
|
|
3091
|
-
var
|
|
3092
|
-
|
|
3093
|
-
pile2.e2(0, take(pile, cards));
|
|
3026
|
+
var b = 1 + random.m61(VOID, twentypc) | 0;
|
|
3027
|
+
var cards = Math.min(tmp0, b);
|
|
3028
|
+
pile2.b2(0, take(pile, cards));
|
|
3094
3029
|
// Inline function 'kotlin.repeat' call
|
|
3095
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3096
3030
|
var inductionVariable_0 = 0;
|
|
3097
3031
|
if (inductionVariable_0 < cards)
|
|
3098
3032
|
do {
|
|
3099
3033
|
var index_0 = inductionVariable_0;
|
|
3100
3034
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3101
|
-
|
|
3102
|
-
pile.h2(0);
|
|
3035
|
+
pile.e2(0);
|
|
3103
3036
|
}
|
|
3104
3037
|
while (inductionVariable_0 < cards);
|
|
3105
3038
|
}
|
|
3106
3039
|
pile.n(pile2);
|
|
3107
|
-
pile2.
|
|
3040
|
+
pile2.a2();
|
|
3108
3041
|
}
|
|
3109
3042
|
while (inductionVariable < iterations);
|
|
3110
3043
|
return pile;
|
|
@@ -3114,27 +3047,25 @@
|
|
|
3114
3047
|
var deck = _this__u8e3s4;
|
|
3115
3048
|
var pile = toMutableList(deck);
|
|
3116
3049
|
// Inline function 'kotlin.repeat' call
|
|
3117
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3118
3050
|
var inductionVariable = 0;
|
|
3119
3051
|
if (inductionVariable < iterations)
|
|
3120
3052
|
do {
|
|
3121
3053
|
var index = inductionVariable;
|
|
3122
3054
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3123
|
-
// Inline function 'games.raspberry.card_game.random.utils.random.riffle.<anonymous>' call
|
|
3124
3055
|
var mid = deck.m() / 2 | 0;
|
|
3125
3056
|
var tenpc = mid / 10 | 0;
|
|
3126
|
-
var cut = (mid - tenpc | 0) + random.
|
|
3057
|
+
var cut = (mid - tenpc | 0) + random.m61(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3127
3058
|
var deck1 = toMutableList(take(pile, cut));
|
|
3128
3059
|
var deck2 = toMutableList(drop(pile, cut));
|
|
3129
|
-
pile.
|
|
3130
|
-
var fromTop = random.
|
|
3060
|
+
pile.a2();
|
|
3061
|
+
var fromTop = random.n61();
|
|
3131
3062
|
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
3132
3063
|
if (fromTop) {
|
|
3133
|
-
pile.e(deck1.
|
|
3134
|
-
pile.e(deck2.
|
|
3064
|
+
pile.e(deck1.e2(0));
|
|
3065
|
+
pile.e(deck2.e2(0));
|
|
3135
3066
|
} else {
|
|
3136
|
-
pile.e(deck1.
|
|
3137
|
-
pile.e(deck2.
|
|
3067
|
+
pile.e(deck1.e2(get_lastIndex(deck1)));
|
|
3068
|
+
pile.e(deck2.e2(get_lastIndex(deck2)));
|
|
3138
3069
|
}
|
|
3139
3070
|
}
|
|
3140
3071
|
if (deck1.m() > 0) {
|
|
@@ -3149,22 +3080,22 @@
|
|
|
3149
3080
|
}
|
|
3150
3081
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3151
3082
|
return function ($this$install) {
|
|
3152
|
-
$this$install.
|
|
3153
|
-
$this$install.
|
|
3083
|
+
$this$install.o3j($config.c61_1);
|
|
3084
|
+
$this$install.m3j($config.c61_1);
|
|
3154
3085
|
return Unit_instance;
|
|
3155
3086
|
};
|
|
3156
3087
|
}
|
|
3157
3088
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3158
3089
|
return function ($this$HttpClient) {
|
|
3159
3090
|
var tmp = Plugin_getInstance_0();
|
|
3160
|
-
$this$HttpClient.
|
|
3161
|
-
ApiCommonConfigs_instance.
|
|
3091
|
+
$this$HttpClient.s2z(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3092
|
+
ApiCommonConfigs_instance.f61($this$HttpClient, $config, $externalLogger);
|
|
3162
3093
|
return Unit_instance;
|
|
3163
3094
|
};
|
|
3164
3095
|
}
|
|
3165
3096
|
function HttpFactory() {
|
|
3166
3097
|
}
|
|
3167
|
-
protoOf(HttpFactory).
|
|
3098
|
+
protoOf(HttpFactory).p61 = function (config, externalLogger) {
|
|
3168
3099
|
var tmp = Js_instance;
|
|
3169
3100
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3170
3101
|
};
|
|
@@ -3173,15 +3104,15 @@
|
|
|
3173
3104
|
return HttpFactory_instance;
|
|
3174
3105
|
}
|
|
3175
3106
|
//region block: post-declaration
|
|
3176
|
-
protoOf($serializer).
|
|
3177
|
-
protoOf($serializer_0).
|
|
3178
|
-
protoOf($serializer_2).
|
|
3179
|
-
protoOf($serializer_3).
|
|
3180
|
-
protoOf($serializer_5).
|
|
3181
|
-
protoOf($serializer_6).
|
|
3182
|
-
protoOf(RandomPoolProviderImpl).
|
|
3183
|
-
protoOf(SecureRandom_0).
|
|
3184
|
-
protoOf(SecureRandom_0).
|
|
3107
|
+
protoOf($serializer).b4k = typeParametersSerializers;
|
|
3108
|
+
protoOf($serializer_0).b4k = typeParametersSerializers;
|
|
3109
|
+
protoOf($serializer_2).b4k = typeParametersSerializers;
|
|
3110
|
+
protoOf($serializer_3).b4k = typeParametersSerializers;
|
|
3111
|
+
protoOf($serializer_5).b4k = typeParametersSerializers;
|
|
3112
|
+
protoOf($serializer_6).b4k = typeParametersSerializers;
|
|
3113
|
+
protoOf(RandomPoolProviderImpl).e5w = getCardDeck$default;
|
|
3114
|
+
protoOf(SecureRandom_0).m61 = nextInt$default;
|
|
3115
|
+
protoOf(SecureRandom_0).o61 = shuffle;
|
|
3185
3116
|
//endregion
|
|
3186
3117
|
//region block: init
|
|
3187
3118
|
Companion_instance_1 = new Companion();
|