content: package kotlin.concurrent;
  
  import java.util.Date;
  import java.util.Timer;
  import java.util.TimerTask;
  import kotlin.Metadata;
  import kotlin.Unit;
  import kotlin.jvm.functions.Function1;
  import kotlin.jvm.internal.Intrinsics;
  
  @Metadata(d1 = {"\u00004\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\b\u001aM\u0010\u0000\u001a\u00020\u00012\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001aO\u0010\u0000\u001a\u00020\u00012\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u000f\u001a\u00020\t2\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a\u001a\u0010\u0010\u001a\u00020\u00012\b\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0001\u001aM\u0010\u0010\u001a\u00020\u00012\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001aO\u0010\u0010\u001a\u00020\u00012\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u000f\u001a\u00020\t2\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a'\u0010\u0011\u001a\u00020\f2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a3\u0010\u0012\u001a\u00020\f*\u00020\u00012\u0006\u0010\u0013\u001a\u00020\u00072\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a;\u0010\u0012\u001a\u00020\f*\u00020\u00012\u0006\u0010\u0013\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a3\u0010\u0012\u001a\u00020\f*\u00020\u00012\u0006\u0010\u0014\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a;\u0010\u0012\u001a\u00020\f*\u00020\u00012\u0006\u0010\u0014\u001a\u00020\t2\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a;\u0010\u0015\u001a\u00020\f*\u00020\u00012\u0006\u0010\u0013\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u001a;\u0010\u0015\u001a\u00020\f*\u00020\u00012\u0006\u0010\u0014\u001a\u00020\t2\u0006\u0010\b\u001a\u00020\t2\u0019\b\u0004\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eH\bø\u0001\u0000\u0002\u0007\n\u0005\b20\u0001¨\u0006\u0016"}, d2 = {"fixedRateTimer", "Ljava/util/Timer;", "name", "", "daemon", "", "startAt", "Ljava/util/Date;", "period", "", "action", "Lkotlin/Function1;", "Ljava/util/TimerTask;", "", "Lkotlin/ExtensionFunctionType;", "initialDelay", "timer", "timerTask", "schedule", "time", "delay", "scheduleAtFixedRate", "kotlin-stdlib"}, k = 2, mv = {1, 7, 1}, xi = 48)
  /* compiled from: Timer.kt */
  public final class TimersKt {
      private static final Timer fixedRateTimer(String name, boolean daemon, long initialDelay, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.scheduleAtFixedRate(new TimersKt$timerTask$1(action), initialDelay, period);
          return timer;
      }
  
      private static final Timer fixedRateTimer(String name, boolean daemon, Date startAt, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter(startAt, "startAt");
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.scheduleAtFixedRate(new TimersKt$timerTask$1(action), startAt, period);
          return timer;
      }
  
      static /* synthetic */ Timer fixedRateTimer$default(String name, boolean daemon, long initialDelay, long period, Function1 action, int i, Object obj) {
          if ((i & 1) != 0) {
              name = null;
          }
          if ((i & 2) != 0) {
              daemon = false;
          }
          if ((i & 4) != 0) {
              initialDelay = 0;
          }
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.scheduleAtFixedRate(new TimersKt$timerTask$1(action), initialDelay, period);
          return timer;
      }
  
      static /* synthetic */ Timer fixedRateTimer$default(String name, boolean daemon, Date startAt, long period, Function1 action, int i, Object obj) {
          if ((i & 1) != 0) {
              name = null;
          }
          if ((i & 2) != 0) {
              daemon = false;
          }
          Intrinsics.checkNotNullParameter(startAt, "startAt");
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.scheduleAtFixedRate(new TimersKt$timerTask$1(action), startAt, period);
          return timer;
      }
  
      private static final TimerTask schedule(Timer $this$schedule, long delay, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter($this$schedule, "<this>");
          Intrinsics.checkNotNullParameter(action, "action");
          TimerTask timersKt$timerTask$1 = new TimersKt$timerTask$1(action);
          $this$schedule.schedule(timersKt$timerTask$1, delay, period);
          return timersKt$timerTask$1;
      }
  
      private static final TimerTask schedule(Timer $this$schedule, long delay, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter($this$schedule, "<this>");
          Intrinsics.checkNotNullParameter(action, "action");
          TimerTask timersKt$timerTask$1 = new TimersKt$timerTask$1(action);
          $this$schedule.schedule(timersKt$timerTask$1, delay);
          return timersKt$timerTask$1;
      }
  
      private static final TimerTask schedule(Timer $this$schedule, Date time, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter($this$schedule, "<this>");
          Intrinsics.checkNotNullParameter(time, "time");
          Intrinsics.checkNotNullParameter(action, "action");
          TimerTask timersKt$timerTask$1 = new TimersKt$timerTask$1(action);
          $this$schedule.schedule(timersKt$timerTask$1, time, period);
          return timersKt$timerTask$1;
      }
  
      private static final TimerTask schedule(Timer $this$schedule, Date time, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter($this$schedule, "<this>");
          Intrinsics.checkNotNullParameter(time, "time");
          Intrinsics.checkNotNullParameter(action, "action");
          TimerTask timersKt$timerTask$1 = new TimersKt$timerTask$1(action);
          $this$schedule.schedule(timersKt$timerTask$1, time);
          return timersKt$timerTask$1;
      }
  
      private static final TimerTask scheduleAtFixedRate(Timer $this$scheduleAtFixedRate, long delay, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter($this$scheduleAtFixedRate, "<this>");
          Intrinsics.checkNotNullParameter(action, "action");
          TimerTask timersKt$timerTask$1 = new TimersKt$timerTask$1(action);
          $this$scheduleAtFixedRate.scheduleAtFixedRate(timersKt$timerTask$1, delay, period);
          return timersKt$timerTask$1;
      }
  
      private static final TimerTask scheduleAtFixedRate(Timer $this$scheduleAtFixedRate, Date time, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter($this$scheduleAtFixedRate, "<this>");
          Intrinsics.checkNotNullParameter(time, "time");
          Intrinsics.checkNotNullParameter(action, "action");
          TimerTask timersKt$timerTask$1 = new TimersKt$timerTask$1(action);
          $this$scheduleAtFixedRate.scheduleAtFixedRate(timersKt$timerTask$1, time, period);
          return timersKt$timerTask$1;
      }
  
      public static final Timer timer(String name, boolean daemon) {
          Timer timer;
          if (name != null) {
              timer = new Timer(name, daemon);
          }
          return timer;
      }
  
      private static final Timer timer(String name, boolean daemon, long initialDelay, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.schedule(new TimersKt$timerTask$1(action), initialDelay, period);
          return timer;
      }
  
      private static final Timer timer(String name, boolean daemon, Date startAt, long period, Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter(startAt, "startAt");
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.schedule(new TimersKt$timerTask$1(action), startAt, period);
          return timer;
      }
  
      static /* synthetic */ Timer timer$default(String name, boolean daemon, long initialDelay, long period, Function1 action, int i, Object obj) {
          if ((i & 1) != 0) {
              name = null;
          }
          if ((i & 2) != 0) {
              daemon = false;
          }
          if ((i & 4) != 0) {
              initialDelay = 0;
          }
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.schedule(new TimersKt$timerTask$1(action), initialDelay, period);
          return timer;
      }
  
      static /* synthetic */ Timer timer$default(String name, boolean daemon, Date startAt, long period, Function1 action, int i, Object obj) {
          if ((i & 1) != 0) {
              name = null;
          }
          if ((i & 2) != 0) {
              daemon = false;
          }
          Intrinsics.checkNotNullParameter(startAt, "startAt");
          Intrinsics.checkNotNullParameter(action, "action");
          Timer timer = timer(name, daemon);
          timer.schedule(new TimersKt$timerTask$1(action), startAt, period);
          return timer;
      }
  
      private static final TimerTask timerTask(Function1<? super TimerTask, Unit> action) {
          Intrinsics.checkNotNullParameter(action, "action");
          return new TimersKt$timerTask$1(action);
      }
  }
  