@tuprolog/2p-full 3.0.8 → 4.0.0
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 +166 -166
- package/2p-core.js +3467 -3417
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +878 -874
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +1009 -1005
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +124 -124
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1404 -1404
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +87 -87
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +224 -187
- package/2p-repl.js.map +1 -1
- package/2p-solve-plp.js +3 -3
- package/2p-solve-problog.js +1528 -1338
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-prolog.js +3500 -2070
- package/2p-solve-prolog.js.map +1 -1
- package/2p-solve.js +6298 -5521
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +2301 -4039
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +1057 -950
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +875 -940
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +98 -98
- package/clikt-clikt.js +1673 -1672
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +474 -474
- package/kotlin-kotlin-stdlib.js +4097 -2277
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +11773 -8235
- package/kt-math.js.map +1 -1
- package/mordant-mordant.js +1585 -1535
- package/mordant-mordant.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +50 -50
- package/okio-parent-okio.js +655 -655
- package/package.json +1 -1
package/2p-utils.js
CHANGED
|
@@ -16,65 +16,87 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
21
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
22
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
25
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
26
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.ba;
|
|
20
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.l9;
|
|
21
|
+
var Unit_instance = kotlin_kotlin.$_$.m1;
|
|
22
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.n9;
|
|
23
|
+
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
24
|
+
var isInterface = kotlin_kotlin.$_$.t9;
|
|
25
|
+
var initMetadataForClass = kotlin_kotlin.$_$.k9;
|
|
26
|
+
var Sequence = kotlin_kotlin.$_$.gb;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.b;
|
|
28
|
-
var arrayIterator = kotlin_kotlin.$_$.
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
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
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
28
|
+
var arrayIterator = kotlin_kotlin.$_$.q8;
|
|
29
|
+
var toList = kotlin_kotlin.$_$.oc;
|
|
30
|
+
var asSequence = kotlin_kotlin.$_$.p3;
|
|
31
|
+
var asIterable = kotlin_kotlin.$_$.ib;
|
|
32
|
+
var hashCode = kotlin_kotlin.$_$.j9;
|
|
33
|
+
var sequence = kotlin_kotlin.$_$.kc;
|
|
34
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s7;
|
|
35
|
+
var SequenceScope = kotlin_kotlin.$_$.fb;
|
|
36
|
+
var withIndex = kotlin_kotlin.$_$.qc;
|
|
37
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r7;
|
|
38
|
+
var asIterable_0 = kotlin_kotlin.$_$.j3;
|
|
39
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.o9;
|
|
40
|
+
var constructCallableReference = kotlin_kotlin.$_$.a9;
|
|
41
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
42
|
+
var toString = kotlin_kotlin.$_$.ea;
|
|
43
|
+
var Companion_getInstance = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
44
|
+
var Companion_getInstance_0 = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
45
|
+
var toString_0 = kotlin_kotlin.$_$.jg;
|
|
46
|
+
var equals = kotlin_kotlin.$_$.c9;
|
|
47
|
+
var initMetadataForObject = kotlin_kotlin.$_$.p9;
|
|
48
|
+
var KtMap = kotlin_kotlin.$_$.d3;
|
|
49
|
+
var toMutableMap = kotlin_kotlin.$_$.h7;
|
|
50
|
+
var ensureNotNull = kotlin_kotlin.$_$.zf;
|
|
51
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.o2;
|
|
52
|
+
var lazy = kotlin_kotlin.$_$.eg;
|
|
53
|
+
var isArray = kotlin_kotlin.$_$.q9;
|
|
54
|
+
var objectCreate = kotlin_kotlin.$_$.aa;
|
|
55
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
56
|
+
var contentEquals = kotlin_kotlin.$_$.x3;
|
|
57
|
+
var contentHashCode = kotlin_kotlin.$_$.a4;
|
|
58
|
+
var first = kotlin_kotlin.$_$.q4;
|
|
59
|
+
var to = kotlin_kotlin.$_$.kg;
|
|
60
|
+
var Pair = kotlin_kotlin.$_$.qf;
|
|
61
|
+
var map = kotlin_kotlin.$_$.dc;
|
|
62
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.g2;
|
|
63
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
64
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.ab;
|
|
65
|
+
var joinToString = kotlin_kotlin.$_$.yb;
|
|
66
|
+
var Companion_getInstance_1 = kotlin_kotlin.$_$.i1;
|
|
67
|
+
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.b1;
|
|
68
|
+
var toDuration = kotlin_kotlin.$_$.bf;
|
|
69
|
+
var Duration__isPositive_impl_tvkkt2 = kotlin_kotlin.$_$.j;
|
|
70
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.n;
|
|
71
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.d;
|
|
72
|
+
var getNumberHashCode = kotlin_kotlin.$_$.g9;
|
|
73
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.e9;
|
|
74
|
+
var Duration = kotlin_kotlin.$_$.ze;
|
|
75
|
+
var FunctionAdapter = kotlin_kotlin.$_$.p8;
|
|
76
|
+
var Duration__isNegative_impl_pbysfa = kotlin_kotlin.$_$.i;
|
|
77
|
+
var Duration__isInfinite_impl_tsn9y3 = kotlin_kotlin.$_$.h;
|
|
78
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.c;
|
|
79
|
+
var Duration__minus_impl_q5cfm7 = kotlin_kotlin.$_$.k;
|
|
80
|
+
var coerceAtLeast = kotlin_kotlin.$_$.pa;
|
|
81
|
+
var Duration__plus_impl_yu9v8f = kotlin_kotlin.$_$.l;
|
|
82
|
+
var DurationUnit_NANOSECONDS_getInstance = kotlin_kotlin.$_$.c1;
|
|
83
|
+
var minOf = kotlin_kotlin.$_$.p7;
|
|
84
|
+
var _Duration___get_inWholeNanoseconds__impl__r5x4mr = kotlin_kotlin.$_$.g;
|
|
85
|
+
var toNumber = kotlin_kotlin.$_$.o8;
|
|
86
|
+
var Duration__times_impl_sfuzvp = kotlin_kotlin.$_$.m;
|
|
87
|
+
var numberToLong = kotlin_kotlin.$_$.j8;
|
|
88
|
+
var multiply = kotlin_kotlin.$_$.h8;
|
|
89
|
+
var divide = kotlin_kotlin.$_$.e8;
|
|
90
|
+
var coerceIn = kotlin_kotlin.$_$.va;
|
|
91
|
+
var get_ONE = kotlin_kotlin.$_$.z7;
|
|
92
|
+
var add = kotlin_kotlin.$_$.a8;
|
|
93
|
+
var subtract = kotlin_kotlin.$_$.n8;
|
|
94
|
+
var Monotonic_instance = kotlin_kotlin.$_$.j1;
|
|
95
|
+
var mutableListOf = kotlin_kotlin.$_$.v5;
|
|
96
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q;
|
|
97
|
+
var padStart = kotlin_kotlin.$_$.rd;
|
|
98
|
+
var ValueTimeMark__plus_impl_l3v2m0 = kotlin_kotlin.$_$.p;
|
|
99
|
+
var ValueTimeMark__hasNotPassedNow_impl_z1dcqz = kotlin_kotlin.$_$.o;
|
|
78
100
|
//endregion
|
|
79
101
|
//region block: pre-declaration
|
|
80
102
|
initMetadataForCompanion(Companion);
|
|
@@ -82,35 +104,20 @@
|
|
|
82
104
|
var got = this.j2(key);
|
|
83
105
|
var tmp;
|
|
84
106
|
if (got instanceof Some) {
|
|
85
|
-
tmp = got.
|
|
107
|
+
tmp = got.vx_1;
|
|
86
108
|
} else {
|
|
87
109
|
// Inline function 'kotlin.also' call
|
|
88
110
|
var this_0 = valueGenerator();
|
|
89
|
-
this.
|
|
111
|
+
this.tx(key, this_0);
|
|
90
112
|
tmp = this_0;
|
|
91
113
|
}
|
|
92
114
|
return tmp;
|
|
93
115
|
}
|
|
94
116
|
initMetadataForInterface(Cache, 'Cache');
|
|
95
|
-
initMetadataForCompanion(Companion_0);
|
|
96
|
-
function ifValid(consumer) {
|
|
97
|
-
var tmp;
|
|
98
|
-
if (this.hr()) {
|
|
99
|
-
var tmp_0 = Companion_instance_5;
|
|
100
|
-
// Inline function 'kotlin.let' call
|
|
101
|
-
var tmp$ret$0 = consumer(this.f1());
|
|
102
|
-
tmp = tmp_0.lr(tmp$ret$0);
|
|
103
|
-
} else {
|
|
104
|
-
tmp = Companion_instance_5.kr();
|
|
105
|
-
}
|
|
106
|
-
return tmp;
|
|
107
|
-
}
|
|
108
|
-
initMetadataForInterface(Cached, 'Cached');
|
|
109
117
|
function castTo() {
|
|
110
118
|
return isInterface(this, Castable) ? this : THROW_CCE();
|
|
111
119
|
}
|
|
112
120
|
initMetadataForInterface(Castable, 'Castable');
|
|
113
|
-
initMetadataForCompanion(Companion_1);
|
|
114
121
|
initMetadataForClass(Cursor$asIterable$$inlined$Iterable$1);
|
|
115
122
|
initMetadataForClass(Cursor$asSequence$$inlined$Sequence$1, VOID, VOID, VOID, [Sequence]);
|
|
116
123
|
function asIterable_1() {
|
|
@@ -122,117 +129,76 @@
|
|
|
122
129
|
return new Cursor$asSequence$$inlined$Sequence$1(this);
|
|
123
130
|
}
|
|
124
131
|
initMetadataForInterface(Cursor, 'Cursor');
|
|
125
|
-
function component1() {
|
|
126
|
-
return this.vr();
|
|
127
|
-
}
|
|
128
|
-
function component2() {
|
|
129
|
-
return this.f1();
|
|
130
|
-
}
|
|
131
|
-
initMetadataForInterface(Indexed, 'Indexed');
|
|
132
|
-
initMetadataForCompanion(Companion_2);
|
|
133
|
-
function compareTo_0(other) {
|
|
134
|
-
return compareTo(this.vr(), other.vr());
|
|
135
|
-
}
|
|
136
|
-
initMetadataForInterface(IntIndexed, 'IntIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
137
|
-
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
138
|
-
initMetadataForLambda(dropLast$slambda, CoroutineImpl, VOID, [1]);
|
|
139
132
|
initMetadataForLambda(insertAt$slambda, CoroutineImpl, VOID, [1]);
|
|
140
|
-
|
|
141
|
-
initMetadataForLambda(merge$slambda, CoroutineImpl, VOID, [1]);
|
|
142
|
-
initMetadataForCompanion(Companion_3);
|
|
143
|
-
function compareTo_1(other) {
|
|
144
|
-
return compareTo(this.vr(), other.vr());
|
|
145
|
-
}
|
|
146
|
-
initMetadataForInterface(LongIndexed, 'LongIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
147
|
-
initMetadataForCompanion(Companion_4);
|
|
133
|
+
initMetadataForCompanion(Companion_0);
|
|
148
134
|
initMetadataForClass(NumberTypeTester, 'NumberTypeTester', NumberTypeTester);
|
|
149
|
-
initMetadataForCompanion(
|
|
135
|
+
initMetadataForCompanion(Companion_1);
|
|
150
136
|
initMetadataForClass(Optional, 'Optional');
|
|
151
137
|
initMetadataForClass(Some, 'Some', VOID, Optional);
|
|
152
138
|
initMetadataForObject(None, 'None', VOID, Optional);
|
|
153
139
|
function getTag(name) {
|
|
154
|
-
return this.
|
|
140
|
+
return this.gz().j2(name);
|
|
155
141
|
}
|
|
156
142
|
function containsTag(name) {
|
|
157
143
|
// Inline function 'kotlin.collections.contains' call
|
|
158
144
|
// Inline function 'kotlin.collections.containsKey' call
|
|
159
|
-
var this_0 = this.
|
|
145
|
+
var this_0 = this.gz();
|
|
160
146
|
return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).h2(name);
|
|
161
147
|
}
|
|
162
148
|
initMetadataForInterface(Taggable, 'Taggable');
|
|
163
|
-
initMetadataForCompanion(
|
|
149
|
+
initMetadataForCompanion(Companion_2);
|
|
164
150
|
initMetadataForClass(AbstractCursor$iterator$1);
|
|
165
151
|
initMetadataForClass(AbstractCursor, 'AbstractCursor', VOID, VOID, [Cursor]);
|
|
166
|
-
initMetadataForClass(CachedImpl, 'CachedImpl', VOID, VOID, [Cached]);
|
|
167
|
-
initMetadataForClass(ConjunctionCursor, 'ConjunctionCursor', VOID, AbstractCursor);
|
|
168
152
|
initMetadataForObject(EmptyCursor, 'EmptyCursor', VOID, AbstractCursor);
|
|
169
|
-
initMetadataForClass(IntIndexedImpl, 'IntIndexedImpl', VOID, VOID, [IntIndexed]);
|
|
170
153
|
initMetadataForClass(LazyCursor, 'LazyCursor', VOID, AbstractCursor);
|
|
171
|
-
initMetadataForClass(
|
|
154
|
+
initMetadataForClass(MapperChain, 'MapperChain');
|
|
172
155
|
initMetadataForClass(MapperCursor, 'MapperCursor', VOID, AbstractCursor);
|
|
173
156
|
initMetadataForClass(NonLastCursor, 'NonLastCursor', VOID, AbstractCursor);
|
|
174
157
|
initMetadataForClass(SimpleLRUCache, 'SimpleLRUCache', VOID, VOID, [Cache]);
|
|
175
|
-
|
|
158
|
+
initMetadataForCompanion(Companion_3);
|
|
159
|
+
initMetadataForClass(AdaptiveSamplingPolicy, 'AdaptiveSamplingPolicy', AdaptiveSamplingPolicy);
|
|
160
|
+
initMetadataForInterface(ChronometerFactory, 'ChronometerFactory');
|
|
161
|
+
initMetadataForClass(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0, 'sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0', VOID, VOID, [ChronometerFactory, FunctionAdapter]);
|
|
162
|
+
initMetadataForClass(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0_0, 'sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0', VOID, VOID, [ChronometerFactory, FunctionAdapter]);
|
|
163
|
+
initMetadataForCompanion(Companion_4);
|
|
164
|
+
initMetadataForCompanion(Companion_5);
|
|
165
|
+
initMetadataForClass(AbstractChronometer, 'AbstractChronometer');
|
|
166
|
+
initMetadataForClass(Estimate, 'Estimate');
|
|
167
|
+
initMetadataForCompanion(Companion_6);
|
|
168
|
+
initMetadataForClass(AdaptiveChronometer, 'AdaptiveChronometer', VOID, AbstractChronometer);
|
|
169
|
+
initMetadataForClass(ChildScope, 'ChildScope');
|
|
170
|
+
initMetadataForObject(SystemTimeline, 'SystemTimeline');
|
|
176
171
|
//endregion
|
|
177
172
|
function Companion() {
|
|
178
173
|
}
|
|
179
|
-
protoOf(Companion).
|
|
174
|
+
protoOf(Companion).sx = function (capacity) {
|
|
180
175
|
return new SimpleLRUCache(capacity);
|
|
181
176
|
};
|
|
182
177
|
var Companion_instance;
|
|
183
|
-
function
|
|
178
|
+
function Companion_getInstance_2() {
|
|
184
179
|
return Companion_instance;
|
|
185
180
|
}
|
|
186
181
|
function Cache() {
|
|
187
182
|
}
|
|
188
|
-
function Companion_0() {
|
|
189
|
-
}
|
|
190
|
-
protoOf(Companion_0).gr = function (generator) {
|
|
191
|
-
return new CachedImpl(generator);
|
|
192
|
-
};
|
|
193
|
-
var Companion_instance_0;
|
|
194
|
-
function Companion_getInstance_2() {
|
|
195
|
-
return Companion_instance_0;
|
|
196
|
-
}
|
|
197
|
-
function Cached() {
|
|
198
|
-
}
|
|
199
183
|
function Castable() {
|
|
200
184
|
}
|
|
201
|
-
function Companion_1() {
|
|
202
|
-
}
|
|
203
|
-
protoOf(Companion_1).of = function (iterator) {
|
|
204
|
-
return toCursor(iterator);
|
|
205
|
-
};
|
|
206
|
-
protoOf(Companion_1).ofSequence = function (sequence) {
|
|
207
|
-
return cursor(sequence);
|
|
208
|
-
};
|
|
209
|
-
protoOf(Companion_1).empty = function () {
|
|
210
|
-
return EmptyCursor_getInstance();
|
|
211
|
-
};
|
|
212
|
-
var Companion_instance_1;
|
|
213
|
-
function Companion_getInstance_3() {
|
|
214
|
-
return Companion_instance_1;
|
|
215
|
-
}
|
|
216
185
|
function Cursor$asIterable$$inlined$Iterable$1(this$0) {
|
|
217
|
-
this.
|
|
186
|
+
this.xx_1 = this$0;
|
|
218
187
|
}
|
|
219
188
|
protoOf(Cursor$asIterable$$inlined$Iterable$1).n = function () {
|
|
220
|
-
return this.
|
|
189
|
+
return this.xx_1.iterator();
|
|
221
190
|
};
|
|
222
191
|
function Cursor$asSequence$$inlined$Sequence$1(this$0) {
|
|
223
|
-
this.
|
|
192
|
+
this.yx_1 = this$0;
|
|
224
193
|
}
|
|
225
194
|
protoOf(Cursor$asSequence$$inlined$Sequence$1).n = function () {
|
|
226
|
-
return this.
|
|
195
|
+
return this.yx_1.iterator();
|
|
227
196
|
};
|
|
228
197
|
function Cursor() {
|
|
229
198
|
}
|
|
230
199
|
function cursor(_this__u8e3s4) {
|
|
231
200
|
return toCursor(_this__u8e3s4.n());
|
|
232
201
|
}
|
|
233
|
-
function plus(_this__u8e3s4, other) {
|
|
234
|
-
return other.sr() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.sr() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
235
|
-
}
|
|
236
202
|
function cursor_0(_this__u8e3s4) {
|
|
237
203
|
return toCursor(_this__u8e3s4.n());
|
|
238
204
|
}
|
|
@@ -240,29 +206,13 @@
|
|
|
240
206
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
241
207
|
}
|
|
242
208
|
function toCursor(_this__u8e3s4) {
|
|
243
|
-
return
|
|
244
|
-
}
|
|
245
|
-
function Indexed() {
|
|
246
|
-
}
|
|
247
|
-
function Companion_2() {
|
|
248
|
-
}
|
|
249
|
-
protoOf(Companion_2).wr = function (index, value) {
|
|
250
|
-
return new IntIndexedImpl(index, value);
|
|
251
|
-
};
|
|
252
|
-
var Companion_instance_2;
|
|
253
|
-
function Companion_getInstance_4() {
|
|
254
|
-
return Companion_instance_2;
|
|
255
|
-
}
|
|
256
|
-
function IntIndexed() {
|
|
257
|
-
}
|
|
258
|
-
function cached(_this__u8e3s4) {
|
|
259
|
-
return cursor(_this__u8e3s4).asSequence();
|
|
209
|
+
return Companion_instance_2.dy(_this__u8e3s4);
|
|
260
210
|
}
|
|
261
211
|
function buffered(_this__u8e3s4) {
|
|
262
212
|
return asSequence(toList(_this__u8e3s4));
|
|
263
213
|
}
|
|
264
|
-
function itemWiseHashCode(
|
|
265
|
-
return itemWiseHashCode_0(asIterable(
|
|
214
|
+
function itemWiseHashCode(sequence) {
|
|
215
|
+
return itemWiseHashCode_0(asIterable(sequence));
|
|
266
216
|
}
|
|
267
217
|
function itemWiseHashCode_0(iterable) {
|
|
268
218
|
var hash = 13;
|
|
@@ -275,444 +225,147 @@
|
|
|
275
225
|
}
|
|
276
226
|
return hash;
|
|
277
227
|
}
|
|
278
|
-
function itemWiseEquals(iterable1, iterable2) {
|
|
279
|
-
return itemWiseEquals_1(iterable1, iterable2, itemWiseEquals$lambda);
|
|
280
|
-
}
|
|
281
|
-
function mergeSequences(iterables, comparator) {
|
|
282
|
-
var tmp = new sam$kotlin_Comparator$0(comparator);
|
|
283
|
-
// Inline function 'kotlin.collections.map' call
|
|
284
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
285
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
286
|
-
var _iterator__ex2g4s = iterables.n();
|
|
287
|
-
while (_iterator__ex2g4s.q()) {
|
|
288
|
-
var item = _iterator__ex2g4s.r();
|
|
289
|
-
var tmp$ret$2 = asIterable_0(item);
|
|
290
|
-
destination.l(tmp$ret$2);
|
|
291
|
-
}
|
|
292
|
-
return merge(tmp, destination);
|
|
293
|
-
}
|
|
294
|
-
function dropLast(_this__u8e3s4) {
|
|
295
|
-
return sequence(dropLast$slambda_0(_this__u8e3s4, null));
|
|
296
|
-
}
|
|
297
|
-
function itemWiseHashCode_1(sequence) {
|
|
298
|
-
return itemWiseHashCode_0(asIterable_0(sequence));
|
|
299
|
-
}
|
|
300
|
-
function itemWiseEquals_0(sequence1, sequence2, comparator) {
|
|
301
|
-
return itemWiseEquals_1(asIterable_0(sequence1), asIterable_0(sequence2), comparator);
|
|
302
|
-
}
|
|
303
228
|
function insertAt(_this__u8e3s4, index, item, items) {
|
|
304
229
|
return sequence(insertAt$slambda_0(_this__u8e3s4, index, item, items, null));
|
|
305
230
|
}
|
|
306
|
-
function itemWiseEquals_1(iterable1, iterable2, comparator) {
|
|
307
|
-
var i = iterable1.n();
|
|
308
|
-
var j = iterable2.n();
|
|
309
|
-
while (i.q() && j.q()) {
|
|
310
|
-
var a = i.r();
|
|
311
|
-
var b = j.r();
|
|
312
|
-
if (!comparator(a, b)) {
|
|
313
|
-
return false;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
return i.q() === j.q();
|
|
317
|
-
}
|
|
318
|
-
function merge(comparator, iterables) {
|
|
319
|
-
return sequence(merge$slambda_0(iterables, comparator, null));
|
|
320
|
-
}
|
|
321
|
-
function indexed(_this__u8e3s4) {
|
|
322
|
-
var tmp = asSequence(new IntRange(0, 2147483647));
|
|
323
|
-
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
324
|
-
}
|
|
325
|
-
function sam$kotlin_Comparator$0(function_0) {
|
|
326
|
-
this.yr_1 = function_0;
|
|
327
|
-
}
|
|
328
|
-
protoOf(sam$kotlin_Comparator$0).pc = function (a, b) {
|
|
329
|
-
return this.yr_1(a, b);
|
|
330
|
-
};
|
|
331
|
-
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
332
|
-
return this.pc(a, b);
|
|
333
|
-
};
|
|
334
|
-
protoOf(sam$kotlin_Comparator$0).r2 = function () {
|
|
335
|
-
return this.yr_1;
|
|
336
|
-
};
|
|
337
|
-
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
338
|
-
var tmp;
|
|
339
|
-
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
340
|
-
var tmp_0;
|
|
341
|
-
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
342
|
-
tmp_0 = equals(this.r2(), other.r2());
|
|
343
|
-
} else {
|
|
344
|
-
tmp_0 = false;
|
|
345
|
-
}
|
|
346
|
-
tmp = tmp_0;
|
|
347
|
-
} else {
|
|
348
|
-
tmp = false;
|
|
349
|
-
}
|
|
350
|
-
return tmp;
|
|
351
|
-
};
|
|
352
|
-
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
353
|
-
return hashCode(this.r2());
|
|
354
|
-
};
|
|
355
|
-
function itemWiseEquals$lambda(a, b) {
|
|
356
|
-
return equals(a, b);
|
|
357
|
-
}
|
|
358
|
-
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
359
|
-
this.hs_1 = $this_dropLast;
|
|
360
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
361
|
-
}
|
|
362
|
-
protoOf(dropLast$slambda).ks = function ($this$sequence, $completion) {
|
|
363
|
-
var tmp = this.ls($this$sequence, $completion);
|
|
364
|
-
tmp.r8_1 = Unit_instance;
|
|
365
|
-
tmp.s8_1 = null;
|
|
366
|
-
return tmp.x8();
|
|
367
|
-
};
|
|
368
|
-
protoOf(dropLast$slambda).o9 = function (p1, $completion) {
|
|
369
|
-
return this.ks(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
370
|
-
};
|
|
371
|
-
protoOf(dropLast$slambda).x8 = function () {
|
|
372
|
-
var suspendResult = this.r8_1;
|
|
373
|
-
$sm: do
|
|
374
|
-
try {
|
|
375
|
-
var tmp = this.p8_1;
|
|
376
|
-
switch (tmp) {
|
|
377
|
-
case 0:
|
|
378
|
-
this.q8_1 = 5;
|
|
379
|
-
this.js_1 = this.hs_1.n();
|
|
380
|
-
this.p8_1 = 1;
|
|
381
|
-
continue $sm;
|
|
382
|
-
case 1:
|
|
383
|
-
if (!this.js_1.q()) {
|
|
384
|
-
this.p8_1 = 4;
|
|
385
|
-
continue $sm;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
var current = this.js_1.r();
|
|
389
|
-
if (this.js_1.q()) {
|
|
390
|
-
this.p8_1 = 2;
|
|
391
|
-
suspendResult = this.is_1.se(current, this);
|
|
392
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
393
|
-
return suspendResult;
|
|
394
|
-
}
|
|
395
|
-
continue $sm;
|
|
396
|
-
} else {
|
|
397
|
-
this.p8_1 = 3;
|
|
398
|
-
continue $sm;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
case 2:
|
|
402
|
-
this.p8_1 = 3;
|
|
403
|
-
continue $sm;
|
|
404
|
-
case 3:
|
|
405
|
-
this.p8_1 = 1;
|
|
406
|
-
continue $sm;
|
|
407
|
-
case 4:
|
|
408
|
-
return Unit_instance;
|
|
409
|
-
case 5:
|
|
410
|
-
throw this.s8_1;
|
|
411
|
-
}
|
|
412
|
-
} catch ($p) {
|
|
413
|
-
var e = $p;
|
|
414
|
-
if (this.q8_1 === 5) {
|
|
415
|
-
throw e;
|
|
416
|
-
} else {
|
|
417
|
-
this.p8_1 = this.q8_1;
|
|
418
|
-
this.s8_1 = e;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
while (true);
|
|
422
|
-
};
|
|
423
|
-
protoOf(dropLast$slambda).ls = function ($this$sequence, completion) {
|
|
424
|
-
var i = new dropLast$slambda(this.hs_1, completion);
|
|
425
|
-
i.is_1 = $this$sequence;
|
|
426
|
-
return i;
|
|
427
|
-
};
|
|
428
|
-
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
429
|
-
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
430
|
-
return constructCallableReference(function ($this$sequence, $completion) {
|
|
431
|
-
return i.ks($this$sequence, $completion);
|
|
432
|
-
}, 1);
|
|
433
|
-
}
|
|
434
231
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
232
|
+
this.my_1 = $this_insertAt;
|
|
233
|
+
this.ny_1 = $index;
|
|
234
|
+
this.oy_1 = $item;
|
|
235
|
+
this.py_1 = $items;
|
|
439
236
|
CoroutineImpl.call(this, resultContinuation);
|
|
440
237
|
}
|
|
441
|
-
protoOf(insertAt$slambda).
|
|
442
|
-
var tmp = this.
|
|
443
|
-
tmp.
|
|
444
|
-
tmp.
|
|
445
|
-
return tmp.
|
|
238
|
+
protoOf(insertAt$slambda).uy = function ($this$sequence, $completion) {
|
|
239
|
+
var tmp = this.vy($this$sequence, $completion);
|
|
240
|
+
tmp.t8_1 = Unit_instance;
|
|
241
|
+
tmp.u8_1 = null;
|
|
242
|
+
return tmp.z8();
|
|
446
243
|
};
|
|
447
|
-
protoOf(insertAt$slambda).
|
|
448
|
-
return this.
|
|
244
|
+
protoOf(insertAt$slambda).q9 = function (p1, $completion) {
|
|
245
|
+
return this.uy(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
449
246
|
};
|
|
450
|
-
protoOf(insertAt$slambda).
|
|
451
|
-
var suspendResult = this.
|
|
247
|
+
protoOf(insertAt$slambda).z8 = function () {
|
|
248
|
+
var suspendResult = this.t8_1;
|
|
452
249
|
$sm: do
|
|
453
250
|
try {
|
|
454
|
-
var tmp = this.
|
|
251
|
+
var tmp = this.r8_1;
|
|
455
252
|
switch (tmp) {
|
|
456
253
|
case 0:
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
254
|
+
this.s8_1 = 10;
|
|
255
|
+
this.ry_1 = false;
|
|
256
|
+
this.ty_1 = asIterable(withIndex(this.my_1)).n();
|
|
257
|
+
this.r8_1 = 1;
|
|
461
258
|
continue $sm;
|
|
462
259
|
case 1:
|
|
463
|
-
if (!this.
|
|
464
|
-
this.
|
|
260
|
+
if (!this.ty_1.q()) {
|
|
261
|
+
this.r8_1 = 6;
|
|
465
262
|
continue $sm;
|
|
466
263
|
}
|
|
467
264
|
|
|
468
|
-
var _destruct__k2r9zo = this.
|
|
469
|
-
var i = _destruct__k2r9zo.
|
|
470
|
-
this.
|
|
471
|
-
if (i === this.
|
|
472
|
-
this.
|
|
473
|
-
suspendResult = this.
|
|
265
|
+
var _destruct__k2r9zo = this.ty_1.r();
|
|
266
|
+
var i = _destruct__k2r9zo.cf();
|
|
267
|
+
this.sy_1 = _destruct__k2r9zo.df();
|
|
268
|
+
if (i === this.ny_1) {
|
|
269
|
+
this.r8_1 = 2;
|
|
270
|
+
suspendResult = this.qy_1.wf(this.oy_1, this);
|
|
474
271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
475
272
|
return suspendResult;
|
|
476
273
|
}
|
|
477
274
|
continue $sm;
|
|
478
275
|
} else {
|
|
479
|
-
this.
|
|
276
|
+
this.r8_1 = 4;
|
|
480
277
|
continue $sm;
|
|
481
278
|
}
|
|
482
279
|
|
|
483
280
|
case 2:
|
|
484
|
-
this.
|
|
485
|
-
suspendResult = this.
|
|
281
|
+
this.r8_1 = 3;
|
|
282
|
+
suspendResult = this.qy_1.yf(asIterable_0(this.py_1), this);
|
|
486
283
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
487
284
|
return suspendResult;
|
|
488
285
|
}
|
|
489
286
|
|
|
490
287
|
continue $sm;
|
|
491
288
|
case 3:
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
289
|
+
this.ry_1 = true;
|
|
290
|
+
this.r8_1 = 4;
|
|
494
291
|
continue $sm;
|
|
495
292
|
case 4:
|
|
496
|
-
this.
|
|
497
|
-
suspendResult = this.
|
|
293
|
+
this.r8_1 = 5;
|
|
294
|
+
suspendResult = this.qy_1.wf(this.sy_1, this);
|
|
498
295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
296
|
return suspendResult;
|
|
500
297
|
}
|
|
501
298
|
|
|
502
299
|
continue $sm;
|
|
503
300
|
case 5:
|
|
504
|
-
this.
|
|
301
|
+
this.r8_1 = 1;
|
|
505
302
|
continue $sm;
|
|
506
303
|
case 6:
|
|
507
|
-
if (!this.
|
|
508
|
-
this.
|
|
509
|
-
suspendResult = this.
|
|
304
|
+
if (!this.ry_1) {
|
|
305
|
+
this.r8_1 = 7;
|
|
306
|
+
suspendResult = this.qy_1.wf(this.oy_1, this);
|
|
510
307
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
511
308
|
return suspendResult;
|
|
512
309
|
}
|
|
513
310
|
continue $sm;
|
|
514
311
|
} else {
|
|
515
|
-
this.
|
|
312
|
+
this.r8_1 = 9;
|
|
516
313
|
continue $sm;
|
|
517
314
|
}
|
|
518
315
|
|
|
519
316
|
case 7:
|
|
520
|
-
this.
|
|
521
|
-
suspendResult = this.
|
|
317
|
+
this.r8_1 = 8;
|
|
318
|
+
suspendResult = this.qy_1.yf(asIterable_0(this.py_1), this);
|
|
522
319
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
320
|
return suspendResult;
|
|
524
321
|
}
|
|
525
322
|
|
|
526
323
|
continue $sm;
|
|
527
324
|
case 8:
|
|
528
|
-
this.
|
|
325
|
+
this.r8_1 = 9;
|
|
529
326
|
continue $sm;
|
|
530
327
|
case 9:
|
|
531
328
|
return Unit_instance;
|
|
532
329
|
case 10:
|
|
533
|
-
throw this.
|
|
330
|
+
throw this.u8_1;
|
|
534
331
|
}
|
|
535
332
|
} catch ($p) {
|
|
536
333
|
var e = $p;
|
|
537
|
-
if (this.
|
|
334
|
+
if (this.s8_1 === 10) {
|
|
538
335
|
throw e;
|
|
539
336
|
} else {
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
337
|
+
this.r8_1 = this.s8_1;
|
|
338
|
+
this.u8_1 = e;
|
|
542
339
|
}
|
|
543
340
|
}
|
|
544
341
|
while (true);
|
|
545
342
|
};
|
|
546
|
-
protoOf(insertAt$slambda).
|
|
547
|
-
var i = new insertAt$slambda(this.
|
|
548
|
-
i.
|
|
343
|
+
protoOf(insertAt$slambda).vy = function ($this$sequence, completion) {
|
|
344
|
+
var i = new insertAt$slambda(this.my_1, this.ny_1, this.oy_1, this.py_1, completion);
|
|
345
|
+
i.qy_1 = $this$sequence;
|
|
549
346
|
return i;
|
|
550
347
|
};
|
|
551
348
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
552
349
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
553
350
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
554
|
-
return i.
|
|
555
|
-
}, 1);
|
|
556
|
-
}
|
|
557
|
-
function sam$kotlin_Comparator$0_0(function_0) {
|
|
558
|
-
this.ct_1 = function_0;
|
|
559
|
-
}
|
|
560
|
-
protoOf(sam$kotlin_Comparator$0_0).pc = function (a, b) {
|
|
561
|
-
return this.ct_1(a, b);
|
|
562
|
-
};
|
|
563
|
-
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
564
|
-
return this.pc(a, b);
|
|
565
|
-
};
|
|
566
|
-
protoOf(sam$kotlin_Comparator$0_0).r2 = function () {
|
|
567
|
-
return this.ct_1;
|
|
568
|
-
};
|
|
569
|
-
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
570
|
-
var tmp;
|
|
571
|
-
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
572
|
-
var tmp_0;
|
|
573
|
-
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
574
|
-
tmp_0 = equals(this.r2(), other.r2());
|
|
575
|
-
} else {
|
|
576
|
-
tmp_0 = false;
|
|
577
|
-
}
|
|
578
|
-
tmp = tmp_0;
|
|
579
|
-
} else {
|
|
580
|
-
tmp = false;
|
|
581
|
-
}
|
|
582
|
-
return tmp;
|
|
583
|
-
};
|
|
584
|
-
protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
|
|
585
|
-
return hashCode(this.r2());
|
|
586
|
-
};
|
|
587
|
-
function merge$slambda$lambda(it) {
|
|
588
|
-
return cursor_0(it);
|
|
589
|
-
}
|
|
590
|
-
function merge$slambda$lambda_0(it) {
|
|
591
|
-
return it.tr();
|
|
592
|
-
}
|
|
593
|
-
function merge$slambda$lambda_1(it) {
|
|
594
|
-
return ensureNotNull(it.rr());
|
|
595
|
-
}
|
|
596
|
-
function merge$slambda$lambda_2($comparator) {
|
|
597
|
-
return function (a, b) {
|
|
598
|
-
return $comparator.compare(a.f1(), b.f1());
|
|
599
|
-
};
|
|
600
|
-
}
|
|
601
|
-
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
602
|
-
this.lt_1 = $iterables;
|
|
603
|
-
this.mt_1 = $comparator;
|
|
604
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
605
|
-
}
|
|
606
|
-
protoOf(merge$slambda).ks = function ($this$sequence, $completion) {
|
|
607
|
-
var tmp = this.ls($this$sequence, $completion);
|
|
608
|
-
tmp.r8_1 = Unit_instance;
|
|
609
|
-
tmp.s8_1 = null;
|
|
610
|
-
return tmp.x8();
|
|
611
|
-
};
|
|
612
|
-
protoOf(merge$slambda).o9 = function (p1, $completion) {
|
|
613
|
-
return this.ks(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
614
|
-
};
|
|
615
|
-
protoOf(merge$slambda).x8 = function () {
|
|
616
|
-
var suspendResult = this.r8_1;
|
|
617
|
-
$sm: do
|
|
618
|
-
try {
|
|
619
|
-
var tmp = this.p8_1;
|
|
620
|
-
switch (tmp) {
|
|
621
|
-
case 0:
|
|
622
|
-
this.q8_1 = 3;
|
|
623
|
-
var tmp_0 = this;
|
|
624
|
-
var tmp_1 = asSequence(this.lt_1);
|
|
625
|
-
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
626
|
-
tmp_0.pt_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
627
|
-
this.p8_1 = 1;
|
|
628
|
-
continue $sm;
|
|
629
|
-
case 1:
|
|
630
|
-
if (!!this.pt_1.i()) {
|
|
631
|
-
this.p8_1 = 4;
|
|
632
|
-
continue $sm;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
var tmp_3 = asSequence(this.pt_1);
|
|
636
|
-
var tmp_4 = indexed(map(tmp_3, merge$slambda$lambda_1));
|
|
637
|
-
var tmp_5 = merge$slambda$lambda_2(this.mt_1);
|
|
638
|
-
var _destruct__k2r9zo = ensureNotNull(minWithOrNull(tmp_4, new sam$kotlin_Comparator$0_0(tmp_5)));
|
|
639
|
-
this.ot_1 = _destruct__k2r9zo.zd();
|
|
640
|
-
var minValue = _destruct__k2r9zo.ae();
|
|
641
|
-
this.p8_1 = 2;
|
|
642
|
-
suspendResult = this.nt_1.se(minValue, this);
|
|
643
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
644
|
-
return suspendResult;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
continue $sm;
|
|
648
|
-
case 2:
|
|
649
|
-
var it = this.pt_1.t(this.ot_1).qr();
|
|
650
|
-
var tmp_6;
|
|
651
|
-
if (it.tr()) {
|
|
652
|
-
tmp_6 = this.pt_1.q3(this.ot_1);
|
|
653
|
-
} else {
|
|
654
|
-
this.pt_1.i3(this.ot_1, it);
|
|
655
|
-
tmp_6 = Unit_instance;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
this.p8_1 = 1;
|
|
659
|
-
continue $sm;
|
|
660
|
-
case 3:
|
|
661
|
-
throw this.s8_1;
|
|
662
|
-
case 4:
|
|
663
|
-
return Unit_instance;
|
|
664
|
-
}
|
|
665
|
-
} catch ($p) {
|
|
666
|
-
var e = $p;
|
|
667
|
-
if (this.q8_1 === 3) {
|
|
668
|
-
throw e;
|
|
669
|
-
} else {
|
|
670
|
-
this.p8_1 = this.q8_1;
|
|
671
|
-
this.s8_1 = e;
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
while (true);
|
|
675
|
-
};
|
|
676
|
-
protoOf(merge$slambda).ls = function ($this$sequence, completion) {
|
|
677
|
-
var i = new merge$slambda(this.lt_1, this.mt_1, completion);
|
|
678
|
-
i.nt_1 = $this$sequence;
|
|
679
|
-
return i;
|
|
680
|
-
};
|
|
681
|
-
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
682
|
-
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
683
|
-
return constructCallableReference(function ($this$sequence, $completion) {
|
|
684
|
-
return i.ks($this$sequence, $completion);
|
|
351
|
+
return i.uy($this$sequence, $completion);
|
|
685
352
|
}, 1);
|
|
686
353
|
}
|
|
687
|
-
function
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
function Companion_3() {
|
|
691
|
-
}
|
|
692
|
-
protoOf(Companion_3).qt = function (index, value) {
|
|
693
|
-
return new LongIndexedImpl(index, value);
|
|
694
|
-
};
|
|
695
|
-
var Companion_instance_3;
|
|
696
|
-
function Companion_getInstance_5() {
|
|
697
|
-
return Companion_instance_3;
|
|
698
|
-
}
|
|
699
|
-
function LongIndexed() {
|
|
700
|
-
}
|
|
701
|
-
function Companion_4() {
|
|
702
|
-
Companion_instance_4 = this;
|
|
354
|
+
function Companion_0() {
|
|
355
|
+
Companion_instance_0 = this;
|
|
703
356
|
var tmp = this;
|
|
704
357
|
// Inline function 'kotlin.text.toRegex' call
|
|
705
358
|
var this_0 = '-?[0-9]+';
|
|
706
|
-
tmp.
|
|
359
|
+
tmp.wy_1 = Regex_init_$Create$(this_0);
|
|
707
360
|
}
|
|
708
|
-
var
|
|
709
|
-
function
|
|
710
|
-
if (
|
|
711
|
-
new
|
|
712
|
-
return
|
|
361
|
+
var Companion_instance_0;
|
|
362
|
+
function Companion_getInstance_3() {
|
|
363
|
+
if (Companion_instance_0 == null)
|
|
364
|
+
new Companion_0();
|
|
365
|
+
return Companion_instance_0;
|
|
713
366
|
}
|
|
714
367
|
function _get_stringRepresentation__xuqjt9($this, $receiver) {
|
|
715
|
-
return $this.
|
|
368
|
+
return $this.xy_1.ux($receiver, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($receiver));
|
|
716
369
|
}
|
|
717
370
|
function NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($this_stringRepresentation) {
|
|
718
371
|
return function () {
|
|
@@ -720,64 +373,61 @@
|
|
|
720
373
|
};
|
|
721
374
|
}
|
|
722
375
|
function NumberTypeTester() {
|
|
723
|
-
|
|
724
|
-
this.
|
|
376
|
+
Companion_getInstance_3();
|
|
377
|
+
this.xy_1 = Companion_instance.sx(8);
|
|
725
378
|
}
|
|
726
|
-
protoOf(NumberTypeTester).
|
|
727
|
-
return
|
|
379
|
+
protoOf(NumberTypeTester).yy = function (_this__u8e3s4) {
|
|
380
|
+
return Companion_getInstance_3().wy_1.ub(_get_stringRepresentation__xuqjt9(this, _this__u8e3s4));
|
|
728
381
|
};
|
|
729
|
-
protoOf(NumberTypeTester).
|
|
382
|
+
protoOf(NumberTypeTester).zy = function (_this__u8e3s4) {
|
|
730
383
|
return Companion_getInstance().parse(_get_stringRepresentation__xuqjt9(this, _this__u8e3s4));
|
|
731
384
|
};
|
|
732
|
-
protoOf(NumberTypeTester).
|
|
385
|
+
protoOf(NumberTypeTester).az = function (_this__u8e3s4) {
|
|
733
386
|
return Companion_getInstance_0().parse(_get_stringRepresentation__xuqjt9(this, _this__u8e3s4));
|
|
734
387
|
};
|
|
735
|
-
function
|
|
388
|
+
function Companion_1() {
|
|
736
389
|
}
|
|
737
|
-
protoOf(
|
|
390
|
+
protoOf(Companion_1).bz = function (value) {
|
|
738
391
|
return new Some(value);
|
|
739
392
|
};
|
|
740
|
-
protoOf(
|
|
393
|
+
protoOf(Companion_1).cz = function (value) {
|
|
741
394
|
var tmp;
|
|
742
395
|
if (value == null) {
|
|
743
|
-
tmp = this.
|
|
396
|
+
tmp = this.dz();
|
|
744
397
|
} else {
|
|
745
|
-
tmp = this.
|
|
398
|
+
tmp = this.bz(value);
|
|
746
399
|
}
|
|
747
400
|
return tmp;
|
|
748
401
|
};
|
|
749
|
-
protoOf(
|
|
402
|
+
protoOf(Companion_1).dz = function () {
|
|
750
403
|
return None_getInstance();
|
|
751
404
|
};
|
|
752
|
-
var
|
|
753
|
-
function
|
|
754
|
-
return
|
|
405
|
+
var Companion_instance_1;
|
|
406
|
+
function Companion_getInstance_4() {
|
|
407
|
+
return Companion_instance_1;
|
|
755
408
|
}
|
|
756
409
|
function Some(value) {
|
|
757
410
|
Optional.call(this);
|
|
758
|
-
this.
|
|
411
|
+
this.vx_1 = value;
|
|
759
412
|
}
|
|
760
413
|
protoOf(Some).f1 = function () {
|
|
761
|
-
return this.
|
|
762
|
-
};
|
|
763
|
-
protoOf(Some).yt = function () {
|
|
764
|
-
return true;
|
|
414
|
+
return this.vx_1;
|
|
765
415
|
};
|
|
766
|
-
protoOf(Some).
|
|
767
|
-
return new Some(function_0(this.
|
|
416
|
+
protoOf(Some).ez = function (function_0) {
|
|
417
|
+
return new Some(function_0(this.vx_1));
|
|
768
418
|
};
|
|
769
419
|
protoOf(Some).toString = function () {
|
|
770
|
-
return 'Some(' + toString_0(this.
|
|
420
|
+
return 'Some(' + toString_0(this.vx_1) + ')';
|
|
771
421
|
};
|
|
772
422
|
protoOf(Some).hashCode = function () {
|
|
773
|
-
return this.
|
|
423
|
+
return this.vx_1 == null ? 0 : hashCode(this.vx_1);
|
|
774
424
|
};
|
|
775
425
|
protoOf(Some).equals = function (other) {
|
|
776
426
|
if (this === other)
|
|
777
427
|
return true;
|
|
778
428
|
if (!(other instanceof Some))
|
|
779
429
|
return false;
|
|
780
|
-
if (!equals(this.
|
|
430
|
+
if (!equals(this.vx_1, other.vx_1))
|
|
781
431
|
return false;
|
|
782
432
|
return true;
|
|
783
433
|
};
|
|
@@ -788,14 +438,11 @@
|
|
|
788
438
|
protoOf(None).f1 = function () {
|
|
789
439
|
return null;
|
|
790
440
|
};
|
|
791
|
-
protoOf(None).
|
|
792
|
-
return false;
|
|
793
|
-
};
|
|
794
|
-
protoOf(None).bu = function (function_0) {
|
|
441
|
+
protoOf(None).fz = function (function_0) {
|
|
795
442
|
return None_getInstance();
|
|
796
443
|
};
|
|
797
|
-
protoOf(None).
|
|
798
|
-
return this.
|
|
444
|
+
protoOf(None).ez = function (function_0) {
|
|
445
|
+
return this.fz(function_0);
|
|
799
446
|
};
|
|
800
447
|
protoOf(None).toString = function () {
|
|
801
448
|
return 'None';
|
|
@@ -808,16 +455,13 @@
|
|
|
808
455
|
}
|
|
809
456
|
function Optional() {
|
|
810
457
|
}
|
|
811
|
-
protoOf(Optional).au = function () {
|
|
812
|
-
return !this.yt();
|
|
813
|
-
};
|
|
814
458
|
function Taggable() {
|
|
815
459
|
}
|
|
816
460
|
function setTag(_this__u8e3s4, key, value) {
|
|
817
461
|
// Inline function 'kotlin.also' call
|
|
818
|
-
var this_0 = toMutableMap(_this__u8e3s4.
|
|
462
|
+
var this_0 = toMutableMap(_this__u8e3s4.gz());
|
|
819
463
|
// Inline function 'kotlin.collections.set' call
|
|
820
|
-
this_0.
|
|
464
|
+
this_0.q4(key, value);
|
|
821
465
|
return setTags(_this__u8e3s4, this_0);
|
|
822
466
|
}
|
|
823
467
|
function setTags(_this__u8e3s4, tags) {
|
|
@@ -827,9 +471,9 @@
|
|
|
827
471
|
function synchronizedOnSelf(_this__u8e3s4, action) {
|
|
828
472
|
return synchronizedOn(_this__u8e3s4, action);
|
|
829
473
|
}
|
|
830
|
-
function
|
|
474
|
+
function Companion_2() {
|
|
831
475
|
}
|
|
832
|
-
protoOf(
|
|
476
|
+
protoOf(Companion_2).dy = function (source) {
|
|
833
477
|
var tmp;
|
|
834
478
|
if (source.q()) {
|
|
835
479
|
tmp = new LazyCursor(source);
|
|
@@ -838,25 +482,25 @@
|
|
|
838
482
|
}
|
|
839
483
|
return tmp;
|
|
840
484
|
};
|
|
841
|
-
var
|
|
842
|
-
function
|
|
843
|
-
return
|
|
485
|
+
var Companion_instance_2;
|
|
486
|
+
function Companion_getInstance_5() {
|
|
487
|
+
return Companion_instance_2;
|
|
844
488
|
}
|
|
845
489
|
function AbstractCursor$iterator$1(this$0) {
|
|
846
|
-
this.
|
|
490
|
+
this.hz_1 = this$0;
|
|
847
491
|
}
|
|
848
492
|
protoOf(AbstractCursor$iterator$1).q = function () {
|
|
849
|
-
return !this.
|
|
493
|
+
return !this.hz_1.cy();
|
|
850
494
|
};
|
|
851
495
|
protoOf(AbstractCursor$iterator$1).r = function () {
|
|
852
|
-
var result = this.
|
|
853
|
-
this.
|
|
496
|
+
var result = this.hz_1.ay();
|
|
497
|
+
this.hz_1 = this.hz_1.zx();
|
|
854
498
|
return ensureNotNull(result);
|
|
855
499
|
};
|
|
856
500
|
function AbstractCursor() {
|
|
857
501
|
}
|
|
858
502
|
protoOf(AbstractCursor).toString = function () {
|
|
859
|
-
return this.
|
|
503
|
+
return this.cy() ? '[]' : !this.by() ? '[' + toString_0(this.ay()) + ']' : '[' + toString_0(this.ay()) + ', ...]';
|
|
860
504
|
};
|
|
861
505
|
protoOf(AbstractCursor).n = function () {
|
|
862
506
|
return new AbstractCursor$iterator$1(this);
|
|
@@ -864,211 +508,70 @@
|
|
|
864
508
|
protoOf(AbstractCursor).iterator = function () {
|
|
865
509
|
return this.n();
|
|
866
510
|
};
|
|
867
|
-
protoOf(AbstractCursor).
|
|
868
|
-
return
|
|
869
|
-
};
|
|
870
|
-
protoOf(AbstractCursor).zt = function (mapper) {
|
|
871
|
-
return new MapperCursor(this, mapper);
|
|
511
|
+
protoOf(AbstractCursor).ez = function (mapper) {
|
|
512
|
+
return MapperCursor_init_$Create$(this, mapper);
|
|
872
513
|
};
|
|
873
514
|
protoOf(AbstractCursor).map = function (mapper) {
|
|
874
|
-
return this.
|
|
515
|
+
return this.ez(mapper);
|
|
875
516
|
};
|
|
876
|
-
function
|
|
877
|
-
|
|
878
|
-
|
|
517
|
+
function EmptyCursor() {
|
|
518
|
+
EmptyCursor_instance = this;
|
|
519
|
+
AbstractCursor.call(this);
|
|
879
520
|
}
|
|
880
|
-
protoOf(
|
|
881
|
-
|
|
521
|
+
protoOf(EmptyCursor).zx = function () {
|
|
522
|
+
throw NoSuchElementException_init_$Create$();
|
|
882
523
|
};
|
|
883
|
-
protoOf(
|
|
884
|
-
return
|
|
524
|
+
protoOf(EmptyCursor).ay = function () {
|
|
525
|
+
return null;
|
|
885
526
|
};
|
|
886
|
-
protoOf(
|
|
887
|
-
|
|
888
|
-
return ensureNotNull(this.gu_1.f1());
|
|
527
|
+
protoOf(EmptyCursor).by = function () {
|
|
528
|
+
return false;
|
|
889
529
|
};
|
|
890
|
-
protoOf(
|
|
891
|
-
|
|
892
|
-
this.gu_1 = Companion_instance_5.xt(this.fu_1());
|
|
893
|
-
}
|
|
530
|
+
protoOf(EmptyCursor).cy = function () {
|
|
531
|
+
return true;
|
|
894
532
|
};
|
|
895
|
-
protoOf(
|
|
896
|
-
|
|
533
|
+
protoOf(EmptyCursor).toString = function () {
|
|
534
|
+
return protoOf(AbstractCursor).toString.call(this);
|
|
897
535
|
};
|
|
898
|
-
protoOf(
|
|
899
|
-
return
|
|
536
|
+
protoOf(EmptyCursor).fz = function (mapper) {
|
|
537
|
+
return this;
|
|
900
538
|
};
|
|
901
|
-
protoOf(
|
|
902
|
-
return
|
|
539
|
+
protoOf(EmptyCursor).map = function (mapper) {
|
|
540
|
+
return this.fz(mapper);
|
|
903
541
|
};
|
|
904
|
-
protoOf(
|
|
905
|
-
|
|
906
|
-
return true;
|
|
907
|
-
if (!(other instanceof CachedImpl))
|
|
908
|
-
return false;
|
|
909
|
-
if (!equals(this.fu_1, other.fu_1))
|
|
910
|
-
return false;
|
|
911
|
-
return true;
|
|
542
|
+
protoOf(EmptyCursor).ez = function (mapper) {
|
|
543
|
+
return this.fz(mapper);
|
|
912
544
|
};
|
|
913
|
-
|
|
545
|
+
var EmptyCursor_instance;
|
|
546
|
+
function EmptyCursor_getInstance() {
|
|
547
|
+
if (EmptyCursor_instance == null)
|
|
548
|
+
new EmptyCursor();
|
|
549
|
+
return EmptyCursor_instance;
|
|
550
|
+
}
|
|
551
|
+
function _get_wrapped__s2ip8($this) {
|
|
552
|
+
return $this.jz_1.f1();
|
|
553
|
+
}
|
|
554
|
+
function LazyCursor$lazyWrapped$lambda(this$0) {
|
|
914
555
|
return function () {
|
|
915
|
-
return
|
|
556
|
+
return new NonLastCursor(this$0.iz_1);
|
|
916
557
|
};
|
|
917
558
|
}
|
|
918
|
-
function
|
|
919
|
-
return constructCallableReference(function (p0) {
|
|
920
|
-
return p0.qr();
|
|
921
|
-
}, 1, 0, 3);
|
|
922
|
-
}
|
|
923
|
-
function ConjunctionCursor(first, second) {
|
|
559
|
+
function LazyCursor(delegate) {
|
|
924
560
|
AbstractCursor.call(this);
|
|
925
|
-
this.
|
|
926
|
-
this.ku_1 = second;
|
|
561
|
+
this.iz_1 = delegate;
|
|
927
562
|
var tmp = this;
|
|
928
|
-
tmp.
|
|
563
|
+
tmp.jz_1 = lazy(LazyCursor$lazyWrapped$lambda(this));
|
|
929
564
|
}
|
|
930
|
-
protoOf(
|
|
931
|
-
return this
|
|
565
|
+
protoOf(LazyCursor).zx = function () {
|
|
566
|
+
return _get_wrapped__s2ip8(this).zx();
|
|
932
567
|
};
|
|
933
|
-
protoOf(
|
|
934
|
-
|
|
935
|
-
var tmp = KProperty1;
|
|
936
|
-
// Inline function 'kotlin.getValue' call
|
|
937
|
-
getPropertyCallableRef('next', 1, tmp, ConjunctionCursor$_get_next_$ref_xfvrtr(), null);
|
|
938
|
-
return tmp0.f1();
|
|
568
|
+
protoOf(LazyCursor).ay = function () {
|
|
569
|
+
return _get_wrapped__s2ip8(this).ay();
|
|
939
570
|
};
|
|
940
|
-
protoOf(
|
|
941
|
-
return this.ju_1.sr() ? this.ju_1.rr() : this.ku_1.rr();
|
|
942
|
-
};
|
|
943
|
-
protoOf(ConjunctionCursor).sr = function () {
|
|
944
|
-
return this.ju_1.sr() || this.ku_1.sr();
|
|
945
|
-
};
|
|
946
|
-
protoOf(ConjunctionCursor).equals = function (other) {
|
|
947
|
-
if (this === other)
|
|
948
|
-
return true;
|
|
949
|
-
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
950
|
-
return false;
|
|
951
|
-
if (!(other instanceof ConjunctionCursor))
|
|
952
|
-
THROW_CCE();
|
|
953
|
-
if (!equals(this.ju_1, other.ju_1))
|
|
954
|
-
return false;
|
|
955
|
-
if (!equals(this.ku_1, other.ku_1))
|
|
956
|
-
return false;
|
|
957
|
-
return true;
|
|
958
|
-
};
|
|
959
|
-
protoOf(ConjunctionCursor).hashCode = function () {
|
|
960
|
-
var result = hashCode(this.ju_1);
|
|
961
|
-
result = imul(31, result) + hashCode(this.ku_1) | 0;
|
|
962
|
-
return result;
|
|
963
|
-
};
|
|
964
|
-
function EmptyCursor() {
|
|
965
|
-
EmptyCursor_instance = this;
|
|
966
|
-
AbstractCursor.call(this);
|
|
967
|
-
}
|
|
968
|
-
protoOf(EmptyCursor).qr = function () {
|
|
969
|
-
throw NoSuchElementException_init_$Create$();
|
|
970
|
-
};
|
|
971
|
-
protoOf(EmptyCursor).rr = function () {
|
|
972
|
-
return null;
|
|
973
|
-
};
|
|
974
|
-
protoOf(EmptyCursor).sr = function () {
|
|
975
|
-
return false;
|
|
976
|
-
};
|
|
977
|
-
protoOf(EmptyCursor).tr = function () {
|
|
978
|
-
return true;
|
|
979
|
-
};
|
|
980
|
-
protoOf(EmptyCursor).toString = function () {
|
|
981
|
-
return protoOf(AbstractCursor).toString.call(this);
|
|
982
|
-
};
|
|
983
|
-
protoOf(EmptyCursor).bu = function (mapper) {
|
|
984
|
-
return this;
|
|
985
|
-
};
|
|
986
|
-
protoOf(EmptyCursor).map = function (mapper) {
|
|
987
|
-
return this.bu(mapper);
|
|
988
|
-
};
|
|
989
|
-
protoOf(EmptyCursor).zt = function (mapper) {
|
|
990
|
-
return this.bu(mapper);
|
|
991
|
-
};
|
|
992
|
-
var EmptyCursor_instance;
|
|
993
|
-
function EmptyCursor_getInstance() {
|
|
994
|
-
if (EmptyCursor_instance == null)
|
|
995
|
-
new EmptyCursor();
|
|
996
|
-
return EmptyCursor_instance;
|
|
997
|
-
}
|
|
998
|
-
function IntIndexedImpl(index, value) {
|
|
999
|
-
this.mu_1 = index;
|
|
1000
|
-
this.nu_1 = value;
|
|
1001
|
-
}
|
|
1002
|
-
protoOf(IntIndexedImpl).vr = function () {
|
|
1003
|
-
return this.mu_1;
|
|
1004
|
-
};
|
|
1005
|
-
protoOf(IntIndexedImpl).f1 = function () {
|
|
1006
|
-
return this.nu_1;
|
|
1007
|
-
};
|
|
1008
|
-
protoOf(IntIndexedImpl).zd = function () {
|
|
1009
|
-
return this.mu_1;
|
|
1010
|
-
};
|
|
1011
|
-
protoOf(IntIndexedImpl).ae = function () {
|
|
1012
|
-
return this.nu_1;
|
|
1013
|
-
};
|
|
1014
|
-
protoOf(IntIndexedImpl).toString = function () {
|
|
1015
|
-
return 'IntIndexedImpl(index=' + this.mu_1 + ', value=' + toString_0(this.nu_1) + ')';
|
|
1016
|
-
};
|
|
1017
|
-
protoOf(IntIndexedImpl).hashCode = function () {
|
|
1018
|
-
var result = this.mu_1;
|
|
1019
|
-
result = imul(result, 31) + (this.nu_1 == null ? 0 : hashCode(this.nu_1)) | 0;
|
|
1020
|
-
return result;
|
|
1021
|
-
};
|
|
1022
|
-
protoOf(IntIndexedImpl).equals = function (other) {
|
|
1023
|
-
if (this === other)
|
|
1024
|
-
return true;
|
|
1025
|
-
if (!(other instanceof IntIndexedImpl))
|
|
1026
|
-
return false;
|
|
1027
|
-
if (!(this.mu_1 === other.mu_1))
|
|
1028
|
-
return false;
|
|
1029
|
-
if (!equals(this.nu_1, other.nu_1))
|
|
1030
|
-
return false;
|
|
1031
|
-
return true;
|
|
1032
|
-
};
|
|
1033
|
-
protoOf(IntIndexedImpl).d = function (other) {
|
|
1034
|
-
return this.xr((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
1035
|
-
};
|
|
1036
|
-
function _get_wrapped__s2ip8($this) {
|
|
1037
|
-
var tmp0 = $this.pu_1;
|
|
1038
|
-
var tmp = KProperty1;
|
|
1039
|
-
// Inline function 'kotlin.getValue' call
|
|
1040
|
-
getPropertyCallableRef('wrapped', 1, tmp, LazyCursor$_get_wrapped_$ref_p28zr5(), null);
|
|
1041
|
-
return tmp0.f1();
|
|
1042
|
-
}
|
|
1043
|
-
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
1044
|
-
return function () {
|
|
1045
|
-
return new NonLastCursor(this$0.ou_1);
|
|
1046
|
-
};
|
|
1047
|
-
}
|
|
1048
|
-
function LazyCursor$_get_wrapped_$ref_p28zr5() {
|
|
1049
|
-
return constructCallableReference(function (p0) {
|
|
1050
|
-
return _get_wrapped__s2ip8(p0);
|
|
1051
|
-
}, 1, 0, 4);
|
|
1052
|
-
}
|
|
1053
|
-
function LazyCursor(delegate) {
|
|
1054
|
-
AbstractCursor.call(this);
|
|
1055
|
-
this.ou_1 = delegate;
|
|
1056
|
-
var tmp = this;
|
|
1057
|
-
tmp.pu_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
1058
|
-
}
|
|
1059
|
-
protoOf(LazyCursor).eu = function () {
|
|
571
|
+
protoOf(LazyCursor).by = function () {
|
|
1060
572
|
return true;
|
|
1061
573
|
};
|
|
1062
|
-
protoOf(LazyCursor).
|
|
1063
|
-
return _get_wrapped__s2ip8(this).qr();
|
|
1064
|
-
};
|
|
1065
|
-
protoOf(LazyCursor).rr = function () {
|
|
1066
|
-
return _get_wrapped__s2ip8(this).rr();
|
|
1067
|
-
};
|
|
1068
|
-
protoOf(LazyCursor).sr = function () {
|
|
1069
|
-
return true;
|
|
1070
|
-
};
|
|
1071
|
-
protoOf(LazyCursor).tr = function () {
|
|
574
|
+
protoOf(LazyCursor).cy = function () {
|
|
1072
575
|
return false;
|
|
1073
576
|
};
|
|
1074
577
|
protoOf(LazyCursor).toString = function () {
|
|
@@ -1081,149 +584,166 @@
|
|
|
1081
584
|
return this.n();
|
|
1082
585
|
};
|
|
1083
586
|
protoOf(LazyCursor).hashCode = function () {
|
|
1084
|
-
return hashCode(this.
|
|
587
|
+
return hashCode(this.iz_1);
|
|
1085
588
|
};
|
|
1086
589
|
protoOf(LazyCursor).equals = function (other) {
|
|
1087
590
|
if (this === other)
|
|
1088
591
|
return true;
|
|
1089
592
|
if (!(other instanceof LazyCursor))
|
|
1090
593
|
return false;
|
|
1091
|
-
if (!equals(this.
|
|
594
|
+
if (!equals(this.iz_1, other.iz_1))
|
|
1092
595
|
return false;
|
|
1093
596
|
return true;
|
|
1094
597
|
};
|
|
1095
|
-
function
|
|
1096
|
-
|
|
1097
|
-
|
|
598
|
+
function MapperCursor$MapperChain$lazyMappers$lambda(this$0) {
|
|
599
|
+
return function () {
|
|
600
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
601
|
+
var size = this$0.mz_1;
|
|
602
|
+
var result = Array(size);
|
|
603
|
+
var node = this$0;
|
|
604
|
+
var i = this$0.mz_1 - 1 | 0;
|
|
605
|
+
while (!(node == null)) {
|
|
606
|
+
var _unary__edvuaz = i;
|
|
607
|
+
i = _unary__edvuaz - 1 | 0;
|
|
608
|
+
result[_unary__edvuaz] = node.lz_1;
|
|
609
|
+
node = node.kz_1;
|
|
610
|
+
}
|
|
611
|
+
return isArray(result) ? result : THROW_CCE();
|
|
612
|
+
};
|
|
1098
613
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
614
|
+
function MapperCursor_init_$Init$(source, mapper, $this) {
|
|
615
|
+
MapperCursor.call($this, source, new MapperChain(null, typeof mapper === 'function' ? mapper : THROW_CCE()));
|
|
616
|
+
return $this;
|
|
617
|
+
}
|
|
618
|
+
function MapperCursor_init_$Create$(source, mapper) {
|
|
619
|
+
return MapperCursor_init_$Init$(source, mapper, objectCreate(protoOf(MapperCursor)));
|
|
620
|
+
}
|
|
621
|
+
function initializePrevious($this, value) {
|
|
622
|
+
var node = $this.qz_1;
|
|
623
|
+
if (node == null || value(node).tl())
|
|
624
|
+
return Unit_instance;
|
|
625
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
626
|
+
var pending = ArrayList_init_$Create$();
|
|
627
|
+
while (!(node == null) && !value(node).tl()) {
|
|
628
|
+
pending.l(node);
|
|
629
|
+
node = node.qz_1;
|
|
630
|
+
}
|
|
631
|
+
var inductionVariable = pending.s() - 1 | 0;
|
|
632
|
+
if (0 <= inductionVariable)
|
|
633
|
+
do {
|
|
634
|
+
var i = inductionVariable;
|
|
635
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
636
|
+
value(pending.t(i)).f1();
|
|
637
|
+
}
|
|
638
|
+
while (0 <= inductionVariable);
|
|
639
|
+
}
|
|
640
|
+
function MapperChain(previous, last) {
|
|
641
|
+
this.kz_1 = previous;
|
|
642
|
+
this.lz_1 = last;
|
|
643
|
+
var tmp = this;
|
|
644
|
+
var tmp0_safe_receiver = this.kz_1;
|
|
645
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mz_1;
|
|
646
|
+
tmp.mz_1 = (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) + 1 | 0;
|
|
647
|
+
var tmp_0 = this;
|
|
648
|
+
tmp_0.nz_1 = lazy(MapperCursor$MapperChain$lazyMappers$lambda(this));
|
|
649
|
+
}
|
|
650
|
+
protoOf(MapperChain).tz = function () {
|
|
651
|
+
return this.nz_1.f1();
|
|
1132
652
|
};
|
|
1133
|
-
function MapperCursor$
|
|
653
|
+
function MapperCursor$currentValue$lambda$lambda(it) {
|
|
654
|
+
return it.rz_1;
|
|
655
|
+
}
|
|
656
|
+
function MapperCursor$currentValue$lambda(this$0) {
|
|
1134
657
|
return function () {
|
|
1135
|
-
|
|
658
|
+
initializePrevious(this$0, MapperCursor$currentValue$lambda$lambda);
|
|
659
|
+
return this$0.pz_1.lz_1(this$0.qz_1 == null ? this$0.oz_1.ay() : this$0.qz_1.ay());
|
|
1136
660
|
};
|
|
1137
661
|
}
|
|
1138
|
-
function MapperCursor$
|
|
1139
|
-
return
|
|
1140
|
-
return p0.rr();
|
|
1141
|
-
}, 1, 0, 5);
|
|
662
|
+
function MapperCursor$nextValue$lambda$lambda(it) {
|
|
663
|
+
return it.sz_1;
|
|
1142
664
|
}
|
|
1143
|
-
function MapperCursor(
|
|
665
|
+
function MapperCursor$nextValue$lambda(this$0) {
|
|
666
|
+
return function () {
|
|
667
|
+
initializePrevious(this$0, MapperCursor$nextValue$lambda$lambda);
|
|
668
|
+
var sourceNext = this$0.oz_1.zx();
|
|
669
|
+
var tmp;
|
|
670
|
+
if (sourceNext.cy()) {
|
|
671
|
+
tmp = EmptyCursor_getInstance();
|
|
672
|
+
} else {
|
|
673
|
+
var tmp0_safe_receiver = this$0.qz_1;
|
|
674
|
+
var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zx();
|
|
675
|
+
tmp = new MapperCursor(sourceNext, this$0.pz_1, tmp_0 instanceof MapperCursor ? tmp_0 : null);
|
|
676
|
+
}
|
|
677
|
+
return tmp;
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
function MapperCursor(source, chain, previous) {
|
|
681
|
+
previous = previous === VOID ? null : previous;
|
|
1144
682
|
AbstractCursor.call(this);
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
683
|
+
this.oz_1 = source;
|
|
684
|
+
this.pz_1 = chain;
|
|
685
|
+
this.qz_1 = previous;
|
|
1147
686
|
var tmp = this;
|
|
1148
|
-
tmp.
|
|
687
|
+
tmp.rz_1 = lazy(MapperCursor$currentValue$lambda(this));
|
|
688
|
+
var tmp_0 = this;
|
|
689
|
+
tmp_0.sz_1 = lazy(MapperCursor$nextValue$lambda(this));
|
|
1149
690
|
}
|
|
1150
|
-
protoOf(MapperCursor).
|
|
1151
|
-
return this.
|
|
691
|
+
protoOf(MapperCursor).ay = function () {
|
|
692
|
+
return this.rz_1.f1();
|
|
1152
693
|
};
|
|
1153
|
-
protoOf(MapperCursor).
|
|
1154
|
-
|
|
1155
|
-
var tmp = KProperty1;
|
|
1156
|
-
// Inline function 'kotlin.getValue' call
|
|
1157
|
-
getPropertyCallableRef('current', 1, tmp, MapperCursor$_get_current_$ref_lsggiu(), null);
|
|
1158
|
-
return tmp0.f1();
|
|
694
|
+
protoOf(MapperCursor).zx = function () {
|
|
695
|
+
return this.sz_1.f1();
|
|
1159
696
|
};
|
|
1160
|
-
protoOf(MapperCursor).
|
|
697
|
+
protoOf(MapperCursor).by = function () {
|
|
1161
698
|
return true;
|
|
1162
699
|
};
|
|
1163
|
-
protoOf(MapperCursor).
|
|
700
|
+
protoOf(MapperCursor).cy = function () {
|
|
1164
701
|
return false;
|
|
1165
702
|
};
|
|
703
|
+
protoOf(MapperCursor).uz = function (mapper) {
|
|
704
|
+
return new MapperCursor(this.oz_1, new MapperChain(this.pz_1, typeof mapper === 'function' ? mapper : THROW_CCE()), this);
|
|
705
|
+
};
|
|
706
|
+
protoOf(MapperCursor).map = function (mapper) {
|
|
707
|
+
return this.uz(mapper);
|
|
708
|
+
};
|
|
709
|
+
protoOf(MapperCursor).ez = function (mapper) {
|
|
710
|
+
return this.uz(mapper);
|
|
711
|
+
};
|
|
1166
712
|
protoOf(MapperCursor).equals = function (other) {
|
|
1167
713
|
if (this === other)
|
|
1168
714
|
return true;
|
|
1169
|
-
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
1170
|
-
return false;
|
|
1171
715
|
if (!(other instanceof MapperCursor))
|
|
1172
|
-
THROW_CCE();
|
|
1173
|
-
if (!equals(this.su_1, other.su_1))
|
|
1174
|
-
return false;
|
|
1175
|
-
if (!equals(this.tu_1, other.tu_1))
|
|
1176
716
|
return false;
|
|
1177
|
-
return
|
|
717
|
+
return equals(this.oz_1, other.oz_1) && (this.pz_1 === other.pz_1 || contentEquals(this.pz_1.tz(), other.pz_1.tz()));
|
|
1178
718
|
};
|
|
1179
719
|
protoOf(MapperCursor).hashCode = function () {
|
|
1180
|
-
|
|
1181
|
-
result = imul(31, result) + hashCode(this.tu_1) | 0;
|
|
1182
|
-
return result;
|
|
1183
|
-
};
|
|
1184
|
-
protoOf(MapperCursor).vu = function (mapper) {
|
|
1185
|
-
return new ValueCursor(mapper(this.rr()), this.qr().zt(mapper));
|
|
1186
|
-
};
|
|
1187
|
-
protoOf(MapperCursor).map = function (mapper) {
|
|
1188
|
-
return this.vu(mapper);
|
|
1189
|
-
};
|
|
1190
|
-
protoOf(MapperCursor).zt = function (mapper) {
|
|
1191
|
-
return this.vu(mapper);
|
|
720
|
+
return imul(31, hashCode(this.oz_1)) + contentHashCode(this.pz_1.tz()) | 0;
|
|
1192
721
|
};
|
|
1193
|
-
function NonLastCursor$
|
|
722
|
+
function NonLastCursor$lazyNext$lambda($source, this$0) {
|
|
1194
723
|
return function () {
|
|
1195
724
|
// Inline function 'kotlin.also' call
|
|
1196
|
-
var this_0 =
|
|
1197
|
-
this$0.
|
|
725
|
+
var this_0 = Companion_instance_2.dy($source);
|
|
726
|
+
this$0.vz_1 = null;
|
|
1198
727
|
return this_0;
|
|
1199
728
|
};
|
|
1200
729
|
}
|
|
1201
|
-
function NonLastCursor$_get_next_$ref_gp6ycu() {
|
|
1202
|
-
return constructCallableReference(function (p0) {
|
|
1203
|
-
return p0.qr();
|
|
1204
|
-
}, 1, 0, 6);
|
|
1205
|
-
}
|
|
1206
730
|
function NonLastCursor(source) {
|
|
1207
731
|
AbstractCursor.call(this);
|
|
1208
|
-
this.
|
|
732
|
+
this.vz_1 = source;
|
|
1209
733
|
var tmp = this;
|
|
1210
|
-
tmp.
|
|
1211
|
-
this.
|
|
734
|
+
tmp.wz_1 = lazy(NonLastCursor$lazyNext$lambda(source, this));
|
|
735
|
+
this.xz_1 = source.r();
|
|
1212
736
|
}
|
|
1213
|
-
protoOf(NonLastCursor).
|
|
1214
|
-
|
|
1215
|
-
var tmp = KProperty1;
|
|
1216
|
-
// Inline function 'kotlin.getValue' call
|
|
1217
|
-
getPropertyCallableRef('next', 1, tmp, NonLastCursor$_get_next_$ref_gp6ycu(), null);
|
|
1218
|
-
return tmp0.f1();
|
|
737
|
+
protoOf(NonLastCursor).zx = function () {
|
|
738
|
+
return this.wz_1.f1();
|
|
1219
739
|
};
|
|
1220
|
-
protoOf(NonLastCursor).
|
|
1221
|
-
return this.
|
|
740
|
+
protoOf(NonLastCursor).ay = function () {
|
|
741
|
+
return this.xz_1;
|
|
1222
742
|
};
|
|
1223
|
-
protoOf(NonLastCursor).
|
|
743
|
+
protoOf(NonLastCursor).by = function () {
|
|
1224
744
|
return true;
|
|
1225
745
|
};
|
|
1226
|
-
protoOf(NonLastCursor).
|
|
746
|
+
protoOf(NonLastCursor).cy = function () {
|
|
1227
747
|
return false;
|
|
1228
748
|
};
|
|
1229
749
|
protoOf(NonLastCursor).toString = function () {
|
|
@@ -1231,42 +751,42 @@
|
|
|
1231
751
|
};
|
|
1232
752
|
function removeLeastRecent($this) {
|
|
1233
753
|
// Inline function 'kotlin.collections.asIterable' call
|
|
1234
|
-
var tmp$ret$0 = $this.
|
|
754
|
+
var tmp$ret$0 = $this.zz_1.d1();
|
|
1235
755
|
var _destruct__k2r9zo = first(tmp$ret$0);
|
|
1236
756
|
// Inline function 'kotlin.collections.component1' call
|
|
1237
757
|
var key = _destruct__k2r9zo.e1();
|
|
1238
758
|
// Inline function 'kotlin.collections.component2' call
|
|
1239
759
|
var value = _destruct__k2r9zo.f1();
|
|
1240
|
-
$this.
|
|
1241
|
-
return
|
|
760
|
+
$this.zz_1.s4(key);
|
|
761
|
+
return Companion_instance_1.bz(to(key, value));
|
|
1242
762
|
}
|
|
1243
763
|
function removeLeastRecentIfNecessary($this) {
|
|
1244
764
|
var tmp;
|
|
1245
|
-
if ($this.
|
|
765
|
+
if ($this.zz_1.s() >= $this.yz_1) {
|
|
1246
766
|
tmp = removeLeastRecent($this);
|
|
1247
767
|
} else {
|
|
1248
|
-
tmp =
|
|
768
|
+
tmp = Companion_instance_1.dz();
|
|
1249
769
|
}
|
|
1250
770
|
return tmp;
|
|
1251
771
|
}
|
|
1252
772
|
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1253
773
|
return function () {
|
|
1254
774
|
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1255
|
-
var tmp0 = this$0.
|
|
775
|
+
var tmp0 = this$0.zz_1;
|
|
1256
776
|
var tmp2 = $key;
|
|
1257
777
|
// Inline function 'kotlin.collections.set' call
|
|
1258
778
|
var value = $value;
|
|
1259
|
-
tmp0.
|
|
779
|
+
tmp0.q4(tmp2, value);
|
|
1260
780
|
return evicted;
|
|
1261
781
|
};
|
|
1262
782
|
}
|
|
1263
783
|
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1264
784
|
return function () {
|
|
1265
785
|
var tmp;
|
|
1266
|
-
if (this$0.
|
|
1267
|
-
tmp =
|
|
786
|
+
if (this$0.zz_1.h2($key)) {
|
|
787
|
+
tmp = Companion_instance_1.cz(this$0.zz_1.j2($key));
|
|
1268
788
|
} else {
|
|
1269
|
-
tmp =
|
|
789
|
+
tmp = Companion_instance_1.dz();
|
|
1270
790
|
}
|
|
1271
791
|
return tmp;
|
|
1272
792
|
};
|
|
@@ -1277,7 +797,7 @@
|
|
|
1277
797
|
}
|
|
1278
798
|
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1279
799
|
return function () {
|
|
1280
|
-
var tmp = asSequence(this$0.
|
|
800
|
+
var tmp = asSequence(this$0.zz_1.d1());
|
|
1281
801
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1282
802
|
};
|
|
1283
803
|
}
|
|
@@ -1285,16 +805,16 @@
|
|
|
1285
805
|
return toString_0(it.first) + ' = ' + toString_0(it.second);
|
|
1286
806
|
}
|
|
1287
807
|
function SimpleLRUCache(capacity) {
|
|
1288
|
-
this.
|
|
808
|
+
this.yz_1 = capacity;
|
|
1289
809
|
// Inline function 'kotlin.require' call
|
|
1290
810
|
// Inline function 'kotlin.require' call
|
|
1291
|
-
if (!(this.
|
|
811
|
+
if (!(this.yz_1 > 0)) {
|
|
1292
812
|
var message = 'Failed requirement.';
|
|
1293
813
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1294
814
|
}
|
|
1295
|
-
this.
|
|
815
|
+
this.zz_1 = LinkedHashMap_init_$Create$();
|
|
1296
816
|
}
|
|
1297
|
-
protoOf(SimpleLRUCache).
|
|
817
|
+
protoOf(SimpleLRUCache).tx = function (key, value) {
|
|
1298
818
|
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1299
819
|
};
|
|
1300
820
|
protoOf(SimpleLRUCache).j2 = function (key) {
|
|
@@ -1307,53 +827,485 @@
|
|
|
1307
827
|
return false;
|
|
1308
828
|
if (!(other instanceof SimpleLRUCache))
|
|
1309
829
|
THROW_CCE();
|
|
1310
|
-
if (!(this.
|
|
830
|
+
if (!(this.yz_1 === other.yz_1))
|
|
1311
831
|
return false;
|
|
1312
|
-
if (!this.
|
|
832
|
+
if (!this.zz_1.equals(other.zz_1))
|
|
1313
833
|
return false;
|
|
1314
834
|
return true;
|
|
1315
835
|
};
|
|
1316
836
|
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1317
|
-
var result = this.
|
|
1318
|
-
result = imul(31, result) + this.
|
|
837
|
+
var result = this.yz_1;
|
|
838
|
+
result = imul(31, result) + this.zz_1.hashCode() | 0;
|
|
1319
839
|
return result;
|
|
1320
840
|
};
|
|
1321
|
-
protoOf(SimpleLRUCache).
|
|
841
|
+
protoOf(SimpleLRUCache).a10 = function () {
|
|
1322
842
|
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1323
843
|
};
|
|
1324
844
|
protoOf(SimpleLRUCache).toString = function () {
|
|
1325
|
-
var tmp = this.
|
|
845
|
+
var tmp = this.a10();
|
|
1326
846
|
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1327
847
|
};
|
|
1328
|
-
function
|
|
1329
|
-
|
|
1330
|
-
this.
|
|
1331
|
-
|
|
848
|
+
function Companion_3() {
|
|
849
|
+
Companion_instance_3 = this;
|
|
850
|
+
this.b10_1 = new AdaptiveSamplingPolicy();
|
|
851
|
+
}
|
|
852
|
+
var Companion_instance_3;
|
|
853
|
+
function Companion_getInstance_6() {
|
|
854
|
+
if (Companion_instance_3 == null)
|
|
855
|
+
new Companion_3();
|
|
856
|
+
return Companion_instance_3;
|
|
857
|
+
}
|
|
858
|
+
function AdaptiveSamplingPolicy(samplingPeriod, budgetFraction, minLeaps, maxLeaps, maxGrowthFactor, smoothing) {
|
|
859
|
+
Companion_getInstance_6();
|
|
860
|
+
var tmp;
|
|
861
|
+
if (samplingPeriod === VOID) {
|
|
862
|
+
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
863
|
+
Companion_getInstance_1();
|
|
864
|
+
tmp = toDuration(1, DurationUnit_MILLISECONDS_getInstance());
|
|
865
|
+
} else {
|
|
866
|
+
tmp = samplingPeriod;
|
|
867
|
+
}
|
|
868
|
+
samplingPeriod = tmp;
|
|
869
|
+
budgetFraction = budgetFraction === VOID ? 0.1 : budgetFraction;
|
|
870
|
+
minLeaps = minLeaps === VOID ? 1n : minLeaps;
|
|
871
|
+
maxLeaps = maxLeaps === VOID ? 4096n : maxLeaps;
|
|
872
|
+
maxGrowthFactor = maxGrowthFactor === VOID ? 2n : maxGrowthFactor;
|
|
873
|
+
smoothing = smoothing === VOID ? 0.25 : smoothing;
|
|
874
|
+
this.c10_1 = samplingPeriod;
|
|
875
|
+
this.d10_1 = budgetFraction;
|
|
876
|
+
this.e10_1 = minLeaps;
|
|
877
|
+
this.f10_1 = maxLeaps;
|
|
878
|
+
this.g10_1 = maxGrowthFactor;
|
|
879
|
+
this.h10_1 = smoothing;
|
|
880
|
+
// Inline function 'kotlin.require' call
|
|
881
|
+
if (!Duration__isPositive_impl_tvkkt2(this.c10_1)) {
|
|
882
|
+
var message = 'samplingPeriod must be positive: ' + Duration__toString_impl_8d916b(this.c10_1);
|
|
883
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
884
|
+
}
|
|
885
|
+
// Inline function 'kotlin.require' call
|
|
886
|
+
if (!(this.d10_1 > 0.0 && this.d10_1 <= 1.0)) {
|
|
887
|
+
var message_0 = 'budgetFraction must be in (0, 1]: ' + this.d10_1;
|
|
888
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
889
|
+
}
|
|
890
|
+
// Inline function 'kotlin.require' call
|
|
891
|
+
if (!(this.e10_1 >= 1n)) {
|
|
892
|
+
var message_1 = 'minLeaps must be at least 1: ' + this.e10_1.toString();
|
|
893
|
+
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
894
|
+
}
|
|
895
|
+
// Inline function 'kotlin.require' call
|
|
896
|
+
if (!(this.f10_1 >= this.e10_1)) {
|
|
897
|
+
var message_2 = 'maxLeaps must be at least minLeaps (' + this.e10_1.toString() + '): ' + this.f10_1.toString();
|
|
898
|
+
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
899
|
+
}
|
|
900
|
+
// Inline function 'kotlin.require' call
|
|
901
|
+
if (!(this.g10_1 >= 1n)) {
|
|
902
|
+
var message_3 = 'maxGrowthFactor must be at least 1: ' + this.g10_1.toString();
|
|
903
|
+
throw IllegalArgumentException_init_$Create$(toString(message_3));
|
|
904
|
+
}
|
|
905
|
+
// Inline function 'kotlin.require' call
|
|
906
|
+
if (!(this.h10_1 > 0.0 && this.h10_1 <= 1.0)) {
|
|
907
|
+
var message_4 = 'smoothing must be in (0, 1]: ' + this.h10_1;
|
|
908
|
+
throw IllegalArgumentException_init_$Create$(toString(message_4));
|
|
909
|
+
}
|
|
1332
910
|
}
|
|
1333
|
-
protoOf(
|
|
1334
|
-
return this.
|
|
911
|
+
protoOf(AdaptiveSamplingPolicy).toString = function () {
|
|
912
|
+
return 'AdaptiveSamplingPolicy(samplingPeriod=' + Duration__toString_impl_8d916b(this.c10_1) + ', budgetFraction=' + this.d10_1 + ', minLeaps=' + this.e10_1.toString() + ', maxLeaps=' + this.f10_1.toString() + ', maxGrowthFactor=' + this.g10_1.toString() + ', smoothing=' + this.h10_1 + ')';
|
|
1335
913
|
};
|
|
1336
|
-
protoOf(
|
|
1337
|
-
|
|
914
|
+
protoOf(AdaptiveSamplingPolicy).hashCode = function () {
|
|
915
|
+
var result = Duration__hashCode_impl_u4exz6(this.c10_1);
|
|
916
|
+
result = imul(result, 31) + getNumberHashCode(this.d10_1) | 0;
|
|
917
|
+
result = imul(result, 31) + getBigIntHashCode(this.e10_1) | 0;
|
|
918
|
+
result = imul(result, 31) + getBigIntHashCode(this.f10_1) | 0;
|
|
919
|
+
result = imul(result, 31) + getBigIntHashCode(this.g10_1) | 0;
|
|
920
|
+
result = imul(result, 31) + getNumberHashCode(this.h10_1) | 0;
|
|
921
|
+
return result;
|
|
1338
922
|
};
|
|
1339
|
-
protoOf(
|
|
923
|
+
protoOf(AdaptiveSamplingPolicy).equals = function (other) {
|
|
924
|
+
if (this === other)
|
|
925
|
+
return true;
|
|
926
|
+
if (!(other instanceof AdaptiveSamplingPolicy))
|
|
927
|
+
return false;
|
|
928
|
+
if (!equals(new Duration(this.c10_1), new Duration(other.c10_1)))
|
|
929
|
+
return false;
|
|
930
|
+
if (!equals(this.d10_1, other.d10_1))
|
|
931
|
+
return false;
|
|
932
|
+
if (!(this.e10_1 === other.e10_1))
|
|
933
|
+
return false;
|
|
934
|
+
if (!(this.f10_1 === other.f10_1))
|
|
935
|
+
return false;
|
|
936
|
+
if (!(this.g10_1 === other.g10_1))
|
|
937
|
+
return false;
|
|
938
|
+
if (!equals(this.h10_1, other.h10_1))
|
|
939
|
+
return false;
|
|
1340
940
|
return true;
|
|
1341
941
|
};
|
|
1342
|
-
|
|
942
|
+
function sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0(function_0) {
|
|
943
|
+
this.i10_1 = function_0;
|
|
944
|
+
}
|
|
945
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0).j10 = function (timeout) {
|
|
946
|
+
return this.i10_1(new Duration(timeout));
|
|
947
|
+
};
|
|
948
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0).r2 = function () {
|
|
949
|
+
return this.i10_1;
|
|
950
|
+
};
|
|
951
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0).equals = function (other) {
|
|
952
|
+
var tmp;
|
|
953
|
+
if (!(other == null) ? isInterface(other, ChronometerFactory) : false) {
|
|
954
|
+
var tmp_0;
|
|
955
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
956
|
+
tmp_0 = equals(this.r2(), other.r2());
|
|
957
|
+
} else {
|
|
958
|
+
tmp_0 = false;
|
|
959
|
+
}
|
|
960
|
+
tmp = tmp_0;
|
|
961
|
+
} else {
|
|
962
|
+
tmp = false;
|
|
963
|
+
}
|
|
964
|
+
return tmp;
|
|
965
|
+
};
|
|
966
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0).hashCode = function () {
|
|
967
|
+
return hashCode(this.r2());
|
|
968
|
+
};
|
|
969
|
+
function sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0_0(function_0) {
|
|
970
|
+
this.k10_1 = function_0;
|
|
971
|
+
}
|
|
972
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0_0).j10 = function (timeout) {
|
|
973
|
+
return this.k10_1(new Duration(timeout));
|
|
974
|
+
};
|
|
975
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0_0).r2 = function () {
|
|
976
|
+
return this.k10_1;
|
|
977
|
+
};
|
|
978
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0_0).equals = function (other) {
|
|
979
|
+
var tmp;
|
|
980
|
+
if (!(other == null) ? isInterface(other, ChronometerFactory) : false) {
|
|
981
|
+
var tmp_0;
|
|
982
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
983
|
+
tmp_0 = equals(this.r2(), other.r2());
|
|
984
|
+
} else {
|
|
985
|
+
tmp_0 = false;
|
|
986
|
+
}
|
|
987
|
+
tmp = tmp_0;
|
|
988
|
+
} else {
|
|
989
|
+
tmp = false;
|
|
990
|
+
}
|
|
991
|
+
return tmp;
|
|
992
|
+
};
|
|
993
|
+
protoOf(sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0_0).hashCode = function () {
|
|
994
|
+
return hashCode(this.r2());
|
|
995
|
+
};
|
|
996
|
+
function ChronometerFactory$Companion$adaptive$lambda($timeline, $policy) {
|
|
997
|
+
return function (it) {
|
|
998
|
+
return new AdaptiveChronometer($timeline, it.ld_1, $policy);
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
function ChronometerFactory$Companion$childrenOf$lambda($parent) {
|
|
1002
|
+
return function (it) {
|
|
1003
|
+
return $parent.l10(it.ld_1);
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
function Companion_4() {
|
|
1007
|
+
}
|
|
1008
|
+
protoOf(Companion_4).m10 = function (policy, timeline) {
|
|
1009
|
+
var tmp = ChronometerFactory$Companion$adaptive$lambda(timeline, policy);
|
|
1010
|
+
return new sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0(tmp);
|
|
1011
|
+
};
|
|
1012
|
+
protoOf(Companion_4).n10 = function (policy, timeline, $super) {
|
|
1013
|
+
policy = policy === VOID ? Companion_getInstance_6().b10_1 : policy;
|
|
1014
|
+
timeline = timeline === VOID ? Companion_instance_5.o10() : timeline;
|
|
1015
|
+
return $super === VOID ? this.m10(policy, timeline) : $super.m10.call(this, policy, timeline);
|
|
1016
|
+
};
|
|
1017
|
+
protoOf(Companion_4).p10 = function (parent) {
|
|
1018
|
+
var tmp = ChronometerFactory$Companion$childrenOf$lambda(parent);
|
|
1019
|
+
return new sam$it_unibo_tuprolog_utils_time_ChronometerFactory$0_0(tmp);
|
|
1020
|
+
};
|
|
1021
|
+
protoOf(Companion_4).q10 = function () {
|
|
1022
|
+
return this.n10();
|
|
1023
|
+
};
|
|
1024
|
+
var Companion_instance_4;
|
|
1025
|
+
function Companion_getInstance_7() {
|
|
1026
|
+
return Companion_instance_4;
|
|
1027
|
+
}
|
|
1028
|
+
function ChronometerFactory() {
|
|
1029
|
+
}
|
|
1030
|
+
function Companion_5() {
|
|
1031
|
+
}
|
|
1032
|
+
protoOf(Companion_5).o10 = function () {
|
|
1033
|
+
return SystemTimeline_instance;
|
|
1034
|
+
};
|
|
1035
|
+
var Companion_instance_5;
|
|
1036
|
+
function Companion_getInstance_8() {
|
|
1037
|
+
return Companion_instance_5;
|
|
1038
|
+
}
|
|
1039
|
+
function AbstractChronometer(timeline, timeout, start, expired, scope) {
|
|
1040
|
+
this.r10_1 = timeline;
|
|
1041
|
+
this.s10_1 = scope;
|
|
1042
|
+
// Inline function 'kotlin.require' call
|
|
1043
|
+
if (!!Duration__isNegative_impl_pbysfa(timeout)) {
|
|
1044
|
+
var message = "The timeout can't be negative: " + Duration__toString_impl_8d916b(timeout);
|
|
1045
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1046
|
+
}
|
|
1047
|
+
this.t10_1 = timeout;
|
|
1048
|
+
this.u10_1 = Duration__isInfinite_impl_tsn9y3(timeout);
|
|
1049
|
+
var tmp = this;
|
|
1050
|
+
tmp.v10_1 = start == null ? this.x10() : start;
|
|
1051
|
+
this.w10_1 = expired;
|
|
1052
|
+
}
|
|
1053
|
+
protoOf(AbstractChronometer).y10 = function () {
|
|
1054
|
+
return this.t10_1;
|
|
1055
|
+
};
|
|
1056
|
+
protoOf(AbstractChronometer).z10 = function () {
|
|
1057
|
+
return this.v10_1;
|
|
1058
|
+
};
|
|
1059
|
+
protoOf(AbstractChronometer).a11 = function () {
|
|
1060
|
+
return this.w10_1;
|
|
1061
|
+
};
|
|
1062
|
+
protoOf(AbstractChronometer).x10 = function () {
|
|
1063
|
+
return this.r10_1.b11().fd();
|
|
1064
|
+
};
|
|
1065
|
+
protoOf(AbstractChronometer).c11 = function (mark) {
|
|
1066
|
+
return mark.ql(this.v10_1);
|
|
1067
|
+
};
|
|
1068
|
+
protoOf(AbstractChronometer).d11 = function (mark) {
|
|
1069
|
+
if (!this.w10_1 && Duration__compareTo_impl_pchp0f(this.c11(mark), this.t10_1) > 0) {
|
|
1070
|
+
this.w10_1 = true;
|
|
1071
|
+
}
|
|
1072
|
+
return this.w10_1;
|
|
1073
|
+
};
|
|
1074
|
+
protoOf(AbstractChronometer).e11 = function () {
|
|
1075
|
+
return this.w10_1 ? true : this.u10_1 ? false : this.d11(this.x10());
|
|
1076
|
+
};
|
|
1077
|
+
protoOf(AbstractChronometer).f11 = function () {
|
|
1078
|
+
return this.c11(this.x10());
|
|
1079
|
+
};
|
|
1080
|
+
protoOf(AbstractChronometer).g11 = function () {
|
|
1081
|
+
return this.u10_1 ? Companion_getInstance_1().nd_1 : coerceAtLeast(new Duration(Duration__minus_impl_q5cfm7(this.t10_1, this.f11())), new Duration(Companion_getInstance_1().md_1)).ld_1;
|
|
1082
|
+
};
|
|
1083
|
+
protoOf(AbstractChronometer).h11 = function (duration) {
|
|
1084
|
+
// Inline function 'kotlin.require' call
|
|
1085
|
+
if (!!Duration__isNegative_impl_pbysfa(duration)) {
|
|
1086
|
+
var message = "Can't sleep for a negative duration: " + Duration__toString_impl_8d916b(duration);
|
|
1087
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1088
|
+
}
|
|
1089
|
+
if (this.e11())
|
|
1090
|
+
return true;
|
|
1091
|
+
var wakeUp = Duration__plus_impl_yu9v8f(this.f11(), duration);
|
|
1092
|
+
while (true) {
|
|
1093
|
+
var now = this.f11();
|
|
1094
|
+
if (Duration__compareTo_impl_pchp0f(now, wakeUp) >= 0)
|
|
1095
|
+
return this.e11();
|
|
1096
|
+
var tmp;
|
|
1097
|
+
if (this.u10_1) {
|
|
1098
|
+
tmp = Companion_getInstance_1().nd_1;
|
|
1099
|
+
} else {
|
|
1100
|
+
var tmp_0 = Duration__minus_impl_q5cfm7(this.t10_1, now);
|
|
1101
|
+
// Inline function 'kotlin.time.Companion.nanoseconds' call
|
|
1102
|
+
Companion_getInstance_1();
|
|
1103
|
+
var tmp$ret$2 = toDuration(1, DurationUnit_NANOSECONDS_getInstance());
|
|
1104
|
+
tmp = Duration__plus_impl_yu9v8f(tmp_0, tmp$ret$2);
|
|
1105
|
+
}
|
|
1106
|
+
var untilExpiry = tmp;
|
|
1107
|
+
this.r10_1.i11(minOf(new Duration(Duration__minus_impl_q5cfm7(wakeUp, now)), new Duration(untilExpiry)).ld_1);
|
|
1108
|
+
if (this.e11())
|
|
1109
|
+
return true;
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
protoOf(AbstractChronometer).j11 = function () {
|
|
1113
|
+
var tmp0_safe_receiver = this.s10_1;
|
|
1114
|
+
var parent = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k11_1;
|
|
1115
|
+
if (this.u10_1 && (this.s10_1 == null || (Duration__isInfinite_impl_tsn9y3(this.s10_1.l11_1) && Duration__isInfinite_impl_tsn9y3(ensureNotNull(parent).y10()))))
|
|
1116
|
+
return Unit_instance;
|
|
1117
|
+
var now = this.x10();
|
|
1118
|
+
var tmp;
|
|
1119
|
+
if (this.s10_1 == null) {
|
|
1120
|
+
tmp = to(new Duration(this.t10_1), false);
|
|
1121
|
+
} else {
|
|
1122
|
+
var tmp_0;
|
|
1123
|
+
if (parent instanceof AbstractChronometer) {
|
|
1124
|
+
tmp_0 = parent.r10_1 === this.r10_1;
|
|
1125
|
+
} else {
|
|
1126
|
+
tmp_0 = false;
|
|
1127
|
+
}
|
|
1128
|
+
if (tmp_0) {
|
|
1129
|
+
var left = parent.u10_1 ? Companion_getInstance_1().nd_1 : Duration__minus_impl_q5cfm7(parent.t10_1, parent.c11(now));
|
|
1130
|
+
tmp = to(coerceAtLeast(minOf(new Duration(this.s10_1.l11_1), new Duration(left)), new Duration(Companion_getInstance_1().md_1)), parent.d11(now));
|
|
1131
|
+
} else {
|
|
1132
|
+
tmp = to(minOf(new Duration(this.s10_1.l11_1), new Duration(ensureNotNull(parent).g11())), parent.e11());
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
var _destruct__k2r9zo = tmp;
|
|
1136
|
+
var newTimeout = _destruct__k2r9zo.cf().ld_1;
|
|
1137
|
+
var newExpired = _destruct__k2r9zo.df();
|
|
1138
|
+
this.v10_1 = now;
|
|
1139
|
+
this.w10_1 = newExpired;
|
|
1140
|
+
this.t10_1 = newTimeout;
|
|
1141
|
+
this.u10_1 = Duration__isInfinite_impl_tsn9y3(newTimeout);
|
|
1142
|
+
this.m11(now);
|
|
1143
|
+
};
|
|
1144
|
+
protoOf(AbstractChronometer).m11 = function (now) {
|
|
1145
|
+
return Unit_instance;
|
|
1146
|
+
};
|
|
1147
|
+
protoOf(AbstractChronometer).l10 = function (limit) {
|
|
1148
|
+
// Inline function 'kotlin.require' call
|
|
1149
|
+
if (!!Duration__isNegative_impl_pbysfa(limit)) {
|
|
1150
|
+
var message = "The limit can't be negative: " + Duration__toString_impl_8d916b(limit);
|
|
1151
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1152
|
+
}
|
|
1153
|
+
var now = this.x10();
|
|
1154
|
+
var left = this.u10_1 ? Companion_getInstance_1().nd_1 : Duration__minus_impl_q5cfm7(this.t10_1, this.c11(now));
|
|
1155
|
+
return this.n11(coerceAtLeast(minOf(new Duration(limit), new Duration(left)), new Duration(Companion_getInstance_1().md_1)).ld_1, now, this.d11(now), new ChildScope(this, limit));
|
|
1156
|
+
};
|
|
1157
|
+
protoOf(AbstractChronometer).toString = function () {
|
|
1158
|
+
return '' + getKClassFromExpression(this).t9() + '(timeout=' + Duration__toString_impl_8d916b(this.t10_1) + ', expired=' + this.w10_1 + ', timeline=' + toString(this.r10_1) + ')';
|
|
1159
|
+
};
|
|
1160
|
+
function Estimate(averageLeapNanos, leapsBetweenSamples) {
|
|
1161
|
+
this.p11_1 = averageLeapNanos;
|
|
1162
|
+
this.q11_1 = leapsBetweenSamples;
|
|
1163
|
+
}
|
|
1164
|
+
function sample($this, estimating) {
|
|
1165
|
+
var now = $this.x10();
|
|
1166
|
+
if ($this.d11(now))
|
|
1167
|
+
return true;
|
|
1168
|
+
if (estimating && $this.z11_1 > 0n) {
|
|
1169
|
+
var observed = toNumber(_Duration___get_inWholeNanoseconds__impl__r5x4mr(now.ql($this.y11_1))) / toNumber($this.z11_1);
|
|
1170
|
+
var tmp = $this;
|
|
1171
|
+
var tmp_0;
|
|
1172
|
+
if ($this.c12_1 < 0) {
|
|
1173
|
+
tmp_0 = observed;
|
|
1174
|
+
} else {
|
|
1175
|
+
tmp_0 = $this.x11_1.h10_1 * observed + (1 - $this.x11_1.h10_1) * $this.c12_1;
|
|
1176
|
+
}
|
|
1177
|
+
tmp.c12_1 = tmp_0;
|
|
1178
|
+
}
|
|
1179
|
+
plan($this, now);
|
|
1343
1180
|
return false;
|
|
1181
|
+
}
|
|
1182
|
+
function plan($this, now) {
|
|
1183
|
+
$this.y11_1 = now;
|
|
1184
|
+
$this.z11_1 = 0n;
|
|
1185
|
+
var window_0 = minOf(new Duration($this.x11_1.c10_1), new Duration(Duration__times_impl_sfuzvp(Duration__minus_impl_q5cfm7($this.t10_1, $this.c11(now)), $this.x11_1.d10_1))).ld_1;
|
|
1186
|
+
var tmp;
|
|
1187
|
+
if ($this.c12_1 <= 0) {
|
|
1188
|
+
tmp = 9223372036854775807n;
|
|
1189
|
+
} else {
|
|
1190
|
+
var tmp0 = _Duration___get_inWholeNanoseconds__impl__r5x4mr(window_0);
|
|
1191
|
+
// Inline function 'kotlin.Long.div' call
|
|
1192
|
+
var other = $this.c12_1;
|
|
1193
|
+
var tmp$ret$0 = toNumber(tmp0) / other;
|
|
1194
|
+
tmp = numberToLong(tmp$ret$0);
|
|
1195
|
+
}
|
|
1196
|
+
var fitting = tmp;
|
|
1197
|
+
var tmp_0;
|
|
1198
|
+
if ($this.a12_1 > divide(9223372036854775807n, $this.x11_1.g10_1)) {
|
|
1199
|
+
tmp_0 = 9223372036854775807n;
|
|
1200
|
+
} else {
|
|
1201
|
+
tmp_0 = multiply($this.a12_1, $this.x11_1.g10_1);
|
|
1202
|
+
}
|
|
1203
|
+
var growthCap = tmp_0;
|
|
1204
|
+
var tmp_1 = $this;
|
|
1205
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1206
|
+
var tmp$ret$1 = fitting <= growthCap ? fitting : growthCap;
|
|
1207
|
+
tmp_1.a12_1 = coerceIn(tmp$ret$1, $this.x11_1.e10_1, $this.x11_1.f10_1);
|
|
1208
|
+
$this.b12_1 = $this.a12_1;
|
|
1209
|
+
}
|
|
1210
|
+
function Companion_6() {
|
|
1211
|
+
this.d12_1 = -1.0;
|
|
1212
|
+
}
|
|
1213
|
+
var Companion_instance_6;
|
|
1214
|
+
function Companion_getInstance_9() {
|
|
1215
|
+
return Companion_instance_6;
|
|
1216
|
+
}
|
|
1217
|
+
function AdaptiveChronometer(timeline, timeout, policy, start, expired, scope, inheritedEstimate) {
|
|
1218
|
+
start = start === VOID ? null : start;
|
|
1219
|
+
expired = expired === VOID ? false : expired;
|
|
1220
|
+
scope = scope === VOID ? null : scope;
|
|
1221
|
+
inheritedEstimate = inheritedEstimate === VOID ? null : inheritedEstimate;
|
|
1222
|
+
AbstractChronometer.call(this, timeline, timeout, start, expired, scope);
|
|
1223
|
+
this.x11_1 = policy;
|
|
1224
|
+
this.y11_1 = this.z10();
|
|
1225
|
+
this.z11_1 = 0n;
|
|
1226
|
+
var tmp = this;
|
|
1227
|
+
var tmp1_elvis_lhs = inheritedEstimate == null ? null : inheritedEstimate.q11_1;
|
|
1228
|
+
tmp.a12_1 = tmp1_elvis_lhs == null ? this.x11_1.e10_1 : tmp1_elvis_lhs;
|
|
1229
|
+
this.b12_1 = this.x11_1.e10_1;
|
|
1230
|
+
var tmp_0 = this;
|
|
1231
|
+
var tmp1_elvis_lhs_0 = inheritedEstimate == null ? null : inheritedEstimate.p11_1;
|
|
1232
|
+
tmp_0.c12_1 = tmp1_elvis_lhs_0 == null ? -1.0 : tmp1_elvis_lhs_0;
|
|
1233
|
+
if (!(inheritedEstimate == null) && this.c12_1 >= 0 && !this.u10_1) {
|
|
1234
|
+
plan(this, this.z10());
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
protoOf(AdaptiveChronometer).o11 = function () {
|
|
1238
|
+
if (this.a11())
|
|
1239
|
+
return true;
|
|
1240
|
+
if (this.u10_1)
|
|
1241
|
+
return false;
|
|
1242
|
+
var _unary__edvuaz = this.z11_1;
|
|
1243
|
+
this.z11_1 = add(_unary__edvuaz, get_ONE());
|
|
1244
|
+
this.b12_1 = subtract(this.b12_1, get_ONE());
|
|
1245
|
+
if (this.b12_1 > 0n)
|
|
1246
|
+
return false;
|
|
1247
|
+
return sample(this, true);
|
|
1344
1248
|
};
|
|
1345
|
-
function
|
|
1346
|
-
|
|
1249
|
+
protoOf(AdaptiveChronometer).e11 = function () {
|
|
1250
|
+
if (this.a11())
|
|
1251
|
+
return true;
|
|
1252
|
+
if (this.u10_1)
|
|
1253
|
+
return false;
|
|
1254
|
+
return sample(this, false);
|
|
1255
|
+
};
|
|
1256
|
+
protoOf(AdaptiveChronometer).m11 = function (now) {
|
|
1257
|
+
if (this.c12_1 < 0 || this.u10_1) {
|
|
1258
|
+
this.y11_1 = now;
|
|
1259
|
+
this.z11_1 = 0n;
|
|
1260
|
+
this.a12_1 = this.x11_1.e10_1;
|
|
1261
|
+
this.b12_1 = this.x11_1.e10_1;
|
|
1262
|
+
} else {
|
|
1263
|
+
plan(this, now);
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
protoOf(AdaptiveChronometer).n11 = function (timeout, start, expired, scope) {
|
|
1267
|
+
return new AdaptiveChronometer(this.r10_1, timeout, this.x11_1, start, expired, scope, new Estimate(this.c12_1, this.a12_1));
|
|
1268
|
+
};
|
|
1269
|
+
function ChildScope(parent, limit) {
|
|
1270
|
+
this.k11_1 = parent;
|
|
1271
|
+
this.l11_1 = limit;
|
|
1347
1272
|
}
|
|
1348
|
-
function
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1273
|
+
protoOf(ChildScope).toString = function () {
|
|
1274
|
+
return 'ChildScope(parent=' + toString(this.k11_1) + ', limit=' + Duration__toString_impl_8d916b(this.l11_1) + ')';
|
|
1275
|
+
};
|
|
1276
|
+
protoOf(ChildScope).hashCode = function () {
|
|
1277
|
+
var result = hashCode(this.k11_1);
|
|
1278
|
+
result = imul(result, 31) + Duration__hashCode_impl_u4exz6(this.l11_1) | 0;
|
|
1279
|
+
return result;
|
|
1280
|
+
};
|
|
1281
|
+
protoOf(ChildScope).equals = function (other) {
|
|
1282
|
+
if (this === other)
|
|
1283
|
+
return true;
|
|
1284
|
+
if (!(other instanceof ChildScope))
|
|
1285
|
+
return false;
|
|
1286
|
+
if (!equals(this.k11_1, other.k11_1))
|
|
1287
|
+
return false;
|
|
1288
|
+
if (!equals(new Duration(this.l11_1), new Duration(other.l11_1)))
|
|
1289
|
+
return false;
|
|
1290
|
+
return true;
|
|
1291
|
+
};
|
|
1292
|
+
function SystemTimeline() {
|
|
1354
1293
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1294
|
+
protoOf(SystemTimeline).b11 = function () {
|
|
1295
|
+
return Monotonic_instance;
|
|
1296
|
+
};
|
|
1297
|
+
protoOf(SystemTimeline).i11 = function (duration) {
|
|
1298
|
+
return blockFor(duration);
|
|
1299
|
+
};
|
|
1300
|
+
protoOf(SystemTimeline).toString = function () {
|
|
1301
|
+
return 'SystemTimeline';
|
|
1302
|
+
};
|
|
1303
|
+
var SystemTimeline_instance;
|
|
1304
|
+
function SystemTimeline_getInstance() {
|
|
1305
|
+
return SystemTimeline_instance;
|
|
1306
|
+
}
|
|
1307
|
+
function dequeOf(items) {
|
|
1308
|
+
return mutableListOf(items.slice());
|
|
1357
1309
|
}
|
|
1358
1310
|
function takeFirst(_this__u8e3s4) {
|
|
1359
1311
|
if (_this__u8e3s4.i())
|
|
@@ -1362,17 +1314,6 @@
|
|
|
1362
1314
|
_this__u8e3s4.q3(0);
|
|
1363
1315
|
return first;
|
|
1364
1316
|
}
|
|
1365
|
-
function addFirst(_this__u8e3s4, item) {
|
|
1366
|
-
_this__u8e3s4.b4(0, item);
|
|
1367
|
-
}
|
|
1368
|
-
function addFirst_0(_this__u8e3s4, items) {
|
|
1369
|
-
var i = _this__u8e3s4.g2();
|
|
1370
|
-
var _iterator__ex2g4s = items.n();
|
|
1371
|
-
while (_iterator__ex2g4s.q()) {
|
|
1372
|
-
var item = _iterator__ex2g4s.r();
|
|
1373
|
-
i.c4(item);
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
1317
|
function synchronizedOn(obj, action) {
|
|
1377
1318
|
return action();
|
|
1378
1319
|
}
|
|
@@ -1380,66 +1321,60 @@
|
|
|
1380
1321
|
var it = _this__u8e3s4;
|
|
1381
1322
|
return it;
|
|
1382
1323
|
}
|
|
1324
|
+
function formatLocalTimestamp(epochMilliseconds) {
|
|
1325
|
+
var date = new Date(toNumber(epochMilliseconds));
|
|
1326
|
+
return '' + date.getFullYear() + '-' + formatLocalTimestamp$pad(date.getMonth() + 1 | 0) + '-' + formatLocalTimestamp$pad(date.getDate()) + ' ' + (formatLocalTimestamp$pad(date.getHours()) + ':' + formatLocalTimestamp$pad(date.getMinutes()) + ':' + formatLocalTimestamp$pad(date.getSeconds()));
|
|
1327
|
+
}
|
|
1328
|
+
function formatLocalTimestamp$pad(value) {
|
|
1329
|
+
return padStart(value.toString(), 2, _Char___init__impl__6a9atx(48));
|
|
1330
|
+
}
|
|
1331
|
+
function blockFor(duration) {
|
|
1332
|
+
if (!Duration__isPositive_impl_tvkkt2(duration))
|
|
1333
|
+
return Unit_instance;
|
|
1334
|
+
var wakeUp = ValueTimeMark__plus_impl_l3v2m0(Monotonic_instance.ed(), duration);
|
|
1335
|
+
while (ValueTimeMark__hasNotPassedNow_impl_z1dcqz(wakeUp)) {
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1383
1338
|
//region block: post-declaration
|
|
1384
1339
|
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1385
1340
|
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1386
|
-
protoOf(
|
|
1387
|
-
protoOf(IntIndexedImpl).xr = compareTo_0;
|
|
1388
|
-
protoOf(LongIndexedImpl).rt = compareTo_1;
|
|
1389
|
-
protoOf(SimpleLRUCache).er = getOrSet;
|
|
1341
|
+
protoOf(SimpleLRUCache).ux = getOrSet;
|
|
1390
1342
|
//endregion
|
|
1391
1343
|
//region block: init
|
|
1392
1344
|
Companion_instance = new Companion();
|
|
1393
|
-
Companion_instance_0 = new Companion_0();
|
|
1394
1345
|
Companion_instance_1 = new Companion_1();
|
|
1395
1346
|
Companion_instance_2 = new Companion_2();
|
|
1396
|
-
|
|
1347
|
+
Companion_instance_4 = new Companion_4();
|
|
1397
1348
|
Companion_instance_5 = new Companion_5();
|
|
1398
1349
|
Companion_instance_6 = new Companion_6();
|
|
1350
|
+
SystemTimeline_instance = new SystemTimeline();
|
|
1399
1351
|
//endregion
|
|
1400
1352
|
//region block: exports
|
|
1401
1353
|
_.$_$ = _.$_$ || {};
|
|
1402
|
-
_.$_$.a =
|
|
1403
|
-
_.$_$.b =
|
|
1354
|
+
_.$_$.a = Companion_instance_4;
|
|
1355
|
+
_.$_$.b = Companion_instance;
|
|
1404
1356
|
_.$_$.c = Companion_instance_1;
|
|
1405
|
-
_.$_$.d =
|
|
1406
|
-
_.$_$.e =
|
|
1407
|
-
_.$_$.f =
|
|
1408
|
-
_.$_$.g =
|
|
1409
|
-
_.$_$.h =
|
|
1410
|
-
_.$_$.i =
|
|
1411
|
-
_.$_$.j =
|
|
1412
|
-
_.$_$.k =
|
|
1413
|
-
_.$_$.l =
|
|
1414
|
-
_.$_$.m =
|
|
1415
|
-
_.$_$.n =
|
|
1416
|
-
_.$_$.o =
|
|
1417
|
-
_.$_$.p =
|
|
1418
|
-
_.$_$.q =
|
|
1419
|
-
_.$_$.r =
|
|
1420
|
-
_.$_$.s =
|
|
1421
|
-
_.$_$.t =
|
|
1422
|
-
_.$_$.u =
|
|
1423
|
-
_.$_$.v =
|
|
1424
|
-
_.$_$.w =
|
|
1425
|
-
_.$_$.x =
|
|
1426
|
-
_.$_$.y = dequeOf_0;
|
|
1427
|
-
_.$_$.z = dequeOf;
|
|
1428
|
-
_.$_$.a1 = dropLast;
|
|
1429
|
-
_.$_$.b1 = forceCast;
|
|
1430
|
-
_.$_$.c1 = insertAt;
|
|
1431
|
-
_.$_$.d1 = itemWiseEquals_0;
|
|
1432
|
-
_.$_$.e1 = itemWiseEquals;
|
|
1433
|
-
_.$_$.f1 = itemWiseHashCode_0;
|
|
1434
|
-
_.$_$.g1 = itemWiseHashCode;
|
|
1435
|
-
_.$_$.h1 = itemWiseHashCode_1;
|
|
1436
|
-
_.$_$.i1 = mergeSequences;
|
|
1437
|
-
_.$_$.j1 = plus;
|
|
1438
|
-
_.$_$.k1 = setTags;
|
|
1439
|
-
_.$_$.l1 = setTag;
|
|
1440
|
-
_.$_$.m1 = synchronizedOnSelf;
|
|
1441
|
-
_.$_$.n1 = synchronizedOn;
|
|
1442
|
-
_.$_$.o1 = takeFirst;
|
|
1357
|
+
_.$_$.d = formatLocalTimestamp;
|
|
1358
|
+
_.$_$.e = castTo;
|
|
1359
|
+
_.$_$.f = Castable;
|
|
1360
|
+
_.$_$.g = NumberTypeTester;
|
|
1361
|
+
_.$_$.h = Some;
|
|
1362
|
+
_.$_$.i = containsTag;
|
|
1363
|
+
_.$_$.j = getTag;
|
|
1364
|
+
_.$_$.k = Taggable;
|
|
1365
|
+
_.$_$.l = buffered;
|
|
1366
|
+
_.$_$.m = cursor_0;
|
|
1367
|
+
_.$_$.n = cursor;
|
|
1368
|
+
_.$_$.o = cursor_1;
|
|
1369
|
+
_.$_$.p = dequeOf;
|
|
1370
|
+
_.$_$.q = forceCast;
|
|
1371
|
+
_.$_$.r = insertAt;
|
|
1372
|
+
_.$_$.s = itemWiseHashCode_0;
|
|
1373
|
+
_.$_$.t = itemWiseHashCode;
|
|
1374
|
+
_.$_$.u = setTags;
|
|
1375
|
+
_.$_$.v = setTag;
|
|
1376
|
+
_.$_$.w = synchronizedOnSelf;
|
|
1377
|
+
_.$_$.x = takeFirst;
|
|
1443
1378
|
//endregion
|
|
1444
1379
|
return _;
|
|
1445
1380
|
}));
|