AdGuard v4.4.135版本的 MD5 值为:95950267eaafbda3588f0934f48b2e36
以下内容为反编译后的 a.java 源代码,内容仅作参考
package q6;
import ch.qos.logback.core.joran.action.Action;
import ch.qos.logback.core.rolling.helper.DateTokenConverter;
import java.util.HashMap;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.n;
import uh.c;
import uh.d;
import z5.w;
import zh.i1;
import zh.k2;
import zh.u1;
import zh.w0;
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010%\n\u0002\b\u0007\u0018\u0000 \u00112\u00020\u0001:\u0001\fB\t\b\u0002¢\u0006\u0004\b\u000f\u0010\u0010J\u0010\u0010\u0004\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0003\u001a\u00020\u0002J\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u001a\u0010\n\u001a\u0004\u0018\u00010\t2\u0006\u0010\u0006\u001a\u00020\u00022\u0006\u0010\b\u001a\u00020\u0007H\u0002R \u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00020\u000b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\f\u0010\r¨\u0006\u0012"}, d2 = {"Lq6/a;", "", "", "host", DateTokenConverter.CONVERTER_KEY, "c", Action.NAME_ATTRIBUTE, "", "reqType", "Lzh/w0;", "e", "", "a", "Ljava/util/Map;", "cache", "<init>", "()V", "b", "kit_release"}, k = 1, mv = {1, 8, 0})
public final class a {
public static final C0987a f22757b = new C0987a(null);
public static final c f22758c = d.i(a.class);
public static volatile a f22759d;
public final Map<String, String> f22760a;
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\r\u0010\u000eJ\u0006\u0010\u0003\u001a\u00020\u0002R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0005\u0010\u0006R\u0018\u0010\u0007\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0007\u0010\bR\u001c\u0010\u000b\u001a\n \n*\u0004\u0018\u00010\t0\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lq6/a$a;", "", "Lq6/a;", "a", "", "DEFAULT_UPSTREAM", "Ljava/lang/String;", "INSTANCE", "Lq6/a;", "Luh/c;", "kotlin.jvm.PlatformType", "LOG", "Luh/c;", "<init>", "()V", "kit_release"}, k = 1, mv = {1, 8, 0})
public static final class C0987a {
public C0987a() {
}
public C0987a(h hVar) {
this();
}
public final a a() {
a aVar = a.f22759d;
if (aVar == null) {
synchronized (this) {
try {
aVar = a.f22759d;
if (aVar == null) {
aVar = new a(null);
a.f22759d = aVar;
}
} catch (Throwable th2) {
throw th2;
}
}
}
return aVar;
}
}
public a() {
this.f22760a = new HashMap();
}
public a(h hVar) {
this();
}
public final String c(String str) {
u1[] g10;
u1 u1Var;
try {
w0 e10 = e(str, 16);
String y10 = (e10 == null || (g10 = e10.g(1)) == null || (u1Var = g10[0]) == null) ? null : u1Var.y();
if (y10 != null) {
String g11 = w.g(y10, "\"", "\"");
return "https://" + g11;
}
return null;
} catch (Exception e11) {
c cVar = f22758c;
cVar.warn("Failed to resolve fallback host with " + str, (Throwable) e11);
return null;
}
}
public final String d(String host) {
n.g(host, "host");
String str = this.f22760a.get(host);
if (str == null) {
str = c(host);
if (str != null) {
this.f22760a.put(host, str);
} else {
str = null;
}
}
return str;
}
public final w0 e(String str, int i10) {
return new k2("8.8.8.8").a(w0.k(u1.v(new i1(str), i10, 1)));
}
}