discord-jadx/app/src/main/java/c/a/t/a/k.java

94 lines
5.5 KiB
Java

package c.a.t.a;
import c0.g0.i;
import c0.z.d.m;
import com.discord.models.domain.ModelAuditLogEntry;
import com.discord.simpleast.core.node.Node;
import com.discord.simpleast.core.node.StyleNode;
import java.util.regex.Pattern;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.text.Regex;
/* compiled from: JavaScript.kt */
public final class k {
public static final String[] a = {"import|from|export|default|package", "class|enum", "function|super|extends|implements|arguments", "var|let|const|static|get|set|new", "return|break|continue|yield|void", "if|else|for|while|do|switch|async|await|case|try|catch|finally|delete|throw|NaN|Infinity", "of|in|instanceof|typeof", "debugger|with", "true|false|null|undefined"};
public static final String[] b = {"String|Boolean|RegExp|Number|Date|Math|JSON|Symbol|BigInt|Atomics|DataView", "Function|Promise|Generator|GeneratorFunction|AsyncFunction|AsyncGenerator|AsyncGeneratorFunction", "Array|Object|Map|Set|WeakMap|WeakSet|Int8Array|Int16Array|Int32Array|Uint8Array|Uint16Array", "Uint32Array|Uint8ClampedArray|Float32Array|Float64Array|BigInt64Array|BigUint64Array|Buffer", "ArrayBuffer|SharedArrayBuffer", "Reflect|Proxy|Intl|WebAssembly", "console|process|require|isNaN|parseInt|parseFloat|encodeURI|decodeURI|encodeURIComponent", "decodeURIComponent|this|global|globalThis|eval|isFinite|module", "setTimeout|setInterval|clearTimeout|clearInterval|setImmediate|clearImmediate", "queueMicrotask|document|window", "Error|SyntaxError|TypeError|RangeError|ReferenceError|EvalError|InternalError|URIError", "AggregateError|escape|unescape|URL|URLSearchParams|TextEncoder|TextDecoder", "AbortController|AbortSignal|EventTarget|Event|MessageChannel", "MessagePort|MessageEvent|FinalizationRegistry|WeakRef", "regeneratorRuntime|performance"};
/* renamed from: c reason: collision with root package name */
public static final Pattern f241c = Pattern.compile("^/.+(?<!\\\\)/[dgimsuy]*");
public static final Pattern d = Pattern.compile("^<.*(?<!\\\\)>");
public static final Pattern e = Pattern.compile("^(?:(?://.*?(?=\\n|$))|(/\\*.*?\\*/))", 32);
public static final Pattern f = Pattern.compile("^('.*?(?<!\\\\)'|\".*?(?<!\\\\)\"|`[\\s\\S]*?(?<!\\\\)`)(?=\\W|\\s|$)");
public static final k g = null;
/* compiled from: JavaScript.kt */
public static final class a<RC> extends Node.a<RC> {
public static final Pattern a = Pattern.compile("^(var|let|const)(\\s+[a-zA-Z_$][a-zA-Z0-9_$]*)");
public static final C0046a b = new C0046a(null);
/* compiled from: JavaScript.kt */
/* renamed from: c.a.t.a.k$a$a reason: collision with other inner class name */
public static final class C0046a {
public C0046a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(String str, String str2, f<RC> fVar) {
super(new StyleNode.b(str, fVar.d), new StyleNode.b(str2, fVar.e));
m.checkNotNullParameter(str, "definition");
m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_NAME);
m.checkNotNullParameter(fVar, "codeStyleProviders");
}
}
/* compiled from: JavaScript.kt */
public static final class b<RC> extends Node.a<RC> {
public static final Pattern a = new Regex("^(function\\*?|static|get|set|async)(\\s+[a-zA-Z_$][a-zA-Z0-9_$]*)?(\\s*\\(.*?\\))", i.DOT_MATCHES_ALL).toPattern();
public static final a b = new a(null);
/* compiled from: JavaScript.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x002a: APUT
(r0v4 com.discord.simpleast.core.node.Node[])
(1 ??[boolean, int, float, short, byte, char])
(r1v1 com.discord.simpleast.core.node.StyleNode$b)
*/
/* JADX WARNING: Illegal instructions before constructor call */
public b(String str, String str2, String str3, f<RC> fVar) {
super(r0);
m.checkNotNullParameter(str, "pre");
m.checkNotNullParameter(str3, "params");
m.checkNotNullParameter(fVar, "codeStyleProviders");
Node[] nodeArr = new Node[3];
nodeArr[0] = new StyleNode.b(str, fVar.d);
nodeArr[1] = str2 != null ? new StyleNode.b(str2, fVar.e) : null;
nodeArr[2] = new StyleNode.b(str3, fVar.h);
}
}
/* compiled from: JavaScript.kt */
public static final class c<RC> extends Node.a<RC> {
public static final Pattern a = Pattern.compile("^([\\{\\[\\,])(\\s*[a-zA-Z0-9_$]+)(\\s*:)");
public static final a b = new a(null);
/* compiled from: JavaScript.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(String str, String str2, String str3, f<RC> fVar) {
super(new StyleNode.b(str, fVar.a), new StyleNode.b(str2, fVar.e), new StyleNode.b(str3, fVar.a));
m.checkNotNullParameter(str, "prefix");
m.checkNotNullParameter(str2, "property");
m.checkNotNullParameter(str3, "suffix");
m.checkNotNullParameter(fVar, "codeStyleProviders");
}
}
}