content: package kotlin.text;
  
  import java.math.BigDecimal;
  import java.math.BigInteger;
  import java.math.MathContext;
  import kotlin.Metadata;
  import kotlin.jvm.functions.Function1;
  import kotlin.jvm.internal.Intrinsics;
  import mt.Log1F380D;
  
  @Metadata(d1 = {"\u0000Z\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0005\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\u0004\n\u0002\u0010\t\n\u0000\n\u0002\u0010\n\n\u0002\b\u0002\u001a4\u0010\u0000\u001a\u0004\u0018\u0001H\u0001\"\u0004\b\u0000\u0010\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u0002H\u00010\u0005H\b¢\u0006\u0004\b\u0006\u0010\u0007\u001a\r\u0010\b\u001a\u00020\t*\u00020\u0003H\b\u001a\u0015\u0010\b\u001a\u00020\t*\u00020\u00032\u0006\u0010\n\u001a\u00020\u000bH\b\u001a\u000e\u0010\f\u001a\u0004\u0018\u00010\t*\u00020\u0003H\u0007\u001a\u0016\u0010\f\u001a\u0004\u0018\u00010\t*\u00020\u00032\u0006\u0010\n\u001a\u00020\u000bH\u0007\u001a\r\u0010\r\u001a\u00020\u000e*\u00020\u0003H\b\u001a\u0015\u0010\r\u001a\u00020\u000e*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\u000e\u0010\u0011\u001a\u0004\u0018\u00010\u000e*\u00020\u0003H\u0007\u001a\u0016\u0010\u0011\u001a\u0004\u0018\u00010\u000e*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0007\u001a\r\u0010\u0012\u001a\u00020\u0013*\u00020\u0003H\b\u001a\u0014\u0010\u0012\u001a\u00020\u0013*\u0004\u0018\u00010\u0003H\b¢\u0006\u0002\b\u0014\u001a\r\u0010\u0015\u001a\u00020\u0016*\u00020\u0003H\b\u001a\u0015\u0010\u0015\u001a\u00020\u0016*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\r\u0010\u0017\u001a\u00020\u0018*\u00020\u0003H\b\u001a\u0013\u0010\u0019\u001a\u0004\u0018\u00010\u0018*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u001a\u001a\r\u0010\u001b\u001a\u00020\u001c*\u00020\u0003H\b\u001a\u0013\u0010\u001d\u001a\u0004\u0018\u00010\u001c*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u001e\u001a\r\u0010\u001f\u001a\u00020\u0010*\u00020\u0003H\b\u001a\u0015\u0010\u001f\u001a\u00020\u0010*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\r\u0010 \u001a\u00020!*\u00020\u0003H\b\u001a\u0015\u0010 \u001a\u00020!*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\r\u0010\"\u001a\u00020#*\u00020\u0003H\b\u001a\u0015\u0010\"\u001a\u00020#*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\u0015\u0010$\u001a\u00020\u0003*\u00020\u00162\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\u0015\u0010$\u001a\u00020\u0003*\u00020\u00102\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\u0015\u0010$\u001a\u00020\u0003*\u00020!2\u0006\u0010\u000f\u001a\u00020\u0010H\b\u001a\u0015\u0010$\u001a\u00020\u0003*\u00020#2\u0006\u0010\u000f\u001a\u00020\u0010H\b¨\u0006%"}, d2 = {"screenFloatValue", "T", "str", "", "parse", "Lkotlin/Function1;", "screenFloatValue$StringsKt__StringNumberConversionsJVMKt", "(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;", "toBigDecimal", "Ljava/math/BigDecimal;", "mathContext", "Ljava/math/MathContext;", "toBigDecimalOrNull", "toBigInteger", "Ljava/math/BigInteger;", "radix", "", "toBigIntegerOrNull", "toBoolean", "", "toBooleanNullable", "toByte", "", "toDouble", "", "toDoubleOrNull", "(Ljava/lang/String;)Ljava/lang/Double;", "toFloat", "", "toFloatOrNull", "(Ljava/lang/String;)Ljava/lang/Float;", "toInt", "toLong", "", "toShort", "", "toString", "kotlin-stdlib"}, k = 5, mv = {1, 7, 1}, xi = 49, xs = "kotlin/text/StringsKt")
  /* compiled from: 015D */
  class StringsKt__StringNumberConversionsJVMKt extends StringsKt__StringBuilderKt {
      private static final <T> T screenFloatValue$StringsKt__StringNumberConversionsJVMKt(String str, Function1<? super String, ? extends T> parse) {
          try {
              if (ScreenFloatValueRegEx.value.matches(str)) {
                  return parse.invoke(str);
              }
              return null;
          } catch (NumberFormatException e) {
              return null;
          }
      }
  
      private static final BigDecimal toBigDecimal(String $this$toBigDecimal) {
          Intrinsics.checkNotNullParameter($this$toBigDecimal, "<this>");
          return new BigDecimal($this$toBigDecimal);
      }
  
      private static final BigDecimal toBigDecimal(String $this$toBigDecimal, MathContext mathContext) {
          Intrinsics.checkNotNullParameter($this$toBigDecimal, "<this>");
          Intrinsics.checkNotNullParameter(mathContext, "mathContext");
          return new BigDecimal($this$toBigDecimal, mathContext);
      }
  
      public static final BigDecimal toBigDecimalOrNull(String $this$toBigDecimalOrNull) {
          Intrinsics.checkNotNullParameter($this$toBigDecimalOrNull, "<this>");
          try {
              if (ScreenFloatValueRegEx.value.matches($this$toBigDecimalOrNull)) {
                  return new BigDecimal($this$toBigDecimalOrNull);
              }
              return null;
          } catch (NumberFormatException e) {
              return null;
          }
      }
  
      public static final BigDecimal toBigDecimalOrNull(String $this$toBigDecimalOrNull, MathContext mathContext) {
          Intrinsics.checkNotNullParameter($this$toBigDecimalOrNull, "<this>");
          Intrinsics.checkNotNullParameter(mathContext, "mathContext");
          try {
              if (ScreenFloatValueRegEx.value.matches($this$toBigDecimalOrNull)) {
                  return new BigDecimal($this$toBigDecimalOrNull, mathContext);
              }
              return null;
          } catch (NumberFormatException e) {
              return null;
          }
      }
  
      private static final BigInteger toBigInteger(String $this$toBigInteger) {
          Intrinsics.checkNotNullParameter($this$toBigInteger, "<this>");
          return new BigInteger($this$toBigInteger);
      }
  
      private static final BigInteger toBigInteger(String $this$toBigInteger, int radix) {
          Intrinsics.checkNotNullParameter($this$toBigInteger, "<this>");
          return new BigInteger($this$toBigInteger, CharsKt.checkRadix(radix));
      }
  
      public static final BigInteger toBigIntegerOrNull(String $this$toBigIntegerOrNull) {
          Intrinsics.checkNotNullParameter($this$toBigIntegerOrNull, "<this>");
          return StringsKt.toBigIntegerOrNull($this$toBigIntegerOrNull, 10);
      }
  
      public static final BigInteger toBigIntegerOrNull(String $this$toBigIntegerOrNull, int radix) {
          Intrinsics.checkNotNullParameter($this$toBigIntegerOrNull, "<this>");
          CharsKt.checkRadix(radix);
          int length = $this$toBigIntegerOrNull.length();
          int i = 0;
          switch (length) {
              case 0:
                  return null;
              case 1:
                  if (CharsKt.digitOf($this$toBigIntegerOrNull.charAt(0), radix) < 0) {
                      return null;
                  }
                  break;
              default:
                  if ($this$toBigIntegerOrNull.charAt(0) == '-') {
                      i = 1;
                  }
                  for (int i2 = i; i2 < length; i2++) {
                      if (CharsKt.digitOf($this$toBigIntegerOrNull.charAt(i2), radix) < 0) {
                          return null;
                      }
                  }
                  break;
          }
          return new BigInteger($this$toBigIntegerOrNull, CharsKt.checkRadix(radix));
      }
  
      private static final boolean toBooleanNullable(String $this$toBoolean) {
          return Boolean.parseBoolean($this$toBoolean);
      }
  
      private static final byte toByte(String $this$toByte) {
          Intrinsics.checkNotNullParameter($this$toByte, "<this>");
          return Byte.parseByte($this$toByte);
      }
  
      private static final byte toByte(String $this$toByte, int radix) {
          Intrinsics.checkNotNullParameter($this$toByte, "<this>");
          return Byte.parseByte($this$toByte, CharsKt.checkRadix(radix));
      }
  
      private static final double toDouble(String $this$toDouble) {
          Intrinsics.checkNotNullParameter($this$toDouble, "<this>");
          return Double.parseDouble($this$toDouble);
      }
  
      public static final Double toDoubleOrNull(String $this$toDoubleOrNull) {
          Intrinsics.checkNotNullParameter($this$toDoubleOrNull, "<this>");
          try {
              if (ScreenFloatValueRegEx.value.matches($this$toDoubleOrNull)) {
                  return Double.valueOf(Double.parseDouble($this$toDoubleOrNull));
              }
              return null;
          } catch (NumberFormatException e) {
              return null;
          }
      }
  
      private static final float toFloat(String $this$toFloat) {
          Intrinsics.checkNotNullParameter($this$toFloat, "<this>");
          return Float.parseFloat($this$toFloat);
      }
  
      public static final Float toFloatOrNull(String $this$toFloatOrNull) {
          Intrinsics.checkNotNullParameter($this$toFloatOrNull, "<this>");
          try {
              if (ScreenFloatValueRegEx.value.matches($this$toFloatOrNull)) {
                  return Float.valueOf(Float.parseFloat($this$toFloatOrNull));
              }
              return null;
          } catch (NumberFormatException e) {
              return null;
          }
      }
  
      private static final int toInt(String $this$toInt) {
          Intrinsics.checkNotNullParameter($this$toInt, "<this>");
          return Integer.parseInt($this$toInt);
      }
  
      private static final int toInt(String $this$toInt, int radix) {
          Intrinsics.checkNotNullParameter($this$toInt, "<this>");
          return Integer.parseInt($this$toInt, CharsKt.checkRadix(radix));
      }
  
      private static final long toLong(String $this$toLong) {
          Intrinsics.checkNotNullParameter($this$toLong, "<this>");
          return Long.parseLong($this$toLong);
      }
  
      private static final long toLong(String $this$toLong, int radix) {
          Intrinsics.checkNotNullParameter($this$toLong, "<this>");
          return Long.parseLong($this$toLong, CharsKt.checkRadix(radix));
      }
  
      private static final short toShort(String $this$toShort) {
          Intrinsics.checkNotNullParameter($this$toShort, "<this>");
          return Short.parseShort($this$toShort);
      }
  
      private static final short toShort(String $this$toShort, int radix) {
          Intrinsics.checkNotNullParameter($this$toShort, "<this>");
          return Short.parseShort($this$toShort, CharsKt.checkRadix(radix));
      }
  
      private static final String toString(byte $this$toString, int radix) {
          String num = Integer.toString($this$toString, CharsKt.checkRadix(CharsKt.checkRadix(radix)));
          Log1F380D.a((Object) num);
          Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
          return num;
      }
  
      private static final String toString(int $this$toString, int radix) {
          String num = Integer.toString($this$toString, CharsKt.checkRadix(radix));
          Log1F380D.a((Object) num);
          Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
          return num;
      }
  
      private static final String toString(long $this$toString, int radix) {
          String l = Long.toString($this$toString, CharsKt.checkRadix(radix));
          Log1F380D.a((Object) l);
          Intrinsics.checkNotNullExpressionValue(l, "toString(this, checkRadix(radix))");
          return l;
      }
  
      private static final String toString(short $this$toString, int radix) {
          String num = Integer.toString($this$toString, CharsKt.checkRadix(CharsKt.checkRadix(radix)));
          Log1F380D.a((Object) num);
          Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
          return num;
      }
  }
  