package K4;

import java.text.DateFormat;
import java.util.Date;
import java.util.regex.Pattern;
import r4.AbstractC0983h;

/* JADX INFO: loaded from: classes.dex */
public final class j {

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public static final Pattern f1131j = Pattern.compile("(\\d{2,4})[^\\d]*");

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public static final Pattern f1132k = Pattern.compile("(?i)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*");

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public static final Pattern f1133l = Pattern.compile("(\\d{1,2})[^\\d]*");

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final Pattern f1134m = Pattern.compile("(\\d{1,2}):(\\d{1,2}):(\\d{1,2})[^\\d]*");

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f1135a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f1136b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f1137c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final String f1138d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final String f1139e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean f1140f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f1141g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final boolean f1142h;
    public final boolean i;

    public j(String str, String str2, long j5, String str3, String str4, boolean z5, boolean z6, boolean z7, boolean z8) {
        this.f1135a = str;
        this.f1136b = str2;
        this.f1137c = j5;
        this.f1138d = str3;
        this.f1139e = str4;
        this.f1140f = z5;
        this.f1141g = z6;
        this.f1142h = z7;
        this.i = z8;
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof j)) {
            return false;
        }
        j jVar = (j) obj;
        return AbstractC0983h.a(jVar.f1135a, this.f1135a) && AbstractC0983h.a(jVar.f1136b, this.f1136b) && jVar.f1137c == this.f1137c && AbstractC0983h.a(jVar.f1138d, this.f1138d) && AbstractC0983h.a(jVar.f1139e, this.f1139e) && jVar.f1140f == this.f1140f && jVar.f1141g == this.f1141g && jVar.f1142h == this.f1142h && jVar.i == this.i;
    }

    public final int hashCode() {
        return Boolean.hashCode(this.i) + ((Boolean.hashCode(this.f1142h) + ((Boolean.hashCode(this.f1141g) + ((Boolean.hashCode(this.f1140f) + ((this.f1139e.hashCode() + ((this.f1138d.hashCode() + ((Long.hashCode(this.f1137c) + ((this.f1136b.hashCode() + ((this.f1135a.hashCode() + 527) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.f1135a);
        sb.append('=');
        sb.append(this.f1136b);
        if (this.f1142h) {
            long j5 = this.f1137c;
            if (j5 == Long.MIN_VALUE) {
                sb.append("; max-age=0");
            } else {
                sb.append("; expires=");
                String str = ((DateFormat) P4.c.f2550a.get()).format(new Date(j5));
                AbstractC0983h.d("STANDARD_DATE_FORMAT.get().format(this)", str);
                sb.append(str);
            }
        }
        if (!this.i) {
            sb.append("; domain=");
            sb.append(this.f1138d);
        }
        sb.append("; path=");
        sb.append(this.f1139e);
        if (this.f1140f) {
            sb.append("; secure");
        }
        if (this.f1141g) {
            sb.append("; httponly");
        }
        String string = sb.toString();
        AbstractC0983h.d("toString()", string);
        return string;
    }
}
