package com.revenuecat.purchases.common.events;

import Q4.c;
import androidx.media3.common.C;
import androidx.media3.exoplayer.DecoderReuseEvaluation;
import com.revenuecat.purchases.customercenter.CustomerCenterConfigData;
import com.revenuecat.purchases.customercenter.events.CustomerCenterDisplayMode;
import com.revenuecat.purchases.customercenter.events.CustomerCenterEventType;
import com.revenuecat.purchases.utils.Event;
import g5.a;
import g5.e;
import j5.b;
import java.lang.annotation.Annotation;
import k5.F;
import k5.L;
import k5.P;
import k5.a0;
import k5.e0;
import kotlin.jvm.internal.D;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import m1.g;
import q.AbstractC2761L;
import w4.InterfaceC3141c;
import w4.h;
import w4.i;

/* JADX INFO: loaded from: classes3.dex */
public abstract class BackendEvent implements Event {
    public static final int AD_EVENT_SCHEMA_VERSION = 1;
    public static final int CUSTOMER_CENTER_EVENT_SCHEMA_VERSION = 1;
    public static final int CUSTOM_PAYWALL_EVENT_SCHEMA_VERSION = 1;
    public static final int PAYWALL_EVENT_SCHEMA_VERSION = 1;
    public static final Companion Companion = new Companion(null);
    private static final h $cachedSerializer$delegate = g.j(i.f25466b, Companion.AnonymousClass1.INSTANCE);

    public static final class Ad extends BackendEvent {
        public static final Companion Companion = new Companion(null);
        private final String adFormat;
        private final String adUnitId;
        private final String appSessionID;
        private final String appUserID;
        private final String currency;
        private final String id;
        private final String impressionId;
        private final Integer mediatorErrorCode;
        private final String mediatorName;
        private final String networkName;
        private final String placement;
        private final String precision;
        private final Long revenueMicros;
        private final long timestamp;
        private final String type;
        private final int version;

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendEvent$Ad$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ Ad(int i6, String str, int i7, String str2, long j4, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, Long l, String str11, String str12, Integer num, a0 a0Var) {
            super(i6, a0Var);
            if (4015 != (i6 & 4015)) {
                P.h(i6, 4015, BackendEvent$Ad$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.id = str;
            this.version = i7;
            this.type = str2;
            this.timestamp = j4;
            if ((i6 & 16) == 0) {
                this.networkName = null;
            } else {
                this.networkName = str3;
            }
            this.mediatorName = str4;
            if ((i6 & 64) == 0) {
                this.adFormat = null;
            } else {
                this.adFormat = str5;
            }
            this.placement = str6;
            this.adUnitId = str7;
            this.impressionId = str8;
            this.appUserID = str9;
            this.appSessionID = str10;
            if ((i6 & 4096) == 0) {
                this.revenueMicros = null;
            } else {
                this.revenueMicros = l;
            }
            if ((i6 & 8192) == 0) {
                this.currency = null;
            } else {
                this.currency = str11;
            }
            if ((i6 & 16384) == 0) {
                this.precision = null;
            } else {
                this.precision = str12;
            }
            if ((i6 & DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE) == 0) {
                this.mediatorErrorCode = null;
            } else {
                this.mediatorErrorCode = num;
            }
        }

        public static /* synthetic */ void getAdFormat$annotations() {
        }

        public static /* synthetic */ void getAdUnitId$annotations() {
        }

        public static /* synthetic */ void getAppSessionID$annotations() {
        }

        public static /* synthetic */ void getAppUserID$annotations() {
        }

        public static /* synthetic */ void getImpressionId$annotations() {
        }

        public static /* synthetic */ void getMediatorErrorCode$annotations() {
        }

        public static /* synthetic */ void getMediatorName$annotations() {
        }

        public static /* synthetic */ void getNetworkName$annotations() {
        }

        public static /* synthetic */ void getRevenueMicros$annotations() {
        }

        public static /* synthetic */ void getTimestamp$annotations() {
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Ad ad, b bVar, i5.g gVar) {
            BackendEvent.write$Self(ad, bVar, gVar);
            bVar.A(gVar, 0, ad.id);
            bVar.w(1, ad.version, gVar);
            bVar.A(gVar, 2, ad.type);
            bVar.p(gVar, 3, ad.timestamp);
            if (bVar.g(gVar) || ad.networkName != null) {
                bVar.E(gVar, 4, e0.f20048a, ad.networkName);
            }
            bVar.A(gVar, 5, ad.mediatorName);
            if (bVar.g(gVar) || ad.adFormat != null) {
                bVar.E(gVar, 6, e0.f20048a, ad.adFormat);
            }
            e0 e0Var = e0.f20048a;
            bVar.E(gVar, 7, e0Var, ad.placement);
            bVar.A(gVar, 8, ad.adUnitId);
            bVar.E(gVar, 9, e0Var, ad.impressionId);
            bVar.A(gVar, 10, ad.appUserID);
            bVar.A(gVar, 11, ad.appSessionID);
            if (bVar.g(gVar) || ad.revenueMicros != null) {
                bVar.E(gVar, 12, L.f20007a, ad.revenueMicros);
            }
            if (bVar.g(gVar) || ad.currency != null) {
                bVar.E(gVar, 13, e0Var, ad.currency);
            }
            if (bVar.g(gVar) || ad.precision != null) {
                bVar.E(gVar, 14, e0Var, ad.precision);
            }
            if (!bVar.g(gVar) && ad.mediatorErrorCode == null) {
                return;
            }
            bVar.E(gVar, 15, F.f19995a, ad.mediatorErrorCode);
        }

        public final String component1() {
            return this.id;
        }

        public final String component10() {
            return this.impressionId;
        }

        public final String component11() {
            return this.appUserID;
        }

        public final String component12() {
            return this.appSessionID;
        }

        public final Long component13() {
            return this.revenueMicros;
        }

        public final String component14() {
            return this.currency;
        }

        public final String component15() {
            return this.precision;
        }

        public final Integer component16() {
            return this.mediatorErrorCode;
        }

        public final int component2() {
            return this.version;
        }

        public final String component3() {
            return this.type;
        }

        public final long component4() {
            return this.timestamp;
        }

        public final String component5() {
            return this.networkName;
        }

        public final String component6() {
            return this.mediatorName;
        }

        public final String component7() {
            return this.adFormat;
        }

        public final String component8() {
            return this.placement;
        }

        public final String component9() {
            return this.adUnitId;
        }

        public final Ad copy(String id, int i6, String type, long j4, String str, String mediatorName, String str2, String str3, String adUnitId, String str4, String appUserID, String appSessionID, Long l, String str5, String str6, Integer num) {
            o.h(id, "id");
            o.h(type, "type");
            o.h(mediatorName, "mediatorName");
            o.h(adUnitId, "adUnitId");
            o.h(appUserID, "appUserID");
            o.h(appSessionID, "appSessionID");
            return new Ad(id, i6, type, j4, str, mediatorName, str2, str3, adUnitId, str4, appUserID, appSessionID, l, str5, str6, num);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Ad)) {
                return false;
            }
            Ad ad = (Ad) obj;
            return o.c(this.id, ad.id) && this.version == ad.version && o.c(this.type, ad.type) && this.timestamp == ad.timestamp && o.c(this.networkName, ad.networkName) && o.c(this.mediatorName, ad.mediatorName) && o.c(this.adFormat, ad.adFormat) && o.c(this.placement, ad.placement) && o.c(this.adUnitId, ad.adUnitId) && o.c(this.impressionId, ad.impressionId) && o.c(this.appUserID, ad.appUserID) && o.c(this.appSessionID, ad.appSessionID) && o.c(this.revenueMicros, ad.revenueMicros) && o.c(this.currency, ad.currency) && o.c(this.precision, ad.precision) && o.c(this.mediatorErrorCode, ad.mediatorErrorCode);
        }

