package r1;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;

/* loaded from: classes.dex */
public final class k {

    /* renamed from: i, reason: collision with root package name */
    public static final a f34329i = new a(null);

    /* renamed from: j, reason: collision with root package name */
    private static final k f34330j = l.c(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, r1.a.f34312a.a());

    /* renamed from: a, reason: collision with root package name */
    private final float f34331a;

    /* renamed from: b, reason: collision with root package name */
    private final float f34332b;

    /* renamed from: c, reason: collision with root package name */
    private final float f34333c;

    /* renamed from: d, reason: collision with root package name */
    private final float f34334d;

    /* renamed from: e, reason: collision with root package name */
    private final long f34335e;

    /* renamed from: f, reason: collision with root package name */
    private final long f34336f;

    /* renamed from: g, reason: collision with root package name */
    private final long f34337g;

    /* renamed from: h, reason: collision with root package name */
    private final long f34338h;

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }
    }

    public /* synthetic */ k(float f10, float f11, float f12, float f13, long j10, long j11, long j12, long j13, kotlin.jvm.internal.k kVar) {
        this(f10, f11, f12, f13, j10, j11, j12, j13);
    }

    public final float a() {
        return this.f34334d;
    }

    public final long b() {
        return this.f34338h;
    }

    public final long c() {
        return this.f34337g;
    }

    public final float d() {
        return this.f34334d - this.f34332b;
    }

    public final float e() {
        return this.f34331a;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof k)) {
            return false;
        }
        k kVar = (k) obj;
        return Float.compare(this.f34331a, kVar.f34331a) == 0 && Float.compare(this.f34332b, kVar.f34332b) == 0 && Float.compare(this.f34333c, kVar.f34333c) == 0 && Float.compare(this.f34334d, kVar.f34334d) == 0 && r1.a.c(this.f34335e, kVar.f34335e) && r1.a.c(this.f34336f, kVar.f34336f) && r1.a.c(this.f34337g, kVar.f34337g) && r1.a.c(this.f34338h, kVar.f34338h);
    }

    public final float f() {
        return this.f34333c;
    }

    public final float g() {
        return this.f34332b;
    }

    public final long h() {
        return this.f34335e;
    }

    public int hashCode() {
        return (((((((((((((Float.hashCode(this.f34331a) * 31) + Float.hashCode(this.f34332b)) * 31) + Float.hashCode(this.f34333c)) * 31) + Float.hashCode(this.f34334d)) * 31) + r1.a.f(this.f34335e)) * 31) + r1.a.f(this.f34336f)) * 31) + r1.a.f(this.f34337g)) * 31) + r1.a.f(this.f34338h);
    }

    public final long i() {
        return this.f34336f;
    }

    public final float j() {
        return this.f34333c - this.f34331a;
    }

    public String toString() {
        long j10 = this.f34335e;
        long j11 = this.f34336f;
        long j12 = this.f34337g;
        long j13 = this.f34338h;
        String str = c.a(this.f34331a, 1) + ", " + c.a(this.f34332b, 1) + ", " + c.a(this.f34333c, 1) + ", " + c.a(this.f34334d, 1);
        if (!r1.a.c(j10, j11) || !r1.a.c(j11, j12) || !r1.a.c(j12, j13)) {
            return "RoundRect(rect=" + str + ", topLeft=" + ((Object) r1.a.g(j10)) + ", topRight=" + ((Object) r1.a.g(j11)) + ", bottomRight=" + ((Object) r1.a.g(j12)) + ", bottomLeft=" + ((Object) r1.a.g(j13)) + ')';
        }
        if (r1.a.d(j10) == r1.a.e(j10)) {
            return "RoundRect(rect=" + str + ", radius=" + c.a(r1.a.d(j10), 1) + ')';
        }
        return "RoundRect(rect=" + str + ", x=" + c.a(r1.a.d(j10), 1) + ", y=" + c.a(r1.a.e(j10), 1) + ')';
    }

    private k(float f10, float f11, float f12, float f13, long j10, long j11, long j12, long j13) {
        this.f34331a = f10;
        this.f34332b = f11;
        this.f34333c = f12;
        this.f34334d = f13;
        this.f34335e = j10;
        this.f34336f = j11;
        this.f34337g = j12;
        this.f34338h = j13;
    }
}
