package L1;

import android.os.Bundle;
import android.text.TextUtils;
import java.io.IOException;
import java.util.Map;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public final class T1 implements b2, Z {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ W1 f1562k;

    public T1(W1 w12, int i) {
        switch (i) {
            case 1:
                this.f1562k = w12;
                break;
            default:
                Objects.requireNonNull(w12);
                this.f1562k = w12;
                break;
        }
    }

    @Override // L1.b2
    public void a(String str, String str2, Bundle bundle) {
        boolean zIsEmpty = TextUtils.isEmpty(str);
        W1 w12 = this.f1562k;
        if (!zIsEmpty) {
            w12.b().t(new E0(this, str, str2, bundle));
            return;
        }
        C0146w0 c0146w0 = w12.f1617v;
        if (c0146w0 != null) {
            X x5 = c0146w0.p;
            C0146w0.l(x5);
            x5.p.c("AppId not known when logging event", str2);
        }
    }

    @Override // L1.Z
    public /* synthetic */ void b(String str, int i, IOException iOException, byte[] bArr, Map map) {
        this.f1562k.A(str, i, iOException, bArr, map);
    }
}
