import java.applet.Applet;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.StringWriter;
import java.net.URL;

public class RuntimeException_Sub3 extends RuntimeException {

   Throwable aThrowable10690;
   static long aLong10691;
   public static Applet anApplet10692;
   public static int anInt10693;
   String aString10694;


   public static void method16579(String var0, Throwable var1) {
      try {
         String var2 = "";
         if(var1 != null) {
            var2 = Class225_Sub45_Sub1.method15596(var1, 16711680);
         }

         if(null != var0) {
            if(var1 != null) {
               var2 = var2 + " | ";
            }

            var2 = var2 + var0;
         }

         System.out.println("Error: " + Class381.method6598(var2, "%0a", "\n", -1735113837));
         var2 = Class576.method12225(var2, (byte)-33);
         if(null == anApplet10692) {
            return;
         }

         String var3 = "Unknown";
         String var4 = "1.1";

         try {
            var3 = System.getProperty("java.vendor");
            var4 = System.getProperty("java.version");
         } catch (Exception var7) {
            ;
         }

         URL var5 = new URL(anApplet10692.getCodeBase(), "clienterror.ws?c=" + anInt10693 * -1147308743 + "&cs=" + Class30.anInt368 * 1638081419 + "&u=" + (Exception_Sub3.aString10369 != null?Class576.method12225(Exception_Sub3.aString10369, (byte)49):"" + aLong10691 * -8407962535550029843L) + "&v1=" + Class576.method12225(var3, (byte)56) + "&v2=" + Class576.method12225(var4, (byte)40) + "&e=" + var2);
         DataInputStream var6 = new DataInputStream(var5.openStream());
         var6.read();
         var6.close();
      } catch (Exception var8) {
         var8.printStackTrace();
      }

   }

   public static void method16580(String var0, Throwable var1) {
      try {
         String var2 = "";
         if(var1 != null) {
            var2 = Class225_Sub45_Sub1.method15596(var1, 16711680);
         }

         if(null != var0) {
            if(var1 != null) {
               var2 = var2 + " | ";
            }

            var2 = var2 + var0;
         }

         System.out.println("Error: " + Class381.method6598(var2, "%0a", "\n", -1672961645));
         var2 = Class576.method12225(var2, (byte)-54);
         if(null == anApplet10692) {
            return;
         }

         String var3 = "Unknown";
         String var4 = "1.1";

         try {
            var3 = System.getProperty("java.vendor");
            var4 = System.getProperty("java.version");
         } catch (Exception var7) {
            ;
         }

         URL var5 = new URL(anApplet10692.getCodeBase(), "clienterror.ws?c=" + anInt10693 * -1147308743 + "&cs=" + Class30.anInt368 * 1638081419 + "&u=" + (Exception_Sub3.aString10369 != null?Class576.method12225(Exception_Sub3.aString10369, (byte)6):"" + aLong10691 * -8407962535550029843L) + "&v1=" + Class576.method12225(var3, (byte)70) + "&v2=" + Class576.method12225(var4, (byte)-52) + "&e=" + var2);
         DataInputStream var6 = new DataInputStream(var5.openStream());
         var6.read();
         var6.close();
      } catch (Exception var8) {
         var8.printStackTrace();
      }

   }

   RuntimeException_Sub3(Throwable var1, String var2) {
      this.aString10694 = var2;
      this.aThrowable10690 = var1;
      this.initCause(var1);
   }

   public static void method16581(String var0, Throwable var1) {
      try {
         String var2 = "";
         if(var1 != null) {
            var2 = Class225_Sub45_Sub1.method15596(var1, 16711680);
         }

         if(null != var0) {
            if(var1 != null) {
               var2 = var2 + " | ";
            }

            var2 = var2 + var0;
         }

         System.out.println("Error: " + Class381.method6598(var2, "%0a", "\n", -1829213427));
         var2 = Class576.method12225(var2, (byte)-45);
         if(null == anApplet10692) {
            return;
         }

         String var3 = "Unknown";
         String var4 = "1.1";

         try {
            var3 = System.getProperty("java.vendor");
            var4 = System.getProperty("java.version");
         } catch (Exception var7) {
            ;
         }

         URL var5 = new URL(anApplet10692.getCodeBase(), "clienterror.ws?c=" + anInt10693 * -1147308743 + "&cs=" + Class30.anInt368 * 1638081419 + "&u=" + (Exception_Sub3.aString10369 != null?Class576.method12225(Exception_Sub3.aString10369, (byte)-21):"" + aLong10691 * -8407962535550029843L) + "&v1=" + Class576.method12225(var3, (byte)-63) + "&v2=" + Class576.method12225(var4, (byte)22) + "&e=" + var2);
         DataInputStream var6 = new DataInputStream(var5.openStream());
         var6.read();
         var6.close();
      } catch (Exception var8) {
         var8.printStackTrace();
      }

   }

   static String method16582(Throwable var0) throws IOException {
      String var2;
      if(var0 instanceof RuntimeException_Sub3) {
         RuntimeException_Sub3 var1 = (RuntimeException_Sub3)var0;
         var2 = var1.aString10694 + " | ";
         var0 = var1.aThrowable10690;
      } else {
         var2 = "";
      }

      StringWriter var12 = new StringWriter();
      PrintWriter var3 = new PrintWriter(var12);
      var0.printStackTrace(var3);
      var3.close();
      String var4 = var12.toString();
      BufferedReader var5 = new BufferedReader(new StringReader(var4));
      String var6 = var5.readLine();

      while(true) {
         String var7 = var5.readLine();
         if(var7 == null) {
            var2 = var2 + "| " + var6;
            return var2;
         }

         int var8 = var7.indexOf(40);
         int var9 = var7.indexOf(41, var8 + 1);
         String var10;
         if(var8 != -1) {
            var10 = var7.substring(0, var8);
         } else {
            var10 = var7;
         }

         var10 = var10.trim();
         var10 = var10.substring(var10.lastIndexOf(32) + 1);
         var10 = var10.substring(var10.lastIndexOf(9) + 1);
         var2 = var2 + var10;
         if(-1 != var8 && -1 != var9) {
            int var11 = var7.indexOf(".java:", var8);
            if(var11 >= 0) {
               var2 = var2 + var7.substring(5 + var11, var9);
            }
         }

         var2 = var2 + ' ';
      }
   }

