UNPKG

@cpaassdk/cpaas-sdk

Version:
1,509 lines (1,507 loc) 462 kB
//region block: polyfills 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') { Object.defineProperty(Array.prototype, 'fill', {value: function (value) { if (this == null) { throw new TypeError('this is null or not defined'); } var O = Object(this); var len = O.length >>> 0; var start = arguments[1]; var relativeStart = start >> 0; var k = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); var end = arguments[2]; var relativeEnd = end === undefined ? len : end >> 0; var finalValue = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); while (k < finalValue) { O[k] = value; k++; } 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}); } }); 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; }; }(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; }}); } if (typeof Math.imul === 'undefined') { Math.imul = function imul(a, b) { return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0; }; } //endregion (function (root, factory) { if (typeof define === 'function' && define.amd) define(['exports'], factory); else if (typeof exports === 'object') factory(module.exports); else root['kotlin-kotlin-stdlib-js-ir'] = factory(typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined' ? {} : this['kotlin-kotlin-stdlib-js-ir']); }(this, function (_) { 'use strict'; //region block: imports var imul = Math.imul; var clz32 = Math.clz32; var isView = ArrayBuffer.isView; //endregion //region block: pre-declaration Exception.prototype = Object.create(Error.prototype); Exception.prototype.constructor = Exception; RuntimeException.prototype = Object.create(Exception.prototype); RuntimeException.prototype.constructor = RuntimeException; KotlinNothingValueException.prototype = Object.create(RuntimeException.prototype); KotlinNothingValueException.prototype.constructor = KotlinNothingValueException; AbstractSet.prototype = Object.create(AbstractCollection.prototype); AbstractSet.prototype.constructor = AbstractSet; AbstractMap$keys$1.prototype = Object.create(AbstractSet.prototype); AbstractMap$keys$1.prototype.constructor = AbstractMap$keys$1; AbstractMap$values$1.prototype = Object.create(AbstractCollection.prototype); AbstractMap$values$1.prototype.constructor = AbstractMap$values$1; AbstractMutableCollection.prototype = Object.create(AbstractCollection.prototype); AbstractMutableCollection.prototype.constructor = AbstractMutableCollection; AbstractMutableList.prototype = Object.create(AbstractMutableCollection.prototype); AbstractMutableList.prototype.constructor = AbstractMutableList; ArrayDeque.prototype = Object.create(AbstractMutableList.prototype); ArrayDeque.prototype.constructor = ArrayDeque; function plus(context) { var tmp; if (context === EmptyCoroutineContext_getInstance()) { tmp = this; } else { tmp = context.e5(this, CoroutineContext$plus$lambda()); } return tmp; } function get(key) { var tmp; if (equals_1(this.x(), 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_1(this.x(), key) ? EmptyCoroutineContext_getInstance() : this; } function releaseInterceptedContinuation(continuation) { } function get_0(key) { if (key instanceof AbstractCoroutineContextKey) { var tmp; if (key.c5(this.x())) { var tmp_0 = key.b5(this); tmp = (!(tmp_0 == null) ? isInterface(tmp_0, Element) : false) ? tmp_0 : null; } else { tmp = null; } return tmp; } var tmp_1; if (Key_getInstance() === 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.c5(this.x()) ? !(key.b5(this) == null) : false) ? EmptyCoroutineContext_getInstance() : this; } return Key_getInstance() === key ? EmptyCoroutineContext_getInstance() : this; } CoroutineSingletons.prototype = Object.create(Enum.prototype); CoroutineSingletons.prototype.constructor = CoroutineSingletons; Default.prototype = Object.create(Random.prototype); Default.prototype.constructor = Default; XorWowRandom.prototype = Object.create(Random.prototype); XorWowRandom.prototype.constructor = XorWowRandom; function contains(value) { return compareTo_0(value, this.i6()) >= 0 ? compareTo_0(value, this.g6()) <= 0 : false; } function contains_0(value) { return this.h6(this.i6(), value) ? this.h6(value, this.g6()) : false; } DeepRecursiveScopeImpl.prototype = Object.create(DeepRecursiveScope.prototype); DeepRecursiveScopeImpl.prototype.constructor = DeepRecursiveScopeImpl; LazyThreadSafetyMode.prototype = Object.create(Enum.prototype); LazyThreadSafetyMode.prototype.constructor = LazyThreadSafetyMode; Error_0.prototype = Object.create(Error.prototype); Error_0.prototype.constructor = Error_0; NotImplementedError.prototype = Object.create(Error_0.prototype); NotImplementedError.prototype.constructor = NotImplementedError; IntProgressionIterator.prototype = Object.create(IntIterator.prototype); IntProgressionIterator.prototype.constructor = IntProgressionIterator; CharProgressionIterator.prototype = Object.create(CharIterator.prototype); CharProgressionIterator.prototype.constructor = CharProgressionIterator; IntRange.prototype = Object.create(IntProgression.prototype); IntRange.prototype.constructor = IntRange; CharRange.prototype = Object.create(CharProgression.prototype); CharRange.prototype.constructor = CharRange; ListIteratorImpl.prototype = Object.create(IteratorImpl.prototype); ListIteratorImpl.prototype.constructor = ListIteratorImpl; AbstractMutableSet.prototype = Object.create(AbstractMutableCollection.prototype); AbstractMutableSet.prototype.constructor = AbstractMutableSet; AbstractEntrySet.prototype = Object.create(AbstractMutableSet.prototype); AbstractEntrySet.prototype.constructor = AbstractEntrySet; AbstractMutableMap$keys$1.prototype = Object.create(AbstractMutableSet.prototype); AbstractMutableMap$keys$1.prototype.constructor = AbstractMutableMap$keys$1; AbstractMutableMap$values$1.prototype = Object.create(AbstractMutableCollection.prototype); AbstractMutableMap$values$1.prototype.constructor = AbstractMutableMap$values$1; AbstractMutableMap.prototype = Object.create(AbstractMap.prototype); AbstractMutableMap.prototype.constructor = AbstractMutableMap; ArrayList.prototype = Object.create(AbstractMutableList.prototype); ArrayList.prototype.constructor = ArrayList; EntrySet.prototype = Object.create(AbstractEntrySet.prototype); EntrySet.prototype.constructor = EntrySet; HashMap.prototype = Object.create(AbstractMutableMap.prototype); HashMap.prototype.constructor = HashMap; HashSet.prototype = Object.create(AbstractMutableSet.prototype); HashSet.prototype.constructor = HashSet; function createJsMap() { var result = Object.create(null); result['foo'] = 1; jsDeleteProperty(result, 'foo'); return result; } ChainEntry.prototype = Object.create(SimpleEntry.prototype); ChainEntry.prototype.constructor = ChainEntry; EntrySet_0.prototype = Object.create(AbstractEntrySet.prototype); EntrySet_0.prototype.constructor = EntrySet_0; LinkedHashMap.prototype = Object.create(HashMap.prototype); LinkedHashMap.prototype.constructor = LinkedHashMap; LinkedHashSet.prototype = Object.create(HashSet.prototype); LinkedHashSet.prototype.constructor = LinkedHashSet; NodeJsOutput.prototype = Object.create(BaseOutput.prototype); NodeJsOutput.prototype.constructor = NodeJsOutput; BufferedOutput.prototype = Object.create(BaseOutput.prototype); BufferedOutput.prototype.constructor = BufferedOutput; BufferedOutputToConsoleLog.prototype = Object.create(BufferedOutput.prototype); BufferedOutputToConsoleLog.prototype.constructor = BufferedOutputToConsoleLog; IllegalStateException.prototype = Object.create(RuntimeException.prototype); IllegalStateException.prototype.constructor = IllegalStateException; CancellationException.prototype = Object.create(IllegalStateException.prototype); CancellationException.prototype.constructor = CancellationException; PrimitiveKClassImpl.prototype = Object.create(KClassImpl.prototype); PrimitiveKClassImpl.prototype.constructor = PrimitiveKClassImpl; NothingKClassImpl.prototype = Object.create(KClassImpl.prototype); NothingKClassImpl.prototype.constructor = NothingKClassImpl; SimpleKClassImpl.prototype = Object.create(KClassImpl.prototype); SimpleKClassImpl.prototype.constructor = SimpleKClassImpl; CharacterCodingException.prototype = Object.create(Exception.prototype); CharacterCodingException.prototype.constructor = CharacterCodingException; Long.prototype = Object.create(Number_0.prototype); Long.prototype.constructor = Long; _no_name_provided__qut3iv_4.prototype = Object.create(CoroutineImpl.prototype); _no_name_provided__qut3iv_4.prototype.constructor = _no_name_provided__qut3iv_4; _no_name_provided__qut3iv_5.prototype = Object.create(CoroutineImpl.prototype); _no_name_provided__qut3iv_5.prototype.constructor = _no_name_provided__qut3iv_5; IllegalArgumentException.prototype = Object.create(RuntimeException.prototype); IllegalArgumentException.prototype.constructor = IllegalArgumentException; NoSuchElementException.prototype = Object.create(RuntimeException.prototype); NoSuchElementException.prototype.constructor = NoSuchElementException; UnsupportedOperationException.prototype = Object.create(RuntimeException.prototype); UnsupportedOperationException.prototype.constructor = UnsupportedOperationException; IndexOutOfBoundsException.prototype = Object.create(RuntimeException.prototype); IndexOutOfBoundsException.prototype.constructor = IndexOutOfBoundsException; ArithmeticException.prototype = Object.create(RuntimeException.prototype); ArithmeticException.prototype.constructor = ArithmeticException; NumberFormatException.prototype = Object.create(IllegalArgumentException.prototype); NumberFormatException.prototype.constructor = NumberFormatException; NullPointerException.prototype = Object.create(RuntimeException.prototype); NullPointerException.prototype.constructor = NullPointerException; NoWhenBranchMatchedException.prototype = Object.create(RuntimeException.prototype); NoWhenBranchMatchedException.prototype.constructor = NoWhenBranchMatchedException; ClassCastException.prototype = Object.create(RuntimeException.prototype); ClassCastException.prototype.constructor = ClassCastException; UninitializedPropertyAccessException.prototype = Object.create(RuntimeException.prototype); UninitializedPropertyAccessException.prototype.constructor = UninitializedPropertyAccessException; //endregion function toList(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.length; switch (tmp0_subject) { case 0: return emptyList(); case 1: return listOf_0(_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 get_indices_0(_this__u8e3s4) { return new IntRange(0, get_lastIndex_0(_this__u8e3s4)); } function firstOrNull(_this__u8e3s4) { var tmp; var tmp$ret$0; { tmp$ret$0 = _this__u8e3s4.length === 0; } if (tmp$ret$0) { tmp = null; } else { tmp = _this__u8e3s4[0]; } return tmp; } function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) { return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString(); } function joinToString$default(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform, $mask0, $handler) { if (!(($mask0 & 1) === 0)) separator = ', '; if (!(($mask0 & 2) === 0)) prefix = ''; if (!(($mask0 & 4) === 0)) postfix = ''; if (!(($mask0 & 8) === 0)) limit = -1; if (!(($mask0 & 16) === 0)) truncated = '...'; if (!(($mask0 & 32) === 0)) transform = null; return joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform); } function map(_this__u8e3s4, transform) { var tmp$ret$0; { var tmp0_mapTo = ArrayList_init_$Create$_0(_this__u8e3s4.length); var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var item = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; tmp0_mapTo.a(transform(item)); } tmp$ret$0 = tmp0_mapTo; } return tmp$ret$0; } function forEach(_this__u8e3s4, action) { var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; action(element); } } function onEach(_this__u8e3s4, action) { var tmp$ret$0; { { } { var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; action(element); } } tmp$ret$0 = _this__u8e3s4; } return tmp$ret$0; } function isEmpty(_this__u8e3s4) { return _this__u8e3s4.length === 0; } 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_1(element, _this__u8e3s4[index_0])) { return index_0; } } while (inductionVariable_0 <= last_0); } return -1; } function toSet(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.length; switch (tmp0_subject) { case 0: return emptySet(); case 1: return setOf_0(_this__u8e3s4[0]); default: return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.length))); } } function single(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.length; var tmp; switch (tmp0_subject) { 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 any(_this__u8e3s4, predicate) { var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; if (predicate(new Char_0(element))) return true; } return false; } function contains_1(_this__u8e3s4, element) { return indexOf(_this__u8e3s4, element) >= 0; } function toMutableList(_this__u8e3s4) { return ArrayList_init_$Create$_1(asCollection(_this__u8e3s4)); } function get_lastIndex(_this__u8e3s4) { return _this__u8e3s4.length - 1 | 0; } function get_lastIndex_0(_this__u8e3s4) { return _this__u8e3s4.length - 1 | 0; } function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) { buffer.b(prefix); var count = 0; var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; $l$loop: while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; count = count + 1 | 0; if (count > 1) { buffer.b(separator); } if (limit < 0 ? true : count <= limit) { appendElement(buffer, element, transform); } else break $l$loop; } if (limit >= 0 ? count > limit : false) { buffer.b(truncated); } buffer.b(postfix); return buffer; } function mapTo(_this__u8e3s4, destination, transform) { var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var item = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; destination.a(transform(item)); } return destination; } function firstOrNull_0(_this__u8e3s4, predicate) { var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; if (predicate(element)) return element; } return null; } function toCollection(_this__u8e3s4, destination) { var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var item = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; destination.a(item); } return destination; } function isEmpty_0(_this__u8e3s4) { return _this__u8e3s4.length === 0; } function maxByOrNull(_this__u8e3s4, selector) { var tmp$ret$0; { tmp$ret$0 = _this__u8e3s4.length === 0; } if (tmp$ret$0) return null; var maxElem = _this__u8e3s4[0]; var lastIndex = get_lastIndex(_this__u8e3s4); if (lastIndex === 0) return maxElem; var maxValue = selector(maxElem); var inductionVariable = 1; if (inductionVariable <= lastIndex) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var e = _this__u8e3s4[i]; var v = selector(e); if (compareTo_0(maxValue, v) < 0) { maxElem = e; maxValue = v; } } while (!(i === lastIndex)); return maxElem; } function singleOrNull(_this__u8e3s4, predicate) { var single = null; var found = false; var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; if (predicate(element)) { if (found) return null; single = element; found = true; } } if (!found) return null; return single; } function associateBy(_this__u8e3s4, keySelector) { var capacity = coerceAtLeast(mapCapacity(_this__u8e3s4.length), 16); var tmp$ret$0; { var tmp0_associateByTo = LinkedHashMap_init_$Create$_1(capacity); var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; tmp0_associateByTo.c(keySelector(element), element); } tmp$ret$0 = tmp0_associateByTo; } return tmp$ret$0; } function zip(_this__u8e3s4, other) { var tmp$ret$2; { var tmp$ret$0; { var tmp0_minOf = _this__u8e3s4.length; var tmp1_minOf = other.length; tmp$ret$0 = Math.min(tmp0_minOf, tmp1_minOf); } var size = tmp$ret$0; var list = ArrayList_init_$Create$_0(size); var inductionVariable = 0; if (inductionVariable < size) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var tmp$ret$1; { var tmp2__anonymous__z9zvc9 = _this__u8e3s4[i]; var tmp3__anonymous__ufb84q = other[i]; tmp$ret$1 = to(tmp2__anonymous__z9zvc9, tmp3__anonymous__ufb84q); } list.a(tmp$ret$1); } while (inductionVariable < size); tmp$ret$2 = list; } return tmp$ret$2; } function associateByTo(_this__u8e3s4, destination, keySelector) { var indexedObject = _this__u8e3s4; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; destination.c(keySelector(element), element); } return destination; } function zip_0(_this__u8e3s4, other, transform) { var tmp$ret$0; { var tmp0_minOf = _this__u8e3s4.length; var tmp1_minOf = other.length; tmp$ret$0 = Math.min(tmp0_minOf, tmp1_minOf); } var size = tmp$ret$0; var list = ArrayList_init_$Create$_0(size); var inductionVariable = 0; if (inductionVariable < size) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; list.a(transform(_this__u8e3s4[i], other[i])); } while (inductionVariable < size); return list; } function get_lastIndex_1(_this__u8e3s4) { return _this__u8e3s4.length - 1 | 0; } function withIndex$lambda($this_withIndex) { return function () { return arrayIterator($this_withIndex); }; } function firstOrNull_1(_this__u8e3s4, predicate) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (predicate(element)) return element; } return null; } function map_0(_this__u8e3s4, transform) { var tmp$ret$0; { var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10)); var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); tmp0_mapTo.a(transform(item)); } tmp$ret$0 = tmp0_mapTo; } return tmp$ret$0; } function plus_0(_this__u8e3s4, elements) { if (isInterface(elements, Collection)) { var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.j() | 0); result.k(_this__u8e3s4); result.k(elements); return result; } else { var result_0 = ArrayList_init_$Create$_1(_this__u8e3s4); addAll(result_0, elements); return result_0; } } function plus_1(_this__u8e3s4, elements) { if (isInterface(_this__u8e3s4, Collection)) return plus_0(_this__u8e3s4, elements); var result = ArrayList_init_$Create$(); addAll(result, _this__u8e3s4); addAll(result, elements); return result; } function toSet_0(_this__u8e3s4) { if (isInterface(_this__u8e3s4, Collection)) { var tmp0_subject = _this__u8e3s4.j(); var tmp; switch (tmp0_subject) { case 0: tmp = emptySet(); break; case 1: var tmp_0; if (isInterface(_this__u8e3s4, List)) { tmp_0 = _this__u8e3s4.l(0); } else { tmp_0 = _this__u8e3s4.g().i(); } tmp = setOf_0(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 asSequence(_this__u8e3s4) { var tmp$ret$0; { tmp$ret$0 = new _no_name_provided__qut3iv(_this__u8e3s4); } return tmp$ret$0; } function firstOrNull_2(_this__u8e3s4) { return _this__u8e3s4.m() ? null : _this__u8e3s4.l(0); } function forEach_0(_this__u8e3s4, action) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); action(element); } } function forEachIndexed(_this__u8e3s4, action) { var index = 0; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); var tmp1 = index; index = tmp1 + 1 | 0; action(checkIndexOverflow(tmp1), item); } } function plus_2(_this__u8e3s4, element) { var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + 1 | 0); result.k(_this__u8e3s4); result.a(element); return result; } function any_0(_this__u8e3s4, predicate) { var tmp; if (isInterface(_this__u8e3s4, Collection)) { tmp = _this__u8e3s4.m(); } else { tmp = false; } if (tmp) return false; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (predicate(element)) return true; } return false; } function joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) { return joinTo_0(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString(); } function joinToString$default_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform, $mask0, $handler) { if (!(($mask0 & 1) === 0)) separator = ', '; if (!(($mask0 & 2) === 0)) prefix = ''; if (!(($mask0 & 4) === 0)) postfix = ''; if (!(($mask0 & 8) === 0)) limit = -1; if (!(($mask0 & 16) === 0)) truncated = '...'; if (!(($mask0 & 32) === 0)) transform = null; return joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform); } function sumBy(_this__u8e3s4, selector) { var sum = 0; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); sum = sum + selector(element) | 0; } return sum; } function single_0(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.j(); var tmp; switch (tmp0_subject) { case 0: throw NoSuchElementException_init_$Create$_0('List is empty.'); case 1: tmp = _this__u8e3s4.l(0); break; default: throw IllegalArgumentException_init_$Create$_0('List has more than one element.'); } return tmp; } function filter(_this__u8e3s4, predicate) { var tmp$ret$0; { var tmp0_filterTo = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (predicate(element)) { tmp0_filterTo.a(element); } } tmp$ret$0 = tmp0_filterTo; } return tmp$ret$0; } function sortedByDescending(_this__u8e3s4, selector) { var tmp$ret$0; { var tmp = sortedByDescending$lambda(selector); tmp$ret$0 = new sam$kotlin_Comparator$0(tmp); } return sortedWith(_this__u8e3s4, tmp$ret$0); } function sortedBy(_this__u8e3s4, selector) { var tmp$ret$0; { var tmp = sortedBy$lambda(selector); tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp); } return sortedWith(_this__u8e3s4, tmp$ret$0); } 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 toHashSet(_this__u8e3s4) { return toCollection_0(_this__u8e3s4, HashSet_init_$Create$_1(mapCapacity(collectionSizeOrDefault(_this__u8e3s4, 12)))); } function toBooleanArray(_this__u8e3s4) { var result = booleanArray(_this__u8e3s4.j()); var index = 0; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); var tmp1 = index; index = tmp1 + 1 | 0; result[tmp1] = element; } return result; } function fold_0(_this__u8e3s4, initial, operation) { var accumulator = initial; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); accumulator = operation(accumulator, element); } return accumulator; } function distinctBy(_this__u8e3s4, selector) { var set = HashSet_init_$Create$(); var list = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var e = tmp0_iterator.i(); var key = selector(e); if (set.a(key)) { list.a(e); } } return list; } function filterNotNull(_this__u8e3s4) { return filterNotNullTo(_this__u8e3s4, ArrayList_init_$Create$()); } function singleOrNull_0(_this__u8e3s4) { return _this__u8e3s4.j() === 1 ? _this__u8e3s4.l(0) : null; } function onEach_0(_this__u8e3s4, action) { var tmp$ret$0; { { } { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); action(element); } } tmp$ret$0 = _this__u8e3s4; } return tmp$ret$0; } function find(_this__u8e3s4, predicate) { var tmp$ret$0; $l$block: { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (predicate(element)) { tmp$ret$0 = element; break $l$block; } } tmp$ret$0 = null; } return tmp$ret$0; } function lastOrNull(_this__u8e3s4) { return _this__u8e3s4.m() ? null : _this__u8e3s4.l(_this__u8e3s4.j() - 1 | 0); } function toList_0(_this__u8e3s4) { if (isInterface(_this__u8e3s4, Collection)) { var tmp0_subject = _this__u8e3s4.j(); var tmp; switch (tmp0_subject) { case 0: tmp = emptyList(); break; case 1: var tmp_0; if (isInterface(_this__u8e3s4, List)) { tmp_0 = _this__u8e3s4.l(0); } else { tmp_0 = _this__u8e3s4.g().i(); } tmp = listOf_0(tmp_0); break; default: tmp = toMutableList_1(_this__u8e3s4); break; } return tmp; } return optimizeReadOnlyList(toMutableList_0(_this__u8e3s4)); } function mapTo_0(_this__u8e3s4, destination, transform) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); destination.a(transform(item)); } return destination; } function toCollection_0(_this__u8e3s4, destination) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); destination.a(item); } return destination; } function joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) { buffer.b(prefix); var count = 0; var tmp0_iterator = _this__u8e3s4.g(); $l$loop: while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); count = count + 1 | 0; if (count > 1) { buffer.b(separator); } if (limit < 0 ? true : count <= limit) { appendElement(buffer, element, transform); } else break $l$loop; } if (limit >= 0 ? count > limit : false) { buffer.b(truncated); } buffer.b(postfix); return buffer; } function joinTo$default(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform, $mask0, $handler) { if (!(($mask0 & 2) === 0)) separator = ', '; if (!(($mask0 & 4) === 0)) prefix = ''; if (!(($mask0 & 8) === 0)) postfix = ''; if (!(($mask0 & 16) === 0)) limit = -1; if (!(($mask0 & 32) === 0)) truncated = '...'; if (!(($mask0 & 64) === 0)) transform = null; return joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform); } function filterTo(_this__u8e3s4, destination, predicate) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (predicate(element)) { destination.a(element); } } return destination; } function sortedWith(_this__u8e3s4, comparator) { if (isInterface(_this__u8e3s4, Collection)) { if (_this__u8e3s4.j() <= 1) return toList_0(_this__u8e3s4); var tmp$ret$1; { var tmp$ret$0; { var tmp0_toTypedArray = _this__u8e3s4; tmp$ret$0 = copyToArray(tmp0_toTypedArray); } var tmp = tmp$ret$0; var tmp1_apply = isArray(tmp) ? tmp : THROW_CCE(); { } { sortWith_0(tmp1_apply, comparator); } tmp$ret$1 = tmp1_apply; } return asList(tmp$ret$1); } var tmp$ret$2; { var tmp2_apply = toMutableList_0(_this__u8e3s4); { } { sortWith(tmp2_apply, comparator); } tmp$ret$2 = tmp2_apply; } return tmp$ret$2; } function toMutableList_0(_this__u8e3s4) { if (isInterface(_this__u8e3s4, Collection)) return toMutableList_1(_this__u8e3s4); return toCollection_0(_this__u8e3s4, ArrayList_init_$Create$()); } function filterNotNullTo(_this__u8e3s4, destination) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (!(element == null)) { destination.a(element); } } return destination; } function toMutableList_1(_this__u8e3s4) { return ArrayList_init_$Create$_1(_this__u8e3s4); } function all(_this__u8e3s4, predicate) { var tmp; if (isInterface(_this__u8e3s4, Collection)) { tmp = _this__u8e3s4.m(); } else { tmp = false; } if (tmp) return true; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (!predicate(element)) return false; } return true; } function single_1(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4; if (isInterface(tmp0_subject, List)) return single_0(_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 associateByTo_0(_this__u8e3s4, destination, keySelector, valueTransform) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); destination.c(keySelector(element), valueTransform(element)); } return destination; } function mapIndexedNotNull(_this__u8e3s4, transform) { var tmp$ret$1; { var tmp1_mapIndexedNotNullTo = ArrayList_init_$Create$(); { var index = 0; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); { var tmp1 = index; index = tmp1 + 1 | 0; var tmp0__anonymous__q1qw7t = checkIndexOverflow(tmp1); var tmp0_safe_receiver = transform(tmp0__anonymous__q1qw7t, item); if (tmp0_safe_receiver == null) null; else { var tmp$ret$0; { { } tmp1_mapIndexedNotNullTo.a(tmp0_safe_receiver); tmp$ret$0 = Unit_getInstance(); } } } } } tmp$ret$1 = tmp1_mapIndexedNotNullTo; } return tmp$ret$1; } function mapIndexedNotNullTo(_this__u8e3s4, destination, transform) { { var index = 0; var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); { var tmp1 = index; index = tmp1 + 1 | 0; var tmp0__anonymous__q1qw7t = checkIndexOverflow(tmp1); var tmp0_safe_receiver = transform(tmp0__anonymous__q1qw7t, item); if (tmp0_safe_receiver == null) null; else { var tmp$ret$0; { { } destination.a(tmp0_safe_receiver); tmp$ret$0 = Unit_getInstance(); } } } } } return destination; } function flatMap(_this__u8e3s4, transform) { var tmp$ret$0; { var tmp0_flatMapTo = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); var list = transform(element); addAll(tmp0_flatMapTo, list); } tmp$ret$0 = tmp0_flatMapTo; } return tmp$ret$0; } function last(_this__u8e3s4) { if (_this__u8e3s4.m()) throw NoSuchElementException_init_$Create$_0('List is empty.'); return _this__u8e3s4.l(get_lastIndex_2(_this__u8e3s4)); } function associateBy_0(_this__u8e3s4, keySelector) { var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(_this__u8e3s4, 10)), 16); var tmp$ret$0; { var tmp0_associateByTo = LinkedHashMap_init_$Create$_1(capacity); var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); tmp0_associateByTo.c(keySelector(element), element); } tmp$ret$0 = tmp0_associateByTo; } return tmp$ret$0; } function first(_this__u8e3s4) { if (_this__u8e3s4.m()) throw NoSuchElementException_init_$Create$_0('List is empty.'); return _this__u8e3s4.l(0); } function groupingBy(_this__u8e3s4, keySelector) { return new _no_name_provided__qut3iv_0(_this__u8e3s4, keySelector); } 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_0(min, e) > 0) min = e; } return min; } function flatMapTo(_this__u8e3s4, destination, transform) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); var list = transform(element); addAll(destination, list); } return destination; } function associateByTo_1(_this__u8e3s4, destination, keySelector) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); destination.c(keySelector(element), element); } return destination; } function sam$kotlin_Comparator$0(function_0) { this.o_1 = function_0; } sam$kotlin_Comparator$0.prototype.p = function (a, b) { return this.o_1(a, b); }; sam$kotlin_Comparator$0.prototype.compare = function (a, b) { return this.p(a, b); }; sam$kotlin_Comparator$0.$metadata$ = classMeta('sam$kotlin_Comparator$0', [Comparator]); function sam$kotlin_Comparator$0_0(function_0) { this.q_1 = function_0; } sam$kotlin_Comparator$0_0.prototype.p = function (a, b) { return this.q_1(a, b); }; sam$kotlin_Comparator$0_0.prototype.compare = function (a, b) { return this.p(a, b); }; sam$kotlin_Comparator$0_0.$metadata$ = classMeta('sam$kotlin_Comparator$0', [Comparator]); function _no_name_provided__qut3iv($this_asSequence) { this.r_1 = $this_asSequence; } _no_name_provided__qut3iv.prototype.g = function () { var tmp$ret$0; { tmp$ret$0 = this.r_1.g(); } return tmp$ret$0; }; _no_name_provided__qut3iv.$metadata$ = classMeta(undefined, [Sequence]); function sortedByDescending$lambda($selector) { return function (a, b) { var tmp$ret$0; { tmp$ret$0 = compareValues($selector(b), $selector(a)); } return tmp$ret$0; }; } function sortedBy$lambda($selector) { return function (a, b) { var tmp$ret$0; { tmp$ret$0 = compareValues($selector(a), $selector(b)); } return tmp$ret$0; }; } function _no_name_provided__qut3iv_0($this_groupingBy, $keySelector) { this.s_1 = $this_groupingBy; this.t_1 = $keySelector; } _no_name_provided__qut3iv_0.prototype.u = function () { return this.s_1.g(); }; _no_name_provided__qut3iv_0.prototype.v = function (element) { return this.t_1(element); }; _no_name_provided__qut3iv_0.$metadata$ = classMeta(undefined, [Grouping]); function forEach_1(_this__u8e3s4, action) { var tmp$ret$0; { tmp$ret$0 = _this__u8e3s4.w().g(); } var tmp0_iterator = tmp$ret$0; while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); action(element); } } function toList_1(_this__u8e3s4) { if (_this__u8e3s4.j() === 0) return emptyList(); var iterator = _this__u8e3s4.w().g(); if (!iterator.h()) return emptyList(); var first = iterator.i(); if (!iterator.h()) { var tmp$ret$0; { tmp$ret$0 = new Pair(first.x(), first.y()); } return listOf_0(tmp$ret$0); } var result = ArrayList_init_$Create$_0(_this__u8e3s4.j()); var tmp$ret$1; { tmp$ret$1 = new Pair(first.x(), first.y()); } result.a(tmp$ret$1); do { var tmp$ret$2; { var tmp0_toPair = iterator.i(); tmp$ret$2 = new Pair(tmp0_toPair.x(), tmp0_toPair.y()); } result.a(tmp$ret$2); } while (iterator.h()); return result; } function onEach_1(_this__u8e3s4, action) { var tmp$ret$1; { { } { var tmp$ret$0; { tmp$ret$0 = _this__u8e3s4.w().g(); } var tmp0_iterator = tmp$ret$0; while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); action(element); } } tmp$ret$1 = _this__u8e3s4; } return tmp$ret$1; } function asSequence_0(_this__u8e3s4) { return asSequence(_this__u8e3s4.w()); } function titlecaseImpl(_this__u8e3s4) { var tmp$ret$2; { var tmp$ret$1; { var tmp$ret$0; { var tmp0_asDynamic = toString_0(_this__u8e3s4); tmp$ret$0 = tmp0_asDynamic; } var tmp1_unsafeCast = tmp$ret$0.toUpperCase(); tmp$ret$1 = tmp1_unsafeCast; } tmp$ret$2 = tmp$ret$1; } var uppercase = tmp$ret$2; if (uppercase.length > 1) { var tmp; if (equals_1(new Char_0(_this__u8e3s4), new Char_0(_Char___init__impl__6a9atx(329)))) { tmp = uppercase; } else { var tmp$ret$7; { var tmp3_plus = charSequenceGet(uppercase, 0); var tmp$ret$6; { var tmp$ret$4; { var tmp$ret$3; { tmp$ret$3 = uppercase; } tmp$ret$4 = tmp$ret$3.substring(1); } var tmp2_lowercase = tmp$ret$4; var tmp$ret$5; { tmp$ret$5 = tmp2_lowercase; } tmp$ret$6 = tmp$ret$5.toLowerCase(); } var tmp4_plus = tmp$ret$6; tmp$ret$7 = toString_0(tmp3_plus) + tmp4_plus; } tmp = tmp$ret$7; } return tmp; } return toString_0(titlecaseChar(_this__u8e3s4)); } function until(_this__u8e3s4, to) { if (to <= IntCompanionObject_getInstance().a1_1) return Companion_getInstance_11().z_1; return numberRangeToNumber(_this__u8e3s4, to - 1 | 0); } function coerceIn(_this__u8e3s4, minimumValue, maximumValue) { if (minimumValue.g1(maximumValue) > 0) throw IllegalArgumentException_init_$Create$_0('Cannot coerce value to an empty range: maximum ' + toString_2(maximumValue) + ' is less than minimum ' + toString_2(minimumValue) + '.'); if (_this__u8e3s4.g1(minimumValue) < 0) return minimumValue; if (_this__u8e3s4.g1(maximumValue) > 0) return maximumValue; return _this__u8e3s4; } function coerceAtMost(_this__u8e3s4, maximumValue) { return _this__u8e3s4 > maximumValue ? maximumValue : _this__u8e3s4; } function step(_this__u8e3s4, step) { checkStepIsPositive(step > 0, step); return Companion_getInstance_9().k1(_this__u8e3s4.h1_1, _this__u8e3s4.i1_1, _this__u8e3s4.j1_1 > 0 ? step : -step | 0); } function coerceAtLeast(_this__u8e3s4, minimumValue) { return _this__u8e3s4 < minimumValue ? minimumValue : _this__u8e3s4; } function contains_2(_this__u8e3s4, value) { return _this__u8e3s4.l1(value); } function random(_this__u8e3s4) { return random_0(_this__u8e3s4, Default_getInstance()); } function random_0(_this__u8e3s4, random) { try { return nextInt(random, _this__u8e3s4); } catch ($p) { if ($p instanceof IllegalArgumentException) { throw NoSuchElementException_init_$Create$_0($p.message); } else { throw $p; } } } function downTo(_this__u8e3s4, to) { return Companion_getInstance_9().k1(_this__u8e3s4, to, -1); } function coerceIn_0(_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 coerceAtMost_0(_this__u8e3s4, maximumValue) { return _this__u8e3s4.g1(maximumValue) > 0 ? maximumValue : _this__u8e3s4; } function map_1(_this__u8e3s4, transform) { return new TransformingSequence(_this__u8e3s4, transform); } function toList_2(_this__u8e3s4) { return optimizeReadOnlyList(toMutableList_2(_this__u8e3s4)); } function asIterable(_this__u8e3s4) { var tmp$ret$0; { tmp$ret$0 = new _no_name_provided__qut3iv_1(_this__u8e3s4); } return tmp$ret$0; } function toMutableList_2(_this__u8e3s4) { return toCollection_1(_this__u8e3s4, ArrayList_init_$Create$()); } function toCollection_1(_this__u8e3s4, destination) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); destination.a(item); } return destination; } function find_0(_this__u8e3s4, predicate) { var tmp$ret$0; $l$block: { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (predicate(element)) { tmp$ret$0 = element; break $l$block; } } tmp$ret$0 = null; } return tmp$ret$0; } function firstOrNull_3(_this__u8e3s4, predicate) { var tmp0_iterator = _this__u8e3s4.g(); while (tmp0_iterator.h()) { var element = tmp0_iterator.i(); if (predicate(element)) return element; } return null; } function _no_name_provided__qut3iv_1($this_asIterable) { this.m1_1 = $this_asIterable; } _no_name_provided__qut3iv_1.prototype.g = function () { var tmp$ret$0; { tmp$ret$0 = this.m1_1.g(); } return tmp$ret$0; }; _no_name_provided__qut3iv_1.$metadata$ = classMeta(undefined, [Iterable_0]); function plus_3(_this__u8e3s4, elements) { var tmp0_safe_receiver = collectionSizeOrNull(elements); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { var tmp$re