package ඓ.㴹.K;

import android.util.Log;
import android.view.View;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import ඓ.K.K.K.C1293;
import ඓ.㴹.ʬ.K.C1316;
import ඓ.㴹.ῲ.AbstractC1317;

/* renamed from: ඓ.㴹.K.㳳  reason: contains not printable characters */
/* compiled from: ObjectAnimator */
public final class C1359 extends C1327 {

    /* renamed from: ᆯ  reason: contains not printable characters */
    public static final Map<String, AbstractC1317> f5211 = new HashMap();

    /* renamed from: ᝁ  reason: contains not printable characters */
    public AbstractC1317 f5212;

    /* renamed from: 㮔  reason: contains not printable characters */
    public Object f5213;

    /* renamed from: 䃖  reason: contains not printable characters */
    public String f5214;

    static {
        f5211.put("alpha", C1336.f5178);
        f5211.put("pivotX", C1336.f5176);
        f5211.put("pivotY", C1336.f5171);
        f5211.put("translationX", C1336.f5182);
        f5211.put("translationY", C1336.f5173);
        f5211.put("rotation", C1336.f5181);
        f5211.put("rotationX", C1336.f5177);
        f5211.put("rotationY", C1336.f5183);
        f5211.put("scaleX", C1336.f5175);
        f5211.put("scaleY", C1336.f5180);
        f5211.put("scrollX", C1336.f5174);
        f5211.put("scrollY", C1336.f5179);
        f5211.put("x", C1336.f5184);
        f5211.put("y", C1336.f5172);
    }

    public C1359() {
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1359 m3537(Object obj, String str, float... fArr) {
        C1359 r0 = new C1359(obj, str);
        r0.m3543(fArr);
        return r0;
    }

    @Override // ඓ.㴹.K.C1327
    public String toString() {
        StringBuilder r0 = C1293.m3416("ObjectAnimator@");
        r0.append(Integer.toHexString(hashCode()));
        r0.append(", target ");
        r0.append(this.f5213);
        String sb = r0.toString();
        if (this.f5165 != null) {
            for (int i = 0; i < this.f5165.length; i++) {
                StringBuilder r02 = C1293.m3402(sb, "\n    ");
                r02.append(this.f5165[i].toString());
                sb = r02.toString();
            }
        }
        return sb;
    }

    @Override // ඓ.㴹.K.C1327, ඓ.㴹.K.AbstractC1354
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m3538() {
        super.m3473();
    }

    @Override // ඓ.㴹.K.C1327
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m3544() {
        if (!this.f5160) {
            if (this.f5212 == null && C1316.f5100 && (this.f5213 instanceof View) && f5211.containsKey(this.f5214)) {
                AbstractC1317 r0 = f5211.get(this.f5214);
                C1356[] r2 = this.f5165;
                if (r2 != null) {
                    C1356 r22 = r2[0];
                    String str = r22.f5202;
                    r22.f5198 = r0;
                    this.f5157.remove(str);
                    this.f5157.put(this.f5214, r22);
                }
                if (this.f5212 != null) {
                    this.f5214 = r0.f5117;
                }
                this.f5212 = r0;
                this.f5160 = false;
            }
            int length = this.f5165.length;
            for (int i = 0; i < length; i++) {
                C1356 r3 = this.f5165[i];
                Object obj = this.f5213;
                AbstractC1317 r5 = r3.f5198;
                if (r5 != null) {
                    try {
                        r5.m3448(obj);
                        Iterator<AbstractC1362> it2 = r3.f5203.f5189.iterator();
                        while (it2.hasNext()) {
                            AbstractC1362 next = it2.next();
                            if (!next.m3550()) {
                                next.m3549(r3.f5198.m3448(obj));
                            }
                        }
                    } catch (ClassCastException unused) {
                        StringBuilder r52 = C1293.m3416("No such property (");
                        r52.append(r3.f5198.f5117);
                        r52.append(") on target object ");
                        r52.append(obj);
                        r52.append(". Trying reflection instead");
                        Log.e("PropertyValuesHolder", r52.toString());
                        r3.f5198 = null;
                    }
                }
                Class<?> cls = obj.getClass();
                if (r3.f5206 == null) {
                    r3.m3528((Class) cls);
                }
                Iterator<AbstractC1362> it3 = r3.f5203.f5189.iterator();
                while (it3.hasNext()) {
                    AbstractC1362 next2 = it3.next();
                    if (!next2.m3550()) {
                        if (r3.f5199 == null) {
                            r3.f5199 = r3.m3526(cls, C1356.f5196, "get", null);
                        }
                        try {
                            next2.m3549(r3.f5199.invoke(obj, new Object[0]));
                        } catch (InvocationTargetException e) {
                            Log.e("PropertyValuesHolder", e.toString());
                        } catch (IllegalAccessException e2) {
                            Log.e("PropertyValuesHolder", e2.toString());
                        }
                    }
                }
            }
            super.m3482();
        }
    }

    public C1359(Object obj, String str) {
        this.f5213 = obj;
        C1356[] r4 = this.f5165;
        if (r4 != null) {
            C1356 r42 = r4[0];
            String str2 = r42.f5202;
            r42.f5202 = str;
            this.f5157.remove(str2);
            this.f5157.put(str, r42);
        }
        this.f5214 = str;
        this.f5160 = false;
    }

    @Override // ඓ.㴹.K.C1327
    /* renamed from: K  reason: contains not printable characters */
    public void m3543(float... fArr) {
        C1356[] r0 = this.f5165;
        if (r0 == null || r0.length == 0) {
            AbstractC1317 r02 = this.f5212;
            if (r02 != null) {
                m3480(C1356.m3523(r02, fArr));
                return;
            }
            m3480(C1356.m3522(this.f5214, fArr));
            return;
        }
        super.m3479(fArr);
    }

    @Override // ඓ.㴹.K.C1327, ඓ.㴹.K.C1327, ඓ.㴹.K.C1327, ඓ.㴹.K.AbstractC1354, ඓ.㴹.K.AbstractC1354, java.lang.Object
    public C1359 clone() {
        return (C1359) super.clone();
    }

    @Override // ඓ.㴹.K.C1327, ඓ.㴹.K.C1327, ඓ.㴹.K.AbstractC1354
    /* renamed from: K  reason: contains not printable characters */
    public AbstractC1354 m3540(long j) {
        super.m3476(j);
        return this;
    }

    @Override // ඓ.㴹.K.C1327, ඓ.㴹.K.C1327, ඓ.㴹.K.AbstractC1354
    /* renamed from: K  reason: contains not printable characters */
    public C1359 m3541(long j) {
        super.m3476(j);
        return this;
    }

    @Override // ඓ.㴹.K.C1327, ඓ.㴹.K.C1327, ඓ.㴹.K.AbstractC1354
    /* renamed from: K  reason: contains not printable characters */
    public C1327 m3539(long j) {
        super.m3476(j);
        return this;
    }

    @Override // ඓ.㴹.K.C1327
    /* renamed from: K  reason: contains not printable characters */
    public void m3542(float f) {
        super.m3477(f);
        int length = this.f5165.length;
        for (int i = 0; i < length; i++) {
            this.f5165[i].m3529(this.f5213);
        }
    }
}
