package r0;

import r0.k;

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

    /* renamed from: g, reason: collision with root package name */
    public static final int f34218g = q2.j0.f33329g;

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

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

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

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

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

    /* renamed from: f, reason: collision with root package name */
    private final q2.j0 f34224f;

    public j(long j10, int i10, int i11, int i12, int i13, q2.j0 j0Var) {
        this.f34219a = j10;
        this.f34220b = i10;
        this.f34221c = i11;
        this.f34222d = i12;
        this.f34223e = i13;
        this.f34224f = j0Var;
    }

    private final b3.i b() {
        b3.i b10;
        b10 = x.b(this.f34224f, this.f34222d);
        return b10;
    }

    private final b3.i j() {
        b3.i b10;
        b10 = x.b(this.f34224f, this.f34221c);
        return b10;
    }

    public final k.a a(int i10) {
        b3.i b10;
        b10 = x.b(this.f34224f, i10);
        return new k.a(b10, i10, this.f34219a);
    }

    public final String c() {
        return this.f34224f.l().j().j();
    }

    public final e d() {
        int i10 = this.f34221c;
        int i11 = this.f34222d;
        return i10 < i11 ? e.NOT_CROSSED : i10 > i11 ? e.CROSSED : e.COLLAPSED;
    }

    public final int e() {
        return this.f34222d;
    }

    public final int f() {
        return this.f34223e;
    }

    public final int g() {
        return this.f34221c;
    }

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

    public final int i() {
        return this.f34220b;
    }

    public final q2.j0 k() {
        return this.f34224f;
    }

    public final int l() {
        return c().length();
    }

    public final boolean m(j jVar) {
        return (this.f34219a == jVar.f34219a && this.f34221c == jVar.f34221c && this.f34222d == jVar.f34222d) ? false : true;
    }

    public String toString() {
        return "SelectionInfo(id=" + this.f34219a + ", range=(" + this.f34221c + '-' + j() + ',' + this.f34222d + '-' + b() + "), prevOffset=" + this.f34223e + ')';
    }
}
