raspberry_games_engine_helpers 1.8.258 → 1.8.259

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.
@@ -889,6 +889,34 @@ if (typeof String.prototype.endsWith === 'undefined') {
889
889
  function singleOrNull(_this__u8e3s4) {
890
890
  return _this__u8e3s4.m() === 1 ? _this__u8e3s4.o(0) : null;
891
891
  }
892
+ function take(_this__u8e3s4, n) {
893
+ // Inline function 'kotlin.require' call
894
+ // Inline function 'kotlin.contracts.contract' call
895
+ if (!(n >= 0)) {
896
+ // Inline function 'kotlin.collections.take.<anonymous>' call
897
+ var message = 'Requested element count ' + n + ' is less than zero.';
898
+ throw IllegalArgumentException_init_$Create$_0(toString_1(message));
899
+ }
900
+ if (n === 0)
901
+ return emptyList();
902
+ if (isInterface(_this__u8e3s4, Collection)) {
903
+ if (n >= _this__u8e3s4.m())
904
+ return toList_0(_this__u8e3s4);
905
+ if (n === 1)
906
+ return listOf(first_1(_this__u8e3s4));
907
+ }
908
+ var count = 0;
909
+ var list = ArrayList_init_$Create$_0(n);
910
+ var tmp0_iterator = _this__u8e3s4.j();
911
+ $l$loop: while (tmp0_iterator.k()) {
912
+ var item = tmp0_iterator.l();
913
+ list.e(item);
914
+ count = count + 1 | 0;
915
+ if (count === n)
916
+ break $l$loop;
917
+ }
918
+ return optimizeReadOnlyList(list);
919
+ }
892
920
  function toList_0(_this__u8e3s4) {
893
921
  if (isInterface(_this__u8e3s4, Collection)) {
894
922
  var tmp;
@@ -914,6 +942,16 @@ if (typeof String.prototype.endsWith === 'undefined') {
914
942
  }
915
943
  return optimizeReadOnlyList(toMutableList_1(_this__u8e3s4));
916
944
  }
945
+ function first_1(_this__u8e3s4) {
946
+ if (isInterface(_this__u8e3s4, KtList))
947
+ return first_0(_this__u8e3s4);
948
+ else {
949
+ var iterator = _this__u8e3s4.j();
950
+ if (!iterator.k())
951
+ throw NoSuchElementException_init_$Create$_0('Collection is empty.');
952
+ return iterator.l();
953
+ }
954
+ }
917
955
  function toMutableSet(_this__u8e3s4) {
918
956
  var tmp;
919
957
  if (isInterface(_this__u8e3s4, Collection)) {
@@ -1115,7 +1153,7 @@ if (typeof String.prototype.endsWith === 'undefined') {
1115
1153
  throw NoSuchElementException_init_$Create$_0('Char sequence is empty.');
1116
1154
  return charSequenceGet(_this__u8e3s4, get_lastIndex_3(_this__u8e3s4));
1117
1155
  }
1118
- function take(_this__u8e3s4, n) {
1156
+ function take_0(_this__u8e3s4, n) {
1119
1157
  // Inline function 'kotlin.require' call
1120
1158
  // Inline function 'kotlin.contracts.contract' call
1121
1159
  if (!(n >= 0)) {
@@ -1136,7 +1174,7 @@ if (typeof String.prototype.endsWith === 'undefined') {
1136
1174
  var message = 'Requested character count ' + n + ' is less than zero.';
1137
1175
  throw IllegalArgumentException_init_$Create$_0(toString_1(message));
1138
1176
  }
1139
- return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
1177
+ return take_0(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
1140
1178
  }
1141
1179
  function drop_0(_this__u8e3s4, n) {
1142
1180
  // Inline function 'kotlin.require' call
@@ -12760,158 +12798,159 @@ if (typeof String.prototype.endsWith === 'undefined') {
12760
12798
  _.$_$.k7 = sortedWith;
12761
12799
  _.$_$.l7 = sorted;
12762
12800
  _.$_$.m7 = sum;
12763
- _.$_$.n7 = toBooleanArray;
12764
- _.$_$.o7 = toHashSet;
12765
- _.$_$.p7 = toList_0;
12766
- _.$_$.q7 = toList;
12767
- _.$_$.r7 = toMap;
12768
- _.$_$.s7 = toMutableList_0;
12769
- _.$_$.t7 = toMutableMap;
12770
- _.$_$.u7 = toSet_0;
12771
- _.$_$.v7 = withIndex;
12772
- _.$_$.w7 = zip;
12773
- _.$_$.x7 = compareValues;
12774
- _.$_$.y7 = get_COROUTINE_SUSPENDED;
12775
- _.$_$.z7 = CoroutineImpl;
12776
- _.$_$.a8 = enumEntries;
12777
- _.$_$.b8 = FunctionAdapter;
12778
- _.$_$.c8 = arrayIterator;
12779
- _.$_$.d8 = booleanArray;
12780
- _.$_$.e8 = captureStack;
12781
- _.$_$.f8 = charArray;
12782
- _.$_$.g8 = charSequenceGet;
12783
- _.$_$.h8 = charSequenceLength;
12784
- _.$_$.i8 = charSequenceSubSequence;
12785
- _.$_$.j8 = compareTo;
12786
- _.$_$.k8 = defineProp;
12787
- _.$_$.l8 = equals;
12788
- _.$_$.m8 = fillArrayVal;
12789
- _.$_$.n8 = getBooleanHashCode;
12790
- _.$_$.o8 = getNumberHashCode;
12791
- _.$_$.p8 = getPropertyCallableRef;
12792
- _.$_$.q8 = getStringHashCode;
12793
- _.$_$.r8 = hashCode;
12794
- _.$_$.s8 = initMetadataForClass;
12795
- _.$_$.t8 = initMetadataForCompanion;
12796
- _.$_$.u8 = initMetadataForCoroutine;
12797
- _.$_$.v8 = initMetadataForInterface;
12798
- _.$_$.w8 = initMetadataForLambda;
12799
- _.$_$.x8 = initMetadataForObject;
12800
- _.$_$.y8 = isArray;
12801
- _.$_$.z8 = isBooleanArray;
12802
- _.$_$.a9 = isByteArray;
12803
- _.$_$.b9 = isCharArray;
12804
- _.$_$.c9 = isDoubleArray;
12805
- _.$_$.d9 = isFloatArray;
12806
- _.$_$.e9 = isIntArray;
12807
- _.$_$.f9 = isInterface;
12808
- _.$_$.g9 = isLongArray;
12809
- _.$_$.h9 = isShortArray;
12810
- _.$_$.i9 = get_js;
12811
- _.$_$.j9 = longArray;
12812
- _.$_$.k9 = numberRangeToNumber;
12813
- _.$_$.l9 = numberToChar;
12814
- _.$_$.m9 = numberToInt;
12815
- _.$_$.n9 = numberToLong;
12816
- _.$_$.o9 = objectCreate;
12817
- _.$_$.p9 = protoOf;
12818
- _.$_$.q9 = toByte;
12819
- _.$_$.r9 = toLong;
12820
- _.$_$.s9 = toShort;
12821
- _.$_$.t9 = toString_1;
12822
- _.$_$.u9 = round;
12823
- _.$_$.v9 = ClosedRange;
12824
- _.$_$.w9 = coerceAtLeast;
12825
- _.$_$.x9 = coerceAtMost;
12826
- _.$_$.y9 = contains_5;
12827
- _.$_$.z9 = step;
12828
- _.$_$.aa = until;
12829
- _.$_$.ba = KClass;
12830
- _.$_$.ca = KMutableProperty0;
12831
- _.$_$.da = KMutableProperty1;
12832
- _.$_$.ea = KProperty0;
12833
- _.$_$.fa = KProperty1;
12834
- _.$_$.ga = KTypeParameter;
12835
- _.$_$.ha = filter;
12836
- _.$_$.ia = firstOrNull_1;
12837
- _.$_$.ja = flatMap;
12838
- _.$_$.ka = mapNotNull;
12839
- _.$_$.la = map;
12840
- _.$_$.ma = toList_1;
12841
- _.$_$.na = contains_7;
12842
- _.$_$.oa = equals_0;
12843
- _.$_$.pa = indexOf_5;
12844
- _.$_$.qa = indexOf_4;
12845
- _.$_$.ra = isBlank;
12846
- _.$_$.sa = get_lastIndex_3;
12847
- _.$_$.ta = lastIndexOf_0;
12848
- _.$_$.ua = padStart;
12849
- _.$_$.va = removePrefix;
12850
- _.$_$.wa = removeSuffix;
12851
- _.$_$.xa = repeat;
12852
- _.$_$.ya = replace;
12853
- _.$_$.za = single_2;
12854
- _.$_$.ab = startsWith;
12855
- _.$_$.bb = startsWith_1;
12856
- _.$_$.cb = substringAfter;
12857
- _.$_$.db = substringBefore;
12858
- _.$_$.eb = toBooleanStrictOrNull;
12859
- _.$_$.fb = toDoubleOrNull;
12860
- _.$_$.gb = toDouble;
12861
- _.$_$.hb = toIntOrNull;
12862
- _.$_$.ib = toInt;
12863
- _.$_$.jb = toLongOrNull;
12864
- _.$_$.kb = toUByte;
12865
- _.$_$.lb = toUInt;
12866
- _.$_$.mb = toULongOrNull;
12867
- _.$_$.nb = toULong;
12868
- _.$_$.ob = toUShort;
12869
- _.$_$.pb = trimIndent;
12870
- _.$_$.qb = Duration;
12871
- _.$_$.rb = toDuration_1;
12872
- _.$_$.sb = toDuration_0;
12873
- _.$_$.tb = toDuration;
12874
- _.$_$.ub = Uuid;
12875
- _.$_$.vb = ArithmeticException;
12876
- _.$_$.wb = Char;
12877
- _.$_$.xb = Comparable;
12878
- _.$_$.yb = Comparator;
12879
- _.$_$.zb = DeepRecursiveFunction;
12880
- _.$_$.ac = DeepRecursiveScope;
12881
- _.$_$.bc = Enum;
12882
- _.$_$.cc = Exception;
12883
- _.$_$.dc = IllegalArgumentException;
12884
- _.$_$.ec = Long;
12885
- _.$_$.fc = Pair;
12886
- _.$_$.gc = Result;
12887
- _.$_$.hc = RuntimeException;
12888
- _.$_$.ic = THROW_CCE;
12889
- _.$_$.jc = THROW_IAE;
12890
- _.$_$.kc = Triple;
12891
- _.$_$.lc = UByteArray;
12892
- _.$_$.mc = UByte;
12893
- _.$_$.nc = UIntArray;
12894
- _.$_$.oc = UInt;
12895
- _.$_$.pc = ULongArray;
12896
- _.$_$.qc = ULong;
12897
- _.$_$.rc = UShortArray;
12898
- _.$_$.sc = UShort;
12899
- _.$_$.tc = Unit;
12900
- _.$_$.uc = arrayOf;
12901
- _.$_$.vc = countTrailingZeroBits;
12902
- _.$_$.wc = createFailure;
12903
- _.$_$.xc = ensureNotNull;
12904
- _.$_$.yc = invoke;
12905
- _.$_$.zc = isFinite;
12906
- _.$_$.ad = isFinite_0;
12907
- _.$_$.bd = lazy_0;
12908
- _.$_$.cd = lazy;
12909
- _.$_$.dd = noWhenBranchMatchedException;
12910
- _.$_$.ed = plus_2;
12911
- _.$_$.fd = printStackTrace;
12912
- _.$_$.gd = stackTraceToString;
12913
- _.$_$.hd = toString_0;
12914
- _.$_$.id = to;
12801
+ _.$_$.n7 = take;
12802
+ _.$_$.o7 = toBooleanArray;
12803
+ _.$_$.p7 = toHashSet;
12804
+ _.$_$.q7 = toList_0;
12805
+ _.$_$.r7 = toList;
12806
+ _.$_$.s7 = toMap;
12807
+ _.$_$.t7 = toMutableList_0;
12808
+ _.$_$.u7 = toMutableMap;
12809
+ _.$_$.v7 = toSet_0;
12810
+ _.$_$.w7 = withIndex;
12811
+ _.$_$.x7 = zip;
12812
+ _.$_$.y7 = compareValues;
12813
+ _.$_$.z7 = get_COROUTINE_SUSPENDED;
12814
+ _.$_$.a8 = CoroutineImpl;
12815
+ _.$_$.b8 = enumEntries;
12816
+ _.$_$.c8 = FunctionAdapter;
12817
+ _.$_$.d8 = arrayIterator;
12818
+ _.$_$.e8 = booleanArray;
12819
+ _.$_$.f8 = captureStack;
12820
+ _.$_$.g8 = charArray;
12821
+ _.$_$.h8 = charSequenceGet;
12822
+ _.$_$.i8 = charSequenceLength;
12823
+ _.$_$.j8 = charSequenceSubSequence;
12824
+ _.$_$.k8 = compareTo;
12825
+ _.$_$.l8 = defineProp;
12826
+ _.$_$.m8 = equals;
12827
+ _.$_$.n8 = fillArrayVal;
12828
+ _.$_$.o8 = getBooleanHashCode;
12829
+ _.$_$.p8 = getNumberHashCode;
12830
+ _.$_$.q8 = getPropertyCallableRef;
12831
+ _.$_$.r8 = getStringHashCode;
12832
+ _.$_$.s8 = hashCode;
12833
+ _.$_$.t8 = initMetadataForClass;
12834
+ _.$_$.u8 = initMetadataForCompanion;
12835
+ _.$_$.v8 = initMetadataForCoroutine;
12836
+ _.$_$.w8 = initMetadataForInterface;
12837
+ _.$_$.x8 = initMetadataForLambda;
12838
+ _.$_$.y8 = initMetadataForObject;
12839
+ _.$_$.z8 = isArray;
12840
+ _.$_$.a9 = isBooleanArray;
12841
+ _.$_$.b9 = isByteArray;
12842
+ _.$_$.c9 = isCharArray;
12843
+ _.$_$.d9 = isDoubleArray;
12844
+ _.$_$.e9 = isFloatArray;
12845
+ _.$_$.f9 = isIntArray;
12846
+ _.$_$.g9 = isInterface;
12847
+ _.$_$.h9 = isLongArray;
12848
+ _.$_$.i9 = isShortArray;
12849
+ _.$_$.j9 = get_js;
12850
+ _.$_$.k9 = longArray;
12851
+ _.$_$.l9 = numberRangeToNumber;
12852
+ _.$_$.m9 = numberToChar;
12853
+ _.$_$.n9 = numberToInt;
12854
+ _.$_$.o9 = numberToLong;
12855
+ _.$_$.p9 = objectCreate;
12856
+ _.$_$.q9 = protoOf;
12857
+ _.$_$.r9 = toByte;
12858
+ _.$_$.s9 = toLong;
12859
+ _.$_$.t9 = toShort;
12860
+ _.$_$.u9 = toString_1;
12861
+ _.$_$.v9 = round;
12862
+ _.$_$.w9 = ClosedRange;
12863
+ _.$_$.x9 = coerceAtLeast;
12864
+ _.$_$.y9 = coerceAtMost;
12865
+ _.$_$.z9 = contains_5;
12866
+ _.$_$.aa = step;
12867
+ _.$_$.ba = until;
12868
+ _.$_$.ca = KClass;
12869
+ _.$_$.da = KMutableProperty0;
12870
+ _.$_$.ea = KMutableProperty1;
12871
+ _.$_$.fa = KProperty0;
12872
+ _.$_$.ga = KProperty1;
12873
+ _.$_$.ha = KTypeParameter;
12874
+ _.$_$.ia = filter;
12875
+ _.$_$.ja = firstOrNull_1;
12876
+ _.$_$.ka = flatMap;
12877
+ _.$_$.la = mapNotNull;
12878
+ _.$_$.ma = map;
12879
+ _.$_$.na = toList_1;
12880
+ _.$_$.oa = contains_7;
12881
+ _.$_$.pa = equals_0;
12882
+ _.$_$.qa = indexOf_5;
12883
+ _.$_$.ra = indexOf_4;
12884
+ _.$_$.sa = isBlank;
12885
+ _.$_$.ta = get_lastIndex_3;
12886
+ _.$_$.ua = lastIndexOf_0;
12887
+ _.$_$.va = padStart;
12888
+ _.$_$.wa = removePrefix;
12889
+ _.$_$.xa = removeSuffix;
12890
+ _.$_$.ya = repeat;
12891
+ _.$_$.za = replace;
12892
+ _.$_$.ab = single_2;
12893
+ _.$_$.bb = startsWith;
12894
+ _.$_$.cb = startsWith_1;
12895
+ _.$_$.db = substringAfter;
12896
+ _.$_$.eb = substringBefore;
12897
+ _.$_$.fb = toBooleanStrictOrNull;
12898
+ _.$_$.gb = toDoubleOrNull;
12899
+ _.$_$.hb = toDouble;
12900
+ _.$_$.ib = toIntOrNull;
12901
+ _.$_$.jb = toInt;
12902
+ _.$_$.kb = toLongOrNull;
12903
+ _.$_$.lb = toUByte;
12904
+ _.$_$.mb = toUInt;
12905
+ _.$_$.nb = toULongOrNull;
12906
+ _.$_$.ob = toULong;
12907
+ _.$_$.pb = toUShort;
12908
+ _.$_$.qb = trimIndent;
12909
+ _.$_$.rb = Duration;
12910
+ _.$_$.sb = toDuration_1;
12911
+ _.$_$.tb = toDuration_0;
12912
+ _.$_$.ub = toDuration;
12913
+ _.$_$.vb = Uuid;
12914
+ _.$_$.wb = ArithmeticException;
12915
+ _.$_$.xb = Char;
12916
+ _.$_$.yb = Comparable;
12917
+ _.$_$.zb = Comparator;
12918
+ _.$_$.ac = DeepRecursiveFunction;
12919
+ _.$_$.bc = DeepRecursiveScope;
12920
+ _.$_$.cc = Enum;
12921
+ _.$_$.dc = Exception;
12922
+ _.$_$.ec = IllegalArgumentException;
12923
+ _.$_$.fc = Long;
12924
+ _.$_$.gc = Pair;
12925
+ _.$_$.hc = Result;
12926
+ _.$_$.ic = RuntimeException;
12927
+ _.$_$.jc = THROW_CCE;
12928
+ _.$_$.kc = THROW_IAE;
12929
+ _.$_$.lc = Triple;
12930
+ _.$_$.mc = UByteArray;
12931
+ _.$_$.nc = UByte;
12932
+ _.$_$.oc = UIntArray;
12933
+ _.$_$.pc = UInt;
12934
+ _.$_$.qc = ULongArray;
12935
+ _.$_$.rc = ULong;
12936
+ _.$_$.sc = UShortArray;
12937
+ _.$_$.tc = UShort;
12938
+ _.$_$.uc = Unit;
12939
+ _.$_$.vc = arrayOf;
12940
+ _.$_$.wc = countTrailingZeroBits;
12941
+ _.$_$.xc = createFailure;
12942
+ _.$_$.yc = ensureNotNull;
12943
+ _.$_$.zc = invoke;
12944
+ _.$_$.ad = isFinite;
12945
+ _.$_$.bd = isFinite_0;
12946
+ _.$_$.cd = lazy_0;
12947
+ _.$_$.dd = lazy;
12948
+ _.$_$.ed = noWhenBranchMatchedException;
12949
+ _.$_$.fd = plus_2;
12950
+ _.$_$.gd = printStackTrace;
12951
+ _.$_$.hd = stackTraceToString;
12952
+ _.$_$.id = toString_0;
12953
+ _.$_$.jd = to;
12915
12954
  //endregion
12916
12955
  return _;
12917
12956
  }));