game_client_logic_deb 1.3.100 → 1.3.101
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/Logic_Debertz-core.js +53 -53
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +793 -792
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5 -5
- package/kotlin-kotlin-stdlib-js-ir.js +242 -242
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/package.json +1 -1
|
@@ -293,6 +293,29 @@ if (typeof Math.imul === 'undefined') {
|
|
|
293
293
|
}
|
|
294
294
|
return false;
|
|
295
295
|
}
|
|
296
|
+
function filter(_this__u8e3s4, predicate) {
|
|
297
|
+
var tmp$ret$0;
|
|
298
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
299
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
300
|
+
var indexedObject = _this__u8e3s4;
|
|
301
|
+
var inductionVariable = 0;
|
|
302
|
+
var last = indexedObject.length;
|
|
303
|
+
while (inductionVariable < last) {
|
|
304
|
+
var element = indexedObject[inductionVariable];
|
|
305
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
306
|
+
if (predicate(element)) {
|
|
307
|
+
tmp0_filterTo.a(element);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
tmp$ret$0 = tmp0_filterTo;
|
|
311
|
+
return tmp$ret$0;
|
|
312
|
+
}
|
|
313
|
+
function isNotEmpty(_this__u8e3s4) {
|
|
314
|
+
var tmp$ret$0;
|
|
315
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
316
|
+
tmp$ret$0 = _this__u8e3s4.length === 0;
|
|
317
|
+
return !tmp$ret$0;
|
|
318
|
+
}
|
|
296
319
|
function contains(_this__u8e3s4, element) {
|
|
297
320
|
return indexOf(_this__u8e3s4, element) >= 0;
|
|
298
321
|
}
|
|
@@ -407,6 +430,22 @@ if (typeof Math.imul === 'undefined') {
|
|
|
407
430
|
function get_lastIndex_0(_this__u8e3s4) {
|
|
408
431
|
return _this__u8e3s4.length - 1 | 0;
|
|
409
432
|
}
|
|
433
|
+
function filterTo(_this__u8e3s4, destination, predicate) {
|
|
434
|
+
var indexedObject = _this__u8e3s4;
|
|
435
|
+
var inductionVariable = 0;
|
|
436
|
+
var last = indexedObject.length;
|
|
437
|
+
while (inductionVariable < last) {
|
|
438
|
+
var element = indexedObject[inductionVariable];
|
|
439
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
440
|
+
if (predicate(element)) {
|
|
441
|
+
destination.a(element);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
return destination;
|
|
445
|
+
}
|
|
446
|
+
function isEmpty(_this__u8e3s4) {
|
|
447
|
+
return _this__u8e3s4.length === 0;
|
|
448
|
+
}
|
|
410
449
|
function filterNotNullTo(_this__u8e3s4, destination) {
|
|
411
450
|
var indexedObject = _this__u8e3s4;
|
|
412
451
|
var inductionVariable = 0;
|
|
@@ -497,9 +536,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
497
536
|
transform = null;
|
|
498
537
|
return joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform);
|
|
499
538
|
}
|
|
500
|
-
function isEmpty(_this__u8e3s4) {
|
|
501
|
-
return _this__u8e3s4.length === 0;
|
|
502
|
-
}
|
|
503
539
|
function firstOrNull(_this__u8e3s4, predicate) {
|
|
504
540
|
var indexedObject = _this__u8e3s4;
|
|
505
541
|
var inductionVariable = 0;
|
|
@@ -536,12 +572,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
536
572
|
buffer.b(postfix);
|
|
537
573
|
return buffer;
|
|
538
574
|
}
|
|
539
|
-
function isNotEmpty(_this__u8e3s4) {
|
|
540
|
-
var tmp$ret$0;
|
|
541
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
542
|
-
tmp$ret$0 = _this__u8e3s4.length === 0;
|
|
543
|
-
return !tmp$ret$0;
|
|
544
|
-
}
|
|
545
575
|
function forEach(_this__u8e3s4, action) {
|
|
546
576
|
var indexedObject = _this__u8e3s4;
|
|
547
577
|
var inductionVariable = 0;
|
|
@@ -584,23 +614,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
584
614
|
function count(_this__u8e3s4) {
|
|
585
615
|
return _this__u8e3s4.length;
|
|
586
616
|
}
|
|
587
|
-
function filter(_this__u8e3s4, predicate) {
|
|
588
|
-
var tmp$ret$0;
|
|
589
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
590
|
-
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
591
|
-
var indexedObject = _this__u8e3s4;
|
|
592
|
-
var inductionVariable = 0;
|
|
593
|
-
var last = indexedObject.length;
|
|
594
|
-
while (inductionVariable < last) {
|
|
595
|
-
var element = indexedObject[inductionVariable];
|
|
596
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
597
|
-
if (predicate(element)) {
|
|
598
|
-
tmp0_filterTo.a(element);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
tmp$ret$0 = tmp0_filterTo;
|
|
602
|
-
return tmp$ret$0;
|
|
603
|
-
}
|
|
604
617
|
function toMutableSet(_this__u8e3s4) {
|
|
605
618
|
return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.length)));
|
|
606
619
|
}
|
|
@@ -622,19 +635,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
622
635
|
while (inductionVariable < size);
|
|
623
636
|
return list;
|
|
624
637
|
}
|
|
625
|
-
function filterTo(_this__u8e3s4, destination, predicate) {
|
|
626
|
-
var indexedObject = _this__u8e3s4;
|
|
627
|
-
var inductionVariable = 0;
|
|
628
|
-
var last = indexedObject.length;
|
|
629
|
-
while (inductionVariable < last) {
|
|
630
|
-
var element = indexedObject[inductionVariable];
|
|
631
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
632
|
-
if (predicate(element)) {
|
|
633
|
-
destination.a(element);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return destination;
|
|
637
|
-
}
|
|
638
638
|
function forEachIndexed(_this__u8e3s4, action) {
|
|
639
639
|
var index = 0;
|
|
640
640
|
var indexedObject = _this__u8e3s4;
|
|
@@ -832,7 +832,7 @@ if (typeof Math.imul === 'undefined') {
|
|
|
832
832
|
}
|
|
833
833
|
function plus_0(_this__u8e3s4, elements) {
|
|
834
834
|
if (isInterface(_this__u8e3s4, Collection))
|
|
835
|
-
return
|
|
835
|
+
return plus_2(_this__u8e3s4, elements);
|
|
836
836
|
var result = ArrayList_init_$Create$();
|
|
837
837
|
addAll(result, _this__u8e3s4);
|
|
838
838
|
addAll(result, elements);
|
|
@@ -873,7 +873,146 @@ if (typeof Math.imul === 'undefined') {
|
|
|
873
873
|
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
874
874
|
return _this__u8e3s4.j(get_lastIndex_2(_this__u8e3s4));
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function getOrNull(_this__u8e3s4, index) {
|
|
877
|
+
return (index >= 0 ? index <= get_lastIndex_2(_this__u8e3s4) : false) ? _this__u8e3s4.j(index) : null;
|
|
878
|
+
}
|
|
879
|
+
function plus_1(_this__u8e3s4, element) {
|
|
880
|
+
var result = ArrayList_init_$Create$_0(_this__u8e3s4.i() + 1 | 0);
|
|
881
|
+
result.l(_this__u8e3s4);
|
|
882
|
+
result.a(element);
|
|
883
|
+
return result;
|
|
884
|
+
}
|
|
885
|
+
function toList_0(_this__u8e3s4) {
|
|
886
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
887
|
+
var tmp0_subject = _this__u8e3s4.i();
|
|
888
|
+
var tmp;
|
|
889
|
+
switch (tmp0_subject) {
|
|
890
|
+
case 0:
|
|
891
|
+
tmp = emptyList();
|
|
892
|
+
break;
|
|
893
|
+
case 1:
|
|
894
|
+
var tmp_0;
|
|
895
|
+
if (isInterface(_this__u8e3s4, List)) {
|
|
896
|
+
tmp_0 = _this__u8e3s4.j(0);
|
|
897
|
+
} else {
|
|
898
|
+
tmp_0 = _this__u8e3s4.f().h();
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
tmp = listOf_0(tmp_0);
|
|
902
|
+
break;
|
|
903
|
+
default:
|
|
904
|
+
tmp = toMutableList_0(_this__u8e3s4);
|
|
905
|
+
break;
|
|
906
|
+
}
|
|
907
|
+
return tmp;
|
|
908
|
+
}
|
|
909
|
+
return optimizeReadOnlyList(toMutableList_1(_this__u8e3s4));
|
|
910
|
+
}
|
|
911
|
+
function flatMap(_this__u8e3s4, transform) {
|
|
912
|
+
var tmp$ret$0;
|
|
913
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
914
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
915
|
+
var tmp0_iterator = _this__u8e3s4.f();
|
|
916
|
+
while (tmp0_iterator.g()) {
|
|
917
|
+
var element = tmp0_iterator.h();
|
|
918
|
+
var list = transform(element);
|
|
919
|
+
addAll(tmp0_flatMapTo, list);
|
|
920
|
+
}
|
|
921
|
+
tmp$ret$0 = tmp0_flatMapTo;
|
|
922
|
+
return tmp$ret$0;
|
|
923
|
+
}
|
|
924
|
+
function plus_2(_this__u8e3s4, elements) {
|
|
925
|
+
if (isInterface(elements, Collection)) {
|
|
926
|
+
var result = ArrayList_init_$Create$_0(_this__u8e3s4.i() + elements.i() | 0);
|
|
927
|
+
result.l(_this__u8e3s4);
|
|
928
|
+
result.l(elements);
|
|
929
|
+
return result;
|
|
930
|
+
} else {
|
|
931
|
+
var result_0 = ArrayList_init_$Create$_1(_this__u8e3s4);
|
|
932
|
+
addAll(result_0, elements);
|
|
933
|
+
return result_0;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
function singleOrNull_0(_this__u8e3s4) {
|
|
937
|
+
return _this__u8e3s4.i() === 1 ? _this__u8e3s4.j(0) : null;
|
|
938
|
+
}
|
|
939
|
+
function find(_this__u8e3s4, predicate) {
|
|
940
|
+
var tmp$ret$0;
|
|
941
|
+
$l$block: {
|
|
942
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
943
|
+
var tmp0_iterator = _this__u8e3s4.f();
|
|
944
|
+
while (tmp0_iterator.g()) {
|
|
945
|
+
var element = tmp0_iterator.h();
|
|
946
|
+
if (predicate(element)) {
|
|
947
|
+
tmp$ret$0 = element;
|
|
948
|
+
break $l$block;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
tmp$ret$0 = null;
|
|
952
|
+
}
|
|
953
|
+
return tmp$ret$0;
|
|
954
|
+
}
|
|
955
|
+
function filterNot(_this__u8e3s4, predicate) {
|
|
956
|
+
var tmp$ret$0;
|
|
957
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
958
|
+
var tmp0_filterNotTo = ArrayList_init_$Create$();
|
|
959
|
+
var tmp0_iterator = _this__u8e3s4.f();
|
|
960
|
+
while (tmp0_iterator.g()) {
|
|
961
|
+
var element = tmp0_iterator.h();
|
|
962
|
+
if (!predicate(element)) {
|
|
963
|
+
tmp0_filterNotTo.a(element);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
tmp$ret$0 = tmp0_filterNotTo;
|
|
967
|
+
return tmp$ret$0;
|
|
968
|
+
}
|
|
969
|
+
function first(_this__u8e3s4) {
|
|
970
|
+
if (_this__u8e3s4.k())
|
|
971
|
+
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
972
|
+
return _this__u8e3s4.j(0);
|
|
973
|
+
}
|
|
974
|
+
function takeLast(_this__u8e3s4, n) {
|
|
975
|
+
// Inline function 'kotlin.require' call
|
|
976
|
+
var tmp0_require = n >= 0;
|
|
977
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
978
|
+
if (!tmp0_require) {
|
|
979
|
+
var tmp$ret$0;
|
|
980
|
+
// Inline function 'kotlin.collections.takeLast.<anonymous>' call
|
|
981
|
+
tmp$ret$0 = 'Requested element count ' + n + ' is less than zero.';
|
|
982
|
+
var message = tmp$ret$0;
|
|
983
|
+
throw IllegalArgumentException_init_$Create$_0(toString_2(message));
|
|
984
|
+
}
|
|
985
|
+
if (n === 0)
|
|
986
|
+
return emptyList();
|
|
987
|
+
var size = _this__u8e3s4.i();
|
|
988
|
+
if (n >= size)
|
|
989
|
+
return toList_0(_this__u8e3s4);
|
|
990
|
+
if (n === 1)
|
|
991
|
+
return listOf_0(last(_this__u8e3s4));
|
|
992
|
+
var list = ArrayList_init_$Create$_0(n);
|
|
993
|
+
if (isInterface(_this__u8e3s4, RandomAccess)) {
|
|
994
|
+
var inductionVariable = size - n | 0;
|
|
995
|
+
if (inductionVariable < size)
|
|
996
|
+
do {
|
|
997
|
+
var index = inductionVariable;
|
|
998
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
999
|
+
list.a(_this__u8e3s4.j(index));
|
|
1000
|
+
}
|
|
1001
|
+
while (inductionVariable < size);
|
|
1002
|
+
} else {
|
|
1003
|
+
var tmp$ret$1;
|
|
1004
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1005
|
+
var tmp1_iterator = _this__u8e3s4.m(size - n | 0);
|
|
1006
|
+
tmp$ret$1 = tmp1_iterator;
|
|
1007
|
+
var tmp1_iterator_0 = tmp$ret$1;
|
|
1008
|
+
while (tmp1_iterator_0.g()) {
|
|
1009
|
+
var item = tmp1_iterator_0.h();
|
|
1010
|
+
list.a(item);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
return list;
|
|
1014
|
+
}
|
|
1015
|
+
function first_0(_this__u8e3s4, predicate) {
|
|
877
1016
|
var tmp0_iterator = _this__u8e3s4.f();
|
|
878
1017
|
while (tmp0_iterator.g()) {
|
|
879
1018
|
var element = tmp0_iterator.h();
|
|
@@ -930,26 +1069,12 @@ if (typeof Math.imul === 'undefined') {
|
|
|
930
1069
|
}
|
|
931
1070
|
return false;
|
|
932
1071
|
}
|
|
933
|
-
function
|
|
934
|
-
if (_this__u8e3s4.k())
|
|
935
|
-
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
936
|
-
return _this__u8e3s4.j(0);
|
|
937
|
-
}
|
|
938
|
-
function singleOrNull_0(_this__u8e3s4) {
|
|
939
|
-
return _this__u8e3s4.i() === 1 ? _this__u8e3s4.j(0) : null;
|
|
940
|
-
}
|
|
941
|
-
function flatMap(_this__u8e3s4, transform) {
|
|
1072
|
+
function sortedBy(_this__u8e3s4, selector) {
|
|
942
1073
|
var tmp$ret$0;
|
|
943
|
-
// Inline function 'kotlin.
|
|
944
|
-
var
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
var element = tmp0_iterator.h();
|
|
948
|
-
var list = transform(element);
|
|
949
|
-
addAll(tmp0_flatMapTo, list);
|
|
950
|
-
}
|
|
951
|
-
tmp$ret$0 = tmp0_flatMapTo;
|
|
952
|
-
return tmp$ret$0;
|
|
1074
|
+
// Inline function 'kotlin.comparisons.compareBy' call
|
|
1075
|
+
var tmp = sortedBy$lambda(selector);
|
|
1076
|
+
tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
1077
|
+
return sortedWith(_this__u8e3s4, tmp$ret$0);
|
|
953
1078
|
}
|
|
954
1079
|
function sumOf(_this__u8e3s4, selector) {
|
|
955
1080
|
var sum = 0;
|
|
@@ -960,19 +1085,24 @@ if (typeof Math.imul === 'undefined') {
|
|
|
960
1085
|
}
|
|
961
1086
|
return sum;
|
|
962
1087
|
}
|
|
963
|
-
function
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
result.l(elements);
|
|
968
|
-
return result;
|
|
1088
|
+
function all(_this__u8e3s4, predicate) {
|
|
1089
|
+
var tmp;
|
|
1090
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1091
|
+
tmp = _this__u8e3s4.k();
|
|
969
1092
|
} else {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1093
|
+
tmp = false;
|
|
1094
|
+
}
|
|
1095
|
+
if (tmp)
|
|
1096
|
+
return true;
|
|
1097
|
+
var tmp0_iterator = _this__u8e3s4.f();
|
|
1098
|
+
while (tmp0_iterator.g()) {
|
|
1099
|
+
var element = tmp0_iterator.h();
|
|
1100
|
+
if (!predicate(element))
|
|
1101
|
+
return false;
|
|
973
1102
|
}
|
|
1103
|
+
return true;
|
|
974
1104
|
}
|
|
975
|
-
function
|
|
1105
|
+
function none_0(_this__u8e3s4, predicate) {
|
|
976
1106
|
var tmp;
|
|
977
1107
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
978
1108
|
tmp = _this__u8e3s4.k();
|
|
@@ -984,7 +1114,7 @@ if (typeof Math.imul === 'undefined') {
|
|
|
984
1114
|
var tmp0_iterator = _this__u8e3s4.f();
|
|
985
1115
|
while (tmp0_iterator.g()) {
|
|
986
1116
|
var element = tmp0_iterator.h();
|
|
987
|
-
if (
|
|
1117
|
+
if (predicate(element))
|
|
988
1118
|
return false;
|
|
989
1119
|
}
|
|
990
1120
|
return true;
|
|
@@ -1015,55 +1145,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1015
1145
|
}
|
|
1016
1146
|
return null;
|
|
1017
1147
|
}
|
|
1018
|
-
function none_0(_this__u8e3s4, predicate) {
|
|
1019
|
-
var tmp;
|
|
1020
|
-
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1021
|
-
tmp = _this__u8e3s4.k();
|
|
1022
|
-
} else {
|
|
1023
|
-
tmp = false;
|
|
1024
|
-
}
|
|
1025
|
-
if (tmp)
|
|
1026
|
-
return true;
|
|
1027
|
-
var tmp0_iterator = _this__u8e3s4.f();
|
|
1028
|
-
while (tmp0_iterator.g()) {
|
|
1029
|
-
var element = tmp0_iterator.h();
|
|
1030
|
-
if (predicate(element))
|
|
1031
|
-
return false;
|
|
1032
|
-
}
|
|
1033
|
-
return true;
|
|
1034
|
-
}
|
|
1035
|
-
function plus_2(_this__u8e3s4, element) {
|
|
1036
|
-
var result = ArrayList_init_$Create$_0(_this__u8e3s4.i() + 1 | 0);
|
|
1037
|
-
result.l(_this__u8e3s4);
|
|
1038
|
-
result.a(element);
|
|
1039
|
-
return result;
|
|
1040
|
-
}
|
|
1041
|
-
function toList_0(_this__u8e3s4) {
|
|
1042
|
-
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1043
|
-
var tmp0_subject = _this__u8e3s4.i();
|
|
1044
|
-
var tmp;
|
|
1045
|
-
switch (tmp0_subject) {
|
|
1046
|
-
case 0:
|
|
1047
|
-
tmp = emptyList();
|
|
1048
|
-
break;
|
|
1049
|
-
case 1:
|
|
1050
|
-
var tmp_0;
|
|
1051
|
-
if (isInterface(_this__u8e3s4, List)) {
|
|
1052
|
-
tmp_0 = _this__u8e3s4.j(0);
|
|
1053
|
-
} else {
|
|
1054
|
-
tmp_0 = _this__u8e3s4.f().h();
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
tmp = listOf_0(tmp_0);
|
|
1058
|
-
break;
|
|
1059
|
-
default:
|
|
1060
|
-
tmp = toMutableList_0(_this__u8e3s4);
|
|
1061
|
-
break;
|
|
1062
|
-
}
|
|
1063
|
-
return tmp;
|
|
1064
|
-
}
|
|
1065
|
-
return optimizeReadOnlyList(toMutableList_1(_this__u8e3s4));
|
|
1066
|
-
}
|
|
1067
1148
|
function minus(_this__u8e3s4, element) {
|
|
1068
1149
|
var result = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
1069
1150
|
var removed = false;
|
|
@@ -1089,20 +1170,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1089
1170
|
tmp$ret$1 = result;
|
|
1090
1171
|
return tmp$ret$1;
|
|
1091
1172
|
}
|
|
1092
|
-
function filterNot(_this__u8e3s4, predicate) {
|
|
1093
|
-
var tmp$ret$0;
|
|
1094
|
-
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1095
|
-
var tmp0_filterNotTo = ArrayList_init_$Create$();
|
|
1096
|
-
var tmp0_iterator = _this__u8e3s4.f();
|
|
1097
|
-
while (tmp0_iterator.g()) {
|
|
1098
|
-
var element = tmp0_iterator.h();
|
|
1099
|
-
if (!predicate(element)) {
|
|
1100
|
-
tmp0_filterNotTo.a(element);
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
tmp$ret$0 = tmp0_filterNotTo;
|
|
1104
|
-
return tmp$ret$0;
|
|
1105
|
-
}
|
|
1106
1173
|
function toMutableList_0(_this__u8e3s4) {
|
|
1107
1174
|
return ArrayList_init_$Create$_1(_this__u8e3s4);
|
|
1108
1175
|
}
|
|
@@ -1205,30 +1272,30 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1205
1272
|
return toMutableList_0(_this__u8e3s4);
|
|
1206
1273
|
return toCollection_0(_this__u8e3s4, ArrayList_init_$Create$());
|
|
1207
1274
|
}
|
|
1208
|
-
function
|
|
1275
|
+
function flatMapTo(_this__u8e3s4, destination, transform) {
|
|
1209
1276
|
var tmp0_iterator = _this__u8e3s4.f();
|
|
1210
1277
|
while (tmp0_iterator.g()) {
|
|
1211
1278
|
var element = tmp0_iterator.h();
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}
|
|
1279
|
+
var list = transform(element);
|
|
1280
|
+
addAll(destination, list);
|
|
1215
1281
|
}
|
|
1216
1282
|
return destination;
|
|
1217
1283
|
}
|
|
1218
|
-
function
|
|
1284
|
+
function filterNotTo(_this__u8e3s4, destination, predicate) {
|
|
1219
1285
|
var tmp0_iterator = _this__u8e3s4.f();
|
|
1220
1286
|
while (tmp0_iterator.g()) {
|
|
1221
1287
|
var element = tmp0_iterator.h();
|
|
1222
|
-
|
|
1223
|
-
|
|
1288
|
+
if (!predicate(element)) {
|
|
1289
|
+
destination.a(element);
|
|
1290
|
+
}
|
|
1224
1291
|
}
|
|
1225
1292
|
return destination;
|
|
1226
1293
|
}
|
|
1227
|
-
function
|
|
1294
|
+
function filterTo_0(_this__u8e3s4, destination, predicate) {
|
|
1228
1295
|
var tmp0_iterator = _this__u8e3s4.f();
|
|
1229
1296
|
while (tmp0_iterator.g()) {
|
|
1230
1297
|
var element = tmp0_iterator.h();
|
|
1231
|
-
if (
|
|
1298
|
+
if (predicate(element)) {
|
|
1232
1299
|
destination.a(element);
|
|
1233
1300
|
}
|
|
1234
1301
|
}
|
|
@@ -1255,22 +1322,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1255
1322
|
function groupingBy(_this__u8e3s4, keySelector) {
|
|
1256
1323
|
return new _no_name_provided__qut3iv(_this__u8e3s4, keySelector);
|
|
1257
1324
|
}
|
|
1258
|
-
function find(_this__u8e3s4, predicate) {
|
|
1259
|
-
var tmp$ret$0;
|
|
1260
|
-
$l$block: {
|
|
1261
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1262
|
-
var tmp0_iterator = _this__u8e3s4.f();
|
|
1263
|
-
while (tmp0_iterator.g()) {
|
|
1264
|
-
var element = tmp0_iterator.h();
|
|
1265
|
-
if (predicate(element)) {
|
|
1266
|
-
tmp$ret$0 = element;
|
|
1267
|
-
break $l$block;
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
tmp$ret$0 = null;
|
|
1271
|
-
}
|
|
1272
|
-
return tmp$ret$0;
|
|
1273
|
-
}
|
|
1274
1325
|
function mapIndexed(_this__u8e3s4, transform) {
|
|
1275
1326
|
var tmp$ret$0;
|
|
1276
1327
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -1360,9 +1411,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1360
1411
|
function filterNotNull_0(_this__u8e3s4) {
|
|
1361
1412
|
return filterNotNullTo_0(_this__u8e3s4, ArrayList_init_$Create$());
|
|
1362
1413
|
}
|
|
1363
|
-
function getOrNull(_this__u8e3s4, index) {
|
|
1364
|
-
return (index >= 0 ? index <= get_lastIndex_2(_this__u8e3s4) : false) ? _this__u8e3s4.j(index) : null;
|
|
1365
|
-
}
|
|
1366
1414
|
function take(_this__u8e3s4, n) {
|
|
1367
1415
|
// Inline function 'kotlin.require' call
|
|
1368
1416
|
var tmp0_require = n >= 0;
|
|
@@ -1394,47 +1442,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1394
1442
|
}
|
|
1395
1443
|
return optimizeReadOnlyList(list);
|
|
1396
1444
|
}
|
|
1397
|
-
function takeLast(_this__u8e3s4, n) {
|
|
1398
|
-
// Inline function 'kotlin.require' call
|
|
1399
|
-
var tmp0_require = n >= 0;
|
|
1400
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1401
|
-
if (!tmp0_require) {
|
|
1402
|
-
var tmp$ret$0;
|
|
1403
|
-
// Inline function 'kotlin.collections.takeLast.<anonymous>' call
|
|
1404
|
-
tmp$ret$0 = 'Requested element count ' + n + ' is less than zero.';
|
|
1405
|
-
var message = tmp$ret$0;
|
|
1406
|
-
throw IllegalArgumentException_init_$Create$_0(toString_2(message));
|
|
1407
|
-
}
|
|
1408
|
-
if (n === 0)
|
|
1409
|
-
return emptyList();
|
|
1410
|
-
var size = _this__u8e3s4.i();
|
|
1411
|
-
if (n >= size)
|
|
1412
|
-
return toList_0(_this__u8e3s4);
|
|
1413
|
-
if (n === 1)
|
|
1414
|
-
return listOf_0(last(_this__u8e3s4));
|
|
1415
|
-
var list = ArrayList_init_$Create$_0(n);
|
|
1416
|
-
if (isInterface(_this__u8e3s4, RandomAccess)) {
|
|
1417
|
-
var inductionVariable = size - n | 0;
|
|
1418
|
-
if (inductionVariable < size)
|
|
1419
|
-
do {
|
|
1420
|
-
var index = inductionVariable;
|
|
1421
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
1422
|
-
list.a(_this__u8e3s4.j(index));
|
|
1423
|
-
}
|
|
1424
|
-
while (inductionVariable < size);
|
|
1425
|
-
} else {
|
|
1426
|
-
var tmp$ret$1;
|
|
1427
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
1428
|
-
var tmp1_iterator = _this__u8e3s4.m(size - n | 0);
|
|
1429
|
-
tmp$ret$1 = tmp1_iterator;
|
|
1430
|
-
var tmp1_iterator_0 = tmp$ret$1;
|
|
1431
|
-
while (tmp1_iterator_0.g()) {
|
|
1432
|
-
var item = tmp1_iterator_0.h();
|
|
1433
|
-
list.a(item);
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
return list;
|
|
1437
|
-
}
|
|
1438
1445
|
function dropLast(_this__u8e3s4, n) {
|
|
1439
1446
|
// Inline function 'kotlin.require' call
|
|
1440
1447
|
var tmp0_require = n >= 0;
|
|
@@ -1448,13 +1455,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1448
1455
|
}
|
|
1449
1456
|
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.i() - n | 0, 0));
|
|
1450
1457
|
}
|
|
1451
|
-
function sortedBy(_this__u8e3s4, selector) {
|
|
1452
|
-
var tmp$ret$0;
|
|
1453
|
-
// Inline function 'kotlin.comparisons.compareBy' call
|
|
1454
|
-
var tmp = sortedBy$lambda(selector);
|
|
1455
|
-
tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
1456
|
-
return sortedWith(_this__u8e3s4, tmp$ret$0);
|
|
1457
|
-
}
|
|
1458
1458
|
function mapIndexedTo(_this__u8e3s4, destination, transform) {
|
|
1459
1459
|
var index = 0;
|
|
1460
1460
|
var tmp0_iterator = _this__u8e3s4.f();
|
|
@@ -1514,7 +1514,7 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1514
1514
|
function first_1(_this__u8e3s4) {
|
|
1515
1515
|
var tmp0_subject = _this__u8e3s4;
|
|
1516
1516
|
if (isInterface(tmp0_subject, List))
|
|
1517
|
-
return
|
|
1517
|
+
return first(_this__u8e3s4);
|
|
1518
1518
|
else {
|
|
1519
1519
|
var iterator = _this__u8e3s4.f();
|
|
1520
1520
|
if (!iterator.g())
|
|
@@ -1574,6 +1574,14 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1574
1574
|
return this.u(a, b);
|
|
1575
1575
|
};
|
|
1576
1576
|
sam$kotlin_Comparator$0.$metadata$ = classMeta('sam$kotlin_Comparator$0', [Comparator]);
|
|
1577
|
+
function sortedBy$lambda($selector) {
|
|
1578
|
+
return function (a, b) {
|
|
1579
|
+
var tmp$ret$0;
|
|
1580
|
+
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1581
|
+
tmp$ret$0 = compareValues($selector(a), $selector(b));
|
|
1582
|
+
return tmp$ret$0;
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1577
1585
|
function _no_name_provided__qut3iv($this_groupingBy, $keySelector) {
|
|
1578
1586
|
this.v_1 = $this_groupingBy;
|
|
1579
1587
|
this.w_1 = $keySelector;
|
|
@@ -1585,14 +1593,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
1585
1593
|
return this.w_1(element);
|
|
1586
1594
|
};
|
|
1587
1595
|
_no_name_provided__qut3iv.$metadata$ = classMeta(undefined, [Grouping]);
|
|
1588
|
-
function sortedBy$lambda($selector) {
|
|
1589
|
-
return function (a, b) {
|
|
1590
|
-
var tmp$ret$0;
|
|
1591
|
-
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1592
|
-
tmp$ret$0 = compareValues($selector(a), $selector(b));
|
|
1593
|
-
return tmp$ret$0;
|
|
1594
|
-
};
|
|
1595
|
-
}
|
|
1596
1596
|
function _no_name_provided__qut3iv_0($this_asSequence) {
|
|
1597
1597
|
this.z_1 = $this_asSequence;
|
|
1598
1598
|
}
|
|
@@ -2454,21 +2454,21 @@ if (typeof Math.imul === 'undefined') {
|
|
|
2454
2454
|
function listOf(elements) {
|
|
2455
2455
|
return elements.length > 0 ? asList(elements) : emptyList();
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2458
|
-
return
|
|
2457
|
+
function isNotEmpty_0(_this__u8e3s4) {
|
|
2458
|
+
return !_this__u8e3s4.k();
|
|
2459
2459
|
}
|
|
2460
2460
|
function orEmpty(_this__u8e3s4) {
|
|
2461
2461
|
var tmp0_elvis_lhs = _this__u8e3s4;
|
|
2462
2462
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2465
|
-
return !
|
|
2464
|
+
function listOfNotNull(element) {
|
|
2465
|
+
return !(element == null) ? listOf_0(element) : emptyList();
|
|
2466
2466
|
}
|
|
2467
2467
|
function mutableListOf() {
|
|
2468
2468
|
return ArrayList_init_$Create$();
|
|
2469
2469
|
}
|
|
2470
|
-
function listOfNotNull_0(
|
|
2471
|
-
return
|
|
2470
|
+
function listOfNotNull_0(elements) {
|
|
2471
|
+
return filterNotNull(elements);
|
|
2472
2472
|
}
|
|
2473
2473
|
function get_lastIndex_2(_this__u8e3s4) {
|
|
2474
2474
|
return _this__u8e3s4.i() - 1 | 0;
|
|
@@ -3407,13 +3407,22 @@ if (typeof Math.imul === 'undefined') {
|
|
|
3407
3407
|
var tmp = compareBy$lambda(selector);
|
|
3408
3408
|
return new sam$kotlin_Comparator$0_0(tmp);
|
|
3409
3409
|
}
|
|
3410
|
+
function compareValuesBy(a, b, selector) {
|
|
3411
|
+
return compareValues(selector(a), selector(b));
|
|
3412
|
+
}
|
|
3413
|
+
function compareValues(a, b) {
|
|
3414
|
+
if (a === b)
|
|
3415
|
+
return 0;
|
|
3416
|
+
if (a == null)
|
|
3417
|
+
return -1;
|
|
3418
|
+
if (b == null)
|
|
3419
|
+
return 1;
|
|
3420
|
+
return compareTo_0((!(a == null) ? isComparable(a) : false) ? a : THROW_CCE(), b);
|
|
3421
|
+
}
|
|
3410
3422
|
function naturalOrder() {
|
|
3411
3423
|
var tmp = NaturalOrderComparator_getInstance();
|
|
3412
3424
|
return isInterface(tmp, Comparator) ? tmp : THROW_CCE();
|
|
3413
3425
|
}
|
|
3414
|
-
function compareValuesBy(a, b, selector) {
|
|
3415
|
-
return compareValues(selector(a), selector(b));
|
|
3416
|
-
}
|
|
3417
3426
|
function NaturalOrderComparator() {
|
|
3418
3427
|
NaturalOrderComparator_instance = this;
|
|
3419
3428
|
}
|
|
@@ -3431,15 +3440,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
3431
3440
|
new NaturalOrderComparator();
|
|
3432
3441
|
return NaturalOrderComparator_instance;
|
|
3433
3442
|
}
|
|
3434
|
-
function compareValues(a, b) {
|
|
3435
|
-
if (a === b)
|
|
3436
|
-
return 0;
|
|
3437
|
-
if (a == null)
|
|
3438
|
-
return -1;
|
|
3439
|
-
if (b == null)
|
|
3440
|
-
return 1;
|
|
3441
|
-
return compareTo_0((!(a == null) ? isComparable(a) : false) ? a : THROW_CCE(), b);
|
|
3442
|
-
}
|
|
3443
3443
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
3444
3444
|
this.m4_1 = function_0;
|
|
3445
3445
|
}
|
|
@@ -15103,7 +15103,7 @@ if (typeof Math.imul === 'undefined') {
|
|
|
15103
15103
|
_.$_$.f6 = fill;
|
|
15104
15104
|
_.$_$.g6 = filterNotNull_0;
|
|
15105
15105
|
_.$_$.h6 = firstOrNull_1;
|
|
15106
|
-
_.$_$.i6 =
|
|
15106
|
+
_.$_$.i6 = first;
|
|
15107
15107
|
_.$_$.j6 = flatten;
|
|
15108
15108
|
_.$_$.k6 = getOrNull;
|
|
15109
15109
|
_.$_$.l6 = getValue;
|
|
@@ -15114,8 +15114,8 @@ if (typeof Math.imul === 'undefined') {
|
|
|
15114
15114
|
_.$_$.q6 = get_lastIndex_2;
|
|
15115
15115
|
_.$_$.r6 = lastOrNull;
|
|
15116
15116
|
_.$_$.s6 = last;
|
|
15117
|
-
_.$_$.t6 =
|
|
15118
|
-
_.$_$.u6 =
|
|
15117
|
+
_.$_$.t6 = listOfNotNull;
|
|
15118
|
+
_.$_$.u6 = listOfNotNull_0;
|
|
15119
15119
|
_.$_$.v6 = listOf_0;
|
|
15120
15120
|
_.$_$.w6 = listOf;
|
|
15121
15121
|
_.$_$.x6 = mapCapacity;
|
|
@@ -15124,8 +15124,8 @@ if (typeof Math.imul === 'undefined') {
|
|
|
15124
15124
|
_.$_$.a7 = minus;
|
|
15125
15125
|
_.$_$.b7 = plus_3;
|
|
15126
15126
|
_.$_$.c7 = plus_0;
|
|
15127
|
-
_.$_$.d7 =
|
|
15128
|
-
_.$_$.e7 =
|
|
15127
|
+
_.$_$.d7 = plus_2;
|
|
15128
|
+
_.$_$.e7 = plus_1;
|
|
15129
15129
|
_.$_$.f7 = removeLast;
|
|
15130
15130
|
_.$_$.g7 = setOf;
|
|
15131
15131
|
_.$_$.h7 = singleOrNull_0;
|