package ඓ.ⁱ.K.㸾;

import com.facebook.internal.security.CertificateUtil;
import org.json.JSONException;
import org.json.JSONObject;
import ඓ.ⁱ.K.ඓ.C1252;

/* renamed from: ඓ.ⁱ.K.㸾.㑃  reason: contains not printable characters */
/* compiled from: UpToken */
public final class C1276 {

    /* renamed from: 㸾  reason: contains not printable characters */
    public static C1276 f4987 = new C1276("", "", "");

    /* renamed from: ʬ  reason: contains not printable characters */
    public String f4988 = null;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final String f4989;

    /* renamed from: K  reason: contains not printable characters */
    public final String f4990;

    public C1276(String str, String str2, String str3) {
        this.f4988 = str;
        this.f4990 = str2;
        this.f4989 = str3;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1276 m3383(String str) {
        try {
            String[] split = str.split(CertificateUtil.DELIMITER);
            if (split.length != 3) {
                return f4987;
            }
            try {
                JSONObject jSONObject = new JSONObject(new String(C1252.m3352(split[2])));
                if (jSONObject.optString("scope").equals("")) {
                    return f4987;
                }
                if (jSONObject.optInt("deadline") == 0) {
                    return f4987;
                }
                return new C1276(jSONObject.optString("returnUrl"), str, split[0]);
            } catch (JSONException unused) {
                return f4987;
            }
        } catch (Exception unused2) {
            return f4987;
        }
    }

    public String toString() {
        return this.f4990;
    }
}
