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