apkfuckery/com.discord/smali_classes2/o0/y.smali
2020-09-09 19:21:20 +00:00

1092 lines
23 KiB
Smali

.class public final Lo0/y;
.super Ljava/lang/Object;
.source "HttpUrl.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lo0/y$a;,
Lo0/y$b;
}
.end annotation
# static fields
.field public static final k:[C
.field public static final l:Lo0/y$b;
# instance fields
.field public final a:Z
.field public final b:Ljava/lang/String;
.field public final c:Ljava/lang/String;
.field public final d:Ljava/lang/String;
.field public final e:Ljava/lang/String;
.field public final f:I
.field public final g:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public final h:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public final i:Ljava/lang/String;
.field public final j:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Lo0/y$b;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lo0/y$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lo0/y;->l:Lo0/y$b;
const/16 v0, 0x10
new-array v0, v0, [C
fill-array-data v0, :array_0
sput-object v0, Lo0/y;->k:[C
return-void
:array_0
.array-data 2
0x30s
0x31s
0x32s
0x33s
0x34s
0x35s
0x36s
0x37s
0x38s
0x39s
0x41s
0x42s
0x43s
0x44s
0x45s
0x46s
.end array-data
.end method
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"I",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/String;",
"Ljava/lang/String;",
")V"
}
.end annotation
const-string v0, "scheme"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "username"
invoke-static {p2, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "password"
invoke-static {p3, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "host"
invoke-static {p4, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "pathSegments"
invoke-static {p6, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "url"
invoke-static {p9, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lo0/y;->b:Ljava/lang/String;
iput-object p2, p0, Lo0/y;->c:Ljava/lang/String;
iput-object p3, p0, Lo0/y;->d:Ljava/lang/String;
iput-object p4, p0, Lo0/y;->e:Ljava/lang/String;
iput p5, p0, Lo0/y;->f:I
iput-object p6, p0, Lo0/y;->g:Ljava/util/List;
iput-object p7, p0, Lo0/y;->h:Ljava/util/List;
iput-object p8, p0, Lo0/y;->i:Ljava/lang/String;
iput-object p9, p0, Lo0/y;->j:Ljava/lang/String;
const-string p2, "https"
invoke-static {p1, p2}, Lk0/n/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
iput-boolean p1, p0, Lo0/y;->a:Z
return-void
.end method
.method public static final h(Ljava/lang/String;)Lo0/y;
.locals 2
const-string v0, "$this$toHttpUrlOrNull"
invoke-static {p0, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
:try_start_0
const-string v1, "$this$toHttpUrl"
invoke-static {p0, v1}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v1, Lo0/y$a;
invoke-direct {v1}, Lo0/y$a;-><init>()V
invoke-virtual {v1, v0, p0}, Lo0/y$a;->e(Lo0/y;Ljava/lang/String;)Lo0/y$a;
invoke-virtual {v1}, Lo0/y$a;->b()Lo0/y;
move-result-object v0
:try_end_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-object v0
.end method
# virtual methods
.method public final a()Ljava/lang/String;
.locals 6
iget-object v0, p0, Lo0/y;->d:Ljava/lang/String;
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
const-string v0, ""
return-object v0
:cond_1
iget-object v0, p0, Lo0/y;->j:Ljava/lang/String;
const/16 v3, 0x3a
iget-object v4, p0, Lo0/y;->b:Ljava/lang/String;
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v4
add-int/lit8 v4, v4, 0x3
const/4 v5, 0x4
invoke-static {v0, v3, v4, v2, v5}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
move-result v0
add-int/2addr v0, v1
iget-object v1, p0, Lo0/y;->j:Ljava/lang/String;
const/16 v3, 0x40
const/4 v4, 0x6
invoke-static {v1, v3, v2, v2, v4}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
move-result v1
iget-object v2, p0, Lo0/y;->j:Ljava/lang/String;
if-eqz v2, :cond_2
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
const-string v1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v0, v1}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
:cond_2
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final b()Ljava/lang/String;
.locals 5
iget-object v0, p0, Lo0/y;->j:Ljava/lang/String;
iget-object v1, p0, Lo0/y;->b:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
add-int/lit8 v1, v1, 0x3
const/16 v2, 0x2f
const/4 v3, 0x0
const/4 v4, 0x4
invoke-static {v0, v2, v1, v3, v4}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
move-result v0
iget-object v1, p0, Lo0/y;->j:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v2
const-string v3, "?#"
invoke-static {v1, v3, v0, v2}, Lo0/h0/c;->i(Ljava/lang/String;Ljava/lang/String;II)I
move-result v1
iget-object v2, p0, Lo0/y;->j:Ljava/lang/String;
if-eqz v2, :cond_0
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
const-string v1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v0, v1}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
:cond_0
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final c()Ljava/util/List;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
iget-object v0, p0, Lo0/y;->j:Ljava/lang/String;
iget-object v1, p0, Lo0/y;->b:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
add-int/lit8 v1, v1, 0x3
const/16 v2, 0x2f
const/4 v3, 0x0
const/4 v4, 0x4
invoke-static {v0, v2, v1, v3, v4}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
move-result v0
iget-object v1, p0, Lo0/y;->j:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v3
const-string v4, "?#"
invoke-static {v1, v4, v0, v3}, Lo0/h0/c;->i(Ljava/lang/String;Ljava/lang/String;II)I
move-result v1
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
:goto_0
if-ge v0, v1, :cond_1
add-int/lit8 v0, v0, 0x1
iget-object v4, p0, Lo0/y;->j:Ljava/lang/String;
invoke-static {v4, v2, v0, v1}, Lo0/h0/c;->h(Ljava/lang/String;CII)I
move-result v4
iget-object v5, p0, Lo0/y;->j:Ljava/lang/String;
if-eqz v5, :cond_0
invoke-virtual {v5, v0, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
const-string v5, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v0, v5}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
move v0, v4
goto :goto_0
:cond_0
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
return-object v3
.end method
.method public final d()Ljava/lang/String;
.locals 4
iget-object v0, p0, Lo0/y;->h:Ljava/util/List;
if-nez v0, :cond_0
const/4 v0, 0x0
return-object v0
:cond_0
iget-object v0, p0, Lo0/y;->j:Ljava/lang/String;
const/16 v1, 0x3f
const/4 v2, 0x6
const/4 v3, 0x0
invoke-static {v0, v1, v3, v3, v2}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
move-result v0
add-int/lit8 v0, v0, 0x1
iget-object v1, p0, Lo0/y;->j:Ljava/lang/String;
const/16 v2, 0x23
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v3
invoke-static {v1, v2, v0, v3}, Lo0/h0/c;->h(Ljava/lang/String;CII)I
move-result v1
iget-object v2, p0, Lo0/y;->j:Ljava/lang/String;
if-eqz v2, :cond_1
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
const-string v1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v0, v1}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
:cond_1
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final e()Ljava/lang/String;
.locals 4
iget-object v0, p0, Lo0/y;->c:Ljava/lang/String;
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
const-string v0, ""
return-object v0
:cond_1
iget-object v0, p0, Lo0/y;->b:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
add-int/lit8 v0, v0, 0x3
iget-object v1, p0, Lo0/y;->j:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v2
const-string v3, ":@"
invoke-static {v1, v3, v0, v2}, Lo0/h0/c;->i(Ljava/lang/String;Ljava/lang/String;II)I
move-result v1
iget-object v2, p0, Lo0/y;->j:Ljava/lang/String;
if-eqz v2, :cond_2
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
const-string v1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v0, v1}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
:cond_2
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
instance-of v0, p1, Lo0/y;
if-eqz v0, :cond_0
check-cast p1, Lo0/y;
iget-object p1, p1, Lo0/y;->j:Ljava/lang/String;
iget-object v0, p0, Lo0/y;->j:Ljava/lang/String;
invoke-static {p1, v0}, Lk0/n/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public final f()Lo0/y$a;
.locals 6
new-instance v0, Lo0/y$a;
invoke-direct {v0}, Lo0/y$a;-><init>()V
iget-object v1, p0, Lo0/y;->b:Ljava/lang/String;
iput-object v1, v0, Lo0/y$a;->a:Ljava/lang/String;
invoke-virtual {p0}, Lo0/y;->e()Ljava/lang/String;
move-result-object v1
const-string v2, "<set-?>"
invoke-static {v1, v2}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object v1, v0, Lo0/y$a;->b:Ljava/lang/String;
invoke-virtual {p0}, Lo0/y;->a()Ljava/lang/String;
move-result-object v1
invoke-static {v1, v2}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object v1, v0, Lo0/y$a;->c:Ljava/lang/String;
iget-object v1, p0, Lo0/y;->e:Ljava/lang/String;
iput-object v1, v0, Lo0/y$a;->d:Ljava/lang/String;
iget v1, p0, Lo0/y;->f:I
iget-object v2, p0, Lo0/y;->b:Ljava/lang/String;
const-string v3, "scheme"
invoke-static {v2, v3}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
move-result v3
const/4 v4, -0x1
const v5, 0x310888 # 4.503E-39f
if-eq v3, v5, :cond_1
const v5, 0x5f008eb
if-eq v3, v5, :cond_0
goto :goto_0
:cond_0
const-string v3, "https"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
const/16 v2, 0x1bb
goto :goto_1
:cond_1
const-string v3, "http"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
const/16 v2, 0x50
goto :goto_1
:cond_2
:goto_0
const/4 v2, -0x1
:goto_1
if-eq v1, v2, :cond_3
iget v4, p0, Lo0/y;->f:I
:cond_3
iput v4, v0, Lo0/y$a;->e:I
iget-object v1, v0, Lo0/y$a;->f:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->clear()V
iget-object v1, v0, Lo0/y$a;->f:Ljava/util/List;
invoke-virtual {p0}, Lo0/y;->c()Ljava/util/List;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
invoke-virtual {p0}, Lo0/y;->d()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lo0/y$a;->d(Ljava/lang/String;)Lo0/y$a;
iget-object v1, p0, Lo0/y;->i:Ljava/lang/String;
if-nez v1, :cond_4
const/4 v1, 0x0
goto :goto_2
:cond_4
iget-object v1, p0, Lo0/y;->j:Ljava/lang/String;
const/16 v2, 0x23
const/4 v3, 0x6
const/4 v4, 0x0
invoke-static {v1, v2, v4, v4, v3}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
move-result v1
add-int/lit8 v1, v1, 0x1
iget-object v2, p0, Lo0/y;->j:Ljava/lang/String;
if-eqz v2, :cond_5
invoke-virtual {v2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v1
const-string v2, "(this as java.lang.String).substring(startIndex)"
invoke-static {v1, v2}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_2
iput-object v1, v0, Lo0/y$a;->h:Ljava/lang/String;
return-object v0
:cond_5
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final g(Ljava/lang/String;)Lo0/y$a;
.locals 1
const-string v0, "link"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
new-instance v0, Lo0/y$a;
invoke-direct {v0}, Lo0/y$a;-><init>()V
invoke-virtual {v0, p0, p1}, Lo0/y$a;->e(Lo0/y;Ljava/lang/String;)Lo0/y$a;
:try_end_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Lo0/y;->j:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v0
return v0
.end method
.method public final i()Ljava/lang/String;
.locals 2
const-string v0, "/..."
invoke-virtual {p0, v0}, Lo0/y;->g(Ljava/lang/String;)Lo0/y$a;
move-result-object v0
if-eqz v0, :cond_0
const-string v1, ""
invoke-virtual {v0, v1}, Lo0/y$a;->g(Ljava/lang/String;)Lo0/y$a;
invoke-virtual {v0, v1}, Lo0/y$a;->f(Ljava/lang/String;)Lo0/y$a;
invoke-virtual {v0}, Lo0/y$a;->b()Lo0/y;
move-result-object v0
iget-object v0, v0, Lo0/y;->j:Ljava/lang/String;
return-object v0
:cond_0
invoke-static {}, Lk0/n/c/i;->throwNpe()V
const/4 v0, 0x0
throw v0
.end method
.method public final j()Ljava/net/URI;
.locals 18
invoke-virtual/range {p0 .. p0}, Lo0/y;->f()Lo0/y$a;
move-result-object v0
iget-object v1, v0, Lo0/y$a;->d:Ljava/lang/String;
const/4 v2, 0x0
const-string v3, ""
if-eqz v1, :cond_0
new-instance v4, Lkotlin/text/Regex;
const-string v5, "[\"<>^`{|}]"
invoke-direct {v4, v5}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
invoke-virtual {v4, v1, v3}, Lkotlin/text/Regex;->replace(Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
goto :goto_0
:cond_0
move-object v1, v2
:goto_0
iput-object v1, v0, Lo0/y$a;->d:Ljava/lang/String;
iget-object v1, v0, Lo0/y$a;->f:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
const/4 v4, 0x0
const/4 v5, 0x0
:goto_1
if-ge v5, v1, :cond_1
iget-object v6, v0, Lo0/y$a;->f:Ljava/util/List;
sget-object v7, Lo0/y;->l:Lo0/y$b;
invoke-interface {v6, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v8
check-cast v8, Ljava/lang/String;
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v12, 0x1
const/4 v13, 0x1
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0xe3
const-string v11, "[]"
invoke-static/range {v7 .. v17}, Lo0/y$b;->a(Lo0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
move-result-object v7
invoke-interface {v6, v5, v7}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v5, v5, 0x1
goto :goto_1
:cond_1
iget-object v1, v0, Lo0/y$a;->g:Ljava/util/List;
if-eqz v1, :cond_3
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v5
:goto_2
if-ge v4, v5, :cond_3
invoke-interface {v1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v6
move-object v8, v6
check-cast v8, Ljava/lang/String;
if-eqz v8, :cond_2
sget-object v7, Lo0/y;->l:Lo0/y$b;
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v12, 0x1
const/4 v13, 0x1
const/4 v14, 0x1
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0xc3
const-string v11, "\\^`{|}"
invoke-static/range {v7 .. v17}, Lo0/y$b;->a(Lo0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
move-result-object v6
goto :goto_3
:cond_2
move-object v6, v2
:goto_3
invoke-interface {v1, v4, v6}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v4, v4, 0x1
goto :goto_2
:cond_3
iget-object v7, v0, Lo0/y$a;->h:Ljava/lang/String;
if-eqz v7, :cond_4
sget-object v6, Lo0/y;->l:Lo0/y$b;
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v11, 0x1
const/4 v12, 0x1
const/4 v13, 0x0
const/4 v14, 0x1
const/4 v15, 0x0
const/16 v16, 0xa3
const-string v10, " \"#<>\\^`{|}"
invoke-static/range {v6 .. v16}, Lo0/y$b;->a(Lo0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
move-result-object v2
:cond_4
iput-object v2, v0, Lo0/y$a;->h:Ljava/lang/String;
invoke-virtual {v0}, Lo0/y$a;->toString()Ljava/lang/String;
move-result-object v1
:try_start_0
new-instance v0, Ljava/net/URI;
invoke-direct {v0, v1}, Ljava/net/URI;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/net/URISyntaxException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_4
:catch_0
move-exception v0
:try_start_1
new-instance v2, Lkotlin/text/Regex;
const-string v4, "[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]"
invoke-direct {v2, v4}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, v1, v3}, Lkotlin/text/Regex;->replace(Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Ljava/net/URI;->create(Ljava/lang/String;)Ljava/net/URI;
move-result-object v1
const-string v2, "URI.create(stripped)"
invoke-static {v1, v2}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
move-object v0, v1
:goto_4
return-object v0
:catch_1
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public final k()Ljava/net/URL;
.locals 2
:try_start_0
new-instance v0, Ljava/net/URL;
iget-object v1, p0, Lo0/y;->j:Ljava/lang/String;
invoke-direct {v0, v1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public toString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lo0/y;->j:Ljava/lang/String;
return-object v0
.end method