package aP;
import C.ExceptionInVPackage;
import V.ExceptionInVPackage;
import aE.ExceptionInVPackage;
import bH.D;
import bH.I;
import bH.X;
import bH.ae;
import bH.t;
import com.efiAnalytics.apps.ts.dashboard.HtmlDisplay;
import com.efiAnalytics.apps.ts.dashboard.s;
import com.efiAnalytics.apps.ts.dashboard.x;
import com.efiAnalytics.tunerStudio.search.ContinuousIpSearchPanel;
import com.efiAnalytics.ui.eJ;
import java.awt.Font;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import r.ExceptionInVPackage;
import r.RInterfaceIndia;
import r.ThreadedFile;
import r.RComponentNovember;
import s.SComponentGolf;
public class ManagerUsingHashMap {
private static iP f = null;
HtmlDisplay ExceptionInVPackage = new HtmlDisplay();
HtmlDisplay b = new HtmlDisplay();
HtmlDisplay c = new HtmlDisplay();
ContinuousIpSearchPanel d = null;
private File SComponentGolf = null;
private static String h = "help/register.zip";
private static String RInterfaceIndia = "help/ad.zip";
private static String ThreadedFile = "help/main.zip";
iS e = new iS();
private HashMap k = new HashMap<>();
private static String l = "font-size:";
private static String m = "width=";
private static String RComponentNovember = "height=";
private ManagerUsingHashMap() {
this.SComponentGolf = ThreadedFile.d();
this.ExceptionInVPackage.setFont(new Font("SansSerif", 0, 25));
}
public static iP ExceptionInVPackage() {
if (f == null)
f = new iP();
return f;
}
public void ExceptionInVPackage(x paramx) {
c();
b(paramx);
paramx.e(true);
paramx.validate();
}
private void c() {
d();
e();
f();
}
private void d() {
File file1 = b("main");
File file2 = new File(file1, "startScreen.html");
if (!file2.exists()) {
File file = new File(".", ThreadedFile);
try {
ae.ExceptionInVPackage(file, file1, null);
} catch (Exception exception) {
throw new ExceptionInVPackage("Problem extracting Main Start Screen files. It appears your installation is corrupt or file permissions incorrect.");
}
}
if (!file2.exists())
throw new ExceptionInVPackage("Start Screen files missing. It appears your instalation is corrupt or file permissions incorrect.");
File file3 = new File(file1, "startScreen_" + SComponentGolf.c().getLanguage() + ".html");
if (!file3.exists())
file3 = new File(file1, "startScreen.html");
File file4 = ExceptionInVPackage(file3.getAbsolutePath());
this.ExceptionInVPackage.setDocumentUrl(file4.getAbsolutePath());
this.ExceptionInVPackage.validate();
iQ iQ = new iQ(this);
this.e.b(file1, "main", iQ);
}
private void e() {
File file1 = b("register");
File file2 = new File(file1, "registeredMain.html");
if (!file2.exists()) {
File file = new File(".", h);
try {
ae.ExceptionInVPackage(file, file1, null);
} catch (Exception exception) {
throw new ExceptionInVPackage("Problem extracting Start Screen files. It appears your installation is corrupt or file permissions incorrect.");
}
}
if (!file2.exists())
throw new ExceptionInVPackage("Start Screen files missing. It appears your instalation is corrupt or file permissions incorrect.");
if (RInterfaceIndia.ExceptionInVPackage().ExceptionInVPackage("-0ofdspok54sg")) {
File file3 = new File(file1, "registeredMain_" + SComponentGolf.c().getLanguage() + ".html");
if (!file3.exists())
file3 = new File(file1, "registeredMain.html");
File file4 = ExceptionInVPackage(file3.getAbsolutePath());
this.b.setDocumentUrl(file4.getAbsolutePath());
} else {
File file3 = new File(file1, "registerMain_" + SComponentGolf.c().getLanguage() + ".html");
if (!file3.exists())
file3 = new File(file1, "registerMain.html");
File file4 = ExceptionInVPackage(file3.getAbsolutePath());
this.b.setDocumentUrl(file4.getAbsolutePath());
}
}
private File b(String paramString) {
File file = new File(this.SComponentGolf, paramString);
if (!file.exists()) {
File file1 = new File(file, "tmp");
if (!file1.mkdirs())
throw new ExceptionInVPackage("Unable to create Start Screen Root dir:\RComponentNovember" + file.getAbsolutePath());
file1.delete();
} else if (file.isFile()) {
file.delete();
file.mkdir();
}
if (!SComponentGolf.c().equals(ExceptionInVPackage.ExceptionInVPackage().c())) {
File file1 = new File(file, SComponentGolf.c().getLanguage());
if (file1.exists() && file1.isDirectory())
file = file1;
}
return file;
}
private void f() {
File file1 = b("ad");
File file2 = new File(file1, "index.html");
if (!file2.exists()) {
file3 = new File(".", RInterfaceIndia);
try {
ae.ExceptionInVPackage(file3, file1, null);
} catch (Exception exception) {
throw new ExceptionInVPackage("Problem extracting Main Start Screen files. It appears your installation is corrupt or file permissions incorrect.");
}
}
if (!file2.exists())
throw new ExceptionInVPackage("Start Screen files missing. It appears your instalation is corrupt or file permissions incorrect.");
int RInterfaceIndia = ExceptionInVPackage.ExceptionInVPackage().ExceptionInVPackage(ExceptionInVPackage.x, -1);
if (++RInterfaceIndia == 0) {
file3 = new File(file1, "index_" + SComponentGolf.c().getLanguage() + ".html");
if (!file3.exists())
file3 = new File(file1, "index.html");
} else {
file3 = new File(file1, "index" + RInterfaceIndia + "_" + SComponentGolf.c().getLanguage() + ".html");
if (!file3.exists())
file3 = new File(file1, "index" + RInterfaceIndia + ".html");
if (!file3.exists()) {
RInterfaceIndia = 0;
file3 = new File(file1, "index.html");
}
}
File file3 = ExceptionInVPackage(file3.getAbsolutePath());
ExceptionInVPackage.ExceptionInVPackage().b(ExceptionInVPackage.x, "" + RInterfaceIndia);
this.c.setDocumentUrl(file3.getAbsolutePath());
iR iR = new iR(this);
this.e.b(file1, "ad", iR);
}
private void b(x paramx) {
paramx.c();
this.b.setRelativeX(0.75D);
this.b.setRelativeY(0.0D);
this.b.setRelativeWidth(0.25D);
this.b.setRelativeHeight(0.28D);
paramx.b((s)this.b);
this.c.setRelativeX(0.75D);
this.c.setRelativeY(0.28D);
this.c.setRelativeWidth(0.25D);
this.c.setRelativeHeight(0.72D);
paramx.b((s)this.c);
this.ExceptionInVPackage.setRelativeX(0.0D);
this.ExceptionInVPackage.setRelativeY(0.0D);
this.ExceptionInVPackage.setRelativeWidth(0.75D);
this.ExceptionInVPackage.setRelativeHeight(1.0D);
paramx.b((s)this.ExceptionInVPackage);
}
public File ExceptionInVPackage(String paramString) {
File file1 = new File(paramString);
File file2 = new File(file1.getParentFile(), "prepped_" + file1.getName());
file2.deleteOnExit();
return ExceptionInVPackage(file1, file2);
}
public File ExceptionInVPackage(File paramFile1, File paramFile2) {
BufferedWriter bufferedWriter = null;
BufferedReader bufferedReader = null;
try {
Charset charset = Charset.forName("UTF-8");
InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(paramFile1), charset);
bufferedReader = new BufferedReader(inputStreamReader);
FileOutputStream fileOutputStream = new FileOutputStream(paramFile2);
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, charset);
bufferedWriter = new BufferedWriter(outputStreamWriter);
for (String str = bufferedReader.readLine(); str != null; str = bufferedReader.readLine()) {
str = c(str);
bufferedWriter.append(str);
bufferedWriter.newLine();
}
} catch (Exception exception) {
Logger.getLogger(iP.class.getName()).log(Level.SEVERE, (String)null, exception);
} finally {
try {
if (bufferedWriter != null)
bufferedWriter.close();
} catch (Exception exception) {
Logger.getLogger(iP.class.getName()).log(Level.SEVERE, (String)null, exception);
}
try {
if (bufferedReader != null)
bufferedReader.close();
} catch (Exception exception) {
Logger.getLogger(iP.class.getName()).log(Level.SEVERE, (String)null, exception);
}
}
return paramFile2;
}
private String c(String paramString) {
String str = "$scaleToDpi(";
if (paramString.contains("$RecentProjectLinkList"))
if (RInterfaceIndia.ExceptionInVPackage().ExceptionInVPackage("h-0ewkfd[pfd[pew")) {
String str1 = " arrayList = (new RComponentNovember()).ExceptionInVPackage();
if (arrayList.isEmpty()) {
File file = new File(ThreadedFile.u());
File[] arrayOfFile = file.listFiles();
for (byte b = 0; b < arrayOfFile.length; b++) {
if (ExceptionInVPackage.ExceptionInVPackage(arrayOfFile[b]))
arrayList.add(arrayOfFile[b].getAbsolutePath());
}
}
StringBuilder stringBuilder = new StringBuilder("