package androidx.compose.foundation.layout;

import c3.t;
import j2.s0;
import kotlin.Metadata;
import kotlin.jvm.internal.v;
import l1.c;

@Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0002\b\b\b\u0002\u0018\u0000 $2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001%BA\u0012\u0006\u0010\u0010\u001a\u00020\r\u0012\u0006\u0010\u0013\u001a\u00020\t\u0012\u0018\u0010\u001a\u001a\u0014\u0012\u0004\u0012\u00020\u0015\u0012\u0004\u0012\u00020\u0016\u0012\u0004\u0012\u00020\u00170\u0014\u0012\u0006\u0010\u001d\u001a\u00020\u0007\u0012\u0006\u0010!\u001a\u00020\u001e¢\u0006\u0004\b\"\u0010#J\b\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0002H\u0016J\u0013\u0010\n\u001a\u00020\t2\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0096\u0002J\b\u0010\f\u001a\u00020\u000bH\u0016R\u0014\u0010\u0010\u001a\u00020\r8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0013\u001a\u00020\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0011\u0010\u0012R&\u0010\u001a\u001a\u0014\u0012\u0004\u0012\u00020\u0015\u0012\u0004\u0012\u00020\u0016\u0012\u0004\u0012\u00020\u00170\u00148\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0018\u0010\u0019R\u0014\u0010\u001d\u001a\u00020\u00078\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001b\u0010\u001cR\u0014\u0010!\u001a\u00020\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001f\u0010 ¨\u0006&"}, d2 = {"Landroidx/compose/foundation/layout/WrapContentElement;", "Lj2/s0;", "Landroidx/compose/foundation/layout/r;", "k", "node", "Lrm/n0;", "l", "", "other", "", "equals", "", "hashCode", "Le0/j;", "b", "Le0/j;", "direction", "c", "Z", "unbounded", "Lkotlin/Function2;", "Lc3/r;", "Lc3/t;", "Lc3/n;", "d", "Ldn/p;", "alignmentCallback", "e", "Ljava/lang/Object;", "align", "", "f", "Ljava/lang/String;", "inspectorName", "<init>", "(Le0/j;ZLdn/p;Ljava/lang/Object;Ljava/lang/String;)V", "g", "a", "foundation-layout_release"}, k = 1, mv = {1, 8, 0})
/* loaded from: classes.dex */
final class WrapContentElement extends s0 {

    /* renamed from: g, reason: collision with root package name and from kotlin metadata */
    public static final Companion INSTANCE = new Companion(null);

    /* renamed from: b, reason: collision with root package name and from kotlin metadata */
    private final e0.j direction;

    /* renamed from: c, reason: collision with root package name and from kotlin metadata */
    private final boolean unbounded;

    /* renamed from: d, reason: collision with root package name and from kotlin metadata */
    private final dn.p alignmentCallback;

    /* renamed from: e, reason: collision with root package name and from kotlin metadata */
    private final Object align;

    /* renamed from: f, reason: collision with root package name and from kotlin metadata */
    private final String inspectorName;

    /* renamed from: androidx.compose.foundation.layout.WrapContentElement$a, reason: from kotlin metadata */
    /* loaded from: classes.dex */
    public static final class Companion {

        /* renamed from: androidx.compose.foundation.layout.WrapContentElement$a$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        static final class C0048a extends v implements dn.p {

            /* renamed from: p, reason: collision with root package name */
            final /* synthetic */ c.InterfaceC0608c f1802p;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            C0048a(c.InterfaceC0608c interfaceC0608c) {
                super(2);
                this.f1802p = interfaceC0608c;
            }

            public final long a(long j10, t tVar) {
                return c3.o.a(0, this.f1802p.a(0, c3.r.f(j10)));
            }

            @Override // dn.p
            public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
                return c3.n.b(a(((c3.r) obj).j(), (t) obj2));
            }
        }

        /* renamed from: androidx.compose.foundation.layout.WrapContentElement$a$b */
        /* loaded from: classes.dex */
        static final class b extends v implements dn.p {

            /* renamed from: p, reason: collision with root package name */
            final /* synthetic */ l1.c f1803p;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            b(l1.c cVar) {
                super(2);
                this.f1803p = cVar;
            }

            public final long a(long j10, t tVar) {
                return this.f1803p.a(c3.r.f7432b.a(), j10, tVar);
            }

            @Override // dn.p
            public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
                return c3.n.b(a(((c3.r) obj).j(), (t) obj2));
            }
        }

        /* renamed from: androidx.compose.foundation.layout.WrapContentElement$a$c */
        /* loaded from: classes.dex */
        static final class c extends v implements dn.p {

            /* renamed from: p, reason: collision with root package name */
            final /* synthetic */ c.b f1804p;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            c(c.b bVar) {
                super(2);
                this.f1804p = bVar;
            }

            public final long a(long j10, t tVar) {
                return c3.o.a(this.f1804p.a(0, c3.r.g(j10), tVar), 0);
            }

            @Override // dn.p
            public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
                return c3.n.b(a(((c3.r) obj).j(), (t) obj2));
            }
        }

        private Companion() {
        }

        public /* synthetic */ Companion(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final WrapContentElement a(c.InterfaceC0608c interfaceC0608c, boolean z10) {
            return new WrapContentElement(e0.j.Vertical, z10, new C0048a(interfaceC0608c), interfaceC0608c, "wrapContentHeight");
        }

        public final WrapContentElement b(l1.c cVar, boolean z10) {
            return new WrapContentElement(e0.j.Both, z10, new b(cVar), cVar, "wrapContentSize");
        }

        public final WrapContentElement c(c.b bVar, boolean z10) {
            return new WrapContentElement(e0.j.Horizontal, z10, new c(bVar), bVar, "wrapContentWidth");
        }
    }

    public WrapContentElement(e0.j jVar, boolean z10, dn.p pVar, Object obj, String str) {
        this.direction = jVar;
        this.unbounded = z10;
        this.alignmentCallback = pVar;
        this.align = obj;
        this.inspectorName = str;
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (other == null || WrapContentElement.class != other.getClass()) {
            return false;
        }
        WrapContentElement wrapContentElement = (WrapContentElement) other;
        return this.direction == wrapContentElement.direction && this.unbounded == wrapContentElement.unbounded && kotlin.jvm.internal.t.b(this.align, wrapContentElement.align);
    }

    public int hashCode() {
        return (((this.direction.hashCode() * 31) + Boolean.hashCode(this.unbounded)) * 31) + this.align.hashCode();
    }

    @Override // j2.s0
    /* renamed from: k, reason: merged with bridge method [inline-methods] */
    public r c() {
        return new r(this.direction, this.unbounded, this.alignmentCallback);
    }

    @Override // j2.s0
    /* renamed from: l, reason: merged with bridge method [inline-methods] */
    public void j(r rVar) {
        rVar.j2(this.direction);
        rVar.k2(this.unbounded);
        rVar.i2(this.alignmentCallback);
    }
}
