2021-12-17 21:59:34 +00:00
|
|
|
package b.g.a.b.q;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
import b.g.a.b.d;
|
|
|
|
import b.g.a.b.i;
|
|
|
|
import b.g.a.b.j;
|
|
|
|
import b.g.a.b.k;
|
|
|
|
import b.g.a.b.p.a;
|
|
|
|
import b.g.a.b.p.c;
|
|
|
|
import b.g.a.b.p.g;
|
|
|
|
import b.g.a.b.t.m;
|
2021-08-09 22:51:56 +00:00
|
|
|
import com.discord.widgets.chat.input.MentionUtilsKt;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.fasterxml.jackson.core.JsonGenerationException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.io.Writer;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.math.BigInteger;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Objects;
|
|
|
|
/* compiled from: WriterBasedJsonGenerator */
|
|
|
|
public class d extends b {
|
|
|
|
|
|
|
|
/* renamed from: x reason: collision with root package name */
|
2022-01-27 07:52:47 +00:00
|
|
|
public static final char[] f669x = ((char[]) a.a.clone());
|
2021-12-02 18:53:44 +00:00
|
|
|
public char[] A;
|
|
|
|
public int B;
|
|
|
|
public int C;
|
|
|
|
public int D;
|
|
|
|
public char[] E;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* renamed from: y reason: collision with root package name */
|
2022-01-27 07:52:47 +00:00
|
|
|
public final Writer f670y;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* renamed from: z reason: collision with root package name */
|
2022-01-27 07:52:47 +00:00
|
|
|
public char f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
public d(c cVar, int i, i iVar, Writer writer, char c) {
|
2021-07-24 02:37:17 +00:00
|
|
|
super(cVar, i, iVar);
|
|
|
|
int[] iArr;
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y = writer;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (cVar.e == null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
char[] a = cVar.c.a(1, 0);
|
2021-07-24 02:37:17 +00:00
|
|
|
cVar.e = a;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.A = a;
|
|
|
|
this.D = a.length;
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f671z = c;
|
2021-12-17 21:59:34 +00:00
|
|
|
if (c != '\"') {
|
|
|
|
if (c == '\"') {
|
2021-07-24 02:37:17 +00:00
|
|
|
iArr = a.f;
|
|
|
|
} else {
|
2022-02-02 08:50:56 +00:00
|
|
|
a.C0072a aVar = a.C0072a.a;
|
2022-01-27 07:52:47 +00:00
|
|
|
int[] iArr2 = aVar.f662b[c];
|
2021-07-24 02:37:17 +00:00
|
|
|
if (iArr2 == null) {
|
|
|
|
iArr2 = Arrays.copyOf(a.f, 128);
|
2021-12-17 21:59:34 +00:00
|
|
|
if (iArr2[c] == 0) {
|
|
|
|
iArr2[c] = -1;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2022-01-27 07:52:47 +00:00
|
|
|
aVar.f662b[c] = iArr2;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
iArr = iArr2;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.t = iArr;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw new IllegalStateException("Trying to call same allocXxx() method second time");
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void A() throws IOException {
|
|
|
|
t0("write a null");
|
|
|
|
H0();
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
public final void A0(char c, int i) throws IOException, JsonGenerationException {
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2;
|
|
|
|
if (i >= 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 2 > this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i3 = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i4 = i3 + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i4;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i3] = '\\';
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i4 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i4] = (char) i;
|
|
|
|
} else if (i != -2) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 5 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
int i5 = this.C;
|
|
|
|
char[] cArr2 = this.A;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i6 = i5 + 1;
|
|
|
|
cArr2[i5] = '\\';
|
|
|
|
int i7 = i6 + 1;
|
|
|
|
cArr2[i6] = 'u';
|
2021-12-17 21:59:34 +00:00
|
|
|
if (c > 255) {
|
|
|
|
int i8 = 255 & (c >> '\b');
|
2021-07-24 02:37:17 +00:00
|
|
|
int i9 = i7 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr3 = f669x;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr2[i7] = cArr3[i8 >> 4];
|
|
|
|
i2 = i9 + 1;
|
|
|
|
cArr2[i9] = cArr3[i8 & 15];
|
2021-12-17 21:59:34 +00:00
|
|
|
c = (char) (c & 255);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
int i10 = i7 + 1;
|
|
|
|
cArr2[i7] = '0';
|
|
|
|
i2 = i10 + 1;
|
|
|
|
cArr2[i10] = '0';
|
|
|
|
}
|
|
|
|
int i11 = i2 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr4 = f669x;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr2[i2] = cArr4[c >> 4];
|
|
|
|
cArr2[i11] = cArr4[c & 15];
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i11 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
Objects.requireNonNull(null);
|
|
|
|
throw null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void B0() throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i = this.C;
|
|
|
|
int i2 = this.B;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i3 = i - i2;
|
|
|
|
if (i3 > 0) {
|
|
|
|
this.B = 0;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = 0;
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(this.A, i2, i3);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void C(double d) throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (!this.p) {
|
2021-07-24 02:37:17 +00:00
|
|
|
String str = g.a;
|
|
|
|
if (!(Double.isNaN(d) || Double.isInfinite(d)) || !d(d.a.QUOTE_NON_NUMERIC_NUMBERS)) {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a number");
|
2021-07-24 02:37:17 +00:00
|
|
|
T(String.valueOf(d));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2021-11-05 06:48:17 +00:00
|
|
|
j0(String.valueOf(d));
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
public final int C0(char[] cArr, int i, int i2, char c, int i3) throws IOException, JsonGenerationException {
|
2021-07-24 02:37:17 +00:00
|
|
|
int i4;
|
|
|
|
if (i3 >= 0) {
|
|
|
|
if (i <= 1 || i >= i2) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.E;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (cArr2 == null) {
|
|
|
|
cArr2 = z0();
|
|
|
|
}
|
|
|
|
cArr2[1] = (char) i3;
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr2, 0, 2);
|
2021-07-24 02:37:17 +00:00
|
|
|
return i;
|
|
|
|
}
|
|
|
|
int i5 = i - 2;
|
|
|
|
cArr[i5] = '\\';
|
|
|
|
cArr[i5 + 1] = (char) i3;
|
|
|
|
return i5;
|
|
|
|
} else if (i3 == -2) {
|
|
|
|
Objects.requireNonNull(null);
|
|
|
|
throw null;
|
|
|
|
} else if (i <= 5 || i >= i2) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr3 = this.E;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (cArr3 == null) {
|
|
|
|
cArr3 = z0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.B = this.C;
|
2021-12-17 21:59:34 +00:00
|
|
|
if (c > 255) {
|
|
|
|
int i6 = (c >> '\b') & 255;
|
|
|
|
int i7 = c & 255;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr4 = f669x;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr3[10] = cArr4[i6 >> 4];
|
|
|
|
cArr3[11] = cArr4[i6 & 15];
|
|
|
|
cArr3[12] = cArr4[i7 >> 4];
|
|
|
|
cArr3[13] = cArr4[i7 & 15];
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr3, 8, 6);
|
2021-07-24 02:37:17 +00:00
|
|
|
return i;
|
|
|
|
}
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr5 = f669x;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr3[6] = cArr5[c >> 4];
|
|
|
|
cArr3[7] = cArr5[c & 15];
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr3, 2, 6);
|
2021-07-24 02:37:17 +00:00
|
|
|
return i;
|
|
|
|
} else {
|
|
|
|
int i8 = i - 6;
|
|
|
|
int i9 = i8 + 1;
|
|
|
|
cArr[i8] = '\\';
|
|
|
|
int i10 = i9 + 1;
|
|
|
|
cArr[i9] = 'u';
|
2021-12-17 21:59:34 +00:00
|
|
|
if (c > 255) {
|
|
|
|
int i11 = (c >> '\b') & 255;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i12 = i10 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr6 = f669x;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i10] = cArr6[i11 >> 4];
|
|
|
|
i4 = i12 + 1;
|
|
|
|
cArr[i12] = cArr6[i11 & 15];
|
2021-12-17 21:59:34 +00:00
|
|
|
c = (char) (c & 255);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
int i13 = i10 + 1;
|
|
|
|
cArr[i10] = '0';
|
|
|
|
i4 = i13 + 1;
|
|
|
|
cArr[i13] = '0';
|
|
|
|
}
|
|
|
|
int i14 = i4 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr7 = f669x;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr[i4] = cArr7[c >> 4];
|
|
|
|
cArr[i14] = cArr7[c & 15];
|
2021-07-24 02:37:17 +00:00
|
|
|
return i14 - 5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void D(float f) throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (!this.p) {
|
2021-11-05 06:48:17 +00:00
|
|
|
String str = g.a;
|
|
|
|
if (!(Float.isNaN(f) || Float.isInfinite(f)) || !d(d.a.QUOTE_NON_NUMERIC_NUMBERS)) {
|
|
|
|
t0("write a number");
|
|
|
|
T(String.valueOf(f));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
j0(String.valueOf(f));
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
public final void D0(char c, int i) throws IOException, JsonGenerationException {
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2;
|
|
|
|
if (i >= 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i3 = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i3 >= 2) {
|
|
|
|
int i4 = i3 - 2;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.B = i4;
|
|
|
|
char[] cArr = this.A;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i4] = '\\';
|
|
|
|
cArr[i4 + 1] = (char) i;
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.E;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (cArr2 == null) {
|
|
|
|
cArr2 = z0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.B = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr2[1] = (char) i;
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr2, 0, 2);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (i != -2) {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i5 = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i5 >= 6) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr3 = this.A;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i6 = i5 - 6;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.B = i6;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr3[i6] = '\\';
|
|
|
|
int i7 = i6 + 1;
|
|
|
|
cArr3[i7] = 'u';
|
2021-12-17 21:59:34 +00:00
|
|
|
if (c > 255) {
|
|
|
|
int i8 = (c >> '\b') & 255;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i9 = i7 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr4 = f669x;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr3[i9] = cArr4[i8 >> 4];
|
|
|
|
i2 = i9 + 1;
|
|
|
|
cArr3[i2] = cArr4[i8 & 15];
|
2021-12-17 21:59:34 +00:00
|
|
|
c = (char) (c & 255);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
int i10 = i7 + 1;
|
|
|
|
cArr3[i10] = '0';
|
|
|
|
i2 = i10 + 1;
|
|
|
|
cArr3[i2] = '0';
|
|
|
|
}
|
|
|
|
int i11 = i2 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr5 = f669x;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr3[i11] = cArr5[c >> 4];
|
|
|
|
cArr3[i11 + 1] = cArr5[c & 15];
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr6 = this.E;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (cArr6 == null) {
|
|
|
|
cArr6 = z0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.B = this.C;
|
2021-12-17 21:59:34 +00:00
|
|
|
if (c > 255) {
|
|
|
|
int i12 = (c >> '\b') & 255;
|
|
|
|
int i13 = c & 255;
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr7 = f669x;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr6[10] = cArr7[i12 >> 4];
|
|
|
|
cArr6[11] = cArr7[i12 & 15];
|
|
|
|
cArr6[12] = cArr7[i13 >> 4];
|
|
|
|
cArr6[13] = cArr7[i13 & 15];
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr6, 8, 6);
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2022-01-27 07:52:47 +00:00
|
|
|
char[] cArr8 = f669x;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr6[6] = cArr8[c >> 4];
|
|
|
|
cArr6[7] = cArr8[c & 15];
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr6, 2, 6);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
Objects.requireNonNull(null);
|
|
|
|
throw null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int E0(InputStream inputStream, byte[] bArr, int i, int i2, int i3) throws IOException {
|
|
|
|
int i4 = 0;
|
|
|
|
while (i < i2) {
|
|
|
|
bArr[i4] = bArr[i];
|
|
|
|
i4++;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
int min = Math.min(i3, bArr.length);
|
|
|
|
do {
|
|
|
|
int i5 = min - i4;
|
|
|
|
if (i5 == 0) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
int read = inputStream.read(bArr, i4, i5);
|
|
|
|
if (read < 0) {
|
|
|
|
return i4;
|
|
|
|
}
|
|
|
|
i4 += read;
|
|
|
|
} while (i4 < 3);
|
|
|
|
return i4;
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
public final int F0(b.g.a.b.a aVar, InputStream inputStream, byte[] bArr) throws IOException, JsonGenerationException {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i = this.D - 6;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2 = 2;
|
|
|
|
int d = aVar.d() >> 2;
|
|
|
|
int i3 = -3;
|
|
|
|
int i4 = 0;
|
|
|
|
int i5 = 0;
|
|
|
|
int i6 = 0;
|
|
|
|
while (true) {
|
|
|
|
if (i4 > i3) {
|
|
|
|
i5 = E0(inputStream, bArr, i4, i5, bArr.length);
|
|
|
|
if (i5 < 3) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
i3 = i5 - 3;
|
|
|
|
i4 = 0;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C > i) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
int i7 = i4 + 1;
|
|
|
|
int i8 = i7 + 1;
|
|
|
|
i4 = i8 + 1;
|
|
|
|
i6 += 3;
|
2021-12-17 21:59:34 +00:00
|
|
|
int b2 = aVar.b((((bArr[i7] & 255) | (bArr[i4] << 8)) << 8) | (bArr[i8] & 255), this.A, this.C);
|
|
|
|
this.C = b2;
|
2021-07-24 02:37:17 +00:00
|
|
|
d--;
|
|
|
|
if (d <= 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
2021-12-17 21:59:34 +00:00
|
|
|
int i9 = b2 + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i9;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr[b2] = '\\';
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i9 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i9] = 'n';
|
|
|
|
d = aVar.d() >> 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (i5 <= 0) {
|
|
|
|
return i6;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C > i) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
int i10 = bArr[0] << 16;
|
|
|
|
if (1 < i5) {
|
|
|
|
i10 |= (bArr[1] & 255) << 8;
|
|
|
|
} else {
|
|
|
|
i2 = 1;
|
|
|
|
}
|
|
|
|
int i11 = i6 + i2;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = aVar.c(i10, i2, this.A, this.C);
|
2021-07-24 02:37:17 +00:00
|
|
|
return i11;
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
public final int G0(b.g.a.b.a aVar, InputStream inputStream, byte[] bArr, int i) throws IOException, JsonGenerationException {
|
2021-07-24 02:37:17 +00:00
|
|
|
int E0;
|
2021-12-02 18:53:44 +00:00
|
|
|
int i2 = this.D - 6;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i3 = 2;
|
|
|
|
int d = aVar.d() >> 2;
|
|
|
|
int i4 = -3;
|
|
|
|
int i5 = 0;
|
|
|
|
int i6 = 0;
|
|
|
|
while (true) {
|
|
|
|
if (i <= 2) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (i5 > i4) {
|
|
|
|
i6 = E0(inputStream, bArr, i5, i6, i);
|
|
|
|
if (i6 < 3) {
|
|
|
|
i5 = 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
i4 = i6 - 3;
|
|
|
|
i5 = 0;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C > i2) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
int i7 = i5 + 1;
|
|
|
|
int i8 = i7 + 1;
|
|
|
|
i5 = i8 + 1;
|
|
|
|
i -= 3;
|
2021-12-17 21:59:34 +00:00
|
|
|
int b2 = aVar.b((((bArr[i7] & 255) | (bArr[i5] << 8)) << 8) | (bArr[i8] & 255), this.A, this.C);
|
|
|
|
this.C = b2;
|
2021-07-24 02:37:17 +00:00
|
|
|
d--;
|
|
|
|
if (d <= 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
2021-12-17 21:59:34 +00:00
|
|
|
int i9 = b2 + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i9;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr[b2] = '\\';
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i9 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i9] = 'n';
|
|
|
|
d = aVar.d() >> 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (i <= 0 || (E0 = E0(inputStream, bArr, i5, i6, i)) <= 0) {
|
|
|
|
return i;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C > i2) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
int i10 = bArr[0] << 16;
|
|
|
|
if (1 < E0) {
|
|
|
|
i10 |= (bArr[1] & 255) << 8;
|
|
|
|
} else {
|
|
|
|
i3 = 1;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = aVar.c(i10, i3, this.A, this.C);
|
2021-07-24 02:37:17 +00:00
|
|
|
return i - i3;
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void H(int i) throws IOException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a number");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.p) {
|
|
|
|
if (this.C + 13 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i2 = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i3 = i2 + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i3;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i2] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
int d = g.d(i, cArr, i3);
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = d;
|
|
|
|
char[] cArr2 = this.A;
|
|
|
|
this.C = d + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[d] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 11 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = g.d(i, this.A, this.C);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public final void H0() throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 4 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
int i = this.C;
|
|
|
|
char[] cArr = this.A;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i] = 'n';
|
|
|
|
int i2 = i + 1;
|
|
|
|
cArr[i2] = 'u';
|
|
|
|
int i3 = i2 + 1;
|
|
|
|
cArr[i3] = 'l';
|
|
|
|
int i4 = i3 + 1;
|
|
|
|
cArr[i4] = 'l';
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i4 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void I(long j) throws IOException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a number");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.p) {
|
|
|
|
if (this.C + 23 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2 = i + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i2;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
int e = g.e(j, cArr, i2);
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = e;
|
|
|
|
char[] cArr2 = this.A;
|
|
|
|
this.C = e + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[e] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 21 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = g.e(j, this.A, this.C);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public final void I0(String str) throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
T(str);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
|
|
|
int i2 = this.C;
|
|
|
|
this.C = i2 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[i2] = this.f671z;
|
2021-11-05 06:48:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void J(String str) throws IOException {
|
|
|
|
t0("write a number");
|
|
|
|
if (str == null) {
|
|
|
|
H0();
|
2021-12-02 18:53:44 +00:00
|
|
|
} else if (this.p) {
|
2021-11-05 06:48:17 +00:00
|
|
|
I0(str);
|
|
|
|
} else {
|
|
|
|
T(str);
|
|
|
|
}
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:67:0x010a, code lost:
|
2021-12-02 18:53:44 +00:00
|
|
|
r5 = r18.B;
|
2021-07-24 02:37:17 +00:00
|
|
|
r4 = r4 - r5;
|
|
|
|
*/
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:68:0x010d, code lost:
|
|
|
|
if (r4 <= 0) goto L_0x0114;
|
|
|
|
*/
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:69:0x010f, code lost:
|
2022-01-27 07:52:47 +00:00
|
|
|
r18.f670y.write(r3, r5, r4);
|
2021-07-24 02:37:17 +00:00
|
|
|
*/
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:70:0x0114, code lost:
|
2021-12-02 18:53:44 +00:00
|
|
|
r3 = r18.A;
|
|
|
|
r4 = r18.C;
|
|
|
|
r18.C = r4 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
r3 = r3[r4];
|
|
|
|
D0(r3, r0[r3]);
|
|
|
|
*/
|
|
|
|
/* JADX WARNING: Removed duplicated region for block: B:88:0x012a A[SYNTHETIC] */
|
|
|
|
public final void J0(String str) throws IOException {
|
|
|
|
char[] cArr;
|
|
|
|
int i;
|
2021-12-17 21:59:34 +00:00
|
|
|
char c;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2;
|
|
|
|
int i3;
|
|
|
|
char[] cArr2;
|
2021-12-17 21:59:34 +00:00
|
|
|
char c2;
|
2021-07-24 02:37:17 +00:00
|
|
|
char[] cArr3;
|
2021-12-17 21:59:34 +00:00
|
|
|
char c3;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i4;
|
|
|
|
int length = str.length();
|
2021-12-02 18:53:44 +00:00
|
|
|
int i5 = this.D;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (length > i5) {
|
|
|
|
B0();
|
|
|
|
int length2 = str.length();
|
|
|
|
int i6 = 0;
|
|
|
|
while (true) {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i7 = this.D;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i6 + i7 > length2) {
|
|
|
|
i7 = length2 - i6;
|
|
|
|
}
|
|
|
|
int i8 = i6 + i7;
|
2021-12-02 18:53:44 +00:00
|
|
|
str.getChars(i6, i8, this.A, 0);
|
|
|
|
int i9 = this.u;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i9 != 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
int[] iArr = this.t;
|
2021-07-24 02:37:17 +00:00
|
|
|
int min = Math.min(iArr.length, i9 + 1);
|
|
|
|
int i10 = 0;
|
|
|
|
int i11 = 0;
|
|
|
|
int i12 = 0;
|
|
|
|
while (i10 < i7) {
|
|
|
|
while (true) {
|
2021-12-02 18:53:44 +00:00
|
|
|
cArr3 = this.A;
|
2021-12-17 21:59:34 +00:00
|
|
|
c3 = cArr3[i10];
|
|
|
|
if (c3 >= min) {
|
|
|
|
if (c3 > i9) {
|
2021-07-24 02:37:17 +00:00
|
|
|
i4 = -1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} else {
|
2021-12-17 21:59:34 +00:00
|
|
|
i11 = iArr[c3];
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i11 != 0) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
i10++;
|
|
|
|
if (i10 >= i7) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
i4 = i11;
|
|
|
|
int i13 = i10 - i12;
|
|
|
|
if (i13 > 0) {
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr3, i12, i13);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i10 >= i7) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int i14 = i10 + 1;
|
2021-12-17 21:59:34 +00:00
|
|
|
i12 = C0(this.A, i14, i7, c3, i4);
|
2021-07-24 02:37:17 +00:00
|
|
|
i11 = i4;
|
|
|
|
i10 = i14;
|
|
|
|
}
|
|
|
|
} else {
|
2021-12-02 18:53:44 +00:00
|
|
|
int[] iArr2 = this.t;
|
2021-07-24 02:37:17 +00:00
|
|
|
int length3 = iArr2.length;
|
|
|
|
int i15 = 0;
|
|
|
|
int i16 = 0;
|
|
|
|
while (i15 < i7) {
|
|
|
|
do {
|
2021-12-02 18:53:44 +00:00
|
|
|
cArr2 = this.A;
|
2021-12-17 21:59:34 +00:00
|
|
|
c2 = cArr2[i15];
|
|
|
|
if (c2 < length3 && iArr2[c2] != 0) {
|
2021-07-24 02:37:17 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
i15++;
|
|
|
|
} while (i15 < i7);
|
|
|
|
int i17 = i15 - i16;
|
|
|
|
if (i17 > 0) {
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr2, i16, i17);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i15 >= i7) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int i18 = i15 + 1;
|
2021-12-17 21:59:34 +00:00
|
|
|
i16 = C0(this.A, i18, i7, c2, iArr2[c2]);
|
2021-07-24 02:37:17 +00:00
|
|
|
i15 = i18;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (i8 < length2) {
|
|
|
|
i6 = i8;
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + length > i5) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
str.getChars(0, length, this.A, this.C);
|
|
|
|
int i19 = this.u;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i19 != 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i20 = this.C + length;
|
|
|
|
int[] iArr3 = this.t;
|
2021-07-24 02:37:17 +00:00
|
|
|
int min2 = Math.min(iArr3.length, i19 + 1);
|
2021-12-02 18:53:44 +00:00
|
|
|
while (this.C < i20) {
|
2021-07-24 02:37:17 +00:00
|
|
|
while (true) {
|
2021-12-02 18:53:44 +00:00
|
|
|
cArr = this.A;
|
|
|
|
i = this.C;
|
2021-12-17 21:59:34 +00:00
|
|
|
c = cArr[i];
|
|
|
|
if (c < min2) {
|
|
|
|
i3 = iArr3[c];
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i3 != 0) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
i2 = i + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i2;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i2 >= i20) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
} else {
|
2021-12-17 21:59:34 +00:00
|
|
|
if (c > i19) {
|
2021-07-24 02:37:17 +00:00
|
|
|
i3 = -1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
i2 = i + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i2;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i2 >= i20) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
int i21 = this.B;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i22 = i - i21;
|
|
|
|
if (i22 > 0) {
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr, i21, i22);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C++;
|
2021-12-17 21:59:34 +00:00
|
|
|
D0(c, i3);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
int i23 = this.C + length;
|
|
|
|
int[] iArr4 = this.t;
|
2021-07-24 02:37:17 +00:00
|
|
|
int length4 = iArr4.length;
|
2021-12-02 18:53:44 +00:00
|
|
|
while (this.C < i23) {
|
2021-07-24 02:37:17 +00:00
|
|
|
while (true) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr4 = this.A;
|
|
|
|
int i24 = this.C;
|
2021-12-17 21:59:34 +00:00
|
|
|
char c4 = cArr4[i24];
|
|
|
|
if (c4 < length4 && iArr4[c4] != 0) {
|
2021-07-24 02:37:17 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
int i25 = i24 + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i25;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i25 >= i23) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void L(BigDecimal bigDecimal) throws IOException {
|
|
|
|
t0("write a number");
|
2021-07-24 02:37:17 +00:00
|
|
|
if (bigDecimal == null) {
|
|
|
|
H0();
|
2021-12-02 18:53:44 +00:00
|
|
|
} else if (this.p) {
|
2021-11-05 06:48:17 +00:00
|
|
|
I0(o0(bigDecimal));
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
2021-11-05 06:48:17 +00:00
|
|
|
T(o0(bigDecimal));
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void N(BigInteger bigInteger) throws IOException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a number");
|
2021-07-24 02:37:17 +00:00
|
|
|
if (bigInteger == null) {
|
|
|
|
H0();
|
2021-12-02 18:53:44 +00:00
|
|
|
} else if (this.p) {
|
2021-07-24 02:37:17 +00:00
|
|
|
I0(bigInteger.toString());
|
|
|
|
} else {
|
|
|
|
T(bigInteger.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void O(short s2) throws IOException {
|
|
|
|
t0("write a number");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.p) {
|
|
|
|
if (this.C + 8 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2 = i + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i2;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i] = this.f671z;
|
2021-11-02 06:38:17 +00:00
|
|
|
int d = g.d(s2, cArr, i2);
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = d;
|
|
|
|
char[] cArr2 = this.A;
|
|
|
|
this.C = d + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[d] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 6 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = g.d(s2, this.A, this.C);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
|
|
|
public void R(char c) throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr[i] = c;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void S(k kVar) throws IOException {
|
2021-12-17 21:59:34 +00:00
|
|
|
int b2 = kVar.b(this.A, this.C);
|
|
|
|
if (b2 < 0) {
|
2021-07-24 02:37:17 +00:00
|
|
|
T(kVar.getValue());
|
|
|
|
} else {
|
2021-12-17 21:59:34 +00:00
|
|
|
this.C += b2;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void T(String str) throws IOException {
|
|
|
|
int length = str.length();
|
2021-12-02 18:53:44 +00:00
|
|
|
int i = this.D - this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i == 0) {
|
|
|
|
B0();
|
2021-12-02 18:53:44 +00:00
|
|
|
i = this.D - this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
if (i >= length) {
|
2021-12-02 18:53:44 +00:00
|
|
|
str.getChars(0, length, this.A, this.C);
|
|
|
|
this.C += length;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
int i2 = this.D;
|
|
|
|
int i3 = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i4 = i2 - i3;
|
2021-12-02 18:53:44 +00:00
|
|
|
str.getChars(0, i4, this.A, i3);
|
|
|
|
this.C += i4;
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
int length2 = str.length() - i4;
|
|
|
|
while (true) {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i5 = this.D;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (length2 > i5) {
|
|
|
|
int i6 = i4 + i5;
|
2021-12-02 18:53:44 +00:00
|
|
|
str.getChars(i4, i6, this.A, 0);
|
|
|
|
this.B = 0;
|
|
|
|
this.C = i5;
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
length2 -= i5;
|
|
|
|
i4 = i6;
|
|
|
|
} else {
|
2021-12-02 18:53:44 +00:00
|
|
|
str.getChars(i4, i4 + length2, this.A, 0);
|
|
|
|
this.B = 0;
|
|
|
|
this.C = length2;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void U(char[] cArr, int i, int i2) throws IOException {
|
|
|
|
if (i2 < 32) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (i2 > this.D - this.C) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
System.arraycopy(cArr, i, this.A, this.C, i2);
|
|
|
|
this.C += i2;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
B0();
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr, i, i2);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void W() throws IOException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("start an array");
|
2021-12-02 18:53:44 +00:00
|
|
|
this.q = this.q.f();
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
|
|
|
jVar.g(this);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i] = '[';
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void X(Object obj) throws IOException {
|
|
|
|
t0("start an array");
|
2021-12-02 18:53:44 +00:00
|
|
|
this.q = this.q.g(obj);
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
|
|
|
jVar.g(this);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i] = '[';
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void b0(Object obj, int i) throws IOException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("start an array");
|
2021-12-02 18:53:44 +00:00
|
|
|
this.q = this.q.g(obj);
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
|
|
|
jVar.g(this);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i2 = this.C;
|
|
|
|
this.C = i2 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i2] = '[';
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void c0() throws IOException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("start an object");
|
2021-12-02 18:53:44 +00:00
|
|
|
this.q = this.q.h();
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
|
|
|
jVar.a(this);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i] = '{';
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d, java.io.Closeable, java.lang.AutoCloseable
|
2021-07-24 02:37:17 +00:00
|
|
|
public void close() throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.A != null && d(d.a.AUTO_CLOSE_JSON_CONTENT)) {
|
2021-07-24 02:37:17 +00:00
|
|
|
while (true) {
|
2021-12-02 18:53:44 +00:00
|
|
|
c cVar = this.q;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (!cVar.b()) {
|
|
|
|
if (!cVar.c()) {
|
|
|
|
break;
|
|
|
|
}
|
2021-11-05 06:48:17 +00:00
|
|
|
u();
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
t();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
B0();
|
|
|
|
this.B = 0;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = 0;
|
2022-01-27 07:52:47 +00:00
|
|
|
if (this.f670y != null) {
|
|
|
|
if (this.f668s.f663b || d(d.a.AUTO_CLOSE_TARGET)) {
|
|
|
|
this.f670y.close();
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (d(d.a.FLUSH_PASSED_TO_STREAM)) {
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.flush();
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (cArr != null) {
|
2021-12-02 18:53:44 +00:00
|
|
|
this.A = null;
|
2022-01-27 07:52:47 +00:00
|
|
|
c cVar2 = this.f668s;
|
2021-07-24 02:37:17 +00:00
|
|
|
Objects.requireNonNull(cVar2);
|
|
|
|
char[] cArr2 = cVar2.e;
|
|
|
|
if (cArr == cArr2 || cArr.length >= cArr2.length) {
|
|
|
|
cVar2.e = null;
|
2021-12-17 21:59:34 +00:00
|
|
|
cVar2.c.d.set(1, cArr);
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw new IllegalArgumentException("Trying to release buffer smaller than original");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void d0(Object obj) throws IOException {
|
|
|
|
t0("start an object");
|
2021-12-02 18:53:44 +00:00
|
|
|
this.q = this.q.i(obj);
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
|
|
|
jVar.a(this);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i] = '{';
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
|
|
|
public int f(b.g.a.b.a aVar, InputStream inputStream, int i) throws IOException, JsonGenerationException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a binary value");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i2 = this.C;
|
|
|
|
this.C = i2 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i2] = this.f671z;
|
|
|
|
c cVar = this.f668s;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (cVar.d == null) {
|
2021-12-17 21:59:34 +00:00
|
|
|
b.g.a.b.t.a aVar2 = cVar.c;
|
2021-07-24 02:37:17 +00:00
|
|
|
Objects.requireNonNull(aVar2);
|
2021-12-17 21:59:34 +00:00
|
|
|
int i3 = b.g.a.b.t.a.a[3];
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i3 <= 0) {
|
|
|
|
i3 = 0;
|
|
|
|
}
|
2021-12-17 21:59:34 +00:00
|
|
|
byte[] andSet = aVar2.c.getAndSet(3, null);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (andSet == null || andSet.length < i3) {
|
|
|
|
andSet = new byte[i3];
|
|
|
|
}
|
|
|
|
cVar.d = andSet;
|
|
|
|
if (i < 0) {
|
|
|
|
try {
|
|
|
|
i = F0(aVar, inputStream, andSet);
|
|
|
|
} catch (Throwable th) {
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f668s.a(andSet);
|
2021-07-24 02:37:17 +00:00
|
|
|
throw th;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
int G0 = G0(aVar, inputStream, andSet, i);
|
|
|
|
if (G0 > 0) {
|
|
|
|
throw new JsonGenerationException("Too few bytes available: missing " + G0 + " bytes (out of " + i + ")", this);
|
|
|
|
}
|
|
|
|
}
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f668s.a(andSet);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
|
|
|
int i4 = this.C;
|
|
|
|
this.C = i4 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[i4] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return i;
|
|
|
|
}
|
|
|
|
throw new IllegalStateException("Trying to call same allocXxx() method second time");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.io.Flushable
|
|
|
|
public void flush() throws IOException {
|
|
|
|
B0();
|
2022-01-27 07:52:47 +00:00
|
|
|
if (this.f670y != null && d(d.a.FLUSH_PASSED_TO_STREAM)) {
|
|
|
|
this.f670y.flush();
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void g0(k kVar) throws IOException {
|
|
|
|
t0("write a string");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2 = i + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i2;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i] = this.f671z;
|
2021-12-17 21:59:34 +00:00
|
|
|
int c = kVar.c(cArr, i2);
|
|
|
|
if (c < 0) {
|
2021-07-24 02:37:17 +00:00
|
|
|
char[] a = kVar.a();
|
|
|
|
int length = a.length;
|
|
|
|
if (length < 32) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (length > this.D - this.C) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
System.arraycopy(a, 0, this.A, this.C, length);
|
|
|
|
this.C += length;
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
B0();
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(a, 0, length);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
|
|
|
int i3 = this.C;
|
|
|
|
this.C = i3 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[i3] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-17 21:59:34 +00:00
|
|
|
int i4 = this.C + c;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i4;
|
|
|
|
if (i4 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr3 = this.A;
|
|
|
|
int i5 = this.C;
|
|
|
|
this.C = i5 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr3[i5] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void j0(String str) throws IOException {
|
|
|
|
t0("write a string");
|
2021-07-24 02:37:17 +00:00
|
|
|
if (str == null) {
|
|
|
|
H0();
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
J0(str);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
|
|
|
int i2 = this.C;
|
|
|
|
this.C = i2 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[i2] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void m0(char[] cArr, int i, int i2) throws IOException {
|
2021-12-17 21:59:34 +00:00
|
|
|
char c;
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a string");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
|
|
|
int i3 = this.C;
|
|
|
|
this.C = i3 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[i3] = this.f671z;
|
2021-12-02 18:53:44 +00:00
|
|
|
int i4 = this.u;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i4 != 0) {
|
|
|
|
int i5 = i2 + i;
|
2021-12-02 18:53:44 +00:00
|
|
|
int[] iArr = this.t;
|
2021-07-24 02:37:17 +00:00
|
|
|
int min = Math.min(iArr.length, i4 + 1);
|
|
|
|
int i6 = 0;
|
|
|
|
while (i < i5) {
|
|
|
|
int i7 = i;
|
|
|
|
while (true) {
|
2021-12-17 21:59:34 +00:00
|
|
|
c = cArr[i7];
|
|
|
|
if (c >= min) {
|
|
|
|
if (c > i4) {
|
2021-07-24 02:37:17 +00:00
|
|
|
i6 = -1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} else {
|
2021-12-17 21:59:34 +00:00
|
|
|
i6 = iArr[c];
|
2021-07-24 02:37:17 +00:00
|
|
|
if (i6 != 0) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
i7++;
|
|
|
|
if (i7 >= i5) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int i8 = i7 - i;
|
|
|
|
if (i8 < 32) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + i8 > this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
if (i8 > 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
System.arraycopy(cArr, i, this.A, this.C, i8);
|
|
|
|
this.C += i8;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
B0();
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr, i, i8);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
if (i7 >= i5) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
i = i7 + 1;
|
2021-12-17 21:59:34 +00:00
|
|
|
A0(c, i6);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
int i9 = i2 + i;
|
2021-12-02 18:53:44 +00:00
|
|
|
int[] iArr2 = this.t;
|
2021-07-24 02:37:17 +00:00
|
|
|
int length = iArr2.length;
|
|
|
|
while (i < i9) {
|
|
|
|
int i10 = i;
|
|
|
|
do {
|
2021-12-17 21:59:34 +00:00
|
|
|
char c2 = cArr[i10];
|
|
|
|
if (c2 < length && iArr2[c2] != 0) {
|
2021-07-24 02:37:17 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
i10++;
|
|
|
|
} while (i10 < i9);
|
|
|
|
int i11 = i10 - i;
|
|
|
|
if (i11 < 32) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + i11 > this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
if (i11 > 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
System.arraycopy(cArr, i, this.A, this.C, i11);
|
|
|
|
this.C += i11;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
B0();
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f670y.write(cArr, i, i11);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
if (i10 >= i9) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
i = i10 + 1;
|
2021-12-17 21:59:34 +00:00
|
|
|
char c3 = cArr[i10];
|
|
|
|
A0(c3, iArr2[c3]);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr3 = this.A;
|
|
|
|
int i12 = this.C;
|
|
|
|
this.C = i12 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr3[i12] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
|
|
|
public void n(b.g.a.b.a aVar, byte[] bArr, int i, int i2) throws IOException, JsonGenerationException {
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a binary value");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i3 = this.C;
|
|
|
|
this.C = i3 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i3] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i4 = i2 + i;
|
|
|
|
int i5 = i4 - 3;
|
2021-12-02 18:53:44 +00:00
|
|
|
int i6 = this.D - 6;
|
2021-07-24 02:37:17 +00:00
|
|
|
int d = aVar.d() >> 2;
|
|
|
|
while (i <= i5) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C > i6) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
int i7 = i + 1;
|
|
|
|
int i8 = i7 + 1;
|
|
|
|
int i9 = i8 + 1;
|
2021-12-17 21:59:34 +00:00
|
|
|
int b2 = aVar.b((((bArr[i] << 8) | (bArr[i7] & 255)) << 8) | (bArr[i8] & 255), this.A, this.C);
|
|
|
|
this.C = b2;
|
2021-07-24 02:37:17 +00:00
|
|
|
d--;
|
|
|
|
if (d <= 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
2021-12-17 21:59:34 +00:00
|
|
|
int i10 = b2 + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i10;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr2[b2] = '\\';
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i10 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr2[i10] = 'n';
|
|
|
|
d = aVar.d() >> 2;
|
|
|
|
}
|
|
|
|
i = i9;
|
|
|
|
}
|
|
|
|
int i11 = i4 - i;
|
|
|
|
if (i11 > 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C > i6) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
int i12 = i + 1;
|
|
|
|
int i13 = bArr[i] << 16;
|
|
|
|
if (i11 == 2) {
|
|
|
|
i13 |= (bArr[i12] & 255) << 8;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = aVar.c(i13, i11, this.A, this.C);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr3 = this.A;
|
|
|
|
int i14 = this.C;
|
|
|
|
this.C = i14 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr3[i14] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void s(boolean z2) throws IOException {
|
|
|
|
int i;
|
2021-11-05 06:48:17 +00:00
|
|
|
t0("write a boolean value");
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 5 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
int i2 = this.C;
|
|
|
|
char[] cArr = this.A;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (z2) {
|
|
|
|
cArr[i2] = 't';
|
|
|
|
int i3 = i2 + 1;
|
|
|
|
cArr[i3] = 'r';
|
|
|
|
int i4 = i3 + 1;
|
|
|
|
cArr[i4] = 'u';
|
|
|
|
i = i4 + 1;
|
|
|
|
cArr[i] = 'e';
|
|
|
|
} else {
|
|
|
|
cArr[i2] = 'f';
|
|
|
|
int i5 = i2 + 1;
|
|
|
|
cArr[i5] = 'a';
|
|
|
|
int i6 = i5 + 1;
|
|
|
|
cArr[i6] = 'l';
|
|
|
|
int i7 = i6 + 1;
|
|
|
|
cArr[i7] = 's';
|
|
|
|
i = i7 + 1;
|
|
|
|
cArr[i] = 'e';
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void t() throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.q.b()) {
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
2022-01-27 07:52:47 +00:00
|
|
|
jVar.j(this, this.q.f658b + 1);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i] = ']';
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
c cVar = this.q;
|
2021-07-24 02:37:17 +00:00
|
|
|
cVar.g = null;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.q = cVar.c;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-17 21:59:34 +00:00
|
|
|
StringBuilder R = b.d.b.a.a.R("Current context not Array but ");
|
2021-12-02 18:53:44 +00:00
|
|
|
R.append(this.q.e());
|
2021-11-05 06:48:17 +00:00
|
|
|
throw new JsonGenerationException(R.toString(), this);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.o.a
|
2021-11-05 06:48:17 +00:00
|
|
|
public final void t0(String str) throws IOException {
|
2021-12-17 21:59:34 +00:00
|
|
|
char c;
|
2021-12-02 18:53:44 +00:00
|
|
|
int m = this.q.m();
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar == null) {
|
|
|
|
if (m == 1) {
|
2021-12-17 21:59:34 +00:00
|
|
|
c = ',';
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (m == 2) {
|
2021-12-17 21:59:34 +00:00
|
|
|
c = MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR;
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (m == 3) {
|
2021-12-02 18:53:44 +00:00
|
|
|
k kVar = this.v;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (kVar != null) {
|
|
|
|
T(kVar.getValue());
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
} else if (m == 5) {
|
|
|
|
x0(str);
|
|
|
|
throw null;
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-12-17 21:59:34 +00:00
|
|
|
cArr[i] = c;
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (m != 0) {
|
|
|
|
if (m == 1) {
|
|
|
|
jVar.c(this);
|
|
|
|
} else if (m == 2) {
|
|
|
|
jVar.k(this);
|
|
|
|
} else if (m == 3) {
|
|
|
|
jVar.b(this);
|
|
|
|
} else if (m != 5) {
|
|
|
|
int i2 = m.a;
|
|
|
|
throw new RuntimeException("Internal error: this code path should never get executed");
|
|
|
|
} else {
|
|
|
|
x0(str);
|
|
|
|
throw null;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
} else if (this.q.b()) {
|
|
|
|
this.l.h(this);
|
|
|
|
} else if (this.q.c()) {
|
|
|
|
this.l.d(this);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void u() throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.q.c()) {
|
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
2022-01-27 07:52:47 +00:00
|
|
|
jVar.f(this, this.q.f658b + 1);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr[i] = '}';
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
c cVar = this.q;
|
2021-07-24 02:37:17 +00:00
|
|
|
cVar.g = null;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.q = cVar.c;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-17 21:59:34 +00:00
|
|
|
StringBuilder R = b.d.b.a.a.R("Current context not Object but ");
|
2021-12-02 18:53:44 +00:00
|
|
|
R.append(this.q.e());
|
2021-11-05 06:48:17 +00:00
|
|
|
throw new JsonGenerationException(R.toString(), this);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-07-24 02:37:17 +00:00
|
|
|
public void x(k kVar) throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
int l = this.q.l(kVar.getValue());
|
2021-07-24 02:37:17 +00:00
|
|
|
if (l != 4) {
|
|
|
|
boolean z2 = l == 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
|
|
|
if (z2) {
|
|
|
|
jVar.i(this);
|
|
|
|
} else {
|
|
|
|
jVar.d(this);
|
|
|
|
}
|
|
|
|
char[] a = kVar.a();
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.w) {
|
2021-07-24 02:37:17 +00:00
|
|
|
U(a, 0, a.length);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
U(a, 0, a.length);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
|
|
|
int i2 = this.C;
|
|
|
|
this.C = i2 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[i2] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 1 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
if (z2) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr3 = this.A;
|
|
|
|
int i3 = this.C;
|
|
|
|
this.C = i3 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr3[i3] = ',';
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.w) {
|
2021-07-24 02:37:17 +00:00
|
|
|
char[] a2 = kVar.a();
|
|
|
|
U(a2, 0, a2.length);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr4 = this.A;
|
|
|
|
int i4 = this.C;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i5 = i4 + 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i5;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr4[i4] = this.f671z;
|
2021-12-17 21:59:34 +00:00
|
|
|
int c = kVar.c(cArr4, i5);
|
|
|
|
if (c < 0) {
|
2021-07-24 02:37:17 +00:00
|
|
|
char[] a3 = kVar.a();
|
|
|
|
U(a3, 0, a3.length);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr5 = this.A;
|
|
|
|
int i6 = this.C;
|
|
|
|
this.C = i6 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr5[i6] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-17 21:59:34 +00:00
|
|
|
int i7 = this.C + c;
|
2021-12-02 18:53:44 +00:00
|
|
|
this.C = i7;
|
|
|
|
if (i7 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr6 = this.A;
|
|
|
|
int i8 = this.C;
|
|
|
|
this.C = i8 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr6[i8] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw new JsonGenerationException("Can not write a field name, expecting a value", this);
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.g.a.b.d
|
2021-11-05 06:48:17 +00:00
|
|
|
public void y(String str) throws IOException {
|
2021-12-02 18:53:44 +00:00
|
|
|
int l = this.q.l(str);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (l != 4) {
|
|
|
|
boolean z2 = l == 1;
|
2021-12-02 18:53:44 +00:00
|
|
|
j jVar = this.l;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (jVar != null) {
|
|
|
|
if (z2) {
|
|
|
|
jVar.i(this);
|
|
|
|
} else {
|
|
|
|
jVar.d(this);
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.w) {
|
2021-07-24 02:37:17 +00:00
|
|
|
J0(str);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr = this.A;
|
|
|
|
int i = this.C;
|
|
|
|
this.C = i + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr[i] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
J0(str);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr2 = this.A;
|
|
|
|
int i2 = this.C;
|
|
|
|
this.C = i2 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr2[i2] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C + 1 >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
|
|
|
if (z2) {
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr3 = this.A;
|
|
|
|
int i3 = this.C;
|
|
|
|
this.C = i3 + 1;
|
2021-07-24 02:37:17 +00:00
|
|
|
cArr3[i3] = ',';
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.w) {
|
2021-07-24 02:37:17 +00:00
|
|
|
J0(str);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr4 = this.A;
|
|
|
|
int i4 = this.C;
|
|
|
|
this.C = i4 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr4[i4] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
J0(str);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.C >= this.D) {
|
2021-07-24 02:37:17 +00:00
|
|
|
B0();
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
char[] cArr5 = this.A;
|
|
|
|
int i5 = this.C;
|
|
|
|
this.C = i5 + 1;
|
2022-01-27 07:52:47 +00:00
|
|
|
cArr5[i5] = this.f671z;
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw new JsonGenerationException("Can not write a field name, expecting a value", this);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final char[] z0() {
|
|
|
|
char[] cArr = new char[14];
|
|
|
|
cArr[0] = '\\';
|
|
|
|
cArr[2] = '\\';
|
|
|
|
cArr[3] = 'u';
|
|
|
|
cArr[4] = '0';
|
|
|
|
cArr[5] = '0';
|
|
|
|
cArr[8] = '\\';
|
|
|
|
cArr[9] = 'u';
|
2021-12-02 18:53:44 +00:00
|
|
|
this.E = cArr;
|
2021-07-24 02:37:17 +00:00
|
|
|
return cArr;
|
|
|
|
}
|
|
|
|
}
|