@tuprolog/arg2p-core 0.7.2 → 0.8.1
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-core.js +3416 -5191
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +1620 -5
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +949 -5
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +796 -5
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +69 -5
- package/2p-dsl-unify.js.map +1 -1
- package/2p-parser-core.js +686 -429
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +7 -8
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +45 -45
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +1180 -1403
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +4840 -5992
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +2135 -2269
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +300 -333
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +597 -580
- package/2p-utils.js.map +1 -1
- package/arg2p-core.js +4305 -392
- package/arg2p-core.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +8604 -8580
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kt-math.js +2933 -4250
- package/kt-math.js.map +1 -1
- package/package.json +4 -3
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
package/2p-utils.js
CHANGED
|
@@ -1,82 +1,90 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kt-math.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kt-math.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof this['kotlin-kotlin-stdlib
|
|
8
|
-
throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-utils'.");
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
if (typeof this['kt-math'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module '2p-utils'. Its dependency 'kt-math' was not found. Please, check whether 'kt-math' is loaded prior to '2p-utils'.");
|
|
12
|
+
}
|
|
13
|
+
root['2p-utils'] = factory(typeof this['2p-utils'] === 'undefined' ? {} : this['2p-utils'], this['kotlin-kotlin-stdlib'], this['kt-math']);
|
|
11
14
|
}
|
|
12
|
-
}(this, function (_, kotlin_kotlin) {
|
|
15
|
+
}(this, function (_, kotlin_kotlin, kotlin_io_github_gciatto_kt_math) {
|
|
13
16
|
'use strict';
|
|
14
17
|
//region block: imports
|
|
15
18
|
var imul = Math.imul;
|
|
16
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
17
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.a6;
|
|
20
|
+
var objectMeta = kotlin_kotlin.$_$.z5;
|
|
21
|
+
var setMetadataFor = kotlin_kotlin.$_$.b6;
|
|
22
|
+
var Unit_instance = kotlin_kotlin.$_$.s1;
|
|
23
|
+
var interfaceMeta = kotlin_kotlin.$_$.n5;
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.v9;
|
|
25
|
+
var isInterface = kotlin_kotlin.$_$.q5;
|
|
26
|
+
var Iterable = kotlin_kotlin.$_$.u1;
|
|
27
|
+
var classMeta = kotlin_kotlin.$_$.e5;
|
|
28
|
+
var VOID = kotlin_kotlin.$_$.d;
|
|
29
|
+
var Sequence = kotlin_kotlin.$_$.w6;
|
|
30
|
+
var arrayIterator = kotlin_kotlin.$_$.y4;
|
|
31
|
+
var Comparable = kotlin_kotlin.$_$.k9;
|
|
32
|
+
var sequence = kotlin_kotlin.$_$.z7;
|
|
33
|
+
var hashCode = kotlin_kotlin.$_$.m5;
|
|
34
|
+
var asIterable = kotlin_kotlin.$_$.y6;
|
|
35
|
+
var toList = kotlin_kotlin.$_$.g8;
|
|
36
|
+
var asSequence = kotlin_kotlin.$_$.h2;
|
|
37
|
+
var asIterable_0 = kotlin_kotlin.$_$.c2;
|
|
38
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.j2;
|
|
39
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
40
|
+
var map = kotlin_kotlin.$_$.s7;
|
|
41
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
42
|
+
var List = kotlin_kotlin.$_$.v1;
|
|
43
|
+
var IntCompanionObject_instance = kotlin_kotlin.$_$.m1;
|
|
44
|
+
var IntRange = kotlin_kotlin.$_$.p6;
|
|
45
|
+
var zip = kotlin_kotlin.$_$.k8;
|
|
46
|
+
var CoroutineImpl = kotlin_kotlin.$_$.w4;
|
|
47
|
+
var SequenceScope = kotlin_kotlin.$_$.v6;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v4;
|
|
49
|
+
var withIndex = kotlin_kotlin.$_$.j8;
|
|
50
|
+
var equals = kotlin_kotlin.$_$.h5;
|
|
51
|
+
var ensureNotNull = kotlin_kotlin.$_$.y9;
|
|
52
|
+
var filterNot = kotlin_kotlin.$_$.g7;
|
|
53
|
+
var toMutableList = kotlin_kotlin.$_$.h8;
|
|
54
|
+
var minWithOrNull = kotlin_kotlin.$_$.t7;
|
|
55
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
56
|
+
var toString = kotlin_kotlin.$_$.f6;
|
|
57
|
+
var Companion_getInstance = kotlin_io_github_gciatto_kt_math.$_$.e;
|
|
58
|
+
var Companion_getInstance_0 = kotlin_io_github_gciatto_kt_math.$_$.d;
|
|
59
|
+
var Map = kotlin_kotlin.$_$.x1;
|
|
60
|
+
var lazy = kotlin_kotlin.$_$.aa;
|
|
51
61
|
var getKClassFromExpression = kotlin_kotlin.$_$.b;
|
|
52
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
53
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
54
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
59
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
60
|
-
var mutableListOf = kotlin_kotlin.$_$.
|
|
61
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
62
|
-
var addAll = kotlin_kotlin.$_$.
|
|
62
|
+
var KProperty1 = kotlin_kotlin.$_$.u6;
|
|
63
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.k5;
|
|
64
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
65
|
+
var first = kotlin_kotlin.$_$.y2;
|
|
66
|
+
var to = kotlin_kotlin.$_$.ha;
|
|
67
|
+
var Pair = kotlin_kotlin.$_$.t9;
|
|
68
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
69
|
+
var joinToString = kotlin_kotlin.$_$.o7;
|
|
70
|
+
var mutableListOf = kotlin_kotlin.$_$.u3;
|
|
71
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
72
|
+
var addAll = kotlin_kotlin.$_$.z1;
|
|
63
73
|
//endregion
|
|
64
74
|
//region block: pre-declaration
|
|
65
75
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
66
76
|
function getOrSet(key, valueGenerator) {
|
|
67
|
-
var got = this.
|
|
77
|
+
var got = this.x2(key);
|
|
68
78
|
var tmp;
|
|
69
79
|
if (got instanceof Some) {
|
|
70
|
-
tmp = got.
|
|
80
|
+
tmp = got.mp_1;
|
|
71
81
|
} else {
|
|
72
|
-
var tmp$ret$0;
|
|
73
82
|
// Inline function 'kotlin.also' call
|
|
74
|
-
var
|
|
83
|
+
var this_0 = valueGenerator();
|
|
75
84
|
// Inline function 'kotlin.contracts.contract' call
|
|
76
85
|
// Inline function 'it.unibo.tuprolog.utils.Cache.getOrSet.<anonymous>' call
|
|
77
|
-
this.
|
|
78
|
-
tmp
|
|
79
|
-
tmp = tmp$ret$0;
|
|
86
|
+
this.kp(key, this_0);
|
|
87
|
+
tmp = this_0;
|
|
80
88
|
}
|
|
81
89
|
return tmp;
|
|
82
90
|
}
|
|
@@ -84,16 +92,14 @@
|
|
|
84
92
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
85
93
|
function ifValid(consumer) {
|
|
86
94
|
var tmp;
|
|
87
|
-
if (this.
|
|
88
|
-
var tmp_0 =
|
|
89
|
-
var tmp$ret$0;
|
|
95
|
+
if (this.op()) {
|
|
96
|
+
var tmp_0 = Companion_instance_5;
|
|
90
97
|
// Inline function 'kotlin.let' call
|
|
91
|
-
var tmp0_let = this.p2();
|
|
92
98
|
// Inline function 'kotlin.contracts.contract' call
|
|
93
|
-
tmp$ret$0 = consumer(
|
|
94
|
-
tmp = tmp_0.
|
|
99
|
+
var tmp$ret$0 = consumer(this.r2());
|
|
100
|
+
tmp = tmp_0.sp(tmp$ret$0);
|
|
95
101
|
} else {
|
|
96
|
-
tmp =
|
|
102
|
+
tmp = Companion_instance_5.rp();
|
|
97
103
|
}
|
|
98
104
|
return tmp;
|
|
99
105
|
}
|
|
@@ -103,63 +109,57 @@
|
|
|
103
109
|
}
|
|
104
110
|
setMetadataFor(Castable, 'Castable', interfaceMeta);
|
|
105
111
|
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
106
|
-
setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta);
|
|
112
|
+
setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta, VOID, [Iterable]);
|
|
107
113
|
setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, [Sequence]);
|
|
108
114
|
function asIterable_1() {
|
|
109
|
-
var tmp$ret$0;
|
|
110
115
|
// Inline function 'kotlin.collections.Iterable' call
|
|
111
|
-
|
|
112
|
-
return tmp$ret$0;
|
|
116
|
+
return new _no_name_provided__qut3iv(this);
|
|
113
117
|
}
|
|
114
118
|
function asSequence_0() {
|
|
115
|
-
var tmp$ret$0;
|
|
116
119
|
// Inline function 'kotlin.sequences.Sequence' call
|
|
117
|
-
|
|
118
|
-
return tmp$ret$0;
|
|
120
|
+
return new _no_name_provided__qut3iv_0(this);
|
|
119
121
|
}
|
|
120
122
|
setMetadataFor(Cursor, 'Cursor', interfaceMeta);
|
|
121
123
|
function component1() {
|
|
122
|
-
return this.
|
|
124
|
+
return this.bq();
|
|
123
125
|
}
|
|
124
126
|
function component2() {
|
|
125
|
-
return this.
|
|
127
|
+
return this.r2();
|
|
126
128
|
}
|
|
127
129
|
setMetadataFor(Indexed, 'Indexed', interfaceMeta);
|
|
128
130
|
setMetadataFor(Companion_2, 'Companion', objectMeta);
|
|
129
131
|
function compareTo(other) {
|
|
130
|
-
return this.
|
|
132
|
+
return this.bq() - other.bq() | 0;
|
|
131
133
|
}
|
|
132
|
-
setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta, VOID, [Indexed]);
|
|
134
|
+
setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta, VOID, [Indexed, Comparable]);
|
|
133
135
|
setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta);
|
|
134
|
-
setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
135
|
-
setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
136
|
+
setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
137
|
+
setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
136
138
|
setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta);
|
|
137
|
-
setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
139
|
+
setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
138
140
|
setMetadataFor(Companion_3, 'Companion', objectMeta);
|
|
139
141
|
function compareTo_0(other) {
|
|
140
|
-
return this.
|
|
142
|
+
return this.bq().ma(other.bq()).b9();
|
|
141
143
|
}
|
|
142
|
-
setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta, VOID, [Indexed]);
|
|
144
|
+
setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta, VOID, [Indexed, Comparable]);
|
|
143
145
|
setMetadataFor(Companion_4, 'Companion', objectMeta);
|
|
146
|
+
setMetadataFor(NumberTypeTester, 'NumberTypeTester', classMeta, VOID, VOID, NumberTypeTester);
|
|
147
|
+
setMetadataFor(Companion_5, 'Companion', objectMeta);
|
|
144
148
|
setMetadataFor(Optional, 'Optional', classMeta);
|
|
145
149
|
setMetadataFor(Some, 'Some', classMeta, Optional);
|
|
146
150
|
setMetadataFor(None, 'None', objectMeta, Optional);
|
|
147
151
|
function getTag(name) {
|
|
148
|
-
var tmp = this.
|
|
149
|
-
return (tmp == null ? true :
|
|
152
|
+
var tmp = this.os().x2(name);
|
|
153
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
150
154
|
}
|
|
151
155
|
function containsTag(name) {
|
|
152
|
-
var tmp$ret$1;
|
|
153
156
|
// Inline function 'kotlin.collections.contains' call
|
|
154
|
-
var tmp0_contains = this.fr();
|
|
155
|
-
var tmp$ret$0;
|
|
156
157
|
// Inline function 'kotlin.collections.containsKey' call
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return tmp$ret$1;
|
|
158
|
+
var this_0 = this.os();
|
|
159
|
+
return (isInterface(this_0, Map) ? this_0 : THROW_CCE()).u2(name);
|
|
160
160
|
}
|
|
161
161
|
setMetadataFor(Taggable, 'Taggable', interfaceMeta);
|
|
162
|
-
setMetadataFor(
|
|
162
|
+
setMetadataFor(Companion_6, 'Companion', objectMeta);
|
|
163
163
|
setMetadataFor(AbstractCursor$iterator$1, VOID, classMeta);
|
|
164
164
|
setMetadataFor(AbstractCursor, 'AbstractCursor', classMeta, VOID, [Cursor]);
|
|
165
165
|
setMetadataFor(CachedImpl, 'CachedImpl', classMeta, VOID, [Cached]);
|
|
@@ -174,29 +174,23 @@
|
|
|
174
174
|
setMetadataFor(ValueCursor, 'ValueCursor', classMeta, AbstractCursor);
|
|
175
175
|
//endregion
|
|
176
176
|
function Companion() {
|
|
177
|
-
Companion_instance = this;
|
|
178
177
|
}
|
|
179
|
-
protoOf(Companion).
|
|
178
|
+
protoOf(Companion).jp = function (capacity) {
|
|
180
179
|
return new SimpleLRUCache(capacity);
|
|
181
180
|
};
|
|
182
181
|
var Companion_instance;
|
|
183
|
-
function
|
|
184
|
-
if (Companion_instance == null)
|
|
185
|
-
new Companion();
|
|
182
|
+
function Companion_getInstance_1() {
|
|
186
183
|
return Companion_instance;
|
|
187
184
|
}
|
|
188
185
|
function Cache() {
|
|
189
186
|
}
|
|
190
187
|
function Companion_0() {
|
|
191
|
-
Companion_instance_0 = this;
|
|
192
188
|
}
|
|
193
|
-
protoOf(Companion_0).
|
|
189
|
+
protoOf(Companion_0).np = function (generator) {
|
|
194
190
|
return new CachedImpl(generator);
|
|
195
191
|
};
|
|
196
192
|
var Companion_instance_0;
|
|
197
|
-
function
|
|
198
|
-
if (Companion_instance_0 == null)
|
|
199
|
-
new Companion_0();
|
|
193
|
+
function Companion_getInstance_2() {
|
|
200
194
|
return Companion_instance_0;
|
|
201
195
|
}
|
|
202
196
|
function Cached() {
|
|
@@ -204,7 +198,6 @@
|
|
|
204
198
|
function Castable() {
|
|
205
199
|
}
|
|
206
200
|
function Companion_1() {
|
|
207
|
-
Companion_instance_1 = this;
|
|
208
201
|
}
|
|
209
202
|
protoOf(Companion_1).of = function (iterator) {
|
|
210
203
|
return toCursor(iterator);
|
|
@@ -216,58 +209,49 @@
|
|
|
216
209
|
return EmptyCursor_getInstance();
|
|
217
210
|
};
|
|
218
211
|
var Companion_instance_1;
|
|
219
|
-
function
|
|
220
|
-
if (Companion_instance_1 == null)
|
|
221
|
-
new Companion_1();
|
|
212
|
+
function Companion_getInstance_3() {
|
|
222
213
|
return Companion_instance_1;
|
|
223
214
|
}
|
|
224
215
|
function _no_name_provided__qut3iv(this$0) {
|
|
225
|
-
this.
|
|
216
|
+
this.up_1 = this$0;
|
|
226
217
|
}
|
|
227
|
-
protoOf(_no_name_provided__qut3iv).
|
|
228
|
-
var tmp$ret$0;
|
|
218
|
+
protoOf(_no_name_provided__qut3iv).r = function () {
|
|
229
219
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asIterable.<anonymous>' call
|
|
230
|
-
|
|
231
|
-
return tmp$ret$0;
|
|
220
|
+
return this.up_1.iterator();
|
|
232
221
|
};
|
|
233
222
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
234
|
-
this.
|
|
223
|
+
this.vp_1 = this$0;
|
|
235
224
|
}
|
|
236
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
237
|
-
var tmp$ret$0;
|
|
225
|
+
protoOf(_no_name_provided__qut3iv_0).r = function () {
|
|
238
226
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asSequence.<anonymous>' call
|
|
239
|
-
|
|
240
|
-
return tmp$ret$0;
|
|
227
|
+
return this.vp_1.iterator();
|
|
241
228
|
};
|
|
242
229
|
function Cursor() {
|
|
243
230
|
}
|
|
244
231
|
function cursor(_this__u8e3s4) {
|
|
245
|
-
return toCursor(_this__u8e3s4.
|
|
232
|
+
return toCursor(_this__u8e3s4.r());
|
|
246
233
|
}
|
|
247
234
|
function cursor_0(_this__u8e3s4) {
|
|
248
|
-
return toCursor(_this__u8e3s4.
|
|
235
|
+
return toCursor(_this__u8e3s4.r());
|
|
249
236
|
}
|
|
250
237
|
function cursor_1(_this__u8e3s4) {
|
|
251
238
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
252
239
|
}
|
|
253
240
|
function plus(_this__u8e3s4, other) {
|
|
254
|
-
return other.
|
|
241
|
+
return other.yp() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.yp() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
255
242
|
}
|
|
256
243
|
function toCursor(_this__u8e3s4) {
|
|
257
|
-
return
|
|
244
|
+
return Companion_instance_6.aq(_this__u8e3s4);
|
|
258
245
|
}
|
|
259
246
|
function Indexed() {
|
|
260
247
|
}
|
|
261
248
|
function Companion_2() {
|
|
262
|
-
Companion_instance_2 = this;
|
|
263
249
|
}
|
|
264
|
-
protoOf(Companion_2).
|
|
250
|
+
protoOf(Companion_2).cq = function (index, value) {
|
|
265
251
|
return new IntIndexedImpl(index, value);
|
|
266
252
|
};
|
|
267
253
|
var Companion_instance_2;
|
|
268
|
-
function
|
|
269
|
-
if (Companion_instance_2 == null)
|
|
270
|
-
new Companion_2();
|
|
254
|
+
function Companion_getInstance_4() {
|
|
271
255
|
return Companion_instance_2;
|
|
272
256
|
}
|
|
273
257
|
function IntIndexed() {
|
|
@@ -277,10 +261,10 @@
|
|
|
277
261
|
}
|
|
278
262
|
function itemWiseHashCode(iterable) {
|
|
279
263
|
var hash = 13;
|
|
280
|
-
var i = iterable.
|
|
281
|
-
while (i.
|
|
264
|
+
var i = iterable.r();
|
|
265
|
+
while (i.s()) {
|
|
282
266
|
var tmp = imul(31, hash);
|
|
283
|
-
var tmp0_safe_receiver = i.
|
|
267
|
+
var tmp0_safe_receiver = i.u();
|
|
284
268
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
285
269
|
hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
286
270
|
}
|
|
@@ -302,233 +286,246 @@
|
|
|
302
286
|
return asSequence(toList(_this__u8e3s4));
|
|
303
287
|
}
|
|
304
288
|
function itemWiseEquals_0(iterable1, iterable2, comparator) {
|
|
305
|
-
var i = iterable1.
|
|
306
|
-
var j = iterable2.
|
|
307
|
-
while (i.
|
|
308
|
-
var a = i.
|
|
309
|
-
var b = j.
|
|
289
|
+
var i = iterable1.r();
|
|
290
|
+
var j = iterable2.r();
|
|
291
|
+
while (i.s() ? j.s() : false) {
|
|
292
|
+
var a = i.u();
|
|
293
|
+
var b = j.u();
|
|
310
294
|
if (!comparator(a, b)) {
|
|
311
295
|
return false;
|
|
312
296
|
}
|
|
313
297
|
}
|
|
314
|
-
return i.
|
|
315
|
-
}
|
|
316
|
-
function itemWiseEquals_1(iterable1, iterable2) {
|
|
317
|
-
return itemWiseEquals_0(iterable1, iterable2, itemWiseEquals$lambda);
|
|
298
|
+
return i.s() === j.s();
|
|
318
299
|
}
|
|
319
300
|
function itemWiseHashCode_1(items) {
|
|
320
301
|
return itemWiseHashCode(asIterable_0(items));
|
|
321
302
|
}
|
|
303
|
+
function itemWiseEquals_1(iterable1, iterable2) {
|
|
304
|
+
return itemWiseEquals_0(iterable1, iterable2, itemWiseEquals$lambda);
|
|
305
|
+
}
|
|
322
306
|
function mergeSequences(iterables, comparator) {
|
|
323
307
|
var tmp = new sam$kotlin_Comparator$0(comparator);
|
|
324
|
-
var tmp$ret$2;
|
|
325
308
|
// Inline function 'kotlin.collections.map' call
|
|
326
|
-
var tmp$ret$1;
|
|
327
309
|
// Inline function 'kotlin.collections.mapTo' call
|
|
328
|
-
var
|
|
329
|
-
var tmp0_iterator = iterables.
|
|
330
|
-
while (tmp0_iterator.
|
|
331
|
-
var item = tmp0_iterator.
|
|
332
|
-
var tmp$ret$0;
|
|
310
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
311
|
+
var tmp0_iterator = iterables.r();
|
|
312
|
+
while (tmp0_iterator.s()) {
|
|
313
|
+
var item = tmp0_iterator.u();
|
|
333
314
|
// Inline function 'it.unibo.tuprolog.utils.mergeSequences.<anonymous>' call
|
|
334
|
-
tmp$ret$0 = asIterable(item);
|
|
335
|
-
|
|
315
|
+
var tmp$ret$0 = asIterable(item);
|
|
316
|
+
destination.o(tmp$ret$0);
|
|
336
317
|
}
|
|
337
|
-
tmp
|
|
338
|
-
|
|
339
|
-
|
|
318
|
+
return merge(tmp, destination);
|
|
319
|
+
}
|
|
320
|
+
function assertItemsAreNotNull(_this__u8e3s4) {
|
|
321
|
+
return asIterable(assertItemsAreNotNull_0(asSequence(_this__u8e3s4)));
|
|
322
|
+
}
|
|
323
|
+
function assertItemsAreNotNull_0(_this__u8e3s4) {
|
|
324
|
+
var tmp = indexed(_this__u8e3s4);
|
|
325
|
+
return map(tmp, assertItemsAreNotNull$lambda);
|
|
326
|
+
}
|
|
327
|
+
function assertItemsAreNotNull_1(_this__u8e3s4) {
|
|
328
|
+
var iterator = _this__u8e3s4.r();
|
|
329
|
+
var index = 0;
|
|
330
|
+
while (iterator.s()) {
|
|
331
|
+
var index_0 = index;
|
|
332
|
+
index = index + 1 | 0;
|
|
333
|
+
var value = iterator.u();
|
|
334
|
+
if (value == null) {
|
|
335
|
+
throw IllegalArgumentException_init_$Create$('Item at index ' + index_0 + ' is null');
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return isInterface(_this__u8e3s4, List) ? _this__u8e3s4 : THROW_CCE();
|
|
340
339
|
}
|
|
341
340
|
function merge(comparator, iterables) {
|
|
342
341
|
return sequence(merge$slambda_0(iterables, comparator, null));
|
|
343
342
|
}
|
|
344
343
|
function indexed(_this__u8e3s4) {
|
|
345
|
-
var tmp = asSequence(new IntRange(0,
|
|
344
|
+
var tmp = asSequence(new IntRange(0, IntCompanionObject_instance.MAX_VALUE));
|
|
346
345
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
347
346
|
}
|
|
348
347
|
function sam$kotlin_Comparator$0(function_0) {
|
|
349
|
-
this.
|
|
348
|
+
this.eq_1 = function_0;
|
|
350
349
|
}
|
|
351
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
352
|
-
return this.
|
|
350
|
+
protoOf(sam$kotlin_Comparator$0).o8 = function (a, b) {
|
|
351
|
+
return this.eq_1(a, b);
|
|
353
352
|
};
|
|
354
353
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
355
|
-
return this.
|
|
354
|
+
return this.o8(a, b);
|
|
356
355
|
};
|
|
357
356
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
358
|
-
this.
|
|
357
|
+
this.nq_1 = $this_dropLast;
|
|
359
358
|
CoroutineImpl.call(this, resultContinuation);
|
|
360
359
|
}
|
|
361
|
-
protoOf(dropLast$slambda).
|
|
362
|
-
var tmp = this.
|
|
363
|
-
tmp.
|
|
364
|
-
tmp.
|
|
365
|
-
return tmp.
|
|
360
|
+
protoOf(dropLast$slambda).rq = function ($this$sequence, $completion) {
|
|
361
|
+
var tmp = this.sq($this$sequence, $completion);
|
|
362
|
+
tmp.hb_1 = Unit_instance;
|
|
363
|
+
tmp.ib_1 = null;
|
|
364
|
+
return tmp.qb();
|
|
366
365
|
};
|
|
367
|
-
protoOf(dropLast$slambda).
|
|
368
|
-
return this.
|
|
366
|
+
protoOf(dropLast$slambda).dc = function (p1, $completion) {
|
|
367
|
+
return this.rq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
369
368
|
};
|
|
370
|
-
protoOf(dropLast$slambda).
|
|
371
|
-
var suspendResult = this.
|
|
369
|
+
protoOf(dropLast$slambda).qb = function () {
|
|
370
|
+
var suspendResult = this.hb_1;
|
|
372
371
|
$sm: do
|
|
373
372
|
try {
|
|
374
|
-
var tmp = this.
|
|
373
|
+
var tmp = this.fb_1;
|
|
375
374
|
switch (tmp) {
|
|
376
375
|
case 0:
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
376
|
+
this.gb_1 = 5;
|
|
377
|
+
this.pq_1 = this.nq_1.r();
|
|
378
|
+
this.fb_1 = 1;
|
|
380
379
|
continue $sm;
|
|
381
380
|
case 1:
|
|
382
|
-
if (!this.
|
|
383
|
-
this.
|
|
381
|
+
if (!this.pq_1.s()) {
|
|
382
|
+
this.fb_1 = 4;
|
|
384
383
|
continue $sm;
|
|
385
384
|
}
|
|
386
385
|
|
|
387
|
-
this.
|
|
388
|
-
if (this.
|
|
389
|
-
this.
|
|
390
|
-
suspendResult = this.
|
|
386
|
+
this.qq_1 = this.pq_1.u();
|
|
387
|
+
if (this.pq_1.s()) {
|
|
388
|
+
this.fb_1 = 2;
|
|
389
|
+
suspendResult = this.oq_1.wd(this.qq_1, this);
|
|
391
390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
392
391
|
return suspendResult;
|
|
393
392
|
}
|
|
394
393
|
continue $sm;
|
|
395
394
|
} else {
|
|
396
|
-
this.
|
|
395
|
+
this.fb_1 = 3;
|
|
397
396
|
continue $sm;
|
|
398
397
|
}
|
|
399
398
|
|
|
400
|
-
break;
|
|
401
399
|
case 2:
|
|
402
|
-
this.
|
|
400
|
+
this.fb_1 = 3;
|
|
403
401
|
continue $sm;
|
|
404
402
|
case 3:
|
|
405
|
-
this.
|
|
403
|
+
this.fb_1 = 1;
|
|
406
404
|
continue $sm;
|
|
407
405
|
case 4:
|
|
408
|
-
return
|
|
406
|
+
return Unit_instance;
|
|
409
407
|
case 5:
|
|
410
|
-
throw this.
|
|
408
|
+
throw this.ib_1;
|
|
411
409
|
}
|
|
412
410
|
} catch ($p) {
|
|
413
411
|
var e = $p;
|
|
414
|
-
if (this.
|
|
412
|
+
if (this.gb_1 === 5) {
|
|
415
413
|
throw e;
|
|
416
414
|
} else {
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
415
|
+
this.fb_1 = this.gb_1;
|
|
416
|
+
this.ib_1 = e;
|
|
419
417
|
}
|
|
420
418
|
}
|
|
421
419
|
while (true);
|
|
422
420
|
};
|
|
423
|
-
protoOf(dropLast$slambda).
|
|
424
|
-
var i = new dropLast$slambda(this.
|
|
425
|
-
i.
|
|
421
|
+
protoOf(dropLast$slambda).sq = function ($this$sequence, completion) {
|
|
422
|
+
var i = new dropLast$slambda(this.nq_1, completion);
|
|
423
|
+
i.oq_1 = $this$sequence;
|
|
426
424
|
return i;
|
|
427
425
|
};
|
|
428
426
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
429
427
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
430
428
|
var l = function ($this$sequence, $completion) {
|
|
431
|
-
return i.
|
|
429
|
+
return i.rq($this$sequence, $completion);
|
|
432
430
|
};
|
|
433
431
|
l.$arity = 1;
|
|
434
432
|
return l;
|
|
435
433
|
}
|
|
436
434
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
435
|
+
this.br_1 = $this_insertAt;
|
|
436
|
+
this.cr_1 = $index;
|
|
437
|
+
this.dr_1 = $item;
|
|
438
|
+
this.er_1 = $items;
|
|
441
439
|
CoroutineImpl.call(this, resultContinuation);
|
|
442
440
|
}
|
|
443
|
-
protoOf(insertAt$slambda).
|
|
444
|
-
var tmp = this.
|
|
445
|
-
tmp.
|
|
446
|
-
tmp.
|
|
447
|
-
return tmp.
|
|
441
|
+
protoOf(insertAt$slambda).rq = function ($this$sequence, $completion) {
|
|
442
|
+
var tmp = this.sq($this$sequence, $completion);
|
|
443
|
+
tmp.hb_1 = Unit_instance;
|
|
444
|
+
tmp.ib_1 = null;
|
|
445
|
+
return tmp.qb();
|
|
448
446
|
};
|
|
449
|
-
protoOf(insertAt$slambda).
|
|
450
|
-
return this.
|
|
447
|
+
protoOf(insertAt$slambda).dc = function (p1, $completion) {
|
|
448
|
+
return this.rq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
451
449
|
};
|
|
452
|
-
protoOf(insertAt$slambda).
|
|
453
|
-
var suspendResult = this.
|
|
450
|
+
protoOf(insertAt$slambda).qb = function () {
|
|
451
|
+
var suspendResult = this.hb_1;
|
|
454
452
|
$sm: do
|
|
455
453
|
try {
|
|
456
|
-
var tmp = this.
|
|
454
|
+
var tmp = this.fb_1;
|
|
457
455
|
switch (tmp) {
|
|
458
456
|
case 0:
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
461
|
-
this.
|
|
457
|
+
this.gb_1 = 7;
|
|
458
|
+
this.gr_1 = asIterable(withIndex(this.br_1)).r();
|
|
459
|
+
this.fb_1 = 1;
|
|
462
460
|
continue $sm;
|
|
463
461
|
case 1:
|
|
464
|
-
if (!this.
|
|
465
|
-
this.
|
|
462
|
+
if (!this.gr_1.s()) {
|
|
463
|
+
this.fb_1 = 6;
|
|
466
464
|
continue $sm;
|
|
467
465
|
}
|
|
468
466
|
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
472
|
-
if (this.
|
|
473
|
-
this.
|
|
474
|
-
suspendResult = this.
|
|
467
|
+
this.hr_1 = this.gr_1.u();
|
|
468
|
+
this.ir_1 = this.hr_1.gd();
|
|
469
|
+
this.jr_1 = this.hr_1.hd();
|
|
470
|
+
if (this.ir_1 === this.cr_1) {
|
|
471
|
+
this.fb_1 = 2;
|
|
472
|
+
suspendResult = this.fr_1.wd(this.dr_1, this);
|
|
475
473
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
476
474
|
return suspendResult;
|
|
477
475
|
}
|
|
478
476
|
continue $sm;
|
|
479
477
|
} else {
|
|
480
|
-
this.
|
|
478
|
+
this.fb_1 = 4;
|
|
481
479
|
continue $sm;
|
|
482
480
|
}
|
|
483
481
|
|
|
484
|
-
break;
|
|
485
482
|
case 2:
|
|
486
|
-
this.
|
|
487
|
-
suspendResult = this.
|
|
483
|
+
this.fb_1 = 3;
|
|
484
|
+
suspendResult = this.fr_1.yd(asIterable_0(this.er_1), this);
|
|
488
485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
489
486
|
return suspendResult;
|
|
490
487
|
}
|
|
491
488
|
|
|
492
489
|
continue $sm;
|
|
493
490
|
case 3:
|
|
494
|
-
this.
|
|
491
|
+
this.fb_1 = 4;
|
|
495
492
|
continue $sm;
|
|
496
493
|
case 4:
|
|
497
|
-
this.
|
|
498
|
-
suspendResult = this.
|
|
494
|
+
this.fb_1 = 5;
|
|
495
|
+
suspendResult = this.fr_1.wd(this.jr_1, this);
|
|
499
496
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
500
497
|
return suspendResult;
|
|
501
498
|
}
|
|
502
499
|
|
|
503
500
|
continue $sm;
|
|
504
501
|
case 5:
|
|
505
|
-
this.
|
|
502
|
+
this.fb_1 = 1;
|
|
506
503
|
continue $sm;
|
|
507
504
|
case 6:
|
|
508
|
-
return
|
|
505
|
+
return Unit_instance;
|
|
509
506
|
case 7:
|
|
510
|
-
throw this.
|
|
507
|
+
throw this.ib_1;
|
|
511
508
|
}
|
|
512
509
|
} catch ($p) {
|
|
513
510
|
var e = $p;
|
|
514
|
-
if (this.
|
|
511
|
+
if (this.gb_1 === 7) {
|
|
515
512
|
throw e;
|
|
516
513
|
} else {
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
514
|
+
this.fb_1 = this.gb_1;
|
|
515
|
+
this.ib_1 = e;
|
|
519
516
|
}
|
|
520
517
|
}
|
|
521
518
|
while (true);
|
|
522
519
|
};
|
|
523
|
-
protoOf(insertAt$slambda).
|
|
524
|
-
var i = new insertAt$slambda(this.
|
|
525
|
-
i.
|
|
520
|
+
protoOf(insertAt$slambda).sq = function ($this$sequence, completion) {
|
|
521
|
+
var i = new insertAt$slambda(this.br_1, this.cr_1, this.dr_1, this.er_1, completion);
|
|
522
|
+
i.fr_1 = $this$sequence;
|
|
526
523
|
return i;
|
|
527
524
|
};
|
|
528
525
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
529
526
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
530
527
|
var l = function ($this$sequence, $completion) {
|
|
531
|
-
return i.
|
|
528
|
+
return i.rq($this$sequence, $completion);
|
|
532
529
|
};
|
|
533
530
|
l.$arity = 1;
|
|
534
531
|
return l;
|
|
@@ -536,173 +533,218 @@
|
|
|
536
533
|
function itemWiseEquals$lambda(a, b) {
|
|
537
534
|
return equals(a, b);
|
|
538
535
|
}
|
|
536
|
+
function assertItemsAreNotNull$lambda(it) {
|
|
537
|
+
var value = it.r2();
|
|
538
|
+
var tmp;
|
|
539
|
+
if (value == null) {
|
|
540
|
+
throw IllegalArgumentException_init_$Create$('Item at index ' + it.bq() + ' is null');
|
|
541
|
+
} else {
|
|
542
|
+
tmp = value;
|
|
543
|
+
}
|
|
544
|
+
return tmp;
|
|
545
|
+
}
|
|
539
546
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
540
|
-
this.
|
|
547
|
+
this.kr_1 = function_0;
|
|
541
548
|
}
|
|
542
|
-
protoOf(sam$kotlin_Comparator$0_0).
|
|
543
|
-
return this.
|
|
549
|
+
protoOf(sam$kotlin_Comparator$0_0).o8 = function (a, b) {
|
|
550
|
+
return this.kr_1(a, b);
|
|
544
551
|
};
|
|
545
552
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
546
|
-
return this.
|
|
553
|
+
return this.o8(a, b);
|
|
547
554
|
};
|
|
548
555
|
function merge$slambda$lambda(it) {
|
|
549
556
|
return cursor(it);
|
|
550
557
|
}
|
|
551
558
|
function merge$slambda$lambda_0(it) {
|
|
552
|
-
return it.
|
|
559
|
+
return it.zp();
|
|
553
560
|
}
|
|
554
561
|
function merge$slambda$lambda_1(it) {
|
|
555
|
-
return ensureNotNull(it.
|
|
562
|
+
return ensureNotNull(it.xp());
|
|
556
563
|
}
|
|
557
564
|
function merge$slambda$lambda_2($comparator) {
|
|
558
565
|
return function (a, b) {
|
|
559
|
-
return $comparator.compare(a.
|
|
566
|
+
return $comparator.compare(a.r2(), b.r2());
|
|
560
567
|
};
|
|
561
568
|
}
|
|
562
569
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
570
|
+
this.ur_1 = $iterables;
|
|
571
|
+
this.vr_1 = $comparator;
|
|
565
572
|
CoroutineImpl.call(this, resultContinuation);
|
|
566
573
|
}
|
|
567
|
-
protoOf(merge$slambda).
|
|
568
|
-
var tmp = this.
|
|
569
|
-
tmp.
|
|
570
|
-
tmp.
|
|
571
|
-
return tmp.
|
|
574
|
+
protoOf(merge$slambda).rq = function ($this$sequence, $completion) {
|
|
575
|
+
var tmp = this.sq($this$sequence, $completion);
|
|
576
|
+
tmp.hb_1 = Unit_instance;
|
|
577
|
+
tmp.ib_1 = null;
|
|
578
|
+
return tmp.qb();
|
|
572
579
|
};
|
|
573
|
-
protoOf(merge$slambda).
|
|
574
|
-
return this.
|
|
580
|
+
protoOf(merge$slambda).dc = function (p1, $completion) {
|
|
581
|
+
return this.rq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
575
582
|
};
|
|
576
|
-
protoOf(merge$slambda).
|
|
577
|
-
var suspendResult = this.
|
|
583
|
+
protoOf(merge$slambda).qb = function () {
|
|
584
|
+
var suspendResult = this.hb_1;
|
|
578
585
|
$sm: do
|
|
579
586
|
try {
|
|
580
|
-
var tmp = this.
|
|
587
|
+
var tmp = this.fb_1;
|
|
581
588
|
switch (tmp) {
|
|
582
589
|
case 0:
|
|
583
|
-
this.
|
|
590
|
+
this.gb_1 = 3;
|
|
584
591
|
var tmp_0 = this;
|
|
585
|
-
var tmp_1 = asSequence(this.
|
|
592
|
+
var tmp_1 = asSequence(this.ur_1);
|
|
586
593
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
587
|
-
tmp_0.
|
|
588
|
-
this.
|
|
594
|
+
tmp_0.xr_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
595
|
+
this.fb_1 = 1;
|
|
589
596
|
continue $sm;
|
|
590
597
|
case 1:
|
|
591
|
-
if (!!this.
|
|
592
|
-
this.
|
|
598
|
+
if (!!this.xr_1.z()) {
|
|
599
|
+
this.fb_1 = 4;
|
|
593
600
|
continue $sm;
|
|
594
601
|
}
|
|
595
602
|
|
|
596
603
|
var tmp_3 = this;
|
|
597
|
-
var tmp_4 = asSequence(this.
|
|
604
|
+
var tmp_4 = asSequence(this.xr_1);
|
|
598
605
|
var tmp_5 = indexed(map(tmp_4, merge$slambda$lambda_1));
|
|
599
|
-
var tmp_6 = merge$slambda$lambda_2(this.
|
|
600
|
-
tmp_3.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
suspendResult = this.
|
|
606
|
+
var tmp_6 = merge$slambda$lambda_2(this.vr_1);
|
|
607
|
+
tmp_3.yr_1 = ensureNotNull(minWithOrNull(tmp_5, new sam$kotlin_Comparator$0_0(tmp_6)));
|
|
608
|
+
this.zr_1 = this.yr_1.gd();
|
|
609
|
+
this.as_1 = this.yr_1.hd();
|
|
610
|
+
this.fb_1 = 2;
|
|
611
|
+
suspendResult = this.wr_1.wd(this.as_1, this);
|
|
605
612
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
606
613
|
return suspendResult;
|
|
607
614
|
}
|
|
608
615
|
|
|
609
616
|
continue $sm;
|
|
610
617
|
case 2:
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
613
|
-
this.
|
|
618
|
+
var it = this.xr_1.d1(this.zr_1).wp();
|
|
619
|
+
if (it.zp()) {
|
|
620
|
+
this.xr_1.f1(this.zr_1);
|
|
614
621
|
} else {
|
|
615
|
-
this.
|
|
622
|
+
this.xr_1.m(this.zr_1, it);
|
|
616
623
|
}
|
|
617
624
|
|
|
618
|
-
;
|
|
619
|
-
this.mg_1 = 1;
|
|
625
|
+
this.fb_1 = 1;
|
|
620
626
|
continue $sm;
|
|
621
627
|
case 3:
|
|
622
|
-
throw this.
|
|
628
|
+
throw this.ib_1;
|
|
623
629
|
case 4:
|
|
624
|
-
return
|
|
630
|
+
return Unit_instance;
|
|
625
631
|
}
|
|
626
632
|
} catch ($p) {
|
|
627
633
|
var e = $p;
|
|
628
|
-
if (this.
|
|
634
|
+
if (this.gb_1 === 3) {
|
|
629
635
|
throw e;
|
|
630
636
|
} else {
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
637
|
+
this.fb_1 = this.gb_1;
|
|
638
|
+
this.ib_1 = e;
|
|
633
639
|
}
|
|
634
640
|
}
|
|
635
641
|
while (true);
|
|
636
642
|
};
|
|
637
|
-
protoOf(merge$slambda).
|
|
638
|
-
var i = new merge$slambda(this.
|
|
639
|
-
i.
|
|
643
|
+
protoOf(merge$slambda).sq = function ($this$sequence, completion) {
|
|
644
|
+
var i = new merge$slambda(this.ur_1, this.vr_1, completion);
|
|
645
|
+
i.wr_1 = $this$sequence;
|
|
640
646
|
return i;
|
|
641
647
|
};
|
|
642
648
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
643
649
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
644
650
|
var l = function ($this$sequence, $completion) {
|
|
645
|
-
return i.
|
|
651
|
+
return i.rq($this$sequence, $completion);
|
|
646
652
|
};
|
|
647
653
|
l.$arity = 1;
|
|
648
654
|
return l;
|
|
649
655
|
}
|
|
650
656
|
function indexed$lambda(it, i) {
|
|
651
|
-
return
|
|
657
|
+
return Companion_instance_2.cq(i, it);
|
|
652
658
|
}
|
|
653
659
|
function Companion_3() {
|
|
654
|
-
Companion_instance_3 = this;
|
|
655
660
|
}
|
|
656
|
-
protoOf(Companion_3).
|
|
661
|
+
protoOf(Companion_3).bs = function (index, value) {
|
|
657
662
|
return new LongIndexedImpl(index, value);
|
|
658
663
|
};
|
|
659
664
|
var Companion_instance_3;
|
|
660
|
-
function
|
|
661
|
-
if (Companion_instance_3 == null)
|
|
662
|
-
new Companion_3();
|
|
665
|
+
function Companion_getInstance_5() {
|
|
663
666
|
return Companion_instance_3;
|
|
664
667
|
}
|
|
665
668
|
function LongIndexed() {
|
|
666
669
|
}
|
|
667
670
|
function Companion_4() {
|
|
668
671
|
Companion_instance_4 = this;
|
|
672
|
+
var tmp = this;
|
|
673
|
+
// Inline function 'kotlin.text.toRegex' call
|
|
674
|
+
tmp.ds_1 = Regex_init_$Create$('[0-9]+');
|
|
669
675
|
}
|
|
670
|
-
|
|
676
|
+
var Companion_instance_4;
|
|
677
|
+
function Companion_getInstance_6() {
|
|
678
|
+
if (Companion_instance_4 == null)
|
|
679
|
+
new Companion_4();
|
|
680
|
+
return Companion_instance_4;
|
|
681
|
+
}
|
|
682
|
+
function _get_stringRepresentation__xuqjt9(_this__u8e3s4, $this) {
|
|
683
|
+
return $this.es_1.lp(_this__u8e3s4, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg(_this__u8e3s4));
|
|
684
|
+
}
|
|
685
|
+
function NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($this_stringRepresentation) {
|
|
686
|
+
return function () {
|
|
687
|
+
return toString($this_stringRepresentation);
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
function NumberTypeTester() {
|
|
691
|
+
Companion_getInstance_6();
|
|
692
|
+
this.es_1 = Companion_instance.jp(8);
|
|
693
|
+
}
|
|
694
|
+
protoOf(NumberTypeTester).fs = function (_this__u8e3s4) {
|
|
695
|
+
return Companion_getInstance_6().ds_1.i8(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
696
|
+
};
|
|
697
|
+
protoOf(NumberTypeTester).gs = function (_this__u8e3s4) {
|
|
698
|
+
return Companion_getInstance().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
699
|
+
};
|
|
700
|
+
protoOf(NumberTypeTester).hs = function (_this__u8e3s4) {
|
|
701
|
+
return Companion_getInstance_0().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
702
|
+
};
|
|
703
|
+
protoOf(NumberTypeTester).is = function (number) {
|
|
704
|
+
return this.fs(number);
|
|
705
|
+
};
|
|
706
|
+
protoOf(NumberTypeTester).js = function (number) {
|
|
707
|
+
return this.gs(number);
|
|
708
|
+
};
|
|
709
|
+
protoOf(NumberTypeTester).ks = function (number) {
|
|
710
|
+
return this.hs(number);
|
|
711
|
+
};
|
|
712
|
+
function Companion_5() {
|
|
713
|
+
}
|
|
714
|
+
protoOf(Companion_5).ls = function (value) {
|
|
671
715
|
return new Some(value);
|
|
672
716
|
};
|
|
673
|
-
protoOf(
|
|
717
|
+
protoOf(Companion_5).sp = function (value) {
|
|
674
718
|
var tmp;
|
|
675
719
|
if (value == null) {
|
|
676
|
-
tmp = this.
|
|
720
|
+
tmp = this.rp();
|
|
677
721
|
} else {
|
|
678
|
-
tmp = this.
|
|
722
|
+
tmp = this.ls(value);
|
|
679
723
|
}
|
|
680
724
|
return tmp;
|
|
681
725
|
};
|
|
682
|
-
protoOf(
|
|
726
|
+
protoOf(Companion_5).rp = function () {
|
|
683
727
|
return None_getInstance();
|
|
684
728
|
};
|
|
685
|
-
var
|
|
686
|
-
function
|
|
687
|
-
|
|
688
|
-
new Companion_4();
|
|
689
|
-
return Companion_instance_4;
|
|
729
|
+
var Companion_instance_5;
|
|
730
|
+
function Companion_getInstance_7() {
|
|
731
|
+
return Companion_instance_5;
|
|
690
732
|
}
|
|
691
733
|
function Some(value) {
|
|
692
734
|
Optional.call(this);
|
|
693
|
-
this.
|
|
735
|
+
this.mp_1 = value;
|
|
694
736
|
}
|
|
695
|
-
protoOf(Some).
|
|
696
|
-
return this.
|
|
737
|
+
protoOf(Some).r2 = function () {
|
|
738
|
+
return this.mp_1;
|
|
697
739
|
};
|
|
698
|
-
protoOf(Some).
|
|
740
|
+
protoOf(Some).ms = function () {
|
|
699
741
|
return true;
|
|
700
742
|
};
|
|
701
743
|
protoOf(Some).toString = function () {
|
|
702
|
-
return 'Some(' + this.
|
|
744
|
+
return 'Some(' + this.mp_1 + ')';
|
|
703
745
|
};
|
|
704
746
|
protoOf(Some).hashCode = function () {
|
|
705
|
-
return this.
|
|
747
|
+
return this.mp_1 == null ? 0 : hashCode(this.mp_1);
|
|
706
748
|
};
|
|
707
749
|
protoOf(Some).equals = function (other) {
|
|
708
750
|
if (this === other)
|
|
@@ -710,7 +752,7 @@
|
|
|
710
752
|
if (!(other instanceof Some))
|
|
711
753
|
return false;
|
|
712
754
|
var tmp0_other_with_cast = other instanceof Some ? other : THROW_CCE();
|
|
713
|
-
if (!equals(this.
|
|
755
|
+
if (!equals(this.mp_1, tmp0_other_with_cast.mp_1))
|
|
714
756
|
return false;
|
|
715
757
|
return true;
|
|
716
758
|
};
|
|
@@ -718,10 +760,10 @@
|
|
|
718
760
|
None_instance = this;
|
|
719
761
|
Optional.call(this);
|
|
720
762
|
}
|
|
721
|
-
protoOf(None).
|
|
763
|
+
protoOf(None).r2 = function () {
|
|
722
764
|
return null;
|
|
723
765
|
};
|
|
724
|
-
protoOf(None).
|
|
766
|
+
protoOf(None).ms = function () {
|
|
725
767
|
return false;
|
|
726
768
|
};
|
|
727
769
|
protoOf(None).toString = function () {
|
|
@@ -734,10 +776,9 @@
|
|
|
734
776
|
return None_instance;
|
|
735
777
|
}
|
|
736
778
|
function Optional() {
|
|
737
|
-
Companion_getInstance_4();
|
|
738
779
|
}
|
|
739
|
-
protoOf(Optional).
|
|
740
|
-
return !this.
|
|
780
|
+
protoOf(Optional).ns = function () {
|
|
781
|
+
return !this.ms();
|
|
741
782
|
};
|
|
742
783
|
function Taggable() {
|
|
743
784
|
}
|
|
@@ -748,83 +789,79 @@
|
|
|
748
789
|
function synchronizedOnSelf(_this__u8e3s4, action) {
|
|
749
790
|
return synchronizedOn(_this__u8e3s4, action);
|
|
750
791
|
}
|
|
751
|
-
function
|
|
752
|
-
Companion_instance_5 = this;
|
|
792
|
+
function Companion_6() {
|
|
753
793
|
}
|
|
754
|
-
protoOf(
|
|
794
|
+
protoOf(Companion_6).aq = function (source) {
|
|
755
795
|
var tmp;
|
|
756
|
-
if (source.
|
|
796
|
+
if (source.s()) {
|
|
757
797
|
tmp = new LazyCursor(source);
|
|
758
798
|
} else {
|
|
759
799
|
tmp = EmptyCursor_getInstance();
|
|
760
800
|
}
|
|
761
801
|
return tmp;
|
|
762
802
|
};
|
|
763
|
-
var
|
|
764
|
-
function
|
|
765
|
-
|
|
766
|
-
new Companion_5();
|
|
767
|
-
return Companion_instance_5;
|
|
803
|
+
var Companion_instance_6;
|
|
804
|
+
function Companion_getInstance_8() {
|
|
805
|
+
return Companion_instance_6;
|
|
768
806
|
}
|
|
769
807
|
function AbstractCursor$iterator$1(this$0) {
|
|
770
|
-
this.
|
|
808
|
+
this.ps_1 = this$0;
|
|
771
809
|
}
|
|
772
|
-
protoOf(AbstractCursor$iterator$1).
|
|
773
|
-
return !this.
|
|
810
|
+
protoOf(AbstractCursor$iterator$1).s = function () {
|
|
811
|
+
return !this.ps_1.zp();
|
|
774
812
|
};
|
|
775
|
-
protoOf(AbstractCursor$iterator$1).
|
|
776
|
-
var result = this.
|
|
777
|
-
this.
|
|
813
|
+
protoOf(AbstractCursor$iterator$1).u = function () {
|
|
814
|
+
var result = this.ps_1.xp();
|
|
815
|
+
this.ps_1 = this.ps_1.wp();
|
|
778
816
|
return ensureNotNull(result);
|
|
779
817
|
};
|
|
780
818
|
function AbstractCursor() {
|
|
781
|
-
Companion_getInstance_5();
|
|
782
819
|
}
|
|
783
820
|
protoOf(AbstractCursor).toString = function () {
|
|
784
|
-
return this.
|
|
821
|
+
return this.zp() ? '[]' : !this.yp() ? '[' + this.xp() + ']' : '[' + this.xp() + ', ...]';
|
|
785
822
|
};
|
|
786
|
-
protoOf(AbstractCursor).
|
|
823
|
+
protoOf(AbstractCursor).r = function () {
|
|
787
824
|
return new AbstractCursor$iterator$1(this);
|
|
788
825
|
};
|
|
789
826
|
protoOf(AbstractCursor).iterator = function () {
|
|
790
|
-
return this.
|
|
827
|
+
return this.r();
|
|
791
828
|
};
|
|
792
|
-
protoOf(AbstractCursor).
|
|
829
|
+
protoOf(AbstractCursor).qs = function () {
|
|
793
830
|
return false;
|
|
794
831
|
};
|
|
795
|
-
protoOf(AbstractCursor).
|
|
832
|
+
protoOf(AbstractCursor).rs = function (mapper) {
|
|
796
833
|
return new MapperCursor(this, mapper);
|
|
797
834
|
};
|
|
798
835
|
protoOf(AbstractCursor).map = function (mapper) {
|
|
799
|
-
return this.
|
|
836
|
+
return this.rs(mapper);
|
|
800
837
|
};
|
|
801
838
|
function CachedImpl(generator) {
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
839
|
+
this.ss_1 = generator;
|
|
840
|
+
this.ts_1 = Companion_instance_5.rp();
|
|
804
841
|
}
|
|
805
|
-
protoOf(CachedImpl).
|
|
806
|
-
return this.
|
|
842
|
+
protoOf(CachedImpl).op = function () {
|
|
843
|
+
return this.ts_1.ms();
|
|
807
844
|
};
|
|
808
|
-
protoOf(CachedImpl).
|
|
809
|
-
return this.
|
|
845
|
+
protoOf(CachedImpl).us = function () {
|
|
846
|
+
return this.ts_1.ns();
|
|
810
847
|
};
|
|
811
|
-
protoOf(CachedImpl).
|
|
812
|
-
this.
|
|
813
|
-
return ensureNotNull(this.
|
|
848
|
+
protoOf(CachedImpl).r2 = function () {
|
|
849
|
+
this.vs();
|
|
850
|
+
return ensureNotNull(this.ts_1.r2());
|
|
814
851
|
};
|
|
815
|
-
protoOf(CachedImpl).
|
|
816
|
-
if (this.
|
|
817
|
-
this.
|
|
852
|
+
protoOf(CachedImpl).vs = function () {
|
|
853
|
+
if (this.us()) {
|
|
854
|
+
this.ts_1 = Companion_instance_5.ls(this.ss_1());
|
|
818
855
|
}
|
|
819
856
|
};
|
|
820
|
-
protoOf(CachedImpl).
|
|
821
|
-
this.
|
|
857
|
+
protoOf(CachedImpl).pp = function () {
|
|
858
|
+
this.ts_1 = Companion_instance_5.rp();
|
|
822
859
|
};
|
|
823
860
|
protoOf(CachedImpl).toString = function () {
|
|
824
|
-
return 'CachedImpl(generator=' + this.
|
|
861
|
+
return 'CachedImpl(generator=' + this.ss_1 + ')';
|
|
825
862
|
};
|
|
826
863
|
protoOf(CachedImpl).hashCode = function () {
|
|
827
|
-
return hashCode(this.
|
|
864
|
+
return hashCode(this.ss_1);
|
|
828
865
|
};
|
|
829
866
|
protoOf(CachedImpl).equals = function (other) {
|
|
830
867
|
if (this === other)
|
|
@@ -832,90 +869,87 @@
|
|
|
832
869
|
if (!(other instanceof CachedImpl))
|
|
833
870
|
return false;
|
|
834
871
|
var tmp0_other_with_cast = other instanceof CachedImpl ? other : THROW_CCE();
|
|
835
|
-
if (!equals(this.
|
|
872
|
+
if (!equals(this.ss_1, tmp0_other_with_cast.ss_1))
|
|
836
873
|
return false;
|
|
837
874
|
return true;
|
|
838
875
|
};
|
|
839
876
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
840
877
|
return function () {
|
|
841
|
-
return this$0.
|
|
878
|
+
return this$0.ws_1.yp() ? new ConjunctionCursor(this$0.ws_1.wp(), this$0.xs_1) : this$0.xs_1.qs() ? this$0.xs_1.wp() : this$0.xs_1;
|
|
842
879
|
};
|
|
843
880
|
}
|
|
844
881
|
function ConjunctionCursor(first, second) {
|
|
845
882
|
AbstractCursor.call(this);
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
883
|
+
this.ws_1 = first;
|
|
884
|
+
this.xs_1 = second;
|
|
848
885
|
var tmp = this;
|
|
849
|
-
tmp.
|
|
886
|
+
tmp.ys_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
850
887
|
}
|
|
851
|
-
protoOf(ConjunctionCursor).
|
|
852
|
-
return this.
|
|
888
|
+
protoOf(ConjunctionCursor).zp = function () {
|
|
889
|
+
return this.ws_1.zp() ? this.xs_1.zp() : false;
|
|
853
890
|
};
|
|
854
|
-
protoOf(ConjunctionCursor).
|
|
855
|
-
var tmp$ret$0;
|
|
891
|
+
protoOf(ConjunctionCursor).wp = function () {
|
|
856
892
|
// Inline function 'kotlin.getValue' call
|
|
857
|
-
var
|
|
858
|
-
|
|
859
|
-
return
|
|
893
|
+
var this_0 = this.ys_1;
|
|
894
|
+
next$factory();
|
|
895
|
+
return this_0.r2();
|
|
860
896
|
};
|
|
861
|
-
protoOf(ConjunctionCursor).
|
|
862
|
-
return this.
|
|
897
|
+
protoOf(ConjunctionCursor).xp = function () {
|
|
898
|
+
return this.ws_1.yp() ? this.ws_1.xp() : this.xs_1.xp();
|
|
863
899
|
};
|
|
864
|
-
protoOf(ConjunctionCursor).
|
|
865
|
-
return this.
|
|
900
|
+
protoOf(ConjunctionCursor).yp = function () {
|
|
901
|
+
return this.ws_1.yp() ? true : this.xs_1.yp();
|
|
866
902
|
};
|
|
867
903
|
protoOf(ConjunctionCursor).equals = function (other) {
|
|
868
904
|
if (this === other)
|
|
869
905
|
return true;
|
|
870
906
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
871
907
|
return false;
|
|
872
|
-
if (other instanceof ConjunctionCursor)
|
|
873
|
-
other;
|
|
874
|
-
else
|
|
908
|
+
if (!(other instanceof ConjunctionCursor))
|
|
875
909
|
THROW_CCE();
|
|
876
|
-
if (!equals(this.
|
|
910
|
+
if (!equals(this.ws_1, other.ws_1))
|
|
877
911
|
return false;
|
|
878
|
-
if (!equals(this.
|
|
912
|
+
if (!equals(this.xs_1, other.xs_1))
|
|
879
913
|
return false;
|
|
880
914
|
return true;
|
|
881
915
|
};
|
|
882
916
|
protoOf(ConjunctionCursor).hashCode = function () {
|
|
883
|
-
var result = hashCode(this.
|
|
884
|
-
result = imul(31, result) + hashCode(this.
|
|
917
|
+
var result = hashCode(this.ws_1);
|
|
918
|
+
result = imul(31, result) + hashCode(this.xs_1) | 0;
|
|
885
919
|
return result;
|
|
886
920
|
};
|
|
887
921
|
function next$factory() {
|
|
888
922
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
889
|
-
return receiver.
|
|
923
|
+
return receiver.wp();
|
|
890
924
|
}, null);
|
|
891
925
|
}
|
|
892
926
|
function EmptyCursor() {
|
|
893
927
|
EmptyCursor_instance = this;
|
|
894
928
|
AbstractCursor.call(this);
|
|
895
929
|
}
|
|
896
|
-
protoOf(EmptyCursor).
|
|
930
|
+
protoOf(EmptyCursor).wp = function () {
|
|
897
931
|
throw NoSuchElementException_init_$Create$();
|
|
898
932
|
};
|
|
899
|
-
protoOf(EmptyCursor).
|
|
933
|
+
protoOf(EmptyCursor).xp = function () {
|
|
900
934
|
return null;
|
|
901
935
|
};
|
|
902
|
-
protoOf(EmptyCursor).
|
|
936
|
+
protoOf(EmptyCursor).yp = function () {
|
|
903
937
|
return false;
|
|
904
938
|
};
|
|
905
|
-
protoOf(EmptyCursor).
|
|
939
|
+
protoOf(EmptyCursor).zp = function () {
|
|
906
940
|
return true;
|
|
907
941
|
};
|
|
908
942
|
protoOf(EmptyCursor).toString = function () {
|
|
909
943
|
return protoOf(AbstractCursor).toString.call(this);
|
|
910
944
|
};
|
|
911
|
-
protoOf(EmptyCursor).
|
|
945
|
+
protoOf(EmptyCursor).zs = function (mapper) {
|
|
912
946
|
return this;
|
|
913
947
|
};
|
|
914
948
|
protoOf(EmptyCursor).map = function (mapper) {
|
|
915
|
-
return this.
|
|
949
|
+
return this.zs(mapper);
|
|
916
950
|
};
|
|
917
|
-
protoOf(EmptyCursor).
|
|
918
|
-
return this.
|
|
951
|
+
protoOf(EmptyCursor).rs = function (mapper) {
|
|
952
|
+
return this.zs(mapper);
|
|
919
953
|
};
|
|
920
954
|
var EmptyCursor_instance;
|
|
921
955
|
function EmptyCursor_getInstance() {
|
|
@@ -924,27 +958,27 @@
|
|
|
924
958
|
return EmptyCursor_instance;
|
|
925
959
|
}
|
|
926
960
|
function IntIndexedImpl(index, value) {
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
961
|
+
this.at_1 = index;
|
|
962
|
+
this.bt_1 = value;
|
|
929
963
|
}
|
|
930
|
-
protoOf(IntIndexedImpl).
|
|
931
|
-
return this.
|
|
964
|
+
protoOf(IntIndexedImpl).bq = function () {
|
|
965
|
+
return this.at_1;
|
|
932
966
|
};
|
|
933
|
-
protoOf(IntIndexedImpl).
|
|
934
|
-
return this.
|
|
967
|
+
protoOf(IntIndexedImpl).r2 = function () {
|
|
968
|
+
return this.bt_1;
|
|
935
969
|
};
|
|
936
|
-
protoOf(IntIndexedImpl).
|
|
937
|
-
return this.
|
|
970
|
+
protoOf(IntIndexedImpl).gd = function () {
|
|
971
|
+
return this.at_1;
|
|
938
972
|
};
|
|
939
|
-
protoOf(IntIndexedImpl).
|
|
940
|
-
return this.
|
|
973
|
+
protoOf(IntIndexedImpl).hd = function () {
|
|
974
|
+
return this.bt_1;
|
|
941
975
|
};
|
|
942
976
|
protoOf(IntIndexedImpl).toString = function () {
|
|
943
|
-
return 'IntIndexedImpl(index=' + this.
|
|
977
|
+
return 'IntIndexedImpl(index=' + this.at_1 + ', value=' + this.bt_1 + ')';
|
|
944
978
|
};
|
|
945
979
|
protoOf(IntIndexedImpl).hashCode = function () {
|
|
946
|
-
var result = this.
|
|
947
|
-
result = imul(result, 31) + (this.
|
|
980
|
+
var result = this.at_1;
|
|
981
|
+
result = imul(result, 31) + (this.bt_1 == null ? 0 : hashCode(this.bt_1)) | 0;
|
|
948
982
|
return result;
|
|
949
983
|
};
|
|
950
984
|
protoOf(IntIndexedImpl).equals = function (other) {
|
|
@@ -953,59 +987,58 @@
|
|
|
953
987
|
if (!(other instanceof IntIndexedImpl))
|
|
954
988
|
return false;
|
|
955
989
|
var tmp0_other_with_cast = other instanceof IntIndexedImpl ? other : THROW_CCE();
|
|
956
|
-
if (!(this.
|
|
990
|
+
if (!(this.at_1 === tmp0_other_with_cast.at_1))
|
|
957
991
|
return false;
|
|
958
|
-
if (!equals(this.
|
|
992
|
+
if (!equals(this.bt_1, tmp0_other_with_cast.bt_1))
|
|
959
993
|
return false;
|
|
960
994
|
return true;
|
|
961
995
|
};
|
|
962
|
-
protoOf(IntIndexedImpl).
|
|
963
|
-
return this.
|
|
996
|
+
protoOf(IntIndexedImpl).d = function (other) {
|
|
997
|
+
return this.dq((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
964
998
|
};
|
|
965
999
|
function _get_wrapped__s2ip8($this) {
|
|
966
|
-
var tmp$ret$0;
|
|
967
1000
|
// Inline function 'kotlin.getValue' call
|
|
968
|
-
var
|
|
969
|
-
|
|
970
|
-
return
|
|
1001
|
+
var this_0 = $this.dt_1;
|
|
1002
|
+
wrapped$factory();
|
|
1003
|
+
return this_0.r2();
|
|
971
1004
|
}
|
|
972
1005
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
973
1006
|
return function () {
|
|
974
|
-
return new NonLastCursor(this$0.
|
|
1007
|
+
return new NonLastCursor(this$0.ct_1);
|
|
975
1008
|
};
|
|
976
1009
|
}
|
|
977
1010
|
function LazyCursor(delegate) {
|
|
978
1011
|
AbstractCursor.call(this);
|
|
979
|
-
this.
|
|
1012
|
+
this.ct_1 = delegate;
|
|
980
1013
|
var tmp = this;
|
|
981
|
-
tmp.
|
|
1014
|
+
tmp.dt_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
982
1015
|
}
|
|
983
|
-
protoOf(LazyCursor).
|
|
1016
|
+
protoOf(LazyCursor).qs = function () {
|
|
984
1017
|
return true;
|
|
985
1018
|
};
|
|
986
|
-
protoOf(LazyCursor).
|
|
987
|
-
return _get_wrapped__s2ip8(this).
|
|
1019
|
+
protoOf(LazyCursor).wp = function () {
|
|
1020
|
+
return _get_wrapped__s2ip8(this).wp();
|
|
988
1021
|
};
|
|
989
|
-
protoOf(LazyCursor).
|
|
990
|
-
return _get_wrapped__s2ip8(this).
|
|
1022
|
+
protoOf(LazyCursor).xp = function () {
|
|
1023
|
+
return _get_wrapped__s2ip8(this).xp();
|
|
991
1024
|
};
|
|
992
|
-
protoOf(LazyCursor).
|
|
1025
|
+
protoOf(LazyCursor).yp = function () {
|
|
993
1026
|
return true;
|
|
994
1027
|
};
|
|
995
|
-
protoOf(LazyCursor).
|
|
1028
|
+
protoOf(LazyCursor).zp = function () {
|
|
996
1029
|
return false;
|
|
997
1030
|
};
|
|
998
1031
|
protoOf(LazyCursor).toString = function () {
|
|
999
1032
|
return protoOf(AbstractCursor).toString.call(this);
|
|
1000
1033
|
};
|
|
1001
|
-
protoOf(LazyCursor).
|
|
1002
|
-
return _get_wrapped__s2ip8(this).
|
|
1034
|
+
protoOf(LazyCursor).r = function () {
|
|
1035
|
+
return _get_wrapped__s2ip8(this).r();
|
|
1003
1036
|
};
|
|
1004
1037
|
protoOf(LazyCursor).iterator = function () {
|
|
1005
|
-
return this.
|
|
1038
|
+
return this.r();
|
|
1006
1039
|
};
|
|
1007
1040
|
protoOf(LazyCursor).hashCode = function () {
|
|
1008
|
-
return hashCode(this.
|
|
1041
|
+
return hashCode(this.ct_1);
|
|
1009
1042
|
};
|
|
1010
1043
|
protoOf(LazyCursor).equals = function (other) {
|
|
1011
1044
|
if (this === other)
|
|
@@ -1013,7 +1046,7 @@
|
|
|
1013
1046
|
if (!(other instanceof LazyCursor))
|
|
1014
1047
|
return false;
|
|
1015
1048
|
var tmp0_other_with_cast = other instanceof LazyCursor ? other : THROW_CCE();
|
|
1016
|
-
if (!equals(this.
|
|
1049
|
+
if (!equals(this.ct_1, tmp0_other_with_cast.ct_1))
|
|
1017
1050
|
return false;
|
|
1018
1051
|
return true;
|
|
1019
1052
|
};
|
|
@@ -1023,27 +1056,27 @@
|
|
|
1023
1056
|
}, null);
|
|
1024
1057
|
}
|
|
1025
1058
|
function LongIndexedImpl(index, value) {
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1059
|
+
this.et_1 = index;
|
|
1060
|
+
this.ft_1 = value;
|
|
1028
1061
|
}
|
|
1029
|
-
protoOf(LongIndexedImpl).
|
|
1030
|
-
return this.
|
|
1062
|
+
protoOf(LongIndexedImpl).bq = function () {
|
|
1063
|
+
return this.et_1;
|
|
1031
1064
|
};
|
|
1032
|
-
protoOf(LongIndexedImpl).
|
|
1033
|
-
return this.
|
|
1065
|
+
protoOf(LongIndexedImpl).r2 = function () {
|
|
1066
|
+
return this.ft_1;
|
|
1034
1067
|
};
|
|
1035
|
-
protoOf(LongIndexedImpl).
|
|
1036
|
-
return this.
|
|
1068
|
+
protoOf(LongIndexedImpl).cs = function (other) {
|
|
1069
|
+
return this.et_1.ma(other.bq()).b9();
|
|
1037
1070
|
};
|
|
1038
|
-
protoOf(LongIndexedImpl).
|
|
1039
|
-
return this.
|
|
1071
|
+
protoOf(LongIndexedImpl).d = function (other) {
|
|
1072
|
+
return this.cs((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1040
1073
|
};
|
|
1041
1074
|
protoOf(LongIndexedImpl).toString = function () {
|
|
1042
|
-
return 'LongIndexedImpl(index=' + toString(
|
|
1075
|
+
return 'LongIndexedImpl(index=' + this.et_1.toString() + ', value=' + this.ft_1 + ')';
|
|
1043
1076
|
};
|
|
1044
1077
|
protoOf(LongIndexedImpl).hashCode = function () {
|
|
1045
|
-
var result = this.
|
|
1046
|
-
result = imul(result, 31) + (this.
|
|
1078
|
+
var result = this.et_1.hashCode();
|
|
1079
|
+
result = imul(result, 31) + (this.ft_1 == null ? 0 : hashCode(this.ft_1)) | 0;
|
|
1047
1080
|
return result;
|
|
1048
1081
|
};
|
|
1049
1082
|
protoOf(LongIndexedImpl).equals = function (other) {
|
|
@@ -1052,38 +1085,37 @@
|
|
|
1052
1085
|
if (!(other instanceof LongIndexedImpl))
|
|
1053
1086
|
return false;
|
|
1054
1087
|
var tmp0_other_with_cast = other instanceof LongIndexedImpl ? other : THROW_CCE();
|
|
1055
|
-
if (!this.
|
|
1088
|
+
if (!this.et_1.equals(tmp0_other_with_cast.et_1))
|
|
1056
1089
|
return false;
|
|
1057
|
-
if (!equals(this.
|
|
1090
|
+
if (!equals(this.ft_1, tmp0_other_with_cast.ft_1))
|
|
1058
1091
|
return false;
|
|
1059
1092
|
return true;
|
|
1060
1093
|
};
|
|
1061
1094
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1062
1095
|
return function () {
|
|
1063
|
-
return this$0.
|
|
1096
|
+
return this$0.ht_1(ensureNotNull(this$0.gt_1.xp()));
|
|
1064
1097
|
};
|
|
1065
1098
|
}
|
|
1066
1099
|
function MapperCursor(wrapped, mapper) {
|
|
1067
1100
|
AbstractCursor.call(this);
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1101
|
+
this.gt_1 = wrapped;
|
|
1102
|
+
this.ht_1 = mapper;
|
|
1070
1103
|
var tmp = this;
|
|
1071
|
-
tmp.
|
|
1104
|
+
tmp.it_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1072
1105
|
}
|
|
1073
|
-
protoOf(MapperCursor).
|
|
1074
|
-
return this.
|
|
1106
|
+
protoOf(MapperCursor).wp = function () {
|
|
1107
|
+
return this.gt_1.wp().rs(this.ht_1);
|
|
1075
1108
|
};
|
|
1076
|
-
protoOf(MapperCursor).
|
|
1077
|
-
var tmp$ret$0;
|
|
1109
|
+
protoOf(MapperCursor).xp = function () {
|
|
1078
1110
|
// Inline function 'kotlin.getValue' call
|
|
1079
|
-
var
|
|
1080
|
-
|
|
1081
|
-
return
|
|
1111
|
+
var this_0 = this.it_1;
|
|
1112
|
+
current$factory();
|
|
1113
|
+
return this_0.r2();
|
|
1082
1114
|
};
|
|
1083
|
-
protoOf(MapperCursor).
|
|
1115
|
+
protoOf(MapperCursor).yp = function () {
|
|
1084
1116
|
return true;
|
|
1085
1117
|
};
|
|
1086
|
-
protoOf(MapperCursor).
|
|
1118
|
+
protoOf(MapperCursor).zp = function () {
|
|
1087
1119
|
return false;
|
|
1088
1120
|
};
|
|
1089
1121
|
protoOf(MapperCursor).equals = function (other) {
|
|
@@ -1091,68 +1123,63 @@
|
|
|
1091
1123
|
return true;
|
|
1092
1124
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
1093
1125
|
return false;
|
|
1094
|
-
if (other instanceof MapperCursor)
|
|
1095
|
-
other;
|
|
1096
|
-
else
|
|
1126
|
+
if (!(other instanceof MapperCursor))
|
|
1097
1127
|
THROW_CCE();
|
|
1098
|
-
if (!equals(this.
|
|
1128
|
+
if (!equals(this.gt_1, other.gt_1))
|
|
1099
1129
|
return false;
|
|
1100
|
-
if (!equals(this.
|
|
1130
|
+
if (!equals(this.ht_1, other.ht_1))
|
|
1101
1131
|
return false;
|
|
1102
1132
|
return true;
|
|
1103
1133
|
};
|
|
1104
1134
|
protoOf(MapperCursor).hashCode = function () {
|
|
1105
|
-
var result = hashCode(this.
|
|
1106
|
-
result = imul(31, result) + hashCode(this.
|
|
1135
|
+
var result = hashCode(this.gt_1);
|
|
1136
|
+
result = imul(31, result) + hashCode(this.ht_1) | 0;
|
|
1107
1137
|
return result;
|
|
1108
1138
|
};
|
|
1109
|
-
protoOf(MapperCursor).
|
|
1110
|
-
return new ValueCursor(mapper(this.
|
|
1139
|
+
protoOf(MapperCursor).jt = function (mapper) {
|
|
1140
|
+
return new ValueCursor(mapper(this.xp()), this.wp().rs(mapper));
|
|
1111
1141
|
};
|
|
1112
1142
|
protoOf(MapperCursor).map = function (mapper) {
|
|
1113
|
-
return this.
|
|
1143
|
+
return this.jt(mapper);
|
|
1114
1144
|
};
|
|
1115
|
-
protoOf(MapperCursor).
|
|
1116
|
-
return this.
|
|
1145
|
+
protoOf(MapperCursor).rs = function (mapper) {
|
|
1146
|
+
return this.jt(mapper);
|
|
1117
1147
|
};
|
|
1118
1148
|
function current$factory() {
|
|
1119
1149
|
return getPropertyCallableRef('current', 1, KProperty1, function (receiver) {
|
|
1120
|
-
return receiver.
|
|
1150
|
+
return receiver.xp();
|
|
1121
1151
|
}, null);
|
|
1122
1152
|
}
|
|
1123
1153
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1124
1154
|
return function () {
|
|
1125
|
-
var tmp$ret$0;
|
|
1126
1155
|
// Inline function 'kotlin.also' call
|
|
1127
|
-
var
|
|
1156
|
+
var this_0 = Companion_instance_6.aq($source);
|
|
1128
1157
|
// Inline function 'kotlin.contracts.contract' call
|
|
1129
1158
|
// Inline function 'it.unibo.tuprolog.utils.impl.NonLastCursor.next$delegate.<anonymous>.<anonymous>' call
|
|
1130
|
-
this$0.
|
|
1131
|
-
|
|
1132
|
-
return tmp$ret$0;
|
|
1159
|
+
this$0.kt_1 = null;
|
|
1160
|
+
return this_0;
|
|
1133
1161
|
};
|
|
1134
1162
|
}
|
|
1135
1163
|
function NonLastCursor(source) {
|
|
1136
1164
|
AbstractCursor.call(this);
|
|
1137
|
-
this.
|
|
1165
|
+
this.kt_1 = source;
|
|
1138
1166
|
var tmp = this;
|
|
1139
|
-
tmp.
|
|
1140
|
-
this.
|
|
1167
|
+
tmp.lt_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1168
|
+
this.mt_1 = source.u();
|
|
1141
1169
|
}
|
|
1142
|
-
protoOf(NonLastCursor).
|
|
1143
|
-
var tmp$ret$0;
|
|
1170
|
+
protoOf(NonLastCursor).wp = function () {
|
|
1144
1171
|
// Inline function 'kotlin.getValue' call
|
|
1145
|
-
var
|
|
1146
|
-
|
|
1147
|
-
return
|
|
1172
|
+
var this_0 = this.lt_1;
|
|
1173
|
+
next$factory_0();
|
|
1174
|
+
return this_0.r2();
|
|
1148
1175
|
};
|
|
1149
|
-
protoOf(NonLastCursor).
|
|
1150
|
-
return this.
|
|
1176
|
+
protoOf(NonLastCursor).xp = function () {
|
|
1177
|
+
return this.mt_1;
|
|
1151
1178
|
};
|
|
1152
|
-
protoOf(NonLastCursor).
|
|
1179
|
+
protoOf(NonLastCursor).yp = function () {
|
|
1153
1180
|
return true;
|
|
1154
1181
|
};
|
|
1155
|
-
protoOf(NonLastCursor).
|
|
1182
|
+
protoOf(NonLastCursor).zp = function () {
|
|
1156
1183
|
return false;
|
|
1157
1184
|
};
|
|
1158
1185
|
protoOf(NonLastCursor).toString = function () {
|
|
@@ -1160,85 +1187,80 @@
|
|
|
1160
1187
|
};
|
|
1161
1188
|
function next$factory_0() {
|
|
1162
1189
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
1163
|
-
return receiver.
|
|
1190
|
+
return receiver.wp();
|
|
1164
1191
|
}, null);
|
|
1165
1192
|
}
|
|
1166
1193
|
function removeLeastRecent($this) {
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
var
|
|
1170
|
-
|
|
1171
|
-
var
|
|
1172
|
-
|
|
1173
|
-
var
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
tmp$ret$1 = new Pair(entry.n2(), entry.p2());
|
|
1177
|
-
return tmp.cr(tmp$ret$1);
|
|
1194
|
+
// Inline function 'kotlin.collections.asIterable' call
|
|
1195
|
+
var tmp$ret$0 = $this.ot_1.n2();
|
|
1196
|
+
var tmp0_container = first(tmp$ret$0);
|
|
1197
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1198
|
+
var key = tmp0_container.q2();
|
|
1199
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1200
|
+
var value = tmp0_container.r2();
|
|
1201
|
+
$this.ot_1.p2(key);
|
|
1202
|
+
return Companion_instance_5.ls(to(key, value));
|
|
1178
1203
|
}
|
|
1179
1204
|
function removeLeastRecentIfNecessary($this) {
|
|
1180
1205
|
var tmp;
|
|
1181
|
-
if ($this.
|
|
1206
|
+
if ($this.ot_1.l() >= $this.nt_1) {
|
|
1182
1207
|
tmp = removeLeastRecent($this);
|
|
1183
1208
|
} else {
|
|
1184
|
-
|
|
1209
|
+
tmp = Companion_instance_5.rp();
|
|
1185
1210
|
}
|
|
1186
1211
|
return tmp;
|
|
1187
1212
|
}
|
|
1188
1213
|
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1189
1214
|
return function () {
|
|
1190
1215
|
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1191
|
-
var
|
|
1192
|
-
|
|
1216
|
+
var this_0 = this$0.ot_1;
|
|
1217
|
+
var key = $key;
|
|
1218
|
+
var value = $value;
|
|
1219
|
+
this_0.o2(key, value);
|
|
1193
1220
|
return evicted;
|
|
1194
1221
|
};
|
|
1195
1222
|
}
|
|
1196
1223
|
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1197
1224
|
return function () {
|
|
1198
1225
|
var tmp;
|
|
1199
|
-
if (this$0.
|
|
1200
|
-
tmp =
|
|
1226
|
+
if (this$0.ot_1.u2($key)) {
|
|
1227
|
+
tmp = Companion_instance_5.sp(this$0.ot_1.x2($key));
|
|
1201
1228
|
} else {
|
|
1202
|
-
tmp =
|
|
1229
|
+
tmp = Companion_instance_5.rp();
|
|
1203
1230
|
}
|
|
1204
1231
|
return tmp;
|
|
1205
1232
|
};
|
|
1206
1233
|
}
|
|
1207
1234
|
function SimpleLRUCache$toSequence$lambda$lambda(it) {
|
|
1208
|
-
var tmp$ret$0;
|
|
1209
1235
|
// Inline function 'kotlin.collections.toPair' call
|
|
1210
|
-
|
|
1211
|
-
return tmp$ret$0;
|
|
1236
|
+
return new Pair(it.q2(), it.r2());
|
|
1212
1237
|
}
|
|
1213
1238
|
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1214
1239
|
return function () {
|
|
1215
|
-
var tmp = asSequence(this$0.
|
|
1240
|
+
var tmp = asSequence(this$0.ot_1.n2());
|
|
1216
1241
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1217
1242
|
};
|
|
1218
1243
|
}
|
|
1219
1244
|
function SimpleLRUCache$toString$lambda(it) {
|
|
1220
|
-
return '' + it.
|
|
1245
|
+
return '' + it.qd_1 + ' = ' + it.rd_1;
|
|
1221
1246
|
}
|
|
1222
1247
|
function SimpleLRUCache(capacity) {
|
|
1223
|
-
this.
|
|
1248
|
+
this.nt_1 = capacity;
|
|
1224
1249
|
// Inline function 'kotlin.require' call
|
|
1225
|
-
var tmp0_require = this.fs_1 > 0;
|
|
1226
1250
|
// Inline function 'kotlin.contracts.contract' call
|
|
1227
1251
|
// Inline function 'kotlin.require' call
|
|
1228
1252
|
// Inline function 'kotlin.contracts.contract' call
|
|
1229
|
-
if (!
|
|
1230
|
-
var tmp$ret$0;
|
|
1253
|
+
if (!(this.nt_1 > 0)) {
|
|
1231
1254
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
1232
|
-
|
|
1233
|
-
var message = tmp$ret$0;
|
|
1255
|
+
var message = 'Failed requirement.';
|
|
1234
1256
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1235
1257
|
}
|
|
1236
|
-
this.
|
|
1258
|
+
this.ot_1 = LinkedHashMap_init_$Create$();
|
|
1237
1259
|
}
|
|
1238
|
-
protoOf(SimpleLRUCache).
|
|
1260
|
+
protoOf(SimpleLRUCache).kp = function (key, value) {
|
|
1239
1261
|
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1240
1262
|
};
|
|
1241
|
-
protoOf(SimpleLRUCache).
|
|
1263
|
+
protoOf(SimpleLRUCache).x2 = function (key) {
|
|
1242
1264
|
return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
|
|
1243
1265
|
};
|
|
1244
1266
|
protoOf(SimpleLRUCache).equals = function (other) {
|
|
@@ -1246,43 +1268,41 @@
|
|
|
1246
1268
|
return true;
|
|
1247
1269
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
1248
1270
|
return false;
|
|
1249
|
-
if (other instanceof SimpleLRUCache)
|
|
1250
|
-
other;
|
|
1251
|
-
else
|
|
1271
|
+
if (!(other instanceof SimpleLRUCache))
|
|
1252
1272
|
THROW_CCE();
|
|
1253
|
-
if (!(this.
|
|
1273
|
+
if (!(this.nt_1 === other.nt_1))
|
|
1254
1274
|
return false;
|
|
1255
|
-
if (!this.
|
|
1275
|
+
if (!this.ot_1.equals(other.ot_1))
|
|
1256
1276
|
return false;
|
|
1257
1277
|
return true;
|
|
1258
1278
|
};
|
|
1259
1279
|
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1260
|
-
var result = this.
|
|
1261
|
-
result = imul(31, result) + this.
|
|
1280
|
+
var result = this.nt_1;
|
|
1281
|
+
result = imul(31, result) + this.ot_1.hashCode() | 0;
|
|
1262
1282
|
return result;
|
|
1263
1283
|
};
|
|
1264
|
-
protoOf(SimpleLRUCache).
|
|
1284
|
+
protoOf(SimpleLRUCache).pt = function () {
|
|
1265
1285
|
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1266
1286
|
};
|
|
1267
1287
|
protoOf(SimpleLRUCache).toString = function () {
|
|
1268
|
-
var tmp = this.
|
|
1288
|
+
var tmp = this.pt();
|
|
1269
1289
|
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1270
1290
|
};
|
|
1271
1291
|
function ValueCursor(current, next) {
|
|
1272
1292
|
AbstractCursor.call(this);
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1293
|
+
this.qt_1 = current;
|
|
1294
|
+
this.rt_1 = next;
|
|
1275
1295
|
}
|
|
1276
|
-
protoOf(ValueCursor).
|
|
1277
|
-
return this.
|
|
1296
|
+
protoOf(ValueCursor).xp = function () {
|
|
1297
|
+
return this.qt_1;
|
|
1278
1298
|
};
|
|
1279
|
-
protoOf(ValueCursor).
|
|
1280
|
-
return this.
|
|
1299
|
+
protoOf(ValueCursor).wp = function () {
|
|
1300
|
+
return this.rt_1;
|
|
1281
1301
|
};
|
|
1282
|
-
protoOf(ValueCursor).
|
|
1302
|
+
protoOf(ValueCursor).yp = function () {
|
|
1283
1303
|
return true;
|
|
1284
1304
|
};
|
|
1285
|
-
protoOf(ValueCursor).
|
|
1305
|
+
protoOf(ValueCursor).zp = function () {
|
|
1286
1306
|
return false;
|
|
1287
1307
|
};
|
|
1288
1308
|
function dequeOf(items) {
|
|
@@ -1292,34 +1312,30 @@
|
|
|
1292
1312
|
return mutableListOf(items.slice());
|
|
1293
1313
|
}
|
|
1294
1314
|
function dequeOf_1(items) {
|
|
1295
|
-
var tmp$ret$1;
|
|
1296
1315
|
// Inline function 'kotlin.also' call
|
|
1297
|
-
var tmp$ret$0;
|
|
1298
1316
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1299
|
-
|
|
1300
|
-
var tmp0_also = tmp$ret$0;
|
|
1317
|
+
var this_0 = ArrayList_init_$Create$_0();
|
|
1301
1318
|
// Inline function 'kotlin.contracts.contract' call
|
|
1302
1319
|
// Inline function 'it.unibo.tuprolog.utils.dequeOf.<anonymous>' call
|
|
1303
|
-
addAll(
|
|
1304
|
-
|
|
1305
|
-
return tmp$ret$1;
|
|
1320
|
+
addAll(this_0, items);
|
|
1321
|
+
return this_0;
|
|
1306
1322
|
}
|
|
1307
1323
|
function takeFirst(_this__u8e3s4) {
|
|
1308
|
-
if (_this__u8e3s4.
|
|
1324
|
+
if (_this__u8e3s4.z())
|
|
1309
1325
|
return null;
|
|
1310
|
-
var first = _this__u8e3s4.
|
|
1311
|
-
_this__u8e3s4.
|
|
1326
|
+
var first = _this__u8e3s4.d1(0);
|
|
1327
|
+
_this__u8e3s4.f1(0);
|
|
1312
1328
|
return first;
|
|
1313
1329
|
}
|
|
1314
1330
|
function addFirst(_this__u8e3s4, item) {
|
|
1315
|
-
_this__u8e3s4.
|
|
1331
|
+
_this__u8e3s4.q1(0, item);
|
|
1316
1332
|
}
|
|
1317
1333
|
function addFirst_0(_this__u8e3s4, items) {
|
|
1318
|
-
var i = _this__u8e3s4.
|
|
1319
|
-
var tmp0_iterator = items.
|
|
1320
|
-
while (tmp0_iterator.
|
|
1321
|
-
var item = tmp0_iterator.
|
|
1322
|
-
i.
|
|
1334
|
+
var i = _this__u8e3s4.z1();
|
|
1335
|
+
var tmp0_iterator = items.r();
|
|
1336
|
+
while (tmp0_iterator.s()) {
|
|
1337
|
+
var item = tmp0_iterator.u();
|
|
1338
|
+
i.r1(item);
|
|
1323
1339
|
}
|
|
1324
1340
|
}
|
|
1325
1341
|
function synchronizedOn(obj, action) {
|
|
@@ -1332,60 +1348,61 @@
|
|
|
1332
1348
|
//region block: post-declaration
|
|
1333
1349
|
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1334
1350
|
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1335
|
-
protoOf(CachedImpl).
|
|
1336
|
-
protoOf(
|
|
1337
|
-
protoOf(
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
protoOf(SimpleLRUCache).lo = getOrSet;
|
|
1348
|
-
protoOf(ValueCursor).asIterable = asIterable_1;
|
|
1349
|
-
protoOf(ValueCursor).asSequence = asSequence_0;
|
|
1351
|
+
protoOf(CachedImpl).qp = ifValid;
|
|
1352
|
+
protoOf(IntIndexedImpl).dq = compareTo;
|
|
1353
|
+
protoOf(SimpleLRUCache).lp = getOrSet;
|
|
1354
|
+
//endregion
|
|
1355
|
+
//region block: init
|
|
1356
|
+
Companion_instance = new Companion();
|
|
1357
|
+
Companion_instance_0 = new Companion_0();
|
|
1358
|
+
Companion_instance_1 = new Companion_1();
|
|
1359
|
+
Companion_instance_2 = new Companion_2();
|
|
1360
|
+
Companion_instance_3 = new Companion_3();
|
|
1361
|
+
Companion_instance_5 = new Companion_5();
|
|
1362
|
+
Companion_instance_6 = new Companion_6();
|
|
1350
1363
|
//endregion
|
|
1351
1364
|
//region block: exports
|
|
1352
1365
|
_.$_$ = _.$_$ || {};
|
|
1353
|
-
_.$_$.a =
|
|
1354
|
-
_.$_$.b =
|
|
1355
|
-
_.$_$.c =
|
|
1356
|
-
_.$_$.d =
|
|
1366
|
+
_.$_$.a = Companion_instance;
|
|
1367
|
+
_.$_$.b = Companion_instance_0;
|
|
1368
|
+
_.$_$.c = Companion_instance_1;
|
|
1369
|
+
_.$_$.d = Companion_instance_3;
|
|
1357
1370
|
_.$_$.e = castTo;
|
|
1358
1371
|
_.$_$.f = Castable;
|
|
1359
1372
|
_.$_$.g = compareTo_0;
|
|
1360
1373
|
_.$_$.h = LongIndexed;
|
|
1361
|
-
_.$_$.i =
|
|
1362
|
-
_.$_$.j =
|
|
1363
|
-
_.$_$.k =
|
|
1364
|
-
_.$_$.l =
|
|
1365
|
-
_.$_$.m =
|
|
1366
|
-
_.$_$.n =
|
|
1367
|
-
_.$_$.o =
|
|
1368
|
-
_.$_$.p =
|
|
1369
|
-
_.$_$.q =
|
|
1370
|
-
_.$_$.r =
|
|
1371
|
-
_.$_$.s =
|
|
1372
|
-
_.$_$.t =
|
|
1373
|
-
_.$_$.u =
|
|
1374
|
-
_.$_$.v =
|
|
1375
|
-
_.$_$.w =
|
|
1376
|
-
_.$_$.x =
|
|
1377
|
-
_.$_$.y =
|
|
1378
|
-
_.$_$.z =
|
|
1379
|
-
_.$_$.a1 =
|
|
1380
|
-
_.$_$.b1 =
|
|
1381
|
-
_.$_$.c1 =
|
|
1382
|
-
_.$_$.d1 =
|
|
1383
|
-
_.$_$.e1 =
|
|
1384
|
-
_.$_$.f1 =
|
|
1385
|
-
_.$_$.g1 =
|
|
1386
|
-
_.$_$.h1 =
|
|
1387
|
-
_.$_$.i1 =
|
|
1388
|
-
_.$_$.j1 =
|
|
1374
|
+
_.$_$.i = NumberTypeTester;
|
|
1375
|
+
_.$_$.j = Some;
|
|
1376
|
+
_.$_$.k = containsTag;
|
|
1377
|
+
_.$_$.l = getTag;
|
|
1378
|
+
_.$_$.m = Taggable;
|
|
1379
|
+
_.$_$.n = addFirst_0;
|
|
1380
|
+
_.$_$.o = addFirst;
|
|
1381
|
+
_.$_$.p = assertItemsAreNotNull_0;
|
|
1382
|
+
_.$_$.q = assertItemsAreNotNull;
|
|
1383
|
+
_.$_$.r = assertItemsAreNotNull_1;
|
|
1384
|
+
_.$_$.s = buffered;
|
|
1385
|
+
_.$_$.t = cached;
|
|
1386
|
+
_.$_$.u = cursor;
|
|
1387
|
+
_.$_$.v = cursor_0;
|
|
1388
|
+
_.$_$.w = cursor_1;
|
|
1389
|
+
_.$_$.x = dequeOf;
|
|
1390
|
+
_.$_$.y = dequeOf_1;
|
|
1391
|
+
_.$_$.z = dequeOf_0;
|
|
1392
|
+
_.$_$.a1 = dropLast;
|
|
1393
|
+
_.$_$.b1 = forceCast;
|
|
1394
|
+
_.$_$.c1 = insertAt;
|
|
1395
|
+
_.$_$.d1 = itemWiseEquals;
|
|
1396
|
+
_.$_$.e1 = itemWiseEquals_1;
|
|
1397
|
+
_.$_$.f1 = itemWiseHashCode;
|
|
1398
|
+
_.$_$.g1 = itemWiseHashCode_1;
|
|
1399
|
+
_.$_$.h1 = itemWiseHashCode_0;
|
|
1400
|
+
_.$_$.i1 = mergeSequences;
|
|
1401
|
+
_.$_$.j1 = plus;
|
|
1402
|
+
_.$_$.k1 = setTags;
|
|
1403
|
+
_.$_$.l1 = synchronizedOnSelf;
|
|
1404
|
+
_.$_$.m1 = synchronizedOn;
|
|
1405
|
+
_.$_$.n1 = takeFirst;
|
|
1389
1406
|
//endregion
|
|
1390
1407
|
return _;
|
|
1391
1408
|
}));
|