ViMusic v0.5.4版本的 MD5 值为:e5d76df875234aa34db5af7d13eb379b
以下内容为反编译后的 w0.java 源代码,内容仅作参考
package l;
import android.content.Context;
import android.content.Intent;
import android.text.Layout;
import android.text.TextPaint;
import java.text.BreakIterator;
import java.util.Iterator;
import java.util.PriorityQueue;
public final class w0 extends z7.i implements y7.a {
public final int f6350r;
public final Object f6351s;
public final Object f6352t;
public w0(Object obj, int i10, Object obj2) {
super(0);
this.f6350r = i10;
this.f6351s = obj;
this.f6352t = obj2;
}
public final void a() {
String str;
v6.g gVar;
switch (this.f6350r) {
case 6:
a.g.C(this.f6352t);
throw null;
case 7:
z.d dVar = (z.d) this.f6351s;
y.f0 f0Var = (y.f0) this.f6352t;
int i10 = dVar.f14258q;
for (int i11 = 0; i11 < i10; i11++) {
((y.c0) f0Var).w(dVar.get(i11));
}
return;
case 8:
a3.o.w(((h0.z) this.f6351s).f3474c, (y7.a) this.f6352t);
return;
case 9:
l0.d dVar2 = (l0.d) ((j0.i) this.f6351s);
e1.f fVar = (e1.f) this.f6352t;
dVar2.getClass();
g7.e.z(fVar, "params");
l0.b bVar = dVar2.f6409q;
bVar.getClass();
bVar.f6406q = fVar;
bVar.f6407r = null;
dVar2.f6410r.c(bVar);
if (bVar.f6407r != null) {
return;
}
throw new IllegalStateException("DrawResult not defined, did you forget to call onDraw?".toString());
case 10:
o0.c0 c0Var = e1.y0.O;
((e1.y0) this.f6351s).w0((o0.p) this.f6352t);
return;
case 11:
case 12:
default:
x6.p pVar = (x6.p) this.f6351s;
pVar.a(x0.c.p(845762654, new m.q0((m6.q) this.f6352t, 12, pVar), true));
return;
case 13:
b8.a.a2(((a1.d) this.f6351s).f50a, null);
x6.j jVar = (x6.j) this.f6352t;
g7.e.u0(jVar.f13294a, null, 0, new x6.i(jVar, jVar.f13297d, null), 3);
return;
case 14:
g7.e.u0((i8.z) this.f6351s, null, 0, new y6.o((y7.c) this.f6352t, null), 3);
return;
case 15:
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.TEXT", "https://music.youtube.com/watch?v=" + ((o2.g0) this.f6352t).f8465q);
((Context) this.f6351s).startActivity(Intent.createChooser(intent, null));
return;
case 16:
w6.m mVar = (w6.m) this.f6351s;
if (mVar != null) {
m7.n nVar = mVar.f12821c.f4298y;
if (nVar != null) {
((l8.z0) nVar.f7532a).k(null);
nVar.f7533b.a();
nVar.f7534c.f(null);
}
mVar.f12821c.f4298y = null;
}
((y7.a) this.f6352t).e();
return;
case 17:
w6.m mVar2 = (w6.m) this.f6351s;
if (mVar2 != null) {
v2.f0 b3 = mVar2.b();
int intValue = ((Integer) this.f6352t).intValue();
b3.K(intValue, intValue + 1);
return;
}
return;
case 18:
v6.a u9 = p9.e.u((y.b1) this.f6352t);
if (u9 != null && (str = u9.f12294f) != null) {
Intent intent2 = new Intent();
intent2.setAction("android.intent.action.SEND");
intent2.setType("text/plain");
intent2.putExtra("android.intent.extra.TEXT", str);
((Context) this.f6351s).startActivity(Intent.createChooser(intent2, null));
return;
}
return;
case 19:
Intent intent3 = new Intent();
intent3.setAction("android.intent.action.SEND");
intent3.setType("text/plain");
intent3.putExtra("android.intent.extra.TEXT", "https://music.youtube.com/channel/" + ((String) this.f6352t));
((Context) this.f6351s).startActivity(Intent.createChooser(intent3, null));
return;
case 20:
((y7.c) this.f6351s).c((v6.a) this.f6352t);
return;
case 21:
((y7.c) this.f6351s).c((v6.b) this.f6352t);
return;
case 22:
((y7.c) this.f6351s).c(((v6.h) this.f6352t).f12321a);
return;
case 23:
((l6.q) this.f6351s).a(f8.m.f2855g, (String) this.f6352t);
return;
case 24:
((y7.c) this.f6351s).c(((m6.d) this.f6352t).a());
return;
case 25:
((y7.c) this.f6351s).c(((m6.k) this.f6352t).a());
return;
case 26:
v6.i t9 = q6.c.t((y.b1) this.f6352t);
if (t9 != null && (gVar = t9.f12323a) != null) {
String str2 = (String) this.f6351s;
long j10 = gVar.f12318a;
String str3 = gVar.f12320c;
g7.e.z(str2, "name");
t6.b.f11029a.f11025b.f0(new v6.g(j10, str2, str3));
return;
}
return;
case 27:
k6.p pVar2 = (k6.p) this.f6351s;
g7.e.u0(pVar2.f5847b, null, 0, new g7.v0(pVar2, null), 3).l(new g7.w0(0, (v2.s) this.f6352t));
return;
case 28:
((y7.c) this.f6351s).c(((p1.t) this.f6352t).f9147a.f5061q);
return;
}
}
public final Float b() {
n7.f fVar;
float e10;
float d2;
switch (this.f6350r) {
case 1:
q.q0 q0Var = (q.q0) this.f6351s;
if (q0Var.f9524r) {
e10 = ((s.p) this.f6352t).a() + 1.0f;
} else {
e10 = q0Var.e() + (((q.q0) this.f6351s).f() / 100000.0f);
}
return Float.valueOf(e10);
case 2:
default:
CharSequence charSequence = (CharSequence) this.f6351s;
TextPaint textPaint = (TextPaint) this.f6352t;
g7.e.z(charSequence, "text");
g7.e.z(textPaint, "paint");
BreakIterator lineInstance = BreakIterator.getLineInstance(textPaint.getTextLocale());
lineInstance.setText(new k1.c(charSequence, charSequence.length()));
PriorityQueue priorityQueue = new PriorityQueue(10, new e1.a0(1));
int i10 = 0;
for (int next = lineInstance.next(); next != -1; next = lineInstance.next()) {
if (priorityQueue.size() < 10) {
fVar = new n7.f(Integer.valueOf(i10), Integer.valueOf(next));
} else {
n7.f fVar2 = (n7.f) priorityQueue.peek();
if (fVar2 != null && ((Number) fVar2.f8139r).intValue() - ((Number) fVar2.f8138q).intValue() < next - i10) {
priorityQueue.poll();
fVar = new n7.f(Integer.valueOf(i10), Integer.valueOf(next));
}
i10 = next;
}
priorityQueue.add(fVar);
i10 = next;
}
float f10 = 0.0f;
Iterator it2 = priorityQueue.iterator();
while (it2.hasNext()) {
n7.f fVar3 = (n7.f) it2.next();
f10 = Math.max(f10, Layout.getDesiredWidth(charSequence, ((Number) fVar3.f8138q).intValue(), ((Number) fVar3.f8139r).intValue(), textPaint));
}
return Float.valueOf(f10);
case 3:
r.r0 r0Var = (r.r0) this.f6351s;
if (r0Var.f10041t) {
d2 = ((s.p) this.f6352t).a() + 1.0f;
} else {
d2 = r0Var.d() + (((r.r0) this.f6351s).e() / 100000.0f);
}
return Float.valueOf(d2);
}
}
@Override
public final Object e() {
boolean z9;
long j10;
int i10;
int i11;
String str;
int valueOf;
v.v1 v1Var;
v.w1 c10;
j1.x xVar;
v.v1 v1Var2;
c1.p pVar;
v.w1 c11;
c1.p pVar2;
n0.c cVar;
boolean z10;
float abs;
boolean z11;
switch (this.f6350r) {
case 0:
((m0.n) this.f6351s).b();
return Boolean.valueOf(b1.f((y.b1) this.f6352t));
case 1:
return b();
case 2:
r.j0 j0Var = new r.j0();
((y7.c) ((y.r2) this.f6351s).getValue()).c(j0Var);
return new r.t(j0Var.f9959a, j0Var.f9960b, (e8.g) ((y.r2) this.f6352t).getValue());
case 3:
return b();
case 4:
n0.d dVar = (n0.d) this.f6351s;
if (dVar == null) {
c1.p pVar3 = ((t.h) this.f6352t).f10840s;
if (pVar3 == null || !pVar3.C()) {
pVar3 = null;
}
if (pVar3 == null) {
return null;
}
return i8.a0.K1(x0.c.P(pVar3.K()));
}
return dVar;
case 5:
w.y yVar = (w.y) this.f6351s;
long j11 = ((v1.j) ((y.b1) this.f6352t).getValue()).f11795a;
g7.e.z(yVar, "manager");
if (yVar.j().f9147a.f5061q.length() == 0) {
z9 = true;
} else {
z9 = false;
}
if (!z9) {
v.a0 a0Var = (v.a0) yVar.f12522n.getValue();
if (a0Var == null) {
i10 = -1;
} else {
i10 = w.b0.f12432a[a0Var.ordinal()];
}
if (i10 != -1) {
if (i10 != 1 && i10 != 2) {
if (i10 == 3) {
i11 = j1.y.c(yVar.j().f9148b);
} else {
throw new x2.c0();
}
} else {
long j12 = yVar.j().f9148b;
int i12 = j1.y.f5182c;
i11 = (int) (j12 >> 32);
}
int k2 = yVar.f12510b.k(i11);
g7.e.z(yVar.j().f9147a.f5061q, "<this>");
e8.g gVar = new e8.g(0, str.length() - 1);
if (gVar instanceof e8.d) {
valueOf = Integer.valueOf(k2);
e8.d dVar2 = (e8.d) gVar;
g7.e.z(valueOf, "<this>");
if (dVar2.f2443a > dVar2.f2444b) {
z11 = true;
} else {
z11 = false;
}
if (!z11) {
if (e8.d.c(valueOf, dVar2.b()) && !e8.d.c(dVar2.b(), valueOf)) {
valueOf = dVar2.b();
} else if (e8.d.c(dVar2.a(), valueOf) && !e8.d.c(valueOf, dVar2.a())) {
valueOf = dVar2.a();
}
} else {
throw new IllegalArgumentException("Cannot coerce value to an empty range: " + dVar2 + '.');
}
} else if (!gVar.isEmpty()) {
Integer num = 0;
if (k2 < num.intValue()) {
valueOf = 0;
} else {
if (k2 > Integer.valueOf(gVar.f2446r).intValue()) {
valueOf = Integer.valueOf(gVar.f2446r);
}
v1Var = yVar.f12512d;
if (v1Var != null && (c10 = v1Var.c()) != null && (xVar = c10.f11722a) != null) {
long a10 = xVar.b(k2).a();
v1Var2 = yVar.f12512d;
if (v1Var2 != null && (pVar = v1Var2.f11704g) != null && (c11 = v1Var2.c()) != null && (pVar2 = c11.f11723b) != null && (cVar = (n0.c) yVar.f12523o.getValue()) != null) {
float e10 = n0.c.e(pVar2.G(pVar, cVar.f7713a));
int f10 = xVar.f(k2);
int j13 = xVar.j(f10);
int e11 = xVar.e(f10, true);
if (((int) (yVar.j().f9148b >> 32)) <= j1.y.c(yVar.j().f9148b)) {
z10 = true;
} else {
z10 = false;
}
float i02 = q6.b.i0(xVar, j13, true, z10);
float i03 = q6.b.i0(xVar, e11, false, z10);
float F = q6.c.F(e10, Math.min(i02, i03), Math.max(i02, i03));
abs = Math.abs(e10 - F);
int i13 = v1.j.f11794b;
if (abs <= ((int) (j11 >> 32)) / 2) {
j10 = pVar.G(pVar2, m7.d.x(F, n0.c.f(a10)));
return new n0.c(j10);
}
}
}
}
} else {
throw new IllegalArgumentException("Cannot coerce value to an empty range: " + gVar + '.');
}
k2 = ((Number) valueOf).intValue();
v1Var = yVar.f12512d;
if (v1Var != null) {
long a102 = xVar.b(k2).a();
v1Var2 = yVar.f12512d;
if (v1Var2 != null) {
float e102 = n0.c.e(pVar2.G(pVar, cVar.f7713a));
int f102 = xVar.f(k2);
int j132 = xVar.j(f102);
int e112 = xVar.e(f102, true);
if (((int) (yVar.j().f9148b >> 32)) <= j1.y.c(yVar.j().f9148b)) {
}
float i022 = q6.b.i0(xVar, j132, true, z10);
float i032 = q6.b.i0(xVar, e112, false, z10);
float F2 = q6.c.F(e102, Math.min(i022, i032), Math.max(i022, i032));
abs = Math.abs(e102 - F2);
int i132 = v1.j.f11794b;
if (abs <= ((int) (j11 >> 32)) / 2) {
}
}
}
}
}
j10 = n0.c.f7711d;
return new n0.c(j10);
case 6:
a();
return n7.n.f8152a;
case 7:
a();
return n7.n.f8152a;
case 8:
a();
return n7.n.f8152a;
case 9:
a();
return n7.n.f8152a;
case 10:
a();
return n7.n.f8152a;
case 11:
return b();
case 12:
default:
a();
return n7.n.f8152a;
case 13:
a();
return n7.n.f8152a;
case 14:
a();
return n7.n.f8152a;
case 15:
a();
return n7.n.f8152a;
case 16:
a();
return n7.n.f8152a;
case 17:
a();
return n7.n.f8152a;
case 18:
a();
return n7.n.f8152a;
case 19:
a();
return n7.n.f8152a;
case 20:
a();
return n7.n.f8152a;
case 21:
a();
return n7.n.f8152a;
case 22:
a();
return n7.n.f8152a;
case 23:
a();
return n7.n.f8152a;
case 24:
a();
return n7.n.f8152a;
case 25:
a();
return n7.n.f8152a;
case 26:
a();
return n7.n.f8152a;
case 27:
a();
return n7.n.f8152a;
case 28:
a();
return n7.n.f8152a;
}
}
public w0(y.b1 b1Var, Context context) {
super(0);
this.f6350r = 18;
this.f6352t = b1Var;
this.f6351s = context;
}
}