@cruglobal/godtools-shared 0.9.3-PR569-SNAPSHOT.1427 → 0.9.3-PR569-SNAPSHOT.1474

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.
@@ -32,6 +32,11 @@ if (typeof Array.prototype.fill === 'undefined') {
32
32
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
33
33
  }
34
34
  });
35
+ if (typeof Math.log2 === 'undefined') {
36
+ Math.log2 = function (x) {
37
+ return Math.log(x) * Math.LOG2E;
38
+ };
39
+ }
35
40
  if (typeof Math.clz32 === 'undefined') {
36
41
  Math.clz32 = function (log, LN2) {
37
42
  return function (x) {
@@ -43,11 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
43
48
  };
44
49
  }(Math.log, Math.LN2);
45
50
  }
46
- if (typeof Math.log2 === 'undefined') {
47
- Math.log2 = function (x) {
48
- return Math.log(x) * Math.LOG2E;
49
- };
50
- }
51
51
  if (typeof String.prototype.startsWith === 'undefined') {
52
52
  Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
53
53
  position = position || 0;
@@ -100,24 +100,24 @@ if (typeof Math.imul === 'undefined') {
100
100
  setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta);
101
101
  setMetadataFor(ListIteratorImpl, 'ListIteratorImpl', classMeta, IteratorImpl);
102
102
  setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]);
103
- setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, List, Collection]);
103
+ setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, List]);
104
104
  setMetadataFor(Map_0, 'Map', interfaceMeta);
105
105
  setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]);
106
106
  setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, Map_0]);
107
107
  setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
108
- setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Set, Collection]);
108
+ setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, Set]);
109
109
  setMetadataFor(Companion, 'Companion', objectMeta);
110
- setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, List, Collection], ArrayList_init_$Create$);
110
+ setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, Collection, List], ArrayList_init_$Create$);
111
111
  setMetadataFor(HashMap, 'HashMap', classMeta, AbstractMutableMap, [AbstractMutableMap, Map_0], HashMap_init_$Create$);
112
- setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
112
+ setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
113
113
  setMetadataFor(HashMapValues, 'HashMapValues', classMeta, AbstractMutableCollection, [Collection, AbstractMutableCollection]);
114
- setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
114
+ setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
115
115
  setMetadataFor(HashMapEntrySet, 'HashMapEntrySet', classMeta, HashMapEntrySetBase);
116
116
  setMetadataFor(HashMapKeysDefault$iterator$1, VOID, classMeta);
117
117
  setMetadataFor(HashMapKeysDefault, 'HashMapKeysDefault', classMeta, AbstractMutableSet);
118
118
  setMetadataFor(HashMapValuesDefault$iterator$1, VOID, classMeta);
119
119
  setMetadataFor(HashMapValuesDefault, 'HashMapValuesDefault', classMeta, AbstractMutableCollection);
120
- setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Set, Collection], HashSet_init_$Create$);
120
+ setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Collection, Set], HashSet_init_$Create$);
121
121
  setMetadataFor(Companion_0, 'Companion', objectMeta);
122
122
  setMetadataFor(Itr, 'Itr', classMeta);
123
123
  setMetadataFor(KeysItr, 'KeysItr', classMeta, Itr);
@@ -166,7 +166,7 @@ if (typeof Math.imul === 'undefined') {
166
166
  setMetadataFor(EmptyHolder, 'EmptyHolder', objectMeta);
167
167
  setMetadataFor(LinkedHashMap, 'LinkedHashMap', classMeta, HashMap, [HashMap, Map_0], LinkedHashMap_init_$Create$);
168
168
  setMetadataFor(EmptyHolder_0, 'EmptyHolder', objectMeta);
169
- setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Set, Collection], LinkedHashSet_init_$Create$);
169
+ setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Collection, Set], LinkedHashSet_init_$Create$);
170
170
  setMetadataFor(BaseOutput, 'BaseOutput', classMeta);
171
171
  setMetadataFor(NodeJsOutput, 'NodeJsOutput', classMeta, BaseOutput);
172
172
  setMetadataFor(BufferedOutput, 'BufferedOutput', classMeta, BaseOutput, VOID, BufferedOutput);
