text: // Compiled by ClojureScript 1.10.764 {}
  goog.provide('devtools.reporter');
  goog.require('cljs.core');
  goog.require('devtools.util');
  goog.require('devtools.context');
  devtools.reporter.issues_url = "https://github.com/binaryage/cljs-devtools/issues";
  devtools.reporter.report_internal_error_BANG_ = (function devtools$reporter$report_internal_error_BANG_(var_args){
  var args__4742__auto__ = [];
  var len__4736__auto___24848 = arguments.length;
  var i__4737__auto___24849 = (0);
  while(true){
  if((i__4737__auto___24849 < len__4736__auto___24848)){
  args__4742__auto__.push((arguments[i__4737__auto___24849]));
  
  var G__24850 = (i__4737__auto___24849 + (1));
  i__4737__auto___24849 = G__24850;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4743__auto__ = ((((1) < args__4742__auto__.length))?(new cljs.core.IndexedSeq(args__4742__auto__.slice((1)),(0),null)):null);
  return devtools.reporter.report_internal_error_BANG_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4743__auto__);
  });
  
  (devtools.reporter.report_internal_error_BANG_.cljs$core$IFn$_invoke$arity$variadic = (function (e,p__24843){
  var vec__24844 = p__24843;
  var context = cljs.core.nth.call(null,vec__24844,(0),null);
  var footer = cljs.core.nth.call(null,vec__24844,(1),null);
  var console = devtools.context.get_console.call(null);
  try{var message = (((e instanceof Error))?(function (){var or__4126__auto__ = e.message;
  if(cljs.core.truth_(or__4126__auto__)){
  return or__4126__auto__;
  } else {
  return e;
  }
  })():e);
  var header = ["%cCLJS DevTools Error%c%s","background-color:red;color:white;font-weight:bold;padding:0px 3px;border-radius:2px;","color:red",[" ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(message)].join('')];
  var context_msg = ["In ",devtools.util.get_lib_info.call(null),(cljs.core.truth_(context)?[", ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(context),"."].join(''):"."),"\n\n"].join('');
  var footer_msg = (((!((footer == null))))?footer:["\n\n","---\n","Please report the issue here: ",devtools.reporter.issues_url].join(''));
  var details = [context_msg,e,footer_msg];
  var group_collapsed = (console["groupCollapsed"]);
  var log = (console["log"]);
  var group_end = (console["groupEnd"]);
  if(cljs.core.truth_(group_collapsed)){
  } else {
  throw (new Error("Assert failed: group-collapsed"));
  }
  
  if(cljs.core.truth_(log)){
  } else {
  throw (new Error("Assert failed: log"));
  }
  
  if(cljs.core.truth_(group_end)){
  } else {
  throw (new Error("Assert failed: group-end"));
  }
  
  group_collapsed.apply(console,header);
  
  log.apply(console,details);
  
  return group_end.call(console);
  }catch (e24847){var e__$1 = e24847;
  return console.error("FATAL: report-internal-error! failed",e__$1);
  }}));
  
  (devtools.reporter.report_internal_error_BANG_.cljs$lang$maxFixedArity = (1));
  
  /** @this {Function} */
  (devtools.reporter.report_internal_error_BANG_.cljs$lang$applyTo = (function (seq24841){
  var G__24842 = cljs.core.first.call(null,seq24841);
  var seq24841__$1 = cljs.core.next.call(null,seq24841);
  var self__4723__auto__ = this;
  return self__4723__auto__.cljs$core$IFn$_invoke$arity$variadic(G__24842,seq24841__$1);
  }));
  
  
  //# sourceMappingURL=reporter.js.map?rel=1627432840432
  