97 lines
2.8 KiB
Java
97 lines
2.8 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Objects;
|
||
|
|
||
|
/* renamed from: o.fXc, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C13329fXc<T, R> extends fUX<T, R> {
|
||
|
private InterfaceC13189fTc<R> b;
|
||
|
private fSL<R, ? super T, R> d;
|
||
|
|
||
|
public C13329fXc(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13189fTc<R> interfaceC13189fTc, fSL<R, ? super T, R> fsl) {
|
||
|
super(interfaceC13169fSq);
|
||
|
this.d = fsl;
|
||
|
this.b = interfaceC13189fTc;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC13163fSk
|
||
|
public final void subscribeActual(InterfaceC13174fSv<? super R> interfaceC13174fSv) {
|
||
|
try {
|
||
|
this.c.subscribe(new Sts(interfaceC13174fSv, this.d, Objects.requireNonNull(this.b.d(), "The seed supplied is null")));
|
||
|
} catch (Throwable th) {
|
||
|
C13147fSI.c(th);
|
||
|
EnumC13195fTi.a(th, interfaceC13174fSv);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.fXc$Sts */
|
||
|
/* loaded from: classes6.dex */
|
||
|
static final class Sts<T, R> implements InterfaceC13174fSv<T>, fSJ {
|
||
|
private InterfaceC13174fSv<? super R> a;
|
||
|
private fSL<R, ? super T, R> b;
|
||
|
private R c;
|
||
|
private boolean d;
|
||
|
private fSJ e;
|
||
|
|
||
|
Sts(InterfaceC13174fSv<? super R> interfaceC13174fSv, fSL<R, ? super T, R> fsl, R r) {
|
||
|
this.a = interfaceC13174fSv;
|
||
|
this.b = fsl;
|
||
|
this.c = r;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onSubscribe(fSJ fsj) {
|
||
|
if (EnumC13192fTf.d(this.e, fsj)) {
|
||
|
this.e = fsj;
|
||
|
this.a.onSubscribe(this);
|
||
|
this.a.onNext(this.c);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final void dispose() {
|
||
|
this.e.dispose();
|
||
|
}
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final boolean isDisposed() {
|
||
|
return this.e.isDisposed();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onNext(T t) {
|
||
|
if (this.d) {
|
||
|
return;
|
||
|
}
|
||
|
try {
|
||
|
R r = (R) Objects.requireNonNull(this.b.e(this.c, t), "The accumulator returned a null value");
|
||
|
this.c = r;
|
||
|
this.a.onNext(r);
|
||
|
} catch (Throwable th) {
|
||
|
C13147fSI.c(th);
|
||
|
this.e.dispose();
|
||
|
onError(th);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
if (this.d) {
|
||
|
C13418fZu.c(th);
|
||
|
} else {
|
||
|
this.d = true;
|
||
|
this.a.onError(th);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onComplete() {
|
||
|
if (this.d) {
|
||
|
return;
|
||
|
}
|
||
|
this.d = true;
|
||
|
this.a.onComplete();
|
||
|
}
|
||
|
}
|
||
|
}
|