1096 lines
22 KiB
Smali
1096 lines
22 KiB
Smali
.class public final Lb0/u;
|
|
.super Ljava/lang/Object;
|
|
.source "HttpUrl.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lb0/u$a;,
|
|
Lb0/u$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final k:[C
|
|
|
|
.field public static final l:Lb0/u$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, Lb0/u$b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lb0/u$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lb0/u;->l:Lb0/u$b;
|
|
|
|
const/16 v0, 0x10
|
|
|
|
new-array v0, v0, [C
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
sput-object v0, Lb0/u;->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/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
if-eqz p6, :cond_1
|
|
|
|
if-eqz p9, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lb0/u;->b:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Lb0/u;->c:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lb0/u;->d:Ljava/lang/String;
|
|
|
|
iput-object p4, p0, Lb0/u;->e:Ljava/lang/String;
|
|
|
|
iput p5, p0, Lb0/u;->f:I
|
|
|
|
iput-object p6, p0, Lb0/u;->g:Ljava/util/List;
|
|
|
|
iput-object p7, p0, Lb0/u;->h:Ljava/util/List;
|
|
|
|
iput-object p8, p0, Lb0/u;->i:Ljava/lang/String;
|
|
|
|
iput-object p9, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
iget-object p1, p0, Lb0/u;->b:Ljava/lang/String;
|
|
|
|
const-string p2, "https"
|
|
|
|
invoke-static {p1, p2}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
iput-boolean p1, p0, Lb0/u;->a:Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "url"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "pathSegments"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "host"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "password"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
const-string p1, "username"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_5
|
|
const-string p1, "scheme"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final c(Ljava/lang/String;)Lb0/u;
|
|
.locals 1
|
|
|
|
sget-object v0, Lb0/u;->l:Lb0/u$b;
|
|
|
|
invoke-virtual {v0, p0}, Lb0/u$b;->c(Ljava/lang/String;)Lb0/u;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic j()[C
|
|
.locals 1
|
|
|
|
sget-object v0, Lb0/u;->k:[C
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;)Lb0/u$a;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
:try_start_0
|
|
new-instance v1, Lb0/u$a;
|
|
|
|
invoke-direct {v1}, Lb0/u$a;-><init>()V
|
|
|
|
invoke-virtual {v1, p0, p1}, Lb0/u$a;->a(Lb0/u;Ljava/lang/String;)Lb0/u$a;
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-object v0, v1
|
|
|
|
:catch_0
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string p1, "link"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final a()Ljava/lang/String;
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Lb0/u;->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, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
const/16 v3, 0x3a
|
|
|
|
iget-object v4, p0, Lb0/u;->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}, Lx/a0/u;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget-object v1, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
const/16 v3, 0x40
|
|
|
|
const/4 v4, 0x6
|
|
|
|
invoke-static {v1, v3, v2, v2, v4}, Lx/a0/u;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lb0/u;->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}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
new-instance v0, Lx/l;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Lx/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final b(Ljava/lang/String;)Lb0/u;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Lb0/u;->a(Ljava/lang/String;)Lb0/u$a;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lb0/u$a;->a()Lb0/u;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const-string p1, "link"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final b()Ljava/lang/String;
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lb0/u;->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}, Lx/a0/u;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "?#"
|
|
|
|
invoke-static {v1, v3, v0, v2}, Lb0/c0/a;->a(Ljava/lang/String;Ljava/lang/String;II)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lb0/u;->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}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Lx/l;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Lx/l;-><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, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lb0/u;->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}, Lx/a0/u;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
const-string v4, "?#"
|
|
|
|
invoke-static {v1, v4, v0, v3}, Lb0/c0/a;->a(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, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
invoke-static {v4, v2, v0, v1}, Lb0/c0/a;->a(Ljava/lang/String;CII)I
|
|
|
|
move-result v4
|
|
|
|
iget-object v5, p0, Lb0/u;->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}, Lx/u/b/j;->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, Lx/l;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Lx/l;-><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, Lb0/u;->h:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
const/16 v1, 0x3f
|
|
|
|
const/4 v2, 0x6
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v1, v3, v3, v2}, Lx/a0/u;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iget-object v1, p0, Lb0/u;->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}, Lb0/c0/a;->a(Ljava/lang/String;CII)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lb0/u;->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}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
new-instance v0, Lx/l;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Lx/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final e()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lb0/u;->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, Lb0/u;->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, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, ":@"
|
|
|
|
invoke-static {v1, v3, v0, v2}, Lb0/c0/a;->a(Ljava/lang/String;Ljava/lang/String;II)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lb0/u;->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}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
new-instance v0, Lx/l;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Lx/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
instance-of v0, p1, Lb0/u;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lb0/u;
|
|
|
|
iget-object p1, p1, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
invoke-static {p1, v0}, Lx/u/b/j;->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()Lb0/u$a;
|
|
.locals 5
|
|
|
|
new-instance v0, Lb0/u$a;
|
|
|
|
invoke-direct {v0}, Lb0/u$a;-><init>()V
|
|
|
|
iget-object v1, p0, Lb0/u;->b:Ljava/lang/String;
|
|
|
|
iput-object v1, v0, Lb0/u$a;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0}, Lb0/u;->e()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "<set-?>"
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iput-object v1, v0, Lb0/u$a;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0}, Lb0/u;->a()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iput-object v1, v0, Lb0/u$a;->c:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lb0/u;->e:Ljava/lang/String;
|
|
|
|
iput-object v1, v0, Lb0/u$a;->d:Ljava/lang/String;
|
|
|
|
iget v1, p0, Lb0/u;->f:I
|
|
|
|
sget-object v3, Lb0/u;->l:Lb0/u$b;
|
|
|
|
iget-object v4, p0, Lb0/u;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v3, v4}, Lb0/u$b;->a(Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
if-eq v1, v3, :cond_0
|
|
|
|
iget v1, p0, Lb0/u;->f:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, -0x1
|
|
|
|
:goto_0
|
|
iput v1, v0, Lb0/u$a;->e:I
|
|
|
|
iget-object v1, v0, Lb0/u$a;->f:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->clear()V
|
|
|
|
iget-object v1, v0, Lb0/u$a;->f:Ljava/util/List;
|
|
|
|
invoke-virtual {p0}, Lb0/u;->c()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
invoke-virtual {p0}, Lb0/u;->d()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lb0/u$a;->a(Ljava/lang/String;)Lb0/u$a;
|
|
|
|
iget-object v1, p0, Lb0/u;->i:Ljava/lang/String;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
const/16 v2, 0x23
|
|
|
|
const/4 v3, 0x6
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v1, v2, v4, v4, v3}, Lx/a0/u;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iget-object v2, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v1, "(this as java.lang.String).substring(startIndex)"
|
|
|
|
invoke-static {v2, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_1
|
|
iput-object v2, v0, Lb0/u$a;->h:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
new-instance v0, Lx/l;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Lx/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
invoke-static {v3}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_4
|
|
invoke-static {v3}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final g()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "/..."
|
|
|
|
invoke-virtual {p0, v0}, Lb0/u;->a(Ljava/lang/String;)Lb0/u$a;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, ""
|
|
|
|
invoke-virtual {v0, v1}, Lb0/u$a;->c(Ljava/lang/String;)Lb0/u$a;
|
|
|
|
invoke-virtual {v0, v1}, Lb0/u$a;->b(Ljava/lang/String;)Lb0/u$a;
|
|
|
|
invoke-virtual {v0}, Lb0/u$a;->a()Lb0/u;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
invoke-static {}, Lx/u/b/j;->throwNpe()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final h()Ljava/net/URI;
|
|
.locals 17
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lb0/u;->f()Lb0/u$a;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lb0/u$a;->f:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v1, :cond_0
|
|
|
|
iget-object v4, v0, Lb0/u$a;->f:Ljava/util/List;
|
|
|
|
sget-object v5, Lb0/u;->l:Lb0/u$b;
|
|
|
|
invoke-interface {v4, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/lang/String;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const/4 v11, 0x1
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v15, 0xe3
|
|
|
|
const-string v9, "[]"
|
|
|
|
invoke-static/range {v5 .. v15}, Lb0/u$b;->a(Lb0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v4, v3, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, v0, Lb0/u$a;->g:Ljava/util/List;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
:goto_1
|
|
if-ge v2, v4, :cond_2
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
move-object v7, v5
|
|
|
|
check-cast v7, Ljava/lang/String;
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
sget-object v6, Lb0/u;->l:Lb0/u$b;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v11, 0x1
|
|
|
|
const/4 v12, 0x1
|
|
|
|
const/4 v13, 0x1
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0xc3
|
|
|
|
const-string v10, "\\^`{|}"
|
|
|
|
invoke-static/range {v6 .. v16}, Lb0/u$b;->a(Lb0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
move-object v5, v3
|
|
|
|
:goto_2
|
|
invoke-interface {v1, v2, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-object v6, v0, Lb0/u$a;->h:Ljava/lang/String;
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
sget-object v5, Lb0/u;->l:Lb0/u$b;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const/4 v11, 0x1
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x1
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v15, 0xa3
|
|
|
|
const-string v9, " \"#<>\\^`{|}"
|
|
|
|
invoke-static/range {v5 .. v15}, Lb0/u$b;->a(Lb0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_3
|
|
iput-object v3, v0, Lb0/u$a;->h:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Lb0/u$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_3
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
:try_start_1
|
|
new-instance v2, Lkotlin/text/Regex;
|
|
|
|
const-string v3, "[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]"
|
|
|
|
invoke-direct {v2, v3}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v3, ""
|
|
|
|
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}, Lx/u/b/j;->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_3
|
|
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 hashCode()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final i()Ljava/net/URL;
|
|
.locals 2
|
|
|
|
:try_start_0
|
|
new-instance v0, Ljava/net/URL;
|
|
|
|
iget-object v1, p0, Lb0/u;->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, Lb0/u;->j:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|