raspberry_games_server_game_logic 1.8.431 → 1.8.433

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/Kosi-Kaverit-kaverit.js +2 -2
  2. package/Kosi-Kodein-kodein-di.js +16 -16
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +151 -151
  4. package/Logic_Debertz-ai_module.js +193 -193
  5. package/Logic_Debertz-core.js +536 -536
  6. package/Logic_Debertz-engine.js +3710 -3649
  7. package/Logic_Debertz-engine.js.map +1 -1
  8. package/Logic_Debertz-game_server.d.ts +16 -0
  9. package/Logic_Debertz-game_server.js +1001 -1001
  10. package/kotlin-kotlin-stdlib.js +546 -540
  11. package/kotlin-kotlin-stdlib.js.map +1 -1
  12. package/kotlinx-atomicfu.js +13 -13
  13. package/kotlinx-coroutines-core.js +2160 -2160
  14. package/kotlinx-io-kotlinx-io-core.js +314 -314
  15. package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
  16. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  17. package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
  18. package/ktor-ktor-client-content-negotiation.js +123 -123
  19. package/ktor-ktor-client-core.js +1442 -1442
  20. package/ktor-ktor-client-logging.js +265 -265
  21. package/ktor-ktor-events.js +6 -6
  22. package/ktor-ktor-http.js +590 -590
  23. package/ktor-ktor-io.js +1241 -1241
  24. package/ktor-ktor-serialization-kotlinx-json.js +6 -6
  25. package/ktor-ktor-serialization-kotlinx.js +132 -132
  26. package/ktor-ktor-serialization.js +61 -61
  27. package/ktor-ktor-utils.js +483 -483
  28. package/ktor-ktor-websockets.js +42 -42
  29. package/package.json +1 -1
  30. package/random-library-crypto-rand.js +1 -1
  31. package/random-library-secure-random.js +2 -2
  32. package/raspberry-cardgame-lib-core.js +7 -7
  33. package/raspberry-cardgame-lib-logger.js +90 -90
  34. package/raspberry-cardgame-lib-random.js +794 -794
  35. package/raspberry-cardgame-lib-random.js.map +1 -1
  36. package/uuid.js +12 -12
@@ -79,14 +79,14 @@
79
79
  while (inductionVariable < last) {
80
80
  var element = this_0[inductionVariable];
81
81
  inductionVariable = inductionVariable + 1 | 0;
82
- var tmp$ret$0 = element.l3p_1;
82
+ var tmp$ret$0 = element.m3p_1;
83
83
  destination.f2(tmp$ret$0, element);
84
84
  }
85
- tmp.m3p_1 = destination;
86
- this.n3p_1 = Codes_INTERNAL_ERROR_getInstance();
85
+ tmp.n3p_1 = destination;
86
+ this.o3p_1 = Codes_INTERNAL_ERROR_getInstance();
87
87
  }
88
- protoOf(Companion).o3p = function (code) {
89
- return this.m3p_1.c2(code);
88
+ protoOf(Companion).p3p = function (code) {
89
+ return this.n3p_1.c2(code);
90
90
  };
91
91
  var Companion_instance;
92
92
  function Companion_getInstance() {
@@ -119,7 +119,7 @@
119
119
  }
120
120
  function Codes(name, ordinal, code) {
121
121
  Enum.call(this, name, ordinal);
122
- this.l3p_1 = code;
122
+ this.m3p_1 = code;
123
123
  }
124
124
  function Codes_NORMAL_getInstance() {
125
125
  Codes_initEntries();
@@ -170,19 +170,19 @@
170
170
  return Codes_TRY_AGAIN_LATER_instance;
171
171
  }
172
172
  function CloseReason(code, message) {
173
- this.p3p_1 = code;
174
- this.q3p_1 = message;
173
+ this.q3p_1 = code;
174
+ this.r3p_1 = message;
175
175
  }
176
- protoOf(CloseReason).r3p = function () {
177
- return Companion_getInstance().o3p(this.p3p_1);
176
+ protoOf(CloseReason).s3p = function () {
177
+ return Companion_getInstance().p3p(this.q3p_1);
178
178
  };
179
179
  protoOf(CloseReason).toString = function () {
180
- var tmp0_elvis_lhs = this.r3p();
181
- return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.p3p_1 : tmp0_elvis_lhs) + ', message=' + this.q3p_1 + ')';
180
+ var tmp0_elvis_lhs = this.s3p();
181
+ return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.q3p_1 : tmp0_elvis_lhs) + ', message=' + this.r3p_1 + ')';
182
182
  };
