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