package com.bytedance.adsdk.Sg;

import android.graphics.Rect;
import android.util.LongSparseArray;
import android.util.SparseArray;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
/* loaded from: classes2.dex */
public class DSW {
    private Map<String, nc> AlY;
    private SparseArray<com.bytedance.adsdk.Sg.tN.AlY> DSW;
    private float GA;
    private List<com.bytedance.adsdk.Sg.tN.tN.wN> NjR;
    private YFl Wwa;
    private float YoT;
    private float eT;
    private Rect nc;
    private boolean pDU;
    private Sg qO;
    private LongSparseArray<com.bytedance.adsdk.Sg.tN.tN.wN> qsH;
    private tN rkt;
    private Map<String, List<com.bytedance.adsdk.Sg.tN.tN.wN>> tN;
    private List<com.bytedance.adsdk.Sg.tN.vc> vc;
    private Map<String, com.bytedance.adsdk.Sg.tN.tN> wN;
    private final Wwa YFl = new Wwa();
    private final HashSet<String> Sg = new HashSet<>();
    private int EH = 0;
    private String lG = "";

    /* loaded from: classes2.dex */
    public static class Sg {
        public int[][] Sg;
        public String YFl;
    }

    /* loaded from: classes2.dex */
    public static class YFl {
        public Map<String, Object> Sg;
        public int YFl;
        public Map<String, Object> tN;
    }

    /* loaded from: classes2.dex */
    public static class tN {
        public String AlY;
        public String Sg;
        public int YFl;
        public String tN;
        public String vc;
        public int[] wN;
    }

    public Rect AlY() {
        return this.nc;
    }

    public float DSW() {
        return this.YoT;
    }

    public Map<String, com.bytedance.adsdk.Sg.tN.tN> EH() {
        return this.wN;
    }

    public List<com.bytedance.adsdk.Sg.tN.tN.wN> GA() {
        return this.NjR;
    }

    public String NjR() {
        return this.lG;
    }

    public int Sg() {
        return this.EH;
    }

    public void YFl(int i) {
        this.EH += i;
    }

    public void YFl(Rect rect, float f, float f2, float f3, List<com.bytedance.adsdk.Sg.tN.tN.wN> list, LongSparseArray<com.bytedance.adsdk.Sg.tN.tN.wN> longSparseArray, Map<String, List<com.bytedance.adsdk.Sg.tN.tN.wN>> map, Map<String, nc> map2, SparseArray<com.bytedance.adsdk.Sg.tN.AlY> sparseArray, Map<String, com.bytedance.adsdk.Sg.tN.tN> map3, List<com.bytedance.adsdk.Sg.tN.vc> list2, tN tNVar, String str, YFl yFl, Sg sg) {
        this.nc = rect;
        this.eT = f;
        this.YoT = f2;
        this.GA = f3;
        this.NjR = list;
        this.qsH = longSparseArray;
        this.tN = map;
        this.AlY = map2;
        this.DSW = sparseArray;
        this.wN = map3;
        this.vc = list2;
        this.rkt = tNVar;
        this.lG = str;
        this.Wwa = yFl;
        this.qO = sg;
    }

    public void YFl(boolean z) {
        this.pDU = z;
    }

    public boolean YFl() {
        return this.pDU;
    }

    public float YoT() {
        return this.GA;
    }

    public YFl eT() {
        return this.Wwa;
    }

    public float lG() {
        return this.YoT - this.eT;
    }

    public Sg nc() {
        return this.qO;
    }

    public SparseArray<com.bytedance.adsdk.Sg.tN.AlY> pDU() {
        return this.DSW;
    }

    public tN qsH() {
        return this.rkt;
    }

    public Map<String, nc> rkt() {
        return this.AlY;
    }

    public Wwa tN() {
        return this.YFl;
    }

    public float vc() {
        return this.eT;
    }

    public void YFl(String str) {
        this.Sg.add(str);
    }

    public void Sg(boolean z) {
        this.YFl.YFl(z);
    }

    public com.bytedance.adsdk.Sg.tN.tN.wN YFl(long j) {
        return this.qsH.get(j);
    }

    public float wN() {
        return (lG() / this.GA) * 1000.0f;
    }

    public float YFl(float f) {
        return com.bytedance.adsdk.Sg.vc.wN.YFl(this.eT, this.YoT, f);
    }

    public List<com.bytedance.adsdk.Sg.tN.tN.wN> Sg(String str) {
        return this.tN.get(str);
    }

    public com.bytedance.adsdk.Sg.tN.vc tN(String str) {
        int size = this.vc.size();
        for (int i = 0; i < size; i++) {
            com.bytedance.adsdk.Sg.tN.vc vcVar = this.vc.get(i);
            if (vcVar.YFl(str)) {
                return vcVar;
            }
        }
        return null;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("LottieComposition:\n");
        for (com.bytedance.adsdk.Sg.tN.tN.wN wNVar : this.NjR) {
            sb.append(wNVar.YFl("\t"));
        }
        return sb.toString();
    }
}
