package l6;

import androidx.media3.common.C;
import java.util.HashMap;
import java.util.HashSet;

/* JADX INFO: loaded from: classes.dex */
public abstract class d {
    private boolean ajl;
    private boolean duv;
    private c jnr;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private final String f30166lb;
    private g wsy;
    private boolean wu;
    private boolean yz;
    private final HashMap<Class<? extends b>, h> fm = new HashMap<>();
    private final HashSet<String> ro = new HashSet<>();

    /* JADX INFO: renamed from: ef, reason: collision with root package name */
    private long f30165ef = C.DEFAULT_MAX_SEEK_TO_PREVIOUS_POSITION_MS;
    private int vt = 2;
    private boolean ku = false;

    public d(String str) {
        this.f30166lb = str;
    }

    public final boolean ajl() {
        return this.ajl;
    }

    public boolean ef() {
        return this.ku;
    }

    public d fm(int i10) {
        if (this.yz) {
            return this;
        }
        this.vt = i10;
        return this;
    }

    public abstract boolean fm();

    public final HashMap<Class<? extends b>, h> jnr() {
        return this.fm;
    }

    public final String lb() {
        return this.f30166lb;
    }

    public g ro() {
        return this.wsy;
    }

    public boolean vt() {
        return this.duv;
    }

    public long wsy() {
        return this.f30165ef;
    }

    public int wu() {
        return this.vt;
    }

    public final c yz() {
        return this.jnr;
    }

    public d fm(long j10) {
        if (this.yz) {
            return this;
        }
        this.f30165ef = j10;
        return this;
    }

    public d jnr(boolean z10) {
        if (this.yz) {
            return this;
        }
        this.duv = z10;
        return this;
    }

    public final d lb(boolean z10) {
        if (this.yz) {
            return this;
        }
        this.wu = z10;
        return this;
    }

    public final void ro(boolean z10) {
        this.yz = z10;
    }

    public void yz(boolean z10) {
        if (this.yz) {
            return;
        }
        this.ku = z10;
    }

    public final d fm(c cVar) {
        if (this.yz) {
            return this;
        }
        this.jnr = cVar;
        return this;
    }

    public final d fm(g gVar) {
        if (this.yz) {
            return this;
        }
        this.wsy = gVar;
        return this;
    }

    public final d fm(boolean z10) {
        if (this.yz) {
            return this;
        }
        this.ajl = z10;
        return this;
    }

    public final d fm(Class<? extends b> cls, h hVar) {
        if (!this.yz && cls != null && hVar != null) {
            String strYz = hVar.yz();
            if (this.ro.contains(strYz)) {
                return this;
            }
            this.ro.add(strYz);
            this.fm.put(cls, hVar);
        }
        return this;
    }
}
