package pl0; import a23.d3; import android.animation.Animator; import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.annotation.SuppressLint; import android.content.res.Resources; import android.os.Bundle; import android.util.ArrayMap; import android.util.TypedValue; import android.view.MotionEvent; import android.view.ScaleGestureDetector; import android.view.View; import android.view.ViewGroup; import android.view.animation.AccelerateDecelerateInterpolator; import android.widget.FrameLayout; import androidx.lifecycle.Lifecycle; import b00.a; import ba0.h; import com.alibaba.wireless.security.open.nocaptcha.INoCaptchaComponent; import com.facebook.drawee.backends.pipeline.Fresco; import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting; import com.xiaomi.mipush.sdk.Constants; import com.xingin.android.redutils.base.XhsActivity; import com.xingin.capa.editcontainer.container.ElementContainerView; import com.xingin.capa.lib.R$anim; import com.xingin.capa.lib.R$string; import com.xingin.capa.lib.bean.VideoBackgroundBean; import com.xingin.capa.lib.entity.BgmItemBean; import com.xingin.capa.lib.entrance.album.entity.Item; import com.xingin.capa.lib.newcapa.session.CapaFilterBean; import com.xingin.capa.lib.newcapa.session.CapaMusicBean; import com.xingin.capa.lib.newcapa.session.CapaVideoModel; import com.xingin.capa.lib.newcapa.videoedit.characters.CapaVideoTextModel; import com.xingin.capa.lib.newcapa.videoedit.data.Slice; import com.xingin.capa.lib.newcapa.videoedit.data.VideoPaintBean; import com.xingin.capa.lib.post.utils.CapaAbConfig; import com.xingin.capa.lib.senseme.entity.FilterEntity; import com.xingin.capa.lib.video.entity.OneKeyGenerate2; import com.xingin.capa.lib.video.entity.VideoTemplate; import com.xingin.capa.v2.feature.label.LabelActivity; import com.xingin.capa.v2.feature.pip.model.CapaPasterPIPModel; import com.xingin.capa.v2.feature.post.ui.cover.ViewWrapper; import com.xingin.capa.v2.feature.statistics.VideoEditTracker; import com.xingin.capa.v2.feature.sticker.AddStickerView; import com.xingin.capa.v2.feature.style.data.StyleData; import com.xingin.capa.v2.feature.videoedit.modules.onekeystyle.data.StyleModel; import com.xingin.capa.v2.feature.videoedit.modules.text.AddTextView; import com.xingin.capa.v2.session2.impl.NoteEditorImpl; import com.xingin.capa.v2.session2.internal.IImageEditor; import com.xingin.capa.v2.session2.internal.IVideoEditor; import com.xingin.capa.v2.session2.model.EditableVideo2; import com.xingin.capa.v2.utils.h1; import com.xingin.capa.v2.utils.t0; import com.xingin.capa.v2.utils.v0; import com.xingin.capa.videotoolbox.data.SimpleVideoMetadata; import com.xingin.capa.videotoolbox.editor.VideoEditProxy; import com.xingin.entities.HashTagListBean; import com.xingin.foundation.framework.v2.ControllerExtensionsKt; import com.xingin.library.videoedit.define.XavFilterDef; import com.xingin.redview.widgets.SaveProgressView; import com.xingin.tags.library.entity.CapaPasterInteractStickerModel; import com.xingin.tags.library.entity.CapaPasterStickerModel; import com.xingin.tags.library.entity.CapaPasterTagModel; import com.xingin.tags.library.entity.FloatingStickerModel; import com.xingin.tags.library.sticker.model.CapaPasterBaseModel; import com.xingin.uploader.api.DnsPreloader; import com.xingin.utils.core.d1; import dh0.m; import dm0.d; import eq0.c; import j90.t; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Objects; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import kotlin.Metadata; import kotlin.Pair; import kotlin.TuplesKt; import kotlin.Unit; import kotlin.collections.CollectionsKt__CollectionsKt; import kotlin.collections.CollectionsKt__IterablesKt; import kotlin.collections.CollectionsKt___CollectionsKt; import kotlin.collections.SetsKt__SetsKt; import kotlin.jvm.JvmField; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.FunctionReferenceImpl; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import pq0.m; import pq0.n; import pq0.o; import pq0.p; import pq0.z; import uh0.h; @Metadata(bv = {}, d1 = {"\u0000\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0007\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u001a\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\f\b\u0007\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001:\u0002\u0003B\t¢\u0006\u0006\b\u0003\u0010Ú\u0002J\b\u0010\u0005\u001a\u00020\u0004H\u0002J\b\u0010\u0006\u001a\u00020\u0004H\u0002J\b\u0010\b\u001a\u00020\u0007H\u0002J\b\u0010\t\u001a\u00020\u0004H\u0002J\b\u0010\n\u001a\u00020\u0004H\u0002J\b\u0010\u000b\u001a\u00020\u0004H\u0002J\b\u0010\f\u001a\u00020\u0004H\u0002J\b\u0010\r\u001a\u00020\u0004H\u0002J\b\u0010\u000e\u001a\u00020\u0004H\u0002J\b\u0010\u000f\u001a\u00020\u0004H\u0002J\b\u0010\u0010\u001a\u00020\u0004H\u0002J\u0012\u0010\u0014\u001a\u0004\u0018\u00010\u00132\u0006\u0010\u0012\u001a\u00020\u0011H\u0002J\u0010\u0010\u0017\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u0015H\u0002J\u0010\u0010\u0019\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u0018H\u0003J\b\u0010\u001a\u001a\u00020\u0004H\u0002J\u0012\u0010\u001e\u001a\u0004\u0018\u00010\u001d2\u0006\u0010\u001c\u001a\u00020\u001bH\u0002J\u0012\u0010!\u001a\u00020\u001d2\b\u0010 \u001a\u0004\u0018\u00010\u001fH\u0002J\u0012\u0010#\u001a\u00020\u00042\b\u0010\"\u001a\u0004\u0018\u00010\u001dH\u0002J\b\u0010$\u001a\u00020\u0004H\u0002J,\u0010)\u001a\u00020\u00042\"\b\u0002\u0010(\u001a\u001c\u0012\u0004\u0012\u00020&\u0012\u0004\u0012\u00020\u0004\u0018\u00010%j\n\u0012\u0004\u0012\u00020&\u0018\u0001`'H\u0002J\u001a\u0010,\u001a\u00020\u00042\u0006\u0010*\u001a\u00020\u00112\b\b\u0002\u0010+\u001a\u00020\u0007H\u0002J\u001a\u0010/\u001a\u00020\u00042\u0006\u0010.\u001a\u00020-2\b\b\u0002\u0010+\u001a\u00020\u0007H\u0002J\b\u00100\u001a\u00020\u0004H\u0002J\u0010\u00102\u001a\u00020\u00042\u0006\u00101\u001a\u00020\u0011H\u0002J\b\u00103\u001a\u00020\u0004H\u0002J\u0012\u00106\u001a\u00020\u00042\b\u00105\u001a\u0004\u0018\u000104H\u0002J\u0018\u00109\u001a\u00020\u00042\u0006\u00107\u001a\u00020\u00112\u0006\u00108\u001a\u00020\u0011H\u0002J\u0010\u0010;\u001a\u00020\u00072\u0006\u0010:\u001a\u00020\u0011H\u0002J\u0012\u0010<\u001a\u0004\u0018\u0001042\u0006\u0010:\u001a\u00020\u0011H\u0002J\b\u0010=\u001a\u00020\u0004H\u0002J\b\u0010>\u001a\u00020\u0004H\u0003J\b\u0010?\u001a\u00020\u0004H\u0002J\b\u0010@\u001a\u00020\u0004H\u0003J\b\u0010A\u001a\u00020\u0004H\u0002J\b\u0010B\u001a\u00020-H\u0002J\u001a\u0010E\u001a\u00020\u00042\u0006\u0010C\u001a\u00020\u00072\b\b\u0002\u0010D\u001a\u00020\u0011H\u0002J\b\u0010F\u001a\u00020\u0011H\u0002J\b\u0010G\u001a\u00020\u0011H\u0002J\"\u0010I\u001a\u00020\u00042\u0006\u0010H\u001a\u00020\u00072\u0006\u0010C\u001a\u00020\u00072\b\b\u0002\u0010D\u001a\u00020\u0011H\u0002J<\u0010P\u001a\u000e\u0012\u0004\u0012\u00020-\u0012\u0004\u0012\u00020-0O2\u0006\u0010J\u001a\u00020\u00072\u0006\u0010K\u001a\u00020\u00112\u0006\u0010L\u001a\u00020-2\u0006\u0010M\u001a\u00020-2\u0006\u0010N\u001a\u00020-H\u0002J\b\u0010Q\u001a\u00020\u0004H\u0002J\b\u0010R\u001a\u00020\u0004H\u0002J\u0012\u0010T\u001a\u00020\u00042\b\b\u0002\u0010S\u001a\u00020\u0007H\u0002J\b\u0010U\u001a\u00020\u0007H\u0002J\b\u0010V\u001a\u00020\u0004H\u0002J\b\u0010W\u001a\u00020\u0004H\u0002J\u0016\u0010Z\u001a\u00020\u00042\f\u0010Y\u001a\b\u0012\u0004\u0012\u00020\u00040XH\u0002J\b\u0010[\u001a\u00020\u0004H\u0002J\b\u0010\\\u001a\u00020\u0007H\u0002J\b\u0010]\u001a\u00020\u0004H\u0002J\u001c\u0010a\u001a\b\u0012\u0004\u0012\u00020_0^2\f\u0010`\u001a\b\u0012\u0004\u0012\u00020_0^H\u0002J\u0010\u0010c\u001a\u00020\u00042\u0006\u0010b\u001a\u00020\u0007H\u0002J\u0012\u0010f\u001a\u00020\u00042\b\u0010e\u001a\u0004\u0018\u00010dH\u0014J\u0014\u0010h\u001a\u00020\u00042\f\u0010g\u001a\b\u0012\u0004\u0012\u00020\u00040XJ\b\u0010i\u001a\u00020\u0004H\u0014R\"\u0010k\u001a\u00020j8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bk\u0010l\u001a\u0004\bm\u0010n\"\u0004\bo\u0010pR\"\u0010r\u001a\u00020q8\u0006@\u0006X.¢\u0006\u0012\n\u0004\br\u0010s\u001a\u0004\bt\u0010u\"\u0004\bv\u0010wR\"\u0010y\u001a\u00020x8\u0006@\u0006X.¢\u0006\u0012\n\u0004\by\u0010z\u001a\u0004\b{\u0010|\"\u0004\b}\u0010~R)\u0010\u0001\u001a\u000208\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010 \u0001R*\u0010\u0001\u001a\u00030\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R*\u0010\u0001\u001a\u00030\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R)\u0010\u0001\u001a\u00020\u001d8\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R*\u0010\u0001\u001a\u00030\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010 \u0001R*\u0010¢\u0001\u001a\u00030¡\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b¢\u0001\u0010£\u0001\u001a\u0006\b¤\u0001\u0010¥\u0001\"\u0006\b¦\u0001\u0010§\u0001R*\u0010©\u0001\u001a\u00030¨\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b©\u0001\u0010ª\u0001\u001a\u0006\b«\u0001\u0010¬\u0001\"\u0006\b\u0001\u0010®\u0001R*\u0010°\u0001\u001a\u00030¯\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b°\u0001\u0010±\u0001\u001a\u0006\b²\u0001\u0010³\u0001\"\u0006\b´\u0001\u0010µ\u0001R*\u0010·\u0001\u001a\u00030¶\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b·\u0001\u0010¸\u0001\u001a\u0006\b¹\u0001\u0010º\u0001\"\u0006\b»\u0001\u0010¼\u0001R*\u0010¾\u0001\u001a\u00030½\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b¾\u0001\u0010¿\u0001\u001a\u0006\bÀ\u0001\u0010Á\u0001\"\u0006\bÂ\u0001\u0010Ã\u0001R*\u0010Å\u0001\u001a\u00030Ä\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÅ\u0001\u0010Æ\u0001\u001a\u0006\bÇ\u0001\u0010È\u0001\"\u0006\bÉ\u0001\u0010Ê\u0001R*\u0010Ì\u0001\u001a\u00030Ë\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÌ\u0001\u0010Í\u0001\u001a\u0006\bÎ\u0001\u0010Ï\u0001\"\u0006\bÐ\u0001\u0010Ñ\u0001R*\u0010Ó\u0001\u001a\u00030Ò\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÓ\u0001\u0010Ô\u0001\u001a\u0006\bÕ\u0001\u0010Ö\u0001\"\u0006\b×\u0001\u0010Ø\u0001R*\u0010Ú\u0001\u001a\u00030Ù\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÚ\u0001\u0010Û\u0001\u001a\u0006\bÜ\u0001\u0010Ý\u0001\"\u0006\bÞ\u0001\u0010ß\u0001R0\u0010á\u0001\u001a\t\u0012\u0004\u0012\u00020_0à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bá\u0001\u0010â\u0001\u001a\u0006\bã\u0001\u0010ä\u0001\"\u0006\bå\u0001\u0010æ\u0001R0\u0010è\u0001\u001a\t\u0012\u0004\u0012\u00020\u00180ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bè\u0001\u0010é\u0001\u001a\u0006\bê\u0001\u0010ë\u0001\"\u0006\bì\u0001\u0010í\u0001R1\u0010ï\u0001\u001a\n\u0012\u0005\u0012\u00030î\u00010à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bï\u0001\u0010â\u0001\u001a\u0006\bð\u0001\u0010ä\u0001\"\u0006\bñ\u0001\u0010æ\u0001R1\u0010ó\u0001\u001a\n\u0012\u0005\u0012\u00030ò\u00010ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bó\u0001\u0010é\u0001\u001a\u0006\bô\u0001\u0010ë\u0001\"\u0006\bõ\u0001\u0010í\u0001R0\u0010ö\u0001\u001a\t\u0012\u0004\u0012\u00020\u00040ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bö\u0001\u0010é\u0001\u001a\u0006\b÷\u0001\u0010ë\u0001\"\u0006\bø\u0001\u0010í\u0001R0\u0010ù\u0001\u001a\t\u0012\u0004\u0012\u00020\u00040ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bù\u0001\u0010é\u0001\u001a\u0006\bú\u0001\u0010ë\u0001\"\u0006\bû\u0001\u0010í\u0001R1\u0010ü\u0001\u001a\n\u0012\u0005\u0012\u00030ò\u00010ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bü\u0001\u0010é\u0001\u001a\u0006\bý\u0001\u0010ë\u0001\"\u0006\bþ\u0001\u0010í\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030ÿ\u00010à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010â\u0001\u001a\u0006\b\u0002\u0010ä\u0001\"\u0006\b\u0002\u0010æ\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010é\u0001\u001a\u0006\b \u0002\u0010ë\u0001\"\u0006\b\u0002\u0010í\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010â\u0001\u001a\u0006\b\u0002\u0010ä\u0001\"\u0006\b\u0002\u0010æ\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010é\u0001\u001a\u0006\b\u0002\u0010ë\u0001\"\u0006\b\u0002\u0010í\u0001R0\u0010\u0002\u001a\t\u0012\u0004\u0012\u00020\u00150ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010é\u0001\u001a\u0006\b\u0002\u0010ë\u0001\"\u0006\b\u0002\u0010í\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010â\u0001\u001a\u0006\b\u0002\u0010ä\u0001\"\u0006\b\u0002\u0010æ\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010â\u0001\u001a\u0006\b\u0002\u0010ä\u0001\"\u0006\b\u0002\u0010æ\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010é\u0001\u001a\u0006\b\u0002\u0010ë\u0001\"\u0006\b\u0002\u0010í\u0001R1\u0010\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0002\u0010â\u0001\u001a\u0006\b \u0002\u0010ä\u0001\"\u0006\b¡\u0002\u0010æ\u0001R1\u0010£\u0002\u001a\n\u0012\u0005\u0012\u00030¢\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b£\u0002\u0010â\u0001\u001a\u0006\b¤\u0002\u0010ä\u0001\"\u0006\b¥\u0002\u0010æ\u0001R*\u0010§\u0002\u001a\u00030¦\u00028\u0006@\u0006X.¢\u0006\u0018\n\u0006\b§\u0002\u0010¨\u0002\u001a\u0006\b©\u0002\u0010ª\u0002\"\u0006\b«\u0002\u0010¬\u0002R1\u0010®\u0002\u001a\n\u0012\u0005\u0012\u00030\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b®\u0002\u0010â\u0001\u001a\u0006\b¯\u0002\u0010ä\u0001\"\u0006\b°\u0002\u0010æ\u0001R*\u0010²\u0002\u001a\u00030±\u00028\u0006@\u0006X.¢\u0006\u0018\n\u0006\b²\u0002\u0010³\u0002\u001a\u0006\b´\u0002\u0010µ\u0002\"\u0006\b¶\u0002\u0010·\u0002R1\u0010¹\u0002\u001a\n\u0012\u0005\u0012\u00030¸\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b¹\u0002\u0010â\u0001\u001a\u0006\bº\u0002\u0010ä\u0001\"\u0006\b»\u0002\u0010æ\u0001R1\u0010½\u0002\u001a\n\u0012\u0005\u0012\u00030¼\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b½\u0002\u0010â\u0001\u001a\u0006\b¾\u0002\u0010ä\u0001\"\u0006\b¿\u0002\u0010æ\u0001R*\u0010Á\u0002\u001a\u00030À\u00028\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÁ\u0002\u0010Â\u0002\u001a\u0006\bÃ\u0002\u0010Ä\u0002\"\u0006\bÅ\u0002\u0010Æ\u0002R1\u0010È\u0002\u001a\n\u0012\u0005\u0012\u00030Ç\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÈ\u0002\u0010â\u0001\u001a\u0006\bÉ\u0002\u0010ä\u0001\"\u0006\bÊ\u0002\u0010æ\u0001R1\u0010Ì\u0002\u001a\n\u0012\u0005\u0012\u00030Ë\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÌ\u0002\u0010â\u0001\u001a\u0006\bÍ\u0002\u0010ä\u0001\"\u0006\bÎ\u0002\u0010æ\u0001R1\u0010Ð\u0002\u001a\n\u0012\u0005\u0012\u00030Ï\u00020ç\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÐ\u0002\u0010é\u0001\u001a\u0006\bÑ\u0002\u0010ë\u0001\"\u0006\bÒ\u0002\u0010í\u0001R1\u0010Ó\u0002\u001a\u00020_8\u0006@\u0006X.¢\u0006 \n\u0006\bÓ\u0002\u0010Ô\u0002\u0012\u0006\bÙ\u0002\u0010Ú\u0002\u001a\u0006\bÕ\u0002\u0010Ö\u0002\"\u0006\b×\u0002\u0010Ø\u0002R*\u0010Ü\u0002\u001a\u00030Û\u00028\u0006@\u0006X.¢\u0006\u0018\n\u0006\bÜ\u0002\u0010Ý\u0002\u001a\u0006\bÞ\u0002\u0010ß\u0002\"\u0006\bà\u0002\u0010á\u0002R1\u0010ã\u0002\u001a\n\u0012\u0005\u0012\u00030â\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bã\u0002\u0010â\u0001\u001a\u0006\bä\u0002\u0010ä\u0001\"\u0006\bå\u0002\u0010æ\u0001R1\u0010ç\u0002\u001a\n\u0012\u0005\u0012\u00030æ\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bç\u0002\u0010â\u0001\u001a\u0006\bè\u0002\u0010ä\u0001\"\u0006\bé\u0002\u0010æ\u0001R1\u0010ë\u0002\u001a\n\u0012\u0005\u0012\u00030ê\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bë\u0002\u0010â\u0001\u001a\u0006\bì\u0002\u0010ä\u0001\"\u0006\bí\u0002\u0010æ\u0001R1\u0010ï\u0002\u001a\n\u0012\u0005\u0012\u00030î\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bï\u0002\u0010â\u0001\u001a\u0006\bð\u0002\u0010ä\u0001\"\u0006\bñ\u0002\u0010æ\u0001R1\u0010ó\u0002\u001a\n\u0012\u0005\u0012\u00030ò\u00020à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bó\u0002\u0010â\u0001\u001a\u0006\bô\u0002\u0010ä\u0001\"\u0006\bõ\u0002\u0010æ\u0001R0\u0010ö\u0002\u001a\t\u0012\u0004\u0012\u00020&0à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\bö\u0002\u0010â\u0001\u001a\u0006\b÷\u0002\u0010ä\u0001\"\u0006\bø\u0002\u0010æ\u0001R*\u0010ú\u0002\u001a\u00030ù\u00028\u0006@\u0006X.¢\u0006\u0018\n\u0006\bú\u0002\u0010û\u0002\u001a\u0006\bü\u0002\u0010ý\u0002\"\u0006\bþ\u0002\u0010ÿ\u0002R1\u0010\u0003\u001a\n\u0012\u0005\u0012\u00030\u00030à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0003\u0010â\u0001\u001a\u0006\b\u0003\u0010ä\u0001\"\u0006\b\u0003\u0010æ\u0001R1\u0010 \u0003\u001a\n\u0012\u0005\u0012\u00030\u00030à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b \u0003\u0010â\u0001\u001a\u0006\b\u0003\u0010ä\u0001\"\u0006\b\u0003\u0010æ\u0001R1\u0010\u0003\u001a\n\u0012\u0005\u0012\u00030\u00030à\u00018\u0006@\u0006X.¢\u0006\u0018\n\u0006\b\u0003\u0010â\u0001\u001a\u0006\b\u0003\u0010ä\u0001\"\u0006\b\u0003\u0010æ\u0001R)\u0010\u0003\u001a\u00020\u00078\u0006@\u0006X\u000e¢\u0006\u0018\n\u0006\b\u0003\u0010\u0003\u001a\u0006\b\u0003\u0010\u0003\"\u0006\b\u0003\u0010\u0003¨\u0006\u0003"}, d2 = {"Lpl0/v4;", "Ltu0/b;", "Lpl0/e5;", "Lpl0/d5;", "", "q2", "w2", "", com.alipay.sdk.widget.c.f18365c, "x4", "s4", "D3", "E3", "a4", "c2", "b2", "n4", "", "id", "Lcom/xingin/tags/library/sticker/model/CapaPasterBaseModel;", "d3", "Lvl0/c0;", "event", "C3", "Lvl0/n;", "i4", "l4", "Lcom/xingin/capa/v2/feature/style/data/StyleData;", "videoStyle", "Lcom/xingin/capa/v2/session2/model/EditableVideo2;", "t2", "Lcom/xingin/capa/v2/feature/videoedit/modules/onekeystyle/data/StyleModel;", "styleModel", "u2", "editVideo", "h4", "a2", "Lkotlin/Function1;", "", "Lcom/xingin/capa/videotoolbox/editor/EditCallback;", "callback", "A4", "ratio", "careSubContainer", "M4", "", "widthHeightRatio", "y4", "b4", XavFilterDef.FxFlipParams.ORIENTATION, "K4", "J4", "Lcom/xingin/capa/lib/senseme/entity/FilterEntity;", "filter", "w4", "position", "useType", "O4", "filterIndex", "f4", "M2", "p2", "Z3", "E4", "X3", "q4", "v3", "isShow", "index", "C4", "J2", "K2", "isVideoViewChange", "i2", "show", "height", "contentHeight", "videoHeight", "scale", "Lkotlin/Pair;", "g2", "o4", "k4", "needDelay", "t4", "h2", "j4", "d2", "Lkotlin/Function0;", "action", "k2", "L4", "g4", "A2", "", "", "colors", "e3", "needShow", "z4", "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "jump", "l2", "onDetach", "Lcom/xingin/android/redutils/base/XhsActivity;", "activity", "Lcom/xingin/android/redutils/base/XhsActivity;", "getActivity", "()Lcom/xingin/android/redutils/base/XhsActivity;", "setActivity", "(Lcom/xingin/android/redutils/base/XhsActivity;)V", "Leq0/c;", "editToolTrackManager", "Leq0/c;", "N2", "()Leq0/c;", "setEditToolTrackManager", "(Leq0/c;)V", "Lwp0/e;", "session", "Lwp0/e;", "g3", "()Lwp0/e;", "setSession", "(Lwp0/e;)V", "Lcom/xingin/capa/v2/session2/internal/IVideoEditor;", "videoEditor", "Lcom/xingin/capa/v2/session2/internal/IVideoEditor;", "A3", "()Lcom/xingin/capa/v2/session2/internal/IVideoEditor;", "setVideoEditor", "(Lcom/xingin/capa/v2/session2/internal/IVideoEditor;)V", "Lsl0/a;", "thumbService", "Lsl0/a;", "w3", "()Lsl0/a;", "setThumbService", "(Lsl0/a;)V", "Ls80/a;", "beautifyPresenter", "Ls80/a;", "B2", "()Ls80/a;", "setBeautifyPresenter", "(Ls80/a;)V", "editableVideo", "Lcom/xingin/capa/v2/session2/model/EditableVideo2;", "Q2", "()Lcom/xingin/capa/v2/session2/model/EditableVideo2;", "setEditableVideo", "(Lcom/xingin/capa/v2/session2/model/EditableVideo2;)V", "Lcom/xingin/capa/videotoolbox/editor/VideoEditProxy;", "videoEditProxy", "Lcom/xingin/capa/videotoolbox/editor/VideoEditProxy;", "z3", "()Lcom/xingin/capa/videotoolbox/editor/VideoEditProxy;", "setVideoEditProxy", "(Lcom/xingin/capa/videotoolbox/editor/VideoEditProxy;)V", "Lpq0/z;", "videoPlayer", "Lpq0/z;", "B3", "()Lpq0/z;", "setVideoPlayer", "(Lpq0/z;)V", "Lpq0/e;", "clipEditor", "Lpq0/e;", "P", "()Lpq0/e;", "setClipEditor", "(Lpq0/e;)V", "Lpq0/o;", "pipClipEditor", "Lpq0/o;", "q", "()Lpq0/o;", "setPipClipEditor", "(Lpq0/o;)V", "Lpq0/d;", "canvasEditor", "Lpq0/d;", "u0", "()Lpq0/d;", "setCanvasEditor", "(Lpq0/d;)V", "Lpq0/k;", "editorState", "Lpq0/k;", "R2", "()Lpq0/k;", "setEditorState", "(Lpq0/k;)V", "Lpq0/a;", "audioEditor", "Lpq0/a;", "t", "()Lpq0/a;", "setAudioEditor", "(Lpq0/a;)V", "Lza0/v;", "musicEditor", "Lza0/v;", "X2", "()Lza0/v;", "setMusicEditor", "(Lza0/v;)V", "Lqq0/j0;", "renderTextEditor", "Lqq0/j0;", "C", "()Lqq0/j0;", "setRenderTextEditor", "(Lqq0/j0;)V", "Lpq0/m;", "filterEditor", "Lpq0/m;", "y0", "()Lpq0/m;", "setFilterEditor", "(Lpq0/m;)V", "Ldx2/d;", "pasterGuideDismiss", "Ldx2/d;", "c3", "()Ldx2/d;", "setPasterGuideDismiss", "(Ldx2/d;)V", "Ldx2/b;", "entranceViewClicked", "Ldx2/b;", "W2", "()Ldx2/b;", "setEntranceViewClicked", "(Ldx2/b;)V", "La60/b;", "changeContainerSubject", "H2", "setChangeContainerSubject", "Lvl0/e;", "canvasParamChanged", "F2", "setCanvasParamChanged", "canvasAndViewChanged", "D2", "setCanvasAndViewChanged", "canvasPageClose", "E2", "setCanvasPageClose", "styleCanvasParamChanged", "k3", "setStyleCanvasParamChanged", "Lvl0/p;", "changeContainerParam", "G2", "setChangeContainerParam", "Lvl0/b0;", "showZoomVideoCanvasTipEvent", "i3", "setShowZoomVideoCanvasTipEvent", "La60/g;", "elementClickedSubject", "T2", "setElementClickedSubject", "La60/d;", "changeElementStateSubject", "I2", "setChangeElementStateSubject", "onSubViewHided", "Z2", "setOnSubViewHided", "Lvl0/c;", "addStickerSubject", "z2", "setAddStickerSubject", "Lvl0/b;", "addFirstStickerEvent", INoCaptchaComponent.f17803y2, "setAddFirstStickerEvent", "Lvl0/a0;", "showFilterTips", "h3", "setShowFilterTips", "La60/n;", "swipeSubject", "u3", "setSwipeSubject", "La60/m;", "safeAreaLaunchEvent", "f3", "setSafeAreaLaunchEvent", "Lpq0/w;", "templateEditor", "Lpq0/w;", "I", "()Lpq0/w;", "setTemplateEditor", "(Lpq0/w;)V", "Ltd0/a;", "subjectAiColor", "t3", "setSubjectAiColor", "Leb0/d;", "bgmRepo", "Leb0/d;", "C2", "()Leb0/d;", "setBgmRepo", "(Leb0/d;)V", "La60/h;", "elementInSafeAreaSubject", "U2", "setElementInSafeAreaSubject", "Lvl0/g0;", "editableListTemplateEvent", "P2", "setEditableListTemplateEvent", "Lvm0/x;", "styleOp", "Lvm0/x;", "p3", "()Lvm0/x;", "setStyleOp", "(Lvm0/x;)V", "Ljm0/b;", "cropActionSubject", "L2", "setCropActionSubject", "Ljm0/d;", "updateItemActionSubject", "x3", "setUpdateItemActionSubject", "Lvl0/k0;", "updateMusicPlayState", "y3", "setUpdateMusicPlayState", "pageSourceValue", "Ljava/lang/String;", "b3", "()Ljava/lang/String;", "setPageSourceValue", "(Ljava/lang/String;)V", "getPageSourceValue$annotations", "()V", "Lim0/m;", "entranceImpression", "Lim0/m;", "V2", "()Lim0/m;", "setEntranceImpression", "(Lim0/m;)V", "Lwh0/a;", "styleCancelSubject", "j3", "setStyleCancelSubject", "Lwh0/b;", "styleChangeStateSubject", "l3", "setStyleChangeStateSubject", "Lwh0/c;", "styleProgressSubject", "q3", "setStyleProgressSubject", "Lwh0/f;", "styleSetMaskSubject", "s3", "setStyleSetMaskSubject", "Lwh0/e;", "styleRetrySubject", "r3", "setStyleRetrySubject", "styleLogSubject", "o3", "setStyleLogSubject", "Luh0/a0;", "styleDownloadManager", "Luh0/a0;", "m3", "()Luh0/a0;", "setStyleDownloadManager", "(Luh0/a0;)V", "Lvl0/m;", "editableListNotifyEvent", "O2", "setEditableListNotifyEvent", "Lvl0/r;", "onReverseState", "Y2", "setOnReverseState", "La60/f;", "elementAddedScreenSubject", "S2", "setElementAddedScreenSubject", "isDraftVideoMode", "Z", "e4", "()Z", "setDraftVideoMode", "(Z)V", "<init>", "a", "capa_library_release"}, k = 1, mv = {1, 6, 0}) @SuppressLint({"ClassTooLong"}) /* compiled from: VideoEditController.kt */ public final class v4 extends tu0.b<e5, v4, d5> { public static final a H0 = new a(null); public dx2.b<Unit> A; public ba0.h A0; public dx2.b<vl0.e> B; public hw2.c B0; public dx2.d<vl0.p> C; public boolean C0; public EditableVideo2 D0; public boolean E0; public boolean F0; public boolean G0; /* renamed from: J reason: collision with root package name */ public dx2.b<vl0.b0> f118825J; public dx2.d<a60.g> K; public dx2.b<a60.d> L; public dx2.b<vl0.c0> M; public dx2.d<vl0.c> N; public dx2.d<vl0.b> O; public dx2.b<vl0.a0> P; public dx2.d<a60.n> Q; public dx2.d<a60.m> R; public dx2.d<BgmItemBean> S; public dx2.d<Boolean> T; public dx2.d<BgmItemBean> U; public dx2.d<Unit> V; public pq0.w W; public dx2.d<td0.a> X; public eb0.d Y; public dx2.d<a60.h> Z; /* renamed from: a reason: collision with root package name */ public final String f118826a = "VideoEditController"; /* renamed from: a0 reason: collision with root package name */ public dx2.d<vl0.g0> f118827a0; /* renamed from: b reason: collision with root package name */ public XhsActivity f118828b; /* renamed from: b0 reason: collision with root package name */ public vm0.x f118829b0; /* renamed from: c reason: collision with root package name */ public eq0.c f118830c; /* renamed from: c0 reason: collision with root package name */ public VideoEditTracker f118831c0; /* renamed from: d reason: collision with root package name */ public wp0.e f118832d; /* renamed from: d0 reason: collision with root package name */ public ArrayMap<Long, List<String>> f118833d0 = new ArrayMap<>(); /* renamed from: e reason: collision with root package name */ public IVideoEditor f118834e; /* renamed from: e0 reason: collision with root package name */ public dx2.d<jm0.b> f118835e0; /* renamed from: f reason: collision with root package name */ public sl0.a f118836f; /* renamed from: f0 reason: collision with root package name */ public dx2.d<jm0.d> f118837f0; /* renamed from: g reason: collision with root package name */ public s80.a f118838g; /* renamed from: g0 reason: collision with root package name */ public dx2.b<vl0.k0> f118839g0; /* renamed from: h reason: collision with root package name */ public EditableVideo2 f118840h; /* renamed from: h0 reason: collision with root package name */ public String f118841h0; @JvmField /* renamed from: i reason: collision with root package name */ public boolean f118842i; /* renamed from: i0 reason: collision with root package name */ public im0.m f118843i0; @JvmField /* renamed from: j reason: collision with root package name */ public boolean f118844j = true; /* renamed from: j0 reason: collision with root package name */ public dx2.d<wh0.a> f118845j0; /* renamed from: k reason: collision with root package name */ public VideoEditProxy f118846k; /* renamed from: k0 reason: collision with root package name */ public dx2.d<wh0.b> f118847k0; /* renamed from: l reason: collision with root package name */ public pq0.z f118848l; /* renamed from: l0 reason: collision with root package name */ public dx2.d<wh0.c> f118849l0; /* renamed from: m reason: collision with root package name */ public pq0.e f118850m; /* renamed from: m0 reason: collision with root package name */ public dx2.d<wh0.f> f118851m0; /* renamed from: n reason: collision with root package name */ public pq0.o f118852n; /* renamed from: n0 reason: collision with root package name */ public dx2.d<wh0.e> f118853n0; /* renamed from: o reason: collision with root package name */ public pq0.d f118854o; /* renamed from: o0 reason: collision with root package name */ public dx2.d<Object> f118855o0; /* renamed from: p reason: collision with root package name */ public pq0.k f118856p; /* renamed from: p0 reason: collision with root package name */ public uh0.a0 f118857p0; /* renamed from: q reason: collision with root package name */ public pq0.a f118858q; /* renamed from: q0 reason: collision with root package name */ public dx2.d<vl0.m> f118859q0; /* renamed from: r reason: collision with root package name */ public za0.v f118860r; /* renamed from: r0 reason: collision with root package name */ public dx2.d<vl0.r> f118861r0; /* renamed from: s reason: collision with root package name */ public qq0.j0 f118862s; /* renamed from: s0 reason: collision with root package name */ public dx2.d<a60.f> f118863s0; /* renamed from: t reason: collision with root package name */ public kh0.b f118864t; /* renamed from: t0 reason: collision with root package name */ public final g f118865t0 = new g(this); /* renamed from: u reason: collision with root package name */ public pq0.m f118866u; /* renamed from: u0 reason: collision with root package name */ public boolean f118867u0; /* renamed from: v reason: collision with root package name */ public dx2.d<String> f118868v; /* renamed from: v0 reason: collision with root package name */ public c60.d f118869v0; /* renamed from: w reason: collision with root package name */ public dx2.b<vl0.n> f118870w; /* renamed from: w0 reason: collision with root package name */ public ScaleGestureDetector f118871w0; /* renamed from: x reason: collision with root package name */ public dx2.d<a60.b> f118872x; /* renamed from: x0 reason: collision with root package name */ public final dx2.d<Float> f118873x0; /* renamed from: y reason: collision with root package name */ public dx2.b<vl0.e> f118874y; /* renamed from: y0 reason: collision with root package name */ public final dx2.d<Float> f118875y0; /* renamed from: z reason: collision with root package name */ public dx2.b<Unit> f118876z; /* renamed from: z0 reason: collision with root package name */ public long f118877z0; @Metadata(bv = {}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0005\b\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\t\u0010\nR\u0014\u0010\u0003\u001a\u00020\u00028\u0002XT¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\u0005\u001a\u00020\u00028\u0002XT¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0014\u0010\u0007\u001a\u00020\u00068\u0002XT¢\u0006\u0006\n\u0004\b\u0007\u0010\b¨\u0006\u000b"}, d2 = {"Lpl0/v4$a;", "", "", "ANIMATION_DURATION", "J", "IMAGE_DURATION", "", "STYLE_TOTAL_DURATION", "I", "<init>", "()V", "capa_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class a { public a() { } public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) { this(); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class a0 extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118878a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a0(v4 v4Var) { super(1); this.f118878a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); com.xingin.capa.v2.utils.s.a(this.f118878a.f118826a, "click"); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public /* synthetic */ class b { /* renamed from: a reason: collision with root package name */ public static final /* synthetic */ int[] f118879a; static { int[] iArr = new int[Lifecycle.Event.values().length]; iArr[Lifecycle.Event.ON_CREATE.ordinal()] = 1; iArr[Lifecycle.Event.ON_RESUME.ordinal()] = 2; iArr[Lifecycle.Event.ON_PAUSE.ordinal()] = 3; iArr[Lifecycle.Event.ON_DESTROY.ordinal()] = 4; iArr[Lifecycle.Event.ON_START.ordinal()] = 5; iArr[Lifecycle.Event.ON_STOP.ordinal()] = 6; f118879a = iArr; } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class b0 extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118880a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b0(v4 v4Var) { super(1); this.f118880a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); this.f118880a.f118865t0.k(); eq0.e.f73653a.o0(d3.video_note, this.f118880a.g3().k(), this.f118880a.b3()); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class c extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118881a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Function0<Unit> f118882b; @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class a extends Lambda implements Function1<Boolean, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118883a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Function0<Unit> f118884b; @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* renamed from: pl0.v4$c$a$a reason: collision with other inner class name */ /* compiled from: VideoEditController.kt */ public static final class C1844a extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118885a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Function0<Unit> f118886b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public C1844a(v4 v4Var, Function0<Unit> function0) { super(0); this.f118885a = v4Var; this.f118886b = function0; } public static final void b(Function0 function0) { Intrinsics.checkNotNullParameter(function0, "$action"); function0.invoke(); } @Override // kotlin.jvm.functions.Function0 public final void invoke() { Pair<Integer, Integer> b14 = this.f118885a.u0().b(); if (b14 != null) { v4 v4Var = this.f118885a; v4Var.Q2().setVideoWidth(b14.getFirst().intValue()); v4Var.Q2().setVideoHeight(b14.getSecond().intValue()); } v4 v4Var2 = this.f118885a; VideoPaintBean paintBean = v4Var2.Q2().getPaintBean(); v4.N4(v4Var2, paintBean != null ? paintBean.getRatio() : -1, false, 2, null); z.a.b(this.f118885a.B3(), this.f118885a.B3().getPosition() + ((long) 10), null, 2, null); ((e5) this.f118885a.getPresenter()).e().postDelayed(new w4(this.f118886b), 50); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(v4 v4Var, Function0<Unit> function0) { super(1); this.f118883a = v4Var; this.f118884b = function0; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Boolean bool) { invoke(bool.booleanValue()); return Unit.INSTANCE; } public final void invoke(boolean z14) { if (z14) { this.f118883a.p3().b(this.f118883a.A3(), this.f118883a.Q2(), this.f118883a.u0(), new C1844a(this.f118883a, this.f118884b), this.f118883a.B3(), this.f118883a.y0(), this.f118883a.t(), this.f118883a.C2(), this.f118883a.X2(), this.f118883a.C(), this.f118883a.y3()); } } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(v4 v4Var, Function0<Unit> function0) { super(0); this.f118881a = v4Var; this.f118882b = function0; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f118881a.y0().release(); this.f118881a.I().v0("", new a(this.f118881a, this.f118882b)); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class c0 extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public static final c0 f118887a = new c0(); public c0() { super(1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); com.xingin.capa.v2.utils.s.b("VideoEditController", th3.getLocalizedMessage(), th3); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class d extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118888a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(v4 v4Var) { super(0); this.f118888a = v4Var; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { z.a.b(this.f118888a.B3(), 0, null, 2, null); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class d0 extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118889a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d0(v4 v4Var) { super(1); this.f118889a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); d5 d5Var = (d5) this.f118889a.getLinker(); boolean z14 = true; if (d5Var == null || !d5Var.Y()) { z14 = false; } if (z14) { this.f118889a.L2().a(new jm0.a(2)); } else { this.f118889a.p2(); } } } @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u00012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class e extends Lambda implements Function1<List<? extends String>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118890a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ long f118891b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e(v4 v4Var, long j14) { super(1); this.f118890a = v4Var; this.f118891b = j14; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(List<? extends String> list) { invoke((List<String>) list); return Unit.INSTANCE; } public final void invoke(List<String> list) { Intrinsics.checkNotNullParameter(list, AdvanceSetting.NETWORK_TYPE); List e33 = this.f118890a.e3(list); ArrayList arrayList = new ArrayList(); arrayList.addAll(e33); this.f118890a.f118833d0.put(Long.valueOf(this.f118891b), arrayList); this.f118890a.t3().a(new td0.a(arrayList, 2)); } } @Metadata(bv = {}, d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0018\u0010\t\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\b\u001a\u00020\u0007H\u0016J\u0018\u0010\r\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\f\u001a\u00020\nH\u0016¨\u0006\u000e"}, d2 = {"pl0/v4$e0", "Lpq0/n$b;", "", "show", "", "c", "d", "", "angle", "b", "", "disX", "disY", "a", "capa_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class e0 implements n.b { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118892a; public e0(v4 v4Var) { this.f118892a = v4Var; } public static final void i(v4 v4Var, boolean z14, float f14) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); ((e5) v4Var.getPresenter()).p(z14, f14); } public static final void j(v4 v4Var, boolean z14) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); ((e5) v4Var.getPresenter()).r(z14); } public static final void k(v4 v4Var, boolean z14) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); ((e5) v4Var.getPresenter()).u(z14); } public static final void l(v4 v4Var, int i10, int i14) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); ((e5) v4Var.getPresenter()).w(i10, i14); } @Override // pq0.n.b public void a(int i10, int i14) { ((e5) this.f118892a.getPresenter()).e().post(new y4(this.f118892a, i10, i14)); } @Override // pq0.n.b public void b(boolean z14, float f14) { ((e5) this.f118892a.getPresenter()).e().post(new b5(this.f118892a, z14, f14)); } @Override // pq0.n.b public void c(boolean z14) { ((e5) this.f118892a.getPresenter()).e().post(new z4(this.f118892a, z14)); } @Override // pq0.n.b public void d(boolean z14) { ((e5) this.f118892a.getPresenter()).e().post(new a5(this.f118892a, z14)); } } @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class f extends Lambda implements Function1<String, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118893a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f(v4 v4Var) { super(1); this.f118893a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(String str) { invoke(str); return Unit.INSTANCE; } public final void invoke(String str) { d5 d5Var = (d5) this.f118893a.getLinker(); if (d5Var != null) { Intrinsics.checkNotNullExpressionValue(str, AdvanceSetting.NETWORK_TYPE); d5Var.h0(str); } } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class f0 extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118894a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ EditableVideo2 f118895b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f0(v4 v4Var, EditableVideo2 editableVideo2) { super(0); this.f118894a = v4Var; this.f118895b = editableVideo2; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { h60.c.f85022a.h(); ch0.m0 m0Var = ch0.m0.f12248a; m0Var.S("one_key_video", "video_edit"); ch0.m0.q0(m0Var, "one_key_video", "video_edit", 0, 4, null); yo0.k.b0(this.f118894a.getActivity(), this.f118895b, 0, false, "VideoEdit", null, null, null, false, null, 1004, null); this.f118894a.getActivity().finish(); this.f118894a.getActivity().overridePendingTransition(R$anim.f47101capa_bottom_in, 0); } } @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "kotlin.jvm.PlatformType", "invoke", "(Ljava/lang/Long;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class g extends Lambda implements Function1<Long, Unit> { /* renamed from: a reason: collision with root package name */ public static final g f118896a = new g(); public g() { super(1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Long l14) { invoke(l14); return Unit.INSTANCE; } public final void invoke(Long l14) { Intrinsics.checkNotNullExpressionValue(l14, AdvanceSetting.NETWORK_TYPE); if (l14.longValue() > 0) { ch0.m0 m0Var = ch0.m0.f12248a; if (m0Var.X("video_edit")) { m0Var.Z("video_edit"); } } } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class g0 extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118897a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ vl0.n f118898b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g0(v4 v4Var, vl0.n nVar) { super(0); this.f118897a = v4Var; this.f118898b = nVar; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { yo0.k.c0(this.f118897a.getActivity(), this.f118898b.d().intValue()); this.f118897a.getActivity().finish(); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class h extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118899a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h(v4 v4Var) { super(1); this.f118899a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); com.xingin.capa.v2.utils.s.a(this.f118899a.f118826a, th3.getLocalizedMessage()); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class h0 extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118900a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f118901b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h0(v4 v4Var, int i10) { super(0); this.f118900a = v4Var; this.f118901b = i10; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { yo0.k.c0(this.f118900a.getActivity(), this.f118901b); this.f118900a.getActivity().finish(); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lpq0/p;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lpq0/p;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class i extends Lambda implements Function1<pq0.p, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118902a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(v4 v4Var) { super(1); this.f118902a = v4Var; } public final void a(pq0.p pVar) { if (Intrinsics.areEqual(pVar, p.a.f119480a) && !this.f118902a.B3().d() && this.f118902a.h2()) { this.f118902a.B3().f(new z.b(0, 0, 0, true, 7, null)); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(pq0.p pVar) { a(pVar); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\b\n\u0000\u0010\u0000\u001a\u00020\u00012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", "list", "", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class i0 extends Lambda implements Function1<List<? extends Integer>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118903a; @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class a extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118904a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ List<Integer> f118905b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(v4 v4Var, List<Integer> list) { super(0); this.f118904a = v4Var; this.f118905b = list; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { XhsActivity activity = this.f118904a.getActivity(); int i10 = 0; Integer num = (Integer) CollectionsKt___CollectionsKt.getOrNull(this.f118905b, 0); if (num != null) { i10 = num.intValue(); } yo0.k.c0(activity, i10); this.f118904a.getActivity().finish(); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i0(v4 v4Var) { super(1); this.f118903a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(List<? extends Integer> list) { invoke((List<Integer>) list); return Unit.INSTANCE; } public final void invoke(List<Integer> list) { Intrinsics.checkNotNullParameter(list, "list"); v4 v4Var = this.f118903a; v4Var.l2(new a(v4Var, list)); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class j extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118906a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public j(v4 v4Var) { super(1); this.f118906a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); com.xingin.capa.v2.utils.s.a(this.f118906a.f118826a, th3.getLocalizedMessage()); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class j0 extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118907a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ vl0.n f118908b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public j0(v4 v4Var, vl0.n nVar) { super(0); this.f118907a = v4Var; this.f118908b = nVar; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f118907a.W2().a(this.f118908b); this.f118907a.L2().a(new jm0.a(7)); this.f118907a.x3().a(new jm0.d(km0.d.ONE_KEY_SOURCE)); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lwh0/a;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lwh0/a;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class k extends Lambda implements Function1<wh0.a, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118909a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public k(v4 v4Var) { super(1); this.f118909a = v4Var; } public final void a(wh0.a aVar) { hw2.c cVar = this.f118909a.B0; if (cVar != null) { cVar.dispose(); } this.f118909a.B0 = null; this.f118909a.z4(false); v4.u4(this.f118909a, false, 1, null); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(wh0.a aVar) { a(aVar); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class k0 extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118910a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ vl0.n f118911b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public k0(v4 v4Var, vl0.n nVar) { super(0); this.f118910a = v4Var; this.f118911b = nVar; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f118910a.W2().a(this.f118911b); this.f118910a.x3().a(new jm0.d(km0.d.ONE_KEY_SOURCE)); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class l extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public static final l f118912a = new l(); public l() { super(1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lvh0/d;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lvh0/d;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class l0 extends Lambda implements Function1<vh0.d, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118913a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public l0(v4 v4Var) { super(1); this.f118913a = v4Var; } public final void a(vh0.d dVar) { if (dVar instanceof vh0.c) { com.xingin.capa.v2.utils.s.a(this.f118913a.f118826a, String.valueOf(dVar)); } else if (dVar instanceof vh0.b) { com.xingin.capa.v2.utils.s.a(this.f118913a.f118826a, String.valueOf(dVar)); d5 d5Var = (d5) this.f118913a.getLinker(); if (d5Var != null) { d5Var.m0(); } this.f118913a.B0 = null; v4 v4Var = this.f118913a; v4Var.D0 = v4Var.t2(((vh0.b) dVar).a()); if (this.f118913a.getActivity().peekLifecycle() == Lifecycle.Event.ON_STOP) { this.f118913a.C0 = true; return; } v4 v4Var2 = this.f118913a; v4Var2.h4(v4Var2.D0); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(vh0.d dVar) { a(dVar); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lvl0/r;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lvl0/r;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class m extends Lambda implements Function1<vl0.r, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118914a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(v4 v4Var) { super(1); this.f118914a = v4Var; } public final void a(vl0.r rVar) { this.f118914a.E0 = rVar.a(); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(vl0.r rVar) { a(rVar); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class m0 extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118915a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m0(v4 v4Var) { super(1); this.f118915a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); this.f118915a.B0 = null; com.xingin.capa.v2.utils.s.d(this.f118915a.f118826a, th3.getLocalizedMessage(), th3); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public /* synthetic */ class n extends FunctionReferenceImpl implements Function1<vl0.n, Unit> { public n(Object obj) { super(1, obj, v4.class, "onEntranceViewClicked", "onEntranceViewClicked(Lcom/xingin/capa/v2/feature/videoedit/event/EntranceClickedEvent;)V", 0); } public final void a(vl0.n nVar) { Intrinsics.checkNotNullParameter(nVar, "p0"); ((v4) this.receiver).i4(nVar); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(vl0.n nVar) { a(nVar); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000%\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0012\u0010\b\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0016J\u0012\u0010\u000b\u001a\u00020\u00042\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0016¨\u0006\f"}, d2 = {"pl0/v4$n0", "Lba0/h$b;", "", "progress", "", "onProgress", "", "msg", "b", "Lcom/xingin/capa/v2/feature/videoedit/modules/onekeystyle/data/StyleModel;", "styleModel", "a", "capa_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class n0 implements h.b { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118916a; public n0(v4 v4Var) { this.f118916a = v4Var; } @Override // ba0.h.b public void a(StyleModel styleModel) { ((e5) this.f118916a.getPresenter()).t(false); v4 v4Var = this.f118916a; v4Var.h4(v4Var.u2(styleModel)); } @Override // ba0.h.b public void b(String str) { ((e5) this.f118916a.getPresenter()).t(false); al2.e.f(R$string.bcr); } @Override // ba0.h.b public void onProgress(int i10) { ((e5) this.f118916a.getPresenter()).x(i10); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class o extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public static final o f118917a = new o(); public o() { super(1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class o0 extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ ba0.h f118918a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ v4 f118919b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o0(ba0.h hVar, v4 v4Var) { super(0); this.f118918a = hVar; this.f118919b = v4Var; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f118918a.G(true); SaveProgressView y14 = ((e5) this.f118919b.getPresenter()).y(); if (y14 != null) { bj2.l.b(y14); } } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public /* synthetic */ class p extends FunctionReferenceImpl implements Function1<vl0.c0, Unit> { public p(Object obj) { super(1, obj, v4.class, "hideSubView", "hideSubView(Lcom/xingin/capa/v2/feature/videoedit/event/SubViewHidedEvent;)V", 0); } public final void a(vl0.c0 c0Var) { Intrinsics.checkNotNullParameter(c0Var, "p0"); ((v4) this.receiver).C3(c0Var); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(vl0.c0 c0Var) { a(c0Var); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class p0 extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118920a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ List<o80.e> f118921b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ Map<Integer, Slice> f118922c; @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class a extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ dm0.d f118923a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(dm0.d dVar) { super(0); this.f118923a = dVar; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f118923a.f(); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class b extends Lambda implements Function1<Object, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118924a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ dm0.d f118925b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ Map<Integer, Slice> f118926c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ CountDownLatch f118927d; @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class a extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ dm0.d f118928a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Map<Integer, Slice> f118929b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ CountDownLatch f118930c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(dm0.d dVar, Map<Integer, Slice> map, CountDownLatch countDownLatch) { super(0); this.f118928a = dVar; this.f118929b = map; this.f118930c = countDownLatch; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f118928a.g(this.f118929b); this.f118930c.await(); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(v4 v4Var, dm0.d dVar, Map<Integer, Slice> map, CountDownLatch countDownLatch) { super(1); this.f118924a = v4Var; this.f118925b = dVar; this.f118926c = map; this.f118927d = countDownLatch; } @Override // kotlin.jvm.functions.Function1 public final void invoke(Object obj) { Intrinsics.checkNotNullParameter(obj, AdvanceSetting.NETWORK_TYPE); this.f118924a.P().u0(new a(this.f118925b, this.f118926c, this.f118927d)); } } @Metadata(bv = {}, d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J$\u0010\u000b\u001a\u00020\u00042\u0012\u0010\b\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00070\u00062\u0006\u0010\n\u001a\u00020\tH\u0016¨\u0006\f"}, d2 = {"pl0/v4$p0$c", "Ldm0/d$a;", "", "progress", "", "a", "", "Lcom/xingin/capa/lib/newcapa/videoedit/data/Slice;", "outputs", "", "isCancel", "b", "capa_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class c implements d.a { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118931a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ CountDownLatch f118932b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ List<o80.e> f118933c; public c(v4 v4Var, CountDownLatch countDownLatch, List<o80.e> list) { this.f118931a = v4Var; this.f118932b = countDownLatch; this.f118933c = list; } @Override // dm0.d.a public void a(int i10) { this.f118931a.P2().a(new vl0.m0(i10)); } @Override // dm0.d.a public void b(Map<Integer, Slice> map, boolean z14) { Intrinsics.checkNotNullParameter(map, "outputs"); this.f118931a.P2().a(new vl0.o()); List<o80.e> list = this.f118933c; boolean z15 = false; for (Map.Entry<Integer, Slice> entry : map.entrySet()) { int intValue = entry.getKey().intValue(); Slice value = entry.getValue(); if (!Intrinsics.areEqual(list.get(intValue).b().getVideoSource().getVideoPath(), value.getVideoSource().getVideoPath())) { list.get(intValue).b().getVideoSource().setBeforeReverseVideoPath(value.getVideoSource().getBeforeReverseVideoPath()); list.get(intValue).b().getVideoSource().setVideoPath(value.getVideoSource().getVideoPath()); list.get(intValue).b().setCropParams(value.getCropParams()); list.get(intValue).b().setOriginVideoPath(value.getOriginVideoPath()); z15 = true; } } if (z14) { al2.e.o(R$string.bl3); } else if (z15) { al2.e.o(R$string.bl6); } this.f118931a.O2().a(new vl0.m(map, null, this.f118932b)); this.f118931a.E0 = false; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public p0(v4 v4Var, List<o80.e> list, Map<Integer, Slice> map) { super(0); this.f118920a = v4Var; this.f118921b = list; this.f118922c = map; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { this.f118920a.E0 = true; CountDownLatch countDownLatch = new CountDownLatch(1); dm0.d dVar = new dm0.d(new c(this.f118920a, countDownLatch, this.f118921b), i80.d.f89172a.c(), false, 4, null); dx2.d<vl0.g0> P2 = this.f118920a.P2(); String d14 = com.xingin.utils.core.l0.d(this.f118920a.getActivity(), R$string.bl5); Intrinsics.checkNotNullExpressionValue(d14, "getString(activity, R.st…plate_reverse_processing)"); P2.a(new vl0.y(d14)); this.f118920a.P2().a(new vl0.x(true, new a(dVar))); this.f118920a.B3().p(new b(this.f118920a, dVar, this.f118922c, countDownLatch)); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class q extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118934a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public q(v4 v4Var) { super(0); this.f118934a = v4Var; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { boolean z14 = false; if (CapaAbConfig.INSTANCE.useStyleV2() != 0) { d5 d5Var = (d5) this.f118934a.getLinker(); if (d5Var != null && d5Var.A()) { hw2.c cVar = this.f118934a.B0; if (cVar != null) { cVar.dispose(); } this.f118934a.B0 = null; this.f118934a.z4(false); v4.u4(this.f118934a, false, 1, null); return; } d5 d5Var2 = (d5) this.f118934a.getLinker(); if (d5Var2 != null && d5Var2.B()) { z14 = true; } if (z14) { v4 v4Var = this.f118934a; d5 d5Var3 = (d5) v4Var.getLinker(); v4.j2(v4Var, d5Var3 != null ? d5Var3.V() : true, false, 0, 4, null); return; } this.f118934a.f118865t0.k(); return; } d5 d5Var4 = (d5) this.f118934a.getLinker(); if (d5Var4 != null && d5Var4.B()) { z14 = true; } if (z14) { v4 v4Var2 = this.f118934a; d5 d5Var5 = (d5) v4Var2.getLinker(); v4.j2(v4Var2, d5Var5 != null ? d5Var5.V() : true, false, 0, 4, null); return; } this.f118934a.f118865t0.k(); } } @Metadata(bv = {}, d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\b\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\t"}, d2 = {"com/xingin/capacore/utils/AnimatorExtKt$addListener$listener$1", "Landroid/animation/Animator$AnimatorListener;", "Landroid/animation/Animator;", "animator", "", "onAnimationStart", "onAnimationEnd", "onAnimationCancel", "onAnimationRepeat", "capa_core_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: AnimatorExt.kt */ public static final class q0 implements Animator.AnimatorListener { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ boolean f118935a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ v4 f118936b; public q0(boolean z14, v4 v4Var) { this.f118935a = z14; this.f118936b = v4Var; } public void onAnimationCancel(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } public void onAnimationEnd(Animator animator) { d5 d5Var; Intrinsics.checkNotNullParameter(animator, "animator"); if (!this.f118935a && (d5Var = (d5) this.f118936b.getLinker()) != null) { d5Var.m0(); } } public void onAnimationRepeat(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } public void onAnimationStart(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Ljava/lang/Float;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class r extends Lambda implements Function1<Float, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118937a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public r(v4 v4Var) { super(1); this.f118937a = v4Var; } public final void a(Float f14) { this.f118937a.u0().Z0((float) ((((double) f14.floatValue()) * 1.5d) % ((double) 360)), this.f118937a.R2().k()); z.a.b(this.f118937a.B3(), this.f118937a.B3().getPosition(), null, 2, null); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Float f14) { a(f14); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\b\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\t"}, d2 = {"com/xingin/capacore/utils/AnimatorExtKt$addListener$listener$1", "Landroid/animation/Animator$AnimatorListener;", "Landroid/animation/Animator;", "animator", "", "onAnimationStart", "onAnimationEnd", "onAnimationCancel", "onAnimationRepeat", "capa_core_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: AnimatorExt.kt */ public static final class r0 implements Animator.AnimatorListener { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ boolean f118938a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ v4 f118939b; public r0(boolean z14, v4 v4Var) { this.f118938a = z14; this.f118939b = v4Var; } public void onAnimationCancel(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } public void onAnimationEnd(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } public void onAnimationRepeat(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } public void onAnimationStart(Animator animator) { d5 d5Var; Intrinsics.checkNotNullParameter(animator, "animator"); if (this.f118938a && (d5Var = (d5) this.f118939b.getLinker()) != null) { d5Var.r(); } } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", "err", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class s extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118940a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public s(v4 v4Var) { super(1); this.f118940a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "err"); com.xingin.capa.v2.utils.s.a(this.f118940a.f118826a, th3.toString()); } } @Metadata(bv = {}, d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\b\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\t"}, d2 = {"com/xingin/capacore/utils/AnimatorExtKt$addListener$listener$1", "Landroid/animation/Animator$AnimatorListener;", "Landroid/animation/Animator;", "animator", "", "onAnimationStart", "onAnimationEnd", "onAnimationCancel", "onAnimationRepeat", "capa_core_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: AnimatorExt.kt */ public static final class s0 implements Animator.AnimatorListener { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ boolean f118941a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f118942b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ v4 f118943c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ View f118944d; public s0(boolean z14, int i10, v4 v4Var, View view) { this.f118941a = z14; this.f118942b = i10; this.f118943c = v4Var; this.f118944d = view; } public void onAnimationCancel(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } public void onAnimationEnd(Animator animator) { d5 d5Var; Intrinsics.checkNotNullParameter(animator, "animator"); if (!this.f118941a) { if (this.f118942b == 9) { d5 d5Var2 = (d5) this.f118943c.getLinker(); if (d5Var2 != null) { d5Var2.i0(); } if (((e5) this.f118943c.getPresenter()).j().getChildCount() == 0 && (d5Var = (d5) this.f118943c.getLinker()) != null) { d5Var.i(this.f118943c.g4()); } } else { d5 d5Var3 = (d5) this.f118943c.getLinker(); if (d5Var3 != null) { d5Var3.p0(this.f118943c.g4()); } } this.f118944d.setTranslationY(0.0f); boolean z14 = true; if (!this.f118943c.B3().isPlaying() && !this.f118943c.getActivity().isDestroyed() && Intrinsics.areEqual(this.f118943c.getActivity(), com.xingin.utils.core.a.a())) { v4.u4(this.f118943c, false, 1, null); } d5 d5Var4 = (d5) this.f118943c.getLinker(); if (d5Var4 == null || !d5Var4.f0()) { z14 = false; } if (z14) { this.f118943c.H2().a(new a60.b(ElementContainerView.b.STATE_ENABLE_WITHOUT_STATUS, 0, 16, 2, null)); } } } public void onAnimationRepeat(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } public void onAnimationStart(Animator animator) { Intrinsics.checkNotNullParameter(animator, "animator"); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Ljava/lang/Float;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class t extends Lambda implements Function1<Float, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118945a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public t(v4 v4Var) { super(1); this.f118945a = v4Var; } public final void a(Float f14) { this.f118945a.u0().J0((f14.floatValue() - ((float) 1)) * ((float) 2), this.f118945a.R2().k()); z.a.b(this.f118945a.B3(), this.f118945a.B3().getPosition(), null, 2, null); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Float f14) { a(f14); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", "err", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class u extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118946a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public u(v4 v4Var) { super(1); this.f118946a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "err"); com.xingin.capa.v2.utils.s.a(this.f118946a.f118826a, th3.toString()); } } @Metadata(bv = {}, d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u001c\u0010\u0007\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016¨\u0006\b"}, d2 = {"pl0/v4$v", "Landroid/view/View$OnTouchListener;", "Landroid/view/View;", "v", "Landroid/view/MotionEvent;", "event", "", "onTouch", "capa_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class v implements View.OnTouchListener { /* renamed from: a reason: collision with root package name */ public float f118947a; /* renamed from: b reason: collision with root package name */ public float f118948b; /* renamed from: c reason: collision with root package name */ public boolean f118949c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ v4 f118950d; public v(v4 v4Var) { this.f118950d = v4Var; } public static final void b(v4 v4Var) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); ((e5) v4Var.getPresenter()).n(); } public boolean onTouch(View view, MotionEvent motionEvent) { if (!((e5) this.f118950d.getPresenter()).l().isShown()) { return false; } if (motionEvent != null && motionEvent.getAction() == 1) { ((e5) this.f118950d.getPresenter()).e().postDelayed(new x4(this.f118950d), 100); ((e5) this.f118950d.getPresenter()).g().performClick(); } Integer valueOf = motionEvent != null ? Integer.valueOf(motionEvent.getPointerCount()) : null; if (valueOf != null && valueOf.intValue() == 1) { int actionMasked = motionEvent.getActionMasked(); if (actionMasked == 0) { this.f118947a = motionEvent.getX(); this.f118948b = motionEvent.getY(); } else if (actionMasked == 2) { if (this.f118949c) { this.f118947a = motionEvent.getX(); this.f118948b = motionEvent.getY(); this.f118949c = false; } else { this.f118950d.u0().W0(motionEvent.getX() - this.f118947a, motionEvent.getY() - this.f118948b, this.f118950d.R2().k()); z.a.b(this.f118950d.B3(), this.f118950d.B3().getPosition(), null, 2, null); this.f118947a = motionEvent.getX(); this.f118948b = motionEvent.getY(); } } c60.d dVar = this.f118950d.f118869v0; if (dVar != null) { dVar.d(motionEvent); } } else if (valueOf != null && valueOf.intValue() == 2) { this.f118949c = true; ScaleGestureDetector scaleGestureDetector = this.f118950d.f118871w0; if (scaleGestureDetector != null) { scaleGestureDetector.onTouchEvent(motionEvent); } c60.d dVar2 = this.f118950d.f118869v0; if (dVar2 != null) { dVar2.d(motionEvent); } } return true; } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lvl0/g0;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lvl0/g0;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class w extends Lambda implements Function1<vl0.g0, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118951a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public w(v4 v4Var) { super(1); this.f118951a = v4Var; } public final void a(vl0.g0 g0Var) { if (g0Var instanceof vl0.m0) { ((e5) this.f118951a.getPresenter()).t(true); SaveProgressView y14 = ((e5) this.f118951a.getPresenter()).y(); if (y14 != null) { y14.E(((vl0.m0) g0Var).a()); } } else if (g0Var instanceof vl0.o) { ((e5) this.f118951a.getPresenter()).t(false); } else if (g0Var instanceof vl0.y) { SaveProgressView y15 = ((e5) this.f118951a.getPresenter()).y(); if (y15 != null) { y15.setProgressingTitle(((vl0.y) g0Var).a()); } } else if (g0Var instanceof vl0.x) { SaveProgressView y16 = ((e5) this.f118951a.getPresenter()).y(); if (y16 != null) { y16.l(((vl0.x) g0Var).b()); } SaveProgressView y17 = ((e5) this.f118951a.getPresenter()).y(); if (y17 != null) { y17.setCancelFunc(((vl0.x) g0Var).a()); } } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(vl0.g0 g0Var) { a(g0Var); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class x extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118952a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public x(v4 v4Var) { super(1); this.f118952a = v4Var; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); com.xingin.capa.v2.utils.s.a(this.f118952a.f118826a, "initTemplateHandleEvent error"); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"La60/f;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(La60/f;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: VideoEditController.kt */ public static final class y extends Lambda implements Function1<a60.f, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ v4 f118953a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public y(v4 v4Var) { super(1); this.f118953a = v4Var; } public final void a(a60.f fVar) { CapaPasterPIPModel i02; if (fVar.a() instanceof ze0.f) { b60.a a14 = fVar.a(); ze0.f fVar2 = a14 instanceof ze0.f ? (ze0.f) a14 : null; if (!(fVar2 == null || (i02 = fVar2.i0()) == null)) { v4 v4Var = this.f118953a; Slice slice = i02.getSlice(); if (slice != null) { pq0.o q14 = v4Var.q(); int trackIndex = i02.getTrackIndex(); long startTime = i02.getStartTime(); o80.h transformParams = slice.getTransformParams(); o.a.c(q14, slice, trackIndex, startTime, transformParams == null ? new o80.h(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, null, null, false, 255, null) : transformParams, true, false, true, null, 128, null); } } } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(a60.f fVar) { a(fVar); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: VideoEditController.kt */ public static final class z extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public static final z f118954a = new z(); public z() { super(1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); com.xingin.capa.v2.utils.s.b("TrackListContainerController", th3.getLocalizedMessage(), th3); } } public v4() { dx2.d<Float> b24 = dx2.d.b2(); Intrinsics.checkNotNullExpressionValue(b24, "create<Float>()"); this.f118873x0 = b24; dx2.d<Float> b25 = dx2.d.b2(); Intrinsics.checkNotNullExpressionValue(b25, "create<Float>()"); this.f118875y0 = b25; } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: pl0.v4 */ /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ void B4(v4 v4Var, Function1 function1, int i10, Object obj) { if ((i10 & 1) != 0) { function1 = null; } v4Var.A4(function1); } public static final void F3(v4 v4Var, vl0.e eVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); N4(v4Var, eVar.a(), false, 2, null); } public static final void F4(v4 v4Var, v60.i iVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); Intrinsics.checkNotNullExpressionValue(iVar, AdvanceSetting.NETWORK_TYPE); ((e5) v4Var.getPresenter()).v(iVar); } public static final void G3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.b(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void G4(Throwable th3) { com.xingin.capa.v2.utils.s.b("VideoEditController", th3.getLocalizedMessage(), th3); } public static final void H3(v4 v4Var, Unit unit) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); v4Var.D2().a(Unit.INSTANCE); } public static final void H4(v4 v4Var, zd0.b bVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); List<CapaPasterBaseModel> pasterModelList = v4Var.Q2().getPasterModelList(); ArrayList arrayList = new ArrayList(); for (T t14 : pasterModelList) { if (t14 instanceof CapaPasterTagModel) { arrayList.add(t14); } } int size = arrayList.size(); boolean z14 = false; if (size >= 50) { al2.e.g(v4Var.getActivity().getString(R$string.e2s, new Object[]{String.valueOf(50)})); return; } CapaPasterTagModel capaPasterTagModel = new CapaPasterTagModel(); capaPasterTagModel.setTagBean(bVar.a()); d5 d5Var = (d5) v4Var.getLinker(); if (d5Var != null) { d5Var.k0(); } d5 d5Var2 = (d5) v4Var.getLinker(); if (d5Var2 != null && d5Var2.v()) { z14 = true; } if (z14) { v4Var.y2().a(new vl0.b()); eq0.g.x(eq0.g.f74231a, "标签-编辑", 1, null, 4, null); } v4Var.z2().a(new vl0.c(capaPasterTagModel, false, false, false, false, false, false, 126, null)); j2(v4Var, true, true, 0, 4, null); v4Var.H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 8, 0, 4, null)); } public static final void I3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.b(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void I4(Throwable th3) { th3.printStackTrace(); } public static final void J3(v4 v4Var, vl0.e eVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); v4Var.M4(eVar.a(), true); } public static final void K3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.b(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void L3(v4 v4Var, vl0.a0 a0Var) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); ((e5) v4Var.getPresenter()).q(a0Var.b(), a0Var.a()); } public static final void M3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.b(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void N3(v4 v4Var, a60.h hVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); d5 d5Var = (d5) v4Var.getLinker(); boolean z14 = true; if (d5Var == null || !d5Var.f0()) { z14 = false; } if (!z14) { return; } if (hVar.a()) { d5 d5Var2 = (d5) v4Var.getLinker(); if (d5Var2 != null) { d5Var2.k0(); return; } return; } d5 d5Var3 = (d5) v4Var.getLinker(); if (d5Var3 != null) { d5Var3.i(v4Var.g4()); } } public static /* synthetic */ void N4(v4 v4Var, int i10, boolean z14, int i14, Object obj) { if ((i14 & 2) != 0) { z14 = true; } v4Var.M4(i10, z14); } public static final void O3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.b(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void P3(v4 v4Var, a60.g gVar) { String str; Intrinsics.checkNotNullParameter(v4Var, "this$0"); CapaPasterBaseModel d33 = v4Var.d3(gVar.b()); boolean z14 = false; if (d33 != null) { d5 d5Var = (d5) v4Var.getLinker(); if (!(d5Var != null && d5Var.f0())) { d5 d5Var2 = (d5) v4Var.getLinker(); if ((d5Var2 != null && d5Var2.g0()) && (d33 instanceof CapaVideoTextModel)) { d5 d5Var3 = (d5) v4Var.getLinker(); if (d5Var3 != null && !d5Var3.c0()) { v4Var.W2().a(new vl0.n(9, Boolean.TRUE, d33, false, null, null, 56, null)); int e14 = x50.a.f152450a.e("key_video_last_select_text_type", -1); if (e14 == 1) { str = c.EnumC0815c.TEXT_HEAD.name(); } else if (e14 == 2) { str = c.EnumC0815c.TEXT_LABEL.name(); } else if (e14 == 3) { str = c.EnumC0815c.TEXT_HUAZI.name(); } else if (e14 != 4) { str = c.EnumC0815c.TEXT_HEAD.name(); } else { str = c.EnumC0815c.TEXT_STYLE.name(); } eq0.g.x(eq0.g.f74231a, str, 3, null, 4, null); } } d5 d5Var4 = (d5) v4Var.getLinker(); if ((d5Var4 != null && d5Var4.W()) && (d33 instanceof sa0.a)) { d5 d5Var5 = (d5) v4Var.getLinker(); if (d5Var5 != null && !d5Var5.c0()) { v4Var.W2().a(new vl0.n(9, Boolean.FALSE, null, false, null, null, 60, null)); eq0.g.x(eq0.g.f74231a, "字幕", 3, null, 4, null); } } } else if (d33 instanceof CapaPasterStickerModel) { v4Var.W2().a(new vl0.n(3, new vl0.k(true, 1, d33, true), null, false, null, null, 60, null)); } else if (d33 instanceof sa0.a) { v4Var.W2().a(new vl0.n(10, new vl0.k(true, 5, d33, true), null, false, null, null, 60, null)); } else if (d33 instanceof CapaVideoTextModel) { v4Var.W2().a(new vl0.n(2, new vl0.k(true, 2, d33, true), null, false, null, null, 60, null)); } else if (d33 instanceof CapaPasterInteractStickerModel) { v4Var.W2().a(new vl0.n(3, new vl0.k(true, 1, d33, true), null, false, null, null, 60, null)); } else if (d33 instanceof CapaPasterTagModel) { v4Var.W2().a(new vl0.n(4, new vl0.k(true, 3, d33, true), null, false, null, null, 60, null)); } } d5 d5Var6 = (d5) v4Var.getLinker(); if (!(d5Var6 != null && d5Var6.d0())) { d5 d5Var7 = (d5) v4Var.getLinker(); if (d5Var7 != null && d5Var7.Z()) { z14 = true; } if (!z14) { return; } } v4Var.p2(); } public static final void Q3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.b(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void R3(v4 v4Var, vl0.b0 b0Var) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); u80.r.f136431a.x(((e5) v4Var.getPresenter()).k()); } public static final void S3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.b(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void T3(v4 v4Var, td0.a aVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); if (aVar.b() == 1) { v4Var.A2(); } } public static final void U3(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.a(v4Var.f118826a, th3.getLocalizedMessage()); } public static final void V3(v4 v4Var, Object obj) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); ch0.m0 m0Var = ch0.m0.f12248a; m0Var.o0("video_edit_firstFrame", "video_edit"); if (!m0Var.E0()) { m0Var.S0("video_edit_export_without_transcode", "video_edit"); } if (v4Var.g3().s()) { m0Var.s0("template_edit"); } else { m0Var.s0("video_edit"); } } public static final void W3(Throwable th3) { } public static final void c4(v4 v4Var, a60.n nVar) { boolean z14; Intrinsics.checkNotNullParameter(v4Var, "this$0"); boolean z15 = true; if (!v4Var.g4()) { EditableVideo2 editableVideo = v4Var.A3().getEditableVideo(); if ((editableVideo != null ? editableVideo.getStyleEditableVideoSource() : null) == null) { z14 = true; d5 d5Var = (d5) v4Var.getLinker(); if (d5Var == null || !d5Var.f0()) { z15 = false; } if (z15 && z14) { v4Var.K4(nVar.a()); return; } } } z14 = false; d5 d5Var2 = (d5) v4Var.getLinker(); z15 = false; if (z15) { } } public static final void d4(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.d(v4Var.f118826a, th3.getLocalizedMessage(), th3); } public static final void e2(v4 v4Var, Lifecycle.Event event) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); switch (event == null ? -1 : b.f118879a[event.ordinal()]) { case 1: v4Var.B3().k(((e5) v4Var.getPresenter()).g()); return; case 2: v4Var.G0 = false; v0.f51489a.a(); v4Var.k4(); if (v4Var.C0) { EditableVideo2 editableVideo2 = v4Var.D0; if (editableVideo2 != null) { v4Var.h4(editableVideo2); } v4Var.C0 = false; v4Var.D0 = null; return; } return; case 3: v4Var.G0 = true; B4(v4Var, null, 1, null); return; case 4: v4Var.j4(); return; case 5: v4Var.f118877z0 = System.currentTimeMillis(); return; case 6: int currentTimeMillis = (int) (System.currentTimeMillis() - v4Var.f118877z0); if (currentTimeMillis > 0) { h60.e.f85027a.b(i80.e.d(i80.e.f89174a, v4Var.g3(), false, 2, null), v4Var.g3().k(), currentTimeMillis, v4Var.b3()); return; } return; default: return; } } public static final void f2(Throwable th3) { com.xingin.capa.v2.utils.s.b("VideoEditController", th3.getLocalizedMessage(), th3); } public static /* synthetic */ void j2(v4 v4Var, boolean z14, boolean z15, int i10, int i14, Object obj) { if ((i14 & 4) != 0) { i10 = -1; } v4Var.i2(z14, z15, i10); } public static final void m2(v4 v4Var, dw2.t tVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); Intrinsics.checkNotNullParameter(tVar, "emitter"); v4Var.B3().q(); pq0.y yVar = pq0.y.f119509a; yVar.e(); yVar.b(); tVar.a(Unit.INSTANCE); } public static final void m4(v4 v4Var, hw2.c cVar) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); v4Var.z4(true); if (true ^ v4Var.Q2().getSliceList().isEmpty()) { v4Var.s3().a(new wh0.f(v4Var.Q2().getSliceList().get(0).getVideoMetadata().getVideoWidth(), v4Var.Q2().getSliceList().get(0).getVideoMetadata().getVideoHeight(), v4Var.Q2().getSliceList().get(0).getVideoSource().getVideoPath())); } } public static final void n2(Function0 function0, Unit unit) { Intrinsics.checkNotNullParameter(function0, "$jump"); function0.invoke(); } public static final void o2(Throwable th3) { com.xingin.capa.v2.utils.s.f(th3); } public static final void p4(v4 v4Var, List list, Map map) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); Intrinsics.checkNotNullParameter(list, "$sortSliceList"); Intrinsics.checkNotNullParameter(map, "$reverseSlice"); v4Var.B3().l(0, new p0(v4Var, list, map)); } public static final void r2(v4 v4Var, String str) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); String str2 = v4Var.f118826a; com.xingin.capa.v2.utils.s.e(str2, "load video cover success: " + str); if (v4Var.Q2().getVideoCoverPath().length() == 0) { EditableVideo2 Q2 = v4Var.Q2(); Intrinsics.checkNotNullExpressionValue(str, AdvanceSetting.NETWORK_TYPE); Q2.setVideoCoverPath(str); } } public static final void r4(v4 v4Var, float f14) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); boolean z14 = true; v4Var.f3().a(new a60.m(true)); sh0.a.a(v4Var.Q2(), f14, v4Var.Q2().getNeedCompatTemplateSticker(), (float) ((e5) v4Var.getPresenter()).k().getMeasuredWidth(), (float) ((e5) v4Var.getPresenter()).k().getMeasuredHeight()); for (T t14 : v4Var.Q2().getPasterModelList()) { boolean z15 = !(t14 instanceof CapaPasterPIPModel) && (!(t14 instanceof CapaPasterStickerModel) || !t14.isTemplateConsume()); t14.setFromDraft(true); v4Var.z2().a(new vl0.c(t14, v4Var.g3().i().getReeditLableSource(), true, false, false, false, z15, 56, null)); } d5 d5Var = (d5) v4Var.getLinker(); if (d5Var == null || !d5Var.f0()) { z14 = false; } if (z14) { v4Var.H2().a(new a60.b(ElementContainerView.b.STATE_ENABLE_WITHOUT_STATUS, 0, 16, 2, null)); } v4Var.Q2().setVideoScale(((float) ((e5) v4Var.getPresenter()).k().getMeasuredWidth()) / ((float) v4Var.Q2().getVideoWidth())); DnsPreloader.INSTANCE.preload(); if (v4Var.g3().i().getReeditLableSource()) { d5 d5Var2 = (d5) v4Var.getLinker(); if (d5Var2 != null) { d5Var2.v(); } v4Var.H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 8, 0, 4, null)); j2(v4Var, true, true, 0, 4, null); } } public static final void s2(v4 v4Var, Throwable th3) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); com.xingin.capa.v2.utils.s.d(v4Var.f118826a, "generate video cover failed", th3); } public static /* synthetic */ void u4(v4 v4Var, boolean z14, int i10, Object obj) { if ((i10 & 1) != 0) { z14 = false; } v4Var.t4(z14); } public static final void v4(v4 v4Var) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); if (v4Var.h2() && !v4Var.E0 && !v4Var.G0 && v4Var.B3().e()) { v4Var.B3().f(new z.b(0, v4Var.B3().getPosition(), 0, true, 5, null)); } } public static final void x2(v4 v4Var) { Intrinsics.checkNotNullParameter(v4Var, "this$0"); v4Var.W2().a(new vl0.n(11, null, null, false, null, null, 62, null)); } public final void A2() { long position = B3().getPosition(); List<String> list = this.f118833d0.get(Long.valueOf(position)); if (list == null || !(!list.isEmpty())) { z3().u0().o0(position, new e(this, position)); } else { t3().a(new td0.a(list, 2)); } } public final IVideoEditor A3() { IVideoEditor iVideoEditor = this.f118834e; if (iVideoEditor != null) { return iVideoEditor; } Intrinsics.throwUninitializedPropertyAccessException("videoEditor"); return null; } public final void A4(Function1<Object, Unit> function1) { Unit unit; if (B3().isPlaying()) { if (function1 != null) { B3().p(function1); unit = Unit.INSTANCE; } else { unit = null; } if (unit == null) { B3().stop(); } } } public final s80.a B2() { s80.a aVar = this.f118838g; if (aVar != null) { return aVar; } Intrinsics.throwUninitializedPropertyAccessException("beautifyPresenter"); return null; } public final pq0.z B3() { pq0.z zVar = this.f118848l; if (zVar != null) { return zVar; } Intrinsics.throwUninitializedPropertyAccessException("videoPlayer"); return null; } public final qq0.j0 C() { qq0.j0 j0Var = this.f118862s; if (j0Var != null) { return j0Var; } Intrinsics.throwUninitializedPropertyAccessException("renderTextEditor"); return null; } public final eb0.d C2() { eb0.d dVar = this.Y; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("bgmRepo"); return null; } /* JADX WARNING: Code restructure failed: missing block: B:26:0x004f, code lost: if (r3 != null) goto L_0x0081; */ /* JADX WARNING: Code restructure failed: missing block: B:43:0x007f, code lost: if (r3 != null) goto L_0x0081; */ /* JADX WARNING: Code restructure failed: missing block: B:44:0x0081, code lost: r0 = true; */ public final void C3(vl0.c0 c0Var) { List<CapaPasterBaseModel> pasterModelList; boolean z14; List<CapaPasterBaseModel> pasterModelList2; boolean z15; if (c0Var.a()) { if (c0Var.c()) { p2(); return; } int b14 = c0Var.b(); CapaPasterBaseModel capaPasterBaseModel = null; if (b14 == 3) { EditableVideo2 Q2 = Q2(); if (!(Q2 == null || (pasterModelList = Q2.getPasterModelList()) == null)) { Iterator<T> it3 = pasterModelList.iterator(); while (true) { if (!it3.hasNext()) { break; } T next = it3.next(); T t14 = next; if (!(t14 instanceof CapaVideoTextModel) || (t14 instanceof sa0.a)) { z14 = false; continue; } else { z14 = true; continue; } if (z14) { capaPasterBaseModel = next; break; } } capaPasterBaseModel = capaPasterBaseModel; } } else if (b14 == 5) { EditableVideo2 Q22 = Q2(); if (!(Q22 == null || (pasterModelList2 = Q22.getPasterModelList()) == null)) { Iterator<T> it4 = pasterModelList2.iterator(); while (true) { if (!it4.hasNext()) { break; } T next2 = it4.next(); T t15 = next2; if ((t15 instanceof CapaPasterStickerModel) || (t15 instanceof CapaPasterInteractStickerModel)) { z15 = true; continue; } else { z15 = false; continue; } if (z15) { capaPasterBaseModel = next2; break; } } capaPasterBaseModel = capaPasterBaseModel; } } boolean z16 = false; if (z16) { d5 d5Var = (d5) getLinker(); if (d5Var != null && d5Var.v()) { y2().a(new vl0.b()); } if (c0Var.b() == 5) { H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 1, 0, 4, null)); } else { H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 2, 0, 4, null)); } } i2(true, false, c0Var.b()); } } public final void C4(boolean z14, int i10) { View view; if (((e5) getPresenter()).j().getChildCount() == 1) { view = ((e5) getPresenter()).j(); } else { view = ((e5) getPresenter()).j().getChildAt(1); } Integer valueOf = Integer.valueOf(h1.p(((e5) getPresenter()).j())); if (!(valueOf.intValue() > 0)) { valueOf = null; } if (valueOf != null) { int intValue = valueOf.intValue(); float f14 = 0.0f; float f15 = z14 ? (float) intValue : 0.0f; if (!z14) { f14 = (float) intValue; } ObjectAnimator ofPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(view, PropertyValuesHolder.ofFloat("translationY", f15, f14)); ofPropertyValuesHolder.setDuration(300L); ofPropertyValuesHolder.setInterpolator(new AccelerateDecelerateInterpolator()); Intrinsics.checkNotNullExpressionValue(ofPropertyValuesHolder, ""); ofPropertyValuesHolder.addListener(new s0(z14, i10, this, view)); ofPropertyValuesHolder.start(); if (!z14) { uo0.e.P(null, false, false, false, null, 31, null); } } } public final dx2.b<Unit> D2() { dx2.b<Unit> bVar = this.f118876z; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("canvasAndViewChanged"); return null; } public final void D3() { EditableVideo2 editableVideo; CapaFilterBean filter; pq0.m y04; String str; if (!g4()) { FilterEntity creatorFilter = g3().i().getCreatorFilter(); if (creatorFilter != null) { String str2 = Intrinsics.areEqual(Locale.getDefault().getLanguage(), "zh") ? creatorFilter.cn_name : creatorFilter.en_name; t.a aVar = j90.t.f93913b; String str3 = creatorFilter.f49115id; Intrinsics.checkNotNullExpressionValue(str3, "it.id"); FilterEntity z14 = aVar.z(str3); if (z14 != null) { str = u90.c.f136512a.a(z14); } else { str = creatorFilter.category_id; } Intrinsics.checkNotNullExpressionValue(str2, "filterName"); Intrinsics.checkNotNullExpressionValue(str, "subTip"); ((e5) getPresenter()).q(str2, str); } IVideoEditor n14 = g3().n(); if (n14 != null && (editableVideo = n14.getEditableVideo()) != null && (filter = editableVideo.getFilter()) != null && (y04 = y0()) != null) { m.a.b(y04, filter.convert2FilterModel(), null, 2, null); } } } public final dx2.b<Unit> E2() { dx2.b<Unit> bVar = this.A; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("canvasPageClose"); return null; } public final void E3() { dw2.r<String> W0 = c3().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "pasterGuideDismiss.obser…dSchedulers.mainThread())"); Object n14 = W0.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); bj2.h.b((com.uber.autodispose.y) n14, new f(this)); dw2.r<vl0.n> W02 = W2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W02, "entranceViewClicked.obse…dSchedulers.mainThread())"); Object n15 = W02.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n15, "this.`as`(AutoDispose.autoDisposable(provider))"); bj2.h.b((com.uber.autodispose.y) n15, new n(this)); dw2.r<vl0.c0> W03 = Z2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W03, "onSubViewHided.observeOn…dSchedulers.mainThread())"); Object n16 = W03.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n16, "this.`as`(AutoDispose.autoDisposable(provider))"); bj2.h.b((com.uber.autodispose.y) n16, new p(this)); ControllerExtensionsKt.a(this, getActivity(), true, new q(this)); dw2.r<vl0.e> W04 = F2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W04, "canvasParamChanged.obser…dSchedulers.mainThread())"); Object n17 = W04.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n17, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n17).a(new m3(this), new b4(this)); dw2.r<Unit> W05 = E2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W05, "canvasPageClose.observeO…dSchedulers.mainThread())"); Object n18 = W05.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n18, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n18).a(new c4(this), new y3(this)); dw2.r<vl0.e> W06 = k3().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W06, "styleCanvasParamChanged.…dSchedulers.mainThread())"); Object n19 = W06.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n19, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n19).a(new u4(this), new v3(this)); dw2.r<vl0.a0> W07 = h3().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W07, "showFilterTips.observeOn…dSchedulers.mainThread())"); Object n24 = W07.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n24, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n24).a(new n3(this), new a4(this)); dw2.r<a60.h> W08 = U2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W08, "elementInSafeAreaSubject…dSchedulers.mainThread())"); Object n25 = W08.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n25, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n25).a(new p4(this), new u3(this)); dw2.r<a60.g> W09 = T2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W09, "elementClickedSubject.ob…dSchedulers.mainThread())"); Object n26 = W09.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n26, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n26).a(new o4(this), new t3(this)); dw2.r<vl0.b0> W010 = i3().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W010, "showZoomVideoCanvasTipEv…dSchedulers.mainThread())"); Object n27 = W010.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n27, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n27).a(new o3(this), new x3(this)); dw2.r<td0.a> W011 = t3().W0(mi2.a.P()); Intrinsics.checkNotNullExpressionValue(W011, "subjectAiColor\n …rveOn(LightExecutor.io())"); Object n28 = W011.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n28, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n28).a(new s4(this), new s3(this)); dw2.r<Object> W012 = B3().b().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W012, "videoPlayer.firstFrameRe…dSchedulers.mainThread())"); Object n29 = W012.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n29, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n29).a(new d4(this), g4.f118667a); dw2.r<Long> W013 = B3().j().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W013, "videoPlayer.positionChan…dSchedulers.mainThread())"); bj2.h.f(W013, this, g.f118896a, new h(this)); dw2.r<pq0.p> W014 = B3().n().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W014, "videoPlayer.playerStateC…dSchedulers.mainThread())"); bj2.h.f(W014, this, new i(this), new j(this)); dw2.r<wh0.a> W015 = j3().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W015, "styleCancelSubject.obser…dSchedulers.mainThread())"); bj2.h.f(W015, this, new k(this), l.f118912a); a4(); dw2.r<vl0.r> W016 = Y2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W016, "onReverseState.observeOn…dSchedulers.mainThread())"); bj2.h.f(W016, this, new m(this), o.f118917a); } public final void E4() { ej2.a aVar = ej2.a.f72257b; Object n14 = aVar.b(v60.i.class).n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).a(new r4(this), i4.f118739a); Object n15 = aVar.b(zd0.b.class).n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n15, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n15).a(new t4(this), f4.f118657a); } public final dx2.b<vl0.e> F2() { dx2.b<vl0.e> bVar = this.f118874y; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("canvasParamChanged"); return null; } public final dx2.d<vl0.p> G2() { dx2.d<vl0.p> dVar = this.C; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("changeContainerParam"); return null; } public final dx2.d<a60.b> H2() { dx2.d<a60.b> dVar = this.f118872x; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("changeContainerSubject"); return null; } public final pq0.w I() { pq0.w wVar = this.W; if (wVar != null) { return wVar; } Intrinsics.throwUninitializedPropertyAccessException("templateEditor"); return null; } public final dx2.b<a60.d> I2() { dx2.b<a60.d> bVar = this.L; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("changeElementStateSubject"); return null; } public final int J2() { if (g4()) { int f14 = d1.f(); Resources system = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system, "Resources.getSystem()"); return (f14 - ((int) TypedValue.applyDimension(1, (float) 206, system.getDisplayMetrics()))) - K2(); } int f15 = d1.f(); Resources system2 = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system2, "Resources.getSystem()"); return Math.min((int) (((float) d1.h()) * b00.a.f5877d.b().f()), (f15 - ((int) TypedValue.applyDimension(1, (float) 80, system2.getDisplayMetrics()))) - K2()); } public final void J4() { t.a aVar = j90.t.f93913b; FilterEntity P2 = aVar.P(); if (P2 != null) { B2().s(P2); w4(aVar.P()); } } public final int K2() { float f14; if (g4()) { Resources system = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system, "Resources.getSystem()"); f14 = TypedValue.applyDimension(1, (float) 60, system.getDisplayMetrics()); } else { Resources system2 = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system2, "Resources.getSystem()"); f14 = TypedValue.applyDimension(1, (float) 44, system2.getDisplayMetrics()); } return (int) f14; } public final void K4(int i10) { List<FilterEntity> h10 = B2().h(); int size = h10.size(); if (size != 0) { int g10 = B2().g(); if (i10 == ar0.a.f4877j.a()) { int g14 = (B2().g() + 1) % size; int i14 = g14; do { if (!h10.get(i14).isDownloaded() || !f4(i14)) { i14 = (i14 + 1) % size; } else { B2().f().setFilterIndex(i14); if (i14 == 0 && g10 != -1) { J4(); return; } } } while (i14 != g14); return; } int g15 = (B2().g() - 1) % size; if (g15 < 0) { g15 += size; } int i15 = g15; do { if (!h10.get(i15).isDownloaded() || !f4(i15)) { i15 = (i15 - 1) % size; if (i15 < 0) { i15 += size; continue; } } else { B2().f().setFilterIndex(i15); if (i15 == size - 2 && g10 != -1) { J4(); return; } } } while (i15 != g15); return; B2().r(B2().f().getFilterIndex(), true); t.a aVar = j90.t.f93913b; String str = B2().h().get(B2().f().getFilterIndex()).f49115id; Intrinsics.checkNotNullExpressionValue(str, "creatorFilter.id"); w4(aVar.z(str)); O4(B2().f().getFilterIndex(), 2); } } public final dx2.d<jm0.b> L2() { dx2.d<jm0.b> dVar = this.f118835e0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("cropActionSubject"); return null; } public final void L4() { String str; VideoTemplate J2 = zp0.a.J(A3()); if (J2 == null || (str = Integer.valueOf(J2.getId()).toString()) == null) { str = i80.d.f89172a.b().i().getEntranceSource(); } String stringExtra = getActivity().getIntent().getStringExtra("key_edit_page_source"); String str2 = ""; if (stringExtra == null) { stringExtra = str2; } String stringExtra2 = getActivity().getIntent().getStringExtra("capa_edit_page_source"); if (stringExtra2 != null) { str2 = stringExtra2; } if (Intrinsics.areEqual(str2, ij0.s.CAPA_TEMPLATE_DETAIL_ALBUM_EDIT_SOURCE.getSource())) { i80.d.f89172a.b().c(ij0.t.TEMPLATE_DETAIL_ENTRY); } else if (Intrinsics.areEqual(str2, ij0.s.CAPA_TEMPLATE_USER_ALBUM_EDIT_SOURCE.getSource())) { i80.d.f89172a.b().c(ij0.t.USER_ENTRY); } else if (Intrinsics.areEqual(str2, ij0.s.CAPA_TEMPLATE_PROFILE_ALBUM_EDIT_SOURCE.getSource())) { i80.d.f89172a.b().c(ij0.t.PROFILE_ENTRY); } else if (Intrinsics.areEqual(str2, ij0.s.CAPA_TEMPLATE_NNS_ALBUM_EDIT_SOURCE.getSource())) { i80.d.f89172a.b().c(ij0.t.NNS_ENTRY); } else if (Intrinsics.areEqual(str2, ij0.s.CAPA_TEMPLATE_AUDIT_PASS_ALBUM_EDIT_SOURCE.getSource())) { i80.d.f89172a.b().c(ij0.t.AUDIT_PASS_POPUP_ENTRY); } else if (Intrinsics.areEqual(str2, ij0.s.CAPA_TEMPLATE_TAB_ALBUM_EDIT_SOURCE.getSource())) { i80.d.f89172a.b().c(ij0.t.CAPA_TEMPLATE_ENTRY); } eq0.g.f74231a.q(d3.video_note, str, g3().k(), stringExtra); h60.a.e(h60.a.f85020a, "video_edit", getActivity(), false, 4, null); aq0.p.f4785a.j().l("page_starting_without_render"); dh0.b.f68760a.e(m.b.f68795a); } public final FilterEntity M2(int i10) { if (B2().a(i10)) { FilterEntity clone = B2().h().get(i10).clone(); Intrinsics.checkNotNullExpressionValue(clone, "beautifyPresenter.filterList[filterIndex].clone()"); return clone; } else if (B2().h().size() > 0) { return B2().h().get(0); } else { return null; } } public final void M4(int i10, boolean z14) { if (i10 == -1) { ((e5) getPresenter()).k().setAspectRatio(zp0.b.l(Q2())); ViewGroup.LayoutParams layoutParams = ((e5) getPresenter()).k().getLayoutParams(); Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"); FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) layoutParams; float l14 = zp0.b.l(Q2()); a.C0082a aVar = b00.a.f5877d; float f14 = 1.0f; if (l14 <= aVar.f().f()) { layoutParams2.gravity = 49; ((e5) getPresenter()).e().setPivotY(0.0f); ((e5) getPresenter()).e().setPivotX((float) (d1.h() / 2)); ((e5) getPresenter()).e().setScaleX(z14 ? v3() : 1.0f); ((e5) getPresenter()).e().setScaleY(z14 ? v3() : 1.0f); } else { layoutParams2.gravity = 17; ((e5) getPresenter()).e().setScaleX(1.0f); ((e5) getPresenter()).e().setScaleY(1.0f); } if (h1.p(((e5) getPresenter()).j()) > 0 && zp0.b.l(Q2()) <= aVar.f().f()) { ((e5) getPresenter()).e().setPivotY(0.0f); ((e5) getPresenter()).e().setPivotX((float) (d1.h() / 2)); ((e5) getPresenter()).e().setScaleX(z14 ? v3() : 1.0f); FrameLayout e14 = ((e5) getPresenter()).e(); if (z14) { f14 = v3(); } e14.setScaleY(f14); } ((e5) getPresenter()).k().setLayoutParams(layoutParams2); ViewGroup.LayoutParams layoutParams3 = ((e5) getPresenter()).e().getLayoutParams(); Objects.requireNonNull(layoutParams3, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"); FrameLayout.LayoutParams layoutParams4 = (FrameLayout.LayoutParams) layoutParams3; int p14 = h1.p(((e5) getPresenter()).j()); layoutParams4.topMargin = K2(); if (zp0.b.l(Q2()) <= aVar.f().f() || p14 <= 0) { layoutParams4.height = J2(); } else { layoutParams4.height = (d1.f() - p14) - K2(); } if (!(((e5) getPresenter()).e().getTranslationY() == 0.0f)) { ((e5) getPresenter()).e().setTranslationY(0.0f); } ((e5) getPresenter()).e().setLayoutParams(layoutParams4); } else { float a14 = VideoPaintBean.Companion.a(i10); ((e5) getPresenter()).k().setAspectRatio(a14); y4(a14, z14); } Q2().setVideoScale(((float) ((e5) getPresenter()).k().getMeasuredWidth()) / ((float) Q2().getVideoWidth())); } public final eq0.c N2() { eq0.c cVar = this.f118830c; if (cVar != null) { return cVar; } Intrinsics.throwUninitializedPropertyAccessException("editToolTrackManager"); return null; } public final dx2.d<vl0.m> O2() { dx2.d<vl0.m> dVar = this.f118859q0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("editableListNotifyEvent"); return null; } public final void O4(int i10, int i14) { if (i10 >= 0 && i10 < B2().h().size()) { FilterEntity filterEntity = B2().h().get(i10); String str = filterEntity.cn_name; Intrinsics.checkNotNullExpressionValue(str, "filter.cn_name"); String str2 = filterEntity.f49115id; Intrinsics.checkNotNullExpressionValue(str2, "filter.id"); eq0.e.m1(eq0.e.f73653a, i80.d.f89172a.b().k(), d3.video_note, i10 + 1, str, str2, i14, null, 64, null); } } public final pq0.e P() { pq0.e eVar = this.f118850m; if (eVar != null) { return eVar; } Intrinsics.throwUninitializedPropertyAccessException("clipEditor"); return null; } public final dx2.d<vl0.g0> P2() { dx2.d<vl0.g0> dVar = this.f118827a0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("editableListTemplateEvent"); return null; } public final EditableVideo2 Q2() { EditableVideo2 editableVideo2 = this.f118840h; if (editableVideo2 != null) { return editableVideo2; } Intrinsics.throwUninitializedPropertyAccessException("editableVideo"); return null; } public final pq0.k R2() { pq0.k kVar = this.f118856p; if (kVar != null) { return kVar; } Intrinsics.throwUninitializedPropertyAccessException("editorState"); return null; } public final dx2.d<a60.f> S2() { dx2.d<a60.f> dVar = this.f118863s0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("elementAddedScreenSubject"); return null; } public final dx2.d<a60.g> T2() { dx2.d<a60.g> dVar = this.K; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("elementClickedSubject"); return null; } public final dx2.d<a60.h> U2() { dx2.d<a60.h> dVar = this.Z; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("elementInSafeAreaSubject"); return null; } public final im0.m V2() { im0.m mVar = this.f118843i0; if (mVar != null) { return mVar; } Intrinsics.throwUninitializedPropertyAccessException("entranceImpression"); return null; } public final dx2.b<vl0.n> W2() { dx2.b<vl0.n> bVar = this.f118870w; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("entranceViewClicked"); return null; } public final za0.v X2() { za0.v vVar = this.f118860r; if (vVar != null) { return vVar; } Intrinsics.throwUninitializedPropertyAccessException("musicEditor"); return null; } @SuppressLint({"RxDefaultScheduler"}) public final void X3() { this.f118869v0 = new c60.d(new ip0.o(this.f118873x0)); dx2.d<Float> dVar = this.f118873x0; TimeUnit timeUnit = TimeUnit.MILLISECONDS; dw2.r<Float> W0 = dVar.G1(50, timeUnit).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "rotationEvent.throttleLa…dSchedulers.mainThread())"); bj2.h.f(W0, this, new r(this), new s(this)); this.f118871w0 = new ScaleGestureDetector(getActivity(), new ip0.p(this.f118875y0)); dw2.r<Float> W02 = this.f118875y0.G1(50, timeUnit).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W02, "scaleEvent.throttleLast(…dSchedulers.mainThread())"); bj2.h.f(W02, this, new t(this), new u(this)); Z3(); } public final dx2.d<vl0.r> Y2() { dx2.d<vl0.r> dVar = this.f118861r0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("onReverseState"); return null; } public final dx2.b<vl0.c0> Z2() { dx2.b<vl0.c0> bVar = this.M; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("onSubViewHided"); return null; } @SuppressLint({"ClickableViewAccessibility"}) public final void Z3() { ((e5) getPresenter()).g().setOnTouchListener(new v(this)); } public final void a2() { B4(this, null, 1, null); H2().a(new a60.b(ElementContainerView.b.STATE_UNABLE, 0, 0, 6, null)); d5 d5Var = (d5) getLinker(); if (d5Var != null) { d5Var.f(); } x50.a.f152450a.i("pref_click_chapter_entrance", true); } public final void a4() { dw2.r<vl0.g0> W0 = P2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "editableListTemplateEven…dSchedulers.mainThread())"); bj2.h.f(W0, this, new w(this), new x(this)); dw2.r<a60.f> W02 = S2().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W02, "elementAddedScreenSubjec…dSchedulers.mainThread())"); bj2.h.f(W02, this, new y(this), z.f118954a); } public final void b2() { NoteEditorImpl i10 = g3().i(); List<Slice> sliceList = Q2().getSliceList(); ArrayList arrayList = new ArrayList(); for (T t14 : sliceList) { if (!t14.isVideo()) { arrayList.add(t14); } } i10.setOriginAlbumSelectPicCount(arrayList.size()); NoteEditorImpl i14 = g3().i(); List<Slice> sliceList2 = Q2().getSliceList(); ArrayList<Slice> arrayList2 = new ArrayList(); for (T t15 : sliceList2) { if (t15.isVideo()) { arrayList2.add(t15); } } ArrayList arrayList3 = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList2, 10)); for (Slice slice : arrayList2) { arrayList3.add(Long.valueOf(slice.getVideoMetadata().getDurationMs())); } i14.setOriginAlbumSelectVideoDurations(arrayList3); } public final String b3() { String str = this.f118841h0; if (str != null) { return str; } Intrinsics.throwUninitializedPropertyAccessException("pageSourceValue"); return null; } public final void b4() { bj2.h.d(((e5) getPresenter()).i(), this, new a0(this)); IImageEditor g10 = g3().g(); bj2.h.f(((e5) getPresenter()).o(this.f118842i, this.f118844j, A3().oneKeyFromEdit(g10 != null ? g10.hasImageData() : false), getActivity().getIntent().getBooleanExtra("is_from_deeplink", false)), this, new b0(this), c0.f118887a); if (g4()) { ((e5) getPresenter()).d(); } else { ((e5) getPresenter()).b(); } dw2.r<a60.n> W0 = u3().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "swipeSubject.observeOn(A…dSchedulers.mainThread())"); Object n14 = W0.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).a(new q4(this), new z3(this)); bj2.h.d(((e5) getPresenter()).h(), this, new d0(this)); X3(); u0().N0(new e0(this)); q4(); E4(); } public final void c2() { if (zp0.a.J(A3()) != null) { g3().i().setEntranceType(i80.a.CAPA_ENTRANCE_TEMPLATE_EDIT); return; } EditableVideo2 editableVideo = A3().getEditableVideo(); if ((editableVideo != null ? editableVideo.getStyleEditableVideoSource() : null) != null) { if (Q2().getStyleEditableVideoSource() == yp0.a.ALBUM) { g3().i().setEntranceType(i80.a.CAPA_ENTRANCE_AUTO_EDIT); } } else if (Intrinsics.areEqual(g3().i().getEntranceSource(), "capture")) { g3().i().setEntranceType(i80.a.CAPA_ENTRANCE_CAMERA_EDIT); b2(); } else { g3().i().setEntranceType(i80.a.CAPA_ENTRANCE_VIDEO_EDIT); if (Intrinsics.areEqual(yo0.n.f158929a.j(g3().i().getSource()), "share")) { b2(); } } } public final dx2.d<String> c3() { dx2.d<String> dVar = this.f118868v; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("pasterGuideDismiss"); return null; } public final void d2() { Object n14 = getActivity().lifecycle().n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).a(new h4(this), j4.f118744a); } public final CapaPasterBaseModel d3(int i10) { for (T t14 : Q2().getPasterModelList()) { if (t14.getPasterViewId() == i10) { return t14; } } return null; } public final List<String> e3(List<String> list) { ArrayList arrayList = new ArrayList(); T t14 = null; for (T t15 : list) { if (t15 != null) { if (t14 == null) { t14 = t15; } arrayList.add(t15); } } if (arrayList.size() < 6) { arrayList.clear(); if (t14 != null) { for (T t16 : list) { if (t16 == null) { arrayList.add(t14); } else { arrayList.add(t16); } } while (arrayList.size() < 6) { arrayList.add(t14); } } } return arrayList; } public final boolean e4() { return this.F0; } public final dx2.d<a60.m> f3() { dx2.d<a60.m> dVar = this.R; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("safeAreaLaunchEvent"); return null; } public final boolean f4(int i10) { FilterEntity M2 = M2(i10); return (M2 == null || M2.source_type == 10) ? false : true; } public final Pair<Float, Float> g2(boolean z14, int i10, float f14, float f15, float f16) { float f17; int childCount = ((e5) getPresenter()).j().getChildCount(); float f18 = 0.0f; Float valueOf = Float.valueOf(0.0f); if (z14) { if (childCount != 1) { return new Pair<>(Float.valueOf(((e5) getPresenter()).e().getTranslationY()), Float.valueOf(((e5) getPresenter()).e().getTranslationY())); } ViewGroup.LayoutParams layoutParams = ((e5) getPresenter()).k().getLayoutParams(); Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"); if (((FrameLayout.LayoutParams) layoutParams).gravity == 17) { f17 = ((float) i10) - ((((float) (d1.f() - K2())) - ((f14 - f15) / 2.0f)) - (f15 * f16)); } else { f17 = ((float) i10) - ((((float) d1.f()) - (f15 * f16)) - ((float) K2())); } float f19 = ((float) (d1.f() - i10)) - (f15 * f16); if (f19 > 0.0f) { f18 = f19 / 2.0f; } return new Pair<>(valueOf, Float.valueOf(-(f17 + f18))); } else if (childCount == 1) { return new Pair<>(Float.valueOf(((e5) getPresenter()).e().getTranslationY()), valueOf); } else { return new Pair<>(Float.valueOf(((e5) getPresenter()).e().getTranslationY()), Float.valueOf(((e5) getPresenter()).e().getTranslationY())); } } public final wp0.e g3() { wp0.e eVar = this.f118832d; if (eVar != null) { return eVar; } Intrinsics.throwUninitializedPropertyAccessException("session"); return null; } public final boolean g4() { return zp0.a.J(A3()) != null && !g3().s(); } public final XhsActivity getActivity() { XhsActivity xhsActivity = this.f118828b; if (xhsActivity != null) { return xhsActivity; } Intrinsics.throwUninitializedPropertyAccessException("activity"); return null; } public final boolean h2() { d5 d5Var = (d5) getLinker(); if ((d5Var != null && d5Var.f0()) && !g3().i().getReeditLableSource()) { return true; } d5 d5Var2 = (d5) getLinker(); if (d5Var2 != null && d5Var2.z()) { return true; } d5 d5Var3 = (d5) getLinker(); if (d5Var3 != null && d5Var3.E()) { return true; } d5 d5Var4 = (d5) getLinker(); if (d5Var4 != null && d5Var4.D()) { return true; } return false; } public final dx2.b<vl0.a0> h3() { dx2.b<vl0.a0> bVar = this.P; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("showFilterTips"); return null; } public final void h4(EditableVideo2 editableVideo2) { l2(new f0(this, editableVideo2)); } public final void i2(boolean z14, boolean z15, int i10) { int i14; int i15; float f14; int i16; int i17; C4(z15, i10); if (!z15) { Fresco.getImagePipeline().d(); } if (z14) { if (((e5) getPresenter()).j().getChildCount() != 0) { View childAt = ((e5) getPresenter()).j().getChildAt(0); Objects.requireNonNull(childAt, "null cannot be cast to non-null type android.view.View"); if (childAt instanceof AddStickerView) { i14 = AddStickerView.f50326b.b(); } else if (childAt instanceof AddTextView) { int b14 = bn0.j0.R.b(); Resources system = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system, "Resources.getSystem()"); i14 = b14 + ((int) TypedValue.applyDimension(1, (float) 50, system.getDisplayMetrics())); } else { Integer valueOf = Integer.valueOf(h1.p(((e5) getPresenter()).j())); if (!(valueOf.intValue() > 0)) { valueOf = null; } if (valueOf != null) { i14 = valueOf.intValue(); } else { return; } } if (((e5) getPresenter()).j().getChildCount() == 2) { if (((e5) getPresenter()).j().getChildAt(1) instanceof AddStickerView) { i17 = AddStickerView.f50326b.b(); View childAt2 = ((e5) getPresenter()).j().getChildAt(0); Intrinsics.checkNotNullExpressionValue(childAt2, "presenter.getSubViewContainer().getChildAt(0)"); i16 = h1.p(childAt2); } else { int b15 = bn0.j0.R.b(); Resources system2 = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system2, "Resources.getSystem()"); i17 = b15 + ((int) TypedValue.applyDimension(1, (float) 50, system2.getDisplayMetrics())); View childAt3 = ((e5) getPresenter()).j().getChildAt(0); Intrinsics.checkNotNullExpressionValue(childAt3, "presenter.getSubViewContainer().getChildAt(0)"); i16 = h1.p(childAt3); } i14 = i17 - i16; i15 = i17; } else { i15 = i14; } float measuredHeight = (float) ((e5) getPresenter()).e().getMeasuredHeight(); float measuredHeight2 = (float) ((e5) getPresenter()).k().getMeasuredHeight(); if (z15) { f14 = (float) ((d1.f() - i15) - d1.j(getActivity())); } else { f14 = i14 != i15 ? (((e5) getPresenter()).e().getScaleX() * measuredHeight) + ((float) i14) : measuredHeight; } float f15 = measuredHeight2 > 0.0f ? f14 / measuredHeight2 : 1.0f; String str = this.f118826a; com.xingin.capa.v2.utils.s.a(str, "gap: " + i14 + ",targetHeight: " + f14 + ", scale: " + f15 + " contentHeight:" + measuredHeight); if (f15 > 1.0f) { f15 = 1.0f; } if (measuredHeight2 <= f14) { if (((e5) getPresenter()).e().getScaleX() == 1.0f) { ObjectAnimator ofPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(new ViewWrapper(((e5) getPresenter()).e()), PropertyValuesHolder.ofInt("height", z15 ? ((e5) getPresenter()).e().getMeasuredHeight() : (d1.f() - i15) - K2(), z15 ? (d1.f() - i15) - K2() : i14 != i15 ? i14 + (d1.f() - i15) : J2())); ofPropertyValuesHolder.setDuration(300L); ofPropertyValuesHolder.setInterpolator(new AccelerateDecelerateInterpolator()); ofPropertyValuesHolder.start(); if (!(((e5) getPresenter()).e().getTranslationY() == 0.0f)) { ((e5) getPresenter()).e().setTranslationY(0.0f); } } } Pair<Float, Float> g24 = g2(z15, i15, measuredHeight, measuredHeight2, f15); ObjectAnimator ofPropertyValuesHolder2 = ObjectAnimator.ofPropertyValuesHolder(((e5) getPresenter()).e(), PropertyValuesHolder.ofFloat("translationY", g24.getFirst().floatValue(), g24.getSecond().floatValue())); ofPropertyValuesHolder2.setDuration(300L); ofPropertyValuesHolder2.setInterpolator(new AccelerateDecelerateInterpolator()); ofPropertyValuesHolder2.start(); PropertyValuesHolder ofFloat = PropertyValuesHolder.ofFloat("scale", f15); ((e5) getPresenter()).e().setPivotY(0.0f); ((e5) getPresenter()).e().setPivotX((float) (d1.h() / 2)); ObjectAnimator ofPropertyValuesHolder3 = ObjectAnimator.ofPropertyValuesHolder(new ViewWrapper(((e5) getPresenter()).e()), ofFloat); ofPropertyValuesHolder3.setDuration(300L); ofPropertyValuesHolder3.setInterpolator(new AccelerateDecelerateInterpolator()); ofPropertyValuesHolder3.start(); } else { return; } } if (!z15) { ((e5) getPresenter()).s(false); if (((e5) getPresenter()).j().getChildCount() == 1) { I2().a(new a60.d(false, -1, false)); } } if (((e5) getPresenter()).j().getChildCount() < 2) { ((e5) getPresenter()).m(z15); } else if (((e5) getPresenter()).j().getChildCount() == 2) { ((e5) getPresenter()).m(true); } } public final dx2.b<vl0.b0> i3() { dx2.b<vl0.b0> bVar = this.f118825J; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("showZoomVideoCanvasTipEvent"); return null; } /* JADX WARN: Type inference failed for: r1v2, types: [java.lang.Object] */ /* JADX WARN: Type inference failed for: r1v7, types: [java.lang.Object] */ /* JADX WARN: Type inference failed for: r1v23, types: [java.lang.Object] */ /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARNING: Unknown variable types count: 3 */ @SuppressLint({"MethodTooLong"}) public final void i4(vl0.n nVar) { boolean z14; d5 d5Var; d5 d5Var2; d5 d5Var3; T t14; List<CapaPasterBaseModel> pasterModelList; T t15; boolean z15; T t16; List<CapaPasterBaseModel> pasterModelList2; T t17; boolean z16; T t18; int a14 = nVar.a(); boolean z17 = false; switch (a14) { case 1: d5 d5Var4 = (d5) getLinker(); if (!(d5Var4 != null && d5Var4.D())) { d5 d5Var5 = (d5) getLinker(); if (d5Var5 != null) { d5Var5.p(); Unit unit = Unit.INSTANCE; } H2().a(new a60.b(ElementContainerView.b.STATE_UNABLE, 0, 0, 6, null)); eq0.c.d(N2(), c.EnumC0815c.MUSIC, null, 2, null); z14 = false; break; } else { return; } break; case 2: B4(this, null, 1, null); EditableVideo2 Q2 = Q2(); if (Q2 == null || (pasterModelList = Q2.getPasterModelList()) == null) { t14 = null; } else { Iterator<T> it3 = pasterModelList.iterator(); while (true) { if (it3.hasNext()) { t15 = it3.next(); T t19 = t15; if (!(t19 instanceof CapaVideoTextModel) || (t19 instanceof sa0.a)) { z15 = false; continue; } else { z15 = true; continue; } if (z15) { } } else { t15 = null; } } t14 = t15; } if (t14 != null) { z17 = true; } if (!z17) { d5 d5Var6 = (d5) getLinker(); if (d5Var6 != null) { d5Var6.b(); Unit unit2 = Unit.INSTANCE; } eq0.c.d(N2(), c.EnumC0815c.TEXT, null, 2, null); } else { d5 d5Var7 = (d5) getLinker(); if (d5Var7 != null) { d5Var7.v(); } eq0.g.x(eq0.g.f74231a, "文字-编辑", 1, null, 4, null); } H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 2, 0, 4, null)); ?? c14 = nVar.c(); if (c14 != 0) { if (c14 instanceof vl0.k) { G2().a(c14); } Unit unit3 = Unit.INSTANCE; } z14 = true; break; case 3: B4(this, null, 1, null); EditableVideo2 Q22 = Q2(); if (Q22 == null || (pasterModelList2 = Q22.getPasterModelList()) == null) { t16 = null; } else { Iterator<T> it4 = pasterModelList2.iterator(); while (true) { if (it4.hasNext()) { t17 = it4.next(); T t23 = t17; if ((!(t23 instanceof CapaPasterStickerModel) || t23.isTemplateConsume()) && !(t23 instanceof CapaPasterInteractStickerModel)) { z16 = false; continue; } else { z16 = true; continue; } if (z16) { } } else { t17 = null; } } t16 = t17; } if (t16 != null) { z17 = true; } if (!z17) { d5 d5Var8 = (d5) getLinker(); if (d5Var8 != null) { d5Var8.a(); Unit unit4 = Unit.INSTANCE; } eq0.g.x(eq0.g.f74231a, "贴纸", 1, null, 4, null); eq0.c.d(N2(), c.EnumC0815c.STICKER, null, 2, null); } else { d5 d5Var9 = (d5) getLinker(); if (d5Var9 != null) { d5Var9.v(); } eq0.g.x(eq0.g.f74231a, "贴纸-编辑", nVar.c() != null ? 3 : 1, null, 4, null); } H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 1, 0, 4, null)); ?? c15 = nVar.c(); if (c15 != 0) { if (c15 instanceof vl0.k) { G2().a(c15); } Unit unit5 = Unit.INSTANCE; } z14 = true; break; case 4: Iterator<T> it5 = Q2().getPasterModelList().iterator(); while (true) { if (it5.hasNext()) { t18 = it5.next(); if (t18 instanceof CapaPasterTagModel) { } } else { t18 = null; } } if (t18 != null) { B4(this, null, 1, null); d5 d5Var10 = (d5) getLinker(); if (d5Var10 != null) { d5Var10.v(); } H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 8, 0, 4, null)); ?? c16 = nVar.c(); if (c16 != 0) { if (c16 instanceof vl0.k) { G2().a(c16); } Unit unit6 = Unit.INSTANCE; } eq0.g.x(eq0.g.f74231a, "标签-编辑", 1, null, 4, null); z14 = true; break; } else { eq0.c.d(N2(), c.EnumC0815c.LABEL, null, 2, null); if (R2().f() < com.igexin.push.config.c.f25230t) { al2.e.m(R$string.bil); return; } B4(this, null, 1, null); Iterator<T> it6 = Q2().getPasterModelList().iterator(); int i10 = 0; while (it6.hasNext()) { if (it6.next() instanceof CapaPasterTagModel) { i10++; } } LabelActivity.a.e(LabelActivity.f49927b, getActivity(), i10, yh0.c.f157920a.c(g3().i().getCommonBusiness(), g3().i().getNoteId()), i80.d.f89172a.b().k(), "value_from_video", "note_type_video", null, Boolean.valueOf(Intrinsics.areEqual(nVar.c(), Boolean.TRUE)), 64, null); return; } case 5: d5 d5Var11 = (d5) getLinker(); if (d5Var11 != null) { d5Var11.j(); Unit unit7 = Unit.INSTANCE; } H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 0, 0, 6, null)); z14 = false; break; case 6: if (CapaAbConfig.INSTANCE.useStyleV2() == 0) { IVideoEditor A3 = A3(); EditableVideo2 editableVideo = A3.getEditableVideo(); if ((editableVideo != null ? editableVideo.getStyleEditableVideoSource() : null) != null) { z17 = true; } if (!z17) { A3 = null; } if (!(A3 == null || A3.getOneKeyGenerate2() == null)) { k2(new k0(this, nVar)); return; } } B4(this, null, 1, null); ((e5) getPresenter()).s(true); d5 d5Var12 = (d5) getLinker(); if (d5Var12 != null) { d5Var12.d(); Unit unit8 = Unit.INSTANCE; } eq0.c.d(N2(), c.EnumC0815c.CANVAS, null, 2, null); H2().a(new a60.b(ElementContainerView.b.STATE_UNABLE, 0, 0, 6, null)); z14 = true; break; case 7: if (CapaAbConfig.INSTANCE.useStyleV2() == 0) { IVideoEditor A32 = A3(); EditableVideo2 editableVideo2 = A32.getEditableVideo(); if ((editableVideo2 != null ? editableVideo2.getStyleEditableVideoSource() : null) != null) { z17 = true; } if (!z17) { A32 = null; } if (!(A32 == null || A32.getOneKeyGenerate2() == null)) { k2(new j0(this, nVar)); return; } } B4(this, null, 1, null); d5 d5Var13 = (d5) getLinker(); if (d5Var13 != null) { d5Var13.g(); Unit unit9 = Unit.INSTANCE; } H2().a(new a60.b(ElementContainerView.b.STATE_UNABLE, 0, 0, 6, null)); z14 = true; break; case 8: B4(this, null, 1, null); d5 d5Var14 = (d5) getLinker(); if (d5Var14 != null) { d5Var14.a(); Unit unit10 = Unit.INSTANCE; } z14 = true; break; case 9: B4(this, null, 1, null); Object c17 = nVar.c(); if (c17 != null) { if (Intrinsics.areEqual(c17, Boolean.TRUE)) { d5 d5Var15 = (d5) getLinker(); if (d5Var15 != null) { d5Var15.b(); Unit unit11 = Unit.INSTANCE; } CapaPasterBaseModel b14 = nVar.b(); if (b14 != null) { G2().a(new vl0.k(true, -1, b14, true)); Unit unit12 = Unit.INSTANCE; } H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 2, 0, 4, null)); } else { d5 d5Var16 = (d5) getLinker(); if (d5Var16 != null) { d5Var16.b(); Unit unit13 = Unit.INSTANCE; } H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 4, 0, 4, null)); } Unit unit14 = Unit.INSTANCE; } z14 = true; break; case 10: if (t().n1() != 0 || Q2().hasCaptionModel()) { if (b02.c.f5924t.C()) { B4(this, null, 1, null); d5 d5Var17 = (d5) getLinker(); if (d5Var17 != null) { d5Var17.e(); Unit unit15 = Unit.INSTANCE; } H2().a(new a60.b(ElementContainerView.b.STATE_FOCUS_ONE_TYPE, 4, 0, 4, null)); d5 d5Var18 = (d5) getLinker(); if (d5Var18 != null) { d5Var18.k0(); Unit unit16 = Unit.INSTANCE; } j2(this, true, true, 0, 4, null); eq0.c.d(N2(), c.EnumC0815c.CAPTION, null, 2, null); z14 = true; break; } else { al2.e.m(R$string.bbp); return; } } else { al2.e.f(R$string.bei); return; } break; case 11: H2().a(new a60.b(ElementContainerView.b.STATE_UNABLE, 0, 0, 6, null)); eq0.c.d(N2(), c.EnumC0815c.THEME, null, 2, null); d5 d5Var19 = (d5) getLinker(); if (d5Var19 != null) { d5Var19.w(); Unit unit17 = Unit.INSTANCE; } u4(this, false, 1, null); z14 = true; break; case 12: d5 d5Var20 = (d5) getLinker(); if (d5Var20 != null) { d5Var20.m(); Unit unit18 = Unit.INSTANCE; } z14 = false; break; case 13: a2(); eq0.c.d(N2(), c.EnumC0815c.CHAPTER, null, 2, null); z14 = true; break; case 14: if (nVar.d() != null) { l2(new g0(this, nVar)); } else if (zp0.a.H(g3())) { l2(new h0(this, z3().P().j1(B3().getPosition()))); } else { I().h(B3().getPosition(), new i0(this)); } z14 = true; break; case 15: if (CapaAbConfig.INSTANCE.useStyleV2() != 0) { B4(this, null, 1, null); } l4(); eq0.c.d(N2(), c.EnumC0815c.THEME_ONE, null, 2, null); return; default: z14 = false; break; } if (nVar.e() && (d5Var3 = (d5) getLinker()) != null) { d5Var3.k0(); Unit unit19 = Unit.INSTANCE; } if (a14 == 7 && (d5Var2 = (d5) getLinker()) != null) { d5Var2.l0(); Unit unit20 = Unit.INSTANCE; } if (!(a14 == 1 || a14 == 12 || (d5Var = (d5) getLinker()) == null)) { d5Var.n0(); Unit unit21 = Unit.INSTANCE; } j2(this, z14, true, 0, 4, null); } public final dx2.d<wh0.a> j3() { dx2.d<wh0.a> dVar = this.f118845j0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("styleCancelSubject"); return null; } public final void j4() { B3().h(((e5) getPresenter()).g()); } public final void k2(Function0<Unit> function0) { vm0.v.f141103d.a(getActivity(), "STYLE_CANCEL_TIP_KEY", new c(this, function0)); } public final dx2.b<vl0.e> k3() { dx2.b<vl0.e> bVar = this.B; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("styleCanvasParamChanged"); return null; } public final void k4() { if (!this.f118867u0) { this.f118867u0 = true; aq0.p.f4785a.j().j("first_frame_render"); } t4(true); } public final void l2(Function0<Unit> function0) { Intrinsics.checkNotNullParameter(function0, "jump"); dw2.r W0 = dw2.r.O(new l3(this)).x1(mi2.a.P()).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "create<Unit> { emitter -…dSchedulers.mainThread())"); Object n14 = W0.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).a(new w3(function0), e4.f118650a); } public final dx2.d<wh0.b> l3() { dx2.d<wh0.b> dVar = this.f118847k0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("styleChangeStateSubject"); return null; } public final void l4() { long j14; if (Q2().getStyleEditableVideoSource() == null) { ArrayList arrayList = new ArrayList(); Iterator<T> it3 = Q2().getSliceList().iterator(); while (true) { j14 = 0; if (!it3.hasNext()) { break; } T next = it3.next(); Item item = new Item(); item.Q(String.valueOf(next.getOriginVideoPath())); if (item.z()) { j14 = 3000; } else { SimpleVideoMetadata originalMetadata = next.getOriginalMetadata(); if (originalMetadata != null) { j14 = originalMetadata.getDurationMs(); } } item.I(j14); try { item.V(new File(item.r()).length()); } catch (Exception unused) { } arrayList.add(item); } ch0.m0 m0Var = ch0.m0.f12248a; VideoTemplate J2 = zp0.a.J(A3()); m0Var.I("one_key_video", "video_edit", arrayList, J2 != null ? J2.getId() : 0); if (A3().hasStyleVideoData()) { A3().switchStyleVideoData(); EditableVideo2 editableVideo = A3().getEditableVideo(); if (editableVideo != null) { editableVideo.setStyleEditableVideoSource(yp0.a.VIDEO); } h4(A3().getEditableVideo()); } else if (CapaAbConfig.INSTANCE.useStyleV2() != 0) { for (T t14 : Q2().getSliceList()) { j14 += t14.isVideo() ? t14.getVideoMetadata().getDurationMs() : 3000; } if (j14 > Constants.ASSEMBLE_PUSH_NETWORK_INTERVAL) { al2.e.f(R$string.f47349capa_style_duration_tip); u4(this, false, 1, null); return; } uh0.h hVar = new uh0.h(l3(), q3(), r3(), o3(), h.a.ALL, "VideoEdit"); hVar.j2(Q2().getSliceList()); dw2.r W0 = hVar.n0(new p3(this)).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "StyleChainObservable(\n …dSchedulers.mainThread())"); this.B0 = bj2.h.f(W0, this, new l0(this), new m0(this)); } else { SaveProgressView y14 = ((e5) getPresenter()).y(); String string = getActivity().getString(R$string.bfe); Intrinsics.checkNotNullExpressionValue(string, "activity.getString(R.str…a_progress_enter_one_key)"); y14.setProgressingTitle(string); ((e5) getPresenter()).t(true); ((e5) getPresenter()).x(50); ba0.h hVar2 = new ba0.h(null, null, 3, null); this.A0 = hVar2; hVar2.I(new n0(this)); SaveProgressView y15 = ((e5) getPresenter()).y(); if (y15 != null) { Intrinsics.checkNotNullExpressionValue(y15, "videoProgressView()"); y15.setCancelFunc(new o0(hVar2, this)); } hVar2.A(); } } } public final uh0.a0 m3() { uh0.a0 a0Var = this.f118857p0; if (a0Var != null) { return a0Var; } Intrinsics.throwUninitializedPropertyAccessException("styleDownloadManager"); return null; } public final void n4() { StyleData style20OutModel; OneKeyGenerate2 oneKeyGenerate2 = A3().getOneKeyGenerate2(); if (oneKeyGenerate2 != null && (style20OutModel = oneKeyGenerate2.getStyle20OutModel()) != null) { m3().j(style20OutModel); } } public final dx2.d<Object> o3() { dx2.d<Object> dVar = this.f118855o0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("styleLogSubject"); return null; } public final void o4() { LinkedHashMap linkedHashMap = new LinkedHashMap(); List f14 = tf0.b.f(tf0.b.f133243a, Q2().getSliceList(), Q2().getPasterModelList(), false, 4, null); int i10 = 0; for (Object obj : f14) { int i14 = i10 + 1; if (i10 < 0) { CollectionsKt__CollectionsKt.throwIndexOverflow(); } o80.e eVar = (o80.e) obj; if (eVar.b().getVideoSource().isReverse() && eVar.b().isVideo() && eVar.b().getReplaceable()) { linkedHashMap.put(Integer.valueOf(i10), eVar.b()); } i10 = i14; } if (!linkedHashMap.isEmpty()) { ((e5) getPresenter()).y().postDelayed(new n4(this, f14, linkedHashMap), 300); } } @Override // tu0.b public void onAttach(Bundle bundle) { super.onAttach(bundle); if (Intrinsics.areEqual(Q2().getEntrance(), "error") || Q2().getVideoWidth() == 0 || Q2().getVideoHeight() == 0) { getActivity().finish(); return; } s4(); b4(); d2(); E3(); L4(); D3(); w2(); zq0.q.f163297a.b(true); x4(); i80.d.f89172a.b().i().setPageId(zt0.b.PAGE_VIDEO_EDIT.ordinal()); eq0.a.f73616a.b(g3().k()); CapaAbConfig capaAbConfig = CapaAbConfig.INSTANCE; Unit unit = null; if (!capaAbConfig.newMusicFileIdEnable()) { com.xingin.capa.v2.utils.q.v(com.xingin.capa.v2.utils.q.f51465a, g3(), null, 2, null); } com.xingin.capa.v2.utils.q.f51465a.w(g3()); q2(); c2(); if (!(Q2().getStyleEditableVideoSource() == null || capaAbConfig.useStyleV2() == 0)) { VideoPaintBean paintBean = Q2().getPaintBean(); if (paintBean != null) { if (paintBean.isBlurBg()) { u0().q0(); } else { u0().p1(VideoBackgroundBean.Companion.from(paintBean)); } unit = Unit.INSTANCE; } if (unit == null) { u0().q0(); } n4(); } if (zp0.a.H(g3())) { o4(); } } @Override // tu0.b public void onDetach() { V2().f(); long position = B3().getPosition(); String str = this.f118826a; com.xingin.capa.v2.utils.s.a(str, "onDestroy--player pos " + position); super.onDetach(); u0().N0(null); g3().i().setReeditLableSource(false); ej2.a.f72257b.a(new vl0.o0(position)); ba0.h hVar = this.A0; if (hVar != null) { hVar.v(); } m3().m(); w3().release(); this.B0 = null; } public final void p2() { Pair<Boolean, Boolean> y14; d5 d5Var = (d5) getLinker(); if (d5Var != null && (y14 = d5Var.y()) != null && y14.getFirst().booleanValue()) { j2(this, y14.getSecond().booleanValue(), false, 0, 4, null); } } public final vm0.x p3() { vm0.x xVar = this.f118829b0; if (xVar != null) { return xVar; } Intrinsics.throwUninitializedPropertyAccessException("styleOp"); return null; } public final pq0.o q() { pq0.o oVar = this.f118852n; if (oVar != null) { return oVar; } Intrinsics.throwUninitializedPropertyAccessException("pipClipEditor"); return null; } public final void q2() { CapaVideoModel videoInfo; IVideoEditor n14 = g3().n(); if (((n14 == null || (videoInfo = n14.getVideoInfo()) == null) ? null : videoInfo.getVideoCoverPath()) == null) { dw2.a0 u14 = v80.e.g(v80.e.f139723a, z3(), 0, false, 0, 8, null).B(mi2.a.P()).u(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(u14, "VideoCoverLoader.load(vi…dSchedulers.mainThread())"); Object d14 = u14.d(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(d14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.b0) d14).a(new q3(this), new r3(this)); } } public final dx2.d<wh0.c> q3() { dx2.d<wh0.c> dVar = this.f118849l0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("styleProgressSubject"); return null; } public final void q4() { float videoScale = Q2().getVideoScale(); List<CapaPasterBaseModel> pasterModelList = Q2().getPasterModelList(); if (!(pasterModelList == null || pasterModelList.isEmpty())) { n80.d0.f108953a.f(TuplesKt.to(Integer.valueOf(Q2().getCanvasWidth()), Integer.valueOf(Q2().getCanvasHeight()))); } VideoPaintBean paintBean = Q2().getPaintBean(); N4(this, paintBean != null ? paintBean.getRatio() : -1, false, 2, null); t0.g(new m4(this, videoScale)); } public final dx2.d<wh0.e> r3() { dx2.d<wh0.e> dVar = this.f118853n0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("styleRetrySubject"); return null; } public final dx2.d<wh0.f> s3() { dx2.d<wh0.f> dVar = this.f118851m0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("styleSetMaskSubject"); return null; } public final void s4() { if (Q2().getTotalDurationMs() >= com.igexin.push.config.c.f25230t) { for (T t14 : Q2().getVideoTagList()) { FloatingStickerModel tagModel = t14.getTagModel(); if (tagModel != null && (Intrinsics.areEqual(tagModel.getType(), "location") || Intrinsics.areEqual(tagModel.getType(), HashTagListBean.HashTag.TYPE_LOCATION_PAGE) || Intrinsics.areEqual(tagModel.getType(), "user") || kg2.l.G.e(tagModel.getType(), tagModel.getUiType()))) { if (t14.getEndTime() - t14.getStartTime() < com.igexin.push.config.c.f25230t) { t14.setEndTime(t14.getStartTime() + com.igexin.push.config.c.f25230t); } if (t14.getStartTime() >= 0 && t14.getEndTime() <= Q2().getTotalDurationMs()) { CapaPasterTagModel capaPasterTagModel = new CapaPasterTagModel(); capaPasterTagModel.setTagBean(tagModel); capaPasterTagModel.setStartTime(t14.getStartTime()); capaPasterTagModel.setEndTime(t14.getEndTime()); Q2().getPasterModelList().add(capaPasterTagModel); } } } } Q2().getVideoTagList().clear(); } public final pq0.a t() { pq0.a aVar = this.f118858q; if (aVar != null) { return aVar; } Intrinsics.throwUninitializedPropertyAccessException("audioEditor"); return null; } public final EditableVideo2 t2(StyleData styleData) { vh0.f styleVideoMode = styleData.getStyleVideoMode(); EditableVideo2 editableVideo2 = null; if (styleVideoMode != null) { editableVideo2 = EditableVideo2.a.d(EditableVideo2.Companion, Q2(), false, 2, null); editableVideo2.setVideoVolume(0.0f); editableVideo2.setStyleEditableVideoSource(yp0.a.VIDEO); A3().setOneKeyGenerate2(new OneKeyGenerate2()); A3().setEditableVideo(Q2()); editableVideo2.getSliceList().clear(); editableVideo2.getSliceList().addAll(styleVideoMode.d()); editableVideo2.setFilter(styleVideoMode.b()); CapaMusicBean c14 = styleVideoMode.c(); if (c14 != null) { c14.setStyleMusic(true); } editableVideo2.setBackgroundMusic(styleVideoMode.c()); editableVideo2.setEffectModelList(styleVideoMode.a()); OneKeyGenerate2 oneKeyGenerate2 = A3().getOneKeyGenerate2(); if (oneKeyGenerate2 != null) { oneKeyGenerate2.setStyle20Model(styleData.getUseStyleData()); } OneKeyGenerate2 oneKeyGenerate22 = A3().getOneKeyGenerate2(); if (oneKeyGenerate22 != null) { oneKeyGenerate22.setStyle20OutModel(styleData); } } return editableVideo2; } public final dx2.d<td0.a> t3() { dx2.d<td0.a> dVar = this.X; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("subjectAiColor"); return null; } public final void t4(boolean z14) { mi2.a.B.M().postDelayed(new k4(this), z14 ? 300 : 0); } public final pq0.d u0() { pq0.d dVar = this.f118854o; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("canvasEditor"); return null; } public final EditableVideo2 u2(StyleModel styleModel) { EditableVideo2 d14 = EditableVideo2.a.d(EditableVideo2.Companion, Q2(), false, 2, null); d14.setVideoVolume(0.0f); d14.setStyleEditableVideoSource(yp0.a.VIDEO); A3().setOneKeyGenerate2(new OneKeyGenerate2()); OneKeyGenerate2 oneKeyGenerate2 = A3().getOneKeyGenerate2(); if (oneKeyGenerate2 != null) { oneKeyGenerate2.setStyleModel(styleModel); } A3().setEditableVideo(Q2()); return d14; } public final dx2.d<a60.n> u3() { dx2.d<a60.n> dVar = this.Q; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("swipeSubject"); return null; } /* JADX WARNING: Removed duplicated region for block: B:14:0x0067 A[ORIG_RETURN, RETURN, SYNTHETIC] */ public final boolean v2() { if (CapaAbConfig.INSTANCE.useStyleV2() == 0) { if (Q2().getStyleEditableVideoSource() == null || g3().i().isFromDraft() || g3().i().getDraftSource() != -1 || !SetsKt__SetsKt.setOf((Object[]) new String[]{"PhotoEdit", "VideoEdit", "Album"}).contains(b3())) { return false; } return true; } else if (Q2().getStyleEditableVideoSource() != null && SetsKt__SetsKt.setOf((Object[]) new String[]{"PhotoEdit", "VideoEdit", "Album"}).contains(b3())) { return true; } return false; } public final float v3() { int p14 = h1.p(((e5) getPresenter()).j()); if (p14 > 0) { return ((float) ((d1.f() - p14) - K2())) / (((float) d1.h()) * b00.a.f5877d.b().f()); } return 1.0f; } public final void w2() { if (v2()) { ((e5) getPresenter()).e().post(new l4(this)); } else if (g3().i().getReeditLableSource()) { t0.h(new d(this)); } else { d5 d5Var = (d5) getLinker(); if (d5Var != null) { d5Var.i(g4()); } } } public final sl0.a w3() { sl0.a aVar = this.f118836f; if (aVar != null) { return aVar; } Intrinsics.throwUninitializedPropertyAccessException("thumbService"); return null; } /* JADX WARNING: Code restructure failed: missing block: B:11:0x0028, code lost: if (r0 == null) goto L_0x002a; */ /* JADX WARNING: Code restructure failed: missing block: B:8:0x0021, code lost: if (r0 == null) goto L_0x002a; */ public final void w4(FilterEntity filterEntity) { String str = null; String a14 = filterEntity != null ? u90.c.f136512a.a(filterEntity) : null; if (Intrinsics.areEqual(Locale.getDefault().getLanguage(), "zh")) { if (filterEntity != null) { str = filterEntity.cn_name; } } else if (filterEntity != null) { str = filterEntity.en_name; } str = ""; dx2.b<vl0.a0> h33 = h3(); if (a14 == null) { a14 = ""; } h33.a(new vl0.a0(str, a14)); } public final dx2.d<jm0.d> x3() { dx2.d<jm0.d> dVar = this.f118837f0; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("updateItemActionSubject"); return null; } public final void x4() { this.F0 = g3().i().isFromDraft() && Q2().getStyleEditableVideoSource() == null; } public final pq0.m y0() { pq0.m mVar = this.f118866u; if (mVar != null) { return mVar; } Intrinsics.throwUninitializedPropertyAccessException("filterEditor"); return null; } public final dx2.d<vl0.b> y2() { dx2.d<vl0.b> dVar = this.O; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("addFirstStickerEvent"); return null; } public final dx2.b<vl0.k0> y3() { dx2.b<vl0.k0> bVar = this.f118839g0; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("updateMusicPlayState"); return null; } public final void y4(float f14, boolean z14) { ViewGroup.LayoutParams layoutParams = ((e5) getPresenter()).k().getLayoutParams(); Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"); FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) layoutParams; a.C0082a aVar = b00.a.f5877d; float f15 = 1.0f; if (f14 <= aVar.f().f()) { layoutParams2.gravity = 49; ((e5) getPresenter()).e().setPivotY(0.0f); ((e5) getPresenter()).e().setPivotX((float) (d1.h() / 2)); ((e5) getPresenter()).e().setScaleX(z14 ? v3() : 1.0f); FrameLayout e14 = ((e5) getPresenter()).e(); if (z14) { f15 = v3(); } e14.setScaleY(f15); } else { layoutParams2.gravity = 17; ((e5) getPresenter()).e().setScaleX(1.0f); ((e5) getPresenter()).e().setScaleY(1.0f); } ((e5) getPresenter()).k().setLayoutParams(layoutParams2); ViewGroup.LayoutParams layoutParams3 = ((e5) getPresenter()).e().getLayoutParams(); Objects.requireNonNull(layoutParams3, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"); FrameLayout.LayoutParams layoutParams4 = (FrameLayout.LayoutParams) layoutParams3; int p14 = h1.p(((e5) getPresenter()).j()); layoutParams4.topMargin = K2(); if (f14 <= aVar.f().f() || p14 <= 0) { layoutParams4.height = J2(); } else { layoutParams4.height = (d1.f() - p14) - K2(); } if (!(((e5) getPresenter()).e().getTranslationY() == 0.0f)) { ((e5) getPresenter()).e().setTranslationY(0.0f); } ((e5) getPresenter()).e().setLayoutParams(layoutParams4); } public final dx2.d<vl0.c> z2() { dx2.d<vl0.c> dVar = this.N; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("addStickerSubject"); return null; } public final VideoEditProxy z3() { VideoEditProxy videoEditProxy = this.f118846k; if (videoEditProxy != null) { return videoEditProxy; } Intrinsics.throwUninitializedPropertyAccessException("videoEditProxy"); return null; } public final void z4(boolean z14) { Integer valueOf = Integer.valueOf(((e5) getPresenter()).f().getWidth()); if (!(valueOf.intValue() > 0)) { valueOf = null; } if (valueOf != null) { float intValue = (float) valueOf.intValue(); float f14 = z14 ? intValue : 0.0f; if (z14) { intValue = 0.0f; } ObjectAnimator ofPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(((e5) getPresenter()).f(), PropertyValuesHolder.ofFloat("translationX", f14, intValue)); ofPropertyValuesHolder.setDuration(300L); ofPropertyValuesHolder.setInterpolator(new AccelerateDecelerateInterpolator()); Intrinsics.checkNotNullExpressionValue(ofPropertyValuesHolder, ""); ofPropertyValuesHolder.addListener(new r0(z14, this)); ofPropertyValuesHolder.addListener(new q0(z14, this)); ofPropertyValuesHolder.start(); } } }