package com.bytedance.adsdk.Sg.DSW;

import android.graphics.PointF;
import android.view.animation.Interpolator;
import com.bytedance.adsdk.Sg.DSW;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
/* loaded from: classes2.dex */
public class YFl<T> {
    public final Interpolator AlY;
    public Float DSW;
    private float EH;
    private int GA;
    public PointF NjR;
    public T Sg;
    public final T YFl;
    private float YoT;
    private float eT;
    private final DSW nc;
    private int pDU;
    public PointF qsH;
    private float rkt;
    public final Interpolator tN;
    public final float vc;
    public final Interpolator wN;

    public boolean wN() {
        return this.tN == null && this.AlY == null && this.wN == null;
    }

    public YFl(DSW dsw, T t, T t2, Interpolator interpolator, float f, Float f2) {
        this.eT = -3987645.8f;
        this.YoT = -3987645.8f;
        this.GA = 784923401;
        this.pDU = 784923401;
        this.EH = Float.MIN_VALUE;
        this.rkt = Float.MIN_VALUE;
        this.qsH = null;
        this.NjR = null;
        this.nc = dsw;
        this.YFl = t;
        this.Sg = t2;
        this.tN = interpolator;
        this.AlY = null;
        this.wN = null;
        this.vc = f;
        this.DSW = f2;
    }

    public YFl(DSW dsw, T t, T t2, Interpolator interpolator, Interpolator interpolator2, float f, Float f2) {
        this.eT = -3987645.8f;
        this.YoT = -3987645.8f;
        this.GA = 784923401;
        this.pDU = 784923401;
        this.EH = Float.MIN_VALUE;
        this.rkt = Float.MIN_VALUE;
        this.qsH = null;
        this.NjR = null;
        this.nc = dsw;
        this.YFl = t;
        this.Sg = t2;
        this.tN = null;
        this.AlY = interpolator;
        this.wN = interpolator2;
        this.vc = f;
        this.DSW = f2;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public YFl(DSW dsw, T t, T t2, Interpolator interpolator, Interpolator interpolator2, Interpolator interpolator3, float f, Float f2) {
        this.eT = -3987645.8f;
        this.YoT = -3987645.8f;
        this.GA = 784923401;
        this.pDU = 784923401;
        this.EH = Float.MIN_VALUE;
        this.rkt = Float.MIN_VALUE;
        this.qsH = null;
        this.NjR = null;
        this.nc = dsw;
        this.YFl = t;
        this.Sg = t2;
        this.tN = interpolator;
        this.AlY = interpolator2;
        this.wN = interpolator3;
        this.vc = f;
        this.DSW = f2;
    }

    public YFl(T t) {
        this.eT = -3987645.8f;
        this.YoT = -3987645.8f;
        this.GA = 784923401;
        this.pDU = 784923401;
        this.EH = Float.MIN_VALUE;
        this.rkt = Float.MIN_VALUE;
        this.qsH = null;
        this.NjR = null;
        this.nc = null;
        this.YFl = t;
        this.Sg = t;
        this.tN = null;
        this.AlY = null;
        this.wN = null;
        this.vc = Float.MIN_VALUE;
        this.DSW = Float.valueOf(Float.MAX_VALUE);
    }

    private YFl(T t, T t2) {
        this.eT = -3987645.8f;
        this.YoT = -3987645.8f;
        this.GA = 784923401;
        this.pDU = 784923401;
        this.EH = Float.MIN_VALUE;
        this.rkt = Float.MIN_VALUE;
        this.qsH = null;
        this.NjR = null;
        this.nc = null;
        this.YFl = t;
        this.Sg = t2;
        this.tN = null;
        this.AlY = null;
        this.wN = null;
        this.vc = Float.MIN_VALUE;
        this.DSW = Float.valueOf(Float.MAX_VALUE);
    }

    public YFl<T> YFl(T t, T t2) {
        return new YFl<>(t, t2);
    }

    public float tN() {
        DSW dsw = this.nc;
        if (dsw == null) {
            return 0.0f;
        }
        if (this.EH == Float.MIN_VALUE) {
            this.EH = (this.vc - dsw.vc()) / this.nc.lG();
        }
        return this.EH;
    }

    public float AlY() {
        if (this.nc == null) {
            return 1.0f;
        }
        if (this.rkt == Float.MIN_VALUE) {
            if (this.DSW == null) {
                this.rkt = 1.0f;
            } else {
                this.rkt = tN() + ((this.DSW.floatValue() - this.vc) / this.nc.lG());
            }
        }
        return this.rkt;
    }

    public boolean YFl(float f) {
        return f >= tN() && f < AlY();
    }

    public float vc() {
        if (this.eT == -3987645.8f) {
            this.eT = ((Float) this.YFl).floatValue();
        }
        return this.eT;
    }

    public float DSW() {
        if (this.YoT == -3987645.8f) {
            this.YoT = ((Float) this.Sg).floatValue();
        }
        return this.YoT;
    }

    public int qsH() {
        if (this.GA == 784923401) {
            this.GA = ((Integer) this.YFl).intValue();
        }
        return this.GA;
    }

    public int NjR() {
        if (this.pDU == 784923401) {
            this.pDU = ((Integer) this.Sg).intValue();
        }
        return this.pDU;
    }

    public String toString() {
        return "Keyframe{startValue=" + this.YFl + ", endValue=" + this.Sg + ", startFrame=" + this.vc + ", endFrame=" + this.DSW + ", interpolator=" + this.tN + AbstractJsonLexerKt.END_OBJ;
    }
}
