导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - C1834h.java 源代码

正在查看: Perplexity v2.48.1 应用的 C1834h.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package Wh;

import Lm.j0;
import Ui.C1647f;
import gm.AbstractC3845i;
import gm.AbstractC3846j;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.TreeMap;
import java.util.UUID;
import kotlin.Pair;
import kotlin.collections.MapsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.ranges.IntRange;
import kotlin.text.Charsets;
import u2.AbstractC6698a;

@Hm.g
@SourceDebugExtension
public final class C1834h extends U {
    public static final C1832f Companion = new C1832f();

    public static final Hm.a[] f27764l;

    public final String f27765a;

    public final String f27766b;

    public final String f27767c;

    public final double f27768d;

    public final Mm.m f27769e;

    public final String f27770f;

    public final Map f27771g;

    public final S f27772h;

    public final T f27773i;

    public final Iterable f27774j;

    public final String f27775k;

    static {
        j0 j0Var = j0.f13789a;
        f27764l = new Hm.a[]{null, null, null, null, null, null, new Lm.G(j0Var, j0Var), Lm.V.e("com.stripe.android.core.networking.StripeRequest.Method", S.values()), Lm.V.e("com.stripe.android.core.networking.StripeRequest.MimeType", T.values()), new Hm.c(Reflection.f52861a.b(Iterable.class), new Annotation[0]), null};
    }

    public C1834h(int i10, String str, String str2, String str3, double d7, Mm.m mVar, String str4, Map map, S s7, T t2, Iterable iterable, String str5) {
        if (31 != (i10 & 31)) {
            Lm.V.h(i10, 31, C1831e.f27761a.getDescriptor());
            throw null;
        }
        this.f27765a = str;
        this.f27766b = str2;
        this.f27767c = str3;
        this.f27768d = d7;
        this.f27769e = mVar;
        if ((i10 & 32) == 0) {
            this.f27770f = h();
        } else {
            this.f27770f = str4;
        }
        if ((i10 & 64) == 0) {
            T t10 = T.f27738x;
            this.f27771g = MapsKt.g0(new Pair("Content-Type", e.q.k("application/x-www-form-urlencoded; charset=", Charsets.f55836b.name())), new Pair("origin", str3), new Pair("User-Agent", "Stripe/v1 android/21.11.1"));
        } else {
            this.f27771g = map;
        }
        if ((i10 & 128) == 0) {
            this.f27772h = S.f27735y;
        } else {
            this.f27772h = s7;
        }
        if ((i10 & 256) == 0) {
            this.f27773i = T.f27738x;
        } else {
            this.f27773i = t2;
        }
        if ((i10 & 512) == 0) {
            this.f27774j = new IntRange(429, 429, 1);
        } else {
            this.f27774j = iterable;
        }
        if ((i10 & 1024) == 0) {
            this.f27775k = "https://r.stripe.com/0";
        } else {
            this.f27775k = str5;
        }
    }

    public static String i(int i10, Map map) {
        String str;
        StringBuilder sb2 = new StringBuilder("{\n");
        N6.a aVar = new N6.a(7);
        Intrinsics.h(map, "<this>");
        TreeMap treeMap = new TreeMap(aVar);
        treeMap.putAll(map);
        boolean z10 = true;
        for (Map.Entry entry : treeMap.entrySet()) {
            Object key = entry.getKey();
            Object value = entry.getValue();
            if (value instanceof Map) {
                str = i(i10 + 1, (Map) value);
            } else if (value == null) {
                str = "";
            } else {
                str = "\"" + value + "\"";
            }
            if (!AbstractC3846j.b0(str)) {
                if (z10) {
                    sb2.append(AbstractC3845i.L(i10, "  "));
                    sb2.append("  \"" + key + "\": " + str);
                    z10 = false;
                } else {
                    sb2.append(",\n");
                    sb2.append(AbstractC3845i.L(i10, "  "));
                    sb2.append("  \"" + key + "\": " + str);
                }
            }
        }
        sb2.append('\n');
        sb2.append(AbstractC3845i.L(i10, "  "));
        sb2.append("}");
        String sb3 = sb2.toString();
        Intrinsics.g(sb3, "toString(...)");
        return sb3;
    }

    @Override
    public final Map a() {
        return this.f27771g;
    }

    @Override
    public final S b() {
        return this.f27772h;
    }

    @Override
    public final Iterable d() {
        return this.f27774j;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C1834h)) {
            return false;
        }
        C1834h c1834h = (C1834h) obj;
        return Intrinsics.c(this.f27765a, c1834h.f27765a) && Intrinsics.c(this.f27766b, c1834h.f27766b) && Intrinsics.c(this.f27767c, c1834h.f27767c) && Double.compare(this.f27768d, c1834h.f27768d) == 0 && Intrinsics.c(this.f27769e, c1834h.f27769e);
    }

    @Override
    public final String f() {
        return this.f27775k;
    }

    @Override
    public final void g(OutputStream outputStream) {
        byte[] bytes = this.f27770f.getBytes(Charsets.f55836b);
        Intrinsics.g(bytes, "getBytes(...)");
        outputStream.write(bytes);
        outputStream.flush();
    }

    public final String h() {
        LinkedHashMap k02 = MapsKt.k0(x.g(this.f27769e), MapsKt.g0(new Pair("client_id", this.f27766b), new Pair("created", Double.valueOf(this.f27768d)), new Pair("event_name", this.f27765a), new Pair("event_id", UUID.randomUUID().toString())));
        ArrayList arrayList = new ArrayList();
        for (Map.Entry entry : x.a(k02).entrySet()) {
            String str = (String) entry.getKey();
            Object value = entry.getValue();
            if (value instanceof Map) {
                arrayList.add(new C1833g(str, i(0, (Map) value)));
            } else {
                arrayList.add(new C1833g(str, value.toString()));
            }
        }
        return bl.f.M0(arrayList, "&", null, null, new C1647f(13), 30);
    }

    public final int hashCode() {
        return this.f27769e.hashCode() + AbstractC6698a.c(com.mapbox.common.location.e.e(com.mapbox.common.location.e.e(this.f27765a.hashCode() * 31, this.f27766b, 31), this.f27767c, 31), 31, this.f27768d);
    }

    public final String toString() {
        return "AnalyticsRequestV2(eventName=" + this.f27765a + ", clientId=" + this.f27766b + ", origin=" + this.f27767c + ", created=" + this.f27768d + ", params=" + this.f27769e + ")";
    }

    public C1834h(String str, String str2, String str3, double d7, Mm.m mVar) {
        this.f27765a = str;
        this.f27766b = str2;
        this.f27767c = str3;
        this.f27768d = d7;
        this.f27769e = mVar;
        this.f27770f = h();
        T t2 = T.f27738x;
        this.f27771g = MapsKt.g0(new Pair("Content-Type", e.q.k("application/x-www-form-urlencoded; charset=", Charsets.f55836b.name())), new Pair("origin", str3), new Pair("User-Agent", "Stripe/v1 android/21.11.1"));
        this.f27772h = S.f27735y;
        this.f27773i = t2;
        this.f27774j = new IntRange(429, 429, 1);
        this.f27775k = "https://r.stripe.com/0";
    }
}