package fz1; import d02.d; import kotlin.Lazy; import kotlin.LazyKt; import kotlin.Metadata; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function2; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import nd2.g; import y7.f; import z60.h; @Metadata(bv = {}, d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u000e\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b!\u0010\"J!\u0010\u0005\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00022\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003¢\u0006\u0004\b\u0005\u0010\u0006J!\u0010\u0007\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00022\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003¢\u0006\u0004\b\u0007\u0010\u0006J!\u0010\b\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00022\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003¢\u0006\u0004\b\b\u0010\u0006J\u000e\u0010\f\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\tJ\u000e\u0010\r\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\tJ\u000e\u0010\u000e\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\tRV\u0010\u0017\u001a6\u0012\u0017\u0012\u00150\u0010j\u0002`\u0011¢\u0006\f\b\u0012\u0012\b\b\u0013\u0012\u0004\b\b(\u0014\u0012\u0013\u0012\u00110\u0015¢\u0006\f\b\u0012\u0012\b\b\u0013\u0012\u0004\b\b(\u0016\u0012\u0004\u0012\u00020\u000b0\u000f8\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u0014\u0010\u001bR\u001b\u0010 \u001a\u00020\t8BX\u0002¢\u0006\f\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001f¨\u0006#"}, d2 = {"Lfz1/b;", "", "T", "Ljava/lang/Class;", "serviceClazz", "a", "(Ljava/lang/Class;)Ljava/lang/Object;", "c", "d", "Lnd2/g;", "client", "", f.f156778k, "g", h.f160753a, "Lkotlin/Function2;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "Lkotlin/ParameterName;", "name", "e", "", "str", "debugReport", "Lkotlin/jvm/functions/Function2;", "getDebugReport", "()Lkotlin/jvm/functions/Function2;", "(Lkotlin/jvm/functions/Function2;)V", "fakeClient$delegate", "Lkotlin/Lazy;", "b", "()Lnd2/g;", "fakeClient", "<init>", "()V", "xhs_api_network_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: XhsApi.kt */ public final class b { /* renamed from: a reason: collision with root package name */ public static final b f80449a = new b(); /* renamed from: b reason: collision with root package name */ public static final StringBuffer f80450b = new StringBuffer(); /* renamed from: c reason: collision with root package name */ public static Function2<? super Exception, ? super String, Unit> f80451c = a.f80453a; /* renamed from: d reason: collision with root package name */ public static final Lazy f80452d = LazyKt.lazy(C0938b.f80454a); @Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u00012\n\u0010\u0002\u001a\u00060\u0003j\u0002`\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\n¢\u0006\u0002\b\u0007"}, d2 = {"<anonymous>", "", "<anonymous parameter 0>", "Ljava/lang/Exception;", "Lkotlin/Exception;", "<anonymous parameter 1>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: XhsApi.kt */ public static final class a extends Lambda implements Function2<Exception, String, Unit> { /* renamed from: a reason: collision with root package name */ public static final a f80453a = new a(); public a() { super(2); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ @Override // kotlin.jvm.functions.Function2 public /* bridge */ /* synthetic */ Unit invoke(Exception exc, String str) { invoke(exc, str); return Unit.INSTANCE; } public final void invoke(Exception exc, String str) { Intrinsics.checkNotNullParameter(exc, "<anonymous parameter 0>"); Intrinsics.checkNotNullParameter(str, "<anonymous parameter 1>"); } } @Metadata(bv = {}, d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Lnd2/g;", "a", "()Lnd2/g;"}, k = 3, mv = {1, 6, 0}) /* renamed from: fz1.b$b reason: collision with other inner class name */ /* compiled from: XhsApi.kt */ public static final class C0938b extends Lambda implements Function0<g> { /* renamed from: a reason: collision with root package name */ public static final C0938b f80454a = new C0938b(); public C0938b() { super(0); } /* renamed from: a */ public final g invoke() { return new nd2.h().e("https://fake.xiaohongshu.com").i(new ud2.b()).b(new wd2.b()).b(new vd2.b()).b(new yd2.b()).b(new xd2.b()).f(); } } public final <T> T a(Class<T> cls) { Intrinsics.checkNotNullParameter(cls, "serviceClazz"); try { return (T) gd2.a.f81806c.c("edith", cls); } catch (IllegalStateException e14) { d dVar = d.f66858b; dVar.b("XhsApi", "getEdithApi exception = " + e14); return (T) b().a(cls); } } public final g b() { return (g) f80452d.getValue(); } public final <T> T c(Class<T> cls) { Intrinsics.checkNotNullParameter(cls, "serviceClazz"); try { return (T) gd2.a.f81806c.c("main", cls); } catch (IllegalStateException e14) { d dVar = d.f66858b; dVar.b("XhsApi", "getJarvisApi exception = " + e14); return (T) b().a(cls); } } public final <T> T d(Class<T> cls) throws IllegalStateException { Intrinsics.checkNotNullParameter(cls, "serviceClazz"); try { return (T) gd2.a.f81806c.c("retrofit_for_other_domain", cls); } catch (IllegalStateException e14) { d dVar = d.f66858b; dVar.b("XhsApi", "getOtherDomainApi exception = " + e14); return (T) b().a(cls); } } public final void e(Function2<? super Exception, ? super String, Unit> function2) { Intrinsics.checkNotNullParameter(function2, "<set-?>"); f80451c = function2; } public final void f(g gVar) { Intrinsics.checkNotNullParameter(gVar, "client"); gd2.a.f81806c.g("edith", gVar); } public final void g(g gVar) { Intrinsics.checkNotNullParameter(gVar, "client"); gd2.a.f81806c.g("main", gVar); } public final void h(g gVar) { Intrinsics.checkNotNullParameter(gVar, "client"); gd2.a.f81806c.g("retrofit_for_other_domain", gVar); } }