@@ -7191,12 +7191,12 @@ if (typeof Math.imul === 'undefined') {
7191
7191
  return _this__u8e3s4;
7192
7192
  }
7193
7193
  }
7194
- function get_lastIndex_1(_this__u8e3s4) {
7195
- return _this__u8e3s4.l() - 1 | 0;
7196
- }
7197
7194
  function mutableListOf(elements) {
7198
7195
  return elements.length === 0 ? ArrayList_init_$Create$() : ArrayList_init_$Create$_1(new ArrayAsCollection(elements, true));
7199
7196
  }
7197
+ function get_lastIndex_1(_this__u8e3s4) {
7198
+ return _this__u8e3s4.l() - 1 | 0;
7199
+ }
7200
7200
  function EmptyList() {
7201
7201
  EmptyList_instance = this;
7202
7202
  this.vd_1 = new Long(-1478467534, -1720727600);
@@ -9594,147 +9594,146 @@ if (typeof Math.imul === 'undefined') {
9594
9594
  _.$_$.e4 = mapOf;
9595
9595
  _.$_$.f4 = maxOrNull;
9596
9596
  _.$_$.g4 = minOrNull;
9597
- _.$_$.h4 = mutableListOf;
9598
- _.$_$.i4 = plus_0;
9599
- _.$_$.j4 = removeFirstOrNull;
9600
- _.$_$.k4 = removeFirst;
9601
- _.$_$.l4 = setOf;
9602
- _.$_$.m4 = sortWith;
9603
- _.$_$.n4 = sortedWith;
9604
- _.$_$.o4 = sorted;
9605
- _.$_$.p4 = take_0;
9606
- _.$_$.q4 = toList_0;
9607
- _.$_$.r4 = toSet_0;
9608
- _.$_$.s4 = toSet;
9609
- _.$_$.t4 = compareValues;
9610
- _.$_$.u4 = CancellationException;
9611
- _.$_$.v4 = get_COROUTINE_SUSPENDED;
9612
- _.$_$.w4 = createCoroutineUnintercepted;
9613
- _.$_$.x4 = intercepted;
9614
- _.$_$.y4 = AbstractCoroutineContextElement;
9615
- _.$_$.z4 = AbstractCoroutineContextKey;
9616
- _.$_$.a5 = get_0;
9617
- _.$_$.b5 = minusKey_0;
9618
- _.$_$.c5 = ContinuationInterceptor;
9619
- _.$_$.d5 = Continuation;
9620
- _.$_$.e5 = fold;
9621
- _.$_$.f5 = get;
9622
- _.$_$.g5 = minusKey;
9623
- _.$_$.h5 = Element;
9624
- _.$_$.i5 = plus;
9625
- _.$_$.j5 = CoroutineImpl;
9626
- _.$_$.k5 = startCoroutine;
9627
- _.$_$.l5 = enumEntries;
9628
- _.$_$.m5 = println;
9629
- _.$_$.n5 = anyToString;
9630
- _.$_$.o5 = arrayIterator;
9631
- _.$_$.p5 = captureStack;
9632
- _.$_$.q5 = charArrayOf;
9633
- _.$_$.r5 = charSequenceGet;
9634
- _.$_$.s5 = charSequenceLength;
9635
- _.$_$.t5 = classMeta;
9636
- _.$_$.u5 = compareTo_0;
9637
- _.$_$.v5 = defineProp;
9638
- _.$_$.w5 = equals_0;
9639
- _.$_$.x5 = fillArrayVal;
9640
- _.$_$.y5 = getBooleanHashCode;
9641
- _.$_$.z5 = getNumberHashCode;
9642
- _.$_$.a6 = getPropertyCallableRef;
9643
- _.$_$.b6 = getStringHashCode;
9644
- _.$_$.c6 = hashCode;
9645
- _.$_$.d6 = interfaceMeta;
9646
- _.$_$.e6 = isArray;
9647
- _.$_$.f6 = isCharSequence;
9648
- _.$_$.g6 = isInterface;
9649
- _.$_$.h6 = numberRangeToNumber;
9650
- _.$_$.i6 = numberToByte;
9651
- _.$_$.j6 = numberToChar;
9652
- _.$_$.k6 = numberToDouble;
9653
- _.$_$.l6 = numberToInt;
9654
- _.$_$.m6 = objectCreate;
9655
- _.$_$.n6 = objectMeta;
9656
- _.$_$.o6 = protoOf;
9657
- _.$_$.p6 = setMetadataFor;
9658
- _.$_$.q6 = toByte;
9659
- _.$_$.r6 = toLong;
9660
- _.$_$.s6 = toString_1;
9661
- _.$_$.t6 = get_PI;
9662
- _.$_$.u6 = roundToInt;
9663
- _.$_$.v6 = withSign;
9664
- _.$_$.w6 = coerceAtLeast_0;
9665
- _.$_$.x6 = coerceAtLeast_1;
9666
- _.$_$.y6 = coerceAtLeast;
9667
- _.$_$.z6 = coerceAtMost;
9668
- _.$_$.a7 = coerceIn;
9669
- _.$_$.b7 = coerceIn_0;
9670
- _.$_$.c7 = contains_2;
9671
- _.$_$.d7 = rangeTo;
9672
- _.$_$.e7 = KMutableProperty1;
9673
- _.$_$.f7 = KProperty1;
9674
- _.$_$.g7 = Builder_0;
9675
- _.$_$.h7 = StringBuilder;
9676
- _.$_$.i7 = concatToString;
9677
- _.$_$.j7 = contains_5;
9678
- _.$_$.k7 = contains_4;
9679
- _.$_$.l7 = dropLast_0;
9680
- _.$_$.m7 = endsWith;
9681
- _.$_$.n7 = equals;
9682
- _.$_$.o7 = equals_1;
9683
- _.$_$.p7 = hasSurrogatePairAt;
9684
- _.$_$.q7 = indexOf_1;
9685
- _.$_$.r7 = isBlank;
9686
- _.$_$.s7 = isHighSurrogate;
9687
- _.$_$.t7 = isUpperCase;
9688
- _.$_$.u7 = last;
9689
- _.$_$.v7 = replace;
9690
- _.$_$.w7 = slice;
9691
- _.$_$.x7 = splitToSequence;
9692
- _.$_$.y7 = split;
9693
- _.$_$.z7 = split_0;
9694
- _.$_$.a8 = startsWith;
9695
- _.$_$.b8 = substringBefore;
9696
- _.$_$.c8 = take_2;
9697
- _.$_$.d8 = toBoolean;
9698
- _.$_$.e8 = toCharArray;
9699
- _.$_$.f8 = toDoubleOrNull;
9700
- _.$_$.g8 = toDouble;
9701
- _.$_$.h8 = toHexString;
9702
- _.$_$.i8 = toIntOrNull;
9703
- _.$_$.j8 = toInt_0;
9704
- _.$_$.k8 = toInt;
9705
- _.$_$.l8 = toLongOrNull;
9706
- _.$_$.m8 = toUInt;
9707
- _.$_$.n8 = trimEnd;
9708
- _.$_$.o8 = trim;
9709
- _.$_$.p8 = Char;
9710
- _.$_$.q8 = Comparable;
9711
- _.$_$.r8 = Comparator;
9712
- _.$_$.s8 = Enum;
9713
- _.$_$.t8 = Error_0;
9714
- _.$_$.u8 = Exception;
9715
- _.$_$.v8 = IllegalArgumentException;
9716
- _.$_$.w8 = IllegalStateException;
9717
- _.$_$.x8 = Long;
9718
- _.$_$.y8 = NoSuchElementException;
9719
- _.$_$.z8 = NumberFormatException;
9720
- _.$_$.a9 = Pair;
9721
- _.$_$.b9 = RuntimeException;
9722
- _.$_$.c9 = THROW_CCE;
9723
- _.$_$.d9 = THROW_IAE;
9724
- _.$_$.e9 = UInt;
9725
- _.$_$.f9 = Unit;
9726
- _.$_$.g9 = UnsupportedOperationException;
9727
- _.$_$.h9 = addSuppressed;
9728
- _.$_$.i9 = createFailure;
9729
- _.$_$.j9 = ensureNotNull;
9730
- _.$_$.k9 = isNaN_1;
9731
- _.$_$.l9 = lazy;
9732
- _.$_$.m9 = noWhenBranchMatchedException;
9733
- _.$_$.n9 = throwKotlinNothingValueException;
9734
- _.$_$.o9 = throwUninitializedPropertyAccessException;
9735
- _.$_$.p9 = toString_0;
9736
- _.$_$.q9 = to;
9737
- _.$_$.r9 = uintCompare;
9597
+ _.$_$.h4 = plus_0;
9598
+ _.$_$.i4 = removeFirstOrNull;
9599
+ _.$_$.j4 = removeFirst;
9600
+ _.$_$.k4 = setOf;
9601
+ _.$_$.l4 = sortWith;
9602
+ _.$_$.m4 = sortedWith;
9603
+ _.$_$.n4 = sorted;
9604
+ _.$_$.o4 = take_0;
9605
+ _.$_$.p4 = toList_0;
9606
+ _.$_$.q4 = toSet_0;
9607
+ _.$_$.r4 = toSet;
9608
+ _.$_$.s4 = compareValues;
9609
+ _.$_$.t4 = CancellationException;
9610
+ _.$_$.u4 = get_COROUTINE_SUSPENDED;
9611
+ _.$_$.v4 = createCoroutineUnintercepted;
9612
+ _.$_$.w4 = intercepted;
9613
+ _.$_$.x4 = AbstractCoroutineContextElement;
9614
+ _.$_$.y4 = AbstractCoroutineContextKey;
9615
+ _.$_$.z4 = get_0;
9616
+ _.$_$.a5 = minusKey_0;
9617
+ _.$_$.b5 = ContinuationInterceptor;
9618
+ _.$_$.c5 = Continuation;
9619
+ _.$_$.d5 = fold;
9620
+ _.$_$.e5 = get;
9621
+ _.$_$.f5 = minusKey;
9622
+ _.$_$.g5 = Element;
9623
+ _.$_$.h5 = plus;
9624
+ _.$_$.i5 = CoroutineImpl;
9625
+ _.$_$.j5 = startCoroutine;
9626
+ _.$_$.k5 = enumEntries;
9627
+ _.$_$.l5 = println;
9628
+ _.$_$.m5 = anyToString;
9629
+ _.$_$.n5 = arrayIterator;
9630
+ _.$_$.o5 = captureStack;
9631
+ _.$_$.p5 = charArrayOf;
9632
+ _.$_$.q5 = charSequenceGet;
9633
+ _.$_$.r5 = charSequenceLength;
9634
+ _.$_$.s5 = classMeta;
9635
+ _.$_$.t5 = compareTo_0;
9636
+ _.$_$.u5 = defineProp;
9637
+ _.$_$.v5 = equals_0;
9638
+ _.$_$.w5 = fillArrayVal;
9639
+ _.$_$.x5 = getBooleanHashCode;
9640
+ _.$_$.y5 = getNumberHashCode;
9641
+ _.$_$.z5 = getPropertyCallableRef;
9642
+ _.$_$.a6 = getStringHashCode;
9643
+ _.$_$.b6 = hashCode;
9644
+ _.$_$.c6 = interfaceMeta;
9645
+ _.$_$.d6 = isArray;
9646
+ _.$_$.e6 = isCharSequence;
9647
+ _.$_$.f6 = isInterface;
9648
+ _.$_$.g6 = numberRangeToNumber;
9649
+ _.$_$.h6 = numberToByte;
9650
+ _.$_$.i6 = numberToChar;
9651
+ _.$_$.j6 = numberToDouble;
9652
+ _.$_$.k6 = numberToInt;
9653
+ _.$_$.l6 = objectCreate;
9654
+ _.$_$.m6 = objectMeta;
9655
+ _.$_$.n6 = protoOf;
9656
+ _.$_$.o6 = setMetadataFor;
9657
+ _.$_$.p6 = toByte;
9658
+ _.$_$.q6 = toLong;
9659
+ _.$_$.r6 = toString_1;
9660
+ _.$_$.s6 = get_PI;
9661
+ _.$_$.t6 = roundToInt;
9662
+ _.$_$.u6 = withSign;
9663
+ _.$_$.v6 = coerceAtLeast_0;
9664
+ _.$_$.w6 = coerceAtLeast_1;
9665
+ _.$_$.x6 = coerceAtLeast;
9666
+ _.$_$.y6 = coerceAtMost;
9667
+ _.$_$.z6 = coerceIn;
9668
+ _.$_$.a7 = coerceIn_0;
9669
+ _.$_$.b7 = contains_2;
9670
+ _.$_$.c7 = rangeTo;
9671
+ _.$_$.d7 = KMutableProperty1;
9672
+ _.$_$.e7 = KProperty1;
9673
+ _.$_$.f7 = Builder_0;
9674
+ _.$_$.g7 = StringBuilder;
9675
+ _.$_$.h7 = concatToString;
9676
+ _.$_$.i7 = contains_5;
9677
+ _.$_$.j7 = contains_4;
9678
+ _.$_$.k7 = dropLast_0;
9679
+ _.$_$.l7 = endsWith;
9680
+ _.$_$.m7 = equals;
9681
+ _.$_$.n7 = equals_1;
9682
+ _.$_$.o7 = hasSurrogatePairAt;
9683
+ _.$_$.p7 = indexOf_1;
9684
+ _.$_$.q7 = isBlank;
9685
+ _.$_$.r7 = isHighSurrogate;
9686
+ _.$_$.s7 = isUpperCase;
9687
+ _.$_$.t7 = last;
9688
+ _.$_$.u7 = replace;
9689
+ _.$_$.v7 = slice;
9690
+ _.$_$.w7 = splitToSequence;
9691
+ _.$_$.x7 = split;
9692
+ _.$_$.y7 = split_0;
9693
+ _.$_$.z7 = startsWith;
9694
+ _.$_$.a8 = substringBefore;
9695
+ _.$_$.b8 = take_2;
9696
+ _.$_$.c8 = toBoolean;
9697
+ _.$_$.d8 = toCharArray;
9698
+ _.$_$.e8 = toDoubleOrNull;
9699
+ _.$_$.f8 = toDouble;
9700
+ _.$_$.g8 = toHexString;
9701
+ _.$_$.h8 = toIntOrNull;
9702
+ _.$_$.i8 = toInt_0;
9703
+ _.$_$.j8 = toInt;
9704
+ _.$_$.k8 = toLongOrNull;
9705
+ _.$_$.l8 = toUInt;
9706
+ _.$_$.m8 = trimEnd;
9707
+ _.$_$.n8 = trim;
9708
+ _.$_$.o8 = Char;
9709
+ _.$_$.p8 = Comparable;
9710
+ _.$_$.q8 = Comparator;
9711
+ _.$_$.r8 = Enum;
9712
+ _.$_$.s8 = Error_0;
9713
+ _.$_$.t8 = Exception;
9714
+ _.$_$.u8 = IllegalArgumentException;
9715
+ _.$_$.v8 = IllegalStateException;
9716
+ _.$_$.w8 = Long;
9717
+ _.$_$.x8 = NoSuchElementException;
9718
+ _.$_$.y8 = NumberFormatException;
9719
+ _.$_$.z8 = Pair;
9720
+ _.$_$.a9 = RuntimeException;
9721
+ _.$_$.b9 = THROW_CCE;
9722
+ _.$_$.c9 = THROW_IAE;
9723
+ _.$_$.d9 = UInt;
9724
+ _.$_$.e9 = Unit;
9725
+ _.$_$.f9 = UnsupportedOperationException;
9726
+ _.$_$.g9 = addSuppressed;
9727
+ _.$_$.h9 = createFailure;
9728
+ _.$_$.i9 = ensureNotNull;
9729
+ _.$_$.j9 = isNaN_1;
9730
+ _.$_$.k9 = lazy;
9731
+ _.$_$.l9 = noWhenBranchMatchedException;
9732
+ _.$_$.m9 = throwKotlinNothingValueException;
9733
+ _.$_$.n9 = throwUninitializedPropertyAccessException;
9734
+ _.$_$.o9 = toString_0;
9735
+ _.$_$.p9 = to;
9736
+ _.$_$.q9 = uintCompare;
9738
9737
  //endregion
9739
9738
  return _;
9740
9739
  }));