/* Class459 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public final class Class459 {
	public static int[] anIntArray6405;

	public static boolean method8137(char c) {
		return c >= 'A' && c <= 'Z' || c >= 'a' && c <= 'z';
	}

	static int method8138(CharSequence charsequence, char c) {
		int i = 0;
		int i_0_ = charsequence.length();
		for (int i_1_ = 0; i_1_ < i_0_; i_1_++) {
			if (charsequence.charAt(i_1_) == c)
				i++;
		}
		return i;
	}

	static int method8139(CharSequence charsequence, char c) {
		int i = 0;
		int i_2_ = charsequence.length();
		for (int i_3_ = 0; i_3_ < i_2_; i_3_++) {
			if (charsequence.charAt(i_3_) == c)
				i++;
		}
		return i;
	}

	public static boolean method8140(char c) {
		return c >= '0' && c <= '9';
	}

	public static String method8141(Object[] objects, int i, int i_4_) {
		if (i_4_ == 0)
			return "";
		if (1 == i_4_) {
			CharSequence charsequence = (CharSequence) objects[i];
			if (null == charsequence)
				return "null";
			return charsequence.toString();
		}
		int i_5_ = i + i_4_;
		int i_6_ = 0;
		for (int i_7_ = i; i_7_ < i_5_; i_7_++) {
			CharSequence charsequence = (CharSequence) objects[i_7_];
			if (charsequence == null)
				i_6_ += 4;
			else
				i_6_ += charsequence.length();
		}
		StringBuilder stringbuilder = new StringBuilder(i_6_);
		for (int i_8_ = i; i_8_ < i_5_; i_8_++) {
			CharSequence charsequence = (CharSequence) objects[i_8_];
			if (charsequence == null)
				stringbuilder.append("null");
			else
				stringbuilder.append(charsequence);
		}
		return stringbuilder.toString();
	}

	public static int method8142(CharSequence charsequence) {
		int i = charsequence.length();
		int i_9_ = 0;
		for (int i_10_ = 0; i_10_ < i; i_10_++)
			i_9_ = ((i_9_ << 5) - i_9_ + Class394.method7136(charsequence.charAt(i_10_), -78827043));
		return i_9_;
	}

	public static String method8143(Object[] objects, int i, int i_11_) {
		if (i_11_ == 0)
			return "";
		if (1 == i_11_) {
			CharSequence charsequence = (CharSequence) objects[i];
			if (null == charsequence)
				return "null";
			return charsequence.toString();
		}
		int i_12_ = i + i_11_;
		int i_13_ = 0;
		for (int i_14_ = i; i_14_ < i_12_; i_14_++) {
			CharSequence charsequence = (CharSequence) objects[i_14_];
			if (charsequence == null)
				i_13_ += 4;
			else
				i_13_ += charsequence.length();
		}
		StringBuilder stringbuilder = new StringBuilder(i_13_);
		for (int i_15_ = i; i_15_ < i_12_; i_15_++) {
			CharSequence charsequence = (CharSequence) objects[i_15_];
			if (charsequence == null)
				stringbuilder.append("null");
			else
				stringbuilder.append(charsequence);
		}
		return stringbuilder.toString();
	}

	public static boolean method8144(CharSequence charsequence) {
		return Class21.method931(charsequence, 10, true, (byte) 1);
	}

	static boolean method8145(CharSequence charsequence, int i, boolean bool) {
		if (i < 2 || i > 36)
			throw new IllegalArgumentException(new StringBuilder().append("").append(i).toString());
		boolean bool_16_ = false;
		boolean bool_17_ = false;
		int i_18_ = 0;
		int i_19_ = charsequence.length();
		for (int i_20_ = 0; i_20_ < i_19_; i_20_++) {
			int i_21_ = charsequence.charAt(i_20_);
			if (0 == i_20_) {
				if (45 == i_21_) {
					bool_16_ = true;
					continue;
				}
				if (i_21_ == 43 && bool)
					continue;
			}
			if (i_21_ >= 48 && i_21_ <= 57)
				i_21_ -= 48;
			else if (i_21_ >= 65 && i_21_ <= 90)
				i_21_ -= 55;
			else if (i_21_ >= 97 && i_21_ <= 122)
				i_21_ -= 87;
			else
				return false;
			if (i_21_ >= i)
				return false;
			if (bool_16_)
				i_21_ = -i_21_;
			int i_22_ = i_21_ + i * i_18_;
			if (i_22_ / i != i_18_)
				return false;
			i_18_ = i_22_;
			bool_17_ = true;
		}
		return bool_17_;
	}

	static boolean method8146(CharSequence charsequence, int i, boolean bool) {
		if (i < 2 || i > 36)
			throw new IllegalArgumentException(new StringBuilder().append("").append(i).toString());
		boolean bool_23_ = false;
		boolean bool_24_ = false;
		int i_25_ = 0;
		int i_26_ = charsequence.length();
		for (int i_27_ = 0; i_27_ < i_26_; i_27_++) {
			int i_28_ = charsequence.charAt(i_27_);
			if (0 == i_27_) {
				if (45 == i_28_) {
					bool_23_ = true;
					continue;
				}
				if (i_28_ == 43 && bool)
					continue;
			}
			if (i_28_ >= 48 && i_28_ <= 57)
				i_28_ -= 48;
			else if (i_28_ >= 65 && i_28_ <= 90)
				i_28_ -= 55;
			else if (i_28_ >= 97 && i_28_ <= 122)
				i_28_ -= 87;
			else
				return false;
			if (i_28_ >= i)
				return false;
			if (bool_23_)
				i_28_ = -i_28_;
			int i_29_ = i_28_ + i * i_25_;
			if (i_29_ / i != i_25_)
				return false;
			i_25_ = i_29_;
			bool_24_ = true;
		}
		return bool_24_;
	}

	public static int method8147(CharSequence charsequence) {
		return Class178.method3839(charsequence, 10, true, 32888);
	}

	public static String method8148(int i, boolean bool) {
		if (!bool || i < 0)
			return Integer.toString(i);
		return Class537.method11814(i, 10, bool, (byte) 8);
	}

	public static String method8149(int i, boolean bool) {
		if (!bool || i < 0)
			return Integer.toString(i);
		return Class537.method11814(i, 10, bool, (byte) 8);
	}

	static String method8150(int i, int i_30_, boolean bool) {
		if (i_30_ < 2 || i_30_ > 36)
			throw new IllegalArgumentException(new StringBuilder().append("").append(i_30_).toString());
		if (!bool || i < 0)
			return Integer.toString(i, i_30_);
		int i_31_ = 2;
		int i_32_ = i / i_30_;
		while (i_32_ != 0) {
			i_32_ /= i_30_;
			i_31_++;
		}
		char[] cs = new char[i_31_];
		cs[0] = '+';
		for (int i_33_ = i_31_ - 1; i_33_ > 0; i_33_--) {
			int i_34_ = i;
			i /= i_30_;
			int i_35_ = i_34_ - i * i_30_;
			if (i_35_ >= 10)
				cs[i_33_] = (char) (i_35_ + 87);
			else
				cs[i_33_] = (char) (48 + i_35_);
		}
		return new String(cs);
	}

	public static String method8151(String string, char c, String string_36_) {
		int i = string.length();
		int i_37_ = string_36_.length();
		int i_38_ = i;
		int i_39_ = i_37_ - 1;
		if (i_39_ != 0) {
			int i_40_ = 0;
			for (;;) {
				i_40_ = string.indexOf(c, i_40_);
				if (i_40_ < 0)
					break;
				i_40_++;
				i_38_ += i_39_;
			}
		}
		StringBuilder stringbuilder = new StringBuilder(i_38_);
		int i_41_ = 0;
		for (;;) {
			int i_42_ = string.indexOf(c, i_41_);
			if (i_42_ < 0)
				break;
			stringbuilder.append(string.substring(i_41_, i_42_));
			stringbuilder.append(string_36_);
			i_41_ = i_42_ + 1;
		}
		stringbuilder.append(string.substring(i_41_));
		return stringbuilder.toString();
	}

	public static int method8152(CharSequence charsequence, CharSequence charsequence_43_) {
		int i = charsequence.length();
		int i_44_ = charsequence_43_.length();
		if (0 == i)
			return i_44_;
		if (i_44_ == 0)
			return i;
		int[] is = new int[1 + i];
		int[] is_45_ = new int[1 + i];
		for (int i_46_ = 0; i_46_ <= i; i_46_++)
			is[i_46_] = i_46_;
		for (int i_47_ = 1; i_47_ <= i_44_; i_47_++) {
			is_45_[0] = i_47_;
			char c = charsequence_43_.charAt(i_47_ - 1);
			for (int i_48_ = 1; i_48_ <= i; i_48_++)
				is_45_[i_48_] = Math.min(Math.min(1 + is_45_[i_48_ - 1], is[i_48_] + 1), (is[i_48_ - 1] + (charsequence.charAt(i_48_ - 1) == c ? 0 : 1)));
			int[] is_49_ = is;
			is = is_45_;
			is_45_ = is_49_;
		}
		return is[i];
	}

	Class459() throws Throwable {
		throw new Error();
	}

	public static int method8153(CharSequence charsequence) {
		int i = charsequence.length();
		int i_50_ = 0;
		for (int i_51_ = 0; i_51_ < i; i_51_++)
			i_50_ = (i_50_ << 5) - i_50_ + charsequence.charAt(i_51_);
		return i_50_;
	}

	public static long method8154(CharSequence charsequence) {
		int i = charsequence.length();
		long l = 0L;
		for (int i_52_ = 0; i_52_ < i; i_52_++)
			l = (l << 5) - l + (long) charsequence.charAt(i_52_);
		return l;
	}

	public static String method8155(String string, char c, String string_53_) {
		int i = string.length();
		int i_54_ = string_53_.length();
		int i_55_ = i;
		int i_56_ = i_54_ - 1;
		if (i_56_ != 0) {
			int i_57_ = 0;
			for (;;) {
				i_57_ = string.indexOf(c, i_57_);
				if (i_57_ < 0)
					break;
				i_57_++;
				i_55_ += i_56_;
			}
		}
		StringBuilder stringbuilder = new StringBuilder(i_55_);
		int i_58_ = 0;
		for (;;) {
			int i_59_ = string.indexOf(c, i_58_);
			if (i_59_ < 0)
				break;
			stringbuilder.append(string.substring(i_58_, i_59_));
			stringbuilder.append(string_53_);
			i_58_ = i_59_ + 1;
		}
		stringbuilder.append(string.substring(i_58_));
		return stringbuilder.toString();
	}

	public static long method8156(CharSequence charsequence) {
		int i = charsequence.length();
		long l = 0L;
		for (int i_60_ = 0; i_60_ < i; i_60_++)
			l = (l << 5) - l + (long) charsequence.charAt(i_60_);
		return l;
	}

	public static String method8157(Object[] objects, int i, int i_61_) {
		if (i_61_ == 0)
			return "";
		if (1 == i_61_) {
			CharSequence charsequence = (CharSequence) objects[i];
			if (null == charsequence)
				return "null";
			return charsequence.toString();
		}
		int i_62_ = i + i_61_;
		int i_63_ = 0;
		for (int i_64_ = i; i_64_ < i_62_; i_64_++) {
			CharSequence charsequence = (CharSequence) objects[i_64_];
			if (charsequence == null)
				i_63_ += 4;
			else
				i_63_ += charsequence.length();
		}
		StringBuilder stringbuilder = new StringBuilder(i_63_);
		for (int i_65_ = i; i_65_ < i_62_; i_65_++) {
			CharSequence charsequence = (CharSequence) objects[i_65_];
			if (charsequence == null)
				stringbuilder.append("null");
			else
				stringbuilder.append(charsequence);
		}
		return stringbuilder.toString();
	}

	public static int method8158(CharSequence charsequence, CharSequence charsequence_66_) {
		int i = charsequence.length();
		int i_67_ = charsequence_66_.length();
		if (0 == i)
			return i_67_;
		if (i_67_ == 0)
			return i;
		int[] is = new int[1 + i];
		int[] is_68_ = new int[1 + i];
		for (int i_69_ = 0; i_69_ <= i; i_69_++)
			is[i_69_] = i_69_;
		for (int i_70_ = 1; i_70_ <= i_67_; i_70_++) {
			is_68_[0] = i_70_;
			char c = charsequence_66_.charAt(i_70_ - 1);
			for (int i_71_ = 1; i_71_ <= i; i_71_++)
				is_68_[i_71_] = Math.min(Math.min(1 + is_68_[i_71_ - 1], is[i_71_] + 1), (is[i_71_ - 1] + (charsequence.charAt(i_71_ - 1) == c ? 0 : 1)));
			int[] is_72_ = is;
			is = is_68_;
			is_68_ = is_72_;
		}
		return is[i];
	}

	static String method8159(int i, int i_73_, boolean bool) {
		if (i_73_ < 2 || i_73_ > 36)
			throw new IllegalArgumentException(new StringBuilder().append("").append(i_73_).toString());
		if (!bool || i < 0)
			return Integer.toString(i, i_73_);
		int i_74_ = 2;
		int i_75_ = i / i_73_;
		while (i_75_ != 0) {
			i_75_ /= i_73_;
			i_74_++;
		}
		char[] cs = new char[i_74_];
		cs[0] = '+';
		for (int i_76_ = i_74_ - 1; i_76_ > 0; i_76_--) {
			int i_77_ = i;
			i /= i_73_;
			int i_78_ = i_77_ - i * i_73_;
			if (i_78_ >= 10)
				cs[i_76_] = (char) (i_78_ + 87);
			else
				cs[i_76_] = (char) (48 + i_78_);
		}
		return new String(cs);
	}

	public static long method8160(CharSequence charsequence) {
		int i = charsequence.length();
		long l = 0L;
		for (int i_79_ = 0; i_79_ < i; i_79_++)
			l = (l << 5) - l + (long) charsequence.charAt(i_79_);
		return l;
	}

	public static int method8161(CharSequence charsequence, CharSequence charsequence_80_) {
		int i = charsequence.length();
		int i_81_ = charsequence_80_.length();
		if (0 == i)
			return i_81_;
		if (i_81_ == 0)
			return i;
		int[] is = new int[1 + i];
		int[] is_82_ = new int[1 + i];
		for (int i_83_ = 0; i_83_ <= i; i_83_++)
			is[i_83_] = i_83_;
		for (int i_84_ = 1; i_84_ <= i_81_; i_84_++) {
			is_82_[0] = i_84_;
			char c = charsequence_80_.charAt(i_84_ - 1);
			for (int i_85_ = 1; i_85_ <= i; i_85_++)
				is_82_[i_85_] = Math.min(Math.min(1 + is_82_[i_85_ - 1], is[i_85_] + 1), (is[i_85_ - 1] + (charsequence.charAt(i_85_ - 1) == c ? 0 : 1)));
			int[] is_86_ = is;
			is = is_82_;
			is_82_ = is_86_;
		}
		return is[i];
	}

	public static boolean method8162(char c) {
		return c >= '0' && c <= '9';
	}

	public static long method8163(CharSequence charsequence) {
		int i = charsequence.length();
		long l = 0L;
		for (int i_87_ = 0; i_87_ < i; i_87_++)
			l = (l << 5) - l + (long) charsequence.charAt(i_87_);
		return l;
	}

	public static boolean method8164(char c) {
		return c >= '0' && c <= '9';
	}

	static String method8165(int i, int i_88_, boolean bool) {
		if (i_88_ < 2 || i_88_ > 36)
			throw new IllegalArgumentException(new StringBuilder().append("").append(i_88_).toString());
		if (!bool || i < 0)
			return Integer.toString(i, i_88_);
		int i_89_ = 2;
		int i_90_ = i / i_88_;
		while (i_90_ != 0) {
			i_90_ /= i_88_;
			i_89_++;
		}
		char[] cs = new char[i_89_];
		cs[0] = '+';
		for (int i_91_ = i_89_ - 1; i_91_ > 0; i_91_--) {
			int i_92_ = i;
			i /= i_88_;
			int i_93_ = i_92_ - i * i_88_;
			if (i_93_ >= 10)
				cs[i_91_] = (char) (i_93_ + 87);
			else
				cs[i_91_] = (char) (48 + i_93_);
		}
		return new String(cs);
	}

	public static String method8166(String string, char c, String string_94_) {
		int i = string.length();
		int i_95_ = string_94_.length();
		int i_96_ = i;
		int i_97_ = i_95_ - 1;
		if (i_97_ != 0) {
			int i_98_ = 0;
			for (;;) {
				i_98_ = string.indexOf(c, i_98_);
				if (i_98_ < 0)
					break;
				i_98_++;
				i_96_ += i_97_;
			}
		}
		StringBuilder stringbuilder = new StringBuilder(i_96_);
		int i_99_ = 0;
		for (;;) {
			int i_100_ = string.indexOf(c, i_99_);
			if (i_100_ < 0)
				break;
			stringbuilder.append(string.substring(i_99_, i_100_));
			stringbuilder.append(string_94_);
			i_99_ = i_100_ + 1;
		}
		stringbuilder.append(string.substring(i_99_));
		return stringbuilder.toString();
	}

	static int method8167(CharSequence charsequence, char c) {
		int i = 0;
		int i_101_ = charsequence.length();
		for (int i_102_ = 0; i_102_ < i_101_; i_102_++) {
			if (charsequence.charAt(i_102_) == c)
				i++;
		}
		return i;
	}

	public static String method8168(String string, char c, String string_103_) {
		int i = string.length();
		int i_104_ = string_103_.length();
		int i_105_ = i;
		int i_106_ = i_104_ - 1;
		if (i_106_ != 0) {
			int i_107_ = 0;
			for (;;) {
				i_107_ = string.indexOf(c, i_107_);
				if (i_107_ < 0)
					break;
				i_107_++;
				i_105_ += i_106_;
			}
		}
		StringBuilder stringbuilder = new StringBuilder(i_105_);
		int i_108_ = 0;
		for (;;) {
			int i_109_ = string.indexOf(c, i_108_);
			if (i_109_ < 0)
				break;
			stringbuilder.append(string.substring(i_108_, i_109_));
			stringbuilder.append(string_103_);
			i_108_ = i_109_ + 1;
		}
		stringbuilder.append(string.substring(i_108_));
		return stringbuilder.toString();
	}

	public static String[] method8169(String string, char c) {
		int i = Class241.method4980(string, c, (byte) 89);
		String[] strings = new String[1 + i];
		int i_110_ = 0;
		int i_111_ = 0;
		for (int i_112_ = 0; i_112_ < i; i_112_++) {
			int i_113_;
			for (i_113_ = i_111_; string.charAt(i_113_) != c; i_113_++) {
				/* empty */
			}
			strings[i_110_++] = string.substring(i_111_, i_113_);
			i_111_ = i_113_ + 1;
		}
		strings[i] = string.substring(i_111_);
		return strings;
	}

	public static boolean method8170(char c) {
		if (c >= ' ' && c <= '~')
			return true;
		if (c >= '\u00a0' && c <= '\u00ff')
			return true;
		if (c == '\u20ac' || '\u0152' == c || '\u2014' == c || c == '\u0153' || '\u0178' == c)
			return true;
		return false;
	}

	public static boolean method8171(char c) {
		if (c >= ' ' && c <= '~')
			return true;
		if (c >= '\u00a0' && c <= '\u00ff')
			return true;
		if (c == '\u20ac' || '\u0152' == c || '\u2014' == c || c == '\u0153' || '\u0178' == c)
			return true;
		return false;
	}

	static final void method8172(Class35 class35, Class118 class118, Class477 class477, int i) {
		String string = (String) (((Class477) class477).anObjectArray6499[(((Class477) class477).anInt6500 -= 1803340247) * -443336217]);
		int[] is = Class259.method5137(string, class477, -1796057869);
		if (null != is)
			string = string.substring(0, string.length() - 1);
		class35.anObjectArray572 = Class188.method3960(string, class477, (byte) 4);
		class35.anIntArray554 = is;
		class35.aBool448 = true;
	}
}
