package androidx.core.view;

import android.annotation.SuppressLint;
import android.graphics.Rect;
import android.util.Log;
import android.view.View;
import android.view.WindowInsets;
import java.lang.reflect.Field;
import java.util.Objects;

/* loaded from: classes.dex */
public class h1 {

    /* renamed from: b, reason: collision with root package name */
    public static final h1 f3850b = j.f3869l;

    /* renamed from: a, reason: collision with root package name */
    private final k f3851a;

    /* loaded from: classes.dex */
    static class a {

        /* renamed from: a, reason: collision with root package name */
        private static Field f3852a;

        /* renamed from: b, reason: collision with root package name */
        private static Field f3853b;

        /* renamed from: c, reason: collision with root package name */
        private static Field f3854c;

        /* renamed from: d, reason: collision with root package name */
        private static boolean f3855d;

        static {
            try {
                Field declaredField = View.class.getDeclaredField("mAttachInfo");
                f3852a = declaredField;
                declaredField.setAccessible(true);
                Class<?> cls = Class.forName("android.view.View$AttachInfo");
                Field declaredField2 = cls.getDeclaredField("mStableInsets");
                f3853b = declaredField2;
                declaredField2.setAccessible(true);
                Field declaredField3 = cls.getDeclaredField("mContentInsets");
                f3854c = declaredField3;
                declaredField3.setAccessible(true);
                f3855d = true;
            } catch (ReflectiveOperationException e10) {
                Log.w("WindowInsetsCompat", "Failed to get visible insets from AttachInfo " + e10.getMessage(), e10);
            }
        }

        public static h1 a(View view) {
            if (f3855d && view.isAttachedToWindow()) {
                try {
                    Object obj = f3852a.get(view.getRootView());
                    if (obj != null) {
                        Rect rect = (Rect) f3853b.get(obj);
                        Rect rect2 = (Rect) f3854c.get(obj);
                        if (rect != null && rect2 != null) {
                            h1 a10 = new b().b(androidx.core.graphics.b.c(rect)).c(androidx.core.graphics.b.c(rect2)).a();
                            a10.t(a10);
                            a10.d(view.getRootView());
                            return a10;
                        }
                    }
                } catch (IllegalAccessException e10) {
                    Log.w("WindowInsetsCompat", "Failed to get insets from AttachInfo. " + e10.getMessage(), e10);
                }
            }
            return null;
        }
    }

    /* loaded from: classes.dex */
    private static class d extends c {
        d() {
        }

        d(h1 h1Var) {
            super(h1Var);
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static class e {

        /* renamed from: a, reason: collision with root package name */
        private final h1 f3858a;

        /* renamed from: b, reason: collision with root package name */
        androidx.core.graphics.b[] f3859b;

        e() {
            this(new h1((h1) null));
        }

        protected final void a() {
            androidx.core.graphics.b[] bVarArr = this.f3859b;
            if (bVarArr != null) {
                androidx.core.graphics.b bVar = bVarArr[l.d(1)];
                androidx.core.graphics.b bVar2 = this.f3859b[l.d(2)];
                if (bVar2 == null) {
                    bVar2 = this.f3858a.f(2);
                }
                if (bVar == null) {
                    bVar = this.f3858a.f(1);
                }
                f(androidx.core.graphics.b.a(bVar, bVar2));
                androidx.core.graphics.b bVar3 = this.f3859b[l.d(16)];
                if (bVar3 != null) {
                    e(bVar3);
                }
                androidx.core.graphics.b bVar4 = this.f3859b[l.d(32)];
                if (bVar4 != null) {
                    c(bVar4);
                }
                androidx.core.graphics.b bVar5 = this.f3859b[l.d(64)];
                if (bVar5 != null) {
                    g(bVar5);
                }
            }
        }

        abstract h1 b();

        abstract void c(androidx.core.graphics.b bVar);

        abstract void d(androidx.core.graphics.b bVar);

        abstract void e(androidx.core.graphics.b bVar);

        abstract void f(androidx.core.graphics.b bVar);

        abstract void g(androidx.core.graphics.b bVar);

        e(h1 h1Var) {
            this.f3858a = h1Var;
        }
    }

    /* loaded from: classes.dex */
    private static class h extends g {
        h(h1 h1Var, WindowInsets windowInsets) {
            super(h1Var, windowInsets);
        }

        @Override // androidx.core.view.h1.k
        h1 a() {
            return h1.v(this.f3860c.consumeDisplayCutout());
        }

        @Override // androidx.core.view.h1.f, androidx.core.view.h1.k
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof h)) {
                return false;
            }
            h hVar = (h) obj;
            return Objects.equals(this.f3860c, hVar.f3860c) && Objects.equals(this.f3864g, hVar.f3864g);
        }

