@tuprolog/2p-full 0.31.5-dev0f → 0.31.5-dev0n
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +234 -229
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +5576 -6196
- package/2p-core.js.map +1 -1
- package/2p-datalog.js +9 -2
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js +9 -2
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +9 -2
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +9 -2
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +9 -2
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +26 -3
- package/2p-full.js.map +1 -1
- package/2p-io-lib.js +903 -926
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +1298 -1327
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +352 -356
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +14 -3
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +66 -41
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +175 -173
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js +9 -2
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js +9 -2
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1405 -1677
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js +9 -2
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +19 -5
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1845 -1880
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1239 -1331
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5342 -5796
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1734 -1730
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +364 -365
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +548 -510
- package/2p-utils.js.map +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js +9 -2
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/clikt-clikt-js-ir.js +2078 -2260
- package/clikt-clikt-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +2566 -2676
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +9 -2
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +9 -2
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/kt-math.js +3666 -3302
- package/kt-math.js.map +1 -1
- package/package.json +56 -2
- package/2p-full.d.ts +0 -270
package/2p-utils.js
CHANGED
|
@@ -1,102 +1,118 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './kt-math.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kt-math.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to '2p-utils'.");
|
|
9
|
+
}
|
|
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-js-ir'], this['kt-math']);
|
|
14
|
+
}
|
|
15
|
+
}(this, function (_, kotlin_kotlin, kotlin_io_github_gciatto_kt_math) {
|
|
2
16
|
'use strict';
|
|
3
17
|
//region block: imports
|
|
4
18
|
var imul = Math.imul;
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
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
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.s6;
|
|
20
|
+
var objectMeta = kotlin_kotlin.$_$.r6;
|
|
21
|
+
var VOID = kotlin_kotlin.$_$.gc;
|
|
22
|
+
var setMetadataFor = kotlin_kotlin.$_$.t6;
|
|
23
|
+
var Unit_getInstance = kotlin_kotlin.$_$.v1;
|
|
24
|
+
var interfaceMeta = kotlin_kotlin.$_$.c6;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.tb;
|
|
26
|
+
var isInterface = kotlin_kotlin.$_$.g6;
|
|
27
|
+
var classMeta = kotlin_kotlin.$_$.t5;
|
|
28
|
+
var Sequence = kotlin_kotlin.$_$.q7;
|
|
29
|
+
var arrayIterator = kotlin_kotlin.$_$.m5;
|
|
30
|
+
var Comparable = kotlin_kotlin.$_$.hb;
|
|
31
|
+
var sequence = kotlin_kotlin.$_$.v8;
|
|
32
|
+
var hashCode = kotlin_kotlin.$_$.b6;
|
|
33
|
+
var asIterable = kotlin_kotlin.$_$.s7;
|
|
34
|
+
var toList = kotlin_kotlin.$_$.b9;
|
|
35
|
+
var asSequence = kotlin_kotlin.$_$.k2;
|
|
36
|
+
var asIterable_0 = kotlin_kotlin.$_$.f2;
|
|
37
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.n2;
|
|
38
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
39
|
+
var IntCompanionObject_getInstance = kotlin_kotlin.$_$.p1;
|
|
40
|
+
var IntRange = kotlin_kotlin.$_$.h7;
|
|
41
|
+
var zip = kotlin_kotlin.$_$.f9;
|
|
42
|
+
var CoroutineImpl = kotlin_kotlin.$_$.j5;
|
|
43
|
+
var SequenceScope = kotlin_kotlin.$_$.p7;
|
|
44
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i5;
|
|
45
|
+
var withIndex = kotlin_kotlin.$_$.e9;
|
|
46
|
+
var equals = kotlin_kotlin.$_$.w5;
|
|
47
|
+
var ensureNotNull = kotlin_kotlin.$_$.wb;
|
|
48
|
+
var map = kotlin_kotlin.$_$.o8;
|
|
49
|
+
var filterNot = kotlin_kotlin.$_$.b8;
|
|
50
|
+
var toMutableList = kotlin_kotlin.$_$.c9;
|
|
51
|
+
var minWithOrNull = kotlin_kotlin.$_$.p8;
|
|
52
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
53
|
+
var toString = kotlin_kotlin.$_$.x6;
|
|
54
|
+
var Companion_getInstance = kotlin_io_github_gciatto_kt_math.$_$.e;
|
|
55
|
+
var Companion_getInstance_0 = kotlin_io_github_gciatto_kt_math.$_$.d;
|
|
56
|
+
var isObject = kotlin_kotlin.$_$.i6;
|
|
57
|
+
var Map = kotlin_kotlin.$_$.a2;
|
|
58
|
+
var toMutableMap = kotlin_kotlin.$_$.c5;
|
|
59
|
+
var lazy = kotlin_kotlin.$_$.yb;
|
|
44
60
|
var getKClassFromExpression = kotlin_kotlin.$_$.b;
|
|
45
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
46
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
47
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
48
|
-
var Pair = kotlin_kotlin.$_$.
|
|
49
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
50
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
51
|
-
var joinToString
|
|
52
|
-
var mutableListOf = kotlin_kotlin.$_$.
|
|
53
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
54
|
-
var addAll = kotlin_kotlin.$_$.
|
|
61
|
+
var KProperty1 = kotlin_kotlin.$_$.o7;
|
|
62
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.z5;
|
|
63
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
64
|
+
var Pair = kotlin_kotlin.$_$.rb;
|
|
65
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
66
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
67
|
+
var joinToString = kotlin_kotlin.$_$.k8;
|
|
68
|
+
var mutableListOf = kotlin_kotlin.$_$.z3;
|
|
69
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
70
|
+
var addAll = kotlin_kotlin.$_$.c2;
|
|
55
71
|
//endregion
|
|
56
72
|
//region block: pre-declaration
|
|
57
|
-
setMetadataFor(Companion, 'Companion', objectMeta
|
|
73
|
+
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
58
74
|
function getOrSet(key, valueGenerator) {
|
|
59
|
-
var got = this.
|
|
75
|
+
var got = this.f3(key);
|
|
60
76
|
var tmp;
|
|
61
77
|
if (got instanceof Some) {
|
|
62
|
-
tmp = got.
|
|
78
|
+
tmp = got.aq_1;
|
|
63
79
|
} else {
|
|
64
80
|
var tmp$ret$0;
|
|
65
81
|
// Inline function 'kotlin.also' call
|
|
66
82
|
var tmp0_also = valueGenerator();
|
|
67
83
|
// Inline function 'kotlin.contracts.contract' call
|
|
68
84
|
// Inline function 'it.unibo.tuprolog.utils.Cache.getOrSet.<anonymous>' call
|
|
69
|
-
this.
|
|
85
|
+
this.yp(key, tmp0_also);
|
|
70
86
|
tmp$ret$0 = tmp0_also;
|
|
71
87
|
tmp = tmp$ret$0;
|
|
72
88
|
}
|
|
73
89
|
return tmp;
|
|
74
90
|
}
|
|
75
|
-
setMetadataFor(Cache, 'Cache', interfaceMeta
|
|
76
|
-
setMetadataFor(Companion_0, 'Companion', objectMeta
|
|
91
|
+
setMetadataFor(Cache, 'Cache', interfaceMeta);
|
|
92
|
+
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
77
93
|
function ifValid(consumer) {
|
|
78
94
|
var tmp;
|
|
79
|
-
if (this.
|
|
95
|
+
if (this.cq()) {
|
|
80
96
|
var tmp_0 = Companion_getInstance_7();
|
|
81
97
|
var tmp$ret$0;
|
|
82
98
|
// Inline function 'kotlin.let' call
|
|
83
99
|
var tmp0_let = this.b1();
|
|
84
100
|
// Inline function 'kotlin.contracts.contract' call
|
|
85
101
|
tmp$ret$0 = consumer(tmp0_let);
|
|
86
|
-
tmp = tmp_0.
|
|
102
|
+
tmp = tmp_0.gq(tmp$ret$0);
|
|
87
103
|
} else {
|
|
88
|
-
tmp = Companion_getInstance_7().
|
|
104
|
+
tmp = Companion_getInstance_7().fq();
|
|
89
105
|
}
|
|
90
106
|
return tmp;
|
|
91
107
|
}
|
|
92
|
-
setMetadataFor(Cached, 'Cached', interfaceMeta
|
|
108
|
+
setMetadataFor(Cached, 'Cached', interfaceMeta);
|
|
93
109
|
function castTo() {
|
|
94
110
|
return isInterface(this, Castable) ? this : THROW_CCE();
|
|
95
111
|
}
|
|
96
|
-
setMetadataFor(Castable, 'Castable', interfaceMeta
|
|
97
|
-
setMetadataFor(Companion_1, 'Companion', objectMeta
|
|
98
|
-
setMetadataFor(_no_name_provided__qut3iv,
|
|
99
|
-
setMetadataFor(_no_name_provided__qut3iv_0,
|
|
112
|
+
setMetadataFor(Castable, 'Castable', interfaceMeta);
|
|
113
|
+
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
114
|
+
setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta);
|
|
115
|
+
setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, [Sequence]);
|
|
100
116
|
function asIterable_1() {
|
|
101
117
|
var tmp$ret$0;
|
|
102
118
|
// Inline function 'kotlin.collections.Iterable' call
|
|
@@ -109,68 +125,68 @@
|
|
|
109
125
|
tmp$ret$0 = new _no_name_provided__qut3iv_0(this);
|
|
110
126
|
return tmp$ret$0;
|
|
111
127
|
}
|
|
112
|
-
setMetadataFor(Cursor, 'Cursor', interfaceMeta
|
|
128
|
+
setMetadataFor(Cursor, 'Cursor', interfaceMeta);
|
|
113
129
|
function component1() {
|
|
114
|
-
return this.
|
|
130
|
+
return this.pq();
|
|
115
131
|
}
|
|
116
132
|
function component2() {
|
|
117
133
|
return this.b1();
|
|
118
134
|
}
|
|
119
|
-
setMetadataFor(Indexed, 'Indexed', interfaceMeta
|
|
120
|
-
setMetadataFor(Companion_2, 'Companion', objectMeta
|
|
135
|
+
setMetadataFor(Indexed, 'Indexed', interfaceMeta);
|
|
136
|
+
setMetadataFor(Companion_2, 'Companion', objectMeta);
|
|
121
137
|
function compareTo(other) {
|
|
122
|
-
return this.
|
|
123
|
-
}
|
|
124
|
-
setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta,
|
|
125
|
-
setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta
|
|
126
|
-
setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl,
|
|
127
|
-
setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl,
|
|
128
|
-
setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta
|
|
129
|
-
setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl,
|
|
130
|
-
setMetadataFor(Companion_3, 'Companion', objectMeta
|
|
138
|
+
return this.pq() - other.pq() | 0;
|
|
139
|
+
}
|
|
140
|
+
setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta, VOID, [Indexed, Comparable]);
|
|
141
|
+
setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta);
|
|
142
|
+
setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
143
|
+
setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
144
|
+
setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta);
|
|
145
|
+
setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
146
|
+
setMetadataFor(Companion_3, 'Companion', objectMeta);
|
|
131
147
|
function compareTo_0(other) {
|
|
132
|
-
return this.
|
|
133
|
-
}
|
|
134
|
-
setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta,
|
|
135
|
-
setMetadataFor(Companion_4, 'Companion', objectMeta
|
|
136
|
-
setMetadataFor(NumberTypeTester, 'NumberTypeTester', classMeta
|
|
137
|
-
setMetadataFor(Companion_5, 'Companion', objectMeta
|
|
138
|
-
setMetadataFor(Optional, 'Optional', classMeta
|
|
139
|
-
setMetadataFor(Some, 'Some', classMeta, Optional
|
|
140
|
-
setMetadataFor(None, 'None', objectMeta, Optional
|
|
148
|
+
return this.pq().ch(other.pq()).h1();
|
|
149
|
+
}
|
|
150
|
+
setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta, VOID, [Indexed, Comparable]);
|
|
151
|
+
setMetadataFor(Companion_4, 'Companion', objectMeta);
|
|
152
|
+
setMetadataFor(NumberTypeTester, 'NumberTypeTester', classMeta);
|
|
153
|
+
setMetadataFor(Companion_5, 'Companion', objectMeta);
|
|
154
|
+
setMetadataFor(Optional, 'Optional', classMeta);
|
|
155
|
+
setMetadataFor(Some, 'Some', classMeta, Optional);
|
|
156
|
+
setMetadataFor(None, 'None', objectMeta, Optional);
|
|
141
157
|
function getTag(name) {
|
|
142
|
-
var tmp = this.
|
|
158
|
+
var tmp = this.bt().f3(name);
|
|
143
159
|
return (tmp == null ? true : isObject(tmp)) ? tmp : THROW_CCE();
|
|
144
160
|
}
|
|
145
161
|
function containsTag(name) {
|
|
146
162
|
var tmp$ret$1;
|
|
147
163
|
// Inline function 'kotlin.collections.contains' call
|
|
148
|
-
var tmp0_contains = this.
|
|
164
|
+
var tmp0_contains = this.bt();
|
|
149
165
|
var tmp$ret$0;
|
|
150
166
|
// Inline function 'kotlin.collections.containsKey' call
|
|
151
|
-
tmp$ret$0 = (isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).
|
|
167
|
+
tmp$ret$0 = (isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).z2(name);
|
|
152
168
|
tmp$ret$1 = tmp$ret$0;
|
|
153
169
|
return tmp$ret$1;
|
|
154
170
|
}
|
|
155
|
-
setMetadataFor(Taggable, 'Taggable', interfaceMeta
|
|
156
|
-
setMetadataFor(Companion_6, 'Companion', objectMeta
|
|
157
|
-
setMetadataFor(AbstractCursor$iterator$1,
|
|
158
|
-
setMetadataFor(AbstractCursor, 'AbstractCursor', classMeta,
|
|
159
|
-
setMetadataFor(CachedImpl, 'CachedImpl', classMeta,
|
|
160
|
-
setMetadataFor(ConjunctionCursor, 'ConjunctionCursor', classMeta, AbstractCursor
|
|
161
|
-
setMetadataFor(EmptyCursor, 'EmptyCursor', objectMeta, AbstractCursor
|
|
162
|
-
setMetadataFor(IntIndexedImpl, 'IntIndexedImpl', classMeta,
|
|
163
|
-
setMetadataFor(LazyCursor, 'LazyCursor', classMeta, AbstractCursor
|
|
164
|
-
setMetadataFor(LongIndexedImpl, 'LongIndexedImpl', classMeta,
|
|
165
|
-
setMetadataFor(MapperCursor, 'MapperCursor', classMeta, AbstractCursor
|
|
166
|
-
setMetadataFor(NonLastCursor, 'NonLastCursor', classMeta, AbstractCursor
|
|
167
|
-
setMetadataFor(SimpleLRUCache, 'SimpleLRUCache', classMeta,
|
|
168
|
-
setMetadataFor(ValueCursor, 'ValueCursor', classMeta, AbstractCursor
|
|
171
|
+
setMetadataFor(Taggable, 'Taggable', interfaceMeta);
|
|
172
|
+
setMetadataFor(Companion_6, 'Companion', objectMeta);
|
|
173
|
+
setMetadataFor(AbstractCursor$iterator$1, VOID, classMeta);
|
|
174
|
+
setMetadataFor(AbstractCursor, 'AbstractCursor', classMeta, VOID, [Cursor]);
|
|
175
|
+
setMetadataFor(CachedImpl, 'CachedImpl', classMeta, VOID, [Cached]);
|
|
176
|
+
setMetadataFor(ConjunctionCursor, 'ConjunctionCursor', classMeta, AbstractCursor);
|
|
177
|
+
setMetadataFor(EmptyCursor, 'EmptyCursor', objectMeta, AbstractCursor);
|
|
178
|
+
setMetadataFor(IntIndexedImpl, 'IntIndexedImpl', classMeta, VOID, [IntIndexed]);
|
|
179
|
+
setMetadataFor(LazyCursor, 'LazyCursor', classMeta, AbstractCursor);
|
|
180
|
+
setMetadataFor(LongIndexedImpl, 'LongIndexedImpl', classMeta, VOID, [LongIndexed]);
|
|
181
|
+
setMetadataFor(MapperCursor, 'MapperCursor', classMeta, AbstractCursor);
|
|
182
|
+
setMetadataFor(NonLastCursor, 'NonLastCursor', classMeta, AbstractCursor);
|
|
183
|
+
setMetadataFor(SimpleLRUCache, 'SimpleLRUCache', classMeta, VOID, [Cache]);
|
|
184
|
+
setMetadataFor(ValueCursor, 'ValueCursor', classMeta, AbstractCursor);
|
|
169
185
|
//endregion
|
|
170
186
|
function Companion() {
|
|
171
187
|
Companion_instance = this;
|
|
172
188
|
}
|
|
173
|
-
Companion.
|
|
189
|
+
protoOf(Companion).xp = function (capacity) {
|
|
174
190
|
return new SimpleLRUCache(capacity);
|
|
175
191
|
};
|
|
176
192
|
var Companion_instance;
|
|
@@ -184,7 +200,7 @@
|
|
|
184
200
|
function Companion_0() {
|
|
185
201
|
Companion_instance_0 = this;
|
|
186
202
|
}
|
|
187
|
-
Companion_0.
|
|
203
|
+
protoOf(Companion_0).bq = function (generator) {
|
|
188
204
|
return new CachedImpl(generator);
|
|
189
205
|
};
|
|
190
206
|
var Companion_instance_0;
|
|
@@ -200,13 +216,13 @@
|
|
|
200
216
|
function Companion_1() {
|
|
201
217
|
Companion_instance_1 = this;
|
|
202
218
|
}
|
|
203
|
-
Companion_1.
|
|
219
|
+
protoOf(Companion_1).of = function (iterator) {
|
|
204
220
|
return toCursor(iterator);
|
|
205
221
|
};
|
|
206
|
-
Companion_1.
|
|
222
|
+
protoOf(Companion_1).ofSequence = function (sequence) {
|
|
207
223
|
return cursor_0(sequence);
|
|
208
224
|
};
|
|
209
|
-
Companion_1.
|
|
225
|
+
protoOf(Companion_1).empty = function () {
|
|
210
226
|
return EmptyCursor_getInstance();
|
|
211
227
|
};
|
|
212
228
|
var Companion_instance_1;
|
|
@@ -216,21 +232,21 @@
|
|
|
216
232
|
return Companion_instance_1;
|
|
217
233
|
}
|
|
218
234
|
function _no_name_provided__qut3iv(this$0) {
|
|
219
|
-
this.
|
|
235
|
+
this.iq_1 = this$0;
|
|
220
236
|
}
|
|
221
|
-
_no_name_provided__qut3iv.
|
|
237
|
+
protoOf(_no_name_provided__qut3iv).j = function () {
|
|
222
238
|
var tmp$ret$0;
|
|
223
239
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asIterable.<anonymous>' call
|
|
224
|
-
tmp$ret$0 = this.
|
|
240
|
+
tmp$ret$0 = this.iq_1.iterator();
|
|
225
241
|
return tmp$ret$0;
|
|
226
242
|
};
|
|
227
243
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
228
|
-
this.
|
|
244
|
+
this.jq_1 = this$0;
|
|
229
245
|
}
|
|
230
|
-
_no_name_provided__qut3iv_0.
|
|
246
|
+
protoOf(_no_name_provided__qut3iv_0).j = function () {
|
|
231
247
|
var tmp$ret$0;
|
|
232
248
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asSequence.<anonymous>' call
|
|
233
|
-
tmp$ret$0 = this.
|
|
249
|
+
tmp$ret$0 = this.jq_1.iterator();
|
|
234
250
|
return tmp$ret$0;
|
|
235
251
|
};
|
|
236
252
|
function Cursor() {
|
|
@@ -245,17 +261,17 @@
|
|
|
245
261
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
246
262
|
}
|
|
247
263
|
function plus(_this__u8e3s4, other) {
|
|
248
|
-
return other.
|
|
264
|
+
return other.mq() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.mq() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
249
265
|
}
|
|
250
266
|
function toCursor(_this__u8e3s4) {
|
|
251
|
-
return Companion_getInstance_8().
|
|
267
|
+
return Companion_getInstance_8().oq(_this__u8e3s4);
|
|
252
268
|
}
|
|
253
269
|
function Indexed() {
|
|
254
270
|
}
|
|
255
271
|
function Companion_2() {
|
|
256
272
|
Companion_instance_2 = this;
|
|
257
273
|
}
|
|
258
|
-
Companion_2.
|
|
274
|
+
protoOf(Companion_2).qq = function (index, value) {
|
|
259
275
|
return new IntIndexedImpl(index, value);
|
|
260
276
|
};
|
|
261
277
|
var Companion_instance_2;
|
|
@@ -340,187 +356,189 @@
|
|
|
340
356
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
341
357
|
}
|
|
342
358
|
function sam$kotlin_Comparator$0(function_0) {
|
|
343
|
-
this.
|
|
359
|
+
this.sq_1 = function_0;
|
|
344
360
|
}
|
|
345
|
-
sam$kotlin_Comparator$0.
|
|
346
|
-
return this.
|
|
361
|
+
protoOf(sam$kotlin_Comparator$0).eg = function (a, b) {
|
|
362
|
+
return this.sq_1(a, b);
|
|
347
363
|
};
|
|
348
|
-
sam$kotlin_Comparator$0.
|
|
349
|
-
return this.
|
|
364
|
+
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
365
|
+
return this.eg(a, b);
|
|
350
366
|
};
|
|
351
367
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
352
|
-
this.
|
|
368
|
+
this.br_1 = $this_dropLast;
|
|
353
369
|
CoroutineImpl.call(this, resultContinuation);
|
|
354
370
|
}
|
|
355
|
-
dropLast$slambda.
|
|
356
|
-
var tmp = this.
|
|
357
|
-
tmp.
|
|
358
|
-
tmp.
|
|
359
|
-
return tmp.
|
|
371
|
+
protoOf(dropLast$slambda).fr = function ($this$sequence, $completion) {
|
|
372
|
+
var tmp = this.gr($this$sequence, $completion);
|
|
373
|
+
tmp.ci_1 = Unit_getInstance();
|
|
374
|
+
tmp.di_1 = null;
|
|
375
|
+
return tmp.ii();
|
|
360
376
|
};
|
|
361
|
-
dropLast$slambda.
|
|
362
|
-
return this.
|
|
377
|
+
protoOf(dropLast$slambda).ui = function (p1, $completion) {
|
|
378
|
+
return this.fr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
363
379
|
};
|
|
364
|
-
dropLast$slambda.
|
|
365
|
-
var suspendResult = this.
|
|
380
|
+
protoOf(dropLast$slambda).ii = function () {
|
|
381
|
+
var suspendResult = this.ci_1;
|
|
366
382
|
$sm: do
|
|
367
383
|
try {
|
|
368
|
-
var tmp = this.
|
|
384
|
+
var tmp = this.ai_1;
|
|
369
385
|
switch (tmp) {
|
|
370
386
|
case 0:
|
|
371
|
-
this.
|
|
372
|
-
this.
|
|
373
|
-
this.
|
|
387
|
+
this.bi_1 = 5;
|
|
388
|
+
this.dr_1 = this.br_1.j();
|
|
389
|
+
this.ai_1 = 1;
|
|
374
390
|
continue $sm;
|
|
375
391
|
case 1:
|
|
376
|
-
if (!this.
|
|
377
|
-
this.
|
|
392
|
+
if (!this.dr_1.m()) {
|
|
393
|
+
this.ai_1 = 4;
|
|
378
394
|
continue $sm;
|
|
379
395
|
}
|
|
380
396
|
|
|
381
|
-
this.
|
|
382
|
-
if (this.
|
|
383
|
-
this.
|
|
384
|
-
suspendResult = this.
|
|
397
|
+
this.er_1 = this.dr_1.n();
|
|
398
|
+
if (this.dr_1.m()) {
|
|
399
|
+
this.ai_1 = 2;
|
|
400
|
+
suspendResult = this.cr_1.d5(this.er_1, this);
|
|
385
401
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
386
402
|
return suspendResult;
|
|
387
403
|
}
|
|
388
404
|
continue $sm;
|
|
389
405
|
} else {
|
|
390
|
-
this.
|
|
406
|
+
this.ai_1 = 3;
|
|
391
407
|
continue $sm;
|
|
392
408
|
}
|
|
393
409
|
|
|
394
410
|
break;
|
|
395
411
|
case 2:
|
|
396
|
-
this.
|
|
412
|
+
this.ai_1 = 3;
|
|
397
413
|
continue $sm;
|
|
398
414
|
case 3:
|
|
399
|
-
this.
|
|
415
|
+
this.ai_1 = 1;
|
|
400
416
|
continue $sm;
|
|
401
417
|
case 4:
|
|
402
418
|
return Unit_getInstance();
|
|
403
419
|
case 5:
|
|
404
|
-
throw this.
|
|
420
|
+
throw this.di_1;
|
|
405
421
|
}
|
|
406
422
|
} catch ($p) {
|
|
407
|
-
|
|
408
|
-
|
|
423
|
+
var e = $p;
|
|
424
|
+
if (this.bi_1 === 5) {
|
|
425
|
+
throw e;
|
|
409
426
|
} else {
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
427
|
+
this.ai_1 = this.bi_1;
|
|
428
|
+
this.di_1 = e;
|
|
412
429
|
}
|
|
413
430
|
}
|
|
414
431
|
while (true);
|
|
415
432
|
};
|
|
416
|
-
dropLast$slambda.
|
|
417
|
-
var i = new dropLast$slambda(this.
|
|
418
|
-
i.
|
|
433
|
+
protoOf(dropLast$slambda).gr = function ($this$sequence, completion) {
|
|
434
|
+
var i = new dropLast$slambda(this.br_1, completion);
|
|
435
|
+
i.cr_1 = $this$sequence;
|
|
419
436
|
return i;
|
|
420
437
|
};
|
|
421
438
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
422
439
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
423
|
-
var l = function ($this$sequence, $
|
|
424
|
-
return i.
|
|
440
|
+
var l = function ($this$sequence, $completion) {
|
|
441
|
+
return i.fr($this$sequence, $completion);
|
|
425
442
|
};
|
|
426
443
|
l.$arity = 1;
|
|
427
444
|
return l;
|
|
428
445
|
}
|
|
429
446
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
447
|
+
this.qr_1 = $this_insertAt;
|
|
448
|
+
this.rr_1 = $index;
|
|
449
|
+
this.sr_1 = $item;
|
|
450
|
+
this.tr_1 = $items;
|
|
434
451
|
CoroutineImpl.call(this, resultContinuation);
|
|
435
452
|
}
|
|
436
|
-
insertAt$slambda.
|
|
437
|
-
var tmp = this.
|
|
438
|
-
tmp.
|
|
439
|
-
tmp.
|
|
440
|
-
return tmp.
|
|
453
|
+
protoOf(insertAt$slambda).fr = function ($this$sequence, $completion) {
|
|
454
|
+
var tmp = this.gr($this$sequence, $completion);
|
|
455
|
+
tmp.ci_1 = Unit_getInstance();
|
|
456
|
+
tmp.di_1 = null;
|
|
457
|
+
return tmp.ii();
|
|
441
458
|
};
|
|
442
|
-
insertAt$slambda.
|
|
443
|
-
return this.
|
|
459
|
+
protoOf(insertAt$slambda).ui = function (p1, $completion) {
|
|
460
|
+
return this.fr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
444
461
|
};
|
|
445
|
-
insertAt$slambda.
|
|
446
|
-
var suspendResult = this.
|
|
462
|
+
protoOf(insertAt$slambda).ii = function () {
|
|
463
|
+
var suspendResult = this.ci_1;
|
|
447
464
|
$sm: do
|
|
448
465
|
try {
|
|
449
|
-
var tmp = this.
|
|
466
|
+
var tmp = this.ai_1;
|
|
450
467
|
switch (tmp) {
|
|
451
468
|
case 0:
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
469
|
+
this.bi_1 = 7;
|
|
470
|
+
this.vr_1 = asIterable(withIndex(this.qr_1)).j();
|
|
471
|
+
this.ai_1 = 1;
|
|
455
472
|
continue $sm;
|
|
456
473
|
case 1:
|
|
457
|
-
if (!this.
|
|
458
|
-
this.
|
|
474
|
+
if (!this.vr_1.m()) {
|
|
475
|
+
this.ai_1 = 6;
|
|
459
476
|
continue $sm;
|
|
460
477
|
}
|
|
461
478
|
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
464
|
-
this.
|
|
465
|
-
if (this.
|
|
466
|
-
this.
|
|
467
|
-
suspendResult = this.
|
|
479
|
+
this.wr_1 = this.vr_1.n();
|
|
480
|
+
this.xr_1 = this.wr_1.r3();
|
|
481
|
+
this.yr_1 = this.wr_1.s3();
|
|
482
|
+
if (this.xr_1 === this.rr_1) {
|
|
483
|
+
this.ai_1 = 2;
|
|
484
|
+
suspendResult = this.ur_1.d5(this.sr_1, this);
|
|
468
485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
486
|
return suspendResult;
|
|
470
487
|
}
|
|
471
488
|
continue $sm;
|
|
472
489
|
} else {
|
|
473
|
-
this.
|
|
490
|
+
this.ai_1 = 4;
|
|
474
491
|
continue $sm;
|
|
475
492
|
}
|
|
476
493
|
|
|
477
494
|
break;
|
|
478
495
|
case 2:
|
|
479
|
-
this.
|
|
480
|
-
suspendResult = this.
|
|
496
|
+
this.ai_1 = 3;
|
|
497
|
+
suspendResult = this.ur_1.f5(asIterable_0(this.tr_1), this);
|
|
481
498
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
482
499
|
return suspendResult;
|
|
483
500
|
}
|
|
484
501
|
|
|
485
502
|
continue $sm;
|
|
486
503
|
case 3:
|
|
487
|
-
this.
|
|
504
|
+
this.ai_1 = 4;
|
|
488
505
|
continue $sm;
|
|
489
506
|
case 4:
|
|
490
|
-
this.
|
|
491
|
-
suspendResult = this.
|
|
507
|
+
this.ai_1 = 5;
|
|
508
|
+
suspendResult = this.ur_1.d5(this.yr_1, this);
|
|
492
509
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
493
510
|
return suspendResult;
|
|
494
511
|
}
|
|
495
512
|
|
|
496
513
|
continue $sm;
|
|
497
514
|
case 5:
|
|
498
|
-
this.
|
|
515
|
+
this.ai_1 = 1;
|
|
499
516
|
continue $sm;
|
|
500
517
|
case 6:
|
|
501
518
|
return Unit_getInstance();
|
|
502
519
|
case 7:
|
|
503
|
-
throw this.
|
|
520
|
+
throw this.di_1;
|
|
504
521
|
}
|
|
505
522
|
} catch ($p) {
|
|
506
|
-
|
|
507
|
-
|
|
523
|
+
var e = $p;
|
|
524
|
+
if (this.bi_1 === 7) {
|
|
525
|
+
throw e;
|
|
508
526
|
} else {
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
527
|
+
this.ai_1 = this.bi_1;
|
|
528
|
+
this.di_1 = e;
|
|
511
529
|
}
|
|
512
530
|
}
|
|
513
531
|
while (true);
|
|
514
532
|
};
|
|
515
|
-
insertAt$slambda.
|
|
516
|
-
var i = new insertAt$slambda(this.
|
|
517
|
-
i.
|
|
533
|
+
protoOf(insertAt$slambda).gr = function ($this$sequence, completion) {
|
|
534
|
+
var i = new insertAt$slambda(this.qr_1, this.rr_1, this.sr_1, this.tr_1, completion);
|
|
535
|
+
i.ur_1 = $this$sequence;
|
|
518
536
|
return i;
|
|
519
537
|
};
|
|
520
538
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
521
539
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
522
|
-
var l = function ($this$sequence, $
|
|
523
|
-
return i.
|
|
540
|
+
var l = function ($this$sequence, $completion) {
|
|
541
|
+
return i.fr($this$sequence, $completion);
|
|
524
542
|
};
|
|
525
543
|
l.$arity = 1;
|
|
526
544
|
return l;
|
|
@@ -529,22 +547,22 @@
|
|
|
529
547
|
return equals(a, b);
|
|
530
548
|
}
|
|
531
549
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
532
|
-
this.
|
|
550
|
+
this.zr_1 = function_0;
|
|
533
551
|
}
|
|
534
|
-
sam$kotlin_Comparator$0_0.
|
|
535
|
-
return this.
|
|
552
|
+
protoOf(sam$kotlin_Comparator$0_0).eg = function (a, b) {
|
|
553
|
+
return this.zr_1(a, b);
|
|
536
554
|
};
|
|
537
|
-
sam$kotlin_Comparator$0_0.
|
|
538
|
-
return this.
|
|
555
|
+
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
556
|
+
return this.eg(a, b);
|
|
539
557
|
};
|
|
540
558
|
function merge$slambda$lambda(it) {
|
|
541
559
|
return cursor(it);
|
|
542
560
|
}
|
|
543
561
|
function merge$slambda$lambda_0(it) {
|
|
544
|
-
return it.
|
|
562
|
+
return it.nq();
|
|
545
563
|
}
|
|
546
564
|
function merge$slambda$lambda_1(it) {
|
|
547
|
-
return ensureNotNull(it.
|
|
565
|
+
return ensureNotNull(it.lq());
|
|
548
566
|
}
|
|
549
567
|
function merge$slambda$lambda_2($comparator) {
|
|
550
568
|
return function (a, b) {
|
|
@@ -552,99 +570,100 @@
|
|
|
552
570
|
};
|
|
553
571
|
}
|
|
554
572
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
573
|
+
this.is_1 = $iterables;
|
|
574
|
+
this.js_1 = $comparator;
|
|
557
575
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
576
|
}
|
|
559
|
-
merge$slambda.
|
|
560
|
-
var tmp = this.
|
|
561
|
-
tmp.
|
|
562
|
-
tmp.
|
|
563
|
-
return tmp.
|
|
577
|
+
protoOf(merge$slambda).fr = function ($this$sequence, $completion) {
|
|
578
|
+
var tmp = this.gr($this$sequence, $completion);
|
|
579
|
+
tmp.ci_1 = Unit_getInstance();
|
|
580
|
+
tmp.di_1 = null;
|
|
581
|
+
return tmp.ii();
|
|
564
582
|
};
|
|
565
|
-
merge$slambda.
|
|
566
|
-
return this.
|
|
583
|
+
protoOf(merge$slambda).ui = function (p1, $completion) {
|
|
584
|
+
return this.fr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
567
585
|
};
|
|
568
|
-
merge$slambda.
|
|
569
|
-
var suspendResult = this.
|
|
586
|
+
protoOf(merge$slambda).ii = function () {
|
|
587
|
+
var suspendResult = this.ci_1;
|
|
570
588
|
$sm: do
|
|
571
589
|
try {
|
|
572
|
-
var tmp = this.
|
|
590
|
+
var tmp = this.ai_1;
|
|
573
591
|
switch (tmp) {
|
|
574
592
|
case 0:
|
|
575
|
-
this.
|
|
593
|
+
this.bi_1 = 3;
|
|
576
594
|
var tmp_0 = this;
|
|
577
|
-
var tmp_1 = asSequence(this.
|
|
595
|
+
var tmp_1 = asSequence(this.is_1);
|
|
578
596
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
579
|
-
tmp_0.
|
|
580
|
-
this.
|
|
597
|
+
tmp_0.ls_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
598
|
+
this.ai_1 = 1;
|
|
581
599
|
continue $sm;
|
|
582
600
|
case 1:
|
|
583
|
-
if (!!this.
|
|
584
|
-
this.
|
|
601
|
+
if (!!this.ls_1.d()) {
|
|
602
|
+
this.ai_1 = 4;
|
|
585
603
|
continue $sm;
|
|
586
604
|
}
|
|
587
605
|
|
|
588
606
|
var tmp_3 = this;
|
|
589
|
-
var tmp_4 = asSequence(this.
|
|
607
|
+
var tmp_4 = asSequence(this.ls_1);
|
|
590
608
|
var tmp_5 = indexed(map(tmp_4, merge$slambda$lambda_1));
|
|
591
|
-
var tmp_6 = merge$slambda$lambda_2(this.
|
|
592
|
-
tmp_3.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
suspendResult = this.
|
|
609
|
+
var tmp_6 = merge$slambda$lambda_2(this.js_1);
|
|
610
|
+
tmp_3.ms_1 = ensureNotNull(minWithOrNull(tmp_5, new sam$kotlin_Comparator$0_0(tmp_6)));
|
|
611
|
+
this.ns_1 = this.ms_1.r3();
|
|
612
|
+
this.os_1 = this.ms_1.s3();
|
|
613
|
+
this.ai_1 = 2;
|
|
614
|
+
suspendResult = this.ks_1.d5(this.os_1, this);
|
|
597
615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
598
616
|
return suspendResult;
|
|
599
617
|
}
|
|
600
618
|
|
|
601
619
|
continue $sm;
|
|
602
620
|
case 2:
|
|
603
|
-
var tmp0_let = this.
|
|
604
|
-
if (tmp0_let.
|
|
605
|
-
this.
|
|
621
|
+
var tmp0_let = this.ls_1.o(this.ns_1).kq();
|
|
622
|
+
if (tmp0_let.nq()) {
|
|
623
|
+
this.ls_1.x4(this.ns_1);
|
|
606
624
|
} else {
|
|
607
|
-
this.
|
|
625
|
+
this.ls_1.w4(this.ns_1, tmp0_let);
|
|
608
626
|
}
|
|
609
627
|
|
|
610
628
|
;
|
|
611
|
-
this.
|
|
629
|
+
this.ai_1 = 1;
|
|
612
630
|
continue $sm;
|
|
613
631
|
case 3:
|
|
614
|
-
throw this.
|
|
632
|
+
throw this.di_1;
|
|
615
633
|
case 4:
|
|
616
634
|
return Unit_getInstance();
|
|
617
635
|
}
|
|
618
636
|
} catch ($p) {
|
|
619
|
-
|
|
620
|
-
|
|
637
|
+
var e = $p;
|
|
638
|
+
if (this.bi_1 === 3) {
|
|
639
|
+
throw e;
|
|
621
640
|
} else {
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
641
|
+
this.ai_1 = this.bi_1;
|
|
642
|
+
this.di_1 = e;
|
|
624
643
|
}
|
|
625
644
|
}
|
|
626
645
|
while (true);
|
|
627
646
|
};
|
|
628
|
-
merge$slambda.
|
|
629
|
-
var i = new merge$slambda(this.
|
|
630
|
-
i.
|
|
647
|
+
protoOf(merge$slambda).gr = function ($this$sequence, completion) {
|
|
648
|
+
var i = new merge$slambda(this.is_1, this.js_1, completion);
|
|
649
|
+
i.ks_1 = $this$sequence;
|
|
631
650
|
return i;
|
|
632
651
|
};
|
|
633
652
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
634
653
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
635
|
-
var l = function ($this$sequence, $
|
|
636
|
-
return i.
|
|
654
|
+
var l = function ($this$sequence, $completion) {
|
|
655
|
+
return i.fr($this$sequence, $completion);
|
|
637
656
|
};
|
|
638
657
|
l.$arity = 1;
|
|
639
658
|
return l;
|
|
640
659
|
}
|
|
641
660
|
function indexed$lambda(it, i) {
|
|
642
|
-
return Companion_getInstance_4().
|
|
661
|
+
return Companion_getInstance_4().qq(i, it);
|
|
643
662
|
}
|
|
644
663
|
function Companion_3() {
|
|
645
664
|
Companion_instance_3 = this;
|
|
646
665
|
}
|
|
647
|
-
Companion_3.
|
|
666
|
+
protoOf(Companion_3).ps = function (index, value) {
|
|
648
667
|
return new LongIndexedImpl(index, value);
|
|
649
668
|
};
|
|
650
669
|
var Companion_instance_3;
|
|
@@ -661,7 +680,7 @@
|
|
|
661
680
|
var tmp$ret$0;
|
|
662
681
|
// Inline function 'kotlin.text.toRegex' call
|
|
663
682
|
tmp$ret$0 = Regex_init_$Create$('[0-9]+');
|
|
664
|
-
tmp.
|
|
683
|
+
tmp.rs_1 = tmp$ret$0;
|
|
665
684
|
}
|
|
666
685
|
var Companion_instance_4;
|
|
667
686
|
function Companion_getInstance_6() {
|
|
@@ -670,7 +689,7 @@
|
|
|
670
689
|
return Companion_instance_4;
|
|
671
690
|
}
|
|
672
691
|
function _get_stringRepresentation__xuqjt9(_this__u8e3s4, $this) {
|
|
673
|
-
return $this.
|
|
692
|
+
return $this.ss_1.zp(_this__u8e3s4, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg(_this__u8e3s4));
|
|
674
693
|
}
|
|
675
694
|
function NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($this_stringRepresentation) {
|
|
676
695
|
return function () {
|
|
@@ -679,35 +698,33 @@
|
|
|
679
698
|
}
|
|
680
699
|
function NumberTypeTester() {
|
|
681
700
|
Companion_getInstance_6();
|
|
682
|
-
this.
|
|
701
|
+
this.ss_1 = Companion_getInstance_1().xp(8);
|
|
683
702
|
}
|
|
684
|
-
NumberTypeTester.
|
|
685
|
-
return Companion_getInstance_6().
|
|
703
|
+
protoOf(NumberTypeTester).ts = function (_this__u8e3s4) {
|
|
704
|
+
return Companion_getInstance_6().rs_1.gf(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
686
705
|
};
|
|
687
|
-
NumberTypeTester.
|
|
706
|
+
protoOf(NumberTypeTester).us = function (_this__u8e3s4) {
|
|
688
707
|
return Companion_getInstance().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
689
708
|
};
|
|
690
|
-
NumberTypeTester.
|
|
691
|
-
|
|
692
|
-
var tmp_0 = _get_stringRepresentation__xuqjt9(_this__u8e3s4, this);
|
|
693
|
-
return tmp.pj(tmp_0, null, 2, null);
|
|
709
|
+
protoOf(NumberTypeTester).vs = function (_this__u8e3s4) {
|
|
710
|
+
return Companion_getInstance_0().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
694
711
|
};
|
|
695
712
|
function Companion_5() {
|
|
696
713
|
Companion_instance_5 = this;
|
|
697
714
|
}
|
|
698
|
-
Companion_5.
|
|
715
|
+
protoOf(Companion_5).ws = function (value) {
|
|
699
716
|
return new Some(value);
|
|
700
717
|
};
|
|
701
|
-
Companion_5.
|
|
718
|
+
protoOf(Companion_5).gq = function (value) {
|
|
702
719
|
var tmp;
|
|
703
720
|
if (value == null) {
|
|
704
|
-
tmp = this.
|
|
721
|
+
tmp = this.fq();
|
|
705
722
|
} else {
|
|
706
|
-
tmp = this.
|
|
723
|
+
tmp = this.ws(value);
|
|
707
724
|
}
|
|
708
725
|
return tmp;
|
|
709
726
|
};
|
|
710
|
-
Companion_5.
|
|
727
|
+
protoOf(Companion_5).fq = function () {
|
|
711
728
|
return None_getInstance();
|
|
712
729
|
};
|
|
713
730
|
var Companion_instance_5;
|
|
@@ -718,30 +735,30 @@
|
|
|
718
735
|
}
|
|
719
736
|
function Some(value) {
|
|
720
737
|
Optional.call(this);
|
|
721
|
-
this.
|
|
738
|
+
this.aq_1 = value;
|
|
722
739
|
}
|
|
723
|
-
Some.
|
|
724
|
-
return this.
|
|
740
|
+
protoOf(Some).b1 = function () {
|
|
741
|
+
return this.aq_1;
|
|
725
742
|
};
|
|
726
|
-
Some.
|
|
743
|
+
protoOf(Some).xs = function () {
|
|
727
744
|
return true;
|
|
728
745
|
};
|
|
729
|
-
Some.
|
|
730
|
-
return new Some(function_0(this.
|
|
746
|
+
protoOf(Some).ys = function (function_0) {
|
|
747
|
+
return new Some(function_0(this.aq_1));
|
|
731
748
|
};
|
|
732
|
-
Some.
|
|
733
|
-
return 'Some(' + this.
|
|
749
|
+
protoOf(Some).toString = function () {
|
|
750
|
+
return 'Some(' + this.aq_1 + ')';
|
|
734
751
|
};
|
|
735
|
-
Some.
|
|
736
|
-
return this.
|
|
752
|
+
protoOf(Some).hashCode = function () {
|
|
753
|
+
return this.aq_1 == null ? 0 : hashCode(this.aq_1);
|
|
737
754
|
};
|
|
738
|
-
Some.
|
|
755
|
+
protoOf(Some).equals = function (other) {
|
|
739
756
|
if (this === other)
|
|
740
757
|
return true;
|
|
741
758
|
if (!(other instanceof Some))
|
|
742
759
|
return false;
|
|
743
760
|
var tmp0_other_with_cast = other instanceof Some ? other : THROW_CCE();
|
|
744
|
-
if (!equals(this.
|
|
761
|
+
if (!equals(this.aq_1, tmp0_other_with_cast.aq_1))
|
|
745
762
|
return false;
|
|
746
763
|
return true;
|
|
747
764
|
};
|
|
@@ -749,19 +766,19 @@
|
|
|
749
766
|
None_instance = this;
|
|
750
767
|
Optional.call(this);
|
|
751
768
|
}
|
|
752
|
-
None.
|
|
769
|
+
protoOf(None).b1 = function () {
|
|
753
770
|
return null;
|
|
754
771
|
};
|
|
755
|
-
None.
|
|
772
|
+
protoOf(None).xs = function () {
|
|
756
773
|
return false;
|
|
757
774
|
};
|
|
758
|
-
None.
|
|
775
|
+
protoOf(None).at = function (function_0) {
|
|
759
776
|
return None_getInstance();
|
|
760
777
|
};
|
|
761
|
-
None.
|
|
762
|
-
return this.
|
|
778
|
+
protoOf(None).ys = function (function_0) {
|
|
779
|
+
return this.at(function_0);
|
|
763
780
|
};
|
|
764
|
-
None.
|
|
781
|
+
protoOf(None).toString = function () {
|
|
765
782
|
return 'None';
|
|
766
783
|
};
|
|
767
784
|
var None_instance;
|
|
@@ -773,8 +790,8 @@
|
|
|
773
790
|
function Optional() {
|
|
774
791
|
Companion_getInstance_7();
|
|
775
792
|
}
|
|
776
|
-
Optional.
|
|
777
|
-
return !this.
|
|
793
|
+
protoOf(Optional).zs = function () {
|
|
794
|
+
return !this.xs();
|
|
778
795
|
};
|
|
779
796
|
function Taggable() {
|
|
780
797
|
}
|
|
@@ -785,18 +802,21 @@
|
|
|
785
802
|
function setTag(_this__u8e3s4, key, value) {
|
|
786
803
|
var tmp$ret$0;
|
|
787
804
|
// Inline function 'kotlin.also' call
|
|
788
|
-
var tmp0_also = toMutableMap(_this__u8e3s4.
|
|
805
|
+
var tmp0_also = toMutableMap(_this__u8e3s4.bt());
|
|
789
806
|
// Inline function 'kotlin.contracts.contract' call
|
|
790
807
|
// Inline function 'it.unibo.tuprolog.utils.setTag.<anonymous>' call
|
|
791
808
|
// Inline function 'kotlin.collections.set' call
|
|
792
|
-
tmp0_also.
|
|
809
|
+
tmp0_also.a4(key, value);
|
|
793
810
|
tmp$ret$0 = tmp0_also;
|
|
794
811
|
return setTags(_this__u8e3s4, tmp$ret$0);
|
|
795
812
|
}
|
|
813
|
+
function synchronizedOnSelf(_this__u8e3s4, action) {
|
|
814
|
+
return synchronizedOn(_this__u8e3s4, action);
|
|
815
|
+
}
|
|
796
816
|
function Companion_6() {
|
|
797
817
|
Companion_instance_6 = this;
|
|
798
818
|
}
|
|
799
|
-
Companion_6.
|
|
819
|
+
protoOf(Companion_6).oq = function (source) {
|
|
800
820
|
var tmp;
|
|
801
821
|
if (source.m()) {
|
|
802
822
|
tmp = new LazyCursor(source);
|
|
@@ -812,104 +832,104 @@
|
|
|
812
832
|
return Companion_instance_6;
|
|
813
833
|
}
|
|
814
834
|
function AbstractCursor$iterator$1(this$0) {
|
|
815
|
-
this.
|
|
835
|
+
this.ct_1 = this$0;
|
|
816
836
|
}
|
|
817
|
-
AbstractCursor$iterator$1.
|
|
818
|
-
return !this.
|
|
837
|
+
protoOf(AbstractCursor$iterator$1).m = function () {
|
|
838
|
+
return !this.ct_1.nq();
|
|
819
839
|
};
|
|
820
|
-
AbstractCursor$iterator$1.
|
|
821
|
-
var result = this.
|
|
822
|
-
this.
|
|
840
|
+
protoOf(AbstractCursor$iterator$1).n = function () {
|
|
841
|
+
var result = this.ct_1.lq();
|
|
842
|
+
this.ct_1 = this.ct_1.kq();
|
|
823
843
|
return ensureNotNull(result);
|
|
824
844
|
};
|
|
825
845
|
function AbstractCursor() {
|
|
826
846
|
Companion_getInstance_8();
|
|
827
847
|
}
|
|
828
|
-
AbstractCursor.
|
|
829
|
-
return this.
|
|
848
|
+
protoOf(AbstractCursor).toString = function () {
|
|
849
|
+
return this.nq() ? '[]' : !this.mq() ? '[' + this.lq() + ']' : '[' + this.lq() + ', ...]';
|
|
830
850
|
};
|
|
831
|
-
AbstractCursor.
|
|
851
|
+
protoOf(AbstractCursor).j = function () {
|
|
832
852
|
return new AbstractCursor$iterator$1(this);
|
|
833
853
|
};
|
|
834
|
-
AbstractCursor.
|
|
854
|
+
protoOf(AbstractCursor).iterator = function () {
|
|
835
855
|
return this.j();
|
|
836
856
|
};
|
|
837
|
-
AbstractCursor.
|
|
857
|
+
protoOf(AbstractCursor).dt = function () {
|
|
838
858
|
return false;
|
|
839
859
|
};
|
|
840
|
-
AbstractCursor.
|
|
860
|
+
protoOf(AbstractCursor).ys = function (mapper) {
|
|
841
861
|
return new MapperCursor(this, mapper);
|
|
842
862
|
};
|
|
843
|
-
AbstractCursor.
|
|
844
|
-
return this.
|
|
863
|
+
protoOf(AbstractCursor).map = function (mapper) {
|
|
864
|
+
return this.ys(mapper);
|
|
845
865
|
};
|
|
846
866
|
function CachedImpl(generator) {
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
867
|
+
this.et_1 = generator;
|
|
868
|
+
this.ft_1 = Companion_getInstance_7().fq();
|
|
849
869
|
}
|
|
850
|
-
CachedImpl.
|
|
851
|
-
return this.
|
|
870
|
+
protoOf(CachedImpl).cq = function () {
|
|
871
|
+
return this.ft_1.xs();
|
|
852
872
|
};
|
|
853
|
-
CachedImpl.
|
|
854
|
-
return this.
|
|
873
|
+
protoOf(CachedImpl).gt = function () {
|
|
874
|
+
return this.ft_1.zs();
|
|
855
875
|
};
|
|
856
|
-
CachedImpl.
|
|
857
|
-
this.
|
|
858
|
-
return ensureNotNull(this.
|
|
876
|
+
protoOf(CachedImpl).b1 = function () {
|
|
877
|
+
this.ht();
|
|
878
|
+
return ensureNotNull(this.ft_1.b1());
|
|
859
879
|
};
|
|
860
|
-
CachedImpl.
|
|
861
|
-
if (this.
|
|
862
|
-
this.
|
|
880
|
+
protoOf(CachedImpl).ht = function () {
|
|
881
|
+
if (this.gt()) {
|
|
882
|
+
this.ft_1 = Companion_getInstance_7().ws(this.et_1());
|
|
863
883
|
}
|
|
864
884
|
};
|
|
865
|
-
CachedImpl.
|
|
866
|
-
this.
|
|
885
|
+
protoOf(CachedImpl).dq = function () {
|
|
886
|
+
this.ft_1 = Companion_getInstance_7().fq();
|
|
867
887
|
};
|
|
868
|
-
CachedImpl.
|
|
869
|
-
return 'CachedImpl(generator=' + this.
|
|
888
|
+
protoOf(CachedImpl).toString = function () {
|
|
889
|
+
return 'CachedImpl(generator=' + this.et_1 + ')';
|
|
870
890
|
};
|
|
871
|
-
CachedImpl.
|
|
872
|
-
return hashCode(this.
|
|
891
|
+
protoOf(CachedImpl).hashCode = function () {
|
|
892
|
+
return hashCode(this.et_1);
|
|
873
893
|
};
|
|
874
|
-
CachedImpl.
|
|
894
|
+
protoOf(CachedImpl).equals = function (other) {
|
|
875
895
|
if (this === other)
|
|
876
896
|
return true;
|
|
877
897
|
if (!(other instanceof CachedImpl))
|
|
878
898
|
return false;
|
|
879
899
|
var tmp0_other_with_cast = other instanceof CachedImpl ? other : THROW_CCE();
|
|
880
|
-
if (!equals(this.
|
|
900
|
+
if (!equals(this.et_1, tmp0_other_with_cast.et_1))
|
|
881
901
|
return false;
|
|
882
902
|
return true;
|
|
883
903
|
};
|
|
884
904
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
885
905
|
return function () {
|
|
886
|
-
return this$0.
|
|
906
|
+
return this$0.it_1.mq() ? new ConjunctionCursor(this$0.it_1.kq(), this$0.jt_1) : this$0.jt_1.dt() ? this$0.jt_1.kq() : this$0.jt_1;
|
|
887
907
|
};
|
|
888
908
|
}
|
|
889
909
|
function ConjunctionCursor(first, second) {
|
|
890
910
|
AbstractCursor.call(this);
|
|
891
|
-
this.
|
|
892
|
-
this.
|
|
911
|
+
this.it_1 = first;
|
|
912
|
+
this.jt_1 = second;
|
|
893
913
|
var tmp = this;
|
|
894
|
-
tmp.
|
|
914
|
+
tmp.kt_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
895
915
|
}
|
|
896
|
-
ConjunctionCursor.
|
|
897
|
-
return this.
|
|
916
|
+
protoOf(ConjunctionCursor).nq = function () {
|
|
917
|
+
return this.it_1.nq() ? this.jt_1.nq() : false;
|
|
898
918
|
};
|
|
899
|
-
ConjunctionCursor.
|
|
919
|
+
protoOf(ConjunctionCursor).kq = function () {
|
|
900
920
|
var tmp$ret$0;
|
|
901
921
|
// Inline function 'kotlin.getValue' call
|
|
902
922
|
var tmp0_getValue = next$factory();
|
|
903
|
-
tmp$ret$0 = this.
|
|
923
|
+
tmp$ret$0 = this.kt_1.b1();
|
|
904
924
|
return tmp$ret$0;
|
|
905
925
|
};
|
|
906
|
-
ConjunctionCursor.
|
|
907
|
-
return this.
|
|
926
|
+
protoOf(ConjunctionCursor).lq = function () {
|
|
927
|
+
return this.it_1.mq() ? this.it_1.lq() : this.jt_1.lq();
|
|
908
928
|
};
|
|
909
|
-
ConjunctionCursor.
|
|
910
|
-
return this.
|
|
929
|
+
protoOf(ConjunctionCursor).mq = function () {
|
|
930
|
+
return this.it_1.mq() ? true : this.jt_1.mq();
|
|
911
931
|
};
|
|
912
|
-
ConjunctionCursor.
|
|
932
|
+
protoOf(ConjunctionCursor).equals = function (other) {
|
|
913
933
|
if (this === other)
|
|
914
934
|
return true;
|
|
915
935
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
@@ -918,49 +938,49 @@
|
|
|
918
938
|
other;
|
|
919
939
|
else
|
|
920
940
|
THROW_CCE();
|
|
921
|
-
if (!equals(this.
|
|
941
|
+
if (!equals(this.it_1, other.it_1))
|
|
922
942
|
return false;
|
|
923
|
-
if (!equals(this.
|
|
943
|
+
if (!equals(this.jt_1, other.jt_1))
|
|
924
944
|
return false;
|
|
925
945
|
return true;
|
|
926
946
|
};
|
|
927
|
-
ConjunctionCursor.
|
|
928
|
-
var result = hashCode(this.
|
|
929
|
-
result = imul(31, result) + hashCode(this.
|
|
947
|
+
protoOf(ConjunctionCursor).hashCode = function () {
|
|
948
|
+
var result = hashCode(this.it_1);
|
|
949
|
+
result = imul(31, result) + hashCode(this.jt_1) | 0;
|
|
930
950
|
return result;
|
|
931
951
|
};
|
|
932
952
|
function next$factory() {
|
|
933
953
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
934
|
-
return receiver.
|
|
954
|
+
return receiver.kq();
|
|
935
955
|
}, null);
|
|
936
956
|
}
|
|
937
957
|
function EmptyCursor() {
|
|
938
958
|
EmptyCursor_instance = this;
|
|
939
959
|
AbstractCursor.call(this);
|
|
940
960
|
}
|
|
941
|
-
EmptyCursor.
|
|
961
|
+
protoOf(EmptyCursor).kq = function () {
|
|
942
962
|
throw NoSuchElementException_init_$Create$();
|
|
943
963
|
};
|
|
944
|
-
EmptyCursor.
|
|
964
|
+
protoOf(EmptyCursor).lq = function () {
|
|
945
965
|
return null;
|
|
946
966
|
};
|
|
947
|
-
EmptyCursor.
|
|
967
|
+
protoOf(EmptyCursor).mq = function () {
|
|
948
968
|
return false;
|
|
949
969
|
};
|
|
950
|
-
EmptyCursor.
|
|
970
|
+
protoOf(EmptyCursor).nq = function () {
|
|
951
971
|
return true;
|
|
952
972
|
};
|
|
953
|
-
EmptyCursor.
|
|
954
|
-
return AbstractCursor.
|
|
973
|
+
protoOf(EmptyCursor).toString = function () {
|
|
974
|
+
return protoOf(AbstractCursor).toString.call(this);
|
|
955
975
|
};
|
|
956
|
-
EmptyCursor.
|
|
976
|
+
protoOf(EmptyCursor).at = function (mapper) {
|
|
957
977
|
return this;
|
|
958
978
|
};
|
|
959
|
-
EmptyCursor.
|
|
960
|
-
return this.
|
|
979
|
+
protoOf(EmptyCursor).map = function (mapper) {
|
|
980
|
+
return this.at(mapper);
|
|
961
981
|
};
|
|
962
|
-
EmptyCursor.
|
|
963
|
-
return this.
|
|
982
|
+
protoOf(EmptyCursor).ys = function (mapper) {
|
|
983
|
+
return this.at(mapper);
|
|
964
984
|
};
|
|
965
985
|
var EmptyCursor_instance;
|
|
966
986
|
function EmptyCursor_getInstance() {
|
|
@@ -969,96 +989,96 @@
|
|
|
969
989
|
return EmptyCursor_instance;
|
|
970
990
|
}
|
|
971
991
|
function IntIndexedImpl(index, value) {
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
992
|
+
this.lt_1 = index;
|
|
993
|
+
this.mt_1 = value;
|
|
974
994
|
}
|
|
975
|
-
IntIndexedImpl.
|
|
976
|
-
return this.
|
|
995
|
+
protoOf(IntIndexedImpl).pq = function () {
|
|
996
|
+
return this.lt_1;
|
|
977
997
|
};
|
|
978
|
-
IntIndexedImpl.
|
|
979
|
-
return this.
|
|
998
|
+
protoOf(IntIndexedImpl).b1 = function () {
|
|
999
|
+
return this.mt_1;
|
|
980
1000
|
};
|
|
981
|
-
IntIndexedImpl.
|
|
982
|
-
return this.
|
|
1001
|
+
protoOf(IntIndexedImpl).r3 = function () {
|
|
1002
|
+
return this.lt_1;
|
|
983
1003
|
};
|
|
984
|
-
IntIndexedImpl.
|
|
985
|
-
return this.
|
|
1004
|
+
protoOf(IntIndexedImpl).s3 = function () {
|
|
1005
|
+
return this.mt_1;
|
|
986
1006
|
};
|
|
987
|
-
IntIndexedImpl.
|
|
988
|
-
return 'IntIndexedImpl(index=' + this.
|
|
1007
|
+
protoOf(IntIndexedImpl).toString = function () {
|
|
1008
|
+
return 'IntIndexedImpl(index=' + this.lt_1 + ', value=' + this.mt_1 + ')';
|
|
989
1009
|
};
|
|
990
|
-
IntIndexedImpl.
|
|
991
|
-
var result = this.
|
|
992
|
-
result = imul(result, 31) + (this.
|
|
1010
|
+
protoOf(IntIndexedImpl).hashCode = function () {
|
|
1011
|
+
var result = this.lt_1;
|
|
1012
|
+
result = imul(result, 31) + (this.mt_1 == null ? 0 : hashCode(this.mt_1)) | 0;
|
|
993
1013
|
return result;
|
|
994
1014
|
};
|
|
995
|
-
IntIndexedImpl.
|
|
1015
|
+
protoOf(IntIndexedImpl).equals = function (other) {
|
|
996
1016
|
if (this === other)
|
|
997
1017
|
return true;
|
|
998
1018
|
if (!(other instanceof IntIndexedImpl))
|
|
999
1019
|
return false;
|
|
1000
1020
|
var tmp0_other_with_cast = other instanceof IntIndexedImpl ? other : THROW_CCE();
|
|
1001
|
-
if (!(this.
|
|
1021
|
+
if (!(this.lt_1 === tmp0_other_with_cast.lt_1))
|
|
1002
1022
|
return false;
|
|
1003
|
-
if (!equals(this.
|
|
1023
|
+
if (!equals(this.mt_1, tmp0_other_with_cast.mt_1))
|
|
1004
1024
|
return false;
|
|
1005
1025
|
return true;
|
|
1006
1026
|
};
|
|
1007
|
-
IntIndexedImpl.
|
|
1008
|
-
return this.
|
|
1027
|
+
protoOf(IntIndexedImpl).fa = function (other) {
|
|
1028
|
+
return this.rq((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
1009
1029
|
};
|
|
1010
1030
|
function _get_wrapped__s2ip8($this) {
|
|
1011
1031
|
var tmp$ret$0;
|
|
1012
1032
|
// Inline function 'kotlin.getValue' call
|
|
1013
1033
|
var tmp0_getValue = wrapped$factory();
|
|
1014
|
-
tmp$ret$0 = $this.
|
|
1034
|
+
tmp$ret$0 = $this.ot_1.b1();
|
|
1015
1035
|
return tmp$ret$0;
|
|
1016
1036
|
}
|
|
1017
1037
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
1018
1038
|
return function () {
|
|
1019
|
-
return new NonLastCursor(this$0.
|
|
1039
|
+
return new NonLastCursor(this$0.nt_1);
|
|
1020
1040
|
};
|
|
1021
1041
|
}
|
|
1022
1042
|
function LazyCursor(delegate) {
|
|
1023
1043
|
AbstractCursor.call(this);
|
|
1024
|
-
this.
|
|
1044
|
+
this.nt_1 = delegate;
|
|
1025
1045
|
var tmp = this;
|
|
1026
|
-
tmp.
|
|
1046
|
+
tmp.ot_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
1027
1047
|
}
|
|
1028
|
-
LazyCursor.
|
|
1048
|
+
protoOf(LazyCursor).dt = function () {
|
|
1029
1049
|
return true;
|
|
1030
1050
|
};
|
|
1031
|
-
LazyCursor.
|
|
1032
|
-
return _get_wrapped__s2ip8(this).
|
|
1051
|
+
protoOf(LazyCursor).kq = function () {
|
|
1052
|
+
return _get_wrapped__s2ip8(this).kq();
|
|
1033
1053
|
};
|
|
1034
|
-
LazyCursor.
|
|
1035
|
-
return _get_wrapped__s2ip8(this).
|
|
1054
|
+
protoOf(LazyCursor).lq = function () {
|
|
1055
|
+
return _get_wrapped__s2ip8(this).lq();
|
|
1036
1056
|
};
|
|
1037
|
-
LazyCursor.
|
|
1057
|
+
protoOf(LazyCursor).mq = function () {
|
|
1038
1058
|
return true;
|
|
1039
1059
|
};
|
|
1040
|
-
LazyCursor.
|
|
1060
|
+
protoOf(LazyCursor).nq = function () {
|
|
1041
1061
|
return false;
|
|
1042
1062
|
};
|
|
1043
|
-
LazyCursor.
|
|
1044
|
-
return AbstractCursor.
|
|
1063
|
+
protoOf(LazyCursor).toString = function () {
|
|
1064
|
+
return protoOf(AbstractCursor).toString.call(this);
|
|
1045
1065
|
};
|
|
1046
|
-
LazyCursor.
|
|
1066
|
+
protoOf(LazyCursor).j = function () {
|
|
1047
1067
|
return _get_wrapped__s2ip8(this).j();
|
|
1048
1068
|
};
|
|
1049
|
-
LazyCursor.
|
|
1069
|
+
protoOf(LazyCursor).iterator = function () {
|
|
1050
1070
|
return this.j();
|
|
1051
1071
|
};
|
|
1052
|
-
LazyCursor.
|
|
1053
|
-
return hashCode(this.
|
|
1072
|
+
protoOf(LazyCursor).hashCode = function () {
|
|
1073
|
+
return hashCode(this.nt_1);
|
|
1054
1074
|
};
|
|
1055
|
-
LazyCursor.
|
|
1075
|
+
protoOf(LazyCursor).equals = function (other) {
|
|
1056
1076
|
if (this === other)
|
|
1057
1077
|
return true;
|
|
1058
1078
|
if (!(other instanceof LazyCursor))
|
|
1059
1079
|
return false;
|
|
1060
1080
|
var tmp0_other_with_cast = other instanceof LazyCursor ? other : THROW_CCE();
|
|
1061
|
-
if (!equals(this.
|
|
1081
|
+
if (!equals(this.nt_1, tmp0_other_with_cast.nt_1))
|
|
1062
1082
|
return false;
|
|
1063
1083
|
return true;
|
|
1064
1084
|
};
|
|
@@ -1068,70 +1088,70 @@
|
|
|
1068
1088
|
}, null);
|
|
1069
1089
|
}
|
|
1070
1090
|
function LongIndexedImpl(index, value) {
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1091
|
+
this.pt_1 = index;
|
|
1092
|
+
this.qt_1 = value;
|
|
1073
1093
|
}
|
|
1074
|
-
LongIndexedImpl.
|
|
1075
|
-
return this.
|
|
1094
|
+
protoOf(LongIndexedImpl).pq = function () {
|
|
1095
|
+
return this.pt_1;
|
|
1076
1096
|
};
|
|
1077
|
-
LongIndexedImpl.
|
|
1078
|
-
return this.
|
|
1097
|
+
protoOf(LongIndexedImpl).b1 = function () {
|
|
1098
|
+
return this.qt_1;
|
|
1079
1099
|
};
|
|
1080
|
-
LongIndexedImpl.
|
|
1081
|
-
return this.
|
|
1100
|
+
protoOf(LongIndexedImpl).qs = function (other) {
|
|
1101
|
+
return this.pt_1.ch(other.pq()).h1();
|
|
1082
1102
|
};
|
|
1083
|
-
LongIndexedImpl.
|
|
1084
|
-
return this.
|
|
1103
|
+
protoOf(LongIndexedImpl).fa = function (other) {
|
|
1104
|
+
return this.qs((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1085
1105
|
};
|
|
1086
|
-
LongIndexedImpl.
|
|
1087
|
-
return 'LongIndexedImpl(index=' + toString(this.
|
|
1106
|
+
protoOf(LongIndexedImpl).toString = function () {
|
|
1107
|
+
return 'LongIndexedImpl(index=' + toString(this.pt_1) + ', value=' + this.qt_1 + ')';
|
|
1088
1108
|
};
|
|
1089
|
-
LongIndexedImpl.
|
|
1090
|
-
var result = this.
|
|
1091
|
-
result = imul(result, 31) + (this.
|
|
1109
|
+
protoOf(LongIndexedImpl).hashCode = function () {
|
|
1110
|
+
var result = this.pt_1.hashCode();
|
|
1111
|
+
result = imul(result, 31) + (this.qt_1 == null ? 0 : hashCode(this.qt_1)) | 0;
|
|
1092
1112
|
return result;
|
|
1093
1113
|
};
|
|
1094
|
-
LongIndexedImpl.
|
|
1114
|
+
protoOf(LongIndexedImpl).equals = function (other) {
|
|
1095
1115
|
if (this === other)
|
|
1096
1116
|
return true;
|
|
1097
1117
|
if (!(other instanceof LongIndexedImpl))
|
|
1098
1118
|
return false;
|
|
1099
1119
|
var tmp0_other_with_cast = other instanceof LongIndexedImpl ? other : THROW_CCE();
|
|
1100
|
-
if (!this.
|
|
1120
|
+
if (!this.pt_1.equals(tmp0_other_with_cast.pt_1))
|
|
1101
1121
|
return false;
|
|
1102
|
-
if (!equals(this.
|
|
1122
|
+
if (!equals(this.qt_1, tmp0_other_with_cast.qt_1))
|
|
1103
1123
|
return false;
|
|
1104
1124
|
return true;
|
|
1105
1125
|
};
|
|
1106
1126
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1107
1127
|
return function () {
|
|
1108
|
-
return this$0.
|
|
1128
|
+
return this$0.st_1(ensureNotNull(this$0.rt_1.lq()));
|
|
1109
1129
|
};
|
|
1110
1130
|
}
|
|
1111
1131
|
function MapperCursor(wrapped, mapper) {
|
|
1112
1132
|
AbstractCursor.call(this);
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1133
|
+
this.rt_1 = wrapped;
|
|
1134
|
+
this.st_1 = mapper;
|
|
1115
1135
|
var tmp = this;
|
|
1116
|
-
tmp.
|
|
1136
|
+
tmp.tt_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1117
1137
|
}
|
|
1118
|
-
MapperCursor.
|
|
1119
|
-
return this.
|
|
1138
|
+
protoOf(MapperCursor).kq = function () {
|
|
1139
|
+
return this.rt_1.kq().ys(this.st_1);
|
|
1120
1140
|
};
|
|
1121
|
-
MapperCursor.
|
|
1141
|
+
protoOf(MapperCursor).lq = function () {
|
|
1122
1142
|
var tmp$ret$0;
|
|
1123
1143
|
// Inline function 'kotlin.getValue' call
|
|
1124
1144
|
var tmp0_getValue = current$factory();
|
|
1125
|
-
tmp$ret$0 = this.
|
|
1145
|
+
tmp$ret$0 = this.tt_1.b1();
|
|
1126
1146
|
return tmp$ret$0;
|
|
1127
1147
|
};
|
|
1128
|
-
MapperCursor.
|
|
1148
|
+
protoOf(MapperCursor).mq = function () {
|
|
1129
1149
|
return true;
|
|
1130
1150
|
};
|
|
1131
|
-
MapperCursor.
|
|
1151
|
+
protoOf(MapperCursor).nq = function () {
|
|
1132
1152
|
return false;
|
|
1133
1153
|
};
|
|
1134
|
-
MapperCursor.
|
|
1154
|
+
protoOf(MapperCursor).equals = function (other) {
|
|
1135
1155
|
if (this === other)
|
|
1136
1156
|
return true;
|
|
1137
1157
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
@@ -1140,109 +1160,134 @@
|
|
|
1140
1160
|
other;
|
|
1141
1161
|
else
|
|
1142
1162
|
THROW_CCE();
|
|
1143
|
-
if (!equals(this.
|
|
1163
|
+
if (!equals(this.rt_1, other.rt_1))
|
|
1144
1164
|
return false;
|
|
1145
|
-
if (!equals(this.
|
|
1165
|
+
if (!equals(this.st_1, other.st_1))
|
|
1146
1166
|
return false;
|
|
1147
1167
|
return true;
|
|
1148
1168
|
};
|
|
1149
|
-
MapperCursor.
|
|
1150
|
-
var result = hashCode(this.
|
|
1151
|
-
result = imul(31, result) + hashCode(this.
|
|
1169
|
+
protoOf(MapperCursor).hashCode = function () {
|
|
1170
|
+
var result = hashCode(this.rt_1);
|
|
1171
|
+
result = imul(31, result) + hashCode(this.st_1) | 0;
|
|
1152
1172
|
return result;
|
|
1153
1173
|
};
|
|
1154
|
-
MapperCursor.
|
|
1155
|
-
return new ValueCursor(mapper(this.
|
|
1174
|
+
protoOf(MapperCursor).ut = function (mapper) {
|
|
1175
|
+
return new ValueCursor(mapper(this.lq()), this.kq().ys(mapper));
|
|
1156
1176
|
};
|
|
1157
|
-
MapperCursor.
|
|
1158
|
-
return this.
|
|
1177
|
+
protoOf(MapperCursor).map = function (mapper) {
|
|
1178
|
+
return this.ut(mapper);
|
|
1159
1179
|
};
|
|
1160
|
-
MapperCursor.
|
|
1161
|
-
return this.
|
|
1180
|
+
protoOf(MapperCursor).ys = function (mapper) {
|
|
1181
|
+
return this.ut(mapper);
|
|
1162
1182
|
};
|
|
1163
1183
|
function current$factory() {
|
|
1164
1184
|
return getPropertyCallableRef('current', 1, KProperty1, function (receiver) {
|
|
1165
|
-
return receiver.
|
|
1185
|
+
return receiver.lq();
|
|
1166
1186
|
}, null);
|
|
1167
1187
|
}
|
|
1168
1188
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1169
1189
|
return function () {
|
|
1170
1190
|
var tmp$ret$0;
|
|
1171
1191
|
// Inline function 'kotlin.also' call
|
|
1172
|
-
var tmp0_also = Companion_getInstance_8().
|
|
1192
|
+
var tmp0_also = Companion_getInstance_8().oq($source);
|
|
1173
1193
|
// Inline function 'kotlin.contracts.contract' call
|
|
1174
1194
|
// Inline function 'it.unibo.tuprolog.utils.impl.NonLastCursor.next$delegate.<anonymous>.<anonymous>' call
|
|
1175
|
-
this$0.
|
|
1195
|
+
this$0.vt_1 = null;
|
|
1176
1196
|
tmp$ret$0 = tmp0_also;
|
|
1177
1197
|
return tmp$ret$0;
|
|
1178
1198
|
};
|
|
1179
1199
|
}
|
|
1180
1200
|
function NonLastCursor(source) {
|
|
1181
1201
|
AbstractCursor.call(this);
|
|
1182
|
-
this.
|
|
1202
|
+
this.vt_1 = source;
|
|
1183
1203
|
var tmp = this;
|
|
1184
|
-
tmp.
|
|
1185
|
-
this.
|
|
1204
|
+
tmp.wt_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1205
|
+
this.xt_1 = source.n();
|
|
1186
1206
|
}
|
|
1187
|
-
NonLastCursor.
|
|
1207
|
+
protoOf(NonLastCursor).kq = function () {
|
|
1188
1208
|
var tmp$ret$0;
|
|
1189
1209
|
// Inline function 'kotlin.getValue' call
|
|
1190
1210
|
var tmp0_getValue = next$factory_0();
|
|
1191
|
-
tmp$ret$0 = this.
|
|
1211
|
+
tmp$ret$0 = this.wt_1.b1();
|
|
1192
1212
|
return tmp$ret$0;
|
|
1193
1213
|
};
|
|
1194
|
-
NonLastCursor.
|
|
1195
|
-
return this.
|
|
1214
|
+
protoOf(NonLastCursor).lq = function () {
|
|
1215
|
+
return this.xt_1;
|
|
1196
1216
|
};
|
|
1197
|
-
NonLastCursor.
|
|
1217
|
+
protoOf(NonLastCursor).mq = function () {
|
|
1198
1218
|
return true;
|
|
1199
1219
|
};
|
|
1200
|
-
NonLastCursor.
|
|
1220
|
+
protoOf(NonLastCursor).nq = function () {
|
|
1201
1221
|
return false;
|
|
1202
1222
|
};
|
|
1203
|
-
NonLastCursor.
|
|
1204
|
-
return AbstractCursor.
|
|
1223
|
+
protoOf(NonLastCursor).toString = function () {
|
|
1224
|
+
return protoOf(AbstractCursor).toString.call(this);
|
|
1205
1225
|
};
|
|
1206
1226
|
function next$factory_0() {
|
|
1207
1227
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
1208
|
-
return receiver.
|
|
1228
|
+
return receiver.kq();
|
|
1209
1229
|
}, null);
|
|
1210
1230
|
}
|
|
1211
1231
|
function removeLeastRecent($this) {
|
|
1212
1232
|
var tmp$ret$0;
|
|
1213
1233
|
// Inline function 'kotlin.collections.iterator' call
|
|
1214
|
-
var tmp0_iterator = $this.
|
|
1234
|
+
var tmp0_iterator = $this.zt_1;
|
|
1215
1235
|
tmp$ret$0 = tmp0_iterator.z().j();
|
|
1216
1236
|
var entry = tmp$ret$0.n();
|
|
1217
|
-
$this.
|
|
1237
|
+
$this.zt_1.b4(entry.a1());
|
|
1218
1238
|
var tmp = Companion_getInstance_7();
|
|
1219
1239
|
var tmp$ret$1;
|
|
1220
1240
|
// Inline function 'kotlin.collections.toPair' call
|
|
1221
1241
|
tmp$ret$1 = new Pair(entry.a1(), entry.b1());
|
|
1222
|
-
return tmp.
|
|
1242
|
+
return tmp.ws(tmp$ret$1);
|
|
1223
1243
|
}
|
|
1224
1244
|
function removeLeastRecentIfNecessary($this) {
|
|
1225
1245
|
var tmp;
|
|
1226
|
-
if ($this.
|
|
1246
|
+
if ($this.zt_1.p() >= $this.yt_1) {
|
|
1227
1247
|
tmp = removeLeastRecent($this);
|
|
1228
1248
|
} else {
|
|
1229
|
-
return Companion_getInstance_7().
|
|
1249
|
+
return Companion_getInstance_7().fq();
|
|
1230
1250
|
}
|
|
1231
1251
|
return tmp;
|
|
1232
1252
|
}
|
|
1233
|
-
function SimpleLRUCache$
|
|
1253
|
+
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1254
|
+
return function () {
|
|
1255
|
+
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1256
|
+
var tmp0_set = this$0.zt_1;
|
|
1257
|
+
tmp0_set.a4($key, $value);
|
|
1258
|
+
return evicted;
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1261
|
+
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1262
|
+
return function () {
|
|
1263
|
+
var tmp;
|
|
1264
|
+
if (this$0.zt_1.z2($key)) {
|
|
1265
|
+
tmp = Companion_getInstance_7().gq(this$0.zt_1.f3($key));
|
|
1266
|
+
} else {
|
|
1267
|
+
tmp = Companion_getInstance_7().fq();
|
|
1268
|
+
}
|
|
1269
|
+
return tmp;
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
function SimpleLRUCache$toSequence$lambda$lambda(it) {
|
|
1234
1273
|
var tmp$ret$0;
|
|
1235
1274
|
// Inline function 'kotlin.collections.toPair' call
|
|
1236
1275
|
tmp$ret$0 = new Pair(it.a1(), it.b1());
|
|
1237
1276
|
return tmp$ret$0;
|
|
1238
1277
|
}
|
|
1278
|
+
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1279
|
+
return function () {
|
|
1280
|
+
var tmp = asSequence(this$0.zt_1.z());
|
|
1281
|
+
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1239
1284
|
function SimpleLRUCache$toString$lambda(it) {
|
|
1240
|
-
return '' + it.
|
|
1285
|
+
return '' + it.k4_1 + ' = ' + it.l4_1;
|
|
1241
1286
|
}
|
|
1242
1287
|
function SimpleLRUCache(capacity) {
|
|
1243
|
-
this.
|
|
1288
|
+
this.yt_1 = capacity;
|
|
1244
1289
|
// Inline function 'kotlin.require' call
|
|
1245
|
-
var tmp0_require = this.
|
|
1290
|
+
var tmp0_require = this.yt_1 > 0;
|
|
1246
1291
|
// Inline function 'kotlin.contracts.contract' call
|
|
1247
1292
|
// Inline function 'kotlin.require' call
|
|
1248
1293
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1253,25 +1298,15 @@
|
|
|
1253
1298
|
var message = tmp$ret$0;
|
|
1254
1299
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1255
1300
|
}
|
|
1256
|
-
this.
|
|
1301
|
+
this.zt_1 = LinkedHashMap_init_$Create$();
|
|
1257
1302
|
}
|
|
1258
|
-
SimpleLRUCache.
|
|
1259
|
-
|
|
1260
|
-
// Inline function 'kotlin.collections.set' call
|
|
1261
|
-
var tmp0_set = this.fu_1;
|
|
1262
|
-
tmp0_set.w3(key, value);
|
|
1263
|
-
return evicted;
|
|
1303
|
+
protoOf(SimpleLRUCache).yp = function (key, value) {
|
|
1304
|
+
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1264
1305
|
};
|
|
1265
|
-
SimpleLRUCache.
|
|
1266
|
-
|
|
1267
|
-
if (this.fu_1.u2(key)) {
|
|
1268
|
-
tmp = Companion_getInstance_7().mq(this.fu_1.a3(key));
|
|
1269
|
-
} else {
|
|
1270
|
-
tmp = Companion_getInstance_7().lq();
|
|
1271
|
-
}
|
|
1272
|
-
return tmp;
|
|
1306
|
+
protoOf(SimpleLRUCache).f3 = function (key) {
|
|
1307
|
+
return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
|
|
1273
1308
|
};
|
|
1274
|
-
SimpleLRUCache.
|
|
1309
|
+
protoOf(SimpleLRUCache).equals = function (other) {
|
|
1275
1310
|
if (this === other)
|
|
1276
1311
|
return true;
|
|
1277
1312
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
@@ -1280,41 +1315,39 @@
|
|
|
1280
1315
|
other;
|
|
1281
1316
|
else
|
|
1282
1317
|
THROW_CCE();
|
|
1283
|
-
if (!(this.
|
|
1318
|
+
if (!(this.yt_1 === other.yt_1))
|
|
1284
1319
|
return false;
|
|
1285
|
-
if (!this.
|
|
1320
|
+
if (!this.zt_1.equals(other.zt_1))
|
|
1286
1321
|
return false;
|
|
1287
1322
|
return true;
|
|
1288
1323
|
};
|
|
1289
|
-
SimpleLRUCache.
|
|
1290
|
-
var result = this.
|
|
1291
|
-
result = imul(31, result) + this.
|
|
1324
|
+
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1325
|
+
var result = this.yt_1;
|
|
1326
|
+
result = imul(31, result) + this.zt_1.hashCode() | 0;
|
|
1292
1327
|
return result;
|
|
1293
1328
|
};
|
|
1294
|
-
SimpleLRUCache.
|
|
1295
|
-
|
|
1296
|
-
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda));
|
|
1329
|
+
protoOf(SimpleLRUCache).au = function () {
|
|
1330
|
+
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1297
1331
|
};
|
|
1298
|
-
SimpleLRUCache.
|
|
1299
|
-
var tmp = this.
|
|
1300
|
-
|
|
1301
|
-
return 'SimpleLRUCache(' + joinToString$default(tmp_0, ', ', null, null, 0, null, null, 62, null) + ')';
|
|
1332
|
+
protoOf(SimpleLRUCache).toString = function () {
|
|
1333
|
+
var tmp = this.au();
|
|
1334
|
+
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1302
1335
|
};
|
|
1303
1336
|
function ValueCursor(current, next) {
|
|
1304
1337
|
AbstractCursor.call(this);
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1338
|
+
this.bu_1 = current;
|
|
1339
|
+
this.cu_1 = next;
|
|
1307
1340
|
}
|
|
1308
|
-
ValueCursor.
|
|
1309
|
-
return this.
|
|
1341
|
+
protoOf(ValueCursor).lq = function () {
|
|
1342
|
+
return this.bu_1;
|
|
1310
1343
|
};
|
|
1311
|
-
ValueCursor.
|
|
1312
|
-
return this.
|
|
1344
|
+
protoOf(ValueCursor).kq = function () {
|
|
1345
|
+
return this.cu_1;
|
|
1313
1346
|
};
|
|
1314
|
-
ValueCursor.
|
|
1347
|
+
protoOf(ValueCursor).mq = function () {
|
|
1315
1348
|
return true;
|
|
1316
1349
|
};
|
|
1317
|
-
ValueCursor.
|
|
1350
|
+
protoOf(ValueCursor).nq = function () {
|
|
1318
1351
|
return false;
|
|
1319
1352
|
};
|
|
1320
1353
|
function dequeOf(items) {
|
|
@@ -1340,42 +1373,45 @@
|
|
|
1340
1373
|
if (_this__u8e3s4.d())
|
|
1341
1374
|
return null;
|
|
1342
1375
|
var first = _this__u8e3s4.o(0);
|
|
1343
|
-
_this__u8e3s4.
|
|
1376
|
+
_this__u8e3s4.x4(0);
|
|
1344
1377
|
return first;
|
|
1345
1378
|
}
|
|
1346
1379
|
function addFirst(_this__u8e3s4, item) {
|
|
1347
|
-
_this__u8e3s4.
|
|
1380
|
+
_this__u8e3s4.za(0, item);
|
|
1348
1381
|
}
|
|
1349
1382
|
function addFirst_0(_this__u8e3s4, items) {
|
|
1350
|
-
var i = _this__u8e3s4.
|
|
1383
|
+
var i = _this__u8e3s4.gb();
|
|
1351
1384
|
var tmp0_iterator = items.j();
|
|
1352
1385
|
while (tmp0_iterator.m()) {
|
|
1353
1386
|
var item = tmp0_iterator.n();
|
|
1354
|
-
i.
|
|
1387
|
+
i.ab(item);
|
|
1355
1388
|
}
|
|
1356
1389
|
}
|
|
1390
|
+
function synchronizedOn(obj, action) {
|
|
1391
|
+
return action();
|
|
1392
|
+
}
|
|
1357
1393
|
function forceCast(_this__u8e3s4) {
|
|
1358
1394
|
var it = _this__u8e3s4;
|
|
1359
1395
|
return it;
|
|
1360
1396
|
}
|
|
1361
1397
|
//region block: post-declaration
|
|
1362
|
-
AbstractCursor.
|
|
1363
|
-
AbstractCursor.
|
|
1364
|
-
CachedImpl.
|
|
1365
|
-
ConjunctionCursor.
|
|
1366
|
-
ConjunctionCursor.
|
|
1367
|
-
EmptyCursor.
|
|
1368
|
-
EmptyCursor.
|
|
1369
|
-
IntIndexedImpl.
|
|
1370
|
-
LazyCursor.
|
|
1371
|
-
LazyCursor.
|
|
1372
|
-
MapperCursor.
|
|
1373
|
-
MapperCursor.
|
|
1374
|
-
NonLastCursor.
|
|
1375
|
-
NonLastCursor.
|
|
1376
|
-
SimpleLRUCache.
|
|
1377
|
-
ValueCursor.
|
|
1378
|
-
ValueCursor.
|
|
1398
|
+
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1399
|
+
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1400
|
+
protoOf(CachedImpl).eq = ifValid;
|
|
1401
|
+
protoOf(ConjunctionCursor).asIterable = asIterable_1;
|
|
1402
|
+
protoOf(ConjunctionCursor).asSequence = asSequence_0;
|
|
1403
|
+
protoOf(EmptyCursor).asIterable = asIterable_1;
|
|
1404
|
+
protoOf(EmptyCursor).asSequence = asSequence_0;
|
|
1405
|
+
protoOf(IntIndexedImpl).rq = compareTo;
|
|
1406
|
+
protoOf(LazyCursor).asIterable = asIterable_1;
|
|
1407
|
+
protoOf(LazyCursor).asSequence = asSequence_0;
|
|
1408
|
+
protoOf(MapperCursor).asIterable = asIterable_1;
|
|
1409
|
+
protoOf(MapperCursor).asSequence = asSequence_0;
|
|
1410
|
+
protoOf(NonLastCursor).asIterable = asIterable_1;
|
|
1411
|
+
protoOf(NonLastCursor).asSequence = asSequence_0;
|
|
1412
|
+
protoOf(SimpleLRUCache).zp = getOrSet;
|
|
1413
|
+
protoOf(ValueCursor).asIterable = asIterable_1;
|
|
1414
|
+
protoOf(ValueCursor).asSequence = asSequence_0;
|
|
1379
1415
|
//endregion
|
|
1380
1416
|
//region block: exports
|
|
1381
1417
|
_.$_$ = _.$_$ || {};
|
|
@@ -1415,9 +1451,11 @@
|
|
|
1415
1451
|
_.$_$.h1 = plus;
|
|
1416
1452
|
_.$_$.i1 = setTags;
|
|
1417
1453
|
_.$_$.j1 = setTag;
|
|
1418
|
-
_.$_$.k1 =
|
|
1454
|
+
_.$_$.k1 = synchronizedOnSelf;
|
|
1455
|
+
_.$_$.l1 = synchronizedOn;
|
|
1456
|
+
_.$_$.m1 = takeFirst;
|
|
1419
1457
|
//endregion
|
|
1420
1458
|
return _;
|
|
1421
|
-
}
|
|
1459
|
+
}));
|
|
1422
1460
|
|
|
1423
1461
|
//# sourceMappingURL=2p-utils.js.map
|