package com.martsnew.domain.model;

import B6.l;
import B6.m;
import P6.g;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.material.datepicker.d;
import d5.AbstractC0844a;
import java.util.Iterator;
import java.util.List;
import l5.EnumC1136e;

/* JADX INFO: loaded from: classes.dex */
public final class EpisodeSource implements Parcelable {
    public static final Parcelable.Creator<EpisodeSource> CREATOR = new d(26);

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public final int f11033A;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final long f11034q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final String f11035r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final String f11036s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final String f11037t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final int f11038u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final Object f11039v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final StreamSource f11040w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final int f11041x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final long f11042y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final long f11043z;

    public EpisodeSource(long j8, String str, String str2, String str3, int i, List list, StreamSource streamSource, int i5, long j9, long j10, int i8) {
        g.e(str, "name");
        g.e(str2, "stillPath");
        g.e(str3, "previewUrl");
        g.e(streamSource, "stream");
        this.f11034q = j8;
        this.f11035r = str;
        this.f11036s = str2;
        this.f11037t = str3;
        this.f11038u = i;
        this.f11039v = list;
        this.f11040w = streamSource;
        this.f11041x = i5;
        this.f11042y = j9;
        this.f11043z = j10;
        this.f11033A = i8;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r11v11, types: [java.lang.Object, java.util.List] */
    public final List a(EnumC1136e enumC1136e) {
        g.e(enumC1136e, "maxQuality");
        int iOrdinal = enumC1136e.ordinal();
        StreamSource streamSource = this.f11040w;
        return iOrdinal != 1 ? iOrdinal != 2 ? iOrdinal != 3 ? iOrdinal != 4 ? m.b0(l.W(streamSource.f11092u, streamSource.f11088q, streamSource.f11089r, streamSource.f11091t, streamSource.f11090s)) : streamSource.f11090s : m.b0(l.W(streamSource.f11091t, streamSource.f11090s)) : m.b0(l.W(streamSource.f11089r, streamSource.f11091t, streamSource.f11090s)) : m.b0(l.W(streamSource.f11088q, streamSource.f11089r, streamSource.f11091t, streamSource.f11090s));
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof EpisodeSource)) {
            return false;
        }
        EpisodeSource episodeSource = (EpisodeSource) obj;
        return this.f11034q == episodeSource.f11034q && g.a(this.f11035r, episodeSource.f11035r) && g.a(this.f11036s, episodeSource.f11036s) && g.a(this.f11037t, episodeSource.f11037t) && this.f11038u == episodeSource.f11038u && this.f11039v.equals(episodeSource.f11039v) && g.a(this.f11040w, episodeSource.f11040w) && this.f11041x == episodeSource.f11041x && this.f11042y == episodeSource.f11042y && this.f11043z == episodeSource.f11043z && this.f11033A == episodeSource.f11033A;
    }

    public final int hashCode() {
        long j8 = this.f11034q;
        int iHashCode = (((this.f11040w.hashCode() + ((this.f11039v.hashCode() + ((AbstractC0844a.g(AbstractC0844a.g(AbstractC0844a.g(((int) (j8 ^ (j8 >>> 32))) * 31, 31, this.f11035r), 31, this.f11036s), 31, this.f11037t) + this.f11038u) * 31)) * 31)) * 31) + this.f11041x) * 31;
        long j9 = this.f11042y;
        int i = (iHashCode + ((int) (j9 ^ (j9 >>> 32)))) * 31;
        long j10 = this.f11043z;
        return ((i + ((int) (j10 ^ (j10 >>> 32)))) * 31) + this.f11033A;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("EpisodeSource(id=");
        sb.append(this.f11034q);
        sb.append(", name=");
        sb.append(this.f11035r);
        sb.append(", stillPath=");
        sb.append(this.f11036s);
        sb.append(", previewUrl=");
        sb.append(this.f11037t);
        sb.append(", previewSize=");
        sb.append(this.f11038u);
        sb.append(", subs=");
        sb.append(this.f11039v);
        sb.append(", stream=");
        sb.append(this.f11040w);
        sb.append(", episodeNumber=");
        sb.append(this.f11041x);
        sb.append(", movieId=");
        sb.append(this.f11042y);
        sb.append(", seasonId=");
        sb.append(this.f11043z);
        sb.append(", seasonNumber=");
        return AbstractC0844a.n(sb, this.f11033A, ")");
    }

    /* JADX WARN: Type inference failed for: r0v6, types: [java.lang.Object, java.util.List] */
    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        g.e(parcel, "dest");
        parcel.writeLong(this.f11034q);
        parcel.writeString(this.f11035r);
        parcel.writeString(this.f11036s);
        parcel.writeString(this.f11037t);
        parcel.writeInt(this.f11038u);
        ?? r02 = this.f11039v;
        parcel.writeInt(r02.size());
        Iterator it = r02.iterator();
        while (it.hasNext()) {
            ((SubtitleSource) it.next()).writeToParcel(parcel, i);
        }
        this.f11040w.writeToParcel(parcel, i);
        parcel.writeInt(this.f11041x);
        parcel.writeLong(this.f11042y);
        parcel.writeLong(this.f11043z);
        parcel.writeInt(this.f11033A);
    }
}