        @Override // androidx.core.view.h1.k
        q f() {
            return q.f(this.f3860c.getDisplayCutout());
        }

        @Override // androidx.core.view.h1.k
        public int hashCode() {
            return this.f3860c.hashCode();
        }

        h(h1 h1Var, h hVar) {
            super(h1Var, hVar);
        }
    }

    /* loaded from: classes.dex */
    private static class j extends i {

        /* renamed from: l, reason: collision with root package name */
        static final h1 f3869l = h1.v(WindowInsets.CONSUMED);

        j(h1 h1Var, WindowInsets windowInsets) {
            super(h1Var, windowInsets);
        }

        @Override // androidx.core.view.h1.f, androidx.core.view.h1.k
        final void d(View view) {
        }

        @Override // androidx.core.view.h1.f, androidx.core.view.h1.k
        public androidx.core.graphics.b g(int i10) {
            return androidx.core.graphics.b.d(this.f3860c.getInsets(m.a(i10)));
        }

        @Override // androidx.core.view.h1.f, androidx.core.view.h1.k
        public androidx.core.graphics.b h(int i10) {
            return androidx.core.graphics.b.d(this.f3860c.getInsetsIgnoringVisibility(m.a(i10)));
        }

        @Override // androidx.core.view.h1.f, androidx.core.view.h1.k
        public boolean q(int i10) {
            return this.f3860c.isVisible(m.a(i10));
        }

        j(h1 h1Var, j jVar) {
            super(h1Var, jVar);
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static class k {

        /* renamed from: b, reason: collision with root package name */
        static final h1 f3870b = new b().a().a().b().c();

        /* renamed from: a, reason: collision with root package name */
        final h1 f3871a;

        k(h1 h1Var) {
            this.f3871a = h1Var;
        }

        h1 a() {
            return this.f3871a;
        }

        h1 b() {
            return this.f3871a;
        }

        h1 c() {
            return this.f3871a;
        }

        void d(View view) {
        }

        void e(h1 h1Var) {
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof k)) {
                return false;
            }
            k kVar = (k) obj;
            return p() == kVar.p() && o() == kVar.o() && s3.d.a(l(), kVar.l()) && s3.d.a(j(), kVar.j()) && s3.d.a(f(), kVar.f());
        }

        q f() {
            return null;
        }

        androidx.core.graphics.b g(int i10) {
            return androidx.core.graphics.b.f3723e;
        }

        androidx.core.graphics.b h(int i10) {
            if ((i10 & 8) == 0) {
                return androidx.core.graphics.b.f3723e;
            }
            throw new IllegalArgumentException("Unable to query the maximum insets for IME");
        }

        public int hashCode() {
            return s3.d.b(Boolean.valueOf(p()), Boolean.valueOf(o()), l(), j(), f());
        }

        androidx.core.graphics.b i() {
            return l();
        }

        androidx.core.graphics.b j() {
            return androidx.core.graphics.b.f3723e;
        }

        androidx.core.graphics.b k() {
            return l();
        }

        androidx.core.graphics.b l() {
            return androidx.core.graphics.b.f3723e;
        }

        androidx.core.graphics.b m() {
            return l();
        }

        h1 n(int i10, int i11, int i12, int i13) {
            return f3870b;
        }

        boolean o() {
            return false;
        }

        boolean p() {
            return false;
        }

        boolean q(int i10) {
            return true;
        }

        public void r(androidx.core.graphics.b[] bVarArr) {
        }

        void s(androidx.core.graphics.b bVar) {
        }

        void t(h1 h1Var) {
        }
    }

    /* loaded from: classes.dex */
    public static final class l {
        public static int a() {
            return 4;
        }

        public static int b() {
            return 128;
        }

        public static int c() {
            return 8;
        }

        static int d(int i10) {
            if (i10 == 1) {
                return 0;
            }
            if (i10 == 2) {
                return 1;
            }
            if (i10 == 4) {
                return 2;
            }
            if (i10 == 8) {
                return 3;
            }
            if (i10 == 16) {
                return 4;
            }
            if (i10 == 32) {
                return 5;
            }
            if (i10 == 64) {
                return 6;
            }
            if (i10 == 128) {
                return 7;
            }
            if (i10 == 256) {
                return 8;
            }
            throw new IllegalArgumentException("type needs to be >= FIRST and <= LAST, type=" + i10);
        }

        public static int e() {
            return 32;
        }

        public static int f() {
            return 2;
        }

        public static int g() {
            return 1;
        }

        public static int h() {
            return 7;
        }

        public static int i() {
            return 16;
        }

        public static int j() {
            return 64;
        }
    }

    /* loaded from: classes.dex */
    private static final class m {
        static int a(int i10) {
            int statusBars;
            int i11 = 0;
            for (int i12 = 1; i12 <= 256; i12 <<= 1) {
                if ((i10 & i12) != 0) {
                    if (i12 == 1) {
                        statusBars = WindowInsets.Type.statusBars();
                    } else if (i12 == 2) {
                        statusBars = WindowInsets.Type.navigationBars();
                    } else if (i12 == 4) {
                        statusBars = WindowInsets.Type.captionBar();
                    } else if (i12 == 8) {
                        statusBars = WindowInsets.Type.ime();
                    } else if (i12 == 16) {
                        statusBars = WindowInsets.Type.systemGestures();
                    } else if (i12 == 32) {
                        statusBars = WindowInsets.Type.mandatorySystemGestures();
                    } else if (i12 == 64) {
                        statusBars = WindowInsets.Type.tappableElement();
                    } else if (i12 == 128) {
                        statusBars = WindowInsets.Type.displayCutout();
                    }
                    i11 |= statusBars;
                }
            }
            return i11;
        }
    }

    private h1(WindowInsets windowInsets) {
        this.f3851a = new j(this, windowInsets);
    }

    static androidx.core.graphics.b n(androidx.core.graphics.b bVar, int i10, int i11, int i12, int i13) {
        int max = Math.max(0, bVar.f3724a - i10);
        int max2 = Math.max(0, bVar.f3725b - i11);
        int max3 = Math.max(0, bVar.f3726c - i12);
        int max4 = Math.max(0, bVar.f3727d - i13);
        return (max == i10 && max2 == i11 && max3 == i12 && max4 == i13) ? bVar : androidx.core.graphics.b.b(max, max2, max3, max4);
    }

    public static h1 v(WindowInsets windowInsets) {
        return w(windowInsets, null);
    }

    public static h1 w(WindowInsets windowInsets, View view) {
        h1 h1Var = new h1((WindowInsets) s3.i.g(windowInsets));
        if (view != null && view.isAttachedToWindow()) {
            h1Var.t(s0.F(view));
            h1Var.d(view.getRootView());
        }
        return h1Var;
    }

    public h1 a() {
        return this.f3851a.a();
    }

    public h1 b() {
        return this.f3851a.b();
    }

    public h1 c() {
        return this.f3851a.c();
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public void d(View view) {
        this.f3851a.d(view);
    }

    public q e() {
        return this.f3851a.f();
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof h1) {
            return s3.d.a(this.f3851a, ((h1) obj).f3851a);
        }
        return false;
    }

    public androidx.core.graphics.b f(int i10) {
        return this.f3851a.g(i10);
    }

    public androidx.core.graphics.b g(int i10) {
        return this.f3851a.h(i10);
    }

    public androidx.core.graphics.b h() {
        return this.f3851a.j();
    }

    public int hashCode() {
        k kVar = this.f3851a;
        if (kVar == null) {
            return 0;
        }
        return kVar.hashCode();
    }

    public int i() {
        return this.f3851a.l().f3727d;
    }

    public int j() {
        return this.f3851a.l().f3724a;
    }

    public int k() {
        return this.f3851a.l().f3726c;
    }

    public int l() {
        return this.f3851a.l().f3725b;
    }

    public h1 m(int i10, int i11, int i12, int i13) {
        return this.f3851a.n(i10, i11, i12, i13);
    }

    public boolean o() {
        return this.f3851a.o();
    }

    public boolean p(int i10) {
        return this.f3851a.q(i10);
    }

    public h1 q(int i10, int i11, int i12, int i13) {
        return new b(this).c(androidx.core.graphics.b.b(i10, i11, i12, i13)).a();
    }

    void r(androidx.core.graphics.b[] bVarArr) {
        this.f3851a.r(bVarArr);
    }

    void s(androidx.core.graphics.b bVar) {
        this.f3851a.s(bVar);
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public void t(h1 h1Var) {
        this.f3851a.t(h1Var);
    }

    public WindowInsets u() {
        k kVar = this.f3851a;
        if (kVar instanceof f) {
            return ((f) kVar).f3860c;
        }
        return null;
    }

    /* loaded from: classes.dex */
    public static final class b {

        /* renamed from: a, reason: collision with root package name */
        private final e f3856a;

        public b() {
            this.f3856a = new d();
        }

        public h1 a() {
            return this.f3856a.b();
        }

        public b b(androidx.core.graphics.b bVar) {
            this.f3856a.d(bVar);
            return this;
        }

        public b c(androidx.core.graphics.b bVar) {
            this.f3856a.f(bVar);
            return this;
        }

        public b(h1 h1Var) {
            this.f3856a = new d(h1Var);
        }
    }

    /* loaded from: classes.dex */
    private static class c extends e {

        /* renamed from: c, reason: collision with root package name */
        final WindowInsets.Builder f3857c;

        c() {
            this.f3857c = new WindowInsets.Builder();
        }

        @Override // androidx.core.view.h1.e
        h1 b() {
            a();
            h1 v10 = h1.v(this.f3857c.build());
            v10.r(this.f3859b);
            return v10;
        }

        @Override // androidx.core.view.h1.e
        void c(androidx.core.graphics.b bVar) {
            this.f3857c.setMandatorySystemGestureInsets(bVar.e());
        }

        @Override // androidx.core.view.h1.e
        void d(androidx.core.graphics.b bVar) {
            this.f3857c.setStableInsets(bVar.e());
        }

        @Override // androidx.core.view.h1.e
        void e(androidx.core.graphics.b bVar) {
            this.f3857c.setSystemGestureInsets(bVar.e());
        }

        @Override // androidx.core.view.h1.e
        void f(androidx.core.graphics.b bVar) {
            this.f3857c.setSystemWindowInsets(bVar.e());
        }

        @Override // androidx.core.view.h1.e
        void g(androidx.core.graphics.b bVar) {
            this.f3857c.setTappableElementInsets(bVar.e());
        }

        c(h1 h1Var) {
            super(h1Var);
            WindowInsets.Builder builder;
            WindowInsets u10 = h1Var.u();
            if (u10 != null) {
                builder = new WindowInsets.Builder(u10);
            } else {
                builder = new WindowInsets.Builder();
            }
            this.f3857c = builder;
        }
    }

    /* loaded from: classes.dex */
    private static class g extends f {

        /* renamed from: h, reason: collision with root package name */
        private androidx.core.graphics.b f3865h;

        g(h1 h1Var, WindowInsets windowInsets) {
            super(h1Var, windowInsets);
            this.f3865h = null;
        }

        @Override // androidx.core.view.h1.k
        h1 b() {
            return h1.v(this.f3860c.consumeStableInsets());
        }

        @Override // androidx.core.view.h1.k
        h1 c() {
            return h1.v(this.f3860c.consumeSystemWindowInsets());
        }

        @Override // androidx.core.view.h1.k
        final androidx.core.graphics.b j() {
            if (this.f3865h == null) {
                this.f3865h = androidx.core.graphics.b.b(this.f3860c.getStableInsetLeft(), this.f3860c.getStableInsetTop(), this.f3860c.getStableInsetRight(), this.f3860c.getStableInsetBottom());
            }
            return this.f3865h;
        }

        @Override // androidx.core.view.h1.k
        boolean o() {
            return this.f3860c.isConsumed();
        }

        g(h1 h1Var, g gVar) {
            super(h1Var, gVar);
            this.f3865h = null;
            this.f3865h = gVar.f3865h;
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static class f extends k {

        /* renamed from: c, reason: collision with root package name */
        final WindowInsets f3860c;

        /* renamed from: d, reason: collision with root package name */
        private androidx.core.graphics.b[] f3861d;

        /* renamed from: e, reason: collision with root package name */
        private androidx.core.graphics.b f3862e;

        /* renamed from: f, reason: collision with root package name */
        private h1 f3863f;

        /* renamed from: g, reason: collision with root package name */
        androidx.core.graphics.b f3864g;

        f(h1 h1Var, WindowInsets windowInsets) {
            super(h1Var);
            this.f3862e = null;
            this.f3860c = windowInsets;
        }

        @SuppressLint({"WrongConstant"})
        private androidx.core.graphics.b u(int i10, boolean z10) {
            androidx.core.graphics.b bVar = androidx.core.graphics.b.f3723e;
            for (int i11 = 1; i11 <= 256; i11 <<= 1) {
                if ((i10 & i11) != 0) {
                    bVar = androidx.core.graphics.b.a(bVar, v(i11, z10));
                }
            }
            return bVar;
        }

        private androidx.core.graphics.b w() {
            h1 h1Var = this.f3863f;
            return h1Var != null ? h1Var.h() : androidx.core.graphics.b.f3723e;
        }

        private androidx.core.graphics.b x(View view) {
            throw new UnsupportedOperationException("getVisibleInsets() should not be called on API >= 30. Use WindowInsets.isVisible() instead.");
        }

        @Override // androidx.core.view.h1.k
        void d(View view) {
            androidx.core.graphics.b x10 = x(view);
            if (x10 == null) {
                x10 = androidx.core.graphics.b.f3723e;
            }
            s(x10);
        }

        @Override // androidx.core.view.h1.k
        void e(h1 h1Var) {
            h1Var.t(this.f3863f);
            h1Var.s(this.f3864g);
        }

        @Override // androidx.core.view.h1.k
        public boolean equals(Object obj) {
            if (super.equals(obj)) {
                return Objects.equals(this.f3864g, ((f) obj).f3864g);
            }
            return false;
        }

        @Override // androidx.core.view.h1.k
        public androidx.core.graphics.b g(int i10) {
            return u(i10, false);
        }

        @Override // androidx.core.view.h1.k
        public androidx.core.graphics.b h(int i10) {
            return u(i10, true);
        }

        @Override // androidx.core.view.h1.k
        final androidx.core.graphics.b l() {
            if (this.f3862e == null) {
                this.f3862e = androidx.core.graphics.b.b(this.f3860c.getSystemWindowInsetLeft(), this.f3860c.getSystemWindowInsetTop(), this.f3860c.getSystemWindowInsetRight(), this.f3860c.getSystemWindowInsetBottom());
            }
            return this.f3862e;
        }

        @Override // androidx.core.view.h1.k
        h1 n(int i10, int i11, int i12, int i13) {
            b bVar = new b(h1.v(this.f3860c));
            bVar.c(h1.n(l(), i10, i11, i12, i13));
            bVar.b(h1.n(j(), i10, i11, i12, i13));
            return bVar.a();
        }

        @Override // androidx.core.view.h1.k
        boolean p() {
            return this.f3860c.isRound();
        }

        @Override // androidx.core.view.h1.k
        @SuppressLint({"WrongConstant"})
        boolean q(int i10) {
            for (int i11 = 1; i11 <= 256; i11 <<= 1) {
                if ((i10 & i11) != 0 && !y(i11)) {
                    return false;
                }
            }
            return true;
        }

        @Override // androidx.core.view.h1.k
        public void r(androidx.core.graphics.b[] bVarArr) {
            this.f3861d = bVarArr;
        }

        @Override // androidx.core.view.h1.k
        void s(androidx.core.graphics.b bVar) {
            this.f3864g = bVar;
        }

        @Override // androidx.core.view.h1.k
        void t(h1 h1Var) {
            this.f3863f = h1Var;
        }

        protected androidx.core.graphics.b v(int i10, boolean z10) {
            androidx.core.graphics.b h10;
            int i11;
            if (i10 == 1) {
                return z10 ? androidx.core.graphics.b.b(0, Math.max(w().f3725b, l().f3725b), 0, 0) : androidx.core.graphics.b.b(0, l().f3725b, 0, 0);
            }
            if (i10 == 2) {
                if (z10) {
                    androidx.core.graphics.b w10 = w();
                    androidx.core.graphics.b j10 = j();
                    return androidx.core.graphics.b.b(Math.max(w10.f3724a, j10.f3724a), 0, Math.max(w10.f3726c, j10.f3726c), Math.max(w10.f3727d, j10.f3727d));
                }
                androidx.core.graphics.b l10 = l();
                h1 h1Var = this.f3863f;
                h10 = h1Var != null ? h1Var.h() : null;
                int i12 = l10.f3727d;
                if (h10 != null) {
                    i12 = Math.min(i12, h10.f3727d);
                }
                return androidx.core.graphics.b.b(l10.f3724a, 0, l10.f3726c, i12);
            }
            if (i10 != 8) {
                if (i10 == 16) {
                    return k();
                }
                if (i10 == 32) {
                    return i();
                }
                if (i10 == 64) {
                    return m();
                }
                if (i10 != 128) {
                    return androidx.core.graphics.b.f3723e;
                }
                h1 h1Var2 = this.f3863f;
                q e10 = h1Var2 != null ? h1Var2.e() : f();
                return e10 != null ? androidx.core.graphics.b.b(e10.b(), e10.d(), e10.c(), e10.a()) : androidx.core.graphics.b.f3723e;
            }
            androidx.core.graphics.b[] bVarArr = this.f3861d;
            h10 = bVarArr != null ? bVarArr[l.d(8)] : null;
            if (h10 != null) {
                return h10;
            }
            androidx.core.graphics.b l11 = l();
            androidx.core.graphics.b w11 = w();
            int i13 = l11.f3727d;
            if (i13 > w11.f3727d) {
                return androidx.core.graphics.b.b(0, 0, 0, i13);
            }
            androidx.core.graphics.b bVar = this.f3864g;
            return (bVar == null || bVar.equals(androidx.core.graphics.b.f3723e) || (i11 = this.f3864g.f3727d) <= w11.f3727d) ? androidx.core.graphics.b.f3723e : androidx.core.graphics.b.b(0, 0, 0, i11);
        }

        protected boolean y(int i10) {
            if (i10 != 1 && i10 != 2) {
                if (i10 == 4) {
                    return false;
                }
                if (i10 != 8 && i10 != 128) {
                    return true;
                }
            }
            return !v(i10, false).equals(androidx.core.graphics.b.f3723e);
        }

        f(h1 h1Var, f fVar) {
            this(h1Var, new WindowInsets(fVar.f3860c));
        }
    }

    public h1(h1 h1Var) {
        if (h1Var != null) {
            k kVar = h1Var.f3851a;
            if (kVar instanceof j) {
                this.f3851a = new j(this, (j) kVar);
            } else if (kVar instanceof i) {
                this.f3851a = new i(this, (i) kVar);
            } else if (kVar instanceof h) {
                this.f3851a = new h(this, (h) kVar);
            } else if (kVar instanceof g) {
                this.f3851a = new g(this, (g) kVar);
            } else if (kVar instanceof f) {
                this.f3851a = new f(this, (f) kVar);
            } else {
                this.f3851a = new k(this);
            }
            kVar.e(this);
            return;
        }
        this.f3851a = new k(this);
    }

    /* loaded from: classes.dex */
    private static class i extends h {

        /* renamed from: i, reason: collision with root package name */
        private androidx.core.graphics.b f3866i;

        /* renamed from: j, reason: collision with root package name */
        private androidx.core.graphics.b f3867j;

        /* renamed from: k, reason: collision with root package name */
        private androidx.core.graphics.b f3868k;

        i(h1 h1Var, WindowInsets windowInsets) {
            super(h1Var, windowInsets);
            this.f3866i = null;
            this.f3867j = null;
            this.f3868k = null;
        }

        @Override // androidx.core.view.h1.k
        androidx.core.graphics.b i() {
            if (this.f3867j == null) {
                this.f3867j = androidx.core.graphics.b.d(this.f3860c.getMandatorySystemGestureInsets());
            }
            return this.f3867j;
        }

        @Override // androidx.core.view.h1.k
        androidx.core.graphics.b k() {
            if (this.f3866i == null) {
                this.f3866i = androidx.core.graphics.b.d(this.f3860c.getSystemGestureInsets());
            }
            return this.f3866i;
        }

        @Override // androidx.core.view.h1.k
        androidx.core.graphics.b m() {
            if (this.f3868k == null) {
                this.f3868k = androidx.core.graphics.b.d(this.f3860c.getTappableElementInsets());
            }
            return this.f3868k;
        }

        @Override // androidx.core.view.h1.f, androidx.core.view.h1.k
        h1 n(int i10, int i11, int i12, int i13) {
            return h1.v(this.f3860c.inset(i10, i11, i12, i13));
        }

        i(h1 h1Var, i iVar) {
            super(h1Var, iVar);
            this.f3866i = null;
            this.f3867j = null;
            this.f3868k = null;
        }
    }
}
