package defpackage;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;

/* JADX INFO: renamed from: ˇˀˆˁ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0947 {

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public static final HashMap f4112;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public static final ᵧᵙᵤ f4113;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public static final C1353 f4114;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public static final C0947 f4115;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public static final C5525 f4116;

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final String f4117;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final C5525 f4118;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public int f4119;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final String f4120;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public String f4121;

    static {
        String str = ᵻᵕᵭ.ʽᵡᵢᵾ(StandardCharsets.UTF_8.name());
        ᵢʒʡᵟ r1 = new ᵢʒʡᵟ(2);
        r1.ˑʢ("charset", str);
        f4116 = r1.ˊᵾʽʼ();
        C4082 c4082 = C4082.f15666;
        C4082 c40822 = C4082.f15667;
        c40822.getClass();
        C4976 c4976 = new C4976(c40822);
        c4082.getClass();
        f4114 = new C1353(new C1353(new C1353(c4082, c4976), new C1692(' ', 1)), AbstractC1351.m3869("()<>@,;:\\\"/[]?=").mo3872());
        AbstractC1351.m3869("\"\\\r").mo3872().getClass();
        AbstractC1351.m3869(" \t\r\n");
        f4112 = new HashMap();
        m3193("*", "*");
        m3193("text", "*");
        m3193("image", "*");
        m3193("audio", "*");
        m3193("video", "*");
        m3193("application", "*");
        m3193("font", "*");
        m3192("text", "cache-manifest");
        m3192("text", "css");
        m3192("text", "csv");
        m3192("text", "html");
        m3192("text", "calendar");
        m3192("text", "markdown");
        m3192("text", "plain");
        m3192("text", "javascript");
        m3192("text", "tab-separated-values");
        m3192("text", "vcard");
        m3192("text", "vnd.wap.wml");
        m3192("text", "xml");
        m3192("text", "vtt");
        m3193("image", "bmp");
        m3193("image", "x-canon-crw");
        m3193("image", "gif");
        m3193("image", "vnd.microsoft.icon");
        m3193("image", "jpeg");
        m3193("image", "png");
        m3193("image", "vnd.adobe.photoshop");
        m3192("image", "svg+xml");
        m3193("image", "tiff");
        m3193("image", "webp");
        m3193("image", "heif");
        m3193("image", "jp2");
        m3193("audio", "mp4");
        m3193("audio", "mpeg");
        m3193("audio", "ogg");
        m3193("audio", "webm");
        m3193("audio", "l16");
        m3193("audio", "l24");
        m3193("audio", "basic");
        m3193("audio", "aac");
        m3193("audio", "vorbis");
        m3193("audio", "x-ms-wma");
        m3193("audio", "x-ms-wax");
        m3193("audio", "vnd.rn-realaudio");
        m3193("audio", "vnd.wave");
        m3193("video", "mp4");
        m3193("video", "mpeg");
        m3193("video", "ogg");
        m3193("video", "quicktime");
        m3193("video", "webm");
        m3193("video", "x-ms-wmv");
        m3193("video", "x-flv");
        m3193("video", "3gpp");
        m3193("video", "3gpp2");
        m3192("application", "xml");
        m3192("application", "atom+xml");
        m3193("application", "x-bzip2");
        m3192("application", "dart");
        m3193("application", "vnd.apple.pkpass");
        m3193("application", "vnd.ms-fontobject");
        m3193("application", "epub+zip");
        m3193("application", "x-www-form-urlencoded");
        m3193("application", "pkcs12");
        m3193("application", "binary");
        m3193("application", "geo+json");
        m3193("application", "x-gzip");
        m3193("application", "hal+json");
        m3192("application", "javascript");
        m3193("application", "jose");
        m3193("application", "jose+json");
        f4115 = m3192("application", "json");
        m3193("application", "jwt");
        m3192("application", "manifest+json");
        m3193("application", "vnd.google-earth.kml+xml");
        m3193("application", "vnd.google-earth.kmz");
        m3193("application", "mbox");
        m3193("application", "x-apple-aspen-config");
        m3193("application", "vnd.ms-excel");
        m3193("application", "vnd.ms-outlook");
        m3193("application", "vnd.ms-powerpoint");
        m3193("application", "msword");
        m3193("application", "dash+xml");
        m3193("application", "wasm");
        m3193("application", "x-nacl");
        m3193("application", "x-pnacl");
        m3193("application", "octet-stream");
        m3193("application", "ogg");
        m3193("application", "vnd.openxmlformats-officedocument.wordprocessingml.document");
        m3193("application", "vnd.openxmlformats-officedocument.presentationml.presentation");
        m3193("application", "vnd.openxmlformats-officedocument.spreadsheetml.sheet");
        m3193("application", "vnd.oasis.opendocument.graphics");
        m3193("application", "vnd.oasis.opendocument.presentation");
        m3193("application", "vnd.oasis.opendocument.spreadsheet");
        m3193("application", "vnd.oasis.opendocument.text");
        m3192("application", "opensearchdescription+xml");
        m3193("application", "pdf");
        m3193("application", "postscript");
        m3193("application", "protobuf");
        m3192("application", "rdf+xml");
        m3192("application", "rtf");
        m3193("application", "font-sfnt");
        m3193("application", "x-shockwave-flash");
        m3193("application", "vnd.sketchup.skp");
        m3192("application", "soap+xml");
        m3193("application", "x-tar");
        m3193("application", "font-woff");
        m3193("application", "font-woff2");
        m3192("application", "xhtml+xml");
        m3192("application", "xrd+xml");
        m3193("application", "zip");
        m3193("font", "collection");
        m3193("font", "otf");
        m3193("font", "sfnt");
        m3193("font", "ttf");
        m3193("font", "woff");
        m3193("font", "woff2");
        f4113 = new ᵧᵙᵤ(29, new C2571("; "));
    }

    public C0947(String str, String str2, C5525 c5525) {
        this.f4120 = str;
        this.f4117 = str2;
        this.f4118 = c5525;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static C0947 m3192(String str, String str2) {
        C0947 c0947 = new C0947(str, str2, f4116);
        f4112.put(c0947, c0947);
        StandardCharsets.UTF_8.getClass();
        return c0947;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static void m3193(String str, String str2) {
        C0947 c0947 = new C0947(str, str2, C3259.f12404);
        f4112.put(c0947, c0947);
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof C0947)) {
            return false;
        }
        C0947 c0947 = (C0947) obj;
        return this.f4120.equals(c0947.f4120) && this.f4117.equals(c0947.f4117) && m3194().equals(c0947.m3194());
    }

    public final int hashCode() {
        int i = this.f4119;
        if (i != 0) {
            return i;
        }
        int iHashCode = Arrays.hashCode(new Object[]{this.f4120, this.f4117, m3194()});
        this.f4119 = iHashCode;
        return iHashCode;
    }

    public final String toString() {
        String str = this.f4121;
        if (str != null) {
            return str;
        }
        StringBuilder sb = new StringBuilder();
        sb.append(this.f4120);
        sb.append('/');
        sb.append(this.f4117);
        C5525 c5525 = this.f4118;
        if (c5525.f20852 != 0) {
            sb.append("; ");
            Collection collectionMo2972 = new C1904(c5525, new ᵢʒʡᵟ(7, new C3821(10))).mo2972();
            ᵧᵙᵤ r2 = f4113;
            r2.getClass();
            try {
                r2.ʽᵡᵢᵾ(sb, collectionMo2972.iterator());
            } catch (IOException e) {
                throw new AssertionError(e);
            }
        }
        String string = sb.toString();
        this.f4121 = string;
        return string;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final C0212 m3194() {
        return new C0212(this.f4118.mo2969(), new ᵢʒʡᵟ(7, new C3821(11)));
    }
}
