@tuprolog/2p-full 1.1.3 → 1.1.5
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/2p-bdd.js +5 -5
- package/2p-core.js +16 -16
- package/2p-solve-classic.js +6 -6
- package/2p-solve-plp.js +1 -1
- package/2p-solve-problog.js +5 -5
- package/2p-solve-streams.js +5 -5
- package/2p-solve.js +48 -32
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +5 -5
- package/2p-unify.js +5 -5
- package/2p-utils.js +8 -8
- package/kotlin-kotlin-stdlib.js +150 -65
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +20 -20
- package/package.json +1 -1
package/2p-theory.js
CHANGED
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
var isInterface = kotlin_kotlin.$_$.c6;
|
|
55
55
|
var KProperty1 = kotlin_kotlin.$_$.c7;
|
|
56
56
|
var getPropertyCallableRef = kotlin_kotlin.$_$.q5;
|
|
57
|
-
var lazy = kotlin_kotlin.$_$.
|
|
57
|
+
var lazy = kotlin_kotlin.$_$.na;
|
|
58
58
|
var CoroutineImpl = kotlin_kotlin.$_$.k4;
|
|
59
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
59
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
60
60
|
var SequenceScope = kotlin_kotlin.$_$.d7;
|
|
61
61
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.j4;
|
|
62
62
|
var initMetadataForLambda = kotlin_kotlin.$_$.x5;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.d;
|
|
77
77
|
var minOrNull = kotlin_kotlin.$_$.c3;
|
|
78
78
|
var map = kotlin_kotlin.$_$.c8;
|
|
79
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
79
|
+
var ensureNotNull = kotlin_kotlin.$_$.la;
|
|
80
80
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
81
81
|
var sum = kotlin_kotlin.$_$.l8;
|
|
82
82
|
var Collection = kotlin_kotlin.$_$.l1;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
var flatMap = kotlin_kotlin.$_$.t7;
|
|
92
92
|
var sequenceOf_0 = kotlin_kotlin.$_$.j8;
|
|
93
93
|
var firstOrNull = kotlin_kotlin.$_$.r7;
|
|
94
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
94
|
+
var NotImplementedError = kotlin_kotlin.$_$.da;
|
|
95
95
|
var take = kotlin_kotlin.$_$.n8;
|
|
96
96
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
97
97
|
var get_ONE = kotlin_kotlin.$_$.m4;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
var listOf_0 = kotlin_kotlin.$_$.x2;
|
|
119
119
|
var none_0 = kotlin_kotlin.$_$.l3;
|
|
120
120
|
var dequeOf_1 = kotlin_it_unibo_tuprolog_utils.$_$.w;
|
|
121
|
-
var Pair = kotlin_kotlin.$_$.
|
|
121
|
+
var Pair = kotlin_kotlin.$_$.ga;
|
|
122
122
|
var toMutableList = kotlin_kotlin.$_$.f4;
|
|
123
123
|
var toMutableList_0 = kotlin_kotlin.$_$.r8;
|
|
124
124
|
var addFirst_0 = kotlin_it_unibo_tuprolog_utils.$_$.o;
|
package/2p-unify.js
CHANGED
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
30
30
|
var toCollection = kotlin_kotlin.$_$.o8;
|
|
31
|
-
var Pair = kotlin_kotlin.$_$.
|
|
31
|
+
var Pair = kotlin_kotlin.$_$.ga;
|
|
32
32
|
var VOID = kotlin_kotlin.$_$.b;
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.na;
|
|
34
34
|
var protoOf = kotlin_kotlin.$_$.k6;
|
|
35
35
|
var asSequence_0 = kotlin_kotlin.$_$.w1;
|
|
36
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
37
37
|
var initMetadataForClass = kotlin_kotlin.$_$.t5;
|
|
38
38
|
var Companion_instance = kotlin_it_unibo_tuprolog_utils.$_$.a;
|
|
39
|
-
var Triple = kotlin_kotlin.$_$.
|
|
39
|
+
var Triple = kotlin_kotlin.$_$.ka;
|
|
40
40
|
var Some = kotlin_it_unibo_tuprolog_utils.$_$.k;
|
|
41
41
|
var zip = kotlin_kotlin.$_$.v8;
|
|
42
42
|
var flatMap = kotlin_kotlin.$_$.t7;
|
|
43
43
|
var sequenceOf = kotlin_kotlin.$_$.j8;
|
|
44
|
-
var to = kotlin_kotlin.$_$.
|
|
44
|
+
var to = kotlin_kotlin.$_$.ta;
|
|
45
45
|
var sequenceOf_0 = kotlin_kotlin.$_$.i8;
|
|
46
46
|
var initMetadataForCompanion = kotlin_kotlin.$_$.u5;
|
|
47
47
|
var toString = kotlin_kotlin.$_$.n6;
|
package/2p-utils.js
CHANGED
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
var initMetadataForCompanion = kotlin_kotlin.$_$.u5;
|
|
18
18
|
var Unit_instance = kotlin_kotlin.$_$.k1;
|
|
19
19
|
var initMetadataForInterface = kotlin_kotlin.$_$.w5;
|
|
20
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
21
21
|
var isInterface = kotlin_kotlin.$_$.c6;
|
|
22
22
|
var initMetadataForClass = kotlin_kotlin.$_$.t5;
|
|
23
23
|
var Sequence = kotlin_kotlin.$_$.e7;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.b;
|
|
25
25
|
var arrayIterator = kotlin_kotlin.$_$.d5;
|
|
26
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
26
|
+
var Comparable = kotlin_kotlin.$_$.x9;
|
|
27
27
|
var toList = kotlin_kotlin.$_$.q8;
|
|
28
28
|
var asSequence = kotlin_kotlin.$_$.w1;
|
|
29
29
|
var asIterable = kotlin_kotlin.$_$.s1;
|
|
@@ -36,33 +36,33 @@
|
|
|
36
36
|
var zip = kotlin_kotlin.$_$.u8;
|
|
37
37
|
var equals = kotlin_kotlin.$_$.m5;
|
|
38
38
|
var FunctionAdapter = kotlin_kotlin.$_$.c5;
|
|
39
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
39
|
+
var Comparator = kotlin_kotlin.$_$.y9;
|
|
40
40
|
var CoroutineImpl = kotlin_kotlin.$_$.k4;
|
|
41
41
|
var SequenceScope = kotlin_kotlin.$_$.d7;
|
|
42
42
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.j4;
|
|
43
43
|
var initMetadataForLambda = kotlin_kotlin.$_$.x5;
|
|
44
44
|
var withIndex = kotlin_kotlin.$_$.t8;
|
|
45
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
45
|
+
var ensureNotNull = kotlin_kotlin.$_$.la;
|
|
46
46
|
var map = kotlin_kotlin.$_$.c8;
|
|
47
47
|
var filterNot = kotlin_kotlin.$_$.p7;
|
|
48
48
|
var toMutableList = kotlin_kotlin.$_$.r8;
|
|
49
49
|
var minWithOrNull = kotlin_kotlin.$_$.d8;
|
|
50
50
|
var subtract = kotlin_kotlin.$_$.a5;
|
|
51
51
|
var convertToInt = kotlin_kotlin.$_$.p4;
|
|
52
|
-
var toString = kotlin_kotlin.$_$.
|
|
52
|
+
var toString = kotlin_kotlin.$_$.sa;
|
|
53
53
|
var initMetadataForObject = kotlin_kotlin.$_$.y5;
|
|
54
54
|
var KtMap = kotlin_kotlin.$_$.n1;
|
|
55
55
|
var toMutableMap = kotlin_kotlin.$_$.g4;
|
|
56
56
|
var toString_0 = kotlin_kotlin.$_$.n6;
|
|
57
|
-
var lazy = kotlin_kotlin.$_$.
|
|
57
|
+
var lazy = kotlin_kotlin.$_$.na;
|
|
58
58
|
var KProperty1 = kotlin_kotlin.$_$.c7;
|
|
59
59
|
var getPropertyCallableRef = kotlin_kotlin.$_$.q5;
|
|
60
60
|
var getKClassFromExpression = kotlin_kotlin.$_$.a7;
|
|
61
61
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
62
62
|
var getBigIntHashCode = kotlin_kotlin.$_$.n5;
|
|
63
63
|
var first = kotlin_kotlin.$_$.m2;
|
|
64
|
-
var to = kotlin_kotlin.$_$.
|
|
65
|
-
var Pair = kotlin_kotlin.$_$.
|
|
64
|
+
var to = kotlin_kotlin.$_$.ta;
|
|
65
|
+
var Pair = kotlin_kotlin.$_$.ga;
|
|
66
66
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
67
67
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
68
68
|
var joinToString = kotlin_kotlin.$_$.y7;
|
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -46,6 +46,17 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
46
46
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
+
if (typeof Math.clz32 === 'undefined') {
|
|
50
|
+
Math.clz32 = function (log, LN2) {
|
|
51
|
+
return function (x) {
|
|
52
|
+
var asUint = x >>> 0;
|
|
53
|
+
if (asUint === 0) {
|
|
54
|
+
return 32;
|
|
55
|
+
}
|
|
56
|
+
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
57
|
+
};
|
|
58
|
+
}(Math.log, Math.LN2);
|
|
59
|
+
}
|
|
49
60
|
if (typeof Math.trunc === 'undefined') {
|
|
50
61
|
Math.trunc = function (x) {
|
|
51
62
|
if (isNaN(x)) {
|
|
@@ -57,16 +68,16 @@ if (typeof Math.trunc === 'undefined') {
|
|
|
57
68
|
return Math.ceil(x);
|
|
58
69
|
};
|
|
59
70
|
}
|
|
60
|
-
if (typeof
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
71
|
+
if (typeof String.prototype.endsWith === 'undefined') {
|
|
72
|
+
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
73
|
+
var subjectString = this.toString();
|
|
74
|
+
if (position === undefined || position > subjectString.length) {
|
|
75
|
+
position = subjectString.length;
|
|
76
|
+
}
|
|
77
|
+
position -= searchString.length;
|
|
78
|
+
var lastIndex = subjectString.indexOf(searchString, position);
|
|
79
|
+
return lastIndex !== -1 && lastIndex === position;
|
|
80
|
+
}});
|
|
70
81
|
}
|
|
71
82
|
if (typeof String.prototype.startsWith === 'undefined') {
|
|
72
83
|
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
@@ -122,27 +133,27 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
122
133
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
123
134
|
initMetadataForObject(Unit, 'Unit');
|
|
124
135
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
125
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection,
|
|
136
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
|
|
126
137
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
127
138
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
128
|
-
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection,
|
|
139
|
+
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, MutableIterable, KtList, Collection]);
|
|
129
140
|
initMetadataForInterface(RandomAccess, 'RandomAccess');
|
|
130
141
|
initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList, [AbstractMutableList, RandomAccess]);
|
|
131
142
|
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
132
143
|
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMap]);
|
|
133
|
-
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection,
|
|
144
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, MutableIterable, KtSet, Collection]);
|
|
134
145
|
initMetadataForCompanion(Companion_1);
|
|
135
|
-
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList,
|
|
146
|
+
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, MutableIterable, KtList, Collection, RandomAccess]);
|
|
136
147
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMap]);
|
|
137
|
-
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [
|
|
138
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
139
|
-
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [
|
|
148
|
+
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [MutableIterable, KtSet, Collection, AbstractMutableSet]);
|
|
149
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
|
|
150
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [MutableIterable, KtSet, Collection, AbstractMutableSet]);
|
|
140
151
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
141
152
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
142
153
|
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
|
|
143
154
|
initMetadataForClass(HashMapValuesDefault$iterator$1);
|
|
144
155
|
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
|
|
145
|
-
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet,
|
|
156
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, MutableIterable, KtSet, Collection]);
|
|
146
157
|
initMetadataForCompanion(Companion_2);
|
|
147
158
|
initMetadataForClass(Itr, 'Itr');
|
|
148
159
|
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
|
|
@@ -187,7 +198,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
187
198
|
initMetadataForInterface(InternalMap, 'InternalMap');
|
|
188
199
|
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
|
|
189
200
|
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMap]);
|
|
190
|
-
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet,
|
|
201
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, MutableIterable, KtSet, Collection]);
|
|
191
202
|
initMetadataForClass(BaseOutput, 'BaseOutput');
|
|
192
203
|
initMetadataForClass(NodeJsOutput, 'NodeJsOutput', VOID, BaseOutput);
|
|
193
204
|
initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput, BaseOutput);
|
|
@@ -5080,7 +5091,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
5080
5091
|
var tmp_11 = this;
|
|
5081
5092
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5082
5093
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5083
|
-
var tmp_12 = BigInt;
|
|
5094
|
+
var tmp_12 = typeof BigInt === 'undefined' ? VOID : BigInt;
|
|
5084
5095
|
tmp_11.longClass = new PrimitiveKClassImpl(tmp_12, 'Long', PrimitiveClasses$longClass$lambda);
|
|
5085
5096
|
var tmp_13 = this;
|
|
5086
5097
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -5979,6 +5990,24 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
5979
5990
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5980
5991
|
return _this__u8e3s4.replace(tmp2, replacement);
|
|
5981
5992
|
}
|
|
5993
|
+
function endsWith(_this__u8e3s4, suffix, ignoreCase) {
|
|
5994
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5995
|
+
if (!ignoreCase) {
|
|
5996
|
+
// Inline function 'kotlin.text.nativeEndsWith' call
|
|
5997
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5998
|
+
return _this__u8e3s4.endsWith(suffix);
|
|
5999
|
+
} else
|
|
6000
|
+
return regionMatches(_this__u8e3s4, _this__u8e3s4.length - suffix.length | 0, suffix, 0, suffix.length, ignoreCase);
|
|
6001
|
+
}
|
|
6002
|
+
function startsWith(_this__u8e3s4, prefix, ignoreCase) {
|
|
6003
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
6004
|
+
if (!ignoreCase) {
|
|
6005
|
+
// Inline function 'kotlin.text.nativeStartsWith' call
|
|
6006
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
6007
|
+
return _this__u8e3s4.startsWith(prefix, 0);
|
|
6008
|
+
} else
|
|
6009
|
+
return regionMatches(_this__u8e3s4, 0, prefix, 0, prefix.length, ignoreCase);
|
|
6010
|
+
}
|
|
5982
6011
|
function replaceFirst(_this__u8e3s4, oldValue, newValue, ignoreCase) {
|
|
5983
6012
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5984
6013
|
var tmp2 = new RegExp(Companion_getInstance_3().ma(oldValue), ignoreCase ? 'ui' : 'u');
|
|
@@ -5991,7 +6020,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
5991
6020
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5992
6021
|
return regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase);
|
|
5993
6022
|
}
|
|
5994
|
-
function
|
|
6023
|
+
function startsWith_0(_this__u8e3s4, prefix, startIndex, ignoreCase) {
|
|
5995
6024
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5996
6025
|
if (!ignoreCase) {
|
|
5997
6026
|
// Inline function 'kotlin.text.nativeStartsWith' call
|
|
@@ -8284,7 +8313,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8284
8313
|
tmp$ret$4 = -1;
|
|
8285
8314
|
}
|
|
8286
8315
|
var firstNonWhitespaceIndex = tmp$ret$4;
|
|
8287
|
-
var tmp0_safe_receiver = firstNonWhitespaceIndex === -1 ? null :
|
|
8316
|
+
var tmp0_safe_receiver = firstNonWhitespaceIndex === -1 ? null : startsWith_0(item, marginPrefix, firstNonWhitespaceIndex) ? substring_0(item, firstNonWhitespaceIndex + marginPrefix.length | 0) : null;
|
|
8288
8317
|
var tmp_0;
|
|
8289
8318
|
if (tmp0_safe_receiver == null) {
|
|
8290
8319
|
tmp_0 = null;
|
|
@@ -8402,6 +8431,18 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8402
8431
|
padChar = padChar === VOID ? _Char___init__impl__6a9atx(32) : padChar;
|
|
8403
8432
|
return toString_1(padStart_0(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE(), length, padChar));
|
|
8404
8433
|
}
|
|
8434
|
+
function removeSuffix(_this__u8e3s4, suffix) {
|
|
8435
|
+
if (endsWith_0(_this__u8e3s4, suffix)) {
|
|
8436
|
+
return substring(_this__u8e3s4, 0, _this__u8e3s4.length - charSequenceLength(suffix) | 0);
|
|
8437
|
+
}
|
|
8438
|
+
return _this__u8e3s4;
|
|
8439
|
+
}
|
|
8440
|
+
function removePrefix(_this__u8e3s4, prefix) {
|
|
8441
|
+
if (startsWith_1(_this__u8e3s4, prefix)) {
|
|
8442
|
+
return substring_0(_this__u8e3s4, charSequenceLength(prefix));
|
|
8443
|
+
}
|
|
8444
|
+
return _this__u8e3s4;
|
|
8445
|
+
}
|
|
8405
8446
|
function substringBefore(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
8406
8447
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
8407
8448
|
var index = indexOf_2(_this__u8e3s4, delimiter);
|
|
@@ -8603,6 +8644,46 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8603
8644
|
sb.m(_this__u8e3s4);
|
|
8604
8645
|
return sb;
|
|
8605
8646
|
}
|
|
8647
|
+
function endsWith_0(_this__u8e3s4, suffix, ignoreCase) {
|
|
8648
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8649
|
+
var tmp;
|
|
8650
|
+
var tmp_0;
|
|
8651
|
+
if (!ignoreCase) {
|
|
8652
|
+
tmp_0 = typeof _this__u8e3s4 === 'string';
|
|
8653
|
+
} else {
|
|
8654
|
+
tmp_0 = false;
|
|
8655
|
+
}
|
|
8656
|
+
if (tmp_0) {
|
|
8657
|
+
tmp = typeof suffix === 'string';
|
|
8658
|
+
} else {
|
|
8659
|
+
tmp = false;
|
|
8660
|
+
}
|
|
8661
|
+
if (tmp)
|
|
8662
|
+
return endsWith(_this__u8e3s4, suffix);
|
|
8663
|
+
else {
|
|
8664
|
+
return regionMatchesImpl(_this__u8e3s4, charSequenceLength(_this__u8e3s4) - charSequenceLength(suffix) | 0, suffix, 0, charSequenceLength(suffix), ignoreCase);
|
|
8665
|
+
}
|
|
8666
|
+
}
|
|
8667
|
+
function startsWith_1(_this__u8e3s4, prefix, ignoreCase) {
|
|
8668
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8669
|
+
var tmp;
|
|
8670
|
+
var tmp_0;
|
|
8671
|
+
if (!ignoreCase) {
|
|
8672
|
+
tmp_0 = typeof _this__u8e3s4 === 'string';
|
|
8673
|
+
} else {
|
|
8674
|
+
tmp_0 = false;
|
|
8675
|
+
}
|
|
8676
|
+
if (tmp_0) {
|
|
8677
|
+
tmp = typeof prefix === 'string';
|
|
8678
|
+
} else {
|
|
8679
|
+
tmp = false;
|
|
8680
|
+
}
|
|
8681
|
+
if (tmp)
|
|
8682
|
+
return startsWith(_this__u8e3s4, prefix);
|
|
8683
|
+
else {
|
|
8684
|
+
return regionMatchesImpl(_this__u8e3s4, 0, prefix, 0, charSequenceLength(prefix), ignoreCase);
|
|
8685
|
+
}
|
|
8686
|
+
}
|
|
8606
8687
|
function trim(_this__u8e3s4) {
|
|
8607
8688
|
// Inline function 'kotlin.text.trim' call
|
|
8608
8689
|
var startIndex = 0;
|
|
@@ -9174,49 +9255,53 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
9174
9255
|
_.$_$.w8 = StringBuilder;
|
|
9175
9256
|
_.$_$.x8 = concatToString;
|
|
9176
9257
|
_.$_$.y8 = contains_4;
|
|
9177
|
-
_.$_$.z8 =
|
|
9178
|
-
_.$_$.a9 =
|
|
9179
|
-
_.$_$.b9 =
|
|
9180
|
-
_.$_$.c9 =
|
|
9181
|
-
_.$_$.d9 =
|
|
9182
|
-
_.$_$.e9 =
|
|
9183
|
-
_.$_$.f9 =
|
|
9184
|
-
_.$_$.g9 =
|
|
9185
|
-
_.$_$.h9 =
|
|
9186
|
-
_.$_$.i9 =
|
|
9187
|
-
_.$_$.j9 =
|
|
9188
|
-
_.$_$.k9 =
|
|
9189
|
-
_.$_$.l9 =
|
|
9190
|
-
_.$_$.m9 =
|
|
9191
|
-
_.$_$.n9 =
|
|
9192
|
-
_.$_$.o9 =
|
|
9193
|
-
_.$_$.p9 =
|
|
9194
|
-
_.$_$.q9 =
|
|
9195
|
-
_.$_$.r9 =
|
|
9196
|
-
_.$_$.s9 =
|
|
9197
|
-
_.$_$.t9 =
|
|
9198
|
-
_.$_$.u9 =
|
|
9199
|
-
_.$_$.v9 =
|
|
9200
|
-
_.$_$.w9 =
|
|
9201
|
-
_.$_$.x9 =
|
|
9202
|
-
_.$_$.y9 =
|
|
9203
|
-
_.$_$.z9 =
|
|
9204
|
-
_.$_$.aa =
|
|
9205
|
-
_.$_$.ba =
|
|
9206
|
-
_.$_$.ca =
|
|
9207
|
-
_.$_$.da =
|
|
9208
|
-
_.$_$.ea =
|
|
9209
|
-
_.$_$.fa =
|
|
9210
|
-
_.$_$.ga =
|
|
9211
|
-
_.$_$.ha =
|
|
9212
|
-
_.$_$.ia =
|
|
9213
|
-
_.$_$.ja =
|
|
9214
|
-
_.$_$.ka =
|
|
9215
|
-
_.$_$.la =
|
|
9216
|
-
_.$_$.ma =
|
|
9217
|
-
_.$_$.na =
|
|
9218
|
-
_.$_$.oa =
|
|
9219
|
-
_.$_$.pa =
|
|
9258
|
+
_.$_$.z8 = endsWith;
|
|
9259
|
+
_.$_$.a9 = isBlank;
|
|
9260
|
+
_.$_$.b9 = lastIndexOf;
|
|
9261
|
+
_.$_$.c9 = lineSequence;
|
|
9262
|
+
_.$_$.d9 = padStart;
|
|
9263
|
+
_.$_$.e9 = removePrefix;
|
|
9264
|
+
_.$_$.f9 = removeRange;
|
|
9265
|
+
_.$_$.g9 = removeSuffix;
|
|
9266
|
+
_.$_$.h9 = replaceFirst;
|
|
9267
|
+
_.$_$.i9 = replace;
|
|
9268
|
+
_.$_$.j9 = startsWith;
|
|
9269
|
+
_.$_$.k9 = substringAfter;
|
|
9270
|
+
_.$_$.l9 = substringBefore;
|
|
9271
|
+
_.$_$.m9 = substring_0;
|
|
9272
|
+
_.$_$.n9 = substring;
|
|
9273
|
+
_.$_$.o9 = toCharArray;
|
|
9274
|
+
_.$_$.p9 = toDoubleOrNull;
|
|
9275
|
+
_.$_$.q9 = toDouble;
|
|
9276
|
+
_.$_$.r9 = toInt;
|
|
9277
|
+
_.$_$.s9 = toString_2;
|
|
9278
|
+
_.$_$.t9 = trimMargin;
|
|
9279
|
+
_.$_$.u9 = trim;
|
|
9280
|
+
_.$_$.v9 = ArithmeticException;
|
|
9281
|
+
_.$_$.w9 = Char;
|
|
9282
|
+
_.$_$.x9 = Comparable;
|
|
9283
|
+
_.$_$.y9 = Comparator;
|
|
9284
|
+
_.$_$.z9 = Enum;
|
|
9285
|
+
_.$_$.aa = IllegalArgumentException;
|
|
9286
|
+
_.$_$.ba = IllegalStateException;
|
|
9287
|
+
_.$_$.ca = IndexOutOfBoundsException;
|
|
9288
|
+
_.$_$.da = NotImplementedError;
|
|
9289
|
+
_.$_$.ea = NullPointerException;
|
|
9290
|
+
_.$_$.fa = NumberFormatException;
|
|
9291
|
+
_.$_$.ga = Pair;
|
|
9292
|
+
_.$_$.ha = RuntimeException;
|
|
9293
|
+
_.$_$.ia = THROW_CCE;
|
|
9294
|
+
_.$_$.ja = THROW_IAE;
|
|
9295
|
+
_.$_$.ka = Triple;
|
|
9296
|
+
_.$_$.la = ensureNotNull;
|
|
9297
|
+
_.$_$.ma = isInfinite;
|
|
9298
|
+
_.$_$.na = lazy;
|
|
9299
|
+
_.$_$.oa = noWhenBranchMatchedException;
|
|
9300
|
+
_.$_$.pa = throwKotlinNothingValueException;
|
|
9301
|
+
_.$_$.qa = throwUninitializedPropertyAccessException;
|
|
9302
|
+
_.$_$.ra = toBits;
|
|
9303
|
+
_.$_$.sa = toString_0;
|
|
9304
|
+
_.$_$.ta = to;
|
|
9220
9305
|
//endregion
|
|
9221
9306
|
return _;
|
|
9222
9307
|
}));
|