package com.bytedance.adsdk.ro.wsy;

import android.graphics.PointF;
import android.view.animation.Interpolator;
import com.bytedance.adsdk.ro.wsy;

/* JADX INFO: loaded from: classes.dex */
public class fm<T> {
    public final float ajl;
    private int dsz;
    private float duv;

    /* JADX INFO: renamed from: ef, reason: collision with root package name */
    public PointF f6296ef;
    private float fhx;
    public final T fm;
    private float irt;
    public final Interpolator jnr;
    private float ku;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    public final Interpolator f6297lb;
    private int onz;
    public T ro;
    private final wsy vt;
    public Float wsy;
    public PointF wu;
    public final Interpolator yz;

    public fm(wsy wsyVar, T t10, T t11, Interpolator interpolator, float f10, Float f11) {
        this.ku = -3987645.8f;
        this.duv = -3987645.8f;
        this.dsz = 784923401;
        this.onz = 784923401;
        this.fhx = Float.MIN_VALUE;
        this.irt = Float.MIN_VALUE;
        this.wu = null;
        this.f6296ef = null;
        this.vt = wsyVar;
        this.fm = t10;
        this.ro = t11;
        this.f6297lb = interpolator;
        this.yz = null;
        this.jnr = null;
        this.ajl = f10;
        this.wsy = f11;
    }

    public float ajl() {
        if (this.ku == -3987645.8f) {
            this.ku = ((Float) this.fm).floatValue();
        }
        return this.ku;
    }

    public int ef() {
        if (this.onz == 784923401) {
            this.onz = ((Integer) this.ro).intValue();
        }
        return this.onz;
    }

    public fm<T> fm(T t10, T t11) {
        return new fm<>(t10, t11);
    }

    public boolean jnr() {
        return this.f6297lb == null && this.yz == null && this.jnr == null;
    }

    public float lb() {
        wsy wsyVar = this.vt;
        if (wsyVar == null) {
            return 0.0f;
        }
        if (this.fhx == Float.MIN_VALUE) {
            this.fhx = (this.ajl - wsyVar.ajl()) / this.vt.qhl();
        }
        return this.fhx;
    }

    public String toString() {
        return "Keyframe{startValue=" + this.fm + ", endValue=" + this.ro + ", startFrame=" + this.ajl + ", endFrame=" + this.wsy + ", interpolator=" + this.f6297lb + '}';
    }

    public float wsy() {
        if (this.duv == -3987645.8f) {
            this.duv = ((Float) this.ro).floatValue();
        }
        return this.duv;
    }

    public int wu() {
        if (this.dsz == 784923401) {
            this.dsz = ((Integer) this.fm).intValue();
        }
        return this.dsz;
    }

    public float yz() {
        if (this.vt == null) {
            return 1.0f;
        }
        if (this.irt == Float.MIN_VALUE) {
            if (this.wsy == null) {
                this.irt = 1.0f;
            } else {
                this.irt = ((this.wsy.floatValue() - this.ajl) / this.vt.qhl()) + lb();
            }
        }
        return this.irt;
    }

    public fm(wsy wsyVar, T t10, T t11, Interpolator interpolator, Interpolator interpolator2, float f10, Float f11) {
        this.ku = -3987645.8f;
        this.duv = -3987645.8f;
        this.dsz = 784923401;
        this.onz = 784923401;
        this.fhx = Float.MIN_VALUE;
        this.irt = Float.MIN_VALUE;
        this.wu = null;
        this.f6296ef = null;
        this.vt = wsyVar;
        this.fm = t10;
        this.ro = t11;
        this.f6297lb = null;
        this.yz = interpolator;
        this.jnr = interpolator2;
        this.ajl = f10;
        this.wsy = f11;
    }

    public boolean fm(float f10) {
        return f10 >= lb() && f10 < yz();
    }

    public fm(wsy wsyVar, T t10, T t11, Interpolator interpolator, Interpolator interpolator2, Interpolator interpolator3, float f10, Float f11) {
        this.ku = -3987645.8f;
        this.duv = -3987645.8f;
        this.dsz = 784923401;
        this.onz = 784923401;
        this.fhx = Float.MIN_VALUE;
        this.irt = Float.MIN_VALUE;
        this.wu = null;
        this.f6296ef = null;
        this.vt = wsyVar;
        this.fm = t10;
        this.ro = t11;
        this.f6297lb = interpolator;
        this.yz = interpolator2;
        this.jnr = interpolator3;
        this.ajl = f10;
        this.wsy = f11;
    }

    public fm(T t10) {
        this.ku = -3987645.8f;
        this.duv = -3987645.8f;
        this.dsz = 784923401;
        this.onz = 784923401;
        this.fhx = Float.MIN_VALUE;
        this.irt = Float.MIN_VALUE;
        this.wu = null;
        this.f6296ef = null;
        this.vt = null;
        this.fm = t10;
        this.ro = t10;
        this.f6297lb = null;
        this.yz = null;
        this.jnr = null;
        this.ajl = Float.MIN_VALUE;
        this.wsy = Float.valueOf(Float.MAX_VALUE);
    }

    private fm(T t10, T t11) {
        this.ku = -3987645.8f;
        this.duv = -3987645.8f;
        this.dsz = 784923401;
        this.onz = 784923401;
        this.fhx = Float.MIN_VALUE;
        this.irt = Float.MIN_VALUE;
        this.wu = null;
        this.f6296ef = null;
        this.vt = null;
        this.fm = t10;
        this.ro = t11;
        this.f6297lb = null;
        this.yz = null;
        this.jnr = null;
        this.ajl = Float.MIN_VALUE;
        this.wsy = Float.valueOf(Float.MAX_VALUE);
    }
}
