104 lines
3.4 KiB
Java
104 lines
3.4 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Iterator;
|
||
|
import java.util.Objects;
|
||
|
|
||
|
/* renamed from: o.fWa, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C13292fWa<T, R> extends fUX<T, R> {
|
||
|
private fSS<? super T, ? extends Iterable<? extends R>> b;
|
||
|
|
||
|
public C13292fWa(InterfaceC13169fSq<T> interfaceC13169fSq, fSS<? super T, ? extends Iterable<? extends R>> fss) {
|
||
|
super(interfaceC13169fSq);
|
||
|
this.b = fss;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC13163fSk
|
||
|
public final void subscribeActual(InterfaceC13174fSv<? super R> interfaceC13174fSv) {
|
||
|
this.c.subscribe(new IeS(interfaceC13174fSv, this.b));
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.fWa$IeS */
|
||
|
/* loaded from: classes6.dex */
|
||
|
static final class IeS<T, R> implements InterfaceC13174fSv<T>, fSJ {
|
||
|
private InterfaceC13174fSv<? super R> a;
|
||
|
private fSJ d;
|
||
|
private fSS<? super T, ? extends Iterable<? extends R>> e;
|
||
|
|
||
|
IeS(InterfaceC13174fSv<? super R> interfaceC13174fSv, fSS<? super T, ? extends Iterable<? extends R>> fss) {
|
||
|
this.a = interfaceC13174fSv;
|
||
|
this.e = fss;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onSubscribe(fSJ fsj) {
|
||
|
if (EnumC13192fTf.d(this.d, fsj)) {
|
||
|
this.d = fsj;
|
||
|
this.a.onSubscribe(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onNext(T t) {
|
||
|
if (this.d == EnumC13192fTf.DISPOSED) {
|
||
|
return;
|
||
|
}
|
||
|
try {
|
||
|
Iterator<? extends R> it = this.e.a(t).iterator();
|
||
|
InterfaceC13174fSv<? super R> interfaceC13174fSv = this.a;
|
||
|
while (it.hasNext()) {
|
||
|
try {
|
||
|
try {
|
||
|
interfaceC13174fSv.onNext((Object) Objects.requireNonNull(it.next(), "The iterator returned a null value"));
|
||
|
} catch (Throwable th) {
|
||
|
C13147fSI.c(th);
|
||
|
this.d.dispose();
|
||
|
onError(th);
|
||
|
return;
|
||
|
}
|
||
|
} catch (Throwable th2) {
|
||
|
C13147fSI.c(th2);
|
||
|
this.d.dispose();
|
||
|
onError(th2);
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
} catch (Throwable th3) {
|
||
|
C13147fSI.c(th3);
|
||
|
this.d.dispose();
|
||
|
onError(th3);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
if (this.d == EnumC13192fTf.DISPOSED) {
|
||
|
C13418fZu.c(th);
|
||
|
} else {
|
||
|
this.d = EnumC13192fTf.DISPOSED;
|
||
|
this.a.onError(th);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onComplete() {
|
||
|
if (this.d == EnumC13192fTf.DISPOSED) {
|
||
|
return;
|
||
|
}
|
||
|
this.d = EnumC13192fTf.DISPOSED;
|
||
|
this.a.onComplete();
|
||
|
}
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final boolean isDisposed() {
|
||
|
return this.d.isDisposed();
|
||
|
}
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final void dispose() {
|
||
|
this.d.dispose();
|
||
|
this.d = EnumC13192fTf.DISPOSED;
|
||
|
}
|
||
|
}
|
||
|
}
|