package com.amplifyframework.storage;

import com.google.firebase.remoteconfig.RemoteConfigConstants;
import java.util.Set;
import kotlin.Metadata;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;
import sm.c0;
import sm.x0;
import xm.a;
import xm.b;

/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u000f\b\u0086\u0081\u0002\u0018\u0000 \u000f2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u000fB\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\rj\u0002\b\u000e¨\u0006\u0010"}, d2 = {"Lcom/amplifyframework/storage/TransferState;", "", "(Ljava/lang/String;I)V", "WAITING", "IN_PROGRESS", "PAUSED", "RESUMED_WAITING", "COMPLETED", "CANCELED", "PENDING_FAILED", "FAILED", "PART_COMPLETED", "PENDING_CANCEL", "PENDING_PAUSE", "UNKNOWN", "Companion", "com.amplifyframework.core_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes4.dex */
public final class TransferState {
    private static final /* synthetic */ a $ENTRIES;
    private static final /* synthetic */ TransferState[] $VALUES;

    /* renamed from: Companion, reason: from kotlin metadata */
    public static final Companion INSTANCE;
    public static final TransferState WAITING = new TransferState("WAITING", 0);
    public static final TransferState IN_PROGRESS = new TransferState("IN_PROGRESS", 1);
    public static final TransferState PAUSED = new TransferState("PAUSED", 2);
    public static final TransferState RESUMED_WAITING = new TransferState("RESUMED_WAITING", 3);
    public static final TransferState COMPLETED = new TransferState("COMPLETED", 4);
    public static final TransferState CANCELED = new TransferState("CANCELED", 5);
    public static final TransferState PENDING_FAILED = new TransferState("PENDING_FAILED", 6);
    public static final TransferState FAILED = new TransferState("FAILED", 7);
    public static final TransferState PART_COMPLETED = new TransferState("PART_COMPLETED", 8);
    public static final TransferState PENDING_CANCEL = new TransferState("PENDING_CANCEL", 9);
    public static final TransferState PENDING_PAUSE = new TransferState("PENDING_PAUSE", 10);
    public static final TransferState UNKNOWN = new TransferState("UNKNOWN", 11);

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007J\u0012\u0010\u0007\u001a\u00020\b2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0007J\u0012\u0010\t\u001a\u00020\b2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0007J\u0012\u0010\n\u001a\u00020\b2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0007J\u0012\u0010\u000b\u001a\u00020\b2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0007¨\u0006\f"}, d2 = {"Lcom/amplifyframework/storage/TransferState$Companion;", "", "()V", "getState", "Lcom/amplifyframework/storage/TransferState;", RemoteConfigConstants.ResponseFieldKey.STATE, "", "isCancelled", "", "isInTerminalState", "isPaused", "isStarted", "com.amplifyframework.core_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
    /* loaded from: classes4.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(k kVar) {
            this();
        }

        public final TransferState getState(String state) {
            t.g(state, "state");
            try {
                return TransferState.valueOf(state);
            } catch (IllegalArgumentException unused) {
                return TransferState.UNKNOWN;
            }
        }

        public final boolean isCancelled(TransferState state) {
            Set h10;
            boolean U;
            h10 = x0.h(TransferState.PENDING_CANCEL, TransferState.CANCELED);
            U = c0.U(h10, state);
            return U;
        }

        public final boolean isInTerminalState(TransferState state) {
            Set h10;
            boolean U;
            h10 = x0.h(TransferState.COMPLETED, TransferState.CANCELED, TransferState.FAILED, TransferState.PART_COMPLETED);
            U = c0.U(h10, state);
            return U;
        }

        public final boolean isPaused(TransferState state) {
            Set h10;
            boolean U;
            h10 = x0.h(TransferState.PENDING_PAUSE, TransferState.PAUSED);
            U = c0.U(h10, state);
            return U;
        }

        public final boolean isStarted(TransferState state) {
            Set h10;
            boolean U;
            h10 = x0.h(TransferState.WAITING, TransferState.IN_PROGRESS, TransferState.RESUMED_WAITING);
            U = c0.U(h10, state);
            return U;
        }
    }

    private static final /* synthetic */ TransferState[] $values() {
        return new TransferState[]{WAITING, IN_PROGRESS, PAUSED, RESUMED_WAITING, COMPLETED, CANCELED, PENDING_FAILED, FAILED, PART_COMPLETED, PENDING_CANCEL, PENDING_PAUSE, UNKNOWN};
    }

    static {
        TransferState[] $values = $values();
        $VALUES = $values;
        $ENTRIES = b.a($values);
        INSTANCE = new Companion(null);
    }

    private TransferState(String str, int i10) {
    }

    public static a getEntries() {
        return $ENTRIES;
    }

    public static final TransferState getState(String str) {
        return INSTANCE.getState(str);
    }

    public static final boolean isCancelled(TransferState transferState) {
        return INSTANCE.isCancelled(transferState);
    }

    public static final boolean isInTerminalState(TransferState transferState) {
        return INSTANCE.isInTerminalState(transferState);
    }

    public static final boolean isPaused(TransferState transferState) {
        return INSTANCE.isPaused(transferState);
    }

    public static final boolean isStarted(TransferState transferState) {
        return INSTANCE.isStarted(transferState);
    }

    public static TransferState valueOf(String str) {
        return (TransferState) Enum.valueOf(TransferState.class, str);
    }

    public static TransferState[] values() {
        return (TransferState[]) $VALUES.clone();
    }
}
