package p447;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ސ.ކ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C6875 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Map<String, String> f19936;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final String f19937;

    public C6875(String str, Map<String, String> map) {
        String lowerCase;
        if (str == null) {
            C6635.m9824("scheme");
            throw null;
        }
        if (map == null) {
            C6635.m9824("authParams");
            throw null;
        }
        this.f19937 = str;
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        for (Map.Entry<String, String> entry : map.entrySet()) {
            String key = entry.getKey();
            String value = entry.getValue();
            if (key != null) {
                Locale locale = Locale.US;
                C6635.m9823((Object) locale, "US");
                lowerCase = key.toLowerCase(locale);
                C6635.m9823((Object) lowerCase, "(this as java.lang.String).toLowerCase(locale)");
            } else {
                lowerCase = null;
            }
            linkedHashMap.put(lowerCase, value);
        }
        Map<String, String> mapUnmodifiableMap = Collections.unmodifiableMap(linkedHashMap);
        C6635.m9823((Object) mapUnmodifiableMap, "unmodifiableMap<String?, String>(newAuthParams)");
        this.f19936 = mapUnmodifiableMap;
    }

    public boolean equals(Object obj) {
        if (obj instanceof C6875) {
            C6875 c6875 = (C6875) obj;
            if (C6635.m9825((Object) c6875.f19937, (Object) this.f19937) && C6635.m9825(c6875.f19936, this.f19936)) {
                return true;
            }
        }
        return false;
    }

    public int hashCode() {
        return this.f19936.hashCode() + ((this.f19937.hashCode() + 899) * 31);
    }

    public String toString() {
        return this.f19937 + " authParams=" + this.f19936;
    }
}
