@tuprolog/2p-full 2.0.5 → 2.0.9
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 +172 -172
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +3593 -3366
- package/2p-core.js.map +1 -1
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +17 -4
- package/2p-full.js.map +1 -1
- package/2p-gui-plp.js.map +1 -1
- package/2p-gui.js.map +1 -1
- package/2p-ide-web.js.map +1 -1
- package/2p-io-lib.js +3489 -5
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +3382 -5
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +616 -5
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +5636 -5
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +278 -5
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +533 -5
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1050 -1050
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +3 -3
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1450 -1444
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1033 -1033
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5580 -4490
- package/2p-solve.js.map +1 -1
- package/2p-test-dsl.js.map +1 -1
- package/2p-theory.js +1725 -1725
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +375 -375
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +546 -493
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +311 -5
- package/clikt-clikt-mordant.js.map +1 -1
- package/clikt-clikt.js +6672 -5
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +1654 -5
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +5400 -2597
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kt-math.js +1622 -1614
- package/kt-math.js.map +1 -1
- package/mordant-mordant-omnibus.js.map +1 -1
- package/mordant-mordant.js +10375 -5
- package/mordant-mordant.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +201 -5
- package/okio-parent-okio-nodefilesystem.js.map +1 -1
- package/okio-parent-okio.js +3863 -5
- package/okio-parent-okio.js.map +1 -1
- package/package.json +4 -4
package/2p-utils.js
CHANGED
|
@@ -1,88 +1,94 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kt-math.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kt-math.js'));
|
|
6
6
|
else {
|
|
7
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
|
-
|
|
10
|
+
if (typeof globalThis['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
|
+
globalThis['2p-utils'] = factory(typeof globalThis['2p-utils'] === 'undefined' ? {} : globalThis['2p-utils'], globalThis['kotlin-kotlin-stdlib'], globalThis['kt-math']);
|
|
11
14
|
}
|
|
12
|
-
}(function (_, kotlin_kotlin) {
|
|
15
|
+
}(function (_, kotlin_kotlin, kotlin_io_github_gciatto_kt_math) {
|
|
13
16
|
'use strict';
|
|
14
17
|
//region block: imports
|
|
15
18
|
var imul = Math.imul;
|
|
16
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
18
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
22
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
23
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.r8;
|
|
20
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.b8;
|
|
21
|
+
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
22
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.d8;
|
|
23
|
+
var THROW_CCE = kotlin_kotlin.$_$.ge;
|
|
24
|
+
var isInterface = kotlin_kotlin.$_$.j8;
|
|
25
|
+
var initMetadataForClass = kotlin_kotlin.$_$.a8;
|
|
26
|
+
var Sequence = kotlin_kotlin.$_$.u9;
|
|
24
27
|
var VOID = kotlin_kotlin.$_$.b;
|
|
25
|
-
var arrayIterator = kotlin_kotlin.$_$.
|
|
26
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
27
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
28
|
-
var toList = kotlin_kotlin.$_$.
|
|
29
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
30
|
-
var asIterable = kotlin_kotlin.$_$.
|
|
31
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
32
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
33
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
34
|
-
var asIterable_0 = kotlin_kotlin.$_$.
|
|
35
|
-
var sequence = kotlin_kotlin.$_$.
|
|
36
|
-
var IntRange = kotlin_kotlin.$_$.
|
|
37
|
-
var zip = kotlin_kotlin.$_$.
|
|
38
|
-
var equals = kotlin_kotlin.$_$.
|
|
39
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
40
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
41
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
42
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
43
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
44
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
45
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
46
|
-
var withIndex = kotlin_kotlin.$_$.
|
|
47
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
48
|
-
var map = kotlin_kotlin.$_$.
|
|
49
|
-
var filterNot = kotlin_kotlin.$_$.
|
|
50
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
51
|
-
var minWithOrNull = kotlin_kotlin.$_$.
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
57
|
-
var
|
|
58
|
-
var
|
|
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
|
|
73
|
-
var
|
|
28
|
+
var arrayIterator = kotlin_kotlin.$_$.g7;
|
|
29
|
+
var compareTo = kotlin_kotlin.$_$.p7;
|
|
30
|
+
var Comparable = kotlin_kotlin.$_$.ud;
|
|
31
|
+
var toList = kotlin_kotlin.$_$.jb;
|
|
32
|
+
var asSequence = kotlin_kotlin.$_$.r2;
|
|
33
|
+
var asIterable = kotlin_kotlin.$_$.l2;
|
|
34
|
+
var hashCode = kotlin_kotlin.$_$.z7;
|
|
35
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.w2;
|
|
36
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
37
|
+
var asIterable_0 = kotlin_kotlin.$_$.w9;
|
|
38
|
+
var sequence = kotlin_kotlin.$_$.db;
|
|
39
|
+
var IntRange = kotlin_kotlin.$_$.f9;
|
|
40
|
+
var zip = kotlin_kotlin.$_$.nb;
|
|
41
|
+
var equals = kotlin_kotlin.$_$.s7;
|
|
42
|
+
var FunctionAdapter = kotlin_kotlin.$_$.f7;
|
|
43
|
+
var Comparator = kotlin_kotlin.$_$.vd;
|
|
44
|
+
var CoroutineImpl = kotlin_kotlin.$_$.i6;
|
|
45
|
+
var SequenceScope = kotlin_kotlin.$_$.t9;
|
|
46
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.h6;
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.e8;
|
|
48
|
+
var constructCallableReference = kotlin_kotlin.$_$.q7;
|
|
49
|
+
var withIndex = kotlin_kotlin.$_$.mb;
|
|
50
|
+
var ensureNotNull = kotlin_kotlin.$_$.me;
|
|
51
|
+
var map = kotlin_kotlin.$_$.ua;
|
|
52
|
+
var filterNot = kotlin_kotlin.$_$.fa;
|
|
53
|
+
var toMutableList = kotlin_kotlin.$_$.kb;
|
|
54
|
+
var minWithOrNull = kotlin_kotlin.$_$.va;
|
|
55
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
56
|
+
var toString = kotlin_kotlin.$_$.u8;
|
|
57
|
+
var Companion_getInstance = kotlin_io_github_gciatto_kt_math.$_$.e;
|
|
58
|
+
var Companion_getInstance_0 = kotlin_io_github_gciatto_kt_math.$_$.d;
|
|
59
|
+
var toString_0 = kotlin_kotlin.$_$.ve;
|
|
60
|
+
var initMetadataForObject = kotlin_kotlin.$_$.f8;
|
|
61
|
+
var KtMap = kotlin_kotlin.$_$.f2;
|
|
62
|
+
var toMutableMap = kotlin_kotlin.$_$.z5;
|
|
63
|
+
var lazy = kotlin_kotlin.$_$.pe;
|
|
64
|
+
var KProperty1 = kotlin_kotlin.$_$.s9;
|
|
65
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.x7;
|
|
66
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.o9;
|
|
67
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
68
|
+
var subtract = kotlin_kotlin.$_$.d7;
|
|
69
|
+
var convertToInt = kotlin_kotlin.$_$.s6;
|
|
70
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.u7;
|
|
71
|
+
var first = kotlin_kotlin.$_$.o3;
|
|
72
|
+
var to = kotlin_kotlin.$_$.we;
|
|
73
|
+
var Pair = kotlin_kotlin.$_$.ee;
|
|
74
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
75
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
76
|
+
var joinToString = kotlin_kotlin.$_$.pa;
|
|
77
|
+
var mutableListOf = kotlin_kotlin.$_$.r4;
|
|
78
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
79
|
+
var addAll = kotlin_kotlin.$_$.h2;
|
|
74
80
|
//endregion
|
|
75
81
|
//region block: pre-declaration
|
|
76
82
|
initMetadataForCompanion(Companion);
|
|
77
83
|
function getOrSet(key, valueGenerator) {
|
|
78
|
-
var got = this.
|
|
84
|
+
var got = this.get_wei43m_k$(key);
|
|
79
85
|
var tmp;
|
|
80
86
|
if (got instanceof Some) {
|
|
81
|
-
tmp = got.
|
|
87
|
+
tmp = got.value_1;
|
|
82
88
|
} else {
|
|
83
89
|
// Inline function 'kotlin.also' call
|
|
84
90
|
var this_0 = valueGenerator();
|
|
85
|
-
this.
|
|
91
|
+
this.set_iuhvb1_k$(key, this_0);
|
|
86
92
|
tmp = this_0;
|
|
87
93
|
}
|
|
88
94
|
return tmp;
|
|
@@ -91,13 +97,13 @@
|
|
|
91
97
|
initMetadataForCompanion(Companion_0);
|
|
92
98
|
function ifValid(consumer) {
|
|
93
99
|
var tmp;
|
|
94
|
-
if (this.
|
|
95
|
-
var tmp_0 =
|
|
100
|
+
if (this.get_isValid_zh4f7b_k$()) {
|
|
101
|
+
var tmp_0 = Companion_instance_5;
|
|
96
102
|
// Inline function 'kotlin.let' call
|
|
97
|
-
var tmp$ret$0 = consumer(this.
|
|
98
|
-
tmp = tmp_0.
|
|
103
|
+
var tmp$ret$0 = consumer(this.get_value_j01efc_k$());
|
|
104
|
+
tmp = tmp_0.of_f8fyqr_k$(tmp$ret$0);
|
|
99
105
|
} else {
|
|
100
|
-
tmp =
|
|
106
|
+
tmp = Companion_instance_5.none_6mb3x4_k$();
|
|
101
107
|
}
|
|
102
108
|
return tmp;
|
|
103
109
|
}
|
|
@@ -119,15 +125,15 @@
|
|
|
119
125
|
}
|
|
120
126
|
initMetadataForInterface(Cursor, 'Cursor');
|
|
121
127
|
function component1() {
|
|
122
|
-
return this.
|
|
128
|
+
return this.get_index_it478p_k$();
|
|
123
129
|
}
|
|
124
130
|
function component2() {
|
|
125
|
-
return this.
|
|
131
|
+
return this.get_value_j01efc_k$();
|
|
126
132
|
}
|
|
127
133
|
initMetadataForInterface(Indexed, 'Indexed');
|
|
128
134
|
initMetadataForCompanion(Companion_2);
|
|
129
135
|
function compareTo_0(other) {
|
|
130
|
-
return compareTo(this.
|
|
136
|
+
return compareTo(this.get_index_it478p_k$(), other.get_index_it478p_k$());
|
|
131
137
|
}
|
|
132
138
|
initMetadataForInterface(IntIndexed, 'IntIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
133
139
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -137,24 +143,26 @@
|
|
|
137
143
|
initMetadataForLambda(merge$slambda, CoroutineImpl, VOID, [1]);
|
|
138
144
|
initMetadataForCompanion(Companion_3);
|
|
139
145
|
function compareTo_1(other) {
|
|
140
|
-
return compareTo(this.
|
|
146
|
+
return compareTo(this.get_index_it478p_k$(), other.get_index_it478p_k$());
|
|
141
147
|
}
|
|
142
148
|
initMetadataForInterface(LongIndexed, 'LongIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
143
149
|
initMetadataForCompanion(Companion_4);
|
|
150
|
+
initMetadataForClass(NumberTypeTester, 'NumberTypeTester', NumberTypeTester);
|
|
151
|
+
initMetadataForCompanion(Companion_5);
|
|
144
152
|
initMetadataForClass(Optional, 'Optional');
|
|
145
153
|
initMetadataForClass(Some, 'Some', VOID, Optional);
|
|
146
154
|
initMetadataForObject(None, 'None', VOID, Optional);
|
|
147
155
|
function getTag(name) {
|
|
148
|
-
return this.
|
|
156
|
+
return this.get_tags_wousf6_k$().get_wei43m_k$(name);
|
|
149
157
|
}
|
|
150
158
|
function containsTag(name) {
|
|
151
159
|
// Inline function 'kotlin.collections.contains' call
|
|
152
160
|
// Inline function 'kotlin.collections.containsKey' call
|
|
153
|
-
var this_0 = this.
|
|
154
|
-
return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
161
|
+
var this_0 = this.get_tags_wousf6_k$();
|
|
162
|
+
return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).containsKey_aw81wo_k$(name);
|
|
155
163
|
}
|
|
156
164
|
initMetadataForInterface(Taggable, 'Taggable');
|
|
157
|
-
initMetadataForCompanion(
|
|
165
|
+
initMetadataForCompanion(Companion_6);
|
|
158
166
|
initMetadataForClass(AbstractCursor$iterator$1);
|
|
159
167
|
initMetadataForClass(AbstractCursor, 'AbstractCursor', VOID, VOID, [Cursor]);
|
|
160
168
|
initMetadataForClass(CachedImpl, 'CachedImpl', VOID, VOID, [Cached]);
|
|
@@ -170,22 +178,22 @@
|
|
|
170
178
|
//endregion
|
|
171
179
|
function Companion() {
|
|
172
180
|
}
|
|
173
|
-
protoOf(Companion).
|
|
181
|
+
protoOf(Companion).simpleLru_axkvh1_k$ = function (capacity) {
|
|
174
182
|
return new SimpleLRUCache(capacity);
|
|
175
183
|
};
|
|
176
184
|
var Companion_instance;
|
|
177
|
-
function
|
|
185
|
+
function Companion_getInstance_1() {
|
|
178
186
|
return Companion_instance;
|
|
179
187
|
}
|
|
180
188
|
function Cache() {
|
|
181
189
|
}
|
|
182
190
|
function Companion_0() {
|
|
183
191
|
}
|
|
184
|
-
protoOf(Companion_0).
|
|
192
|
+
protoOf(Companion_0).of_2fjpz5_k$ = function (generator) {
|
|
185
193
|
return new CachedImpl(generator);
|
|
186
194
|
};
|
|
187
195
|
var Companion_instance_0;
|
|
188
|
-
function
|
|
196
|
+
function Companion_getInstance_2() {
|
|
189
197
|
return Companion_instance_0;
|
|
190
198
|
}
|
|
191
199
|
function Cached() {
|
|
@@ -204,47 +212,47 @@
|
|
|
204
212
|
return EmptyCursor_getInstance();
|
|
205
213
|
};
|
|
206
214
|
var Companion_instance_1;
|
|
207
|
-
function
|
|
215
|
+
function Companion_getInstance_3() {
|
|
208
216
|
return Companion_instance_1;
|
|
209
217
|
}
|
|
210
218
|
function Cursor$asIterable$$inlined$Iterable$1(this$0) {
|
|
211
|
-
this.
|
|
219
|
+
this.this$0__1 = this$0;
|
|
212
220
|
}
|
|
213
|
-
protoOf(Cursor$asIterable$$inlined$Iterable$1).
|
|
214
|
-
return this.
|
|
221
|
+
protoOf(Cursor$asIterable$$inlined$Iterable$1).iterator_jk1svi_k$ = function () {
|
|
222
|
+
return this.this$0__1.iterator();
|
|
215
223
|
};
|
|
216
224
|
function Cursor$asSequence$$inlined$Sequence$1(this$0) {
|
|
217
|
-
this.
|
|
225
|
+
this.this$0__1 = this$0;
|
|
218
226
|
}
|
|
219
|
-
protoOf(Cursor$asSequence$$inlined$Sequence$1).
|
|
220
|
-
return this.
|
|
227
|
+
protoOf(Cursor$asSequence$$inlined$Sequence$1).iterator_jk1svi_k$ = function () {
|
|
228
|
+
return this.this$0__1.iterator();
|
|
221
229
|
};
|
|
222
230
|
function Cursor() {
|
|
223
231
|
}
|
|
224
232
|
function cursor(_this__u8e3s4) {
|
|
225
|
-
return toCursor(_this__u8e3s4.
|
|
233
|
+
return toCursor(_this__u8e3s4.iterator_jk1svi_k$());
|
|
226
234
|
}
|
|
227
235
|
function plus(_this__u8e3s4, other) {
|
|
228
|
-
return other.
|
|
236
|
+
return other.get_hasNext_csdx38_k$() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.get_hasNext_csdx38_k$() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
229
237
|
}
|
|
230
238
|
function cursor_0(_this__u8e3s4) {
|
|
231
|
-
return toCursor(_this__u8e3s4.
|
|
239
|
+
return toCursor(_this__u8e3s4.iterator_jk1svi_k$());
|
|
232
240
|
}
|
|
233
241
|
function cursor_1(_this__u8e3s4) {
|
|
234
242
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
235
243
|
}
|
|
236
244
|
function toCursor(_this__u8e3s4) {
|
|
237
|
-
return
|
|
245
|
+
return Companion_instance_6.of_g3gwgz_k$(_this__u8e3s4);
|
|
238
246
|
}
|
|
239
247
|
function Indexed() {
|
|
240
248
|
}
|
|
241
249
|
function Companion_2() {
|
|
242
250
|
}
|
|
243
|
-
protoOf(Companion_2).
|
|
251
|
+
protoOf(Companion_2).of_yryaio_k$ = function (index, value) {
|
|
244
252
|
return new IntIndexedImpl(index, value);
|
|
245
253
|
};
|
|
246
254
|
var Companion_instance_2;
|
|
247
|
-
function
|
|
255
|
+
function Companion_getInstance_4() {
|
|
248
256
|
return Companion_instance_2;
|
|
249
257
|
}
|
|
250
258
|
function IntIndexed() {
|
|
@@ -260,10 +268,10 @@
|
|
|
260
268
|
}
|
|
261
269
|
function itemWiseHashCode_0(iterable) {
|
|
262
270
|
var hash = 13;
|
|
263
|
-
var i = iterable.
|
|
264
|
-
while (i.
|
|
271
|
+
var i = iterable.iterator_jk1svi_k$();
|
|
272
|
+
while (i.hasNext_bitz1p_k$()) {
|
|
265
273
|
var tmp = imul(31, hash);
|
|
266
|
-
var tmp0_safe_receiver = i.
|
|
274
|
+
var tmp0_safe_receiver = i.next_20eer_k$();
|
|
267
275
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
268
276
|
hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
269
277
|
}
|
|
@@ -277,11 +285,11 @@
|
|
|
277
285
|
// Inline function 'kotlin.collections.map' call
|
|
278
286
|
// Inline function 'kotlin.collections.mapTo' call
|
|
279
287
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
280
|
-
var _iterator__ex2g4s = iterables.
|
|
281
|
-
while (_iterator__ex2g4s.
|
|
282
|
-
var item = _iterator__ex2g4s.
|
|
288
|
+
var _iterator__ex2g4s = iterables.iterator_jk1svi_k$();
|
|
289
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
290
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
283
291
|
var tmp$ret$2 = asIterable_0(item);
|
|
284
|
-
destination.
|
|
292
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
285
293
|
}
|
|
286
294
|
return merge(tmp, destination);
|
|
287
295
|
}
|
|
@@ -298,16 +306,16 @@
|
|
|
298
306
|
return sequence(insertAt$slambda_0(_this__u8e3s4, index, item, items, null));
|
|
299
307
|
}
|
|
300
308
|
function itemWiseEquals_1(iterable1, iterable2, comparator) {
|
|
301
|
-
var i = iterable1.
|
|
302
|
-
var j = iterable2.
|
|
303
|
-
while (i.
|
|
304
|
-
var a = i.
|
|
305
|
-
var b = j.
|
|
309
|
+
var i = iterable1.iterator_jk1svi_k$();
|
|
310
|
+
var j = iterable2.iterator_jk1svi_k$();
|
|
311
|
+
while (i.hasNext_bitz1p_k$() && j.hasNext_bitz1p_k$()) {
|
|
312
|
+
var a = i.next_20eer_k$();
|
|
313
|
+
var b = j.next_20eer_k$();
|
|
306
314
|
if (!comparator(a, b)) {
|
|
307
315
|
return false;
|
|
308
316
|
}
|
|
309
317
|
}
|
|
310
|
-
return i.
|
|
318
|
+
return i.hasNext_bitz1p_k$() === j.hasNext_bitz1p_k$();
|
|
311
319
|
}
|
|
312
320
|
function merge(comparator, iterables) {
|
|
313
321
|
return sequence(merge$slambda_0(iterables, comparator, null));
|
|
@@ -317,23 +325,23 @@
|
|
|
317
325
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
318
326
|
}
|
|
319
327
|
function sam$kotlin_Comparator$0(function_0) {
|
|
320
|
-
this.
|
|
328
|
+
this.function_1 = function_0;
|
|
321
329
|
}
|
|
322
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
323
|
-
return this.
|
|
330
|
+
protoOf(sam$kotlin_Comparator$0).compare_bczr_k$ = function (a, b) {
|
|
331
|
+
return this.function_1(a, b);
|
|
324
332
|
};
|
|
325
333
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
326
|
-
return this.
|
|
334
|
+
return this.compare_bczr_k$(a, b);
|
|
327
335
|
};
|
|
328
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
329
|
-
return this.
|
|
336
|
+
protoOf(sam$kotlin_Comparator$0).getFunctionDelegate_jtodtf_k$ = function () {
|
|
337
|
+
return this.function_1;
|
|
330
338
|
};
|
|
331
339
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
332
340
|
var tmp;
|
|
333
341
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
334
342
|
var tmp_0;
|
|
335
343
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
336
|
-
tmp_0 = equals(this.
|
|
344
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
337
345
|
} else {
|
|
338
346
|
tmp_0 = false;
|
|
339
347
|
}
|
|
@@ -344,202 +352,202 @@
|
|
|
344
352
|
return tmp;
|
|
345
353
|
};
|
|
346
354
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
347
|
-
return hashCode(this.
|
|
355
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
348
356
|
};
|
|
349
357
|
function itemWiseEquals$lambda(a, b) {
|
|
350
358
|
return equals(a, b);
|
|
351
359
|
}
|
|
352
360
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
353
|
-
this
|
|
361
|
+
this.$this_dropLast_1 = $this_dropLast;
|
|
354
362
|
CoroutineImpl.call(this, resultContinuation);
|
|
355
363
|
}
|
|
356
|
-
protoOf(dropLast$slambda).
|
|
357
|
-
var tmp = this.
|
|
358
|
-
tmp.
|
|
359
|
-
tmp.
|
|
360
|
-
return tmp.
|
|
364
|
+
protoOf(dropLast$slambda).invoke_5icac5_k$ = function ($this$sequence, $completion) {
|
|
365
|
+
var tmp = this.create_f6q6qh_k$($this$sequence, $completion);
|
|
366
|
+
tmp.result_1 = Unit_instance;
|
|
367
|
+
tmp.exception_1 = null;
|
|
368
|
+
return tmp.doResume_5yljmg_k$();
|
|
361
369
|
};
|
|
362
|
-
protoOf(dropLast$slambda).
|
|
363
|
-
return this.
|
|
370
|
+
protoOf(dropLast$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
371
|
+
return this.invoke_5icac5_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
364
372
|
};
|
|
365
|
-
protoOf(dropLast$slambda).
|
|
366
|
-
var suspendResult = this.
|
|
373
|
+
protoOf(dropLast$slambda).doResume_5yljmg_k$ = function () {
|
|
374
|
+
var suspendResult = this.result_1;
|
|
367
375
|
$sm: do
|
|
368
376
|
try {
|
|
369
|
-
var tmp = this.
|
|
377
|
+
var tmp = this.state_1;
|
|
370
378
|
switch (tmp) {
|
|
371
379
|
case 0:
|
|
372
|
-
this.
|
|
373
|
-
this.
|
|
374
|
-
this.
|
|
380
|
+
this.exceptionState_1 = 5;
|
|
381
|
+
this.i0__1 = this.$this_dropLast_1.iterator_jk1svi_k$();
|
|
382
|
+
this.state_1 = 1;
|
|
375
383
|
continue $sm;
|
|
376
384
|
case 1:
|
|
377
|
-
if (!this.
|
|
378
|
-
this.
|
|
385
|
+
if (!this.i0__1.hasNext_bitz1p_k$()) {
|
|
386
|
+
this.state_1 = 4;
|
|
379
387
|
continue $sm;
|
|
380
388
|
}
|
|
381
389
|
|
|
382
|
-
var current = this.
|
|
383
|
-
if (this.
|
|
384
|
-
this.
|
|
385
|
-
suspendResult = this.
|
|
390
|
+
var current = this.i0__1.next_20eer_k$();
|
|
391
|
+
if (this.i0__1.hasNext_bitz1p_k$()) {
|
|
392
|
+
this.state_1 = 2;
|
|
393
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(current, this);
|
|
386
394
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
387
395
|
return suspendResult;
|
|
388
396
|
}
|
|
389
397
|
continue $sm;
|
|
390
398
|
} else {
|
|
391
|
-
this.
|
|
399
|
+
this.state_1 = 3;
|
|
392
400
|
continue $sm;
|
|
393
401
|
}
|
|
394
402
|
|
|
395
403
|
case 2:
|
|
396
|
-
this.
|
|
404
|
+
this.state_1 = 3;
|
|
397
405
|
continue $sm;
|
|
398
406
|
case 3:
|
|
399
|
-
this.
|
|
407
|
+
this.state_1 = 1;
|
|
400
408
|
continue $sm;
|
|
401
409
|
case 4:
|
|
402
410
|
return Unit_instance;
|
|
403
411
|
case 5:
|
|
404
|
-
throw this.
|
|
412
|
+
throw this.exception_1;
|
|
405
413
|
}
|
|
406
414
|
} catch ($p) {
|
|
407
415
|
var e = $p;
|
|
408
|
-
if (this.
|
|
416
|
+
if (this.exceptionState_1 === 5) {
|
|
409
417
|
throw e;
|
|
410
418
|
} else {
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
419
|
+
this.state_1 = this.exceptionState_1;
|
|
420
|
+
this.exception_1 = e;
|
|
413
421
|
}
|
|
414
422
|
}
|
|
415
423
|
while (true);
|
|
416
424
|
};
|
|
417
|
-
protoOf(dropLast$slambda).
|
|
418
|
-
var i = new dropLast$slambda(this
|
|
419
|
-
i
|
|
425
|
+
protoOf(dropLast$slambda).create_f6q6qh_k$ = function ($this$sequence, completion) {
|
|
426
|
+
var i = new dropLast$slambda(this.$this_dropLast_1, completion);
|
|
427
|
+
i.$this$sequence_1 = $this$sequence;
|
|
420
428
|
return i;
|
|
421
429
|
};
|
|
422
430
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
423
431
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
424
432
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
425
|
-
return i.
|
|
433
|
+
return i.invoke_5icac5_k$($this$sequence, $completion);
|
|
426
434
|
}, 1);
|
|
427
435
|
}
|
|
428
436
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
429
|
-
this
|
|
430
|
-
this
|
|
431
|
-
this
|
|
432
|
-
this
|
|
437
|
+
this.$this_insertAt_1 = $this_insertAt;
|
|
438
|
+
this.$index_1 = $index;
|
|
439
|
+
this.$item_1 = $item;
|
|
440
|
+
this.$items_1 = $items;
|
|
433
441
|
CoroutineImpl.call(this, resultContinuation);
|
|
434
442
|
}
|
|
435
|
-
protoOf(insertAt$slambda).
|
|
436
|
-
var tmp = this.
|
|
437
|
-
tmp.
|
|
438
|
-
tmp.
|
|
439
|
-
return tmp.
|
|
443
|
+
protoOf(insertAt$slambda).invoke_5icac5_k$ = function ($this$sequence, $completion) {
|
|
444
|
+
var tmp = this.create_f6q6qh_k$($this$sequence, $completion);
|
|
445
|
+
tmp.result_1 = Unit_instance;
|
|
446
|
+
tmp.exception_1 = null;
|
|
447
|
+
return tmp.doResume_5yljmg_k$();
|
|
440
448
|
};
|
|
441
|
-
protoOf(insertAt$slambda).
|
|
442
|
-
return this.
|
|
449
|
+
protoOf(insertAt$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
450
|
+
return this.invoke_5icac5_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
443
451
|
};
|
|
444
|
-
protoOf(insertAt$slambda).
|
|
445
|
-
var suspendResult = this.
|
|
452
|
+
protoOf(insertAt$slambda).doResume_5yljmg_k$ = function () {
|
|
453
|
+
var suspendResult = this.result_1;
|
|
446
454
|
$sm: do
|
|
447
455
|
try {
|
|
448
|
-
var tmp = this.
|
|
456
|
+
var tmp = this.state_1;
|
|
449
457
|
switch (tmp) {
|
|
450
458
|
case 0:
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
459
|
+
this.exceptionState_1 = 7;
|
|
460
|
+
this._iterator_1_yqohr1__1 = asIterable_0(withIndex(this.$this_insertAt_1)).iterator_jk1svi_k$();
|
|
461
|
+
this.state_1 = 1;
|
|
454
462
|
continue $sm;
|
|
455
463
|
case 1:
|
|
456
|
-
if (!this.
|
|
457
|
-
this.
|
|
464
|
+
if (!this._iterator_1_yqohr1__1.hasNext_bitz1p_k$()) {
|
|
465
|
+
this.state_1 = 6;
|
|
458
466
|
continue $sm;
|
|
459
467
|
}
|
|
460
468
|
|
|
461
|
-
var _destruct__k2r9zo = this.
|
|
462
|
-
var i = _destruct__k2r9zo.
|
|
463
|
-
this.
|
|
464
|
-
if (i === this
|
|
465
|
-
this.
|
|
466
|
-
suspendResult = this.
|
|
469
|
+
var _destruct__k2r9zo = this._iterator_1_yqohr1__1.next_20eer_k$();
|
|
470
|
+
var i = _destruct__k2r9zo.component1_7eebsc_k$();
|
|
471
|
+
this.x0__1 = _destruct__k2r9zo.component2_7eebsb_k$();
|
|
472
|
+
if (i === this.$index_1) {
|
|
473
|
+
this.state_1 = 2;
|
|
474
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.$item_1, this);
|
|
467
475
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
468
476
|
return suspendResult;
|
|
469
477
|
}
|
|
470
478
|
continue $sm;
|
|
471
479
|
} else {
|
|
472
|
-
this.
|
|
480
|
+
this.state_1 = 4;
|
|
473
481
|
continue $sm;
|
|
474
482
|
}
|
|
475
483
|
|
|
476
484
|
case 2:
|
|
477
|
-
this.
|
|
478
|
-
suspendResult = this.
|
|
485
|
+
this.state_1 = 3;
|
|
486
|
+
suspendResult = this.$this$sequence_1.yieldAll_nwjlo5_k$(asIterable(this.$items_1), this);
|
|
479
487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
480
488
|
return suspendResult;
|
|
481
489
|
}
|
|
482
490
|
|
|
483
491
|
continue $sm;
|
|
484
492
|
case 3:
|
|
485
|
-
this.
|
|
493
|
+
this.state_1 = 4;
|
|
486
494
|
continue $sm;
|
|
487
495
|
case 4:
|
|
488
|
-
this.
|
|
489
|
-
suspendResult = this.
|
|
496
|
+
this.state_1 = 5;
|
|
497
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.x0__1, this);
|
|
490
498
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
491
499
|
return suspendResult;
|
|
492
500
|
}
|
|
493
501
|
|
|
494
502
|
continue $sm;
|
|
495
503
|
case 5:
|
|
496
|
-
this.
|
|
504
|
+
this.state_1 = 1;
|
|
497
505
|
continue $sm;
|
|
498
506
|
case 6:
|
|
499
507
|
return Unit_instance;
|
|
500
508
|
case 7:
|
|
501
|
-
throw this.
|
|
509
|
+
throw this.exception_1;
|
|
502
510
|
}
|
|
503
511
|
} catch ($p) {
|
|
504
512
|
var e = $p;
|
|
505
|
-
if (this.
|
|
513
|
+
if (this.exceptionState_1 === 7) {
|
|
506
514
|
throw e;
|
|
507
515
|
} else {
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
516
|
+
this.state_1 = this.exceptionState_1;
|
|
517
|
+
this.exception_1 = e;
|
|
510
518
|
}
|
|
511
519
|
}
|
|
512
520
|
while (true);
|
|
513
521
|
};
|
|
514
|
-
protoOf(insertAt$slambda).
|
|
515
|
-
var i = new insertAt$slambda(this
|
|
516
|
-
i
|
|
522
|
+
protoOf(insertAt$slambda).create_f6q6qh_k$ = function ($this$sequence, completion) {
|
|
523
|
+
var i = new insertAt$slambda(this.$this_insertAt_1, this.$index_1, this.$item_1, this.$items_1, completion);
|
|
524
|
+
i.$this$sequence_1 = $this$sequence;
|
|
517
525
|
return i;
|
|
518
526
|
};
|
|
519
527
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
520
528
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
521
529
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
522
|
-
return i.
|
|
530
|
+
return i.invoke_5icac5_k$($this$sequence, $completion);
|
|
523
531
|
}, 1);
|
|
524
532
|
}
|
|
525
533
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
526
|
-
this.
|
|
534
|
+
this.function_1 = function_0;
|
|
527
535
|
}
|
|
528
|
-
protoOf(sam$kotlin_Comparator$0_0).
|
|
529
|
-
return this.
|
|
536
|
+
protoOf(sam$kotlin_Comparator$0_0).compare_bczr_k$ = function (a, b) {
|
|
537
|
+
return this.function_1(a, b);
|
|
530
538
|
};
|
|
531
539
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
532
|
-
return this.
|
|
540
|
+
return this.compare_bczr_k$(a, b);
|
|
533
541
|
};
|
|
534
|
-
protoOf(sam$kotlin_Comparator$0_0).
|
|
535
|
-
return this.
|
|
542
|
+
protoOf(sam$kotlin_Comparator$0_0).getFunctionDelegate_jtodtf_k$ = function () {
|
|
543
|
+
return this.function_1;
|
|
536
544
|
};
|
|
537
545
|
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
538
546
|
var tmp;
|
|
539
547
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
540
548
|
var tmp_0;
|
|
541
549
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
542
|
-
tmp_0 = equals(this.
|
|
550
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
543
551
|
} else {
|
|
544
552
|
tmp_0 = false;
|
|
545
553
|
}
|
|
@@ -550,165 +558,202 @@
|
|
|
550
558
|
return tmp;
|
|
551
559
|
};
|
|
552
560
|
protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
|
|
553
|
-
return hashCode(this.
|
|
561
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
554
562
|
};
|
|
555
563
|
function merge$slambda$lambda(it) {
|
|
556
564
|
return cursor_0(it);
|
|
557
565
|
}
|
|
558
566
|
function merge$slambda$lambda_0(it) {
|
|
559
|
-
return it.
|
|
567
|
+
return it.get_isOver_ew3p5z_k$();
|
|
560
568
|
}
|
|
561
569
|
function merge$slambda$lambda_1(it) {
|
|
562
|
-
return ensureNotNull(it.
|
|
570
|
+
return ensureNotNull(it.get_current_jwi6j4_k$());
|
|
563
571
|
}
|
|
564
572
|
function merge$slambda$lambda_2($comparator) {
|
|
565
573
|
return function (a, b) {
|
|
566
|
-
return $comparator.compare(a.
|
|
574
|
+
return $comparator.compare(a.get_value_j01efc_k$(), b.get_value_j01efc_k$());
|
|
567
575
|
};
|
|
568
576
|
}
|
|
569
577
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
570
|
-
this
|
|
571
|
-
this
|
|
578
|
+
this.$iterables_1 = $iterables;
|
|
579
|
+
this.$comparator_1 = $comparator;
|
|
572
580
|
CoroutineImpl.call(this, resultContinuation);
|
|
573
581
|
}
|
|
574
|
-
protoOf(merge$slambda).
|
|
575
|
-
var tmp = this.
|
|
576
|
-
tmp.
|
|
577
|
-
tmp.
|
|
578
|
-
return tmp.
|
|
582
|
+
protoOf(merge$slambda).invoke_5icac5_k$ = function ($this$sequence, $completion) {
|
|
583
|
+
var tmp = this.create_f6q6qh_k$($this$sequence, $completion);
|
|
584
|
+
tmp.result_1 = Unit_instance;
|
|
585
|
+
tmp.exception_1 = null;
|
|
586
|
+
return tmp.doResume_5yljmg_k$();
|
|
579
587
|
};
|
|
580
|
-
protoOf(merge$slambda).
|
|
581
|
-
return this.
|
|
588
|
+
protoOf(merge$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
589
|
+
return this.invoke_5icac5_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
582
590
|
};
|
|
583
|
-
protoOf(merge$slambda).
|
|
584
|
-
var suspendResult = this.
|
|
591
|
+
protoOf(merge$slambda).doResume_5yljmg_k$ = function () {
|
|
592
|
+
var suspendResult = this.result_1;
|
|
585
593
|
$sm: do
|
|
586
594
|
try {
|
|
587
|
-
var tmp = this.
|
|
595
|
+
var tmp = this.state_1;
|
|
588
596
|
switch (tmp) {
|
|
589
597
|
case 0:
|
|
590
|
-
this.
|
|
598
|
+
this.exceptionState_1 = 3;
|
|
591
599
|
var tmp_0 = this;
|
|
592
|
-
var tmp_1 = asSequence(this
|
|
600
|
+
var tmp_1 = asSequence(this.$iterables_1);
|
|
593
601
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
594
|
-
tmp_0.
|
|
595
|
-
this.
|
|
602
|
+
tmp_0.pipeline1__1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
603
|
+
this.state_1 = 1;
|
|
596
604
|
continue $sm;
|
|
597
605
|
case 1:
|
|
598
|
-
if (!!this.
|
|
599
|
-
this.
|
|
606
|
+
if (!!this.pipeline1__1.isEmpty_y1axqb_k$()) {
|
|
607
|
+
this.state_1 = 4;
|
|
600
608
|
continue $sm;
|
|
601
609
|
}
|
|
602
610
|
|
|
603
|
-
var tmp_3 = asSequence(this.
|
|
611
|
+
var tmp_3 = asSequence(this.pipeline1__1);
|
|
604
612
|
var tmp_4 = indexed(map(tmp_3, merge$slambda$lambda_1));
|
|
605
|
-
var tmp_5 = merge$slambda$lambda_2(this
|
|
613
|
+
var tmp_5 = merge$slambda$lambda_2(this.$comparator_1);
|
|
606
614
|
var _destruct__k2r9zo = ensureNotNull(minWithOrNull(tmp_4, new sam$kotlin_Comparator$0_0(tmp_5)));
|
|
607
|
-
this.
|
|
608
|
-
var minValue = _destruct__k2r9zo.
|
|
609
|
-
this.
|
|
610
|
-
suspendResult = this.
|
|
615
|
+
this.minIndex0__1 = _destruct__k2r9zo.component1_7eebsc_k$();
|
|
616
|
+
var minValue = _destruct__k2r9zo.component2_7eebsb_k$();
|
|
617
|
+
this.state_1 = 2;
|
|
618
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(minValue, this);
|
|
611
619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
612
620
|
return suspendResult;
|
|
613
621
|
}
|
|
614
622
|
|
|
615
623
|
continue $sm;
|
|
616
624
|
case 2:
|
|
617
|
-
var it = this.
|
|
625
|
+
var it = this.pipeline1__1.get_c1px32_k$(this.minIndex0__1).get_next_wor1vg_k$();
|
|
618
626
|
var tmp_6;
|
|
619
|
-
if (it.
|
|
620
|
-
tmp_6 = this.
|
|
627
|
+
if (it.get_isOver_ew3p5z_k$()) {
|
|
628
|
+
tmp_6 = this.pipeline1__1.removeAt_6niowx_k$(this.minIndex0__1);
|
|
621
629
|
} else {
|
|
622
|
-
this.
|
|
630
|
+
this.pipeline1__1.set_82063s_k$(this.minIndex0__1, it);
|
|
623
631
|
tmp_6 = Unit_instance;
|
|
624
632
|
}
|
|
625
633
|
|
|
626
|
-
this.
|
|
634
|
+
this.state_1 = 1;
|
|
627
635
|
continue $sm;
|
|
628
636
|
case 3:
|
|
629
|
-
throw this.
|
|
637
|
+
throw this.exception_1;
|
|
630
638
|
case 4:
|
|
631
639
|
return Unit_instance;
|
|
632
640
|
}
|
|
633
641
|
} catch ($p) {
|
|
634
642
|
var e = $p;
|
|
635
|
-
if (this.
|
|
643
|
+
if (this.exceptionState_1 === 3) {
|
|
636
644
|
throw e;
|
|
637
645
|
} else {
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
646
|
+
this.state_1 = this.exceptionState_1;
|
|
647
|
+
this.exception_1 = e;
|
|
640
648
|
}
|
|
641
649
|
}
|
|
642
650
|
while (true);
|
|
643
651
|
};
|
|
644
|
-
protoOf(merge$slambda).
|
|
645
|
-
var i = new merge$slambda(this
|
|
646
|
-
i
|
|
652
|
+
protoOf(merge$slambda).create_f6q6qh_k$ = function ($this$sequence, completion) {
|
|
653
|
+
var i = new merge$slambda(this.$iterables_1, this.$comparator_1, completion);
|
|
654
|
+
i.$this$sequence_1 = $this$sequence;
|
|
647
655
|
return i;
|
|
648
656
|
};
|
|
649
657
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
650
658
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
651
659
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
652
|
-
return i.
|
|
660
|
+
return i.invoke_5icac5_k$($this$sequence, $completion);
|
|
653
661
|
}, 1);
|
|
654
662
|
}
|
|
655
663
|
function indexed$lambda(it, i) {
|
|
656
|
-
return Companion_instance_2.
|
|
664
|
+
return Companion_instance_2.of_yryaio_k$(i, it);
|
|
657
665
|
}
|
|
658
666
|
function Companion_3() {
|
|
659
667
|
}
|
|
660
|
-
protoOf(Companion_3).
|
|
668
|
+
protoOf(Companion_3).of_3npvtg_k$ = function (index, value) {
|
|
661
669
|
return new LongIndexedImpl(index, value);
|
|
662
670
|
};
|
|
663
671
|
var Companion_instance_3;
|
|
664
|
-
function
|
|
672
|
+
function Companion_getInstance_5() {
|
|
665
673
|
return Companion_instance_3;
|
|
666
674
|
}
|
|
667
675
|
function LongIndexed() {
|
|
668
676
|
}
|
|
669
677
|
function Companion_4() {
|
|
678
|
+
Companion_instance_4 = this;
|
|
679
|
+
var tmp = this;
|
|
680
|
+
// Inline function 'kotlin.text.toRegex' call
|
|
681
|
+
var this_0 = '-?[0-9]+';
|
|
682
|
+
tmp.INT_REGEX_1 = Regex_init_$Create$(this_0);
|
|
683
|
+
}
|
|
684
|
+
var Companion_instance_4;
|
|
685
|
+
function Companion_getInstance_6() {
|
|
686
|
+
if (Companion_instance_4 == null)
|
|
687
|
+
new Companion_4();
|
|
688
|
+
return Companion_instance_4;
|
|
689
|
+
}
|
|
690
|
+
function _get_stringRepresentation__xuqjt9($this, $receiver) {
|
|
691
|
+
return $this.numberCache_1.getOrSet_4wyc57_k$($receiver, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($receiver));
|
|
692
|
+
}
|
|
693
|
+
function NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($this_stringRepresentation) {
|
|
694
|
+
return function () {
|
|
695
|
+
return toString($this_stringRepresentation);
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
function NumberTypeTester() {
|
|
699
|
+
Companion_getInstance_6();
|
|
700
|
+
this.numberCache_1 = Companion_instance.simpleLru_axkvh1_k$(8);
|
|
701
|
+
}
|
|
702
|
+
protoOf(NumberTypeTester).get_isInteger_cpv3bm_k$ = function (_this__u8e3s4) {
|
|
703
|
+
return Companion_getInstance_6().INT_REGEX_1.matches_evli6i_k$(_get_stringRepresentation__xuqjt9(this, _this__u8e3s4));
|
|
704
|
+
};
|
|
705
|
+
protoOf(NumberTypeTester).toInteger_cr7ezq_k$ = function (_this__u8e3s4) {
|
|
706
|
+
return Companion_getInstance().parse(_get_stringRepresentation__xuqjt9(this, _this__u8e3s4));
|
|
707
|
+
};
|
|
708
|
+
protoOf(NumberTypeTester).toDecimal_f0xy7b_k$ = function (_this__u8e3s4) {
|
|
709
|
+
return Companion_getInstance_0().parse(_get_stringRepresentation__xuqjt9(this, _this__u8e3s4));
|
|
710
|
+
};
|
|
711
|
+
function Companion_5() {
|
|
670
712
|
}
|
|
671
|
-
protoOf(
|
|
713
|
+
protoOf(Companion_5).some_qfcpk3_k$ = function (value) {
|
|
672
714
|
return new Some(value);
|
|
673
715
|
};
|
|
674
|
-
protoOf(
|
|
716
|
+
protoOf(Companion_5).of_f8fyqr_k$ = function (value) {
|
|
675
717
|
var tmp;
|
|
676
718
|
if (value == null) {
|
|
677
|
-
tmp = this.
|
|
719
|
+
tmp = this.none_6mb3x4_k$();
|
|
678
720
|
} else {
|
|
679
|
-
tmp = this.
|
|
721
|
+
tmp = this.some_qfcpk3_k$(value);
|
|
680
722
|
}
|
|
681
723
|
return tmp;
|
|
682
724
|
};
|
|
683
|
-
protoOf(
|
|
725
|
+
protoOf(Companion_5).none_6mb3x4_k$ = function () {
|
|
684
726
|
return None_getInstance();
|
|
685
727
|
};
|
|
686
|
-
var
|
|
687
|
-
function
|
|
688
|
-
return
|
|
728
|
+
var Companion_instance_5;
|
|
729
|
+
function Companion_getInstance_7() {
|
|
730
|
+
return Companion_instance_5;
|
|
689
731
|
}
|
|
690
732
|
function Some(value) {
|
|
691
733
|
Optional.call(this);
|
|
692
|
-
this.
|
|
734
|
+
this.value_1 = value;
|
|
693
735
|
}
|
|
694
|
-
protoOf(Some).
|
|
695
|
-
return this.
|
|
736
|
+
protoOf(Some).get_value_j01efc_k$ = function () {
|
|
737
|
+
return this.value_1;
|
|
696
738
|
};
|
|
697
|
-
protoOf(Some).
|
|
739
|
+
protoOf(Some).get_isPresent_6c5nco_k$ = function () {
|
|
698
740
|
return true;
|
|
699
741
|
};
|
|
742
|
+
protoOf(Some).map_nscup_k$ = function (function_0) {
|
|
743
|
+
return new Some(function_0(this.value_1));
|
|
744
|
+
};
|
|
700
745
|
protoOf(Some).toString = function () {
|
|
701
|
-
return 'Some(' +
|
|
746
|
+
return 'Some(' + toString_0(this.value_1) + ')';
|
|
702
747
|
};
|
|
703
748
|
protoOf(Some).hashCode = function () {
|
|
704
|
-
return this.
|
|
749
|
+
return this.value_1 == null ? 0 : hashCode(this.value_1);
|
|
705
750
|
};
|
|
706
751
|
protoOf(Some).equals = function (other) {
|
|
707
752
|
if (this === other)
|
|
708
753
|
return true;
|
|
709
754
|
if (!(other instanceof Some))
|
|
710
755
|
return false;
|
|
711
|
-
if (!equals(this.
|
|
756
|
+
if (!equals(this.value_1, other.value_1))
|
|
712
757
|
return false;
|
|
713
758
|
return true;
|
|
714
759
|
};
|
|
@@ -716,12 +761,18 @@
|
|
|
716
761
|
None_instance = this;
|
|
717
762
|
Optional.call(this);
|
|
718
763
|
}
|
|
719
|
-
protoOf(None).
|
|
764
|
+
protoOf(None).get_value_j01efc_k$ = function () {
|
|
720
765
|
return null;
|
|
721
766
|
};
|
|
722
|
-
protoOf(None).
|
|
767
|
+
protoOf(None).get_isPresent_6c5nco_k$ = function () {
|
|
723
768
|
return false;
|
|
724
769
|
};
|
|
770
|
+
protoOf(None).map_6fgklf_k$ = function (function_0) {
|
|
771
|
+
return None_getInstance();
|
|
772
|
+
};
|
|
773
|
+
protoOf(None).map_nscup_k$ = function (function_0) {
|
|
774
|
+
return this.map_6fgklf_k$(function_0);
|
|
775
|
+
};
|
|
725
776
|
protoOf(None).toString = function () {
|
|
726
777
|
return 'None';
|
|
727
778
|
};
|
|
@@ -733,16 +784,16 @@
|
|
|
733
784
|
}
|
|
734
785
|
function Optional() {
|
|
735
786
|
}
|
|
736
|
-
protoOf(Optional).
|
|
737
|
-
return !this.
|
|
787
|
+
protoOf(Optional).get_isAbsent_qtpwwc_k$ = function () {
|
|
788
|
+
return !this.get_isPresent_6c5nco_k$();
|
|
738
789
|
};
|
|
739
790
|
function Taggable() {
|
|
740
791
|
}
|
|
741
792
|
function setTag(_this__u8e3s4, key, value) {
|
|
742
793
|
// Inline function 'kotlin.also' call
|
|
743
|
-
var this_0 = toMutableMap(_this__u8e3s4.
|
|
794
|
+
var this_0 = toMutableMap(_this__u8e3s4.get_tags_wousf6_k$());
|
|
744
795
|
// Inline function 'kotlin.collections.set' call
|
|
745
|
-
this_0.
|
|
796
|
+
this_0.put_4fpzoq_k$(key, value);
|
|
746
797
|
return setTags(_this__u8e3s4, this_0);
|
|
747
798
|
}
|
|
748
799
|
function setTags(_this__u8e3s4, tags) {
|
|
@@ -752,121 +803,121 @@
|
|
|
752
803
|
function synchronizedOnSelf(_this__u8e3s4, action) {
|
|
753
804
|
return synchronizedOn(_this__u8e3s4, action);
|
|
754
805
|
}
|
|
755
|
-
function
|
|
806
|
+
function Companion_6() {
|
|
756
807
|
}
|
|
757
|
-
protoOf(
|
|
808
|
+
protoOf(Companion_6).of_g3gwgz_k$ = function (source) {
|
|
758
809
|
var tmp;
|
|
759
|
-
if (source.
|
|
810
|
+
if (source.hasNext_bitz1p_k$()) {
|
|
760
811
|
tmp = new LazyCursor(source);
|
|
761
812
|
} else {
|
|
762
813
|
tmp = EmptyCursor_getInstance();
|
|
763
814
|
}
|
|
764
815
|
return tmp;
|
|
765
816
|
};
|
|
766
|
-
var
|
|
767
|
-
function
|
|
768
|
-
return
|
|
817
|
+
var Companion_instance_6;
|
|
818
|
+
function Companion_getInstance_8() {
|
|
819
|
+
return Companion_instance_6;
|
|
769
820
|
}
|
|
770
821
|
function AbstractCursor$iterator$1(this$0) {
|
|
771
|
-
this.
|
|
822
|
+
this.current_1 = this$0;
|
|
772
823
|
}
|
|
773
|
-
protoOf(AbstractCursor$iterator$1).
|
|
774
|
-
return !this.
|
|
824
|
+
protoOf(AbstractCursor$iterator$1).hasNext_bitz1p_k$ = function () {
|
|
825
|
+
return !this.current_1.get_isOver_ew3p5z_k$();
|
|
775
826
|
};
|
|
776
|
-
protoOf(AbstractCursor$iterator$1).
|
|
777
|
-
var result = this.
|
|
778
|
-
this.
|
|
827
|
+
protoOf(AbstractCursor$iterator$1).next_20eer_k$ = function () {
|
|
828
|
+
var result = this.current_1.get_current_jwi6j4_k$();
|
|
829
|
+
this.current_1 = this.current_1.get_next_wor1vg_k$();
|
|
779
830
|
return ensureNotNull(result);
|
|
780
831
|
};
|
|
781
832
|
function AbstractCursor() {
|
|
782
833
|
}
|
|
783
834
|
protoOf(AbstractCursor).toString = function () {
|
|
784
|
-
return this.
|
|
835
|
+
return this.get_isOver_ew3p5z_k$() ? '[]' : !this.get_hasNext_csdx38_k$() ? '[' + toString_0(this.get_current_jwi6j4_k$()) + ']' : '[' + toString_0(this.get_current_jwi6j4_k$()) + ', ...]';
|
|
785
836
|
};
|
|
786
|
-
protoOf(AbstractCursor).
|
|
837
|
+
protoOf(AbstractCursor).iterator_jk1svi_k$ = function () {
|
|
787
838
|
return new AbstractCursor$iterator$1(this);
|
|
788
839
|
};
|
|
789
840
|
protoOf(AbstractCursor).iterator = function () {
|
|
790
|
-
return this.
|
|
841
|
+
return this.iterator_jk1svi_k$();
|
|
791
842
|
};
|
|
792
|
-
protoOf(AbstractCursor).
|
|
843
|
+
protoOf(AbstractCursor).get_isLazy_ew1d53_k$ = function () {
|
|
793
844
|
return false;
|
|
794
845
|
};
|
|
795
|
-
protoOf(AbstractCursor).
|
|
846
|
+
protoOf(AbstractCursor).map_nscup_k$ = function (mapper) {
|
|
796
847
|
return new MapperCursor(this, mapper);
|
|
797
848
|
};
|
|
798
849
|
protoOf(AbstractCursor).map = function (mapper) {
|
|
799
|
-
return this.
|
|
850
|
+
return this.map_nscup_k$(mapper);
|
|
800
851
|
};
|
|
801
852
|
function CachedImpl(generator) {
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
853
|
+
this.generator_1 = generator;
|
|
854
|
+
this.cached_1 = Companion_instance_5.none_6mb3x4_k$();
|
|
804
855
|
}
|
|
805
|
-
protoOf(CachedImpl).
|
|
806
|
-
return this.
|
|
856
|
+
protoOf(CachedImpl).get_isValid_zh4f7b_k$ = function () {
|
|
857
|
+
return this.cached_1.get_isPresent_6c5nco_k$();
|
|
807
858
|
};
|
|
808
|
-
protoOf(CachedImpl).
|
|
809
|
-
return this.
|
|
859
|
+
protoOf(CachedImpl).get_isInvalid_vc54uc_k$ = function () {
|
|
860
|
+
return this.cached_1.get_isAbsent_qtpwwc_k$();
|
|
810
861
|
};
|
|
811
|
-
protoOf(CachedImpl).
|
|
812
|
-
this.
|
|
813
|
-
return ensureNotNull(this.
|
|
862
|
+
protoOf(CachedImpl).get_value_j01efc_k$ = function () {
|
|
863
|
+
this.regenerate_1hy6nc_k$();
|
|
864
|
+
return ensureNotNull(this.cached_1.get_value_j01efc_k$());
|
|
814
865
|
};
|
|
815
|
-
protoOf(CachedImpl).
|
|
816
|
-
if (this.
|
|
817
|
-
this.
|
|
866
|
+
protoOf(CachedImpl).regenerate_1hy6nc_k$ = function () {
|
|
867
|
+
if (this.get_isInvalid_vc54uc_k$()) {
|
|
868
|
+
this.cached_1 = Companion_instance_5.some_qfcpk3_k$(this.generator_1());
|
|
818
869
|
}
|
|
819
870
|
};
|
|
820
|
-
protoOf(CachedImpl).
|
|
821
|
-
this.
|
|
871
|
+
protoOf(CachedImpl).invalidate_p4aufp_k$ = function () {
|
|
872
|
+
this.cached_1 = Companion_instance_5.none_6mb3x4_k$();
|
|
822
873
|
};
|
|
823
874
|
protoOf(CachedImpl).toString = function () {
|
|
824
|
-
return 'CachedImpl(generator=' +
|
|
875
|
+
return 'CachedImpl(generator=' + toString(this.generator_1) + ')';
|
|
825
876
|
};
|
|
826
877
|
protoOf(CachedImpl).hashCode = function () {
|
|
827
|
-
return hashCode(this.
|
|
878
|
+
return hashCode(this.generator_1);
|
|
828
879
|
};
|
|
829
880
|
protoOf(CachedImpl).equals = function (other) {
|
|
830
881
|
if (this === other)
|
|
831
882
|
return true;
|
|
832
883
|
if (!(other instanceof CachedImpl))
|
|
833
884
|
return false;
|
|
834
|
-
if (!equals(this.
|
|
885
|
+
if (!equals(this.generator_1, other.generator_1))
|
|
835
886
|
return false;
|
|
836
887
|
return true;
|
|
837
888
|
};
|
|
838
889
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
839
890
|
return function () {
|
|
840
|
-
return this$0.
|
|
891
|
+
return this$0.first_1.get_hasNext_csdx38_k$() ? new ConjunctionCursor(this$0.first_1.get_next_wor1vg_k$(), this$0.second_1) : this$0.second_1.get_isLazy_ew1d53_k$() ? this$0.second_1.get_next_wor1vg_k$() : this$0.second_1;
|
|
841
892
|
};
|
|
842
893
|
}
|
|
843
894
|
function ConjunctionCursor$_get_next_$ref_xfvrtr() {
|
|
844
895
|
return constructCallableReference(function (p0) {
|
|
845
|
-
return p0.
|
|
846
|
-
}, 1, 0,
|
|
896
|
+
return p0.get_next_wor1vg_k$();
|
|
897
|
+
}, 1, 0, 2);
|
|
847
898
|
}
|
|
848
899
|
function ConjunctionCursor(first, second) {
|
|
849
900
|
AbstractCursor.call(this);
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
901
|
+
this.first_1 = first;
|
|
902
|
+
this.second_1 = second;
|
|
852
903
|
var tmp = this;
|
|
853
|
-
tmp.
|
|
904
|
+
tmp.next$delegate_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
854
905
|
}
|
|
855
|
-
protoOf(ConjunctionCursor).
|
|
856
|
-
return this.
|
|
906
|
+
protoOf(ConjunctionCursor).get_isOver_ew3p5z_k$ = function () {
|
|
907
|
+
return this.first_1.get_isOver_ew3p5z_k$() && this.second_1.get_isOver_ew3p5z_k$();
|
|
857
908
|
};
|
|
858
|
-
protoOf(ConjunctionCursor).
|
|
859
|
-
var tmp0 = this.
|
|
909
|
+
protoOf(ConjunctionCursor).get_next_wor1vg_k$ = function () {
|
|
910
|
+
var tmp0 = this.next$delegate_1;
|
|
860
911
|
var tmp = KProperty1;
|
|
861
912
|
// Inline function 'kotlin.getValue' call
|
|
862
913
|
getPropertyCallableRef('next', 1, tmp, ConjunctionCursor$_get_next_$ref_xfvrtr(), null);
|
|
863
|
-
return tmp0.
|
|
914
|
+
return tmp0.get_value_j01efc_k$();
|
|
864
915
|
};
|
|
865
|
-
protoOf(ConjunctionCursor).
|
|
866
|
-
return this.
|
|
916
|
+
protoOf(ConjunctionCursor).get_current_jwi6j4_k$ = function () {
|
|
917
|
+
return this.first_1.get_hasNext_csdx38_k$() ? this.first_1.get_current_jwi6j4_k$() : this.second_1.get_current_jwi6j4_k$();
|
|
867
918
|
};
|
|
868
|
-
protoOf(ConjunctionCursor).
|
|
869
|
-
return this.
|
|
919
|
+
protoOf(ConjunctionCursor).get_hasNext_csdx38_k$ = function () {
|
|
920
|
+
return this.first_1.get_hasNext_csdx38_k$() || this.second_1.get_hasNext_csdx38_k$();
|
|
870
921
|
};
|
|
871
922
|
protoOf(ConjunctionCursor).equals = function (other) {
|
|
872
923
|
if (this === other)
|
|
@@ -875,44 +926,44 @@
|
|
|
875
926
|
return false;
|
|
876
927
|
if (!(other instanceof ConjunctionCursor))
|
|
877
928
|
THROW_CCE();
|
|
878
|
-
if (!equals(this.
|
|
929
|
+
if (!equals(this.first_1, other.first_1))
|
|
879
930
|
return false;
|
|
880
|
-
if (!equals(this.
|
|
931
|
+
if (!equals(this.second_1, other.second_1))
|
|
881
932
|
return false;
|
|
882
933
|
return true;
|
|
883
934
|
};
|
|
884
935
|
protoOf(ConjunctionCursor).hashCode = function () {
|
|
885
|
-
var result = hashCode(this.
|
|
886
|
-
result = imul(31, result) + hashCode(this.
|
|
936
|
+
var result = hashCode(this.first_1);
|
|
937
|
+
result = imul(31, result) + hashCode(this.second_1) | 0;
|
|
887
938
|
return result;
|
|
888
939
|
};
|
|
889
940
|
function EmptyCursor() {
|
|
890
941
|
EmptyCursor_instance = this;
|
|
891
942
|
AbstractCursor.call(this);
|
|
892
943
|
}
|
|
893
|
-
protoOf(EmptyCursor).
|
|
944
|
+
protoOf(EmptyCursor).get_next_wor1vg_k$ = function () {
|
|
894
945
|
throw NoSuchElementException_init_$Create$();
|
|
895
946
|
};
|
|
896
|
-
protoOf(EmptyCursor).
|
|
947
|
+
protoOf(EmptyCursor).get_current_jwi6j4_k$ = function () {
|
|
897
948
|
return null;
|
|
898
949
|
};
|
|
899
|
-
protoOf(EmptyCursor).
|
|
950
|
+
protoOf(EmptyCursor).get_hasNext_csdx38_k$ = function () {
|
|
900
951
|
return false;
|
|
901
952
|
};
|
|
902
|
-
protoOf(EmptyCursor).
|
|
953
|
+
protoOf(EmptyCursor).get_isOver_ew3p5z_k$ = function () {
|
|
903
954
|
return true;
|
|
904
955
|
};
|
|
905
956
|
protoOf(EmptyCursor).toString = function () {
|
|
906
957
|
return protoOf(AbstractCursor).toString.call(this);
|
|
907
958
|
};
|
|
908
|
-
protoOf(EmptyCursor).
|
|
959
|
+
protoOf(EmptyCursor).map_6fgklf_k$ = function (mapper) {
|
|
909
960
|
return this;
|
|
910
961
|
};
|
|
911
962
|
protoOf(EmptyCursor).map = function (mapper) {
|
|
912
|
-
return this.
|
|
963
|
+
return this.map_6fgklf_k$(mapper);
|
|
913
964
|
};
|
|
914
|
-
protoOf(EmptyCursor).
|
|
915
|
-
return this.
|
|
965
|
+
protoOf(EmptyCursor).map_nscup_k$ = function (mapper) {
|
|
966
|
+
return this.map_6fgklf_k$(mapper);
|
|
916
967
|
};
|
|
917
968
|
var EmptyCursor_instance;
|
|
918
969
|
function EmptyCursor_getInstance() {
|
|
@@ -921,27 +972,27 @@
|
|
|
921
972
|
return EmptyCursor_instance;
|
|
922
973
|
}
|
|
923
974
|
function IntIndexedImpl(index, value) {
|
|
924
|
-
this.
|
|
925
|
-
this.
|
|
975
|
+
this.index_1 = index;
|
|
976
|
+
this.value_1 = value;
|
|
926
977
|
}
|
|
927
|
-
protoOf(IntIndexedImpl).
|
|
928
|
-
return this.
|
|
978
|
+
protoOf(IntIndexedImpl).get_index_it478p_k$ = function () {
|
|
979
|
+
return this.index_1;
|
|
929
980
|
};
|
|
930
|
-
protoOf(IntIndexedImpl).
|
|
931
|
-
return this.
|
|
981
|
+
protoOf(IntIndexedImpl).get_value_j01efc_k$ = function () {
|
|
982
|
+
return this.value_1;
|
|
932
983
|
};
|
|
933
|
-
protoOf(IntIndexedImpl).
|
|
934
|
-
return this.
|
|
984
|
+
protoOf(IntIndexedImpl).component1_7eebsc_k$ = function () {
|
|
985
|
+
return this.index_1;
|
|
935
986
|
};
|
|
936
|
-
protoOf(IntIndexedImpl).
|
|
937
|
-
return this.
|
|
987
|
+
protoOf(IntIndexedImpl).component2_7eebsb_k$ = function () {
|
|
988
|
+
return this.value_1;
|
|
938
989
|
};
|
|
939
990
|
protoOf(IntIndexedImpl).toString = function () {
|
|
940
|
-
return 'IntIndexedImpl(index=' + this.
|
|
991
|
+
return 'IntIndexedImpl(index=' + this.index_1 + ', value=' + toString_0(this.value_1) + ')';
|
|
941
992
|
};
|
|
942
993
|
protoOf(IntIndexedImpl).hashCode = function () {
|
|
943
|
-
var result = this.
|
|
944
|
-
result = imul(result, 31) + (this.
|
|
994
|
+
var result = this.index_1;
|
|
995
|
+
result = imul(result, 31) + (this.value_1 == null ? 0 : hashCode(this.value_1)) | 0;
|
|
945
996
|
return result;
|
|
946
997
|
};
|
|
947
998
|
protoOf(IntIndexedImpl).equals = function (other) {
|
|
@@ -949,102 +1000,102 @@
|
|
|
949
1000
|
return true;
|
|
950
1001
|
if (!(other instanceof IntIndexedImpl))
|
|
951
1002
|
return false;
|
|
952
|
-
if (!(this.
|
|
1003
|
+
if (!(this.index_1 === other.index_1))
|
|
953
1004
|
return false;
|
|
954
|
-
if (!equals(this.
|
|
1005
|
+
if (!equals(this.value_1, other.value_1))
|
|
955
1006
|
return false;
|
|
956
1007
|
return true;
|
|
957
1008
|
};
|
|
958
|
-
protoOf(IntIndexedImpl).
|
|
959
|
-
return this.
|
|
1009
|
+
protoOf(IntIndexedImpl).compareTo_hpufkf_k$ = function (other) {
|
|
1010
|
+
return this.compareTo_dndjn3_k$((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
960
1011
|
};
|
|
961
1012
|
function _get_wrapped__s2ip8($this) {
|
|
962
|
-
var tmp0 = $this.
|
|
1013
|
+
var tmp0 = $this.wrapped$delegate_1;
|
|
963
1014
|
var tmp = KProperty1;
|
|
964
1015
|
// Inline function 'kotlin.getValue' call
|
|
965
1016
|
getPropertyCallableRef('wrapped', 1, tmp, LazyCursor$_get_wrapped_$ref_p28zr5(), null);
|
|
966
|
-
return tmp0.
|
|
1017
|
+
return tmp0.get_value_j01efc_k$();
|
|
967
1018
|
}
|
|
968
1019
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
969
1020
|
return function () {
|
|
970
|
-
return new NonLastCursor(this$0.
|
|
1021
|
+
return new NonLastCursor(this$0.delegate_1);
|
|
971
1022
|
};
|
|
972
1023
|
}
|
|
973
1024
|
function LazyCursor$_get_wrapped_$ref_p28zr5() {
|
|
974
1025
|
return constructCallableReference(function (p0) {
|
|
975
1026
|
return _get_wrapped__s2ip8(p0);
|
|
976
|
-
}, 1, 0,
|
|
1027
|
+
}, 1, 0, 3);
|
|
977
1028
|
}
|
|
978
1029
|
function LazyCursor(delegate) {
|
|
979
1030
|
AbstractCursor.call(this);
|
|
980
|
-
this.
|
|
1031
|
+
this.delegate_1 = delegate;
|
|
981
1032
|
var tmp = this;
|
|
982
|
-
tmp.
|
|
1033
|
+
tmp.wrapped$delegate_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
983
1034
|
}
|
|
984
|
-
protoOf(LazyCursor).
|
|
1035
|
+
protoOf(LazyCursor).get_isLazy_ew1d53_k$ = function () {
|
|
985
1036
|
return true;
|
|
986
1037
|
};
|
|
987
|
-
protoOf(LazyCursor).
|
|
988
|
-
return _get_wrapped__s2ip8(this).
|
|
1038
|
+
protoOf(LazyCursor).get_next_wor1vg_k$ = function () {
|
|
1039
|
+
return _get_wrapped__s2ip8(this).get_next_wor1vg_k$();
|
|
989
1040
|
};
|
|
990
|
-
protoOf(LazyCursor).
|
|
991
|
-
return _get_wrapped__s2ip8(this).
|
|
1041
|
+
protoOf(LazyCursor).get_current_jwi6j4_k$ = function () {
|
|
1042
|
+
return _get_wrapped__s2ip8(this).get_current_jwi6j4_k$();
|
|
992
1043
|
};
|
|
993
|
-
protoOf(LazyCursor).
|
|
1044
|
+
protoOf(LazyCursor).get_hasNext_csdx38_k$ = function () {
|
|
994
1045
|
return true;
|
|
995
1046
|
};
|
|
996
|
-
protoOf(LazyCursor).
|
|
1047
|
+
protoOf(LazyCursor).get_isOver_ew3p5z_k$ = function () {
|
|
997
1048
|
return false;
|
|
998
1049
|
};
|
|
999
1050
|
protoOf(LazyCursor).toString = function () {
|
|
1000
1051
|
return protoOf(AbstractCursor).toString.call(this);
|
|
1001
1052
|
};
|
|
1002
|
-
protoOf(LazyCursor).
|
|
1003
|
-
return _get_wrapped__s2ip8(this).
|
|
1053
|
+
protoOf(LazyCursor).iterator_jk1svi_k$ = function () {
|
|
1054
|
+
return _get_wrapped__s2ip8(this).iterator_jk1svi_k$();
|
|
1004
1055
|
};
|
|
1005
1056
|
protoOf(LazyCursor).iterator = function () {
|
|
1006
|
-
return this.
|
|
1057
|
+
return this.iterator_jk1svi_k$();
|
|
1007
1058
|
};
|
|
1008
1059
|
protoOf(LazyCursor).hashCode = function () {
|
|
1009
|
-
return hashCode(this.
|
|
1060
|
+
return hashCode(this.delegate_1);
|
|
1010
1061
|
};
|
|
1011
1062
|
protoOf(LazyCursor).equals = function (other) {
|
|
1012
1063
|
if (this === other)
|
|
1013
1064
|
return true;
|
|
1014
1065
|
if (!(other instanceof LazyCursor))
|
|
1015
1066
|
return false;
|
|
1016
|
-
if (!equals(this.
|
|
1067
|
+
if (!equals(this.delegate_1, other.delegate_1))
|
|
1017
1068
|
return false;
|
|
1018
1069
|
return true;
|
|
1019
1070
|
};
|
|
1020
1071
|
function LongIndexedImpl(index, value) {
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1072
|
+
this.index_1 = index;
|
|
1073
|
+
this.value_1 = value;
|
|
1023
1074
|
}
|
|
1024
|
-
protoOf(LongIndexedImpl).
|
|
1025
|
-
return this.
|
|
1075
|
+
protoOf(LongIndexedImpl).get_index_it478p_k$ = function () {
|
|
1076
|
+
return this.index_1;
|
|
1026
1077
|
};
|
|
1027
|
-
protoOf(LongIndexedImpl).
|
|
1028
|
-
return this.
|
|
1078
|
+
protoOf(LongIndexedImpl).get_value_j01efc_k$ = function () {
|
|
1079
|
+
return this.value_1;
|
|
1029
1080
|
};
|
|
1030
|
-
protoOf(LongIndexedImpl).
|
|
1031
|
-
return convertToInt(subtract(this.
|
|
1081
|
+
protoOf(LongIndexedImpl).compareTo_uf3ewo_k$ = function (other) {
|
|
1082
|
+
return convertToInt(subtract(this.index_1, other.get_index_it478p_k$()));
|
|
1032
1083
|
};
|
|
1033
|
-
protoOf(LongIndexedImpl).
|
|
1034
|
-
return this.
|
|
1084
|
+
protoOf(LongIndexedImpl).compareTo_hpufkf_k$ = function (other) {
|
|
1085
|
+
return this.compareTo_uf3ewo_k$((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1035
1086
|
};
|
|
1036
|
-
protoOf(LongIndexedImpl).
|
|
1037
|
-
return this.
|
|
1087
|
+
protoOf(LongIndexedImpl).component1_7eebsc_k$ = function () {
|
|
1088
|
+
return this.index_1;
|
|
1038
1089
|
};
|
|
1039
|
-
protoOf(LongIndexedImpl).
|
|
1040
|
-
return this.
|
|
1090
|
+
protoOf(LongIndexedImpl).component2_7eebsb_k$ = function () {
|
|
1091
|
+
return this.value_1;
|
|
1041
1092
|
};
|
|
1042
1093
|
protoOf(LongIndexedImpl).toString = function () {
|
|
1043
|
-
return 'LongIndexedImpl(index=' + this.
|
|
1094
|
+
return 'LongIndexedImpl(index=' + this.index_1.toString() + ', value=' + toString_0(this.value_1) + ')';
|
|
1044
1095
|
};
|
|
1045
1096
|
protoOf(LongIndexedImpl).hashCode = function () {
|
|
1046
|
-
var result = getBigIntHashCode(this.
|
|
1047
|
-
result = imul(result, 31) + (this.
|
|
1097
|
+
var result = getBigIntHashCode(this.index_1);
|
|
1098
|
+
result = imul(result, 31) + (this.value_1 == null ? 0 : hashCode(this.value_1)) | 0;
|
|
1048
1099
|
return result;
|
|
1049
1100
|
};
|
|
1050
1101
|
protoOf(LongIndexedImpl).equals = function (other) {
|
|
@@ -1052,43 +1103,43 @@
|
|
|
1052
1103
|
return true;
|
|
1053
1104
|
if (!(other instanceof LongIndexedImpl))
|
|
1054
1105
|
return false;
|
|
1055
|
-
if (!(this.
|
|
1106
|
+
if (!(this.index_1 === other.index_1))
|
|
1056
1107
|
return false;
|
|
1057
|
-
if (!equals(this.
|
|
1108
|
+
if (!equals(this.value_1, other.value_1))
|
|
1058
1109
|
return false;
|
|
1059
1110
|
return true;
|
|
1060
1111
|
};
|
|
1061
1112
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1062
1113
|
return function () {
|
|
1063
|
-
return this$0.
|
|
1114
|
+
return this$0.mapper_1(ensureNotNull(this$0.wrapped_1.get_current_jwi6j4_k$()));
|
|
1064
1115
|
};
|
|
1065
1116
|
}
|
|
1066
1117
|
function MapperCursor$_get_current_$ref_lsggiu() {
|
|
1067
1118
|
return constructCallableReference(function (p0) {
|
|
1068
|
-
return p0.
|
|
1069
|
-
}, 1, 0,
|
|
1119
|
+
return p0.get_current_jwi6j4_k$();
|
|
1120
|
+
}, 1, 0, 4);
|
|
1070
1121
|
}
|
|
1071
1122
|
function MapperCursor(wrapped, mapper) {
|
|
1072
1123
|
AbstractCursor.call(this);
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1124
|
+
this.wrapped_1 = wrapped;
|
|
1125
|
+
this.mapper_1 = mapper;
|
|
1075
1126
|
var tmp = this;
|
|
1076
|
-
tmp.
|
|
1127
|
+
tmp.current$delegate_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1077
1128
|
}
|
|
1078
|
-
protoOf(MapperCursor).
|
|
1079
|
-
return this.
|
|
1129
|
+
protoOf(MapperCursor).get_next_wor1vg_k$ = function () {
|
|
1130
|
+
return this.wrapped_1.get_next_wor1vg_k$().map_nscup_k$(this.mapper_1);
|
|
1080
1131
|
};
|
|
1081
|
-
protoOf(MapperCursor).
|
|
1082
|
-
var tmp0 = this.
|
|
1132
|
+
protoOf(MapperCursor).get_current_jwi6j4_k$ = function () {
|
|
1133
|
+
var tmp0 = this.current$delegate_1;
|
|
1083
1134
|
var tmp = KProperty1;
|
|
1084
1135
|
// Inline function 'kotlin.getValue' call
|
|
1085
1136
|
getPropertyCallableRef('current', 1, tmp, MapperCursor$_get_current_$ref_lsggiu(), null);
|
|
1086
|
-
return tmp0.
|
|
1137
|
+
return tmp0.get_value_j01efc_k$();
|
|
1087
1138
|
};
|
|
1088
|
-
protoOf(MapperCursor).
|
|
1139
|
+
protoOf(MapperCursor).get_hasNext_csdx38_k$ = function () {
|
|
1089
1140
|
return true;
|
|
1090
1141
|
};
|
|
1091
|
-
protoOf(MapperCursor).
|
|
1142
|
+
protoOf(MapperCursor).get_isOver_ew3p5z_k$ = function () {
|
|
1092
1143
|
return false;
|
|
1093
1144
|
};
|
|
1094
1145
|
protoOf(MapperCursor).equals = function (other) {
|
|
@@ -1098,60 +1149,60 @@
|
|
|
1098
1149
|
return false;
|
|
1099
1150
|
if (!(other instanceof MapperCursor))
|
|
1100
1151
|
THROW_CCE();
|
|
1101
|
-
if (!equals(this.
|
|
1152
|
+
if (!equals(this.wrapped_1, other.wrapped_1))
|
|
1102
1153
|
return false;
|
|
1103
|
-
if (!equals(this.
|
|
1154
|
+
if (!equals(this.mapper_1, other.mapper_1))
|
|
1104
1155
|
return false;
|
|
1105
1156
|
return true;
|
|
1106
1157
|
};
|
|
1107
1158
|
protoOf(MapperCursor).hashCode = function () {
|
|
1108
|
-
var result = hashCode(this.
|
|
1109
|
-
result = imul(31, result) + hashCode(this.
|
|
1159
|
+
var result = hashCode(this.wrapped_1);
|
|
1160
|
+
result = imul(31, result) + hashCode(this.mapper_1) | 0;
|
|
1110
1161
|
return result;
|
|
1111
1162
|
};
|
|
1112
|
-
protoOf(MapperCursor).
|
|
1113
|
-
return new ValueCursor(mapper(this.
|
|
1163
|
+
protoOf(MapperCursor).map_mlooj1_k$ = function (mapper) {
|
|
1164
|
+
return new ValueCursor(mapper(this.get_current_jwi6j4_k$()), this.get_next_wor1vg_k$().map_nscup_k$(mapper));
|
|
1114
1165
|
};
|
|
1115
1166
|
protoOf(MapperCursor).map = function (mapper) {
|
|
1116
|
-
return this.
|
|
1167
|
+
return this.map_mlooj1_k$(mapper);
|
|
1117
1168
|
};
|
|
1118
|
-
protoOf(MapperCursor).
|
|
1119
|
-
return this.
|
|
1169
|
+
protoOf(MapperCursor).map_nscup_k$ = function (mapper) {
|
|
1170
|
+
return this.map_mlooj1_k$(mapper);
|
|
1120
1171
|
};
|
|
1121
1172
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1122
1173
|
return function () {
|
|
1123
1174
|
// Inline function 'kotlin.also' call
|
|
1124
|
-
var this_0 =
|
|
1125
|
-
this$0.
|
|
1175
|
+
var this_0 = Companion_instance_6.of_g3gwgz_k$($source);
|
|
1176
|
+
this$0.source_1 = null;
|
|
1126
1177
|
return this_0;
|
|
1127
1178
|
};
|
|
1128
1179
|
}
|
|
1129
1180
|
function NonLastCursor$_get_next_$ref_gp6ycu() {
|
|
1130
1181
|
return constructCallableReference(function (p0) {
|
|
1131
|
-
return p0.
|
|
1132
|
-
}, 1, 0,
|
|
1182
|
+
return p0.get_next_wor1vg_k$();
|
|
1183
|
+
}, 1, 0, 5);
|
|
1133
1184
|
}
|
|
1134
1185
|
function NonLastCursor(source) {
|
|
1135
1186
|
AbstractCursor.call(this);
|
|
1136
|
-
this.
|
|
1187
|
+
this.source_1 = source;
|
|
1137
1188
|
var tmp = this;
|
|
1138
|
-
tmp.
|
|
1139
|
-
this.
|
|
1189
|
+
tmp.next$delegate_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1190
|
+
this.current_1 = source.next_20eer_k$();
|
|
1140
1191
|
}
|
|
1141
|
-
protoOf(NonLastCursor).
|
|
1142
|
-
var tmp0 = this.
|
|
1192
|
+
protoOf(NonLastCursor).get_next_wor1vg_k$ = function () {
|
|
1193
|
+
var tmp0 = this.next$delegate_1;
|
|
1143
1194
|
var tmp = KProperty1;
|
|
1144
1195
|
// Inline function 'kotlin.getValue' call
|
|
1145
1196
|
getPropertyCallableRef('next', 1, tmp, NonLastCursor$_get_next_$ref_gp6ycu(), null);
|
|
1146
|
-
return tmp0.
|
|
1197
|
+
return tmp0.get_value_j01efc_k$();
|
|
1147
1198
|
};
|
|
1148
|
-
protoOf(NonLastCursor).
|
|
1149
|
-
return this.
|
|
1199
|
+
protoOf(NonLastCursor).get_current_jwi6j4_k$ = function () {
|
|
1200
|
+
return this.current_1;
|
|
1150
1201
|
};
|
|
1151
|
-
protoOf(NonLastCursor).
|
|
1202
|
+
protoOf(NonLastCursor).get_hasNext_csdx38_k$ = function () {
|
|
1152
1203
|
return true;
|
|
1153
1204
|
};
|
|
1154
|
-
protoOf(NonLastCursor).
|
|
1205
|
+
protoOf(NonLastCursor).get_isOver_ew3p5z_k$ = function () {
|
|
1155
1206
|
return false;
|
|
1156
1207
|
};
|
|
1157
1208
|
protoOf(NonLastCursor).toString = function () {
|
|
@@ -1159,73 +1210,73 @@
|
|
|
1159
1210
|
};
|
|
1160
1211
|
function removeLeastRecent($this) {
|
|
1161
1212
|
// Inline function 'kotlin.collections.asIterable' call
|
|
1162
|
-
var tmp$ret$0 = $this.
|
|
1213
|
+
var tmp$ret$0 = $this.cache_1.get_entries_p20ztl_k$();
|
|
1163
1214
|
var _destruct__k2r9zo = first(tmp$ret$0);
|
|
1164
1215
|
// Inline function 'kotlin.collections.component1' call
|
|
1165
|
-
var key = _destruct__k2r9zo.
|
|
1216
|
+
var key = _destruct__k2r9zo.get_key_18j28a_k$();
|
|
1166
1217
|
// Inline function 'kotlin.collections.component2' call
|
|
1167
|
-
var value = _destruct__k2r9zo.
|
|
1168
|
-
$this.
|
|
1169
|
-
return
|
|
1218
|
+
var value = _destruct__k2r9zo.get_value_j01efc_k$();
|
|
1219
|
+
$this.cache_1.remove_gppy8k_k$(key);
|
|
1220
|
+
return Companion_instance_5.some_qfcpk3_k$(to(key, value));
|
|
1170
1221
|
}
|
|
1171
1222
|
function removeLeastRecentIfNecessary($this) {
|
|
1172
1223
|
var tmp;
|
|
1173
|
-
if ($this.
|
|
1224
|
+
if ($this.cache_1.get_size_woubt6_k$() >= $this.capacity_1) {
|
|
1174
1225
|
tmp = removeLeastRecent($this);
|
|
1175
1226
|
} else {
|
|
1176
|
-
tmp =
|
|
1227
|
+
tmp = Companion_instance_5.none_6mb3x4_k$();
|
|
1177
1228
|
}
|
|
1178
1229
|
return tmp;
|
|
1179
1230
|
}
|
|
1180
1231
|
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1181
1232
|
return function () {
|
|
1182
1233
|
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1183
|
-
var tmp0 = this$0.
|
|
1234
|
+
var tmp0 = this$0.cache_1;
|
|
1184
1235
|
var tmp2 = $key;
|
|
1185
1236
|
// Inline function 'kotlin.collections.set' call
|
|
1186
1237
|
var value = $value;
|
|
1187
|
-
tmp0.
|
|
1238
|
+
tmp0.put_4fpzoq_k$(tmp2, value);
|
|
1188
1239
|
return evicted;
|
|
1189
1240
|
};
|
|
1190
1241
|
}
|
|
1191
1242
|
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1192
1243
|
return function () {
|
|
1193
1244
|
var tmp;
|
|
1194
|
-
if (this$0.
|
|
1195
|
-
tmp =
|
|
1245
|
+
if (this$0.cache_1.containsKey_aw81wo_k$($key)) {
|
|
1246
|
+
tmp = Companion_instance_5.of_f8fyqr_k$(this$0.cache_1.get_wei43m_k$($key));
|
|
1196
1247
|
} else {
|
|
1197
|
-
tmp =
|
|
1248
|
+
tmp = Companion_instance_5.none_6mb3x4_k$();
|
|
1198
1249
|
}
|
|
1199
1250
|
return tmp;
|
|
1200
1251
|
};
|
|
1201
1252
|
}
|
|
1202
1253
|
function SimpleLRUCache$toSequence$lambda$lambda(it) {
|
|
1203
1254
|
// Inline function 'kotlin.collections.toPair' call
|
|
1204
|
-
return new Pair(it.
|
|
1255
|
+
return new Pair(it.get_key_18j28a_k$(), it.get_value_j01efc_k$());
|
|
1205
1256
|
}
|
|
1206
1257
|
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1207
1258
|
return function () {
|
|
1208
|
-
var tmp = asSequence(this$0.
|
|
1259
|
+
var tmp = asSequence(this$0.cache_1.get_entries_p20ztl_k$());
|
|
1209
1260
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1210
1261
|
};
|
|
1211
1262
|
}
|
|
1212
1263
|
function SimpleLRUCache$toString$lambda(it) {
|
|
1213
|
-
return
|
|
1264
|
+
return toString_0(it.first) + ' = ' + toString_0(it.second);
|
|
1214
1265
|
}
|
|
1215
1266
|
function SimpleLRUCache(capacity) {
|
|
1216
|
-
this.
|
|
1267
|
+
this.capacity_1 = capacity;
|
|
1217
1268
|
// Inline function 'kotlin.require' call
|
|
1218
1269
|
// Inline function 'kotlin.require' call
|
|
1219
|
-
if (!(this.
|
|
1270
|
+
if (!(this.capacity_1 > 0)) {
|
|
1220
1271
|
var message = 'Failed requirement.';
|
|
1221
|
-
throw IllegalArgumentException_init_$Create$(
|
|
1272
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1222
1273
|
}
|
|
1223
|
-
this.
|
|
1274
|
+
this.cache_1 = LinkedHashMap_init_$Create$();
|
|
1224
1275
|
}
|
|
1225
|
-
protoOf(SimpleLRUCache).
|
|
1276
|
+
protoOf(SimpleLRUCache).set_iuhvb1_k$ = function (key, value) {
|
|
1226
1277
|
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1227
1278
|
};
|
|
1228
|
-
protoOf(SimpleLRUCache).
|
|
1279
|
+
protoOf(SimpleLRUCache).get_wei43m_k$ = function (key) {
|
|
1229
1280
|
return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
|
|
1230
1281
|
};
|
|
1231
1282
|
protoOf(SimpleLRUCache).equals = function (other) {
|
|
@@ -1235,39 +1286,39 @@
|
|
|
1235
1286
|
return false;
|
|
1236
1287
|
if (!(other instanceof SimpleLRUCache))
|
|
1237
1288
|
THROW_CCE();
|
|
1238
|
-
if (!(this.
|
|
1289
|
+
if (!(this.capacity_1 === other.capacity_1))
|
|
1239
1290
|
return false;
|
|
1240
|
-
if (!this.
|
|
1291
|
+
if (!this.cache_1.equals(other.cache_1))
|
|
1241
1292
|
return false;
|
|
1242
1293
|
return true;
|
|
1243
1294
|
};
|
|
1244
1295
|
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1245
|
-
var result = this.
|
|
1246
|
-
result = imul(31, result) + this.
|
|
1296
|
+
var result = this.capacity_1;
|
|
1297
|
+
result = imul(31, result) + this.cache_1.hashCode() | 0;
|
|
1247
1298
|
return result;
|
|
1248
1299
|
};
|
|
1249
|
-
protoOf(SimpleLRUCache).
|
|
1300
|
+
protoOf(SimpleLRUCache).toSequence_lzjcyk_k$ = function () {
|
|
1250
1301
|
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1251
1302
|
};
|
|
1252
1303
|
protoOf(SimpleLRUCache).toString = function () {
|
|
1253
|
-
var tmp = this.
|
|
1304
|
+
var tmp = this.toSequence_lzjcyk_k$();
|
|
1254
1305
|
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1255
1306
|
};
|
|
1256
1307
|
function ValueCursor(current, next) {
|
|
1257
1308
|
AbstractCursor.call(this);
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1309
|
+
this.current_1 = current;
|
|
1310
|
+
this.next_1 = next;
|
|
1260
1311
|
}
|
|
1261
|
-
protoOf(ValueCursor).
|
|
1262
|
-
return this.
|
|
1312
|
+
protoOf(ValueCursor).get_current_jwi6j4_k$ = function () {
|
|
1313
|
+
return this.current_1;
|
|
1263
1314
|
};
|
|
1264
|
-
protoOf(ValueCursor).
|
|
1265
|
-
return this.
|
|
1315
|
+
protoOf(ValueCursor).get_next_wor1vg_k$ = function () {
|
|
1316
|
+
return this.next_1;
|
|
1266
1317
|
};
|
|
1267
|
-
protoOf(ValueCursor).
|
|
1318
|
+
protoOf(ValueCursor).get_hasNext_csdx38_k$ = function () {
|
|
1268
1319
|
return true;
|
|
1269
1320
|
};
|
|
1270
|
-
protoOf(ValueCursor).
|
|
1321
|
+
protoOf(ValueCursor).get_isOver_ew3p5z_k$ = function () {
|
|
1271
1322
|
return false;
|
|
1272
1323
|
};
|
|
1273
1324
|
function dequeOf(items) {
|
|
@@ -1284,21 +1335,21 @@
|
|
|
1284
1335
|
return toMutableList(items);
|
|
1285
1336
|
}
|
|
1286
1337
|
function takeFirst(_this__u8e3s4) {
|
|
1287
|
-
if (_this__u8e3s4.
|
|
1338
|
+
if (_this__u8e3s4.isEmpty_y1axqb_k$())
|
|
1288
1339
|
return null;
|
|
1289
|
-
var first = _this__u8e3s4.
|
|
1290
|
-
_this__u8e3s4.
|
|
1340
|
+
var first = _this__u8e3s4.get_c1px32_k$(0);
|
|
1341
|
+
_this__u8e3s4.removeAt_6niowx_k$(0);
|
|
1291
1342
|
return first;
|
|
1292
1343
|
}
|
|
1293
1344
|
function addFirst(_this__u8e3s4, item) {
|
|
1294
|
-
_this__u8e3s4.
|
|
1345
|
+
_this__u8e3s4.add_dl6gt3_k$(0, item);
|
|
1295
1346
|
}
|
|
1296
1347
|
function addFirst_0(_this__u8e3s4, items) {
|
|
1297
|
-
var i = _this__u8e3s4.
|
|
1298
|
-
var _iterator__ex2g4s = items.
|
|
1299
|
-
while (_iterator__ex2g4s.
|
|
1300
|
-
var item = _iterator__ex2g4s.
|
|
1301
|
-
i.
|
|
1348
|
+
var i = _this__u8e3s4.listIterator_xjshxw_k$();
|
|
1349
|
+
var _iterator__ex2g4s = items.iterator_jk1svi_k$();
|
|
1350
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1351
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
1352
|
+
i.add_jcyd1a_k$(item);
|
|
1302
1353
|
}
|
|
1303
1354
|
}
|
|
1304
1355
|
function synchronizedOn(obj, action) {
|
|
@@ -1311,9 +1362,9 @@
|
|
|
1311
1362
|
//region block: post-declaration
|
|
1312
1363
|
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1313
1364
|
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1314
|
-
protoOf(CachedImpl).
|
|
1315
|
-
protoOf(IntIndexedImpl).
|
|
1316
|
-
protoOf(SimpleLRUCache).
|
|
1365
|
+
protoOf(CachedImpl).ifValid_6zlbny_k$ = ifValid;
|
|
1366
|
+
protoOf(IntIndexedImpl).compareTo_dndjn3_k$ = compareTo_0;
|
|
1367
|
+
protoOf(SimpleLRUCache).getOrSet_4wyc57_k$ = getOrSet;
|
|
1317
1368
|
//endregion
|
|
1318
1369
|
//region block: init
|
|
1319
1370
|
Companion_instance = new Companion();
|
|
@@ -1321,8 +1372,8 @@
|
|
|
1321
1372
|
Companion_instance_1 = new Companion_1();
|
|
1322
1373
|
Companion_instance_2 = new Companion_2();
|
|
1323
1374
|
Companion_instance_3 = new Companion_3();
|
|
1324
|
-
Companion_instance_4 = new Companion_4();
|
|
1325
1375
|
Companion_instance_5 = new Companion_5();
|
|
1376
|
+
Companion_instance_6 = new Companion_6();
|
|
1326
1377
|
//endregion
|
|
1327
1378
|
//region block: exports
|
|
1328
1379
|
_.$_$ = _.$_$ || {};
|
|
@@ -1330,41 +1381,43 @@
|
|
|
1330
1381
|
_.$_$.b = Companion_instance_0;
|
|
1331
1382
|
_.$_$.c = Companion_instance_1;
|
|
1332
1383
|
_.$_$.d = Companion_instance_3;
|
|
1333
|
-
_.$_$.e =
|
|
1334
|
-
_.$_$.f =
|
|
1335
|
-
_.$_$.g =
|
|
1336
|
-
_.$_$.h =
|
|
1337
|
-
_.$_$.i =
|
|
1338
|
-
_.$_$.j =
|
|
1339
|
-
_.$_$.k =
|
|
1340
|
-
_.$_$.l =
|
|
1341
|
-
_.$_$.m =
|
|
1342
|
-
_.$_$.n =
|
|
1343
|
-
_.$_$.o =
|
|
1344
|
-
_.$_$.p =
|
|
1345
|
-
_.$_$.q =
|
|
1346
|
-
_.$_$.r =
|
|
1347
|
-
_.$_$.s =
|
|
1348
|
-
_.$_$.t =
|
|
1349
|
-
_.$_$.u =
|
|
1350
|
-
_.$_$.v =
|
|
1351
|
-
_.$_$.w =
|
|
1352
|
-
_.$_$.x =
|
|
1353
|
-
_.$_$.y =
|
|
1354
|
-
_.$_$.z =
|
|
1355
|
-
_.$_$.a1 =
|
|
1356
|
-
_.$_$.b1 =
|
|
1357
|
-
_.$_$.c1 =
|
|
1358
|
-
_.$_$.d1 =
|
|
1359
|
-
_.$_$.e1 =
|
|
1360
|
-
_.$_$.f1 =
|
|
1361
|
-
_.$_$.g1 =
|
|
1362
|
-
_.$_$.h1 =
|
|
1363
|
-
_.$_$.i1 =
|
|
1364
|
-
_.$_$.j1 =
|
|
1365
|
-
_.$_$.k1 =
|
|
1366
|
-
_.$_$.l1 =
|
|
1367
|
-
_.$_$.m1 =
|
|
1384
|
+
_.$_$.e = Companion_instance_5;
|
|
1385
|
+
_.$_$.f = castTo;
|
|
1386
|
+
_.$_$.g = Castable;
|
|
1387
|
+
_.$_$.h = component1;
|
|
1388
|
+
_.$_$.i = component2;
|
|
1389
|
+
_.$_$.j = compareTo_1;
|
|
1390
|
+
_.$_$.k = LongIndexed;
|
|
1391
|
+
_.$_$.l = NumberTypeTester;
|
|
1392
|
+
_.$_$.m = Some;
|
|
1393
|
+
_.$_$.n = containsTag;
|
|
1394
|
+
_.$_$.o = getTag;
|
|
1395
|
+
_.$_$.p = Taggable;
|
|
1396
|
+
_.$_$.q = addFirst_0;
|
|
1397
|
+
_.$_$.r = addFirst;
|
|
1398
|
+
_.$_$.s = buffered;
|
|
1399
|
+
_.$_$.t = cached;
|
|
1400
|
+
_.$_$.u = cursor_0;
|
|
1401
|
+
_.$_$.v = cursor;
|
|
1402
|
+
_.$_$.w = cursor_1;
|
|
1403
|
+
_.$_$.x = dequeOf_1;
|
|
1404
|
+
_.$_$.y = dequeOf_0;
|
|
1405
|
+
_.$_$.z = dequeOf;
|
|
1406
|
+
_.$_$.a1 = dropLast;
|
|
1407
|
+
_.$_$.b1 = forceCast;
|
|
1408
|
+
_.$_$.c1 = insertAt;
|
|
1409
|
+
_.$_$.d1 = itemWiseEquals_0;
|
|
1410
|
+
_.$_$.e1 = itemWiseEquals;
|
|
1411
|
+
_.$_$.f1 = itemWiseHashCode_0;
|
|
1412
|
+
_.$_$.g1 = itemWiseHashCode;
|
|
1413
|
+
_.$_$.h1 = itemWiseHashCode_1;
|
|
1414
|
+
_.$_$.i1 = mergeSequences;
|
|
1415
|
+
_.$_$.j1 = plus;
|
|
1416
|
+
_.$_$.k1 = setTags;
|
|
1417
|
+
_.$_$.l1 = setTag;
|
|
1418
|
+
_.$_$.m1 = synchronizedOnSelf;
|
|
1419
|
+
_.$_$.n1 = synchronizedOn;
|
|
1420
|
+
_.$_$.o1 = takeFirst;
|
|
1368
1421
|
//endregion
|
|
1369
1422
|
return _;
|
|
1370
1423
|
}));
|