@tuprolog/2p-full 1.1.4 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +161 -160
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +2790 -2738
- package/2p-core.js.map +1 -1
- package/2p-full.js +8 -4
- package/2p-full.js.map +1 -1
- package/{2p-parser-js.js → 2p-parser-impl.js} +2 -2
- package/2p-solve-classic.js +969 -975
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-plp.js +2 -2
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1305 -1312
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +814 -834
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +3407 -3413
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1725 -1745
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +280 -325
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +358 -364
- package/2p-utils.js.map +1 -1
- package/README.md +13 -1
- package/kotlin-kotlin-stdlib.js +2164 -2053
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1586 -1584
- package/kt-math.js.map +1 -1
- package/package.json +15 -16
- /package/{2p-parser-js.js.map → 2p-parser-impl.js.map} +0 -0
package/2p-utils.js
CHANGED
|
@@ -13,62 +13,63 @@
|
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
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.$_$.
|
|
16
|
+
var protoOf = kotlin_kotlin.$_$.p6;
|
|
17
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.b6;
|
|
18
|
+
var Unit_instance = kotlin_kotlin.$_$.m;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.d6;
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.na;
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.j6;
|
|
22
|
+
var initMetadataForClass = kotlin_kotlin.$_$.a6;
|
|
23
|
+
var Sequence = kotlin_kotlin.$_$.j7;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.b;
|
|
25
|
-
var arrayIterator = kotlin_kotlin.$_$.
|
|
26
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
27
|
-
var toList = kotlin_kotlin.$_$.
|
|
28
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
29
|
-
var asIterable = kotlin_kotlin.$_$.
|
|
30
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
31
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
32
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
33
|
-
var asIterable_0 = kotlin_kotlin.$_$.
|
|
34
|
-
var sequence = kotlin_kotlin.$_$.
|
|
35
|
-
var IntRange = kotlin_kotlin.$_$.
|
|
36
|
-
var zip = kotlin_kotlin.$_$.
|
|
37
|
-
var equals = kotlin_kotlin.$_$.
|
|
38
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
39
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
40
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
41
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
42
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
43
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
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
|
|
25
|
+
var arrayIterator = kotlin_kotlin.$_$.j5;
|
|
26
|
+
var Comparable = kotlin_kotlin.$_$.ca;
|
|
27
|
+
var toList = kotlin_kotlin.$_$.v8;
|
|
28
|
+
var asSequence = kotlin_kotlin.$_$.a2;
|
|
29
|
+
var asIterable = kotlin_kotlin.$_$.w1;
|
|
30
|
+
var hashCode = kotlin_kotlin.$_$.z5;
|
|
31
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.d2;
|
|
32
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
33
|
+
var asIterable_0 = kotlin_kotlin.$_$.l7;
|
|
34
|
+
var sequence = kotlin_kotlin.$_$.p8;
|
|
35
|
+
var IntRange = kotlin_kotlin.$_$.b7;
|
|
36
|
+
var zip = kotlin_kotlin.$_$.z8;
|
|
37
|
+
var equals = kotlin_kotlin.$_$.t5;
|
|
38
|
+
var FunctionAdapter = kotlin_kotlin.$_$.i5;
|
|
39
|
+
var Comparator = kotlin_kotlin.$_$.da;
|
|
40
|
+
var CoroutineImpl = kotlin_kotlin.$_$.p4;
|
|
41
|
+
var SequenceScope = kotlin_kotlin.$_$.i7;
|
|
42
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o4;
|
|
43
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.e6;
|
|
44
|
+
var constructCallableReference = kotlin_kotlin.$_$.r5;
|
|
45
|
+
var withIndex = kotlin_kotlin.$_$.y8;
|
|
46
|
+
var ensureNotNull = kotlin_kotlin.$_$.ra;
|
|
47
|
+
var map = kotlin_kotlin.$_$.h8;
|
|
48
|
+
var filterNot = kotlin_kotlin.$_$.u7;
|
|
49
|
+
var toMutableList = kotlin_kotlin.$_$.w8;
|
|
50
|
+
var minWithOrNull = kotlin_kotlin.$_$.i8;
|
|
51
|
+
var subtract = kotlin_kotlin.$_$.g5;
|
|
52
|
+
var convertToInt = kotlin_kotlin.$_$.v4;
|
|
53
|
+
var toString = kotlin_kotlin.$_$.xa;
|
|
54
|
+
var initMetadataForObject = kotlin_kotlin.$_$.f6;
|
|
55
|
+
var KtMap = kotlin_kotlin.$_$.r1;
|
|
56
|
+
var toMutableMap = kotlin_kotlin.$_$.l4;
|
|
57
|
+
var toString_0 = kotlin_kotlin.$_$.s6;
|
|
58
|
+
var lazy = kotlin_kotlin.$_$.ta;
|
|
59
|
+
var KProperty1 = kotlin_kotlin.$_$.h7;
|
|
60
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.x5;
|
|
61
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.f7;
|
|
62
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
63
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.u5;
|
|
64
|
+
var first = kotlin_kotlin.$_$.q2;
|
|
65
|
+
var to = kotlin_kotlin.$_$.ya;
|
|
66
|
+
var Pair = kotlin_kotlin.$_$.la;
|
|
67
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
68
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
69
|
+
var joinToString = kotlin_kotlin.$_$.d8;
|
|
70
|
+
var mutableListOf = kotlin_kotlin.$_$.m3;
|
|
71
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
72
|
+
var addAll = kotlin_kotlin.$_$.t1;
|
|
72
73
|
//endregion
|
|
73
74
|
//region block: pre-declaration
|
|
74
75
|
initMetadataForCompanion(Companion);
|
|
@@ -76,11 +77,11 @@
|
|
|
76
77
|
var got = this.h2(key);
|
|
77
78
|
var tmp;
|
|
78
79
|
if (got instanceof Some) {
|
|
79
|
-
tmp = got.
|
|
80
|
+
tmp = got.xo_1;
|
|
80
81
|
} else {
|
|
81
82
|
// Inline function 'kotlin.also' call
|
|
82
83
|
var this_0 = valueGenerator();
|
|
83
|
-
this.
|
|
84
|
+
this.vo(key, this_0);
|
|
84
85
|
tmp = this_0;
|
|
85
86
|
}
|
|
86
87
|
return tmp;
|
|
@@ -89,13 +90,13 @@
|
|
|
89
90
|
initMetadataForCompanion(Companion_0);
|
|
90
91
|
function ifValid(consumer) {
|
|
91
92
|
var tmp;
|
|
92
|
-
if (this.
|
|
93
|
+
if (this.zo()) {
|
|
93
94
|
var tmp_0 = Companion_instance_4;
|
|
94
95
|
// Inline function 'kotlin.let' call
|
|
95
96
|
var tmp$ret$0 = consumer(this.e2());
|
|
96
|
-
tmp = tmp_0.
|
|
97
|
+
tmp = tmp_0.dp(tmp$ret$0);
|
|
97
98
|
} else {
|
|
98
|
-
tmp = Companion_instance_4.
|
|
99
|
+
tmp = Companion_instance_4.cp();
|
|
99
100
|
}
|
|
100
101
|
return tmp;
|
|
101
102
|
}
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
}
|
|
118
119
|
initMetadataForInterface(Cursor, 'Cursor');
|
|
119
120
|
function component1() {
|
|
120
|
-
return this.
|
|
121
|
+
return this.mp();
|
|
121
122
|
}
|
|
122
123
|
function component2() {
|
|
123
124
|
return this.e2();
|
|
@@ -125,7 +126,7 @@
|
|
|
125
126
|
initMetadataForInterface(Indexed, 'Indexed');
|
|
126
127
|
initMetadataForCompanion(Companion_2);
|
|
127
128
|
function compareTo(other) {
|
|
128
|
-
return this.
|
|
129
|
+
return this.mp() - other.mp() | 0;
|
|
129
130
|
}
|
|
130
131
|
initMetadataForInterface(IntIndexed, 'IntIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
131
132
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -135,7 +136,7 @@
|
|
|
135
136
|
initMetadataForLambda(merge$slambda, CoroutineImpl, VOID, [1]);
|
|
136
137
|
initMetadataForCompanion(Companion_3);
|
|
137
138
|
function compareTo_0(other) {
|
|
138
|
-
return convertToInt(subtract(this.
|
|
139
|
+
return convertToInt(subtract(this.mp(), other.mp()));
|
|
139
140
|
}
|
|
140
141
|
initMetadataForInterface(LongIndexed, 'LongIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
141
142
|
initMetadataForCompanion(Companion_4);
|
|
@@ -143,13 +144,12 @@
|
|
|
143
144
|
initMetadataForClass(Some, 'Some', VOID, Optional);
|
|
144
145
|
initMetadataForObject(None, 'None', VOID, Optional);
|
|
145
146
|
function getTag(name) {
|
|
146
|
-
|
|
147
|
-
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
147
|
+
return this.lr().h2(name);
|
|
148
148
|
}
|
|
149
149
|
function containsTag(name) {
|
|
150
150
|
// Inline function 'kotlin.collections.contains' call
|
|
151
151
|
// Inline function 'kotlin.collections.containsKey' call
|
|
152
|
-
var this_0 = this.
|
|
152
|
+
var this_0 = this.lr();
|
|
153
153
|
return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2(name);
|
|
154
154
|
}
|
|
155
155
|
initMetadataForInterface(Taggable, 'Taggable');
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
//endregion
|
|
170
170
|
function Companion() {
|
|
171
171
|
}
|
|
172
|
-
protoOf(Companion).
|
|
172
|
+
protoOf(Companion).uo = function (capacity) {
|
|
173
173
|
return new SimpleLRUCache(capacity);
|
|
174
174
|
};
|
|
175
175
|
var Companion_instance;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
}
|
|
181
181
|
function Companion_0() {
|
|
182
182
|
}
|
|
183
|
-
protoOf(Companion_0).
|
|
183
|
+
protoOf(Companion_0).yo = function (generator) {
|
|
184
184
|
return new CachedImpl(generator);
|
|
185
185
|
};
|
|
186
186
|
var Companion_instance_0;
|
|
@@ -207,39 +207,39 @@
|
|
|
207
207
|
return Companion_instance_1;
|
|
208
208
|
}
|
|
209
209
|
function Cursor$asIterable$$inlined$Iterable$1(this$0) {
|
|
210
|
-
this.
|
|
210
|
+
this.fp_1 = this$0;
|
|
211
211
|
}
|
|
212
|
-
protoOf(Cursor$asIterable$$inlined$Iterable$1).
|
|
213
|
-
return this.
|
|
212
|
+
protoOf(Cursor$asIterable$$inlined$Iterable$1).n = function () {
|
|
213
|
+
return this.fp_1.iterator();
|
|
214
214
|
};
|
|
215
215
|
function Cursor$asSequence$$inlined$Sequence$1(this$0) {
|
|
216
|
-
this.
|
|
216
|
+
this.gp_1 = this$0;
|
|
217
217
|
}
|
|
218
|
-
protoOf(Cursor$asSequence$$inlined$Sequence$1).
|
|
219
|
-
return this.
|
|
218
|
+
protoOf(Cursor$asSequence$$inlined$Sequence$1).n = function () {
|
|
219
|
+
return this.gp_1.iterator();
|
|
220
220
|
};
|
|
221
221
|
function Cursor() {
|
|
222
222
|
}
|
|
223
223
|
function cursor(_this__u8e3s4) {
|
|
224
|
-
return toCursor(_this__u8e3s4.
|
|
224
|
+
return toCursor(_this__u8e3s4.n());
|
|
225
225
|
}
|
|
226
226
|
function plus(_this__u8e3s4, other) {
|
|
227
|
-
return other.
|
|
227
|
+
return other.jp() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.jp() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
228
228
|
}
|
|
229
229
|
function cursor_0(_this__u8e3s4) {
|
|
230
|
-
return toCursor(_this__u8e3s4.
|
|
230
|
+
return toCursor(_this__u8e3s4.n());
|
|
231
231
|
}
|
|
232
232
|
function cursor_1(_this__u8e3s4) {
|
|
233
233
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
234
234
|
}
|
|
235
235
|
function toCursor(_this__u8e3s4) {
|
|
236
|
-
return Companion_instance_5.
|
|
236
|
+
return Companion_instance_5.lp(_this__u8e3s4);
|
|
237
237
|
}
|
|
238
238
|
function Indexed() {
|
|
239
239
|
}
|
|
240
240
|
function Companion_2() {
|
|
241
241
|
}
|
|
242
|
-
protoOf(Companion_2).
|
|
242
|
+
protoOf(Companion_2).np = function (index, value) {
|
|
243
243
|
return new IntIndexedImpl(index, value);
|
|
244
244
|
};
|
|
245
245
|
var Companion_instance_2;
|
|
@@ -259,10 +259,10 @@
|
|
|
259
259
|
}
|
|
260
260
|
function itemWiseHashCode_0(iterable) {
|
|
261
261
|
var hash = 13;
|
|
262
|
-
var i = iterable.
|
|
263
|
-
while (i.
|
|
262
|
+
var i = iterable.n();
|
|
263
|
+
while (i.q()) {
|
|
264
264
|
var tmp = imul(31, hash);
|
|
265
|
-
var tmp0_safe_receiver = i.
|
|
265
|
+
var tmp0_safe_receiver = i.r();
|
|
266
266
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
267
267
|
hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
268
268
|
}
|
|
@@ -276,11 +276,11 @@
|
|
|
276
276
|
// Inline function 'kotlin.collections.map' call
|
|
277
277
|
// Inline function 'kotlin.collections.mapTo' call
|
|
278
278
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
279
|
-
var _iterator__ex2g4s = iterables.
|
|
280
|
-
while (_iterator__ex2g4s.
|
|
281
|
-
var item = _iterator__ex2g4s.
|
|
282
|
-
var tmp$ret$
|
|
283
|
-
destination.
|
|
279
|
+
var _iterator__ex2g4s = iterables.n();
|
|
280
|
+
while (_iterator__ex2g4s.q()) {
|
|
281
|
+
var item = _iterator__ex2g4s.r();
|
|
282
|
+
var tmp$ret$2 = asIterable_0(item);
|
|
283
|
+
destination.l(tmp$ret$2);
|
|
284
284
|
}
|
|
285
285
|
return merge(tmp, destination);
|
|
286
286
|
}
|
|
@@ -297,16 +297,16 @@
|
|
|
297
297
|
return sequence(insertAt$slambda_0(_this__u8e3s4, index, item, items, null));
|
|
298
298
|
}
|
|
299
299
|
function itemWiseEquals_1(iterable1, iterable2, comparator) {
|
|
300
|
-
var i = iterable1.
|
|
301
|
-
var j = iterable2.
|
|
302
|
-
while (i.
|
|
303
|
-
var a = i.
|
|
304
|
-
var b = j.
|
|
300
|
+
var i = iterable1.n();
|
|
301
|
+
var j = iterable2.n();
|
|
302
|
+
while (i.q() && j.q()) {
|
|
303
|
+
var a = i.r();
|
|
304
|
+
var b = j.r();
|
|
305
305
|
if (!comparator(a, b)) {
|
|
306
306
|
return false;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
return i.
|
|
309
|
+
return i.q() === j.q();
|
|
310
310
|
}
|
|
311
311
|
function merge(comparator, iterables) {
|
|
312
312
|
return sequence(merge$slambda_0(iterables, comparator, null));
|
|
@@ -316,16 +316,16 @@
|
|
|
316
316
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
317
317
|
}
|
|
318
318
|
function sam$kotlin_Comparator$0(function_0) {
|
|
319
|
-
this.
|
|
319
|
+
this.pp_1 = function_0;
|
|
320
320
|
}
|
|
321
321
|
protoOf(sam$kotlin_Comparator$0).tb = function (a, b) {
|
|
322
|
-
return this.
|
|
322
|
+
return this.pp_1(a, b);
|
|
323
323
|
};
|
|
324
324
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
325
325
|
return this.tb(a, b);
|
|
326
326
|
};
|
|
327
327
|
protoOf(sam$kotlin_Comparator$0).p2 = function () {
|
|
328
|
-
return this.
|
|
328
|
+
return this.pp_1;
|
|
329
329
|
};
|
|
330
330
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
331
331
|
var tmp;
|
|
@@ -349,17 +349,17 @@
|
|
|
349
349
|
return equals(a, b);
|
|
350
350
|
}
|
|
351
351
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
352
|
-
this.
|
|
352
|
+
this.yp_1 = $this_dropLast;
|
|
353
353
|
CoroutineImpl.call(this, resultContinuation);
|
|
354
354
|
}
|
|
355
|
-
protoOf(dropLast$slambda).
|
|
356
|
-
var tmp = this.
|
|
355
|
+
protoOf(dropLast$slambda).bq = function ($this$sequence, $completion) {
|
|
356
|
+
var tmp = this.cq($this$sequence, $completion);
|
|
357
357
|
tmp.d8_1 = Unit_instance;
|
|
358
358
|
tmp.e8_1 = null;
|
|
359
359
|
return tmp.j8();
|
|
360
360
|
};
|
|
361
361
|
protoOf(dropLast$slambda).a9 = function (p1, $completion) {
|
|
362
|
-
return this.
|
|
362
|
+
return this.bq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
363
363
|
};
|
|
364
364
|
protoOf(dropLast$slambda).j8 = function () {
|
|
365
365
|
var suspendResult = this.d8_1;
|
|
@@ -369,19 +369,19 @@
|
|
|
369
369
|
switch (tmp) {
|
|
370
370
|
case 0:
|
|
371
371
|
this.c8_1 = 5;
|
|
372
|
-
this.
|
|
372
|
+
this.aq_1 = this.yp_1.n();
|
|
373
373
|
this.b8_1 = 1;
|
|
374
374
|
continue $sm;
|
|
375
375
|
case 1:
|
|
376
|
-
if (!this.
|
|
376
|
+
if (!this.aq_1.q()) {
|
|
377
377
|
this.b8_1 = 4;
|
|
378
378
|
continue $sm;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
var current = this.
|
|
382
|
-
if (this.
|
|
381
|
+
var current = this.aq_1.r();
|
|
382
|
+
if (this.aq_1.q()) {
|
|
383
383
|
this.b8_1 = 2;
|
|
384
|
-
suspendResult = this.
|
|
384
|
+
suspendResult = this.zp_1.bd(current, this);
|
|
385
385
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
386
386
|
return suspendResult;
|
|
387
387
|
}
|
|
@@ -413,34 +413,32 @@
|
|
|
413
413
|
}
|
|
414
414
|
while (true);
|
|
415
415
|
};
|
|
416
|
-
protoOf(dropLast$slambda).
|
|
417
|
-
var i = new dropLast$slambda(this.
|
|
418
|
-
i.
|
|
416
|
+
protoOf(dropLast$slambda).cq = function ($this$sequence, completion) {
|
|
417
|
+
var i = new dropLast$slambda(this.yp_1, completion);
|
|
418
|
+
i.zp_1 = $this$sequence;
|
|
419
419
|
return i;
|
|
420
420
|
};
|
|
421
421
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
422
422
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
423
|
-
|
|
424
|
-
return i.
|
|
425
|
-
};
|
|
426
|
-
l.$arity = 1;
|
|
427
|
-
return l;
|
|
423
|
+
return constructCallableReference(function ($this$sequence, $completion) {
|
|
424
|
+
return i.bq($this$sequence, $completion);
|
|
425
|
+
}, 1);
|
|
428
426
|
}
|
|
429
427
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
428
|
+
this.lq_1 = $this_insertAt;
|
|
429
|
+
this.mq_1 = $index;
|
|
430
|
+
this.nq_1 = $item;
|
|
431
|
+
this.oq_1 = $items;
|
|
434
432
|
CoroutineImpl.call(this, resultContinuation);
|
|
435
433
|
}
|
|
436
|
-
protoOf(insertAt$slambda).
|
|
437
|
-
var tmp = this.
|
|
434
|
+
protoOf(insertAt$slambda).bq = function ($this$sequence, $completion) {
|
|
435
|
+
var tmp = this.cq($this$sequence, $completion);
|
|
438
436
|
tmp.d8_1 = Unit_instance;
|
|
439
437
|
tmp.e8_1 = null;
|
|
440
438
|
return tmp.j8();
|
|
441
439
|
};
|
|
442
440
|
protoOf(insertAt$slambda).a9 = function (p1, $completion) {
|
|
443
|
-
return this.
|
|
441
|
+
return this.bq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
444
442
|
};
|
|
445
443
|
protoOf(insertAt$slambda).j8 = function () {
|
|
446
444
|
var suspendResult = this.d8_1;
|
|
@@ -450,21 +448,21 @@
|
|
|
450
448
|
switch (tmp) {
|
|
451
449
|
case 0:
|
|
452
450
|
this.c8_1 = 7;
|
|
453
|
-
this.
|
|
451
|
+
this.rq_1 = asIterable_0(withIndex(this.lq_1)).n();
|
|
454
452
|
this.b8_1 = 1;
|
|
455
453
|
continue $sm;
|
|
456
454
|
case 1:
|
|
457
|
-
if (!this.
|
|
455
|
+
if (!this.rq_1.q()) {
|
|
458
456
|
this.b8_1 = 6;
|
|
459
457
|
continue $sm;
|
|
460
458
|
}
|
|
461
459
|
|
|
462
|
-
var _destruct__k2r9zo = this.
|
|
463
|
-
var i = _destruct__k2r9zo.
|
|
464
|
-
this.
|
|
465
|
-
if (i === this.
|
|
460
|
+
var _destruct__k2r9zo = this.rq_1.r();
|
|
461
|
+
var i = _destruct__k2r9zo.oc();
|
|
462
|
+
this.qq_1 = _destruct__k2r9zo.pc();
|
|
463
|
+
if (i === this.mq_1) {
|
|
466
464
|
this.b8_1 = 2;
|
|
467
|
-
suspendResult = this.
|
|
465
|
+
suspendResult = this.pq_1.bd(this.nq_1, this);
|
|
468
466
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
467
|
return suspendResult;
|
|
470
468
|
}
|
|
@@ -476,7 +474,7 @@
|
|
|
476
474
|
|
|
477
475
|
case 2:
|
|
478
476
|
this.b8_1 = 3;
|
|
479
|
-
suspendResult = this.
|
|
477
|
+
suspendResult = this.pq_1.dd(asIterable(this.oq_1), this);
|
|
480
478
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
481
479
|
return suspendResult;
|
|
482
480
|
}
|
|
@@ -487,7 +485,7 @@
|
|
|
487
485
|
continue $sm;
|
|
488
486
|
case 4:
|
|
489
487
|
this.b8_1 = 5;
|
|
490
|
-
suspendResult = this.
|
|
488
|
+
suspendResult = this.pq_1.bd(this.qq_1, this);
|
|
491
489
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
492
490
|
return suspendResult;
|
|
493
491
|
}
|
|
@@ -512,30 +510,28 @@
|
|
|
512
510
|
}
|
|
513
511
|
while (true);
|
|
514
512
|
};
|
|
515
|
-
protoOf(insertAt$slambda).
|
|
516
|
-
var i = new insertAt$slambda(this.
|
|
517
|
-
i.
|
|
513
|
+
protoOf(insertAt$slambda).cq = function ($this$sequence, completion) {
|
|
514
|
+
var i = new insertAt$slambda(this.lq_1, this.mq_1, this.nq_1, this.oq_1, completion);
|
|
515
|
+
i.pq_1 = $this$sequence;
|
|
518
516
|
return i;
|
|
519
517
|
};
|
|
520
518
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
521
519
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
522
|
-
|
|
523
|
-
return i.
|
|
524
|
-
};
|
|
525
|
-
l.$arity = 1;
|
|
526
|
-
return l;
|
|
520
|
+
return constructCallableReference(function ($this$sequence, $completion) {
|
|
521
|
+
return i.bq($this$sequence, $completion);
|
|
522
|
+
}, 1);
|
|
527
523
|
}
|
|
528
524
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
529
|
-
this.
|
|
525
|
+
this.sq_1 = function_0;
|
|
530
526
|
}
|
|
531
527
|
protoOf(sam$kotlin_Comparator$0_0).tb = function (a, b) {
|
|
532
|
-
return this.
|
|
528
|
+
return this.sq_1(a, b);
|
|
533
529
|
};
|
|
534
530
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
535
531
|
return this.tb(a, b);
|
|
536
532
|
};
|
|
537
533
|
protoOf(sam$kotlin_Comparator$0_0).p2 = function () {
|
|
538
|
-
return this.
|
|
534
|
+
return this.sq_1;
|
|
539
535
|
};
|
|
540
536
|
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
541
537
|
var tmp;
|
|
@@ -559,10 +555,10 @@
|
|
|
559
555
|
return cursor_0(it);
|
|
560
556
|
}
|
|
561
557
|
function merge$slambda$lambda_0(it) {
|
|
562
|
-
return it.
|
|
558
|
+
return it.kp();
|
|
563
559
|
}
|
|
564
560
|
function merge$slambda$lambda_1(it) {
|
|
565
|
-
return ensureNotNull(it.
|
|
561
|
+
return ensureNotNull(it.ip());
|
|
566
562
|
}
|
|
567
563
|
function merge$slambda$lambda_2($comparator) {
|
|
568
564
|
return function (a, b) {
|
|
@@ -570,18 +566,18 @@
|
|
|
570
566
|
};
|
|
571
567
|
}
|
|
572
568
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
569
|
+
this.br_1 = $iterables;
|
|
570
|
+
this.cr_1 = $comparator;
|
|
575
571
|
CoroutineImpl.call(this, resultContinuation);
|
|
576
572
|
}
|
|
577
|
-
protoOf(merge$slambda).
|
|
578
|
-
var tmp = this.
|
|
573
|
+
protoOf(merge$slambda).bq = function ($this$sequence, $completion) {
|
|
574
|
+
var tmp = this.cq($this$sequence, $completion);
|
|
579
575
|
tmp.d8_1 = Unit_instance;
|
|
580
576
|
tmp.e8_1 = null;
|
|
581
577
|
return tmp.j8();
|
|
582
578
|
};
|
|
583
579
|
protoOf(merge$slambda).a9 = function (p1, $completion) {
|
|
584
|
-
return this.
|
|
580
|
+
return this.bq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
585
581
|
};
|
|
586
582
|
protoOf(merge$slambda).j8 = function () {
|
|
587
583
|
var suspendResult = this.d8_1;
|
|
@@ -592,37 +588,37 @@
|
|
|
592
588
|
case 0:
|
|
593
589
|
this.c8_1 = 3;
|
|
594
590
|
var tmp_0 = this;
|
|
595
|
-
var tmp_1 = asSequence(this.
|
|
591
|
+
var tmp_1 = asSequence(this.br_1);
|
|
596
592
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
597
|
-
tmp_0.
|
|
593
|
+
tmp_0.fr_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
598
594
|
this.b8_1 = 1;
|
|
599
595
|
continue $sm;
|
|
600
596
|
case 1:
|
|
601
|
-
if (!!this.
|
|
597
|
+
if (!!this.fr_1.h()) {
|
|
602
598
|
this.b8_1 = 4;
|
|
603
599
|
continue $sm;
|
|
604
600
|
}
|
|
605
601
|
|
|
606
|
-
var tmp_3 = asSequence(this.
|
|
602
|
+
var tmp_3 = asSequence(this.fr_1);
|
|
607
603
|
var tmp_4 = indexed(map(tmp_3, merge$slambda$lambda_1));
|
|
608
|
-
var tmp_5 = merge$slambda$lambda_2(this.
|
|
604
|
+
var tmp_5 = merge$slambda$lambda_2(this.cr_1);
|
|
609
605
|
var _destruct__k2r9zo = ensureNotNull(minWithOrNull(tmp_4, new sam$kotlin_Comparator$0_0(tmp_5)));
|
|
610
|
-
this.
|
|
611
|
-
var minValue = _destruct__k2r9zo.
|
|
606
|
+
this.er_1 = _destruct__k2r9zo.oc();
|
|
607
|
+
var minValue = _destruct__k2r9zo.pc();
|
|
612
608
|
this.b8_1 = 2;
|
|
613
|
-
suspendResult = this.
|
|
609
|
+
suspendResult = this.dr_1.bd(minValue, this);
|
|
614
610
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
615
611
|
return suspendResult;
|
|
616
612
|
}
|
|
617
613
|
|
|
618
614
|
continue $sm;
|
|
619
615
|
case 2:
|
|
620
|
-
var it = this.
|
|
616
|
+
var it = this.fr_1.x(this.er_1).hp();
|
|
621
617
|
var tmp_6;
|
|
622
|
-
if (it.
|
|
623
|
-
tmp_6 = this.
|
|
618
|
+
if (it.kp()) {
|
|
619
|
+
tmp_6 = this.fr_1.g3(this.er_1);
|
|
624
620
|
} else {
|
|
625
|
-
this.
|
|
621
|
+
this.fr_1.y3(this.er_1, it);
|
|
626
622
|
tmp_6 = Unit_instance;
|
|
627
623
|
}
|
|
628
624
|
|
|
@@ -644,25 +640,23 @@
|
|
|
644
640
|
}
|
|
645
641
|
while (true);
|
|
646
642
|
};
|
|
647
|
-
protoOf(merge$slambda).
|
|
648
|
-
var i = new merge$slambda(this.
|
|
649
|
-
i.
|
|
643
|
+
protoOf(merge$slambda).cq = function ($this$sequence, completion) {
|
|
644
|
+
var i = new merge$slambda(this.br_1, this.cr_1, completion);
|
|
645
|
+
i.dr_1 = $this$sequence;
|
|
650
646
|
return i;
|
|
651
647
|
};
|
|
652
648
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
653
649
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
654
|
-
|
|
655
|
-
return i.
|
|
656
|
-
};
|
|
657
|
-
l.$arity = 1;
|
|
658
|
-
return l;
|
|
650
|
+
return constructCallableReference(function ($this$sequence, $completion) {
|
|
651
|
+
return i.bq($this$sequence, $completion);
|
|
652
|
+
}, 1);
|
|
659
653
|
}
|
|
660
654
|
function indexed$lambda(it, i) {
|
|
661
|
-
return Companion_instance_2.
|
|
655
|
+
return Companion_instance_2.np(i, it);
|
|
662
656
|
}
|
|
663
657
|
function Companion_3() {
|
|
664
658
|
}
|
|
665
|
-
protoOf(Companion_3).
|
|
659
|
+
protoOf(Companion_3).gr = function (index, value) {
|
|
666
660
|
return new LongIndexedImpl(index, value);
|
|
667
661
|
};
|
|
668
662
|
var Companion_instance_3;
|
|
@@ -673,19 +667,19 @@
|
|
|
673
667
|
}
|
|
674
668
|
function Companion_4() {
|
|
675
669
|
}
|
|
676
|
-
protoOf(Companion_4).
|
|
670
|
+
protoOf(Companion_4).ir = function (value) {
|
|
677
671
|
return new Some(value);
|
|
678
672
|
};
|
|
679
|
-
protoOf(Companion_4).
|
|
673
|
+
protoOf(Companion_4).dp = function (value) {
|
|
680
674
|
var tmp;
|
|
681
675
|
if (value == null) {
|
|
682
|
-
tmp = this.
|
|
676
|
+
tmp = this.cp();
|
|
683
677
|
} else {
|
|
684
|
-
tmp = this.
|
|
678
|
+
tmp = this.ir(value);
|
|
685
679
|
}
|
|
686
680
|
return tmp;
|
|
687
681
|
};
|
|
688
|
-
protoOf(Companion_4).
|
|
682
|
+
protoOf(Companion_4).cp = function () {
|
|
689
683
|
return None_getInstance();
|
|
690
684
|
};
|
|
691
685
|
var Companion_instance_4;
|
|
@@ -694,26 +688,26 @@
|
|
|
694
688
|
}
|
|
695
689
|
function Some(value) {
|
|
696
690
|
Optional.call(this);
|
|
697
|
-
this.
|
|
691
|
+
this.xo_1 = value;
|
|
698
692
|
}
|
|
699
693
|
protoOf(Some).e2 = function () {
|
|
700
|
-
return this.
|
|
694
|
+
return this.xo_1;
|
|
701
695
|
};
|
|
702
|
-
protoOf(Some).
|
|
696
|
+
protoOf(Some).jr = function () {
|
|
703
697
|
return true;
|
|
704
698
|
};
|
|
705
699
|
protoOf(Some).toString = function () {
|
|
706
|
-
return 'Some(' + toString(this.
|
|
700
|
+
return 'Some(' + toString(this.xo_1) + ')';
|
|
707
701
|
};
|
|
708
702
|
protoOf(Some).hashCode = function () {
|
|
709
|
-
return this.
|
|
703
|
+
return this.xo_1 == null ? 0 : hashCode(this.xo_1);
|
|
710
704
|
};
|
|
711
705
|
protoOf(Some).equals = function (other) {
|
|
712
706
|
if (this === other)
|
|
713
707
|
return true;
|
|
714
708
|
if (!(other instanceof Some))
|
|
715
709
|
return false;
|
|
716
|
-
if (!equals(this.
|
|
710
|
+
if (!equals(this.xo_1, other.xo_1))
|
|
717
711
|
return false;
|
|
718
712
|
return true;
|
|
719
713
|
};
|
|
@@ -724,7 +718,7 @@
|
|
|
724
718
|
protoOf(None).e2 = function () {
|
|
725
719
|
return null;
|
|
726
720
|
};
|
|
727
|
-
protoOf(None).
|
|
721
|
+
protoOf(None).jr = function () {
|
|
728
722
|
return false;
|
|
729
723
|
};
|
|
730
724
|
protoOf(None).toString = function () {
|
|
@@ -738,14 +732,14 @@
|
|
|
738
732
|
}
|
|
739
733
|
function Optional() {
|
|
740
734
|
}
|
|
741
|
-
protoOf(Optional).
|
|
742
|
-
return !this.
|
|
735
|
+
protoOf(Optional).kr = function () {
|
|
736
|
+
return !this.jr();
|
|
743
737
|
};
|
|
744
738
|
function Taggable() {
|
|
745
739
|
}
|
|
746
740
|
function setTag(_this__u8e3s4, key, value) {
|
|
747
741
|
// Inline function 'kotlin.also' call
|
|
748
|
-
var this_0 = toMutableMap(_this__u8e3s4.
|
|
742
|
+
var this_0 = toMutableMap(_this__u8e3s4.lr());
|
|
749
743
|
// Inline function 'kotlin.collections.set' call
|
|
750
744
|
this_0.k4(key, value);
|
|
751
745
|
return setTags(_this__u8e3s4, this_0);
|
|
@@ -759,9 +753,9 @@
|
|
|
759
753
|
}
|
|
760
754
|
function Companion_5() {
|
|
761
755
|
}
|
|
762
|
-
protoOf(Companion_5).
|
|
756
|
+
protoOf(Companion_5).lp = function (source) {
|
|
763
757
|
var tmp;
|
|
764
|
-
if (source.
|
|
758
|
+
if (source.q()) {
|
|
765
759
|
tmp = new LazyCursor(source);
|
|
766
760
|
} else {
|
|
767
761
|
tmp = EmptyCursor_getInstance();
|
|
@@ -773,105 +767,105 @@
|
|
|
773
767
|
return Companion_instance_5;
|
|
774
768
|
}
|
|
775
769
|
function AbstractCursor$iterator$1(this$0) {
|
|
776
|
-
this.
|
|
770
|
+
this.mr_1 = this$0;
|
|
777
771
|
}
|
|
778
|
-
protoOf(AbstractCursor$iterator$1).
|
|
779
|
-
return !this.
|
|
772
|
+
protoOf(AbstractCursor$iterator$1).q = function () {
|
|
773
|
+
return !this.mr_1.kp();
|
|
780
774
|
};
|
|
781
|
-
protoOf(AbstractCursor$iterator$1).
|
|
782
|
-
var result = this.
|
|
783
|
-
this.
|
|
775
|
+
protoOf(AbstractCursor$iterator$1).r = function () {
|
|
776
|
+
var result = this.mr_1.ip();
|
|
777
|
+
this.mr_1 = this.mr_1.hp();
|
|
784
778
|
return ensureNotNull(result);
|
|
785
779
|
};
|
|
786
780
|
function AbstractCursor() {
|
|
787
781
|
}
|
|
788
782
|
protoOf(AbstractCursor).toString = function () {
|
|
789
|
-
return this.
|
|
783
|
+
return this.kp() ? '[]' : !this.jp() ? '[' + toString(this.ip()) + ']' : '[' + toString(this.ip()) + ', ...]';
|
|
790
784
|
};
|
|
791
|
-
protoOf(AbstractCursor).
|
|
785
|
+
protoOf(AbstractCursor).n = function () {
|
|
792
786
|
return new AbstractCursor$iterator$1(this);
|
|
793
787
|
};
|
|
794
788
|
protoOf(AbstractCursor).iterator = function () {
|
|
795
|
-
return this.
|
|
789
|
+
return this.n();
|
|
796
790
|
};
|
|
797
|
-
protoOf(AbstractCursor).
|
|
791
|
+
protoOf(AbstractCursor).nr = function () {
|
|
798
792
|
return false;
|
|
799
793
|
};
|
|
800
|
-
protoOf(AbstractCursor).
|
|
794
|
+
protoOf(AbstractCursor).pr = function (mapper) {
|
|
801
795
|
return new MapperCursor(this, mapper);
|
|
802
796
|
};
|
|
803
797
|
protoOf(AbstractCursor).map = function (mapper) {
|
|
804
|
-
return this.
|
|
798
|
+
return this.pr(mapper);
|
|
805
799
|
};
|
|
806
800
|
function CachedImpl(generator) {
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
801
|
+
this.qr_1 = generator;
|
|
802
|
+
this.rr_1 = Companion_instance_4.cp();
|
|
809
803
|
}
|
|
810
|
-
protoOf(CachedImpl).
|
|
811
|
-
return this.
|
|
804
|
+
protoOf(CachedImpl).zo = function () {
|
|
805
|
+
return this.rr_1.jr();
|
|
812
806
|
};
|
|
813
|
-
protoOf(CachedImpl).
|
|
814
|
-
return this.
|
|
807
|
+
protoOf(CachedImpl).sr = function () {
|
|
808
|
+
return this.rr_1.kr();
|
|
815
809
|
};
|
|
816
810
|
protoOf(CachedImpl).e2 = function () {
|
|
817
|
-
this.
|
|
818
|
-
return ensureNotNull(this.
|
|
811
|
+
this.tr();
|
|
812
|
+
return ensureNotNull(this.rr_1.e2());
|
|
819
813
|
};
|
|
820
|
-
protoOf(CachedImpl).
|
|
821
|
-
if (this.
|
|
822
|
-
this.
|
|
814
|
+
protoOf(CachedImpl).tr = function () {
|
|
815
|
+
if (this.sr()) {
|
|
816
|
+
this.rr_1 = Companion_instance_4.ir(this.qr_1());
|
|
823
817
|
}
|
|
824
818
|
};
|
|
825
|
-
protoOf(CachedImpl).
|
|
826
|
-
this.
|
|
819
|
+
protoOf(CachedImpl).ap = function () {
|
|
820
|
+
this.rr_1 = Companion_instance_4.cp();
|
|
827
821
|
};
|
|
828
822
|
protoOf(CachedImpl).toString = function () {
|
|
829
|
-
return 'CachedImpl(generator=' + toString_0(this.
|
|
823
|
+
return 'CachedImpl(generator=' + toString_0(this.qr_1) + ')';
|
|
830
824
|
};
|
|
831
825
|
protoOf(CachedImpl).hashCode = function () {
|
|
832
|
-
return hashCode(this.
|
|
826
|
+
return hashCode(this.qr_1);
|
|
833
827
|
};
|
|
834
828
|
protoOf(CachedImpl).equals = function (other) {
|
|
835
829
|
if (this === other)
|
|
836
830
|
return true;
|
|
837
831
|
if (!(other instanceof CachedImpl))
|
|
838
832
|
return false;
|
|
839
|
-
if (!equals(this.
|
|
833
|
+
if (!equals(this.qr_1, other.qr_1))
|
|
840
834
|
return false;
|
|
841
835
|
return true;
|
|
842
836
|
};
|
|
843
837
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
844
838
|
return function () {
|
|
845
|
-
return this$0.
|
|
839
|
+
return this$0.ur_1.jp() ? new ConjunctionCursor(this$0.ur_1.hp(), this$0.vr_1) : this$0.vr_1.nr() ? this$0.vr_1.hp() : this$0.vr_1;
|
|
846
840
|
};
|
|
847
841
|
}
|
|
848
842
|
function ConjunctionCursor$_get_next_$ref_xfvrtr() {
|
|
849
|
-
return function (p0) {
|
|
850
|
-
return p0.
|
|
851
|
-
};
|
|
843
|
+
return constructCallableReference(function (p0) {
|
|
844
|
+
return p0.hp();
|
|
845
|
+
}, 1, 0, 1);
|
|
852
846
|
}
|
|
853
847
|
function ConjunctionCursor(first, second) {
|
|
854
848
|
AbstractCursor.call(this);
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
849
|
+
this.ur_1 = first;
|
|
850
|
+
this.vr_1 = second;
|
|
857
851
|
var tmp = this;
|
|
858
|
-
tmp.
|
|
852
|
+
tmp.wr_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
859
853
|
}
|
|
860
|
-
protoOf(ConjunctionCursor).
|
|
861
|
-
return this.
|
|
854
|
+
protoOf(ConjunctionCursor).kp = function () {
|
|
855
|
+
return this.ur_1.kp() && this.vr_1.kp();
|
|
862
856
|
};
|
|
863
|
-
protoOf(ConjunctionCursor).
|
|
864
|
-
var tmp0 = this.
|
|
857
|
+
protoOf(ConjunctionCursor).hp = function () {
|
|
858
|
+
var tmp0 = this.wr_1;
|
|
865
859
|
var tmp = KProperty1;
|
|
866
860
|
// Inline function 'kotlin.getValue' call
|
|
867
861
|
getPropertyCallableRef('next', 1, tmp, ConjunctionCursor$_get_next_$ref_xfvrtr(), null);
|
|
868
862
|
return tmp0.e2();
|
|
869
863
|
};
|
|
870
|
-
protoOf(ConjunctionCursor).
|
|
871
|
-
return this.
|
|
864
|
+
protoOf(ConjunctionCursor).ip = function () {
|
|
865
|
+
return this.ur_1.jp() ? this.ur_1.ip() : this.vr_1.ip();
|
|
872
866
|
};
|
|
873
|
-
protoOf(ConjunctionCursor).
|
|
874
|
-
return this.
|
|
867
|
+
protoOf(ConjunctionCursor).jp = function () {
|
|
868
|
+
return this.ur_1.jp() || this.vr_1.jp();
|
|
875
869
|
};
|
|
876
870
|
protoOf(ConjunctionCursor).equals = function (other) {
|
|
877
871
|
if (this === other)
|
|
@@ -880,44 +874,44 @@
|
|
|
880
874
|
return false;
|
|
881
875
|
if (!(other instanceof ConjunctionCursor))
|
|
882
876
|
THROW_CCE();
|
|
883
|
-
if (!equals(this.
|
|
877
|
+
if (!equals(this.ur_1, other.ur_1))
|
|
884
878
|
return false;
|
|
885
|
-
if (!equals(this.
|
|
879
|
+
if (!equals(this.vr_1, other.vr_1))
|
|
886
880
|
return false;
|
|
887
881
|
return true;
|
|
888
882
|
};
|
|
889
883
|
protoOf(ConjunctionCursor).hashCode = function () {
|
|
890
|
-
var result = hashCode(this.
|
|
891
|
-
result = imul(31, result) + hashCode(this.
|
|
884
|
+
var result = hashCode(this.ur_1);
|
|
885
|
+
result = imul(31, result) + hashCode(this.vr_1) | 0;
|
|
892
886
|
return result;
|
|
893
887
|
};
|
|
894
888
|
function EmptyCursor() {
|
|
895
889
|
EmptyCursor_instance = this;
|
|
896
890
|
AbstractCursor.call(this);
|
|
897
891
|
}
|
|
898
|
-
protoOf(EmptyCursor).
|
|
892
|
+
protoOf(EmptyCursor).hp = function () {
|
|
899
893
|
throw NoSuchElementException_init_$Create$();
|
|
900
894
|
};
|
|
901
|
-
protoOf(EmptyCursor).
|
|
895
|
+
protoOf(EmptyCursor).ip = function () {
|
|
902
896
|
return null;
|
|
903
897
|
};
|
|
904
|
-
protoOf(EmptyCursor).
|
|
898
|
+
protoOf(EmptyCursor).jp = function () {
|
|
905
899
|
return false;
|
|
906
900
|
};
|
|
907
|
-
protoOf(EmptyCursor).
|
|
901
|
+
protoOf(EmptyCursor).kp = function () {
|
|
908
902
|
return true;
|
|
909
903
|
};
|
|
910
904
|
protoOf(EmptyCursor).toString = function () {
|
|
911
905
|
return protoOf(AbstractCursor).toString.call(this);
|
|
912
906
|
};
|
|
913
|
-
protoOf(EmptyCursor).
|
|
907
|
+
protoOf(EmptyCursor).xr = function (mapper) {
|
|
914
908
|
return this;
|
|
915
909
|
};
|
|
916
910
|
protoOf(EmptyCursor).map = function (mapper) {
|
|
917
|
-
return this.
|
|
911
|
+
return this.xr(mapper);
|
|
918
912
|
};
|
|
919
|
-
protoOf(EmptyCursor).
|
|
920
|
-
return this.
|
|
913
|
+
protoOf(EmptyCursor).pr = function (mapper) {
|
|
914
|
+
return this.xr(mapper);
|
|
921
915
|
};
|
|
922
916
|
var EmptyCursor_instance;
|
|
923
917
|
function EmptyCursor_getInstance() {
|
|
@@ -926,27 +920,27 @@
|
|
|
926
920
|
return EmptyCursor_instance;
|
|
927
921
|
}
|
|
928
922
|
function IntIndexedImpl(index, value) {
|
|
929
|
-
this.
|
|
930
|
-
this.
|
|
923
|
+
this.yr_1 = index;
|
|
924
|
+
this.zr_1 = value;
|
|
931
925
|
}
|
|
932
|
-
protoOf(IntIndexedImpl).
|
|
933
|
-
return this.
|
|
926
|
+
protoOf(IntIndexedImpl).mp = function () {
|
|
927
|
+
return this.yr_1;
|
|
934
928
|
};
|
|
935
929
|
protoOf(IntIndexedImpl).e2 = function () {
|
|
936
|
-
return this.
|
|
930
|
+
return this.zr_1;
|
|
937
931
|
};
|
|
938
|
-
protoOf(IntIndexedImpl).
|
|
939
|
-
return this.
|
|
932
|
+
protoOf(IntIndexedImpl).oc = function () {
|
|
933
|
+
return this.yr_1;
|
|
940
934
|
};
|
|
941
|
-
protoOf(IntIndexedImpl).
|
|
942
|
-
return this.
|
|
935
|
+
protoOf(IntIndexedImpl).pc = function () {
|
|
936
|
+
return this.zr_1;
|
|
943
937
|
};
|
|
944
938
|
protoOf(IntIndexedImpl).toString = function () {
|
|
945
|
-
return 'IntIndexedImpl(index=' + this.
|
|
939
|
+
return 'IntIndexedImpl(index=' + this.yr_1 + ', value=' + toString(this.zr_1) + ')';
|
|
946
940
|
};
|
|
947
941
|
protoOf(IntIndexedImpl).hashCode = function () {
|
|
948
|
-
var result = this.
|
|
949
|
-
result = imul(result, 31) + (this.
|
|
942
|
+
var result = this.yr_1;
|
|
943
|
+
result = imul(result, 31) + (this.zr_1 == null ? 0 : hashCode(this.zr_1)) | 0;
|
|
950
944
|
return result;
|
|
951
945
|
};
|
|
952
946
|
protoOf(IntIndexedImpl).equals = function (other) {
|
|
@@ -954,17 +948,17 @@
|
|
|
954
948
|
return true;
|
|
955
949
|
if (!(other instanceof IntIndexedImpl))
|
|
956
950
|
return false;
|
|
957
|
-
if (!(this.
|
|
951
|
+
if (!(this.yr_1 === other.yr_1))
|
|
958
952
|
return false;
|
|
959
|
-
if (!equals(this.
|
|
953
|
+
if (!equals(this.zr_1, other.zr_1))
|
|
960
954
|
return false;
|
|
961
955
|
return true;
|
|
962
956
|
};
|
|
963
957
|
protoOf(IntIndexedImpl).d = function (other) {
|
|
964
|
-
return this.
|
|
958
|
+
return this.op((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
965
959
|
};
|
|
966
960
|
function _get_wrapped__s2ip8($this) {
|
|
967
|
-
var tmp0 = $this.
|
|
961
|
+
var tmp0 = $this.bs_1;
|
|
968
962
|
var tmp = KProperty1;
|
|
969
963
|
// Inline function 'kotlin.getValue' call
|
|
970
964
|
getPropertyCallableRef('wrapped', 1, tmp, LazyCursor$_get_wrapped_$ref_p28zr5(), null);
|
|
@@ -972,84 +966,84 @@
|
|
|
972
966
|
}
|
|
973
967
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
974
968
|
return function () {
|
|
975
|
-
return new NonLastCursor(this$0.
|
|
969
|
+
return new NonLastCursor(this$0.as_1);
|
|
976
970
|
};
|
|
977
971
|
}
|
|
978
972
|
function LazyCursor$_get_wrapped_$ref_p28zr5() {
|
|
979
|
-
return function (p0) {
|
|
973
|
+
return constructCallableReference(function (p0) {
|
|
980
974
|
return _get_wrapped__s2ip8(p0);
|
|
981
|
-
};
|
|
975
|
+
}, 1, 0, 2);
|
|
982
976
|
}
|
|
983
977
|
function LazyCursor(delegate) {
|
|
984
978
|
AbstractCursor.call(this);
|
|
985
|
-
this.
|
|
979
|
+
this.as_1 = delegate;
|
|
986
980
|
var tmp = this;
|
|
987
|
-
tmp.
|
|
981
|
+
tmp.bs_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
988
982
|
}
|
|
989
|
-
protoOf(LazyCursor).
|
|
983
|
+
protoOf(LazyCursor).nr = function () {
|
|
990
984
|
return true;
|
|
991
985
|
};
|
|
992
|
-
protoOf(LazyCursor).
|
|
993
|
-
return _get_wrapped__s2ip8(this).
|
|
986
|
+
protoOf(LazyCursor).hp = function () {
|
|
987
|
+
return _get_wrapped__s2ip8(this).hp();
|
|
994
988
|
};
|
|
995
|
-
protoOf(LazyCursor).
|
|
996
|
-
return _get_wrapped__s2ip8(this).
|
|
989
|
+
protoOf(LazyCursor).ip = function () {
|
|
990
|
+
return _get_wrapped__s2ip8(this).ip();
|
|
997
991
|
};
|
|
998
|
-
protoOf(LazyCursor).
|
|
992
|
+
protoOf(LazyCursor).jp = function () {
|
|
999
993
|
return true;
|
|
1000
994
|
};
|
|
1001
|
-
protoOf(LazyCursor).
|
|
995
|
+
protoOf(LazyCursor).kp = function () {
|
|
1002
996
|
return false;
|
|
1003
997
|
};
|
|
1004
998
|
protoOf(LazyCursor).toString = function () {
|
|
1005
999
|
return protoOf(AbstractCursor).toString.call(this);
|
|
1006
1000
|
};
|
|
1007
|
-
protoOf(LazyCursor).
|
|
1008
|
-
return _get_wrapped__s2ip8(this).
|
|
1001
|
+
protoOf(LazyCursor).n = function () {
|
|
1002
|
+
return _get_wrapped__s2ip8(this).n();
|
|
1009
1003
|
};
|
|
1010
1004
|
protoOf(LazyCursor).iterator = function () {
|
|
1011
|
-
return this.
|
|
1005
|
+
return this.n();
|
|
1012
1006
|
};
|
|
1013
1007
|
protoOf(LazyCursor).hashCode = function () {
|
|
1014
|
-
return hashCode(this.
|
|
1008
|
+
return hashCode(this.as_1);
|
|
1015
1009
|
};
|
|
1016
1010
|
protoOf(LazyCursor).equals = function (other) {
|
|
1017
1011
|
if (this === other)
|
|
1018
1012
|
return true;
|
|
1019
1013
|
if (!(other instanceof LazyCursor))
|
|
1020
1014
|
return false;
|
|
1021
|
-
if (!equals(this.
|
|
1015
|
+
if (!equals(this.as_1, other.as_1))
|
|
1022
1016
|
return false;
|
|
1023
1017
|
return true;
|
|
1024
1018
|
};
|
|
1025
1019
|
function LongIndexedImpl(index, value) {
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1020
|
+
this.cs_1 = index;
|
|
1021
|
+
this.ds_1 = value;
|
|
1028
1022
|
}
|
|
1029
|
-
protoOf(LongIndexedImpl).
|
|
1030
|
-
return this.
|
|
1023
|
+
protoOf(LongIndexedImpl).mp = function () {
|
|
1024
|
+
return this.cs_1;
|
|
1031
1025
|
};
|
|
1032
1026
|
protoOf(LongIndexedImpl).e2 = function () {
|
|
1033
|
-
return this.
|
|
1027
|
+
return this.ds_1;
|
|
1034
1028
|
};
|
|
1035
|
-
protoOf(LongIndexedImpl).
|
|
1036
|
-
return convertToInt(subtract(this.
|
|
1029
|
+
protoOf(LongIndexedImpl).hr = function (other) {
|
|
1030
|
+
return convertToInt(subtract(this.cs_1, other.mp()));
|
|
1037
1031
|
};
|
|
1038
1032
|
protoOf(LongIndexedImpl).d = function (other) {
|
|
1039
|
-
return this.
|
|
1033
|
+
return this.hr((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1040
1034
|
};
|
|
1041
|
-
protoOf(LongIndexedImpl).
|
|
1042
|
-
return this.
|
|
1035
|
+
protoOf(LongIndexedImpl).oc = function () {
|
|
1036
|
+
return this.cs_1;
|
|
1043
1037
|
};
|
|
1044
|
-
protoOf(LongIndexedImpl).
|
|
1045
|
-
return this.
|
|
1038
|
+
protoOf(LongIndexedImpl).pc = function () {
|
|
1039
|
+
return this.ds_1;
|
|
1046
1040
|
};
|
|
1047
1041
|
protoOf(LongIndexedImpl).toString = function () {
|
|
1048
|
-
return 'LongIndexedImpl(index=' + this.
|
|
1042
|
+
return 'LongIndexedImpl(index=' + this.cs_1.toString() + ', value=' + toString(this.ds_1) + ')';
|
|
1049
1043
|
};
|
|
1050
1044
|
protoOf(LongIndexedImpl).hashCode = function () {
|
|
1051
|
-
var result = getBigIntHashCode(this.
|
|
1052
|
-
result = imul(result, 31) + (this.
|
|
1045
|
+
var result = getBigIntHashCode(this.cs_1);
|
|
1046
|
+
result = imul(result, 31) + (this.ds_1 == null ? 0 : hashCode(this.ds_1)) | 0;
|
|
1053
1047
|
return result;
|
|
1054
1048
|
};
|
|
1055
1049
|
protoOf(LongIndexedImpl).equals = function (other) {
|
|
@@ -1057,43 +1051,43 @@
|
|
|
1057
1051
|
return true;
|
|
1058
1052
|
if (!(other instanceof LongIndexedImpl))
|
|
1059
1053
|
return false;
|
|
1060
|
-
if (!(this.
|
|
1054
|
+
if (!(this.cs_1 === other.cs_1))
|
|
1061
1055
|
return false;
|
|
1062
|
-
if (!equals(this.
|
|
1056
|
+
if (!equals(this.ds_1, other.ds_1))
|
|
1063
1057
|
return false;
|
|
1064
1058
|
return true;
|
|
1065
1059
|
};
|
|
1066
1060
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1067
1061
|
return function () {
|
|
1068
|
-
return this$0.
|
|
1062
|
+
return this$0.fs_1(ensureNotNull(this$0.es_1.ip()));
|
|
1069
1063
|
};
|
|
1070
1064
|
}
|
|
1071
1065
|
function MapperCursor$_get_current_$ref_lsggiu() {
|
|
1072
|
-
return function (p0) {
|
|
1073
|
-
return p0.
|
|
1074
|
-
};
|
|
1066
|
+
return constructCallableReference(function (p0) {
|
|
1067
|
+
return p0.ip();
|
|
1068
|
+
}, 1, 0, 3);
|
|
1075
1069
|
}
|
|
1076
1070
|
function MapperCursor(wrapped, mapper) {
|
|
1077
1071
|
AbstractCursor.call(this);
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1072
|
+
this.es_1 = wrapped;
|
|
1073
|
+
this.fs_1 = mapper;
|
|
1080
1074
|
var tmp = this;
|
|
1081
|
-
tmp.
|
|
1075
|
+
tmp.gs_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1082
1076
|
}
|
|
1083
|
-
protoOf(MapperCursor).
|
|
1084
|
-
return this.
|
|
1077
|
+
protoOf(MapperCursor).hp = function () {
|
|
1078
|
+
return this.es_1.hp().pr(this.fs_1);
|
|
1085
1079
|
};
|
|
1086
|
-
protoOf(MapperCursor).
|
|
1087
|
-
var tmp0 = this.
|
|
1080
|
+
protoOf(MapperCursor).ip = function () {
|
|
1081
|
+
var tmp0 = this.gs_1;
|
|
1088
1082
|
var tmp = KProperty1;
|
|
1089
1083
|
// Inline function 'kotlin.getValue' call
|
|
1090
1084
|
getPropertyCallableRef('current', 1, tmp, MapperCursor$_get_current_$ref_lsggiu(), null);
|
|
1091
1085
|
return tmp0.e2();
|
|
1092
1086
|
};
|
|
1093
|
-
protoOf(MapperCursor).
|
|
1087
|
+
protoOf(MapperCursor).jp = function () {
|
|
1094
1088
|
return true;
|
|
1095
1089
|
};
|
|
1096
|
-
protoOf(MapperCursor).
|
|
1090
|
+
protoOf(MapperCursor).kp = function () {
|
|
1097
1091
|
return false;
|
|
1098
1092
|
};
|
|
1099
1093
|
protoOf(MapperCursor).equals = function (other) {
|
|
@@ -1103,60 +1097,60 @@
|
|
|
1103
1097
|
return false;
|
|
1104
1098
|
if (!(other instanceof MapperCursor))
|
|
1105
1099
|
THROW_CCE();
|
|
1106
|
-
if (!equals(this.
|
|
1100
|
+
if (!equals(this.es_1, other.es_1))
|
|
1107
1101
|
return false;
|
|
1108
|
-
if (!equals(this.
|
|
1102
|
+
if (!equals(this.fs_1, other.fs_1))
|
|
1109
1103
|
return false;
|
|
1110
1104
|
return true;
|
|
1111
1105
|
};
|
|
1112
1106
|
protoOf(MapperCursor).hashCode = function () {
|
|
1113
|
-
var result = hashCode(this.
|
|
1114
|
-
result = imul(31, result) + hashCode(this.
|
|
1107
|
+
var result = hashCode(this.es_1);
|
|
1108
|
+
result = imul(31, result) + hashCode(this.fs_1) | 0;
|
|
1115
1109
|
return result;
|
|
1116
1110
|
};
|
|
1117
|
-
protoOf(MapperCursor).
|
|
1118
|
-
return new ValueCursor(mapper(this.
|
|
1111
|
+
protoOf(MapperCursor).hs = function (mapper) {
|
|
1112
|
+
return new ValueCursor(mapper(this.ip()), this.hp().pr(mapper));
|
|
1119
1113
|
};
|
|
1120
1114
|
protoOf(MapperCursor).map = function (mapper) {
|
|
1121
|
-
return this.
|
|
1115
|
+
return this.hs(mapper);
|
|
1122
1116
|
};
|
|
1123
|
-
protoOf(MapperCursor).
|
|
1124
|
-
return this.
|
|
1117
|
+
protoOf(MapperCursor).pr = function (mapper) {
|
|
1118
|
+
return this.hs(mapper);
|
|
1125
1119
|
};
|
|
1126
1120
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1127
1121
|
return function () {
|
|
1128
1122
|
// Inline function 'kotlin.also' call
|
|
1129
|
-
var this_0 = Companion_instance_5.
|
|
1130
|
-
this$0.
|
|
1123
|
+
var this_0 = Companion_instance_5.lp($source);
|
|
1124
|
+
this$0.is_1 = null;
|
|
1131
1125
|
return this_0;
|
|
1132
1126
|
};
|
|
1133
1127
|
}
|
|
1134
1128
|
function NonLastCursor$_get_next_$ref_gp6ycu() {
|
|
1135
|
-
return function (p0) {
|
|
1136
|
-
return p0.
|
|
1137
|
-
};
|
|
1129
|
+
return constructCallableReference(function (p0) {
|
|
1130
|
+
return p0.hp();
|
|
1131
|
+
}, 1, 0, 4);
|
|
1138
1132
|
}
|
|
1139
1133
|
function NonLastCursor(source) {
|
|
1140
1134
|
AbstractCursor.call(this);
|
|
1141
|
-
this.
|
|
1135
|
+
this.is_1 = source;
|
|
1142
1136
|
var tmp = this;
|
|
1143
|
-
tmp.
|
|
1144
|
-
this.
|
|
1137
|
+
tmp.js_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1138
|
+
this.ks_1 = source.r();
|
|
1145
1139
|
}
|
|
1146
|
-
protoOf(NonLastCursor).
|
|
1147
|
-
var tmp0 = this.
|
|
1140
|
+
protoOf(NonLastCursor).hp = function () {
|
|
1141
|
+
var tmp0 = this.js_1;
|
|
1148
1142
|
var tmp = KProperty1;
|
|
1149
1143
|
// Inline function 'kotlin.getValue' call
|
|
1150
1144
|
getPropertyCallableRef('next', 1, tmp, NonLastCursor$_get_next_$ref_gp6ycu(), null);
|
|
1151
1145
|
return tmp0.e2();
|
|
1152
1146
|
};
|
|
1153
|
-
protoOf(NonLastCursor).
|
|
1154
|
-
return this.
|
|
1147
|
+
protoOf(NonLastCursor).ip = function () {
|
|
1148
|
+
return this.ks_1;
|
|
1155
1149
|
};
|
|
1156
|
-
protoOf(NonLastCursor).
|
|
1150
|
+
protoOf(NonLastCursor).jp = function () {
|
|
1157
1151
|
return true;
|
|
1158
1152
|
};
|
|
1159
|
-
protoOf(NonLastCursor).
|
|
1153
|
+
protoOf(NonLastCursor).kp = function () {
|
|
1160
1154
|
return false;
|
|
1161
1155
|
};
|
|
1162
1156
|
protoOf(NonLastCursor).toString = function () {
|
|
@@ -1164,28 +1158,28 @@
|
|
|
1164
1158
|
};
|
|
1165
1159
|
function removeLeastRecent($this) {
|
|
1166
1160
|
// Inline function 'kotlin.collections.asIterable' call
|
|
1167
|
-
var tmp$ret$0 = $this.
|
|
1161
|
+
var tmp$ret$0 = $this.ms_1.d1();
|
|
1168
1162
|
var _destruct__k2r9zo = first(tmp$ret$0);
|
|
1169
1163
|
// Inline function 'kotlin.collections.component1' call
|
|
1170
1164
|
var key = _destruct__k2r9zo.d2();
|
|
1171
1165
|
// Inline function 'kotlin.collections.component2' call
|
|
1172
1166
|
var value = _destruct__k2r9zo.e2();
|
|
1173
|
-
$this.
|
|
1174
|
-
return Companion_instance_4.
|
|
1167
|
+
$this.ms_1.l4(key);
|
|
1168
|
+
return Companion_instance_4.ir(to(key, value));
|
|
1175
1169
|
}
|
|
1176
1170
|
function removeLeastRecentIfNecessary($this) {
|
|
1177
1171
|
var tmp;
|
|
1178
|
-
if ($this.
|
|
1172
|
+
if ($this.ms_1.s() >= $this.ls_1) {
|
|
1179
1173
|
tmp = removeLeastRecent($this);
|
|
1180
1174
|
} else {
|
|
1181
|
-
tmp = Companion_instance_4.
|
|
1175
|
+
tmp = Companion_instance_4.cp();
|
|
1182
1176
|
}
|
|
1183
1177
|
return tmp;
|
|
1184
1178
|
}
|
|
1185
1179
|
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1186
1180
|
return function () {
|
|
1187
1181
|
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1188
|
-
var tmp0 = this$0.
|
|
1182
|
+
var tmp0 = this$0.ms_1;
|
|
1189
1183
|
var tmp2 = $key;
|
|
1190
1184
|
// Inline function 'kotlin.collections.set' call
|
|
1191
1185
|
var value = $value;
|
|
@@ -1196,10 +1190,10 @@
|
|
|
1196
1190
|
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1197
1191
|
return function () {
|
|
1198
1192
|
var tmp;
|
|
1199
|
-
if (this$0.
|
|
1200
|
-
tmp = Companion_instance_4.
|
|
1193
|
+
if (this$0.ms_1.f2($key)) {
|
|
1194
|
+
tmp = Companion_instance_4.dp(this$0.ms_1.h2($key));
|
|
1201
1195
|
} else {
|
|
1202
|
-
tmp = Companion_instance_4.
|
|
1196
|
+
tmp = Companion_instance_4.cp();
|
|
1203
1197
|
}
|
|
1204
1198
|
return tmp;
|
|
1205
1199
|
};
|
|
@@ -1210,24 +1204,24 @@
|
|
|
1210
1204
|
}
|
|
1211
1205
|
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1212
1206
|
return function () {
|
|
1213
|
-
var tmp = asSequence(this$0.
|
|
1207
|
+
var tmp = asSequence(this$0.ms_1.d1());
|
|
1214
1208
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1215
1209
|
};
|
|
1216
1210
|
}
|
|
1217
1211
|
function SimpleLRUCache$toString$lambda(it) {
|
|
1218
|
-
return toString(it.
|
|
1212
|
+
return toString(it.first) + ' = ' + toString(it.second);
|
|
1219
1213
|
}
|
|
1220
1214
|
function SimpleLRUCache(capacity) {
|
|
1221
|
-
this.
|
|
1215
|
+
this.ls_1 = capacity;
|
|
1222
1216
|
// Inline function 'kotlin.require' call
|
|
1223
1217
|
// Inline function 'kotlin.require' call
|
|
1224
|
-
if (!(this.
|
|
1218
|
+
if (!(this.ls_1 > 0)) {
|
|
1225
1219
|
var message = 'Failed requirement.';
|
|
1226
1220
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1227
1221
|
}
|
|
1228
|
-
this.
|
|
1222
|
+
this.ms_1 = LinkedHashMap_init_$Create$();
|
|
1229
1223
|
}
|
|
1230
|
-
protoOf(SimpleLRUCache).
|
|
1224
|
+
protoOf(SimpleLRUCache).vo = function (key, value) {
|
|
1231
1225
|
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1232
1226
|
};
|
|
1233
1227
|
protoOf(SimpleLRUCache).h2 = function (key) {
|
|
@@ -1240,39 +1234,39 @@
|
|
|
1240
1234
|
return false;
|
|
1241
1235
|
if (!(other instanceof SimpleLRUCache))
|
|
1242
1236
|
THROW_CCE();
|
|
1243
|
-
if (!(this.
|
|
1237
|
+
if (!(this.ls_1 === other.ls_1))
|
|
1244
1238
|
return false;
|
|
1245
|
-
if (!this.
|
|
1239
|
+
if (!this.ms_1.equals(other.ms_1))
|
|
1246
1240
|
return false;
|
|
1247
1241
|
return true;
|
|
1248
1242
|
};
|
|
1249
1243
|
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1250
|
-
var result = this.
|
|
1251
|
-
result = imul(31, result) + this.
|
|
1244
|
+
var result = this.ls_1;
|
|
1245
|
+
result = imul(31, result) + this.ms_1.hashCode() | 0;
|
|
1252
1246
|
return result;
|
|
1253
1247
|
};
|
|
1254
|
-
protoOf(SimpleLRUCache).
|
|
1248
|
+
protoOf(SimpleLRUCache).ns = function () {
|
|
1255
1249
|
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1256
1250
|
};
|
|
1257
1251
|
protoOf(SimpleLRUCache).toString = function () {
|
|
1258
|
-
var tmp = this.
|
|
1252
|
+
var tmp = this.ns();
|
|
1259
1253
|
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1260
1254
|
};
|
|
1261
1255
|
function ValueCursor(current, next) {
|
|
1262
1256
|
AbstractCursor.call(this);
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1257
|
+
this.os_1 = current;
|
|
1258
|
+
this.ps_1 = next;
|
|
1265
1259
|
}
|
|
1266
|
-
protoOf(ValueCursor).
|
|
1267
|
-
return this.
|
|
1260
|
+
protoOf(ValueCursor).ip = function () {
|
|
1261
|
+
return this.os_1;
|
|
1268
1262
|
};
|
|
1269
|
-
protoOf(ValueCursor).
|
|
1270
|
-
return this.
|
|
1263
|
+
protoOf(ValueCursor).hp = function () {
|
|
1264
|
+
return this.ps_1;
|
|
1271
1265
|
};
|
|
1272
|
-
protoOf(ValueCursor).
|
|
1266
|
+
protoOf(ValueCursor).jp = function () {
|
|
1273
1267
|
return true;
|
|
1274
1268
|
};
|
|
1275
|
-
protoOf(ValueCursor).
|
|
1269
|
+
protoOf(ValueCursor).kp = function () {
|
|
1276
1270
|
return false;
|
|
1277
1271
|
};
|
|
1278
1272
|
function dequeOf(items) {
|
|
@@ -1289,9 +1283,9 @@
|
|
|
1289
1283
|
return toMutableList(items);
|
|
1290
1284
|
}
|
|
1291
1285
|
function takeFirst(_this__u8e3s4) {
|
|
1292
|
-
if (_this__u8e3s4.
|
|
1286
|
+
if (_this__u8e3s4.h())
|
|
1293
1287
|
return null;
|
|
1294
|
-
var first = _this__u8e3s4.
|
|
1288
|
+
var first = _this__u8e3s4.x(0);
|
|
1295
1289
|
_this__u8e3s4.g3(0);
|
|
1296
1290
|
return first;
|
|
1297
1291
|
}
|
|
@@ -1300,9 +1294,9 @@
|
|
|
1300
1294
|
}
|
|
1301
1295
|
function addFirst_0(_this__u8e3s4, items) {
|
|
1302
1296
|
var i = _this__u8e3s4.b4();
|
|
1303
|
-
var _iterator__ex2g4s = items.
|
|
1304
|
-
while (_iterator__ex2g4s.
|
|
1305
|
-
var item = _iterator__ex2g4s.
|
|
1297
|
+
var _iterator__ex2g4s = items.n();
|
|
1298
|
+
while (_iterator__ex2g4s.q()) {
|
|
1299
|
+
var item = _iterator__ex2g4s.r();
|
|
1306
1300
|
i.s3(item);
|
|
1307
1301
|
}
|
|
1308
1302
|
}
|
|
@@ -1316,9 +1310,9 @@
|
|
|
1316
1310
|
//region block: post-declaration
|
|
1317
1311
|
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1318
1312
|
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1319
|
-
protoOf(CachedImpl).
|
|
1320
|
-
protoOf(IntIndexedImpl).
|
|
1321
|
-
protoOf(SimpleLRUCache).
|
|
1313
|
+
protoOf(CachedImpl).bp = ifValid;
|
|
1314
|
+
protoOf(IntIndexedImpl).op = compareTo;
|
|
1315
|
+
protoOf(SimpleLRUCache).wo = getOrSet;
|
|
1322
1316
|
//endregion
|
|
1323
1317
|
//region block: init
|
|
1324
1318
|
Companion_instance = new Companion();
|