package p463.p484.p485.p487;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.TimeZone;
import java.util.TreeMap;
import org.threeten.bp.DateTimeException;
import org.threeten.bp.zone.ZoneRulesException;
import p138.p139.p143.p144.C2803;
import p463.p473.p474.p479.C7158;
import p463.p484.p485.AbstractC7191;
import p463.p484.p485.C7177;
import p463.p484.p485.C7178;
import p463.p484.p485.C7179;
import p463.p484.p485.C7192;
import p463.p484.p485.p486.AbstractC7196;
import p463.p484.p485.p486.AbstractC7202;
import p463.p484.p485.p486.C7207;
import p463.p484.p485.p487.C7243;
import p463.p484.p485.p487.C7243.C7244;
import p463.p484.p485.p487.C7252;
import p463.p484.p485.p489.C7261;
import p463.p484.p485.p489.C7276;
import p463.p484.p485.p489.C7286;
import p463.p484.p485.p489.C7287;
import p463.p484.p485.p489.EnumC7259;
import p463.p484.p485.p489.InterfaceC7270;
import p463.p484.p485.p489.InterfaceC7275;
import p463.p484.p485.p489.InterfaceC7284;
import p463.p484.p485.p490.AbstractC7296;
import p463.p484.p485.p490.AbstractC7300;

/* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C7221 {

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public static final InterfaceC7284<AbstractC7191> f20963 = new C7222();

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public static final Map<Character, InterfaceC7275> f20964;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public static final Comparator<String> f20965;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 f20966;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final C7221 f20967;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final List<InterfaceC7227> f20968;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final boolean f20969;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public int f20970;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public char f20971;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public int f20972;

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$֏, reason: contains not printable characters */
    public class C7222 implements InterfaceC7284<AbstractC7191> {
        @Override // p463.p484.p485.p489.InterfaceC7284
        /* JADX INFO: renamed from: ֏ */
        public AbstractC7191 mo10675(InterfaceC7270 interfaceC7270) {
            AbstractC7191 abstractC7191 = (AbstractC7191) interfaceC7270.mo10592(C7276.f21139);
            if (abstractC7191 == null || (abstractC7191 instanceof C7192)) {
                return null;
            }
            return abstractC7191;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ؠ, reason: contains not printable characters */
    public class C7223 extends AbstractC7247 {

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final /* synthetic */ C7252.C7254 f20973;

        public C7223(C7221 c7221, C7252.C7254 c7254) {
            this.f20973 = c7254;
        }

        @Override // p463.p484.p485.p487.AbstractC7247
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public String mo10865(InterfaceC7275 interfaceC7275, long j, EnumC7255 enumC7255, Locale locale) {
            return this.f20973.m10896(j, enumC7255);
        }

        @Override // p463.p484.p485.p487.AbstractC7247
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public Iterator<Map.Entry<String, Long>> mo10866(InterfaceC7275 interfaceC7275, EnumC7255 enumC7255, Locale locale) {
            List<Map.Entry<String, Long>> list = this.f20973.f21061.get(enumC7255);
            if (list != null) {
                return list.iterator();
            }
            return null;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ހ, reason: contains not printable characters */
    public class C7224 implements Comparator<String> {
        @Override // java.util.Comparator
        public int compare(String str, String str2) {
            String str3 = str;
            String str4 = str2;
            return str3.length() == str4.length() ? str3.compareTo(str4) : str3.length() - str4.length();
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ށ, reason: contains not printable characters */
    public static final class C7225 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final char f20974;

        public C7225(char c) {
            this.f20974 = c;
        }

        public String toString() {
            if (this.f20974 == '\'') {
                return "''";
            }
            StringBuilder sbM4889 = C2803.m4889("'");
            sbM4889.append(this.f20974);
            sbM4889.append("'");
            return sbM4889.toString();
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            if (i == charSequence.length()) {
                return ~i;
            }
            return !c7243.m10885(this.f20974, charSequence.charAt(i)) ? ~i : i + 1;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            sb.append(this.f20974);
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ނ, reason: contains not printable characters */
    public static final class C7226 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final InterfaceC7227[] f20975;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final boolean f20976;

        public C7226(List<InterfaceC7227> list, boolean z) {
            this.f20975 = (InterfaceC7227[]) list.toArray(new InterfaceC7227[list.size()]);
            this.f20976 = z;
        }

        public C7226(InterfaceC7227[] interfaceC7227Arr, boolean z) {
            this.f20975 = interfaceC7227Arr;
            this.f20976 = z;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder();
            if (this.f20975 != null) {
                sb.append(this.f20976 ? "[" : "(");
                for (InterfaceC7227 interfaceC7227 : this.f20975) {
                    sb.append(interfaceC7227);
                }
                sb.append(this.f20976 ? "]" : ")");
            }
            return sb.toString();
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            if (!this.f20976) {
                for (InterfaceC7227 interfaceC7227 : this.f20975) {
                    i = interfaceC7227.mo10867(c7243, charSequence, i);
                    if (i < 0) {
                        break;
                    }
                }
                return i;
            }
            ArrayList<C7243.C7244> arrayList = c7243.f21025;
            C7243.C7244 c7244M10882 = c7243.m10882();
            C7243.C7244 c7244 = C7243.this.new C7244();
            c7244.f21026 = c7244M10882.f21026;
            c7244.f21027 = c7244M10882.f21027;
            c7244.f21028.putAll(c7244M10882.f21028);
            c7244.f21029 = c7244M10882.f21029;
            arrayList.add(c7244);
            int iMo10867 = i;
            for (InterfaceC7227 interfaceC72272 : this.f20975) {
                iMo10867 = interfaceC72272.mo10867(c7243, charSequence, iMo10867);
                if (iMo10867 < 0) {
                    c7243.m10884(false);
                    return i;
                }
            }
            c7243.m10884(true);
            return iMo10867;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            int length = sb.length();
            if (this.f20976) {
                c7246.f21040++;
            }
            try {
                for (InterfaceC7227 interfaceC7227 : this.f20975) {
                    if (!interfaceC7227.mo10868(c7246, sb)) {
                        sb.setLength(length);
                        return true;
                    }
                }
                if (this.f20976) {
                    c7246.m10889();
                }
                return true;
            } finally {
                if (this.f20976) {
                    c7246.m10889();
                }
            }
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ރ, reason: contains not printable characters */
    public interface InterfaceC7227 {
        /* JADX INFO: renamed from: ֏ */
        int mo10867(C7243 c7243, CharSequence charSequence, int i);

        /* JADX INFO: renamed from: ֏ */
        boolean mo10868(C7246 c7246, StringBuilder sb);
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ބ, reason: contains not printable characters */
    public static final class C7228 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final InterfaceC7275 f20977;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final int f20978;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final int f20979;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public final boolean f20980;

        public C7228(InterfaceC7275 interfaceC7275, int i, int i2, boolean z) {
            C7158.m10540(interfaceC7275, "field");
            C7286 c7286Mo10905 = interfaceC7275.mo10905();
            if (!(c7286Mo10905.f21146 == c7286Mo10905.f21147 && c7286Mo10905.f21148 == c7286Mo10905.f21149)) {
                throw new IllegalArgumentException(C2803.m4881("Field must have a fixed set of values: ", interfaceC7275));
            }
            if (i < 0 || i > 9) {
                throw new IllegalArgumentException(C2803.m4871("Minimum width must be from 0 to 9 inclusive but was ", i));
            }
            if (i2 < 1 || i2 > 9) {
                throw new IllegalArgumentException(C2803.m4871("Maximum width must be from 1 to 9 inclusive but was ", i2));
            }
            if (i2 < i) {
                throw new IllegalArgumentException(C2803.m4873("Maximum width must exceed or equal the minimum width but ", i2, " < ", i));
            }
            this.f20977 = interfaceC7275;
            this.f20978 = i;
            this.f20979 = i2;
            this.f20980 = z;
        }

        public String toString() {
            String str = this.f20980 ? ",DecimalPoint" : "";
            StringBuilder sbM4889 = C2803.m4889("Fraction(");
            sbM4889.append(this.f20977);
            sbM4889.append(",");
            sbM4889.append(this.f20978);
            sbM4889.append(",");
            sbM4889.append(this.f20979);
            sbM4889.append(str);
            sbM4889.append(")");
            return sbM4889.toString();
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            int i2;
            int i3 = c7243.f21024 ? this.f20978 : 0;
            int i4 = c7243.f21024 ? this.f20979 : 9;
            int length = charSequence.length();
            if (i == length) {
                return i3 > 0 ? ~i : i;
            }
            if (this.f20980) {
                if (charSequence.charAt(i) != c7243.f21020.f21047) {
                    return i3 > 0 ? ~i : i;
                }
                i++;
            }
            int i5 = i;
            int i6 = i3 + i5;
            if (i6 > length) {
                return ~i5;
            }
            int iMin = Math.min(i4 + i5, length);
            int i7 = i5;
            int i8 = 0;
            while (true) {
                if (i7 >= iMin) {
                    i2 = i7;
                    break;
                }
                int i9 = i7 + 1;
                int iCharAt = charSequence.charAt(i7) - c7243.f21020.f21044;
                if (iCharAt < 0 || iCharAt > 9) {
                    iCharAt = -1;
                }
                if (iCharAt >= 0) {
                    i8 = (i8 * 10) + iCharAt;
                    i7 = i9;
                } else {
                    if (i9 < i6) {
                        return ~i5;
                    }
                    i2 = i9 - 1;
                }
            }
            BigDecimal bigDecimalMovePointLeft = new BigDecimal(i8).movePointLeft(i2 - i5);
            C7286 c7286Mo10905 = this.f20977.mo10905();
            BigDecimal bigDecimalValueOf = BigDecimal.valueOf(c7286Mo10905.f21146);
            return c7243.m10880(this.f20977, bigDecimalMovePointLeft.multiply(BigDecimal.valueOf(c7286Mo10905.f21149).subtract(bigDecimalValueOf).add(BigDecimal.ONE)).setScale(0, RoundingMode.FLOOR).add(bigDecimalValueOf).longValueExact(), i5, i2);
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            Long lM10887 = c7246.m10887(this.f20977);
            if (lM10887 == null) {
                return false;
            }
            C7249 c7249 = c7246.f21039;
            long jLongValue = lM10887.longValue();
            C7286 c7286Mo10905 = this.f20977.mo10905();
            c7286Mo10905.m10919(jLongValue, this.f20977);
            BigDecimal bigDecimalValueOf = BigDecimal.valueOf(c7286Mo10905.f21146);
            BigDecimal bigDecimalDivide = BigDecimal.valueOf(jLongValue).subtract(bigDecimalValueOf).divide(BigDecimal.valueOf(c7286Mo10905.f21149).subtract(bigDecimalValueOf).add(BigDecimal.ONE), 9, RoundingMode.FLOOR);
            BigDecimal bigDecimalStripTrailingZeros = bigDecimalDivide.compareTo(BigDecimal.ZERO) == 0 ? BigDecimal.ZERO : bigDecimalDivide.stripTrailingZeros();
            if (bigDecimalStripTrailingZeros.scale() != 0) {
                String strM10891 = c7249.m10891(bigDecimalStripTrailingZeros.setScale(Math.min(Math.max(bigDecimalStripTrailingZeros.scale(), this.f20978), this.f20979), RoundingMode.FLOOR).toPlainString().substring(2));
                if (this.f20980) {
                    sb.append(c7249.f21047);
                }
                sb.append(strM10891);
                return true;
            }
            if (this.f20978 <= 0) {
                return true;
            }
            if (this.f20980) {
                sb.append(c7249.f21047);
            }
            for (int i = 0; i < this.f20978; i++) {
                sb.append(c7249.f21044);
            }
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ޅ, reason: contains not printable characters */
    public static final class C7229 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final int f20981;

        public C7229(int i) {
            this.f20981 = i;
        }

        public String toString() {
            return "Instant()";
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            int i2;
            int i3;
            if (c7243 == null) {
                throw null;
            }
            C7243 c72432 = new C7243(c7243);
            int i4 = this.f20981;
            if (i4 < 0) {
                i4 = 0;
            }
            int i5 = this.f20981;
            if (i5 < 0) {
                i5 = 9;
            }
            C7221 c7221 = new C7221();
            c7221.m10854(C7220.f20951);
            c7221.m10851('T');
            c7221.m10858(EnumC7259.HOUR_OF_DAY, 2);
            c7221.m10851(':');
            c7221.m10858(EnumC7259.MINUTE_OF_HOUR, 2);
            c7221.m10851(':');
            c7221.m10858(EnumC7259.SECOND_OF_MINUTE, 2);
            c7221.m10860((InterfaceC7275) EnumC7259.NANO_OF_SECOND, i4, i5, true);
            c7221.m10851('Z');
            C7226 c7226 = c7221.m10864().f20956;
            if (c7226.f20976) {
                c7226 = new C7226(c7226.f20975, false);
            }
            int iMo10867 = c7226.mo10867(c72432, charSequence, i);
            if (iMo10867 < 0) {
                return iMo10867;
            }
            long jLongValue = c72432.m10881(EnumC7259.YEAR).longValue();
            int iIntValue = c72432.m10881(EnumC7259.MONTH_OF_YEAR).intValue();
            int iIntValue2 = c72432.m10881(EnumC7259.DAY_OF_MONTH).intValue();
            int iIntValue3 = c72432.m10881(EnumC7259.HOUR_OF_DAY).intValue();
            int iIntValue4 = c72432.m10881(EnumC7259.MINUTE_OF_HOUR).intValue();
            Long lM10881 = c72432.m10881(EnumC7259.SECOND_OF_MINUTE);
            Long lM108812 = c72432.m10881(EnumC7259.NANO_OF_SECOND);
            int iIntValue5 = lM10881 != null ? lM10881.intValue() : 0;
            int iIntValue6 = lM108812 != null ? lM108812.intValue() : 0;
            int i6 = ((int) jLongValue) % 10000;
            if (iIntValue3 == 24 && iIntValue4 == 0 && iIntValue5 == 0 && iIntValue6 == 0) {
                i2 = iIntValue5;
                iIntValue3 = 0;
                i3 = 1;
            } else if (iIntValue3 == 23 && iIntValue4 == 59 && iIntValue5 == 60) {
                c7243.m10882().f21029 = true;
                i3 = 0;
                i2 = 59;
            } else {
                i2 = iIntValue5;
                i3 = 0;
            }
            try {
                return c7243.m10880(EnumC7259.NANO_OF_SECOND, iIntValue6, i, c7243.m10880(EnumC7259.INSTANT_SECONDS, C7179.m10654(i6, iIntValue, iIntValue2, iIntValue3, iIntValue4, i2, 0).m10669(i3).m10764(C7192.f20852) + C7158.m10551(jLongValue / 10000, 315569520000L), i, iMo10867));
            } catch (RuntimeException unused) {
                return ~i;
            }
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            Long lM10887 = c7246.m10887(EnumC7259.INSTANT_SECONDS);
            Long lValueOf = c7246.f21037.mo10595(EnumC7259.NANO_OF_SECOND) ? Long.valueOf(c7246.f21037.mo10597(EnumC7259.NANO_OF_SECOND)) : 0L;
            int i = 0;
            if (lM10887 == null) {
                return false;
            }
            long jLongValue = lM10887.longValue();
            int iM10897 = EnumC7259.NANO_OF_SECOND.m10897(lValueOf.longValue());
            if (jLongValue >= -62167219200L) {
                long j = (jLongValue - 315569520000L) + 62167219200L;
                long jM10546 = C7158.m10546(j, 315569520000L) + 1;
                C7179 c7179M10655 = C7179.m10655(C7158.m10548(j, 315569520000L) - 62167219200L, 0, C7192.f20852);
                if (jM10546 > 0) {
                    sb.append('+');
                    sb.append(jM10546);
                }
                sb.append(c7179M10655);
                if (c7179M10655.f20810.f20817 == 0) {
                    sb.append(":00");
                }
            } else {
                long j2 = jLongValue + 62167219200L;
                long j3 = j2 / 315569520000L;
                long j4 = j2 % 315569520000L;
                C7179 c7179M106552 = C7179.m10655(j4 - 62167219200L, 0, C7192.f20852);
                int length = sb.length();
                sb.append(c7179M106552);
                if (c7179M106552.f20810.f20817 == 0) {
                    sb.append(":00");
                }
                if (j3 < 0) {
                    if (c7179M106552.f20809.f20803 == -10000) {
                        sb.replace(length, length + 2, Long.toString(j3 - 1));
                    } else if (j4 == 0) {
                        sb.insert(length, j3);
                    } else {
                        sb.insert(length + 1, Math.abs(j3));
                    }
                }
            }
            int i2 = this.f20981;
            if (i2 == -2) {
                if (iM10897 != 0) {
                    sb.append('.');
                    if (iM10897 % 1000000 == 0) {
                        sb.append(Integer.toString((iM10897 / 1000000) + 1000).substring(1));
                    } else if (iM10897 % 1000 == 0) {
                        sb.append(Integer.toString((iM10897 / 1000) + 1000000).substring(1));
                    } else {
                        sb.append(Integer.toString(iM10897 + 1000000000).substring(1));
                    }
                }
            } else if (i2 > 0 || (i2 == -1 && iM10897 > 0)) {
                sb.append('.');
                int i3 = 100000000;
                while (true) {
                    if ((this.f20981 != -1 || iM10897 <= 0) && i >= this.f20981) {
                        break;
                    }
                    int i4 = iM10897 / i3;
                    sb.append((char) (i4 + 48));
                    iM10897 -= i4 * i3;
                    i3 /= 10;
                    i++;
                }
            }
            sb.append('Z');
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ކ, reason: contains not printable characters */
    public static final class C7230 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final EnumC7255 f20982;

        public C7230(EnumC7255 enumC7255) {
            this.f20982 = enumC7255;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            char cCharAt;
            if (!c7243.m10886(charSequence, i, "GMT", 0, 3)) {
                return ~i;
            }
            int i2 = i + 3;
            if (this.f20982 == EnumC7255.FULL) {
                return new C7232("", "+HH:MM:ss").mo10867(c7243, charSequence, i2);
            }
            int length = charSequence.length();
            if (i2 == length) {
                return c7243.m10880(EnumC7259.OFFSET_SECONDS, 0L, i2, i2);
            }
            char cCharAt2 = charSequence.charAt(i2);
            if (cCharAt2 != '+' && cCharAt2 != '-') {
                return c7243.m10880(EnumC7259.OFFSET_SECONDS, 0L, i2, i2);
            }
            int i3 = cCharAt2 == '-' ? -1 : 1;
            if (i2 == length) {
                return ~i2;
            }
            int i4 = i2 + 1;
            char cCharAt3 = charSequence.charAt(i4);
            if (cCharAt3 < '0' || cCharAt3 > '9') {
                return ~i4;
            }
            int i5 = i4 + 1;
            int i6 = cCharAt3 - '0';
            if (i5 != length && (cCharAt = charSequence.charAt(i5)) >= '0' && cCharAt <= '9') {
                i6 = (i6 * 10) + (cCharAt - '0');
                if (i6 > 23) {
                    return ~i5;
                }
                i5++;
            }
            int i7 = i5;
            if (i7 == length || charSequence.charAt(i7) != ':') {
                return c7243.m10880(EnumC7259.OFFSET_SECONDS, i3 * 3600 * i6, i7, i7);
            }
            int i8 = i7 + 1;
            int i9 = length - 2;
            if (i8 > i9) {
                return ~i8;
            }
            char cCharAt4 = charSequence.charAt(i8);
            if (cCharAt4 < '0' || cCharAt4 > '9') {
                return ~i8;
            }
            int i10 = i8 + 1;
            int i11 = cCharAt4 - '0';
            char cCharAt5 = charSequence.charAt(i10);
            if (cCharAt5 < '0' || cCharAt5 > '9') {
                return ~i10;
            }
            int i12 = i10 + 1;
            if ((cCharAt5 - '0') + (i11 * 10) > 59) {
                return ~i12;
            }
            if (i12 == length || charSequence.charAt(i12) != ':') {
                return c7243.m10880(EnumC7259.OFFSET_SECONDS, ((r12 * 60) + (i6 * 3600)) * i3, i12, i12);
            }
            int i13 = i12 + 1;
            if (i13 > i9) {
                return ~i13;
            }
            char cCharAt6 = charSequence.charAt(i13);
            if (cCharAt6 < '0' || cCharAt6 > '9') {
                return ~i13;
            }
            int i14 = i13 + 1;
            int i15 = cCharAt6 - '0';
            char cCharAt7 = charSequence.charAt(i14);
            if (cCharAt7 < '0' || cCharAt7 > '9') {
                return ~i14;
            }
            int i16 = i14 + 1;
            return (cCharAt7 - '0') + (i15 * 10) > 59 ? ~i16 : c7243.m10880(EnumC7259.OFFSET_SECONDS, ((r12 * 60) + (i6 * 3600) + r1) * i3, i16, i16);
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            Long lM10887 = c7246.m10887(EnumC7259.OFFSET_SECONDS);
            if (lM10887 == null) {
                return false;
            }
            sb.append("GMT");
            if (this.f20982 == EnumC7255.FULL) {
                return new C7232("", "+HH:MM:ss").mo10868(c7246, sb);
            }
            int iM10535 = C7158.m10535(lM10887.longValue());
            if (iM10535 == 0) {
                return true;
            }
            int iAbs = Math.abs((iM10535 / 3600) % 100);
            int iAbs2 = Math.abs((iM10535 / 60) % 60);
            int iAbs3 = Math.abs(iM10535 % 60);
            sb.append(iM10535 < 0 ? "-" : "+");
            sb.append(iAbs);
            if (iAbs2 <= 0 && iAbs3 <= 0) {
                return true;
            }
            sb.append(":");
            sb.append((char) ((iAbs2 / 10) + 48));
            sb.append((char) ((iAbs2 % 10) + 48));
            if (iAbs3 <= 0) {
                return true;
            }
            sb.append(":");
            sb.append((char) ((iAbs3 / 10) + 48));
            sb.append((char) ((iAbs3 % 10) + 48));
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$އ, reason: contains not printable characters */
    public static class C7231 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public static final int[] f20983 = {0, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000};

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final InterfaceC7275 f20984;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final int f20985;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final int f20986;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public final EnumC7251 f20987;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public final int f20988;

        public C7231(InterfaceC7275 interfaceC7275, int i, int i2, EnumC7251 enumC7251) {
            this.f20984 = interfaceC7275;
            this.f20985 = i;
            this.f20986 = i2;
            this.f20987 = enumC7251;
            this.f20988 = 0;
        }

        public C7231(InterfaceC7275 interfaceC7275, int i, int i2, EnumC7251 enumC7251, int i3) {
            this.f20984 = interfaceC7275;
            this.f20985 = i;
            this.f20986 = i2;
            this.f20987 = enumC7251;
            this.f20988 = i3;
        }

        public /* synthetic */ C7231(InterfaceC7275 interfaceC7275, int i, int i2, EnumC7251 enumC7251, int i3, C7222 c7222) {
            this.f20984 = interfaceC7275;
            this.f20985 = i;
            this.f20986 = i2;
            this.f20987 = enumC7251;
            this.f20988 = i3;
        }

        public String toString() {
            if (this.f20985 == 1 && this.f20986 == 19 && this.f20987 == EnumC7251.NORMAL) {
                StringBuilder sbM4889 = C2803.m4889("Value(");
                sbM4889.append(this.f20984);
                sbM4889.append(")");
                return sbM4889.toString();
            }
            if (this.f20985 == this.f20986 && this.f20987 == EnumC7251.NOT_NEGATIVE) {
                StringBuilder sbM48892 = C2803.m4889("Value(");
                sbM48892.append(this.f20984);
                sbM48892.append(",");
                return C2803.m4882(sbM48892, this.f20985, ")");
            }
            StringBuilder sbM48893 = C2803.m4889("Value(");
            sbM48893.append(this.f20984);
            sbM48893.append(",");
            sbM48893.append(this.f20985);
            sbM48893.append(",");
            sbM48893.append(this.f20986);
            sbM48893.append(",");
            sbM48893.append(this.f20987);
            sbM48893.append(")");
            return sbM48893.toString();
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public int mo10869(C7243 c7243, long j, int i, int i2) {
            return c7243.m10880(this.f20984, j, i, i2);
        }

        /* JADX WARN: Code restructure failed: missing block: B:81:0x00f9, code lost:
        
            r5 = r13;
            r7 = r16;
         */
        /* JADX WARN: Removed duplicated region for block: B:115:0x0149  */
        /* JADX WARN: Removed duplicated region for block: B:120:0x0166  */
        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            boolean z;
            int i2;
            boolean z2;
            BigInteger bigIntegerDivide;
            int i3;
            long j;
            long j2;
            int i4;
            int i5 = i;
            int length = charSequence.length();
            if (i5 == length) {
                return ~i5;
            }
            char cCharAt = charSequence.charAt(i);
            C7249 c7249 = c7243.f21020;
            int i6 = 0;
            if (cCharAt == c7249.f21045) {
                if (!this.f20987.m10892(true, c7243.f21024, this.f20985 == this.f20986)) {
                    return ~i5;
                }
                i2 = i5 + 1;
                z2 = true;
                z = false;
            } else {
                if (cCharAt == c7249.f21046) {
                    if (!this.f20987.m10892(false, c7243.f21024, this.f20985 == this.f20986)) {
                        return ~i5;
                    }
                    i5++;
                    z = true;
                } else {
                    if (this.f20987 == EnumC7251.ALWAYS && c7243.f21024) {
                        return ~i5;
                    }
                    z = false;
                }
                i2 = i5;
                z2 = false;
            }
            int i7 = (c7243.f21024 || mo10873(c7243)) ? this.f20985 : 1;
            int i8 = i2 + i7;
            if (i8 > length) {
                return ~i2;
            }
            int i9 = 9;
            int iMax = Math.max(this.f20988, 0) + ((c7243.f21024 || mo10873(c7243)) ? this.f20986 : 9);
            while (true) {
                bigIntegerDivide = null;
                if (i6 >= 2) {
                    i3 = i2;
                    j = 0;
                    break;
                }
                int iMin = Math.min(iMax + i2, length);
                int i10 = i2;
                long j3 = 0;
                while (true) {
                    if (i10 >= iMin) {
                        break;
                    }
                    int i11 = i10 + 1;
                    int iCharAt = charSequence.charAt(i10) - c7243.f21020.f21044;
                    if (iCharAt < 0 || iCharAt > i9) {
                        iCharAt = -1;
                    }
                    if (iCharAt < 0) {
                        i10 = i11 - 1;
                        if (i10 < i8) {
                            return ~i2;
                        }
                    } else {
                        if (i11 - i2 > 18) {
                            if (bigIntegerDivide == null) {
                                bigIntegerDivide = BigInteger.valueOf(j3);
                            }
                            i4 = i8;
                            bigIntegerDivide = bigIntegerDivide.multiply(BigInteger.TEN).add(BigInteger.valueOf(iCharAt));
                        } else {
                            i4 = i8;
                            j3 = (j3 * 10) + ((long) iCharAt);
                        }
                        i8 = i4;
                        i10 = i11;
                        i9 = 9;
                    }
                }
                int i12 = i8;
                int i13 = this.f20988;
                if (i13 <= 0 || i6 != 0) {
                    break;
                }
                iMax = Math.max(i7, (i10 - i2) - i13);
                i6++;
                i8 = i12;
                i9 = 9;
            }
            if (z) {
                if (bigIntegerDivide == null) {
                    if (j == 0 && c7243.f21024) {
                        return ~(i2 - 1);
                    }
                    j2 = -j;
                    if (bigIntegerDivide != null) {
                        return mo10869(c7243, j2, i2, i3);
                    }
                    if (bigIntegerDivide.bitLength() > 63) {
                        bigIntegerDivide = bigIntegerDivide.divide(BigInteger.TEN);
                        i3--;
                    }
                    return mo10869(c7243, bigIntegerDivide.longValue(), i2, i3);
                }
                if (bigIntegerDivide.equals(BigInteger.ZERO) && c7243.f21024) {
                    return ~(i2 - 1);
                }
                bigIntegerDivide = bigIntegerDivide.negate();
            } else if (this.f20987 == EnumC7251.EXCEEDS_PAD && c7243.f21024) {
                int i14 = i3 - i2;
                if (z2) {
                    if (i14 <= this.f20985) {
                        return ~(i2 - 1);
                    }
                } else if (i14 > this.f20985) {
                    return ~i2;
                }
            }
            j2 = j;
            if (bigIntegerDivide != null) {
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public long mo10870(C7246 c7246, long j) {
            return j;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public C7231 mo10871() {
            return this.f20988 == -1 ? this : new C7231(this.f20984, this.f20985, this.f20986, this.f20987, -1);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public C7231 mo10872(int i) {
            return new C7231(this.f20984, this.f20985, this.f20986, this.f20987, this.f20988 + i);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean mo10873(C7243 c7243) {
            int i = this.f20988;
            return i == -1 || (i > 0 && this.f20985 == this.f20986 && this.f20987 == EnumC7251.NOT_NEGATIVE);
        }

        /* JADX WARN: Removed duplicated region for block: B:32:0x0091  */
        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            int i;
            Long lM10887 = c7246.m10887(this.f20984);
            if (lM10887 == null) {
                return false;
            }
            long jMo10870 = mo10870(c7246, lM10887.longValue());
            C7249 c7249 = c7246.f21039;
            String string = jMo10870 == Long.MIN_VALUE ? "9223372036854775808" : Long.toString(Math.abs(jMo10870));
            if (string.length() > this.f20986) {
                StringBuilder sbM4889 = C2803.m4889("Field ");
                sbM4889.append(this.f20984);
                sbM4889.append(" cannot be printed as the value ");
                sbM4889.append(jMo10870);
                sbM4889.append(" exceeds the maximum print width of ");
                sbM4889.append(this.f20986);
                throw new DateTimeException(sbM4889.toString());
            }
            String strM10891 = c7249.m10891(string);
            if (jMo10870 >= 0) {
                int iOrdinal = this.f20987.ordinal();
                if (iOrdinal == 1) {
                    sb.append(c7249.f21045);
                } else if (iOrdinal == 4 && (i = this.f20985) < 19 && jMo10870 >= f20983[i]) {
                    sb.append(c7249.f21045);
                }
            } else {
                int iOrdinal2 = this.f20987.ordinal();
                if (iOrdinal2 == 0 || iOrdinal2 == 1) {
                    sb.append(c7249.f21046);
                } else {
                    if (iOrdinal2 == 3) {
                        StringBuilder sbM48892 = C2803.m4889("Field ");
                        sbM48892.append(this.f20984);
                        sbM48892.append(" cannot be printed as the value ");
                        sbM48892.append(jMo10870);
                        sbM48892.append(" cannot be negative according to the SignStyle");
                        throw new DateTimeException(sbM48892.toString());
                    }
                    if (iOrdinal2 == 4) {
                    }
                }
            }
            for (int i2 = 0; i2 < this.f20985 - strM10891.length(); i2++) {
                sb.append(c7249.f21044);
            }
            sb.append(strM10891);
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ވ, reason: contains not printable characters */
    public static final class C7232 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public static final String[] f20989 = {"+HH", "+HHmm", "+HH:mm", "+HHMM", "+HH:MM", "+HHMMss", "+HH:MM:ss", "+HHMMSS", "+HH:MM:SS"};

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public static final C7232 f20990 = new C7232("Z", "+HH:MM:ss");

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final String f20991;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final int f20992;

        public C7232(String str, String str2) {
            C7158.m10540(str, "noOffsetText");
            C7158.m10540(str2, "pattern");
            this.f20991 = str;
            int i = 0;
            while (true) {
                String[] strArr = f20989;
                if (i >= strArr.length) {
                    throw new IllegalArgumentException(C2803.m4879("Invalid zone offset pattern: ", str2));
                }
                if (strArr[i].equals(str2)) {
                    this.f20992 = i;
                    return;
                }
                i++;
            }
        }

        public String toString() {
            String strReplace = this.f20991.replace("'", "''");
            StringBuilder sbM4889 = C2803.m4889("Offset(");
            sbM4889.append(f20989[this.f20992]);
            sbM4889.append(",'");
            sbM4889.append(strReplace);
            sbM4889.append("')");
            return sbM4889.toString();
        }

        /* JADX WARN: Removed duplicated region for block: B:33:0x007d  */
        /* JADX WARN: Removed duplicated region for block: B:35:0x0080  */
        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            boolean z;
            int length = charSequence.length();
            int length2 = this.f20991.length();
            if (length2 == 0) {
                if (i == length) {
                    return c7243.m10880(EnumC7259.OFFSET_SECONDS, 0L, i, i);
                }
            } else {
                if (i == length) {
                    return ~i;
                }
                if (c7243.m10886(charSequence, i, this.f20991, 0, length2)) {
                    return c7243.m10880(EnumC7259.OFFSET_SECONDS, 0L, i, i + length2);
                }
            }
            char cCharAt = charSequence.charAt(i);
            if (cCharAt == '+' || cCharAt == '-') {
                int i2 = cCharAt == '-' ? -1 : 1;
                int[] iArr = new int[4];
                iArr[0] = i + 1;
                if (m10874(iArr, 1, charSequence, true)) {
                    z = true;
                    if (!z) {
                        return c7243.m10880(EnumC7259.OFFSET_SECONDS, ((((long) iArr[2]) * 60) + (((long) iArr[1]) * 3600) + ((long) iArr[3])) * ((long) i2), i, iArr[0]);
                    }
                } else {
                    if (!m10874(iArr, 2, charSequence, this.f20992 >= 3) && !m10874(iArr, 3, charSequence, false)) {
                        z = false;
                    }
                    if (!z) {
                    }
                }
            }
            return length2 == 0 ? c7243.m10880(EnumC7259.OFFSET_SECONDS, 0L, i, i + length2) : ~i;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            Long lM10887 = c7246.m10887(EnumC7259.OFFSET_SECONDS);
            if (lM10887 == null) {
                return false;
            }
            int iM10535 = C7158.m10535(lM10887.longValue());
            if (iM10535 == 0) {
                sb.append(this.f20991);
            } else {
                int iAbs = Math.abs((iM10535 / 3600) % 100);
                int iAbs2 = Math.abs((iM10535 / 60) % 60);
                int iAbs3 = Math.abs(iM10535 % 60);
                int length = sb.length();
                sb.append(iM10535 < 0 ? "-" : "+");
                sb.append((char) ((iAbs / 10) + 48));
                sb.append((char) ((iAbs % 10) + 48));
                int i = this.f20992;
                if (i >= 3 || (i >= 1 && iAbs2 > 0)) {
                    sb.append(this.f20992 % 2 == 0 ? ":" : "");
                    sb.append((char) ((iAbs2 / 10) + 48));
                    sb.append((char) ((iAbs2 % 10) + 48));
                    iAbs += iAbs2;
                    int i2 = this.f20992;
                    if (i2 >= 7 || (i2 >= 5 && iAbs3 > 0)) {
                        sb.append(this.f20992 % 2 != 0 ? "" : ":");
                        sb.append((char) ((iAbs3 / 10) + 48));
                        sb.append((char) ((iAbs3 % 10) + 48));
                        iAbs += iAbs3;
                    }
                }
                if (iAbs == 0) {
                    sb.setLength(length);
                    sb.append(this.f20991);
                }
            }
            return true;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final boolean m10874(int[] iArr, int i, CharSequence charSequence, boolean z) {
            int i2 = this.f20992;
            if ((i2 + 3) / 2 < i) {
                return false;
            }
            int i3 = iArr[0];
            if (i2 % 2 == 0 && i > 1) {
                int i4 = i3 + 1;
                if (i4 > charSequence.length() || charSequence.charAt(i3) != ':') {
                    return z;
                }
                i3 = i4;
            }
            if (i3 + 2 > charSequence.length()) {
                return z;
            }
            int i5 = i3 + 1;
            char cCharAt = charSequence.charAt(i3);
            int i6 = i5 + 1;
            char cCharAt2 = charSequence.charAt(i5);
            if (cCharAt >= '0' && cCharAt <= '9' && cCharAt2 >= '0' && cCharAt2 <= '9') {
                int i7 = (cCharAt2 - '0') + ((cCharAt - '0') * 10);
                if (i7 >= 0 && i7 <= 59) {
                    iArr[i] = i7;
                    iArr[0] = i6;
                    return false;
                }
            }
            return z;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$މ, reason: contains not printable characters */
    public static final class C7233 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final InterfaceC7227 f20993;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final int f20994;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final char f20995;

        public C7233(InterfaceC7227 interfaceC7227, int i, char c) {
            this.f20993 = interfaceC7227;
            this.f20994 = i;
            this.f20995 = c;
        }

        public String toString() {
            String string;
            StringBuilder sbM4889 = C2803.m4889("Pad(");
            sbM4889.append(this.f20993);
            sbM4889.append(",");
            sbM4889.append(this.f20994);
            if (this.f20995 == ' ') {
                string = ")";
            } else {
                StringBuilder sbM48892 = C2803.m4889(",'");
                sbM48892.append(this.f20995);
                sbM48892.append("')");
                string = sbM48892.toString();
            }
            sbM4889.append(string);
            return sbM4889.toString();
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            boolean z = c7243.f21024;
            boolean z2 = c7243.f21023;
            if (i > charSequence.length()) {
                throw new IndexOutOfBoundsException();
            }
            if (i == charSequence.length()) {
                return ~i;
            }
            int length = this.f20994 + i;
            if (length > charSequence.length()) {
                if (z) {
                    return ~i;
                }
                length = charSequence.length();
            }
            int i2 = i;
            while (i2 < length) {
                if (!z2) {
                    if (!c7243.m10885(charSequence.charAt(i2), this.f20995)) {
                        break;
                    }
                    i2++;
                } else {
                    if (charSequence.charAt(i2) != this.f20995) {
                        break;
                    }
                    i2++;
                }
            }
            int iMo10867 = this.f20993.mo10867(c7243, charSequence.subSequence(0, length), i2);
            return (iMo10867 == length || !z) ? iMo10867 : ~(i + i2);
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            int length = sb.length();
            if (!this.f20993.mo10868(c7246, sb)) {
                return false;
            }
            int length2 = sb.length() - length;
            if (length2 > this.f20994) {
                StringBuilder sbM4896 = C2803.m4896("Cannot print as output of ", length2, " characters exceeds pad width of ");
                sbM4896.append(this.f20994);
                throw new DateTimeException(sbM4896.toString());
            }
            for (int i = 0; i < this.f20994 - length2; i++) {
                sb.insert(length, this.f20995);
            }
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ފ, reason: contains not printable characters */
    public static final class C7234 extends C7231 {

        /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
        public static final C7178 f20996 = C7178.m10621(2000, 1, 1);

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public final int f20997;

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public final AbstractC7196 f20998;

        public C7234(InterfaceC7275 interfaceC7275, int i, int i2, int i3, AbstractC7196 abstractC7196) {
            super(interfaceC7275, i, i2, EnumC7251.NOT_NEGATIVE);
            if (i < 1 || i > 10) {
                throw new IllegalArgumentException(C2803.m4871("The width must be from 1 to 10 inclusive but was ", i));
            }
            if (i2 < 1 || i2 > 10) {
                throw new IllegalArgumentException(C2803.m4871("The maxWidth must be from 1 to 10 inclusive but was ", i2));
            }
            if (i2 < i) {
                throw new IllegalArgumentException("The maxWidth must be greater than the width");
            }
            if (abstractC7196 == null) {
                long j = i3;
                if (!interfaceC7275.mo10905().m10918(j)) {
                    throw new IllegalArgumentException("The base value must be within the range of the field");
                }
                if (j + ((long) C7231.f20983[i]) > 2147483647L) {
                    throw new DateTimeException("Unable to add printer-parser as the range exceeds the capacity of an int");
                }
            }
            this.f20997 = i3;
            this.f20998 = abstractC7196;
        }

        public C7234(InterfaceC7275 interfaceC7275, int i, int i2, int i3, AbstractC7196 abstractC7196, int i4) {
            super(interfaceC7275, i, i2, EnumC7251.NOT_NEGATIVE, i4, null);
            this.f20997 = i3;
            this.f20998 = abstractC7196;
        }

        @Override // p463.p484.p485.p487.C7221.C7231
        public String toString() {
            StringBuilder sbM4889 = C2803.m4889("ReducedValue(");
            sbM4889.append(this.f20984);
            sbM4889.append(",");
            sbM4889.append(this.f20985);
            sbM4889.append(",");
            sbM4889.append(this.f20986);
            sbM4889.append(",");
            Object objValueOf = this.f20998;
            if (objValueOf == null) {
                objValueOf = Integer.valueOf(this.f20997);
            }
            sbM4889.append(objValueOf);
            sbM4889.append(")");
            return sbM4889.toString();
        }

        @Override // p463.p484.p485.p487.C7221.C7231
        /* JADX INFO: renamed from: ֏ */
        public int mo10869(C7243 c7243, long j, int i, int i2) {
            int iMo10596 = this.f20997;
            if (this.f20998 != null) {
                AbstractC7202 abstractC7202 = c7243.m10882().f21026;
                if (abstractC7202 == null && (abstractC7202 = c7243.f21021) == null) {
                    abstractC7202 = C7207.f20907;
                }
                iMo10596 = abstractC7202.mo10781((InterfaceC7270) this.f20998).mo10596(this.f20984);
                C7243.C7244 c7244M10882 = c7243.m10882();
                if (c7244M10882.f21031 == null) {
                    c7244M10882.f21031 = new ArrayList(2);
                }
                c7244M10882.f21031.add(new Object[]{this, Long.valueOf(j), Integer.valueOf(i), Integer.valueOf(i2)});
            }
            int i3 = i2 - i;
            int i4 = this.f20985;
            if (i3 == i4 && j >= 0) {
                long j2 = C7231.f20983[i4];
                long j3 = iMo10596;
                long j4 = j3 - (j3 % j2);
                j = iMo10596 > 0 ? j4 + j : j4 - j;
                if (j < j3) {
                    j += j2;
                }
            }
            return c7243.m10880(this.f20984, j, i, i2);
        }

        @Override // p463.p484.p485.p487.C7221.C7231
        /* JADX INFO: renamed from: ֏ */
        public long mo10870(C7246 c7246, long j) {
            long jAbs = Math.abs(j);
            int iMo10596 = this.f20997;
            if (this.f20998 != null) {
                iMo10596 = AbstractC7202.m10777(c7246.f21037).mo10781((InterfaceC7270) this.f20998).mo10596(this.f20984);
            }
            if (j >= iMo10596) {
                int[] iArr = C7231.f20983;
                int i = this.f20985;
                if (j < iMo10596 + iArr[i]) {
                    return jAbs % ((long) iArr[i]);
                }
            }
            return jAbs % ((long) C7231.f20983[this.f20986]);
        }

        @Override // p463.p484.p485.p487.C7221.C7231
        /* JADX INFO: renamed from: ֏ */
        public C7231 mo10871() {
            return this.f20988 == -1 ? this : new C7234(this.f20984, this.f20985, this.f20986, this.f20997, this.f20998, -1);
        }

        @Override // p463.p484.p485.p487.C7221.C7231
        /* JADX INFO: renamed from: ֏ */
        public C7231 mo10872(int i) {
            return new C7234(this.f20984, this.f20985, this.f20986, this.f20997, this.f20998, this.f20988 + i);
        }

        @Override // p463.p484.p485.p487.C7221.C7231
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10873(C7243 c7243) {
            if (c7243.f21024) {
                return super.mo10873(c7243);
            }
            return false;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ދ, reason: contains not printable characters */
    public enum EnumC7235 implements InterfaceC7227 {
        SENSITIVE,
        INSENSITIVE,
        STRICT,
        LENIENT;

        @Override // java.lang.Enum
        public String toString() {
            int iOrdinal = ordinal();
            if (iOrdinal == 0) {
                return "ParseCaseSensitive(true)";
            }
            if (iOrdinal == 1) {
                return "ParseCaseSensitive(false)";
            }
            if (iOrdinal == 2) {
                return "ParseStrict(true)";
            }
            if (iOrdinal == 3) {
                return "ParseStrict(false)";
            }
            throw new IllegalStateException("Unreachable");
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            int iOrdinal = ordinal();
            if (iOrdinal == 0) {
                c7243.f21023 = true;
            } else if (iOrdinal == 1) {
                c7243.f21023 = false;
            } else if (iOrdinal == 2) {
                c7243.f21024 = true;
            } else if (iOrdinal == 3) {
                c7243.f21024 = false;
            }
            return i;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ތ, reason: contains not printable characters */
    public static final class C7236 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final String f21004;

        public C7236(String str) {
            this.f21004 = str;
        }

        public String toString() {
            return C2803.m4880("'", this.f21004.replace("'", "''"), "'");
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            if (i > charSequence.length() || i < 0) {
                throw new IndexOutOfBoundsException();
            }
            String str = this.f21004;
            return !c7243.m10886(charSequence, i, str, 0, str.length()) ? ~i : this.f21004.length() + i;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            sb.append(this.f21004);
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ލ, reason: contains not printable characters */
    public static final class C7237 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final InterfaceC7275 f21005;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final EnumC7255 f21006;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final AbstractC7247 f21007;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public volatile C7231 f21008;

        public C7237(InterfaceC7275 interfaceC7275, EnumC7255 enumC7255, AbstractC7247 abstractC7247) {
            this.f21005 = interfaceC7275;
            this.f21006 = enumC7255;
            this.f21007 = abstractC7247;
        }

        public String toString() {
            if (this.f21006 == EnumC7255.FULL) {
                StringBuilder sbM4889 = C2803.m4889("Text(");
                sbM4889.append(this.f21005);
                sbM4889.append(")");
                return sbM4889.toString();
            }
            StringBuilder sbM48892 = C2803.m4889("Text(");
            sbM48892.append(this.f21005);
            sbM48892.append(",");
            sbM48892.append(this.f21006);
            sbM48892.append(")");
            return sbM48892.toString();
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            int length = charSequence.length();
            if (i < 0 || i > length) {
                throw new IndexOutOfBoundsException();
            }
            Iterator<Map.Entry<String, Long>> itMo10866 = this.f21007.mo10866(this.f21005, c7243.f21024 ? this.f21006 : null, c7243.f21019);
            if (itMo10866 != null) {
                while (itMo10866.hasNext()) {
                    Map.Entry<String, Long> next = itMo10866.next();
                    String key = next.getKey();
                    if (c7243.m10886(key, 0, charSequence, i, key.length())) {
                        return c7243.m10880(this.f21005, next.getValue().longValue(), i, key.length() + i);
                    }
                }
                if (c7243.f21024) {
                    return ~i;
                }
            }
            return m10875().mo10867(c7243, charSequence, i);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final C7231 m10875() {
            if (this.f21008 == null) {
                this.f21008 = new C7231(this.f21005, 1, 19, EnumC7251.NORMAL);
            }
            return this.f21008;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            Long lM10887 = c7246.m10887(this.f21005);
            if (lM10887 == null) {
                return false;
            }
            String strMo10865 = this.f21007.mo10865(this.f21005, lM10887.longValue(), this.f21006, c7246.f21038);
            if (strMo10865 == null) {
                return m10875().mo10868(c7246, sb);
            }
            sb.append(strMo10865);
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ގ, reason: contains not printable characters */
    public static final class C7238 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final char f21009;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final int f21010;

        public C7238(char c, int i) {
            this.f21009 = c;
            this.f21010 = i;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder(30);
            sb.append("Localized(");
            char c = this.f21009;
            if (c == 'Y') {
                int i = this.f21010;
                if (i == 1) {
                    sb.append("WeekBasedYear");
                } else if (i == 2) {
                    sb.append("ReducedValue(WeekBasedYear,2,2,2000-01-01)");
                } else {
                    sb.append("WeekBasedYear,");
                    sb.append(this.f21010);
                    sb.append(",");
                    sb.append(19);
                    sb.append(",");
                    sb.append(this.f21010 < 4 ? EnumC7251.NORMAL : EnumC7251.EXCEEDS_PAD);
                }
            } else {
                if (c == 'c' || c == 'e') {
                    sb.append("DayOfWeek");
                } else if (c == 'w') {
                    sb.append("WeekOfWeekBasedYear");
                } else if (c == 'W') {
                    sb.append("WeekOfMonth");
                }
                sb.append(",");
                sb.append(this.f21010);
            }
            sb.append(")");
            return sb.toString();
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            return m10876(C7287.m10920(c7243.f21019)).mo10867(c7243, charSequence, i);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final InterfaceC7227 m10876(C7287 c7287) {
            InterfaceC7227 c7231;
            char c = this.f21009;
            if (c == 'W') {
                c7231 = new C7231(c7287.f21154, 1, 2, EnumC7251.NOT_NEGATIVE);
            } else if (c == 'Y') {
                int i = this.f21010;
                if (i == 2) {
                    c7231 = new C7234(c7287.f21156, 2, 2, 0, C7234.f20996);
                } else {
                    c7231 = new C7231(c7287.f21156, i, 19, i < 4 ? EnumC7251.NORMAL : EnumC7251.EXCEEDS_PAD, -1, null);
                }
            } else if (c == 'c' || c == 'e') {
                c7231 = new C7231(c7287.f21153, this.f21010, 2, EnumC7251.NOT_NEGATIVE);
            } else {
                if (c != 'w') {
                    return null;
                }
                c7231 = new C7231(c7287.f21155, this.f21010, 2, EnumC7251.NOT_NEGATIVE);
            }
            return c7231;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            return m10876(C7287.m10920(c7246.f21038)).mo10868(c7246, sb);
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ޏ, reason: contains not printable characters */
    public static final class C7239 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public static volatile Map.Entry<Integer, C7240> f21011;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final InterfaceC7284<AbstractC7191> f21012;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final String f21013;

        /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ޏ$֏, reason: contains not printable characters */
        public static final class C7240 {

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final int f21014;

            /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
            public final Map<CharSequence, C7240> f21015 = new HashMap();

            /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
            public final Map<String, C7240> f21016 = new HashMap();

            public C7240(int i) {
                this.f21014 = i;
            }

            public /* synthetic */ C7240(int i, C7222 c7222) {
                this.f21014 = i;
            }

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final void m10879(String str) {
                int length = str.length();
                int i = this.f21014;
                if (length == i) {
                    this.f21015.put(str, null);
                    this.f21016.put(str.toLowerCase(Locale.ENGLISH), null);
                } else if (length > i) {
                    String strSubstring = str.substring(0, i);
                    C7240 c7240 = this.f21015.get(strSubstring);
                    if (c7240 == null) {
                        c7240 = new C7240(length);
                        this.f21015.put(strSubstring, c7240);
                        this.f21016.put(strSubstring.toLowerCase(Locale.ENGLISH), c7240);
                    }
                    c7240.m10879(str);
                }
            }
        }

        public C7239(InterfaceC7284<AbstractC7191> interfaceC7284, String str) {
            this.f21012 = interfaceC7284;
            this.f21013 = str;
        }

        public String toString() {
            return this.f21013;
        }

        /* JADX WARN: Multi-variable type inference failed */
        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            int i2;
            int length = charSequence.length();
            if (i > length) {
                throw new IndexOutOfBoundsException();
            }
            if (i == length) {
                return ~i;
            }
            char cCharAt = charSequence.charAt(i);
            String str = null;
            Object[] objArr = 0;
            if (cCharAt == '+' || cCharAt == '-') {
                if (c7243 == null) {
                    throw null;
                }
                C7243 c72432 = new C7243(c7243);
                int iMo10867 = C7232.f20990.mo10867(c72432, charSequence, i);
                if (iMo10867 < 0) {
                    return iMo10867;
                }
                c7243.m10883(C7192.m10740((int) c72432.m10881(EnumC7259.OFFSET_SECONDS).longValue()));
                return iMo10867;
            }
            int i3 = i + 2;
            if (length >= i3) {
                char cCharAt2 = charSequence.charAt(i + 1);
                if (c7243.m10885(cCharAt, 'U') && c7243.m10885(cCharAt2, 'T')) {
                    int i4 = i + 3;
                    return (length < i4 || !c7243.m10885(charSequence.charAt(i3), 'C')) ? m10877(c7243, charSequence, i, i3) : m10877(c7243, charSequence, i, i4);
                }
                if (c7243.m10885(cCharAt, 'G') && length >= (i2 = i + 3) && c7243.m10885(cCharAt2, 'M') && c7243.m10885(charSequence.charAt(i3), 'T')) {
                    return m10877(c7243, charSequence, i, i2);
                }
            }
            Set<String> setUnmodifiableSet = Collections.unmodifiableSet(AbstractC7300.f21202.keySet());
            int size = setUnmodifiableSet.size();
            Map.Entry<Integer, C7240> simpleImmutableEntry = f21011;
            if (simpleImmutableEntry == null || simpleImmutableEntry.getKey().intValue() != size) {
                synchronized (this) {
                    simpleImmutableEntry = f21011;
                    if (simpleImmutableEntry == null || simpleImmutableEntry.getKey().intValue() != size) {
                        Integer numValueOf = Integer.valueOf(size);
                        ArrayList arrayList = new ArrayList(setUnmodifiableSet);
                        Collections.sort(arrayList, C7221.f20965);
                        C7240 c7240 = new C7240(((String) arrayList.get(0)).length(), objArr == true ? 1 : 0);
                        Iterator it = arrayList.iterator();
                        while (it.hasNext()) {
                            c7240.m10879((String) it.next());
                        }
                        simpleImmutableEntry = new AbstractMap.SimpleImmutableEntry<>(numValueOf, c7240);
                        f21011 = simpleImmutableEntry;
                    }
                }
            }
            C7240 value = simpleImmutableEntry.getValue();
            String str2 = null;
            while (value != null) {
                int i5 = value.f21014 + i;
                if (i5 > length) {
                    break;
                }
                String string = charSequence.subSequence(i, i5).toString();
                value = c7243.f21023 ? value.f21015.get(string) : value.f21016.get(string.toString().toLowerCase(Locale.ENGLISH));
                str2 = str;
                str = string;
            }
            AbstractC7191 abstractC7191M10878 = m10878(setUnmodifiableSet, str, c7243.f21023);
            if (abstractC7191M10878 == null) {
                abstractC7191M10878 = m10878(setUnmodifiableSet, str2, c7243.f21023);
                if (abstractC7191M10878 == null) {
                    if (!c7243.m10885(cCharAt, 'Z')) {
                        return ~i;
                    }
                    c7243.m10883(C7192.f20852);
                    return i + 1;
                }
                str = str2;
            }
            c7243.m10883(abstractC7191M10878);
            return str.length() + i;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final int m10877(C7243 c7243, CharSequence charSequence, int i, int i2) {
            String upperCase = charSequence.subSequence(i, i2).toString().toUpperCase();
            if (c7243 == null) {
                throw null;
            }
            C7243 c72432 = new C7243(c7243);
            if (i2 < charSequence.length() && c7243.m10885(charSequence.charAt(i2), 'Z')) {
                c7243.m10883(AbstractC7191.m10732(upperCase, C7192.f20852));
                return i2;
            }
            int iMo10867 = C7232.f20990.mo10867(c72432, charSequence, i2);
            if (iMo10867 < 0) {
                c7243.m10883(AbstractC7191.m10732(upperCase, C7192.f20852));
                return i2;
            }
            c7243.m10883(AbstractC7191.m10732(upperCase, C7192.m10740((int) c72432.m10881(EnumC7259.OFFSET_SECONDS).longValue())));
            return iMo10867;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final AbstractC7191 m10878(Set<String> set, String str, boolean z) {
            if (str == null) {
                return null;
            }
            if (z) {
                if (set.contains(str)) {
                    return AbstractC7191.m10731(str);
                }
                return null;
            }
            for (String str2 : set) {
                if (str2.equalsIgnoreCase(str)) {
                    return AbstractC7191.m10731(str2);
                }
            }
            return null;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            AbstractC7191 abstractC7191 = (AbstractC7191) c7246.m10888(this.f21012);
            if (abstractC7191 == null) {
                return false;
            }
            sb.append(abstractC7191.mo10737());
            return true;
        }
    }

    /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ސ, reason: contains not printable characters */
    public static final class C7241 implements InterfaceC7227 {

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public static final Comparator<String> f21017 = new C7242();

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final EnumC7255 f21018;

        /* JADX INFO: renamed from: ޒ.ށ.֏.ޑ.ހ$ސ$֏, reason: contains not printable characters */
        public class C7242 implements Comparator<String> {
            @Override // java.util.Comparator
            public int compare(String str, String str2) {
                String str3 = str;
                String str4 = str2;
                int length = str4.length() - str3.length();
                return length == 0 ? str3.compareTo(str4) : length;
            }
        }

        public C7241(EnumC7255 enumC7255) {
            C7158.m10540(enumC7255, "textStyle");
            this.f21018 = enumC7255;
        }

        public String toString() {
            StringBuilder sbM4889 = C2803.m4889("ZoneText(");
            sbM4889.append(this.f21018);
            sbM4889.append(")");
            return sbM4889.toString();
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public int mo10867(C7243 c7243, CharSequence charSequence, int i) {
            TreeMap treeMap = new TreeMap(f21017);
            for (String str : (HashSet) AbstractC7191.m10734()) {
                treeMap.put(str, str);
                TimeZone timeZone = TimeZone.getTimeZone(str);
                EnumC7255 enumC7255 = this.f21018;
                if (enumC7255 == null) {
                    throw null;
                }
                int i2 = EnumC7255.values()[enumC7255.ordinal() & (-2)] == EnumC7255.FULL ? 1 : 0;
                String displayName = timeZone.getDisplayName(false, i2, c7243.f21019);
                if (str.startsWith("Etc/") || (!displayName.startsWith("GMT+") && !displayName.startsWith("GMT+"))) {
                    treeMap.put(displayName, str);
                }
                String displayName2 = timeZone.getDisplayName(true, i2, c7243.f21019);
                if (str.startsWith("Etc/") || (!displayName2.startsWith("GMT+") && !displayName2.startsWith("GMT+"))) {
                    treeMap.put(displayName2, str);
                }
            }
            for (Map.Entry entry : treeMap.entrySet()) {
                String str2 = (String) entry.getKey();
                if (c7243.m10886(charSequence, i, str2, 0, str2.length())) {
                    c7243.m10883(AbstractC7191.m10731((String) entry.getValue()));
                    return str2.length() + i;
                }
            }
            return ~i;
        }

        @Override // p463.p484.p485.p487.C7221.InterfaceC7227
        /* JADX INFO: renamed from: ֏ */
        public boolean mo10868(C7246 c7246, StringBuilder sb) {
            AbstractC7296 abstractC7296Mo10738;
            AbstractC7191 abstractC7191 = (AbstractC7191) c7246.m10888(C7276.f21139);
            if (abstractC7191 == null) {
                return false;
            }
            try {
                abstractC7296Mo10738 = abstractC7191.mo10738();
            } catch (ZoneRulesException unused) {
            }
            AbstractC7191 abstractC7191Mo10932 = abstractC7296Mo10738.mo10934() ? abstractC7296Mo10738.mo10932(C7177.f20798) : abstractC7191;
            if (abstractC7191Mo10932 instanceof C7192) {
                sb.append(abstractC7191.mo10737());
                return true;
            }
            InterfaceC7270 interfaceC7270 = c7246.f21037;
            boolean zMo10938 = interfaceC7270.mo10595(EnumC7259.INSTANT_SECONDS) ? abstractC7191.mo10738().mo10938(C7177.m10609(interfaceC7270.mo10597(EnumC7259.INSTANT_SECONDS))) : false;
            TimeZone timeZone = TimeZone.getTimeZone(abstractC7191.mo10737());
            EnumC7255 enumC7255 = this.f21018;
            if (enumC7255 == null) {
                throw null;
            }
            sb.append(timeZone.getDisplayName(zMo10938, EnumC7255.values()[enumC7255.ordinal() & (-2)] == EnumC7255.FULL ? 1 : 0, c7246.f21038));
            return true;
        }
    }

    static {
        HashMap map = new HashMap();
        f20964 = map;
        map.put('G', EnumC7259.ERA);
        f20964.put('y', EnumC7259.YEAR_OF_ERA);
        f20964.put('u', EnumC7259.YEAR);
        f20964.put('Q', C7261.f21121);
        f20964.put('q', C7261.f21121);
        f20964.put('M', EnumC7259.MONTH_OF_YEAR);
        f20964.put('L', EnumC7259.MONTH_OF_YEAR);
        f20964.put('D', EnumC7259.DAY_OF_YEAR);
        f20964.put('d', EnumC7259.DAY_OF_MONTH);
        f20964.put('F', EnumC7259.ALIGNED_DAY_OF_WEEK_IN_MONTH);
        f20964.put('E', EnumC7259.DAY_OF_WEEK);
        f20964.put('c', EnumC7259.DAY_OF_WEEK);
        f20964.put('e', EnumC7259.DAY_OF_WEEK);
        f20964.put('a', EnumC7259.AMPM_OF_DAY);
        f20964.put('H', EnumC7259.HOUR_OF_DAY);
        f20964.put('k', EnumC7259.CLOCK_HOUR_OF_DAY);
        f20964.put('K', EnumC7259.HOUR_OF_AMPM);
        f20964.put('h', EnumC7259.CLOCK_HOUR_OF_AMPM);
        f20964.put('m', EnumC7259.MINUTE_OF_HOUR);
        f20964.put('s', EnumC7259.SECOND_OF_MINUTE);
        f20964.put('S', EnumC7259.NANO_OF_SECOND);
        f20964.put('A', EnumC7259.MILLI_OF_DAY);
        f20964.put('n', EnumC7259.NANO_OF_SECOND);
        f20964.put('N', EnumC7259.NANO_OF_DAY);
        f20965 = new C7224();
    }

    public C7221() {
        this.f20966 = this;
        this.f20968 = new ArrayList();
        this.f20972 = -1;
        this.f20967 = null;
        this.f20969 = false;
    }

    public C7221(C7221 c7221, boolean z) {
        this.f20966 = this;
        this.f20968 = new ArrayList();
        this.f20972 = -1;
        this.f20967 = c7221;
        this.f20969 = z;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m10848(InterfaceC7227 interfaceC7227) {
        C7158.m10540(interfaceC7227, "pp");
        C7221 c7221 = this.f20966;
        int i = c7221.f20970;
        if (i > 0) {
            C7233 c7233 = new C7233(interfaceC7227, i, c7221.f20971);
            C7221 c72212 = this.f20966;
            c72212.f20970 = 0;
            c72212.f20971 = (char) 0;
            interfaceC7227 = c7233;
        }
        this.f20966.f20968.add(interfaceC7227);
        this.f20966.f20972 = -1;
        return r4.f20968.size() - 1;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7220 m10849(EnumC7250 enumC7250) {
        C7220 c7220M10864 = m10864();
        C7158.m10540(enumC7250, "resolverStyle");
        return C7158.m10543(c7220M10864.f20959, enumC7250) ? c7220M10864 : new C7220(c7220M10864.f20956, c7220M10864.f20957, c7220M10864.f20958, enumC7250, c7220M10864.f20960, c7220M10864.f20961, c7220M10864.f20962);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10850() {
        C7221 c7221 = this.f20966;
        if (c7221.f20967 == null) {
            throw new IllegalStateException("Cannot call optionalEnd() as there was no previous call to optionalStart()");
        }
        if (c7221.f20968.size() > 0) {
            C7221 c72212 = this.f20966;
            C7226 c7226 = new C7226(c72212.f20968, c72212.f20969);
            this.f20966 = this.f20966.f20967;
            m10848(c7226);
        } else {
            this.f20966 = this.f20966.f20967;
        }
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10851(char c) {
        m10848(new C7225(c));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10852(String str) {
        C7158.m10540(str, "literal");
        if (str.length() > 0) {
            if (str.length() == 1) {
                m10848(new C7225(str.charAt(0)));
            } else {
                m10848(new C7236(str));
            }
        }
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10853(String str, String str2) {
        m10848(new C7232(str2, str));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10854(C7220 c7220) {
        C7158.m10540(c7220, "formatter");
        C7226 c7226 = c7220.f20956;
        if (c7226.f20976) {
            c7226 = new C7226(c7226.f20975, false);
        }
        m10848(c7226);
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C7221 m10855(C7231 c7231) {
        C7231 c7231Mo10871;
        C7221 c7221 = this.f20966;
        int i = c7221.f20972;
        if (i < 0 || !(c7221.f20968.get(i) instanceof C7231)) {
            this.f20966.f20972 = m10848((InterfaceC7227) c7231);
        } else {
            C7221 c72212 = this.f20966;
            int i2 = c72212.f20972;
            C7231 c72312 = (C7231) c72212.f20968.get(i2);
            int i3 = c7231.f20985;
            int i4 = c7231.f20986;
            if (i3 == i4 && c7231.f20987 == EnumC7251.NOT_NEGATIVE) {
                c7231Mo10871 = c72312.mo10872(i4);
                m10848((InterfaceC7227) c7231.mo10871());
                this.f20966.f20972 = i2;
            } else {
                c7231Mo10871 = c72312.mo10871();
                this.f20966.f20972 = m10848((InterfaceC7227) c7231);
            }
            this.f20966.f20968.set(i2, c7231Mo10871);
        }
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10856(EnumC7255 enumC7255) {
        C7158.m10540(enumC7255, "style");
        if (enumC7255 != EnumC7255.FULL && enumC7255 != EnumC7255.SHORT) {
            throw new IllegalArgumentException("Style must be either full or short");
        }
        m10848(new C7230(enumC7255));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10857(InterfaceC7275 interfaceC7275) {
        C7158.m10540(interfaceC7275, "field");
        m10855(new C7231(interfaceC7275, 1, 19, EnumC7251.NORMAL));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10858(InterfaceC7275 interfaceC7275, int i) {
        C7158.m10540(interfaceC7275, "field");
        if (i < 1 || i > 19) {
            throw new IllegalArgumentException(C2803.m4871("The width must be from 1 to 19 inclusive but was ", i));
        }
        m10855(new C7231(interfaceC7275, i, i, EnumC7251.NOT_NEGATIVE));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10859(InterfaceC7275 interfaceC7275, int i, int i2, EnumC7251 enumC7251) {
        if (i == i2 && enumC7251 == EnumC7251.NOT_NEGATIVE) {
            m10858(interfaceC7275, i2);
            return this;
        }
        C7158.m10540(interfaceC7275, "field");
        C7158.m10540(enumC7251, "signStyle");
        if (i < 1 || i > 19) {
            throw new IllegalArgumentException(C2803.m4871("The minimum width must be from 1 to 19 inclusive but was ", i));
        }
        if (i2 < 1 || i2 > 19) {
            throw new IllegalArgumentException(C2803.m4871("The maximum width must be from 1 to 19 inclusive but was ", i2));
        }
        if (i2 < i) {
            throw new IllegalArgumentException(C2803.m4873("The maximum width must exceed or equal the minimum width but ", i2, " < ", i));
        }
        m10855(new C7231(interfaceC7275, i, i2, enumC7251));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10860(InterfaceC7275 interfaceC7275, int i, int i2, boolean z) {
        m10848(new C7228(interfaceC7275, i, i2, z));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10861(InterfaceC7275 interfaceC7275, Map<Long, String> map) {
        C7158.m10540(interfaceC7275, "field");
        C7158.m10540(map, "textLookup");
        m10848(new C7237(interfaceC7275, EnumC7255.FULL, new C7223(this, new C7252.C7254(Collections.singletonMap(EnumC7255.FULL, new LinkedHashMap(map))))));
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C7221 m10862(InterfaceC7275 interfaceC7275, EnumC7255 enumC7255) {
        C7158.m10540(interfaceC7275, "field");
        C7158.m10540(enumC7255, "textStyle");
        m10848(new C7237(interfaceC7275, enumC7255, AbstractC7247.m10890()));
        return this;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public C7221 m10863() {
        C7221 c7221 = this.f20966;
        c7221.f20972 = -1;
        this.f20966 = new C7221(c7221, true);
        return this;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public C7220 m10864() {
        Locale locale = Locale.getDefault();
        C7158.m10540(locale, "locale");
        while (this.f20966.f20967 != null) {
            m10850();
        }
        return new C7220(new C7226(this.f20968, false), locale, C7249.f21043, EnumC7250.SMART, null, null, null);
    }
}
