@zenwave360/dsl 1.10.0-next.9.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +125 -112
- package/kotlin/antlr-kotlin-antlr-kotlin-runtime.mjs +1836 -1833
- package/kotlin/antlr-kotlin-antlr-kotlin-runtime.mjs.map +1 -1
- package/kotlin/dsl-kotlin.d.mts +1 -2
- package/kotlin/dsl-kotlin.mjs +5256 -5640
- package/kotlin/dsl-kotlin.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.mjs +147 -152
- package/kotlin/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -48,12 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
48
|
};
|
|
49
49
|
}(Math.log, Math.LN2);
|
|
50
50
|
}
|
|
51
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
-
position = position || 0;
|
|
54
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
-
}});
|
|
56
|
-
}
|
|
57
51
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
58
52
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
59
53
|
var subjectString = this.toString();
|
|
@@ -65,6 +59,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
65
59
|
return lastIndex !== -1 && lastIndex === position;
|
|
66
60
|
}});
|
|
67
61
|
}
|
|
62
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
63
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
64
|
+
position = position || 0;
|
|
65
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
66
|
+
}});
|
|
67
|
+
}
|
|
68
68
|
//endregion
|
|
69
69
|
//region block: imports
|
|
70
70
|
var imul_0 = Math.imul;
|
|
@@ -269,16 +269,6 @@ function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncate
|
|
|
269
269
|
transform = transform === VOID ? null : transform;
|
|
270
270
|
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
271
271
|
}
|
|
272
|
-
function toSet(_this__u8e3s4) {
|
|
273
|
-
switch (_this__u8e3s4.length) {
|
|
274
|
-
case 0:
|
|
275
|
-
return emptySet();
|
|
276
|
-
case 1:
|
|
277
|
-
return setOf(_this__u8e3s4[0]);
|
|
278
|
-
default:
|
|
279
|
-
return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.length)));
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
272
|
function indexOf(_this__u8e3s4, element) {
|
|
283
273
|
if (element == null) {
|
|
284
274
|
var inductionVariable = 0;
|
|
@@ -307,9 +297,6 @@ function indexOf(_this__u8e3s4, element) {
|
|
|
307
297
|
}
|
|
308
298
|
return -1;
|
|
309
299
|
}
|
|
310
|
-
function filterNotNull(_this__u8e3s4) {
|
|
311
|
-
return filterNotNullTo(_this__u8e3s4, ArrayList_init_$Create$());
|
|
312
|
-
}
|
|
313
300
|
function get_lastIndex(_this__u8e3s4) {
|
|
314
301
|
return _this__u8e3s4.length - 1 | 0;
|
|
315
302
|
}
|
|
@@ -352,18 +339,6 @@ function toCollection(_this__u8e3s4, destination) {
|
|
|
352
339
|
}
|
|
353
340
|
return destination;
|
|
354
341
|
}
|
|
355
|
-
function filterNotNullTo(_this__u8e3s4, destination) {
|
|
356
|
-
var inductionVariable = 0;
|
|
357
|
-
var last = _this__u8e3s4.length;
|
|
358
|
-
while (inductionVariable < last) {
|
|
359
|
-
var element = _this__u8e3s4[inductionVariable];
|
|
360
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
361
|
-
if (!(element == null)) {
|
|
362
|
-
destination.f(element);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
return destination;
|
|
366
|
-
}
|
|
367
342
|
function single(_this__u8e3s4) {
|
|
368
343
|
var tmp;
|
|
369
344
|
switch (_this__u8e3s4.length) {
|
|
@@ -464,7 +439,7 @@ function asSequence(_this__u8e3s4) {
|
|
|
464
439
|
function toMutableList(_this__u8e3s4) {
|
|
465
440
|
return ArrayList_init_$Create$_1(_this__u8e3s4);
|
|
466
441
|
}
|
|
467
|
-
function
|
|
442
|
+
function toSet(_this__u8e3s4) {
|
|
468
443
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
469
444
|
var tmp;
|
|
470
445
|
switch (_this__u8e3s4.j()) {
|
|
@@ -552,6 +527,23 @@ function toList(_this__u8e3s4) {
|
|
|
552
527
|
}
|
|
553
528
|
return optimizeReadOnlyList(toMutableList_0(_this__u8e3s4));
|
|
554
529
|
}
|
|
530
|
+
function plus(_this__u8e3s4, elements) {
|
|
531
|
+
if (isInterface(elements, Collection)) {
|
|
532
|
+
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.j() | 0);
|
|
533
|
+
result.p(_this__u8e3s4);
|
|
534
|
+
result.p(elements);
|
|
535
|
+
return result;
|
|
536
|
+
} else {
|
|
537
|
+
var result_0 = ArrayList_init_$Create$_1(_this__u8e3s4);
|
|
538
|
+
addAll(result_0, elements);
|
|
539
|
+
return result_0;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
function first(_this__u8e3s4) {
|
|
543
|
+
if (_this__u8e3s4.l())
|
|
544
|
+
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
545
|
+
return _this__u8e3s4.k(0);
|
|
546
|
+
}
|
|
555
547
|
function drop(_this__u8e3s4, n) {
|
|
556
548
|
// Inline function 'kotlin.require' call
|
|
557
549
|
if (!(n >= 0)) {
|
|
@@ -581,7 +573,7 @@ function drop(_this__u8e3s4, n) {
|
|
|
581
573
|
while (inductionVariable < last_0);
|
|
582
574
|
} else {
|
|
583
575
|
// Inline function 'kotlin.collections.iterator' call
|
|
584
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
576
|
+
var _iterator__ex2g4s = _this__u8e3s4.q(n);
|
|
585
577
|
while (_iterator__ex2g4s.h()) {
|
|
586
578
|
var item = _iterator__ex2g4s.i();
|
|
587
579
|
list.f(item);
|
|
@@ -604,23 +596,6 @@ function drop(_this__u8e3s4, n) {
|
|
|
604
596
|
}
|
|
605
597
|
return optimizeReadOnlyList(list);
|
|
606
598
|
}
|
|
607
|
-
function plus(_this__u8e3s4, elements) {
|
|
608
|
-
if (isInterface(elements, Collection)) {
|
|
609
|
-
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.j() | 0);
|
|
610
|
-
result.q(_this__u8e3s4);
|
|
611
|
-
result.q(elements);
|
|
612
|
-
return result;
|
|
613
|
-
} else {
|
|
614
|
-
var result_0 = ArrayList_init_$Create$_1(_this__u8e3s4);
|
|
615
|
-
addAll(result_0, elements);
|
|
616
|
-
return result_0;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
function first(_this__u8e3s4) {
|
|
620
|
-
if (_this__u8e3s4.l())
|
|
621
|
-
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
622
|
-
return _this__u8e3s4.k(0);
|
|
623
|
-
}
|
|
624
599
|
function toCollection_0(_this__u8e3s4, destination) {
|
|
625
600
|
var _iterator__ex2g4s = _this__u8e3s4.g();
|
|
626
601
|
while (_iterator__ex2g4s.h()) {
|
|
@@ -2236,9 +2211,6 @@ function decodeVarLenBase64(base64, fromBase64, resultLength) {
|
|
|
2236
2211
|
}
|
|
2237
2212
|
return result;
|
|
2238
2213
|
}
|
|
2239
|
-
function isDigitImpl(_this__u8e3s4) {
|
|
2240
|
-
return digitToIntImpl(_this__u8e3s4) >= 0;
|
|
2241
|
-
}
|
|
2242
2214
|
function digitToIntImpl(_this__u8e3s4) {
|
|
2243
2215
|
// Inline function 'kotlin.code' call
|
|
2244
2216
|
var ch = Char__toInt_impl_vasixd(_this__u8e3s4);
|
|
@@ -2561,7 +2533,7 @@ function collectionsSort(list, comparator) {
|
|
|
2561
2533
|
function AbstractMutableCollection() {
|
|
2562
2534
|
AbstractCollection.call(this);
|
|
2563
2535
|
}
|
|
2564
|
-
protoOf(AbstractMutableCollection).
|
|
2536
|
+
protoOf(AbstractMutableCollection).p = function (elements) {
|
|
2565
2537
|
this.v2();
|
|
2566
2538
|
var modified = false;
|
|
2567
2539
|
var _iterator__ex2g4s = elements.g();
|
|
@@ -2678,13 +2650,13 @@ protoOf(AbstractMutableList).n3 = function (element) {
|
|
|
2678
2650
|
return tmp$ret$1;
|
|
2679
2651
|
};
|
|
2680
2652
|
protoOf(AbstractMutableList).z1 = function () {
|
|
2681
|
-
return this.
|
|
2653
|
+
return this.q(0);
|
|
2682
2654
|
};
|
|
2683
|
-
protoOf(AbstractMutableList).
|
|
2655
|
+
protoOf(AbstractMutableList).q = function (index) {
|
|
2684
2656
|
return new ListIteratorImpl(this, index);
|
|
2685
2657
|
};
|
|
2686
2658
|
protoOf(AbstractMutableList).m3 = function (fromIndex, toIndex) {
|
|
2687
|
-
var iterator = this.
|
|
2659
|
+
var iterator = this.q(fromIndex);
|
|
2688
2660
|
// Inline function 'kotlin.repeat' call
|
|
2689
2661
|
var times = toIndex - fromIndex | 0;
|
|
2690
2662
|
var inductionVariable = 0;
|
|
@@ -2803,7 +2775,7 @@ function Companion_2() {
|
|
|
2803
2775
|
var tmp = this;
|
|
2804
2776
|
// Inline function 'kotlin.also' call
|
|
2805
2777
|
var this_0 = ArrayList_init_$Create$_0(0);
|
|
2806
|
-
this_0.
|
|
2778
|
+
this_0.o_1 = true;
|
|
2807
2779
|
tmp.b4_1 = this_0;
|
|
2808
2780
|
}
|
|
2809
2781
|
var Companion_instance_2;
|
|
@@ -2847,7 +2819,7 @@ function ArrayList_init_$Create$_1(elements) {
|
|
|
2847
2819
|
function increaseLength($this, amount) {
|
|
2848
2820
|
var previous = $this.j();
|
|
2849
2821
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2850
|
-
$this.
|
|
2822
|
+
$this.n_1.length = $this.j() + amount | 0;
|
|
2851
2823
|
return previous;
|
|
2852
2824
|
}
|
|
2853
2825
|
function rangeCheck($this, index) {
|
|
@@ -2863,39 +2835,39 @@ function insertionRangeCheck($this, index) {
|
|
|
2863
2835
|
function ArrayList(array) {
|
|
2864
2836
|
Companion_getInstance_2();
|
|
2865
2837
|
AbstractMutableList.call(this);
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2838
|
+
this.n_1 = array;
|
|
2839
|
+
this.o_1 = false;
|
|
2868
2840
|
}
|
|
2869
2841
|
protoOf(ArrayList).j = function () {
|
|
2870
|
-
return this.
|
|
2842
|
+
return this.n_1.length;
|
|
2871
2843
|
};
|
|
2872
2844
|
protoOf(ArrayList).k = function (index) {
|
|
2873
|
-
var tmp = this.
|
|
2845
|
+
var tmp = this.n_1[rangeCheck(this, index)];
|
|
2874
2846
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2875
2847
|
};
|
|
2876
2848
|
protoOf(ArrayList).w1 = function (index, element) {
|
|
2877
2849
|
this.v2();
|
|
2878
2850
|
rangeCheck(this, index);
|
|
2879
2851
|
// Inline function 'kotlin.apply' call
|
|
2880
|
-
var this_0 = this.
|
|
2881
|
-
this.
|
|
2852
|
+
var this_0 = this.n_1[index];
|
|
2853
|
+
this.n_1[index] = element;
|
|
2882
2854
|
var tmp = this_0;
|
|
2883
2855
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2884
2856
|
};
|
|
2885
2857
|
protoOf(ArrayList).f = function (element) {
|
|
2886
2858
|
this.v2();
|
|
2887
2859
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2888
|
-
this.
|
|
2860
|
+
this.n_1.push(element);
|
|
2889
2861
|
this.a3_1 = this.a3_1 + 1 | 0;
|
|
2890
2862
|
return true;
|
|
2891
2863
|
};
|
|
2892
2864
|
protoOf(ArrayList).x1 = function (index, element) {
|
|
2893
2865
|
this.v2();
|
|
2894
2866
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2895
|
-
this.
|
|
2867
|
+
this.n_1.splice(insertionRangeCheck(this, index), 0, element);
|
|
2896
2868
|
this.a3_1 = this.a3_1 + 1 | 0;
|
|
2897
2869
|
};
|
|
2898
|
-
protoOf(ArrayList).
|
|
2870
|
+
protoOf(ArrayList).p = function (elements) {
|
|
2899
2871
|
this.v2();
|
|
2900
2872
|
if (elements.l())
|
|
2901
2873
|
return false;
|
|
@@ -2908,7 +2880,7 @@ protoOf(ArrayList).q = function (elements) {
|
|
|
2908
2880
|
var _unary__edvuaz = index;
|
|
2909
2881
|
index = _unary__edvuaz + 1 | 0;
|
|
2910
2882
|
var index_0 = checkIndexOverflow(_unary__edvuaz);
|
|
2911
|
-
this.
|
|
2883
|
+
this.n_1[offset + index_0 | 0] = item;
|
|
2912
2884
|
}
|
|
2913
2885
|
this.a3_1 = this.a3_1 + 1 | 0;
|
|
2914
2886
|
return true;
|
|
@@ -2920,10 +2892,10 @@ protoOf(ArrayList).y1 = function (index) {
|
|
|
2920
2892
|
var tmp;
|
|
2921
2893
|
if (index === get_lastIndex_0(this)) {
|
|
2922
2894
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2923
|
-
tmp = this.
|
|
2895
|
+
tmp = this.n_1.pop();
|
|
2924
2896
|
} else {
|
|
2925
2897
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2926
|
-
tmp = this.
|
|
2898
|
+
tmp = this.n_1.splice(index, 1)[0];
|
|
2927
2899
|
}
|
|
2928
2900
|
return tmp;
|
|
2929
2901
|
};
|
|
@@ -2931,29 +2903,29 @@ protoOf(ArrayList).m3 = function (fromIndex, toIndex) {
|
|
|
2931
2903
|
this.v2();
|
|
2932
2904
|
this.a3_1 = this.a3_1 + 1 | 0;
|
|
2933
2905
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2934
|
-
this.
|
|
2906
|
+
this.n_1.splice(fromIndex, toIndex - fromIndex | 0);
|
|
2935
2907
|
};
|
|
2936
2908
|
protoOf(ArrayList).v1 = function () {
|
|
2937
2909
|
this.v2();
|
|
2938
2910
|
var tmp = this;
|
|
2939
2911
|
// Inline function 'kotlin.emptyArray' call
|
|
2940
|
-
tmp.
|
|
2912
|
+
tmp.n_1 = [];
|
|
2941
2913
|
this.a3_1 = this.a3_1 + 1 | 0;
|
|
2942
2914
|
};
|
|
2943
2915
|
protoOf(ArrayList).n3 = function (element) {
|
|
2944
|
-
return indexOf(this.
|
|
2916
|
+
return indexOf(this.n_1, element);
|
|
2945
2917
|
};
|
|
2946
2918
|
protoOf(ArrayList).toString = function () {
|
|
2947
|
-
return arrayToString(this.
|
|
2919
|
+
return arrayToString(this.n_1);
|
|
2948
2920
|
};
|
|
2949
2921
|
protoOf(ArrayList).d4 = function () {
|
|
2950
|
-
return [].slice.call(this.
|
|
2922
|
+
return [].slice.call(this.n_1);
|
|
2951
2923
|
};
|
|
2952
2924
|
protoOf(ArrayList).toArray = function () {
|
|
2953
2925
|
return this.d4();
|
|
2954
2926
|
};
|
|
2955
2927
|
protoOf(ArrayList).v2 = function () {
|
|
2956
|
-
if (this.
|
|
2928
|
+
if (this.o_1)
|
|
2957
2929
|
throw UnsupportedOperationException_init_$Create$();
|
|
2958
2930
|
};
|
|
2959
2931
|
var _stableSortingIsSupported;
|
|
@@ -3166,7 +3138,7 @@ protoOf(HashMapKeys).j1 = function (element) {
|
|
|
3166
3138
|
protoOf(HashMapKeys).f = function (element) {
|
|
3167
3139
|
throw UnsupportedOperationException_init_$Create$();
|
|
3168
3140
|
};
|
|
3169
|
-
protoOf(HashMapKeys).
|
|
3141
|
+
protoOf(HashMapKeys).p = function (elements) {
|
|
3170
3142
|
throw UnsupportedOperationException_init_$Create$();
|
|
3171
3143
|
};
|
|
3172
3144
|
protoOf(HashMapKeys).g = function () {
|
|
@@ -3202,7 +3174,7 @@ protoOf(HashMapValues).f = function (element) {
|
|
|
3202
3174
|
protoOf(HashMapValues).r4 = function (elements) {
|
|
3203
3175
|
throw UnsupportedOperationException_init_$Create$();
|
|
3204
3176
|
};
|
|
3205
|
-
protoOf(HashMapValues).
|
|
3177
|
+
protoOf(HashMapValues).p = function (elements) {
|
|
3206
3178
|
return this.r4(elements);
|
|
3207
3179
|
};
|
|
3208
3180
|
protoOf(HashMapValues).g = function () {
|
|
@@ -3241,7 +3213,7 @@ protoOf(HashMapEntrySetBase).x4 = function (element) {
|
|
|
3241
3213
|
protoOf(HashMapEntrySetBase).f = function (element) {
|
|
3242
3214
|
return this.x4((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
|
|
3243
3215
|
};
|
|
3244
|
-
protoOf(HashMapEntrySetBase).
|
|
3216
|
+
protoOf(HashMapEntrySetBase).p = function (elements) {
|
|
3245
3217
|
throw UnsupportedOperationException_init_$Create$();
|
|
3246
3218
|
};
|
|
3247
3219
|
protoOf(HashMapEntrySetBase).k1 = function (elements) {
|
|
@@ -4974,15 +4946,6 @@ function uppercaseChar(_this__u8e3s4) {
|
|
|
4974
4946
|
function isHighSurrogate(_this__u8e3s4) {
|
|
4975
4947
|
return _Char___init__impl__6a9atx(55296) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(56319) : false;
|
|
4976
4948
|
}
|
|
4977
|
-
function isDigit(_this__u8e3s4) {
|
|
4978
|
-
if (_Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false) {
|
|
4979
|
-
return true;
|
|
4980
|
-
}
|
|
4981
|
-
if (Char__compareTo_impl_ypi4mb(_this__u8e3s4, _Char___init__impl__6a9atx(128)) < 0) {
|
|
4982
|
-
return false;
|
|
4983
|
-
}
|
|
4984
|
-
return isDigitImpl(_this__u8e3s4);
|
|
4985
|
-
}
|
|
4986
4949
|
function isLetter(_this__u8e3s4) {
|
|
4987
4950
|
if ((_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false)) {
|
|
4988
4951
|
return true;
|
|
@@ -5096,7 +5059,7 @@ function Regex$replace$lambda($replacement) {
|
|
|
5096
5059
|
function Regex(pattern, options) {
|
|
5097
5060
|
Companion_getInstance_4();
|
|
5098
5061
|
this.a9_1 = pattern;
|
|
5099
|
-
this.b9_1 =
|
|
5062
|
+
this.b9_1 = toSet(options);
|
|
5100
5063
|
this.c9_1 = new RegExp(pattern, toFlags(options, 'gu'));
|
|
5101
5064
|
this.d9_1 = null;
|
|
5102
5065
|
this.e9_1 = null;
|
|
@@ -5548,14 +5511,6 @@ function _init_properties_stringJs_kt__bg7zye() {
|
|
|
5548
5511
|
STRING_CASE_INSENSITIVE_ORDER = new sam$kotlin_Comparator$0(tmp);
|
|
5549
5512
|
}
|
|
5550
5513
|
}
|
|
5551
|
-
function replace(_this__u8e3s4, oldValue, newValue, ignoreCase) {
|
|
5552
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5553
|
-
var tmp2 = new RegExp(Companion_getInstance_4().y8(oldValue), ignoreCase ? 'gui' : 'gu');
|
|
5554
|
-
// Inline function 'kotlin.text.nativeReplace' call
|
|
5555
|
-
var replacement = Companion_getInstance_4().z8(newValue);
|
|
5556
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
5557
|
-
return _this__u8e3s4.replace(tmp2, replacement);
|
|
5558
|
-
}
|
|
5559
5514
|
function startsWith(_this__u8e3s4, prefix, ignoreCase) {
|
|
5560
5515
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5561
5516
|
if (!ignoreCase) {
|
|
@@ -5565,6 +5520,14 @@ function startsWith(_this__u8e3s4, prefix, ignoreCase) {
|
|
|
5565
5520
|
} else
|
|
5566
5521
|
return regionMatches(_this__u8e3s4, 0, prefix, 0, prefix.length, ignoreCase);
|
|
5567
5522
|
}
|
|
5523
|
+
function replace(_this__u8e3s4, oldValue, newValue, ignoreCase) {
|
|
5524
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5525
|
+
var tmp2 = new RegExp(Companion_getInstance_4().y8(oldValue), ignoreCase ? 'gui' : 'gu');
|
|
5526
|
+
// Inline function 'kotlin.text.nativeReplace' call
|
|
5527
|
+
var replacement = Companion_getInstance_4().z8(newValue);
|
|
5528
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5529
|
+
return _this__u8e3s4.replace(tmp2, replacement);
|
|
5530
|
+
}
|
|
5568
5531
|
function endsWith(_this__u8e3s4, suffix, ignoreCase) {
|
|
5569
5532
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5570
5533
|
if (!ignoreCase) {
|
|
@@ -5582,31 +5545,6 @@ function replace_0(_this__u8e3s4, oldChar, newChar, ignoreCase) {
|
|
|
5582
5545
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5583
5546
|
return _this__u8e3s4.replace(tmp2, replacement);
|
|
5584
5547
|
}
|
|
5585
|
-
function equals_0(_this__u8e3s4, other, ignoreCase) {
|
|
5586
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5587
|
-
if (_this__u8e3s4 == null)
|
|
5588
|
-
return other == null;
|
|
5589
|
-
if (other == null)
|
|
5590
|
-
return false;
|
|
5591
|
-
if (!ignoreCase)
|
|
5592
|
-
return _this__u8e3s4 == other;
|
|
5593
|
-
if (!(_this__u8e3s4.length === other.length))
|
|
5594
|
-
return false;
|
|
5595
|
-
var inductionVariable = 0;
|
|
5596
|
-
var last = _this__u8e3s4.length;
|
|
5597
|
-
if (inductionVariable < last)
|
|
5598
|
-
do {
|
|
5599
|
-
var index = inductionVariable;
|
|
5600
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
5601
|
-
var thisChar = charCodeAt(_this__u8e3s4, index);
|
|
5602
|
-
var otherChar = charCodeAt(other, index);
|
|
5603
|
-
if (!equals_1(thisChar, otherChar, ignoreCase)) {
|
|
5604
|
-
return false;
|
|
5605
|
-
}
|
|
5606
|
-
}
|
|
5607
|
-
while (inductionVariable < last);
|
|
5608
|
-
return true;
|
|
5609
|
-
}
|
|
5610
5548
|
function regionMatches(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
5611
5549
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5612
5550
|
return regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase);
|
|
@@ -5947,7 +5885,7 @@ function AbstractList() {
|
|
|
5947
5885
|
protoOf(AbstractList).g = function () {
|
|
5948
5886
|
return new IteratorImpl_0(this);
|
|
5949
5887
|
};
|
|
5950
|
-
protoOf(AbstractList).
|
|
5888
|
+
protoOf(AbstractList).q = function (index) {
|
|
5951
5889
|
return new ListIteratorImpl_0(this, index);
|
|
5952
5890
|
};
|
|
5953
5891
|
protoOf(AbstractList).equals = function (other) {
|
|
@@ -6507,7 +6445,7 @@ protoOf(ArrayDeque).x1 = function (index, element) {
|
|
|
6507
6445
|
}
|
|
6508
6446
|
this.ab_1 = this.ab_1 + 1 | 0;
|
|
6509
6447
|
};
|
|
6510
|
-
protoOf(ArrayDeque).
|
|
6448
|
+
protoOf(ArrayDeque).p = function (elements) {
|
|
6511
6449
|
if (elements.l())
|
|
6512
6450
|
return false;
|
|
6513
6451
|
registerModification_0(this);
|
|
@@ -6759,12 +6697,6 @@ function emptyList() {
|
|
|
6759
6697
|
function get_indices(_this__u8e3s4) {
|
|
6760
6698
|
return numberRangeToNumber(0, _this__u8e3s4.j() - 1 | 0);
|
|
6761
6699
|
}
|
|
6762
|
-
function listOfNotNull(element) {
|
|
6763
|
-
return !(element == null) ? listOf(element) : emptyList();
|
|
6764
|
-
}
|
|
6765
|
-
function listOfNotNull_0(elements) {
|
|
6766
|
-
return filterNotNull(elements);
|
|
6767
|
-
}
|
|
6768
6700
|
function EmptyList() {
|
|
6769
6701
|
EmptyList_instance = this;
|
|
6770
6702
|
this.kb_1 = new Long(-1478467534, -1720727600);
|
|
@@ -6816,7 +6748,7 @@ protoOf(EmptyList).k = function (index) {
|
|
|
6816
6748
|
protoOf(EmptyList).g = function () {
|
|
6817
6749
|
return EmptyIterator_instance;
|
|
6818
6750
|
};
|
|
6819
|
-
protoOf(EmptyList).
|
|
6751
|
+
protoOf(EmptyList).q = function (index) {
|
|
6820
6752
|
if (!(index === 0))
|
|
6821
6753
|
throw IndexOutOfBoundsException_init_$Create$_0('Index: ' + index);
|
|
6822
6754
|
return EmptyIterator_instance;
|
|
@@ -6969,7 +6901,7 @@ function hashMapOf(pairs) {
|
|
|
6969
6901
|
}
|
|
6970
6902
|
function addAll(_this__u8e3s4, elements) {
|
|
6971
6903
|
if (isInterface(elements, Collection))
|
|
6972
|
-
return _this__u8e3s4.
|
|
6904
|
+
return _this__u8e3s4.p(elements);
|
|
6973
6905
|
else {
|
|
6974
6906
|
var result = false;
|
|
6975
6907
|
var _iterator__ex2g4s = elements.g();
|
|
@@ -6991,7 +6923,7 @@ function asReversed(_this__u8e3s4) {
|
|
|
6991
6923
|
}
|
|
6992
6924
|
function ReversedList$listIterator$1(this$0, $index) {
|
|
6993
6925
|
this.wb_1 = this$0;
|
|
6994
|
-
this.vb_1 = this$0.yb_1.
|
|
6926
|
+
this.vb_1 = this$0.yb_1.q(reversePositionIndex(this$0, $index));
|
|
6995
6927
|
}
|
|
6996
6928
|
protoOf(ReversedList$listIterator$1).h = function () {
|
|
6997
6929
|
return this.vb_1.g3();
|
|
@@ -7044,12 +6976,12 @@ protoOf(ReversedList).x1 = function (index, element) {
|
|
|
7044
6976
|
return this.ac(index, (element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
7045
6977
|
};
|
|
7046
6978
|
protoOf(ReversedList).g = function () {
|
|
7047
|
-
return this.
|
|
6979
|
+
return this.q(0);
|
|
7048
6980
|
};
|
|
7049
6981
|
protoOf(ReversedList).z1 = function () {
|
|
7050
|
-
return this.
|
|
6982
|
+
return this.q(0);
|
|
7051
6983
|
};
|
|
7052
|
-
protoOf(ReversedList).
|
|
6984
|
+
protoOf(ReversedList).q = function (index) {
|
|
7053
6985
|
return new ReversedList$listIterator$1(this, index);
|
|
7054
6986
|
};
|
|
7055
6987
|
function reverseElementIndex(_this__u8e3s4, index) {
|
|
@@ -7168,9 +7100,6 @@ var EmptySequence_instance;
|
|
|
7168
7100
|
function EmptySequence_getInstance() {
|
|
7169
7101
|
return EmptySequence_instance;
|
|
7170
7102
|
}
|
|
7171
|
-
function setOf_0(elements) {
|
|
7172
|
-
return toSet(elements);
|
|
7173
|
-
}
|
|
7174
7103
|
function emptySet() {
|
|
7175
7104
|
return EmptySet_getInstance();
|
|
7176
7105
|
}
|
|
@@ -7431,7 +7360,7 @@ function appendElement(_this__u8e3s4, element, transform) {
|
|
|
7431
7360
|
}
|
|
7432
7361
|
}
|
|
7433
7362
|
}
|
|
7434
|
-
function
|
|
7363
|
+
function equals_0(_this__u8e3s4, other, ignoreCase) {
|
|
7435
7364
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
7436
7365
|
if (_this__u8e3s4 === other)
|
|
7437
7366
|
return true;
|
|
@@ -8177,6 +8106,11 @@ function removeSurrounding(_this__u8e3s4, prefix, suffix) {
|
|
|
8177
8106
|
}
|
|
8178
8107
|
return _this__u8e3s4;
|
|
8179
8108
|
}
|
|
8109
|
+
function substringBeforeLast(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
8110
|
+
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
8111
|
+
var index = lastIndexOf(_this__u8e3s4, delimiter);
|
|
8112
|
+
return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, 0, index);
|
|
8113
|
+
}
|
|
8180
8114
|
function split(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
8181
8115
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8182
8116
|
limit = limit === VOID ? 0 : limit;
|
|
@@ -8363,7 +8297,7 @@ function indexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
|
8363
8297
|
while (inductionVariable_0 < last_0) {
|
|
8364
8298
|
var element = chars[inductionVariable_0];
|
|
8365
8299
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
8366
|
-
if (
|
|
8300
|
+
if (equals_0(element, charAtIndex, ignoreCase)) {
|
|
8367
8301
|
tmp$ret$4 = true;
|
|
8368
8302
|
break $l$block;
|
|
8369
8303
|
}
|
|
@@ -8416,6 +8350,29 @@ function endsWith_0(_this__u8e3s4, suffix, ignoreCase) {
|
|
|
8416
8350
|
return regionMatchesImpl(_this__u8e3s4, charSequenceLength(_this__u8e3s4) - charSequenceLength(suffix) | 0, suffix, 0, charSequenceLength(suffix), ignoreCase);
|
|
8417
8351
|
}
|
|
8418
8352
|
}
|
|
8353
|
+
function lastIndexOf(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
8354
|
+
startIndex = startIndex === VOID ? get_lastIndex_1(_this__u8e3s4) : startIndex;
|
|
8355
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8356
|
+
var tmp;
|
|
8357
|
+
var tmp_0;
|
|
8358
|
+
if (ignoreCase) {
|
|
8359
|
+
tmp_0 = true;
|
|
8360
|
+
} else {
|
|
8361
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
8362
|
+
}
|
|
8363
|
+
if (tmp_0) {
|
|
8364
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
8365
|
+
var tmp$ret$0 = charArrayOf([char]);
|
|
8366
|
+
tmp = lastIndexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
|
|
8367
|
+
} else {
|
|
8368
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
8369
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
8370
|
+
var str = toString(char);
|
|
8371
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
8372
|
+
tmp = _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
8373
|
+
}
|
|
8374
|
+
return tmp;
|
|
8375
|
+
}
|
|
8419
8376
|
function rangesDelimitedBy(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
|
|
8420
8377
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
8421
8378
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
@@ -8490,7 +8447,7 @@ function regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length
|
|
|
8490
8447
|
do {
|
|
8491
8448
|
var index = inductionVariable;
|
|
8492
8449
|
inductionVariable = inductionVariable + 1 | 0;
|
|
8493
|
-
if (!
|
|
8450
|
+
if (!equals_0(charSequenceGet(_this__u8e3s4, thisOffset + index | 0), charSequenceGet(other, otherOffset + index | 0), ignoreCase))
|
|
8494
8451
|
return false;
|
|
8495
8452
|
}
|
|
8496
8453
|
while (inductionVariable < length);
|
|
@@ -8576,10 +8533,54 @@ function DelimitedRangesSequence(input, startIndex, limit, getNextMatch) {
|
|
|
8576
8533
|
protoOf(DelimitedRangesSequence).g = function () {
|
|
8577
8534
|
return new DelimitedRangesSequence$iterator$1(this);
|
|
8578
8535
|
};
|
|
8536
|
+
function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
8537
|
+
startIndex = startIndex === VOID ? get_lastIndex_1(_this__u8e3s4) : startIndex;
|
|
8538
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8539
|
+
var tmp;
|
|
8540
|
+
if (!ignoreCase && chars.length === 1) {
|
|
8541
|
+
tmp = typeof _this__u8e3s4 === 'string';
|
|
8542
|
+
} else {
|
|
8543
|
+
tmp = false;
|
|
8544
|
+
}
|
|
8545
|
+
if (tmp) {
|
|
8546
|
+
var char = single(chars);
|
|
8547
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
8548
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
8549
|
+
var str = toString(char);
|
|
8550
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
8551
|
+
return _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
8552
|
+
}
|
|
8553
|
+
var inductionVariable = coerceAtMost(startIndex, get_lastIndex_1(_this__u8e3s4));
|
|
8554
|
+
if (0 <= inductionVariable)
|
|
8555
|
+
do {
|
|
8556
|
+
var index = inductionVariable;
|
|
8557
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
8558
|
+
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
8559
|
+
var tmp$ret$4;
|
|
8560
|
+
$l$block: {
|
|
8561
|
+
// Inline function 'kotlin.collections.any' call
|
|
8562
|
+
var inductionVariable_0 = 0;
|
|
8563
|
+
var last = chars.length;
|
|
8564
|
+
while (inductionVariable_0 < last) {
|
|
8565
|
+
var element = chars[inductionVariable_0];
|
|
8566
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
8567
|
+
if (equals_0(element, charAtIndex, ignoreCase)) {
|
|
8568
|
+
tmp$ret$4 = true;
|
|
8569
|
+
break $l$block;
|
|
8570
|
+
}
|
|
8571
|
+
}
|
|
8572
|
+
tmp$ret$4 = false;
|
|
8573
|
+
}
|
|
8574
|
+
if (tmp$ret$4)
|
|
8575
|
+
return index;
|
|
8576
|
+
}
|
|
8577
|
+
while (0 <= inductionVariable);
|
|
8578
|
+
return -1;
|
|
8579
|
+
}
|
|
8579
8580
|
function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
|
|
8580
8581
|
if (!ignoreCase && strings.j() === 1) {
|
|
8581
8582
|
var string = single_1(strings);
|
|
8582
|
-
var index = !last ? indexOf_1(_this__u8e3s4, string, startIndex) :
|
|
8583
|
+
var index = !last ? indexOf_1(_this__u8e3s4, string, startIndex) : lastIndexOf_0(_this__u8e3s4, string, startIndex);
|
|
8583
8584
|
return index < 0 ? null : to(index, string);
|
|
8584
8585
|
}
|
|
8585
8586
|
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), charSequenceLength(_this__u8e3s4)) : downTo(coerceAtMost(startIndex, get_lastIndex_1(_this__u8e3s4)), 0);
|
|
@@ -8638,7 +8639,7 @@ function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
|
|
|
8638
8639
|
}
|
|
8639
8640
|
return null;
|
|
8640
8641
|
}
|
|
8641
|
-
function
|
|
8642
|
+
function lastIndexOf_0(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
8642
8643
|
startIndex = startIndex === VOID ? get_lastIndex_1(_this__u8e3s4) : startIndex;
|
|
8643
8644
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8644
8645
|
var tmp;
|
|
@@ -8863,8 +8864,6 @@ export {
|
|
|
8863
8864
|
joinToString_1 as joinToString1cxrrlmo0chqs,
|
|
8864
8865
|
joinToString as joinToStringxqcavsxcmh4q,
|
|
8865
8866
|
get_lastIndex as get_lastIndexx0qsydpfv3mu,
|
|
8866
|
-
listOfNotNull as listOfNotNull1v4ggfackvuny,
|
|
8867
|
-
listOfNotNull_0 as listOfNotNull2woi2boe01ub4,
|
|
8868
8867
|
listOf as listOfvhqybd2zx248,
|
|
8869
8868
|
listOf_0 as listOf1jh22dvmctj1r,
|
|
8870
8869
|
mapCapacity as mapCapacity1h45rc3eh9p2l,
|
|
@@ -8874,12 +8873,10 @@ export {
|
|
|
8874
8873
|
minOrNull as minOrNull1g8m0136x75mg,
|
|
8875
8874
|
mutableMapOf as mutableMapOfk2y3zt1azl40,
|
|
8876
8875
|
plus as plus310ted5e4i90h,
|
|
8877
|
-
setOf_0 as setOf45ia9pnfhe90,
|
|
8878
8876
|
sortWith as sortWith4fnm6b3vw03s,
|
|
8879
8877
|
sorted as sorted354mfsiv4s7x5,
|
|
8880
8878
|
toList as toList3jhuyej2anx2q,
|
|
8881
8879
|
toMutableMap as toMutableMapr5f3w62lv8sk,
|
|
8882
|
-
toSet_0 as toSet2orjxp16sotqu,
|
|
8883
8880
|
compareValues as compareValues1n2ayl87ihzfk,
|
|
8884
8881
|
enumEntries as enumEntries20mr21zbe3az4,
|
|
8885
8882
|
println as println2shhhgwwt4c61,
|
|
@@ -8917,10 +8914,7 @@ export {
|
|
|
8917
8914
|
contains_1 as contains3ue2qo8xhmpf1,
|
|
8918
8915
|
dropLast as dropLastlqc2oyv04br0,
|
|
8919
8916
|
endsWith as endsWith3cq61xxngobwh,
|
|
8920
|
-
equals_0 as equals2v6cggk171b6e,
|
|
8921
8917
|
indexOf_0 as indexOf1xbs558u7wr52,
|
|
8922
|
-
isBlank as isBlank1dvkhjjvox3p0,
|
|
8923
|
-
isDigit as isDigit3mimrri4wkzop,
|
|
8924
8918
|
isHighSurrogate as isHighSurrogate11jfjw70ar0zf,
|
|
8925
8919
|
isUpperCase as isUpperCase16ivdixranflt,
|
|
8926
8920
|
removePrefix as removePrefix279df90bhrqqg,
|
|
@@ -8930,6 +8924,7 @@ export {
|
|
|
8930
8924
|
replace_0 as replaceqbix900hl8kl,
|
|
8931
8925
|
split as split2bvyvnrlcifjv,
|
|
8932
8926
|
startsWith as startsWith26w8qjqapeeq6,
|
|
8927
|
+
substringBeforeLast as substringBeforeLastqh7oeuvefdek,
|
|
8933
8928
|
substring_0 as substring3saq8ornu0luv,
|
|
8934
8929
|
substring as substringiqarkczpya5m,
|
|
8935
8930
|
toBoolean as toBoolean2azvnq2ukl7b3,
|