(function (_, kotlin_kotlin) { 'use strict'; //region block: imports var Unit = kotlin_kotlin.$_$.si; var getKClass = kotlin_kotlin.$_$.e; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.c5; var protoOf = kotlin_kotlin.$_$.vc; var objectMeta = kotlin_kotlin.$_$.uc; var setMetadataFor = kotlin_kotlin.$_$.wc; var interfaceMeta = kotlin_kotlin.$_$.wb; var equals = kotlin_kotlin.$_$.nb; var Collection = kotlin_kotlin.$_$.p5; var isInterface = kotlin_kotlin.$_$.fc; var getKClassFromExpression = kotlin_kotlin.$_$.d; var classMeta = kotlin_kotlin.$_$.kb; var VOID = kotlin_kotlin.$_$.f; var toString = kotlin_kotlin.$_$.ad; var THROW_CCE = kotlin_kotlin.$_$.gi; var KClass = kotlin_kotlin.$_$.rd; var collectionSizeOrDefault = kotlin_kotlin.$_$.n6; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l; var Unit_instance = kotlin_kotlin.$_$.m5; var copyToArray = kotlin_kotlin.$_$.e7; var Companion_getInstance = kotlin_kotlin.$_$.d5; var emptyList = kotlin_kotlin.$_$.i7; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1; var hashCode = kotlin_kotlin.$_$.vb; //endregion //region block: pre-declaration setMetadataFor(Companion, 'Companion', objectMeta); setMetadataFor(TypeToken, 'TypeToken', interfaceMeta); setMetadataFor(Companion_0, 'Companion', objectMeta); setMetadataFor(AbstractTypeToken, 'AbstractTypeToken', classMeta, VOID, [TypeToken]); setMetadataFor(AbstractKClassTypeToken, 'AbstractKClassTypeToken', classMeta, AbstractTypeToken); setMetadataFor(JSKClassTypeToken, 'JSKClassTypeToken', classMeta, AbstractKClassTypeToken); setMetadataFor(JSKTypeTypeToken, 'JSKTypeTypeToken', classMeta, AbstractTypeToken); //endregion function Companion() { Companion_instance = this; var tmp = this; // Inline function 'org.kodein.type.erased' call tmp.q54_1 = erased(getKClass(Unit)); var tmp_0 = this; // Inline function 'org.kodein.type.erased' call tmp_0.r54_1 = erased(PrimitiveClasses_getInstance().w7()); } var Companion_instance; function Companion_getInstance_0() { if (Companion_instance == null) new Companion(); return Companion_instance; } function TypeToken() { } function Companion_0() { Companion_instance_0 = this; var tmp = this; // Inline function 'org.kodein.type.erased' call tmp.b55_1 = erased(getKClass(Unit)); var tmp_0 = this; // Inline function 'org.kodein.type.erased' call tmp_0.c55_1 = erased(PrimitiveClasses_getInstance().w7()); } var Companion_instance_0; function Companion_getInstance_1() { if (Companion_instance_0 == null) new Companion_0(); return Companion_instance_0; } function AbstractTypeToken() { Companion_getInstance_1(); } protoOf(AbstractTypeToken).a55 = function (typeToken) { if (this.equals(typeToken) ? true : this.equals(Companion_getInstance_1().c55_1)) return true; var raw = this.w54(); if (equals(raw, typeToken.w54())) { var thisParams = this.x54(); // Inline function 'kotlin.collections.isEmpty' call if (thisParams.length === 0) return true; var tokenParams = typeToken.x54(); // Inline function 'kotlin.collections.forEachIndexed' call var index = 0; var inductionVariable = 0; var last = thisParams.length; while (inductionVariable < last) { var item = thisParams[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'org.kodein.type.AbstractTypeToken.isAssignableFrom.' call var tmp1 = index; index = tmp1 + 1 | 0; var tokenParam = tokenParams[tmp1]; if (!item.a55(tokenParam)) return false; } return true; } var tmp$ret$1; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = typeToken.z54(); var tmp; if (isInterface(this_0, Collection)) { tmp = this_0.c1(); } else { tmp = false; } if (tmp) { tmp$ret$1 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'org.kodein.type.AbstractTypeToken.isAssignableFrom.' call if (this.a55(element)) { tmp$ret$1 = true; break $l$block_0; } } tmp$ret$1 = false; } return tmp$ret$1; }; protoOf(AbstractTypeToken).toString = function () { return this.u54(); }; protoOf(AbstractTypeToken).equals = function (other) { if (this === other) return true; if (!(!(other == null) ? isInterface(other, TypeToken) : false)) return false; if (getKClassFromExpression(this).equals(getKClassFromExpression(other))) return this.d55(other); if (!equals(this.w54(), other.w54())) return false; if (!this.y54() ? true : !other.y54()) { var tParams = this.x54(); var oParams = other.x54(); if (!(tParams.length === oParams.length)) return false; var inductionVariable = 0; var last = tParams.length - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (!equals(tParams[i], oParams[i])) return false; } while (inductionVariable <= last); } return true; }; protoOf(AbstractTypeToken).hashCode = function () { return this.e55(); }; function JSKClassTypeToken(type) { AbstractKClassTypeToken.call(this, type); } protoOf(JSKClassTypeToken).t54 = function () { var tmp0_elvis_lhs = this.g55_1.f7(); return tmp0_elvis_lhs == null ? '(non-denotable type)' : tmp0_elvis_lhs; }; protoOf(JSKClassTypeToken).v54 = function () { var tmp0_elvis_lhs = this.g55_1.f7(); return tmp0_elvis_lhs == null ? '(non-denotable type)' : tmp0_elvis_lhs; }; function JSKTypeTypeToken(type) { AbstractTypeToken.call(this); this.h55_1 = type; } protoOf(JSKTypeTypeToken).s54 = function () { return toString(this.h55_1); }; protoOf(JSKTypeTypeToken).u54 = function () { return toString(this.h55_1); }; protoOf(JSKTypeTypeToken).w54 = function () { var tmp = this.h55_1.t7(); return new JSKClassTypeToken((!(tmp == null) ? isInterface(tmp, KClass) : false) ? tmp : THROW_CCE()); }; protoOf(JSKTypeTypeToken).x54 = function () { // Inline function 'kotlin.collections.toTypedArray' call // Inline function 'kotlin.collections.map' call var this_0 = this.h55_1.u7(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'org.kodein.type.JSKTypeTypeToken.getGenericParameters.' call var tmp0_safe_receiver = item.el_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'org.kodein.type.JSKTypeTypeToken.getGenericParameters..' call tmp = typeToken(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp; var tmp$ret$2 = tmp1_elvis_lhs == null ? Companion_getInstance_1().c55_1 : tmp1_elvis_lhs; destination.i1(tmp$ret$2); } return copyToArray(destination); }; protoOf(JSKTypeTypeToken).y54 = function () { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.all' call var this_0 = this.h55_1.u7(); var tmp; if (isInterface(this_0, Collection)) { tmp = this_0.c1(); } else { tmp = false; } if (tmp) { tmp$ret$0 = true; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'org.kodein.type.JSKTypeTypeToken.isWildcard.' call if (!element.equals(Companion_getInstance().cl())) { tmp$ret$0 = false; break $l$block_0; } } tmp$ret$0 = true; } return tmp$ret$0; }; protoOf(JSKTypeTypeToken).z54 = function () { return emptyList(); }; protoOf(JSKTypeTypeToken).d55 = function (other) { // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call if (!(other instanceof JSKTypeTypeToken)) { // Inline function 'kotlin.require.' call var message = 'Failed requirement.'; throw IllegalArgumentException_init_$Create$(toString(message)); } return equals(this.h55_1, other.h55_1); }; protoOf(JSKTypeTypeToken).e55 = function () { return hashCode(this.h55_1); }; function erasedOf(obj) { return new JSKClassTypeToken(getKClassFromExpression(obj)); } function typeToken(type) { var tmp; if (type.u7().c1()) { var tmp_0 = type.t7(); tmp = new JSKClassTypeToken((!(tmp_0 == null) ? isInterface(tmp_0, KClass) : false) ? tmp_0 : THROW_CCE()); } else { tmp = new JSKTypeTypeToken(type); } return tmp; } function erased(cls) { return new JSKClassTypeToken(cls); } function AbstractKClassTypeToken(type) { AbstractTypeToken.call(this); this.g55_1 = type; } protoOf(AbstractKClassTypeToken).s54 = function () { return this.t54(); }; protoOf(AbstractKClassTypeToken).u54 = function () { return this.v54(); }; protoOf(AbstractKClassTypeToken).w54 = function () { return this; }; protoOf(AbstractKClassTypeToken).y54 = function () { return true; }; protoOf(AbstractKClassTypeToken).z54 = function () { return emptyList(); }; protoOf(AbstractKClassTypeToken).x54 = function () { // Inline function 'kotlin.emptyArray' call return []; }; protoOf(AbstractKClassTypeToken).a55 = function (typeToken) { if (this.equals(typeToken)) return true; if (this.g55_1.equals(PrimitiveClasses_getInstance().w7())) return true; return false; }; protoOf(AbstractKClassTypeToken).d55 = function (other) { // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.require' call // Inline function 'kotlin.contracts.contract' call if (!(other instanceof AbstractKClassTypeToken)) { // Inline function 'kotlin.require.' call var message = 'Failed requirement.'; throw IllegalArgumentException_init_$Create$(toString(message)); } if (!this.g55_1.equals(other.g55_1)) return false; return true; }; protoOf(AbstractKClassTypeToken).e55 = function () { return this.g55_1.hashCode(); }; //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = Companion_getInstance_0; _.$_$.b = TypeToken; _.$_$.c = erasedOf; _.$_$.d = typeToken; //endregion return _; }(module.exports, require('./kotlin-kotlin-stdlib.js'))); //# sourceMappingURL=Kosi-Kaverit-kaverit.js.map