183
183
  protoOf(CloseReason).hashCode = function () {
184
- var result = this.p3p_1;
185
- result = imul(result, 31) + getStringHashCode(this.q3p_1) | 0;
184
+ var result = this.q3p_1;
185
+ result = imul(result, 31) + getStringHashCode(this.r3p_1) | 0;
186
186
  return result;
187
187
  };
188
188
  protoOf(CloseReason).equals = function (other) {
@@ -191,15 +191,15 @@
191
191
  if (!(other instanceof CloseReason))
192
192
  return false;
193
193
  var tmp0_other_with_cast = other instanceof CloseReason ? other : THROW_CCE();
194
- if (!(this.p3p_1 === tmp0_other_with_cast.p3p_1))
195
- return false;
196
194
  if (!(this.q3p_1 === tmp0_other_with_cast.q3p_1))
197
195
  return false;
196
+ if (!(this.r3p_1 === tmp0_other_with_cast.r3p_1))
197
+ return false;
198
198
  return true;
199
199
  };
200
200
  function NonDisposableHandle() {
201
201
  }
202
- protoOf(NonDisposableHandle).a1s = function () {
202
+ protoOf(NonDisposableHandle).b1s = function () {
203
203
  };
204
204
  protoOf(NonDisposableHandle).toString = function () {
205
205
  return 'NonDisposableHandle';
@@ -231,14 +231,14 @@
231
231
  tmp$ret$1 = maxElem;
232
232
  break $l$block_0;
233
233
  }
234
- var maxValue = maxElem.v3p_1;
234
+ var maxValue = maxElem.w3p_1;
235
235
  var inductionVariable = 1;
236
236
  if (inductionVariable <= lastIndex)
237
237
  do {
238
238
  var i = inductionVariable;
239
239
  inductionVariable = inductionVariable + 1 | 0;
240
240
  var e = tmp0[i];
241
- var v = e.v3p_1;
241
+ var v = e.w3p_1;
242
242
  if (compareTo(maxValue, v) < 0) {
243
243
  maxElem = e;
244
244
  maxValue = v;
@@ -247,10 +247,10 @@
247
247
  while (!(i === lastIndex));
248
248
  tmp$ret$1 = maxElem;
249
249
  }
250
- tmp.w3p_1 = ensureNotNull(tmp$ret$1).v3p_1;
250
+ tmp.x3p_1 = ensureNotNull(tmp$ret$1).w3p_1;
251
251
  var tmp_0 = this;
252
252
  var tmp_1 = 0;
253
- var tmp_2 = this.w3p_1 + 1 | 0;
253
+ var tmp_2 = this.x3p_1 + 1 | 0;
254
254
  // Inline function 'kotlin.arrayOfNulls' call
255
255
  var tmp_3 = Array(tmp_2);
256
256
  while (tmp_1 < tmp_2) {
@@ -266,7 +266,7 @@
266
266
  while (inductionVariable_0 < last) {
267
267
  var element = tmp0_0[inductionVariable_0];
268
268
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
269
- if (element.v3p_1 === tmp_4) {
269
+ if (element.w3p_1 === tmp_4) {
270
270
  if (found) {
271
271
  tmp$ret$6 = null;
272
272
  break $l$block_2;
@@ -284,7 +284,7 @@
284
284
  tmp_3[tmp_4] = tmp$ret$6;
285
285
  tmp_1 = tmp_1 + 1 | 0;
286
286
  }
287
- tmp_0.x3p_1 = tmp_3;
287
+ tmp_0.y3p_1 = tmp_3;
288
288
  }
289
289
  var Companion_instance_0;
290
290
  function Companion_getInstance_0() {
@@ -310,8 +310,8 @@
310
310
  }
311
311
  function FrameType(name, ordinal, controlFrame, opcode) {
312
312
  Enum.call(this, name, ordinal);
313
- this.u3p_1 = controlFrame;
314
- this.v3p_1 = opcode;
313
+ this.v3p_1 = controlFrame;
314
+ this.w3p_1 = opcode;
315
315
  }
316
316
  function FrameType_TEXT_getInstance() {
317
317
  FrameType_initEntries();
@@ -348,12 +348,12 @@
348
348
  var tmp$ret$0;
349
349
  $l$block: {
350
350
  // Inline function 'io.ktor.utils.io.core.toByteArray' call
351
- var charset = Charsets_getInstance().v31_1;
352
- if (charset.equals(Charsets_getInstance().v31_1)) {
351
+ var charset = Charsets_getInstance().w31_1;
352
+ if (charset.equals(Charsets_getInstance().w31_1)) {
353
353
  tmp$ret$0 = encodeToByteArray(text);
354
354
  break $l$block;
355
355
  }
356
- tmp$ret$0 = encodeToByteArray_0(charset.z31(), text, 0, text.length);
356
+ tmp$ret$0 = encodeToByteArray_0(charset.a32(), text, 0, text.length);
357
357
  }
358
358
  Text_init_$Init$(true, tmp$ret$0, $this);
359
359
  return $this;
@@ -368,14 +368,14 @@
368
368
  // Inline function 'kotlin.contracts.contract' call
369
369
  var builder = new BytePacketBuilder();
370
370
  try {
371
- writeShort(builder, reason.p3p_1);
372
- writeText(builder, reason.q3p_1);
373
- tmp$ret$2 = builder.t2u();
371
+ writeShort(builder, reason.q3p_1);
372
+ writeText(builder, reason.r3p_1);
373
+ tmp$ret$2 = builder.u2u();
374
374
  break $l$block;
375
375
  } catch ($p) {
376
376
  if ($p instanceof Error) {
377
377
  var t = $p;
378
- builder.p19();
378
+ builder.q19();
379
379
  throw t;
380
380
  } else {
381
381
  throw $p;
@@ -393,7 +393,7 @@
393
393
  return $this;
394
394
  }
395
395
  function Close_init_$Init$_1($this) {
396
- Close.call($this, Companion_getInstance_1().y3p_1);
396
+ Close.call($this, Companion_getInstance_1().z3p_1);
397
397
  return $this;
398
398
  }
399
399
  function Close_init_$Create$_0() {
@@ -416,7 +416,7 @@
416
416
  }
417
417
  function Companion_1() {
418
418
  Companion_instance_1 = this;
419
- this.y3p_1 = new Int8Array(0);
419
+ this.z3p_1 = new Int8Array(0);
420
420
  }
421
421
  var Companion_instance_1;
422
422
  function Companion_getInstance_1() {
@@ -430,16 +430,16 @@
430
430
  rsv1 = rsv1 === VOID ? false : rsv1;
431
431
  rsv2 = rsv2 === VOID ? false : rsv2;
432
432
  rsv3 = rsv3 === VOID ? false : rsv3;
433
- this.z3p_1 = fin;
434
- this.a3q_1 = frameType;
435
- this.b3q_1 = data;
436
- this.c3q_1 = disposableHandle;
437
- this.d3q_1 = rsv1;
438
- this.e3q_1 = rsv2;
439
- this.f3q_1 = rsv3;
433
+ this.a3q_1 = fin;
434
+ this.b3q_1 = frameType;
435
+ this.c3q_1 = data;
436
+ this.d3q_1 = disposableHandle;
437
+ this.e3q_1 = rsv1;
438
+ this.f3q_1 = rsv2;
439
+ this.g3q_1 = rsv3;
440
440
  }
441
441
  protoOf(Frame).toString = function () {
442
- return 'Frame ' + this.a3q_1.toString() + ' (fin=' + this.z3p_1 + ', buffer len = ' + this.b3q_1.length + ')';
442
+ return 'Frame ' + this.b3q_1.toString() + ' (fin=' + this.a3q_1 + ', buffer len = ' + this.c3q_1.length + ')';
443
443
  };
444
444
  //region block: init
445
445
  NonDisposableHandle_instance = new NonDisposableHandle();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "Logic_Debertz-game_server.js",
3
3
  "types": "Logic_Debertz-game_server.d.ts",
4
- "version": "1.8.431",
4
+ "version": "1.8.433",
5
5
  "name": "raspberry_games_server_game_logic",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "3.2.0",
@@ -41,7 +41,7 @@
41
41
  Default_instance = this;
42
42
  CryptoRand.call(this);
43
43
  }
44
- protoOf(Default).qg = function (buf) {
44
+ protoOf(Default).rg = function (buf) {
45
45
  // Inline function 'kotlin.collections.isEmpty' call
46
46
  if (buf.length === 0)
47
47
  return buf;
@@ -55,7 +55,7 @@
55
55
  }
56
56
  function SecureRandom() {
57
57
  }
58
- protoOf(SecureRandom).q1o = function (bytes) {
58
+ protoOf(SecureRandom).r1o = function (bytes) {
59
59
  $l$block: {
60
60
  // Inline function 'org.kotlincrypto.internal.ifNotNullOrEmpty' call
61
61
  // Inline function 'kotlin.contracts.contract' call
@@ -70,7 +70,7 @@
70
70
  break $l$block;
71
71
  }
72
72
  try {
73
- Default_getInstance().qg(bytes);
73
+ Default_getInstance().rg(bytes);
74
74
  } catch ($p) {
75
75
  if ($p instanceof RandomnessProcurementException) {
76
76
  var e = $p;
@@ -128,7 +128,7 @@
128
128
  function CoreConfig() {
129
129
  this.version = '0.0.53';
130
130
  }
131
- protoOf(CoreConfig).a3w = function () {
131
+ protoOf(CoreConfig).b3w = function () {
132
132
  return this.version;
133
133
  };
134
134
  var CoreConfig_instance;
@@ -641,11 +641,11 @@
641
641
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
642
642
  tmp.j5e_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
643
643
  }
644
- protoOf(Companion_1).a1c = function () {
644
+ protoOf(Companion_1).b1c = function () {
645
645
  return _get_$cachedSerializer__te6jhj(this);
646
646
  };
647
- protoOf(Companion_1).g10 = function (typeParamsSerializers) {
648
- return this.a1c();
647
+ protoOf(Companion_1).h10 = function (typeParamsSerializers) {
648
+ return this.b1c();
649
649
  };
650
650
  var Companion_instance_1;
651
651
  function Companion_getInstance_1() {
@@ -863,7 +863,7 @@
863
863
  var tmp0_$this = this.a5f_1.y5f_1;
864
864
  var tmp1_max = cardsCount - 1 | 0;
865
865
  this.s8_1 = 1;
866
- suspendResult = tmp0_$this.l58(this.d5f_1, this.e5f_1, 0, tmp1_max, cardsCount, this.f5f_1, VOID, this);
866
+ suspendResult = tmp0_$this.m58(this.d5f_1, this.e5f_1, 0, tmp1_max, cardsCount, this.f5f_1, VOID, this);
867
867
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
868
868
  return suspendResult;
869
869
  }
@@ -871,12 +871,12 @@
871
871
  this.s8_1 = 2;
872
872
  continue $sm;
873
873
  case 1:
874
- var unboxed = suspendResult.tl_1;
874
+ var unboxed = suspendResult.ul_1;
875
875
  suspendResult = new Result(unboxed);
876
876
  this.s8_1 = 2;
877
877
  continue $sm;
878
878
  case 2:
879
- var result = suspendResult.tl_1;
879
+ var result = suspendResult.ul_1;
880
880
  if (_Result___get_isSuccess__impl__sndoy8(result)) {
881
881
  var tmp_0 = this;
882
882
  throwOnFailure(result);