package o;

import androidx.compose.foundation.layout.LayoutWeightElement;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class A30 {
    public static final A30 a = new A30();

    public static MP a(float f) {
        if (f <= 0.0d) {
            AbstractC1943nH.a("invalid weight; must be greater than zero");
        }
        if (f > Float.MAX_VALUE) {
            f = Float.MAX_VALUE;
        }
        return new LayoutWeightElement(f, true);
    }
}
