package defpackage;

import androidx.media3.container.NalUnitUtil;
import java.nio.charset.CharacterCodingException;
import kotlin.Metadata;
import kotlin.reflect.KClass;
import kotlin.reflect.KType;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(k = 3, mv = {2, 1, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final class jz1 implements sq3<fd4, e6a> {
    public final /* synthetic */ hf1 a;
    public final /* synthetic */ a05 b;
    public final /* synthetic */ String c;

    public jz1(hf1 hf1Var, a05 a05Var, String str) {
        this.a = hf1Var;
        this.b = a05Var;
        this.c = str;
    }

    @Override // defpackage.sq3
    public final Object invoke(Object obj) throws CharacterCodingException {
        fd4 fd4Var = (fd4) obj;
        cr4.g(fd4Var, "$this$request");
        fd4Var.d(wc4.c);
        String str = this.c;
        if (str != null) {
            fd4Var.a.j.e("redirect_to", str);
        }
        vc4.e(fd4Var, this.a);
        KType kTypeA = null;
        fd4Var.d = this.b;
        KClass orCreateKotlinClass = iw7.a.getOrCreateKotlinClass(a05.class);
        try {
            kTypeA = iw7.a(a05.class);
        } catch (Throwable unused) {
        }
        fd4Var.b(new fz9(orCreateKotlinClass, kTypeA));
        return e6a.a;
    }
}
