package com.airbnb.lottie.model.content; import com.airbnb.deeplinkdispatch.UrlTreeKt; import com.airbnb.lottie.LottieDrawable; import com.airbnb.lottie.animation.content.Content; import com.airbnb.lottie.animation.content.TrimPathContent; import com.airbnb.lottie.model.animatable.AnimatableFloatValue; import com.airbnb.lottie.model.layer.BaseLayer; /* loaded from: classes.dex */ public class ShapeTrimPath implements ContentModel { private final AnimatableFloatValue end; private final boolean hidden; private final String name; private final AnimatableFloatValue offset; private final AnimatableFloatValue start; private final Type type; /* loaded from: classes.dex */ public enum Type { SIMULTANEOUSLY, INDIVIDUALLY; public static Type forId(int i) { if (i == 1) { return SIMULTANEOUSLY; } if (i == 2) { return INDIVIDUALLY; } throw new IllegalArgumentException("Unknown trim path type ".concat(String.valueOf(i))); } } public ShapeTrimPath(String str, Type type, AnimatableFloatValue animatableFloatValue, AnimatableFloatValue animatableFloatValue2, AnimatableFloatValue animatableFloatValue3, boolean z) { this.name = str; this.type = type; this.start = animatableFloatValue; this.end = animatableFloatValue2; this.offset = animatableFloatValue3; this.hidden = z; } @Override // com.airbnb.lottie.model.content.ContentModel public Content toContent(LottieDrawable lottieDrawable, BaseLayer baseLayer) { return new TrimPathContent(baseLayer, this); } public String toString() { StringBuilder sb = new StringBuilder("Trim Path: {start: "); sb.append(this.start); sb.append(", end: "); sb.append(this.end); sb.append(", offset: "); sb.append(this.offset); sb.append(UrlTreeKt.componentParamSuffix); return sb.toString(); } public boolean isHidden() { return this.hidden; } public Type getType() { return this.type; } public AnimatableFloatValue getStart() { return this.start; } public AnimatableFloatValue getOffset() { return this.offset; } public String getName() { return this.name; } public AnimatableFloatValue getEnd() { return this.end; } }