package defpackage;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.exoplayer.upstream.CmcdData;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@si8
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\b\u0087\b\u0018\u0000 \u00022\u00020\u0001:\u0002\u0003\u0004¨\u0006\u0005"}, d2 = {"Ld82;", "", "Companion", CmcdData.OBJECT_TYPE_AUDIO_ONLY, "b", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final /* data */ class d82 {

    /* JADX INFO: renamed from: Companion, reason: from kotlin metadata */
    @kp6
    public static final Companion INSTANCE = new Companion();
    public final String a;
    public final String b;
    public final String c;
    public final String d;
    public final String e;
    public final String f;
    public final String g;
    public final String h;
    public final String i;
    public final String j;

    @e52
    @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\bÇ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001R\u0017\u0010\u0004\u001a\u00020\u00038\u0006¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"com/strmr/ps/data/supabase/models/DeviceAuthCode.$serializer", "Lat3;", "Ld82;", "Lbi8;", "descriptor", "Lbi8;", "getDescriptor", "()Lbi8;", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public /* synthetic */ class a implements at3<d82> {
        public static final a a;

        @kp6
        private static final bi8 descriptor;

        static {
            a aVar = new a();
            a = aVar;
            va7 va7Var = new va7("com.strmr.ps.data.supabase.models.DeviceAuthCode", aVar, 10);
            va7Var.j(TtmlNode.ATTR_ID, true);
            va7Var.j("code", false);
            va7Var.j("device_identifier", false);
            va7Var.j("device_name", false);
            va7Var.j("user_id", true);
            va7Var.j("access_token", true);
            va7Var.j("refresh_token", true);
            va7Var.j("status", true);
            va7Var.j("created_at", true);
            va7Var.j("expires_at", true);
            descriptor = va7Var;
        }

        @Override // defpackage.at3
        public final n25[] childSerializers() {
            u79 u79Var = u79.a;
            return new n25[]{qk0.a(u79Var), u79Var, u79Var, u79Var, qk0.a(u79Var), qk0.a(u79Var), qk0.a(u79Var), u79Var, qk0.a(u79Var), qk0.a(u79Var)};
        }

        @Override // defpackage.o52
        public final Object deserialize(ux1 ux1Var) {
            bi8 bi8Var = descriptor;
            da1 da1VarC = ux1Var.c(bi8Var);
            String str = null;
            String str2 = null;
            String strK = null;
            String strK2 = null;
            String strK3 = null;
            String str3 = null;
            String str4 = null;
            String str5 = null;
            String strK4 = null;
            String str6 = null;
            boolean z = true;
            int i = 0;
            while (z) {
                int iW = da1VarC.w(bi8Var);
                switch (iW) {
                    case -1:
                        z = false;
                        break;
                    case 0:
                        str2 = (String) da1VarC.o(bi8Var, 0, u79.a, str2);
                        i |= 1;
                        break;
                    case 1:
                        strK = da1VarC.k(bi8Var, 1);
                        i |= 2;
                        break;
                    case 2:
                        strK2 = da1VarC.k(bi8Var, 2);
                        i |= 4;
                        break;
                    case 3:
                        strK3 = da1VarC.k(bi8Var, 3);
                        i |= 8;
                        break;
                    case 4:
                        str3 = (String) da1VarC.o(bi8Var, 4, u79.a, str3);
                        i |= 16;
                        break;
                    case 5:
                        str4 = (String) da1VarC.o(bi8Var, 5, u79.a, str4);
                        i |= 32;
                        break;
                    case 6:
                        str5 = (String) da1VarC.o(bi8Var, 6, u79.a, str5);
                        i |= 64;
                        break;
                    case 7:
                        strK4 = da1VarC.k(bi8Var, 7);
                        i |= 128;
                        break;
                    case 8:
                        str6 = (String) da1VarC.o(bi8Var, 8, u79.a, str6);
                        i |= 256;
                        break;
                    case 9:
                        str = (String) da1VarC.o(bi8Var, 9, u79.a, str);
                        i |= 512;
                        break;
                    default:
                        throw new q6a(iW);
                }
            }
            da1VarC.b(bi8Var);
            return new d82(i, str2, strK, strK2, strK3, str3, str4, str5, strK4, str6, str);
        }

        @Override // defpackage.yi8, defpackage.o52
        public final bi8 getDescriptor() {
            return descriptor;
        }

        @Override // defpackage.yi8
        public final void serialize(fl2 fl2Var, Object obj) {
            d82 d82Var = (d82) obj;
            cr4.g(d82Var, AppMeasurementSdk.ConditionalUserProperty.VALUE);
            String str = d82Var.a;
            bi8 bi8Var = descriptor;
            fa1 fa1VarC = fl2Var.c(bi8Var);
            if (fa1VarC.e(bi8Var, 0) || str != null) {
                fa1VarC.ae(bi8Var, 0, u79.a, str);
            }
            String str2 = d82Var.b;
            String str3 = d82Var.j;
            String str4 = d82Var.i;
            String str5 = d82Var.h;
            String str6 = d82Var.g;
            String str7 = d82Var.f;
            String str8 = d82Var.e;
            fa1VarC.n(bi8Var, 1, str2);
            fa1VarC.n(bi8Var, 2, d82Var.c);
            fa1VarC.n(bi8Var, 3, d82Var.d);
            if (fa1VarC.e(bi8Var, 4) || str8 != null) {
                fa1VarC.ae(bi8Var, 4, u79.a, str8);
            }
            if (fa1VarC.e(bi8Var, 5) || str7 != null) {
                fa1VarC.ae(bi8Var, 5, u79.a, str7);
            }
            if (fa1VarC.e(bi8Var, 6) || str6 != null) {
                fa1VarC.ae(bi8Var, 6, u79.a, str6);
            }
            if (fa1VarC.e(bi8Var, 7) || !cr4.b(str5, "pending")) {
                fa1VarC.n(bi8Var, 7, str5);
            }
            if (fa1VarC.e(bi8Var, 8) || str4 != null) {
                fa1VarC.ae(bi8Var, 8, u79.a, str4);
            }
            if (fa1VarC.e(bi8Var, 9) || str3 != null) {
                fa1VarC.ae(bi8Var, 9, u79.a, str3);
            }
            fa1VarC.b(bi8Var);
        }

        @Override // defpackage.at3
        public final n25[] typeParametersSerializers() {
            return xa7.a;
        }
    }

    /* JADX INFO: renamed from: d82$b, reason: from kotlin metadata */
    @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001J\u0013\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002¢\u0006\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Ld82$b;", "", "Ln25;", "Ld82;", "serializer", "()Ln25;", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Companion {
        @kp6
        public final n25<d82> serializer() {
            return a.a;
        }
    }

    public d82(String str, String str2, String str3) {
        cr4.g(str, "code");
        cr4.g(str3, "deviceName");
        this.a = null;
        this.b = str;
        this.c = str2;
        this.d = str3;
        this.e = null;
        this.f = null;
        this.g = null;
        this.h = "pending";
        this.i = null;
        this.j = null;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof d82)) {
            return false;
        }
        d82 d82Var = (d82) obj;
        return cr4.b(this.a, d82Var.a) && cr4.b(this.b, d82Var.b) && cr4.b(this.c, d82Var.c) && cr4.b(this.d, d82Var.d) && cr4.b(this.e, d82Var.e) && cr4.b(this.f, d82Var.f) && cr4.b(this.g, d82Var.g) && cr4.b(this.h, d82Var.h) && cr4.b(this.i, d82Var.i) && cr4.b(this.j, d82Var.j);
    }

    public final int hashCode() {
        String str = this.a;
        int iB = vw2.b(vw2.b(vw2.b((str == null ? 0 : str.hashCode()) * 31, 31, this.b), 31, this.c), 31, this.d);
        String str2 = this.e;
        int iHashCode = (iB + (str2 == null ? 0 : str2.hashCode())) * 31;
        String str3 = this.f;
        int iHashCode2 = (iHashCode + (str3 == null ? 0 : str3.hashCode())) * 31;
        String str4 = this.g;
        int iB2 = vw2.b((iHashCode2 + (str4 == null ? 0 : str4.hashCode())) * 31, 31, this.h);
        String str5 = this.i;
        int iHashCode3 = (iB2 + (str5 == null ? 0 : str5.hashCode())) * 31;
        String str6 = this.j;
        return iHashCode3 + (str6 != null ? str6.hashCode() : 0);
    }

    public final String toString() {
        StringBuilder sbM = fi7.m("DeviceAuthCode(id=", this.a, ", code=", this.b, ", deviceIdentifier=");
        vw2.aa(sbM, this.c, ", deviceName=", this.d, ", userId=");
        vw2.aa(sbM, this.e, ", accessToken=", this.f, ", refreshToken=");
        vw2.aa(sbM, this.g, ", status=", this.h, ", createdAt=");
        return n41.u(sbM, this.i, ", expiresAt=", this.j, ")");
    }

    public /* synthetic */ d82(int i, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10) {
        if (14 != (i & 14)) {
            ta7.a(i, 14, a.a.getDescriptor());
            throw null;
        }
        if ((i & 1) == 0) {
            this.a = null;
        } else {
            this.a = str;
        }
        this.b = str2;
        this.c = str3;
        this.d = str4;
        if ((i & 16) == 0) {
            this.e = null;
        } else {
            this.e = str5;
        }
        if ((i & 32) == 0) {
            this.f = null;
        } else {
            this.f = str6;
        }
        if ((i & 64) == 0) {
            this.g = null;
        } else {
            this.g = str7;
        }
        if ((i & 128) == 0) {
            this.h = "pending";
        } else {
            this.h = str8;
        }
        if ((i & 256) == 0) {
            this.i = null;
        } else {
            this.i = str9;
        }
        if ((i & 512) == 0) {
            this.j = null;
        } else {
            this.j = str10;
        }
    }
}
