package com.revenuecat.purchases.ui.revenuecatui.helpers;

import R4.p;
import java.util.Iterator;
import kotlin.jvm.internal.o;
import x4.y;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class NonEmptySetKt {
    public static final NonEmptySet nonEmptySetOf(Object obj, Object... t6) {
        o.h(t6, "t");
        return new NonEmptySet(obj, (Iterable<? extends Object>) (t6.length == 0 ? y.f26065a : new p(t6, 2)));
    }

    public static final /* synthetic */ NonEmptySet toNonEmptySetOrNull(Iterable iterable) {
        o.h(iterable, "<this>");
        Iterator it = iterable.iterator();
        if (it.hasNext()) {
            return new NonEmptySet(it.next(), new NonEmptySetKt$toNonEmptySetOrNull$$inlined$Iterable$1(it));
        }
        return null;
    }
}
