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