content: package androidx.lifecycle;
  
  import androidx.lifecycle.ViewModel;
  import androidx.lifecycle.ViewModelProvider;
  import androidx.lifecycle.viewmodel.CreationExtras;
  import kotlin.Lazy;
  import kotlin.Metadata;
  import kotlin.jvm.JvmClassMappingKt;
  import kotlin.jvm.functions.Function0;
  import kotlin.jvm.internal.DefaultConstructorMarker;
  import kotlin.jvm.internal.Intrinsics;
  import kotlin.reflect.KClass;
  
  @Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003BA\b\u0007\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005\u0012\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007\u0012\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\n0\u0007\u0012\u000e\b\u0002\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\f0\u0007¢\u0006\u0002\u0010\rJ\b\u0010\u0013\u001a\u00020\u0014H\u0016R\u0012\u0010\u000e\u001a\u0004\u0018\u00018\u0000X\u000e¢\u0006\u0004\n\u0002\u0010\u000fR\u0014\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\f0\u0007X\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\b\u0012\u0004\u0012\u00020\n0\u0007X\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007X\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0010\u001a\u00028\u00008VX\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005X\u0004¢\u0006\u0002\n\u0000¨\u0006\u0015"}, d2 = {"Landroidx/lifecycle/ViewModelLazy;", "VM", "Landroidx/lifecycle/ViewModel;", "Lkotlin/Lazy;", "viewModelClass", "Lkotlin/reflect/KClass;", "storeProducer", "Lkotlin/Function0;", "Landroidx/lifecycle/ViewModelStore;", "factoryProducer", "Landroidx/lifecycle/ViewModelProvider$Factory;", "extrasProducer", "Landroidx/lifecycle/viewmodel/CreationExtras;", "(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V", "cached", "Landroidx/lifecycle/ViewModel;", "value", "getValue", "()Landroidx/lifecycle/ViewModel;", "isInitialized", "", "lifecycle-viewmodel_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
  /* compiled from: ViewModelLazy.kt */
  public final class ViewModelLazy<VM extends ViewModel> implements Lazy<VM> {
      private VM cached;
      private final Function0<CreationExtras> extrasProducer;
      private final Function0<ViewModelProvider.Factory> factoryProducer;
      private final Function0<ViewModelStore> storeProducer;
      private final KClass<VM> viewModelClass;
  
      /* JADX INFO: this call moved to the top of the method (can break code semantics) */
      public ViewModelLazy(KClass<VM> kClass, Function0<? extends ViewModelStore> function0, Function0<? extends ViewModelProvider.Factory> function02) {
          this(kClass, function0, function02, (Function0) null, 8, (DefaultConstructorMarker) null);
          Intrinsics.checkNotNullParameter(kClass, "viewModelClass");
          Intrinsics.checkNotNullParameter(function0, "storeProducer");
          Intrinsics.checkNotNullParameter(function02, "factoryProducer");
      }
  
      public ViewModelLazy(KClass<VM> viewModelClass2, Function0<? extends ViewModelStore> storeProducer2, Function0<? extends ViewModelProvider.Factory> factoryProducer2, Function0<? extends CreationExtras> extrasProducer2) {
          Intrinsics.checkNotNullParameter(viewModelClass2, "viewModelClass");
          Intrinsics.checkNotNullParameter(storeProducer2, "storeProducer");
          Intrinsics.checkNotNullParameter(factoryProducer2, "factoryProducer");
          Intrinsics.checkNotNullParameter(extrasProducer2, "extrasProducer");
          this.viewModelClass = viewModelClass2;
          this.storeProducer = storeProducer2;
          this.factoryProducer = factoryProducer2;
          this.extrasProducer = extrasProducer2;
      }
  
      /* JADX INFO: this call moved to the top of the method (can break code semantics) */
      public /* synthetic */ ViewModelLazy(KClass kClass, Function0 function0, Function0 function02, Function0 function03, int i, DefaultConstructorMarker defaultConstructorMarker) {
          this(kClass, function0, function02, (i & 8) != 0 ? AnonymousClass1.INSTANCE : function03);
      }
  
      public VM getValue() {
          VM vm = this.cached;
          if (vm != null) {
              return vm;
          }
          VM vm2 = new ViewModelProvider(this.storeProducer.invoke(), this.factoryProducer.invoke(), this.extrasProducer.invoke()).get(JvmClassMappingKt.getJavaClass(this.viewModelClass));
          this.cached = vm2;
          return vm2;
      }
  
      public boolean isInitialized() {
          return this.cached != null;
      }
  }
  