CrackMe.apk
Download file
package kotlin.jvm.internal;
import androidx.autofill.HintConstants;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.Function;
import kotlin.KotlinNothingValueException;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.KotlinReflectionNotSupportedError;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function10;
import kotlin.jvm.functions.Function11;
import kotlin.jvm.functions.Function12;
import kotlin.jvm.functions.Function13;
import kotlin.jvm.functions.Function14;
import kotlin.jvm.functions.Function15;
import kotlin.jvm.functions.Function16;
import kotlin.jvm.functions.Function17;
import kotlin.jvm.functions.Function18;
import kotlin.jvm.functions.Function19;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function20;
import kotlin.jvm.functions.Function21;
import kotlin.jvm.functions.Function22;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.functions.Function4;
import kotlin.jvm.functions.Function5;
import kotlin.jvm.functions.Function6;
import kotlin.jvm.functions.Function7;
import kotlin.jvm.functions.Function8;
import kotlin.jvm.functions.Function9;
import kotlin.reflect.KCallable;
import kotlin.reflect.KClass;
import kotlin.reflect.KFunction;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeParameter;
import kotlin.reflect.KVisibility;
import kotlin.text.StringsKt;
import kotlin.text.Typography;
import org.apache.commons.io.FilenameUtils;
@Metadata(d1 = {"\u0000p\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\u0003\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0016\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0001\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\u0018\u0000 O2\b\u0012\u0004\u0012\u00020\u00020\u00012\u00020\u0003:\u0001OB\u0011\u0012\n\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0005¢\u0006\u0002\u0010\u0006J\u0013\u0010F\u001a\u00020\u00122\b\u0010G\u001a\u0004\u0018\u00010\u0002H\u0002J\b\u0010H\u001a\u00020IH\u0002J\b\u0010J\u001a\u00020KH\u0016J\u0012\u0010L\u001a\u00020\u00122\b\u0010M\u001a\u0004\u0018\u00010\u0002H\u0017J\b\u0010N\u001a\u000201H\u0016R\u001a\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\b8VX\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR \u0010\f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00020\u000e0\r8VX\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0011\u0010\u0015R\u001a\u0010\u0016\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b\u0017\u0010\u0014\u001a\u0004\b\u0016\u0010\u0015R\u001a\u0010\u0018\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b\u0019\u0010\u0014\u001a\u0004\b\u0018\u0010\u0015R\u001a\u0010\u001a\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b\u001b\u0010\u0014\u001a\u0004\b\u001a\u0010\u0015R\u001a\u0010\u001c\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b\u001d\u0010\u0014\u001a\u0004\b\u001c\u0010\u0015R\u001a\u0010\u001e\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b\u001f\u0010\u0014\u001a\u0004\b\u001e\u0010\u0015R\u001a\u0010 \u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b!\u0010\u0014\u001a\u0004\b \u0010\u0015R\u001a\u0010\"\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b#\u0010\u0014\u001a\u0004\b\"\u0010\u0015R\u001a\u0010$\u001a\u00020\u00128VX\u0004¢\u0006\f\u0012\u0004\b%\u0010\u0014\u001a\u0004\b$\u0010\u0015R\u0018\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0005X\u0004¢\u0006\b\n\u0000\u001a\u0004\b&\u0010'R\u001e\u0010(\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030)0\r8VX\u0004¢\u0006\u0006\u001a\u0004\b*\u0010\u0010R\u001e\u0010+\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00010\r8VX\u0004¢\u0006\u0006\u001a\u0004\b,\u0010\u0010R\u0016\u0010-\u001a\u0004\u0018\u00010\u00028VX\u0004¢\u0006\u0006\u001a\u0004\b.\u0010/R\u0016\u00100\u001a\u0004\u0018\u0001018VX\u0004¢\u0006\u0006\u001a\u0004\b2\u00103R(\u00104\u001a\u0010\u0012\f\u0012\n\u0012\u0006\b\u0001\u0012\u00020\u00020\u00010\b8VX\u0004¢\u0006\f\u0012\u0004\b5\u0010\u0014\u001a\u0004\b6\u0010\u000bR\u0016\u00107\u001a\u0004\u0018\u0001018VX\u0004¢\u0006\u0006\u001a\u0004\b8\u00103R \u00109\u001a\b\u0012\u0004\u0012\u00020:0\b8VX\u0004¢\u0006\f\u0012\u0004\b;\u0010\u0014\u001a\u0004\b<\u0010\u000bR \u0010=\u001a\b\u0012\u0004\u0012\u00020>0\b8VX\u0004¢\u0006\f\u0012\u0004\b?\u0010\u0014\u001a\u0004\b@\u0010\u000bR\u001c\u0010A\u001a\u0004\u0018\u00010B8VX\u0004¢\u0006\f\u0012\u0004\bC\u0010\u0014\u001a\u0004\bD\u0010E¨\u0006P"}, d2 = {"Lkotlin/jvm/internal/ClassReference;", "Lkotlin/reflect/KClass;", "", "Lkotlin/jvm/internal/ClassBasedDeclarationContainer;", "jClass", "Ljava/lang/Class;", "(Ljava/lang/Class;)V", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "constructors", "", "Lkotlin/reflect/KFunction;", "getConstructors", "()Ljava/util/Collection;", "isAbstract", "", "isAbstract$annotations", "()V", "()Z", "isCompanion", "isCompanion$annotations", "isData", "isData$annotations", "isFinal", "isFinal$annotations", "isFun", "isFun$annotations", "isInner", "isInner$annotations", "isOpen", "isOpen$annotations", "isSealed", "isSealed$annotations", "isValue", "isValue$annotations", "getJClass", "()Ljava/lang/Class;", "members", "Lkotlin/reflect/KCallable;", "getMembers", "nestedClasses", "getNestedClasses", "objectInstance", "getObjectInstance", "()Ljava/lang/Object;", "qualifiedName", "", "getQualifiedName", "()Ljava/lang/String;", "sealedSubclasses", "getSealedSubclasses$annotations", "getSealedSubclasses", "simpleName", "getSimpleName", "supertypes", "Lkotlin/reflect/KType;", "getSupertypes$annotations", "getSupertypes", "typeParameters", "Lkotlin/reflect/KTypeParameter;", "getTypeParameters$annotations", "getTypeParameters", "visibility", "Lkotlin/reflect/KVisibility;", "getVisibility$annotations", "getVisibility", "()Lkotlin/reflect/KVisibility;", "equals", "other", "error", "", "hashCode", "", "isInstance", "value", "toString", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 6, 0}, xi = 48)
/* compiled from: ClassReference.kt */
public final class ClassReference implements KClass<Object>, ClassBasedDeclarationContainer {
public static final Companion Companion = new Companion((DefaultConstructorMarker) null);
/* access modifiers changed from: private */
public static final Map<Class<? extends Function<?>>, Integer> FUNCTION_CLASSES;
/* access modifiers changed from: private */
public static final HashMap<String, String> classFqNames;
private static final HashMap<String, String> primitiveFqNames;
private static final HashMap<String, String> primitiveWrapperFqNames;
/* access modifiers changed from: private */
public static final Map<String, String> simpleNames;
private final Class<?> jClass;
public static /* synthetic */ void getSealedSubclasses$annotations() {
}
public static /* synthetic */ void getSupertypes$annotations() {
}
public static /* synthetic */ void getTypeParameters$annotations() {
}
public static /* synthetic */ void getVisibility$annotations() {
}
public static /* synthetic */ void isAbstract$annotations() {
}
public static /* synthetic */ void isCompanion$annotations() {
}
public static /* synthetic */ void isData$annotations() {
}
public static /* synthetic */ void isFinal$annotations() {
}
public static /* synthetic */ void isFun$annotations() {
}
public static /* synthetic */ void isInner$annotations() {
}
public static /* synthetic */ void isOpen$annotations() {
}
public static /* synthetic */ void isSealed$annotations() {
}
public static /* synthetic */ void isValue$annotations() {
}
public ClassReference(Class<?> cls) {
Intrinsics.checkNotNullParameter(cls, "jClass");
this.jClass = cls;
}
public Class<?> getJClass() {
return this.jClass;
}
public String getSimpleName() {
return Companion.getClassSimpleName(getJClass());
}
public String getQualifiedName() {
return Companion.getClassQualifiedName(getJClass());
}
public Collection<KCallable<?>> getMembers() {
error();
throw new KotlinNothingValueException();
}
public Collection<KFunction<Object>> getConstructors() {
error();
throw new KotlinNothingValueException();
}
public Collection<KClass<?>> getNestedClasses() {
error();
throw new KotlinNothingValueException();
}
public List<Annotation> getAnnotations() {
error();
throw new KotlinNothingValueException();
}
public Object getObjectInstance() {
error();
throw new KotlinNothingValueException();
}
public boolean isInstance(Object obj) {
return Companion.isInstance(obj, getJClass());
}
public List<KTypeParameter> getTypeParameters() {
error();
throw new KotlinNothingValueException();
}
public List<KType> getSupertypes() {
error();
throw new KotlinNothingValueException();
}
public List<KClass<? extends Object>> getSealedSubclasses() {
error();
throw new KotlinNothingValueException();
}
public KVisibility getVisibility() {
error();
throw new KotlinNothingValueException();
}
public boolean isFinal() {
error();
throw new KotlinNothingValueException();
}
public boolean isOpen() {
error();
throw new KotlinNothingValueException();
}
public boolean isAbstract() {
error();
throw new KotlinNothingValueException();
}
public boolean isSealed() {
error();
throw new KotlinNothingValueException();
}
public boolean isData() {
error();
throw new KotlinNothingValueException();
}
public boolean isInner() {
error();
throw new KotlinNothingValueException();
}
public boolean isCompanion() {
error();
throw new KotlinNothingValueException();
}
public boolean isFun() {
error();
throw new KotlinNothingValueException();
}
public boolean isValue() {
error();
throw new KotlinNothingValueException();
}
private final Void error() {
throw new KotlinReflectionNotSupportedError();
}
public boolean equals(Object obj) {
return (obj instanceof ClassReference) && Intrinsics.areEqual((Object) JvmClassMappingKt.getJavaObjectType(this), (Object) JvmClassMappingKt.getJavaObjectType((KClass) obj));
}
public int hashCode() {
return JvmClassMappingKt.getJavaObjectType(this).hashCode();
}
public String toString() {
return getJClass().toString() + " (Kotlin reflection is not available)";
}
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0014\u0010\u000f\u001a\u0004\u0018\u00010\n2\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0005J\u0014\u0010\u0011\u001a\u0004\u0018\u00010\n2\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0005J\u001c\u0010\u0012\u001a\u00020\u00132\b\u0010\u0014\u001a\u0004\u0018\u00010\u00012\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0005R&\u0010\u0003\u001a\u001a\u0012\u0010\u0012\u000e\u0012\n\b\u0001\u0012\u0006\u0012\u0002\b\u00030\u00060\u0005\u0012\u0004\u0012\u00020\u00070\u0004X\u0004¢\u0006\u0002\n\u0000R*\u0010\b\u001a\u001e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\tj\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n`\u000bX\u0004¢\u0006\u0002\n\u0000R*\u0010\f\u001a\u001e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\tj\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n`\u000bX\u0004¢\u0006\u0002\n\u0000R*\u0010\r\u001a\u001e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\tj\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n`\u000bX\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n0\u0004X\u0004¢\u0006\u0002\n\u0000¨\u0006\u0015"}, d2 = {"Lkotlin/jvm/internal/ClassReference$Companion;", "", "()V", "FUNCTION_CLASSES", "", "Ljava/lang/Class;", "Lkotlin/Function;", "", "classFqNames", "Ljava/util/HashMap;", "", "Lkotlin/collections/HashMap;", "primitiveFqNames", "primitiveWrapperFqNames", "simpleNames", "getClassQualifiedName", "jClass", "getClassSimpleName", "isInstance", "", "value", "kotlin-stdlib"}, k = 1, mv = {1, 6, 0}, xi = 48)
/* compiled from: ClassReference.kt */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final String getClassSimpleName(Class<?> cls) {
String str;
Intrinsics.checkNotNullParameter(cls, "jClass");
String str2 = null;
if (!cls.isAnonymousClass()) {
if (cls.isLocalClass()) {
String simpleName = cls.getSimpleName();
Method enclosingMethod = cls.getEnclosingMethod();
if (enclosingMethod != null) {
Intrinsics.checkNotNullExpressionValue(simpleName, HintConstants.AUTOFILL_HINT_NAME);
String substringAfter$default = StringsKt.substringAfter$default(simpleName, enclosingMethod.getName() + Typography.dollar, (String) null, 2, (Object) null);
if (substringAfter$default != null) {
return substringAfter$default;
}
}
Constructor<?> enclosingConstructor = cls.getEnclosingConstructor();
if (enclosingConstructor != null) {
Intrinsics.checkNotNullExpressionValue(simpleName, HintConstants.AUTOFILL_HINT_NAME);
return StringsKt.substringAfter$default(simpleName, enclosingConstructor.getName() + Typography.dollar, (String) null, 2, (Object) null);
}
Intrinsics.checkNotNullExpressionValue(simpleName, HintConstants.AUTOFILL_HINT_NAME);
return StringsKt.substringAfter$default(simpleName, (char) Typography.dollar, (String) null, 2, (Object) null);
} else if (cls.isArray()) {
Class<?> componentType = cls.getComponentType();
if (componentType.isPrimitive() && (str = (String) ClassReference.simpleNames.get(componentType.getName())) != null) {
str2 = str + "Array";
}
if (str2 == null) {
return "Array";
}
} else {
String str3 = (String) ClassReference.simpleNames.get(cls.getName());
return str3 == null ? cls.getSimpleName() : str3;
}
}
return str2;
}
public final String getClassQualifiedName(Class<?> cls) {
String str;
Intrinsics.checkNotNullParameter(cls, "jClass");
String str2 = null;
if (cls.isAnonymousClass() || cls.isLocalClass()) {
return null;
}
if (cls.isArray()) {
Class<?> componentType = cls.getComponentType();
if (componentType.isPrimitive() && (str = (String) ClassReference.classFqNames.get(componentType.getName())) != null) {
str2 = str + "Array";
}
if (str2 == null) {
return "kotlin.Array";
}
return str2;
}
String str3 = (String) ClassReference.classFqNames.get(cls.getName());
return str3 == null ? cls.getCanonicalName() : str3;
}
public final boolean isInstance(Object obj, Class<?> cls) {
Intrinsics.checkNotNullParameter(cls, "jClass");
Integer num = (Integer) ClassReference.FUNCTION_CLASSES.get(cls);
if (num != null) {
return TypeIntrinsics.isFunctionOfArity(obj, num.intValue());
}
if (cls.isPrimitive()) {
cls = JvmClassMappingKt.getJavaObjectType(JvmClassMappingKt.getKotlinClass(cls));
}
return cls.isInstance(obj);
}
}
static {
int i = 0;
Iterable listOf = CollectionsKt.listOf(Function0.class, Function1.class, Function2.class, Function3.class, Function4.class, Function5.class, Function6.class, Function7.class, Function8.class, Function9.class, Function10.class, Function11.class, Function12.class, Function13.class, Function14.class, Function15.class, Function16.class, Function17.class, Function18.class, Function19.class, Function20.class, Function21.class, Function22.class);
Collection arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(listOf, 10));
for (Object next : listOf) {
int i2 = i + 1;
if (i < 0) {
CollectionsKt.throwIndexOverflow();
}
arrayList.add(TuplesKt.to((Class) next, Integer.valueOf(i)));
i = i2;
}
FUNCTION_CLASSES = MapsKt.toMap((List) arrayList);
HashMap<String, String> hashMap = new HashMap<>();
hashMap.put("boolean", "kotlin.Boolean");
hashMap.put("char", "kotlin.Char");
hashMap.put("byte", "kotlin.Byte");
hashMap.put("short", "kotlin.Short");
hashMap.put("int", "kotlin.Int");
hashMap.put("float", "kotlin.Float");
hashMap.put("long", "kotlin.Long");
hashMap.put("double", "kotlin.Double");
primitiveFqNames = hashMap;
HashMap<String, String> hashMap2 = new HashMap<>();
hashMap2.put("java.lang.Boolean", "kotlin.Boolean");
hashMap2.put("java.lang.Character", "kotlin.Char");
hashMap2.put("java.lang.Byte", "kotlin.Byte");
hashMap2.put("java.lang.Short", "kotlin.Short");
hashMap2.put("java.lang.Integer", "kotlin.Int");
hashMap2.put("java.lang.Float", "kotlin.Float");
hashMap2.put("java.lang.Long", "kotlin.Long");
hashMap2.put("java.lang.Double", "kotlin.Double");
primitiveWrapperFqNames = hashMap2;
HashMap<String, String> hashMap3 = new HashMap<>();
hashMap3.put("java.lang.Object", "kotlin.Any");
hashMap3.put("java.lang.String", "kotlin.String");
hashMap3.put("java.lang.CharSequence", "kotlin.CharSequence");
hashMap3.put("java.lang.Throwable", "kotlin.Throwable");
hashMap3.put("java.lang.Cloneable", "kotlin.Cloneable");
hashMap3.put("java.lang.Number", "kotlin.Number");
hashMap3.put("java.lang.Comparable", "kotlin.Comparable");
hashMap3.put("java.lang.Enum", "kotlin.Enum");
hashMap3.put("java.lang.annotation.Annotation", "kotlin.Annotation");
hashMap3.put("java.lang.Iterable", "kotlin.collections.Iterable");
hashMap3.put("java.util.Iterator", "kotlin.collections.Iterator");
hashMap3.put("java.util.Collection", "kotlin.collections.Collection");
hashMap3.put("java.util.List", "kotlin.collections.List");
hashMap3.put("java.util.Set", "kotlin.collections.Set");
hashMap3.put("java.util.ListIterator", "kotlin.collections.ListIterator");
hashMap3.put("java.util.Map", "kotlin.collections.Map");
hashMap3.put("java.util.Map$Entry", "kotlin.collections.Map.Entry");
hashMap3.put("kotlin.jvm.internal.StringCompanionObject", "kotlin.String.Companion");
hashMap3.put("kotlin.jvm.internal.EnumCompanionObject", "kotlin.Enum.Companion");
hashMap3.putAll(hashMap);
hashMap3.putAll(hashMap2);
Collection<String> values = hashMap.values();
Intrinsics.checkNotNullExpressionValue(values, "primitiveFqNames.values");
for (String str : values) {
StringBuilder sb = new StringBuilder();
sb.append("kotlin.jvm.internal.");
Intrinsics.checkNotNullExpressionValue(str, "kotlinName");
sb.append(StringsKt.substringAfterLast$default(str, (char) FilenameUtils.EXTENSION_SEPARATOR, (String) null, 2, (Object) null));
sb.append("CompanionObject");
String sb2 = sb.toString();
Pair pair = TuplesKt.to(sb2, str + ".Companion");
hashMap3.put(pair.getFirst(), pair.getSecond());
}
Map map = hashMap3;
for (Map.Entry next2 : FUNCTION_CLASSES.entrySet()) {
int intValue = ((Number) next2.getValue()).intValue();
String name = ((Class) next2.getKey()).getName();
hashMap3.put(name, "kotlin.Function" + intValue);
}
classFqNames = hashMap3;
Map map2 = hashMap3;
Map<String, String> linkedHashMap = new LinkedHashMap<>(MapsKt.mapCapacity(map2.size()));
for (Map.Entry entry : map2.entrySet()) {
linkedHashMap.put(entry.getKey(), StringsKt.substringAfterLast$default((String) entry.getValue(), (char) FilenameUtils.EXTENSION_SEPARATOR, (String) null, 2, (Object) null));
}
simpleNames = linkedHashMap;
}
}
Download file