package ඓ.ⁱ.K.ῲ;

import java.net.URI;

/* renamed from: ඓ.ⁱ.K.ῲ.㸾  reason: contains not printable characters */
/* compiled from: Zone */
public abstract class AbstractC1258 {

    /* renamed from: ඓ.ⁱ.K.ῲ.㸾$K  reason: contains not printable characters */
    /* compiled from: Zone */
    public interface AbstractC1259 {
    }

    /* renamed from: K  reason: contains not printable characters */
    public abstract String m3364(String str, boolean z, String str2);

    /* renamed from: K  reason: contains not printable characters */
    public synchronized String m3365(C1254 r12, boolean z, String str) {
        String str2;
        String str3;
        if (str != null) {
            try {
                r12.m3358(URI.create(str).getHost());
            } catch (Throwable th) {
                throw th;
            }
        }
        int i = 0;
        while (true) {
            str2 = null;
            if (i >= r12.f4940.size()) {
                str3 = null;
                break;
            }
            str3 = r12.f4940.get(i);
            long longValue = r12.f4939.get(str3).longValue();
            if (longValue == 0) {
                break;
            } else if (longValue <= System.currentTimeMillis() / 1000) {
                break;
            } else {
                i++;
            }
        }
        if (str3 != null) {
            r12.f4939.put(str3, 0L);
        } else {
            for (String str4 : r12.f4940) {
                r12.f4939.put(str4, 0L);
            }
            if (r12.f4940.size() > 0) {
                str3 = r12.f4940.get(0);
            }
        }
        if (str3 != null) {
            if (z) {
                str2 = String.format("https://%s", str3);
            } else {
                str2 = String.format("http://%s", str3);
            }
        }
        return str2;
    }

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3366(String str);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3367(String str, AbstractC1259 k);
}
