package androidx.compose.ui; import androidx.compose.ui.Alignment; import androidx.compose.ui.unit.IntOffsetKt; import androidx.compose.ui.unit.IntSize; import androidx.compose.ui.unit.LayoutDirection; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; import kotlin.math.MathKt; /* compiled from: Alignment.kt */ @Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0087\b\u0018\u00002\u00020\u0001:\u0002\u001d\u001eB\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005J-\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000e\u001a\u00020\u000fH\u0016ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0010\u0010\u0011J\t\u0010\u0012\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0013\u001a\u00020\u0003HÆ\u0003J\u001d\u0010\u0014\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u0015\u001a\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u0018HÖ\u0003J\t\u0010\u0019\u001a\u00020\u001aHÖ\u0001J\t\u0010\u001b\u001a\u00020\u001cHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u001f"}, d2 = {"Landroidx/compose/ui/BiasAlignment;", "Landroidx/compose/ui/Alignment;", "horizontalBias", "", "verticalBias", "(FF)V", "getHorizontalBias", "()F", "getVerticalBias", "align", "Landroidx/compose/ui/unit/IntOffset;", "size", "Landroidx/compose/ui/unit/IntSize;", "space", "layoutDirection", "Landroidx/compose/ui/unit/LayoutDirection;", "align-KFBX0sM", "(JJLandroidx/compose/ui/unit/LayoutDirection;)J", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "Horizontal", "Vertical", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public final /* data */ class BiasAlignment implements Alignment { public static final int $stable = 0; private final float horizontalBias; private final float verticalBias; public static /* synthetic */ BiasAlignment copy$default(BiasAlignment biasAlignment, float f, float f2, int i, Object obj) { if ((i & 1) != 0) { f = biasAlignment.horizontalBias; } if ((i & 2) != 0) { f2 = biasAlignment.verticalBias; } return biasAlignment.copy(f, f2); } /* renamed from: component1, reason: from getter */ public final float getHorizontalBias() { return this.horizontalBias; } /* renamed from: component2, reason: from getter */ public final float getVerticalBias() { return this.verticalBias; } public final BiasAlignment copy(float horizontalBias, float verticalBias) { return new BiasAlignment(horizontalBias, verticalBias); } public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof BiasAlignment)) { return false; } BiasAlignment biasAlignment = (BiasAlignment) other; return Float.compare(this.horizontalBias, biasAlignment.horizontalBias) == 0 && Float.compare(this.verticalBias, biasAlignment.verticalBias) == 0; } public final float getHorizontalBias() { return this.horizontalBias; } public final float getVerticalBias() { return this.verticalBias; } public int hashCode() { return (Float.hashCode(this.horizontalBias) * 31) + Float.hashCode(this.verticalBias); } public String toString() { return "BiasAlignment(horizontalBias=" + this.horizontalBias + ", verticalBias=" + this.verticalBias + ')'; } public BiasAlignment(float f, float f2) { this.horizontalBias = f; this.verticalBias = f2; } @Override // androidx.compose.ui.Alignment /* renamed from: align-KFBX0sM */ public long mo2290alignKFBX0sM(long size, long space, LayoutDirection layoutDirection) { Intrinsics.checkNotNullParameter(layoutDirection, "layoutDirection"); float m5043getWidthimpl = (IntSize.m5043getWidthimpl(space) - IntSize.m5043getWidthimpl(size)) / 2.0f; float m5042getHeightimpl = (IntSize.m5042getHeightimpl(space) - IntSize.m5042getHeightimpl(size)) / 2.0f; float f = 1; return IntOffsetKt.IntOffset(MathKt.roundToInt(m5043getWidthimpl * ((layoutDirection == LayoutDirection.Ltr ? this.horizontalBias : (-1) * this.horizontalBias) + f)), MathKt.roundToInt(m5042getHeightimpl * (f + this.verticalBias))); } /* compiled from: Alignment.kt */ @Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0087\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J \u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\nH\u0016J\t\u0010\u000b\u001a\u00020\u0003HÂ\u0003J\u0013\u0010\f\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\r\u001a\u00020\u000e2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0010HÖ\u0003J\t\u0010\u0011\u001a\u00020\u0006HÖ\u0001J\t\u0010\u0012\u001a\u00020\u0013HÖ\u0001R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Landroidx/compose/ui/BiasAlignment$Horizontal;", "Landroidx/compose/ui/Alignment$Horizontal;", "bias", "", "(F)V", "align", "", "size", "space", "layoutDirection", "Landroidx/compose/ui/unit/LayoutDirection;", "component1", "copy", "equals", "", "other", "", "hashCode", "toString", "", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public static final /* data */ class Horizontal implements Alignment.Horizontal { public static final int $stable = 0; private final float bias; /* renamed from: component1, reason: from getter */ private final float getBias() { return this.bias; } public static /* synthetic */ Horizontal copy$default(Horizontal horizontal, float f, int i, Object obj) { if ((i & 1) != 0) { f = horizontal.bias; } return horizontal.copy(f); } public final Horizontal copy(float bias) { return new Horizontal(bias); } public boolean equals(Object other) { if (this == other) { return true; } return (other instanceof Horizontal) && Float.compare(this.bias, ((Horizontal) other).bias) == 0; } public int hashCode() { return Float.hashCode(this.bias); } public String toString() { return "Horizontal(bias=" + this.bias + ')'; } public Horizontal(float f) { this.bias = f; } @Override // androidx.compose.ui.Alignment.Horizontal public int align(int size, int space, LayoutDirection layoutDirection) { float f; Intrinsics.checkNotNullParameter(layoutDirection, "layoutDirection"); float f2 = (space - size) / 2.0f; if (layoutDirection == LayoutDirection.Ltr) { f = this.bias; } else { f = this.bias * (-1); } return MathKt.roundToInt(f2 * (1 + f)); } } /* compiled from: Alignment.kt */ @Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0087\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0018\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0006H\u0016J\t\u0010\t\u001a\u00020\u0003HÂ\u0003J\u0013\u0010\n\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eHÖ\u0003J\t\u0010\u000f\u001a\u00020\u0006HÖ\u0001J\t\u0010\u0010\u001a\u00020\u0011HÖ\u0001R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0012"}, d2 = {"Landroidx/compose/ui/BiasAlignment$Vertical;", "Landroidx/compose/ui/Alignment$Vertical;", "bias", "", "(F)V", "align", "", "size", "space", "component1", "copy", "equals", "", "other", "", "hashCode", "toString", "", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public static final /* data */ class Vertical implements Alignment.Vertical { public static final int $stable = 0; private final float bias; /* renamed from: component1, reason: from getter */ private final float getBias() { return this.bias; } public static /* synthetic */ Vertical copy$default(Vertical vertical, float f, int i, Object obj) { if ((i & 1) != 0) { f = vertical.bias; } return vertical.copy(f); } public final Vertical copy(float bias) { return new Vertical(bias); } public boolean equals(Object other) { if (this == other) { return true; } return (other instanceof Vertical) && Float.compare(this.bias, ((Vertical) other).bias) == 0; } public int hashCode() { return Float.hashCode(this.bias); } public String toString() { return "Vertical(bias=" + this.bias + ')'; } public Vertical(float f) { this.bias = f; } @Override // androidx.compose.ui.Alignment.Vertical public int align(int size, int space) { return MathKt.roundToInt(((space - size) / 2.0f) * (1 + this.bias)); } } }