package p138.p176.p177.p242.p265.p266;

import android.os.Bundle;
import android.text.TextUtils;
import java.util.Iterator;
import p000.p001.p002.p003.p004.C0567;
import p138.p139.p143.p144.C2803;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.ކ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4906 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final String f14796;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final String f14797;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final String f14798;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final long f14799;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final long f14800;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final C4908 f14801;

    public C4906(C4974 c4974, String str, String str2, String str3, long j, long j2, Bundle bundle) {
        C4908 c4908;
        C0567.m1926(str2);
        C0567.m1926(str3);
        this.f14796 = str2;
        this.f14797 = str3;
        this.f14798 = TextUtils.isEmpty(str) ? null : str;
        this.f14799 = j;
        this.f14800 = j2;
        if (j2 != 0 && j2 > j) {
            c4974.mo8165().f14447.m8035("Event created with reverse previous/current timestamps. appId", C4794.m8038(str2));
        }
        if (bundle == null || bundle.isEmpty()) {
            c4908 = new C4908(new Bundle());
        } else {
            Bundle bundle2 = new Bundle(bundle);
            Iterator<String> it = bundle2.keySet().iterator();
            while (it.hasNext()) {
                String next = it.next();
                if (next == null) {
                    c4974.mo8165().f14444.m8034("Param name can't be null");
                    it.remove();
                } else {
                    Object objM8242 = c4974.m8504().m8242(next, bundle2.get(next));
                    if (objM8242 == null) {
                        c4974.mo8165().f14447.m8035("Param value can't be null", c4974.m8505().m8113(next));
                        it.remove();
                    } else {
                        c4974.m8504().m8246(bundle2, next, objM8242);
                    }
                }
            }
            c4908 = new C4908(bundle2);
        }
        this.f14801 = c4908;
    }

    public C4906(C4974 c4974, String str, String str2, String str3, long j, long j2, C4908 c4908) {
        C0567.m1926(str2);
        C0567.m1926(str3);
        C0567.m1910(c4908);
        this.f14796 = str2;
        this.f14797 = str3;
        this.f14798 = TextUtils.isEmpty(str) ? null : str;
        this.f14799 = j;
        this.f14800 = j2;
        if (j2 != 0 && j2 > j) {
            c4974.mo8165().f14447.m8036("Event created with reverse previous/current timestamps. appId, name", C4794.m8038(str2), C4794.m8038(str3));
        }
        this.f14801 = c4908;
    }

    public final String toString() {
        String str = this.f14796;
        String str2 = this.f14797;
        String strValueOf = String.valueOf(this.f14801);
        StringBuilder sb = new StringBuilder(strValueOf.length() + C2803.m4895(str2, C2803.m4895(str, 33)));
        sb.append("Event{appId='");
        sb.append(str);
        sb.append("', name='");
        sb.append(str2);
        sb.append("', params=");
        sb.append(strValueOf);
        sb.append('}');
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C4906 m8364(C4974 c4974, long j) {
        return new C4906(c4974, this.f14798, this.f14796, this.f14797, this.f14799, j, this.f14801);
    }
}
