package ඓ.ῲ.K.ᕣ.㳳;

import android.net.Uri;
import android.text.TextUtils;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.MessageDigest;
import ඓ.ῲ.K.ᕣ.AbstractC1029;
import ῲ.ᨨ.㳳.C1841;

/* renamed from: ඓ.ῲ.K.ᕣ.㳳.ⁱ  reason: contains not printable characters */
/* compiled from: GlideUrl */
public class C1085 implements AbstractC1029 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final URL f4542;

    /* renamed from: ඓ  reason: contains not printable characters */
    public String f4543;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final AbstractC1115 f4544;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public volatile byte[] f4545;

    /* renamed from: 㴹  reason: contains not printable characters */
    public URL f4546;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final String f4547;

    /* renamed from: 㿎  reason: contains not printable characters */
    public int f4548;

    public C1085(URL url) {
        AbstractC1115 r0 = AbstractC1115.f4579;
        C1841.m4783(url, "Argument must not be null");
        this.f4542 = url;
        this.f4547 = null;
        C1841.m4783(r0, "Argument must not be null");
        this.f4544 = r0;
    }

    @Override // ඓ.ῲ.K.ᕣ.AbstractC1029
    public boolean equals(Object obj) {
        if (!(obj instanceof C1085)) {
            return false;
        }
        C1085 r4 = (C1085) obj;
        if (!m2940().equals(r4.m2940()) || !this.f4544.equals(r4.f4544)) {
            return false;
        }
        return true;
    }

    @Override // ඓ.ῲ.K.ᕣ.AbstractC1029
    public int hashCode() {
        if (this.f4548 == 0) {
            this.f4548 = m2940().hashCode();
            this.f4548 = this.f4544.hashCode() + (this.f4548 * 31);
        }
        return this.f4548;
    }

    public String toString() {
        return m2940();
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public URL m2939() throws MalformedURLException {
        if (this.f4546 == null) {
            if (TextUtils.isEmpty(this.f4543)) {
                String str = this.f4547;
                if (TextUtils.isEmpty(str)) {
                    URL url = this.f4542;
                    C1841.m4783(url, "Argument must not be null");
                    str = url.toString();
                }
                this.f4543 = Uri.encode(str, "@#&=*+-_.,:!?()/~'%;$");
            }
            this.f4546 = new URL(this.f4543);
        }
        return this.f4546;
    }

    /* renamed from: K  reason: contains not printable characters */
    public String m2940() {
        String str = this.f4547;
        if (str != null) {
            return str;
        }
        URL url = this.f4542;
        C1841.m4783(url, "Argument must not be null");
        return url.toString();
    }

    @Override // ඓ.ῲ.K.ᕣ.AbstractC1029
    /* renamed from: K  reason: contains not printable characters */
    public void m2941(MessageDigest messageDigest) {
        if (this.f4545 == null) {
            this.f4545 = m2940().getBytes(AbstractC1029.f4473);
        }
        messageDigest.update(this.f4545);
    }

    public C1085(String str) {
        AbstractC1115 r0 = AbstractC1115.f4579;
        this.f4542 = null;
        C1841.m4787(str);
        this.f4547 = str;
        C1841.m4783(r0, "Argument must not be null");
        this.f4544 = r0;
    }
}
