@solibo/solibo-sdk 1.0.42 → 1.0.43
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/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -42,17 +42,6 @@ if (typeof Math.log10 === 'undefined') {
|
|
|
42
42
|
return Math.log(x) * Math.LOG10E;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
if (typeof Math.clz32 === 'undefined') {
|
|
46
|
-
Math.clz32 = function (log, LN2) {
|
|
47
|
-
return function (x) {
|
|
48
|
-
var asUint = x >>> 0;
|
|
49
|
-
if (asUint === 0) {
|
|
50
|
-
return 32;
|
|
51
|
-
}
|
|
52
|
-
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
53
|
-
};
|
|
54
|
-
}(Math.log, Math.LN2);
|
|
55
|
-
}
|
|
56
45
|
if (typeof Math.trunc === 'undefined') {
|
|
57
46
|
Math.trunc = function (x) {
|
|
58
47
|
if (isNaN(x)) {
|
|
@@ -64,11 +53,16 @@ if (typeof Math.trunc === 'undefined') {
|
|
|
64
53
|
return Math.ceil(x);
|
|
65
54
|
};
|
|
66
55
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
if (typeof Math.clz32 === 'undefined') {
|
|
57
|
+
Math.clz32 = function (log, LN2) {
|
|
58
|
+
return function (x) {
|
|
59
|
+
var asUint = x >>> 0;
|
|
60
|
+
if (asUint === 0) {
|
|
61
|
+
return 32;
|
|
62
|
+
}
|
|
63
|
+
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
64
|
+
};
|
|
65
|
+
}(Math.log, Math.LN2);
|
|
72
66
|
}
|
|
73
67
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
74
68
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -81,6 +75,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
81
75
|
return lastIndex !== -1 && lastIndex === position;
|
|
82
76
|
}});
|
|
83
77
|
}
|
|
78
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
79
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
80
|
+
position = position || 0;
|
|
81
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
82
|
+
}});
|
|
83
|
+
}
|
|
84
84
|
//endregion
|
|
85
85
|
//region block: imports
|
|
86
86
|
var imul_0 = Math.imul;
|
|
@@ -124,8 +124,8 @@ function asJsMapView() {
|
|
|
124
124
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
125
125
|
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
126
126
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
127
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
128
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
127
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
|
|
128
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
|
|
129
129
|
initMetadataForCompanion(Companion_3);
|
|
130
130
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
131
131
|
initMetadataForCompanion(Companion_4);
|
|
@@ -149,7 +149,7 @@ initMetadataForClass(asList$1, VOID, VOID, AbstractList, [AbstractList, RandomAc
|
|
|
149
149
|
initMetadataForInterface(AutoCloseable, 'AutoCloseable');
|
|
150
150
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
151
151
|
initMetadataForObject(Unit, 'Unit');
|
|
152
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection,
|
|
152
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
|
|
153
153
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
154
154
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
155
155
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
|
|
@@ -161,7 +161,7 @@ initMetadataForCompanion(Companion_5);
|
|
|
161
161
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
|
|
162
162
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
|
|
163
163
|
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
164
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
164
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
|
|
165
165
|
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
166
166
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
167
167
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|