package o;

import androidx.work.impl.workers.DiagnosticsWorker;
import java.util.LinkedHashSet;
import java.util.UUID;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class VT {
    public final UUID a;
    public final Dm0 b;
    public final LinkedHashSet c;

    public VT(UUID uuid, Dm0 dm0, LinkedHashSet linkedHashSet) {
        this.a = uuid;
        this.b = dm0;
        this.c = linkedHashSet;
    }

    public static final VT a() {
        UUID uuidRandomUUID = UUID.randomUUID();
        String string = uuidRandomUUID.toString();
        String name = DiagnosticsWorker.class.getName();
        Dm0 dm0 = new Dm0(string, 0, name, (String) null, (C0585Wo) null, (C0585Wo) null, 0L, 0L, 0L, (C0608Xl) null, 0, 0, 0L, 0L, 0L, 0L, false, 0, 0, 0L, 0, 0, 8388602);
        String[] strArr = {DiagnosticsWorker.class.getName()};
        boolean z = true;
        LinkedHashSet linkedHashSet = new LinkedHashSet(GN.Z(1));
        linkedHashSet.add(strArr[0]);
        VT vt = new VT(uuidRandomUUID, dm0, linkedHashSet);
        C0608Xl c0608Xl = dm0.j;
        if (!c0608Xl.a() && !c0608Xl.d && !c0608Xl.b && !c0608Xl.c) {
            z = false;
        }
        if (dm0.q) {
            if (z) {
                throw new IllegalArgumentException("Expedited jobs only support network and storage constraints");
            }
            if (dm0.g > 0) {
                throw new IllegalArgumentException("Expedited jobs cannot be delayed");
            }
        }
        new Dm0(UUID.randomUUID().toString(), dm0.b, name, dm0.d, new C0585Wo(dm0.e), new C0585Wo(dm0.f), dm0.g, dm0.h, dm0.i, new C0608Xl(dm0.j), dm0.k, dm0.l, dm0.m, dm0.n, dm0.f85o, dm0.p, dm0.q, dm0.r, dm0.s, dm0.u, dm0.v, dm0.w, 524288);
        return vt;
    }
}