        public final String getAdFormat() {
            return this.adFormat;
        }

        public final String getAdUnitId() {
            return this.adUnitId;
        }

        public final String getAppSessionID() {
            return this.appSessionID;
        }

        public final String getAppUserID() {
            return this.appUserID;
        }

        public final String getCurrency() {
            return this.currency;
        }

        public final String getId() {
            return this.id;
        }

        public final String getImpressionId() {
            return this.impressionId;
        }

        public final Integer getMediatorErrorCode() {
            return this.mediatorErrorCode;
        }

        public final String getMediatorName() {
            return this.mediatorName;
        }

        public final String getNetworkName() {
            return this.networkName;
        }

        public final String getPlacement() {
            return this.placement;
        }

        public final String getPrecision() {
            return this.precision;
        }

        public final Long getRevenueMicros() {
            return this.revenueMicros;
        }

        public final long getTimestamp() {
            return this.timestamp;
        }

        public final String getType() {
            return this.type;
        }

        public final int getVersion() {
            return this.version;
        }

        public int hashCode() {
            int iE = com.google.android.recaptcha.internal.a.e(AbstractC2761L.b(AbstractC2761L.a(this.version, this.id.hashCode() * 31, 31), 31, this.type), 31, this.timestamp);
            String str = this.networkName;
            int iB = AbstractC2761L.b((iE + (str == null ? 0 : str.hashCode())) * 31, 31, this.mediatorName);
            String str2 = this.adFormat;
            int iHashCode = (iB + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.placement;
            int iB2 = AbstractC2761L.b((iHashCode + (str3 == null ? 0 : str3.hashCode())) * 31, 31, this.adUnitId);
            String str4 = this.impressionId;
            int iB3 = AbstractC2761L.b(AbstractC2761L.b((iB2 + (str4 == null ? 0 : str4.hashCode())) * 31, 31, this.appUserID), 31, this.appSessionID);
            Long l = this.revenueMicros;
            int iHashCode2 = (iB3 + (l == null ? 0 : l.hashCode())) * 31;
            String str5 = this.currency;
            int iHashCode3 = (iHashCode2 + (str5 == null ? 0 : str5.hashCode())) * 31;
            String str6 = this.precision;
            int iHashCode4 = (iHashCode3 + (str6 == null ? 0 : str6.hashCode())) * 31;
            Integer num = this.mediatorErrorCode;
            return iHashCode4 + (num != null ? num.hashCode() : 0);
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            return "Ad(id=" + this.id + ", version=" + this.version + ", type=" + this.type + ", timestamp=" + this.timestamp + ", networkName=" + this.networkName + ", mediatorName=" + this.mediatorName + ", adFormat=" + this.adFormat + ", placement=" + this.placement + ", adUnitId=" + this.adUnitId + ", impressionId=" + this.impressionId + ", appUserID=" + this.appUserID + ", appSessionID=" + this.appSessionID + ", revenueMicros=" + this.revenueMicros + ", currency=" + this.currency + ", precision=" + this.precision + ", mediatorErrorCode=" + this.mediatorErrorCode + ')';
        }

        public /* synthetic */ Ad(String str, int i6, String str2, long j4, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, Long l, String str11, String str12, Integer num, int i7, kotlin.jvm.internal.h hVar) {
            this(str, i6, str2, j4, (i7 & 16) != 0 ? null : str3, str4, (i7 & 64) != 0 ? null : str5, str6, str7, str8, str9, str10, (i7 & 4096) != 0 ? null : l, (i7 & 8192) != 0 ? null : str11, (i7 & 16384) != 0 ? null : str12, (i7 & DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE) != 0 ? null : num);
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Ad(String id, int i6, String type, long j4, String str, String mediatorName, String str2, String str3, String adUnitId, String str4, String appUserID, String appSessionID, Long l, String str5, String str6, Integer num) {
            super(null);
            o.h(id, "id");
            o.h(type, "type");
            o.h(mediatorName, "mediatorName");
            o.h(adUnitId, "adUnitId");
            o.h(appUserID, "appUserID");
            o.h(appSessionID, "appSessionID");
            this.id = id;
            this.version = i6;
            this.type = type;
            this.timestamp = j4;
            this.networkName = str;
            this.mediatorName = mediatorName;
            this.adFormat = str2;
            this.placement = str3;
            this.adUnitId = adUnitId;
            this.impressionId = str4;
            this.appUserID = appUserID;
            this.appSessionID = appSessionID;
            this.revenueMicros = l;
            this.currency = str5;
            this.precision = str6;
            this.mediatorErrorCode = num;
        }
    }

    public static final class Companion {

        /* JADX INFO: renamed from: com.revenuecat.purchases.common.events.BackendEvent$Companion$1, reason: invalid class name */
        public static final class AnonymousClass1 extends p implements J4.a {
            public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

            public AnonymousClass1() {
                super(0);
            }

            @Override // J4.a
            public final a invoke() {
                return new e("com.revenuecat.purchases.common.events.BackendEvent", D.a(BackendEvent.class), new c[]{D.a(Ad.class), D.a(CustomPaywall.class), D.a(CustomerCenter.class), D.a(Paywalls.class)}, new a[]{BackendEvent$Ad$$serializer.INSTANCE, BackendEvent$CustomPaywall$$serializer.INSTANCE, BackendEvent$CustomerCenter$$serializer.INSTANCE, BackendEvent$Paywalls$$serializer.INSTANCE}, new Annotation[0]);
            }
        }

        public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
            this();
        }

        private final /* synthetic */ a get$cachedSerializer() {
            return (a) BackendEvent.$cachedSerializer$delegate.getValue();
        }

        public final a serializer() {
            return get$cachedSerializer();
        }

        private Companion() {
        }
    }

