package c.i.e.q; import c.i.e.a; import c.i.e.c; import c.i.e.d; import c.i.e.j; import com.google.zxing.ChecksumException; import com.google.zxing.FormatException; import com.google.zxing.NotFoundException; import com.google.zxing.Result; import java.util.Map; /* compiled from: UPCAReader */ public final class l extends p { public final p h = new e(); public static Result o(Result result) throws FormatException { String str = result.a; if (str.charAt(0) == '0') { Result result2 = new Result(str.substring(1), null, result.f2474c, a.UPC_A); Map map = result.e; if (map != null) { result2.a(map); } return result2; } throw FormatException.a(); } @Override // c.i.e.q.k, c.i.e.i public Result a(c cVar, Map map) throws NotFoundException, FormatException { return o(this.h.a(cVar, map)); } @Override // c.i.e.q.p, c.i.e.q.k public Result b(int i, c.i.e.n.a aVar, Map map) throws NotFoundException, FormatException, ChecksumException { return o(this.h.b(i, aVar, map)); } @Override // c.i.e.q.p public int j(c.i.e.n.a aVar, int[] iArr, StringBuilder sb) throws NotFoundException { return this.h.j(aVar, iArr, sb); } @Override // c.i.e.q.p public Result k(int i, c.i.e.n.a aVar, int[] iArr, Map map) throws NotFoundException, FormatException, ChecksumException { return o(this.h.k(i, aVar, iArr, map)); } @Override // c.i.e.q.p public a n() { return a.UPC_A; } }