package ඓ.ῲ.K.ᕣ.㳳;

import android.text.TextUtils;
import com.facebook.GraphRequest;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ඓ.K.K.K.C1293;

/* renamed from: ඓ.ῲ.K.ᕣ.㳳.㳳  reason: contains not printable characters */
/* compiled from: LazyHeaders */
public final class C1096 implements AbstractC1115 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public volatile Map<String, String> f4562;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final Map<String, List<AbstractC1077>> f4563;

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㳳$ῲ  reason: contains not printable characters */
    /* compiled from: LazyHeaders */
    public static final class C1097 implements AbstractC1077 {

        /* renamed from: K  reason: contains not printable characters */
        public final String f4564;

        public C1097(String str) {
            this.f4564 = str;
        }

        public boolean equals(Object obj) {
            if (obj instanceof C1097) {
                return this.f4564.equals(((C1097) obj).f4564);
            }
            return false;
        }

        public int hashCode() {
            return this.f4564.hashCode();
        }

        public String toString() {
            StringBuilder r0 = C1293.m3416("StringHeaderFactory{value='");
            r0.append(this.f4564);
            r0.append('\'');
            r0.append('}');
            return r0.toString();
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㳳$K  reason: contains not printable characters */
    /* compiled from: LazyHeaders */
    public static final class C1098 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public static final Map<String, List<AbstractC1077>> f4565;

        /* renamed from: ῲ  reason: contains not printable characters */
        public static final String f4566;

        /* renamed from: K  reason: contains not printable characters */
        public Map<String, List<AbstractC1077>> f4567 = f4565;

        static {
            String property = System.getProperty("http.agent");
            if (!TextUtils.isEmpty(property)) {
                int length = property.length();
                StringBuilder sb = new StringBuilder(property.length());
                for (int i = 0; i < length; i++) {
                    char charAt = property.charAt(i);
                    if ((charAt > 31 || charAt == '\t') && charAt < 127) {
                        sb.append(charAt);
                    } else {
                        sb.append('?');
                    }
                }
                property = sb.toString();
            }
            f4566 = property;
            HashMap hashMap = new HashMap(2);
            if (!TextUtils.isEmpty(f4566)) {
                hashMap.put(GraphRequest.USER_AGENT_HEADER, Collections.singletonList(new C1097(f4566)));
            }
            f4565 = Collections.unmodifiableMap(hashMap);
        }
    }

    public C1096(Map<String, List<AbstractC1077>> map) {
        this.f4563 = Collections.unmodifiableMap(map);
    }

    public boolean equals(Object obj) {
        if (obj instanceof C1096) {
            return this.f4563.equals(((C1096) obj).f4563);
        }
        return false;
    }

    public int hashCode() {
        return this.f4563.hashCode();
    }

    public String toString() {
        StringBuilder r0 = C1293.m3416("LazyHeaders{headers=");
        r0.append(this.f4563);
        r0.append('}');
        return r0.toString();
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final Map<String, String> m2959() {
        HashMap hashMap = new HashMap();
        for (Map.Entry<String, List<AbstractC1077>> entry : this.f4563.entrySet()) {
            List<AbstractC1077> value = entry.getValue();
            StringBuilder sb = new StringBuilder();
            int size = value.size();
            for (int i = 0; i < size; i++) {
                String str = ((C1097) value.get(i)).f4564;
                if (!TextUtils.isEmpty(str)) {
                    sb.append(str);
                    if (i != value.size() - 1) {
                        sb.append(',');
                    }
                }
            }
            String sb2 = sb.toString();
            if (!TextUtils.isEmpty(sb2)) {
                hashMap.put(entry.getKey(), sb2);
            }
        }
        return hashMap;
    }

    @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1115
    /* renamed from: K  reason: contains not printable characters */
    public Map<String, String> m2960() {
        if (this.f4562 == null) {
            synchronized (this) {
                if (this.f4562 == null) {
                    this.f4562 = Collections.unmodifiableMap(m2959());
                }
            }
        }
        return this.f4562;
    }
}