   static final String method16583(String var0, String var1, String var2) {
      for(int var3 = var0.indexOf(var1); var3 != -1; var3 = var0.indexOf(var1, var3 + var2.length())) {
         var0 = var0.substring(0, var3) + var2 + var0.substring(var3 + var1.length());
      }

      return var0;
   }

   static String method16584(Throwable var0) throws IOException {
      String var2;
      if(var0 instanceof RuntimeException_Sub3) {
         RuntimeException_Sub3 var1 = (RuntimeException_Sub3)var0;
         var2 = var1.aString10694 + " | ";
         var0 = var1.aThrowable10690;
      } else {
         var2 = "";
      }

      StringWriter var12 = new StringWriter();
      PrintWriter var3 = new PrintWriter(var12);
      var0.printStackTrace(var3);
      var3.close();
      String var4 = var12.toString();
      BufferedReader var5 = new BufferedReader(new StringReader(var4));
      String var6 = var5.readLine();

      while(true) {
         String var7 = var5.readLine();
         if(var7 == null) {
            var2 = var2 + "| " + var6;
            return var2;
         }

         int var8 = var7.indexOf(40);
         int var9 = var7.indexOf(41, var8 + 1);
         String var10;
         if(var8 != -1) {
            var10 = var7.substring(0, var8);
         } else {
            var10 = var7;
         }

         var10 = var10.trim();
         var10 = var10.substring(var10.lastIndexOf(32) + 1);
         var10 = var10.substring(var10.lastIndexOf(9) + 1);
         var2 = var2 + var10;
         if(-1 != var8 && -1 != var9) {
            int var11 = var7.indexOf(".java:", var8);
            if(var11 >= 0) {
               var2 = var2 + var7.substring(5 + var11, var9);
            }
         }

         var2 = var2 + ' ';
      }
   }

   static String method16585(Throwable var0) throws IOException {
      String var2;
      if(var0 instanceof RuntimeException_Sub3) {
         RuntimeException_Sub3 var1 = (RuntimeException_Sub3)var0;
         var2 = var1.aString10694 + " | ";
         var0 = var1.aThrowable10690;
      } else {
         var2 = "";
      }

      StringWriter var12 = new StringWriter();
      PrintWriter var3 = new PrintWriter(var12);
      var0.printStackTrace(var3);
      var3.close();
      String var4 = var12.toString();
      BufferedReader var5 = new BufferedReader(new StringReader(var4));
      String var6 = var5.readLine();

      while(true) {
         String var7 = var5.readLine();
         if(var7 == null) {
            var2 = var2 + "| " + var6;
            return var2;
         }

         int var8 = var7.indexOf(40);
         int var9 = var7.indexOf(41, var8 + 1);
         String var10;
         if(var8 != -1) {
            var10 = var7.substring(0, var8);
         } else {
            var10 = var7;
         }

         var10 = var10.trim();
         var10 = var10.substring(var10.lastIndexOf(32) + 1);
         var10 = var10.substring(var10.lastIndexOf(9) + 1);
         var2 = var2 + var10;
         if(-1 != var8 && -1 != var9) {
            int var11 = var7.indexOf(".java:", var8);
            if(var11 >= 0) {
               var2 = var2 + var7.substring(5 + var11, var9);
            }
         }

         var2 = var2 + ' ';
      }
   }

   static String method16586(Throwable var0) throws IOException {
      String var2;
      if(var0 instanceof RuntimeException_Sub3) {
         RuntimeException_Sub3 var1 = (RuntimeException_Sub3)var0;
         var2 = var1.aString10694 + " | ";
         var0 = var1.aThrowable10690;
      } else {
         var2 = "";
      }

      StringWriter var12 = new StringWriter();
      PrintWriter var3 = new PrintWriter(var12);
      var0.printStackTrace(var3);
      var3.close();
      String var4 = var12.toString();
      BufferedReader var5 = new BufferedReader(new StringReader(var4));
      String var6 = var5.readLine();

      while(true) {
         String var7 = var5.readLine();
         if(var7 == null) {
            var2 = var2 + "| " + var6;
            return var2;
         }

         int var8 = var7.indexOf(40);
         int var9 = var7.indexOf(41, var8 + 1);
         String var10;
         if(var8 != -1) {
            var10 = var7.substring(0, var8);
         } else {
            var10 = var7;
         }

         var10 = var10.trim();
         var10 = var10.substring(var10.lastIndexOf(32) + 1);
         var10 = var10.substring(var10.lastIndexOf(9) + 1);
         var2 = var2 + var10;
         if(-1 != var8 && -1 != var9) {
            int var11 = var7.indexOf(".java:", var8);
            if(var11 >= 0) {
               var2 = var2 + var7.substring(5 + var11, var9);
            }
         }

         var2 = var2 + ' ';
      }
   }

   static final void method16587(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class124 var3 = Class97.method1903(var2, -1847475041);
      Class121 var4 = Class18.aClass121Array188[var2 >> 16];
      Class357.method6414(var3, var4, var0, 572765968);
   }
}
