@earth-app/shovel
Version:
Kotlin Multiplatform Web Scraping Framework
1,249 lines (1,246 loc) • 444 kB
JavaScript
//region block: polyfills
(function () {
if (typeof globalThis === 'object')
return;
Object.defineProperty(Object.prototype, '__magic__', {get: function () {
return this;
}, configurable: true});
__magic__.globalThis = __magic__;
delete Object.prototype.__magic__;
}());
if (typeof Math.imul === 'undefined') {
Math.imul = function imul(a, b) {
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
};
}
if (typeof ArrayBuffer.isView === 'undefined') {
ArrayBuffer.isView = function (a) {
return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__;
};
}
if (typeof Array.prototype.fill === 'undefined') {
// Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill#Polyfill
Object.defineProperty(Array.prototype, 'fill', {value: function (value) {
// Steps 1-2.
if (this == null) {
throw new TypeError('this is null or not defined');
}
var O = Object(this); // Steps 3-5.
var len = O.length >>> 0; // Steps 6-7.
var start = arguments[1];
var relativeStart = start >> 0; // Step 8.
var k = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); // Steps 9-10.
var end = arguments[2];
var relativeEnd = end === undefined ? len : end >> 0; // Step 11.
var finalValue = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); // Step 12.
while (k < finalValue) {
O[k] = value;
k++;
}
; // Step 13.
return O;
}});
}
[Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
if (typeof TypedArray.prototype.fill === 'undefined') {
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
}
});
[Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
if (typeof TypedArray.prototype.sort === 'undefined') {
Object.defineProperty(TypedArray.prototype, 'sort', {value: function (compareFunction) {
compareFunction = compareFunction || function (a, b) {
if (a < b)
return -1;
if (a > b)
return 1;
if (a === b) {
if (a !== 0)
return 0;
var ia = 1 / a;
return ia === 1 / b ? 0 : ia < 0 ? -1 : 1;
}
return a !== a ? b !== b ? 0 : 1 : -1;
};
return Array.prototype.sort.call(this, compareFunction || totalOrderComparator);
}});
}
});
if (typeof Math.clz32 === 'undefined') {
Math.clz32 = function (log, LN2) {
return function (x) {
var asUint = x >>> 0;
if (asUint === 0) {
return 32;
}
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
};
}(Math.log, Math.LN2);
}
if (typeof String.prototype.startsWith === 'undefined') {
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
position = position || 0;
return this.lastIndexOf(searchString, position) === position;
}});
}
if (typeof String.prototype.endsWith === 'undefined') {
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
var subjectString = this.toString();
if (position === undefined || position > subjectString.length) {
position = subjectString.length;
}
position -= searchString.length;
var lastIndex = subjectString.indexOf(searchString, position);
return lastIndex !== -1 && lastIndex === position;
}});
}
//endregion
(function (factory) {
if (typeof define === 'function' && define.amd)
define(['exports'], factory);
else if (typeof exports === 'object')
factory(module.exports);
else
globalThis['kotlin-kotlin-stdlib'] = factory(typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined' ? {} : globalThis['kotlin-kotlin-stdlib']);
}(function (_) {
'use strict';
//region block: imports
var imul = Math.imul;
var isView = ArrayBuffer.isView;
var clz32 = Math.clz32;
//endregion
//region block: pre-declaration
initMetadataForInterface(CharSequence, 'CharSequence');
initMetadataForInterface(Comparable, 'Comparable');
initMetadataForClass(Number_0, 'Number');
initMetadataForClass(asSequence$$inlined$Sequence$1);
initMetadataForClass(asIterable$$inlined$Iterable$1);
initMetadataForCompanion(Companion);
initMetadataForClass(Char, 'Char', VOID, VOID, [Comparable]);
initMetadataForCompanion(Companion_0);
initMetadataForInterface(Collection, 'Collection');
function asJsReadonlyArrayView() {
return createJsReadonlyArrayViewFrom(this);
}
initMetadataForInterface(KtList, 'List', VOID, VOID, [Collection]);
initMetadataForInterface(MutableCollection, 'MutableCollection', VOID, VOID, [Collection]);
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableCollection]);
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
initMetadataForInterface(Entry, 'Entry');
initMetadataForCompanion(Companion_1);
function asJsReadonlyMapView() {
return createJsReadonlyMapViewFrom(this);
}
initMetadataForInterface(KtMap, 'Map');
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
initMetadataForCompanion(Companion_2);
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
initMetadataForCompanion(Companion_3);
initMetadataForClass(Long, 'Long', VOID, Number_0, [Number_0, Comparable]);
initMetadataForInterface(FunctionAdapter, 'FunctionAdapter');
initMetadataForClass(arrayIterator$1);
initMetadataForClass(JsArrayView, 'JsArrayView', JsArrayView, Array);
initMetadataForClass(JsMapView, 'JsMapView', JsMapView, Map);
initMetadataForObject(StringCompanionObject, 'StringCompanionObject');
initMetadataForObject(Digit, 'Digit');
initMetadataForObject(Letter, 'Letter');
initMetadataForInterface(AutoCloseable, 'AutoCloseable');
initMetadataForInterface(Comparator, 'Comparator');
initMetadataForObject(Unit, 'Unit');
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableCollection]);
initMetadataForClass(IteratorImpl, 'IteratorImpl');
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList);
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMutableMap]);
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtSet, MutableCollection]);
initMetadataForCompanion(Companion_4);
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList]);
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtSet, MutableCollection, AbstractMutableSet]);
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableCollection, AbstractMutableCollection]);
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtSet, MutableCollection, AbstractMutableSet]);
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
initMetadataForClass(HashMapKeysDefault$iterator$1);
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
initMetadataForClass(HashMapValuesDefault$iterator$1);
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, KtSet, MutableCollection]);
initMetadataForCompanion(Companion_5);
initMetadataForClass(Itr, 'Itr');
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
initMetadataForClass(ValuesItr, 'ValuesItr', VOID, Itr);
initMetadataForClass(EntriesItr, 'EntriesItr', VOID, Itr);
initMetadataForClass(EntryRef, 'EntryRef', VOID, VOID, [Entry]);
function containsAllEntries(m) {
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.all' call
var tmp;
if (isInterface(m, Collection)) {
tmp = m.p();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_0;
}
var _iterator__ex2g4s = m.g();
while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
var entry = element;
var tmp_0;
if (!(entry == null) ? isInterface(entry, Entry) : false) {
tmp_0 = this.h8(entry);
} else {
tmp_0 = false;
}
if (!tmp_0) {
tmp$ret$0 = false;
break $l$block_0;
}
}
tmp$ret$0 = true;
}
return tmp$ret$0;
}
initMetadataForInterface(InternalMap, 'InternalMap');
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
initMetadataForObject(EmptyHolder, 'EmptyHolder');
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMutableMap]);
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, KtSet, MutableCollection]);
initMetadataForInterface(Continuation, 'Continuation');
initMetadataForClass(InterceptedCoroutine, 'InterceptedCoroutine', VOID, VOID, [Continuation]);
initMetadataForClass(CoroutineImpl, 'CoroutineImpl', VOID, InterceptedCoroutine, [InterceptedCoroutine, Continuation]);
initMetadataForObject(CompletedContinuation, 'CompletedContinuation', VOID, VOID, [Continuation]);
initMetadataForClass(SafeContinuation, 'SafeContinuation', VOID, VOID, [Continuation]);
initMetadataForClass(Exception, 'Exception', Exception_init_$Create$, Error);
initMetadataForClass(RuntimeException, 'RuntimeException', RuntimeException_init_$Create$, Exception);
initMetadataForClass(IllegalStateException, 'IllegalStateException', IllegalStateException_init_$Create$, RuntimeException);
initMetadataForClass(CancellationException, 'CancellationException', CancellationException_init_$Create$, IllegalStateException);
initMetadataForClass(createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$1, VOID, VOID, CoroutineImpl);
initMetadataForClass(createSimpleCoroutineForSuspendFunction$1, VOID, VOID, CoroutineImpl);
initMetadataForClass(createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$2, VOID, VOID, CoroutineImpl);
initMetadataForClass(IllegalArgumentException, 'IllegalArgumentException', IllegalArgumentException_init_$Create$, RuntimeException);
initMetadataForClass(UnsupportedOperationException, 'UnsupportedOperationException', UnsupportedOperationException_init_$Create$, RuntimeException);
initMetadataForClass(NoSuchElementException, 'NoSuchElementException', NoSuchElementException_init_$Create$, RuntimeException);
initMetadataForClass(Error_0, 'Error', Error_init_$Create$, Error);
initMetadataForClass(IndexOutOfBoundsException, 'IndexOutOfBoundsException', IndexOutOfBoundsException_init_$Create$, RuntimeException);
initMetadataForClass(ArithmeticException, 'ArithmeticException', ArithmeticException_init_$Create$, RuntimeException);
initMetadataForClass(ConcurrentModificationException, 'ConcurrentModificationException', ConcurrentModificationException_init_$Create$, RuntimeException);
initMetadataForClass(NumberFormatException, 'NumberFormatException', NumberFormatException_init_$Create$, IllegalArgumentException);
initMetadataForClass(ClassCastException, 'ClassCastException', ClassCastException_init_$Create$, RuntimeException);
initMetadataForClass(NullPointerException, 'NullPointerException', NullPointerException_init_$Create$, RuntimeException);
initMetadataForClass(NoWhenBranchMatchedException, 'NoWhenBranchMatchedException', NoWhenBranchMatchedException_init_$Create$, RuntimeException);
initMetadataForClass(UninitializedPropertyAccessException, 'UninitializedPropertyAccessException', UninitializedPropertyAccessException_init_$Create$, RuntimeException);
initMetadataForInterface(KClass, 'KClass');
initMetadataForClass(KClassImpl, 'KClassImpl', VOID, VOID, [KClass]);
initMetadataForObject(NothingKClassImpl, 'NothingKClassImpl', VOID, KClassImpl);
initMetadataForClass(ErrorKClass, 'ErrorKClass', ErrorKClass, VOID, [KClass]);
initMetadataForClass(PrimitiveKClassImpl, 'PrimitiveKClassImpl', VOID, KClassImpl);
initMetadataForClass(SimpleKClassImpl, 'SimpleKClassImpl', VOID, KClassImpl);
initMetadataForInterface(KProperty1, 'KProperty1');
initMetadataForInterface(KMutableProperty1, 'KMutableProperty1', VOID, VOID, [KProperty1]);
initMetadataForClass(KTypeImpl, 'KTypeImpl');
initMetadataForClass(KTypeParameterImpl, 'KTypeParameterImpl');
initMetadataForObject(PrimitiveClasses, 'PrimitiveClasses');
initMetadataForClass(ConstrainedOnceSequence, 'ConstrainedOnceSequence');
initMetadataForClass(CharacterCodingException, 'CharacterCodingException', CharacterCodingException_init_$Create$, Exception);
initMetadataForClass(StringBuilder, 'StringBuilder', StringBuilder_init_$Create$_0, VOID, [CharSequence]);
initMetadataForCompanion(Companion_6);
initMetadataForClass(Regex, 'Regex');
initMetadataForClass(MatchGroup, 'MatchGroup');
initMetadataForClass(RegexOption, 'RegexOption', VOID, Enum);
initMetadataForInterface(MatchNamedGroupCollection, 'MatchNamedGroupCollection', VOID, VOID, [Collection]);
initMetadataForClass(findNext$1$groups$1, VOID, VOID, AbstractCollection, [MatchNamedGroupCollection, AbstractCollection]);
initMetadataForClass(findNext$1);
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
initMetadataForClass(ExceptionTraceBuilder, 'ExceptionTraceBuilder', ExceptionTraceBuilder);
initMetadataForClass(AbstractList, 'AbstractList', VOID, AbstractCollection, [AbstractCollection, KtList]);
initMetadataForClass(SubList_0, 'SubList', VOID, AbstractList);
initMetadataForClass(IteratorImpl_0, 'IteratorImpl');
initMetadataForClass(ListIteratorImpl_0, 'ListIteratorImpl', VOID, IteratorImpl_0);
initMetadataForCompanion(Companion_7);
initMetadataForClass(AbstractMap$keys$1$iterator$1);
initMetadataForClass(AbstractMap$values$1$iterator$1);
initMetadataForCompanion(Companion_8);
initMetadataForClass(AbstractSet, 'AbstractSet', VOID, AbstractCollection, [AbstractCollection, KtSet]);
initMetadataForClass(AbstractMap$keys$1, VOID, VOID, AbstractSet);
initMetadataForClass(AbstractMap$values$1, VOID, VOID, AbstractCollection);
initMetadataForCompanion(Companion_9);
initMetadataForCompanion(Companion_10);
initMetadataForClass(ArrayDeque, 'ArrayDeque', ArrayDeque_init_$Create$, AbstractMutableList);
initMetadataForObject(EmptyList, 'EmptyList', VOID, VOID, [KtList]);
initMetadataForClass(ArrayAsCollection, 'ArrayAsCollection', VOID, VOID, [Collection]);
initMetadataForObject(EmptyIterator, 'EmptyIterator');
initMetadataForClass(IndexedValue, 'IndexedValue');
initMetadataForClass(IndexingIterable, 'IndexingIterable');
initMetadataForClass(IndexingIterator, 'IndexingIterator');
initMetadataForObject(EmptyMap, 'EmptyMap', VOID, VOID, [KtMap]);
initMetadataForClass(IntIterator, 'IntIterator');
initMetadataForClass(LongIterator, 'LongIterator');
initMetadataForClass(CharIterator, 'CharIterator');
initMetadataForClass(SequenceScope, 'SequenceScope', VOID, VOID, VOID, [1]);
initMetadataForClass(SequenceBuilderIterator, 'SequenceBuilderIterator', SequenceBuilderIterator, SequenceScope, [SequenceScope, Continuation], [1]);
initMetadataForClass(sequence$$inlined$Sequence$1);
initMetadataForClass(TransformingSequence$iterator$1);
initMetadataForClass(TransformingSequence, 'TransformingSequence');
initMetadataForInterface(DropTakeSequence, 'DropTakeSequence');
initMetadataForClass(TakeSequence$iterator$1);
initMetadataForClass(TakeSequence, 'TakeSequence', VOID, VOID, [DropTakeSequence]);
initMetadataForObject(EmptySequence, 'EmptySequence', VOID, VOID, [DropTakeSequence]);
initMetadataForClass(GeneratorSequence$iterator$1);
initMetadataForClass(GeneratorSequence, 'GeneratorSequence');
initMetadataForClass(FilteringSequence$iterator$1);
initMetadataForClass(FilteringSequence, 'FilteringSequence');
initMetadataForClass(asSequence$$inlined$Sequence$1_0);
initMetadataForObject(EmptySet, 'EmptySet', VOID, VOID, [KtSet]);
initMetadataForObject(Key, 'Key');
function plus(context) {
var tmp;
if (context === EmptyCoroutineContext_getInstance()) {
tmp = this;
} else {
tmp = context.mh(this, CoroutineContext$plus$lambda);
}
return tmp;
}
initMetadataForInterface(CoroutineContext, 'CoroutineContext');
function get(key) {
var tmp;
if (equals(this.s(), key)) {
tmp = isInterface(this, Element) ? this : THROW_CCE();
} else {
tmp = null;
}
return tmp;
}
function fold(initial, operation) {
return operation(initial, this);
}
function minusKey(key) {
return equals(this.s(), key) ? EmptyCoroutineContext_getInstance() : this;
}
initMetadataForInterface(Element, 'Element', VOID, VOID, [CoroutineContext]);
function releaseInterceptedContinuation(continuation) {
}
function get_0(key) {
if (key instanceof AbstractCoroutineContextKey) {
var tmp;
if (key.kh(this.s())) {
var tmp_0 = key.jh(this);
tmp = (!(tmp_0 == null) ? isInterface(tmp_0, Element) : false) ? tmp_0 : null;
} else {
tmp = null;
}
return tmp;
}
var tmp_1;
if (Key_instance === key) {
tmp_1 = isInterface(this, Element) ? this : THROW_CCE();
} else {
tmp_1 = null;
}
return tmp_1;
}
function minusKey_0(key) {
if (key instanceof AbstractCoroutineContextKey) {
return key.kh(this.s()) && !(key.jh(this) == null) ? EmptyCoroutineContext_getInstance() : this;
}
return Key_instance === key ? EmptyCoroutineContext_getInstance() : this;
}
initMetadataForInterface(ContinuationInterceptor, 'ContinuationInterceptor', VOID, VOID, [Element]);
initMetadataForObject(EmptyCoroutineContext, 'EmptyCoroutineContext', VOID, VOID, [CoroutineContext]);
initMetadataForClass(CombinedContext, 'CombinedContext', VOID, VOID, [CoroutineContext]);
initMetadataForClass(AbstractCoroutineContextKey, 'AbstractCoroutineContextKey');
initMetadataForClass(AbstractCoroutineContextElement, 'AbstractCoroutineContextElement', VOID, VOID, [Element]);
initMetadataForClass(CoroutineSingletons, 'CoroutineSingletons', VOID, Enum);
initMetadataForClass(EnumEntriesList, 'EnumEntriesList', VOID, AbstractList, [KtList, AbstractList]);
initMetadataForCompanion(Companion_11);
initMetadataForClass(IntProgression, 'IntProgression');
function contains(value) {
return compareTo(value, this.hd()) >= 0 && compareTo(value, this.id()) <= 0;
}
initMetadataForInterface(ClosedRange, 'ClosedRange');
initMetadataForClass(IntRange, 'IntRange', VOID, IntProgression, [IntProgression, ClosedRange]);
initMetadataForCompanion(Companion_12);
initMetadataForClass(LongProgression, 'LongProgression');
initMetadataForClass(LongRange, 'LongRange', VOID, LongProgression, [LongProgression, ClosedRange]);
initMetadataForCompanion(Companion_13);
initMetadataForClass(CharProgression, 'CharProgression');
initMetadataForClass(CharRange, 'CharRange', VOID, CharProgression, [CharProgression, ClosedRange]);
initMetadataForClass(IntProgressionIterator, 'IntProgressionIterator', VOID, IntIterator);
initMetadataForClass(LongProgressionIterator, 'LongProgressionIterator', VOID, LongIterator);
initMetadataForClass(CharProgressionIterator, 'CharProgressionIterator', VOID, CharIterator);
initMetadataForCompanion(Companion_14);
initMetadataForCompanion(Companion_15);
initMetadataForCompanion(Companion_16);
initMetadataForCompanion(Companion_17);
initMetadataForClass(KTypeProjection, 'KTypeProjection');
initMetadataForClass(KVariance, 'KVariance', VOID, Enum);
initMetadataForCompanion(Companion_18);
initMetadataForClass(Builder, 'Builder');
initMetadataForCompanion(Companion_19);
initMetadataForClass(BytesHexFormat, 'BytesHexFormat');
initMetadataForClass(NumberHexFormat, 'NumberHexFormat');
initMetadataForClass(Builder_0, 'Builder');
initMetadataForCompanion(Companion_20);
initMetadataForClass(HexFormat, 'HexFormat');
initMetadataForObject(State, 'State');
initMetadataForClass(LinesIterator, 'LinesIterator');
initMetadataForClass(DelimitedRangesSequence$iterator$1);
initMetadataForClass(DelimitedRangesSequence, 'DelimitedRangesSequence');
initMetadataForClass(lineSequence$$inlined$Sequence$1);
initMetadataForClass(LazyThreadSafetyMode, 'LazyThreadSafetyMode', VOID, Enum);
initMetadataForClass(UnsafeLazyImpl, 'UnsafeLazyImpl');
initMetadataForObject(UNINITIALIZED_VALUE, 'UNINITIALIZED_VALUE');
initMetadataForCompanion(Companion_21);
initMetadataForClass(Failure, 'Failure');
initMetadataForClass(Result, 'Result');
initMetadataForClass(NotImplementedError, 'NotImplementedError', NotImplementedError, Error_0);
initMetadataForClass(Pair, 'Pair');
initMetadataForCompanion(Companion_22);
initMetadataForClass(ULong, 'ULong', VOID, VOID, [Comparable]);
//endregion
function CharSequence() {
}
function Comparable() {
}
function Number_0() {
}
function toList(_this__u8e3s4) {
switch (_this__u8e3s4.length) {
case 0:
return emptyList();
case 1:
return listOf(_this__u8e3s4[0]);
default:
return toMutableList(_this__u8e3s4);
}
}
function withIndex(_this__u8e3s4) {
return new IndexingIterable(withIndex$lambda(_this__u8e3s4));
}
function get_indices(_this__u8e3s4) {
return new IntRange(0, get_lastIndex(_this__u8e3s4));
}
function indexOf(_this__u8e3s4, element) {
if (element == null) {
var inductionVariable = 0;
var last = _this__u8e3s4.length - 1 | 0;
if (inductionVariable <= last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (_this__u8e3s4[index] == null) {
return index;
}
}
while (inductionVariable <= last);
} else {
var inductionVariable_0 = 0;
var last_0 = _this__u8e3s4.length - 1 | 0;
if (inductionVariable_0 <= last_0)
do {
var index_0 = inductionVariable_0;
inductionVariable_0 = inductionVariable_0 + 1 | 0;
if (equals(element, _this__u8e3s4[index_0])) {
return index_0;
}
}
while (inductionVariable_0 <= last_0);
}
return -1;
}
function lastIndexOf(_this__u8e3s4, element) {
if (element == null) {
var inductionVariable = _this__u8e3s4.length - 1 | 0;
if (0 <= inductionVariable)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + -1 | 0;
if (_this__u8e3s4[index] == null) {
return index;
}
}
while (0 <= inductionVariable);
} else {
var inductionVariable_0 = _this__u8e3s4.length - 1 | 0;
if (0 <= inductionVariable_0)
do {
var index_0 = inductionVariable_0;
inductionVariable_0 = inductionVariable_0 + -1 | 0;
if (equals(element, _this__u8e3s4[index_0])) {
return index_0;
}
}
while (0 <= inductionVariable_0);
}
return -1;
}
function contains_0(_this__u8e3s4, element) {
return indexOf(_this__u8e3s4, element) >= 0;
}
function toSet(_this__u8e3s4) {
switch (_this__u8e3s4.length) {
case 0:
return emptySet();
case 1:
return setOf(_this__u8e3s4[0]);
default:
return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.length)));
}
}
function toCollection(_this__u8e3s4, destination) {
var inductionVariable = 0;
var last = _this__u8e3s4.length;
while (inductionVariable < last) {
var item = _this__u8e3s4[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
destination.e(item);
}
return destination;
}
function get_lastIndex(_this__u8e3s4) {
return _this__u8e3s4.length - 1 | 0;
}
function single(_this__u8e3s4) {
var tmp;
switch (_this__u8e3s4.length) {
case 0:
throw NoSuchElementException_init_$Create$_0('Array is empty.');
case 1:
tmp = _this__u8e3s4[0];
break;
default:
throw IllegalArgumentException_init_$Create$_0('Array has more than one element.');
}
return tmp;
}
function toMutableList(_this__u8e3s4) {
return ArrayList_init_$Create$_1(asCollection(_this__u8e3s4));
}
function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
}
function contains_1(_this__u8e3s4, element) {
return indexOf_0(_this__u8e3s4, element) >= 0;
}
function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
buffer.f(prefix);
var count = 0;
var inductionVariable = 0;
var last = _this__u8e3s4.length;
$l$loop: while (inductionVariable < last) {
var element = _this__u8e3s4[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
count = count + 1 | 0;
if (count > 1) {
buffer.f(separator);
}
if (limit < 0 || count <= limit) {
appendElement(buffer, element, transform);
} else
break $l$loop;
}
if (limit >= 0 && count > limit) {
buffer.f(truncated);
}
buffer.f(postfix);
return buffer;
}
function indexOf_0(_this__u8e3s4, element) {
var inductionVariable = 0;
var last = _this__u8e3s4.length - 1 | 0;
if (inductionVariable <= last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (element === _this__u8e3s4[index]) {
return index;
}
}
while (inductionVariable <= last);
return -1;
}
function sortedArray(_this__u8e3s4) {
// Inline function 'kotlin.collections.isEmpty' call
if (_this__u8e3s4.length === 0)
return _this__u8e3s4;
// Inline function 'kotlin.apply' call
var this_0 = copyOf_2(_this__u8e3s4);
sort(this_0);
return this_0;
}
function getOrNull(_this__u8e3s4, index) {
return (0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false) ? _this__u8e3s4[index] : null;
}
function withIndex$lambda($this_withIndex) {
return function () {
return arrayIterator($this_withIndex);
};
}
function joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
return joinTo_0(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
}
function joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
buffer.f(prefix);
var count = 0;
var _iterator__ex2g4s = _this__u8e3s4.g();
$l$loop: while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
count = count + 1 | 0;
if (count > 1) {
buffer.f(separator);
}
if (limit < 0 || count <= limit) {
appendElement(buffer, element, transform);
} else
break $l$loop;
}
if (limit >= 0 && count > limit) {
buffer.f(truncated);
}
buffer.f(postfix);
return buffer;
}
function plus_0(_this__u8e3s4, element) {
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + 1 | 0);
result.n(_this__u8e3s4);
result.e(element);
return result;
}
function toHashSet(_this__u8e3s4) {
return toCollection_0(_this__u8e3s4, HashSet_init_$Create$_0(mapCapacity(collectionSizeOrDefault(_this__u8e3s4, 12))));
}
function toBooleanArray(_this__u8e3s4) {
var result = booleanArray(_this__u8e3s4.j());
var index = 0;
var _iterator__ex2g4s = _this__u8e3s4.g();
while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
result[_unary__edvuaz] = element;
}
return result;
}
function toSet_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, Collection)) {
var tmp;
switch (_this__u8e3s4.j()) {
case 0:
tmp = emptySet();
break;
case 1:
var tmp_0;
if (isInterface(_this__u8e3s4, KtList)) {
tmp_0 = _this__u8e3s4.o(0);
} else {
tmp_0 = _this__u8e3s4.g().i();
}
tmp = setOf(tmp_0);
break;
default:
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.j())));
break;
}
return tmp;
}
return optimizeReadOnlySet(toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$()));
}
function plus_1(_this__u8e3s4, elements) {
if (isInterface(elements, Collection)) {
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.j() | 0);
result.n(_this__u8e3s4);
result.n(elements);
return result;
} else {
var result_0 = ArrayList_init_$Create$_1(_this__u8e3s4);
addAll(result_0, elements);
return result_0;
}
}
function plus_2(_this__u8e3s4, elements) {
if (isInterface(_this__u8e3s4, Collection))
return plus_1(_this__u8e3s4, elements);
var result = ArrayList_init_$Create$();
addAll(result, _this__u8e3s4);
addAll(result, elements);
return result;
}
function asSequence(_this__u8e3s4) {
// Inline function 'kotlin.sequences.Sequence' call
return new asSequence$$inlined$Sequence$1(_this__u8e3s4);
}
function firstOrNull(_this__u8e3s4) {
return _this__u8e3s4.p() ? null : _this__u8e3s4.o(0);
}
function last(_this__u8e3s4) {
if (_this__u8e3s4.p())
throw NoSuchElementException_init_$Create$_0('List is empty.');
return _this__u8e3s4.o(get_lastIndex_0(_this__u8e3s4));
}
function toLongArray(_this__u8e3s4) {
var result = longArray(_this__u8e3s4.j());
var index = 0;
var _iterator__ex2g4s = _this__u8e3s4.g();
while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
result[_unary__edvuaz] = element;
}
return result;
}
function toByteArray(_this__u8e3s4) {
var result = new Int8Array(_this__u8e3s4.j());
var index = 0;
var _iterator__ex2g4s = _this__u8e3s4.g();
while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
result[_unary__edvuaz] = element;
}
return result;
}
function reversed(_this__u8e3s4) {
var tmp;
if (isInterface(_this__u8e3s4, Collection)) {
tmp = _this__u8e3s4.j() <= 1;
} else {
tmp = false;
}
if (tmp)
return toList_0(_this__u8e3s4);
var list = toMutableList_0(_this__u8e3s4);
reverse(list);
return list;
}
function toCollection_0(_this__u8e3s4, destination) {
var _iterator__ex2g4s = _this__u8e3s4.g();
while (_iterator__ex2g4s.h()) {
var item = _iterator__ex2g4s.i();
destination.e(item);
}
return destination;
}
function toList_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, Collection)) {
var tmp;
switch (_this__u8e3s4.j()) {
case 0:
tmp = emptyList();
break;
case 1:
var tmp_0;
if (isInterface(_this__u8e3s4, KtList)) {
tmp_0 = _this__u8e3s4.o(0);
} else {
tmp_0 = _this__u8e3s4.g().i();
}
tmp = listOf(tmp_0);
break;
default:
tmp = toMutableList_1(_this__u8e3s4);
break;
}
return tmp;
}
return optimizeReadOnlyList(toMutableList_0(_this__u8e3s4));
}
function toMutableList_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, Collection))
return toMutableList_1(_this__u8e3s4);
return toCollection_0(_this__u8e3s4, ArrayList_init_$Create$());
}
function sortedWith(_this__u8e3s4, comparator) {
if (isInterface(_this__u8e3s4, Collection)) {
if (_this__u8e3s4.j() <= 1)
return toList_0(_this__u8e3s4);
// Inline function 'kotlin.collections.toTypedArray' call
var tmp = copyToArray(_this__u8e3s4);
// Inline function 'kotlin.apply' call
var this_0 = isArray(tmp) ? tmp : THROW_CCE();
sortWith(this_0, comparator);
return asList(this_0);
}
// Inline function 'kotlin.apply' call
var this_1 = toMutableList_0(_this__u8e3s4);
sortWith_0(this_1, comparator);
return this_1;
}
function toMutableList_1(_this__u8e3s4) {
return ArrayList_init_$Create$_1(_this__u8e3s4);
}
function single_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, KtList))
return single_1(_this__u8e3s4);
else {
var iterator = _this__u8e3s4.g();
if (!iterator.h())
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
var single = iterator.i();
if (iterator.h())
throw IllegalArgumentException_init_$Create$_0('Collection has more than one element.');
return single;
}
}
function minOrNull(_this__u8e3s4) {
var iterator = _this__u8e3s4.g();
if (!iterator.h())
return null;
var min = iterator.i();
while (iterator.h()) {
var e = iterator.i();
if (compareTo(min, e) > 0)
min = e;
}
return min;
}
function single_1(_this__u8e3s4) {
var tmp;
switch (_this__u8e3s4.j()) {
case 0:
throw NoSuchElementException_init_$Create$_0('List is empty.');
case 1:
tmp = _this__u8e3s4.o(0);
break;
default:
throw IllegalArgumentException_init_$Create$_0('List has more than one element.');
}
return tmp;
}
function first(_this__u8e3s4) {
if (_this__u8e3s4.p())
throw NoSuchElementException_init_$Create$_0('List is empty.');
return _this__u8e3s4.o(0);
}
function dropLast(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested element count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
}
function toMutableSet(_this__u8e3s4) {
var tmp;
if (isInterface(_this__u8e3s4, Collection)) {
tmp = LinkedHashSet_init_$Create$_0(_this__u8e3s4);
} else {
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$());
}
return tmp;
}
function take(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested element count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
if (n === 0)
return emptyList();
if (isInterface(_this__u8e3s4, Collection)) {
if (n >= _this__u8e3s4.j())
return toList_0(_this__u8e3s4);
if (n === 1)
return listOf(first_0(_this__u8e3s4));
}
var count = 0;
var list = ArrayList_init_$Create$_0(n);
var _iterator__ex2g4s = _this__u8e3s4.g();
$l$loop: while (_iterator__ex2g4s.h()) {
var item = _iterator__ex2g4s.i();
list.e(item);
count = count + 1 | 0;
if (count === n)
break $l$loop;
}
return optimizeReadOnlyList(list);
}
function first_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, KtList))
return first(_this__u8e3s4);
else {
var iterator = _this__u8e3s4.g();
if (!iterator.h())
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
return iterator.i();
}
}
function asSequence$$inlined$Sequence$1($this_asSequence) {
this.q_1 = $this_asSequence;
}
protoOf(asSequence$$inlined$Sequence$1).g = function () {
return this.q_1.g();
};
function toList_1(_this__u8e3s4) {
if (_this__u8e3s4.j() === 0)
return emptyList();
var iterator = _this__u8e3s4.r().g();
if (!iterator.h())
return emptyList();
var first = iterator.i();
if (!iterator.h()) {
// Inline function 'kotlin.collections.toPair' call
var tmp$ret$0 = new Pair(first.s(), first.t());
return listOf(tmp$ret$0);
}
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j());
// Inline function 'kotlin.collections.toPair' call
var tmp$ret$1 = new Pair(first.s(), first.t());
result.e(tmp$ret$1);
do {
// Inline function 'kotlin.collections.toPair' call
var this_0 = iterator.i();
var tmp$ret$2 = new Pair(this_0.s(), this_0.t());
result.e(tmp$ret$2);
}
while (iterator.h());
return result;
}
function until(_this__u8e3s4, to) {
if (to <= -2147483648)
return Companion_getInstance_11().u_1;
return numberRangeToNumber(_this__u8e3s4, to - 1 | 0);
}
function downTo(_this__u8e3s4, to) {
return Companion_instance_14.v(_this__u8e3s4, to, -1);
}
function coerceAtLeast(_this__u8e3s4, minimumValue) {
return _this__u8e3s4 < minimumValue ? minimumValue : _this__u8e3s4;
}
function coerceAtMost(_this__u8e3s4, maximumValue) {
return _this__u8e3s4 > maximumValue ? maximumValue : _this__u8e3s4;
}
function coerceIn(_this__u8e3s4, minimumValue, maximumValue) {
if (minimumValue > maximumValue)
throw IllegalArgumentException_init_$Create$_0('Cannot coerce value to an empty range: maximum ' + maximumValue + ' is less than minimum ' + minimumValue + '.');
if (_this__u8e3s4 < minimumValue)
return minimumValue;
if (_this__u8e3s4 > maximumValue)
return maximumValue;
return _this__u8e3s4;
}
function contains_2(_this__u8e3s4, value) {
// Inline function 'kotlin.let' call
var it = toIntExactOrNull(value);
return !(it == null) ? _this__u8e3s4.w(it) : false;
}
function toIntExactOrNull(_this__u8e3s4) {
return ((new Long(-2147483648, -1)).a1(_this__u8e3s4) <= 0 ? _this__u8e3s4.a1(new Long(2147483647, 0)) <= 0 : false) ? _this__u8e3s4.z() : null;
}
function map(_this__u8e3s4, transform) {
return new TransformingSequence(_this__u8e3s4, transform);
}
function asIterable(_this__u8e3s4) {
// Inline function 'kotlin.collections.Iterable' call
return new asIterable$$inlined$Iterable$1(_this__u8e3s4);
}
function take_0(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested element count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
var tmp;
if (n === 0) {
tmp = emptySequence();
} else {
if (isInterface(_this__u8e3s4, DropTakeSequence)) {
tmp = _this__u8e3s4.b1(n);
} else {
tmp = new TakeSequence(_this__u8e3s4, n);
}
}
return tmp;
}
function toList_2(_this__u8e3s4) {
var it = _this__u8e3s4.g();
if (!it.h())
return emptyList();
var element = it.i();
if (!it.h())
return listOf(element);
var dst = ArrayList_init_$Create$();
dst.e(element);
while (it.h()) {
dst.e(it.i());
}
return dst;
}
function joinToString_1(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
return joinTo_1(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
}
function filter(_this__u8e3s4, predicate) {
return new FilteringSequence(_this__u8e3s4, true, predicate);
}
function joinTo_1(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
buffer.f(prefix);
var count = 0;
var _iterator__ex2g4s = _this__u8e3s4.g();
$l$loop: while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
count = count + 1 | 0;
if (count > 1) {
buffer.f(separator);
}
if (limit < 0 || count <= limit) {
appendElement(buffer, element, transform);
} else
break $l$loop;
}
if (limit >= 0 && count > limit) {
buffer.f(truncated);
}
buffer.f(postfix);
return buffer;
}
function asIterable$$inlined$Iterable$1($this_asIterable) {
this.c1_1 = $this_asIterable;
}
protoOf(asIterable$$inlined$Iterable$1).g = function () {
return this.c1_1.g();
};
function plus_3(_this__u8e3s4, elements) {
var tmp0_safe_receiver = collectionSizeOrNull(elements);
var tmp;
if (tmp0_safe_receiver == null) {
tmp = null;
} else {
// Inline function 'kotlin.let' call
tmp = _this__u8e3s4.j() + tmp0_safe_receiver | 0;
}
var tmp1_elvis_lhs = tmp;
var result = LinkedHashSet_init_$Create$_1(mapCapacity(tmp1_elvis_lhs == null ? imul(_this__u8e3s4.j(), 2) : tmp1_elvis_lhs));
result.n(_this__u8e3s4);
addAll(result, elements);
return result;
}
function last_0(_this__u8e3s4) {
// Inline function 'kotlin.text.isEmpty' call
if (charSequenceLength(_this__u8e3s4) === 0)
throw NoSuchElementException_init_$Create$_0('Char sequence is empty.');
return charSequenceGet(_this__u8e3s4, get_lastIndex_1(_this__u8e3s4));
}
function first_1(_this__u8e3s4) {
// Inline function 'kotlin.text.isEmpty' call
if (charSequenceLength(_this__u8e3s4) === 0)
throw NoSuchElementException_init_$Create$_0('Char sequence is empty.');
return charSequenceGet(_this__u8e3s4, 0);
}
function drop(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested character count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
// Inline function 'kotlin.text.substring' call
var startIndex = coerceAtMost(n, _this__u8e3s4.length);
// Inline function 'kotlin.js.asDynamic' call
return _this__u8e3s4.substring(startIndex);
}
function take_1(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested character count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
// Inline function 'kotlin.text.substring' call
var endIndex = coerceAtMost(n, _this__u8e3s4.length);
// Inline function 'kotlin.js.asDynamic' call
return _this__u8e3s4.substring(0, endIndex);
}
function dropLast_0(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested character count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
}
function _Char___init__impl__6a9atx(value) {
return value;
}
function _get_value__a43j40($this) {
return $this;
}
function _Char___init__impl__6a9atx_0(code) {
// Inline function 'kotlin.UShort.toInt' call
var tmp$ret$0 = _UShort___get_data__impl__g0245(code) & 65535;
return _Char___init__impl__6a9atx(tmp$ret$0);
}
function Char__compareTo_impl_ypi4mb($this, other) {
return _get_value__a43j40($this) - _get_value__a43j40(other) | 0;
}
function Char__compareTo_impl_ypi4mb_0($this, other) {
return Char__compareTo_impl_ypi4mb($this.d1_1, other instanceof Char ? other.d1_1 : THROW_CCE());
}
function Char__plus_impl_qi7pgj($this, other) {
return numberToChar(_get_value__a43j40($this) + other | 0);
}
function Char__minus_impl_a2frrh($this, other) {
return _get_value__a43j40($this) - _get_value__a43j40(other) | 0;
}
function Char__minus_impl_a2frrh_0($this, other) {
return numberToChar(_get_value__a43j40($this) - other | 0);
}
function Char__rangeTo_impl_tkncvp($this, other) {
return new CharRange($this, other);
}
function Char__toInt_impl_vasixd($this) {
return _get_value__a43j40($this);
}
function toString($this) {
// Inline function 'kotlin.js.unsafeCast' call
return String.fromCharCode(_get_value__a43j40($this));
}
function Char__equals_impl_x6719k($this, other) {
if (!(other instanceof Char))
return false;
return _get_value__a43j40($this) === _get_value__a43j40(other.d1_1);
}
function Char__hashCode_impl_otmys($this) {
return _get_value__a43j40($this);
}
function Companion() {
Companion_instance = this;
this.e1_1 = _Char___init__impl__6a9atx(0);
this.f1_1 = _Char___init__impl__6a9atx(65535);
this.g1_1 = _Char___init__impl__6a9atx(55296);
this.h1_1 = _Char___init__impl__6a9atx(56319);
this.i1_1 = _Char___init__impl__6a9atx(56320);
this.j1_1 = _Char___init__impl__6a9atx(57343);
this.k1_1 = _Char___init__impl__6a9atx(55296);
this.l1_1 = _Char___init__impl__6a9atx(57343);
this.m1_1 = 2;
this.n1_1 = 16;
}
var Companion_instance;
function Companion_getInstance() {
if (Companion_instance == null)
new Companion();
return Companion_instance;
}
function Char(value) {
Companion_getInstance();
this.d1_1 = value;
}
protoOf(Char).o1 = function (other) {
return Char__compareTo_impl_ypi4mb(this.d1_1, other);
};
protoOf(Char).d = function (other) {
return Char__compareTo_impl_ypi4mb_0(this, other);
};
protoOf(Char).toString = function () {
return toString(this.d1_1);
};
protoOf(Char).equals = function (other) {
return Char__equals_impl_x6719k(this.d1_1, other);
};
protoOf(Char).hashCode = function () {
return Char__hashCode_impl_otmys(this.d1_1);
};
protoOf(Companion_0).fromJsArray = function (array) {
return createListFrom(array);
};
function Companion_0() {
}
var Companion_instance_0;
function Companion_getInstance_0() {
return Companion_instance_0;
}
function KtList() {
}
function Collection() {
}
function KtMutableList() {
}
function KtSet() {
}
function Entry() {
}
protoOf(Companion_1).fromJsMap = function (map) {
return createMapFrom(map);
};
function Companion_1() {
}
var Companion_instance_1;
function Companion_getInstance_1() {
return Companion_instance_1;
}
function KtMap() {
}
function KtMutableMap() {
}
function MutableCollection() {
}
function Companion_2() {
}
var Companion_instance_2;
function Companion_getInstance_2() {
return Companion_instance_2;
}
function Enum(name, ordinal) {
this.k2_1 = name;
this.l2_1 = ordinal;
}
protoOf(Enum).m2 = function (other) {
return compareTo(this.l2_1, other.l2_1);
};
protoOf(Enum).d = function (other) {
return this.m2(other instanceof Enum ? other : THROW_CCE());
};
protoOf(Enum).equals = function (other) {
return this === other;
};
protoOf(Enum).hashCode = function () {
return identityHashCode(this);
};
protoOf(Enum).toString = function () {
return this.k2_1;
};
function arrayOf(elements) {