    public static final class CustomPaywall extends BackendEvent {
        public static final Companion Companion = new Companion(null);
        private final String appSessionID;
        private final String appUserID;
        private final String id;
        private final String offeringID;
        private final String paywallID;
        private final long timestamp;
        private final String type;
        private final int version;

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendEvent$CustomPaywall$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ CustomPaywall(int i6, String str, int i7, String str2, String str3, String str4, long j4, String str5, String str6, a0 a0Var) {
            super(i6, a0Var);
            if (47 != (i6 & 47)) {
                P.h(i6, 47, BackendEvent$CustomPaywall$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.id = str;
            this.version = i7;
            this.type = str2;
            this.appUserID = str3;
            if ((i6 & 16) == 0) {
                this.appSessionID = null;
            } else {
                this.appSessionID = str4;
            }
            this.timestamp = j4;
            if ((i6 & 64) == 0) {
                this.paywallID = null;
            } else {
                this.paywallID = str5;
            }
            if ((i6 & 128) == 0) {
                this.offeringID = null;
            } else {
                this.offeringID = str6;
            }
        }

        public static /* synthetic */ CustomPaywall copy$default(CustomPaywall customPaywall, String str, int i6, String str2, String str3, String str4, long j4, String str5, String str6, int i7, Object obj) {
            if ((i7 & 1) != 0) {
                str = customPaywall.id;
            }
            if ((i7 & 2) != 0) {
                i6 = customPaywall.version;
            }
            if ((i7 & 4) != 0) {
                str2 = customPaywall.type;
            }
            if ((i7 & 8) != 0) {
                str3 = customPaywall.appUserID;
            }
            if ((i7 & 16) != 0) {
                str4 = customPaywall.appSessionID;
            }
            if ((i7 & 32) != 0) {
                j4 = customPaywall.timestamp;
            }
            if ((i7 & 64) != 0) {
                str5 = customPaywall.paywallID;
            }
            if ((i7 & 128) != 0) {
                str6 = customPaywall.offeringID;
            }
            long j6 = j4;
            String str7 = str3;
            String str8 = str4;
            String str9 = str2;
            return customPaywall.copy(str, i6, str9, str7, str8, j6, str5, str6);
        }

        public static /* synthetic */ void getAppSessionID$annotations() {
        }

        public static /* synthetic */ void getAppUserID$annotations() {
        }

        public static /* synthetic */ void getOfferingID$annotations() {
        }

        public static /* synthetic */ void getPaywallID$annotations() {
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(CustomPaywall customPaywall, b bVar, i5.g gVar) {
            BackendEvent.write$Self(customPaywall, bVar, gVar);
            bVar.A(gVar, 0, customPaywall.id);
            bVar.w(1, customPaywall.version, gVar);
            bVar.A(gVar, 2, customPaywall.type);
            bVar.A(gVar, 3, customPaywall.appUserID);
            if (bVar.g(gVar) || customPaywall.appSessionID != null) {
                bVar.E(gVar, 4, e0.f20048a, customPaywall.appSessionID);
            }
            bVar.p(gVar, 5, customPaywall.timestamp);
            if (bVar.g(gVar) || customPaywall.paywallID != null) {
                bVar.E(gVar, 6, e0.f20048a, customPaywall.paywallID);
            }
            if (!bVar.g(gVar) && customPaywall.offeringID == null) {
                return;
            }
            bVar.E(gVar, 7, e0.f20048a, customPaywall.offeringID);
        }

        public final String component1() {
            return this.id;
        }

        public final int component2() {
            return this.version;
        }

        public final String component3() {
            return this.type;
        }

        public final String component4() {
            return this.appUserID;
        }

        public final String component5() {
            return this.appSessionID;
        }

        public final long component6() {
            return this.timestamp;
        }

        public final String component7() {
            return this.paywallID;
        }

        public final String component8() {
            return this.offeringID;
        }

        public final CustomPaywall copy(String id, int i6, String type, String appUserID, String str, long j4, String str2, String str3) {
            o.h(id, "id");
            o.h(type, "type");
            o.h(appUserID, "appUserID");
            return new CustomPaywall(id, i6, type, appUserID, str, j4, str2, str3);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof CustomPaywall)) {
                return false;
            }
            CustomPaywall customPaywall = (CustomPaywall) obj;
            return o.c(this.id, customPaywall.id) && this.version == customPaywall.version && o.c(this.type, customPaywall.type) && o.c(this.appUserID, customPaywall.appUserID) && o.c(this.appSessionID, customPaywall.appSessionID) && this.timestamp == customPaywall.timestamp && o.c(this.paywallID, customPaywall.paywallID) && o.c(this.offeringID, customPaywall.offeringID);
        }

        public final String getAppSessionID() {
            return this.appSessionID;
        }

        public final String getAppUserID() {
            return this.appUserID;
        }

        public final String getId() {
            return this.id;
        }

        public final String getOfferingID() {
            return this.offeringID;
        }

        public final String getPaywallID() {
            return this.paywallID;
        }

        public final long getTimestamp() {
            return this.timestamp;
        }

        public final String getType() {
            return this.type;
        }

        public final int getVersion() {
            return this.version;
        }

        public int hashCode() {
            int iB = AbstractC2761L.b(AbstractC2761L.b(AbstractC2761L.a(this.version, this.id.hashCode() * 31, 31), 31, this.type), 31, this.appUserID);
            String str = this.appSessionID;
            int iE = com.google.android.recaptcha.internal.a.e((iB + (str == null ? 0 : str.hashCode())) * 31, 31, this.timestamp);
            String str2 = this.paywallID;
            int iHashCode = (iE + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.offeringID;
            return iHashCode + (str3 != null ? str3.hashCode() : 0);
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            StringBuilder sb = new StringBuilder("CustomPaywall(id=");
            sb.append(this.id);
            sb.append(", version=");
            sb.append(this.version);
            sb.append(", type=");
            sb.append(this.type);
            sb.append(", appUserID=");
            sb.append(this.appUserID);
            sb.append(", appSessionID=");
            sb.append(this.appSessionID);
            sb.append(", timestamp=");
            sb.append(this.timestamp);
            sb.append(", paywallID=");
            sb.append(this.paywallID);
            sb.append(", offeringID=");
            return Z0.o.r(sb, this.offeringID, ')');
        }

        public /* synthetic */ CustomPaywall(String str, int i6, String str2, String str3, String str4, long j4, String str5, String str6, int i7, kotlin.jvm.internal.h hVar) {
            this(str, i6, str2, str3, (i7 & 16) != 0 ? null : str4, j4, (i7 & 64) != 0 ? null : str5, (i7 & 128) != 0 ? null : str6);
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public CustomPaywall(String id, int i6, String type, String appUserID, String str, long j4, String str2, String str3) {
            super(null);
            o.h(id, "id");
            o.h(type, "type");
            o.h(appUserID, "appUserID");
            this.id = id;
            this.version = i6;
            this.type = type;
            this.appUserID = appUserID;
            this.appSessionID = str;
            this.timestamp = j4;
            this.paywallID = str2;
            this.offeringID = str3;
        }
    }

    public static final class CustomerCenter extends BackendEvent {
        private final String appSessionID;
        private final String appUserID;
        private final boolean darkMode;
        private final CustomerCenterDisplayMode displayMode;
        private final String id;
        private final String locale;
        private final CustomerCenterConfigData.HelpPath.PathType path;
        private final int revisionID;
        private final String surveyOptionID;
        private final long timestamp;
        private final CustomerCenterEventType type;
        private final String url;
        public static final Companion Companion = new Companion(null);
        private static final a[] $childSerializers = {null, null, CustomerCenterEventType.Companion.serializer(), null, null, null, null, null, CustomerCenterDisplayMode.Companion.serializer(), CustomerCenterConfigData.HelpPath.PathType.Companion.serializer(), null, null};

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendEvent$CustomerCenter$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ CustomerCenter(int i6, String str, int i7, CustomerCenterEventType customerCenterEventType, String str2, String str3, long j4, boolean z6, String str4, CustomerCenterDisplayMode customerCenterDisplayMode, CustomerCenterConfigData.HelpPath.PathType pathType, String str5, String str6, a0 a0Var) {
            super(i6, a0Var);
            if (4095 != (i6 & 4095)) {
                P.h(i6, 4095, BackendEvent$CustomerCenter$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.id = str;
            this.revisionID = i7;
            this.type = customerCenterEventType;
            this.appUserID = str2;
            this.appSessionID = str3;
            this.timestamp = j4;
            this.darkMode = z6;
            this.locale = str4;
            this.displayMode = customerCenterDisplayMode;
            this.path = pathType;
            this.url = str5;
            this.surveyOptionID = str6;
        }

        public static /* synthetic */ CustomerCenter copy$default(CustomerCenter customerCenter, String str, int i6, CustomerCenterEventType customerCenterEventType, String str2, String str3, long j4, boolean z6, String str4, CustomerCenterDisplayMode customerCenterDisplayMode, CustomerCenterConfigData.HelpPath.PathType pathType, String str5, String str6, int i7, Object obj) {
            if ((i7 & 1) != 0) {
                str = customerCenter.id;
            }
            return customerCenter.copy(str, (i7 & 2) != 0 ? customerCenter.revisionID : i6, (i7 & 4) != 0 ? customerCenter.type : customerCenterEventType, (i7 & 8) != 0 ? customerCenter.appUserID : str2, (i7 & 16) != 0 ? customerCenter.appSessionID : str3, (i7 & 32) != 0 ? customerCenter.timestamp : j4, (i7 & 64) != 0 ? customerCenter.darkMode : z6, (i7 & 128) != 0 ? customerCenter.locale : str4, (i7 & 256) != 0 ? customerCenter.displayMode : customerCenterDisplayMode, (i7 & 512) != 0 ? customerCenter.path : pathType, (i7 & 1024) != 0 ? customerCenter.url : str5, (i7 & 2048) != 0 ? customerCenter.surveyOptionID : str6);
        }

        public static /* synthetic */ void getAppSessionID$annotations() {
        }

        public static /* synthetic */ void getAppUserID$annotations() {
        }

        public static /* synthetic */ void getDarkMode$annotations() {
        }

        public static /* synthetic */ void getDisplayMode$annotations() {
        }

        public static /* synthetic */ void getRevisionID$annotations() {
        }

        public static /* synthetic */ void getSurveyOptionID$annotations() {
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(CustomerCenter customerCenter, b bVar, i5.g gVar) {
            BackendEvent.write$Self(customerCenter, bVar, gVar);
            a[] aVarArr = $childSerializers;
            bVar.A(gVar, 0, customerCenter.id);
            bVar.w(1, customerCenter.revisionID, gVar);
            bVar.z(gVar, 2, aVarArr[2], customerCenter.type);
            bVar.A(gVar, 3, customerCenter.appUserID);
            bVar.A(gVar, 4, customerCenter.appSessionID);
            bVar.p(gVar, 5, customerCenter.timestamp);
            bVar.v(gVar, 6, customerCenter.darkMode);
            bVar.A(gVar, 7, customerCenter.locale);
            bVar.z(gVar, 8, aVarArr[8], customerCenter.displayMode);
            bVar.E(gVar, 9, aVarArr[9], customerCenter.path);
            e0 e0Var = e0.f20048a;
            bVar.E(gVar, 10, e0Var, customerCenter.url);
            bVar.E(gVar, 11, e0Var, customerCenter.surveyOptionID);
        }

        public final String component1() {
            return this.id;
        }

        public final CustomerCenterConfigData.HelpPath.PathType component10() {
            return this.path;
        }

        public final String component11() {
            return this.url;
        }

        public final String component12() {
            return this.surveyOptionID;
        }

        public final int component2() {
            return this.revisionID;
        }

        public final CustomerCenterEventType component3() {
            return this.type;
        }

        public final String component4() {
            return this.appUserID;
        }

        public final String component5() {
            return this.appSessionID;
        }

        public final long component6() {
            return this.timestamp;
        }

        public final boolean component7() {
            return this.darkMode;
        }

        public final String component8() {
            return this.locale;
        }

        public final CustomerCenterDisplayMode component9() {
            return this.displayMode;
        }

        public final CustomerCenter copy(String id, int i6, CustomerCenterEventType type, String appUserID, String appSessionID, long j4, boolean z6, String locale, CustomerCenterDisplayMode displayMode, CustomerCenterConfigData.HelpPath.PathType pathType, String str, String str2) {
            o.h(id, "id");
            o.h(type, "type");
            o.h(appUserID, "appUserID");
            o.h(appSessionID, "appSessionID");
            o.h(locale, "locale");
            o.h(displayMode, "displayMode");
            return new CustomerCenter(id, i6, type, appUserID, appSessionID, j4, z6, locale, displayMode, pathType, str, str2);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof CustomerCenter)) {
                return false;
            }
            CustomerCenter customerCenter = (CustomerCenter) obj;
            return o.c(this.id, customerCenter.id) && this.revisionID == customerCenter.revisionID && this.type == customerCenter.type && o.c(this.appUserID, customerCenter.appUserID) && o.c(this.appSessionID, customerCenter.appSessionID) && this.timestamp == customerCenter.timestamp && this.darkMode == customerCenter.darkMode && o.c(this.locale, customerCenter.locale) && this.displayMode == customerCenter.displayMode && this.path == customerCenter.path && o.c(this.url, customerCenter.url) && o.c(this.surveyOptionID, customerCenter.surveyOptionID);
        }

        public final String getAppSessionID() {
            return this.appSessionID;
        }

        public final String getAppUserID() {
            return this.appUserID;
        }

        public final boolean getDarkMode() {
            return this.darkMode;
        }

        public final CustomerCenterDisplayMode getDisplayMode() {
            return this.displayMode;
        }

        public final String getId() {
            return this.id;
        }

        public final String getLocale() {
            return this.locale;
        }

        public final CustomerCenterConfigData.HelpPath.PathType getPath() {
            return this.path;
        }

        public final int getRevisionID() {
            return this.revisionID;
        }

        public final String getSurveyOptionID() {
            return this.surveyOptionID;
        }

        public final long getTimestamp() {
            return this.timestamp;
        }

        public final CustomerCenterEventType getType() {
            return this.type;
        }

        public final String getUrl() {
            return this.url;
        }

        public int hashCode() {
            int iHashCode = (this.displayMode.hashCode() + AbstractC2761L.b(com.google.android.recaptcha.internal.a.f(com.google.android.recaptcha.internal.a.e(AbstractC2761L.b(AbstractC2761L.b((this.type.hashCode() + AbstractC2761L.a(this.revisionID, this.id.hashCode() * 31, 31)) * 31, 31, this.appUserID), 31, this.appSessionID), 31, this.timestamp), 31, this.darkMode), 31, this.locale)) * 31;
            CustomerCenterConfigData.HelpPath.PathType pathType = this.path;
            int iHashCode2 = (iHashCode + (pathType == null ? 0 : pathType.hashCode())) * 31;
            String str = this.url;
            int iHashCode3 = (iHashCode2 + (str == null ? 0 : str.hashCode())) * 31;
            String str2 = this.surveyOptionID;
            return iHashCode3 + (str2 != null ? str2.hashCode() : 0);
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            StringBuilder sb = new StringBuilder("CustomerCenter(id=");
            sb.append(this.id);
            sb.append(", revisionID=");
            sb.append(this.revisionID);
            sb.append(", type=");
            sb.append(this.type);
            sb.append(", appUserID=");
            sb.append(this.appUserID);
            sb.append(", appSessionID=");
            sb.append(this.appSessionID);
            sb.append(", timestamp=");
            sb.append(this.timestamp);
            sb.append(", darkMode=");
            sb.append(this.darkMode);
            sb.append(", locale=");
            sb.append(this.locale);
            sb.append(", displayMode=");
            sb.append(this.displayMode);
            sb.append(", path=");
            sb.append(this.path);
            sb.append(", url=");
            sb.append(this.url);
            sb.append(", surveyOptionID=");
            return Z0.o.r(sb, this.surveyOptionID, ')');
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public CustomerCenter(String id, int i6, CustomerCenterEventType type, String appUserID, String appSessionID, long j4, boolean z6, String locale, CustomerCenterDisplayMode displayMode, CustomerCenterConfigData.HelpPath.PathType pathType, String str, String str2) {
            super(null);
            o.h(id, "id");
            o.h(type, "type");
            o.h(appUserID, "appUserID");
            o.h(appSessionID, "appSessionID");
            o.h(locale, "locale");
            o.h(displayMode, "displayMode");
            this.id = id;
            this.revisionID = i6;
            this.type = type;
            this.appUserID = appUserID;
            this.appSessionID = appSessionID;
            this.timestamp = j4;
            this.darkMode = z6;
            this.locale = locale;
            this.displayMode = displayMode;
            this.path = pathType;
            this.url = str;
            this.surveyOptionID = str2;
        }
    }

    public static final class Paywalls extends BackendEvent {
        public static final Companion Companion = new Companion(null);
        private final String appUserID;
        private final boolean darkMode;
        private final String displayMode;
        private final Integer errorCode;
        private final String errorMessage;
        private final String exitOfferType;
        private final String exitOfferingID;
        private final String id;
        private final String localeIdentifier;
        private final String offeringID;
        private final String packageID;
        private final String paywallID;
        private final int paywallRevision;
        private final String productID;
        private final String sessionID;
        private final long timestamp;
        private final String type;
        private final int version;

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendEvent$Paywalls$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ Paywalls(int i6, String str, int i7, String str2, String str3, String str4, String str5, String str6, int i8, long j4, String str7, boolean z6, String str8, String str9, String str10, String str11, String str12, Integer num, String str13, a0 a0Var) {
            super(i6, a0Var);
            if (4095 != (i6 & 4095)) {
                P.h(i6, 4095, BackendEvent$Paywalls$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.id = str;
            this.version = i7;
            this.type = str2;
            this.appUserID = str3;
            this.sessionID = str4;
            this.offeringID = str5;
            this.paywallID = str6;
            this.paywallRevision = i8;
            this.timestamp = j4;
            this.displayMode = str7;
            this.darkMode = z6;
            this.localeIdentifier = str8;
            if ((i6 & 4096) == 0) {
                this.exitOfferType = null;
            } else {
                this.exitOfferType = str9;
            }
            if ((i6 & 8192) == 0) {
                this.exitOfferingID = null;
            } else {
                this.exitOfferingID = str10;
            }
            if ((i6 & 16384) == 0) {
                this.packageID = null;
            } else {
                this.packageID = str11;
            }
            if ((32768 & i6) == 0) {
                this.productID = null;
            } else {
                this.productID = str12;
            }
            if ((65536 & i6) == 0) {
                this.errorCode = null;
            } else {
                this.errorCode = num;
            }
            if ((i6 & 131072) == 0) {
                this.errorMessage = null;
            } else {
                this.errorMessage = str13;
            }
        }

        public static /* synthetic */ Paywalls copy$default(Paywalls paywalls, String str, int i6, String str2, String str3, String str4, String str5, String str6, int i7, long j4, String str7, boolean z6, String str8, String str9, String str10, String str11, String str12, Integer num, String str13, int i8, Object obj) {
            String str14;
            Integer num2;
            String str15 = (i8 & 1) != 0 ? paywalls.id : str;
            int i9 = (i8 & 2) != 0 ? paywalls.version : i6;
            String str16 = (i8 & 4) != 0 ? paywalls.type : str2;
            String str17 = (i8 & 8) != 0 ? paywalls.appUserID : str3;
            String str18 = (i8 & 16) != 0 ? paywalls.sessionID : str4;
            String str19 = (i8 & 32) != 0 ? paywalls.offeringID : str5;
            String str20 = (i8 & 64) != 0 ? paywalls.paywallID : str6;
            int i10 = (i8 & 128) != 0 ? paywalls.paywallRevision : i7;
            long j6 = (i8 & 256) != 0 ? paywalls.timestamp : j4;
            String str21 = (i8 & 512) != 0 ? paywalls.displayMode : str7;
            boolean z7 = (i8 & 1024) != 0 ? paywalls.darkMode : z6;
            String str22 = (i8 & 2048) != 0 ? paywalls.localeIdentifier : str8;
            String str23 = (i8 & 4096) != 0 ? paywalls.exitOfferType : str9;
            String str24 = str15;
            String str25 = (i8 & 8192) != 0 ? paywalls.exitOfferingID : str10;
            String str26 = (i8 & 16384) != 0 ? paywalls.packageID : str11;
            String str27 = (i8 & DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE) != 0 ? paywalls.productID : str12;
            Integer num3 = (i8 & C.DEFAULT_BUFFER_SEGMENT_SIZE) != 0 ? paywalls.errorCode : num;
            if ((i8 & 131072) != 0) {
                num2 = num3;
                str14 = paywalls.errorMessage;
            } else {
                str14 = str13;
                num2 = num3;
            }
            return paywalls.copy(str24, i9, str16, str17, str18, str19, str20, i10, j6, str21, z7, str22, str23, str25, str26, str27, num2, str14);
        }

        public static /* synthetic */ void getAppUserID$annotations() {
        }

        public static /* synthetic */ void getDarkMode$annotations() {
        }

        public static /* synthetic */ void getDisplayMode$annotations() {
        }

        public static /* synthetic */ void getErrorCode$annotations() {
        }

        public static /* synthetic */ void getErrorMessage$annotations() {
        }

        public static /* synthetic */ void getExitOfferType$annotations() {
        }

        public static /* synthetic */ void getExitOfferingID$annotations() {
        }

        public static /* synthetic */ void getLocaleIdentifier$annotations() {
        }

        public static /* synthetic */ void getOfferingID$annotations() {
        }

        public static /* synthetic */ void getPackageID$annotations() {
        }

        public static /* synthetic */ void getPaywallID$annotations() {
        }

        public static /* synthetic */ void getPaywallRevision$annotations() {
        }

        public static /* synthetic */ void getProductID$annotations() {
        }

        public static /* synthetic */ void getSessionID$annotations() {
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Paywalls paywalls, b bVar, i5.g gVar) {
            BackendEvent.write$Self(paywalls, bVar, gVar);
            bVar.A(gVar, 0, paywalls.id);
            bVar.w(1, paywalls.version, gVar);
            bVar.A(gVar, 2, paywalls.type);
            bVar.A(gVar, 3, paywalls.appUserID);
            bVar.A(gVar, 4, paywalls.sessionID);
            bVar.A(gVar, 5, paywalls.offeringID);
            e0 e0Var = e0.f20048a;
            bVar.E(gVar, 6, e0Var, paywalls.paywallID);
            bVar.w(7, paywalls.paywallRevision, gVar);
            bVar.p(gVar, 8, paywalls.timestamp);
            bVar.A(gVar, 9, paywalls.displayMode);
            bVar.v(gVar, 10, paywalls.darkMode);
            bVar.A(gVar, 11, paywalls.localeIdentifier);
            if (bVar.g(gVar) || paywalls.exitOfferType != null) {
                bVar.E(gVar, 12, e0Var, paywalls.exitOfferType);
            }
            if (bVar.g(gVar) || paywalls.exitOfferingID != null) {
                bVar.E(gVar, 13, e0Var, paywalls.exitOfferingID);
            }
            if (bVar.g(gVar) || paywalls.packageID != null) {
                bVar.E(gVar, 14, e0Var, paywalls.packageID);
            }
            if (bVar.g(gVar) || paywalls.productID != null) {
                bVar.E(gVar, 15, e0Var, paywalls.productID);
            }
            if (bVar.g(gVar) || paywalls.errorCode != null) {
                bVar.E(gVar, 16, F.f19995a, paywalls.errorCode);
            }
            if (!bVar.g(gVar) && paywalls.errorMessage == null) {
                return;
            }
            bVar.E(gVar, 17, e0Var, paywalls.errorMessage);
        }

        public final String component1() {
            return this.id;
        }

        public final String component10() {
            return this.displayMode;
        }

        public final boolean component11() {
            return this.darkMode;
        }

        public final String component12() {
            return this.localeIdentifier;
        }

        public final String component13() {
            return this.exitOfferType;
        }

        public final String component14() {
            return this.exitOfferingID;
        }

        public final String component15() {
            return this.packageID;
        }

        public final String component16() {
            return this.productID;
        }

        public final Integer component17() {
            return this.errorCode;
        }

        public final String component18() {
            return this.errorMessage;
        }

        public final int component2() {
            return this.version;
        }

        public final String component3() {
            return this.type;
        }

        public final String component4() {
            return this.appUserID;
        }

        public final String component5() {
            return this.sessionID;
        }

        public final String component6() {
            return this.offeringID;
        }

        public final String component7() {
            return this.paywallID;
        }

        public final int component8() {
            return this.paywallRevision;
        }

        public final long component9() {
            return this.timestamp;
        }

        public final Paywalls copy(String id, int i6, String type, String appUserID, String sessionID, String offeringID, String str, int i7, long j4, String displayMode, boolean z6, String localeIdentifier, String str2, String str3, String str4, String str5, Integer num, String str6) {
            o.h(id, "id");
            o.h(type, "type");
            o.h(appUserID, "appUserID");
            o.h(sessionID, "sessionID");
            o.h(offeringID, "offeringID");
            o.h(displayMode, "displayMode");
            o.h(localeIdentifier, "localeIdentifier");
            return new Paywalls(id, i6, type, appUserID, sessionID, offeringID, str, i7, j4, displayMode, z6, localeIdentifier, str2, str3, str4, str5, num, str6);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Paywalls)) {
                return false;
            }
            Paywalls paywalls = (Paywalls) obj;
            return o.c(this.id, paywalls.id) && this.version == paywalls.version && o.c(this.type, paywalls.type) && o.c(this.appUserID, paywalls.appUserID) && o.c(this.sessionID, paywalls.sessionID) && o.c(this.offeringID, paywalls.offeringID) && o.c(this.paywallID, paywalls.paywallID) && this.paywallRevision == paywalls.paywallRevision && this.timestamp == paywalls.timestamp && o.c(this.displayMode, paywalls.displayMode) && this.darkMode == paywalls.darkMode && o.c(this.localeIdentifier, paywalls.localeIdentifier) && o.c(this.exitOfferType, paywalls.exitOfferType) && o.c(this.exitOfferingID, paywalls.exitOfferingID) && o.c(this.packageID, paywalls.packageID) && o.c(this.productID, paywalls.productID) && o.c(this.errorCode, paywalls.errorCode) && o.c(this.errorMessage, paywalls.errorMessage);
        }

        public final String getAppUserID() {
            return this.appUserID;
        }

        public final boolean getDarkMode() {
            return this.darkMode;
        }

        public final String getDisplayMode() {
            return this.displayMode;
        }

        public final Integer getErrorCode() {
            return this.errorCode;
        }

        public final String getErrorMessage() {
            return this.errorMessage;
        }

        public final String getExitOfferType() {
            return this.exitOfferType;
        }

        public final String getExitOfferingID() {
            return this.exitOfferingID;
        }

        public final String getId() {
            return this.id;
        }

        public final String getLocaleIdentifier() {
            return this.localeIdentifier;
        }

        public final String getOfferingID() {
            return this.offeringID;
        }

        public final String getPackageID() {
            return this.packageID;
        }

        public final String getPaywallID() {
            return this.paywallID;
        }

        public final int getPaywallRevision() {
            return this.paywallRevision;
        }

        public final String getProductID() {
            return this.productID;
        }

        public final String getSessionID() {
            return this.sessionID;
        }

        public final long getTimestamp() {
            return this.timestamp;
        }

        public final String getType() {
            return this.type;
        }

        public final int getVersion() {
            return this.version;
        }

        public int hashCode() {
            int iB = AbstractC2761L.b(AbstractC2761L.b(AbstractC2761L.b(AbstractC2761L.b(AbstractC2761L.a(this.version, this.id.hashCode() * 31, 31), 31, this.type), 31, this.appUserID), 31, this.sessionID), 31, this.offeringID);
            String str = this.paywallID;
            int iB2 = AbstractC2761L.b(com.google.android.recaptcha.internal.a.f(AbstractC2761L.b(com.google.android.recaptcha.internal.a.e(AbstractC2761L.a(this.paywallRevision, (iB + (str == null ? 0 : str.hashCode())) * 31, 31), 31, this.timestamp), 31, this.displayMode), 31, this.darkMode), 31, this.localeIdentifier);
            String str2 = this.exitOfferType;
            int iHashCode = (iB2 + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.exitOfferingID;
            int iHashCode2 = (iHashCode + (str3 == null ? 0 : str3.hashCode())) * 31;
            String str4 = this.packageID;
            int iHashCode3 = (iHashCode2 + (str4 == null ? 0 : str4.hashCode())) * 31;
            String str5 = this.productID;
            int iHashCode4 = (iHashCode3 + (str5 == null ? 0 : str5.hashCode())) * 31;
            Integer num = this.errorCode;
            int iHashCode5 = (iHashCode4 + (num == null ? 0 : num.hashCode())) * 31;
            String str6 = this.errorMessage;
            return iHashCode5 + (str6 != null ? str6.hashCode() : 0);
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            StringBuilder sb = new StringBuilder("Paywalls(id=");
            sb.append(this.id);
            sb.append(", version=");
            sb.append(this.version);
            sb.append(", type=");
            sb.append(this.type);
            sb.append(", appUserID=");
            sb.append(this.appUserID);
            sb.append(", sessionID=");
            sb.append(this.sessionID);
            sb.append(", offeringID=");
            sb.append(this.offeringID);
            sb.append(", paywallID=");
            sb.append(this.paywallID);
            sb.append(", paywallRevision=");
            sb.append(this.paywallRevision);
            sb.append(", timestamp=");
            sb.append(this.timestamp);
            sb.append(", displayMode=");
            sb.append(this.displayMode);
            sb.append(", darkMode=");
            sb.append(this.darkMode);
            sb.append(", localeIdentifier=");
            sb.append(this.localeIdentifier);
            sb.append(", exitOfferType=");
            sb.append(this.exitOfferType);
            sb.append(", exitOfferingID=");
            sb.append(this.exitOfferingID);
            sb.append(", packageID=");
            sb.append(this.packageID);
            sb.append(", productID=");
            sb.append(this.productID);
            sb.append(", errorCode=");
            sb.append(this.errorCode);
            sb.append(", errorMessage=");
            return Z0.o.r(sb, this.errorMessage, ')');
        }

        public /* synthetic */ Paywalls(String str, int i6, String str2, String str3, String str4, String str5, String str6, int i7, long j4, String str7, boolean z6, String str8, String str9, String str10, String str11, String str12, Integer num, String str13, int i8, kotlin.jvm.internal.h hVar) {
            this(str, i6, str2, str3, str4, str5, str6, i7, j4, str7, z6, str8, (i8 & 4096) != 0 ? null : str9, (i8 & 8192) != 0 ? null : str10, (i8 & 16384) != 0 ? null : str11, (32768 & i8) != 0 ? null : str12, (65536 & i8) != 0 ? null : num, (i8 & 131072) != 0 ? null : str13);
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Paywalls(String id, int i6, String type, String appUserID, String sessionID, String offeringID, String str, int i7, long j4, String displayMode, boolean z6, String localeIdentifier, String str2, String str3, String str4, String str5, Integer num, String str6) {
            super(null);
            o.h(id, "id");
            o.h(type, "type");
            o.h(appUserID, "appUserID");
            o.h(sessionID, "sessionID");
            o.h(offeringID, "offeringID");
            o.h(displayMode, "displayMode");
            o.h(localeIdentifier, "localeIdentifier");
            this.id = id;
            this.version = i6;
            this.type = type;
            this.appUserID = appUserID;
            this.sessionID = sessionID;
            this.offeringID = offeringID;
            this.paywallID = str;
            this.paywallRevision = i7;
            this.timestamp = j4;
            this.displayMode = displayMode;
            this.darkMode = z6;
            this.localeIdentifier = localeIdentifier;
            this.exitOfferType = str2;
            this.exitOfferingID = str3;
            this.packageID = str4;
            this.productID = str5;
            this.errorCode = num;
            this.errorMessage = str6;
        }
    }

    public /* synthetic */ BackendEvent(kotlin.jvm.internal.h hVar) {
        this();
    }

    private BackendEvent() {
    }

    @InterfaceC3141c
    public /* synthetic */ BackendEvent(int i6, a0 a0Var) {
    }

    public static final /* synthetic */ void write$Self(BackendEvent backendEvent, b bVar, i5.g gVar) {
    }
}
